@bondsports/types 2.1.68 → 2.1.70

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.
@@ -16,5 +16,4 @@ export declare class ProductPackage extends OrganizationConnectionBaseEntity {
16
16
  durationMinutes?: number;
17
17
  durationDays?: number;
18
18
  level?: ProductPackageLevelEnum;
19
- isRentalPackage?: boolean;
20
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ProductPackage.js","sourceRoot":"","sources":["../../../src/types/entity/ProductPackage.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAKtF,MAAa,cAAe,SAAQ,mEAAgC;CA6BnE;AA7BD,wCA6BC"}
1
+ {"version":3,"file":"ProductPackage.js","sourceRoot":"","sources":["../../../src/types/entity/ProductPackage.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAKtF,MAAa,cAAe,SAAQ,mEAAgC;CA2BnE;AA3BD,wCA2BC"}
@@ -15,10 +15,11 @@ import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
15
15
  import { ProductPaymentPlan } from '../../payment/entities/ProductPaymentPlan';
16
16
  import { Price } from '../../pricing/entities/Price';
17
17
  import { ResourceSetting } from '../../resource-settings/entities/resource-setting.entity';
18
- import { AddonTimePeriodEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../services/enums.service';
18
+ import { ActivityEnum, 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
21
  import { Facility } from '../../entity/Facility';
22
+ import { ProductStateEnum } from '../types/enums/product.enums';
22
23
  export declare class Product extends OrganizationConnectionBaseEntity {
23
24
  name: string;
24
25
  quantity: number;
@@ -63,7 +64,8 @@ export declare class Product extends OrganizationConnectionBaseEntity {
63
64
  durationMinutes?: number;
64
65
  durationDays?: number;
65
66
  forms?: number[] | null;
66
- isValid: boolean;
67
+ status: ActivityEnum;
68
+ state: ProductStateEnum;
67
69
  isForAllCustomers?: boolean;
68
70
  productsReservedForCustomers: ProductsReservedForCustomers[];
69
71
  reservedForCustomers: Customer[];
@@ -1 +1 @@
1
- {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;AAkBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAoH5D;AApHD,0BAoHC"}
1
+ {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;AAmBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAsH5D;AAtHD,0BAsHC"}
@@ -0,0 +1 @@
1
+ export * from './product.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("./product.enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
@@ -0,0 +1,4 @@
1
+ export declare enum ProductStateEnum {
2
+ VALID = "valid",
3
+ IN_PROGRESS = "in_progress"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductStateEnum = void 0;
4
+ var ProductStateEnum;
5
+ (function (ProductStateEnum) {
6
+ ProductStateEnum["VALID"] = "valid";
7
+ ProductStateEnum["IN_PROGRESS"] = "in_progress";
8
+ })(ProductStateEnum = exports.ProductStateEnum || (exports.ProductStateEnum = {}));
9
+ //# sourceMappingURL=product.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B"}
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,+CAA6B"}
@@ -53,10 +53,11 @@ export declare class ResourceDependenciesDto {
53
53
  blockedResourcesIds?: number[];
54
54
  }
55
55
  export declare class GetResourcesOfFacilityByTypeDto implements IGetFacilityResourcesOptions {
56
+ nameSearch?: string;
56
57
  includeActivityTimes: boolean;
57
58
  includeResourceMetadata: boolean;
58
59
  order?: OrderByEnum;
59
- orderBy: OrderByResourceEnum;
60
+ sortBy?: OrderByResourceEnum;
60
61
  resourceTypes?: ResourceTypeEnum[];
61
62
  }
62
63
  export declare class GetResourceByIdOptionsDto extends IncludeAdditionalDataDto implements IGetResourceByIdsOptions {
@@ -1 +1 @@
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;CA8DjD;AA9DD,4CA8DC;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
+ {"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;CA8DjD;AA9DD,4CA8DC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;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"}
@@ -50,7 +50,7 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
50
50
  facilitiesIds?: number[];
51
51
  types?: ResourceTypeEnum[];
52
52
  resourcesIds?: number[];
53
- orderBy?: OrderByResourceEnum;
53
+ sortBy?: OrderByResourceEnum;
54
54
  order?: OrderByEnum;
55
55
  sports?: SportsEnum[];
56
56
  statuses?: ActivityEnum[];
@@ -10,8 +10,9 @@ export interface IGetFacilityResourcesOptions {
10
10
  includeActivityTimes?: boolean;
11
11
  includeResourceMetadata?: boolean;
12
12
  order?: OrderByEnum;
13
- orderBy?: OrderByResourceEnum;
13
+ sortBy?: OrderByResourceEnum;
14
14
  resourceTypes?: ResourceTypeEnum[];
15
+ nameSearch?: string;
15
16
  }
16
17
  export interface IGetResourceByIdsOptions {
17
18
  includeAdditionalData?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.1.68",
3
+ "version": "2.1.70",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {