@bondsports/types 2.1.53 → 2.1.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,7 @@ import { Address } from './Address';
4
4
  import { Media } from '../media/entities/Media';
5
5
  import { OpeningTime } from './OpeningTime';
6
6
  import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
7
+ import { Product } from '../product-pricing/entities/Product';
7
8
  export declare class Facility extends OrganizationConnectionBaseEntity {
8
9
  name: string;
9
10
  description?: string;
@@ -29,4 +30,5 @@ export declare class Facility extends OrganizationConnectionBaseEntity {
29
30
  ordinal: number;
30
31
  locationId?: string;
31
32
  linkSEO: string;
33
+ products: Product[];
32
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Facility.js","sourceRoot":"","sources":["../../../src/types/entity/Facility.ts"],"names":[],"mappings":";;;AAgBA,yFAAsF;AAEtF,MAAa,QAAS,SAAQ,mEAAgC;CAiD7D;AAjDD,4BAiDC"}
1
+ {"version":3,"file":"Facility.js","sourceRoot":"","sources":["../../../src/types/entity/Facility.ts"],"names":[],"mappings":";;;AAgBA,yFAAsF;AAGtF,MAAa,QAAS,SAAQ,mEAAgC;CAmD7D;AAnDD,4BAmDC"}
@@ -18,6 +18,7 @@ import { ResourceSetting } from '../../resource-settings/entities/resource-setti
18
18
  import { AddonTimePeriodEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../services/enums.service';
19
19
  import { IChildProduct, IResourcesAvailability } from '../../services/interfaces.service';
20
20
  import { ProductResourceDto } from '../dto/product-resource.dto';
21
+ import { Facility } from '../../entity/Facility';
21
22
  export declare class Product extends OrganizationConnectionBaseEntity {
22
23
  name: string;
23
24
  quantity: number;
@@ -71,4 +72,5 @@ export declare class Product extends OrganizationConnectionBaseEntity {
71
72
  lineItems: LineItems[];
72
73
  productsUsers: ProductsUsers[];
73
74
  purchasedResources: PurchasedResource[];
75
+ facilities: Facility[];
74
76
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;AAiBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAgH5D;AAhHD,0BAgHC"}
1
+ {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;AAkBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAkH5D;AAlHD,0BAkHC"}
@@ -0,0 +1,6 @@
1
+ import { BondBaseEntity } from '../../entity/BondBaseEntity';
2
+ export declare class ProductToFacility extends BondBaseEntity {
3
+ productId: number;
4
+ facilityId: number;
5
+ deletedAt?: Date;
6
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductToFacility = void 0;
4
+ const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
5
+ class ProductToFacility extends BondBaseEntity_1.BondBaseEntity {
6
+ }
7
+ exports.ProductToFacility = ProductToFacility;
8
+ //# sourceMappingURL=ProductToFacility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductToFacility.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/ProductToFacility.ts"],"names":[],"mappings":";;;AAAA,gEAA6D;AAG7D,MAAa,iBAAkB,SAAQ,+BAAc;CAMpD;AAND,8CAMC"}
@@ -1 +1,2 @@
1
1
  export * from './Product';
2
+ export * from './ProductToFacility';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Product"), exports);
18
+ __exportStar(require("./ProductToFacility"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,sDAAoC"}
@@ -1,7 +1,8 @@
1
1
  import { BasicActivityTimesDto } from '../../dto/activityTimes.dto';
2
2
  import { PaginationQuery } from '../../dto/general.dto';
3
- import { ActivityEnum, ResourceAgesEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SurfacesEnum } from '../../services/enums.service';
3
+ import { ActivityEnum, OrderByEnum, ResourceAgesEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SurfacesEnum } from '../../services/enums.service';
4
4
  import { ResourceDependenciesDto, UpdateResourceDto } from './resource.dto';
5
+ import { OrderByResourceEnum } from '../types/enums/resources.enums';
5
6
  export declare class SpaceByIdDto {
6
7
  spaceId: number;
7
8
  }
@@ -49,6 +50,8 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
49
50
  facilitiesIds?: number[];
50
51
  types?: ResourceTypeEnum[];
51
52
  resourcesIds?: number[];
53
+ orderBy?: OrderByResourceEnum;
54
+ order?: OrderByEnum;
52
55
  }
53
56
  export declare class UpdateSpaceDto extends UpdateResourceDto {
54
57
  name?: string;
@@ -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,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"}
1
+ {"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAU/D,iDAAsG;AAGtG,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;CAY3D;AAZD,0DAYC;AAED,MAAa,cAAe,SAAQ,gCAAiB;CAkBpD;AAlBD,wCAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC"}
@@ -3,5 +3,8 @@ export declare enum OrderByResourceEnum {
3
3
  NAME = "name",
4
4
  CREATED_AT = "createdAt",
5
5
  RESOURCE_TYPE = "resourceType",
6
+ FIRST_NAME = "firstName",
7
+ LAST_NAME = "lastName",
8
+ EMAIL = "email",
6
9
  STATUS = "status"
7
10
  }
@@ -7,6 +7,9 @@ var OrderByResourceEnum;
7
7
  OrderByResourceEnum["NAME"] = "name";
8
8
  OrderByResourceEnum["CREATED_AT"] = "createdAt";
9
9
  OrderByResourceEnum["RESOURCE_TYPE"] = "resourceType";
10
+ OrderByResourceEnum["FIRST_NAME"] = "firstName";
11
+ OrderByResourceEnum["LAST_NAME"] = "lastName";
12
+ OrderByResourceEnum["EMAIL"] = "email";
10
13
  OrderByResourceEnum["STATUS"] = "status";
11
14
  })(OrderByResourceEnum = exports.OrderByResourceEnum || (exports.OrderByResourceEnum = {}));
12
15
  //# sourceMappingURL=resources.enums.js.map
@@ -1 +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
+ {"version":3,"file":"resources.enums.js","sourceRoot":"","sources":["../../../../../src/types/resources/types/enums/resources.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC9B,gCAAS,CAAA;IACT,oCAAa,CAAA;IACb,+CAAwB,CAAA;IACxB,qDAA8B,CAAA;IAC9B,+CAAwB,CAAA;IACxB,6CAAsB,CAAA;IACtB,sCAAe,CAAA;IACf,wCAAiB,CAAA;AAClB,CAAC,EATW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAS9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.1.53",
3
+ "version": "2.1.55",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {