@intelact/driveup 2.1.0 → 2.1.2
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/bank/account.model.d.ts +9 -0
- package/lib/bank/account.model.js +65 -0
- package/lib/bank/account.model.js.map +1 -0
- package/lib/bank/index.d.ts +1 -0
- package/lib/bank/index.js +18 -0
- package/lib/bank/index.js.map +1 -0
- package/lib/common/identity.d.ts +27 -0
- package/lib/common/identity.js +3 -0
- package/lib/common/identity.js.map +1 -0
- package/lib/common/person.d.ts +17 -0
- package/lib/common/person.js +82 -0
- package/lib/common/person.js.map +1 -0
- package/lib/course/course.model.d.ts +4 -2
- package/lib/course/course.model.js +9 -2
- package/lib/course/course.model.js.map +1 -1
- package/lib/driving/lesson/topic.dto.js +1 -0
- package/lib/driving/lesson/topic.dto.js.map +1 -1
- package/lib/feedback/feedback.model.d.ts +10 -0
- package/lib/feedback/feedback.model.js +66 -0
- package/lib/feedback/feedback.model.js.map +1 -0
- package/lib/feedback/index.d.ts +1 -0
- package/lib/feedback/index.js +18 -0
- package/lib/feedback/index.js.map +1 -0
- package/lib/geo/address.model.d.ts +11 -0
- package/lib/geo/address.model.js +53 -0
- package/lib/geo/address.model.js.map +1 -0
- package/lib/geo/coordinate.model.d.ts +4 -0
- package/lib/geo/coordinate.model.js +41 -0
- package/lib/geo/coordinate.model.js.map +1 -0
- package/lib/link/index.d.ts +1 -0
- package/lib/link/index.js +18 -0
- package/lib/link/index.js.map +1 -0
- package/lib/link/link.model.d.ts +55 -0
- package/lib/link/link.model.js +75 -0
- package/lib/link/link.model.js.map +1 -0
- package/lib/note/index.d.ts +1 -0
- package/lib/note/index.js +18 -0
- package/lib/note/index.js.map +1 -0
- package/lib/note/note.model.d.ts +9 -0
- package/lib/note/note.model.js +57 -0
- package/lib/note/note.model.js.map +1 -0
- package/lib/public/contact.dto.d.ts +18 -0
- package/lib/public/contact.dto.js +95 -0
- package/lib/public/contact.dto.js.map +1 -0
- package/lib/public/faq.model.d.ts +6 -0
- package/lib/public/faq.model.js +36 -0
- package/lib/public/faq.model.js.map +1 -0
- package/lib/public/feature.model.d.ts +179 -0
- package/lib/public/feature.model.js +349 -0
- package/lib/public/feature.model.js.map +1 -0
- package/lib/public/index.d.ts +5 -0
- package/lib/public/index.js +22 -0
- package/lib/public/index.js.map +1 -0
- package/lib/public/learning.model.d.ts +21 -0
- package/lib/public/learning.model.js +59 -0
- package/lib/public/learning.model.js.map +1 -0
- package/lib/public/testimonials.mapper.d.ts +23 -0
- package/lib/public/testimonials.mapper.js +60 -0
- package/lib/public/testimonials.mapper.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
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.Link = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
/**
|
|
15
|
+
* Global link definition
|
|
16
|
+
*
|
|
17
|
+
* @copyright Intelact Soltions Ltd.
|
|
18
|
+
*/
|
|
19
|
+
class Link {
|
|
20
|
+
/**
|
|
21
|
+
* ID attribute
|
|
22
|
+
*/
|
|
23
|
+
id;
|
|
24
|
+
/**
|
|
25
|
+
* Link title
|
|
26
|
+
*/
|
|
27
|
+
title;
|
|
28
|
+
/**
|
|
29
|
+
* Link title
|
|
30
|
+
*/
|
|
31
|
+
subtitle;
|
|
32
|
+
/**
|
|
33
|
+
* Solid icon
|
|
34
|
+
*/
|
|
35
|
+
icon;
|
|
36
|
+
/**
|
|
37
|
+
* Image url
|
|
38
|
+
* Usefull for background image or image icon url
|
|
39
|
+
*/
|
|
40
|
+
image;
|
|
41
|
+
/**
|
|
42
|
+
* Internal url
|
|
43
|
+
*/
|
|
44
|
+
url;
|
|
45
|
+
/**
|
|
46
|
+
* External link
|
|
47
|
+
*/
|
|
48
|
+
href;
|
|
49
|
+
/**
|
|
50
|
+
* Active indicator
|
|
51
|
+
*/
|
|
52
|
+
active;
|
|
53
|
+
/**
|
|
54
|
+
* Allowed permissions
|
|
55
|
+
*/
|
|
56
|
+
roles;
|
|
57
|
+
/**
|
|
58
|
+
* Any link options
|
|
59
|
+
* e.g. RouterLinkOPtions
|
|
60
|
+
*/
|
|
61
|
+
options;
|
|
62
|
+
/**
|
|
63
|
+
* Children items
|
|
64
|
+
*/
|
|
65
|
+
children;
|
|
66
|
+
constructor(props) {
|
|
67
|
+
Object.assign(this, props);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.Link = Link;
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
73
|
+
__metadata("design:type", Boolean)
|
|
74
|
+
], Link.prototype, "active", void 0);
|
|
75
|
+
//# sourceMappingURL=link.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.model.js","sourceRoot":"","sources":["../../src/link/link.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AAGzC;;;;GAIG;AACH,MAAa,IAAI;IAChB;;OAEG;IACH,EAAE,CAAU;IAEZ;;OAEG;IACH,KAAK,CAAU;IAEf;;OAEG;IACH,QAAQ,CAAU;IAElB;;OAEG;IACH,IAAI,CAAU;IAEd;;;OAGG;IACH,KAAK,CAAU;IAEf;;OAEG;IACH,GAAG,CAAU;IAEb;;OAEG;IACH,IAAI,CAAU;IAEd;;OAEG;IAEH,MAAM,CAAW;IAEjB;;OAEG;IACH,KAAK,CAAU;IAEf;;;OAGG;IACH,OAAO,CAAO;IAEd;;OAEG;IACH,QAAQ,CAAU;IAElB,YAAY,KAAoB;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA9DD,oBA8DC;AArBA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;oCACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './note.model';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./note.model"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/note/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.Note = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const user_model_1 = require("../user/user.model");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class Note {
|
|
17
|
+
id;
|
|
18
|
+
content;
|
|
19
|
+
image;
|
|
20
|
+
date;
|
|
21
|
+
user;
|
|
22
|
+
constructor(props) {
|
|
23
|
+
Object.assign(this, props);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.Note = Note;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], Note.prototype, "id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Note.prototype, "content", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Note.prototype, "image", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
49
|
+
__metadata("design:type", Date)
|
|
50
|
+
], Note.prototype, "date", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
|
55
|
+
__metadata("design:type", user_model_1.User)
|
|
56
|
+
], Note.prototype, "user", void 0);
|
|
57
|
+
//# sourceMappingURL=note.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"note.model.js","sourceRoot":"","sources":["../../src/note/note.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,mDAA0C;AAC1C,qDAAuD;AAGvD,MAAa,IAAI;IAKhB,EAAE,CAAS;IAMX,OAAO,CAAS;IAIhB,KAAK,CAAU;IAKf,IAAI,CAAO;IAKX,IAAI,CAAO;IAEX,YAAY,KAAqB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA9BD,oBA8BC;AAzBA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gCACR;AAMX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;qCACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;mCACM;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACX,IAAI;kCAAC;AAKX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACX,iBAAI;kCAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class PublicContactDto {
|
|
2
|
+
name: string;
|
|
3
|
+
email: string;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class PublicContactSalesDto {
|
|
7
|
+
name: string;
|
|
8
|
+
email: string;
|
|
9
|
+
phone: string;
|
|
10
|
+
country: string;
|
|
11
|
+
subject: string;
|
|
12
|
+
message: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class PublicContactPricingDto {
|
|
15
|
+
email: string;
|
|
16
|
+
country: string;
|
|
17
|
+
message: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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.PublicContactPricingDto = exports.PublicContactSalesDto = exports.PublicContactDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class PublicContactDto {
|
|
15
|
+
name;
|
|
16
|
+
email;
|
|
17
|
+
message;
|
|
18
|
+
}
|
|
19
|
+
exports.PublicContactDto = PublicContactDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], PublicContactDto.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
(0, class_validator_1.IsEmail)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PublicContactDto.prototype, "email", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], PublicContactDto.prototype, "message", void 0);
|
|
35
|
+
class PublicContactSalesDto {
|
|
36
|
+
name;
|
|
37
|
+
email;
|
|
38
|
+
phone;
|
|
39
|
+
country;
|
|
40
|
+
subject;
|
|
41
|
+
message;
|
|
42
|
+
}
|
|
43
|
+
exports.PublicContactSalesDto = PublicContactSalesDto;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], PublicContactSalesDto.prototype, "name", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsEmail)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], PublicContactSalesDto.prototype, "email", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], PublicContactSalesDto.prototype, "phone", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], PublicContactSalesDto.prototype, "country", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
66
|
+
(0, class_validator_1.IsString)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], PublicContactSalesDto.prototype, "subject", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
71
|
+
(0, class_validator_1.IsString)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], PublicContactSalesDto.prototype, "message", void 0);
|
|
74
|
+
class PublicContactPricingDto {
|
|
75
|
+
email;
|
|
76
|
+
country;
|
|
77
|
+
message;
|
|
78
|
+
}
|
|
79
|
+
exports.PublicContactPricingDto = PublicContactPricingDto;
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
82
|
+
(0, class_validator_1.IsEmail)(),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], PublicContactPricingDto.prototype, "email", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
87
|
+
(0, class_validator_1.IsString)(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], PublicContactPricingDto.prototype, "country", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
92
|
+
(0, class_validator_1.IsString)(),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], PublicContactPricingDto.prototype, "message", void 0);
|
|
95
|
+
//# sourceMappingURL=contact.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact.dto.js","sourceRoot":"","sources":["../../src/public/contact.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsF;AAEtF,MAAa,gBAAgB;IAG5B,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,OAAO,CAAS;CAChB;AAZD,4CAYC;AATA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;+CACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACK;AAGjB,MAAa,qBAAqB;IAGjC,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,KAAK,CAAS;IAId,OAAO,CAAS;IAIhB,OAAO,CAAS;IAIhB,OAAO,CAAS;CAChB;AAxBD,sDAwBC;AArBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;oDACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACK;AAGjB,MAAa,uBAAuB;IAGnC,KAAK,CAAS;IAId,OAAO,CAAS;IAIhB,OAAO,CAAS;CAChB;AAZD,0DAYC;AATA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;sDACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACK"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.FAQ = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
class FAQ {
|
|
15
|
+
title;
|
|
16
|
+
description;
|
|
17
|
+
sort;
|
|
18
|
+
constructor(props) {
|
|
19
|
+
Object.assign(this, props);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.FAQ = FAQ;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], FAQ.prototype, "title", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], FAQ.prototype, "description", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], FAQ.prototype, "sort", void 0);
|
|
36
|
+
//# sourceMappingURL=faq.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faq.model.js","sourceRoot":"","sources":["../../src/public/faq.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,MAAa,GAAG;IAGf,KAAK,CAAS;IAGd,WAAW,CAAS;IAIpB,IAAI,CAAS;IAEb,YAAY,KAAoB;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAfD,kBAeC;AAZA;IADC,IAAA,0BAAM,GAAE;;kCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;wCACW;AAIpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACN"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { ColorContext, Language } from '@driveup/shared';
|
|
2
|
+
export declare class FeatureSlider {
|
|
3
|
+
/**
|
|
4
|
+
* Language of the slider content
|
|
5
|
+
*/
|
|
6
|
+
language: Language;
|
|
7
|
+
/**
|
|
8
|
+
* Title of the slider content
|
|
9
|
+
*/
|
|
10
|
+
title: string;
|
|
11
|
+
/**
|
|
12
|
+
* Description of the slider content
|
|
13
|
+
*/
|
|
14
|
+
description: string;
|
|
15
|
+
/**
|
|
16
|
+
* Image URL of the slider content
|
|
17
|
+
*/
|
|
18
|
+
image: string;
|
|
19
|
+
/**
|
|
20
|
+
* Sort order
|
|
21
|
+
*/
|
|
22
|
+
sort: number;
|
|
23
|
+
constructor(props?: Partial<FeatureSlider>);
|
|
24
|
+
}
|
|
25
|
+
export declare class FeatureHeader {
|
|
26
|
+
/**
|
|
27
|
+
* Language of the header content
|
|
28
|
+
*/
|
|
29
|
+
language: Language;
|
|
30
|
+
/**
|
|
31
|
+
* Title of the header content
|
|
32
|
+
*/
|
|
33
|
+
title: string;
|
|
34
|
+
/**
|
|
35
|
+
* Description of the header content
|
|
36
|
+
*/
|
|
37
|
+
description: string;
|
|
38
|
+
/**
|
|
39
|
+
* Image URL of the header content
|
|
40
|
+
*/
|
|
41
|
+
image: string;
|
|
42
|
+
/**
|
|
43
|
+
* Additional content of the header
|
|
44
|
+
*/
|
|
45
|
+
content: string;
|
|
46
|
+
constructor(props?: Partial<FeatureHeader>);
|
|
47
|
+
}
|
|
48
|
+
export declare class FeatureShowcase {
|
|
49
|
+
/**
|
|
50
|
+
* Language of the showcase content
|
|
51
|
+
*/
|
|
52
|
+
language: Language;
|
|
53
|
+
/**
|
|
54
|
+
* Title of the showcase content
|
|
55
|
+
*/
|
|
56
|
+
title: string;
|
|
57
|
+
/**
|
|
58
|
+
* Description of the showcase content
|
|
59
|
+
*/
|
|
60
|
+
description: string;
|
|
61
|
+
/**
|
|
62
|
+
* Media URL which can redirect user to another page or open a video
|
|
63
|
+
*/
|
|
64
|
+
media: string;
|
|
65
|
+
/**
|
|
66
|
+
* Image URL of the showcase content
|
|
67
|
+
*/
|
|
68
|
+
image: string;
|
|
69
|
+
/**
|
|
70
|
+
* Position of the image relative to the text content (title & description)
|
|
71
|
+
*/
|
|
72
|
+
imagePosition: 'top' | 'bottom';
|
|
73
|
+
/**
|
|
74
|
+
* Sort order
|
|
75
|
+
*/
|
|
76
|
+
sort: number;
|
|
77
|
+
constructor(props?: Partial<FeatureShowcase>);
|
|
78
|
+
}
|
|
79
|
+
export declare class FeatureCard {
|
|
80
|
+
/**
|
|
81
|
+
* Language of the card content
|
|
82
|
+
*/
|
|
83
|
+
language: Language;
|
|
84
|
+
/**
|
|
85
|
+
* Title of the card content
|
|
86
|
+
*/
|
|
87
|
+
title: string;
|
|
88
|
+
/**
|
|
89
|
+
* Description of the card content
|
|
90
|
+
*/
|
|
91
|
+
description: string;
|
|
92
|
+
/**
|
|
93
|
+
* Media URL which can redirect user to another page or open a video
|
|
94
|
+
*/
|
|
95
|
+
media: string;
|
|
96
|
+
/**
|
|
97
|
+
* Sort order
|
|
98
|
+
*/
|
|
99
|
+
sort: number;
|
|
100
|
+
/**
|
|
101
|
+
* Context for the coloring of the card (e.g., Info, Success, Warning, Danger)
|
|
102
|
+
* - Used to determine the color scheme of the card
|
|
103
|
+
* - The type will be replaced with enums Color and ColorContext in the future
|
|
104
|
+
*/
|
|
105
|
+
context: ColorContext;
|
|
106
|
+
constructor(props?: Partial<FeatureCard>);
|
|
107
|
+
}
|
|
108
|
+
export declare class PublicFeatureItem {
|
|
109
|
+
/**
|
|
110
|
+
* Feature item name
|
|
111
|
+
* - Unique
|
|
112
|
+
* - Used as identifier for loads
|
|
113
|
+
* @example "finances"
|
|
114
|
+
*/
|
|
115
|
+
name: string;
|
|
116
|
+
/**
|
|
117
|
+
* The main explanation about the feature item
|
|
118
|
+
* - Displayed in the detailed view of the feature item
|
|
119
|
+
* - Language dependent content
|
|
120
|
+
* - JSON array of FeatureHeader objects
|
|
121
|
+
* - There should be one entry per supported language
|
|
122
|
+
* @example [{ language: Language.En, title: "Finance Management", description: "A description of the feature", image: "https://intelact-driveup.s3.eu-north-1.amazonaws.com/something", content: "some additional content that is shown bellow the title, description and the image" }]
|
|
123
|
+
*/
|
|
124
|
+
header: FeatureHeader;
|
|
125
|
+
/**
|
|
126
|
+
* Different features of the app, listed under this feature item
|
|
127
|
+
* - Displayed in the detailed view of the feature item
|
|
128
|
+
* - Language dependent content
|
|
129
|
+
* - JSON array of FeatureShowcase objects
|
|
130
|
+
* - There will most likely be more than one entry per supported language, to allow multiple features per language
|
|
131
|
+
* @example [{ language: Language.En, title: "Manage Invoices", description: "Feature description", media: "https://intelact-driveup.s3.eu-north-1.amazonaws.com/something", image: "https://intelact-driveup.s3.eu-north-1.amazonaws.com/something", imagePosition: "top", sort: 1 }]
|
|
132
|
+
*/
|
|
133
|
+
showcases: FeatureShowcase[];
|
|
134
|
+
/**
|
|
135
|
+
* Small perks and benefits of the feature item, displayed as cards, without images
|
|
136
|
+
* - Displayed in the detailed view of the feature item
|
|
137
|
+
* - Language dependent content
|
|
138
|
+
* - JSON array of FeatureCard objects
|
|
139
|
+
* - There should be one entry per supported language
|
|
140
|
+
* @example [{ language: Language.En, title: "Oversee Team", description: "Oversee the flows inside your driving school", media: "https://intelact-driveup.s3.eu-north-1.amazonaws.com/something", sort: 1, context: Context.Info }]
|
|
141
|
+
*/
|
|
142
|
+
cards: FeatureCard[];
|
|
143
|
+
/**
|
|
144
|
+
* Sort order
|
|
145
|
+
*/
|
|
146
|
+
sort: number;
|
|
147
|
+
constructor(props?: Partial<PublicFeatureItem>);
|
|
148
|
+
}
|
|
149
|
+
export declare class PublicFeature {
|
|
150
|
+
/**
|
|
151
|
+
* Feature name
|
|
152
|
+
* - Unique
|
|
153
|
+
* - Used as identifier for loads
|
|
154
|
+
* @example "backoffice", "instructorapp", "studentapp"
|
|
155
|
+
*/
|
|
156
|
+
name: string;
|
|
157
|
+
/**
|
|
158
|
+
* Feature title in the requested language
|
|
159
|
+
*/
|
|
160
|
+
title: string;
|
|
161
|
+
/**
|
|
162
|
+
* Feature items
|
|
163
|
+
*/
|
|
164
|
+
items: PublicFeatureItem[];
|
|
165
|
+
/**
|
|
166
|
+
* Brief overview of the feature item
|
|
167
|
+
* - Displayed in the feature items list view
|
|
168
|
+
* - Language dependent content
|
|
169
|
+
* - JSON array of FeatureSlider objects
|
|
170
|
+
* - There should be one entry per supported language
|
|
171
|
+
* @example [{ language: Language.En, title: "Back Office Dashboard", description: "Track performance all from a powerful, web-based dashboard designed for driving school owners and admins.", image: "https://intelact-driveup.s3.eu-north-1.amazonaws.com/something", sort: 1 }]
|
|
172
|
+
*/
|
|
173
|
+
sliders: FeatureSlider[];
|
|
174
|
+
/**
|
|
175
|
+
* Sort order
|
|
176
|
+
*/
|
|
177
|
+
sort: number;
|
|
178
|
+
constructor(props?: Partial<PublicFeature>);
|
|
179
|
+
}
|