@wix/auto_sdk_ecom_shippo-configurations 1.0.24 → 1.0.25
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 +2 -2
- package/build/cjs/{ecom-v1-shippo-configuration-shippo-configurations.universal-D-nyXVmj.d.ts → index.typings.d.ts} +156 -1
- package/build/cjs/index.typings.js +749 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/{ecom-v1-shippo-configuration-shippo-configurations.universal-D-nyXVmj.d.mts → index.typings.d.mts} +156 -1
- package/build/es/index.typings.mjs +712 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/{ecom-v1-shippo-configuration-shippo-configurations.universal-D-nyXVmj.d.ts → index.typings.d.ts} +156 -1
- package/build/internal/cjs/index.typings.js +749 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/{ecom-v1-shippo-configuration-shippo-configurations.universal-D-nyXVmj.d.mts → index.typings.d.mts} +156 -1
- package/build/internal/es/index.typings.mjs +712 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { ShippoConfiguration, CreateShippoConfigurationOptions, UpdateShippoConfiguration, ShippoConfigurationsQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, AddDeliveryRegionOptions, AddDeliveryRegionResponse, RemoveDeliveryRegionIdentifiers, RemoveDeliveryRegionOptions, RemoveDeliveryRegionResponse, ShippoConfigurationCreatedEnvelope, ShippoConfigurationDeletedEnvelope, ShippoConfigurationUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, AddDeliveryRegionRequest, Address, AddressLocation, BaseEventMetadata, CalculationType, CreateShippoConfigurationRequest, CreateShippoConfigurationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteShippoConfigurationRequest, DeleteShippoConfigurationResponse, DomainEvent, DomainEventBodyOneOf, DomesticService, DomesticServiceSettings, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetShippoConfigurationRequest, GetShippoConfigurationResponse, HandlingFee, IdentificationData, IdentificationDataIdOneOf, InternationalService, InternationalServiceSettings, MessageEnvelope, PackageDetails, PackageDimensions, PackageType, QueryShippoConfigurationsRequest, QueryShippoConfigurationsResponse, RemoveDeliveryRegionRequest, RestoreInfo, ServiceSettings, ShippoConfigurationsQueryResult, SortOrder, Sorting, StreetAddress, UpdateExtendedFieldsRequest, UpdateShippoConfigurationRequest, UpdateShippoConfigurationResponse, WebhookIdentityType } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createShippoConfiguration$1(httpClient: HttpClient): CreateShippoConfigurationSignature;
|
|
6
6
|
interface CreateShippoConfigurationSignature {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
+
|
|
1
3
|
interface ShippoConfiguration {
|
|
2
4
|
/**
|
|
3
5
|
* ShippoConfiguration ID.
|
|
@@ -612,18 +614,97 @@ interface ShippoConfigurationCreatedEnvelope {
|
|
|
612
614
|
entity: ShippoConfiguration;
|
|
613
615
|
metadata: EventMetadata;
|
|
614
616
|
}
|
|
617
|
+
/**
|
|
618
|
+
* Triggered when a shipping option is created.
|
|
619
|
+
* @permissionScope Manage Stores
|
|
620
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
621
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_READ
|
|
622
|
+
* @webhook
|
|
623
|
+
* @eventType wix.ecom.v1.shippo_configuration_created
|
|
624
|
+
* @slug created
|
|
625
|
+
* @documentationMaturity preview
|
|
626
|
+
*/
|
|
627
|
+
declare function onShippoConfigurationCreated(handler: (event: ShippoConfigurationCreatedEnvelope) => void | Promise<void>): void;
|
|
615
628
|
interface ShippoConfigurationDeletedEnvelope {
|
|
616
629
|
entity: ShippoConfiguration;
|
|
617
630
|
metadata: EventMetadata;
|
|
618
631
|
}
|
|
632
|
+
/**
|
|
633
|
+
* Triggered when a shipping option is deleted.
|
|
634
|
+
* @permissionScope Manage Stores
|
|
635
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
636
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_READ
|
|
637
|
+
* @webhook
|
|
638
|
+
* @eventType wix.ecom.v1.shippo_configuration_deleted
|
|
639
|
+
* @slug deleted
|
|
640
|
+
* @documentationMaturity preview
|
|
641
|
+
*/
|
|
642
|
+
declare function onShippoConfigurationDeleted(handler: (event: ShippoConfigurationDeletedEnvelope) => void | Promise<void>): void;
|
|
619
643
|
interface ShippoConfigurationUpdatedEnvelope {
|
|
620
644
|
entity: ShippoConfiguration;
|
|
621
645
|
metadata: EventMetadata;
|
|
622
646
|
}
|
|
647
|
+
/**
|
|
648
|
+
* Triggered when a shipping option is updated.
|
|
649
|
+
* @permissionScope Manage Stores
|
|
650
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
651
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_READ
|
|
652
|
+
* @webhook
|
|
653
|
+
* @eventType wix.ecom.v1.shippo_configuration_updated
|
|
654
|
+
* @slug updated
|
|
655
|
+
* @documentationMaturity preview
|
|
656
|
+
*/
|
|
657
|
+
declare function onShippoConfigurationUpdated(handler: (event: ShippoConfigurationUpdatedEnvelope) => void | Promise<void>): void;
|
|
658
|
+
type ShippoConfigurationNonNullablePaths = `domesticServices` | `domesticServices.${number}.service` | `domesticServices.${number}.serviceSettings.handlingFee.value` | `domesticServices.${number}.serviceSettings.handlingFee.calculationType` | `internationalServices` | `internationalServices.${number}.service` | `internationalServices.${number}.serviceSettings.handlingFee.value` | `internationalServices.${number}.serviceSettings.handlingFee.calculationType` | `packageType` | `packageDetails.dimensions.length` | `packageDetails.dimensions.width` | `packageDetails.dimensions.height` | `shipFromAddress.streetAddress.number` | `shipFromAddress.streetAddress.name` | `deliveryRegionIds`;
|
|
659
|
+
/**
|
|
660
|
+
* Creates a ShippoConfiguration.
|
|
661
|
+
* @param shippoConfiguration - ShippoConfiguration to be created.
|
|
662
|
+
* @public
|
|
663
|
+
* @documentationMaturity preview
|
|
664
|
+
* @requiredField shippoConfiguration
|
|
665
|
+
* @requiredField shippoConfiguration.deliveryRegionId
|
|
666
|
+
* @requiredField shippoConfiguration.osLocationId
|
|
667
|
+
* @requiredField shippoConfiguration.packageDetails
|
|
668
|
+
* @requiredField shippoConfiguration.packageDetails.dimensions.height
|
|
669
|
+
* @requiredField shippoConfiguration.packageDetails.dimensions.length
|
|
670
|
+
* @requiredField shippoConfiguration.packageDetails.dimensions.width
|
|
671
|
+
* @requiredField shippoConfiguration.packageType
|
|
672
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_CREATE
|
|
673
|
+
* @applicableIdentity APP
|
|
674
|
+
* @returns The created ShippoConfiguration.
|
|
675
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.CreateShippoConfiguration
|
|
676
|
+
*/
|
|
677
|
+
declare function createShippoConfiguration(shippoConfiguration: NonNullablePaths<ShippoConfiguration, `deliveryRegionId` | `osLocationId` | `packageDetails` | `packageDetails.dimensions.height` | `packageDetails.dimensions.length` | `packageDetails.dimensions.width` | `packageType`>, options?: CreateShippoConfigurationOptions): Promise<NonNullablePaths<ShippoConfiguration, ShippoConfigurationNonNullablePaths>>;
|
|
623
678
|
interface CreateShippoConfigurationOptions {
|
|
624
679
|
/** @decimalValue options { gte:0, maxScale:6 } */
|
|
625
680
|
backupRate?: string | null;
|
|
626
681
|
}
|
|
682
|
+
/**
|
|
683
|
+
* Retrieves a ShippoConfiguration.
|
|
684
|
+
* @param shippoConfigurationId - ID of the ShippoConfiguration to retrieve.
|
|
685
|
+
* @public
|
|
686
|
+
* @documentationMaturity preview
|
|
687
|
+
* @requiredField shippoConfigurationId
|
|
688
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_READ
|
|
689
|
+
* @applicableIdentity APP
|
|
690
|
+
* @returns The requested ShippoConfiguration.
|
|
691
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.GetShippoConfiguration
|
|
692
|
+
*/
|
|
693
|
+
declare function getShippoConfiguration(shippoConfigurationId: string): Promise<NonNullablePaths<ShippoConfiguration, ShippoConfigurationNonNullablePaths>>;
|
|
694
|
+
/**
|
|
695
|
+
* Updates a ShippoConfiguration.
|
|
696
|
+
* @param _id - ShippoConfiguration ID.
|
|
697
|
+
* @public
|
|
698
|
+
* @documentationMaturity preview
|
|
699
|
+
* @requiredField _id
|
|
700
|
+
* @requiredField shippoConfiguration
|
|
701
|
+
* @requiredField shippoConfiguration.revision
|
|
702
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_UPDATE
|
|
703
|
+
* @applicableIdentity APP
|
|
704
|
+
* @returns Updated ShippoConfiguration.
|
|
705
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.UpdateShippoConfiguration
|
|
706
|
+
*/
|
|
707
|
+
declare function updateShippoConfiguration(_id: string, shippoConfiguration: NonNullablePaths<UpdateShippoConfiguration, `revision`>): Promise<NonNullablePaths<ShippoConfiguration, ShippoConfigurationNonNullablePaths>>;
|
|
627
708
|
interface UpdateShippoConfiguration {
|
|
628
709
|
/**
|
|
629
710
|
* ShippoConfiguration ID.
|
|
@@ -691,6 +772,33 @@ interface UpdateShippoConfiguration {
|
|
|
691
772
|
/** Data extensions. */
|
|
692
773
|
extendedFields?: ExtendedFields;
|
|
693
774
|
}
|
|
775
|
+
/**
|
|
776
|
+
* Deletes a ShippoConfiguration.
|
|
777
|
+
* @param shippoConfigurationId - ID of the ShippoConfiguration to delete.
|
|
778
|
+
* @public
|
|
779
|
+
* @documentationMaturity preview
|
|
780
|
+
* @requiredField shippoConfigurationId
|
|
781
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_DELETE
|
|
782
|
+
* @applicableIdentity APP
|
|
783
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.DeleteShippoConfiguration
|
|
784
|
+
*/
|
|
785
|
+
declare function deleteShippoConfiguration(shippoConfigurationId: string): Promise<void>;
|
|
786
|
+
/**
|
|
787
|
+
* Retrieves a list of ShippoConfigurations, given the provided [paging, filtering, and sorting][1].
|
|
788
|
+
*
|
|
789
|
+
* Up to 1,000 ShippoConfigurations can be returned per request.
|
|
790
|
+
*
|
|
791
|
+
* To learn how to query ShippoConfigurations, see [API Query Language][2].
|
|
792
|
+
*
|
|
793
|
+
* [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
|
|
794
|
+
* [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
|
|
795
|
+
* @public
|
|
796
|
+
* @documentationMaturity preview
|
|
797
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_READ
|
|
798
|
+
* @applicableIdentity APP
|
|
799
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.QueryShippoConfigurations
|
|
800
|
+
*/
|
|
801
|
+
declare function queryShippoConfigurations(): ShippoConfigurationsQueryBuilder;
|
|
694
802
|
interface QueryCursorResult {
|
|
695
803
|
cursors: Cursors;
|
|
696
804
|
hasNext: () => boolean;
|
|
@@ -768,14 +876,61 @@ interface ShippoConfigurationsQueryBuilder {
|
|
|
768
876
|
/** @documentationMaturity preview */
|
|
769
877
|
find: () => Promise<ShippoConfigurationsQueryResult>;
|
|
770
878
|
}
|
|
879
|
+
/**
|
|
880
|
+
* Updates extended fields of a ShippoConfiguration without incrementing revision
|
|
881
|
+
* @param _id - ID of the entity to update.
|
|
882
|
+
* @param namespace - Identifier for the app whose extended fields are being updated.
|
|
883
|
+
* @public
|
|
884
|
+
* @documentationMaturity preview
|
|
885
|
+
* @requiredField _id
|
|
886
|
+
* @requiredField namespace
|
|
887
|
+
* @requiredField options
|
|
888
|
+
* @requiredField options.namespaceData
|
|
889
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_UPDATE
|
|
890
|
+
* @applicableIdentity APP
|
|
891
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.UpdateExtendedFields
|
|
892
|
+
*/
|
|
893
|
+
declare function updateExtendedFields(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, {
|
|
894
|
+
[P in ShippoConfigurationNonNullablePaths]: `shippoConfiguration.${P}`;
|
|
895
|
+
}[ShippoConfigurationNonNullablePaths]>>;
|
|
771
896
|
interface UpdateExtendedFieldsOptions {
|
|
772
897
|
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
773
898
|
namespaceData: Record<string, any> | null;
|
|
774
899
|
}
|
|
900
|
+
/**
|
|
901
|
+
* Adds a delivery region to a Shippo configuration.
|
|
902
|
+
* @param shippoConfigurationId - ID of the ShippoConfiguration to add the delivery region to.
|
|
903
|
+
* @param deliveryRegionId - ID of the delivery region to add.
|
|
904
|
+
* @public
|
|
905
|
+
* @documentationMaturity preview
|
|
906
|
+
* @requiredField deliveryRegionId
|
|
907
|
+
* @requiredField shippoConfigurationId
|
|
908
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_UPDATE
|
|
909
|
+
* @applicableIdentity APP
|
|
910
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.AddDeliveryRegion
|
|
911
|
+
*/
|
|
912
|
+
declare function addDeliveryRegion(shippoConfigurationId: string, deliveryRegionId: string, options?: AddDeliveryRegionOptions): Promise<NonNullablePaths<AddDeliveryRegionResponse, {
|
|
913
|
+
[P in ShippoConfigurationNonNullablePaths]: `shippoConfiguration.${P}`;
|
|
914
|
+
}[ShippoConfigurationNonNullablePaths]>>;
|
|
775
915
|
interface AddDeliveryRegionOptions {
|
|
776
916
|
/** Revision of the ShippoConfiguration. */
|
|
777
917
|
revision?: string | null;
|
|
778
918
|
}
|
|
919
|
+
/**
|
|
920
|
+
* Removes a delivery region from a Shippo configuration.
|
|
921
|
+
* When passing the ID of the only existing delivery region, removing it will delete the Shippo configuration.
|
|
922
|
+
* @public
|
|
923
|
+
* @documentationMaturity preview
|
|
924
|
+
* @requiredField identifiers
|
|
925
|
+
* @requiredField identifiers.deliveryRegionId
|
|
926
|
+
* @requiredField identifiers.shippoConfigurationId
|
|
927
|
+
* @permissionId ECOM.SHIPPO_CONFIGURATION_UPDATE
|
|
928
|
+
* @applicableIdentity APP
|
|
929
|
+
* @fqn wix.ecom.delivery.v1.ShippoService.RemoveDeliveryRegion
|
|
930
|
+
*/
|
|
931
|
+
declare function removeDeliveryRegion(identifiers: NonNullablePaths<RemoveDeliveryRegionIdentifiers, `deliveryRegionId` | `shippoConfigurationId`>, options?: RemoveDeliveryRegionOptions): Promise<NonNullablePaths<RemoveDeliveryRegionResponse, {
|
|
932
|
+
[P in ShippoConfigurationNonNullablePaths]: `shippoConfiguration.${P}`;
|
|
933
|
+
}[ShippoConfigurationNonNullablePaths]>>;
|
|
779
934
|
interface RemoveDeliveryRegionIdentifiers {
|
|
780
935
|
/**
|
|
781
936
|
* ID of the ShippoConfiguration to remove the delivery region from.
|
|
@@ -793,4 +948,4 @@ interface RemoveDeliveryRegionOptions {
|
|
|
793
948
|
revision?: string | null;
|
|
794
949
|
}
|
|
795
950
|
|
|
796
|
-
export { type ActionEvent
|
|
951
|
+
export { type ActionEvent, type AddDeliveryRegionOptions, type AddDeliveryRegionRequest, type AddDeliveryRegionResponse, type Address, type AddressLocation, type BaseEventMetadata, CalculationType, type CalculationTypeWithLiterals, type CreateShippoConfigurationOptions, type CreateShippoConfigurationRequest, type CreateShippoConfigurationResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteShippoConfigurationRequest, type DeleteShippoConfigurationResponse, type DomainEvent, type DomainEventBodyOneOf, DomesticService, type DomesticServiceSettings, type DomesticServiceWithLiterals, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GetShippoConfigurationRequest, type GetShippoConfigurationResponse, type HandlingFee, type IdentificationData, type IdentificationDataIdOneOf, InternationalService, type InternationalServiceSettings, type InternationalServiceWithLiterals, type MessageEnvelope, type PackageDetails, type PackageDimensions, PackageType, type PackageTypeWithLiterals, type QueryShippoConfigurationsRequest, type QueryShippoConfigurationsResponse, type RemoveDeliveryRegionIdentifiers, type RemoveDeliveryRegionOptions, type RemoveDeliveryRegionRequest, type RemoveDeliveryRegionResponse, type RestoreInfo, type ServiceSettings, type ShippoConfiguration, type ShippoConfigurationCreatedEnvelope, type ShippoConfigurationDeletedEnvelope, type ShippoConfigurationUpdatedEnvelope, type ShippoConfigurationsQueryBuilder, type ShippoConfigurationsQueryResult, SortOrder, type SortOrderWithLiterals, type Sorting, type StreetAddress, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateShippoConfiguration, type UpdateShippoConfigurationRequest, type UpdateShippoConfigurationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, addDeliveryRegion, createShippoConfiguration, deleteShippoConfiguration, getShippoConfiguration, onShippoConfigurationCreated, onShippoConfigurationDeleted, onShippoConfigurationUpdated, queryShippoConfigurations, removeDeliveryRegion, updateExtendedFields, updateShippoConfiguration };
|