@bondsports/types 2.2.279 → 2.2.281-team-a
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/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +8 -3
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +44 -14
- package/dist/types/reservations/dto/slot.dto.js +32 -5
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/consts/reservation.consts.d.ts +1 -0
- package/dist/types/reservations/types/consts/reservation.consts.js +2 -1
- package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +18 -1
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +4 -0
- package/package.json +1 -1
@@ -20,11 +20,11 @@ import { AddonParentTypeEnum, FinancialStepEnum, NotifyMethodEnum, OrderByEnum,
|
|
20
20
|
import { Reservation } from '../entities/reservation.entity';
|
21
21
|
import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
22
22
|
import { ISegmentsAddons } from '../types/interfaces/addon.interfaces';
|
23
|
-
import { IBaseReservation, IBaseReservationItemLineItem, IDraftReservation, IDuplicateDetails, IEditItemsRefundMetadata, IEditSlotsFinancialDetails, IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, IProductPrice, IRemoveSlotsFinancialData, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
|
23
|
+
import { IBaseReservation, IBaseReservationItemLineItem, IDraftReservation, IDuplicateDetails, IDuplicateReservationItems, IEditItemsRefundMetadata, IEditSlotsFinancialDetails, IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, IProductPrice, IRemoveSlotsFinancialData, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
|
24
24
|
import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
|
25
25
|
import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
|
26
26
|
import { SeriesDto } from './series.dto';
|
27
|
-
import { SlotDto, TimeSlotConflictsDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
|
27
|
+
import { DraftSlotsDto, SlotDto, TimeSlotConflictsDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
|
28
28
|
export declare class ProductPricesDto implements IProductPrice {
|
29
29
|
productId: number;
|
30
30
|
product?: Product;
|
@@ -112,6 +112,7 @@ export declare class DraftReservationDto extends SimpleDraftReservationDto imple
|
|
112
112
|
facilities: FacilityDto[];
|
113
113
|
segmentsAddons?: SegmentsAddonsDto[];
|
114
114
|
duplicateDetails?: DuplicatedDetailsDto;
|
115
|
+
combinedSlots?: DraftSlotsDto[];
|
115
116
|
}
|
116
117
|
export declare class ReservationInvoiceDto {
|
117
118
|
reservation: ReservationDto;
|
@@ -356,6 +357,7 @@ export declare class GenerateReservationDto {
|
|
356
357
|
}
|
357
358
|
export declare class UpdateDraftSlotsDto {
|
358
359
|
slots: UpdateDraftSlotDto[];
|
360
|
+
slotsIds?: string[];
|
359
361
|
overrideProducts?: boolean;
|
360
362
|
}
|
361
363
|
export declare class SegmentsAddonsGroupDto extends BaseSegmentsAddonsGroupDto {
|
@@ -383,9 +385,12 @@ export declare class PaginatedSlotsSharedDto {
|
|
383
385
|
export declare class DuplicateReservationDto {
|
384
386
|
isEdit?: boolean;
|
385
387
|
}
|
386
|
-
export declare class DuplicateReservationItemsDto extends DuplicateReservationDto {
|
388
|
+
export declare class DuplicateReservationItemsDto extends DuplicateReservationDto implements IDuplicateReservationItems {
|
387
389
|
slotsIds?: number[];
|
390
|
+
excludeIds?: number[];
|
388
391
|
reservationAddonsIds?: number[];
|
392
|
+
combineSlots?: boolean;
|
393
|
+
includedFields?: string[];
|
389
394
|
}
|
390
395
|
export declare class ReservationItemLineDto {
|
391
396
|
id: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,uDAAwD;AAExD,+DAA+G;AAE/G,8EAA8E;AAO9E,kEAAwF;
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,uDAAwD;AAExD,+DAA+G;AAE/G,8EAA8E;AAO9E,kEAAwF;AAmDxF,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;CAgCvB;AAED,MAAa,oBAAqB,SAAQ,kBAAkB;CAM3D;AAND,oDAMC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,cAAe,SAAQ,oBAAoB;CAWvD;AAXD,wCAWC;AAED,MAAa,kCAAkC;CAc9C;AAdD,gFAcC;AAED,MAAM,oBAAqB,SAAQ,kCAAkC;CAEpE;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;CAsBjE;AAtBD,kDAsBC;AAED,MAAa,qBAAqB;CAMjC;AAND,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AAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,4BAA6B,SAAQ,uBAAuB;CAUxE;AAVD,oEAUC;AAED,MAAa,sBAAsB;CAkBlC;AAlBD,wDAkBC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,4BAA4B;CAkBxC;AAlBD,oEAkBC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC"}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
|
2
2
|
import { FacilityDto } from '../../dto/facilities.dto';
|
3
|
+
import { SimpleProductUserDto } from '../../dto/product-user';
|
4
|
+
import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
|
3
5
|
import { ProductDto } from '../../product-pricing/dto/product.dto';
|
4
6
|
import { Product } from '../../product-pricing/entities/Product';
|
5
7
|
import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
|
@@ -9,10 +11,8 @@ import { Slot } from '../entities/slot.entity';
|
|
9
11
|
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
10
12
|
import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
|
11
13
|
import { IBaseSlot, IDraftSlot, ISlotProductMetadata, ISlotProductPricesMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
|
12
|
-
import { AddonDto, DraftAddonDto } from './addon.dto';
|
14
|
+
import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
|
13
15
|
import { MaintenanceDto } from './maintenance.dto';
|
14
|
-
import { SimpleProductUserDto } from '../../dto/product-user';
|
15
|
-
import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
|
16
16
|
export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
17
17
|
productId: number;
|
18
18
|
price: number;
|
@@ -26,23 +26,29 @@ export declare class SlotProductPricesMetadataDto implements ISlotProductPricesM
|
|
26
26
|
quantity: number;
|
27
27
|
totalPrice: number;
|
28
28
|
}
|
29
|
-
export declare class
|
29
|
+
export declare class BaseSlotFieldsDto {
|
30
|
+
organizationId?: number;
|
30
31
|
startDate: string;
|
31
32
|
startTime?: string;
|
32
33
|
endDate?: string;
|
33
34
|
endTime?: string;
|
34
35
|
spaceId: number;
|
35
36
|
instructorsIds?: number[];
|
37
|
+
title?: string;
|
38
|
+
publicNotes?: string;
|
39
|
+
privateNotes?: string;
|
40
|
+
sportIds?: SportsEnum[];
|
41
|
+
privacySetting?: PrivacySettingsEnum;
|
42
|
+
colorCodeId?: number;
|
43
|
+
participantsNumber?: number;
|
44
|
+
maintenance?: MaintenanceDto[];
|
36
45
|
}
|
37
|
-
export declare class BaseSlotDto extends
|
38
|
-
organizationId?: number;
|
46
|
+
export declare class BaseSlotDto extends BaseSlotFieldsDto implements IBaseSlot {
|
39
47
|
title: string;
|
40
48
|
creatorId?: number;
|
41
49
|
creatorType?: ResourceNameTypeEnum;
|
42
50
|
userCreatorId?: number;
|
43
51
|
timezone?: string;
|
44
|
-
publicNotes?: string;
|
45
|
-
privateNotes?: string;
|
46
52
|
slotType: SlotTypeEnum;
|
47
53
|
sportIds: SportsEnum[];
|
48
54
|
maintenanceDurationdurationType?: DurationUnitTypesEnum;
|
@@ -51,13 +57,9 @@ export declare class BaseSlotDto extends DateTimeAndResourcesDto implements IBas
|
|
51
57
|
displayName?: string;
|
52
58
|
internalName?: string;
|
53
59
|
totalPrice?: number;
|
54
|
-
privacySetting?: PrivacySettingsEnum;
|
55
60
|
slotDurationType: DurationTypeEnum;
|
56
|
-
colorCodeId?: number;
|
57
|
-
participantsNumber?: number;
|
58
61
|
occurrence?: number;
|
59
62
|
productMetadata?: SlotProductMetadataDto;
|
60
|
-
maintenance?: MaintenanceDto[];
|
61
63
|
}
|
62
64
|
export declare class SlotDto extends BaseSlotDto {
|
63
65
|
id?: number;
|
@@ -91,9 +93,34 @@ export declare class BaseDraftSlotDto extends BaseSlotDto {
|
|
91
93
|
participantsIds?: number[];
|
92
94
|
slotId?: number;
|
93
95
|
}
|
94
|
-
export declare class UpdateDraftSlotDto
|
96
|
+
export declare class UpdateDraftSlotDto {
|
97
|
+
id: string;
|
98
|
+
title?: string;
|
99
|
+
privacySetting?: PrivacySettingsEnum;
|
100
|
+
colorCodeId?: number;
|
101
|
+
spaceId?: number;
|
102
|
+
sportIds?: SportsEnum[];
|
103
|
+
startDate?: string;
|
104
|
+
startTime?: string;
|
105
|
+
endDate?: string;
|
106
|
+
endTime?: string;
|
107
|
+
maintenance?: MaintenanceDto[];
|
108
|
+
privateNotes?: string;
|
109
|
+
publicNotes?: string;
|
110
|
+
productsIds?: number[];
|
111
|
+
instructorsIds?: number[];
|
112
|
+
participantsIds?: number[];
|
113
|
+
participantsNumber?: number;
|
114
|
+
addons?: CreateDraftAddonDto[];
|
115
|
+
}
|
116
|
+
export declare class DraftSlotsDto extends BaseSlotFieldsDto {
|
117
|
+
constructor(editSlots?: Partial<DraftSlotsDto>);
|
118
|
+
ids: string[];
|
119
|
+
facilitiesIds: number[];
|
120
|
+
reservationId: string;
|
121
|
+
participantsIds?: number[];
|
95
122
|
productsIds?: number[];
|
96
|
-
|
123
|
+
addons?: CreateDraftAddonDto[];
|
97
124
|
}
|
98
125
|
export declare class DraftSlotDto extends BaseDraftSlotDto implements IDraftSlot {
|
99
126
|
maintenanceSlots?: DraftSlotDto[];
|
@@ -143,13 +170,16 @@ export declare class DraftTimeSlotDto implements ITimeSlot {
|
|
143
170
|
parentSlotId?: string;
|
144
171
|
}
|
145
172
|
export declare class ProblematicSlotDto {
|
173
|
+
id: string;
|
146
174
|
startDate: string;
|
147
175
|
endDate: string;
|
148
176
|
startTime: string;
|
149
177
|
endTime: string;
|
150
178
|
spaceId: number;
|
179
|
+
title: string;
|
151
180
|
spaceName?: string;
|
152
181
|
instructorsIds?: number[];
|
182
|
+
slotId?: number;
|
153
183
|
}
|
154
184
|
export declare class CardSlotDto extends SlotDto {
|
155
185
|
resource: SpaceResourceDto;
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CardSlotDto = exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.DraftSlotDto = exports.UpdateDraftSlotDto = exports.BaseDraftSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.
|
3
|
+
exports.CardSlotDto = exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.DraftSlotDto = exports.DraftSlotsDto = exports.UpdateDraftSlotDto = exports.BaseDraftSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.BaseSlotFieldsDto = exports.SlotProductPricesMetadataDto = exports.SlotProductMetadataDto = void 0;
|
4
4
|
class SlotProductMetadataDto {
|
5
5
|
}
|
6
6
|
exports.SlotProductMetadataDto = SlotProductMetadataDto;
|
7
7
|
class SlotProductPricesMetadataDto {
|
8
8
|
}
|
9
9
|
exports.SlotProductPricesMetadataDto = SlotProductPricesMetadataDto;
|
10
|
-
class
|
10
|
+
class BaseSlotFieldsDto {
|
11
11
|
}
|
12
|
-
exports.
|
13
|
-
class BaseSlotDto extends
|
12
|
+
exports.BaseSlotFieldsDto = BaseSlotFieldsDto;
|
13
|
+
class BaseSlotDto extends BaseSlotFieldsDto {
|
14
14
|
}
|
15
15
|
exports.BaseSlotDto = BaseSlotDto;
|
16
16
|
class SlotDto extends BaseSlotDto {
|
@@ -19,9 +19,36 @@ exports.SlotDto = SlotDto;
|
|
19
19
|
class BaseDraftSlotDto extends BaseSlotDto {
|
20
20
|
}
|
21
21
|
exports.BaseDraftSlotDto = BaseDraftSlotDto;
|
22
|
-
class UpdateDraftSlotDto
|
22
|
+
class UpdateDraftSlotDto {
|
23
23
|
}
|
24
24
|
exports.UpdateDraftSlotDto = UpdateDraftSlotDto;
|
25
|
+
class DraftSlotsDto extends BaseSlotFieldsDto {
|
26
|
+
constructor(editSlots) {
|
27
|
+
super();
|
28
|
+
this.ids = editSlots === null || editSlots === void 0 ? void 0 : editSlots.ids;
|
29
|
+
this.organizationId = editSlots === null || editSlots === void 0 ? void 0 : editSlots.organizationId;
|
30
|
+
this.facilitiesIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.facilitiesIds;
|
31
|
+
this.reservationId = editSlots === null || editSlots === void 0 ? void 0 : editSlots.reservationId;
|
32
|
+
this.startDate = editSlots === null || editSlots === void 0 ? void 0 : editSlots.startDate;
|
33
|
+
this.startTime = editSlots === null || editSlots === void 0 ? void 0 : editSlots.startTime;
|
34
|
+
this.endDate = editSlots === null || editSlots === void 0 ? void 0 : editSlots.endDate;
|
35
|
+
this.endTime = editSlots === null || editSlots === void 0 ? void 0 : editSlots.endTime;
|
36
|
+
this.spaceId = editSlots === null || editSlots === void 0 ? void 0 : editSlots.spaceId;
|
37
|
+
this.instructorsIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.instructorsIds;
|
38
|
+
this.title = editSlots === null || editSlots === void 0 ? void 0 : editSlots.title;
|
39
|
+
this.publicNotes = editSlots === null || editSlots === void 0 ? void 0 : editSlots.publicNotes;
|
40
|
+
this.privateNotes = editSlots === null || editSlots === void 0 ? void 0 : editSlots.privateNotes;
|
41
|
+
this.sportIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.sportIds;
|
42
|
+
this.privacySetting = editSlots === null || editSlots === void 0 ? void 0 : editSlots.privacySetting;
|
43
|
+
this.colorCodeId = editSlots === null || editSlots === void 0 ? void 0 : editSlots.colorCodeId;
|
44
|
+
this.participantsNumber = editSlots === null || editSlots === void 0 ? void 0 : editSlots.participantsNumber;
|
45
|
+
this.participantsIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.participantsIds;
|
46
|
+
this.productsIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.productsIds;
|
47
|
+
this.maintenance = editSlots === null || editSlots === void 0 ? void 0 : editSlots.maintenance;
|
48
|
+
this.addons = editSlots === null || editSlots === void 0 ? void 0 : editSlots.addons;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
exports.DraftSlotsDto = DraftSlotsDto;
|
25
52
|
class DraftSlotDto extends BaseDraftSlotDto {
|
26
53
|
}
|
27
54
|
exports.DraftSlotDto = DraftSlotDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAgCA,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AAED,MAAa,4BAA4B;CAQxC;AARD,oEAQC;AAED,MAAa,
|
1
|
+
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAgCA,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AAED,MAAa,4BAA4B;CAQxC;AARD,oEAQC;AAED,MAAa,iBAAiB;CA8B7B;AA9BD,8CA8BC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAgCjD;AAhCD,kCAgCC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAkCvC;AAlCD,0BAkCC;AAED,MAAa,gBAAiB,SAAQ,WAAW;CAgBhD;AAhBD,4CAgBC;AAED,MAAa,kBAAkB;CAoC9B;AApCD,gDAoCC;AAED,MAAa,aAAc,SAAQ,iBAAiB;IACnD,YAAY,SAAkC;QAC7C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CA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AC,kBAAkB,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,kBAAkB,CAAC;QACxD,IAAI,CAAC,eAAe,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,eAAe,CAAC;QAClD,IAAI,CAAC,WAAW,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,CAAC;QAC1C,IAAI,CAAC,WAAW,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,CAAC;QAC1C,IAAI,CAAC,MAAM,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,CAAC;IACjC,CAAC;CAaD;AArCD,sCAqCC;AAED,MAAa,YAAa,SAAQ,gBAAgB;CAkBjD;AAlBD,oCAkBC;AAED,MAAa,WAAW;CAsBvB;AAtBD,kCAsBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AAED,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAa,kBAAkB;CAoB9B;AApBD,gDAoBC;AAED,MAAa,WAAY,SAAQ,OAAO;CAcvC;AAdD,kCAcC"}
|
@@ -7,6 +7,7 @@ export declare const RESOURCE_TOTAL_FIELD = PriceFieldEnum.TOTAL_PRICE;
|
|
7
7
|
export declare const PUBLIC_NOTES_LIMIT = 500;
|
8
8
|
export declare const PRIVATE_NOTES_LIMIT = 500;
|
9
9
|
export declare const DEFAULT_PRICE_ID = 0;
|
10
|
+
export declare const MANDATORY_DRAFT_SLOTS_FIELDS: string[];
|
10
11
|
export declare const reservationStatusMapper: {
|
11
12
|
Planned: InvoiceStatusEnum;
|
12
13
|
Approved: InvoiceStatusEnum;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.DEFAULT_PRICE_ID = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.RESERVATION_CHUNCK_SIZE = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
|
3
|
+
exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.MANDATORY_DRAFT_SLOTS_FIELDS = exports.DEFAULT_PRICE_ID = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.RESERVATION_CHUNCK_SIZE = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
|
4
4
|
const enums_service_1 = require("../../../services/enums.service");
|
5
5
|
const reservation_enums_1 = require("../enums/reservation.enums");
|
6
6
|
exports.DRAFT_RESERVATION_REDIS_TOKEN = 'DRAFT_RESERVATION_REDIS_CLIENT';
|
@@ -11,6 +11,7 @@ exports.RESOURCE_TOTAL_FIELD = enums_service_1.PriceFieldEnum.TOTAL_PRICE;
|
|
11
11
|
exports.PUBLIC_NOTES_LIMIT = 500;
|
12
12
|
exports.PRIVATE_NOTES_LIMIT = 500;
|
13
13
|
exports.DEFAULT_PRICE_ID = 0;
|
14
|
+
exports.MANDATORY_DRAFT_SLOTS_FIELDS = ['ids', 'organizationId', 'facilitiesIds', 'reservationId'];
|
14
15
|
exports.reservationStatusMapper = {
|
15
16
|
[reservation_enums_1.ReservationStatusEnum.PLANNED]: enums_service_1.InvoiceStatusEnum.DRAFT,
|
16
17
|
[reservation_enums_1.ReservationStatusEnum.APPROVED]: enums_service_1.InvoiceStatusEnum.DRAFT,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAqG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,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,IAAI;IACtD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,+BAAe,CAAC,KAAK;IAC7D,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,+BAAe,CAAC,KAAK;IAChE,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;IAC3D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;CAC3D,CAAC"}
|
1
|
+
{"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAqG;AACrG,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAEjE,QAAA,uBAAuB,GAAG,GAAG,CAAC;AAE3C,oBAAoB;AACP,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,gBAAgB,GAAG,CAAC,CAAC;AAErB,QAAA,4BAA4B,GAAa,CAAC,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;AAErG,QAAA,uBAAuB,GAAG;IACtC,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACzD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,iCAAiB,CAAC,aAAa;IACvE,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,iCAAiB,CAAC,cAAc;IAC3E,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC5D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;CAC5D,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACpC,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,MAAM;IACjD,CAAC,uCAAmB,CAAC,WAAW,CAAC,EAAE,gCAAY,CAAC,WAAW;IAC3D,CAAC,uCAAmB,CAAC,OAAO,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACpD,CAAC,uCAAmB,CAAC,QAAQ,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACrD,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,QAAQ;CACnD,CAAC;AAEW,QAAA,8BAA8B,GAAG;IAC7C,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,+BAAe,CAAC,KAAK;IACtD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,IAAI;IACtD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,+BAAe,CAAC,KAAK;IAC7D,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,+BAAe,CAAC,KAAK;IAChE,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;IAC3D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;CAC3D,CAAC"}
|
@@ -18,7 +18,7 @@ import { AddonDto } from '../../dto/addon.dto';
|
|
18
18
|
import { ReservationDto } from '../../dto/reservation.dto';
|
19
19
|
import { SegmentDto } from '../../dto/segment.dto';
|
20
20
|
import { SeriesDto } from '../../dto/series.dto';
|
21
|
-
import { SlotDto } from '../../dto/slot.dto';
|
21
|
+
import { SlotDto, UpdateDraftSlotDto } from '../../dto/slot.dto';
|
22
22
|
import { Addon } from '../../entities/addon.entity';
|
23
23
|
import { Reservation } from '../../entities/reservation.entity';
|
24
24
|
import { Segment } from '../../entities/segment.entity';
|
@@ -342,6 +342,13 @@ export interface IGetDraftReservationOptions {
|
|
342
342
|
includeConflicts?: boolean;
|
343
343
|
reservation?: DraftReservation;
|
344
344
|
}
|
345
|
+
export interface IDuplicateDraftReservation extends IGetDraftReservationOptions {
|
346
|
+
slotsIds?: number[];
|
347
|
+
excludeIds?: number[];
|
348
|
+
reservationAddonsIds?: number[];
|
349
|
+
isEdit?: boolean;
|
350
|
+
skipSave?: boolean;
|
351
|
+
}
|
345
352
|
export interface IGetDraftReservationSlotsOptions extends IPagination, IExtendDraftSlotsOptions {
|
346
353
|
segmentsIds?: string[];
|
347
354
|
slotsIds?: string[];
|
@@ -439,4 +446,14 @@ export interface IGetReservationOptions {
|
|
439
446
|
extraRelations?: string[];
|
440
447
|
includeProducts?: boolean;
|
441
448
|
}
|
449
|
+
export interface IDuplicateReservationItems {
|
450
|
+
slotsIds?: number[];
|
451
|
+
reservationAddonsIds?: number[];
|
452
|
+
excludeIds?: number[];
|
453
|
+
isEdit?: boolean;
|
454
|
+
}
|
455
|
+
export interface IUpdateDraftSlotsValidationResult {
|
456
|
+
slots: DraftSlot[];
|
457
|
+
updates: UpdateDraftSlotDto[];
|
458
|
+
}
|
442
459
|
export {};
|