@driveup/schema 0.1.2 → 0.1.4

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 (165) hide show
  1. package/lib/catalog/addon/addon.entity.js +0 -56
  2. package/lib/catalog/addon/addon.entity.js.map +1 -1
  3. package/lib/catalog/addon/country.entity.js +0 -70
  4. package/lib/catalog/addon/country.entity.js.map +1 -1
  5. package/lib/catalog/priceplan/priceplan.entity.js +0 -59
  6. package/lib/catalog/priceplan/priceplan.entity.js.map +1 -1
  7. package/lib/catalog/product/country.entity.js +0 -64
  8. package/lib/catalog/product/country.entity.js.map +1 -1
  9. package/lib/catalog/product/priceplan.entity.js +0 -65
  10. package/lib/catalog/product/priceplan.entity.js.map +1 -1
  11. package/lib/catalog/product/product.entity.js +0 -56
  12. package/lib/catalog/product/product.entity.js.map +1 -1
  13. package/lib/catalog/program/program.entity.js +0 -59
  14. package/lib/catalog/program/program.entity.js.map +1 -1
  15. package/lib/catalog/seed/assets/asset.entity.js +0 -23
  16. package/lib/catalog/seed/assets/asset.entity.js.map +1 -1
  17. package/lib/catalog/seed/courses/course.entity.js +0 -38
  18. package/lib/catalog/seed/courses/course.entity.js.map +1 -1
  19. package/lib/catalog/seed/courses/lesson.entity.js +0 -36
  20. package/lib/catalog/seed/courses/lesson.entity.js.map +1 -1
  21. package/lib/catalog/seed/courses/topic.entity.js +0 -25
  22. package/lib/catalog/seed/courses/topic.entity.js.map +1 -1
  23. package/lib/catalog/seed/expense/category.entity.js +0 -16
  24. package/lib/catalog/seed/expense/category.entity.js.map +1 -1
  25. package/lib/index.d.ts +1 -0
  26. package/lib/index.js +2 -0
  27. package/lib/index.js.map +1 -1
  28. package/lib/profile/agent/agent.entity.js +0 -49
  29. package/lib/profile/agent/agent.entity.js.map +1 -1
  30. package/lib/profile/agent/payout.entity.js +0 -35
  31. package/lib/profile/agent/payout.entity.js.map +1 -1
  32. package/lib/profile/agent/promotion.entity.js +0 -46
  33. package/lib/profile/agent/promotion.entity.js.map +1 -1
  34. package/lib/profile/company/company.entity.js +0 -148
  35. package/lib/profile/company/company.entity.js.map +1 -1
  36. package/lib/profile/company/course/appointment.entity.js +0 -60
  37. package/lib/profile/company/course/appointment.entity.js.map +1 -1
  38. package/lib/profile/company/course/course.entity.js +0 -107
  39. package/lib/profile/company/course/course.entity.js.map +1 -1
  40. package/lib/profile/company/course/lesson.entity.js +0 -83
  41. package/lib/profile/company/course/lesson.entity.js.map +1 -1
  42. package/lib/profile/company/course/topic.entity.js +0 -35
  43. package/lib/profile/company/course/topic.entity.js.map +1 -1
  44. package/lib/profile/company/finances/billing/bill.entity.js +0 -105
  45. package/lib/profile/company/finances/billing/bill.entity.js.map +1 -1
  46. package/lib/profile/company/finances/billing/item.entity.js +0 -62
  47. package/lib/profile/company/finances/billing/item.entity.js.map +1 -1
  48. package/lib/profile/company/finances/billing/transaction.entity.js +0 -33
  49. package/lib/profile/company/finances/billing/transaction.entity.js.map +1 -1
  50. package/lib/profile/company/finances/expense/category.entity.js +0 -24
  51. package/lib/profile/company/finances/expense/category.entity.js.map +1 -1
  52. package/lib/profile/company/finances/expense/expense.entity.js +0 -31
  53. package/lib/profile/company/finances/expense/expense.entity.js.map +1 -1
  54. package/lib/profile/company/finances/handover/handover.entity.js +0 -27
  55. package/lib/profile/company/finances/handover/handover.entity.js.map +1 -1
  56. package/lib/profile/company/finances/invoice/invoice.entity.js +0 -45
  57. package/lib/profile/company/finances/invoice/invoice.entity.js.map +1 -1
  58. package/lib/profile/company/finances/invoice/item.entity.js +0 -16
  59. package/lib/profile/company/finances/invoice/item.entity.js.map +1 -1
  60. package/lib/profile/company/finances/payment/method.entity.js +0 -23
  61. package/lib/profile/company/finances/payment/method.entity.js.map +1 -1
  62. package/lib/profile/company/instructor/instructor.entity.js +0 -63
  63. package/lib/profile/company/instructor/instructor.entity.js.map +1 -1
  64. package/lib/profile/company/instructor/task.entity.js +0 -36
  65. package/lib/profile/company/instructor/task.entity.js.map +1 -1
  66. package/lib/profile/company/medical/examination.entity.js +0 -43
  67. package/lib/profile/company/medical/examination.entity.js.map +1 -1
  68. package/lib/profile/company/medical/product.entity.js +0 -84
  69. package/lib/profile/company/medical/product.entity.js.map +1 -1
  70. package/lib/profile/company/product/addon.entity.js +0 -81
  71. package/lib/profile/company/product/addon.entity.js.map +1 -1
  72. package/lib/profile/company/product/priceplan.entity.js +0 -45
  73. package/lib/profile/company/product/priceplan.entity.js.map +1 -1
  74. package/lib/profile/company/product/product.entity.js +0 -154
  75. package/lib/profile/company/product/product.entity.js.map +1 -1
  76. package/lib/profile/company/product/vehicle.entity.js +0 -37
  77. package/lib/profile/company/product/vehicle.entity.js.map +1 -1
  78. package/lib/profile/instructor/instructor.entity.js +0 -34
  79. package/lib/profile/instructor/instructor.entity.js.map +1 -1
  80. package/lib/profile/student/program/licence/licence.entity.js +0 -55
  81. package/lib/profile/student/program/licence/licence.entity.js.map +1 -1
  82. package/lib/profile/student/program/medical/certificate.entity.js +0 -72
  83. package/lib/profile/student/program/medical/certificate.entity.js.map +1 -1
  84. package/lib/profile/student/program/medical/examination.model.js +0 -53
  85. package/lib/profile/student/program/medical/examination.model.js.map +1 -1
  86. package/lib/profile/student/program/program.entity.js +0 -62
  87. package/lib/profile/student/program/program.entity.js.map +1 -1
  88. package/lib/profile/student/program/training/appointment.entity.js +0 -130
  89. package/lib/profile/student/program/training/appointment.entity.js.map +1 -1
  90. package/lib/profile/student/program/training/exam.entity.js +0 -31
  91. package/lib/profile/student/program/training/exam.entity.js.map +1 -1
  92. package/lib/profile/student/program/training/lesson.entity.js +0 -71
  93. package/lib/profile/student/program/training/lesson.entity.js.map +1 -1
  94. package/lib/profile/student/program/training/request.entity.js +0 -46
  95. package/lib/profile/student/program/training/request.entity.js.map +1 -1
  96. package/lib/profile/student/program/training/topic.entity.js +0 -54
  97. package/lib/profile/student/program/training/topic.entity.js.map +1 -1
  98. package/lib/profile/student/program/training/training.entity.js +0 -139
  99. package/lib/profile/student/program/training/training.entity.js.map +1 -1
  100. package/lib/profile/student/program/training/transaction.entity.js +0 -67
  101. package/lib/profile/student/program/training/transaction.entity.js.map +1 -1
  102. package/lib/profile/student/student.entity.js +0 -58
  103. package/lib/profile/student/student.entity.js.map +1 -1
  104. package/lib/system/campaigne/campaign.entity.js +0 -26
  105. package/lib/system/campaigne/campaign.entity.js.map +1 -1
  106. package/lib/system/campaigne/gifcode.entity.js +0 -24
  107. package/lib/system/campaigne/gifcode.entity.js.map +1 -1
  108. package/lib/system/country/country.entity.js +0 -83
  109. package/lib/system/country/country.entity.js.map +1 -1
  110. package/lib/system/currency/currency.entity.js +0 -22
  111. package/lib/system/currency/currency.entity.js.map +1 -1
  112. package/lib/system/driving/category.entity.js +0 -97
  113. package/lib/system/driving/category.entity.js.map +1 -1
  114. package/lib/system/driving/vehicle.entity.js +0 -21
  115. package/lib/system/driving/vehicle.entity.js.map +1 -1
  116. package/lib/system/event/business.entity.js +0 -43
  117. package/lib/system/event/business.entity.js.map +1 -1
  118. package/lib/system/event/log.entity.js +0 -26
  119. package/lib/system/event/log.entity.js.map +1 -1
  120. package/lib/system/policy/policy.entity.js +0 -46
  121. package/lib/system/policy/policy.entity.js.map +1 -1
  122. package/lib/system/staff/staff.entity.js +0 -35
  123. package/lib/system/staff/staff.entity.js.map +1 -1
  124. package/lib/tsconfig.tsbuildinfo +1 -1
  125. package/lib/user/alert.entity.js +0 -55
  126. package/lib/user/alert.entity.js.map +1 -1
  127. package/lib/user/blocked.entity.js +0 -9
  128. package/lib/user/blocked.entity.js.map +1 -1
  129. package/lib/user/device.entity.js +0 -40
  130. package/lib/user/device.entity.js.map +1 -1
  131. package/lib/user/notification.entity.js +0 -58
  132. package/lib/user/notification.entity.js.map +1 -1
  133. package/lib/user/ticket.entity.js +0 -56
  134. package/lib/user/ticket.entity.js.map +1 -1
  135. package/lib/user/user.entity.js +0 -91
  136. package/lib/user/user.entity.js.map +1 -1
  137. package/lib/user/verification.entity.js +0 -30
  138. package/lib/user/verification.entity.js.map +1 -1
  139. package/lib/utils/trackable.entity.js +0 -31
  140. package/lib/utils/trackable.entity.js.map +1 -1
  141. package/package.json +9 -15
  142. package/lib/catalog/driving/category.entity.d.ts +0 -122
  143. package/lib/catalog/driving/category.entity.js +0 -217
  144. package/lib/catalog/driving/category.entity.js.map +0 -1
  145. package/lib/catalog/driving/vehicle.entity.d.ts +0 -49
  146. package/lib/catalog/driving/vehicle.entity.js +0 -97
  147. package/lib/catalog/driving/vehicle.entity.js.map +0 -1
  148. package/lib/profile/company/finances/peyment/method.entity.d.ts +0 -35
  149. package/lib/profile/company/finances/peyment/method.entity.js +0 -143
  150. package/lib/profile/company/finances/peyment/method.entity.js.map +0 -1
  151. package/lib/profile/company/finances/peyment-method/payment-method.d.ts +0 -34
  152. package/lib/profile/company/finances/peyment-method/payment-method.js +0 -118
  153. package/lib/profile/company/finances/peyment-method/payment-method.js.map +0 -1
  154. package/lib/profile/company/metrics/company.metric.d.ts +0 -21
  155. package/lib/profile/company/metrics/company.metric.js +0 -122
  156. package/lib/profile/company/metrics/company.metric.js.map +0 -1
  157. package/lib/system/campaign/campaign.entity.d.ts +0 -68
  158. package/lib/system/campaign/campaign.entity.js +0 -150
  159. package/lib/system/campaign/campaign.entity.js.map +0 -1
  160. package/lib/system/campaign/gifcode.entity.d.ts +0 -14
  161. package/lib/system/campaign/gifcode.entity.js +0 -77
  162. package/lib/system/campaign/gifcode.entity.js.map +0 -1
  163. package/lib/system/country/country.metric.d.ts +0 -12
  164. package/lib/system/country/country.metric.js +0 -68
  165. package/lib/system/country/country.metric.js.map +0 -1
@@ -1,122 +0,0 @@
1
- import { DrivingCategory, Language, IMetadata, Content, IContent } from '@driveup/common';
2
- import { Activity, ColorContext } from '@driveup/common';
3
- import { CountryEntity } from '../../system/country/country.entity';
4
- import { ProgramEntity } from '../program/program.entity';
5
- import { StudentLicenceEntity } from '../../profile/student/program/licence/licence.entity';
6
- import { StudentMedicalCertificateEntity } from '../../profile/student/program/medical/certificate.entity';
7
- import { CompanyMedicalProductEntity } from '../../profile/company/medical/product.entity';
8
- import { CompanyCourseEntity } from '../../profile/company/course/course.entity';
9
- import { SeedCourseEntity } from '../seed/courses/course.entity';
10
- import { SeedVehicleEntity } from './vehicle.entity';
11
- import { TrackableEntity } from '../../utils';
12
- /**
13
- * Represents a driving license category in the system.
14
- * Categories define the type of vehicle or driving qualification (e.g., A, B, C1, C1E).
15
- * Each category has specific requirements, age limits, and associated training programs.
16
- *
17
- * @extends TrackableEntity<DrivingCategory>
18
- */
19
- export declare class DrivingCategoryEntity extends TrackableEntity<DrivingCategory> {
20
- /**
21
- * ID of the country this category belongs to
22
- */
23
- countryId: number;
24
- /**
25
- * Category name abbreviation
26
- * Short representation of the category
27
- * (e.g., A, B, C1, C1E etc.)
28
- */
29
- name: string;
30
- /**
31
- * Minimum age requirement for this driving category
32
- */
33
- minAge: number;
34
- /**
35
- * URL to the category's representative image
36
- */
37
- imageUrl: string;
38
- /**
39
- * UI color theme context for displaying the category
40
- * @default ColorContext.Primary
41
- */
42
- color: ColorContext;
43
- /**
44
- * Additional metadata
45
- */
46
- metadata: IMetadata[];
47
- /**
48
- * Category active status
49
- * Activating/Deactivating a category will not affect existing customers,
50
- * but will prevent new customers from selecting the category.
51
- * Deactivating must set all company categories to enabled=false
52
- */
53
- active: boolean;
54
- translations: IContent[];
55
- enabledBy: number;
56
- enabledOn: Date;
57
- disabledBy: number;
58
- disabledOn: Date;
59
- country: Promise<CountryEntity>;
60
- /**
61
- * Company medical product associated with driving category.
62
- * Example:
63
- * * Category A: Vision Test, Hearing Test, Reaction Time Test, etc.
64
- * * Category B: Physical Examination, Cardiovascular Assessment, etc.
65
- */
66
- companyMedicalProducts: Promise<CompanyMedicalProductEntity[]>;
67
- /**
68
- * Company course products associated with driving category.
69
- * Example:
70
- * * Theory Study training for car driving license is associated with Category B
71
- * * Practical Riding training for motorcycle license is associated with Category A
72
- */
73
- companyCourses: Promise<CompanyCourseEntity[]>;
74
- /**
75
- * Student medical certificates
76
- */
77
- studentCertificates: Promise<StudentMedicalCertificateEntity[]>;
78
- /**
79
- * Student licence relation
80
- */
81
- studentLicences: Promise<StudentLicenceEntity[]>;
82
- /**
83
- * Category programs
84
- */
85
- programs: Promise<ProgramEntity[]>;
86
- /**
87
- * Seed company courses
88
- */
89
- seedCourses: Promise<SeedCourseEntity[]>;
90
- /**
91
- * Seed category vehicles
92
- */
93
- seedVehicles: Promise<SeedVehicleEntity[]>;
94
- /**
95
- * Creates an instance of DrivingCategoryEntity
96
- * @param props - Partial properties to initialize the entity
97
- */
98
- constructor(props?: Partial<DrivingCategoryEntity>);
99
- /**
100
- * Converts the entity to a DrivingCategory model with localized content
101
- * @param lang - Language code for localization (defaults to current context language)
102
- * @returns DrivingCategory model instance
103
- */
104
- toModel(lang?: Language): DrivingCategory;
105
- /**
106
- * Retrieves the translation for a specific language
107
- * @param lang - Language code (defaults to current context language)
108
- * @returns Content object with localized strings
109
- */
110
- getTranslation(lang?: Language): Content;
111
- /**
112
- * Retrieves all available translations for this category
113
- * @returns Array of Content objects for all languages
114
- */
115
- getTranslations(): Content[];
116
- /**
117
- * Retrieves all activity records for this category
118
- * Includes creation, updates, enable/disable actions
119
- * @returns Array of Activity objects
120
- */
121
- getActivities(): Promise<Activity[]>;
122
- }
@@ -1,217 +0,0 @@
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.DrivingCategoryEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const typeorm_2 = require("typeorm");
15
- const nestjs_i18n_1 = require("nestjs-i18n");
16
- const common_1 = require("@driveup/common");
17
- const common_2 = require("@driveup/common");
18
- const staff_entity_1 = require("../../system/staff/staff.entity");
19
- const country_entity_1 = require("../../system/country/country.entity");
20
- const program_entity_1 = require("../program/program.entity");
21
- const licence_entity_1 = require("../../profile/student/program/licence/licence.entity");
22
- const certificate_entity_1 = require("../../profile/student/program/medical/certificate.entity");
23
- const product_entity_1 = require("../../profile/company/medical/product.entity");
24
- const course_entity_1 = require("../../profile/company/course/course.entity");
25
- const course_entity_2 = require("../seed/courses/course.entity");
26
- const vehicle_entity_1 = require("./vehicle.entity");
27
- const utils_1 = require("../../utils");
28
- /**
29
- * Represents a driving license category in the system.
30
- * Categories define the type of vehicle or driving qualification (e.g., A, B, C1, C1E).
31
- * Each category has specific requirements, age limits, and associated training programs.
32
- *
33
- * @extends TrackableEntity<DrivingCategory>
34
- */
35
- let DrivingCategoryEntity = class DrivingCategoryEntity extends utils_1.TrackableEntity {
36
- /**
37
- * Creates an instance of DrivingCategoryEntity
38
- * @param props - Partial properties to initialize the entity
39
- */
40
- constructor(props) {
41
- super();
42
- Object.assign(this, props);
43
- }
44
- /**
45
- * Converts the entity to a DrivingCategory model with localized content
46
- * @param lang - Language code for localization (defaults to current context language)
47
- * @returns DrivingCategory model instance
48
- */
49
- toModel(lang) {
50
- const translation = this.getTranslation(lang);
51
- return new common_1.DrivingCategory({
52
- id: this.id,
53
- title: translation?.title,
54
- description: translation?.description,
55
- imageUrl: translation?.imageUrl || this.imageUrl,
56
- name: this.name,
57
- minAge: this.minAge,
58
- color: this.color,
59
- active: this.active
60
- });
61
- }
62
- /**
63
- * Retrieves the translation for a specific language
64
- * @param lang - Language code (defaults to current context language)
65
- * @returns Content object with localized strings
66
- */
67
- getTranslation(lang) {
68
- const language = lang || nestjs_i18n_1.I18nContext.current()?.lang;
69
- const translation = this.translations?.find(t => t.language === language);
70
- return new common_1.Content({
71
- title: translation?.title,
72
- description: translation?.description,
73
- content: translation?.content,
74
- imageUrl: translation?.imageUrl || this.imageUrl,
75
- link: translation?.link,
76
- });
77
- }
78
- /**
79
- * Retrieves all available translations for this category
80
- * @returns Array of Content objects for all languages
81
- */
82
- getTranslations() {
83
- return this.translations?.map(t => new common_1.Content({
84
- title: t.title,
85
- description: t.description,
86
- content: t.content,
87
- imageUrl: t.imageUrl,
88
- link: t.link,
89
- language: t.language
90
- }));
91
- }
92
- /**
93
- * Retrieves all activity records for this category
94
- * Includes creation, updates, enable/disable actions
95
- * @returns Array of Activity objects
96
- */
97
- async getActivities() {
98
- const activities = [];
99
- activities.push(await (0, utils_1.toActivity)(this.createdBy, common_2.ActivityType.createdBy, staff_entity_1.StaffEntity));
100
- activities.push(await (0, utils_1.toActivity)(this.createdOn, common_2.ActivityType.createdOn));
101
- activities.push(await (0, utils_1.toActivity)(this.updatedBy, common_2.ActivityType.updatedBy, staff_entity_1.StaffEntity));
102
- activities.push(await (0, utils_1.toActivity)(this.updatedOn, common_2.ActivityType.updatedOn));
103
- activities.push(await (0, utils_1.toActivity)(this.enabledBy, common_2.ActivityType.enabledBy, staff_entity_1.StaffEntity));
104
- activities.push(await (0, utils_1.toActivity)(this.enabledOn, common_2.ActivityType.enabledOn));
105
- activities.push(await (0, utils_1.toActivity)(this.disabledBy, common_2.ActivityType.disabledBy, staff_entity_1.StaffEntity));
106
- activities.push(await (0, utils_1.toActivity)(this.disabledOn, common_2.ActivityType.disabledOn));
107
- return activities.filter(a => !a);
108
- }
109
- };
110
- exports.DrivingCategoryEntity = DrivingCategoryEntity;
111
- __decorate([
112
- (0, typeorm_1.Column)(),
113
- __metadata("design:type", Number)
114
- ], DrivingCategoryEntity.prototype, "countryId", void 0);
115
- __decorate([
116
- (0, typeorm_1.Column)(),
117
- __metadata("design:type", String)
118
- ], DrivingCategoryEntity.prototype, "name", void 0);
119
- __decorate([
120
- (0, typeorm_1.Column)({
121
- nullable: true,
122
- default: null
123
- }),
124
- __metadata("design:type", Number)
125
- ], DrivingCategoryEntity.prototype, "minAge", void 0);
126
- __decorate([
127
- (0, typeorm_1.Column)({
128
- nullable: true,
129
- default: null
130
- }),
131
- __metadata("design:type", String)
132
- ], DrivingCategoryEntity.prototype, "imageUrl", void 0);
133
- __decorate([
134
- (0, typeorm_1.Column)({
135
- type: 'enum',
136
- enum: common_2.ColorContext,
137
- default: common_2.ColorContext.Primary,
138
- nullable: false
139
- }),
140
- __metadata("design:type", String)
141
- ], DrivingCategoryEntity.prototype, "color", void 0);
142
- __decorate([
143
- (0, typeorm_1.Column)({
144
- type: 'simple-json',
145
- nullable: true,
146
- default: null
147
- }),
148
- __metadata("design:type", Array)
149
- ], DrivingCategoryEntity.prototype, "metadata", void 0);
150
- __decorate([
151
- (0, typeorm_1.Column)({
152
- nullable: false,
153
- default: false
154
- }),
155
- __metadata("design:type", Boolean)
156
- ], DrivingCategoryEntity.prototype, "active", void 0);
157
- __decorate([
158
- (0, typeorm_1.Column)({
159
- type: 'simple-json',
160
- nullable: true,
161
- default: null
162
- }),
163
- __metadata("design:type", Array)
164
- ], DrivingCategoryEntity.prototype, "translations", void 0);
165
- __decorate([
166
- (0, typeorm_1.Column)({ nullable: true, default: null }),
167
- __metadata("design:type", Number)
168
- ], DrivingCategoryEntity.prototype, "enabledBy", void 0);
169
- __decorate([
170
- (0, typeorm_1.Column)({ nullable: true, default: null }),
171
- __metadata("design:type", Date)
172
- ], DrivingCategoryEntity.prototype, "enabledOn", void 0);
173
- __decorate([
174
- (0, typeorm_1.Column)({ nullable: true, default: null }),
175
- __metadata("design:type", Number)
176
- ], DrivingCategoryEntity.prototype, "disabledBy", void 0);
177
- __decorate([
178
- (0, typeorm_1.Column)({ nullable: true, default: null }),
179
- __metadata("design:type", Date)
180
- ], DrivingCategoryEntity.prototype, "disabledOn", void 0);
181
- __decorate([
182
- (0, typeorm_2.ManyToOne)(() => country_entity_1.CountryEntity, country => country.drivingCategories),
183
- __metadata("design:type", Promise)
184
- ], DrivingCategoryEntity.prototype, "country", void 0);
185
- __decorate([
186
- (0, typeorm_2.OneToMany)(() => product_entity_1.CompanyMedicalProductEntity, company => company.category),
187
- __metadata("design:type", Promise)
188
- ], DrivingCategoryEntity.prototype, "companyMedicalProducts", void 0);
189
- __decorate([
190
- (0, typeorm_2.OneToMany)(() => course_entity_1.CompanyCourseEntity, training => training.category),
191
- __metadata("design:type", Promise)
192
- ], DrivingCategoryEntity.prototype, "companyCourses", void 0);
193
- __decorate([
194
- (0, typeorm_2.OneToMany)(() => certificate_entity_1.StudentMedicalCertificateEntity, certificate => certificate.category),
195
- __metadata("design:type", Promise)
196
- ], DrivingCategoryEntity.prototype, "studentCertificates", void 0);
197
- __decorate([
198
- (0, typeorm_2.OneToMany)(() => licence_entity_1.StudentLicenceEntity, licence => licence.category),
199
- __metadata("design:type", Promise)
200
- ], DrivingCategoryEntity.prototype, "studentLicences", void 0);
201
- __decorate([
202
- (0, typeorm_2.OneToMany)(() => program_entity_1.ProgramEntity, program => program.category),
203
- __metadata("design:type", Promise)
204
- ], DrivingCategoryEntity.prototype, "programs", void 0);
205
- __decorate([
206
- (0, typeorm_2.OneToMany)(() => course_entity_2.SeedCourseEntity, training => training.category),
207
- __metadata("design:type", Promise)
208
- ], DrivingCategoryEntity.prototype, "seedCourses", void 0);
209
- __decorate([
210
- (0, typeorm_2.OneToMany)(() => vehicle_entity_1.SeedVehicleEntity, vehicle => vehicle.category),
211
- __metadata("design:type", Promise)
212
- ], DrivingCategoryEntity.prototype, "seedVehicles", void 0);
213
- exports.DrivingCategoryEntity = DrivingCategoryEntity = __decorate([
214
- (0, typeorm_1.Entity)('systemDrivingCategories'),
215
- __metadata("design:paramtypes", [Object])
216
- ], DrivingCategoryEntity);
217
- //# sourceMappingURL=category.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"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C,8BAAa,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;;uDAC1B;AAMlC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAgB,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC;;0DACxB;AAMzC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAiB,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;;2DACrB;gCAxI/B,qBAAqB;IADjC,IAAA,gBAAM,EAAC,yBAAyB,CAAC;;GACrB,qBAAqB,CAuNjC"}
@@ -1,49 +0,0 @@
1
- import { Activity, CarTransmission, Vehicle } from '@driveup/common';
2
- import { DrivingCategoryEntity } from './category.entity';
3
- import { TrackableEntity } from '../../utils';
4
- /**
5
- * Represents a seed vehicle template in the system.
6
- * Seed vehicles are predefined vehicle configurations that can be used
7
- * by companies when setting up their fleet. Each vehicle is associated with
8
- * a driving category and includes make, model, and transmission type.
9
- *
10
- * @extends TrackableEntity<Vehicle>
11
- */
12
- export declare class SeedVehicleEntity extends TrackableEntity<Vehicle> {
13
- /**
14
- * Reference to the driving category this vehicle belongs to
15
- */
16
- categoryId: number;
17
- /**
18
- * Vehicle make (e.g. Toyota, Ford)
19
- */
20
- make: string;
21
- /**
22
- * Vehicle model (e.g. Corolla, Focus)
23
- */
24
- model: string;
25
- /**
26
- * Type of transmission (Automatic or Manual)
27
- * @default CarTransmission.Automatic
28
- */
29
- transmission: CarTransmission.Automatic;
30
- /**
31
- * Associated driving category
32
- */
33
- category: Promise<DrivingCategoryEntity>;
34
- /**
35
- * Creates a new SeedVehicleEntity instance
36
- * @param props - Partial properties to initialize the entity
37
- */
38
- constructor(props?: Partial<SeedVehicleEntity>);
39
- /**
40
- * Converts the entity to a Vehicle model instance
41
- * @returns Vehicle model with id, make, model, and transmission
42
- */
43
- toModel(): Vehicle;
44
- /**
45
- * Retrieves activity history for this vehicle
46
- * @returns Promise resolving to array of Activity instances tracking creation and updates
47
- */
48
- getActivities(): Promise<Activity[]>;
49
- }
@@ -1,97 +0,0 @@
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.SeedVehicleEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const typeorm_2 = require("typeorm");
15
- const common_1 = require("@driveup/common");
16
- const staff_entity_1 = require("../../system/staff/staff.entity");
17
- const category_entity_1 = require("./category.entity");
18
- const utils_1 = require("../../utils");
19
- /**
20
- * Represents a seed vehicle template in the system.
21
- * Seed vehicles are predefined vehicle configurations that can be used
22
- * by companies when setting up their fleet. Each vehicle is associated with
23
- * a driving category and includes make, model, and transmission type.
24
- *
25
- * @extends TrackableEntity<Vehicle>
26
- */
27
- let SeedVehicleEntity = class SeedVehicleEntity extends utils_1.TrackableEntity {
28
- /**
29
- * Creates a new SeedVehicleEntity instance
30
- * @param props - Partial properties to initialize the entity
31
- */
32
- constructor(props) {
33
- super();
34
- Object.assign(this, props);
35
- }
36
- /**
37
- * Converts the entity to a Vehicle model instance
38
- * @returns Vehicle model with id, make, model, and transmission
39
- */
40
- toModel() {
41
- return new common_1.Vehicle({
42
- id: this.id,
43
- make: this.make,
44
- model: this.model,
45
- transmission: this.transmission
46
- });
47
- }
48
- /**
49
- * Retrieves activity history for this vehicle
50
- * @returns Promise resolving to array of Activity instances tracking creation and updates
51
- */
52
- async getActivities() {
53
- const activities = [];
54
- activities.push(await (0, utils_1.toActivity)(this.createdBy, common_1.ActivityType.createdBy, staff_entity_1.StaffEntity));
55
- activities.push(await (0, utils_1.toActivity)(this.createdOn, common_1.ActivityType.createdOn));
56
- activities.push(await (0, utils_1.toActivity)(this.updatedBy, common_1.ActivityType.updatedBy, staff_entity_1.StaffEntity));
57
- activities.push(await (0, utils_1.toActivity)(this.updatedOn, common_1.ActivityType.updatedOn));
58
- return activities.filter(a => !a);
59
- }
60
- };
61
- exports.SeedVehicleEntity = SeedVehicleEntity;
62
- __decorate([
63
- (0, typeorm_1.Column)(),
64
- __metadata("design:type", Number)
65
- ], SeedVehicleEntity.prototype, "categoryId", void 0);
66
- __decorate([
67
- (0, typeorm_1.Column)({
68
- nullable: true,
69
- default: null
70
- }),
71
- __metadata("design:type", String)
72
- ], SeedVehicleEntity.prototype, "make", void 0);
73
- __decorate([
74
- (0, typeorm_1.Column)({
75
- nullable: true,
76
- default: null
77
- }),
78
- __metadata("design:type", String)
79
- ], SeedVehicleEntity.prototype, "model", void 0);
80
- __decorate([
81
- (0, typeorm_1.Column)({
82
- type: 'enum',
83
- enum: common_1.CarTransmission,
84
- default: common_1.CarTransmission.Automatic,
85
- nullable: false
86
- }),
87
- __metadata("design:type", String)
88
- ], SeedVehicleEntity.prototype, "transmission", void 0);
89
- __decorate([
90
- (0, typeorm_2.ManyToOne)(() => category_entity_1.DrivingCategoryEntity, categorry => categorry.seedVehicles),
91
- __metadata("design:type", Promise)
92
- ], SeedVehicleEntity.prototype, "category", void 0);
93
- exports.SeedVehicleEntity = SeedVehicleEntity = __decorate([
94
- (0, typeorm_1.Entity)('seedVehicles'),
95
- __metadata("design:paramtypes", [Object])
96
- ], SeedVehicleEntity);
97
- //# sourceMappingURL=vehicle.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vehicle.entity.js","sourceRoot":"","sources":["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C;IACnC,CAAC;CACD,CAAA;AA9EY,8CAAiB;AAM7B;IADC,IAAA,gBAAM,GAAE;;qDACU;AASnB;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;+CACW;AASb;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;gDACY;AAYd;IANC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,wBAAe;QACrB,OAAO,EAAE,wBAAe,CAAC,SAAS;QAClC,QAAQ,EAAE,KAAK;KACf,CAAC;;uDACsC;AAMxC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAqB,EAAE,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC;;mDACnC;4BA1C7B,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,cAAc,CAAC;;GACV,iBAAiB,CA8E7B"}
@@ -1,35 +0,0 @@
1
- import { Activity, PaymentMethod } from '@driveup/common';
2
- import { CompanyEntity } from '../../company.entity';
3
- import { CompanyBillTransactionEntity } from '../billing/transaction.entity';
4
- import { CompanyProductPricePlanEntity } from '../../product/priceplan.entity';
5
- import { TrackableEntity } from '../../../../utils';
6
- export declare class CompanyPaymentMethodEntity extends TrackableEntity<PaymentMethod> {
7
- companyId: number;
8
- name: string;
9
- /**
10
- * When company adds a new payment method,
11
- * all other payment methods become inactive
12
- */
13
- active: boolean;
14
- /**
15
- * The provider's response when adding the payment method
16
- */
17
- metadata: any;
18
- methodId: string;
19
- customerId: string;
20
- /**
21
- * Whether the payment method is confirmed and ready to use
22
- */
23
- confirmed: boolean;
24
- company: Promise<CompanyEntity>;
25
- transactions: Promise<CompanyBillTransactionEntity[]>;
26
- /**
27
- * Current assigned payment method
28
- */
29
- productPaymentMethod: Promise<CompanyProductPricePlanEntity>;
30
- constructor(props?: Partial<CompanyPaymentMethodEntity>);
31
- toModel(): PaymentMethod;
32
- toSummary(): PaymentMethod;
33
- getFailedTransactions(): Promise<CompanyBillTransactionEntity[]>;
34
- getActivities(): Promise<Activity[]>;
35
- }