synunu-libs 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/args/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./pagination.args"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/args/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.args.d.ts","sourceRoot":"","sources":["../../src/args/pagination.args.ts"],"names":[],"mappings":"AAGA,qBACa,cAAc;IAGzB,IAAI,EAAE,MAAM,CAAC;IAIb,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.PaginationArgs = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
let PaginationArgs = class PaginationArgs {
|
|
16
|
+
};
|
|
17
|
+
exports.PaginationArgs = PaginationArgs;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { defaultValue: 0 }),
|
|
20
|
+
(0, class_validator_1.Min)(0),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], PaginationArgs.prototype, "page", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { defaultValue: 10 }),
|
|
25
|
+
(0, class_validator_1.Min)(-1),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], PaginationArgs.prototype, "size", void 0);
|
|
28
|
+
exports.PaginationArgs = PaginationArgs = __decorate([
|
|
29
|
+
(0, graphql_1.ArgsType)()
|
|
30
|
+
], PaginationArgs);
|
|
31
|
+
//# sourceMappingURL=pagination.args.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.args.js","sourceRoot":"","sources":["../../src/args/pagination.args.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAuD;AACvD,qDAAsC;AAG/B,IAAM,cAAc,GAApB,MAAM,cAAc;CAQ1B,CAAA;AARY,wCAAc;AAGzB;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;IACrC,IAAA,qBAAG,EAAC,CAAC,CAAC;;4CACM;AAIb;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;IACtC,IAAA,qBAAG,EAAC,CAAC,CAAC,CAAC;;4CACK;yBAPF,cAAc;IAD1B,IAAA,kBAAQ,GAAE;GACE,cAAc,CAQ1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class LoginDto {
|
|
2
|
+
login: string;
|
|
3
|
+
password: string;
|
|
4
|
+
organizationDomain: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class RegisterDto {
|
|
7
|
+
userName?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
phone?: string;
|
|
10
|
+
password: string;
|
|
11
|
+
organizationDomain: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=auth.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.dto.d.ts","sourceRoot":"","sources":["../../src/dto/auth.dto.ts"],"names":[],"mappings":"AAUA,qBACa,QAAQ;IAInB,KAAK,EAAE,MAAM,CAAC;IAKd,QAAQ,EAAE,MAAM,CAAC;IAKjB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,qBACa,WAAW;IAEtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,KAAK,CAAC,EAAE,MAAM,CAAC;IAOf,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,QAAQ,EAAE,MAAM,CAAC;IAKjB,kBAAkB,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1,75 @@
|
|
|
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.RegisterDto = exports.LoginDto = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
let LoginDto = class LoginDto {
|
|
16
|
+
};
|
|
17
|
+
exports.LoginDto = LoginDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, graphql_1.Field)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)({ message: "validation.login.required" }),
|
|
21
|
+
(0, class_validator_1.IsString)({ message: "validation.login.string" }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], LoginDto.prototype, "login", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, graphql_1.Field)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)({ message: "validation.password.require" }),
|
|
27
|
+
(0, class_validator_1.IsString)({ message: "validation.password.string" }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], LoginDto.prototype, "password", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, graphql_1.Field)(),
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)({ message: "validation.organization.require" }),
|
|
33
|
+
(0, class_validator_1.IsString)({ message: "validation.organization.string" }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], LoginDto.prototype, "organizationDomain", void 0);
|
|
36
|
+
exports.LoginDto = LoginDto = __decorate([
|
|
37
|
+
(0, graphql_1.InputType)()
|
|
38
|
+
], LoginDto);
|
|
39
|
+
let RegisterDto = class RegisterDto {
|
|
40
|
+
};
|
|
41
|
+
exports.RegisterDto = RegisterDto;
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], RegisterDto.prototype, "userName", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
48
|
+
(0, class_validator_1.IsEmail)(),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], RegisterDto.prototype, "email", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
54
|
+
(0, class_validator_1.Matches)(/^\+?[1-9]\d{7,14}$/, {
|
|
55
|
+
message: "validation.phone",
|
|
56
|
+
}),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], RegisterDto.prototype, "phone", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, graphql_1.Field)(() => String),
|
|
62
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
63
|
+
(0, class_validator_1.MinLength)(6),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], RegisterDto.prototype, "password", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, graphql_1.Field)(() => String),
|
|
68
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
69
|
+
(0, class_validator_1.MinLength)(6),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], RegisterDto.prototype, "organizationDomain", void 0);
|
|
72
|
+
exports.RegisterDto = RegisterDto = __decorate([
|
|
73
|
+
(0, graphql_1.InputType)()
|
|
74
|
+
], RegisterDto);
|
|
75
|
+
//# sourceMappingURL=auth.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.dto.js","sourceRoot":"","sources":["../../src/dto/auth.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AACnD,qDAOyB;AAGlB,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAepB,CAAA;AAfY,4BAAQ;AAInB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACpD,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;;uCACnC;AAKd;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACtD,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;;0CACnC;AAKjB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IAC1D,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;;oDAC7B;mBAdhB,QAAQ;IADpB,IAAA,mBAAS,GAAE;GACC,QAAQ,CAepB;AAGM,IAAM,WAAW,GAAjB,MAAM,WAAW;CAyBvB,CAAA;AAzBY,kCAAW;AAEtB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACtB;AAKlB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;0CACE;AAOf;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,yBAAO,EAAC,oBAAoB,EAAE;QAC7B,OAAO,EAAE,kBAAkB;KAC5B,CAAC;IACD,IAAA,4BAAU,GAAE;;0CACE;AAKf;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IACnB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,CAAC,CAAC;;6CACI;AAKjB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IACnB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,CAAC,CAAC;;uDACc;sBAxBhB,WAAW;IADvB,IAAA,mBAAS,GAAE;GACC,WAAW,CAyBvB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ITranslation } from "../interfaces";
|
|
2
|
+
export declare class AssignBranchDto {
|
|
3
|
+
userId: string;
|
|
4
|
+
branchId: string;
|
|
5
|
+
assignedBy?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class CreateBranchInput {
|
|
8
|
+
name: ITranslation;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=branch.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch.dto.d.ts","sourceRoot":"","sources":["../../src/dto/branch.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,qBAAa,eAAe;IAE1B,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAIjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBACa,iBAAiB;IAG5B,IAAI,EAAE,YAAY,CAAC;CACpB"}
|
|
@@ -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"}
|