@bondsports/types 2.1.20 → 2.1.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/entity/PackageV1.d.ts +2 -0
- package/dist/types/entity/PackageV1.js.map +1 -1
- package/dist/types/resources/dto/resource.dto.d.ts +2 -1
- package/dist/types/resources/dto/resource.dto.js +3 -3
- package/dist/types/resources/dto/resource.dto.js.map +1 -1
- package/dist/types/resources/types/consts/index.d.ts +1 -0
- package/dist/types/resources/types/consts/index.js +18 -0
- package/dist/types/resources/types/consts/index.js.map +1 -0
- package/dist/types/resources/types/consts/resource.consts.d.ts +2 -0
- package/dist/types/resources/types/consts/resource.consts.js +6 -0
- package/dist/types/resources/types/consts/resource.consts.js.map +1 -0
- package/dist/types/resources/types/index.d.ts +1 -0
- package/dist/types/resources/types/index.js +1 -0
- package/dist/types/resources/types/index.js.map +1 -1
- package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +8 -1
- package/package.json +1 -1
@@ -1,4 +1,5 @@
|
|
1
1
|
import { BondBaseEntity } from './BondBaseEntity';
|
2
|
+
import { ActivityTimes } from './ActivityTimes';
|
2
3
|
export declare class PackageV1 extends BondBaseEntity {
|
3
4
|
name?: string;
|
4
5
|
description?: string;
|
@@ -15,4 +16,5 @@ export declare class PackageV1 extends BondBaseEntity {
|
|
15
16
|
addon: boolean;
|
16
17
|
isMandatory: boolean;
|
17
18
|
productId: number;
|
19
|
+
activityTimes?: ActivityTimes[];
|
18
20
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PackageV1.js","sourceRoot":"","sources":["../../../src/types/entity/PackageV1.ts"],"names":[],"mappings":";;;AACA,qDAAkD;
|
1
|
+
{"version":3,"file":"PackageV1.js","sourceRoot":"","sources":["../../../src/types/entity/PackageV1.ts"],"names":[],"mappings":";;;AACA,qDAAkD;AAGlD,MAAa,SAAU,SAAQ,+BAAc;CAgC5C;AAhCD,8BAgCC"}
|
@@ -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
|
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.
|
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
|
27
|
+
class ByOrganizationFacilityIdDto extends organization_dto_1.ByOrganizationIdDto {
|
28
28
|
}
|
29
|
-
exports.
|
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;
|
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,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"}
|
@@ -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,6 +1,7 @@
|
|
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
|
+
import { PackageV1 } from '../../../entity/PackageV1';
|
4
5
|
export interface ParentResources extends SimpleResourceDto {
|
5
6
|
parentId: number;
|
6
7
|
parentType?: ResourceNameTypeEnum;
|
@@ -10,9 +11,15 @@ export interface IGetFacilityResourcesOptions {
|
|
10
11
|
includeResourceMetadata?: boolean;
|
11
12
|
order?: OrderByEnum;
|
12
13
|
orderBy?: OrderByResourceEnum;
|
14
|
+
resourceTypes?: ResourceTypeEnum[];
|
13
15
|
}
|
14
16
|
export interface IGetResourceByIdsOptions {
|
15
17
|
includeAdditionalData?: boolean;
|
16
18
|
order?: OrderByEnum;
|
17
19
|
orderBy?: OrderByResourceEnum;
|
18
20
|
}
|
21
|
+
export interface ResourceToPackageV1 {
|
22
|
+
resourceId: number;
|
23
|
+
packageId: number;
|
24
|
+
package?: PackageV1;
|
25
|
+
}
|