@tomei/rental 0.17.0 → 0.19.0-staging.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/rental/rental.d.ts +7 -0
- package/dist/src/components/rental/rental.js +141 -4
- package/dist/src/components/rental/rental.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -6
- package/src/ClassMappings/ItemClassMap.ts +7 -0
- package/src/ClassMappings/index.ts +3 -0
- package/src/components/rental/rental.ts +240 -4
- package/src/index.ts +2 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +0 -1
- package/dist/src/components/agreement/agreement.d.ts +0 -27
- package/dist/src/components/agreement/agreement.js +0 -137
- package/dist/src/components/agreement/agreement.js.map +0 -1
- package/dist/src/components/agreement/agreement.repository.d.ts +0 -8
- package/dist/src/components/agreement/agreement.repository.js +0 -67
- package/dist/src/components/agreement/agreement.repository.js.map +0 -1
- package/dist/src/components/agreement-history/agreement-history.d.ts +0 -17
- package/dist/src/components/agreement-history/agreement-history.js +0 -51
- package/dist/src/components/agreement-history/agreement-history.js.map +0 -1
- package/dist/src/components/agreement-history/agreement-history.repository.d.ts +0 -8
- package/dist/src/components/agreement-history/agreement-history.repository.js +0 -67
- package/dist/src/components/agreement-history/agreement-history.repository.js.map +0 -1
- package/dist/src/components/agreement-signature/agreement-signature.d.ts +0 -27
- package/dist/src/components/agreement-signature/agreement-signature.js +0 -112
- package/dist/src/components/agreement-signature/agreement-signature.js.map +0 -1
- package/dist/src/components/agreement-signature/agreement-signature.repository.d.ts +0 -8
- package/dist/src/components/agreement-signature/agreement-signature.repository.js +0 -68
- package/dist/src/components/agreement-signature/agreement-signature.repository.js.map +0 -1
- package/dist/src/components/booking/booking.d.ts +0 -46
- package/dist/src/components/booking/booking.js +0 -314
- package/dist/src/components/booking/booking.js.map +0 -1
- package/dist/src/components/booking/booking.repository.d.ts +0 -8
- package/dist/src/components/booking/booking.repository.js +0 -67
- package/dist/src/components/booking/booking.repository.js.map +0 -1
- package/dist/src/components/hirer-signature/hirer-signature.d.ts +0 -27
- package/dist/src/components/hirer-signature/hirer-signature.js +0 -112
- package/dist/src/components/hirer-signature/hirer-signature.js.map +0 -1
- package/dist/src/components/hirer-signature/hirer-signature.repository.d.ts +0 -8
- package/dist/src/components/hirer-signature/hirer-signature.repository.js +0 -67
- package/dist/src/components/hirer-signature/hirer-signature.repository.js.map +0 -1
- package/dist/src/components/joint-hirer/joint-hirer.d.ts +0 -23
- package/dist/src/components/joint-hirer/joint-hirer.js +0 -106
- package/dist/src/components/joint-hirer/joint-hirer.js.map +0 -1
- package/dist/src/components/joint-hirer/joint-hirer.repository.d.ts +0 -8
- package/dist/src/components/joint-hirer/joint-hirer.repository.js +0 -67
- package/dist/src/components/joint-hirer/joint-hirer.repository.js.map +0 -1
- package/dist/src/components/rental/rental.repository.d.ts +0 -8
- package/dist/src/components/rental/rental.repository.js +0 -67
- package/dist/src/components/rental/rental.repository.js.map +0 -1
- package/dist/src/components/rental-price/rental-price.d.ts +0 -18
- package/dist/src/components/rental-price/rental-price.js +0 -79
- package/dist/src/components/rental-price/rental-price.js.map +0 -1
- package/dist/src/components/rental-price/rental-price.repository.d.ts +0 -8
- package/dist/src/components/rental-price/rental-price.repository.js +0 -67
- package/dist/src/components/rental-price/rental-price.repository.js.map +0 -1
- package/dist/src/database.d.ts +0 -4
- package/dist/src/database.js +0 -29
- package/dist/src/database.js.map +0 -1
- package/dist/src/enum/account-type.enum.d.ts +0 -4
- package/dist/src/enum/account-type.enum.js +0 -9
- package/dist/src/enum/account-type.enum.js.map +0 -1
- package/dist/src/enum/aggrement-status.enum.d.ts +0 -5
- package/dist/src/enum/aggrement-status.enum.js +0 -10
- package/dist/src/enum/aggrement-status.enum.js.map +0 -1
- package/dist/src/enum/agreement-signature-status.enum.d.ts +0 -4
- package/dist/src/enum/agreement-signature-status.enum.js +0 -9
- package/dist/src/enum/agreement-signature-status.enum.js.map +0 -1
- package/dist/src/enum/booking.enum.d.ts +0 -5
- package/dist/src/enum/booking.enum.js +0 -10
- package/dist/src/enum/booking.enum.js.map +0 -1
- package/dist/src/enum/hirer-signature-status.enum.d.ts +0 -4
- package/dist/src/enum/hirer-signature-status.enum.js +0 -9
- package/dist/src/enum/hirer-signature-status.enum.js.map +0 -1
- package/dist/src/enum/hirer-type.enum.d.ts +0 -4
- package/dist/src/enum/hirer-type.enum.js +0 -9
- package/dist/src/enum/hirer-type.enum.js.map +0 -1
- package/dist/src/enum/index.d.ts +0 -7
- package/dist/src/enum/index.js +0 -16
- package/dist/src/enum/index.js.map +0 -1
- package/dist/src/enum/rental-status.enum.d.ts +0 -9
- package/dist/src/enum/rental-status.enum.js +0 -14
- package/dist/src/enum/rental-status.enum.js.map +0 -1
- package/dist/src/index.d.ts +0 -19
- package/dist/src/index.js +0 -51
- package/dist/src/index.js.map +0 -1
- package/dist/src/interfaces/agreemeent-signature-attr.interface.d.ts +0 -14
- package/dist/src/interfaces/agreemeent-signature-attr.interface.js +0 -3
- package/dist/src/interfaces/agreemeent-signature-attr.interface.js.map +0 -1
- package/dist/src/interfaces/agreement-attr.interface.d.ts +0 -7
- package/dist/src/interfaces/agreement-attr.interface.js +0 -3
- package/dist/src/interfaces/agreement-attr.interface.js.map +0 -1
- package/dist/src/interfaces/agreement-history-attr.interface.d.ts +0 -7
- package/dist/src/interfaces/agreement-history-attr.interface.js +0 -3
- package/dist/src/interfaces/agreement-history-attr.interface.js.map +0 -1
- package/dist/src/interfaces/booking-attr.interface.d.ts +0 -18
- package/dist/src/interfaces/booking-attr.interface.js +0 -3
- package/dist/src/interfaces/booking-attr.interface.js.map +0 -1
- package/dist/src/interfaces/booking-find-all-search-attr.interface.d.ts +0 -12
- package/dist/src/interfaces/booking-find-all-search-attr.interface.js +0 -3
- package/dist/src/interfaces/booking-find-all-search-attr.interface.js.map +0 -1
- package/dist/src/interfaces/hirer-signature-attr.interface.d.ts +0 -14
- package/dist/src/interfaces/hirer-signature-attr.interface.js +0 -3
- package/dist/src/interfaces/hirer-signature-attr.interface.js.map +0 -1
- package/dist/src/interfaces/index.d.ts +0 -9
- package/dist/src/interfaces/index.js +0 -3
- package/dist/src/interfaces/index.js.map +0 -1
- package/dist/src/interfaces/joint-hirer-attr.interface.d.ts +0 -10
- package/dist/src/interfaces/joint-hirer-attr.interface.js +0 -3
- package/dist/src/interfaces/joint-hirer-attr.interface.js.map +0 -1
- package/dist/src/interfaces/rental-attr.interface.d.ts +0 -24
- package/dist/src/interfaces/rental-attr.interface.js +0 -3
- package/dist/src/interfaces/rental-attr.interface.js.map +0 -1
- package/dist/src/interfaces/rental-find-all-search-attr.interface.d.ts +0 -10
- package/dist/src/interfaces/rental-find-all-search-attr.interface.js +0 -3
- package/dist/src/interfaces/rental-find-all-search-attr.interface.js.map +0 -1
- package/dist/src/interfaces/rental-price-attr.interface.d.ts +0 -7
- package/dist/src/interfaces/rental-price-attr.interface.js +0 -3
- package/dist/src/interfaces/rental-price-attr.interface.js.map +0 -1
- package/dist/src/interfaces/response-hirer-signature-attr.interface.d.ts +0 -14
- package/dist/src/interfaces/response-hirer-signature-attr.interface.js +0 -3
- package/dist/src/interfaces/response-hirer-signature-attr.interface.js.map +0 -1
- package/dist/src/models/agreement-history.entity.d.ts +0 -10
- package/dist/src/models/agreement-history.entity.js +0 -65
- package/dist/src/models/agreement-history.entity.js.map +0 -1
- package/dist/src/models/agreement-signature.entity.d.ts +0 -18
- package/dist/src/models/agreement-signature.entity.js +0 -101
- package/dist/src/models/agreement-signature.entity.js.map +0 -1
- package/dist/src/models/agreement.entity.d.ts +0 -14
- package/dist/src/models/agreement.entity.js +0 -70
- package/dist/src/models/agreement.entity.js.map +0 -1
- package/dist/src/models/booking.entity.d.ts +0 -21
- package/dist/src/models/booking.entity.js +0 -128
- package/dist/src/models/booking.entity.js.map +0 -1
- package/dist/src/models/hirer-signature.entity.d.ts +0 -16
- package/dist/src/models/hirer-signature.entity.js +0 -100
- package/dist/src/models/hirer-signature.entity.js.map +0 -1
- package/dist/src/models/index.d.ts +0 -8
- package/dist/src/models/index.js +0 -18
- package/dist/src/models/index.js.map +0 -1
- package/dist/src/models/joint-hirer.entity.d.ts +0 -13
- package/dist/src/models/joint-hirer.entity.js +0 -79
- package/dist/src/models/joint-hirer.entity.js.map +0 -1
- package/dist/src/models/rental-price.entity.d.ts +0 -8
- package/dist/src/models/rental-price.entity.js +0 -59
- package/dist/src/models/rental-price.entity.js.map +0 -1
- package/dist/src/models/rental.entity.d.ts +0 -29
- package/dist/src/models/rental.entity.js +0 -160
- package/dist/src/models/rental.entity.js.map +0 -1
|
@@ -1,101 +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.AgreementSignatureModel = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const agreement_entity_1 = require("./agreement.entity");
|
|
15
|
-
const agreement_signature_status_enum_1 = require("../enum/agreement-signature-status.enum");
|
|
16
|
-
let AgreementSignatureModel = class AgreementSignatureModel extends sequelize_typescript_1.Model {
|
|
17
|
-
};
|
|
18
|
-
exports.AgreementSignatureModel = AgreementSignatureModel;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, sequelize_typescript_1.Column)({
|
|
21
|
-
primaryKey: true,
|
|
22
|
-
allowNull: false,
|
|
23
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
24
|
-
}),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], AgreementSignatureModel.prototype, "SignatureId", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, sequelize_typescript_1.ForeignKey)(() => agreement_entity_1.AgreementModel),
|
|
29
|
-
(0, sequelize_typescript_1.Column)({
|
|
30
|
-
allowNull: false,
|
|
31
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
32
|
-
}),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], AgreementSignatureModel.prototype, "AgreementNo", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, sequelize_typescript_1.Column)({
|
|
37
|
-
allowNull: false,
|
|
38
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
39
|
-
}),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], AgreementSignatureModel.prototype, "Party", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, sequelize_typescript_1.Column)({
|
|
44
|
-
allowNull: false,
|
|
45
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
46
|
-
}),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], AgreementSignatureModel.prototype, "PartyId", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, sequelize_typescript_1.Column)({
|
|
51
|
-
allowNull: false,
|
|
52
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
53
|
-
}),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], AgreementSignatureModel.prototype, "PartyType", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, sequelize_typescript_1.Column)({
|
|
58
|
-
allowNull: false,
|
|
59
|
-
type: sequelize_typescript_1.DataType.STRING(10),
|
|
60
|
-
}),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], AgreementSignatureModel.prototype, "SignatureStatus", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, sequelize_typescript_1.Column)({
|
|
65
|
-
allowNull: true,
|
|
66
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
67
|
-
}),
|
|
68
|
-
__metadata("design:type", Date)
|
|
69
|
-
], AgreementSignatureModel.prototype, "SignedAt", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, sequelize_typescript_1.Column)({
|
|
72
|
-
allowNull: false,
|
|
73
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
74
|
-
}),
|
|
75
|
-
__metadata("design:type", String)
|
|
76
|
-
], AgreementSignatureModel.prototype, "CreatedById", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
sequelize_typescript_1.CreatedAt,
|
|
79
|
-
__metadata("design:type", Date)
|
|
80
|
-
], AgreementSignatureModel.prototype, "CreatedAt", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, sequelize_typescript_1.Column)({
|
|
83
|
-
allowNull: false,
|
|
84
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
85
|
-
}),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], AgreementSignatureModel.prototype, "UpdatedById", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
sequelize_typescript_1.UpdatedAt,
|
|
90
|
-
__metadata("design:type", Date)
|
|
91
|
-
], AgreementSignatureModel.prototype, "UpdatedAt", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, sequelize_typescript_1.BelongsTo)(() => agreement_entity_1.AgreementModel),
|
|
94
|
-
__metadata("design:type", agreement_entity_1.AgreementModel)
|
|
95
|
-
], AgreementSignatureModel.prototype, "Agreement", void 0);
|
|
96
|
-
exports.AgreementSignatureModel = AgreementSignatureModel = __decorate([
|
|
97
|
-
(0, sequelize_typescript_1.Table)({
|
|
98
|
-
tableName: 'rental_AgreementSignature',
|
|
99
|
-
})
|
|
100
|
-
], AgreementSignatureModel);
|
|
101
|
-
//# sourceMappingURL=agreement-signature.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agreement-signature.entity.js","sourceRoot":"","sources":["../../../src/models/agreement-signature.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,yDAAoD;AAEpD,6FAAuF;AAKhF,IAAM,uBAAuB,GAA7B,MAAM,uBACX,SAAQ,4BAAK;CAmEd,CAAA;AApEY,0DAAuB;AASlC;IALC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4DACkB;AAOpB;IALC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,iCAAc,CAAC;IAChC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4DACkB;AAMpB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;sDACY;AAMd;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;wDACc;AAMhB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;0DACgB;AAMlB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;gEAC4C;AAM9C;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,+BAAQ,CAAC,IAAI;KACpB,CAAC;8BACQ,IAAI;yDAAC;AAMf;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4DACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;0DAAC;AAMhB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4DACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;0DAAC;AAGhB;IADC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,iCAAc,CAAC;8BACrB,iCAAc;0DAAC;kCAnEf,uBAAuB;IAHnC,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,2BAA2B;KACvC,CAAC;GACW,uBAAuB,CAoEnC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { RentalModel } from './rental.entity';
|
|
3
|
-
import { AggrementStatusEnum } from '../enum/aggrement-status.enum';
|
|
4
|
-
import { AgreementSignatureModel } from './agreement-signature.entity';
|
|
5
|
-
import { AgreementHistoryModel } from './agreement-history.entity';
|
|
6
|
-
export declare class AgreementModel extends Model {
|
|
7
|
-
AgreementNo: string;
|
|
8
|
-
Status: AggrementStatusEnum;
|
|
9
|
-
DateSigned: Date;
|
|
10
|
-
MediaId: string;
|
|
11
|
-
Rentals: RentalModel[];
|
|
12
|
-
AgreementSignatures: AgreementSignatureModel[];
|
|
13
|
-
History: AgreementHistoryModel[];
|
|
14
|
-
}
|
|
@@ -1,70 +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.AgreementModel = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const rental_entity_1 = require("./rental.entity");
|
|
15
|
-
const aggrement_status_enum_1 = require("../enum/aggrement-status.enum");
|
|
16
|
-
const agreement_signature_entity_1 = require("./agreement-signature.entity");
|
|
17
|
-
const agreement_history_entity_1 = require("./agreement-history.entity");
|
|
18
|
-
let AgreementModel = class AgreementModel extends sequelize_typescript_1.Model {
|
|
19
|
-
};
|
|
20
|
-
exports.AgreementModel = AgreementModel;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, sequelize_typescript_1.Column)({
|
|
23
|
-
primaryKey: true,
|
|
24
|
-
allowNull: false,
|
|
25
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
26
|
-
}),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], AgreementModel.prototype, "AgreementNo", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, sequelize_typescript_1.Column)({
|
|
31
|
-
allowNull: false,
|
|
32
|
-
type: sequelize_typescript_1.DataType.STRING(20),
|
|
33
|
-
}),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], AgreementModel.prototype, "Status", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, sequelize_typescript_1.Column)({
|
|
38
|
-
allowNull: true,
|
|
39
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
40
|
-
}),
|
|
41
|
-
__metadata("design:type", Date)
|
|
42
|
-
], AgreementModel.prototype, "DateSigned", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, sequelize_typescript_1.Column)({
|
|
45
|
-
allowNull: true,
|
|
46
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
47
|
-
}),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], AgreementModel.prototype, "MediaId", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, sequelize_typescript_1.HasMany)(() => rental_entity_1.RentalModel),
|
|
52
|
-
__metadata("design:type", Array)
|
|
53
|
-
], AgreementModel.prototype, "Rentals", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, sequelize_typescript_1.HasMany)(() => agreement_signature_entity_1.AgreementSignatureModel),
|
|
56
|
-
__metadata("design:type", Array)
|
|
57
|
-
], AgreementModel.prototype, "AgreementSignatures", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, sequelize_typescript_1.HasMany)(() => agreement_history_entity_1.AgreementHistoryModel),
|
|
60
|
-
__metadata("design:type", Array)
|
|
61
|
-
], AgreementModel.prototype, "History", void 0);
|
|
62
|
-
exports.AgreementModel = AgreementModel = __decorate([
|
|
63
|
-
(0, sequelize_typescript_1.Table)({
|
|
64
|
-
tableName: 'rental_Agreement',
|
|
65
|
-
createdAt: false,
|
|
66
|
-
updatedAt: false,
|
|
67
|
-
timestamps: false,
|
|
68
|
-
})
|
|
69
|
-
], AgreementModel);
|
|
70
|
-
//# sourceMappingURL=agreement.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agreement.entity.js","sourceRoot":"","sources":["../../../src/models/agreement.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA+E;AAC/E,mDAA8C;AAC9C,yEAAoE;AACpE,6EAAuE;AACvE,yEAAmE;AAQ5D,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAK;CAkCxC,CAAA;AAlCY,wCAAc;AAMzB;IALC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;mDACkB;AAMpB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;8CAC0B;AAM5B;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,+BAAQ,CAAC,IAAI;KACpB,CAAC;8BACU,IAAI;kDAAC;AAMjB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;+CACc;AAGhB;IADC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,2BAAW,CAAC;;+CACJ;AAGvB;IADC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,oDAAuB,CAAC;;2DACQ;AAG/C;IADC,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,gDAAqB,CAAC;;+CACJ;yBAjCtB,cAAc;IAN1B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,kBAAkB;QAC7B,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE,KAAK;KAClB,CAAC;GACW,cAAc,CAkC1B"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { RentalPriceModel } from './rental-price.entity';
|
|
3
|
-
import { BookingStatusEnum } from '../enum/booking.enum';
|
|
4
|
-
export declare class BookingModel extends Model {
|
|
5
|
-
BookingNo: string;
|
|
6
|
-
CustomerId: string;
|
|
7
|
-
CustomerType: string;
|
|
8
|
-
ItemId: string;
|
|
9
|
-
ItemType: string;
|
|
10
|
-
PriceId: string;
|
|
11
|
-
ScheduledStartDateTime: Date;
|
|
12
|
-
ScheduledEndDateTime: Date;
|
|
13
|
-
BookingFee: number;
|
|
14
|
-
Status: BookingStatusEnum;
|
|
15
|
-
CancelRemarks: string;
|
|
16
|
-
CreatedById: string;
|
|
17
|
-
CreatedAt: Date;
|
|
18
|
-
UpdatedById: string;
|
|
19
|
-
UpdatedAt: Date;
|
|
20
|
-
RentalPrice: RentalPriceModel;
|
|
21
|
-
}
|
|
@@ -1,128 +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.BookingModel = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const rental_price_entity_1 = require("./rental-price.entity");
|
|
15
|
-
const booking_enum_1 = require("../enum/booking.enum");
|
|
16
|
-
let BookingModel = class BookingModel extends sequelize_typescript_1.Model {
|
|
17
|
-
};
|
|
18
|
-
exports.BookingModel = BookingModel;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, sequelize_typescript_1.Column)({
|
|
21
|
-
primaryKey: true,
|
|
22
|
-
allowNull: false,
|
|
23
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
24
|
-
}),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], BookingModel.prototype, "BookingNo", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, sequelize_typescript_1.Column)({
|
|
29
|
-
allowNull: false,
|
|
30
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
31
|
-
}),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], BookingModel.prototype, "CustomerId", 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
|
-
], BookingModel.prototype, "CustomerType", 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
|
-
], BookingModel.prototype, "ItemId", 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
|
-
], BookingModel.prototype, "ItemType", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, sequelize_typescript_1.ForeignKey)(() => rental_price_entity_1.RentalPriceModel),
|
|
57
|
-
(0, sequelize_typescript_1.Column)({
|
|
58
|
-
allowNull: false,
|
|
59
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
60
|
-
}),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], BookingModel.prototype, "PriceId", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, sequelize_typescript_1.Column)({
|
|
65
|
-
allowNull: false,
|
|
66
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
67
|
-
}),
|
|
68
|
-
__metadata("design:type", Date)
|
|
69
|
-
], BookingModel.prototype, "ScheduledStartDateTime", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, sequelize_typescript_1.Column)({
|
|
72
|
-
allowNull: false,
|
|
73
|
-
type: sequelize_typescript_1.DataType.DATE,
|
|
74
|
-
}),
|
|
75
|
-
__metadata("design:type", Date)
|
|
76
|
-
], BookingModel.prototype, "ScheduledEndDateTime", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, sequelize_typescript_1.Column)({
|
|
79
|
-
allowNull: true,
|
|
80
|
-
type: sequelize_typescript_1.DataType.DECIMAL(10, 2),
|
|
81
|
-
}),
|
|
82
|
-
__metadata("design:type", Number)
|
|
83
|
-
], BookingModel.prototype, "BookingFee", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, sequelize_typescript_1.Column)({
|
|
86
|
-
allowNull: false,
|
|
87
|
-
type: sequelize_typescript_1.DataType.STRING(20),
|
|
88
|
-
}),
|
|
89
|
-
__metadata("design:type", String)
|
|
90
|
-
], BookingModel.prototype, "Status", void 0);
|
|
91
|
-
__decorate([
|
|
92
|
-
(0, sequelize_typescript_1.Column)({
|
|
93
|
-
type: sequelize_typescript_1.DataType.STRING(3000),
|
|
94
|
-
}),
|
|
95
|
-
__metadata("design:type", String)
|
|
96
|
-
], BookingModel.prototype, "CancelRemarks", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
(0, sequelize_typescript_1.Column)({
|
|
99
|
-
allowNull: false,
|
|
100
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
101
|
-
}),
|
|
102
|
-
__metadata("design:type", String)
|
|
103
|
-
], BookingModel.prototype, "CreatedById", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
sequelize_typescript_1.CreatedAt,
|
|
106
|
-
__metadata("design:type", Date)
|
|
107
|
-
], BookingModel.prototype, "CreatedAt", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, sequelize_typescript_1.Column)({
|
|
110
|
-
allowNull: false,
|
|
111
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
112
|
-
}),
|
|
113
|
-
__metadata("design:type", String)
|
|
114
|
-
], BookingModel.prototype, "UpdatedById", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
sequelize_typescript_1.UpdatedAt,
|
|
117
|
-
__metadata("design:type", Date)
|
|
118
|
-
], BookingModel.prototype, "UpdatedAt", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
(0, sequelize_typescript_1.BelongsTo)(() => rental_price_entity_1.RentalPriceModel),
|
|
121
|
-
__metadata("design:type", rental_price_entity_1.RentalPriceModel)
|
|
122
|
-
], BookingModel.prototype, "RentalPrice", void 0);
|
|
123
|
-
exports.BookingModel = BookingModel = __decorate([
|
|
124
|
-
(0, sequelize_typescript_1.Table)({
|
|
125
|
-
tableName: 'booking_Booking',
|
|
126
|
-
})
|
|
127
|
-
], BookingModel);
|
|
128
|
-
//# sourceMappingURL=booking.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"booking.entity.js","sourceRoot":"","sources":["../../../src/models/booking.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,+DAAyD;AACzD,uDAAyD;AAKlD,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAK;CAwFtC,CAAA;AAxFY,oCAAY;AAMvB;IALC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;+CACgB;AAMlB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;gDACiB;AAMnB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;kDACmB;AAMrB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4CACa;AAMf;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;8CACe;AAOjB;IALC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sCAAgB,CAAC;IAClC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;6CACc;AAMhB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI;KACpB,CAAC;8BACsB,IAAI;4DAAC;AAM7B;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI;KACpB,CAAC;8BACoB,IAAI;0DAAC;AAM3B;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,+BAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KAC9B,CAAC;;gDACiB;AAMnB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4CACwB;AAK1B;IAHC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;KAC5B,CAAC;;mDACoB;AAMtB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;+CAAC;AAMhB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;iDACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;+CAAC;AAGhB;IADC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,sCAAgB,CAAC;8BACrB,sCAAgB;iDAAC;uBAvFnB,YAAY;IAHxB,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,iBAAiB;KAC7B,CAAC;GACW,YAAY,CAwFxB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { AgreementModel } from './agreement.entity';
|
|
3
|
-
export declare class HirerSignatureModel extends Model {
|
|
4
|
-
HirerSignatureId: string;
|
|
5
|
-
AgreementNo: string;
|
|
6
|
-
HirerType: string;
|
|
7
|
-
CustomerId: string;
|
|
8
|
-
CustomerType: string;
|
|
9
|
-
SignatureStatus: string;
|
|
10
|
-
SignedAt: Date;
|
|
11
|
-
CreatedById: string;
|
|
12
|
-
CreatedAt: Date;
|
|
13
|
-
UpdatedById: string;
|
|
14
|
-
UpdatedAt: Date;
|
|
15
|
-
Agreement: AgreementModel;
|
|
16
|
-
}
|
|
@@ -1,100 +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.HirerSignatureModel = void 0;
|
|
13
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
-
const agreement_entity_1 = require("./agreement.entity");
|
|
15
|
-
let HirerSignatureModel = class HirerSignatureModel extends sequelize_typescript_1.Model {
|
|
16
|
-
};
|
|
17
|
-
exports.HirerSignatureModel = HirerSignatureModel;
|
|
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
|
-
], HirerSignatureModel.prototype, "HirerSignatureId", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, sequelize_typescript_1.ForeignKey)(() => agreement_entity_1.AgreementModel),
|
|
28
|
-
(0, sequelize_typescript_1.Column)({
|
|
29
|
-
allowNull: false,
|
|
30
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
31
|
-
}),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], HirerSignatureModel.prototype, "AgreementNo", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, sequelize_typescript_1.Column)({
|
|
36
|
-
allowNull: false,
|
|
37
|
-
type: sequelize_typescript_1.DataType.STRING(10),
|
|
38
|
-
}),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], HirerSignatureModel.prototype, "HirerType", 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
|
-
], HirerSignatureModel.prototype, "CustomerId", 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
|
-
], HirerSignatureModel.prototype, "CustomerType", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, sequelize_typescript_1.Column)({
|
|
57
|
-
allowNull: false,
|
|
58
|
-
type: sequelize_typescript_1.DataType.STRING(10),
|
|
59
|
-
}),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], HirerSignatureModel.prototype, "SignatureStatus", 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
|
-
], HirerSignatureModel.prototype, "SignedAt", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, sequelize_typescript_1.Column)({
|
|
71
|
-
allowNull: false,
|
|
72
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
73
|
-
}),
|
|
74
|
-
__metadata("design:type", String)
|
|
75
|
-
], HirerSignatureModel.prototype, "CreatedById", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
sequelize_typescript_1.CreatedAt,
|
|
78
|
-
__metadata("design:type", Date)
|
|
79
|
-
], HirerSignatureModel.prototype, "CreatedAt", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, sequelize_typescript_1.Column)({
|
|
82
|
-
allowNull: false,
|
|
83
|
-
type: sequelize_typescript_1.DataType.STRING(30),
|
|
84
|
-
}),
|
|
85
|
-
__metadata("design:type", String)
|
|
86
|
-
], HirerSignatureModel.prototype, "UpdatedById", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
sequelize_typescript_1.UpdatedAt,
|
|
89
|
-
__metadata("design:type", Date)
|
|
90
|
-
], HirerSignatureModel.prototype, "UpdatedAt", void 0);
|
|
91
|
-
__decorate([
|
|
92
|
-
(0, sequelize_typescript_1.BelongsTo)(() => agreement_entity_1.AgreementModel),
|
|
93
|
-
__metadata("design:type", agreement_entity_1.AgreementModel)
|
|
94
|
-
], HirerSignatureModel.prototype, "Agreement", void 0);
|
|
95
|
-
exports.HirerSignatureModel = HirerSignatureModel = __decorate([
|
|
96
|
-
(0, sequelize_typescript_1.Table)({
|
|
97
|
-
tableName: 'rental_HirerSignature',
|
|
98
|
-
})
|
|
99
|
-
], HirerSignatureModel);
|
|
100
|
-
//# sourceMappingURL=hirer-signature.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hirer-signature.entity.js","sourceRoot":"","sources":["../../../src/models/hirer-signature.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAS8B;AAC9B,yDAAoD;AAK7C,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,4BAAK;CAiE7C,CAAA;AAjEY,kDAAmB;AAM9B;IALC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;6DACuB;AAOzB;IALC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,iCAAc,CAAC;IAChC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;wDACkB;AAMpB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;sDACgB;AAMlB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;uDACiB;AAMnB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;yDACmB;AAMrB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4DACsB;AAMxB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI;KACpB,CAAC;8BACQ,IAAI;qDAAC;AAMf;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;wDACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;sDAAC;AAMhB;IAJC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;wDACkB;AAGpB;IADC,gCAAS;8BACC,IAAI;sDAAC;AAGhB;IADC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,iCAAc,CAAC;8BACrB,iCAAc;sDAAC;8BAhEf,mBAAmB;IAH/B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,uBAAuB;KACnC,CAAC;GACW,mBAAmB,CAiE/B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RentalModel } from './rental.entity';
|
|
2
|
-
import { RentalPriceModel } from './rental-price.entity';
|
|
3
|
-
import { BookingModel } from './booking.entity';
|
|
4
|
-
import { JointHirerModel } from './joint-hirer.entity';
|
|
5
|
-
import { AgreementModel } from './agreement.entity';
|
|
6
|
-
import { AgreementSignatureModel } from './agreement-signature.entity';
|
|
7
|
-
import { AgreementHistoryModel } from './agreement-history.entity';
|
|
8
|
-
export { RentalModel, RentalPriceModel, BookingModel, JointHirerModel, AgreementModel, AgreementSignatureModel, AgreementHistoryModel, };
|
package/dist/src/models/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgreementHistoryModel = exports.AgreementSignatureModel = exports.AgreementModel = exports.JointHirerModel = exports.BookingModel = 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
|
-
const booking_entity_1 = require("./booking.entity");
|
|
9
|
-
Object.defineProperty(exports, "BookingModel", { enumerable: true, get: function () { return booking_entity_1.BookingModel; } });
|
|
10
|
-
const joint_hirer_entity_1 = require("./joint-hirer.entity");
|
|
11
|
-
Object.defineProperty(exports, "JointHirerModel", { enumerable: true, get: function () { return joint_hirer_entity_1.JointHirerModel; } });
|
|
12
|
-
const agreement_entity_1 = require("./agreement.entity");
|
|
13
|
-
Object.defineProperty(exports, "AgreementModel", { enumerable: true, get: function () { return agreement_entity_1.AgreementModel; } });
|
|
14
|
-
const agreement_signature_entity_1 = require("./agreement-signature.entity");
|
|
15
|
-
Object.defineProperty(exports, "AgreementSignatureModel", { enumerable: true, get: function () { return agreement_signature_entity_1.AgreementSignatureModel; } });
|
|
16
|
-
const agreement_history_entity_1 = require("./agreement-history.entity");
|
|
17
|
-
Object.defineProperty(exports, "AgreementHistoryModel", { enumerable: true, get: function () { return agreement_history_entity_1.AgreementHistoryModel; } });
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAS5C,4FATO,2BAAW,OASP;AARb,+DAAyD;AASvD,iGATO,sCAAgB,OASP;AARlB,qDAAgD;AAS9C,6FATO,6BAAY,OASP;AARd,6DAAuD;AASrD,gGATO,oCAAe,OASP;AARjB,yDAAoD;AASlD,+FATO,iCAAc,OASP;AARhB,6EAAuE;AASrE,wGATO,oDAAuB,OASP;AARzB,yEAAmE;AASjE,sGATO,gDAAqB,OASP"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { RentalModel } from './rental.entity';
|
|
3
|
-
export declare class JointHirerModel extends Model {
|
|
4
|
-
HirerId: string;
|
|
5
|
-
RentalId: string;
|
|
6
|
-
CustomerId: string;
|
|
7
|
-
CustomerType: string;
|
|
8
|
-
CreatedById: string;
|
|
9
|
-
CreatedAt: Date;
|
|
10
|
-
UpdatedById: string;
|
|
11
|
-
UpdatedAt: Date;
|
|
12
|
-
RentalPrice: RentalModel;
|
|
13
|
-
}
|
|
@@ -1,79 +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.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
|
-
//# sourceMappingURL=joint-hirer.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|