@bondsports/types 2.2.18 → 2.2.20
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/customers/dto/customerOfOrganization.dto.d.ts +12 -0
- package/dist/types/customers/dto/customerOfOrganization.dto.js +5 -1
- package/dist/types/customers/dto/customerOfOrganization.dto.js.map +1 -1
- package/dist/types/customers/dto/customerResponseDto.d.ts +45 -0
- package/dist/types/customers/dto/customerResponseDto.js +10 -1
- package/dist/types/customers/dto/customerResponseDto.js.map +1 -1
- package/dist/types/customers/dto/getCustomersListDto.js.map +1 -1
- package/dist/types/customers/types/enums.d.ts +9 -0
- package/dist/types/customers/types/enums.js +11 -1
- package/dist/types/customers/types/enums.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +0 -2
- package/package.json +1 -1
@@ -1,4 +1,16 @@
|
|
1
|
+
import { PaginationQuery } from '../../dto/general.dto';
|
2
|
+
import { CustomerTypeEnum, OrderByEnum } from '../../services/enums.service';
|
3
|
+
import { OrderByCusotmerEnum } from '../types/enums';
|
1
4
|
export declare class CustomerOfOrganizationDto {
|
2
5
|
customerId: number;
|
3
6
|
organizationId: number;
|
4
7
|
}
|
8
|
+
export declare class GetCustomersDto extends PaginationQuery {
|
9
|
+
search?: string;
|
10
|
+
customersIds?: number[];
|
11
|
+
customerTypes?: CustomerTypeEnum[];
|
12
|
+
isAnonymous?: boolean;
|
13
|
+
includeFamily?: boolean;
|
14
|
+
sortBy?: OrderByCusotmerEnum;
|
15
|
+
order?: OrderByEnum;
|
16
|
+
}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CustomerOfOrganizationDto = void 0;
|
3
|
+
exports.GetCustomersDto = exports.CustomerOfOrganizationDto = void 0;
|
4
|
+
const general_dto_1 = require("../../dto/general.dto");
|
4
5
|
class CustomerOfOrganizationDto {
|
5
6
|
}
|
6
7
|
exports.CustomerOfOrganizationDto = CustomerOfOrganizationDto;
|
8
|
+
class GetCustomersDto extends general_dto_1.PaginationQuery {
|
9
|
+
}
|
10
|
+
exports.GetCustomersDto = GetCustomersDto;
|
7
11
|
//# sourceMappingURL=customerOfOrganization.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"customerOfOrganization.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customerOfOrganization.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"customerOfOrganization.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customerOfOrganization.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAIxD,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,eAAgB,SAAQ,6BAAe;CAenD;AAfD,0CAeC"}
|
@@ -1,4 +1,49 @@
|
|
1
1
|
import { Customer } from '../../entity/Customer';
|
2
|
+
import { CustomerTypeEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
3
|
+
import { AddressDto } from '../../dto/facilities.dto';
|
4
|
+
import { CustomerNoteDto } from '../../dto/customer.dto';
|
5
|
+
import { MediaDto } from '../../media/dto/media.dto';
|
6
|
+
import { ReservationDto } from '../../reservations/dto/reservation.dto';
|
7
|
+
import { CustomerCreditTransaction } from '../../entity/CustomerCreditTransaction';
|
8
|
+
import { ProductsReservedForCustomers } from '../../entity/ProductsReservedForCustomers';
|
9
|
+
import { User } from '../../user/entities/User';
|
2
10
|
export declare class CustomerResponseDto {
|
3
11
|
data: Customer;
|
4
12
|
}
|
13
|
+
export declare class EmergencyContactDto {
|
14
|
+
customerId: number;
|
15
|
+
name?: string;
|
16
|
+
phoneNumber?: string;
|
17
|
+
}
|
18
|
+
export declare class SimpleCustomerDto {
|
19
|
+
id: number;
|
20
|
+
firstName: string;
|
21
|
+
lastName: string;
|
22
|
+
email: string;
|
23
|
+
phone: string;
|
24
|
+
entityType: CustomerTypeEnum;
|
25
|
+
colorCodeId: number;
|
26
|
+
isAnonymous: boolean;
|
27
|
+
entityId: number;
|
28
|
+
}
|
29
|
+
export declare class CustomerFullDto extends SimpleCustomerDto {
|
30
|
+
address?: AddressDto;
|
31
|
+
customerId?: string;
|
32
|
+
mainMediaId?: number;
|
33
|
+
creatorId?: number;
|
34
|
+
creatorType?: ResourceNameTypeEnum;
|
35
|
+
userCreatorId?: number;
|
36
|
+
ownerId?: number;
|
37
|
+
vetted?: boolean;
|
38
|
+
waiverSignedDate?: string;
|
39
|
+
balance?: number;
|
40
|
+
emergencyContacts: EmergencyContactDto[];
|
41
|
+
importedId?: string;
|
42
|
+
customerNotes: CustomerNoteDto[];
|
43
|
+
customerCreditTransactions: CustomerCreditTransaction[];
|
44
|
+
productsReservedFor: ProductsReservedForCustomers[];
|
45
|
+
mainMedia: MediaDto;
|
46
|
+
reservations?: ReservationDto[];
|
47
|
+
user: User;
|
48
|
+
organizationName?: string;
|
49
|
+
}
|
@@ -1,7 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CustomerResponseDto = void 0;
|
3
|
+
exports.CustomerFullDto = exports.SimpleCustomerDto = exports.EmergencyContactDto = exports.CustomerResponseDto = void 0;
|
4
4
|
class CustomerResponseDto {
|
5
5
|
}
|
6
6
|
exports.CustomerResponseDto = CustomerResponseDto;
|
7
|
+
class EmergencyContactDto {
|
8
|
+
}
|
9
|
+
exports.EmergencyContactDto = EmergencyContactDto;
|
10
|
+
class SimpleCustomerDto {
|
11
|
+
}
|
12
|
+
exports.SimpleCustomerDto = SimpleCustomerDto;
|
13
|
+
class CustomerFullDto extends SimpleCustomerDto {
|
14
|
+
}
|
15
|
+
exports.CustomerFullDto = CustomerFullDto;
|
7
16
|
//# sourceMappingURL=customerResponseDto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"customerResponseDto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customerResponseDto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"customerResponseDto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customerResponseDto.ts"],"names":[],"mappings":";;;AAUA,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAGD,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAGD,MAAa,iBAAiB;CAkB3B;AAlBH,8CAkBG;AAGD,MAAa,eAAgB,SAAQ,iBAAiB;CAuCvD;AAvCC,0CAuCD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getCustomersListDto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/getCustomersListDto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;
|
1
|
+
{"version":3,"file":"getCustomersListDto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/getCustomersListDto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAMxD,MAAa,mBAAoB,SAAQ,6BAAe;CAMrD;AANH,kDAMG;AAEH,MAAa,2BAA2B;CAIvC;AAJD,kEAIC"}
|
@@ -3,3 +3,12 @@ export declare enum CustomerFamilyStatusEnum {
|
|
3
3
|
INDEPENDENT = "independent",
|
4
4
|
PRIMARY = "primary"
|
5
5
|
}
|
6
|
+
export declare enum OrderByCusotmerEnum {
|
7
|
+
ID = "id",
|
8
|
+
CUSTOMER_TYPES = "customerTypes",
|
9
|
+
FIRST_NAME = "firstName",
|
10
|
+
LAST_NAME = "lastName",
|
11
|
+
EMAIL = "email",
|
12
|
+
STATUS = "status",
|
13
|
+
COLOR_CODE_ID = "colorCodeId"
|
14
|
+
}
|
@@ -1,10 +1,20 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CustomerFamilyStatusEnum = void 0;
|
3
|
+
exports.OrderByCusotmerEnum = exports.CustomerFamilyStatusEnum = void 0;
|
4
4
|
var CustomerFamilyStatusEnum;
|
5
5
|
(function (CustomerFamilyStatusEnum) {
|
6
6
|
CustomerFamilyStatusEnum["DEPENDENT"] = "dependent";
|
7
7
|
CustomerFamilyStatusEnum["INDEPENDENT"] = "independent";
|
8
8
|
CustomerFamilyStatusEnum["PRIMARY"] = "primary";
|
9
9
|
})(CustomerFamilyStatusEnum = exports.CustomerFamilyStatusEnum || (exports.CustomerFamilyStatusEnum = {}));
|
10
|
+
var OrderByCusotmerEnum;
|
11
|
+
(function (OrderByCusotmerEnum) {
|
12
|
+
OrderByCusotmerEnum["ID"] = "id";
|
13
|
+
OrderByCusotmerEnum["CUSTOMER_TYPES"] = "customerTypes";
|
14
|
+
OrderByCusotmerEnum["FIRST_NAME"] = "firstName";
|
15
|
+
OrderByCusotmerEnum["LAST_NAME"] = "lastName";
|
16
|
+
OrderByCusotmerEnum["EMAIL"] = "email";
|
17
|
+
OrderByCusotmerEnum["STATUS"] = "status";
|
18
|
+
OrderByCusotmerEnum["COLOR_CODE_ID"] = "colorCodeId";
|
19
|
+
})(OrderByCusotmerEnum = exports.OrderByCusotmerEnum || (exports.OrderByCusotmerEnum = {}));
|
10
20
|
//# sourceMappingURL=enums.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/customers/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IACnC,mDAAuB,CAAA;IACvB,uDAA2B,CAAA;IAC3B,+CAAmB,CAAA;AACpB,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC"}
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/customers/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IACnC,mDAAuB,CAAA;IACvB,uDAA2B,CAAA;IAC3B,+CAAmB,CAAA;AACpB,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC;AAGD,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC9B,gCAAS,CAAA;IACT,uDAAgC,CAAA;IAChC,+CAAwB,CAAA;IACxB,6CAAsB,CAAA;IACtB,sCAAe,CAAA;IACf,wCAAiB,CAAA;IACjB,oDAA6B,CAAA;AAC9B,CAAC,EARW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAQ9B"}
|
@@ -12,7 +12,6 @@ import { CurrencyEnum, LineItemsStatusEnum, ProductSubTypesEnum, ProductTypesEnu
|
|
12
12
|
import { PurchasePaymentDto } from '../../dto/purchase.dto';
|
13
13
|
import { User } from '../../../user/entities/User';
|
14
14
|
import { Organization } from '../../../organization/entities/Organization';
|
15
|
-
import { UserPaymentMethod } from '../../../entity/user-payment-method';
|
16
15
|
export type UserCount = {
|
17
16
|
male: number;
|
18
17
|
female: number;
|
@@ -41,7 +40,6 @@ export interface ILineItem {
|
|
41
40
|
export interface ChargeInstallmentDataMap {
|
42
41
|
usersMap: Map<number, User>;
|
43
42
|
organizationsMap: Map<number, Organization>;
|
44
|
-
userPaymentMethodMap: Map<number, UserPaymentMethod>;
|
45
43
|
}
|
46
44
|
export interface IChargeInvoice extends ISaveInvoicePayment {
|
47
45
|
amountToPay?: number;
|