@bondsports/types 2.2.64 → 2.2.65

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/dto/package.dto.d.ts +0 -1
  3. package/dist/types/dto/package.dto.js.map +1 -1
  4. package/dist/types/entity/ProductPackage.d.ts +1 -2
  5. package/dist/types/entity/ProductPackage.js.map +1 -1
  6. package/dist/types/pricing/entities/Price.d.ts +4 -1
  7. package/dist/types/pricing/entities/Price.js.map +1 -1
  8. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +1 -1
  9. package/dist/types/product-pricing/dto/product-resource.dto.d.ts +0 -1
  10. package/dist/types/product-pricing/dto/product-resource.dto.js.map +1 -1
  11. package/dist/types/product-pricing/dto/product.dto.d.ts +0 -1
  12. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  13. package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
  14. package/dist/types/product-pricing/types/consts/index.js +1 -0
  15. package/dist/types/product-pricing/types/consts/index.js.map +1 -1
  16. package/dist/types/product-pricing/types/consts/product-resource.consts.d.ts +3 -0
  17. package/dist/types/product-pricing/types/consts/product-resource.consts.js +10 -0
  18. package/dist/types/product-pricing/types/consts/product-resource.consts.js.map +1 -0
  19. package/dist/types/product-pricing/types/interfaces/index.d.ts +1 -0
  20. package/dist/types/product-pricing/types/interfaces/index.js +1 -0
  21. package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
  22. package/dist/types/product-pricing/types/interfaces/porduct-resource.interfaces.d.ts +15 -0
  23. package/dist/types/product-pricing/types/interfaces/porduct-resource.interfaces.js +3 -0
  24. package/dist/types/product-pricing/types/interfaces/porduct-resource.interfaces.js.map +1 -0
  25. package/dist/types/resources/dto/resource.dto.d.ts +3 -2
  26. package/dist/types/resources/dto/resource.dto.js.map +1 -1
  27. package/package.json +1 -1
@@ -21,7 +21,6 @@ export declare class FindProductsByResourceAsOrganizationDto extends FindPackage
21
21
  export declare class CreatePackageToResourceDto {
22
22
  resourceId: number;
23
23
  resourceType: ResourceNameTypeEnum;
24
- isCreateToChildProducts: boolean;
25
24
  productsData: ProductInPackage[];
26
25
  }
27
26
  export declare class CreateProductsDto {
@@ -1 +1 @@
1
- {"version":3,"file":"package.dto.js","sourceRoot":"","sources":["../../../src/types/dto/package.dto.ts"],"names":[],"mappings":";;;AAQA,MAAa,2BAA2B;CAQvC;AARD,kEAQC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,uCAAwC,SAAQ,wBAAwB;CAEpF;AAFD,0FAEC;AAED,MAAa,0BAA0B;CAQtC;AARD,gEAQC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC"}
1
+ {"version":3,"file":"package.dto.js","sourceRoot":"","sources":["../../../src/types/dto/package.dto.ts"],"names":[],"mappings":";;;AAQA,MAAa,2BAA2B;CAQvC;AARD,kEAQC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,uCAAwC,SAAQ,wBAAwB;CAEpF;AAFD,0FAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC"}
@@ -16,7 +16,6 @@ export declare class ProductPackage extends OrganizationConnectionBaseEntity {
16
16
  isFlatPrice: boolean;
17
17
  durationMinutes?: number;
18
18
  durationDays?: number;
19
- priceId?: number;
20
19
  level?: ProductPackageLevelEnum;
21
- packagePrice?: Price;
20
+ prices?: Price[];
22
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ProductPackage.js","sourceRoot":"","sources":["../../../src/types/entity/ProductPackage.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAMtF,MAAa,cAAe,SAAQ,mEAAgC;CA+BnE;AA/BD,wCA+BC"}
1
+ {"version":3,"file":"ProductPackage.js","sourceRoot":"","sources":["../../../src/types/entity/ProductPackage.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAMtF,MAAa,cAAe,SAAQ,mEAAgC;CA6BnE;AA7BD,wCA6BC"}
@@ -2,9 +2,12 @@ import { Product } from '../../product-pricing/entities/Product';
2
2
  import { CurrencyEnum, DiscountMethodsEnum } from '../../services/enums.service';
3
3
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
4
4
  import { ActivityTimes } from '../../entity/ActivityTimes';
5
+ import { ProductPackage } from '../../entity/ProductPackage';
5
6
  export declare class Price extends OrganizationConnectionBaseEntity {
6
- productId: number;
7
+ productId?: number;
8
+ packageId?: number;
7
9
  product: Product;
10
+ package: ProductPackage;
8
11
  name: string | null;
9
12
  price: number;
10
13
  currency: CurrencyEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../../src/types/pricing/entities/Price.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAIjG,MAAa,KAAM,SAAQ,mEAAgC;CAiC1D;AAjCD,sBAiCC"}
1
+ {"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../../src/types/pricing/entities/Price.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAKjG,MAAa,KAAM,SAAQ,mEAAgC;CAqC1D;AArCD,sBAqCC"}
@@ -6,7 +6,7 @@ import { ResourceDto } from '../../resources/dto/resource.dto';
6
6
  import { OrderByProductEnum } from '../types/enums/product.enums';
7
7
  import { IGetProductsByTypeOptions } from '../types/interfaces/product-pricing.interfaces';
8
8
  export declare class FindPriceOfProductDto {
9
- id: number;
9
+ id?: number;
10
10
  productId: number;
11
11
  userId: number;
12
12
  resources?: ResourceDto[];
@@ -8,7 +8,6 @@ export declare class ProductResourceDto extends IdAndNameDto {
8
8
  parentSession?: SimpleSessionDto;
9
9
  }
10
10
  export declare class PaginatedResourcesForProductQueryDto extends PaginationQuery {
11
- includeResources?: boolean;
12
11
  futureResources?: boolean;
13
12
  startDate?: string;
14
13
  endDate?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"product-resource.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-resource.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAsE;AAMtE,MAAa,kBAAmB,SAAQ,0BAAY;CAMnD;AAND,gDAMC;AAED,MAAa,oCAAqC,SAAQ,6BAAe;CAQxE;AARD,oFAQC;AAED,MAAa,2BAA2B;CAQvC;AARD,kEAQC"}
1
+ {"version":3,"file":"product-resource.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-resource.dto.ts"],"names":[],"mappings":";;;AACA,uDAAsE;AAKtE,MAAa,kBAAmB,SAAQ,0BAAY;CAMnD;AAND,gDAMC;AAED,MAAa,oCAAqC,SAAQ,6BAAe;CAMxE;AAND,oFAMC;AAED,MAAa,2BAA2B;CAQvC;AARD,kEAQC"}
@@ -152,7 +152,6 @@ export declare class ProductFieldsDto {
152
152
  }
153
153
  export declare class GetExtraProductDataDto {
154
154
  isPublic?: boolean;
155
- isGetByChildResources?: boolean;
156
155
  isGetEntitlePricing?: boolean;
157
156
  isGetAddOns?: boolean;
158
157
  includeResources?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAsE;AAMtE,8EAA8E;AAwB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;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,MA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Aa,gBAAiB,SAAQ,0BAAY;CAIjD;AAJD,4CAIC;AAED,MAAa,cAAc;CA0G1B;AA1GD,wCA0GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAU7C;AAVD,gCAUC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC"}
@@ -1 +1,2 @@
1
1
  export * from './product-pricing.consts';
2
+ export * from './product-resource.consts';
@@ -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-pricing.consts"), exports);
18
+ __exportStar(require("./product-resource.consts"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,4DAA0C"}
@@ -0,0 +1,3 @@
1
+ import { IProductResource, IResource } from '../interfaces/porduct-resource.interfaces';
2
+ export declare const uniqueByProductResource: (resource: IProductResource) => string;
3
+ export declare const getUniqueByResource: (resource: IResource) => string;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUniqueByResource = exports.uniqueByProductResource = void 0;
4
+ const uniqueByProductResource = (resource) => {
5
+ return `${resource.productId}_${resource.type}_${resource.id}`;
6
+ };
7
+ exports.uniqueByProductResource = uniqueByProductResource;
8
+ const getUniqueByResource = (resource) => `${resource.type}_${resource.id}`;
9
+ exports.getUniqueByResource = getUniqueByResource;
10
+ //# sourceMappingURL=product-resource.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-resource.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-resource.consts.ts"],"names":[],"mappings":";;;AAEO,MAAM,uBAAuB,GAAG,CAAC,QAA0B,EAAU,EAAE;IAC7E,OAAO,GAAG,QAAQ,CAAC,SAAS,IAAI,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC;AAEK,MAAM,mBAAmB,GAAG,CAAC,QAAmB,EAAU,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAAzF,QAAA,mBAAmB,uBAAsE"}
@@ -1 +1,2 @@
1
+ export * from './porduct-resource.interfaces';
1
2
  export * from './product-pricing.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("./porduct-resource.interfaces"), exports);
17
18
  __exportStar(require("./product-pricing.interfaces"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,+DAA6C"}
@@ -0,0 +1,15 @@
1
+ import { ResourceNameTypeEnum } from '../../../services/enums.service';
2
+ export interface IResource {
3
+ id?: number;
4
+ type: ResourceNameTypeEnum;
5
+ isAll?: boolean;
6
+ includedIds?: number[];
7
+ excludedIds?: number[];
8
+ }
9
+ export interface IProductResources {
10
+ productId: number;
11
+ resources: IResource[];
12
+ }
13
+ export interface IProductResource extends IResource {
14
+ productId?: number;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=porduct-resource.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"porduct-resource.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/porduct-resource.interfaces.ts"],"names":[],"mappings":""}
@@ -4,13 +4,14 @@ import { IdAndNameDto, IdDto, IncludeAdditionalDataDto } from '../../dto/general
4
4
  import { MediaDto } from '../../media/dto/media.dto';
5
5
  import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
6
6
  import { ResourceProductDto } from '../../product-pricing/dto/product.dto';
7
+ import { IResource } from '../../product-pricing/types/interfaces/porduct-resource.interfaces';
7
8
  import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
8
9
  import { Addon } from '../../reservations/entities/Addon';
9
10
  import { Slot } from '../../reservations/entities/Slots';
10
11
  import { ActivityEnum, OrderByEnum, ProgramTypesEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum } from '../../services/enums.service';
11
12
  import { OrderByResourceEnum } from '../types/enums/resources.enums';
12
- import { IGetResourcesOptions, IGetResourceByIdsOptions } from '../types/interfaces/resource.interfaces';
13
- export declare class ResourceDto {
13
+ import { IGetResourceByIdsOptions, IGetResourcesOptions } from '../types/interfaces/resource.interfaces';
14
+ export declare class ResourceDto implements IResource {
14
15
  id?: number;
15
16
  type: ResourceNameTypeEnum;
16
17
  isAll?: boolean;
@@ -1 +1 @@
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;CAUvB;AAVD,kCAUC;AAED,MAAa,kBAAmB,SAAQ,WAAW;CAElD;AAFD,gDAEC;AAED,M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F;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;CAwB7B;AAxBD,8CAwBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.64",
3
+ "version": "2.2.65",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {