@futdevpro/nts-dynamo 1.5.36 → 1.5.38

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 (37) hide show
  1. package/lib/_constants/dynamo-nts-global-settings.d.ts +3 -0
  2. package/lib/_constants/dynamo-nts-global-settings.d.ts.map +1 -0
  3. package/lib/_constants/dynamo-nts-global-settings.js +18 -0
  4. package/lib/_constants/dynamo-nts-global-settings.js.map +1 -0
  5. package/lib/_constants/index.d.ts +1 -1
  6. package/lib/_constants/index.js +1 -1
  7. package/lib/_models/dynamo-nts-socket-service-params.d.ts +19 -0
  8. package/lib/_models/dynamo-nts-socket-service-params.d.ts.map +1 -0
  9. package/lib/_models/dynamo-nts-socket-service-params.js +27 -0
  10. package/lib/_models/dynamo-nts-socket-service-params.js.map +1 -0
  11. package/lib/_models/index.d.ts +1 -1
  12. package/lib/_models/index.d.ts.map +1 -1
  13. package/lib/_models/index.js +1 -1
  14. package/lib/_models/index.js.map +1 -1
  15. package/lib/_modules/app-extended.index.d.ts +1 -1
  16. package/lib/_modules/app-extended.index.js +1 -1
  17. package/lib/_modules/app.index.d.ts +1 -1
  18. package/lib/_modules/app.index.js +1 -1
  19. package/lib/_services/dynamo-nts-db.service.d.ts +24 -24
  20. package/lib/_services/dynamo-nts-db.service.js +24 -24
  21. package/lib/_services/dynamo-nts-routing-module.service.js +1 -1
  22. package/lib/_services/dynamo-nts-socket.service.d.ts +8 -6
  23. package/lib/_services/dynamo-nts-socket.service.d.ts.map +1 -1
  24. package/lib/_services/dynamo-nts-socket.service.js +56 -47
  25. package/lib/_services/dynamo-nts-socket.service.js.map +1 -1
  26. package/lib/tsconfig.tsbuildinfo +35 -35
  27. package/package.json +1 -1
  28. package/src/_constants/index.ts +1 -1
  29. package/src/_models/dynamo-nts-socket-event-params.ts +1 -1
  30. package/src/_models/{dynamo-nts-socket-module-settings.ts → dynamo-nts-socket-service-params.ts} +1 -1
  31. package/src/_models/index.ts +1 -1
  32. package/src/_modules/app-extended.index.ts +1 -1
  33. package/src/_modules/app.index.ts +1 -1
  34. package/src/_services/dynamo-nts-db.service.ts +24 -24
  35. package/src/_services/dynamo-nts-routing-module.service.ts +1 -1
  36. package/src/_services/dynamo-nts-socket.service.ts +36 -28
  37. /package/src/_constants/{dynamo-nts-global.settings.ts → dynamo-nts-global-settings.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"dynamo-nts-socket.service.js","sourceRoot":"","sources":["../../src/_services/dynamo-nts-socket.service.ts"],"names":[],"mappings":";;;;AAGA,yFAAoF;AACpF,2EAA+D;AAE/D,iFAA4E;AAC5E,8FAAwF;AACxF,wEAAyE;AACzE,2EAAsE;AACtE,sDAAwD;AAQxD;;GAEG;AACH,MAAsB,uBAAwB,SAAQ,yDAA0B;IAuB9E;QACE,KAAK,EAAE,CAAC;QALF,kBAAa,GAAiC,EAAE,CAAC;QAE/C,QAAG,GAAY,qDAAwB,CAAC,QAAQ,CAAC;QAKzD,IAAI;YACF,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAC1B,IAAI,CAAC,WAAW,EAAE,CAAC;YAEnB,IAAI,CAAC,wBAAwB,EAAE,CAAC;YAChC,IAAI,CAAC,aAAa,EAAE,CAAC;YAErB,IAAI,IAAI,CAAC,GAAG;gBAAE,OAAO,CAAC,GAAG,CAAC,iCAAiC,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,MAAM,CAAC,IAAI,eAAe,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC;SAC1I;QAAC,OAAO,KAAK,EAAE;YACd,4CAAgB,CAAC,QAAQ,CAAC,mCAAmC,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,EAAE,KAAK,CAAC,CAAC;SAC/G;IACH,CAAC;IAnCD,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;IAC1B,CAAC;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,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAuB,EAAE,EAAE;gBAC9C,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YAC9B,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC;CAYF;AAzKD,0DAyKC"}
@@ -206,14 +206,14 @@
206
206
  "signature": "22504be590e4cb0a5bac375e0e1cfd4ab2dd556ba51545ed1005254303fef36c",
207
207
  "affectsGlobalScope": false
208
208
  },
209
- "../src/_constants/dynamo-nts-global.settings.ts": {
209
+ "../src/_constants/dynamo-nts-global-settings.ts": {
210
210
  "version": "a77c2b2a5389a5b46aa011f7c7b5e62fe5e8dab9e2ccd9fd9317714cfd4e4cc1",
211
- "signature": "ad06d43089ae4d5d72b475319f572db94a5b30f91d966de2e2679e6bf31f87cf",
211
+ "signature": "202d3393bb587dbb48b9f339f135b0850d61165d6c6f921749e7deb029061fa3",
212
212
  "affectsGlobalScope": false
213
213
  },
214
214
  "../src/_constants/index.ts": {
215
- "version": "cf503b5538d38a11490d14f7f85e53c4edac955eaa8fb716c9cab93fd16f4fb9",
216
- "signature": "223412f4a5dcdf2f357a02160c58199ce54051f4d6d3dac407bc4658e42bff26",
215
+ "version": "380cbb6e008163d3c686fc8e12edaded3e053a8bd49d51d95d8acbcdb8726ccc",
216
+ "signature": "c04161dccd211703423bf317d2cf58cdc6eebe2d8a2754f41c6d354f84d5ac3c",
217
217
  "affectsGlobalScope": false
218
218
  },
219
219
  "../src/_enums/data-model-type.enum.ts": {
@@ -717,8 +717,8 @@
717
717
  "affectsGlobalScope": false
718
718
  },
719
719
  "../src/_services/dynamo-nts-db.service.ts": {
720
- "version": "2038e863e017fe9caebc0d462a42e2c7983e3297bca12d31f77f072bef40dfa6",
721
- "signature": "8be9493e0596de904fef555f9f3e8a0767825323485001d660f0aa981b5509e4",
720
+ "version": "a3efd5e3503bce58400f7ed8054440c1f94c07de2159f453bcb5d723b53dd13e",
721
+ "signature": "022abe3ee7bf7a56401a171e7f9d30e46f3348c91a84cde582c64cd8160f2e53",
722
722
  "affectsGlobalScope": false
723
723
  },
724
724
  "../src/_services/dynamo-nts-db-service-collection.service.ts": {
@@ -922,13 +922,13 @@
922
922
  "affectsGlobalScope": false
923
923
  },
924
924
  "../src/_models/dynamo-nts-socket-event-params.ts": {
925
- "version": "fecdb3b973acd3f8557c12ca1780c08ed60d3c7bddeead3d63818d941c81fee4",
925
+ "version": "75c455048cbffd820cb46b8625e6f0325ad4f9a58ec2a99be8534ccb65fdb798",
926
926
  "signature": "1a66eada99ca632394f2e845305a5a9982ddd8c93a78f99f66b13b3a35b1e6ff",
927
927
  "affectsGlobalScope": false
928
928
  },
929
929
  "../src/_services/dynamo-nts-socket.service.ts": {
930
- "version": "91580b6783498e3071777a23ce9777ca13800fbeb6f511666167ac5e402faf2e",
931
- "signature": "0678e6cc7b50b35d14f22c9e913648eae07375def51924540bf6c1a181c6c0d4",
930
+ "version": "cac99dd4c31275a4b8402054d840b09b8b610adfee2031ea68b18d03387cf459",
931
+ "signature": "50a33070ab4aaf5fb52b22c39b70ae815d7fa17fae880427aaaa281bf999c217",
932
932
  "affectsGlobalScope": false
933
933
  },
934
934
  "../src/_services/dynamo-nts-socket-service-collection.service.ts": {
@@ -962,7 +962,7 @@
962
962
  "affectsGlobalScope": false
963
963
  },
964
964
  "../src/_services/dynamo-nts-routing-module.service.ts": {
965
- "version": "5c6b82ecb23ac26490cf80fdfae0ac697b4a1662612495e8da760596c8fcab35",
965
+ "version": "e6f1e4920394921c808d902d5c51d869b1ed10f0877d519411247a342d91745d",
966
966
  "signature": "3f4d1bf6c6c5f1b68e538c341bb8c60cbf5d8898bc606ce451d142b88bce8814",
967
967
  "affectsGlobalScope": false
968
968
  },
@@ -991,14 +991,14 @@
991
991
  "signature": "27b03d2e7459022c9bf22b5aae1f7d6db9a9ca1dfc75d07450a682088336fad2",
992
992
  "affectsGlobalScope": false
993
993
  },
994
- "../src/_models/dynamo-nts-socket-module-settings.ts": {
995
- "version": "bf22f35c6d7993e43a2d36ab0086c5513db68db97425cc1c4bbc637406e1b8fe",
996
- "signature": "2dd22b63291a3dce2a1d4bd0af9fe01209087643ebb1fb579098d450d3c62a18",
994
+ "../src/_models/dynamo-nts-socket-service-params.ts": {
995
+ "version": "3be5464df66664cd8d28ea3d1faba12158c9d957925cb780c85ff4e544f4c457",
996
+ "signature": "36f5ec4937cb5152a84d6afb828e92909b917362cf0f8fe8f1312d7ab6461652",
997
997
  "affectsGlobalScope": false
998
998
  },
999
999
  "../src/_models/index.ts": {
1000
- "version": "fe11f56c9ce07e641d787a1acd486b228c24aad64e72142f003f7043a8968817",
1001
- "signature": "2171ab14d4f1963a98e2314a55cec99fed159206ca5dac63571a18dff9a5e066",
1000
+ "version": "c220ae9795d2136ba0fce39a4f12034e09e1a0f7d1deba4480f43582948f3c6f",
1001
+ "signature": "c4c57a1eb4f400216cbee95f1d222d52894b58bbfc91bd60e86fb9e8df5a674f",
1002
1002
  "affectsGlobalScope": false
1003
1003
  },
1004
1004
  "../node_modules/@futdevpro/fsm-dynamo/lib/_modules/test-module.index.d.ts": {
@@ -1067,13 +1067,13 @@
1067
1067
  "affectsGlobalScope": false
1068
1068
  },
1069
1069
  "../src/_modules/app-extended.index.ts": {
1070
- "version": "8ff32663e73c05eec562f45f5ffcf7b95d12952019fe5ddbea29af4383a963ed",
1071
- "signature": "62b7d1cf3ab4ec933e4f608455a168cbdef37abfd590e5c1fc8308d37f9faa08",
1070
+ "version": "28191aaf1a437479ae2a5e5488340ba88dc1abdce6574ad1a914dc48da8b4c6a",
1071
+ "signature": "a06ba6f9f5cf3973d58944f6f15440e7ca8b379903f88e78ca946baae11eac78",
1072
1072
  "affectsGlobalScope": false
1073
1073
  },
1074
1074
  "../src/_modules/app.index.ts": {
1075
- "version": "21f39985dc88f29bcbd4a98df5f424f628828b0654f6ab86be6ff2473bf3a3bb",
1076
- "signature": "b97d189e4ce89c9bf0cf5729568a3b3abc9b5111971f342d0bd45913d18f5add",
1075
+ "version": "ed8350eac7e826b9b38a2de9752c8f77b8941fe9ec78b441b15fb92f5c092686",
1076
+ "signature": "b0f97b8643fc193eb40e12b1d71ae58dd9d4591397c7ef2f8892a491674956c3",
1077
1077
  "affectsGlobalScope": false
1078
1078
  },
1079
1079
  "../src/_modules/auth.index.ts": {
@@ -2792,7 +2792,7 @@
2792
2792
  "../node_modules/@types/node/ts3.2/util.d.ts",
2793
2793
  "../node_modules/@types/node/util.d.ts"
2794
2794
  ],
2795
- "../src/_constants/dynamo-nts-global.settings.ts": [
2795
+ "../src/_constants/dynamo-nts-global-settings.ts": [
2796
2796
  "../node_modules/@types/node/fs.d.ts",
2797
2797
  "../node_modules/@types/node/process.d.ts",
2798
2798
  "../node_modules/@types/node/ts3.2/fs.d.ts",
@@ -2810,7 +2810,7 @@
2810
2810
  "../node_modules/@types/node/ts3.2/process.d.ts",
2811
2811
  "../node_modules/@types/node/ts3.2/util.d.ts",
2812
2812
  "../node_modules/@types/node/util.d.ts",
2813
- "../src/_constants/dynamo-nts-global.settings.ts"
2813
+ "../src/_constants/dynamo-nts-global-settings.ts"
2814
2814
  ],
2815
2815
  "../src/_enums/data-model-type.enum.ts": [
2816
2816
  "../node_modules/@types/node/fs.d.ts",
@@ -2955,7 +2955,7 @@
2955
2955
  "../src/_enums/http/socket-event.enum.ts",
2956
2956
  "../src/_services/dynamo-nts-shared.service.ts"
2957
2957
  ],
2958
- "../src/_models/dynamo-nts-socket-module-settings.ts": [
2958
+ "../src/_models/dynamo-nts-socket-service-params.ts": [
2959
2959
  "../node_modules/@types/node/fs.d.ts",
2960
2960
  "../node_modules/@types/node/process.d.ts",
2961
2961
  "../node_modules/@types/node/ts3.2/fs.d.ts",
@@ -2979,7 +2979,7 @@
2979
2979
  "../src/_models/dynamo-nts-global-settings.ts",
2980
2980
  "../src/_models/dynamo-nts-routing-module-settings.ts",
2981
2981
  "../src/_models/dynamo-nts-socket-event-params.ts",
2982
- "../src/_models/dynamo-nts-socket-module-settings.ts"
2982
+ "../src/_models/dynamo-nts-socket-service-params.ts"
2983
2983
  ],
2984
2984
  "../src/_modules/api-service.index.ts": [
2985
2985
  "../node_modules/@futdevpro/fsm-dynamo/lib/_modules/error-module.index.d.ts",
@@ -3001,7 +3001,7 @@
3001
3001
  "../node_modules/@types/node/ts3.2/process.d.ts",
3002
3002
  "../node_modules/@types/node/ts3.2/util.d.ts",
3003
3003
  "../node_modules/@types/node/util.d.ts",
3004
- "../src/_constants/dynamo-nts-global.settings.ts",
3004
+ "../src/_constants/dynamo-nts-global-settings.ts",
3005
3005
  "../src/_enums/dynamo-nts-route-security.enum.ts",
3006
3006
  "../src/_models/dynamo-nts-app-params.ts",
3007
3007
  "../src/_models/dynamo-nts-endpoint-params.ts",
@@ -3020,7 +3020,7 @@
3020
3020
  "../node_modules/@types/node/ts3.2/process.d.ts",
3021
3021
  "../node_modules/@types/node/ts3.2/util.d.ts",
3022
3022
  "../node_modules/@types/node/util.d.ts",
3023
- "../src/_constants/dynamo-nts-global.settings.ts",
3023
+ "../src/_constants/dynamo-nts-global-settings.ts",
3024
3024
  "../src/_enums/dynamo-nts-route-security.enum.ts",
3025
3025
  "../src/_models/dynamo-nts-app-params.ts",
3026
3026
  "../src/_models/dynamo-nts-endpoint-params.ts",
@@ -3331,7 +3331,7 @@
3331
3331
  "../node_modules/@types/node/ts3.2/process.d.ts",
3332
3332
  "../node_modules/@types/node/ts3.2/util.d.ts",
3333
3333
  "../node_modules/@types/node/util.d.ts",
3334
- "../src/_constants/dynamo-nts-global.settings.ts",
3334
+ "../src/_constants/dynamo-nts-global-settings.ts",
3335
3335
  "../src/_enums/dynamo-nts-route-security.enum.ts",
3336
3336
  "../src/_enums/http/http-call-type.enum.ts",
3337
3337
  "../src/_models/dynamo-nts-endpoint-params.ts",
@@ -3378,7 +3378,7 @@
3378
3378
  "../node_modules/@types/node/ts3.2/util.d.ts",
3379
3379
  "../node_modules/@types/node/util.d.ts",
3380
3380
  "../node_modules/socket.io/dist/index.d.ts",
3381
- "../src/_constants/dynamo-nts-global.settings.ts",
3381
+ "../src/_constants/dynamo-nts-global-settings.ts",
3382
3382
  "../src/_enums/http/socket-event.enum.ts",
3383
3383
  "../src/_enums/index.ts",
3384
3384
  "../src/_models/dynamo-nts-socket-event-params.ts",
@@ -5098,11 +5098,11 @@
5098
5098
  "../node_modules/@types/node/ts3.2/util.d.ts",
5099
5099
  "../node_modules/@types/node/util.d.ts"
5100
5100
  ],
5101
- "../src/_constants/dynamo-nts-global.settings.ts": [
5101
+ "../src/_constants/dynamo-nts-global-settings.ts": [
5102
5102
  "../src/_models/dynamo-nts-global-settings.ts"
5103
5103
  ],
5104
5104
  "../src/_constants/index.ts": [
5105
- "../src/_constants/dynamo-nts-global.settings.ts"
5105
+ "../src/_constants/dynamo-nts-global-settings.ts"
5106
5106
  ],
5107
5107
  "../src/_enums/index.ts": [
5108
5108
  "../src/_enums/data-model-type.enum.ts",
@@ -5134,7 +5134,7 @@
5134
5134
  "../src/_models/dynamo-nts-socket-event-params.ts": [
5135
5135
  "../src/_enums/http/socket-event.enum.ts"
5136
5136
  ],
5137
- "../src/_models/dynamo-nts-socket-module-settings.ts": [
5137
+ "../src/_models/dynamo-nts-socket-service-params.ts": [
5138
5138
  "../src/_enums/dynamo-nts-socket-security.enum.ts"
5139
5139
  ],
5140
5140
  "../src/_models/index.ts": [
@@ -5144,7 +5144,7 @@
5144
5144
  "../src/_models/dynamo-nts-global-settings.ts",
5145
5145
  "../src/_models/dynamo-nts-routing-module-settings.ts",
5146
5146
  "../src/_models/dynamo-nts-socket-event-params.ts",
5147
- "../src/_models/dynamo-nts-socket-module-settings.ts"
5147
+ "../src/_models/dynamo-nts-socket-service-params.ts"
5148
5148
  ],
5149
5149
  "../src/_modules/api-service.index.ts": [
5150
5150
  "../node_modules/@futdevpro/fsm-dynamo/lib/_modules/error-module.index.d.ts",
@@ -5154,7 +5154,7 @@
5154
5154
  "../src/_services/dynamo-nts-singleton.service.ts"
5155
5155
  ],
5156
5156
  "../src/_modules/app-extended.index.ts": [
5157
- "../src/_constants/dynamo-nts-global.settings.ts",
5157
+ "../src/_constants/dynamo-nts-global-settings.ts",
5158
5158
  "../src/_enums/dynamo-nts-route-security.enum.ts",
5159
5159
  "../src/_models/dynamo-nts-app-params.ts",
5160
5160
  "../src/_models/dynamo-nts-endpoint-params.ts",
@@ -5167,7 +5167,7 @@
5167
5167
  "../src/_services/dynamo-nts-shared.service.ts"
5168
5168
  ],
5169
5169
  "../src/_modules/app.index.ts": [
5170
- "../src/_constants/dynamo-nts-global.settings.ts",
5170
+ "../src/_constants/dynamo-nts-global-settings.ts",
5171
5171
  "../src/_enums/dynamo-nts-route-security.enum.ts",
5172
5172
  "../src/_models/dynamo-nts-app-params.ts",
5173
5173
  "../src/_models/dynamo-nts-endpoint-params.ts",
@@ -5506,7 +5506,7 @@
5506
5506
  "../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts",
5507
5507
  "../node_modules/typescript/lib/lib.es5.d.ts",
5508
5508
  "../node_modules/typescript/lib/lib.esnext.intl.d.ts",
5509
- "../src/_constants/dynamo-nts-global.settings.ts",
5509
+ "../src/_constants/dynamo-nts-global-settings.ts",
5510
5510
  "../src/_constants/index.ts",
5511
5511
  "../src/_enums/data-model-type.enum.ts",
5512
5512
  "../src/_enums/dynamo-nts-data-service-function.enum.ts",
@@ -5523,7 +5523,7 @@
5523
5523
  "../src/_models/dynamo-nts-global-settings.ts",
5524
5524
  "../src/_models/dynamo-nts-routing-module-settings.ts",
5525
5525
  "../src/_models/dynamo-nts-socket-event-params.ts",
5526
- "../src/_models/dynamo-nts-socket-module-settings.ts",
5526
+ "../src/_models/dynamo-nts-socket-service-params.ts",
5527
5527
  "../src/_models/index.ts",
5528
5528
  "../src/_modules/api-service.index.ts",
5529
5529
  "../src/_modules/app-extended.index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@futdevpro/nts-dynamo",
3
- "version": "01.05.36",
3
+ "version": "01.05.38",
4
4
  "description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Ltd.",
5
5
  "scripts": {
6
6
  "build": "npx tsc",
@@ -1,2 +1,2 @@
1
1
 
2
- export * from './dynamo-nts-global.settings';
2
+ export * from './dynamo-nts-global-settings';
@@ -19,7 +19,7 @@ export class DynamoNTS_SocketEventParams<T>{
19
19
  constructor(
20
20
  set: {
21
21
  event: DynamoNTS_SocketEvent | string,
22
-
22
+
23
23
  preProcessess?: ((content?: T) => Promise<T>)[],
24
24
  tasks: ((content?: T, issuer?: string) => Promise<void>)[],
25
25
 
@@ -6,7 +6,7 @@ import { DynamoNTS_Shared } from '../_services';
6
6
  /**
7
7
  *
8
8
  */
9
- export class DynamoNTS_SocketServiceSettings {
9
+ export class DynamoNTS_SocketServiceParams {
10
10
  name: string;
11
11
  port: number;
12
12
  security?: DynamoNTS_SocketSecurity;
@@ -7,5 +7,5 @@ export * from './dynamo-nts-endpoint-params';
7
7
  export * from './dynamo-nts-global-settings';
8
8
  export * from './dynamo-nts-routing-module-settings';
9
9
  export * from './dynamo-nts-socket-event-params';
10
- export * from './dynamo-nts-socket-module-settings';
10
+ export * from './dynamo-nts-socket-service-params';
11
11
 
@@ -16,5 +16,5 @@ export * from '../_models/dynamo-nts-routing-module-settings';
16
16
  export * from '../_enums/dynamo-nts-route-security.enum';
17
17
 
18
18
  // CONSTANTS
19
- export * from '../_constants/dynamo-nts-global.settings';
19
+ export * from '../_constants/dynamo-nts-global-settings';
20
20
 
@@ -15,5 +15,5 @@ export * from '../_models/dynamo-nts-routing-module-settings';
15
15
  export * from '../_enums/dynamo-nts-route-security.enum';
16
16
 
17
17
  // CONSTANTS
18
- export * from '../_constants/dynamo-nts-global.settings';
18
+ export * from '../_constants/dynamo-nts-global-settings';
19
19
 
@@ -298,11 +298,11 @@ export class DynamoNTS_DBService<T extends Metadata> {
298
298
  * @param data
299
299
  * (always use unique parameters for find!)
300
300
  * etc.: by email:
301
- * { email: email }
301
+ * @example { email: email }
302
302
  * or by id that is in list:
303
- * { userIds: { $in: this.userId } }
303
+ * @example { userIds: { $in: this.userId } }
304
304
  * or by number or Date that is greater than OR less than:
305
- * { points: { $gte: 2, $lte: 14 } }
305
+ * @example { points: { $gte: 2, $lte: 14 } }
306
306
  * @returns data
307
307
  */
308
308
  /* async findData(data: T): Promise<T> {
@@ -392,11 +392,11 @@ export class DynamoNTS_DBService<T extends Metadata> {
392
392
  * @param filter
393
393
  * (always use unique parameters for find!)
394
394
  * etc.: by email:
395
- * { email: email }
395
+ * @example { email: email }
396
396
  * or by id that is in list:
397
- * { userIds: { $in: this.userId } }
397
+ * @example { userIds: { $in: this.userId } }
398
398
  * or by number or Date that is GREATER THAN OR LESS THAN:
399
- * { points: { $gt: 2, $lt: 14 } }
399
+ * @example { points: { $gt: 2, $lt: 14 } }
400
400
  * further tools (syntax matches with $gt):
401
401
  * $eq: Matches values that are EQUAL to a specified value.
402
402
  * $gte: Matches values that are GREATER THAN or EQUAL to a specified value.
@@ -431,11 +431,11 @@ export class DynamoNTS_DBService<T extends Metadata> {
431
431
  * find all data by any of its parameters, throws error if not found
432
432
  * @param filter
433
433
  * etc.: by email:
434
- * { email: email }
434
+ * @example { email: email }
435
435
  * or by id that is in list:
436
- * { userIds: { $in: this.userId } }
436
+ * @example { userIds: { $in: this.userId } }
437
437
  * or by number or Date that is GREATER THAN OR LESS THAN:
438
- * { points: { $gt: 2, $lt: 14 } }
438
+ * @example { points: { $gt: 2, $lt: 14 } }
439
439
  * further tools (syntax matches with $gt):
440
440
  * $eq: Matches values that are EQUAL to a specified value.
441
441
  * $gte: Matches values that are GREATER THAN or EQUAL to a specified value.
@@ -470,11 +470,11 @@ export class DynamoNTS_DBService<T extends Metadata> {
470
470
  * find all data by any of its parameters, throws error if not found
471
471
  * @param filter
472
472
  * etc.: by email:
473
- * { email: email }
473
+ * @example { email: email }
474
474
  * or by id that is in list:
475
- * { userIds: { $in: this.userId } }
475
+ * @example { userIds: { $in: this.userId } }
476
476
  * or by number or Date that is GREATER THAN OR LESS THAN:
477
- * { points: { $gt: 2, $lt: 14 } }
477
+ * @example { points: { $gt: 2, $lt: 14 } }
478
478
  * further tools (syntax matches with $gt):
479
479
  * $eq: Matches values that are EQUAL to a specified value.
480
480
  * $gte: Matches values that are GREATER THAN or EQUAL to a specified value.
@@ -548,11 +548,11 @@ export class DynamoNTS_DBService<T extends Metadata> {
548
548
  * @param updateBy
549
549
  * (always use unique parameters for find!)
550
550
  * etc.: by email:
551
- * { email: email }
551
+ * @example { email: email }
552
552
  * or by id that is in list:
553
- * { userIds: { $in: this.userId } }
553
+ * @example { userIds: { $in: this.userId } }
554
554
  * or by number or Date that is GREATER THAN OR LESS THAN:
555
- * { points: { $gt: 2, $lt: 14 } }
555
+ * @example { points: { $gt: 2, $lt: 14 } }
556
556
  * further tools (syntax matches with $gt):
557
557
  * $eq: Matches values that are EQUAL to a specified value.
558
558
  * $gte: Matches values that are GREATER THAN or EQUAL to a specified value.
@@ -562,11 +562,11 @@ export class DynamoNTS_DBService<T extends Metadata> {
562
562
  *
563
563
  * @param update
564
564
  * etc.: increase a specific value:
565
- * { $inc: { popularity: 15 } }
565
+ * @example { $inc: { popularity: 15 } }
566
566
  * or add element to a list:
567
- * { $push: { reactions: this.newReaction }
567
+ * @example { $push: { reactions: this.newReaction }
568
568
  * or all at once
569
- * { $inc: { popularity: this.newVote.amount }, emailVerified: true, $push: { reactions: this.newReaction } }
569
+ * @example { $inc: { popularity: this.newVote.amount }, emailVerified: true, $push: { reactions: this.newReaction } }
570
570
  * further tools (syntax matches with $inc):
571
571
  * $currentDate: Sets the value of a field to current date, either as a Date or a Timestamp.
572
572
  * $min: Only updates the field if the specified value is less than the existing field value.
@@ -591,11 +591,11 @@ export class DynamoNTS_DBService<T extends Metadata> {
591
591
  * update one parameter by a specific
592
592
  * @param updateBy
593
593
  * etc.: by email:
594
- * { email: email }
594
+ * @example { email: email }
595
595
  * or by id that is in list:
596
- * { userIds: { $in: this.userId } }
596
+ * @example { userIds: { $in: this.userId } }
597
597
  * or by number or Date that is GREATER THAN OR LESS THAN:
598
- * { points: { $gt: 2, $lt: 14 } }
598
+ * @example { points: { $gt: 2, $lt: 14 } }
599
599
  * further tools (syntax matches with $gt):
600
600
  * $eq: Matches values that are EQUAL to a specified value.
601
601
  * $gte: Matches values that are GREATER THAN or EQUAL to a specified value.
@@ -605,11 +605,11 @@ export class DynamoNTS_DBService<T extends Metadata> {
605
605
  *
606
606
  * @param update
607
607
  * etc.: increase a specific value:
608
- * { $inc: { popularity: 15 } }
608
+ * @example { $inc: { popularity: 15 } }
609
609
  * or add element to a list:
610
- * { $push: { reactions: this.newReaction }
610
+ * @example { $push: { reactions: this.newReaction }
611
611
  * or all at once
612
- * { $inc: { popularity: this.newVote.amount }, emailVerified: true, $push: { reactions: this.newReaction } }
612
+ * @example { $inc: { popularity: this.newVote.amount }, emailVerified: true, $push: { reactions: this.newReaction } }
613
613
  * further tools (syntax matches with $inc):
614
614
  * $currentDate: Sets the value of a field to current date, either as a Date or a Timestamp.
615
615
  * $min: Only updates the field if the specified value is less than the existing field value.
@@ -2,7 +2,7 @@
2
2
  import { Router } from 'express';
3
3
  import { DynamoNTS_Error } from '@futdevpro/fsm-dynamo';
4
4
 
5
- import { dynamoNTS_GlobalSettings } from '../_constants/dynamo-nts-global.settings';
5
+ import { dynamoNTS_GlobalSettings } from '../_constants/dynamo-nts-global-settings';
6
6
  import { DynamoNTS_RouteSecurity } from '../_enums/dynamo-nts-route-security.enum';
7
7
  import { HttpCallType } from '../_enums/http/http-call-type.enum';
8
8
  import { DynamoNTS_EndpointParams } from '../_models/dynamo-nts-endpoint-params';
@@ -1,9 +1,9 @@
1
1
 
2
2
  import * as SocketIO from 'socket.io';
3
3
 
4
- import { dynamoNTS_GlobalSettings } from '../_constants/dynamo-nts-global.settings';
4
+ import { dynamoNTS_GlobalSettings } from '../_constants/dynamo-nts-global-settings';
5
5
  import { DynamoNTS_Shared } from './dynamo-nts-shared.service';
6
- import { DynamoNTS_SocketServiceSettings } from '../_models';
6
+ import { DynamoNTS_SocketServiceParams } from '../_models';
7
7
  import { DynamoNTS_SingletonService } from './dynamo-nts-singleton.service';
8
8
  import { DynamoNTS_SocketEventParams } from '../_models/dynamo-nts-socket-event-params';
9
9
  import { DynamoNTS_SocketEvent } from '../_enums/http/socket-event.enum';
@@ -20,24 +20,18 @@ export interface DynamoNTS_SocketDictionary {
20
20
  *
21
21
  */
22
22
  export abstract class DynamoNTS_SocketService extends DynamoNTS_SingletonService {
23
- protected params: DynamoNTS_SocketServiceSettings;
24
- get name(): string {
25
- return this.params.name;
26
- }
27
- get security(): DynamoNTS_SocketSecurity {
28
- return this.params.security;
29
- }
30
- get port(): number {
31
- return this.params.port;
32
- }
23
+ protected params: DynamoNTS_SocketServiceParams;
24
+ get name(): string { return this.params.name; }
25
+ get port(): number { return this.params.port; }
26
+ get security(): DynamoNTS_SocketSecurity { return this.params.security; }
33
27
 
34
28
  protected socketServer: SocketIO.Server;
35
29
 
36
30
  private connectEvent: DynamoNTS_SocketEventParams<SocketIO.Socket>;
37
- protected events: DynamoNTS_SocketEventParams<any>[];
31
+ protected incomingEvents: DynamoNTS_SocketEventParams<any>[];
38
32
 
39
33
  private subscriptionEvent: DynamoNTS_SocketEventParams<any>;
40
- private getIdFromSubscrioption?: <T>(content: T) => string;
34
+ private getIdFromSubscrioption?: <T>(content: T) => Promise<string>;
41
35
  private activeSockets: DynamoNTS_SocketDictionary[] = [];
42
36
 
43
37
  protected log: boolean = dynamoNTS_GlobalSettings.logSetup;
@@ -66,9 +60,9 @@ export abstract class DynamoNTS_SocketService extends DynamoNTS_SingletonService
66
60
  * You must setup events and required services for this function
67
61
  */
68
62
  private prepareEvents(): void {
69
- const connectEventIndex = this.events.findIndex((event: DynamoNTS_SocketEventParams<any>) => event.event === DynamoNTS_SocketEvent.connection);
63
+ const connectEventIndex = this.incomingEvents.findIndex((event: DynamoNTS_SocketEventParams<any>) => event.event === DynamoNTS_SocketEvent.connection);
70
64
  if (0 <= connectEventIndex) {
71
- this.connectEvent = this.events.splice(connectEventIndex)[0];
65
+ this.connectEvent = this.incomingEvents.splice(connectEventIndex)[0];
72
66
  } else {
73
67
  this.connectEvent = new DynamoNTS_SocketEventParams({
74
68
  event: DynamoNTS_SocketEvent.connection,
@@ -77,9 +71,9 @@ export abstract class DynamoNTS_SocketService extends DynamoNTS_SingletonService
77
71
  }
78
72
 
79
73
  if (this.getIdFromSubscrioption) {
80
- const subscriptionEventIndex = this.events.findIndex((event: DynamoNTS_SocketEventParams<any>) => event.event === DynamoNTS_SocketEvent.subscribe);
74
+ const subscriptionEventIndex = this.incomingEvents.findIndex((event: DynamoNTS_SocketEventParams<any>) => event.event === DynamoNTS_SocketEvent.subscribe);
81
75
  if (0 <= subscriptionEventIndex) {
82
- this.subscriptionEvent = this.events.splice(subscriptionEventIndex)[0];
76
+ this.subscriptionEvent = this.incomingEvents.splice(subscriptionEventIndex)[0];
83
77
  } else {
84
78
  this.subscriptionEvent = new DynamoNTS_SocketEventParams<SocketIO.Socket>({
85
79
  event: DynamoNTS_SocketEvent.subscribe,
@@ -87,11 +81,11 @@ export abstract class DynamoNTS_SocketService extends DynamoNTS_SingletonService
87
81
  });
88
82
  }
89
83
 
90
- const disconnectEventIndex = this.events.findIndex((event: DynamoNTS_SocketEventParams<any>) => event.event === DynamoNTS_SocketEvent.disconnect);
84
+ const disconnectEventIndex = this.incomingEvents.findIndex((event: DynamoNTS_SocketEventParams<any>) => event.event === DynamoNTS_SocketEvent.disconnect);
91
85
  if (0 <= disconnectEventIndex) {
92
- this.events[disconnectEventIndex].tasks.push(this.removeSubscriptionOnDisconnect);
86
+ this.incomingEvents[disconnectEventIndex].tasks.push(this.removeSubscriptionOnDisconnect);
93
87
  } else {
94
- this.events.push(new DynamoNTS_SocketEventParams<SocketIO.Socket>({
88
+ this.incomingEvents.push(new DynamoNTS_SocketEventParams<SocketIO.Socket>({
95
89
  event: DynamoNTS_SocketEvent.disconnect,
96
90
  tasks: [
97
91
  this.removeSubscriptionOnDisconnect
@@ -101,7 +95,7 @@ export abstract class DynamoNTS_SocketService extends DynamoNTS_SingletonService
101
95
  }
102
96
  }
103
97
 
104
- setupSocketServer(newSocketServer: SocketIO.Server): void {
98
+ async setupSocketServer(newSocketServer: SocketIO.Server): Promise<void> {
105
99
  this.socketServer = newSocketServer;
106
100
  this.socketServer.on(DynamoNTS_SocketEvent.connection, async (socket: SocketIO.Socket) => {
107
101
  let issuer: string;
@@ -115,14 +109,15 @@ export abstract class DynamoNTS_SocketService extends DynamoNTS_SingletonService
115
109
  }
116
110
 
117
111
  if (this.getIdFromSubscrioption) {
118
- socket.on(DynamoNTS_SocketEvent.subscribe, (content: any) => {
119
- issuer = this.getIdFromSubscrioption(content);
112
+ socket.on(DynamoNTS_SocketEvent.subscribe, async (content: any) => {
113
+ issuer = await this.getIdFromSubscrioption(content);
114
+
120
115
  this.socketSubscription(socket, issuer);
121
116
  this.subscriptionEvent.getFullExecution(issuer)(content);
122
117
  })
123
118
  }
124
119
 
125
- this.events.forEach((event: DynamoNTS_SocketEventParams<any>) => {
120
+ this.incomingEvents.forEach((event: DynamoNTS_SocketEventParams<any>) => {
126
121
  socket.on(event.event, event.getFullExecution(issuer));
127
122
  });
128
123
  });
@@ -159,22 +154,35 @@ export abstract class DynamoNTS_SocketService extends DynamoNTS_SingletonService
159
154
  this.socketServer.emit(event, content);
160
155
  }
161
156
 
162
- emitEventForId(id: string, event: string, content: any): void {
157
+ idIsSubscribed(id: string): boolean {
158
+ return !!this.activeSockets.find((dic: DynamoNTS_SocketDictionary) => dic.id === id);
159
+ }
160
+
161
+ async sendEventForId(id: string, event: string, content: any, error?: (err: any) => void): Promise<void> {
163
162
  const dic: DynamoNTS_SocketDictionary = this.activeSockets.find((dic: DynamoNTS_SocketDictionary) => dic.id === id);
164
163
  if (dic) {
165
164
  dic.sockets.forEach((socket: SocketIO.Socket) => {
166
165
  socket.emit(event, content);
167
166
  });
168
167
  } else {
169
- throw new DynamoNTS_Error({ message: `No active socket whit this specific ID: ${id}` });
168
+ if (error)
169
+ throw new DynamoNTS_Error({ status: 404, message: `No active socket whit this specific ID: ${id}` });
170
170
  }
171
171
  }
172
172
 
173
+ broadcastEvent(event: string, content: any): void {
174
+ this.activeSockets.forEach((dic: DynamoNTS_SocketDictionary) => {
175
+ dic.sockets.forEach((socket: SocketIO.Socket) => {
176
+ socket.emit(event, content);
177
+ })
178
+ })
179
+ }
180
+
173
181
  /**
174
182
  * You must setup params for the service in this function
175
183
  *
176
184
  */
177
- abstract setupServiceParams(): void
185
+ abstract setupServiceParams(): void
178
186
 
179
187
  /**
180
188
  * You must setup events and required services in this function