@wix/auto_sdk_ecom_local-delivery-options 1.0.6 → 1.0.8
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-local-delivery-option-local-delivery-options.context.d.ts +15 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.js +24 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.js.map +1 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.d.ts +23 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.js +621 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.js.map +1 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.d.ts +29 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js +239 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.d.ts +70 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.js +79 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.js.map +1 -0
- package/build/{internal/meta.d.mts → cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts} +196 -84
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.js +59 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.js.map +1 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.d.ts +1113 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +771 -0
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.d.ts +15 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.js +15 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.js.map +1 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.d.ts +23 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.js +607 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.js.map +1 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.d.ts +29 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js +202 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js.map +1 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.d.ts +70 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.js +59 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.js.map +1 -0
- package/build/{internal/meta.d.ts → es/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts} +196 -84
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.js +56 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.js.map +1 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.d.ts +1113 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +734 -0
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.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-local-delivery-option-local-delivery-options.context.d.ts +15 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.js +24 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.d.ts +23 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.js +621 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.d.ts +29 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js +239 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.d.ts +70 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.js +79 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.js.map +1 -0
- package/build/{meta.d.mts → internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts} +196 -84
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.js +59 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.d.ts +1113 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +771 -0
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.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-local-delivery-option-local-delivery-options.context.d.ts +15 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.js +15 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.js.map +1 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.d.ts +23 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.js +607 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.js.map +1 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.d.ts +29 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js +202 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.d.ts +70 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.js +59 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.js.map +1 -0
- package/build/{meta.d.ts → internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts} +196 -84
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.js +56 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.js.map +1 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.d.ts +1113 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +734 -0
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/ecom-v1-local-delivery-option-local-delivery-options.universal-DPjRka8i.d.mts +0 -775
- package/build/ecom-v1-local-delivery-option-local-delivery-options.universal-DPjRka8i.d.ts +0 -775
- package/build/index.d.mts +0 -82
- package/build/index.d.ts +0 -82
- package/build/index.js +0 -1223
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -1183
- package/build/index.mjs.map +0 -1
- package/build/internal/ecom-v1-local-delivery-option-local-delivery-options.universal-DPjRka8i.d.mts +0 -775
- package/build/internal/ecom-v1-local-delivery-option-local-delivery-options.universal-DPjRka8i.d.ts +0 -775
- package/build/internal/index.d.mts +0 -82
- package/build/internal/index.d.ts +0 -82
- package/build/internal/index.js +0 -1223
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -1183
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.js +0 -855
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -818
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.js +0 -855
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -818
- package/build/meta.mjs.map +0 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
|
|
1
|
+
export interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
|
|
4
2
|
zipConfig?: ZipCodeConfig;
|
|
5
3
|
radiusConfig?: RadiusConfig;
|
|
6
4
|
customAreaConfig?: CustomAreaConfig;
|
|
@@ -67,12 +65,12 @@ interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
|
|
|
67
65
|
deliveryRegionIds?: string[];
|
|
68
66
|
}
|
|
69
67
|
/** @oneof */
|
|
70
|
-
interface LocalDeliveryOptionConfigOneOf {
|
|
68
|
+
export interface LocalDeliveryOptionConfigOneOf {
|
|
71
69
|
zipConfig?: ZipCodeConfig;
|
|
72
70
|
radiusConfig?: RadiusConfig;
|
|
73
71
|
customAreaConfig?: CustomAreaConfig;
|
|
74
72
|
}
|
|
75
|
-
interface Destination {
|
|
73
|
+
export interface Destination {
|
|
76
74
|
/**
|
|
77
75
|
* Country ISO code
|
|
78
76
|
* @format COUNTRY
|
|
@@ -84,7 +82,7 @@ interface Destination {
|
|
|
84
82
|
*/
|
|
85
83
|
subdivisions?: string[];
|
|
86
84
|
}
|
|
87
|
-
interface ZipCodeConfig {
|
|
85
|
+
export interface ZipCodeConfig {
|
|
88
86
|
/**
|
|
89
87
|
* List of ZipCodes and ZipCode regexes. Examples: 10001, 10002 or 1000*
|
|
90
88
|
* @minLength 1
|
|
@@ -92,7 +90,7 @@ interface ZipCodeConfig {
|
|
|
92
90
|
*/
|
|
93
91
|
zipCodes?: string[];
|
|
94
92
|
}
|
|
95
|
-
interface RadiusConfig {
|
|
93
|
+
export interface RadiusConfig {
|
|
96
94
|
/** Delivery-from address */
|
|
97
95
|
address?: LocalDeliveryAddress;
|
|
98
96
|
/**
|
|
@@ -107,7 +105,7 @@ interface RadiusConfig {
|
|
|
107
105
|
*/
|
|
108
106
|
lengthUnit?: LengthUnit;
|
|
109
107
|
}
|
|
110
|
-
interface LocalDeliveryAddress {
|
|
108
|
+
export interface LocalDeliveryAddress {
|
|
111
109
|
/**
|
|
112
110
|
* A string containing the human-readable address of this location
|
|
113
111
|
* @maxLength 400
|
|
@@ -116,13 +114,13 @@ interface LocalDeliveryAddress {
|
|
|
116
114
|
/** coordinates of the physical address */
|
|
117
115
|
geocode?: AddressLocation;
|
|
118
116
|
}
|
|
119
|
-
interface AddressLocation {
|
|
117
|
+
export interface AddressLocation {
|
|
120
118
|
/** Address latitude. */
|
|
121
119
|
latitude?: number | null;
|
|
122
120
|
/** Address longitude. */
|
|
123
121
|
longitude?: number | null;
|
|
124
122
|
}
|
|
125
|
-
declare enum LengthUnit {
|
|
123
|
+
export declare enum LengthUnit {
|
|
126
124
|
/** Length unit can't be classified, due to an error */
|
|
127
125
|
UNSPECIFIED_LENGTH_UNIT = "UNSPECIFIED_LENGTH_UNIT",
|
|
128
126
|
/** Kilometers */
|
|
@@ -130,14 +128,14 @@ declare enum LengthUnit {
|
|
|
130
128
|
/** Miles */
|
|
131
129
|
MI = "MI"
|
|
132
130
|
}
|
|
133
|
-
interface CustomAreaConfig {
|
|
131
|
+
export interface CustomAreaConfig {
|
|
134
132
|
/**
|
|
135
133
|
* Geocodes of the polygon defining the delivery area.
|
|
136
134
|
* @maxSize 300
|
|
137
135
|
*/
|
|
138
136
|
geocodes?: AddressLocation[];
|
|
139
137
|
}
|
|
140
|
-
interface ScheduledDelivery {
|
|
138
|
+
export interface ScheduledDelivery {
|
|
141
139
|
/**
|
|
142
140
|
* Days config which contain days when delivery is enabled with it's time slots
|
|
143
141
|
* @deprecated Days config which contain days when delivery is enabled with it's time slots
|
|
@@ -158,7 +156,7 @@ interface ScheduledDelivery {
|
|
|
158
156
|
*/
|
|
159
157
|
timeWindows?: TimeWindow[];
|
|
160
158
|
}
|
|
161
|
-
interface Days {
|
|
159
|
+
export interface Days {
|
|
162
160
|
monday?: DaySlot;
|
|
163
161
|
tuesday?: DaySlot;
|
|
164
162
|
wednesday?: DaySlot;
|
|
@@ -167,7 +165,7 @@ interface Days {
|
|
|
167
165
|
saturday?: DaySlot;
|
|
168
166
|
sunday?: DaySlot;
|
|
169
167
|
}
|
|
170
|
-
interface DaySlot {
|
|
168
|
+
export interface DaySlot {
|
|
171
169
|
/** Shows whether this day slot is enabled for delivery */
|
|
172
170
|
enabledForDelivery?: boolean | null;
|
|
173
171
|
/**
|
|
@@ -176,13 +174,13 @@ interface DaySlot {
|
|
|
176
174
|
*/
|
|
177
175
|
timeSlots?: TimeSlot[];
|
|
178
176
|
}
|
|
179
|
-
interface TimeSlot {
|
|
177
|
+
export interface TimeSlot {
|
|
180
178
|
/** Starting time point of time slot */
|
|
181
179
|
from?: TimePoint;
|
|
182
180
|
/** End time point of time slot */
|
|
183
181
|
to?: TimePoint;
|
|
184
182
|
}
|
|
185
|
-
interface TimePoint {
|
|
183
|
+
export interface TimePoint {
|
|
186
184
|
/**
|
|
187
185
|
* Hours in format 0-23
|
|
188
186
|
* @max 23
|
|
@@ -194,7 +192,7 @@ interface TimePoint {
|
|
|
194
192
|
*/
|
|
195
193
|
minutes?: number | null;
|
|
196
194
|
}
|
|
197
|
-
interface TimeWindow {
|
|
195
|
+
export interface TimeWindow {
|
|
198
196
|
/** The day of week this availability relates to. */
|
|
199
197
|
day?: DayOfWeek;
|
|
200
198
|
/** The start time in time of day representation. */
|
|
@@ -204,7 +202,7 @@ interface TimeWindow {
|
|
|
204
202
|
/** Whether this timeWindow availability is enabled. */
|
|
205
203
|
enabled?: boolean | null;
|
|
206
204
|
}
|
|
207
|
-
declare enum DayOfWeek {
|
|
205
|
+
export declare enum DayOfWeek {
|
|
208
206
|
/** Monday. */
|
|
209
207
|
MON = "MON",
|
|
210
208
|
/** Tuesday. */
|
|
@@ -220,7 +218,7 @@ declare enum DayOfWeek {
|
|
|
220
218
|
/** Sunday. */
|
|
221
219
|
SUN = "SUN"
|
|
222
220
|
}
|
|
223
|
-
interface TimeOfDay {
|
|
221
|
+
export interface TimeOfDay {
|
|
224
222
|
/**
|
|
225
223
|
* Hours
|
|
226
224
|
* @max 23
|
|
@@ -232,7 +230,7 @@ interface TimeOfDay {
|
|
|
232
230
|
*/
|
|
233
231
|
minutes?: number;
|
|
234
232
|
}
|
|
235
|
-
interface ConditionalRates {
|
|
233
|
+
export interface ConditionalRates {
|
|
236
234
|
/**
|
|
237
235
|
* there is an AND logic between all the conditions. Empty conditions means true.
|
|
238
236
|
* For example: weight > 0 and weight <= 10
|
|
@@ -247,7 +245,7 @@ interface ConditionalRates {
|
|
|
247
245
|
/** When this flag is set to true, multiply the amount by the number of line items passed on the request. */
|
|
248
246
|
multiplyByQuantity?: boolean;
|
|
249
247
|
}
|
|
250
|
-
interface Condition {
|
|
248
|
+
export interface Condition {
|
|
251
249
|
type?: ConditionType;
|
|
252
250
|
/**
|
|
253
251
|
* The value in respective to the condition type
|
|
@@ -259,13 +257,13 @@ interface Condition {
|
|
|
259
257
|
value?: string;
|
|
260
258
|
operator?: LogicalOperator;
|
|
261
259
|
}
|
|
262
|
-
declare enum ConditionType {
|
|
260
|
+
export declare enum ConditionType {
|
|
263
261
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
264
262
|
BY_TOTAL_WEIGHT = "BY_TOTAL_WEIGHT",
|
|
265
263
|
BY_TOTAL_PRICE = "BY_TOTAL_PRICE",
|
|
266
264
|
BY_TOTAL_QUANTITY = "BY_TOTAL_QUANTITY"
|
|
267
265
|
}
|
|
268
|
-
declare enum LogicalOperator {
|
|
266
|
+
export declare enum LogicalOperator {
|
|
269
267
|
UNKNOWN_LOGICAL_OPERATOR_TYPE = "UNKNOWN_LOGICAL_OPERATOR_TYPE",
|
|
270
268
|
EQ = "EQ",
|
|
271
269
|
GT = "GT",
|
|
@@ -273,13 +271,13 @@ declare enum LogicalOperator {
|
|
|
273
271
|
LT = "LT",
|
|
274
272
|
LTE = "LTE"
|
|
275
273
|
}
|
|
276
|
-
interface CreateLocalDeliveryOptionRequest {
|
|
274
|
+
export interface CreateLocalDeliveryOptionRequest {
|
|
277
275
|
localDeliveryOption: LocalDeliveryOption;
|
|
278
276
|
}
|
|
279
|
-
interface CreateLocalDeliveryOptionResponse {
|
|
277
|
+
export interface CreateLocalDeliveryOptionResponse {
|
|
280
278
|
localDeliveryOption?: LocalDeliveryOption;
|
|
281
279
|
}
|
|
282
|
-
interface GetLocalDeliveryOptionRequest {
|
|
280
|
+
export interface GetLocalDeliveryOptionRequest {
|
|
283
281
|
/**
|
|
284
282
|
* @maxLength 50
|
|
285
283
|
* @deprecated
|
|
@@ -289,21 +287,21 @@ interface GetLocalDeliveryOptionRequest {
|
|
|
289
287
|
/** @maxLength 50 */
|
|
290
288
|
localDeliveryOptionId: string;
|
|
291
289
|
}
|
|
292
|
-
interface GetLocalDeliveryOptionResponse {
|
|
290
|
+
export interface GetLocalDeliveryOptionResponse {
|
|
293
291
|
localDeliveryOption?: LocalDeliveryOption;
|
|
294
292
|
}
|
|
295
|
-
interface ListLocalDeliveryOptionsRequest {
|
|
293
|
+
export interface ListLocalDeliveryOptionsRequest {
|
|
296
294
|
/** @format GUID */
|
|
297
295
|
externalId: string;
|
|
298
296
|
}
|
|
299
|
-
interface ListLocalDeliveryOptionsResponse {
|
|
297
|
+
export interface ListLocalDeliveryOptionsResponse {
|
|
300
298
|
localDeliveryOptions?: LocalDeliveryOption[];
|
|
301
299
|
}
|
|
302
|
-
interface QueryLocalDeliveryOptionsRequest {
|
|
300
|
+
export interface QueryLocalDeliveryOptionsRequest {
|
|
303
301
|
/** WQL expression */
|
|
304
302
|
query: QueryV2;
|
|
305
303
|
}
|
|
306
|
-
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
304
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
307
305
|
/** Paging options to limit and skip the number of items. */
|
|
308
306
|
paging?: Paging;
|
|
309
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`. */
|
|
@@ -335,13 +333,13 @@ interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
335
333
|
fieldsets?: string[];
|
|
336
334
|
}
|
|
337
335
|
/** @oneof */
|
|
338
|
-
interface QueryV2PagingMethodOneOf {
|
|
336
|
+
export interface QueryV2PagingMethodOneOf {
|
|
339
337
|
/** Paging options to limit and skip the number of items. */
|
|
340
338
|
paging?: Paging;
|
|
341
339
|
/** 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`. */
|
|
342
340
|
cursorPaging?: CursorPaging;
|
|
343
341
|
}
|
|
344
|
-
interface Sorting {
|
|
342
|
+
export interface Sorting {
|
|
345
343
|
/**
|
|
346
344
|
* Name of the field to sort by.
|
|
347
345
|
* @maxLength 512
|
|
@@ -350,17 +348,17 @@ interface Sorting {
|
|
|
350
348
|
/** Sort order. */
|
|
351
349
|
order?: SortOrder;
|
|
352
350
|
}
|
|
353
|
-
declare enum SortOrder {
|
|
351
|
+
export declare enum SortOrder {
|
|
354
352
|
ASC = "ASC",
|
|
355
353
|
DESC = "DESC"
|
|
356
354
|
}
|
|
357
|
-
interface Paging {
|
|
355
|
+
export interface Paging {
|
|
358
356
|
/** Number of items to load. */
|
|
359
357
|
limit?: number | null;
|
|
360
358
|
/** Number of items to skip in the current sort order. */
|
|
361
359
|
offset?: number | null;
|
|
362
360
|
}
|
|
363
|
-
interface CursorPaging {
|
|
361
|
+
export interface CursorPaging {
|
|
364
362
|
/**
|
|
365
363
|
* Maximum number of items to return in the results.
|
|
366
364
|
* @max 100
|
|
@@ -375,13 +373,13 @@ interface CursorPaging {
|
|
|
375
373
|
*/
|
|
376
374
|
cursor?: string | null;
|
|
377
375
|
}
|
|
378
|
-
interface QueryLocalDeliveryOptionsResponse {
|
|
376
|
+
export interface QueryLocalDeliveryOptionsResponse {
|
|
379
377
|
/** Retrieved local delivery options. */
|
|
380
378
|
localDeliveryOptions?: LocalDeliveryOption[];
|
|
381
379
|
/** Paging metadata. */
|
|
382
380
|
pagingMetadata?: CursorPagingMetadata;
|
|
383
381
|
}
|
|
384
|
-
interface CursorPagingMetadata {
|
|
382
|
+
export interface CursorPagingMetadata {
|
|
385
383
|
/** Number of items returned in current page. */
|
|
386
384
|
count?: number | null;
|
|
387
385
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -394,7 +392,7 @@ interface CursorPagingMetadata {
|
|
|
394
392
|
*/
|
|
395
393
|
hasNext?: boolean | null;
|
|
396
394
|
}
|
|
397
|
-
interface Cursors {
|
|
395
|
+
export interface Cursors {
|
|
398
396
|
/**
|
|
399
397
|
* Cursor string pointing to the next page in the list of results.
|
|
400
398
|
* @maxLength 16000
|
|
@@ -406,14 +404,14 @@ interface Cursors {
|
|
|
406
404
|
*/
|
|
407
405
|
prev?: string | null;
|
|
408
406
|
}
|
|
409
|
-
interface UpdateLocalDeliveryOptionRequest {
|
|
407
|
+
export interface UpdateLocalDeliveryOptionRequest {
|
|
410
408
|
/** LocalDeliveryOption to be updated, may be partial. */
|
|
411
409
|
localDeliveryOption: LocalDeliveryOption;
|
|
412
410
|
}
|
|
413
|
-
interface UpdateLocalDeliveryOptionResponse {
|
|
411
|
+
export interface UpdateLocalDeliveryOptionResponse {
|
|
414
412
|
localDeliveryOption?: LocalDeliveryOption;
|
|
415
413
|
}
|
|
416
|
-
interface DeleteLocalDeliveryOptionRequest {
|
|
414
|
+
export interface DeleteLocalDeliveryOptionRequest {
|
|
417
415
|
/**
|
|
418
416
|
* @maxLength 50
|
|
419
417
|
* @deprecated
|
|
@@ -423,35 +421,35 @@ interface DeleteLocalDeliveryOptionRequest {
|
|
|
423
421
|
/** @maxLength 50 */
|
|
424
422
|
localDeliveryOptionId: string;
|
|
425
423
|
}
|
|
426
|
-
interface DeleteLocalDeliveryOptionResponse {
|
|
424
|
+
export interface DeleteLocalDeliveryOptionResponse {
|
|
427
425
|
}
|
|
428
|
-
interface BulkCreateLocalDeliveryOptionRequest {
|
|
426
|
+
export interface BulkCreateLocalDeliveryOptionRequest {
|
|
429
427
|
/**
|
|
430
428
|
* @minSize 1
|
|
431
429
|
* @maxSize 100
|
|
432
430
|
*/
|
|
433
431
|
localDeliveryOptions: LocalDeliveryOption[];
|
|
434
432
|
}
|
|
435
|
-
interface BulkCreateLocalDeliveryOptionResponse {
|
|
433
|
+
export interface BulkCreateLocalDeliveryOptionResponse {
|
|
436
434
|
localDeliveryOptions?: LocalDeliveryOption[];
|
|
437
435
|
errors?: LocalDeliveryOptionError[];
|
|
438
436
|
}
|
|
439
|
-
interface LocalDeliveryOptionError {
|
|
437
|
+
export interface LocalDeliveryOptionError {
|
|
440
438
|
id?: string;
|
|
441
439
|
error?: string;
|
|
442
440
|
}
|
|
443
|
-
interface BulkUpdateLocalDeliveryOptionRequest {
|
|
441
|
+
export interface BulkUpdateLocalDeliveryOptionRequest {
|
|
444
442
|
/**
|
|
445
443
|
* @minSize 1
|
|
446
444
|
* @maxSize 100
|
|
447
445
|
*/
|
|
448
446
|
localDeliveryOptions: LocalDeliveryOption[];
|
|
449
447
|
}
|
|
450
|
-
interface BulkUpdateLocalDeliveryOptionResponse {
|
|
448
|
+
export interface BulkUpdateLocalDeliveryOptionResponse {
|
|
451
449
|
localDeliveryOptions?: LocalDeliveryOption[];
|
|
452
450
|
errors?: LocalDeliveryOptionError[];
|
|
453
451
|
}
|
|
454
|
-
interface BulkDeleteLocalDeliveryOptionRequest {
|
|
452
|
+
export interface BulkDeleteLocalDeliveryOptionRequest {
|
|
455
453
|
/**
|
|
456
454
|
* @format GUID
|
|
457
455
|
* @minSize 1
|
|
@@ -459,9 +457,83 @@ interface BulkDeleteLocalDeliveryOptionRequest {
|
|
|
459
457
|
*/
|
|
460
458
|
ids: string[];
|
|
461
459
|
}
|
|
462
|
-
interface BulkDeleteLocalDeliveryOptionResponse {
|
|
460
|
+
export interface BulkDeleteLocalDeliveryOptionResponse {
|
|
463
461
|
}
|
|
464
|
-
interface
|
|
462
|
+
export interface Empty {
|
|
463
|
+
}
|
|
464
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
465
|
+
createdEvent?: EntityCreatedEvent;
|
|
466
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
467
|
+
deletedEvent?: EntityDeletedEvent;
|
|
468
|
+
actionEvent?: ActionEvent;
|
|
469
|
+
/**
|
|
470
|
+
* Unique event ID.
|
|
471
|
+
* Allows clients to ignore duplicate webhooks.
|
|
472
|
+
*/
|
|
473
|
+
id?: string;
|
|
474
|
+
/**
|
|
475
|
+
* Assumes actions are also always typed to an entity_type
|
|
476
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
477
|
+
*/
|
|
478
|
+
entityFqdn?: string;
|
|
479
|
+
/**
|
|
480
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
481
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
482
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
483
|
+
*/
|
|
484
|
+
slug?: string;
|
|
485
|
+
/** ID of the entity associated with the event. */
|
|
486
|
+
entityId?: string;
|
|
487
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
488
|
+
eventTime?: Date | null;
|
|
489
|
+
/**
|
|
490
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
491
|
+
* (for example, GDPR).
|
|
492
|
+
*/
|
|
493
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
494
|
+
/** If present, indicates the action that triggered the event. */
|
|
495
|
+
originatedFrom?: string | null;
|
|
496
|
+
/**
|
|
497
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
498
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
499
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
500
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
501
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
502
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
503
|
+
*/
|
|
504
|
+
entityEventSequence?: string | null;
|
|
505
|
+
}
|
|
506
|
+
/** @oneof */
|
|
507
|
+
export interface DomainEventBodyOneOf {
|
|
508
|
+
createdEvent?: EntityCreatedEvent;
|
|
509
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
510
|
+
deletedEvent?: EntityDeletedEvent;
|
|
511
|
+
actionEvent?: ActionEvent;
|
|
512
|
+
}
|
|
513
|
+
export interface EntityCreatedEvent {
|
|
514
|
+
entityAsJson?: string;
|
|
515
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
516
|
+
restoreInfo?: RestoreInfo;
|
|
517
|
+
}
|
|
518
|
+
export interface RestoreInfo {
|
|
519
|
+
deletedDate?: Date | null;
|
|
520
|
+
}
|
|
521
|
+
export interface EntityUpdatedEvent {
|
|
522
|
+
/**
|
|
523
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
524
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
525
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
526
|
+
*/
|
|
527
|
+
currentEntityAsJson?: string;
|
|
528
|
+
}
|
|
529
|
+
export interface EntityDeletedEvent {
|
|
530
|
+
/** Entity that was deleted */
|
|
531
|
+
deletedEntityAsJson?: string | null;
|
|
532
|
+
}
|
|
533
|
+
export interface ActionEvent {
|
|
534
|
+
bodyAsJson?: string;
|
|
535
|
+
}
|
|
536
|
+
export interface AddDeliveryRegionRequest {
|
|
465
537
|
/** @format GUID */
|
|
466
538
|
deliveryRegionId: string;
|
|
467
539
|
/** @format GUID */
|
|
@@ -469,10 +541,10 @@ interface AddDeliveryRegionRequest {
|
|
|
469
541
|
/** Revision of the PickupLocation */
|
|
470
542
|
revision?: string | null;
|
|
471
543
|
}
|
|
472
|
-
interface AddDeliveryRegionResponse {
|
|
544
|
+
export interface AddDeliveryRegionResponse {
|
|
473
545
|
localDeliveryOption?: LocalDeliveryOption;
|
|
474
546
|
}
|
|
475
|
-
interface RemoveDeliveryRegionRequest {
|
|
547
|
+
export interface RemoveDeliveryRegionRequest {
|
|
476
548
|
/** @format GUID */
|
|
477
549
|
deliveryRegionId: string;
|
|
478
550
|
/** @format GUID */
|
|
@@ -480,36 +552,76 @@ interface RemoveDeliveryRegionRequest {
|
|
|
480
552
|
/** Revision of the PickupLocation */
|
|
481
553
|
revision?: string | null;
|
|
482
554
|
}
|
|
483
|
-
interface RemoveDeliveryRegionResponse {
|
|
555
|
+
export interface RemoveDeliveryRegionResponse {
|
|
484
556
|
localDeliveryOption?: LocalDeliveryOption;
|
|
485
557
|
}
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
558
|
+
export interface MessageEnvelope {
|
|
559
|
+
/**
|
|
560
|
+
* App instance ID.
|
|
561
|
+
* @format GUID
|
|
562
|
+
*/
|
|
563
|
+
instanceId?: string | null;
|
|
564
|
+
/**
|
|
565
|
+
* Event type.
|
|
566
|
+
* @maxLength 150
|
|
567
|
+
*/
|
|
568
|
+
eventType?: string;
|
|
569
|
+
/** The identification type and identity data. */
|
|
570
|
+
identity?: IdentificationData;
|
|
571
|
+
/** Stringify payload. */
|
|
572
|
+
data?: string;
|
|
573
|
+
}
|
|
574
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
575
|
+
/**
|
|
576
|
+
* ID of a site visitor that has not logged in to the site.
|
|
577
|
+
* @format GUID
|
|
578
|
+
*/
|
|
579
|
+
anonymousVisitorId?: string;
|
|
580
|
+
/**
|
|
581
|
+
* ID of a site visitor that has logged in to the site.
|
|
582
|
+
* @format GUID
|
|
583
|
+
*/
|
|
584
|
+
memberId?: string;
|
|
585
|
+
/**
|
|
586
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
587
|
+
* @format GUID
|
|
588
|
+
*/
|
|
589
|
+
wixUserId?: string;
|
|
590
|
+
/**
|
|
591
|
+
* ID of an app.
|
|
592
|
+
* @format GUID
|
|
593
|
+
*/
|
|
594
|
+
appId?: string;
|
|
595
|
+
/** @readonly */
|
|
596
|
+
identityType?: WebhookIdentityType;
|
|
597
|
+
}
|
|
598
|
+
/** @oneof */
|
|
599
|
+
export interface IdentificationDataIdOneOf {
|
|
600
|
+
/**
|
|
601
|
+
* ID of a site visitor that has not logged in to the site.
|
|
602
|
+
* @format GUID
|
|
603
|
+
*/
|
|
604
|
+
anonymousVisitorId?: string;
|
|
605
|
+
/**
|
|
606
|
+
* ID of a site visitor that has logged in to the site.
|
|
607
|
+
* @format GUID
|
|
608
|
+
*/
|
|
609
|
+
memberId?: string;
|
|
610
|
+
/**
|
|
611
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
612
|
+
* @format GUID
|
|
613
|
+
*/
|
|
614
|
+
wixUserId?: string;
|
|
615
|
+
/**
|
|
616
|
+
* ID of an app.
|
|
617
|
+
* @format GUID
|
|
618
|
+
*/
|
|
619
|
+
appId?: string;
|
|
620
|
+
}
|
|
621
|
+
export declare enum WebhookIdentityType {
|
|
622
|
+
UNKNOWN = "UNKNOWN",
|
|
623
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
624
|
+
MEMBER = "MEMBER",
|
|
625
|
+
WIX_USER = "WIX_USER",
|
|
626
|
+
APP = "APP"
|
|
627
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = exports.LogicalOperator = exports.ConditionType = exports.DayOfWeek = exports.LengthUnit = void 0;
|
|
4
|
+
var LengthUnit;
|
|
5
|
+
(function (LengthUnit) {
|
|
6
|
+
/** Length unit can't be classified, due to an error */
|
|
7
|
+
LengthUnit["UNSPECIFIED_LENGTH_UNIT"] = "UNSPECIFIED_LENGTH_UNIT";
|
|
8
|
+
/** Kilometers */
|
|
9
|
+
LengthUnit["KM"] = "KM";
|
|
10
|
+
/** Miles */
|
|
11
|
+
LengthUnit["MI"] = "MI";
|
|
12
|
+
})(LengthUnit || (exports.LengthUnit = LengthUnit = {}));
|
|
13
|
+
var DayOfWeek;
|
|
14
|
+
(function (DayOfWeek) {
|
|
15
|
+
/** Monday. */
|
|
16
|
+
DayOfWeek["MON"] = "MON";
|
|
17
|
+
/** Tuesday. */
|
|
18
|
+
DayOfWeek["TUE"] = "TUE";
|
|
19
|
+
/** Wednesday. */
|
|
20
|
+
DayOfWeek["WED"] = "WED";
|
|
21
|
+
/** Thursday. */
|
|
22
|
+
DayOfWeek["THU"] = "THU";
|
|
23
|
+
/** Friday. */
|
|
24
|
+
DayOfWeek["FRI"] = "FRI";
|
|
25
|
+
/** Saturday. */
|
|
26
|
+
DayOfWeek["SAT"] = "SAT";
|
|
27
|
+
/** Sunday. */
|
|
28
|
+
DayOfWeek["SUN"] = "SUN";
|
|
29
|
+
})(DayOfWeek || (exports.DayOfWeek = DayOfWeek = {}));
|
|
30
|
+
var ConditionType;
|
|
31
|
+
(function (ConditionType) {
|
|
32
|
+
ConditionType["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
33
|
+
ConditionType["BY_TOTAL_WEIGHT"] = "BY_TOTAL_WEIGHT";
|
|
34
|
+
ConditionType["BY_TOTAL_PRICE"] = "BY_TOTAL_PRICE";
|
|
35
|
+
ConditionType["BY_TOTAL_QUANTITY"] = "BY_TOTAL_QUANTITY";
|
|
36
|
+
})(ConditionType || (exports.ConditionType = ConditionType = {}));
|
|
37
|
+
var LogicalOperator;
|
|
38
|
+
(function (LogicalOperator) {
|
|
39
|
+
LogicalOperator["UNKNOWN_LOGICAL_OPERATOR_TYPE"] = "UNKNOWN_LOGICAL_OPERATOR_TYPE";
|
|
40
|
+
LogicalOperator["EQ"] = "EQ";
|
|
41
|
+
LogicalOperator["GT"] = "GT";
|
|
42
|
+
LogicalOperator["GTE"] = "GTE";
|
|
43
|
+
LogicalOperator["LT"] = "LT";
|
|
44
|
+
LogicalOperator["LTE"] = "LTE";
|
|
45
|
+
})(LogicalOperator || (exports.LogicalOperator = LogicalOperator = {}));
|
|
46
|
+
var SortOrder;
|
|
47
|
+
(function (SortOrder) {
|
|
48
|
+
SortOrder["ASC"] = "ASC";
|
|
49
|
+
SortOrder["DESC"] = "DESC";
|
|
50
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
51
|
+
var WebhookIdentityType;
|
|
52
|
+
(function (WebhookIdentityType) {
|
|
53
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
54
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
55
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
56
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
57
|
+
WebhookIdentityType["APP"] = "APP";
|
|
58
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
59
|
+
//# sourceMappingURL=ecom-v1-local-delivery-option-local-delivery-options.types.js.map
|
package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ecom-v1-local-delivery-option-local-delivery-options.types.js","sourceRoot":"","sources":["../../../../src/ecom-v1-local-delivery-option-local-delivery-options.types.ts"],"names":[],"mappings":";;;AAiIA,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,uDAAuD;IACvD,iEAAmD,CAAA;IACnD,iBAAiB;IACjB,uBAAS,CAAA;IACT,YAAY;IACZ,uBAAS,CAAA;AACX,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAmFD,IAAY,SAeX;AAfD,WAAY,SAAS;IACnB,cAAc;IACd,wBAAW,CAAA;IACX,eAAe;IACf,wBAAW,CAAA;IACX,iBAAiB;IACjB,wBAAW,CAAA;IACX,gBAAgB;IAChB,wBAAW,CAAA;IACX,cAAc;IACd,wBAAW,CAAA;IACX,gBAAgB;IAChB,wBAAW,CAAA;IACX,cAAc;IACd,wBAAW,CAAA;AACb,CAAC,EAfW,SAAS,yBAAT,SAAS,QAepB;AA4CD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,8CAA6B,CAAA;IAC7B,oDAAmC,CAAA;IACnC,kDAAiC,CAAA;IACjC,wDAAuC,CAAA;AACzC,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,kFAA+D,CAAA;IAC/D,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,8BAAW,CAAA;AACb,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AAyFD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAwSD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|