@wix/auto_sdk_payments_payment-acceptance-configurations 1.0.38 → 1.0.40
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 +10 -1189
- package/build/cjs/index.js +45 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1198 -1
- package/build/cjs/index.typings.js +27 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +10 -1189
- package/build/es/index.mjs +45 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1198 -1
- package/build/es/index.typings.mjs +26 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +8 -20
- package/build/internal/cjs/index.js +45 -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 +27 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +8 -20
- package/build/internal/es/index.mjs +45 -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 +26 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -685,6 +685,31 @@ function queryPaymentAcceptanceConfigurations2() {
|
|
|
685
685
|
transformationPaths: {}
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
|
+
async function typedQueryPaymentAcceptanceConfigurations(query) {
|
|
689
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
690
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
691
|
+
const reqOpts = queryPaymentAcceptanceConfigurations(
|
|
692
|
+
payload
|
|
693
|
+
);
|
|
694
|
+
sideEffects?.onSiteCall?.();
|
|
695
|
+
try {
|
|
696
|
+
const result = await httpClient.request(reqOpts);
|
|
697
|
+
sideEffects?.onSuccess?.(result);
|
|
698
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
699
|
+
} catch (err) {
|
|
700
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
701
|
+
err,
|
|
702
|
+
{
|
|
703
|
+
spreadPathsToArguments: {},
|
|
704
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
705
|
+
singleArgumentUnchanged: false
|
|
706
|
+
},
|
|
707
|
+
["query"]
|
|
708
|
+
);
|
|
709
|
+
sideEffects?.onError?.(err);
|
|
710
|
+
throw transformedError;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
688
713
|
async function bulkUpdatePaymentAcceptanceConfigurationTags2(ids, options) {
|
|
689
714
|
const { httpClient, sideEffects } = arguments[2];
|
|
690
715
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -804,6 +829,13 @@ function queryPaymentAcceptanceConfigurations3(httpClient) {
|
|
|
804
829
|
{ httpClient }
|
|
805
830
|
);
|
|
806
831
|
}
|
|
832
|
+
function typedQueryPaymentAcceptanceConfigurations2(httpClient) {
|
|
833
|
+
return (query) => typedQueryPaymentAcceptanceConfigurations(
|
|
834
|
+
query,
|
|
835
|
+
// @ts-ignore
|
|
836
|
+
{ httpClient }
|
|
837
|
+
);
|
|
838
|
+
}
|
|
807
839
|
function bulkUpdatePaymentAcceptanceConfigurationTags3(httpClient) {
|
|
808
840
|
return (ids, options) => bulkUpdatePaymentAcceptanceConfigurationTags2(
|
|
809
841
|
ids,
|
|
@@ -823,6 +855,18 @@ function bulkUpdatePaymentAcceptanceConfigurationTagsByFilter3(httpClient) {
|
|
|
823
855
|
|
|
824
856
|
// src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.ts
|
|
825
857
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
858
|
+
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
859
|
+
function customQueryPaymentAcceptanceConfigurations(httpClient) {
|
|
860
|
+
const router = (0, import_query_method_router.createQueryOverloadRouter)({
|
|
861
|
+
builderQueryFunction: () => queryPaymentAcceptanceConfigurations3(httpClient)(),
|
|
862
|
+
typedQueryFunction: (query) => typedQueryPaymentAcceptanceConfigurations2(httpClient)(query),
|
|
863
|
+
hasOptionsParameter: false
|
|
864
|
+
});
|
|
865
|
+
function overloadedQuery(query) {
|
|
866
|
+
return router(...arguments);
|
|
867
|
+
}
|
|
868
|
+
return overloadedQuery;
|
|
869
|
+
}
|
|
826
870
|
var createPaymentAcceptanceConfiguration4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createPaymentAcceptanceConfiguration3);
|
|
827
871
|
var getPaymentAcceptanceConfiguration4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPaymentAcceptanceConfiguration3);
|
|
828
872
|
var updatePaymentAcceptanceConfiguration4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updatePaymentAcceptanceConfiguration3);
|
|
@@ -833,13 +877,13 @@ var removePaymentAcceptanceConfigurationRules4 = /* @__PURE__ */ (0, import_rest
|
|
|
833
877
|
removePaymentAcceptanceConfigurationRules3
|
|
834
878
|
);
|
|
835
879
|
var deletePaymentAcceptanceConfiguration4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deletePaymentAcceptanceConfiguration3);
|
|
836
|
-
var queryPaymentAcceptanceConfigurations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPaymentAcceptanceConfigurations3);
|
|
837
880
|
var bulkUpdatePaymentAcceptanceConfigurationTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
838
881
|
bulkUpdatePaymentAcceptanceConfigurationTags3
|
|
839
882
|
);
|
|
840
883
|
var bulkUpdatePaymentAcceptanceConfigurationTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
841
884
|
bulkUpdatePaymentAcceptanceConfigurationTagsByFilter3
|
|
842
885
|
);
|
|
886
|
+
var queryPaymentAcceptanceConfigurations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryPaymentAcceptanceConfigurations);
|
|
843
887
|
// Annotate the CommonJS export names for ESM import in node:
|
|
844
888
|
0 && (module.exports = {
|
|
845
889
|
DeleteStatus,
|