@bondsports/types 2.2.31 → 2.2.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -121,6 +121,35 @@ export declare class GetProductsDto extends PaginationQuery {
121
121
  facilitiesIds?: number[];
122
122
  statuses?: ActivityEnum[];
123
123
  }
124
+ export declare class ProductFieldsDto {
125
+ id: number;
126
+ name: string;
127
+ quantity: number;
128
+ isAll: boolean;
129
+ paymentProcessorId?: string;
130
+ startDate?: Date;
131
+ endDate?: Date;
132
+ isPublic: boolean;
133
+ productType?: ProductTypesEnum;
134
+ downpayment?: number;
135
+ description?: string;
136
+ currPrice: Price;
137
+ productSubType?: ProductSubTypesEnum;
138
+ punchCard: boolean;
139
+ requiredProductIds?: number[];
140
+ variantParentId?: number;
141
+ isAddon: boolean;
142
+ isArchive: boolean;
143
+ timePeriod?: AddonTimePeriodEnum;
144
+ deletedAt?: Date;
145
+ isProRated: boolean;
146
+ tax: number;
147
+ isTaxInclusive: boolean;
148
+ durationMinutes?: number;
149
+ durationDays?: number;
150
+ forms?: number[];
151
+ isForAllCustomers?: boolean;
152
+ }
124
153
  export declare class GetExtraProductDataDto {
125
154
  isPublic?: boolean;
126
155
  isGetByChildResources?: boolean;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.ResourceProductDto = exports.ProductDto = exports.DeprecatedProductDto = exports.BaseProductDto = exports.SimpleProductDto = exports.GetOrganizationProductsDto = exports.GetExtraProductDataDto = exports.ProductFieldsDto = 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
  }
@@ -32,6 +32,9 @@ exports.ProductsIdsDto = ProductsIdsDto;
32
32
  class GetProductsDto extends general_dto_1.PaginationQuery {
33
33
  }
34
34
  exports.GetProductsDto = GetProductsDto;
35
+ class ProductFieldsDto {
36
+ }
37
+ exports.ProductFieldsDto = ProductFieldsDto;
35
38
  class GetExtraProductDataDto {
36
39
  }
37
40
  exports.GetExtraProductDataDto = GetExtraProductDataDto;
@@ -1 +1 @@
1
- {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAsE;AAiCtE,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;CAQ7C;AARD,gCAQC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC"}
1
+ {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAsE;AAiCtE,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,gBAAgB;CAsD5B;AAtDD,4CAsDC;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;CAQ7C;AARD,gCAQC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC"}
@@ -1 +1,2 @@
1
1
  export declare const NO_SCHEDULE_GROUP_ID = "no-schedule";
2
+ export declare const LIMIT_PRODUCTS_FETCH_AMOUNT = 1000;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NO_SCHEDULE_GROUP_ID = void 0;
3
+ exports.LIMIT_PRODUCTS_FETCH_AMOUNT = exports.NO_SCHEDULE_GROUP_ID = void 0;
4
4
  exports.NO_SCHEDULE_GROUP_ID = 'no-schedule';
5
+ exports.LIMIT_PRODUCTS_FETCH_AMOUNT = 1000;
5
6
  //# sourceMappingURL=product-pricing.consts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-pricing.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-pricing.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,aAAa,CAAC"}
1
+ {"version":3,"file":"product-pricing.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-pricing.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,aAAa,CAAC;AACrC,QAAA,2BAA2B,GAAG,IAAI,CAAC"}
@@ -9,7 +9,7 @@ import { Addon } from '../../reservations/entities/Addon';
9
9
  import { Slot } from '../../reservations/entities/Slots';
10
10
  import { ActivityEnum, OrderByEnum, ProgramTypesEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum } from '../../services/enums.service';
11
11
  import { OrderByResourceEnum } from '../types/enums/resources.enums';
12
- import { IGetFacilityResourcesOptions, IGetResourceByIdsOptions } from '../types/interfaces/resource.interfaces';
12
+ import { IGetResourcesOptions, IGetResourceByIdsOptions } from '../types/interfaces/resource.interfaces';
13
13
  export declare class ResourceDto {
14
14
  id: number;
15
15
  type: ResourceNameTypeEnum;
@@ -46,7 +46,7 @@ export declare class ResourceDependenciesDto {
46
46
  resourceGroupId?: number;
47
47
  blockedResourcesIds?: number[];
48
48
  }
49
- export declare class GetResourcesOfFacilityByTypeDto implements IGetFacilityResourcesOptions {
49
+ export declare class GetResourcesOfFacilityByTypeDto implements IGetResourcesOptions {
50
50
  nameSearch?: string;
51
51
  includeActivityTimes: boolean;
52
52
  includeResourceMetadata: boolean;
@@ -3,6 +3,7 @@ import { FacilityDto } from '../../dto/facilities.dto';
3
3
  import { PaginationQuery } from '../../dto/general.dto';
4
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 { IGetResourcesOptions } from '../types/interfaces/resource.interfaces';
6
7
  import { BaseResourceDto, ResourceDependenciesDto, UpdateResourceDto } from './resource.dto';
7
8
  export declare class SpaceResourceDto extends BaseResourceDto {
8
9
  name: string;
@@ -57,15 +58,18 @@ export declare class FacilitySlotsScheduleQueryParams {
57
58
  spacesIds?: number[];
58
59
  futureHoursLimit?: number;
59
60
  }
60
- export declare class FindResourcesOptionsDto extends PaginationQuery {
61
+ export declare class FindResourcesOptionsDto extends PaginationQuery implements IGetResourcesOptions {
61
62
  nameSearch?: string;
62
63
  facilitiesIds?: number[];
63
- types?: ResourceTypeEnum[];
64
+ resourceTypes?: ResourceTypeEnum[];
64
65
  resourcesIds?: number[];
65
66
  sortBy?: OrderByResourceEnum;
66
67
  order?: OrderByEnum;
67
68
  sports?: SportsEnum[];
68
69
  statuses?: ActivityEnum[];
70
+ includeResourceMetadata?: boolean;
71
+ includeActivityTimes?: boolean;
72
+ includeFacilities?: boolean;
69
73
  }
70
74
  export declare class UpdateSpaceDto extends UpdateResourceDto {
71
75
  name?: string;
@@ -1 +1 @@
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
+ {"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAwD;AAcxD,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;CAsB3D;AAtBD,0DAsBC;AAED,MAAa,cAAe,SAAQ,gCAAiB;CAkBpD;AAlBD,wCAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC"}
@@ -1,4 +1,4 @@
1
- import { OrderByEnum, ResourceNameTypeEnum, ResourceTypeEnum } from '../../../services/enums.service';
1
+ import { ActivityEnum, OrderByEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum } from '../../../services/enums.service';
2
2
  import { SimpleResourceDto } from '../../dto/resource.dto';
3
3
  import { OrderByResourceEnum } from '../enums/resources.enums';
4
4
  import { PackageV1 } from '../../../entity/PackageV1';
@@ -6,13 +6,18 @@ export interface ParentResources extends SimpleResourceDto {
6
6
  parentId: number;
7
7
  parentType?: ResourceNameTypeEnum;
8
8
  }
9
- export interface IGetFacilityResourcesOptions {
10
- includeActivityTimes?: boolean;
11
- includeResourceMetadata?: boolean;
9
+ export interface IGetResourcesOptions {
10
+ nameSearch?: string;
11
+ resourceTypes?: ResourceTypeEnum[];
12
+ facilitiesIds?: number[];
13
+ resourcesIds?: number[];
14
+ sports?: SportsEnum[];
15
+ statuses?: ActivityEnum[];
12
16
  order?: OrderByEnum;
13
17
  sortBy?: OrderByResourceEnum;
14
- resourceTypes?: ResourceTypeEnum[];
15
- nameSearch?: string;
18
+ includeActivityTimes?: boolean;
19
+ includeResourceMetadata?: boolean;
20
+ includeFacilities?: boolean;
16
21
  }
17
22
  export interface IGetResourceByIdsOptions {
18
23
  includeAdditionalData?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.31",
3
+ "version": "2.2.33",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {