@bondsports/types 2.1.52 → 2.1.54

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
- import { CreateOrEditCustomerDto } from './createOrEditCustomer.dto';
1
+ import { CreateCustomerDto } from './createOrEditCustomer.dto';
2
2
  export declare class AddMembersDto {
3
3
  customerIds?: number[];
4
- customers?: CreateOrEditCustomerDto[];
4
+ customers?: CreateCustomerDto[];
5
5
  }
6
6
  export declare class NewFamilyMembersDto {
7
7
  familyCustomerId: number;
@@ -1,8 +1,8 @@
1
1
  import { Customer } from '../../entity/Customer';
2
2
  import { CustomerTypeEnum, GenderEnum, ResourceNameTypeEnum } from '../../services/enums.service';
3
- export declare class CreateOrEditCustomerDto {
4
- firstName: string;
5
- lastName: string;
3
+ declare class BaseCustomerDto {
4
+ firstName?: string;
5
+ lastName?: string;
6
6
  name?: string;
7
7
  entityId?: number;
8
8
  entityType?: CustomerTypeEnum;
@@ -18,10 +18,18 @@ export declare class CreateOrEditCustomerDto {
18
18
  creatorType?: ResourceNameTypeEnum;
19
19
  userCreatorId?: number;
20
20
  gender?: GenderEnum;
21
- birthDate: string;
21
+ birthDate?: string;
22
22
  emergencyContactName?: string;
23
23
  emergencyContactPhone?: string;
24
24
  }
25
+ export declare class CreateCustomerDto extends BaseCustomerDto {
26
+ firstName: string;
27
+ lastName: string;
28
+ birthDate: string;
29
+ }
30
+ export declare class EditCustomerDto extends BaseCustomerDto {
31
+ }
25
32
  export declare class CreateOrEditResponseDto {
26
33
  data: Customer;
27
34
  }
35
+ export {};
@@ -1,9 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateOrEditResponseDto = exports.CreateOrEditCustomerDto = void 0;
4
- class CreateOrEditCustomerDto {
3
+ exports.CreateOrEditResponseDto = exports.EditCustomerDto = exports.CreateCustomerDto = void 0;
4
+ class BaseCustomerDto {
5
5
  }
6
- exports.CreateOrEditCustomerDto = CreateOrEditCustomerDto;
6
+ class CreateCustomerDto extends BaseCustomerDto {
7
+ }
8
+ exports.CreateCustomerDto = CreateCustomerDto;
9
+ class EditCustomerDto extends BaseCustomerDto {
10
+ }
11
+ exports.EditCustomerDto = EditCustomerDto;
7
12
  class CreateOrEditResponseDto {
8
13
  }
9
14
  exports.CreateOrEditResponseDto = CreateOrEditResponseDto;
@@ -1 +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"}
1
+ {"version":3,"file":"createOrEditCustomer.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/createOrEditCustomer.dto.ts"],"names":[],"mappings":";;;AAGA,MAAM,eAAe;CAwCpB;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAMrD;AAND,8CAMC;AAED,MAAa,eAAgB,SAAQ,eAAe;CAAG;AAAvD,0CAAuD;AAGvD,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
@@ -1,7 +1,7 @@
1
- import { CreateOrEditCustomerDto } from '../../customers/dto/createOrEditCustomer.dto';
1
+ import { CreateCustomerDto } from '../../customers/dto/createOrEditCustomer.dto';
2
2
  import { Customer } from '../../entity/Customer';
3
3
  import { User } from '../../user/entities/User';
4
- export declare class AddImportedCustomerDto extends CreateOrEditCustomerDto {
4
+ export declare class AddImportedCustomerDto extends CreateCustomerDto {
5
5
  importedId: string;
6
6
  genderStr: string;
7
7
  importedParentId?: string;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CustomerImportOptionsDto = 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
- class AddImportedCustomerDto extends createOrEditCustomer_dto_1.CreateOrEditCustomerDto {
5
+ class AddImportedCustomerDto extends createOrEditCustomer_dto_1.CreateCustomerDto {
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,2FAAuF;AAIvF,MAAa,sBAAuB,SAAQ,kDAAuB;CAclE;AAdD,wDAcC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC;AAED,MAAa,2BAA2B;CAMvC;AAND,kEAMC;AAED,oCAAoC;AACpC,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC"}
1
+ {"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/customer.dto.ts"],"names":[],"mappings":";;;AAAA,2FAAiF;AAIjF,MAAa,sBAAuB,SAAQ,4CAAiB;CAc5D;AAdD,wDAcC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC;AAED,MAAa,2BAA2B;CAMvC;AAND,kEAMC;AAED,oCAAoC;AACpC,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC"}
@@ -1,7 +1,8 @@
1
1
  import { BasicActivityTimesDto } from '../../dto/activityTimes.dto';
2
2
  import { PaginationQuery } from '../../dto/general.dto';
3
- import { ActivityEnum, ResourceAgesEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SurfacesEnum } from '../../services/enums.service';
3
+ import { ActivityEnum, OrderByEnum, ResourceAgesEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SurfacesEnum } from '../../services/enums.service';
4
4
  import { ResourceDependenciesDto, UpdateResourceDto } from './resource.dto';
5
+ import { OrderByResourceEnum } from '../types/enums/resources.enums';
5
6
  export declare class SpaceByIdDto {
6
7
  spaceId: number;
7
8
  }
@@ -49,6 +50,8 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
49
50
  facilitiesIds?: number[];
50
51
  types?: ResourceTypeEnum[];
51
52
  resourcesIds?: number[];
53
+ orderBy?: OrderByResourceEnum;
54
+ order?: OrderByEnum;
52
55
  }
53
56
  export declare class UpdateSpaceDto extends UpdateResourceDto {
54
57
  name?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAS/D,iDAAsG;AAEtG,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,cAAe,SAAQ,sCAAuB;CA8B1D;AA9BD,wCA8BC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AACD,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,gCAAgC;CAI5C;AAJD,4EAIC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;CAQ3D;AARD,0DAQC;AAED,MAAa,cAAe,SAAQ,gCAAiB;CAkBpD;AAlBD,wCAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC"}
1
+ {"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAU/D,iDAAsG;AAGtG,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,cAAe,SAAQ,sCAAuB;CA8B1D;AA9BD,wCA8BC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AACD,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,gCAAgC;CAI5C;AAJD,4EAIC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;CAY3D;AAZD,0DAYC;AAED,MAAa,cAAe,SAAQ,gCAAiB;CAkBpD;AAlBD,wCAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC"}
@@ -3,5 +3,8 @@ export declare enum OrderByResourceEnum {
3
3
  NAME = "name",
4
4
  CREATED_AT = "createdAt",
5
5
  RESOURCE_TYPE = "resourceType",
6
+ FIRST_NAME = "firstName",
7
+ LAST_NAME = "lastName",
8
+ EMAIL = "email",
6
9
  STATUS = "status"
7
10
  }
@@ -7,6 +7,9 @@ var OrderByResourceEnum;
7
7
  OrderByResourceEnum["NAME"] = "name";
8
8
  OrderByResourceEnum["CREATED_AT"] = "createdAt";
9
9
  OrderByResourceEnum["RESOURCE_TYPE"] = "resourceType";
10
+ OrderByResourceEnum["FIRST_NAME"] = "firstName";
11
+ OrderByResourceEnum["LAST_NAME"] = "lastName";
12
+ OrderByResourceEnum["EMAIL"] = "email";
10
13
  OrderByResourceEnum["STATUS"] = "status";
11
14
  })(OrderByResourceEnum = exports.OrderByResourceEnum || (exports.OrderByResourceEnum = {}));
12
15
  //# sourceMappingURL=resources.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resources.enums.js","sourceRoot":"","sources":["../../../../../src/types/resources/types/enums/resources.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC9B,gCAAS,CAAA;IACT,oCAAa,CAAA;IACb,+CAAwB,CAAA;IACxB,qDAA8B,CAAA;IAC9B,wCAAiB,CAAA;AAClB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B"}
1
+ {"version":3,"file":"resources.enums.js","sourceRoot":"","sources":["../../../../../src/types/resources/types/enums/resources.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC9B,gCAAS,CAAA;IACT,oCAAa,CAAA;IACb,+CAAwB,CAAA;IACxB,qDAA8B,CAAA;IAC9B,+CAAwB,CAAA;IACxB,6CAAsB,CAAA;IACtB,sCAAe,CAAA;IACf,wCAAiB,CAAA;AAClB,CAAC,EATW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAS9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.1.52",
3
+ "version": "2.1.54",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {