@contentchef/contentchef-types 2.5.13 → 2.6.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/AccessToken.d.ts +7 -7
- package/dist/api/AuditLog.d.ts +12 -12
- package/dist/api/AuditLog.js +3 -3
- package/dist/api/Author.d.ts +1 -1
- package/dist/api/Channel.d.ts +12 -12
- package/dist/api/Content.d.ts +33 -33
- package/dist/api/Content.js +3 -3
- package/dist/api/ContentDefinition.d.ts +23 -23
- package/dist/api/ContentDefinition.js +1 -1
- package/dist/api/ContentDefinitionSchema.d.ts +48 -48
- package/dist/api/ContentDefinitionSchema.js +3 -3
- package/dist/api/ContentRepository.d.ts +16 -16
- package/dist/api/ContentTag.d.ts +2 -2
- package/dist/api/ContentTranslation.d.ts +15 -15
- package/dist/api/ContentTranslation.js +1 -1
- package/dist/api/Extension.d.ts +8 -8
- package/dist/api/Invites.d.ts +2 -2
- package/dist/api/MediaGallery.d.ts +42 -42
- package/dist/api/PublishedContent.d.ts +14 -14
- package/dist/api/PublishingRequest.d.ts +7 -7
- package/dist/api/PublishingRequest.js +1 -1
- package/dist/api/Space.d.ts +21 -21
- package/dist/api/Subscription.d.ts +27 -27
- package/dist/api/Subscription.js +4 -4
- package/dist/api/User.d.ts +11 -11
- package/dist/api/UserConsents.d.ts +7 -7
- package/dist/api/UserConsents.js +1 -1
- package/dist/api/UserPermission.d.ts +3 -3
- package/dist/api/UserPermission.js +2 -2
- package/dist/api/Webhooks.d.ts +12 -12
- package/dist/api/Webhooks.js +1 -1
- package/dist/api/common.d.ts +1 -1
- package/dist/api/common.js +1 -1
- package/dist/api/index.js +5 -1
- package/dist/extension/index.d.ts +10 -10
- package/dist/extension/index.js +1 -1
- package/dist/index.js +5 -1
- package/lib/api/MediaGallery.ts +8 -8
- package/package.json +3 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This type represent the model of an access token
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type AccessTokenResponse = {
|
|
5
5
|
/**
|
|
6
6
|
* The token reference name
|
|
7
7
|
*/
|
|
@@ -18,7 +18,7 @@ export declare type AccessTokenResponse = {
|
|
|
18
18
|
/**
|
|
19
19
|
* This type represent the data needed to make a create access token API request
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export type CreateApiAccessTokenRequest = {
|
|
22
22
|
/**
|
|
23
23
|
* The token reference name
|
|
24
24
|
*/
|
|
@@ -27,11 +27,11 @@ export declare type CreateApiAccessTokenRequest = {
|
|
|
27
27
|
/**
|
|
28
28
|
* This type represent the data needed to make a list access token API request
|
|
29
29
|
*/
|
|
30
|
-
export
|
|
30
|
+
export type ListApiAccessTokenRequest = {};
|
|
31
31
|
/**
|
|
32
32
|
* This type represent the data needed to make a revoke access token API request
|
|
33
33
|
*/
|
|
34
|
-
export
|
|
34
|
+
export type RevokeApiAccessTokenRequest = {
|
|
35
35
|
/**
|
|
36
36
|
* The unique token key
|
|
37
37
|
*/
|
|
@@ -40,7 +40,7 @@ export declare type RevokeApiAccessTokenRequest = {
|
|
|
40
40
|
/**
|
|
41
41
|
* This type represent the response of a create access token API request
|
|
42
42
|
*/
|
|
43
|
-
export
|
|
43
|
+
export type CreateApiAccessTokenResponse = {
|
|
44
44
|
/**
|
|
45
45
|
* The signed token used valid to make api requests (store in a secure place)
|
|
46
46
|
*/
|
|
@@ -57,7 +57,7 @@ export declare type CreateApiAccessTokenResponse = {
|
|
|
57
57
|
/**
|
|
58
58
|
* This type represent the response of a list access token API request
|
|
59
59
|
*/
|
|
60
|
-
export
|
|
60
|
+
export type ListApiAccessTokenResponse = {
|
|
61
61
|
/**
|
|
62
62
|
* The list of tokens
|
|
63
63
|
*/
|
|
@@ -66,7 +66,7 @@ export declare type ListApiAccessTokenResponse = {
|
|
|
66
66
|
/**
|
|
67
67
|
* This type represent the response of a revoke access token API request
|
|
68
68
|
*/
|
|
69
|
-
export
|
|
69
|
+
export type RevokeApiAccessTokenResponse = {
|
|
70
70
|
/**
|
|
71
71
|
* The revoked token hash
|
|
72
72
|
*/
|
package/dist/api/AuditLog.d.ts
CHANGED
|
@@ -8,15 +8,15 @@ import { MediaGalleryId } from './MediaGallery';
|
|
|
8
8
|
/**
|
|
9
9
|
* This type represent the audit log unique id type
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type AuditLogId = number;
|
|
12
12
|
/**
|
|
13
13
|
* This type represent the audit log item unique id types
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export type SubjectId = ContentId | ContentRepositoryId | ContentDefinitionId | MediaGalleryId | PublishingChannelId;
|
|
16
16
|
/**
|
|
17
17
|
* This type represent the audit log parent unique id types
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export type ParentId = ContentId | ContentRepositoryId | ContentDefinitionId | MediaGalleryId | PublishingChannelId;
|
|
20
20
|
/**
|
|
21
21
|
* This enum represent the audit log allowed
|
|
22
22
|
*/
|
|
@@ -91,20 +91,20 @@ export declare enum SubjectActions {
|
|
|
91
91
|
/**
|
|
92
92
|
* This enum represent the audit log parent allowed types
|
|
93
93
|
*/
|
|
94
|
-
export
|
|
94
|
+
export type ListAuditLogRequest = {
|
|
95
95
|
skip: number;
|
|
96
96
|
take: number;
|
|
97
97
|
filters?: ListAuditLogFilters;
|
|
98
98
|
};
|
|
99
|
-
|
|
99
|
+
type LatestActivitesRequest<ToRemove extends keyof ListAuditLogFilters> = Omit<ListAuditLogRequest, 'filters'> & {
|
|
100
100
|
filters: Omit<ListAuditLogFilters, ToRemove>;
|
|
101
101
|
};
|
|
102
|
-
export
|
|
103
|
-
export
|
|
102
|
+
export type UserTeamLatestActivitiesRequest = LatestActivitesRequest<'userTeamLatestActivities'>;
|
|
103
|
+
export type UserLatestActivitiesRequest = LatestActivitesRequest<'userLatestActivities'>;
|
|
104
104
|
/**
|
|
105
105
|
* This type represent all the filters used to filter a list of audit logs
|
|
106
106
|
*/
|
|
107
|
-
export
|
|
107
|
+
export type ListAuditLogFilters = {
|
|
108
108
|
/**
|
|
109
109
|
* A string that a audit log must contain to be retrieved
|
|
110
110
|
*/
|
|
@@ -133,7 +133,7 @@ export declare type ListAuditLogFilters = {
|
|
|
133
133
|
/**
|
|
134
134
|
* The data needed to make a list of audit log filtered by repository
|
|
135
135
|
*/
|
|
136
|
-
export
|
|
136
|
+
export type ListByRepositoryIdRequest = {
|
|
137
137
|
/**
|
|
138
138
|
* The unique repository id
|
|
139
139
|
*/
|
|
@@ -142,7 +142,7 @@ export declare type ListByRepositoryIdRequest = {
|
|
|
142
142
|
/**
|
|
143
143
|
* The model the represent the audit log parent filter used in the list of audit logs
|
|
144
144
|
*/
|
|
145
|
-
export
|
|
145
|
+
export type ListAuditLogParentFilter = {
|
|
146
146
|
/**
|
|
147
147
|
* The unique parent id
|
|
148
148
|
*/
|
|
@@ -155,7 +155,7 @@ export declare type ListAuditLogParentFilter = {
|
|
|
155
155
|
/**
|
|
156
156
|
* The model the represent the audit log item
|
|
157
157
|
*/
|
|
158
|
-
export
|
|
158
|
+
export type ListAuditLogItem = {
|
|
159
159
|
/**
|
|
160
160
|
* The unique audit log id
|
|
161
161
|
*/
|
|
@@ -200,5 +200,5 @@ export declare type ListAuditLogItem = {
|
|
|
200
200
|
/**
|
|
201
201
|
* This type represent the response of a list audit log API request
|
|
202
202
|
*/
|
|
203
|
-
export
|
|
203
|
+
export type ListAuditLogResponse = PagedListResponse<ListAuditLogItem>;
|
|
204
204
|
export {};
|
package/dist/api/AuditLog.js
CHANGED
|
@@ -26,7 +26,7 @@ var SubjectTypes;
|
|
|
26
26
|
* When the subject is a publishing channel this value will be returned
|
|
27
27
|
*/
|
|
28
28
|
SubjectTypes["publishingChannel"] = "publishing_channel";
|
|
29
|
-
})(SubjectTypes
|
|
29
|
+
})(SubjectTypes || (exports.SubjectTypes = SubjectTypes = {}));
|
|
30
30
|
/**
|
|
31
31
|
* This enum represent the audit log parent allowed
|
|
32
32
|
*/
|
|
@@ -52,7 +52,7 @@ var ParentTypes;
|
|
|
52
52
|
* When the parent is a publishing channel this value will be returned
|
|
53
53
|
*/
|
|
54
54
|
ParentTypes["publishingChannel"] = "publishing_channel";
|
|
55
|
-
})(ParentTypes
|
|
55
|
+
})(ParentTypes || (exports.ParentTypes = ParentTypes = {}));
|
|
56
56
|
/**
|
|
57
57
|
* This enum represent the audit log actions allowed
|
|
58
58
|
*/
|
|
@@ -74,4 +74,4 @@ var SubjectActions;
|
|
|
74
74
|
* When the action is an unarchive this value will be returned
|
|
75
75
|
*/
|
|
76
76
|
SubjectActions["unarchive"] = "unarchive";
|
|
77
|
-
})(SubjectActions
|
|
77
|
+
})(SubjectActions || (exports.SubjectActions = SubjectActions = {}));
|
package/dist/api/Author.d.ts
CHANGED
package/dist/api/Channel.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { AuthorResponse } from './Author';
|
|
|
2
2
|
/**
|
|
3
3
|
* This type represent the publishing channel unique id
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type PublishingChannelId = number;
|
|
6
6
|
/**
|
|
7
7
|
* This type represent the data needed to make a create publishing channel API request
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type CreatePublishingChannelRequest = {
|
|
10
10
|
/**
|
|
11
11
|
* The publishing channel name
|
|
12
12
|
*/
|
|
@@ -23,7 +23,7 @@ export declare type CreatePublishingChannelRequest = {
|
|
|
23
23
|
/**
|
|
24
24
|
* This type represent the model of a publishing channel
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export type PublishingChannelResponse = {
|
|
27
27
|
/**
|
|
28
28
|
* The unique publishing channel id
|
|
29
29
|
*/
|
|
@@ -68,7 +68,7 @@ export declare type PublishingChannelResponse = {
|
|
|
68
68
|
/**
|
|
69
69
|
* This type represent the data needed to make a get publishing channel API request
|
|
70
70
|
*/
|
|
71
|
-
export
|
|
71
|
+
export type GetPublishingChannelRequest = {
|
|
72
72
|
/**
|
|
73
73
|
* The publishing channel unique id
|
|
74
74
|
*/
|
|
@@ -77,7 +77,7 @@ export declare type GetPublishingChannelRequest = {
|
|
|
77
77
|
/**
|
|
78
78
|
* This type represent the data needed to make an update publishing channel API request
|
|
79
79
|
*/
|
|
80
|
-
export
|
|
80
|
+
export type UpdatePublishingChannelRequest = {
|
|
81
81
|
/**
|
|
82
82
|
* The publishing channel unique id
|
|
83
83
|
*/
|
|
@@ -98,19 +98,19 @@ export declare type UpdatePublishingChannelRequest = {
|
|
|
98
98
|
/**
|
|
99
99
|
* This type represent the response of a create publishing channel API request
|
|
100
100
|
*/
|
|
101
|
-
export
|
|
101
|
+
export type CreatePublishingChannelResponse = PublishingChannelResponse;
|
|
102
102
|
/**
|
|
103
103
|
* This type represent the response of a get publishing channel API request
|
|
104
104
|
*/
|
|
105
|
-
export
|
|
105
|
+
export type GetPublishingChannelResponse = PublishingChannelResponse;
|
|
106
106
|
/**
|
|
107
107
|
* This type represent the response of an update publishing channel API request
|
|
108
108
|
*/
|
|
109
|
-
export
|
|
109
|
+
export type UpdatePublishingChannelResponse = PublishingChannelResponse;
|
|
110
110
|
/**
|
|
111
111
|
* Request for list in PublishingChannelFacade
|
|
112
112
|
*/
|
|
113
|
-
export
|
|
113
|
+
export type ListPublishingChannelRequest = {
|
|
114
114
|
/**
|
|
115
115
|
* object whose property will be used to filter the list
|
|
116
116
|
*/
|
|
@@ -128,11 +128,11 @@ export declare type ListPublishingChannelRequest = {
|
|
|
128
128
|
/**
|
|
129
129
|
* This type represent the response of a list publishing channel API request
|
|
130
130
|
*/
|
|
131
|
-
export
|
|
131
|
+
export type ListPublishingChannelsResponse = PublishingChannelResponse[];
|
|
132
132
|
/**
|
|
133
133
|
* Request for toggleArchived method on PublishingChannelFacade
|
|
134
134
|
*/
|
|
135
|
-
export
|
|
135
|
+
export type ToggleArchivedPublishingChannelRequest = {
|
|
136
136
|
/**
|
|
137
137
|
* The unique publishing channel id
|
|
138
138
|
*/
|
|
@@ -145,4 +145,4 @@ export declare type ToggleArchivedPublishingChannelRequest = {
|
|
|
145
145
|
/**
|
|
146
146
|
* Response for toggleArchived method on PublishingChannelFacade
|
|
147
147
|
*/
|
|
148
|
-
export
|
|
148
|
+
export type ToggleArchivedPublishingChannelResponse = PublishingChannelResponse;
|
package/dist/api/Content.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { ContentTranslation, ContentTranslationStatus } from './ContentTranslati
|
|
|
8
8
|
/**
|
|
9
9
|
* This type represent the content unique id type
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type ContentId = number;
|
|
12
12
|
/**
|
|
13
13
|
* This enum represent the possible content status
|
|
14
14
|
*/
|
|
@@ -20,7 +20,7 @@ export declare enum ContentsStatus {
|
|
|
20
20
|
/**
|
|
21
21
|
* This type represent the model of facet
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export type Facet = {
|
|
24
24
|
/**
|
|
25
25
|
* The key of the facet
|
|
26
26
|
*/
|
|
@@ -37,7 +37,7 @@ export declare type Facet = {
|
|
|
37
37
|
/**
|
|
38
38
|
* This type represent the model of an indexed content value
|
|
39
39
|
*/
|
|
40
|
-
export
|
|
40
|
+
export type IndexedContent = {
|
|
41
41
|
/**
|
|
42
42
|
* THe list of facet field in a content
|
|
43
43
|
*/
|
|
@@ -64,11 +64,11 @@ export interface ArrayPathItem {
|
|
|
64
64
|
/**
|
|
65
65
|
* This type represent the linked content item field path inside the content
|
|
66
66
|
*/
|
|
67
|
-
export
|
|
67
|
+
export type FieldPath = (ArrayPathItem | PathItem)[];
|
|
68
68
|
/**
|
|
69
69
|
* This type represent the model of a linked content info inside a content
|
|
70
70
|
*/
|
|
71
|
-
export
|
|
71
|
+
export type LinkedContentInfo = {
|
|
72
72
|
/**
|
|
73
73
|
* The path to reach the linked content inside the content as an array of items
|
|
74
74
|
*/
|
|
@@ -85,7 +85,7 @@ export declare type LinkedContentInfo = {
|
|
|
85
85
|
/**
|
|
86
86
|
* This type represent the model of a linked contents inside the content retrieved
|
|
87
87
|
*/
|
|
88
|
-
export
|
|
88
|
+
export type LinkedContentsInfo = {
|
|
89
89
|
/**
|
|
90
90
|
* The list of linked contents inside in the content retrieved
|
|
91
91
|
*/
|
|
@@ -94,7 +94,7 @@ export declare type LinkedContentsInfo = {
|
|
|
94
94
|
/**
|
|
95
95
|
* This type represent the model of a content publishing status
|
|
96
96
|
*/
|
|
97
|
-
export
|
|
97
|
+
export type ContentStatus = {
|
|
98
98
|
/**
|
|
99
99
|
* The unique content id
|
|
100
100
|
*/
|
|
@@ -159,7 +159,7 @@ export declare type ContentStatus = {
|
|
|
159
159
|
/**
|
|
160
160
|
* This type represent the data needed to make a create content API request
|
|
161
161
|
*/
|
|
162
|
-
export
|
|
162
|
+
export type CreateContentRequest = {
|
|
163
163
|
/**
|
|
164
164
|
* The content name
|
|
165
165
|
*/
|
|
@@ -216,7 +216,7 @@ export declare type CreateContentRequest = {
|
|
|
216
216
|
/**
|
|
217
217
|
* This type represent the data needed to make a update content API request
|
|
218
218
|
*/
|
|
219
|
-
export
|
|
219
|
+
export type UpdateContentRequest = {
|
|
220
220
|
/**
|
|
221
221
|
* The unique content id
|
|
222
222
|
*/
|
|
@@ -273,7 +273,7 @@ export declare type UpdateContentRequest = {
|
|
|
273
273
|
/**
|
|
274
274
|
* This type represent the data that can be used to filter a list of contents
|
|
275
275
|
*/
|
|
276
|
-
export
|
|
276
|
+
export type ListContentsFilters = {
|
|
277
277
|
/**
|
|
278
278
|
* This filter is used to search contents that contain the value inserted
|
|
279
279
|
*/
|
|
@@ -310,7 +310,7 @@ export declare type ListContentsFilters = {
|
|
|
310
310
|
/**
|
|
311
311
|
* This type represent the data needed to make a list content API request
|
|
312
312
|
*/
|
|
313
|
-
export
|
|
313
|
+
export type ListContentsRequest = {
|
|
314
314
|
/**
|
|
315
315
|
* The contents to skip (used to paginate the result)
|
|
316
316
|
*/
|
|
@@ -327,7 +327,7 @@ export declare type ListContentsRequest = {
|
|
|
327
327
|
/**
|
|
328
328
|
* This type represent the model of the single content returned from the list of content API request
|
|
329
329
|
*/
|
|
330
|
-
export
|
|
330
|
+
export type ListContentsItem = {
|
|
331
331
|
/**
|
|
332
332
|
* The unique content id
|
|
333
333
|
*/
|
|
@@ -438,11 +438,11 @@ export declare type ListContentsItem = {
|
|
|
438
438
|
/**
|
|
439
439
|
* This type represent the response of the list content API request
|
|
440
440
|
*/
|
|
441
|
-
export
|
|
441
|
+
export type ListContentsResponse = PagedListResponse<ListContentsItem>;
|
|
442
442
|
/**
|
|
443
443
|
* This type represent the data needed to make a duplicate content API request
|
|
444
444
|
*/
|
|
445
|
-
export
|
|
445
|
+
export type DuplicateContentRequest = {
|
|
446
446
|
/**
|
|
447
447
|
* The unique content id to duplicate
|
|
448
448
|
*/
|
|
@@ -451,7 +451,7 @@ export declare type DuplicateContentRequest = {
|
|
|
451
451
|
/**
|
|
452
452
|
* This type represent the response of the duplicate content API request
|
|
453
453
|
*/
|
|
454
|
-
export
|
|
454
|
+
export type DuplicateContentResponse = {
|
|
455
455
|
/**
|
|
456
456
|
* The duplicated content unique id
|
|
457
457
|
*/
|
|
@@ -460,7 +460,7 @@ export declare type DuplicateContentResponse = {
|
|
|
460
460
|
/**
|
|
461
461
|
* This type represent the data needed to make a get content API request
|
|
462
462
|
*/
|
|
463
|
-
export
|
|
463
|
+
export type GetContentRequest = {
|
|
464
464
|
/**
|
|
465
465
|
* The unique content id to retrieve
|
|
466
466
|
*/
|
|
@@ -473,7 +473,7 @@ export declare type GetContentRequest = {
|
|
|
473
473
|
/**
|
|
474
474
|
* This type represent the model of a content
|
|
475
475
|
*/
|
|
476
|
-
export
|
|
476
|
+
export type ContentResponse = {
|
|
477
477
|
/**
|
|
478
478
|
* The unique content id
|
|
479
479
|
*/
|
|
@@ -578,11 +578,11 @@ export declare type ContentResponse = {
|
|
|
578
578
|
/**
|
|
579
579
|
* This type represent the model of a linked content
|
|
580
580
|
*/
|
|
581
|
-
export
|
|
581
|
+
export type LinkingContents = ContentResponse;
|
|
582
582
|
/**
|
|
583
583
|
* This type represent the response of a get content API request
|
|
584
584
|
*/
|
|
585
|
-
export
|
|
585
|
+
export type GetContentResponse = {
|
|
586
586
|
/**
|
|
587
587
|
* The requested content
|
|
588
588
|
*/
|
|
@@ -595,15 +595,15 @@ export declare type GetContentResponse = {
|
|
|
595
595
|
/**
|
|
596
596
|
* This type represent the response of a create content API request
|
|
597
597
|
*/
|
|
598
|
-
export
|
|
598
|
+
export type CreateContentResponse = ContentResponse;
|
|
599
599
|
/**
|
|
600
600
|
* This type represent the response of an update content API request
|
|
601
601
|
*/
|
|
602
|
-
export
|
|
602
|
+
export type UpdateContentResponse = ContentResponse;
|
|
603
603
|
/**
|
|
604
604
|
* This type represent the data needed to make a list public id API request
|
|
605
605
|
*/
|
|
606
|
-
export
|
|
606
|
+
export type ListPublicIdsRequest = {
|
|
607
607
|
/**
|
|
608
608
|
* The admitted filters in the request
|
|
609
609
|
*/
|
|
@@ -621,11 +621,11 @@ export declare type ListPublicIdsRequest = {
|
|
|
621
621
|
/**
|
|
622
622
|
* This type represent the response of a list public id API request
|
|
623
623
|
*/
|
|
624
|
-
export
|
|
624
|
+
export type ListPublicIdsResponse = string[];
|
|
625
625
|
/**
|
|
626
626
|
* This type represent the data needed to make a delete content API request
|
|
627
627
|
*/
|
|
628
|
-
export
|
|
628
|
+
export type DeleteContentRequest = {
|
|
629
629
|
/**
|
|
630
630
|
* The unique content id to delete
|
|
631
631
|
*/
|
|
@@ -634,11 +634,11 @@ export declare type DeleteContentRequest = {
|
|
|
634
634
|
/**
|
|
635
635
|
* This type represent the response of a delete content API request
|
|
636
636
|
*/
|
|
637
|
-
export
|
|
637
|
+
export type DeleteContentResponse = ContentResponse;
|
|
638
638
|
/**
|
|
639
639
|
* This type represent the data needed to make a toggle archive content API request
|
|
640
640
|
*/
|
|
641
|
-
export
|
|
641
|
+
export type ToggleArchivedContentRequest = {
|
|
642
642
|
/**
|
|
643
643
|
* The unique content id where to make the toggle archive request
|
|
644
644
|
*/
|
|
@@ -651,7 +651,7 @@ export declare type ToggleArchivedContentRequest = {
|
|
|
651
651
|
/**
|
|
652
652
|
* This type represent the response of a toggle archive content API request
|
|
653
653
|
*/
|
|
654
|
-
export
|
|
654
|
+
export type ToggleArchivedContentResponse = ContentResponse;
|
|
655
655
|
/**
|
|
656
656
|
* Thin enum represent all content fields violations error codes
|
|
657
657
|
*/
|
|
@@ -709,7 +709,7 @@ export declare enum ContentFieldViolationCodes {
|
|
|
709
709
|
/**
|
|
710
710
|
* Request type for getContentStatus
|
|
711
711
|
*/
|
|
712
|
-
export
|
|
712
|
+
export type GetContentStatusRequest = {
|
|
713
713
|
/**
|
|
714
714
|
* Id of the content required to get its status
|
|
715
715
|
*/
|
|
@@ -718,11 +718,11 @@ export declare type GetContentStatusRequest = {
|
|
|
718
718
|
/**
|
|
719
719
|
* Response type for getContentStatus
|
|
720
720
|
*/
|
|
721
|
-
export
|
|
721
|
+
export type GetContentStatusResponse = ContentStatus[];
|
|
722
722
|
/**
|
|
723
723
|
* Request type for changeLocale
|
|
724
724
|
*/
|
|
725
|
-
export
|
|
725
|
+
export type ChangeLocaleRequest = {
|
|
726
726
|
/**
|
|
727
727
|
* Id of the content whose locale you'd like to change
|
|
728
728
|
*/
|
|
@@ -732,13 +732,13 @@ export declare type ChangeLocaleRequest = {
|
|
|
732
732
|
*/
|
|
733
733
|
locale: string;
|
|
734
734
|
};
|
|
735
|
-
export
|
|
735
|
+
export type ChangeLocaleResponse = ContentResponse;
|
|
736
736
|
export declare enum LocalizationSettings {
|
|
737
737
|
DEFAULT = "default",
|
|
738
738
|
MAIN = "main"
|
|
739
739
|
}
|
|
740
|
-
export
|
|
740
|
+
export type ToggleContentTranslationsRequest = {
|
|
741
741
|
contentId: ContentId;
|
|
742
742
|
localizationSettings: LocalizationSettings;
|
|
743
743
|
};
|
|
744
|
-
export
|
|
744
|
+
export type ToggleContentTranslationsResponse = ContentResponse;
|
package/dist/api/Content.js
CHANGED
|
@@ -9,7 +9,7 @@ var ContentsStatus;
|
|
|
9
9
|
ContentsStatus["archived"] = "archived";
|
|
10
10
|
ContentsStatus["unarchived"] = "unarchived";
|
|
11
11
|
ContentsStatus["all"] = "all";
|
|
12
|
-
})(ContentsStatus
|
|
12
|
+
})(ContentsStatus || (exports.ContentsStatus = ContentsStatus = {}));
|
|
13
13
|
/**
|
|
14
14
|
* Thin enum represent all content fields violations error codes
|
|
15
15
|
*/
|
|
@@ -64,9 +64,9 @@ var ContentFieldViolationCodes;
|
|
|
64
64
|
ContentFieldViolationCodes["textFieldValueMissingInListOfValue"] = "textField.valueMissingInListOfValue";
|
|
65
65
|
ContentFieldViolationCodes["textFieldValueIsNotAString"] = "textField.valueIsNotAString";
|
|
66
66
|
ContentFieldViolationCodes["textFieldBlankValueNotAllowed"] = "textField.blankValueNotAllowed";
|
|
67
|
-
})(ContentFieldViolationCodes
|
|
67
|
+
})(ContentFieldViolationCodes || (exports.ContentFieldViolationCodes = ContentFieldViolationCodes = {}));
|
|
68
68
|
var LocalizationSettings;
|
|
69
69
|
(function (LocalizationSettings) {
|
|
70
70
|
LocalizationSettings["DEFAULT"] = "default";
|
|
71
71
|
LocalizationSettings["MAIN"] = "main";
|
|
72
|
-
})(LocalizationSettings
|
|
72
|
+
})(LocalizationSettings || (exports.LocalizationSettings = LocalizationSettings = {}));
|