@wix/auto_sdk_ecom_shippo-configurations 1.0.0 → 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-shippo-configuration-shippo-configurations.types.d.ts +161 -33
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts +208 -40
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +1 -1
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts +161 -33
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +1 -1
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts +208 -40
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts +161 -33
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts +208 -40
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +1 -1
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts +161 -33
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +1 -1
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts +208 -40
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface ShippoConfiguration {
|
|
2
2
|
/**
|
|
3
3
|
* ShippoConfiguration ID.
|
|
4
|
+
* @format GUID
|
|
4
5
|
* @readonly
|
|
5
6
|
*/
|
|
6
7
|
id?: string | null;
|
|
@@ -16,29 +17,61 @@ export interface ShippoConfiguration {
|
|
|
16
17
|
* @readonly
|
|
17
18
|
*/
|
|
18
19
|
updatedDate?: Date | null;
|
|
19
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Associated delivery region ID.
|
|
22
|
+
* @format GUID
|
|
23
|
+
* @immutable
|
|
24
|
+
* @deprecated Associated delivery region ID.
|
|
25
|
+
* @replacedBy delivery_region_ids
|
|
26
|
+
* @targetRemovalDate 2025-06-01
|
|
27
|
+
*/
|
|
20
28
|
deliveryRegionId?: string | null;
|
|
21
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Settings of USPS domestic services.
|
|
31
|
+
* @maxSize 3
|
|
32
|
+
*/
|
|
22
33
|
domesticServices?: DomesticServiceSettings[];
|
|
23
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Settings of USPS international services.
|
|
36
|
+
* @maxSize 3
|
|
37
|
+
*/
|
|
24
38
|
internationalServices?: InternationalServiceSettings[];
|
|
25
39
|
/** Package type. */
|
|
26
40
|
packageType?: PackageType;
|
|
27
41
|
/** Package details. */
|
|
28
42
|
packageDetails?: PackageDetails;
|
|
29
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Location ID from OS location service.
|
|
45
|
+
* @format GUID
|
|
46
|
+
*/
|
|
30
47
|
osLocationId?: string | null;
|
|
31
48
|
/**
|
|
32
49
|
* Ship from address materialized from OS location.
|
|
33
50
|
* @readonly
|
|
34
51
|
*/
|
|
35
52
|
shipFromAddress?: Address;
|
|
36
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* This shippo configuration is active for the following delivery regions.
|
|
55
|
+
* @maxSize 5
|
|
56
|
+
* @format GUID
|
|
57
|
+
* @immutable
|
|
58
|
+
*/
|
|
59
|
+
deliveryRegionIds?: string[];
|
|
60
|
+
/**
|
|
61
|
+
* Backup weight.
|
|
62
|
+
* @decimalValue options { gte:0, maxScale:3 }
|
|
63
|
+
*/
|
|
37
64
|
backupWeight?: string | null;
|
|
38
65
|
/** Data extensions. */
|
|
39
66
|
extendedFields?: ExtendedFields;
|
|
40
67
|
}
|
|
41
68
|
export interface DomesticServiceSettings {
|
|
69
|
+
/**
|
|
70
|
+
* DomesticServiceSettings ID.
|
|
71
|
+
* @format GUID
|
|
72
|
+
* @readonly
|
|
73
|
+
*/
|
|
74
|
+
id?: string | null;
|
|
42
75
|
/** USPS domestic service. */
|
|
43
76
|
service?: DomesticService;
|
|
44
77
|
/** Service settings. */
|
|
@@ -51,15 +84,24 @@ export declare enum DomesticService {
|
|
|
51
84
|
PRIORITY_MAIL_EXPRESS = "PRIORITY_MAIL_EXPRESS"
|
|
52
85
|
}
|
|
53
86
|
export interface ServiceSettings {
|
|
54
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* Estimated delivery time.
|
|
89
|
+
* @maxLength 500
|
|
90
|
+
*/
|
|
55
91
|
estimatedDeliveryTime?: string | null;
|
|
56
92
|
/** Handling fee. */
|
|
57
93
|
handlingFee?: HandlingFee;
|
|
58
|
-
/**
|
|
94
|
+
/**
|
|
95
|
+
* Amount above which free delivery is offered.
|
|
96
|
+
* @decimalValue options { gte:0, maxScale:4 }
|
|
97
|
+
*/
|
|
59
98
|
freeDeliveryMinimumAmount?: string | null;
|
|
60
99
|
}
|
|
61
100
|
export interface HandlingFee {
|
|
62
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* Value that will be used to calculate the fee. For example, percentage fee with value 5% to calculate the fee.
|
|
103
|
+
* @decimalValue options { gte:0, maxScale:4 }
|
|
104
|
+
*/
|
|
63
105
|
value?: string;
|
|
64
106
|
/** How to calculate the fee: fixed amount or by percentage. */
|
|
65
107
|
calculationType?: CalculationType;
|
|
@@ -70,6 +112,12 @@ export declare enum CalculationType {
|
|
|
70
112
|
PERCENTAGE = "PERCENTAGE"
|
|
71
113
|
}
|
|
72
114
|
export interface InternationalServiceSettings {
|
|
115
|
+
/**
|
|
116
|
+
* InternationalServiceSettings ID.
|
|
117
|
+
* @format GUID
|
|
118
|
+
* @readonly
|
|
119
|
+
*/
|
|
120
|
+
id?: string | null;
|
|
73
121
|
/** USPS international service. */
|
|
74
122
|
service?: InternationalService;
|
|
75
123
|
/** Service settings. */
|
|
@@ -96,6 +144,7 @@ export interface PackageDetails {
|
|
|
96
144
|
* Package name. Must be set when package type is CUSTOM.
|
|
97
145
|
* For other package types, it is read-only, and an exception will be thrown
|
|
98
146
|
* if it set when creating a ShippoConfiguration.
|
|
147
|
+
* @maxLength 255
|
|
99
148
|
*/
|
|
100
149
|
name?: string | null;
|
|
101
150
|
/**
|
|
@@ -112,28 +161,55 @@ export interface PackageDetails {
|
|
|
112
161
|
maxNumberOfProducts?: string | null;
|
|
113
162
|
}
|
|
114
163
|
export interface PackageDimensions {
|
|
115
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* Package length.
|
|
166
|
+
* @decimalValue options { gte:0, maxScale:3 }
|
|
167
|
+
*/
|
|
116
168
|
length?: string;
|
|
117
|
-
/**
|
|
169
|
+
/**
|
|
170
|
+
* Package width.
|
|
171
|
+
* @decimalValue options { gte:0, maxScale:3 }
|
|
172
|
+
*/
|
|
118
173
|
width?: string;
|
|
119
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* Package height.
|
|
176
|
+
* @decimalValue options { gte:0, maxScale:3 }
|
|
177
|
+
*/
|
|
120
178
|
height?: string;
|
|
121
179
|
}
|
|
122
180
|
/** Physical address */
|
|
123
181
|
export interface Address {
|
|
124
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
184
|
+
* @format COUNTRY
|
|
185
|
+
*/
|
|
125
186
|
country?: string | null;
|
|
126
|
-
/**
|
|
187
|
+
/**
|
|
188
|
+
* Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
|
|
189
|
+
* @maxLength 50
|
|
190
|
+
*/
|
|
127
191
|
subdivision?: string | null;
|
|
128
|
-
/**
|
|
192
|
+
/**
|
|
193
|
+
* City name.
|
|
194
|
+
* @maxLength 50
|
|
195
|
+
*/
|
|
129
196
|
city?: string | null;
|
|
130
|
-
/**
|
|
197
|
+
/**
|
|
198
|
+
* Postal or zip code.
|
|
199
|
+
* @maxLength 50
|
|
200
|
+
*/
|
|
131
201
|
postalCode?: string | null;
|
|
132
202
|
/** Street address. */
|
|
133
203
|
streetAddress?: StreetAddress;
|
|
134
|
-
/**
|
|
204
|
+
/**
|
|
205
|
+
* Main address line (usually street name and number).
|
|
206
|
+
* @maxLength 150
|
|
207
|
+
*/
|
|
135
208
|
addressLine?: string | null;
|
|
136
|
-
/**
|
|
209
|
+
/**
|
|
210
|
+
* Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
211
|
+
* @maxLength 100
|
|
212
|
+
*/
|
|
137
213
|
addressLine2?: string | null;
|
|
138
214
|
/**
|
|
139
215
|
* Country's full name.
|
|
@@ -172,6 +248,7 @@ export interface ExtendedFields {
|
|
|
172
248
|
export interface CreateShippoConfigurationRequest {
|
|
173
249
|
/** ShippoConfiguration to be created. */
|
|
174
250
|
shippoConfiguration: ShippoConfiguration;
|
|
251
|
+
/** @decimalValue options { gte:0, maxScale:6 } */
|
|
175
252
|
backupRate?: string | null;
|
|
176
253
|
}
|
|
177
254
|
export interface CreateShippoConfigurationResponse {
|
|
@@ -179,7 +256,10 @@ export interface CreateShippoConfigurationResponse {
|
|
|
179
256
|
shippoConfiguration?: ShippoConfiguration;
|
|
180
257
|
}
|
|
181
258
|
export interface GetShippoConfigurationRequest {
|
|
182
|
-
/**
|
|
259
|
+
/**
|
|
260
|
+
* ID of the ShippoConfiguration to retrieve.
|
|
261
|
+
* @format GUID
|
|
262
|
+
*/
|
|
183
263
|
shippoConfigurationId: string;
|
|
184
264
|
}
|
|
185
265
|
export interface GetShippoConfigurationResponse {
|
|
@@ -195,7 +275,10 @@ export interface UpdateShippoConfigurationResponse {
|
|
|
195
275
|
shippoConfiguration?: ShippoConfiguration;
|
|
196
276
|
}
|
|
197
277
|
export interface DeleteShippoConfigurationRequest {
|
|
198
|
-
/**
|
|
278
|
+
/**
|
|
279
|
+
* ID of the ShippoConfiguration to delete.
|
|
280
|
+
* @format GUID
|
|
281
|
+
*/
|
|
199
282
|
shippoConfigurationId: string;
|
|
200
283
|
}
|
|
201
284
|
export interface DeleteShippoConfigurationResponse {
|
|
@@ -219,6 +302,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
219
302
|
/**
|
|
220
303
|
* Sort object in the following format:
|
|
221
304
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
305
|
+
* @maxSize 5
|
|
222
306
|
*/
|
|
223
307
|
sort?: Sorting[];
|
|
224
308
|
}
|
|
@@ -228,7 +312,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
228
312
|
cursorPaging?: CursorPaging;
|
|
229
313
|
}
|
|
230
314
|
export interface Sorting {
|
|
231
|
-
/**
|
|
315
|
+
/**
|
|
316
|
+
* Name of the field to sort by.
|
|
317
|
+
* @maxLength 512
|
|
318
|
+
*/
|
|
232
319
|
fieldName?: string;
|
|
233
320
|
/** Sort order. */
|
|
234
321
|
order?: SortOrder;
|
|
@@ -238,13 +325,17 @@ export declare enum SortOrder {
|
|
|
238
325
|
DESC = "DESC"
|
|
239
326
|
}
|
|
240
327
|
export interface CursorPaging {
|
|
241
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* Maximum number of items to return in the results.
|
|
330
|
+
* @max 100
|
|
331
|
+
*/
|
|
242
332
|
limit?: number | null;
|
|
243
333
|
/**
|
|
244
334
|
* Pointer to the next or previous page in the list of results.
|
|
245
335
|
*
|
|
246
336
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
247
337
|
* Not relevant for the first request.
|
|
338
|
+
* @maxLength 16000
|
|
248
339
|
*/
|
|
249
340
|
cursor?: string | null;
|
|
250
341
|
}
|
|
@@ -268,9 +359,15 @@ export interface CursorPagingMetadata {
|
|
|
268
359
|
hasNext?: boolean | null;
|
|
269
360
|
}
|
|
270
361
|
export interface Cursors {
|
|
271
|
-
/**
|
|
362
|
+
/**
|
|
363
|
+
* Cursor string pointing to the next page in the list of results.
|
|
364
|
+
* @maxLength 16000
|
|
365
|
+
*/
|
|
272
366
|
next?: string | null;
|
|
273
|
-
/**
|
|
367
|
+
/**
|
|
368
|
+
* Cursor pointing to the previous page in the list of results.
|
|
369
|
+
* @maxLength 16000
|
|
370
|
+
*/
|
|
274
371
|
prev?: string | null;
|
|
275
372
|
}
|
|
276
373
|
export interface UpdateExtendedFieldsRequest {
|
|
@@ -360,9 +457,15 @@ export interface ActionEvent {
|
|
|
360
457
|
export interface Empty {
|
|
361
458
|
}
|
|
362
459
|
export interface MessageEnvelope {
|
|
363
|
-
/**
|
|
460
|
+
/**
|
|
461
|
+
* App instance ID.
|
|
462
|
+
* @format GUID
|
|
463
|
+
*/
|
|
364
464
|
instanceId?: string | null;
|
|
365
|
-
/**
|
|
465
|
+
/**
|
|
466
|
+
* Event type.
|
|
467
|
+
* @maxLength 150
|
|
468
|
+
*/
|
|
366
469
|
eventType?: string;
|
|
367
470
|
/** The identification type and identity data. */
|
|
368
471
|
identity?: IdentificationData;
|
|
@@ -370,26 +473,50 @@ export interface MessageEnvelope {
|
|
|
370
473
|
data?: string;
|
|
371
474
|
}
|
|
372
475
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
373
|
-
/**
|
|
476
|
+
/**
|
|
477
|
+
* ID of a site visitor that has not logged in to the site.
|
|
478
|
+
* @format GUID
|
|
479
|
+
*/
|
|
374
480
|
anonymousVisitorId?: string;
|
|
375
|
-
/**
|
|
481
|
+
/**
|
|
482
|
+
* ID of a site visitor that has logged in to the site.
|
|
483
|
+
* @format GUID
|
|
484
|
+
*/
|
|
376
485
|
memberId?: string;
|
|
377
|
-
/**
|
|
486
|
+
/**
|
|
487
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
488
|
+
* @format GUID
|
|
489
|
+
*/
|
|
378
490
|
wixUserId?: string;
|
|
379
|
-
/**
|
|
491
|
+
/**
|
|
492
|
+
* ID of an app.
|
|
493
|
+
* @format GUID
|
|
494
|
+
*/
|
|
380
495
|
appId?: string;
|
|
381
496
|
/** @readonly */
|
|
382
497
|
identityType?: WebhookIdentityType;
|
|
383
498
|
}
|
|
384
499
|
/** @oneof */
|
|
385
500
|
export interface IdentificationDataIdOneOf {
|
|
386
|
-
/**
|
|
501
|
+
/**
|
|
502
|
+
* ID of a site visitor that has not logged in to the site.
|
|
503
|
+
* @format GUID
|
|
504
|
+
*/
|
|
387
505
|
anonymousVisitorId?: string;
|
|
388
|
-
/**
|
|
506
|
+
/**
|
|
507
|
+
* ID of a site visitor that has logged in to the site.
|
|
508
|
+
* @format GUID
|
|
509
|
+
*/
|
|
389
510
|
memberId?: string;
|
|
390
|
-
/**
|
|
511
|
+
/**
|
|
512
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
513
|
+
* @format GUID
|
|
514
|
+
*/
|
|
391
515
|
wixUserId?: string;
|
|
392
|
-
/**
|
|
516
|
+
/**
|
|
517
|
+
* ID of an app.
|
|
518
|
+
* @format GUID
|
|
519
|
+
*/
|
|
393
520
|
appId?: string;
|
|
394
521
|
}
|
|
395
522
|
export declare enum WebhookIdentityType {
|
|
@@ -436,6 +563,7 @@ interface ShippoConfigurationNonNullableFields {
|
|
|
436
563
|
packageType: PackageType;
|
|
437
564
|
packageDetails?: PackageDetailsNonNullableFields;
|
|
438
565
|
shipFromAddress?: AddressNonNullableFields;
|
|
566
|
+
deliveryRegionIds: string[];
|
|
439
567
|
}
|
|
440
568
|
export interface CreateShippoConfigurationResponseNonNullableFields {
|
|
441
569
|
shippoConfiguration?: ShippoConfigurationNonNullableFields;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-shippo-configuration-shippo-configurations.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-shippo-configuration-shippo-configurations.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ecom-v1-shippo-configuration-shippo-configurations.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-shippo-configuration-shippo-configurations.types.ts"],"names":[],"mappings":";;;AAiFA,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,wDAAqC,CAAA;IACrC,kDAA+B,CAAA;IAC/B,kEAA+C,CAAA;AACjD,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AA2BD,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,gDAA6B,CAAA;IAC7B,kCAAe,CAAA;IACf,4CAAyB,CAAA;AAC3B,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAeD,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,uFAA+D,CAAA;IAC/D,+FAAuE,CAAA;IACvE,mFAA2D,CAAA;IAC3D,mGAA2E,CAAA;AAC7E,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAED,IAAY,WASX;AATD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,gCAAiB,CAAA;IACjB,wDAAyC,CAAA;IACzC,sEAAuD,CAAA;IACvD,0DAA2C,CAAA;IAC3C,gEAAiD,CAAA;IACjD,gEAAiD,CAAA;IACjD,0DAA2C,CAAA;AAC7C,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB;AAwMD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAqND,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|