@bondsports/types 2.2.108 → 2.2.110

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,7 +61,6 @@ export declare class SlotDto extends BaseSlotDto {
61
61
  [addonProductId: number]: IOverridePriceMeta;
62
62
  };
63
63
  addonProducts?: Product[];
64
- relevantProducts?: Product[];
65
64
  maintenance?: MaintenanceDto[];
66
65
  isPrivate: boolean;
67
66
  addonsIds?: number[];
@@ -1 +1 @@
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"}
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;CAkCvC;AAlCD,0BAkCC;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"}
@@ -35,7 +35,7 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
35
35
  creatorId?: number;
36
36
  creatorType?: ResourceNameTypeEnum;
37
37
  userCreatorId?: number;
38
- title?: string;
38
+ title: string;
39
39
  startDate: Date;
40
40
  endDate: Date;
41
41
  startTime: string;
@@ -65,19 +65,14 @@ export interface ICreateSlotsOptions {
65
65
  overrideProduct?: Product;
66
66
  spaceProducts?: Product[];
67
67
  }
68
- export interface IDraftSlot {
69
- id: string;
68
+ export interface IBaseSlot {
70
69
  organizationId?: number;
71
- reservationId?: string;
72
- segmentId?: string;
73
- seriesId?: string;
74
70
  startDate: string;
75
71
  startTime?: string;
76
72
  endDate?: string;
77
73
  endTime?: string;
78
74
  spaceId: number;
79
75
  instructorsIds?: number[];
80
- eventId?: number;
81
76
  title: string;
82
77
  creatorId?: number;
83
78
  creatorType?: ResourceNameTypeEnum;
@@ -87,7 +82,6 @@ export interface IDraftSlot {
87
82
  privateNotes?: string;
88
83
  slotType: SlotTypeEnum;
89
84
  sportIds: SportsEnum[];
90
- parentSlotId?: string;
91
85
  maintenanceDurationdurationType?: DurationUnitTypesEnum;
92
86
  maintenanceTiming?: MaintenanceTimingEnum;
93
87
  durationValue?: number;
@@ -100,11 +94,18 @@ export interface IDraftSlot {
100
94
  participantsIds?: number[];
101
95
  colorCodeId?: number;
102
96
  conflictsIds?: number[];
103
- maintenanceSlots?: IDraftSlot[];
104
- addons?: DraftAddonDto[];
105
97
  product?: Product;
106
98
  productMetadata?: ISlotProductMetadata;
107
99
  }
100
+ export interface IDraftSlot extends IBaseSlot {
101
+ id: string;
102
+ reservationId?: string;
103
+ segmentId?: string;
104
+ seriesId?: string;
105
+ parentSlotId?: string;
106
+ maintenanceSlots?: IDraftSlot[];
107
+ addons?: DraftAddonDto[];
108
+ }
108
109
  export interface ITimeSlot {
109
110
  id?: string | number;
110
111
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.108",
3
+ "version": "2.2.110",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {