@wix/auto_sdk_ecom_local-delivery-options 1.0.28 → 1.0.29
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 +8 -18
- package/build/cjs/index.js +50 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +7 -1
- package/build/cjs/index.typings.js +32 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +8 -18
- package/build/es/index.mjs +50 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +7 -1
- package/build/es/index.typings.mjs +31 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +8 -18
- package/build/internal/cjs/index.js +50 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +7 -1
- package/build/internal/cjs/index.typings.js +32 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +8 -18
- package/build/internal/es/index.mjs +50 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +7 -1
- package/build/internal/es/index.typings.mjs +31 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -831,6 +831,12 @@ interface LocalDeliveryOptionsQueryBuilder {
|
|
|
831
831
|
/** @documentationMaturity preview */
|
|
832
832
|
find: () => Promise<LocalDeliveryOptionsQueryResult>;
|
|
833
833
|
}
|
|
834
|
+
/**
|
|
835
|
+
* @hidden
|
|
836
|
+
* @fqn com.wix.ecom.shipments.localdelivery.LocalDelivery.QueryLocalDeliveryOptions
|
|
837
|
+
* @requiredField query
|
|
838
|
+
*/
|
|
839
|
+
declare function typedQueryLocalDeliveryOptions(query: QueryV2): Promise<NonNullablePaths<QueryLocalDeliveryOptionsResponse, `localDeliveryOptions` | `localDeliveryOptions.${number}.radiusConfig.radius` | `localDeliveryOptions.${number}.radiusConfig.lengthUnit`, 5>>;
|
|
834
840
|
/** @param _id - LocalDeliveryOptionId - unique identifier of local delivery option
|
|
835
841
|
* @public
|
|
836
842
|
* @documentationMaturity preview
|
|
@@ -1153,4 +1159,4 @@ interface RemoveDeliveryRegionOptions {
|
|
|
1153
1159
|
revision?: string | null;
|
|
1154
1160
|
}
|
|
1155
1161
|
|
|
1156
|
-
export { type ActionEvent, type AddDeliveryRegionOptions, type AddDeliveryRegionRequest, type AddDeliveryRegionResponse, type AddressLocation, type BulkCreateLocalDeliveryOptionApplicationErrors, type BulkCreateLocalDeliveryOptionRequest, type BulkCreateLocalDeliveryOptionResponse, type BulkDeleteLocalDeliveryOptionRequest, type BulkDeleteLocalDeliveryOptionResponse, type BulkUpdateLocalDeliveryOptionRequest, type BulkUpdateLocalDeliveryOptionResponse, type Condition, ConditionType, type ConditionTypeWithLiterals, type ConditionalRates, type CreateLocalDeliveryOptionApplicationErrors, type CreateLocalDeliveryOptionRequest, type CreateLocalDeliveryOptionResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type CustomAreaConfig, DayOfWeek, type DayOfWeekWithLiterals, type DaySlot, type Days, type DeleteLocalDeliveryOptionOptions, type DeleteLocalDeliveryOptionRequest, type DeleteLocalDeliveryOptionResponse, type Destination, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GetLocalDeliveryOptionOptions, type GetLocalDeliveryOptionRequest, type GetLocalDeliveryOptionResponse, type IdentificationData, type IdentificationDataIdOneOf, LengthUnit, type LengthUnitWithLiterals, type ListLocalDeliveryOptionsRequest, type ListLocalDeliveryOptionsResponse, type LocalDeliveryAddress, type LocalDeliveryOption, type LocalDeliveryOptionConfigOneOf, type LocalDeliveryOptionError, type LocalDeliveryOptionsQueryBuilder, type LocalDeliveryOptionsQueryResult, LogicalOperator, type LogicalOperatorWithLiterals, type MessageEnvelope, type Paging, type QueryLocalDeliveryOptionsRequest, type QueryLocalDeliveryOptionsResponse, type QueryV2, type QueryV2PagingMethodOneOf, type RadiusConfig, type RemoveDeliveryRegionOptions, type RemoveDeliveryRegionRequest, type RemoveDeliveryRegionResponse, type RestoreInfo, type ScheduledDelivery, SortOrder, type SortOrderWithLiterals, type Sorting, type TimeOfDay, type TimePoint, type TimeSlot, type TimeWindow, type UpdateLocalDeliveryOption, type UpdateLocalDeliveryOptionRequest, type UpdateLocalDeliveryOptionResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type ZipCodeConfig, addDeliveryRegion, bulkCreateLocalDeliveryOption, bulkDeleteLocalDeliveryOption, bulkUpdateLocalDeliveryOption, createLocalDeliveryOption, deleteLocalDeliveryOption, getLocalDeliveryOption, listLocalDeliveryOptions, queryLocalDeliveryOptions, removeDeliveryRegion, updateLocalDeliveryOption };
|
|
1162
|
+
export { type ActionEvent, type AddDeliveryRegionOptions, type AddDeliveryRegionRequest, type AddDeliveryRegionResponse, type AddressLocation, type BulkCreateLocalDeliveryOptionApplicationErrors, type BulkCreateLocalDeliveryOptionRequest, type BulkCreateLocalDeliveryOptionResponse, type BulkDeleteLocalDeliveryOptionRequest, type BulkDeleteLocalDeliveryOptionResponse, type BulkUpdateLocalDeliveryOptionRequest, type BulkUpdateLocalDeliveryOptionResponse, type Condition, ConditionType, type ConditionTypeWithLiterals, type ConditionalRates, type CreateLocalDeliveryOptionApplicationErrors, type CreateLocalDeliveryOptionRequest, type CreateLocalDeliveryOptionResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type CustomAreaConfig, DayOfWeek, type DayOfWeekWithLiterals, type DaySlot, type Days, type DeleteLocalDeliveryOptionOptions, type DeleteLocalDeliveryOptionRequest, type DeleteLocalDeliveryOptionResponse, type Destination, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GetLocalDeliveryOptionOptions, type GetLocalDeliveryOptionRequest, type GetLocalDeliveryOptionResponse, type IdentificationData, type IdentificationDataIdOneOf, LengthUnit, type LengthUnitWithLiterals, type ListLocalDeliveryOptionsRequest, type ListLocalDeliveryOptionsResponse, type LocalDeliveryAddress, type LocalDeliveryOption, type LocalDeliveryOptionConfigOneOf, type LocalDeliveryOptionError, type LocalDeliveryOptionsQueryBuilder, type LocalDeliveryOptionsQueryResult, LogicalOperator, type LogicalOperatorWithLiterals, type MessageEnvelope, type Paging, type QueryLocalDeliveryOptionsRequest, type QueryLocalDeliveryOptionsResponse, type QueryV2, type QueryV2PagingMethodOneOf, type RadiusConfig, type RemoveDeliveryRegionOptions, type RemoveDeliveryRegionRequest, type RemoveDeliveryRegionResponse, type RestoreInfo, type ScheduledDelivery, SortOrder, type SortOrderWithLiterals, type Sorting, type TimeOfDay, type TimePoint, type TimeSlot, type TimeWindow, type UpdateLocalDeliveryOption, type UpdateLocalDeliveryOptionRequest, type UpdateLocalDeliveryOptionResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type ZipCodeConfig, addDeliveryRegion, bulkCreateLocalDeliveryOption, bulkDeleteLocalDeliveryOption, bulkUpdateLocalDeliveryOption, createLocalDeliveryOption, deleteLocalDeliveryOption, getLocalDeliveryOption, listLocalDeliveryOptions, queryLocalDeliveryOptions, removeDeliveryRegion, typedQueryLocalDeliveryOptions, updateLocalDeliveryOption };
|
|
@@ -845,6 +845,36 @@ function queryLocalDeliveryOptions2() {
|
|
|
845
845
|
transformationPaths: {}
|
|
846
846
|
});
|
|
847
847
|
}
|
|
848
|
+
async function typedQueryLocalDeliveryOptions(query) {
|
|
849
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
850
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ query });
|
|
851
|
+
const reqOpts = queryLocalDeliveryOptions(payload);
|
|
852
|
+
sideEffects?.onSiteCall?.();
|
|
853
|
+
try {
|
|
854
|
+
const result = await httpClient.request(reqOpts);
|
|
855
|
+
sideEffects?.onSuccess?.(result);
|
|
856
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
857
|
+
transformPaths2(result.data, [
|
|
858
|
+
{
|
|
859
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
860
|
+
paths: [{ path: "localDeliveryOptions.radiusConfig.address" }]
|
|
861
|
+
}
|
|
862
|
+
])
|
|
863
|
+
);
|
|
864
|
+
} catch (err) {
|
|
865
|
+
const transformedError = sdkTransformError(
|
|
866
|
+
err,
|
|
867
|
+
{
|
|
868
|
+
spreadPathsToArguments: {},
|
|
869
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
870
|
+
singleArgumentUnchanged: false
|
|
871
|
+
},
|
|
872
|
+
["query"]
|
|
873
|
+
);
|
|
874
|
+
sideEffects?.onError?.(err);
|
|
875
|
+
throw transformedError;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
848
878
|
async function updateLocalDeliveryOption2(_id, localDeliveryOption) {
|
|
849
879
|
const { httpClient, sideEffects } = arguments[2];
|
|
850
880
|
const payload = transformPaths2(
|
|
@@ -1114,6 +1144,7 @@ export {
|
|
|
1114
1144
|
listLocalDeliveryOptions2 as listLocalDeliveryOptions,
|
|
1115
1145
|
queryLocalDeliveryOptions2 as queryLocalDeliveryOptions,
|
|
1116
1146
|
removeDeliveryRegion2 as removeDeliveryRegion,
|
|
1147
|
+
typedQueryLocalDeliveryOptions,
|
|
1117
1148
|
updateLocalDeliveryOption2 as updateLocalDeliveryOption
|
|
1118
1149
|
};
|
|
1119
1150
|
//# sourceMappingURL=index.typings.mjs.map
|