@driveup/schema 0.2.9 → 0.3.1

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 (94) hide show
  1. package/lib/catalog/priceplan/priceplan.entity.d.ts +3 -3
  2. package/lib/catalog/priceplan/priceplan.entity.js +1 -1
  3. package/lib/catalog/priceplan/priceplan.entity.js.map +1 -1
  4. package/lib/catalog/product/country.entity.d.ts +9 -1
  5. package/lib/catalog/product/country.entity.js +18 -1
  6. package/lib/catalog/product/country.entity.js.map +1 -1
  7. package/lib/catalog/product/priceplan.entity.d.ts +1 -18
  8. package/lib/catalog/product/priceplan.entity.js +3 -35
  9. package/lib/catalog/product/priceplan.entity.js.map +1 -1
  10. package/lib/catalog/seed/assets/asset.entity.d.ts +2 -2
  11. package/lib/catalog/seed/assets/asset.entity.js +1 -2
  12. package/lib/catalog/seed/assets/asset.entity.js.map +1 -1
  13. package/lib/index.d.ts +5 -0
  14. package/lib/index.js +6 -0
  15. package/lib/index.js.map +1 -1
  16. package/lib/profile/agent/asset.entity.d.ts +2 -2
  17. package/lib/profile/agent/asset.entity.js +1 -2
  18. package/lib/profile/agent/asset.entity.js.map +1 -1
  19. package/lib/profile/agent/promotion.entity.d.ts +3 -11
  20. package/lib/profile/agent/promotion.entity.js +3 -15
  21. package/lib/profile/agent/promotion.entity.js.map +1 -1
  22. package/lib/profile/company/company.entity.js.map +1 -1
  23. package/lib/profile/company/course/lesson.entity.d.ts +6 -6
  24. package/lib/profile/company/course/lesson.entity.js +6 -6
  25. package/lib/profile/company/course/lesson.entity.js.map +1 -1
  26. package/lib/profile/company/finances/billing/item.entity.d.ts +9 -0
  27. package/lib/profile/company/finances/billing/item.entity.js +12 -0
  28. package/lib/profile/company/finances/billing/item.entity.js.map +1 -1
  29. package/lib/profile/company/finances/invoice/invoice.entity.d.ts +2 -2
  30. package/lib/profile/company/finances/invoice/invoice.entity.js +2 -2
  31. package/lib/profile/company/finances/invoice/invoice.entity.js.map +1 -1
  32. package/lib/profile/company/instructor/instructor.entity.d.ts +12 -7
  33. package/lib/profile/company/instructor/instructor.entity.js +14 -9
  34. package/lib/profile/company/instructor/instructor.entity.js.map +1 -1
  35. package/lib/profile/student/program/training/appointment.entity.d.ts +7 -10
  36. package/lib/profile/student/program/training/appointment.entity.js +14 -14
  37. package/lib/profile/student/program/training/appointment.entity.js.map +1 -1
  38. package/lib/profile/student/program/training/training-balance.view.d.ts +4 -0
  39. package/lib/profile/student/program/training/training-balance.view.js +37 -0
  40. package/lib/profile/student/program/training/training-balance.view.js.map +1 -0
  41. package/lib/profile/student/program/training/training-cost.view.d.ts +4 -0
  42. package/lib/profile/student/program/training/training-cost.view.js +45 -0
  43. package/lib/profile/student/program/training/training-cost.view.js.map +1 -0
  44. package/lib/profile/student/program/training/training-sessions.view.d.ts +8 -0
  45. package/lib/profile/student/program/training/training-sessions.view.js +50 -0
  46. package/lib/profile/student/program/training/training-sessions.view.js.map +1 -0
  47. package/lib/profile/student/program/training/training.entity.d.ts +2 -0
  48. package/lib/profile/student/program/training/training.entity.js +6 -0
  49. package/lib/profile/student/program/training/training.entity.js.map +1 -1
  50. package/lib/profile/student/program/training/transaction.entity.js +1 -1
  51. package/lib/profile/student/program/training/transaction.entity.js.map +1 -1
  52. package/lib/public/faq.d.ts +25 -0
  53. package/lib/public/faq.entity.d.ts +25 -0
  54. package/lib/public/faq.entity.js +60 -0
  55. package/lib/public/faq.entity.js.map +1 -0
  56. package/lib/public/faq.js +60 -0
  57. package/lib/public/faq.js.map +1 -0
  58. package/lib/public/feature-item.d.ts +54 -0
  59. package/lib/public/feature-item.entity.d.ts +54 -0
  60. package/lib/public/feature-item.entity.js +78 -0
  61. package/lib/public/feature-item.entity.js.map +1 -0
  62. package/lib/public/feature-item.js +78 -0
  63. package/lib/public/feature-item.js.map +1 -0
  64. package/lib/public/feature.d.ts +46 -0
  65. package/lib/public/feature.entity.d.ts +46 -0
  66. package/lib/public/feature.entity.js +76 -0
  67. package/lib/public/feature.entity.js.map +1 -0
  68. package/lib/public/feature.js +76 -0
  69. package/lib/public/feature.js.map +1 -0
  70. package/lib/public/learning-hub.d.ts +30 -0
  71. package/lib/public/learning-hub.entity.d.ts +30 -0
  72. package/lib/public/learning-hub.entity.js +77 -0
  73. package/lib/public/learning-hub.entity.js.map +1 -0
  74. package/lib/public/learning-hub.js +77 -0
  75. package/lib/public/learning-hub.js.map +1 -0
  76. package/lib/public/testimonial.d.ts +40 -0
  77. package/lib/public/testimonial.entity.d.ts +40 -0
  78. package/lib/public/testimonial.entity.js +85 -0
  79. package/lib/public/testimonial.entity.js.map +1 -0
  80. package/lib/public/testimonial.js +85 -0
  81. package/lib/public/testimonial.js.map +1 -0
  82. package/lib/system/country/country.entity.d.ts +5 -3
  83. package/lib/system/country/country.entity.js +11 -6
  84. package/lib/system/country/country.entity.js.map +1 -1
  85. package/lib/system/staff/staff.entity.d.ts +2 -2
  86. package/lib/system/staff/staff.entity.js +1 -1
  87. package/lib/system/staff/staff.entity.js.map +1 -1
  88. package/lib/tsconfig.tsbuildinfo +1 -1
  89. package/lib/user/ticket.entity.d.ts +2 -2
  90. package/lib/user/ticket.entity.js +1 -1
  91. package/lib/user/ticket.entity.js.map +1 -1
  92. package/lib/utils/activity.helper.d.ts +2 -2
  93. package/lib/utils/activity.helper.js.map +1 -1
  94. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-item.js","sourceRoot":"","sources":["../../src/public/feature-item.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA4E;AAE5E,uCAAgD;AAGzC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAuFnC,6DAA6D;IAE7D,YAAY,KAAwC;QACnD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD,CAAA;AA5FY,0DAAuB;AAMnC;IADC,IAAA,gCAAsB,GAAE;;mDACd;AAQX;IAHC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,KAAK;KACf,CAAC;;0DACgB;AAYlB;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,IAAI;KACZ,CAAC;;qDACW;AASb;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACV,CAAC;;qDACW;AAeb;IALC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;uDACsB;AAexB;IALC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;0DAC2B;AAe7B;IALC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;sDACmB;AAKrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6BAAmB,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;;wDACzB;kCArF1B,uBAAuB;IADnC,IAAA,gBAAM,EAAC,oBAAoB,CAAC;;GAChB,uBAAuB,CA4FnC"}
@@ -0,0 +1,46 @@
1
+ import { FeatureSlider, Language } from '@driveup/shared';
2
+ import { PublicFeatureItemEntity } from './feature-item';
3
+ export declare class PublicFeatureEntity {
4
+ /**
5
+ * Primary key - auto-generated sequential ID
6
+ */
7
+ id: number;
8
+ /**
9
+ * Feature name
10
+ * - Unique
11
+ * - Used as identifier for loads
12
+ * @example "backoffice", "instructorapp", "studentapp"
13
+ */
14
+ name: string;
15
+ /**
16
+ * Sort order
17
+ */
18
+ sort: number;
19
+ /**
20
+ * Whether or not the feature is ative, and should be shown
21
+ */
22
+ active: boolean;
23
+ /**
24
+ * Brief overview of the feature item
25
+ * - Displayed in the feature items list view
26
+ * - Language dependent content
27
+ * - JSON array of FeatureSlider objects
28
+ * - There should be one entry per supported language
29
+ * @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 }]
30
+ */
31
+ sliders: FeatureSlider[];
32
+ /**
33
+ * Language dependent content
34
+ * - JSON array of objects with language and content fields
35
+ * - There should be one entry per supported language
36
+ * @example [{ language: Language.En, title: "Driving School Back Office" }]
37
+ */
38
+ translations: {
39
+ language: Language;
40
+ title: string;
41
+ }[];
42
+ /************************* Relations *************************/
43
+ items: Promise<PublicFeatureItemEntity[]>;
44
+ /************************* Methods *************************/
45
+ constructor(props?: Partial<PublicFeatureEntity>);
46
+ }
@@ -0,0 +1,46 @@
1
+ import { FeatureSlider, Language } from '@driveup/shared';
2
+ import { PublicFeatureItemEntity } from './feature-item.entity';
3
+ export declare class PublicFeatureEntity {
4
+ /**
5
+ * Primary key - auto-generated sequential ID
6
+ */
7
+ id: number;
8
+ /**
9
+ * Feature name
10
+ * - Unique
11
+ * - Used as identifier for loads
12
+ * @example "backoffice", "instructorapp", "studentapp"
13
+ */
14
+ name: string;
15
+ /**
16
+ * Sort order
17
+ */
18
+ sort: number;
19
+ /**
20
+ * Whether or not the feature is ative, and should be shown
21
+ */
22
+ active: boolean;
23
+ /**
24
+ * Brief overview of the feature item
25
+ * - Displayed in the feature items list view
26
+ * - Language dependent content
27
+ * - JSON array of FeatureSlider objects
28
+ * - There should be one entry per supported language
29
+ * @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 }]
30
+ */
31
+ sliders: FeatureSlider[];
32
+ /**
33
+ * Language dependent content
34
+ * - JSON array of objects with language and content fields
35
+ * - There should be one entry per supported language
36
+ * @example [{ language: Language.En, title: "Driving School Back Office" }]
37
+ */
38
+ translations: {
39
+ language: Language;
40
+ title: string;
41
+ }[];
42
+ /************************* Relations *************************/
43
+ items: Promise<PublicFeatureItemEntity[]>;
44
+ /************************* Methods *************************/
45
+ constructor(props?: Partial<PublicFeatureEntity>);
46
+ }
@@ -0,0 +1,76 @@
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.PublicFeatureEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const feature_item_entity_1 = require("./feature-item.entity");
15
+ let PublicFeatureEntity = class PublicFeatureEntity {
16
+ /************************* Methods *************************/
17
+ constructor(props) {
18
+ Object.assign(this, props);
19
+ }
20
+ };
21
+ exports.PublicFeatureEntity = PublicFeatureEntity;
22
+ __decorate([
23
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
24
+ __metadata("design:type", Number)
25
+ ], PublicFeatureEntity.prototype, "id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({
28
+ nullable: false,
29
+ unique: true
30
+ }),
31
+ __metadata("design:type", String)
32
+ ], PublicFeatureEntity.prototype, "name", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({
35
+ nullable: false,
36
+ default: 0
37
+ }),
38
+ __metadata("design:type", Number)
39
+ ], PublicFeatureEntity.prototype, "sort", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({
42
+ nullable: false,
43
+ default: false
44
+ }),
45
+ __metadata("design:type", Boolean)
46
+ ], PublicFeatureEntity.prototype, "active", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({
49
+ type: 'json',
50
+ nullable: true,
51
+ default: null
52
+ }),
53
+ __metadata("design:type", Array)
54
+ ], PublicFeatureEntity.prototype, "sliders", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({
57
+ type: 'json',
58
+ nullable: true,
59
+ default: null
60
+ }),
61
+ __metadata("design:type", Array)
62
+ ], PublicFeatureEntity.prototype, "translations", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.OneToMany)(() => feature_item_entity_1.PublicFeatureItemEntity, item => item.feature)
65
+ // @Factory(faker => {
66
+ // const items = DataFactory.createForClass(PublicFeatureItemEntity).generate(4);
67
+ // return Promise.resolve(items.map(i => new PublicFeatureItemEntity(i)));
68
+ // })
69
+ ,
70
+ __metadata("design:type", Promise)
71
+ ], PublicFeatureEntity.prototype, "items", void 0);
72
+ exports.PublicFeatureEntity = PublicFeatureEntity = __decorate([
73
+ (0, typeorm_1.Entity)('publicFeatures'),
74
+ __metadata("design:paramtypes", [Object])
75
+ ], PublicFeatureEntity);
76
+ //# sourceMappingURL=feature.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.entity.js","sourceRoot":"","sources":["../../src/public/feature.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA4E;AAE5E,+DAAgE;AAGzD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IA8E/B,6DAA6D;IAE7D,YAAY,KAAoC;QAC/C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD,CAAA;AAnFY,kDAAmB;AAM/B;IADC,IAAA,gCAAsB,GAAE;;+CACd;AAYX;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,IAAI;KACZ,CAAC;;iDACW;AASb;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACV,CAAC;;iDACW;AASb;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,KAAK;KACd,CAAC;;mDACc;AAehB;IALC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;oDACuB;AAazB;IALC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;yDAIE;AASJ;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAuB,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;IAC/D,sBAAsB;IACtB,kFAAkF;IAClF,2EAA2E;IAC3E,KAAK;;;kDACqC;8BA5E9B,mBAAmB;IAD/B,IAAA,gBAAM,EAAC,gBAAgB,CAAC;;GACZ,mBAAmB,CAmF/B"}
@@ -0,0 +1,76 @@
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.PublicFeatureEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const feature_item_1 = require("./feature-item");
15
+ let PublicFeatureEntity = class PublicFeatureEntity {
16
+ /************************* Methods *************************/
17
+ constructor(props) {
18
+ Object.assign(this, props);
19
+ }
20
+ };
21
+ exports.PublicFeatureEntity = PublicFeatureEntity;
22
+ __decorate([
23
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
24
+ __metadata("design:type", Number)
25
+ ], PublicFeatureEntity.prototype, "id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({
28
+ nullable: false,
29
+ unique: true
30
+ }),
31
+ __metadata("design:type", String)
32
+ ], PublicFeatureEntity.prototype, "name", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({
35
+ nullable: false,
36
+ default: 0
37
+ }),
38
+ __metadata("design:type", Number)
39
+ ], PublicFeatureEntity.prototype, "sort", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({
42
+ nullable: false,
43
+ default: false
44
+ }),
45
+ __metadata("design:type", Boolean)
46
+ ], PublicFeatureEntity.prototype, "active", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({
49
+ type: 'json',
50
+ nullable: true,
51
+ default: null
52
+ }),
53
+ __metadata("design:type", Array)
54
+ ], PublicFeatureEntity.prototype, "sliders", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({
57
+ type: 'json',
58
+ nullable: true,
59
+ default: null
60
+ }),
61
+ __metadata("design:type", Array)
62
+ ], PublicFeatureEntity.prototype, "translations", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.OneToMany)(() => feature_item_1.PublicFeatureItemEntity, item => item.feature)
65
+ // @Factory(faker => {
66
+ // const items = DataFactory.createForClass(PublicFeatureItemEntity).generate(4);
67
+ // return Promise.resolve(items.map(i => new PublicFeatureItemEntity(i)));
68
+ // })
69
+ ,
70
+ __metadata("design:type", Promise)
71
+ ], PublicFeatureEntity.prototype, "items", void 0);
72
+ exports.PublicFeatureEntity = PublicFeatureEntity = __decorate([
73
+ (0, typeorm_1.Entity)('publicFeatures'),
74
+ __metadata("design:paramtypes", [Object])
75
+ ], PublicFeatureEntity);
76
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.js","sourceRoot":"","sources":["../../src/public/feature.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA4E;AAE5E,iDAAyD;AAGlD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IA8E/B,6DAA6D;IAE7D,YAAY,KAAoC;QAC/C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD,CAAA;AAnFY,kDAAmB;AAM/B;IADC,IAAA,gCAAsB,GAAE;;+CACd;AAYX;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,IAAI;KACZ,CAAC;;iDACW;AASb;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACV,CAAC;;iDACW;AASb;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,KAAK;KACd,CAAC;;mDACc;AAehB;IALC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;oDACuB;AAazB;IALC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;yDAIE;AASJ;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sCAAuB,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;IAC/D,sBAAsB;IACtB,kFAAkF;IAClF,2EAA2E;IAC3E,KAAK;;;kDACqC;8BA5E9B,mBAAmB;IAD/B,IAAA,gBAAM,EAAC,gBAAgB,CAAC;;GACZ,mBAAmB,CAmF/B"}
@@ -0,0 +1,30 @@
1
+ import { Language, ProfileType } from '@driveup/shared';
2
+ export declare class PublicLearningHubItemEntity {
3
+ /**
4
+ * Primary key - auto-generated sequential ID
5
+ */
6
+ id: number;
7
+ /**
8
+ * Language of the content of the learning hub item
9
+ */
10
+ language: Language;
11
+ profile: ProfileType;
12
+ /**
13
+ * Learning item title
14
+ */
15
+ title: string;
16
+ /**
17
+ * Learning item description
18
+ */
19
+ description: string;
20
+ /**
21
+ * Sort order
22
+ */
23
+ sort: number;
24
+ /**
25
+ * Media URL (image, video, pdf, etc)
26
+ */
27
+ media: string;
28
+ /************************* Methods *************************/
29
+ constructor(props?: Partial<PublicLearningHubItemEntity>);
30
+ }
@@ -0,0 +1,30 @@
1
+ import { Language, ProfileType } from '@driveup/shared';
2
+ export declare class PublicLearningHubItemEntity {
3
+ /**
4
+ * Primary key - auto-generated sequential ID
5
+ */
6
+ id: number;
7
+ /**
8
+ * Language of the content of the learning hub item
9
+ */
10
+ language: Language;
11
+ profile: ProfileType;
12
+ /**
13
+ * Learning item title
14
+ */
15
+ title: string;
16
+ /**
17
+ * Learning item description
18
+ */
19
+ description: string;
20
+ /**
21
+ * Sort order
22
+ */
23
+ sort: number;
24
+ /**
25
+ * Media URL (image, video, pdf, etc)
26
+ */
27
+ media: string;
28
+ /************************* Methods *************************/
29
+ constructor(props?: Partial<PublicLearningHubItemEntity>);
30
+ }
@@ -0,0 +1,77 @@
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.PublicLearningHubItemEntity = void 0;
13
+ const shared_1 = require("@driveup/shared");
14
+ const typeorm_1 = require("typeorm");
15
+ // TODO: come up with better name (publicLearningResource?)
16
+ let PublicLearningHubItemEntity = class PublicLearningHubItemEntity {
17
+ /************************* Methods *************************/
18
+ constructor(props) {
19
+ Object.assign(this, props);
20
+ }
21
+ };
22
+ exports.PublicLearningHubItemEntity = PublicLearningHubItemEntity;
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
25
+ __metadata("design:type", Number)
26
+ ], PublicLearningHubItemEntity.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({
29
+ type: 'enum',
30
+ enum: shared_1.Language,
31
+ default: shared_1.Language.En,
32
+ nullable: false
33
+ }),
34
+ __metadata("design:type", String)
35
+ ], PublicLearningHubItemEntity.prototype, "language", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({
38
+ type: 'enum',
39
+ enum: shared_1.ProfileType,
40
+ default: shared_1.ProfileType.Company,
41
+ nullable: false
42
+ }),
43
+ __metadata("design:type", String)
44
+ ], PublicLearningHubItemEntity.prototype, "profile", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({
47
+ nullable: true,
48
+ default: null
49
+ }),
50
+ __metadata("design:type", String)
51
+ ], PublicLearningHubItemEntity.prototype, "title", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({
54
+ nullable: true,
55
+ default: null
56
+ }),
57
+ __metadata("design:type", String)
58
+ ], PublicLearningHubItemEntity.prototype, "description", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({
61
+ nullable: false,
62
+ default: 0
63
+ }),
64
+ __metadata("design:type", Number)
65
+ ], PublicLearningHubItemEntity.prototype, "sort", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({
68
+ nullable: true,
69
+ default: null
70
+ }),
71
+ __metadata("design:type", String)
72
+ ], PublicLearningHubItemEntity.prototype, "media", void 0);
73
+ exports.PublicLearningHubItemEntity = PublicLearningHubItemEntity = __decorate([
74
+ (0, typeorm_1.Entity)('publicLearningHubItems'),
75
+ __metadata("design:paramtypes", [Object])
76
+ ], PublicLearningHubItemEntity);
77
+ //# sourceMappingURL=learning-hub.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"learning-hub.entity.js","sourceRoot":"","sources":["../../src/public/learning-hub.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,qCAAiE;AAEjE,2DAA2D;AAEpD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IA+DvC,6DAA6D;IAE7D,YAAY,KAA4C;QACvD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD,CAAA;AApEY,kEAA2B;AAMvC;IADC,IAAA,gCAAsB,GAAE;;uDACd;AAWX;IANC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,iBAAQ;QACd,OAAO,EAAE,iBAAQ,CAAC,EAAE;QACpB,QAAQ,EAAE,KAAK;KACf,CAAC;;6DACiB;AAQnB;IANC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,oBAAW;QACjB,OAAO,EAAE,oBAAW,CAAC,OAAO;QAC5B,QAAQ,EAAE,KAAK;KACf,CAAC;;4DACmB;AASrB;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;0DACY;AASd;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;gEACkB;AASpB;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACV,CAAC;;yDACW;AASb;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;0DACY;sCA7DF,2BAA2B;IADvC,IAAA,gBAAM,EAAC,wBAAwB,CAAC;;GACpB,2BAA2B,CAoEvC"}
@@ -0,0 +1,77 @@
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.PublicLearningHubItemEntity = void 0;
13
+ const shared_1 = require("@driveup/shared");
14
+ const typeorm_1 = require("typeorm");
15
+ // TODO: come up with better name (publicLearningResource?)
16
+ let PublicLearningHubItemEntity = class PublicLearningHubItemEntity {
17
+ /************************* Methods *************************/
18
+ constructor(props) {
19
+ Object.assign(this, props);
20
+ }
21
+ };
22
+ exports.PublicLearningHubItemEntity = PublicLearningHubItemEntity;
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
25
+ __metadata("design:type", Number)
26
+ ], PublicLearningHubItemEntity.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({
29
+ type: 'enum',
30
+ enum: shared_1.Language,
31
+ default: shared_1.Language.En,
32
+ nullable: false
33
+ }),
34
+ __metadata("design:type", String)
35
+ ], PublicLearningHubItemEntity.prototype, "language", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({
38
+ type: 'enum',
39
+ enum: shared_1.ProfileType,
40
+ default: shared_1.ProfileType.Company,
41
+ nullable: false
42
+ }),
43
+ __metadata("design:type", String)
44
+ ], PublicLearningHubItemEntity.prototype, "profile", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({
47
+ nullable: true,
48
+ default: null
49
+ }),
50
+ __metadata("design:type", String)
51
+ ], PublicLearningHubItemEntity.prototype, "title", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({
54
+ nullable: true,
55
+ default: null
56
+ }),
57
+ __metadata("design:type", String)
58
+ ], PublicLearningHubItemEntity.prototype, "description", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({
61
+ nullable: false,
62
+ default: 0
63
+ }),
64
+ __metadata("design:type", Number)
65
+ ], PublicLearningHubItemEntity.prototype, "sort", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({
68
+ nullable: true,
69
+ default: null
70
+ }),
71
+ __metadata("design:type", String)
72
+ ], PublicLearningHubItemEntity.prototype, "media", void 0);
73
+ exports.PublicLearningHubItemEntity = PublicLearningHubItemEntity = __decorate([
74
+ (0, typeorm_1.Entity)('publicLearningHubItems'),
75
+ __metadata("design:paramtypes", [Object])
76
+ ], PublicLearningHubItemEntity);
77
+ //# sourceMappingURL=learning-hub.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"learning-hub.js","sourceRoot":"","sources":["../../src/public/learning-hub.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,qCAAiE;AAEjE,2DAA2D;AAEpD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IA+DvC,6DAA6D;IAE7D,YAAY,KAA4C;QACvD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD,CAAA;AApEY,kEAA2B;AAMvC;IADC,IAAA,gCAAsB,GAAE;;uDACd;AAWX;IANC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,iBAAQ;QACd,OAAO,EAAE,iBAAQ,CAAC,EAAE;QACpB,QAAQ,EAAE,KAAK;KACf,CAAC;;6DACiB;AAQnB;IANC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,oBAAW;QACjB,OAAO,EAAE,oBAAW,CAAC,OAAO;QAC5B,QAAQ,EAAE,KAAK;KACf,CAAC;;4DACmB;AASrB;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;0DACY;AASd;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;gEACkB;AASpB;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACV,CAAC;;yDACW;AASb;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;0DACY;sCA7DF,2BAA2B;IADvC,IAAA,gBAAM,EAAC,wBAAwB,CAAC;;GACpB,2BAA2B,CAoEvC"}
@@ -0,0 +1,40 @@
1
+ import { Language } from '@driveup/shared';
2
+ import { CountryEntity } from '../system/country/country.entity';
3
+ export declare class PublicTestimonialEntity {
4
+ /**
5
+ * Primary key - auto-generated sequential ID
6
+ */
7
+ id: number;
8
+ /**
9
+ * Country ID
10
+ */
11
+ countryId: number;
12
+ /**
13
+ * Language of the content of the testimonial
14
+ */
15
+ language: Language;
16
+ /**
17
+ * Testimony title
18
+ */
19
+ title: string;
20
+ /**
21
+ * User feedback
22
+ */
23
+ feedback: string;
24
+ /**
25
+ * User image/avatar
26
+ */
27
+ image: string;
28
+ /**
29
+ * User name
30
+ */
31
+ name: string;
32
+ /**
33
+ * User position/job title
34
+ */
35
+ position: string;
36
+ /************************* Relations *************************/
37
+ country: Promise<CountryEntity>;
38
+ /************************* Methods *************************/
39
+ constructor(props?: Partial<PublicTestimonialEntity>);
40
+ }
@@ -0,0 +1,40 @@
1
+ import { Language } from '@driveup/shared';
2
+ import { CountryEntity } from '../system/country/country.entity';
3
+ export declare class PublicTestimonialEntity {
4
+ /**
5
+ * Primary key - auto-generated sequential ID
6
+ */
7
+ id: number;
8
+ /**
9
+ * Country ID
10
+ */
11
+ countryId: number;
12
+ /**
13
+ * Language of the content of the testimonial
14
+ */
15
+ language: Language;
16
+ /**
17
+ * Testimony title
18
+ */
19
+ title: string;
20
+ /**
21
+ * User feedback
22
+ */
23
+ feedback: string;
24
+ /**
25
+ * User image/avatar
26
+ */
27
+ image: string;
28
+ /**
29
+ * User name
30
+ */
31
+ name: string;
32
+ /**
33
+ * User position/job title
34
+ */
35
+ position: string;
36
+ /************************* Relations *************************/
37
+ country: Promise<CountryEntity>;
38
+ /************************* Methods *************************/
39
+ constructor(props?: Partial<PublicTestimonialEntity>);
40
+ }
@@ -0,0 +1,85 @@
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.PublicTestimonialEntity = void 0;
13
+ const shared_1 = require("@driveup/shared");
14
+ const typeorm_1 = require("typeorm");
15
+ const country_entity_1 = require("../system/country/country.entity");
16
+ let PublicTestimonialEntity = class PublicTestimonialEntity {
17
+ /************************* Methods *************************/
18
+ constructor(props) {
19
+ Object.assign(this, props);
20
+ }
21
+ };
22
+ exports.PublicTestimonialEntity = PublicTestimonialEntity;
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
25
+ __metadata("design:type", Number)
26
+ ], PublicTestimonialEntity.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({
29
+ nullable: false
30
+ }),
31
+ __metadata("design:type", Number)
32
+ ], PublicTestimonialEntity.prototype, "countryId", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({
35
+ type: 'enum',
36
+ enum: shared_1.Language,
37
+ default: shared_1.Language.En,
38
+ nullable: false
39
+ }),
40
+ __metadata("design:type", String)
41
+ ], PublicTestimonialEntity.prototype, "language", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({
44
+ nullable: true,
45
+ default: null
46
+ }),
47
+ __metadata("design:type", String)
48
+ ], PublicTestimonialEntity.prototype, "title", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({
51
+ nullable: true,
52
+ default: null
53
+ }),
54
+ __metadata("design:type", String)
55
+ ], PublicTestimonialEntity.prototype, "feedback", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({
58
+ nullable: true,
59
+ default: null
60
+ }),
61
+ __metadata("design:type", String)
62
+ ], PublicTestimonialEntity.prototype, "image", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({
65
+ nullable: true,
66
+ default: null
67
+ }),
68
+ __metadata("design:type", String)
69
+ ], PublicTestimonialEntity.prototype, "name", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({
72
+ nullable: true,
73
+ default: null
74
+ }),
75
+ __metadata("design:type", String)
76
+ ], PublicTestimonialEntity.prototype, "position", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.ManyToOne)(() => country_entity_1.CountryEntity, country => country.testimonies),
79
+ __metadata("design:type", Promise)
80
+ ], PublicTestimonialEntity.prototype, "country", void 0);
81
+ exports.PublicTestimonialEntity = PublicTestimonialEntity = __decorate([
82
+ (0, typeorm_1.Entity)('publicTestimonials'),
83
+ __metadata("design:paramtypes", [Object])
84
+ ], PublicTestimonialEntity);
85
+ //# sourceMappingURL=testimonial.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testimonial.entity.js","sourceRoot":"","sources":["../../src/public/testimonial.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA2C;AAC3C,qCAA4E;AAE5E,qEAAiE;AAG1D,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IA6EnC,6DAA6D;IAE7D,YAAY,KAAwC;QACnD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD,CAAA;AAlFY,0DAAuB;AAMnC;IADC,IAAA,gCAAsB,GAAE;;mDACd;AAQX;IAHC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,KAAK;KACf,CAAC;;0DACgB;AAWlB;IANC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,iBAAQ;QACd,OAAO,EAAE,iBAAQ,CAAC,EAAE;QACpB,QAAQ,EAAE,KAAK;KACf,CAAC;;yDACiB;AASnB;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;sDACY;AASd;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;yDACe;AASjB;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;sDACY;AASd;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;qDACW;AASb;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;yDACe;AAKjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAa,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC;;wDAC/B;kCA3EpB,uBAAuB;IADnC,IAAA,gBAAM,EAAC,oBAAoB,CAAC;;GAChB,uBAAuB,CAkFnC"}