Variable: LongTaskStatusSchema
ts
const LongTaskStatusSchema: ZodObject<{
additionalDetails: ZodOptional<ZodObject<{
additionalProperties: ZodOptional<ZodString>;
destinationId: ZodOptional<ZodString>;
destinationUrl: ZodOptional<ZodString>;
totalPageNeedToCopy: ZodOptional<ZodNumber>;
}, ApiObjectConfig<undefined>>>;
ari: ZodOptional<ZodString>;
elapsedTime: ZodNumber;
errors: ZodOptional<ZodArray<ZodObject<{
args: ZodArray<ZodUnion<readonly [ZodString, ZodRecord<ZodString, ZodAny>]>>;
key: ZodOptional<ZodString>;
translation: ZodOptional<ZodString>;
}, ApiObjectConfig<undefined>>>>;
finished: ZodBoolean;
id: ZodString;
messages: ZodArray<ZodObject<{
args: ZodArray<ZodUnion<readonly [ZodString, ZodRecord<ZodString, ZodAny>]>>;
key: ZodOptional<ZodString>;
translation: ZodOptional<ZodString>;
}, ApiObjectConfig<undefined>>>;
name: ZodObject<{
args: ZodArray<ZodRecord<ZodString, ZodAny>>;
key: ZodString;
}, ApiObjectConfig<undefined>>;
percentageComplete: ZodNumber;
status: ZodOptional<ZodString>;
successful: ZodBoolean;
}, ApiObjectConfig<undefined>>;Defined in: src/v1/models/longTaskStatus.ts:29
Current status of a long running task
Status keys:
ERROR_UNKNOWN- Generic errorERROR_LOCK_FAILED- Could not get the lock on destination spaceERROR_RELINK- Error when relink pages/attachmentsERROR_COPY_PAGE- Error while copying 1 pageWARN_RENAME_PAGE- Warning page is rename during copyWARN_IGNORE_COPY_PERMISSION- Warning could not copy permissionWARN_IGNORE_COPY_ATTACHMENT- Warning could not copy attachmentWARN_IGNORE_DELETE_PAGE- Warning ignoring delete of a non agreed on pageSTATUS_COPIED_PAGES- Message total pages are copiedSTATUS_COPYING_PAGES- Message copy pagesSTATUS_RELINK_PAGES- Message relink pages/attachmentsSTATUS_DELETING_PAGES- Message delete pagesSTATUS_DELETED_PAGES- Message total pages are deletedSTATUS_MOVING_PAGES- Message move pagesWARN_IGNORE_VIEW_RESTRICTED- Permission changed - view restrictedWARN_IGNORE_EDIT_RESTRICTED- Permission changed - edit restrictedINITIALIZING_TASK- Message when initializing taskUNKNOWN_STATUS- Message when status is unknown