@tomei/rental 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.commitlintrc.json +22 -22
- package/.eslintrc +16 -16
- package/.eslintrc.js +35 -35
- package/.husky/commit-msg +15 -15
- package/.husky/pre-commit +7 -7
- package/.prettierrc +4 -4
- package/Jenkinsfile +51 -51
- package/README.md +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -17
- package/dist/src/components/rental/rental.d.ts +45 -39
- package/dist/src/components/rental/rental.js +338 -331
- package/dist/src/components/rental/rental.js.map +1 -1
- package/dist/src/components/rental/rental.repository.d.ts +8 -8
- package/dist/src/components/rental/rental.repository.js +66 -66
- package/dist/src/components/rental-price/rental-price.d.ts +18 -12
- package/dist/src/components/rental-price/rental-price.js +78 -71
- package/dist/src/components/rental-price/rental-price.js.map +1 -1
- package/dist/src/components/rental-price/rental-price.repository.d.ts +8 -8
- package/dist/src/components/rental-price/rental-price.repository.js +66 -66
- package/dist/src/database.d.ts +4 -4
- package/dist/src/database.js +19 -19
- package/dist/src/enum/index.d.ts +2 -2
- package/dist/src/enum/index.js +5 -5
- package/dist/src/enum/rental-status.enum.d.ts +7 -7
- package/dist/src/enum/rental-status.enum.js +11 -11
- package/dist/src/index.d.ts +9 -9
- package/dist/src/index.js +30 -30
- package/dist/src/interfaces/index.d.ts +4 -4
- package/dist/src/interfaces/index.js +2 -2
- package/dist/src/interfaces/rental-attr.interface.d.ts +20 -20
- package/dist/src/interfaces/rental-attr.interface.js +2 -2
- package/dist/src/interfaces/rental-find-all-search-attr.interface.d.ts +10 -10
- package/dist/src/interfaces/rental-find-all-search-attr.interface.js +2 -2
- package/dist/src/interfaces/rental-price-attr.interface.d.ts +7 -7
- package/dist/src/interfaces/rental-price-attr.interface.js +2 -2
- package/dist/src/models/index.d.ts +3 -3
- package/dist/src/models/index.js +7 -7
- package/dist/src/models/rental-price.entity.d.ts +8 -8
- package/dist/src/models/rental-price.entity.js +58 -58
- package/dist/src/models/rental.entity.d.ts +23 -23
- package/dist/src/models/rental.entity.js +140 -140
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/jest.config.js +10 -10
- package/migrations/rental-price-table-migration.js +32 -32
- package/migrations/rental-table-migrations.js +86 -86
- package/package.json +71 -71
- package/src/components/rental/rental.repository.ts +51 -51
- package/src/components/rental/rental.ts +511 -500
- package/src/components/rental-price/rental-price.repository.ts +54 -54
- package/src/components/rental-price/rental-price.ts +100 -89
- package/src/database.ts +21 -21
- package/src/enum/index.ts +3 -3
- package/src/enum/rental-status.enum.ts +29 -29
- package/src/index.ts +16 -16
- package/src/interfaces/index.ts +5 -5
- package/src/interfaces/rental-attr.interface.ts +21 -21
- package/src/interfaces/rental-find-all-search-attr.interface.ts +11 -11
- package/src/interfaces/rental-price-attr.interface.ts +7 -7
- package/src/models/index.ts +4 -4
- package/src/models/rental-price.entity.ts +38 -38
- package/src/models/rental.entity.ts +116 -116
- package/tsconfig.build.json +5 -5
- package/tsconfig.json +23 -23
|
@@ -1,141 +1,141 @@
|
|
|
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.RentalModel = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const rental_price_entity_1 = require("./rental-price.entity");
|
|
15
|
-
const rental_status_enum_1 = require("../enum/rental-status.enum");
|
|
16
|
-
let RentalModel = class RentalModel extends sequelize_typescript_1.Model {
|
|
17
|
-
};
|
|
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
|
-
], RentalModel.prototype, "RentalId", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, sequelize_typescript_1.Column)({
|
|
28
|
-
allowNull: false,
|
|
29
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
30
|
-
}),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], RentalModel.prototype, "CustomerId", 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
|
-
], RentalModel.prototype, "CustomerType", 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
|
-
], RentalModel.prototype, "ItemId", 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
|
-
], RentalModel.prototype, "ItemType", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, sequelize_typescript_1.ForeignKey)(() => rental_price_entity_1.RentalPriceModel),
|
|
56
|
-
(0, sequelize_typescript_1.Column)({
|
|
57
|
-
allowNull: false,
|
|
58
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
59
|
-
}),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], RentalModel.prototype, "PriceId", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, sequelize_typescript_1.Column)({
|
|
64
|
-
allowNull: false,
|
|
65
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
66
|
-
}),
|
|
67
|
-
__metadata("design:type", Date)
|
|
68
|
-
], RentalModel.prototype, "StartDateTime", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, sequelize_typescript_1.Column)({
|
|
71
|
-
allowNull: false,
|
|
72
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
73
|
-
}),
|
|
74
|
-
__metadata("design:type", Date)
|
|
75
|
-
], RentalModel.prototype, "EndDateTime", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, sequelize_typescript_1.Column)({
|
|
78
|
-
allowNull: false,
|
|
79
|
-
type: sequelize_typescript_1.DataType.STRING(20),
|
|
80
|
-
}),
|
|
81
|
-
__metadata("design:type", String)
|
|
82
|
-
], RentalModel.prototype, "Status", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, sequelize_typescript_1.Column)({
|
|
85
|
-
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
86
|
-
}),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], RentalModel.prototype, "CancelRemarks", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, sequelize_typescript_1.Column)({
|
|
91
|
-
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
92
|
-
}),
|
|
93
|
-
__metadata("design:type", String)
|
|
94
|
-
], RentalModel.prototype, "TerminateRemarks", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, sequelize_typescript_1.Column)({
|
|
97
|
-
type: sequelize_typescript_1.DataType.CHAR(1),
|
|
98
|
-
}),
|
|
99
|
-
__metadata("design:type", String)
|
|
100
|
-
], RentalModel.prototype, "EscheatmentYN", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, sequelize_typescript_1.Column)({
|
|
103
|
-
allowNull: false,
|
|
104
|
-
unique: true,
|
|
105
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
106
|
-
}),
|
|
107
|
-
__metadata("design:type", String)
|
|
108
|
-
], RentalModel.prototype, "AgreementNo", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, sequelize_typescript_1.Column)({
|
|
111
|
-
allowNull: false,
|
|
112
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
113
|
-
}),
|
|
114
|
-
__metadata("design:type", String)
|
|
115
|
-
], RentalModel.prototype, "CreatedById", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
sequelize_typescript_1.CreatedAt,
|
|
118
|
-
__metadata("design:type", Date)
|
|
119
|
-
], RentalModel.prototype, "CreatedAt", void 0);
|
|
120
|
-
__decorate([
|
|
121
|
-
(0, sequelize_typescript_1.Column)({
|
|
122
|
-
allowNull: false,
|
|
123
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
124
|
-
}),
|
|
125
|
-
__metadata("design:type", String)
|
|
126
|
-
], RentalModel.prototype, "UpdatedById", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
sequelize_typescript_1.UpdatedAt,
|
|
129
|
-
__metadata("design:type", Date)
|
|
130
|
-
], RentalModel.prototype, "UpdatedAt", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
(0, sequelize_typescript_1.BelongsTo)(() => rental_price_entity_1.RentalPriceModel),
|
|
133
|
-
__metadata("design:type", rental_price_entity_1.RentalPriceModel)
|
|
134
|
-
], RentalModel.prototype, "RentalPrice", void 0);
|
|
135
|
-
RentalModel = __decorate([
|
|
136
|
-
(0, sequelize_typescript_1.Table)({
|
|
137
|
-
tableName: 'rental_Rental',
|
|
138
|
-
})
|
|
139
|
-
], RentalModel);
|
|
140
|
-
exports.RentalModel = RentalModel;
|
|
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.RentalModel = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const rental_price_entity_1 = require("./rental-price.entity");
|
|
15
|
+
const rental_status_enum_1 = require("../enum/rental-status.enum");
|
|
16
|
+
let RentalModel = class RentalModel extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
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
|
+
], RentalModel.prototype, "RentalId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, sequelize_typescript_1.Column)({
|
|
28
|
+
allowNull: false,
|
|
29
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
30
|
+
}),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], RentalModel.prototype, "CustomerId", 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
|
+
], RentalModel.prototype, "CustomerType", 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
|
+
], RentalModel.prototype, "ItemId", 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
|
+
], RentalModel.prototype, "ItemType", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, sequelize_typescript_1.ForeignKey)(() => rental_price_entity_1.RentalPriceModel),
|
|
56
|
+
(0, sequelize_typescript_1.Column)({
|
|
57
|
+
allowNull: false,
|
|
58
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
59
|
+
}),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], RentalModel.prototype, "PriceId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, sequelize_typescript_1.Column)({
|
|
64
|
+
allowNull: false,
|
|
65
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
66
|
+
}),
|
|
67
|
+
__metadata("design:type", Date)
|
|
68
|
+
], RentalModel.prototype, "StartDateTime", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, sequelize_typescript_1.Column)({
|
|
71
|
+
allowNull: false,
|
|
72
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
73
|
+
}),
|
|
74
|
+
__metadata("design:type", Date)
|
|
75
|
+
], RentalModel.prototype, "EndDateTime", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, sequelize_typescript_1.Column)({
|
|
78
|
+
allowNull: false,
|
|
79
|
+
type: sequelize_typescript_1.DataType.STRING(20),
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], RentalModel.prototype, "Status", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, sequelize_typescript_1.Column)({
|
|
85
|
+
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
86
|
+
}),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], RentalModel.prototype, "CancelRemarks", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, sequelize_typescript_1.Column)({
|
|
91
|
+
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
92
|
+
}),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], RentalModel.prototype, "TerminateRemarks", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, sequelize_typescript_1.Column)({
|
|
97
|
+
type: sequelize_typescript_1.DataType.CHAR(1),
|
|
98
|
+
}),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], RentalModel.prototype, "EscheatmentYN", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, sequelize_typescript_1.Column)({
|
|
103
|
+
allowNull: false,
|
|
104
|
+
unique: true,
|
|
105
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
106
|
+
}),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], RentalModel.prototype, "AgreementNo", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, sequelize_typescript_1.Column)({
|
|
111
|
+
allowNull: false,
|
|
112
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
113
|
+
}),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], RentalModel.prototype, "CreatedById", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
sequelize_typescript_1.CreatedAt,
|
|
118
|
+
__metadata("design:type", Date)
|
|
119
|
+
], RentalModel.prototype, "CreatedAt", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, sequelize_typescript_1.Column)({
|
|
122
|
+
allowNull: false,
|
|
123
|
+
type: sequelize_typescript_1.DataType.STRING(30),
|
|
124
|
+
}),
|
|
125
|
+
__metadata("design:type", String)
|
|
126
|
+
], RentalModel.prototype, "UpdatedById", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
sequelize_typescript_1.UpdatedAt,
|
|
129
|
+
__metadata("design:type", Date)
|
|
130
|
+
], RentalModel.prototype, "UpdatedAt", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, sequelize_typescript_1.BelongsTo)(() => rental_price_entity_1.RentalPriceModel),
|
|
133
|
+
__metadata("design:type", rental_price_entity_1.RentalPriceModel)
|
|
134
|
+
], RentalModel.prototype, "RentalPrice", void 0);
|
|
135
|
+
RentalModel = __decorate([
|
|
136
|
+
(0, sequelize_typescript_1.Table)({
|
|
137
|
+
tableName: 'rental_Rental',
|
|
138
|
+
})
|
|
139
|
+
], RentalModel);
|
|
140
|
+
exports.RentalModel = RentalModel;
|
|
141
141
|
//# sourceMappingURL=rental.entity.js.map
|