@bondsports/types 2.2.187 → 2.2.189

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,14 @@
1
- import { CartItem } from '../../../cart/entities/cart-item.entity';
2
1
  import { InvoiceDiscountOnEnum } from '../../../payment/types/enums/discount.enums';
3
2
  export declare const discountOnMapper: {
4
3
  [key: string]: InvoiceDiscountOnEnum;
5
4
  };
5
+ type HasIdOrUnique = {
6
+ id?: number | string;
7
+ unique?: string;
8
+ };
6
9
  /**
7
10
  * Generates a unique key for a given cart item.
8
11
  *
9
12
  */
10
- export declare const getUniqueKey: (cartItem: CartItem) => string;
13
+ export declare const getUniqueKey: (entity: HasIdOrUnique) => string;
14
+ export {};
@@ -10,9 +10,9 @@ exports.discountOnMapper = {
10
10
  * Generates a unique key for a given cart item.
11
11
  *
12
12
  */
13
- const getUniqueKey = (cartItem) => {
13
+ const getUniqueKey = (entity) => {
14
14
  var _a, _b;
15
- return (_b = (_a = cartItem.id) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : cartItem.unique;
15
+ return (_b = (_a = entity.id) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : entity.unique;
16
16
  };
17
17
  exports.getUniqueKey = getUniqueKey;
18
18
  //# sourceMappingURL=invoice.consts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.consts.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/invoice.consts.ts"],"names":[],"mappings":";;;AACA,gFAAoG;AAEvF,QAAA,gBAAgB,GAA6C;IACzE,CAAC,+BAAc,CAAC,IAAI,CAAC,EAAE,sCAAqB,CAAC,SAAS;IACtD,CAAC,+BAAc,CAAC,GAAG,CAAC,EAAE,sCAAqB,CAAC,OAAO;CACnD,CAAC;AAEF;;;GAGG;AACI,MAAM,YAAY,GAAmC,CAAC,QAAkB,EAAU,EAAE;;IAC1F,OAAO,MAAA,MAAA,QAAQ,CAAC,EAAE,0CAAE,QAAQ,EAAE,mCAAI,QAAQ,CAAC,MAAM,CAAC;AACnD,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB"}
1
+ {"version":3,"file":"invoice.consts.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/invoice.consts.ts"],"names":[],"mappings":";;;AAAA,gFAAoG;AAEvF,QAAA,gBAAgB,GAA6C;IACzE,CAAC,+BAAc,CAAC,IAAI,CAAC,EAAE,sCAAqB,CAAC,SAAS;IACtD,CAAC,+BAAc,CAAC,GAAG,CAAC,EAAE,sCAAqB,CAAC,OAAO;CACnD,CAAC;AAOF;;;GAGG;AACI,MAAM,YAAY,GAAsC,CAAC,MAAqB,EAAU,EAAE;;IAChG,OAAO,MAAA,MAAA,MAAM,CAAC,EAAE,0CAAE,QAAQ,EAAE,mCAAI,MAAM,CAAC,MAAM,CAAC;AAC/C,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB"}
@@ -19,6 +19,7 @@ export declare class UpdateRolePermissionGroupsDto {
19
19
  export declare class GetPermissionGroupsOptionsDto extends PaginatedSearchDto {
20
20
  includeInactive?: boolean;
21
21
  includePermissions?: boolean;
22
+ includeChildGroups?: boolean;
22
23
  }
23
24
  export declare class VerifyActionDto {
24
25
  areYouSure: boolean;
@@ -22,6 +22,7 @@ class GetPermissionGroupsOptionsDto extends general_dto_1.PaginatedSearchDto {
22
22
  super(...arguments);
23
23
  this.includeInactive = false;
24
24
  this.includePermissions = false;
25
+ this.includeChildGroups = false;
25
26
  }
26
27
  }
27
28
  exports.GetPermissionGroupsOptionsDto = GetPermissionGroupsOptionsDto;
@@ -1 +1 @@
1
- {"version":3,"file":"permission-group.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/permission-group.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA2D;AAG3D,MAAa,wBAAwB;IAArC;QAGC,WAAM,GAAI,IAAI,CAAC;IAChB,CAAC;CAAA;AAJD,4DAIC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,kBAAmB,SAAQ,wBAAwB;CAM/D;AAND,gDAMC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,6BAA8B,SAAQ,gCAAkB;IAArE;;QACC,oBAAe,GAAI,KAAK,CAAC;QAEzB,uBAAkB,GAAI,KAAK,CAAC;IAC7B,CAAC;CAAA;AAJD,sEAIC;AAED,MAAa,eAAe;IAA5B;QACC,eAAU,GAAG,KAAK,CAAC;IACpB,CAAC;CAAA;AAFD,0CAEC"}
1
+ {"version":3,"file":"permission-group.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/permission-group.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA2D;AAG3D,MAAa,wBAAwB;IAArC;QAGC,WAAM,GAAI,IAAI,CAAC;IAChB,CAAC;CAAA;AAJD,4DAIC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,kBAAmB,SAAQ,wBAAwB;CAM/D;AAND,gDAMC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,6BAA8B,SAAQ,gCAAkB;IAArE;;QACC,oBAAe,GAAI,KAAK,CAAC;QAEzB,uBAAkB,GAAI,KAAK,CAAC;QAE5B,uBAAkB,GAAI,KAAK,CAAC;IAC7B,CAAC;CAAA;AAND,sEAMC;AAED,MAAa,eAAe;IAA5B;QACC,eAAU,GAAG,KAAK,CAAC;IACpB,CAAC;CAAA;AAFD,0CAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.187",
3
+ "version": "2.2.189",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {