@bondsports/types 2.0.83 → 2.0.85

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.
@@ -2,7 +2,7 @@ import { OrganizationBaseEntityDto } from '../../organization/dto/organization.d
2
2
  import { SimpleDiscountDto } from '../../payment/dto/discount.dto';
3
3
  import { CartDiscountOnEnum } from '../../payment/types/enums/discount.enums';
4
4
  import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
5
- import { ResourceDto } from '../../spaces/dto/resource.dto';
5
+ import { PurchaseResourceDto } from '../../purchase/dto/purchase.dto';
6
6
  import { SimpleUserDto } from '../../user/dto/user.dto';
7
7
  import { CartStatusEnum } from '../types/enums/cart.enums';
8
8
  export declare class CartDiscountDto extends OrganizationBaseEntityDto {
@@ -42,13 +42,13 @@ export declare class CartItemDto extends OrganizationBaseEntityDto {
42
42
  taxItem?: CartTaxDto;
43
43
  discounts?: CartDiscountDto[];
44
44
  children?: CartItemDto[];
45
- resources?: ResourceDto[];
45
+ resources?: PurchaseResourceDto[];
46
46
  }
47
47
  export declare class BaseCartItemDto {
48
48
  constructor(baseCartItem?: Partial<BaseCartItemDto>);
49
49
  quantity?: number;
50
50
  userId?: number;
51
- resources?: ResourceDto[];
51
+ resources?: PurchaseResourceDto[];
52
52
  }
53
53
  export declare class UpdateCartItemDto extends BaseCartItemDto {
54
54
  constructor(updateCartItem?: Partial<UpdateCartItemDto>);
@@ -1,13 +1,13 @@
1
1
  import { EntitlementGroup } from '../../entity/EntitlementGroup';
2
2
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
- import { Product } from '../../product-pricing/entities/Product';
4
3
  import { Discount } from '../../payment/entities/Discount';
4
+ import { Product } from '../../product-pricing/entities/Product';
5
+ import { PurchaseResourceDto } from '../../purchase/dto/purchase.dto';
5
6
  import { ProductTypesEnum } from '../../services/enums.service';
6
- import { ResourceDto } from '../../spaces/dto/resource.dto';
7
+ import { User } from '../../user/entities/User';
8
+ import { CartDiscountDto } from '../dto/cart-item.dto';
7
9
  import { CartStatusEnum } from '../types/enums/cart.enums';
8
10
  import { Cart } from './cart.entity';
9
- import { CartDiscountDto } from '../dto/cart-item.dto';
10
- import { User } from '../../user/entities/User';
11
11
  export declare class CartItem extends OrganizationConnectionBaseEntity {
12
12
  deletedAt?: Date;
13
13
  cartId: number;
@@ -36,5 +36,5 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
36
36
  taxItem?: CartItem;
37
37
  discountId?: number;
38
38
  discount?: Discount;
39
- resources?: ResourceDto[];
39
+ resources?: PurchaseResourceDto[];
40
40
  }
@@ -2,6 +2,8 @@ export declare enum SlackIconsEnum {
2
2
  DEFAULT = ":ghost:",
3
3
  SLACK = ":slack:",
4
4
  INFO = ":information_source:",
5
+ EXCLAMATION = ":exclamation:",
6
+ HEAVY_EXCLAMATION = ":bangbang:",
5
7
  SUCCESS = ":white_check_mark:",
6
8
  CHECK_YES = ":check_yes:",
7
9
  BLUE_TICK = ":blue-tick:",
@@ -10,6 +12,11 @@ export declare enum SlackIconsEnum {
10
12
  SOS = ":sos:",
11
13
  GREEN_ALERT = ":green_alert:",
12
14
  HEART = ":heart:",
15
+ HEARTS = ":hearts:",
16
+ STAR = ":star:",
17
+ BELL = ":bell:",
13
18
  BONDY = ":bondy:",
14
- BONDY_WORKING = ":working:"
19
+ BONDY_WORKING = ":working:",
20
+ BLOB_PARTY = ":party_jumpblob:",
21
+ BLOB_YAY = ":blob_yay:"
15
22
  }
@@ -6,6 +6,8 @@ var SlackIconsEnum;
6
6
  SlackIconsEnum["DEFAULT"] = ":ghost:";
7
7
  SlackIconsEnum["SLACK"] = ":slack:";
8
8
  SlackIconsEnum["INFO"] = ":information_source:";
9
+ SlackIconsEnum["EXCLAMATION"] = ":exclamation:";
10
+ SlackIconsEnum["HEAVY_EXCLAMATION"] = ":bangbang:";
9
11
  SlackIconsEnum["SUCCESS"] = ":white_check_mark:";
10
12
  SlackIconsEnum["CHECK_YES"] = ":check_yes:";
11
13
  SlackIconsEnum["BLUE_TICK"] = ":blue-tick:";
@@ -14,7 +16,12 @@ var SlackIconsEnum;
14
16
  SlackIconsEnum["SOS"] = ":sos:";
15
17
  SlackIconsEnum["GREEN_ALERT"] = ":green_alert:";
16
18
  SlackIconsEnum["HEART"] = ":heart:";
19
+ SlackIconsEnum["HEARTS"] = ":hearts:";
20
+ SlackIconsEnum["STAR"] = ":star:";
21
+ SlackIconsEnum["BELL"] = ":bell:";
17
22
  SlackIconsEnum["BONDY"] = ":bondy:";
18
23
  SlackIconsEnum["BONDY_WORKING"] = ":working:";
24
+ SlackIconsEnum["BLOB_PARTY"] = ":party_jumpblob:";
25
+ SlackIconsEnum["BLOB_YAY"] = ":blob_yay:";
19
26
  })(SlackIconsEnum = exports.SlackIconsEnum || (exports.SlackIconsEnum = {}));
20
27
  //# sourceMappingURL=slack.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"slack.enums.js","sourceRoot":"","sources":["../../../../../src/types/communication/types/enums/slack.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAcX;AAdD,WAAY,cAAc;IACzB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,+CAA6B,CAAA;IAC7B,gDAA8B,CAAA;IAC9B,2CAAyB,CAAA;IACzB,2CAAyB,CAAA;IACzB,uCAAqB,CAAA;IACrB,+BAAa,CAAA;IACb,+BAAa,CAAA;IACb,+CAA6B,CAAA;IAC7B,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,6CAA2B,CAAA;AAC5B,CAAC,EAdW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAczB"}
1
+ {"version":3,"file":"slack.enums.js","sourceRoot":"","sources":["../../../../../src/types/communication/types/enums/slack.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAqBX;AArBD,WAAY,cAAc;IACzB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAC7B,kDAAgC,CAAA;IAChC,gDAA8B,CAAA;IAC9B,2CAAyB,CAAA;IACzB,2CAAyB,CAAA;IACzB,uCAAqB,CAAA;IACrB,+BAAa,CAAA;IACb,+BAAa,CAAA;IACb,+CAA6B,CAAA;IAC7B,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,6CAA2B,CAAA;IAC3B,iDAA+B,CAAA;IAC/B,yCAAuB,CAAA;AACxB,CAAC,EArBW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAqBzB"}
@@ -70,3 +70,7 @@ export declare class SimpleMembershipDto extends IdAndNameDto {
70
70
  activity?: SportsEnum;
71
71
  membershipType: MembershipTypeEnum;
72
72
  }
73
+ export declare class DateAndUserIdsDto {
74
+ date: Date;
75
+ userIds?: number[];
76
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SimpleMembershipDto = exports.GetMembershipDataQueryDto = exports.CancelMembershipDto = exports.FindMembersOptionsDto = exports.MemberIdDto = exports.MembershipIdsDto = exports.SetMembersStartDateByOrganization = exports.FindMembershipsByUserIdDto = exports.FindMembershipsByOrganizationIdDto = exports.FindMembershipByIdDto = exports.UpdateMembershipMediaDto = exports.UpdateMembrshipDto = exports.CreateMembershipDto = void 0;
3
+ exports.DateAndUserIdsDto = exports.SimpleMembershipDto = exports.GetMembershipDataQueryDto = exports.CancelMembershipDto = exports.FindMembersOptionsDto = exports.MemberIdDto = exports.MembershipIdsDto = exports.SetMembersStartDateByOrganization = exports.FindMembershipsByUserIdDto = exports.FindMembershipsByOrganizationIdDto = exports.FindMembershipByIdDto = exports.UpdateMembershipMediaDto = exports.UpdateMembrshipDto = exports.CreateMembershipDto = void 0;
4
4
  const general_dto_1 = require("./general.dto");
5
5
  class CreateMembershipDto {
6
6
  }
@@ -41,4 +41,7 @@ exports.GetMembershipDataQueryDto = GetMembershipDataQueryDto;
41
41
  class SimpleMembershipDto extends general_dto_1.IdAndNameDto {
42
42
  }
43
43
  exports.SimpleMembershipDto = SimpleMembershipDto;
44
+ class DateAndUserIdsDto {
45
+ }
46
+ exports.DateAndUserIdsDto = DateAndUserIdsDto;
44
47
  //# sourceMappingURL=membership.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../src/types/dto/membership.dto.ts"],"names":[],"mappings":";;;AAWA,+CAA8D;AAE9D,MAAa,mBAAmB;CAwB/B;AAxBD,kDAwBC;AAED,MAAa,kBAAmB,SAAQ,mBAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,wBAAwB;CAGpC;AAHD,4DAGC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,iCAAkC,SAAQ,kCAAkC;CAExF;AAFD,8EAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,qBAAsB,SAAQ,6BAAe;CAGzD;AAHD,sDAGC;AAED,MAAa,mBAAmB;CAG/B;AAHD,kDAGC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAU7D;AAVD,8DAUC;AAED,MAAa,mBAAoB,SAAQ,0BAAY;CAQpD;AARD,kDAQC"}
1
+ {"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../src/types/dto/membership.dto.ts"],"names":[],"mappings":";;;AAWA,+CAA8D;AAE9D,MAAa,mBAAmB;CAwB/B;AAxBD,kDAwBC;AAED,MAAa,kBAAmB,SAAQ,mBAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,wBAAwB;CAGpC;AAHD,4DAGC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,iCAAkC,SAAQ,kCAAkC;CAExF;AAFD,8EAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,qBAAsB,SAAQ,6BAAe;CAGzD;AAHD,sDAGC;AAED,MAAa,mBAAmB;CAG/B;AAHD,kDAGC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAU7D;AAVD,8DAUC;AAED,MAAa,mBAAoB,SAAQ,0BAAY;CAQpD;AARD,kDAQC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC"}
@@ -87,3 +87,30 @@ export interface IMembershipMemberAndRenewalRecord {
87
87
  member: MembershipMember;
88
88
  record?: MembershipMemberRenewal;
89
89
  }
90
+ export interface IDuplicatedIndividualMembershipPaymentData extends IDuplicatedPaymentData {
91
+ memberId: number;
92
+ }
93
+ export interface IDuplicatedFamilyMembershipPaymentData extends IDuplicatedPaymentData {
94
+ memberIds: number[];
95
+ childLineItems: number[];
96
+ }
97
+ export interface IDuplicatedPaymentData {
98
+ lineItemId: number;
99
+ paidAmount: number | string;
100
+ invoiceId: number;
101
+ paymentType: PaymentMethodTypeEnum;
102
+ paymentId: string;
103
+ lineItemQuantity: number;
104
+ }
105
+ export interface IDuplicatedMembershipRawData {
106
+ membershipId: number;
107
+ userId: number;
108
+ invoices: string[];
109
+ customerTypes: CustomerInMembershipTypeEnum[];
110
+ }
111
+ export interface IDuplicatedMembershipData {
112
+ membershipId: number;
113
+ userId: number;
114
+ invoiceId: number;
115
+ customerTypes: CustomerInMembershipTypeEnum[];
116
+ }
@@ -40,6 +40,8 @@ export declare class PurchaseRequestDto {
40
40
  installmentId?: number;
41
41
  }
42
42
  export declare class PurchaseResourceDto extends ResourceDto {
43
+ startDate?: Date;
44
+ resourceIdToRenew?: number;
43
45
  }
44
46
  export declare class PurchaseProductDto {
45
47
  id: number;
@@ -1 +1 @@
1
- {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAYA,gEAA4D;AAG5D,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CA8B9B;AA9BD,gDA8BC;AAED,MAAa,mBAAoB,SAAQ,0BAAW;CAAG;AAAvD,kDAAuD;AAEvD,MAAa,kBAAkB;CA2B9B;AA3BD,gDA2BC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAe;CAgB3B;AAhBD,0CAgBC"}
1
+ {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAYA,gEAA4D;AAG5D,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CA8B9B;AA9BD,gDA8BC;AAED,MAAa,mBAAoB,SAAQ,0BAAW;CAInD;AAJD,kDAIC;AAED,MAAa,kBAAkB;CA2B9B;AA3BD,gDA2BC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAe;CAgB3B;AAhBD,0CAgBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.0.83",
3
+ "version": "2.0.85",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {