@bondsports/types 2.2.179 → 2.2.181
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 -0
- package/dist/types/invoice/types/consts/invoice.consts.js +10 -1
- package/dist/types/invoice/types/consts/invoice.consts.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +8 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
- package/package.json +1 -1
@@ -1,4 +1,10 @@
|
|
1
|
+
import { CartItem } from '../../../cart/entities/cart-item.entity';
|
1
2
|
import { InvoiceDiscountOnEnum } from '../../../payment/types/enums/discount.enums';
|
2
3
|
export declare const discountOnMapper: {
|
3
4
|
[key: string]: InvoiceDiscountOnEnum;
|
4
5
|
};
|
6
|
+
/**
|
7
|
+
* Generates a unique key for a given cart item.
|
8
|
+
*
|
9
|
+
*/
|
10
|
+
export declare const getUniqueKey: (cartItem: CartItem) => string;
|
@@ -1,9 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.discountOnMapper = void 0;
|
3
|
+
exports.getUniqueKey = exports.discountOnMapper = void 0;
|
4
4
|
const discount_enums_1 = require("../../../payment/types/enums/discount.enums");
|
5
5
|
exports.discountOnMapper = {
|
6
6
|
[discount_enums_1.DiscountOnEnum.ITEM]: discount_enums_1.InvoiceDiscountOnEnum.LINE_ITEM,
|
7
7
|
[discount_enums_1.DiscountOnEnum.ALL]: discount_enums_1.InvoiceDiscountOnEnum.INVOICE,
|
8
8
|
};
|
9
|
+
/**
|
10
|
+
* Generates a unique key for a given cart item.
|
11
|
+
*
|
12
|
+
*/
|
13
|
+
const getUniqueKey = (cartItem) => {
|
14
|
+
var _a;
|
15
|
+
return (_a = cartItem.id.toString()) !== null && _a !== void 0 ? _a : cartItem.unique;
|
16
|
+
};
|
17
|
+
exports.getUniqueKey = getUniqueKey;
|
9
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":";;;AACA,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;AAEF;;;GAGG;AACI,MAAM,YAAY,GAAmC,CAAC,QAAkB,EAAU,EAAE;;IAC1F,OAAO,MAAA,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,mCAAI,QAAQ,CAAC,MAAM,CAAC;AAClD,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Cart } from '../../../cart/entities/cart.entity';
|
1
2
|
import { ICreateCartOptions, IUpdateCartPrices } from '../../../cart/types/interfaces/cart.interfaces';
|
2
3
|
import { PaginationQuery } from '../../../dto/general.dto';
|
3
4
|
import { Customer } from '../../../entity/Customer';
|
@@ -9,7 +10,7 @@ import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
|
|
9
10
|
import { RefundResult } from '../../../payment/types/interfaces/refund.interfaces';
|
10
11
|
import { Product } from '../../../product-pricing/entities/Product';
|
11
12
|
import { Answer } from '../../../questionnaires/entities/Answer';
|
12
|
-
import { AddonParentTypeEnum, FinancialStepEnum, PlatformsEnum, ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
|
13
|
+
import { AddonParentTypeEnum, FinancialStepEnum, InvoiceStatusEnum, PlatformsEnum, ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
|
13
14
|
import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
|
14
15
|
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
15
16
|
import { AddonDto } from '../../dto/addon.dto';
|
@@ -384,4 +385,10 @@ export interface IDraftReservation extends IBaseReservation {
|
|
384
385
|
endDate?: string;
|
385
386
|
endTime?: string;
|
386
387
|
}
|
388
|
+
export interface IInvoiceDraftReservationOptions {
|
389
|
+
shiftId?: number;
|
390
|
+
draftStatus?: InvoiceStatusEnum;
|
391
|
+
existingCart?: Cart;
|
392
|
+
cartId?: number;
|
393
|
+
}
|
387
394
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAkGA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
|