@bondsports/types 2.2.29 → 2.2.31

Sign up to get free protection for your applications and to get access to all the features.
@@ -94,3 +94,8 @@ export interface ISetDiscountOptions {
94
94
  overrideItems?: boolean;
95
95
  maxAmount?: number;
96
96
  }
97
+ export interface IFindEntitlementDiscountOptions {
98
+ productIds: number[];
99
+ groupIds?: number[];
100
+ withDeleted?: boolean;
101
+ }
@@ -49,9 +49,15 @@ export declare class FindGroupItemsPricingsDto {
49
49
  groupsIds: number[];
50
50
  itemsIds: number[];
51
51
  }
52
+ export declare class EntitlementGroupDto extends OrganizationBaseEntityDto {
53
+ name: string;
54
+ }
52
55
  export declare class CreateEntitlementGroupDto {
53
56
  name: string;
54
57
  }
58
+ export declare class CreateEntitlementGroupsDto {
59
+ groups?: CreateEntitlementGroupDto[];
60
+ }
55
61
  export declare class GetEntitlementGroupPricingDto {
56
62
  itemIds: number[];
57
63
  itemType: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreatePriceDto = exports.CreateGroupPricingWithProduct = exports.FindEntitlementGroupByIdDto = exports.GetEntitlementGroupPricingDto = exports.CreateEntitlementGroupDto = exports.FindGroupItemsPricingsDto = exports.FindLowestPriceDto = exports.FindEntitlementTermsByVariablesDto = exports.FindEntitlementTermsByGroupIdDto = exports.TermDto = exports.EntitlementTermsDto = exports.CreateEntitlementTermsDto = exports.CreateEntitlementGroupsTermsDto = void 0;
3
+ exports.CreatePriceDto = exports.CreateGroupPricingWithProduct = exports.FindEntitlementGroupByIdDto = exports.GetEntitlementGroupPricingDto = exports.CreateEntitlementGroupsDto = exports.CreateEntitlementGroupDto = exports.EntitlementGroupDto = exports.FindGroupItemsPricingsDto = exports.FindLowestPriceDto = exports.FindEntitlementTermsByVariablesDto = exports.FindEntitlementTermsByGroupIdDto = exports.TermDto = exports.EntitlementTermsDto = exports.CreateEntitlementTermsDto = exports.CreateEntitlementGroupsTermsDto = void 0;
4
4
  const organization_dto_1 = require("../../organization/dto/organization.dto");
5
5
  /**
6
6
  * This represents the DTO for an array of multiple CreateEntitlementTermsDto objects you want to create at once (ie. data for multiple rows of the
@@ -39,9 +39,15 @@ exports.FindLowestPriceDto = FindLowestPriceDto;
39
39
  class FindGroupItemsPricingsDto {
40
40
  }
41
41
  exports.FindGroupItemsPricingsDto = FindGroupItemsPricingsDto;
42
+ class EntitlementGroupDto extends organization_dto_1.OrganizationBaseEntityDto {
43
+ }
44
+ exports.EntitlementGroupDto = EntitlementGroupDto;
42
45
  class CreateEntitlementGroupDto {
43
46
  }
44
47
  exports.CreateEntitlementGroupDto = CreateEntitlementGroupDto;
48
+ class CreateEntitlementGroupsDto {
49
+ }
50
+ exports.CreateEntitlementGroupsDto = CreateEntitlementGroupsDto;
45
51
  class GetEntitlementGroupPricingDto {
46
52
  }
47
53
  exports.GetEntitlementGroupPricingDto = GetEntitlementGroupPricingDto;
@@ -1 +1 @@
1
- {"version":3,"file":"pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/pricing/dto/pricing.dto.ts"],"names":[],"mappings":";;;AAAA,8EAAyG;AAIzG;;;GAGG;AACH,MAAa,+BAA+B;CAE3C;AAFD,0EAEC;AAED;;GAEG;AACH,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED;;GAEG;AACH,MAAa,mBAAoB,SAAQ,4CAAyB;CAIjE;AAJD,kDAIC;AAED;;GAEG;AACH,MAAa,OAAO;CAWnB;AAXD,0BAWC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,kCAAkC;CAG9C;AAHD,gFAGC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAQ1D;AARD,gDAQC;AAED,MAAa,yBAAyB;CAGrC;AAHD,8DAGC;AAED,MAAa,yBAAyB;CAErC;AAFD,8DAEC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,2BAA2B;CAEvC;AAFD,kEAEC;AAED,MAAa,6BAA6B;CAYzC;AAZD,sEAYC;AAED,MAAa,cAAc;CAwB1B;AAxBD,wCAwBC"}
1
+ {"version":3,"file":"pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/pricing/dto/pricing.dto.ts"],"names":[],"mappings":";;;AAAA,8EAAyG;AAIzG;;;GAGG;AACH,MAAa,+BAA+B;CAE3C;AAFD,0EAEC;AAED;;GAEG;AACH,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED;;GAEG;AACH,MAAa,mBAAoB,SAAQ,4CAAyB;CAIjE;AAJD,kDAIC;AAED;;GAEG;AACH,MAAa,OAAO;CAWnB;AAXD,0BAWC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,kCAAkC;CAG9C;AAHD,gFAGC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAQ1D;AARD,gDAQC;AAED,MAAa,yBAAyB;CAGrC;AAHD,8DAGC;AAED,MAAa,mBAAoB,SAAQ,4CAAyB;CAEjE;AAFD,kDAEC;AAED,MAAa,yBAAyB;CAErC;AAFD,8DAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,2BAA2B;CAEvC;AAFD,kEAEC;AAED,MAAa,6BAA6B;CAYzC;AAZD,sEAYC;AAED,MAAa,cAAc;CAwB1B;AAxBD,wCAwBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.29",
3
+ "version": "2.2.31",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {