@intelact/driveup 0.5.4 → 0.5.21
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 +3 -5
- package/lib/common/general.dto.js.map +1 -1
- package/lib/company/common/general.dto.d.ts +0 -12
- package/lib/company/common/general.dto.js +1 -49
- package/lib/company/common/general.dto.js.map +1 -1
- package/lib/company/company.model.d.ts +0 -1
- package/lib/company/company.model.js +0 -5
- 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 +0 -2
- package/lib/company/driving/category.model.js +0 -12
- package/lib/company/driving/category.model.js.map +1 -1
- package/lib/company/student/student.model.d.ts +1 -1
- package/lib/company/student/student.model.js +2 -2
- package/lib/company/team/index.d.ts +0 -1
- package/lib/company/team/index.js +0 -1
- package/lib/company/team/index.js.map +1 -1
- package/lib/company/team/user.model.d.ts +1 -6
- package/lib/company/team/user.model.js +2 -7
- package/lib/company/team/user.model.js.map +1 -1
- package/lib/system/country.model.d.ts +0 -1
- package/lib/system/country.model.js +0 -5
- package/lib/system/country.model.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/user/index.d.ts +0 -5
- package/lib/user/index.js +0 -5
- package/lib/user/index.js.map +1 -1
- package/lib/user/sign.dto.d.ts +12 -1
- package/lib/user/sign.dto.js +52 -7
- package/lib/user/sign.dto.js.map +1 -1
- package/lib/user/user.model.d.ts +7 -9
- package/lib/user/user.model.js +29 -35
- package/lib/user/user.model.js.map +1 -1
- package/package.json +1 -1
- package/lib/company/team/team.dto.d.ts +0 -6
- package/lib/company/team/team.dto.js +0 -39
- package/lib/company/team/team.dto.js.map +0 -1
- package/lib/user/biometric.dto.d.ts +0 -3
- package/lib/user/biometric.dto.js +0 -25
- package/lib/user/biometric.dto.js.map +0 -1
- package/lib/user/email.dto.d.ts +0 -4
- package/lib/user/email.dto.js +0 -32
- package/lib/user/email.dto.js.map +0 -1
- package/lib/user/phone.dto.d.ts +0 -4
- package/lib/user/phone.dto.js +0 -32
- package/lib/user/phone.dto.js.map +0 -1
- package/lib/user/profile.dto.d.ts +0 -10
- package/lib/user/profile.dto.js +0 -46
- package/lib/user/profile.dto.js.map +0 -1
- package/lib/user/profile.type.d.ts +0 -5
- package/lib/user/profile.type.js +0 -10
- package/lib/user/profile.type.js.map +0 -1
package/lib/user/user.model.js
CHANGED
|
@@ -16,10 +16,9 @@ const company_1 = require("../company");
|
|
|
16
16
|
const system_1 = require("../system");
|
|
17
17
|
const agent_1 = require("../agent");
|
|
18
18
|
const student_1 = require("../student");
|
|
19
|
-
const profile_type_1 = require("./profile.type");
|
|
20
19
|
class User {
|
|
21
20
|
uid;
|
|
22
|
-
|
|
21
|
+
appLanguage;
|
|
23
22
|
status;
|
|
24
23
|
name;
|
|
25
24
|
phone;
|
|
@@ -29,15 +28,14 @@ class User {
|
|
|
29
28
|
address;
|
|
30
29
|
zipCode;
|
|
31
30
|
location;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
selectedProfile;
|
|
35
|
-
student;
|
|
36
|
-
agent;
|
|
37
|
-
instructor;
|
|
38
|
-
companies;
|
|
31
|
+
totalUnseenNotifications;
|
|
32
|
+
totalSeenNotifications;
|
|
39
33
|
country;
|
|
40
34
|
company;
|
|
35
|
+
instructor;
|
|
36
|
+
agent;
|
|
37
|
+
student;
|
|
38
|
+
companyUsers;
|
|
41
39
|
constructor(props) {
|
|
42
40
|
Object.assign(this, props);
|
|
43
41
|
}
|
|
@@ -50,7 +48,7 @@ __decorate([
|
|
|
50
48
|
__decorate([
|
|
51
49
|
(0, class_transformer_1.Expose)(),
|
|
52
50
|
__metadata("design:type", String)
|
|
53
|
-
], User.prototype, "
|
|
51
|
+
], User.prototype, "appLanguage", void 0);
|
|
54
52
|
__decorate([
|
|
55
53
|
(0, class_transformer_1.Expose)(),
|
|
56
54
|
__metadata("design:type", String)
|
|
@@ -90,28 +88,24 @@ __decorate([
|
|
|
90
88
|
], User.prototype, "location", void 0);
|
|
91
89
|
__decorate([
|
|
92
90
|
(0, class_transformer_1.Expose)(),
|
|
93
|
-
(0, class_transformer_1.Type)(() =>
|
|
94
|
-
__metadata("design:type",
|
|
95
|
-
], User.prototype, "
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, class_transformer_1.Expose)(),
|
|
98
|
-
(0, class_transformer_1.Type)(() => Boolean),
|
|
99
|
-
__metadata("design:type", Boolean)
|
|
100
|
-
], User.prototype, "overdatedActivity", void 0);
|
|
91
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
92
|
+
__metadata("design:type", Number)
|
|
93
|
+
], User.prototype, "totalUnseenNotifications", void 0);
|
|
101
94
|
__decorate([
|
|
102
95
|
(0, class_transformer_1.Expose)(),
|
|
103
|
-
|
|
104
|
-
|
|
96
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
97
|
+
__metadata("design:type", Number)
|
|
98
|
+
], User.prototype, "totalSeenNotifications", void 0);
|
|
105
99
|
__decorate([
|
|
106
100
|
(0, class_transformer_1.Expose)(),
|
|
107
|
-
(0, class_transformer_1.Type)(() =>
|
|
108
|
-
__metadata("design:type",
|
|
109
|
-
], User.prototype, "
|
|
101
|
+
(0, class_transformer_1.Type)(() => system_1.Country),
|
|
102
|
+
__metadata("design:type", system_1.Country)
|
|
103
|
+
], User.prototype, "country", void 0);
|
|
110
104
|
__decorate([
|
|
111
105
|
(0, class_transformer_1.Expose)(),
|
|
112
|
-
(0, class_transformer_1.Type)(() =>
|
|
113
|
-
__metadata("design:type",
|
|
114
|
-
], User.prototype, "
|
|
106
|
+
(0, class_transformer_1.Type)(() => company_1.Company),
|
|
107
|
+
__metadata("design:type", company_1.Company)
|
|
108
|
+
], User.prototype, "company", void 0);
|
|
115
109
|
__decorate([
|
|
116
110
|
(0, class_transformer_1.Expose)(),
|
|
117
111
|
(0, class_transformer_1.Type)(() => company_1.CompanyUser),
|
|
@@ -119,17 +113,17 @@ __decorate([
|
|
|
119
113
|
], User.prototype, "instructor", void 0);
|
|
120
114
|
__decorate([
|
|
121
115
|
(0, class_transformer_1.Expose)(),
|
|
122
|
-
(0, class_transformer_1.Type)(() =>
|
|
123
|
-
__metadata("design:type",
|
|
124
|
-
], User.prototype, "
|
|
116
|
+
(0, class_transformer_1.Type)(() => agent_1.Agent),
|
|
117
|
+
__metadata("design:type", agent_1.Agent)
|
|
118
|
+
], User.prototype, "agent", void 0);
|
|
125
119
|
__decorate([
|
|
126
120
|
(0, class_transformer_1.Expose)(),
|
|
127
|
-
(0, class_transformer_1.Type)(() =>
|
|
128
|
-
__metadata("design:type",
|
|
129
|
-
], User.prototype, "
|
|
121
|
+
(0, class_transformer_1.Type)(() => student_1.Student),
|
|
122
|
+
__metadata("design:type", student_1.Student)
|
|
123
|
+
], User.prototype, "student", void 0);
|
|
130
124
|
__decorate([
|
|
131
125
|
(0, class_transformer_1.Expose)(),
|
|
132
|
-
(0, class_transformer_1.Type)(() => company_1.
|
|
133
|
-
__metadata("design:type",
|
|
134
|
-
], User.prototype, "
|
|
126
|
+
(0, class_transformer_1.Type)(() => company_1.CompanyUser),
|
|
127
|
+
__metadata("design:type", Array)
|
|
128
|
+
], User.prototype, "companyUsers", void 0);
|
|
135
129
|
//# 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;AACjC,wCAAqC;
|
|
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;AASrC,MAAa,IAAI;IAEhB,GAAG,CAAS;IAGZ,WAAW,CAAW;IAKtB,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;IAIrD,wBAAwB,CAAS;IAIjC,sBAAsB,CAAS;IAM/B,OAAO,CAAU;IAIjB,OAAO,CAAU;IAIjB,UAAU,CAAc;IAIxB,KAAK,CAAQ;IAIb,OAAO,CAAU;IAIjB,YAAY,CAAgB;IAI5B,YAAY,KAAqB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA9ED,oBA8EC;AA5EA;IADC,IAAA,0BAAM,GAAE;;iCACG;AAGZ;IADC,IAAA,0BAAM,GAAE;;yCACa;AAKtB;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;AAIrD;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sDACc;AAIjC;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oDACY;AAM/B;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;AAIjB;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,aAAK,CAAC;8BACX,aAAK;mCAAC;AAIb;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,qBAAW,CAAC;;0CACI"}
|
package/package.json
CHANGED
|
@@ -1,39 +0,0 @@
|
|
|
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.CompanyUserInviteDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const security_1 = require("../../security");
|
|
16
|
-
class CompanyUserInviteDto {
|
|
17
|
-
name;
|
|
18
|
-
phone;
|
|
19
|
-
role;
|
|
20
|
-
}
|
|
21
|
-
exports.CompanyUserInviteDto = CompanyUserInviteDto;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
25
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], CompanyUserInviteDto.prototype, "name", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
31
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], CompanyUserInviteDto.prototype, "phone", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
-
(0, class_validator_1.IsEnum)(security_1.Role),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], CompanyUserInviteDto.prototype, "role", void 0);
|
|
39
|
-
//# sourceMappingURL=team.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"team.dto.js","sourceRoot":"","sources":["../../../src/company/team/team.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAA+D;AAC/D,6CAAsC;AAEtC,MAAa,oBAAoB;IAIhC,IAAI,CAAS;IAKb,KAAK,CAAS;IAId,IAAI,CAAO;CACX;AAdD,oDAcC;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;;kDACA;AAKb;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,4BAAU,GAAE;;mDACC;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAI,CAAC;;kDACF"}
|
|
@@ -1,25 +0,0 @@
|
|
|
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.BiometricKeyDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
class BiometricKeyDto {
|
|
16
|
-
key;
|
|
17
|
-
}
|
|
18
|
-
exports.BiometricKeyDto = BiometricKeyDto;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_validator_1.IsString)(),
|
|
21
|
-
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
22
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], BiometricKeyDto.prototype, "key", void 0);
|
|
25
|
-
//# sourceMappingURL=biometric.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"biometric.dto.js","sourceRoot":"","sources":["../../src/user/biometric.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAAuD;AAEvD,MAAa,eAAe;IAK3B,GAAG,CAAS;CACZ;AAND,0CAMC;AADA;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,4BAAU,GAAE;;4CACD"}
|
package/lib/user/email.dto.d.ts
DELETED
package/lib/user/email.dto.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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.EmailVerifyDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
class EmailVerifyDto {
|
|
16
|
-
email;
|
|
17
|
-
otp;
|
|
18
|
-
}
|
|
19
|
-
exports.EmailVerifyDto = EmailVerifyDto;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsEmail)(),
|
|
22
|
-
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
23
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], EmailVerifyDto.prototype, "email", 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
|
-
], EmailVerifyDto.prototype, "otp", void 0);
|
|
32
|
-
//# sourceMappingURL=email.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"email.dto.js","sourceRoot":"","sources":["../../src/user/email.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAAgE;AAEhE,MAAa,cAAc;IAK1B,KAAK,CAAS;IAKd,GAAG,CAAS;CACZ;AAXD,wCAWC;AANA;IAHC,IAAA,yBAAO,GAAE;IACT,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"}
|
package/lib/user/phone.dto.d.ts
DELETED
package/lib/user/phone.dto.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/lib/user/profile.dto.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/lib/user/profile.type.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|