@bondsports/types 2.2.284-a-3 → 2.2.284-a-5

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.
@@ -41,6 +41,7 @@ export declare class CreateProductDto {
41
41
  durationDays?: number;
42
42
  forms?: number[];
43
43
  isForAllCustomers?: boolean;
44
+ punchCard?: boolean;
44
45
  membershipsAvailableFor?: number[];
45
46
  customersAvailableFor?: number[];
46
47
  addons?: CreateRentalProductAddonDto[];
@@ -1 +1 @@
1
- {"version":3,"file":"package.dto.js","sourceRoot":"","sources":["../../../src/types/dto/package.dto.ts"],"names":[],"mappings":";;;AAaA,MAAa,gBAAgB;CAoF5B;AApFD,4CAoFC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AACD,MAAa,2BAA2B;CAQvC;AARD,kEAQC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,uCAAwC,SAAQ,wBAAwB;CAEpF;AAFD,0FAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC"}
1
+ {"version":3,"file":"package.dto.js","sourceRoot":"","sources":["../../../src/types/dto/package.dto.ts"],"names":[],"mappings":";;;AAaA,MAAa,gBAAgB;CAsF5B;AAtFD,4CAsFC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AACD,MAAa,2BAA2B;CAQvC;AARD,kEAQC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,uCAAwC,SAAQ,wBAAwB;CAEpF;AAFD,0FAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC"}
@@ -1,8 +1,9 @@
1
+ import { SimpleResourceDto } from '../../dto/general.dto';
1
2
  import { Event } from '../../entity/Events';
2
- import { SportsEnum } from '../../services/enums.service';
3
+ import { ResourceSubTypeEnum, ResourceTypeEnum, SportsEnum } from '../../services/enums.service';
3
4
  import { Reservation } from '../entities/reservation.entity';
4
5
  import { Series } from '../entities/series.entity';
5
- import { ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
6
+ import { MaintenanceTimingEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
6
7
  export declare class CalendarSlotDto {
7
8
  id: number;
8
9
  reservationId: number;
@@ -21,9 +22,23 @@ export declare class CalendarSlotDto {
21
22
  instructorsIds?: number[];
22
23
  sportId: SportsEnum;
23
24
  colorCodeId?: number;
24
- children?: CalendarSlotDto[];
25
+ children?: CalendarMaintenanceSlotDto[];
26
+ conflictsCount?: number;
25
27
  sportIds: SportsEnum[];
26
28
  event: Event;
27
29
  reservation: Reservation;
28
30
  series?: Series;
29
31
  }
32
+ export declare class CalendarMaintenanceSlotDto extends CalendarSlotDto {
33
+ maintenanceTiming: MaintenanceTimingEnum;
34
+ }
35
+ export declare class CalendarFiltersOptionsDto {
36
+ resourcesTypes: ResourceTypeEnum[];
37
+ spaces: SimpleResourceDto[];
38
+ instructors: SimpleResourceDto[];
39
+ spaceSubTypes: ResourceSubTypeEnum[];
40
+ sports: SportsEnum[];
41
+ slotTypes: SlotTypeEnum[];
42
+ paymentStatuses: ReservationPaymentStatusEnum[];
43
+ approvalStatuses: ReservationStatusEnum[];
44
+ }
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CalendarSlotDto = void 0;
3
+ exports.CalendarFiltersOptionsDto = exports.CalendarMaintenanceSlotDto = exports.CalendarSlotDto = void 0;
4
4
  class CalendarSlotDto {
5
5
  }
6
6
  exports.CalendarSlotDto = CalendarSlotDto;
7
+ class CalendarMaintenanceSlotDto extends CalendarSlotDto {
8
+ }
9
+ exports.CalendarMaintenanceSlotDto = CalendarMaintenanceSlotDto;
10
+ class CalendarFiltersOptionsDto {
11
+ }
12
+ exports.CalendarFiltersOptionsDto = CalendarFiltersOptionsDto;
7
13
  //# sourceMappingURL=calendar-slot.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/calendar-slot.dto.ts"],"names":[],"mappings":";;;AAWA,MAAa,eAAe;CA4C3B;AA5CD,0CA4CC"}
1
+ {"version":3,"file":"calendar-slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/calendar-slot.dto.ts"],"names":[],"mappings":";;;AAaA,MAAa,eAAe;CA8C3B;AA9CD,0CA8CC;AAED,MAAa,0BAA2B,SAAQ,eAAe;CAE9D;AAFD,gEAEC;AAED,MAAa,yBAAyB;CAgBrC;AAhBD,8DAgBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"slot.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot.entity.ts"],"names":[],"mappings":";;;AAeA,oGAAiG;AAuBjG,MAAa,IAAK,SAAQ,mEAAgC;CAsIzD;AAtID,oBAsIC"}
1
+ {"version":3,"file":"slot.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot.entity.ts"],"names":[],"mappings":";;;AAeA,oGAAiG;AAuBjG,MAAa,IAAK,SAAQ,mEAAgC;CAuIzD;AAvID,oBAuIC"}
@@ -27,6 +27,7 @@ export declare enum ReservationExtendedEnum {
27
27
  PURCHASE_ORDER = "purchase_order"
28
28
  }
29
29
  export type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
30
+ export declare const PaymentStatusOptions: PaymentStatusEnum[];
30
31
  export declare const ReservationPaymentStatusOptions: (PaymentStatusEnum | ReservationExtendedEnum.PURCHASE_ORDER)[];
31
32
  export declare enum ReservationStatusEnum {
32
33
  PLANNED = "Planned",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MaintenanceTimingEnum = exports.FrequencyEnum = exports.DurationUnitTypesEnum = exports.SlotTypeEnum = exports.ReservationMigrationStatusEnum = exports.ReservationStatusEnum = exports.ReservationPaymentStatusOptions = exports.ReservationExtendedEnum = exports.DurationTypeEnum = exports.ReservationTypeEnum = exports.PrivacySettingsEnum = exports.ItemResourceEnum = void 0;
3
+ exports.MaintenanceTimingEnum = exports.FrequencyEnum = exports.DurationUnitTypesEnum = exports.SlotTypeEnum = exports.ReservationMigrationStatusEnum = exports.ReservationStatusEnum = exports.ReservationPaymentStatusOptions = exports.PaymentStatusOptions = exports.ReservationExtendedEnum = exports.DurationTypeEnum = exports.ReservationTypeEnum = exports.PrivacySettingsEnum = exports.ItemResourceEnum = void 0;
4
4
  const payment_enums_1 = require("../../../payment/types/enums/payment.enums");
5
5
  var ItemResourceEnum;
6
6
  (function (ItemResourceEnum) {
@@ -34,10 +34,14 @@ var ReservationExtendedEnum;
34
34
  (function (ReservationExtendedEnum) {
35
35
  ReservationExtendedEnum["PURCHASE_ORDER"] = "purchase_order";
36
36
  })(ReservationExtendedEnum = exports.ReservationExtendedEnum || (exports.ReservationExtendedEnum = {}));
37
- exports.ReservationPaymentStatusOptions = [
38
- ...Object.values(payment_enums_1.PaymentStatusEnum),
39
- ...Object.values(ReservationExtendedEnum),
37
+ exports.PaymentStatusOptions = [
38
+ payment_enums_1.PaymentStatusEnum.NOT_PAID,
39
+ payment_enums_1.PaymentStatusEnum.PARTIAL_PAYMENT,
40
+ payment_enums_1.PaymentStatusEnum.FULLY_PAID,
41
+ payment_enums_1.PaymentStatusEnum.REFUNDED,
42
+ payment_enums_1.PaymentStatusEnum.VOID,
40
43
  ];
44
+ exports.ReservationPaymentStatusOptions = [...exports.PaymentStatusOptions, ...Object.values(ReservationExtendedEnum)];
41
45
  var ReservationStatusEnum;
42
46
  (function (ReservationStatusEnum) {
43
47
  ReservationStatusEnum["PLANNED"] = "Planned";
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.enums.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/reservation.enums.ts"],"names":[],"mappings":";;;AAAA,8EAA+E;AAE/E,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,6DAAyC,CAAA;IACzC,+CAA2B,CAAA;AAC5B,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AAClB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,kDAA2B,CAAA;IAC3B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;AACtB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;AACtB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IAClC,4DAAiC,CAAA;AAClC,CAAC,EAFW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAElC;AAIY,QAAA,+BAA+B,GAAG;IAC9C,GAAG,MAAM,CAAC,MAAM,CAAC,iCAAiB,CAAC;IACnC,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC;CACzC,CAAC;AAEF,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;IACrB,0DAAiC,CAAA;IACjC,gEAAuC,CAAA;IACvC,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;AACtB,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC;AAED,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACzC,6CAAW,CAAA;IACX,2CAAS,CAAA;IACT,6CAAW,CAAA;AACZ,CAAC,EAJW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAIzC;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACvB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,2CAA2B,CAAA;IAC3B,iCAAiB,CAAA;AAClB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,sCAAa,CAAA;AACd,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAED,IAAY,aAMX;AAND,WAAY,aAAa;IACxB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AAClB,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAChC,qEAAU,CAAA;IACV,mEAAS,CAAA;IACT,uFAAmB,CAAA;IACnB,6EAAc,CAAA;AACf,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC"}
1
+ {"version":3,"file":"reservation.enums.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/reservation.enums.ts"],"names":[],"mappings":";;;AAAA,8EAA+E;AAE/E,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,6DAAyC,CAAA;IACzC,+CAA2B,CAAA;AAC5B,CA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AAY,8BAIX;AAJD,WAAY,8BAA8B;IACzC,6CAAW,CAAA;IACX,2CAAS,CAAA;IACT,6CAAW,CAAA;AACZ,CAAC,EAJW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAIzC;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACvB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,2CAA2B,CAAA;IAC3B,iCAAiB,CAAA;AAClB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,sCAAa,CAAA;AACd,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAED,IAAY,aAMX;AAND,WAAY,aAAa;IACxB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AAClB,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAChC,qEAAU,CAAA;IACV,mEAAS,CAAA;IACT,uFAAmB,CAAA;IACnB,6EAAc,CAAA;AACf,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC"}
@@ -17,6 +17,7 @@ export interface IGetResourcesOptions {
17
17
  sortBy?: OrderByResourceEnum;
18
18
  includeActivityTimes?: boolean;
19
19
  includeResourceMetadata?: boolean;
20
+ includeMainMedia?: boolean;
20
21
  includeFacilities?: boolean;
21
22
  searchByFacility?: boolean;
22
23
  inclusion?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.284-a-3",
3
+ "version": "2.2.284-a-5",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {