@wix/auto_sdk_ecom_shippo-configurations 1.0.0 → 1.0.1
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 +150 -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 +187 -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 +150 -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 +187 -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 +150 -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 +187 -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 +150 -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 +187 -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,51 @@ 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
|
+
*/
|
|
20
25
|
deliveryRegionId?: string | null;
|
|
21
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Settings of USPS domestic services.
|
|
28
|
+
* @maxSize 3
|
|
29
|
+
*/
|
|
22
30
|
domesticServices?: DomesticServiceSettings[];
|
|
23
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* Settings of USPS international services.
|
|
33
|
+
* @maxSize 3
|
|
34
|
+
*/
|
|
24
35
|
internationalServices?: InternationalServiceSettings[];
|
|
25
36
|
/** Package type. */
|
|
26
37
|
packageType?: PackageType;
|
|
27
38
|
/** Package details. */
|
|
28
39
|
packageDetails?: PackageDetails;
|
|
29
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* Location ID from OS location service.
|
|
42
|
+
* @format GUID
|
|
43
|
+
*/
|
|
30
44
|
osLocationId?: string | null;
|
|
31
45
|
/**
|
|
32
46
|
* Ship from address materialized from OS location.
|
|
33
47
|
* @readonly
|
|
34
48
|
*/
|
|
35
49
|
shipFromAddress?: Address;
|
|
36
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Backup weight.
|
|
52
|
+
* @decimalValue options { gte:0, maxScale:3 }
|
|
53
|
+
*/
|
|
37
54
|
backupWeight?: string | null;
|
|
38
55
|
/** Data extensions. */
|
|
39
56
|
extendedFields?: ExtendedFields;
|
|
40
57
|
}
|
|
41
58
|
export interface DomesticServiceSettings {
|
|
59
|
+
/**
|
|
60
|
+
* DomesticServiceSettings ID.
|
|
61
|
+
* @format GUID
|
|
62
|
+
* @readonly
|
|
63
|
+
*/
|
|
64
|
+
id?: string | null;
|
|
42
65
|
/** USPS domestic service. */
|
|
43
66
|
service?: DomesticService;
|
|
44
67
|
/** Service settings. */
|
|
@@ -51,15 +74,24 @@ export declare enum DomesticService {
|
|
|
51
74
|
PRIORITY_MAIL_EXPRESS = "PRIORITY_MAIL_EXPRESS"
|
|
52
75
|
}
|
|
53
76
|
export interface ServiceSettings {
|
|
54
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* Estimated delivery time.
|
|
79
|
+
* @maxLength 500
|
|
80
|
+
*/
|
|
55
81
|
estimatedDeliveryTime?: string | null;
|
|
56
82
|
/** Handling fee. */
|
|
57
83
|
handlingFee?: HandlingFee;
|
|
58
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* Amount above which free delivery is offered.
|
|
86
|
+
* @decimalValue options { gte:0, maxScale:4 }
|
|
87
|
+
*/
|
|
59
88
|
freeDeliveryMinimumAmount?: string | null;
|
|
60
89
|
}
|
|
61
90
|
export interface HandlingFee {
|
|
62
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Value that will be used to calculate the fee. For example, percentage fee with value 5% to calculate the fee.
|
|
93
|
+
* @decimalValue options { gte:0, maxScale:4 }
|
|
94
|
+
*/
|
|
63
95
|
value?: string;
|
|
64
96
|
/** How to calculate the fee: fixed amount or by percentage. */
|
|
65
97
|
calculationType?: CalculationType;
|
|
@@ -70,6 +102,12 @@ export declare enum CalculationType {
|
|
|
70
102
|
PERCENTAGE = "PERCENTAGE"
|
|
71
103
|
}
|
|
72
104
|
export interface InternationalServiceSettings {
|
|
105
|
+
/**
|
|
106
|
+
* InternationalServiceSettings ID.
|
|
107
|
+
* @format GUID
|
|
108
|
+
* @readonly
|
|
109
|
+
*/
|
|
110
|
+
id?: string | null;
|
|
73
111
|
/** USPS international service. */
|
|
74
112
|
service?: InternationalService;
|
|
75
113
|
/** Service settings. */
|
|
@@ -96,6 +134,7 @@ export interface PackageDetails {
|
|
|
96
134
|
* Package name. Must be set when package type is CUSTOM.
|
|
97
135
|
* For other package types, it is read-only, and an exception will be thrown
|
|
98
136
|
* if it set when creating a ShippoConfiguration.
|
|
137
|
+
* @maxLength 255
|
|
99
138
|
*/
|
|
100
139
|
name?: string | null;
|
|
101
140
|
/**
|
|
@@ -112,28 +151,55 @@ export interface PackageDetails {
|
|
|
112
151
|
maxNumberOfProducts?: string | null;
|
|
113
152
|
}
|
|
114
153
|
export interface PackageDimensions {
|
|
115
|
-
/**
|
|
154
|
+
/**
|
|
155
|
+
* Package length.
|
|
156
|
+
* @decimalValue options { gte:0, maxScale:3 }
|
|
157
|
+
*/
|
|
116
158
|
length?: string;
|
|
117
|
-
/**
|
|
159
|
+
/**
|
|
160
|
+
* Package width.
|
|
161
|
+
* @decimalValue options { gte:0, maxScale:3 }
|
|
162
|
+
*/
|
|
118
163
|
width?: string;
|
|
119
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* Package height.
|
|
166
|
+
* @decimalValue options { gte:0, maxScale:3 }
|
|
167
|
+
*/
|
|
120
168
|
height?: string;
|
|
121
169
|
}
|
|
122
170
|
/** Physical address */
|
|
123
171
|
export interface Address {
|
|
124
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
174
|
+
* @format COUNTRY
|
|
175
|
+
*/
|
|
125
176
|
country?: string | null;
|
|
126
|
-
/**
|
|
177
|
+
/**
|
|
178
|
+
* Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
|
|
179
|
+
* @maxLength 50
|
|
180
|
+
*/
|
|
127
181
|
subdivision?: string | null;
|
|
128
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* City name.
|
|
184
|
+
* @maxLength 50
|
|
185
|
+
*/
|
|
129
186
|
city?: string | null;
|
|
130
|
-
/**
|
|
187
|
+
/**
|
|
188
|
+
* Postal or zip code.
|
|
189
|
+
* @maxLength 50
|
|
190
|
+
*/
|
|
131
191
|
postalCode?: string | null;
|
|
132
192
|
/** Street address. */
|
|
133
193
|
streetAddress?: StreetAddress;
|
|
134
|
-
/**
|
|
194
|
+
/**
|
|
195
|
+
* Main address line (usually street name and number).
|
|
196
|
+
* @maxLength 150
|
|
197
|
+
*/
|
|
135
198
|
addressLine?: string | null;
|
|
136
|
-
/**
|
|
199
|
+
/**
|
|
200
|
+
* Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
201
|
+
* @maxLength 100
|
|
202
|
+
*/
|
|
137
203
|
addressLine2?: string | null;
|
|
138
204
|
/**
|
|
139
205
|
* Country's full name.
|
|
@@ -172,6 +238,7 @@ export interface ExtendedFields {
|
|
|
172
238
|
export interface CreateShippoConfigurationRequest {
|
|
173
239
|
/** ShippoConfiguration to be created. */
|
|
174
240
|
shippoConfiguration: ShippoConfiguration;
|
|
241
|
+
/** @decimalValue options { gte:0, maxScale:6 } */
|
|
175
242
|
backupRate?: string | null;
|
|
176
243
|
}
|
|
177
244
|
export interface CreateShippoConfigurationResponse {
|
|
@@ -179,7 +246,10 @@ export interface CreateShippoConfigurationResponse {
|
|
|
179
246
|
shippoConfiguration?: ShippoConfiguration;
|
|
180
247
|
}
|
|
181
248
|
export interface GetShippoConfigurationRequest {
|
|
182
|
-
/**
|
|
249
|
+
/**
|
|
250
|
+
* ID of the ShippoConfiguration to retrieve.
|
|
251
|
+
* @format GUID
|
|
252
|
+
*/
|
|
183
253
|
shippoConfigurationId: string;
|
|
184
254
|
}
|
|
185
255
|
export interface GetShippoConfigurationResponse {
|
|
@@ -195,7 +265,10 @@ export interface UpdateShippoConfigurationResponse {
|
|
|
195
265
|
shippoConfiguration?: ShippoConfiguration;
|
|
196
266
|
}
|
|
197
267
|
export interface DeleteShippoConfigurationRequest {
|
|
198
|
-
/**
|
|
268
|
+
/**
|
|
269
|
+
* ID of the ShippoConfiguration to delete.
|
|
270
|
+
* @format GUID
|
|
271
|
+
*/
|
|
199
272
|
shippoConfigurationId: string;
|
|
200
273
|
}
|
|
201
274
|
export interface DeleteShippoConfigurationResponse {
|
|
@@ -219,6 +292,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
219
292
|
/**
|
|
220
293
|
* Sort object in the following format:
|
|
221
294
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
295
|
+
* @maxSize 5
|
|
222
296
|
*/
|
|
223
297
|
sort?: Sorting[];
|
|
224
298
|
}
|
|
@@ -228,7 +302,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
228
302
|
cursorPaging?: CursorPaging;
|
|
229
303
|
}
|
|
230
304
|
export interface Sorting {
|
|
231
|
-
/**
|
|
305
|
+
/**
|
|
306
|
+
* Name of the field to sort by.
|
|
307
|
+
* @maxLength 512
|
|
308
|
+
*/
|
|
232
309
|
fieldName?: string;
|
|
233
310
|
/** Sort order. */
|
|
234
311
|
order?: SortOrder;
|
|
@@ -238,13 +315,17 @@ export declare enum SortOrder {
|
|
|
238
315
|
DESC = "DESC"
|
|
239
316
|
}
|
|
240
317
|
export interface CursorPaging {
|
|
241
|
-
/**
|
|
318
|
+
/**
|
|
319
|
+
* Maximum number of items to return in the results.
|
|
320
|
+
* @max 100
|
|
321
|
+
*/
|
|
242
322
|
limit?: number | null;
|
|
243
323
|
/**
|
|
244
324
|
* Pointer to the next or previous page in the list of results.
|
|
245
325
|
*
|
|
246
326
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
247
327
|
* Not relevant for the first request.
|
|
328
|
+
* @maxLength 16000
|
|
248
329
|
*/
|
|
249
330
|
cursor?: string | null;
|
|
250
331
|
}
|
|
@@ -268,9 +349,15 @@ export interface CursorPagingMetadata {
|
|
|
268
349
|
hasNext?: boolean | null;
|
|
269
350
|
}
|
|
270
351
|
export interface Cursors {
|
|
271
|
-
/**
|
|
352
|
+
/**
|
|
353
|
+
* Cursor string pointing to the next page in the list of results.
|
|
354
|
+
* @maxLength 16000
|
|
355
|
+
*/
|
|
272
356
|
next?: string | null;
|
|
273
|
-
/**
|
|
357
|
+
/**
|
|
358
|
+
* Cursor pointing to the previous page in the list of results.
|
|
359
|
+
* @maxLength 16000
|
|
360
|
+
*/
|
|
274
361
|
prev?: string | null;
|
|
275
362
|
}
|
|
276
363
|
export interface UpdateExtendedFieldsRequest {
|
|
@@ -360,9 +447,15 @@ export interface ActionEvent {
|
|
|
360
447
|
export interface Empty {
|
|
361
448
|
}
|
|
362
449
|
export interface MessageEnvelope {
|
|
363
|
-
/**
|
|
450
|
+
/**
|
|
451
|
+
* App instance ID.
|
|
452
|
+
* @format GUID
|
|
453
|
+
*/
|
|
364
454
|
instanceId?: string | null;
|
|
365
|
-
/**
|
|
455
|
+
/**
|
|
456
|
+
* Event type.
|
|
457
|
+
* @maxLength 150
|
|
458
|
+
*/
|
|
366
459
|
eventType?: string;
|
|
367
460
|
/** The identification type and identity data. */
|
|
368
461
|
identity?: IdentificationData;
|
|
@@ -370,26 +463,50 @@ export interface MessageEnvelope {
|
|
|
370
463
|
data?: string;
|
|
371
464
|
}
|
|
372
465
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
373
|
-
/**
|
|
466
|
+
/**
|
|
467
|
+
* ID of a site visitor that has not logged in to the site.
|
|
468
|
+
* @format GUID
|
|
469
|
+
*/
|
|
374
470
|
anonymousVisitorId?: string;
|
|
375
|
-
/**
|
|
471
|
+
/**
|
|
472
|
+
* ID of a site visitor that has logged in to the site.
|
|
473
|
+
* @format GUID
|
|
474
|
+
*/
|
|
376
475
|
memberId?: string;
|
|
377
|
-
/**
|
|
476
|
+
/**
|
|
477
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
478
|
+
* @format GUID
|
|
479
|
+
*/
|
|
378
480
|
wixUserId?: string;
|
|
379
|
-
/**
|
|
481
|
+
/**
|
|
482
|
+
* ID of an app.
|
|
483
|
+
* @format GUID
|
|
484
|
+
*/
|
|
380
485
|
appId?: string;
|
|
381
486
|
/** @readonly */
|
|
382
487
|
identityType?: WebhookIdentityType;
|
|
383
488
|
}
|
|
384
489
|
/** @oneof */
|
|
385
490
|
export interface IdentificationDataIdOneOf {
|
|
386
|
-
/**
|
|
491
|
+
/**
|
|
492
|
+
* ID of a site visitor that has not logged in to the site.
|
|
493
|
+
* @format GUID
|
|
494
|
+
*/
|
|
387
495
|
anonymousVisitorId?: string;
|
|
388
|
-
/**
|
|
496
|
+
/**
|
|
497
|
+
* ID of a site visitor that has logged in to the site.
|
|
498
|
+
* @format GUID
|
|
499
|
+
*/
|
|
389
500
|
memberId?: string;
|
|
390
|
-
/**
|
|
501
|
+
/**
|
|
502
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
503
|
+
* @format GUID
|
|
504
|
+
*/
|
|
391
505
|
wixUserId?: string;
|
|
392
|
-
/**
|
|
506
|
+
/**
|
|
507
|
+
* ID of an app.
|
|
508
|
+
* @format GUID
|
|
509
|
+
*/
|
|
393
510
|
appId?: string;
|
|
394
511
|
}
|
|
395
512
|
export declare enum WebhookIdentityType {
|
|
@@ -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":";;;AAuEA,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"}
|