@wix/auto_sdk_ecom_shipping-options 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{es/src/ecom-v1-shipping-option-shipping-options.universal.d.ts → ecom-v1-shipping-option-shipping-options.universal-BURLQHsn.d.mts} +43 -164
- package/build/{internal/cjs/src/ecom-v1-shipping-option-shipping-options.universal.d.ts → ecom-v1-shipping-option-shipping-options.universal-BURLQHsn.d.ts} +43 -164
- package/build/index.d.mts +81 -0
- package/build/index.d.ts +81 -0
- package/build/index.js +528 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +495 -0
- package/build/index.mjs.map +1 -0
- package/build/{cjs/src/ecom-v1-shipping-option-shipping-options.universal.d.ts → internal/ecom-v1-shipping-option-shipping-options.universal-BURLQHsn.d.mts} +43 -164
- package/build/internal/{es/src/ecom-v1-shipping-option-shipping-options.universal.d.ts → ecom-v1-shipping-option-shipping-options.universal-BURLQHsn.d.ts} +43 -164
- package/build/internal/index.d.mts +81 -0
- package/build/internal/index.d.ts +81 -0
- package/build/internal/index.js +528 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +495 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/ecom-v1-shipping-option-shipping-options.types.d.ts → internal/meta.d.mts} +54 -169
- package/build/internal/{cjs/src/ecom-v1-shipping-option-shipping-options.types.d.ts → meta.d.ts} +54 -169
- package/build/internal/meta.js +366 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +334 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/ecom-v1-shipping-option-shipping-options.types.d.ts → meta.d.mts} +54 -169
- package/build/{internal/es/src/ecom-v1-shipping-option-shipping-options.types.d.ts → meta.d.ts} +54 -169
- package/build/meta.js +366 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +334 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.context.d.ts +0 -10
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.context.js +0 -17
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.http.d.ts +0 -38
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.http.js +0 -255
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.meta.d.ts +0 -26
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.meta.js +0 -142
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.public.d.ts +0 -74
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.public.js +0 -47
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.types.js +0 -33
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.universal.js +0 -344
- package/build/cjs/src/ecom-v1-shipping-option-shipping-options.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/ecom-v1-shipping-option-shipping-options.context.d.ts +0 -10
- package/build/es/src/ecom-v1-shipping-option-shipping-options.context.js +0 -10
- package/build/es/src/ecom-v1-shipping-option-shipping-options.context.js.map +0 -1
- package/build/es/src/ecom-v1-shipping-option-shipping-options.http.d.ts +0 -38
- package/build/es/src/ecom-v1-shipping-option-shipping-options.http.js +0 -246
- package/build/es/src/ecom-v1-shipping-option-shipping-options.http.js.map +0 -1
- package/build/es/src/ecom-v1-shipping-option-shipping-options.meta.d.ts +0 -26
- package/build/es/src/ecom-v1-shipping-option-shipping-options.meta.js +0 -110
- package/build/es/src/ecom-v1-shipping-option-shipping-options.meta.js.map +0 -1
- package/build/es/src/ecom-v1-shipping-option-shipping-options.public.d.ts +0 -74
- package/build/es/src/ecom-v1-shipping-option-shipping-options.public.js +0 -34
- package/build/es/src/ecom-v1-shipping-option-shipping-options.public.js.map +0 -1
- package/build/es/src/ecom-v1-shipping-option-shipping-options.types.js +0 -30
- package/build/es/src/ecom-v1-shipping-option-shipping-options.types.js.map +0 -1
- package/build/es/src/ecom-v1-shipping-option-shipping-options.universal.js +0 -312
- package/build/es/src/ecom-v1-shipping-option-shipping-options.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.context.d.ts +0 -10
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.context.js +0 -17
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.context.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.http.d.ts +0 -38
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.http.js +0 -255
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.http.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.meta.d.ts +0 -26
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.meta.js +0 -142
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.public.d.ts +0 -74
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.public.js +0 -47
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.public.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.types.js +0 -33
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.types.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.universal.js +0 -344
- package/build/internal/cjs/src/ecom-v1-shipping-option-shipping-options.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.context.d.ts +0 -10
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.context.js +0 -10
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.context.js.map +0 -1
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.http.d.ts +0 -38
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.http.js +0 -246
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.http.js.map +0 -1
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.meta.d.ts +0 -26
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.meta.js +0 -110
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.public.d.ts +0 -74
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.public.js +0 -34
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.public.js.map +0 -1
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.types.js +0 -30
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.types.js.map +0 -1
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.universal.js +0 -312
- package/build/internal/es/src/ecom-v1-shipping-option-shipping-options.universal.js.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface ShippingOption {
|
|
1
|
+
interface ShippingOption {
|
|
3
2
|
/**
|
|
4
3
|
* ShippingOption ID.
|
|
5
4
|
* @format GUID
|
|
@@ -57,7 +56,7 @@ export interface ShippingOption {
|
|
|
57
56
|
/** Data Extensions */
|
|
58
57
|
extendedFields?: ExtendedFields;
|
|
59
58
|
}
|
|
60
|
-
|
|
59
|
+
interface ConditionalRates {
|
|
61
60
|
/**
|
|
62
61
|
* there is an AND logic between all the conditions. Empty conditions means true.
|
|
63
62
|
* For example: weight > 0 and weight <= 10
|
|
@@ -72,7 +71,7 @@ export interface ConditionalRates {
|
|
|
72
71
|
/** When this flag is set to true, multiply the amount by the number of line items passed on the request. */
|
|
73
72
|
multiplyByQuantity?: boolean;
|
|
74
73
|
}
|
|
75
|
-
|
|
74
|
+
interface Condition {
|
|
76
75
|
type?: ConditionType;
|
|
77
76
|
/**
|
|
78
77
|
* The value in respective to the condition type
|
|
@@ -84,13 +83,13 @@ export interface Condition {
|
|
|
84
83
|
value?: string;
|
|
85
84
|
operator?: LogicalOperator;
|
|
86
85
|
}
|
|
87
|
-
|
|
86
|
+
declare enum ConditionType {
|
|
88
87
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
89
88
|
BY_TOTAL_WEIGHT = "BY_TOTAL_WEIGHT",
|
|
90
89
|
BY_TOTAL_PRICE = "BY_TOTAL_PRICE",
|
|
91
90
|
BY_TOTAL_QUANTITY = "BY_TOTAL_QUANTITY"
|
|
92
91
|
}
|
|
93
|
-
|
|
92
|
+
declare enum LogicalOperator {
|
|
94
93
|
UNKNOWN_LOGICAL_OPERATOR_TYPE = "UNKNOWN_LOGICAL_OPERATOR_TYPE",
|
|
95
94
|
EQ = "EQ",
|
|
96
95
|
GT = "GT",
|
|
@@ -98,7 +97,7 @@ export declare enum LogicalOperator {
|
|
|
98
97
|
LT = "LT",
|
|
99
98
|
LTE = "LTE"
|
|
100
99
|
}
|
|
101
|
-
|
|
100
|
+
interface ExtendedFields {
|
|
102
101
|
/**
|
|
103
102
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
104
103
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -109,47 +108,47 @@ export interface ExtendedFields {
|
|
|
109
108
|
*/
|
|
110
109
|
namespaces?: Record<string, Record<string, any>>;
|
|
111
110
|
}
|
|
112
|
-
|
|
111
|
+
interface CreateShippingOptionRequest {
|
|
113
112
|
/** ShippingOption to be created. */
|
|
114
113
|
shippingOption: ShippingOption;
|
|
115
114
|
}
|
|
116
|
-
|
|
115
|
+
interface CreateShippingOptionResponse {
|
|
117
116
|
/** The created ShippingOption. */
|
|
118
117
|
shippingOption?: ShippingOption;
|
|
119
118
|
}
|
|
120
|
-
|
|
119
|
+
interface GetShippingOptionRequest {
|
|
121
120
|
/**
|
|
122
121
|
* ID of the ShippingOption to retrieve.
|
|
123
122
|
* @format GUID
|
|
124
123
|
*/
|
|
125
124
|
shippingOptionId: string;
|
|
126
125
|
}
|
|
127
|
-
|
|
126
|
+
interface GetShippingOptionResponse {
|
|
128
127
|
/** The requested ShippingOption. */
|
|
129
128
|
shippingOption?: ShippingOption;
|
|
130
129
|
}
|
|
131
|
-
|
|
130
|
+
interface UpdateShippingOptionRequest {
|
|
132
131
|
/** ShippingOption to be updated, may be partial. */
|
|
133
132
|
shippingOption: ShippingOption;
|
|
134
133
|
}
|
|
135
|
-
|
|
134
|
+
interface UpdateShippingOptionResponse {
|
|
136
135
|
/** Updated ShippingOption. */
|
|
137
136
|
shippingOption?: ShippingOption;
|
|
138
137
|
}
|
|
139
|
-
|
|
138
|
+
interface DeleteShippingOptionRequest {
|
|
140
139
|
/**
|
|
141
140
|
* Id of the ShippingOption to delete.
|
|
142
141
|
* @format GUID
|
|
143
142
|
*/
|
|
144
143
|
shippingOptionId: string;
|
|
145
144
|
}
|
|
146
|
-
|
|
145
|
+
interface DeleteShippingOptionResponse {
|
|
147
146
|
}
|
|
148
|
-
|
|
147
|
+
interface QueryShippingOptionsRequest {
|
|
149
148
|
/** WQL expression. */
|
|
150
149
|
query?: CursorQuery;
|
|
151
150
|
}
|
|
152
|
-
|
|
151
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
153
152
|
/** 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`. */
|
|
154
153
|
cursorPaging?: CursorPaging;
|
|
155
154
|
/**
|
|
@@ -169,11 +168,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
169
168
|
sort?: Sorting[];
|
|
170
169
|
}
|
|
171
170
|
/** @oneof */
|
|
172
|
-
|
|
171
|
+
interface CursorQueryPagingMethodOneOf {
|
|
173
172
|
/** 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`. */
|
|
174
173
|
cursorPaging?: CursorPaging;
|
|
175
174
|
}
|
|
176
|
-
|
|
175
|
+
interface Sorting {
|
|
177
176
|
/**
|
|
178
177
|
* Name of the field to sort by.
|
|
179
178
|
* @maxLength 512
|
|
@@ -182,11 +181,11 @@ export interface Sorting {
|
|
|
182
181
|
/** Sort order. */
|
|
183
182
|
order?: SortOrder;
|
|
184
183
|
}
|
|
185
|
-
|
|
184
|
+
declare enum SortOrder {
|
|
186
185
|
ASC = "ASC",
|
|
187
186
|
DESC = "DESC"
|
|
188
187
|
}
|
|
189
|
-
|
|
188
|
+
interface CursorPaging {
|
|
190
189
|
/**
|
|
191
190
|
* Maximum number of items to return in the results.
|
|
192
191
|
* @max 100
|
|
@@ -201,13 +200,13 @@ export interface CursorPaging {
|
|
|
201
200
|
*/
|
|
202
201
|
cursor?: string | null;
|
|
203
202
|
}
|
|
204
|
-
|
|
203
|
+
interface QueryShippingOptionsResponse {
|
|
205
204
|
/** List of ShippingOptions. */
|
|
206
205
|
shippingOptions?: ShippingOption[];
|
|
207
206
|
/** Paging metadata */
|
|
208
207
|
pagingMetadata?: CursorPagingMetadata;
|
|
209
208
|
}
|
|
210
|
-
|
|
209
|
+
interface CursorPagingMetadata {
|
|
211
210
|
/** Number of items returned in the response. */
|
|
212
211
|
count?: number | null;
|
|
213
212
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -220,7 +219,7 @@ export interface CursorPagingMetadata {
|
|
|
220
219
|
*/
|
|
221
220
|
hasNext?: boolean | null;
|
|
222
221
|
}
|
|
223
|
-
|
|
222
|
+
interface Cursors {
|
|
224
223
|
/**
|
|
225
224
|
* Cursor string pointing to the next page in the list of results.
|
|
226
225
|
* @maxLength 16000
|
|
@@ -232,7 +231,7 @@ export interface Cursors {
|
|
|
232
231
|
*/
|
|
233
232
|
prev?: string | null;
|
|
234
233
|
}
|
|
235
|
-
|
|
234
|
+
interface UpdateExtendedFieldsRequest {
|
|
236
235
|
/** ID of the entity to update. */
|
|
237
236
|
_id: string;
|
|
238
237
|
/** Identifier for the app whose extended fields are being updated. */
|
|
@@ -240,11 +239,11 @@ export interface UpdateExtendedFieldsRequest {
|
|
|
240
239
|
/** 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. */
|
|
241
240
|
namespaceData: Record<string, any> | null;
|
|
242
241
|
}
|
|
243
|
-
|
|
242
|
+
interface UpdateExtendedFieldsResponse {
|
|
244
243
|
/** Updated ShippingOption. */
|
|
245
244
|
shippingOption?: ShippingOption;
|
|
246
245
|
}
|
|
247
|
-
|
|
246
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
248
247
|
createdEvent?: EntityCreatedEvent;
|
|
249
248
|
updatedEvent?: EntityUpdatedEvent;
|
|
250
249
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -287,19 +286,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
287
286
|
entityEventSequence?: string | null;
|
|
288
287
|
}
|
|
289
288
|
/** @oneof */
|
|
290
|
-
|
|
289
|
+
interface DomainEventBodyOneOf {
|
|
291
290
|
createdEvent?: EntityCreatedEvent;
|
|
292
291
|
updatedEvent?: EntityUpdatedEvent;
|
|
293
292
|
deletedEvent?: EntityDeletedEvent;
|
|
294
293
|
actionEvent?: ActionEvent;
|
|
295
294
|
}
|
|
296
|
-
|
|
295
|
+
interface EntityCreatedEvent {
|
|
297
296
|
entity?: string;
|
|
298
297
|
}
|
|
299
|
-
|
|
298
|
+
interface RestoreInfo {
|
|
300
299
|
deletedDate?: Date | null;
|
|
301
300
|
}
|
|
302
|
-
|
|
301
|
+
interface EntityUpdatedEvent {
|
|
303
302
|
/**
|
|
304
303
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
305
304
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -307,16 +306,16 @@ export interface EntityUpdatedEvent {
|
|
|
307
306
|
*/
|
|
308
307
|
currentEntity?: string;
|
|
309
308
|
}
|
|
310
|
-
|
|
309
|
+
interface EntityDeletedEvent {
|
|
311
310
|
/** Entity that was deleted */
|
|
312
311
|
deletedEntity?: string | null;
|
|
313
312
|
}
|
|
314
|
-
|
|
313
|
+
interface ActionEvent {
|
|
315
314
|
body?: string;
|
|
316
315
|
}
|
|
317
|
-
|
|
316
|
+
interface Empty {
|
|
318
317
|
}
|
|
319
|
-
|
|
318
|
+
interface MessageEnvelope {
|
|
320
319
|
/**
|
|
321
320
|
* App instance ID.
|
|
322
321
|
* @format GUID
|
|
@@ -332,7 +331,7 @@ export interface MessageEnvelope {
|
|
|
332
331
|
/** Stringify payload. */
|
|
333
332
|
data?: string;
|
|
334
333
|
}
|
|
335
|
-
|
|
334
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
336
335
|
/**
|
|
337
336
|
* ID of a site visitor that has not logged in to the site.
|
|
338
337
|
* @format GUID
|
|
@@ -357,7 +356,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
357
356
|
identityType?: WebhookIdentityType;
|
|
358
357
|
}
|
|
359
358
|
/** @oneof */
|
|
360
|
-
|
|
359
|
+
interface IdentificationDataIdOneOf {
|
|
361
360
|
/**
|
|
362
361
|
* ID of a site visitor that has not logged in to the site.
|
|
363
362
|
* @format GUID
|
|
@@ -379,76 +378,14 @@ export interface IdentificationDataIdOneOf {
|
|
|
379
378
|
*/
|
|
380
379
|
appId?: string;
|
|
381
380
|
}
|
|
382
|
-
|
|
381
|
+
declare enum WebhookIdentityType {
|
|
383
382
|
UNKNOWN = "UNKNOWN",
|
|
384
383
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
385
384
|
MEMBER = "MEMBER",
|
|
386
385
|
WIX_USER = "WIX_USER",
|
|
387
386
|
APP = "APP"
|
|
388
387
|
}
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Creates a ShippingOption.
|
|
392
|
-
*
|
|
393
|
-
* The request body must include shipping option and delivery region associated to.
|
|
394
|
-
* @param shippingOption - ShippingOption to be created.
|
|
395
|
-
* @public
|
|
396
|
-
* @documentationMaturity preview
|
|
397
|
-
* @requiredField shippingOption
|
|
398
|
-
* @permissionId ECOM.SHIPPING_OPTION_CREATE
|
|
399
|
-
* @permissionScope Manage Stores - all permissions
|
|
400
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
401
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
402
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
403
|
-
* @applicableIdentity APP
|
|
404
|
-
* @returns The created ShippingOption.
|
|
405
|
-
* @fqn wix.ecom.delivery.v1.ShippingOptionService.CreateShippingOption
|
|
406
|
-
*/
|
|
407
|
-
export declare function createShippingOption(shippingOption: ShippingOption): Promise<NonNullablePaths<ShippingOption, ShippingOptionNonNullablePaths>>;
|
|
408
|
-
/**
|
|
409
|
-
* Retrieves a ShippingOption.
|
|
410
|
-
* @param shippingOptionId - ID of the ShippingOption to retrieve.
|
|
411
|
-
* @public
|
|
412
|
-
* @documentationMaturity preview
|
|
413
|
-
* @requiredField shippingOptionId
|
|
414
|
-
* @permissionId ECOM.SHIPPING_OPTION_READ
|
|
415
|
-
* @permissionScope Manage Stores - all permissions
|
|
416
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
417
|
-
* @permissionScope Read eCommerce - all read permissions
|
|
418
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
419
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
420
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
421
|
-
* @applicableIdentity APP
|
|
422
|
-
* @returns The requested ShippingOption.
|
|
423
|
-
* @fqn wix.ecom.delivery.v1.ShippingOptionService.GetShippingOption
|
|
424
|
-
*/
|
|
425
|
-
export declare function getShippingOption(shippingOptionId: string): Promise<NonNullablePaths<ShippingOption, ShippingOptionNonNullablePaths>>;
|
|
426
|
-
/**
|
|
427
|
-
* Updates a ShippingOption.
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
* Each time the ShippingOption is updated,
|
|
431
|
-
* `revision` increments by 1.
|
|
432
|
-
* The current `revision` must be passed when updating the ShippingOption.
|
|
433
|
-
* This ensures you're working with the latest ShippingOption
|
|
434
|
-
* and prevents unintended overwrites.
|
|
435
|
-
* @param _id - ShippingOption ID.
|
|
436
|
-
* @public
|
|
437
|
-
* @documentationMaturity preview
|
|
438
|
-
* @requiredField _id
|
|
439
|
-
* @requiredField shippingOption
|
|
440
|
-
* @requiredField shippingOption.revision
|
|
441
|
-
* @permissionId ECOM.SHIPPING_OPTION_UPDATE
|
|
442
|
-
* @permissionScope Manage Stores - all permissions
|
|
443
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
444
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
445
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
446
|
-
* @applicableIdentity APP
|
|
447
|
-
* @returns Updated ShippingOption.
|
|
448
|
-
* @fqn wix.ecom.delivery.v1.ShippingOptionService.UpdateShippingOption
|
|
449
|
-
*/
|
|
450
|
-
export declare function updateShippingOption(_id: string, shippingOption: NonNullablePaths<UpdateShippingOption, `revision`>): Promise<NonNullablePaths<ShippingOption, ShippingOptionNonNullablePaths>>;
|
|
451
|
-
export interface UpdateShippingOption {
|
|
388
|
+
interface UpdateShippingOption {
|
|
452
389
|
/**
|
|
453
390
|
* ShippingOption ID.
|
|
454
391
|
* @format GUID
|
|
@@ -506,44 +443,6 @@ export interface UpdateShippingOption {
|
|
|
506
443
|
/** Data Extensions */
|
|
507
444
|
extendedFields?: ExtendedFields;
|
|
508
445
|
}
|
|
509
|
-
/**
|
|
510
|
-
* Deletes a ShippingOption.
|
|
511
|
-
* Deleting a ShippingOption permanently removes them from the ShippingOption List.
|
|
512
|
-
* @param shippingOptionId - Id of the ShippingOption to delete.
|
|
513
|
-
* @public
|
|
514
|
-
* @documentationMaturity preview
|
|
515
|
-
* @requiredField shippingOptionId
|
|
516
|
-
* @permissionId ECOM.SHIPPING_OPTION_DELETE
|
|
517
|
-
* @permissionScope Manage Stores - all permissions
|
|
518
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
519
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
520
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
521
|
-
* @applicableIdentity APP
|
|
522
|
-
* @fqn wix.ecom.delivery.v1.ShippingOptionService.DeleteShippingOption
|
|
523
|
-
*/
|
|
524
|
-
export declare function deleteShippingOption(shippingOptionId: string): Promise<void>;
|
|
525
|
-
/**
|
|
526
|
-
* Retrieves a list of ShippingOptions, given the provided [paging, filtering, and sorting][1].
|
|
527
|
-
*
|
|
528
|
-
* Up to 1,000 ShippingOptions can be returned per request.
|
|
529
|
-
*
|
|
530
|
-
* To learn how to query ShippingOptions, see [API Query Language][2].
|
|
531
|
-
*
|
|
532
|
-
* [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
|
|
533
|
-
* [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
|
|
534
|
-
* @public
|
|
535
|
-
* @documentationMaturity preview
|
|
536
|
-
* @permissionScope Manage Stores - all permissions
|
|
537
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
538
|
-
* @permissionScope Read eCommerce - all read permissions
|
|
539
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
540
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
541
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
542
|
-
* @permissionId ECOM.SHIPPING_OPTION_READ
|
|
543
|
-
* @applicableIdentity APP
|
|
544
|
-
* @fqn wix.ecom.delivery.v1.ShippingOptionService.QueryShippingOptions
|
|
545
|
-
*/
|
|
546
|
-
export declare function queryShippingOptions(): ShippingOptionsQueryBuilder;
|
|
547
446
|
interface QueryCursorResult {
|
|
548
447
|
cursors: Cursors;
|
|
549
448
|
hasNext: () => boolean;
|
|
@@ -551,13 +450,13 @@ interface QueryCursorResult {
|
|
|
551
450
|
length: number;
|
|
552
451
|
pageSize: number;
|
|
553
452
|
}
|
|
554
|
-
|
|
453
|
+
interface ShippingOptionsQueryResult extends QueryCursorResult {
|
|
555
454
|
items: ShippingOption[];
|
|
556
455
|
query: ShippingOptionsQueryBuilder;
|
|
557
456
|
next: () => Promise<ShippingOptionsQueryResult>;
|
|
558
457
|
prev: () => Promise<ShippingOptionsQueryResult>;
|
|
559
458
|
}
|
|
560
|
-
|
|
459
|
+
interface ShippingOptionsQueryBuilder {
|
|
561
460
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
562
461
|
* @param value - Value to compare against.
|
|
563
462
|
* @documentationMaturity preview
|
|
@@ -606,29 +505,9 @@ export interface ShippingOptionsQueryBuilder {
|
|
|
606
505
|
/** @documentationMaturity preview */
|
|
607
506
|
find: () => Promise<ShippingOptionsQueryResult>;
|
|
608
507
|
}
|
|
609
|
-
|
|
610
|
-
* Updates extended fields of a ShippingOption without incrementing revision
|
|
611
|
-
* @param _id - ID of the entity to update.
|
|
612
|
-
* @param namespace - Identifier for the app whose extended fields are being updated.
|
|
613
|
-
* @public
|
|
614
|
-
* @documentationMaturity preview
|
|
615
|
-
* @requiredField _id
|
|
616
|
-
* @requiredField namespace
|
|
617
|
-
* @requiredField options
|
|
618
|
-
* @requiredField options.namespaceData
|
|
619
|
-
* @permissionId ECOM.SHIPPING_OPTION_UPDATE
|
|
620
|
-
* @permissionScope Manage Stores - all permissions
|
|
621
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
622
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
623
|
-
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
624
|
-
* @applicableIdentity APP
|
|
625
|
-
* @fqn wix.ecom.delivery.v1.ShippingOptionService.UpdateExtendedFields
|
|
626
|
-
*/
|
|
627
|
-
export declare function updateExtendedFields(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, {
|
|
628
|
-
[P in ShippingOptionNonNullablePaths]: `shippingOption.${P}`;
|
|
629
|
-
}[ShippingOptionNonNullablePaths]>>;
|
|
630
|
-
export interface UpdateExtendedFieldsOptions {
|
|
508
|
+
interface UpdateExtendedFieldsOptions {
|
|
631
509
|
/** 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. */
|
|
632
510
|
namespaceData: Record<string, any> | null;
|
|
633
511
|
}
|
|
634
|
-
|
|
512
|
+
|
|
513
|
+
export { type ActionEvent as A, type IdentificationDataIdOneOf as B, ConditionType as C, type DeleteShippingOptionRequest as D, type ExtendedFields as E, type ShippingOptionsQueryResult as F, type GetShippingOptionRequest as G, type IdentificationData as I, LogicalOperator as L, type MessageEnvelope as M, type QueryShippingOptionsRequest as Q, type RestoreInfo as R, type ShippingOption as S, type UpdateShippingOption as U, WebhookIdentityType as W, type ShippingOptionsQueryBuilder as a, type UpdateExtendedFieldsOptions as b, type UpdateExtendedFieldsResponse as c, SortOrder as d, type ConditionalRates as e, type Condition as f, type CreateShippingOptionRequest as g, type CreateShippingOptionResponse as h, type GetShippingOptionResponse as i, type UpdateShippingOptionRequest as j, type UpdateShippingOptionResponse as k, type DeleteShippingOptionResponse as l, type CursorQuery as m, type CursorQueryPagingMethodOneOf as n, type Sorting as o, type CursorPaging as p, type QueryShippingOptionsResponse as q, type CursorPagingMetadata as r, type Cursors as s, type UpdateExtendedFieldsRequest as t, type DomainEvent as u, type DomainEventBodyOneOf as v, type EntityCreatedEvent as w, type EntityUpdatedEvent as x, type EntityDeletedEvent as y, type Empty as z };
|