@intelact/driveup 2.1.3 → 2.1.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.
Files changed (65) hide show
  1. package/lib/agent/agent.model.d.ts +1 -0
  2. package/lib/agent/agent.model.js +6 -1
  3. package/lib/agent/agent.model.js.map +1 -1
  4. package/lib/bank/account.model.d.ts +9 -0
  5. package/lib/bank/account.model.js +65 -0
  6. package/lib/bank/account.model.js.map +1 -0
  7. package/lib/bank/index.d.ts +1 -0
  8. package/lib/bank/index.js +18 -0
  9. package/lib/bank/index.js.map +1 -0
  10. package/lib/common/identity.d.ts +27 -0
  11. package/lib/common/identity.js +3 -0
  12. package/lib/common/identity.js.map +1 -0
  13. package/lib/common/person.d.ts +17 -0
  14. package/lib/common/person.js +82 -0
  15. package/lib/common/person.js.map +1 -0
  16. package/lib/feedback/feedback.model.d.ts +10 -0
  17. package/lib/feedback/feedback.model.js +66 -0
  18. package/lib/feedback/feedback.model.js.map +1 -0
  19. package/lib/feedback/index.d.ts +1 -0
  20. package/lib/feedback/index.js +18 -0
  21. package/lib/feedback/index.js.map +1 -0
  22. package/lib/geo/address.model.d.ts +11 -0
  23. package/lib/geo/address.model.js +53 -0
  24. package/lib/geo/address.model.js.map +1 -0
  25. package/lib/geo/coordinate.model.d.ts +4 -0
  26. package/lib/geo/coordinate.model.js +41 -0
  27. package/lib/geo/coordinate.model.js.map +1 -0
  28. package/lib/link/index.d.ts +1 -0
  29. package/lib/link/index.js +18 -0
  30. package/lib/link/index.js.map +1 -0
  31. package/lib/link/link.model.d.ts +55 -0
  32. package/lib/link/link.model.js +75 -0
  33. package/lib/link/link.model.js.map +1 -0
  34. package/lib/note/index.d.ts +1 -0
  35. package/lib/note/index.js +18 -0
  36. package/lib/note/index.js.map +1 -0
  37. package/lib/note/note.model.d.ts +9 -0
  38. package/lib/note/note.model.js +57 -0
  39. package/lib/note/note.model.js.map +1 -0
  40. package/lib/public/contact.dto.d.ts +18 -0
  41. package/lib/public/contact.dto.js +95 -0
  42. package/lib/public/contact.dto.js.map +1 -0
  43. package/lib/public/faq.model.d.ts +6 -0
  44. package/lib/public/faq.model.js +36 -0
  45. package/lib/public/faq.model.js.map +1 -0
  46. package/lib/public/feature.model.d.ts +179 -0
  47. package/lib/public/feature.model.js +349 -0
  48. package/lib/public/feature.model.js.map +1 -0
  49. package/lib/public/index.d.ts +5 -0
  50. package/lib/public/index.js +22 -0
  51. package/lib/public/index.js.map +1 -0
  52. package/lib/public/learning.model.d.ts +21 -0
  53. package/lib/public/learning.model.js +59 -0
  54. package/lib/public/learning.model.js.map +1 -0
  55. package/lib/public/testimonials.mapper.d.ts +23 -0
  56. package/lib/public/testimonials.mapper.js +60 -0
  57. package/lib/public/testimonials.mapper.js.map +1 -0
  58. package/lib/student/student.dto.d.ts +2 -1
  59. package/lib/student/student.dto.js +14 -12
  60. package/lib/student/student.dto.js.map +1 -1
  61. package/lib/student/student.model.d.ts +2 -2
  62. package/lib/student/student.model.js +2 -1
  63. package/lib/student/student.model.js.map +1 -1
  64. package/lib/tsconfig.tsbuildinfo +1 -1
  65. package/package.json +2 -2
@@ -2,6 +2,7 @@ import { AccountStatus, BankAccount } from "@driveup/shared";
2
2
  import { Metric } from "../metric";
3
3
  export declare class Agent {
4
4
  id: number;
5
+ code: string;
5
6
  status: AccountStatus;
6
7
  percentage: number;
7
8
  bankAccount: BankAccount;
@@ -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.Agent = void 0;
13
- const shared_1 = require("@driveup/shared");
14
13
  const class_transformer_1 = require("class-transformer");
14
+ const shared_1 = require("@driveup/shared");
15
15
  const metric_1 = require("../metric");
16
16
  class Agent {
17
17
  id;
18
+ code;
18
19
  status;
19
20
  percentage;
20
21
  bankAccount;
@@ -31,6 +32,10 @@ __decorate([
31
32
  (0, class_transformer_1.Type)(() => Number),
32
33
  __metadata("design:type", Number)
33
34
  ], Agent.prototype, "id", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", String)
38
+ ], Agent.prototype, "code", void 0);
34
39
  __decorate([
35
40
  (0, class_transformer_1.Expose)(),
36
41
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"agent.model.js","sourceRoot":"","sources":["../../src/agent/agent.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA6D;AAC7D,yDAAiD;AAEjD,sCAAmC;AAEnC,MAAa,KAAK;IAIjB,EAAE,CAAS;IAGX,MAAM,CAAgB;IAItB,UAAU,CAAS;IAInB,WAAW,CAAc;IAIzB,kBAAkB,CAAS;IAI3B,eAAe,CAAS;IAIxB,OAAO,CAAW;IAElB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhCD,sBAgCC;AA5BA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;qCACa;AAItB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yCACA;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oBAAW,CAAC;8BACX,oBAAW;0CAAC;AAIzB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iDACQ;AAI3B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACK;AAIxB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;;sCACD"}
1
+ {"version":3,"file":"agent.model.js","sourceRoot":"","sources":["../../src/agent/agent.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,4CAA6D;AAE7D,sCAAmC;AAEnC,MAAa,KAAK;IAIjB,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,MAAM,CAAgB;IAItB,UAAU,CAAS;IAInB,WAAW,CAAc;IAIzB,kBAAkB,CAAS;IAI3B,eAAe,CAAS;IAIxB,OAAO,CAAW;IAElB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAnCD,sBAmCC;AA/BA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;mCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;qCACa;AAItB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yCACA;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oBAAW,CAAC;8BACX,oBAAW;0CAAC;AAIzB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iDACQ;AAI3B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACK;AAIxB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;;sCACD"}
@@ -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"}
@@ -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
+ }