@intelact/driveup 0.5.2 → 0.5.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/lib/agent/agent.model.d.ts +2 -0
- package/lib/agent/agent.model.js +6 -0
- package/lib/agent/agent.model.js.map +1 -1
- package/lib/common/general.dto.js +6 -4
- 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 +3 -0
- package/lib/company/driving/category.model.js +17 -0
- package/lib/company/driving/category.model.js.map +1 -1
- package/lib/company/driving/dto.js +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 +10 -0
- package/lib/company/student/student.model.js +43 -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 +9 -3
- package/lib/student/student.model.js +26 -8
- 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 +6 -0
- package/lib/user/index.js +6 -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.device.model.d.ts +7 -0
- package/lib/user/user.device.model.js +40 -0
- package/lib/user/user.device.model.js.map +1 -0
- package/lib/user/user.model.d.ts +11 -6
- package/lib/user/user.model.js +44 -25
- package/lib/user/user.model.js.map +1 -1
- package/package.json +1 -1
|
@@ -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.PhoneVerifyDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class PhoneVerifyDto {
|
|
16
|
+
phone;
|
|
17
|
+
otp;
|
|
18
|
+
}
|
|
19
|
+
exports.PhoneVerifyDto = PhoneVerifyDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], PhoneVerifyDto.prototype, "phone", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
29
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], PhoneVerifyDto.prototype, "otp", void 0);
|
|
32
|
+
//# sourceMappingURL=phone.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone.dto.js","sourceRoot":"","sources":["../../src/user/phone.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAAuD;AAEvD,MAAa,cAAc;IAI1B,KAAK,CAAS;IAKd,GAAG,CAAS;CACZ;AAVD,wCAUC;AANA;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,4BAAU,GAAE;;6CACC;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;;2CACD"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.ChangeProfileDto = exports.CreateProfileDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const language_1 = require("../language");
|
|
15
|
+
const profile_type_1 = require("./profile.type");
|
|
16
|
+
class CreateProfileDto {
|
|
17
|
+
type;
|
|
18
|
+
language;
|
|
19
|
+
}
|
|
20
|
+
exports.CreateProfileDto = CreateProfileDto;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
(0, class_validator_1.IsEnum)(profile_type_1.ProfileType),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CreateProfileDto.prototype, "type", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
(0, class_validator_1.IsEnum)(language_1.Language),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CreateProfileDto.prototype, "language", void 0);
|
|
31
|
+
class ChangeProfileDto {
|
|
32
|
+
type;
|
|
33
|
+
id;
|
|
34
|
+
}
|
|
35
|
+
exports.ChangeProfileDto = ChangeProfileDto;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
(0, class_validator_1.IsEnum)(profile_type_1.ProfileType),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ChangeProfileDto.prototype, "type", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
(0, class_validator_1.IsNumber)(),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], ChangeProfileDto.prototype, "id", void 0);
|
|
46
|
+
//# sourceMappingURL=profile.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.dto.js","sourceRoot":"","sources":["../../src/user/profile.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAC3E,0CAAuC;AACvC,iDAA6C;AAE7C,MAAa,gBAAgB;IAI5B,IAAI,CAAc;IAIlB,QAAQ,CAAW;CACnB;AATD,4CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,0BAAW,CAAC;;8CACF;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,mBAAQ,CAAC;;kDACE;AAGpB,MAAa,gBAAgB;IAI5B,IAAI,CAAc;IAIlB,EAAE,CAAS;CACX;AATD,4CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,0BAAW,CAAC;;8CACF;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACA"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.UserDevice = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
class UserDevice {
|
|
15
|
+
type;
|
|
16
|
+
name;
|
|
17
|
+
biometricKey;
|
|
18
|
+
description;
|
|
19
|
+
constructor(props) {
|
|
20
|
+
Object.assign(this, props);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.UserDevice = UserDevice;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], UserDevice.prototype, "type", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], UserDevice.prototype, "name", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], UserDevice.prototype, "biometricKey", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], UserDevice.prototype, "description", void 0);
|
|
40
|
+
//# sourceMappingURL=user.device.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.device.model.js","sourceRoot":"","sources":["../../src/user/user.device.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAE3C,MAAa,UAAU;IAGtB,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,YAAY,CAAS;IAGrB,WAAW,CAAS;IAIpB,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAnBD,gCAmBC;AAhBA;IADC,IAAA,0BAAM,GAAE;;wCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;wCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;gDACY;AAGrB;IADC,IAAA,0BAAM,GAAE;;+CACW"}
|
package/lib/user/user.model.d.ts
CHANGED
|
@@ -2,9 +2,12 @@ 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 {
|
|
8
|
+
id: number;
|
|
6
9
|
uid: string;
|
|
7
|
-
|
|
10
|
+
language: Language;
|
|
8
11
|
status: AccountStatus;
|
|
9
12
|
name: string;
|
|
10
13
|
phone: string;
|
|
@@ -17,12 +20,14 @@ export declare class User {
|
|
|
17
20
|
latitude: number;
|
|
18
21
|
longitude: number;
|
|
19
22
|
};
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
lastActivity: Date;
|
|
24
|
+
overdatedActivity: boolean;
|
|
25
|
+
selectedProfile: ProfileType;
|
|
26
|
+
student: Student;
|
|
27
|
+
agent: Agent;
|
|
28
|
+
instructor: CompanyUser;
|
|
29
|
+
companies: Company[];
|
|
22
30
|
country: Country;
|
|
23
31
|
company: Company;
|
|
24
|
-
instructor: CompanyUser;
|
|
25
|
-
agent: Agent;
|
|
26
|
-
companyUsers: CompanyUser[];
|
|
27
32
|
constructor(props?: Partial<User>);
|
|
28
33
|
}
|
package/lib/user/user.model.js
CHANGED
|
@@ -15,9 +15,12 @@ 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 {
|
|
21
|
+
id;
|
|
19
22
|
uid;
|
|
20
|
-
|
|
23
|
+
language;
|
|
21
24
|
status;
|
|
22
25
|
name;
|
|
23
26
|
phone;
|
|
@@ -27,18 +30,25 @@ class User {
|
|
|
27
30
|
address;
|
|
28
31
|
zipCode;
|
|
29
32
|
location;
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
lastActivity;
|
|
34
|
+
overdatedActivity;
|
|
35
|
+
selectedProfile;
|
|
36
|
+
student;
|
|
37
|
+
agent;
|
|
38
|
+
instructor;
|
|
39
|
+
companies;
|
|
32
40
|
country;
|
|
33
41
|
company;
|
|
34
|
-
instructor;
|
|
35
|
-
agent;
|
|
36
|
-
companyUsers;
|
|
37
42
|
constructor(props) {
|
|
38
43
|
Object.assign(this, props);
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
exports.User = User;
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], User.prototype, "id", void 0);
|
|
42
52
|
__decorate([
|
|
43
53
|
(0, class_transformer_1.Expose)(),
|
|
44
54
|
__metadata("design:type", String)
|
|
@@ -46,7 +56,7 @@ __decorate([
|
|
|
46
56
|
__decorate([
|
|
47
57
|
(0, class_transformer_1.Expose)(),
|
|
48
58
|
__metadata("design:type", String)
|
|
49
|
-
], User.prototype, "
|
|
59
|
+
], User.prototype, "language", void 0);
|
|
50
60
|
__decorate([
|
|
51
61
|
(0, class_transformer_1.Expose)(),
|
|
52
62
|
__metadata("design:type", String)
|
|
@@ -86,29 +96,23 @@ __decorate([
|
|
|
86
96
|
], User.prototype, "location", void 0);
|
|
87
97
|
__decorate([
|
|
88
98
|
(0, class_transformer_1.Expose)(),
|
|
89
|
-
(0, class_transformer_1.Type)(() =>
|
|
90
|
-
__metadata("design:type",
|
|
91
|
-
], User.prototype, "
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, class_transformer_1.Expose)(),
|
|
94
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
95
|
-
__metadata("design:type", Number)
|
|
96
|
-
], User.prototype, "totalSeenNotifications", void 0);
|
|
99
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
100
|
+
__metadata("design:type", Date)
|
|
101
|
+
], User.prototype, "lastActivity", void 0);
|
|
97
102
|
__decorate([
|
|
98
103
|
(0, class_transformer_1.Expose)(),
|
|
99
|
-
(0, class_transformer_1.Type)(() =>
|
|
100
|
-
__metadata("design:type",
|
|
101
|
-
], User.prototype, "
|
|
104
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
105
|
+
__metadata("design:type", Boolean)
|
|
106
|
+
], User.prototype, "overdatedActivity", void 0);
|
|
102
107
|
__decorate([
|
|
103
108
|
(0, class_transformer_1.Expose)(),
|
|
104
|
-
(
|
|
105
|
-
|
|
106
|
-
], User.prototype, "company", void 0);
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], User.prototype, "selectedProfile", void 0);
|
|
107
111
|
__decorate([
|
|
108
112
|
(0, class_transformer_1.Expose)(),
|
|
109
|
-
(0, class_transformer_1.Type)(() =>
|
|
110
|
-
__metadata("design:type",
|
|
111
|
-
], User.prototype, "
|
|
113
|
+
(0, class_transformer_1.Type)(() => student_1.Student),
|
|
114
|
+
__metadata("design:type", student_1.Student)
|
|
115
|
+
], User.prototype, "student", void 0);
|
|
112
116
|
__decorate([
|
|
113
117
|
(0, class_transformer_1.Expose)(),
|
|
114
118
|
(0, class_transformer_1.Type)(() => agent_1.Agent),
|
|
@@ -117,6 +121,21 @@ __decorate([
|
|
|
117
121
|
__decorate([
|
|
118
122
|
(0, class_transformer_1.Expose)(),
|
|
119
123
|
(0, class_transformer_1.Type)(() => company_1.CompanyUser),
|
|
124
|
+
__metadata("design:type", company_1.CompanyUser)
|
|
125
|
+
], User.prototype, "instructor", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, class_transformer_1.Expose)(),
|
|
128
|
+
(0, class_transformer_1.Type)(() => company_1.Company),
|
|
120
129
|
__metadata("design:type", Array)
|
|
121
|
-
], User.prototype, "
|
|
130
|
+
], User.prototype, "companies", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, class_transformer_1.Expose)(),
|
|
133
|
+
(0, class_transformer_1.Type)(() => system_1.Country),
|
|
134
|
+
__metadata("design:type", system_1.Country)
|
|
135
|
+
], User.prototype, "country", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, class_transformer_1.Expose)(),
|
|
138
|
+
(0, class_transformer_1.Type)(() => company_1.Company),
|
|
139
|
+
__metadata("design:type", company_1.Company)
|
|
140
|
+
], User.prototype, "company", void 0);
|
|
122
141
|
//# sourceMappingURL=user.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../src/user/user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,0CAAuC;AACvC,wCAAiE;AACjE,sCAAoC;AACpC,oCAAiC;
|
|
1
|
+
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../src/user/user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,0CAAuC;AACvC,wCAAiE;AACjE,sCAAoC;AACpC,oCAAiC;AACjC,wCAAqC;AACrC,iDAA6C;AAS7C,MAAa,IAAI;IAGhB,EAAE,CAAS;IAGX,GAAG,CAAS;IAGZ,QAAQ,CAAW;IAKnB,MAAM,CAAgB;IAKtB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,SAAS,CAAS;IAGlB,KAAK,CAAS;IAId,QAAQ,CAAO;IAGf,OAAO,CAAS;IAGhB,OAAO,CAAS;IAGb,QAAQ,CAA0C;IAMrD,YAAY,CAAO;IAInB,iBAAiB,CAAU;IAK3B,eAAe,CAAc;IAI7B,OAAO,CAAU;IAIjB,KAAK,CAAQ;IAIb,UAAU,CAAc;IAIxB,SAAS,CAAY;IAMrB,OAAO,CAAU;IAIjB,OAAO,CAAU;IAIjB,YAAY,KAAqB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAzFD,oBAyFC;AAtFA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;iCACG;AAGZ;IADC,IAAA,0BAAM,GAAE;;sCACU;AAKnB;IADC,IAAA,0BAAM,GAAE;;oCACa;AAKtB;IADC,IAAA,0BAAM,GAAE;;kCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;mCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;uCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;mCACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACP,IAAI;sCAAC;AAGf;IADC,IAAA,0BAAM,GAAE;;qCACO;AAGhB;IADC,IAAA,0BAAM,GAAE;;qCACO;AAGb;IADF,IAAA,0BAAM,GAAE;;sCAC4C;AAMrD;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACH,IAAI;0CAAC;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;+CACO;AAK3B;IADC,IAAA,0BAAM,GAAE;;6CACoB;AAI7B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAO,CAAC;8BACX,iBAAO;qCAAC;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAK,CAAC;8BACX,aAAK;mCAAC;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAW,CAAC;8BACZ,qBAAW;wCAAC;AAIxB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAO,CAAC;;uCACC;AAMrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gBAAO,CAAC;8BACX,gBAAO;qCAAC;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAO,CAAC;8BACX,iBAAO;qCAAC"}
|