@wix/auto_sdk_ecom_shippo-configurations 1.0.0
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/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts +455 -0
- 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/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts +711 -0
- 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/package.json +3 -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/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts +455 -0
- 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/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts +711 -0
- 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/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts +455 -0
- 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/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts +711 -0
- 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/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts +455 -0
- 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/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts +711 -0
- 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/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
export interface ShippoConfiguration {
|
|
2
|
+
/**
|
|
3
|
+
* ShippoConfiguration ID.
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
6
|
+
id?: string | null;
|
|
7
|
+
/** @readonly */
|
|
8
|
+
revision?: string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Date and time the ShippoConfiguration was created.
|
|
11
|
+
* @readonly
|
|
12
|
+
*/
|
|
13
|
+
createdDate?: Date | null;
|
|
14
|
+
/**
|
|
15
|
+
* Date and time the ShippoConfiguration was last updated.
|
|
16
|
+
* @readonly
|
|
17
|
+
*/
|
|
18
|
+
updatedDate?: Date | null;
|
|
19
|
+
/** Associated delivery region ID. */
|
|
20
|
+
deliveryRegionId?: string | null;
|
|
21
|
+
/** Settings of USPS domestic services. */
|
|
22
|
+
domesticServices?: DomesticServiceSettings[];
|
|
23
|
+
/** Settings of USPS international services. */
|
|
24
|
+
internationalServices?: InternationalServiceSettings[];
|
|
25
|
+
/** Package type. */
|
|
26
|
+
packageType?: PackageType;
|
|
27
|
+
/** Package details. */
|
|
28
|
+
packageDetails?: PackageDetails;
|
|
29
|
+
/** Location ID from OS location service. */
|
|
30
|
+
osLocationId?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Ship from address materialized from OS location.
|
|
33
|
+
* @readonly
|
|
34
|
+
*/
|
|
35
|
+
shipFromAddress?: Address;
|
|
36
|
+
/** Backup weight. */
|
|
37
|
+
backupWeight?: string | null;
|
|
38
|
+
/** Data extensions. */
|
|
39
|
+
extendedFields?: ExtendedFields;
|
|
40
|
+
}
|
|
41
|
+
export interface DomesticServiceSettings {
|
|
42
|
+
/** USPS domestic service. */
|
|
43
|
+
service?: DomesticService;
|
|
44
|
+
/** Service settings. */
|
|
45
|
+
serviceSettings?: ServiceSettings;
|
|
46
|
+
}
|
|
47
|
+
export declare enum DomesticService {
|
|
48
|
+
UNKNOWN_DOMESTIC_SERVICE = "UNKNOWN_DOMESTIC_SERVICE",
|
|
49
|
+
GROUND_ADVANTAGE = "GROUND_ADVANTAGE",
|
|
50
|
+
PRIORITY_MAIL = "PRIORITY_MAIL",
|
|
51
|
+
PRIORITY_MAIL_EXPRESS = "PRIORITY_MAIL_EXPRESS"
|
|
52
|
+
}
|
|
53
|
+
export interface ServiceSettings {
|
|
54
|
+
/** Estimated delivery time. */
|
|
55
|
+
estimatedDeliveryTime?: string | null;
|
|
56
|
+
/** Handling fee. */
|
|
57
|
+
handlingFee?: HandlingFee;
|
|
58
|
+
/** Amount above which free delivery is offered. */
|
|
59
|
+
freeDeliveryMinimumAmount?: string | null;
|
|
60
|
+
}
|
|
61
|
+
export interface HandlingFee {
|
|
62
|
+
/** Value that will be used to calculate the fee. For example, percentage fee with value 5% to calculate the fee. */
|
|
63
|
+
value?: string;
|
|
64
|
+
/** How to calculate the fee: fixed amount or by percentage. */
|
|
65
|
+
calculationType?: CalculationType;
|
|
66
|
+
}
|
|
67
|
+
export declare enum CalculationType {
|
|
68
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
69
|
+
FIXED = "FIXED",
|
|
70
|
+
PERCENTAGE = "PERCENTAGE"
|
|
71
|
+
}
|
|
72
|
+
export interface InternationalServiceSettings {
|
|
73
|
+
/** USPS international service. */
|
|
74
|
+
service?: InternationalService;
|
|
75
|
+
/** Service settings. */
|
|
76
|
+
serviceSettings?: ServiceSettings;
|
|
77
|
+
}
|
|
78
|
+
export declare enum InternationalService {
|
|
79
|
+
UNKNOWN_INTERNATIONAL_SERVICE = "UNKNOWN_INTERNATIONAL_SERVICE",
|
|
80
|
+
FIRST_CLASS_PACKAGE_INTERNATIONAL = "FIRST_CLASS_PACKAGE_INTERNATIONAL",
|
|
81
|
+
PRIORITY_MAIL_INTERNATIONAL = "PRIORITY_MAIL_INTERNATIONAL",
|
|
82
|
+
PRIORITY_MAIL_EXPRESS_INTERNATIONAL = "PRIORITY_MAIL_EXPRESS_INTERNATIONAL"
|
|
83
|
+
}
|
|
84
|
+
export declare enum PackageType {
|
|
85
|
+
UNKNOWN_PACKAGE_TYPE = "UNKNOWN_PACKAGE_TYPE",
|
|
86
|
+
CUSTOM = "CUSTOM",
|
|
87
|
+
FLAT_RATE_ENVELOPE = "FLAT_RATE_ENVELOPE",
|
|
88
|
+
PADDED_FLAT_RATE_ENVELOPE = "PADDED_FLAT_RATE_ENVELOPE",
|
|
89
|
+
SMALL_FLAT_RATE_BOX = "SMALL_FLAT_RATE_BOX",
|
|
90
|
+
MEDIUM_FLAT_RATE_BOX_1 = "MEDIUM_FLAT_RATE_BOX_1",
|
|
91
|
+
MEDIUM_FLAT_RATE_BOX_2 = "MEDIUM_FLAT_RATE_BOX_2",
|
|
92
|
+
LARGE_FLAT_RATE_BOX = "LARGE_FLAT_RATE_BOX"
|
|
93
|
+
}
|
|
94
|
+
export interface PackageDetails {
|
|
95
|
+
/**
|
|
96
|
+
* Package name. Must be set when package type is CUSTOM.
|
|
97
|
+
* For other package types, it is read-only, and an exception will be thrown
|
|
98
|
+
* if it set when creating a ShippoConfiguration.
|
|
99
|
+
*/
|
|
100
|
+
name?: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* Package dimensions. Can only be set when package type is CUSTOM.
|
|
103
|
+
* For other package types, it is read-only, and an exception will be thrown
|
|
104
|
+
* if it set when creating a ShippoConfiguration.
|
|
105
|
+
*/
|
|
106
|
+
dimensions?: PackageDimensions;
|
|
107
|
+
/**
|
|
108
|
+
* Maximum number of products. Must be set when package type is NOT CUSTOM.
|
|
109
|
+
* Otherwise, if the package type is CUSTOM, this field cannot be set and an
|
|
110
|
+
* exception will be thrown if it is set when creating a ShippoConfiguration.
|
|
111
|
+
*/
|
|
112
|
+
maxNumberOfProducts?: string | null;
|
|
113
|
+
}
|
|
114
|
+
export interface PackageDimensions {
|
|
115
|
+
/** Package length. */
|
|
116
|
+
length?: string;
|
|
117
|
+
/** Package width. */
|
|
118
|
+
width?: string;
|
|
119
|
+
/** Package height. */
|
|
120
|
+
height?: string;
|
|
121
|
+
}
|
|
122
|
+
/** Physical address */
|
|
123
|
+
export interface Address {
|
|
124
|
+
/** Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format. */
|
|
125
|
+
country?: string | null;
|
|
126
|
+
/** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format. */
|
|
127
|
+
subdivision?: string | null;
|
|
128
|
+
/** City name. */
|
|
129
|
+
city?: string | null;
|
|
130
|
+
/** Postal or zip code. */
|
|
131
|
+
postalCode?: string | null;
|
|
132
|
+
/** Street address. */
|
|
133
|
+
streetAddress?: StreetAddress;
|
|
134
|
+
/** Main address line (usually street name and number). */
|
|
135
|
+
addressLine?: string | null;
|
|
136
|
+
/** Free text providing more detailed address info. Usually contains apt, suite, floor. */
|
|
137
|
+
addressLine2?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* Country's full name.
|
|
140
|
+
* @readonly
|
|
141
|
+
*/
|
|
142
|
+
countryFullname?: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* Subdivision full-name.
|
|
145
|
+
* @readonly
|
|
146
|
+
*/
|
|
147
|
+
subdivisionFullname?: string | null;
|
|
148
|
+
}
|
|
149
|
+
export interface StreetAddress {
|
|
150
|
+
/** Street number. */
|
|
151
|
+
number?: string;
|
|
152
|
+
/** Street name. */
|
|
153
|
+
name?: string;
|
|
154
|
+
}
|
|
155
|
+
export interface AddressLocation {
|
|
156
|
+
/** Address latitude. */
|
|
157
|
+
latitude?: number | null;
|
|
158
|
+
/** Address longitude. */
|
|
159
|
+
longitude?: number | null;
|
|
160
|
+
}
|
|
161
|
+
export interface ExtendedFields {
|
|
162
|
+
/**
|
|
163
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
164
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
165
|
+
*
|
|
166
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
167
|
+
*
|
|
168
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
169
|
+
*/
|
|
170
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
171
|
+
}
|
|
172
|
+
export interface CreateShippoConfigurationRequest {
|
|
173
|
+
/** ShippoConfiguration to be created. */
|
|
174
|
+
shippoConfiguration: ShippoConfiguration;
|
|
175
|
+
backupRate?: string | null;
|
|
176
|
+
}
|
|
177
|
+
export interface CreateShippoConfigurationResponse {
|
|
178
|
+
/** The created ShippoConfiguration. */
|
|
179
|
+
shippoConfiguration?: ShippoConfiguration;
|
|
180
|
+
}
|
|
181
|
+
export interface GetShippoConfigurationRequest {
|
|
182
|
+
/** ID of the ShippoConfiguration to retrieve. */
|
|
183
|
+
shippoConfigurationId: string;
|
|
184
|
+
}
|
|
185
|
+
export interface GetShippoConfigurationResponse {
|
|
186
|
+
/** The requested ShippoConfiguration. */
|
|
187
|
+
shippoConfiguration?: ShippoConfiguration;
|
|
188
|
+
}
|
|
189
|
+
export interface UpdateShippoConfigurationRequest {
|
|
190
|
+
/** ShippoConfiguration to be updated, may be partial. */
|
|
191
|
+
shippoConfiguration: ShippoConfiguration;
|
|
192
|
+
}
|
|
193
|
+
export interface UpdateShippoConfigurationResponse {
|
|
194
|
+
/** Updated ShippoConfiguration. */
|
|
195
|
+
shippoConfiguration?: ShippoConfiguration;
|
|
196
|
+
}
|
|
197
|
+
export interface DeleteShippoConfigurationRequest {
|
|
198
|
+
/** ID of the ShippoConfiguration to delete. */
|
|
199
|
+
shippoConfigurationId: string;
|
|
200
|
+
}
|
|
201
|
+
export interface DeleteShippoConfigurationResponse {
|
|
202
|
+
}
|
|
203
|
+
export interface QueryShippoConfigurationsRequest {
|
|
204
|
+
/** WQL expression. */
|
|
205
|
+
query?: CursorQuery;
|
|
206
|
+
}
|
|
207
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
208
|
+
/** 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`. */
|
|
209
|
+
cursorPaging?: CursorPaging;
|
|
210
|
+
/**
|
|
211
|
+
* Filter object in the following format:
|
|
212
|
+
* `"filter" : {
|
|
213
|
+
* "fieldName1": "value1",
|
|
214
|
+
* "fieldName2":{"$operator":"value2"}
|
|
215
|
+
* }`
|
|
216
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
217
|
+
*/
|
|
218
|
+
filter?: Record<string, any> | null;
|
|
219
|
+
/**
|
|
220
|
+
* Sort object in the following format:
|
|
221
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
222
|
+
*/
|
|
223
|
+
sort?: Sorting[];
|
|
224
|
+
}
|
|
225
|
+
/** @oneof */
|
|
226
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
227
|
+
/** 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`. */
|
|
228
|
+
cursorPaging?: CursorPaging;
|
|
229
|
+
}
|
|
230
|
+
export interface Sorting {
|
|
231
|
+
/** Name of the field to sort by. */
|
|
232
|
+
fieldName?: string;
|
|
233
|
+
/** Sort order. */
|
|
234
|
+
order?: SortOrder;
|
|
235
|
+
}
|
|
236
|
+
export declare enum SortOrder {
|
|
237
|
+
ASC = "ASC",
|
|
238
|
+
DESC = "DESC"
|
|
239
|
+
}
|
|
240
|
+
export interface CursorPaging {
|
|
241
|
+
/** Maximum number of items to return in the results. */
|
|
242
|
+
limit?: number | null;
|
|
243
|
+
/**
|
|
244
|
+
* Pointer to the next or previous page in the list of results.
|
|
245
|
+
*
|
|
246
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
247
|
+
* Not relevant for the first request.
|
|
248
|
+
*/
|
|
249
|
+
cursor?: string | null;
|
|
250
|
+
}
|
|
251
|
+
export interface QueryShippoConfigurationsResponse {
|
|
252
|
+
/** List of ShippoConfigurations. */
|
|
253
|
+
shippoConfigurations?: ShippoConfiguration[];
|
|
254
|
+
/** Paging metadata. */
|
|
255
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
256
|
+
}
|
|
257
|
+
export interface CursorPagingMetadata {
|
|
258
|
+
/** Number of items returned in the response. */
|
|
259
|
+
count?: number | null;
|
|
260
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
261
|
+
cursors?: Cursors;
|
|
262
|
+
/**
|
|
263
|
+
* Whether there are more pages to retrieve following the current page.
|
|
264
|
+
*
|
|
265
|
+
* + `true`: Another page of results can be retrieved.
|
|
266
|
+
* + `false`: This is the last page.
|
|
267
|
+
*/
|
|
268
|
+
hasNext?: boolean | null;
|
|
269
|
+
}
|
|
270
|
+
export interface Cursors {
|
|
271
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
272
|
+
next?: string | null;
|
|
273
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
274
|
+
prev?: string | null;
|
|
275
|
+
}
|
|
276
|
+
export interface UpdateExtendedFieldsRequest {
|
|
277
|
+
/** ID of the entity to update. */
|
|
278
|
+
id: string;
|
|
279
|
+
/** Identifier for the app whose extended fields are being updated. */
|
|
280
|
+
namespace: string;
|
|
281
|
+
/** 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. */
|
|
282
|
+
namespaceData: Record<string, any> | null;
|
|
283
|
+
}
|
|
284
|
+
export interface UpdateExtendedFieldsResponse {
|
|
285
|
+
/** Updated ShippoConfiguration. */
|
|
286
|
+
shippoConfiguration?: ShippoConfiguration;
|
|
287
|
+
}
|
|
288
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
289
|
+
createdEvent?: EntityCreatedEvent;
|
|
290
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
291
|
+
deletedEvent?: EntityDeletedEvent;
|
|
292
|
+
actionEvent?: ActionEvent;
|
|
293
|
+
/**
|
|
294
|
+
* Unique event ID.
|
|
295
|
+
* Allows clients to ignore duplicate webhooks.
|
|
296
|
+
*/
|
|
297
|
+
id?: string;
|
|
298
|
+
/**
|
|
299
|
+
* Assumes actions are also always typed to an entity_type
|
|
300
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
301
|
+
*/
|
|
302
|
+
entityFqdn?: string;
|
|
303
|
+
/**
|
|
304
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
305
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
306
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
307
|
+
*/
|
|
308
|
+
slug?: string;
|
|
309
|
+
/** ID of the entity associated with the event. */
|
|
310
|
+
entityId?: string;
|
|
311
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
312
|
+
eventTime?: Date | null;
|
|
313
|
+
/**
|
|
314
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
315
|
+
* (for example, GDPR).
|
|
316
|
+
*/
|
|
317
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
318
|
+
/** If present, indicates the action that triggered the event. */
|
|
319
|
+
originatedFrom?: string | null;
|
|
320
|
+
/**
|
|
321
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
322
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
323
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
324
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
325
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
326
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
327
|
+
*/
|
|
328
|
+
entityEventSequence?: string | null;
|
|
329
|
+
}
|
|
330
|
+
/** @oneof */
|
|
331
|
+
export interface DomainEventBodyOneOf {
|
|
332
|
+
createdEvent?: EntityCreatedEvent;
|
|
333
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
334
|
+
deletedEvent?: EntityDeletedEvent;
|
|
335
|
+
actionEvent?: ActionEvent;
|
|
336
|
+
}
|
|
337
|
+
export interface EntityCreatedEvent {
|
|
338
|
+
entityAsJson?: string;
|
|
339
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
340
|
+
restoreInfo?: RestoreInfo;
|
|
341
|
+
}
|
|
342
|
+
export interface RestoreInfo {
|
|
343
|
+
deletedDate?: Date | null;
|
|
344
|
+
}
|
|
345
|
+
export interface EntityUpdatedEvent {
|
|
346
|
+
/**
|
|
347
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
348
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
349
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
350
|
+
*/
|
|
351
|
+
currentEntityAsJson?: string;
|
|
352
|
+
}
|
|
353
|
+
export interface EntityDeletedEvent {
|
|
354
|
+
/** Entity that was deleted */
|
|
355
|
+
deletedEntityAsJson?: string | null;
|
|
356
|
+
}
|
|
357
|
+
export interface ActionEvent {
|
|
358
|
+
bodyAsJson?: string;
|
|
359
|
+
}
|
|
360
|
+
export interface Empty {
|
|
361
|
+
}
|
|
362
|
+
export interface MessageEnvelope {
|
|
363
|
+
/** App instance ID. */
|
|
364
|
+
instanceId?: string | null;
|
|
365
|
+
/** Event type. */
|
|
366
|
+
eventType?: string;
|
|
367
|
+
/** The identification type and identity data. */
|
|
368
|
+
identity?: IdentificationData;
|
|
369
|
+
/** Stringify payload. */
|
|
370
|
+
data?: string;
|
|
371
|
+
}
|
|
372
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
373
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
374
|
+
anonymousVisitorId?: string;
|
|
375
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
376
|
+
memberId?: string;
|
|
377
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
378
|
+
wixUserId?: string;
|
|
379
|
+
/** ID of an app. */
|
|
380
|
+
appId?: string;
|
|
381
|
+
/** @readonly */
|
|
382
|
+
identityType?: WebhookIdentityType;
|
|
383
|
+
}
|
|
384
|
+
/** @oneof */
|
|
385
|
+
export interface IdentificationDataIdOneOf {
|
|
386
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
387
|
+
anonymousVisitorId?: string;
|
|
388
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
389
|
+
memberId?: string;
|
|
390
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
391
|
+
wixUserId?: string;
|
|
392
|
+
/** ID of an app. */
|
|
393
|
+
appId?: string;
|
|
394
|
+
}
|
|
395
|
+
export declare enum WebhookIdentityType {
|
|
396
|
+
UNKNOWN = "UNKNOWN",
|
|
397
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
398
|
+
MEMBER = "MEMBER",
|
|
399
|
+
WIX_USER = "WIX_USER",
|
|
400
|
+
APP = "APP"
|
|
401
|
+
}
|
|
402
|
+
interface HandlingFeeNonNullableFields {
|
|
403
|
+
value: string;
|
|
404
|
+
calculationType: CalculationType;
|
|
405
|
+
}
|
|
406
|
+
interface ServiceSettingsNonNullableFields {
|
|
407
|
+
handlingFee?: HandlingFeeNonNullableFields;
|
|
408
|
+
}
|
|
409
|
+
interface DomesticServiceSettingsNonNullableFields {
|
|
410
|
+
service: DomesticService;
|
|
411
|
+
serviceSettings?: ServiceSettingsNonNullableFields;
|
|
412
|
+
}
|
|
413
|
+
interface InternationalServiceSettingsNonNullableFields {
|
|
414
|
+
service: InternationalService;
|
|
415
|
+
serviceSettings?: ServiceSettingsNonNullableFields;
|
|
416
|
+
}
|
|
417
|
+
interface PackageDimensionsNonNullableFields {
|
|
418
|
+
length: string;
|
|
419
|
+
width: string;
|
|
420
|
+
height: string;
|
|
421
|
+
}
|
|
422
|
+
interface PackageDetailsNonNullableFields {
|
|
423
|
+
dimensions?: PackageDimensionsNonNullableFields;
|
|
424
|
+
}
|
|
425
|
+
interface StreetAddressNonNullableFields {
|
|
426
|
+
number: string;
|
|
427
|
+
name: string;
|
|
428
|
+
apt: string;
|
|
429
|
+
}
|
|
430
|
+
interface AddressNonNullableFields {
|
|
431
|
+
streetAddress?: StreetAddressNonNullableFields;
|
|
432
|
+
}
|
|
433
|
+
interface ShippoConfigurationNonNullableFields {
|
|
434
|
+
domesticServices: DomesticServiceSettingsNonNullableFields[];
|
|
435
|
+
internationalServices: InternationalServiceSettingsNonNullableFields[];
|
|
436
|
+
packageType: PackageType;
|
|
437
|
+
packageDetails?: PackageDetailsNonNullableFields;
|
|
438
|
+
shipFromAddress?: AddressNonNullableFields;
|
|
439
|
+
}
|
|
440
|
+
export interface CreateShippoConfigurationResponseNonNullableFields {
|
|
441
|
+
shippoConfiguration?: ShippoConfigurationNonNullableFields;
|
|
442
|
+
}
|
|
443
|
+
export interface GetShippoConfigurationResponseNonNullableFields {
|
|
444
|
+
shippoConfiguration?: ShippoConfigurationNonNullableFields;
|
|
445
|
+
}
|
|
446
|
+
export interface UpdateShippoConfigurationResponseNonNullableFields {
|
|
447
|
+
shippoConfiguration?: ShippoConfigurationNonNullableFields;
|
|
448
|
+
}
|
|
449
|
+
export interface QueryShippoConfigurationsResponseNonNullableFields {
|
|
450
|
+
shippoConfigurations: ShippoConfigurationNonNullableFields[];
|
|
451
|
+
}
|
|
452
|
+
export interface UpdateExtendedFieldsResponseNonNullableFields {
|
|
453
|
+
shippoConfiguration?: ShippoConfigurationNonNullableFields;
|
|
454
|
+
}
|
|
455
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export var DomesticService;
|
|
2
|
+
(function (DomesticService) {
|
|
3
|
+
DomesticService["UNKNOWN_DOMESTIC_SERVICE"] = "UNKNOWN_DOMESTIC_SERVICE";
|
|
4
|
+
DomesticService["GROUND_ADVANTAGE"] = "GROUND_ADVANTAGE";
|
|
5
|
+
DomesticService["PRIORITY_MAIL"] = "PRIORITY_MAIL";
|
|
6
|
+
DomesticService["PRIORITY_MAIL_EXPRESS"] = "PRIORITY_MAIL_EXPRESS";
|
|
7
|
+
})(DomesticService || (DomesticService = {}));
|
|
8
|
+
export var CalculationType;
|
|
9
|
+
(function (CalculationType) {
|
|
10
|
+
CalculationType["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
11
|
+
CalculationType["FIXED"] = "FIXED";
|
|
12
|
+
CalculationType["PERCENTAGE"] = "PERCENTAGE";
|
|
13
|
+
})(CalculationType || (CalculationType = {}));
|
|
14
|
+
export var InternationalService;
|
|
15
|
+
(function (InternationalService) {
|
|
16
|
+
InternationalService["UNKNOWN_INTERNATIONAL_SERVICE"] = "UNKNOWN_INTERNATIONAL_SERVICE";
|
|
17
|
+
InternationalService["FIRST_CLASS_PACKAGE_INTERNATIONAL"] = "FIRST_CLASS_PACKAGE_INTERNATIONAL";
|
|
18
|
+
InternationalService["PRIORITY_MAIL_INTERNATIONAL"] = "PRIORITY_MAIL_INTERNATIONAL";
|
|
19
|
+
InternationalService["PRIORITY_MAIL_EXPRESS_INTERNATIONAL"] = "PRIORITY_MAIL_EXPRESS_INTERNATIONAL";
|
|
20
|
+
})(InternationalService || (InternationalService = {}));
|
|
21
|
+
export var PackageType;
|
|
22
|
+
(function (PackageType) {
|
|
23
|
+
PackageType["UNKNOWN_PACKAGE_TYPE"] = "UNKNOWN_PACKAGE_TYPE";
|
|
24
|
+
PackageType["CUSTOM"] = "CUSTOM";
|
|
25
|
+
PackageType["FLAT_RATE_ENVELOPE"] = "FLAT_RATE_ENVELOPE";
|
|
26
|
+
PackageType["PADDED_FLAT_RATE_ENVELOPE"] = "PADDED_FLAT_RATE_ENVELOPE";
|
|
27
|
+
PackageType["SMALL_FLAT_RATE_BOX"] = "SMALL_FLAT_RATE_BOX";
|
|
28
|
+
PackageType["MEDIUM_FLAT_RATE_BOX_1"] = "MEDIUM_FLAT_RATE_BOX_1";
|
|
29
|
+
PackageType["MEDIUM_FLAT_RATE_BOX_2"] = "MEDIUM_FLAT_RATE_BOX_2";
|
|
30
|
+
PackageType["LARGE_FLAT_RATE_BOX"] = "LARGE_FLAT_RATE_BOX";
|
|
31
|
+
})(PackageType || (PackageType = {}));
|
|
32
|
+
export var SortOrder;
|
|
33
|
+
(function (SortOrder) {
|
|
34
|
+
SortOrder["ASC"] = "ASC";
|
|
35
|
+
SortOrder["DESC"] = "DESC";
|
|
36
|
+
})(SortOrder || (SortOrder = {}));
|
|
37
|
+
export var WebhookIdentityType;
|
|
38
|
+
(function (WebhookIdentityType) {
|
|
39
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
40
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
41
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
42
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
43
|
+
WebhookIdentityType["APP"] = "APP";
|
|
44
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
45
|
+
//# sourceMappingURL=ecom-v1-shippo-configuration-shippo-configurations.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ecom-v1-shippo-configuration-shippo-configurations.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-shippo-configuration-shippo-configurations.types.ts"],"names":[],"mappings":"AAgDA,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,wDAAqC,CAAA;IACrC,kDAA+B,CAAA;IAC/B,kEAA+C,CAAA;AACjD,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B;AAkBD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,gDAA6B,CAAA;IAC7B,kCAAe,CAAA;IACf,4CAAyB,CAAA;AAC3B,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AASD,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,uFAA+D,CAAA;IAC/D,+FAAuE,CAAA;IACvE,mFAA2D,CAAA;IAC3D,mGAA2E,CAAA;AAC7E,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B;AAED,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,gCAAiB,CAAA;IACjB,wDAAyC,CAAA;IACzC,sEAAuD,CAAA;IACvD,0DAA2C,CAAA;IAC3C,gEAAiD,CAAA;IACjD,gEAAiD,CAAA;IACjD,0DAA2C,CAAA;AAC7C,CAAC,EATW,WAAW,KAAX,WAAW,QAStB;AAiKD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AA6KD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|