synunu-libs 1.0.4 → 1.0.5

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 (93) hide show
  1. package/dist/args/index.d.ts +2 -0
  2. package/dist/args/index.d.ts.map +1 -0
  3. package/dist/args/index.js +18 -0
  4. package/dist/args/index.js.map +1 -0
  5. package/dist/args/pagination.args.d.ts +5 -0
  6. package/dist/args/pagination.args.d.ts.map +1 -0
  7. package/dist/args/pagination.args.js +31 -0
  8. package/dist/args/pagination.args.js.map +1 -0
  9. package/dist/dto/auth.dto.d.ts +13 -0
  10. package/dist/dto/auth.dto.d.ts.map +1 -0
  11. package/dist/dto/auth.dto.js +75 -0
  12. package/dist/dto/auth.dto.js.map +1 -0
  13. package/dist/dto/branch.dto.d.ts +10 -0
  14. package/dist/dto/branch.dto.d.ts.map +1 -0
  15. package/dist/dto/branch.dto.js +42 -0
  16. package/dist/dto/branch.dto.js.map +1 -0
  17. package/dist/dto/date-range.input.d.ts +5 -0
  18. package/dist/dto/date-range.input.d.ts.map +1 -0
  19. package/dist/dto/date-range.input.js +28 -0
  20. package/dist/dto/date-range.input.js.map +1 -0
  21. package/dist/dto/index.d.ts +8 -0
  22. package/dist/dto/index.d.ts.map +1 -1
  23. package/dist/dto/index.js +10 -0
  24. package/dist/dto/index.js.map +1 -1
  25. package/dist/dto/membership.dto.d.ts +12 -0
  26. package/dist/dto/membership.dto.d.ts.map +1 -0
  27. package/dist/dto/membership.dto.js +53 -0
  28. package/dist/dto/membership.dto.js.map +1 -0
  29. package/dist/dto/menu.dto.d.ts +25 -0
  30. package/dist/dto/menu.dto.d.ts.map +1 -0
  31. package/dist/dto/menu.dto.js +87 -0
  32. package/dist/dto/menu.dto.js.map +1 -0
  33. package/dist/dto/organization.dto.d.ts +6 -0
  34. package/dist/dto/organization.dto.d.ts.map +1 -0
  35. package/dist/dto/organization.dto.js +37 -0
  36. package/dist/dto/organization.dto.js.map +1 -0
  37. package/dist/dto/roles.dto.d.ts +14 -0
  38. package/dist/dto/roles.dto.d.ts.map +1 -0
  39. package/dist/dto/roles.dto.js +49 -0
  40. package/dist/dto/roles.dto.js.map +1 -0
  41. package/dist/dto/translation.input.d.ts +8 -0
  42. package/dist/dto/translation.input.d.ts.map +1 -0
  43. package/dist/dto/translation.input.js +32 -0
  44. package/dist/dto/translation.input.js.map +1 -0
  45. package/dist/entities/branch.entity.d.ts +0 -1
  46. package/dist/entities/branch.entity.d.ts.map +1 -1
  47. package/dist/entities/branch.entity.js +1 -5
  48. package/dist/entities/branch.entity.js.map +1 -1
  49. package/dist/entities/membership.entity.d.ts +1 -3
  50. package/dist/entities/membership.entity.d.ts.map +1 -1
  51. package/dist/entities/membership.entity.js +2 -10
  52. package/dist/entities/membership.entity.js.map +1 -1
  53. package/dist/entities/organization.entity.d.ts +2 -3
  54. package/dist/entities/organization.entity.d.ts.map +1 -1
  55. package/dist/entities/organization.entity.js +5 -9
  56. package/dist/entities/organization.entity.js.map +1 -1
  57. package/dist/entities/role.entity.d.ts +0 -2
  58. package/dist/entities/role.entity.d.ts.map +1 -1
  59. package/dist/entities/role.entity.js +1 -9
  60. package/dist/entities/role.entity.js.map +1 -1
  61. package/dist/entities/user.entity.js +1 -1
  62. package/dist/entities/user.entity.js.map +1 -1
  63. package/dist/enum/index.d.ts +1 -0
  64. package/dist/enum/index.d.ts.map +1 -1
  65. package/dist/enum/index.js +1 -0
  66. package/dist/enum/index.js.map +1 -1
  67. package/dist/enum/use.enum.d.ts +6 -0
  68. package/dist/enum/use.enum.d.ts.map +1 -0
  69. package/dist/enum/use.enum.js +12 -0
  70. package/dist/enum/use.enum.js.map +1 -0
  71. package/dist/index.d.ts +1 -1
  72. package/dist/index.d.ts.map +1 -1
  73. package/dist/index.js +1 -1
  74. package/dist/index.js.map +1 -1
  75. package/dist/interfaces/account.interface.d.ts +8 -1
  76. package/dist/interfaces/account.interface.d.ts.map +1 -1
  77. package/dist/interfaces/index.d.ts +1 -0
  78. package/dist/interfaces/index.d.ts.map +1 -1
  79. package/dist/interfaces/index.js +1 -0
  80. package/dist/interfaces/index.js.map +1 -1
  81. package/dist/interfaces/translation.interface.d.ts +7 -0
  82. package/dist/interfaces/translation.interface.d.ts.map +1 -0
  83. package/dist/interfaces/translation.interface.js +3 -0
  84. package/dist/interfaces/translation.interface.js.map +1 -0
  85. package/dist/types/find-all-paginated-result.type.d.ts +7 -0
  86. package/dist/types/find-all-paginated-result.type.d.ts.map +1 -0
  87. package/dist/types/find-all-paginated-result.type.js +3 -0
  88. package/dist/types/find-all-paginated-result.type.js.map +1 -0
  89. package/dist/types/index.d.ts +1 -0
  90. package/dist/types/index.d.ts.map +1 -1
  91. package/dist/types/index.js +1 -0
  92. package/dist/types/index.js.map +1 -1
  93. package/package.json +10 -4
@@ -0,0 +1,49 @@
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.UpdateRoleInput = exports.RoleFilterInput = exports.CreateRoleInput = void 0;
13
+ const graphql_1 = require("@nestjs/graphql");
14
+ const date_range_input_1 = require("./date-range.input");
15
+ let CreateRoleInput = class CreateRoleInput {
16
+ };
17
+ exports.CreateRoleInput = CreateRoleInput;
18
+ __decorate([
19
+ (0, graphql_1.Field)(() => String),
20
+ __metadata("design:type", String)
21
+ ], CreateRoleInput.prototype, "name", void 0);
22
+ __decorate([
23
+ (0, graphql_1.Field)(() => String, { nullable: true }),
24
+ __metadata("design:type", String)
25
+ ], CreateRoleInput.prototype, "description", void 0);
26
+ exports.CreateRoleInput = CreateRoleInput = __decorate([
27
+ (0, graphql_1.InputType)()
28
+ ], CreateRoleInput);
29
+ let RoleFilterInput = class RoleFilterInput {
30
+ };
31
+ exports.RoleFilterInput = RoleFilterInput;
32
+ __decorate([
33
+ (0, graphql_1.Field)(() => date_range_input_1.DateRangeInput, { nullable: true }),
34
+ __metadata("design:type", date_range_input_1.DateRangeInput)
35
+ ], RoleFilterInput.prototype, "createdAt", void 0);
36
+ exports.RoleFilterInput = RoleFilterInput = __decorate([
37
+ (0, graphql_1.InputType)()
38
+ ], RoleFilterInput);
39
+ let UpdateRoleInput = class UpdateRoleInput extends (0, graphql_1.PartialType)(CreateRoleInput) {
40
+ };
41
+ exports.UpdateRoleInput = UpdateRoleInput;
42
+ __decorate([
43
+ (0, graphql_1.Field)(() => String),
44
+ __metadata("design:type", String)
45
+ ], UpdateRoleInput.prototype, "_id", void 0);
46
+ exports.UpdateRoleInput = UpdateRoleInput = __decorate([
47
+ (0, graphql_1.InputType)()
48
+ ], UpdateRoleInput);
49
+ //# sourceMappingURL=roles.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles.dto.js","sourceRoot":"","sources":["../../src/dto/roles.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAChE,yDAAoD;AAG7C,IAAM,eAAe,GAArB,MAAM,eAAe;CAM3B,CAAA;AANY,0CAAe;AAE1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACP;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACnB;0BALV,eAAe;IAD3B,IAAA,mBAAS,GAAE;GACC,eAAe,CAM3B;AAGM,IAAM,eAAe,GAArB,MAAM,eAAe;CAG3B,CAAA;AAHY,0CAAe;AAE1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;kDAAC;0BAFhB,eAAe;IAD3B,IAAA,mBAAS,GAAE;GACC,eAAe,CAG3B;AAGM,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,IAAA,qBAAW,EAAC,eAAe,CAAC;CAGhE,CAAA;AAHY,0CAAe;AAE1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;4CACR;0BAFD,eAAe;IAD3B,IAAA,mBAAS,GAAE;GACC,eAAe,CAG3B"}
@@ -0,0 +1,8 @@
1
+ import { ITranslation } from "./../interfaces/translation.interface";
2
+ export declare class TranslationInput implements ITranslation {
3
+ vi?: string;
4
+ en?: string;
5
+ fr?: string;
6
+ [key: string]: string | undefined;
7
+ }
8
+ //# sourceMappingURL=translation.input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation.input.d.ts","sourceRoot":"","sources":["../../src/dto/translation.input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAErE,qBACa,gBAAiB,YAAW,YAAY;IAEnD,EAAE,CAAC,EAAE,MAAM,CAAC;IAGZ,EAAE,CAAC,EAAE,MAAM,CAAC;IAGZ,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACnC"}
@@ -0,0 +1,32 @@
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.TranslationInput = void 0;
13
+ const graphql_1 = require("@nestjs/graphql");
14
+ let TranslationInput = class TranslationInput {
15
+ };
16
+ exports.TranslationInput = TranslationInput;
17
+ __decorate([
18
+ (0, graphql_1.Field)({ nullable: true }),
19
+ __metadata("design:type", String)
20
+ ], TranslationInput.prototype, "vi", void 0);
21
+ __decorate([
22
+ (0, graphql_1.Field)({ nullable: true }),
23
+ __metadata("design:type", String)
24
+ ], TranslationInput.prototype, "en", void 0);
25
+ __decorate([
26
+ (0, graphql_1.Field)({ nullable: true }),
27
+ __metadata("design:type", String)
28
+ ], TranslationInput.prototype, "fr", void 0);
29
+ exports.TranslationInput = TranslationInput = __decorate([
30
+ (0, graphql_1.InputType)()
31
+ ], TranslationInput);
32
+ //# sourceMappingURL=translation.input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation.input.js","sourceRoot":"","sources":["../../src/dto/translation.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AAI5C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAW5B,CAAA;AAXY,4CAAgB;AAE3B;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACd;AAGZ;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACd;AAGZ;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACd;2BARD,gBAAgB;IAD5B,IAAA,mBAAS,GAAE;GACC,gBAAgB,CAW5B"}
@@ -4,7 +4,6 @@ export declare class BranchEntity {
4
4
  code: string;
5
5
  organizationId: string;
6
6
  description?: string;
7
- createdAt: number;
8
7
  createdBy?: string;
9
8
  }
10
9
  //# sourceMappingURL=branch.entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"branch.entity.d.ts","sourceRoot":"","sources":["../../src/entities/branch.entity.ts"],"names":[],"mappings":"AAEA,qBACa,YAAY;IAEvB,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,cAAc,EAAE,MAAM,CAAC;IAGvB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"branch.entity.d.ts","sourceRoot":"","sources":["../../src/entities/branch.entity.ts"],"names":[],"mappings":"AAEA,qBACa,YAAY;IAEvB,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,cAAc,EAAE,MAAM,CAAC;IAGvB,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -15,7 +15,7 @@ let BranchEntity = class BranchEntity {
15
15
  };
16
16
  exports.BranchEntity = BranchEntity;
17
17
  __decorate([
18
- (0, graphql_1.Field)(() => graphql_1.ID),
18
+ (0, graphql_1.Field)(() => String),
19
19
  __metadata("design:type", String)
20
20
  ], BranchEntity.prototype, "_id", void 0);
21
21
  __decorate([
@@ -34,10 +34,6 @@ __decorate([
34
34
  (0, graphql_1.Field)({ nullable: true }),
35
35
  __metadata("design:type", String)
36
36
  ], BranchEntity.prototype, "description", void 0);
37
- __decorate([
38
- (0, graphql_1.Field)(() => Number),
39
- __metadata("design:type", Number)
40
- ], BranchEntity.prototype, "createdAt", void 0);
41
37
  __decorate([
42
38
  (0, graphql_1.Field)({ nullable: true }),
43
39
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"branch.entity.js","sourceRoot":"","sources":["../../src/entities/branch.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AAGjD,IAAM,YAAY,GAAlB,MAAM,YAAY;CAqBxB,CAAA;AArBY,oCAAY;AAEvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;yCACJ;AAGZ;IADC,IAAA,eAAK,GAAE;;0CACK;AAGb;IADC,IAAA,eAAK,GAAE;;0CACK;AAGb;IADC,IAAA,eAAK,GAAE;;oDACe;AAGvB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACL;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACF;AAGlB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACP;uBApBR,YAAY;IADxB,IAAA,oBAAU,GAAE;GACA,YAAY,CAqBxB"}
1
+ {"version":3,"file":"branch.entity.js","sourceRoot":"","sources":["../../src/entities/branch.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AAGlD,IAAM,YAAY,GAAlB,MAAM,YAAY;CAqBxB,CAAA;AArBY,oCAAY;AAEvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yCACR;AAGZ;IADC,IAAA,eAAK,GAAE;;0CACK;AAGb;IADC,IAAA,eAAK,GAAE;;0CACK;AAGb;IADC,IAAA,eAAK,GAAE;;oDACe;AAGvB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACL;AAMrB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACP;uBApBR,YAAY;IADxB,IAAA,oBAAU,GAAE;GACA,YAAY,CAqBxB"}
@@ -1,5 +1,5 @@
1
- import { OrganizationEntity } from "./organization.entity";
2
1
  import { BranchEntity } from "./branch.entity";
2
+ import { OrganizationEntity } from "./organization.entity";
3
3
  import { RoleEntity } from "./role.entity";
4
4
  export declare class MembershipEntity {
5
5
  _id: string;
@@ -8,8 +8,6 @@ export declare class MembershipEntity {
8
8
  roleId: string;
9
9
  organizationId?: string;
10
10
  branchId?: string;
11
- createdAt: number;
12
- updatedAt: number;
13
11
  organization: OrganizationEntity;
14
12
  branch: BranchEntity;
15
13
  role: RoleEntity;
@@ -1 +1 @@
1
- {"version":3,"file":"membership.entity.d.ts","sourceRoot":"","sources":["../../src/entities/membership.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBACa,gBAAgB;IAE3B,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAGf,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAGlB,YAAY,EAAE,kBAAkB,CAAC;IAGjC,MAAM,EAAE,YAAY,CAAC;IAGrB,IAAI,EAAE,UAAU,CAAC;CAClB"}
1
+ {"version":3,"file":"membership.entity.d.ts","sourceRoot":"","sources":["../../src/entities/membership.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBACa,gBAAgB;IAE3B,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAGf,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IASlB,YAAY,EAAE,kBAAkB,CAAC;IAGjC,MAAM,EAAE,YAAY,CAAC;IAGrB,IAAI,EAAE,UAAU,CAAC;CAClB"}
@@ -11,14 +11,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MembershipEntity = void 0;
13
13
  const graphql_1 = require("@nestjs/graphql");
14
- const organization_entity_1 = require("./organization.entity");
15
14
  const branch_entity_1 = require("./branch.entity");
15
+ const organization_entity_1 = require("./organization.entity");
16
16
  const role_entity_1 = require("./role.entity");
17
17
  let MembershipEntity = class MembershipEntity {
18
18
  };
19
19
  exports.MembershipEntity = MembershipEntity;
20
20
  __decorate([
21
- (0, graphql_1.Field)(() => graphql_1.ID),
21
+ (0, graphql_1.Field)(() => String),
22
22
  __metadata("design:type", String)
23
23
  ], MembershipEntity.prototype, "_id", void 0);
24
24
  __decorate([
@@ -41,14 +41,6 @@ __decorate([
41
41
  (0, graphql_1.Field)(() => String, { nullable: true }),
42
42
  __metadata("design:type", String)
43
43
  ], MembershipEntity.prototype, "branchId", void 0);
44
- __decorate([
45
- (0, graphql_1.Field)(() => Number),
46
- __metadata("design:type", Number)
47
- ], MembershipEntity.prototype, "createdAt", void 0);
48
- __decorate([
49
- (0, graphql_1.Field)(() => Number),
50
- __metadata("design:type", Number)
51
- ], MembershipEntity.prototype, "updatedAt", void 0);
52
44
  __decorate([
53
45
  (0, graphql_1.Field)(() => organization_entity_1.OrganizationEntity),
54
46
  __metadata("design:type", organization_entity_1.OrganizationEntity)
@@ -1 +1 @@
1
- {"version":3,"file":"membership.entity.js","sourceRoot":"","sources":["../../src/entities/membership.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AACxD,+DAA2D;AAC3D,mDAA+C;AAC/C,+CAA2C;AAGpC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAiC5B,CAAA;AAjCY,4CAAgB;AAE3B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;6CACJ;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACP;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACL;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACL;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAChB;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACtB;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mDACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mDACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAkB,CAAC;8BAClB,wCAAkB;sDAAC;AAGjC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAClB,4BAAY;gDAAC;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;8BAClB,wBAAU;8CAAC;2BAhCN,gBAAgB;IAD5B,IAAA,oBAAU,GAAE;GACA,gBAAgB,CAiC5B"}
1
+ {"version":3,"file":"membership.entity.js","sourceRoot":"","sources":["../../src/entities/membership.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AACzD,mDAA+C;AAC/C,+DAA2D;AAC3D,+CAA2C;AAGpC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAiC5B,CAAA;AAjCY,4CAAgB;AAE3B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACR;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACP;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACL;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACL;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAChB;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACtB;AASlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAkB,CAAC;8BAClB,wCAAkB;sDAAC;AAGjC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAClB,4BAAY;gDAAC;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;8BAClB,wBAAU;8CAAC;2BAhCN,gBAAgB;IAD5B,IAAA,oBAAU,GAAE;GACA,gBAAgB,CAiC5B"}
@@ -1,12 +1,11 @@
1
1
  import { UserEntity } from "./user.entity";
2
2
  export declare class OrganizationEntity {
3
3
  _id: string;
4
- name: string;
4
+ name: number;
5
5
  language: string[];
6
6
  description?: string;
7
7
  createdBy: string;
8
- createdAt: number;
9
- updatedAt: number;
8
+ updatedAt: string;
10
9
  creator?: UserEntity;
11
10
  }
12
11
  //# sourceMappingURL=organization.entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["../../src/entities/organization.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBACa,kBAAkB;IAE7B,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,EAAE,CAAC;IAGnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB"}
1
+ {"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["../../src/entities/organization.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBACa,kBAAkB;IAE7B,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,EAAE,CAAC;IAGnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,MAAM,CAAC;IAMlB,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB"}
@@ -16,12 +16,12 @@ let OrganizationEntity = class OrganizationEntity {
16
16
  };
17
17
  exports.OrganizationEntity = OrganizationEntity;
18
18
  __decorate([
19
- (0, graphql_1.Field)(() => graphql_1.ID),
19
+ (0, graphql_1.Field)(() => String),
20
20
  __metadata("design:type", String)
21
21
  ], OrganizationEntity.prototype, "_id", void 0);
22
22
  __decorate([
23
- (0, graphql_1.Field)(() => String),
24
- __metadata("design:type", String)
23
+ (0, graphql_1.Field)(() => graphql_1.Int),
24
+ __metadata("design:type", Number)
25
25
  ], OrganizationEntity.prototype, "name", void 0);
26
26
  __decorate([
27
27
  (0, graphql_1.Field)(() => [String]),
@@ -36,12 +36,8 @@ __decorate([
36
36
  __metadata("design:type", String)
37
37
  ], OrganizationEntity.prototype, "createdBy", void 0);
38
38
  __decorate([
39
- (0, graphql_1.Field)(() => Number),
40
- __metadata("design:type", Number)
41
- ], OrganizationEntity.prototype, "createdAt", void 0);
42
- __decorate([
43
- (0, graphql_1.Field)(() => Number),
44
- __metadata("design:type", Number)
39
+ (0, graphql_1.Field)(() => String),
40
+ __metadata("design:type", String)
45
41
  ], OrganizationEntity.prototype, "updatedAt", void 0);
46
42
  __decorate([
47
43
  (0, graphql_1.Field)(() => user_entity_1.UserEntity, { nullable: true }),
@@ -1 +1 @@
1
- {"version":3,"file":"organization.entity.js","sourceRoot":"","sources":["../../src/entities/organization.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AACxD,+CAA2C;AAGpC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAwB9B,CAAA;AAxBY,gDAAkB;AAE7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;+CACJ;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACP;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;;oDACH;AAGnB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACnB;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wBAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAClC,wBAAU;mDAAC;6BAvBV,kBAAkB;IAD9B,IAAA,oBAAU,GAAE;GACA,kBAAkB,CAwB9B"}
1
+ {"version":3,"file":"organization.entity.js","sourceRoot":"","sources":["../../src/entities/organization.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AACzD,+CAA2C;AAGpC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAwB9B,CAAA;AAxBY,gDAAkB;AAE7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACR;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;gDACJ;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;;oDACH;AAGnB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACnB;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACF;AAMlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wBAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAClC,wBAAU;mDAAC;6BAvBV,kBAAkB;IAD9B,IAAA,oBAAU,GAAE;GACA,kBAAkB,CAwB9B"}
@@ -2,8 +2,6 @@ export declare class RoleEntity {
2
2
  _id: string;
3
3
  name: string;
4
4
  description?: string;
5
- createdAt: number;
6
- updatedAt: number;
7
5
  permissions?: string[];
8
6
  }
9
7
  declare const PaginatedRoleResult_base: abstract new () => {
@@ -1 +1 @@
1
- {"version":3,"file":"role.entity.d.ts","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":"AAGA,qBACa,UAAU;IAErB,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;;;;;;;AAED,qBACa,mBAAoB,SAAQ,wBAA2B;CAAG"}
1
+ {"version":3,"file":"role.entity.d.ts","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":"AAGA,qBACa,UAAU;IAErB,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;IASrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;;;;;;;AAED,qBACa,mBAAoB,SAAQ,wBAA2B;CAAG"}
@@ -16,7 +16,7 @@ let RoleEntity = class RoleEntity {
16
16
  };
17
17
  exports.RoleEntity = RoleEntity;
18
18
  __decorate([
19
- (0, graphql_1.Field)(() => graphql_1.ID),
19
+ (0, graphql_1.Field)(() => String),
20
20
  __metadata("design:type", String)
21
21
  ], RoleEntity.prototype, "_id", void 0);
22
22
  __decorate([
@@ -27,14 +27,6 @@ __decorate([
27
27
  (0, graphql_1.Field)(() => String, { nullable: true }),
28
28
  __metadata("design:type", String)
29
29
  ], RoleEntity.prototype, "description", void 0);
30
- __decorate([
31
- (0, graphql_1.Field)(() => Number),
32
- __metadata("design:type", Number)
33
- ], RoleEntity.prototype, "createdAt", void 0);
34
- __decorate([
35
- (0, graphql_1.Field)(() => Number),
36
- __metadata("design:type", Number)
37
- ], RoleEntity.prototype, "updatedAt", void 0);
38
30
  __decorate([
39
31
  (0, graphql_1.Field)(() => [String], { nullable: true }),
40
32
  __metadata("design:type", Array)
@@ -1 +1 @@
1
- {"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AACxD,0EAAiE;AAG1D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAkBtB,CAAA;AAlBY,gCAAU;AAErB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;uCACJ;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACP;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;qBAjBZ,UAAU;IADtB,IAAA,oBAAU,GAAE;GACA,UAAU,CAkBtB;AAGM,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,IAAA,uCAAe,EAAC,UAAU,CAAC;CAAG,CAAA;AAA1D,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,oBAAU,GAAE;GACA,mBAAmB,CAAuC"}
1
+ {"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AACzD,0EAAiE;AAG1D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAkBtB,CAAA;AAlBY,gCAAU;AAErB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACR;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACP;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;AASrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;qBAjBZ,UAAU;IADtB,IAAA,oBAAU,GAAE;GACA,UAAU,CAkBtB;AAGM,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,IAAA,uCAAe,EAAC,UAAU,CAAC;CAAG,CAAA;AAA1D,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,oBAAU,GAAE;GACA,mBAAmB,CAAuC"}
@@ -17,7 +17,7 @@ let UserEntity = class UserEntity {
17
17
  };
18
18
  exports.UserEntity = UserEntity;
19
19
  __decorate([
20
- (0, graphql_1.Field)(() => graphql_1.ID),
20
+ (0, graphql_1.Field)(() => String),
21
21
  __metadata("design:type", String)
22
22
  ], UserEntity.prototype, "_id", void 0);
23
23
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AACxD,2DAAuD;AACvD,oCAA2C;AAIpC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAoCtB,CAAA;AApCY,gCAAU;AAErB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;uCACJ;AAGZ;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGlB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGlB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGlB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACA;AAG1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qBAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACxB;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;AAGrB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACL;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACF;AAGxC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,oCAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;qBAnCtB,UAAU;IADtB,IAAA,oBAAU,GAAE;GACA,UAAU,CAoCtB"}
1
+ {"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,2DAAuD;AACvD,oCAA2C;AAIpC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAoCtB,CAAA;AApCY,gCAAU;AAErB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACR;AAGZ;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGlB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGlB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGlB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACA;AAG1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qBAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACxB;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;AAGrB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACL;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACF;AAGxC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,oCAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;qBAnCtB,UAAU;IADtB,IAAA,oBAAU,GAAE;GACA,UAAU,CAoCtB"}
@@ -1,2 +1,3 @@
1
1
  export * from "./account-status.enum";
2
+ export * from "./use.enum";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enum/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enum/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC"}
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./account-status.enum"), exports);
18
+ __exportStar(require("./use.enum"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,6CAA2B"}
@@ -0,0 +1,6 @@
1
+ export declare enum UserType {
2
+ ADMIN = "admin",
3
+ SHOP = "shop",
4
+ BUYER = "buyer"
5
+ }
6
+ //# sourceMappingURL=use.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use.enum.d.ts","sourceRoot":"","sources":["../../src/enum/use.enum.ts"],"names":[],"mappings":"AAEA,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserType = void 0;
4
+ const graphql_1 = require("@nestjs/graphql");
5
+ var UserType;
6
+ (function (UserType) {
7
+ UserType["ADMIN"] = "admin";
8
+ UserType["SHOP"] = "shop";
9
+ UserType["BUYER"] = "buyer";
10
+ })(UserType || (exports.UserType = UserType = {}));
11
+ (0, graphql_1.registerEnumType)(UserType, { name: 'UserType' });
12
+ //# sourceMappingURL=use.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use.enum.js","sourceRoot":"","sources":["../../src/enum/use.enum.ts"],"names":[],"mappings":";;;AAAA,6CAAmD;AAEnD,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,2BAAe,CAAA;AACjB,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB;AAED,IAAA,0BAAgB,EAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
+ export * from "./args";
1
2
  export * from "./constants";
2
3
  export * from "./dto";
3
- export * from "./entities";
4
4
  export * from "./enum";
5
5
  export * from "./interfaces";
6
6
  export * from "./types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -15,9 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // src/index.ts
18
+ __exportStar(require("./args"), exports);
18
19
  __exportStar(require("./constants"), exports);
19
20
  __exportStar(require("./dto"), exports);
20
- __exportStar(require("./entities"), exports);
21
21
  __exportStar(require("./enum"), exports);
22
22
  __exportStar(require("./interfaces"), exports);
23
23
  __exportStar(require("./types"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,eAAe;AACf,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B;AAC3B,yCAAuB;AACvB,+CAA6B;AAC7B,0CAAwB;AACxB,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,eAAe;AACf,yCAAuB;AACvB,8CAA4B;AAC5B,wCAAsB;AACtB,yCAAuB;AACvB,+CAA6B;AAC7B,0CAAwB;AACxB,0CAAwB"}
@@ -9,5 +9,12 @@ interface ISocialAccounts {
9
9
  facebook?: ISocialAccount | null;
10
10
  apple?: ISocialAccount | null;
11
11
  }
12
- export type { ISocialAccount, ISocialAccounts };
12
+ interface JwtPayload {
13
+ email: string;
14
+ sub: string;
15
+ userName?: string;
16
+ organizationId: string;
17
+ branchId?: string;
18
+ }
19
+ export type { ISocialAccount, ISocialAccounts, JwtPayload };
13
20
  //# sourceMappingURL=account.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/account.interface.ts"],"names":[],"mappings":"AAAA,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACjC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;CAC/B;AAED,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"account.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/account.interface.ts"],"names":[],"mappings":"AAAA,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACjC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;CAC/B;AAED,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from "./account.interface";
2
+ export * from "./translation.interface";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC"}
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./account.interface"), exports);
18
+ __exportStar(require("./translation.interface"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,0DAAwC"}
@@ -0,0 +1,7 @@
1
+ interface ITranslation {
2
+ en?: string;
3
+ vi?: string;
4
+ [key: string]: string | undefined;
5
+ }
6
+ export type { ITranslation };
7
+ //# sourceMappingURL=translation.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/translation.interface.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACnC;AAED,YAAY,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=translation.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation.interface.js","sourceRoot":"","sources":["../../src/interfaces/translation.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export type FindAllPaginatedResult<T> = {
2
+ items: T[];
3
+ total: number;
4
+ page: number;
5
+ size: number;
6
+ };
7
+ //# sourceMappingURL=find-all-paginated-result.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-all-paginated-result.type.d.ts","sourceRoot":"","sources":["../../src/types/find-all-paginated-result.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI;IACtC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=find-all-paginated-result.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-all-paginated-result.type.js","sourceRoot":"","sources":["../../src/types/find-all-paginated-result.type.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  export * from "./date-range.type";
2
2
  export * from "./paginated-result.type";
3
+ export * from "./find-all-paginated-result.type";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC"}
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./date-range.type"), exports);
18
18
  __exportStar(require("./paginated-result.type"), exports);
19
+ __exportStar(require("./find-all-paginated-result.type"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,0DAAwC;AACxC,mEAAiD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synunu-libs",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Shared DTOs, constants, and utilities for Synunu microservices",
@@ -17,8 +17,14 @@
17
17
  "typescript": "^5.6.0"
18
18
  },
19
19
  "dependencies": {
20
- "@nestjs/common": "^10.0.0",
21
- "@nestjs/graphql": "^12.2.1",
22
- "graphql": "^16.11.0"
20
+ "@apollo/server": "^5.0.0",
21
+ "@nestjs/common": "^11.1.6",
22
+ "@nestjs/config": "^4.0.2",
23
+ "@nestjs/core": "^11.1.6",
24
+ "@nestjs/graphql": "^13.1.0",
25
+ "@nestjs/microservices": "^11.1.6",
26
+ "apollo-server-express": "^3.13.0",
27
+ "class-validator": "^0.14.2",
28
+ "reflect-metadata": "^0.2.2"
23
29
  }
24
30
  }