@alba-cars/common-modules 1.10.5 → 1.10.7
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.
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { UserCreateDTO, UserGetDTO, UserUpdateDTO } from "../../../auth";
|
|
2
2
|
export declare enum Designation {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
SALES_MANAGER = "sales-manager",
|
|
4
|
+
SALES_EXECUTIVE = "sales-executive",
|
|
5
|
+
CO_FOUNDER = "co-founder",
|
|
6
|
+
CSO = "cso",
|
|
7
|
+
PURCHASE_MANAGER = "Purchase Manager"
|
|
8
|
+
}
|
|
9
|
+
export declare enum TeamCategory {
|
|
10
|
+
SALES = "sales",
|
|
11
|
+
MANAGEMENT = "management"
|
|
5
12
|
}
|
|
6
13
|
export declare enum Languages {
|
|
7
14
|
ARABIC = "Arabic",
|
|
@@ -46,6 +53,7 @@ export declare class SalesAgentGetDTO {
|
|
|
46
53
|
agentIntro?: string;
|
|
47
54
|
bioVideoUrl?: string;
|
|
48
55
|
status: number;
|
|
56
|
+
teamCategory: TeamCategory;
|
|
49
57
|
designation: Designation;
|
|
50
58
|
languages: Languages[];
|
|
51
59
|
isActive: boolean;
|
|
@@ -63,6 +71,7 @@ export declare class SalesAgentCreateDTO {
|
|
|
63
71
|
agentIntro?: string;
|
|
64
72
|
bioVideoUrl?: string;
|
|
65
73
|
status?: number;
|
|
74
|
+
teamCategory: TeamCategory;
|
|
66
75
|
designation: Designation;
|
|
67
76
|
languages: Languages[];
|
|
68
77
|
validate(): string[];
|
|
@@ -79,6 +88,7 @@ export declare class SalesAgentUpdateDTO {
|
|
|
79
88
|
agentIntro?: string;
|
|
80
89
|
bioVideoUrl?: string;
|
|
81
90
|
status?: number;
|
|
91
|
+
teamCategory?: TeamCategory;
|
|
82
92
|
designation?: Designation;
|
|
83
93
|
languages?: Languages[];
|
|
84
94
|
isActive?: boolean;
|
|
@@ -9,15 +9,23 @@ 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.SalesAgentUpdateDTO = exports.SalesAgentCreateDTO = exports.SalesAgentGetDTO = exports.Languages = exports.Designation = void 0;
|
|
12
|
+
exports.SalesAgentUpdateDTO = exports.SalesAgentCreateDTO = exports.SalesAgentGetDTO = exports.Languages = exports.TeamCategory = exports.Designation = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const auth_1 = require("../../../auth");
|
|
16
16
|
var Designation;
|
|
17
17
|
(function (Designation) {
|
|
18
|
-
Designation["
|
|
19
|
-
Designation["
|
|
18
|
+
Designation["SALES_MANAGER"] = "sales-manager";
|
|
19
|
+
Designation["SALES_EXECUTIVE"] = "sales-executive";
|
|
20
|
+
Designation["CO_FOUNDER"] = "co-founder";
|
|
21
|
+
Designation["CSO"] = "cso";
|
|
22
|
+
Designation["PURCHASE_MANAGER"] = "Purchase Manager";
|
|
20
23
|
})(Designation = exports.Designation || (exports.Designation = {}));
|
|
24
|
+
var TeamCategory;
|
|
25
|
+
(function (TeamCategory) {
|
|
26
|
+
TeamCategory["SALES"] = "sales";
|
|
27
|
+
TeamCategory["MANAGEMENT"] = "management";
|
|
28
|
+
})(TeamCategory = exports.TeamCategory || (exports.TeamCategory = {}));
|
|
21
29
|
var Languages;
|
|
22
30
|
(function (Languages) {
|
|
23
31
|
// Middle Eastern Languages
|
|
@@ -104,6 +112,10 @@ __decorate([
|
|
|
104
112
|
(0, class_validator_1.IsNumber)(),
|
|
105
113
|
__metadata("design:type", Number)
|
|
106
114
|
], SalesAgentGetDTO.prototype, "status", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, class_validator_1.IsEnum)(TeamCategory),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], SalesAgentGetDTO.prototype, "teamCategory", void 0);
|
|
107
119
|
__decorate([
|
|
108
120
|
(0, class_validator_1.IsEnum)(Designation),
|
|
109
121
|
__metadata("design:type", String)
|
|
@@ -153,7 +165,8 @@ class SalesAgentCreateDTO {
|
|
|
153
165
|
designation: this.designation,
|
|
154
166
|
languages: this.languages,
|
|
155
167
|
agentIntro: this.agentIntro,
|
|
156
|
-
bioVideoUrl: this.bioVideoUrl
|
|
168
|
+
bioVideoUrl: this.bioVideoUrl,
|
|
169
|
+
teamCategory: this.teamCategory
|
|
157
170
|
};
|
|
158
171
|
}
|
|
159
172
|
static fromPlain(plain) {
|
|
@@ -196,6 +209,10 @@ __decorate([
|
|
|
196
209
|
(0, class_validator_1.IsOptional)(),
|
|
197
210
|
__metadata("design:type", Number)
|
|
198
211
|
], SalesAgentCreateDTO.prototype, "status", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, class_validator_1.IsEnum)(TeamCategory),
|
|
214
|
+
__metadata("design:type", String)
|
|
215
|
+
], SalesAgentCreateDTO.prototype, "teamCategory", void 0);
|
|
199
216
|
__decorate([
|
|
200
217
|
(0, class_validator_1.IsEnum)(Designation),
|
|
201
218
|
__metadata("design:type", String)
|
|
@@ -235,6 +252,10 @@ class SalesAgentUpdateDTO {
|
|
|
235
252
|
salesAgentData.agentIntro = this.agentIntro;
|
|
236
253
|
if (this.bioVideoUrl)
|
|
237
254
|
salesAgentData.bioVideoUrl = this.bioVideoUrl;
|
|
255
|
+
if (this.teamCategory)
|
|
256
|
+
salesAgentData.teamCategory = this.teamCategory;
|
|
257
|
+
if (this.isActive)
|
|
258
|
+
salesAgentData.isActive = this.isActive;
|
|
238
259
|
return salesAgentData;
|
|
239
260
|
}
|
|
240
261
|
static fromPlain(plain) {
|
|
@@ -280,6 +301,11 @@ __decorate([
|
|
|
280
301
|
(0, class_validator_1.IsNumber)(),
|
|
281
302
|
__metadata("design:type", Number)
|
|
282
303
|
], SalesAgentUpdateDTO.prototype, "status", void 0);
|
|
304
|
+
__decorate([
|
|
305
|
+
(0, class_validator_1.IsOptional)(),
|
|
306
|
+
(0, class_validator_1.IsEnum)(TeamCategory),
|
|
307
|
+
__metadata("design:type", String)
|
|
308
|
+
], SalesAgentUpdateDTO.prototype, "teamCategory", void 0);
|
|
283
309
|
__decorate([
|
|
284
310
|
(0, class_validator_1.IsOptional)(),
|
|
285
311
|
(0, class_validator_1.IsEnum)(Designation),
|
package/package.json
CHANGED