@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.
Files changed (134) hide show
  1. 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
  2. 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
  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/{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
  10. 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
  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/meta.d.mts +515 -0
  18. package/build/internal/meta.d.ts +515 -0
  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/meta.d.mts +515 -0
  24. package/build/meta.d.ts +515 -0
  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 +13 -12
  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 -1175
  54. package/build/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -771
  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 -1175
  81. package/build/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -734
  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 -1175
  107. package/build/internal/cjs/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -771
  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 -1175
  133. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js +0 -734
  134. package/build/internal/es/src/ecom-v1-local-delivery-option-local-delivery-options.universal.js.map +0 -1
@@ -1,4 +1,4 @@
1
- export interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
1
+ interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
2
2
  zipConfig?: ZipCodeConfig;
3
3
  radiusConfig?: RadiusConfig;
4
4
  customAreaConfig?: CustomAreaConfig;
@@ -7,7 +7,7 @@ export interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
7
7
  * @format GUID
8
8
  * @readonly
9
9
  */
10
- id?: string | null;
10
+ _id?: string | null;
11
11
  /**
12
12
  * Area name of Local Delivery Option
13
13
  * @maxLength 100
@@ -51,12 +51,12 @@ export interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
51
51
  * Date and time the LocalDeliveryOption was created.
52
52
  * @readonly
53
53
  */
54
- createdDate?: Date | null;
54
+ _createdDate?: Date | null;
55
55
  /**
56
56
  * Date and time the LocalDeliveryOption was last updated.
57
57
  * @readonly
58
58
  */
59
- updatedDate?: Date | null;
59
+ _updatedDate?: Date | null;
60
60
  /**
61
61
  * This local delivery is active for the following delivery regions.
62
62
  * @maxSize 5
@@ -65,12 +65,12 @@ export interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
65
65
  deliveryRegionIds?: string[];
66
66
  }
67
67
  /** @oneof */
68
- export interface LocalDeliveryOptionConfigOneOf {
68
+ interface LocalDeliveryOptionConfigOneOf {
69
69
  zipConfig?: ZipCodeConfig;
70
70
  radiusConfig?: RadiusConfig;
71
71
  customAreaConfig?: CustomAreaConfig;
72
72
  }
73
- export interface Destination {
73
+ interface Destination {
74
74
  /**
75
75
  * Country ISO code
76
76
  * @format COUNTRY
@@ -82,7 +82,7 @@ export interface Destination {
82
82
  */
83
83
  subdivisions?: string[];
84
84
  }
85
- export interface ZipCodeConfig {
85
+ interface ZipCodeConfig {
86
86
  /**
87
87
  * List of ZipCodes and ZipCode regexes. Examples: 10001, 10002 or 1000*
88
88
  * @minLength 1
@@ -90,7 +90,7 @@ export interface ZipCodeConfig {
90
90
  */
91
91
  zipCodes?: string[];
92
92
  }
93
- export interface RadiusConfig {
93
+ interface RadiusConfig {
94
94
  /** Delivery-from address */
95
95
  address?: LocalDeliveryAddress;
96
96
  /**
@@ -105,22 +105,22 @@ export interface RadiusConfig {
105
105
  */
106
106
  lengthUnit?: LengthUnit;
107
107
  }
108
- export interface LocalDeliveryAddress {
108
+ interface LocalDeliveryAddress {
109
109
  /**
110
110
  * A string containing the human-readable address of this location
111
111
  * @maxLength 400
112
112
  */
113
- formattedAddress?: string | null;
113
+ formatted?: string | null;
114
114
  /** coordinates of the physical address */
115
- geocode?: AddressLocation;
115
+ location?: AddressLocation;
116
116
  }
117
- export interface AddressLocation {
117
+ interface AddressLocation {
118
118
  /** Address latitude. */
119
119
  latitude?: number | null;
120
120
  /** Address longitude. */
121
121
  longitude?: number | null;
122
122
  }
123
- export declare enum LengthUnit {
123
+ declare enum LengthUnit {
124
124
  /** Length unit can't be classified, due to an error */
125
125
  UNSPECIFIED_LENGTH_UNIT = "UNSPECIFIED_LENGTH_UNIT",
126
126
  /** Kilometers */
@@ -128,14 +128,14 @@ export declare enum LengthUnit {
128
128
  /** Miles */
129
129
  MI = "MI"
130
130
  }
131
- export interface CustomAreaConfig {
131
+ interface CustomAreaConfig {
132
132
  /**
133
133
  * Geocodes of the polygon defining the delivery area.
134
134
  * @maxSize 300
135
135
  */
136
136
  geocodes?: AddressLocation[];
137
137
  }
138
- export interface ScheduledDelivery {
138
+ interface ScheduledDelivery {
139
139
  /**
140
140
  * Days config which contain days when delivery is enabled with it's time slots
141
141
  * @deprecated Days config which contain days when delivery is enabled with it's time slots
@@ -156,7 +156,7 @@ export interface ScheduledDelivery {
156
156
  */
157
157
  timeWindows?: TimeWindow[];
158
158
  }
159
- export interface Days {
159
+ interface Days {
160
160
  monday?: DaySlot;
161
161
  tuesday?: DaySlot;
162
162
  wednesday?: DaySlot;
@@ -165,7 +165,7 @@ export interface Days {
165
165
  saturday?: DaySlot;
166
166
  sunday?: DaySlot;
167
167
  }
168
- export interface DaySlot {
168
+ interface DaySlot {
169
169
  /** Shows whether this day slot is enabled for delivery */
170
170
  enabledForDelivery?: boolean | null;
171
171
  /**
@@ -174,13 +174,13 @@ export interface DaySlot {
174
174
  */
175
175
  timeSlots?: TimeSlot[];
176
176
  }
177
- export interface TimeSlot {
177
+ interface TimeSlot {
178
178
  /** Starting time point of time slot */
179
179
  from?: TimePoint;
180
180
  /** End time point of time slot */
181
181
  to?: TimePoint;
182
182
  }
183
- export interface TimePoint {
183
+ interface TimePoint {
184
184
  /**
185
185
  * Hours in format 0-23
186
186
  * @max 23
@@ -192,7 +192,7 @@ export interface TimePoint {
192
192
  */
193
193
  minutes?: number | null;
194
194
  }
195
- export interface TimeWindow {
195
+ interface TimeWindow {
196
196
  /** The day of week this availability relates to. */
197
197
  day?: DayOfWeek;
198
198
  /** The start time in time of day representation. */
@@ -202,7 +202,7 @@ export interface TimeWindow {
202
202
  /** Whether this timeWindow availability is enabled. */
203
203
  enabled?: boolean | null;
204
204
  }
205
- export declare enum DayOfWeek {
205
+ declare enum DayOfWeek {
206
206
  /** Monday. */
207
207
  MON = "MON",
208
208
  /** Tuesday. */
@@ -218,7 +218,7 @@ export declare enum DayOfWeek {
218
218
  /** Sunday. */
219
219
  SUN = "SUN"
220
220
  }
221
- export interface TimeOfDay {
221
+ interface TimeOfDay {
222
222
  /**
223
223
  * Hours
224
224
  * @max 23
@@ -230,7 +230,7 @@ export interface TimeOfDay {
230
230
  */
231
231
  minutes?: number;
232
232
  }
233
- export interface ConditionalRates {
233
+ interface ConditionalRates {
234
234
  /**
235
235
  * there is an AND logic between all the conditions. Empty conditions means true.
236
236
  * For example: weight > 0 and weight <= 10
@@ -245,7 +245,7 @@ export interface ConditionalRates {
245
245
  /** When this flag is set to true, multiply the amount by the number of line items passed on the request. */
246
246
  multiplyByQuantity?: boolean;
247
247
  }
248
- export interface Condition {
248
+ interface Condition {
249
249
  type?: ConditionType;
250
250
  /**
251
251
  * The value in respective to the condition type
@@ -257,13 +257,13 @@ export interface Condition {
257
257
  value?: string;
258
258
  operator?: LogicalOperator;
259
259
  }
260
- export declare enum ConditionType {
260
+ declare enum ConditionType {
261
261
  UNKNOWN_TYPE = "UNKNOWN_TYPE",
262
262
  BY_TOTAL_WEIGHT = "BY_TOTAL_WEIGHT",
263
263
  BY_TOTAL_PRICE = "BY_TOTAL_PRICE",
264
264
  BY_TOTAL_QUANTITY = "BY_TOTAL_QUANTITY"
265
265
  }
266
- export declare enum LogicalOperator {
266
+ declare enum LogicalOperator {
267
267
  UNKNOWN_LOGICAL_OPERATOR_TYPE = "UNKNOWN_LOGICAL_OPERATOR_TYPE",
268
268
  EQ = "EQ",
269
269
  GT = "GT",
@@ -271,37 +271,37 @@ export declare enum LogicalOperator {
271
271
  LT = "LT",
272
272
  LTE = "LTE"
273
273
  }
274
- export interface CreateLocalDeliveryOptionRequest {
274
+ interface CreateLocalDeliveryOptionRequest {
275
275
  localDeliveryOption: LocalDeliveryOption;
276
276
  }
277
- export interface CreateLocalDeliveryOptionResponse {
277
+ interface CreateLocalDeliveryOptionResponse {
278
278
  localDeliveryOption?: LocalDeliveryOption;
279
279
  }
280
- export interface GetLocalDeliveryOptionRequest {
280
+ interface GetLocalDeliveryOptionRequest {
281
281
  /**
282
282
  * @maxLength 50
283
283
  * @deprecated
284
284
  * @targetRemovalDate 2025-01-12
285
285
  */
286
- id?: string;
286
+ _id?: string;
287
287
  /** @maxLength 50 */
288
288
  localDeliveryOptionId: string;
289
289
  }
290
- export interface GetLocalDeliveryOptionResponse {
290
+ interface GetLocalDeliveryOptionResponse {
291
291
  localDeliveryOption?: LocalDeliveryOption;
292
292
  }
293
- export interface ListLocalDeliveryOptionsRequest {
293
+ interface ListLocalDeliveryOptionsRequest {
294
294
  /** @format GUID */
295
295
  externalId: string;
296
296
  }
297
- export interface ListLocalDeliveryOptionsResponse {
297
+ interface ListLocalDeliveryOptionsResponse {
298
298
  localDeliveryOptions?: LocalDeliveryOption[];
299
299
  }
300
- export interface QueryLocalDeliveryOptionsRequest {
300
+ interface QueryLocalDeliveryOptionsRequest {
301
301
  /** WQL expression */
302
302
  query: QueryV2;
303
303
  }
304
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
304
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
305
305
  /** Paging options to limit and skip the number of items. */
306
306
  paging?: Paging;
307
307
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
@@ -333,13 +333,13 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
333
333
  fieldsets?: string[];
334
334
  }
335
335
  /** @oneof */
336
- export interface QueryV2PagingMethodOneOf {
336
+ interface QueryV2PagingMethodOneOf {
337
337
  /** Paging options to limit and skip the number of items. */
338
338
  paging?: Paging;
339
339
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
340
340
  cursorPaging?: CursorPaging;
341
341
  }
342
- export interface Sorting {
342
+ interface Sorting {
343
343
  /**
344
344
  * Name of the field to sort by.
345
345
  * @maxLength 512
@@ -348,17 +348,17 @@ export interface Sorting {
348
348
  /** Sort order. */
349
349
  order?: SortOrder;
350
350
  }
351
- export declare enum SortOrder {
351
+ declare enum SortOrder {
352
352
  ASC = "ASC",
353
353
  DESC = "DESC"
354
354
  }
355
- export interface Paging {
355
+ interface Paging {
356
356
  /** Number of items to load. */
357
357
  limit?: number | null;
358
358
  /** Number of items to skip in the current sort order. */
359
359
  offset?: number | null;
360
360
  }
361
- export interface CursorPaging {
361
+ interface CursorPaging {
362
362
  /**
363
363
  * Maximum number of items to return in the results.
364
364
  * @max 100
@@ -373,13 +373,13 @@ export interface CursorPaging {
373
373
  */
374
374
  cursor?: string | null;
375
375
  }
376
- export interface QueryLocalDeliveryOptionsResponse {
376
+ interface QueryLocalDeliveryOptionsResponse {
377
377
  /** Retrieved local delivery options. */
378
378
  localDeliveryOptions?: LocalDeliveryOption[];
379
379
  /** Paging metadata. */
380
380
  pagingMetadata?: CursorPagingMetadata;
381
381
  }
382
- export interface CursorPagingMetadata {
382
+ interface CursorPagingMetadata {
383
383
  /** Number of items returned in current page. */
384
384
  count?: number | null;
385
385
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -392,7 +392,7 @@ export interface CursorPagingMetadata {
392
392
  */
393
393
  hasNext?: boolean | null;
394
394
  }
395
- export interface Cursors {
395
+ interface Cursors {
396
396
  /**
397
397
  * Cursor string pointing to the next page in the list of results.
398
398
  * @maxLength 16000
@@ -404,52 +404,52 @@ export interface Cursors {
404
404
  */
405
405
  prev?: string | null;
406
406
  }
407
- export interface UpdateLocalDeliveryOptionRequest {
407
+ interface UpdateLocalDeliveryOptionRequest {
408
408
  /** LocalDeliveryOption to be updated, may be partial. */
409
409
  localDeliveryOption: LocalDeliveryOption;
410
410
  }
411
- export interface UpdateLocalDeliveryOptionResponse {
411
+ interface UpdateLocalDeliveryOptionResponse {
412
412
  localDeliveryOption?: LocalDeliveryOption;
413
413
  }
414
- export interface DeleteLocalDeliveryOptionRequest {
414
+ interface DeleteLocalDeliveryOptionRequest {
415
415
  /**
416
416
  * @maxLength 50
417
417
  * @deprecated
418
418
  * @targetRemovalDate 2025-01-12
419
419
  */
420
- id?: string;
420
+ _id?: string;
421
421
  /** @maxLength 50 */
422
422
  localDeliveryOptionId: string;
423
423
  }
424
- export interface DeleteLocalDeliveryOptionResponse {
424
+ interface DeleteLocalDeliveryOptionResponse {
425
425
  }
426
- export interface BulkCreateLocalDeliveryOptionRequest {
426
+ interface BulkCreateLocalDeliveryOptionRequest {
427
427
  /**
428
428
  * @minSize 1
429
429
  * @maxSize 100
430
430
  */
431
431
  localDeliveryOptions: LocalDeliveryOption[];
432
432
  }
433
- export interface BulkCreateLocalDeliveryOptionResponse {
433
+ interface BulkCreateLocalDeliveryOptionResponse {
434
434
  localDeliveryOptions?: LocalDeliveryOption[];
435
435
  errors?: LocalDeliveryOptionError[];
436
436
  }
437
- export interface LocalDeliveryOptionError {
438
- id?: string;
437
+ interface LocalDeliveryOptionError {
438
+ _id?: string;
439
439
  error?: string;
440
440
  }
441
- export interface BulkUpdateLocalDeliveryOptionRequest {
441
+ interface BulkUpdateLocalDeliveryOptionRequest {
442
442
  /**
443
443
  * @minSize 1
444
444
  * @maxSize 100
445
445
  */
446
446
  localDeliveryOptions: LocalDeliveryOption[];
447
447
  }
448
- export interface BulkUpdateLocalDeliveryOptionResponse {
448
+ interface BulkUpdateLocalDeliveryOptionResponse {
449
449
  localDeliveryOptions?: LocalDeliveryOption[];
450
450
  errors?: LocalDeliveryOptionError[];
451
451
  }
452
- export interface BulkDeleteLocalDeliveryOptionRequest {
452
+ interface BulkDeleteLocalDeliveryOptionRequest {
453
453
  /**
454
454
  * @format GUID
455
455
  * @minSize 1
@@ -457,11 +457,11 @@ export interface BulkDeleteLocalDeliveryOptionRequest {
457
457
  */
458
458
  ids: string[];
459
459
  }
460
- export interface BulkDeleteLocalDeliveryOptionResponse {
460
+ interface BulkDeleteLocalDeliveryOptionResponse {
461
461
  }
462
- export interface Empty {
462
+ interface Empty {
463
463
  }
464
- export interface DomainEvent extends DomainEventBodyOneOf {
464
+ interface DomainEvent extends DomainEventBodyOneOf {
465
465
  createdEvent?: EntityCreatedEvent;
466
466
  updatedEvent?: EntityUpdatedEvent;
467
467
  deletedEvent?: EntityDeletedEvent;
@@ -470,7 +470,7 @@ export interface DomainEvent extends DomainEventBodyOneOf {
470
470
  * Unique event ID.
471
471
  * Allows clients to ignore duplicate webhooks.
472
472
  */
473
- id?: string;
473
+ _id?: string;
474
474
  /**
475
475
  * Assumes actions are also always typed to an entity_type
476
476
  * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
@@ -504,36 +504,34 @@ export interface DomainEvent extends DomainEventBodyOneOf {
504
504
  entityEventSequence?: string | null;
505
505
  }
506
506
  /** @oneof */
507
- export interface DomainEventBodyOneOf {
507
+ interface DomainEventBodyOneOf {
508
508
  createdEvent?: EntityCreatedEvent;
509
509
  updatedEvent?: EntityUpdatedEvent;
510
510
  deletedEvent?: EntityDeletedEvent;
511
511
  actionEvent?: ActionEvent;
512
512
  }
513
- export interface EntityCreatedEvent {
514
- entityAsJson?: string;
515
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
516
- restoreInfo?: RestoreInfo;
513
+ interface EntityCreatedEvent {
514
+ entity?: string;
517
515
  }
518
- export interface RestoreInfo {
516
+ interface RestoreInfo {
519
517
  deletedDate?: Date | null;
520
518
  }
521
- export interface EntityUpdatedEvent {
519
+ interface EntityUpdatedEvent {
522
520
  /**
523
521
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
524
522
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
525
523
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
526
524
  */
527
- currentEntityAsJson?: string;
525
+ currentEntity?: string;
528
526
  }
529
- export interface EntityDeletedEvent {
527
+ interface EntityDeletedEvent {
530
528
  /** Entity that was deleted */
531
- deletedEntityAsJson?: string | null;
529
+ deletedEntity?: string | null;
532
530
  }
533
- export interface ActionEvent {
534
- bodyAsJson?: string;
531
+ interface ActionEvent {
532
+ body?: string;
535
533
  }
536
- export interface AddDeliveryRegionRequest {
534
+ interface AddDeliveryRegionRequest {
537
535
  /** @format GUID */
538
536
  deliveryRegionId: string;
539
537
  /** @format GUID */
@@ -541,10 +539,10 @@ export interface AddDeliveryRegionRequest {
541
539
  /** Revision of the PickupLocation */
542
540
  revision?: string | null;
543
541
  }
544
- export interface AddDeliveryRegionResponse {
542
+ interface AddDeliveryRegionResponse {
545
543
  localDeliveryOption?: LocalDeliveryOption;
546
544
  }
547
- export interface RemoveDeliveryRegionRequest {
545
+ interface RemoveDeliveryRegionRequest {
548
546
  /** @format GUID */
549
547
  deliveryRegionId: string;
550
548
  /** @format GUID */
@@ -552,10 +550,10 @@ export interface RemoveDeliveryRegionRequest {
552
550
  /** Revision of the PickupLocation */
553
551
  revision?: string | null;
554
552
  }
555
- export interface RemoveDeliveryRegionResponse {
553
+ interface RemoveDeliveryRegionResponse {
556
554
  localDeliveryOption?: LocalDeliveryOption;
557
555
  }
558
- export interface MessageEnvelope {
556
+ interface MessageEnvelope {
559
557
  /**
560
558
  * App instance ID.
561
559
  * @format GUID
@@ -571,7 +569,7 @@ export interface MessageEnvelope {
571
569
  /** Stringify payload. */
572
570
  data?: string;
573
571
  }
574
- export interface IdentificationData extends IdentificationDataIdOneOf {
572
+ interface IdentificationData extends IdentificationDataIdOneOf {
575
573
  /**
576
574
  * ID of a site visitor that has not logged in to the site.
577
575
  * @format GUID
@@ -596,7 +594,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
596
594
  identityType?: WebhookIdentityType;
597
595
  }
598
596
  /** @oneof */
599
- export interface IdentificationDataIdOneOf {
597
+ interface IdentificationDataIdOneOf {
600
598
  /**
601
599
  * ID of a site visitor that has not logged in to the site.
602
600
  * @format GUID
@@ -618,85 +616,160 @@ export interface IdentificationDataIdOneOf {
618
616
  */
619
617
  appId?: string;
620
618
  }
621
- export declare enum WebhookIdentityType {
619
+ declare enum WebhookIdentityType {
622
620
  UNKNOWN = "UNKNOWN",
623
621
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
624
622
  MEMBER = "MEMBER",
625
623
  WIX_USER = "WIX_USER",
626
624
  APP = "APP"
627
625
  }
628
- interface ZipCodeConfigNonNullableFields {
629
- zipCodes: string[];
630
- }
631
- interface RadiusConfigNonNullableFields {
632
- radius: number;
633
- lengthUnit: LengthUnit;
634
- }
635
- interface DestinationNonNullableFields {
636
- code: string;
637
- subdivisions: string[];
638
- }
639
- interface TimeOfDayNonNullableFields {
640
- hours: number;
641
- minutes: number;
642
- }
643
- interface TimeWindowNonNullableFields {
644
- day: DayOfWeek;
645
- start?: TimeOfDayNonNullableFields;
646
- end?: TimeOfDayNonNullableFields;
647
- }
648
- interface ScheduledDeliveryNonNullableFields {
649
- timeWindows: TimeWindowNonNullableFields[];
650
- }
651
- interface ConditionNonNullableFields {
652
- type: ConditionType;
653
- value: string;
654
- operator: LogicalOperator;
655
- }
656
- interface ConditionalRatesNonNullableFields {
657
- conditions: ConditionNonNullableFields[];
658
- amount: string;
659
- multiplyByQuantity: boolean;
660
- }
661
- interface LocalDeliveryOptionNonNullableFields {
662
- zipConfig?: ZipCodeConfigNonNullableFields;
663
- radiusConfig?: RadiusConfigNonNullableFields;
664
- destinations: DestinationNonNullableFields[];
665
- scheduledDeliveryConfig?: ScheduledDeliveryNonNullableFields;
666
- rates: ConditionalRatesNonNullableFields[];
667
- deliveryRegionIds: string[];
668
- }
669
- export interface CreateLocalDeliveryOptionResponseNonNullableFields {
670
- localDeliveryOption?: LocalDeliveryOptionNonNullableFields;
671
- }
672
- export interface GetLocalDeliveryOptionResponseNonNullableFields {
673
- localDeliveryOption?: LocalDeliveryOptionNonNullableFields;
674
- }
675
- export interface ListLocalDeliveryOptionsResponseNonNullableFields {
676
- localDeliveryOptions: LocalDeliveryOptionNonNullableFields[];
677
- }
678
- export interface QueryLocalDeliveryOptionsResponseNonNullableFields {
679
- localDeliveryOptions: LocalDeliveryOptionNonNullableFields[];
680
- }
681
- export interface UpdateLocalDeliveryOptionResponseNonNullableFields {
682
- localDeliveryOption?: LocalDeliveryOptionNonNullableFields;
683
- }
684
- interface LocalDeliveryOptionErrorNonNullableFields {
685
- id: string;
686
- error: string;
687
- }
688
- export interface BulkCreateLocalDeliveryOptionResponseNonNullableFields {
689
- localDeliveryOptions: LocalDeliveryOptionNonNullableFields[];
690
- errors: LocalDeliveryOptionErrorNonNullableFields[];
626
+ interface GetLocalDeliveryOptionOptions {
627
+ /**
628
+ * @maxLength 50
629
+ * @deprecated
630
+ * @targetRemovalDate 2025-01-12
631
+ */
632
+ _id?: string;
633
+ }
634
+ interface QueryCursorResult {
635
+ cursors: Cursors;
636
+ hasNext: () => boolean;
637
+ hasPrev: () => boolean;
638
+ length: number;
639
+ pageSize: number;
640
+ }
641
+ interface LocalDeliveryOptionsQueryResult extends QueryCursorResult {
642
+ items: LocalDeliveryOption[];
643
+ query: LocalDeliveryOptionsQueryBuilder;
644
+ next: () => Promise<LocalDeliveryOptionsQueryResult>;
645
+ prev: () => Promise<LocalDeliveryOptionsQueryResult>;
646
+ }
647
+ interface LocalDeliveryOptionsQueryBuilder {
648
+ /** @param propertyName - Property whose value is compared with `value`.
649
+ * @param value - Value to compare against.
650
+ * @documentationMaturity preview
651
+ */
652
+ eq: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime' | 'deliveryRegionIds', value: any) => LocalDeliveryOptionsQueryBuilder;
653
+ /** @param propertyName - Property whose value is compared with `value`.
654
+ * @param value - Value to compare against.
655
+ * @documentationMaturity preview
656
+ */
657
+ ne: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime' | 'deliveryRegionIds', value: any) => LocalDeliveryOptionsQueryBuilder;
658
+ /** @param propertyName - Property whose value is compared with `string`.
659
+ * @param string - String to compare against. Case-insensitive.
660
+ * @documentationMaturity preview
661
+ */
662
+ startsWith: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime', value: string) => LocalDeliveryOptionsQueryBuilder;
663
+ /** @param propertyName - Property whose value is compared with `values`.
664
+ * @param values - List of values to compare against.
665
+ * @documentationMaturity preview
666
+ */
667
+ hasSome: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime' | 'deliveryRegionIds', value: any[]) => LocalDeliveryOptionsQueryBuilder;
668
+ /** @param propertyName - Property whose value is compared with `values`.
669
+ * @param values - List of values to compare against.
670
+ * @documentationMaturity preview
671
+ */
672
+ hasAll: (propertyName: 'deliveryRegionIds', value: any[]) => LocalDeliveryOptionsQueryBuilder;
673
+ /** @documentationMaturity preview */
674
+ in: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime' | 'deliveryRegionIds', value: any) => LocalDeliveryOptionsQueryBuilder;
675
+ /** @documentationMaturity preview */
676
+ exists: (propertyName: '_id' | 'areaName' | 'estimatedDeliveryTime' | 'deliveryRegionIds', value: boolean) => LocalDeliveryOptionsQueryBuilder;
677
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
678
+ * @documentationMaturity preview
679
+ */
680
+ limit: (limit: number) => LocalDeliveryOptionsQueryBuilder;
681
+ /** @param cursor - A pointer to specific record
682
+ * @documentationMaturity preview
683
+ */
684
+ skipTo: (cursor: string) => LocalDeliveryOptionsQueryBuilder;
685
+ /** @documentationMaturity preview */
686
+ find: () => Promise<LocalDeliveryOptionsQueryResult>;
687
+ }
688
+ interface UpdateLocalDeliveryOption {
689
+ zipConfig?: ZipCodeConfig;
690
+ radiusConfig?: RadiusConfig;
691
+ customAreaConfig?: CustomAreaConfig;
692
+ /**
693
+ * LocalDeliveryOptionId - unique identifier of local delivery option
694
+ * @format GUID
695
+ * @readonly
696
+ */
697
+ _id?: string | null;
698
+ /**
699
+ * Area name of Local Delivery Option
700
+ * @maxLength 100
701
+ */
702
+ areaName?: string | null;
703
+ /**
704
+ * Flat price of local delivery
705
+ * @format DECIMAL_VALUE
706
+ * @deprecated Flat price of local delivery
707
+ * @targetRemovalDate 2025-01-12
708
+ */
709
+ rate?: string | null;
710
+ /**
711
+ * Estimated delivery time description text
712
+ * @maxLength 40
713
+ */
714
+ estimatedDeliveryTime?: string | null;
715
+ /**
716
+ * Minimum order total to be eligible for free delivery
717
+ * @deprecated Minimum order total to be eligible for free delivery
718
+ * @targetRemovalDate 2025-01-12
719
+ */
720
+ minimumFreeDeliveryOrderAmount?: number | null;
721
+ /**
722
+ * List of countries with subdivisions
723
+ * @maxSize 100
724
+ */
725
+ destinations?: Destination[];
726
+ /**
727
+ * Database revision of LocalDeliveryOption entity. Incremented on each modification
728
+ * @readonly
729
+ */
730
+ revision?: string | null;
731
+ scheduledDeliveryConfig?: ScheduledDelivery;
732
+ /**
733
+ * 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.
734
+ * @maxSize 50
735
+ */
736
+ rates?: ConditionalRates[];
737
+ /**
738
+ * Date and time the LocalDeliveryOption was created.
739
+ * @readonly
740
+ */
741
+ _createdDate?: Date | null;
742
+ /**
743
+ * Date and time the LocalDeliveryOption was last updated.
744
+ * @readonly
745
+ */
746
+ _updatedDate?: Date | null;
747
+ /**
748
+ * This local delivery is active for the following delivery regions.
749
+ * @maxSize 5
750
+ * @format GUID
751
+ */
752
+ deliveryRegionIds?: string[];
691
753
  }
692
- export interface BulkUpdateLocalDeliveryOptionResponseNonNullableFields {
693
- localDeliveryOptions: LocalDeliveryOptionNonNullableFields[];
694
- errors: LocalDeliveryOptionErrorNonNullableFields[];
754
+ interface DeleteLocalDeliveryOptionOptions {
755
+ /**
756
+ * @maxLength 50
757
+ * @deprecated
758
+ * @targetRemovalDate 2025-01-12
759
+ */
760
+ _id?: string;
695
761
  }
696
- export interface AddDeliveryRegionResponseNonNullableFields {
697
- localDeliveryOption?: LocalDeliveryOptionNonNullableFields;
762
+ interface AddDeliveryRegionOptions {
763
+ /** @format GUID */
764
+ localDeliveryOptionId: string;
765
+ /** Revision of the PickupLocation */
766
+ revision?: string | null;
698
767
  }
699
- export interface RemoveDeliveryRegionResponseNonNullableFields {
700
- localDeliveryOption?: LocalDeliveryOptionNonNullableFields;
768
+ interface RemoveDeliveryRegionOptions {
769
+ /** @format GUID */
770
+ localDeliveryOptionId: string;
771
+ /** Revision of the PickupLocation */
772
+ revision?: string | null;
701
773
  }
702
- export {};
774
+
775
+ 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 };