@bondsports/types 2.1.18 → 2.1.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/attendance/dto/attendance.dto.d.ts +0 -1
  3. package/dist/types/attendance/dto/attendance.dto.js.map +1 -1
  4. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +1 -1
  5. package/dist/types/dto/events.dto.d.ts +1 -1
  6. package/dist/types/dto/facilities.dto.d.ts +1 -0
  7. package/dist/types/dto/facilities.dto.js.map +1 -1
  8. package/dist/types/dto/general.dto.d.ts +3 -0
  9. package/dist/types/dto/general.dto.js +4 -1
  10. package/dist/types/dto/general.dto.js.map +1 -1
  11. package/dist/types/dto/product-variants.dto.d.ts +4 -2
  12. package/dist/types/dto/product-variants.dto.js.map +1 -1
  13. package/dist/types/dto/stripe.dto.d.ts +0 -4
  14. package/dist/types/dto/stripe.dto.js +1 -4
  15. package/dist/types/dto/stripe.dto.js.map +1 -1
  16. package/dist/types/entity/Facility.d.ts +1 -1
  17. package/dist/types/entity/LineItems.d.ts +1 -0
  18. package/dist/types/entity/LineItems.js.map +1 -1
  19. package/dist/types/entity/PurchasedResources.d.ts +1 -1
  20. package/dist/types/entity/PurchasedResources.js.map +1 -1
  21. package/dist/types/entity/user-payment-method.d.ts +1 -0
  22. package/dist/types/entity/user-payment-method.js.map +1 -1
  23. package/dist/types/future-installments/dto/future-installments.dto.d.ts +1 -0
  24. package/dist/types/future-installments/dto/future-installments.dto.js.map +1 -1
  25. package/dist/types/future-installments/dto/get-future-installment.dto.d.ts +4 -4
  26. package/dist/types/future-installments/dto/get-future-installment.dto.js +2 -2
  27. package/dist/types/future-installments/dto/get-future-installment.dto.js.map +1 -1
  28. package/dist/types/index.d.ts +1 -1
  29. package/dist/types/index.js +1 -1
  30. package/dist/types/index.js.map +1 -1
  31. package/dist/types/media/dto/media.dto.d.ts +11 -0
  32. package/dist/types/media/dto/media.dto.js.map +1 -1
  33. package/dist/types/notifications/types/enums/notification.enums.d.ts +2 -1
  34. package/dist/types/notifications/types/enums/notification.enums.js +1 -0
  35. package/dist/types/notifications/types/enums/notification.enums.js.map +1 -1
  36. package/dist/types/payment/dto/payment-plan.dto.d.ts +2 -1
  37. package/dist/types/payment/dto/payment-plan.dto.js.map +1 -1
  38. package/dist/types/payment/dto/payment.dto.d.ts +2 -2
  39. package/dist/types/payment/dto/payment.dto.js.map +1 -1
  40. package/dist/types/payment/entities/FutureInstallment.d.ts +3 -0
  41. package/dist/types/payment/entities/FutureInstallment.js.map +1 -1
  42. package/dist/types/payment/entities/Payment.d.ts +2 -0
  43. package/dist/types/payment/entities/Payment.js.map +1 -1
  44. package/dist/types/payment/types/interfaces/discount.interfaces.d.ts +2 -4
  45. package/dist/types/payment/types/interfaces/index.d.ts +1 -0
  46. package/dist/types/payment/types/interfaces/index.js +1 -0
  47. package/dist/types/payment/types/interfaces/index.js.map +1 -1
  48. package/dist/types/payment/types/interfaces/user-payment-method.interfaces.d.ts +5 -0
  49. package/dist/types/payment/types/interfaces/user-payment-method.interfaces.js +3 -0
  50. package/dist/types/payment/types/interfaces/user-payment-method.interfaces.js.map +1 -0
  51. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +1 -1
  52. package/dist/types/programs/dto/program.dto.d.ts +1 -1
  53. package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +1 -1
  54. package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +1 -1
  55. package/dist/types/purchase/dto/purchase.dto.d.ts +1 -1
  56. package/dist/types/purchase/dto/purchase.dto.js +1 -1
  57. package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
  58. package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +2 -3
  59. package/dist/types/reservations/entities/Addon.d.ts +1 -1
  60. package/dist/types/reservations/entities/Series.d.ts +1 -1
  61. package/dist/types/reservations/entities/Slots.d.ts +1 -1
  62. package/dist/types/{spaces → resources}/dto/index.d.ts +1 -0
  63. package/dist/types/{spaces → resources}/dto/index.js +1 -0
  64. package/dist/types/resources/dto/index.js.map +1 -0
  65. package/dist/types/resources/dto/instructor.dto.d.ts +54 -0
  66. package/dist/types/resources/dto/instructor.dto.js +11 -0
  67. package/dist/types/resources/dto/instructor.dto.js.map +1 -0
  68. package/dist/types/resources/dto/resource.dto.d.ts +85 -0
  69. package/dist/types/resources/dto/resource.dto.js +42 -0
  70. package/dist/types/resources/dto/resource.dto.js.map +1 -0
  71. package/dist/types/{spaces → resources}/dto/space.dto.d.ts +7 -14
  72. package/dist/types/{spaces → resources}/dto/space.dto.js +3 -5
  73. package/dist/types/resources/dto/space.dto.js.map +1 -0
  74. package/dist/types/resources/entities/Instructor.d.ts +11 -0
  75. package/dist/types/resources/entities/Instructor.js +8 -0
  76. package/dist/types/resources/entities/Instructor.js.map +1 -0
  77. package/dist/types/{spaces → resources}/entities/Resource.d.ts +8 -2
  78. package/dist/types/resources/entities/Resource.js.map +1 -0
  79. package/dist/types/resources/entities/Space.d.ts +14 -0
  80. package/dist/types/resources/entities/Space.js +8 -0
  81. package/dist/types/resources/entities/Space.js.map +1 -0
  82. package/dist/types/resources/entities/SpacesDependency.js.map +1 -0
  83. package/dist/types/{spaces → resources}/entities/index.d.ts +2 -0
  84. package/dist/types/{spaces → resources}/entities/index.js +2 -0
  85. package/dist/types/resources/entities/index.js.map +1 -0
  86. package/dist/types/resources/index.js.map +1 -0
  87. package/dist/types/resources/types/enums/index.d.ts +1 -0
  88. package/dist/types/resources/types/enums/index.js +18 -0
  89. package/dist/types/resources/types/enums/index.js.map +1 -0
  90. package/dist/types/resources/types/enums/resources.enums.d.ts +7 -0
  91. package/dist/types/resources/types/enums/resources.enums.js +12 -0
  92. package/dist/types/resources/types/enums/resources.enums.js.map +1 -0
  93. package/dist/types/{spaces → resources}/types/index.d.ts +1 -0
  94. package/dist/types/{spaces → resources}/types/index.js +1 -0
  95. package/dist/types/resources/types/index.js.map +1 -0
  96. package/dist/types/resources/types/interfaces/index.js.map +1 -0
  97. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +18 -0
  98. package/dist/types/resources/types/interfaces/resource.interfaces.js.map +1 -0
  99. package/dist/types/roles/dto/role.dto.d.ts +5 -0
  100. package/dist/types/roles/dto/role.dto.js +4 -1
  101. package/dist/types/roles/dto/role.dto.js.map +1 -1
  102. package/dist/types/roles/entities/Role.d.ts +1 -0
  103. package/dist/types/roles/entities/Role.js.map +1 -1
  104. package/dist/types/roles/index.d.ts +1 -0
  105. package/dist/types/roles/index.js +1 -0
  106. package/dist/types/roles/index.js.map +1 -1
  107. package/dist/types/roles/types/index.d.ts +1 -0
  108. package/dist/types/roles/types/index.js +18 -0
  109. package/dist/types/roles/types/index.js.map +1 -0
  110. package/dist/types/roles/types/role.enums.d.ts +12 -0
  111. package/dist/types/roles/types/role.enums.js +14 -0
  112. package/dist/types/roles/types/role.enums.js.map +1 -0
  113. package/dist/types/services/enums.service.d.ts +4 -2
  114. package/dist/types/services/enums.service.js +2 -0
  115. package/dist/types/services/enums.service.js.map +1 -1
  116. package/dist/types/user/dto/user.dto.d.ts +1 -1
  117. package/package.json +1 -1
  118. package/dist/types/spaces/dto/index.js.map +0 -1
  119. package/dist/types/spaces/dto/resource.dto.d.ts +0 -8
  120. package/dist/types/spaces/dto/resource.dto.js +0 -11
  121. package/dist/types/spaces/dto/resource.dto.js.map +0 -1
  122. package/dist/types/spaces/dto/space.dto.js.map +0 -1
  123. package/dist/types/spaces/entities/Resource.js.map +0 -1
  124. package/dist/types/spaces/entities/SpacesDependency.js.map +0 -1
  125. package/dist/types/spaces/entities/index.js.map +0 -1
  126. package/dist/types/spaces/index.js.map +0 -1
  127. package/dist/types/spaces/types/index.js.map +0 -1
  128. package/dist/types/spaces/types/interfaces/index.js.map +0 -1
  129. package/dist/types/spaces/types/interfaces/resource.interfaces.d.ts +0 -6
  130. package/dist/types/spaces/types/interfaces/resource.interfaces.js.map +0 -1
  131. /package/dist/types/{spaces → resources}/entities/Resource.js +0 -0
  132. /package/dist/types/{spaces → resources}/entities/SpacesDependency.d.ts +0 -0
  133. /package/dist/types/{spaces → resources}/entities/SpacesDependency.js +0 -0
  134. /package/dist/types/{spaces → resources}/index.d.ts +0 -0
  135. /package/dist/types/{spaces → resources}/index.js +0 -0
  136. /package/dist/types/{spaces → resources}/types/interfaces/index.d.ts +0 -0
  137. /package/dist/types/{spaces → resources}/types/interfaces/index.js +0 -0
  138. /package/dist/types/{spaces → resources}/types/interfaces/resource.interfaces.js +0 -0
@@ -5,7 +5,7 @@ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConne
5
5
  import { ProductsUsers } from '../../entity/ProductsUsers';
6
6
  import { Product } from '../../product-pricing/entities/Product';
7
7
  import { ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../../services/enums.service';
8
- import { Resource } from '../../spaces/entities/Resource';
8
+ import { Resource } from '../../resources/entities/Resource';
9
9
  import { AddonMetadata } from '../interfaces/reservation';
10
10
  import { Addon } from './Addon';
11
11
  import { Reservation } from './Reservations';
@@ -1,2 +1,3 @@
1
+ export * from './instructor.dto';
1
2
  export * from './resource.dto';
2
3
  export * from './space.dto';
@@ -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("./instructor.dto"), exports);
17
18
  __exportStar(require("./resource.dto"), exports);
18
19
  __exportStar(require("./space.dto"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,iDAA+B;AAC/B,8CAA4B"}
@@ -0,0 +1,54 @@
1
+ import { ActivityEnum, ProgramTypesEnum, ResourceAgesEnum, ResourceTypeEnum, SportsEnum } from '../../services/enums.service';
2
+ import { MediaDto } from '../../media/dto/media.dto';
3
+ import { Slot } from '../../reservations/entities/Slots';
4
+ import { Addon } from '../../reservations/entities/Addon';
5
+ import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
6
+ import { ActivityTimesDto } from '../../programs-seasons/dto/program-seasons.dto';
7
+ import { FacilityDto } from '../../dto/facilities.dto';
8
+ import { BasicActivityTimesDto } from '../../dto/activityTimes.dto';
9
+ import { ResourceDependenciesDto } from './resource.dto';
10
+ export declare class InstructorResourceDto {
11
+ id: number;
12
+ organizationId: number;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ deletedAt?: Date;
16
+ name: string;
17
+ resourceType: ResourceTypeEnum;
18
+ description?: string;
19
+ longDescription?: string;
20
+ mainMediaId?: number;
21
+ media?: MediaDto;
22
+ sports: SportsEnum[];
23
+ parentResourceId?: number;
24
+ ordinal?: number;
25
+ isAddOn?: boolean;
26
+ ages?: ResourceAgesEnum;
27
+ userId: number;
28
+ status: ActivityEnum;
29
+ activityTimes?: ActivityTimesDto[];
30
+ facilities?: FacilityDto[];
31
+ slots?: Slot[];
32
+ addons?: Addon[];
33
+ purchasedResources?: PurchasedResourceDto[];
34
+ linkSEO: string;
35
+ email?: string;
36
+ phoneNumber?: string;
37
+ programTypes?: ProgramTypesEnum[];
38
+ }
39
+ export declare class CreateInstructorDto extends ResourceDependenciesDto {
40
+ name: string;
41
+ description?: string;
42
+ longDescription?: string;
43
+ activityTimes: BasicActivityTimesDto[];
44
+ facilitiesIds: number[];
45
+ resourceGroupId?: number;
46
+ programTypes?: ProgramTypesEnum[];
47
+ ages?: ResourceAgesEnum;
48
+ isAddon?: boolean;
49
+ userId: number;
50
+ status?: ActivityEnum;
51
+ phoneNumber?: string;
52
+ email?: string;
53
+ sports: SportsEnum[];
54
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateInstructorDto = exports.InstructorResourceDto = void 0;
4
+ const resource_dto_1 = require("./resource.dto");
5
+ class InstructorResourceDto {
6
+ }
7
+ exports.InstructorResourceDto = InstructorResourceDto;
8
+ class CreateInstructorDto extends resource_dto_1.ResourceDependenciesDto {
9
+ }
10
+ exports.CreateInstructorDto = CreateInstructorDto;
11
+ //# sourceMappingURL=instructor.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instructor.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/instructor.dto.ts"],"names":[],"mappings":";;;AAeA,iDAAyD;AAEzD,MAAa,qBAAqB;CAsDjC;AAtDD,sDAsDC;AAED,MAAa,mBAAoB,SAAQ,sCAAuB;CA4B/D;AA5BD,kDA4BC"}
@@ -0,0 +1,85 @@
1
+ import { IdAndNameDto, IncludeAdditionalDataDto } from '../../dto/general.dto';
2
+ import { ActivityEnum, AmenitiesEnum, OrderByEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SportsEnum, SurfacesEnum } from '../../services/enums.service';
3
+ import { Slot } from '../../reservations/entities/Slots';
4
+ import { ActivityTimesDto } from '../../programs-seasons/dto/program-seasons.dto';
5
+ import { Addon } from '../../reservations/entities/Addon';
6
+ import { FacilityDto } from '../../dto/facilities.dto';
7
+ import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
8
+ import { MediaDto } from '../../media/dto/media.dto';
9
+ import { IGetFacilityResourcesOptions, IGetResourceByIdsOptions } from '../types/interfaces/resource.interfaces';
10
+ import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
11
+ import { OrderByResourceEnum } from '../types/enums/resources.enums';
12
+ export declare class ResourceDto {
13
+ id: number;
14
+ type: ResourceNameTypeEnum;
15
+ }
16
+ export declare class SimpleResourceDto extends IdAndNameDto {
17
+ }
18
+ export declare class SpaceResourceDto extends IdAndNameDto {
19
+ organizationId: number;
20
+ createdAt: Date;
21
+ updatedAt: Date;
22
+ resourceType: ResourceTypeEnum;
23
+ resourceSubType: ResourceSubTypeEnum;
24
+ description?: string;
25
+ longDescription?: string;
26
+ surface?: SurfacesEnum;
27
+ properties?: SpacePropertiesEnum[];
28
+ mainMediaId?: number;
29
+ mainMedia?: MediaDto;
30
+ sports: SportsEnum[];
31
+ width?: number;
32
+ length?: number;
33
+ amenities?: AmenitiesEnum[];
34
+ parentResourceId?: number;
35
+ ordinal?: number;
36
+ isAddOn: boolean;
37
+ ages?: ResourceAgesEnum;
38
+ deletedAt?: Date;
39
+ userId?: number;
40
+ status?: ActivityEnum;
41
+ activityTimes?: ActivityTimesDto[];
42
+ facilities?: FacilityDto[];
43
+ slots?: Slot[];
44
+ addons?: Addon[];
45
+ facilityId: number;
46
+ facility?: FacilityDto;
47
+ purchasedResources?: PurchasedResourceDto[];
48
+ linkSEO: string;
49
+ }
50
+ export declare class ResourceDependenciesDto {
51
+ resourceGroupId?: number;
52
+ blockedResourcesIds?: number[];
53
+ }
54
+ export declare class GetResourcesOfFacilityByTypeDto implements IGetFacilityResourcesOptions {
55
+ includeActivityTimes: boolean;
56
+ includeResourceMetadata: boolean;
57
+ order?: OrderByEnum;
58
+ orderBy: OrderByResourceEnum;
59
+ }
60
+ export declare class GetResourceByIdOptionsDto extends IncludeAdditionalDataDto implements IGetResourceByIdsOptions {
61
+ order?: OrderByEnum;
62
+ orderBy: OrderByResourceEnum;
63
+ }
64
+ export declare class ByOrganizationIdAndResourceTypeDto extends ByOrganizationIdDto {
65
+ resourceType: ResourceTypeEnum;
66
+ }
67
+ export declare class ByOrganizationFacilityIdsAndResourceTypeDto extends ByOrganizationIdAndResourceTypeDto {
68
+ facilityId: number;
69
+ }
70
+ export declare class ByOrganizationIdAndResourceTypeAndIdDto extends ByOrganizationIdAndResourceTypeDto {
71
+ resourceId: number;
72
+ }
73
+ export declare class ByOrganizationIdAndResourceId extends ByOrganizationIdDto {
74
+ resourceId: number;
75
+ }
76
+ export declare class UpdateResourceDetailsDto {
77
+ name: string;
78
+ description?: string;
79
+ longDescription?: string;
80
+ isAddon?: boolean;
81
+ facilitiesIds: number[];
82
+ }
83
+ export declare class ByResourceTypeDto {
84
+ resourceType: ResourceTypeEnum;
85
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
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;
4
+ const general_dto_1 = require("../../dto/general.dto");
5
+ const organization_dto_1 = require("../../organization/dto/organization.dto");
6
+ class ResourceDto {
7
+ }
8
+ exports.ResourceDto = ResourceDto;
9
+ class SimpleResourceDto extends general_dto_1.IdAndNameDto {
10
+ }
11
+ exports.SimpleResourceDto = SimpleResourceDto;
12
+ class SpaceResourceDto extends general_dto_1.IdAndNameDto {
13
+ }
14
+ exports.SpaceResourceDto = SpaceResourceDto;
15
+ class ResourceDependenciesDto {
16
+ }
17
+ exports.ResourceDependenciesDto = ResourceDependenciesDto;
18
+ class GetResourcesOfFacilityByTypeDto {
19
+ }
20
+ exports.GetResourcesOfFacilityByTypeDto = GetResourcesOfFacilityByTypeDto;
21
+ class GetResourceByIdOptionsDto extends general_dto_1.IncludeAdditionalDataDto {
22
+ }
23
+ exports.GetResourceByIdOptionsDto = GetResourceByIdOptionsDto;
24
+ class ByOrganizationIdAndResourceTypeDto extends organization_dto_1.ByOrganizationIdDto {
25
+ }
26
+ exports.ByOrganizationIdAndResourceTypeDto = ByOrganizationIdAndResourceTypeDto;
27
+ class ByOrganizationFacilityIdsAndResourceTypeDto extends ByOrganizationIdAndResourceTypeDto {
28
+ }
29
+ exports.ByOrganizationFacilityIdsAndResourceTypeDto = ByOrganizationFacilityIdsAndResourceTypeDto;
30
+ class ByOrganizationIdAndResourceTypeAndIdDto extends ByOrganizationIdAndResourceTypeDto {
31
+ }
32
+ exports.ByOrganizationIdAndResourceTypeAndIdDto = ByOrganizationIdAndResourceTypeAndIdDto;
33
+ class ByOrganizationIdAndResourceId extends organization_dto_1.ByOrganizationIdDto {
34
+ }
35
+ exports.ByOrganizationIdAndResourceId = ByOrganizationIdAndResourceId;
36
+ class UpdateResourceDetailsDto {
37
+ }
38
+ exports.UpdateResourceDetailsDto = UpdateResourceDetailsDto;
39
+ class ByResourceTypeDto {
40
+ }
41
+ exports.ByResourceTypeDto = ByResourceTypeDto;
42
+ //# sourceMappingURL=resource.dto.js.map
@@ -0,0 +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,10 +1,12 @@
1
1
  import { BasicActivityTimesDto } from '../../dto/activityTimes.dto';
2
2
  import { PaginationQuery } from '../../dto/general.dto';
3
- import { ResourceAgesEnum, ResourceSubTypeEnum, SpacePropertiesEnum, SurfacesEnum } from '../../services/enums.service';
3
+ import { ActivityEnum, ResourceAgesEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SurfacesEnum } from '../../services/enums.service';
4
+ import { ResourceDependenciesDto } from './resource.dto';
4
5
  export declare class SpaceByIdDto {
5
6
  spaceId: number;
6
7
  }
7
- export declare class CreateSpaceDto {
8
+ export declare class CreateSpaceDto extends ResourceDependenciesDto {
9
+ status?: ActivityEnum;
8
10
  name: string;
9
11
  sports: number[];
10
12
  description?: string;
@@ -19,15 +21,6 @@ export declare class CreateSpaceDto {
19
21
  amenities: number[];
20
22
  activityTimes: BasicActivityTimesDto[];
21
23
  facilitiesIds: number[];
22
- resourceGroupId?: number;
23
- blockedResourcesIds?: number[];
24
- }
25
- export declare class UpdateSpaceDetailsDto {
26
- name: string;
27
- description?: string;
28
- longDescription?: string;
29
- isAddon?: boolean;
30
- facilitiesIds: number[];
31
24
  }
32
25
  export declare class UpdateSpacePropertiesDto {
33
26
  properties: SpacePropertiesEnum;
@@ -53,7 +46,7 @@ export declare class FacilitySlotsScheduleQueryParams {
53
46
  }
54
47
  export declare class FindResourcesOptionsDto extends PaginationQuery {
55
48
  nameSearch?: string;
56
- facilitiesIds?: string;
57
- types?: string;
58
- resourcesIds?: string;
49
+ facilitiesIds?: number[];
50
+ types?: ResourceTypeEnum[];
51
+ resourcesIds?: number[];
59
52
  }
@@ -1,16 +1,14 @@
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.UpdateSpaceDetailsDto = exports.CreateSpaceDto = exports.SpaceByIdDto = void 0;
3
+ 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
+ const resource_dto_1 = require("./resource.dto");
5
6
  class SpaceByIdDto {
6
7
  }
7
8
  exports.SpaceByIdDto = SpaceByIdDto;
8
- class CreateSpaceDto {
9
+ class CreateSpaceDto extends resource_dto_1.ResourceDependenciesDto {
9
10
  }
10
11
  exports.CreateSpaceDto = CreateSpaceDto;
11
- class UpdateSpaceDetailsDto {
12
- }
13
- exports.UpdateSpaceDetailsDto = UpdateSpaceDetailsDto;
14
12
  class UpdateSpacePropertiesDto {
15
13
  }
16
14
  exports.UpdateSpacePropertiesDto = UpdateSpacePropertiesDto;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAS/D,iDAAmF;AAEnF,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"}
@@ -0,0 +1,11 @@
1
+ import { Resource } from './Resource';
2
+ import { ProgramTypesEnum } from '../../services/enums.service';
3
+ import { BondBaseEntity } from '../../entity/BondBaseEntity';
4
+ export declare class Instructor extends BondBaseEntity {
5
+ deletedAt?: Date;
6
+ resourceId: number;
7
+ programTypes?: ProgramTypesEnum[];
8
+ email?: string;
9
+ phoneNumber?: string;
10
+ resource: Resource;
11
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Instructor = void 0;
4
+ const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
5
+ class Instructor extends BondBaseEntity_1.BondBaseEntity {
6
+ }
7
+ exports.Instructor = Instructor;
8
+ //# sourceMappingURL=Instructor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Instructor.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Instructor.ts"],"names":[],"mappings":";;;AAGA,gEAA6D;AAE7D,MAAa,UAAW,SAAQ,+BAAc;CAY7C;AAZD,gCAYC"}
@@ -1,11 +1,13 @@
1
1
  import { Media } from '../../media/entities/Media';
2
- import { ResourceSubTypeEnum, SurfacesEnum, SpacePropertiesEnum, SportsEnum, AmenitiesEnum, ResourceTypeEnum, ResourceAgesEnum } from '../../services/enums.service';
2
+ import { ResourceSubTypeEnum, SurfacesEnum, SpacePropertiesEnum, SportsEnum, AmenitiesEnum, ResourceTypeEnum, ResourceAgesEnum, ActivityEnum } from '../../services/enums.service';
3
3
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
4
4
  import { Facility } from '../../entity/Facility';
5
5
  import { ActivityTimes } from '../../entity/ActivityTimes';
6
6
  import { PurchasedResource } from '../../entity/PurchasedResources';
7
7
  import { Slot } from '../../reservations/entities/Slots';
8
8
  import { Addon } from '../../reservations/entities/Addon';
9
+ import { Instructor } from './Instructor';
10
+ import { Space } from './Space';
9
11
  export declare class Resource extends OrganizationConnectionBaseEntity {
10
12
  name: string;
11
13
  resourceType: ResourceTypeEnum;
@@ -20,11 +22,13 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
20
22
  width?: number;
21
23
  length?: number;
22
24
  amenities?: AmenitiesEnum[];
23
- parentSpaceId?: number;
25
+ parentResourceId?: number;
24
26
  ordinal?: number;
25
27
  isAddOn: boolean;
26
28
  ages?: ResourceAgesEnum;
27
29
  deletedAt?: Date;
30
+ userId?: number;
31
+ status?: ActivityEnum;
28
32
  activityTimes: ActivityTimes[];
29
33
  facilities: Facility[];
30
34
  slots?: Slot[];
@@ -33,4 +37,6 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
33
37
  facility: Facility;
34
38
  purchasedResources: PurchasedResource[];
35
39
  linkSEO: string;
40
+ instructor?: Instructor;
41
+ space?: Space;
36
42
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Resource.ts"],"names":[],"mappings":";;;AAuBA,oGAAiG;AASjG,MAAa,QAAS,SAAQ,mEAAgC;CAmE7D;AAnED,4BAmEC"}
@@ -0,0 +1,14 @@
1
+ import { AmenitiesEnum, ResourceSubTypeEnum, SpacePropertiesEnum, SurfacesEnum } from '../../services/enums.service';
2
+ import { Resource } from './Resource';
3
+ import { BondBaseEntity } from '../../entity/BondBaseEntity';
4
+ export declare class Space extends BondBaseEntity {
5
+ deletedAt?: Date;
6
+ resourceId: number;
7
+ resourceSubType: ResourceSubTypeEnum;
8
+ amenities?: AmenitiesEnum[];
9
+ width?: number;
10
+ length?: number;
11
+ surface?: SurfacesEnum;
12
+ properties?: SpacePropertiesEnum[];
13
+ resource: Resource;
14
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Space = void 0;
4
+ const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
5
+ class Space extends BondBaseEntity_1.BondBaseEntity {
6
+ }
7
+ exports.Space = Space;
8
+ //# sourceMappingURL=Space.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Space.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Space.ts"],"names":[],"mappings":";;;AAGA,gEAA6D;AAE7D,MAAa,KAAM,SAAQ,+BAAc;CAkBxC;AAlBD,sBAkBC"}
@@ -0,0 +1 @@
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"}
@@ -1,2 +1,4 @@
1
+ export * from './Instructor';
1
2
  export * from './Resource';
3
+ export * from './Space';
2
4
  export * from './SpacesDependency';
@@ -14,6 +14,8 @@ 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("./Instructor"), exports);
17
18
  __exportStar(require("./Resource"), exports);
19
+ __exportStar(require("./Space"), exports);
18
20
  __exportStar(require("./SpacesDependency"), exports);
19
21
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,6CAA2B;AAC3B,0CAAwB;AACxB,qDAAmC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/resources/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './resources.enums';
@@ -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("./resources.enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/resources/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
@@ -0,0 +1,7 @@
1
+ export declare enum OrderByResourceEnum {
2
+ ID = "id",
3
+ NAME = "name",
4
+ CREATED_AT = "createdAt",
5
+ RESOURCE_TYPE = "resourceType",
6
+ STATUS = "status"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderByResourceEnum = void 0;
4
+ var OrderByResourceEnum;
5
+ (function (OrderByResourceEnum) {
6
+ OrderByResourceEnum["ID"] = "id";
7
+ OrderByResourceEnum["NAME"] = "name";
8
+ OrderByResourceEnum["CREATED_AT"] = "createdAt";
9
+ OrderByResourceEnum["RESOURCE_TYPE"] = "resourceType";
10
+ OrderByResourceEnum["STATUS"] = "status";
11
+ })(OrderByResourceEnum = exports.OrderByResourceEnum || (exports.OrderByResourceEnum = {}));
12
+ //# sourceMappingURL=resources.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.enums.js","sourceRoot":"","sources":["../../../../../src/types/resources/types/enums/resources.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC9B,gCAAS,CAAA;IACT,oCAAa,CAAA;IACb,+CAAwB,CAAA;IACxB,qDAA8B,CAAA;IAC9B,wCAAiB,CAAA;AAClB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B"}
@@ -1 +1,2 @@
1
+ export * from './enums';
1
2
  export * from './interfaces';
@@ -14,5 +14,6 @@ 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("./enums"), exports);
17
18
  __exportStar(require("./interfaces"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/resources/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,+CAA6B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/resources/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
@@ -0,0 +1,18 @@
1
+ import { OrderByEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
2
+ import { SimpleResourceDto } from '../../dto/resource.dto';
3
+ import { OrderByResourceEnum } from '../enums/resources.enums';
4
+ export interface ParentResources extends SimpleResourceDto {
5
+ parentId: number;
6
+ parentType?: ResourceNameTypeEnum;
7
+ }
8
+ export interface IGetFacilityResourcesOptions {
9
+ includeActivityTimes?: boolean;
10
+ includeResourceMetadata?: boolean;
11
+ order?: OrderByEnum;
12
+ orderBy?: OrderByResourceEnum;
13
+ }
14
+ export interface IGetResourceByIdsOptions {
15
+ includeAdditionalData?: boolean;
16
+ order?: OrderByEnum;
17
+ orderBy?: OrderByResourceEnum;
18
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/resources/types/interfaces/resource.interfaces.ts"],"names":[],"mappings":""}
@@ -1,5 +1,6 @@
1
1
  import { PermissionDto } from './permission.dto';
2
2
  import { UserRoleDto } from './user-role.dto';
3
+ import { RoleTypeEnum } from '../types/role.enums';
3
4
  export declare class RoleDto {
4
5
  id: number;
5
6
  name: string;
@@ -7,3 +8,7 @@ export declare class RoleDto {
7
8
  permissions: PermissionDto[];
8
9
  usersRoles: UserRoleDto[];
9
10
  }
11
+ export declare class ByOrganizationIdAndRole {
12
+ organizationId: number;
13
+ role: RoleTypeEnum;
14
+ }
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RoleDto = void 0;
3
+ exports.ByOrganizationIdAndRole = exports.RoleDto = void 0;
4
4
  class RoleDto {
5
5
  }
6
6
  exports.RoleDto = RoleDto;
7
+ class ByOrganizationIdAndRole {
8
+ }
9
+ exports.ByOrganizationIdAndRole = ByOrganizationIdAndRole;
7
10
  //# sourceMappingURL=role.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/role.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,OAAO;CAUnB;AAVD,0BAUC"}
1
+ {"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/role.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,OAAO;CAUnB;AAVD,0BAUC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC"}
@@ -4,6 +4,7 @@ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConne
4
4
  export declare class Role extends OrganizationConnectionBaseEntity {
5
5
  name: string;
6
6
  deletedAt?: Date;
7
+ isEditable?: boolean;
7
8
  permissions: Permission[];
8
9
  usersRoles: UserRole[];
9
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Role.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAEjG,MAAa,IAAK,SAAQ,mEAAgC;CAQzD;AARD,oBAQC"}
1
+ {"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Role.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAEjG,MAAa,IAAK,SAAQ,mEAAgC;CAUzD;AAVD,oBAUC"}
@@ -1,2 +1,3 @@
1
1
  export * from './dto';
2
2
  export * from './entities';
3
+ export * from './types';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dto"), exports);
18
18
  __exportStar(require("./entities"), exports);
19
+ __exportStar(require("./types"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/roles/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/roles/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './role.enums';
@@ -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("./role.enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/roles/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
@@ -0,0 +1,12 @@
1
+ export declare enum RoleTypeEnum {
2
+ INSTRUCTOR = "instructor"
3
+ }
4
+ export declare enum AuthRoleEnum {
5
+ BACKOFFICE = "backoffice",
6
+ ADMIN = "admin"
7
+ }
8
+ export declare const RoleTypesEnum: Readonly<{
9
+ BACKOFFICE: AuthRoleEnum.BACKOFFICE;
10
+ ADMIN: AuthRoleEnum.ADMIN;
11
+ INSTRUCTOR: RoleTypeEnum.INSTRUCTOR;
12
+ }>;