@bondsports/types 2.1.24 → 2.1.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/dto/membership.dto.d.ts +11 -6
- package/dist/types/dto/membership.dto.js +4 -1
- package/dist/types/dto/membership.dto.js.map +1 -1
- package/dist/types/entity/Membership.d.ts +2 -1
- package/dist/types/entity/Membership.js.map +1 -1
- package/dist/types/import/dto/customer.dto.d.ts +22 -0
- package/dist/types/import/dto/customer.dto.js +13 -1
- package/dist/types/import/dto/customer.dto.js.map +1 -1
- package/dist/types/import/dto/index.d.ts +1 -0
- package/dist/types/import/dto/index.js +1 -0
- package/dist/types/import/dto/index.js.map +1 -1
- package/dist/types/import/dto/membership.dto.d.ts +20 -0
- package/dist/types/import/dto/membership.dto.js +20 -0
- package/dist/types/import/dto/membership.dto.js.map +1 -0
- package/package.json +1 -1
@@ -1,16 +1,17 @@
|
|
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';
|
4
5
|
export declare class CreateMembershipDto {
|
5
6
|
organizationId: number;
|
6
7
|
name: string;
|
7
8
|
description?: string;
|
8
9
|
customerTypes: CustomerInMembershipTypeEnum[];
|
9
|
-
activity
|
10
|
-
facilityId
|
11
|
-
questionnaires
|
12
|
-
minAgeYears
|
13
|
-
maxAgeYears
|
10
|
+
activity?: SportsEnum;
|
11
|
+
facilityId?: number;
|
12
|
+
questionnaires?: number[];
|
13
|
+
minAgeYears?: number;
|
14
|
+
maxAgeYears?: number;
|
14
15
|
gender: GenderEnum;
|
15
16
|
maxMembers?: number;
|
16
17
|
maxMaleMembers?: number;
|
@@ -20,7 +21,7 @@ export declare class CreateMembershipDto {
|
|
20
21
|
registrationStartDate?: Date;
|
21
22
|
registrationEndDate?: Date;
|
22
23
|
membershipType: MembershipTypeEnum;
|
23
|
-
durationMonths
|
24
|
+
durationMonths?: number;
|
24
25
|
longDescription?: string;
|
25
26
|
isAutoRenew?: boolean;
|
26
27
|
}
|
@@ -87,3 +88,7 @@ export declare class DateAndUserIdsDto {
|
|
87
88
|
date: Date;
|
88
89
|
userIds?: number[];
|
89
90
|
}
|
91
|
+
export declare class MembershipImportResponseDto {
|
92
|
+
data: Membership[];
|
93
|
+
problems: any[];
|
94
|
+
}
|
@@ -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.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,7 @@ exports.SimpleMembershipDto = SimpleMembershipDto;
|
|
47
47
|
class DateAndUserIdsDto {
|
48
48
|
}
|
49
49
|
exports.DateAndUserIdsDto = DateAndUserIdsDto;
|
50
|
+
class MembershipImportResponseDto {
|
51
|
+
}
|
52
|
+
exports.MembershipImportResponseDto = MembershipImportResponseDto;
|
50
53
|
//# 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;
|
1
|
+
{"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../src/types/dto/membership.dto.ts"],"names":[],"mappings":";;;AAWA,+CAA8D;AAG9D,MAAa,mBAAmB;CA0C/B;AA1CD,kDA0CC;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,6BAAe;CAoB9D;AApBD,gEAoBC;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;CAUpD;AAVD,kDAUC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC"}
|
@@ -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;
|
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;
|
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;CAO3B;AAPD,0CAOC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC"}
|
@@ -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,20 @@
|
|
1
|
+
import { CreateMembershipDto } from '../../dto/membership.dto';
|
2
|
+
export declare class MembershipImportValidationDto {
|
3
|
+
problems: any[];
|
4
|
+
existingMemberships: ExistingMembershipDto[];
|
5
|
+
}
|
6
|
+
export declare class MembershipMemberImportValidationDto {
|
7
|
+
problems: any[];
|
8
|
+
existingMembers: ExistingMembersDto[];
|
9
|
+
}
|
10
|
+
export declare class ExistingMembershipDto {
|
11
|
+
id: number;
|
12
|
+
name: string;
|
13
|
+
}
|
14
|
+
export declare class ExistingMembersDto {
|
15
|
+
id: number;
|
16
|
+
userId: number;
|
17
|
+
}
|
18
|
+
export declare class ImportMembershipDto extends CreateMembershipDto {
|
19
|
+
importedId?: string;
|
20
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ImportMembershipDto = exports.ExistingMembersDto = exports.ExistingMembershipDto = exports.MembershipMemberImportValidationDto = exports.MembershipImportValidationDto = void 0;
|
4
|
+
const membership_dto_1 = require("../../dto/membership.dto");
|
5
|
+
class MembershipImportValidationDto {
|
6
|
+
}
|
7
|
+
exports.MembershipImportValidationDto = MembershipImportValidationDto;
|
8
|
+
class MembershipMemberImportValidationDto {
|
9
|
+
}
|
10
|
+
exports.MembershipMemberImportValidationDto = MembershipMemberImportValidationDto;
|
11
|
+
class ExistingMembershipDto {
|
12
|
+
}
|
13
|
+
exports.ExistingMembershipDto = ExistingMembershipDto;
|
14
|
+
class ExistingMembersDto {
|
15
|
+
}
|
16
|
+
exports.ExistingMembersDto = ExistingMembersDto;
|
17
|
+
class ImportMembershipDto extends membership_dto_1.CreateMembershipDto {
|
18
|
+
}
|
19
|
+
exports.ImportMembershipDto = ImportMembershipDto;
|
20
|
+
//# 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,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,mCAAmC;CAI/C;AAJD,kFAIC;AAGD,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,mBAAoB,SAAQ,oCAAmB;CAE3D;AAFD,kDAEC"}
|