@wix/auto_sdk_ecom_local-delivery-options 1.0.2 → 1.0.4
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/{es/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → ecom-v1-local-delivery-option-local-delivery-options.universal-D5yj1G8h.d.mts} +223 -150
- package/build/{cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → ecom-v1-local-delivery-option-local-delivery-options.universal-D5yj1G8h.d.ts} +223 -150
- 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/{cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → ecom-v1-local-delivery-option-local-delivery-options.universal-D5yj1G8h.d.mts} +223 -150
- package/build/internal/{es/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → ecom-v1-local-delivery-option-local-delivery-options.universal-D5yj1G8h.d.ts} +223 -150
- 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/meta.d.mts +515 -0
- package/build/internal/meta.d.ts +515 -0
- 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/meta.d.mts +515 -0
- package/build/meta.d.ts +515 -0
- 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 -1175
- 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 -1175
- 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 -1175
- 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 -1175
- 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
|
@@ -0,0 +1,515 @@
|
|
|
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-D5yj1G8h.mjs';
|
|
2
|
+
|
|
3
|
+
interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
|
|
4
|
+
zipConfig?: ZipCodeConfig;
|
|
5
|
+
radiusConfig?: RadiusConfig;
|
|
6
|
+
customAreaConfig?: CustomAreaConfig;
|
|
7
|
+
/**
|
|
8
|
+
* LocalDeliveryOptionId - unique identifier of local delivery option
|
|
9
|
+
* @format GUID
|
|
10
|
+
* @readonly
|
|
11
|
+
*/
|
|
12
|
+
id?: string | null;
|
|
13
|
+
/**
|
|
14
|
+
* Area name of Local Delivery Option
|
|
15
|
+
* @maxLength 100
|
|
16
|
+
*/
|
|
17
|
+
areaName?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Flat price of local delivery
|
|
20
|
+
* @format DECIMAL_VALUE
|
|
21
|
+
* @deprecated Flat price of local delivery
|
|
22
|
+
* @targetRemovalDate 2025-01-12
|
|
23
|
+
*/
|
|
24
|
+
rate?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Estimated delivery time description text
|
|
27
|
+
* @maxLength 40
|
|
28
|
+
*/
|
|
29
|
+
estimatedDeliveryTime?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Minimum order total to be eligible for free delivery
|
|
32
|
+
* @deprecated Minimum order total to be eligible for free delivery
|
|
33
|
+
* @targetRemovalDate 2025-01-12
|
|
34
|
+
*/
|
|
35
|
+
minimumFreeDeliveryOrderAmount?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
* List of countries with subdivisions
|
|
38
|
+
* @maxSize 100
|
|
39
|
+
*/
|
|
40
|
+
destinations?: Destination[];
|
|
41
|
+
/**
|
|
42
|
+
* Database revision of LocalDeliveryOption entity. Incremented on each modification
|
|
43
|
+
* @readonly
|
|
44
|
+
*/
|
|
45
|
+
revision?: string | null;
|
|
46
|
+
scheduledDeliveryConfig?: ScheduledDelivery;
|
|
47
|
+
/**
|
|
48
|
+
* at runtime for a given shipment input, up to one rate (price) should be returned in an option. If more than one rate is valid then we return the lowest one.
|
|
49
|
+
* @maxSize 50
|
|
50
|
+
*/
|
|
51
|
+
rates?: ConditionalRates[];
|
|
52
|
+
/**
|
|
53
|
+
* Date and time the LocalDeliveryOption was created.
|
|
54
|
+
* @readonly
|
|
55
|
+
*/
|
|
56
|
+
createdDate?: Date | null;
|
|
57
|
+
/**
|
|
58
|
+
* Date and time the LocalDeliveryOption was last updated.
|
|
59
|
+
* @readonly
|
|
60
|
+
*/
|
|
61
|
+
updatedDate?: Date | null;
|
|
62
|
+
/**
|
|
63
|
+
* This local delivery is active for the following delivery regions.
|
|
64
|
+
* @maxSize 5
|
|
65
|
+
* @format GUID
|
|
66
|
+
*/
|
|
67
|
+
deliveryRegionIds?: string[];
|
|
68
|
+
}
|
|
69
|
+
/** @oneof */
|
|
70
|
+
interface LocalDeliveryOptionConfigOneOf {
|
|
71
|
+
zipConfig?: ZipCodeConfig;
|
|
72
|
+
radiusConfig?: RadiusConfig;
|
|
73
|
+
customAreaConfig?: CustomAreaConfig;
|
|
74
|
+
}
|
|
75
|
+
interface Destination {
|
|
76
|
+
/**
|
|
77
|
+
* Country ISO code
|
|
78
|
+
* @format COUNTRY
|
|
79
|
+
*/
|
|
80
|
+
code?: string;
|
|
81
|
+
/**
|
|
82
|
+
* List of subdivisions, empty means all
|
|
83
|
+
* @maxSize 200
|
|
84
|
+
*/
|
|
85
|
+
subdivisions?: string[];
|
|
86
|
+
}
|
|
87
|
+
interface ZipCodeConfig {
|
|
88
|
+
/**
|
|
89
|
+
* List of ZipCodes and ZipCode regexes. Examples: 10001, 10002 or 1000*
|
|
90
|
+
* @minLength 1
|
|
91
|
+
* @maxLength 300
|
|
92
|
+
*/
|
|
93
|
+
zipCodes?: string[];
|
|
94
|
+
}
|
|
95
|
+
interface RadiusConfig {
|
|
96
|
+
/** Delivery-from address */
|
|
97
|
+
address?: LocalDeliveryAddress;
|
|
98
|
+
/**
|
|
99
|
+
* Delivery circle's radius
|
|
100
|
+
* @min 0.1
|
|
101
|
+
* @max 50
|
|
102
|
+
*/
|
|
103
|
+
radius?: number;
|
|
104
|
+
/**
|
|
105
|
+
* Radius' unit, taken from site properties
|
|
106
|
+
* @readonly
|
|
107
|
+
*/
|
|
108
|
+
lengthUnit?: LengthUnit;
|
|
109
|
+
}
|
|
110
|
+
interface LocalDeliveryAddress {
|
|
111
|
+
/**
|
|
112
|
+
* A string containing the human-readable address of this location
|
|
113
|
+
* @maxLength 400
|
|
114
|
+
*/
|
|
115
|
+
formattedAddress?: string | null;
|
|
116
|
+
/** coordinates of the physical address */
|
|
117
|
+
geocode?: AddressLocation;
|
|
118
|
+
}
|
|
119
|
+
interface AddressLocation {
|
|
120
|
+
/** Address latitude. */
|
|
121
|
+
latitude?: number | null;
|
|
122
|
+
/** Address longitude. */
|
|
123
|
+
longitude?: number | null;
|
|
124
|
+
}
|
|
125
|
+
declare enum LengthUnit {
|
|
126
|
+
/** Length unit can't be classified, due to an error */
|
|
127
|
+
UNSPECIFIED_LENGTH_UNIT = "UNSPECIFIED_LENGTH_UNIT",
|
|
128
|
+
/** Kilometers */
|
|
129
|
+
KM = "KM",
|
|
130
|
+
/** Miles */
|
|
131
|
+
MI = "MI"
|
|
132
|
+
}
|
|
133
|
+
interface CustomAreaConfig {
|
|
134
|
+
/**
|
|
135
|
+
* Geocodes of the polygon defining the delivery area.
|
|
136
|
+
* @maxSize 300
|
|
137
|
+
*/
|
|
138
|
+
geocodes?: AddressLocation[];
|
|
139
|
+
}
|
|
140
|
+
interface ScheduledDelivery {
|
|
141
|
+
/**
|
|
142
|
+
* Days config which contain days when delivery is enabled with it's time slots
|
|
143
|
+
* @deprecated Days config which contain days when delivery is enabled with it's time slots
|
|
144
|
+
* @replacedBy time_windows
|
|
145
|
+
* @targetRemovalDate 2025-01-01
|
|
146
|
+
*/
|
|
147
|
+
days?: Days;
|
|
148
|
+
/**
|
|
149
|
+
* Amount of days before first delivery option date
|
|
150
|
+
* @max 30
|
|
151
|
+
*/
|
|
152
|
+
handlingDays?: number | null;
|
|
153
|
+
/** Cut off time after which first delivery option would be for next day */
|
|
154
|
+
cutOffTime?: TimePoint;
|
|
155
|
+
/**
|
|
156
|
+
* availability times configuration.
|
|
157
|
+
* @maxSize 100
|
|
158
|
+
*/
|
|
159
|
+
timeWindows?: TimeWindow[];
|
|
160
|
+
}
|
|
161
|
+
interface Days {
|
|
162
|
+
monday?: DaySlot;
|
|
163
|
+
tuesday?: DaySlot;
|
|
164
|
+
wednesday?: DaySlot;
|
|
165
|
+
thursday?: DaySlot;
|
|
166
|
+
friday?: DaySlot;
|
|
167
|
+
saturday?: DaySlot;
|
|
168
|
+
sunday?: DaySlot;
|
|
169
|
+
}
|
|
170
|
+
interface DaySlot {
|
|
171
|
+
/** Shows whether this day slot is enabled for delivery */
|
|
172
|
+
enabledForDelivery?: boolean | null;
|
|
173
|
+
/**
|
|
174
|
+
* Time slots for scheduled delivery during day
|
|
175
|
+
* @maxSize 8
|
|
176
|
+
*/
|
|
177
|
+
timeSlots?: TimeSlot[];
|
|
178
|
+
}
|
|
179
|
+
interface TimeSlot {
|
|
180
|
+
/** Starting time point of time slot */
|
|
181
|
+
from?: TimePoint;
|
|
182
|
+
/** End time point of time slot */
|
|
183
|
+
to?: TimePoint;
|
|
184
|
+
}
|
|
185
|
+
interface TimePoint {
|
|
186
|
+
/**
|
|
187
|
+
* Hours in format 0-23
|
|
188
|
+
* @max 23
|
|
189
|
+
*/
|
|
190
|
+
hours?: number | null;
|
|
191
|
+
/**
|
|
192
|
+
* Minutes 0-59
|
|
193
|
+
* @max 59
|
|
194
|
+
*/
|
|
195
|
+
minutes?: number | null;
|
|
196
|
+
}
|
|
197
|
+
interface TimeWindow {
|
|
198
|
+
/** The day of week this availability relates to. */
|
|
199
|
+
day?: DayOfWeek;
|
|
200
|
+
/** The start time in time of day representation. */
|
|
201
|
+
start?: TimeOfDay;
|
|
202
|
+
/** The end time in time of day representation. */
|
|
203
|
+
end?: TimeOfDay;
|
|
204
|
+
/** Whether this timeWindow availability is enabled. */
|
|
205
|
+
enabled?: boolean | null;
|
|
206
|
+
}
|
|
207
|
+
declare enum DayOfWeek {
|
|
208
|
+
/** Monday. */
|
|
209
|
+
MON = "MON",
|
|
210
|
+
/** Tuesday. */
|
|
211
|
+
TUE = "TUE",
|
|
212
|
+
/** Wednesday. */
|
|
213
|
+
WED = "WED",
|
|
214
|
+
/** Thursday. */
|
|
215
|
+
THU = "THU",
|
|
216
|
+
/** Friday. */
|
|
217
|
+
FRI = "FRI",
|
|
218
|
+
/** Saturday. */
|
|
219
|
+
SAT = "SAT",
|
|
220
|
+
/** Sunday. */
|
|
221
|
+
SUN = "SUN"
|
|
222
|
+
}
|
|
223
|
+
interface TimeOfDay {
|
|
224
|
+
/**
|
|
225
|
+
* Hours
|
|
226
|
+
* @max 23
|
|
227
|
+
*/
|
|
228
|
+
hours?: number;
|
|
229
|
+
/**
|
|
230
|
+
* Minutes
|
|
231
|
+
* @max 59
|
|
232
|
+
*/
|
|
233
|
+
minutes?: number;
|
|
234
|
+
}
|
|
235
|
+
interface ConditionalRates {
|
|
236
|
+
/**
|
|
237
|
+
* there is an AND logic between all the conditions. Empty conditions means true.
|
|
238
|
+
* For example: weight > 0 and weight <= 10
|
|
239
|
+
* @maxSize 10
|
|
240
|
+
*/
|
|
241
|
+
conditions?: Condition[];
|
|
242
|
+
/**
|
|
243
|
+
* The amount of the rate that will be returned if all conditions are met.
|
|
244
|
+
* @decimalValue options { gte:0, lte:999999999, maxScale:3 }
|
|
245
|
+
*/
|
|
246
|
+
amount?: string;
|
|
247
|
+
/** When this flag is set to true, multiply the amount by the number of line items passed on the request. */
|
|
248
|
+
multiplyByQuantity?: boolean;
|
|
249
|
+
}
|
|
250
|
+
interface Condition {
|
|
251
|
+
type?: ConditionType;
|
|
252
|
+
/**
|
|
253
|
+
* The value in respective to the condition type
|
|
254
|
+
* Weight values should be in the same weight units of the store: KG / LB
|
|
255
|
+
* Total price is according to the store currency
|
|
256
|
+
* Quantity of items should be integers
|
|
257
|
+
* @decimalValue options { gte:0, lte:999999999, maxScale:6 }
|
|
258
|
+
*/
|
|
259
|
+
value?: string;
|
|
260
|
+
operator?: LogicalOperator;
|
|
261
|
+
}
|
|
262
|
+
declare enum ConditionType {
|
|
263
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
264
|
+
BY_TOTAL_WEIGHT = "BY_TOTAL_WEIGHT",
|
|
265
|
+
BY_TOTAL_PRICE = "BY_TOTAL_PRICE",
|
|
266
|
+
BY_TOTAL_QUANTITY = "BY_TOTAL_QUANTITY"
|
|
267
|
+
}
|
|
268
|
+
declare enum LogicalOperator {
|
|
269
|
+
UNKNOWN_LOGICAL_OPERATOR_TYPE = "UNKNOWN_LOGICAL_OPERATOR_TYPE",
|
|
270
|
+
EQ = "EQ",
|
|
271
|
+
GT = "GT",
|
|
272
|
+
GTE = "GTE",
|
|
273
|
+
LT = "LT",
|
|
274
|
+
LTE = "LTE"
|
|
275
|
+
}
|
|
276
|
+
interface CreateLocalDeliveryOptionRequest {
|
|
277
|
+
localDeliveryOption: LocalDeliveryOption;
|
|
278
|
+
}
|
|
279
|
+
interface CreateLocalDeliveryOptionResponse {
|
|
280
|
+
localDeliveryOption?: LocalDeliveryOption;
|
|
281
|
+
}
|
|
282
|
+
interface GetLocalDeliveryOptionRequest {
|
|
283
|
+
/**
|
|
284
|
+
* @maxLength 50
|
|
285
|
+
* @deprecated
|
|
286
|
+
* @targetRemovalDate 2025-01-12
|
|
287
|
+
*/
|
|
288
|
+
id?: string;
|
|
289
|
+
/** @maxLength 50 */
|
|
290
|
+
localDeliveryOptionId: string;
|
|
291
|
+
}
|
|
292
|
+
interface GetLocalDeliveryOptionResponse {
|
|
293
|
+
localDeliveryOption?: LocalDeliveryOption;
|
|
294
|
+
}
|
|
295
|
+
interface ListLocalDeliveryOptionsRequest {
|
|
296
|
+
/** @format GUID */
|
|
297
|
+
externalId: string;
|
|
298
|
+
}
|
|
299
|
+
interface ListLocalDeliveryOptionsResponse {
|
|
300
|
+
localDeliveryOptions?: LocalDeliveryOption[];
|
|
301
|
+
}
|
|
302
|
+
interface QueryLocalDeliveryOptionsRequest {
|
|
303
|
+
/** WQL expression */
|
|
304
|
+
query: QueryV2;
|
|
305
|
+
}
|
|
306
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
307
|
+
/** Paging options to limit and skip the number of items. */
|
|
308
|
+
paging?: Paging;
|
|
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`. */
|
|
310
|
+
cursorPaging?: CursorPaging;
|
|
311
|
+
/**
|
|
312
|
+
* Filter object.
|
|
313
|
+
*
|
|
314
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
315
|
+
*/
|
|
316
|
+
filter?: Record<string, any> | null;
|
|
317
|
+
/**
|
|
318
|
+
* Sort object.
|
|
319
|
+
*
|
|
320
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
321
|
+
* @maxSize 5
|
|
322
|
+
*/
|
|
323
|
+
sort?: Sorting[];
|
|
324
|
+
/**
|
|
325
|
+
* Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned.
|
|
326
|
+
* @maxSize 100
|
|
327
|
+
* @maxLength 20
|
|
328
|
+
*/
|
|
329
|
+
fields?: string[];
|
|
330
|
+
/**
|
|
331
|
+
* Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned.
|
|
332
|
+
* @maxSize 100
|
|
333
|
+
* @maxLength 20
|
|
334
|
+
*/
|
|
335
|
+
fieldsets?: string[];
|
|
336
|
+
}
|
|
337
|
+
/** @oneof */
|
|
338
|
+
interface QueryV2PagingMethodOneOf {
|
|
339
|
+
/** Paging options to limit and skip the number of items. */
|
|
340
|
+
paging?: Paging;
|
|
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`. */
|
|
342
|
+
cursorPaging?: CursorPaging;
|
|
343
|
+
}
|
|
344
|
+
interface Sorting {
|
|
345
|
+
/**
|
|
346
|
+
* Name of the field to sort by.
|
|
347
|
+
* @maxLength 512
|
|
348
|
+
*/
|
|
349
|
+
fieldName?: string;
|
|
350
|
+
/** Sort order. */
|
|
351
|
+
order?: SortOrder;
|
|
352
|
+
}
|
|
353
|
+
declare enum SortOrder {
|
|
354
|
+
ASC = "ASC",
|
|
355
|
+
DESC = "DESC"
|
|
356
|
+
}
|
|
357
|
+
interface Paging {
|
|
358
|
+
/** Number of items to load. */
|
|
359
|
+
limit?: number | null;
|
|
360
|
+
/** Number of items to skip in the current sort order. */
|
|
361
|
+
offset?: number | null;
|
|
362
|
+
}
|
|
363
|
+
interface CursorPaging {
|
|
364
|
+
/**
|
|
365
|
+
* Maximum number of items to return in the results.
|
|
366
|
+
* @max 100
|
|
367
|
+
*/
|
|
368
|
+
limit?: number | null;
|
|
369
|
+
/**
|
|
370
|
+
* Pointer to the next or previous page in the list of results.
|
|
371
|
+
*
|
|
372
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
373
|
+
* Not relevant for the first request.
|
|
374
|
+
* @maxLength 16000
|
|
375
|
+
*/
|
|
376
|
+
cursor?: string | null;
|
|
377
|
+
}
|
|
378
|
+
interface QueryLocalDeliveryOptionsResponse {
|
|
379
|
+
/** Retrieved local delivery options. */
|
|
380
|
+
localDeliveryOptions?: LocalDeliveryOption[];
|
|
381
|
+
/** Paging metadata. */
|
|
382
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
383
|
+
}
|
|
384
|
+
interface CursorPagingMetadata {
|
|
385
|
+
/** Number of items returned in current page. */
|
|
386
|
+
count?: number | null;
|
|
387
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
388
|
+
cursors?: Cursors;
|
|
389
|
+
/**
|
|
390
|
+
* Whether there are more pages to retrieve following the current page.
|
|
391
|
+
*
|
|
392
|
+
* + `true`: Another page of results can be retrieved.
|
|
393
|
+
* + `false`: This is the last page.
|
|
394
|
+
*/
|
|
395
|
+
hasNext?: boolean | null;
|
|
396
|
+
}
|
|
397
|
+
interface Cursors {
|
|
398
|
+
/**
|
|
399
|
+
* Cursor string pointing to the next page in the list of results.
|
|
400
|
+
* @maxLength 16000
|
|
401
|
+
*/
|
|
402
|
+
next?: string | null;
|
|
403
|
+
/**
|
|
404
|
+
* Cursor pointing to the previous page in the list of results.
|
|
405
|
+
* @maxLength 16000
|
|
406
|
+
*/
|
|
407
|
+
prev?: string | null;
|
|
408
|
+
}
|
|
409
|
+
interface UpdateLocalDeliveryOptionRequest {
|
|
410
|
+
/** LocalDeliveryOption to be updated, may be partial. */
|
|
411
|
+
localDeliveryOption: LocalDeliveryOption;
|
|
412
|
+
}
|
|
413
|
+
interface UpdateLocalDeliveryOptionResponse {
|
|
414
|
+
localDeliveryOption?: LocalDeliveryOption;
|
|
415
|
+
}
|
|
416
|
+
interface DeleteLocalDeliveryOptionRequest {
|
|
417
|
+
/**
|
|
418
|
+
* @maxLength 50
|
|
419
|
+
* @deprecated
|
|
420
|
+
* @targetRemovalDate 2025-01-12
|
|
421
|
+
*/
|
|
422
|
+
id?: string;
|
|
423
|
+
/** @maxLength 50 */
|
|
424
|
+
localDeliveryOptionId: string;
|
|
425
|
+
}
|
|
426
|
+
interface DeleteLocalDeliveryOptionResponse {
|
|
427
|
+
}
|
|
428
|
+
interface BulkCreateLocalDeliveryOptionRequest {
|
|
429
|
+
/**
|
|
430
|
+
* @minSize 1
|
|
431
|
+
* @maxSize 100
|
|
432
|
+
*/
|
|
433
|
+
localDeliveryOptions: LocalDeliveryOption[];
|
|
434
|
+
}
|
|
435
|
+
interface BulkCreateLocalDeliveryOptionResponse {
|
|
436
|
+
localDeliveryOptions?: LocalDeliveryOption[];
|
|
437
|
+
errors?: LocalDeliveryOptionError[];
|
|
438
|
+
}
|
|
439
|
+
interface LocalDeliveryOptionError {
|
|
440
|
+
id?: string;
|
|
441
|
+
error?: string;
|
|
442
|
+
}
|
|
443
|
+
interface BulkUpdateLocalDeliveryOptionRequest {
|
|
444
|
+
/**
|
|
445
|
+
* @minSize 1
|
|
446
|
+
* @maxSize 100
|
|
447
|
+
*/
|
|
448
|
+
localDeliveryOptions: LocalDeliveryOption[];
|
|
449
|
+
}
|
|
450
|
+
interface BulkUpdateLocalDeliveryOptionResponse {
|
|
451
|
+
localDeliveryOptions?: LocalDeliveryOption[];
|
|
452
|
+
errors?: LocalDeliveryOptionError[];
|
|
453
|
+
}
|
|
454
|
+
interface BulkDeleteLocalDeliveryOptionRequest {
|
|
455
|
+
/**
|
|
456
|
+
* @format GUID
|
|
457
|
+
* @minSize 1
|
|
458
|
+
* @maxSize 100
|
|
459
|
+
*/
|
|
460
|
+
ids: string[];
|
|
461
|
+
}
|
|
462
|
+
interface BulkDeleteLocalDeliveryOptionResponse {
|
|
463
|
+
}
|
|
464
|
+
interface AddDeliveryRegionRequest {
|
|
465
|
+
/** @format GUID */
|
|
466
|
+
deliveryRegionId: string;
|
|
467
|
+
/** @format GUID */
|
|
468
|
+
localDeliveryOptionId: string;
|
|
469
|
+
/** Revision of the PickupLocation */
|
|
470
|
+
revision?: string | null;
|
|
471
|
+
}
|
|
472
|
+
interface AddDeliveryRegionResponse {
|
|
473
|
+
localDeliveryOption?: LocalDeliveryOption;
|
|
474
|
+
}
|
|
475
|
+
interface RemoveDeliveryRegionRequest {
|
|
476
|
+
/** @format GUID */
|
|
477
|
+
deliveryRegionId: string;
|
|
478
|
+
/** @format GUID */
|
|
479
|
+
localDeliveryOptionId: string;
|
|
480
|
+
/** Revision of the PickupLocation */
|
|
481
|
+
revision?: string | null;
|
|
482
|
+
}
|
|
483
|
+
interface RemoveDeliveryRegionResponse {
|
|
484
|
+
localDeliveryOption?: LocalDeliveryOption;
|
|
485
|
+
}
|
|
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 };
|