@tomei/rental 0.4.3 → 0.4.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.
- 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,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RentalStatusEnum = void 0;
|
|
4
|
-
var RentalStatusEnum;
|
|
5
|
-
(function (RentalStatusEnum) {
|
|
6
|
-
RentalStatusEnum["RESERVED"] = "Reserved";
|
|
7
|
-
RentalStatusEnum["ACTIVE"] = "Active";
|
|
8
|
-
RentalStatusEnum["SUSPENDED"] = "Suspended";
|
|
9
|
-
RentalStatusEnum["CANCELLED"] = "Cancelled";
|
|
10
|
-
RentalStatusEnum["TERMINATED"] = "Terminated";
|
|
11
|
-
})(RentalStatusEnum = exports.RentalStatusEnum || (exports.RentalStatusEnum = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RentalStatusEnum = void 0;
|
|
4
|
+
var RentalStatusEnum;
|
|
5
|
+
(function (RentalStatusEnum) {
|
|
6
|
+
RentalStatusEnum["RESERVED"] = "Reserved";
|
|
7
|
+
RentalStatusEnum["ACTIVE"] = "Active";
|
|
8
|
+
RentalStatusEnum["SUSPENDED"] = "Suspended";
|
|
9
|
+
RentalStatusEnum["CANCELLED"] = "Cancelled";
|
|
10
|
+
RentalStatusEnum["TERMINATED"] = "Terminated";
|
|
11
|
+
})(RentalStatusEnum = exports.RentalStatusEnum || (exports.RentalStatusEnum = {}));
|
|
12
12
|
//# sourceMappingURL=rental-status.enum.js.map
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RentalPriceRepository } from './components/rental-price/rental-price.repository';
|
|
2
|
-
import { RentalRepository } from './components/rental/rental.repository';
|
|
3
|
-
import { Rental } from './components/rental/rental';
|
|
4
|
-
import { RentalPrice } from './components/rental-price/rental-price';
|
|
5
|
-
import * as rentalDb from './database';
|
|
6
|
-
export * from './interfaces';
|
|
7
|
-
export * from './models';
|
|
8
|
-
export * from './enum';
|
|
9
|
-
export { Rental, RentalPrice, RentalRepository, RentalPriceRepository, rentalDb, };
|
|
1
|
+
import { RentalPriceRepository } from './components/rental-price/rental-price.repository';
|
|
2
|
+
import { RentalRepository } from './components/rental/rental.repository';
|
|
3
|
+
import { Rental } from './components/rental/rental';
|
|
4
|
+
import { RentalPrice } from './components/rental-price/rental-price';
|
|
5
|
+
import * as rentalDb from './database';
|
|
6
|
+
export * from './interfaces';
|
|
7
|
+
export * from './models';
|
|
8
|
+
export * from './enum';
|
|
9
|
+
export { Rental, RentalPrice, RentalRepository, RentalPriceRepository, rentalDb, };
|
package/dist/src/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.rentalDb = exports.RentalPriceRepository = exports.RentalRepository = exports.RentalPrice = exports.Rental = void 0;
|
|
18
|
-
const rental_price_repository_1 = require("./components/rental-price/rental-price.repository");
|
|
19
|
-
Object.defineProperty(exports, "RentalPriceRepository", { enumerable: true, get: function () { return rental_price_repository_1.RentalPriceRepository; } });
|
|
20
|
-
const rental_repository_1 = require("./components/rental/rental.repository");
|
|
21
|
-
Object.defineProperty(exports, "RentalRepository", { enumerable: true, get: function () { return rental_repository_1.RentalRepository; } });
|
|
22
|
-
const rental_1 = require("./components/rental/rental");
|
|
23
|
-
Object.defineProperty(exports, "Rental", { enumerable: true, get: function () { return rental_1.Rental; } });
|
|
24
|
-
const rental_price_1 = require("./components/rental-price/rental-price");
|
|
25
|
-
Object.defineProperty(exports, "RentalPrice", { enumerable: true, get: function () { return rental_price_1.RentalPrice; } });
|
|
26
|
-
const rentalDb = require("./database");
|
|
27
|
-
exports.rentalDb = rentalDb;
|
|
28
|
-
__exportStar(require("./interfaces"), exports);
|
|
29
|
-
__exportStar(require("./models"), exports);
|
|
30
|
-
__exportStar(require("./enum"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.rentalDb = exports.RentalPriceRepository = exports.RentalRepository = exports.RentalPrice = exports.Rental = void 0;
|
|
18
|
+
const rental_price_repository_1 = require("./components/rental-price/rental-price.repository");
|
|
19
|
+
Object.defineProperty(exports, "RentalPriceRepository", { enumerable: true, get: function () { return rental_price_repository_1.RentalPriceRepository; } });
|
|
20
|
+
const rental_repository_1 = require("./components/rental/rental.repository");
|
|
21
|
+
Object.defineProperty(exports, "RentalRepository", { enumerable: true, get: function () { return rental_repository_1.RentalRepository; } });
|
|
22
|
+
const rental_1 = require("./components/rental/rental");
|
|
23
|
+
Object.defineProperty(exports, "Rental", { enumerable: true, get: function () { return rental_1.Rental; } });
|
|
24
|
+
const rental_price_1 = require("./components/rental-price/rental-price");
|
|
25
|
+
Object.defineProperty(exports, "RentalPrice", { enumerable: true, get: function () { return rental_price_1.RentalPrice; } });
|
|
26
|
+
const rentalDb = require("./database");
|
|
27
|
+
exports.rentalDb = rentalDb;
|
|
28
|
+
__exportStar(require("./interfaces"), exports);
|
|
29
|
+
__exportStar(require("./models"), exports);
|
|
30
|
+
__exportStar(require("./enum"), exports);
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRentalAttr } from './rental-attr.interface';
|
|
2
|
-
import { IRentalPriceAttr } from './rental-price-attr.interface';
|
|
3
|
-
import { IRentalFindAllSearchAttr } from './rental-find-all-search-attr.interface';
|
|
4
|
-
export { IRentalAttr, IRentalPriceAttr, IRentalFindAllSearchAttr };
|
|
1
|
+
import { IRentalAttr } from './rental-attr.interface';
|
|
2
|
+
import { IRentalPriceAttr } from './rental-price-attr.interface';
|
|
3
|
+
import { IRentalFindAllSearchAttr } from './rental-find-all-search-attr.interface';
|
|
4
|
+
export { IRentalAttr, IRentalPriceAttr, IRentalFindAllSearchAttr };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
2
|
-
export interface IRentalAttr {
|
|
3
|
-
RentalId: string;
|
|
4
|
-
CustomerId: string;
|
|
5
|
-
CustomerType: string;
|
|
6
|
-
ItemId: string;
|
|
7
|
-
ItemType: string;
|
|
8
|
-
PriceId: string;
|
|
9
|
-
StartDateTime: Date;
|
|
10
|
-
EndDateTime: Date;
|
|
11
|
-
CancelRemarks: string;
|
|
12
|
-
TerminateRemarks: string;
|
|
13
|
-
AgreementNo: string;
|
|
14
|
-
Status: RentalStatusEnum;
|
|
15
|
-
EscheatmentYN: string;
|
|
16
|
-
CreatedById: string;
|
|
17
|
-
CreatedAt: Date;
|
|
18
|
-
UpdatedById: string;
|
|
19
|
-
UpdatedAt: Date;
|
|
20
|
-
}
|
|
1
|
+
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
2
|
+
export interface IRentalAttr {
|
|
3
|
+
RentalId: string;
|
|
4
|
+
CustomerId: string;
|
|
5
|
+
CustomerType: string;
|
|
6
|
+
ItemId: string;
|
|
7
|
+
ItemType: string;
|
|
8
|
+
PriceId: string;
|
|
9
|
+
StartDateTime: Date;
|
|
10
|
+
EndDateTime: Date;
|
|
11
|
+
CancelRemarks: string;
|
|
12
|
+
TerminateRemarks: string;
|
|
13
|
+
AgreementNo: string;
|
|
14
|
+
Status: RentalStatusEnum;
|
|
15
|
+
EscheatmentYN: string;
|
|
16
|
+
CreatedById: string;
|
|
17
|
+
CreatedAt: Date;
|
|
18
|
+
UpdatedById: string;
|
|
19
|
+
UpdatedAt: Date;
|
|
20
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=rental-attr.interface.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
2
|
-
export interface IRentalFindAllSearchAttr {
|
|
3
|
-
Status?: RentalStatusEnum;
|
|
4
|
-
StartDateTime?: Date;
|
|
5
|
-
EndDateTime?: Date;
|
|
6
|
-
ItemId?: string;
|
|
7
|
-
ItemType?: string;
|
|
8
|
-
CustomerId?: string;
|
|
9
|
-
CustomerType?: string;
|
|
10
|
-
}
|
|
1
|
+
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
2
|
+
export interface IRentalFindAllSearchAttr {
|
|
3
|
+
Status?: RentalStatusEnum;
|
|
4
|
+
StartDateTime?: Date;
|
|
5
|
+
EndDateTime?: Date;
|
|
6
|
+
ItemId?: string;
|
|
7
|
+
ItemType?: string;
|
|
8
|
+
CustomerId?: string;
|
|
9
|
+
CustomerType?: string;
|
|
10
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=rental-find-all-search-attr.interface.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface IRentalPriceAttr {
|
|
2
|
-
PriceId: string;
|
|
3
|
-
RetailPrice: number;
|
|
4
|
-
Currency: string;
|
|
5
|
-
PromoCode: string;
|
|
6
|
-
Remarks: string;
|
|
7
|
-
}
|
|
1
|
+
export interface IRentalPriceAttr {
|
|
2
|
+
PriceId: string;
|
|
3
|
+
RetailPrice: number;
|
|
4
|
+
Currency: string;
|
|
5
|
+
PromoCode: string;
|
|
6
|
+
Remarks: string;
|
|
7
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=rental-price-attr.interface.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RentalModel } from './rental.entity';
|
|
2
|
-
import { RentalPriceModel } from './rental-price.entity';
|
|
3
|
-
export { RentalModel, RentalPriceModel };
|
|
1
|
+
import { RentalModel } from './rental.entity';
|
|
2
|
+
import { RentalPriceModel } from './rental-price.entity';
|
|
3
|
+
export { RentalModel, RentalPriceModel };
|
package/dist/src/models/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RentalPriceModel = exports.RentalModel = void 0;
|
|
4
|
-
const rental_entity_1 = require("./rental.entity");
|
|
5
|
-
Object.defineProperty(exports, "RentalModel", { enumerable: true, get: function () { return rental_entity_1.RentalModel; } });
|
|
6
|
-
const rental_price_entity_1 = require("./rental-price.entity");
|
|
7
|
-
Object.defineProperty(exports, "RentalPriceModel", { enumerable: true, get: function () { return rental_price_entity_1.RentalPriceModel; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RentalPriceModel = exports.RentalModel = void 0;
|
|
4
|
+
const rental_entity_1 = require("./rental.entity");
|
|
5
|
+
Object.defineProperty(exports, "RentalModel", { enumerable: true, get: function () { return rental_entity_1.RentalModel; } });
|
|
6
|
+
const rental_price_entity_1 = require("./rental-price.entity");
|
|
7
|
+
Object.defineProperty(exports, "RentalPriceModel", { enumerable: true, get: function () { return rental_price_entity_1.RentalPriceModel; } });
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -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
|
+
__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;
|
|
59
59
|
//# sourceMappingURL=rental-price.entity.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { RentalPriceModel } from './rental-price.entity';
|
|
3
|
-
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
4
|
-
export declare class RentalModel extends Model {
|
|
5
|
-
RentalId: string;
|
|
6
|
-
CustomerId: string;
|
|
7
|
-
CustomerType: string;
|
|
8
|
-
ItemId: string;
|
|
9
|
-
ItemType: string;
|
|
10
|
-
PriceId: string;
|
|
11
|
-
StartDateTime: Date;
|
|
12
|
-
EndDateTime: Date;
|
|
13
|
-
Status: RentalStatusEnum;
|
|
14
|
-
CancelRemarks: string;
|
|
15
|
-
TerminateRemarks: string;
|
|
16
|
-
EscheatmentYN: string;
|
|
17
|
-
AgreementNo: string;
|
|
18
|
-
CreatedById: string;
|
|
19
|
-
CreatedAt: Date;
|
|
20
|
-
UpdatedById: string;
|
|
21
|
-
UpdatedAt: Date;
|
|
22
|
-
RentalPrice: RentalPriceModel;
|
|
23
|
-
}
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { RentalPriceModel } from './rental-price.entity';
|
|
3
|
+
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
4
|
+
export declare class RentalModel extends Model {
|
|
5
|
+
RentalId: string;
|
|
6
|
+
CustomerId: string;
|
|
7
|
+
CustomerType: string;
|
|
8
|
+
ItemId: string;
|
|
9
|
+
ItemType: string;
|
|
10
|
+
PriceId: string;
|
|
11
|
+
StartDateTime: Date;
|
|
12
|
+
EndDateTime: Date;
|
|
13
|
+
Status: RentalStatusEnum;
|
|
14
|
+
CancelRemarks: string;
|
|
15
|
+
TerminateRemarks: string;
|
|
16
|
+
EscheatmentYN: string;
|
|
17
|
+
AgreementNo: string;
|
|
18
|
+
CreatedById: string;
|
|
19
|
+
CreatedAt: Date;
|
|
20
|
+
UpdatedById: string;
|
|
21
|
+
UpdatedAt: Date;
|
|
22
|
+
RentalPrice: RentalPriceModel;
|
|
23
|
+
}
|