-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathindex.d.ts
More file actions
62 lines (53 loc) · 1.56 KB
/
index.d.ts
File metadata and controls
62 lines (53 loc) · 1.56 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { Response } from "../../contentstackCollection";
import { AnyProperty, SystemFields } from "../../utility/fields";
import { PublishDetails } from "../../utility/publish";
export interface BulkOperation extends SystemFields {
publish(config: BulkOperationConfig): Promise<Response>
unpublish(config: BulkOperationConfig): Promise<Response>
delete(config: BulkDeleteConfig): Promise<Response>
addItems(config: BulkAddItemsConfig): Promise<Response>
updateItems(config: BulkAddItemsConfig): Promise<Response>
jobStatus(config: BulkJobStatus): Promise<Response>
}
export interface BulkOperationConfig {
details: PublishItems
skip_workflow_stage?: boolean
approvals?: boolean
is_nested?: boolean
api_version?: string
bulk_version?: string
}
export interface PublishItems extends PublishDetails {
entries?: Array<BulkOperationItem>
assets?: Array<BulkOperationItem>
}
export interface BulkOperationItem {
_content_type_uid?: string
uid: string
}
export interface BulkDeleteConfig {
entries?: Array<BulkDeleteEntry>
assets?: Array<BulkDeleteAsset>
details?: PublishDetails
}
export interface BulkDeleteEntry {
uid: string
content_type: string
locale: string
}
export interface BulkDeleteAsset {
uid: string
}
export interface BranchData extends AnyProperty {
name: string
source: string
}
export interface BulkAddItemsConfig {
data: AnyProperty;
bulk_version?: string;
}
export interface BulkJobStatus {
job_id: AnyProperty;
bulk_version?: string;
api_version?: string;
}