@wix/auto_sdk_ecom_delivery-profile 1.0.23 → 1.0.25

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 (134) hide show
  1. package/build/{cjs/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts → ecom-v1-delivery-profile-delivery-profile.universal-_1-ffDas.d.mts} +359 -124
  2. package/build/{internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts → ecom-v1-delivery-profile-delivery-profile.universal-_1-ffDas.d.ts} +359 -124
  3. package/build/index.d.mts +176 -0
  4. package/build/index.d.ts +176 -0
  5. package/build/index.js +1257 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1210 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts → ecom-v1-delivery-profile-delivery-profile.universal-_1-ffDas.d.mts} +359 -124
  10. package/build/{es/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts → internal/ecom-v1-delivery-profile-delivery-profile.universal-_1-ffDas.d.ts} +359 -124
  11. package/build/internal/index.d.mts +176 -0
  12. package/build/internal/index.d.ts +176 -0
  13. package/build/internal/index.js +1257 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1210 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +729 -0
  18. package/build/internal/meta.d.ts +729 -0
  19. package/build/internal/meta.js +855 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +813 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +729 -0
  24. package/build/meta.d.ts +729 -0
  25. package/build/meta.js +855 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +813 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +0 -20
  40. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js +0 -31
  41. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +0 -1
  42. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +0 -73
  43. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js +0 -567
  44. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +0 -1
  45. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +0 -46
  46. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js +0 -344
  47. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +0 -159
  49. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js +0 -111
  50. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +0 -1
  51. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js +0 -142
  52. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +0 -1
  53. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +0 -1975
  54. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js +0 -965
  55. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +0 -20
  67. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.context.js +0 -20
  68. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +0 -1
  69. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +0 -73
  70. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.http.js +0 -548
  71. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +0 -1
  72. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +0 -46
  73. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js +0 -302
  74. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +0 -1
  75. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +0 -159
  76. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.public.js +0 -84
  77. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +0 -1
  78. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.types.js +0 -139
  79. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +0 -1
  80. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +0 -1975
  81. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js +0 -923
  82. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +0 -20
  93. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js +0 -31
  94. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +0 -1
  95. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +0 -73
  96. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js +0 -567
  97. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +0 -1
  98. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +0 -46
  99. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js +0 -344
  100. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +0 -1
  101. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +0 -159
  102. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js +0 -111
  103. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +0 -1
  104. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js +0 -142
  105. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +0 -1
  106. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +0 -1975
  107. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js +0 -965
  108. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +0 -20
  119. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.context.js +0 -20
  120. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +0 -1
  121. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +0 -73
  122. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.http.js +0 -548
  123. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +0 -1
  124. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +0 -46
  125. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js +0 -302
  126. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +0 -1
  127. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +0 -159
  128. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.public.js +0 -84
  129. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +0 -1
  130. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.types.js +0 -139
  131. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +0 -1
  132. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +0 -1975
  133. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js +0 -923
  134. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +0 -1
@@ -1,1975 +0,0 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- /**
3
- * A DeliveryProfile is a ...
4
- * You can ...
5
- * Read more about DeliveryProfiles
6
- * in this [article](<LINK_TO_KB_ARTICLE>).
7
- */
8
- export interface DeliveryProfile {
9
- /**
10
- * DeliveryProfile ID.
11
- * @format GUID
12
- * @readonly
13
- */
14
- _id?: string | null;
15
- /**
16
- * DeliveryProfile name.
17
- * @minLength 1
18
- * @maxLength 256
19
- */
20
- name?: string | null;
21
- /**
22
- * Flags this DeliveryProfile as the default DeliveryProfile.
23
- * @readonly
24
- */
25
- default?: boolean | null;
26
- /**
27
- * A list of DeliveryProfile regions.
28
- * @maxSize 100
29
- */
30
- deliveryRegions?: DeliveryRegion[];
31
- /** ID of the delivery profile's creator. */
32
- createdBy?: CreatedBy;
33
- /**
34
- * DeliveryProfile revision.
35
- * @readonly
36
- */
37
- revision?: string | null;
38
- /**
39
- * Date and time the DeliveryProfile was created.
40
- * @readonly
41
- */
42
- _createdDate?: Date | null;
43
- /**
44
- * Date and time the DeliveryProfile was last updated.
45
- * @readonly
46
- */
47
- _updatedDate?: Date | null;
48
- /** [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. */
49
- extendedFields?: ExtendedFields;
50
- }
51
- /** DeliveryRegion can be used to config a Delivery Destinations with its providers */
52
- export interface DeliveryRegion {
53
- /**
54
- * The delivery region id.
55
- * @format GUID
56
- * @readonly
57
- */
58
- _id?: string | null;
59
- /**
60
- * Optional name of the region, for example: "Domestic".
61
- * @minLength 1
62
- * @maxLength 256
63
- */
64
- name?: string | null;
65
- /** Indicates that this rule is active, default value is true. */
66
- active?: boolean | null;
67
- /**
68
- * The spi implementers id of shipping-rates spi, assigned to this rule.
69
- * @maxSize 25
70
- * @readonly
71
- */
72
- deliveryCarriers?: DeliveryCarrier[];
73
- /**
74
- * The operation region of this rule, if empty than it is global.
75
- * @maxSize 200
76
- */
77
- destinations?: Destination[];
78
- /**
79
- * Represents the time this Profile was created
80
- * @readonly
81
- */
82
- _createdDate?: Date | null;
83
- }
84
- export interface DeliveryCarrier {
85
- /**
86
- * 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.
87
- * @format GUID
88
- */
89
- appId?: string;
90
- /** Backup rate to be used in case the cost returned by the provider is empty. */
91
- backupRate?: BackupRate;
92
- /**
93
- * Additional charges to add to the delivery rate for this carrier
94
- * @maxSize 10
95
- */
96
- additionalCharges?: AdditionalCharge[];
97
- }
98
- export interface BackupRate {
99
- /**
100
- * Default rate prefix that will concatenate to the delivery options the provider will offer.
101
- * @minLength 1
102
- * @maxLength 256
103
- * @deprecated Default rate prefix that will concatenate to the delivery options the provider will offer.
104
- * @replacedBy title
105
- * @targetRemovalDate 2025-04-01
106
- */
107
- prefix?: string | null;
108
- /**
109
- * Default rate price for all delivery options that the provider will offer.
110
- * @decimalValue options { gte:0, maxScale:6 }
111
- * @deprecated Default rate price for all delivery options that the provider will offer.
112
- * @replacedBy amount
113
- * @targetRemovalDate 2025-04-01
114
- */
115
- rate?: string | null;
116
- /**
117
- * Should the default rate be used. Default value is false.
118
- * @deprecated Should the default rate be used. Default value is false.
119
- * @replacedBy active
120
- * @targetRemovalDate 2025-04-01
121
- */
122
- enabled?: boolean | null;
123
- /**
124
- * Default rate title that will concatenate to the delivery options the provider will offer.
125
- * @minLength 1
126
- * @maxLength 32
127
- */
128
- title?: string | null;
129
- /**
130
- * Default amount price for all delivery options that the provider will offer.
131
- * @decimalValue options { gte:0, maxScale:6 }
132
- */
133
- amount?: string | null;
134
- /** Should the default rate be used. Default value is false. */
135
- active?: boolean;
136
- }
137
- export interface AdditionalCharge {
138
- /**
139
- * Additional charge type.
140
- * @deprecated Additional charge type.
141
- * @targetRemovalDate 2025-04-01
142
- */
143
- type?: ChargeType;
144
- /**
145
- * Description of the additional charge. For example, `"Handling fee of $5 applied for gift wrapping"`.
146
- * @maxLength 250
147
- */
148
- description?: string | null;
149
- /**
150
- * Cost of additional charge. For example, `12.5`.
151
- * @maxLength 16
152
- * @deprecated Cost of additional charge. For example, `12.5`.
153
- * @replacedBy amount
154
- * @targetRemovalDate 2025-04-01
155
- */
156
- price?: string;
157
- /**
158
- * Cost of additional charge. For example, `12.5`.
159
- * @maxLength 16
160
- */
161
- amount?: string;
162
- }
163
- export declare enum ChargeType {
164
- HANDLING_FEE = "HANDLING_FEE"
165
- }
166
- /** Defines the area inside one country that is relevant for this rule. */
167
- export interface Destination {
168
- /**
169
- * 2-letters code represents the country of the delivery destinations
170
- * @format COUNTRY
171
- */
172
- countryCode?: string;
173
- /**
174
- * subdivisions - Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).
175
- * If empty, the rule applies to the entire country.
176
- * @maxSize 100
177
- * @minLength 1
178
- * @maxLength 256
179
- */
180
- subdivisions?: string[];
181
- }
182
- export interface CreatedBy extends CreatedByIdOneOf {
183
- /**
184
- * App ID - when the delivery profile was created by an external application or Wix service.
185
- * @format GUID
186
- */
187
- appId?: string | null;
188
- /**
189
- * User ID - when the delivery profile was created by a Wix user.
190
- * @format GUID
191
- */
192
- userId?: string | null;
193
- }
194
- /** @oneof */
195
- export interface CreatedByIdOneOf {
196
- /**
197
- * App ID - when the delivery profile was created by an external application or Wix service.
198
- * @format GUID
199
- */
200
- appId?: string | null;
201
- /**
202
- * User ID - when the delivery profile was created by a Wix user.
203
- * @format GUID
204
- */
205
- userId?: string | null;
206
- }
207
- export interface ExtendedFields {
208
- /**
209
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
210
- * The value of each key is structured according to the schema defined when the extended fields were configured.
211
- *
212
- * You can only access fields for which you have the appropriate permissions.
213
- *
214
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
215
- */
216
- namespaces?: Record<string, Record<string, any>>;
217
- }
218
- export interface DeliveryRegionAdded {
219
- /**
220
- * The DeliveryProfile owns this region.
221
- * @format GUID
222
- */
223
- deliveryProfileId?: string;
224
- /**
225
- * The delivery region id.
226
- * @format GUID
227
- * @readonly
228
- */
229
- deliveryRegionId?: string | null;
230
- /**
231
- * Optional name of the rule, for example: "Domestic".
232
- * @minLength 1
233
- * @maxLength 256
234
- */
235
- name?: string | null;
236
- /** Indicates that this rule is active, default value is true. */
237
- active?: boolean | null;
238
- /**
239
- * The spi implementers id of shipping-rates spi, assigned to this rule.
240
- * @maxSize 25
241
- * @readonly
242
- */
243
- deliveryCarriers?: DeliveryCarrier[];
244
- /**
245
- * The operation region of this rule, if empty than it is global.
246
- * @maxSize 200
247
- */
248
- destinations?: Destination[];
249
- /**
250
- * Represents the time this Profile was created
251
- * @readonly
252
- */
253
- _createdDate?: Date | null;
254
- }
255
- export interface DeliveryRegionRemoved {
256
- /**
257
- * The DeliveryProfile owns this region.
258
- * @format GUID
259
- */
260
- deliveryProfileId?: string;
261
- /** The removed DeliveryRegion id. */
262
- deliveryRegionId?: string;
263
- }
264
- export interface DeliveryRegionUpdated {
265
- /**
266
- * The DeliveryProfile owns this DeliveryRegion.
267
- * @format GUID
268
- */
269
- deliveryProfileId?: string;
270
- /**
271
- * The delivery region id.
272
- * @format GUID
273
- * @readonly
274
- */
275
- deliveryRegionId?: string | null;
276
- /**
277
- * Optional name of the rule, for example: "Domestic".
278
- * @minLength 1
279
- * @maxLength 256
280
- */
281
- name?: string | null;
282
- /** Indicates that this rule is active, default value is true. */
283
- active?: boolean | null;
284
- /**
285
- * The spi implementers id of shipping-rates spi, assigned to this rule.
286
- * @maxSize 25
287
- * @readonly
288
- */
289
- deliveryCarriers?: DeliveryCarrier[];
290
- /**
291
- * The operation region of this rule, if empty than it is global.
292
- * @maxSize 200
293
- */
294
- destinations?: Destination[];
295
- /**
296
- * Represents the time this Profile was created
297
- * @readonly
298
- */
299
- _createdDate?: Date | null;
300
- }
301
- export interface CreateDeliveryProfileRequest {
302
- /** DeliveryProfile to be created. */
303
- deliveryProfile: DeliveryProfile;
304
- }
305
- export interface CreateDeliveryProfileResponse {
306
- /** The created DeliveryProfile. */
307
- deliveryProfile?: DeliveryProfile;
308
- }
309
- export interface GetDeliveryProfileRequest {
310
- /**
311
- * ID of the DeliveryProfile to retrieve.
312
- * @format GUID
313
- */
314
- deliveryProfileId: string;
315
- }
316
- export interface GetDeliveryProfileResponse {
317
- /** The requested DeliveryProfile. */
318
- deliveryProfile?: DeliveryProfile;
319
- }
320
- export interface UpdateDeliveryProfileRequest {
321
- /** DeliveryProfile to be updated, may be partial. */
322
- deliveryProfile: DeliveryProfile;
323
- }
324
- export interface UpdateDeliveryProfileResponse {
325
- /** Updated DeliveryProfile. */
326
- deliveryProfile?: DeliveryProfile;
327
- }
328
- export interface DeleteDeliveryProfileRequest {
329
- /**
330
- * Id of the DeliveryProfile to delete.
331
- * @format GUID
332
- */
333
- deliveryProfileId: string;
334
- }
335
- export interface DeleteDeliveryProfileResponse {
336
- }
337
- export interface DeleteDefaultDeliveryProfileRequest {
338
- /**
339
- * Id of the DeliveryProfile to delete.
340
- * @format GUID
341
- */
342
- deliveryProfileId?: string;
343
- }
344
- export interface DeleteDefaultDeliveryProfileResponse {
345
- }
346
- export interface QueryDeliveryProfilesRequest {
347
- /** WQL expression. */
348
- query?: CursorQuery;
349
- }
350
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
351
- /** 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`. */
352
- cursorPaging?: CursorPaging;
353
- /**
354
- * Filter object in the following format:
355
- * `"filter" : {
356
- * "fieldName1": "value1",
357
- * "fieldName2":{"$operator":"value2"}
358
- * }`
359
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
360
- */
361
- filter?: Record<string, any> | null;
362
- /**
363
- * Sort object in the following format:
364
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
365
- * @maxSize 5
366
- */
367
- sort?: Sorting[];
368
- }
369
- /** @oneof */
370
- export interface CursorQueryPagingMethodOneOf {
371
- /** 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`. */
372
- cursorPaging?: CursorPaging;
373
- }
374
- export interface Sorting {
375
- /**
376
- * Name of the field to sort by.
377
- * @maxLength 512
378
- */
379
- fieldName?: string;
380
- /** Sort order. */
381
- order?: SortOrder;
382
- }
383
- export declare enum SortOrder {
384
- ASC = "ASC",
385
- DESC = "DESC"
386
- }
387
- export interface CursorPaging {
388
- /**
389
- * Maximum number of items to return in the results.
390
- * @max 100
391
- */
392
- limit?: number | null;
393
- /**
394
- * Pointer to the next or previous page in the list of results.
395
- *
396
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
397
- * Not relevant for the first request.
398
- * @maxLength 16000
399
- */
400
- cursor?: string | null;
401
- }
402
- export interface QueryDeliveryProfilesResponse {
403
- /** List of DeliveryProfiles. */
404
- deliveryProfiles?: DeliveryProfile[];
405
- /** Paging metadata */
406
- pagingMetadata?: CursorPagingMetadata;
407
- }
408
- export interface CursorPagingMetadata {
409
- /** Number of items returned in the response. */
410
- count?: number | null;
411
- /** Cursor strings that point to the next page, previous page, or both. */
412
- cursors?: Cursors;
413
- /**
414
- * Whether there are more pages to retrieve following the current page.
415
- *
416
- * + `true`: Another page of results can be retrieved.
417
- * + `false`: This is the last page.
418
- */
419
- hasNext?: boolean | null;
420
- }
421
- export interface Cursors {
422
- /**
423
- * Cursor string pointing to the next page in the list of results.
424
- * @maxLength 16000
425
- */
426
- next?: string | null;
427
- /**
428
- * Cursor pointing to the previous page in the list of results.
429
- * @maxLength 16000
430
- */
431
- prev?: string | null;
432
- }
433
- export interface AddDeliveryRegionRequest {
434
- /**
435
- * delivery profile id to associated with the DeliveryRegion
436
- * @format GUID
437
- */
438
- deliveryProfileId: string;
439
- /** DeliveryRegion to be created */
440
- deliveryRegion: DeliveryRegion;
441
- /**
442
- * DeliveryProfile revision.
443
- * @readonly
444
- */
445
- revision?: string | null;
446
- }
447
- export interface AddDeliveryRegionResponse {
448
- /** The updated DeliveryProfile with the new DeliveryRegion */
449
- deliveryProfile?: DeliveryProfile;
450
- }
451
- export interface UpdateDeliveryRegionRequest {
452
- /**
453
- * DeliveryProfile id that owns the DeliveryRegion
454
- * @format GUID
455
- */
456
- deliveryProfileId: string;
457
- /** DeliveryRegion to be updated, may be partial */
458
- deliveryRegion: DeliveryRegion;
459
- /**
460
- * DeliveryProfile revision.
461
- * @readonly
462
- */
463
- revision?: string | null;
464
- }
465
- export interface UpdateDeliveryRegionResponse {
466
- /** The updated DeliveryProfile with the updated DeliveryRegion */
467
- deliveryProfile?: DeliveryProfile;
468
- }
469
- export interface RemoveDeliveryRegionRequest {
470
- /**
471
- * DeliveryProfile id that owns the DeliveryRegion
472
- * @format GUID
473
- */
474
- deliveryProfileId: string;
475
- /**
476
- * Id of the DeliveryRegion to delete
477
- * @format GUID
478
- */
479
- deliveryRegionId: string;
480
- /**
481
- * DeliveryProfile revision.
482
- * @readonly
483
- */
484
- revision?: string | null;
485
- }
486
- export interface RemoveDeliveryRegionResponse {
487
- /** The updated DeliveryProfile without DeliveryRegion */
488
- deliveryProfile?: DeliveryProfile;
489
- }
490
- export interface AddDeliveryCarrierRequest {
491
- /**
492
- * delivery_region id to associated with the delivery_carrier.
493
- * @format GUID
494
- */
495
- deliveryRegionId: string;
496
- /** delivery_carrier to be added. */
497
- deliveryCarrier: DeliveryCarrier;
498
- }
499
- export interface AddDeliveryCarrierResponse {
500
- /** The updated DeliveryProfile */
501
- deliveryProfile?: DeliveryProfile;
502
- }
503
- export interface RemoveDeliveryCarrierRequest {
504
- /**
505
- * Id of the DeliveryRegion
506
- * @format GUID
507
- */
508
- deliveryRegionId: string;
509
- /**
510
- * DeliveryCarrier app id to be removed.
511
- * @format GUID
512
- */
513
- appId: string;
514
- }
515
- export interface RemoveDeliveryCarrierResponse {
516
- /** The updated DeliveryProfile */
517
- deliveryProfile?: DeliveryProfile;
518
- }
519
- export interface UpdateDeliveryCarrierRequest {
520
- /**
521
- * DeliveryRegion id
522
- * @format GUID
523
- */
524
- deliveryRegionId: string;
525
- /** Updated delivery_carrier */
526
- deliveryCarrier?: DeliveryCarrier;
527
- }
528
- export interface UpdateDeliveryCarrierResponse {
529
- /** The updated DeliveryProfile with the updated DeliveryCarrier */
530
- deliveryProfile?: DeliveryProfile;
531
- }
532
- export interface ListDeliveryCarrierDetailsRequest {
533
- }
534
- export interface ListDeliveryCarrierDetailsResponse {
535
- /**
536
- * The list of carrier or multi-carrier services that has implemented the spi and installed on the current context(site)
537
- * @maxSize 100
538
- */
539
- deliveryCarrierDetails?: DeliveryCarrierDetails[];
540
- }
541
- export interface DeliveryCarrierDetails {
542
- /**
543
- * The id of the provider.
544
- * @format GUID
545
- */
546
- _id?: string;
547
- /**
548
- * The name of the Provider.
549
- * @maxLength 256
550
- */
551
- displayName?: string;
552
- /**
553
- * Provider's description.
554
- * @maxLength 200
555
- */
556
- description?: string | null;
557
- /**
558
- * A link to learn more about the provider.
559
- * @maxLength 200
560
- */
561
- learnMoreUrl?: string | null;
562
- /**
563
- * Dashboard URL for the provider.
564
- * @minLength 1
565
- * @maxLength 2048
566
- * @format WEB_URL
567
- */
568
- dashboardUrl?: string | null;
569
- /** If the provider fallback definition is mandatory. */
570
- fallbackDefinitionMandatory?: boolean | null;
571
- /**
572
- * Thumbnail image for provider.
573
- * @format WEB_URL
574
- */
575
- thumbnailUrl?: string | null;
576
- /** feature toggle initialized with default value = false. should be true if implemented by spi provider */
577
- toggleGetCarrierSettingsEnabled?: boolean;
578
- /** feature toggle initialized with default value = false. should be true if implemented by spi provider */
579
- toggleUpdateCarrierActiveStatusEnabled?: boolean;
580
- }
581
- export interface ListInstalledDeliveryCarriersRequest {
582
- }
583
- export interface ListInstalledDeliveryCarriersResponse {
584
- /**
585
- * The list of carrier or multi-carrier services that has implemented the spi and installed on the current context(site)
586
- * @maxSize 100
587
- */
588
- installedDeliveryCarriers?: InstalledDeliveryCarrier[];
589
- }
590
- export interface InstalledDeliveryCarrier {
591
- /**
592
- * The id of the provider.
593
- * @format GUID
594
- */
595
- _id?: string;
596
- /**
597
- * The name of the Provider.
598
- * @maxLength 256
599
- */
600
- displayName?: string;
601
- /**
602
- * Provider's description.
603
- * @maxLength 200
604
- */
605
- description?: string | null;
606
- /**
607
- * A link to learn more about the provider.
608
- * @maxLength 200
609
- */
610
- learnMoreUrl?: string | null;
611
- /**
612
- * Dashboard URL for the provider.
613
- * @minLength 1
614
- * @maxLength 2048
615
- * @format WEB_URL
616
- */
617
- dashboardUrl?: string | null;
618
- /** If the provider fallback definition is mandatory. */
619
- fallbackDefinitionMandatory?: boolean | null;
620
- /**
621
- * Thumbnail image for provider.
622
- * @format WEB_URL
623
- */
624
- thumbnailUrl?: string | null;
625
- /** feature toggle initialized with default value = false. should be true if implemented by spi provider */
626
- toggleGetCarrierSettingsEnabled?: boolean;
627
- }
628
- export interface ListDeliveryDestinationsRequest {
629
- }
630
- export interface ListDeliveryDestinationsResponse {
631
- /** Scope of destinations, when worldwide is selected, the destinations list will be empty. */
632
- destinationScope?: DestinationScope;
633
- /**
634
- * The list of destinations
635
- * @maxSize 200
636
- */
637
- destinations?: Destination[];
638
- }
639
- export declare enum DestinationScope {
640
- /** No additional destinations are requested */
641
- SPECIFIC_DESTINATIONS = "SPECIFIC_DESTINATIONS",
642
- /** All Destinations */
643
- WORLDWIDE = "WORLDWIDE"
644
- }
645
- export interface RequiredZipcodeRequest {
646
- }
647
- export interface RequiredZipcodeResponse {
648
- /** If the site requires a zipcode for delivery */
649
- requiredZipcode?: boolean;
650
- }
651
- export interface ListDeliveryCarriersRequest {
652
- /**
653
- * Delivery profile id.
654
- * @format GUID
655
- */
656
- deliveryProfileId: string;
657
- /**
658
- * Delivery app ids to get settings for.
659
- * @format GUID
660
- * @minSize 1
661
- * @maxSize 25
662
- */
663
- appIds?: string[];
664
- }
665
- export interface ListDeliveryCarriersResponse {
666
- /**
667
- * The list of delivery settings for the given requests
668
- * @maxSize 100
669
- */
670
- results?: ListDeliveryCarriersResult[];
671
- /** Bulk action metadata. */
672
- bulkActionMetadata?: BulkActionMetadata;
673
- }
674
- export interface ListDeliveryCarriersResult {
675
- /** Information about successful action or error for failure. */
676
- deliveryCarrierMetadata?: ItemMetadata;
677
- /** The delivery carrier details */
678
- deliveryCarrierDetails?: DeliveryCarrierDetails;
679
- /**
680
- * The delivery settings for the delivery profile and delivery region.
681
- * @minSize 1
682
- * @maxSize 5
683
- */
684
- deliveryCarrierRegionalSettings?: DeliveryCarrierRegionalSettings[];
685
- }
686
- export interface ItemMetadata {
687
- /**
688
- * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
689
- * @format GUID
690
- */
691
- _id?: string | null;
692
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
693
- success?: boolean;
694
- /** Details about the error in case of failure. */
695
- error?: ApplicationError;
696
- }
697
- export interface ApplicationError {
698
- /** Error code. */
699
- code?: string;
700
- /** Description of the error. */
701
- description?: string;
702
- /** Data related to the error. */
703
- data?: Record<string, any> | null;
704
- }
705
- export interface DeliveryCarrierRegionalSettings {
706
- /**
707
- * The delivery rule id.
708
- * @format GUID
709
- */
710
- deliveryRegionId?: string;
711
- /**
712
- * The shipping table values that are associated with the delivery rule. Can be multiple if the provider is an aggregator of multiple carriers.
713
- * @minSize 1
714
- * @maxSize 5
715
- */
716
- dashboardTables?: DashboardTable[];
717
- }
718
- export interface DashboardTable {
719
- /**
720
- * The title of the delivery settings that will be displayed in the UI.
721
- * @maxLength 256
722
- */
723
- title?: string;
724
- /**
725
- * The columns of the delivery settings that will be displayed in the UI.
726
- * @maxSize 200
727
- */
728
- columns?: Column[];
729
- /**
730
- * The content of the delivery settings. Each row is a map of column name to value.
731
- * @maxSize 25
732
- */
733
- rows?: Row[];
734
- }
735
- export interface Column {
736
- /**
737
- * The name of the column. This is used to get the data from the row.
738
- * @maxLength 256
739
- */
740
- key?: string;
741
- /**
742
- * The title of the column that will be displayed in the UI.
743
- * @maxLength 256
744
- */
745
- name?: string;
746
- }
747
- export interface Row {
748
- /**
749
- * The external key of the data presented in a row. This is used to identify the row in the UI for editing.
750
- * @maxLength 256
751
- */
752
- key?: string;
753
- /**
754
- * The data presented in the row. The key is the column `name` and the value is the data in the specific row and column.
755
- * Data will be in JSON format.
756
- */
757
- data?: Record<string, any> | null;
758
- /** The configuration's status of the current row. */
759
- active?: boolean;
760
- }
761
- export interface BulkActionMetadata {
762
- /** Number of items that were successfully processed. */
763
- totalSuccesses?: number;
764
- /** Number of items that couldn't be processed. */
765
- totalFailures?: number;
766
- /** Number of failures without details because detailed failure threshold was exceeded. */
767
- undetailedFailures?: number;
768
- }
769
- export interface UpdateCarrierSettingsRequest {
770
- /**
771
- * Carrier id.
772
- * @format GUID
773
- */
774
- carrierId: string;
775
- /**
776
- * Row id triggered the change
777
- * @format GUID
778
- */
779
- rowId: string;
780
- /** New status */
781
- active: boolean | null;
782
- }
783
- export interface UpdateCarrierSettingsResponse {
784
- }
785
- export interface UpdateExtendedFieldsRequest {
786
- /** ID of the entity to update. */
787
- _id: string;
788
- /** Identifier for the app whose extended fields are being updated. */
789
- namespace: string;
790
- /** 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. */
791
- namespaceData: Record<string, any> | null;
792
- }
793
- export interface UpdateExtendedFieldsResponse {
794
- /** Updated DeliveryProfile. */
795
- deliveryProfile?: DeliveryProfile;
796
- }
797
- export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
798
- /** Emitted on a meta site creation. */
799
- siteCreated?: SiteCreated;
800
- /** Emitted on a meta site transfer completion. */
801
- siteTransferred?: SiteTransferred;
802
- /** Emitted on a meta site deletion. */
803
- siteDeleted?: SiteDeleted;
804
- /** Emitted on a meta site restoration. */
805
- siteUndeleted?: SiteUndeleted;
806
- /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
807
- sitePublished?: SitePublished;
808
- /** Emitted on a meta site unpublish. */
809
- siteUnpublished?: SiteUnpublished;
810
- /** Emitted when meta site is marked as template. */
811
- siteMarkedAsTemplate?: SiteMarkedAsTemplate;
812
- /** Emitted when meta site is marked as a WixSite. */
813
- siteMarkedAsWixSite?: SiteMarkedAsWixSite;
814
- /** Emitted when an application is provisioned (installed). */
815
- serviceProvisioned?: ServiceProvisioned;
816
- /** Emitted when an application is removed (uninstalled). */
817
- serviceRemoved?: ServiceRemoved;
818
- /** Emitted when meta site name (URL slug) is changed. */
819
- siteRenamedPayload?: SiteRenamed;
820
- /** Emitted when meta site was permanently deleted. */
821
- hardDeleted?: SiteHardDeleted;
822
- /** Emitted on a namespace change. */
823
- namespaceChanged?: NamespaceChanged;
824
- /** Emitted when Studio is attached. */
825
- studioAssigned?: StudioAssigned;
826
- /** Emitted when Studio is detached. */
827
- studioUnassigned?: StudioUnassigned;
828
- /**
829
- * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
830
- * the actual URL.
831
- *
832
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
833
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
834
- */
835
- urlChanged?: SiteUrlChanged;
836
- /** Site is marked as PurgedExternally */
837
- sitePurgedExternally?: SitePurgedExternally;
838
- /**
839
- * A meta site id.
840
- * @format GUID
841
- */
842
- metaSiteId?: string;
843
- /** A meta site version. Monotonically increasing. */
844
- version?: string;
845
- /** A timestamp of the event. */
846
- timestamp?: string;
847
- /**
848
- * TODO(meta-site): Change validation once validations are disabled for consumers
849
- * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
850
- * @maxSize 4000
851
- */
852
- assets?: Asset[];
853
- }
854
- /** @oneof */
855
- export interface MetaSiteSpecialEventPayloadOneOf {
856
- /** Emitted on a meta site creation. */
857
- siteCreated?: SiteCreated;
858
- /** Emitted on a meta site transfer completion. */
859
- siteTransferred?: SiteTransferred;
860
- /** Emitted on a meta site deletion. */
861
- siteDeleted?: SiteDeleted;
862
- /** Emitted on a meta site restoration. */
863
- siteUndeleted?: SiteUndeleted;
864
- /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
865
- sitePublished?: SitePublished;
866
- /** Emitted on a meta site unpublish. */
867
- siteUnpublished?: SiteUnpublished;
868
- /** Emitted when meta site is marked as template. */
869
- siteMarkedAsTemplate?: SiteMarkedAsTemplate;
870
- /** Emitted when meta site is marked as a WixSite. */
871
- siteMarkedAsWixSite?: SiteMarkedAsWixSite;
872
- /** Emitted when an application is provisioned (installed). */
873
- serviceProvisioned?: ServiceProvisioned;
874
- /** Emitted when an application is removed (uninstalled). */
875
- serviceRemoved?: ServiceRemoved;
876
- /** Emitted when meta site name (URL slug) is changed. */
877
- siteRenamedPayload?: SiteRenamed;
878
- /** Emitted when meta site was permanently deleted. */
879
- hardDeleted?: SiteHardDeleted;
880
- /** Emitted on a namespace change. */
881
- namespaceChanged?: NamespaceChanged;
882
- /** Emitted when Studio is attached. */
883
- studioAssigned?: StudioAssigned;
884
- /** Emitted when Studio is detached. */
885
- studioUnassigned?: StudioUnassigned;
886
- /**
887
- * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
888
- * the actual URL.
889
- *
890
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
891
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
892
- */
893
- urlChanged?: SiteUrlChanged;
894
- /** Site is marked as PurgedExternally */
895
- sitePurgedExternally?: SitePurgedExternally;
896
- }
897
- export interface Asset {
898
- /**
899
- * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
900
- * @maxLength 36
901
- */
902
- appDefId?: string;
903
- /**
904
- * An instance id. For legacy reasons may be UUID or a string.
905
- * @maxLength 200
906
- */
907
- instanceId?: string;
908
- /** An application state. */
909
- state?: State;
910
- }
911
- export declare enum State {
912
- UNKNOWN = "UNKNOWN",
913
- ENABLED = "ENABLED",
914
- DISABLED = "DISABLED",
915
- PENDING = "PENDING",
916
- DEMO = "DEMO"
917
- }
918
- export interface SiteCreated {
919
- /**
920
- * A template identifier (empty if not created from a template).
921
- * @maxLength 36
922
- */
923
- originTemplateId?: string;
924
- /**
925
- * An account id of the owner.
926
- * @format GUID
927
- */
928
- ownerId?: string;
929
- /** A context in which meta site was created. */
930
- context?: SiteCreatedContext;
931
- /**
932
- * A meta site id from which this site was created.
933
- *
934
- * In case of a creation from a template it's a template id.
935
- * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
936
- * @format GUID
937
- */
938
- originMetaSiteId?: string | null;
939
- /**
940
- * A meta site name (URL slug).
941
- * @maxLength 20
942
- */
943
- siteName?: string;
944
- /** A namespace. */
945
- namespace?: Namespace;
946
- }
947
- export declare enum SiteCreatedContext {
948
- /** A valid option, we don't expose all reasons why site might be created. */
949
- OTHER = "OTHER",
950
- /** A meta site was created from template. */
951
- FROM_TEMPLATE = "FROM_TEMPLATE",
952
- /** A meta site was created by copying of the transfferred meta site. */
953
- DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
954
- /** A copy of existing meta site. */
955
- DUPLICATE = "DUPLICATE",
956
- /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
957
- OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
958
- /** deprecated A meta site was created for Flash editor. */
959
- FLASH = "FLASH"
960
- }
961
- export declare enum Namespace {
962
- UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
963
- /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
964
- WIX = "WIX",
965
- /** 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. */
966
- SHOUT_OUT = "SHOUT_OUT",
967
- /** 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. */
968
- ALBUMS = "ALBUMS",
969
- /** 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. */
970
- WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
971
- /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
972
- HOTELS = "HOTELS",
973
- /** 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. */
974
- CLUBS = "CLUBS",
975
- /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
976
- ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
977
- /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
978
- DEV_SITE = "DEV_SITE",
979
- /** 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. */
980
- LOGOS = "LOGOS",
981
- /** 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. */
982
- VIDEO_MAKER = "VIDEO_MAKER",
983
- /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
984
- PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
985
- /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
986
- DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
987
- /**
988
- * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
989
- *
990
- * Meta site with this namespace will *not* be shown in a user's site list by default.
991
- */
992
- HTML_DRAFT = "HTML_DRAFT",
993
- /**
994
- * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
995
- * Will be accessible from Site List and will not have a website app.
996
- * Once the user attaches a site, the site will become a regular wixsite.
997
- */
998
- SITELESS_BUSINESS = "SITELESS_BUSINESS",
999
- /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
1000
- CREATOR_ECONOMY = "CREATOR_ECONOMY",
1001
- /** It is to be used in the Business First efforts. */
1002
- DASHBOARD_FIRST = "DASHBOARD_FIRST",
1003
- /** Bookings business flow with no site. */
1004
- ANYWHERE = "ANYWHERE",
1005
- /** Namespace for Headless Backoffice with no editor */
1006
- HEADLESS = "HEADLESS",
1007
- /**
1008
- * Namespace for master site that will exist in parent account that will be referenced by subaccounts
1009
- * The site will be used for account level CSM feature for enterprise
1010
- */
1011
- ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
1012
- /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
1013
- RISE = "RISE",
1014
- /**
1015
- * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
1016
- * There's a blank site behind the scene but it's blank).
1017
- * The Mobile company will be the owner of this namespace.
1018
- */
1019
- BRANDED_FIRST = "BRANDED_FIRST",
1020
- /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
1021
- NOWNIA = "NOWNIA",
1022
- /**
1023
- * UGC Templates are templates that are created by users for personal use and to sale to other users.
1024
- * The Partners company owns this namespace.
1025
- */
1026
- UGC_TEMPLATE = "UGC_TEMPLATE",
1027
- /** Codux Headless Sites */
1028
- CODUX = "CODUX",
1029
- /** Bobb - AI Design Creator. */
1030
- MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
1031
- /**
1032
- * Shared Blog Site is a unique single site across Enterprise account,
1033
- * This site will hold all Blog posts related to the Marketing product.
1034
- */
1035
- SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE",
1036
- /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
1037
- STANDALONE_FORMS = "STANDALONE_FORMS",
1038
- /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
1039
- STANDALONE_EVENTS = "STANDALONE_EVENTS",
1040
- /** MIMIR - Siteless account for MIMIR Ai Job runner. */
1041
- MIMIR = "MIMIR"
1042
- }
1043
- /** Site transferred to another user. */
1044
- export interface SiteTransferred {
1045
- /**
1046
- * A previous owner id (user that transfers meta site).
1047
- * @format GUID
1048
- */
1049
- oldOwnerId?: string;
1050
- /**
1051
- * A new owner id (user that accepts meta site).
1052
- * @format GUID
1053
- */
1054
- newOwnerId?: string;
1055
- }
1056
- /** Soft deletion of the meta site. Could be restored. */
1057
- export interface SiteDeleted {
1058
- /** A deletion context. */
1059
- deleteContext?: DeleteContext;
1060
- }
1061
- export interface DeleteContext {
1062
- /** When the meta site was deleted. */
1063
- dateDeleted?: Date | null;
1064
- /** A status. */
1065
- deleteStatus?: DeleteStatus;
1066
- /**
1067
- * A reason (flow).
1068
- * @maxLength 255
1069
- */
1070
- deleteOrigin?: string;
1071
- /**
1072
- * A service that deleted it.
1073
- * @maxLength 255
1074
- */
1075
- initiatorId?: string | null;
1076
- }
1077
- export declare enum DeleteStatus {
1078
- UNKNOWN = "UNKNOWN",
1079
- TRASH = "TRASH",
1080
- DELETED = "DELETED",
1081
- PENDING_PURGE = "PENDING_PURGE",
1082
- PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
1083
- }
1084
- /** Restoration of the meta site. */
1085
- export interface SiteUndeleted {
1086
- }
1087
- /** First publish of a meta site. Or subsequent publish after unpublish. */
1088
- export interface SitePublished {
1089
- }
1090
- export interface SiteUnpublished {
1091
- /**
1092
- * A list of URLs previously associated with the meta site.
1093
- * @maxLength 4000
1094
- * @maxSize 10000
1095
- */
1096
- urls?: string[];
1097
- }
1098
- export interface SiteMarkedAsTemplate {
1099
- }
1100
- export interface SiteMarkedAsWixSite {
1101
- }
1102
- /**
1103
- * Represents a service provisioned a site.
1104
- *
1105
- * Note on `origin_instance_id`:
1106
- * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
1107
- * This is because of the following scenario:
1108
- *
1109
- * Imagine you have a template where a third-party application (TPA) includes some stub data,
1110
- * such as a product catalog. When you create a site from this template, you inherit this
1111
- * default product catalog. However, if the template's product catalog is modified,
1112
- * your site will retain the catalog as it was at the time of site creation. This ensures that
1113
- * your site remains consistent with what you initially received and does not include any
1114
- * changes made to the original template afterward.
1115
- * To ensure this, the TPA on the template gets a new instance_id.
1116
- */
1117
- export interface ServiceProvisioned {
1118
- /**
1119
- * Either UUID or EmbeddedServiceType.
1120
- * @maxLength 36
1121
- */
1122
- appDefId?: string;
1123
- /**
1124
- * Not only UUID. Something here could be something weird.
1125
- * @maxLength 36
1126
- */
1127
- instanceId?: string;
1128
- /**
1129
- * An instance id from which this instance is originated.
1130
- * @maxLength 36
1131
- */
1132
- originInstanceId?: string;
1133
- /**
1134
- * A version.
1135
- * @maxLength 500
1136
- */
1137
- version?: string | null;
1138
- /**
1139
- * The origin meta site id
1140
- * @format GUID
1141
- */
1142
- originMetaSiteId?: string | null;
1143
- }
1144
- export interface ServiceRemoved {
1145
- /**
1146
- * Either UUID or EmbeddedServiceType.
1147
- * @maxLength 36
1148
- */
1149
- appDefId?: string;
1150
- /**
1151
- * Not only UUID. Something here could be something weird.
1152
- * @maxLength 36
1153
- */
1154
- instanceId?: string;
1155
- /**
1156
- * A version.
1157
- * @maxLength 500
1158
- */
1159
- version?: string | null;
1160
- }
1161
- /** Rename of the site. Meaning, free public url has been changed as well. */
1162
- export interface SiteRenamed {
1163
- /**
1164
- * A new meta site name (URL slug).
1165
- * @maxLength 20
1166
- */
1167
- newSiteName?: string;
1168
- /**
1169
- * A previous meta site name (URL slug).
1170
- * @maxLength 255
1171
- */
1172
- oldSiteName?: string;
1173
- }
1174
- /**
1175
- * Hard deletion of the meta site.
1176
- *
1177
- * Could not be restored. Therefore it's desirable to cleanup data.
1178
- */
1179
- export interface SiteHardDeleted {
1180
- /** A deletion context. */
1181
- deleteContext?: DeleteContext;
1182
- }
1183
- export interface NamespaceChanged {
1184
- /** A previous namespace. */
1185
- oldNamespace?: Namespace;
1186
- /** A new namespace. */
1187
- newNamespace?: Namespace;
1188
- }
1189
- /** Assigned Studio editor */
1190
- export interface StudioAssigned {
1191
- }
1192
- /** Unassigned Studio editor */
1193
- export interface StudioUnassigned {
1194
- }
1195
- /**
1196
- * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
1197
- *
1198
- * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up
1199
- * with sites and its urls, you need to listen to another topic/event. Read about it:
1200
- *
1201
- * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
1202
- */
1203
- export interface SiteUrlChanged {
1204
- }
1205
- /**
1206
- * Used at the end of the deletion flow for both draft sites and when a user deletes a site.
1207
- * Consumed by other teams to remove relevant data.
1208
- */
1209
- export interface SitePurgedExternally {
1210
- /**
1211
- * @maxLength 2048
1212
- * @maxSize 100
1213
- * @deprecated
1214
- * @targetRemovalDate 2025-04-15
1215
- */
1216
- appDefId?: string[];
1217
- }
1218
- export interface Empty {
1219
- }
1220
- export interface DomainEvent extends DomainEventBodyOneOf {
1221
- createdEvent?: EntityCreatedEvent;
1222
- updatedEvent?: EntityUpdatedEvent;
1223
- deletedEvent?: EntityDeletedEvent;
1224
- actionEvent?: ActionEvent;
1225
- /**
1226
- * Unique event ID.
1227
- * Allows clients to ignore duplicate webhooks.
1228
- */
1229
- _id?: string;
1230
- /**
1231
- * Assumes actions are also always typed to an entity_type
1232
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1233
- */
1234
- entityFqdn?: string;
1235
- /**
1236
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1237
- * This is although the created/updated/deleted notion is duplication of the oneof types
1238
- * Example: created/updated/deleted/started/completed/email_opened
1239
- */
1240
- slug?: string;
1241
- /** ID of the entity associated with the event. */
1242
- entityId?: string;
1243
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1244
- eventTime?: Date | null;
1245
- /**
1246
- * Whether the event was triggered as a result of a privacy regulation application
1247
- * (for example, GDPR).
1248
- */
1249
- triggeredByAnonymizeRequest?: boolean | null;
1250
- /** If present, indicates the action that triggered the event. */
1251
- originatedFrom?: string | null;
1252
- /**
1253
- * A sequence number defining the order of updates to the underlying entity.
1254
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
1255
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1256
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1257
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
1258
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1259
- */
1260
- entityEventSequence?: string | null;
1261
- }
1262
- /** @oneof */
1263
- export interface DomainEventBodyOneOf {
1264
- createdEvent?: EntityCreatedEvent;
1265
- updatedEvent?: EntityUpdatedEvent;
1266
- deletedEvent?: EntityDeletedEvent;
1267
- actionEvent?: ActionEvent;
1268
- }
1269
- export interface EntityCreatedEvent {
1270
- entity?: string;
1271
- }
1272
- export interface RestoreInfo {
1273
- deletedDate?: Date | null;
1274
- }
1275
- export interface EntityUpdatedEvent {
1276
- /**
1277
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1278
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1279
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1280
- */
1281
- currentEntity?: string;
1282
- }
1283
- export interface EntityDeletedEvent {
1284
- /** Entity that was deleted */
1285
- deletedEntity?: string | null;
1286
- }
1287
- export interface ActionEvent {
1288
- body?: string;
1289
- }
1290
- export interface MessageEnvelope {
1291
- /**
1292
- * App instance ID.
1293
- * @format GUID
1294
- */
1295
- instanceId?: string | null;
1296
- /**
1297
- * Event type.
1298
- * @maxLength 150
1299
- */
1300
- eventType?: string;
1301
- /** The identification type and identity data. */
1302
- identity?: IdentificationData;
1303
- /** Stringify payload. */
1304
- data?: string;
1305
- }
1306
- export interface IdentificationData extends IdentificationDataIdOneOf {
1307
- /**
1308
- * ID of a site visitor that has not logged in to the site.
1309
- * @format GUID
1310
- */
1311
- anonymousVisitorId?: string;
1312
- /**
1313
- * ID of a site visitor that has logged in to the site.
1314
- * @format GUID
1315
- */
1316
- memberId?: string;
1317
- /**
1318
- * ID of a Wix user (site owner, contributor, etc.).
1319
- * @format GUID
1320
- */
1321
- wixUserId?: string;
1322
- /**
1323
- * ID of an app.
1324
- * @format GUID
1325
- */
1326
- appId?: string;
1327
- /** @readonly */
1328
- identityType?: WebhookIdentityType;
1329
- }
1330
- /** @oneof */
1331
- export interface IdentificationDataIdOneOf {
1332
- /**
1333
- * ID of a site visitor that has not logged in to the site.
1334
- * @format GUID
1335
- */
1336
- anonymousVisitorId?: string;
1337
- /**
1338
- * ID of a site visitor that has logged in to the site.
1339
- * @format GUID
1340
- */
1341
- memberId?: string;
1342
- /**
1343
- * ID of a Wix user (site owner, contributor, etc.).
1344
- * @format GUID
1345
- */
1346
- wixUserId?: string;
1347
- /**
1348
- * ID of an app.
1349
- * @format GUID
1350
- */
1351
- appId?: string;
1352
- }
1353
- export declare enum WebhookIdentityType {
1354
- UNKNOWN = "UNKNOWN",
1355
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1356
- MEMBER = "MEMBER",
1357
- WIX_USER = "WIX_USER",
1358
- APP = "APP"
1359
- }
1360
- type DeliveryProfileNonNullablePaths = `deliveryRegions` | `deliveryRegions.${number}.deliveryCarriers` | `deliveryRegions.${number}.deliveryCarriers.${number}.appId` | `deliveryRegions.${number}.deliveryCarriers.${number}.backupRate.active` | `deliveryRegions.${number}.deliveryCarriers.${number}.additionalCharges` | `deliveryRegions.${number}.deliveryCarriers.${number}.additionalCharges.${number}.type` | `deliveryRegions.${number}.deliveryCarriers.${number}.additionalCharges.${number}.price` | `deliveryRegions.${number}.deliveryCarriers.${number}.additionalCharges.${number}.amount` | `deliveryRegions.${number}.destinations` | `deliveryRegions.${number}.destinations.${number}.countryCode` | `deliveryRegions.${number}.destinations.${number}.subdivisions`;
1361
- /**
1362
- * Creates a DeliveryProfile.
1363
- *
1364
- * The request body must include the DeliveryProfiles name. DeliveryRegions are optional.
1365
- * @param deliveryProfile - DeliveryProfile to be created.
1366
- * @public
1367
- * @documentationMaturity preview
1368
- * @requiredField deliveryProfile
1369
- * @requiredField deliveryProfile.deliveryRegions.destinations
1370
- * @requiredField deliveryProfile.deliveryRegions.destinations.countryCode
1371
- * @requiredField deliveryProfile.deliveryRegions.name
1372
- * @requiredField deliveryProfile.name
1373
- * @permissionId ECOM.DELIVERY_PROFILE_CREATE
1374
- * @permissionScope Manage Stores - all permissions
1375
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1376
- * @permissionScope Manage Restaurants - all permissions
1377
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1378
- * @permissionScope Manage eCommerce - all permissions
1379
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1380
- * @permissionScope Picasso private app mega scope
1381
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1382
- * @applicableIdentity APP
1383
- * @returns The created DeliveryProfile.
1384
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.CreateDeliveryProfile
1385
- */
1386
- export declare function createDeliveryProfile(deliveryProfile: NonNullablePaths<DeliveryProfile, `deliveryRegions.${number}.destinations` | `deliveryRegions.${number}.destinations.${number}.countryCode` | `deliveryRegions.${number}.name` | `name`>): Promise<NonNullablePaths<DeliveryProfile, DeliveryProfileNonNullablePaths>>;
1387
- /**
1388
- * Retrieves a DeliveryProfile.
1389
- * @param deliveryProfileId - ID of the DeliveryProfile to retrieve.
1390
- * @public
1391
- * @documentationMaturity preview
1392
- * @requiredField deliveryProfileId
1393
- * @permissionId ECOM.DELIVERY_PROFILE_READ
1394
- * @permissionScope Manage Stores - all permissions
1395
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1396
- * @permissionScope Read eCommerce - all read permissions
1397
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1398
- * @permissionScope Manage Restaurants - all permissions
1399
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1400
- * @permissionScope Manage eCommerce - all permissions
1401
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1402
- * @permissionScope Picasso private app mega scope
1403
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1404
- * @applicableIdentity APP
1405
- * @applicableIdentity VISITOR
1406
- * @returns The requested DeliveryProfile.
1407
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfile
1408
- */
1409
- export declare function getDeliveryProfile(deliveryProfileId: string): Promise<NonNullablePaths<DeliveryProfile, DeliveryProfileNonNullablePaths>>;
1410
- /**
1411
- * Updates a DeliveryProfile.
1412
- *
1413
- *
1414
- * Each time the DeliveryProfile is updated,
1415
- * `revision` increments by 1.
1416
- * The current `revision` must be passed when updating the DeliveryProfile.
1417
- * This ensures you're working with the latest DeliveryProfile
1418
- * and prevents unintended overwrites.
1419
- *
1420
- * This method does not allow updating the DeliveryRegions in this DeliveryProfile.
1421
- * Use AddDeliveryRegion, UpdateDeliveryRegion and RemoveDeliveryRegion for these functionalities.
1422
- * @param _id - DeliveryProfile ID.
1423
- * @public
1424
- * @documentationMaturity preview
1425
- * @requiredField _id
1426
- * @requiredField deliveryProfile
1427
- * @requiredField deliveryProfile.revision
1428
- * @permissionId ECOM.DELIVERY_PROFILE_UPDATE
1429
- * @permissionScope Manage Stores - all permissions
1430
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1431
- * @permissionScope Manage Restaurants - all permissions
1432
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1433
- * @permissionScope Manage eCommerce - all permissions
1434
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1435
- * @permissionScope Picasso private app mega scope
1436
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1437
- * @applicableIdentity APP
1438
- * @returns Updated DeliveryProfile.
1439
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryProfile
1440
- */
1441
- export declare function updateDeliveryProfile(_id: string, deliveryProfile: NonNullablePaths<UpdateDeliveryProfile, `revision`>): Promise<NonNullablePaths<DeliveryProfile, DeliveryProfileNonNullablePaths>>;
1442
- export interface UpdateDeliveryProfile {
1443
- /**
1444
- * DeliveryProfile ID.
1445
- * @format GUID
1446
- * @readonly
1447
- */
1448
- _id?: string | null;
1449
- /**
1450
- * DeliveryProfile name.
1451
- * @minLength 1
1452
- * @maxLength 256
1453
- */
1454
- name?: string | null;
1455
- /**
1456
- * Flags this DeliveryProfile as the default DeliveryProfile.
1457
- * @readonly
1458
- */
1459
- default?: boolean | null;
1460
- /**
1461
- * A list of DeliveryProfile regions.
1462
- * @maxSize 100
1463
- */
1464
- deliveryRegions?: DeliveryRegion[];
1465
- /** ID of the delivery profile's creator. */
1466
- createdBy?: CreatedBy;
1467
- /**
1468
- * DeliveryProfile revision.
1469
- * @readonly
1470
- */
1471
- revision?: string | null;
1472
- /**
1473
- * Date and time the DeliveryProfile was created.
1474
- * @readonly
1475
- */
1476
- _createdDate?: Date | null;
1477
- /**
1478
- * Date and time the DeliveryProfile was last updated.
1479
- * @readonly
1480
- */
1481
- _updatedDate?: Date | null;
1482
- /** [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. */
1483
- extendedFields?: ExtendedFields;
1484
- }
1485
- /**
1486
- * Deletes a DeliveryProfile.
1487
- *
1488
- * Deleting a DeliveryProfile permanently removes them from the DeliveryProfile List.
1489
- * @param deliveryProfileId - Id of the DeliveryProfile to delete.
1490
- * @public
1491
- * @documentationMaturity preview
1492
- * @requiredField deliveryProfileId
1493
- * @permissionId ECOM.DELIVERY_PROFILE_DELETE
1494
- * @permissionScope Manage Stores - all permissions
1495
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1496
- * @permissionScope Manage Restaurants - all permissions
1497
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1498
- * @permissionScope Manage eCommerce - all permissions
1499
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1500
- * @permissionScope Picasso private app mega scope
1501
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1502
- * @applicableIdentity APP
1503
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.DeleteDeliveryProfile
1504
- */
1505
- export declare function deleteDeliveryProfile(deliveryProfileId: string): Promise<void>;
1506
- /**
1507
- * Retrieves a list of DeliveryProfiles, given the provided [paging, filtering, and sorting][1].
1508
- *
1509
- * Up to 1,000 DeliveryProfiles can be returned per request.
1510
- *
1511
- * To learn how to query DeliveryProfiles, see [API Query Language][2].
1512
- *
1513
- * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
1514
- * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
1515
- * @public
1516
- * @documentationMaturity preview
1517
- * @permissionScope Manage Stores - all permissions
1518
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1519
- * @permissionScope Read eCommerce - all read permissions
1520
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1521
- * @permissionScope Manage Restaurants - all permissions
1522
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1523
- * @permissionScope Manage eCommerce - all permissions
1524
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1525
- * @permissionScope Picasso private app mega scope
1526
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1527
- * @permissionId ECOM.DELIVERY_PROFILE_READ
1528
- * @applicableIdentity APP
1529
- * @applicableIdentity VISITOR
1530
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.QueryDeliveryProfiles
1531
- */
1532
- export declare function queryDeliveryProfiles(): DeliveryProfilesQueryBuilder;
1533
- interface QueryCursorResult {
1534
- cursors: Cursors;
1535
- hasNext: () => boolean;
1536
- hasPrev: () => boolean;
1537
- length: number;
1538
- pageSize: number;
1539
- }
1540
- export interface DeliveryProfilesQueryResult extends QueryCursorResult {
1541
- items: DeliveryProfile[];
1542
- query: DeliveryProfilesQueryBuilder;
1543
- next: () => Promise<DeliveryProfilesQueryResult>;
1544
- prev: () => Promise<DeliveryProfilesQueryResult>;
1545
- }
1546
- export interface DeliveryProfilesQueryBuilder {
1547
- /** @param propertyName - Property whose value is compared with `value`.
1548
- * @param value - Value to compare against.
1549
- * @documentationMaturity preview
1550
- */
1551
- eq: (propertyName: '_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1552
- /** @param propertyName - Property whose value is compared with `value`.
1553
- * @param value - Value to compare against.
1554
- * @documentationMaturity preview
1555
- */
1556
- ne: (propertyName: '_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1557
- /** @param propertyName - Property whose value is compared with `value`.
1558
- * @param value - Value to compare against.
1559
- * @documentationMaturity preview
1560
- */
1561
- ge: (propertyName: 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1562
- /** @param propertyName - Property whose value is compared with `value`.
1563
- * @param value - Value to compare against.
1564
- * @documentationMaturity preview
1565
- */
1566
- gt: (propertyName: 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1567
- /** @param propertyName - Property whose value is compared with `value`.
1568
- * @param value - Value to compare against.
1569
- * @documentationMaturity preview
1570
- */
1571
- le: (propertyName: 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1572
- /** @param propertyName - Property whose value is compared with `value`.
1573
- * @param value - Value to compare against.
1574
- * @documentationMaturity preview
1575
- */
1576
- lt: (propertyName: 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1577
- /** @param propertyName - Property whose value is compared with `string`.
1578
- * @param string - String to compare against. Case-insensitive.
1579
- * @documentationMaturity preview
1580
- */
1581
- startsWith: (propertyName: '_id' | 'name' | 'deliveryRegions.id', value: string) => DeliveryProfilesQueryBuilder;
1582
- /** @param propertyName - Property whose value is compared with `values`.
1583
- * @param values - List of values to compare against.
1584
- * @documentationMaturity preview
1585
- */
1586
- hasSome: (propertyName: '_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.createdDate' | '_createdDate', value: any[]) => DeliveryProfilesQueryBuilder;
1587
- /** @documentationMaturity preview */
1588
- in: (propertyName: '_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.createdDate' | '_createdDate', value: any) => DeliveryProfilesQueryBuilder;
1589
- /** @documentationMaturity preview */
1590
- exists: (propertyName: '_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.createdDate' | '_createdDate', value: boolean) => DeliveryProfilesQueryBuilder;
1591
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1592
- * @documentationMaturity preview
1593
- */
1594
- ascending: (...propertyNames: Array<'_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.destinations' | 'deliveryRegions.createdDate' | '_createdDate'>) => DeliveryProfilesQueryBuilder;
1595
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1596
- * @documentationMaturity preview
1597
- */
1598
- descending: (...propertyNames: Array<'_id' | 'name' | 'default' | 'deliveryRegions.id' | 'deliveryRegions.active' | 'deliveryRegions.destinations' | 'deliveryRegions.createdDate' | '_createdDate'>) => DeliveryProfilesQueryBuilder;
1599
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1600
- * @documentationMaturity preview
1601
- */
1602
- limit: (limit: number) => DeliveryProfilesQueryBuilder;
1603
- /** @param cursor - A pointer to specific record
1604
- * @documentationMaturity preview
1605
- */
1606
- skipTo: (cursor: string) => DeliveryProfilesQueryBuilder;
1607
- /** @documentationMaturity preview */
1608
- find: () => Promise<DeliveryProfilesQueryResult>;
1609
- }
1610
- /**
1611
- * Creates a new DeliveryRegion in an existing DeliveryProfile.
1612
- * @param deliveryProfileId - delivery profile id to associated with the DeliveryRegion
1613
- * @param deliveryRegion - DeliveryRegion to be created
1614
- * @public
1615
- * @documentationMaturity preview
1616
- * @requiredField deliveryProfileId
1617
- * @requiredField deliveryRegion
1618
- * @requiredField deliveryRegion.destinations.countryCode
1619
- * @requiredField deliveryRegion.name
1620
- * @permissionId ECOM.DELIVERY_PROFILE_UPDATE
1621
- * @permissionScope Manage Stores - all permissions
1622
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1623
- * @permissionScope Manage Restaurants - all permissions
1624
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1625
- * @permissionScope Manage eCommerce - all permissions
1626
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1627
- * @permissionScope Picasso private app mega scope
1628
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1629
- * @applicableIdentity APP
1630
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryRegion
1631
- */
1632
- export declare function addDeliveryRegion(deliveryProfileId: string, deliveryRegion: NonNullablePaths<DeliveryRegion, `destinations.${number}.countryCode` | `name`>, options?: AddDeliveryRegionOptions): Promise<NonNullablePaths<AddDeliveryRegionResponse, {
1633
- [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
1634
- }[DeliveryProfileNonNullablePaths]>>;
1635
- export interface AddDeliveryRegionOptions {
1636
- /**
1637
- * DeliveryProfile revision.
1638
- * @readonly
1639
- */
1640
- revision?: string | null;
1641
- }
1642
- /**
1643
- * Update a DeliveryRegion, supports partial update
1644
- * Pass the latest `revision` for a successful update
1645
- *
1646
- * This method does not allow setting or updating the delivery delivery_carriers in this delivery_region.
1647
- * Use AddDeliveryCarrier, UpdateDeliveryCarrier and RemoveDeliveryCarrier for these functionalities.
1648
- * @public
1649
- * @documentationMaturity preview
1650
- * @requiredField deliveryRegion
1651
- * @requiredField identifiers
1652
- * @requiredField identifiers.deliveryProfileId
1653
- * @requiredField identifiers.deliveryRegionId
1654
- * @permissionId ECOM.DELIVERY_REGION_UPDATE
1655
- * @permissionScope Manage Stores - all permissions
1656
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1657
- * @permissionScope Manage Restaurants - all permissions
1658
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1659
- * @permissionScope Manage eCommerce - all permissions
1660
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1661
- * @permissionScope Picasso private app mega scope
1662
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1663
- * @applicableIdentity APP
1664
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryRegion
1665
- */
1666
- export declare function updateDeliveryRegion(identifiers: NonNullablePaths<UpdateDeliveryRegionIdentifiers, `deliveryProfileId` | `deliveryRegionId`>, deliveryRegion: UpdateDeliveryRegion, options?: UpdateDeliveryRegionOptions): Promise<NonNullablePaths<UpdateDeliveryRegionResponse, {
1667
- [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
1668
- }[DeliveryProfileNonNullablePaths]>>;
1669
- export interface UpdateDeliveryRegionIdentifiers {
1670
- /**
1671
- * DeliveryProfile id that owns the DeliveryRegion
1672
- * @format GUID
1673
- */
1674
- deliveryProfileId: string;
1675
- /**
1676
- * The delivery region id.
1677
- * @format GUID
1678
- * @readonly
1679
- */
1680
- deliveryRegionId?: string | null;
1681
- }
1682
- export interface UpdateDeliveryRegion {
1683
- /**
1684
- * The delivery region id.
1685
- * @format GUID
1686
- * @readonly
1687
- */
1688
- _id?: string | null;
1689
- /**
1690
- * Optional name of the region, for example: "Domestic".
1691
- * @minLength 1
1692
- * @maxLength 256
1693
- */
1694
- name?: string | null;
1695
- /** Indicates that this rule is active, default value is true. */
1696
- active?: boolean | null;
1697
- /**
1698
- * The spi implementers id of shipping-rates spi, assigned to this rule.
1699
- * @maxSize 25
1700
- * @readonly
1701
- */
1702
- deliveryCarriers?: DeliveryCarrier[];
1703
- /**
1704
- * The operation region of this rule, if empty than it is global.
1705
- * @maxSize 200
1706
- */
1707
- destinations?: Destination[];
1708
- /**
1709
- * Represents the time this Profile was created
1710
- * @readonly
1711
- */
1712
- _createdDate?: Date | null;
1713
- }
1714
- export interface UpdateDeliveryRegionOptions {
1715
- /**
1716
- * DeliveryProfile revision.
1717
- * @readonly
1718
- */
1719
- revision?: string | null;
1720
- }
1721
- /**
1722
- * Delete a DeliveryRegion
1723
- * @public
1724
- * @documentationMaturity preview
1725
- * @requiredField identifiers
1726
- * @requiredField identifiers.deliveryProfileId
1727
- * @requiredField identifiers.deliveryRegionId
1728
- * @permissionId ECOM.DELIVERY_PROFILE_UPDATE
1729
- * @permissionScope Manage Stores - all permissions
1730
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1731
- * @permissionScope Manage Restaurants - all permissions
1732
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1733
- * @permissionScope Manage eCommerce - all permissions
1734
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1735
- * @permissionScope Picasso private app mega scope
1736
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1737
- * @applicableIdentity APP
1738
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryRegion
1739
- */
1740
- export declare function removeDeliveryRegion(identifiers: NonNullablePaths<RemoveDeliveryRegionIdentifiers, `deliveryProfileId` | `deliveryRegionId`>, options?: RemoveDeliveryRegionOptions): Promise<NonNullablePaths<RemoveDeliveryRegionResponse, {
1741
- [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
1742
- }[DeliveryProfileNonNullablePaths]>>;
1743
- export interface RemoveDeliveryRegionIdentifiers {
1744
- /**
1745
- * DeliveryProfile id that owns the DeliveryRegion
1746
- * @format GUID
1747
- */
1748
- deliveryProfileId: string;
1749
- /**
1750
- * Id of the DeliveryRegion to delete
1751
- * @format GUID
1752
- */
1753
- deliveryRegionId: string;
1754
- }
1755
- export interface RemoveDeliveryRegionOptions {
1756
- /**
1757
- * DeliveryProfile revision.
1758
- * @readonly
1759
- */
1760
- revision?: string | null;
1761
- }
1762
- /**
1763
- * Add a delivery_carrier to a delivery region
1764
- * @param deliveryRegionId - delivery_region id to associated with the delivery_carrier.
1765
- * @public
1766
- * @documentationMaturity preview
1767
- * @requiredField deliveryRegionId
1768
- * @requiredField options
1769
- * @requiredField options.deliveryCarrier
1770
- * @permissionId ECOM.DELIVERY_CARRIER_ADD
1771
- * @permissionScope Manage Stores - all permissions
1772
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1773
- * @permissionScope Manage Restaurants - all permissions
1774
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1775
- * @permissionScope Manage eCommerce - all permissions
1776
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1777
- * @permissionScope Picasso private app mega scope
1778
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1779
- * @applicableIdentity APP
1780
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryCarrier
1781
- */
1782
- export declare function addDeliveryCarrier(deliveryRegionId: string, options: NonNullablePaths<AddDeliveryCarrierOptions, `deliveryCarrier`>): Promise<NonNullablePaths<AddDeliveryCarrierResponse, {
1783
- [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
1784
- }[DeliveryProfileNonNullablePaths]>>;
1785
- export interface AddDeliveryCarrierOptions {
1786
- /** delivery_carrier to be added. */
1787
- deliveryCarrier: DeliveryCarrier;
1788
- }
1789
- /**
1790
- * Remove a delivery_carrier from a delivery region
1791
- * @param deliveryRegionId - Id of the DeliveryRegion
1792
- * @public
1793
- * @documentationMaturity preview
1794
- * @requiredField deliveryRegionId
1795
- * @requiredField options
1796
- * @requiredField options.appId
1797
- * @permissionId ECOM.DELIVERY_CARRIER_REMOVE
1798
- * @permissionScope Manage Stores - all permissions
1799
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1800
- * @permissionScope Manage Restaurants - all permissions
1801
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1802
- * @permissionScope Manage eCommerce - all permissions
1803
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1804
- * @permissionScope Picasso private app mega scope
1805
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1806
- * @applicableIdentity APP
1807
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryCarrier
1808
- */
1809
- export declare function removeDeliveryCarrier(deliveryRegionId: string, options: NonNullablePaths<RemoveDeliveryCarrierOptions, `appId`>): Promise<NonNullablePaths<RemoveDeliveryCarrierResponse, {
1810
- [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
1811
- }[DeliveryProfileNonNullablePaths]>>;
1812
- export interface RemoveDeliveryCarrierOptions {
1813
- /**
1814
- * DeliveryCarrier app id to be removed.
1815
- * @format GUID
1816
- */
1817
- appId: string;
1818
- }
1819
- /**
1820
- * Update a delivery carrier in a delivery region
1821
- * @param deliveryRegionId - DeliveryRegion id
1822
- * @public
1823
- * @documentationMaturity preview
1824
- * @requiredField deliveryRegionId
1825
- * @requiredField options.deliveryCarrier.appId
1826
- * @permissionId ECOM.DELIVERY_CARRIER_UPDATE
1827
- * @permissionScope Manage Stores - all permissions
1828
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1829
- * @permissionScope Manage Restaurants - all permissions
1830
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1831
- * @permissionScope Manage eCommerce - all permissions
1832
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1833
- * @permissionScope Picasso private app mega scope
1834
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1835
- * @applicableIdentity APP
1836
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryCarrier
1837
- */
1838
- export declare function updateDeliveryCarrier(deliveryRegionId: string, options?: NonNullablePaths<UpdateDeliveryCarrierOptions, `deliveryCarrier.appId`>): Promise<NonNullablePaths<UpdateDeliveryCarrierResponse, {
1839
- [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
1840
- }[DeliveryProfileNonNullablePaths]>>;
1841
- export interface UpdateDeliveryCarrierOptions {
1842
- /** Updated delivery_carrier */
1843
- deliveryCarrier?: DeliveryCarrier;
1844
- }
1845
- /**
1846
- * List all installed delivery carriers in order to set their ids in delivery rules
1847
- * @public
1848
- * @documentationMaturity preview
1849
- * @permissionId ECOM.DELIVERY_CARRIER_DETAILS_READ
1850
- * @permissionScope Manage Stores - all permissions
1851
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1852
- * @permissionScope Read eCommerce - all read permissions
1853
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1854
- * @permissionScope Manage Restaurants - all permissions
1855
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1856
- * @permissionScope Manage eCommerce - all permissions
1857
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1858
- * @permissionScope Picasso private app mega scope
1859
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1860
- * @applicableIdentity APP
1861
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListDeliveryCarrierDetails
1862
- * @deprecated
1863
- * @replacedBy ListInstalledDeliveryCarriers
1864
- * @targetRemovalDate 2025-04-01
1865
- */
1866
- export declare function listDeliveryCarrierDetails(): Promise<NonNullablePaths<ListDeliveryCarrierDetailsResponse, `deliveryCarrierDetails` | `deliveryCarrierDetails.${number}._id` | `deliveryCarrierDetails.${number}.displayName` | `deliveryCarrierDetails.${number}.toggleGetCarrierSettingsEnabled` | `deliveryCarrierDetails.${number}.toggleUpdateCarrierActiveStatusEnabled`>>;
1867
- /** @public
1868
- * @documentationMaturity preview
1869
- * @permissionId ECOM.DELIVERY_CARRIER_READ
1870
- * @permissionScope Manage Stores - all permissions
1871
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1872
- * @permissionScope Read eCommerce - all read permissions
1873
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1874
- * @permissionScope Manage Restaurants - all permissions
1875
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1876
- * @permissionScope Manage eCommerce - all permissions
1877
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1878
- * @permissionScope Picasso private app mega scope
1879
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1880
- * @applicableIdentity APP
1881
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListInstalledDeliveryCarriers
1882
- */
1883
- export declare function listInstalledDeliveryCarriers(): Promise<NonNullablePaths<ListInstalledDeliveryCarriersResponse, `installedDeliveryCarriers` | `installedDeliveryCarriers.${number}._id` | `installedDeliveryCarriers.${number}.displayName` | `installedDeliveryCarriers.${number}.toggleGetCarrierSettingsEnabled`>>;
1884
- /**
1885
- * Get delivery carrier settings for a delivery profile and delivery region.
1886
- * These are returned in a table format for the dashboard.
1887
- * @param deliveryProfileId - Delivery profile id.
1888
- * @public
1889
- * @documentationMaturity preview
1890
- * @requiredField deliveryProfileId
1891
- * @permissionId ECOM.DELIVERY_CARRIER_READ
1892
- * @permissionScope Manage Stores - all permissions
1893
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1894
- * @permissionScope Read eCommerce - all read permissions
1895
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1896
- * @permissionScope Manage Restaurants - all permissions
1897
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1898
- * @permissionScope Manage eCommerce - all permissions
1899
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1900
- * @permissionScope Picasso private app mega scope
1901
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1902
- * @applicableIdentity APP
1903
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListDeliveryCarriers
1904
- */
1905
- export declare function listDeliveryCarriers(deliveryProfileId: string, options?: ListDeliveryCarriersOptions): Promise<NonNullablePaths<ListDeliveryCarriersResponse, `results` | `results.${number}.deliveryCarrierMetadata.success` | `results.${number}.deliveryCarrierMetadata.error.code` | `results.${number}.deliveryCarrierMetadata.error.description` | `results.${number}.deliveryCarrierDetails._id` | `results.${number}.deliveryCarrierDetails.displayName` | `results.${number}.deliveryCarrierDetails.toggleGetCarrierSettingsEnabled` | `results.${number}.deliveryCarrierDetails.toggleUpdateCarrierActiveStatusEnabled` | `results.${number}.deliveryCarrierRegionalSettings` | `results.${number}.deliveryCarrierRegionalSettings.${number}.deliveryRegionId` | `results.${number}.deliveryCarrierRegionalSettings.${number}.dashboardTables` | `results.${number}.deliveryCarrierRegionalSettings.${number}.dashboardTables.${number}.title` | `results.${number}.deliveryCarrierRegionalSettings.${number}.dashboardTables.${number}.columns` | `results.${number}.deliveryCarrierRegionalSettings.${number}.dashboardTables.${number}.columns.${number}.key` | `results.${number}.deliveryCarrierRegionalSettings.${number}.dashboardTables.${number}.columns.${number}.name` | `results.${number}.deliveryCarrierRegionalSettings.${number}.dashboardTables.${number}.rows` | `results.${number}.deliveryCarrierRegionalSettings.${number}.dashboardTables.${number}.rows.${number}.key` | `results.${number}.deliveryCarrierRegionalSettings.${number}.dashboardTables.${number}.rows.${number}.active` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
1906
- export interface ListDeliveryCarriersOptions {
1907
- /**
1908
- * Delivery app ids to get settings for.
1909
- * @format GUID
1910
- * @minSize 1
1911
- * @maxSize 25
1912
- */
1913
- appIds?: string[];
1914
- }
1915
- /**
1916
- * Update carrier's external active settings
1917
- * @param carrierId - Carrier id.
1918
- * @public
1919
- * @documentationMaturity preview
1920
- * @requiredField carrierId
1921
- * @requiredField options
1922
- * @requiredField options.active
1923
- * @requiredField options.rowId
1924
- * @permissionId ECOM.DELIVERY_CARRIER_UPDATE
1925
- * @permissionScope Manage Stores - all permissions
1926
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1927
- * @permissionScope Manage Restaurants - all permissions
1928
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1929
- * @permissionScope Manage eCommerce - all permissions
1930
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1931
- * @permissionScope Picasso private app mega scope
1932
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1933
- * @applicableIdentity APP
1934
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateCarrierSettings
1935
- */
1936
- export declare function updateCarrierSettings(carrierId: string, options: NonNullablePaths<UpdateCarrierSettingsOptions, `active` | `rowId`>): Promise<void>;
1937
- export interface UpdateCarrierSettingsOptions {
1938
- /**
1939
- * Row id triggered the change
1940
- * @format GUID
1941
- */
1942
- rowId: string;
1943
- /** New status */
1944
- active: boolean | null;
1945
- }
1946
- /**
1947
- * Updates extended fields of a DeliveryProfile without incrementing revision
1948
- * @param _id - ID of the entity to update.
1949
- * @param namespace - Identifier for the app whose extended fields are being updated.
1950
- * @public
1951
- * @documentationMaturity preview
1952
- * @requiredField _id
1953
- * @requiredField namespace
1954
- * @requiredField options
1955
- * @requiredField options.namespaceData
1956
- * @permissionId ECOM.DELIVERY_PROFILE_UPDATE
1957
- * @permissionScope Manage Stores - all permissions
1958
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1959
- * @permissionScope Manage Restaurants - all permissions
1960
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1961
- * @permissionScope Manage eCommerce - all permissions
1962
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1963
- * @permissionScope Picasso private app mega scope
1964
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
1965
- * @applicableIdentity APP
1966
- * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateExtendedFields
1967
- */
1968
- export declare function updateExtendedFields(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, {
1969
- [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
1970
- }[DeliveryProfileNonNullablePaths]>>;
1971
- export interface UpdateExtendedFieldsOptions {
1972
- /** 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. */
1973
- namespaceData: Record<string, any> | null;
1974
- }
1975
- export {};