@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.
Files changed (61) hide show
  1. package/lib/bank/account.model.d.ts +9 -0
  2. package/lib/bank/account.model.js +65 -0
  3. package/lib/bank/account.model.js.map +1 -0
  4. package/lib/bank/index.d.ts +1 -0
  5. package/lib/bank/index.js +18 -0
  6. package/lib/bank/index.js.map +1 -0
  7. package/lib/common/identity.d.ts +27 -0
  8. package/lib/common/identity.js +3 -0
  9. package/lib/common/identity.js.map +1 -0
  10. package/lib/common/person.d.ts +17 -0
  11. package/lib/common/person.js +82 -0
  12. package/lib/common/person.js.map +1 -0
  13. package/lib/course/course.model.d.ts +4 -2
  14. package/lib/course/course.model.js +9 -2
  15. package/lib/course/course.model.js.map +1 -1
  16. package/lib/driving/lesson/topic.dto.js +1 -0
  17. package/lib/driving/lesson/topic.dto.js.map +1 -1
  18. package/lib/feedback/feedback.model.d.ts +10 -0
  19. package/lib/feedback/feedback.model.js +66 -0
  20. package/lib/feedback/feedback.model.js.map +1 -0
  21. package/lib/feedback/index.d.ts +1 -0
  22. package/lib/feedback/index.js +18 -0
  23. package/lib/feedback/index.js.map +1 -0
  24. package/lib/geo/address.model.d.ts +11 -0
  25. package/lib/geo/address.model.js +53 -0
  26. package/lib/geo/address.model.js.map +1 -0
  27. package/lib/geo/coordinate.model.d.ts +4 -0
  28. package/lib/geo/coordinate.model.js +41 -0
  29. package/lib/geo/coordinate.model.js.map +1 -0
  30. package/lib/link/index.d.ts +1 -0
  31. package/lib/link/index.js +18 -0
  32. package/lib/link/index.js.map +1 -0
  33. package/lib/link/link.model.d.ts +55 -0
  34. package/lib/link/link.model.js +75 -0
  35. package/lib/link/link.model.js.map +1 -0
  36. package/lib/note/index.d.ts +1 -0
  37. package/lib/note/index.js +18 -0
  38. package/lib/note/index.js.map +1 -0
  39. package/lib/note/note.model.d.ts +9 -0
  40. package/lib/note/note.model.js +57 -0
  41. package/lib/note/note.model.js.map +1 -0
  42. package/lib/public/contact.dto.d.ts +18 -0
  43. package/lib/public/contact.dto.js +95 -0
  44. package/lib/public/contact.dto.js.map +1 -0
  45. package/lib/public/faq.model.d.ts +6 -0
  46. package/lib/public/faq.model.js +36 -0
  47. package/lib/public/faq.model.js.map +1 -0
  48. package/lib/public/feature.model.d.ts +179 -0
  49. package/lib/public/feature.model.js +349 -0
  50. package/lib/public/feature.model.js.map +1 -0
  51. package/lib/public/index.d.ts +5 -0
  52. package/lib/public/index.js +22 -0
  53. package/lib/public/index.js.map +1 -0
  54. package/lib/public/learning.model.d.ts +21 -0
  55. package/lib/public/learning.model.js +59 -0
  56. package/lib/public/learning.model.js.map +1 -0
  57. package/lib/public/testimonials.mapper.d.ts +23 -0
  58. package/lib/public/testimonials.mapper.js +60 -0
  59. package/lib/public/testimonials.mapper.js.map +1 -0
  60. package/lib/tsconfig.tsbuildinfo +1 -1
  61. package/package.json +1 -1
@@ -0,0 +1,9 @@
1
+ export declare class BankAccount {
2
+ id: number;
3
+ name: string;
4
+ bankName: string;
5
+ iban: string;
6
+ swift: string;
7
+ constructor(props?: Partial<BankAccount>);
8
+ static toInstance(props: any): BankAccount[];
9
+ }
@@ -0,0 +1,65 @@
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.BankAccount = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const utils_1 = require("../utils");
16
+ class BankAccount {
17
+ id;
18
+ name;
19
+ bankName;
20
+ iban;
21
+ swift;
22
+ constructor(props) {
23
+ Object.assign(this, props);
24
+ }
25
+ static toInstance(props) {
26
+ return (0, class_transformer_1.plainToInstance)(BankAccount, props);
27
+ }
28
+ }
29
+ exports.BankAccount = BankAccount;
30
+ __decorate([
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_transformer_1.Expose)(),
33
+ (0, utils_1.ToNumber)(),
34
+ (0, class_transformer_1.Type)(() => Number),
35
+ __metadata("design:type", Number)
36
+ ], BankAccount.prototype, "id", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsNotEmpty)(),
39
+ (0, class_validator_1.IsString)(),
40
+ (0, utils_1.Trim)(),
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", String)
43
+ ], BankAccount.prototype, "name", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsOptional)(),
46
+ (0, class_validator_1.IsString)(),
47
+ (0, utils_1.Trim)(),
48
+ (0, class_transformer_1.Expose)(),
49
+ __metadata("design:type", String)
50
+ ], BankAccount.prototype, "bankName", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsString)(),
53
+ (0, utils_1.Trim)(),
54
+ (0, class_validator_1.IsNotEmpty)(),
55
+ (0, class_transformer_1.Expose)(),
56
+ __metadata("design:type", String)
57
+ ], BankAccount.prototype, "iban", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsOptional)(),
60
+ (0, utils_1.Trim)(),
61
+ (0, class_validator_1.IsString)(),
62
+ (0, class_transformer_1.Expose)(),
63
+ __metadata("design:type", String)
64
+ ], BankAccount.prototype, "swift", void 0);
65
+ //# sourceMappingURL=account.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.model.js","sourceRoot":"","sources":["../../src/bank/account.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAkE;AAClE,qDAAmE;AACnE,oCAA0C;AAE1C,MAAa,WAAW;IAMvB,EAAE,CAAS;IAMX,IAAI,CAAS;IAMb,QAAQ,CAAS;IAMjB,IAAI,CAAS;IAMb,KAAK,CAAS;IAEd,YAAY,KAA4B;QACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,KAAU;QAC3B,OAAO,IAAA,mCAAe,EAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAC5C,CAAC;CACD;AAvCD,kCAuCC;AAjCA;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAQ,GAAE;IACV,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACR;AAMX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,YAAI,GAAE;IACN,IAAA,0BAAM,GAAE;;yCACI;AAMb;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,YAAI,GAAE;IACN,IAAA,0BAAM,GAAE;;6CACQ;AAMjB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,YAAI,GAAE;IACN,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;yCACI;AAMb;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,YAAI,GAAE;IACN,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;0CACK"}
@@ -0,0 +1 @@
1
+ export * from './account.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("./account.model"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bank/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * * Represents identity information for a user or entity.
3
+ * * This interface includes optional fields for name, image URL, description, phone number, and email.
4
+ * * It is used in notification systems to provide context about the initiator or target of a notification.
5
+ */
6
+ export interface IdentityInfo {
7
+ /**
8
+ * * The name of the identity.
9
+ */
10
+ name: string;
11
+ /**
12
+ * * The URL of the identity's image (optional).
13
+ */
14
+ imageUrl?: string;
15
+ /**
16
+ * * A brief description of the identity (optional).
17
+ */
18
+ description?: string;
19
+ /**
20
+ * * The phone number associated with the identity (optional).
21
+ */
22
+ phoneNumber?: string;
23
+ /**
24
+ * * The email address associated with the identity (optional).
25
+ */
26
+ email?: string;
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=identity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/common/identity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * * Represents identity information for a person.
3
+ * * This model includes optional fields for name, image URL, description, phone number, and email.
4
+ * * It is used in different modules to represent user identities.
5
+ * * Changes on this model can be reflected in different JSON fields in entities
6
+ */
7
+ export declare class Person {
8
+ id: number;
9
+ name: string;
10
+ imageUrl: string;
11
+ image: string;
12
+ description: string;
13
+ phone: string;
14
+ email: string;
15
+ constructor(props?: Partial<Person>);
16
+ static toInstance(props: Partial<Person>): Person;
17
+ }
@@ -0,0 +1,82 @@
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.Person = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ /**
16
+ * * Represents identity information for a person.
17
+ * * This model includes optional fields for name, image URL, description, phone number, and email.
18
+ * * It is used in different modules to represent user identities.
19
+ * * Changes on this model can be reflected in different JSON fields in entities
20
+ */
21
+ class Person {
22
+ id;
23
+ name;
24
+ imageUrl;
25
+ image;
26
+ description;
27
+ phone;
28
+ email;
29
+ constructor(props) {
30
+ Object.assign(this, props);
31
+ }
32
+ static toInstance(props) {
33
+ return (0, class_transformer_1.plainToInstance)(Person, props);
34
+ }
35
+ }
36
+ exports.Person = Person;
37
+ __decorate([
38
+ (0, class_transformer_1.Expose)(),
39
+ (0, class_transformer_1.Type)(() => Number),
40
+ (0, class_validator_1.IsOptional)(),
41
+ (0, class_validator_1.IsNumber)(),
42
+ (0, class_validator_1.Min)(1),
43
+ __metadata("design:type", Number)
44
+ ], Person.prototype, "id", void 0);
45
+ __decorate([
46
+ (0, class_transformer_1.Expose)(),
47
+ (0, class_validator_1.IsNotEmpty)(),
48
+ (0, class_validator_1.IsString)(),
49
+ __metadata("design:type", String)
50
+ ], Person.prototype, "name", void 0);
51
+ __decorate([
52
+ (0, class_transformer_1.Expose)(),
53
+ (0, class_validator_1.IsOptional)(),
54
+ (0, class_validator_1.IsString)(),
55
+ __metadata("design:type", String)
56
+ ], Person.prototype, "imageUrl", void 0);
57
+ __decorate([
58
+ (0, class_transformer_1.Expose)(),
59
+ (0, class_validator_1.IsOptional)(),
60
+ (0, class_validator_1.IsString)(),
61
+ __metadata("design:type", String)
62
+ ], Person.prototype, "image", void 0);
63
+ __decorate([
64
+ (0, class_transformer_1.Expose)(),
65
+ (0, class_validator_1.IsOptional)(),
66
+ (0, class_validator_1.IsString)(),
67
+ __metadata("design:type", String)
68
+ ], Person.prototype, "description", void 0);
69
+ __decorate([
70
+ (0, class_transformer_1.Expose)(),
71
+ (0, class_validator_1.IsNotEmpty)(),
72
+ (0, class_validator_1.IsString)(),
73
+ __metadata("design:type", String)
74
+ ], Person.prototype, "phone", void 0);
75
+ __decorate([
76
+ (0, class_transformer_1.Expose)(),
77
+ (0, class_validator_1.IsOptional)(),
78
+ (0, class_validator_1.IsString)(),
79
+ (0, class_validator_1.IsEmail)(),
80
+ __metadata("design:type", String)
81
+ ], Person.prototype, "email", void 0);
82
+ //# sourceMappingURL=person.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person.js","sourceRoot":"","sources":["../../src/common/person.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAkE;AAClE,qDAA2F;AAE3F;;;;;GAKG;AACH,MAAa,MAAM;IAOlB,EAAE,CAAS;IAKX,IAAI,CAAS;IAKb,QAAQ,CAAS;IAKjB,KAAK,CAAS;IAKd,WAAW,CAAS;IAKpB,KAAK,CAAS;IAMd,KAAK,CAAS;IAEd,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,KAAsB;QACvC,OAAO,IAAA,mCAAe,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC;CACD;AA/CD,wBA+CC;AAxCA;IALC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;kCACI;AAKX;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oCACE;AAKb;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCACM;AAKjB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qCACG;AAKd;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACS;AAKpB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qCACG;AAMd;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,GAAE;;qCACI"}
@@ -1,7 +1,8 @@
1
- import { StatusType, CourseType } from "@driveup/shared";
1
+ import { CourseType, StatusType } from "@driveup/shared";
2
+ import { Appointment } from "../calendar/appointment";
3
+ import { DrivingCategory } from "../driving";
2
4
  import { Instructor } from "../instructor/instructor.model";
3
5
  import { CoursePart } from "./part.model";
4
- import { Appointment } from "../calendar/appointment";
5
6
  export declare class Course {
6
7
  id: number;
7
8
  title: string;
@@ -27,6 +28,7 @@ export declare class Course {
27
28
  partsWithNoAppointments: CoursePart[];
28
29
  partsWithNoSeats: CoursePart[];
29
30
  appointmentsInHolidays: Appointment[];
31
+ drivingCategory: DrivingCategory;
30
32
  /************************* Student course training info *************************/
31
33
  lastStudentAppointment: Date;
32
34
  canceledAppointments: number;
@@ -10,11 +10,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Course = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
13
  const shared_1 = require("@driveup/shared");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const appointment_1 = require("../calendar/appointment");
16
+ const driving_1 = require("../driving");
15
17
  const instructor_model_1 = require("../instructor/instructor.model");
16
18
  const part_model_1 = require("./part.model");
17
- const appointment_1 = require("../calendar/appointment");
18
19
  class Course {
19
20
  id;
20
21
  title;
@@ -40,6 +41,7 @@ class Course {
40
41
  partsWithNoAppointments;
41
42
  partsWithNoSeats;
42
43
  appointmentsInHolidays;
44
+ drivingCategory;
43
45
  /************************* Student course training info *************************/
44
46
  lastStudentAppointment;
45
47
  canceledAppointments;
@@ -140,6 +142,11 @@ __decorate([
140
142
  (0, class_transformer_1.Type)(() => appointment_1.Appointment),
141
143
  __metadata("design:type", Array)
142
144
  ], Course.prototype, "appointmentsInHolidays", void 0);
145
+ __decorate([
146
+ (0, class_transformer_1.Expose)(),
147
+ (0, class_transformer_1.Type)(() => driving_1.DrivingCategory),
148
+ __metadata("design:type", driving_1.DrivingCategory)
149
+ ], Course.prototype, "drivingCategory", void 0);
143
150
  __decorate([
144
151
  (0, class_transformer_1.Expose)(),
145
152
  (0, class_transformer_1.Type)(() => Date),
@@ -1 +1 @@
1
- {"version":3,"file":"course.model.js","sourceRoot":"","sources":["../../src/course/course.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,4CAAyD;AACzD,qEAA4D;AAC5D,6CAA0C;AAC1C,yDAAsD;AAEtD,MAAa,MAAM;IAIlB,EAAE,CAAS;IAGX,KA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I;sDAAC;AAI7B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oDACU;AAI7B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACW;AAS9B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,6BAAU,CAAC;8BACX,6BAAU;0CAAC"}
@@ -34,6 +34,7 @@ __decorate([
34
34
  ], TopicSubmitDto.prototype, "description", void 0);
35
35
  __decorate([
36
36
  (0, class_validator_1.IsOptional)(),
37
+ (0, shared_1.ToBoolean)(),
37
38
  (0, class_validator_1.IsBoolean)(),
38
39
  __metadata("design:type", Boolean)
39
40
  ], TopicSubmitDto.prototype, "deleteImage", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"topic.dto.js","sourceRoot":"","sources":["../../../src/driving/lesson/topic.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA4D;AAC5D,qDAAwH;AAExH,uCAA6C;AAE7C,MAAa,cAAc;IAK1B,KAAK,CAAS;IAKd,WAAW,CAAS;IAIpB,WAAW,CAAU;IAKrB,MAAM,CAAmC;CACzC;AApBD,wCAoBC;AAfA;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,YAAI,GAAE;IACN,IAAA,4BAAU,GAAE;;6CACC;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,YAAI,GAAE;IACN,IAAA,0BAAQ,GAAE;;mDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;mDACS;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACT,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;;8CACsB;AAG1C,MAAa,aAAa;IAKzB,QAAQ,CAAS;IAKjB,MAAM,CAAW;CACjB;AAXD,sCAWC;AANA;IAHC,IAAA,0BAAQ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,IAAA,sBAAa,GAAE;;6CACC;AAGlB,MAAa,qBAAqB;IAGjC,MAAM,CAAa;IAKnB,KAAK,CAAS;CACd;AATD,sDASC;AANA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,mBAAU,CAAC;;qDACA;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,YAAI,GAAE;;oDACO"}
@@ -0,0 +1,10 @@
1
+ import { User } from "../user/user.model";
2
+ export declare class Feedback {
3
+ id: number;
4
+ user: User;
5
+ title: string;
6
+ content: string;
7
+ createdBy: any;
8
+ createdOn: Date;
9
+ constructor(props?: Partial<Feedback>);
10
+ }
@@ -0,0 +1,66 @@
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.Feedback = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const user_model_1 = require("../user/user.model");
16
+ class Feedback {
17
+ id;
18
+ user;
19
+ title;
20
+ content;
21
+ createdBy;
22
+ createdOn;
23
+ constructor(props) {
24
+ Object.assign(this, props);
25
+ }
26
+ }
27
+ exports.Feedback = Feedback;
28
+ __decorate([
29
+ (0, class_transformer_1.Expose)(),
30
+ (0, class_transformer_1.Type)(() => Number),
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsNumber)(),
33
+ __metadata("design:type", Number)
34
+ ], Feedback.prototype, "id", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ (0, class_transformer_1.Type)(() => user_model_1.User),
38
+ (0, class_validator_1.IsOptional)(),
39
+ __metadata("design:type", user_model_1.User)
40
+ ], Feedback.prototype, "user", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Expose)(),
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsString)(),
45
+ (0, class_transformer_1.Transform)(({ value }) => value?.trim()),
46
+ __metadata("design:type", String)
47
+ ], Feedback.prototype, "title", void 0);
48
+ __decorate([
49
+ (0, class_transformer_1.Expose)(),
50
+ (0, class_validator_1.IsOptional)(),
51
+ (0, class_validator_1.IsString)(),
52
+ (0, class_transformer_1.Transform)(({ value }) => value?.trim()),
53
+ __metadata("design:type", String)
54
+ ], Feedback.prototype, "content", void 0);
55
+ __decorate([
56
+ (0, class_transformer_1.Expose)(),
57
+ (0, class_validator_1.IsOptional)(),
58
+ __metadata("design:type", Object)
59
+ ], Feedback.prototype, "createdBy", void 0);
60
+ __decorate([
61
+ (0, class_transformer_1.Expose)(),
62
+ (0, class_transformer_1.Type)(() => Date),
63
+ (0, class_validator_1.IsOptional)(),
64
+ __metadata("design:type", Date)
65
+ ], Feedback.prototype, "createdOn", void 0);
66
+ //# sourceMappingURL=feedback.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feedback.model.js","sourceRoot":"","sources":["../../src/feedback/feedback.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,qDAAiE;AAEjE,mDAA0C;AAG1C,MAAa,QAAQ;IAMpB,EAAE,CAAS;IAKX,IAAI,CAAO;IAMX,KAAK,CAAS;IAMd,OAAO,CAAS;IAIhB,SAAS,CAAM;IAKf,SAAS,CAAO;IAEhB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AArCD,4BAqCC;AA/BA;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oCACA;AAKX;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;IAChB,IAAA,4BAAU,GAAE;8BACP,iBAAI;sCAAC;AAMX;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;;uCAC1B;AAMd;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;;yCACxB;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;2CACE;AAKf;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,4BAAU,GAAE;8BACF,IAAI;2CAAC"}
@@ -0,0 +1 @@
1
+ export * from './feedback.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("./feedback.model"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/feedback/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -0,0 +1,11 @@
1
+ import { Coordinate } from "./coordinate.model";
2
+ export declare class Address {
3
+ id?: number;
4
+ title?: string;
5
+ address?: string;
6
+ place?: string;
7
+ zipCode?: string;
8
+ coord?: Coordinate;
9
+ /************************* methods *************************/
10
+ constructor(props?: Partial<Address>);
11
+ }
@@ -0,0 +1,53 @@
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.Address = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const coordinate_model_1 = require("./coordinate.model");
15
+ class Address {
16
+ id;
17
+ title;
18
+ address;
19
+ place;
20
+ zipCode;
21
+ coord;
22
+ /************************* methods *************************/
23
+ constructor(props) {
24
+ Object.assign(this, props);
25
+ }
26
+ }
27
+ exports.Address = Address;
28
+ __decorate([
29
+ (0, class_transformer_1.Expose)(),
30
+ (0, class_transformer_1.Type)(() => Number),
31
+ __metadata("design:type", Number)
32
+ ], Address.prototype, "id", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", String)
36
+ ], Address.prototype, "title", void 0);
37
+ __decorate([
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], Address.prototype, "address", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Expose)(),
43
+ __metadata("design:type", String)
44
+ ], Address.prototype, "place", void 0);
45
+ __decorate([
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", String)
48
+ ], Address.prototype, "zipCode", void 0);
49
+ __decorate([
50
+ (0, class_transformer_1.Expose)(),
51
+ __metadata("design:type", coordinate_model_1.Coordinate)
52
+ ], Address.prototype, "coord", void 0);
53
+ //# sourceMappingURL=address.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.model.js","sourceRoot":"","sources":["../../src/geo/address.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,yDAAgD;AAEhD,MAAa,OAAO;IAInB,EAAE,CAAU;IAGT,KAAK,CAAU;IAGlB,OAAO,CAAU;IAGjB,KAAK,CAAU;IAGf,OAAO,CAAU;IAGjB,KAAK,CAAc;IAEnB,6DAA6D;IAE7D,YAAY,KAAwB;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA1BD,0BA0BC;AAtBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mCACP;AAGT;IADF,IAAA,0BAAM,GAAE;;sCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;wCACQ;AAGjB;IADC,IAAA,0BAAM,GAAE;;sCACM;AAGf;IADC,IAAA,0BAAM,GAAE;;wCACQ;AAGjB;IADC,IAAA,0BAAM,GAAE;8BACD,6BAAU;sCAAC"}
@@ -0,0 +1,4 @@
1
+ export declare class Coordinate {
2
+ latitude: number;
3
+ longitude: number;
4
+ }
@@ -0,0 +1,41 @@
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.Coordinate = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const utils_1 = require("../utils");
15
+ const class_validator_1 = require("class-validator");
16
+ class Coordinate {
17
+ latitude;
18
+ longitude;
19
+ }
20
+ exports.Coordinate = Coordinate;
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ (0, class_transformer_1.Type)(() => Number),
24
+ (0, utils_1.MutuallyRequired)('longitude'),
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsNumber)(),
27
+ (0, class_validator_1.Min)(-90),
28
+ (0, class_validator_1.Max)(90),
29
+ __metadata("design:type", Number)
30
+ ], Coordinate.prototype, "latitude", void 0);
31
+ __decorate([
32
+ (0, class_transformer_1.Expose)(),
33
+ (0, class_transformer_1.Type)(() => Number),
34
+ (0, utils_1.MutuallyRequired)('latitude'),
35
+ (0, class_validator_1.IsOptional)(),
36
+ (0, class_validator_1.IsNumber)(),
37
+ (0, class_validator_1.Min)(-180),
38
+ (0, class_validator_1.Max)(180),
39
+ __metadata("design:type", Number)
40
+ ], Coordinate.prototype, "longitude", void 0);
41
+ //# sourceMappingURL=coordinate.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coordinate.model.js","sourceRoot":"","sources":["../../src/geo/coordinate.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,oCAA4C;AAC5C,qDAAiE;AAEjE,MAAa,UAAU;IAStB,QAAQ,CAAS;IASjB,SAAS,CAAS;CAClB;AAnBD,gCAmBC;AAVA;IAPC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,wBAAgB,EAAC,WAAW,CAAC;IAC7B,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,EAAE,CAAC;IACR,IAAA,qBAAG,EAAC,EAAE,CAAC;;4CACS;AASjB;IAPC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,wBAAgB,EAAC,UAAU,CAAC;IAC5B,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,GAAG,CAAC;IACT,IAAA,qBAAG,EAAC,GAAG,CAAC;;6CACS"}
@@ -0,0 +1 @@
1
+ export * from './link.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("./link.model"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/link/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
@@ -0,0 +1,55 @@
1
+ import { Role } from "@driveup/shared";
2
+ /**
3
+ * Global link definition
4
+ *
5
+ * @copyright Intelact Soltions Ltd.
6
+ */
7
+ export declare class Link {
8
+ /**
9
+ * ID attribute
10
+ */
11
+ id?: string;
12
+ /**
13
+ * Link title
14
+ */
15
+ title?: string;
16
+ /**
17
+ * Link title
18
+ */
19
+ subtitle?: string;
20
+ /**
21
+ * Solid icon
22
+ */
23
+ icon?: string;
24
+ /**
25
+ * Image url
26
+ * Usefull for background image or image icon url
27
+ */
28
+ image?: string;
29
+ /**
30
+ * Internal url
31
+ */
32
+ url?: string;
33
+ /**
34
+ * External link
35
+ */
36
+ href?: string;
37
+ /**
38
+ * Active indicator
39
+ */
40
+ active?: boolean;
41
+ /**
42
+ * Allowed permissions
43
+ */
44
+ roles?: Role[];
45
+ /**
46
+ * Any link options
47
+ * e.g. RouterLinkOPtions
48
+ */
49
+ options?: any;
50
+ /**
51
+ * Children items
52
+ */
53
+ children?: Link[];
54
+ constructor(props: Partial<Link>);
55
+ }