@wix/auto_sdk_ecom_checkout-templates 1.0.146 → 1.0.148
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 +1 -1
- package/build/cjs/index.js +154 -12
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +74 -16
- package/build/cjs/index.typings.js +136 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +67 -8
- package/build/cjs/meta.js +97 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +14 -14
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +153 -12
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +74 -16
- package/build/es/index.typings.mjs +135 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +67 -8
- package/build/es/meta.mjs +96 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +14 -14
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +23 -3
- package/build/internal/cjs/index.js +154 -12
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +388 -16
- package/build/internal/cjs/index.typings.js +136 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +608 -9
- package/build/internal/cjs/meta.js +97 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +14 -14
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +23 -3
- package/build/internal/es/index.mjs +153 -12
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +388 -16
- package/build/internal/es/index.typings.mjs +135 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +608 -9
- package/build/internal/es/meta.mjs +96 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +14 -14
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
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
2
|
import { CheckoutTemplate, CreateCheckoutTemplateApplicationErrors, UpdateCheckoutTemplate, UpdateCheckoutTemplateApplicationErrors, CreateCheckoutFromTemplateResponse, CreateCheckoutFromTemplateApplicationErrors, RawHttpResponse, CreateAndRedirectToCheckoutApplicationErrors, CheckoutTemplateCreatedEnvelope, CheckoutTemplateDeletedEnvelope, CheckoutTemplateUpdatedEnvelope, CheckoutTemplateUsedEnvelope, CheckoutTemplatesQueryBuilder, CheckoutTemplateQuery, typedQueryCheckoutTemplates } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, AccountInfoMetadata, ActionEvent, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BaseEventMetadata, BillingSettings, BuyerInfo, BuyerInfoIdOneOf, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, Checkout, CheckoutCustomization, CheckoutTemplateQuerySpec, CheckoutTemplateUsed, CheckoutTemplatesQueryResult, Color, CommonQueryWithEntityContext, ConversionInfo, Coupon, CreateAndRedirectToCheckoutRequest, CreateCheckoutFromTemplateRequest, CreateCheckoutTemplateRequest, CreateCheckoutTemplateResponse, CreatedBy, CreatedByIdOneOf, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomContentReference, CustomField, CustomLineItem, CustomSettings, DeleteCheckoutTemplateRequest, DeleteCheckoutTemplateResponse, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, DiscountRule, DiscountRuleName, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCheckoutTemplateRequest, GetCheckoutTemplateResponse, GiftCard, GiftCardCalculationError, Group, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemAvailabilityStatusWithLiterals, ItemCombination, ItemCombinationLineItem, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LineItem, LineItemDiscount, ManualCalculationReason, ManualCalculationReasonWithLiterals, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlainTextValue, PlatformFee, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, Policy, PriceDescription, PriceSummary, ProductName, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QueryCheckoutTemplatesRequest, QueryCheckoutTemplatesResponse, RateType, RateTypeWithLiterals, Region, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, ServiceProperties, Severity, SeverityWithLiterals, ShippingInfo, ShippingOption, ShippingPrice, ShippingRegion, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UpdateCheckoutTemplateRequest, UpdateCheckoutTemplateResponse, V1ItemModifier, V1LineItem, V1ModifierGroup, ValidationError, VatId, VatType, VatTypeWithLiterals, Violation, WebClientCustomization, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals, utils } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BaseEventMetadata, BillingSettings, BulkActionMetadata, BulkCheckoutTemplateResult, BulkCreateCheckoutTemplatesApplicationErrors, BulkCreateCheckoutTemplatesOptions, BulkCreateCheckoutTemplatesRequest, BulkCreateCheckoutTemplatesResponse, BuyerInfo, BuyerInfoIdOneOf, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, Checkout, CheckoutCustomization, CheckoutTemplateQuerySpec, CheckoutTemplateUsed, CheckoutTemplatesQueryResult, Color, CommonQueryWithEntityContext, ConversionInfo, Coupon, CreateAndRedirectToCheckoutRequest, CreateCheckoutFromTemplateRequest, CreateCheckoutTemplateRequest, CreateCheckoutTemplateResponse, CreatedBy, CreatedByIdOneOf, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomContentReference, CustomField, CustomLineItem, CustomSettings, DeleteCheckoutTemplateRequest, DeleteCheckoutTemplateResponse, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, DiscountRule, DiscountRuleName, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCheckoutTemplateRequest, GetCheckoutTemplateResponse, GiftCard, GiftCardCalculationError, Group, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemAvailabilityStatusWithLiterals, ItemCombination, ItemCombinationLineItem, ItemMetadata, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LineItem, LineItemDiscount, ManualCalculationReason, ManualCalculationReasonWithLiterals, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlainTextValue, PlatformFee, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, Policy, PriceDescription, PriceSummary, ProductName, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QueryCheckoutTemplatesRequest, QueryCheckoutTemplatesResponse, RateType, RateTypeWithLiterals, Region, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, ServiceProperties, Severity, SeverityWithLiterals, ShippingInfo, ShippingOption, ShippingPrice, ShippingRegion, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UpdateCheckoutTemplateRequest, UpdateCheckoutTemplateResponse, V1ItemModifier, V1LineItem, V1ModifierGroup, ValidationError, VatId, VatType, VatTypeWithLiterals, Violation, WebClientCustomization, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createCheckoutTemplate$1(httpClient: HttpClient): CreateCheckoutTemplateSignature;
|
|
6
6
|
interface CreateCheckoutTemplateSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -50,6 +50,7 @@ __export(index_exports, {
|
|
|
50
50
|
VatType: () => VatType,
|
|
51
51
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
52
52
|
WeightUnit: () => WeightUnit,
|
|
53
|
+
bulkCreateCheckoutTemplates: () => bulkCreateCheckoutTemplates4,
|
|
53
54
|
createAndRedirectToCheckout: () => createAndRedirectToCheckout4,
|
|
54
55
|
createCheckoutFromTemplate: () => createCheckoutFromTemplate4,
|
|
55
56
|
createCheckoutTemplate: () => createCheckoutTemplate4,
|
|
@@ -201,6 +202,81 @@ function createCheckoutTemplate(payload) {
|
|
|
201
202
|
}
|
|
202
203
|
return __createCheckoutTemplate;
|
|
203
204
|
}
|
|
205
|
+
function bulkCreateCheckoutTemplates(payload) {
|
|
206
|
+
function __bulkCreateCheckoutTemplates({ host }) {
|
|
207
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
208
|
+
{
|
|
209
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
210
|
+
paths: [
|
|
211
|
+
{
|
|
212
|
+
path: "checkoutTemplates.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
path: "checkoutTemplates.customLineItems.physicalProperties.weight"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
221
|
+
paths: [
|
|
222
|
+
{
|
|
223
|
+
path: "checkoutTemplates.customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
path: "checkoutTemplates.customLineItems.serviceProperties.scheduledDate"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
path: "checkoutTemplates.customLineItems.serviceProperties.endDate"
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
]);
|
|
234
|
+
const metadata = {
|
|
235
|
+
entityFqdn: "wix.ecom.v1.checkout_template",
|
|
236
|
+
method: "POST",
|
|
237
|
+
methodFqn: "wix.ecom.checkout_template.api.v1.CheckoutTemplateService.BulkCreateCheckoutTemplates",
|
|
238
|
+
packageName: PACKAGE_NAME,
|
|
239
|
+
migrationOptions: {
|
|
240
|
+
optInTransformResponse: true
|
|
241
|
+
},
|
|
242
|
+
url: resolveWixEcomCheckoutTemplateApiV1CheckoutTemplateServiceUrl({
|
|
243
|
+
protoPath: "/v1/bulk/checkout-templates/create",
|
|
244
|
+
data: serializedData,
|
|
245
|
+
host
|
|
246
|
+
}),
|
|
247
|
+
data: serializedData,
|
|
248
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
249
|
+
{
|
|
250
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
251
|
+
paths: [
|
|
252
|
+
{
|
|
253
|
+
path: "results.item.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
path: "results.item.customLineItems.physicalProperties.weight"
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
262
|
+
paths: [
|
|
263
|
+
{
|
|
264
|
+
path: "results.item.customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
path: "results.item.customLineItems.serviceProperties.scheduledDate"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
path: "results.item.customLineItems.serviceProperties.endDate"
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
])
|
|
275
|
+
};
|
|
276
|
+
return metadata;
|
|
277
|
+
}
|
|
278
|
+
return __bulkCreateCheckoutTemplates;
|
|
279
|
+
}
|
|
204
280
|
function getCheckoutTemplate(payload) {
|
|
205
281
|
function __getCheckoutTemplate({ host }) {
|
|
206
282
|
const metadata = {
|
|
@@ -732,6 +808,64 @@ async function createCheckoutTemplate2(checkoutTemplate) {
|
|
|
732
808
|
throw transformedError;
|
|
733
809
|
}
|
|
734
810
|
}
|
|
811
|
+
async function bulkCreateCheckoutTemplates2(checkoutTemplates, options) {
|
|
812
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
813
|
+
const payload = (0, import_transform_paths2.transformPaths)(
|
|
814
|
+
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
815
|
+
checkoutTemplates,
|
|
816
|
+
returnEntity: options?.returnEntity
|
|
817
|
+
}),
|
|
818
|
+
[
|
|
819
|
+
{
|
|
820
|
+
transformFn: import_image.transformSDKImageToRESTImage,
|
|
821
|
+
paths: [
|
|
822
|
+
{ path: "checkoutTemplates.lineItems.catalogOverrideFields.image" },
|
|
823
|
+
{ path: "checkoutTemplates.customLineItems.media" }
|
|
824
|
+
]
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
828
|
+
paths: [{ path: "checkoutTemplates.customLineItems.url" }]
|
|
829
|
+
}
|
|
830
|
+
]
|
|
831
|
+
);
|
|
832
|
+
const reqOpts = bulkCreateCheckoutTemplates(payload);
|
|
833
|
+
sideEffects?.onSiteCall?.();
|
|
834
|
+
try {
|
|
835
|
+
const result = await httpClient.request(reqOpts);
|
|
836
|
+
sideEffects?.onSuccess?.(result);
|
|
837
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
838
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
839
|
+
{
|
|
840
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
841
|
+
paths: [
|
|
842
|
+
{ path: "results.item.lineItems.catalogOverrideFields.image" },
|
|
843
|
+
{ path: "results.item.customLineItems.media" }
|
|
844
|
+
]
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
848
|
+
paths: [{ path: "results.item.customLineItems.url" }]
|
|
849
|
+
}
|
|
850
|
+
])
|
|
851
|
+
);
|
|
852
|
+
} catch (err) {
|
|
853
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
854
|
+
err,
|
|
855
|
+
{
|
|
856
|
+
spreadPathsToArguments: {},
|
|
857
|
+
explicitPathsToArguments: {
|
|
858
|
+
checkoutTemplates: "$[0]",
|
|
859
|
+
returnEntity: "$[1].returnEntity"
|
|
860
|
+
},
|
|
861
|
+
singleArgumentUnchanged: false
|
|
862
|
+
},
|
|
863
|
+
["checkoutTemplates", "options"]
|
|
864
|
+
);
|
|
865
|
+
sideEffects?.onError?.(err);
|
|
866
|
+
throw transformedError;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
735
869
|
async function getCheckoutTemplate2(checkoutTemplateId) {
|
|
736
870
|
const { httpClient, sideEffects } = arguments[1];
|
|
737
871
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -946,9 +1080,7 @@ async function typedQueryCheckoutTemplates(query) {
|
|
|
946
1080
|
}
|
|
947
1081
|
}
|
|
948
1082
|
var utils = {
|
|
949
|
-
query:
|
|
950
|
-
...(0, import_query_builder_utils.createQueryUtils)()
|
|
951
|
-
}
|
|
1083
|
+
query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)()
|
|
952
1084
|
};
|
|
953
1085
|
async function createCheckoutFromTemplate2(checkoutTemplateId, siteId) {
|
|
954
1086
|
const { httpClient, sideEffects } = arguments[2];
|
|
@@ -1017,6 +1149,14 @@ function createCheckoutTemplate3(httpClient) {
|
|
|
1017
1149
|
{ httpClient }
|
|
1018
1150
|
);
|
|
1019
1151
|
}
|
|
1152
|
+
function bulkCreateCheckoutTemplates3(httpClient) {
|
|
1153
|
+
return (checkoutTemplates, options) => bulkCreateCheckoutTemplates2(
|
|
1154
|
+
checkoutTemplates,
|
|
1155
|
+
options,
|
|
1156
|
+
// @ts-ignore
|
|
1157
|
+
{ httpClient }
|
|
1158
|
+
);
|
|
1159
|
+
}
|
|
1020
1160
|
function getCheckoutTemplate3(httpClient) {
|
|
1021
1161
|
return (checkoutTemplateId) => getCheckoutTemplate2(
|
|
1022
1162
|
checkoutTemplateId,
|
|
@@ -1068,7 +1208,7 @@ function createAndRedirectToCheckout3(httpClient) {
|
|
|
1068
1208
|
{ httpClient }
|
|
1069
1209
|
);
|
|
1070
1210
|
}
|
|
1071
|
-
var onCheckoutTemplateCreated = (0, import_sdk_types.EventDefinition)(
|
|
1211
|
+
var onCheckoutTemplateCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1072
1212
|
"wix.ecom.v1.checkout_template_created",
|
|
1073
1213
|
true,
|
|
1074
1214
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -1107,7 +1247,7 @@ var onCheckoutTemplateCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
1107
1247
|
])
|
|
1108
1248
|
)
|
|
1109
1249
|
)();
|
|
1110
|
-
var onCheckoutTemplateDeleted = (0, import_sdk_types.EventDefinition)(
|
|
1250
|
+
var onCheckoutTemplateDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1111
1251
|
"wix.ecom.v1.checkout_template_deleted",
|
|
1112
1252
|
true,
|
|
1113
1253
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -1148,7 +1288,7 @@ var onCheckoutTemplateDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
1148
1288
|
])
|
|
1149
1289
|
)
|
|
1150
1290
|
)();
|
|
1151
|
-
var onCheckoutTemplateUpdated = (0, import_sdk_types.EventDefinition)(
|
|
1291
|
+
var onCheckoutTemplateUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1152
1292
|
"wix.ecom.v1.checkout_template_updated",
|
|
1153
1293
|
true,
|
|
1154
1294
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -1187,7 +1327,7 @@ var onCheckoutTemplateUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1187
1327
|
])
|
|
1188
1328
|
)
|
|
1189
1329
|
)();
|
|
1190
|
-
var onCheckoutTemplateUsed = (0, import_sdk_types.EventDefinition)(
|
|
1330
|
+
var onCheckoutTemplateUsed = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1191
1331
|
"wix.ecom.v1.checkout_template_used",
|
|
1192
1332
|
true,
|
|
1193
1333
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -1293,7 +1433,7 @@ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
|
1293
1433
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1294
1434
|
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
1295
1435
|
function customQueryCheckoutTemplates(httpClient) {
|
|
1296
|
-
const router = (0, import_query_method_router.createQueryOverloadRouter)({
|
|
1436
|
+
const router = /* @__PURE__ */ (0, import_query_method_router.createQueryOverloadRouter)({
|
|
1297
1437
|
builderQueryFunction: () => queryCheckoutTemplates3(httpClient)(),
|
|
1298
1438
|
typedQueryFunction: (query) => typedQueryCheckoutTemplates2(httpClient)(query),
|
|
1299
1439
|
hasOptionsParameter: false
|
|
@@ -1304,22 +1444,23 @@ function customQueryCheckoutTemplates(httpClient) {
|
|
|
1304
1444
|
return overloadedQuery;
|
|
1305
1445
|
}
|
|
1306
1446
|
var createCheckoutTemplate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createCheckoutTemplate3);
|
|
1447
|
+
var bulkCreateCheckoutTemplates4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateCheckoutTemplates3);
|
|
1307
1448
|
var getCheckoutTemplate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCheckoutTemplate3);
|
|
1308
1449
|
var updateCheckoutTemplate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateCheckoutTemplate3);
|
|
1309
1450
|
var deleteCheckoutTemplate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteCheckoutTemplate3);
|
|
1310
1451
|
var createCheckoutFromTemplate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createCheckoutFromTemplate3);
|
|
1311
1452
|
var createAndRedirectToCheckout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createAndRedirectToCheckout3);
|
|
1312
1453
|
var queryCheckoutTemplates4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryCheckoutTemplates);
|
|
1313
|
-
var onCheckoutTemplateCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
1454
|
+
var onCheckoutTemplateCreated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1314
1455
|
onCheckoutTemplateCreated
|
|
1315
1456
|
);
|
|
1316
|
-
var onCheckoutTemplateDeleted2 = (0, import_event_definition_modules.createEventModule)(
|
|
1457
|
+
var onCheckoutTemplateDeleted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1317
1458
|
onCheckoutTemplateDeleted
|
|
1318
1459
|
);
|
|
1319
|
-
var onCheckoutTemplateUpdated2 = (0, import_event_definition_modules.createEventModule)(
|
|
1460
|
+
var onCheckoutTemplateUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1320
1461
|
onCheckoutTemplateUpdated
|
|
1321
1462
|
);
|
|
1322
|
-
var onCheckoutTemplateUsed2 = (0, import_event_definition_modules.createEventModule)(
|
|
1463
|
+
var onCheckoutTemplateUsed2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1323
1464
|
onCheckoutTemplateUsed
|
|
1324
1465
|
);
|
|
1325
1466
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1354,6 +1495,7 @@ var onCheckoutTemplateUsed2 = (0, import_event_definition_modules.createEventMod
|
|
|
1354
1495
|
VatType,
|
|
1355
1496
|
WebhookIdentityType,
|
|
1356
1497
|
WeightUnit,
|
|
1498
|
+
bulkCreateCheckoutTemplates,
|
|
1357
1499
|
createAndRedirectToCheckout,
|
|
1358
1500
|
createCheckoutFromTemplate,
|
|
1359
1501
|
createCheckoutTemplate,
|