@wix/auto_sdk_ecom_shippo-configurations 1.0.19 → 1.0.21
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/{internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts → ecom-v1-shippo-configuration-shippo-configurations.universal-D-nyXVmj.d.mts} +71 -240
- package/build/{internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts → ecom-v1-shippo-configuration-shippo-configurations.universal-D-nyXVmj.d.ts} +71 -240
- package/build/index.d.mts +105 -0
- package/build/index.d.ts +105 -0
- package/build/index.js +901 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +861 -0
- package/build/index.mjs.map +1 -0
- package/build/{cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts → internal/ecom-v1-shippo-configuration-shippo-configurations.universal-D-nyXVmj.d.mts} +71 -240
- package/build/{es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts → internal/ecom-v1-shippo-configuration-shippo-configurations.universal-D-nyXVmj.d.ts} +71 -240
- package/build/internal/index.d.mts +105 -0
- package/build/internal/index.d.ts +105 -0
- package/build/internal/index.js +901 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +861 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/{es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts → meta.d.mts} +78 -186
- package/build/{es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts → internal/meta.d.ts} +78 -186
- package/build/internal/meta.js +531 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +497 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts → meta.d.mts} +78 -186
- package/build/{internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts → meta.d.ts} +78 -186
- package/build/meta.js +531 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +497 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +0 -28
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +0 -37
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +0 -29
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +0 -363
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +0 -33
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +0 -188
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +0 -84
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +0 -108
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +0 -48
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +0 -478
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +0 -28
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +0 -28
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +0 -1
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +0 -29
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +0 -352
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +0 -1
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +0 -33
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +0 -154
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +0 -1
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +0 -84
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +0 -91
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +0 -1
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +0 -45
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +0 -1
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +0 -444
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +0 -28
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +0 -37
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +0 -29
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +0 -363
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +0 -33
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +0 -188
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +0 -84
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +0 -108
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +0 -48
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +0 -478
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +0 -28
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +0 -28
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +0 -1
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +0 -29
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +0 -352
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +0 -1
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +0 -33
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +0 -154
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +0 -84
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +0 -91
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +0 -1
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +0 -45
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +0 -1
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +0 -444
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +0 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { t as CreateShippoConfigurationRequest$1, u as CreateShippoConfigurationResponse$1, G as GetShippoConfigurationRequest$1, v as GetShippoConfigurationResponse$1, w as UpdateShippoConfigurationRequest$1, x as UpdateShippoConfigurationResponse$1, y as DeleteShippoConfigurationRequest$1, z as DeleteShippoConfigurationResponse$1, Q as QueryShippoConfigurationsRequest$1, L as QueryShippoConfigurationsResponse$1, O as UpdateExtendedFieldsRequest$1, c as UpdateExtendedFieldsResponse$1, a1 as AddDeliveryRegionRequest$1, d as AddDeliveryRegionResponse$1, a2 as RemoveDeliveryRegionRequest$1, f as RemoveDeliveryRegionResponse$1 } from './ecom-v1-shippo-configuration-shippo-configurations.universal-D-nyXVmj.mjs';
|
|
2
|
+
|
|
3
|
+
interface ShippoConfiguration {
|
|
2
4
|
/**
|
|
3
5
|
* ShippoConfiguration ID.
|
|
4
6
|
* @format GUID
|
|
@@ -65,7 +67,7 @@ export interface ShippoConfiguration {
|
|
|
65
67
|
/** Data extensions. */
|
|
66
68
|
extendedFields?: ExtendedFields;
|
|
67
69
|
}
|
|
68
|
-
|
|
70
|
+
interface DomesticServiceSettings {
|
|
69
71
|
/**
|
|
70
72
|
* DomesticServiceSettings ID.
|
|
71
73
|
* @format GUID
|
|
@@ -77,15 +79,15 @@ export interface DomesticServiceSettings {
|
|
|
77
79
|
/** Service settings. */
|
|
78
80
|
serviceSettings?: ServiceSettings;
|
|
79
81
|
}
|
|
80
|
-
|
|
82
|
+
declare enum DomesticService {
|
|
81
83
|
UNKNOWN_DOMESTIC_SERVICE = "UNKNOWN_DOMESTIC_SERVICE",
|
|
82
84
|
GROUND_ADVANTAGE = "GROUND_ADVANTAGE",
|
|
83
85
|
PRIORITY_MAIL = "PRIORITY_MAIL",
|
|
84
86
|
PRIORITY_MAIL_EXPRESS = "PRIORITY_MAIL_EXPRESS"
|
|
85
87
|
}
|
|
86
88
|
/** @enumType */
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
type DomesticServiceWithLiterals = DomesticService | 'UNKNOWN_DOMESTIC_SERVICE' | 'GROUND_ADVANTAGE' | 'PRIORITY_MAIL' | 'PRIORITY_MAIL_EXPRESS';
|
|
90
|
+
interface ServiceSettings {
|
|
89
91
|
/**
|
|
90
92
|
* Estimated delivery time.
|
|
91
93
|
* @maxLength 500
|
|
@@ -99,7 +101,7 @@ export interface ServiceSettings {
|
|
|
99
101
|
*/
|
|
100
102
|
freeDeliveryMinimumAmount?: string | null;
|
|
101
103
|
}
|
|
102
|
-
|
|
104
|
+
interface HandlingFee {
|
|
103
105
|
/**
|
|
104
106
|
* Value that will be used to calculate the fee. For example, percentage fee with value 5% to calculate the fee.
|
|
105
107
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
@@ -108,14 +110,14 @@ export interface HandlingFee {
|
|
|
108
110
|
/** How to calculate the fee: fixed amount or by percentage. */
|
|
109
111
|
calculationType?: CalculationTypeWithLiterals;
|
|
110
112
|
}
|
|
111
|
-
|
|
113
|
+
declare enum CalculationType {
|
|
112
114
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
113
115
|
FIXED = "FIXED",
|
|
114
116
|
PERCENTAGE = "PERCENTAGE"
|
|
115
117
|
}
|
|
116
118
|
/** @enumType */
|
|
117
|
-
|
|
118
|
-
|
|
119
|
+
type CalculationTypeWithLiterals = CalculationType | 'UNKNOWN_TYPE' | 'FIXED' | 'PERCENTAGE';
|
|
120
|
+
interface InternationalServiceSettings {
|
|
119
121
|
/**
|
|
120
122
|
* InternationalServiceSettings ID.
|
|
121
123
|
* @format GUID
|
|
@@ -127,15 +129,15 @@ export interface InternationalServiceSettings {
|
|
|
127
129
|
/** Service settings. */
|
|
128
130
|
serviceSettings?: ServiceSettings;
|
|
129
131
|
}
|
|
130
|
-
|
|
132
|
+
declare enum InternationalService {
|
|
131
133
|
UNKNOWN_INTERNATIONAL_SERVICE = "UNKNOWN_INTERNATIONAL_SERVICE",
|
|
132
134
|
FIRST_CLASS_PACKAGE_INTERNATIONAL = "FIRST_CLASS_PACKAGE_INTERNATIONAL",
|
|
133
135
|
PRIORITY_MAIL_INTERNATIONAL = "PRIORITY_MAIL_INTERNATIONAL",
|
|
134
136
|
PRIORITY_MAIL_EXPRESS_INTERNATIONAL = "PRIORITY_MAIL_EXPRESS_INTERNATIONAL"
|
|
135
137
|
}
|
|
136
138
|
/** @enumType */
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
type InternationalServiceWithLiterals = InternationalService | 'UNKNOWN_INTERNATIONAL_SERVICE' | 'FIRST_CLASS_PACKAGE_INTERNATIONAL' | 'PRIORITY_MAIL_INTERNATIONAL' | 'PRIORITY_MAIL_EXPRESS_INTERNATIONAL';
|
|
140
|
+
declare enum PackageType {
|
|
139
141
|
UNKNOWN_PACKAGE_TYPE = "UNKNOWN_PACKAGE_TYPE",
|
|
140
142
|
CUSTOM = "CUSTOM",
|
|
141
143
|
FLAT_RATE_ENVELOPE = "FLAT_RATE_ENVELOPE",
|
|
@@ -146,8 +148,8 @@ export declare enum PackageType {
|
|
|
146
148
|
LARGE_FLAT_RATE_BOX = "LARGE_FLAT_RATE_BOX"
|
|
147
149
|
}
|
|
148
150
|
/** @enumType */
|
|
149
|
-
|
|
150
|
-
|
|
151
|
+
type PackageTypeWithLiterals = PackageType | 'UNKNOWN_PACKAGE_TYPE' | 'CUSTOM' | 'FLAT_RATE_ENVELOPE' | 'PADDED_FLAT_RATE_ENVELOPE' | 'SMALL_FLAT_RATE_BOX' | 'MEDIUM_FLAT_RATE_BOX_1' | 'MEDIUM_FLAT_RATE_BOX_2' | 'LARGE_FLAT_RATE_BOX';
|
|
152
|
+
interface PackageDetails {
|
|
151
153
|
/**
|
|
152
154
|
* Package name. Must be set when package type is CUSTOM.
|
|
153
155
|
* For other package types, it is read-only, and an exception will be thrown
|
|
@@ -168,7 +170,7 @@ export interface PackageDetails {
|
|
|
168
170
|
*/
|
|
169
171
|
maxNumberOfProducts?: string | null;
|
|
170
172
|
}
|
|
171
|
-
|
|
173
|
+
interface PackageDimensions {
|
|
172
174
|
/**
|
|
173
175
|
* Package length.
|
|
174
176
|
* @decimalValue options { gte:0, maxScale:3 }
|
|
@@ -186,7 +188,7 @@ export interface PackageDimensions {
|
|
|
186
188
|
height?: string;
|
|
187
189
|
}
|
|
188
190
|
/** Physical address */
|
|
189
|
-
|
|
191
|
+
interface Address {
|
|
190
192
|
/**
|
|
191
193
|
* Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
192
194
|
* @format COUNTRY
|
|
@@ -230,19 +232,13 @@ export interface Address {
|
|
|
230
232
|
*/
|
|
231
233
|
subdivisionFullname?: string | null;
|
|
232
234
|
}
|
|
233
|
-
|
|
235
|
+
interface StreetAddress {
|
|
234
236
|
/** Street number. */
|
|
235
237
|
number?: string;
|
|
236
238
|
/** Street name. */
|
|
237
239
|
name?: string;
|
|
238
240
|
}
|
|
239
|
-
|
|
240
|
-
/** Address latitude. */
|
|
241
|
-
latitude?: number | null;
|
|
242
|
-
/** Address longitude. */
|
|
243
|
-
longitude?: number | null;
|
|
244
|
-
}
|
|
245
|
-
export interface ExtendedFields {
|
|
241
|
+
interface ExtendedFields {
|
|
246
242
|
/**
|
|
247
243
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
248
244
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -253,49 +249,49 @@ export interface ExtendedFields {
|
|
|
253
249
|
*/
|
|
254
250
|
namespaces?: Record<string, Record<string, any>>;
|
|
255
251
|
}
|
|
256
|
-
|
|
252
|
+
interface CreateShippoConfigurationRequest {
|
|
257
253
|
/** ShippoConfiguration to be created. */
|
|
258
254
|
shippoConfiguration: ShippoConfiguration;
|
|
259
255
|
/** @decimalValue options { gte:0, maxScale:6 } */
|
|
260
256
|
backupRate?: string | null;
|
|
261
257
|
}
|
|
262
|
-
|
|
258
|
+
interface CreateShippoConfigurationResponse {
|
|
263
259
|
/** The created ShippoConfiguration. */
|
|
264
260
|
shippoConfiguration?: ShippoConfiguration;
|
|
265
261
|
}
|
|
266
|
-
|
|
262
|
+
interface GetShippoConfigurationRequest {
|
|
267
263
|
/**
|
|
268
264
|
* ID of the ShippoConfiguration to retrieve.
|
|
269
265
|
* @format GUID
|
|
270
266
|
*/
|
|
271
267
|
shippoConfigurationId: string;
|
|
272
268
|
}
|
|
273
|
-
|
|
269
|
+
interface GetShippoConfigurationResponse {
|
|
274
270
|
/** The requested ShippoConfiguration. */
|
|
275
271
|
shippoConfiguration?: ShippoConfiguration;
|
|
276
272
|
}
|
|
277
|
-
|
|
273
|
+
interface UpdateShippoConfigurationRequest {
|
|
278
274
|
/** ShippoConfiguration to be updated, may be partial. */
|
|
279
275
|
shippoConfiguration: ShippoConfiguration;
|
|
280
276
|
}
|
|
281
|
-
|
|
277
|
+
interface UpdateShippoConfigurationResponse {
|
|
282
278
|
/** Updated ShippoConfiguration. */
|
|
283
279
|
shippoConfiguration?: ShippoConfiguration;
|
|
284
280
|
}
|
|
285
|
-
|
|
281
|
+
interface DeleteShippoConfigurationRequest {
|
|
286
282
|
/**
|
|
287
283
|
* ID of the ShippoConfiguration to delete.
|
|
288
284
|
* @format GUID
|
|
289
285
|
*/
|
|
290
286
|
shippoConfigurationId: string;
|
|
291
287
|
}
|
|
292
|
-
|
|
288
|
+
interface DeleteShippoConfigurationResponse {
|
|
293
289
|
}
|
|
294
|
-
|
|
290
|
+
interface QueryShippoConfigurationsRequest {
|
|
295
291
|
/** WQL expression. */
|
|
296
292
|
query?: CursorQuery;
|
|
297
293
|
}
|
|
298
|
-
|
|
294
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
299
295
|
/** 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`. */
|
|
300
296
|
cursorPaging?: CursorPaging;
|
|
301
297
|
/**
|
|
@@ -315,11 +311,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
315
311
|
sort?: Sorting[];
|
|
316
312
|
}
|
|
317
313
|
/** @oneof */
|
|
318
|
-
|
|
314
|
+
interface CursorQueryPagingMethodOneOf {
|
|
319
315
|
/** 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`. */
|
|
320
316
|
cursorPaging?: CursorPaging;
|
|
321
317
|
}
|
|
322
|
-
|
|
318
|
+
interface Sorting {
|
|
323
319
|
/**
|
|
324
320
|
* Name of the field to sort by.
|
|
325
321
|
* @maxLength 512
|
|
@@ -328,13 +324,13 @@ export interface Sorting {
|
|
|
328
324
|
/** Sort order. */
|
|
329
325
|
order?: SortOrderWithLiterals;
|
|
330
326
|
}
|
|
331
|
-
|
|
327
|
+
declare enum SortOrder {
|
|
332
328
|
ASC = "ASC",
|
|
333
329
|
DESC = "DESC"
|
|
334
330
|
}
|
|
335
331
|
/** @enumType */
|
|
336
|
-
|
|
337
|
-
|
|
332
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
333
|
+
interface CursorPaging {
|
|
338
334
|
/**
|
|
339
335
|
* Maximum number of items to return in the results.
|
|
340
336
|
* @max 100
|
|
@@ -349,13 +345,13 @@ export interface CursorPaging {
|
|
|
349
345
|
*/
|
|
350
346
|
cursor?: string | null;
|
|
351
347
|
}
|
|
352
|
-
|
|
348
|
+
interface QueryShippoConfigurationsResponse {
|
|
353
349
|
/** List of ShippoConfigurations. */
|
|
354
350
|
shippoConfigurations?: ShippoConfiguration[];
|
|
355
351
|
/** Paging metadata. */
|
|
356
352
|
pagingMetadata?: CursorPagingMetadata;
|
|
357
353
|
}
|
|
358
|
-
|
|
354
|
+
interface CursorPagingMetadata {
|
|
359
355
|
/** Number of items returned in the response. */
|
|
360
356
|
count?: number | null;
|
|
361
357
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -368,7 +364,7 @@ export interface CursorPagingMetadata {
|
|
|
368
364
|
*/
|
|
369
365
|
hasNext?: boolean | null;
|
|
370
366
|
}
|
|
371
|
-
|
|
367
|
+
interface Cursors {
|
|
372
368
|
/**
|
|
373
369
|
* Cursor string pointing to the next page in the list of results.
|
|
374
370
|
* @maxLength 16000
|
|
@@ -380,7 +376,7 @@ export interface Cursors {
|
|
|
380
376
|
*/
|
|
381
377
|
prev?: string | null;
|
|
382
378
|
}
|
|
383
|
-
|
|
379
|
+
interface UpdateExtendedFieldsRequest {
|
|
384
380
|
/** ID of the entity to update. */
|
|
385
381
|
id: string;
|
|
386
382
|
/** Identifier for the app whose extended fields are being updated. */
|
|
@@ -388,77 +384,11 @@ export interface UpdateExtendedFieldsRequest {
|
|
|
388
384
|
/** 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. */
|
|
389
385
|
namespaceData: Record<string, any> | null;
|
|
390
386
|
}
|
|
391
|
-
|
|
387
|
+
interface UpdateExtendedFieldsResponse {
|
|
392
388
|
/** Updated ShippoConfiguration. */
|
|
393
389
|
shippoConfiguration?: ShippoConfiguration;
|
|
394
390
|
}
|
|
395
|
-
|
|
396
|
-
createdEvent?: EntityCreatedEvent;
|
|
397
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
398
|
-
deletedEvent?: EntityDeletedEvent;
|
|
399
|
-
actionEvent?: ActionEvent;
|
|
400
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
401
|
-
id?: string;
|
|
402
|
-
/**
|
|
403
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
404
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
405
|
-
*/
|
|
406
|
-
entityFqdn?: string;
|
|
407
|
-
/**
|
|
408
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
409
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
410
|
-
*/
|
|
411
|
-
slug?: string;
|
|
412
|
-
/** ID of the entity associated with the event. */
|
|
413
|
-
entityId?: string;
|
|
414
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
415
|
-
eventTime?: Date | null;
|
|
416
|
-
/**
|
|
417
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
418
|
-
* (for example, GDPR).
|
|
419
|
-
*/
|
|
420
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
421
|
-
/** If present, indicates the action that triggered the event. */
|
|
422
|
-
originatedFrom?: string | null;
|
|
423
|
-
/**
|
|
424
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
425
|
-
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
426
|
-
*/
|
|
427
|
-
entityEventSequence?: string | null;
|
|
428
|
-
}
|
|
429
|
-
/** @oneof */
|
|
430
|
-
export interface DomainEventBodyOneOf {
|
|
431
|
-
createdEvent?: EntityCreatedEvent;
|
|
432
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
433
|
-
deletedEvent?: EntityDeletedEvent;
|
|
434
|
-
actionEvent?: ActionEvent;
|
|
435
|
-
}
|
|
436
|
-
export interface EntityCreatedEvent {
|
|
437
|
-
entityAsJson?: string;
|
|
438
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
439
|
-
restoreInfo?: RestoreInfo;
|
|
440
|
-
}
|
|
441
|
-
export interface RestoreInfo {
|
|
442
|
-
deletedDate?: Date | null;
|
|
443
|
-
}
|
|
444
|
-
export interface EntityUpdatedEvent {
|
|
445
|
-
/**
|
|
446
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
447
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
448
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
449
|
-
*/
|
|
450
|
-
currentEntityAsJson?: string;
|
|
451
|
-
}
|
|
452
|
-
export interface EntityDeletedEvent {
|
|
453
|
-
/** Entity that was deleted. */
|
|
454
|
-
deletedEntityAsJson?: string | null;
|
|
455
|
-
}
|
|
456
|
-
export interface ActionEvent {
|
|
457
|
-
bodyAsJson?: string;
|
|
458
|
-
}
|
|
459
|
-
export interface Empty {
|
|
460
|
-
}
|
|
461
|
-
export interface AddDeliveryRegionRequest {
|
|
391
|
+
interface AddDeliveryRegionRequest {
|
|
462
392
|
/**
|
|
463
393
|
* ID of the ShippoConfiguration to add the delivery region to.
|
|
464
394
|
* @format GUID
|
|
@@ -472,11 +402,11 @@ export interface AddDeliveryRegionRequest {
|
|
|
472
402
|
/** Revision of the ShippoConfiguration. */
|
|
473
403
|
revision?: string | null;
|
|
474
404
|
}
|
|
475
|
-
|
|
405
|
+
interface AddDeliveryRegionResponse {
|
|
476
406
|
/** The updated ShippoConfiguration. */
|
|
477
407
|
shippoConfiguration?: ShippoConfiguration;
|
|
478
408
|
}
|
|
479
|
-
|
|
409
|
+
interface RemoveDeliveryRegionRequest {
|
|
480
410
|
/**
|
|
481
411
|
* ID of the ShippoConfiguration to remove the delivery region from.
|
|
482
412
|
* @format GUID
|
|
@@ -490,79 +420,41 @@ export interface RemoveDeliveryRegionRequest {
|
|
|
490
420
|
/** Revision of the ShippoConfiguration. */
|
|
491
421
|
revision?: string | null;
|
|
492
422
|
}
|
|
493
|
-
|
|
423
|
+
interface RemoveDeliveryRegionResponse {
|
|
494
424
|
/** The updated ShippoConfiguration, or empty if the ShippoConfiguration was deleted. */
|
|
495
425
|
shippoConfiguration?: ShippoConfiguration;
|
|
496
426
|
}
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
* @format GUID
|
|
532
|
-
*/
|
|
533
|
-
appId?: string;
|
|
534
|
-
/** @readonly */
|
|
535
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
536
|
-
}
|
|
537
|
-
/** @oneof */
|
|
538
|
-
export interface IdentificationDataIdOneOf {
|
|
539
|
-
/**
|
|
540
|
-
* ID of a site visitor that has not logged in to the site.
|
|
541
|
-
* @format GUID
|
|
542
|
-
*/
|
|
543
|
-
anonymousVisitorId?: string;
|
|
544
|
-
/**
|
|
545
|
-
* ID of a site visitor that has logged in to the site.
|
|
546
|
-
* @format GUID
|
|
547
|
-
*/
|
|
548
|
-
memberId?: string;
|
|
549
|
-
/**
|
|
550
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
551
|
-
* @format GUID
|
|
552
|
-
*/
|
|
553
|
-
wixUserId?: string;
|
|
554
|
-
/**
|
|
555
|
-
* ID of an app.
|
|
556
|
-
* @format GUID
|
|
557
|
-
*/
|
|
558
|
-
appId?: string;
|
|
559
|
-
}
|
|
560
|
-
export declare enum WebhookIdentityType {
|
|
561
|
-
UNKNOWN = "UNKNOWN",
|
|
562
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
563
|
-
MEMBER = "MEMBER",
|
|
564
|
-
WIX_USER = "WIX_USER",
|
|
565
|
-
APP = "APP"
|
|
566
|
-
}
|
|
567
|
-
/** @enumType */
|
|
568
|
-
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
427
|
+
|
|
428
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
429
|
+
getUrl: (context: any) => string;
|
|
430
|
+
httpMethod: K;
|
|
431
|
+
path: string;
|
|
432
|
+
pathParams: M;
|
|
433
|
+
__requestType: T;
|
|
434
|
+
__originalRequestType: S;
|
|
435
|
+
__responseType: Q;
|
|
436
|
+
__originalResponseType: R;
|
|
437
|
+
};
|
|
438
|
+
declare function createShippoConfiguration(): __PublicMethodMetaInfo<'POST', {}, CreateShippoConfigurationRequest$1, CreateShippoConfigurationRequest, CreateShippoConfigurationResponse$1, CreateShippoConfigurationResponse>;
|
|
439
|
+
declare function getShippoConfiguration(): __PublicMethodMetaInfo<'GET', {
|
|
440
|
+
shippoConfigurationId: string;
|
|
441
|
+
}, GetShippoConfigurationRequest$1, GetShippoConfigurationRequest, GetShippoConfigurationResponse$1, GetShippoConfigurationResponse>;
|
|
442
|
+
declare function updateShippoConfiguration(): __PublicMethodMetaInfo<'PATCH', {
|
|
443
|
+
shippoConfigurationId: string;
|
|
444
|
+
}, UpdateShippoConfigurationRequest$1, UpdateShippoConfigurationRequest, UpdateShippoConfigurationResponse$1, UpdateShippoConfigurationResponse>;
|
|
445
|
+
declare function deleteShippoConfiguration(): __PublicMethodMetaInfo<'DELETE', {
|
|
446
|
+
shippoConfigurationId: string;
|
|
447
|
+
}, DeleteShippoConfigurationRequest$1, DeleteShippoConfigurationRequest, DeleteShippoConfigurationResponse$1, DeleteShippoConfigurationResponse>;
|
|
448
|
+
declare function queryShippoConfigurations(): __PublicMethodMetaInfo<'GET', {}, QueryShippoConfigurationsRequest$1, QueryShippoConfigurationsRequest, QueryShippoConfigurationsResponse$1, QueryShippoConfigurationsResponse>;
|
|
449
|
+
declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
|
|
450
|
+
id: string;
|
|
451
|
+
}, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse$1, UpdateExtendedFieldsResponse>;
|
|
452
|
+
declare function addDeliveryRegion(): __PublicMethodMetaInfo<'POST', {
|
|
453
|
+
shippoConfigurationId: string;
|
|
454
|
+
}, AddDeliveryRegionRequest$1, AddDeliveryRegionRequest, AddDeliveryRegionResponse$1, AddDeliveryRegionResponse>;
|
|
455
|
+
declare function removeDeliveryRegion(): __PublicMethodMetaInfo<'DELETE', {
|
|
456
|
+
shippoConfigurationId: string;
|
|
457
|
+
deliveryRegionId: string;
|
|
458
|
+
}, RemoveDeliveryRegionRequest$1, RemoveDeliveryRegionRequest, RemoveDeliveryRegionResponse$1, RemoveDeliveryRegionResponse>;
|
|
459
|
+
|
|
460
|
+
export { type __PublicMethodMetaInfo, addDeliveryRegion, createShippoConfiguration, deleteShippoConfiguration, getShippoConfiguration, queryShippoConfigurations, removeDeliveryRegion, updateExtendedFields, updateShippoConfiguration };
|