@contentchef/contentchef-types 3.0.0-alpha.1 → 10.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/Content.d.ts +11 -11
- package/dist/api/ContentTranslation.d.ts +4 -3
- package/dist/api/PublishedContent.d.ts +5 -38
- package/dist/api/Space.d.ts +17 -0
- package/lib/api/Content.ts +602 -584
- package/lib/api/ContentTranslation.ts +37 -35
- package/lib/api/PublishedContent.ts +6 -41
- package/lib/api/Space.ts +19 -0
- package/package.json +3 -2
package/lib/api/Content.ts
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import { AuthorResponse } from
|
|
2
|
-
import { PublishingChannelId, PublishingChannelResponse } from
|
|
3
|
-
import { PagedListResponse } from
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { AuthorResponse } from "./Author";
|
|
2
|
+
import { PublishingChannelId, PublishingChannelResponse } from "./Channel";
|
|
3
|
+
import { PagedListResponse } from "./common";
|
|
4
|
+
import {
|
|
5
|
+
ContentDefinitionId,
|
|
6
|
+
ContentDefinitionResponse,
|
|
7
|
+
} from "./ContentDefinition";
|
|
8
|
+
import { SchemaTypeIds } from "./ContentDefinitionSchema";
|
|
9
|
+
import {
|
|
10
|
+
ContentRepositoryId,
|
|
11
|
+
ContentRepositoryResponse,
|
|
12
|
+
} from "./ContentRepository";
|
|
13
|
+
import {
|
|
14
|
+
ContentTranslation,
|
|
15
|
+
ContentTranslationStatus,
|
|
16
|
+
} from "./ContentTranslation";
|
|
8
17
|
|
|
9
18
|
/**
|
|
10
19
|
* This type represent the content unique id type
|
|
@@ -15,57 +24,57 @@ export type ContentId = number;
|
|
|
15
24
|
* This enum represent the possible content status
|
|
16
25
|
*/
|
|
17
26
|
export enum ContentsStatus {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
archived = "archived",
|
|
28
|
+
unarchived = "unarchived",
|
|
29
|
+
all = "all",
|
|
21
30
|
}
|
|
22
31
|
|
|
23
32
|
/**
|
|
24
33
|
* This type represent the model of facet
|
|
25
34
|
*/
|
|
26
35
|
export type Facet = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
/**
|
|
37
|
+
* The key of the facet
|
|
38
|
+
*/
|
|
39
|
+
key: string;
|
|
40
|
+
/**
|
|
41
|
+
* The value of the facet
|
|
42
|
+
*/
|
|
43
|
+
value: any;
|
|
44
|
+
/**
|
|
45
|
+
* The type of the facet
|
|
46
|
+
*/
|
|
47
|
+
type: SchemaTypeIds;
|
|
39
48
|
};
|
|
40
49
|
|
|
41
50
|
/**
|
|
42
51
|
* This type represent the model of an indexed content value
|
|
43
52
|
*/
|
|
44
53
|
export type IndexedContent = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
54
|
+
/**
|
|
55
|
+
* THe list of facet field in a content
|
|
56
|
+
*/
|
|
57
|
+
facets: Facet[];
|
|
49
58
|
};
|
|
50
59
|
|
|
51
60
|
/**
|
|
52
61
|
* This interface represent the model of a linked content path item
|
|
53
62
|
*/
|
|
54
63
|
export interface PathItem {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
64
|
+
/**
|
|
65
|
+
* The name of the field in the content definition
|
|
66
|
+
*/
|
|
67
|
+
name: string;
|
|
59
68
|
}
|
|
60
69
|
|
|
61
70
|
/**
|
|
62
71
|
* This interface represent the model of a linked content array path item
|
|
63
72
|
*/
|
|
64
73
|
export interface ArrayPathItem {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
74
|
+
/**
|
|
75
|
+
* The index of the field if it is in an array of linked contents
|
|
76
|
+
*/
|
|
77
|
+
index: number;
|
|
69
78
|
}
|
|
70
79
|
|
|
71
80
|
/**
|
|
@@ -77,390 +86,399 @@ export type FieldPath = (ArrayPathItem | PathItem)[];
|
|
|
77
86
|
* This type represent the model of a linked content info inside a content
|
|
78
87
|
*/
|
|
79
88
|
export type LinkedContentInfo = {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
/**
|
|
90
|
+
* The path to reach the linked content inside the content as an array of items
|
|
91
|
+
*/
|
|
92
|
+
path: FieldPath;
|
|
93
|
+
/**
|
|
94
|
+
* The full path to reach the linked content inside the content as a string
|
|
95
|
+
*/
|
|
96
|
+
pathString: string;
|
|
97
|
+
/**
|
|
98
|
+
* The linked content public id
|
|
99
|
+
*/
|
|
100
|
+
publicId: string;
|
|
92
101
|
};
|
|
93
102
|
|
|
94
103
|
/**
|
|
95
104
|
* This type represent the model of a linked contents inside the content retrieved
|
|
96
105
|
*/
|
|
97
106
|
export type LinkedContentsInfo = {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
107
|
+
/**
|
|
108
|
+
* The list of linked contents inside in the content retrieved
|
|
109
|
+
*/
|
|
110
|
+
items: LinkedContentInfo[];
|
|
102
111
|
};
|
|
103
112
|
|
|
104
113
|
/**
|
|
105
114
|
* This type represent the model of a content publishing status
|
|
106
115
|
*/
|
|
107
116
|
export type ContentStatus = {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
117
|
+
/**
|
|
118
|
+
* The unique content id
|
|
119
|
+
*/
|
|
120
|
+
contentId: ContentId;
|
|
121
|
+
/**
|
|
122
|
+
* The content space id
|
|
123
|
+
*/
|
|
124
|
+
spaceId: string;
|
|
125
|
+
/**
|
|
126
|
+
* The published content version to stage
|
|
127
|
+
*/
|
|
128
|
+
stageVersion?: number;
|
|
129
|
+
/**
|
|
130
|
+
* The published content version to live
|
|
131
|
+
*/
|
|
132
|
+
liveVersion?: number;
|
|
133
|
+
/**
|
|
134
|
+
* The published content unique id to stage
|
|
135
|
+
*/
|
|
136
|
+
stagePublishingId?: number;
|
|
137
|
+
/**
|
|
138
|
+
* The published content unique id to live
|
|
139
|
+
*/
|
|
140
|
+
livePublishingId?: number;
|
|
141
|
+
/**
|
|
142
|
+
* The publishing date to stage
|
|
143
|
+
*/
|
|
144
|
+
stagePublishingDate?: string;
|
|
145
|
+
/**
|
|
146
|
+
* The publishing date to live
|
|
147
|
+
*/
|
|
148
|
+
livePublishingDate?: string;
|
|
149
|
+
/**
|
|
150
|
+
* The publishing channels where the content is published in stage
|
|
151
|
+
*/
|
|
152
|
+
stageChannels?: string[];
|
|
153
|
+
/**
|
|
154
|
+
* The publishing channels where the content is published in live
|
|
155
|
+
*/
|
|
156
|
+
liveChannels?: string[];
|
|
157
|
+
/**
|
|
158
|
+
* The content modified iso date
|
|
159
|
+
*/
|
|
160
|
+
modifiedDate?: number;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Locale of the content or translation
|
|
164
|
+
*/
|
|
165
|
+
contentLocale?: string;
|
|
166
|
+
/**
|
|
167
|
+
* version of the content in stage (not translation)
|
|
168
|
+
*/
|
|
169
|
+
stageContentVersion?: number;
|
|
170
|
+
/**
|
|
171
|
+
* version of the content in live
|
|
172
|
+
*/
|
|
173
|
+
liveContentVersion?: number;
|
|
174
|
+
/**
|
|
175
|
+
* Whether or not this status belongs to a translation
|
|
176
|
+
*/
|
|
177
|
+
isTranslation?: boolean;
|
|
169
178
|
};
|
|
170
179
|
|
|
171
180
|
/**
|
|
172
181
|
* This type represent the data needed to make a create content API request
|
|
173
182
|
*/
|
|
174
183
|
export type CreateContentRequest = {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
184
|
+
/**
|
|
185
|
+
* The content name
|
|
186
|
+
*/
|
|
187
|
+
name: string;
|
|
188
|
+
/**
|
|
189
|
+
* The content public id
|
|
190
|
+
*/
|
|
191
|
+
publicId?: string;
|
|
192
|
+
/**
|
|
193
|
+
* The content payload (this contains all content fields and its values)
|
|
194
|
+
*/
|
|
195
|
+
payload: object;
|
|
196
|
+
/**
|
|
197
|
+
* The unique id that identify the repository where the content is created
|
|
198
|
+
*/
|
|
199
|
+
repositoryId: ContentRepositoryId;
|
|
200
|
+
/**
|
|
201
|
+
* The unique id that identify the content definition that is used to create the content
|
|
202
|
+
*/
|
|
203
|
+
definitionId: ContentDefinitionId;
|
|
204
|
+
/**
|
|
205
|
+
* The list of publishing channels where the content will be published
|
|
206
|
+
*/
|
|
207
|
+
channelIds: PublishingChannelId[];
|
|
208
|
+
/**
|
|
209
|
+
* The list of tags related to the content
|
|
210
|
+
*/
|
|
211
|
+
tags: string[];
|
|
212
|
+
/**
|
|
213
|
+
* The date where the content will start to be available when published
|
|
214
|
+
*/
|
|
215
|
+
onlineDate?: Date;
|
|
216
|
+
/**
|
|
217
|
+
* The date where the content will no more be available when published
|
|
218
|
+
*/
|
|
219
|
+
offlineDate?: Date;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Locale of the content
|
|
223
|
+
*/
|
|
224
|
+
locale?: string;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Controls if translations should be ignored when publishing
|
|
228
|
+
*/
|
|
229
|
+
contentLocalizationSettings?: LocalizationSettings;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* will bypass content definition mnemonicId validation for every linked-content field
|
|
233
|
+
*/
|
|
234
|
+
bypassLinkedContentValidation?: boolean;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* set an identifier coming from a third party application
|
|
238
|
+
*/
|
|
239
|
+
externalIdentifier?: string;
|
|
231
240
|
};
|
|
232
241
|
|
|
233
242
|
/**
|
|
234
243
|
* This type represent the data needed to make a update content API request
|
|
235
244
|
*/
|
|
236
245
|
export type UpdateContentRequest = {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
246
|
+
/**
|
|
247
|
+
* The unique content id
|
|
248
|
+
*/
|
|
249
|
+
id: ContentId;
|
|
250
|
+
/**
|
|
251
|
+
* The content public id
|
|
252
|
+
*/
|
|
253
|
+
publicId: string;
|
|
254
|
+
/**
|
|
255
|
+
* The content name
|
|
256
|
+
*/
|
|
257
|
+
name: string;
|
|
258
|
+
/**
|
|
259
|
+
* The content payload (this contains all content fields and its values)
|
|
260
|
+
*/
|
|
261
|
+
payload: object;
|
|
262
|
+
/**
|
|
263
|
+
* The unique id that identify the repository where the content is created
|
|
264
|
+
*/
|
|
265
|
+
repositoryId: ContentRepositoryId;
|
|
266
|
+
/**
|
|
267
|
+
* The list of publishing channels where the content will be published
|
|
268
|
+
*/
|
|
269
|
+
definitionId: ContentDefinitionId;
|
|
270
|
+
/**
|
|
271
|
+
* The list of publishing channels where the content will be published
|
|
272
|
+
*/
|
|
273
|
+
channelIds: PublishingChannelId[];
|
|
274
|
+
/**
|
|
275
|
+
* The list of tags related to the content
|
|
276
|
+
*/
|
|
277
|
+
tags: string[];
|
|
278
|
+
/**
|
|
279
|
+
* The date where the content will start to be available when published
|
|
280
|
+
*/
|
|
281
|
+
onlineDate?: Date;
|
|
282
|
+
/**
|
|
283
|
+
* The date where the content will no more be available when published
|
|
284
|
+
*/
|
|
285
|
+
offlineDate?: Date;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Controls if translations should be ignored when publishing
|
|
289
|
+
*/
|
|
290
|
+
contentLocalizationSettings?: LocalizationSettings;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* will bypass content definition mnemonicId validation for every linked-content field
|
|
294
|
+
*/
|
|
295
|
+
bypassLinkedContentValidation?: boolean;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* set an identifier coming from a third party application
|
|
299
|
+
*/
|
|
300
|
+
externalIdentifier?: string;
|
|
292
301
|
};
|
|
293
302
|
|
|
294
303
|
/**
|
|
295
304
|
* This type represent the data that can be used to filter a list of contents
|
|
296
305
|
*/
|
|
297
306
|
export type ListContentsFilters = {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
307
|
+
/**
|
|
308
|
+
* This filter is used to search contents that contain the value inserted
|
|
309
|
+
*/
|
|
310
|
+
name?: string;
|
|
311
|
+
/**
|
|
312
|
+
* This filter is used to search contents that used the content definition ids inserted
|
|
313
|
+
*/
|
|
314
|
+
contentDefinitionIds?: number[];
|
|
315
|
+
/**
|
|
316
|
+
* This filter is used to search contents that used the content definition mnemonic ids inserted
|
|
317
|
+
*/
|
|
318
|
+
definitionMnemonicIds?: string[];
|
|
319
|
+
/**
|
|
320
|
+
* This filter is used to search contents that are saved in the repository ids inserted
|
|
321
|
+
*/
|
|
322
|
+
repositoryIds?: number[];
|
|
323
|
+
/**
|
|
324
|
+
* This filter is used to search contents that contains the public ids inserted
|
|
325
|
+
*/
|
|
326
|
+
publicIds?: string[];
|
|
327
|
+
/**
|
|
328
|
+
* This filter is used to search contents that has the tags inserted
|
|
329
|
+
*/
|
|
330
|
+
tags?: string[];
|
|
331
|
+
/**
|
|
332
|
+
* This filter is used to search contents in the content status inserted
|
|
333
|
+
*/
|
|
334
|
+
contentsStatus: ContentsStatus;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Filter list by ContentTranslation status
|
|
338
|
+
*/
|
|
339
|
+
translationStatus?: ContentTranslationStatus;
|
|
331
340
|
};
|
|
332
341
|
|
|
333
342
|
/**
|
|
334
343
|
* This type represent the data needed to make a list content API request
|
|
335
344
|
*/
|
|
336
345
|
export type ListContentsRequest = {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
346
|
+
/**
|
|
347
|
+
* The contents to skip (used to paginate the result)
|
|
348
|
+
*/
|
|
349
|
+
skip: number;
|
|
350
|
+
/**
|
|
351
|
+
* The contents to take (used to paginate the result)
|
|
352
|
+
*/
|
|
353
|
+
take: number;
|
|
354
|
+
/**
|
|
355
|
+
* The data used to filter the list of content
|
|
356
|
+
*/
|
|
357
|
+
filters: ListContentsFilters;
|
|
349
358
|
};
|
|
350
359
|
|
|
351
360
|
/**
|
|
352
361
|
* This type represent the model of the single content returned from the list of content API request
|
|
353
362
|
*/
|
|
354
363
|
export type ListContentsItem = {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
364
|
+
/**
|
|
365
|
+
* The unique content id
|
|
366
|
+
*/
|
|
367
|
+
id: ContentId;
|
|
368
|
+
/**
|
|
369
|
+
* The content public id
|
|
370
|
+
*/
|
|
371
|
+
publicId: string;
|
|
372
|
+
/**
|
|
373
|
+
* The content name
|
|
374
|
+
*/
|
|
375
|
+
name: string;
|
|
376
|
+
/**
|
|
377
|
+
* The content creation date
|
|
378
|
+
*/
|
|
379
|
+
createdDate: Date;
|
|
380
|
+
/**
|
|
381
|
+
* The content updated date
|
|
382
|
+
*/
|
|
383
|
+
lastModifiedDate: Date;
|
|
384
|
+
/**
|
|
385
|
+
* The date where the content will start to be available when published
|
|
386
|
+
*/
|
|
387
|
+
onlineDate?: Date;
|
|
388
|
+
/**
|
|
389
|
+
* The date where the content will no more be available when published
|
|
390
|
+
*/
|
|
391
|
+
offlineDate?: Date;
|
|
392
|
+
/**
|
|
393
|
+
* The creator of the content
|
|
394
|
+
*/
|
|
395
|
+
author: AuthorResponse;
|
|
396
|
+
/**
|
|
397
|
+
* The data of the definition related to the content
|
|
398
|
+
*/
|
|
399
|
+
definition: {
|
|
400
|
+
/**
|
|
401
|
+
* The content definition unique id
|
|
402
|
+
*/
|
|
403
|
+
id: ContentDefinitionId;
|
|
404
|
+
/**
|
|
405
|
+
* The content definition mnemonic id
|
|
406
|
+
*/
|
|
407
|
+
mnemonicId: string;
|
|
408
|
+
/**
|
|
409
|
+
* The content definition name
|
|
365
410
|
*/
|
|
366
411
|
name: string;
|
|
412
|
+
};
|
|
413
|
+
/**
|
|
414
|
+
* The data of the repository related to the content
|
|
415
|
+
*/
|
|
416
|
+
repository: {
|
|
367
417
|
/**
|
|
368
|
-
* The
|
|
369
|
-
*/
|
|
370
|
-
createdDate: Date;
|
|
371
|
-
/**
|
|
372
|
-
* The content updated date
|
|
373
|
-
*/
|
|
374
|
-
lastModifiedDate: Date;
|
|
375
|
-
/**
|
|
376
|
-
* The date where the content will start to be available when published
|
|
377
|
-
*/
|
|
378
|
-
onlineDate?: Date;
|
|
379
|
-
/**
|
|
380
|
-
* The date where the content will no more be available when published
|
|
381
|
-
*/
|
|
382
|
-
offlineDate?: Date;
|
|
383
|
-
/**
|
|
384
|
-
* The creator of the content
|
|
385
|
-
*/
|
|
386
|
-
author: AuthorResponse;
|
|
387
|
-
/**
|
|
388
|
-
* The data of the definition related to the content
|
|
389
|
-
*/
|
|
390
|
-
definition: {
|
|
391
|
-
/**
|
|
392
|
-
* The content definition unique id
|
|
393
|
-
*/
|
|
394
|
-
id: ContentDefinitionId;
|
|
395
|
-
/**
|
|
396
|
-
* The content definition mnemonic id
|
|
397
|
-
*/
|
|
398
|
-
mnemonicId: string,
|
|
399
|
-
/**
|
|
400
|
-
* The content definition name
|
|
401
|
-
*/
|
|
402
|
-
name: string;
|
|
403
|
-
};
|
|
404
|
-
/**
|
|
405
|
-
* The data of the repository related to the content
|
|
406
|
-
*/
|
|
407
|
-
repository: {
|
|
408
|
-
/**
|
|
409
|
-
* The repository unique id
|
|
410
|
-
*/
|
|
411
|
-
id: ContentRepositoryId;
|
|
412
|
-
/**
|
|
413
|
-
* The repository mnemonic id
|
|
414
|
-
*/
|
|
415
|
-
mnemonicId: string;
|
|
416
|
-
/**
|
|
417
|
-
* The repository name
|
|
418
|
-
*/
|
|
419
|
-
name: string;
|
|
420
|
-
/**
|
|
421
|
-
* The repository color
|
|
422
|
-
*/
|
|
423
|
-
color: string;
|
|
424
|
-
};
|
|
425
|
-
/**
|
|
426
|
-
* The latest author that modified the content
|
|
427
|
-
*/
|
|
428
|
-
latestContributor: AuthorResponse;
|
|
429
|
-
/**
|
|
430
|
-
* The tags saved with the content
|
|
431
|
-
*/
|
|
432
|
-
tags: string[];
|
|
433
|
-
/**
|
|
434
|
-
* The archive status of the content
|
|
418
|
+
* The repository unique id
|
|
435
419
|
*/
|
|
436
|
-
|
|
420
|
+
id: ContentRepositoryId;
|
|
437
421
|
/**
|
|
438
|
-
* The
|
|
422
|
+
* The repository mnemonic id
|
|
439
423
|
*/
|
|
440
|
-
|
|
424
|
+
mnemonicId: string;
|
|
441
425
|
/**
|
|
442
|
-
* The
|
|
426
|
+
* The repository name
|
|
443
427
|
*/
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* The version of the content
|
|
447
|
-
*/
|
|
448
|
-
version: number;
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Channels where the content is published
|
|
452
|
-
*/
|
|
453
|
-
channels: PublishingChannelResponse[];
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* Locale of the content
|
|
457
|
-
*/
|
|
458
|
-
locale: string;
|
|
459
|
-
|
|
428
|
+
name: string;
|
|
460
429
|
/**
|
|
461
|
-
*
|
|
462
|
-
*/
|
|
463
|
-
|
|
430
|
+
* The repository color
|
|
431
|
+
*/
|
|
432
|
+
color: string;
|
|
433
|
+
};
|
|
434
|
+
/**
|
|
435
|
+
* The latest author that modified the content
|
|
436
|
+
*/
|
|
437
|
+
latestContributor: AuthorResponse;
|
|
438
|
+
/**
|
|
439
|
+
* The tags saved with the content
|
|
440
|
+
*/
|
|
441
|
+
tags: string[];
|
|
442
|
+
/**
|
|
443
|
+
* The archive status of the content
|
|
444
|
+
*/
|
|
445
|
+
archived: boolean;
|
|
446
|
+
/**
|
|
447
|
+
* The archive date of the content
|
|
448
|
+
*/
|
|
449
|
+
archivedDate?: Date;
|
|
450
|
+
/**
|
|
451
|
+
* The publishing status of the content
|
|
452
|
+
*/
|
|
453
|
+
status?: ContentStatus[];
|
|
454
|
+
/**
|
|
455
|
+
* The version of the content
|
|
456
|
+
*/
|
|
457
|
+
version: number;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Channels where the content is published
|
|
461
|
+
*/
|
|
462
|
+
channels: PublishingChannelResponse[];
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Locale of the content
|
|
466
|
+
*/
|
|
467
|
+
locale: string;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Translations of the content
|
|
471
|
+
*/
|
|
472
|
+
translations: Pick<
|
|
473
|
+
ContentTranslation,
|
|
474
|
+
| "id"
|
|
475
|
+
| "spaceId"
|
|
476
|
+
| "locale"
|
|
477
|
+
| "createdDate"
|
|
478
|
+
| "lastModifiedDate"
|
|
479
|
+
| "status"
|
|
480
|
+
| "version"
|
|
481
|
+
>[];
|
|
464
482
|
};
|
|
465
483
|
|
|
466
484
|
/**
|
|
@@ -472,145 +490,145 @@ export type ListContentsResponse = PagedListResponse<ListContentsItem>;
|
|
|
472
490
|
* This type represent the data needed to make a duplicate content API request
|
|
473
491
|
*/
|
|
474
492
|
export type DuplicateContentRequest = {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
493
|
+
/**
|
|
494
|
+
* The unique content id to duplicate
|
|
495
|
+
*/
|
|
496
|
+
id: ContentId;
|
|
479
497
|
};
|
|
480
498
|
|
|
481
499
|
/**
|
|
482
500
|
* This type represent the response of the duplicate content API request
|
|
483
501
|
*/
|
|
484
502
|
export type DuplicateContentResponse = {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
503
|
+
/**
|
|
504
|
+
* The duplicated content unique id
|
|
505
|
+
*/
|
|
506
|
+
duplicatedId: ContentId;
|
|
489
507
|
};
|
|
490
508
|
|
|
491
509
|
/**
|
|
492
510
|
* This type represent the data needed to make a get content API request
|
|
493
511
|
*/
|
|
494
512
|
export type GetContentRequest = {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
513
|
+
/**
|
|
514
|
+
* The unique content id to retrieve
|
|
515
|
+
*/
|
|
516
|
+
id: ContentId;
|
|
517
|
+
/**
|
|
518
|
+
* This value will encode in the response all the content that use this content as linked content
|
|
519
|
+
*/
|
|
520
|
+
retrieveLinkingContents?: boolean;
|
|
503
521
|
};
|
|
504
522
|
|
|
505
523
|
/**
|
|
506
524
|
* This type represent the model of a content
|
|
507
525
|
*/
|
|
508
526
|
export type ContentResponse = {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
527
|
+
/**
|
|
528
|
+
* The unique content id
|
|
529
|
+
*/
|
|
530
|
+
id: ContentId;
|
|
531
|
+
/**
|
|
532
|
+
* The content public id
|
|
533
|
+
*/
|
|
534
|
+
publicId: string;
|
|
535
|
+
/**
|
|
536
|
+
* The content version
|
|
537
|
+
*/
|
|
538
|
+
version: number;
|
|
539
|
+
/**
|
|
540
|
+
* The content name
|
|
541
|
+
*/
|
|
542
|
+
name: string;
|
|
543
|
+
/**
|
|
544
|
+
* The content payload (this contains all content fields and its values)
|
|
545
|
+
*/
|
|
546
|
+
payload: object;
|
|
547
|
+
/**
|
|
548
|
+
* The creation date of the content
|
|
549
|
+
*/
|
|
550
|
+
createdDate: Date;
|
|
551
|
+
/**
|
|
552
|
+
* The last modified date of the content
|
|
553
|
+
*/
|
|
554
|
+
lastModifiedDate: Date;
|
|
555
|
+
/**
|
|
556
|
+
* The author of the content
|
|
557
|
+
*/
|
|
558
|
+
author: AuthorResponse;
|
|
559
|
+
/**
|
|
560
|
+
* The definition related to the content
|
|
561
|
+
*/
|
|
562
|
+
definition: ContentDefinitionResponse;
|
|
563
|
+
/**
|
|
564
|
+
* The repository related to the content
|
|
565
|
+
*/
|
|
566
|
+
repository: ContentRepositoryResponse;
|
|
567
|
+
/**
|
|
568
|
+
* The publishing channel where the content will be published
|
|
569
|
+
*/
|
|
570
|
+
channels: PublishingChannelResponse[];
|
|
571
|
+
/**
|
|
572
|
+
* The date where the content will start to be available when published
|
|
573
|
+
*/
|
|
574
|
+
onlineDate?: Date;
|
|
575
|
+
/**
|
|
576
|
+
* The date where the content will no more be available when published
|
|
577
|
+
*/
|
|
578
|
+
offlineDate?: Date;
|
|
579
|
+
/**
|
|
580
|
+
* The tags saved with the content
|
|
581
|
+
*/
|
|
582
|
+
tags: string[];
|
|
583
|
+
/**
|
|
584
|
+
* The list indexed fields of the content
|
|
585
|
+
*/
|
|
586
|
+
indexDetails: IndexedContent;
|
|
587
|
+
/**
|
|
588
|
+
* The latest author that modified the content
|
|
589
|
+
*/
|
|
590
|
+
latestContributor: AuthorResponse;
|
|
591
|
+
/**
|
|
592
|
+
* The linked contents used in this content
|
|
593
|
+
*/
|
|
594
|
+
linkedContents: LinkedContentsInfo;
|
|
595
|
+
/**
|
|
596
|
+
* The archived status of the content
|
|
597
|
+
*/
|
|
598
|
+
archived: boolean;
|
|
599
|
+
/**
|
|
600
|
+
* The archive date of the content
|
|
601
|
+
*/
|
|
602
|
+
archivedDate?: Date;
|
|
603
|
+
/**
|
|
604
|
+
* The publishing status of the content
|
|
605
|
+
*/
|
|
606
|
+
status?: ContentStatus;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Controls if translations should be ignored when publishing
|
|
610
|
+
*/
|
|
611
|
+
contentLocalizationSettings?: LocalizationSettings;
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Content's checksum (it's different whenever at least one localized field changes)
|
|
615
|
+
*/
|
|
616
|
+
checksum: string;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Content's localized values
|
|
620
|
+
*/
|
|
621
|
+
translations: ContentTranslation[];
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Content's locale
|
|
625
|
+
*/
|
|
626
|
+
locale: string;
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Content's external identifier
|
|
630
|
+
*/
|
|
631
|
+
externalIdentifier?: string;
|
|
614
632
|
};
|
|
615
633
|
|
|
616
634
|
/**
|
|
@@ -622,14 +640,14 @@ export type LinkingContents = ContentResponse;
|
|
|
622
640
|
* This type represent the response of a get content API request
|
|
623
641
|
*/
|
|
624
642
|
export type GetContentResponse = {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
643
|
+
/**
|
|
644
|
+
* The requested content
|
|
645
|
+
*/
|
|
646
|
+
content: ContentResponse | undefined;
|
|
647
|
+
/**
|
|
648
|
+
* The contents that use the requested content
|
|
649
|
+
*/
|
|
650
|
+
linkingContents?: LinkingContents[];
|
|
633
651
|
};
|
|
634
652
|
|
|
635
653
|
/**
|
|
@@ -645,19 +663,19 @@ export type UpdateContentResponse = ContentResponse;
|
|
|
645
663
|
* This type represent the data needed to make a list public id API request
|
|
646
664
|
*/
|
|
647
665
|
export type ListPublicIdsRequest = {
|
|
666
|
+
/**
|
|
667
|
+
* The admitted filters in the request
|
|
668
|
+
*/
|
|
669
|
+
filters: {
|
|
648
670
|
/**
|
|
649
|
-
*
|
|
671
|
+
* This filter is used to search public ids that contain the value inserted
|
|
650
672
|
*/
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
* This filter is used to filter public ids in contents of a specific content definition id
|
|
658
|
-
*/
|
|
659
|
-
definitionId?: ContentDefinitionId;
|
|
660
|
-
};
|
|
673
|
+
publicId?: string;
|
|
674
|
+
/**
|
|
675
|
+
* This filter is used to filter public ids in contents of a specific content definition id
|
|
676
|
+
*/
|
|
677
|
+
definitionId?: ContentDefinitionId;
|
|
678
|
+
};
|
|
661
679
|
};
|
|
662
680
|
|
|
663
681
|
/**
|
|
@@ -669,10 +687,10 @@ export type ListPublicIdsResponse = string[];
|
|
|
669
687
|
* This type represent the data needed to make a delete content API request
|
|
670
688
|
*/
|
|
671
689
|
export type DeleteContentRequest = {
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
690
|
+
/**
|
|
691
|
+
* The unique content id to delete
|
|
692
|
+
*/
|
|
693
|
+
id: ContentId;
|
|
676
694
|
};
|
|
677
695
|
|
|
678
696
|
/**
|
|
@@ -684,14 +702,14 @@ export type DeleteContentResponse = ContentResponse;
|
|
|
684
702
|
* This type represent the data needed to make a toggle archive content API request
|
|
685
703
|
*/
|
|
686
704
|
export type ToggleArchivedContentRequest = {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
705
|
+
/**
|
|
706
|
+
* The unique content id where to make the toggle archive request
|
|
707
|
+
*/
|
|
708
|
+
id: ContentId;
|
|
709
|
+
/**
|
|
710
|
+
* This value represent the archive status to set in the specified content
|
|
711
|
+
*/
|
|
712
|
+
archived: boolean;
|
|
695
713
|
};
|
|
696
714
|
|
|
697
715
|
/**
|
|
@@ -703,65 +721,65 @@ export type ToggleArchivedContentResponse = ContentResponse;
|
|
|
703
721
|
* Thin enum represent all content fields violations error codes
|
|
704
722
|
*/
|
|
705
723
|
export enum ContentFieldViolationCodes {
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
724
|
+
genericContentDefinition = "generic.ContentDefinitionNotFound",
|
|
725
|
+
payloadMissingRequiredField = "payload.MissingRequiredField",
|
|
726
|
+
payloadUnknownField = "payload.unknownField",
|
|
727
|
+
arrayFieldMaxLengthExceeded = "arrayField.maxLengthExceeded",
|
|
728
|
+
arrayFieldMinLengthNotReached = "arrayField.minLengthNotReached",
|
|
729
|
+
arrayFieldValueIsNotAnArray = "arrayField.valueIsNotAnArray",
|
|
730
|
+
booleanFieldValueIsNotABoolean = "booleanField.valueIsNotABoolean",
|
|
731
|
+
cloudinaryImageFieldInvalidPublicIdValue = "cloudinaryImageField.valueHaveAnInvalidPublicId",
|
|
732
|
+
cloudinaryImageFieldInvalidTransformationJson = "cloudinaryImageField.valueHaveInvalidTransformationsJson",
|
|
733
|
+
cloudinaryPublicIdInvalidPublicIdValue = "cloudinaryPublicIdField.valueIsAnInvalidPublicId",
|
|
734
|
+
cloudinaryRawFieldInvalidPublicIdValue = "cloudinaryRawField.valueIsAnInvalidPublicId",
|
|
735
|
+
cloudinaryVideoFieldInvalidPublicIdValue = "cloudinaryVideoField.valueHaveAnInvalidPublicId",
|
|
736
|
+
cloudinaryVideoFieldInvalidTransformationJson = "cloudinaryVideoField.valueHaveInvalidTransformationsJson",
|
|
737
|
+
dateFieldUnspecifiedTimeZone = "dateField.valueHasUnspecifiedTimeZone",
|
|
738
|
+
dateFieldValueIsAfterLimit = "dateField.valueIsAfterLimit",
|
|
739
|
+
dateFieldValueIsBeforeLimit = "dateField.valueIsBeforeLimit",
|
|
740
|
+
dateFieldValueIsInvalidDate = "dateField.valueIsInvalidDate",
|
|
741
|
+
fragmentFieldValueIsNotAFragment = "fragmentField.valueIsNotAFragment",
|
|
742
|
+
linkContentFieldInvalidDefinitionType = "linkContentField.invalidDefinitionType",
|
|
743
|
+
linkContentFieldNotFound = "linkContentField.notFound",
|
|
744
|
+
linkContentFieldValueIsNotALinkedContent = "linkContentField.valueIsNotALinkedContent",
|
|
745
|
+
longTextFieldMaxLengthExceeded = "longTextField.maxLengthExceeded",
|
|
746
|
+
longTextFieldMinLengthNotReached = "longTextField.minLengthNotReached",
|
|
747
|
+
longTextFieldValueIsNotAString = "longTextField.valueIsNotAString",
|
|
748
|
+
longTextFieldValueIsNotAValidJSON = "longTextField.valueIsNotAValidJSON",
|
|
749
|
+
longTextFieldValueIsNotAValidMarkdown = "longTextField.valueIsNotAValidMarkdown",
|
|
750
|
+
longTextFieldValueIsNotAValidHTML = "longTextField.valueIsNotAValidHtml",
|
|
751
|
+
longTextFieldBlankValueNotAllowed = "longTextField.blankValueNotAllowed",
|
|
752
|
+
longTextFieldUnknownSubType = "longTextField.valueHasAnUnknownSubType",
|
|
753
|
+
numberFieldValueBelowMin = "numberField.valueIsBelowMin",
|
|
754
|
+
numberFieldValueIsNotANumber = "numberField.valueIsNotANumber",
|
|
755
|
+
numberFieldValueOverMax = "numberField.valueIsOverMax",
|
|
756
|
+
numberFieldValueOverMaxInfinite = "numberField.valueTreatedAsAMaxInfinite",
|
|
757
|
+
numberFieldValueBelowMaxMin = "numberField.valueTreatedAsAMinInfinite",
|
|
758
|
+
numberFieldValueMissingInListOfValue = "numberField.valueMissingInListOfValue",
|
|
759
|
+
oneFragmentOfFieldNameNotAString = "oneFragmentOfField.fieldNameIsNotAString",
|
|
760
|
+
oneFragmentOfValueNotAFragment = "oneFragmentOfField.fieldValueIsNotAFragment",
|
|
761
|
+
oneFragmentOfFragmentNotAllowed = "oneFragmentOfField.fragmentNotAllowed",
|
|
762
|
+
oneFragmentOfFragmentNotFound = "oneFragmentOfField.fragmentNotFound",
|
|
763
|
+
oneFragmentOfValueIsNotAOneFragmentOf = "oneFragmentOfField.valueIsNotAOneFragmentOf",
|
|
764
|
+
oneLinkedContentOfValueIsNotAOneLinkedContentOf = "oneLinkedContentOfField.valueIsNotAOneLinkedContentOf",
|
|
765
|
+
oneLinkedContentOfContentNotFound = "oneLinkedContentOfField.contentNotFound",
|
|
766
|
+
oneLinkedContentOfDefinitionNotAllowed = "oneLinkedContentOfField.contentDefinitionNotAllowed",
|
|
767
|
+
textFieldMaxLengthExceeded = "textField.maxLengthExceeded",
|
|
768
|
+
textFieldMinLengthNotReached = "textField.minLengthNotReached",
|
|
769
|
+
textFieldPatternNotMatched = "textField.patternNotMatched",
|
|
770
|
+
textFieldValueMissingInListOfValue = "textField.valueMissingInListOfValue",
|
|
771
|
+
textFieldValueIsNotAString = "textField.valueIsNotAString",
|
|
772
|
+
textFieldBlankValueNotAllowed = "textField.blankValueNotAllowed",
|
|
755
773
|
}
|
|
756
774
|
|
|
757
775
|
/**
|
|
758
776
|
* Request type for getContentStatus
|
|
759
777
|
*/
|
|
760
778
|
export type GetContentStatusRequest = {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
779
|
+
/**
|
|
780
|
+
* Id of the content required to get its status
|
|
781
|
+
*/
|
|
782
|
+
id: ContentId;
|
|
765
783
|
};
|
|
766
784
|
|
|
767
785
|
/**
|
|
@@ -773,26 +791,26 @@ export type GetContentStatusResponse = ContentStatus[];
|
|
|
773
791
|
* Request type for changeLocale
|
|
774
792
|
*/
|
|
775
793
|
export type ChangeLocaleRequest = {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
794
|
+
/**
|
|
795
|
+
* Id of the content whose locale you'd like to change
|
|
796
|
+
*/
|
|
797
|
+
contentId: ContentId;
|
|
798
|
+
/**
|
|
799
|
+
* New locale to assign to the content
|
|
800
|
+
*/
|
|
801
|
+
locale: string;
|
|
784
802
|
};
|
|
785
803
|
|
|
786
804
|
export type ChangeLocaleResponse = ContentResponse;
|
|
787
805
|
|
|
788
806
|
export enum LocalizationSettings {
|
|
789
|
-
|
|
790
|
-
|
|
807
|
+
DEFAULT = "default",
|
|
808
|
+
MAIN = "main",
|
|
791
809
|
}
|
|
792
810
|
|
|
793
811
|
export type ToggleContentTranslationsRequest = {
|
|
794
|
-
|
|
795
|
-
|
|
812
|
+
contentId: ContentId;
|
|
813
|
+
localizationSettings: LocalizationSettings;
|
|
796
814
|
};
|
|
797
815
|
|
|
798
816
|
export type ToggleContentTranslationsResponse = ContentResponse;
|