@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
package/build/es/index.mjs
CHANGED
|
@@ -648,6 +648,31 @@ function queryPaymentAcceptanceConfigurations2() {
|
|
|
648
648
|
transformationPaths: {}
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
|
+
async function typedQueryPaymentAcceptanceConfigurations(query) {
|
|
652
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
653
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ query });
|
|
654
|
+
const reqOpts = queryPaymentAcceptanceConfigurations(
|
|
655
|
+
payload
|
|
656
|
+
);
|
|
657
|
+
sideEffects?.onSiteCall?.();
|
|
658
|
+
try {
|
|
659
|
+
const result = await httpClient.request(reqOpts);
|
|
660
|
+
sideEffects?.onSuccess?.(result);
|
|
661
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
662
|
+
} catch (err) {
|
|
663
|
+
const transformedError = sdkTransformError(
|
|
664
|
+
err,
|
|
665
|
+
{
|
|
666
|
+
spreadPathsToArguments: {},
|
|
667
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
668
|
+
singleArgumentUnchanged: false
|
|
669
|
+
},
|
|
670
|
+
["query"]
|
|
671
|
+
);
|
|
672
|
+
sideEffects?.onError?.(err);
|
|
673
|
+
throw transformedError;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
651
676
|
async function bulkUpdatePaymentAcceptanceConfigurationTags2(ids, options) {
|
|
652
677
|
const { httpClient, sideEffects } = arguments[2];
|
|
653
678
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -767,6 +792,13 @@ function queryPaymentAcceptanceConfigurations3(httpClient) {
|
|
|
767
792
|
{ httpClient }
|
|
768
793
|
);
|
|
769
794
|
}
|
|
795
|
+
function typedQueryPaymentAcceptanceConfigurations2(httpClient) {
|
|
796
|
+
return (query) => typedQueryPaymentAcceptanceConfigurations(
|
|
797
|
+
query,
|
|
798
|
+
// @ts-ignore
|
|
799
|
+
{ httpClient }
|
|
800
|
+
);
|
|
801
|
+
}
|
|
770
802
|
function bulkUpdatePaymentAcceptanceConfigurationTags3(httpClient) {
|
|
771
803
|
return (ids, options) => bulkUpdatePaymentAcceptanceConfigurationTags2(
|
|
772
804
|
ids,
|
|
@@ -786,6 +818,18 @@ function bulkUpdatePaymentAcceptanceConfigurationTagsByFilter3(httpClient) {
|
|
|
786
818
|
|
|
787
819
|
// src/payments-payment-acceptance-configurations-v1-payment-acceptance-configuration-payment-acceptance-configurations.context.ts
|
|
788
820
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
821
|
+
import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
|
|
822
|
+
function customQueryPaymentAcceptanceConfigurations(httpClient) {
|
|
823
|
+
const router = createQueryOverloadRouter({
|
|
824
|
+
builderQueryFunction: () => queryPaymentAcceptanceConfigurations3(httpClient)(),
|
|
825
|
+
typedQueryFunction: (query) => typedQueryPaymentAcceptanceConfigurations2(httpClient)(query),
|
|
826
|
+
hasOptionsParameter: false
|
|
827
|
+
});
|
|
828
|
+
function overloadedQuery(query) {
|
|
829
|
+
return router(...arguments);
|
|
830
|
+
}
|
|
831
|
+
return overloadedQuery;
|
|
832
|
+
}
|
|
789
833
|
var createPaymentAcceptanceConfiguration4 = /* @__PURE__ */ createRESTModule(createPaymentAcceptanceConfiguration3);
|
|
790
834
|
var getPaymentAcceptanceConfiguration4 = /* @__PURE__ */ createRESTModule(getPaymentAcceptanceConfiguration3);
|
|
791
835
|
var updatePaymentAcceptanceConfiguration4 = /* @__PURE__ */ createRESTModule(updatePaymentAcceptanceConfiguration3);
|
|
@@ -796,13 +840,13 @@ var removePaymentAcceptanceConfigurationRules4 = /* @__PURE__ */ createRESTModul
|
|
|
796
840
|
removePaymentAcceptanceConfigurationRules3
|
|
797
841
|
);
|
|
798
842
|
var deletePaymentAcceptanceConfiguration4 = /* @__PURE__ */ createRESTModule(deletePaymentAcceptanceConfiguration3);
|
|
799
|
-
var queryPaymentAcceptanceConfigurations4 = /* @__PURE__ */ createRESTModule(queryPaymentAcceptanceConfigurations3);
|
|
800
843
|
var bulkUpdatePaymentAcceptanceConfigurationTags4 = /* @__PURE__ */ createRESTModule(
|
|
801
844
|
bulkUpdatePaymentAcceptanceConfigurationTags3
|
|
802
845
|
);
|
|
803
846
|
var bulkUpdatePaymentAcceptanceConfigurationTagsByFilter4 = /* @__PURE__ */ createRESTModule(
|
|
804
847
|
bulkUpdatePaymentAcceptanceConfigurationTagsByFilter3
|
|
805
848
|
);
|
|
849
|
+
var queryPaymentAcceptanceConfigurations4 = /* @__PURE__ */ createRESTModule(customQueryPaymentAcceptanceConfigurations);
|
|
806
850
|
export {
|
|
807
851
|
DeleteStatus,
|
|
808
852
|
Namespace,
|