@wix/auto_sdk_ecom_local-delivery-options 1.0.3 → 1.0.5
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/ecom-v1-local-delivery-option-local-delivery-options.universal-DPjRka8i.d.mts +775 -0
- package/build/ecom-v1-local-delivery-option-local-delivery-options.universal-DPjRka8i.d.ts +775 -0
- package/build/index.d.mts +82 -0
- package/build/index.d.ts +82 -0
- package/build/index.js +1223 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1183 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/ecom-v1-local-delivery-option-local-delivery-options.universal-DPjRka8i.d.mts +775 -0
- package/build/internal/ecom-v1-local-delivery-option-local-delivery-options.universal-DPjRka8i.d.ts +775 -0
- package/build/internal/index.d.mts +82 -0
- package/build/internal/index.d.ts +82 -0
- package/build/internal/index.js +1223 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1183 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/{cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → meta.d.mts} +85 -197
- package/build/{cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → internal/meta.d.ts} +85 -197
- package/build/internal/meta.js +855 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +818 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{es/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → meta.d.mts} +85 -197
- package/build/{internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → meta.d.ts} +85 -197
- package/build/meta.js +855 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +818 -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-local-delivery-option-local-delivery-options.context.d.ts +0 -15
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.js +0 -24
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.d.ts +0 -23
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.js +0 -621
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.d.ts +0 -29
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js +0 -239
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.d.ts +0 -70
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.js +0 -79
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.js +0 -59
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.d.ts +0 -1113
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -771
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.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-local-delivery-option-local-delivery-options.context.d.ts +0 -15
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.js +0 -15
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.js.map +0 -1
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.d.ts +0 -23
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.js +0 -607
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.js.map +0 -1
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.d.ts +0 -29
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js +0 -202
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js.map +0 -1
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.d.ts +0 -70
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.js +0 -59
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.js.map +0 -1
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.js +0 -56
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.js.map +0 -1
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.d.ts +0 -1113
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -734
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.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-local-delivery-option-local-delivery-options.context.d.ts +0 -15
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.js +0 -24
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.d.ts +0 -23
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.js +0 -621
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.d.ts +0 -29
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js +0 -239
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.d.ts +0 -70
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.js +0 -79
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.js +0 -59
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.d.ts +0 -1113
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -771
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.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-local-delivery-option-local-delivery-options.context.d.ts +0 -15
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.js +0 -15
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.js.map +0 -1
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.d.ts +0 -23
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.js +0 -607
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.js.map +0 -1
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.d.ts +0 -29
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js +0 -202
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.d.ts +0 -70
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.js +0 -59
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.js.map +0 -1
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.js +0 -56
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.js.map +0 -1
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.d.ts +0 -1113
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -734
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js.map +0 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { w as CreateLocalDeliveryOptionRequest$1, x as CreateLocalDeliveryOptionResponse$1, y as GetLocalDeliveryOptionRequest$1, z as GetLocalDeliveryOptionResponse$1, E as ListLocalDeliveryOptionsRequest$1, a as ListLocalDeliveryOptionsResponse$1, Q as QueryLocalDeliveryOptionsRequest$1, K as QueryLocalDeliveryOptionsResponse$1, O as UpdateLocalDeliveryOptionRequest$1, V as UpdateLocalDeliveryOptionResponse$1, X as DeleteLocalDeliveryOptionRequest$1, Y as DeleteLocalDeliveryOptionResponse$1, _ as BulkCreateLocalDeliveryOptionRequest$1, B as BulkCreateLocalDeliveryOptionResponse$1, a0 as BulkUpdateLocalDeliveryOptionRequest$1, c as BulkUpdateLocalDeliveryOptionResponse$1, a1 as BulkDeleteLocalDeliveryOptionRequest$1, a2 as BulkDeleteLocalDeliveryOptionResponse$1, ab as AddDeliveryRegionRequest$1, d as AddDeliveryRegionResponse$1, ac as RemoveDeliveryRegionRequest$1, e as RemoveDeliveryRegionResponse$1 } from './ecom-v1-local-delivery-option-local-delivery-options.universal-DPjRka8i.mjs';
|
|
2
|
+
|
|
3
|
+
interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
|
|
2
4
|
zipConfig?: ZipCodeConfig;
|
|
3
5
|
radiusConfig?: RadiusConfig;
|
|
4
6
|
customAreaConfig?: CustomAreaConfig;
|
|
@@ -59,18 +61,18 @@ export interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
|
|
|
59
61
|
updatedDate?: Date | null;
|
|
60
62
|
/**
|
|
61
63
|
* This local delivery is active for the following delivery regions.
|
|
62
|
-
* @maxSize
|
|
64
|
+
* @maxSize 50
|
|
63
65
|
* @format GUID
|
|
64
66
|
*/
|
|
65
67
|
deliveryRegionIds?: string[];
|
|
66
68
|
}
|
|
67
69
|
/** @oneof */
|
|
68
|
-
|
|
70
|
+
interface LocalDeliveryOptionConfigOneOf {
|
|
69
71
|
zipConfig?: ZipCodeConfig;
|
|
70
72
|
radiusConfig?: RadiusConfig;
|
|
71
73
|
customAreaConfig?: CustomAreaConfig;
|
|
72
74
|
}
|
|
73
|
-
|
|
75
|
+
interface Destination {
|
|
74
76
|
/**
|
|
75
77
|
* Country ISO code
|
|
76
78
|
* @format COUNTRY
|
|
@@ -82,7 +84,7 @@ export interface Destination {
|
|
|
82
84
|
*/
|
|
83
85
|
subdivisions?: string[];
|
|
84
86
|
}
|
|
85
|
-
|
|
87
|
+
interface ZipCodeConfig {
|
|
86
88
|
/**
|
|
87
89
|
* List of ZipCodes and ZipCode regexes. Examples: 10001, 10002 or 1000*
|
|
88
90
|
* @minLength 1
|
|
@@ -90,7 +92,7 @@ export interface ZipCodeConfig {
|
|
|
90
92
|
*/
|
|
91
93
|
zipCodes?: string[];
|
|
92
94
|
}
|
|
93
|
-
|
|
95
|
+
interface RadiusConfig {
|
|
94
96
|
/** Delivery-from address */
|
|
95
97
|
address?: LocalDeliveryAddress;
|
|
96
98
|
/**
|
|
@@ -105,7 +107,7 @@ export interface RadiusConfig {
|
|
|
105
107
|
*/
|
|
106
108
|
lengthUnit?: LengthUnit;
|
|
107
109
|
}
|
|
108
|
-
|
|
110
|
+
interface LocalDeliveryAddress {
|
|
109
111
|
/**
|
|
110
112
|
* A string containing the human-readable address of this location
|
|
111
113
|
* @maxLength 400
|
|
@@ -114,13 +116,13 @@ export interface LocalDeliveryAddress {
|
|
|
114
116
|
/** coordinates of the physical address */
|
|
115
117
|
geocode?: AddressLocation;
|
|
116
118
|
}
|
|
117
|
-
|
|
119
|
+
interface AddressLocation {
|
|
118
120
|
/** Address latitude. */
|
|
119
121
|
latitude?: number | null;
|
|
120
122
|
/** Address longitude. */
|
|
121
123
|
longitude?: number | null;
|
|
122
124
|
}
|
|
123
|
-
|
|
125
|
+
declare enum LengthUnit {
|
|
124
126
|
/** Length unit can't be classified, due to an error */
|
|
125
127
|
UNSPECIFIED_LENGTH_UNIT = "UNSPECIFIED_LENGTH_UNIT",
|
|
126
128
|
/** Kilometers */
|
|
@@ -128,14 +130,14 @@ export declare enum LengthUnit {
|
|
|
128
130
|
/** Miles */
|
|
129
131
|
MI = "MI"
|
|
130
132
|
}
|
|
131
|
-
|
|
133
|
+
interface CustomAreaConfig {
|
|
132
134
|
/**
|
|
133
135
|
* Geocodes of the polygon defining the delivery area.
|
|
134
136
|
* @maxSize 300
|
|
135
137
|
*/
|
|
136
138
|
geocodes?: AddressLocation[];
|
|
137
139
|
}
|
|
138
|
-
|
|
140
|
+
interface ScheduledDelivery {
|
|
139
141
|
/**
|
|
140
142
|
* Days config which contain days when delivery is enabled with it's time slots
|
|
141
143
|
* @deprecated Days config which contain days when delivery is enabled with it's time slots
|
|
@@ -156,7 +158,7 @@ export interface ScheduledDelivery {
|
|
|
156
158
|
*/
|
|
157
159
|
timeWindows?: TimeWindow[];
|
|
158
160
|
}
|
|
159
|
-
|
|
161
|
+
interface Days {
|
|
160
162
|
monday?: DaySlot;
|
|
161
163
|
tuesday?: DaySlot;
|
|
162
164
|
wednesday?: DaySlot;
|
|
@@ -165,7 +167,7 @@ export interface Days {
|
|
|
165
167
|
saturday?: DaySlot;
|
|
166
168
|
sunday?: DaySlot;
|
|
167
169
|
}
|
|
168
|
-
|
|
170
|
+
interface DaySlot {
|
|
169
171
|
/** Shows whether this day slot is enabled for delivery */
|
|
170
172
|
enabledForDelivery?: boolean | null;
|
|
171
173
|
/**
|
|
@@ -174,13 +176,13 @@ export interface DaySlot {
|
|
|
174
176
|
*/
|
|
175
177
|
timeSlots?: TimeSlot[];
|
|
176
178
|
}
|
|
177
|
-
|
|
179
|
+
interface TimeSlot {
|
|
178
180
|
/** Starting time point of time slot */
|
|
179
181
|
from?: TimePoint;
|
|
180
182
|
/** End time point of time slot */
|
|
181
183
|
to?: TimePoint;
|
|
182
184
|
}
|
|
183
|
-
|
|
185
|
+
interface TimePoint {
|
|
184
186
|
/**
|
|
185
187
|
* Hours in format 0-23
|
|
186
188
|
* @max 23
|
|
@@ -192,7 +194,7 @@ export interface TimePoint {
|
|
|
192
194
|
*/
|
|
193
195
|
minutes?: number | null;
|
|
194
196
|
}
|
|
195
|
-
|
|
197
|
+
interface TimeWindow {
|
|
196
198
|
/** The day of week this availability relates to. */
|
|
197
199
|
day?: DayOfWeek;
|
|
198
200
|
/** The start time in time of day representation. */
|
|
@@ -202,7 +204,7 @@ export interface TimeWindow {
|
|
|
202
204
|
/** Whether this timeWindow availability is enabled. */
|
|
203
205
|
enabled?: boolean | null;
|
|
204
206
|
}
|
|
205
|
-
|
|
207
|
+
declare enum DayOfWeek {
|
|
206
208
|
/** Monday. */
|
|
207
209
|
MON = "MON",
|
|
208
210
|
/** Tuesday. */
|
|
@@ -218,7 +220,7 @@ export declare enum DayOfWeek {
|
|
|
218
220
|
/** Sunday. */
|
|
219
221
|
SUN = "SUN"
|
|
220
222
|
}
|
|
221
|
-
|
|
223
|
+
interface TimeOfDay {
|
|
222
224
|
/**
|
|
223
225
|
* Hours
|
|
224
226
|
* @max 23
|
|
@@ -230,7 +232,7 @@ export interface TimeOfDay {
|
|
|
230
232
|
*/
|
|
231
233
|
minutes?: number;
|
|
232
234
|
}
|
|
233
|
-
|
|
235
|
+
interface ConditionalRates {
|
|
234
236
|
/**
|
|
235
237
|
* there is an AND logic between all the conditions. Empty conditions means true.
|
|
236
238
|
* For example: weight > 0 and weight <= 10
|
|
@@ -245,7 +247,7 @@ export interface ConditionalRates {
|
|
|
245
247
|
/** When this flag is set to true, multiply the amount by the number of line items passed on the request. */
|
|
246
248
|
multiplyByQuantity?: boolean;
|
|
247
249
|
}
|
|
248
|
-
|
|
250
|
+
interface Condition {
|
|
249
251
|
type?: ConditionType;
|
|
250
252
|
/**
|
|
251
253
|
* The value in respective to the condition type
|
|
@@ -257,13 +259,13 @@ export interface Condition {
|
|
|
257
259
|
value?: string;
|
|
258
260
|
operator?: LogicalOperator;
|
|
259
261
|
}
|
|
260
|
-
|
|
262
|
+
declare enum ConditionType {
|
|
261
263
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
262
264
|
BY_TOTAL_WEIGHT = "BY_TOTAL_WEIGHT",
|
|
263
265
|
BY_TOTAL_PRICE = "BY_TOTAL_PRICE",
|
|
264
266
|
BY_TOTAL_QUANTITY = "BY_TOTAL_QUANTITY"
|
|
265
267
|
}
|
|
266
|
-
|
|
268
|
+
declare enum LogicalOperator {
|
|
267
269
|
UNKNOWN_LOGICAL_OPERATOR_TYPE = "UNKNOWN_LOGICAL_OPERATOR_TYPE",
|
|
268
270
|
EQ = "EQ",
|
|
269
271
|
GT = "GT",
|
|
@@ -271,13 +273,13 @@ export declare enum LogicalOperator {
|
|
|
271
273
|
LT = "LT",
|
|
272
274
|
LTE = "LTE"
|
|
273
275
|
}
|
|
274
|
-
|
|
276
|
+
interface CreateLocalDeliveryOptionRequest {
|
|
275
277
|
localDeliveryOption: LocalDeliveryOption;
|
|
276
278
|
}
|
|
277
|
-
|
|
279
|
+
interface CreateLocalDeliveryOptionResponse {
|
|
278
280
|
localDeliveryOption?: LocalDeliveryOption;
|
|
279
281
|
}
|
|
280
|
-
|
|
282
|
+
interface GetLocalDeliveryOptionRequest {
|
|
281
283
|
/**
|
|
282
284
|
* @maxLength 50
|
|
283
285
|
* @deprecated
|
|
@@ -287,21 +289,21 @@ export interface GetLocalDeliveryOptionRequest {
|
|
|
287
289
|
/** @maxLength 50 */
|
|
288
290
|
localDeliveryOptionId: string;
|
|
289
291
|
}
|
|
290
|
-
|
|
292
|
+
interface GetLocalDeliveryOptionResponse {
|
|
291
293
|
localDeliveryOption?: LocalDeliveryOption;
|
|
292
294
|
}
|
|
293
|
-
|
|
295
|
+
interface ListLocalDeliveryOptionsRequest {
|
|
294
296
|
/** @format GUID */
|
|
295
297
|
externalId: string;
|
|
296
298
|
}
|
|
297
|
-
|
|
299
|
+
interface ListLocalDeliveryOptionsResponse {
|
|
298
300
|
localDeliveryOptions?: LocalDeliveryOption[];
|
|
299
301
|
}
|
|
300
|
-
|
|
302
|
+
interface QueryLocalDeliveryOptionsRequest {
|
|
301
303
|
/** WQL expression */
|
|
302
304
|
query: QueryV2;
|
|
303
305
|
}
|
|
304
|
-
|
|
306
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
305
307
|
/** Paging options to limit and skip the number of items. */
|
|
306
308
|
paging?: Paging;
|
|
307
309
|
/** 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`. */
|
|
@@ -333,13 +335,13 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
333
335
|
fieldsets?: string[];
|
|
334
336
|
}
|
|
335
337
|
/** @oneof */
|
|
336
|
-
|
|
338
|
+
interface QueryV2PagingMethodOneOf {
|
|
337
339
|
/** Paging options to limit and skip the number of items. */
|
|
338
340
|
paging?: Paging;
|
|
339
341
|
/** 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`. */
|
|
340
342
|
cursorPaging?: CursorPaging;
|
|
341
343
|
}
|
|
342
|
-
|
|
344
|
+
interface Sorting {
|
|
343
345
|
/**
|
|
344
346
|
* Name of the field to sort by.
|
|
345
347
|
* @maxLength 512
|
|
@@ -348,17 +350,17 @@ export interface Sorting {
|
|
|
348
350
|
/** Sort order. */
|
|
349
351
|
order?: SortOrder;
|
|
350
352
|
}
|
|
351
|
-
|
|
353
|
+
declare enum SortOrder {
|
|
352
354
|
ASC = "ASC",
|
|
353
355
|
DESC = "DESC"
|
|
354
356
|
}
|
|
355
|
-
|
|
357
|
+
interface Paging {
|
|
356
358
|
/** Number of items to load. */
|
|
357
359
|
limit?: number | null;
|
|
358
360
|
/** Number of items to skip in the current sort order. */
|
|
359
361
|
offset?: number | null;
|
|
360
362
|
}
|
|
361
|
-
|
|
363
|
+
interface CursorPaging {
|
|
362
364
|
/**
|
|
363
365
|
* Maximum number of items to return in the results.
|
|
364
366
|
* @max 100
|
|
@@ -373,13 +375,13 @@ export interface CursorPaging {
|
|
|
373
375
|
*/
|
|
374
376
|
cursor?: string | null;
|
|
375
377
|
}
|
|
376
|
-
|
|
378
|
+
interface QueryLocalDeliveryOptionsResponse {
|
|
377
379
|
/** Retrieved local delivery options. */
|
|
378
380
|
localDeliveryOptions?: LocalDeliveryOption[];
|
|
379
381
|
/** Paging metadata. */
|
|
380
382
|
pagingMetadata?: CursorPagingMetadata;
|
|
381
383
|
}
|
|
382
|
-
|
|
384
|
+
interface CursorPagingMetadata {
|
|
383
385
|
/** Number of items returned in current page. */
|
|
384
386
|
count?: number | null;
|
|
385
387
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -392,7 +394,7 @@ export interface CursorPagingMetadata {
|
|
|
392
394
|
*/
|
|
393
395
|
hasNext?: boolean | null;
|
|
394
396
|
}
|
|
395
|
-
|
|
397
|
+
interface Cursors {
|
|
396
398
|
/**
|
|
397
399
|
* Cursor string pointing to the next page in the list of results.
|
|
398
400
|
* @maxLength 16000
|
|
@@ -404,14 +406,14 @@ export interface Cursors {
|
|
|
404
406
|
*/
|
|
405
407
|
prev?: string | null;
|
|
406
408
|
}
|
|
407
|
-
|
|
409
|
+
interface UpdateLocalDeliveryOptionRequest {
|
|
408
410
|
/** LocalDeliveryOption to be updated, may be partial. */
|
|
409
411
|
localDeliveryOption: LocalDeliveryOption;
|
|
410
412
|
}
|
|
411
|
-
|
|
413
|
+
interface UpdateLocalDeliveryOptionResponse {
|
|
412
414
|
localDeliveryOption?: LocalDeliveryOption;
|
|
413
415
|
}
|
|
414
|
-
|
|
416
|
+
interface DeleteLocalDeliveryOptionRequest {
|
|
415
417
|
/**
|
|
416
418
|
* @maxLength 50
|
|
417
419
|
* @deprecated
|
|
@@ -421,35 +423,35 @@ export interface DeleteLocalDeliveryOptionRequest {
|
|
|
421
423
|
/** @maxLength 50 */
|
|
422
424
|
localDeliveryOptionId: string;
|
|
423
425
|
}
|
|
424
|
-
|
|
426
|
+
interface DeleteLocalDeliveryOptionResponse {
|
|
425
427
|
}
|
|
426
|
-
|
|
428
|
+
interface BulkCreateLocalDeliveryOptionRequest {
|
|
427
429
|
/**
|
|
428
430
|
* @minSize 1
|
|
429
431
|
* @maxSize 100
|
|
430
432
|
*/
|
|
431
433
|
localDeliveryOptions: LocalDeliveryOption[];
|
|
432
434
|
}
|
|
433
|
-
|
|
435
|
+
interface BulkCreateLocalDeliveryOptionResponse {
|
|
434
436
|
localDeliveryOptions?: LocalDeliveryOption[];
|
|
435
437
|
errors?: LocalDeliveryOptionError[];
|
|
436
438
|
}
|
|
437
|
-
|
|
439
|
+
interface LocalDeliveryOptionError {
|
|
438
440
|
id?: string;
|
|
439
441
|
error?: string;
|
|
440
442
|
}
|
|
441
|
-
|
|
443
|
+
interface BulkUpdateLocalDeliveryOptionRequest {
|
|
442
444
|
/**
|
|
443
445
|
* @minSize 1
|
|
444
446
|
* @maxSize 100
|
|
445
447
|
*/
|
|
446
448
|
localDeliveryOptions: LocalDeliveryOption[];
|
|
447
449
|
}
|
|
448
|
-
|
|
450
|
+
interface BulkUpdateLocalDeliveryOptionResponse {
|
|
449
451
|
localDeliveryOptions?: LocalDeliveryOption[];
|
|
450
452
|
errors?: LocalDeliveryOptionError[];
|
|
451
453
|
}
|
|
452
|
-
|
|
454
|
+
interface BulkDeleteLocalDeliveryOptionRequest {
|
|
453
455
|
/**
|
|
454
456
|
* @format GUID
|
|
455
457
|
* @minSize 1
|
|
@@ -457,83 +459,9 @@ export interface BulkDeleteLocalDeliveryOptionRequest {
|
|
|
457
459
|
*/
|
|
458
460
|
ids: string[];
|
|
459
461
|
}
|
|
460
|
-
|
|
461
|
-
}
|
|
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;
|
|
462
|
+
interface BulkDeleteLocalDeliveryOptionResponse {
|
|
505
463
|
}
|
|
506
|
-
|
|
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 {
|
|
464
|
+
interface AddDeliveryRegionRequest {
|
|
537
465
|
/** @format GUID */
|
|
538
466
|
deliveryRegionId: string;
|
|
539
467
|
/** @format GUID */
|
|
@@ -541,10 +469,10 @@ export interface AddDeliveryRegionRequest {
|
|
|
541
469
|
/** Revision of the PickupLocation */
|
|
542
470
|
revision?: string | null;
|
|
543
471
|
}
|
|
544
|
-
|
|
472
|
+
interface AddDeliveryRegionResponse {
|
|
545
473
|
localDeliveryOption?: LocalDeliveryOption;
|
|
546
474
|
}
|
|
547
|
-
|
|
475
|
+
interface RemoveDeliveryRegionRequest {
|
|
548
476
|
/** @format GUID */
|
|
549
477
|
deliveryRegionId: string;
|
|
550
478
|
/** @format GUID */
|
|
@@ -552,76 +480,36 @@ export interface RemoveDeliveryRegionRequest {
|
|
|
552
480
|
/** Revision of the PickupLocation */
|
|
553
481
|
revision?: string | null;
|
|
554
482
|
}
|
|
555
|
-
|
|
483
|
+
interface RemoveDeliveryRegionResponse {
|
|
556
484
|
localDeliveryOption?: LocalDeliveryOption;
|
|
557
485
|
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
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
|
-
}
|
|
486
|
+
|
|
487
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
488
|
+
getUrl: (context: any) => string;
|
|
489
|
+
httpMethod: K;
|
|
490
|
+
path: string;
|
|
491
|
+
pathParams: M;
|
|
492
|
+
__requestType: T;
|
|
493
|
+
__originalRequestType: S;
|
|
494
|
+
__responseType: Q;
|
|
495
|
+
__originalResponseType: R;
|
|
496
|
+
};
|
|
497
|
+
declare function createLocalDeliveryOption(): __PublicMethodMetaInfo<'POST', {}, CreateLocalDeliveryOptionRequest$1, CreateLocalDeliveryOptionRequest, CreateLocalDeliveryOptionResponse$1, CreateLocalDeliveryOptionResponse>;
|
|
498
|
+
declare function getLocalDeliveryOption(): __PublicMethodMetaInfo<'GET', {
|
|
499
|
+
localDeliveryOptionId: string;
|
|
500
|
+
}, GetLocalDeliveryOptionRequest$1, GetLocalDeliveryOptionRequest, GetLocalDeliveryOptionResponse$1, GetLocalDeliveryOptionResponse>;
|
|
501
|
+
declare function listLocalDeliveryOptions(): __PublicMethodMetaInfo<'GET', {}, ListLocalDeliveryOptionsRequest$1, ListLocalDeliveryOptionsRequest, ListLocalDeliveryOptionsResponse$1, ListLocalDeliveryOptionsResponse>;
|
|
502
|
+
declare function queryLocalDeliveryOptions(): __PublicMethodMetaInfo<'POST', {}, QueryLocalDeliveryOptionsRequest$1, QueryLocalDeliveryOptionsRequest, QueryLocalDeliveryOptionsResponse$1, QueryLocalDeliveryOptionsResponse>;
|
|
503
|
+
declare function updateLocalDeliveryOption(): __PublicMethodMetaInfo<'PATCH', {
|
|
504
|
+
localDeliveryOptionId: string;
|
|
505
|
+
}, UpdateLocalDeliveryOptionRequest$1, UpdateLocalDeliveryOptionRequest, UpdateLocalDeliveryOptionResponse$1, UpdateLocalDeliveryOptionResponse>;
|
|
506
|
+
declare function deleteLocalDeliveryOption(): __PublicMethodMetaInfo<'DELETE', {
|
|
507
|
+
localDeliveryOptionId: string;
|
|
508
|
+
}, DeleteLocalDeliveryOptionRequest$1, DeleteLocalDeliveryOptionRequest, DeleteLocalDeliveryOptionResponse$1, DeleteLocalDeliveryOptionResponse>;
|
|
509
|
+
declare function bulkCreateLocalDeliveryOption(): __PublicMethodMetaInfo<'POST', {}, BulkCreateLocalDeliveryOptionRequest$1, BulkCreateLocalDeliveryOptionRequest, BulkCreateLocalDeliveryOptionResponse$1, BulkCreateLocalDeliveryOptionResponse>;
|
|
510
|
+
declare function bulkUpdateLocalDeliveryOption(): __PublicMethodMetaInfo<'PATCH', {}, BulkUpdateLocalDeliveryOptionRequest$1, BulkUpdateLocalDeliveryOptionRequest, BulkUpdateLocalDeliveryOptionResponse$1, BulkUpdateLocalDeliveryOptionResponse>;
|
|
511
|
+
declare function bulkDeleteLocalDeliveryOption(): __PublicMethodMetaInfo<'DELETE', {}, BulkDeleteLocalDeliveryOptionRequest$1, BulkDeleteLocalDeliveryOptionRequest, BulkDeleteLocalDeliveryOptionResponse$1, BulkDeleteLocalDeliveryOptionResponse>;
|
|
512
|
+
declare function addDeliveryRegion(): __PublicMethodMetaInfo<'POST', {}, AddDeliveryRegionRequest$1, AddDeliveryRegionRequest, AddDeliveryRegionResponse$1, AddDeliveryRegionResponse>;
|
|
513
|
+
declare function removeDeliveryRegion(): __PublicMethodMetaInfo<'POST', {}, RemoveDeliveryRegionRequest$1, RemoveDeliveryRegionRequest, RemoveDeliveryRegionResponse$1, RemoveDeliveryRegionResponse>;
|
|
514
|
+
|
|
515
|
+
export { type __PublicMethodMetaInfo, addDeliveryRegion, bulkCreateLocalDeliveryOption, bulkDeleteLocalDeliveryOption, bulkUpdateLocalDeliveryOption, createLocalDeliveryOption, deleteLocalDeliveryOption, getLocalDeliveryOption, listLocalDeliveryOptions, queryLocalDeliveryOptions, removeDeliveryRegion, updateLocalDeliveryOption };
|