shared-dto 1.0.63 → 1.0.65
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/UserDTO.dto.d.ts +17 -0
- package/dist/UserDTO.dto.d.ts.map +1 -1
- package/dist/UserDTO.dto.js +41 -1
- package/dist/UserDTO.dto.js.map +1 -1
- package/package.json +1 -1
- package/src/UserDTO.dto.ts +67 -33
package/dist/UserDTO.dto.d.ts
CHANGED
|
@@ -18,4 +18,21 @@ export declare class BaseUserDto {
|
|
|
18
18
|
profileURL: string;
|
|
19
19
|
userType: string;
|
|
20
20
|
}
|
|
21
|
+
export declare class NotificationDTO {
|
|
22
|
+
id: string;
|
|
23
|
+
type: NotificationType;
|
|
24
|
+
content: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
userUID: string;
|
|
27
|
+
isDone: boolean;
|
|
28
|
+
isMessageSeems: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare enum NotificationType {
|
|
31
|
+
NEW_PAYMENT = "NEW_PAYMENT",
|
|
32
|
+
DUTY_DATE = "DUTY_DATE",
|
|
33
|
+
NEW_MESSAGE = "NEW_MESSAGE",
|
|
34
|
+
NEW_TASK = "NEW_TASK",
|
|
35
|
+
ADD_USER_REQUEST = "ADD_USER_REQUEST",
|
|
36
|
+
PAYMENT_STATUS = "PAYMENT_STAT"
|
|
37
|
+
}
|
|
21
38
|
//# sourceMappingURL=UserDTO.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserDTO.dto.d.ts","sourceRoot":"","sources":["../src/UserDTO.dto.ts"],"names":[],"mappings":"AAEA,oBAAY,QAAQ;
|
|
1
|
+
{"version":3,"file":"UserDTO.dto.d.ts","sourceRoot":"","sources":["../src/UserDTO.dto.ts"],"names":[],"mappings":"AAEA,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AACD,qBAAa,OAAO;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,qBAAa,WAAW;IAGtB,GAAG,EAAE,MAAM,CAAC;IAIZ,IAAI,EAAE,MAAM,CAAC;IAIb,UAAU,EAAE,MAAM,CAAC;IAInB,UAAU,EAAE,MAAM,CAAC;IAInB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,eAAe;IAG1B,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,gBAAgB,CAAC;IAIvB,OAAO,EAAE,MAAM,CAAC;IAIhB,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAGhB,MAAM,EAAE,OAAO,CAAC;IAGhB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,oBAAY,gBAAgB;IAC1B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,gBAAgB,qBAAqB;IACrC,cAAc,iBAAiB;CAChC"}
|
package/dist/UserDTO.dto.js
CHANGED
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.BaseUserDto = exports.UserDTO = exports.UserType = void 0;
|
|
12
|
+
exports.NotificationType = exports.NotificationDTO = exports.BaseUserDto = exports.UserDTO = exports.UserType = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
var UserType;
|
|
15
15
|
(function (UserType) {
|
|
@@ -48,4 +48,44 @@ __decorate([
|
|
|
48
48
|
(0, class_validator_1.IsNotEmpty)(),
|
|
49
49
|
__metadata("design:type", String)
|
|
50
50
|
], BaseUserDto.prototype, "userType", void 0);
|
|
51
|
+
class NotificationDTO {
|
|
52
|
+
}
|
|
53
|
+
exports.NotificationDTO = NotificationDTO;
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsString)(),
|
|
56
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], NotificationDTO.prototype, "id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], NotificationDTO.prototype, "content", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], NotificationDTO.prototype, "createdAt", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], NotificationDTO.prototype, "userUID", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsBoolean)(),
|
|
76
|
+
__metadata("design:type", Boolean)
|
|
77
|
+
], NotificationDTO.prototype, "isDone", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsBoolean)(),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], NotificationDTO.prototype, "isMessageSeems", void 0);
|
|
82
|
+
var NotificationType;
|
|
83
|
+
(function (NotificationType) {
|
|
84
|
+
NotificationType["NEW_PAYMENT"] = "NEW_PAYMENT";
|
|
85
|
+
NotificationType["DUTY_DATE"] = "DUTY_DATE";
|
|
86
|
+
NotificationType["NEW_MESSAGE"] = "NEW_MESSAGE";
|
|
87
|
+
NotificationType["NEW_TASK"] = "NEW_TASK";
|
|
88
|
+
NotificationType["ADD_USER_REQUEST"] = "ADD_USER_REQUEST";
|
|
89
|
+
NotificationType["PAYMENT_STATUS"] = "PAYMENT_STAT";
|
|
90
|
+
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
51
91
|
//# sourceMappingURL=UserDTO.dto.js.map
|
package/dist/UserDTO.dto.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserDTO.dto.js","sourceRoot":"","sources":["../src/UserDTO.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"UserDTO.dto.js","sourceRoot":"","sources":["../src/UserDTO.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,iCAAqB,CAAA;IACrB,yBAAa,CAAA;AACf,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB;AACD,MAAa,OAAO;CAOnB;AAPD,0BAOC;AAED,MAAa,WAAW;CAoBvB;AApBD,kCAoBC;AAjBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wCACD;AAIZ;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yCACA;AAIb;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACM;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACM;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6CACI;AAGnB,MAAa,eAAe;CAwB3B;AAxBD,0CAwBC;AArBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2CACF;AAMX;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACG;AAGhB;IADC,IAAA,2BAAS,GAAE;;+CACI;AAGhB;IADC,IAAA,2BAAS,GAAE;;uDACY;AAG1B,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;IACvB,+CAA2B,CAAA;IAC3B,yCAAqB,CAAA;IACrB,yDAAqC,CAAA;IACrC,mDAA+B,CAAA;AACjC,CAAC,EAPW,gBAAgB,gCAAhB,gBAAgB,QAO3B"}
|
package/package.json
CHANGED
package/src/UserDTO.dto.ts
CHANGED
|
@@ -1,38 +1,72 @@
|
|
|
1
|
-
import { IsNotEmpty, IsString } from "class-validator";
|
|
1
|
+
import { IsBoolean, IsNotEmpty, IsString } from "class-validator";
|
|
2
2
|
|
|
3
3
|
export enum UserType {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
admin = "admin",
|
|
5
|
+
notAdmin = "notAdmin",
|
|
6
|
+
null = "null",
|
|
7
|
+
}
|
|
8
8
|
export class UserDTO {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
uid: string;
|
|
10
|
+
email: string | null | undefined;
|
|
11
|
+
name: string | null | undefined;
|
|
12
|
+
phone: string | null | undefined;
|
|
13
|
+
profileURL: string | null | undefined;
|
|
14
|
+
userType: UserType;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class BaseUserDto {
|
|
18
|
+
@IsString()
|
|
19
|
+
@IsNotEmpty()
|
|
20
|
+
uid: string;
|
|
21
|
+
|
|
22
|
+
@IsString()
|
|
23
|
+
@IsNotEmpty()
|
|
24
|
+
name: string;
|
|
25
|
+
|
|
26
|
+
@IsString()
|
|
27
|
+
@IsNotEmpty()
|
|
28
|
+
aprtmontID: string;
|
|
29
|
+
|
|
30
|
+
@IsString()
|
|
31
|
+
@IsNotEmpty()
|
|
32
|
+
profileURL: string;
|
|
33
|
+
|
|
34
|
+
@IsString()
|
|
35
|
+
@IsNotEmpty()
|
|
36
|
+
userType: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class NotificationDTO {
|
|
40
|
+
@IsString()
|
|
41
|
+
@IsNotEmpty()
|
|
42
|
+
id: string;
|
|
43
|
+
|
|
44
|
+
type: NotificationType;
|
|
45
|
+
|
|
46
|
+
@IsString()
|
|
47
|
+
@IsNotEmpty()
|
|
48
|
+
content: string;
|
|
49
|
+
|
|
50
|
+
@IsString()
|
|
51
|
+
@IsNotEmpty()
|
|
52
|
+
createdAt: string;
|
|
53
|
+
|
|
54
|
+
@IsString()
|
|
55
|
+
@IsNotEmpty()
|
|
56
|
+
userUID: string;
|
|
57
|
+
|
|
58
|
+
@IsBoolean()
|
|
59
|
+
isDone: boolean;
|
|
60
|
+
|
|
61
|
+
@IsBoolean()
|
|
62
|
+
isMessageSeems: boolean;
|
|
15
63
|
}
|
|
16
64
|
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
@IsString()
|
|
27
|
-
@IsNotEmpty()
|
|
28
|
-
aprtmontID: string;
|
|
29
|
-
|
|
30
|
-
@IsString()
|
|
31
|
-
@IsNotEmpty()
|
|
32
|
-
profileURL: string;
|
|
33
|
-
|
|
34
|
-
@IsString()
|
|
35
|
-
@IsNotEmpty()
|
|
36
|
-
userType:string;
|
|
37
|
-
}
|
|
38
|
-
|
|
65
|
+
export enum NotificationType {
|
|
66
|
+
NEW_PAYMENT = "NEW_PAYMENT",
|
|
67
|
+
DUTY_DATE = "DUTY_DATE",
|
|
68
|
+
NEW_MESSAGE = "NEW_MESSAGE",
|
|
69
|
+
NEW_TASK = "NEW_TASK",
|
|
70
|
+
ADD_USER_REQUEST = "ADD_USER_REQUEST",
|
|
71
|
+
PAYMENT_STATUS = "PAYMENT_STAT",
|
|
72
|
+
}
|