@wix/auto_sdk_ecom_delivery-profile 1.0.95 → 1.0.97
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 +14 -3
- package/build/cjs/index.js +63 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +52 -5
- package/build/cjs/index.typings.js +54 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +29 -6
- package/build/cjs/meta.js +41 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +14 -3
- package/build/es/index.mjs +62 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +52 -5
- package/build/es/index.typings.mjs +53 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +29 -6
- package/build/es/meta.mjs +40 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +14 -3
- package/build/internal/cjs/index.js +63 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +52 -5
- package/build/internal/cjs/index.typings.js +54 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +29 -6
- package/build/internal/cjs/meta.js +41 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +14 -3
- package/build/internal/es/index.mjs +62 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +52 -5
- package/build/internal/es/index.typings.mjs +53 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +29 -6
- package/build/internal/es/meta.mjs +40 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -827,6 +827,22 @@ interface UpdateCarrierSettingsRequest {
|
|
|
827
827
|
}
|
|
828
828
|
interface UpdateCarrierSettingsResponse {
|
|
829
829
|
}
|
|
830
|
+
interface SetDeliveryCarrierActiveStatusRequest {
|
|
831
|
+
/**
|
|
832
|
+
* Carrier app ID.
|
|
833
|
+
* @format GUID
|
|
834
|
+
*/
|
|
835
|
+
carrierAppId: string;
|
|
836
|
+
/**
|
|
837
|
+
* Row ID that triggered the change.
|
|
838
|
+
* @format GUID
|
|
839
|
+
*/
|
|
840
|
+
rowId: string;
|
|
841
|
+
/** Whether the configuration defined in the row is active. */
|
|
842
|
+
active: boolean | null;
|
|
843
|
+
}
|
|
844
|
+
interface SetDeliveryCarrierActiveStatusResponse {
|
|
845
|
+
}
|
|
830
846
|
interface UpdateExtendedFieldsRequest {
|
|
831
847
|
/** ID of the entity to update. */
|
|
832
848
|
_id: string;
|
|
@@ -1466,19 +1482,19 @@ declare enum WebhookIdentityType {
|
|
|
1466
1482
|
}
|
|
1467
1483
|
/** @enumType */
|
|
1468
1484
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1469
|
-
interface
|
|
1485
|
+
interface AccountInfo {
|
|
1470
1486
|
/**
|
|
1471
|
-
* ID of the account.
|
|
1487
|
+
* ID of the Wix account associated with the event.
|
|
1472
1488
|
* @format GUID
|
|
1473
1489
|
*/
|
|
1474
1490
|
accountId?: string | null;
|
|
1475
1491
|
/**
|
|
1476
|
-
* ID of the parent account.
|
|
1492
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
1477
1493
|
* @format GUID
|
|
1478
1494
|
*/
|
|
1479
1495
|
parentAccountId?: string | null;
|
|
1480
1496
|
/**
|
|
1481
|
-
* ID of the site
|
|
1497
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
1482
1498
|
* @format GUID
|
|
1483
1499
|
*/
|
|
1484
1500
|
siteId?: string | null;
|
|
@@ -1637,6 +1653,12 @@ type UpdateCarrierSettingsApplicationErrors = {
|
|
|
1637
1653
|
description?: string;
|
|
1638
1654
|
data?: Record<string, any>;
|
|
1639
1655
|
};
|
|
1656
|
+
/** @docsIgnore */
|
|
1657
|
+
type SetDeliveryCarrierActiveStatusApplicationErrors = {
|
|
1658
|
+
code?: 'DELIVERY_CARRIER_NOT_FOUND';
|
|
1659
|
+
description?: string;
|
|
1660
|
+
data?: Record<string, any>;
|
|
1661
|
+
};
|
|
1640
1662
|
interface BaseEventMetadata {
|
|
1641
1663
|
/**
|
|
1642
1664
|
* App instance ID.
|
|
@@ -2373,6 +2395,31 @@ interface UpdateCarrierSettingsOptions {
|
|
|
2373
2395
|
/** New status */
|
|
2374
2396
|
active: boolean | null;
|
|
2375
2397
|
}
|
|
2398
|
+
/**
|
|
2399
|
+
* Sets delivery carrier's active status.
|
|
2400
|
+
* @param carrierAppId - Carrier app ID.
|
|
2401
|
+
* @public
|
|
2402
|
+
* @documentationMaturity preview
|
|
2403
|
+
* @requiredField carrierAppId
|
|
2404
|
+
* @requiredField options
|
|
2405
|
+
* @requiredField options.active
|
|
2406
|
+
* @requiredField options.rowId
|
|
2407
|
+
* @permissionId ECOM.DELIVERY_CARRIER_UPDATE
|
|
2408
|
+
* @applicableIdentity APP
|
|
2409
|
+
* @fqn wix.ecom.deliveryprofile.v1.DeliveryProfiles.SetDeliveryCarrierActiveStatus
|
|
2410
|
+
*/
|
|
2411
|
+
declare function setDeliveryCarrierActiveStatus(carrierAppId: string, options: NonNullablePaths<SetDeliveryCarrierActiveStatusOptions, `active` | `rowId`, 2>): Promise<void & {
|
|
2412
|
+
__applicationErrorsType?: SetDeliveryCarrierActiveStatusApplicationErrors;
|
|
2413
|
+
}>;
|
|
2414
|
+
interface SetDeliveryCarrierActiveStatusOptions {
|
|
2415
|
+
/**
|
|
2416
|
+
* Row ID that triggered the change.
|
|
2417
|
+
* @format GUID
|
|
2418
|
+
*/
|
|
2419
|
+
rowId: string;
|
|
2420
|
+
/** Whether the configuration defined in the row is active. */
|
|
2421
|
+
active: boolean | null;
|
|
2422
|
+
}
|
|
2376
2423
|
/**
|
|
2377
2424
|
* Updates extended fields of a DeliveryProfile without incrementing revision
|
|
2378
2425
|
* @param _id - ID of the entity to update.
|
|
@@ -2393,4 +2440,4 @@ interface UpdateExtendedFieldsOptions {
|
|
|
2393
2440
|
namespaceData: Record<string, any> | null;
|
|
2394
2441
|
}
|
|
2395
2442
|
|
|
2396
|
-
export { type
|
|
2443
|
+
export { type AccountInfo, 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 SetDeliveryCarrierActiveStatusApplicationErrors, type SetDeliveryCarrierActiveStatusOptions, type SetDeliveryCarrierActiveStatusRequest, type SetDeliveryCarrierActiveStatusResponse, 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, setDeliveryCarrierActiveStatus, typedQueryDeliveryProfiles, updateDeliveryCarrier, updateDeliveryProfile, updateDeliveryRegion, updateExtendedFields };
|
|
@@ -568,6 +568,27 @@ function updateCarrierSettings(payload) {
|
|
|
568
568
|
}
|
|
569
569
|
return __updateCarrierSettings;
|
|
570
570
|
}
|
|
571
|
+
function setDeliveryCarrierActiveStatus(payload) {
|
|
572
|
+
function __setDeliveryCarrierActiveStatus({ host }) {
|
|
573
|
+
const metadata = {
|
|
574
|
+
entityFqdn: "wix.ecom.v1.delivery_profile",
|
|
575
|
+
method: "POST",
|
|
576
|
+
methodFqn: "wix.ecom.deliveryprofile.v1.DeliveryProfiles.SetDeliveryCarrierActiveStatus",
|
|
577
|
+
packageName: PACKAGE_NAME,
|
|
578
|
+
migrationOptions: {
|
|
579
|
+
optInTransformResponse: true
|
|
580
|
+
},
|
|
581
|
+
url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
|
|
582
|
+
protoPath: "/v1/delivery-profiles/delivery-carriers/set-active-status",
|
|
583
|
+
data: payload,
|
|
584
|
+
host
|
|
585
|
+
}),
|
|
586
|
+
data: payload
|
|
587
|
+
};
|
|
588
|
+
return metadata;
|
|
589
|
+
}
|
|
590
|
+
return __setDeliveryCarrierActiveStatus;
|
|
591
|
+
}
|
|
571
592
|
function updateExtendedFields(payload) {
|
|
572
593
|
function __updateExtendedFields({ host }) {
|
|
573
594
|
const metadata = {
|
|
@@ -1167,6 +1188,37 @@ async function updateCarrierSettings2(carrierId, options) {
|
|
|
1167
1188
|
throw transformedError;
|
|
1168
1189
|
}
|
|
1169
1190
|
}
|
|
1191
|
+
async function setDeliveryCarrierActiveStatus2(carrierAppId, options) {
|
|
1192
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1193
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1194
|
+
carrierAppId,
|
|
1195
|
+
rowId: options?.rowId,
|
|
1196
|
+
active: options?.active
|
|
1197
|
+
});
|
|
1198
|
+
const reqOpts = setDeliveryCarrierActiveStatus(payload);
|
|
1199
|
+
sideEffects?.onSiteCall?.();
|
|
1200
|
+
try {
|
|
1201
|
+
const result = await httpClient.request(reqOpts);
|
|
1202
|
+
sideEffects?.onSuccess?.(result);
|
|
1203
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1204
|
+
} catch (err) {
|
|
1205
|
+
const transformedError = sdkTransformError(
|
|
1206
|
+
err,
|
|
1207
|
+
{
|
|
1208
|
+
spreadPathsToArguments: {},
|
|
1209
|
+
explicitPathsToArguments: {
|
|
1210
|
+
carrierAppId: "$[0]",
|
|
1211
|
+
rowId: "$[1].rowId",
|
|
1212
|
+
active: "$[1].active"
|
|
1213
|
+
},
|
|
1214
|
+
singleArgumentUnchanged: false
|
|
1215
|
+
},
|
|
1216
|
+
["carrierAppId", "options"]
|
|
1217
|
+
);
|
|
1218
|
+
sideEffects?.onError?.(err);
|
|
1219
|
+
throw transformedError;
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1170
1222
|
async function updateExtendedFields2(_id, namespace, options) {
|
|
1171
1223
|
const { httpClient, sideEffects } = arguments[3];
|
|
1172
1224
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1219,6 +1271,7 @@ export {
|
|
|
1219
1271
|
queryDeliveryProfiles2 as queryDeliveryProfiles,
|
|
1220
1272
|
removeDeliveryCarrier2 as removeDeliveryCarrier,
|
|
1221
1273
|
removeDeliveryRegion2 as removeDeliveryRegion,
|
|
1274
|
+
setDeliveryCarrierActiveStatus2 as setDeliveryCarrierActiveStatus,
|
|
1222
1275
|
typedQueryDeliveryProfiles,
|
|
1223
1276
|
updateCarrierSettings2 as updateCarrierSettings,
|
|
1224
1277
|
updateDeliveryCarrier2 as updateDeliveryCarrier,
|