synunu-libs 1.0.11 → 1.0.14

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 (51) hide show
  1. package/dist/dto/index.d.ts +1 -0
  2. package/dist/dto/index.d.ts.map +1 -1
  3. package/dist/dto/index.js +1 -0
  4. package/dist/dto/index.js.map +1 -1
  5. package/dist/dto/menu.dto.d.ts +1 -1
  6. package/dist/dto/product.dto.d.ts +25 -0
  7. package/dist/dto/product.dto.d.ts.map +1 -0
  8. package/dist/dto/product.dto.js +87 -0
  9. package/dist/dto/product.dto.js.map +1 -0
  10. package/dist/dto/roles.dto.d.ts +1 -1
  11. package/dist/dto/soit.dto.d.ts +25 -0
  12. package/dist/dto/soit.dto.d.ts.map +1 -0
  13. package/dist/dto/soit.dto.js +87 -0
  14. package/dist/dto/soit.dto.js.map +1 -0
  15. package/dist/dto/tttt.dto.d.ts +25 -0
  16. package/dist/dto/tttt.dto.d.ts.map +1 -0
  17. package/dist/dto/tttt.dto.js +87 -0
  18. package/dist/dto/tttt.dto.js.map +1 -0
  19. package/package.json +2 -9
  20. package/dist/constants/permission.constants.d.ts +0 -168
  21. package/dist/constants/permission.constants.d.ts.map +0 -1
  22. package/dist/constants/permission.constants.js +0 -79
  23. package/dist/constants/permission.constants.js.map +0 -1
  24. package/dist/entities/branch.entity.d.ts +0 -9
  25. package/dist/entities/branch.entity.d.ts.map +0 -1
  26. package/dist/entities/branch.entity.js +0 -44
  27. package/dist/entities/branch.entity.js.map +0 -1
  28. package/dist/entities/index.d.ts +0 -7
  29. package/dist/entities/index.d.ts.map +0 -1
  30. package/dist/entities/index.js +0 -23
  31. package/dist/entities/index.js.map +0 -1
  32. package/dist/entities/login.entity.d.ts +0 -12
  33. package/dist/entities/login.entity.d.ts.map +0 -1
  34. package/dist/entities/login.entity.js +0 -51
  35. package/dist/entities/login.entity.js.map +0 -1
  36. package/dist/entities/membership.entity.d.ts +0 -15
  37. package/dist/entities/membership.entity.d.ts.map +0 -1
  38. package/dist/entities/membership.entity.js +0 -59
  39. package/dist/entities/membership.entity.js.map +0 -1
  40. package/dist/entities/organization.entity.d.ts +0 -11
  41. package/dist/entities/organization.entity.d.ts.map +0 -1
  42. package/dist/entities/organization.entity.js +0 -49
  43. package/dist/entities/organization.entity.js.map +0 -1
  44. package/dist/entities/role.entity.d.ts +0 -16
  45. package/dist/entities/role.entity.d.ts.map +0 -1
  46. package/dist/entities/role.entity.js +0 -43
  47. package/dist/entities/role.entity.js.map +0 -1
  48. package/dist/entities/user.entity.d.ts +0 -18
  49. package/dist/entities/user.entity.d.ts.map +0 -1
  50. package/dist/entities/user.entity.js +0 -70
  51. package/dist/entities/user.entity.js.map +0 -1
@@ -5,6 +5,7 @@ export * from "./menu.dto";
5
5
  export * from "./organization.dto";
6
6
  export * from "./roles.dto";
7
7
  export * from "./user.dto";
8
+ export * from "./product.dto";
8
9
  export * from "./date-range.input";
9
10
  export * from "./translation.input";
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAG3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAG9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
package/dist/dto/index.js CHANGED
@@ -22,6 +22,7 @@ __exportStar(require("./menu.dto"), exports);
22
22
  __exportStar(require("./organization.dto"), exports);
23
23
  __exportStar(require("./roles.dto"), exports);
24
24
  __exportStar(require("./user.dto"), exports);
25
+ __exportStar(require("./product.dto"), exports);
25
26
  // share
26
27
  __exportStar(require("./date-range.input"), exports);
27
28
  __exportStar(require("./translation.input"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS;AACT,6CAA2B;AAC3B,+CAA6B;AAC7B,mDAAiC;AACjC,6CAA2B;AAC3B,qDAAmC;AACnC,8CAA4B;AAC5B,6CAA2B;AAE3B,QAAQ;AACR,qDAAmC;AACnC,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS;AACT,6CAA2B;AAC3B,+CAA6B;AAC7B,mDAAiC;AACjC,6CAA2B;AAC3B,qDAAmC;AACnC,8CAA4B;AAC5B,6CAA2B;AAC3B,gDAA8B;AAE9B,QAAQ;AACR,qDAAmC;AACnC,sDAAoC"}
@@ -17,7 +17,7 @@ export declare class CreateMenuInput {
17
17
  export declare class MenuFilterInput {
18
18
  createdAt?: DateRangeInput;
19
19
  }
20
- declare const UpdateMenuInput_base: Type<Partial<T>>;
20
+ declare const UpdateMenuInput_base: import("@nestjs/common").Type<Partial<CreateMenuInput>>;
21
21
  export declare class UpdateMenuInput extends UpdateMenuInput_base {
22
22
  _id: string;
23
23
  }
@@ -0,0 +1,25 @@
1
+ import { TranslationInput } from "./translation.input";
2
+ import { UserType } from "../enum";
3
+ import { DateRangeInput } from "./date-range.input";
4
+ export declare class CreateProductInput {
5
+ key: string;
6
+ label: TranslationInput;
7
+ icon?: string;
8
+ rootPath?: string;
9
+ path?: TranslationInput;
10
+ userType?: UserType;
11
+ order?: number;
12
+ visible?: boolean;
13
+ permissions?: string[];
14
+ parent?: string | null;
15
+ isActive?: boolean;
16
+ }
17
+ export declare class ProductFilterInput {
18
+ createdAt?: DateRangeInput;
19
+ }
20
+ declare const UpdateProductInput_base: import("@nestjs/common").Type<Partial<CreateProductInput>>;
21
+ export declare class UpdateProductInput extends UpdateProductInput_base {
22
+ _id: string;
23
+ }
24
+ export {};
25
+ //# sourceMappingURL=product.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.dto.d.ts","sourceRoot":"","sources":["../../src/dto/product.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,kBAAkB;IAE/B,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,gBAAgB,CAAC;IAGxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAGxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAGvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qBACa,kBAAkB;IAE/B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC1B;;AAED,qBACa,kBAAmB,SAAQ,uBAA+B;IAEvE,GAAG,EAAE,MAAM,CAAC;CACX"}
@@ -0,0 +1,87 @@
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.UpdateProductInput = exports.ProductFilterInput = exports.CreateProductInput = void 0;
13
+ const graphql_1 = require("@nestjs/graphql");
14
+ const translation_input_1 = require("./translation.input");
15
+ const enum_1 = require("../enum");
16
+ const date_range_input_1 = require("./date-range.input");
17
+ let CreateProductInput = class CreateProductInput {
18
+ };
19
+ exports.CreateProductInput = CreateProductInput;
20
+ __decorate([
21
+ (0, graphql_1.Field)(),
22
+ __metadata("design:type", String)
23
+ ], CreateProductInput.prototype, "key", void 0);
24
+ __decorate([
25
+ (0, graphql_1.Field)(() => translation_input_1.TranslationInput),
26
+ __metadata("design:type", translation_input_1.TranslationInput)
27
+ ], CreateProductInput.prototype, "label", void 0);
28
+ __decorate([
29
+ (0, graphql_1.Field)({ nullable: true }),
30
+ __metadata("design:type", String)
31
+ ], CreateProductInput.prototype, "icon", void 0);
32
+ __decorate([
33
+ (0, graphql_1.Field)({ nullable: true }),
34
+ __metadata("design:type", String)
35
+ ], CreateProductInput.prototype, "rootPath", void 0);
36
+ __decorate([
37
+ (0, graphql_1.Field)(() => translation_input_1.TranslationInput, { nullable: true }),
38
+ __metadata("design:type", translation_input_1.TranslationInput)
39
+ ], CreateProductInput.prototype, "path", void 0);
40
+ __decorate([
41
+ (0, graphql_1.Field)(() => enum_1.UserType, { nullable: true, defaultValue: enum_1.UserType.ADMIN }),
42
+ __metadata("design:type", String)
43
+ ], CreateProductInput.prototype, "userType", void 0);
44
+ __decorate([
45
+ (0, graphql_1.Field)({ nullable: true, defaultValue: 0 }),
46
+ __metadata("design:type", Number)
47
+ ], CreateProductInput.prototype, "order", void 0);
48
+ __decorate([
49
+ (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
50
+ __metadata("design:type", Boolean)
51
+ ], CreateProductInput.prototype, "visible", void 0);
52
+ __decorate([
53
+ (0, graphql_1.Field)(() => [String], { nullable: true, defaultValue: [] }),
54
+ __metadata("design:type", Array)
55
+ ], CreateProductInput.prototype, "permissions", void 0);
56
+ __decorate([
57
+ (0, graphql_1.Field)(() => String, { nullable: true }),
58
+ __metadata("design:type", Object)
59
+ ], CreateProductInput.prototype, "parent", void 0);
60
+ __decorate([
61
+ (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
62
+ __metadata("design:type", Boolean)
63
+ ], CreateProductInput.prototype, "isActive", void 0);
64
+ exports.CreateProductInput = CreateProductInput = __decorate([
65
+ (0, graphql_1.InputType)()
66
+ ], CreateProductInput);
67
+ let ProductFilterInput = class ProductFilterInput {
68
+ };
69
+ exports.ProductFilterInput = ProductFilterInput;
70
+ __decorate([
71
+ (0, graphql_1.Field)(() => date_range_input_1.DateRangeInput, { nullable: true }),
72
+ __metadata("design:type", date_range_input_1.DateRangeInput)
73
+ ], ProductFilterInput.prototype, "createdAt", void 0);
74
+ exports.ProductFilterInput = ProductFilterInput = __decorate([
75
+ (0, graphql_1.InputType)()
76
+ ], ProductFilterInput);
77
+ let UpdateProductInput = class UpdateProductInput extends (0, graphql_1.PartialType)(CreateProductInput) {
78
+ };
79
+ exports.UpdateProductInput = UpdateProductInput;
80
+ __decorate([
81
+ (0, graphql_1.Field)(() => String),
82
+ __metadata("design:type", String)
83
+ ], UpdateProductInput.prototype, "_id", void 0);
84
+ exports.UpdateProductInput = UpdateProductInput = __decorate([
85
+ (0, graphql_1.InputType)()
86
+ ], UpdateProductInput);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,EAAE,CAAC;;kDACjB;AAGvB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;oDAC3B;6BAhCN,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAiC9B;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAG9B,CAAA;AAHY,gDAAkB;AAE/B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;qDAAC;6BAFd,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAG9B;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,IAAA,qBAAW,EAAC,kBAAkB,CAAC;CAGtE,CAAA;AAHY,gDAAkB;AAE/B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACR;6BAFC,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAG9B"}
@@ -6,7 +6,7 @@ export declare class CreateRoleInput {
6
6
  export declare class RoleFilterInput {
7
7
  createdAt?: DateRangeInput;
8
8
  }
9
- declare const UpdateRoleInput_base: Type<Partial<T>>;
9
+ declare const UpdateRoleInput_base: import("@nestjs/common").Type<Partial<CreateRoleInput>>;
10
10
  export declare class UpdateRoleInput extends UpdateRoleInput_base {
11
11
  _id: string;
12
12
  }
@@ -0,0 +1,25 @@
1
+ import { TranslationInput } from "./translation.input";
2
+ import { UserType } from "../enum";
3
+ import { DateRangeInput } from "./date-range.input";
4
+ export declare class CreateSoitInput {
5
+ key: string;
6
+ label: TranslationInput;
7
+ icon?: string;
8
+ rootPath?: string;
9
+ path?: TranslationInput;
10
+ userType?: UserType;
11
+ order?: number;
12
+ visible?: boolean;
13
+ permissions?: string[];
14
+ parent?: string | null;
15
+ isActive?: boolean;
16
+ }
17
+ export declare class SoitFilterInput {
18
+ createdAt?: DateRangeInput;
19
+ }
20
+ declare const UpdateSoitInput_base: import("@nestjs/common").Type<Partial<CreateSoitInput>>;
21
+ export declare class UpdateSoitInput extends UpdateSoitInput_base {
22
+ _id: string;
23
+ }
24
+ export {};
25
+ //# sourceMappingURL=soit.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"soit.dto.d.ts","sourceRoot":"","sources":["../../src/dto/soit.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,eAAe;IAE5B,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,gBAAgB,CAAC;IAGxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAGxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAGvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qBACa,eAAe;IAE5B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC1B;;AAED,qBACa,eAAgB,SAAQ,oBAA4B;IAEjE,GAAG,EAAE,MAAM,CAAC;CACX"}
@@ -0,0 +1,87 @@
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.UpdateSoitInput = exports.SoitFilterInput = exports.CreateSoitInput = void 0;
13
+ const graphql_1 = require("@nestjs/graphql");
14
+ const translation_input_1 = require("./translation.input");
15
+ const enum_1 = require("../enum");
16
+ const date_range_input_1 = require("./date-range.input");
17
+ let CreateSoitInput = class CreateSoitInput {
18
+ };
19
+ exports.CreateSoitInput = CreateSoitInput;
20
+ __decorate([
21
+ (0, graphql_1.Field)(),
22
+ __metadata("design:type", String)
23
+ ], CreateSoitInput.prototype, "key", void 0);
24
+ __decorate([
25
+ (0, graphql_1.Field)(() => translation_input_1.TranslationInput),
26
+ __metadata("design:type", translation_input_1.TranslationInput)
27
+ ], CreateSoitInput.prototype, "label", void 0);
28
+ __decorate([
29
+ (0, graphql_1.Field)({ nullable: true }),
30
+ __metadata("design:type", String)
31
+ ], CreateSoitInput.prototype, "icon", void 0);
32
+ __decorate([
33
+ (0, graphql_1.Field)({ nullable: true }),
34
+ __metadata("design:type", String)
35
+ ], CreateSoitInput.prototype, "rootPath", void 0);
36
+ __decorate([
37
+ (0, graphql_1.Field)(() => translation_input_1.TranslationInput, { nullable: true }),
38
+ __metadata("design:type", translation_input_1.TranslationInput)
39
+ ], CreateSoitInput.prototype, "path", void 0);
40
+ __decorate([
41
+ (0, graphql_1.Field)(() => enum_1.UserType, { nullable: true, defaultValue: enum_1.UserType.ADMIN }),
42
+ __metadata("design:type", String)
43
+ ], CreateSoitInput.prototype, "userType", void 0);
44
+ __decorate([
45
+ (0, graphql_1.Field)({ nullable: true, defaultValue: 0 }),
46
+ __metadata("design:type", Number)
47
+ ], CreateSoitInput.prototype, "order", void 0);
48
+ __decorate([
49
+ (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
50
+ __metadata("design:type", Boolean)
51
+ ], CreateSoitInput.prototype, "visible", void 0);
52
+ __decorate([
53
+ (0, graphql_1.Field)(() => [String], { nullable: true, defaultValue: [] }),
54
+ __metadata("design:type", Array)
55
+ ], CreateSoitInput.prototype, "permissions", void 0);
56
+ __decorate([
57
+ (0, graphql_1.Field)(() => String, { nullable: true }),
58
+ __metadata("design:type", Object)
59
+ ], CreateSoitInput.prototype, "parent", void 0);
60
+ __decorate([
61
+ (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
62
+ __metadata("design:type", Boolean)
63
+ ], CreateSoitInput.prototype, "isActive", void 0);
64
+ exports.CreateSoitInput = CreateSoitInput = __decorate([
65
+ (0, graphql_1.InputType)()
66
+ ], CreateSoitInput);
67
+ let SoitFilterInput = class SoitFilterInput {
68
+ };
69
+ exports.SoitFilterInput = SoitFilterInput;
70
+ __decorate([
71
+ (0, graphql_1.Field)(() => date_range_input_1.DateRangeInput, { nullable: true }),
72
+ __metadata("design:type", date_range_input_1.DateRangeInput)
73
+ ], SoitFilterInput.prototype, "createdAt", void 0);
74
+ exports.SoitFilterInput = SoitFilterInput = __decorate([
75
+ (0, graphql_1.InputType)()
76
+ ], SoitFilterInput);
77
+ let UpdateSoitInput = class UpdateSoitInput extends (0, graphql_1.PartialType)(CreateSoitInput) {
78
+ };
79
+ exports.UpdateSoitInput = UpdateSoitInput;
80
+ __decorate([
81
+ (0, graphql_1.Field)(() => String),
82
+ __metadata("design:type", String)
83
+ ], UpdateSoitInput.prototype, "_id", void 0);
84
+ exports.UpdateSoitInput = UpdateSoitInput = __decorate([
85
+ (0, graphql_1.InputType)()
86
+ ], UpdateSoitInput);
87
+ //# sourceMappingURL=soit.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"soit.dto.js","sourceRoot":"","sources":["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,IAAI,EAAE,CAAC;;iDAC3B;0BAhCN,eAAe;IAD3B,IAAA,mBAAS,GAAE;GACC,eAAe,CAiC3B;AAGM,IAAM,eAAe,GAArB,MAAM,eAAe;CAG3B,CAAA;AAHY,0CAAe;AAE5B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;kDAAC;0BAFd,eAAe;IAD3B,IAAA,mBAAS,GAAE;GACC,eAAe,CAG3B;AAGM,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,IAAA,qBAAW,EAAC,eAAe,CAAC;CAGhE,CAAA;AAHY,0CAAe;AAE5B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;4CACR;0BAFC,eAAe;IAD3B,IAAA,mBAAS,GAAE;GACC,eAAe,CAG3B"}
@@ -0,0 +1,25 @@
1
+ import { TranslationInput } from "./translation.input";
2
+ import { UserType } from "../enum";
3
+ import { DateRangeInput } from "./date-range.input";
4
+ export declare class CreateTtttInput {
5
+ key: string;
6
+ label: TranslationInput;
7
+ icon?: string;
8
+ rootPath?: string;
9
+ path?: TranslationInput;
10
+ userType?: UserType;
11
+ order?: number;
12
+ visible?: boolean;
13
+ permissions?: string[];
14
+ parent?: string | null;
15
+ isActive?: boolean;
16
+ }
17
+ export declare class TtttFilterInput {
18
+ createdAt?: DateRangeInput;
19
+ }
20
+ declare const UpdateTtttInput_base: import("@nestjs/common").Type<Partial<CreateTtttInput>>;
21
+ export declare class UpdateTtttInput extends UpdateTtttInput_base {
22
+ _id: string;
23
+ }
24
+ export {};
25
+ //# sourceMappingURL=tttt.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tttt.dto.d.ts","sourceRoot":"","sources":["../../src/dto/tttt.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,eAAe;IAE1B,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,gBAAgB,CAAC;IAGxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAGxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAGvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,qBACa,eAAe;IAE1B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;;AAED,qBACa,eAAgB,SAAQ,oBAA4B;IAE/D,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -0,0 +1,87 @@
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.UpdateTtttInput = exports.TtttFilterInput = exports.CreateTtttInput = void 0;
13
+ const graphql_1 = require("@nestjs/graphql");
14
+ const translation_input_1 = require("./translation.input");
15
+ const enum_1 = require("../enum");
16
+ const date_range_input_1 = require("./date-range.input");
17
+ let CreateTtttInput = class CreateTtttInput {
18
+ };
19
+ exports.CreateTtttInput = CreateTtttInput;
20
+ __decorate([
21
+ (0, graphql_1.Field)(),
22
+ __metadata("design:type", String)
23
+ ], CreateTtttInput.prototype, "key", void 0);
24
+ __decorate([
25
+ (0, graphql_1.Field)(() => translation_input_1.TranslationInput),
26
+ __metadata("design:type", translation_input_1.TranslationInput)
27
+ ], CreateTtttInput.prototype, "label", void 0);
28
+ __decorate([
29
+ (0, graphql_1.Field)({ nullable: true }),
30
+ __metadata("design:type", String)
31
+ ], CreateTtttInput.prototype, "icon", void 0);
32
+ __decorate([
33
+ (0, graphql_1.Field)({ nullable: true }),
34
+ __metadata("design:type", String)
35
+ ], CreateTtttInput.prototype, "rootPath", void 0);
36
+ __decorate([
37
+ (0, graphql_1.Field)(() => translation_input_1.TranslationInput, { nullable: true }),
38
+ __metadata("design:type", translation_input_1.TranslationInput)
39
+ ], CreateTtttInput.prototype, "path", void 0);
40
+ __decorate([
41
+ (0, graphql_1.Field)(() => enum_1.UserType, { nullable: true, defaultValue: enum_1.UserType.ADMIN }),
42
+ __metadata("design:type", String)
43
+ ], CreateTtttInput.prototype, "userType", void 0);
44
+ __decorate([
45
+ (0, graphql_1.Field)({ nullable: true, defaultValue: 0 }),
46
+ __metadata("design:type", Number)
47
+ ], CreateTtttInput.prototype, "order", void 0);
48
+ __decorate([
49
+ (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
50
+ __metadata("design:type", Boolean)
51
+ ], CreateTtttInput.prototype, "visible", void 0);
52
+ __decorate([
53
+ (0, graphql_1.Field)(() => [String], { nullable: true, defaultValue: [] }),
54
+ __metadata("design:type", Array)
55
+ ], CreateTtttInput.prototype, "permissions", void 0);
56
+ __decorate([
57
+ (0, graphql_1.Field)(() => String, { nullable: true }),
58
+ __metadata("design:type", Object)
59
+ ], CreateTtttInput.prototype, "parent", void 0);
60
+ __decorate([
61
+ (0, graphql_1.Field)({ nullable: true, defaultValue: true }),
62
+ __metadata("design:type", Boolean)
63
+ ], CreateTtttInput.prototype, "isActive", void 0);
64
+ exports.CreateTtttInput = CreateTtttInput = __decorate([
65
+ (0, graphql_1.InputType)()
66
+ ], CreateTtttInput);
67
+ let TtttFilterInput = class TtttFilterInput {
68
+ };
69
+ exports.TtttFilterInput = TtttFilterInput;
70
+ __decorate([
71
+ (0, graphql_1.Field)(() => date_range_input_1.DateRangeInput, { nullable: true }),
72
+ __metadata("design:type", date_range_input_1.DateRangeInput)
73
+ ], TtttFilterInput.prototype, "createdAt", void 0);
74
+ exports.TtttFilterInput = TtttFilterInput = __decorate([
75
+ (0, graphql_1.InputType)()
76
+ ], TtttFilterInput);
77
+ let UpdateTtttInput = class UpdateTtttInput extends (0, graphql_1.PartialType)(CreateTtttInput) {
78
+ };
79
+ exports.UpdateTtttInput = UpdateTtttInput;
80
+ __decorate([
81
+ (0, graphql_1.Field)(() => String),
82
+ __metadata("design:type", String)
83
+ ], UpdateTtttInput.prototype, "_id", void 0);
84
+ exports.UpdateTtttInput = UpdateTtttInput = __decorate([
85
+ (0, graphql_1.InputType)()
86
+ ], UpdateTtttInput);
87
+ //# sourceMappingURL=tttt.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tttt.dto.js","sourceRoot":"","sources":["../../src/dto/tttt.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAChE,2DAAuD;AACvD,kCAAmC;AACnC,yDAAoD;AAG7C,IAAM,eAAe,GAArB,MAAM,eAAe;CAiC3B,CAAA;AAjCY,0CAAe;AAE1B;IADC,IAAA,eAAK,GAAE;;4CACI;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;8BACvB,oCAAgB;8CAAC;AAGxB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6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AgB,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synunu-libs",
3
- "version": "1.0.11",
3
+ "version": "1.0.14",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Shared DTOs, constants, and utilities for Synunu microservices",
@@ -22,14 +22,7 @@
22
22
  "reflect-metadata": "^0.2.2"
23
23
  },
24
24
  "peerDependencies": {
25
- "@apollo/server": "^4.12.2",
26
- "@nestjs/apollo": "^13.1.0",
27
- "@nestjs/common": "^11.1.6",
28
- "@nestjs/config": "^4.0.2",
29
- "@nestjs/core": "^11.1.6",
30
25
  "@nestjs/graphql": "^13.1.0",
31
- "@nestjs/microservices": "^11.1.6",
32
- "apollo-server-express": "^3.13.0",
33
- "graphql": "^16.11.0"
26
+ "typescript": "^5.7.3"
34
27
  }
35
28
  }
@@ -1,168 +0,0 @@
1
- export declare const PERMISSIONS: {
2
- readonly ADMIN: {
3
- readonly ALL: "admin:*";
4
- };
5
- readonly SALES: {
6
- readonly ORDERS: {
7
- readonly READ: `${string}:read`;
8
- readonly CREATE: `${string}:create`;
9
- readonly UPDATE: `${string}:update`;
10
- readonly DELETE: `${string}:delete`;
11
- };
12
- readonly DRAFT_ORDERS: {
13
- readonly READ: `${string}:read`;
14
- readonly CREATE: `${string}:create`;
15
- readonly UPDATE: `${string}:update`;
16
- readonly DELETE: `${string}:delete`;
17
- };
18
- readonly RETURNS: {
19
- readonly READ: `${string}:read`;
20
- readonly CREATE: `${string}:create`;
21
- readonly UPDATE: `${string}:update`;
22
- readonly DELETE: `${string}:delete`;
23
- };
24
- readonly FULFILLMENT_HANDOVERS: {
25
- readonly READ: `${string}:read`;
26
- readonly CREATE: `${string}:create`;
27
- readonly UPDATE: `${string}:update`;
28
- readonly DELETE: `${string}:delete`;
29
- };
30
- readonly STOCK_TRANSFERS: {
31
- readonly READ: `${string}:read`;
32
- readonly CREATE: `${string}:create`;
33
- readonly UPDATE: `${string}:update`;
34
- readonly DELETE: `${string}:delete`;
35
- };
36
- readonly PURCHASE_ORDERS: "purchase_orders";
37
- readonly SUPPLIER_RETURNS: "supplier_returns";
38
- readonly SHIPMENTS: "shipments";
39
- };
40
- readonly CATALOG: {
41
- readonly PRODUCTS: {
42
- readonly READ: `${string}:read`;
43
- readonly CREATE: `${string}:create`;
44
- readonly UPDATE: `${string}:update`;
45
- readonly DELETE: `${string}:delete`;
46
- };
47
- readonly INVENTORIES: {
48
- readonly READ: `${string}:read`;
49
- readonly CREATE: `${string}:create`;
50
- readonly UPDATE: `${string}:update`;
51
- readonly DELETE: `${string}:delete`;
52
- };
53
- readonly MENUS: {
54
- readonly READ: `${string}:read`;
55
- readonly CREATE: `${string}:create`;
56
- readonly UPDATE: `${string}:update`;
57
- readonly DELETE: `${string}:delete`;
58
- };
59
- readonly COLLECTIONS: "collections";
60
- readonly SUPPLIERS: "suppliers";
61
- readonly OPTIONS: {
62
- readonly READ: `${string}:read`;
63
- readonly CREATE: `${string}:create`;
64
- readonly UPDATE: `${string}:update`;
65
- readonly DELETE: `${string}:delete`;
66
- };
67
- readonly VARIANTS: {
68
- readonly READ: `${string}:read`;
69
- readonly CREATE: `${string}:create`;
70
- readonly UPDATE: `${string}:update`;
71
- readonly DELETE: `${string}:delete`;
72
- };
73
- readonly PRODUCTIMAGES: {
74
- readonly READ: `${string}:read`;
75
- readonly CREATE: `${string}:create`;
76
- readonly UPDATE: `${string}:update`;
77
- readonly DELETE: `${string}:delete`;
78
- };
79
- };
80
- readonly CUSTOMERS: {
81
- readonly CUSTOMERS: {
82
- readonly READ: `${string}:read`;
83
- readonly CREATE: `${string}:create`;
84
- readonly UPDATE: `${string}:update`;
85
- readonly DELETE: `${string}:delete`;
86
- };
87
- readonly VOUCHERS: {
88
- readonly READ: "vouchers:read";
89
- readonly WRITE: "vouchers:write";
90
- };
91
- readonly REASONS: {
92
- readonly READ: "reasons:read";
93
- readonly WRITE: "reasons:write";
94
- };
95
- readonly CARRIERS: {
96
- readonly READ: `${string}:read`;
97
- readonly CREATE: `${string}:create`;
98
- readonly UPDATE: `${string}:update`;
99
- readonly DELETE: `${string}:delete`;
100
- };
101
- };
102
- readonly REPORTING: {
103
- readonly DASHBOARD: "dashboard";
104
- readonly REPORTS: {
105
- readonly SALE: "reports:sale";
106
- readonly CUSTOMER: "reports:customer";
107
- readonly INVENTORY: "reports:inventory";
108
- readonly VISIT: "reports:visit";
109
- };
110
- };
111
- readonly SETTINGS: {
112
- readonly THEMES: "themes";
113
- readonly PAGES: "pages";
114
- readonly LINKS: "links";
115
- readonly DOMAINS: "domains";
116
- readonly WEBSITE: "website_settings";
117
- readonly STORE: "store_settings";
118
- readonly LOCATION: "location_settings";
119
- readonly TAX: "tax_settings";
120
- readonly SHIPPING_METHOD: "shipping_method_settings";
121
- readonly SHIPPING: "shipping_settings";
122
- readonly PAYMENT: "payment_settings";
123
- readonly PLANS: "plans_settings";
124
- readonly CHECKOUT: "checkout_settings";
125
- readonly USER_PERMISSIONS: "user_permissions";
126
- readonly NOTIFICATIONS: "notifications";
127
- readonly FILES: "files";
128
- readonly APPLICATIONS: {
129
- readonly READ: `${string}:read`;
130
- readonly CREATE: `${string}:create`;
131
- readonly UPDATE: `${string}:update`;
132
- readonly DELETE: `${string}:delete`;
133
- };
134
- };
135
- readonly SYSTEM: {
136
- readonly USERS: {
137
- readonly READ: `${string}:read`;
138
- readonly CREATE: `${string}:create`;
139
- readonly UPDATE: `${string}:update`;
140
- readonly DELETE: `${string}:delete`;
141
- };
142
- readonly ROLES: {
143
- readonly READ: `${string}:read`;
144
- readonly CREATE: `${string}:create`;
145
- readonly UPDATE: `${string}:update`;
146
- readonly DELETE: `${string}:delete`;
147
- };
148
- readonly MEMBERSHIPS: {
149
- readonly READ: `${string}:read`;
150
- readonly CREATE: `${string}:create`;
151
- readonly UPDATE: `${string}:update`;
152
- readonly DELETE: `${string}:delete`;
153
- };
154
- readonly ORGANIZATIONS: {
155
- readonly READ: `${string}:read`;
156
- readonly CREATE: `${string}:create`;
157
- readonly UPDATE: `${string}:update`;
158
- readonly DELETE: `${string}:delete`;
159
- };
160
- readonly BRANCHES: {
161
- readonly READ: `${string}:read`;
162
- readonly CREATE: `${string}:create`;
163
- readonly UPDATE: `${string}:update`;
164
- readonly DELETE: `${string}:delete`;
165
- };
166
- };
167
- };
168
- //# sourceMappingURL=permission.constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"permission.constants.d.ts","sourceRoot":"","sources":["../../src/constants/permission.constants.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEd,CAAC"}
@@ -1,79 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PERMISSIONS = void 0;
4
- function crudPermissions(module, extra) {
5
- const base = {
6
- READ: `${module}:read`,
7
- CREATE: `${module}:create`,
8
- UPDATE: `${module}:update`,
9
- DELETE: `${module}:delete`,
10
- };
11
- return extra ? { ...base, ...extra } : base;
12
- }
13
- exports.PERMISSIONS = {
14
- ADMIN: {
15
- ALL: "admin:*",
16
- },
17
- SALES: {
18
- ORDERS: crudPermissions("orders"),
19
- DRAFT_ORDERS: crudPermissions("draft_orders"),
20
- RETURNS: crudPermissions("returns"),
21
- FULFILLMENT_HANDOVERS: crudPermissions("fulfillment_handovers"),
22
- STOCK_TRANSFERS: crudPermissions("stock_transfers"),
23
- PURCHASE_ORDERS: "purchase_orders",
24
- SUPPLIER_RETURNS: "supplier_returns",
25
- SHIPMENTS: "shipments",
26
- },
27
- CATALOG: {
28
- PRODUCTS: crudPermissions("products"),
29
- INVENTORIES: crudPermissions("inventories"),
30
- MENUS: crudPermissions("inventories"),
31
- COLLECTIONS: "collections",
32
- SUPPLIERS: "suppliers",
33
- OPTIONS: crudPermissions("options"),
34
- VARIANTS: crudPermissions("variants"),
35
- PRODUCTIMAGES: crudPermissions("productimages"),
36
- },
37
- CUSTOMERS: {
38
- CUSTOMERS: crudPermissions("customers"),
39
- VOUCHERS: { READ: "vouchers:read", WRITE: "vouchers:write" },
40
- REASONS: { READ: "reasons:read", WRITE: "reasons:write" },
41
- CARRIERS: crudPermissions("carriers"),
42
- },
43
- REPORTING: {
44
- DASHBOARD: "dashboard",
45
- REPORTS: {
46
- SALE: "reports:sale",
47
- CUSTOMER: "reports:customer",
48
- INVENTORY: "reports:inventory",
49
- VISIT: "reports:visit",
50
- },
51
- },
52
- SETTINGS: {
53
- THEMES: "themes",
54
- PAGES: "pages",
55
- LINKS: "links",
56
- DOMAINS: "domains",
57
- WEBSITE: "website_settings",
58
- STORE: "store_settings",
59
- LOCATION: "location_settings",
60
- TAX: "tax_settings",
61
- SHIPPING_METHOD: "shipping_method_settings",
62
- SHIPPING: "shipping_settings",
63
- PAYMENT: "payment_settings",
64
- PLANS: "plans_settings",
65
- CHECKOUT: "checkout_settings",
66
- USER_PERMISSIONS: "user_permissions",
67
- NOTIFICATIONS: "notifications",
68
- FILES: "files",
69
- APPLICATIONS: crudPermissions("applications"),
70
- },
71
- SYSTEM: {
72
- USERS: crudPermissions("users"),
73
- ROLES: crudPermissions("roles"),
74
- MEMBERSHIPS: crudPermissions("memberships"),
75
- ORGANIZATIONS: crudPermissions("organizations"),
76
- BRANCHES: crudPermissions("branches"),
77
- },
78
- };
79
- //# sourceMappingURL=permission.constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"permission.constants.js","s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AE,gBAAgB,EAAE;QAC5D,OAAO,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,eAAe,EAAE;QACzD,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;KACtC;IAED,SAAS,EAAE;QACT,SAAS,EAAE,WAAW;QACtB,OAAO,EAAE;YACP,IAAI,EAAE,cAAc;YACpB,QAAQ,EAAE,kBAAkB;YAC5B,SAAS,EAAE,mBAAmB;YAC9B,KAAK,EAAE,eAAe;SACvB;KACF;IAED,QAAQ,EAAE;QACR,MAAM,EAAE,QAAQ;QAChB,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,kBAAkB;QAC3B,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE,mBAAmB;QAC7B,GAAG,EAAE,cAAc;QACnB,eAAe,EAAE,0BAA0B;QAC3C,QAAQ,EAAE,mBAAmB;QAC7B,OAAO,EAAE,kBAAkB;QAC3B,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE,mBAAmB;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,aAAa,EAAE,eAAe;QAC9B,KAAK,EAAE,OAAO;QACd,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC;KAC9C;IACD,MAAM,EAAE;QACN,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;QAC/B,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;QAC/B,WAAW,EAAE,eAAe,CAAC,aAAa,CAAC;QAC3C,aAAa,EAAE,eAAe,CAAC,eAAe,CAAC;QAC/C,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;KACtC;CACO,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare class BranchEntity {
2
- _id: string;
3
- name: string;
4
- code: string;
5
- organizationId: string;
6
- description?: string;
7
- createdBy?: string;
8
- }
9
- //# sourceMappingURL=branch.entity.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,44 +0,0 @@
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.BranchEntity = void 0;
13
- const graphql_1 = require("@nestjs/graphql");
14
- let BranchEntity = class BranchEntity {
15
- };
16
- exports.BranchEntity = BranchEntity;
17
- __decorate([
18
- (0, graphql_1.Field)(() => String),
19
- __metadata("design:type", String)
20
- ], BranchEntity.prototype, "_id", void 0);
21
- __decorate([
22
- (0, graphql_1.Field)(),
23
- __metadata("design:type", String)
24
- ], BranchEntity.prototype, "name", void 0);
25
- __decorate([
26
- (0, graphql_1.Field)(),
27
- __metadata("design:type", String)
28
- ], BranchEntity.prototype, "code", void 0);
29
- __decorate([
30
- (0, graphql_1.Field)(),
31
- __metadata("design:type", String)
32
- ], BranchEntity.prototype, "organizationId", void 0);
33
- __decorate([
34
- (0, graphql_1.Field)({ nullable: true }),
35
- __metadata("design:type", String)
36
- ], BranchEntity.prototype, "description", void 0);
37
- __decorate([
38
- (0, graphql_1.Field)({ nullable: true }),
39
- __metadata("design:type", String)
40
- ], BranchEntity.prototype, "createdBy", void 0);
41
- exports.BranchEntity = BranchEntity = __decorate([
42
- (0, graphql_1.ObjectType)()
43
- ], BranchEntity);
44
- //# sourceMappingURL=branch.entity.js.map
@@ -1 +0,0 @@
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,7 +0,0 @@
1
- export * from "./user.entity";
2
- export * from "./organization.entity";
3
- export * from "./branch.entity";
4
- export * from "./membership.entity";
5
- export * from "./role.entity";
6
- export * from "./login.entity";
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./user.entity"), exports);
18
- __exportStar(require("./organization.entity"), exports);
19
- __exportStar(require("./branch.entity"), exports);
20
- __exportStar(require("./membership.entity"), exports);
21
- __exportStar(require("./role.entity"), exports);
22
- __exportStar(require("./login.entity"), exports);
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,wDAAsC;AACtC,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,iDAA+B"}
@@ -1,12 +0,0 @@
1
- import { UserEntity } from "./user.entity";
2
- export declare class LoginEntity {
3
- accessToken: string;
4
- refreshToken?: string;
5
- user: UserEntity;
6
- isMultiBranch: boolean;
7
- }
8
- export declare class RefreshTokenEntity {
9
- accessToken: string;
10
- refreshToken?: string;
11
- }
12
- //# sourceMappingURL=login.entity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"login.entity.d.ts","sourceRoot":"","sources":["../../src/entities/login.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBACa,WAAW;IAEtB,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,IAAI,EAAE,UAAU,CAAC;IAGjB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,qBACa,kBAAkB;IAE7B,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -1,51 +0,0 @@
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.RefreshTokenEntity = exports.LoginEntity = void 0;
13
- const graphql_1 = require("@nestjs/graphql");
14
- const user_entity_1 = require("./user.entity");
15
- let LoginEntity = class LoginEntity {
16
- };
17
- exports.LoginEntity = LoginEntity;
18
- __decorate([
19
- (0, graphql_1.Field)(),
20
- __metadata("design:type", String)
21
- ], LoginEntity.prototype, "accessToken", void 0);
22
- __decorate([
23
- (0, graphql_1.Field)({ nullable: true }),
24
- __metadata("design:type", String)
25
- ], LoginEntity.prototype, "refreshToken", void 0);
26
- __decorate([
27
- (0, graphql_1.Field)(() => user_entity_1.UserEntity),
28
- __metadata("design:type", user_entity_1.UserEntity)
29
- ], LoginEntity.prototype, "user", void 0);
30
- __decorate([
31
- (0, graphql_1.Field)(() => Boolean),
32
- __metadata("design:type", Boolean)
33
- ], LoginEntity.prototype, "isMultiBranch", void 0);
34
- exports.LoginEntity = LoginEntity = __decorate([
35
- (0, graphql_1.ObjectType)()
36
- ], LoginEntity);
37
- let RefreshTokenEntity = class RefreshTokenEntity {
38
- };
39
- exports.RefreshTokenEntity = RefreshTokenEntity;
40
- __decorate([
41
- (0, graphql_1.Field)(),
42
- __metadata("design:type", String)
43
- ], RefreshTokenEntity.prototype, "accessToken", void 0);
44
- __decorate([
45
- (0, graphql_1.Field)({ nullable: true }),
46
- __metadata("design:type", String)
47
- ], RefreshTokenEntity.prototype, "refreshToken", void 0);
48
- exports.RefreshTokenEntity = RefreshTokenEntity = __decorate([
49
- (0, graphql_1.ObjectType)()
50
- ], RefreshTokenEntity);
51
- //# sourceMappingURL=login.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"login.entity.js","sourceRoot":"","sources":["../../src/entities/login.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,+CAA2C;AAGpC,IAAM,WAAW,GAAjB,MAAM,WAAW;CAYvB,CAAA;AAZY,kCAAW;AAEtB;IADC,IAAA,eAAK,GAAE;;gDACY;AAGpB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACJ;AAGtB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;8BAClB,wBAAU;yCAAC;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;kDACE;sBAXZ,WAAW;IADvB,IAAA,oBAAU,GAAE;GACA,WAAW,CAYvB;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAM9B,CAAA;AANY,gDAAkB;AAE7B;IADC,IAAA,eAAK,GAAE;;uDACY;AAGpB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACJ;6BALX,kBAAkB;IAD9B,IAAA,oBAAU,GAAE;GACA,kBAAkB,CAM9B"}
@@ -1,15 +0,0 @@
1
- import { BranchEntity } from "./branch.entity";
2
- import { OrganizationEntity } from "./organization.entity";
3
- import { RoleEntity } from "./role.entity";
4
- export declare class MembershipEntity {
5
- _id: string;
6
- name: string;
7
- userId: string;
8
- roleId: string;
9
- organizationId?: string;
10
- branchId?: string;
11
- organization: OrganizationEntity;
12
- branch: BranchEntity;
13
- role: RoleEntity;
14
- }
15
- //# sourceMappingURL=membership.entity.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,59 +0,0 @@
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.MembershipEntity = void 0;
13
- const graphql_1 = require("@nestjs/graphql");
14
- const branch_entity_1 = require("./branch.entity");
15
- const organization_entity_1 = require("./organization.entity");
16
- const role_entity_1 = require("./role.entity");
17
- let MembershipEntity = class MembershipEntity {
18
- };
19
- exports.MembershipEntity = MembershipEntity;
20
- __decorate([
21
- (0, graphql_1.Field)(() => String),
22
- __metadata("design:type", String)
23
- ], MembershipEntity.prototype, "_id", void 0);
24
- __decorate([
25
- (0, graphql_1.Field)(() => String),
26
- __metadata("design:type", String)
27
- ], MembershipEntity.prototype, "name", void 0);
28
- __decorate([
29
- (0, graphql_1.Field)(() => String),
30
- __metadata("design:type", String)
31
- ], MembershipEntity.prototype, "userId", void 0);
32
- __decorate([
33
- (0, graphql_1.Field)(() => String),
34
- __metadata("design:type", String)
35
- ], MembershipEntity.prototype, "roleId", void 0);
36
- __decorate([
37
- (0, graphql_1.Field)(() => String, { nullable: true }),
38
- __metadata("design:type", String)
39
- ], MembershipEntity.prototype, "organizationId", void 0);
40
- __decorate([
41
- (0, graphql_1.Field)(() => String, { nullable: true }),
42
- __metadata("design:type", String)
43
- ], MembershipEntity.prototype, "branchId", void 0);
44
- __decorate([
45
- (0, graphql_1.Field)(() => organization_entity_1.OrganizationEntity),
46
- __metadata("design:type", organization_entity_1.OrganizationEntity)
47
- ], MembershipEntity.prototype, "organization", void 0);
48
- __decorate([
49
- (0, graphql_1.Field)(() => branch_entity_1.BranchEntity),
50
- __metadata("design:type", branch_entity_1.BranchEntity)
51
- ], MembershipEntity.prototype, "branch", void 0);
52
- __decorate([
53
- (0, graphql_1.Field)(() => role_entity_1.RoleEntity),
54
- __metadata("design:type", role_entity_1.RoleEntity)
55
- ], MembershipEntity.prototype, "role", void 0);
56
- exports.MembershipEntity = MembershipEntity = __decorate([
57
- (0, graphql_1.ObjectType)()
58
- ], MembershipEntity);
59
- //# sourceMappingURL=membership.entity.js.map
@@ -1 +0,0 @@
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,11 +0,0 @@
1
- import { UserEntity } from "./user.entity";
2
- export declare class OrganizationEntity {
3
- _id: string;
4
- name: number;
5
- language: string[];
6
- description?: string;
7
- createdBy: string;
8
- updatedAt: string;
9
- creator?: UserEntity;
10
- }
11
- //# sourceMappingURL=organization.entity.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,49 +0,0 @@
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.OrganizationEntity = void 0;
13
- const graphql_1 = require("@nestjs/graphql");
14
- const user_entity_1 = require("./user.entity");
15
- let OrganizationEntity = class OrganizationEntity {
16
- };
17
- exports.OrganizationEntity = OrganizationEntity;
18
- __decorate([
19
- (0, graphql_1.Field)(() => String),
20
- __metadata("design:type", String)
21
- ], OrganizationEntity.prototype, "_id", void 0);
22
- __decorate([
23
- (0, graphql_1.Field)(() => graphql_1.Int),
24
- __metadata("design:type", Number)
25
- ], OrganizationEntity.prototype, "name", void 0);
26
- __decorate([
27
- (0, graphql_1.Field)(() => [String]),
28
- __metadata("design:type", Array)
29
- ], OrganizationEntity.prototype, "language", void 0);
30
- __decorate([
31
- (0, graphql_1.Field)(() => String, { nullable: true }),
32
- __metadata("design:type", String)
33
- ], OrganizationEntity.prototype, "description", void 0);
34
- __decorate([
35
- (0, graphql_1.Field)(() => String),
36
- __metadata("design:type", String)
37
- ], OrganizationEntity.prototype, "createdBy", void 0);
38
- __decorate([
39
- (0, graphql_1.Field)(() => String),
40
- __metadata("design:type", String)
41
- ], OrganizationEntity.prototype, "updatedAt", void 0);
42
- __decorate([
43
- (0, graphql_1.Field)(() => user_entity_1.UserEntity, { nullable: true }),
44
- __metadata("design:type", user_entity_1.UserEntity)
45
- ], OrganizationEntity.prototype, "creator", void 0);
46
- exports.OrganizationEntity = OrganizationEntity = __decorate([
47
- (0, graphql_1.ObjectType)()
48
- ], OrganizationEntity);
49
- //# sourceMappingURL=organization.entity.js.map
@@ -1 +0,0 @@
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"}
@@ -1,16 +0,0 @@
1
- export declare class RoleEntity {
2
- _id: string;
3
- name: string;
4
- description?: string;
5
- permissions?: string[];
6
- }
7
- declare const PaginatedRoleResult_base: abstract new () => {
8
- items: RoleEntity[];
9
- total: number;
10
- page: number;
11
- size: number;
12
- };
13
- export declare class PaginatedRoleResult extends PaginatedRoleResult_base {
14
- }
15
- export {};
16
- //# sourceMappingURL=role.entity.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,43 +0,0 @@
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.PaginatedRoleResult = exports.RoleEntity = void 0;
13
- const graphql_1 = require("@nestjs/graphql");
14
- const paginated_result_type_1 = require("../types/paginated-result.type");
15
- let RoleEntity = class RoleEntity {
16
- };
17
- exports.RoleEntity = RoleEntity;
18
- __decorate([
19
- (0, graphql_1.Field)(() => String),
20
- __metadata("design:type", String)
21
- ], RoleEntity.prototype, "_id", void 0);
22
- __decorate([
23
- (0, graphql_1.Field)(() => String),
24
- __metadata("design:type", String)
25
- ], RoleEntity.prototype, "name", void 0);
26
- __decorate([
27
- (0, graphql_1.Field)(() => String, { nullable: true }),
28
- __metadata("design:type", String)
29
- ], RoleEntity.prototype, "description", void 0);
30
- __decorate([
31
- (0, graphql_1.Field)(() => [String], { nullable: true }),
32
- __metadata("design:type", Array)
33
- ], RoleEntity.prototype, "permissions", void 0);
34
- exports.RoleEntity = RoleEntity = __decorate([
35
- (0, graphql_1.ObjectType)()
36
- ], RoleEntity);
37
- let PaginatedRoleResult = class PaginatedRoleResult extends (0, paginated_result_type_1.PaginatedResult)(RoleEntity) {
38
- };
39
- exports.PaginatedRoleResult = PaginatedRoleResult;
40
- exports.PaginatedRoleResult = PaginatedRoleResult = __decorate([
41
- (0, graphql_1.ObjectType)()
42
- ], PaginatedRoleResult);
43
- //# sourceMappingURL=role.entity.js.map
@@ -1 +0,0 @@
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"}
@@ -1,18 +0,0 @@
1
- import { MembershipEntity } from "./membership.entity";
2
- import { EAccountStatus } from "./../enum";
3
- import { ISocialAccounts } from "../interfaces";
4
- export declare class UserEntity {
5
- _id: string;
6
- userName?: string;
7
- password?: string;
8
- email?: string;
9
- phone?: string;
10
- fullName?: string;
11
- isEmailVerified?: boolean;
12
- status?: EAccountStatus;
13
- lastLoginAt?: number;
14
- lastLoginIp?: string;
15
- socialAccounts?: ISocialAccounts | null;
16
- memberships?: MembershipEntity[];
17
- }
18
- //# sourceMappingURL=user.entity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,qBACa,UAAU;IAErB,GAAG,EAAE,MAAM,CAAC;IAGZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,eAAe,CAAC,EAAE,OAAO,CAAC;IAG1B,MAAM,CAAC,EAAE,cAAc,CAAC;IAGxB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,cAAc,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAGxC,WAAW,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAClC"}
@@ -1,70 +0,0 @@
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.UserEntity = void 0;
13
- const graphql_1 = require("@nestjs/graphql");
14
- const membership_entity_1 = require("./membership.entity");
15
- const enum_1 = require("./../enum");
16
- let UserEntity = class UserEntity {
17
- };
18
- exports.UserEntity = UserEntity;
19
- __decorate([
20
- (0, graphql_1.Field)(() => String),
21
- __metadata("design:type", String)
22
- ], UserEntity.prototype, "_id", void 0);
23
- __decorate([
24
- (0, graphql_1.Field)({ nullable: true }),
25
- __metadata("design:type", String)
26
- ], UserEntity.prototype, "userName", void 0);
27
- __decorate([
28
- (0, graphql_1.Field)({ nullable: true }),
29
- __metadata("design:type", String)
30
- ], UserEntity.prototype, "password", void 0);
31
- __decorate([
32
- (0, graphql_1.Field)({ nullable: true }),
33
- __metadata("design:type", String)
34
- ], UserEntity.prototype, "email", void 0);
35
- __decorate([
36
- (0, graphql_1.Field)({ nullable: true }),
37
- __metadata("design:type", String)
38
- ], UserEntity.prototype, "phone", void 0);
39
- __decorate([
40
- (0, graphql_1.Field)({ nullable: true }),
41
- __metadata("design:type", String)
42
- ], UserEntity.prototype, "fullName", void 0);
43
- __decorate([
44
- (0, graphql_1.Field)({ nullable: true }),
45
- __metadata("design:type", Boolean)
46
- ], UserEntity.prototype, "isEmailVerified", void 0);
47
- __decorate([
48
- (0, graphql_1.Field)(() => enum_1.EAccountStatus, { nullable: true }),
49
- __metadata("design:type", String)
50
- ], UserEntity.prototype, "status", void 0);
51
- __decorate([
52
- (0, graphql_1.Field)(() => String, { nullable: true }),
53
- __metadata("design:type", Number)
54
- ], UserEntity.prototype, "lastLoginAt", void 0);
55
- __decorate([
56
- (0, graphql_1.Field)({ nullable: true }),
57
- __metadata("design:type", String)
58
- ], UserEntity.prototype, "lastLoginIp", void 0);
59
- __decorate([
60
- (0, graphql_1.Field)(() => [String], { nullable: true }),
61
- __metadata("design:type", Object)
62
- ], UserEntity.prototype, "socialAccounts", void 0);
63
- __decorate([
64
- (0, graphql_1.Field)(() => [membership_entity_1.MembershipEntity], { nullable: true }),
65
- __metadata("design:type", Array)
66
- ], UserEntity.prototype, "memberships", void 0);
67
- exports.UserEntity = UserEntity = __decorate([
68
- (0, graphql_1.ObjectType)()
69
- ], UserEntity);
70
- //# sourceMappingURL=user.entity.js.map
@@ -1 +0,0 @@
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,IAA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