@wix/auto_sdk_ecom_local-delivery-options 1.0.14 → 1.0.15
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-B14pmV_K.d.mts +800 -0
- package/build/ecom-v1-local-delivery-option-local-delivery-options.universal-B14pmV_K.d.ts +800 -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-B14pmV_K.d.mts +800 -0
- package/build/internal/ecom-v1-local-delivery-option-local-delivery-options.universal-B14pmV_K.d.ts +800 -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} +89 -195
- package/build/{es/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → internal/meta.d.ts} +89 -195
- 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/{cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → meta.d.mts} +89 -195
- package/build/{internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → meta.d.ts} +89 -195
- 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 +12 -11
- 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 -1171
- package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -804
- 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 -1171
- package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -767
- 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 -1171
- package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -804
- 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 -1171
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -767
- package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js.map +0 -1
package/build/{cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → meta.d.mts}
RENAMED
|
@@ -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-B14pmV_K.mjs';
|
|
2
|
+
|
|
3
|
+
interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
|
|
2
4
|
zipConfig?: ZipCodeConfig;
|
|
3
5
|
radiusConfig?: RadiusConfig;
|
|
4
6
|
customAreaConfig?: CustomAreaConfig;
|
|
@@ -65,12 +67,12 @@ export interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
|
|
|
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?: LengthUnitWithLiterals;
|
|
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 */
|
|
@@ -129,15 +131,15 @@ export declare enum LengthUnit {
|
|
|
129
131
|
MI = "MI"
|
|
130
132
|
}
|
|
131
133
|
/** @enumType */
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
type LengthUnitWithLiterals = LengthUnit | 'UNSPECIFIED_LENGTH_UNIT' | 'KM' | 'MI';
|
|
135
|
+
interface CustomAreaConfig {
|
|
134
136
|
/**
|
|
135
137
|
* Geocodes of the polygon defining the delivery area.
|
|
136
138
|
* @maxSize 300
|
|
137
139
|
*/
|
|
138
140
|
geocodes?: AddressLocation[];
|
|
139
141
|
}
|
|
140
|
-
|
|
142
|
+
interface ScheduledDelivery {
|
|
141
143
|
/**
|
|
142
144
|
* Days config which contain days when delivery is enabled with it's time slots
|
|
143
145
|
* @deprecated Days config which contain days when delivery is enabled with it's time slots
|
|
@@ -158,7 +160,7 @@ export interface ScheduledDelivery {
|
|
|
158
160
|
*/
|
|
159
161
|
timeWindows?: TimeWindow[];
|
|
160
162
|
}
|
|
161
|
-
|
|
163
|
+
interface Days {
|
|
162
164
|
monday?: DaySlot;
|
|
163
165
|
tuesday?: DaySlot;
|
|
164
166
|
wednesday?: DaySlot;
|
|
@@ -167,7 +169,7 @@ export interface Days {
|
|
|
167
169
|
saturday?: DaySlot;
|
|
168
170
|
sunday?: DaySlot;
|
|
169
171
|
}
|
|
170
|
-
|
|
172
|
+
interface DaySlot {
|
|
171
173
|
/** Shows whether this day slot is enabled for delivery */
|
|
172
174
|
enabledForDelivery?: boolean | null;
|
|
173
175
|
/**
|
|
@@ -176,13 +178,13 @@ export interface DaySlot {
|
|
|
176
178
|
*/
|
|
177
179
|
timeSlots?: TimeSlot[];
|
|
178
180
|
}
|
|
179
|
-
|
|
181
|
+
interface TimeSlot {
|
|
180
182
|
/** Starting time point of time slot */
|
|
181
183
|
from?: TimePoint;
|
|
182
184
|
/** End time point of time slot */
|
|
183
185
|
to?: TimePoint;
|
|
184
186
|
}
|
|
185
|
-
|
|
187
|
+
interface TimePoint {
|
|
186
188
|
/**
|
|
187
189
|
* Hours in format 0-23
|
|
188
190
|
* @max 23
|
|
@@ -194,7 +196,7 @@ export interface TimePoint {
|
|
|
194
196
|
*/
|
|
195
197
|
minutes?: number | null;
|
|
196
198
|
}
|
|
197
|
-
|
|
199
|
+
interface TimeWindow {
|
|
198
200
|
/** The day of week this availability relates to. */
|
|
199
201
|
day?: DayOfWeekWithLiterals;
|
|
200
202
|
/** The start time in time of day representation. */
|
|
@@ -204,7 +206,7 @@ export interface TimeWindow {
|
|
|
204
206
|
/** Whether this timeWindow availability is enabled. */
|
|
205
207
|
enabled?: boolean | null;
|
|
206
208
|
}
|
|
207
|
-
|
|
209
|
+
declare enum DayOfWeek {
|
|
208
210
|
/** Monday. */
|
|
209
211
|
MON = "MON",
|
|
210
212
|
/** Tuesday. */
|
|
@@ -221,8 +223,8 @@ export declare enum DayOfWeek {
|
|
|
221
223
|
SUN = "SUN"
|
|
222
224
|
}
|
|
223
225
|
/** @enumType */
|
|
224
|
-
|
|
225
|
-
|
|
226
|
+
type DayOfWeekWithLiterals = DayOfWeek | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | 'SUN';
|
|
227
|
+
interface TimeOfDay {
|
|
226
228
|
/**
|
|
227
229
|
* Hours
|
|
228
230
|
* @max 23
|
|
@@ -234,7 +236,7 @@ export interface TimeOfDay {
|
|
|
234
236
|
*/
|
|
235
237
|
minutes?: number;
|
|
236
238
|
}
|
|
237
|
-
|
|
239
|
+
interface ConditionalRates {
|
|
238
240
|
/**
|
|
239
241
|
* there is an AND logic between all the conditions. Empty conditions means true.
|
|
240
242
|
* The amount of the rate that will be returned if all conditions are met.
|
|
@@ -249,7 +251,7 @@ export interface ConditionalRates {
|
|
|
249
251
|
/** When this flag is set to true, multiply the amount by the number of line items passed on the request. */
|
|
250
252
|
multiplyByQuantity?: boolean;
|
|
251
253
|
}
|
|
252
|
-
|
|
254
|
+
interface Condition {
|
|
253
255
|
type?: ConditionTypeWithLiterals;
|
|
254
256
|
/**
|
|
255
257
|
* The value in respective to the condition type
|
|
@@ -262,15 +264,15 @@ export interface Condition {
|
|
|
262
264
|
/** Logical operator. */
|
|
263
265
|
operator?: LogicalOperatorWithLiterals;
|
|
264
266
|
}
|
|
265
|
-
|
|
267
|
+
declare enum ConditionType {
|
|
266
268
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
267
269
|
BY_TOTAL_WEIGHT = "BY_TOTAL_WEIGHT",
|
|
268
270
|
BY_TOTAL_PRICE = "BY_TOTAL_PRICE",
|
|
269
271
|
BY_TOTAL_QUANTITY = "BY_TOTAL_QUANTITY"
|
|
270
272
|
}
|
|
271
273
|
/** @enumType */
|
|
272
|
-
|
|
273
|
-
|
|
274
|
+
type ConditionTypeWithLiterals = ConditionType | 'UNKNOWN_TYPE' | 'BY_TOTAL_WEIGHT' | 'BY_TOTAL_PRICE' | 'BY_TOTAL_QUANTITY';
|
|
275
|
+
declare enum LogicalOperator {
|
|
274
276
|
UNKNOWN_LOGICAL_OPERATOR_TYPE = "UNKNOWN_LOGICAL_OPERATOR_TYPE",
|
|
275
277
|
EQ = "EQ",
|
|
276
278
|
GT = "GT",
|
|
@@ -279,14 +281,14 @@ export declare enum LogicalOperator {
|
|
|
279
281
|
LTE = "LTE"
|
|
280
282
|
}
|
|
281
283
|
/** @enumType */
|
|
282
|
-
|
|
283
|
-
|
|
284
|
+
type LogicalOperatorWithLiterals = LogicalOperator | 'UNKNOWN_LOGICAL_OPERATOR_TYPE' | 'EQ' | 'GT' | 'GTE' | 'LT' | 'LTE';
|
|
285
|
+
interface CreateLocalDeliveryOptionRequest {
|
|
284
286
|
localDeliveryOption: LocalDeliveryOption;
|
|
285
287
|
}
|
|
286
|
-
|
|
288
|
+
interface CreateLocalDeliveryOptionResponse {
|
|
287
289
|
localDeliveryOption?: LocalDeliveryOption;
|
|
288
290
|
}
|
|
289
|
-
|
|
291
|
+
interface GetLocalDeliveryOptionRequest {
|
|
290
292
|
/**
|
|
291
293
|
* @maxLength 50
|
|
292
294
|
* @deprecated
|
|
@@ -296,21 +298,21 @@ export interface GetLocalDeliveryOptionRequest {
|
|
|
296
298
|
/** @maxLength 50 */
|
|
297
299
|
localDeliveryOptionId: string;
|
|
298
300
|
}
|
|
299
|
-
|
|
301
|
+
interface GetLocalDeliveryOptionResponse {
|
|
300
302
|
localDeliveryOption?: LocalDeliveryOption;
|
|
301
303
|
}
|
|
302
|
-
|
|
304
|
+
interface ListLocalDeliveryOptionsRequest {
|
|
303
305
|
/** @format GUID */
|
|
304
306
|
externalId: string;
|
|
305
307
|
}
|
|
306
|
-
|
|
308
|
+
interface ListLocalDeliveryOptionsResponse {
|
|
307
309
|
localDeliveryOptions?: LocalDeliveryOption[];
|
|
308
310
|
}
|
|
309
|
-
|
|
311
|
+
interface QueryLocalDeliveryOptionsRequest {
|
|
310
312
|
/** WQL expression */
|
|
311
313
|
query: QueryV2;
|
|
312
314
|
}
|
|
313
|
-
|
|
315
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
314
316
|
/** Paging options to limit and skip the number of items. */
|
|
315
317
|
paging?: Paging;
|
|
316
318
|
/** 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,13 +344,13 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
342
344
|
fieldsets?: string[];
|
|
343
345
|
}
|
|
344
346
|
/** @oneof */
|
|
345
|
-
|
|
347
|
+
interface QueryV2PagingMethodOneOf {
|
|
346
348
|
/** Paging options to limit and skip the number of items. */
|
|
347
349
|
paging?: Paging;
|
|
348
350
|
/** 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`. */
|
|
349
351
|
cursorPaging?: CursorPaging;
|
|
350
352
|
}
|
|
351
|
-
|
|
353
|
+
interface Sorting {
|
|
352
354
|
/**
|
|
353
355
|
* Name of the field to sort by.
|
|
354
356
|
* @maxLength 512
|
|
@@ -357,19 +359,19 @@ export interface Sorting {
|
|
|
357
359
|
/** Sort order. */
|
|
358
360
|
order?: SortOrderWithLiterals;
|
|
359
361
|
}
|
|
360
|
-
|
|
362
|
+
declare enum SortOrder {
|
|
361
363
|
ASC = "ASC",
|
|
362
364
|
DESC = "DESC"
|
|
363
365
|
}
|
|
364
366
|
/** @enumType */
|
|
365
|
-
|
|
366
|
-
|
|
367
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
368
|
+
interface Paging {
|
|
367
369
|
/** Number of items to load. */
|
|
368
370
|
limit?: number | null;
|
|
369
371
|
/** Number of items to skip in the current sort order. */
|
|
370
372
|
offset?: number | null;
|
|
371
373
|
}
|
|
372
|
-
|
|
374
|
+
interface CursorPaging {
|
|
373
375
|
/**
|
|
374
376
|
* Maximum number of items to return in the results.
|
|
375
377
|
* @max 100
|
|
@@ -384,13 +386,13 @@ export interface CursorPaging {
|
|
|
384
386
|
*/
|
|
385
387
|
cursor?: string | null;
|
|
386
388
|
}
|
|
387
|
-
|
|
389
|
+
interface QueryLocalDeliveryOptionsResponse {
|
|
388
390
|
/** Retrieved local delivery options. */
|
|
389
391
|
localDeliveryOptions?: LocalDeliveryOption[];
|
|
390
392
|
/** Paging metadata. */
|
|
391
393
|
pagingMetadata?: CursorPagingMetadata;
|
|
392
394
|
}
|
|
393
|
-
|
|
395
|
+
interface CursorPagingMetadata {
|
|
394
396
|
/** Number of items returned in current page. */
|
|
395
397
|
count?: number | null;
|
|
396
398
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -403,7 +405,7 @@ export interface CursorPagingMetadata {
|
|
|
403
405
|
*/
|
|
404
406
|
hasNext?: boolean | null;
|
|
405
407
|
}
|
|
406
|
-
|
|
408
|
+
interface Cursors {
|
|
407
409
|
/**
|
|
408
410
|
* Cursor string pointing to the next page in the list of results.
|
|
409
411
|
* @maxLength 16000
|
|
@@ -415,14 +417,14 @@ export interface Cursors {
|
|
|
415
417
|
*/
|
|
416
418
|
prev?: string | null;
|
|
417
419
|
}
|
|
418
|
-
|
|
420
|
+
interface UpdateLocalDeliveryOptionRequest {
|
|
419
421
|
/** LocalDeliveryOption to be updated, may be partial. */
|
|
420
422
|
localDeliveryOption: LocalDeliveryOption;
|
|
421
423
|
}
|
|
422
|
-
|
|
424
|
+
interface UpdateLocalDeliveryOptionResponse {
|
|
423
425
|
localDeliveryOption?: LocalDeliveryOption;
|
|
424
426
|
}
|
|
425
|
-
|
|
427
|
+
interface DeleteLocalDeliveryOptionRequest {
|
|
426
428
|
/**
|
|
427
429
|
* @maxLength 50
|
|
428
430
|
* @deprecated
|
|
@@ -432,35 +434,35 @@ export interface DeleteLocalDeliveryOptionRequest {
|
|
|
432
434
|
/** @maxLength 50 */
|
|
433
435
|
localDeliveryOptionId: string;
|
|
434
436
|
}
|
|
435
|
-
|
|
437
|
+
interface DeleteLocalDeliveryOptionResponse {
|
|
436
438
|
}
|
|
437
|
-
|
|
439
|
+
interface BulkCreateLocalDeliveryOptionRequest {
|
|
438
440
|
/**
|
|
439
441
|
* @minSize 1
|
|
440
442
|
* @maxSize 100
|
|
441
443
|
*/
|
|
442
444
|
localDeliveryOptions: LocalDeliveryOption[];
|
|
443
445
|
}
|
|
444
|
-
|
|
446
|
+
interface BulkCreateLocalDeliveryOptionResponse {
|
|
445
447
|
localDeliveryOptions?: LocalDeliveryOption[];
|
|
446
448
|
errors?: LocalDeliveryOptionError[];
|
|
447
449
|
}
|
|
448
|
-
|
|
450
|
+
interface LocalDeliveryOptionError {
|
|
449
451
|
id?: string;
|
|
450
452
|
error?: string;
|
|
451
453
|
}
|
|
452
|
-
|
|
454
|
+
interface BulkUpdateLocalDeliveryOptionRequest {
|
|
453
455
|
/**
|
|
454
456
|
* @minSize 1
|
|
455
457
|
* @maxSize 100
|
|
456
458
|
*/
|
|
457
459
|
localDeliveryOptions: LocalDeliveryOption[];
|
|
458
460
|
}
|
|
459
|
-
|
|
461
|
+
interface BulkUpdateLocalDeliveryOptionResponse {
|
|
460
462
|
localDeliveryOptions?: LocalDeliveryOption[];
|
|
461
463
|
errors?: LocalDeliveryOptionError[];
|
|
462
464
|
}
|
|
463
|
-
|
|
465
|
+
interface BulkDeleteLocalDeliveryOptionRequest {
|
|
464
466
|
/**
|
|
465
467
|
* @format GUID
|
|
466
468
|
* @minSize 1
|
|
@@ -468,75 +470,9 @@ export interface BulkDeleteLocalDeliveryOptionRequest {
|
|
|
468
470
|
*/
|
|
469
471
|
ids: string[];
|
|
470
472
|
}
|
|
471
|
-
|
|
473
|
+
interface BulkDeleteLocalDeliveryOptionResponse {
|
|
472
474
|
}
|
|
473
|
-
|
|
474
|
-
}
|
|
475
|
-
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
476
|
-
createdEvent?: EntityCreatedEvent;
|
|
477
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
478
|
-
deletedEvent?: EntityDeletedEvent;
|
|
479
|
-
actionEvent?: ActionEvent;
|
|
480
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
481
|
-
id?: string;
|
|
482
|
-
/**
|
|
483
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
484
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
485
|
-
*/
|
|
486
|
-
entityFqdn?: string;
|
|
487
|
-
/**
|
|
488
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
489
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
490
|
-
*/
|
|
491
|
-
slug?: string;
|
|
492
|
-
/** ID of the entity associated with the event. */
|
|
493
|
-
entityId?: string;
|
|
494
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
495
|
-
eventTime?: Date | null;
|
|
496
|
-
/**
|
|
497
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
498
|
-
* (for example, GDPR).
|
|
499
|
-
*/
|
|
500
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
501
|
-
/** If present, indicates the action that triggered the event. */
|
|
502
|
-
originatedFrom?: string | null;
|
|
503
|
-
/**
|
|
504
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
505
|
-
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
506
|
-
*/
|
|
507
|
-
entityEventSequence?: string | null;
|
|
508
|
-
}
|
|
509
|
-
/** @oneof */
|
|
510
|
-
export interface DomainEventBodyOneOf {
|
|
511
|
-
createdEvent?: EntityCreatedEvent;
|
|
512
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
513
|
-
deletedEvent?: EntityDeletedEvent;
|
|
514
|
-
actionEvent?: ActionEvent;
|
|
515
|
-
}
|
|
516
|
-
export interface EntityCreatedEvent {
|
|
517
|
-
entityAsJson?: string;
|
|
518
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
519
|
-
restoreInfo?: RestoreInfo;
|
|
520
|
-
}
|
|
521
|
-
export interface RestoreInfo {
|
|
522
|
-
deletedDate?: Date | null;
|
|
523
|
-
}
|
|
524
|
-
export interface EntityUpdatedEvent {
|
|
525
|
-
/**
|
|
526
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
527
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
528
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
529
|
-
*/
|
|
530
|
-
currentEntityAsJson?: string;
|
|
531
|
-
}
|
|
532
|
-
export interface EntityDeletedEvent {
|
|
533
|
-
/** Entity that was deleted. */
|
|
534
|
-
deletedEntityAsJson?: string | null;
|
|
535
|
-
}
|
|
536
|
-
export interface ActionEvent {
|
|
537
|
-
bodyAsJson?: string;
|
|
538
|
-
}
|
|
539
|
-
export interface AddDeliveryRegionRequest {
|
|
475
|
+
interface AddDeliveryRegionRequest {
|
|
540
476
|
/** @format GUID */
|
|
541
477
|
deliveryRegionId: string;
|
|
542
478
|
/** @format GUID */
|
|
@@ -544,10 +480,10 @@ export interface AddDeliveryRegionRequest {
|
|
|
544
480
|
/** Revision of the PickupLocation */
|
|
545
481
|
revision?: string | null;
|
|
546
482
|
}
|
|
547
|
-
|
|
483
|
+
interface AddDeliveryRegionResponse {
|
|
548
484
|
localDeliveryOption?: LocalDeliveryOption;
|
|
549
485
|
}
|
|
550
|
-
|
|
486
|
+
interface RemoveDeliveryRegionRequest {
|
|
551
487
|
/** @format GUID */
|
|
552
488
|
deliveryRegionId: string;
|
|
553
489
|
/** @format GUID */
|
|
@@ -555,78 +491,36 @@ export interface RemoveDeliveryRegionRequest {
|
|
|
555
491
|
/** Revision of the PickupLocation */
|
|
556
492
|
revision?: string | null;
|
|
557
493
|
}
|
|
558
|
-
|
|
494
|
+
interface RemoveDeliveryRegionResponse {
|
|
559
495
|
localDeliveryOption?: LocalDeliveryOption;
|
|
560
496
|
}
|
|
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
|
-
|
|
590
|
-
|
|
591
|
-
*/
|
|
592
|
-
wixUserId?: string;
|
|
593
|
-
/**
|
|
594
|
-
* ID of an app.
|
|
595
|
-
* @format GUID
|
|
596
|
-
*/
|
|
597
|
-
appId?: string;
|
|
598
|
-
/** @readonly */
|
|
599
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
600
|
-
}
|
|
601
|
-
/** @oneof */
|
|
602
|
-
export interface IdentificationDataIdOneOf {
|
|
603
|
-
/**
|
|
604
|
-
* ID of a site visitor that has not logged in to the site.
|
|
605
|
-
* @format GUID
|
|
606
|
-
*/
|
|
607
|
-
anonymousVisitorId?: string;
|
|
608
|
-
/**
|
|
609
|
-
* ID of a site visitor that has logged in to the site.
|
|
610
|
-
* @format GUID
|
|
611
|
-
*/
|
|
612
|
-
memberId?: string;
|
|
613
|
-
/**
|
|
614
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
615
|
-
* @format GUID
|
|
616
|
-
*/
|
|
617
|
-
wixUserId?: string;
|
|
618
|
-
/**
|
|
619
|
-
* ID of an app.
|
|
620
|
-
* @format GUID
|
|
621
|
-
*/
|
|
622
|
-
appId?: string;
|
|
623
|
-
}
|
|
624
|
-
export declare enum WebhookIdentityType {
|
|
625
|
-
UNKNOWN = "UNKNOWN",
|
|
626
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
627
|
-
MEMBER = "MEMBER",
|
|
628
|
-
WIX_USER = "WIX_USER",
|
|
629
|
-
APP = "APP"
|
|
630
|
-
}
|
|
631
|
-
/** @enumType */
|
|
632
|
-
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
497
|
+
|
|
498
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
499
|
+
getUrl: (context: any) => string;
|
|
500
|
+
httpMethod: K;
|
|
501
|
+
path: string;
|
|
502
|
+
pathParams: M;
|
|
503
|
+
__requestType: T;
|
|
504
|
+
__originalRequestType: S;
|
|
505
|
+
__responseType: Q;
|
|
506
|
+
__originalResponseType: R;
|
|
507
|
+
};
|
|
508
|
+
declare function createLocalDeliveryOption(): __PublicMethodMetaInfo<'POST', {}, CreateLocalDeliveryOptionRequest$1, CreateLocalDeliveryOptionRequest, CreateLocalDeliveryOptionResponse$1, CreateLocalDeliveryOptionResponse>;
|
|
509
|
+
declare function getLocalDeliveryOption(): __PublicMethodMetaInfo<'GET', {
|
|
510
|
+
localDeliveryOptionId: string;
|
|
511
|
+
}, GetLocalDeliveryOptionRequest$1, GetLocalDeliveryOptionRequest, GetLocalDeliveryOptionResponse$1, GetLocalDeliveryOptionResponse>;
|
|
512
|
+
declare function listLocalDeliveryOptions(): __PublicMethodMetaInfo<'GET', {}, ListLocalDeliveryOptionsRequest$1, ListLocalDeliveryOptionsRequest, ListLocalDeliveryOptionsResponse$1, ListLocalDeliveryOptionsResponse>;
|
|
513
|
+
declare function queryLocalDeliveryOptions(): __PublicMethodMetaInfo<'POST', {}, QueryLocalDeliveryOptionsRequest$1, QueryLocalDeliveryOptionsRequest, QueryLocalDeliveryOptionsResponse$1, QueryLocalDeliveryOptionsResponse>;
|
|
514
|
+
declare function updateLocalDeliveryOption(): __PublicMethodMetaInfo<'PATCH', {
|
|
515
|
+
localDeliveryOptionId: string;
|
|
516
|
+
}, UpdateLocalDeliveryOptionRequest$1, UpdateLocalDeliveryOptionRequest, UpdateLocalDeliveryOptionResponse$1, UpdateLocalDeliveryOptionResponse>;
|
|
517
|
+
declare function deleteLocalDeliveryOption(): __PublicMethodMetaInfo<'DELETE', {
|
|
518
|
+
localDeliveryOptionId: string;
|
|
519
|
+
}, DeleteLocalDeliveryOptionRequest$1, DeleteLocalDeliveryOptionRequest, DeleteLocalDeliveryOptionResponse$1, DeleteLocalDeliveryOptionResponse>;
|
|
520
|
+
declare function bulkCreateLocalDeliveryOption(): __PublicMethodMetaInfo<'POST', {}, BulkCreateLocalDeliveryOptionRequest$1, BulkCreateLocalDeliveryOptionRequest, BulkCreateLocalDeliveryOptionResponse$1, BulkCreateLocalDeliveryOptionResponse>;
|
|
521
|
+
declare function bulkUpdateLocalDeliveryOption(): __PublicMethodMetaInfo<'PATCH', {}, BulkUpdateLocalDeliveryOptionRequest$1, BulkUpdateLocalDeliveryOptionRequest, BulkUpdateLocalDeliveryOptionResponse$1, BulkUpdateLocalDeliveryOptionResponse>;
|
|
522
|
+
declare function bulkDeleteLocalDeliveryOption(): __PublicMethodMetaInfo<'DELETE', {}, BulkDeleteLocalDeliveryOptionRequest$1, BulkDeleteLocalDeliveryOptionRequest, BulkDeleteLocalDeliveryOptionResponse$1, BulkDeleteLocalDeliveryOptionResponse>;
|
|
523
|
+
declare function addDeliveryRegion(): __PublicMethodMetaInfo<'POST', {}, AddDeliveryRegionRequest$1, AddDeliveryRegionRequest, AddDeliveryRegionResponse$1, AddDeliveryRegionResponse>;
|
|
524
|
+
declare function removeDeliveryRegion(): __PublicMethodMetaInfo<'POST', {}, RemoveDeliveryRegionRequest$1, RemoveDeliveryRegionRequest, RemoveDeliveryRegionResponse$1, RemoveDeliveryRegionResponse>;
|
|
525
|
+
|
|
526
|
+
export { type __PublicMethodMetaInfo, addDeliveryRegion, bulkCreateLocalDeliveryOption, bulkDeleteLocalDeliveryOption, bulkUpdateLocalDeliveryOption, createLocalDeliveryOption, deleteLocalDeliveryOption, getLocalDeliveryOption, listLocalDeliveryOptions, queryLocalDeliveryOptions, removeDeliveryRegion, updateLocalDeliveryOption };
|