@wix/auto_sdk_ecom_delivery-profile 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts +459 -99
- package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +539 -112
- package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js +32 -3
- package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +1 -1
- package/build/es/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts +459 -99
- package/build/es/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +1 -1
- package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +539 -112
- package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js +32 -3
- package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts +459 -99
- package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +539 -112
- package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js +32 -3
- package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +1 -1
- package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts +459 -99
- package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +1 -1
- package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +539 -112
- package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js +32 -3
- package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -7,17 +7,25 @@
|
|
|
7
7
|
export interface DeliveryProfile {
|
|
8
8
|
/**
|
|
9
9
|
* DeliveryProfile ID.
|
|
10
|
+
* @format GUID
|
|
10
11
|
* @readonly
|
|
11
12
|
*/
|
|
12
13
|
_id?: string | null;
|
|
13
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* DeliveryProfile name.
|
|
16
|
+
* @minLength 1
|
|
17
|
+
* @maxLength 256
|
|
18
|
+
*/
|
|
14
19
|
name?: string | null;
|
|
15
20
|
/**
|
|
16
21
|
* Flags this DeliveryProfile as the default DeliveryProfile.
|
|
17
22
|
* @readonly
|
|
18
23
|
*/
|
|
19
24
|
default?: boolean | null;
|
|
20
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* A list of DeliveryProfile regions.
|
|
27
|
+
* @maxSize 100
|
|
28
|
+
*/
|
|
21
29
|
deliveryRegions?: DeliveryRegion[];
|
|
22
30
|
/** ID of the delivery profile's creator. */
|
|
23
31
|
createdBy?: CreatedBy;
|
|
@@ -43,19 +51,28 @@ export interface DeliveryProfile {
|
|
|
43
51
|
export interface DeliveryRegion {
|
|
44
52
|
/**
|
|
45
53
|
* The delivery region id.
|
|
54
|
+
* @format GUID
|
|
46
55
|
* @readonly
|
|
47
56
|
*/
|
|
48
57
|
_id?: string | null;
|
|
49
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* Optional name of the rule, for example: "Domestic".
|
|
60
|
+
* @minLength 1
|
|
61
|
+
* @maxLength 256
|
|
62
|
+
*/
|
|
50
63
|
name?: string | null;
|
|
51
64
|
/** Indicates that this rule is active, default value is true. */
|
|
52
65
|
active?: boolean | null;
|
|
53
66
|
/**
|
|
54
67
|
* The spi implementers id of shipping-rates spi, assigned to this rule.
|
|
68
|
+
* @maxSize 25
|
|
55
69
|
* @readonly
|
|
56
70
|
*/
|
|
57
71
|
deliveryCarriers?: DeliveryCarrier[];
|
|
58
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* The operation region of this rule, if empty than it is global.
|
|
74
|
+
* @maxSize 200
|
|
75
|
+
*/
|
|
59
76
|
destinations?: Destination[];
|
|
60
77
|
/**
|
|
61
78
|
* Represents the time this Profile was created
|
|
@@ -64,53 +81,126 @@ export interface DeliveryRegion {
|
|
|
64
81
|
_createdDate?: Date | null;
|
|
65
82
|
}
|
|
66
83
|
export interface DeliveryCarrier {
|
|
67
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* 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.
|
|
86
|
+
* @format GUID
|
|
87
|
+
*/
|
|
68
88
|
appId?: string;
|
|
69
89
|
/** Backup rate to be used in case the cost returned by the provider is empty. */
|
|
70
90
|
backupRate?: BackupRate;
|
|
71
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Additional charges to add to the delivery rate for this carrier
|
|
93
|
+
* @maxSize 10
|
|
94
|
+
*/
|
|
72
95
|
additionalCharges?: AdditionalCharge[];
|
|
73
96
|
}
|
|
74
97
|
export interface BackupRate {
|
|
75
|
-
/**
|
|
98
|
+
/**
|
|
99
|
+
* Default rate prefix that will concatenate to the delivery options the provider will offer.
|
|
100
|
+
* @minLength 1
|
|
101
|
+
* @maxLength 256
|
|
102
|
+
* @deprecated Default rate prefix that will concatenate to the delivery options the provider will offer.
|
|
103
|
+
* @replacedBy title
|
|
104
|
+
* @targetRemovalDate 2025-04-01
|
|
105
|
+
*/
|
|
76
106
|
prefix?: string | null;
|
|
77
|
-
/**
|
|
107
|
+
/**
|
|
108
|
+
* Default rate price for all delivery options that the provider will offer.
|
|
109
|
+
* @decimalValue options { gte:0, maxScale:6 }
|
|
110
|
+
* @deprecated Default rate price for all delivery options that the provider will offer.
|
|
111
|
+
* @replacedBy amount
|
|
112
|
+
* @targetRemovalDate 2025-04-01
|
|
113
|
+
*/
|
|
78
114
|
rate?: string | null;
|
|
79
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* Should the default rate be used. Default value is false.
|
|
117
|
+
* @deprecated Should the default rate be used. Default value is false.
|
|
118
|
+
* @replacedBy active
|
|
119
|
+
* @targetRemovalDate 2025-04-01
|
|
120
|
+
*/
|
|
80
121
|
enabled?: boolean | null;
|
|
122
|
+
/**
|
|
123
|
+
* Default rate title that will concatenate to the delivery options the provider will offer.
|
|
124
|
+
* @minLength 1
|
|
125
|
+
* @maxLength 32
|
|
126
|
+
*/
|
|
127
|
+
title?: string | null;
|
|
128
|
+
/**
|
|
129
|
+
* Default amount price for all delivery options that the provider will offer.
|
|
130
|
+
* @decimalValue options { gte:0, maxScale:6 }
|
|
131
|
+
*/
|
|
132
|
+
amount?: string | null;
|
|
133
|
+
/** Should the default rate be used. Default value is false. */
|
|
134
|
+
active?: boolean;
|
|
81
135
|
}
|
|
82
136
|
export interface AdditionalCharge {
|
|
83
|
-
/**
|
|
137
|
+
/**
|
|
138
|
+
* Additional charge type.
|
|
139
|
+
* @deprecated Additional charge type.
|
|
140
|
+
* @targetRemovalDate 2025-04-01
|
|
141
|
+
*/
|
|
84
142
|
type?: ChargeType;
|
|
85
|
-
/**
|
|
143
|
+
/**
|
|
144
|
+
* Description of the additional charge. For example, `"Handling fee of $5 applied for gift wrapping"`.
|
|
145
|
+
* @maxLength 250
|
|
146
|
+
*/
|
|
86
147
|
description?: string | null;
|
|
87
|
-
/**
|
|
148
|
+
/**
|
|
149
|
+
* Cost of additional charge. For example, `12.5`.
|
|
150
|
+
* @maxLength 16
|
|
151
|
+
* @deprecated Cost of additional charge. For example, `12.5`.
|
|
152
|
+
* @replacedBy amount
|
|
153
|
+
* @targetRemovalDate 2025-04-01
|
|
154
|
+
*/
|
|
88
155
|
price?: string;
|
|
156
|
+
/**
|
|
157
|
+
* Cost of additional charge. For example, `12.5`.
|
|
158
|
+
* @maxLength 16
|
|
159
|
+
*/
|
|
160
|
+
amount?: string;
|
|
89
161
|
}
|
|
90
162
|
export declare enum ChargeType {
|
|
91
163
|
HANDLING_FEE = "HANDLING_FEE"
|
|
92
164
|
}
|
|
93
165
|
/** Defines the area inside one country that is relevant for this rule. */
|
|
94
166
|
export interface Destination {
|
|
95
|
-
/**
|
|
167
|
+
/**
|
|
168
|
+
* 2-letters code represents the country of the delivery destinations
|
|
169
|
+
* @format COUNTRY
|
|
170
|
+
*/
|
|
96
171
|
countryCode?: string;
|
|
97
172
|
/**
|
|
98
173
|
* subdivisions - Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).
|
|
99
174
|
* If empty, the rule applies to the entire country.
|
|
175
|
+
* @maxSize 100
|
|
176
|
+
* @minLength 1
|
|
177
|
+
* @maxLength 256
|
|
100
178
|
*/
|
|
101
179
|
subdivisions?: string[];
|
|
102
180
|
}
|
|
103
181
|
export interface CreatedBy extends CreatedByIdOneOf {
|
|
104
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* App ID - when the delivery profile was created by an external application or Wix service.
|
|
184
|
+
* @format GUID
|
|
185
|
+
*/
|
|
105
186
|
appId?: string | null;
|
|
106
|
-
/**
|
|
187
|
+
/**
|
|
188
|
+
* User ID - when the delivery profile was created by a Wix user.
|
|
189
|
+
* @format GUID
|
|
190
|
+
*/
|
|
107
191
|
userId?: string | null;
|
|
108
192
|
}
|
|
109
193
|
/** @oneof */
|
|
110
194
|
export interface CreatedByIdOneOf {
|
|
111
|
-
/**
|
|
195
|
+
/**
|
|
196
|
+
* App ID - when the delivery profile was created by an external application or Wix service.
|
|
197
|
+
* @format GUID
|
|
198
|
+
*/
|
|
112
199
|
appId?: string | null;
|
|
113
|
-
/**
|
|
200
|
+
/**
|
|
201
|
+
* User ID - when the delivery profile was created by a Wix user.
|
|
202
|
+
* @format GUID
|
|
203
|
+
*/
|
|
114
204
|
userId?: string | null;
|
|
115
205
|
}
|
|
116
206
|
export interface ExtendedFields {
|
|
@@ -125,23 +215,35 @@ export interface ExtendedFields {
|
|
|
125
215
|
namespaces?: Record<string, Record<string, any>>;
|
|
126
216
|
}
|
|
127
217
|
export interface DeliveryRegionAdded {
|
|
128
|
-
/**
|
|
218
|
+
/**
|
|
219
|
+
* The DeliveryProfile owns this region.
|
|
220
|
+
* @format GUID
|
|
221
|
+
*/
|
|
129
222
|
deliveryProfileId?: string;
|
|
130
223
|
/**
|
|
131
224
|
* The delivery region id.
|
|
225
|
+
* @format GUID
|
|
132
226
|
* @readonly
|
|
133
227
|
*/
|
|
134
228
|
deliveryRegionId?: string | null;
|
|
135
|
-
/**
|
|
229
|
+
/**
|
|
230
|
+
* Optional name of the rule, for example: "Domestic".
|
|
231
|
+
* @minLength 1
|
|
232
|
+
* @maxLength 256
|
|
233
|
+
*/
|
|
136
234
|
name?: string | null;
|
|
137
235
|
/** Indicates that this rule is active, default value is true. */
|
|
138
236
|
active?: boolean | null;
|
|
139
237
|
/**
|
|
140
238
|
* The spi implementers id of shipping-rates spi, assigned to this rule.
|
|
239
|
+
* @maxSize 25
|
|
141
240
|
* @readonly
|
|
142
241
|
*/
|
|
143
242
|
deliveryCarriers?: DeliveryCarrier[];
|
|
144
|
-
/**
|
|
243
|
+
/**
|
|
244
|
+
* The operation region of this rule, if empty than it is global.
|
|
245
|
+
* @maxSize 200
|
|
246
|
+
*/
|
|
145
247
|
destinations?: Destination[];
|
|
146
248
|
/**
|
|
147
249
|
* Represents the time this Profile was created
|
|
@@ -150,29 +252,44 @@ export interface DeliveryRegionAdded {
|
|
|
150
252
|
_createdDate?: Date | null;
|
|
151
253
|
}
|
|
152
254
|
export interface DeliveryRegionRemoved {
|
|
153
|
-
/**
|
|
255
|
+
/**
|
|
256
|
+
* The DeliveryProfile owns this region.
|
|
257
|
+
* @format GUID
|
|
258
|
+
*/
|
|
154
259
|
deliveryProfileId?: string;
|
|
155
260
|
/** The removed DeliveryRegion id. */
|
|
156
261
|
deliveryRegionId?: string;
|
|
157
262
|
}
|
|
158
263
|
export interface DeliveryRegionUpdated {
|
|
159
|
-
/**
|
|
264
|
+
/**
|
|
265
|
+
* The DeliveryProfile owns this DeliveryRegion.
|
|
266
|
+
* @format GUID
|
|
267
|
+
*/
|
|
160
268
|
deliveryProfileId?: string;
|
|
161
269
|
/**
|
|
162
270
|
* The delivery region id.
|
|
271
|
+
* @format GUID
|
|
163
272
|
* @readonly
|
|
164
273
|
*/
|
|
165
274
|
deliveryRegionId?: string | null;
|
|
166
|
-
/**
|
|
275
|
+
/**
|
|
276
|
+
* Optional name of the rule, for example: "Domestic".
|
|
277
|
+
* @minLength 1
|
|
278
|
+
* @maxLength 256
|
|
279
|
+
*/
|
|
167
280
|
name?: string | null;
|
|
168
281
|
/** Indicates that this rule is active, default value is true. */
|
|
169
282
|
active?: boolean | null;
|
|
170
283
|
/**
|
|
171
284
|
* The spi implementers id of shipping-rates spi, assigned to this rule.
|
|
285
|
+
* @maxSize 25
|
|
172
286
|
* @readonly
|
|
173
287
|
*/
|
|
174
288
|
deliveryCarriers?: DeliveryCarrier[];
|
|
175
|
-
/**
|
|
289
|
+
/**
|
|
290
|
+
* The operation region of this rule, if empty than it is global.
|
|
291
|
+
* @maxSize 200
|
|
292
|
+
*/
|
|
176
293
|
destinations?: Destination[];
|
|
177
294
|
/**
|
|
178
295
|
* Represents the time this Profile was created
|
|
@@ -189,7 +306,10 @@ export interface CreateDeliveryProfileResponse {
|
|
|
189
306
|
deliveryProfile?: DeliveryProfile;
|
|
190
307
|
}
|
|
191
308
|
export interface GetDeliveryProfileRequest {
|
|
192
|
-
/**
|
|
309
|
+
/**
|
|
310
|
+
* ID of the DeliveryProfile to retrieve.
|
|
311
|
+
* @format GUID
|
|
312
|
+
*/
|
|
193
313
|
deliveryProfileId: string;
|
|
194
314
|
}
|
|
195
315
|
export interface GetDeliveryProfileResponse {
|
|
@@ -205,7 +325,10 @@ export interface UpdateDeliveryProfileResponse {
|
|
|
205
325
|
deliveryProfile?: DeliveryProfile;
|
|
206
326
|
}
|
|
207
327
|
export interface DeleteDeliveryProfileRequest {
|
|
208
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* Id of the DeliveryProfile to delete.
|
|
330
|
+
* @format GUID
|
|
331
|
+
*/
|
|
209
332
|
deliveryProfileId: string;
|
|
210
333
|
}
|
|
211
334
|
export interface DeleteDeliveryProfileResponse {
|
|
@@ -229,6 +352,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
229
352
|
/**
|
|
230
353
|
* Sort object in the following format:
|
|
231
354
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
355
|
+
* @maxSize 5
|
|
232
356
|
*/
|
|
233
357
|
sort?: Sorting[];
|
|
234
358
|
}
|
|
@@ -238,7 +362,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
238
362
|
cursorPaging?: CursorPaging;
|
|
239
363
|
}
|
|
240
364
|
export interface Sorting {
|
|
241
|
-
/**
|
|
365
|
+
/**
|
|
366
|
+
* Name of the field to sort by.
|
|
367
|
+
* @maxLength 512
|
|
368
|
+
*/
|
|
242
369
|
fieldName?: string;
|
|
243
370
|
/** Sort order. */
|
|
244
371
|
order?: SortOrder;
|
|
@@ -248,13 +375,17 @@ export declare enum SortOrder {
|
|
|
248
375
|
DESC = "DESC"
|
|
249
376
|
}
|
|
250
377
|
export interface CursorPaging {
|
|
251
|
-
/**
|
|
378
|
+
/**
|
|
379
|
+
* Maximum number of items to return in the results.
|
|
380
|
+
* @max 100
|
|
381
|
+
*/
|
|
252
382
|
limit?: number | null;
|
|
253
383
|
/**
|
|
254
384
|
* Pointer to the next or previous page in the list of results.
|
|
255
385
|
*
|
|
256
386
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
257
387
|
* Not relevant for the first request.
|
|
388
|
+
* @maxLength 16000
|
|
258
389
|
*/
|
|
259
390
|
cursor?: string | null;
|
|
260
391
|
}
|
|
@@ -278,13 +409,22 @@ export interface CursorPagingMetadata {
|
|
|
278
409
|
hasNext?: boolean | null;
|
|
279
410
|
}
|
|
280
411
|
export interface Cursors {
|
|
281
|
-
/**
|
|
412
|
+
/**
|
|
413
|
+
* Cursor string pointing to the next page in the list of results.
|
|
414
|
+
* @maxLength 16000
|
|
415
|
+
*/
|
|
282
416
|
next?: string | null;
|
|
283
|
-
/**
|
|
417
|
+
/**
|
|
418
|
+
* Cursor pointing to the previous page in the list of results.
|
|
419
|
+
* @maxLength 16000
|
|
420
|
+
*/
|
|
284
421
|
prev?: string | null;
|
|
285
422
|
}
|
|
286
423
|
export interface AddDeliveryRegionRequest {
|
|
287
|
-
/**
|
|
424
|
+
/**
|
|
425
|
+
* delivery profile id to associated with the DeliveryRegion
|
|
426
|
+
* @format GUID
|
|
427
|
+
*/
|
|
288
428
|
deliveryProfileId: string;
|
|
289
429
|
/** DeliveryRegion to be created */
|
|
290
430
|
deliveryRegion: DeliveryRegion;
|
|
@@ -299,7 +439,10 @@ export interface AddDeliveryRegionResponse {
|
|
|
299
439
|
deliveryProfile?: DeliveryProfile;
|
|
300
440
|
}
|
|
301
441
|
export interface UpdateDeliveryRegionRequest {
|
|
302
|
-
/**
|
|
442
|
+
/**
|
|
443
|
+
* DeliveryProfile id that owns the DeliveryRegion
|
|
444
|
+
* @format GUID
|
|
445
|
+
*/
|
|
303
446
|
deliveryProfileId: string;
|
|
304
447
|
/** DeliveryRegion to be updated, may be partial */
|
|
305
448
|
deliveryRegion: DeliveryRegion;
|
|
@@ -314,9 +457,15 @@ export interface UpdateDeliveryRegionResponse {
|
|
|
314
457
|
deliveryProfile?: DeliveryProfile;
|
|
315
458
|
}
|
|
316
459
|
export interface RemoveDeliveryRegionRequest {
|
|
317
|
-
/**
|
|
460
|
+
/**
|
|
461
|
+
* DeliveryProfile id that owns the DeliveryRegion
|
|
462
|
+
* @format GUID
|
|
463
|
+
*/
|
|
318
464
|
deliveryProfileId: string;
|
|
319
|
-
/**
|
|
465
|
+
/**
|
|
466
|
+
* Id of the DeliveryRegion to delete
|
|
467
|
+
* @format GUID
|
|
468
|
+
*/
|
|
320
469
|
deliveryRegionId: string;
|
|
321
470
|
/**
|
|
322
471
|
* DeliveryProfile revision.
|
|
@@ -329,7 +478,10 @@ export interface RemoveDeliveryRegionResponse {
|
|
|
329
478
|
deliveryProfile?: DeliveryProfile;
|
|
330
479
|
}
|
|
331
480
|
export interface AddDeliveryCarrierRequest {
|
|
332
|
-
/**
|
|
481
|
+
/**
|
|
482
|
+
* delivery_region id to associated with the delivery_carrier.
|
|
483
|
+
* @format GUID
|
|
484
|
+
*/
|
|
333
485
|
deliveryRegionId: string;
|
|
334
486
|
/** delivery_carrier to be added. */
|
|
335
487
|
deliveryCarrier: DeliveryCarrier;
|
|
@@ -339,9 +491,15 @@ export interface AddDeliveryCarrierResponse {
|
|
|
339
491
|
deliveryProfile?: DeliveryProfile;
|
|
340
492
|
}
|
|
341
493
|
export interface RemoveDeliveryCarrierRequest {
|
|
342
|
-
/**
|
|
494
|
+
/**
|
|
495
|
+
* Id of the DeliveryRegion
|
|
496
|
+
* @format GUID
|
|
497
|
+
*/
|
|
343
498
|
deliveryRegionId: string;
|
|
344
|
-
/**
|
|
499
|
+
/**
|
|
500
|
+
* DeliveryCarrier app id to be removed.
|
|
501
|
+
* @format GUID
|
|
502
|
+
*/
|
|
345
503
|
appId: string;
|
|
346
504
|
}
|
|
347
505
|
export interface RemoveDeliveryCarrierResponse {
|
|
@@ -349,7 +507,10 @@ export interface RemoveDeliveryCarrierResponse {
|
|
|
349
507
|
deliveryProfile?: DeliveryProfile;
|
|
350
508
|
}
|
|
351
509
|
export interface UpdateDeliveryCarrierRequest {
|
|
352
|
-
/**
|
|
510
|
+
/**
|
|
511
|
+
* DeliveryRegion id
|
|
512
|
+
* @format GUID
|
|
513
|
+
*/
|
|
353
514
|
deliveryRegionId: string;
|
|
354
515
|
/** Updated delivery_carrier */
|
|
355
516
|
deliveryCarrier?: DeliveryCarrier;
|
|
@@ -361,23 +522,46 @@ export interface UpdateDeliveryCarrierResponse {
|
|
|
361
522
|
export interface ListDeliveryCarrierDetailsRequest {
|
|
362
523
|
}
|
|
363
524
|
export interface ListDeliveryCarrierDetailsResponse {
|
|
364
|
-
/**
|
|
525
|
+
/**
|
|
526
|
+
* The list of carrier or multi-carrier services that has implemented the spi and installed on the current context(site)
|
|
527
|
+
* @maxSize 100
|
|
528
|
+
*/
|
|
365
529
|
deliveryCarrierDetails?: DeliveryCarrierDetails[];
|
|
366
530
|
}
|
|
367
531
|
export interface DeliveryCarrierDetails {
|
|
368
|
-
/**
|
|
532
|
+
/**
|
|
533
|
+
* The id of the provider.
|
|
534
|
+
* @format GUID
|
|
535
|
+
*/
|
|
369
536
|
_id?: string;
|
|
370
|
-
/**
|
|
537
|
+
/**
|
|
538
|
+
* The name of the Provider.
|
|
539
|
+
* @maxLength 256
|
|
540
|
+
*/
|
|
371
541
|
displayName?: string;
|
|
372
|
-
/**
|
|
542
|
+
/**
|
|
543
|
+
* Provider's description.
|
|
544
|
+
* @maxLength 200
|
|
545
|
+
*/
|
|
373
546
|
description?: string | null;
|
|
374
|
-
/**
|
|
547
|
+
/**
|
|
548
|
+
* A link to learn more about the provider.
|
|
549
|
+
* @maxLength 200
|
|
550
|
+
*/
|
|
375
551
|
learnMoreUrl?: string | null;
|
|
376
|
-
/**
|
|
552
|
+
/**
|
|
553
|
+
* Dashboard URL for the provider.
|
|
554
|
+
* @minLength 1
|
|
555
|
+
* @maxLength 2048
|
|
556
|
+
* @format WEB_URL
|
|
557
|
+
*/
|
|
377
558
|
dashboardUrl?: string | null;
|
|
378
559
|
/** If the provider fallback definition is mandatory. */
|
|
379
560
|
fallbackDefinitionMandatory?: boolean | null;
|
|
380
|
-
/**
|
|
561
|
+
/**
|
|
562
|
+
* Thumbnail image for provider.
|
|
563
|
+
* @format WEB_URL
|
|
564
|
+
*/
|
|
381
565
|
thumbnailUrl?: string | null;
|
|
382
566
|
/** feature toggle initialized with default value = false. should be true if implemented by spi provider */
|
|
383
567
|
toggleGetCarrierSettingsEnabled?: boolean;
|
|
@@ -387,23 +571,46 @@ export interface DeliveryCarrierDetails {
|
|
|
387
571
|
export interface ListInstalledDeliveryCarriersRequest {
|
|
388
572
|
}
|
|
389
573
|
export interface ListInstalledDeliveryCarriersResponse {
|
|
390
|
-
/**
|
|
574
|
+
/**
|
|
575
|
+
* The list of carrier or multi-carrier services that has implemented the spi and installed on the current context(site)
|
|
576
|
+
* @maxSize 100
|
|
577
|
+
*/
|
|
391
578
|
installedDeliveryCarriers?: InstalledDeliveryCarrier[];
|
|
392
579
|
}
|
|
393
580
|
export interface InstalledDeliveryCarrier {
|
|
394
|
-
/**
|
|
581
|
+
/**
|
|
582
|
+
* The id of the provider.
|
|
583
|
+
* @format GUID
|
|
584
|
+
*/
|
|
395
585
|
_id?: string;
|
|
396
|
-
/**
|
|
586
|
+
/**
|
|
587
|
+
* The name of the Provider.
|
|
588
|
+
* @maxLength 256
|
|
589
|
+
*/
|
|
397
590
|
displayName?: string;
|
|
398
|
-
/**
|
|
591
|
+
/**
|
|
592
|
+
* Provider's description.
|
|
593
|
+
* @maxLength 200
|
|
594
|
+
*/
|
|
399
595
|
description?: string | null;
|
|
400
|
-
/**
|
|
596
|
+
/**
|
|
597
|
+
* A link to learn more about the provider.
|
|
598
|
+
* @maxLength 200
|
|
599
|
+
*/
|
|
401
600
|
learnMoreUrl?: string | null;
|
|
402
|
-
/**
|
|
601
|
+
/**
|
|
602
|
+
* Dashboard URL for the provider.
|
|
603
|
+
* @minLength 1
|
|
604
|
+
* @maxLength 2048
|
|
605
|
+
* @format WEB_URL
|
|
606
|
+
*/
|
|
403
607
|
dashboardUrl?: string | null;
|
|
404
608
|
/** If the provider fallback definition is mandatory. */
|
|
405
609
|
fallbackDefinitionMandatory?: boolean | null;
|
|
406
|
-
/**
|
|
610
|
+
/**
|
|
611
|
+
* Thumbnail image for provider.
|
|
612
|
+
* @format WEB_URL
|
|
613
|
+
*/
|
|
407
614
|
thumbnailUrl?: string | null;
|
|
408
615
|
/** feature toggle initialized with default value = false. should be true if implemented by spi provider */
|
|
409
616
|
toggleGetCarrierSettingsEnabled?: boolean;
|
|
@@ -413,7 +620,10 @@ export interface ListDeliveryDestinationsRequest {
|
|
|
413
620
|
export interface ListDeliveryDestinationsResponse {
|
|
414
621
|
/** Scope of destinations, when worldwide is selected, the destinations list will be empty. */
|
|
415
622
|
destinationScope?: DestinationScope;
|
|
416
|
-
/**
|
|
623
|
+
/**
|
|
624
|
+
* The list of destinations
|
|
625
|
+
* @maxSize 200
|
|
626
|
+
*/
|
|
417
627
|
destinations?: Destination[];
|
|
418
628
|
}
|
|
419
629
|
export declare enum DestinationScope {
|
|
@@ -429,13 +639,24 @@ export interface RequiredZipcodeResponse {
|
|
|
429
639
|
requiredZipcode?: boolean;
|
|
430
640
|
}
|
|
431
641
|
export interface ListDeliveryCarriersRequest {
|
|
432
|
-
/**
|
|
642
|
+
/**
|
|
643
|
+
* Delivery profile id.
|
|
644
|
+
* @format GUID
|
|
645
|
+
*/
|
|
433
646
|
deliveryProfileId: string;
|
|
434
|
-
/**
|
|
647
|
+
/**
|
|
648
|
+
* Delivery app ids to get settings for.
|
|
649
|
+
* @format GUID
|
|
650
|
+
* @minSize 1
|
|
651
|
+
* @maxSize 25
|
|
652
|
+
*/
|
|
435
653
|
appIds?: string[];
|
|
436
654
|
}
|
|
437
655
|
export interface ListDeliveryCarriersResponse {
|
|
438
|
-
/**
|
|
656
|
+
/**
|
|
657
|
+
* The list of delivery settings for the given requests
|
|
658
|
+
* @maxSize 100
|
|
659
|
+
*/
|
|
439
660
|
results?: ListDeliveryCarriersResult[];
|
|
440
661
|
/** Bulk action metadata. */
|
|
441
662
|
bulkActionMetadata?: BulkActionMetadata;
|
|
@@ -445,11 +666,18 @@ export interface ListDeliveryCarriersResult {
|
|
|
445
666
|
deliveryCarrierMetadata?: ItemMetadata;
|
|
446
667
|
/** The delivery carrier details */
|
|
447
668
|
deliveryCarrierDetails?: DeliveryCarrierDetails;
|
|
448
|
-
/**
|
|
669
|
+
/**
|
|
670
|
+
* The delivery settings for the delivery profile and delivery region.
|
|
671
|
+
* @minSize 1
|
|
672
|
+
* @maxSize 5
|
|
673
|
+
*/
|
|
449
674
|
deliveryCarrierRegionalSettings?: DeliveryCarrierRegionalSettings[];
|
|
450
675
|
}
|
|
451
676
|
export interface ItemMetadata {
|
|
452
|
-
/**
|
|
677
|
+
/**
|
|
678
|
+
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
679
|
+
* @format GUID
|
|
680
|
+
*/
|
|
453
681
|
_id?: string | null;
|
|
454
682
|
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
455
683
|
success?: boolean;
|
|
@@ -465,27 +693,52 @@ export interface ApplicationError {
|
|
|
465
693
|
data?: Record<string, any> | null;
|
|
466
694
|
}
|
|
467
695
|
export interface DeliveryCarrierRegionalSettings {
|
|
468
|
-
/**
|
|
696
|
+
/**
|
|
697
|
+
* The delivery rule id.
|
|
698
|
+
* @format GUID
|
|
699
|
+
*/
|
|
469
700
|
deliveryRegionId?: string;
|
|
470
|
-
/**
|
|
701
|
+
/**
|
|
702
|
+
* The shipping table values that are associated with the delivery rule. Can be multiple if the provider is an aggregator of multiple carriers.
|
|
703
|
+
* @minSize 1
|
|
704
|
+
* @maxSize 5
|
|
705
|
+
*/
|
|
471
706
|
dashboardTables?: DashboardTable[];
|
|
472
707
|
}
|
|
473
708
|
export interface DashboardTable {
|
|
474
|
-
/**
|
|
709
|
+
/**
|
|
710
|
+
* The title of the delivery settings that will be displayed in the UI.
|
|
711
|
+
* @maxLength 256
|
|
712
|
+
*/
|
|
475
713
|
title?: string;
|
|
476
|
-
/**
|
|
714
|
+
/**
|
|
715
|
+
* The columns of the delivery settings that will be displayed in the UI.
|
|
716
|
+
* @maxSize 200
|
|
717
|
+
*/
|
|
477
718
|
columns?: Column[];
|
|
478
|
-
/**
|
|
719
|
+
/**
|
|
720
|
+
* The content of the delivery settings. Each row is a map of column name to value.
|
|
721
|
+
* @maxSize 25
|
|
722
|
+
*/
|
|
479
723
|
rows?: Row[];
|
|
480
724
|
}
|
|
481
725
|
export interface Column {
|
|
482
|
-
/**
|
|
726
|
+
/**
|
|
727
|
+
* The name of the column. This is used to get the data from the row.
|
|
728
|
+
* @maxLength 256
|
|
729
|
+
*/
|
|
483
730
|
key?: string;
|
|
484
|
-
/**
|
|
731
|
+
/**
|
|
732
|
+
* The title of the column that will be displayed in the UI.
|
|
733
|
+
* @maxLength 256
|
|
734
|
+
*/
|
|
485
735
|
name?: string;
|
|
486
736
|
}
|
|
487
737
|
export interface Row {
|
|
488
|
-
/**
|
|
738
|
+
/**
|
|
739
|
+
* The external key of the data presented in a row. This is used to identify the row in the UI for editing.
|
|
740
|
+
* @maxLength 256
|
|
741
|
+
*/
|
|
489
742
|
key?: string;
|
|
490
743
|
/**
|
|
491
744
|
* The data presented in the row. The key is the column `name` and the value is the data in the specific row and column.
|
|
@@ -504,9 +757,15 @@ export interface BulkActionMetadata {
|
|
|
504
757
|
undetailedFailures?: number;
|
|
505
758
|
}
|
|
506
759
|
export interface UpdateCarrierSettingsRequest {
|
|
507
|
-
/**
|
|
760
|
+
/**
|
|
761
|
+
* Carrier id.
|
|
762
|
+
* @format GUID
|
|
763
|
+
*/
|
|
508
764
|
carrierId: string;
|
|
509
|
-
/**
|
|
765
|
+
/**
|
|
766
|
+
* Row id triggered the change
|
|
767
|
+
* @format GUID
|
|
768
|
+
*/
|
|
510
769
|
rowId: string;
|
|
511
770
|
/** New status */
|
|
512
771
|
active: boolean | null;
|
|
@@ -556,7 +815,10 @@ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
556
815
|
studioAssigned?: StudioAssigned;
|
|
557
816
|
/** Emitted when Studio is detached. */
|
|
558
817
|
studioUnassigned?: StudioUnassigned;
|
|
559
|
-
/**
|
|
818
|
+
/**
|
|
819
|
+
* A meta site id.
|
|
820
|
+
* @format GUID
|
|
821
|
+
*/
|
|
560
822
|
metaSiteId?: string;
|
|
561
823
|
/** A meta site version. Monotonically increasing. */
|
|
562
824
|
version?: string;
|
|
@@ -565,6 +827,7 @@ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
565
827
|
/**
|
|
566
828
|
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
567
829
|
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
830
|
+
* @maxSize 4000
|
|
568
831
|
*/
|
|
569
832
|
assets?: Asset[];
|
|
570
833
|
}
|
|
@@ -602,9 +865,15 @@ export interface MetaSiteSpecialEventPayloadOneOf {
|
|
|
602
865
|
studioUnassigned?: StudioUnassigned;
|
|
603
866
|
}
|
|
604
867
|
export interface Asset {
|
|
605
|
-
/**
|
|
868
|
+
/**
|
|
869
|
+
* An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
|
|
870
|
+
* @maxLength 36
|
|
871
|
+
*/
|
|
606
872
|
appDefId?: string;
|
|
607
|
-
/**
|
|
873
|
+
/**
|
|
874
|
+
* An instance id. For legacy reasons may be UUID or a string.
|
|
875
|
+
* @maxLength 200
|
|
876
|
+
*/
|
|
608
877
|
instanceId?: string;
|
|
609
878
|
/** An application state. */
|
|
610
879
|
state?: State;
|
|
@@ -617,9 +886,15 @@ export declare enum State {
|
|
|
617
886
|
DEMO = "DEMO"
|
|
618
887
|
}
|
|
619
888
|
export interface SiteCreated {
|
|
620
|
-
/**
|
|
889
|
+
/**
|
|
890
|
+
* A template identifier (empty if not created from a template).
|
|
891
|
+
* @maxLength 36
|
|
892
|
+
*/
|
|
621
893
|
originTemplateId?: string;
|
|
622
|
-
/**
|
|
894
|
+
/**
|
|
895
|
+
* An account id of the owner.
|
|
896
|
+
* @format GUID
|
|
897
|
+
*/
|
|
623
898
|
ownerId?: string;
|
|
624
899
|
/** A context in which meta site was created. */
|
|
625
900
|
context?: SiteCreatedContext;
|
|
@@ -628,9 +903,13 @@ export interface SiteCreated {
|
|
|
628
903
|
*
|
|
629
904
|
* In case of a creation from a template it's a template id.
|
|
630
905
|
* In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
|
|
906
|
+
* @format GUID
|
|
631
907
|
*/
|
|
632
908
|
originMetaSiteId?: string | null;
|
|
633
|
-
/**
|
|
909
|
+
/**
|
|
910
|
+
* A meta site name (URL slug).
|
|
911
|
+
* @maxLength 20
|
|
912
|
+
*/
|
|
634
913
|
siteName?: string;
|
|
635
914
|
/** A namespace. */
|
|
636
915
|
namespace?: Namespace;
|
|
@@ -727,9 +1006,15 @@ export declare enum Namespace {
|
|
|
727
1006
|
}
|
|
728
1007
|
/** Site transferred to another user. */
|
|
729
1008
|
export interface SiteTransferred {
|
|
730
|
-
/**
|
|
1009
|
+
/**
|
|
1010
|
+
* A previous owner id (user that transfers meta site).
|
|
1011
|
+
* @format GUID
|
|
1012
|
+
*/
|
|
731
1013
|
oldOwnerId?: string;
|
|
732
|
-
/**
|
|
1014
|
+
/**
|
|
1015
|
+
* A new owner id (user that accepts meta site).
|
|
1016
|
+
* @format GUID
|
|
1017
|
+
*/
|
|
733
1018
|
newOwnerId?: string;
|
|
734
1019
|
}
|
|
735
1020
|
/** Soft deletion of the meta site. Could be restored. */
|
|
@@ -742,9 +1027,15 @@ export interface DeleteContext {
|
|
|
742
1027
|
dateDeleted?: Date | null;
|
|
743
1028
|
/** A status. */
|
|
744
1029
|
deleteStatus?: DeleteStatus;
|
|
745
|
-
/**
|
|
1030
|
+
/**
|
|
1031
|
+
* A reason (flow).
|
|
1032
|
+
* @maxLength 255
|
|
1033
|
+
*/
|
|
746
1034
|
deleteOrigin?: string;
|
|
747
|
-
/**
|
|
1035
|
+
/**
|
|
1036
|
+
* A service that deleted it.
|
|
1037
|
+
* @maxLength 255
|
|
1038
|
+
*/
|
|
748
1039
|
initiatorId?: string | null;
|
|
749
1040
|
}
|
|
750
1041
|
export declare enum DeleteStatus {
|
|
@@ -760,7 +1051,11 @@ export interface SiteUndeleted {
|
|
|
760
1051
|
export interface SitePublished {
|
|
761
1052
|
}
|
|
762
1053
|
export interface SiteUnpublished {
|
|
763
|
-
/**
|
|
1054
|
+
/**
|
|
1055
|
+
* A list of URLs previously associated with the meta site.
|
|
1056
|
+
* @maxLength 4000
|
|
1057
|
+
* @maxSize 10000
|
|
1058
|
+
*/
|
|
764
1059
|
urls?: string[];
|
|
765
1060
|
}
|
|
766
1061
|
export interface SiteMarkedAsTemplate {
|
|
@@ -783,30 +1078,60 @@ export interface SiteMarkedAsWixSite {
|
|
|
783
1078
|
* To ensure this, the TPA on the template gets a new instance_id.
|
|
784
1079
|
*/
|
|
785
1080
|
export interface ServiceProvisioned {
|
|
786
|
-
/**
|
|
1081
|
+
/**
|
|
1082
|
+
* Either UUID or EmbeddedServiceType.
|
|
1083
|
+
* @maxLength 36
|
|
1084
|
+
*/
|
|
787
1085
|
appDefId?: string;
|
|
788
|
-
/**
|
|
1086
|
+
/**
|
|
1087
|
+
* Not only UUID. Something here could be something weird.
|
|
1088
|
+
* @maxLength 36
|
|
1089
|
+
*/
|
|
789
1090
|
instanceId?: string;
|
|
790
|
-
/**
|
|
1091
|
+
/**
|
|
1092
|
+
* An instance id from which this instance is originated.
|
|
1093
|
+
* @maxLength 36
|
|
1094
|
+
*/
|
|
791
1095
|
originInstanceId?: string;
|
|
792
|
-
/**
|
|
1096
|
+
/**
|
|
1097
|
+
* A version.
|
|
1098
|
+
* @maxLength 500
|
|
1099
|
+
*/
|
|
793
1100
|
version?: string | null;
|
|
794
|
-
/**
|
|
1101
|
+
/**
|
|
1102
|
+
* The origin meta site id
|
|
1103
|
+
* @format GUID
|
|
1104
|
+
*/
|
|
795
1105
|
originMetaSiteId?: string | null;
|
|
796
1106
|
}
|
|
797
1107
|
export interface ServiceRemoved {
|
|
798
|
-
/**
|
|
1108
|
+
/**
|
|
1109
|
+
* Either UUID or EmbeddedServiceType.
|
|
1110
|
+
* @maxLength 36
|
|
1111
|
+
*/
|
|
799
1112
|
appDefId?: string;
|
|
800
|
-
/**
|
|
1113
|
+
/**
|
|
1114
|
+
* Not only UUID. Something here could be something weird.
|
|
1115
|
+
* @maxLength 36
|
|
1116
|
+
*/
|
|
801
1117
|
instanceId?: string;
|
|
802
|
-
/**
|
|
1118
|
+
/**
|
|
1119
|
+
* A version.
|
|
1120
|
+
* @maxLength 500
|
|
1121
|
+
*/
|
|
803
1122
|
version?: string | null;
|
|
804
1123
|
}
|
|
805
1124
|
/** Rename of the site. Meaning, free public url has been changed as well. */
|
|
806
1125
|
export interface SiteRenamed {
|
|
807
|
-
/**
|
|
1126
|
+
/**
|
|
1127
|
+
* A new meta site name (URL slug).
|
|
1128
|
+
* @maxLength 20
|
|
1129
|
+
*/
|
|
808
1130
|
newSiteName?: string;
|
|
809
|
-
/**
|
|
1131
|
+
/**
|
|
1132
|
+
* A previous meta site name (URL slug).
|
|
1133
|
+
* @maxLength 255
|
|
1134
|
+
*/
|
|
810
1135
|
oldSiteName?: string;
|
|
811
1136
|
}
|
|
812
1137
|
/**
|
|
@@ -903,9 +1228,15 @@ export interface ActionEvent {
|
|
|
903
1228
|
body?: string;
|
|
904
1229
|
}
|
|
905
1230
|
export interface MessageEnvelope {
|
|
906
|
-
/**
|
|
1231
|
+
/**
|
|
1232
|
+
* App instance ID.
|
|
1233
|
+
* @format GUID
|
|
1234
|
+
*/
|
|
907
1235
|
instanceId?: string | null;
|
|
908
|
-
/**
|
|
1236
|
+
/**
|
|
1237
|
+
* Event type.
|
|
1238
|
+
* @maxLength 150
|
|
1239
|
+
*/
|
|
909
1240
|
eventType?: string;
|
|
910
1241
|
/** The identification type and identity data. */
|
|
911
1242
|
identity?: IdentificationData;
|
|
@@ -913,26 +1244,50 @@ export interface MessageEnvelope {
|
|
|
913
1244
|
data?: string;
|
|
914
1245
|
}
|
|
915
1246
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
916
|
-
/**
|
|
1247
|
+
/**
|
|
1248
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1249
|
+
* @format GUID
|
|
1250
|
+
*/
|
|
917
1251
|
anonymousVisitorId?: string;
|
|
918
|
-
/**
|
|
1252
|
+
/**
|
|
1253
|
+
* ID of a site visitor that has logged in to the site.
|
|
1254
|
+
* @format GUID
|
|
1255
|
+
*/
|
|
919
1256
|
memberId?: string;
|
|
920
|
-
/**
|
|
1257
|
+
/**
|
|
1258
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1259
|
+
* @format GUID
|
|
1260
|
+
*/
|
|
921
1261
|
wixUserId?: string;
|
|
922
|
-
/**
|
|
1262
|
+
/**
|
|
1263
|
+
* ID of an app.
|
|
1264
|
+
* @format GUID
|
|
1265
|
+
*/
|
|
923
1266
|
appId?: string;
|
|
924
1267
|
/** @readonly */
|
|
925
1268
|
identityType?: WebhookIdentityType;
|
|
926
1269
|
}
|
|
927
1270
|
/** @oneof */
|
|
928
1271
|
export interface IdentificationDataIdOneOf {
|
|
929
|
-
/**
|
|
1272
|
+
/**
|
|
1273
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1274
|
+
* @format GUID
|
|
1275
|
+
*/
|
|
930
1276
|
anonymousVisitorId?: string;
|
|
931
|
-
/**
|
|
1277
|
+
/**
|
|
1278
|
+
* ID of a site visitor that has logged in to the site.
|
|
1279
|
+
* @format GUID
|
|
1280
|
+
*/
|
|
932
1281
|
memberId?: string;
|
|
933
|
-
/**
|
|
1282
|
+
/**
|
|
1283
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1284
|
+
* @format GUID
|
|
1285
|
+
*/
|
|
934
1286
|
wixUserId?: string;
|
|
935
|
-
/**
|
|
1287
|
+
/**
|
|
1288
|
+
* ID of an app.
|
|
1289
|
+
* @format GUID
|
|
1290
|
+
*/
|
|
936
1291
|
appId?: string;
|
|
937
1292
|
}
|
|
938
1293
|
export declare enum WebhookIdentityType {
|
|
@@ -942,12 +1297,17 @@ export declare enum WebhookIdentityType {
|
|
|
942
1297
|
WIX_USER = "WIX_USER",
|
|
943
1298
|
APP = "APP"
|
|
944
1299
|
}
|
|
1300
|
+
interface BackupRateNonNullableFields {
|
|
1301
|
+
active: boolean;
|
|
1302
|
+
}
|
|
945
1303
|
interface AdditionalChargeNonNullableFields {
|
|
946
1304
|
type: ChargeType;
|
|
947
1305
|
price: string;
|
|
1306
|
+
amount: string;
|
|
948
1307
|
}
|
|
949
1308
|
interface DeliveryCarrierNonNullableFields {
|
|
950
1309
|
appId: string;
|
|
1310
|
+
backupRate?: BackupRateNonNullableFields;
|
|
951
1311
|
additionalCharges: AdditionalChargeNonNullableFields[];
|
|
952
1312
|
}
|
|
953
1313
|
interface DestinationNonNullableFields {
|
|
@@ -1058,7 +1418,6 @@ export interface UpdateExtendedFieldsResponseNonNullableFields {
|
|
|
1058
1418
|
* @public
|
|
1059
1419
|
* @documentationMaturity preview
|
|
1060
1420
|
* @requiredField deliveryProfile
|
|
1061
|
-
* @requiredField deliveryProfile.deliveryRegions.deliveryCarriers.backupRate.rate
|
|
1062
1421
|
* @requiredField deliveryProfile.deliveryRegions.destinations
|
|
1063
1422
|
* @requiredField deliveryProfile.deliveryRegions.destinations.countryCode
|
|
1064
1423
|
* @requiredField deliveryProfile.deliveryRegions.name
|
|
@@ -1066,6 +1425,8 @@ export interface UpdateExtendedFieldsResponseNonNullableFields {
|
|
|
1066
1425
|
* @permissionId ECOM.DELIVERY_PROFILE_CREATE
|
|
1067
1426
|
* @permissionScope Manage Stores - all permissions
|
|
1068
1427
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1428
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1429
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1069
1430
|
* @permissionScope Manage eCommerce - all permissions
|
|
1070
1431
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1071
1432
|
* @applicableIdentity APP
|
|
@@ -1084,6 +1445,8 @@ export declare function createDeliveryProfile(deliveryProfile: DeliveryProfile):
|
|
|
1084
1445
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1085
1446
|
* @permissionScope Read eCommerce - all read permissions
|
|
1086
1447
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
1448
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1449
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1087
1450
|
* @permissionScope Manage eCommerce - all permissions
|
|
1088
1451
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1089
1452
|
* @applicableIdentity APP
|
|
@@ -1113,6 +1476,8 @@ export declare function getDeliveryProfile(deliveryProfileId: string): Promise<D
|
|
|
1113
1476
|
* @permissionId ECOM.DELIVERY_PROFILE_UPDATE
|
|
1114
1477
|
* @permissionScope Manage Stores - all permissions
|
|
1115
1478
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1479
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1480
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1116
1481
|
* @permissionScope Manage eCommerce - all permissions
|
|
1117
1482
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1118
1483
|
* @applicableIdentity APP
|
|
@@ -1123,17 +1488,25 @@ export declare function updateDeliveryProfile(_id: string | null, deliveryProfil
|
|
|
1123
1488
|
export interface UpdateDeliveryProfile {
|
|
1124
1489
|
/**
|
|
1125
1490
|
* DeliveryProfile ID.
|
|
1491
|
+
* @format GUID
|
|
1126
1492
|
* @readonly
|
|
1127
1493
|
*/
|
|
1128
1494
|
_id?: string | null;
|
|
1129
|
-
/**
|
|
1495
|
+
/**
|
|
1496
|
+
* DeliveryProfile name.
|
|
1497
|
+
* @minLength 1
|
|
1498
|
+
* @maxLength 256
|
|
1499
|
+
*/
|
|
1130
1500
|
name?: string | null;
|
|
1131
1501
|
/**
|
|
1132
1502
|
* Flags this DeliveryProfile as the default DeliveryProfile.
|
|
1133
1503
|
* @readonly
|
|
1134
1504
|
*/
|
|
1135
1505
|
default?: boolean | null;
|
|
1136
|
-
/**
|
|
1506
|
+
/**
|
|
1507
|
+
* A list of DeliveryProfile regions.
|
|
1508
|
+
* @maxSize 100
|
|
1509
|
+
*/
|
|
1137
1510
|
deliveryRegions?: DeliveryRegion[];
|
|
1138
1511
|
/** ID of the delivery profile's creator. */
|
|
1139
1512
|
createdBy?: CreatedBy;
|
|
@@ -1166,6 +1539,8 @@ export interface UpdateDeliveryProfile {
|
|
|
1166
1539
|
* @permissionId ECOM.DELIVERY_PROFILE_DELETE
|
|
1167
1540
|
* @permissionScope Manage Stores - all permissions
|
|
1168
1541
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1542
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1543
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1169
1544
|
* @permissionScope Manage eCommerce - all permissions
|
|
1170
1545
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1171
1546
|
* @applicableIdentity APP
|
|
@@ -1187,6 +1562,8 @@ export declare function deleteDeliveryProfile(deliveryProfileId: string): Promis
|
|
|
1187
1562
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1188
1563
|
* @permissionScope Read eCommerce - all read permissions
|
|
1189
1564
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
1565
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1566
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1190
1567
|
* @permissionScope Manage eCommerce - all permissions
|
|
1191
1568
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1192
1569
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
@@ -1280,12 +1657,13 @@ export interface DeliveryProfilesQueryBuilder {
|
|
|
1280
1657
|
* @documentationMaturity preview
|
|
1281
1658
|
* @requiredField deliveryProfileId
|
|
1282
1659
|
* @requiredField deliveryRegion
|
|
1283
|
-
* @requiredField deliveryRegion.deliveryCarriers.backupRate.rate
|
|
1284
1660
|
* @requiredField deliveryRegion.destinations.countryCode
|
|
1285
1661
|
* @requiredField deliveryRegion.name
|
|
1286
1662
|
* @permissionId ECOM.DELIVERY_PROFILE_UPDATE
|
|
1287
1663
|
* @permissionScope Manage Stores - all permissions
|
|
1288
1664
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1665
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1666
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1289
1667
|
* @permissionScope Manage eCommerce - all permissions
|
|
1290
1668
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1291
1669
|
* @applicableIdentity APP
|
|
@@ -1314,6 +1692,8 @@ export interface AddDeliveryRegionOptions {
|
|
|
1314
1692
|
* @permissionId ECOM.DELIVERY_REGION_UPDATE
|
|
1315
1693
|
* @permissionScope Manage Stores - all permissions
|
|
1316
1694
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1695
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1696
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1317
1697
|
* @permissionScope Manage eCommerce - all permissions
|
|
1318
1698
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1319
1699
|
* @applicableIdentity APP
|
|
@@ -1321,10 +1701,14 @@ export interface AddDeliveryRegionOptions {
|
|
|
1321
1701
|
*/
|
|
1322
1702
|
export declare function updateDeliveryRegion(identifiers: UpdateDeliveryRegionIdentifiers, deliveryRegion: UpdateDeliveryRegion, options?: UpdateDeliveryRegionOptions): Promise<UpdateDeliveryRegionResponse & UpdateDeliveryRegionResponseNonNullableFields>;
|
|
1323
1703
|
export interface UpdateDeliveryRegionIdentifiers {
|
|
1324
|
-
/**
|
|
1704
|
+
/**
|
|
1705
|
+
* DeliveryProfile id that owns the DeliveryRegion
|
|
1706
|
+
* @format GUID
|
|
1707
|
+
*/
|
|
1325
1708
|
deliveryProfileId: string;
|
|
1326
1709
|
/**
|
|
1327
1710
|
* The delivery region id.
|
|
1711
|
+
* @format GUID
|
|
1328
1712
|
* @readonly
|
|
1329
1713
|
*/
|
|
1330
1714
|
deliveryRegionId?: string | null;
|
|
@@ -1332,19 +1716,28 @@ export interface UpdateDeliveryRegionIdentifiers {
|
|
|
1332
1716
|
export interface UpdateDeliveryRegion {
|
|
1333
1717
|
/**
|
|
1334
1718
|
* The delivery region id.
|
|
1719
|
+
* @format GUID
|
|
1335
1720
|
* @readonly
|
|
1336
1721
|
*/
|
|
1337
1722
|
_id?: string | null;
|
|
1338
|
-
/**
|
|
1723
|
+
/**
|
|
1724
|
+
* Optional name of the rule, for example: "Domestic".
|
|
1725
|
+
* @minLength 1
|
|
1726
|
+
* @maxLength 256
|
|
1727
|
+
*/
|
|
1339
1728
|
name?: string | null;
|
|
1340
1729
|
/** Indicates that this rule is active, default value is true. */
|
|
1341
1730
|
active?: boolean | null;
|
|
1342
1731
|
/**
|
|
1343
1732
|
* The spi implementers id of shipping-rates spi, assigned to this rule.
|
|
1733
|
+
* @maxSize 25
|
|
1344
1734
|
* @readonly
|
|
1345
1735
|
*/
|
|
1346
1736
|
deliveryCarriers?: DeliveryCarrier[];
|
|
1347
|
-
/**
|
|
1737
|
+
/**
|
|
1738
|
+
* The operation region of this rule, if empty than it is global.
|
|
1739
|
+
* @maxSize 200
|
|
1740
|
+
*/
|
|
1348
1741
|
destinations?: Destination[];
|
|
1349
1742
|
/**
|
|
1350
1743
|
* Represents the time this Profile was created
|
|
@@ -1369,6 +1762,8 @@ export interface UpdateDeliveryRegionOptions {
|
|
|
1369
1762
|
* @permissionId ECOM.DELIVERY_PROFILE_UPDATE
|
|
1370
1763
|
* @permissionScope Manage Stores - all permissions
|
|
1371
1764
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1765
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1766
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1372
1767
|
* @permissionScope Manage eCommerce - all permissions
|
|
1373
1768
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1374
1769
|
* @applicableIdentity APP
|
|
@@ -1376,9 +1771,15 @@ export interface UpdateDeliveryRegionOptions {
|
|
|
1376
1771
|
*/
|
|
1377
1772
|
export declare function removeDeliveryRegion(identifiers: RemoveDeliveryRegionIdentifiers, options?: RemoveDeliveryRegionOptions): Promise<RemoveDeliveryRegionResponse & RemoveDeliveryRegionResponseNonNullableFields>;
|
|
1378
1773
|
export interface RemoveDeliveryRegionIdentifiers {
|
|
1379
|
-
/**
|
|
1774
|
+
/**
|
|
1775
|
+
* DeliveryProfile id that owns the DeliveryRegion
|
|
1776
|
+
* @format GUID
|
|
1777
|
+
*/
|
|
1380
1778
|
deliveryProfileId: string;
|
|
1381
|
-
/**
|
|
1779
|
+
/**
|
|
1780
|
+
* Id of the DeliveryRegion to delete
|
|
1781
|
+
* @format GUID
|
|
1782
|
+
*/
|
|
1382
1783
|
deliveryRegionId: string;
|
|
1383
1784
|
}
|
|
1384
1785
|
export interface RemoveDeliveryRegionOptions {
|
|
@@ -1396,10 +1797,11 @@ export interface RemoveDeliveryRegionOptions {
|
|
|
1396
1797
|
* @requiredField deliveryRegionId
|
|
1397
1798
|
* @requiredField options
|
|
1398
1799
|
* @requiredField options.deliveryCarrier
|
|
1399
|
-
* @requiredField options.deliveryCarrier.backupRate.rate
|
|
1400
1800
|
* @permissionId ECOM.DELIVERY_CARRIER_ADD
|
|
1401
1801
|
* @permissionScope Manage Stores - all permissions
|
|
1402
1802
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1803
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1804
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1403
1805
|
* @permissionScope Manage eCommerce - all permissions
|
|
1404
1806
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1405
1807
|
* @applicableIdentity APP
|
|
@@ -1421,6 +1823,8 @@ export interface AddDeliveryCarrierOptions {
|
|
|
1421
1823
|
* @permissionId ECOM.DELIVERY_CARRIER_REMOVE
|
|
1422
1824
|
* @permissionScope Manage Stores - all permissions
|
|
1423
1825
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1826
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1827
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1424
1828
|
* @permissionScope Manage eCommerce - all permissions
|
|
1425
1829
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1426
1830
|
* @applicableIdentity APP
|
|
@@ -1428,7 +1832,10 @@ export interface AddDeliveryCarrierOptions {
|
|
|
1428
1832
|
*/
|
|
1429
1833
|
export declare function removeDeliveryCarrier(deliveryRegionId: string, options: RemoveDeliveryCarrierOptions): Promise<RemoveDeliveryCarrierResponse & RemoveDeliveryCarrierResponseNonNullableFields>;
|
|
1430
1834
|
export interface RemoveDeliveryCarrierOptions {
|
|
1431
|
-
/**
|
|
1835
|
+
/**
|
|
1836
|
+
* DeliveryCarrier app id to be removed.
|
|
1837
|
+
* @format GUID
|
|
1838
|
+
*/
|
|
1432
1839
|
appId: string;
|
|
1433
1840
|
}
|
|
1434
1841
|
/**
|
|
@@ -1441,6 +1848,8 @@ export interface RemoveDeliveryCarrierOptions {
|
|
|
1441
1848
|
* @permissionId ECOM.DELIVERY_CARRIER_UPDATE
|
|
1442
1849
|
* @permissionScope Manage Stores - all permissions
|
|
1443
1850
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1851
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1852
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1444
1853
|
* @permissionScope Manage eCommerce - all permissions
|
|
1445
1854
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1446
1855
|
* @applicableIdentity APP
|
|
@@ -1460,6 +1869,8 @@ export interface UpdateDeliveryCarrierOptions {
|
|
|
1460
1869
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1461
1870
|
* @permissionScope Read eCommerce - all read permissions
|
|
1462
1871
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
1872
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1873
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1463
1874
|
* @permissionScope Manage eCommerce - all permissions
|
|
1464
1875
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1465
1876
|
* @applicableIdentity APP
|
|
@@ -1476,6 +1887,8 @@ export declare function listDeliveryCarrierDetails(): Promise<ListDeliveryCarrie
|
|
|
1476
1887
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1477
1888
|
* @permissionScope Read eCommerce - all read permissions
|
|
1478
1889
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
1890
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1891
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1479
1892
|
* @permissionScope Manage eCommerce - all permissions
|
|
1480
1893
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1481
1894
|
* @applicableIdentity APP
|
|
@@ -1494,6 +1907,8 @@ export declare function listInstalledDeliveryCarriers(): Promise<ListInstalledDe
|
|
|
1494
1907
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1495
1908
|
* @permissionScope Read eCommerce - all read permissions
|
|
1496
1909
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
1910
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1911
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1497
1912
|
* @permissionScope Manage eCommerce - all permissions
|
|
1498
1913
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1499
1914
|
* @applicableIdentity APP
|
|
@@ -1501,7 +1916,12 @@ export declare function listInstalledDeliveryCarriers(): Promise<ListInstalledDe
|
|
|
1501
1916
|
*/
|
|
1502
1917
|
export declare function listDeliveryCarriers(deliveryProfileId: string, options?: ListDeliveryCarriersOptions): Promise<ListDeliveryCarriersResponse & ListDeliveryCarriersResponseNonNullableFields>;
|
|
1503
1918
|
export interface ListDeliveryCarriersOptions {
|
|
1504
|
-
/**
|
|
1919
|
+
/**
|
|
1920
|
+
* Delivery app ids to get settings for.
|
|
1921
|
+
* @format GUID
|
|
1922
|
+
* @minSize 1
|
|
1923
|
+
* @maxSize 25
|
|
1924
|
+
*/
|
|
1505
1925
|
appIds?: string[];
|
|
1506
1926
|
}
|
|
1507
1927
|
/**
|
|
@@ -1516,6 +1936,8 @@ export interface ListDeliveryCarriersOptions {
|
|
|
1516
1936
|
* @permissionId ECOM.DELIVERY_CARRIER_UPDATE
|
|
1517
1937
|
* @permissionScope Manage Stores - all permissions
|
|
1518
1938
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1939
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1940
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1519
1941
|
* @permissionScope Manage eCommerce - all permissions
|
|
1520
1942
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1521
1943
|
* @applicableIdentity APP
|
|
@@ -1523,7 +1945,10 @@ export interface ListDeliveryCarriersOptions {
|
|
|
1523
1945
|
*/
|
|
1524
1946
|
export declare function updateCarrierSettings(carrierId: string, options: UpdateCarrierSettingsOptions): Promise<void>;
|
|
1525
1947
|
export interface UpdateCarrierSettingsOptions {
|
|
1526
|
-
/**
|
|
1948
|
+
/**
|
|
1949
|
+
* Row id triggered the change
|
|
1950
|
+
* @format GUID
|
|
1951
|
+
*/
|
|
1527
1952
|
rowId: string;
|
|
1528
1953
|
/** New status */
|
|
1529
1954
|
active: boolean | null;
|
|
@@ -1541,6 +1966,8 @@ export interface UpdateCarrierSettingsOptions {
|
|
|
1541
1966
|
* @permissionId ECOM.DELIVERY_PROFILE_UPDATE
|
|
1542
1967
|
* @permissionScope Manage Stores - all permissions
|
|
1543
1968
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
1969
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
1970
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1544
1971
|
* @permissionScope Manage eCommerce - all permissions
|
|
1545
1972
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
1546
1973
|
* @applicableIdentity APP
|