-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathtypes.d.ts
36 lines (34 loc) · 1.01 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
export interface Options {
managementToken: string;
spaceId: string;
contentFile?: string;
contentOnly?: boolean;
deliveryToken?: string;
downloadAssets?: boolean;
environmentId?: string;
errorLogFile?: string;
exportDir?: string;
headers?: string[];
host?: string;
includeArchived?: boolean;
includeDrafts?: boolean;
limit?: number;
managementApplication?: string;
managementFeature?: string;
maxAllowedLimit?: number;
proxy?: string;
queryEntries?: string[];
queryAssets?: string[];
rawProxy?: boolean;
saveFile?: boolean;
skipContent?: boolean;
skipContentModel?: boolean;
skipEditorInterfaces?: boolean;
skipRoles?: boolean;
skipWebhooks?: boolean;
skipTags?: boolean;
useVerboseRenderer?: boolean;
}
type ContentfulExportField = 'contentTypes' | 'entries' | 'assets' | 'locales' | 'tags' | 'webhooks' | 'roles' | 'editorInterfaces';
declare const runContentfulExport: (params: Options) => Promise<Record<ContentfulExportField, unknown[]>>
export default runContentfulExport