@wix/auto_sdk_ecom_delivery-profile 1.0.74 → 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 +65 -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 +58 -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 +65 -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 +58 -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 +65 -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 +58 -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 +65 -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 +58 -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
@@ -620,6 +620,47 @@ interface RequiredZipcodeResponse {
620
620
  /** If the site requires a zipcode for delivery */
621
621
  requiredZipcode?: boolean;
622
622
  }
623
+ interface GetDeliveryDestinationPropertiesRequest {
624
+ }
625
+ interface GetDeliveryDestinationPropertiesResponse {
626
+ /** Delivery destination properties for Rest Of World */
627
+ restOfWorld?: DeliveryDestinationProperties;
628
+ /**
629
+ * List of countries and subdivisions and their delivery destination properties
630
+ * @maxSize 195
631
+ */
632
+ countries?: CountryDeliveryProperties[];
633
+ }
634
+ interface DeliveryDestinationProperties {
635
+ /** True if postal code is required for delivery in this destination */
636
+ postalCodeRequired?: boolean;
637
+ /** True if only pickup is available in this destination */
638
+ pickupOnly?: boolean;
639
+ }
640
+ interface CountryDeliveryProperties {
641
+ /**
642
+ * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
643
+ * @format COUNTRY
644
+ */
645
+ country?: string;
646
+ /** Delivery destination properties for country */
647
+ deliveryDestinationProperties?: DeliveryDestinationProperties;
648
+ /**
649
+ * List of subdivisions and their delivery destination properties
650
+ * @maxSize 100
651
+ */
652
+ subdivisions?: SubdivisionDeliveryProperties[];
653
+ }
654
+ interface SubdivisionDeliveryProperties {
655
+ /**
656
+ * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
657
+ * @minLength 1
658
+ * @maxLength 5
659
+ */
660
+ subdivision?: string;
661
+ /** Delivery destination properties for subdivision */
662
+ deliveryDestinationProperties?: DeliveryDestinationProperties;
663
+ }
623
664
  interface ListDeliveryCarriersRequest {
624
665
  /**
625
666
  * Delivery profile id.
@@ -859,6 +900,10 @@ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
859
900
  wixelAssigned?: WixelAssigned;
860
901
  /** Emitted when Wixel is detached. */
861
902
  wixelUnassigned?: WixelUnassigned;
903
+ /** Emitted when StudioTwo is attached. */
904
+ studioTwoAssigned?: StudioTwoAssigned;
905
+ /** Emitted when StudioTwo is detached. */
906
+ studioTwoUnassigned?: StudioTwoUnassigned;
862
907
  /**
863
908
  * A meta site id.
864
909
  * @format GUID
@@ -929,6 +974,10 @@ interface MetaSiteSpecialEventPayloadOneOf {
929
974
  wixelAssigned?: WixelAssigned;
930
975
  /** Emitted when Wixel is detached. */
931
976
  wixelUnassigned?: WixelUnassigned;
977
+ /** Emitted when StudioTwo is attached. */
978
+ studioTwoAssigned?: StudioTwoAssigned;
979
+ /** Emitted when StudioTwo is detached. */
980
+ studioTwoUnassigned?: StudioTwoUnassigned;
932
981
  }
933
982
  interface Asset {
934
983
  /**
@@ -1281,6 +1330,12 @@ interface WixelAssigned {
1281
1330
  /** Unassigned Wixel */
1282
1331
  interface WixelUnassigned {
1283
1332
  }
1333
+ /** Assigned StudioTwo */
1334
+ interface StudioTwoAssigned {
1335
+ }
1336
+ /** Unassigned StudioTwo */
1337
+ interface StudioTwoUnassigned {
1338
+ }
1284
1339
  interface Empty {
1285
1340
  }
1286
1341
  interface DomainEvent extends DomainEventBodyOneOf {
@@ -1994,6 +2049,15 @@ interface UpdateDeliveryCarrierOptions {
1994
2049
  * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListInstalledDeliveryCarriers
1995
2050
  */
1996
2051
  declare function listInstalledDeliveryCarriers(): Promise<NonNullablePaths<ListInstalledDeliveryCarriersResponse, `installedDeliveryCarriers` | `installedDeliveryCarriers.${number}._id` | `installedDeliveryCarriers.${number}.displayName` | `installedDeliveryCarriers.${number}.toggleGetCarrierSettingsEnabled`, 4>>;
2052
+ /**
2053
+ * Retrieves delivery destination properties by ROW, and aggregated country and subdivision
2054
+ * @public
2055
+ * @documentationMaturity preview
2056
+ * @permissionId ECOM.DELIVERY_PROFILE_READ
2057
+ * @applicableIdentity APP
2058
+ * @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryDestinationProperties
2059
+ */
2060
+ declare function getDeliveryDestinationProperties(): Promise<NonNullablePaths<GetDeliveryDestinationPropertiesResponse, `restOfWorld.postalCodeRequired` | `restOfWorld.pickupOnly` | `countries` | `countries.${number}.country` | `countries.${number}.deliveryDestinationProperties.postalCodeRequired` | `countries.${number}.deliveryDestinationProperties.pickupOnly`, 5>>;
1997
2061
  /**
1998
2062
  * Get delivery carrier settings for a delivery profile and delivery region.
1999
2063
  * These are returned in a table format for the dashboard.
@@ -2062,4 +2126,4 @@ interface UpdateExtendedFieldsOptions {
2062
2126
  namespaceData: Record<string, any> | null;
2063
2127
  }
2064
2128
 
2065
- export { type ActionEvent, type AddDeliveryCarrierApplicationErrors, type AddDeliveryCarrierOptions, type AddDeliveryCarrierRequest, type AddDeliveryCarrierResponse, type AddDeliveryCarrierValidationErrors, type AddDeliveryRegionApplicationErrors, type AddDeliveryRegionOptions, type AddDeliveryRegionRequest, type AddDeliveryRegionResponse, type AddDeliveryRegionValidationErrors, type AdditionalCharge, type ApplicationError, type Asset, type BackupRate, type BulkActionMetadata, ChargeType, type ChargeTypeWithLiterals, type Column, type CreateDeliveryProfileApplicationErrors, type CreateDeliveryProfileRequest, type CreateDeliveryProfileResponse, type CreateDeliveryProfileValidationErrors, type CreatedBy, type CreatedByIdOneOf, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DashboardTable, type DeleteContext, type DeleteDefaultDeliveryProfileRequest, type DeleteDefaultDeliveryProfileResponse, type DeleteDeliveryProfileRequest, type DeleteDeliveryProfileResponse, DeleteStatus, type DeleteStatusWithLiterals, type DeliveryCarrier, type DeliveryCarrierDetails, type DeliveryCarrierRegionalSettings, type DeliveryProfile, type DeliveryProfilesQueryBuilder, type DeliveryProfilesQueryResult, type DeliveryRegion, type DeliveryRegionAdded, type DeliveryRegionRemoved, type DeliveryRegionUpdated, type Destination, DestinationScope, type DestinationScopeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetDeliveryProfileByDeliveryRegionIdApplicationErrors, type GetDeliveryProfileByDeliveryRegionIdRequest, type GetDeliveryProfileByDeliveryRegionIdResponse, type GetDeliveryProfileRequest, type GetDeliveryProfileResponse, type IdentificationData, type IdentificationDataIdOneOf, type InstalledDeliveryCarrier, type ItemMetadata, type ListDeliveryCarriersApplicationErrors, type ListDeliveryCarriersOptions, type ListDeliveryCarriersRequest, type ListDeliveryCarriersResponse, type ListDeliveryCarriersResult, type ListDeliveryDestinationsRequest, type ListDeliveryDestinationsResponse, type ListInstalledDeliveryCarriersRequest, type ListInstalledDeliveryCarriersResponse, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type PicassoAssigned, type PicassoUnassigned, type QueryDeliveryProfilesRequest, type QueryDeliveryProfilesResponse, type RemoveDeliveryCarrierApplicationErrors, type RemoveDeliveryCarrierOptions, type RemoveDeliveryCarrierRequest, type RemoveDeliveryCarrierResponse, type RemoveDeliveryRegionApplicationErrors, type RemoveDeliveryRegionIdentifiers, type RemoveDeliveryRegionOptions, type RemoveDeliveryRegionRequest, type RemoveDeliveryRegionResponse, type RequiredZipcodeRequest, type RequiredZipcodeResponse, type RestoreInfo, type Row, type ServiceProvisioned, type ServiceRemoved, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, type StudioAssigned, type StudioUnassigned, type UpdateCarrierSettingsApplicationErrors, type UpdateCarrierSettingsOptions, type UpdateCarrierSettingsRequest, type UpdateCarrierSettingsResponse, type UpdateDeliveryCarrierApplicationErrors, type UpdateDeliveryCarrierOptions, type UpdateDeliveryCarrierRequest, type UpdateDeliveryCarrierResponse, type UpdateDeliveryProfile, type UpdateDeliveryProfileApplicationErrors, type UpdateDeliveryProfileRequest, type UpdateDeliveryProfileResponse, type UpdateDeliveryRegion, type UpdateDeliveryRegionApplicationErrors, type UpdateDeliveryRegionIdentifiers, type UpdateDeliveryRegionOptions, type UpdateDeliveryRegionRequest, type UpdateDeliveryRegionResponse, type UpdateDeliveryRegionValidationErrors, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, addDeliveryCarrier, addDeliveryRegion, createDeliveryProfile, deleteDeliveryProfile, getDeliveryProfile, getDeliveryProfileByDeliveryRegionId, listDeliveryCarriers, listInstalledDeliveryCarriers, queryDeliveryProfiles, removeDeliveryCarrier, removeDeliveryRegion, updateCarrierSettings, updateDeliveryCarrier, updateDeliveryProfile, updateDeliveryRegion, updateExtendedFields };
2129
+ export { type ActionEvent, type AddDeliveryCarrierApplicationErrors, type AddDeliveryCarrierOptions, type AddDeliveryCarrierRequest, type AddDeliveryCarrierResponse, type AddDeliveryCarrierValidationErrors, type AddDeliveryRegionApplicationErrors, type AddDeliveryRegionOptions, type AddDeliveryRegionRequest, type AddDeliveryRegionResponse, type AddDeliveryRegionValidationErrors, type AdditionalCharge, type ApplicationError, type Asset, type BackupRate, type BulkActionMetadata, ChargeType, type ChargeTypeWithLiterals, type Column, type CountryDeliveryProperties, type CreateDeliveryProfileApplicationErrors, type CreateDeliveryProfileRequest, type CreateDeliveryProfileResponse, type CreateDeliveryProfileValidationErrors, type CreatedBy, type CreatedByIdOneOf, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DashboardTable, type DeleteContext, type DeleteDefaultDeliveryProfileRequest, type DeleteDefaultDeliveryProfileResponse, type DeleteDeliveryProfileRequest, type DeleteDeliveryProfileResponse, DeleteStatus, type DeleteStatusWithLiterals, type DeliveryCarrier, type DeliveryCarrierDetails, type DeliveryCarrierRegionalSettings, type DeliveryDestinationProperties, type DeliveryProfile, type DeliveryProfilesQueryBuilder, type DeliveryProfilesQueryResult, type DeliveryRegion, type DeliveryRegionAdded, type DeliveryRegionRemoved, type DeliveryRegionUpdated, type Destination, DestinationScope, type DestinationScopeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetDeliveryDestinationPropertiesRequest, type GetDeliveryDestinationPropertiesResponse, type GetDeliveryProfileByDeliveryRegionIdApplicationErrors, type GetDeliveryProfileByDeliveryRegionIdRequest, type GetDeliveryProfileByDeliveryRegionIdResponse, type GetDeliveryProfileRequest, type GetDeliveryProfileResponse, type IdentificationData, type IdentificationDataIdOneOf, type InstalledDeliveryCarrier, type ItemMetadata, type ListDeliveryCarriersApplicationErrors, type ListDeliveryCarriersOptions, type ListDeliveryCarriersRequest, type ListDeliveryCarriersResponse, type ListDeliveryCarriersResult, type ListDeliveryDestinationsRequest, type ListDeliveryDestinationsResponse, type ListInstalledDeliveryCarriersRequest, type ListInstalledDeliveryCarriersResponse, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type PicassoAssigned, type PicassoUnassigned, type QueryDeliveryProfilesRequest, type QueryDeliveryProfilesResponse, type RemoveDeliveryCarrierApplicationErrors, type RemoveDeliveryCarrierOptions, type RemoveDeliveryCarrierRequest, type RemoveDeliveryCarrierResponse, type RemoveDeliveryRegionApplicationErrors, type RemoveDeliveryRegionIdentifiers, type RemoveDeliveryRegionOptions, type RemoveDeliveryRegionRequest, type RemoveDeliveryRegionResponse, type RequiredZipcodeRequest, type RequiredZipcodeResponse, type RestoreInfo, type Row, type ServiceProvisioned, type ServiceRemoved, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type SubdivisionDeliveryProperties, type UpdateCarrierSettingsApplicationErrors, type UpdateCarrierSettingsOptions, type UpdateCarrierSettingsRequest, type UpdateCarrierSettingsResponse, type UpdateDeliveryCarrierApplicationErrors, type UpdateDeliveryCarrierOptions, type UpdateDeliveryCarrierRequest, type UpdateDeliveryCarrierResponse, type UpdateDeliveryProfile, type UpdateDeliveryProfileApplicationErrors, type UpdateDeliveryProfileRequest, type UpdateDeliveryProfileResponse, type UpdateDeliveryRegion, type UpdateDeliveryRegionApplicationErrors, type UpdateDeliveryRegionIdentifiers, type UpdateDeliveryRegionOptions, type UpdateDeliveryRegionRequest, type UpdateDeliveryRegionResponse, type UpdateDeliveryRegionValidationErrors, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, addDeliveryCarrier, addDeliveryRegion, createDeliveryProfile, deleteDeliveryProfile, getDeliveryDestinationProperties, getDeliveryProfile, getDeliveryProfileByDeliveryRegionId, listDeliveryCarriers, listInstalledDeliveryCarriers, queryDeliveryProfiles, removeDeliveryCarrier, removeDeliveryRegion, updateCarrierSettings, updateDeliveryCarrier, updateDeliveryProfile, updateDeliveryRegion, updateExtendedFields };
@@ -32,6 +32,7 @@ __export(index_typings_exports, {
32
32
  addDeliveryRegion: () => addDeliveryRegion2,
33
33
  createDeliveryProfile: () => createDeliveryProfile2,
34
34
  deleteDeliveryProfile: () => deleteDeliveryProfile2,
35
+ getDeliveryDestinationProperties: () => getDeliveryDestinationProperties2,
35
36
  getDeliveryProfile: () => getDeliveryProfile2,
36
37
  getDeliveryProfileByDeliveryRegionId: () => getDeliveryProfileByDeliveryRegionId2,
37
38
  listDeliveryCarriers: () => listDeliveryCarriers2,
@@ -547,6 +548,27 @@ function listInstalledDeliveryCarriers(payload) {
547
548
  }
548
549
  return __listInstalledDeliveryCarriers;
549
550
  }
551
+ function getDeliveryDestinationProperties(payload) {
552
+ function __getDeliveryDestinationProperties({ host }) {
553
+ const metadata = {
554
+ entityFqdn: "wix.ecom.v1.delivery_profile",
555
+ method: "GET",
556
+ methodFqn: "wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryDestinationProperties",
557
+ packageName: PACKAGE_NAME,
558
+ migrationOptions: {
559
+ optInTransformResponse: true
560
+ },
561
+ url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
562
+ protoPath: "/v1/delivery-profiles/delivery-destination-properties",
563
+ data: payload,
564
+ host
565
+ }),
566
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
567
+ };
568
+ return metadata;
569
+ }
570
+ return __getDeliveryDestinationProperties;
571
+ }
550
572
  function listDeliveryCarriers(payload) {
551
573
  function __listDeliveryCarriers({ host }) {
552
574
  const metadata = {
@@ -1079,6 +1101,31 @@ async function listInstalledDeliveryCarriers2() {
1079
1101
  throw transformedError;
1080
1102
  }
1081
1103
  }
1104
+ async function getDeliveryDestinationProperties2() {
1105
+ const { httpClient, sideEffects } = arguments[0];
1106
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
1107
+ const reqOpts = getDeliveryDestinationProperties(
1108
+ payload
1109
+ );
1110
+ sideEffects?.onSiteCall?.();
1111
+ try {
1112
+ const result = await httpClient.request(reqOpts);
1113
+ sideEffects?.onSuccess?.(result);
1114
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1115
+ } catch (err) {
1116
+ const transformedError = (0, import_transform_error.transformError)(
1117
+ err,
1118
+ {
1119
+ spreadPathsToArguments: {},
1120
+ explicitPathsToArguments: {},
1121
+ singleArgumentUnchanged: false
1122
+ },
1123
+ []
1124
+ );
1125
+ sideEffects?.onError?.(err);
1126
+ throw transformedError;
1127
+ }
1128
+ }
1082
1129
  async function listDeliveryCarriers2(deliveryProfileId, options) {
1083
1130
  const { httpClient, sideEffects } = arguments[2];
1084
1131
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1184,6 +1231,7 @@ async function updateExtendedFields2(_id, namespace, options) {
1184
1231
  addDeliveryRegion,
1185
1232
  createDeliveryProfile,
1186
1233
  deleteDeliveryProfile,
1234
+ getDeliveryDestinationProperties,
1187
1235
  getDeliveryProfile,
1188
1236
  getDeliveryProfileByDeliveryRegionId,
1189
1237
  listDeliveryCarriers,