@bondsports/types 2.1.21 → 2.1.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,6 +56,7 @@ export declare class GetResourcesOfFacilityByTypeDto implements IGetFacilityReso
56
56
  includeResourceMetadata: boolean;
57
57
  order?: OrderByEnum;
58
58
  orderBy: OrderByResourceEnum;
59
+ resourceTypes?: ResourceTypeEnum[];
59
60
  }
60
61
  export declare class GetResourceByIdOptionsDto extends IncludeAdditionalDataDto implements IGetResourceByIdsOptions {
61
62
  order?: OrderByEnum;
@@ -64,7 +65,7 @@ export declare class GetResourceByIdOptionsDto extends IncludeAdditionalDataDto
64
65
  export declare class ByOrganizationIdAndResourceTypeDto extends ByOrganizationIdDto {
65
66
  resourceType: ResourceTypeEnum;
66
67
  }
67
- export declare class ByOrganizationFacilityIdsAndResourceTypeDto extends ByOrganizationIdAndResourceTypeDto {
68
+ export declare class ByOrganizationFacilityIdDto extends ByOrganizationIdDto {
68
69
  facilityId: number;
69
70
  }
70
71
  export declare class ByOrganizationIdAndResourceTypeAndIdDto extends ByOrganizationIdAndResourceTypeDto {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ByResourceTypeDto = exports.UpdateResourceDetailsDto = exports.ByOrganizationIdAndResourceId = exports.ByOrganizationIdAndResourceTypeAndIdDto = exports.ByOrganizationFacilityIdsAndResourceTypeDto = exports.ByOrganizationIdAndResourceTypeDto = exports.GetResourceByIdOptionsDto = exports.GetResourcesOfFacilityByTypeDto = exports.ResourceDependenciesDto = exports.SpaceResourceDto = exports.SimpleResourceDto = exports.ResourceDto = void 0;
3
+ exports.ByResourceTypeDto = exports.UpdateResourceDetailsDto = exports.ByOrganizationIdAndResourceId = exports.ByOrganizationIdAndResourceTypeAndIdDto = exports.ByOrganizationFacilityIdDto = exports.ByOrganizationIdAndResourceTypeDto = exports.GetResourceByIdOptionsDto = exports.GetResourcesOfFacilityByTypeDto = exports.ResourceDependenciesDto = exports.SpaceResourceDto = exports.SimpleResourceDto = exports.ResourceDto = 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
  class ResourceDto {
@@ -24,9 +24,9 @@ exports.GetResourceByIdOptionsDto = GetResourceByIdOptionsDto;
24
24
  class ByOrganizationIdAndResourceTypeDto extends organization_dto_1.ByOrganizationIdDto {
25
25
  }
26
26
  exports.ByOrganizationIdAndResourceTypeDto = ByOrganizationIdAndResourceTypeDto;
27
- class ByOrganizationFacilityIdsAndResourceTypeDto extends ByOrganizationIdAndResourceTypeDto {
27
+ class ByOrganizationFacilityIdDto extends organization_dto_1.ByOrganizationIdDto {
28
28
  }
29
- exports.ByOrganizationFacilityIdsAndResourceTypeDto = ByOrganizationFacilityIdsAndResourceTypeDto;
29
+ exports.ByOrganizationFacilityIdDto = ByOrganizationFacilityIdDto;
30
30
  class ByOrganizationIdAndResourceTypeAndIdDto extends ByOrganizationIdAndResourceTypeDto {
31
31
  }
32
32
  exports.ByOrganizationIdAndResourceTypeAndIdDto = ByOrganizationIdAndResourceTypeAndIdDto;
@@ -1 +1 @@
1
- {"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA+E;AAoB/E,8EAA8E;AAG9E,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,gBAAiB,SAAQ,0BAAY;CA4DjD;AA5DD,4CA4DC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAQ3C;AARD,0EAQC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAItE;AAJD,8DAIC;AAED,MAAa,kCAAmC,SAAQ,sCAAmB;CAE1E;AAFD,gFAEC;AAED,MAAa,2CAA4C,SAAQ,kCAAkC;CAElG;AAFD,kGAEC;AAED,MAAa,uCAAwC,SAAQ,kCAAkC;CAE9F;AAFD,0FAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC"}
1
+ {"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA+E;AAoB/E,8EAA8E;AAG9E,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,gBAAiB,SAAQ,0BAAY;CA4DjD;AA5DD,4CA4DC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAU3C;AAVD,0EAUC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAItE;AAJD,8DAIC;AAED,MAAa,kCAAmC,SAAQ,sCAAmB;CAE1E;AAFD,gFAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAEnE;AAFD,kEAEC;AAED,MAAa,uCAAwC,SAAQ,kCAAkC;CAE9F;AAFD,0FAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC"}
@@ -0,0 +1 @@
1
+ export * from './resource.consts';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./resource.consts"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/resources/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
@@ -0,0 +1,2 @@
1
+ import { ResourceTypeEnum } from '../../../services/enums.service';
2
+ export declare const RESOURCE_TYPES_ARRAY: ResourceTypeEnum[];
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RESOURCE_TYPES_ARRAY = void 0;
4
+ const enums_service_1 = require("../../../services/enums.service");
5
+ exports.RESOURCE_TYPES_ARRAY = [enums_service_1.ResourceTypeEnum.INSTRUCTOR, enums_service_1.ResourceTypeEnum.SPACE];
6
+ //# sourceMappingURL=resource.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.consts.js","sourceRoot":"","sources":["../../../../../src/types/resources/types/consts/resource.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAmE;AAEtD,QAAA,oBAAoB,GAAuB,CAAC,gCAAgB,CAAC,UAAU,EAAE,gCAAgB,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
+ export * from './consts';
1
2
  export * from './enums';
2
3
  export * from './interfaces';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./consts"), exports);
17
18
  __exportStar(require("./enums"), exports);
18
19
  __exportStar(require("./interfaces"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/resources/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/resources/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
@@ -1,4 +1,4 @@
1
- import { OrderByEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
1
+ import { OrderByEnum, ResourceNameTypeEnum, ResourceTypeEnum } 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';
@@ -11,6 +11,7 @@ export interface IGetFacilityResourcesOptions {
11
11
  includeResourceMetadata?: boolean;
12
12
  order?: OrderByEnum;
13
13
  orderBy?: OrderByResourceEnum;
14
+ resourceTypes?: ResourceTypeEnum[];
14
15
  }
15
16
  export interface IGetResourceByIdsOptions {
16
17
  includeAdditionalData?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.1.21",
3
+ "version": "2.1.22",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {