@wix/auto_sdk_ecom_shipping-options 1.0.18 → 1.0.20

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 (130) hide show
  1. package/build/{es/src/ecom-v1-shipping-option-shipping-options.universal.d.ts → ecom-v1-shipping-option-shipping-options.universal-Bauto8NO.d.mts} +58 -288
  2. package/build/{internal/cjs/src/ecom-v1-shipping-option-shipping-options.universal.d.ts → ecom-v1-shipping-option-shipping-options.universal-Bauto8NO.d.ts} +58 -288
  3. package/build/index.d.mts +116 -0
  4. package/build/index.d.ts +116 -0
  5. package/build/index.js +735 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +697 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{cjs/src/ecom-v1-shipping-option-shipping-options.universal.d.ts → internal/ecom-v1-shipping-option-shipping-options.universal-Bauto8NO.d.mts} +58 -288
  10. package/build/internal/{es/src/ecom-v1-shipping-option-shipping-options.universal.d.ts → ecom-v1-shipping-option-shipping-options.universal-Bauto8NO.d.ts} +58 -288
  11. package/build/internal/index.d.mts +116 -0
  12. package/build/internal/index.d.ts +116 -0
  13. package/build/internal/index.js +735 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +697 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/{es/src/ecom-v1-shipping-option-shipping-options.types.d.ts → internal/meta.d.mts} +67 -170
  18. package/build/internal/{cjs/src/ecom-v1-shipping-option-shipping-options.types.d.ts → meta.d.ts} +67 -170
  19. package/build/internal/meta.js +460 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +426 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/{cjs/src/ecom-v1-shipping-option-shipping-options.types.d.ts → meta.d.mts} +67 -170
  24. package/build/{internal/es/src/ecom-v1-shipping-option-shipping-options.types.d.ts → meta.d.ts} +67 -170
  25. package/build/meta.js +460 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +426 -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-shipping-option-shipping-options.context.d.ts +0 -28
  40. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.context.js +0 -35
  41. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.context.js.map +0 -1
  42. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.http.d.ts +0 -42
  43. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.http.js +0 -313
  44. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.http.js.map +0 -1
  45. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.meta.d.ts +0 -32
  46. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.meta.js +0 -180
  47. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.public.d.ts +0 -95
  49. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.public.js +0 -93
  50. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.public.js.map +0 -1
  51. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.types.js +0 -33
  52. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.types.js.map +0 -1
  53. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.universal.js +0 -458
  54. package/build/cjs/src/ecom-v1-shipping-option-shipping-options.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/ecom-v1-shipping-option-shipping-options.context.d.ts +0 -28
  66. package/build/es/src/ecom-v1-shipping-option-shipping-options.context.js +0 -28
  67. package/build/es/src/ecom-v1-shipping-option-shipping-options.context.js.map +0 -1
  68. package/build/es/src/ecom-v1-shipping-option-shipping-options.http.d.ts +0 -42
  69. package/build/es/src/ecom-v1-shipping-option-shipping-options.http.js +0 -302
  70. package/build/es/src/ecom-v1-shipping-option-shipping-options.http.js.map +0 -1
  71. package/build/es/src/ecom-v1-shipping-option-shipping-options.meta.d.ts +0 -32
  72. package/build/es/src/ecom-v1-shipping-option-shipping-options.meta.js +0 -146
  73. package/build/es/src/ecom-v1-shipping-option-shipping-options.meta.js.map +0 -1
  74. package/build/es/src/ecom-v1-shipping-option-shipping-options.public.d.ts +0 -95
  75. package/build/es/src/ecom-v1-shipping-option-shipping-options.public.js +0 -78
  76. package/build/es/src/ecom-v1-shipping-option-shipping-options.public.js.map +0 -1
  77. package/build/es/src/ecom-v1-shipping-option-shipping-options.types.js +0 -30
  78. package/build/es/src/ecom-v1-shipping-option-shipping-options.types.js.map +0 -1
  79. package/build/es/src/ecom-v1-shipping-option-shipping-options.universal.js +0 -424
  80. package/build/es/src/ecom-v1-shipping-option-shipping-options.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.context.d.ts +0 -28
  91. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.context.js +0 -35
  92. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.context.js.map +0 -1
  93. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.http.d.ts +0 -42
  94. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.http.js +0 -313
  95. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.http.js.map +0 -1
  96. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.meta.d.ts +0 -32
  97. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.meta.js +0 -180
  98. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.meta.js.map +0 -1
  99. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.public.d.ts +0 -95
  100. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.public.js +0 -93
  101. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.public.js.map +0 -1
  102. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.types.js +0 -33
  103. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.types.js.map +0 -1
  104. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.universal.js +0 -458
  105. package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.context.d.ts +0 -28
  116. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.context.js +0 -28
  117. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.context.js.map +0 -1
  118. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.http.d.ts +0 -42
  119. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.http.js +0 -302
  120. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.http.js.map +0 -1
  121. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.meta.d.ts +0 -32
  122. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.meta.js +0 -146
  123. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.meta.js.map +0 -1
  124. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.public.d.ts +0 -95
  125. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.public.js +0 -78
  126. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.public.js.map +0 -1
  127. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.types.js +0 -30
  128. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.types.js.map +0 -1
  129. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.universal.js +0 -424
  130. package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.universal.js.map +0 -1
@@ -1,5 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- export interface ShippingOption {
1
+ interface ShippingOption {
3
2
  /**
4
3
  * ShippingOption ID.
5
4
  * @format GUID
@@ -68,7 +67,7 @@ export interface ShippingOption {
68
67
  /** Data Extensions */
69
68
  extendedFields?: ExtendedFields;
70
69
  }
71
- export interface ConditionalRates {
70
+ interface ConditionalRates {
72
71
  /**
73
72
  * there is an AND logic between all the conditions. Empty conditions means true.
74
73
  * The amount of the rate that will be returned if all conditions are met.
@@ -83,7 +82,7 @@ export interface ConditionalRates {
83
82
  /** When this flag is set to true, multiply the amount by the number of line items passed on the request. */
84
83
  multiplyByQuantity?: boolean;
85
84
  }
86
- export interface Condition {
85
+ interface Condition {
87
86
  type?: ConditionTypeWithLiterals;
88
87
  /**
89
88
  * The value in respective to the condition type
@@ -96,15 +95,15 @@ export interface Condition {
96
95
  /** Logical operator. */
97
96
  operator?: LogicalOperatorWithLiterals;
98
97
  }
99
- export declare enum ConditionType {
98
+ declare enum ConditionType {
100
99
  UNKNOWN_TYPE = "UNKNOWN_TYPE",
101
100
  BY_TOTAL_WEIGHT = "BY_TOTAL_WEIGHT",
102
101
  BY_TOTAL_PRICE = "BY_TOTAL_PRICE",
103
102
  BY_TOTAL_QUANTITY = "BY_TOTAL_QUANTITY"
104
103
  }
105
104
  /** @enumType */
106
- export type ConditionTypeWithLiterals = ConditionType | 'UNKNOWN_TYPE' | 'BY_TOTAL_WEIGHT' | 'BY_TOTAL_PRICE' | 'BY_TOTAL_QUANTITY';
107
- export declare enum LogicalOperator {
105
+ type ConditionTypeWithLiterals = ConditionType | 'UNKNOWN_TYPE' | 'BY_TOTAL_WEIGHT' | 'BY_TOTAL_PRICE' | 'BY_TOTAL_QUANTITY';
106
+ declare enum LogicalOperator {
108
107
  UNKNOWN_LOGICAL_OPERATOR_TYPE = "UNKNOWN_LOGICAL_OPERATOR_TYPE",
109
108
  EQ = "EQ",
110
109
  GT = "GT",
@@ -113,8 +112,8 @@ export declare enum LogicalOperator {
113
112
  LTE = "LTE"
114
113
  }
115
114
  /** @enumType */
116
- export type LogicalOperatorWithLiterals = LogicalOperator | 'UNKNOWN_LOGICAL_OPERATOR_TYPE' | 'EQ' | 'GT' | 'GTE' | 'LT' | 'LTE';
117
- export interface ExtendedFields {
115
+ type LogicalOperatorWithLiterals = LogicalOperator | 'UNKNOWN_LOGICAL_OPERATOR_TYPE' | 'EQ' | 'GT' | 'GTE' | 'LT' | 'LTE';
116
+ interface ExtendedFields {
118
117
  /**
119
118
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
120
119
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -125,47 +124,47 @@ export interface ExtendedFields {
125
124
  */
126
125
  namespaces?: Record<string, Record<string, any>>;
127
126
  }
128
- export interface CreateShippingOptionRequest {
127
+ interface CreateShippingOptionRequest {
129
128
  /** ShippingOption to be created. */
130
129
  shippingOption: ShippingOption;
131
130
  }
132
- export interface CreateShippingOptionResponse {
131
+ interface CreateShippingOptionResponse {
133
132
  /** The created ShippingOption. */
134
133
  shippingOption?: ShippingOption;
135
134
  }
136
- export interface GetShippingOptionRequest {
135
+ interface GetShippingOptionRequest {
137
136
  /**
138
137
  * ID of the ShippingOption to retrieve.
139
138
  * @format GUID
140
139
  */
141
140
  shippingOptionId: string;
142
141
  }
143
- export interface GetShippingOptionResponse {
142
+ interface GetShippingOptionResponse {
144
143
  /** The requested ShippingOption. */
145
144
  shippingOption?: ShippingOption;
146
145
  }
147
- export interface UpdateShippingOptionRequest {
146
+ interface UpdateShippingOptionRequest {
148
147
  /** ShippingOption to be updated, may be partial. */
149
148
  shippingOption: ShippingOption;
150
149
  }
151
- export interface UpdateShippingOptionResponse {
150
+ interface UpdateShippingOptionResponse {
152
151
  /** Updated ShippingOption. */
153
152
  shippingOption?: ShippingOption;
154
153
  }
155
- export interface DeleteShippingOptionRequest {
154
+ interface DeleteShippingOptionRequest {
156
155
  /**
157
156
  * Id of the ShippingOption to delete.
158
157
  * @format GUID
159
158
  */
160
159
  shippingOptionId: string;
161
160
  }
162
- export interface DeleteShippingOptionResponse {
161
+ interface DeleteShippingOptionResponse {
163
162
  }
164
- export interface QueryShippingOptionsRequest {
163
+ interface QueryShippingOptionsRequest {
165
164
  /** WQL expression. */
166
165
  query?: CursorQuery;
167
166
  }
168
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
167
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
169
168
  /** 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`. */
170
169
  cursorPaging?: CursorPaging;
171
170
  /**
@@ -185,11 +184,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
185
184
  sort?: Sorting[];
186
185
  }
187
186
  /** @oneof */
188
- export interface CursorQueryPagingMethodOneOf {
187
+ interface CursorQueryPagingMethodOneOf {
189
188
  /** 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`. */
190
189
  cursorPaging?: CursorPaging;
191
190
  }
192
- export interface Sorting {
191
+ interface Sorting {
193
192
  /**
194
193
  * Name of the field to sort by.
195
194
  * @maxLength 512
@@ -198,13 +197,13 @@ export interface Sorting {
198
197
  /** Sort order. */
199
198
  order?: SortOrderWithLiterals;
200
199
  }
201
- export declare enum SortOrder {
200
+ declare enum SortOrder {
202
201
  ASC = "ASC",
203
202
  DESC = "DESC"
204
203
  }
205
204
  /** @enumType */
206
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
207
- export interface CursorPaging {
205
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
206
+ interface CursorPaging {
208
207
  /**
209
208
  * Maximum number of items to return in the results.
210
209
  * @max 100
@@ -219,13 +218,13 @@ export interface CursorPaging {
219
218
  */
220
219
  cursor?: string | null;
221
220
  }
222
- export interface QueryShippingOptionsResponse {
221
+ interface QueryShippingOptionsResponse {
223
222
  /** List of ShippingOptions. */
224
223
  shippingOptions?: ShippingOption[];
225
224
  /** Paging metadata */
226
225
  pagingMetadata?: CursorPagingMetadata;
227
226
  }
228
- export interface CursorPagingMetadata {
227
+ interface CursorPagingMetadata {
229
228
  /** Number of items returned in the response. */
230
229
  count?: number | null;
231
230
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -238,7 +237,7 @@ export interface CursorPagingMetadata {
238
237
  */
239
238
  hasNext?: boolean | null;
240
239
  }
241
- export interface Cursors {
240
+ interface Cursors {
242
241
  /**
243
242
  * Cursor string pointing to the next page in the list of results.
244
243
  * @maxLength 16000
@@ -250,7 +249,7 @@ export interface Cursors {
250
249
  */
251
250
  prev?: string | null;
252
251
  }
253
- export interface UpdateExtendedFieldsRequest {
252
+ interface UpdateExtendedFieldsRequest {
254
253
  /** ID of the entity to update. */
255
254
  _id: string;
256
255
  /** Identifier for the app whose extended fields are being updated. */
@@ -258,11 +257,11 @@ export interface UpdateExtendedFieldsRequest {
258
257
  /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
259
258
  namespaceData: Record<string, any> | null;
260
259
  }
261
- export interface UpdateExtendedFieldsResponse {
260
+ interface UpdateExtendedFieldsResponse {
262
261
  /** Updated ShippingOption. */
263
262
  shippingOption?: ShippingOption;
264
263
  }
265
- export interface DomainEvent extends DomainEventBodyOneOf {
264
+ interface DomainEvent extends DomainEventBodyOneOf {
266
265
  createdEvent?: EntityCreatedEvent;
267
266
  updatedEvent?: EntityUpdatedEvent;
268
267
  deletedEvent?: EntityDeletedEvent;
@@ -297,19 +296,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
297
296
  entityEventSequence?: string | null;
298
297
  }
299
298
  /** @oneof */
300
- export interface DomainEventBodyOneOf {
299
+ interface DomainEventBodyOneOf {
301
300
  createdEvent?: EntityCreatedEvent;
302
301
  updatedEvent?: EntityUpdatedEvent;
303
302
  deletedEvent?: EntityDeletedEvent;
304
303
  actionEvent?: ActionEvent;
305
304
  }
306
- export interface EntityCreatedEvent {
305
+ interface EntityCreatedEvent {
307
306
  entity?: string;
308
307
  }
309
- export interface RestoreInfo {
308
+ interface RestoreInfo {
310
309
  deletedDate?: Date | null;
311
310
  }
312
- export interface EntityUpdatedEvent {
311
+ interface EntityUpdatedEvent {
313
312
  /**
314
313
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
315
314
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -317,16 +316,16 @@ export interface EntityUpdatedEvent {
317
316
  */
318
317
  currentEntity?: string;
319
318
  }
320
- export interface EntityDeletedEvent {
319
+ interface EntityDeletedEvent {
321
320
  /** Entity that was deleted. */
322
321
  deletedEntity?: string | null;
323
322
  }
324
- export interface ActionEvent {
323
+ interface ActionEvent {
325
324
  body?: string;
326
325
  }
327
- export interface Empty {
326
+ interface Empty {
328
327
  }
329
- export interface AddDeliveryRegionRequest {
328
+ interface AddDeliveryRegionRequest {
330
329
  /**
331
330
  * ID of the delivery region that should use this ShippingOption.
332
331
  * @format GUID
@@ -340,11 +339,11 @@ export interface AddDeliveryRegionRequest {
340
339
  /** Revision of the ShippingOption. */
341
340
  revision: string | null;
342
341
  }
343
- export interface AddDeliveryRegionResponse {
342
+ interface AddDeliveryRegionResponse {
344
343
  /** Updated ShippingOption. */
345
344
  shippingOption?: ShippingOption;
346
345
  }
347
- export interface RemoveDeliveryRegionRequest {
346
+ interface RemoveDeliveryRegionRequest {
348
347
  /**
349
348
  * ID of the delivery region that should not use this ShippingOption anymore.
350
349
  * @format GUID
@@ -358,11 +357,11 @@ export interface RemoveDeliveryRegionRequest {
358
357
  /** Revision of the ShippingOption. */
359
358
  revision: string | null;
360
359
  }
361
- export interface RemoveDeliveryRegionResponse {
360
+ interface RemoveDeliveryRegionResponse {
362
361
  /** Updated ShippingOption. */
363
362
  shippingOption?: ShippingOption;
364
363
  }
365
- export interface MessageEnvelope {
364
+ interface MessageEnvelope {
366
365
  /**
367
366
  * App instance ID.
368
367
  * @format GUID
@@ -378,7 +377,7 @@ export interface MessageEnvelope {
378
377
  /** Stringify payload. */
379
378
  data?: string;
380
379
  }
381
- export interface IdentificationData extends IdentificationDataIdOneOf {
380
+ interface IdentificationData extends IdentificationDataIdOneOf {
382
381
  /**
383
382
  * ID of a site visitor that has not logged in to the site.
384
383
  * @format GUID
@@ -403,7 +402,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
403
402
  identityType?: WebhookIdentityTypeWithLiterals;
404
403
  }
405
404
  /** @oneof */
406
- export interface IdentificationDataIdOneOf {
405
+ interface IdentificationDataIdOneOf {
407
406
  /**
408
407
  * ID of a site visitor that has not logged in to the site.
409
408
  * @format GUID
@@ -425,7 +424,7 @@ export interface IdentificationDataIdOneOf {
425
424
  */
426
425
  appId?: string;
427
426
  }
428
- export declare enum WebhookIdentityType {
427
+ declare enum WebhookIdentityType {
429
428
  UNKNOWN = "UNKNOWN",
430
429
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
431
430
  MEMBER = "MEMBER",
@@ -433,8 +432,8 @@ export declare enum WebhookIdentityType {
433
432
  APP = "APP"
434
433
  }
435
434
  /** @enumType */
436
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
437
- export interface BaseEventMetadata {
435
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
436
+ interface BaseEventMetadata {
438
437
  /**
439
438
  * App instance ID.
440
439
  * @format GUID
@@ -448,7 +447,7 @@ export interface BaseEventMetadata {
448
447
  /** The identification type and identity data. */
449
448
  identity?: IdentificationData;
450
449
  }
451
- export interface EventMetadata extends BaseEventMetadata {
450
+ interface EventMetadata extends BaseEventMetadata {
452
451
  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
453
452
  _id?: string;
454
453
  /**
@@ -478,138 +477,19 @@ export interface EventMetadata extends BaseEventMetadata {
478
477
  */
479
478
  entityEventSequence?: string | null;
480
479
  }
481
- export interface ShippingOptionCreatedEnvelope {
480
+ interface ShippingOptionCreatedEnvelope {
482
481
  entity: ShippingOption;
483
482
  metadata: EventMetadata;
484
483
  }
485
- /**
486
- * Triggered when a shipping option is created.
487
- * @permissionScope Manage Stores - all permissions
488
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
489
- * @permissionScope Manage Stores
490
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
491
- * @permissionScope Read eCommerce - all read permissions
492
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
493
- * @permissionScope Manage eCommerce - all permissions
494
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
495
- * @permissionId ECOM.SHIPPING_OPTION_READ
496
- * @webhook
497
- * @eventType wix.ecom.v1.shipping_option_created
498
- * @slug created
499
- * @documentationMaturity preview
500
- */
501
- export declare function onShippingOptionCreated(handler: (event: ShippingOptionCreatedEnvelope) => void | Promise<void>): void;
502
- export interface ShippingOptionDeletedEnvelope {
484
+ interface ShippingOptionDeletedEnvelope {
503
485
  entity: ShippingOption;
504
486
  metadata: EventMetadata;
505
487
  }
506
- /**
507
- * Triggered when a shipping option is deleted.
508
- * @permissionScope Manage Stores - all permissions
509
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
510
- * @permissionScope Manage Stores
511
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
512
- * @permissionScope Read eCommerce - all read permissions
513
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
514
- * @permissionScope Manage eCommerce - all permissions
515
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
516
- * @permissionId ECOM.SHIPPING_OPTION_READ
517
- * @webhook
518
- * @eventType wix.ecom.v1.shipping_option_deleted
519
- * @slug deleted
520
- * @documentationMaturity preview
521
- */
522
- export declare function onShippingOptionDeleted(handler: (event: ShippingOptionDeletedEnvelope) => void | Promise<void>): void;
523
- export interface ShippingOptionUpdatedEnvelope {
488
+ interface ShippingOptionUpdatedEnvelope {
524
489
  entity: ShippingOption;
525
490
  metadata: EventMetadata;
526
491
  }
527
- /**
528
- * Triggered when a shipping option is updated.
529
- * @permissionScope Manage Stores - all permissions
530
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
531
- * @permissionScope Manage Stores
532
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
533
- * @permissionScope Read eCommerce - all read permissions
534
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
535
- * @permissionScope Manage eCommerce - all permissions
536
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
537
- * @permissionId ECOM.SHIPPING_OPTION_READ
538
- * @webhook
539
- * @eventType wix.ecom.v1.shipping_option_updated
540
- * @slug updated
541
- * @documentationMaturity preview
542
- */
543
- export declare function onShippingOptionUpdated(handler: (event: ShippingOptionUpdatedEnvelope) => void | Promise<void>): void;
544
- type ShippingOptionNonNullablePaths = `deliveryRegionId` | `deliveryRegionIds` | `rates` | `rates.${number}.amount` | `rates.${number}.multiplyByQuantity`;
545
- /**
546
- * Creates a ShippingOption.
547
- *
548
- * The request body must include shipping option and delivery region associated to.
549
- * @param shippingOption - ShippingOption to be created.
550
- * @public
551
- * @documentationMaturity preview
552
- * @requiredField shippingOption
553
- * @permissionId ECOM.SHIPPING_OPTION_CREATE
554
- * @permissionScope Manage Stores - all permissions
555
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
556
- * @permissionScope Manage Stores
557
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
558
- * @permissionScope Manage eCommerce - all permissions
559
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
560
- * @applicableIdentity APP
561
- * @returns The created ShippingOption.
562
- * @fqn wix.ecom.delivery.v1.ShippingOptionService.CreateShippingOption
563
- */
564
- export declare function createShippingOption(shippingOption: ShippingOption): Promise<NonNullablePaths<ShippingOption, ShippingOptionNonNullablePaths>>;
565
- /**
566
- * Retrieves a ShippingOption.
567
- * @param shippingOptionId - ID of the ShippingOption to retrieve.
568
- * @public
569
- * @documentationMaturity preview
570
- * @requiredField shippingOptionId
571
- * @permissionId ECOM.SHIPPING_OPTION_READ
572
- * @permissionScope Manage Stores - all permissions
573
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
574
- * @permissionScope Manage Stores
575
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
576
- * @permissionScope Read eCommerce - all read permissions
577
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
578
- * @permissionScope Manage eCommerce - all permissions
579
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
580
- * @applicableIdentity APP
581
- * @returns The requested ShippingOption.
582
- * @fqn wix.ecom.delivery.v1.ShippingOptionService.GetShippingOption
583
- */
584
- export declare function getShippingOption(shippingOptionId: string): Promise<NonNullablePaths<ShippingOption, ShippingOptionNonNullablePaths>>;
585
- /**
586
- * Updates a ShippingOption.
587
- *
588
- *
589
- * Each time the ShippingOption is updated,
590
- * `revision` increments by 1.
591
- * The current `revision` must be passed when updating the ShippingOption.
592
- * This ensures you're working with the latest ShippingOption
593
- * and prevents unintended overwrites.
594
- * @param _id - ShippingOption ID.
595
- * @public
596
- * @documentationMaturity preview
597
- * @requiredField _id
598
- * @requiredField shippingOption
599
- * @requiredField shippingOption.revision
600
- * @permissionId ECOM.SHIPPING_OPTION_UPDATE
601
- * @permissionScope Manage Stores - all permissions
602
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
603
- * @permissionScope Manage Stores
604
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
605
- * @permissionScope Manage eCommerce - all permissions
606
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
607
- * @applicableIdentity APP
608
- * @returns Updated ShippingOption.
609
- * @fqn wix.ecom.delivery.v1.ShippingOptionService.UpdateShippingOption
610
- */
611
- export declare function updateShippingOption(_id: string, shippingOption: NonNullablePaths<UpdateShippingOption, `revision`>): Promise<NonNullablePaths<ShippingOption, ShippingOptionNonNullablePaths>>;
612
- export interface UpdateShippingOption {
492
+ interface UpdateShippingOption {
613
493
  /**
614
494
  * ShippingOption ID.
615
495
  * @format GUID
@@ -678,48 +558,6 @@ export interface UpdateShippingOption {
678
558
  /** Data Extensions */
679
559
  extendedFields?: ExtendedFields;
680
560
  }
681
- /**
682
- * Deletes a ShippingOption.
683
- * Deleting a ShippingOption permanently removes them from the ShippingOption List.
684
- * @param shippingOptionId - Id of the ShippingOption to delete.
685
- * @public
686
- * @documentationMaturity preview
687
- * @requiredField shippingOptionId
688
- * @permissionId ECOM.SHIPPING_OPTION_DELETE
689
- * @permissionScope Manage Stores - all permissions
690
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
691
- * @permissionScope Manage Stores
692
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
693
- * @permissionScope Manage eCommerce - all permissions
694
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
695
- * @applicableIdentity APP
696
- * @fqn wix.ecom.delivery.v1.ShippingOptionService.DeleteShippingOption
697
- */
698
- export declare function deleteShippingOption(shippingOptionId: string): Promise<void>;
699
- /**
700
- * Retrieves a list of ShippingOptions, given the provided [paging, filtering, and sorting][1].
701
- *
702
- * Up to 1,000 ShippingOptions can be returned per request.
703
- *
704
- * To learn how to query ShippingOptions, see [API Query Language][2].
705
- *
706
- * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
707
- * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
708
- * @public
709
- * @documentationMaturity preview
710
- * @permissionScope Manage Stores - all permissions
711
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
712
- * @permissionScope Manage Stores
713
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
714
- * @permissionScope Read eCommerce - all read permissions
715
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
716
- * @permissionScope Manage eCommerce - all permissions
717
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
718
- * @permissionId ECOM.SHIPPING_OPTION_READ
719
- * @applicableIdentity APP
720
- * @fqn wix.ecom.delivery.v1.ShippingOptionService.QueryShippingOptions
721
- */
722
- export declare function queryShippingOptions(): ShippingOptionsQueryBuilder;
723
561
  interface QueryCursorResult {
724
562
  cursors: Cursors;
725
563
  hasNext: () => boolean;
@@ -727,13 +565,13 @@ interface QueryCursorResult {
727
565
  length: number;
728
566
  pageSize: number;
729
567
  }
730
- export interface ShippingOptionsQueryResult extends QueryCursorResult {
568
+ interface ShippingOptionsQueryResult extends QueryCursorResult {
731
569
  items: ShippingOption[];
732
570
  query: ShippingOptionsQueryBuilder;
733
571
  next: () => Promise<ShippingOptionsQueryResult>;
734
572
  prev: () => Promise<ShippingOptionsQueryResult>;
735
573
  }
736
- export interface ShippingOptionsQueryBuilder {
574
+ interface ShippingOptionsQueryBuilder {
737
575
  /** @param propertyName - Property whose value is compared with `value`.
738
576
  * @param value - Value to compare against.
739
577
  * @documentationMaturity preview
@@ -802,85 +640,17 @@ export interface ShippingOptionsQueryBuilder {
802
640
  /** @documentationMaturity preview */
803
641
  find: () => Promise<ShippingOptionsQueryResult>;
804
642
  }
805
- /**
806
- * Updates extended fields of a ShippingOption without incrementing revision
807
- * @param _id - ID of the entity to update.
808
- * @param namespace - Identifier for the app whose extended fields are being updated.
809
- * @public
810
- * @documentationMaturity preview
811
- * @requiredField _id
812
- * @requiredField namespace
813
- * @requiredField options
814
- * @requiredField options.namespaceData
815
- * @permissionId ECOM.SHIPPING_OPTION_UPDATE
816
- * @permissionScope Manage Stores - all permissions
817
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
818
- * @permissionScope Manage Stores
819
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
820
- * @permissionScope Manage eCommerce - all permissions
821
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
822
- * @applicableIdentity APP
823
- * @fqn wix.ecom.delivery.v1.ShippingOptionService.UpdateExtendedFields
824
- */
825
- export declare function updateExtendedFields(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, {
826
- [P in ShippingOptionNonNullablePaths]: `shippingOption.${P}`;
827
- }[ShippingOptionNonNullablePaths]>>;
828
- export interface UpdateExtendedFieldsOptions {
643
+ interface UpdateExtendedFieldsOptions {
829
644
  /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
830
645
  namespaceData: Record<string, any> | null;
831
646
  }
832
- /**
833
- * Adds a delivery region to a shipping option.
834
- * @param shippingOptionId - ID of the ShippingOption to be updated.
835
- * @param deliveryRegionId - ID of the delivery region that should use this ShippingOption.
836
- * @public
837
- * @documentationMaturity preview
838
- * @requiredField deliveryRegionId
839
- * @requiredField options
840
- * @requiredField options.revision
841
- * @requiredField shippingOptionId
842
- * @permissionId ECOM.SHIPPING_OPTION_UPDATE
843
- * @permissionScope Manage Stores - all permissions
844
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
845
- * @permissionScope Manage Stores
846
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
847
- * @permissionScope Manage eCommerce - all permissions
848
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
849
- * @applicableIdentity APP
850
- * @fqn wix.ecom.delivery.v1.ShippingOptionService.AddDeliveryRegion
851
- */
852
- export declare function addDeliveryRegion(shippingOptionId: string, deliveryRegionId: string, options: NonNullablePaths<AddDeliveryRegionOptions, `revision`>): Promise<NonNullablePaths<AddDeliveryRegionResponse, {
853
- [P in ShippingOptionNonNullablePaths]: `shippingOption.${P}`;
854
- }[ShippingOptionNonNullablePaths]>>;
855
- export interface AddDeliveryRegionOptions {
647
+ interface AddDeliveryRegionOptions {
856
648
  /** Revision of the ShippingOption. */
857
649
  revision: string | null;
858
650
  }
859
- /**
860
- * Removes a delivery region from a shipping option.
861
- * @param shippingOptionId - ID of the ShippingOption to be updated.
862
- * @param deliveryRegionId - ID of the delivery region that should not use this ShippingOption anymore.
863
- * @public
864
- * @documentationMaturity preview
865
- * @requiredField deliveryRegionId
866
- * @requiredField options
867
- * @requiredField options.revision
868
- * @requiredField shippingOptionId
869
- * @permissionId ECOM.SHIPPING_OPTION_UPDATE
870
- * @permissionScope Manage Stores - all permissions
871
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
872
- * @permissionScope Manage Stores
873
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
874
- * @permissionScope Manage eCommerce - all permissions
875
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
876
- * @applicableIdentity APP
877
- * @fqn wix.ecom.delivery.v1.ShippingOptionService.RemoveDeliveryRegion
878
- */
879
- export declare function removeDeliveryRegion(shippingOptionId: string, deliveryRegionId: string, options: NonNullablePaths<RemoveDeliveryRegionOptions, `revision`>): Promise<NonNullablePaths<RemoveDeliveryRegionResponse, {
880
- [P in ShippingOptionNonNullablePaths]: `shippingOption.${P}`;
881
- }[ShippingOptionNonNullablePaths]>>;
882
- export interface RemoveDeliveryRegionOptions {
651
+ interface RemoveDeliveryRegionOptions {
883
652
  /** Revision of the ShippingOption. */
884
653
  revision: string | null;
885
654
  }
886
- export {};
655
+
656
+ export { type AddDeliveryRegionOptions as A, type DomainEventBodyOneOf as B, ConditionType as C, type DeleteShippingOptionRequest as D, type ExtendedFields as E, type EntityCreatedEvent as F, type GetShippingOptionRequest as G, type RestoreInfo as H, type EntityUpdatedEvent as I, type EntityDeletedEvent as J, type ActionEvent as K, LogicalOperator as L, type Empty as M, type AddDeliveryRegionRequest as N, type RemoveDeliveryRegionRequest as O, type MessageEnvelope as P, type QueryShippingOptionsRequest as Q, type RemoveDeliveryRegionOptions as R, type ShippingOption as S, type IdentificationData as T, type UpdateShippingOption as U, type IdentificationDataIdOneOf as V, WebhookIdentityType as W, type BaseEventMetadata as X, type EventMetadata as Y, type ShippingOptionsQueryResult as Z, type ShippingOptionsQueryBuilder as a, type UpdateExtendedFieldsOptions as b, type UpdateExtendedFieldsResponse as c, type AddDeliveryRegionResponse as d, type RemoveDeliveryRegionResponse as e, type ShippingOptionCreatedEnvelope as f, type ShippingOptionDeletedEnvelope as g, type ShippingOptionUpdatedEnvelope as h, SortOrder as i, type ConditionalRates as j, type Condition as k, type CreateShippingOptionRequest as l, type CreateShippingOptionResponse as m, type GetShippingOptionResponse as n, type UpdateShippingOptionRequest as o, type UpdateShippingOptionResponse as p, type DeleteShippingOptionResponse as q, type CursorQuery as r, type CursorQueryPagingMethodOneOf as s, type Sorting as t, type CursorPaging as u, type QueryShippingOptionsResponse as v, type CursorPagingMetadata as w, type Cursors as x, type UpdateExtendedFieldsRequest as y, type DomainEvent as z };