@conduitplatform/grpc-sdk 0.13.0 → 0.14.0-rc.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.
Files changed (121) hide show
  1. package/dist/classes/ConduitModule.js +5 -6
  2. package/dist/classes/ConduitModule.js.map +1 -1
  3. package/dist/classes/ConduitServiceModule.js +4 -4
  4. package/dist/classes/ConduitServiceModule.js.map +1 -1
  5. package/dist/classes/GrpcServer.d.ts +2 -1
  6. package/dist/classes/GrpcServer.js +33 -19
  7. package/dist/classes/GrpcServer.js.map +1 -1
  8. package/dist/classes/HealthCheck.d.ts +1 -0
  9. package/dist/classes/HealthCheck.js +76 -0
  10. package/dist/classes/HealthCheck.js.map +1 -0
  11. package/dist/classes/ManagedModule.d.ts +38 -0
  12. package/dist/classes/ManagedModule.js +87 -14
  13. package/dist/classes/ManagedModule.js.map +1 -1
  14. package/dist/classes/ModuleManager.js +19 -28
  15. package/dist/classes/ModuleManager.js.map +1 -1
  16. package/dist/classes/Routing/RoutingManager.js +2 -2
  17. package/dist/classes/Routing/RoutingManager.js.map +1 -1
  18. package/dist/classes/index.js +5 -1
  19. package/dist/classes/index.js.map +1 -1
  20. package/dist/constants/enums/index.js +5 -1
  21. package/dist/constants/enums/index.js.map +1 -1
  22. package/dist/constants/index.js +5 -1
  23. package/dist/constants/index.js.map +1 -1
  24. package/dist/helpers/GrpcHelper.js +1 -1
  25. package/dist/helpers/GrpcHelper.js.map +1 -1
  26. package/dist/helpers/RoutingUtilities.js +5 -5
  27. package/dist/helpers/RoutingUtilities.js.map +1 -1
  28. package/dist/helpers/index.js +5 -1
  29. package/dist/helpers/index.js.map +1 -1
  30. package/dist/helpers/wrapGrpcFunctions.js +1 -1
  31. package/dist/helpers/wrapGrpcFunctions.js.map +1 -1
  32. package/dist/helpers/wrapRouterFunctions.js +10 -6
  33. package/dist/helpers/wrapRouterFunctions.js.map +1 -1
  34. package/dist/index.d.ts +10 -3
  35. package/dist/index.js +129 -80
  36. package/dist/index.js.map +1 -1
  37. package/dist/interceptors/grpcSignedToken.d.ts +1 -1
  38. package/dist/interceptors/grpcSignedToken.js +1 -1
  39. package/dist/interceptors/grpcSignedToken.js.map +1 -1
  40. package/dist/interceptors/index.js +5 -1
  41. package/dist/interceptors/index.js.map +1 -1
  42. package/dist/interceptors/moduleName.d.ts +1 -1
  43. package/dist/interceptors/moduleName.js +1 -1
  44. package/dist/interceptors/moduleName.js.map +1 -1
  45. package/dist/interfaces/index.js +5 -1
  46. package/dist/interfaces/index.js.map +1 -1
  47. package/dist/modules/admin/index.js +4 -4
  48. package/dist/modules/admin/index.js.map +1 -1
  49. package/dist/modules/authentication/index.d.ts +1 -2
  50. package/dist/modules/authentication/index.js +0 -5
  51. package/dist/modules/authentication/index.js.map +1 -1
  52. package/dist/modules/chat/index.d.ts +0 -1
  53. package/dist/modules/chat/index.js +0 -5
  54. package/dist/modules/chat/index.js.map +1 -1
  55. package/dist/modules/config/index.d.ts +2 -0
  56. package/dist/modules/config/index.js +19 -4
  57. package/dist/modules/config/index.js.map +1 -1
  58. package/dist/modules/email/index.d.ts +0 -1
  59. package/dist/modules/email/index.js +0 -5
  60. package/dist/modules/email/index.js.map +1 -1
  61. package/dist/modules/forms/index.d.ts +0 -1
  62. package/dist/modules/forms/index.js +0 -5
  63. package/dist/modules/forms/index.js.map +1 -1
  64. package/dist/modules/index.js +5 -1
  65. package/dist/modules/index.js.map +1 -1
  66. package/dist/modules/pushNotifications/index.d.ts +0 -1
  67. package/dist/modules/pushNotifications/index.js +0 -5
  68. package/dist/modules/pushNotifications/index.js.map +1 -1
  69. package/dist/modules/router/index.d.ts +2 -2
  70. package/dist/modules/router/index.js +2 -2
  71. package/dist/modules/router/index.js.map +1 -1
  72. package/dist/modules/sms/index.d.ts +0 -1
  73. package/dist/modules/sms/index.js +0 -5
  74. package/dist/modules/sms/index.js.map +1 -1
  75. package/dist/modules/storage/index.d.ts +1 -2
  76. package/dist/modules/storage/index.js +0 -5
  77. package/dist/modules/storage/index.js.map +1 -1
  78. package/dist/protoUtils/authentication.d.ts +19 -19
  79. package/dist/protoUtils/authentication.js +5 -9
  80. package/dist/protoUtils/authentication.js.map +1 -1
  81. package/dist/protoUtils/chat.d.ts +16 -16
  82. package/dist/protoUtils/chat.js +5 -9
  83. package/dist/protoUtils/chat.js.map +1 -1
  84. package/dist/protoUtils/core.d.ts +64 -161
  85. package/dist/protoUtils/core.js +29 -561
  86. package/dist/protoUtils/core.js.map +1 -1
  87. package/dist/protoUtils/database.d.ts +46 -46
  88. package/dist/protoUtils/database.js +5 -9
  89. package/dist/protoUtils/database.js.map +1 -1
  90. package/dist/protoUtils/email.d.ts +13 -13
  91. package/dist/protoUtils/email.js +5 -9
  92. package/dist/protoUtils/email.js.map +1 -1
  93. package/dist/protoUtils/forms.d.ts +4 -4
  94. package/dist/protoUtils/forms.js +5 -9
  95. package/dist/protoUtils/forms.js.map +1 -1
  96. package/dist/protoUtils/grpc_health_check.d.ts +6 -6
  97. package/dist/protoUtils/grpc_health_check.js +5 -9
  98. package/dist/protoUtils/grpc_health_check.js.map +1 -1
  99. package/dist/protoUtils/push-notifications.d.ts +16 -16
  100. package/dist/protoUtils/push-notifications.js +5 -9
  101. package/dist/protoUtils/push-notifications.js.map +1 -1
  102. package/dist/protoUtils/router.d.ts +171 -0
  103. package/dist/protoUtils/router.js +694 -0
  104. package/dist/protoUtils/router.js.map +1 -0
  105. package/dist/protoUtils/sms.d.ts +16 -16
  106. package/dist/protoUtils/sms.js +5 -9
  107. package/dist/protoUtils/sms.js.map +1 -1
  108. package/dist/protoUtils/storage.d.ts +18 -18
  109. package/dist/protoUtils/storage.js +5 -9
  110. package/dist/protoUtils/storage.js.map +1 -1
  111. package/dist/utilities/EventBus.js +5 -4
  112. package/dist/utilities/EventBus.js.map +1 -1
  113. package/dist/utilities/Logger.d.ts +13 -0
  114. package/dist/utilities/Logger.js +112 -0
  115. package/dist/utilities/Logger.js.map +1 -0
  116. package/dist/utilities/RedisManager.d.ts +3 -3
  117. package/dist/utilities/RedisManager.js.map +1 -1
  118. package/dist/utilities/StateManager.d.ts +2 -2
  119. package/dist/utilities/StateManager.js +1 -1
  120. package/dist/utilities/StateManager.js.map +1 -1
  121. package/package.json +19 -18
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __read = (this && this.__read) || function (o, n) {
26
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
27
+ if (!m) return o;
28
+ var i = m.call(o), r, ar = [], e;
29
+ try {
30
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
31
+ }
32
+ catch (error) { e = { error: error }; }
33
+ finally {
34
+ try {
35
+ if (r && !r.done && (m = i["return"])) m.call(i);
36
+ }
37
+ finally { if (e) throw e.error; }
38
+ }
39
+ return ar;
40
+ };
41
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
42
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
43
+ if (ar || !(i in from)) {
44
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
45
+ ar[i] = from[i];
46
+ }
47
+ }
48
+ return to.concat(ar || Array.prototype.slice.call(from));
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.ConduitLogger = void 0;
52
+ var winston_1 = __importStar(require("winston"));
53
+ var lodash_1 = require("lodash");
54
+ var Format = winston_1.format.combine(winston_1.format.printf(function (info) {
55
+ // This will customize the Error Message
56
+ if (info.stack) {
57
+ return "[".concat(info.timestamp, "] [").concat(info.level.toUpperCase(), "]: ").concat(info.message, " ").concat(info.stack);
58
+ }
59
+ return "[".concat(info.timestamp, "] [").concat(info.level.toUpperCase(), "]: ").concat(info.message, " ").concat(!(0, lodash_1.isEmpty)(info.meta)
60
+ ? info.meta.reduce(function (message, meta) {
61
+ return "".concat(message, " \n ").concat(JSON.stringify(meta, null, 2));
62
+ }, '')
63
+ : '');
64
+ }));
65
+ var defaultTransport = new winston_1.default.transports.Console({
66
+ level: 'debug',
67
+ format: winston_1.format.combine(winston_1.format.prettyPrint(), winston_1.format.errors({ stack: true }), winston_1.format.timestamp({
68
+ format: 'YYYY-MM-DD HH:mm:ss',
69
+ }), Format, winston_1.format.colorize({
70
+ all: true,
71
+ })),
72
+ });
73
+ var ConduitLogger = /** @class */ (function () {
74
+ function ConduitLogger(transports) {
75
+ this._winston = winston_1.default.createLogger({
76
+ format: winston_1.format.combine(winston_1.format.prettyPrint(), winston_1.format.errors({ stack: true }), winston_1.format.timestamp({
77
+ format: 'YYYY-MM-DD HH:mm:ss',
78
+ }), Format),
79
+ transports: transports ? __spreadArray(__spreadArray([], __read(transports), false), [defaultTransport], false) : [defaultTransport],
80
+ });
81
+ }
82
+ ConduitLogger.prototype.log = function (message, level, cb) {
83
+ if (level === void 0) { level = 'info'; }
84
+ return this._winston.log(level, message, cb);
85
+ };
86
+ ConduitLogger.prototype.logObject = function (object, message, level, cb) {
87
+ if (message === void 0) { message = ''; }
88
+ if (level === void 0) { level = 'info'; }
89
+ return this._winston.log(level, message, object, cb);
90
+ };
91
+ ConduitLogger.prototype.info = function (message, cb) {
92
+ return this._winston.info(message, cb);
93
+ };
94
+ ConduitLogger.prototype.warn = function (message, cb) {
95
+ return this._winston.warn(message, cb);
96
+ };
97
+ ConduitLogger.prototype.error = function (message, cb) {
98
+ if (typeof message === 'object') {
99
+ return this._winston.error(message);
100
+ }
101
+ return this._winston.error(message, cb);
102
+ };
103
+ ConduitLogger.prototype.http = function (message, cb) {
104
+ return this._winston.http(message, cb);
105
+ };
106
+ ConduitLogger.prototype.verbose = function (message, cb) {
107
+ return this._winston.verbose(message, cb);
108
+ };
109
+ return ConduitLogger;
110
+ }());
111
+ exports.ConduitLogger = ConduitLogger;
112
+ //# sourceMappingURL=Logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../src/utilities/Logger.ts"],"names":[],"mappings":"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"}
@@ -1,6 +1,6 @@
1
- import IORedis from 'ioredis';
1
+ import { Redis, RedisOptions } from 'ioredis';
2
2
  export declare class RedisManager {
3
- redisConnection: IORedis.RedisOptions;
3
+ redisConnection: RedisOptions;
4
4
  constructor(redisIp: string, redisPort: any);
5
- getClient(connectionOps?: any): IORedis.Redis;
5
+ getClient(connectionOps?: RedisOptions): Redis;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RedisManager.js","sourceRoot":"","sources":["../../src/utilities/RedisManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAA8B;AAE9B;IAGE,sBAAY,OAAe,EAAE,SAAc;QACzC,IAAI,CAAC,eAAe,GAAG;YACrB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,SAAS;SAChB,CAAC;IACJ,CAAC;IAED,gCAAS,GAAT,UAAU,aAAmB;QAC3B,OAAO,IAAI,iBAAO,uBAAM,IAAI,CAAC,eAAe,GAAK,aAAa,EAAG,CAAC;IACpE,CAAC;IACH,mBAAC;AAAD,CAAC,AAbD,IAaC;AAbY,oCAAY"}
1
+ {"version":3,"file":"RedisManager.js","sourceRoot":"","sources":["../../src/utilities/RedisManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAuD;AAEvD;IAGE,sBAAY,OAAe,EAAE,SAAc;QACzC,IAAI,CAAC,eAAe,GAAG;YACrB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,SAAS;SAChB,CAAC;IACJ,CAAC;IAED,gCAAS,GAAT,UAAU,aAA4B;QACpC,OAAO,IAAI,iBAAO,uBAAM,IAAI,CAAC,eAAe,GAAK,aAAa,EAAG,CAAC;IACpE,CAAC;IACH,mBAAC;AAAD,CAAC,AAbD,IAaC;AAbY,oCAAY"}
@@ -2,9 +2,9 @@ import { RedisManager } from './RedisManager';
2
2
  export declare class StateManager {
3
3
  private readonly redisClient;
4
4
  constructor(redisManager: RedisManager, name: string);
5
- setState(stateObj: any): Promise<"OK" | null>;
5
+ setState(stateObj: any): Promise<"OK">;
6
6
  getState(): Promise<string | null>;
7
- setKey(keyName: string, value: any, expiry?: number): Promise<"OK" | null>;
7
+ setKey(keyName: string, value: any, expiry?: number): Promise<"OK">;
8
8
  clearKey(keyName: string): Promise<number>;
9
9
  getKey(keyName: string): Promise<string | null>;
10
10
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StateManager = void 0;
4
4
  var StateManager = /** @class */ (function () {
5
5
  function StateManager(redisManager, name) {
6
- this.redisClient = redisManager.getClient({ keyPrefix: name });
6
+ this.redisClient = redisManager.getClient({ keyPrefix: name + '_' });
7
7
  }
8
8
  StateManager.prototype.setState = function (stateObj) {
9
9
  return this.setKey('state', stateObj);
@@ -1 +1 @@
1
- {"version":3,"file":"StateManager.js","sourceRoot":"","sources":["../../src/utilities/StateManager.ts"],"names":[],"mappings":";;;AAGA;IAGE,sBAAY,YAA0B,EAAE,IAAY;QAClD,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,+BAAQ,GAAR,UAAS,QAAa;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACxC,CAAC;IAED,+BAAQ,GAAR;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,6BAAM,GAAN,UAAO,OAAe,EAAE,KAAU,EAAE,MAAe;QACjD,IAAI,MAAM,EAAE;YACV,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;SAC3D;aAAM;YACL,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;SAC7C;IACH,CAAC;IAED,+BAAQ,GAAR,UAAS,OAAe;QACtB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAED,6BAAM,GAAN,UAAO,OAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IACH,mBAAC;AAAD,CAAC,AA9BD,IA8BC;AA9BY,oCAAY"}
1
+ {"version":3,"file":"StateManager.js","sourceRoot":"","sources":["../../src/utilities/StateManager.ts"],"names":[],"mappings":";;;AAGA;IAGE,sBAAY,YAA0B,EAAE,IAAY;QAClD,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,IAAI,GAAG,GAAG,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,+BAAQ,GAAR,UAAS,QAAa;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACxC,CAAC;IAED,+BAAQ,GAAR;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,6BAAM,GAAN,UAAO,OAAe,EAAE,KAAU,EAAE,MAAe;QACjD,IAAI,MAAM,EAAE;YACV,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;SAC3D;aAAM;YACL,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;SAC7C;IACH,CAAC;IAED,+BAAQ,GAAR,UAAS,OAAe;QACtB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAED,6BAAM,GAAN,UAAO,OAAe;QACpB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IACH,mBAAC;AAAD,CAAC,AA9BD,IA8BC;AA9BY,oCAAY"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduitplatform/grpc-sdk",
3
- "version": "0.13.0",
3
+ "version": "0.14.0-rc.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "engines": {
@@ -14,17 +14,18 @@
14
14
  },
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
- "@grpc/grpc-js": "^1.5.3",
18
- "@grpc/proto-loader": "^0.6.9",
19
- "@types/google-protobuf": "^3.15.5",
20
- "@types/ioredis": "^4.28.7",
21
- "@types/lodash": "^4.14.178",
17
+ "@grpc/grpc-js": "^1.6.7",
18
+ "@grpc/proto-loader": "^0.6.13",
19
+ "@types/google-protobuf": "^3.15.6",
20
+ "@types/ioredis": "^4.28.10",
21
+ "@types/lodash": "^4.14.182",
22
22
  "convict": "^6.2.3",
23
- "fast-jwt": "^1.5.4",
24
- "ioredis": "^4.28.3",
23
+ "fast-jwt": "^1.6.0",
24
+ "ioredis": "^5.1.0",
25
25
  "lodash": "^4.17.21",
26
- "nice-grpc": "^1.0.6",
27
- "protobufjs": "^6.11.2"
26
+ "nice-grpc": "^1.2.0",
27
+ "protobufjs": "^6.11.3",
28
+ "winston": "^3.8.1"
28
29
  },
29
30
  "directories": {
30
31
  "lib": "dist",
@@ -39,18 +40,18 @@
39
40
  "directory": "libraries/grpc-sdk"
40
41
  },
41
42
  "devDependencies": {
42
- "@types/convict": "^4.2.1",
43
- "@types/google-protobuf": "^3.15.5",
44
- "@types/ioredis": "^4.28.7",
45
- "@types/lodash": "^4.14.178",
43
+ "@types/convict": "^6.1.1",
44
+ "@types/google-protobuf": "^3.15.6",
45
+ "@types/ioredis": "^4.28.10",
46
+ "@types/lodash": "^4.14.182",
46
47
  "@types/node": "14.14.31",
47
- "copyfiles": "^2.2.0",
48
+ "copyfiles": "^2.4.1",
48
49
  "rimraf": "^3.0.2",
49
- "ts-proto": "^1.105.0",
50
- "typescript": "~4.2.0"
50
+ "ts-proto": "^1.117.0",
51
+ "typescript": "~4.7.4"
51
52
  },
52
53
  "peerDependencies": {
53
54
  "@grpc/grpc-js": "^1.5.2",
54
- "@grpc/proto-loader": "^0.6.9"
55
+ "@grpc/proto-loader": "^0.6.13"
55
56
  }
56
57
  }