@wix/auto_sdk_ecom_delivery-profile 1.0.256 → 1.0.258
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/cjs/index.d.ts +11 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +32 -18
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +14 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +11 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +32 -18
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +14 -8
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +32 -18
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +14 -8
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +32 -18
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +14 -8
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -83,13 +83,13 @@ interface DeliveryRegion {
|
|
|
83
83
|
*/
|
|
84
84
|
active?: boolean | null;
|
|
85
85
|
/**
|
|
86
|
-
* Delivery carriers assigned to this region. Carriers are managed using the Add Delivery Carrier, Update Delivery Carrier, and Remove Delivery Carrier methods.
|
|
86
|
+
* Delivery carriers assigned to this region. Carriers are managed using the [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier), [Update Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-carrier), and [Remove Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-carrier) methods.
|
|
87
87
|
* @maxSize 25
|
|
88
88
|
* @readonly
|
|
89
89
|
*/
|
|
90
90
|
deliveryCarriers?: DeliveryCarrier[];
|
|
91
91
|
/**
|
|
92
|
-
* Geographic destinations covered by this region. If empty, the region applies globally.
|
|
92
|
+
* Geographic destinations covered by this region. If empty, the region applies globally (Rest of World). A site can have up to 250 destinations across all delivery profiles.
|
|
93
93
|
* @maxSize 250
|
|
94
94
|
*/
|
|
95
95
|
destinations?: Destination[];
|
|
@@ -134,7 +134,11 @@ interface BackupRate {
|
|
|
134
134
|
/**
|
|
135
135
|
* Whether the backup rate is active.
|
|
136
136
|
*
|
|
137
|
-
*
|
|
137
|
+
* The backup rate is used in the following situations:
|
|
138
|
+
* + When `active` is `true`.
|
|
139
|
+
* + When the carrier does not return a cost for any reason.
|
|
140
|
+
*
|
|
141
|
+
* If active, and no cost is returned by the carrier, the backup rate will be displayed to customers as the shipping option.
|
|
138
142
|
*
|
|
139
143
|
* Default: `false`
|
|
140
144
|
*/
|
|
@@ -147,7 +151,7 @@ interface AdditionalCharge {
|
|
|
147
151
|
*/
|
|
148
152
|
description?: string | null;
|
|
149
153
|
/**
|
|
150
|
-
*
|
|
154
|
+
* Additional fixed charge amount to add to the delivery rate. For example, `"12.50"`.
|
|
151
155
|
* @maxLength 16
|
|
152
156
|
*/
|
|
153
157
|
amount?: string;
|
|
@@ -174,7 +178,7 @@ interface CreatedBy extends CreatedByIdOneOf {
|
|
|
174
178
|
*/
|
|
175
179
|
appId?: string | null;
|
|
176
180
|
/**
|
|
177
|
-
* Wix user ID, when the delivery profile was created by a Wix user.
|
|
181
|
+
* Wix user ID, when the delivery profile was created by a Wix user using the dashboard or an API call.
|
|
178
182
|
* @format GUID
|
|
179
183
|
*/
|
|
180
184
|
userId?: string | null;
|
|
@@ -187,7 +191,7 @@ interface CreatedByIdOneOf {
|
|
|
187
191
|
*/
|
|
188
192
|
appId?: string | null;
|
|
189
193
|
/**
|
|
190
|
-
* Wix user ID, when the delivery profile was created by a Wix user.
|
|
194
|
+
* Wix user ID, when the delivery profile was created by a Wix user using the dashboard or an API call.
|
|
191
195
|
* @format GUID
|
|
192
196
|
*/
|
|
193
197
|
userId?: string | null;
|
|
@@ -814,7 +818,7 @@ interface UpdateCarrierSettingsRequest {
|
|
|
814
818
|
*/
|
|
815
819
|
carrierId: string;
|
|
816
820
|
/**
|
|
817
|
-
* ID
|
|
821
|
+
* Row ID in the carrier's dashboard settings table that identifies the specific shipping configuration to update. Retrieved from [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers).
|
|
818
822
|
* @format GUID
|
|
819
823
|
*/
|
|
820
824
|
rowId: string;
|
|
@@ -830,7 +834,9 @@ interface SetDeliveryCarrierActiveStatusRequest {
|
|
|
830
834
|
*/
|
|
831
835
|
carrierAppId: string;
|
|
832
836
|
/**
|
|
833
|
-
* Row
|
|
837
|
+
* Row identifier in the carrier's dashboard settings table that identifies the specific shipping configuration to update.
|
|
838
|
+
*
|
|
839
|
+
* Pass the `row.key` field from the response of [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers).
|
|
834
840
|
* @format GUID
|
|
835
841
|
*/
|
|
836
842
|
rowId: string;
|
|
@@ -1987,7 +1993,7 @@ interface UpdateDeliveryProfile {
|
|
|
1987
1993
|
* Deletes a delivery profile.
|
|
1988
1994
|
*
|
|
1989
1995
|
*
|
|
1990
|
-
* Permanently deletes the delivery profile
|
|
1996
|
+
* Permanently deletes the delivery profile and its delivery regions and carrier configurations. Delivery regions are unique to each profile and aren't shared across profiles. This action can't be undone.
|
|
1991
1997
|
*
|
|
1992
1998
|
* The default delivery profile can't be deleted because every site requires one for core delivery functionality.
|
|
1993
1999
|
* @param deliveryProfileId - Delivery profile ID.
|
|
@@ -2008,9 +2014,7 @@ declare function deleteDeliveryProfile(deliveryProfileId: string): Promise<void>
|
|
|
2008
2014
|
* - `paging.limit` is `50`.
|
|
2009
2015
|
* - `paging.offset` is `0`.
|
|
2010
2016
|
*
|
|
2011
|
-
*
|
|
2012
|
-
*
|
|
2013
|
-
* To learn how to query delivery profiles, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
|
|
2017
|
+
* To learn how to query delivery profiles, see [API Query Language](hhttps://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language).
|
|
2014
2018
|
* @public
|
|
2015
2019
|
* @documentationMaturity preview
|
|
2016
2020
|
* @permissionId ECOM.DELIVERY_PROFILE_READ
|
|
@@ -2243,13 +2247,13 @@ interface UpdateDeliveryRegion {
|
|
|
2243
2247
|
*/
|
|
2244
2248
|
active?: boolean | null;
|
|
2245
2249
|
/**
|
|
2246
|
-
* Delivery carriers assigned to this region. Carriers are managed using the Add Delivery Carrier, Update Delivery Carrier, and Remove Delivery Carrier methods.
|
|
2250
|
+
* Delivery carriers assigned to this region. Carriers are managed using the [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier), [Update Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/update-delivery-carrier), and [Remove Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/remove-delivery-carrier) methods.
|
|
2247
2251
|
* @maxSize 25
|
|
2248
2252
|
* @readonly
|
|
2249
2253
|
*/
|
|
2250
2254
|
deliveryCarriers?: DeliveryCarrier[];
|
|
2251
2255
|
/**
|
|
2252
|
-
* Geographic destinations covered by this region. If empty, the region applies globally.
|
|
2256
|
+
* Geographic destinations covered by this region. If empty, the region applies globally (Rest of World). A site can have up to 250 destinations across all delivery profiles.
|
|
2253
2257
|
* @maxSize 250
|
|
2254
2258
|
*/
|
|
2255
2259
|
destinations?: Destination[];
|
|
@@ -2281,6 +2285,9 @@ declare function getDeliveryProfileByDeliveryRegionId(deliveryRegionId: string):
|
|
|
2281
2285
|
}>;
|
|
2282
2286
|
/**
|
|
2283
2287
|
* Removes a delivery region from a delivery profile.
|
|
2288
|
+
*
|
|
2289
|
+
*
|
|
2290
|
+
* You can remove all delivery regions from a profile, leaving the profile empty. An empty profile won't provide shipping options until a new delivery region is added.
|
|
2284
2291
|
* @public
|
|
2285
2292
|
* @documentationMaturity preview
|
|
2286
2293
|
* @requiredField identifiers
|
|
@@ -2357,6 +2364,11 @@ interface RemoveDeliveryCarrierOptions {
|
|
|
2357
2364
|
}
|
|
2358
2365
|
/**
|
|
2359
2366
|
* Updates a delivery carrier's settings in a delivery region.
|
|
2367
|
+
*
|
|
2368
|
+
*
|
|
2369
|
+
* This method updates an existing carrier's settings (such as backup rate and additional charges) using a partial update. Only the fields you provide are updated; other carrier settings remain unchanged.
|
|
2370
|
+
*
|
|
2371
|
+
* To add a new carrier to a region, use [Add Delivery Carrier](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/add-delivery-carrier).
|
|
2360
2372
|
* @param deliveryRegionId - Delivery region ID.
|
|
2361
2373
|
* @public
|
|
2362
2374
|
* @documentationMaturity preview
|
|
@@ -2401,7 +2413,7 @@ declare function getDeliveryDestinationProperties(): Promise<NonNullablePaths<Ge
|
|
|
2401
2413
|
* Retrieves delivery carrier settings for a delivery profile.
|
|
2402
2414
|
*
|
|
2403
2415
|
*
|
|
2404
|
-
* Returns detailed carrier configurations, including regional settings for each carrier. This method provides more comprehensive information than List Installed Delivery Carriers.
|
|
2416
|
+
* Returns detailed carrier configurations, including regional settings for each carrier. This method provides more comprehensive information than [List Installed Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-installed-delivery-carriers).
|
|
2405
2417
|
* @param deliveryProfileId - Delivery profile ID.
|
|
2406
2418
|
* @public
|
|
2407
2419
|
* @documentationMaturity preview
|
|
@@ -2440,7 +2452,7 @@ declare function updateCarrierSettings(carrierId: string, options: NonNullablePa
|
|
|
2440
2452
|
}>;
|
|
2441
2453
|
interface UpdateCarrierSettingsOptions {
|
|
2442
2454
|
/**
|
|
2443
|
-
* ID
|
|
2455
|
+
* Row ID in the carrier's dashboard settings table that identifies the specific shipping configuration to update. Retrieved from [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers).
|
|
2444
2456
|
* @format GUID
|
|
2445
2457
|
*/
|
|
2446
2458
|
rowId: string;
|
|
@@ -2465,7 +2477,9 @@ declare function setDeliveryCarrierActiveStatus(carrierAppId: string, options: N
|
|
|
2465
2477
|
}>;
|
|
2466
2478
|
interface SetDeliveryCarrierActiveStatusOptions {
|
|
2467
2479
|
/**
|
|
2468
|
-
* Row
|
|
2480
|
+
* Row identifier in the carrier's dashboard settings table that identifies the specific shipping configuration to update.
|
|
2481
|
+
*
|
|
2482
|
+
* Pass the `row.key` field from the response of [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers).
|
|
2469
2483
|
* @format GUID
|
|
2470
2484
|
*/
|
|
2471
2485
|
rowId: string;
|
|
@@ -2473,7 +2487,7 @@ interface SetDeliveryCarrierActiveStatusOptions {
|
|
|
2473
2487
|
active: boolean | null;
|
|
2474
2488
|
}
|
|
2475
2489
|
/**
|
|
2476
|
-
* Updates extended fields of a
|
|
2490
|
+
* Updates extended fields of a delivery profile without incrementing revision.
|
|
2477
2491
|
* @param _id - ID of the entity to update.
|
|
2478
2492
|
* @param namespace - Identifier for the app whose extended fields are being updated.
|
|
2479
2493
|
* @public
|