@contentchef/contentchef-types 2.6.0-alpha.0 → 2.6.1-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.
Files changed (44) hide show
  1. package/dist/api/AccessToken.d.ts +7 -7
  2. package/dist/api/AuditLog.d.ts +12 -12
  3. package/dist/api/AuditLog.js +3 -3
  4. package/dist/api/Author.d.ts +1 -1
  5. package/dist/api/Channel.d.ts +12 -12
  6. package/dist/api/Content.d.ts +53 -33
  7. package/dist/api/Content.js +3 -3
  8. package/dist/api/ContentDefinition.d.ts +31 -23
  9. package/dist/api/ContentDefinition.js +1 -1
  10. package/dist/api/ContentDefinitionSchema.d.ts +48 -48
  11. package/dist/api/ContentDefinitionSchema.js +3 -3
  12. package/dist/api/ContentRepository.d.ts +16 -16
  13. package/dist/api/ContentTag.d.ts +2 -2
  14. package/dist/api/ContentTranslation.d.ts +15 -15
  15. package/dist/api/ContentTranslation.js +1 -1
  16. package/dist/api/Extension.d.ts +8 -8
  17. package/dist/api/Invites.d.ts +2 -2
  18. package/dist/api/MediaGallery.d.ts +34 -34
  19. package/dist/api/PublishedContent.d.ts +42 -20
  20. package/dist/api/PublishingRequest.d.ts +7 -7
  21. package/dist/api/PublishingRequest.js +1 -1
  22. package/dist/api/Space.d.ts +21 -21
  23. package/dist/api/Subscription.d.ts +27 -27
  24. package/dist/api/Subscription.js +4 -4
  25. package/dist/api/User.d.ts +11 -11
  26. package/dist/api/UserConsents.d.ts +7 -7
  27. package/dist/api/UserConsents.js +1 -1
  28. package/dist/api/UserPermission.d.ts +3 -3
  29. package/dist/api/UserPermission.js +2 -2
  30. package/dist/api/Webhooks.d.ts +14 -13
  31. package/dist/api/Webhooks.js +3 -2
  32. package/dist/api/common.d.ts +1 -1
  33. package/dist/api/common.js +1 -1
  34. package/dist/api/index.js +5 -1
  35. package/dist/extension/index.d.ts +10 -10
  36. package/dist/extension/index.js +1 -1
  37. package/dist/index.js +5 -1
  38. package/lib/api/Content.ts +25 -0
  39. package/lib/api/ContentDefinition.ts +10 -0
  40. package/lib/api/ContentDefinitionSchema.ts +2 -2
  41. package/lib/api/PublishedContent.ts +184 -160
  42. package/lib/api/Webhooks.ts +2 -1
  43. package/package.json +3 -4
  44. package/dist/.DS_Store +0 -0
@@ -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 declare type ExportedApiKey = {
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 declare type ListSpaceApiCredentials = {
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 declare type ListSpaceApiCredentialsResponse = ListSpaceApiCredentials;
54
+ export type ListSpaceApiCredentialsResponse = ListSpaceApiCredentials;
55
55
  /**
56
56
  * This type represent the model of a space api credentials
57
57
  */
58
- export declare type SpaceApiCredentials = {
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 declare type SpaceApiCredentialsResponse = SpaceApiCredentials;
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 declare type ContentStats = {
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 declare type ContentRepositoryStats = {
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 declare type MediaGalleryStats = {
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 declare type TopContentDefinition = {
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 declare type ContentDefinitionStats = {
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 declare type SpaceStats = ContentStats & ContentDefinitionStats & ContentRepositoryStats & MediaGalleryStats;
152
+ export type SpaceStats = ContentStats & ContentDefinitionStats & ContentRepositoryStats & MediaGalleryStats;
153
153
  /**
154
154
  * Space locale structure
155
155
  */
156
- export declare type SpaceLocale = {
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 declare type GetSpaceLocaleResponse = SpaceLocale;
173
+ export type GetSpaceLocaleResponse = SpaceLocale;
174
174
  /**
175
175
  * Request type when adding a new locale to space
176
176
  */
177
- export declare type AddSpaceLocaleRequest = {
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 declare type AddSpaceLocaleResponse = SpaceLocale;
186
+ export type AddSpaceLocaleResponse = SpaceLocale;
187
187
  /**
188
188
  * Request type when removing a locale
189
189
  */
190
- export declare type RemoveSpaceLocaleRequest = {
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 declare type RemoveSpaceLocaleResponse = SpaceLocale;
199
+ export type RemoveSpaceLocaleResponse = SpaceLocale;
200
200
  /**
201
201
  * Request type to update a locale to the space's default
202
202
  */
203
- export declare type UpdateSpaceDefaultLocaleRequest = {
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 declare type UpdateSpaceDefaultLocaleResponse = SpaceLocale;
212
+ export type UpdateSpaceDefaultLocaleResponse = SpaceLocale;
213
213
  /**
214
214
  * Request type to update space's fallback locale
215
215
  */
216
- export declare type UpdateSpaceFallbackLocaleRequest = {
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 declare type UpdateSpaceFallbackLocaleResponse = SpaceLocale;
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 declare type SubscriptionPlan = {
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 declare type SubscriptionResponse = {
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 declare type CreateSubscriptionRequest = {
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 declare type CreateSubscriptionResponse = SubscriptionResponse;
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 declare type CreateSubscriptionSpaceRequest = {
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 declare type CreateSubscriptionSpaceResponse = boolean;
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 declare type GetSubscriptionRequest = {
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 declare type GetSubscriptionResponse = SubscriptionResponse;
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 declare type GetSubscriptionSummaryRequest = {
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 declare type GetSubscriptionSummaryResponse = {
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 declare type ListSubscriptionRequest = {};
210
+ export type ListSubscriptionRequest = {};
211
211
  /**
212
212
  * This type represent the response of a list subscription API request
213
213
  */
214
- export declare type ListSubscriptionResponse = SubscriptionResponse[];
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 declare type ChangePlanRequest = {
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 declare type ChangePlanResponse = SubscriptionResponse;
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 declare type AttemptPaymentRequest = {
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 declare type AttemptPaymentResponse = SubscriptionResponse;
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 declare type UpdateCustomerSourceRequest = {
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 declare type UpdateCustomerSourceResponse = boolean;
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 declare type CancelSubscriptionRequest = {
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 declare type CancelSubscriptionResponse = boolean;
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 declare type UpdateBillingRequest = {
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 declare type UpdateBillingResponse = BillingInformation;
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 declare type GetBillingRequest = {
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 declare type GetBillingResponse = Partial<BillingInformation>;
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 declare type GetTaxRateRequest = {
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 declare type GetTaxRateResponse = {
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 declare type BillingInformation = {
361
+ export type BillingInformation = {
362
362
  /**
363
363
  * The name of the billing owner
364
364
  */
@@ -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 = exports.SubscriptionState || (exports.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 = exports.SubscriptionType || (exports.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 = exports.PaymentIntentStatus || (exports.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 = exports.Interval || (exports.Interval = {}));
43
+ })(Interval || (exports.Interval = Interval = {}));
@@ -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 declare type GetUserRequest = {
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 declare type UserDetails = {
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 declare type GetCurrentUserResponse = {
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 declare type ListUserBySpaceRequest = {};
48
+ export type ListUserBySpaceRequest = {};
49
49
  /**
50
50
  * This type represent the model of a user by space
51
51
  */
52
- export declare type UserBySpace = {
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 declare type ListUserBySpaceResponse = UserBySpace[];
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 declare type VerifyEmailRequest = {
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 declare type VerifyEmailResponse = boolean;
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 declare type RemoveUserResponse = boolean;
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 declare type RequestEmailVerificationRequest = {};
111
+ export type RequestEmailVerificationRequest = {};
112
112
  /**
113
113
  * This type represent the response of a request email verification API request
114
114
  */
115
- export declare type RequestEmailVerificationResponse = boolean;
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 declare type ConsentInformation = {
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 declare type ConsentsInformation = {
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 declare type AcceptConsentsRequest = {
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 declare type AcceptConsentsResponse = boolean;
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 declare type UpdateConsentRequest = {
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 declare type UpdateConsentResponse = boolean;
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 declare type RemoveMarketingConsentResponse = boolean;
84
+ export type RemoveMarketingConsentResponse = boolean;
@@ -9,4 +9,4 @@ var ConsentTypes;
9
9
  ConsentTypes["TermsAndConditionsPolicy"] = "termsAndConditionsPolicy";
10
10
  ConsentTypes["PrivacyPolicy"] = "privacyPolicy";
11
11
  ConsentTypes["MarketingPolicy"] = "marketingPolicy";
12
- })(ConsentTypes = exports.ConsentTypes || (exports.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 declare type UserPermission = {
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 declare type ChangeSpaceProfileForUserRequest = {
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 declare type ChangeSpaceProfileForUserResponse = boolean;
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 = exports.UserPermissionIds || (exports.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 = exports.UserProfileIds || (exports.UserProfileIds = {}));
33
+ })(UserProfileIds || (exports.UserProfileIds = UserProfileIds = {}));
@@ -2,12 +2,13 @@
2
2
  * This enum represent all possible webhook lifecycle events
3
3
  */
4
4
  export declare enum WebhookLifecycleEvents {
5
- PublishToLIve = "publish_to_live"
5
+ PublishToLive = "publish_to_live",
6
+ PublishToStage = "publish_to_stage"
6
7
  }
7
8
  /**
8
9
  * This type represent the model of a webhook
9
10
  */
10
- export declare type Webhook = {
11
+ export type Webhook = {
11
12
  /**
12
13
  * The space di where the webhook belong
13
14
  */
@@ -56,7 +57,7 @@ export declare type Webhook = {
56
57
  /**
57
58
  * Thi type represent the data needed to make a list of webhook API request
58
59
  */
59
- export declare type ListWebhookRequest = {
60
+ export type ListWebhookRequest = {
60
61
  /**
61
62
  * This filter is used to search webhooks only for the inserted event type
62
63
  */
@@ -65,11 +66,11 @@ export declare type ListWebhookRequest = {
65
66
  /**
66
67
  * This type represent the response of the list of webhook API request
67
68
  */
68
- export declare type ListWebhookResponse = Webhook[];
69
+ export type ListWebhookResponse = Webhook[];
69
70
  /**
70
71
  * This type represent the data needed to make a get webhook API request
71
72
  */
72
- export declare type GetWebhookRequest = {
73
+ export type GetWebhookRequest = {
73
74
  /**
74
75
  * The webhook unique id
75
76
  */
@@ -78,11 +79,11 @@ export declare type GetWebhookRequest = {
78
79
  /**
79
80
  * This data represent the response of a get webhook API request
80
81
  */
81
- export declare type GetWebhookResponse = Webhook;
82
+ export type GetWebhookResponse = Webhook;
82
83
  /**
83
84
  * This data represent the data needed to make a save webhook API request
84
85
  */
85
- export declare type SaveWebhookRequest = {
86
+ export type SaveWebhookRequest = {
86
87
  /**
87
88
  * The webhook url to call
88
89
  */
@@ -99,11 +100,11 @@ export declare type SaveWebhookRequest = {
99
100
  /**
100
101
  * This type represent the response of the save webhook API request
101
102
  */
102
- export declare type SaveWebhookResponse = Webhook;
103
+ export type SaveWebhookResponse = Webhook;
103
104
  /**
104
105
  * This type represent the data needed to make an update webhook request
105
106
  */
106
- export declare type UpdateWebhookRequest = {
107
+ export type UpdateWebhookRequest = {
107
108
  /**
108
109
  * The webhook url to call
109
110
  */
@@ -120,17 +121,17 @@ export declare type UpdateWebhookRequest = {
120
121
  /**
121
122
  * This type represent the response of the update webhook API request
122
123
  */
123
- export declare type UpdateWebhookResponse = Webhook;
124
+ export type UpdateWebhookResponse = Webhook;
124
125
  /**
125
126
  * This type represent the data needed to make a delete webhook API request
126
127
  */
127
- export declare type DeleteWebhookRequest = {
128
+ export type DeleteWebhookRequest = {
128
129
  id: string;
129
130
  };
130
131
  /**
131
132
  * This type represent the response of a delete webhook API request
132
133
  */
133
- export declare type DeleteWebhookResponse = boolean;
134
- export declare type GetWebhookPublicKeyResponse = {
134
+ export type DeleteWebhookResponse = boolean;
135
+ export type GetWebhookPublicKeyResponse = {
135
136
  key: string;
136
137
  };
@@ -6,5 +6,6 @@ exports.WebhookLifecycleEvents = void 0;
6
6
  */
7
7
  var WebhookLifecycleEvents;
8
8
  (function (WebhookLifecycleEvents) {
9
- WebhookLifecycleEvents["PublishToLIve"] = "publish_to_live";
10
- })(WebhookLifecycleEvents = exports.WebhookLifecycleEvents || (exports.WebhookLifecycleEvents = {}));
9
+ WebhookLifecycleEvents["PublishToLive"] = "publish_to_live";
10
+ WebhookLifecycleEvents["PublishToStage"] = "publish_to_stage";
11
+ })(WebhookLifecycleEvents || (exports.WebhookLifecycleEvents = WebhookLifecycleEvents = {}));
@@ -2,7 +2,7 @@
2
2
  * This type represent the model of a paged list response
3
3
  * @template T The type of item returned inside the items attribute.
4
4
  */
5
- export declare type PagedListResponse<T> = {
5
+ export type PagedListResponse<T> = {
6
6
  items: T[];
7
7
  total: number;
8
8
  skip: number;
@@ -8,4 +8,4 @@ var StagingEnvironment;
8
8
  (function (StagingEnvironment) {
9
9
  StagingEnvironment["STAGE"] = "stage";
10
10
  StagingEnvironment["LIVE"] = "live";
11
- })(StagingEnvironment = exports.StagingEnvironment || (exports.StagingEnvironment = {}));
11
+ })(StagingEnvironment || (exports.StagingEnvironment = StagingEnvironment = {}));