@bondsports/types 2.2.186 → 2.2.188
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/invoice/types/consts/invoice.consts.d.ts +6 -2
- package/dist/types/invoice/types/consts/invoice.consts.js +2 -2
- package/dist/types/invoice/types/consts/invoice.consts.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.js +2 -0
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/package.json +1 -1
@@ -1,10 +1,14 @@
|
|
1
|
-
import { CartItem } from '../../../cart/entities/cart-item.entity';
|
2
1
|
import { InvoiceDiscountOnEnum } from '../../../payment/types/enums/discount.enums';
|
3
2
|
export declare const discountOnMapper: {
|
4
3
|
[key: string]: InvoiceDiscountOnEnum;
|
5
4
|
};
|
5
|
+
type HasIdOrUnique = {
|
6
|
+
id?: number | string;
|
7
|
+
unique?: string;
|
8
|
+
};
|
6
9
|
/**
|
7
10
|
* Generates a unique key for a given cart item.
|
8
11
|
*
|
9
12
|
*/
|
10
|
-
export declare const getUniqueKey: (
|
13
|
+
export declare const getUniqueKey: (entity: HasIdOrUnique) => string;
|
14
|
+
export {};
|
@@ -10,9 +10,9 @@ exports.discountOnMapper = {
|
|
10
10
|
* Generates a unique key for a given cart item.
|
11
11
|
*
|
12
12
|
*/
|
13
|
-
const getUniqueKey = (
|
13
|
+
const getUniqueKey = (entity) => {
|
14
14
|
var _a, _b;
|
15
|
-
return (_b = (_a =
|
15
|
+
return (_b = (_a = entity.id) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : entity.unique;
|
16
16
|
};
|
17
17
|
exports.getUniqueKey = getUniqueKey;
|
18
18
|
//# sourceMappingURL=invoice.consts.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"invoice.consts.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/invoice.consts.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"invoice.consts.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/invoice.consts.ts"],"names":[],"mappings":";;;AAAA,gFAAoG;AAEvF,QAAA,gBAAgB,GAA6C;IACzE,CAAC,+BAAc,CAAC,IAAI,CAAC,EAAE,sCAAqB,CAAC,SAAS;IACtD,CAAC,+BAAc,CAAC,GAAG,CAAC,EAAE,sCAAqB,CAAC,OAAO;CACnD,CAAC;AAOF;;;GAGG;AACI,MAAM,YAAY,GAAsC,CAAC,MAAqB,EAAU,EAAE;;IAChG,OAAO,MAAA,MAAA,MAAM,CAAC,EAAE,0CAAE,QAAQ,EAAE,mCAAI,MAAM,CAAC,MAAM,CAAC;AAC/C,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB"}
|
@@ -7,6 +7,8 @@ const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
|
|
7
7
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
8
8
|
const purchase_dto_1 = require("../../purchase/dto/purchase.dto");
|
9
9
|
const MAX_SLOTS_REQUEST_LIMIT = 5000;
|
10
|
+
const MONTH_OF_JANUARY = 0;
|
11
|
+
const MONTH_OF_DECEMBER = 11;
|
10
12
|
class ProductPricesDto {
|
11
13
|
}
|
12
14
|
exports.ProductPricesDto = ProductPricesDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,uDAAwD;AACxD,+DAAsG;AAEtG,8EAA8E;AAK9E,kEAAwF;AA2CxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CA8BvB;AAED,MAAa,oBAAqB,SAAQ,kBAAkB;CAM3D;AAND,oDAMC;AAED,MAAa,cAAe,SAAQ,oBAAoB;CASvD;AATD,wCASC;AAED,MAAM,0BAA0B;CAM/B;AAED,MAAa,uBAAwB,SAAQ,0BAA0B;CAEtE;AAFD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Aa,sBAAuB,SAAQ,0BAA0B;CAErE;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,uDAAwD;AACxD,+DAAsG;AAEtG,8EAA8E;AAK9E,kEAAwF;AA2CxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CA8BvB;AAED,MAAa,oBAAqB,SAAQ,kBAAkB;CAM3D;AAND,oDAMC;AAED,MAAa,cAAe,SAAQ,oBAAoB;CASvD;AATD,wCASC;AAED,MAAM,0BAA0B;CAM/B;AAED,MAAa,uBAAwB,SAAQ,0BAA0B;CAEtE;AAFD,0DAEC;AAED,MAAa,iBAAkB,SAAQ,uBAAuB;CAE7D;AAFD,8CAEC;AAED,MAAa,yBAA0B,SAAQ,kBAAkB;CAEhE;AAFD,8DAEC;AAED,MAAa,yBAA0B,SAAQ,yBAAyB;CAIvE;AAJD,8DAIC;AAED,MAAa,mBAAoB,SAAQ,yBAAyB;CAkBjE;AAlBD,kDAkBC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,kBAAmB,SAAQ,yBAAyB;CAIhE;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;C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