@wix/auto_sdk_ecom_shippo-configurations 1.0.6 → 1.0.7
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-DG33s-Yd.d.mts} +58 -163
- package/build/{cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts → ecom-v1-shippo-configuration-shippo-configurations.universal-DG33s-Yd.d.ts} +58 -163
- package/build/index.d.mts +78 -0
- package/build/index.d.ts +78 -0
- package/build/index.js +734 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +696 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts → internal/ecom-v1-shippo-configuration-shippo-configurations.universal-DG33s-Yd.d.mts} +58 -163
- package/build/internal/{es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts → ecom-v1-shippo-configuration-shippo-configurations.universal-DG33s-Yd.d.ts} +58 -163
- package/build/internal/index.d.mts +78 -0
- package/build/internal/index.d.ts +78 -0
- package/build/internal/index.js +734 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +696 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts → internal/meta.d.mts} +62 -183
- package/build/internal/{cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts → meta.d.ts} +62 -183
- package/build/internal/meta.js +417 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +385 -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} +62 -183
- package/build/{internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts → meta.d.ts} +62 -183
- package/build/meta.js +417 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +385 -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 -20
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +0 -29
- 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 -22
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +0 -288
- 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 -26
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +0 -144
- 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 -67
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +0 -96
- 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 -362
- 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 -20
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +0 -20
- 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 -22
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +0 -279
- 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 -26
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +0 -112
- 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 -67
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +0 -81
- 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 -330
- 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 -20
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +0 -29
- 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 -22
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +0 -288
- 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 -26
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +0 -144
- 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 -67
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +0 -96
- 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 -362
- 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 -20
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +0 -20
- 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 -22
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +0 -279
- 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 -26
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +0 -112
- 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 -67
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +0 -81
- 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 -330
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +0 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { m as CreateShippoConfigurationRequest$1, n as CreateShippoConfigurationResponse$1, G as GetShippoConfigurationRequest$1, o as GetShippoConfigurationResponse$1, p as UpdateShippoConfigurationRequest$1, q as UpdateShippoConfigurationResponse$1, r as DeleteShippoConfigurationRequest$1, s as DeleteShippoConfigurationResponse$1, Q as QueryShippoConfigurationsRequest$1, x as QueryShippoConfigurationsResponse$1, B as UpdateExtendedFieldsRequest$1, c as UpdateExtendedFieldsResponse$1 } from './ecom-v1-shippo-configuration-shippo-configurations.universal-DG33s-Yd.js';
|
|
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,13 +79,13 @@ 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
|
+
interface ServiceSettings {
|
|
87
89
|
/**
|
|
88
90
|
* Estimated delivery time.
|
|
89
91
|
* @maxLength 500
|
|
@@ -97,7 +99,7 @@ export interface ServiceSettings {
|
|
|
97
99
|
*/
|
|
98
100
|
freeDeliveryMinimumAmount?: string | null;
|
|
99
101
|
}
|
|
100
|
-
|
|
102
|
+
interface HandlingFee {
|
|
101
103
|
/**
|
|
102
104
|
* Value that will be used to calculate the fee. For example, percentage fee with value 5% to calculate the fee.
|
|
103
105
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
@@ -106,12 +108,12 @@ export interface HandlingFee {
|
|
|
106
108
|
/** How to calculate the fee: fixed amount or by percentage. */
|
|
107
109
|
calculationType?: CalculationType;
|
|
108
110
|
}
|
|
109
|
-
|
|
111
|
+
declare enum CalculationType {
|
|
110
112
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
111
113
|
FIXED = "FIXED",
|
|
112
114
|
PERCENTAGE = "PERCENTAGE"
|
|
113
115
|
}
|
|
114
|
-
|
|
116
|
+
interface InternationalServiceSettings {
|
|
115
117
|
/**
|
|
116
118
|
* InternationalServiceSettings ID.
|
|
117
119
|
* @format GUID
|
|
@@ -123,13 +125,13 @@ export interface InternationalServiceSettings {
|
|
|
123
125
|
/** Service settings. */
|
|
124
126
|
serviceSettings?: ServiceSettings;
|
|
125
127
|
}
|
|
126
|
-
|
|
128
|
+
declare enum InternationalService {
|
|
127
129
|
UNKNOWN_INTERNATIONAL_SERVICE = "UNKNOWN_INTERNATIONAL_SERVICE",
|
|
128
130
|
FIRST_CLASS_PACKAGE_INTERNATIONAL = "FIRST_CLASS_PACKAGE_INTERNATIONAL",
|
|
129
131
|
PRIORITY_MAIL_INTERNATIONAL = "PRIORITY_MAIL_INTERNATIONAL",
|
|
130
132
|
PRIORITY_MAIL_EXPRESS_INTERNATIONAL = "PRIORITY_MAIL_EXPRESS_INTERNATIONAL"
|
|
131
133
|
}
|
|
132
|
-
|
|
134
|
+
declare enum PackageType {
|
|
133
135
|
UNKNOWN_PACKAGE_TYPE = "UNKNOWN_PACKAGE_TYPE",
|
|
134
136
|
CUSTOM = "CUSTOM",
|
|
135
137
|
FLAT_RATE_ENVELOPE = "FLAT_RATE_ENVELOPE",
|
|
@@ -139,7 +141,7 @@ export declare enum PackageType {
|
|
|
139
141
|
MEDIUM_FLAT_RATE_BOX_2 = "MEDIUM_FLAT_RATE_BOX_2",
|
|
140
142
|
LARGE_FLAT_RATE_BOX = "LARGE_FLAT_RATE_BOX"
|
|
141
143
|
}
|
|
142
|
-
|
|
144
|
+
interface PackageDetails {
|
|
143
145
|
/**
|
|
144
146
|
* Package name. Must be set when package type is CUSTOM.
|
|
145
147
|
* For other package types, it is read-only, and an exception will be thrown
|
|
@@ -160,7 +162,7 @@ export interface PackageDetails {
|
|
|
160
162
|
*/
|
|
161
163
|
maxNumberOfProducts?: string | null;
|
|
162
164
|
}
|
|
163
|
-
|
|
165
|
+
interface PackageDimensions {
|
|
164
166
|
/**
|
|
165
167
|
* Package length.
|
|
166
168
|
* @decimalValue options { gte:0, maxScale:3 }
|
|
@@ -178,7 +180,7 @@ export interface PackageDimensions {
|
|
|
178
180
|
height?: string;
|
|
179
181
|
}
|
|
180
182
|
/** Physical address */
|
|
181
|
-
|
|
183
|
+
interface Address {
|
|
182
184
|
/**
|
|
183
185
|
* Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
184
186
|
* @format COUNTRY
|
|
@@ -222,19 +224,13 @@ export interface Address {
|
|
|
222
224
|
*/
|
|
223
225
|
subdivisionFullname?: string | null;
|
|
224
226
|
}
|
|
225
|
-
|
|
227
|
+
interface StreetAddress {
|
|
226
228
|
/** Street number. */
|
|
227
229
|
number?: string;
|
|
228
230
|
/** Street name. */
|
|
229
231
|
name?: string;
|
|
230
232
|
}
|
|
231
|
-
|
|
232
|
-
/** Address latitude. */
|
|
233
|
-
latitude?: number | null;
|
|
234
|
-
/** Address longitude. */
|
|
235
|
-
longitude?: number | null;
|
|
236
|
-
}
|
|
237
|
-
export interface ExtendedFields {
|
|
233
|
+
interface ExtendedFields {
|
|
238
234
|
/**
|
|
239
235
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
240
236
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -245,49 +241,49 @@ export interface ExtendedFields {
|
|
|
245
241
|
*/
|
|
246
242
|
namespaces?: Record<string, Record<string, any>>;
|
|
247
243
|
}
|
|
248
|
-
|
|
244
|
+
interface CreateShippoConfigurationRequest {
|
|
249
245
|
/** ShippoConfiguration to be created. */
|
|
250
246
|
shippoConfiguration: ShippoConfiguration;
|
|
251
247
|
/** @decimalValue options { gte:0, maxScale:6 } */
|
|
252
248
|
backupRate?: string | null;
|
|
253
249
|
}
|
|
254
|
-
|
|
250
|
+
interface CreateShippoConfigurationResponse {
|
|
255
251
|
/** The created ShippoConfiguration. */
|
|
256
252
|
shippoConfiguration?: ShippoConfiguration;
|
|
257
253
|
}
|
|
258
|
-
|
|
254
|
+
interface GetShippoConfigurationRequest {
|
|
259
255
|
/**
|
|
260
256
|
* ID of the ShippoConfiguration to retrieve.
|
|
261
257
|
* @format GUID
|
|
262
258
|
*/
|
|
263
259
|
shippoConfigurationId: string;
|
|
264
260
|
}
|
|
265
|
-
|
|
261
|
+
interface GetShippoConfigurationResponse {
|
|
266
262
|
/** The requested ShippoConfiguration. */
|
|
267
263
|
shippoConfiguration?: ShippoConfiguration;
|
|
268
264
|
}
|
|
269
|
-
|
|
265
|
+
interface UpdateShippoConfigurationRequest {
|
|
270
266
|
/** ShippoConfiguration to be updated, may be partial. */
|
|
271
267
|
shippoConfiguration: ShippoConfiguration;
|
|
272
268
|
}
|
|
273
|
-
|
|
269
|
+
interface UpdateShippoConfigurationResponse {
|
|
274
270
|
/** Updated ShippoConfiguration. */
|
|
275
271
|
shippoConfiguration?: ShippoConfiguration;
|
|
276
272
|
}
|
|
277
|
-
|
|
273
|
+
interface DeleteShippoConfigurationRequest {
|
|
278
274
|
/**
|
|
279
275
|
* ID of the ShippoConfiguration to delete.
|
|
280
276
|
* @format GUID
|
|
281
277
|
*/
|
|
282
278
|
shippoConfigurationId: string;
|
|
283
279
|
}
|
|
284
|
-
|
|
280
|
+
interface DeleteShippoConfigurationResponse {
|
|
285
281
|
}
|
|
286
|
-
|
|
282
|
+
interface QueryShippoConfigurationsRequest {
|
|
287
283
|
/** WQL expression. */
|
|
288
284
|
query?: CursorQuery;
|
|
289
285
|
}
|
|
290
|
-
|
|
286
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
291
287
|
/** 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
288
|
cursorPaging?: CursorPaging;
|
|
293
289
|
/**
|
|
@@ -307,11 +303,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
307
303
|
sort?: Sorting[];
|
|
308
304
|
}
|
|
309
305
|
/** @oneof */
|
|
310
|
-
|
|
306
|
+
interface CursorQueryPagingMethodOneOf {
|
|
311
307
|
/** 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
308
|
cursorPaging?: CursorPaging;
|
|
313
309
|
}
|
|
314
|
-
|
|
310
|
+
interface Sorting {
|
|
315
311
|
/**
|
|
316
312
|
* Name of the field to sort by.
|
|
317
313
|
* @maxLength 512
|
|
@@ -320,11 +316,11 @@ export interface Sorting {
|
|
|
320
316
|
/** Sort order. */
|
|
321
317
|
order?: SortOrder;
|
|
322
318
|
}
|
|
323
|
-
|
|
319
|
+
declare enum SortOrder {
|
|
324
320
|
ASC = "ASC",
|
|
325
321
|
DESC = "DESC"
|
|
326
322
|
}
|
|
327
|
-
|
|
323
|
+
interface CursorPaging {
|
|
328
324
|
/**
|
|
329
325
|
* Maximum number of items to return in the results.
|
|
330
326
|
* @max 100
|
|
@@ -339,13 +335,13 @@ export interface CursorPaging {
|
|
|
339
335
|
*/
|
|
340
336
|
cursor?: string | null;
|
|
341
337
|
}
|
|
342
|
-
|
|
338
|
+
interface QueryShippoConfigurationsResponse {
|
|
343
339
|
/** List of ShippoConfigurations. */
|
|
344
340
|
shippoConfigurations?: ShippoConfiguration[];
|
|
345
341
|
/** Paging metadata. */
|
|
346
342
|
pagingMetadata?: CursorPagingMetadata;
|
|
347
343
|
}
|
|
348
|
-
|
|
344
|
+
interface CursorPagingMetadata {
|
|
349
345
|
/** Number of items returned in the response. */
|
|
350
346
|
count?: number | null;
|
|
351
347
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -358,7 +354,7 @@ export interface CursorPagingMetadata {
|
|
|
358
354
|
*/
|
|
359
355
|
hasNext?: boolean | null;
|
|
360
356
|
}
|
|
361
|
-
|
|
357
|
+
interface Cursors {
|
|
362
358
|
/**
|
|
363
359
|
* Cursor string pointing to the next page in the list of results.
|
|
364
360
|
* @maxLength 16000
|
|
@@ -370,7 +366,7 @@ export interface Cursors {
|
|
|
370
366
|
*/
|
|
371
367
|
prev?: string | null;
|
|
372
368
|
}
|
|
373
|
-
|
|
369
|
+
interface UpdateExtendedFieldsRequest {
|
|
374
370
|
/** ID of the entity to update. */
|
|
375
371
|
id: string;
|
|
376
372
|
/** Identifier for the app whose extended fields are being updated. */
|
|
@@ -378,151 +374,34 @@ export interface UpdateExtendedFieldsRequest {
|
|
|
378
374
|
/** 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
375
|
namespaceData: Record<string, any> | null;
|
|
380
376
|
}
|
|
381
|
-
|
|
377
|
+
interface UpdateExtendedFieldsResponse {
|
|
382
378
|
/** Updated ShippoConfiguration. */
|
|
383
379
|
shippoConfiguration?: ShippoConfiguration;
|
|
384
380
|
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
* (for example, GDPR).
|
|
413
|
-
*/
|
|
414
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
415
|
-
/** If present, indicates the action that triggered the event. */
|
|
416
|
-
originatedFrom?: string | null;
|
|
417
|
-
/**
|
|
418
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
419
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
420
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
421
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
422
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
423
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
424
|
-
*/
|
|
425
|
-
entityEventSequence?: string | null;
|
|
426
|
-
}
|
|
427
|
-
/** @oneof */
|
|
428
|
-
export interface DomainEventBodyOneOf {
|
|
429
|
-
createdEvent?: EntityCreatedEvent;
|
|
430
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
431
|
-
deletedEvent?: EntityDeletedEvent;
|
|
432
|
-
actionEvent?: ActionEvent;
|
|
433
|
-
}
|
|
434
|
-
export interface EntityCreatedEvent {
|
|
435
|
-
entityAsJson?: string;
|
|
436
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
437
|
-
restoreInfo?: RestoreInfo;
|
|
438
|
-
}
|
|
439
|
-
export interface RestoreInfo {
|
|
440
|
-
deletedDate?: Date | null;
|
|
441
|
-
}
|
|
442
|
-
export interface EntityUpdatedEvent {
|
|
443
|
-
/**
|
|
444
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
445
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
446
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
447
|
-
*/
|
|
448
|
-
currentEntityAsJson?: string;
|
|
449
|
-
}
|
|
450
|
-
export interface EntityDeletedEvent {
|
|
451
|
-
/** Entity that was deleted */
|
|
452
|
-
deletedEntityAsJson?: string | null;
|
|
453
|
-
}
|
|
454
|
-
export interface ActionEvent {
|
|
455
|
-
bodyAsJson?: string;
|
|
456
|
-
}
|
|
457
|
-
export interface Empty {
|
|
458
|
-
}
|
|
459
|
-
export interface MessageEnvelope {
|
|
460
|
-
/**
|
|
461
|
-
* App instance ID.
|
|
462
|
-
* @format GUID
|
|
463
|
-
*/
|
|
464
|
-
instanceId?: string | null;
|
|
465
|
-
/**
|
|
466
|
-
* Event type.
|
|
467
|
-
* @maxLength 150
|
|
468
|
-
*/
|
|
469
|
-
eventType?: string;
|
|
470
|
-
/** The identification type and identity data. */
|
|
471
|
-
identity?: IdentificationData;
|
|
472
|
-
/** Stringify payload. */
|
|
473
|
-
data?: string;
|
|
474
|
-
}
|
|
475
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
476
|
-
/**
|
|
477
|
-
* ID of a site visitor that has not logged in to the site.
|
|
478
|
-
* @format GUID
|
|
479
|
-
*/
|
|
480
|
-
anonymousVisitorId?: string;
|
|
481
|
-
/**
|
|
482
|
-
* ID of a site visitor that has logged in to the site.
|
|
483
|
-
* @format GUID
|
|
484
|
-
*/
|
|
485
|
-
memberId?: string;
|
|
486
|
-
/**
|
|
487
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
488
|
-
* @format GUID
|
|
489
|
-
*/
|
|
490
|
-
wixUserId?: string;
|
|
491
|
-
/**
|
|
492
|
-
* ID of an app.
|
|
493
|
-
* @format GUID
|
|
494
|
-
*/
|
|
495
|
-
appId?: string;
|
|
496
|
-
/** @readonly */
|
|
497
|
-
identityType?: WebhookIdentityType;
|
|
498
|
-
}
|
|
499
|
-
/** @oneof */
|
|
500
|
-
export interface IdentificationDataIdOneOf {
|
|
501
|
-
/**
|
|
502
|
-
* ID of a site visitor that has not logged in to the site.
|
|
503
|
-
* @format GUID
|
|
504
|
-
*/
|
|
505
|
-
anonymousVisitorId?: string;
|
|
506
|
-
/**
|
|
507
|
-
* ID of a site visitor that has logged in to the site.
|
|
508
|
-
* @format GUID
|
|
509
|
-
*/
|
|
510
|
-
memberId?: string;
|
|
511
|
-
/**
|
|
512
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
513
|
-
* @format GUID
|
|
514
|
-
*/
|
|
515
|
-
wixUserId?: string;
|
|
516
|
-
/**
|
|
517
|
-
* ID of an app.
|
|
518
|
-
* @format GUID
|
|
519
|
-
*/
|
|
520
|
-
appId?: string;
|
|
521
|
-
}
|
|
522
|
-
export declare enum WebhookIdentityType {
|
|
523
|
-
UNKNOWN = "UNKNOWN",
|
|
524
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
525
|
-
MEMBER = "MEMBER",
|
|
526
|
-
WIX_USER = "WIX_USER",
|
|
527
|
-
APP = "APP"
|
|
528
|
-
}
|
|
381
|
+
|
|
382
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
383
|
+
getUrl: (context: any) => string;
|
|
384
|
+
httpMethod: K;
|
|
385
|
+
path: string;
|
|
386
|
+
pathParams: M;
|
|
387
|
+
__requestType: T;
|
|
388
|
+
__originalRequestType: S;
|
|
389
|
+
__responseType: Q;
|
|
390
|
+
__originalResponseType: R;
|
|
391
|
+
};
|
|
392
|
+
declare function createShippoConfiguration(): __PublicMethodMetaInfo<'POST', {}, CreateShippoConfigurationRequest$1, CreateShippoConfigurationRequest, CreateShippoConfigurationResponse$1, CreateShippoConfigurationResponse>;
|
|
393
|
+
declare function getShippoConfiguration(): __PublicMethodMetaInfo<'GET', {
|
|
394
|
+
shippoConfigurationId: string;
|
|
395
|
+
}, GetShippoConfigurationRequest$1, GetShippoConfigurationRequest, GetShippoConfigurationResponse$1, GetShippoConfigurationResponse>;
|
|
396
|
+
declare function updateShippoConfiguration(): __PublicMethodMetaInfo<'PATCH', {
|
|
397
|
+
shippoConfigurationId: string;
|
|
398
|
+
}, UpdateShippoConfigurationRequest$1, UpdateShippoConfigurationRequest, UpdateShippoConfigurationResponse$1, UpdateShippoConfigurationResponse>;
|
|
399
|
+
declare function deleteShippoConfiguration(): __PublicMethodMetaInfo<'DELETE', {
|
|
400
|
+
shippoConfigurationId: string;
|
|
401
|
+
}, DeleteShippoConfigurationRequest$1, DeleteShippoConfigurationRequest, DeleteShippoConfigurationResponse$1, DeleteShippoConfigurationResponse>;
|
|
402
|
+
declare function queryShippoConfigurations(): __PublicMethodMetaInfo<'GET', {}, QueryShippoConfigurationsRequest$1, QueryShippoConfigurationsRequest, QueryShippoConfigurationsResponse$1, QueryShippoConfigurationsResponse>;
|
|
403
|
+
declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
|
|
404
|
+
id: string;
|
|
405
|
+
}, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse$1, UpdateExtendedFieldsResponse>;
|
|
406
|
+
|
|
407
|
+
export { type __PublicMethodMetaInfo, createShippoConfiguration, deleteShippoConfiguration, getShippoConfiguration, queryShippoConfigurations, updateExtendedFields, updateShippoConfiguration };
|