@bondsports/types 2.2.180 → 2.2.182
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/dto/reservation.dto.d.ts +3 -0
- package/dist/types/reservations/dto/reservation.dto.js +4 -1
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/types/classes/slot.classes.d.ts +0 -1
- package/dist/types/reservations/types/classes/slot.classes.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,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GetDraftSlotsOptions = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByDraftReservationIdDto = exports.GetDraftReservationSlotsFiltersDto = exports.AddSegmentsDto = exports.AddSlotsDto = exports.InvoiceReservationItemsDto = exports.SaveSlotToSegmenResultDto = exports.AddSlotToSegmenResultDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.getSlotsSlotCardDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.SaveReservationOptionsDto = exports.ReservationInvoiceDto = exports.DraftReservationDto = exports.SimpleDraftReservationDto = exports.CreateDraftReservationDto = exports.SegmentsAddonsDto = exports.CreateSegmentsAddonsDto = exports.ReservationDto = exports.SimpleReservationDto = exports.ProductPricesDto = void 0;
|
4
|
-
exports.CreateReservationCartDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = void 0;
|
4
|
+
exports.PaginatedSlotsSharedDto = exports.CreateReservationCartDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = void 0;
|
5
5
|
const general_dto_1 = require("../../dto/general.dto");
|
6
6
|
const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
|
7
7
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
@@ -193,4 +193,7 @@ exports.ProblematicProductDto = ProblematicProductDto;
|
|
193
193
|
class CreateReservationCartDto {
|
194
194
|
}
|
195
195
|
exports.CreateReservationCartDto = CreateReservationCartDto;
|
196
|
+
class PaginatedSlotsSharedDto {
|
197
|
+
}
|
198
|
+
exports.PaginatedSlotsSharedDto = PaginatedSlotsSharedDto;
|
196
199
|
//# sourceMappingURL=reservation.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAIA,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,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;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0CAA2C,SAAQ,6BAAe;CAY9E;AAZD,gGA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ED,MAAa,kCACZ,SAAQ,6BAAe;CAuBvB;AAxBD,gFAwBC;AAED,MAAa,uBAAwB,SAAQ,sCAAmB;CAE/D;AAFD,0DAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,yBAAyB;CAYrC;AAZD,8DAYC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAIrE;AAJD,8EAIC;AAED,MAAa,6BAA6B;CAkBzC;AAlBD,sEAkBC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,WAAY,SAAQ,oBAAoB;CAEpD;AAFD,kCAEC;AAED,MAAa,gBAAiB,SAAQ,uBAAuB;CAE5D;AAFD,4CAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,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"}
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAIA,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,0DAEC;AAED,MAAa,iBAAkB,SAAQ,uBAAuB;CAE7D;AAFD,8CAEC;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B;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"}
|
@@ -48,7 +48,6 @@ export declare class DraftSlot implements IDraftSlot {
|
|
48
48
|
participantsIds?: number[];
|
49
49
|
participants?: Customer[];
|
50
50
|
conflictsIds?: number[];
|
51
|
-
totalSlotsInSeries?: number;
|
52
51
|
maintenanceSlots?: DraftSlot[];
|
53
52
|
maintenance?: Maintenance[];
|
54
53
|
addons?: DraftAddon[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/slot.classes.ts"],"names":[],"mappings":";;;AAkBA,MAAa,SAAS;
|
1
|
+
{"version":3,"file":"slot.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/slot.classes.ts"],"names":[],"mappings":";;;AAkBA,MAAa,SAAS;CA4FrB;AA5FD,8BA4FC"}
|