|
|
@@ -8,44 +8,15 @@ import { EntityType } from '@prisma/mongo/client';
|
|
|
|
|
|
export interface ProviderVideoSyncOptions {
|
|
|
providerCode?: string;
|
|
|
-
|
|
|
- /**
|
|
|
- * Optional override. In normal usage, we resume from SyncState cursor:
|
|
|
- * - fullSync: pageNum resumes
|
|
|
- * - incremental: always pageNum=1
|
|
|
- */
|
|
|
pageNum?: number;
|
|
|
-
|
|
|
- /**
|
|
|
- * Default 200, hard-capped to 500.
|
|
|
- */
|
|
|
pageSize?: number;
|
|
|
-
|
|
|
- /**
|
|
|
- * Provider search param.
|
|
|
- * - status: required in your business rule ("Completed")
|
|
|
- * - updatedAt: ISO string filter "updated after"
|
|
|
- */
|
|
|
param?: {
|
|
|
status?: string;
|
|
|
updatedAt?: string;
|
|
|
[k: string]: any;
|
|
|
};
|
|
|
-
|
|
|
- /**
|
|
|
- * fullSync:
|
|
|
- * - true: no param.updatedAt; resume using stored pageNum
|
|
|
- * - false: use param.updatedAt (cursor); pageNum forced to 1
|
|
|
- */
|
|
|
fullSync?: boolean;
|
|
|
-
|
|
|
- /**
|
|
|
- * If true: ignore stored cursor and start fresh.
|
|
|
- * - fullSync: pageNum from options.pageNum or 1
|
|
|
- * - incremental: updatedAtCursor from options.param.updatedAt (if provided)
|
|
|
- */
|
|
|
resetState?: boolean;
|
|
|
-
|
|
|
[key: string]: any;
|
|
|
}
|
|
|
|