@bondsports/types 2.1.68 → 2.1.69

Sign up to get free protection for your applications and to get access to all the features.
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.1.68",
3
+ "version": "2.1.69",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {