@bondsports/types 2.2.89 → 2.2.90

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
- import { PaymentStatusEnum } from '../payment/types/enums/payment.enums';
2
- import { CustomerInMembershipTypeEnum, GenderEnum, MembershipFilterByPropertyEnum, MembershipOrderByPropertyEnum, MembershipStatusEnum, MembershipTypeEnum, OrderByEnum, SportsEnum } from '../services/enums.service';
1
+ import { PaymentMethodTypeEnum, PaymentStatusEnum } from '../payment/types/enums/payment.enums';
2
+ import { CancellationStatusEnum, CustomerInMembershipTypeEnum, GenderEnum, MembershipFilterByPropertyEnum, MembershipOrderByPropertyEnum, MembershipStatusEnum, MembershipTypeEnum, OrderByEnum, SportsEnum } from '../services/enums.service';
3
3
  import { IdAndNameDto, PaginationQuery } from './general.dto';
4
4
  import { ImportResponseDto } from '../import/dto/import.dto';
5
5
  export declare class CreateMembershipDto {
@@ -95,6 +95,24 @@ export declare class MembershipMemberDto {
95
95
  userId: number;
96
96
  productId: number;
97
97
  membershipId: number;
98
+ productUserId?: number;
99
+ membershipType?: MembershipTypeEnum;
100
+ durationMonths?: number;
101
+ startDate?: string;
102
+ endDate?: string;
103
+ renewalOfMemberId?: number;
104
+ isAutoRenew?: boolean;
105
+ nextPaymentMethodId?: string;
106
+ nextPaymentType?: PaymentMethodTypeEnum;
107
+ answerTitleIds?: number[];
108
+ cancelledAt?: Date;
109
+ cancellationReason?: string;
110
+ cancellationStatus?: CancellationStatusEnum;
111
+ membershipStatus?: MembershipStatusEnum;
98
112
  }
99
113
  export declare class MembershipMemberImportResponseDto extends ImportResponseDto<MembershipMemberDto> {
100
114
  }
115
+ export declare class AddFamilyMemberToMembershipDto {
116
+ membershipIds: number[];
117
+ userIds: number[];
118
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MembershipMemberImportResponseDto = exports.MembershipMemberDto = exports.MembershipImportResponseDto = exports.DateAndUserIdsDto = exports.SimpleMembershipDto = exports.GetMembershipDataQueryDto = exports.CancelMembershipDto = exports.FindMembersOptionsDto = exports.MemberIdDto = exports.MembershipIdsDto = exports.SetMembersStartDateByOrganization = exports.FindMembershipsByUserIdDto = exports.FindMembershipByFiltersDto = exports.FindMembershipsByOrganizationIdDto = exports.FindMembershipByIdDto = exports.UpdateMembershipMediaDto = exports.UpdateMembrshipDto = exports.CreateMembershipDto = void 0;
3
+ exports.AddFamilyMemberToMembershipDto = exports.MembershipMemberImportResponseDto = exports.MembershipMemberDto = exports.MembershipImportResponseDto = exports.DateAndUserIdsDto = exports.SimpleMembershipDto = exports.GetMembershipDataQueryDto = exports.CancelMembershipDto = exports.FindMembersOptionsDto = exports.MemberIdDto = exports.MembershipIdsDto = exports.SetMembersStartDateByOrganization = exports.FindMembershipsByUserIdDto = exports.FindMembershipByFiltersDto = exports.FindMembershipsByOrganizationIdDto = exports.FindMembershipByIdDto = exports.UpdateMembershipMediaDto = exports.UpdateMembrshipDto = exports.CreateMembershipDto = void 0;
4
4
  const general_dto_1 = require("./general.dto");
5
5
  const import_dto_1 = require("../import/dto/import.dto");
6
6
  class CreateMembershipDto {
@@ -57,4 +57,7 @@ exports.MembershipMemberDto = MembershipMemberDto;
57
57
  class MembershipMemberImportResponseDto extends import_dto_1.ImportResponseDto {
58
58
  }
59
59
  exports.MembershipMemberImportResponseDto = MembershipMemberImportResponseDto;
60
+ class AddFamilyMemberToMembershipDto {
61
+ }
62
+ exports.AddFamilyMemberToMembershipDto = AddFamilyMemberToMembershipDto;
60
63
  //# 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,+CAAqE;AAGrE,yDAA6D;AAE7D,MAAa,mBAAmB;CA0C/B;AA1CD,kDA0CC;AAED,MAAa,kBAAmB,SAAQ,mBAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,wBAAwB;CAGpC;AAHD,4DA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AED,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;CAYpD;AAZD,kDAYC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAa,2BAA4B,SAAQ,8BAAsC;CAAG;AAA1F,kEAA0F;AAE1F,MAAa,mBAAmB;CAkC/B;AAlCD,kDAkCC;AAED,MAAa,iCAAkC,SAAQ,8BAAsC;CAAG;AAAhG,8EAAgG;AAEhG,MAAa,8BAA8B;CAI1C;AAJD,wEAIC"}
@@ -119,3 +119,8 @@ export interface IProductRelatedMembership {
119
119
  membershipId: number;
120
120
  productId: number;
121
121
  }
122
+ export interface IValidateMembershipRegistrationOptions {
123
+ isAutoRenewal?: boolean;
124
+ skipRegistrationDates?: boolean;
125
+ membership?: Membership;
126
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.89",
3
+ "version": "2.2.90",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {