@bondsports/types 2.2.14 → 2.2.16
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/activities/dto/activity.dto.js.map +1 -1
- package/dist/types/customers/dto/createOrEditCustomer.dto.js.map +1 -1
- package/dist/types/entity/ProductResource.d.ts +4 -2
- package/dist/types/entity/ProductResource.js.map +1 -1
- package/dist/types/payment/types/consts/user-payment-method.consts.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +21 -13
- package/dist/types/product-pricing/dto/product.dto.js +4 -1
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/resources/dto/instructor.dto.d.ts +4 -31
- package/dist/types/resources/dto/instructor.dto.js +1 -1
- package/dist/types/resources/dto/instructor.dto.js.map +1 -1
- package/dist/types/resources/dto/resource.dto.d.ts +9 -15
- 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/dto/space.dto.d.ts +14 -2
- package/dist/types/resources/dto/space.dto.js +4 -1
- package/dist/types/resources/dto/space.dto.js.map +1 -1
- package/dist/types/resources/entities/Resource.d.ts +9 -7
- package/dist/types/resources/entities/Resource.js.map +1 -1
- package/dist/types/resources/types/consts/resource.consts.d.ts +5 -1
- package/dist/types/resources/types/consts/resource.consts.js +5 -1
- package/dist/types/resources/types/consts/resource.consts.js.map +1 -1
- package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +1 -0
- package/dist/types/roles/dto/role.dto.js.map +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"activity.dto.js","sourceRoot":"","sources":["../../../../src/types/activities/dto/activity.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AAExD,MAAa,WAAW;CAMvB;AAND,kCAMC;
|
1
|
+
{"version":3,"file":"activity.dto.js","sourceRoot":"","sources":["../../../../src/types/activities/dto/activity.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AAExD,MAAa,WAAW;CAMvB;AAND,kCAMC;AAED,MAAa,qBAAsB,SAAQ,6BAAe;CAMzD;AAND,sDAMC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createOrEditCustomer.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/createOrEditCustomer.dto.ts"],"names":[],"mappings":";;;AAGA,MAAM,eAAe;CAwCpB;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAMrD;AAND,8CAMC;AAED,MAAa,eAAgB,SAAQ,eAAe;CAAG;AAAvD,0CAAuD;
|
1
|
+
{"version":3,"file":"createOrEditCustomer.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/createOrEditCustomer.dto.ts"],"names":[],"mappings":";;;AAGA,MAAM,eAAe;CAwCpB;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAMrD;AAND,8CAMC;AAED,MAAa,eAAgB,SAAQ,eAAe;CAAG;AAAvD,0CAAuD;AAEvD,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
|
@@ -1,14 +1,16 @@
|
|
1
1
|
import { Product } from '../product-pricing/entities/Product';
|
2
|
-
import { ResourceNameTypeEnum } from '../services/enums.service';
|
3
|
-
import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
|
4
2
|
import { ProgramSeason } from '../programs-seasons/entities/ProgramSeason';
|
3
|
+
import { Resource } from '../resources/entities/Resource';
|
4
|
+
import { ResourceNameTypeEnum } from '../services/enums.service';
|
5
5
|
import { Event } from './Events';
|
6
|
+
import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
|
6
7
|
import { ProductPackage } from './ProductPackage';
|
7
8
|
export declare class ProductResource extends OrganizationConnectionBaseEntity {
|
8
9
|
productId: number;
|
9
10
|
resourceId: number;
|
10
11
|
resourceType: ResourceNameTypeEnum;
|
11
12
|
deletedAt?: Date;
|
13
|
+
resource: Resource;
|
12
14
|
programSeason: ProgramSeason;
|
13
15
|
event: Event;
|
14
16
|
product: Product;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ProductResource.js","sourceRoot":"","sources":["../../../src/types/entity/ProductResource.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"ProductResource.js","sourceRoot":"","sources":["../../../src/types/entity/ProductResource.ts"],"names":[],"mappings":";;;AAMA,yFAAsF;AAGtF,MAAa,eAAgB,SAAQ,mEAAgC;CAoBpE;AApBD,0CAoBC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user-payment-method.consts.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/consts/user-payment-method.consts.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"user-payment-method.consts.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/consts/user-payment-method.consts.ts"],"names":[],"mappings":";;;AAAA,0DAA+D;AAElD,QAAA,gCAAgC,GAAG,CAAC,qCAAqB,CAAC,GAAG,EAAE,qCAAqB,CAAC,IAAI,CAAC,CAAC"}
|
@@ -1,26 +1,27 @@
|
|
1
|
+
import { ActivityTimesDto } from '../../dto/activityTimes.dto';
|
2
|
+
import { CustomerDto } from '../../dto/customer.dto';
|
3
|
+
import { FacilityDto } from '../../dto/facilities.dto';
|
1
4
|
import { IdAndNameDto, PaginationQuery } from '../../dto/general.dto';
|
2
5
|
import { VariantDto, VariantTitleDto, VariantWithPrice } from '../../dto/product-variants.dto';
|
3
|
-
import { CreatePaymentPlanDto, PaymentPlanDto } from '../../payment/dto/payment-plan.dto';
|
4
|
-
import { ProductPaymentPlan } from '../../payment/entities/ProductPaymentPlan';
|
5
|
-
import { CreateGroupPricingWithProduct, CreatePriceDto } from '../../pricing/dto/pricing.dto';
|
6
|
-
import { CreateOrUpdateResourceSettingDto } from '../../resource-settings/dto/create-or-update-resource-setting.dto';
|
7
|
-
import { ActivityEnum, AddonTimePeriodEnum, PackageProductsRelationTypeEnum, PlatformsEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
8
|
-
import { ProductResourceDto } from './product-resource.dto';
|
9
|
-
import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
|
10
|
-
import { Price } from '../../pricing/entities/Price';
|
11
|
-
import { IChildProduct, IResourcesAvailability } from '../../services/interfaces.service';
|
12
6
|
import { GroupItemsPricing } from '../../entity/GroupItemsPricing';
|
7
|
+
import { Membership } from '../../entity/Membership';
|
13
8
|
import { ProductPackage } from '../../entity/ProductPackage';
|
14
9
|
import { ProductsReservedForCustomers } from '../../entity/ProductsReservedForCustomers';
|
15
|
-
import { Membership } from '../../entity/Membership';
|
16
10
|
import { ProductsUsers } from '../../entity/ProductsUsers';
|
17
|
-
import {
|
11
|
+
import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
|
12
|
+
import { CreatePaymentPlanDto, PaymentPlanDto } from '../../payment/dto/payment-plan.dto';
|
13
|
+
import { ProductPaymentPlan } from '../../payment/entities/ProductPaymentPlan';
|
14
|
+
import { CreateGroupPricingWithProduct, CreatePriceDto } from '../../pricing/dto/pricing.dto';
|
15
|
+
import { Price } from '../../pricing/entities/Price';
|
16
|
+
import { LineItemDto } from '../../reservations/dto/lineItem.dto';
|
18
17
|
import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
|
18
|
+
import { CreateOrUpdateResourceSettingDto } from '../../resource-settings/dto/create-or-update-resource-setting.dto';
|
19
19
|
import { ResourceSettingDto } from '../../resource-settings/dto/resource-setting.dto';
|
20
|
-
import {
|
20
|
+
import { ActivityEnum, AddonTimePeriodEnum, PackageProductsRelationTypeEnum, PlatformsEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
21
|
+
import { IChildProduct, IResourcesAvailability } from '../../services/interfaces.service';
|
21
22
|
import { Product } from '../entities/Product';
|
22
23
|
import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
|
23
|
-
import {
|
24
|
+
import { ProductResourceDto } from './product-resource.dto';
|
24
25
|
export declare class FindByProductIdDto {
|
25
26
|
productId: number;
|
26
27
|
}
|
@@ -201,3 +202,10 @@ export declare class ProductDto extends BaseProductDto {
|
|
201
202
|
productPaymentPlans?: PaymentPlanDto[];
|
202
203
|
pricingSchedules?: IPricingSchedule[];
|
203
204
|
}
|
205
|
+
export declare class ResourceProductDto {
|
206
|
+
id: number;
|
207
|
+
organizationId: number;
|
208
|
+
name: string;
|
209
|
+
sports?: number[];
|
210
|
+
facilities?: FacilityDto[];
|
211
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ProductDto = exports.DeprecatedProductDto = exports.BaseProductDto = exports.SimpleProductDto = exports.GetOrganizationProductsDto = exports.GetExtraProductDataDto = exports.GetProductsDto = exports.ProductsIdsDto = exports.AddRequiredProductsDto = exports.ReturnRequiredProductsDto = exports.ConnectProductResourceDto = exports.ProductInPackage = exports.CreateProductDto = exports.CreateRentalProductAddonDto = exports.CreateProductAvailabilityTimesDto = exports.FindByProductIdDto = void 0;
|
3
|
+
exports.ResourceProductDto = exports.ProductDto = exports.DeprecatedProductDto = exports.BaseProductDto = exports.SimpleProductDto = exports.GetOrganizationProductsDto = exports.GetExtraProductDataDto = exports.GetProductsDto = exports.ProductsIdsDto = exports.AddRequiredProductsDto = exports.ReturnRequiredProductsDto = exports.ConnectProductResourceDto = exports.ProductInPackage = exports.CreateProductDto = exports.CreateRentalProductAddonDto = exports.CreateProductAvailabilityTimesDto = exports.FindByProductIdDto = void 0;
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
5
5
|
class FindByProductIdDto {
|
6
6
|
}
|
@@ -50,4 +50,7 @@ exports.DeprecatedProductDto = DeprecatedProductDto;
|
|
50
50
|
class ProductDto extends BaseProductDto {
|
51
51
|
}
|
52
52
|
exports.ProductDto = ProductDto;
|
53
|
+
class ResourceProductDto {
|
54
|
+
}
|
55
|
+
exports.ResourceProductDto = ResourceProductDto;
|
53
56
|
//# sourceMappingURL=product.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAsE;AAgCtE,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AAED,MAAa,gBAAgB;CAgF5B;AAhFD,4CAgFC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,yBAAyB;CAKrC;AALD,8DAKC;AAED,MAAa,sBAAsB;CAGlC;AAHD,wDAGC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAwBlD;AAxBD,wCAwBC;AAED,MAAa,sBAAsB;CASlC;AATD,wDASC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAIjD;AAJD,4CAIC;AAED,MAAa,cAAc;CA8G1B;AA9GD,wCA8GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAI7C;AAJD,gCAIC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC"}
|
@@ -1,35 +1,9 @@
|
|
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 { AddressDto, FacilityDto } from '../../dto/facilities.dto';
|
7
1
|
import { BasicActivityTimesDto } from '../../dto/activityTimes.dto';
|
8
|
-
import {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
createdAt: Date;
|
13
|
-
updatedAt: Date;
|
14
|
-
deletedAt?: Date;
|
15
|
-
resourceType: ResourceTypeEnum;
|
16
|
-
description?: string;
|
17
|
-
longDescription?: string;
|
18
|
-
mainMediaId?: number;
|
19
|
-
media?: MediaDto;
|
20
|
-
sports: SportsEnum[];
|
21
|
-
parentResourceId?: number;
|
22
|
-
ordinal?: number;
|
23
|
-
isAddOn?: boolean;
|
24
|
-
ages?: ResourceAgesEnum;
|
2
|
+
import { AddressDto } from '../../dto/facilities.dto';
|
3
|
+
import { ActivityEnum, ProgramTypesEnum, ResourceAgesEnum, SportsEnum } from '../../services/enums.service';
|
4
|
+
import { BaseResourceDto, ResourceDependenciesDto, UpdateResourceDto } from './resource.dto';
|
5
|
+
export declare class InstructorResourceDto extends BaseResourceDto {
|
25
6
|
userId: number;
|
26
|
-
status: ActivityEnum;
|
27
|
-
schedule?: ResourceScheduleDto[];
|
28
|
-
facilities?: FacilityDto[];
|
29
|
-
slots?: Slot[];
|
30
|
-
addons?: Addon[];
|
31
|
-
purchasedResources?: PurchasedResourceDto[];
|
32
|
-
linkSEO: string;
|
33
7
|
email?: string;
|
34
8
|
phoneNumber?: string;
|
35
9
|
firstName: string;
|
@@ -37,7 +11,6 @@ export declare class InstructorResourceDto {
|
|
37
11
|
address?: AddressDto;
|
38
12
|
programTypes?: ProgramTypesEnum[];
|
39
13
|
isBookableOnline?: boolean;
|
40
|
-
medias?: MediaDto[];
|
41
14
|
}
|
42
15
|
export declare class CreateInstructorDto extends ResourceDependenciesDto {
|
43
16
|
description?: string;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.FacilitySchedule = exports.UpdateInstructorsDto = exports.UpdateInstructorDto = exports.CreateInstructorDto = exports.InstructorResourceDto = void 0;
|
4
4
|
const resource_dto_1 = require("./resource.dto");
|
5
|
-
class InstructorResourceDto {
|
5
|
+
class InstructorResourceDto extends resource_dto_1.BaseResourceDto {
|
6
6
|
}
|
7
7
|
exports.InstructorResourceDto = InstructorResourceDto;
|
8
8
|
class CreateInstructorDto extends resource_dto_1.ResourceDependenciesDto {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"instructor.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/instructor.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"instructor.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/instructor.dto.ts"],"names":[],"mappings":";;;AAGA,iDAA6F;AAE7F,MAAa,qBAAsB,SAAQ,8BAAe;CAgBzD;AAhBD,sDAgBC;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,12 +1,13 @@
|
|
1
1
|
import { ActivityTimesDto } from '../../dto/activityTimes.dto';
|
2
2
|
import { FacilityDto } from '../../dto/facilities.dto';
|
3
|
-
import { IdAndNameDto, IncludeAdditionalDataDto } from '../../dto/general.dto';
|
3
|
+
import { IdAndNameDto, IdDto, IncludeAdditionalDataDto } from '../../dto/general.dto';
|
4
4
|
import { MediaDto } from '../../media/dto/media.dto';
|
5
5
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
6
|
+
import { ResourceProductDto } from '../../product-pricing/dto/product.dto';
|
6
7
|
import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
|
7
8
|
import { Addon } from '../../reservations/entities/Addon';
|
8
9
|
import { Slot } from '../../reservations/entities/Slots';
|
9
|
-
import { ActivityEnum,
|
10
|
+
import { ActivityEnum, OrderByEnum, ProgramTypesEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum } from '../../services/enums.service';
|
10
11
|
import { OrderByResourceEnum } from '../types/enums/resources.enums';
|
11
12
|
import { IGetFacilityResourcesOptions, IGetResourceByIdsOptions } from '../types/interfaces/resource.interfaces';
|
12
13
|
export declare class ResourceDto {
|
@@ -15,38 +16,30 @@ export declare class ResourceDto {
|
|
15
16
|
}
|
16
17
|
export declare class SimpleResourceDto extends IdAndNameDto {
|
17
18
|
}
|
18
|
-
export declare class
|
19
|
+
export declare class BaseResourceDto extends IdDto {
|
19
20
|
organizationId: number;
|
20
21
|
createdAt: Date;
|
21
22
|
updatedAt: Date;
|
23
|
+
deletedAt?: Date;
|
22
24
|
resourceType: ResourceTypeEnum;
|
23
|
-
resourceSubType: ResourceSubTypeEnum;
|
24
25
|
description?: string;
|
25
26
|
longDescription?: string;
|
26
|
-
|
27
|
-
properties?: SpacePropertiesEnum[];
|
27
|
+
sports: SportsEnum[];
|
28
28
|
mainMediaId?: number;
|
29
29
|
mainMedia?: MediaDto;
|
30
|
-
sports: SportsEnum[];
|
31
|
-
width?: number;
|
32
|
-
length?: number;
|
33
|
-
amenities?: AmenitiesEnum[];
|
34
30
|
parentResourceId?: number;
|
35
31
|
ordinal?: number;
|
36
32
|
isAddOn: boolean;
|
37
33
|
ages?: ResourceAgesEnum;
|
38
|
-
deletedAt?: Date;
|
39
|
-
userId?: number;
|
40
34
|
status?: ActivityEnum;
|
41
35
|
activityTimes?: ActivityTimesDto[];
|
42
36
|
facilities?: FacilityDto[];
|
43
37
|
slots?: Slot[];
|
44
38
|
addons?: Addon[];
|
45
|
-
facilityId: number;
|
46
|
-
facility?: FacilityDto;
|
47
39
|
purchasedResources?: PurchasedResourceDto[];
|
48
40
|
linkSEO: string;
|
49
41
|
medias?: MediaDto[];
|
42
|
+
products?: ResourceProductDto[];
|
50
43
|
}
|
51
44
|
export declare class ResourceDependenciesDto {
|
52
45
|
resourceGroupId?: number;
|
@@ -62,8 +55,9 @@ export declare class GetResourcesOfFacilityByTypeDto implements IGetFacilityReso
|
|
62
55
|
}
|
63
56
|
export declare class GetResourceByIdOptionsDto extends IncludeAdditionalDataDto implements IGetResourceByIdsOptions {
|
64
57
|
order?: OrderByEnum;
|
65
|
-
orderBy
|
58
|
+
orderBy?: OrderByResourceEnum;
|
66
59
|
includeFacilities?: boolean;
|
60
|
+
includeProducts?: boolean;
|
67
61
|
}
|
68
62
|
export declare class ByOrganizationIdAndResourceTypeDto extends ByOrganizationIdDto {
|
69
63
|
resourceType: ResourceTypeEnum;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UpdateResourceDto = exports.ResourceScheduleDto = exports.ByResourceTypeDto = exports.UpdateResourceDetailsDto = exports.ByOrganizationIdAndResourceId = exports.ByOrganizationIdAndResourceTypeAndIdDto = exports.ByOrganizationFacilityIdDto = exports.ByOrganizationIdAndResourceTypeDto = exports.GetResourceByIdOptionsDto = exports.GetResourcesOfFacilityByTypeDto = exports.ResourceDependenciesDto = exports.
|
3
|
+
exports.UpdateResourceDto = exports.ResourceScheduleDto = exports.ByResourceTypeDto = exports.UpdateResourceDetailsDto = exports.ByOrganizationIdAndResourceId = exports.ByOrganizationIdAndResourceTypeAndIdDto = exports.ByOrganizationFacilityIdDto = exports.ByOrganizationIdAndResourceTypeDto = exports.GetResourceByIdOptionsDto = exports.GetResourcesOfFacilityByTypeDto = exports.ResourceDependenciesDto = exports.BaseResourceDto = 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 {
|
@@ -9,9 +9,9 @@ exports.ResourceDto = ResourceDto;
|
|
9
9
|
class SimpleResourceDto extends general_dto_1.IdAndNameDto {
|
10
10
|
}
|
11
11
|
exports.SimpleResourceDto = SimpleResourceDto;
|
12
|
-
class
|
12
|
+
class BaseResourceDto extends general_dto_1.IdDto {
|
13
13
|
}
|
14
|
-
exports.
|
14
|
+
exports.BaseResourceDto = BaseResourceDto;
|
15
15
|
class ResourceDependenciesDto {
|
16
16
|
}
|
17
17
|
exports.ResourceDependenciesDto = ResourceDependenciesDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAEA,
|
1
|
+
{"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAsF;AAEtF,8EAA8E;AAiB9E,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,eAAgB,SAAQ,mBAAK;CA8CzC;AA9CD,0CA8CC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAQtE;AARD,8DAQC;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,8 +1,20 @@
|
|
1
1
|
import { BasicActivityTimesDto } from '../../dto/activityTimes.dto';
|
2
|
+
import { FacilityDto } from '../../dto/facilities.dto';
|
2
3
|
import { PaginationQuery } from '../../dto/general.dto';
|
3
|
-
import { ActivityEnum, OrderByEnum, ResourceAgesEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SportsEnum, SurfacesEnum } from '../../services/enums.service';
|
4
|
-
import { ResourceDependenciesDto, UpdateResourceDto } from './resource.dto';
|
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 { BaseResourceDto, ResourceDependenciesDto, UpdateResourceDto } from './resource.dto';
|
7
|
+
export declare class SpaceResourceDto extends BaseResourceDto {
|
8
|
+
name: string;
|
9
|
+
resourceSubType: ResourceSubTypeEnum;
|
10
|
+
surface?: SurfacesEnum;
|
11
|
+
properties?: SpacePropertiesEnum[];
|
12
|
+
width?: number;
|
13
|
+
length?: number;
|
14
|
+
amenities?: AmenitiesEnum[];
|
15
|
+
facilityId: number;
|
16
|
+
facility?: FacilityDto;
|
17
|
+
}
|
6
18
|
export declare class SpaceByIdDto {
|
7
19
|
spaceId: number;
|
8
20
|
}
|
@@ -1,8 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UpdateSpacesDto = exports.UpdateSpaceDto = 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 = exports.SpaceResourceDto = void 0;
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
5
5
|
const resource_dto_1 = require("./resource.dto");
|
6
|
+
class SpaceResourceDto extends resource_dto_1.BaseResourceDto {
|
7
|
+
}
|
8
|
+
exports.SpaceResourceDto = SpaceResourceDto;
|
6
9
|
class SpaceByIdDto {
|
7
10
|
}
|
8
11
|
exports.SpaceByIdDto = SpaceByIdDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;
|
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,15 +1,16 @@
|
|
1
|
-
import { Media } from '../../media/entities/Media';
|
2
|
-
import { ResourceSubTypeEnum, SurfacesEnum, SpacePropertiesEnum, SportsEnum, AmenitiesEnum, ResourceTypeEnum, ResourceAgesEnum, ActivityEnum } from '../../services/enums.service';
|
3
|
-
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
4
|
-
import { Facility } from '../../entity/Facility';
|
5
1
|
import { ActivityTimes } from '../../entity/ActivityTimes';
|
2
|
+
import { Facility } from '../../entity/Facility';
|
3
|
+
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
6
4
|
import { PurchasedResource } from '../../entity/PurchasedResources';
|
7
|
-
import {
|
5
|
+
import { Media } from '../../media/entities/Media';
|
6
|
+
import { Product } from '../../product-pricing/entities/Product';
|
8
7
|
import { Addon } from '../../reservations/entities/Addon';
|
9
|
-
import {
|
10
|
-
import {
|
8
|
+
import { Slot } from '../../reservations/entities/Slots';
|
9
|
+
import { ActivityEnum, AmenitiesEnum, ResourceAgesEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SportsEnum, SurfacesEnum } from '../../services/enums.service';
|
11
10
|
import { User } from '../../user/entities/User';
|
12
11
|
import { ResourceScheduleDto } from '../dto/resource.dto';
|
12
|
+
import { Instructor } from './Instructor';
|
13
|
+
import { Space } from './Space';
|
13
14
|
export declare class Resource extends OrganizationConnectionBaseEntity {
|
14
15
|
name: string;
|
15
16
|
resourceType: ResourceTypeEnum;
|
@@ -45,4 +46,5 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
|
|
45
46
|
user: User;
|
46
47
|
schedule?: ResourceScheduleDto[];
|
47
48
|
medias?: Media[];
|
49
|
+
products?: Product[];
|
48
50
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Resource.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Resource.ts"],"names":[],"mappings":";;;AAcA,oGAAiG;AAqBjG,MAAa,QAAS,SAAQ,mEAAgC;CA6E7D;AA7ED,4BA6EC"}
|
@@ -1,2 +1,6 @@
|
|
1
|
-
import { ResourceTypeEnum } from '../../../services/enums.service';
|
1
|
+
import { ResourceNameTypeEnum, ResourceTypeEnum } from '../../../services/enums.service';
|
2
2
|
export declare const RESOURCE_TYPES_ARRAY: ResourceTypeEnum[];
|
3
|
+
export declare const resourceTypeMapper: {
|
4
|
+
instructor: ResourceNameTypeEnum;
|
5
|
+
space: ResourceNameTypeEnum;
|
6
|
+
};
|
@@ -1,6 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.RESOURCE_TYPES_ARRAY = void 0;
|
3
|
+
exports.resourceTypeMapper = exports.RESOURCE_TYPES_ARRAY = void 0;
|
4
4
|
const enums_service_1 = require("../../../services/enums.service");
|
5
5
|
exports.RESOURCE_TYPES_ARRAY = [enums_service_1.ResourceTypeEnum.INSTRUCTOR, enums_service_1.ResourceTypeEnum.SPACE];
|
6
|
+
exports.resourceTypeMapper = {
|
7
|
+
[enums_service_1.ResourceTypeEnum.INSTRUCTOR]: enums_service_1.ResourceNameTypeEnum.INSTRUCTOR,
|
8
|
+
[enums_service_1.ResourceTypeEnum.SPACE]: enums_service_1.ResourceNameTypeEnum.SPACE,
|
9
|
+
};
|
6
10
|
//# sourceMappingURL=resource.consts.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resource.consts.js","sourceRoot":"","sources":["../../../../../src/types/resources/types/consts/resource.consts.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"resource.consts.js","sourceRoot":"","sources":["../../../../../src/types/resources/types/consts/resource.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAyF;AAE5E,QAAA,oBAAoB,GAAuB,CAAC,gCAAgB,CAAC,UAAU,EAAE,gCAAgB,CAAC,KAAK,CAAC,CAAC;AAEjG,QAAA,kBAAkB,GAAG;IACjC,CAAC,gCAAgB,CAAC,UAAU,CAAC,EAAE,oCAAoB,CAAC,UAAU;IAC9D,CAAC,gCAAgB,CAAC,KAAK,CAAC,EAAE,oCAAoB,CAAC,KAAK;CACpD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/role.dto.ts"],"names":[],"mappings":";;;AAGA,8EAA8E;AAC9E,uDAAwD;AAGxD,MAAa,WAAY,SAAQ,sCAAmB;CAEnD;AAFD,kCAEC;AAED,MAAa,OAAO;CAEnB;AAFD,0BAEC;
|
1
|
+
{"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/role.dto.ts"],"names":[],"mappings":";;;AAGA,8EAA8E;AAC9E,uDAAwD;AAGxD,MAAa,WAAY,SAAQ,sCAAmB;CAEnD;AAFD,kCAEC;AAED,MAAa,OAAO;CAEnB;AAFD,0BAEC;AAED,MAAa,eAAe;CAU3B;AAVD,0CAUC;AAED,MAAa,OAAO;CAcnB;AAdD,0BAcC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAYtD;AAZD,gDAYC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC"}
|