@ancon/wildcat-utils 1.44.9 → 1.44.10
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.
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
import { CheckActionType, ClientType } from '@ancon/wildcat-types';
|
|
2
|
-
|
|
1
|
+
import { CheckActionType, ClientType, SubClientType } from '@ancon/wildcat-types';
|
|
2
|
+
declare type CheckAudiLogClient = {
|
|
3
|
+
type: ClientType;
|
|
4
|
+
subType?: SubClientType;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* This function checks if the provided action type is a PayAndGo check audit log action.
|
|
8
|
+
* @param actionType The action type to check.
|
|
9
|
+
* @param client The client of the audit log action, if applicable.
|
|
10
|
+
* @returns `true` if the action type is a PayAndGo check audit log action, otherwise `false`.
|
|
11
|
+
*/
|
|
12
|
+
export default function isPayAndGoCheckAuditLogAction<Client extends CheckAudiLogClient>(actionType: CheckActionType | undefined, client?: Client): boolean;
|
|
13
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("@ancon/wildcat-types");function
|
|
1
|
+
"use strict";const e=require("@ancon/wildcat-types");function o(t,A){return(A==null?void 0:A.type)===e.ClientType.VirtualPOS&&A.subType===e.SubClientType.PayAndGo?!0:t===e.CheckActionType.PayAndGoPreviewPrintCheck||t===e.CheckActionType.PayAndGoCheckPayment||t===e.CheckActionType.PayAndGoSplitCheck||t===e.CheckActionType.PayAndGoMergeCheck||t===e.CheckActionType.PayAndGoDeleteCheck||t===e.CheckActionType.PayAndGoMoveCheckItem}module.exports=o;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ClientType as
|
|
2
|
-
function
|
|
3
|
-
return
|
|
1
|
+
import { ClientType as o, SubClientType as A, CheckActionType as r } from "@ancon/wildcat-types";
|
|
2
|
+
function C(e, P) {
|
|
3
|
+
return (P == null ? void 0 : P.type) === o.VirtualPOS && P.subType === A.PayAndGo ? !0 : e === r.PayAndGoPreviewPrintCheck || e === r.PayAndGoCheckPayment || e === r.PayAndGoSplitCheck || e === r.PayAndGoMergeCheck || e === r.PayAndGoDeleteCheck || e === r.PayAndGoMoveCheckItem;
|
|
4
4
|
}
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
C as default
|
|
7
7
|
};
|