@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.
Files changed (134) hide show
  1. package/build/ecom-v1-local-delivery-option-local-delivery-options.universal-B14pmV_K.d.mts +800 -0
  2. package/build/ecom-v1-local-delivery-option-local-delivery-options.universal-B14pmV_K.d.ts +800 -0
  3. package/build/index.d.mts +82 -0
  4. package/build/index.d.ts +82 -0
  5. package/build/index.js +1223 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1183 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/ecom-v1-local-delivery-option-local-delivery-options.universal-B14pmV_K.d.mts +800 -0
  10. package/build/internal/ecom-v1-local-delivery-option-local-delivery-options.universal-B14pmV_K.d.ts +800 -0
  11. package/build/internal/index.d.mts +82 -0
  12. package/build/internal/index.d.ts +82 -0
  13. package/build/internal/index.js +1223 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1183 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/{cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → meta.d.mts} +89 -195
  18. package/build/{es/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → internal/meta.d.ts} +89 -195
  19. package/build/internal/meta.js +855 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +818 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/{cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → meta.d.mts} +89 -195
  24. package/build/{internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.d.ts → meta.d.ts} +89 -195
  25. package/build/meta.js +855 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +818 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.d.ts +0 -15
  40. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.js +0 -24
  41. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.js.map +0 -1
  42. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.d.ts +0 -23
  43. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.js +0 -621
  44. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.js.map +0 -1
  45. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.d.ts +0 -29
  46. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js +0 -239
  47. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.d.ts +0 -70
  49. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.js +0 -79
  50. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.js.map +0 -1
  51. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.js +0 -59
  52. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.js.map +0 -1
  53. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.d.ts +0 -1171
  54. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -804
  55. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.d.ts +0 -15
  67. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.js +0 -15
  68. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.js.map +0 -1
  69. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.d.ts +0 -23
  70. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.js +0 -607
  71. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.js.map +0 -1
  72. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.d.ts +0 -29
  73. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js +0 -202
  74. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js.map +0 -1
  75. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.d.ts +0 -70
  76. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.js +0 -59
  77. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.js.map +0 -1
  78. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.js +0 -56
  79. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.js.map +0 -1
  80. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.d.ts +0 -1171
  81. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -767
  82. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.d.ts +0 -15
  93. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.js +0 -24
  94. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.context.js.map +0 -1
  95. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.d.ts +0 -23
  96. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.js +0 -621
  97. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.http.js.map +0 -1
  98. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.d.ts +0 -29
  99. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js +0 -239
  100. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js.map +0 -1
  101. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.d.ts +0 -70
  102. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.js +0 -79
  103. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.public.js.map +0 -1
  104. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.js +0 -59
  105. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.types.js.map +0 -1
  106. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.d.ts +0 -1171
  107. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -804
  108. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.d.ts +0 -15
  119. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.js +0 -15
  120. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.context.js.map +0 -1
  121. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.d.ts +0 -23
  122. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.js +0 -607
  123. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.http.js.map +0 -1
  124. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.d.ts +0 -29
  125. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js +0 -202
  126. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.meta.js.map +0 -1
  127. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.d.ts +0 -70
  128. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.js +0 -59
  129. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.public.js.map +0 -1
  130. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.js +0 -56
  131. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.types.js.map +0 -1
  132. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.d.ts +0 -1171
  133. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -767
  134. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js.map +0 -1
@@ -0,0 +1,800 @@
1
+ interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
2
+ zipConfig?: ZipCodeConfig;
3
+ radiusConfig?: RadiusConfig;
4
+ customAreaConfig?: CustomAreaConfig;
5
+ /**
6
+ * LocalDeliveryOptionId - unique identifier of local delivery option
7
+ * @format GUID
8
+ * @readonly
9
+ */
10
+ _id?: string | null;
11
+ /**
12
+ * Area name of Local Delivery Option
13
+ * @maxLength 100
14
+ */
15
+ areaName?: string | null;
16
+ /**
17
+ * Flat price of local delivery
18
+ * @format DECIMAL_VALUE
19
+ * @deprecated Flat price of local delivery
20
+ * @targetRemovalDate 2025-01-12
21
+ */
22
+ rate?: string | null;
23
+ /**
24
+ * Estimated delivery time description text
25
+ * @maxLength 40
26
+ */
27
+ estimatedDeliveryTime?: string | null;
28
+ /**
29
+ * Minimum order total to be eligible for free delivery
30
+ * @deprecated Minimum order total to be eligible for free delivery
31
+ * @targetRemovalDate 2025-01-12
32
+ */
33
+ minimumFreeDeliveryOrderAmount?: number | null;
34
+ /**
35
+ * List of countries with subdivisions
36
+ * @maxSize 100
37
+ */
38
+ destinations?: Destination[];
39
+ /**
40
+ * Database revision of LocalDeliveryOption entity. Incremented on each modification
41
+ * @readonly
42
+ */
43
+ revision?: string | null;
44
+ scheduledDeliveryConfig?: ScheduledDelivery;
45
+ /**
46
+ * 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.
47
+ * @maxSize 50
48
+ */
49
+ rates?: ConditionalRates[];
50
+ /**
51
+ * Date and time the LocalDeliveryOption was created.
52
+ * @readonly
53
+ */
54
+ _createdDate?: Date | null;
55
+ /**
56
+ * Date and time the LocalDeliveryOption was last updated.
57
+ * @readonly
58
+ */
59
+ _updatedDate?: Date | null;
60
+ /**
61
+ * This local delivery is active for the following delivery regions.
62
+ * @maxSize 50
63
+ * @format GUID
64
+ */
65
+ deliveryRegionIds?: string[];
66
+ }
67
+ /** @oneof */
68
+ interface LocalDeliveryOptionConfigOneOf {
69
+ zipConfig?: ZipCodeConfig;
70
+ radiusConfig?: RadiusConfig;
71
+ customAreaConfig?: CustomAreaConfig;
72
+ }
73
+ interface Destination {
74
+ /**
75
+ * Country ISO code
76
+ * @format COUNTRY
77
+ */
78
+ code?: string;
79
+ /**
80
+ * List of subdivisions, empty means all
81
+ * @maxSize 200
82
+ */
83
+ subdivisions?: string[];
84
+ }
85
+ interface ZipCodeConfig {
86
+ /**
87
+ * List of ZipCodes and ZipCode regexes. Examples: 10001, 10002 or 1000*
88
+ * @minLength 1
89
+ * @maxLength 300
90
+ */
91
+ zipCodes?: string[];
92
+ }
93
+ interface RadiusConfig {
94
+ /** Delivery-from address */
95
+ address?: LocalDeliveryAddress;
96
+ /**
97
+ * Delivery circle's radius
98
+ * @min 0.1
99
+ * @max 50
100
+ */
101
+ radius?: number;
102
+ /**
103
+ * Radius' unit, taken from site properties
104
+ * @readonly
105
+ */
106
+ lengthUnit?: LengthUnitWithLiterals;
107
+ }
108
+ interface LocalDeliveryAddress {
109
+ /**
110
+ * A string containing the human-readable address of this location
111
+ * @maxLength 400
112
+ */
113
+ formatted?: string | null;
114
+ /** coordinates of the physical address */
115
+ location?: AddressLocation;
116
+ }
117
+ interface AddressLocation {
118
+ /** Address latitude. */
119
+ latitude?: number | null;
120
+ /** Address longitude. */
121
+ longitude?: number | null;
122
+ }
123
+ declare enum LengthUnit {
124
+ /** Length unit can't be classified, due to an error */
125
+ UNSPECIFIED_LENGTH_UNIT = "UNSPECIFIED_LENGTH_UNIT",
126
+ /** Kilometers */
127
+ KM = "KM",
128
+ /** Miles */
129
+ MI = "MI"
130
+ }
131
+ /** @enumType */
132
+ type LengthUnitWithLiterals = LengthUnit | 'UNSPECIFIED_LENGTH_UNIT' | 'KM' | 'MI';
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?: DayOfWeekWithLiterals;
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
+ /** @enumType */
224
+ type DayOfWeekWithLiterals = DayOfWeek | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | 'SUN';
225
+ interface TimeOfDay {
226
+ /**
227
+ * Hours
228
+ * @max 23
229
+ */
230
+ hours?: number;
231
+ /**
232
+ * Minutes
233
+ * @max 59
234
+ */
235
+ minutes?: number;
236
+ }
237
+ interface ConditionalRates {
238
+ /**
239
+ * there is an AND logic between all the conditions. Empty conditions means true.
240
+ * The amount of the rate that will be returned if all conditions are met.
241
+ * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
242
+ */
243
+ amount?: string;
244
+ /**
245
+ * For example: weight > 0 and weight <= 10
246
+ * @maxSize 10
247
+ */
248
+ conditions?: Condition[];
249
+ /** When this flag is set to true, multiply the amount by the number of line items passed on the request. */
250
+ multiplyByQuantity?: boolean;
251
+ }
252
+ interface Condition {
253
+ type?: ConditionTypeWithLiterals;
254
+ /**
255
+ * The value in respective to the condition type
256
+ * Weight values should be in the same weight units of the store: KG / LB
257
+ * Total price is according to the store currency
258
+ * Quantity of items should be integers
259
+ * @decimalValue options { gte:0, lte:999999999, maxScale:6 }
260
+ */
261
+ value?: string;
262
+ /** Logical operator. */
263
+ operator?: LogicalOperatorWithLiterals;
264
+ }
265
+ declare enum ConditionType {
266
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
267
+ BY_TOTAL_WEIGHT = "BY_TOTAL_WEIGHT",
268
+ BY_TOTAL_PRICE = "BY_TOTAL_PRICE",
269
+ BY_TOTAL_QUANTITY = "BY_TOTAL_QUANTITY"
270
+ }
271
+ /** @enumType */
272
+ type ConditionTypeWithLiterals = ConditionType | 'UNKNOWN_TYPE' | 'BY_TOTAL_WEIGHT' | 'BY_TOTAL_PRICE' | 'BY_TOTAL_QUANTITY';
273
+ declare enum LogicalOperator {
274
+ UNKNOWN_LOGICAL_OPERATOR_TYPE = "UNKNOWN_LOGICAL_OPERATOR_TYPE",
275
+ EQ = "EQ",
276
+ GT = "GT",
277
+ GTE = "GTE",
278
+ LT = "LT",
279
+ LTE = "LTE"
280
+ }
281
+ /** @enumType */
282
+ type LogicalOperatorWithLiterals = LogicalOperator | 'UNKNOWN_LOGICAL_OPERATOR_TYPE' | 'EQ' | 'GT' | 'GTE' | 'LT' | 'LTE';
283
+ interface CreateLocalDeliveryOptionRequest {
284
+ localDeliveryOption: LocalDeliveryOption;
285
+ }
286
+ interface CreateLocalDeliveryOptionResponse {
287
+ localDeliveryOption?: LocalDeliveryOption;
288
+ }
289
+ interface GetLocalDeliveryOptionRequest {
290
+ /**
291
+ * @maxLength 50
292
+ * @deprecated
293
+ * @targetRemovalDate 2025-01-12
294
+ */
295
+ _id?: string;
296
+ /** @maxLength 50 */
297
+ localDeliveryOptionId: string;
298
+ }
299
+ interface GetLocalDeliveryOptionResponse {
300
+ localDeliveryOption?: LocalDeliveryOption;
301
+ }
302
+ interface ListLocalDeliveryOptionsRequest {
303
+ /** @format GUID */
304
+ externalId: string;
305
+ }
306
+ interface ListLocalDeliveryOptionsResponse {
307
+ localDeliveryOptions?: LocalDeliveryOption[];
308
+ }
309
+ interface QueryLocalDeliveryOptionsRequest {
310
+ /** WQL expression */
311
+ query: QueryV2;
312
+ }
313
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
314
+ /** Paging options to limit and skip the number of items. */
315
+ paging?: Paging;
316
+ /** 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`. */
317
+ cursorPaging?: CursorPaging;
318
+ /**
319
+ * Filter object.
320
+ *
321
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
322
+ */
323
+ filter?: Record<string, any> | null;
324
+ /**
325
+ * Sort object.
326
+ *
327
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
328
+ * @maxSize 5
329
+ */
330
+ sort?: Sorting[];
331
+ /**
332
+ * 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.
333
+ * @maxSize 100
334
+ * @maxLength 20
335
+ */
336
+ fields?: string[];
337
+ /**
338
+ * 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.
339
+ * @maxSize 100
340
+ * @maxLength 20
341
+ */
342
+ fieldsets?: string[];
343
+ }
344
+ /** @oneof */
345
+ interface QueryV2PagingMethodOneOf {
346
+ /** Paging options to limit and skip the number of items. */
347
+ paging?: Paging;
348
+ /** 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
+ cursorPaging?: CursorPaging;
350
+ }
351
+ interface Sorting {
352
+ /**
353
+ * Name of the field to sort by.
354
+ * @maxLength 512
355
+ */
356
+ fieldName?: string;
357
+ /** Sort order. */
358
+ order?: SortOrderWithLiterals;
359
+ }
360
+ declare enum SortOrder {
361
+ ASC = "ASC",
362
+ DESC = "DESC"
363
+ }
364
+ /** @enumType */
365
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
366
+ interface Paging {
367
+ /** Number of items to load. */
368
+ limit?: number | null;
369
+ /** Number of items to skip in the current sort order. */
370
+ offset?: number | null;
371
+ }
372
+ interface CursorPaging {
373
+ /**
374
+ * Maximum number of items to return in the results.
375
+ * @max 100
376
+ */
377
+ limit?: number | null;
378
+ /**
379
+ * Pointer to the next or previous page in the list of results.
380
+ *
381
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
382
+ * Not relevant for the first request.
383
+ * @maxLength 16000
384
+ */
385
+ cursor?: string | null;
386
+ }
387
+ interface QueryLocalDeliveryOptionsResponse {
388
+ /** Retrieved local delivery options. */
389
+ localDeliveryOptions?: LocalDeliveryOption[];
390
+ /** Paging metadata. */
391
+ pagingMetadata?: CursorPagingMetadata;
392
+ }
393
+ interface CursorPagingMetadata {
394
+ /** Number of items returned in current page. */
395
+ count?: number | null;
396
+ /** Cursor strings that point to the next page, previous page, or both. */
397
+ cursors?: Cursors;
398
+ /**
399
+ * Whether there are more pages to retrieve following the current page.
400
+ *
401
+ * + `true`: Another page of results can be retrieved.
402
+ * + `false`: This is the last page.
403
+ */
404
+ hasNext?: boolean | null;
405
+ }
406
+ interface Cursors {
407
+ /**
408
+ * Cursor string pointing to the next page in the list of results.
409
+ * @maxLength 16000
410
+ */
411
+ next?: string | null;
412
+ /**
413
+ * Cursor pointing to the previous page in the list of results.
414
+ * @maxLength 16000
415
+ */
416
+ prev?: string | null;
417
+ }
418
+ interface UpdateLocalDeliveryOptionRequest {
419
+ /** LocalDeliveryOption to be updated, may be partial. */
420
+ localDeliveryOption: LocalDeliveryOption;
421
+ }
422
+ interface UpdateLocalDeliveryOptionResponse {
423
+ localDeliveryOption?: LocalDeliveryOption;
424
+ }
425
+ interface DeleteLocalDeliveryOptionRequest {
426
+ /**
427
+ * @maxLength 50
428
+ * @deprecated
429
+ * @targetRemovalDate 2025-01-12
430
+ */
431
+ _id?: string;
432
+ /** @maxLength 50 */
433
+ localDeliveryOptionId: string;
434
+ }
435
+ interface DeleteLocalDeliveryOptionResponse {
436
+ }
437
+ interface BulkCreateLocalDeliveryOptionRequest {
438
+ /**
439
+ * @minSize 1
440
+ * @maxSize 100
441
+ */
442
+ localDeliveryOptions: LocalDeliveryOption[];
443
+ }
444
+ interface BulkCreateLocalDeliveryOptionResponse {
445
+ localDeliveryOptions?: LocalDeliveryOption[];
446
+ errors?: LocalDeliveryOptionError[];
447
+ }
448
+ interface LocalDeliveryOptionError {
449
+ _id?: string;
450
+ error?: string;
451
+ }
452
+ interface BulkUpdateLocalDeliveryOptionRequest {
453
+ /**
454
+ * @minSize 1
455
+ * @maxSize 100
456
+ */
457
+ localDeliveryOptions: LocalDeliveryOption[];
458
+ }
459
+ interface BulkUpdateLocalDeliveryOptionResponse {
460
+ localDeliveryOptions?: LocalDeliveryOption[];
461
+ errors?: LocalDeliveryOptionError[];
462
+ }
463
+ interface BulkDeleteLocalDeliveryOptionRequest {
464
+ /**
465
+ * @format GUID
466
+ * @minSize 1
467
+ * @maxSize 100
468
+ */
469
+ ids: string[];
470
+ }
471
+ interface BulkDeleteLocalDeliveryOptionResponse {
472
+ }
473
+ interface Empty {
474
+ }
475
+ 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
+ interface DomainEventBodyOneOf {
511
+ createdEvent?: EntityCreatedEvent;
512
+ updatedEvent?: EntityUpdatedEvent;
513
+ deletedEvent?: EntityDeletedEvent;
514
+ actionEvent?: ActionEvent;
515
+ }
516
+ interface EntityCreatedEvent {
517
+ entity?: string;
518
+ }
519
+ interface RestoreInfo {
520
+ deletedDate?: Date | null;
521
+ }
522
+ interface EntityUpdatedEvent {
523
+ /**
524
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
525
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
526
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
527
+ */
528
+ currentEntity?: string;
529
+ }
530
+ interface EntityDeletedEvent {
531
+ /** Entity that was deleted. */
532
+ deletedEntity?: string | null;
533
+ }
534
+ interface ActionEvent {
535
+ body?: string;
536
+ }
537
+ interface AddDeliveryRegionRequest {
538
+ /** @format GUID */
539
+ deliveryRegionId: string;
540
+ /** @format GUID */
541
+ localDeliveryOptionId: string;
542
+ /** Revision of the PickupLocation */
543
+ revision?: string | null;
544
+ }
545
+ interface AddDeliveryRegionResponse {
546
+ localDeliveryOption?: LocalDeliveryOption;
547
+ }
548
+ interface RemoveDeliveryRegionRequest {
549
+ /** @format GUID */
550
+ deliveryRegionId: string;
551
+ /** @format GUID */
552
+ localDeliveryOptionId: string;
553
+ /** Revision of the PickupLocation */
554
+ revision?: string | null;
555
+ }
556
+ interface RemoveDeliveryRegionResponse {
557
+ localDeliveryOption?: LocalDeliveryOption;
558
+ }
559
+ interface MessageEnvelope {
560
+ /**
561
+ * App instance ID.
562
+ * @format GUID
563
+ */
564
+ instanceId?: string | null;
565
+ /**
566
+ * Event type.
567
+ * @maxLength 150
568
+ */
569
+ eventType?: string;
570
+ /** The identification type and identity data. */
571
+ identity?: IdentificationData;
572
+ /** Stringify payload. */
573
+ data?: string;
574
+ }
575
+ interface IdentificationData extends IdentificationDataIdOneOf {
576
+ /**
577
+ * ID of a site visitor that has not logged in to the site.
578
+ * @format GUID
579
+ */
580
+ anonymousVisitorId?: string;
581
+ /**
582
+ * ID of a site visitor that has logged in to the site.
583
+ * @format GUID
584
+ */
585
+ memberId?: string;
586
+ /**
587
+ * ID of a Wix user (site owner, contributor, etc.).
588
+ * @format GUID
589
+ */
590
+ wixUserId?: string;
591
+ /**
592
+ * ID of an app.
593
+ * @format GUID
594
+ */
595
+ appId?: string;
596
+ /** @readonly */
597
+ identityType?: WebhookIdentityTypeWithLiterals;
598
+ }
599
+ /** @oneof */
600
+ interface IdentificationDataIdOneOf {
601
+ /**
602
+ * ID of a site visitor that has not logged in to the site.
603
+ * @format GUID
604
+ */
605
+ anonymousVisitorId?: string;
606
+ /**
607
+ * ID of a site visitor that has logged in to the site.
608
+ * @format GUID
609
+ */
610
+ memberId?: string;
611
+ /**
612
+ * ID of a Wix user (site owner, contributor, etc.).
613
+ * @format GUID
614
+ */
615
+ wixUserId?: string;
616
+ /**
617
+ * ID of an app.
618
+ * @format GUID
619
+ */
620
+ appId?: string;
621
+ }
622
+ declare enum WebhookIdentityType {
623
+ UNKNOWN = "UNKNOWN",
624
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
625
+ MEMBER = "MEMBER",
626
+ WIX_USER = "WIX_USER",
627
+ APP = "APP"
628
+ }
629
+ /** @enumType */
630
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
631
+ interface GetLocalDeliveryOptionOptions {
632
+ /**
633
+ * @maxLength 50
634
+ * @deprecated
635
+ * @targetRemovalDate 2025-01-12
636
+ */
637
+ _id?: string;
638
+ }
639
+ interface QueryCursorResult {
640
+ cursors: Cursors;
641
+ hasNext: () => boolean;
642
+ hasPrev: () => boolean;
643
+ length: number;
644
+ pageSize: number;
645
+ }
646
+ interface LocalDeliveryOptionsQueryResult extends QueryCursorResult {
647
+ items: LocalDeliveryOption[];
648
+ query: LocalDeliveryOptionsQueryBuilder;
649
+ next: () => Promise<LocalDeliveryOptionsQueryResult>;
650
+ prev: () => Promise<LocalDeliveryOptionsQueryResult>;
651
+ }
652
+ interface LocalDeliveryOptionsQueryBuilder {
653
+ /** @param propertyName - Property whose value is compared with `value`.
654
+ * @param value - Value to compare against.
655
+ * @documentationMaturity preview
656
+ */
657
+ eq: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime' | 'deliveryRegionIds', value: any) => LocalDeliveryOptionsQueryBuilder;
658
+ /** @param propertyName - Property whose value is compared with `value`.
659
+ * @param value - Value to compare against.
660
+ * @documentationMaturity preview
661
+ */
662
+ ne: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime' | 'deliveryRegionIds', value: any) => LocalDeliveryOptionsQueryBuilder;
663
+ /** @param propertyName - Property whose value is compared with `value`.
664
+ * @param value - Value to compare against.
665
+ * @documentationMaturity preview
666
+ */
667
+ ge: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime', value: any) => LocalDeliveryOptionsQueryBuilder;
668
+ /** @param propertyName - Property whose value is compared with `value`.
669
+ * @param value - Value to compare against.
670
+ * @documentationMaturity preview
671
+ */
672
+ gt: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime', value: any) => LocalDeliveryOptionsQueryBuilder;
673
+ /** @param propertyName - Property whose value is compared with `value`.
674
+ * @param value - Value to compare against.
675
+ * @documentationMaturity preview
676
+ */
677
+ le: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime', value: any) => LocalDeliveryOptionsQueryBuilder;
678
+ /** @param propertyName - Property whose value is compared with `value`.
679
+ * @param value - Value to compare against.
680
+ * @documentationMaturity preview
681
+ */
682
+ lt: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime', value: any) => LocalDeliveryOptionsQueryBuilder;
683
+ /** @param propertyName - Property whose value is compared with `string`.
684
+ * @param string - String to compare against. Case-insensitive.
685
+ * @documentationMaturity preview
686
+ */
687
+ startsWith: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime', value: string) => LocalDeliveryOptionsQueryBuilder;
688
+ /** @param propertyName - Property whose value is compared with `values`.
689
+ * @param values - List of values to compare against.
690
+ * @documentationMaturity preview
691
+ */
692
+ hasSome: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime' | 'deliveryRegionIds', value: any[]) => LocalDeliveryOptionsQueryBuilder;
693
+ /** @param propertyName - Property whose value is compared with `values`.
694
+ * @param values - List of values to compare against.
695
+ * @documentationMaturity preview
696
+ */
697
+ hasAll: (propertyName: 'deliveryRegionIds', value: any[]) => LocalDeliveryOptionsQueryBuilder;
698
+ /** @documentationMaturity preview */
699
+ in: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime' | 'deliveryRegionIds', value: any) => LocalDeliveryOptionsQueryBuilder;
700
+ /** @documentationMaturity preview */
701
+ exists: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime' | 'deliveryRegionIds', value: boolean) => LocalDeliveryOptionsQueryBuilder;
702
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
703
+ * @documentationMaturity preview
704
+ */
705
+ limit: (limit: number) => LocalDeliveryOptionsQueryBuilder;
706
+ /** @param cursor - A pointer to specific record
707
+ * @documentationMaturity preview
708
+ */
709
+ skipTo: (cursor: string) => LocalDeliveryOptionsQueryBuilder;
710
+ /** @documentationMaturity preview */
711
+ find: () => Promise<LocalDeliveryOptionsQueryResult>;
712
+ }
713
+ interface UpdateLocalDeliveryOption {
714
+ zipConfig?: ZipCodeConfig;
715
+ radiusConfig?: RadiusConfig;
716
+ customAreaConfig?: CustomAreaConfig;
717
+ /**
718
+ * LocalDeliveryOptionId - unique identifier of local delivery option
719
+ * @format GUID
720
+ * @readonly
721
+ */
722
+ _id?: string | null;
723
+ /**
724
+ * Area name of Local Delivery Option
725
+ * @maxLength 100
726
+ */
727
+ areaName?: string | null;
728
+ /**
729
+ * Flat price of local delivery
730
+ * @format DECIMAL_VALUE
731
+ * @deprecated Flat price of local delivery
732
+ * @targetRemovalDate 2025-01-12
733
+ */
734
+ rate?: string | null;
735
+ /**
736
+ * Estimated delivery time description text
737
+ * @maxLength 40
738
+ */
739
+ estimatedDeliveryTime?: string | null;
740
+ /**
741
+ * Minimum order total to be eligible for free delivery
742
+ * @deprecated Minimum order total to be eligible for free delivery
743
+ * @targetRemovalDate 2025-01-12
744
+ */
745
+ minimumFreeDeliveryOrderAmount?: number | null;
746
+ /**
747
+ * List of countries with subdivisions
748
+ * @maxSize 100
749
+ */
750
+ destinations?: Destination[];
751
+ /**
752
+ * Database revision of LocalDeliveryOption entity. Incremented on each modification
753
+ * @readonly
754
+ */
755
+ revision?: string | null;
756
+ scheduledDeliveryConfig?: ScheduledDelivery;
757
+ /**
758
+ * 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.
759
+ * @maxSize 50
760
+ */
761
+ rates?: ConditionalRates[];
762
+ /**
763
+ * Date and time the LocalDeliveryOption was created.
764
+ * @readonly
765
+ */
766
+ _createdDate?: Date | null;
767
+ /**
768
+ * Date and time the LocalDeliveryOption was last updated.
769
+ * @readonly
770
+ */
771
+ _updatedDate?: Date | null;
772
+ /**
773
+ * This local delivery is active for the following delivery regions.
774
+ * @maxSize 50
775
+ * @format GUID
776
+ */
777
+ deliveryRegionIds?: string[];
778
+ }
779
+ interface DeleteLocalDeliveryOptionOptions {
780
+ /**
781
+ * @maxLength 50
782
+ * @deprecated
783
+ * @targetRemovalDate 2025-01-12
784
+ */
785
+ _id?: string;
786
+ }
787
+ interface AddDeliveryRegionOptions {
788
+ /** @format GUID */
789
+ localDeliveryOptionId: string;
790
+ /** Revision of the PickupLocation */
791
+ revision?: string | null;
792
+ }
793
+ interface RemoveDeliveryRegionOptions {
794
+ /** @format GUID */
795
+ localDeliveryOptionId: string;
796
+ /** Revision of the PickupLocation */
797
+ revision?: string | null;
798
+ }
799
+
800
+ export { type LocalDeliveryOptionError as $, type AddDeliveryRegionOptions as A, type BulkCreateLocalDeliveryOptionResponse as B, ConditionType as C, type DeleteLocalDeliveryOptionOptions as D, type ListLocalDeliveryOptionsRequest as E, type QueryV2 as F, type GetLocalDeliveryOptionOptions as G, type QueryV2PagingMethodOneOf as H, type Sorting as I, type CursorPaging as J, type QueryLocalDeliveryOptionsResponse as K, type LocalDeliveryOption as L, type CursorPagingMetadata as M, type Cursors as N, type UpdateLocalDeliveryOptionRequest as O, type Paging as P, type QueryLocalDeliveryOptionsRequest as Q, type RemoveDeliveryRegionOptions as R, SortOrder as S, type TimeSlot as T, type UpdateLocalDeliveryOption as U, type UpdateLocalDeliveryOptionResponse as V, WebhookIdentityType as W, type DeleteLocalDeliveryOptionRequest as X, type DeleteLocalDeliveryOptionResponse as Y, type ZipCodeConfig as Z, type BulkCreateLocalDeliveryOptionRequest as _, type ListLocalDeliveryOptionsResponse as a, type BulkUpdateLocalDeliveryOptionRequest as a0, type BulkDeleteLocalDeliveryOptionRequest as a1, type BulkDeleteLocalDeliveryOptionResponse as a2, type Empty as a3, type DomainEvent as a4, type DomainEventBodyOneOf as a5, type EntityCreatedEvent as a6, type RestoreInfo as a7, type EntityUpdatedEvent as a8, type EntityDeletedEvent as a9, type ActionEvent as aa, type AddDeliveryRegionRequest as ab, type RemoveDeliveryRegionRequest as ac, type MessageEnvelope as ad, type IdentificationData as ae, type IdentificationDataIdOneOf as af, type LocalDeliveryOptionsQueryResult as ag, type LocalDeliveryOptionsQueryBuilder as b, type BulkUpdateLocalDeliveryOptionResponse as c, type AddDeliveryRegionResponse as d, type RemoveDeliveryRegionResponse as e, LengthUnit as f, DayOfWeek as g, LogicalOperator as h, type LocalDeliveryOptionConfigOneOf as i, type Destination as j, type RadiusConfig as k, type LocalDeliveryAddress as l, type AddressLocation as m, type CustomAreaConfig as n, type ScheduledDelivery as o, type Days as p, type DaySlot as q, type TimePoint as r, type TimeWindow as s, type TimeOfDay as t, type ConditionalRates as u, type Condition as v, type CreateLocalDeliveryOptionRequest as w, type CreateLocalDeliveryOptionResponse as x, type GetLocalDeliveryOptionRequest as y, type GetLocalDeliveryOptionResponse as z };