@wix/auto_sdk_ecom_delivery-profile 1.0.51 → 1.0.52
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 -28
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +22 -51
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +11 -28
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +22 -51
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -28
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +22 -51
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -28
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +22 -51
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@
|
|
|
2
2
|
import { DeliveryProfile, CreateDeliveryProfileApplicationErrors, CreateDeliveryProfileValidationErrors, UpdateDeliveryProfile, UpdateDeliveryProfileApplicationErrors, DeliveryProfilesQueryBuilder, DeliveryRegion, AddDeliveryRegionOptions, AddDeliveryRegionResponse, AddDeliveryRegionApplicationErrors, AddDeliveryRegionValidationErrors, UpdateDeliveryRegionIdentifiers, UpdateDeliveryRegion, UpdateDeliveryRegionOptions, UpdateDeliveryRegionResponse, UpdateDeliveryRegionApplicationErrors, UpdateDeliveryRegionValidationErrors, GetDeliveryProfileByDeliveryRegionIdResponse, GetDeliveryProfileByDeliveryRegionIdApplicationErrors, RemoveDeliveryRegionIdentifiers, RemoveDeliveryRegionOptions, RemoveDeliveryRegionResponse, RemoveDeliveryRegionApplicationErrors, AddDeliveryCarrierOptions, AddDeliveryCarrierResponse, AddDeliveryCarrierApplicationErrors, AddDeliveryCarrierValidationErrors, RemoveDeliveryCarrierOptions, RemoveDeliveryCarrierResponse, RemoveDeliveryCarrierApplicationErrors, UpdateDeliveryCarrierOptions, UpdateDeliveryCarrierResponse, UpdateDeliveryCarrierApplicationErrors, ListDeliveryCarrierDetailsResponse, ListInstalledDeliveryCarriersResponse, ListDeliveryCarriersOptions, ListDeliveryCarriersResponse, ListDeliveryCarriersApplicationErrors, UpdateCarrierSettingsOptions, UpdateCarrierSettingsApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse } from './index.typings.js';
|
|
3
3
|
export { ActionEvent, AddDeliveryCarrierRequest, AddDeliveryRegionRequest, AdditionalCharge, ApplicationError, Asset, BackupRate, BulkActionMetadata, ChargeType, Column, CreateDeliveryProfileRequest, CreateDeliveryProfileResponse, CreatedBy, CreatedByIdOneOf, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DashboardTable, DeleteContext, DeleteDefaultDeliveryProfileRequest, DeleteDefaultDeliveryProfileResponse, DeleteDeliveryProfileRequest, DeleteDeliveryProfileResponse, DeleteStatus, DeliveryCarrier, DeliveryCarrierDetails, DeliveryCarrierRegionalSettings, DeliveryProfilesQueryResult, DeliveryRegionAdded, DeliveryRegionRemoved, DeliveryRegionUpdated, Destination, DestinationScope, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetDeliveryProfileByDeliveryRegionIdRequest, GetDeliveryProfileRequest, GetDeliveryProfileResponse, IdentificationData, IdentificationDataIdOneOf, InstalledDeliveryCarrier, ItemMetadata, ListDeliveryCarrierDetailsRequest, ListDeliveryCarriersRequest, ListDeliveryCarriersResult, ListDeliveryDestinationsRequest, ListDeliveryDestinationsResponse, ListInstalledDeliveryCarriersRequest, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, OdeditorAssigned, OdeditorUnassigned, PicassoAssigned, PicassoUnassigned, QueryDeliveryProfilesRequest, QueryDeliveryProfilesResponse, RemoveDeliveryCarrierRequest, RemoveDeliveryRegionRequest, RequiredZipcodeRequest, RequiredZipcodeResponse, RestoreInfo, Row, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, Sorting, State, StudioAssigned, StudioUnassigned, UpdateCarrierSettingsRequest, UpdateCarrierSettingsResponse, UpdateDeliveryCarrierRequest, UpdateDeliveryProfileRequest, UpdateDeliveryProfileResponse, UpdateDeliveryRegionRequest, UpdateExtendedFieldsRequest, WebhookIdentityType } from './index.typings.js';
|
|
4
4
|
|
|
5
|
-
type DeliveryProfileNonNullablePaths = `deliveryRegions`;
|
|
6
5
|
declare function createDeliveryProfile$1(httpClient: HttpClient): CreateDeliveryProfileSignature;
|
|
7
6
|
interface CreateDeliveryProfileSignature {
|
|
8
7
|
/**
|
|
@@ -12,7 +11,7 @@ interface CreateDeliveryProfileSignature {
|
|
|
12
11
|
* @param - DeliveryProfile to be created.
|
|
13
12
|
* @returns The created DeliveryProfile.
|
|
14
13
|
*/
|
|
15
|
-
(deliveryProfile: NonNullablePaths<DeliveryProfile, `deliveryRegions.${number}.destinations` | `deliveryRegions.${number}.destinations.${number}.countryCode` | `deliveryRegions.${number}.name` | `name`>): Promise<NonNullablePaths<DeliveryProfile,
|
|
14
|
+
(deliveryProfile: NonNullablePaths<DeliveryProfile, `deliveryRegions.${number}.destinations` | `deliveryRegions.${number}.destinations.${number}.countryCode` | `deliveryRegions.${number}.name` | `name`>): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`> & {
|
|
16
15
|
__applicationErrorsType?: CreateDeliveryProfileApplicationErrors;
|
|
17
16
|
__validationErrorsType?: CreateDeliveryProfileValidationErrors;
|
|
18
17
|
}>;
|
|
@@ -24,7 +23,7 @@ interface GetDeliveryProfileSignature {
|
|
|
24
23
|
* @param - ID of the DeliveryProfile to retrieve.
|
|
25
24
|
* @returns The requested DeliveryProfile.
|
|
26
25
|
*/
|
|
27
|
-
(deliveryProfileId: string): Promise<NonNullablePaths<DeliveryProfile,
|
|
26
|
+
(deliveryProfileId: string): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`>>;
|
|
28
27
|
}
|
|
29
28
|
declare function updateDeliveryProfile$1(httpClient: HttpClient): UpdateDeliveryProfileSignature;
|
|
30
29
|
interface UpdateDeliveryProfileSignature {
|
|
@@ -43,7 +42,7 @@ interface UpdateDeliveryProfileSignature {
|
|
|
43
42
|
* @param - DeliveryProfile ID.
|
|
44
43
|
* @returns Updated DeliveryProfile.
|
|
45
44
|
*/
|
|
46
|
-
(_id: string, deliveryProfile: NonNullablePaths<UpdateDeliveryProfile, `revision`>): Promise<NonNullablePaths<DeliveryProfile,
|
|
45
|
+
(_id: string, deliveryProfile: NonNullablePaths<UpdateDeliveryProfile, `revision`>): Promise<NonNullablePaths<DeliveryProfile, `deliveryRegions`> & {
|
|
47
46
|
__applicationErrorsType?: UpdateDeliveryProfileApplicationErrors;
|
|
48
47
|
}>;
|
|
49
48
|
}
|
|
@@ -78,9 +77,7 @@ interface AddDeliveryRegionSignature {
|
|
|
78
77
|
* @param - delivery profile id to associated with the DeliveryRegion
|
|
79
78
|
* @param - DeliveryRegion to be created
|
|
80
79
|
*/
|
|
81
|
-
(deliveryProfileId: string, deliveryRegion: NonNullablePaths<DeliveryRegion, `destinations.${number}.countryCode` | `name`>, options?: AddDeliveryRegionOptions): Promise<NonNullablePaths<AddDeliveryRegionResponse, {
|
|
82
|
-
[P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
|
|
83
|
-
}[DeliveryProfileNonNullablePaths]> & {
|
|
80
|
+
(deliveryProfileId: string, deliveryRegion: NonNullablePaths<DeliveryRegion, `destinations.${number}.countryCode` | `name`>, options?: AddDeliveryRegionOptions): Promise<NonNullablePaths<AddDeliveryRegionResponse, `deliveryProfile.deliveryRegions`> & {
|
|
84
81
|
__applicationErrorsType?: AddDeliveryRegionApplicationErrors;
|
|
85
82
|
__validationErrorsType?: AddDeliveryRegionValidationErrors;
|
|
86
83
|
}>;
|
|
@@ -94,9 +91,7 @@ interface UpdateDeliveryRegionSignature {
|
|
|
94
91
|
* This method does not allow setting or updating the delivery delivery_carriers in this delivery_region.
|
|
95
92
|
* Use AddDeliveryCarrier, UpdateDeliveryCarrier and RemoveDeliveryCarrier for these functionalities.
|
|
96
93
|
*/
|
|
97
|
-
(identifiers: NonNullablePaths<UpdateDeliveryRegionIdentifiers, `deliveryProfileId` | `deliveryRegionId`>, deliveryRegion: UpdateDeliveryRegion, options?: UpdateDeliveryRegionOptions): Promise<NonNullablePaths<UpdateDeliveryRegionResponse, {
|
|
98
|
-
[P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
|
|
99
|
-
}[DeliveryProfileNonNullablePaths]> & {
|
|
94
|
+
(identifiers: NonNullablePaths<UpdateDeliveryRegionIdentifiers, `deliveryProfileId` | `deliveryRegionId`>, deliveryRegion: UpdateDeliveryRegion, options?: UpdateDeliveryRegionOptions): Promise<NonNullablePaths<UpdateDeliveryRegionResponse, `deliveryProfile.deliveryRegions`> & {
|
|
100
95
|
__applicationErrorsType?: UpdateDeliveryRegionApplicationErrors;
|
|
101
96
|
__validationErrorsType?: UpdateDeliveryRegionValidationErrors;
|
|
102
97
|
}>;
|
|
@@ -107,9 +102,7 @@ interface GetDeliveryProfileByDeliveryRegionIdSignature {
|
|
|
107
102
|
* Retrieves a DeliveryProfile by delivery region ID.
|
|
108
103
|
* @param - ID of the DeliveryRegion to retrieve the profile for.
|
|
109
104
|
*/
|
|
110
|
-
(deliveryRegionId: string): Promise<NonNullablePaths<GetDeliveryProfileByDeliveryRegionIdResponse, {
|
|
111
|
-
[P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
|
|
112
|
-
}[DeliveryProfileNonNullablePaths]> & {
|
|
105
|
+
(deliveryRegionId: string): Promise<NonNullablePaths<GetDeliveryProfileByDeliveryRegionIdResponse, `deliveryProfile.deliveryRegions`> & {
|
|
113
106
|
__applicationErrorsType?: GetDeliveryProfileByDeliveryRegionIdApplicationErrors;
|
|
114
107
|
}>;
|
|
115
108
|
}
|
|
@@ -118,9 +111,7 @@ interface RemoveDeliveryRegionSignature {
|
|
|
118
111
|
/**
|
|
119
112
|
* Delete a DeliveryRegion
|
|
120
113
|
*/
|
|
121
|
-
(identifiers: NonNullablePaths<RemoveDeliveryRegionIdentifiers, `deliveryProfileId` | `deliveryRegionId`>, options?: RemoveDeliveryRegionOptions): Promise<NonNullablePaths<RemoveDeliveryRegionResponse, {
|
|
122
|
-
[P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
|
|
123
|
-
}[DeliveryProfileNonNullablePaths]> & {
|
|
114
|
+
(identifiers: NonNullablePaths<RemoveDeliveryRegionIdentifiers, `deliveryProfileId` | `deliveryRegionId`>, options?: RemoveDeliveryRegionOptions): Promise<NonNullablePaths<RemoveDeliveryRegionResponse, `deliveryProfile.deliveryRegions`> & {
|
|
124
115
|
__applicationErrorsType?: RemoveDeliveryRegionApplicationErrors;
|
|
125
116
|
}>;
|
|
126
117
|
}
|
|
@@ -130,9 +121,7 @@ interface AddDeliveryCarrierSignature {
|
|
|
130
121
|
* Add a delivery_carrier to a delivery region
|
|
131
122
|
* @param - delivery_region id to associated with the delivery_carrier.
|
|
132
123
|
*/
|
|
133
|
-
(deliveryRegionId: string, options: NonNullablePaths<AddDeliveryCarrierOptions, `deliveryCarrier`>): Promise<NonNullablePaths<AddDeliveryCarrierResponse, {
|
|
134
|
-
[P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
|
|
135
|
-
}[DeliveryProfileNonNullablePaths]> & {
|
|
124
|
+
(deliveryRegionId: string, options: NonNullablePaths<AddDeliveryCarrierOptions, `deliveryCarrier`>): Promise<NonNullablePaths<AddDeliveryCarrierResponse, `deliveryProfile.deliveryRegions`> & {
|
|
136
125
|
__applicationErrorsType?: AddDeliveryCarrierApplicationErrors;
|
|
137
126
|
__validationErrorsType?: AddDeliveryCarrierValidationErrors;
|
|
138
127
|
}>;
|
|
@@ -143,9 +132,7 @@ interface RemoveDeliveryCarrierSignature {
|
|
|
143
132
|
* Remove a delivery_carrier from a delivery region
|
|
144
133
|
* @param - Id of the DeliveryRegion
|
|
145
134
|
*/
|
|
146
|
-
(deliveryRegionId: string, options: NonNullablePaths<RemoveDeliveryCarrierOptions, `appId`>): Promise<NonNullablePaths<RemoveDeliveryCarrierResponse, {
|
|
147
|
-
[P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
|
|
148
|
-
}[DeliveryProfileNonNullablePaths]> & {
|
|
135
|
+
(deliveryRegionId: string, options: NonNullablePaths<RemoveDeliveryCarrierOptions, `appId`>): Promise<NonNullablePaths<RemoveDeliveryCarrierResponse, `deliveryProfile.deliveryRegions`> & {
|
|
149
136
|
__applicationErrorsType?: RemoveDeliveryCarrierApplicationErrors;
|
|
150
137
|
}>;
|
|
151
138
|
}
|
|
@@ -155,9 +142,7 @@ interface UpdateDeliveryCarrierSignature {
|
|
|
155
142
|
* Update a delivery carrier in a delivery region
|
|
156
143
|
* @param - DeliveryRegion id
|
|
157
144
|
*/
|
|
158
|
-
(deliveryRegionId: string, options?: NonNullablePaths<UpdateDeliveryCarrierOptions, `deliveryCarrier.appId`>): Promise<NonNullablePaths<UpdateDeliveryCarrierResponse, {
|
|
159
|
-
[P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
|
|
160
|
-
}[DeliveryProfileNonNullablePaths]> & {
|
|
145
|
+
(deliveryRegionId: string, options?: NonNullablePaths<UpdateDeliveryCarrierOptions, `deliveryCarrier.appId`>): Promise<NonNullablePaths<UpdateDeliveryCarrierResponse, `deliveryProfile.deliveryRegions`> & {
|
|
161
146
|
__applicationErrorsType?: UpdateDeliveryCarrierApplicationErrors;
|
|
162
147
|
}>;
|
|
163
148
|
}
|
|
@@ -202,9 +187,7 @@ interface UpdateExtendedFieldsSignature {
|
|
|
202
187
|
* @param - ID of the entity to update.
|
|
203
188
|
* @param - Identifier for the app whose extended fields are being updated.
|
|
204
189
|
*/
|
|
205
|
-
(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse,
|
|
206
|
-
[P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
|
|
207
|
-
}[DeliveryProfileNonNullablePaths]>>;
|
|
190
|
+
(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `deliveryProfile.deliveryRegions`>>;
|
|
208
191
|
}
|
|
209
192
|
|
|
210
193
|
declare const createDeliveryProfile: MaybeContext<BuildRESTFunction<typeof createDeliveryProfile$1> & typeof createDeliveryProfile$1>;
|