aeremmiddleware 1.0.11 → 1.0.13
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/README.md +28 -28
- package/dist/Finance/ingenicoHtml.js +114 -114
- package/package.json +21 -20
- package/src/Finance/Ingenico.types.ts +21 -21
- package/src/Finance/crimeCheck.ts +135 -135
- package/src/Finance/crimecheck.types.ts +31 -31
- package/src/Finance/encrypt.ts +18 -18
- package/src/Finance/idfy.ts +542 -542
- package/src/Finance/index.ts +13 -13
- package/src/Finance/ingenico.ts +110 -110
- package/src/Finance/ingenicoHtml.ts +119 -119
- package/src/Finance/novel.ts +226 -226
- package/src/Finance/novel.types.ts +24 -24
- package/src/Finance/qbrik.ts +822 -822
- package/src/Finance/qbrik.types.ts +81 -81
- package/src/Socials/Sms.types.ts +9 -9
- package/src/Socials/SmsSender.ts +78 -78
- package/src/Socials/Whatsapp.types.ts +95 -95
- package/src/Socials/index.ts +6 -6
- package/src/Socials/whatsApp.ts +188 -188
- package/src/index.ts +7 -7
- package/src/pushNotification/pushNotificationFCM.ts +35 -35
- package/tsconfig.json +111 -111
- package/dist/Finance/qbrik.d.ts +0 -100
- package/dist/Finance/qbrik.js +0 -506
- package/dist/Finance/qbrik.js.map +0 -1
- package/dist/Finance/qbrik.types.d.ts +0 -76
- package/dist/Finance/qbrik.types.js +0 -3
- package/dist/Finance/qbrik.types.js.map +0 -1
- package/dist/pushNotification/pushNotificationFCM.d.ts +0 -1
- package/dist/pushNotification/pushNotificationFCM.js +0 -42
- package/dist/pushNotification/pushNotificationFCM.js.map +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export interface companyDetails {
|
|
2
|
-
companyName: string;
|
|
3
|
-
companyType?: string;
|
|
4
|
-
companyAddress?: string;
|
|
5
|
-
directors?: string;
|
|
6
|
-
clientRefNo?: string;
|
|
7
|
-
reportMode?: string;
|
|
8
|
-
priority?: string;
|
|
9
|
-
callbackUrl?: string;
|
|
10
|
-
cinNumber?: string;
|
|
11
|
-
gstNumber?: string;
|
|
12
|
-
reqTag?: string;
|
|
13
|
-
ticketSize?: string;
|
|
14
|
-
crimewatch?: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface individualDetails {
|
|
18
|
-
name: string;
|
|
19
|
-
fatherName?: string;
|
|
20
|
-
address?: string;
|
|
21
|
-
address2?: string;
|
|
22
|
-
dob?: string;
|
|
23
|
-
panNumber?: string;
|
|
24
|
-
clientRefNo?: string;
|
|
25
|
-
reportMode?: string;
|
|
26
|
-
priority?: string;
|
|
27
|
-
callbackUrl?: string;
|
|
28
|
-
reqTag?: string;
|
|
29
|
-
ticketSize?: string;
|
|
30
|
-
crimewatch?: string;
|
|
31
|
-
}
|
|
1
|
+
export interface companyDetails {
|
|
2
|
+
companyName: string;
|
|
3
|
+
companyType?: string;
|
|
4
|
+
companyAddress?: string;
|
|
5
|
+
directors?: string;
|
|
6
|
+
clientRefNo?: string;
|
|
7
|
+
reportMode?: string;
|
|
8
|
+
priority?: string;
|
|
9
|
+
callbackUrl?: string;
|
|
10
|
+
cinNumber?: string;
|
|
11
|
+
gstNumber?: string;
|
|
12
|
+
reqTag?: string;
|
|
13
|
+
ticketSize?: string;
|
|
14
|
+
crimewatch?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface individualDetails {
|
|
18
|
+
name: string;
|
|
19
|
+
fatherName?: string;
|
|
20
|
+
address?: string;
|
|
21
|
+
address2?: string;
|
|
22
|
+
dob?: string;
|
|
23
|
+
panNumber?: string;
|
|
24
|
+
clientRefNo?: string;
|
|
25
|
+
reportMode?: string;
|
|
26
|
+
priority?: string;
|
|
27
|
+
callbackUrl?: string;
|
|
28
|
+
reqTag?: string;
|
|
29
|
+
ticketSize?: string;
|
|
30
|
+
crimewatch?: string;
|
|
31
|
+
}
|
package/src/Finance/encrypt.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import crypto from "crypto";
|
|
2
|
-
|
|
3
|
-
export function createSHA512Hash(dataObject: any, salt: string) {
|
|
4
|
-
const sortedData = Object.keys(dataObject)
|
|
5
|
-
.map((key) => dataObject[key])
|
|
6
|
-
.join("|");
|
|
7
|
-
|
|
8
|
-
const pipeSeparatedData = `${sortedData}|${salt}`;
|
|
9
|
-
console.log(pipeSeparatedData);
|
|
10
|
-
|
|
11
|
-
const hash = crypto.createHash("sha512");
|
|
12
|
-
|
|
13
|
-
hash.update(pipeSeparatedData, "utf-8");
|
|
14
|
-
|
|
15
|
-
const hashedString = hash.digest("hex");
|
|
16
|
-
|
|
17
|
-
return hashedString;
|
|
18
|
-
}
|
|
1
|
+
import crypto from "crypto";
|
|
2
|
+
|
|
3
|
+
export function createSHA512Hash(dataObject: any, salt: string) {
|
|
4
|
+
const sortedData = Object.keys(dataObject)
|
|
5
|
+
.map((key) => dataObject[key])
|
|
6
|
+
.join("|");
|
|
7
|
+
|
|
8
|
+
const pipeSeparatedData = `${sortedData}|${salt}`;
|
|
9
|
+
console.log(pipeSeparatedData);
|
|
10
|
+
|
|
11
|
+
const hash = crypto.createHash("sha512");
|
|
12
|
+
|
|
13
|
+
hash.update(pipeSeparatedData, "utf-8");
|
|
14
|
+
|
|
15
|
+
const hashedString = hash.digest("hex");
|
|
16
|
+
|
|
17
|
+
return hashedString;
|
|
18
|
+
}
|