@aldb2b/common 1.0.171 → 1.0.174

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.
@@ -0,0 +1,10 @@
1
+ import { Subjects } from './subjects';
2
+ export declare namespace HasSubscription {
3
+ interface Context {
4
+ subject: Subjects.HasSubscription;
5
+ data: any;
6
+ }
7
+ interface Data {
8
+ attendeeIds: string[];
9
+ }
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=has-subscription.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-subscription.interface.js","sourceRoot":"","sources":["../../src/events/has-subscription.interface.ts"],"names":[],"mappings":""}
@@ -68,5 +68,7 @@ export declare enum Subjects {
68
68
  MeetingRequestUpdated = "meetingRequest:updated",
69
69
  GetCityCountryById = "getCityCountryById",
70
70
  CompaniesByQuery = "companiesByQuery",
71
- CreateMeetingEvent = "createMeetingEvent"
71
+ CreateMeetingEvent = "createMeetingEvent",
72
+ HasSubscription = "hasSubscription",
73
+ SubtractSubscriptionPoint = "subscription:substractPoint"
72
74
  }
@@ -73,5 +73,7 @@ var Subjects;
73
73
  Subjects["GetCityCountryById"] = "getCityCountryById";
74
74
  Subjects["CompaniesByQuery"] = "companiesByQuery";
75
75
  Subjects["CreateMeetingEvent"] = "createMeetingEvent";
76
+ Subjects["HasSubscription"] = "hasSubscription";
77
+ Subjects["SubtractSubscriptionPoint"] = "subscription:substractPoint";
76
78
  })(Subjects = exports.Subjects || (exports.Subjects = {}));
77
79
  //# sourceMappingURL=subjects.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subjects.js","sourceRoot":"","sources":["../../src/events/subjects.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAuEX;AAvED,WAAY,QAAQ;IAClB,yCAA6B,CAAA;IAC7B,mCAAuB,CAAA;IACvB,4CAAgC,CAAA;IAChC,iCAAqB,CAAA;IACrB,u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;IAChC,uDAA2C,CAAA;IAC3C,qDAAyC,CAAA;IACzC,2CAA+B,CAAA;IAC/B,8CAAkC,CAAA;IAClC,8CAAkC,CAAA;IAClC,8CAAkC,CAAA;IAClC,8CAAkC,CAAA;IAClC,8CAAkC,CAAA;IAClC,8CAAkC,CAAA;IAClC,8CAAkC,CAAA;IAClC,8CAAkC,CAAA;IAClC,0CAA8B,CAAA;IAC9B,oDAAwC,CAAA;IACxC,oEAAwD,CAAA;IACxD,0CAA8B,CAAA;IAC9B,sCAA0B,CAAA;IAC1B,sCAA0B,CAAA;IAC1B,kDAAsC,CAAA;IACtC,kDAAsC,CAAA;IACtC,8CAAkC,CAAA;IAClC,8CAAkC,CAAA;IAClC,4DAAgD,CAAA;IAChD,4DAAgD,CAAA;IAChD,qDAAyC,CAAA;IACzC,iDAAqC,CAAA;IACrC,qDAAyC,CAAA;IACzC,+CAAmC,CAAA;IACnC,qEAAyD,CAAA;AAC3D,CAAC,EAzEW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAyEnB"}
@@ -0,0 +1,10 @@
1
+ import { Subjects } from './subjects';
2
+ export declare namespace SubtractSubscriptionPoint {
3
+ interface Context {
4
+ subject: Subjects.AddCompanyCRM;
5
+ data: Data;
6
+ }
7
+ interface Data {
8
+ point: number;
9
+ }
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=subtract-subscription-point.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subtract-subscription-point.interface.js","sourceRoot":"","sources":["../../src/events/subtract-subscription-point.interface.ts"],"names":[],"mappings":""}
package/build/index.d.ts CHANGED
@@ -72,6 +72,8 @@ export * from './events/exchanges';
72
72
  export * from './events/sync-event-creation.interface';
73
73
  export * from './events/sync-accessibility-creation.interface';
74
74
  export * from './events/campaign-meeting-request-created.interface';
75
+ export * from './events/has-subscription.interface';
76
+ export * from './events/subtract-subscription-point.interface';
75
77
  export * from './validators/conditional-required';
76
78
  export * from './validators/date-validator';
77
79
  export * from './validators/validateNewItem';
@@ -127,3 +129,4 @@ export * from './utils/timezone';
127
129
  export * from './utils/adjustForTimezone';
128
130
  export * from './utils/get-parsed-query';
129
131
  export * from './utils/rmq/index';
132
+ export * from './utils/redis-client';
package/build/index.js CHANGED
@@ -84,6 +84,8 @@ __exportStar(require("./events/exchanges"), exports);
84
84
  __exportStar(require("./events/sync-event-creation.interface"), exports);
85
85
  __exportStar(require("./events/sync-accessibility-creation.interface"), exports);
86
86
  __exportStar(require("./events/campaign-meeting-request-created.interface"), exports);
87
+ __exportStar(require("./events/has-subscription.interface"), exports);
88
+ __exportStar(require("./events/subtract-subscription-point.interface"), exports);
87
89
  __exportStar(require("./validators/conditional-required"), exports);
88
90
  __exportStar(require("./validators/date-validator"), exports);
89
91
  __exportStar(require("./validators/validateNewItem"), exports);
@@ -139,4 +141,5 @@ __exportStar(require("./utils/timezone"), exports);
139
141
  __exportStar(require("./utils/adjustForTimezone"), exports);
140
142
  __exportStar(require("./utils/get-parsed-query"), exports);
141
143
  __exportStar(require("./utils/rmq/index"), exports);
144
+ __exportStar(require("./utils/redis-client"), exports);
142
145
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiC;AACjC,iEAA8C;AAC9C,mEAAgD;AAChD,+DAA4C;AAC5C,oEAAiD;AACjD,qEAAkD;AAClD,oEAAiD;AACjD,sEAAmD;AACnD,6EAA0D;AAC1D,uEAAoD;AACpD,sEAAmD;AACnD,6EAA0D;AAC1D,2EAAwD;AACxD,4EAAyD;AACzD,iEAA8C;AAC9C,4EAAyD;AACzD,4EAAyD;AACzD,wEAAqD;AACrD,yEAAsD;AACtD,yEAAsD;AACtD,oEAAiD;AACjD,6EAA0D;AAC1D,2EAAwD;AACxD,8EAA2D;AAC3D,mEAAgD;AAChD,oEAAiD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,qEAAkD;AAClD,uEAAoD;AACpD,mEAAgD;AAChD,+DAA4C;AAC5C,uEAAoD;AACpD,qEAAkD;AAClD,kEAA+C;AAC/C,oEAAiD;AACjD,iEAA8C;AAE9C,+DAA4C;AAC5C,sEAAmD;AAEnD,qEAAkD;AAClD,6DAA0C;AAC1C,uDAAoC;AACpC,sDAAmC;AACnC,qDAAkC;AAClC,mDAAgC;AAChC,4DAAyC;AACzC,2DAAwC;AACxC,oDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiC;AACjC,iEAA8C;AAC9C,mEAAgD;AAChD,+DAA4C;AAC5C,oEAAiD;AACjD,qEAAkD;AAClD,oEAAiD;AACjD,sEAAmD;AACnD,6EAA0D;AAC1D,uEAAoD;AACpD,sEAAmD;AACnD,6EAA0D;AAC1D,2EAAwD;AACxD,4EAAyD;AACzD,iEAA8C;AAC9C,4EAAyD;AACzD,4EAAyD;AACzD,wEAAqD;AACrD,yEAAsD;AACtD,yEAAsD;AACtD,oEAAiD;AACjD,6EAA0D;AAC1D,2EAAwD;AACxD,8EAA2D;AAC3D,mEAAgD;AAChD,oEAAiD;AACjD,oEAAiD;AACjD,oEAAiD;AACjD,wEAAqD;AACrD,2EAAwD;AACxD,0EAAuD;AACvD,mEAAgD;AAChD,kDAA+B;AAC/B,oEAAiD;AACjD,2EAAwD;AACxD,oEAAiD;AACjD,qEAAkD;AAClD,qEAAkD;AAClD,wEAAqD;AACrD,sEAAmD;AACnD,0EAAuD;AACvD,wEAAqD;AACrD,4EAAyD;AACzD,oEAAiD;AACjD,oEAAiD;AACjD,wEAAqD;AACrD,0EAAuD;AACvD,2EAAwD;AACxD,yEAAsD;AACtD,kFAA+D;AAC/D,qEAAkD;AAClD,qEAAkD;AAClD,qEAAkD;AAClD,qEAAkD;AAClD,mEAAgD;AAChD,mEAAgD;AAChD,qEAAkD;AAClD,6EAA0D;AAC1D,qEAAkD;AAClD,qEAAkD;AAClD,qEAAkD;AAClD,uEAAoD;AACpD,uEAAoD;AACpD,iEAA8C;AAC9C,iEAA8C;AAC9C,qEAAkD;AAClD,qEAAkD;AAClD,4EAAyD;AACzD,4EAAyD;AACzD,0EAAuD;AACvD,qDAAkC;AAClC,yEAAsD;AACtD,iFAA8D;AAC9D,sFAAmE;AACnE,sEAAmD;AACnD,iFAA8D;AAE9D,oEAAiD;AACjD,8DAA2C;AAC3C,+DAA4C;AAC5C,kEAA+C;AAC/C,wEAAqD;AACrD,kEAA+C;AAC/C,gFAA6D;AAC7D,+DAA4C;AAC5C,yEAAsD;AACtD,mFAAgE;AAChE,iFAA8D;AAC9D,iEAA8C;AAC9C,2EAAwD;AAExD,kEAA+C;AAC/C,sEAAmD;AAEnD,sEAAmD;AACnD,uEAAoD;AAEpD,mDAAgC;AAChC,oDAAiC;AACjC,6DAA0C;AAC1C,oEAAiD;AACjD,yEAAsD;AAEtD,gEAA6C;AAC7C,sEAAmD;AACnD,yDAAsC;AACtC,yDAAsC;AACtC,gEAA6C;AAC7C,yEAAsD;AACtD,2EAAwD;AACxD,4DAAyC;AACzC,0EAAuD;AACvD,0DAAuC;AACvC,gEAA6C;AAC7C,0DAAuC;AACvC,qEAAkD;AAClD,qEAAkD;AAClD,uEAAoD;AACpD,mEAAgD;AAChD,+DAA4C;AAC5C,uEAAoD;AACpD,qEAAkD;AAClD,kEAA+C;AAC/C,oEAAiD;AACjD,iEAA8C;AAE9C,+DAA4C;AAC5C,sEAAmD;AAEnD,qEAAkD;AAClD,6DAA0C;AAC1C,uDAAoC;AACpC,sDAAmC;AACnC,qDAAkC;AAClC,mDAAgC;AAChC,4DAAyC;AACzC,2DAAwC;AACxC,oDAAiC;AACjC,uDAAoC"}
@@ -16,52 +16,12 @@ exports.AuthorizerMiddleware = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const microservices_1 = require("@nestjs/microservices");
18
18
  const rxjs_1 = require("rxjs");
19
- const redis_1 = require("redis");
20
19
  const subjects_1 = require("../events/subjects");
21
- class RedisClient {
22
- constructor() {
23
- this.redisClient = redis_1.createClient({
24
- url: process.env.REDIS_URI,
25
- });
26
- }
27
- async connectToRedis() {
28
- try {
29
- await this.redisClient.connect();
30
- }
31
- catch (err) { }
32
- }
33
- async getData(key) {
34
- try {
35
- await this.connectToRedis();
36
- return this.redisClient.get(key);
37
- }
38
- catch (err) {
39
- console.log('REDIS GET DATA ERROR--------', err);
40
- }
41
- }
42
- async getAllKeys() {
43
- try {
44
- await this.connectToRedis();
45
- return this.redisClient.keys('*');
46
- }
47
- catch (err) {
48
- console.log('REDIS GET DATA ERROR--------', err);
49
- }
50
- }
51
- async setData(key, value) {
52
- try {
53
- await this.connectToRedis();
54
- return this.redisClient.set(key, value, { EX: 10 * 60 });
55
- }
56
- catch (err) {
57
- console.log('REDIS SET DATA ERROR--------', err);
58
- }
59
- }
60
- }
20
+ const redis_client_1 = require("../utils/redis-client");
61
21
  let AuthorizerMiddleware = class AuthorizerMiddleware {
62
22
  constructor(client) {
63
23
  this.client = client;
64
- this.cachManager = new RedisClient();
24
+ this.cachManager = new redis_client_1.RedisClient();
65
25
  }
66
26
  async use(request, response, next) {
67
27
  const user = {
@@ -1 +1 @@
1
- {"version":3,"file":"authorizer.middleware.js","sourceRoot":"","sources":["../../src/middlewares/authorizer.middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AA+JA,2CAKuB;AACvB,yDAAmD;AAEnD,+BAAqC;AACrC,iCAAoC;AACpC,iDAA6C;AAI7C,MAAM,WAAW;IAGf;QACE,IAAI,CAAC,WAAW,GAAG,oBAAY,CAAC;YAC9B,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS;SAC3B,CAAC,CAAA;IACJ,CAAC;IAEO,KAAK,CAAC,cAAc;QAC1B,IAAI;YACF,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAA;SACjC;QAAC,OAAO,GAAG,EAAE,GAAE;IAClB,CAAC;IAED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AAoB"}
1
+ {"version":3,"file":"authorizer.middleware.js","sourceRoot":"","sources":["../../src/middlewares/authorizer.middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAKuB;AACvB,yDAAmD;AAEnD,+BAAqC;AACrC,iDAA6C;AAG7C,wDAAmD;AAGnD,IAAa,oBAAoB,GAAjC,MAAa,oBAAoB;IAE/B,YAAqD,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;QACtE,IAAI,CAAC,WAAW,GAAG,IAAI,0BAAW,EAAE,CAAA;IACtC,CAAC;IAED,KAAK,CAAC,GAAG,CACP,OAAgB,EAChB,QAAkB,EAClB,IAAkB;QAElB,MAAM,IAAI,GAAG;YACX,OAAO,EAAE,mBAAQ,CAAC,aAAa;YAC/B,IAAI,EAAE;gBACJ,aAAa,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,kBAAkB,CAAC;gBACvE,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC;aAC1D;SACF,CAAA;QACD,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAClD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAC1B,CAAA;QAED,IAAI,IAAI,CAAA;QACR,IAAI,aAAa,EAAE;YACjB,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;YAChC,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,aAAa,CAAC,CAAA;YAC5D,MAAM,IAAI,CAAC,WAAW,CACpB,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,IAAI,EACT,OAAO,CAAC,MAAM,EACd,OAAO,CAAC,KAAK,CAAC,IAAI,CACnB,CAAA;SACF;aAAM;YACL,IAAI,GAAG,MAAM,qBAAc,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,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CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CACpD,CAAA;QACD,IAAI,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE;YACxC,MAAM,IAAI,8BAAqB,EAAE,CAAA;SAClC;IACH,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAC9B,IAAc,EACd,IAAc;QAEd,IAAI,iBAAiB,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI,IAAI,IAAI,EAAE,CAAC,CAAA;QACzE,OAAO,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACtC,CAAC;CACF,CAAA;AAjFY,oBAAoB;IADhC,mBAAU,EAAE;IAGE,WAAA,eAAM,CAAC,cAAc,CAAC,CAAA;qCAA0B,2BAAW;GAF7D,oBAAoB,CAiFhC;AAjFY,oDAAoB"}
@@ -162,8 +162,8 @@
162
162
  "affectsGlobalScope": false
163
163
  },
164
164
  "../src/events/subjects.ts": {
165
- "version": "df108ca0815d227b246d4a62b348e5410996f647e9f296cc14f69df0718c92ec",
166
- "signature": "4374e90924976df23ef3692c8404c2c6f97a5a090cfb556d27b4cf87934db5a1",
165
+ "version": "70dce67a6ff4a89089cfc5b411e0045a3d91b9e789d23887ff21a0e14e0e6e0f",
166
+ "signature": "9ad64042bd3e2e87918b120d89b4370410949b17e429078b8bc7a4d9e3bfbbe9",
167
167
  "affectsGlobalScope": false
168
168
  },
169
169
  "../src/events/email-specs.interface.ts": {
@@ -581,6 +581,16 @@
581
581
  "signature": "e4e889a78eaf607661418a5853013b0c91fd7fce4b29f025a41219dcba8ffcf9",
582
582
  "affectsGlobalScope": false
583
583
  },
584
+ "../src/events/has-subscription.interface.ts": {
585
+ "version": "2016a7a37361cfb85243357b3e5087f01d6431a9237e67c937474e2c0f0f6294",
586
+ "signature": "05693e2eb6048609f2339915e08c63b689e375be57a2808666e7027683ccea49",
587
+ "affectsGlobalScope": false
588
+ },
589
+ "../src/events/subtract-subscription-point.interface.ts": {
590
+ "version": "509d105349b41e9895c8292aad2d7a2200e11bde7599216548da4fa55013a860",
591
+ "signature": "9e1e5b2527799c0fd2ae7f6b8b486fcc0ab4f7e0984e51e1995b1e046f633c87",
592
+ "affectsGlobalScope": false
593
+ },
584
594
  "../node_modules/class-validator/types/validation/ValidationError.d.ts": {
585
595
  "version": "e69d0b59db23f59172cb087ee44a71438f809bd214d4f4105abd6090b341cbdc",
586
596
  "signature": "e69d0b59db23f59172cb087ee44a71438f809bd214d4f4105abd6090b341cbdc",
@@ -6256,8 +6266,13 @@
6256
6266
  "signature": "82251aecba1d87cea9c1b3e5728f996804def4052bbbd8a298a9f07e2ed9fdfd",
6257
6267
  "affectsGlobalScope": false
6258
6268
  },
6269
+ "../src/utils/redis-client.ts": {
6270
+ "version": "3bf8c2ae87291f5cea4d5dda90571d95916bf415e8fd8e4a579a59eb0da4d686",
6271
+ "signature": "f3983336049fdfa9c6001a0fb3949d8d692f5158952936d8eb8aad410a593318",
6272
+ "affectsGlobalScope": false
6273
+ },
6259
6274
  "../src/middlewares/authorizer.middleware.ts": {
6260
- "version": "af80ac1058af62621e2ee97606c00b70b511e31384eccde4f03789aa8ce97d90",
6275
+ "version": "10bb3d24a760b4bbaca0556f5c03cceabf0f0957fd7aa2739a710e6a369f4c46",
6261
6276
  "signature": "1c5d65c5ec5568c3946d80a9e2b43427afdbddcbbf889ec56985b5209cdaab7c",
6262
6277
  "affectsGlobalScope": false
6263
6278
  },
@@ -6357,8 +6372,8 @@
6357
6372
  "affectsGlobalScope": false
6358
6373
  },
6359
6374
  "../src/index.ts": {
6360
- "version": "98449292f7b1c48ba25a33a5ef395d00cf04167761b5417afc7168d87a684745",
6361
- "signature": "7ededa61c5535c530b0476c72f7de53f76ef38fb6a1af7fd25fecb1e7b839d6d",
6375
+ "version": "d0e7287af52722e557b4071abf2d96f64fd95fd5341829e7e1667bb5f5aa5423",
6376
+ "signature": "be641257902382456322af4cdfe276c365fb97b199c084983c78fcab9f355ee9",
6362
6377
  "affectsGlobalScope": false
6363
6378
  },
6364
6379
  "../src/events/meeting-request-updated.interface.ts": {
@@ -11220,6 +11235,9 @@
11220
11235
  "../src/events/groups-by-ids.interface.ts": [
11221
11236
  "../src/events/subjects.ts"
11222
11237
  ],
11238
+ "../src/events/has-subscription.interface.ts": [
11239
+ "../src/events/subjects.ts"
11240
+ ],
11223
11241
  "../src/events/is-system-user.interface.ts": [
11224
11242
  "../src/events/subjects.ts"
11225
11243
  ],
@@ -11292,6 +11310,9 @@
11292
11310
  "../src/events/service-updated.interface.ts": [
11293
11311
  "../src/events/subjects.ts"
11294
11312
  ],
11313
+ "../src/events/subtract-subscription-point.interface.ts": [
11314
+ "../src/events/subjects.ts"
11315
+ ],
11295
11316
  "../src/events/sync-accessibility-creation.interface.ts": [
11296
11317
  "../src/events/subjects.ts"
11297
11318
  ],
@@ -11366,6 +11387,7 @@
11366
11387
  "../src/events/get-user-by-id.interface.ts",
11367
11388
  "../src/events/groups-by-company.interface.ts",
11368
11389
  "../src/events/groups-by-ids.interface.ts",
11390
+ "../src/events/has-subscription.interface.ts",
11369
11391
  "../src/events/is-system-user.interface.ts",
11370
11392
  "../src/events/manage-asseccibillity.interface.ts",
11371
11393
  "../src/events/meeting-count-by-company.interface.ts",
@@ -11390,6 +11412,7 @@
11390
11412
  "../src/events/service-created.interface.ts",
11391
11413
  "../src/events/service-updated.interface.ts",
11392
11414
  "../src/events/subjects.ts",
11415
+ "../src/events/subtract-subscription-point.interface.ts",
11393
11416
  "../src/events/sync-accessibility-creation.interface.ts",
11394
11417
  "../src/events/sync-event-creation.interface.ts",
11395
11418
  "../src/events/update-company-setting.interface.ts",
@@ -11428,6 +11451,7 @@
11428
11451
  "../src/utils/get-parsed-query.ts",
11429
11452
  "../src/utils/parse-query.ts",
11430
11453
  "../src/utils/projection.ts",
11454
+ "../src/utils/redis-client.ts",
11431
11455
  "../src/utils/rmq/index.ts",
11432
11456
  "../src/utils/timezone.ts",
11433
11457
  "../src/validators/conditional-required.ts",
@@ -11465,11 +11489,11 @@
11465
11489
  "../node_modules/@nestjs/common/index.d.ts",
11466
11490
  "../node_modules/@nestjs/microservices/index.d.ts",
11467
11491
  "../node_modules/@types/express/index.d.ts",
11468
- "../node_modules/redis/dist/index.d.ts",
11469
11492
  "../node_modules/rxjs/dist/types/index.d.ts",
11470
11493
  "../src/events/subjects.ts",
11471
11494
  "../src/types/user-role.enum.ts",
11472
- "../src/types/user-type.enum.ts"
11495
+ "../src/types/user-type.enum.ts",
11496
+ "../src/utils/redis-client.ts"
11473
11497
  ],
11474
11498
  "../src/types/default-visibility.interface.ts": [
11475
11499
  "../src/types/analytic-group.interface.ts",
@@ -11489,6 +11513,9 @@
11489
11513
  "../src/utils/equal-array-object.ts": [
11490
11514
  "../src/utils/equal-object.ts"
11491
11515
  ],
11516
+ "../src/utils/redis-client.ts": [
11517
+ "../node_modules/redis/dist/index.d.ts"
11518
+ ],
11492
11519
  "../src/utils/rmq/client/rabbitmq.client.ts": [
11493
11520
  "../node_modules/@nestjs/common/index.d.ts",
11494
11521
  "../node_modules/@nestjs/common/utils/random-string-generator.util.d.ts",
@@ -16328,6 +16355,9 @@
16328
16355
  "../src/events/groups-by-ids.interface.ts": [
16329
16356
  "../src/events/subjects.ts"
16330
16357
  ],
16358
+ "../src/events/has-subscription.interface.ts": [
16359
+ "../src/events/subjects.ts"
16360
+ ],
16331
16361
  "../src/events/is-system-user.interface.ts": [
16332
16362
  "../src/events/subjects.ts"
16333
16363
  ],
@@ -16400,6 +16430,9 @@
16400
16430
  "../src/events/service-updated.interface.ts": [
16401
16431
  "../src/events/subjects.ts"
16402
16432
  ],
16433
+ "../src/events/subtract-subscription-point.interface.ts": [
16434
+ "../src/events/subjects.ts"
16435
+ ],
16403
16436
  "../src/events/sync-accessibility-creation.interface.ts": [
16404
16437
  "../src/events/subjects.ts"
16405
16438
  ],
@@ -16474,6 +16507,7 @@
16474
16507
  "../src/events/get-user-by-id.interface.ts",
16475
16508
  "../src/events/groups-by-company.interface.ts",
16476
16509
  "../src/events/groups-by-ids.interface.ts",
16510
+ "../src/events/has-subscription.interface.ts",
16477
16511
  "../src/events/is-system-user.interface.ts",
16478
16512
  "../src/events/manage-asseccibillity.interface.ts",
16479
16513
  "../src/events/meeting-count-by-company.interface.ts",
@@ -16498,6 +16532,7 @@
16498
16532
  "../src/events/service-created.interface.ts",
16499
16533
  "../src/events/service-updated.interface.ts",
16500
16534
  "../src/events/subjects.ts",
16535
+ "../src/events/subtract-subscription-point.interface.ts",
16501
16536
  "../src/events/sync-accessibility-creation.interface.ts",
16502
16537
  "../src/events/sync-event-creation.interface.ts",
16503
16538
  "../src/events/update-company-setting.interface.ts",
@@ -16536,6 +16571,7 @@
16536
16571
  "../src/utils/get-parsed-query.ts",
16537
16572
  "../src/utils/parse-query.ts",
16538
16573
  "../src/utils/projection.ts",
16574
+ "../src/utils/redis-client.ts",
16539
16575
  "../src/utils/rmq/index.ts",
16540
16576
  "../src/utils/timezone.ts",
16541
16577
  "../src/validators/conditional-required.ts",
@@ -17820,6 +17856,7 @@
17820
17856
  "../src/events/get-user-by-id.interface.ts",
17821
17857
  "../src/events/groups-by-company.interface.ts",
17822
17858
  "../src/events/groups-by-ids.interface.ts",
17859
+ "../src/events/has-subscription.interface.ts",
17823
17860
  "../src/events/is-system-user.interface.ts",
17824
17861
  "../src/events/manage-asseccibillity.interface.ts",
17825
17862
  "../src/events/meeting-count-by-company.interface.ts",
@@ -17845,6 +17882,7 @@
17845
17882
  "../src/events/service-created.interface.ts",
17846
17883
  "../src/events/service-updated.interface.ts",
17847
17884
  "../src/events/subjects.ts",
17885
+ "../src/events/subtract-subscription-point.interface.ts",
17848
17886
  "../src/events/sync-accessibility-creation.interface.ts",
17849
17887
  "../src/events/sync-event-creation.interface.ts",
17850
17888
  "../src/events/update-company-setting.interface.ts",
@@ -17884,6 +17922,7 @@
17884
17922
  "../src/utils/get-parsed-query.ts",
17885
17923
  "../src/utils/parse-query.ts",
17886
17924
  "../src/utils/projection.ts",
17925
+ "../src/utils/redis-client.ts",
17887
17926
  "../src/utils/rmq/client/rabbitmq.client.ts",
17888
17927
  "../src/utils/rmq/constants.ts",
17889
17928
  "../src/utils/rmq/ctx-host/rmq.context.ts",
@@ -0,0 +1,8 @@
1
+ export declare class RedisClient {
2
+ private redisClient;
3
+ constructor();
4
+ private connectToRedis;
5
+ getData(key: string): Promise<any>;
6
+ getAllKeys(): Promise<any>;
7
+ setData(key: string, value: string, validityTime?: number): Promise<any>;
8
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RedisClient = void 0;
4
+ const redis_1 = require("redis");
5
+ class RedisClient {
6
+ constructor() {
7
+ this.redisClient = redis_1.createClient({
8
+ url: process.env.REDIS_URI,
9
+ });
10
+ }
11
+ async connectToRedis() {
12
+ try {
13
+ await this.redisClient.connect();
14
+ }
15
+ catch (err) { }
16
+ }
17
+ async getData(key) {
18
+ try {
19
+ await this.connectToRedis();
20
+ return this.redisClient.get(key);
21
+ }
22
+ catch (err) {
23
+ console.log('REDIS GET DATA ERROR--------', err);
24
+ }
25
+ }
26
+ async getAllKeys() {
27
+ try {
28
+ await this.connectToRedis();
29
+ return this.redisClient.keys('*');
30
+ }
31
+ catch (err) {
32
+ console.log('REDIS GET DATA ERROR--------', err);
33
+ }
34
+ }
35
+ async setData(key, value, validityTime = 10) {
36
+ try {
37
+ await this.connectToRedis();
38
+ return this.redisClient.set(key, value, { EX: validityTime * 60 });
39
+ }
40
+ catch (err) {
41
+ console.log('REDIS SET DATA ERROR--------', err);
42
+ }
43
+ }
44
+ }
45
+ exports.RedisClient = RedisClient;
46
+ //# sourceMappingURL=redis-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redis-client.js","sourceRoot":"","sources":["../../src/utils/redis-client.ts"],"names":[],"mappings":";;;AAAA,iCAAoC;AAEpC,MAAa,WAAW;IAG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"version": "1.0.171",
3
+ "version": "1.0.174",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",