@wix/auto_sdk_ecom_shippo-configurations 1.0.9 → 1.0.10
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +20 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +29 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +1 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +22 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +288 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +1 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +26 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +144 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +67 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +96 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +1 -0
- package/build/{internal/meta.d.mts → cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts} +183 -62
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +48 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +1 -0
- package/build/{ecom-v1-shippo-configuration-shippo-configurations.universal-nw2-6NKP.d.mts → cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts} +163 -58
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +362 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +20 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +20 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +1 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +22 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +279 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +1 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +26 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +112 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +1 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +67 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +81 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +1 -0
- package/build/{internal/meta.d.ts → es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts} +183 -62
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +45 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +1 -0
- package/build/{ecom-v1-shippo-configuration-shippo-configurations.universal-nw2-6NKP.d.ts → es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts} +163 -58
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +330 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +20 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +29 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +22 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +288 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +26 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +144 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +67 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +96 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +1 -0
- package/build/{meta.d.mts → internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts} +183 -62
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +48 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +1 -0
- package/build/internal/{ecom-v1-shippo-configuration-shippo-configurations.universal-nw2-6NKP.d.mts → cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts} +163 -58
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +362 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +20 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +20 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +1 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +22 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +279 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +1 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +26 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +112 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +67 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +81 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +1 -0
- package/build/{meta.d.ts → internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts} +183 -62
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +45 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +1 -0
- package/build/internal/{ecom-v1-shippo-configuration-shippo-configurations.universal-nw2-6NKP.d.ts → es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts} +163 -58
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +330 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.d.mts +0 -78
- package/build/index.d.ts +0 -78
- package/build/index.js +0 -734
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -696
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -78
- package/build/internal/index.d.ts +0 -78
- package/build/internal/index.js +0 -734
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -696
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.js +0 -417
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -385
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.js +0 -417
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -385
- package/build/meta.mjs.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
+
export interface ShippoConfiguration {
|
|
2
3
|
/**
|
|
3
4
|
* ShippoConfiguration ID.
|
|
4
5
|
* @format GUID
|
|
@@ -65,7 +66,7 @@ interface ShippoConfiguration {
|
|
|
65
66
|
/** Data extensions. */
|
|
66
67
|
extendedFields?: ExtendedFields;
|
|
67
68
|
}
|
|
68
|
-
interface DomesticServiceSettings {
|
|
69
|
+
export interface DomesticServiceSettings {
|
|
69
70
|
/**
|
|
70
71
|
* DomesticServiceSettings ID.
|
|
71
72
|
* @format GUID
|
|
@@ -77,13 +78,13 @@ interface DomesticServiceSettings {
|
|
|
77
78
|
/** Service settings. */
|
|
78
79
|
serviceSettings?: ServiceSettings;
|
|
79
80
|
}
|
|
80
|
-
declare enum DomesticService {
|
|
81
|
+
export declare enum DomesticService {
|
|
81
82
|
UNKNOWN_DOMESTIC_SERVICE = "UNKNOWN_DOMESTIC_SERVICE",
|
|
82
83
|
GROUND_ADVANTAGE = "GROUND_ADVANTAGE",
|
|
83
84
|
PRIORITY_MAIL = "PRIORITY_MAIL",
|
|
84
85
|
PRIORITY_MAIL_EXPRESS = "PRIORITY_MAIL_EXPRESS"
|
|
85
86
|
}
|
|
86
|
-
interface ServiceSettings {
|
|
87
|
+
export interface ServiceSettings {
|
|
87
88
|
/**
|
|
88
89
|
* Estimated delivery time.
|
|
89
90
|
* @maxLength 500
|
|
@@ -97,7 +98,7 @@ interface ServiceSettings {
|
|
|
97
98
|
*/
|
|
98
99
|
freeDeliveryMinimumAmount?: string | null;
|
|
99
100
|
}
|
|
100
|
-
interface HandlingFee {
|
|
101
|
+
export interface HandlingFee {
|
|
101
102
|
/**
|
|
102
103
|
* Value that will be used to calculate the fee. For example, percentage fee with value 5% to calculate the fee.
|
|
103
104
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
@@ -106,12 +107,12 @@ interface HandlingFee {
|
|
|
106
107
|
/** How to calculate the fee: fixed amount or by percentage. */
|
|
107
108
|
calculationType?: CalculationType;
|
|
108
109
|
}
|
|
109
|
-
declare enum CalculationType {
|
|
110
|
+
export declare enum CalculationType {
|
|
110
111
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
111
112
|
FIXED = "FIXED",
|
|
112
113
|
PERCENTAGE = "PERCENTAGE"
|
|
113
114
|
}
|
|
114
|
-
interface InternationalServiceSettings {
|
|
115
|
+
export interface InternationalServiceSettings {
|
|
115
116
|
/**
|
|
116
117
|
* InternationalServiceSettings ID.
|
|
117
118
|
* @format GUID
|
|
@@ -123,13 +124,13 @@ interface InternationalServiceSettings {
|
|
|
123
124
|
/** Service settings. */
|
|
124
125
|
serviceSettings?: ServiceSettings;
|
|
125
126
|
}
|
|
126
|
-
declare enum InternationalService {
|
|
127
|
+
export declare enum InternationalService {
|
|
127
128
|
UNKNOWN_INTERNATIONAL_SERVICE = "UNKNOWN_INTERNATIONAL_SERVICE",
|
|
128
129
|
FIRST_CLASS_PACKAGE_INTERNATIONAL = "FIRST_CLASS_PACKAGE_INTERNATIONAL",
|
|
129
130
|
PRIORITY_MAIL_INTERNATIONAL = "PRIORITY_MAIL_INTERNATIONAL",
|
|
130
131
|
PRIORITY_MAIL_EXPRESS_INTERNATIONAL = "PRIORITY_MAIL_EXPRESS_INTERNATIONAL"
|
|
131
132
|
}
|
|
132
|
-
declare enum PackageType {
|
|
133
|
+
export declare enum PackageType {
|
|
133
134
|
UNKNOWN_PACKAGE_TYPE = "UNKNOWN_PACKAGE_TYPE",
|
|
134
135
|
CUSTOM = "CUSTOM",
|
|
135
136
|
FLAT_RATE_ENVELOPE = "FLAT_RATE_ENVELOPE",
|
|
@@ -139,7 +140,7 @@ declare enum PackageType {
|
|
|
139
140
|
MEDIUM_FLAT_RATE_BOX_2 = "MEDIUM_FLAT_RATE_BOX_2",
|
|
140
141
|
LARGE_FLAT_RATE_BOX = "LARGE_FLAT_RATE_BOX"
|
|
141
142
|
}
|
|
142
|
-
interface PackageDetails {
|
|
143
|
+
export interface PackageDetails {
|
|
143
144
|
/**
|
|
144
145
|
* Package name. Must be set when package type is CUSTOM.
|
|
145
146
|
* For other package types, it is read-only, and an exception will be thrown
|
|
@@ -160,7 +161,7 @@ interface PackageDetails {
|
|
|
160
161
|
*/
|
|
161
162
|
maxNumberOfProducts?: string | null;
|
|
162
163
|
}
|
|
163
|
-
interface PackageDimensions {
|
|
164
|
+
export interface PackageDimensions {
|
|
164
165
|
/**
|
|
165
166
|
* Package length.
|
|
166
167
|
* @decimalValue options { gte:0, maxScale:3 }
|
|
@@ -178,7 +179,7 @@ interface PackageDimensions {
|
|
|
178
179
|
height?: string;
|
|
179
180
|
}
|
|
180
181
|
/** Physical address */
|
|
181
|
-
interface Address {
|
|
182
|
+
export interface Address {
|
|
182
183
|
/**
|
|
183
184
|
* Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
184
185
|
* @format COUNTRY
|
|
@@ -222,19 +223,19 @@ interface Address {
|
|
|
222
223
|
*/
|
|
223
224
|
subdivisionFullname?: string | null;
|
|
224
225
|
}
|
|
225
|
-
interface StreetAddress {
|
|
226
|
+
export interface StreetAddress {
|
|
226
227
|
/** Street number. */
|
|
227
228
|
number?: string;
|
|
228
229
|
/** Street name. */
|
|
229
230
|
name?: string;
|
|
230
231
|
}
|
|
231
|
-
interface AddressLocation {
|
|
232
|
+
export interface AddressLocation {
|
|
232
233
|
/** Address latitude. */
|
|
233
234
|
latitude?: number | null;
|
|
234
235
|
/** Address longitude. */
|
|
235
236
|
longitude?: number | null;
|
|
236
237
|
}
|
|
237
|
-
interface ExtendedFields {
|
|
238
|
+
export interface ExtendedFields {
|
|
238
239
|
/**
|
|
239
240
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
240
241
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -245,49 +246,49 @@ interface ExtendedFields {
|
|
|
245
246
|
*/
|
|
246
247
|
namespaces?: Record<string, Record<string, any>>;
|
|
247
248
|
}
|
|
248
|
-
interface CreateShippoConfigurationRequest {
|
|
249
|
+
export interface CreateShippoConfigurationRequest {
|
|
249
250
|
/** ShippoConfiguration to be created. */
|
|
250
251
|
shippoConfiguration: ShippoConfiguration;
|
|
251
252
|
/** @decimalValue options { gte:0, maxScale:6 } */
|
|
252
253
|
backupRate?: string | null;
|
|
253
254
|
}
|
|
254
|
-
interface CreateShippoConfigurationResponse {
|
|
255
|
+
export interface CreateShippoConfigurationResponse {
|
|
255
256
|
/** The created ShippoConfiguration. */
|
|
256
257
|
shippoConfiguration?: ShippoConfiguration;
|
|
257
258
|
}
|
|
258
|
-
interface GetShippoConfigurationRequest {
|
|
259
|
+
export interface GetShippoConfigurationRequest {
|
|
259
260
|
/**
|
|
260
261
|
* ID of the ShippoConfiguration to retrieve.
|
|
261
262
|
* @format GUID
|
|
262
263
|
*/
|
|
263
264
|
shippoConfigurationId: string;
|
|
264
265
|
}
|
|
265
|
-
interface GetShippoConfigurationResponse {
|
|
266
|
+
export interface GetShippoConfigurationResponse {
|
|
266
267
|
/** The requested ShippoConfiguration. */
|
|
267
268
|
shippoConfiguration?: ShippoConfiguration;
|
|
268
269
|
}
|
|
269
|
-
interface UpdateShippoConfigurationRequest {
|
|
270
|
+
export interface UpdateShippoConfigurationRequest {
|
|
270
271
|
/** ShippoConfiguration to be updated, may be partial. */
|
|
271
272
|
shippoConfiguration: ShippoConfiguration;
|
|
272
273
|
}
|
|
273
|
-
interface UpdateShippoConfigurationResponse {
|
|
274
|
+
export interface UpdateShippoConfigurationResponse {
|
|
274
275
|
/** Updated ShippoConfiguration. */
|
|
275
276
|
shippoConfiguration?: ShippoConfiguration;
|
|
276
277
|
}
|
|
277
|
-
interface DeleteShippoConfigurationRequest {
|
|
278
|
+
export interface DeleteShippoConfigurationRequest {
|
|
278
279
|
/**
|
|
279
280
|
* ID of the ShippoConfiguration to delete.
|
|
280
281
|
* @format GUID
|
|
281
282
|
*/
|
|
282
283
|
shippoConfigurationId: string;
|
|
283
284
|
}
|
|
284
|
-
interface DeleteShippoConfigurationResponse {
|
|
285
|
+
export interface DeleteShippoConfigurationResponse {
|
|
285
286
|
}
|
|
286
|
-
interface QueryShippoConfigurationsRequest {
|
|
287
|
+
export interface QueryShippoConfigurationsRequest {
|
|
287
288
|
/** WQL expression. */
|
|
288
289
|
query?: CursorQuery;
|
|
289
290
|
}
|
|
290
|
-
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
291
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
291
292
|
/** 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`. */
|
|
292
293
|
cursorPaging?: CursorPaging;
|
|
293
294
|
/**
|
|
@@ -307,11 +308,11 @@ interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
307
308
|
sort?: Sorting[];
|
|
308
309
|
}
|
|
309
310
|
/** @oneof */
|
|
310
|
-
interface CursorQueryPagingMethodOneOf {
|
|
311
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
311
312
|
/** 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`. */
|
|
312
313
|
cursorPaging?: CursorPaging;
|
|
313
314
|
}
|
|
314
|
-
interface Sorting {
|
|
315
|
+
export interface Sorting {
|
|
315
316
|
/**
|
|
316
317
|
* Name of the field to sort by.
|
|
317
318
|
* @maxLength 512
|
|
@@ -320,11 +321,11 @@ interface Sorting {
|
|
|
320
321
|
/** Sort order. */
|
|
321
322
|
order?: SortOrder;
|
|
322
323
|
}
|
|
323
|
-
declare enum SortOrder {
|
|
324
|
+
export declare enum SortOrder {
|
|
324
325
|
ASC = "ASC",
|
|
325
326
|
DESC = "DESC"
|
|
326
327
|
}
|
|
327
|
-
interface CursorPaging {
|
|
328
|
+
export interface CursorPaging {
|
|
328
329
|
/**
|
|
329
330
|
* Maximum number of items to return in the results.
|
|
330
331
|
* @max 100
|
|
@@ -339,13 +340,13 @@ interface CursorPaging {
|
|
|
339
340
|
*/
|
|
340
341
|
cursor?: string | null;
|
|
341
342
|
}
|
|
342
|
-
interface QueryShippoConfigurationsResponse {
|
|
343
|
+
export interface QueryShippoConfigurationsResponse {
|
|
343
344
|
/** List of ShippoConfigurations. */
|
|
344
345
|
shippoConfigurations?: ShippoConfiguration[];
|
|
345
346
|
/** Paging metadata. */
|
|
346
347
|
pagingMetadata?: CursorPagingMetadata;
|
|
347
348
|
}
|
|
348
|
-
interface CursorPagingMetadata {
|
|
349
|
+
export interface CursorPagingMetadata {
|
|
349
350
|
/** Number of items returned in the response. */
|
|
350
351
|
count?: number | null;
|
|
351
352
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -358,7 +359,7 @@ interface CursorPagingMetadata {
|
|
|
358
359
|
*/
|
|
359
360
|
hasNext?: boolean | null;
|
|
360
361
|
}
|
|
361
|
-
interface Cursors {
|
|
362
|
+
export interface Cursors {
|
|
362
363
|
/**
|
|
363
364
|
* Cursor string pointing to the next page in the list of results.
|
|
364
365
|
* @maxLength 16000
|
|
@@ -370,7 +371,7 @@ interface Cursors {
|
|
|
370
371
|
*/
|
|
371
372
|
prev?: string | null;
|
|
372
373
|
}
|
|
373
|
-
interface UpdateExtendedFieldsRequest {
|
|
374
|
+
export interface UpdateExtendedFieldsRequest {
|
|
374
375
|
/** ID of the entity to update. */
|
|
375
376
|
_id: string;
|
|
376
377
|
/** Identifier for the app whose extended fields are being updated. */
|
|
@@ -378,11 +379,11 @@ interface UpdateExtendedFieldsRequest {
|
|
|
378
379
|
/** 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. */
|
|
379
380
|
namespaceData: Record<string, any> | null;
|
|
380
381
|
}
|
|
381
|
-
interface UpdateExtendedFieldsResponse {
|
|
382
|
+
export interface UpdateExtendedFieldsResponse {
|
|
382
383
|
/** Updated ShippoConfiguration. */
|
|
383
384
|
shippoConfiguration?: ShippoConfiguration;
|
|
384
385
|
}
|
|
385
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
386
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
386
387
|
createdEvent?: EntityCreatedEvent;
|
|
387
388
|
updatedEvent?: EntityUpdatedEvent;
|
|
388
389
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -425,19 +426,19 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
425
426
|
entityEventSequence?: string | null;
|
|
426
427
|
}
|
|
427
428
|
/** @oneof */
|
|
428
|
-
interface DomainEventBodyOneOf {
|
|
429
|
+
export interface DomainEventBodyOneOf {
|
|
429
430
|
createdEvent?: EntityCreatedEvent;
|
|
430
431
|
updatedEvent?: EntityUpdatedEvent;
|
|
431
432
|
deletedEvent?: EntityDeletedEvent;
|
|
432
433
|
actionEvent?: ActionEvent;
|
|
433
434
|
}
|
|
434
|
-
interface EntityCreatedEvent {
|
|
435
|
+
export interface EntityCreatedEvent {
|
|
435
436
|
entity?: string;
|
|
436
437
|
}
|
|
437
|
-
interface RestoreInfo {
|
|
438
|
+
export interface RestoreInfo {
|
|
438
439
|
deletedDate?: Date | null;
|
|
439
440
|
}
|
|
440
|
-
interface EntityUpdatedEvent {
|
|
441
|
+
export interface EntityUpdatedEvent {
|
|
441
442
|
/**
|
|
442
443
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
443
444
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -445,16 +446,16 @@ interface EntityUpdatedEvent {
|
|
|
445
446
|
*/
|
|
446
447
|
currentEntity?: string;
|
|
447
448
|
}
|
|
448
|
-
interface EntityDeletedEvent {
|
|
449
|
+
export interface EntityDeletedEvent {
|
|
449
450
|
/** Entity that was deleted */
|
|
450
451
|
deletedEntity?: string | null;
|
|
451
452
|
}
|
|
452
|
-
interface ActionEvent {
|
|
453
|
+
export interface ActionEvent {
|
|
453
454
|
body?: string;
|
|
454
455
|
}
|
|
455
|
-
interface Empty {
|
|
456
|
+
export interface Empty {
|
|
456
457
|
}
|
|
457
|
-
interface MessageEnvelope {
|
|
458
|
+
export interface MessageEnvelope {
|
|
458
459
|
/**
|
|
459
460
|
* App instance ID.
|
|
460
461
|
* @format GUID
|
|
@@ -470,7 +471,7 @@ interface MessageEnvelope {
|
|
|
470
471
|
/** Stringify payload. */
|
|
471
472
|
data?: string;
|
|
472
473
|
}
|
|
473
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
474
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
474
475
|
/**
|
|
475
476
|
* ID of a site visitor that has not logged in to the site.
|
|
476
477
|
* @format GUID
|
|
@@ -495,7 +496,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
495
496
|
identityType?: WebhookIdentityType;
|
|
496
497
|
}
|
|
497
498
|
/** @oneof */
|
|
498
|
-
interface IdentificationDataIdOneOf {
|
|
499
|
+
export interface IdentificationDataIdOneOf {
|
|
499
500
|
/**
|
|
500
501
|
* ID of a site visitor that has not logged in to the site.
|
|
501
502
|
* @format GUID
|
|
@@ -517,14 +518,14 @@ interface IdentificationDataIdOneOf {
|
|
|
517
518
|
*/
|
|
518
519
|
appId?: string;
|
|
519
520
|
}
|
|
520
|
-
declare enum WebhookIdentityType {
|
|
521
|
+
export declare enum WebhookIdentityType {
|
|
521
522
|
UNKNOWN = "UNKNOWN",
|
|
522
523
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
523
524
|
MEMBER = "MEMBER",
|
|
524
525
|
WIX_USER = "WIX_USER",
|
|
525
526
|
APP = "APP"
|
|
526
527
|
}
|
|
527
|
-
interface BaseEventMetadata {
|
|
528
|
+
export interface BaseEventMetadata {
|
|
528
529
|
/**
|
|
529
530
|
* App instance ID.
|
|
530
531
|
* @format GUID
|
|
@@ -538,7 +539,7 @@ interface BaseEventMetadata {
|
|
|
538
539
|
/** The identification type and identity data. */
|
|
539
540
|
identity?: IdentificationData;
|
|
540
541
|
}
|
|
541
|
-
interface EventMetadata extends BaseEventMetadata {
|
|
542
|
+
export interface EventMetadata extends BaseEventMetadata {
|
|
542
543
|
/**
|
|
543
544
|
* Unique event ID.
|
|
544
545
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -576,23 +577,87 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
576
577
|
*/
|
|
577
578
|
entityEventSequence?: string | null;
|
|
578
579
|
}
|
|
579
|
-
interface ShippoConfigurationCreatedEnvelope {
|
|
580
|
+
export interface ShippoConfigurationCreatedEnvelope {
|
|
580
581
|
entity: ShippoConfiguration;
|
|
581
582
|
metadata: EventMetadata;
|
|
582
583
|
}
|
|
583
|
-
|
|
584
|
+
/** @webhook
|
|
585
|
+
* @eventType wix.ecom.v1.shippo_configuration_created
|
|
586
|
+
* @serviceIdentifier wix.ecom.delivery.v1.ShippoService
|
|
587
|
+
* @slug created
|
|
588
|
+
* @documentationMaturity preview
|
|
589
|
+
*/
|
|
590
|
+
export declare function onShippoConfigurationCreated(handler: (event: ShippoConfigurationCreatedEnvelope) => void | Promise<void>): void;
|
|
591
|
+
export interface ShippoConfigurationDeletedEnvelope {
|
|
584
592
|
entity: ShippoConfiguration;
|
|
585
593
|
metadata: EventMetadata;
|
|
586
594
|
}
|
|
587
|
-
|
|
595
|
+
/** @webhook
|
|
596
|
+
* @eventType wix.ecom.v1.shippo_configuration_deleted
|
|
597
|
+
* @serviceIdentifier wix.ecom.delivery.v1.ShippoService
|
|
598
|
+
* @slug deleted
|
|
599
|
+
* @documentationMaturity preview
|
|
600
|
+
*/
|
|
601
|
+
export declare function onShippoConfigurationDeleted(handler: (event: ShippoConfigurationDeletedEnvelope) => void | Promise<void>): void;
|
|
602
|
+
export interface ShippoConfigurationUpdatedEnvelope {
|
|
588
603
|
entity: ShippoConfiguration;
|
|
589
604
|
metadata: EventMetadata;
|
|
590
605
|
}
|
|
591
|
-
|
|
606
|
+
/** @webhook
|
|
607
|
+
* @eventType wix.ecom.v1.shippo_configuration_updated
|
|
608
|
+
* @serviceIdentifier wix.ecom.delivery.v1.ShippoService
|
|
609
|
+
* @slug updated
|
|
610
|
+
* @documentationMaturity preview
|
|
611
|
+
*/
|
|
612
|
+
export declare function onShippoConfigurationUpdated(handler: (event: ShippoConfigurationUpdatedEnvelope) => void | Promise<void>): void;
|
|
613
|
+
type ShippoConfigurationNonNullablePaths = `domesticServices` | `domesticServices.${number}.service` | `domesticServices.${number}.serviceSettings.handlingFee.value` | `domesticServices.${number}.serviceSettings.handlingFee.calculationType` | `internationalServices` | `internationalServices.${number}.service` | `internationalServices.${number}.serviceSettings.handlingFee.value` | `internationalServices.${number}.serviceSettings.handlingFee.calculationType` | `packageType` | `packageDetails.dimensions.length` | `packageDetails.dimensions.width` | `packageDetails.dimensions.height` | `shipFromAddress.streetAddress.number` | `shipFromAddress.streetAddress.name` | `deliveryRegionIds`;
|
|
614
|
+
/**
|
|
615
|
+
* Creates a ShippoConfiguration.
|
|
616
|
+
* @param shippoConfiguration - ShippoConfiguration to be created.
|
|
617
|
+
* @public
|
|
618
|
+
* @documentationMaturity preview
|
|
619
|
+
* @requiredField shippoConfiguration
|
|
620
|
+
* @requiredField shippoConfiguration.deliveryRegionId
|
|
621
|
+
* @requiredField shippoConfiguration.osLocationId
|
|
622
|
+
* @requiredField shippoConfiguration.packageDetails
|
|
623
|
+
* @requiredField shippoConfiguration.packageDetails.dimensions.height
|
|
624
|
+
* @requiredField shippoConfiguration.packageDetails.dimensions.length
|
|
625
|
+
* @requiredField shippoConfiguration.packageDetails.dimensions.width
|
|
626
|
+
* @requiredField shippoConfiguration.packageType
|
|
627
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_CREATE
|
|
628
|
+
* @returns The created ShippoConfiguration.
|
|
629
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.CreateShippoConfiguration
|
|
630
|
+
*/
|
|
631
|
+
export declare function createShippoConfiguration(shippoConfiguration: NonNullablePaths<ShippoConfiguration, `deliveryRegionId` | `osLocationId` | `packageDetails` | `packageDetails.dimensions.height` | `packageDetails.dimensions.length` | `packageDetails.dimensions.width` | `packageType`>, options?: CreateShippoConfigurationOptions): Promise<NonNullablePaths<ShippoConfiguration, ShippoConfigurationNonNullablePaths>>;
|
|
632
|
+
export interface CreateShippoConfigurationOptions {
|
|
592
633
|
/** @decimalValue options { gte:0, maxScale:6 } */
|
|
593
634
|
backupRate?: string | null;
|
|
594
635
|
}
|
|
595
|
-
|
|
636
|
+
/**
|
|
637
|
+
* Retrieves a ShippoConfiguration.
|
|
638
|
+
* @param shippoConfigurationId - ID of the ShippoConfiguration to retrieve.
|
|
639
|
+
* @public
|
|
640
|
+
* @documentationMaturity preview
|
|
641
|
+
* @requiredField shippoConfigurationId
|
|
642
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_READ
|
|
643
|
+
* @returns The requested ShippoConfiguration.
|
|
644
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.GetShippoConfiguration
|
|
645
|
+
*/
|
|
646
|
+
export declare function getShippoConfiguration(shippoConfigurationId: string): Promise<NonNullablePaths<ShippoConfiguration, ShippoConfigurationNonNullablePaths>>;
|
|
647
|
+
/**
|
|
648
|
+
* Updates a ShippoConfiguration.
|
|
649
|
+
* @param _id - ShippoConfiguration ID.
|
|
650
|
+
* @public
|
|
651
|
+
* @documentationMaturity preview
|
|
652
|
+
* @requiredField _id
|
|
653
|
+
* @requiredField shippoConfiguration
|
|
654
|
+
* @requiredField shippoConfiguration.revision
|
|
655
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_UPDATE
|
|
656
|
+
* @returns Updated ShippoConfiguration.
|
|
657
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.UpdateShippoConfiguration
|
|
658
|
+
*/
|
|
659
|
+
export declare function updateShippoConfiguration(_id: string, shippoConfiguration: NonNullablePaths<UpdateShippoConfiguration, `revision`>): Promise<NonNullablePaths<ShippoConfiguration, ShippoConfigurationNonNullablePaths>>;
|
|
660
|
+
export interface UpdateShippoConfiguration {
|
|
596
661
|
/**
|
|
597
662
|
* ShippoConfiguration ID.
|
|
598
663
|
* @format GUID
|
|
@@ -659,6 +724,31 @@ interface UpdateShippoConfiguration {
|
|
|
659
724
|
/** Data extensions. */
|
|
660
725
|
extendedFields?: ExtendedFields;
|
|
661
726
|
}
|
|
727
|
+
/**
|
|
728
|
+
* Deletes a ShippoConfiguration.
|
|
729
|
+
* @param shippoConfigurationId - ID of the ShippoConfiguration to delete.
|
|
730
|
+
* @public
|
|
731
|
+
* @documentationMaturity preview
|
|
732
|
+
* @requiredField shippoConfigurationId
|
|
733
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_DELETE
|
|
734
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.DeleteShippoConfiguration
|
|
735
|
+
*/
|
|
736
|
+
export declare function deleteShippoConfiguration(shippoConfigurationId: string): Promise<void>;
|
|
737
|
+
/**
|
|
738
|
+
* Retrieves a list of ShippoConfigurations, given the provided [paging, filtering, and sorting][1].
|
|
739
|
+
*
|
|
740
|
+
* Up to 1,000 ShippoConfigurations can be returned per request.
|
|
741
|
+
*
|
|
742
|
+
* To learn how to query ShippoConfigurations, see [API Query Language][2].
|
|
743
|
+
*
|
|
744
|
+
* [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
|
|
745
|
+
* [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
|
|
746
|
+
* @public
|
|
747
|
+
* @documentationMaturity preview
|
|
748
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_READ
|
|
749
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.QueryShippoConfigurations
|
|
750
|
+
*/
|
|
751
|
+
export declare function queryShippoConfigurations(): ShippoConfigurationsQueryBuilder;
|
|
662
752
|
interface QueryCursorResult {
|
|
663
753
|
cursors: Cursors;
|
|
664
754
|
hasNext: () => boolean;
|
|
@@ -666,13 +756,13 @@ interface QueryCursorResult {
|
|
|
666
756
|
length: number;
|
|
667
757
|
pageSize: number;
|
|
668
758
|
}
|
|
669
|
-
interface ShippoConfigurationsQueryResult extends QueryCursorResult {
|
|
759
|
+
export interface ShippoConfigurationsQueryResult extends QueryCursorResult {
|
|
670
760
|
items: ShippoConfiguration[];
|
|
671
761
|
query: ShippoConfigurationsQueryBuilder;
|
|
672
762
|
next: () => Promise<ShippoConfigurationsQueryResult>;
|
|
673
763
|
prev: () => Promise<ShippoConfigurationsQueryResult>;
|
|
674
764
|
}
|
|
675
|
-
interface ShippoConfigurationsQueryBuilder {
|
|
765
|
+
export interface ShippoConfigurationsQueryBuilder {
|
|
676
766
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
677
767
|
* @param value - Value to compare against.
|
|
678
768
|
* @documentationMaturity preview
|
|
@@ -716,9 +806,24 @@ interface ShippoConfigurationsQueryBuilder {
|
|
|
716
806
|
/** @documentationMaturity preview */
|
|
717
807
|
find: () => Promise<ShippoConfigurationsQueryResult>;
|
|
718
808
|
}
|
|
719
|
-
|
|
809
|
+
/**
|
|
810
|
+
* Updates extended fields of a ShippoConfiguration without incrementing revision
|
|
811
|
+
* @param _id - ID of the entity to update.
|
|
812
|
+
* @param namespace - Identifier for the app whose extended fields are being updated.
|
|
813
|
+
* @public
|
|
814
|
+
* @documentationMaturity preview
|
|
815
|
+
* @requiredField _id
|
|
816
|
+
* @requiredField namespace
|
|
817
|
+
* @requiredField options
|
|
818
|
+
* @requiredField options.namespaceData
|
|
819
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_UPDATE
|
|
820
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.UpdateExtendedFields
|
|
821
|
+
*/
|
|
822
|
+
export declare function updateExtendedFields(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, {
|
|
823
|
+
[P in ShippoConfigurationNonNullablePaths]: `shippoConfiguration.${P}`;
|
|
824
|
+
}[ShippoConfigurationNonNullablePaths]>>;
|
|
825
|
+
export interface UpdateExtendedFieldsOptions {
|
|
720
826
|
/** 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. */
|
|
721
827
|
namespaceData: Record<string, any> | null;
|
|
722
828
|
}
|
|
723
|
-
|
|
724
|
-
export { type ShippoConfigurationDeletedEnvelope as $, type Address as A, type UpdateExtendedFieldsRequest as B, type CreateShippoConfigurationOptions as C, DomesticService as D, type ExtendedFields as E, type DomainEvent as F, type GetShippoConfigurationRequest as G, type HandlingFee as H, InternationalService as I, type DomainEventBodyOneOf as J, type EntityCreatedEvent as K, type EntityUpdatedEvent as L, type EntityDeletedEvent as M, type ActionEvent as N, type Empty as O, PackageType as P, type QueryShippoConfigurationsRequest as Q, type RestoreInfo as R, type ShippoConfiguration as S, type MessageEnvelope as T, type UpdateShippoConfiguration as U, type IdentificationData as V, WebhookIdentityType as W, type IdentificationDataIdOneOf as X, type BaseEventMetadata as Y, type EventMetadata as Z, type ShippoConfigurationCreatedEnvelope as _, type ShippoConfigurationsQueryBuilder as a, type ShippoConfigurationUpdatedEnvelope as a0, type ShippoConfigurationsQueryResult as a1, type UpdateExtendedFieldsOptions as b, type UpdateExtendedFieldsResponse as c, CalculationType as d, SortOrder as e, type DomesticServiceSettings as f, type ServiceSettings as g, type InternationalServiceSettings as h, type PackageDetails as i, type PackageDimensions as j, type StreetAddress as k, type AddressLocation as l, type CreateShippoConfigurationRequest as m, type CreateShippoConfigurationResponse as n, type GetShippoConfigurationResponse as o, type UpdateShippoConfigurationRequest as p, type UpdateShippoConfigurationResponse as q, type DeleteShippoConfigurationRequest as r, type DeleteShippoConfigurationResponse as s, type CursorQuery as t, type CursorQueryPagingMethodOneOf as u, type Sorting as v, type CursorPaging as w, type QueryShippoConfigurationsResponse as x, type CursorPagingMetadata as y, type Cursors as z };
|
|
829
|
+
export {};
|