aeremmiddleware 1.0.12 → 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.
Files changed (39) hide show
  1. package/README.md +28 -28
  2. package/dist/Finance/ingenicoHtml.js +114 -114
  3. package/dist/index.d.ts +0 -3
  4. package/dist/index.js +1 -4
  5. package/dist/index.js.map +1 -1
  6. package/package.json +21 -20
  7. package/src/Finance/Ingenico.types.ts +21 -21
  8. package/src/Finance/crimeCheck.ts +135 -135
  9. package/src/Finance/crimecheck.types.ts +31 -31
  10. package/src/Finance/encrypt.ts +18 -18
  11. package/src/Finance/idfy.ts +542 -542
  12. package/src/Finance/index.ts +13 -13
  13. package/src/Finance/ingenico.ts +110 -110
  14. package/src/Finance/ingenicoHtml.ts +119 -119
  15. package/src/Finance/novel.ts +226 -226
  16. package/src/Finance/novel.types.ts +24 -24
  17. package/src/Finance/qbrik.ts +822 -822
  18. package/src/Finance/qbrik.types.ts +81 -81
  19. package/src/Socials/Sms.types.ts +9 -9
  20. package/src/Socials/SmsSender.ts +78 -78
  21. package/src/Socials/Whatsapp.types.ts +95 -95
  22. package/src/Socials/index.ts +6 -6
  23. package/src/Socials/whatsApp.ts +188 -188
  24. package/src/index.ts +8 -9
  25. package/src/pushNotification/pushNotificationFCM.ts +35 -35
  26. package/tsconfig.json +111 -111
  27. package/dist/Finance/qbrik.d.ts +0 -100
  28. package/dist/Finance/qbrik.js +0 -506
  29. package/dist/Finance/qbrik.js.map +0 -1
  30. package/dist/Finance/qbrik.types.d.ts +0 -76
  31. package/dist/Finance/qbrik.types.js +0 -3
  32. package/dist/Finance/qbrik.types.js.map +0 -1
  33. package/dist/pushNotification/index.d.ts +0 -4
  34. package/dist/pushNotification/index.js +0 -8
  35. package/dist/pushNotification/index.js.map +0 -1
  36. package/dist/pushNotification/pushNotificationFCM.d.ts +0 -1
  37. package/dist/pushNotification/pushNotificationFCM.js +0 -42
  38. package/dist/pushNotification/pushNotificationFCM.js.map +0 -1
  39. package/src/pushNotification/index.ts +0 -5
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.sendPushNotification = void 0;
13
- const FCM = require("fcm-node");
14
- function sendPushNotification(serverKey, registrationIds, title, body, data, icon, sound) {
15
- return __awaiter(this, void 0, void 0, function* () {
16
- const fcm = new FCM(serverKey);
17
- return new Promise((resolve, reject) => {
18
- const pushMessage = {
19
- registration_ids: registrationIds,
20
- notification: {
21
- body: body,
22
- icon: icon || "myicon",
23
- sound: sound || "mySound",
24
- title: title,
25
- },
26
- data: data,
27
- };
28
- fcm.send(pushMessage, (err, response) => {
29
- if (err) {
30
- console.log("Something has gone wrong!", err);
31
- reject(err);
32
- }
33
- else {
34
- console.log("Push notification sent.", response);
35
- resolve(response);
36
- }
37
- });
38
- });
39
- });
40
- }
41
- exports.sendPushNotification = sendPushNotification;
42
- //# sourceMappingURL=pushNotificationFCM.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pushNotificationFCM.js","sourceRoot":"","sources":["../../src/pushNotification/pushNotificationFCM.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,MAAM,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEhC,SAAsB,oBAAoB,CACxC,SAAgB,EAChB,eAAyB,EACzB,KAAa,EACb,IAAY,EACZ,IAAQ,EACR,IAAa,EACb,KAAc;;QAEd,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC;QAE/B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,MAAM,WAAW,GAAG;gBAClB,gBAAgB,EAAE,eAAe;gBACjC,YAAY,EAAE;oBACZ,IAAI,EAAE,IAAI;oBACV,IAAI,EAAE,IAAI,IAAI,QAAQ;oBACtB,KAAK,EAAE,KAAK,IAAI,SAAS;oBACzB,KAAK,EAAE,KAAK;iBACb;gBACD,IAAI,EAAE,IAAI;aACX,CAAC;YAEF,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAQ,EAAE,QAAa,EAAE,EAAE;gBAChD,IAAI,GAAG,EAAE;oBACP,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,GAAG,CAAC,CAAC;oBAC9C,MAAM,CAAC,GAAG,CAAC,CAAC;iBACb;qBAAM;oBACL,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,QAAQ,CAAC,CAAC;oBACjD,OAAO,CAAC,QAAQ,CAAC,CAAC;iBACnB;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAjCD,oDAiCC"}
@@ -1,5 +0,0 @@
1
- import { sendPushNotification } from "./pushNotificationFCM";
2
-
3
- export const push = {
4
- pushNoti: sendPushNotification,
5
- };