@bondsports/types 2.1.24 → 2.1.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +1,18 @@
1
1
  import { PaymentStatusEnum } from '../payment/types/enums/payment.enums';
2
2
  import { CustomerInMembershipTypeEnum, GenderEnum, MembershipFilterByPropertyEnum, MembershipOrderByPropertyEnum, MembershipStatusEnum, MembershipTypeEnum, OrderByEnum, SportsEnum } from '../services/enums.service';
3
3
  import { IdAndNameDto, PaginationQuery } from './general.dto';
4
+ import { Membership } from '../entity/Membership';
5
+ import { MembershipMember } from '../entity/MembershipMember';
4
6
  export declare class CreateMembershipDto {
5
7
  organizationId: number;
6
8
  name: string;
7
9
  description?: string;
8
10
  customerTypes: CustomerInMembershipTypeEnum[];
9
- activity: SportsEnum;
10
- facilityId: number;
11
- questionnaires: number[];
12
- minAgeYears: number;
13
- maxAgeYears: number;
11
+ activity?: SportsEnum;
12
+ facilityId?: number;
13
+ questionnaires?: number[];
14
+ minAgeYears?: number;
15
+ maxAgeYears?: number;
14
16
  gender: GenderEnum;
15
17
  maxMembers?: number;
16
18
  maxMaleMembers?: number;
@@ -20,7 +22,7 @@ export declare class CreateMembershipDto {
20
22
  registrationStartDate?: Date;
21
23
  registrationEndDate?: Date;
22
24
  membershipType: MembershipTypeEnum;
23
- durationMonths: number;
25
+ durationMonths?: number;
24
26
  longDescription?: string;
25
27
  isAutoRenew?: boolean;
26
28
  }
@@ -87,3 +89,11 @@ export declare class DateAndUserIdsDto {
87
89
  date: Date;
88
90
  userIds?: number[];
89
91
  }
92
+ export declare class MembershipImportResponseDto {
93
+ data: Membership[];
94
+ problems: any[];
95
+ }
96
+ export declare class MembershipMemberImportResponseDto {
97
+ data: MembershipMember[];
98
+ problems: any[];
99
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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.MembershipMemberImportResponseDto = 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
  class CreateMembershipDto {
6
6
  }
@@ -47,4 +47,10 @@ exports.SimpleMembershipDto = SimpleMembershipDto;
47
47
  class DateAndUserIdsDto {
48
48
  }
49
49
  exports.DateAndUserIdsDto = DateAndUserIdsDto;
50
+ class MembershipImportResponseDto {
51
+ }
52
+ exports.MembershipImportResponseDto = MembershipImportResponseDto;
53
+ class MembershipMemberImportResponseDto {
54
+ }
55
+ exports.MembershipMemberImportResponseDto = MembershipMemberImportResponseDto;
50
56
  //# 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,0BAA2B,SAAQ,6B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,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,iCAAiC;CAI7C;AAJD,8EAIC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;AAcA,yFAAsF;AAItF,MAAa,SAAU,SAAQ,mEAAgC;CAmI9D;AAnID,8BAmIC"}
1
+ {"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;AAyBA,yFAAsF;AAItF,MAAa,SAAU,SAAQ,mEAAgC;CAmI9D;AAnID,8BAmIC"}
@@ -1,6 +1,6 @@
1
+ import { Media } from '../media/entities/Media';
1
2
  import { CustomerInMembershipTypeEnum, GenderEnum, MembershipTypeEnum, SportsEnum } from './../services/enums.service';
2
3
  import { IPackageResponse } from './../services/interfaces.service';
3
- import { Media } from '../media/entities/Media';
4
4
  import { MembershipMember } from './MembershipMember';
5
5
  import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
6
6
  import { PurchasedResource } from './PurchasedResources';
@@ -29,6 +29,7 @@ export declare class Membership extends OrganizationConnectionBaseEntity {
29
29
  tags: any[];
30
30
  longDescription?: string;
31
31
  isAutoRenew?: boolean;
32
+ importedId?: string;
32
33
  members: MembershipMember[];
33
34
  purchasedResources: PurchasedResource[];
34
35
  relatedProductsIds?: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"Membership.js","sourceRoot":"","sources":["../../../src/types/entity/Membership.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAGtF,MAAa,UAAW,SAAQ,mEAAgC;IAAhE;;QA8CC,gCAAgC;QAChC,SAAI,GAAG,EAAE,CAAC;IAWX,CAAC;CAAA;AA1DD,gCA0DC"}
1
+ {"version":3,"file":"Membership.js","sourceRoot":"","sources":["../../../src/types/entity/Membership.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAGtF,MAAa,UAAW,SAAQ,mEAAgC;IAAhE;;QA8CC,gCAAgC;QAChC,SAAI,GAAG,EAAE,CAAC;IAaX,CAAC;CAAA;AA5DD,gCA4DC"}
@@ -1,4 +1,6 @@
1
1
  import { CreateOrEditCustomerDto } from '../../customers/dto/createOrEditCustomer.dto';
2
+ import { Customer } from '../../entity/Customer';
3
+ import { User } from '../../user/entities/User';
2
4
  export declare class AddImportedCustomerDto extends CreateOrEditCustomerDto {
3
5
  importedID: string;
4
6
  name?: string;
@@ -14,3 +16,23 @@ export declare class AddFamilyDto {
14
16
  parents: AddImportedCustomerDto[];
15
17
  children: AddImportedCustomerDto[];
16
18
  }
19
+ export declare class CustomerImportValidationDto {
20
+ problems: any[];
21
+ existingCustomers: Customer[];
22
+ existingUsers: User[];
23
+ }
24
+ export declare class ExistingCustomerDto {
25
+ id: number;
26
+ importedID: string;
27
+ name: string;
28
+ email: string;
29
+ }
30
+ export declare class ExistingUserDto {
31
+ id: number;
32
+ importedID: string;
33
+ email: string;
34
+ }
35
+ export declare class CustomerImportResponseDto {
36
+ data: Customer[];
37
+ problems: any[];
38
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AddFamilyDto = exports.AddImportedCustomerDto = void 0;
3
+ exports.CustomerImportResponseDto = exports.ExistingUserDto = exports.ExistingCustomerDto = exports.CustomerImportValidationDto = exports.AddFamilyDto = exports.AddImportedCustomerDto = void 0;
4
4
  const createOrEditCustomer_dto_1 = require("../../customers/dto/createOrEditCustomer.dto");
5
5
  class AddImportedCustomerDto extends createOrEditCustomer_dto_1.CreateOrEditCustomerDto {
6
6
  }
@@ -8,4 +8,16 @@ exports.AddImportedCustomerDto = AddImportedCustomerDto;
8
8
  class AddFamilyDto {
9
9
  }
10
10
  exports.AddFamilyDto = AddFamilyDto;
11
+ class CustomerImportValidationDto {
12
+ }
13
+ exports.CustomerImportValidationDto = CustomerImportValidationDto;
14
+ class ExistingCustomerDto {
15
+ }
16
+ exports.ExistingCustomerDto = ExistingCustomerDto;
17
+ class ExistingUserDto {
18
+ }
19
+ exports.ExistingUserDto = ExistingUserDto;
20
+ class CustomerImportResponseDto {
21
+ }
22
+ exports.CustomerImportResponseDto = CustomerImportResponseDto;
11
23
  //# sourceMappingURL=customer.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/customer.dto.ts"],"names":[],"mappings":";;;AAAA,2FAAuF;AAEvF,MAAa,sBAAuB,SAAQ,kDAAuB;CAkBlE;AAlBD,wDAkBC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC"}
1
+ {"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/customer.dto.ts"],"names":[],"mappings":";;;AAAA,2FAAuF;AAIvF,MAAa,sBAAuB,SAAQ,kDAAuB;CAkBlE;AAlBD,wDAkBC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC;AAED,MAAa,2BAA2B;CAMvC;AAND,kEAMC;AAED,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC"}
@@ -1,5 +1,6 @@
1
1
  export * from './customer.dto';
2
2
  export * from './invoices.dto';
3
+ export * from './membership.dto';
3
4
  export * from './product.dto';
4
5
  export * from './punch-pass.dto';
5
6
  export * from './reservation.dto';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./customer.dto"), exports);
18
18
  __exportStar(require("./invoices.dto"), exports);
19
+ __exportStar(require("./membership.dto"), exports);
19
20
  __exportStar(require("./product.dto"), exports);
20
21
  __exportStar(require("./punch-pass.dto"), exports);
21
22
  __exportStar(require("./reservation.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/import/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B;AAC9B,mDAAiC;AACjC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/import/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iDAA+B;AAC/B,mDAAiC;AACjC,gDAA8B;AAC9B,mDAAiC;AACjC,oDAAkC"}
@@ -0,0 +1,33 @@
1
+ import { CreateMembershipDto } from '../../dto/membership.dto';
2
+ import { PaymentMethodTypeEnum } from '../../payment/types/enums/payment.enums';
3
+ import { AddImportedCustomerDto } from './customer.dto';
4
+ export declare class MembershipImportValidationDto {
5
+ problems: any[];
6
+ existingMemberships: ExistingMembershipDto[];
7
+ }
8
+ export declare class MembershipMemberImportValidationDto {
9
+ problems: any[];
10
+ existingMembers: ExistingMembersDto[];
11
+ }
12
+ export declare class ExistingMembershipDto {
13
+ id: number;
14
+ name: string;
15
+ }
16
+ export declare class ExistingMembersDto {
17
+ id: number;
18
+ userId: number;
19
+ }
20
+ export declare class ImportMembershipDto extends CreateMembershipDto {
21
+ importedId?: string;
22
+ }
23
+ export declare class ImportMembershipMembersDto extends AddImportedCustomerDto {
24
+ importedCustomerId: string;
25
+ userId: number;
26
+ importedCustomerParentId: string;
27
+ parentId: number;
28
+ importedMemberhipId: string;
29
+ membershipId: number;
30
+ paymentMethodId?: string;
31
+ paymentMethodType?: PaymentMethodTypeEnum;
32
+ startDate?: Date;
33
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ImportMembershipMembersDto = exports.ImportMembershipDto = exports.ExistingMembersDto = exports.ExistingMembershipDto = exports.MembershipMemberImportValidationDto = exports.MembershipImportValidationDto = void 0;
4
+ const membership_dto_1 = require("../../dto/membership.dto");
5
+ const customer_dto_1 = require("./customer.dto");
6
+ class MembershipImportValidationDto {
7
+ }
8
+ exports.MembershipImportValidationDto = MembershipImportValidationDto;
9
+ class MembershipMemberImportValidationDto {
10
+ }
11
+ exports.MembershipMemberImportValidationDto = MembershipMemberImportValidationDto;
12
+ class ExistingMembershipDto {
13
+ }
14
+ exports.ExistingMembershipDto = ExistingMembershipDto;
15
+ class ExistingMembersDto {
16
+ }
17
+ exports.ExistingMembersDto = ExistingMembersDto;
18
+ class ImportMembershipDto extends membership_dto_1.CreateMembershipDto {
19
+ }
20
+ exports.ImportMembershipDto = ImportMembershipDto;
21
+ class ImportMembershipMembersDto extends customer_dto_1.AddImportedCustomerDto {
22
+ }
23
+ exports.ImportMembershipMembersDto = ImportMembershipMembersDto;
24
+ //# sourceMappingURL=membership.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/membership.dto.ts"],"names":[],"mappings":";;;AAAA,6DAA+D;AAE/D,iDAAwD;AAExD,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,mCAAmC;CAI/C;AAJD,kFAIC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,mBAAoB,SAAQ,oCAAmB;CAE3D;AAFD,kDAEC;AAED,MAAa,0BAA2B,SAAQ,qCAAsB;CAqBrE;AArBD,gEAqBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.1.24",
3
+ "version": "2.1.26",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {