-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathentry.d.ts
More file actions
54 lines (45 loc) · 1.49 KB
/
entry.d.ts
File metadata and controls
54 lines (45 loc) · 1.49 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
import { Response } from "../../contentstackCollection";
import { AnyProperty, SystemFields } from "../../utility/fields";
import { Queryable, SystemFunction } from "../../utility/operations";
import { Publishable } from "../../utility/publish";
import { Unpublishable } from "../../utility/unpublish";
import { Variants, Variant } from "./variants";
export interface Entry extends Publishable, Unpublishable, SystemFields, SystemFunction<Entry> {
variants(): Variants
variants(uid: string): Variant
setWorkflowStage(data: { workflow_stage: WorkflowStage, locale?:string}): Promise<Response>
locales(): Promise<Locales>
references(param: object): Promise<References>
}
export interface Entries extends Queryable<Entry, {entry: EntryData}> {
import(data: {entry: string, locale?: string, overwrite?: boolean }): Promise<Entry>
}
export interface EntryData extends AnyProperty {
title: string
url?: string
}
export interface WorkflowStage extends AnyProperty {
uid: string
comment: string
due_date?: string
notify?: boolean
assign_to?: Array<any>
assigned_by_roles?: Array<any>
}
export interface Locales {
locales: Code[];
}
export interface Code extends AnyProperty {
code: string;
localized: boolean;
}
export interface References {
references: EntryReferences[];
}
export interface EntryReferences extends AnyProperty {
title: string;
entry_uid: string;
locale: string;
content_type_uid: string;
content_type_title: string;
}