@fctc/interface-logic 5.3.0 → 5.3.1
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/dist/{chunk-OYRLOMB7.js → chunk-D6CWU55W.js} +4 -4
- package/dist/{chunk-CFMANGYC.mjs → chunk-GYJZAKYF.mjs} +4 -4
- package/dist/hooks.d.mts +2 -2
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +154 -154
- package/dist/hooks.mjs +1 -1
- package/dist/index.js +175 -175
- package/dist/index.mjs +1 -1
- package/dist/provider.js +11 -11
- package/dist/provider.mjs +1 -1
- package/dist/services.d.mts +4 -4
- package/dist/services.d.ts +4 -4
- package/dist/services.js +12 -12
- package/dist/services.mjs +1 -1
- package/package.json +1 -1
|
@@ -3441,13 +3441,13 @@ var appAuthenticateService = (env) => {
|
|
|
3441
3441
|
};
|
|
3442
3442
|
var applyVoucherService = (env) => {
|
|
3443
3443
|
const applyVoucher = react.useCallback(
|
|
3444
|
-
({ xNode, service, ids,
|
|
3444
|
+
({ xNode, service, ids, voucherCodes }) => {
|
|
3445
3445
|
const jsonData = {
|
|
3446
3446
|
model: "pos.order" /* POS_ORDER */,
|
|
3447
3447
|
method: "action_apply_voucher" /* ACTION_APPLY_VOUCHER */,
|
|
3448
3448
|
ids,
|
|
3449
3449
|
kwargs: {
|
|
3450
|
-
voucher_codes:
|
|
3450
|
+
voucher_codes: voucherCodes
|
|
3451
3451
|
}
|
|
3452
3452
|
};
|
|
3453
3453
|
return env?.requests.post(
|
|
@@ -3470,13 +3470,13 @@ var applyVoucherService = (env) => {
|
|
|
3470
3470
|
};
|
|
3471
3471
|
var removeVoucherService = (env) => {
|
|
3472
3472
|
const removeVoucher = react.useCallback(
|
|
3473
|
-
({ xNode, service, ids,
|
|
3473
|
+
({ xNode, service, ids, programIds }) => {
|
|
3474
3474
|
const jsonData = {
|
|
3475
3475
|
model: "pos.order" /* POS_ORDER */,
|
|
3476
3476
|
method: "action_remove_voucher" /* ACTION_REMOVE_VOUCHER */,
|
|
3477
3477
|
ids,
|
|
3478
3478
|
kwargs: {
|
|
3479
|
-
program_ids:
|
|
3479
|
+
program_ids: programIds
|
|
3480
3480
|
}
|
|
3481
3481
|
};
|
|
3482
3482
|
return env?.requests.post(
|
|
@@ -3439,13 +3439,13 @@ var appAuthenticateService = (env) => {
|
|
|
3439
3439
|
};
|
|
3440
3440
|
var applyVoucherService = (env) => {
|
|
3441
3441
|
const applyVoucher = useCallback(
|
|
3442
|
-
({ xNode, service, ids,
|
|
3442
|
+
({ xNode, service, ids, voucherCodes }) => {
|
|
3443
3443
|
const jsonData = {
|
|
3444
3444
|
model: "pos.order" /* POS_ORDER */,
|
|
3445
3445
|
method: "action_apply_voucher" /* ACTION_APPLY_VOUCHER */,
|
|
3446
3446
|
ids,
|
|
3447
3447
|
kwargs: {
|
|
3448
|
-
voucher_codes:
|
|
3448
|
+
voucher_codes: voucherCodes
|
|
3449
3449
|
}
|
|
3450
3450
|
};
|
|
3451
3451
|
return env?.requests.post(
|
|
@@ -3468,13 +3468,13 @@ var applyVoucherService = (env) => {
|
|
|
3468
3468
|
};
|
|
3469
3469
|
var removeVoucherService = (env) => {
|
|
3470
3470
|
const removeVoucher = useCallback(
|
|
3471
|
-
({ xNode, service, ids,
|
|
3471
|
+
({ xNode, service, ids, programIds }) => {
|
|
3472
3472
|
const jsonData = {
|
|
3473
3473
|
model: "pos.order" /* POS_ORDER */,
|
|
3474
3474
|
method: "action_remove_voucher" /* ACTION_REMOVE_VOUCHER */,
|
|
3475
3475
|
ids,
|
|
3476
3476
|
kwargs: {
|
|
3477
|
-
program_ids:
|
|
3477
|
+
program_ids: programIds
|
|
3478
3478
|
}
|
|
3479
3479
|
};
|
|
3480
3480
|
return env?.requests.post(
|
package/dist/hooks.d.mts
CHANGED
|
@@ -771,14 +771,14 @@ declare const useAppAuthenticate: () => _tanstack_react_query.UseMutationResult<
|
|
|
771
771
|
|
|
772
772
|
declare const useApplyVoucher: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
773
773
|
ids: number[];
|
|
774
|
-
|
|
774
|
+
voucherCodes: string[];
|
|
775
775
|
xNode?: string;
|
|
776
776
|
service?: string;
|
|
777
777
|
}, unknown>;
|
|
778
778
|
|
|
779
779
|
declare const useRemoveVoucher: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
780
780
|
ids: number[];
|
|
781
|
-
|
|
781
|
+
programIds: number[];
|
|
782
782
|
xNode?: string;
|
|
783
783
|
service?: string;
|
|
784
784
|
}, unknown>;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -771,14 +771,14 @@ declare const useAppAuthenticate: () => _tanstack_react_query.UseMutationResult<
|
|
|
771
771
|
|
|
772
772
|
declare const useApplyVoucher: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
773
773
|
ids: number[];
|
|
774
|
-
|
|
774
|
+
voucherCodes: string[];
|
|
775
775
|
xNode?: string;
|
|
776
776
|
service?: string;
|
|
777
777
|
}, unknown>;
|
|
778
778
|
|
|
779
779
|
declare const useRemoveVoucher: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
780
780
|
ids: number[];
|
|
781
|
-
|
|
781
|
+
programIds: number[];
|
|
782
782
|
xNode?: string;
|
|
783
783
|
service?: string;
|
|
784
784
|
}, unknown>;
|