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.
- package/dist/args/index.d.ts +2 -0
- package/dist/args/index.d.ts.map +1 -0
- package/dist/args/index.js +18 -0
- package/dist/args/index.js.map +1 -0
- package/dist/args/pagination.args.d.ts +5 -0
- package/dist/args/pagination.args.d.ts.map +1 -0
- package/dist/args/pagination.args.js +31 -0
- package/dist/args/pagination.args.js.map +1 -0
- package/dist/constants/index.d.ts +2 -1
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/patterns.constant.d.ts +80 -0
- package/dist/constants/patterns.constant.d.ts.map +1 -0
- package/dist/constants/patterns.constant.js +68 -0
- package/dist/constants/patterns.constant.js.map +1 -0
- package/dist/constants/permission.constant.d.ts +168 -0
- package/dist/constants/permission.constant.d.ts.map +1 -0
- package/dist/constants/permission.constant.js +79 -0
- package/dist/constants/permission.constant.js.map +1 -0
- package/dist/dto/auth.dto.d.ts +13 -0
- package/dist/dto/auth.dto.d.ts.map +1 -0
- package/dist/dto/auth.dto.js +75 -0
- package/dist/dto/auth.dto.js.map +1 -0
- package/dist/dto/branch.dto.d.ts +10 -0
- package/dist/dto/branch.dto.d.ts.map +1 -0
- package/dist/dto/branch.dto.js +42 -0
- package/dist/dto/branch.dto.js.map +1 -0
- package/dist/dto/date-range.input.d.ts +5 -0
- package/dist/dto/date-range.input.d.ts.map +1 -0
- package/dist/dto/date-range.input.js +28 -0
- package/dist/dto/date-range.input.js.map +1 -0
- package/dist/dto/index.d.ts +8 -0
- package/dist/dto/index.d.ts.map +1 -1
- package/dist/dto/index.js +10 -0
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/membership.dto.d.ts +12 -0
- package/dist/dto/membership.dto.d.ts.map +1 -0
- package/dist/dto/membership.dto.js +53 -0
- package/dist/dto/membership.dto.js.map +1 -0
- package/dist/dto/menu.dto.d.ts +25 -0
- package/dist/dto/menu.dto.d.ts.map +1 -0
- package/dist/dto/menu.dto.js +87 -0
- package/dist/dto/menu.dto.js.map +1 -0
- package/dist/dto/organization.dto.d.ts +6 -0
- package/dist/dto/organization.dto.d.ts.map +1 -0
- package/dist/dto/organization.dto.js +37 -0
- package/dist/dto/organization.dto.js.map +1 -0
- package/dist/dto/roles.dto.d.ts +14 -0
- package/dist/dto/roles.dto.d.ts.map +1 -0
- package/dist/dto/roles.dto.js +49 -0
- package/dist/dto/roles.dto.js.map +1 -0
- package/dist/dto/translation.input.d.ts +8 -0
- package/dist/dto/translation.input.d.ts.map +1 -0
- package/dist/dto/translation.input.js +32 -0
- package/dist/dto/translation.input.js.map +1 -0
- package/dist/entities/branch.entity.d.ts +0 -1
- package/dist/entities/branch.entity.d.ts.map +1 -1
- package/dist/entities/branch.entity.js +1 -5
- package/dist/entities/branch.entity.js.map +1 -1
- package/dist/entities/membership.entity.d.ts +1 -3
- package/dist/entities/membership.entity.d.ts.map +1 -1
- package/dist/entities/membership.entity.js +2 -10
- package/dist/entities/membership.entity.js.map +1 -1
- package/dist/entities/organization.entity.d.ts +2 -3
- package/dist/entities/organization.entity.d.ts.map +1 -1
- package/dist/entities/organization.entity.js +5 -9
- package/dist/entities/organization.entity.js.map +1 -1
- package/dist/entities/role.entity.d.ts +0 -2
- package/dist/entities/role.entity.d.ts.map +1 -1
- package/dist/entities/role.entity.js +1 -9
- package/dist/entities/role.entity.js.map +1 -1
- package/dist/entities/user.entity.js +1 -1
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/enum/index.d.ts +1 -0
- package/dist/enum/index.d.ts.map +1 -1
- package/dist/enum/index.js +1 -0
- package/dist/enum/index.js.map +1 -1
- package/dist/enum/use.enum.d.ts +6 -0
- package/dist/enum/use.enum.d.ts.map +1 -0
- package/dist/enum/use.enum.js +12 -0
- package/dist/enum/use.enum.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/account.interface.d.ts +8 -1
- package/dist/interfaces/account.interface.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/index.js +1 -0
- package/dist/interfaces/index.js.map +1 -1
- package/dist/interfaces/translation.interface.d.ts +7 -0
- package/dist/interfaces/translation.interface.d.ts.map +1 -0
- package/dist/interfaces/translation.interface.js +3 -0
- package/dist/interfaces/translation.interface.js.map +1 -0
- package/dist/types/find-all-paginated-result.type.d.ts +7 -0
- package/dist/types/find-all-paginated-result.type.d.ts.map +1 -0
- package/dist/types/find-all-paginated-result.type.js +3 -0
- package/dist/types/find-all-paginated-result.type.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +10 -4
|
@@ -0,0 +1,42 @@
|
|
|
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.CreateBranchInput = exports.AssignBranchDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
15
|
+
class AssignBranchDto {
|
|
16
|
+
}
|
|
17
|
+
exports.AssignBranchDto = AssignBranchDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], AssignBranchDto.prototype, "userId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], AssignBranchDto.prototype, "branchId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], AssignBranchDto.prototype, "assignedBy", void 0);
|
|
31
|
+
let CreateBranchInput = class CreateBranchInput {
|
|
32
|
+
};
|
|
33
|
+
exports.CreateBranchInput = CreateBranchInput;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, graphql_1.Field)(() => String),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], CreateBranchInput.prototype, "name", void 0);
|
|
39
|
+
exports.CreateBranchInput = CreateBranchInput = __decorate([
|
|
40
|
+
(0, graphql_1.InputType)()
|
|
41
|
+
], CreateBranchInput);
|
|
42
|
+
//# sourceMappingURL=branch.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch.dto.js","sourceRoot":"","sources":["../../src/dto/branch.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,6CAAmD;AAGnD,MAAa,eAAe;CAU3B;AAVD,0CAUC;AARC;IADC,IAAA,2BAAS,GAAE;;+CACG;AAGf;IADC,IAAA,0BAAQ,GAAE;;iDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACS;AAIf,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAI7B,CAAA;AAJY,8CAAiB;AAG5B;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IACnB,IAAA,0BAAQ,GAAE;;+CACQ;4BAHR,iBAAiB;IAD7B,IAAA,mBAAS,GAAE;GACC,iBAAiB,CAI7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-range.input.d.ts","sourceRoot":"","sources":["../../src/dto/date-range.input.ts"],"names":[],"mappings":"AAEA,qBACa,cAAc;IAEzB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.DateRangeInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
let DateRangeInput = class DateRangeInput {
|
|
15
|
+
};
|
|
16
|
+
exports.DateRangeInput = DateRangeInput;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, graphql_1.Field)(() => graphql_1.GraphQLTimestamp, { nullable: true }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], DateRangeInput.prototype, "from", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, graphql_1.Field)(() => graphql_1.GraphQLTimestamp, { nullable: true }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], DateRangeInput.prototype, "to", void 0);
|
|
25
|
+
exports.DateRangeInput = DateRangeInput = __decorate([
|
|
26
|
+
(0, graphql_1.InputType)()
|
|
27
|
+
], DateRangeInput);
|
|
28
|
+
//# sourceMappingURL=date-range.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-range.input.js","sourceRoot":"","sources":["../../src/dto/date-range.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAqE;AAG9D,IAAM,cAAc,GAApB,MAAM,cAAc;CAM1B,CAAA;AANY,wCAAc;AAEzB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,0BAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACpC;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,0BAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACtC;yBALD,cAAc;IAD1B,IAAA,mBAAS,GAAE;GACC,cAAc,CAM1B"}
|
package/dist/dto/index.d.ts
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
export * from "./auth.dto";
|
|
2
|
+
export * from "./branch.dto";
|
|
3
|
+
export * from "./membership.dto";
|
|
4
|
+
export * from "./menu.dto";
|
|
5
|
+
export * from "./organization.dto";
|
|
6
|
+
export * from "./roles.dto";
|
|
1
7
|
export * from "./user.dto";
|
|
8
|
+
export * from "./date-range.input";
|
|
9
|
+
export * from "./translation.input";
|
|
2
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/dto/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"
|
|
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"}
|
package/dist/dto/index.js
CHANGED
|
@@ -14,5 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// module
|
|
18
|
+
__exportStar(require("./auth.dto"), exports);
|
|
19
|
+
__exportStar(require("./branch.dto"), exports);
|
|
20
|
+
__exportStar(require("./membership.dto"), exports);
|
|
21
|
+
__exportStar(require("./menu.dto"), exports);
|
|
22
|
+
__exportStar(require("./organization.dto"), exports);
|
|
23
|
+
__exportStar(require("./roles.dto"), exports);
|
|
17
24
|
__exportStar(require("./user.dto"), exports);
|
|
25
|
+
// share
|
|
26
|
+
__exportStar(require("./date-range.input"), exports);
|
|
27
|
+
__exportStar(require("./translation.input"), exports);
|
|
18
28
|
//# sourceMappingURL=index.js.map
|
package/dist/dto/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
|
|
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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class AssignRoleDto {
|
|
2
|
+
userId: string;
|
|
3
|
+
role: string;
|
|
4
|
+
assignedBy?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class CreateMembershipInput {
|
|
7
|
+
userId: string;
|
|
8
|
+
roleId: string;
|
|
9
|
+
organizationId?: string;
|
|
10
|
+
branchId?: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=membership.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"membership.dto.d.ts","sourceRoot":"","sources":["../../src/dto/membership.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,aAAa;IAExB,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;IAIb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBACa,qBAAqB;IAEhC,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAGf,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.CreateMembershipInput = exports.AssignRoleDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
15
|
+
class AssignRoleDto {
|
|
16
|
+
}
|
|
17
|
+
exports.AssignRoleDto = AssignRoleDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], AssignRoleDto.prototype, "userId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], AssignRoleDto.prototype, "role", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], AssignRoleDto.prototype, "assignedBy", void 0);
|
|
31
|
+
let CreateMembershipInput = class CreateMembershipInput {
|
|
32
|
+
};
|
|
33
|
+
exports.CreateMembershipInput = CreateMembershipInput;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, graphql_1.Field)(() => String),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CreateMembershipInput.prototype, "userId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, graphql_1.Field)(() => String),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CreateMembershipInput.prototype, "roleId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], CreateMembershipInput.prototype, "organizationId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CreateMembershipInput.prototype, "branchId", void 0);
|
|
50
|
+
exports.CreateMembershipInput = CreateMembershipInput = __decorate([
|
|
51
|
+
(0, graphql_1.InputType)()
|
|
52
|
+
], CreateMembershipInput);
|
|
53
|
+
//# sourceMappingURL=membership.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../src/dto/membership.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAClE,6CAAmD;AAEnD,MAAa,aAAa;CAUzB;AAVD,sCAUC;AARC;IADC,IAAA,2BAAS,GAAE;;6CACG;AAGf;IADC,IAAA,0BAAQ,GAAE;;2CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACS;AAIf,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAYjC,CAAA;AAZY,sDAAqB;AAEhC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACL;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACL;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DAChB;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACtB;gCAXP,qBAAqB;IADjC,IAAA,mBAAS,GAAE;GACC,qBAAqB,CAYjC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TranslationInput } from "./translation.input";
|
|
2
|
+
import { DateRangeInput } from "./date-range.input";
|
|
3
|
+
import { UserType } from "../enum";
|
|
4
|
+
export declare class CreateMenuInput {
|
|
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 MenuFilterInput {
|
|
18
|
+
createdAt?: DateRangeInput;
|
|
19
|
+
}
|
|
20
|
+
declare const UpdateMenuInput_base: import("@nestjs/common").Type<Partial<CreateMenuInput>>;
|
|
21
|
+
export declare class UpdateMenuInput extends UpdateMenuInput_base {
|
|
22
|
+
_id: string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=menu.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.dto.d.ts","sourceRoot":"","sources":["../../src/dto/menu.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,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.UpdateMenuInput = exports.MenuFilterInput = exports.CreateMenuInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const translation_input_1 = require("./translation.input");
|
|
15
|
+
const date_range_input_1 = require("./date-range.input");
|
|
16
|
+
const enum_1 = require("../enum");
|
|
17
|
+
let CreateMenuInput = class CreateMenuInput {
|
|
18
|
+
};
|
|
19
|
+
exports.CreateMenuInput = CreateMenuInput;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, graphql_1.Field)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateMenuInput.prototype, "key", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, graphql_1.Field)(() => translation_input_1.TranslationInput),
|
|
26
|
+
__metadata("design:type", translation_input_1.TranslationInput)
|
|
27
|
+
], CreateMenuInput.prototype, "label", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateMenuInput.prototype, "icon", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CreateMenuInput.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
|
+
], CreateMenuInput.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
|
+
], CreateMenuInput.prototype, "userType", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: 0 }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], CreateMenuInput.prototype, "order", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: true }),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], CreateMenuInput.prototype, "visible", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, graphql_1.Field)(() => [String], { nullable: true, defaultValue: [] }),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], CreateMenuInput.prototype, "permissions", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, graphql_1.Field)(() => graphql_1.ID, { nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], CreateMenuInput.prototype, "parent", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: true }),
|
|
62
|
+
__metadata("design:type", Boolean)
|
|
63
|
+
], CreateMenuInput.prototype, "isActive", void 0);
|
|
64
|
+
exports.CreateMenuInput = CreateMenuInput = __decorate([
|
|
65
|
+
(0, graphql_1.InputType)()
|
|
66
|
+
], CreateMenuInput);
|
|
67
|
+
let MenuFilterInput = class MenuFilterInput {
|
|
68
|
+
};
|
|
69
|
+
exports.MenuFilterInput = MenuFilterInput;
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, graphql_1.Field)(() => date_range_input_1.DateRangeInput, { nullable: true }),
|
|
72
|
+
__metadata("design:type", date_range_input_1.DateRangeInput)
|
|
73
|
+
], MenuFilterInput.prototype, "createdAt", void 0);
|
|
74
|
+
exports.MenuFilterInput = MenuFilterInput = __decorate([
|
|
75
|
+
(0, graphql_1.InputType)()
|
|
76
|
+
], MenuFilterInput);
|
|
77
|
+
let UpdateMenuInput = class UpdateMenuInput extends (0, graphql_1.PartialType)(CreateMenuInput) {
|
|
78
|
+
};
|
|
79
|
+
exports.UpdateMenuInput = UpdateMenuInput;
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], UpdateMenuInput.prototype, "_id", void 0);
|
|
84
|
+
exports.UpdateMenuInput = UpdateMenuInput = __decorate([
|
|
85
|
+
(0, graphql_1.InputType)()
|
|
86
|
+
], UpdateMenuInput);
|
|
87
|
+
//# sourceMappingURL=menu.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.dto.js","sourceRoot":"","sources":["../../src/dto/menu.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoE;AACpE,2DAAuD;AAEvD,yDAAoD;AACpD,kCAAmC;AAG5B,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;;6CACZ;AAGd;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACR;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC3C,oCAAgB;6CAAC;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,eAAQ,CAAC,KAAK,EAAE,CAAC;;iDACpD;AAGpB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;8CAC5B;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;gDAC5B;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;;oDACrC;AAGvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACb;AAGvB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;iDAC3B;0BAhCR,eAAe;IAD3B,IAAA,mBAAS,GAAE;GACC,eAAe,CAiC3B;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,YAAE,CAAC;;4CACJ;0BAFD,eAAe;IAD3B,IAAA,mBAAS,GAAE;GACC,eAAe,CAG3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.dto.d.ts","sourceRoot":"","sources":["../../src/dto/organization.dto.ts"],"names":[],"mappings":"AAGA,qBACa,uBAAuB;IAGlC,IAAI,EAAE,MAAM,CAAC;IAKb,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.CreateOrganizationInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
let CreateOrganizationInput = class CreateOrganizationInput {
|
|
16
|
+
};
|
|
17
|
+
exports.CreateOrganizationInput = CreateOrganizationInput;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, graphql_1.Field)(() => String),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateOrganizationInput.prototype, "name", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateOrganizationInput.prototype, "description", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, graphql_1.Field)(() => String),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreateOrganizationInput.prototype, "createdBy", void 0);
|
|
34
|
+
exports.CreateOrganizationInput = CreateOrganizationInput = __decorate([
|
|
35
|
+
(0, graphql_1.InputType)()
|
|
36
|
+
], CreateOrganizationInput);
|
|
37
|
+
//# sourceMappingURL=organization.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.dto.js","sourceRoot":"","sources":["../../src/dto/organization.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AACnD,qDAAuD;AAGhD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAanC,CAAA;AAbY,0DAAuB;AAGlC;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IACnB,IAAA,0BAAQ,GAAE;;qDACE;AAKb;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACU;AAIrB;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IACnB,IAAA,0BAAQ,GAAE;;0DACO;kCAZP,uBAAuB;IADnC,IAAA,mBAAS,GAAE;GACC,uBAAuB,CAanC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DateRangeInput } from "./date-range.input";
|
|
2
|
+
export declare class CreateRoleInput {
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class RoleFilterInput {
|
|
7
|
+
createdAt?: DateRangeInput;
|
|
8
|
+
}
|
|
9
|
+
declare const UpdateRoleInput_base: import("@nestjs/common").Type<Partial<CreateRoleInput>>;
|
|
10
|
+
export declare class UpdateRoleInput extends UpdateRoleInput_base {
|
|
11
|
+
_id: string;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=roles.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.dto.d.ts","sourceRoot":"","sources":["../../src/dto/roles.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,eAAe;IAE1B,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;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,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"}
|
|
@@ -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;
|
|
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)(() =>
|
|
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,
|
|
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,
|
|
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)(() =>
|
|
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,
|
|
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:
|
|
4
|
+
name: number;
|
|
5
5
|
language: string[];
|
|
6
6
|
description?: string;
|
|
7
7
|
createdBy: string;
|
|
8
|
-
|
|
9
|
-
updatedAt: number;
|
|
8
|
+
updatedAt: string;
|
|
10
9
|
creator?: UserEntity;
|
|
11
10
|
}
|
|
12
11
|
//# sourceMappingURL=organization.entity.d.ts.map
|