@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
package/dist/api/Space.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Indicates what attribute an api key, visibile to the user, is made up of
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type ExportedApiKey = {
|
|
5
5
|
/**
|
|
6
6
|
* The Id of the requested space
|
|
7
7
|
*/
|
|
@@ -34,7 +34,7 @@ export declare type ExportedApiKey = {
|
|
|
34
34
|
/**
|
|
35
35
|
* Credentials of the requested space
|
|
36
36
|
*/
|
|
37
|
-
export
|
|
37
|
+
export type ListSpaceApiCredentials = {
|
|
38
38
|
/**
|
|
39
39
|
* The space id related to the api credentials
|
|
40
40
|
*/
|
|
@@ -51,11 +51,11 @@ export declare type ListSpaceApiCredentials = {
|
|
|
51
51
|
/**
|
|
52
52
|
* Response of the getSpaceCredentials method on SpaceFacade
|
|
53
53
|
*/
|
|
54
|
-
export
|
|
54
|
+
export type ListSpaceApiCredentialsResponse = ListSpaceApiCredentials;
|
|
55
55
|
/**
|
|
56
56
|
* This type represent the model of a space api credentials
|
|
57
57
|
*/
|
|
58
|
-
export
|
|
58
|
+
export type SpaceApiCredentials = {
|
|
59
59
|
/**
|
|
60
60
|
* The space id related to the api credentials
|
|
61
61
|
*/
|
|
@@ -76,11 +76,11 @@ export declare type SpaceApiCredentials = {
|
|
|
76
76
|
/**
|
|
77
77
|
* This type represent the model for the space api credentials
|
|
78
78
|
*/
|
|
79
|
-
export
|
|
79
|
+
export type SpaceApiCredentialsResponse = SpaceApiCredentials;
|
|
80
80
|
/**
|
|
81
81
|
* This type represent the model of the content stats for a space
|
|
82
82
|
*/
|
|
83
|
-
export
|
|
83
|
+
export type ContentStats = {
|
|
84
84
|
/**
|
|
85
85
|
* The total number of unarchived content in the space
|
|
86
86
|
*/
|
|
@@ -97,7 +97,7 @@ export declare type ContentStats = {
|
|
|
97
97
|
/**
|
|
98
98
|
* This type represent the model of the content repository stats for a space
|
|
99
99
|
*/
|
|
100
|
-
export
|
|
100
|
+
export type ContentRepositoryStats = {
|
|
101
101
|
/**
|
|
102
102
|
* The total number of content repositories in the space
|
|
103
103
|
*/
|
|
@@ -106,7 +106,7 @@ export declare type ContentRepositoryStats = {
|
|
|
106
106
|
/**
|
|
107
107
|
* This type represent the model of the media gallery stats for a space
|
|
108
108
|
*/
|
|
109
|
-
export
|
|
109
|
+
export type MediaGalleryStats = {
|
|
110
110
|
/**
|
|
111
111
|
* The total number of media galleries in the space
|
|
112
112
|
*/
|
|
@@ -115,7 +115,7 @@ export declare type MediaGalleryStats = {
|
|
|
115
115
|
/**
|
|
116
116
|
* This type represent the model for the top content definition of the space
|
|
117
117
|
*/
|
|
118
|
-
export
|
|
118
|
+
export type TopContentDefinition = {
|
|
119
119
|
/**
|
|
120
120
|
* The unique id of the content definition
|
|
121
121
|
*/
|
|
@@ -136,7 +136,7 @@ export declare type TopContentDefinition = {
|
|
|
136
136
|
/**
|
|
137
137
|
* This type represent the model for content definitions stats
|
|
138
138
|
*/
|
|
139
|
-
export
|
|
139
|
+
export type ContentDefinitionStats = {
|
|
140
140
|
/**
|
|
141
141
|
* The count of content definitions in the space
|
|
142
142
|
*/
|
|
@@ -149,11 +149,11 @@ export declare type ContentDefinitionStats = {
|
|
|
149
149
|
/**
|
|
150
150
|
* This type represent the model for the space stats
|
|
151
151
|
*/
|
|
152
|
-
export
|
|
152
|
+
export type SpaceStats = ContentStats & ContentDefinitionStats & ContentRepositoryStats & MediaGalleryStats;
|
|
153
153
|
/**
|
|
154
154
|
* Space locale structure
|
|
155
155
|
*/
|
|
156
|
-
export
|
|
156
|
+
export type SpaceLocale = {
|
|
157
157
|
/**
|
|
158
158
|
* Default space locale
|
|
159
159
|
*/
|
|
@@ -170,11 +170,11 @@ export declare type SpaceLocale = {
|
|
|
170
170
|
/**
|
|
171
171
|
* Return type of `getSpaceLocale`
|
|
172
172
|
*/
|
|
173
|
-
export
|
|
173
|
+
export type GetSpaceLocaleResponse = SpaceLocale;
|
|
174
174
|
/**
|
|
175
175
|
* Request type when adding a new locale to space
|
|
176
176
|
*/
|
|
177
|
-
export
|
|
177
|
+
export type AddSpaceLocaleRequest = {
|
|
178
178
|
/**
|
|
179
179
|
* Locale to add
|
|
180
180
|
*/
|
|
@@ -183,11 +183,11 @@ export declare type AddSpaceLocaleRequest = {
|
|
|
183
183
|
/**
|
|
184
184
|
* Return type of `addSpaceLocale`
|
|
185
185
|
*/
|
|
186
|
-
export
|
|
186
|
+
export type AddSpaceLocaleResponse = SpaceLocale;
|
|
187
187
|
/**
|
|
188
188
|
* Request type when removing a locale
|
|
189
189
|
*/
|
|
190
|
-
export
|
|
190
|
+
export type RemoveSpaceLocaleRequest = {
|
|
191
191
|
/**
|
|
192
192
|
* Locale to remove
|
|
193
193
|
*/
|
|
@@ -196,11 +196,11 @@ export declare type RemoveSpaceLocaleRequest = {
|
|
|
196
196
|
/**
|
|
197
197
|
* Return type of `removeSpaceLocale`
|
|
198
198
|
*/
|
|
199
|
-
export
|
|
199
|
+
export type RemoveSpaceLocaleResponse = SpaceLocale;
|
|
200
200
|
/**
|
|
201
201
|
* Request type to update a locale to the space's default
|
|
202
202
|
*/
|
|
203
|
-
export
|
|
203
|
+
export type UpdateSpaceDefaultLocaleRequest = {
|
|
204
204
|
/**
|
|
205
205
|
* Locale to update to space's default
|
|
206
206
|
*/
|
|
@@ -209,11 +209,11 @@ export declare type UpdateSpaceDefaultLocaleRequest = {
|
|
|
209
209
|
/**
|
|
210
210
|
* Return type of `updateSpaceDefaultLocale`
|
|
211
211
|
*/
|
|
212
|
-
export
|
|
212
|
+
export type UpdateSpaceDefaultLocaleResponse = SpaceLocale;
|
|
213
213
|
/**
|
|
214
214
|
* Request type to update space's fallback locale
|
|
215
215
|
*/
|
|
216
|
-
export
|
|
216
|
+
export type UpdateSpaceFallbackLocaleRequest = {
|
|
217
217
|
/**
|
|
218
218
|
* Locale to update to space's fallback locale
|
|
219
219
|
*/
|
|
@@ -222,4 +222,4 @@ export declare type UpdateSpaceFallbackLocaleRequest = {
|
|
|
222
222
|
/**
|
|
223
223
|
* Return type of `updateSpacefallbackLocale`
|
|
224
224
|
*/
|
|
225
|
-
export
|
|
225
|
+
export type UpdateSpaceFallbackLocaleResponse = SpaceLocale;
|
|
@@ -21,7 +21,7 @@ export declare enum SubscriptionType {
|
|
|
21
21
|
/**
|
|
22
22
|
* This type represent the model for a subscription plan
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export type SubscriptionPlan = {
|
|
25
25
|
/**
|
|
26
26
|
* The cost of the subscription plan
|
|
27
27
|
*/
|
|
@@ -50,7 +50,7 @@ export declare type SubscriptionPlan = {
|
|
|
50
50
|
/**
|
|
51
51
|
* The type represent the model of a subscription
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
export type SubscriptionResponse = {
|
|
54
54
|
/**
|
|
55
55
|
* The creation date of the subscription
|
|
56
56
|
*/
|
|
@@ -99,7 +99,7 @@ export declare type SubscriptionResponse = {
|
|
|
99
99
|
/**
|
|
100
100
|
* This type represent the data needed to make a create subscription API request
|
|
101
101
|
*/
|
|
102
|
-
export
|
|
102
|
+
export type CreateSubscriptionRequest = {
|
|
103
103
|
/**
|
|
104
104
|
* The scenario selected for the subscription
|
|
105
105
|
* This will create the first space with predefined data based on the selected scenario
|
|
@@ -126,11 +126,11 @@ export declare type CreateSubscriptionRequest = {
|
|
|
126
126
|
/**
|
|
127
127
|
* This type represent the response of of a create subscription API request
|
|
128
128
|
*/
|
|
129
|
-
export
|
|
129
|
+
export type CreateSubscriptionResponse = SubscriptionResponse;
|
|
130
130
|
/**
|
|
131
131
|
* This type represent the data needed to make a create subscription space API request
|
|
132
132
|
*/
|
|
133
|
-
export
|
|
133
|
+
export type CreateSubscriptionSpaceRequest = {
|
|
134
134
|
/**
|
|
135
135
|
* The subscription id where to create the space
|
|
136
136
|
*/
|
|
@@ -151,11 +151,11 @@ export declare type CreateSubscriptionSpaceRequest = {
|
|
|
151
151
|
/**
|
|
152
152
|
* This type of represent the response of a create subscription space API request
|
|
153
153
|
*/
|
|
154
|
-
export
|
|
154
|
+
export type CreateSubscriptionSpaceResponse = boolean;
|
|
155
155
|
/**
|
|
156
156
|
* This type represent the data needed to make a get subscription API request
|
|
157
157
|
*/
|
|
158
|
-
export
|
|
158
|
+
export type GetSubscriptionRequest = {
|
|
159
159
|
/**
|
|
160
160
|
* The subscription unique id to retrieve
|
|
161
161
|
*/
|
|
@@ -164,11 +164,11 @@ export declare type GetSubscriptionRequest = {
|
|
|
164
164
|
/**
|
|
165
165
|
* This type represent the response of a get subscription API request
|
|
166
166
|
*/
|
|
167
|
-
export
|
|
167
|
+
export type GetSubscriptionResponse = SubscriptionResponse;
|
|
168
168
|
/**
|
|
169
169
|
* This type represent the data needed to make a get subscription summary API request
|
|
170
170
|
*/
|
|
171
|
-
export
|
|
171
|
+
export type GetSubscriptionSummaryRequest = {
|
|
172
172
|
/**
|
|
173
173
|
* The subscription unique id
|
|
174
174
|
*/
|
|
@@ -177,7 +177,7 @@ export declare type GetSubscriptionSummaryRequest = {
|
|
|
177
177
|
/**
|
|
178
178
|
* This type represent the response of a get subscription summary response
|
|
179
179
|
*/
|
|
180
|
-
export
|
|
180
|
+
export type GetSubscriptionSummaryResponse = {
|
|
181
181
|
/**
|
|
182
182
|
* The data of the subscription
|
|
183
183
|
*/
|
|
@@ -207,15 +207,15 @@ export declare type GetSubscriptionSummaryResponse = {
|
|
|
207
207
|
/**
|
|
208
208
|
* This type represent the data needed to make a list subscription API request
|
|
209
209
|
*/
|
|
210
|
-
export
|
|
210
|
+
export type ListSubscriptionRequest = {};
|
|
211
211
|
/**
|
|
212
212
|
* This type represent the response of a list subscription API request
|
|
213
213
|
*/
|
|
214
|
-
export
|
|
214
|
+
export type ListSubscriptionResponse = SubscriptionResponse[];
|
|
215
215
|
/**
|
|
216
216
|
* This type represent the data needed to make a change plan API request
|
|
217
217
|
*/
|
|
218
|
-
export
|
|
218
|
+
export type ChangePlanRequest = {
|
|
219
219
|
/**
|
|
220
220
|
* The subscription unique id where to change the plan
|
|
221
221
|
*/
|
|
@@ -236,11 +236,11 @@ export declare type ChangePlanRequest = {
|
|
|
236
236
|
/**
|
|
237
237
|
* This type represent the response of a change plan API request
|
|
238
238
|
*/
|
|
239
|
-
export
|
|
239
|
+
export type ChangePlanResponse = SubscriptionResponse;
|
|
240
240
|
/**
|
|
241
241
|
* This type represent the data needed to make an attempt payment API request
|
|
242
242
|
*/
|
|
243
|
-
export
|
|
243
|
+
export type AttemptPaymentRequest = {
|
|
244
244
|
/**
|
|
245
245
|
* The subscription unique id to try to pay
|
|
246
246
|
*/
|
|
@@ -257,11 +257,11 @@ export declare type AttemptPaymentRequest = {
|
|
|
257
257
|
/**
|
|
258
258
|
* This type represent the response of an attempt payment API request
|
|
259
259
|
*/
|
|
260
|
-
export
|
|
260
|
+
export type AttemptPaymentResponse = SubscriptionResponse;
|
|
261
261
|
/**
|
|
262
262
|
* this type represent the data needed to make an update customer source API request
|
|
263
263
|
*/
|
|
264
|
-
export
|
|
264
|
+
export type UpdateCustomerSourceRequest = {
|
|
265
265
|
/**
|
|
266
266
|
* The subscription unique id
|
|
267
267
|
*/
|
|
@@ -274,11 +274,11 @@ export declare type UpdateCustomerSourceRequest = {
|
|
|
274
274
|
/**
|
|
275
275
|
* This type represent the response of an update custom source API request
|
|
276
276
|
*/
|
|
277
|
-
export
|
|
277
|
+
export type UpdateCustomerSourceResponse = boolean;
|
|
278
278
|
/**
|
|
279
279
|
* this type represent the data needed to make a cancel subscription API request
|
|
280
280
|
*/
|
|
281
|
-
export
|
|
281
|
+
export type CancelSubscriptionRequest = {
|
|
282
282
|
/**
|
|
283
283
|
* The subscription unique id
|
|
284
284
|
*/
|
|
@@ -287,11 +287,11 @@ export declare type CancelSubscriptionRequest = {
|
|
|
287
287
|
/**
|
|
288
288
|
* This type represent the response of a cancel subscription source API request
|
|
289
289
|
*/
|
|
290
|
-
export
|
|
290
|
+
export type CancelSubscriptionResponse = boolean;
|
|
291
291
|
/**
|
|
292
292
|
* This type represent the data needed to make an update billing information API request
|
|
293
293
|
*/
|
|
294
|
-
export
|
|
294
|
+
export type UpdateBillingRequest = {
|
|
295
295
|
/**
|
|
296
296
|
* The subscription unique id
|
|
297
297
|
*/
|
|
@@ -304,11 +304,11 @@ export declare type UpdateBillingRequest = {
|
|
|
304
304
|
/**
|
|
305
305
|
* This type represent the response of an update billing information API request
|
|
306
306
|
*/
|
|
307
|
-
export
|
|
307
|
+
export type UpdateBillingResponse = BillingInformation;
|
|
308
308
|
/**
|
|
309
309
|
* This type represent the data needed to make a get billing information API request
|
|
310
310
|
*/
|
|
311
|
-
export
|
|
311
|
+
export type GetBillingRequest = {
|
|
312
312
|
/**
|
|
313
313
|
* The subscription unique id
|
|
314
314
|
*/
|
|
@@ -317,11 +317,11 @@ export declare type GetBillingRequest = {
|
|
|
317
317
|
/**
|
|
318
318
|
* This type represent the response of a get billing API request
|
|
319
319
|
*/
|
|
320
|
-
export
|
|
320
|
+
export type GetBillingResponse = Partial<BillingInformation>;
|
|
321
321
|
/**
|
|
322
322
|
* This type represent the data needed to make a get a get tax rate API request
|
|
323
323
|
*/
|
|
324
|
-
export
|
|
324
|
+
export type GetTaxRateRequest = {
|
|
325
325
|
/**
|
|
326
326
|
* The subscription api request
|
|
327
327
|
*/
|
|
@@ -330,7 +330,7 @@ export declare type GetTaxRateRequest = {
|
|
|
330
330
|
/**
|
|
331
331
|
* This type represent the response of a get tax rage API request
|
|
332
332
|
*/
|
|
333
|
-
export
|
|
333
|
+
export type GetTaxRateResponse = {
|
|
334
334
|
/**
|
|
335
335
|
* The tax display name
|
|
336
336
|
*/
|
|
@@ -358,7 +358,7 @@ export declare enum PaymentIntentStatus {
|
|
|
358
358
|
/**
|
|
359
359
|
* This type represent the model of billing information
|
|
360
360
|
*/
|
|
361
|
-
export
|
|
361
|
+
export type BillingInformation = {
|
|
362
362
|
/**
|
|
363
363
|
* The name of the billing owner
|
|
364
364
|
*/
|
package/dist/api/Subscription.js
CHANGED
|
@@ -11,7 +11,7 @@ var SubscriptionState;
|
|
|
11
11
|
SubscriptionState[SubscriptionState["PendingActivation"] = 0] = "PendingActivation";
|
|
12
12
|
SubscriptionState[SubscriptionState["Inactive"] = -1] = "Inactive";
|
|
13
13
|
SubscriptionState[SubscriptionState["Ready"] = 2] = "Ready";
|
|
14
|
-
})(SubscriptionState
|
|
14
|
+
})(SubscriptionState || (exports.SubscriptionState = SubscriptionState = {}));
|
|
15
15
|
/**
|
|
16
16
|
* This type represent the type of a subscription
|
|
17
17
|
*/
|
|
@@ -22,7 +22,7 @@ var SubscriptionType;
|
|
|
22
22
|
SubscriptionType[SubscriptionType["Professional"] = 2] = "Professional";
|
|
23
23
|
SubscriptionType[SubscriptionType["Starter"] = 1] = "Starter";
|
|
24
24
|
SubscriptionType[SubscriptionType["Trial"] = 0] = "Trial";
|
|
25
|
-
})(SubscriptionType
|
|
25
|
+
})(SubscriptionType || (exports.SubscriptionType = SubscriptionType = {}));
|
|
26
26
|
/**
|
|
27
27
|
* This enum represent the payment intent status
|
|
28
28
|
*/
|
|
@@ -30,7 +30,7 @@ var PaymentIntentStatus;
|
|
|
30
30
|
(function (PaymentIntentStatus) {
|
|
31
31
|
PaymentIntentStatus["REQUIRES_PAYMENT_METHOD"] = "requires_payment_method";
|
|
32
32
|
PaymentIntentStatus["REQUIRES_ACTION"] = "requires_action";
|
|
33
|
-
})(PaymentIntentStatus
|
|
33
|
+
})(PaymentIntentStatus || (exports.PaymentIntentStatus = PaymentIntentStatus = {}));
|
|
34
34
|
/**
|
|
35
35
|
* This enum represent the admitted payment interval
|
|
36
36
|
*/
|
|
@@ -40,4 +40,4 @@ var Interval;
|
|
|
40
40
|
Interval["week"] = "week";
|
|
41
41
|
Interval["month"] = "month";
|
|
42
42
|
Interval["year"] = "year";
|
|
43
|
-
})(Interval
|
|
43
|
+
})(Interval || (exports.Interval = Interval = {}));
|
package/dist/api/User.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ConsentsInformation } from './UserConsents';
|
|
|
2
2
|
/**
|
|
3
3
|
* This type represent the data needed to make a get user API request
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type GetUserRequest = {
|
|
6
6
|
/**
|
|
7
7
|
* The user username
|
|
8
8
|
*/
|
|
@@ -11,7 +11,7 @@ export declare type GetUserRequest = {
|
|
|
11
11
|
/**
|
|
12
12
|
* This type represent the model for a user
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type UserDetails = {
|
|
15
15
|
/**
|
|
16
16
|
* The user id
|
|
17
17
|
*/
|
|
@@ -32,7 +32,7 @@ export declare type UserDetails = {
|
|
|
32
32
|
/**
|
|
33
33
|
* This type represent the response of a get current user API request
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
35
|
+
export type GetCurrentUserResponse = {
|
|
36
36
|
/**
|
|
37
37
|
* The current user details
|
|
38
38
|
*/
|
|
@@ -45,11 +45,11 @@ export declare type GetCurrentUserResponse = {
|
|
|
45
45
|
/**
|
|
46
46
|
* This type represent the data needed to make a list user by space API request
|
|
47
47
|
*/
|
|
48
|
-
export
|
|
48
|
+
export type ListUserBySpaceRequest = {};
|
|
49
49
|
/**
|
|
50
50
|
* This type represent the model of a user by space
|
|
51
51
|
*/
|
|
52
|
-
export
|
|
52
|
+
export type UserBySpace = {
|
|
53
53
|
/**
|
|
54
54
|
* The unique user id
|
|
55
55
|
*/
|
|
@@ -82,11 +82,11 @@ export declare type UserBySpace = {
|
|
|
82
82
|
/**
|
|
83
83
|
* This type represent the response of a list user by space API response
|
|
84
84
|
*/
|
|
85
|
-
export
|
|
85
|
+
export type ListUserBySpaceResponse = UserBySpace[];
|
|
86
86
|
/**
|
|
87
87
|
* This type represent the data needed to make a verify email API request
|
|
88
88
|
*/
|
|
89
|
-
export
|
|
89
|
+
export type VerifyEmailRequest = {
|
|
90
90
|
/**
|
|
91
91
|
* The verification token to verify the email
|
|
92
92
|
*/
|
|
@@ -95,7 +95,7 @@ export declare type VerifyEmailRequest = {
|
|
|
95
95
|
/**
|
|
96
96
|
* This type represent the response of a verify email API request
|
|
97
97
|
*/
|
|
98
|
-
export
|
|
98
|
+
export type VerifyEmailResponse = boolean;
|
|
99
99
|
/**
|
|
100
100
|
* This type represent the data needed to make a remove user API request
|
|
101
101
|
*/
|
|
@@ -104,12 +104,12 @@ export interface RemoveUserRequest {
|
|
|
104
104
|
/**
|
|
105
105
|
* This type represent the response of a remove user API request
|
|
106
106
|
*/
|
|
107
|
-
export
|
|
107
|
+
export type RemoveUserResponse = boolean;
|
|
108
108
|
/**
|
|
109
109
|
* This type represent the data needed to make a request email verification API request
|
|
110
110
|
*/
|
|
111
|
-
export
|
|
111
|
+
export type RequestEmailVerificationRequest = {};
|
|
112
112
|
/**
|
|
113
113
|
* This type represent the response of a request email verification API request
|
|
114
114
|
*/
|
|
115
|
-
export
|
|
115
|
+
export type RequestEmailVerificationResponse = boolean;
|
|
@@ -9,7 +9,7 @@ export declare enum ConsentTypes {
|
|
|
9
9
|
/**
|
|
10
10
|
* This type represent the model of consent information
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export type ConsentInformation = {
|
|
13
13
|
/**
|
|
14
14
|
* The consent accepted version
|
|
15
15
|
*/
|
|
@@ -26,7 +26,7 @@ export declare type ConsentInformation = {
|
|
|
26
26
|
/**
|
|
27
27
|
* This type represent the consents information
|
|
28
28
|
*/
|
|
29
|
-
export
|
|
29
|
+
export type ConsentsInformation = {
|
|
30
30
|
/**
|
|
31
31
|
* The terms and conditions consent information
|
|
32
32
|
*/
|
|
@@ -43,7 +43,7 @@ export declare type ConsentsInformation = {
|
|
|
43
43
|
/**
|
|
44
44
|
* This type represent the data needed to make an accept consents API request
|
|
45
45
|
*/
|
|
46
|
-
export
|
|
46
|
+
export type AcceptConsentsRequest = {
|
|
47
47
|
/**
|
|
48
48
|
* The terms and condition policy accepted version
|
|
49
49
|
*/
|
|
@@ -60,11 +60,11 @@ export declare type AcceptConsentsRequest = {
|
|
|
60
60
|
/**
|
|
61
61
|
* This type represent the response of an accept consents API request
|
|
62
62
|
*/
|
|
63
|
-
export
|
|
63
|
+
export type AcceptConsentsResponse = boolean;
|
|
64
64
|
/**
|
|
65
65
|
* This type represent the data needed to make an update consent API request
|
|
66
66
|
*/
|
|
67
|
-
export
|
|
67
|
+
export type UpdateConsentRequest = {
|
|
68
68
|
/**
|
|
69
69
|
* The consent type to update
|
|
70
70
|
*/
|
|
@@ -77,8 +77,8 @@ export declare type UpdateConsentRequest = {
|
|
|
77
77
|
/**
|
|
78
78
|
* This type represent the response of an update consent API request
|
|
79
79
|
*/
|
|
80
|
-
export
|
|
80
|
+
export type UpdateConsentResponse = boolean;
|
|
81
81
|
/**
|
|
82
82
|
* This type represent the response of a remove marketing consent API request
|
|
83
83
|
*/
|
|
84
|
-
export
|
|
84
|
+
export type RemoveMarketingConsentResponse = boolean;
|
package/dist/api/UserConsents.js
CHANGED
|
@@ -9,4 +9,4 @@ var ConsentTypes;
|
|
|
9
9
|
ConsentTypes["TermsAndConditionsPolicy"] = "termsAndConditionsPolicy";
|
|
10
10
|
ConsentTypes["PrivacyPolicy"] = "privacyPolicy";
|
|
11
11
|
ConsentTypes["MarketingPolicy"] = "marketingPolicy";
|
|
12
|
-
})(ConsentTypes
|
|
12
|
+
})(ConsentTypes || (exports.ConsentTypes = ConsentTypes = {}));
|
|
@@ -29,7 +29,7 @@ export declare enum UserProfileIds {
|
|
|
29
29
|
/**
|
|
30
30
|
* This type represent the model of a user permission
|
|
31
31
|
*/
|
|
32
|
-
export
|
|
32
|
+
export type UserPermission = {
|
|
33
33
|
/**
|
|
34
34
|
* The space id of the permissions
|
|
35
35
|
*/
|
|
@@ -50,7 +50,7 @@ export declare type UserPermission = {
|
|
|
50
50
|
/**
|
|
51
51
|
* This type represent the data needed to make a change space profile for user API request
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
export type ChangeSpaceProfileForUserRequest = {
|
|
54
54
|
/**
|
|
55
55
|
* The user sub (the unique user id)
|
|
56
56
|
*/
|
|
@@ -63,4 +63,4 @@ export declare type ChangeSpaceProfileForUserRequest = {
|
|
|
63
63
|
/**
|
|
64
64
|
* This type represent the response of a change space profile for user API request
|
|
65
65
|
*/
|
|
66
|
-
export
|
|
66
|
+
export type ChangeSpaceProfileForUserResponse = boolean;
|
|
@@ -16,7 +16,7 @@ var UserPermissionIds;
|
|
|
16
16
|
UserPermissionIds["MANAGE_SPACE_PROFILES"] = "manage_space_profiles";
|
|
17
17
|
UserPermissionIds["MANAGE_SPACE_WEBHOOKS"] = "manage_space_webhooks";
|
|
18
18
|
UserPermissionIds["READ_SPACE"] = "read_space";
|
|
19
|
-
})(UserPermissionIds
|
|
19
|
+
})(UserPermissionIds || (exports.UserPermissionIds = UserPermissionIds = {}));
|
|
20
20
|
/**
|
|
21
21
|
* This enum represent al possible user profile ids
|
|
22
22
|
*/
|
|
@@ -30,4 +30,4 @@ var UserProfileIds;
|
|
|
30
30
|
UserProfileIds["CONTENT_EDITOR"] = "content_editor";
|
|
31
31
|
UserProfileIds["REPOSITORY_MANAGER"] = "repository_manager";
|
|
32
32
|
UserProfileIds["LIVE_PUBLISHING_MANAGER"] = "live_publishing_manager";
|
|
33
|
-
})(UserProfileIds
|
|
33
|
+
})(UserProfileIds || (exports.UserProfileIds = UserProfileIds = {}));
|
package/dist/api/Webhooks.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare enum WebhookLifecycleEvents {
|
|
|
8
8
|
/**
|
|
9
9
|
* This type represent the model of a webhook
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type Webhook = {
|
|
12
12
|
/**
|
|
13
13
|
* The space di where the webhook belong
|
|
14
14
|
*/
|
|
@@ -57,7 +57,7 @@ export declare type Webhook = {
|
|
|
57
57
|
/**
|
|
58
58
|
* Thi type represent the data needed to make a list of webhook API request
|
|
59
59
|
*/
|
|
60
|
-
export
|
|
60
|
+
export type ListWebhookRequest = {
|
|
61
61
|
/**
|
|
62
62
|
* This filter is used to search webhooks only for the inserted event type
|
|
63
63
|
*/
|
|
@@ -66,11 +66,11 @@ export declare type ListWebhookRequest = {
|
|
|
66
66
|
/**
|
|
67
67
|
* This type represent the response of the list of webhook API request
|
|
68
68
|
*/
|
|
69
|
-
export
|
|
69
|
+
export type ListWebhookResponse = Webhook[];
|
|
70
70
|
/**
|
|
71
71
|
* This type represent the data needed to make a get webhook API request
|
|
72
72
|
*/
|
|
73
|
-
export
|
|
73
|
+
export type GetWebhookRequest = {
|
|
74
74
|
/**
|
|
75
75
|
* The webhook unique id
|
|
76
76
|
*/
|
|
@@ -79,11 +79,11 @@ export declare type GetWebhookRequest = {
|
|
|
79
79
|
/**
|
|
80
80
|
* This data represent the response of a get webhook API request
|
|
81
81
|
*/
|
|
82
|
-
export
|
|
82
|
+
export type GetWebhookResponse = Webhook;
|
|
83
83
|
/**
|
|
84
84
|
* This data represent the data needed to make a save webhook API request
|
|
85
85
|
*/
|
|
86
|
-
export
|
|
86
|
+
export type SaveWebhookRequest = {
|
|
87
87
|
/**
|
|
88
88
|
* The webhook url to call
|
|
89
89
|
*/
|
|
@@ -100,11 +100,11 @@ export declare type SaveWebhookRequest = {
|
|
|
100
100
|
/**
|
|
101
101
|
* This type represent the response of the save webhook API request
|
|
102
102
|
*/
|
|
103
|
-
export
|
|
103
|
+
export type SaveWebhookResponse = Webhook;
|
|
104
104
|
/**
|
|
105
105
|
* This type represent the data needed to make an update webhook request
|
|
106
106
|
*/
|
|
107
|
-
export
|
|
107
|
+
export type UpdateWebhookRequest = {
|
|
108
108
|
/**
|
|
109
109
|
* The webhook url to call
|
|
110
110
|
*/
|
|
@@ -121,17 +121,17 @@ export declare type UpdateWebhookRequest = {
|
|
|
121
121
|
/**
|
|
122
122
|
* This type represent the response of the update webhook API request
|
|
123
123
|
*/
|
|
124
|
-
export
|
|
124
|
+
export type UpdateWebhookResponse = Webhook;
|
|
125
125
|
/**
|
|
126
126
|
* This type represent the data needed to make a delete webhook API request
|
|
127
127
|
*/
|
|
128
|
-
export
|
|
128
|
+
export type DeleteWebhookRequest = {
|
|
129
129
|
id: string;
|
|
130
130
|
};
|
|
131
131
|
/**
|
|
132
132
|
* This type represent the response of a delete webhook API request
|
|
133
133
|
*/
|
|
134
|
-
export
|
|
135
|
-
export
|
|
134
|
+
export type DeleteWebhookResponse = boolean;
|
|
135
|
+
export type GetWebhookPublicKeyResponse = {
|
|
136
136
|
key: string;
|
|
137
137
|
};
|
package/dist/api/Webhooks.js
CHANGED
|
@@ -8,4 +8,4 @@ var WebhookLifecycleEvents;
|
|
|
8
8
|
(function (WebhookLifecycleEvents) {
|
|
9
9
|
WebhookLifecycleEvents["PublishToLive"] = "publish_to_live";
|
|
10
10
|
WebhookLifecycleEvents["PublishToStage"] = "publish_to_stage";
|
|
11
|
-
})(WebhookLifecycleEvents
|
|
11
|
+
})(WebhookLifecycleEvents || (exports.WebhookLifecycleEvents = WebhookLifecycleEvents = {}));
|
package/dist/api/common.d.ts
CHANGED
package/dist/api/common.js
CHANGED
|
@@ -8,4 +8,4 @@ var StagingEnvironment;
|
|
|
8
8
|
(function (StagingEnvironment) {
|
|
9
9
|
StagingEnvironment["STAGE"] = "stage";
|
|
10
10
|
StagingEnvironment["LIVE"] = "live";
|
|
11
|
-
})(StagingEnvironment
|
|
11
|
+
})(StagingEnvironment || (exports.StagingEnvironment = StagingEnvironment = {}));
|
package/dist/api/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|