@bondsports/types 1.2.0 → 1.2.1
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.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/customers/dto/createFamily.dto.d.ts +7 -0
- package/dist/types/customers/dto/createFamily.dto.js +10 -0
- package/dist/types/customers/dto/createFamily.dto.js.map +1 -0
- package/dist/types/customers/dto/createOrEditCustomer.dto.d.ts +27 -0
- package/dist/types/customers/dto/createOrEditCustomer.dto.js +10 -0
- package/dist/types/customers/dto/createOrEditCustomer.dto.js.map +1 -0
- package/dist/types/customers/dto/customerOfOrganization.dto.d.ts +4 -0
- package/dist/types/customers/dto/customerOfOrganization.dto.js +7 -0
- package/dist/types/customers/dto/customerOfOrganization.dto.js.map +1 -0
- package/dist/types/customers/dto/index.d.ts +3 -0
- package/dist/types/customers/dto/index.js +20 -0
- package/dist/types/customers/dto/index.js.map +1 -0
- package/dist/types/customers/index.d.ts +1 -0
- package/dist/types/customers/index.js +18 -0
- package/dist/types/customers/index.js.map +1 -0
- package/dist/types/dto/customer.dto.d.ts +1 -22
- package/dist/types/dto/customer.dto.js +1 -4
- package/dist/types/dto/customer.dto.js.map +1 -1
- package/dist/types/entity/Customer.d.ts +2 -0
- package/dist/types/entity/Customer.js.map +1 -1
- package/dist/types/import/dto/customer.dto.d.ts +2 -2
- package/dist/types/import/dto/customer.dto.js +2 -2
- package/dist/types/import/dto/customer.dto.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/organization/dto/organization.dto.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateFamilyResponseDto = exports.CreateFamilyDto = void 0;
|
|
4
|
+
class CreateFamilyDto {
|
|
5
|
+
}
|
|
6
|
+
exports.CreateFamilyDto = CreateFamilyDto;
|
|
7
|
+
class CreateFamilyResponseDto {
|
|
8
|
+
}
|
|
9
|
+
exports.CreateFamilyResponseDto = CreateFamilyResponseDto;
|
|
10
|
+
//# sourceMappingURL=createFamily.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFamily.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/createFamily.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,uBAAuB;CAGnC;AAHD,0DAGC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Customer } from '../../entity/Customer';
|
|
2
|
+
import { CustomerTypeEnum, ResourceNameTypeEnum, GenderEnum } from '../../services/enums.service';
|
|
3
|
+
export declare class CreateOrEditCustomerDto {
|
|
4
|
+
firstName?: string;
|
|
5
|
+
lastName?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
entityId?: number;
|
|
8
|
+
entityType?: CustomerTypeEnum;
|
|
9
|
+
email?: string;
|
|
10
|
+
colorCodeId?: number;
|
|
11
|
+
street?: string;
|
|
12
|
+
city?: string;
|
|
13
|
+
state?: string;
|
|
14
|
+
zip?: string;
|
|
15
|
+
phoneNumber?: string;
|
|
16
|
+
mainMediaId?: number;
|
|
17
|
+
creatorId?: number;
|
|
18
|
+
creatorType?: ResourceNameTypeEnum;
|
|
19
|
+
userCreatorId?: number;
|
|
20
|
+
gender?: GenderEnum;
|
|
21
|
+
birthDate?: string;
|
|
22
|
+
emergencyContactName?: string;
|
|
23
|
+
emergencyContactPhone?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare class CreateOrEditResponseDto {
|
|
26
|
+
data: Customer;
|
|
27
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateOrEditResponseDto = exports.CreateOrEditCustomerDto = void 0;
|
|
4
|
+
class CreateOrEditCustomerDto {
|
|
5
|
+
}
|
|
6
|
+
exports.CreateOrEditCustomerDto = CreateOrEditCustomerDto;
|
|
7
|
+
class CreateOrEditResponseDto {
|
|
8
|
+
}
|
|
9
|
+
exports.CreateOrEditResponseDto = CreateOrEditResponseDto;
|
|
10
|
+
//# sourceMappingURL=createOrEditCustomer.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createOrEditCustomer.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/createOrEditCustomer.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,uBAAuB;CAwCnC;AAxCD,0DAwCC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomerOfOrganizationDto = void 0;
|
|
4
|
+
class CustomerOfOrganizationDto {
|
|
5
|
+
}
|
|
6
|
+
exports.CustomerOfOrganizationDto = CustomerOfOrganizationDto;
|
|
7
|
+
//# sourceMappingURL=customerOfOrganization.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customerOfOrganization.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customerOfOrganization.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,yBAAyB;CAIrC;AAJD,8DAIC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./createFamily.dto"), exports);
|
|
18
|
+
__exportStar(require("./createOrEditCustomer.dto"), exports);
|
|
19
|
+
__exportStar(require("./customerOfOrganization.dto"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,6DAA2C;AAC3C,+DAA6C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dto';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/customers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomerTypeEnum
|
|
1
|
+
import { CustomerTypeEnum } from '../services/enums.service';
|
|
2
2
|
import { PaginationQuery } from './general.dto';
|
|
3
3
|
import { ByOrganizationIdDto } from '../organization/dto/organization.dto';
|
|
4
4
|
import { Customer } from "../entity/Customer";
|
|
@@ -42,27 +42,6 @@ export declare class CustomerNoteDto {
|
|
|
42
42
|
description: string;
|
|
43
43
|
pinToTop?: boolean;
|
|
44
44
|
}
|
|
45
|
-
export declare class AddEditCustomerDto {
|
|
46
|
-
firstName?: string;
|
|
47
|
-
lastName?: string;
|
|
48
|
-
entityId?: number;
|
|
49
|
-
entityType?: CustomerTypeEnum;
|
|
50
|
-
email?: string;
|
|
51
|
-
colorCodeId?: number;
|
|
52
|
-
street?: string;
|
|
53
|
-
city?: string;
|
|
54
|
-
state?: string;
|
|
55
|
-
zip?: string;
|
|
56
|
-
phoneNumber?: string;
|
|
57
|
-
mainMediaId?: number;
|
|
58
|
-
creatorId?: number;
|
|
59
|
-
creatorType?: ResourceNameTypeEnum;
|
|
60
|
-
userCreatorId?: number;
|
|
61
|
-
gender?: GenderEnum;
|
|
62
|
-
birthDate?: string;
|
|
63
|
-
emergencyContactName?: string;
|
|
64
|
-
emergencyContactPhone?: string;
|
|
65
|
-
}
|
|
66
45
|
export declare class CustomerResponseDto {
|
|
67
46
|
data: Customer;
|
|
68
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerResponseDto = exports.
|
|
3
|
+
exports.CustomerResponseDto = exports.CustomerNoteDto = exports.AddCustomerNotesDto = exports.FindCustomersByOrganizationIdFiltersDto = exports.ByOrganizationIdUserIdDto = exports.ByOrganizationIdCustomerIdDto = exports.ImportRentalsFromCSV = exports.ImportDashCustomerDto = exports.ImportProgramsFileDto = exports.ImportCustomerFromCSV = exports.ImportProductsFromDB = exports.FindByMembershipIdDto = void 0;
|
|
4
4
|
const general_dto_1 = require("./general.dto");
|
|
5
5
|
const organization_dto_1 = require("../organization/dto/organization.dto");
|
|
6
6
|
class FindByMembershipIdDto extends organization_dto_1.ByOrganizationIdDto {
|
|
@@ -36,9 +36,6 @@ exports.AddCustomerNotesDto = AddCustomerNotesDto;
|
|
|
36
36
|
class CustomerNoteDto {
|
|
37
37
|
}
|
|
38
38
|
exports.CustomerNoteDto = CustomerNoteDto;
|
|
39
|
-
class AddEditCustomerDto {
|
|
40
|
-
}
|
|
41
|
-
exports.AddEditCustomerDto = AddEditCustomerDto;
|
|
42
39
|
class CustomerResponseDto {
|
|
43
40
|
}
|
|
44
41
|
exports.CustomerResponseDto = CustomerResponseDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../src/types/dto/customer.dto.ts"],"names":[],"mappings":";;;AACA,+CAAgD;AAChD,2EAA2E;AAG3E,MAAa,qBAAsB,SAAQ,sCAAmB;CAE7D;AAFD,sDAEC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,qBAAsB,SAAQ,qBAAqB;CAE/D;AAFD,sDAEC;AAED,MAAa,qBAAsB,SAAQ,qBAAqB;CAI/D;AAJD,sDAIC;AAED,MAAa,oBAAqB,SAAQ,qBAAqB;CAE9D;AAFD,oDAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,yBAA0B,SAAQ,sCAAmB;CAEjE;AAFD,8DAEC;AAED,MAAa,uCAAwC,SAAQ,6BAAe;CAQ3E;AARD,0FAQC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,
|
|
1
|
+
{"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../src/types/dto/customer.dto.ts"],"names":[],"mappings":";;;AACA,+CAAgD;AAChD,2EAA2E;AAG3E,MAAa,qBAAsB,SAAQ,sCAAmB;CAE7D;AAFD,sDAEC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,qBAAsB,SAAQ,qBAAqB;CAE/D;AAFD,sDAEC;AAED,MAAa,qBAAsB,SAAQ,qBAAqB;CAI/D;AAJD,sDAIC;AAED,MAAa,oBAAqB,SAAQ,qBAAqB;CAE9D;AAFD,oDAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,yBAA0B,SAAQ,sCAAmB;CAEjE;AAFD,8DAEC;AAED,MAAa,uCAAwC,SAAQ,6BAAe;CAQ3E;AARD,0FAQC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC"}
|
|
@@ -10,10 +10,12 @@ import { Media } from './Media';
|
|
|
10
10
|
import { Reservation } from '../reservations/entities/Reservations';
|
|
11
11
|
import { MembershipStatus } from '../services/interfaces.service';
|
|
12
12
|
import { ColorCode } from './ColorCode';
|
|
13
|
+
import { Address } from './Address';
|
|
13
14
|
export declare class Customer extends OrganizationConnectionBaseEntity {
|
|
14
15
|
name: string | null;
|
|
15
16
|
entityId: number | null;
|
|
16
17
|
addressId: number | null;
|
|
18
|
+
address: Address;
|
|
17
19
|
entityType: CustomerTypeEnum | null;
|
|
18
20
|
customerId: string | null;
|
|
19
21
|
email: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/types/entity/Customer.ts"],"names":[],"mappings":";;;AAGA,yFAAsF;
|
|
1
|
+
{"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/types/entity/Customer.ts"],"names":[],"mappings":";;;AAGA,yFAAsF;AAatF,MAAa,QAAS,SAAQ,mEAAgC;CA6D7D;AA7DD,4BA6DC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class AddImportedCustomerDto extends
|
|
1
|
+
import { CreateOrEditCustomerDto } from '../../customers/dto/createOrEditCustomer.dto';
|
|
2
|
+
export declare class AddImportedCustomerDto extends CreateOrEditCustomerDto {
|
|
3
3
|
importedID: string;
|
|
4
4
|
name?: string;
|
|
5
5
|
genderStr?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AddFamilyDto = exports.AddImportedCustomerDto = void 0;
|
|
4
|
-
const
|
|
5
|
-
class AddImportedCustomerDto extends
|
|
4
|
+
const createOrEditCustomer_dto_1 = require("../../customers/dto/createOrEditCustomer.dto");
|
|
5
|
+
class AddImportedCustomerDto extends createOrEditCustomer_dto_1.CreateOrEditCustomerDto {
|
|
6
6
|
}
|
|
7
7
|
exports.AddImportedCustomerDto = AddImportedCustomerDto;
|
|
8
8
|
class AddFamilyDto {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/customer.dto.ts"],"names":[],"mappings":";;;AAAA,
|
|
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"}
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./customers"), exports);
|
|
17
18
|
__exportStar(require("./dto"), exports);
|
|
18
19
|
__exportStar(require("./entity"), exports);
|
|
19
20
|
__exportStar(require("./fee"), exports);
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2CAAyB;AACzB,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,mDAAiC;AACjC,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,6CAA2B;AAC3B,iDAA+B;AAC/B,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,4CAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,mDAAiC;AACjC,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,6CAA2B;AAC3B,iDAA+B;AAC/B,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,4CAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.dto.js","sourceRoot":"","sources":["../../../../src/types/organization/dto/organization.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;
|
|
1
|
+
{"version":3,"file":"organization.dto.js","sourceRoot":"","sources":["../../../../src/types/organization/dto/organization.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAGxD,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AACD,MAAa,yBAAyB;CAErC;AAFD,8DAEC;AAED,MAAa,kCAAkC;CAc9C;AAdD,gFAcC;AAED,MAAa,+BAAgC,SAAQ,6BAAe;CAcnE;AAdD,0EAcC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bondsports/types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "backend types module for Bond-Sports",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"ts-node": "^10.8.0",
|
|
48
48
|
"typescript": "^4.4.3"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "fe60794f9b4c34910918bec3f72ec04571263e1c"
|
|
51
51
|
}
|