@wix/auto_sdk_ecom_delivery-profile 1.0.25 → 1.0.27

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/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +20 -0
  11. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js +31 -0
  12. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +1 -0
  13. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +73 -0
  14. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js +567 -0
  15. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +1 -0
  16. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +46 -0
  17. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js +344 -0
  18. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +1 -0
  19. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +159 -0
  20. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js +111 -0
  21. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +1 -0
  22. package/build/{ecom-v1-delivery-profile-delivery-profile.universal-_1-ffDas.d.mts → cjs/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts} +124 -359
  23. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js +142 -0
  24. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +1 -0
  25. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +1943 -0
  26. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js +933 -0
  27. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +20 -0
  39. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.context.js +20 -0
  40. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +1 -0
  41. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +73 -0
  42. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.http.js +548 -0
  43. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +1 -0
  44. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +46 -0
  45. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js +302 -0
  46. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +1 -0
  47. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +159 -0
  48. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.public.js +84 -0
  49. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +1 -0
  50. package/build/{ecom-v1-delivery-profile-delivery-profile.universal-_1-ffDas.d.ts → es/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts} +124 -359
  51. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.types.js +139 -0
  52. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +1 -0
  53. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +1943 -0
  54. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js +891 -0
  55. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +20 -0
  66. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js +31 -0
  67. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +1 -0
  68. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +73 -0
  69. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js +567 -0
  70. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +1 -0
  71. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +46 -0
  72. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js +344 -0
  73. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +1 -0
  74. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +159 -0
  75. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js +111 -0
  76. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +1 -0
  77. package/build/internal/{ecom-v1-delivery-profile-delivery-profile.universal-_1-ffDas.d.mts → cjs/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts} +124 -359
  78. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js +142 -0
  79. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +1 -0
  80. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +1943 -0
  81. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js +933 -0
  82. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +20 -0
  93. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.context.js +20 -0
  94. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +1 -0
  95. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +73 -0
  96. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.http.js +548 -0
  97. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +1 -0
  98. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +46 -0
  99. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js +302 -0
  100. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +1 -0
  101. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +159 -0
  102. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.public.js +84 -0
  103. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +1 -0
  104. package/build/internal/{ecom-v1-delivery-profile-delivery-profile.universal-_1-ffDas.d.ts → es/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts} +124 -359
  105. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.types.js +139 -0
  106. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +1 -0
  107. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +1943 -0
  108. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js +891 -0
  109. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.d.mts +0 -176
  112. package/build/index.d.ts +0 -176
  113. package/build/index.js +0 -1257
  114. package/build/index.js.map +0 -1
  115. package/build/index.mjs +0 -1210
  116. package/build/index.mjs.map +0 -1
  117. package/build/internal/index.d.mts +0 -176
  118. package/build/internal/index.d.ts +0 -176
  119. package/build/internal/index.js +0 -1257
  120. package/build/internal/index.js.map +0 -1
  121. package/build/internal/index.mjs +0 -1210
  122. package/build/internal/index.mjs.map +0 -1
  123. package/build/internal/meta.d.mts +0 -729
  124. package/build/internal/meta.d.ts +0 -729
  125. package/build/internal/meta.js +0 -855
  126. package/build/internal/meta.js.map +0 -1
  127. package/build/internal/meta.mjs +0 -813
  128. package/build/internal/meta.mjs.map +0 -1
  129. package/build/meta.d.mts +0 -729
  130. package/build/meta.d.ts +0 -729
  131. package/build/meta.js +0 -855
  132. package/build/meta.js.map +0 -1
  133. package/build/meta.mjs +0 -813
  134. package/build/meta.mjs.map +0 -1
@@ -1,729 +0,0 @@
1
- import { O as CreateDeliveryProfileRequest$1, P as CreateDeliveryProfileResponse$1, Q as GetDeliveryProfileRequest$1, T as GetDeliveryProfileResponse$1, V as UpdateDeliveryProfileRequest$1, X as UpdateDeliveryProfileResponse$1, Y as DeleteDeliveryProfileRequest$1, Z as DeleteDeliveryProfileResponse$1, a0 as QueryDeliveryProfilesRequest$1, a5 as QueryDeliveryProfilesResponse$1, a8 as AddDeliveryRegionRequest$1, c as AddDeliveryRegionResponse$1, a9 as UpdateDeliveryRegionRequest$1, g as UpdateDeliveryRegionResponse$1, aa as RemoveDeliveryRegionRequest$1, i as RemoveDeliveryRegionResponse$1, ab as AddDeliveryCarrierRequest$1, k as AddDeliveryCarrierResponse$1, ac as RemoveDeliveryCarrierRequest$1, m as RemoveDeliveryCarrierResponse$1, ad as UpdateDeliveryCarrierRequest$1, o as UpdateDeliveryCarrierResponse$1, ae as ListDeliveryCarrierDetailsRequest$1, L as ListDeliveryCarrierDetailsResponse$1, ag as ListInstalledDeliveryCarriersRequest$1, p as ListInstalledDeliveryCarriersResponse$1, am as ListDeliveryCarriersRequest$1, r as ListDeliveryCarriersResponse$1, av as UpdateCarrierSettingsRequest$1, aw as UpdateCarrierSettingsResponse$1, ax as UpdateExtendedFieldsRequest$1, u as UpdateExtendedFieldsResponse$1 } from './ecom-v1-delivery-profile-delivery-profile.universal-_1-ffDas.mjs';
2
-
3
- /**
4
- * A DeliveryProfile is a ...
5
- * You can ...
6
- * Read more about DeliveryProfiles
7
- * in this [article](<LINK_TO_KB_ARTICLE>).
8
- */
9
- interface DeliveryProfile {
10
- /**
11
- * DeliveryProfile ID.
12
- * @format GUID
13
- * @readonly
14
- */
15
- id?: string | null;
16
- /**
17
- * DeliveryProfile name.
18
- * @minLength 1
19
- * @maxLength 256
20
- */
21
- name?: string | null;
22
- /**
23
- * Flags this DeliveryProfile as the default DeliveryProfile.
24
- * @readonly
25
- */
26
- default?: boolean | null;
27
- /**
28
- * A list of DeliveryProfile regions.
29
- * @maxSize 100
30
- */
31
- deliveryRegions?: DeliveryRegion[];
32
- /** ID of the delivery profile's creator. */
33
- createdBy?: CreatedBy;
34
- /**
35
- * DeliveryProfile revision.
36
- * @readonly
37
- */
38
- revision?: string | null;
39
- /**
40
- * Date and time the DeliveryProfile was created.
41
- * @readonly
42
- */
43
- createdDate?: Date | null;
44
- /**
45
- * Date and time the DeliveryProfile was last updated.
46
- * @readonly
47
- */
48
- updatedDate?: Date | null;
49
- /** [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields ) must be configured in the app dashboard before they can be accessed with API calls. */
50
- extendedFields?: ExtendedFields;
51
- }
52
- /** DeliveryRegion can be used to config a Delivery Destinations with its providers */
53
- interface DeliveryRegion {
54
- /**
55
- * The delivery region id.
56
- * @format GUID
57
- * @readonly
58
- */
59
- id?: string | null;
60
- /**
61
- * Optional name of the region, for example: "Domestic".
62
- * @minLength 1
63
- * @maxLength 256
64
- */
65
- name?: string | null;
66
- /** Indicates that this rule is active, default value is true. */
67
- active?: boolean | null;
68
- /**
69
- * The spi implementers id of shipping-rates spi, assigned to this rule.
70
- * @maxSize 25
71
- * @readonly
72
- */
73
- deliveryCarriers?: DeliveryCarrier[];
74
- /**
75
- * The operation region of this rule, if empty than it is global.
76
- * @maxSize 200
77
- */
78
- destinations?: Destination[];
79
- /**
80
- * Represents the time this Profile was created
81
- * @readonly
82
- */
83
- createdDate?: Date | null;
84
- }
85
- interface DeliveryCarrier {
86
- /**
87
- * AppDefId of the provider as it is registered in the [app dashboard](https://dev.wix.com/dc3/my-apps/). Can be fetched by listDeliveryProvider api.
88
- * @format GUID
89
- */
90
- appId?: string;
91
- /** Backup rate to be used in case the cost returned by the provider is empty. */
92
- backupRate?: BackupRate;
93
- /**
94
- * Additional charges to add to the delivery rate for this carrier
95
- * @maxSize 10
96
- */
97
- additionalCharges?: AdditionalCharge[];
98
- }
99
- interface BackupRate {
100
- /**
101
- * Default rate prefix that will concatenate to the delivery options the provider will offer.
102
- * @minLength 1
103
- * @maxLength 256
104
- * @deprecated Default rate prefix that will concatenate to the delivery options the provider will offer.
105
- * @replacedBy title
106
- * @targetRemovalDate 2025-04-01
107
- */
108
- prefix?: string | null;
109
- /**
110
- * Default rate price for all delivery options that the provider will offer.
111
- * @decimalValue options { gte:0, maxScale:6 }
112
- * @deprecated Default rate price for all delivery options that the provider will offer.
113
- * @replacedBy amount
114
- * @targetRemovalDate 2025-04-01
115
- */
116
- rate?: string | null;
117
- /**
118
- * Should the default rate be used. Default value is false.
119
- * @deprecated Should the default rate be used. Default value is false.
120
- * @replacedBy active
121
- * @targetRemovalDate 2025-04-01
122
- */
123
- enabled?: boolean | null;
124
- /**
125
- * Default rate title that will concatenate to the delivery options the provider will offer.
126
- * @minLength 1
127
- * @maxLength 32
128
- */
129
- title?: string | null;
130
- /**
131
- * Default amount price for all delivery options that the provider will offer.
132
- * @decimalValue options { gte:0, maxScale:6 }
133
- */
134
- amount?: string | null;
135
- /** Should the default rate be used. Default value is false. */
136
- active?: boolean;
137
- }
138
- interface AdditionalCharge {
139
- /**
140
- * Additional charge type.
141
- * @deprecated Additional charge type.
142
- * @targetRemovalDate 2025-04-01
143
- */
144
- type?: ChargeType;
145
- /**
146
- * Description of the additional charge. For example, `"Handling fee of $5 applied for gift wrapping"`.
147
- * @maxLength 250
148
- */
149
- description?: string | null;
150
- /**
151
- * Cost of additional charge. For example, `12.5`.
152
- * @maxLength 16
153
- * @deprecated Cost of additional charge. For example, `12.5`.
154
- * @replacedBy amount
155
- * @targetRemovalDate 2025-04-01
156
- */
157
- price?: string;
158
- /**
159
- * Cost of additional charge. For example, `12.5`.
160
- * @maxLength 16
161
- */
162
- amount?: string;
163
- }
164
- declare enum ChargeType {
165
- HANDLING_FEE = "HANDLING_FEE"
166
- }
167
- /** Defines the area inside one country that is relevant for this rule. */
168
- interface Destination {
169
- /**
170
- * 2-letters code represents the country of the delivery destinations
171
- * @format COUNTRY
172
- */
173
- countryCode?: string;
174
- /**
175
- * subdivisions - Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).
176
- * If empty, the rule applies to the entire country.
177
- * @maxSize 100
178
- * @minLength 1
179
- * @maxLength 256
180
- */
181
- subdivisions?: string[];
182
- }
183
- interface CreatedBy extends CreatedByIdOneOf {
184
- /**
185
- * App ID - when the delivery profile was created by an external application or Wix service.
186
- * @format GUID
187
- */
188
- appId?: string | null;
189
- /**
190
- * User ID - when the delivery profile was created by a Wix user.
191
- * @format GUID
192
- */
193
- userId?: string | null;
194
- }
195
- /** @oneof */
196
- interface CreatedByIdOneOf {
197
- /**
198
- * App ID - when the delivery profile was created by an external application or Wix service.
199
- * @format GUID
200
- */
201
- appId?: string | null;
202
- /**
203
- * User ID - when the delivery profile was created by a Wix user.
204
- * @format GUID
205
- */
206
- userId?: string | null;
207
- }
208
- interface ExtendedFields {
209
- /**
210
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
211
- * The value of each key is structured according to the schema defined when the extended fields were configured.
212
- *
213
- * You can only access fields for which you have the appropriate permissions.
214
- *
215
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
216
- */
217
- namespaces?: Record<string, Record<string, any>>;
218
- }
219
- interface CreateDeliveryProfileRequest {
220
- /** DeliveryProfile to be created. */
221
- deliveryProfile: DeliveryProfile;
222
- }
223
- interface CreateDeliveryProfileResponse {
224
- /** The created DeliveryProfile. */
225
- deliveryProfile?: DeliveryProfile;
226
- }
227
- interface GetDeliveryProfileRequest {
228
- /**
229
- * ID of the DeliveryProfile to retrieve.
230
- * @format GUID
231
- */
232
- deliveryProfileId: string;
233
- }
234
- interface GetDeliveryProfileResponse {
235
- /** The requested DeliveryProfile. */
236
- deliveryProfile?: DeliveryProfile;
237
- }
238
- interface UpdateDeliveryProfileRequest {
239
- /** DeliveryProfile to be updated, may be partial. */
240
- deliveryProfile: DeliveryProfile;
241
- }
242
- interface UpdateDeliveryProfileResponse {
243
- /** Updated DeliveryProfile. */
244
- deliveryProfile?: DeliveryProfile;
245
- }
246
- interface DeleteDeliveryProfileRequest {
247
- /**
248
- * Id of the DeliveryProfile to delete.
249
- * @format GUID
250
- */
251
- deliveryProfileId: string;
252
- }
253
- interface DeleteDeliveryProfileResponse {
254
- }
255
- interface QueryDeliveryProfilesRequest {
256
- /** WQL expression. */
257
- query?: CursorQuery;
258
- }
259
- interface CursorQuery extends CursorQueryPagingMethodOneOf {
260
- /** 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`. */
261
- cursorPaging?: CursorPaging;
262
- /**
263
- * Filter object in the following format:
264
- * `"filter" : {
265
- * "fieldName1": "value1",
266
- * "fieldName2":{"$operator":"value2"}
267
- * }`
268
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
269
- */
270
- filter?: Record<string, any> | null;
271
- /**
272
- * Sort object in the following format:
273
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
274
- * @maxSize 5
275
- */
276
- sort?: Sorting[];
277
- }
278
- /** @oneof */
279
- interface CursorQueryPagingMethodOneOf {
280
- /** 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`. */
281
- cursorPaging?: CursorPaging;
282
- }
283
- interface Sorting {
284
- /**
285
- * Name of the field to sort by.
286
- * @maxLength 512
287
- */
288
- fieldName?: string;
289
- /** Sort order. */
290
- order?: SortOrder;
291
- }
292
- declare enum SortOrder {
293
- ASC = "ASC",
294
- DESC = "DESC"
295
- }
296
- interface CursorPaging {
297
- /**
298
- * Maximum number of items to return in the results.
299
- * @max 100
300
- */
301
- limit?: number | null;
302
- /**
303
- * Pointer to the next or previous page in the list of results.
304
- *
305
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
306
- * Not relevant for the first request.
307
- * @maxLength 16000
308
- */
309
- cursor?: string | null;
310
- }
311
- interface QueryDeliveryProfilesResponse {
312
- /** List of DeliveryProfiles. */
313
- deliveryProfiles?: DeliveryProfile[];
314
- /** Paging metadata */
315
- pagingMetadata?: CursorPagingMetadata;
316
- }
317
- interface CursorPagingMetadata {
318
- /** Number of items returned in the response. */
319
- count?: number | null;
320
- /** Cursor strings that point to the next page, previous page, or both. */
321
- cursors?: Cursors;
322
- /**
323
- * Whether there are more pages to retrieve following the current page.
324
- *
325
- * + `true`: Another page of results can be retrieved.
326
- * + `false`: This is the last page.
327
- */
328
- hasNext?: boolean | null;
329
- }
330
- interface Cursors {
331
- /**
332
- * Cursor string pointing to the next page in the list of results.
333
- * @maxLength 16000
334
- */
335
- next?: string | null;
336
- /**
337
- * Cursor pointing to the previous page in the list of results.
338
- * @maxLength 16000
339
- */
340
- prev?: string | null;
341
- }
342
- interface AddDeliveryRegionRequest {
343
- /**
344
- * delivery profile id to associated with the DeliveryRegion
345
- * @format GUID
346
- */
347
- deliveryProfileId: string;
348
- /** DeliveryRegion to be created */
349
- deliveryRegion: DeliveryRegion;
350
- /**
351
- * DeliveryProfile revision.
352
- * @readonly
353
- */
354
- revision?: string | null;
355
- }
356
- interface AddDeliveryRegionResponse {
357
- /** The updated DeliveryProfile with the new DeliveryRegion */
358
- deliveryProfile?: DeliveryProfile;
359
- }
360
- interface UpdateDeliveryRegionRequest {
361
- /**
362
- * DeliveryProfile id that owns the DeliveryRegion
363
- * @format GUID
364
- */
365
- deliveryProfileId: string;
366
- /** DeliveryRegion to be updated, may be partial */
367
- deliveryRegion: DeliveryRegion;
368
- /**
369
- * DeliveryProfile revision.
370
- * @readonly
371
- */
372
- revision?: string | null;
373
- }
374
- interface UpdateDeliveryRegionResponse {
375
- /** The updated DeliveryProfile with the updated DeliveryRegion */
376
- deliveryProfile?: DeliveryProfile;
377
- }
378
- interface RemoveDeliveryRegionRequest {
379
- /**
380
- * DeliveryProfile id that owns the DeliveryRegion
381
- * @format GUID
382
- */
383
- deliveryProfileId: string;
384
- /**
385
- * Id of the DeliveryRegion to delete
386
- * @format GUID
387
- */
388
- deliveryRegionId: string;
389
- /**
390
- * DeliveryProfile revision.
391
- * @readonly
392
- */
393
- revision?: string | null;
394
- }
395
- interface RemoveDeliveryRegionResponse {
396
- /** The updated DeliveryProfile without DeliveryRegion */
397
- deliveryProfile?: DeliveryProfile;
398
- }
399
- interface AddDeliveryCarrierRequest {
400
- /**
401
- * delivery_region id to associated with the delivery_carrier.
402
- * @format GUID
403
- */
404
- deliveryRegionId: string;
405
- /** delivery_carrier to be added. */
406
- deliveryCarrier: DeliveryCarrier;
407
- }
408
- interface AddDeliveryCarrierResponse {
409
- /** The updated DeliveryProfile */
410
- deliveryProfile?: DeliveryProfile;
411
- }
412
- interface RemoveDeliveryCarrierRequest {
413
- /**
414
- * Id of the DeliveryRegion
415
- * @format GUID
416
- */
417
- deliveryRegionId: string;
418
- /**
419
- * DeliveryCarrier app id to be removed.
420
- * @format GUID
421
- */
422
- appId: string;
423
- }
424
- interface RemoveDeliveryCarrierResponse {
425
- /** The updated DeliveryProfile */
426
- deliveryProfile?: DeliveryProfile;
427
- }
428
- interface UpdateDeliveryCarrierRequest {
429
- /**
430
- * DeliveryRegion id
431
- * @format GUID
432
- */
433
- deliveryRegionId: string;
434
- /** Updated delivery_carrier */
435
- deliveryCarrier?: DeliveryCarrier;
436
- }
437
- interface UpdateDeliveryCarrierResponse {
438
- /** The updated DeliveryProfile with the updated DeliveryCarrier */
439
- deliveryProfile?: DeliveryProfile;
440
- }
441
- interface ListDeliveryCarrierDetailsRequest {
442
- }
443
- interface ListDeliveryCarrierDetailsResponse {
444
- /**
445
- * The list of carrier or multi-carrier services that has implemented the spi and installed on the current context(site)
446
- * @maxSize 100
447
- */
448
- deliveryCarrierDetails?: DeliveryCarrierDetails[];
449
- }
450
- interface DeliveryCarrierDetails {
451
- /**
452
- * The id of the provider.
453
- * @format GUID
454
- */
455
- id?: string;
456
- /**
457
- * The name of the Provider.
458
- * @maxLength 256
459
- */
460
- displayName?: string;
461
- /**
462
- * Provider's description.
463
- * @maxLength 200
464
- */
465
- description?: string | null;
466
- /**
467
- * A link to learn more about the provider.
468
- * @maxLength 200
469
- */
470
- learnMoreUrl?: string | null;
471
- /**
472
- * Dashboard URL for the provider.
473
- * @minLength 1
474
- * @maxLength 2048
475
- * @format WEB_URL
476
- */
477
- dashboardUrl?: string | null;
478
- /** If the provider fallback definition is mandatory. */
479
- fallbackDefinitionMandatory?: boolean | null;
480
- /**
481
- * Thumbnail image for provider.
482
- * @format WEB_URL
483
- */
484
- thumbnailUrl?: string | null;
485
- /** feature toggle initialized with default value = false. should be true if implemented by spi provider */
486
- toggleGetCarrierSettingsEnabled?: boolean;
487
- /** feature toggle initialized with default value = false. should be true if implemented by spi provider */
488
- toggleUpdateCarrierActiveStatusEnabled?: boolean;
489
- }
490
- interface ListInstalledDeliveryCarriersRequest {
491
- }
492
- interface ListInstalledDeliveryCarriersResponse {
493
- /**
494
- * The list of carrier or multi-carrier services that has implemented the spi and installed on the current context(site)
495
- * @maxSize 100
496
- */
497
- installedDeliveryCarriers?: InstalledDeliveryCarrier[];
498
- }
499
- interface InstalledDeliveryCarrier {
500
- /**
501
- * The id of the provider.
502
- * @format GUID
503
- */
504
- id?: string;
505
- /**
506
- * The name of the Provider.
507
- * @maxLength 256
508
- */
509
- displayName?: string;
510
- /**
511
- * Provider's description.
512
- * @maxLength 200
513
- */
514
- description?: string | null;
515
- /**
516
- * A link to learn more about the provider.
517
- * @maxLength 200
518
- */
519
- learnMoreUrl?: string | null;
520
- /**
521
- * Dashboard URL for the provider.
522
- * @minLength 1
523
- * @maxLength 2048
524
- * @format WEB_URL
525
- */
526
- dashboardUrl?: string | null;
527
- /** If the provider fallback definition is mandatory. */
528
- fallbackDefinitionMandatory?: boolean | null;
529
- /**
530
- * Thumbnail image for provider.
531
- * @format WEB_URL
532
- */
533
- thumbnailUrl?: string | null;
534
- /** feature toggle initialized with default value = false. should be true if implemented by spi provider */
535
- toggleGetCarrierSettingsEnabled?: boolean;
536
- }
537
- interface ListDeliveryCarriersRequest {
538
- /**
539
- * Delivery profile id.
540
- * @format GUID
541
- */
542
- deliveryProfileId: string;
543
- /**
544
- * Delivery app ids to get settings for.
545
- * @format GUID
546
- * @minSize 1
547
- * @maxSize 25
548
- */
549
- appIds?: string[];
550
- }
551
- interface ListDeliveryCarriersResponse {
552
- /**
553
- * The list of delivery settings for the given requests
554
- * @maxSize 100
555
- */
556
- results?: ListDeliveryCarriersResult[];
557
- /** Bulk action metadata. */
558
- bulkActionMetadata?: BulkActionMetadata;
559
- }
560
- interface ListDeliveryCarriersResult {
561
- /** Information about successful action or error for failure. */
562
- deliveryCarrierMetadata?: ItemMetadata;
563
- /** The delivery carrier details */
564
- deliveryCarrierDetails?: DeliveryCarrierDetails;
565
- /**
566
- * The delivery settings for the delivery profile and delivery region.
567
- * @minSize 1
568
- * @maxSize 5
569
- */
570
- deliveryCarrierRegionalSettings?: DeliveryCarrierRegionalSettings[];
571
- }
572
- interface ItemMetadata {
573
- /**
574
- * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
575
- * @format GUID
576
- */
577
- id?: string | null;
578
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
579
- success?: boolean;
580
- /** Details about the error in case of failure. */
581
- error?: ApplicationError;
582
- }
583
- interface ApplicationError {
584
- /** Error code. */
585
- code?: string;
586
- /** Description of the error. */
587
- description?: string;
588
- /** Data related to the error. */
589
- data?: Record<string, any> | null;
590
- }
591
- interface DeliveryCarrierRegionalSettings {
592
- /**
593
- * The delivery rule id.
594
- * @format GUID
595
- */
596
- deliveryRegionId?: string;
597
- /**
598
- * The shipping table values that are associated with the delivery rule. Can be multiple if the provider is an aggregator of multiple carriers.
599
- * @minSize 1
600
- * @maxSize 5
601
- */
602
- dashboardTables?: DashboardTable[];
603
- }
604
- interface DashboardTable {
605
- /**
606
- * The title of the delivery settings that will be displayed in the UI.
607
- * @maxLength 256
608
- */
609
- title?: string;
610
- /**
611
- * The columns of the delivery settings that will be displayed in the UI.
612
- * @maxSize 200
613
- */
614
- columns?: Column[];
615
- /**
616
- * The content of the delivery settings. Each row is a map of column name to value.
617
- * @maxSize 25
618
- */
619
- rows?: Row[];
620
- }
621
- interface Column {
622
- /**
623
- * The name of the column. This is used to get the data from the row.
624
- * @maxLength 256
625
- */
626
- key?: string;
627
- /**
628
- * The title of the column that will be displayed in the UI.
629
- * @maxLength 256
630
- */
631
- name?: string;
632
- }
633
- interface Row {
634
- /**
635
- * The external key of the data presented in a row. This is used to identify the row in the UI for editing.
636
- * @maxLength 256
637
- */
638
- key?: string;
639
- /**
640
- * The data presented in the row. The key is the column `name` and the value is the data in the specific row and column.
641
- * Data will be in JSON format.
642
- */
643
- data?: Record<string, any> | null;
644
- /** The configuration's status of the current row. */
645
- active?: boolean;
646
- }
647
- interface BulkActionMetadata {
648
- /** Number of items that were successfully processed. */
649
- totalSuccesses?: number;
650
- /** Number of items that couldn't be processed. */
651
- totalFailures?: number;
652
- /** Number of failures without details because detailed failure threshold was exceeded. */
653
- undetailedFailures?: number;
654
- }
655
- interface UpdateCarrierSettingsRequest {
656
- /**
657
- * Carrier id.
658
- * @format GUID
659
- */
660
- carrierId: string;
661
- /**
662
- * Row id triggered the change
663
- * @format GUID
664
- */
665
- rowId: string;
666
- /** New status */
667
- active: boolean | null;
668
- }
669
- interface UpdateCarrierSettingsResponse {
670
- }
671
- interface UpdateExtendedFieldsRequest {
672
- /** ID of the entity to update. */
673
- id: string;
674
- /** Identifier for the app whose extended fields are being updated. */
675
- namespace: string;
676
- /** 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. */
677
- namespaceData: Record<string, any> | null;
678
- }
679
- interface UpdateExtendedFieldsResponse {
680
- /** Updated DeliveryProfile. */
681
- deliveryProfile?: DeliveryProfile;
682
- }
683
-
684
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
685
- getUrl: (context: any) => string;
686
- httpMethod: K;
687
- path: string;
688
- pathParams: M;
689
- __requestType: T;
690
- __originalRequestType: S;
691
- __responseType: Q;
692
- __originalResponseType: R;
693
- };
694
- declare function createDeliveryProfile(): __PublicMethodMetaInfo<'POST', {}, CreateDeliveryProfileRequest$1, CreateDeliveryProfileRequest, CreateDeliveryProfileResponse$1, CreateDeliveryProfileResponse>;
695
- declare function getDeliveryProfile(): __PublicMethodMetaInfo<'GET', {
696
- deliveryProfileId: string;
697
- }, GetDeliveryProfileRequest$1, GetDeliveryProfileRequest, GetDeliveryProfileResponse$1, GetDeliveryProfileResponse>;
698
- declare function updateDeliveryProfile(): __PublicMethodMetaInfo<'PATCH', {
699
- deliveryProfileId: string;
700
- }, UpdateDeliveryProfileRequest$1, UpdateDeliveryProfileRequest, UpdateDeliveryProfileResponse$1, UpdateDeliveryProfileResponse>;
701
- declare function deleteDeliveryProfile(): __PublicMethodMetaInfo<'DELETE', {
702
- deliveryProfileId: string;
703
- }, DeleteDeliveryProfileRequest$1, DeleteDeliveryProfileRequest, DeleteDeliveryProfileResponse$1, DeleteDeliveryProfileResponse>;
704
- declare function queryDeliveryProfiles(): __PublicMethodMetaInfo<'GET', {}, QueryDeliveryProfilesRequest$1, QueryDeliveryProfilesRequest, QueryDeliveryProfilesResponse$1, QueryDeliveryProfilesResponse>;
705
- declare function addDeliveryRegion(): __PublicMethodMetaInfo<'POST', {
706
- deliveryProfileId: string;
707
- }, AddDeliveryRegionRequest$1, AddDeliveryRegionRequest, AddDeliveryRegionResponse$1, AddDeliveryRegionResponse>;
708
- declare function updateDeliveryRegion(): __PublicMethodMetaInfo<'PATCH', {
709
- deliveryProfileId: string;
710
- deliveryRegionId: string;
711
- }, UpdateDeliveryRegionRequest$1, UpdateDeliveryRegionRequest, UpdateDeliveryRegionResponse$1, UpdateDeliveryRegionResponse>;
712
- declare function removeDeliveryRegion(): __PublicMethodMetaInfo<'DELETE', {
713
- deliveryProfileId: string;
714
- deliveryRegionId: string;
715
- }, RemoveDeliveryRegionRequest$1, RemoveDeliveryRegionRequest, RemoveDeliveryRegionResponse$1, RemoveDeliveryRegionResponse>;
716
- declare function addDeliveryCarrier(): __PublicMethodMetaInfo<'POST', {}, AddDeliveryCarrierRequest$1, AddDeliveryCarrierRequest, AddDeliveryCarrierResponse$1, AddDeliveryCarrierResponse>;
717
- declare function removeDeliveryCarrier(): __PublicMethodMetaInfo<'POST', {}, RemoveDeliveryCarrierRequest$1, RemoveDeliveryCarrierRequest, RemoveDeliveryCarrierResponse$1, RemoveDeliveryCarrierResponse>;
718
- declare function updateDeliveryCarrier(): __PublicMethodMetaInfo<'PATCH', {}, UpdateDeliveryCarrierRequest$1, UpdateDeliveryCarrierRequest, UpdateDeliveryCarrierResponse$1, UpdateDeliveryCarrierResponse>;
719
- declare function listDeliveryCarrierDetails(): __PublicMethodMetaInfo<'GET', {}, ListDeliveryCarrierDetailsRequest$1, ListDeliveryCarrierDetailsRequest, ListDeliveryCarrierDetailsResponse$1, ListDeliveryCarrierDetailsResponse>;
720
- declare function listInstalledDeliveryCarriers(): __PublicMethodMetaInfo<'GET', {}, ListInstalledDeliveryCarriersRequest$1, ListInstalledDeliveryCarriersRequest, ListInstalledDeliveryCarriersResponse$1, ListInstalledDeliveryCarriersResponse>;
721
- declare function listDeliveryCarriers(): __PublicMethodMetaInfo<'POST', {
722
- deliveryProfileId: string;
723
- }, ListDeliveryCarriersRequest$1, ListDeliveryCarriersRequest, ListDeliveryCarriersResponse$1, ListDeliveryCarriersResponse>;
724
- declare function updateCarrierSettings(): __PublicMethodMetaInfo<'POST', {}, UpdateCarrierSettingsRequest$1, UpdateCarrierSettingsRequest, UpdateCarrierSettingsResponse$1, UpdateCarrierSettingsResponse>;
725
- declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
726
- id: string;
727
- }, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse$1, UpdateExtendedFieldsResponse>;
728
-
729
- export { type __PublicMethodMetaInfo, addDeliveryCarrier, addDeliveryRegion, createDeliveryProfile, deleteDeliveryProfile, getDeliveryProfile, listDeliveryCarrierDetails, listDeliveryCarriers, listInstalledDeliveryCarriers, queryDeliveryProfiles, removeDeliveryCarrier, removeDeliveryRegion, updateCarrierSettings, updateDeliveryCarrier, updateDeliveryProfile, updateDeliveryRegion, updateExtendedFields };