@bondsports/types 2.0.77 → 2.0.79

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.
@@ -1,13 +1,13 @@
1
1
  import { PaginationQuery } from '../../dto/general.dto';
2
- import { Customer } from '../../entity/Customer';
3
2
  import { CustomerTypeEnum } from '../../services/enums.service';
4
3
  import { IPaginationData, IPaginationMeta } from '../../services/interfaces.service';
4
+ import { CustomerResponseDto } from './customerResponseDto';
5
5
  export declare class GetCustomersListDto extends PaginationQuery {
6
6
  nameSearch?: string;
7
7
  customerType?: CustomerTypeEnum;
8
8
  customerIds?: number[];
9
9
  }
10
- export declare class GetCustomersListResponseDto implements IPaginationData<Customer> {
10
+ export declare class GetCustomersListResponseDto implements IPaginationData<CustomerResponseDto> {
11
11
  meta: IPaginationMeta;
12
- data: Customer[];
12
+ data: CustomerResponseDto[];
13
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getCustomersListDto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/getCustomersListDto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAKxD,MAAa,mBAAoB,SAAQ,6BAAe;CAMvD;AAND,kDAMC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC"}
1
+ {"version":3,"file":"getCustomersListDto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/getCustomersListDto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAMxD,MAAa,mBAAoB,SAAQ,6BAAe;CAMvD;AAND,kDAMC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC"}
@@ -1,9 +1,9 @@
1
1
  import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
2
2
  import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum } from '../../services/enums.service';
3
3
  import { LineItemDto } from './lineItem.dto';
4
- import { AddSlotToSegmenResultDto } from './reservation.dto';
5
4
  import { SegmentDto } from './segment.dto';
6
5
  import { SlotDto } from './slot.dto';
6
+ import { SeriesDto } from './series.dto';
7
7
  export declare class InvoiceDto {
8
8
  invoiceId?: string;
9
9
  organizationId: number;
@@ -21,6 +21,12 @@ export declare class BaseInvoiceDto {
21
21
  platform: PlatformsEnum;
22
22
  shiftId?: number;
23
23
  }
24
+ export declare class AddSlotToSegmenResultDto {
25
+ series: SeriesDto;
26
+ slotTotalPrice: number;
27
+ addonsTotalPrice: number;
28
+ debug?: any;
29
+ }
24
30
  export declare class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
25
31
  reservationTotalPrice: number;
26
32
  }
@@ -1,14 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AddSegmentsDto = exports.AddSlotsDto = exports.InvoiceReservationItemsDto = exports.UpdateInvoiceDto = exports.UpdateInvoiceOptionsDto = exports.SaveSlotToSegmenResultDto = exports.BaseInvoiceDto = exports.InvoiceDto = void 0;
4
- const reservation_dto_1 = require("./reservation.dto");
3
+ exports.AddSegmentsDto = exports.AddSlotsDto = exports.InvoiceReservationItemsDto = exports.UpdateInvoiceDto = exports.UpdateInvoiceOptionsDto = exports.SaveSlotToSegmenResultDto = exports.AddSlotToSegmenResultDto = exports.BaseInvoiceDto = exports.InvoiceDto = void 0;
5
4
  class InvoiceDto {
6
5
  }
7
6
  exports.InvoiceDto = InvoiceDto;
8
7
  class BaseInvoiceDto {
9
8
  }
10
9
  exports.BaseInvoiceDto = BaseInvoiceDto;
11
- class SaveSlotToSegmenResultDto extends reservation_dto_1.AddSlotToSegmenResultDto {
10
+ class AddSlotToSegmenResultDto {
11
+ }
12
+ exports.AddSlotToSegmenResultDto = AddSlotToSegmenResultDto;
13
+ class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
12
14
  }
13
15
  exports.SaveSlotToSegmenResultDto = SaveSlotToSegmenResultDto;
14
16
  class UpdateInvoiceOptionsDto {
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/invoice.dto.ts"],"names":[],"mappings":";;;AAGA,uDAA6D;AAI7D,MAAa,UAAU;CAsBtB;AAtBD,gCAsBC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,yBAA0B,SAAQ,0CAAwB;CAEtE;AAFD,8DAEC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,gBAAiB,SAAQ,uBAAuB;CAE5D;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,uBAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,WAAY,SAAQ,gBAAgB;CAEhD;AAFD,kCAEC;AAED,MAAa,cAAe,SAAQ,gBAAgB;CAEnD;AAFD,wCAEC"}
1
+ {"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/invoice.dto.ts"],"names":[],"mappings":";;;AAOA,MAAa,UAAU;CAuBtB;AAvBD,gCAuBC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AACD,MAAa,yBAA0B,SAAQ,wBAAwB;CAEtE;AAFD,8DAEC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,gBAAiB,SAAQ,uBAAuB;CAE5D;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,uBAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,WAAY,SAAQ,gBAAgB;CAEhD;AAFD,kCAEC;AAED,MAAa,cAAe,SAAQ,gBAAgB;CAEnD;AAFD,wCAEC"}
@@ -7,9 +7,17 @@ import { NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum, ReservationPaymentSt
7
7
  import { Reservation } from '../entities/Reservations';
8
8
  import { AddonDto } from './addon.dto';
9
9
  import { SegmentDto } from './segment.dto';
10
- import { SeriesDto } from './series.dto';
11
10
  import { SlotDto, UpdateSlotsColorsDto } from './slot.dto';
12
11
  import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
12
+ import { FindByFacilityIdAndOrganizationIdDto } from '../../dto/events.dto';
13
+ import { InvoiceDto } from './invoice.dto';
14
+ export declare class ProductPricesDto {
15
+ productId: number;
16
+ product?: Product;
17
+ price?: number;
18
+ quantity?: number;
19
+ totalPrice?: number;
20
+ }
13
21
  export declare class ReservationDto {
14
22
  id?: number;
15
23
  organizationId?: number;
@@ -35,6 +43,11 @@ export declare class ReservationDto {
35
43
  colorCodeId?: number;
36
44
  purchasingUserId?: number;
37
45
  }
46
+ export declare class ReservationInvoiceDto {
47
+ reservation: ReservationDto;
48
+ invoice: InvoiceDto;
49
+ debug: any;
50
+ }
38
51
  export declare class SaveReservationDto {
39
52
  reservation: ReservationDto;
40
53
  slotType?: SlotTypeEnum;
@@ -52,13 +65,6 @@ export declare class CategoryPricesDto {
52
65
  slot: number;
53
66
  addon: number;
54
67
  }
55
- export declare class ProductPricesDto {
56
- productId: number;
57
- product?: Product;
58
- price?: number;
59
- quantity?: number;
60
- totalPrice?: number;
61
- }
62
68
  declare class UpdatePriceDto {
63
69
  type: UpdatePricesTypeEnum;
64
70
  globalPrice?: number;
@@ -139,12 +145,6 @@ export declare class AddSlotToSegmentDto {
139
145
  slot: SlotDto;
140
146
  addonIds?: number[];
141
147
  }
142
- export declare class AddSlotToSegmenResultDto {
143
- series: SeriesDto;
144
- slotTotalPrice: number;
145
- addonsTotalPrice: number;
146
- debug?: any;
147
- }
148
148
  export declare class UpdateSlotsDto {
149
149
  slots: SlotDto[];
150
150
  }
@@ -168,7 +168,7 @@ export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
168
168
  export declare class ReservationNotifyDto {
169
169
  notifyMethods?: NotifyMethodEnum[];
170
170
  }
171
- export declare class UpdateReservationInvoiceDto {
171
+ export declare class UpdateReservationInvoiceDto extends FindByFacilityIdAndOrganizationIdDto {
172
172
  updateAddons?: boolean;
173
173
  updateMaintenance?: boolean;
174
174
  }
@@ -1,13 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmenResultDto = 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.ProductPricesDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.ReservationDto = void 0;
3
+ 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.ReservationDto = exports.ProductPricesDto = void 0;
4
4
  const general_dto_1 = require("../../dto/general.dto");
5
5
  const organization_dto_1 = require("../../organization/dto/organization.dto");
6
6
  const purchase_dto_1 = require("../../purchase/dto/purchase.dto");
7
+ const events_dto_1 = require("../../dto/events.dto");
7
8
  const MAX_SLOTS_REQUEST_LIMIT = 5000;
9
+ class ProductPricesDto {
10
+ }
11
+ exports.ProductPricesDto = ProductPricesDto;
8
12
  class ReservationDto {
9
13
  }
10
14
  exports.ReservationDto = ReservationDto;
15
+ class ReservationInvoiceDto {
16
+ }
17
+ exports.ReservationInvoiceDto = ReservationInvoiceDto;
11
18
  class SaveReservationDto {
12
19
  }
13
20
  exports.SaveReservationDto = SaveReservationDto;
@@ -17,9 +24,6 @@ exports.SingleReservationIncludesDto = SingleReservationIncludesDto;
17
24
  class CategoryPricesDto {
18
25
  }
19
26
  exports.CategoryPricesDto = CategoryPricesDto;
20
- class ProductPricesDto {
21
- }
22
- exports.ProductPricesDto = ProductPricesDto;
23
27
  class UpdatePriceDto {
24
28
  }
25
29
  class UpdateReservationPriceDto extends UpdatePriceDto {
@@ -70,9 +74,6 @@ exports.FindBySlotDto = FindBySlotDto;
70
74
  class AddSlotToSegmentDto {
71
75
  }
72
76
  exports.AddSlotToSegmentDto = AddSlotToSegmentDto;
73
- class AddSlotToSegmenResultDto {
74
- }
75
- exports.AddSlotToSegmenResultDto = AddSlotToSegmenResultDto;
76
77
  class UpdateSlotsDto {
77
78
  }
78
79
  exports.UpdateSlotsDto = UpdateSlotsDto;
@@ -91,7 +92,7 @@ exports.ValidateEditSlotsDto = ValidateEditSlotsDto;
91
92
  class ReservationNotifyDto {
92
93
  }
93
94
  exports.ReservationNotifyDto = ReservationNotifyDto;
94
- class UpdateReservationInvoiceDto {
95
+ class UpdateReservationInvoiceDto extends events_dto_1.FindByFacilityIdAndOrganizationIdDto {
95
96
  }
96
97
  exports.UpdateReservationInvoiceDto = UpdateReservationInvoiceDto;
97
98
  class UpdateReservationSlotsColorsDto {
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto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AND,wDAMC;AAED,MAAa,YAAa,SAAQ,cAAc;CAE/C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AACD,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,0BAA2B,SAAQ,gCAAiB;CAIhE;AAJD,gEAIC"}
1
+ {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAExD,8EAA8E;AAE9E,kEAAwF;AAuBxF,qDAA4E;AAG5E,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAa,cAAc;CAqD1B;AArDD,wCAqDC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AACD,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAYvB;AAZD,kCAYC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0CAA2C,SAAQ,6BAAe;CAY9E;AAZD,gGAYC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAUtE;AAVD,gFAUC;AAED,MAAa,+BAA+B;IAA5C;QAKC,UAAK,GAAW,uBAAuB,CAAC;IAqBzC,CAAC;CAAA;AA1BD,0EA0BC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,iBAAkB,SAAQ,oBAAoB;CAE1D;AAFD,8CAEC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAEtD;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,oBAAoB;CAEnE;AAFD,gEAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,YAAa,SAAQ,cAAc;CAE/C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AACD,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,2BAA4B,SAAS,iDAAoC;CAIrF;AAJD,kEAIC;AAED,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,0BAA2B,SAAQ,gCAAiB;CAIhE;AAJD,gEAIC"}
@@ -22,7 +22,7 @@ import { Series } from '../entities/Series';
22
22
  import { Slot } from '../entities/Slots';
23
23
  export declare const RESOURCE_TOTAL_FIELD = "totalPrice";
24
24
  export declare const DEFAULT_ADDON_QUANTITY = 1;
25
- export declare const PUBLIC_NOTES_LIMIT = 120;
25
+ export declare const PUBLIC_NOTES_LIMIT = 500;
26
26
  export declare const PRIVATE_NOTES_LIMIT = 500;
27
27
  export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
28
28
  export type TResource = Reservation | Segment | Series | Slot | Addon;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SlotDateDto = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.DEFAULT_ADDON_QUANTITY = exports.RESOURCE_TOTAL_FIELD = void 0;
4
4
  exports.RESOURCE_TOTAL_FIELD = 'totalPrice';
5
5
  exports.DEFAULT_ADDON_QUANTITY = 1;
6
- exports.PUBLIC_NOTES_LIMIT = 120;
6
+ exports.PUBLIC_NOTES_LIMIT = 500;
7
7
  exports.PRIVATE_NOTES_LIMIT = 500;
8
8
  class SlotDateDto {
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.0.77",
3
+ "version": "2.0.79",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {