forked from baron/baron-sso
feat: improve Worksmobile tenant sync handling
This commit is contained in:
@@ -818,6 +818,10 @@ export type WorksmobileCredentialBatchFailure = {
|
||||
updatedAt?: string;
|
||||
};
|
||||
|
||||
export type WorksmobilePendingJobDeleteResult = {
|
||||
deletedCount: number;
|
||||
};
|
||||
|
||||
export type WorksmobileComparisonItem = {
|
||||
resourceType: string;
|
||||
baronId?: string;
|
||||
@@ -978,6 +982,13 @@ export async function deleteWorksmobileCredentialBatchPasswords(
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function deleteWorksmobilePendingJobs(tenantId: string) {
|
||||
const { data } = await apiClient.delete<WorksmobilePendingJobDeleteResult>(
|
||||
`/v1/admin/tenants/${tenantId}/worksmobile/jobs/pending`,
|
||||
);
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function enqueueWorksmobileBackfillDryRun(tenantId: string) {
|
||||
const { data } = await apiClient.post(
|
||||
`/v1/admin/tenants/${tenantId}/worksmobile/backfill/dry-run`,
|
||||
|
||||
Reference in New Issue
Block a user