@wix/auto_sdk_ecom_delivery-profile 1.0.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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +21 -0
  11. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js +32 -0
  12. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +1 -0
  13. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +78 -0
  14. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js +590 -0
  15. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +1 -0
  16. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +47 -0
  17. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js +363 -0
  18. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +1 -0
  19. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +167 -0
  20. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js +117 -0
  21. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +1 -0
  22. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts +1053 -0
  23. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js +135 -0
  24. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +1 -0
  25. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +1569 -0
  26. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js +935 -0
  27. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +21 -0
  39. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.context.js +21 -0
  40. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +1 -0
  41. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +78 -0
  42. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.http.js +570 -0
  43. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +1 -0
  44. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +47 -0
  45. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js +320 -0
  46. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +1 -0
  47. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +167 -0
  48. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.public.js +89 -0
  49. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +1 -0
  50. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts +1053 -0
  51. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.types.js +132 -0
  52. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +1 -0
  53. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +1569 -0
  54. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js +892 -0
  55. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +21 -0
  66. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js +32 -0
  67. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +1 -0
  68. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +78 -0
  69. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js +590 -0
  70. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +1 -0
  71. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +47 -0
  72. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js +363 -0
  73. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +1 -0
  74. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +167 -0
  75. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js +117 -0
  76. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +1 -0
  77. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts +1053 -0
  78. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js +135 -0
  79. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +1 -0
  80. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +1569 -0
  81. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js +935 -0
  82. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +21 -0
  93. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.context.js +21 -0
  94. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +1 -0
  95. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +78 -0
  96. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.http.js +570 -0
  97. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +1 -0
  98. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +47 -0
  99. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js +320 -0
  100. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +1 -0
  101. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +167 -0
  102. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.public.js +89 -0
  103. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +1 -0
  104. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts +1053 -0
  105. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.types.js +132 -0
  106. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +1 -0
  107. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +1569 -0
  108. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js +892 -0
  109. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,1053 @@
1
+ /**
2
+ * A DeliveryProfile is a ...
3
+ * You can ...
4
+ * Read more about DeliveryProfiles
5
+ * in this [article](<LINK_TO_KB_ARTICLE>).
6
+ */
7
+ export interface DeliveryProfile {
8
+ /**
9
+ * DeliveryProfile ID.
10
+ * @readonly
11
+ */
12
+ id?: string | null;
13
+ /** DeliveryProfile name. */
14
+ name?: string | null;
15
+ /**
16
+ * Flags this DeliveryProfile as the default DeliveryProfile.
17
+ * @readonly
18
+ */
19
+ default?: boolean | null;
20
+ /** A list of DeliveryProfile regions. */
21
+ deliveryRegions?: DeliveryRegion[];
22
+ /** ID of the delivery profile's creator. */
23
+ createdBy?: CreatedBy;
24
+ /**
25
+ * DeliveryProfile revision.
26
+ * @readonly
27
+ */
28
+ revision?: string | null;
29
+ /**
30
+ * Date and time the DeliveryProfile was created.
31
+ * @readonly
32
+ */
33
+ createdDate?: Date | null;
34
+ /**
35
+ * Date and time the DeliveryProfile was last updated.
36
+ * @readonly
37
+ */
38
+ updatedDate?: Date | null;
39
+ /** [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields ) must be configured in the app dashboard before they can be accessed with API calls. */
40
+ extendedFields?: ExtendedFields;
41
+ }
42
+ /** DeliveryRegion can be used to config a Delivery Destinations with its providers */
43
+ export interface DeliveryRegion {
44
+ /**
45
+ * The delivery region id.
46
+ * @readonly
47
+ */
48
+ id?: string | null;
49
+ /** Optional name of the rule, for example: "Domestic". */
50
+ name?: string | null;
51
+ /** Indicates that this rule is active, default value is true. */
52
+ active?: boolean | null;
53
+ /**
54
+ * The spi implementers id of shipping-rates spi, assigned to this rule.
55
+ * @readonly
56
+ */
57
+ deliveryCarriers?: DeliveryCarrier[];
58
+ /** The operation region of this rule, if empty than it is global. */
59
+ destinations?: Destination[];
60
+ /**
61
+ * Represents the time this Profile was created
62
+ * @readonly
63
+ */
64
+ createdDate?: Date | null;
65
+ }
66
+ export interface DeliveryCarrier {
67
+ /** AppDefId of the provider as it is registered in the [app dashboard](https://dev.wix.com/dc3/my-apps/). Can be fetched by listDeliveryProvider api. */
68
+ appId?: string;
69
+ /** Backup rate to be used in case the cost returned by the provider is empty. */
70
+ backupRate?: BackupRate;
71
+ /** Additional charges to add to the delivery rate for this carrier */
72
+ additionalCharges?: AdditionalCharge[];
73
+ }
74
+ export interface BackupRate {
75
+ /** Default rate prefix that will concatenate to the delivery options the provider will offer. */
76
+ prefix?: string | null;
77
+ /** Default rate price for all delivery options that the provider will offer. */
78
+ rate?: string | null;
79
+ /** Should the default rate be used. Default value is false. */
80
+ enabled?: boolean | null;
81
+ }
82
+ export interface AdditionalCharge {
83
+ /** Additional charge type. */
84
+ type?: ChargeType;
85
+ /** Description of the additional charge. For example, `"Handling fee of $5 applied for gift wrapping"`. */
86
+ description?: string | null;
87
+ /** Cost of additional charge. For example, `12.5`. */
88
+ price?: string;
89
+ }
90
+ export declare enum ChargeType {
91
+ HANDLING_FEE = "HANDLING_FEE"
92
+ }
93
+ /** Defines the area inside one country that is relevant for this rule. */
94
+ export interface Destination {
95
+ /** 2-letters code represents the country of the delivery destinations */
96
+ countryCode?: string;
97
+ /**
98
+ * subdivisions - Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).
99
+ * If empty, the rule applies to the entire country.
100
+ */
101
+ subdivisions?: string[];
102
+ }
103
+ export interface CreatedBy extends CreatedByIdOneOf {
104
+ /** App ID - when the delivery profile was created by an external application or Wix service. */
105
+ appId?: string | null;
106
+ /** User ID - when the delivery profile was created by a Wix user. */
107
+ userId?: string | null;
108
+ }
109
+ /** @oneof */
110
+ export interface CreatedByIdOneOf {
111
+ /** App ID - when the delivery profile was created by an external application or Wix service. */
112
+ appId?: string | null;
113
+ /** User ID - when the delivery profile was created by a Wix user. */
114
+ userId?: string | null;
115
+ }
116
+ export interface ExtendedFields {
117
+ /**
118
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
119
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
120
+ *
121
+ * You can only access fields for which you have the appropriate permissions.
122
+ *
123
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
124
+ */
125
+ namespaces?: Record<string, Record<string, any>>;
126
+ }
127
+ export interface DeliveryRegionAdded {
128
+ /** The DeliveryProfile owns this region. */
129
+ deliveryProfileId?: string;
130
+ /**
131
+ * The delivery region id.
132
+ * @readonly
133
+ */
134
+ deliveryRegionId?: string | null;
135
+ /** Optional name of the rule, for example: "Domestic". */
136
+ name?: string | null;
137
+ /** Indicates that this rule is active, default value is true. */
138
+ active?: boolean | null;
139
+ /**
140
+ * The spi implementers id of shipping-rates spi, assigned to this rule.
141
+ * @readonly
142
+ */
143
+ deliveryCarriers?: DeliveryCarrier[];
144
+ /** The operation region of this rule, if empty than it is global. */
145
+ destinations?: Destination[];
146
+ /**
147
+ * Represents the time this Profile was created
148
+ * @readonly
149
+ */
150
+ createdDate?: Date | null;
151
+ }
152
+ export interface DeliveryRegionRemoved {
153
+ /** The DeliveryProfile owns this region. */
154
+ deliveryProfileId?: string;
155
+ /** The removed DeliveryRegion id. */
156
+ deliveryRegionId?: string;
157
+ }
158
+ export interface DeliveryRegionUpdated {
159
+ /** The DeliveryProfile owns this DeliveryRegion. */
160
+ deliveryProfileId?: string;
161
+ /**
162
+ * The delivery region id.
163
+ * @readonly
164
+ */
165
+ deliveryRegionId?: string | null;
166
+ /** Optional name of the rule, for example: "Domestic". */
167
+ name?: string | null;
168
+ /** Indicates that this rule is active, default value is true. */
169
+ active?: boolean | null;
170
+ /**
171
+ * The spi implementers id of shipping-rates spi, assigned to this rule.
172
+ * @readonly
173
+ */
174
+ deliveryCarriers?: DeliveryCarrier[];
175
+ /** The operation region of this rule, if empty than it is global. */
176
+ destinations?: Destination[];
177
+ /**
178
+ * Represents the time this Profile was created
179
+ * @readonly
180
+ */
181
+ createdDate?: Date | null;
182
+ }
183
+ export interface CreateDeliveryProfileRequest {
184
+ /** DeliveryProfile to be created. */
185
+ deliveryProfile: DeliveryProfile;
186
+ }
187
+ export interface CreateDeliveryProfileResponse {
188
+ /** The created DeliveryProfile. */
189
+ deliveryProfile?: DeliveryProfile;
190
+ }
191
+ export interface GetDeliveryProfileRequest {
192
+ /** ID of the DeliveryProfile to retrieve. */
193
+ deliveryProfileId: string;
194
+ }
195
+ export interface GetDeliveryProfileResponse {
196
+ /** The requested DeliveryProfile. */
197
+ deliveryProfile?: DeliveryProfile;
198
+ }
199
+ export interface UpdateDeliveryProfileRequest {
200
+ /** DeliveryProfile to be updated, may be partial. */
201
+ deliveryProfile: DeliveryProfile;
202
+ }
203
+ export interface UpdateDeliveryProfileResponse {
204
+ /** Updated DeliveryProfile. */
205
+ deliveryProfile?: DeliveryProfile;
206
+ }
207
+ export interface DeleteDeliveryProfileRequest {
208
+ /** Id of the DeliveryProfile to delete. */
209
+ deliveryProfileId: string;
210
+ }
211
+ export interface DeleteDeliveryProfileResponse {
212
+ }
213
+ export interface QueryDeliveryProfilesRequest {
214
+ /** WQL expression. */
215
+ query?: CursorQuery;
216
+ }
217
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
218
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
219
+ cursorPaging?: CursorPaging;
220
+ /**
221
+ * Filter object in the following format:
222
+ * `"filter" : {
223
+ * "fieldName1": "value1",
224
+ * "fieldName2":{"$operator":"value2"}
225
+ * }`
226
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
227
+ */
228
+ filter?: Record<string, any> | null;
229
+ /**
230
+ * Sort object in the following format:
231
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
232
+ */
233
+ sort?: Sorting[];
234
+ }
235
+ /** @oneof */
236
+ export interface CursorQueryPagingMethodOneOf {
237
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
238
+ cursorPaging?: CursorPaging;
239
+ }
240
+ export interface Sorting {
241
+ /** Name of the field to sort by. */
242
+ fieldName?: string;
243
+ /** Sort order. */
244
+ order?: SortOrder;
245
+ }
246
+ export declare enum SortOrder {
247
+ ASC = "ASC",
248
+ DESC = "DESC"
249
+ }
250
+ export interface CursorPaging {
251
+ /** Maximum number of items to return in the results. */
252
+ limit?: number | null;
253
+ /**
254
+ * Pointer to the next or previous page in the list of results.
255
+ *
256
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
257
+ * Not relevant for the first request.
258
+ */
259
+ cursor?: string | null;
260
+ }
261
+ export interface QueryDeliveryProfilesResponse {
262
+ /** List of DeliveryProfiles. */
263
+ deliveryProfiles?: DeliveryProfile[];
264
+ /** Paging metadata */
265
+ pagingMetadata?: CursorPagingMetadata;
266
+ }
267
+ export interface CursorPagingMetadata {
268
+ /** Number of items returned in the response. */
269
+ count?: number | null;
270
+ /** Cursor strings that point to the next page, previous page, or both. */
271
+ cursors?: Cursors;
272
+ /**
273
+ * Whether there are more pages to retrieve following the current page.
274
+ *
275
+ * + `true`: Another page of results can be retrieved.
276
+ * + `false`: This is the last page.
277
+ */
278
+ hasNext?: boolean | null;
279
+ }
280
+ export interface Cursors {
281
+ /** Cursor string pointing to the next page in the list of results. */
282
+ next?: string | null;
283
+ /** Cursor pointing to the previous page in the list of results. */
284
+ prev?: string | null;
285
+ }
286
+ export interface AddDeliveryRegionRequest {
287
+ /** delivery profile id to associated with the DeliveryRegion */
288
+ deliveryProfileId: string;
289
+ /** DeliveryRegion to be created */
290
+ deliveryRegion: DeliveryRegion;
291
+ /**
292
+ * DeliveryProfile revision.
293
+ * @readonly
294
+ */
295
+ revision?: string | null;
296
+ }
297
+ export interface AddDeliveryRegionResponse {
298
+ /** The updated DeliveryProfile with the new DeliveryRegion */
299
+ deliveryProfile?: DeliveryProfile;
300
+ }
301
+ export interface UpdateDeliveryRegionRequest {
302
+ /** DeliveryProfile id that owns the DeliveryRegion */
303
+ deliveryProfileId: string;
304
+ /** DeliveryRegion to be updated, may be partial */
305
+ deliveryRegion: DeliveryRegion;
306
+ /**
307
+ * DeliveryProfile revision.
308
+ * @readonly
309
+ */
310
+ revision?: string | null;
311
+ }
312
+ export interface UpdateDeliveryRegionResponse {
313
+ /** The updated DeliveryProfile with the updated DeliveryRegion */
314
+ deliveryProfile?: DeliveryProfile;
315
+ }
316
+ export interface RemoveDeliveryRegionRequest {
317
+ /** DeliveryProfile id that owns the DeliveryRegion */
318
+ deliveryProfileId: string;
319
+ /** Id of the DeliveryRegion to delete */
320
+ deliveryRegionId: string;
321
+ /**
322
+ * DeliveryProfile revision.
323
+ * @readonly
324
+ */
325
+ revision?: string | null;
326
+ }
327
+ export interface RemoveDeliveryRegionResponse {
328
+ /** The updated DeliveryProfile without DeliveryRegion */
329
+ deliveryProfile?: DeliveryProfile;
330
+ }
331
+ export interface AddDeliveryCarrierRequest {
332
+ /** delivery_region id to associated with the delivery_carrier. */
333
+ deliveryRegionId: string;
334
+ /** delivery_carrier to be added. */
335
+ deliveryCarrier: DeliveryCarrier;
336
+ }
337
+ export interface AddDeliveryCarrierResponse {
338
+ /** The updated DeliveryProfile */
339
+ deliveryProfile?: DeliveryProfile;
340
+ }
341
+ export interface RemoveDeliveryCarrierRequest {
342
+ /** Id of the DeliveryRegion */
343
+ deliveryRegionId: string;
344
+ /** DeliveryCarrier app id to be removed. */
345
+ appId: string;
346
+ }
347
+ export interface RemoveDeliveryCarrierResponse {
348
+ /** The updated DeliveryProfile */
349
+ deliveryProfile?: DeliveryProfile;
350
+ }
351
+ export interface UpdateDeliveryCarrierRequest {
352
+ /** DeliveryRegion id */
353
+ deliveryRegionId: string;
354
+ /** Updated delivery_carrier */
355
+ deliveryCarrier?: DeliveryCarrier;
356
+ }
357
+ export interface UpdateDeliveryCarrierResponse {
358
+ /** The updated DeliveryProfile with the updated DeliveryCarrier */
359
+ deliveryProfile?: DeliveryProfile;
360
+ }
361
+ export interface ListDeliveryCarrierDetailsRequest {
362
+ }
363
+ export interface ListDeliveryCarrierDetailsResponse {
364
+ /** The list of carrier or multi-carrier services that has implemented the spi and installed on the current context(site) */
365
+ deliveryCarrierDetails?: DeliveryCarrierDetails[];
366
+ }
367
+ export interface DeliveryCarrierDetails {
368
+ /** The id of the provider. */
369
+ id?: string;
370
+ /** The name of the Provider. */
371
+ displayName?: string;
372
+ /** Provider's description. */
373
+ description?: string | null;
374
+ /** A link to learn more about the provider. */
375
+ learnMoreUrl?: string | null;
376
+ /** Dashboard URL for the provider. */
377
+ dashboardUrl?: string | null;
378
+ /** If the provider fallback definition is mandatory. */
379
+ fallbackDefinitionMandatory?: boolean | null;
380
+ /** Thumbnail image for provider. */
381
+ thumbnailUrl?: string | null;
382
+ /** feature toggle initialized with default value = false. should be true if implemented by spi provider */
383
+ toggleGetCarrierSettingsEnabled?: boolean;
384
+ /** feature toggle initialized with default value = false. should be true if implemented by spi provider */
385
+ toggleUpdateCarrierActiveStatusEnabled?: boolean;
386
+ }
387
+ export interface ListInstalledDeliveryCarriersRequest {
388
+ }
389
+ export interface ListInstalledDeliveryCarriersResponse {
390
+ /** The list of carrier or multi-carrier services that has implemented the spi and installed on the current context(site) */
391
+ installedDeliveryCarriers?: InstalledDeliveryCarrier[];
392
+ }
393
+ export interface InstalledDeliveryCarrier {
394
+ /** The id of the provider. */
395
+ id?: string;
396
+ /** The name of the Provider. */
397
+ displayName?: string;
398
+ /** Provider's description. */
399
+ description?: string | null;
400
+ /** A link to learn more about the provider. */
401
+ learnMoreUrl?: string | null;
402
+ /** Dashboard URL for the provider. */
403
+ dashboardUrl?: string | null;
404
+ /** If the provider fallback definition is mandatory. */
405
+ fallbackDefinitionMandatory?: boolean | null;
406
+ /** Thumbnail image for provider. */
407
+ thumbnailUrl?: string | null;
408
+ /** feature toggle initialized with default value = false. should be true if implemented by spi provider */
409
+ toggleGetCarrierSettingsEnabled?: boolean;
410
+ }
411
+ export interface ListDeliveryDestinationsRequest {
412
+ }
413
+ export interface ListDeliveryDestinationsResponse {
414
+ /** Scope of destinations, when worldwide is selected, the destinations list will be empty. */
415
+ destinationScope?: DestinationScope;
416
+ /** The list of destinations */
417
+ destinations?: Destination[];
418
+ }
419
+ export declare enum DestinationScope {
420
+ /** No additional destinations are requested */
421
+ SPECIFIC_DESTINATIONS = "SPECIFIC_DESTINATIONS",
422
+ /** All Destinations */
423
+ WORLDWIDE = "WORLDWIDE"
424
+ }
425
+ export interface ListDeliveryCarriersRequest {
426
+ /** Delivery profile id. */
427
+ deliveryProfileId: string;
428
+ /** Delivery app ids to get settings for. */
429
+ appIds?: string[];
430
+ }
431
+ export interface ListDeliveryCarriersResponse {
432
+ /** The list of delivery settings for the given requests */
433
+ results?: ListDeliveryCarriersResult[];
434
+ /** Bulk action metadata. */
435
+ bulkActionMetadata?: BulkActionMetadata;
436
+ }
437
+ export interface ListDeliveryCarriersResult {
438
+ /** Information about successful action or error for failure. */
439
+ deliveryCarrierMetadata?: ItemMetadata;
440
+ /** The delivery carrier details */
441
+ deliveryCarrierDetails?: DeliveryCarrierDetails;
442
+ /** The delivery settings for the delivery profile and delivery region. */
443
+ deliveryCarrierRegionalSettings?: DeliveryCarrierRegionalSettings[];
444
+ }
445
+ export interface ItemMetadata {
446
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
447
+ id?: string | null;
448
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
449
+ success?: boolean;
450
+ /** Details about the error in case of failure. */
451
+ error?: ApplicationError;
452
+ }
453
+ export interface ApplicationError {
454
+ /** Error code. */
455
+ code?: string;
456
+ /** Description of the error. */
457
+ description?: string;
458
+ /** Data related to the error. */
459
+ data?: Record<string, any> | null;
460
+ }
461
+ export interface DeliveryCarrierRegionalSettings {
462
+ /** The delivery rule id. */
463
+ deliveryRegionId?: string;
464
+ /** The shipping table values that are associated with the delivery rule. Can be multiple if the provider is an aggregator of multiple carriers. */
465
+ dashboardTables?: DashboardTable[];
466
+ }
467
+ export interface DashboardTable {
468
+ /** The title of the delivery settings that will be displayed in the UI. */
469
+ title?: string;
470
+ /** The columns of the delivery settings that will be displayed in the UI. */
471
+ columns?: Column[];
472
+ /** The content of the delivery settings. Each row is a map of column name to value. */
473
+ rows?: Row[];
474
+ }
475
+ export interface Column {
476
+ /** The name of the column. This is used to get the data from the row. */
477
+ key?: string;
478
+ /** The title of the column that will be displayed in the UI. */
479
+ name?: string;
480
+ }
481
+ export interface Row {
482
+ /** The external key of the data presented in a row. This is used to identify the row in the UI for editing. */
483
+ key?: string;
484
+ /**
485
+ * The data presented in the row. The key is the column `name` and the value is the data in the specific row and column.
486
+ * Data will be in JSON format.
487
+ */
488
+ data?: Record<string, any> | null;
489
+ /** The configuration's status of the current row. */
490
+ active?: boolean;
491
+ }
492
+ export interface BulkActionMetadata {
493
+ /** Number of items that were successfully processed. */
494
+ totalSuccesses?: number;
495
+ /** Number of items that couldn't be processed. */
496
+ totalFailures?: number;
497
+ /** Number of failures without details because detailed failure threshold was exceeded. */
498
+ undetailedFailures?: number;
499
+ }
500
+ export interface UpdateCarrierSettingsRequest {
501
+ /** Carrier id. */
502
+ carrierId: string;
503
+ /** Row id triggered the change */
504
+ rowId: string;
505
+ /** New status */
506
+ active: boolean | null;
507
+ }
508
+ export interface UpdateCarrierSettingsResponse {
509
+ }
510
+ export interface UpdateExtendedFieldsRequest {
511
+ /** ID of the entity to update. */
512
+ id: string;
513
+ /** Identifier for the app whose extended fields are being updated. */
514
+ namespace: string;
515
+ /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
516
+ namespaceData: Record<string, any> | null;
517
+ }
518
+ export interface UpdateExtendedFieldsResponse {
519
+ /** Updated DeliveryProfile. */
520
+ deliveryProfile?: DeliveryProfile;
521
+ }
522
+ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
523
+ /** Emitted on a meta site creation. */
524
+ siteCreated?: SiteCreated;
525
+ /** Emitted on a meta site transfer completion. */
526
+ siteTransferred?: SiteTransferred;
527
+ /** Emitted on a meta site deletion. */
528
+ siteDeleted?: SiteDeleted;
529
+ /** Emitted on a meta site restoration. */
530
+ siteUndeleted?: SiteUndeleted;
531
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
532
+ sitePublished?: SitePublished;
533
+ /** Emitted on a meta site unpublish. */
534
+ siteUnpublished?: SiteUnpublished;
535
+ /** Emitted when meta site is marked as template. */
536
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
537
+ /** Emitted when meta site is marked as a WixSite. */
538
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
539
+ /** Emitted when an application is provisioned (installed). */
540
+ serviceProvisioned?: ServiceProvisioned;
541
+ /** Emitted when an application is removed (uninstalled). */
542
+ serviceRemoved?: ServiceRemoved;
543
+ /** Emitted when meta site name (URL slug) is changed. */
544
+ siteRenamedPayload?: SiteRenamed;
545
+ /** Emitted when meta site was permanently deleted. */
546
+ hardDeleted?: SiteHardDeleted;
547
+ /** Emitted on a namespace change. */
548
+ namespaceChanged?: NamespaceChanged;
549
+ /** Emitted when Studio is attached. */
550
+ studioAssigned?: StudioAssigned;
551
+ /** Emitted when Studio is detached. */
552
+ studioUnassigned?: StudioUnassigned;
553
+ /** A meta site id. */
554
+ metaSiteId?: string;
555
+ /** A meta site version. Monotonically increasing. */
556
+ version?: string;
557
+ /** A timestamp of the event. */
558
+ timestamp?: string;
559
+ /**
560
+ * TODO(meta-site): Change validation once validations are disabled for consumers
561
+ * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
562
+ */
563
+ assets?: Asset[];
564
+ }
565
+ /** @oneof */
566
+ export interface MetaSiteSpecialEventPayloadOneOf {
567
+ /** Emitted on a meta site creation. */
568
+ siteCreated?: SiteCreated;
569
+ /** Emitted on a meta site transfer completion. */
570
+ siteTransferred?: SiteTransferred;
571
+ /** Emitted on a meta site deletion. */
572
+ siteDeleted?: SiteDeleted;
573
+ /** Emitted on a meta site restoration. */
574
+ siteUndeleted?: SiteUndeleted;
575
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
576
+ sitePublished?: SitePublished;
577
+ /** Emitted on a meta site unpublish. */
578
+ siteUnpublished?: SiteUnpublished;
579
+ /** Emitted when meta site is marked as template. */
580
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
581
+ /** Emitted when meta site is marked as a WixSite. */
582
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
583
+ /** Emitted when an application is provisioned (installed). */
584
+ serviceProvisioned?: ServiceProvisioned;
585
+ /** Emitted when an application is removed (uninstalled). */
586
+ serviceRemoved?: ServiceRemoved;
587
+ /** Emitted when meta site name (URL slug) is changed. */
588
+ siteRenamedPayload?: SiteRenamed;
589
+ /** Emitted when meta site was permanently deleted. */
590
+ hardDeleted?: SiteHardDeleted;
591
+ /** Emitted on a namespace change. */
592
+ namespaceChanged?: NamespaceChanged;
593
+ /** Emitted when Studio is attached. */
594
+ studioAssigned?: StudioAssigned;
595
+ /** Emitted when Studio is detached. */
596
+ studioUnassigned?: StudioUnassigned;
597
+ }
598
+ export interface Asset {
599
+ /** An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum). */
600
+ appDefId?: string;
601
+ /** An instance id. For legacy reasons may be UUID or a string. */
602
+ instanceId?: string;
603
+ /** An application state. */
604
+ state?: State;
605
+ }
606
+ export declare enum State {
607
+ UNKNOWN = "UNKNOWN",
608
+ ENABLED = "ENABLED",
609
+ DISABLED = "DISABLED",
610
+ PENDING = "PENDING",
611
+ DEMO = "DEMO"
612
+ }
613
+ export interface SiteCreated {
614
+ /** A template identifier (empty if not created from a template). */
615
+ originTemplateId?: string;
616
+ /** An account id of the owner. */
617
+ ownerId?: string;
618
+ /** A context in which meta site was created. */
619
+ context?: SiteCreatedContext;
620
+ /**
621
+ * A meta site id from which this site was created.
622
+ *
623
+ * In case of a creation from a template it's a template id.
624
+ * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
625
+ */
626
+ originMetaSiteId?: string | null;
627
+ /** A meta site name (URL slug). */
628
+ siteName?: string;
629
+ /** A namespace. */
630
+ namespace?: Namespace;
631
+ }
632
+ export declare enum SiteCreatedContext {
633
+ /** A valid option, we don't expose all reasons why site might be created. */
634
+ OTHER = "OTHER",
635
+ /** A meta site was created from template. */
636
+ FROM_TEMPLATE = "FROM_TEMPLATE",
637
+ /** A meta site was created by copying of the transfferred meta site. */
638
+ DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
639
+ /** A copy of existing meta site. */
640
+ DUPLICATE = "DUPLICATE",
641
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
642
+ OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
643
+ /** deprecated A meta site was created for Flash editor. */
644
+ FLASH = "FLASH"
645
+ }
646
+ export declare enum Namespace {
647
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
648
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
649
+ WIX = "WIX",
650
+ /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
651
+ SHOUT_OUT = "SHOUT_OUT",
652
+ /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
653
+ ALBUMS = "ALBUMS",
654
+ /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
655
+ WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
656
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
657
+ HOTELS = "HOTELS",
658
+ /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
659
+ CLUBS = "CLUBS",
660
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
661
+ ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
662
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
663
+ DEV_SITE = "DEV_SITE",
664
+ /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
665
+ LOGOS = "LOGOS",
666
+ /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
667
+ VIDEO_MAKER = "VIDEO_MAKER",
668
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
669
+ PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
670
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
671
+ DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
672
+ /**
673
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
674
+ *
675
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
676
+ */
677
+ HTML_DRAFT = "HTML_DRAFT",
678
+ /**
679
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
680
+ * Will be accessible from Site List and will not have a website app.
681
+ * Once the user attaches a site, the site will become a regular wixsite.
682
+ */
683
+ SITELESS_BUSINESS = "SITELESS_BUSINESS",
684
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
685
+ CREATOR_ECONOMY = "CREATOR_ECONOMY",
686
+ /** It is to be used in the Business First efforts. */
687
+ DASHBOARD_FIRST = "DASHBOARD_FIRST",
688
+ /** Bookings business flow with no site. */
689
+ ANYWHERE = "ANYWHERE",
690
+ /** Namespace for Headless Backoffice with no editor */
691
+ HEADLESS = "HEADLESS",
692
+ /**
693
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
694
+ * The site will be used for account level CSM feature for enterprise
695
+ */
696
+ ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
697
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
698
+ RISE = "RISE",
699
+ /**
700
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
701
+ * There's a blank site behind the scene but it's blank).
702
+ * The Mobile company will be the owner of this namespace.
703
+ */
704
+ BRANDED_FIRST = "BRANDED_FIRST",
705
+ /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
706
+ NOWNIA = "NOWNIA",
707
+ /**
708
+ * UGC Templates are templates that are created by users for personal use and to sale to other users.
709
+ * The Partners company owns this namespace.
710
+ */
711
+ UGC_TEMPLATE = "UGC_TEMPLATE",
712
+ /** Codux Headless Sites */
713
+ CODUX = "CODUX",
714
+ /** Bobb - AI Design Creator. */
715
+ MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
716
+ /**
717
+ * Shared Blog Site is a unique single site across Enterprise account,
718
+ * This site will hold all Blog posts related to the Marketing product.
719
+ */
720
+ SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE"
721
+ }
722
+ /** Site transferred to another user. */
723
+ export interface SiteTransferred {
724
+ /** A previous owner id (user that transfers meta site). */
725
+ oldOwnerId?: string;
726
+ /** A new owner id (user that accepts meta site). */
727
+ newOwnerId?: string;
728
+ }
729
+ /** Soft deletion of the meta site. Could be restored. */
730
+ export interface SiteDeleted {
731
+ /** A deletion context. */
732
+ deleteContext?: DeleteContext;
733
+ }
734
+ export interface DeleteContext {
735
+ /** When the meta site was deleted. */
736
+ dateDeleted?: Date | null;
737
+ /** A status. */
738
+ deleteStatus?: DeleteStatus;
739
+ /** A reason (flow). */
740
+ deleteOrigin?: string;
741
+ /** A service that deleted it. */
742
+ initiatorId?: string | null;
743
+ }
744
+ export declare enum DeleteStatus {
745
+ UNKNOWN = "UNKNOWN",
746
+ TRASH = "TRASH",
747
+ DELETED = "DELETED",
748
+ PENDING_PURGE = "PENDING_PURGE"
749
+ }
750
+ /** Restoration of the meta site. */
751
+ export interface SiteUndeleted {
752
+ }
753
+ /** First publish of a meta site. Or subsequent publish after unpublish. */
754
+ export interface SitePublished {
755
+ }
756
+ export interface SiteUnpublished {
757
+ /** A list of URLs previously associated with the meta site. */
758
+ urls?: string[];
759
+ }
760
+ export interface SiteMarkedAsTemplate {
761
+ }
762
+ export interface SiteMarkedAsWixSite {
763
+ }
764
+ /**
765
+ * Represents a service provisioned a site.
766
+ *
767
+ * Note on `origin_instance_id`:
768
+ * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
769
+ * This is because of the following scenario:
770
+ *
771
+ * Imagine you have a template where a third-party application (TPA) includes some stub data,
772
+ * such as a product catalog. When you create a site from this template, you inherit this
773
+ * default product catalog. However, if the template's product catalog is modified,
774
+ * your site will retain the catalog as it was at the time of site creation. This ensures that
775
+ * your site remains consistent with what you initially received and does not include any
776
+ * changes made to the original template afterward.
777
+ * To ensure this, the TPA on the template gets a new instance_id.
778
+ */
779
+ export interface ServiceProvisioned {
780
+ /** Either UUID or EmbeddedServiceType. */
781
+ appDefId?: string;
782
+ /** Not only UUID. Something here could be something weird. */
783
+ instanceId?: string;
784
+ /** An instance id from which this instance is originated. */
785
+ originInstanceId?: string;
786
+ /** A version. */
787
+ version?: string | null;
788
+ /** The origin meta site id */
789
+ originMetaSiteId?: string | null;
790
+ }
791
+ export interface ServiceRemoved {
792
+ /** Either UUID or EmbeddedServiceType. */
793
+ appDefId?: string;
794
+ /** Not only UUID. Something here could be something weird. */
795
+ instanceId?: string;
796
+ /** A version. */
797
+ version?: string | null;
798
+ }
799
+ /** Rename of the site. Meaning, free public url has been changed as well. */
800
+ export interface SiteRenamed {
801
+ /** A new meta site name (URL slug). */
802
+ newSiteName?: string;
803
+ /** A previous meta site name (URL slug). */
804
+ oldSiteName?: string;
805
+ }
806
+ /**
807
+ * Hard deletion of the meta site.
808
+ *
809
+ * Could not be restored. Therefore it's desirable to cleanup data.
810
+ */
811
+ export interface SiteHardDeleted {
812
+ /** A deletion context. */
813
+ deleteContext?: DeleteContext;
814
+ }
815
+ export interface NamespaceChanged {
816
+ /** A previous namespace. */
817
+ oldNamespace?: Namespace;
818
+ /** A new namespace. */
819
+ newNamespace?: Namespace;
820
+ }
821
+ /** Assigned Studio editor */
822
+ export interface StudioAssigned {
823
+ }
824
+ /** Unassigned Studio editor */
825
+ export interface StudioUnassigned {
826
+ }
827
+ export interface Empty {
828
+ }
829
+ export interface DomainEvent extends DomainEventBodyOneOf {
830
+ createdEvent?: EntityCreatedEvent;
831
+ updatedEvent?: EntityUpdatedEvent;
832
+ deletedEvent?: EntityDeletedEvent;
833
+ actionEvent?: ActionEvent;
834
+ /**
835
+ * Unique event ID.
836
+ * Allows clients to ignore duplicate webhooks.
837
+ */
838
+ id?: string;
839
+ /**
840
+ * Assumes actions are also always typed to an entity_type
841
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
842
+ */
843
+ entityFqdn?: string;
844
+ /**
845
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
846
+ * This is although the created/updated/deleted notion is duplication of the oneof types
847
+ * Example: created/updated/deleted/started/completed/email_opened
848
+ */
849
+ slug?: string;
850
+ /** ID of the entity associated with the event. */
851
+ entityId?: string;
852
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
853
+ eventTime?: Date | null;
854
+ /**
855
+ * Whether the event was triggered as a result of a privacy regulation application
856
+ * (for example, GDPR).
857
+ */
858
+ triggeredByAnonymizeRequest?: boolean | null;
859
+ /** If present, indicates the action that triggered the event. */
860
+ originatedFrom?: string | null;
861
+ /**
862
+ * A sequence number defining the order of updates to the underlying entity.
863
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
864
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
865
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
866
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
867
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
868
+ */
869
+ entityEventSequence?: string | null;
870
+ }
871
+ /** @oneof */
872
+ export interface DomainEventBodyOneOf {
873
+ createdEvent?: EntityCreatedEvent;
874
+ updatedEvent?: EntityUpdatedEvent;
875
+ deletedEvent?: EntityDeletedEvent;
876
+ actionEvent?: ActionEvent;
877
+ }
878
+ export interface EntityCreatedEvent {
879
+ entityAsJson?: string;
880
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
881
+ restoreInfo?: RestoreInfo;
882
+ }
883
+ export interface RestoreInfo {
884
+ deletedDate?: Date | null;
885
+ }
886
+ export interface EntityUpdatedEvent {
887
+ /**
888
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
889
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
890
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
891
+ */
892
+ currentEntityAsJson?: string;
893
+ }
894
+ export interface EntityDeletedEvent {
895
+ /** Entity that was deleted */
896
+ deletedEntityAsJson?: string | null;
897
+ }
898
+ export interface ActionEvent {
899
+ bodyAsJson?: string;
900
+ }
901
+ export interface MessageEnvelope {
902
+ /** App instance ID. */
903
+ instanceId?: string | null;
904
+ /** Event type. */
905
+ eventType?: string;
906
+ /** The identification type and identity data. */
907
+ identity?: IdentificationData;
908
+ /** Stringify payload. */
909
+ data?: string;
910
+ }
911
+ export interface IdentificationData extends IdentificationDataIdOneOf {
912
+ /** ID of a site visitor that has not logged in to the site. */
913
+ anonymousVisitorId?: string;
914
+ /** ID of a site visitor that has logged in to the site. */
915
+ memberId?: string;
916
+ /** ID of a Wix user (site owner, contributor, etc.). */
917
+ wixUserId?: string;
918
+ /** ID of an app. */
919
+ appId?: string;
920
+ /** @readonly */
921
+ identityType?: WebhookIdentityType;
922
+ }
923
+ /** @oneof */
924
+ export interface IdentificationDataIdOneOf {
925
+ /** ID of a site visitor that has not logged in to the site. */
926
+ anonymousVisitorId?: string;
927
+ /** ID of a site visitor that has logged in to the site. */
928
+ memberId?: string;
929
+ /** ID of a Wix user (site owner, contributor, etc.). */
930
+ wixUserId?: string;
931
+ /** ID of an app. */
932
+ appId?: string;
933
+ }
934
+ export declare enum WebhookIdentityType {
935
+ UNKNOWN = "UNKNOWN",
936
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
937
+ MEMBER = "MEMBER",
938
+ WIX_USER = "WIX_USER",
939
+ APP = "APP"
940
+ }
941
+ interface AdditionalChargeNonNullableFields {
942
+ type: ChargeType;
943
+ price: string;
944
+ }
945
+ interface DeliveryCarrierNonNullableFields {
946
+ appId: string;
947
+ additionalCharges: AdditionalChargeNonNullableFields[];
948
+ }
949
+ interface DestinationNonNullableFields {
950
+ countryCode: string;
951
+ subdivisions: string[];
952
+ }
953
+ interface DeliveryRegionNonNullableFields {
954
+ deliveryCarriers: DeliveryCarrierNonNullableFields[];
955
+ destinations: DestinationNonNullableFields[];
956
+ }
957
+ interface DeliveryProfileNonNullableFields {
958
+ deliveryRegions: DeliveryRegionNonNullableFields[];
959
+ }
960
+ export interface CreateDeliveryProfileResponseNonNullableFields {
961
+ deliveryProfile?: DeliveryProfileNonNullableFields;
962
+ }
963
+ export interface GetDeliveryProfileResponseNonNullableFields {
964
+ deliveryProfile?: DeliveryProfileNonNullableFields;
965
+ }
966
+ export interface UpdateDeliveryProfileResponseNonNullableFields {
967
+ deliveryProfile?: DeliveryProfileNonNullableFields;
968
+ }
969
+ export interface QueryDeliveryProfilesResponseNonNullableFields {
970
+ deliveryProfiles: DeliveryProfileNonNullableFields[];
971
+ }
972
+ export interface AddDeliveryRegionResponseNonNullableFields {
973
+ deliveryProfile?: DeliveryProfileNonNullableFields;
974
+ }
975
+ export interface UpdateDeliveryRegionResponseNonNullableFields {
976
+ deliveryProfile?: DeliveryProfileNonNullableFields;
977
+ }
978
+ export interface RemoveDeliveryRegionResponseNonNullableFields {
979
+ deliveryProfile?: DeliveryProfileNonNullableFields;
980
+ }
981
+ export interface AddDeliveryCarrierResponseNonNullableFields {
982
+ deliveryProfile?: DeliveryProfileNonNullableFields;
983
+ }
984
+ export interface RemoveDeliveryCarrierResponseNonNullableFields {
985
+ deliveryProfile?: DeliveryProfileNonNullableFields;
986
+ }
987
+ export interface UpdateDeliveryCarrierResponseNonNullableFields {
988
+ deliveryProfile?: DeliveryProfileNonNullableFields;
989
+ }
990
+ interface DeliveryCarrierDetailsNonNullableFields {
991
+ id: string;
992
+ displayName: string;
993
+ toggleGetCarrierSettingsEnabled: boolean;
994
+ toggleUpdateCarrierActiveStatusEnabled: boolean;
995
+ }
996
+ export interface ListDeliveryCarrierDetailsResponseNonNullableFields {
997
+ deliveryCarrierDetails: DeliveryCarrierDetailsNonNullableFields[];
998
+ }
999
+ interface InstalledDeliveryCarrierNonNullableFields {
1000
+ id: string;
1001
+ displayName: string;
1002
+ toggleGetCarrierSettingsEnabled: boolean;
1003
+ }
1004
+ export interface ListInstalledDeliveryCarriersResponseNonNullableFields {
1005
+ installedDeliveryCarriers: InstalledDeliveryCarrierNonNullableFields[];
1006
+ }
1007
+ export interface ListDeliveryDestinationsResponseNonNullableFields {
1008
+ destinationScope: DestinationScope;
1009
+ destinations: DestinationNonNullableFields[];
1010
+ }
1011
+ interface ApplicationErrorNonNullableFields {
1012
+ code: string;
1013
+ description: string;
1014
+ }
1015
+ interface ItemMetadataNonNullableFields {
1016
+ success: boolean;
1017
+ error?: ApplicationErrorNonNullableFields;
1018
+ }
1019
+ interface ColumnNonNullableFields {
1020
+ key: string;
1021
+ name: string;
1022
+ }
1023
+ interface RowNonNullableFields {
1024
+ key: string;
1025
+ active: boolean;
1026
+ }
1027
+ interface DashboardTableNonNullableFields {
1028
+ title: string;
1029
+ columns: ColumnNonNullableFields[];
1030
+ rows: RowNonNullableFields[];
1031
+ }
1032
+ interface DeliveryCarrierRegionalSettingsNonNullableFields {
1033
+ deliveryRegionId: string;
1034
+ dashboardTables: DashboardTableNonNullableFields[];
1035
+ }
1036
+ interface ListDeliveryCarriersResultNonNullableFields {
1037
+ deliveryCarrierMetadata?: ItemMetadataNonNullableFields;
1038
+ deliveryCarrierDetails?: DeliveryCarrierDetailsNonNullableFields;
1039
+ deliveryCarrierRegionalSettings: DeliveryCarrierRegionalSettingsNonNullableFields[];
1040
+ }
1041
+ interface BulkActionMetadataNonNullableFields {
1042
+ totalSuccesses: number;
1043
+ totalFailures: number;
1044
+ undetailedFailures: number;
1045
+ }
1046
+ export interface ListDeliveryCarriersResponseNonNullableFields {
1047
+ results: ListDeliveryCarriersResultNonNullableFields[];
1048
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
1049
+ }
1050
+ export interface UpdateExtendedFieldsResponseNonNullableFields {
1051
+ deliveryProfile?: DeliveryProfileNonNullableFields;
1052
+ }
1053
+ export {};