@bondsports/types 2.2.82 → 2.2.84

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,10 +5,10 @@ import { PaymentMethodDto, RefundAmountDto } from '../../payment/dto/refund.dto'
5
5
  import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
6
6
  import { Product } from '../../product-pricing/entities/Product';
7
7
  import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purchase.dto';
8
- import { NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
8
+ import { AddonParentTypeEnum, NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
9
9
  import { Reservation } from '../entities/reservation.entity';
10
10
  import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
11
- import { IGetDraftReservationSlotsFilter, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
11
+ import { IGetDraftReservationAddonsQuery, IGetDraftReservationSlotsFilter, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
12
12
  import { AddonDto, DraftAddonDto } from './addon.dto';
13
13
  import { DraftSegmentDto, SegmentDto } from './segment.dto';
14
14
  import { SeriesDto } from './series.dto';
@@ -241,4 +241,8 @@ export declare class DraftSlotsFilterResultDto {
241
241
  spaces: SimpleResourceDto[];
242
242
  instructors: SimpleResourceDto[];
243
243
  }
244
+ export declare class GetDraftReservationAddonsQueryDto extends PaginationQuery implements IGetDraftReservationAddonsQuery {
245
+ addonType: AddonParentTypeEnum;
246
+ segmentsIds?: string[];
247
+ }
244
248
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByDraftReservationId = exports.GetDraftReservationSlotsFilters = 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.ReservationDto = exports.ProductPricesDto = void 0;
3
+ exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByDraftReservationId = exports.GetDraftReservationSlotsFilters = 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.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");
@@ -136,4 +136,7 @@ exports.SimpleDraftSegmentDto = SimpleDraftSegmentDto;
136
136
  class DraftSlotsFilterResultDto {
137
137
  }
138
138
  exports.DraftSlotsFilterResultDto = DraftSlotsFilterResultDto;
139
+ class GetDraftReservationAddonsQueryDto extends general_dto_1.PaginationQuery {
140
+ }
141
+ exports.GetDraftReservationAddonsQueryDto = GetDraftReservationAddonsQueryDto;
139
142
  //# 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":";;;AACA,uDAAwD;AACxD,+DAAsG;AACtG,8EAA8E;AAI9E,kEAAwF;AA4BxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAM,kBAAkB;CAiCvB;AAED,MAAa,cAAe,SAAQ,kBAAkB;CAcrD;AAdD,wCAcC;AAED,MAAa,mBAAoB,SAAQ,kBAAkB;CAQ1D;AARD,kDAQC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AACD,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,M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BAAgC,SAAQ,6BAAe;CAkBnE;AAlBD,0EAkBC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,yBAAyB;CAYrC;AAZD,8DAYC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAIrE;AAJD,8EAIC"}
@@ -6,6 +6,7 @@ import { Addon } from './addon.entity';
6
6
  import { Segment } from './segment.entity';
7
7
  import { Slot } from './slot.entity';
8
8
  export declare class Reservation extends OrganizationConnectionBaseEntity {
9
+ deletedAt?: Date;
9
10
  name?: string;
10
11
  description?: string;
11
12
  approvalStatus?: ReservationStatusEnum;
@@ -19,19 +20,18 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
19
20
  creatorType?: ResourceNameTypeEnum;
20
21
  userCreatorId?: number;
21
22
  importedId?: string;
22
- deletedAt?: Date;
23
23
  publicNotes?: string;
24
24
  privateNotes?: string;
25
25
  forms?: number[] | null;
26
26
  answerTitleIds?: number[] | null;
27
+ segments?: Segment[];
28
+ addons: Addon[];
29
+ slots: Slot[];
27
30
  overrideProductsPrice: {
28
31
  productId: number;
29
32
  price: number;
30
33
  }[];
31
34
  targetGlobalPrice?: number;
32
- segments?: Segment[];
33
- addons: Addon[];
34
- slots: Slot[];
35
35
  invoiceId?: string;
36
36
  startTime?: string;
37
37
  startDate?: Date;
@@ -5,14 +5,14 @@ import { Slot } from './slot.entity';
5
5
  export declare class Segment extends OrganizationConnectionBaseEntity {
6
6
  deletedAt?: Date;
7
7
  reservationId: number;
8
+ reservation?: Reservation;
8
9
  title: string;
9
- isPrivate: boolean;
10
- resourceIds?: number[];
11
10
  sportId: number;
12
- reservation?: Reservation;
13
11
  series?: Series[];
12
+ slots?: Slot[];
13
+ resourceIds?: number[];
14
14
  addonIds?: number[];
15
+ isPrivate: boolean;
15
16
  publicNotesForSlots?: string;
16
17
  privateNotesForSlots?: string;
17
- slots?: Slot[];
18
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"segment.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/segment.entity.ts"],"names":[],"mappings":";;;AACA,oGAAiG;AAKjG,MAAa,OAAQ,SAAQ,mEAAgC;CAwB5D;AAxBD,0BAwBC"}
1
+ {"version":3,"file":"segment.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/segment.entity.ts"],"names":[],"mappings":";;;AACA,oGAAiG;AAKjG,MAAa,OAAQ,SAAQ,mEAAgC;CAqB5D;AArBD,0BAqBC"}
@@ -15,20 +15,31 @@ import { Segment } from './segment.entity';
15
15
  import { Series } from './series.entity';
16
16
  export declare class Slot extends OrganizationConnectionBaseEntity {
17
17
  isReverted: boolean;
18
+ deletedAt?: Date;
18
19
  reservationId: number;
19
20
  reservation: Reservation;
20
- title?: string;
21
+ segmentId: number;
22
+ segment: Segment;
23
+ seriesId?: number;
24
+ series?: Series;
25
+ eventId: number;
26
+ event: Event;
27
+ spaceId?: number;
28
+ resource?: Resource;
29
+ parentSlotId?: number;
30
+ parent?: Slot;
31
+ children?: Slot[];
32
+ invoiceId?: number;
33
+ invoice?: Invoice;
21
34
  creatorId?: number;
22
35
  creatorType?: ResourceNameTypeEnum;
23
36
  userCreatorId?: number;
37
+ title?: string;
24
38
  startDate: Date;
25
39
  endDate: Date;
26
40
  startTime: string;
27
41
  endTime: string;
28
42
  timezone?: string;
29
- spaceId?: number;
30
- resource?: Resource;
31
- deletedAt?: Date;
32
43
  publicNotes?: string;
33
44
  privateNotes?: string;
34
45
  slotType: SlotTypeEnum;
@@ -36,21 +47,10 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
36
47
  productUser?: ProductsUsers;
37
48
  product?: Product;
38
49
  addons: Addon[];
39
- segmentId: number;
40
- segment: Segment;
41
- eventId: number;
42
- event: Event;
43
50
  sportIds: number[];
44
- parentSlotId?: number;
45
- parent?: Slot;
46
- children?: Slot[];
47
51
  maintenanceDurationdurationType: DurationUnitTypesEnum;
48
52
  maintenanceTiming: MaintenanceTimingEnum;
49
53
  durationValue: number;
50
- seriesId?: number;
51
- series?: Series;
52
- invoiceId?: number;
53
- invoice?: Invoice;
54
54
  paymentStatus: ReservationPaymentStatusEnum;
55
55
  approvalStatus?: ReservationStatusEnum;
56
56
  displayName?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"slot.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot.entity.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAsBjG,MAAa,IAAK,SAAQ,mEAAgC;CAyHzD;AAzHD,oBAyHC"}
1
+ {"version":3,"file":"slot.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot.entity.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAsBjG,MAAa,IAAK,SAAQ,mEAAgC;CAkHzD;AAlHD,oBAkHC"}
@@ -10,7 +10,7 @@ import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
10
10
  import { RefundResult } from '../../../payment/types/interfaces/refund.interfaces';
11
11
  import { Product } from '../../../product-pricing/entities/Product';
12
12
  import { Answer } from '../../../questionnaires/entities/Answer';
13
- import { FinancialStepEnum, PlatformsEnum } from '../../../services/enums.service';
13
+ import { AddonParentTypeEnum, FinancialStepEnum, PlatformsEnum } from '../../../services/enums.service';
14
14
  import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
15
15
  import { AddonDto } from '../../dto/addon.dto';
16
16
  import { ReservationDto } from '../../dto/reservation.dto';
@@ -297,4 +297,8 @@ export interface IGetDraftReservationSlotsFilter {
297
297
  startDate?: Date;
298
298
  endDate?: Date;
299
299
  }
300
+ export interface IGetDraftReservationAddonsQuery {
301
+ addonType: AddonParentTypeEnum;
302
+ segmentsIds?: string[];
303
+ }
300
304
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAiEA,MAAa,YAAY;CAGxB;AAHD,oCAGC"}
1
+ {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAkEA,MAAa,YAAY;CAGxB;AAHD,oCAGC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.82",
3
+ "version": "2.2.84",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {