@aldb2b/common 1.0.174 → 1.0.177

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.
@@ -2,9 +2,10 @@ import { Subjects } from './subjects';
2
2
  export declare namespace HasSubscription {
3
3
  interface Context {
4
4
  subject: Subjects.HasSubscription;
5
- data: any;
5
+ data: Data;
6
6
  }
7
7
  interface Data {
8
- attendeeIds: string[];
8
+ company: string;
9
+ eventId: string;
9
10
  }
10
11
  }
@@ -40,5 +40,6 @@ export declare enum Queues {
40
40
  NOTIFICATION_GET_MEETING_REQUESTS_QUEUE = "notification_get_meeting_requests_queue",
41
41
  GET_CITY_COUNTRY_BY_ID = "get_city_country_by_id",
42
42
  TABLE_DETAILS_BY_GROUP_QUEUE = "tables_details_by_group_queue",
43
- MANAGE_MEETING_EVENTS_QUEUE = "manage_meeting_events_queue"
43
+ MANAGE_MEETING_EVENTS_QUEUE = "manage_meeting_events_queue",
44
+ SUBSCRIPTION_QUEUE = "subscription_queue"
44
45
  }
@@ -45,5 +45,6 @@ var Queues;
45
45
  Queues["GET_CITY_COUNTRY_BY_ID"] = "get_city_country_by_id";
46
46
  Queues["TABLE_DETAILS_BY_GROUP_QUEUE"] = "tables_details_by_group_queue";
47
47
  Queues["MANAGE_MEETING_EVENTS_QUEUE"] = "manage_meeting_events_queue";
48
+ Queues["SUBSCRIPTION_QUEUE"] = "subscription_queue";
48
49
  })(Queues = exports.Queues || (exports.Queues = {}));
49
50
  //# sourceMappingURL=queues.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queues.js","sourceRoot":"","sources":["../../src/events/queues.ts"],"names":[],"mappings":";;;AAAA,IAAY,MA4CX;AA5CD,WAAY,MAAM;IAChB,mCAAyB,CAAA;IACzB,yDAA+C,CAAA;IAC/C,iDAAuC,CAAA;IACvC,+CAAqC,CAAA;IACrC,qCAA2B,CAAA;IAC3B,+DAAqD,CAAA;IACrD,qDAA2C,CAAA;IAC3C,qEAA2D,CAA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AAqD,CAAA;IACrD,iEAAuD,CAAA;IACvD,qEAA2D,CAAA;IAC3D,2EAAiE,CAAA;IACjE,yEAA+D,CAAA;IAC/D,2DAAiD,CAAA;IACjD,6DAAmD,CAAA;IACnD,uDAA6C,CAAA;IAC7C,+DAAqD,CAAA;IACrD,0EAAgE,CAAA;IAChE,6EAAmE,CAAA;IACnE,uDAA6C,CAAA;IAC7C,iEAAuD,CAAA;IACvD,iEAAuD,CAAA;IACvD,6CAAmC,CAAA;IACnC,yEAA+D,CAAA;IAC/D,uEAA6D,CAAA;IAC7D,iEAAuD,CAAA;IACvD,iEAAuD,CAAA;IACvD,yDAA+C,CAAA;IAC/C,qEAA2D,CAAA;IAC3D,6DAAmD,CAAA;IACnD,6FAAmF,CAAA;IACnF,2DAAiD,CAAA;IACjD,wEAA8D,CAAA;IAC9D,qEAA2D,CAAA;IAC3D,mDAAyC,CAAA;AAC3C,CAAC,EA5CW,MAAM,GAAN,cAAM,KAAN,cAAM,QA4CjB"}
@@ -6,5 +6,6 @@ export declare namespace SubtractSubscriptionPoint {
6
6
  }
7
7
  interface Data {
8
8
  point: number;
9
+ id: string;
9
10
  }
10
11
  }
@@ -0,0 +1,12 @@
1
+ import { NestMiddleware } from '@nestjs/common';
2
+ import { ClientProxy } from '@nestjs/microservices';
3
+ import { Request, Response, NextFunction } from 'express';
4
+ export declare class SubscriptionMiddleware implements NestMiddleware {
5
+ private readonly client;
6
+ private cachManager;
7
+ constructor(client: ClientProxy);
8
+ use(request: Request, response: Response, next: NextFunction): Promise<void>;
9
+ private getHeaderParam;
10
+ private isPermitted;
11
+ private getEndpoint;
12
+ }
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.SubscriptionMiddleware = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const microservices_1 = require("@nestjs/microservices");
18
+ const rxjs_1 = require("rxjs");
19
+ const subjects_1 = require("src/events/subjects");
20
+ const redis_client_1 = require("src/utils/redis-client");
21
+ let SubscriptionMiddleware = class SubscriptionMiddleware {
22
+ constructor(client) {
23
+ this.client = client;
24
+ this.cachManager = new redis_client_1.RedisClient();
25
+ }
26
+ async use(request, response, next) {
27
+ const user = {
28
+ subject: subjects_1.Subjects.HasSubscription,
29
+ data: {
30
+ company: this.getHeaderParam(request.headers, 'company'),
31
+ eventId: this.getHeaderParam(request.headers, 'event-id'),
32
+ },
33
+ };
34
+ const redisKey = JSON.stringify(user.data);
35
+ const redisResponse = await this.cachManager.getData(redisKey);
36
+ let resp;
37
+ if (redisResponse) {
38
+ resp = JSON.parse(redisResponse);
39
+ console.log('FROM REDIS--------------------', redisResponse);
40
+ await this.isPermitted(resp, request.method, request.route.path, redisKey);
41
+ }
42
+ else {
43
+ resp = await rxjs_1.firstValueFrom(this.client.send(user.subject, user.data));
44
+ console.log('FROM MESSAGE BROKER--------------------', resp);
45
+ if (!resp.hasSubscription) {
46
+ throw new common_1.UnauthorizedException('Subscription is required');
47
+ }
48
+ else {
49
+ await this.cachManager.setData(redisKey, JSON.stringify(resp), 60);
50
+ await this.isPermitted(resp, request.method, request.route.path, redisKey);
51
+ }
52
+ }
53
+ next();
54
+ }
55
+ getHeaderParam(headers, param) {
56
+ return Array.isArray(headers[param]) ? headers[param][0] : headers[param];
57
+ }
58
+ async isPermitted(subscription, method, path, key) {
59
+ const { features, remainingPoints } = subscription;
60
+ const endpoint = this.getEndpoint(features, method, path);
61
+ if ((remainingPoints || remainingPoints === 0) && endpoint.point) {
62
+ if (remainingPoints < endpoint.point) {
63
+ throw new common_1.UnauthorizedException('Insufficient credit');
64
+ }
65
+ else {
66
+ const modifiedSubscription = Object.assign(Object.assign({}, subscription), { remainingPoints: remainingPoints - endpoint.point });
67
+ await this.cachManager.setData(key, JSON.stringify(modifiedSubscription), 60);
68
+ this.client.send(subjects_1.Subjects.SubtractSubscriptionPoint, {
69
+ point: endpoint.point,
70
+ id: subscription._id,
71
+ });
72
+ }
73
+ }
74
+ }
75
+ getEndpoint(features, method, path) {
76
+ const feature = features.find(feature => feature.endpoints.find(endpoint => endpoint.method === method && endpoint.endpoint === path));
77
+ if (!feature) {
78
+ throw new common_1.UnauthorizedException('Invalid feature for this subscription');
79
+ }
80
+ return feature.endpoints.find(endpoint => endpoint.method === method && endpoint.endpoint === path);
81
+ }
82
+ };
83
+ SubscriptionMiddleware = __decorate([
84
+ common_1.Injectable(),
85
+ __param(0, common_1.Inject('SUBSCRIPTION_SERVICE')),
86
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
87
+ ], SubscriptionMiddleware);
88
+ exports.SubscriptionMiddleware = SubscriptionMiddleware;
89
+ //# sourceMappingURL=subscription.middleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription.middleware.js","sourceRoot":"","sources":["../../src/middlewares/subscription.middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAKuB;AACvB,yDAAmD;AAEnD,+BAAqC;AACrC,kDAA8C;AAE9C,yDAAoD;AAGpD,IAAa,sBAAsB,GAAnC,MAAa,sBAAsB;IAEjC,YACmD,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;QAEpE,IAAI,CA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B,CAAC,CAAA;aACH;SACF;IACH,CAAC;IAEO,WAAW,CAAC,QAAmB,EAAE,MAAc,EAAE,IAAY;QACnE,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CACtC,OAAO,CAAC,SAAS,CAAC,IAAI,CACpB,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,KAAK,MAAM,IAAI,QAAQ,CAAC,QAAQ,KAAK,IAAI,CACrE,CACF,CAAA;QAED,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,8BAAqB,CAAC,uCAAuC,CAAC,CAAA;SACzE;QACD,OAAO,OAAO,CAAC,SAAS,CAAC,IAAI,CAC3B,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,KAAK,MAAM,IAAI,QAAQ,CAAC,QAAQ,KAAK,IAAI,CACrE,CAAA;IACH,CAAC;CACF,CAAA;AA9FY,sBAAsB;IADlC,mBAAU,EAAE;IAIR,WAAA,eAAM,CAAC,sBAAsB,CAAC,CAAA;qCAA0B,2BAAW;GAH3D,sBAAsB,CA8FlC;AA9FY,wDAAsB"}
@@ -377,8 +377,8 @@
377
377
  "affectsGlobalScope": false
378
378
  },
379
379
  "../src/events/queues.ts": {
380
- "version": "25ee1471aa2f23a4b3b7846462f35c71fd46a3fa6e49852762b1087e5bfbfc4c",
381
- "signature": "5ac9697b9fba95cf7fee44fe2f59f349bc1e915ebfb7868fe952906ef97aea7f",
380
+ "version": "927cad98ace301753d5ed1ee46ba9533d9b8940dd38c38770c1d9d8dbfa6dd16",
381
+ "signature": "d9b03d0bf10a0a298666cc38574c927cb0ae309f54dc4cd98110f4e382e37c2e",
382
382
  "affectsGlobalScope": false
383
383
  },
384
384
  "../src/events/create-default-templates.ts": {
@@ -582,13 +582,13 @@
582
582
  "affectsGlobalScope": false
583
583
  },
584
584
  "../src/events/has-subscription.interface.ts": {
585
- "version": "2016a7a37361cfb85243357b3e5087f01d6431a9237e67c937474e2c0f0f6294",
586
- "signature": "05693e2eb6048609f2339915e08c63b689e375be57a2808666e7027683ccea49",
585
+ "version": "b326d4bacc43a5c2b4b742f8e041b6378c1d2b2a5b1cf583d92cca44ad621a98",
586
+ "signature": "c095ca7231ddf32803f2c909d8dcd9ec34bc44e15862b041e70138d410a0a4d4",
587
587
  "affectsGlobalScope": false
588
588
  },
589
589
  "../src/events/subtract-subscription-point.interface.ts": {
590
- "version": "509d105349b41e9895c8292aad2d7a2200e11bde7599216548da4fa55013a860",
591
- "signature": "9e1e5b2527799c0fd2ae7f6b8b486fcc0ab4f7e0984e51e1995b1e046f633c87",
590
+ "version": "c7195a6074d1e185b66cc9b392ef0cad11553e46470e5715194ab20c08846b37",
591
+ "signature": "14611e6258d18e8e0e5fb8a86e3927c7fa5afe23f6ec0e55bdc0a121447c7f60",
592
592
  "affectsGlobalScope": false
593
593
  },
594
594
  "../node_modules/class-validator/types/validation/ValidationError.d.ts": {
@@ -6381,6 +6381,21 @@
6381
6381
  "signature": "2388b17bfe1f2e511b4960ec098cf5db020cec29e4f50f8676f8aa64da10c581",
6382
6382
  "affectsGlobalScope": false
6383
6383
  },
6384
+ "../src/types/enddpoint.interface.ts": {
6385
+ "version": "607660b65fbe13d1447abe69648c2201555641ff7c1b9ab6f6a3d0edfc144bbf",
6386
+ "signature": "4f008ce1a0a399608dc1641c0455559891f2b1d3d123694eb110294e6cb09782",
6387
+ "affectsGlobalScope": false
6388
+ },
6389
+ "../src/types/feature.interface.ts": {
6390
+ "version": "3b39f9270e9b9cbea5e8548f66e7c56982bdd04241c726bcf06e8891935d02b2",
6391
+ "signature": "8e1ccdc6ce1e15771f99674f949c1bd02ae24a4fb0b0b77b26216e28ec23762a",
6392
+ "affectsGlobalScope": false
6393
+ },
6394
+ "../src/middlewares/subscription.middleware.ts": {
6395
+ "version": "4a90f2179525e5d63a0145903d63cb8945e4966cff50e1837b16d37ef6d6f624",
6396
+ "signature": "63084574038bac4eb353074b166d479996890194abc48475e9e741e349a16cf6",
6397
+ "affectsGlobalScope": false
6398
+ },
6384
6399
  "../node_modules/@types/minimatch/index.d.ts": {
6385
6400
  "version": "95c22bc19835e28e2e524a4bb8898eb5f2107b640d7279a6d3aade261916bbf2",
6386
6401
  "signature": "95c22bc19835e28e2e524a4bb8898eb5f2107b640d7279a6d3aade261916bbf2",
@@ -11495,10 +11510,22 @@
11495
11510
  "../src/types/user-type.enum.ts",
11496
11511
  "../src/utils/redis-client.ts"
11497
11512
  ],
11513
+ "../src/middlewares/subscription.middleware.ts": [
11514
+ "../node_modules/@nestjs/common/index.d.ts",
11515
+ "../node_modules/@nestjs/microservices/index.d.ts",
11516
+ "../node_modules/@types/express/index.d.ts",
11517
+ "../node_modules/rxjs/dist/types/index.d.ts",
11518
+ "../src/events/subjects.ts",
11519
+ "../src/types/feature.interface.ts",
11520
+ "../src/utils/redis-client.ts"
11521
+ ],
11498
11522
  "../src/types/default-visibility.interface.ts": [
11499
11523
  "../src/types/analytic-group.interface.ts",
11500
11524
  "../src/types/visibility-group.interface.ts"
11501
11525
  ],
11526
+ "../src/types/feature.interface.ts": [
11527
+ "../src/types/enddpoint.interface.ts"
11528
+ ],
11502
11529
  "../src/types/group-visibility.interface.ts": [
11503
11530
  "../src/types/analytic-group.interface.ts",
11504
11531
  "../src/types/chat-group.interface.ts",
@@ -16605,10 +16632,18 @@
16605
16632
  "../node_modules/@nestjs/microservices/index.d.ts",
16606
16633
  "../node_modules/@types/express/index.d.ts"
16607
16634
  ],
16635
+ "../src/middlewares/subscription.middleware.ts": [
16636
+ "../node_modules/@nestjs/common/index.d.ts",
16637
+ "../node_modules/@nestjs/microservices/index.d.ts",
16638
+ "../node_modules/@types/express/index.d.ts"
16639
+ ],
16608
16640
  "../src/types/default-visibility.interface.ts": [
16609
16641
  "../src/types/analytic-group.interface.ts",
16610
16642
  "../src/types/visibility-group.interface.ts"
16611
16643
  ],
16644
+ "../src/types/feature.interface.ts": [
16645
+ "../src/types/enddpoint.interface.ts"
16646
+ ],
16612
16647
  "../src/types/group-visibility.interface.ts": [
16613
16648
  "../src/types/analytic-group.interface.ts",
16614
16649
  "../src/types/chat-group.interface.ts",
@@ -17894,11 +17929,14 @@
17894
17929
  "../src/interceptors/serialize.interceptor.ts",
17895
17930
  "../src/middlewares/app.middleware.ts",
17896
17931
  "../src/middlewares/authorizer.middleware.ts",
17932
+ "../src/middlewares/subscription.middleware.ts",
17897
17933
  "../src/types/analytic-group.interface.ts",
17898
17934
  "../src/types/calendar-source-type.enum.ts",
17899
17935
  "../src/types/chat-group.interface.ts",
17900
17936
  "../src/types/default-visibility.interface.ts",
17901
17937
  "../src/types/download-presigned-url.interface.ts",
17938
+ "../src/types/enddpoint.interface.ts",
17939
+ "../src/types/feature.interface.ts",
17902
17940
  "../src/types/group-visibility.interface.ts",
17903
17941
  "../src/types/header-user.interface.ts",
17904
17942
  "../src/types/match-group.interface.ts",
@@ -0,0 +1,5 @@
1
+ export interface Endpoint {
2
+ endpoint: string;
3
+ method: string;
4
+ point?: number;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=enddpoint.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enddpoint.interface.js","sourceRoot":"","sources":["../../src/types/enddpoint.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { Endpoint } from './enddpoint.interface';
2
+ export interface Feature {
3
+ name: string;
4
+ endpoints: Endpoint[];
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=feature.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.interface.js","sourceRoot":"","sources":["../../src/types/feature.interface.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldb2b/common",
3
- "version": "1.0.174",
3
+ "version": "1.0.177",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",