@bondsports/types 2.2.153 → 2.2.154
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/reservations/dto/reservation.dto.d.ts +11 -7
- 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/dto/slot.dto.d.ts +14 -8
- package/dist/types/reservations/dto/slot.dto.js +5 -2
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +8 -0
- package/package.json +1 -1
@@ -1,10 +1,16 @@
|
|
1
|
+
import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
|
1
2
|
import { PaginationQuery } from '../../dto/general.dto';
|
2
3
|
import { InvoiceDto, UpdateInvoiceDto, UpdateInvoiceOptionsDto } from '../../invoice/dto/invoice.dto';
|
4
|
+
import { OverrideProductsPricingDto } from '../../invoice/types/interfaces/invoice.interfaces';
|
3
5
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
4
6
|
import { PaymentMethodDto, RefundAmountDto } from '../../payment/dto/refund.dto';
|
5
7
|
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
8
|
+
import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
|
6
9
|
import { Product } from '../../product-pricing/entities/Product';
|
7
10
|
import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purchase.dto';
|
11
|
+
import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
|
12
|
+
import { SimpleResourceDto } from '../../resources/dto/resource.dto';
|
13
|
+
import { SpaceResourceDto } from '../../resources/dto/space.dto';
|
8
14
|
import { AddonParentTypeEnum, NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
|
9
15
|
import { Reservation } from '../entities/reservation.entity';
|
10
16
|
import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
@@ -12,13 +18,7 @@ import { IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftRes
|
|
12
18
|
import { AddonDto, DraftAddonDto } from './addon.dto';
|
13
19
|
import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
|
14
20
|
import { SeriesDto } from './series.dto';
|
15
|
-
import { SlotDto, UpdateSlotsColorsDto } from './slot.dto';
|
16
|
-
import { SimpleResourceDto } from '../../resources/dto/resource.dto';
|
17
|
-
import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
|
18
|
-
import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
|
19
|
-
import { OverrideProductsPricingDto } from '../../invoice/types/interfaces/invoice.interfaces';
|
20
|
-
import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
|
21
|
-
import { SpaceResourceDto } from '../../resources/dto/space.dto';
|
21
|
+
import { SlotDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
|
22
22
|
export declare class ProductPricesDto {
|
23
23
|
productId: number;
|
24
24
|
product?: Product;
|
@@ -288,4 +288,8 @@ export declare class GenerateReservationDto {
|
|
288
288
|
addSegments?: CreateDraftSegmentDto[];
|
289
289
|
removeSegmentsIds?: string[];
|
290
290
|
}
|
291
|
+
export declare class UpdateDraftSlotsDto {
|
292
|
+
slots: UpdateDraftSlotDto[];
|
293
|
+
overrideProducts?: boolean;
|
294
|
+
}
|
291
295
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = 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.ReservationInvoiceDto = exports.DraftReservationDto = exports.SimpleDraftReservationDto = exports.CreateDraftReservationDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
|
3
|
+
exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = 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.ReservationInvoiceDto = exports.DraftReservationDto = exports.SimpleDraftReservationDto = exports.CreateDraftReservationDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
5
5
|
const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
|
6
6
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
@@ -160,4 +160,7 @@ exports.ByDraftSlotIdDto = ByDraftSlotIdDto;
|
|
160
160
|
class GenerateReservationDto {
|
161
161
|
}
|
162
162
|
exports.GenerateReservationDto = GenerateReservationDto;
|
163
|
+
class UpdateDraftSlotsDto {
|
164
|
+
}
|
165
|
+
exports.UpdateDraftSlotsDto = UpdateDraftSlotsDto;
|
163
166
|
//# 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":";;;
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAwD;AACxD,+DAAsG;AAEtG,8EAA8E;AAK9E,kEAAwF;AAsCxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CA8Bv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
2
|
import { Product } from '../../product-pricing/entities/Product';
|
3
|
+
import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
|
4
|
+
import { SpaceResourceDto } from '../../resources/dto/space.dto';
|
2
5
|
import { ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
|
3
6
|
import { Slot } from '../entities/slot.entity';
|
4
7
|
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
@@ -6,9 +9,6 @@ import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
|
|
6
9
|
import { IDraftSlot, ISlotProductMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
|
7
10
|
import { AddonDto, DraftAddonDto } from './addon.dto';
|
8
11
|
import { MaintenanceDto } from './maintenance.dto';
|
9
|
-
import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
|
10
|
-
import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
|
11
|
-
import { SpaceResourceDto } from '../../resources/dto/space.dto';
|
12
12
|
export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
13
13
|
productId: number;
|
14
14
|
price: number;
|
@@ -42,7 +42,6 @@ export declare class BaseSlotDto extends DateTimeAndResourcesDto {
|
|
42
42
|
slotDurationType: DurationTypeEnum;
|
43
43
|
colorCodeId?: number;
|
44
44
|
participantsNumber?: number;
|
45
|
-
conflictsIds?: number[];
|
46
45
|
occurrence?: number;
|
47
46
|
productMetadata?: SlotProductMetadataDto;
|
48
47
|
maintenance?: MaintenanceDto[];
|
@@ -67,6 +66,7 @@ export declare class SlotDto extends BaseSlotDto {
|
|
67
66
|
isPrivate: boolean;
|
68
67
|
addonsIds?: number[];
|
69
68
|
parentSlotId?: number;
|
69
|
+
facilityId?: number;
|
70
70
|
}
|
71
71
|
export declare class TimeSlotDto implements ITimeSlot {
|
72
72
|
id?: number;
|
@@ -91,19 +91,25 @@ export declare class UpdateSlotsColorsDto {
|
|
91
91
|
slotId: number;
|
92
92
|
colorCodeId: number;
|
93
93
|
}
|
94
|
-
export declare class
|
94
|
+
export declare class UpdateDraftSlotDto extends BaseSlotDto {
|
95
95
|
id: string;
|
96
|
+
facilityId: number;
|
96
97
|
reservationId?: string;
|
97
98
|
segmentId?: string;
|
98
99
|
seriesId?: string;
|
100
|
+
parentSlotId?: string;
|
101
|
+
participantsIds?: number[];
|
102
|
+
productsIds?: number[];
|
103
|
+
}
|
104
|
+
export declare class DraftSlotDto extends UpdateDraftSlotDto implements IDraftSlot {
|
99
105
|
maintenanceSlots?: DraftSlotDto[];
|
100
106
|
addons?: DraftAddonDto[];
|
101
|
-
participantsIds?: number[];
|
102
107
|
space?: SpaceResourceDto;
|
103
108
|
instructors?: InstructorResourceDto[];
|
104
|
-
totalSlotsInSeries?: number;
|
105
|
-
parentSlotId?: string;
|
106
109
|
participants?: SimpleCustomerDto[];
|
110
|
+
product?: Product;
|
111
|
+
conflictsIds?: number[];
|
112
|
+
totalSlotsInSeries?: number;
|
107
113
|
}
|
108
114
|
export declare class TimeSlotConflictsDto {
|
109
115
|
timeSlot: TimeSlotDto;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.DraftSlotDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.DateTimeAndResourcesDto = exports.SlotProductMetadataDto = void 0;
|
3
|
+
exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.DraftSlotDto = exports.UpdateDraftSlotDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.DateTimeAndResourcesDto = exports.SlotProductMetadataDto = void 0;
|
4
4
|
class SlotProductMetadataDto {
|
5
5
|
}
|
6
6
|
exports.SlotProductMetadataDto = SlotProductMetadataDto;
|
@@ -25,7 +25,10 @@ exports.SlotsIdsDto = SlotsIdsDto;
|
|
25
25
|
class UpdateSlotsColorsDto {
|
26
26
|
}
|
27
27
|
exports.UpdateSlotsColorsDto = UpdateSlotsColorsDto;
|
28
|
-
class
|
28
|
+
class UpdateDraftSlotDto extends BaseSlotDto {
|
29
|
+
}
|
30
|
+
exports.UpdateDraftSlotDto = UpdateDraftSlotDto;
|
31
|
+
class DraftSlotDto extends UpdateDraftSlotDto {
|
29
32
|
}
|
30
33
|
exports.DraftSlotDto = DraftSlotDto;
|
31
34
|
class TimeSlotConflictsDto {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAsBA,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAa,WAAY,SAAQ,uBAAuB;CA8CvD;AA9CD,kCA8CC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAiCvC;AAjCD,0BAiCC;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,kBAAmB,SAAQ,WAAW;CAgBlD;AAhBD,gDAgBC;AAED,MAAa,YAAa,SAAQ,kBAAkB;CAgBnD;AAhBD,oCAgBC;AAED,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AAED,MAAa,gBAAgB;CAc5B;AAdD,4CAcC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Product } from '../../../product-pricing/entities/Product';
|
2
2
|
import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
|
3
3
|
import { DraftAddonDto } from '../../dto/addon.dto';
|
4
|
+
import { MaintenanceDto } from '../../dto/maintenance.dto';
|
4
5
|
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
5
6
|
export interface IReservationCreatorData {
|
6
7
|
type: ResourceNameTypeEnum;
|
@@ -56,6 +57,7 @@ export interface ISlotProductMetadata {
|
|
56
57
|
price: number;
|
57
58
|
}
|
58
59
|
export interface ICreateSlotsOptions {
|
60
|
+
id?: string;
|
59
61
|
userCreatorId?: number;
|
60
62
|
publicNotes?: string;
|
61
63
|
privateNotes?: string;
|
@@ -64,6 +66,11 @@ export interface ICreateSlotsOptions {
|
|
64
66
|
colorCodeId?: number;
|
65
67
|
overrideProduct?: Product;
|
66
68
|
spaceProducts?: Product[];
|
69
|
+
title?: string;
|
70
|
+
instructorsIds?: number[];
|
71
|
+
participantsNumber?: number;
|
72
|
+
participantsIds?: number[];
|
73
|
+
maintenance?: MaintenanceDto[];
|
67
74
|
}
|
68
75
|
export interface IBaseSlot {
|
69
76
|
organizationId?: number;
|
@@ -99,6 +106,7 @@ export interface IBaseSlot {
|
|
99
106
|
}
|
100
107
|
export interface IDraftSlot extends IBaseSlot {
|
101
108
|
id: string;
|
109
|
+
facilityId: number;
|
102
110
|
reservationId?: string;
|
103
111
|
segmentId?: string;
|
104
112
|
seriesId?: string;
|