@bondsports/types 2.2.104 → 2.2.105
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/slot.dto.d.ts +8 -8
- package/dist/types/reservations/dto/slot.dto.js +4 -4
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +1 -2
- package/package.json +1 -1
@@ -1,12 +1,16 @@
|
|
1
1
|
import { Product } from '../../product-pricing/entities/Product';
|
2
|
+
import { SimpleResourceDto } from '../../resources/dto/resource.dto';
|
2
3
|
import { ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
|
4
|
+
import { Slot } from '../entities/slot.entity';
|
3
5
|
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
4
6
|
import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
|
5
|
-
import { IDraftSlot,
|
7
|
+
import { IDraftSlot, ISlotProductMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
|
6
8
|
import { AddonDto, DraftAddonDto } from './addon.dto';
|
7
9
|
import { MaintenanceDto } from './maintenance.dto';
|
8
|
-
|
9
|
-
|
10
|
+
export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
11
|
+
productId: number;
|
12
|
+
price: number;
|
13
|
+
}
|
10
14
|
export declare class DateTimeAndResourcesDto {
|
11
15
|
startDate: string;
|
12
16
|
startTime?: string;
|
@@ -38,6 +42,7 @@ export declare class BaseSlotDto extends DateTimeAndResourcesDto {
|
|
38
42
|
participantsNumber?: number;
|
39
43
|
conflictsIds?: number[];
|
40
44
|
occurrence?: number;
|
45
|
+
productMetadata?: SlotProductMetadataDto;
|
41
46
|
}
|
42
47
|
export declare class SlotDto extends BaseSlotDto {
|
43
48
|
id?: number;
|
@@ -62,11 +67,6 @@ export declare class SlotDto extends BaseSlotDto {
|
|
62
67
|
addonsIds?: number[];
|
63
68
|
parentSlotId?: number;
|
64
69
|
}
|
65
|
-
export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
66
|
-
productId: number;
|
67
|
-
priceId?: number;
|
68
|
-
price: number;
|
69
|
-
}
|
70
70
|
export declare class TimeSlotDto implements ITimeSlot {
|
71
71
|
id?: number;
|
72
72
|
/**
|
@@ -1,6 +1,9 @@
|
|
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.
|
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;
|
4
|
+
class SlotProductMetadataDto {
|
5
|
+
}
|
6
|
+
exports.SlotProductMetadataDto = SlotProductMetadataDto;
|
4
7
|
class DateTimeAndResourcesDto {
|
5
8
|
}
|
6
9
|
exports.DateTimeAndResourcesDto = DateTimeAndResourcesDto;
|
@@ -10,9 +13,6 @@ exports.BaseSlotDto = BaseSlotDto;
|
|
10
13
|
class SlotDto extends BaseSlotDto {
|
11
14
|
}
|
12
15
|
exports.SlotDto = SlotDto;
|
13
|
-
class SlotProductMetadataDto {
|
14
|
-
}
|
15
|
-
exports.SlotProductMetadataDto = SlotProductMetadataDto;
|
16
16
|
class TimeSlotDto {
|
17
17
|
}
|
18
18
|
exports.TimeSlotDto = TimeSlotDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAoBA,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAa,WAAY,SAAQ,uBAAuB;
|
1
|
+
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAoBA,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAa,WAAY,SAAQ,uBAAuB;CA8CvD;AA9CD,kCA8CC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAmCvC;AAnCD,0BAmCC;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,YAAa,SAAQ,WAAW;CAsB5C;AAtBD,oCAsBC;AAED,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AAED,MAAa,gBAAgB;CAc5B;AAdD,4CAcC"}
|
@@ -53,7 +53,6 @@ export interface ISpaceWithSlots {
|
|
53
53
|
}
|
54
54
|
export interface ISlotProductMetadata {
|
55
55
|
productId: number;
|
56
|
-
priceId?: number;
|
57
56
|
price: number;
|
58
57
|
}
|
59
58
|
export interface ICreateSlotsOptions {
|
@@ -104,7 +103,7 @@ export interface IDraftSlot {
|
|
104
103
|
maintenanceSlots?: IDraftSlot[];
|
105
104
|
addons?: DraftAddonDto[];
|
106
105
|
product?: Product;
|
107
|
-
|
106
|
+
productMetadata?: ISlotProductMetadata;
|
108
107
|
}
|
109
108
|
export interface ITimeSlot {
|
110
109
|
id?: string | number;
|