@wix/auto_sdk_ecom_delivery-profile 1.0.61 → 1.0.63
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 +5 -12
- package/build/cjs/index.js +1 -50
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +45 -62
- package/build/cjs/index.typings.js +1 -43
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +42 -52
- package/build/cjs/meta.js +0 -38
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +5 -12
- package/build/es/index.mjs +1 -49
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +45 -62
- package/build/es/index.typings.mjs +1 -42
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +42 -52
- package/build/es/meta.mjs +0 -37
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +5 -12
- package/build/internal/cjs/index.js +1 -50
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +45 -62
- package/build/internal/cjs/index.typings.js +1 -43
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +42 -52
- package/build/internal/cjs/meta.js +0 -38
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +5 -12
- package/build/internal/es/index.mjs +1 -49
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +45 -62
- package/build/internal/es/index.typings.mjs +1 -42
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +42 -52
- package/build/internal/es/meta.mjs +0 -37
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -548,55 +548,6 @@ interface UpdateDeliveryCarrierResponse {
|
|
|
548
548
|
/** The updated DeliveryProfile with the updated DeliveryCarrier */
|
|
549
549
|
deliveryProfile?: DeliveryProfile;
|
|
550
550
|
}
|
|
551
|
-
interface ListDeliveryCarrierDetailsRequest {
|
|
552
|
-
}
|
|
553
|
-
interface ListDeliveryCarrierDetailsResponse {
|
|
554
|
-
/**
|
|
555
|
-
* The list of carrier or multi-carrier services that has implemented the spi and installed on the current context(site)
|
|
556
|
-
* @maxSize 100
|
|
557
|
-
*/
|
|
558
|
-
deliveryCarrierDetails?: DeliveryCarrierDetails[];
|
|
559
|
-
}
|
|
560
|
-
interface DeliveryCarrierDetails {
|
|
561
|
-
/**
|
|
562
|
-
* The id of the provider.
|
|
563
|
-
* @format GUID
|
|
564
|
-
*/
|
|
565
|
-
_id?: string;
|
|
566
|
-
/**
|
|
567
|
-
* The name of the Provider.
|
|
568
|
-
* @maxLength 256
|
|
569
|
-
*/
|
|
570
|
-
displayName?: string;
|
|
571
|
-
/**
|
|
572
|
-
* Provider's description.
|
|
573
|
-
* @maxLength 200
|
|
574
|
-
*/
|
|
575
|
-
description?: string | null;
|
|
576
|
-
/**
|
|
577
|
-
* A link to learn more about the provider.
|
|
578
|
-
* @maxLength 200
|
|
579
|
-
*/
|
|
580
|
-
learnMoreUrl?: string | null;
|
|
581
|
-
/**
|
|
582
|
-
* Dashboard URL for the provider.
|
|
583
|
-
* @minLength 1
|
|
584
|
-
* @maxLength 2048
|
|
585
|
-
* @format WEB_URL
|
|
586
|
-
*/
|
|
587
|
-
dashboardUrl?: string | null;
|
|
588
|
-
/** If the provider fallback definition is mandatory. */
|
|
589
|
-
fallbackDefinitionMandatory?: boolean | null;
|
|
590
|
-
/**
|
|
591
|
-
* Thumbnail image for provider.
|
|
592
|
-
* @format WEB_URL
|
|
593
|
-
*/
|
|
594
|
-
thumbnailUrl?: string | null;
|
|
595
|
-
/** feature toggle initialized with default value = false. should be true if implemented by spi provider */
|
|
596
|
-
toggleGetCarrierSettingsEnabled?: boolean;
|
|
597
|
-
/** feature toggle initialized with default value = false. should be true if implemented by spi provider */
|
|
598
|
-
toggleUpdateCarrierActiveStatusEnabled?: boolean;
|
|
599
|
-
}
|
|
600
551
|
interface ListInstalledDeliveryCarriersRequest {
|
|
601
552
|
}
|
|
602
553
|
interface ListInstalledDeliveryCarriersResponse {
|
|
@@ -723,6 +674,46 @@ interface ApplicationError {
|
|
|
723
674
|
/** Data related to the error. */
|
|
724
675
|
data?: Record<string, any> | null;
|
|
725
676
|
}
|
|
677
|
+
interface DeliveryCarrierDetails {
|
|
678
|
+
/**
|
|
679
|
+
* The id of the provider.
|
|
680
|
+
* @format GUID
|
|
681
|
+
*/
|
|
682
|
+
_id?: string;
|
|
683
|
+
/**
|
|
684
|
+
* The name of the Provider.
|
|
685
|
+
* @maxLength 256
|
|
686
|
+
*/
|
|
687
|
+
displayName?: string;
|
|
688
|
+
/**
|
|
689
|
+
* Provider's description.
|
|
690
|
+
* @maxLength 200
|
|
691
|
+
*/
|
|
692
|
+
description?: string | null;
|
|
693
|
+
/**
|
|
694
|
+
* A link to learn more about the provider.
|
|
695
|
+
* @maxLength 200
|
|
696
|
+
*/
|
|
697
|
+
learnMoreUrl?: string | null;
|
|
698
|
+
/**
|
|
699
|
+
* Dashboard URL for the provider.
|
|
700
|
+
* @minLength 1
|
|
701
|
+
* @maxLength 2048
|
|
702
|
+
* @format WEB_URL
|
|
703
|
+
*/
|
|
704
|
+
dashboardUrl?: string | null;
|
|
705
|
+
/** If the provider fallback definition is mandatory. */
|
|
706
|
+
fallbackDefinitionMandatory?: boolean | null;
|
|
707
|
+
/**
|
|
708
|
+
* Thumbnail image for provider.
|
|
709
|
+
* @format WEB_URL
|
|
710
|
+
*/
|
|
711
|
+
thumbnailUrl?: string | null;
|
|
712
|
+
/** feature toggle initialized with default value = false. should be true if implemented by spi provider */
|
|
713
|
+
toggleGetCarrierSettingsEnabled?: boolean;
|
|
714
|
+
/** feature toggle initialized with default value = false. should be true if implemented by spi provider */
|
|
715
|
+
toggleUpdateCarrierActiveStatusEnabled?: boolean;
|
|
716
|
+
}
|
|
726
717
|
interface DeliveryCarrierRegionalSettings {
|
|
727
718
|
/**
|
|
728
719
|
* The delivery rule id.
|
|
@@ -1079,10 +1070,12 @@ declare enum Namespace {
|
|
|
1079
1070
|
/** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
1080
1071
|
STANDALONE_EVENTS = "STANDALONE_EVENTS",
|
|
1081
1072
|
/** MIMIR - Siteless account for MIMIR Ai Job runner. */
|
|
1082
|
-
MIMIR = "MIMIR"
|
|
1073
|
+
MIMIR = "MIMIR",
|
|
1074
|
+
/** Wix Twins platform. */
|
|
1075
|
+
TWINS = "TWINS"
|
|
1083
1076
|
}
|
|
1084
1077
|
/** @enumType */
|
|
1085
|
-
type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR';
|
|
1078
|
+
type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR' | 'TWINS';
|
|
1086
1079
|
/** Site transferred to another user. */
|
|
1087
1080
|
interface SiteTransferred {
|
|
1088
1081
|
/**
|
|
@@ -1980,16 +1973,6 @@ interface UpdateDeliveryCarrierOptions {
|
|
|
1980
1973
|
/**
|
|
1981
1974
|
* List all installed delivery carriers in order to set their ids in delivery rules
|
|
1982
1975
|
* @public
|
|
1983
|
-
* @documentationMaturity preview
|
|
1984
|
-
* @permissionId ECOM.DELIVERY_CARRIER_DETAILS_READ
|
|
1985
|
-
* @applicableIdentity APP
|
|
1986
|
-
* @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListDeliveryCarrierDetails
|
|
1987
|
-
* @deprecated
|
|
1988
|
-
* @replacedBy ListInstalledDeliveryCarriers
|
|
1989
|
-
* @targetRemovalDate 2025-04-01
|
|
1990
|
-
*/
|
|
1991
|
-
declare function listDeliveryCarrierDetails(): Promise<NonNullablePaths<ListDeliveryCarrierDetailsResponse, `deliveryCarrierDetails` | `deliveryCarrierDetails.${number}._id` | `deliveryCarrierDetails.${number}.displayName` | `deliveryCarrierDetails.${number}.toggleGetCarrierSettingsEnabled` | `deliveryCarrierDetails.${number}.toggleUpdateCarrierActiveStatusEnabled`, 4>>;
|
|
1992
|
-
/** @public
|
|
1993
1976
|
* @documentationMaturity preview
|
|
1994
1977
|
* @permissionId ECOM.DELIVERY_CARRIER_READ
|
|
1995
1978
|
* @applicableIdentity APP
|
|
@@ -2064,4 +2047,4 @@ interface UpdateExtendedFieldsOptions {
|
|
|
2064
2047
|
namespaceData: Record<string, any> | null;
|
|
2065
2048
|
}
|
|
2066
2049
|
|
|
2067
|
-
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
|
|
2050
|
+
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, addDeliveryCarrier, addDeliveryRegion, createDeliveryProfile, deleteDeliveryProfile, getDeliveryProfile, getDeliveryProfileByDeliveryRegionId, listDeliveryCarriers, listInstalledDeliveryCarriers, queryDeliveryProfiles, removeDeliveryCarrier, removeDeliveryRegion, updateCarrierSettings, updateDeliveryCarrier, updateDeliveryProfile, updateDeliveryRegion, updateExtendedFields };
|
|
@@ -444,24 +444,6 @@ function updateDeliveryCarrier(payload) {
|
|
|
444
444
|
}
|
|
445
445
|
return __updateDeliveryCarrier;
|
|
446
446
|
}
|
|
447
|
-
function listDeliveryCarrierDetails(payload) {
|
|
448
|
-
function __listDeliveryCarrierDetails({ host }) {
|
|
449
|
-
const metadata = {
|
|
450
|
-
entityFqdn: "wix.ecom.v1.delivery_profile",
|
|
451
|
-
method: "GET",
|
|
452
|
-
methodFqn: "wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListDeliveryCarrierDetails",
|
|
453
|
-
packageName: PACKAGE_NAME,
|
|
454
|
-
url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
|
|
455
|
-
protoPath: "/v1/delivery-carriers",
|
|
456
|
-
data: payload,
|
|
457
|
-
host
|
|
458
|
-
}),
|
|
459
|
-
params: toURLSearchParams(payload)
|
|
460
|
-
};
|
|
461
|
-
return metadata;
|
|
462
|
-
}
|
|
463
|
-
return __listDeliveryCarrierDetails;
|
|
464
|
-
}
|
|
465
447
|
function listInstalledDeliveryCarriers(payload) {
|
|
466
448
|
function __listInstalledDeliveryCarriers({ host }) {
|
|
467
449
|
const metadata = {
|
|
@@ -609,6 +591,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
|
609
591
|
Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
|
|
610
592
|
Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
|
|
611
593
|
Namespace2["MIMIR"] = "MIMIR";
|
|
594
|
+
Namespace2["TWINS"] = "TWINS";
|
|
612
595
|
return Namespace2;
|
|
613
596
|
})(Namespace || {});
|
|
614
597
|
var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|
|
@@ -978,29 +961,6 @@ async function updateDeliveryCarrier2(deliveryRegionId, options) {
|
|
|
978
961
|
throw transformedError;
|
|
979
962
|
}
|
|
980
963
|
}
|
|
981
|
-
async function listDeliveryCarrierDetails2() {
|
|
982
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
983
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
984
|
-
const reqOpts = listDeliveryCarrierDetails(payload);
|
|
985
|
-
sideEffects?.onSiteCall?.();
|
|
986
|
-
try {
|
|
987
|
-
const result = await httpClient.request(reqOpts);
|
|
988
|
-
sideEffects?.onSuccess?.(result);
|
|
989
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
990
|
-
} catch (err) {
|
|
991
|
-
const transformedError = sdkTransformError(
|
|
992
|
-
err,
|
|
993
|
-
{
|
|
994
|
-
spreadPathsToArguments: {},
|
|
995
|
-
explicitPathsToArguments: {},
|
|
996
|
-
singleArgumentUnchanged: false
|
|
997
|
-
},
|
|
998
|
-
[]
|
|
999
|
-
);
|
|
1000
|
-
sideEffects?.onError?.(err);
|
|
1001
|
-
throw transformedError;
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
964
|
async function listInstalledDeliveryCarriers2() {
|
|
1005
965
|
const { httpClient, sideEffects } = arguments[0];
|
|
1006
966
|
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
@@ -1130,7 +1090,6 @@ export {
|
|
|
1130
1090
|
deleteDeliveryProfile2 as deleteDeliveryProfile,
|
|
1131
1091
|
getDeliveryProfile2 as getDeliveryProfile,
|
|
1132
1092
|
getDeliveryProfileByDeliveryRegionId2 as getDeliveryProfileByDeliveryRegionId,
|
|
1133
|
-
listDeliveryCarrierDetails2 as listDeliveryCarrierDetails,
|
|
1134
1093
|
listDeliveryCarriers2 as listDeliveryCarriers,
|
|
1135
1094
|
listInstalledDeliveryCarriers2 as listInstalledDeliveryCarriers,
|
|
1136
1095
|
queryDeliveryProfiles2 as queryDeliveryProfiles,
|