@bondsports/types 2.2.62 → 2.2.64

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  import { Customer } from '../../entity/Customer';
2
2
  import { CustomerTypeEnum, GenderEnum, ResourceNameTypeEnum } from '../../services/enums.service';
3
+ import { MediaDto } from '../../media/dto/media.dto';
3
4
  declare class BaseCustomerDto {
4
5
  firstName?: string;
5
6
  lastName?: string;
@@ -26,8 +27,10 @@ export declare class CreateCustomerDto extends BaseCustomerDto {
26
27
  firstName: string;
27
28
  lastName: string;
28
29
  birthDate: string;
30
+ mainMedia?: MediaDto;
29
31
  }
30
32
  export declare class EditCustomerDto extends BaseCustomerDto {
33
+ mainMedia?: MediaDto;
31
34
  }
32
35
  export declare class CreateOrEditResponseDto {
33
36
  data: Customer;
@@ -1 +1 @@
1
- {"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customer.dto.ts"],"names":[],"mappings":";;;AAGA,MAAM,eAAe;CAwCpB;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAMrD;AAND,8CAMC;AAED,MAAa,eAAgB,SAAQ,eAAe;CAAG;AAAvD,0CAAuD;AAEvD,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
1
+ {"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customer.dto.ts"],"names":[],"mappings":";;;AAIA,MAAM,eAAe;CAwCpB;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAQrD;AARD,8CAQC;AAED,MAAa,eAAgB,SAAQ,eAAe;CAEnD;AAFD,0CAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
@@ -2,6 +2,6 @@ import { PaginationQuery } from '../../dto/general.dto';
2
2
  import { CustomerTypeEnum } from '../../services/enums.service';
3
3
  export declare class GetCustomersListDto extends PaginationQuery {
4
4
  nameSearch?: string;
5
- customerType?: CustomerTypeEnum;
5
+ customerTypes?: CustomerTypeEnum[];
6
6
  customerIds?: number[];
7
7
  }
@@ -23,6 +23,7 @@ export declare class Customer extends OrganizationConnectionBaseEntity {
23
23
  colorCodeId?: number;
24
24
  colorCode?: ColorCode;
25
25
  phoneNumber?: string;
26
+ profilePicture: Media;
26
27
  mainMediaId?: number;
27
28
  creatorId?: number;
28
29
  creatorType?: ResourceNameTypeEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/types/entity/Customer.ts"],"names":[],"mappings":";;;AAYA,yFAAsF;AAGtF,MAAa,QAAS,SAAQ,mEAAgC;CAyE7D;AAzED,4BAyEC"}
1
+ {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/types/entity/Customer.ts"],"names":[],"mappings":";;;AAYA,yFAAsF;AAGtF,MAAa,QAAS,SAAQ,mEAAgC;CA4E7D;AA5ED,4BA4EC"}
@@ -3,6 +3,7 @@ import { BondBaseEntity } from '../../entity/BondBaseEntity';
3
3
  import { User } from '../../user/entities/User';
4
4
  import { Membership } from '../../entity/Membership';
5
5
  import { MediaTypesEnum } from '../types/media.enums';
6
+ import { Customer } from '../../entity/Customer';
6
7
  export declare class Media extends BondBaseEntity {
7
8
  url: string;
8
9
  name: string | null;
@@ -18,6 +19,7 @@ export declare class Media extends BondBaseEntity {
18
19
  userCreatorId: number | null;
19
20
  ownerId: number | null;
20
21
  createdBy: number | null;
22
+ customers: Customer[];
21
23
  users: User[];
22
24
  programs: Program[];
23
25
  memberships: Membership[];
@@ -1 +1 @@
1
- {"version":3,"file":"Media.js","sourceRoot":"","sources":["../../../../src/types/media/entities/Media.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAM7D,MAAa,KAAM,SAAQ,+BAAc;CAkCxC;AAlCD,sBAkCC"}
1
+ {"version":3,"file":"Media.js","sourceRoot":"","sources":["../../../../src/types/media/entities/Media.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAO7D,MAAa,KAAM,SAAQ,+BAAc;CAqCxC;AArCD,sBAqCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.62",
3
+ "version": "2.2.64",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {