@tomei/rental 0.12.0 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/.commitlintrc.json +22 -22
  2. package/.eslintrc +16 -16
  3. package/.eslintrc.js +35 -35
  4. package/.gitlab-ci.yml +16 -16
  5. package/.husky/commit-msg +15 -15
  6. package/.husky/pre-commit +7 -7
  7. package/.prettierrc +4 -4
  8. package/Jenkinsfile +51 -51
  9. package/README.md +8 -8
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.js +17 -17
  12. package/dist/src/components/agreement/agreement.d.ts +17 -17
  13. package/dist/src/components/agreement/agreement.js +49 -49
  14. package/dist/src/components/agreement/agreement.js.map +1 -1
  15. package/dist/src/components/agreement/agreement.repository.d.ts +8 -8
  16. package/dist/src/components/agreement/agreement.repository.js +66 -66
  17. package/dist/src/components/agreement/agreement.repository.js.map +1 -1
  18. package/dist/src/components/booking/booking.d.ts +46 -46
  19. package/dist/src/components/booking/booking.js +313 -313
  20. package/dist/src/components/booking/booking.js.map +1 -1
  21. package/dist/src/components/booking/booking.repository.d.ts +8 -8
  22. package/dist/src/components/booking/booking.repository.js +66 -66
  23. package/dist/src/components/booking/booking.repository.js.map +1 -1
  24. package/dist/src/components/joint-hirer/joint-hirer.d.ts +23 -23
  25. package/dist/src/components/joint-hirer/joint-hirer.js +105 -105
  26. package/dist/src/components/joint-hirer/joint-hirer.js.map +1 -1
  27. package/dist/src/components/joint-hirer/joint-hirer.repository.d.ts +8 -8
  28. package/dist/src/components/joint-hirer/joint-hirer.repository.js +66 -66
  29. package/dist/src/components/joint-hirer/joint-hirer.repository.js.map +1 -1
  30. package/dist/src/components/rental/rental.d.ts +59 -59
  31. package/dist/src/components/rental/rental.js +618 -618
  32. package/dist/src/components/rental/rental.js.map +1 -1
  33. package/dist/src/components/rental/rental.repository.d.ts +8 -8
  34. package/dist/src/components/rental/rental.repository.js +66 -66
  35. package/dist/src/components/rental/rental.repository.js.map +1 -1
  36. package/dist/src/components/rental-price/rental-price.d.ts +18 -18
  37. package/dist/src/components/rental-price/rental-price.js +78 -78
  38. package/dist/src/components/rental-price/rental-price.js.map +1 -1
  39. package/dist/src/components/rental-price/rental-price.repository.d.ts +8 -8
  40. package/dist/src/components/rental-price/rental-price.repository.js +66 -66
  41. package/dist/src/components/rental-price/rental-price.repository.js.map +1 -1
  42. package/dist/src/database.d.ts +4 -4
  43. package/dist/src/database.js +24 -25
  44. package/dist/src/database.js.map +1 -1
  45. package/dist/src/enum/account-type.enum.d.ts +4 -4
  46. package/dist/src/enum/account-type.enum.js +8 -8
  47. package/dist/src/enum/account-type.enum.js.map +1 -1
  48. package/dist/src/enum/aggrement-status.enum.d.ts +5 -5
  49. package/dist/src/enum/aggrement-status.enum.js +9 -9
  50. package/dist/src/enum/aggrement-status.enum.js.map +1 -1
  51. package/dist/src/enum/booking.enum.d.ts +5 -5
  52. package/dist/src/enum/booking.enum.js +9 -9
  53. package/dist/src/enum/booking.enum.js.map +1 -1
  54. package/dist/src/enum/index.d.ts +5 -5
  55. package/dist/src/enum/index.js +11 -11
  56. package/dist/src/enum/rental-status.enum.d.ts +9 -9
  57. package/dist/src/enum/rental-status.enum.js +13 -13
  58. package/dist/src/enum/rental-status.enum.js.map +1 -1
  59. package/dist/src/index.d.ts +15 -15
  60. package/dist/src/index.js +42 -42
  61. package/dist/src/interfaces/agreement-attr.interface.d.ts +7 -7
  62. package/dist/src/interfaces/agreement-attr.interface.js +2 -2
  63. package/dist/src/interfaces/booking-attr.interface.d.ts +18 -18
  64. package/dist/src/interfaces/booking-attr.interface.js +2 -2
  65. package/dist/src/interfaces/booking-find-all-search-attr.interface.d.ts +12 -12
  66. package/dist/src/interfaces/booking-find-all-search-attr.interface.js +2 -2
  67. package/dist/src/interfaces/index.d.ts +7 -7
  68. package/dist/src/interfaces/index.js +2 -2
  69. package/dist/src/interfaces/joint-hirer-attr.interface.d.ts +10 -10
  70. package/dist/src/interfaces/joint-hirer-attr.interface.js +2 -2
  71. package/dist/src/interfaces/rental-attr.interface.d.ts +24 -24
  72. package/dist/src/interfaces/rental-attr.interface.js +2 -2
  73. package/dist/src/interfaces/rental-find-all-search-attr.interface.d.ts +10 -10
  74. package/dist/src/interfaces/rental-find-all-search-attr.interface.js +2 -2
  75. package/dist/src/interfaces/rental-price-attr.interface.d.ts +7 -7
  76. package/dist/src/interfaces/rental-price-attr.interface.js +2 -2
  77. package/dist/src/models/agreement.entity.d.ts +10 -10
  78. package/dist/src/models/agreement.entity.js +59 -59
  79. package/dist/src/models/agreement.entity.js.map +1 -1
  80. package/dist/src/models/booking.entity.d.ts +21 -21
  81. package/dist/src/models/booking.entity.js +127 -127
  82. package/dist/src/models/booking.entity.js.map +1 -1
  83. package/dist/src/models/index.d.ts +6 -6
  84. package/dist/src/models/index.js +13 -13
  85. package/dist/src/models/joint-hirer.entity.d.ts +13 -13
  86. package/dist/src/models/joint-hirer.entity.js +78 -78
  87. package/dist/src/models/joint-hirer.entity.js.map +1 -1
  88. package/dist/src/models/rental-price.entity.d.ts +8 -8
  89. package/dist/src/models/rental-price.entity.js +58 -58
  90. package/dist/src/models/rental-price.entity.js.map +1 -1
  91. package/dist/src/models/rental.entity.d.ts +29 -29
  92. package/dist/src/models/rental.entity.js +159 -159
  93. package/dist/src/models/rental.entity.js.map +1 -1
  94. package/dist/tsconfig.tsbuildinfo +1 -1
  95. package/eslint.config.mjs +37 -0
  96. package/jest.config.js +10 -10
  97. package/migrations/booking-table-migration.js +79 -79
  98. package/migrations/joint-hirer-table-migration.js +52 -52
  99. package/migrations/rental-aggrement-table-migration.js +30 -30
  100. package/migrations/rental-price-table-migration.js +32 -32
  101. package/migrations/rental-table-migrations.js +96 -96
  102. package/package.json +78 -75
  103. package/sonar-project.properties +12 -12
  104. package/src/components/agreement/agreement.repository.ts +54 -54
  105. package/src/components/agreement/agreement.ts +49 -49
  106. package/src/components/booking/booking.repository.ts +51 -51
  107. package/src/components/booking/booking.ts +492 -492
  108. package/src/components/joint-hirer/joint-hirer.repository.ts +54 -54
  109. package/src/components/joint-hirer/joint-hirer.ts +1 -1
  110. package/src/components/rental/rental.repository.ts +51 -51
  111. package/src/components/rental/rental.ts +963 -966
  112. package/src/components/rental-price/rental-price.repository.ts +54 -54
  113. package/src/components/rental-price/rental-price.ts +100 -100
  114. package/src/database.ts +27 -27
  115. package/src/enum/account-type.enum.ts +4 -4
  116. package/src/enum/booking.enum.ts +5 -5
  117. package/src/enum/index.ts +11 -11
  118. package/src/enum/rental-status.enum.ts +39 -39
  119. package/src/index.ts +28 -28
  120. package/src/interfaces/agreement-attr.interface.ts +7 -7
  121. package/src/interfaces/booking-attr.interface.ts +19 -19
  122. package/src/interfaces/booking-find-all-search-attr.interface.ts +12 -12
  123. package/src/interfaces/index.ts +15 -15
  124. package/src/interfaces/joint-hirer-attr.interface.ts +10 -10
  125. package/src/interfaces/rental-attr.interface.ts +25 -25
  126. package/src/interfaces/rental-find-all-search-attr.interface.ts +11 -11
  127. package/src/interfaces/rental-price-attr.interface.ts +7 -7
  128. package/src/models/agreement.entity.ts +39 -39
  129. package/src/models/booking.entity.ts +105 -105
  130. package/src/models/index.ts +13 -13
  131. package/src/models/joint-hirer.entity.ts +63 -63
  132. package/src/models/rental-price.entity.ts +38 -38
  133. package/src/models/rental.entity.ts +133 -133
  134. package/tsconfig.build.json +5 -5
  135. package/tsconfig.json +23 -23
  136. package/.eslintignore +0 -1
@@ -1,79 +1,79 @@
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.JointHirerModel = void 0;
13
- const sequelize_typescript_1 = require("sequelize-typescript");
14
- const rental_entity_1 = require("./rental.entity");
15
- let JointHirerModel = class JointHirerModel extends sequelize_typescript_1.Model {
16
- };
17
- __decorate([
18
- (0, sequelize_typescript_1.Column)({
19
- primaryKey: true,
20
- allowNull: false,
21
- type: sequelize_typescript_1.DataType.STRING(30),
22
- }),
23
- __metadata("design:type", String)
24
- ], JointHirerModel.prototype, "HirerId", void 0);
25
- __decorate([
26
- (0, sequelize_typescript_1.ForeignKey)(() => rental_entity_1.RentalModel),
27
- (0, sequelize_typescript_1.Column)({
28
- allowNull: false,
29
- type: sequelize_typescript_1.DataType.STRING(30),
30
- }),
31
- __metadata("design:type", String)
32
- ], JointHirerModel.prototype, "RentalId", void 0);
33
- __decorate([
34
- (0, sequelize_typescript_1.Column)({
35
- allowNull: false,
36
- type: sequelize_typescript_1.DataType.STRING(30),
37
- }),
38
- __metadata("design:type", String)
39
- ], JointHirerModel.prototype, "CustomerId", void 0);
40
- __decorate([
41
- (0, sequelize_typescript_1.Column)({
42
- allowNull: false,
43
- type: sequelize_typescript_1.DataType.STRING(30),
44
- }),
45
- __metadata("design:type", String)
46
- ], JointHirerModel.prototype, "CustomerType", void 0);
47
- __decorate([
48
- (0, sequelize_typescript_1.Column)({
49
- allowNull: false,
50
- type: sequelize_typescript_1.DataType.STRING(30),
51
- }),
52
- __metadata("design:type", String)
53
- ], JointHirerModel.prototype, "CreatedById", void 0);
54
- __decorate([
55
- sequelize_typescript_1.CreatedAt,
56
- __metadata("design:type", Date)
57
- ], JointHirerModel.prototype, "CreatedAt", void 0);
58
- __decorate([
59
- (0, sequelize_typescript_1.Column)({
60
- allowNull: false,
61
- type: sequelize_typescript_1.DataType.STRING(30),
62
- }),
63
- __metadata("design:type", String)
64
- ], JointHirerModel.prototype, "UpdatedById", void 0);
65
- __decorate([
66
- sequelize_typescript_1.UpdatedAt,
67
- __metadata("design:type", Date)
68
- ], JointHirerModel.prototype, "UpdatedAt", void 0);
69
- __decorate([
70
- (0, sequelize_typescript_1.BelongsTo)(() => rental_entity_1.RentalModel),
71
- __metadata("design:type", rental_entity_1.RentalModel)
72
- ], JointHirerModel.prototype, "RentalPrice", void 0);
73
- JointHirerModel = __decorate([
74
- (0, sequelize_typescript_1.Table)({
75
- tableName: 'rental_JointHirer',
76
- })
77
- ], JointHirerModel);
78
- exports.JointHirerModel = JointHirerModel;
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.JointHirerModel = void 0;
13
+ const sequelize_typescript_1 = require("sequelize-typescript");
14
+ const rental_entity_1 = require("./rental.entity");
15
+ let JointHirerModel = class JointHirerModel extends sequelize_typescript_1.Model {
16
+ };
17
+ exports.JointHirerModel = JointHirerModel;
18
+ __decorate([
19
+ (0, sequelize_typescript_1.Column)({
20
+ primaryKey: true,
21
+ allowNull: false,
22
+ type: sequelize_typescript_1.DataType.STRING(30),
23
+ }),
24
+ __metadata("design:type", String)
25
+ ], JointHirerModel.prototype, "HirerId", void 0);
26
+ __decorate([
27
+ (0, sequelize_typescript_1.ForeignKey)(() => rental_entity_1.RentalModel),
28
+ (0, sequelize_typescript_1.Column)({
29
+ allowNull: false,
30
+ type: sequelize_typescript_1.DataType.STRING(30),
31
+ }),
32
+ __metadata("design:type", String)
33
+ ], JointHirerModel.prototype, "RentalId", void 0);
34
+ __decorate([
35
+ (0, sequelize_typescript_1.Column)({
36
+ allowNull: false,
37
+ type: sequelize_typescript_1.DataType.STRING(30),
38
+ }),
39
+ __metadata("design:type", String)
40
+ ], JointHirerModel.prototype, "CustomerId", void 0);
41
+ __decorate([
42
+ (0, sequelize_typescript_1.Column)({
43
+ allowNull: false,
44
+ type: sequelize_typescript_1.DataType.STRING(30),
45
+ }),
46
+ __metadata("design:type", String)
47
+ ], JointHirerModel.prototype, "CustomerType", void 0);
48
+ __decorate([
49
+ (0, sequelize_typescript_1.Column)({
50
+ allowNull: false,
51
+ type: sequelize_typescript_1.DataType.STRING(30),
52
+ }),
53
+ __metadata("design:type", String)
54
+ ], JointHirerModel.prototype, "CreatedById", void 0);
55
+ __decorate([
56
+ sequelize_typescript_1.CreatedAt,
57
+ __metadata("design:type", Date)
58
+ ], JointHirerModel.prototype, "CreatedAt", void 0);
59
+ __decorate([
60
+ (0, sequelize_typescript_1.Column)({
61
+ allowNull: false,
62
+ type: sequelize_typescript_1.DataType.STRING(30),
63
+ }),
64
+ __metadata("design:type", String)
65
+ ], JointHirerModel.prototype, "UpdatedById", void 0);
66
+ __decorate([
67
+ sequelize_typescript_1.UpdatedAt,
68
+ __metadata("design:type", Date)
69
+ ], JointHirerModel.prototype, "UpdatedAt", void 0);
70
+ __decorate([
71
+ (0, sequelize_typescript_1.BelongsTo)(() => rental_entity_1.RentalModel),
72
+ __metadata("design:type", rental_entity_1.RentalModel)
73
+ ], JointHirerModel.prototype, "RentalPrice", void 0);
74
+ exports.JointHirerModel = JointHirerModel = __decorate([
75
+ (0, sequelize_typescript_1.Table)({
76
+ tableName: 'rental_JointHirer',
77
+ })
78
+ ], JointHirerModel);
79
79
  //# sourceMappingURL=joint-hirer.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"joint-hirer.entity.js","sourceRoot":"","sources":["../../../src/models/joint-hirer.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,mDAA8C;AAKvC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,4BAAK;CA+CzC,CAAA;AA9CC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;gDACc;AAEhB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,2BAAW,CAAC;IAC7B,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACe;AAEjB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;mDACiB;AAEnB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;qDACmB;AAErB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;oDACkB;AAEpB;IAAC,gCAAS;8BACC,IAAI;kDAAC;AAEhB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;oDACkB;AAEpB;IAAC,gCAAS;8BACC,IAAI;kDAAC;AAEhB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,2BAAW,CAAC;8BAChB,2BAAW;oDAAC;AA9Cd,eAAe;IAH3B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,mBAAmB;KAC/B,CAAC;GACW,eAAe,CA+C3B;AA/CY,0CAAe"}
1
+ {"version":3,"file":"joint-hirer.entity.js","sourceRoot":"","sources":["../../../src/models/joint-hirer.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,mDAA8C;AAKvC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,4BAAK;CA+CzC,CAAA;AA/CY,0CAAe;AAM1B;IALC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;gDACc;AAOhB;IALC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,2BAAW,CAAC;IAC7B,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACe;AAMjB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;mDACiB;AAMnB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;qDACmB;AAMrB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;oDACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;kDAAC;AAMhB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;oDACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;kDAAC;AAGhB;IADC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,2BAAW,CAAC;8BAChB,2BAAW;oDAAC;0BA9Cd,eAAe;IAH3B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,mBAAmB;KAC/B,CAAC;GACW,eAAe,CA+C3B"}
@@ -1,8 +1,8 @@
1
- import { Model } from 'sequelize-typescript';
2
- export declare class RentalPriceModel extends Model {
3
- PriceId: string;
4
- RetailPrice: number;
5
- Currency: string;
6
- PromoCode: string;
7
- Remarks: string;
8
- }
1
+ import { Model } from 'sequelize-typescript';
2
+ export declare class RentalPriceModel extends Model {
3
+ PriceId: string;
4
+ RetailPrice: number;
5
+ Currency: string;
6
+ PromoCode: string;
7
+ Remarks: string;
8
+ }
@@ -1,59 +1,59 @@
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.RentalPriceModel = void 0;
13
- const sequelize_typescript_1 = require("sequelize-typescript");
14
- let RentalPriceModel = class RentalPriceModel extends sequelize_typescript_1.Model {
15
- };
16
- __decorate([
17
- (0, sequelize_typescript_1.Column)({
18
- primaryKey: true,
19
- allowNull: false,
20
- type: sequelize_typescript_1.DataType.STRING(30),
21
- }),
22
- __metadata("design:type", String)
23
- ], RentalPriceModel.prototype, "PriceId", void 0);
24
- __decorate([
25
- (0, sequelize_typescript_1.Column)({
26
- allowNull: false,
27
- type: sequelize_typescript_1.DataType.DECIMAL(10, 2),
28
- }),
29
- __metadata("design:type", Number)
30
- ], RentalPriceModel.prototype, "RetailPrice", void 0);
31
- __decorate([
32
- (0, sequelize_typescript_1.Column)({
33
- allowNull: false,
34
- type: sequelize_typescript_1.DataType.CHAR(3),
35
- }),
36
- __metadata("design:type", String)
37
- ], RentalPriceModel.prototype, "Currency", void 0);
38
- __decorate([
39
- (0, sequelize_typescript_1.Column)({
40
- type: sequelize_typescript_1.DataType.STRING(10),
41
- }),
42
- __metadata("design:type", String)
43
- ], RentalPriceModel.prototype, "PromoCode", void 0);
44
- __decorate([
45
- (0, sequelize_typescript_1.Column)({
46
- type: sequelize_typescript_1.DataType.STRING(3000),
47
- }),
48
- __metadata("design:type", String)
49
- ], RentalPriceModel.prototype, "Remarks", void 0);
50
- RentalPriceModel = __decorate([
51
- (0, sequelize_typescript_1.Table)({
52
- tableName: 'rental_Price',
53
- timestamps: false,
54
- createdAt: false,
55
- updatedAt: false,
56
- })
57
- ], RentalPriceModel);
58
- exports.RentalPriceModel = RentalPriceModel;
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.RentalPriceModel = void 0;
13
+ const sequelize_typescript_1 = require("sequelize-typescript");
14
+ let RentalPriceModel = class RentalPriceModel extends sequelize_typescript_1.Model {
15
+ };
16
+ exports.RentalPriceModel = RentalPriceModel;
17
+ __decorate([
18
+ (0, sequelize_typescript_1.Column)({
19
+ primaryKey: true,
20
+ allowNull: false,
21
+ type: sequelize_typescript_1.DataType.STRING(30),
22
+ }),
23
+ __metadata("design:type", String)
24
+ ], RentalPriceModel.prototype, "PriceId", void 0);
25
+ __decorate([
26
+ (0, sequelize_typescript_1.Column)({
27
+ allowNull: false,
28
+ type: sequelize_typescript_1.DataType.DECIMAL(10, 2),
29
+ }),
30
+ __metadata("design:type", Number)
31
+ ], RentalPriceModel.prototype, "RetailPrice", void 0);
32
+ __decorate([
33
+ (0, sequelize_typescript_1.Column)({
34
+ allowNull: false,
35
+ type: sequelize_typescript_1.DataType.CHAR(3),
36
+ }),
37
+ __metadata("design:type", String)
38
+ ], RentalPriceModel.prototype, "Currency", void 0);
39
+ __decorate([
40
+ (0, sequelize_typescript_1.Column)({
41
+ type: sequelize_typescript_1.DataType.STRING(10),
42
+ }),
43
+ __metadata("design:type", String)
44
+ ], RentalPriceModel.prototype, "PromoCode", void 0);
45
+ __decorate([
46
+ (0, sequelize_typescript_1.Column)({
47
+ type: sequelize_typescript_1.DataType.STRING(3000),
48
+ }),
49
+ __metadata("design:type", String)
50
+ ], RentalPriceModel.prototype, "Remarks", void 0);
51
+ exports.RentalPriceModel = RentalPriceModel = __decorate([
52
+ (0, sequelize_typescript_1.Table)({
53
+ tableName: 'rental_Price',
54
+ timestamps: false,
55
+ createdAt: false,
56
+ updatedAt: false,
57
+ })
58
+ ], RentalPriceModel);
59
59
  //# sourceMappingURL=rental-price.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rental-price.entity.js","sourceRoot":"","sources":["../../../src/models/rental-price.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAsE;AAQ/D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,4BAAK;CA6B1C,CAAA;AA5BC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACc;AAEhB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KAC9B,CAAC;;qDACkB;AAEpB;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;KACvB,CAAC;;kDACe;AAEjB;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;mDACgB;AAElB;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;KAC5B,CAAC;;iDACc;AA5BL,gBAAgB;IAN5B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,cAAc;QACzB,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,KAAK;KACjB,CAAC;GACW,gBAAgB,CA6B5B;AA7BY,4CAAgB"}
1
+ {"version":3,"file":"rental-price.entity.js","sourceRoot":"","sources":["../../../src/models/rental-price.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAsE;AAQ/D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,4BAAK;CA6B1C,CAAA;AA7BY,4CAAgB;AAM3B;IALC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACc;AAMhB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KAC9B,CAAC;;qDACkB;AAMpB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;KACvB,CAAC;;kDACe;AAKjB;IAHC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;mDACgB;AAKlB;IAHC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;KAC5B,CAAC;;iDACc;2BA5BL,gBAAgB;IAN5B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,cAAc;QACzB,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,KAAK;KACjB,CAAC;GACW,gBAAgB,CA6B5B"}
@@ -1,29 +1,29 @@
1
- import { Model } from 'sequelize-typescript';
2
- import { RentalPriceModel } from './rental-price.entity';
3
- import { RentalStatusEnum } from '../enum/rental-status.enum';
4
- import { JointHirerModel } from './joint-hirer.entity';
5
- import { RentalAccountTypeEnum } from '../enum/account-type.enum';
6
- import { AgreementModel } from './agreement.entity';
7
- export declare class RentalModel extends Model {
8
- RentalId: string;
9
- CustomerId: string;
10
- CustomerType: string;
11
- ItemId: string;
12
- ItemType: string;
13
- PriceId: string;
14
- StartDateTime: Date;
15
- EndDateTime: Date;
16
- Status: RentalStatusEnum;
17
- CancelRemarks: string;
18
- TerminateRemarks: string;
19
- EscheatmentYN: string;
20
- AgreementNo: string;
21
- AccountType: RentalAccountTypeEnum;
22
- CreatedById: string;
23
- CreatedAt: Date;
24
- UpdatedById: string;
25
- UpdatedAt: Date;
26
- RentalPrice: RentalPriceModel;
27
- Agreement: AgreementModel;
28
- JointHirers: JointHirerModel[];
29
- }
1
+ import { Model } from 'sequelize-typescript';
2
+ import { RentalPriceModel } from './rental-price.entity';
3
+ import { RentalStatusEnum } from '../enum/rental-status.enum';
4
+ import { JointHirerModel } from './joint-hirer.entity';
5
+ import { RentalAccountTypeEnum } from '../enum/account-type.enum';
6
+ import { AgreementModel } from './agreement.entity';
7
+ export declare class RentalModel extends Model {
8
+ RentalId: string;
9
+ CustomerId: string;
10
+ CustomerType: string;
11
+ ItemId: string;
12
+ ItemType: string;
13
+ PriceId: string;
14
+ StartDateTime: Date;
15
+ EndDateTime: Date;
16
+ Status: RentalStatusEnum;
17
+ CancelRemarks: string;
18
+ TerminateRemarks: string;
19
+ EscheatmentYN: string;
20
+ AgreementNo: string;
21
+ AccountType: RentalAccountTypeEnum;
22
+ CreatedById: string;
23
+ CreatedAt: Date;
24
+ UpdatedById: string;
25
+ UpdatedAt: Date;
26
+ RentalPrice: RentalPriceModel;
27
+ Agreement: AgreementModel;
28
+ JointHirers: JointHirerModel[];
29
+ }