@bondsports/types 2.2.30 → 2.2.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -94,3 +94,8 @@ export interface ISetDiscountOptions {
94
94
  overrideItems?: boolean;
95
95
  maxAmount?: number;
96
96
  }
97
+ export interface IFindEntitlementDiscountOptions {
98
+ productIds: number[];
99
+ groupIds?: number[];
100
+ withDeleted?: boolean;
101
+ }
@@ -9,7 +9,7 @@ import { Addon } from '../../reservations/entities/Addon';
9
9
  import { Slot } from '../../reservations/entities/Slots';
10
10
  import { ActivityEnum, OrderByEnum, ProgramTypesEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum } from '../../services/enums.service';
11
11
  import { OrderByResourceEnum } from '../types/enums/resources.enums';
12
- import { IGetFacilityResourcesOptions, IGetResourceByIdsOptions } from '../types/interfaces/resource.interfaces';
12
+ import { IGetResourcesOptions, IGetResourceByIdsOptions } from '../types/interfaces/resource.interfaces';
13
13
  export declare class ResourceDto {
14
14
  id: number;
15
15
  type: ResourceNameTypeEnum;
@@ -46,7 +46,7 @@ export declare class ResourceDependenciesDto {
46
46
  resourceGroupId?: number;
47
47
  blockedResourcesIds?: number[];
48
48
  }
49
- export declare class GetResourcesOfFacilityByTypeDto implements IGetFacilityResourcesOptions {
49
+ export declare class GetResourcesOfFacilityByTypeDto implements IGetResourcesOptions {
50
50
  nameSearch?: string;
51
51
  includeActivityTimes: boolean;
52
52
  includeResourceMetadata: boolean;
@@ -3,6 +3,7 @@ import { FacilityDto } from '../../dto/facilities.dto';
3
3
  import { PaginationQuery } from '../../dto/general.dto';
4
4
  import { ActivityEnum, AmenitiesEnum, OrderByEnum, ResourceAgesEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SportsEnum, SurfacesEnum } from '../../services/enums.service';
5
5
  import { OrderByResourceEnum } from '../types/enums/resources.enums';
6
+ import { IGetResourcesOptions } from '../types/interfaces/resource.interfaces';
6
7
  import { BaseResourceDto, ResourceDependenciesDto, UpdateResourceDto } from './resource.dto';
7
8
  export declare class SpaceResourceDto extends BaseResourceDto {
8
9
  name: string;
@@ -57,15 +58,18 @@ export declare class FacilitySlotsScheduleQueryParams {
57
58
  spacesIds?: number[];
58
59
  futureHoursLimit?: number;
59
60
  }
60
- export declare class FindResourcesOptionsDto extends PaginationQuery {
61
+ export declare class FindResourcesOptionsDto extends PaginationQuery implements IGetResourcesOptions {
61
62
  nameSearch?: string;
62
63
  facilitiesIds?: number[];
63
- types?: ResourceTypeEnum[];
64
+ resourceTypes?: ResourceTypeEnum[];
64
65
  resourcesIds?: number[];
65
66
  sortBy?: OrderByResourceEnum;
66
67
  order?: OrderByEnum;
67
68
  sports?: SportsEnum[];
68
69
  statuses?: ActivityEnum[];
70
+ includeResourceMetadata?: boolean;
71
+ includeActivityTimes?: boolean;
72
+ includeFacilities?: boolean;
69
73
  }
70
74
  export declare class UpdateSpaceDto extends UpdateResourceDto {
71
75
  name?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAwD;AAaxD,iDAA6F;AAE7F,MAAa,gBAAiB,SAAQ,8BAAe;CAkBpD;AAlBD,4CAkBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,cAAe,SAAQ,sCAAuB;CA8B1D;AA9BD,wCA8BC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AACD,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,gCAAgC;CAI5C;AAJD,4EAIC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;CAgB3D;AAhBD,0DAgBC;AAED,MAAa,cAAe,SAAQ,gCAAiB;CAkBpD;AAlBD,wCAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC"}
1
+ {"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAwD;AAcxD,iDAA6F;AAE7F,MAAa,gBAAiB,SAAQ,8BAAe;CAkBpD;AAlBD,4CAkBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,cAAe,SAAQ,sCAAuB;CA8B1D;AA9BD,wCA8BC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AACD,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,gCAAgC;CAI5C;AAJD,4EAIC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;CAsB3D;AAtBD,0DAsBC;AAED,MAAa,cAAe,SAAQ,gCAAiB;CAkBpD;AAlBD,wCAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC"}
@@ -1,4 +1,4 @@
1
- import { OrderByEnum, ResourceNameTypeEnum, ResourceTypeEnum } from '../../../services/enums.service';
1
+ import { ActivityEnum, OrderByEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum } from '../../../services/enums.service';
2
2
  import { SimpleResourceDto } from '../../dto/resource.dto';
3
3
  import { OrderByResourceEnum } from '../enums/resources.enums';
4
4
  import { PackageV1 } from '../../../entity/PackageV1';
@@ -6,13 +6,18 @@ export interface ParentResources extends SimpleResourceDto {
6
6
  parentId: number;
7
7
  parentType?: ResourceNameTypeEnum;
8
8
  }
9
- export interface IGetFacilityResourcesOptions {
10
- includeActivityTimes?: boolean;
11
- includeResourceMetadata?: boolean;
9
+ export interface IGetResourcesOptions {
10
+ nameSearch?: string;
11
+ resourceTypes?: ResourceTypeEnum[];
12
+ facilitiesIds?: number[];
13
+ resourcesIds?: number[];
14
+ sports?: SportsEnum[];
15
+ statuses?: ActivityEnum[];
12
16
  order?: OrderByEnum;
13
17
  sortBy?: OrderByResourceEnum;
14
- resourceTypes?: ResourceTypeEnum[];
15
- nameSearch?: string;
18
+ includeActivityTimes?: boolean;
19
+ includeResourceMetadata?: boolean;
20
+ includeFacilities?: boolean;
16
21
  }
17
22
  export interface IGetResourceByIdsOptions {
18
23
  includeAdditionalData?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.30",
3
+ "version": "2.2.32",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {