@bondsports/types 2.1.48 → 2.1.50
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/dto/activityTimes.dto.d.ts +3 -0
- package/dist/types/dto/activityTimes.dto.js.map +1 -1
- package/dist/types/entity/ActivityTimes.d.ts +3 -0
- package/dist/types/entity/ActivityTimes.js.map +1 -1
- package/dist/types/resources/dto/instructor.dto.d.ts +18 -5
- package/dist/types/resources/dto/instructor.dto.js +10 -1
- package/dist/types/resources/dto/instructor.dto.js.map +1 -1
- package/dist/types/resources/dto/resource.dto.d.ts +17 -1
- package/dist/types/resources/dto/resource.dto.js +7 -1
- package/dist/types/resources/dto/resource.dto.js.map +1 -1
- package/dist/types/resources/dto/space.dto.d.ts +15 -1
- package/dist/types/resources/dto/space.dto.js +7 -1
- package/dist/types/resources/dto/space.dto.js.map +1 -1
- package/dist/types/resources/entities/Resource.d.ts +2 -0
- package/dist/types/resources/entities/Resource.js.map +1 -1
- package/dist/types/resources/entities/ResourcesDependency.d.ts +5 -0
- package/dist/types/resources/entities/ResourcesDependency.js +8 -0
- package/dist/types/resources/entities/ResourcesDependency.js.map +1 -0
- package/dist/types/resources/entities/index.d.ts +1 -1
- package/dist/types/resources/entities/index.js +1 -1
- package/dist/types/resources/entities/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/resources/entities/SpacesDependency.d.ts +0 -5
- package/dist/types/resources/entities/SpacesDependency.js +0 -8
- package/dist/types/resources/entities/SpacesDependency.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"activityTimes.dto.js","sourceRoot":"","sources":["../../../src/types/dto/activityTimes.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,qBAAqB;
|
1
|
+
{"version":3,"file":"activityTimes.dto.js","sourceRoot":"","sources":["../../../src/types/dto/activityTimes.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,qBAAqB;CAgBjC;AAhBD,sDAgBC"}
|
@@ -9,6 +9,9 @@ export declare class ActivityTimes extends BondBaseEntity {
|
|
9
9
|
dayOfWeek: number;
|
10
10
|
open: string;
|
11
11
|
close: string;
|
12
|
+
facilityId?: number;
|
13
|
+
groupId?: string;
|
14
|
+
isSameAsFacility: boolean;
|
12
15
|
deletedAt?: Date;
|
13
16
|
program: ProgramSeason;
|
14
17
|
availabilityStartDate: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ActivityTimes.js","sourceRoot":"","sources":["../../../src/types/entity/ActivityTimes.ts"],"names":[],"mappings":";;;AACA,qDAAkD;AAOlD,MAAa,aAAc,SAAQ,+BAAc;
|
1
|
+
{"version":3,"file":"ActivityTimes.js","sourceRoot":"","sources":["../../../src/types/entity/ActivityTimes.ts"],"names":[],"mappings":";;;AACA,qDAAkD;AAOlD,MAAa,aAAc,SAAQ,+BAAc;CA4BhD;AA5BD,sCA4BC"}
|
@@ -3,10 +3,9 @@ import { MediaDto } from '../../media/dto/media.dto';
|
|
3
3
|
import { Slot } from '../../reservations/entities/Slots';
|
4
4
|
import { Addon } from '../../reservations/entities/Addon';
|
5
5
|
import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
|
6
|
-
import { ActivityTimesDto } from '../../programs-seasons/dto/program-seasons.dto';
|
7
6
|
import { AddressDto, FacilityDto } from '../../dto/facilities.dto';
|
8
7
|
import { BasicActivityTimesDto } from '../../dto/activityTimes.dto';
|
9
|
-
import { ResourceDependenciesDto } from './resource.dto';
|
8
|
+
import { ResourceDependenciesDto, ResourceScheduleDto, UpdateResourceDto } from './resource.dto';
|
10
9
|
export declare class InstructorResourceDto {
|
11
10
|
id: number;
|
12
11
|
organizationId: number;
|
@@ -25,7 +24,7 @@ export declare class InstructorResourceDto {
|
|
25
24
|
ages?: ResourceAgesEnum;
|
26
25
|
userId: number;
|
27
26
|
status: ActivityEnum;
|
28
|
-
|
27
|
+
schedule?: ResourceScheduleDto[];
|
29
28
|
facilities?: FacilityDto[];
|
30
29
|
slots?: Slot[];
|
31
30
|
addons?: Addon[];
|
@@ -42,8 +41,6 @@ export declare class InstructorResourceDto {
|
|
42
41
|
export declare class CreateInstructorDto extends ResourceDependenciesDto {
|
43
42
|
description?: string;
|
44
43
|
longDescription?: string;
|
45
|
-
activityTimes: BasicActivityTimesDto[];
|
46
|
-
facilitiesIds: number[];
|
47
44
|
resourceGroupId?: number;
|
48
45
|
programTypes?: ProgramTypesEnum[];
|
49
46
|
ages?: ResourceAgesEnum;
|
@@ -52,4 +49,20 @@ export declare class CreateInstructorDto extends ResourceDependenciesDto {
|
|
52
49
|
status?: ActivityEnum;
|
53
50
|
sports?: SportsEnum[];
|
54
51
|
isBookableOnline?: boolean;
|
52
|
+
schedule: FacilitySchedule[];
|
53
|
+
}
|
54
|
+
export declare class UpdateInstructorDto extends UpdateResourceDto {
|
55
|
+
programTypes?: ProgramTypesEnum[];
|
56
|
+
schedule?: FacilitySchedule[];
|
57
|
+
}
|
58
|
+
export declare class UpdateInstructorsDto {
|
59
|
+
data: UpdateInstructorDto[];
|
60
|
+
}
|
61
|
+
export declare class FacilitySchedule {
|
62
|
+
isAllFacilities?: boolean;
|
63
|
+
excludedFacilities?: number[];
|
64
|
+
includedFacilities?: number[];
|
65
|
+
sameAsFacility?: boolean;
|
66
|
+
groupId?: string;
|
67
|
+
activityTimes: BasicActivityTimesDto[];
|
55
68
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CreateInstructorDto = exports.InstructorResourceDto = void 0;
|
3
|
+
exports.FacilitySchedule = exports.UpdateInstructorsDto = exports.UpdateInstructorDto = exports.CreateInstructorDto = exports.InstructorResourceDto = void 0;
|
4
4
|
const resource_dto_1 = require("./resource.dto");
|
5
5
|
class InstructorResourceDto {
|
6
6
|
}
|
@@ -8,4 +8,13 @@ exports.InstructorResourceDto = InstructorResourceDto;
|
|
8
8
|
class CreateInstructorDto extends resource_dto_1.ResourceDependenciesDto {
|
9
9
|
}
|
10
10
|
exports.CreateInstructorDto = CreateInstructorDto;
|
11
|
+
class UpdateInstructorDto extends resource_dto_1.UpdateResourceDto {
|
12
|
+
}
|
13
|
+
exports.UpdateInstructorDto = UpdateInstructorDto;
|
14
|
+
class UpdateInstructorsDto {
|
15
|
+
}
|
16
|
+
exports.UpdateInstructorsDto = UpdateInstructorsDto;
|
17
|
+
class FacilitySchedule {
|
18
|
+
}
|
19
|
+
exports.FacilitySchedule = FacilitySchedule;
|
11
20
|
//# sourceMappingURL=instructor.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"instructor.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/instructor.dto.ts"],"names":[],"mappings":";;;AAeA,
|
1
|
+
{"version":3,"file":"instructor.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/instructor.dto.ts"],"names":[],"mappings":";;;AAeA,iDAAiG;AAEjG,MAAa,qBAAqB;CA4DjC;AA5DD,sDA4DC;AAED,MAAa,mBAAoB,SAAQ,sCAAuB;CAsB/D;AAtBD,kDAsBC;AAED,MAAa,mBAAoB,SAAQ,gCAAiB;CAIzD;AAJD,kDAIC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,gBAAgB;CAY5B;AAZD,4CAYC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IdAndNameDto, IncludeAdditionalDataDto } from '../../dto/general.dto';
|
2
|
-
import { ActivityEnum, AmenitiesEnum, OrderByEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SportsEnum, SurfacesEnum } from '../../services/enums.service';
|
2
|
+
import { ActivityEnum, AmenitiesEnum, OrderByEnum, ProgramTypesEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SportsEnum, SurfacesEnum } from '../../services/enums.service';
|
3
3
|
import { Slot } from '../../reservations/entities/Slots';
|
4
4
|
import { ActivityTimesDto } from '../../programs-seasons/dto/program-seasons.dto';
|
5
5
|
import { Addon } from '../../reservations/entities/Addon';
|
@@ -84,3 +84,19 @@ export declare class UpdateResourceDetailsDto {
|
|
84
84
|
export declare class ByResourceTypeDto {
|
85
85
|
resourceType: ResourceTypeEnum;
|
86
86
|
}
|
87
|
+
export declare class ResourceScheduleDto {
|
88
|
+
activityTimes: ActivityTimesDto[];
|
89
|
+
}
|
90
|
+
export declare class UpdateResourceDto {
|
91
|
+
id: number;
|
92
|
+
description?: string;
|
93
|
+
longDescription?: string;
|
94
|
+
resourceGroupId?: number;
|
95
|
+
programTypes?: ProgramTypesEnum[];
|
96
|
+
ages?: ResourceAgesEnum;
|
97
|
+
isAddon?: boolean;
|
98
|
+
userId?: number;
|
99
|
+
status?: ActivityEnum;
|
100
|
+
sports?: SportsEnum[];
|
101
|
+
isBookableOnline?: boolean;
|
102
|
+
}
|
@@ -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.ByOrganizationFacilityIdDto = exports.ByOrganizationIdAndResourceTypeDto = exports.GetResourceByIdOptionsDto = exports.GetResourcesOfFacilityByTypeDto = exports.ResourceDependenciesDto = exports.SpaceResourceDto = exports.SimpleResourceDto = exports.ResourceDto = void 0;
|
3
|
+
exports.UpdateResourceDto = exports.ResourceScheduleDto = 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 {
|
@@ -39,4 +39,10 @@ exports.UpdateResourceDetailsDto = UpdateResourceDetailsDto;
|
|
39
39
|
class ByResourceTypeDto {
|
40
40
|
}
|
41
41
|
exports.ByResourceTypeDto = ByResourceTypeDto;
|
42
|
+
class ResourceScheduleDto {
|
43
|
+
}
|
44
|
+
exports.ResourceScheduleDto = ResourceScheduleDto;
|
45
|
+
class UpdateResourceDto {
|
46
|
+
}
|
47
|
+
exports.UpdateResourceDto = UpdateResourceDto;
|
42
48
|
//# sourceMappingURL=resource.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA+E;
|
1
|
+
{"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA+E;AAqB/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;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,iBAAiB;CAsB7B;AAtBD,8CAsBC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { BasicActivityTimesDto } from '../../dto/activityTimes.dto';
|
2
2
|
import { PaginationQuery } from '../../dto/general.dto';
|
3
3
|
import { ActivityEnum, ResourceAgesEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SurfacesEnum } from '../../services/enums.service';
|
4
|
-
import { ResourceDependenciesDto } from './resource.dto';
|
4
|
+
import { ResourceDependenciesDto, UpdateResourceDto } from './resource.dto';
|
5
5
|
export declare class SpaceByIdDto {
|
6
6
|
spaceId: number;
|
7
7
|
}
|
@@ -50,3 +50,17 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
|
|
50
50
|
types?: ResourceTypeEnum[];
|
51
51
|
resourcesIds?: number[];
|
52
52
|
}
|
53
|
+
export declare class UpdateSpaceDto extends UpdateResourceDto {
|
54
|
+
name?: string;
|
55
|
+
amenities?: number[];
|
56
|
+
properties?: SpacePropertiesEnum;
|
57
|
+
width?: number;
|
58
|
+
length?: number;
|
59
|
+
surface?: SurfacesEnum;
|
60
|
+
spaceType?: ResourceSubTypeEnum;
|
61
|
+
activityTimes?: BasicActivityTimesDto[];
|
62
|
+
facilitiesIds?: number[];
|
63
|
+
}
|
64
|
+
export declare class UpdateSpacesDto {
|
65
|
+
data: UpdateSpaceDto[];
|
66
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.FindResourcesOptionsDto = exports.FacilitySlotsScheduleQueryParams = exports.SaveSpaceDependenciesDto = exports.UpdateSpaceRelationshipsDto = exports.UpdateSpaceTimesDto = exports.UpdateSpacePropertiesDto = exports.CreateSpaceDto = exports.SpaceByIdDto = void 0;
|
3
|
+
exports.UpdateSpacesDto = exports.UpdateSpaceDto = exports.FindResourcesOptionsDto = exports.FacilitySlotsScheduleQueryParams = exports.SaveSpaceDependenciesDto = exports.UpdateSpaceRelationshipsDto = exports.UpdateSpaceTimesDto = exports.UpdateSpacePropertiesDto = exports.CreateSpaceDto = exports.SpaceByIdDto = void 0;
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
5
5
|
const resource_dto_1 = require("./resource.dto");
|
6
6
|
class SpaceByIdDto {
|
@@ -27,4 +27,10 @@ exports.FacilitySlotsScheduleQueryParams = FacilitySlotsScheduleQueryParams;
|
|
27
27
|
class FindResourcesOptionsDto extends general_dto_1.PaginationQuery {
|
28
28
|
}
|
29
29
|
exports.FindResourcesOptionsDto = FindResourcesOptionsDto;
|
30
|
+
class UpdateSpaceDto extends resource_dto_1.UpdateResourceDto {
|
31
|
+
}
|
32
|
+
exports.UpdateSpaceDto = UpdateSpaceDto;
|
33
|
+
class UpdateSpacesDto {
|
34
|
+
}
|
35
|
+
exports.UpdateSpacesDto = UpdateSpacesDto;
|
30
36
|
//# sourceMappingURL=space.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAS/D,
|
1
|
+
{"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAS/D,iDAAsG;AAEtG,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;CAQ3D;AARD,0DAQC;AAED,MAAa,cAAe,SAAQ,gCAAiB;CAkBpD;AAlBD,wCAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC"}
|
@@ -9,6 +9,7 @@ import { Addon } from '../../reservations/entities/Addon';
|
|
9
9
|
import { Instructor } from './Instructor';
|
10
10
|
import { Space } from './Space';
|
11
11
|
import { User } from '../../user/entities/User';
|
12
|
+
import { ResourceScheduleDto } from '../dto/resource.dto';
|
12
13
|
export declare class Resource extends OrganizationConnectionBaseEntity {
|
13
14
|
name: string;
|
14
15
|
resourceType: ResourceTypeEnum;
|
@@ -42,4 +43,5 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
|
|
42
43
|
instructor?: Instructor;
|
43
44
|
space?: Space;
|
44
45
|
user: User;
|
46
|
+
schedule?: ResourceScheduleDto[];
|
45
47
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Resource.ts"],"names":[],"mappings":";;;AAuBA,oGAAiG;
|
1
|
+
{"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Resource.ts"],"names":[],"mappings":";;;AAuBA,oGAAiG;AAWjG,MAAa,QAAS,SAAQ,mEAAgC;CAyE7D;AAzED,4BAyEC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ResourcesDependency = void 0;
|
4
|
+
const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
|
5
|
+
class ResourcesDependency extends BondBaseEntity_1.BondBaseEntity {
|
6
|
+
}
|
7
|
+
exports.ResourcesDependency = ResourcesDependency;
|
8
|
+
//# sourceMappingURL=ResourcesDependency.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ResourcesDependency.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/ResourcesDependency.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAE7D,MAAa,mBAAoB,SAAQ,+BAAc;CAItD;AAJD,kDAIC"}
|
@@ -16,6 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./Instructor"), exports);
|
18
18
|
__exportStar(require("./Resource"), exports);
|
19
|
+
__exportStar(require("./ResourcesDependency"), exports);
|
19
20
|
__exportStar(require("./Space"), exports);
|
20
|
-
__exportStar(require("./SpacesDependency"), exports);
|
21
21
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,6CAA2B;AAC3B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,6CAA2B;AAC3B,wDAAsC;AACtC,0CAAwB"}
|
package/package.json
CHANGED
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SpacesDependency = void 0;
|
4
|
-
const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
|
5
|
-
class SpacesDependency extends BondBaseEntity_1.BondBaseEntity {
|
6
|
-
}
|
7
|
-
exports.SpacesDependency = SpacesDependency;
|
8
|
-
//# sourceMappingURL=SpacesDependency.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SpacesDependency.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/SpacesDependency.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAE7D,MAAa,gBAAiB,SAAQ,+BAAc;CAInD;AAJD,4CAIC"}
|