@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,1569 @@
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
+ entity?: string;
880
+ }
881
+ export interface RestoreInfo {
882
+ deletedDate?: Date | null;
883
+ }
884
+ export interface EntityUpdatedEvent {
885
+ /**
886
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
887
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
888
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
889
+ */
890
+ currentEntity?: string;
891
+ }
892
+ export interface EntityDeletedEvent {
893
+ /** Entity that was deleted */
894
+ deletedEntity?: string | null;
895
+ }
896
+ export interface ActionEvent {
897
+ body?: string;
898
+ }
899
+ export interface MessageEnvelope {
900
+ /** App instance ID. */
901
+ instanceId?: string | null;
902
+ /** Event type. */
903
+ eventType?: string;
904
+ /** The identification type and identity data. */
905
+ identity?: IdentificationData;
906
+ /** Stringify payload. */
907
+ data?: string;
908
+ }
909
+ export interface IdentificationData extends IdentificationDataIdOneOf {
910
+ /** ID of a site visitor that has not logged in to the site. */
911
+ anonymousVisitorId?: string;
912
+ /** ID of a site visitor that has logged in to the site. */
913
+ memberId?: string;
914
+ /** ID of a Wix user (site owner, contributor, etc.). */
915
+ wixUserId?: string;
916
+ /** ID of an app. */
917
+ appId?: string;
918
+ /** @readonly */
919
+ identityType?: WebhookIdentityType;
920
+ }
921
+ /** @oneof */
922
+ export interface IdentificationDataIdOneOf {
923
+ /** ID of a site visitor that has not logged in to the site. */
924
+ anonymousVisitorId?: string;
925
+ /** ID of a site visitor that has logged in to the site. */
926
+ memberId?: string;
927
+ /** ID of a Wix user (site owner, contributor, etc.). */
928
+ wixUserId?: string;
929
+ /** ID of an app. */
930
+ appId?: string;
931
+ }
932
+ export declare enum WebhookIdentityType {
933
+ UNKNOWN = "UNKNOWN",
934
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
935
+ MEMBER = "MEMBER",
936
+ WIX_USER = "WIX_USER",
937
+ APP = "APP"
938
+ }
939
+ interface AdditionalChargeNonNullableFields {
940
+ type: ChargeType;
941
+ price: string;
942
+ }
943
+ interface DeliveryCarrierNonNullableFields {
944
+ appId: string;
945
+ additionalCharges: AdditionalChargeNonNullableFields[];
946
+ }
947
+ interface DestinationNonNullableFields {
948
+ countryCode: string;
949
+ subdivisions: string[];
950
+ }
951
+ interface DeliveryRegionNonNullableFields {
952
+ deliveryCarriers: DeliveryCarrierNonNullableFields[];
953
+ destinations: DestinationNonNullableFields[];
954
+ }
955
+ export interface DeliveryProfileNonNullableFields {
956
+ deliveryRegions: DeliveryRegionNonNullableFields[];
957
+ }
958
+ export interface CreateDeliveryProfileResponseNonNullableFields {
959
+ deliveryProfile?: DeliveryProfileNonNullableFields;
960
+ }
961
+ export interface GetDeliveryProfileResponseNonNullableFields {
962
+ deliveryProfile?: DeliveryProfileNonNullableFields;
963
+ }
964
+ export interface UpdateDeliveryProfileResponseNonNullableFields {
965
+ deliveryProfile?: DeliveryProfileNonNullableFields;
966
+ }
967
+ export interface QueryDeliveryProfilesResponseNonNullableFields {
968
+ deliveryProfiles: DeliveryProfileNonNullableFields[];
969
+ }
970
+ export interface AddDeliveryRegionResponseNonNullableFields {
971
+ deliveryProfile?: DeliveryProfileNonNullableFields;
972
+ }
973
+ export interface UpdateDeliveryRegionResponseNonNullableFields {
974
+ deliveryProfile?: DeliveryProfileNonNullableFields;
975
+ }
976
+ export interface RemoveDeliveryRegionResponseNonNullableFields {
977
+ deliveryProfile?: DeliveryProfileNonNullableFields;
978
+ }
979
+ export interface AddDeliveryCarrierResponseNonNullableFields {
980
+ deliveryProfile?: DeliveryProfileNonNullableFields;
981
+ }
982
+ export interface RemoveDeliveryCarrierResponseNonNullableFields {
983
+ deliveryProfile?: DeliveryProfileNonNullableFields;
984
+ }
985
+ export interface UpdateDeliveryCarrierResponseNonNullableFields {
986
+ deliveryProfile?: DeliveryProfileNonNullableFields;
987
+ }
988
+ interface DeliveryCarrierDetailsNonNullableFields {
989
+ _id: string;
990
+ displayName: string;
991
+ toggleGetCarrierSettingsEnabled: boolean;
992
+ toggleUpdateCarrierActiveStatusEnabled: boolean;
993
+ }
994
+ export interface ListDeliveryCarrierDetailsResponseNonNullableFields {
995
+ deliveryCarrierDetails: DeliveryCarrierDetailsNonNullableFields[];
996
+ }
997
+ interface InstalledDeliveryCarrierNonNullableFields {
998
+ _id: string;
999
+ displayName: string;
1000
+ toggleGetCarrierSettingsEnabled: boolean;
1001
+ }
1002
+ export interface ListInstalledDeliveryCarriersResponseNonNullableFields {
1003
+ installedDeliveryCarriers: InstalledDeliveryCarrierNonNullableFields[];
1004
+ }
1005
+ export interface ListDeliveryDestinationsResponseNonNullableFields {
1006
+ destinationScope: DestinationScope;
1007
+ destinations: DestinationNonNullableFields[];
1008
+ }
1009
+ interface ApplicationErrorNonNullableFields {
1010
+ code: string;
1011
+ description: string;
1012
+ }
1013
+ interface ItemMetadataNonNullableFields {
1014
+ success: boolean;
1015
+ error?: ApplicationErrorNonNullableFields;
1016
+ }
1017
+ interface ColumnNonNullableFields {
1018
+ key: string;
1019
+ name: string;
1020
+ }
1021
+ interface RowNonNullableFields {
1022
+ key: string;
1023
+ active: boolean;
1024
+ }
1025
+ interface DashboardTableNonNullableFields {
1026
+ title: string;
1027
+ columns: ColumnNonNullableFields[];
1028
+ rows: RowNonNullableFields[];
1029
+ }
1030
+ interface DeliveryCarrierRegionalSettingsNonNullableFields {
1031
+ deliveryRegionId: string;
1032
+ dashboardTables: DashboardTableNonNullableFields[];
1033
+ }
1034
+ interface ListDeliveryCarriersResultNonNullableFields {
1035
+ deliveryCarrierMetadata?: ItemMetadataNonNullableFields;
1036
+ deliveryCarrierDetails?: DeliveryCarrierDetailsNonNullableFields;
1037
+ deliveryCarrierRegionalSettings: DeliveryCarrierRegionalSettingsNonNullableFields[];
1038
+ }
1039
+ interface BulkActionMetadataNonNullableFields {
1040
+ totalSuccesses: number;
1041
+ totalFailures: number;
1042
+ undetailedFailures: number;
1043
+ }
1044
+ export interface ListDeliveryCarriersResponseNonNullableFields {
1045
+ results: ListDeliveryCarriersResultNonNullableFields[];
1046
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
1047
+ }
1048
+ export interface UpdateExtendedFieldsResponseNonNullableFields {
1049
+ deliveryProfile?: DeliveryProfileNonNullableFields;
1050
+ }
1051
+ /**
1052
+ * Creates a DeliveryProfile.
1053
+ *
1054
+ * The request body must include the DeliveryProfiles name. DeliveryRegions are optional.
1055
+ * @param deliveryProfile - DeliveryProfile to be created.
1056
+ * @public
1057
+ * @documentationMaturity preview
1058
+ * @requiredField deliveryProfile
1059
+ * @requiredField deliveryProfile.deliveryRegions.deliveryCarriers.backupRate.rate
1060
+ * @requiredField deliveryProfile.deliveryRegions.destinations
1061
+ * @requiredField deliveryProfile.deliveryRegions.destinations.countryCode
1062
+ * @requiredField deliveryProfile.deliveryRegions.name
1063
+ * @requiredField deliveryProfile.name
1064
+ * @permissionId ECOM.DELIVERY_PROFILE_CREATE
1065
+ * @permissionScope Manage Stores - all permissions
1066
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1067
+ * @permissionScope Manage eCommerce - all permissions
1068
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1069
+ * @applicableIdentity APP
1070
+ * @returns The created DeliveryProfile.
1071
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.CreateDeliveryProfile
1072
+ */
1073
+ export declare function createDeliveryProfile(deliveryProfile: DeliveryProfile): Promise<DeliveryProfile & DeliveryProfileNonNullableFields>;
1074
+ /**
1075
+ * Retrieves a DeliveryProfile.
1076
+ * @param deliveryProfileId - ID of the DeliveryProfile to retrieve.
1077
+ * @public
1078
+ * @documentationMaturity preview
1079
+ * @requiredField deliveryProfileId
1080
+ * @permissionId ECOM.DELIVERY_PROFILE_READ
1081
+ * @permissionScope Manage Stores - all permissions
1082
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1083
+ * @permissionScope Read eCommerce - all read permissions
1084
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1085
+ * @permissionScope Manage eCommerce - all permissions
1086
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1087
+ * @applicableIdentity APP
1088
+ * @applicableIdentity VISITOR
1089
+ * @returns The requested DeliveryProfile.
1090
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfile
1091
+ */
1092
+ export declare function getDeliveryProfile(deliveryProfileId: string): Promise<DeliveryProfile & DeliveryProfileNonNullableFields>;
1093
+ /**
1094
+ * Updates a DeliveryProfile.
1095
+ *
1096
+ *
1097
+ * Each time the DeliveryProfile is updated,
1098
+ * `revision` increments by 1.
1099
+ * The current `revision` must be passed when updating the DeliveryProfile.
1100
+ * This ensures you're working with the latest DeliveryProfile
1101
+ * and prevents unintended overwrites.
1102
+ *
1103
+ * This method does not allow updating the DeliveryRegions in this DeliveryProfile.
1104
+ * Use AddDeliveryRegion, UpdateDeliveryRegion and RemoveDeliveryRegion for these functionalities.
1105
+ * @param _id - DeliveryProfile ID.
1106
+ * @public
1107
+ * @documentationMaturity preview
1108
+ * @requiredField _id
1109
+ * @requiredField deliveryProfile
1110
+ * @requiredField deliveryProfile.revision
1111
+ * @permissionId ECOM.DELIVERY_PROFILE_UPDATE
1112
+ * @permissionScope Manage Stores - all permissions
1113
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1114
+ * @permissionScope Manage eCommerce - all permissions
1115
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1116
+ * @applicableIdentity APP
1117
+ * @returns Updated DeliveryProfile.
1118
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryProfile
1119
+ */
1120
+ export declare function updateDeliveryProfile(_id: string | null, deliveryProfile: UpdateDeliveryProfile): Promise<DeliveryProfile & DeliveryProfileNonNullableFields>;
1121
+ export interface UpdateDeliveryProfile {
1122
+ /**
1123
+ * DeliveryProfile ID.
1124
+ * @readonly
1125
+ */
1126
+ _id?: string | null;
1127
+ /** DeliveryProfile name. */
1128
+ name?: string | null;
1129
+ /**
1130
+ * Flags this DeliveryProfile as the default DeliveryProfile.
1131
+ * @readonly
1132
+ */
1133
+ default?: boolean | null;
1134
+ /** A list of DeliveryProfile regions. */
1135
+ deliveryRegions?: DeliveryRegion[];
1136
+ /** ID of the delivery profile's creator. */
1137
+ createdBy?: CreatedBy;
1138
+ /**
1139
+ * DeliveryProfile revision.
1140
+ * @readonly
1141
+ */
1142
+ revision?: string | null;
1143
+ /**
1144
+ * Date and time the DeliveryProfile was created.
1145
+ * @readonly
1146
+ */
1147
+ _createdDate?: Date | null;
1148
+ /**
1149
+ * Date and time the DeliveryProfile was last updated.
1150
+ * @readonly
1151
+ */
1152
+ _updatedDate?: Date | null;
1153
+ /** [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. */
1154
+ extendedFields?: ExtendedFields;
1155
+ }
1156
+ /**
1157
+ * Deletes a DeliveryProfile.
1158
+ *
1159
+ * Deleting a DeliveryProfile permanently removes them from the DeliveryProfile List.
1160
+ * @param deliveryProfileId - Id of the DeliveryProfile to delete.
1161
+ * @public
1162
+ * @documentationMaturity preview
1163
+ * @requiredField deliveryProfileId
1164
+ * @permissionId ECOM.DELIVERY_PROFILE_DELETE
1165
+ * @permissionScope Manage Stores - all permissions
1166
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1167
+ * @permissionScope Manage eCommerce - all permissions
1168
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1169
+ * @applicableIdentity APP
1170
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.DeleteDeliveryProfile
1171
+ */
1172
+ export declare function deleteDeliveryProfile(deliveryProfileId: string): Promise<void>;
1173
+ /**
1174
+ * Retrieves a list of DeliveryProfiles, given the provided [paging, filtering, and sorting][1].
1175
+ *
1176
+ * Up to 1,000 DeliveryProfiles can be returned per request.
1177
+ *
1178
+ * To learn how to query DeliveryProfiles, see [API Query Language][2].
1179
+ *
1180
+ * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
1181
+ * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
1182
+ * @public
1183
+ * @documentationMaturity preview
1184
+ * @permissionScope Manage Stores - all permissions
1185
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1186
+ * @permissionScope Read eCommerce - all read permissions
1187
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1188
+ * @permissionScope Manage eCommerce - all permissions
1189
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1190
+ * @permissionId ECOM.DELIVERY_PROFILE_READ
1191
+ * @applicableIdentity APP
1192
+ * @applicableIdentity VISITOR
1193
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.QueryDeliveryProfiles
1194
+ */
1195
+ export declare function queryDeliveryProfiles(): DeliveryProfilesQueryBuilder;
1196
+ interface QueryCursorResult {
1197
+ cursors: Cursors;
1198
+ hasNext: () => boolean;
1199
+ hasPrev: () => boolean;
1200
+ length: number;
1201
+ pageSize: number;
1202
+ }
1203
+ export interface DeliveryProfilesQueryResult extends QueryCursorResult {
1204
+ items: DeliveryProfile[];
1205
+ query: DeliveryProfilesQueryBuilder;
1206
+ next: () => Promise<DeliveryProfilesQueryResult>;
1207
+ prev: () => Promise<DeliveryProfilesQueryResult>;
1208
+ }
1209
+ export interface DeliveryProfilesQueryBuilder {
1210
+ /** @param propertyName - Property whose value is compared with `value`.
1211
+ * @param value - Value to compare against.
1212
+ * @documentationMaturity preview
1213
+ */
1214
+ eq: (propertyName: '_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1215
+ /** @param propertyName - Property whose value is compared with `value`.
1216
+ * @param value - Value to compare against.
1217
+ * @documentationMaturity preview
1218
+ */
1219
+ ne: (propertyName: '_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1220
+ /** @param propertyName - Property whose value is compared with `value`.
1221
+ * @param value - Value to compare against.
1222
+ * @documentationMaturity preview
1223
+ */
1224
+ ge: (propertyName: 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1225
+ /** @param propertyName - Property whose value is compared with `value`.
1226
+ * @param value - Value to compare against.
1227
+ * @documentationMaturity preview
1228
+ */
1229
+ gt: (propertyName: 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1230
+ /** @param propertyName - Property whose value is compared with `value`.
1231
+ * @param value - Value to compare against.
1232
+ * @documentationMaturity preview
1233
+ */
1234
+ le: (propertyName: 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1235
+ /** @param propertyName - Property whose value is compared with `value`.
1236
+ * @param value - Value to compare against.
1237
+ * @documentationMaturity preview
1238
+ */
1239
+ lt: (propertyName: 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1240
+ /** @param propertyName - Property whose value is compared with `string`.
1241
+ * @param string - String to compare against. Case-insensitive.
1242
+ * @documentationMaturity preview
1243
+ */
1244
+ startsWith: (propertyName: '_id' | 'name' | 'deliveryRegions.id', value: string) => DeliveryProfilesQueryBuilder;
1245
+ /** @param propertyName - Property whose value is compared with `values`.
1246
+ * @param values - List of values to compare against.
1247
+ * @documentationMaturity preview
1248
+ */
1249
+ hasSome: (propertyName: '_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.createdDate' | '_createdDate', value: any[]) => DeliveryProfilesQueryBuilder;
1250
+ /** @documentationMaturity preview */
1251
+ in: (propertyName: '_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1252
+ /** @documentationMaturity preview */
1253
+ exists: (propertyName: '_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.createdDate' | '_createdDate', value: boolean) => DeliveryProfilesQueryBuilder;
1254
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1255
+ * @documentationMaturity preview
1256
+ */
1257
+ ascending: (...propertyNames: Array<'_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.destinations' | 'deliveryRegions.createdDate' | '_createdDate'>) => DeliveryProfilesQueryBuilder;
1258
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1259
+ * @documentationMaturity preview
1260
+ */
1261
+ descending: (...propertyNames: Array<'_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.destinations' | 'deliveryRegions.createdDate' | '_createdDate'>) => DeliveryProfilesQueryBuilder;
1262
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1263
+ * @documentationMaturity preview
1264
+ */
1265
+ limit: (limit: number) => DeliveryProfilesQueryBuilder;
1266
+ /** @param cursor - A pointer to specific record
1267
+ * @documentationMaturity preview
1268
+ */
1269
+ skipTo: (cursor: string) => DeliveryProfilesQueryBuilder;
1270
+ /** @documentationMaturity preview */
1271
+ find: () => Promise<DeliveryProfilesQueryResult>;
1272
+ }
1273
+ /**
1274
+ * Creates a new DeliveryRegion in an existing DeliveryProfile.
1275
+ * @param deliveryProfileId - delivery profile id to associated with the DeliveryRegion
1276
+ * @param deliveryRegion - DeliveryRegion to be created
1277
+ * @public
1278
+ * @documentationMaturity preview
1279
+ * @requiredField deliveryProfileId
1280
+ * @requiredField deliveryRegion
1281
+ * @requiredField deliveryRegion.deliveryCarriers.backupRate.rate
1282
+ * @requiredField deliveryRegion.destinations.countryCode
1283
+ * @requiredField deliveryRegion.name
1284
+ * @permissionId ECOM.DELIVERY_PROFILE_UPDATE
1285
+ * @permissionScope Manage Stores - all permissions
1286
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1287
+ * @permissionScope Manage eCommerce - all permissions
1288
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1289
+ * @applicableIdentity APP
1290
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryRegion
1291
+ */
1292
+ export declare function addDeliveryRegion(deliveryProfileId: string, deliveryRegion: DeliveryRegion, options?: AddDeliveryRegionOptions): Promise<AddDeliveryRegionResponse & AddDeliveryRegionResponseNonNullableFields>;
1293
+ export interface AddDeliveryRegionOptions {
1294
+ /**
1295
+ * DeliveryProfile revision.
1296
+ * @readonly
1297
+ */
1298
+ revision?: string | null;
1299
+ }
1300
+ /**
1301
+ * Update a DeliveryRegion, supports partial update
1302
+ * Pass the latest `revision` for a successful update
1303
+ *
1304
+ * This method does not allow setting or updating the delivery delivery_carriers in this delivery_region.
1305
+ * Use AddDeliveryCarrier, UpdateDeliveryCarrier and RemoveDeliveryCarrier for these functionalities.
1306
+ * @public
1307
+ * @documentationMaturity preview
1308
+ * @requiredField deliveryRegion
1309
+ * @requiredField identifiers
1310
+ * @requiredField identifiers.deliveryProfileId
1311
+ * @requiredField identifiers.deliveryRegionId
1312
+ * @permissionId ECOM.DELIVERY_REGION_UPDATE
1313
+ * @permissionScope Manage Stores - all permissions
1314
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1315
+ * @permissionScope Manage eCommerce - all permissions
1316
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1317
+ * @applicableIdentity APP
1318
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryRegion
1319
+ */
1320
+ export declare function updateDeliveryRegion(identifiers: UpdateDeliveryRegionIdentifiers, deliveryRegion: UpdateDeliveryRegion, options?: UpdateDeliveryRegionOptions): Promise<UpdateDeliveryRegionResponse & UpdateDeliveryRegionResponseNonNullableFields>;
1321
+ export interface UpdateDeliveryRegionIdentifiers {
1322
+ /** DeliveryProfile id that owns the DeliveryRegion */
1323
+ deliveryProfileId: string;
1324
+ /**
1325
+ * The delivery region id.
1326
+ * @readonly
1327
+ */
1328
+ deliveryRegionId?: string | null;
1329
+ }
1330
+ export interface UpdateDeliveryRegion {
1331
+ /**
1332
+ * The delivery region id.
1333
+ * @readonly
1334
+ */
1335
+ _id?: string | null;
1336
+ /** Optional name of the rule, for example: "Domestic". */
1337
+ name?: string | null;
1338
+ /** Indicates that this rule is active, default value is true. */
1339
+ active?: boolean | null;
1340
+ /**
1341
+ * The spi implementers id of shipping-rates spi, assigned to this rule.
1342
+ * @readonly
1343
+ */
1344
+ deliveryCarriers?: DeliveryCarrier[];
1345
+ /** The operation region of this rule, if empty than it is global. */
1346
+ destinations?: Destination[];
1347
+ /**
1348
+ * Represents the time this Profile was created
1349
+ * @readonly
1350
+ */
1351
+ _createdDate?: Date | null;
1352
+ }
1353
+ export interface UpdateDeliveryRegionOptions {
1354
+ /**
1355
+ * DeliveryProfile revision.
1356
+ * @readonly
1357
+ */
1358
+ revision?: string | null;
1359
+ }
1360
+ /**
1361
+ * Delete a DeliveryRegion
1362
+ * @public
1363
+ * @documentationMaturity preview
1364
+ * @requiredField identifiers
1365
+ * @requiredField identifiers.deliveryProfileId
1366
+ * @requiredField identifiers.deliveryRegionId
1367
+ * @permissionId ECOM.DELIVERY_PROFILE_UPDATE
1368
+ * @permissionScope Manage Stores - all permissions
1369
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1370
+ * @permissionScope Manage eCommerce - all permissions
1371
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1372
+ * @applicableIdentity APP
1373
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryRegion
1374
+ */
1375
+ export declare function removeDeliveryRegion(identifiers: RemoveDeliveryRegionIdentifiers, options?: RemoveDeliveryRegionOptions): Promise<RemoveDeliveryRegionResponse & RemoveDeliveryRegionResponseNonNullableFields>;
1376
+ export interface RemoveDeliveryRegionIdentifiers {
1377
+ /** DeliveryProfile id that owns the DeliveryRegion */
1378
+ deliveryProfileId: string;
1379
+ /** Id of the DeliveryRegion to delete */
1380
+ deliveryRegionId: string;
1381
+ }
1382
+ export interface RemoveDeliveryRegionOptions {
1383
+ /**
1384
+ * DeliveryProfile revision.
1385
+ * @readonly
1386
+ */
1387
+ revision?: string | null;
1388
+ }
1389
+ /**
1390
+ * Add a delivery_carrier to a delivery region
1391
+ * @param deliveryRegionId - delivery_region id to associated with the delivery_carrier.
1392
+ * @public
1393
+ * @documentationMaturity preview
1394
+ * @requiredField deliveryRegionId
1395
+ * @requiredField options
1396
+ * @requiredField options.deliveryCarrier
1397
+ * @requiredField options.deliveryCarrier.backupRate.rate
1398
+ * @permissionId ECOM.DELIVERY_CARRIER_ADD
1399
+ * @permissionScope Manage Stores - all permissions
1400
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1401
+ * @permissionScope Manage eCommerce - all permissions
1402
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1403
+ * @applicableIdentity APP
1404
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryCarrier
1405
+ */
1406
+ export declare function addDeliveryCarrier(deliveryRegionId: string, options: AddDeliveryCarrierOptions): Promise<AddDeliveryCarrierResponse & AddDeliveryCarrierResponseNonNullableFields>;
1407
+ export interface AddDeliveryCarrierOptions {
1408
+ /** delivery_carrier to be added. */
1409
+ deliveryCarrier: DeliveryCarrier;
1410
+ }
1411
+ /**
1412
+ * Remove a delivery_carrier from a delivery region
1413
+ * @param deliveryRegionId - Id of the DeliveryRegion
1414
+ * @public
1415
+ * @documentationMaturity preview
1416
+ * @requiredField deliveryRegionId
1417
+ * @requiredField options
1418
+ * @requiredField options.appId
1419
+ * @permissionId ECOM.DELIVERY_CARRIER_REMOVE
1420
+ * @permissionScope Manage Stores - all permissions
1421
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1422
+ * @permissionScope Manage eCommerce - all permissions
1423
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1424
+ * @applicableIdentity APP
1425
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryCarrier
1426
+ */
1427
+ export declare function removeDeliveryCarrier(deliveryRegionId: string, options: RemoveDeliveryCarrierOptions): Promise<RemoveDeliveryCarrierResponse & RemoveDeliveryCarrierResponseNonNullableFields>;
1428
+ export interface RemoveDeliveryCarrierOptions {
1429
+ /** DeliveryCarrier app id to be removed. */
1430
+ appId: string;
1431
+ }
1432
+ /**
1433
+ * Update a delivery carrier in a delivery region
1434
+ * @param deliveryRegionId - DeliveryRegion id
1435
+ * @public
1436
+ * @documentationMaturity preview
1437
+ * @requiredField deliveryRegionId
1438
+ * @requiredField options.deliveryCarrier.appId
1439
+ * @permissionId ECOM.DELIVERY_CARRIER_UPDATE
1440
+ * @permissionScope Manage Stores - all permissions
1441
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1442
+ * @permissionScope Manage eCommerce - all permissions
1443
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1444
+ * @applicableIdentity APP
1445
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryCarrier
1446
+ */
1447
+ export declare function updateDeliveryCarrier(deliveryRegionId: string, options?: UpdateDeliveryCarrierOptions): Promise<UpdateDeliveryCarrierResponse & UpdateDeliveryCarrierResponseNonNullableFields>;
1448
+ export interface UpdateDeliveryCarrierOptions {
1449
+ /** Updated delivery_carrier */
1450
+ deliveryCarrier?: DeliveryCarrier;
1451
+ }
1452
+ /**
1453
+ * List all installed delivery carriers in order to set their ids in delivery rules
1454
+ * @public
1455
+ * @documentationMaturity preview
1456
+ * @permissionId ECOM.DELIVERY_CARRIER_DETAILS_READ
1457
+ * @permissionScope Manage Stores - all permissions
1458
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1459
+ * @permissionScope Read eCommerce - all read permissions
1460
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1461
+ * @permissionScope Manage eCommerce - all permissions
1462
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1463
+ * @applicableIdentity APP
1464
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListDeliveryCarrierDetails
1465
+ * @deprecated
1466
+ * @replacedBy ListInstalledDeliveryCarriers
1467
+ * @targetRemovalDate 2025-04-01
1468
+ */
1469
+ export declare function listDeliveryCarrierDetails(): Promise<ListDeliveryCarrierDetailsResponse & ListDeliveryCarrierDetailsResponseNonNullableFields>;
1470
+ /** @public
1471
+ * @documentationMaturity preview
1472
+ * @permissionId ECOM.DELIVERY_CARRIER_READ
1473
+ * @permissionScope Manage Stores - all permissions
1474
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1475
+ * @permissionScope Read eCommerce - all read permissions
1476
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1477
+ * @permissionScope Manage eCommerce - all permissions
1478
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1479
+ * @applicableIdentity APP
1480
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListInstalledDeliveryCarriers
1481
+ */
1482
+ export declare function listInstalledDeliveryCarriers(): Promise<ListInstalledDeliveryCarriersResponse & ListInstalledDeliveryCarriersResponseNonNullableFields>;
1483
+ /**
1484
+ * Retrieves a list of all delivery destinations configured on a site.
1485
+ * Sorted by `countryCode` in ascending order.
1486
+ * @public
1487
+ * @documentationMaturity preview
1488
+ * @permissionId ECOM.DELIVERY_PROFILE_READ
1489
+ * @permissionScope Manage Stores - all permissions
1490
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1491
+ * @permissionScope Read eCommerce - all read permissions
1492
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1493
+ * @permissionScope Manage eCommerce - all permissions
1494
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1495
+ * @applicableIdentity APP
1496
+ * @applicableIdentity VISITOR
1497
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListDeliveryDestinations
1498
+ */
1499
+ export declare function listDeliveryDestinations(): Promise<ListDeliveryDestinationsResponse & ListDeliveryDestinationsResponseNonNullableFields>;
1500
+ /**
1501
+ * Get delivery carrier settings for a delivery profile and delivery region.
1502
+ * These are returned in a table format for the dashboard.
1503
+ * @param deliveryProfileId - Delivery profile id.
1504
+ * @public
1505
+ * @documentationMaturity preview
1506
+ * @requiredField deliveryProfileId
1507
+ * @permissionId ECOM.DELIVERY_CARRIER_READ
1508
+ * @permissionScope Manage Stores - all permissions
1509
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1510
+ * @permissionScope Read eCommerce - all read permissions
1511
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1512
+ * @permissionScope Manage eCommerce - all permissions
1513
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1514
+ * @applicableIdentity APP
1515
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListDeliveryCarriers
1516
+ */
1517
+ export declare function listDeliveryCarriers(deliveryProfileId: string, options?: ListDeliveryCarriersOptions): Promise<ListDeliveryCarriersResponse & ListDeliveryCarriersResponseNonNullableFields>;
1518
+ export interface ListDeliveryCarriersOptions {
1519
+ /** Delivery app ids to get settings for. */
1520
+ appIds?: string[];
1521
+ }
1522
+ /**
1523
+ * Update carrier's external active settings
1524
+ * @param carrierId - Carrier id.
1525
+ * @public
1526
+ * @documentationMaturity preview
1527
+ * @requiredField carrierId
1528
+ * @requiredField options
1529
+ * @requiredField options.active
1530
+ * @requiredField options.rowId
1531
+ * @permissionId ECOM.DELIVERY_CARRIER_UPDATE
1532
+ * @permissionScope Manage Stores - all permissions
1533
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1534
+ * @permissionScope Manage eCommerce - all permissions
1535
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1536
+ * @applicableIdentity APP
1537
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateCarrierSettings
1538
+ */
1539
+ export declare function updateCarrierSettings(carrierId: string, options: UpdateCarrierSettingsOptions): Promise<void>;
1540
+ export interface UpdateCarrierSettingsOptions {
1541
+ /** Row id triggered the change */
1542
+ rowId: string;
1543
+ /** New status */
1544
+ active: boolean | null;
1545
+ }
1546
+ /**
1547
+ * Updates extended fields of a DeliveryProfile without incrementing revision
1548
+ * @param _id - ID of the entity to update.
1549
+ * @param namespace - Identifier for the app whose extended fields are being updated.
1550
+ * @public
1551
+ * @documentationMaturity preview
1552
+ * @requiredField _id
1553
+ * @requiredField namespace
1554
+ * @requiredField options
1555
+ * @requiredField options.namespaceData
1556
+ * @permissionId ECOM.DELIVERY_PROFILE_UPDATE
1557
+ * @permissionScope Manage Stores - all permissions
1558
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1559
+ * @permissionScope Manage eCommerce - all permissions
1560
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1561
+ * @applicableIdentity APP
1562
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateExtendedFields
1563
+ */
1564
+ export declare function updateExtendedFields(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields>;
1565
+ export interface UpdateExtendedFieldsOptions {
1566
+ /** 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. */
1567
+ namespaceData: Record<string, any> | null;
1568
+ }
1569
+ export {};