@servicelabsco/slabs-access-manager 0.1.128 → 0.1.129

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 (122) hide show
  1. package/dist/access/controllers/fcm.token.controller.d.ts +18 -0
  2. package/dist/access/controllers/fcm.token.controller.js +109 -0
  3. package/dist/access/controllers/fcm.token.controller.js.map +1 -0
  4. package/dist/access/controllers/index.d.ts +1 -0
  5. package/dist/access/controllers/index.js +1 -0
  6. package/dist/access/controllers/index.js.map +1 -1
  7. package/dist/access/dtos/fcm.message.attributes.dto.d.ts +3 -0
  8. package/dist/access/dtos/fcm.message.attributes.dto.js +8 -0
  9. package/dist/access/dtos/fcm.message.attributes.dto.js.map +1 -0
  10. package/dist/access/dtos/fcm.notification.attributes.dto.d.ts +3 -0
  11. package/dist/access/dtos/fcm.notification.attributes.dto.js +8 -0
  12. package/dist/access/dtos/fcm.notification.attributes.dto.js.map +1 -0
  13. package/dist/access/dtos/fcm.template.attributes.dto.d.ts +3 -0
  14. package/dist/access/dtos/fcm.template.attributes.dto.js +8 -0
  15. package/dist/access/dtos/fcm.template.attributes.dto.js.map +1 -0
  16. package/dist/access/dtos/fcm.token.attributes.dto.d.ts +3 -0
  17. package/dist/access/dtos/fcm.token.attributes.dto.js +8 -0
  18. package/dist/access/dtos/fcm.token.attributes.dto.js.map +1 -0
  19. package/dist/access/dtos/index.d.ts +5 -0
  20. package/dist/access/dtos/index.js +5 -0
  21. package/dist/access/dtos/index.js.map +1 -1
  22. package/dist/access/dtos/token.payload.dto.d.ts +3 -0
  23. package/dist/access/dtos/token.payload.dto.js +23 -0
  24. package/dist/access/dtos/token.payload.dto.js.map +1 -0
  25. package/dist/access/entities/fcm.message.entity.d.ts +19 -0
  26. package/dist/access/entities/fcm.message.entity.js +80 -0
  27. package/dist/access/entities/fcm.message.entity.js.map +1 -0
  28. package/dist/access/entities/fcm.notification.entity.d.ts +14 -0
  29. package/dist/access/entities/fcm.notification.entity.js +58 -0
  30. package/dist/access/entities/fcm.notification.entity.js.map +1 -0
  31. package/dist/access/entities/fcm.template.entity.d.ts +10 -0
  32. package/dist/access/entities/fcm.template.entity.js +46 -0
  33. package/dist/access/entities/fcm.template.entity.js.map +1 -0
  34. package/dist/access/entities/fcm.token.entity.d.ts +18 -0
  35. package/dist/access/entities/fcm.token.entity.js +76 -0
  36. package/dist/access/entities/fcm.token.entity.js.map +1 -0
  37. package/dist/access/entities/index.d.ts +4 -0
  38. package/dist/access/entities/index.js +4 -0
  39. package/dist/access/entities/index.js.map +1 -1
  40. package/dist/access/enums/index.d.ts +1 -0
  41. package/dist/access/enums/index.js +1 -0
  42. package/dist/access/enums/index.js.map +1 -1
  43. package/dist/access/enums/platform.type.enum.d.ts +9 -0
  44. package/dist/access/enums/platform.type.enum.js +14 -0
  45. package/dist/access/enums/platform.type.enum.js.map +1 -0
  46. package/dist/access/es6.classes.d.ts +26 -10
  47. package/dist/access/es6.classes.js +44 -1
  48. package/dist/access/es6.classes.js.map +1 -1
  49. package/dist/access/jobs/fcm.message.job.d.ts +7 -0
  50. package/dist/access/jobs/fcm.message.job.js +29 -0
  51. package/dist/access/jobs/fcm.message.job.js.map +1 -0
  52. package/dist/access/jobs/fcm.notification.job.d.ts +7 -0
  53. package/dist/access/jobs/fcm.notification.job.js +29 -0
  54. package/dist/access/jobs/fcm.notification.job.js.map +1 -0
  55. package/dist/access/jobs/fcm.template.job.d.ts +7 -0
  56. package/dist/access/jobs/fcm.template.job.js +29 -0
  57. package/dist/access/jobs/fcm.template.job.js.map +1 -0
  58. package/dist/access/jobs/fcm.token.job.d.ts +7 -0
  59. package/dist/access/jobs/fcm.token.job.js +29 -0
  60. package/dist/access/jobs/fcm.token.job.js.map +1 -0
  61. package/dist/access/jobs/index.d.ts +4 -0
  62. package/dist/access/jobs/index.js +4 -0
  63. package/dist/access/jobs/index.js.map +1 -1
  64. package/dist/access/libraries/index.d.ts +2 -0
  65. package/dist/access/libraries/index.js +2 -0
  66. package/dist/access/libraries/index.js.map +1 -1
  67. package/dist/access/libraries/process.notification.d.ts +1 -0
  68. package/dist/access/libraries/process.notification.js +12 -0
  69. package/dist/access/libraries/process.notification.js.map +1 -1
  70. package/dist/access/libraries/send.fcm.notification.d.ts +18 -0
  71. package/dist/access/libraries/send.fcm.notification.js +73 -0
  72. package/dist/access/libraries/send.fcm.notification.js.map +1 -0
  73. package/dist/access/libraries/set.fcm.token.d.ts +13 -0
  74. package/dist/access/libraries/set.fcm.token.js +37 -0
  75. package/dist/access/libraries/set.fcm.token.js.map +1 -0
  76. package/dist/access/services/es6.jobs.service.d.ts +9 -1
  77. package/dist/access/services/es6.jobs.service.js +17 -1
  78. package/dist/access/services/es6.jobs.service.js.map +1 -1
  79. package/dist/access/services/index.d.ts +1 -0
  80. package/dist/access/services/index.js +1 -0
  81. package/dist/access/services/index.js.map +1 -1
  82. package/dist/access/services/notification.service.d.ts +2 -0
  83. package/dist/access/services/notification.service.js +4 -0
  84. package/dist/access/services/notification.service.js.map +1 -1
  85. package/dist/access/services/platform.service.d.ts +5 -0
  86. package/dist/access/services/platform.service.js +21 -0
  87. package/dist/access/services/platform.service.js.map +1 -0
  88. package/dist/access/subscribers/fcm.message.subscriber.d.ts +10 -0
  89. package/dist/access/subscribers/fcm.message.subscriber.js +34 -0
  90. package/dist/access/subscribers/fcm.message.subscriber.js.map +1 -0
  91. package/dist/access/subscribers/fcm.notification.subscriber.d.ts +10 -0
  92. package/dist/access/subscribers/fcm.notification.subscriber.js +34 -0
  93. package/dist/access/subscribers/fcm.notification.subscriber.js.map +1 -0
  94. package/dist/access/subscribers/fcm.template.subscriber.d.ts +10 -0
  95. package/dist/access/subscribers/fcm.template.subscriber.js +34 -0
  96. package/dist/access/subscribers/fcm.template.subscriber.js.map +1 -0
  97. package/dist/access/subscribers/fcm.token.subscriber.d.ts +10 -0
  98. package/dist/access/subscribers/fcm.token.subscriber.js +34 -0
  99. package/dist/access/subscribers/fcm.token.subscriber.js.map +1 -0
  100. package/dist/access/subscribers/index.d.ts +4 -0
  101. package/dist/access/subscribers/index.js +4 -0
  102. package/dist/access/subscribers/index.js.map +1 -1
  103. package/dist/accessUtility/entities/notification.entity.d.ts +2 -0
  104. package/dist/accessUtility/entities/notification.entity.js +5 -0
  105. package/dist/accessUtility/entities/notification.entity.js.map +1 -1
  106. package/dist/accessUtility/es6.classes.d.ts +1 -1
  107. package/dist/config/entity.constants.d.ts +8 -0
  108. package/dist/config/entity.constants.js +8 -0
  109. package/dist/config/entity.constants.js.map +1 -1
  110. package/dist/migrations/1721976797529-CreateFcmTokenTable.d.ts +5 -0
  111. package/dist/migrations/1721976797529-CreateFcmTokenTable.js +24 -0
  112. package/dist/migrations/1721976797529-CreateFcmTokenTable.js.map +1 -0
  113. package/dist/migrations/1721980573138-CreateFcmTemplateTable.d.ts +5 -0
  114. package/dist/migrations/1721980573138-CreateFcmTemplateTable.js +22 -0
  115. package/dist/migrations/1721980573138-CreateFcmTemplateTable.js.map +1 -0
  116. package/dist/migrations/1721980974253-CreateFcmNotificationTable.d.ts +5 -0
  117. package/dist/migrations/1721980974253-CreateFcmNotificationTable.js +22 -0
  118. package/dist/migrations/1721980974253-CreateFcmNotificationTable.js.map +1 -0
  119. package/dist/migrations/1721981508349-CreateFcmMessageTable.d.ts +5 -0
  120. package/dist/migrations/1721981508349-CreateFcmMessageTable.js +24 -0
  121. package/dist/migrations/1721981508349-CreateFcmMessageTable.js.map +1 -0
  122. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ import { Request } from 'express';
2
+ import { BusinessParamDto } from '../dtos/business.param.dto';
3
+ import { TokenPayloadDto } from '../dtos/token.payload.dto';
4
+ import { AccessBusinessService } from '../services/access.business.service';
5
+ import { PlatformService } from '../services/platform.service';
6
+ import { FcmTokenEntity } from '../entities/fcm.token.entity';
7
+ export declare class FcmTokenController {
8
+ private readonly accessBusinessService;
9
+ private readonly platformService;
10
+ constructor(accessBusinessService: AccessBusinessService, platformService: PlatformService);
11
+ show(params: BusinessParamDto): Promise<FcmTokenEntity>;
12
+ create(body: TokenPayloadDto, req: Request): Promise<{
13
+ success: boolean;
14
+ }>;
15
+ activate(req: Request): Promise<FcmTokenEntity>;
16
+ deactivate(req: Request): Promise<FcmTokenEntity>;
17
+ private handleStatus;
18
+ }
@@ -0,0 +1,109 @@
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.FcmTokenController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
18
+ const business_param_dto_1 = require("../dtos/business.param.dto");
19
+ const token_payload_dto_1 = require("../dtos/token.payload.dto");
20
+ const set_fcm_token_1 = require("../libraries/set.fcm.token");
21
+ const access_business_service_1 = require("../services/access.business.service");
22
+ const platform_service_1 = require("../services/platform.service");
23
+ const fcm_token_entity_1 = require("../entities/fcm.token.entity");
24
+ let FcmTokenController = class FcmTokenController {
25
+ constructor(accessBusinessService, platformService) {
26
+ this.accessBusinessService = accessBusinessService;
27
+ this.platformService = platformService;
28
+ }
29
+ async show(params) {
30
+ const business = await this.accessBusinessService.validateAccess();
31
+ return fcm_token_entity_1.FcmTokenEntity.findOne({ where: { id: params.id, business_id: business.id } });
32
+ }
33
+ async create(body, req) {
34
+ const business = await this.accessBusinessService.validateAccess();
35
+ const user = nestjs_utility_services_1.Auth.user();
36
+ const platform_id = this.platformService.getPlatformId(req);
37
+ const setToken = await new set_fcm_token_1.SetFcmToken(business, user).set(body.token, platform_id);
38
+ if (!setToken)
39
+ throw new nestjs_utility_services_1.OperationException('Failed saving the token');
40
+ return { success: true };
41
+ }
42
+ async activate(req) {
43
+ const business = await this.accessBusinessService.validateAccess();
44
+ const record = await this.handleStatus(req, business);
45
+ if (!record)
46
+ throw new nestjs_utility_services_1.AccessException();
47
+ record.active = true;
48
+ return record.save();
49
+ }
50
+ async deactivate(req) {
51
+ const business = await this.accessBusinessService.validateAccess();
52
+ const record = await this.handleStatus(req, business);
53
+ if (!record)
54
+ throw new nestjs_utility_services_1.AccessException();
55
+ record.active = false;
56
+ return record.save();
57
+ }
58
+ async handleStatus(req, business) {
59
+ const user = nestjs_utility_services_1.Auth.user();
60
+ const { auth_attributes } = user;
61
+ const platform_id = this.platformService.getPlatformId(req);
62
+ const record = await fcm_token_entity_1.FcmTokenEntity.findOne({
63
+ where: {
64
+ business_id: business.id,
65
+ user_id: user.id,
66
+ platform_id,
67
+ product_id: auth_attributes.product_id,
68
+ season_identifier: auth_attributes.season_identifier,
69
+ },
70
+ });
71
+ return record;
72
+ }
73
+ };
74
+ exports.FcmTokenController = FcmTokenController;
75
+ __decorate([
76
+ (0, common_1.Get)(':id'),
77
+ __param(0, (0, common_1.Param)()),
78
+ __metadata("design:type", Function),
79
+ __metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
80
+ __metadata("design:returntype", Promise)
81
+ ], FcmTokenController.prototype, "show", null);
82
+ __decorate([
83
+ (0, common_1.Post)(),
84
+ __param(0, (0, common_1.Body)()),
85
+ __param(1, (0, common_1.Req)()),
86
+ __metadata("design:type", Function),
87
+ __metadata("design:paramtypes", [token_payload_dto_1.TokenPayloadDto, Object]),
88
+ __metadata("design:returntype", Promise)
89
+ ], FcmTokenController.prototype, "create", null);
90
+ __decorate([
91
+ (0, common_1.Post)('activate'),
92
+ __param(0, (0, common_1.Req)()),
93
+ __metadata("design:type", Function),
94
+ __metadata("design:paramtypes", [Object]),
95
+ __metadata("design:returntype", Promise)
96
+ ], FcmTokenController.prototype, "activate", null);
97
+ __decorate([
98
+ (0, common_1.Post)('deactivate'),
99
+ __param(0, (0, common_1.Req)()),
100
+ __metadata("design:type", Function),
101
+ __metadata("design:paramtypes", [Object]),
102
+ __metadata("design:returntype", Promise)
103
+ ], FcmTokenController.prototype, "deactivate", null);
104
+ exports.FcmTokenController = FcmTokenController = __decorate([
105
+ (0, common_1.Controller)('api/b/fcm'),
106
+ __metadata("design:paramtypes", [access_business_service_1.AccessBusinessService,
107
+ platform_service_1.PlatformService])
108
+ ], FcmTokenController);
109
+ //# sourceMappingURL=fcm.token.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fcm.token.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/fcm.token.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,oFAAmG;AAEnG,mEAA8D;AAC9D,iEAA4D;AAG5D,8DAAyD;AACzD,iFAA4E;AAC5E,mEAA+D;AAC/D,mEAA8D;AAQvD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC3B,YACqB,qBAA4C,EAC5C,eAAgC;QADhC,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,oBAAe,GAAf,eAAe,CAAiB;IAClD,CAAC;IAGE,AAAN,KAAK,CAAC,IAAI,CAAU,MAAwB;QACxC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QAEnE,OAAO,iCAAc,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,EAAE,EAA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AG,KAAK,CAAC;QAEtB,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IAEO,KAAK,CAAC,YAAY,CAAC,GAAY,EAAE,QAA8B;QACnE,MAAM,IAAI,GAAG,8BAAI,CAAC,IAAI,EAAE,CAAC;QACzB,MAAM,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;QAEjC,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QAE5D,MAAM,MAAM,GAAG,MAAM,iCAAc,CAAC,OAAO,CAAC;YACxC,KAAK,EAAE;gBACH,WAAW,EAAE,QAAQ,CAAC,EAAE;gBACxB,OAAO,EAAE,IAAI,CAAC,EAAE;gBAChB,WAAW;gBACX,UAAU,EAAE,eAAe,CAAC,UAAU;gBACtC,iBAAiB,EAAE,eAAe,CAAC,iBAAiB;aACvD;SACJ,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ,CAAA;AAjEY,gDAAkB;AAOrB;IADL,IAAA,YAAG,EAAC,KAAK,CAAC;IACC,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;8CAI3C;AAGK;IADL,IAAA,aAAI,GAAE;IACO,WAAA,IAAA,aAAI,GAAE,CAAA;IAAyB,WAAA,IAAA,YAAG,GAAE,CAAA;;qCAAvB,mCAAe;;gDASzC;AAGK;IADL,IAAA,aAAI,EAAC,UAAU,CAAC;IACD,WAAA,IAAA,YAAG,GAAE,CAAA;;;;kDAQpB;AAGK;IADL,IAAA,aAAI,EAAC,YAAY,CAAC;IACD,WAAA,IAAA,YAAG,GAAE,CAAA;;;;oDAQtB;6BA7CQ,kBAAkB;IAD9B,IAAA,mBAAU,EAAC,WAAW,CAAC;qCAGwB,+CAAqB;QAC3B,kCAAe;GAH5C,kBAAkB,CAiE9B"}
@@ -13,6 +13,7 @@ export * from './dashboard.controller';
13
13
  export * from './dashboard.report.controller';
14
14
  export * from './developer.mode.controller';
15
15
  export * from './download.log.controller';
16
+ export * from './fcm.token.controller';
16
17
  export * from './group.member.controller';
17
18
  export * from './group.role.controller';
18
19
  export * from './listing.controller';
@@ -29,6 +29,7 @@ __exportStar(require("./dashboard.controller"), exports);
29
29
  __exportStar(require("./dashboard.report.controller"), exports);
30
30
  __exportStar(require("./developer.mode.controller"), exports);
31
31
  __exportStar(require("./download.log.controller"), exports);
32
+ __exportStar(require("./fcm.token.controller"), exports);
32
33
  __exportStar(require("./group.member.controller"), exports);
33
34
  __exportStar(require("./group.role.controller"), exports);
34
35
  __exportStar(require("./listing.controller"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,4DAA0C;AAAA,iEAA+C;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,uDAAqC;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,qEAAmD;AAAA,mDAAiC;AAAA,iEAA+C;AAAA,+DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,4DAA0C;AAAA,iEAA+C;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,uDAAqC;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,qEAAmD;AAAA,mDAAiC;AAAA,iEAA+C;AAAA,+DAA4C"}
@@ -0,0 +1,3 @@
1
+ import { CommonAttributesDto } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class FcmMessageAttributesDto extends CommonAttributesDto {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FcmMessageAttributesDto = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class FcmMessageAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
6
+ }
7
+ exports.FcmMessageAttributesDto = FcmMessageAttributesDto;
8
+ //# sourceMappingURL=fcm.message.attributes.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fcm.message.attributes.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/fcm.message.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,uBAAwB,SAAQ,6CAAmB;CAAG;AAAnE,0DAAmE"}
@@ -0,0 +1,3 @@
1
+ import { CommonAttributesDto } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class FcmNotificationAttributesDto extends CommonAttributesDto {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FcmNotificationAttributesDto = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class FcmNotificationAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
6
+ }
7
+ exports.FcmNotificationAttributesDto = FcmNotificationAttributesDto;
8
+ //# sourceMappingURL=fcm.notification.attributes.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fcm.notification.attributes.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/fcm.notification.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,4BAA6B,SAAQ,6CAAmB;CAAG;AAAxE,oEAAwE"}
@@ -0,0 +1,3 @@
1
+ import { CommonAttributesDto } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class FcmTemplateAttributesDto extends CommonAttributesDto {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FcmTemplateAttributesDto = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class FcmTemplateAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
6
+ }
7
+ exports.FcmTemplateAttributesDto = FcmTemplateAttributesDto;
8
+ //# sourceMappingURL=fcm.template.attributes.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fcm.template.attributes.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/fcm.template.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,wBAAyB,SAAQ,6CAAmB;CAAG;AAApE,4DAAoE"}
@@ -0,0 +1,3 @@
1
+ import { CommonAttributesDto } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class FcmTokenAttributesDto extends CommonAttributesDto {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FcmTokenAttributesDto = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class FcmTokenAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
6
+ }
7
+ exports.FcmTokenAttributesDto = FcmTokenAttributesDto;
8
+ //# sourceMappingURL=fcm.token.attributes.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fcm.token.attributes.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/fcm.token.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,qBAAsB,SAAQ,6CAAmB;CAAG;AAAjE,sDAAiE"}
@@ -51,6 +51,10 @@ export * from './email.attachment.attributes.dto';
51
51
  export * from './email.message.attributes.dto';
52
52
  export * from './email.notification.payload.dto';
53
53
  export * from './email.recipient.attributes.dto';
54
+ export * from './fcm.message.attributes.dto';
55
+ export * from './fcm.notification.attributes.dto';
56
+ export * from './fcm.template.attributes.dto';
57
+ export * from './fcm.token.attributes.dto';
54
58
  export * from './gchat.message.attributes.dto';
55
59
  export * from './gchat.posting.payload.dto';
56
60
  export * from './gchat.template.attributes.dto';
@@ -103,6 +107,7 @@ export * from './slack.webhook.attributes.dto';
103
107
  export * from './slack.webhook.message.attributes.dto';
104
108
  export * from './string.search.dto';
105
109
  export * from './tagged.user.dto';
110
+ export * from './token.payload.dto';
106
111
  export * from './ui.action.attributes.dto';
107
112
  export * from './ui.action.role.attributes.dto';
108
113
  export * from './upi.vpa.payload.dto';
@@ -67,6 +67,10 @@ __exportStar(require("./email.attachment.attributes.dto"), exports);
67
67
  __exportStar(require("./email.message.attributes.dto"), exports);
68
68
  __exportStar(require("./email.notification.payload.dto"), exports);
69
69
  __exportStar(require("./email.recipient.attributes.dto"), exports);
70
+ __exportStar(require("./fcm.message.attributes.dto"), exports);
71
+ __exportStar(require("./fcm.notification.attributes.dto"), exports);
72
+ __exportStar(require("./fcm.template.attributes.dto"), exports);
73
+ __exportStar(require("./fcm.token.attributes.dto"), exports);
70
74
  __exportStar(require("./gchat.message.attributes.dto"), exports);
71
75
  __exportStar(require("./gchat.posting.payload.dto"), exports);
72
76
  __exportStar(require("./gchat.template.attributes.dto"), exports);
@@ -119,6 +123,7 @@ __exportStar(require("./slack.webhook.attributes.dto"), exports);
119
123
  __exportStar(require("./slack.webhook.message.attributes.dto"), exports);
120
124
  __exportStar(require("./string.search.dto"), exports);
121
125
  __exportStar(require("./tagged.user.dto"), exports);
126
+ __exportStar(require("./token.payload.dto"), exports);
122
127
  __exportStar(require("./ui.action.attributes.dto"), exports);
123
128
  __exportStar(require("./ui.action.role.attributes.dto"), exports);
124
129
  __exportStar(require("./upi.vpa.payload.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot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 -0,0 +1,23 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TokenPayloadDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class TokenPayloadDto {
16
+ }
17
+ exports.TokenPayloadDto = TokenPayloadDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", String)
22
+ ], TokenPayloadDto.prototype, "token", void 0);
23
+ //# sourceMappingURL=token.payload.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.payload.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/token.payload.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA6C;AAE7C,MAAa,eAAe;CAI3B;AAJD,0CAIC;AADG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;8CACK"}
@@ -0,0 +1,19 @@
1
+ import { CommonEntity, LookupValueEntity, UserEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { FcmMessageAttributesDto } from '../dtos/fcm.message.attributes.dto';
3
+ import { AccessBusinessEntity } from './access.business.entity';
4
+ import { FcmNotificationEntity } from './fcm.notification.entity';
5
+ export declare class FcmMessageEntity extends CommonEntity {
6
+ business_id: number;
7
+ user_id: number;
8
+ type_id: number;
9
+ fcm_notification_id: number;
10
+ content: any;
11
+ response: any;
12
+ source_type: string;
13
+ source_id: number;
14
+ attributes: FcmMessageAttributesDto;
15
+ business: AccessBusinessEntity;
16
+ user: UserEntity;
17
+ fcm_notification: FcmNotificationEntity;
18
+ type: LookupValueEntity;
19
+ }
@@ -0,0 +1,80 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.FcmMessageEntity = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const fcm_message_attributes_dto_1 = require("../dtos/fcm.message.attributes.dto");
16
+ const access_business_entity_1 = require("./access.business.entity");
17
+ const fcm_notification_entity_1 = require("./fcm.notification.entity");
18
+ let FcmMessageEntity = class FcmMessageEntity extends nestjs_utility_services_1.CommonEntity {
19
+ };
20
+ exports.FcmMessageEntity = FcmMessageEntity;
21
+ __decorate([
22
+ (0, typeorm_1.Column)(),
23
+ __metadata("design:type", Number)
24
+ ], FcmMessageEntity.prototype, "business_id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)(),
27
+ __metadata("design:type", Number)
28
+ ], FcmMessageEntity.prototype, "user_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)(),
31
+ __metadata("design:type", Number)
32
+ ], FcmMessageEntity.prototype, "type_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", Number)
36
+ ], FcmMessageEntity.prototype, "fcm_notification_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)('json'),
39
+ __metadata("design:type", Object)
40
+ ], FcmMessageEntity.prototype, "content", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)('json'),
43
+ __metadata("design:type", Object)
44
+ ], FcmMessageEntity.prototype, "response", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)(),
47
+ __metadata("design:type", String)
48
+ ], FcmMessageEntity.prototype, "source_type", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)(),
51
+ __metadata("design:type", Number)
52
+ ], FcmMessageEntity.prototype, "source_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)('json'),
55
+ __metadata("design:type", fcm_message_attributes_dto_1.FcmMessageAttributesDto)
56
+ ], FcmMessageEntity.prototype, "attributes", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
59
+ (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
60
+ __metadata("design:type", access_business_entity_1.AccessBusinessEntity)
61
+ ], FcmMessageEntity.prototype, "business", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.ManyToOne)(() => nestjs_utility_services_1.UserEntity),
64
+ (0, typeorm_1.JoinColumn)({ name: 'user_id' }),
65
+ __metadata("design:type", nestjs_utility_services_1.UserEntity)
66
+ ], FcmMessageEntity.prototype, "user", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.ManyToOne)(() => fcm_notification_entity_1.FcmNotificationEntity),
69
+ (0, typeorm_1.JoinColumn)({ name: 'fcm_notification_id' }),
70
+ __metadata("design:type", fcm_notification_entity_1.FcmNotificationEntity)
71
+ ], FcmMessageEntity.prototype, "fcm_notification", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.ManyToOne)(() => nestjs_utility_services_1.LookupValueEntity),
74
+ (0, typeorm_1.JoinColumn)({ name: 'type_id' }),
75
+ __metadata("design:type", nestjs_utility_services_1.LookupValueEntity)
76
+ ], FcmMessageEntity.prototype, "type", void 0);
77
+ exports.FcmMessageEntity = FcmMessageEntity = __decorate([
78
+ (0, typeorm_1.Entity)('sys_fcm_messages')
79
+ ], FcmMessageEntity);
80
+ //# sourceMappingURL=fcm.message.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fcm.message.entity.js","sourceRoot":"","sources":["../../../src/access/entities/fcm.message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAqG;AACrG,qCAAgE;AAChE,mFAA6E;AAC7E,qEAAgE;AAChE,uEAAkE;AAS3D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,sCAAY;CAiCjD,CAAA;AAjCY,4CAAgB;AAEzB;IADC,IAAA,gBAAM,GAAE;;qDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;iDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;iDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;6DACmB;AAG5B;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;iDACF;AAGb;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;kDACD;AAGd;IADC,IAAA,gBAAM,GAAE;;qDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;mDACS;AAGlB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,oDAAuB;oDAAC;AAGwC;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;kDAAC;AAC7C;IAA7D,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAU,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,oCAAU;8CAAC;AACM;IAApF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+CAAqB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;8BAAmB,+CAAqB;0DAAC;AACxD;IAApE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAiB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,2CAAiB;8CAAC;2BAhCpF,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,kBAAkB,CAAC;GACd,gBAAgB,CAiC5B"}
@@ -0,0 +1,14 @@
1
+ import { CommonEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { NotificationEntity } from 'src/accessUtility/entities/notification.entity';
3
+ import { FcmNotificationAttributesDto } from '../dtos/fcm.notification.attributes.dto';
4
+ import { FcmTemplateEntity } from './fcm.template.entity';
5
+ export declare class FcmNotificationEntity extends CommonEntity {
6
+ notification_id: number;
7
+ template_id: number;
8
+ through_webhook: boolean;
9
+ filter_condition: any;
10
+ active: boolean;
11
+ attributes: FcmNotificationAttributesDto;
12
+ notification: NotificationEntity;
13
+ template: FcmTemplateEntity;
14
+ }
@@ -0,0 +1,58 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.FcmNotificationEntity = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const notification_entity_1 = require("../../accessUtility/entities/notification.entity");
15
+ const typeorm_1 = require("typeorm");
16
+ const fcm_notification_attributes_dto_1 = require("../dtos/fcm.notification.attributes.dto");
17
+ const fcm_template_entity_1 = require("./fcm.template.entity");
18
+ let FcmNotificationEntity = class FcmNotificationEntity extends nestjs_utility_services_1.CommonEntity {
19
+ };
20
+ exports.FcmNotificationEntity = FcmNotificationEntity;
21
+ __decorate([
22
+ (0, typeorm_1.Column)(),
23
+ __metadata("design:type", Number)
24
+ ], FcmNotificationEntity.prototype, "notification_id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)(),
27
+ __metadata("design:type", Number)
28
+ ], FcmNotificationEntity.prototype, "template_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)(),
31
+ __metadata("design:type", Boolean)
32
+ ], FcmNotificationEntity.prototype, "through_webhook", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)('json'),
35
+ __metadata("design:type", Object)
36
+ ], FcmNotificationEntity.prototype, "filter_condition", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)(),
39
+ __metadata("design:type", Boolean)
40
+ ], FcmNotificationEntity.prototype, "active", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)('json'),
43
+ __metadata("design:type", fcm_notification_attributes_dto_1.FcmNotificationAttributesDto)
44
+ ], FcmNotificationEntity.prototype, "attributes", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.ManyToOne)(() => notification_entity_1.NotificationEntity),
47
+ (0, typeorm_1.JoinColumn)({ name: 'notification_id' }),
48
+ __metadata("design:type", notification_entity_1.NotificationEntity)
49
+ ], FcmNotificationEntity.prototype, "notification", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.ManyToOne)(() => fcm_template_entity_1.FcmTemplateEntity),
52
+ (0, typeorm_1.JoinColumn)({ name: 'template_id' }),
53
+ __metadata("design:type", fcm_template_entity_1.FcmTemplateEntity)
54
+ ], FcmNotificationEntity.prototype, "template", void 0);
55
+ exports.FcmNotificationEntity = FcmNotificationEntity = __decorate([
56
+ (0, typeorm_1.Entity)('utl_fcm_notifications')
57
+ ], FcmNotificationEntity);
58
+ //# sourceMappingURL=fcm.notification.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fcm.notification.entity.js","sourceRoot":"","sources":["../../../src/access/entities/fcm.notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAsE;AACtE,0FAAoF;AACpF,qCAAgE;AAChE,6FAAuF;AACvF,+DAA0D;AASnD,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,sCAAY;CAuBtD,CAAA;AAvBY,sDAAqB;AAE9B;IADC,IAAA,gBAAM,GAAE;;8DACe;AAGxB;IADC,IAAA,gBAAM,GAAE;;0DACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;8DACgB;AAGzB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;+DACO;AAGtB;IADC,IAAA,gBAAM,GAAE;;qDACO;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,8DAA4B;yDAAC;AAIqC;IAA7E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wCAAkB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;8BAAe,wCAAkB;2DAAC;AACtC;IAAxE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAiB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,uCAAiB;uDAAC;gCAtB5F,qBAAqB;IADjC,IAAA,gBAAM,EAAC,uBAAuB,CAAC;GACnB,qBAAqB,CAuBjC"}
@@ -0,0 +1,10 @@
1
+ import { CommonEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { FcmTemplateAttributesDto } from '../dtos/fcm.template.attributes.dto';
3
+ export declare class FcmTemplateEntity extends CommonEntity {
4
+ name: string;
5
+ identifier: string;
6
+ content: any;
7
+ variables: any;
8
+ active: boolean;
9
+ attributes: FcmTemplateAttributesDto;
10
+ }
@@ -0,0 +1,46 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.FcmTemplateEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ const fcm_template_attributes_dto_1 = require("../dtos/fcm.template.attributes.dto");
16
+ let FcmTemplateEntity = class FcmTemplateEntity extends nestjs_utility_services_1.CommonEntity {
17
+ };
18
+ exports.FcmTemplateEntity = FcmTemplateEntity;
19
+ __decorate([
20
+ (0, typeorm_1.Column)(),
21
+ __metadata("design:type", String)
22
+ ], FcmTemplateEntity.prototype, "name", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)(),
25
+ __metadata("design:type", String)
26
+ ], FcmTemplateEntity.prototype, "identifier", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)('json'),
29
+ __metadata("design:type", Object)
30
+ ], FcmTemplateEntity.prototype, "content", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)('json'),
33
+ __metadata("design:type", Object)
34
+ ], FcmTemplateEntity.prototype, "variables", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)(),
37
+ __metadata("design:type", Boolean)
38
+ ], FcmTemplateEntity.prototype, "active", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)('json'),
41
+ __metadata("design:type", fcm_template_attributes_dto_1.FcmTemplateAttributesDto)
42
+ ], FcmTemplateEntity.prototype, "attributes", void 0);
43
+ exports.FcmTemplateEntity = FcmTemplateEntity = __decorate([
44
+ (0, typeorm_1.Entity)('sys_fcm_templates')
45
+ ], FcmTemplateEntity);
46
+ //# sourceMappingURL=fcm.template.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fcm.template.entity.js","sourceRoot":"","sources":["../../../src/access/entities/fcm.template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,oFAAsE;AACtE,qFAA+E;AASxE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,sCAAY;CAoBlD,CAAA;AApBY,8CAAiB;AAE1B;IADC,IAAA,gBAAM,GAAE;;+CACI;AAGb;IADC,IAAA,gBAAM,GAAE;;qDACU;AAGnB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;kDACF;AAGb;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;oDACA;AAGf;IADC,IAAA,gBAAM,GAAE;;iDACO;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,sDAAwB;qDAAC;4BAjB5B,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,mBAAmB,CAAC;GACf,iBAAiB,CAoB7B"}
@@ -0,0 +1,18 @@
1
+ import { CommonEntity, LookupValueEntity, UserEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { ProductEntity } from './product.entity';
3
+ import { FcmTokenAttributesDto } from '../dtos/fcm.token.attributes.dto';
4
+ import { AccessBusinessEntity } from './access.business.entity';
5
+ export declare class FcmTokenEntity extends CommonEntity {
6
+ business_id: number;
7
+ user_id: number;
8
+ platform_id: number;
9
+ product_id: number;
10
+ active: boolean;
11
+ token: string;
12
+ season_identifier: string;
13
+ attributes: FcmTokenAttributesDto;
14
+ business: AccessBusinessEntity;
15
+ user: UserEntity;
16
+ platform: LookupValueEntity;
17
+ product: ProductEntity;
18
+ }