@wix/auto_sdk_ecom_delivery-profile 1.0.49 → 1.0.51

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.
@@ -1,7 +1,8 @@
1
- import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
1
+ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
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`;
5
6
  declare function createDeliveryProfile$1(httpClient: HttpClient): CreateDeliveryProfileSignature;
6
7
  interface CreateDeliveryProfileSignature {
7
8
  /**
@@ -11,9 +12,9 @@ interface CreateDeliveryProfileSignature {
11
12
  * @param - DeliveryProfile to be created.
12
13
  * @returns The created DeliveryProfile.
13
14
  */
14
- (deliveryProfile: DeliveryProfile): Promise<DeliveryProfile & {
15
- __applicationErrorsType?: CreateDeliveryProfileApplicationErrors | undefined;
16
- __validationErrorsType?: CreateDeliveryProfileValidationErrors | undefined;
15
+ (deliveryProfile: NonNullablePaths<DeliveryProfile, `deliveryRegions.${number}.destinations` | `deliveryRegions.${number}.destinations.${number}.countryCode` | `deliveryRegions.${number}.name` | `name`>): Promise<NonNullablePaths<DeliveryProfile, DeliveryProfileNonNullablePaths> & {
16
+ __applicationErrorsType?: CreateDeliveryProfileApplicationErrors;
17
+ __validationErrorsType?: CreateDeliveryProfileValidationErrors;
17
18
  }>;
18
19
  }
19
20
  declare function getDeliveryProfile$1(httpClient: HttpClient): GetDeliveryProfileSignature;
@@ -23,7 +24,7 @@ interface GetDeliveryProfileSignature {
23
24
  * @param - ID of the DeliveryProfile to retrieve.
24
25
  * @returns The requested DeliveryProfile.
25
26
  */
26
- (deliveryProfileId: string): Promise<DeliveryProfile>;
27
+ (deliveryProfileId: string): Promise<NonNullablePaths<DeliveryProfile, DeliveryProfileNonNullablePaths>>;
27
28
  }
28
29
  declare function updateDeliveryProfile$1(httpClient: HttpClient): UpdateDeliveryProfileSignature;
29
30
  interface UpdateDeliveryProfileSignature {
@@ -42,8 +43,8 @@ interface UpdateDeliveryProfileSignature {
42
43
  * @param - DeliveryProfile ID.
43
44
  * @returns Updated DeliveryProfile.
44
45
  */
45
- (_id: string, deliveryProfile: UpdateDeliveryProfile): Promise<DeliveryProfile & {
46
- __applicationErrorsType?: UpdateDeliveryProfileApplicationErrors | undefined;
46
+ (_id: string, deliveryProfile: NonNullablePaths<UpdateDeliveryProfile, `revision`>): Promise<NonNullablePaths<DeliveryProfile, DeliveryProfileNonNullablePaths> & {
47
+ __applicationErrorsType?: UpdateDeliveryProfileApplicationErrors;
47
48
  }>;
48
49
  }
49
50
  declare function deleteDeliveryProfile$1(httpClient: HttpClient): DeleteDeliveryProfileSignature;
@@ -77,9 +78,11 @@ interface AddDeliveryRegionSignature {
77
78
  * @param - delivery profile id to associated with the DeliveryRegion
78
79
  * @param - DeliveryRegion to be created
79
80
  */
80
- (deliveryProfileId: string, deliveryRegion: DeliveryRegion, options?: AddDeliveryRegionOptions | undefined): Promise<AddDeliveryRegionResponse & {
81
- __applicationErrorsType?: AddDeliveryRegionApplicationErrors | undefined;
82
- __validationErrorsType?: AddDeliveryRegionValidationErrors | undefined;
81
+ (deliveryProfileId: string, deliveryRegion: NonNullablePaths<DeliveryRegion, `destinations.${number}.countryCode` | `name`>, options?: AddDeliveryRegionOptions): Promise<NonNullablePaths<AddDeliveryRegionResponse, {
82
+ [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
83
+ }[DeliveryProfileNonNullablePaths]> & {
84
+ __applicationErrorsType?: AddDeliveryRegionApplicationErrors;
85
+ __validationErrorsType?: AddDeliveryRegionValidationErrors;
83
86
  }>;
84
87
  }
85
88
  declare function updateDeliveryRegion$1(httpClient: HttpClient): UpdateDeliveryRegionSignature;
@@ -91,9 +94,11 @@ interface UpdateDeliveryRegionSignature {
91
94
  * This method does not allow setting or updating the delivery delivery_carriers in this delivery_region.
92
95
  * Use AddDeliveryCarrier, UpdateDeliveryCarrier and RemoveDeliveryCarrier for these functionalities.
93
96
  */
94
- (identifiers: UpdateDeliveryRegionIdentifiers, deliveryRegion: UpdateDeliveryRegion, options?: UpdateDeliveryRegionOptions | undefined): Promise<UpdateDeliveryRegionResponse & {
95
- __applicationErrorsType?: UpdateDeliveryRegionApplicationErrors | undefined;
96
- __validationErrorsType?: UpdateDeliveryRegionValidationErrors | undefined;
97
+ (identifiers: NonNullablePaths<UpdateDeliveryRegionIdentifiers, `deliveryProfileId` | `deliveryRegionId`>, deliveryRegion: UpdateDeliveryRegion, options?: UpdateDeliveryRegionOptions): Promise<NonNullablePaths<UpdateDeliveryRegionResponse, {
98
+ [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
99
+ }[DeliveryProfileNonNullablePaths]> & {
100
+ __applicationErrorsType?: UpdateDeliveryRegionApplicationErrors;
101
+ __validationErrorsType?: UpdateDeliveryRegionValidationErrors;
97
102
  }>;
98
103
  }
99
104
  declare function getDeliveryProfileByDeliveryRegionId$1(httpClient: HttpClient): GetDeliveryProfileByDeliveryRegionIdSignature;
@@ -102,8 +107,10 @@ interface GetDeliveryProfileByDeliveryRegionIdSignature {
102
107
  * Retrieves a DeliveryProfile by delivery region ID.
103
108
  * @param - ID of the DeliveryRegion to retrieve the profile for.
104
109
  */
105
- (deliveryRegionId: string): Promise<GetDeliveryProfileByDeliveryRegionIdResponse & {
106
- __applicationErrorsType?: GetDeliveryProfileByDeliveryRegionIdApplicationErrors | undefined;
110
+ (deliveryRegionId: string): Promise<NonNullablePaths<GetDeliveryProfileByDeliveryRegionIdResponse, {
111
+ [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
112
+ }[DeliveryProfileNonNullablePaths]> & {
113
+ __applicationErrorsType?: GetDeliveryProfileByDeliveryRegionIdApplicationErrors;
107
114
  }>;
108
115
  }
109
116
  declare function removeDeliveryRegion$1(httpClient: HttpClient): RemoveDeliveryRegionSignature;
@@ -111,8 +118,10 @@ interface RemoveDeliveryRegionSignature {
111
118
  /**
112
119
  * Delete a DeliveryRegion
113
120
  */
114
- (identifiers: RemoveDeliveryRegionIdentifiers, options?: RemoveDeliveryRegionOptions | undefined): Promise<RemoveDeliveryRegionResponse & {
115
- __applicationErrorsType?: RemoveDeliveryRegionApplicationErrors | undefined;
121
+ (identifiers: NonNullablePaths<RemoveDeliveryRegionIdentifiers, `deliveryProfileId` | `deliveryRegionId`>, options?: RemoveDeliveryRegionOptions): Promise<NonNullablePaths<RemoveDeliveryRegionResponse, {
122
+ [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
123
+ }[DeliveryProfileNonNullablePaths]> & {
124
+ __applicationErrorsType?: RemoveDeliveryRegionApplicationErrors;
116
125
  }>;
117
126
  }
118
127
  declare function addDeliveryCarrier$1(httpClient: HttpClient): AddDeliveryCarrierSignature;
@@ -121,9 +130,11 @@ interface AddDeliveryCarrierSignature {
121
130
  * Add a delivery_carrier to a delivery region
122
131
  * @param - delivery_region id to associated with the delivery_carrier.
123
132
  */
124
- (deliveryRegionId: string, options: AddDeliveryCarrierOptions): Promise<AddDeliveryCarrierResponse & {
125
- __applicationErrorsType?: AddDeliveryCarrierApplicationErrors | undefined;
126
- __validationErrorsType?: AddDeliveryCarrierValidationErrors | undefined;
133
+ (deliveryRegionId: string, options: NonNullablePaths<AddDeliveryCarrierOptions, `deliveryCarrier`>): Promise<NonNullablePaths<AddDeliveryCarrierResponse, {
134
+ [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
135
+ }[DeliveryProfileNonNullablePaths]> & {
136
+ __applicationErrorsType?: AddDeliveryCarrierApplicationErrors;
137
+ __validationErrorsType?: AddDeliveryCarrierValidationErrors;
127
138
  }>;
128
139
  }
129
140
  declare function removeDeliveryCarrier$1(httpClient: HttpClient): RemoveDeliveryCarrierSignature;
@@ -132,8 +143,10 @@ interface RemoveDeliveryCarrierSignature {
132
143
  * Remove a delivery_carrier from a delivery region
133
144
  * @param - Id of the DeliveryRegion
134
145
  */
135
- (deliveryRegionId: string, options: RemoveDeliveryCarrierOptions): Promise<RemoveDeliveryCarrierResponse & {
136
- __applicationErrorsType?: RemoveDeliveryCarrierApplicationErrors | undefined;
146
+ (deliveryRegionId: string, options: NonNullablePaths<RemoveDeliveryCarrierOptions, `appId`>): Promise<NonNullablePaths<RemoveDeliveryCarrierResponse, {
147
+ [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
148
+ }[DeliveryProfileNonNullablePaths]> & {
149
+ __applicationErrorsType?: RemoveDeliveryCarrierApplicationErrors;
137
150
  }>;
138
151
  }
139
152
  declare function updateDeliveryCarrier$1(httpClient: HttpClient): UpdateDeliveryCarrierSignature;
@@ -142,8 +155,10 @@ interface UpdateDeliveryCarrierSignature {
142
155
  * Update a delivery carrier in a delivery region
143
156
  * @param - DeliveryRegion id
144
157
  */
145
- (deliveryRegionId: string, options?: UpdateDeliveryCarrierOptions | undefined): Promise<UpdateDeliveryCarrierResponse & {
146
- __applicationErrorsType?: UpdateDeliveryCarrierApplicationErrors | undefined;
158
+ (deliveryRegionId: string, options?: NonNullablePaths<UpdateDeliveryCarrierOptions, `deliveryCarrier.appId`>): Promise<NonNullablePaths<UpdateDeliveryCarrierResponse, {
159
+ [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
160
+ }[DeliveryProfileNonNullablePaths]> & {
161
+ __applicationErrorsType?: UpdateDeliveryCarrierApplicationErrors;
147
162
  }>;
148
163
  }
149
164
  declare function listDeliveryCarrierDetails$1(httpClient: HttpClient): ListDeliveryCarrierDetailsSignature;
@@ -152,12 +167,12 @@ interface ListDeliveryCarrierDetailsSignature {
152
167
  * List all installed delivery carriers in order to set their ids in delivery rules
153
168
  * @deprecated
154
169
  */
155
- (): Promise<ListDeliveryCarrierDetailsResponse>;
170
+ (): Promise<NonNullablePaths<ListDeliveryCarrierDetailsResponse, `deliveryCarrierDetails` | `deliveryCarrierDetails.${number}._id` | `deliveryCarrierDetails.${number}.displayName` | `deliveryCarrierDetails.${number}.toggleGetCarrierSettingsEnabled` | `deliveryCarrierDetails.${number}.toggleUpdateCarrierActiveStatusEnabled`>>;
156
171
  }
157
172
  declare function listInstalledDeliveryCarriers$1(httpClient: HttpClient): ListInstalledDeliveryCarriersSignature;
158
173
  interface ListInstalledDeliveryCarriersSignature {
159
174
  /** */
160
- (): Promise<ListInstalledDeliveryCarriersResponse>;
175
+ (): Promise<NonNullablePaths<ListInstalledDeliveryCarriersResponse, `installedDeliveryCarriers` | `installedDeliveryCarriers.${number}._id` | `installedDeliveryCarriers.${number}.displayName` | `installedDeliveryCarriers.${number}.toggleGetCarrierSettingsEnabled`>>;
161
176
  }
162
177
  declare function listDeliveryCarriers$1(httpClient: HttpClient): ListDeliveryCarriersSignature;
163
178
  interface ListDeliveryCarriersSignature {
@@ -166,8 +181,8 @@ interface ListDeliveryCarriersSignature {
166
181
  * These are returned in a table format for the dashboard.
167
182
  * @param - Delivery profile id.
168
183
  */
169
- (deliveryProfileId: string, options?: ListDeliveryCarriersOptions | undefined): Promise<ListDeliveryCarriersResponse & {
170
- __applicationErrorsType?: ListDeliveryCarriersApplicationErrors | undefined;
184
+ (deliveryProfileId: string, options?: ListDeliveryCarriersOptions): Promise<NonNullablePaths<ListDeliveryCarriersResponse, `results` | `results.${number}.deliveryCarrierMetadata.success` | `results.${number}.deliveryCarrierMetadata.error.code` | `results.${number}.deliveryCarrierMetadata.error.description` | `results.${number}.deliveryCarrierDetails._id` | `results.${number}.deliveryCarrierDetails.displayName` | `results.${number}.deliveryCarrierDetails.toggleGetCarrierSettingsEnabled` | `results.${number}.deliveryCarrierDetails.toggleUpdateCarrierActiveStatusEnabled` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`> & {
185
+ __applicationErrorsType?: ListDeliveryCarriersApplicationErrors;
171
186
  }>;
172
187
  }
173
188
  declare function updateCarrierSettings$1(httpClient: HttpClient): UpdateCarrierSettingsSignature;
@@ -176,8 +191,8 @@ interface UpdateCarrierSettingsSignature {
176
191
  * Update carrier's external active settings
177
192
  * @param - Carrier id.
178
193
  */
179
- (carrierId: string, options: UpdateCarrierSettingsOptions): Promise<void & {
180
- __applicationErrorsType?: UpdateCarrierSettingsApplicationErrors | undefined;
194
+ (carrierId: string, options: NonNullablePaths<UpdateCarrierSettingsOptions, `active` | `rowId`>): Promise<void & {
195
+ __applicationErrorsType?: UpdateCarrierSettingsApplicationErrors;
181
196
  }>;
182
197
  }
183
198
  declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
@@ -187,7 +202,9 @@ interface UpdateExtendedFieldsSignature {
187
202
  * @param - ID of the entity to update.
188
203
  * @param - Identifier for the app whose extended fields are being updated.
189
204
  */
190
- (_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
205
+ (_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, {
206
+ [P in DeliveryProfileNonNullablePaths]: `deliveryProfile.${P}`;
207
+ }[DeliveryProfileNonNullablePaths]>>;
191
208
  }
192
209
 
193
210
  declare const createDeliveryProfile: MaybeContext<BuildRESTFunction<typeof createDeliveryProfile$1> & typeof createDeliveryProfile$1>;