shared-dto 1.0.56 → 1.0.58
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 +6 -1
- package/dist/UserDTO.dto.d.ts.map +1 -1
- package/dist/UserDTO.dto.js +7 -1
- package/dist/UserDTO.dto.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/UserDTO.dto.ts +6 -2
- package/src/index.ts +0 -1
- package/src/group.dto.ts +0 -14
package/dist/UserDTO.dto.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
export declare enum UserType {
|
|
2
|
+
admin = "admin",
|
|
3
|
+
notAdmin = "notAdmin",
|
|
4
|
+
null = "null"
|
|
5
|
+
}
|
|
1
6
|
export declare class UserDTO {
|
|
2
7
|
uid: string;
|
|
3
8
|
email: string | null | undefined;
|
|
4
9
|
name: string | null | undefined;
|
|
5
10
|
phone: string | null | undefined;
|
|
6
11
|
profileURL: string | null | undefined;
|
|
7
|
-
userType:
|
|
12
|
+
userType: UserType;
|
|
8
13
|
}
|
|
9
14
|
export declare class BaseUserDto {
|
|
10
15
|
uid: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserDTO.dto.d.ts","sourceRoot":"","sources":["../src/UserDTO.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserDTO.dto.d.ts","sourceRoot":"","sources":["../src/UserDTO.dto.ts"],"names":[],"mappings":"AAEA,oBAAY,QAAQ;IAChB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AACH,qBAAa,OAAO;IAChB,GAAG,EAAC,MAAM,CAAC;IACX,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;CACtB;AAED,qBAAc,WAAW;IAGrB,GAAG,EAAE,MAAM,CAAC;IAIZ,IAAI,EAAE,MAAM,CAAC;IAIb,UAAU,EAAE,MAAM,CAAC;IAInB,UAAU,EAAE,MAAM,CAAC;IAInB,QAAQ,EAAC,MAAM,CAAC;CAChB"}
|
package/dist/UserDTO.dto.js
CHANGED
|
@@ -9,8 +9,14 @@ 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 = void 0;
|
|
12
|
+
exports.BaseUserDto = exports.UserDTO = exports.UserType = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
var UserType;
|
|
15
|
+
(function (UserType) {
|
|
16
|
+
UserType["admin"] = "admin";
|
|
17
|
+
UserType["notAdmin"] = "notAdmin";
|
|
18
|
+
UserType["null"] = "null";
|
|
19
|
+
})(UserType || (exports.UserType = UserType = {}));
|
|
14
20
|
class UserDTO {
|
|
15
21
|
}
|
|
16
22
|
exports.UserDTO = UserDTO;
|
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,qDAAuD;
|
|
1
|
+
{"version":3,"file":"UserDTO.dto.js","sourceRoot":"","sources":["../src/UserDTO.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,IAAY,QAIT;AAJH,WAAY,QAAQ;IAChB,2BAAe,CAAA;IACf,iCAAqB,CAAA;IACrB,yBAAa,CAAA;AACf,CAAC,EAJS,QAAQ,wBAAR,QAAQ,QAIjB;AACH,MAAa,OAAO;CAOnB;AAPD,0BAOC;AAED,MAAc,WAAW;CAoBrB;AApBJ,kCAoBI;AAjBA;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;;6CACG"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -20,5 +20,4 @@ __exportStar(require("./Task.dto"), exports);
|
|
|
20
20
|
__exportStar(require("./Duty.dto"), exports);
|
|
21
21
|
__exportStar(require("./Payments.dto"), exports);
|
|
22
22
|
__exportStar(require("./Expenses.dto"), exports);
|
|
23
|
-
__exportStar(require("./group.dto"), exports);
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,kDAAgC;AAChC,6CAA2B;AAC3B,6CAA0B;AAC1B,iDAA8B;AAC9B,iDAA8B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,kDAAgC;AAChC,6CAA2B;AAC3B,6CAA0B;AAC1B,iDAA8B;AAC9B,iDAA8B"}
|
package/package.json
CHANGED
package/src/UserDTO.dto.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { IsNotEmpty, IsString } from "class-validator";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export enum UserType {
|
|
4
|
+
admin = "admin",
|
|
5
|
+
notAdmin = "notAdmin",
|
|
6
|
+
null = "null",
|
|
7
|
+
}
|
|
4
8
|
export class UserDTO {
|
|
5
9
|
uid:string;
|
|
6
10
|
email: string | null | undefined;
|
|
7
11
|
name: string | null | undefined;
|
|
8
12
|
phone: string | null | undefined;
|
|
9
13
|
profileURL: string | null | undefined;
|
|
10
|
-
userType:
|
|
14
|
+
userType: UserType;
|
|
11
15
|
}
|
|
12
16
|
|
|
13
17
|
export class BaseUserDto {
|
package/src/index.ts
CHANGED
package/src/group.dto.ts
DELETED