@wix/auto_sdk_ecom_delivery-profile 1.0.87 → 1.0.89

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.
@@ -1644,6 +1644,178 @@ type UpdateCarrierSettingsApplicationErrors = {
1644
1644
  description?: string;
1645
1645
  data?: Record<string, any>;
1646
1646
  };
1647
+ interface BaseEventMetadata {
1648
+ /**
1649
+ * App instance ID.
1650
+ * @format GUID
1651
+ */
1652
+ instanceId?: string | null;
1653
+ /**
1654
+ * Event type.
1655
+ * @maxLength 150
1656
+ */
1657
+ eventType?: string;
1658
+ /** The identification type and identity data. */
1659
+ identity?: IdentificationData;
1660
+ }
1661
+ interface EventMetadata extends BaseEventMetadata {
1662
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1663
+ _id?: string;
1664
+ /**
1665
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1666
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1667
+ */
1668
+ entityFqdn?: string;
1669
+ /**
1670
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
1671
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1672
+ */
1673
+ slug?: string;
1674
+ /** ID of the entity associated with the event. */
1675
+ entityId?: string;
1676
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1677
+ eventTime?: Date | null;
1678
+ /**
1679
+ * Whether the event was triggered as a result of a privacy regulation application
1680
+ * (for example, GDPR).
1681
+ */
1682
+ triggeredByAnonymizeRequest?: boolean | null;
1683
+ /** If present, indicates the action that triggered the event. */
1684
+ originatedFrom?: string | null;
1685
+ /**
1686
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
1687
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
1688
+ */
1689
+ entityEventSequence?: string | null;
1690
+ }
1691
+ interface DeliveryProfileCreatedEnvelope {
1692
+ entity: DeliveryProfile;
1693
+ metadata: EventMetadata;
1694
+ }
1695
+ /** @permissionScope Manage Stores - all permissions
1696
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1697
+ * @permissionScope Manage Stores
1698
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1699
+ * @permissionScope Read eCommerce - all read permissions
1700
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1701
+ * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
1702
+ * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
1703
+ * @permissionScope Manage eCommerce - all permissions
1704
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1705
+ * @permissionId ECOM.DELIVERY_PROFILE_READ
1706
+ * @webhook
1707
+ * @eventType wix.ecom.v1.delivery_profile_created
1708
+ * @slug created
1709
+ * @documentationMaturity preview
1710
+ */
1711
+ declare function onDeliveryProfileCreated(handler: (event: DeliveryProfileCreatedEnvelope) => void | Promise<void>): void;
1712
+ interface DeliveryProfileDeletedEnvelope {
1713
+ entity: DeliveryProfile;
1714
+ metadata: EventMetadata;
1715
+ }
1716
+ /** @permissionScope Manage Stores - all permissions
1717
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1718
+ * @permissionScope Manage Stores
1719
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1720
+ * @permissionScope Read eCommerce - all read permissions
1721
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1722
+ * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
1723
+ * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
1724
+ * @permissionScope Manage eCommerce - all permissions
1725
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1726
+ * @permissionId ECOM.DELIVERY_PROFILE_READ
1727
+ * @webhook
1728
+ * @eventType wix.ecom.v1.delivery_profile_deleted
1729
+ * @slug deleted
1730
+ * @documentationMaturity preview
1731
+ */
1732
+ declare function onDeliveryProfileDeleted(handler: (event: DeliveryProfileDeletedEnvelope) => void | Promise<void>): void;
1733
+ interface DeliveryProfileRegionAddedEnvelope {
1734
+ data: DeliveryRegionAdded;
1735
+ metadata: EventMetadata;
1736
+ }
1737
+ /** @permissionScope Manage Stores - all permissions
1738
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1739
+ * @permissionScope Manage Stores
1740
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1741
+ * @permissionScope Read eCommerce - all read permissions
1742
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1743
+ * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
1744
+ * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
1745
+ * @permissionScope Manage eCommerce - all permissions
1746
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1747
+ * @permissionId ECOM.DELIVERY_PROFILE_READ
1748
+ * @webhook
1749
+ * @eventType wix.ecom.v1.delivery_profile_region_added
1750
+ * @slug region_added
1751
+ * @documentationMaturity preview
1752
+ */
1753
+ declare function onDeliveryProfileRegionAdded(handler: (event: DeliveryProfileRegionAddedEnvelope) => void | Promise<void>): void;
1754
+ interface DeliveryProfileRegionRemovedEnvelope {
1755
+ data: DeliveryRegionRemoved;
1756
+ metadata: EventMetadata;
1757
+ }
1758
+ /** @permissionScope Manage Stores - all permissions
1759
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1760
+ * @permissionScope Manage Stores
1761
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1762
+ * @permissionScope Read eCommerce - all read permissions
1763
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1764
+ * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
1765
+ * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
1766
+ * @permissionScope Manage eCommerce - all permissions
1767
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1768
+ * @permissionId ECOM.DELIVERY_PROFILE_READ
1769
+ * @webhook
1770
+ * @eventType wix.ecom.v1.delivery_profile_region_removed
1771
+ * @slug region_removed
1772
+ * @documentationMaturity preview
1773
+ */
1774
+ declare function onDeliveryProfileRegionRemoved(handler: (event: DeliveryProfileRegionRemovedEnvelope) => void | Promise<void>): void;
1775
+ interface DeliveryProfileRegionUpdatedEnvelope {
1776
+ data: DeliveryRegionUpdated;
1777
+ metadata: EventMetadata;
1778
+ }
1779
+ /** @permissionScope Manage Stores - all permissions
1780
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1781
+ * @permissionScope Manage Stores
1782
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1783
+ * @permissionScope Read eCommerce - all read permissions
1784
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1785
+ * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
1786
+ * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
1787
+ * @permissionScope Manage eCommerce - all permissions
1788
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1789
+ * @permissionId ECOM.DELIVERY_PROFILE_READ
1790
+ * @webhook
1791
+ * @eventType wix.ecom.v1.delivery_profile_region_updated
1792
+ * @slug region_updated
1793
+ * @documentationMaturity preview
1794
+ */
1795
+ declare function onDeliveryProfileRegionUpdated(handler: (event: DeliveryProfileRegionUpdatedEnvelope) => void | Promise<void>): void;
1796
+ interface DeliveryProfileUpdatedEnvelope {
1797
+ entity: DeliveryProfile;
1798
+ metadata: EventMetadata;
1799
+ /** @hidden */
1800
+ modifiedFields: Record<string, any>;
1801
+ }
1802
+ /** @permissionScope Manage Stores - all permissions
1803
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1804
+ * @permissionScope Manage Stores
1805
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1806
+ * @permissionScope Read eCommerce - all read permissions
1807
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1808
+ * @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
1809
+ * @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
1810
+ * @permissionScope Manage eCommerce - all permissions
1811
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1812
+ * @permissionId ECOM.DELIVERY_PROFILE_READ
1813
+ * @webhook
1814
+ * @eventType wix.ecom.v1.delivery_profile_updated
1815
+ * @slug updated
1816
+ * @documentationMaturity preview
1817
+ */
1818
+ declare function onDeliveryProfileUpdated(handler: (event: DeliveryProfileUpdatedEnvelope) => void | Promise<void>): void;
1647
1819
  /**
1648
1820
  * Creates a DeliveryProfile.
1649
1821
  *
@@ -2231,4 +2403,4 @@ interface UpdateExtendedFieldsOptions {
2231
2403
  namespaceData: Record<string, any> | null;
2232
2404
  }
2233
2405
 
2234
- 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 CommonQueryWithEntityContext, type CountryDeliveryProperties, type CreateDeliveryProfileApplicationErrors, type CreateDeliveryProfileRequest, type CreateDeliveryProfileResponse, 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 DeliveryProfileQuery, type DeliveryProfileQuerySpec, 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, typedQueryDeliveryProfiles, updateCarrierSettings, updateDeliveryCarrier, updateDeliveryProfile, updateDeliveryRegion, updateExtendedFields };
2406
+ 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 BaseEventMetadata, type BulkActionMetadata, ChargeType, type ChargeTypeWithLiterals, type Column, type CommonQueryWithEntityContext, type CountryDeliveryProperties, type CreateDeliveryProfileApplicationErrors, type CreateDeliveryProfileRequest, type CreateDeliveryProfileResponse, 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 DeliveryProfileCreatedEnvelope, type DeliveryProfileDeletedEnvelope, type DeliveryProfileQuery, type DeliveryProfileQuerySpec, type DeliveryProfileRegionAddedEnvelope, type DeliveryProfileRegionRemovedEnvelope, type DeliveryProfileRegionUpdatedEnvelope, type DeliveryProfileUpdatedEnvelope, 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 EventMetadata, 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, onDeliveryProfileCreated, onDeliveryProfileDeleted, onDeliveryProfileRegionAdded, onDeliveryProfileRegionRemoved, onDeliveryProfileRegionUpdated, onDeliveryProfileUpdated, queryDeliveryProfiles, removeDeliveryCarrier, removeDeliveryRegion, typedQueryDeliveryProfiles, updateCarrierSettings, updateDeliveryCarrier, updateDeliveryProfile, updateDeliveryRegion, updateExtendedFields };