@intelact/driveup 0.5.2 → 0.5.4
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/lib/common/general.dto.js +5 -3
- package/lib/common/general.dto.js.map +1 -1
- package/lib/company/common/general.dto.d.ts +12 -0
- package/lib/company/common/general.dto.js +49 -1
- package/lib/company/common/general.dto.js.map +1 -1
- package/lib/company/company.model.d.ts +1 -0
- package/lib/company/company.model.js +5 -0
- package/lib/company/company.model.js.map +1 -1
- package/lib/company/course/appointment.model.d.ts +2 -2
- package/lib/company/course/appointment.model.js +2 -2
- package/lib/company/course/appointment.model.js.map +1 -1
- package/lib/company/driving/category.model.d.ts +2 -0
- package/lib/company/driving/category.model.js +12 -0
- package/lib/company/driving/category.model.js.map +1 -1
- package/lib/company/index.d.ts +1 -0
- package/lib/company/index.js +1 -0
- package/lib/company/index.js.map +1 -1
- package/lib/company/student/index.d.ts +1 -0
- package/lib/company/student/index.js +18 -0
- package/lib/company/student/index.js.map +1 -0
- package/lib/company/student/student.model.d.ts +9 -0
- package/lib/company/student/student.model.js +38 -0
- package/lib/company/student/student.model.js.map +1 -0
- package/lib/company/team/index.d.ts +1 -0
- package/lib/company/team/index.js +1 -0
- package/lib/company/team/index.js.map +1 -1
- package/lib/company/team/team.dto.d.ts +6 -0
- package/lib/company/team/team.dto.js +39 -0
- package/lib/company/team/team.dto.js.map +1 -0
- package/lib/company/team/user.model.d.ts +6 -1
- package/lib/company/team/user.model.js +7 -2
- package/lib/company/team/user.model.js.map +1 -1
- package/lib/student/student.model.d.ts +8 -3
- package/lib/student/student.model.js +22 -9
- package/lib/student/student.model.js.map +1 -1
- package/lib/system/country.model.d.ts +1 -0
- package/lib/system/country.model.js +5 -0
- package/lib/system/country.model.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/user/biometric.dto.d.ts +3 -0
- package/lib/user/biometric.dto.js +25 -0
- package/lib/user/biometric.dto.js.map +1 -0
- package/lib/user/email.dto.d.ts +4 -0
- package/lib/user/email.dto.js +32 -0
- package/lib/user/email.dto.js.map +1 -0
- package/lib/user/index.d.ts +5 -0
- package/lib/user/index.js +5 -0
- package/lib/user/index.js.map +1 -1
- package/lib/user/phone.dto.d.ts +4 -0
- package/lib/user/phone.dto.js +32 -0
- package/lib/user/phone.dto.js.map +1 -0
- package/lib/user/profile.dto.d.ts +10 -0
- package/lib/user/profile.dto.js +46 -0
- package/lib/user/profile.dto.js.map +1 -0
- package/lib/user/profile.type.d.ts +5 -0
- package/lib/user/profile.type.js +10 -0
- package/lib/user/profile.type.js.map +1 -0
- package/lib/user/sign.dto.d.ts +1 -12
- package/lib/user/sign.dto.js +7 -52
- package/lib/user/sign.dto.js.map +1 -1
- package/lib/user/user.model.d.ts +10 -6
- package/lib/user/user.model.js +38 -25
- package/lib/user/user.model.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProfileType = void 0;
|
|
4
|
+
var ProfileType;
|
|
5
|
+
(function (ProfileType) {
|
|
6
|
+
ProfileType["Student"] = "student";
|
|
7
|
+
ProfileType["Company"] = "company";
|
|
8
|
+
ProfileType["Agent"] = "agent";
|
|
9
|
+
})(ProfileType || (exports.ProfileType = ProfileType = {}));
|
|
10
|
+
//# sourceMappingURL=profile.type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.type.js","sourceRoot":"","sources":["../../src/user/profile.type.ts"],"names":[],"mappings":";;;AAKA,IAAY,WAIX;AAJD,WAAY,WAAW;IACtB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AAChB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
|
package/lib/user/sign.dto.d.ts
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import { Role } from "../security";
|
|
2
|
-
import { Language } from "../language";
|
|
3
1
|
export declare class SignupDto {
|
|
4
|
-
phone: string;
|
|
5
|
-
role: Role;
|
|
6
|
-
countryId: number;
|
|
7
|
-
language: Language;
|
|
8
|
-
}
|
|
9
|
-
export declare class PhoneSigninDto {
|
|
10
2
|
phone: string;
|
|
11
3
|
otp: string;
|
|
12
|
-
|
|
13
|
-
export declare class EmailSigninDto {
|
|
14
|
-
email: string;
|
|
15
|
-
otp: string;
|
|
4
|
+
countryId: number;
|
|
16
5
|
}
|
package/lib/user/sign.dto.js
CHANGED
|
@@ -9,75 +9,30 @@ 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.
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
12
|
+
exports.SignupDto = void 0;
|
|
14
13
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
16
|
-
const language_1 = require("../language");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
17
15
|
class SignupDto {
|
|
18
16
|
phone;
|
|
19
|
-
|
|
17
|
+
otp;
|
|
20
18
|
countryId;
|
|
21
|
-
language;
|
|
22
19
|
}
|
|
23
20
|
exports.SignupDto = SignupDto;
|
|
24
21
|
__decorate([
|
|
25
22
|
(0, class_validator_1.IsString)(),
|
|
26
23
|
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
27
24
|
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
-
(0, class_validator_1.MaxLength)(50),
|
|
29
25
|
__metadata("design:type", String)
|
|
30
26
|
], SignupDto.prototype, "phone", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
-
(0, class_validator_1.IsIn)([security_1.Role.CompanyOwner, security_1.Role.Agent, security_1.Role.Student]),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], SignupDto.prototype, "role", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsNumber)(),
|
|
39
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], SignupDto.prototype, "countryId", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
44
|
-
(0, class_validator_1.IsEnum)(language_1.Language),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], SignupDto.prototype, "language", void 0);
|
|
47
|
-
class PhoneSigninDto {
|
|
48
|
-
phone;
|
|
49
|
-
otp;
|
|
50
|
-
}
|
|
51
|
-
exports.PhoneSigninDto = PhoneSigninDto;
|
|
52
27
|
__decorate([
|
|
53
28
|
(0, class_validator_1.IsString)(),
|
|
54
29
|
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
55
30
|
(0, class_validator_1.IsNotEmpty)(),
|
|
56
|
-
(0, class_validator_1.MaxLength)(50),
|
|
57
31
|
__metadata("design:type", String)
|
|
58
|
-
],
|
|
32
|
+
], SignupDto.prototype, "otp", void 0);
|
|
59
33
|
__decorate([
|
|
60
|
-
(0, class_validator_1.IsString)(),
|
|
61
|
-
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
62
34
|
(0, class_validator_1.IsNotEmpty)(),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
email;
|
|
67
|
-
otp;
|
|
68
|
-
}
|
|
69
|
-
exports.EmailSigninDto = EmailSigninDto;
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, class_validator_1.IsEmail)(),
|
|
72
|
-
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
73
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
74
|
-
(0, class_validator_1.MaxLength)(50),
|
|
75
|
-
__metadata("design:type", String)
|
|
76
|
-
], EmailSigninDto.prototype, "email", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, class_validator_1.IsString)(),
|
|
79
|
-
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
80
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
81
|
-
__metadata("design:type", String)
|
|
82
|
-
], EmailSigninDto.prototype, "otp", void 0);
|
|
35
|
+
(0, class_validator_1.IsNumber)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], SignupDto.prototype, "countryId", void 0);
|
|
83
38
|
//# sourceMappingURL=sign.dto.js.map
|
package/lib/user/sign.dto.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign.dto.js","sourceRoot":"","sources":["../../src/user/sign.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"sign.dto.js","sourceRoot":"","sources":["../../src/user/sign.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,yDAA8C;AAE9C,MAAa,SAAS;IAKrB,KAAK,CAAS;IAKd,GAAG,CAAS;IAIZ,SAAS,CAAS;CAClB;AAfD,8BAeC;AAVA;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,4BAAU,GAAE;;wCACC;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,4BAAU,GAAE;;sCACD;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACO"}
|
package/lib/user/user.model.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import { Language } from "../language";
|
|
|
2
2
|
import { AccountStatus, Company, CompanyUser } from "../company";
|
|
3
3
|
import { Country } from "../system";
|
|
4
4
|
import { Agent } from "../agent";
|
|
5
|
+
import { Student } from "../student";
|
|
6
|
+
import { ProfileType } from "./profile.type";
|
|
5
7
|
export declare class User {
|
|
6
8
|
uid: string;
|
|
7
|
-
|
|
9
|
+
language: Language;
|
|
8
10
|
status: AccountStatus;
|
|
9
11
|
name: string;
|
|
10
12
|
phone: string;
|
|
@@ -17,12 +19,14 @@ export declare class User {
|
|
|
17
19
|
latitude: number;
|
|
18
20
|
longitude: number;
|
|
19
21
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
lastActivity: Date;
|
|
23
|
+
overdatedActivity: boolean;
|
|
24
|
+
selectedProfile: ProfileType;
|
|
25
|
+
student: Student;
|
|
26
|
+
agent: Agent;
|
|
27
|
+
instructor: CompanyUser;
|
|
28
|
+
companies: Company[];
|
|
22
29
|
country: Country;
|
|
23
30
|
company: Company;
|
|
24
|
-
instructor: CompanyUser;
|
|
25
|
-
agent: Agent;
|
|
26
|
-
companyUsers: CompanyUser[];
|
|
27
31
|
constructor(props?: Partial<User>);
|
|
28
32
|
}
|
package/lib/user/user.model.js
CHANGED
|
@@ -15,9 +15,11 @@ const language_1 = require("../language");
|
|
|
15
15
|
const company_1 = require("../company");
|
|
16
16
|
const system_1 = require("../system");
|
|
17
17
|
const agent_1 = require("../agent");
|
|
18
|
+
const student_1 = require("../student");
|
|
19
|
+
const profile_type_1 = require("./profile.type");
|
|
18
20
|
class User {
|
|
19
21
|
uid;
|
|
20
|
-
|
|
22
|
+
language;
|
|
21
23
|
status;
|
|
22
24
|
name;
|
|
23
25
|
phone;
|
|
@@ -27,13 +29,15 @@ class User {
|
|
|
27
29
|
address;
|
|
28
30
|
zipCode;
|
|
29
31
|
location;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
lastActivity;
|
|
33
|
+
overdatedActivity;
|
|
34
|
+
selectedProfile;
|
|
35
|
+
student;
|
|
36
|
+
agent;
|
|
37
|
+
instructor;
|
|
38
|
+
companies;
|
|
32
39
|
country;
|
|
33
40
|
company;
|
|
34
|
-
instructor;
|
|
35
|
-
agent;
|
|
36
|
-
companyUsers;
|
|
37
41
|
constructor(props) {
|
|
38
42
|
Object.assign(this, props);
|
|
39
43
|
}
|
|
@@ -46,7 +50,7 @@ __decorate([
|
|
|
46
50
|
__decorate([
|
|
47
51
|
(0, class_transformer_1.Expose)(),
|
|
48
52
|
__metadata("design:type", String)
|
|
49
|
-
], User.prototype, "
|
|
53
|
+
], User.prototype, "language", void 0);
|
|
50
54
|
__decorate([
|
|
51
55
|
(0, class_transformer_1.Expose)(),
|
|
52
56
|
__metadata("design:type", String)
|
|
@@ -86,29 +90,23 @@ __decorate([
|
|
|
86
90
|
], User.prototype, "location", void 0);
|
|
87
91
|
__decorate([
|
|
88
92
|
(0, class_transformer_1.Expose)(),
|
|
89
|
-
(0, class_transformer_1.Type)(() =>
|
|
90
|
-
__metadata("design:type",
|
|
91
|
-
], User.prototype, "
|
|
93
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
94
|
+
__metadata("design:type", Date)
|
|
95
|
+
], User.prototype, "lastActivity", void 0);
|
|
92
96
|
__decorate([
|
|
93
97
|
(0, class_transformer_1.Expose)(),
|
|
94
|
-
(0, class_transformer_1.Type)(() =>
|
|
95
|
-
__metadata("design:type",
|
|
96
|
-
], User.prototype, "
|
|
98
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
99
|
+
__metadata("design:type", Boolean)
|
|
100
|
+
], User.prototype, "overdatedActivity", void 0);
|
|
97
101
|
__decorate([
|
|
98
102
|
(0, class_transformer_1.Expose)(),
|
|
99
|
-
(
|
|
100
|
-
|
|
101
|
-
], User.prototype, "country", void 0);
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], User.prototype, "selectedProfile", void 0);
|
|
102
105
|
__decorate([
|
|
103
106
|
(0, class_transformer_1.Expose)(),
|
|
104
|
-
(0, class_transformer_1.Type)(() =>
|
|
105
|
-
__metadata("design:type",
|
|
106
|
-
], User.prototype, "
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, class_transformer_1.Expose)(),
|
|
109
|
-
(0, class_transformer_1.Type)(() => company_1.CompanyUser),
|
|
110
|
-
__metadata("design:type", company_1.CompanyUser)
|
|
111
|
-
], User.prototype, "instructor", void 0);
|
|
107
|
+
(0, class_transformer_1.Type)(() => student_1.Student),
|
|
108
|
+
__metadata("design:type", student_1.Student)
|
|
109
|
+
], User.prototype, "student", void 0);
|
|
112
110
|
__decorate([
|
|
113
111
|
(0, class_transformer_1.Expose)(),
|
|
114
112
|
(0, class_transformer_1.Type)(() => agent_1.Agent),
|
|
@@ -117,6 +115,21 @@ __decorate([
|
|
|
117
115
|
__decorate([
|
|
118
116
|
(0, class_transformer_1.Expose)(),
|
|
119
117
|
(0, class_transformer_1.Type)(() => company_1.CompanyUser),
|
|
118
|
+
__metadata("design:type", company_1.CompanyUser)
|
|
119
|
+
], User.prototype, "instructor", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, class_transformer_1.Expose)(),
|
|
122
|
+
(0, class_transformer_1.Type)(() => company_1.Company),
|
|
120
123
|
__metadata("design:type", Array)
|
|
121
|
-
], User.prototype, "
|
|
124
|
+
], User.prototype, "companies", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, class_transformer_1.Expose)(),
|
|
127
|
+
(0, class_transformer_1.Type)(() => system_1.Country),
|
|
128
|
+
__metadata("design:type", system_1.Country)
|
|
129
|
+
], User.prototype, "country", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, class_transformer_1.Expose)(),
|
|
132
|
+
(0, class_transformer_1.Type)(() => company_1.Company),
|
|
133
|
+
__metadata("design:type", company_1.Company)
|
|
134
|
+
], User.prototype, "company", void 0);
|
|
122
135
|
//# sourceMappingURL=user.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../src/user/user.model.ts"],"names":[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