Browse Source

feat: create and restore snapshot jobs

pull/9879/head
DarkPhoenix2704 1 month ago
parent
commit
66326a9d68
  1. 8
      packages/nocodb/src/interface/Jobs.ts

8
packages/nocodb/src/interface/Jobs.ts

@ -1,4 +1,4 @@
import type { AttachmentResType, PublicAttachmentScope, SupportedExportCharset, UserType } from 'nocodb-sdk';
import type { AttachmentResType, PublicAttachmentScope, SupportedExportCharset, UserType, SnapshotType} from 'nocodb-sdk';
import type { NcContext, NcRequest } from '~/interface/config';
export const JOBS_QUEUE = 'jobs';
@ -172,12 +172,14 @@ export interface ThumbnailGeneratorJobData extends JobData {
export interface CreateSnapshotJobData extends JobData {
sourceId: string;
dupProjectId: string;
snapshotBaseId: string;
req: NcRequest;
snapshot: SnapshotType;
}
export interface RestoreSnapshotJobData extends JobData {
sourceId: string;
dupProjectId: string;
targetBaseId: string;
snapshot: SnapshotType;
req: NcRequest;
}

Loading…
Cancel
Save