@bondsports/types 2.2.280-team-a → 2.2.280

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.
@@ -107,6 +107,8 @@ export declare class UpdateEmployeeDto {
107
107
  export declare class GetEmployeesByFilterOptions extends PaginationQuery {
108
108
  statuses?: EmployeeStatus[];
109
109
  rolesIds?: number[];
110
+ excludedRolesIds?: number[];
111
+ includeRoles?: boolean;
110
112
  search?: string;
111
113
  orderBy?: UserOrderBy | OrganizationUserOrderBy;
112
114
  order?: OrderByEnum;
@@ -28,6 +28,10 @@ class UpdateEmployeeDto {
28
28
  }
29
29
  exports.UpdateEmployeeDto = UpdateEmployeeDto;
30
30
  class GetEmployeesByFilterOptions extends general_dto_1.PaginationQuery {
31
+ constructor() {
32
+ super(...arguments);
33
+ this.includeRoles = true;
34
+ }
31
35
  }
32
36
  exports.GetEmployeesByFilterOptions = GetEmployeesByFilterOptions;
33
37
  //# sourceMappingURL=employee.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAIA,uDAAwD;AAKxD,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAW;CAkCvB;AAlCD,kCAkCC;AAED,MAAa,iBAAkB,SAAQ,WAAW;CAEjD;AAFD,8CAEC;AAED,MAAa,mBAAoB,SAAQ,iBAAiB;CAEzD;AAFD,kDAEC;AAED,MAAa,aAAa;CAQzB;AARD,sCAQC;AAED,MAAa,iBAAiB;CAoD7B;AApDD,8CAoDC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,uCAAuC;AACvC,MAAa,iBAAiB;CAwD7B;AAxDD,8CAwDC;AAED,MAAa,2BAA4B,SAAQ,6BAAe;CAY/D;AAZD,kEAYC"}
1
+ {"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAIA,uDAAwD;AAKxD,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAW;CAkCvB;AAlCD,kCAkCC;AAED,MAAa,iBAAkB,SAAQ,WAAW;CAEjD;AAFD,8CAEC;AAED,MAAa,mBAAoB,SAAQ,iBAAiB;CAEzD;AAFD,kDAEC;AAED,MAAa,aAAa;CAQzB;AARD,sCAQC;AAED,MAAa,iBAAiB;CAoD7B;AApDD,8CAoDC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,uCAAuC;AACvC,MAAa,iBAAiB;CAwD7B;AAxDD,8CAwDC;AAED,MAAa,2BAA4B,SAAQ,6BAAe;IAAhE;;QAOC,iBAAY,GAAa,IAAI,CAAC;IAS/B,CAAC;CAAA;AAhBD,kEAgBC"}
@@ -42,7 +42,7 @@ export declare class ScheduledPaymentDto {
42
42
  originalPlannedDate?: Date;
43
43
  }
44
44
  export declare class FutureInstallmentsIdsDto {
45
- paymentsIds: number[];
45
+ paymentsIds?: number[];
46
46
  }
47
47
  export declare class CancelFutureInstallmentsDto extends FutureInstallmentsIdsDto {
48
48
  invoiceId: number;
@@ -14,7 +14,8 @@ export declare enum PaymentFilterByEnum {
14
14
  PAYMENT_STATUS = "paymentStatus",
15
15
  STATUS = "status",
16
16
  ID = "id",
17
- CREATED_AT = "createdAt"
17
+ CREATED_AT = "createdAt",
18
+ PRICE = "price"
18
19
  }
19
20
  export declare enum ReasonTypeEnum {
20
21
  REFUND = "refund",
@@ -20,6 +20,7 @@ var PaymentFilterByEnum;
20
20
  PaymentFilterByEnum["STATUS"] = "status";
21
21
  PaymentFilterByEnum["ID"] = "id";
22
22
  PaymentFilterByEnum["CREATED_AT"] = "createdAt";
23
+ PaymentFilterByEnum["PRICE"] = "price";
23
24
  })(PaymentFilterByEnum = exports.PaymentFilterByEnum || (exports.PaymentFilterByEnum = {}));
24
25
  var ReasonTypeEnum;
25
26
  (function (ReasonTypeEnum) {
@@ -1 +1 @@
1
- {"version":3,"file":"payment.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/payment.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC5B,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;IACb,0CAAqB,CAAA;IACrB,wDAAmC,CAAA;IACnC,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,4DAAuC,CAAA;AACxC,CAAC,EAXW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAW5B;AAED,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC9B,uDAAgC,CAAA;IAChC,wCAAiB,CAAA;IACjB,gCAAS,CAAA;IACT,+CAAwB,CAAA;AACzB,CAAC,EALW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAK9B;AAED,IAAY,cAKX;AALD,WAAY,cAAc;IACzB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,2CAAyB,CAAA;IACzB,uDAAqC,CAAA;AACtC,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB;AAED,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC9B,iFAAkB,CAAA;IAClB,qFAAoB,CAAA;IACpB,qEAAY,CAAA;IACZ,qEAAY,CAAA;IACZ,uEAAa,CAAA;IACb,+DAAS,CAAA;IACT,6EAAgB,CAAA;IAChB,mEAAW,CAAA;AACZ,CAAC,EATW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAS9B;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,+DAAU,CAAA;IACV,2DAAQ,CAAA;AACT,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,IAAY,qBAcX;AAdD,WAAY,qBAAqB;IAChC,sCAAa,CAAA;IACb,gDAAuB,CAAA;IACvB,sCA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B,CAAC,MAAM,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;AAErH,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,2CAAqB,CAAA;IACrB,8CAAwB,CAAA;AACzB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
1
+ {"version":3,"file":"payment.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/payment.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC5B,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;IACb,0CAAqB,CAAA;IACrB,wDAAmC,CAAA;IACnC,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,4DAAuC,CAAA;AACxC,CAAC,EAXW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAW5B;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC9B,uDAAgC,CAAA;IAChC,wCAAiB,CAAA;IACjB,gCAAS,CAAA;IACT,+CAAwB,CAAA;IACxB,sCAAe,CAAA;AAChB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED,IAAY,cAKX;AALD,WAAY,cAAc;IACzB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,2CAAyB,CAAA;IACzB,uDAAqC,CAAA;AACtC,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB;AAED,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC9B,iFAAkB,CAAA;IAClB,qFAAoB,CAAA;IACpB,qEAAY,CAAA;IACZ,qEAAY,CAAA;IACZ,uEAAa,CAAA;IACb,+DAAS,CAAA;IACT,6EAAgB,CAAA;IAChB,mEAAW,CAAA;AACZ,CAAC,EATW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAS9B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uB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,iBAAiB;CACzC,CAAC;AAEF;;;;GAIG;AACU,QAAA,yBAAyB,GAAG,CAAC,uBAAuB,CAAC,MAAM,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;AAErH;;GAEG;AACH;;;GAGG;AACU,QAAA,yBAAyB,GAAG,CAAC,uBAAuB,CAAC,MAAM,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;AAErH,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,2CAAqB,CAAA;IACrB,8CAAwB,CAAA;AACzB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
@@ -20,11 +20,11 @@ import { AddonParentTypeEnum, FinancialStepEnum, NotifyMethodEnum, OrderByEnum,
20
20
  import { Reservation } from '../entities/reservation.entity';
21
21
  import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
22
22
  import { ISegmentsAddons } from '../types/interfaces/addon.interfaces';
23
- import { IBaseReservation, IBaseReservationItemLineItem, IDraftReservation, IDuplicateDetails, IDuplicateReservationItems, IEditItemsRefundMetadata, IEditSlotsFinancialDetails, IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, IProductPrice, IRemoveSlotsFinancialData, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
23
+ import { IBaseReservation, IBaseReservationItemLineItem, IDraftReservation, IDuplicateDetails, IEditItemsRefundMetadata, IEditSlotsFinancialDetails, IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, IProductPrice, IRemoveSlotsFinancialData, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
24
24
  import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
25
25
  import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
26
26
  import { SeriesDto } from './series.dto';
27
- import { DraftSlotsDto, SlotDto, TimeSlotConflictsDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
27
+ import { SlotDto, TimeSlotConflictsDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
28
28
  export declare class ProductPricesDto implements IProductPrice {
29
29
  productId: number;
30
30
  product?: Product;
@@ -112,7 +112,6 @@ export declare class DraftReservationDto extends SimpleDraftReservationDto imple
112
112
  facilities: FacilityDto[];
113
113
  segmentsAddons?: SegmentsAddonsDto[];
114
114
  duplicateDetails?: DuplicatedDetailsDto;
115
- combinedSlots?: DraftSlotsDto[];
116
115
  }
117
116
  export declare class ReservationInvoiceDto {
118
117
  reservation: ReservationDto;
@@ -357,7 +356,6 @@ export declare class GenerateReservationDto {
357
356
  }
358
357
  export declare class UpdateDraftSlotsDto {
359
358
  slots: UpdateDraftSlotDto[];
360
- slotsIds?: string[];
361
359
  overrideProducts?: boolean;
362
360
  }
363
361
  export declare class SegmentsAddonsGroupDto extends BaseSegmentsAddonsGroupDto {
@@ -385,12 +383,9 @@ export declare class PaginatedSlotsSharedDto {
385
383
  export declare class DuplicateReservationDto {
386
384
  isEdit?: boolean;
387
385
  }
388
- export declare class DuplicateReservationItemsDto extends DuplicateReservationDto implements IDuplicateReservationItems {
386
+ export declare class DuplicateReservationItemsDto extends DuplicateReservationDto {
389
387
  slotsIds?: number[];
390
- excludeIds?: number[];
391
388
  reservationAddonsIds?: number[];
392
- combineSlots?: boolean;
393
- includedFields?: string[];
394
389
  }
395
390
  export declare class ReservationItemLineDto {
396
391
  id: number;
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,uDAAwD;AAExD,+DAA+G;AAE/G,8EAA8E;AAO9E,kE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C;AAED,MAAa,WAAY,SAAQ,8BAAgB;CAEhD;AAFD,kCAEC;AAED,MAAa,cAAe,SAAQ,8BAAgB;CAEnD;AAFD,wCAEC;AAED,MAAa,kCACZ,SAAQ,6BAAe;CA2BvB;AA5BD,gFA4BC;AAED,MAAa,uBAAwB,SAAQ,sCAAmB;CAE/D;AAFD,0DAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,yBAAyB;CAYrC;AAZD,8DAYC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAIrE;AAJD,8EAIC;AAED,MAAa,6BAA6B;CAoBzC;AApBD,sEAoBC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,WAAY,SAAQ,oBAAoB;CAEpD;AAFD,kCAEC;AAED,MAAa,gBAAiB,SAAQ,uBAAuB;CAE5D;AAFD,4CAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,sBAAuB,SAAQ,0BAA0B;CAErE;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,4BAA6B,SAAQ,uBAAuB;CAUxE;AAVD,oEAUC;AAED,MAAa,sBAAsB;CAkBlC;AAlBD,wDAkBC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,4BAA4B;CAkBxC;AAlBD,oEAkBC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC"}
1
+ {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,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dto/customer-response.dto';
2
2
  import { FacilityDto } from '../../dto/facilities.dto';
3
- import { SimpleProductUserDto } from '../../dto/product-user';
4
- import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
5
3
  import { ProductDto } from '../../product-pricing/dto/product.dto';
6
4
  import { Product } from '../../product-pricing/entities/Product';
7
5
  import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
@@ -11,8 +9,10 @@ import { Slot } from '../entities/slot.entity';
11
9
  import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
12
10
  import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
13
11
  import { IBaseSlot, IDraftSlot, ISlotProductMetadata, ISlotProductPricesMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
14
- import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
12
+ import { AddonDto, DraftAddonDto } from './addon.dto';
15
13
  import { MaintenanceDto } from './maintenance.dto';
14
+ import { SimpleProductUserDto } from '../../dto/product-user';
15
+ import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
16
16
  export declare class SlotProductMetadataDto implements ISlotProductMetadata {
17
17
  productId: number;
18
18
  price: number;
@@ -26,29 +26,23 @@ export declare class SlotProductPricesMetadataDto implements ISlotProductPricesM
26
26
  quantity: number;
27
27
  totalPrice: number;
28
28
  }
29
- export declare class BaseSlotFieldsDto {
30
- organizationId?: number;
29
+ export declare class DateTimeAndResourcesDto {
31
30
  startDate: string;
32
31
  startTime?: string;
33
32
  endDate?: string;
34
33
  endTime?: string;
35
34
  spaceId: number;
36
35
  instructorsIds?: number[];
37
- title?: string;
38
- publicNotes?: string;
39
- privateNotes?: string;
40
- sportIds?: SportsEnum[];
41
- privacySetting?: PrivacySettingsEnum;
42
- colorCodeId?: number;
43
- participantsNumber?: number;
44
- maintenance?: MaintenanceDto[];
45
36
  }
46
- export declare class BaseSlotDto extends BaseSlotFieldsDto implements IBaseSlot {
37
+ export declare class BaseSlotDto extends DateTimeAndResourcesDto implements IBaseSlot {
38
+ organizationId?: number;
47
39
  title: string;
48
40
  creatorId?: number;
49
41
  creatorType?: ResourceNameTypeEnum;
50
42
  userCreatorId?: number;
51
43
  timezone?: string;
44
+ publicNotes?: string;
45
+ privateNotes?: string;
52
46
  slotType: SlotTypeEnum;
53
47
  sportIds: SportsEnum[];
54
48
  maintenanceDurationdurationType?: DurationUnitTypesEnum;
@@ -57,9 +51,13 @@ export declare class BaseSlotDto extends BaseSlotFieldsDto implements IBaseSlot
57
51
  displayName?: string;
58
52
  internalName?: string;
59
53
  totalPrice?: number;
54
+ privacySetting?: PrivacySettingsEnum;
60
55
  slotDurationType: DurationTypeEnum;
56
+ colorCodeId?: number;
57
+ participantsNumber?: number;
61
58
  occurrence?: number;
62
59
  productMetadata?: SlotProductMetadataDto;
60
+ maintenance?: MaintenanceDto[];
63
61
  }
64
62
  export declare class SlotDto extends BaseSlotDto {
65
63
  id?: number;
@@ -93,34 +91,9 @@ export declare class BaseDraftSlotDto extends BaseSlotDto {
93
91
  participantsIds?: number[];
94
92
  slotId?: number;
95
93
  }
96
- export declare class UpdateDraftSlotDto {
97
- id: string;
98
- title?: string;
99
- privacySetting?: PrivacySettingsEnum;
100
- colorCodeId?: number;
101
- spaceId?: number;
102
- sportIds?: SportsEnum[];
103
- startDate?: string;
104
- startTime?: string;
105
- endDate?: string;
106
- endTime?: string;
107
- maintenance?: MaintenanceDto[];
108
- privateNotes?: string;
109
- publicNotes?: string;
110
- productsIds?: number[];
111
- instructorsIds?: number[];
112
- participantsIds?: number[];
113
- participantsNumber?: number;
114
- addons?: CreateDraftAddonDto[];
115
- }
116
- export declare class DraftSlotsDto extends BaseSlotFieldsDto {
117
- constructor(editSlots?: Partial<DraftSlotsDto>);
118
- ids: string[];
119
- facilitiesIds: number[];
120
- reservationId: string;
121
- participantsIds?: number[];
94
+ export declare class UpdateDraftSlotDto extends BaseDraftSlotDto {
122
95
  productsIds?: number[];
123
- addons?: CreateDraftAddonDto[];
96
+ productId?: number;
124
97
  }
125
98
  export declare class DraftSlotDto extends BaseDraftSlotDto implements IDraftSlot {
126
99
  maintenanceSlots?: DraftSlotDto[];
@@ -170,16 +143,13 @@ export declare class DraftTimeSlotDto implements ITimeSlot {
170
143
  parentSlotId?: string;
171
144
  }
172
145
  export declare class ProblematicSlotDto {
173
- id: string;
174
146
  startDate: string;
175
147
  endDate: string;
176
148
  startTime: string;
177
149
  endTime: string;
178
150
  spaceId: number;
179
- title: string;
180
151
  spaceName?: string;
181
152
  instructorsIds?: number[];
182
- slotId?: number;
183
153
  }
184
154
  export declare class CardSlotDto extends SlotDto {
185
155
  resource: SpaceResourceDto;
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CardSlotDto = exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.DraftSlotDto = exports.DraftSlotsDto = exports.UpdateDraftSlotDto = exports.BaseDraftSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.BaseSlotFieldsDto = exports.SlotProductPricesMetadataDto = exports.SlotProductMetadataDto = void 0;
3
+ exports.CardSlotDto = exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.DraftSlotDto = exports.UpdateDraftSlotDto = exports.BaseDraftSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.DateTimeAndResourcesDto = exports.SlotProductPricesMetadataDto = exports.SlotProductMetadataDto = void 0;
4
4
  class SlotProductMetadataDto {
5
5
  }
6
6
  exports.SlotProductMetadataDto = SlotProductMetadataDto;
7
7
  class SlotProductPricesMetadataDto {
8
8
  }
9
9
  exports.SlotProductPricesMetadataDto = SlotProductPricesMetadataDto;
10
- class BaseSlotFieldsDto {
10
+ class DateTimeAndResourcesDto {
11
11
  }
12
- exports.BaseSlotFieldsDto = BaseSlotFieldsDto;
13
- class BaseSlotDto extends BaseSlotFieldsDto {
12
+ exports.DateTimeAndResourcesDto = DateTimeAndResourcesDto;
13
+ class BaseSlotDto extends DateTimeAndResourcesDto {
14
14
  }
15
15
  exports.BaseSlotDto = BaseSlotDto;
16
16
  class SlotDto extends BaseSlotDto {
@@ -19,36 +19,9 @@ exports.SlotDto = SlotDto;
19
19
  class BaseDraftSlotDto extends BaseSlotDto {
20
20
  }
21
21
  exports.BaseDraftSlotDto = BaseDraftSlotDto;
22
- class UpdateDraftSlotDto {
22
+ class UpdateDraftSlotDto extends BaseDraftSlotDto {
23
23
  }
24
24
  exports.UpdateDraftSlotDto = UpdateDraftSlotDto;
25
- class DraftSlotsDto extends BaseSlotFieldsDto {
26
- constructor(editSlots) {
27
- super();
28
- this.ids = editSlots === null || editSlots === void 0 ? void 0 : editSlots.ids;
29
- this.organizationId = editSlots === null || editSlots === void 0 ? void 0 : editSlots.organizationId;
30
- this.facilitiesIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.facilitiesIds;
31
- this.reservationId = editSlots === null || editSlots === void 0 ? void 0 : editSlots.reservationId;
32
- this.startDate = editSlots === null || editSlots === void 0 ? void 0 : editSlots.startDate;
33
- this.startTime = editSlots === null || editSlots === void 0 ? void 0 : editSlots.startTime;
34
- this.endDate = editSlots === null || editSlots === void 0 ? void 0 : editSlots.endDate;
35
- this.endTime = editSlots === null || editSlots === void 0 ? void 0 : editSlots.endTime;
36
- this.spaceId = editSlots === null || editSlots === void 0 ? void 0 : editSlots.spaceId;
37
- this.instructorsIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.instructorsIds;
38
- this.title = editSlots === null || editSlots === void 0 ? void 0 : editSlots.title;
39
- this.publicNotes = editSlots === null || editSlots === void 0 ? void 0 : editSlots.publicNotes;
40
- this.privateNotes = editSlots === null || editSlots === void 0 ? void 0 : editSlots.privateNotes;
41
- this.sportIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.sportIds;
42
- this.privacySetting = editSlots === null || editSlots === void 0 ? void 0 : editSlots.privacySetting;
43
- this.colorCodeId = editSlots === null || editSlots === void 0 ? void 0 : editSlots.colorCodeId;
44
- this.participantsNumber = editSlots === null || editSlots === void 0 ? void 0 : editSlots.participantsNumber;
45
- this.participantsIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.participantsIds;
46
- this.productsIds = editSlots === null || editSlots === void 0 ? void 0 : editSlots.productsIds;
47
- this.maintenance = editSlots === null || editSlots === void 0 ? void 0 : editSlots.maintenance;
48
- this.addons = editSlots === null || editSlots === void 0 ? void 0 : editSlots.addons;
49
- }
50
- }
51
- exports.DraftSlotsDto = DraftSlotsDto;
52
25
  class DraftSlotDto extends BaseDraftSlotDto {
53
26
  }
54
27
  exports.DraftSlotDto = DraftSlotDto;
@@ -1 +1 @@
1
- {"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAgCA,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AAED,MAAa,4BAA4B;CAQxC;AARD,oEAQC;AAED,MAAa,iBAAiB;CA8B7B;AA9BD,8CA8BC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAgCjD;AAhCD,kCAgCC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAkCvC;AAlCD,0BAkCC;AAED,MAAa,gBAAiB,SAAQ,WAAW;CAgBhD;AAhBD,4CAgBC;AAED,MAAa,kBAAkB;CAoC9B;AApCD,gDAoCC;AAED,MAAa,aAAc,SAAQ,iBAAiB;IACnD,YAAY,SAAkC;QAC7C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,GAAG,CAAC;QAC1B,IAAI,CAAC,cAAc,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BjD;AAlBD,oCAkBC;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,oBAAoB;CAKhC;AALD,oDAKC;AAED,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAa,kBAAkB;CAc9B;AAdD,gDAcC;AAED,MAAa,WAAY,SAAQ,OAAO;CAcvC;AAdD,kCAcC"}
@@ -7,7 +7,6 @@ export declare const RESOURCE_TOTAL_FIELD = PriceFieldEnum.TOTAL_PRICE;
7
7
  export declare const PUBLIC_NOTES_LIMIT = 500;
8
8
  export declare const PRIVATE_NOTES_LIMIT = 500;
9
9
  export declare const DEFAULT_PRICE_ID = 0;
10
- export declare const MANDATORY_DRAFT_SLOTS_FIELDS: string[];
11
10
  export declare const reservationStatusMapper: {
12
11
  Planned: InvoiceStatusEnum;
13
12
  Approved: InvoiceStatusEnum;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.MANDATORY_DRAFT_SLOTS_FIELDS = exports.DEFAULT_PRICE_ID = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.RESERVATION_CHUNCK_SIZE = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
3
+ exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.DEFAULT_PRICE_ID = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.RESERVATION_CHUNCK_SIZE = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
4
4
  const enums_service_1 = require("../../../services/enums.service");
5
5
  const reservation_enums_1 = require("../enums/reservation.enums");
6
6
  exports.DRAFT_RESERVATION_REDIS_TOKEN = 'DRAFT_RESERVATION_REDIS_CLIENT';
@@ -11,7 +11,6 @@ exports.RESOURCE_TOTAL_FIELD = enums_service_1.PriceFieldEnum.TOTAL_PRICE;
11
11
  exports.PUBLIC_NOTES_LIMIT = 500;
12
12
  exports.PRIVATE_NOTES_LIMIT = 500;
13
13
  exports.DEFAULT_PRICE_ID = 0;
14
- exports.MANDATORY_DRAFT_SLOTS_FIELDS = ['ids', 'organizationId', 'facilitiesIds', 'reservationId'];
15
14
  exports.reservationStatusMapper = {
16
15
  [reservation_enums_1.ReservationStatusEnum.PLANNED]: enums_service_1.InvoiceStatusEnum.DRAFT,
17
16
  [reservation_enums_1.ReservationStatusEnum.APPROVED]: enums_service_1.InvoiceStatusEnum.DRAFT,
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAqG;AACrG,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAEjE,QAAA,uBAAuB,GAAG,GAAG,CAAC;AAE3C,oBAAoB;AACP,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,gBAAgB,GAAG,CAAC,CAAC;AAErB,QAAA,4BAA4B,GAAa,CAAC,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;AAErG,QAAA,uBAAuB,GAAG;IACtC,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACzD,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,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,+BAAe,CAAC,KAAK;IAC7D,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,+BAAe,CAAC,KAAK;IAChE,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;IAC3D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;CAC3D,CAAC"}
@@ -18,7 +18,7 @@ import { AddonDto } from '../../dto/addon.dto';
18
18
  import { ReservationDto } from '../../dto/reservation.dto';
19
19
  import { SegmentDto } from '../../dto/segment.dto';
20
20
  import { SeriesDto } from '../../dto/series.dto';
21
- import { SlotDto, UpdateDraftSlotDto } from '../../dto/slot.dto';
21
+ import { SlotDto } from '../../dto/slot.dto';
22
22
  import { Addon } from '../../entities/addon.entity';
23
23
  import { Reservation } from '../../entities/reservation.entity';
24
24
  import { Segment } from '../../entities/segment.entity';
@@ -342,13 +342,6 @@ export interface IGetDraftReservationOptions {
342
342
  includeConflicts?: boolean;
343
343
  reservation?: DraftReservation;
344
344
  }
345
- export interface IDuplicateDraftReservation extends IGetDraftReservationOptions {
346
- slotsIds?: number[];
347
- excludeIds?: number[];
348
- reservationAddonsIds?: number[];
349
- isEdit?: boolean;
350
- skipSave?: boolean;
351
- }
352
345
  export interface IGetDraftReservationSlotsOptions extends IPagination, IExtendDraftSlotsOptions {
353
346
  segmentsIds?: string[];
354
347
  slotsIds?: string[];
@@ -446,14 +439,4 @@ export interface IGetReservationOptions {
446
439
  extraRelations?: string[];
447
440
  includeProducts?: boolean;
448
441
  }
449
- export interface IDuplicateReservationItems {
450
- slotsIds?: number[];
451
- reservationAddonsIds?: number[];
452
- excludeIds?: number[];
453
- isEdit?: boolean;
454
- }
455
- export interface IUpdateDraftSlotsValidationResult {
456
- slots: DraftSlot[];
457
- updates: UpdateDraftSlotDto[];
458
- }
459
442
  export {};
@@ -151,7 +151,3 @@ export interface IDraftSlot extends IBaseSlot {
151
151
  approvalStatus?: ReservationStatusEnum;
152
152
  paymentStatus?: ReservationPaymentStatusEnum;
153
153
  }
154
- export interface IUpdateSlot extends IDraftSlot {
155
- productsIds?: number[];
156
- productId?: number;
157
- }
@@ -26,6 +26,7 @@ export declare class RoleDto extends OptionalFacilityIdDto {
26
26
  type?: number;
27
27
  permissionGroups: PermissionGroupDto[];
28
28
  usersRoles: UserRoleDto[];
29
+ activeUsersCount?: number;
29
30
  }
30
31
  export declare class SimpleRoleDto extends OptionalFacilityIdDto {
31
32
  id: number;
@@ -41,6 +42,7 @@ export declare class GetRolesFiltersDto extends PaginatedSearchDto {
41
42
  isEditable?: boolean;
42
43
  rolesTypes?: RoleTypesEnum[];
43
44
  includeBondy?: boolean;
45
+ countUserRoles?: boolean;
44
46
  }
45
47
  export declare class ByOrganizationIdAndRole extends ByOrganizationIdDto {
46
48
  role: string;
@@ -24,6 +24,7 @@ class GetRolesFiltersDto extends general_dto_1.PaginatedSearchDto {
24
24
  constructor() {
25
25
  super(...arguments);
26
26
  this.includeBondy = false;
27
+ this.countUserRoles = false;
27
28
  }
28
29
  }
29
30
  exports.GetRolesFiltersDto = GetRolesFiltersDto;
@@ -1 +1 @@
1
- {"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/role.dto.ts"],"names":[],"mappings":";;;AAAA,6DAAiE;AACjE,uDAA2D;AAC3D,8EAA8E;AAO9E,MAAa,WAAY,SAAQ,sCAAqB;CAErD;AAFD,kCAEC;AAED,MAAa,aAAc,SAAQ,sCAAqB;CAYvD;AAZD,sCAYC;AAED,MAAa,OAAQ,SAAQ,sCAAqB;IAAlD;;QAaC,qBAAgB,GAAyB,EAAE,CAAC;IAG7C,CAAC;CAAA;AAhBD,0BAgBC;AAED,MAAa,aAAc,SAAQ,sCAAqB;CAQvD;AARD,sCAQC;AAED,MAAa,kBAAmB,SAAQ,gCAAkB;IAA1D;;QAaC,iBAAY,GAAI,KAAK,CAAC;IACvB,CAAC;CAAA;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kB;CAE9B;AAFD,gDAEC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,aAAc,SAAQ,sCAAqB;CAQvD;AARD,sCAQC;AAED,MAAa,qBAAsB,SAAQ,UAAU;IAArD;;QACC,qBAAgB,GAAI,IAAI,CAAC;IAC1B,CAAC;CAAA;AAFD,sDAEC;AAED,MAAa,kBAAkB;IAA/B;QACC,uBAAkB,GAAI,KAAK,CAAC;QAE5B,4BAAuB,GAAI,KAAK,CAAC;QAEjC,6BAAwB,GAAI,KAAK,CAAC;QAElC,qBAAgB,GAAI,KAAK,CAAC;IAC3B,CAAC;CAAA;AARD,gDAQC;AAED,MAAa,iBAAkB,SAAQ,OAAO;CAE7C;AAFD,8CAEC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC"}
@@ -11,4 +11,5 @@ export declare class Role extends BondBaseEntity {
11
11
  facilityId: number;
12
12
  permissionGroups: PermissionGroup[];
13
13
  usersRoles: UserRole[];
14
+ activeUsersCount?: number;
14
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Role.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAI7D,MAAa,IAAK,SAAQ,+BAAc;CAkBvC;AAlBD,oBAkBC"}
1
+ {"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Role.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAI7D,MAAa,IAAK,SAAQ,+BAAc;CAoBvC;AApBD,oBAoBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.280-team-a",
3
+ "version": "2.2.280",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {