@bondsports/types 2.2.19 → 2.2.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -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":";;;AACA,MAAa,yBAAyB;CAIrC;AAJD,8DAIC"}
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":";;;AAEA,MAAa,mBAAmB;CAE/B;AAFD,kDAEC"}
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;AAKxD,MAAa,mBAAoB,SAAQ,6BAAe;CAMvD;AAND,kDAMC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC"}
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"}
@@ -96,4 +96,5 @@ export declare class UpdateResourceDto {
96
96
  status?: ActivityEnum;
97
97
  sports?: SportsEnum[];
98
98
  isBookableOnline?: boolean;
99
+ relatedProductsIds?: number[];
99
100
  }
@@ -1 +1 @@
1
- {"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAsF;AAEtF,8EAA8E;AAiB9E,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,eAAgB,SAAQ,mBAAK;CA8CzC;AA9CD,0CA8CC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAQtE;AARD,8DAQC;AAED,MAAa,kCAAmC,SAAQ,sCAAmB;CAE1E;AAFD,gFAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAEnE;AAFD,kEAEC;AAED,MAAa,uCAAwC,SAAQ,kCAAkC;CAE9F;AAFD,0FAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,iBAAiB;CAsB7B;AAtBD,8CAsBC"}
1
+ {"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAsF;AAEtF,8EAA8E;AAiB9E,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,eAAgB,SAAQ,mBAAK;CA8CzC;AA9CD,0CA8CC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAQtE;AARD,8DAQC;AAED,MAAa,kCAAmC,SAAQ,sCAAmB;CAE1E;AAFD,gFAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAEnE;AAFD,kEAEC;AAED,MAAa,uCAAwC,SAAQ,kCAAkC;CAE9F;AAFD,0FAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,iBAAiB;CAwB7B;AAxBD,8CAwBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.19",
3
+ "version": "2.2.21",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {