@wix/auto_sdk_ecom_delivery-profile 1.0.75 → 1.0.76

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 (37) hide show
  1. package/build/cjs/index.d.ts +11 -3
  2. package/build/cjs/index.js +55 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +51 -1
  5. package/build/cjs/index.typings.js +48 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +44 -2
  8. package/build/cjs/meta.js +43 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +11 -3
  11. package/build/es/index.mjs +54 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +51 -1
  14. package/build/es/index.typings.mjs +47 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +44 -2
  17. package/build/es/meta.mjs +42 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +11 -3
  20. package/build/internal/cjs/index.js +55 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +51 -1
  23. package/build/internal/cjs/index.typings.js +48 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +44 -2
  26. package/build/internal/cjs/meta.js +43 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +11 -3
  29. package/build/internal/es/index.mjs +54 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +51 -1
  32. package/build/internal/es/index.typings.mjs +47 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +44 -2
  35. package/build/internal/es/meta.mjs +42 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
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, ListInstalledDeliveryCarriersResponse, ListDeliveryCarriersOptions, ListDeliveryCarriersResponse, ListDeliveryCarriersApplicationErrors, UpdateCarrierSettingsOptions, UpdateCarrierSettingsApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse } from './index.typings.mjs';
3
- export { ActionEvent, AddDeliveryCarrierRequest, AddDeliveryRegionRequest, AdditionalCharge, ApplicationError, Asset, BackupRate, BulkActionMetadata, ChargeType, ChargeTypeWithLiterals, Column, CreateDeliveryProfileRequest, CreateDeliveryProfileResponse, CreatedBy, CreatedByIdOneOf, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DashboardTable, DeleteContext, DeleteDefaultDeliveryProfileRequest, DeleteDefaultDeliveryProfileResponse, DeleteDeliveryProfileRequest, DeleteDeliveryProfileResponse, DeleteStatus, DeleteStatusWithLiterals, DeliveryCarrier, DeliveryCarrierDetails, DeliveryCarrierRegionalSettings, DeliveryProfilesQueryResult, DeliveryRegionAdded, DeliveryRegionRemoved, DeliveryRegionUpdated, Destination, DestinationScope, DestinationScopeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetDeliveryProfileByDeliveryRegionIdRequest, GetDeliveryProfileRequest, GetDeliveryProfileResponse, IdentificationData, IdentificationDataIdOneOf, InstalledDeliveryCarrier, ItemMetadata, ListDeliveryCarriersRequest, ListDeliveryCarriersResult, ListDeliveryDestinationsRequest, ListDeliveryDestinationsResponse, ListInstalledDeliveryCarriersRequest, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, PicassoAssigned, PicassoUnassigned, QueryDeliveryProfilesRequest, QueryDeliveryProfilesResponse, RemoveDeliveryCarrierRequest, RemoveDeliveryRegionRequest, RequiredZipcodeRequest, RequiredZipcodeResponse, RestoreInfo, Row, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, UpdateCarrierSettingsRequest, UpdateCarrierSettingsResponse, UpdateDeliveryCarrierRequest, UpdateDeliveryProfileRequest, UpdateDeliveryProfileResponse, UpdateDeliveryRegionRequest, UpdateExtendedFieldsRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.mjs';
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, ListInstalledDeliveryCarriersResponse, GetDeliveryDestinationPropertiesResponse, ListDeliveryCarriersOptions, ListDeliveryCarriersResponse, ListDeliveryCarriersApplicationErrors, UpdateCarrierSettingsOptions, UpdateCarrierSettingsApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse } from './index.typings.mjs';
3
+ export { ActionEvent, AddDeliveryCarrierRequest, AddDeliveryRegionRequest, AdditionalCharge, ApplicationError, Asset, BackupRate, BulkActionMetadata, ChargeType, ChargeTypeWithLiterals, Column, CountryDeliveryProperties, CreateDeliveryProfileRequest, CreateDeliveryProfileResponse, CreatedBy, CreatedByIdOneOf, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DashboardTable, DeleteContext, DeleteDefaultDeliveryProfileRequest, DeleteDefaultDeliveryProfileResponse, DeleteDeliveryProfileRequest, DeleteDeliveryProfileResponse, DeleteStatus, DeleteStatusWithLiterals, DeliveryCarrier, DeliveryCarrierDetails, DeliveryCarrierRegionalSettings, DeliveryDestinationProperties, DeliveryProfilesQueryResult, DeliveryRegionAdded, DeliveryRegionRemoved, DeliveryRegionUpdated, Destination, DestinationScope, DestinationScopeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetDeliveryDestinationPropertiesRequest, GetDeliveryProfileByDeliveryRegionIdRequest, GetDeliveryProfileRequest, GetDeliveryProfileResponse, IdentificationData, IdentificationDataIdOneOf, InstalledDeliveryCarrier, ItemMetadata, ListDeliveryCarriersRequest, ListDeliveryCarriersResult, ListDeliveryDestinationsRequest, ListDeliveryDestinationsResponse, ListInstalledDeliveryCarriersRequest, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, PicassoAssigned, PicassoUnassigned, QueryDeliveryProfilesRequest, QueryDeliveryProfilesResponse, RemoveDeliveryCarrierRequest, RemoveDeliveryRegionRequest, RequiredZipcodeRequest, RequiredZipcodeResponse, RestoreInfo, Row, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, SubdivisionDeliveryProperties, UpdateCarrierSettingsRequest, UpdateCarrierSettingsResponse, UpdateDeliveryCarrierRequest, UpdateDeliveryProfileRequest, UpdateDeliveryProfileResponse, UpdateDeliveryRegionRequest, UpdateExtendedFieldsRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.mjs';
4
4
 
5
5
  declare function createDeliveryProfile$1(httpClient: HttpClient): CreateDeliveryProfileSignature;
6
6
  interface CreateDeliveryProfileSignature {
@@ -153,6 +153,13 @@ interface ListInstalledDeliveryCarriersSignature {
153
153
  */
154
154
  (): Promise<NonNullablePaths<ListInstalledDeliveryCarriersResponse, `installedDeliveryCarriers` | `installedDeliveryCarriers.${number}._id` | `installedDeliveryCarriers.${number}.displayName` | `installedDeliveryCarriers.${number}.toggleGetCarrierSettingsEnabled`, 4>>;
155
155
  }
156
+ declare function getDeliveryDestinationProperties$1(httpClient: HttpClient): GetDeliveryDestinationPropertiesSignature;
157
+ interface GetDeliveryDestinationPropertiesSignature {
158
+ /**
159
+ * Retrieves delivery destination properties by ROW, and aggregated country and subdivision
160
+ */
161
+ (): Promise<NonNullablePaths<GetDeliveryDestinationPropertiesResponse, `restOfWorld.postalCodeRequired` | `restOfWorld.pickupOnly` | `countries` | `countries.${number}.country` | `countries.${number}.deliveryDestinationProperties.postalCodeRequired` | `countries.${number}.deliveryDestinationProperties.pickupOnly`, 5>>;
162
+ }
156
163
  declare function listDeliveryCarriers$1(httpClient: HttpClient): ListDeliveryCarriersSignature;
157
164
  interface ListDeliveryCarriersSignature {
158
165
  /**
@@ -197,8 +204,9 @@ declare const addDeliveryCarrier: MaybeContext<BuildRESTFunction<typeof addDeliv
197
204
  declare const removeDeliveryCarrier: MaybeContext<BuildRESTFunction<typeof removeDeliveryCarrier$1> & typeof removeDeliveryCarrier$1>;
198
205
  declare const updateDeliveryCarrier: MaybeContext<BuildRESTFunction<typeof updateDeliveryCarrier$1> & typeof updateDeliveryCarrier$1>;
199
206
  declare const listInstalledDeliveryCarriers: MaybeContext<BuildRESTFunction<typeof listInstalledDeliveryCarriers$1> & typeof listInstalledDeliveryCarriers$1>;
207
+ declare const getDeliveryDestinationProperties: MaybeContext<BuildRESTFunction<typeof getDeliveryDestinationProperties$1> & typeof getDeliveryDestinationProperties$1>;
200
208
  declare const listDeliveryCarriers: MaybeContext<BuildRESTFunction<typeof listDeliveryCarriers$1> & typeof listDeliveryCarriers$1>;
201
209
  declare const updateCarrierSettings: MaybeContext<BuildRESTFunction<typeof updateCarrierSettings$1> & typeof updateCarrierSettings$1>;
202
210
  declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
203
211
 
204
- export { AddDeliveryCarrierApplicationErrors, AddDeliveryCarrierOptions, AddDeliveryCarrierResponse, AddDeliveryCarrierValidationErrors, AddDeliveryRegionApplicationErrors, AddDeliveryRegionOptions, AddDeliveryRegionResponse, AddDeliveryRegionValidationErrors, CreateDeliveryProfileApplicationErrors, CreateDeliveryProfileValidationErrors, DeliveryProfile, DeliveryProfilesQueryBuilder, DeliveryRegion, GetDeliveryProfileByDeliveryRegionIdApplicationErrors, GetDeliveryProfileByDeliveryRegionIdResponse, ListDeliveryCarriersApplicationErrors, ListDeliveryCarriersOptions, ListDeliveryCarriersResponse, ListInstalledDeliveryCarriersResponse, RemoveDeliveryCarrierApplicationErrors, RemoveDeliveryCarrierOptions, RemoveDeliveryCarrierResponse, RemoveDeliveryRegionApplicationErrors, RemoveDeliveryRegionIdentifiers, RemoveDeliveryRegionOptions, RemoveDeliveryRegionResponse, UpdateCarrierSettingsApplicationErrors, UpdateCarrierSettingsOptions, UpdateDeliveryCarrierApplicationErrors, UpdateDeliveryCarrierOptions, UpdateDeliveryCarrierResponse, UpdateDeliveryProfile, UpdateDeliveryProfileApplicationErrors, UpdateDeliveryRegion, UpdateDeliveryRegionApplicationErrors, UpdateDeliveryRegionIdentifiers, UpdateDeliveryRegionOptions, UpdateDeliveryRegionResponse, UpdateDeliveryRegionValidationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, addDeliveryCarrier, addDeliveryRegion, createDeliveryProfile, deleteDeliveryProfile, getDeliveryProfile, getDeliveryProfileByDeliveryRegionId, listDeliveryCarriers, listInstalledDeliveryCarriers, queryDeliveryProfiles, removeDeliveryCarrier, removeDeliveryRegion, updateCarrierSettings, updateDeliveryCarrier, updateDeliveryProfile, updateDeliveryRegion, updateExtendedFields };
212
+ export { AddDeliveryCarrierApplicationErrors, AddDeliveryCarrierOptions, AddDeliveryCarrierResponse, AddDeliveryCarrierValidationErrors, AddDeliveryRegionApplicationErrors, AddDeliveryRegionOptions, AddDeliveryRegionResponse, AddDeliveryRegionValidationErrors, CreateDeliveryProfileApplicationErrors, CreateDeliveryProfileValidationErrors, DeliveryProfile, DeliveryProfilesQueryBuilder, DeliveryRegion, GetDeliveryDestinationPropertiesResponse, GetDeliveryProfileByDeliveryRegionIdApplicationErrors, GetDeliveryProfileByDeliveryRegionIdResponse, ListDeliveryCarriersApplicationErrors, ListDeliveryCarriersOptions, ListDeliveryCarriersResponse, ListInstalledDeliveryCarriersResponse, RemoveDeliveryCarrierApplicationErrors, RemoveDeliveryCarrierOptions, RemoveDeliveryCarrierResponse, RemoveDeliveryRegionApplicationErrors, RemoveDeliveryRegionIdentifiers, RemoveDeliveryRegionOptions, RemoveDeliveryRegionResponse, UpdateCarrierSettingsApplicationErrors, UpdateCarrierSettingsOptions, UpdateDeliveryCarrierApplicationErrors, UpdateDeliveryCarrierOptions, UpdateDeliveryCarrierResponse, UpdateDeliveryProfile, UpdateDeliveryProfileApplicationErrors, UpdateDeliveryRegion, UpdateDeliveryRegionApplicationErrors, UpdateDeliveryRegionIdentifiers, UpdateDeliveryRegionOptions, UpdateDeliveryRegionResponse, UpdateDeliveryRegionValidationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, addDeliveryCarrier, addDeliveryRegion, createDeliveryProfile, deleteDeliveryProfile, getDeliveryDestinationProperties, getDeliveryProfile, getDeliveryProfileByDeliveryRegionId, listDeliveryCarriers, listInstalledDeliveryCarriers, queryDeliveryProfiles, removeDeliveryCarrier, removeDeliveryRegion, updateCarrierSettings, updateDeliveryCarrier, updateDeliveryProfile, updateDeliveryRegion, updateExtendedFields };
@@ -501,6 +501,27 @@ function listInstalledDeliveryCarriers(payload) {
501
501
  }
502
502
  return __listInstalledDeliveryCarriers;
503
503
  }
504
+ function getDeliveryDestinationProperties(payload) {
505
+ function __getDeliveryDestinationProperties({ host }) {
506
+ const metadata = {
507
+ entityFqdn: "wix.ecom.v1.delivery_profile",
508
+ method: "GET",
509
+ methodFqn: "wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryDestinationProperties",
510
+ packageName: PACKAGE_NAME,
511
+ migrationOptions: {
512
+ optInTransformResponse: true
513
+ },
514
+ url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
515
+ protoPath: "/v1/delivery-profiles/delivery-destination-properties",
516
+ data: payload,
517
+ host
518
+ }),
519
+ params: toURLSearchParams(payload)
520
+ };
521
+ return metadata;
522
+ }
523
+ return __getDeliveryDestinationProperties;
524
+ }
504
525
  function listDeliveryCarriers(payload) {
505
526
  function __listDeliveryCarriers({ host }) {
506
527
  const metadata = {
@@ -1033,6 +1054,31 @@ async function listInstalledDeliveryCarriers2() {
1033
1054
  throw transformedError;
1034
1055
  }
1035
1056
  }
1057
+ async function getDeliveryDestinationProperties2() {
1058
+ const { httpClient, sideEffects } = arguments[0];
1059
+ const payload = renameKeysFromSDKRequestToRESTRequest({});
1060
+ const reqOpts = getDeliveryDestinationProperties(
1061
+ payload
1062
+ );
1063
+ sideEffects?.onSiteCall?.();
1064
+ try {
1065
+ const result = await httpClient.request(reqOpts);
1066
+ sideEffects?.onSuccess?.(result);
1067
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1068
+ } catch (err) {
1069
+ const transformedError = sdkTransformError(
1070
+ err,
1071
+ {
1072
+ spreadPathsToArguments: {},
1073
+ explicitPathsToArguments: {},
1074
+ singleArgumentUnchanged: false
1075
+ },
1076
+ []
1077
+ );
1078
+ sideEffects?.onError?.(err);
1079
+ throw transformedError;
1080
+ }
1081
+ }
1036
1082
  async function listDeliveryCarriers2(deliveryProfileId, options) {
1037
1083
  const { httpClient, sideEffects } = arguments[2];
1038
1084
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -1224,6 +1270,12 @@ function listInstalledDeliveryCarriers3(httpClient) {
1224
1270
  { httpClient }
1225
1271
  );
1226
1272
  }
1273
+ function getDeliveryDestinationProperties3(httpClient) {
1274
+ return () => getDeliveryDestinationProperties2(
1275
+ // @ts-ignore
1276
+ { httpClient }
1277
+ );
1278
+ }
1227
1279
  function listDeliveryCarriers3(httpClient) {
1228
1280
  return (deliveryProfileId, options) => listDeliveryCarriers2(
1229
1281
  deliveryProfileId,
@@ -1265,6 +1317,7 @@ var addDeliveryCarrier4 = /* @__PURE__ */ createRESTModule(addDeliveryCarrier3);
1265
1317
  var removeDeliveryCarrier4 = /* @__PURE__ */ createRESTModule(removeDeliveryCarrier3);
1266
1318
  var updateDeliveryCarrier4 = /* @__PURE__ */ createRESTModule(updateDeliveryCarrier3);
1267
1319
  var listInstalledDeliveryCarriers4 = /* @__PURE__ */ createRESTModule(listInstalledDeliveryCarriers3);
1320
+ var getDeliveryDestinationProperties4 = /* @__PURE__ */ createRESTModule(getDeliveryDestinationProperties3);
1268
1321
  var listDeliveryCarriers4 = /* @__PURE__ */ createRESTModule(listDeliveryCarriers3);
1269
1322
  var updateCarrierSettings4 = /* @__PURE__ */ createRESTModule(updateCarrierSettings3);
1270
1323
  var updateExtendedFields4 = /* @__PURE__ */ createRESTModule(updateExtendedFields3);
@@ -1281,6 +1334,7 @@ export {
1281
1334
  addDeliveryRegion4 as addDeliveryRegion,
1282
1335
  createDeliveryProfile4 as createDeliveryProfile,
1283
1336
  deleteDeliveryProfile4 as deleteDeliveryProfile,
1337
+ getDeliveryDestinationProperties4 as getDeliveryDestinationProperties,
1284
1338
  getDeliveryProfile4 as getDeliveryProfile,
1285
1339
  getDeliveryProfileByDeliveryRegionId4 as getDeliveryProfileByDeliveryRegionId,
1286
1340
  listDeliveryCarriers4 as listDeliveryCarriers,