@tomei/rental 0.12.0 → 0.12.3
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/eslint.config.mjs +37 -0
- package/migrations/booking-table-migration.js +1 -1
- package/migrations/joint-hirer-table-migration.js +1 -1
- package/migrations/rental-aggrement-table-migration.js +1 -1
- package/migrations/rental-price-table-migration.js +1 -1
- package/migrations/rental-table-migrations.js +1 -1
- package/package.json +33 -30
- package/src/components/booking/booking.ts +1 -1
- package/src/components/joint-hirer/joint-hirer.ts +137 -137
- package/src/components/rental/rental.ts +7 -10
- package/.eslintignore +0 -1
- 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 -17
- package/dist/src/components/agreement/agreement.js +0 -50
- 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/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/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.d.ts +0 -59
- package/dist/src/components/rental/rental.js +0 -619
- package/dist/src/components/rental/rental.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 -26
- 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/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/index.d.ts +0 -5
- package/dist/src/enum/index.js +0 -12
- 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 -15
- package/dist/src/index.js +0 -43
- package/dist/src/index.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/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/index.d.ts +0 -7
- 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/models/agreement.entity.d.ts +0 -10
- package/dist/src/models/agreement.entity.js +0 -60
- 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/index.d.ts +0 -6
- package/dist/src/models/index.js +0 -14
- 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
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.RentalRepository = void 0;
|
|
13
|
-
const general_1 = require("@tomei/general");
|
|
14
|
-
const rental_entity_1 = require("../../models/rental.entity");
|
|
15
|
-
class RentalRepository extends general_1.RepositoryBase {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(rental_entity_1.RentalModel);
|
|
18
|
-
}
|
|
19
|
-
findByPk(id, transaction) {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
try {
|
|
22
|
-
const result = yield rental_entity_1.RentalModel.findByPk(id, {
|
|
23
|
-
transaction: transaction,
|
|
24
|
-
});
|
|
25
|
-
return result;
|
|
26
|
-
}
|
|
27
|
-
catch (error) {
|
|
28
|
-
throw new Error(`An Error occured when fetching : ${error.message}`);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
delete(RentalId, dbTransaction) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
try {
|
|
35
|
-
const options = {
|
|
36
|
-
where: {
|
|
37
|
-
RentalId: RentalId,
|
|
38
|
-
},
|
|
39
|
-
transaction: dbTransaction,
|
|
40
|
-
};
|
|
41
|
-
yield rental_entity_1.RentalModel.destroy(options);
|
|
42
|
-
}
|
|
43
|
-
catch (error) {
|
|
44
|
-
throw new Error(`An Error occured when delete : ${error.message}`);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
findAndCountAll(options) {
|
|
49
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
try {
|
|
51
|
-
let Rentals;
|
|
52
|
-
if (options) {
|
|
53
|
-
Rentals = yield rental_entity_1.RentalModel.findAndCountAll(options);
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
Rentals = yield rental_entity_1.RentalModel.findAndCountAll();
|
|
57
|
-
}
|
|
58
|
-
return Rentals;
|
|
59
|
-
}
|
|
60
|
-
catch (error) {
|
|
61
|
-
throw new Error(`An Error occured when retriving : ${error.message}`);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
exports.RentalRepository = RentalRepository;
|
|
67
|
-
//# sourceMappingURL=rental.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rental.repository.js","sourceRoot":"","sources":["../../../../src/components/rental/rental.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAiE;AACjE,8DAAyD;AAEzD,MAAa,gBACX,SAAQ,wBAA2B;IAGnC;QACE,KAAK,CAAC,2BAAW,CAAC,CAAC;IACrB,CAAC;IAEK,QAAQ,CAAC,EAAU,EAAE,WAAiB;;YAC1C,IAAI;gBACF,MAAM,MAAM,GAAG,MAAM,2BAAW,CAAC,QAAQ,CAAC,EAAE,EAAE;oBAC5C,WAAW,EAAE,WAAW;iBACzB,CAAC,CAAC;gBAEH,OAAO,MAAM,CAAC;aACf;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,oCAAoC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;aACtE;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,QAAgB,EAAE,aAAmB;;YAChD,IAAI;gBACF,MAAM,OAAO,GAAG;oBACd,KAAK,EAAE;wBACL,QAAQ,EAAE,QAAQ;qBACnB;oBACD,WAAW,EAAE,aAAa;iBAC3B,CAAC;gBACF,MAAM,2BAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;aACpC;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,kCAAkC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;aACpE;QACH,CAAC;KAAA;IAEK,eAAe,CAAC,OAAa;;YACjC,IAAI;gBACF,IAAI,OAAY,CAAC;gBACjB,IAAI,OAAO,EAAE;oBACX,OAAO,GAAG,MAAM,2BAAW,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;iBACtD;qBAAM;oBACL,OAAO,GAAG,MAAM,2BAAW,CAAC,eAAe,EAAE,CAAC;iBAC/C;gBACD,OAAO,OAAO,CAAC;aAChB;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,qCAAqC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;aACvE;QACH,CAAC;KAAA;CACF;AA/CD,4CA+CC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ObjectBase } from '@tomei/general';
|
|
2
|
-
import { LoginUser } from '@tomei/sso';
|
|
3
|
-
export declare class RentalPrice extends ObjectBase {
|
|
4
|
-
ObjectId: string;
|
|
5
|
-
ObjectName: string;
|
|
6
|
-
ObjectType: string;
|
|
7
|
-
TableName: string;
|
|
8
|
-
RetailPrice: number;
|
|
9
|
-
Currency: string;
|
|
10
|
-
PromoCode: string;
|
|
11
|
-
Remarks: string;
|
|
12
|
-
get PriceId(): string;
|
|
13
|
-
set PriceId(value: string);
|
|
14
|
-
private static _Repo;
|
|
15
|
-
private constructor();
|
|
16
|
-
static init(dbTransaction?: any, priceId?: string): Promise<RentalPrice>;
|
|
17
|
-
create(loginUser: LoginUser, dbTransaction?: any): Promise<this>;
|
|
18
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.RentalPrice = void 0;
|
|
13
|
-
const general_1 = require("@tomei/general");
|
|
14
|
-
const rental_price_repository_1 = require("./rental-price.repository");
|
|
15
|
-
const config_1 = require("@tomei/config");
|
|
16
|
-
class RentalPrice extends general_1.ObjectBase {
|
|
17
|
-
get PriceId() {
|
|
18
|
-
return this.ObjectId;
|
|
19
|
-
}
|
|
20
|
-
set PriceId(value) {
|
|
21
|
-
this.ObjectId = value;
|
|
22
|
-
}
|
|
23
|
-
constructor(rentalPriceAttr) {
|
|
24
|
-
super();
|
|
25
|
-
this.ObjectType = 'RentalPrice';
|
|
26
|
-
if (rentalPriceAttr) {
|
|
27
|
-
this.PriceId = rentalPriceAttr.PriceId;
|
|
28
|
-
this.RetailPrice = rentalPriceAttr.RetailPrice;
|
|
29
|
-
this.Currency = rentalPriceAttr.Currency;
|
|
30
|
-
this.PromoCode = rentalPriceAttr.PromoCode;
|
|
31
|
-
this.Remarks = rentalPriceAttr.Remarks;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
static init(dbTransaction, priceId) {
|
|
35
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
try {
|
|
37
|
-
if (priceId) {
|
|
38
|
-
const rentalPrice = yield RentalPrice._Repo.findByPk(priceId, dbTransaction);
|
|
39
|
-
if (rentalPrice) {
|
|
40
|
-
return new RentalPrice(rentalPrice);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
throw new general_1.ClassError('RentalPrice', 'RentalPriceErrMsg', 'RentalPrice Not Found');
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return new RentalPrice();
|
|
47
|
-
}
|
|
48
|
-
catch (error) {
|
|
49
|
-
throw new general_1.ClassError('RentalPrice', 'RentalPriceErrMsg', 'Failed To Initialize RentalPrice');
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
create(loginUser, dbTransaction) {
|
|
54
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
try {
|
|
56
|
-
const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
|
|
57
|
-
const isPrivileged = yield loginUser.checkPrivileges(systemCode, 'Rental - Create');
|
|
58
|
-
if (!isPrivileged) {
|
|
59
|
-
throw new general_1.ClassError('RentalPrice', 'RentalPriceErrMsg01', "You do not have 'Rental - Create' privilege.");
|
|
60
|
-
}
|
|
61
|
-
this.PriceId = this.createId();
|
|
62
|
-
yield RentalPrice._Repo.create({
|
|
63
|
-
PriceId: this.PriceId,
|
|
64
|
-
RetailPrice: this.RetailPrice,
|
|
65
|
-
Currency: this.Currency,
|
|
66
|
-
PromoCode: this.PromoCode,
|
|
67
|
-
Remarks: this.Remarks,
|
|
68
|
-
}, dbTransaction);
|
|
69
|
-
return this;
|
|
70
|
-
}
|
|
71
|
-
catch (error) {
|
|
72
|
-
throw error;
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.RentalPrice = RentalPrice;
|
|
78
|
-
RentalPrice._Repo = new rental_price_repository_1.RentalPriceRepository();
|
|
79
|
-
//# sourceMappingURL=rental-price.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rental-price.js","sourceRoot":"","sources":["../../../../src/components/rental-price/rental-price.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,uEAAkE;AAGlE,0CAAkD;AAElD,MAAa,WAAY,SAAQ,oBAAU;IAUzC,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAI,OAAO,CAAC,KAAa;QACvB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;IAID,YAAoB,eAAkC;QACpD,KAAK,EAAE,CAAC;QAlBV,eAAU,GAAG,aAAa,CAAC;QAmBzB,IAAI,eAAe,EAAE;YACnB,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC;YACvC,IAAI,CAAC,WAAW,GAAG,eAAe,CAAC,WAAW,CAAC;YAC/C,IAAI,CAAC,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC;YACzC,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC,SAAS,CAAC;YAC3C,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC;SACxC;IACH,CAAC;IAEM,MAAM,CAAO,IAAI,CAAC,aAAmB,EAAE,OAAgB;;YAC5D,IAAI;gBACF,IAAI,OAAO,EAAE;oBACX,MAAM,WAAW,GAAG,MAAM,WAAW,CAAC,KAAK,CAAC,QAAQ,CAClD,OAAO,EACP,aAAa,CACd,CAAC;oBACF,IAAI,WAAW,EAAE;wBACf,OAAO,IAAI,WAAW,CAAC,WAAW,CAAC,CAAC;qBACrC;yBAAM;wBACL,MAAM,IAAI,oBAAU,CAClB,aAAa,EACb,mBAAmB,EACnB,uBAAuB,CACxB,CAAC;qBACH;iBACF;gBACD,OAAO,IAAI,WAAW,EAAE,CAAC;aAC1B;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,oBAAU,CAClB,aAAa,EACb,mBAAmB,EACnB,kCAAkC,CACnC,CAAC;aACH;QACH,CAAC;KAAA;IAEY,MAAM,CAAC,SAAoB,EAAE,aAAmB;;YAC3D,IAAI;gBACF,MAAM,UAAU,GACd,0BAAiB,CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC;gBAC3D,MAAM,YAAY,GAAG,MAAM,SAAS,CAAC,eAAe,CAClD,UAAU,EACV,iBAAiB,CAClB,CAAC;gBAEF,IAAI,CAAC,YAAY,EAAE;oBACjB,MAAM,IAAI,oBAAU,CAClB,aAAa,EACb,qBAAqB,EACrB,8CAA8C,CAC/C,CAAC;iBACH;gBAED,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAE/B,MAAM,WAAW,CAAC,KAAK,CAAC,MAAM,CAC5B;oBACE,OAAO,EAAE,IAAI,CAAC,OAAO;oBACrB,WAAW,EAAE,IAAI,CAAC,WAAW;oBAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;oBACvB,SAAS,EAAE,IAAI,CAAC,SAAS;oBACzB,OAAO,EAAE,IAAI,CAAC,OAAO;iBACtB,EACD,aAAa,CACd,CAAC;gBAEF,OAAO,IAAI,CAAC;aACb;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;;AA5FH,kCA6FC;AA3EgB,iBAAK,GAAG,IAAI,+CAAqB,EAAE,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
|
2
|
-
import { RentalPriceModel } from '../../models/rental-price.entity';
|
|
3
|
-
export declare class RentalPriceRepository extends RepositoryBase<RentalPriceModel> implements IRepositoryBase<RentalPriceModel> {
|
|
4
|
-
constructor();
|
|
5
|
-
findByPk(id: string, transaction?: any): Promise<RentalPriceModel | null>;
|
|
6
|
-
delete(RentalPriceId: string, dbTransaction?: any): Promise<void>;
|
|
7
|
-
findAndCountAll(options?: any): Promise<any>;
|
|
8
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.RentalPriceRepository = void 0;
|
|
13
|
-
const general_1 = require("@tomei/general");
|
|
14
|
-
const rental_price_entity_1 = require("../../models/rental-price.entity");
|
|
15
|
-
class RentalPriceRepository extends general_1.RepositoryBase {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(rental_price_entity_1.RentalPriceModel);
|
|
18
|
-
}
|
|
19
|
-
findByPk(id, transaction) {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
try {
|
|
22
|
-
const result = yield rental_price_entity_1.RentalPriceModel.findByPk(id, {
|
|
23
|
-
transaction: transaction,
|
|
24
|
-
});
|
|
25
|
-
return result;
|
|
26
|
-
}
|
|
27
|
-
catch (error) {
|
|
28
|
-
throw new Error(`An Error occured when fetching : ${error.message}`);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
delete(RentalPriceId, dbTransaction) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
try {
|
|
35
|
-
const options = {
|
|
36
|
-
where: {
|
|
37
|
-
RentalPriceId: RentalPriceId,
|
|
38
|
-
},
|
|
39
|
-
transaction: dbTransaction,
|
|
40
|
-
};
|
|
41
|
-
yield rental_price_entity_1.RentalPriceModel.destroy(options);
|
|
42
|
-
}
|
|
43
|
-
catch (error) {
|
|
44
|
-
throw new Error(`An Error occured when delete : ${error.message}`);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
findAndCountAll(options) {
|
|
49
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
try {
|
|
51
|
-
let RentalPrices;
|
|
52
|
-
if (options) {
|
|
53
|
-
RentalPrices = yield rental_price_entity_1.RentalPriceModel.findAndCountAll(options);
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
RentalPrices = yield rental_price_entity_1.RentalPriceModel.findAndCountAll();
|
|
57
|
-
}
|
|
58
|
-
return RentalPrices;
|
|
59
|
-
}
|
|
60
|
-
catch (error) {
|
|
61
|
-
throw new Error(`An Error occured when retriving : ${error.message}`);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
exports.RentalPriceRepository = RentalPriceRepository;
|
|
67
|
-
//# sourceMappingURL=rental-price.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rental-price.repository.js","sourceRoot":"","sources":["../../../../src/components/rental-price/rental-price.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAiE;AACjE,0EAAoE;AAEpE,MAAa,qBACX,SAAQ,wBAAgC;IAGxC;QACE,KAAK,CAAC,sCAAgB,CAAC,CAAC;IAC1B,CAAC;IAEK,QAAQ,CACZ,EAAU,EACV,WAAiB;;YAEjB,IAAI;gBACF,MAAM,MAAM,GAAG,MAAM,sCAAgB,CAAC,QAAQ,CAAC,EAAE,EAAE;oBACjD,WAAW,EAAE,WAAW;iBACzB,CAAC,CAAC;gBAEH,OAAO,MAAM,CAAC;aACf;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,oCAAoC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;aACtE;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,aAAqB,EAAE,aAAmB;;YACrD,IAAI;gBACF,MAAM,OAAO,GAAG;oBACd,KAAK,EAAE;wBACL,aAAa,EAAE,aAAa;qBAC7B;oBACD,WAAW,EAAE,aAAa;iBAC3B,CAAC;gBACF,MAAM,sCAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;aACzC;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,kCAAkC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;aACpE;QACH,CAAC;KAAA;IAEK,eAAe,CAAC,OAAa;;YACjC,IAAI;gBACF,IAAI,YAAiB,CAAC;gBACtB,IAAI,OAAO,EAAE;oBACX,YAAY,GAAG,MAAM,sCAAgB,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;iBAChE;qBAAM;oBACL,YAAY,GAAG,MAAM,sCAAgB,CAAC,eAAe,EAAE,CAAC;iBACzD;gBACD,OAAO,YAAY,CAAC;aACrB;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,qCAAqC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;aACvE;QACH,CAAC;KAAA;CACF;AAlDD,sDAkDC"}
|
package/dist/src/database.d.ts
DELETED
package/dist/src/database.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getConnection = exports.init = void 0;
|
|
4
|
-
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
5
|
-
const rental_entity_1 = require("./models/rental.entity");
|
|
6
|
-
const rental_price_entity_1 = require("./models/rental-price.entity");
|
|
7
|
-
const booking_entity_1 = require("./models/booking.entity");
|
|
8
|
-
const joint_hirer_entity_1 = require("./models/joint-hirer.entity");
|
|
9
|
-
const agreement_entity_1 = require("./models/agreement.entity");
|
|
10
|
-
let sequelize;
|
|
11
|
-
function init(sequelizeOptions) {
|
|
12
|
-
sequelize = new sequelize_typescript_1.Sequelize(sequelizeOptions);
|
|
13
|
-
sequelize.addModels([
|
|
14
|
-
rental_entity_1.RentalModel,
|
|
15
|
-
rental_price_entity_1.RentalPriceModel,
|
|
16
|
-
booking_entity_1.BookingModel,
|
|
17
|
-
joint_hirer_entity_1.JointHirerModel,
|
|
18
|
-
agreement_entity_1.AgreementModel,
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
exports.init = init;
|
|
22
|
-
function getConnection() {
|
|
23
|
-
return sequelize;
|
|
24
|
-
}
|
|
25
|
-
exports.getConnection = getConnection;
|
|
26
|
-
//# sourceMappingURL=database.js.map
|
package/dist/src/database.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"database.js","sourceRoot":"","sources":["../../src/database.ts"],"names":[],"mappings":";;;AAAA,+DAAmE;AACnE,0DAAqD;AACrD,sEAAgE;AAChE,4DAAuD;AACvD,oEAA8D;AAC9D,gEAA2D;AAE3D,IAAI,SAAoB,CAAC;AAEzB,SAAS,IAAI,CAAC,gBAAkC;IAC9C,SAAS,GAAG,IAAI,gCAAS,CAAC,gBAAgB,CAAC,CAAC;IAE5C,SAAS,CAAC,SAAS,CAAC;QAElB,2BAAW;QACX,sCAAgB;QAChB,6BAAY;QACZ,oCAAe;QACf,iCAAc;KACf,CAAC,CAAC;AACL,CAAC;AAMQ,oBAAI;AAJb,SAAS,aAAa;IACpB,OAAO,SAAS,CAAC;AACnB,CAAC;AAEc,sCAAa"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RentalAccountTypeEnum = void 0;
|
|
4
|
-
var RentalAccountTypeEnum;
|
|
5
|
-
(function (RentalAccountTypeEnum) {
|
|
6
|
-
RentalAccountTypeEnum["SINGLE"] = "Single";
|
|
7
|
-
RentalAccountTypeEnum["JOINT"] = "Joint";
|
|
8
|
-
})(RentalAccountTypeEnum = exports.RentalAccountTypeEnum || (exports.RentalAccountTypeEnum = {}));
|
|
9
|
-
//# sourceMappingURL=account-type.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account-type.enum.js","sourceRoot":"","sources":["../../../src/enum/account-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,wCAAe,CAAA;AACjB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AggrementStatusEnum = void 0;
|
|
4
|
-
var AggrementStatusEnum;
|
|
5
|
-
(function (AggrementStatusEnum) {
|
|
6
|
-
AggrementStatusEnum["NOT_GENERATED"] = "Not Generated";
|
|
7
|
-
AggrementStatusEnum["GENERATED"] = "Generated";
|
|
8
|
-
AggrementStatusEnum["SIGNED"] = "Signed";
|
|
9
|
-
})(AggrementStatusEnum = exports.AggrementStatusEnum || (exports.AggrementStatusEnum = {}));
|
|
10
|
-
//# sourceMappingURL=aggrement-status.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aggrement-status.enum.js","sourceRoot":"","sources":["../../../src/enum/aggrement-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,sDAA+B,CAAA;IAC/B,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;AACnB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BookingStatusEnum = void 0;
|
|
4
|
-
var BookingStatusEnum;
|
|
5
|
-
(function (BookingStatusEnum) {
|
|
6
|
-
BookingStatusEnum["CONFIRMED"] = "Confirmed";
|
|
7
|
-
BookingStatusEnum["PENDING"] = "Pending";
|
|
8
|
-
BookingStatusEnum["CANCELLED"] = "Cancelled";
|
|
9
|
-
})(BookingStatusEnum = exports.BookingStatusEnum || (exports.BookingStatusEnum = {}));
|
|
10
|
-
//# sourceMappingURL=booking.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"booking.enum.js","sourceRoot":"","sources":["../../../src/enum/booking.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;AACzB,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B"}
|
package/dist/src/enum/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { RentalStatusEnum } from './rental-status.enum';
|
|
2
|
-
import { BookingStatusEnum } from './booking.enum';
|
|
3
|
-
import { RentalAccountTypeEnum } from './account-type.enum';
|
|
4
|
-
import { AggrementStatusEnum } from './aggrement-status.enum';
|
|
5
|
-
export { RentalStatusEnum, BookingStatusEnum, RentalAccountTypeEnum, AggrementStatusEnum, };
|
package/dist/src/enum/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AggrementStatusEnum = exports.RentalAccountTypeEnum = exports.BookingStatusEnum = exports.RentalStatusEnum = void 0;
|
|
4
|
-
const rental_status_enum_1 = require("./rental-status.enum");
|
|
5
|
-
Object.defineProperty(exports, "RentalStatusEnum", { enumerable: true, get: function () { return rental_status_enum_1.RentalStatusEnum; } });
|
|
6
|
-
const booking_enum_1 = require("./booking.enum");
|
|
7
|
-
Object.defineProperty(exports, "BookingStatusEnum", { enumerable: true, get: function () { return booking_enum_1.BookingStatusEnum; } });
|
|
8
|
-
const account_type_enum_1 = require("./account-type.enum");
|
|
9
|
-
Object.defineProperty(exports, "RentalAccountTypeEnum", { enumerable: true, get: function () { return account_type_enum_1.RentalAccountTypeEnum; } });
|
|
10
|
-
const aggrement_status_enum_1 = require("./aggrement-status.enum");
|
|
11
|
-
Object.defineProperty(exports, "AggrementStatusEnum", { enumerable: true, get: function () { return aggrement_status_enum_1.AggrementStatusEnum; } });
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enum/index.ts"],"names":[],"mappings":";;;AAAA,6DAAwD;AAMtD,iGANO,qCAAgB,OAMP;AALlB,iDAAmD;AAMjD,kGANO,gCAAiB,OAMP;AALnB,2DAA4D;AAM1D,sGANO,yCAAqB,OAMP;AALvB,mEAA8D;AAM5D,oGANO,2CAAmB,OAMP"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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["PENDING_SIGNING"] = "Pending Signing";
|
|
12
|
-
RentalStatusEnum["PENDING_KEY_COLLECTION"] = "Pending Key Collection";
|
|
13
|
-
})(RentalStatusEnum = exports.RentalStatusEnum || (exports.RentalStatusEnum = {}));
|
|
14
|
-
//# sourceMappingURL=rental-status.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rental-status.enum.js","sourceRoot":"","sources":["../../../src/enum/rental-status.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,gBAmCX;AAnCD,WAAY,gBAAgB;IAI1B,yCAAqB,CAAA;IAKrB,qCAAiB,CAAA;IAKjB,2CAAuB,CAAA;IAKvB,2CAAuB,CAAA;IAKvB,6CAAyB,CAAA;IAKzB,uDAAmC,CAAA;IAKnC,qEAAiD,CAAA;AACnD,CAAC,EAnCW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAmC3B"}
|
package/dist/src/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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 { Booking } from './components/booking/booking';
|
|
6
|
-
import { BookingRepository } from './components/booking/booking.repository';
|
|
7
|
-
import { JointHirer } from './components/joint-hirer/joint-hirer';
|
|
8
|
-
import { JointHirerRepository } from './components/joint-hirer/joint-hirer.repository';
|
|
9
|
-
import { Agreement } from './components/agreement/agreement';
|
|
10
|
-
import { AgreementRepository } from './components/agreement/agreement.repository';
|
|
11
|
-
import * as rentalDb from './database';
|
|
12
|
-
export * from './interfaces';
|
|
13
|
-
export * from './models';
|
|
14
|
-
export * from './enum';
|
|
15
|
-
export { Rental, RentalPrice, RentalRepository, RentalPriceRepository, Booking, BookingRepository, rentalDb, JointHirer, JointHirerRepository, Agreement, AgreementRepository, };
|
package/dist/src/index.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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.AgreementRepository = exports.Agreement = exports.JointHirerRepository = exports.JointHirer = exports.rentalDb = exports.BookingRepository = exports.Booking = 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 booking_1 = require("./components/booking/booking");
|
|
27
|
-
Object.defineProperty(exports, "Booking", { enumerable: true, get: function () { return booking_1.Booking; } });
|
|
28
|
-
const booking_repository_1 = require("./components/booking/booking.repository");
|
|
29
|
-
Object.defineProperty(exports, "BookingRepository", { enumerable: true, get: function () { return booking_repository_1.BookingRepository; } });
|
|
30
|
-
const joint_hirer_1 = require("./components/joint-hirer/joint-hirer");
|
|
31
|
-
Object.defineProperty(exports, "JointHirer", { enumerable: true, get: function () { return joint_hirer_1.JointHirer; } });
|
|
32
|
-
const joint_hirer_repository_1 = require("./components/joint-hirer/joint-hirer.repository");
|
|
33
|
-
Object.defineProperty(exports, "JointHirerRepository", { enumerable: true, get: function () { return joint_hirer_repository_1.JointHirerRepository; } });
|
|
34
|
-
const agreement_1 = require("./components/agreement/agreement");
|
|
35
|
-
Object.defineProperty(exports, "Agreement", { enumerable: true, get: function () { return agreement_1.Agreement; } });
|
|
36
|
-
const agreement_repository_1 = require("./components/agreement/agreement.repository");
|
|
37
|
-
Object.defineProperty(exports, "AgreementRepository", { enumerable: true, get: function () { return agreement_repository_1.AgreementRepository; } });
|
|
38
|
-
const rentalDb = require("./database");
|
|
39
|
-
exports.rentalDb = rentalDb;
|
|
40
|
-
__exportStar(require("./interfaces"), exports);
|
|
41
|
-
__exportStar(require("./models"), exports);
|
|
42
|
-
__exportStar(require("./enum"), exports);
|
|
43
|
-
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+FAA0F;AAmBxF,sGAnBO,+CAAqB,OAmBP;AAlBvB,6EAAyE;AAiBvE,iGAjBO,oCAAgB,OAiBP;AAhBlB,uDAAoD;AAclD,uFAdO,eAAM,OAcP;AAbR,yEAAqE;AAcnE,4FAdO,0BAAW,OAcP;AAbb,0DAAuD;AAgBrD,wFAhBO,iBAAO,OAgBP;AAfT,gFAA4E;AAgB1E,kGAhBO,sCAAiB,OAgBP;AAfnB,sEAAkE;AAiBhE,2FAjBO,wBAAU,OAiBP;AAhBZ,4FAAuF;AAiBrF,qGAjBO,6CAAoB,OAiBP;AAhBtB,gEAA6D;AAiB3D,0FAjBO,qBAAS,OAiBP;AAhBX,sFAAkF;AAiBhF,oGAjBO,0CAAmB,OAiBP;AAhBrB,uCAAuC;AAYrC,4BAAQ;AAXV,+CAA6B;AAC7B,2CAAyB;AACzB,yCAAuB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agreement-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/agreement-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BookingStatusEnum } from '../enum/booking.enum';
|
|
2
|
-
export interface IBookingAttr {
|
|
3
|
-
BookingNo: string;
|
|
4
|
-
CustomerId: string;
|
|
5
|
-
CustomerType: string;
|
|
6
|
-
ItemId: string;
|
|
7
|
-
ItemType: string;
|
|
8
|
-
PriceId: string;
|
|
9
|
-
ScheduledStartDateTime: Date;
|
|
10
|
-
ScheduledEndDateTime: Date;
|
|
11
|
-
BookingFee: number;
|
|
12
|
-
Status: BookingStatusEnum;
|
|
13
|
-
CancelRemarks: string;
|
|
14
|
-
CreatedById: string;
|
|
15
|
-
CreatedAt: Date;
|
|
16
|
-
UpdatedById: string;
|
|
17
|
-
UpdatedAt: Date;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"booking-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/booking-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface IBookingFindAllSearchAttr {
|
|
2
|
-
BookingNo?: string;
|
|
3
|
-
CustomerId?: string;
|
|
4
|
-
CustomerType?: string;
|
|
5
|
-
ItemId?: string;
|
|
6
|
-
ItemType?: string;
|
|
7
|
-
PriceId?: string;
|
|
8
|
-
ScheduledStartDateTime?: Date;
|
|
9
|
-
ScheduledEndDateTime?: Date;
|
|
10
|
-
BookingFee?: number;
|
|
11
|
-
Status?: string;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"booking-find-all-search-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/booking-find-all-search-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
import { IBookingAttr } from './booking-attr.interface';
|
|
5
|
-
import { IAgreementAttr } from './agreement-attr.interface';
|
|
6
|
-
import { IBookingFindAllSearchAttr } from './booking-find-all-search-attr.interface';
|
|
7
|
-
export { IRentalAttr, IRentalPriceAttr, IRentalFindAllSearchAttr, IBookingAttr, IAgreementAttr, IBookingFindAllSearchAttr, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"joint-hirer-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/joint-hirer-attr.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { RentalStatusEnum } from '../enum/rental-status.enum';
|
|
2
|
-
import { RentalAccountTypeEnum } from '../enum/account-type.enum';
|
|
3
|
-
import { IJointHirerAttr } from './joint-hirer-attr.interface';
|
|
4
|
-
export interface IRentalAttr {
|
|
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
|
-
CancelRemarks: string;
|
|
14
|
-
TerminateRemarks: string;
|
|
15
|
-
AgreementNo: string;
|
|
16
|
-
AccountType: RentalAccountTypeEnum;
|
|
17
|
-
Status: RentalStatusEnum;
|
|
18
|
-
EscheatmentYN: string;
|
|
19
|
-
CreatedById: string;
|
|
20
|
-
CreatedAt: Date;
|
|
21
|
-
UpdatedById: string;
|
|
22
|
-
UpdatedAt: Date;
|
|
23
|
-
JointHirers?: IJointHirerAttr[];
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rental-attr.interface.js","sourceRoot":"","sources":["../../../src/interfaces/rental-attr.interface.ts"],"names":[],"mappings":""}
|