@wix/auto_sdk_ecom_delivery-profile 1.0.95 → 1.0.96
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 +48 -1
- package/build/cjs/index.typings.js +54 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +25 -2
- 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 +48 -1
- package/build/es/index.typings.mjs +53 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +25 -2
- 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 +48 -1
- 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 +25 -2
- 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 +48 -1
- 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 +25 -2
- package/build/internal/es/meta.mjs +40 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { DeliveryProfile, CreateDeliveryProfileApplicationErrors, UpdateDeliveryProfile, UpdateDeliveryProfileApplicationErrors, DeliveryRegion, AddDeliveryRegionOptions, AddDeliveryRegionResponse, AddDeliveryRegionApplicationErrors, AddDeliveryRegionValidationErrors, UpdateDeliveryRegionIdentifiers, UpdateDeliveryRegion, UpdateDeliveryRegionOptions, UpdateDeliveryRegionResponse, UpdateDeliveryRegionApplicationErrors, UpdateDeliveryRegionValidationErrors, GetDeliveryProfileByDeliveryRegionIdResponse, GetDeliveryProfileByDeliveryRegionIdApplicationErrors, RemoveDeliveryRegionIdentifiers, RemoveDeliveryRegionOptions, RemoveDeliveryRegionResponse, RemoveDeliveryRegionApplicationErrors, AddDeliveryCarrierOptions, AddDeliveryCarrierResponse, AddDeliveryCarrierApplicationErrors, AddDeliveryCarrierValidationErrors, RemoveDeliveryCarrierOptions, RemoveDeliveryCarrierResponse, RemoveDeliveryCarrierApplicationErrors, UpdateDeliveryCarrierOptions, UpdateDeliveryCarrierResponse, UpdateDeliveryCarrierApplicationErrors, ListInstalledDeliveryCarriersResponse, GetDeliveryDestinationPropertiesResponse, ListDeliveryCarriersOptions, ListDeliveryCarriersResponse, ListDeliveryCarriersApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, DeliveryProfileCreatedEnvelope, DeliveryProfileDeletedEnvelope, DeliveryProfileRegionAddedEnvelope, DeliveryProfileRegionRemovedEnvelope, DeliveryProfileRegionUpdatedEnvelope, DeliveryProfileUpdatedEnvelope, DeliveryProfilesQueryBuilder, DeliveryProfileQuery, typedQueryDeliveryProfiles } from './index.typings.js';
|
|
3
|
-
export { AccountDetails, ActionEvent, AddDeliveryCarrierRequest, AddDeliveryRegionRequest, AdditionalCharge, ApplicationError, Asset, BackupRate, BaseEventMetadata, BulkActionMetadata, ChargeType, ChargeTypeWithLiterals, Column, CommonQueryWithEntityContext, CountryDeliveryProperties, CreateDeliveryProfileRequest, CreateDeliveryProfileResponse, CreatedBy, CreatedByIdOneOf, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DashboardTable, DeleteContext, DeleteDefaultDeliveryProfileRequest, DeleteDefaultDeliveryProfileResponse, DeleteDeliveryProfileRequest, DeleteDeliveryProfileResponse, DeleteStatus, DeleteStatusWithLiterals, DeliveryCarrier, DeliveryCarrierDetails, DeliveryCarrierRegionalSettings, DeliveryDestinationProperties, DeliveryProfileQuerySpec, DeliveryProfilesQueryResult, DeliveryRegionAdded, DeliveryRegionRemoved, DeliveryRegionUpdated, Destination, DestinationScope, DestinationScopeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetDeliveryDestinationPropertiesRequest, GetDeliveryProfileByDeliveryRegionIdRequest, GetDeliveryProfileRequest, GetDeliveryProfileResponse, IdentificationData, IdentificationDataIdOneOf, InstalledDeliveryCarrier, ItemMetadata, ListDeliveryCarriersRequest, ListDeliveryCarriersResult, ListDeliveryDestinationsRequest, ListDeliveryDestinationsResponse, ListInstalledDeliveryCarriersRequest, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, PicassoAssigned, PicassoUnassigned, QueryDeliveryProfilesRequest, QueryDeliveryProfilesResponse, RemoveDeliveryCarrierRequest, RemoveDeliveryRegionRequest, RequiredZipcodeRequest, RequiredZipcodeResponse, RestoreInfo, Row, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, SubdivisionDeliveryProperties, UpdateCarrierSettingsApplicationErrors, UpdateCarrierSettingsOptions, UpdateCarrierSettingsRequest, UpdateCarrierSettingsResponse, UpdateDeliveryCarrierRequest, UpdateDeliveryProfileRequest, UpdateDeliveryProfileResponse, UpdateDeliveryRegionRequest, UpdateExtendedFieldsRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.js';
|
|
2
|
+
import { DeliveryProfile, CreateDeliveryProfileApplicationErrors, UpdateDeliveryProfile, UpdateDeliveryProfileApplicationErrors, DeliveryRegion, AddDeliveryRegionOptions, AddDeliveryRegionResponse, AddDeliveryRegionApplicationErrors, AddDeliveryRegionValidationErrors, UpdateDeliveryRegionIdentifiers, UpdateDeliveryRegion, UpdateDeliveryRegionOptions, UpdateDeliveryRegionResponse, UpdateDeliveryRegionApplicationErrors, UpdateDeliveryRegionValidationErrors, GetDeliveryProfileByDeliveryRegionIdResponse, GetDeliveryProfileByDeliveryRegionIdApplicationErrors, RemoveDeliveryRegionIdentifiers, RemoveDeliveryRegionOptions, RemoveDeliveryRegionResponse, RemoveDeliveryRegionApplicationErrors, AddDeliveryCarrierOptions, AddDeliveryCarrierResponse, AddDeliveryCarrierApplicationErrors, AddDeliveryCarrierValidationErrors, RemoveDeliveryCarrierOptions, RemoveDeliveryCarrierResponse, RemoveDeliveryCarrierApplicationErrors, UpdateDeliveryCarrierOptions, UpdateDeliveryCarrierResponse, UpdateDeliveryCarrierApplicationErrors, ListInstalledDeliveryCarriersResponse, GetDeliveryDestinationPropertiesResponse, ListDeliveryCarriersOptions, ListDeliveryCarriersResponse, ListDeliveryCarriersApplicationErrors, SetDeliveryCarrierActiveStatusOptions, SetDeliveryCarrierActiveStatusApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, DeliveryProfileCreatedEnvelope, DeliveryProfileDeletedEnvelope, DeliveryProfileRegionAddedEnvelope, DeliveryProfileRegionRemovedEnvelope, DeliveryProfileRegionUpdatedEnvelope, DeliveryProfileUpdatedEnvelope, DeliveryProfilesQueryBuilder, DeliveryProfileQuery, typedQueryDeliveryProfiles } from './index.typings.js';
|
|
3
|
+
export { AccountDetails, ActionEvent, AddDeliveryCarrierRequest, AddDeliveryRegionRequest, AdditionalCharge, ApplicationError, Asset, BackupRate, BaseEventMetadata, BulkActionMetadata, ChargeType, ChargeTypeWithLiterals, Column, CommonQueryWithEntityContext, CountryDeliveryProperties, CreateDeliveryProfileRequest, CreateDeliveryProfileResponse, CreatedBy, CreatedByIdOneOf, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DashboardTable, DeleteContext, DeleteDefaultDeliveryProfileRequest, DeleteDefaultDeliveryProfileResponse, DeleteDeliveryProfileRequest, DeleteDeliveryProfileResponse, DeleteStatus, DeleteStatusWithLiterals, DeliveryCarrier, DeliveryCarrierDetails, DeliveryCarrierRegionalSettings, DeliveryDestinationProperties, DeliveryProfileQuerySpec, DeliveryProfilesQueryResult, DeliveryRegionAdded, DeliveryRegionRemoved, DeliveryRegionUpdated, Destination, DestinationScope, DestinationScopeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetDeliveryDestinationPropertiesRequest, GetDeliveryProfileByDeliveryRegionIdRequest, GetDeliveryProfileRequest, GetDeliveryProfileResponse, IdentificationData, IdentificationDataIdOneOf, InstalledDeliveryCarrier, ItemMetadata, ListDeliveryCarriersRequest, ListDeliveryCarriersResult, ListDeliveryDestinationsRequest, ListDeliveryDestinationsResponse, ListInstalledDeliveryCarriersRequest, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, PicassoAssigned, PicassoUnassigned, QueryDeliveryProfilesRequest, QueryDeliveryProfilesResponse, RemoveDeliveryCarrierRequest, RemoveDeliveryRegionRequest, RequiredZipcodeRequest, RequiredZipcodeResponse, RestoreInfo, Row, ServiceProvisioned, ServiceRemoved, SetDeliveryCarrierActiveStatusRequest, SetDeliveryCarrierActiveStatusResponse, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, SubdivisionDeliveryProperties, UpdateCarrierSettingsApplicationErrors, UpdateCarrierSettingsOptions, UpdateCarrierSettingsRequest, UpdateCarrierSettingsResponse, UpdateDeliveryCarrierRequest, UpdateDeliveryProfileRequest, UpdateDeliveryProfileResponse, UpdateDeliveryRegionRequest, UpdateExtendedFieldsRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createDeliveryProfile$1(httpClient: HttpClient): CreateDeliveryProfileSignature;
|
|
6
6
|
interface CreateDeliveryProfileSignature {
|
|
@@ -171,6 +171,16 @@ interface ListDeliveryCarriersSignature {
|
|
|
171
171
|
__applicationErrorsType?: ListDeliveryCarriersApplicationErrors;
|
|
172
172
|
}>;
|
|
173
173
|
}
|
|
174
|
+
declare function setDeliveryCarrierActiveStatus$1(httpClient: HttpClient): SetDeliveryCarrierActiveStatusSignature;
|
|
175
|
+
interface SetDeliveryCarrierActiveStatusSignature {
|
|
176
|
+
/**
|
|
177
|
+
* Sets delivery carrier's active status.
|
|
178
|
+
* @param - Carrier app ID.
|
|
179
|
+
*/
|
|
180
|
+
(carrierAppId: string, options: NonNullablePaths<SetDeliveryCarrierActiveStatusOptions, `active` | `rowId`, 2>): Promise<void & {
|
|
181
|
+
__applicationErrorsType?: SetDeliveryCarrierActiveStatusApplicationErrors;
|
|
182
|
+
}>;
|
|
183
|
+
}
|
|
174
184
|
declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
175
185
|
interface UpdateExtendedFieldsSignature {
|
|
176
186
|
/**
|
|
@@ -205,6 +215,7 @@ declare const updateDeliveryCarrier: MaybeContext<BuildRESTFunction<typeof updat
|
|
|
205
215
|
declare const listInstalledDeliveryCarriers: MaybeContext<BuildRESTFunction<typeof listInstalledDeliveryCarriers$1> & typeof listInstalledDeliveryCarriers$1>;
|
|
206
216
|
declare const getDeliveryDestinationProperties: MaybeContext<BuildRESTFunction<typeof getDeliveryDestinationProperties$1> & typeof getDeliveryDestinationProperties$1>;
|
|
207
217
|
declare const listDeliveryCarriers: MaybeContext<BuildRESTFunction<typeof listDeliveryCarriers$1> & typeof listDeliveryCarriers$1>;
|
|
218
|
+
declare const setDeliveryCarrierActiveStatus: MaybeContext<BuildRESTFunction<typeof setDeliveryCarrierActiveStatus$1> & typeof setDeliveryCarrierActiveStatus$1>;
|
|
208
219
|
declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
|
|
209
220
|
declare const queryDeliveryProfiles: MaybeContext<BuildRESTFunction<typeof customQueryDeliveryProfiles> & typeof customQueryDeliveryProfiles>;
|
|
210
221
|
/** */
|
|
@@ -220,4 +231,4 @@ declare const onDeliveryProfileRegionUpdated: BuildEventDefinition<typeof onDeli
|
|
|
220
231
|
/** */
|
|
221
232
|
declare const onDeliveryProfileUpdated: BuildEventDefinition<typeof onDeliveryProfileUpdated$1> & typeof onDeliveryProfileUpdated$1;
|
|
222
233
|
|
|
223
|
-
export { AddDeliveryCarrierApplicationErrors, AddDeliveryCarrierOptions, AddDeliveryCarrierResponse, AddDeliveryCarrierValidationErrors, AddDeliveryRegionApplicationErrors, AddDeliveryRegionOptions, AddDeliveryRegionResponse, AddDeliveryRegionValidationErrors, CreateDeliveryProfileApplicationErrors, DeliveryProfile, DeliveryProfileCreatedEnvelope, DeliveryProfileDeletedEnvelope, DeliveryProfileQuery, DeliveryProfileRegionAddedEnvelope, DeliveryProfileRegionRemovedEnvelope, DeliveryProfileRegionUpdatedEnvelope, DeliveryProfileUpdatedEnvelope, DeliveryProfilesQueryBuilder, DeliveryRegion, GetDeliveryDestinationPropertiesResponse, GetDeliveryProfileByDeliveryRegionIdApplicationErrors, GetDeliveryProfileByDeliveryRegionIdResponse, ListDeliveryCarriersApplicationErrors, ListDeliveryCarriersOptions, ListDeliveryCarriersResponse, ListInstalledDeliveryCarriersResponse, RemoveDeliveryCarrierApplicationErrors, RemoveDeliveryCarrierOptions, RemoveDeliveryCarrierResponse, RemoveDeliveryRegionApplicationErrors, RemoveDeliveryRegionIdentifiers, RemoveDeliveryRegionOptions, RemoveDeliveryRegionResponse, UpdateDeliveryCarrierApplicationErrors, UpdateDeliveryCarrierOptions, UpdateDeliveryCarrierResponse, UpdateDeliveryProfile, UpdateDeliveryProfileApplicationErrors, UpdateDeliveryRegion, UpdateDeliveryRegionApplicationErrors, UpdateDeliveryRegionIdentifiers, UpdateDeliveryRegionOptions, UpdateDeliveryRegionResponse, UpdateDeliveryRegionValidationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, addDeliveryCarrier, addDeliveryRegion, createDeliveryProfile, deleteDeliveryProfile, getDeliveryDestinationProperties, getDeliveryProfile, getDeliveryProfileByDeliveryRegionId, listDeliveryCarriers, listInstalledDeliveryCarriers, onDeliveryProfileCreated, onDeliveryProfileDeleted, onDeliveryProfileRegionAdded, onDeliveryProfileRegionRemoved, onDeliveryProfileRegionUpdated, onDeliveryProfileUpdated, queryDeliveryProfiles, removeDeliveryCarrier, removeDeliveryRegion, updateDeliveryCarrier, updateDeliveryProfile, updateDeliveryRegion, updateExtendedFields };
|
|
234
|
+
export { AddDeliveryCarrierApplicationErrors, AddDeliveryCarrierOptions, AddDeliveryCarrierResponse, AddDeliveryCarrierValidationErrors, AddDeliveryRegionApplicationErrors, AddDeliveryRegionOptions, AddDeliveryRegionResponse, AddDeliveryRegionValidationErrors, CreateDeliveryProfileApplicationErrors, DeliveryProfile, DeliveryProfileCreatedEnvelope, DeliveryProfileDeletedEnvelope, DeliveryProfileQuery, DeliveryProfileRegionAddedEnvelope, DeliveryProfileRegionRemovedEnvelope, DeliveryProfileRegionUpdatedEnvelope, DeliveryProfileUpdatedEnvelope, DeliveryProfilesQueryBuilder, DeliveryRegion, GetDeliveryDestinationPropertiesResponse, GetDeliveryProfileByDeliveryRegionIdApplicationErrors, GetDeliveryProfileByDeliveryRegionIdResponse, ListDeliveryCarriersApplicationErrors, ListDeliveryCarriersOptions, ListDeliveryCarriersResponse, ListInstalledDeliveryCarriersResponse, RemoveDeliveryCarrierApplicationErrors, RemoveDeliveryCarrierOptions, RemoveDeliveryCarrierResponse, RemoveDeliveryRegionApplicationErrors, RemoveDeliveryRegionIdentifiers, RemoveDeliveryRegionOptions, RemoveDeliveryRegionResponse, SetDeliveryCarrierActiveStatusApplicationErrors, SetDeliveryCarrierActiveStatusOptions, UpdateDeliveryCarrierApplicationErrors, UpdateDeliveryCarrierOptions, UpdateDeliveryCarrierResponse, UpdateDeliveryProfile, UpdateDeliveryProfileApplicationErrors, UpdateDeliveryRegion, UpdateDeliveryRegionApplicationErrors, UpdateDeliveryRegionIdentifiers, UpdateDeliveryRegionOptions, UpdateDeliveryRegionResponse, UpdateDeliveryRegionValidationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, addDeliveryCarrier, addDeliveryRegion, createDeliveryProfile, deleteDeliveryProfile, getDeliveryDestinationProperties, getDeliveryProfile, getDeliveryProfileByDeliveryRegionId, listDeliveryCarriers, listInstalledDeliveryCarriers, onDeliveryProfileCreated, onDeliveryProfileDeleted, onDeliveryProfileRegionAdded, onDeliveryProfileRegionRemoved, onDeliveryProfileRegionUpdated, onDeliveryProfileUpdated, queryDeliveryProfiles, removeDeliveryCarrier, removeDeliveryRegion, setDeliveryCarrierActiveStatus, updateDeliveryCarrier, updateDeliveryProfile, updateDeliveryRegion, updateExtendedFields };
|
package/build/cjs/index.js
CHANGED
|
@@ -46,6 +46,7 @@ __export(index_exports, {
|
|
|
46
46
|
queryDeliveryProfiles: () => queryDeliveryProfiles4,
|
|
47
47
|
removeDeliveryCarrier: () => removeDeliveryCarrier4,
|
|
48
48
|
removeDeliveryRegion: () => removeDeliveryRegion4,
|
|
49
|
+
setDeliveryCarrierActiveStatus: () => setDeliveryCarrierActiveStatus4,
|
|
49
50
|
updateCarrierSettings: () => updateCarrierSettings4,
|
|
50
51
|
updateDeliveryCarrier: () => updateDeliveryCarrier4,
|
|
51
52
|
updateDeliveryProfile: () => updateDeliveryProfile4,
|
|
@@ -627,6 +628,27 @@ function updateCarrierSettings(payload) {
|
|
|
627
628
|
}
|
|
628
629
|
return __updateCarrierSettings;
|
|
629
630
|
}
|
|
631
|
+
function setDeliveryCarrierActiveStatus(payload) {
|
|
632
|
+
function __setDeliveryCarrierActiveStatus({ host }) {
|
|
633
|
+
const metadata = {
|
|
634
|
+
entityFqdn: "wix.ecom.v1.delivery_profile",
|
|
635
|
+
method: "POST",
|
|
636
|
+
methodFqn: "wix.ecom.deliveryprofile.v1.DeliveryProfiles.SetDeliveryCarrierActiveStatus",
|
|
637
|
+
packageName: PACKAGE_NAME,
|
|
638
|
+
migrationOptions: {
|
|
639
|
+
optInTransformResponse: true
|
|
640
|
+
},
|
|
641
|
+
url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
|
|
642
|
+
protoPath: "/v1/delivery-profiles/delivery-carriers/set-active-status",
|
|
643
|
+
data: payload,
|
|
644
|
+
host
|
|
645
|
+
}),
|
|
646
|
+
data: payload
|
|
647
|
+
};
|
|
648
|
+
return metadata;
|
|
649
|
+
}
|
|
650
|
+
return __setDeliveryCarrierActiveStatus;
|
|
651
|
+
}
|
|
630
652
|
function updateExtendedFields(payload) {
|
|
631
653
|
function __updateExtendedFields({ host }) {
|
|
632
654
|
const metadata = {
|
|
@@ -1226,6 +1248,37 @@ async function updateCarrierSettings2(carrierId, options) {
|
|
|
1226
1248
|
throw transformedError;
|
|
1227
1249
|
}
|
|
1228
1250
|
}
|
|
1251
|
+
async function setDeliveryCarrierActiveStatus2(carrierAppId, options) {
|
|
1252
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1253
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1254
|
+
carrierAppId,
|
|
1255
|
+
rowId: options?.rowId,
|
|
1256
|
+
active: options?.active
|
|
1257
|
+
});
|
|
1258
|
+
const reqOpts = setDeliveryCarrierActiveStatus(payload);
|
|
1259
|
+
sideEffects?.onSiteCall?.();
|
|
1260
|
+
try {
|
|
1261
|
+
const result = await httpClient.request(reqOpts);
|
|
1262
|
+
sideEffects?.onSuccess?.(result);
|
|
1263
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1264
|
+
} catch (err) {
|
|
1265
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1266
|
+
err,
|
|
1267
|
+
{
|
|
1268
|
+
spreadPathsToArguments: {},
|
|
1269
|
+
explicitPathsToArguments: {
|
|
1270
|
+
carrierAppId: "$[0]",
|
|
1271
|
+
rowId: "$[1].rowId",
|
|
1272
|
+
active: "$[1].active"
|
|
1273
|
+
},
|
|
1274
|
+
singleArgumentUnchanged: false
|
|
1275
|
+
},
|
|
1276
|
+
["carrierAppId", "options"]
|
|
1277
|
+
);
|
|
1278
|
+
sideEffects?.onError?.(err);
|
|
1279
|
+
throw transformedError;
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1229
1282
|
async function updateExtendedFields2(_id, namespace, options) {
|
|
1230
1283
|
const { httpClient, sideEffects } = arguments[3];
|
|
1231
1284
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1386,6 +1439,14 @@ function updateCarrierSettings3(httpClient) {
|
|
|
1386
1439
|
{ httpClient }
|
|
1387
1440
|
);
|
|
1388
1441
|
}
|
|
1442
|
+
function setDeliveryCarrierActiveStatus3(httpClient) {
|
|
1443
|
+
return (carrierAppId, options) => setDeliveryCarrierActiveStatus2(
|
|
1444
|
+
carrierAppId,
|
|
1445
|
+
options,
|
|
1446
|
+
// @ts-ignore
|
|
1447
|
+
{ httpClient }
|
|
1448
|
+
);
|
|
1449
|
+
}
|
|
1389
1450
|
function updateExtendedFields3(httpClient) {
|
|
1390
1451
|
return (_id, namespace, options) => updateExtendedFields2(
|
|
1391
1452
|
_id,
|
|
@@ -1516,6 +1577,7 @@ var listInstalledDeliveryCarriers4 = /* @__PURE__ */ (0, import_rest_modules3.cr
|
|
|
1516
1577
|
var getDeliveryDestinationProperties4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDeliveryDestinationProperties3);
|
|
1517
1578
|
var listDeliveryCarriers4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listDeliveryCarriers3);
|
|
1518
1579
|
var updateCarrierSettings4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateCarrierSettings3);
|
|
1580
|
+
var setDeliveryCarrierActiveStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setDeliveryCarrierActiveStatus3);
|
|
1519
1581
|
var updateExtendedFields4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateExtendedFields3);
|
|
1520
1582
|
var queryDeliveryProfiles4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryDeliveryProfiles);
|
|
1521
1583
|
var onDeliveryProfileCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
@@ -1564,6 +1626,7 @@ var onDeliveryProfileUpdated2 = (0, import_event_definition_modules.createEventM
|
|
|
1564
1626
|
queryDeliveryProfiles,
|
|
1565
1627
|
removeDeliveryCarrier,
|
|
1566
1628
|
removeDeliveryRegion,
|
|
1629
|
+
setDeliveryCarrierActiveStatus,
|
|
1567
1630
|
updateCarrierSettings,
|
|
1568
1631
|
updateDeliveryCarrier,
|
|
1569
1632
|
updateDeliveryProfile,
|