synunu-libs 1.0.4 → 1.0.6

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 (105) 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/constants/index.d.ts +2 -1
  10. package/dist/constants/index.d.ts.map +1 -1
  11. package/dist/constants/index.js +2 -1
  12. package/dist/constants/index.js.map +1 -1
  13. package/dist/constants/patterns.constant.d.ts +80 -0
  14. package/dist/constants/patterns.constant.d.ts.map +1 -0
  15. package/dist/constants/patterns.constant.js +68 -0
  16. package/dist/constants/patterns.constant.js.map +1 -0
  17. package/dist/constants/permission.constant.d.ts +168 -0
  18. package/dist/constants/permission.constant.d.ts.map +1 -0
  19. package/dist/constants/permission.constant.js +79 -0
  20. package/dist/constants/permission.constant.js.map +1 -0
  21. package/dist/dto/auth.dto.d.ts +13 -0
  22. package/dist/dto/auth.dto.d.ts.map +1 -0
  23. package/dist/dto/auth.dto.js +75 -0
  24. package/dist/dto/auth.dto.js.map +1 -0
  25. package/dist/dto/branch.dto.d.ts +10 -0
  26. package/dist/dto/branch.dto.d.ts.map +1 -0
  27. package/dist/dto/branch.dto.js +42 -0
  28. package/dist/dto/branch.dto.js.map +1 -0
  29. package/dist/dto/date-range.input.d.ts +5 -0
  30. package/dist/dto/date-range.input.d.ts.map +1 -0
  31. package/dist/dto/date-range.input.js +28 -0
  32. package/dist/dto/date-range.input.js.map +1 -0
  33. package/dist/dto/index.d.ts +8 -0
  34. package/dist/dto/index.d.ts.map +1 -1
  35. package/dist/dto/index.js +10 -0
  36. package/dist/dto/index.js.map +1 -1
  37. package/dist/dto/membership.dto.d.ts +12 -0
  38. package/dist/dto/membership.dto.d.ts.map +1 -0
  39. package/dist/dto/membership.dto.js +53 -0
  40. package/dist/dto/membership.dto.js.map +1 -0
  41. package/dist/dto/menu.dto.d.ts +25 -0
  42. package/dist/dto/menu.dto.d.ts.map +1 -0
  43. package/dist/dto/menu.dto.js +87 -0
  44. package/dist/dto/menu.dto.js.map +1 -0
  45. package/dist/dto/organization.dto.d.ts +6 -0
  46. package/dist/dto/organization.dto.d.ts.map +1 -0
  47. package/dist/dto/organization.dto.js +37 -0
  48. package/dist/dto/organization.dto.js.map +1 -0
  49. package/dist/dto/roles.dto.d.ts +14 -0
  50. package/dist/dto/roles.dto.d.ts.map +1 -0
  51. package/dist/dto/roles.dto.js +49 -0
  52. package/dist/dto/roles.dto.js.map +1 -0
  53. package/dist/dto/translation.input.d.ts +8 -0
  54. package/dist/dto/translation.input.d.ts.map +1 -0
  55. package/dist/dto/translation.input.js +32 -0
  56. package/dist/dto/translation.input.js.map +1 -0
  57. package/dist/entities/branch.entity.d.ts +0 -1
  58. package/dist/entities/branch.entity.d.ts.map +1 -1
  59. package/dist/entities/branch.entity.js +1 -5
  60. package/dist/entities/branch.entity.js.map +1 -1
  61. package/dist/entities/membership.entity.d.ts +1 -3
  62. package/dist/entities/membership.entity.d.ts.map +1 -1
  63. package/dist/entities/membership.entity.js +2 -10
  64. package/dist/entities/membership.entity.js.map +1 -1
  65. package/dist/entities/organization.entity.d.ts +2 -3
  66. package/dist/entities/organization.entity.d.ts.map +1 -1
  67. package/dist/entities/organization.entity.js +5 -9
  68. package/dist/entities/organization.entity.js.map +1 -1
  69. package/dist/entities/role.entity.d.ts +0 -2
  70. package/dist/entities/role.entity.d.ts.map +1 -1
  71. package/dist/entities/role.entity.js +1 -9
  72. package/dist/entities/role.entity.js.map +1 -1
  73. package/dist/entities/user.entity.js +1 -1
  74. package/dist/entities/user.entity.js.map +1 -1
  75. package/dist/enum/index.d.ts +1 -0
  76. package/dist/enum/index.d.ts.map +1 -1
  77. package/dist/enum/index.js +1 -0
  78. package/dist/enum/index.js.map +1 -1
  79. package/dist/enum/use.enum.d.ts +6 -0
  80. package/dist/enum/use.enum.d.ts.map +1 -0
  81. package/dist/enum/use.enum.js +12 -0
  82. package/dist/enum/use.enum.js.map +1 -0
  83. package/dist/index.d.ts +1 -1
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +1 -1
  86. package/dist/index.js.map +1 -1
  87. package/dist/interfaces/account.interface.d.ts +8 -1
  88. package/dist/interfaces/account.interface.d.ts.map +1 -1
  89. package/dist/interfaces/index.d.ts +1 -0
  90. package/dist/interfaces/index.d.ts.map +1 -1
  91. package/dist/interfaces/index.js +1 -0
  92. package/dist/interfaces/index.js.map +1 -1
  93. package/dist/interfaces/translation.interface.d.ts +7 -0
  94. package/dist/interfaces/translation.interface.d.ts.map +1 -0
  95. package/dist/interfaces/translation.interface.js +3 -0
  96. package/dist/interfaces/translation.interface.js.map +1 -0
  97. package/dist/types/find-all-paginated-result.type.d.ts +7 -0
  98. package/dist/types/find-all-paginated-result.type.d.ts.map +1 -0
  99. package/dist/types/find-all-paginated-result.type.js +3 -0
  100. package/dist/types/find-all-paginated-result.type.js.map +1 -0
  101. package/dist/types/index.d.ts +1 -0
  102. package/dist/types/index.d.ts.map +1 -1
  103. package/dist/types/index.js +1 -0
  104. package/dist/types/index.js.map +1 -1
  105. package/package.json +10 -4
@@ -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.6",
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
  }