@bondsports/types 2.1.51 → 2.1.53

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 +1,2 @@
1
1
  export * from './media.enums';
2
+ export * from './meida.interfaces';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./media.enums"), exports);
18
+ __exportStar(require("./meida.interfaces"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/media/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/media/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,qDAAmC"}
@@ -0,0 +1,5 @@
1
+ import { Media } from '../entities/Media';
2
+ export interface IRawMediaWithConnection extends Media {
3
+ parentId: number;
4
+ parent: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=meida.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meida.interfaces.js","sourceRoot":"","sources":["../../../../src/types/media/types/meida.interfaces.ts"],"names":[],"mappings":""}
@@ -37,6 +37,7 @@ export declare class InstructorResourceDto {
37
37
  address?: AddressDto;
38
38
  programTypes?: ProgramTypesEnum[];
39
39
  isBookableOnline?: boolean;
40
+ medias?: MediaDto[];
40
41
  }
41
42
  export declare class CreateInstructorDto extends ResourceDependenciesDto {
42
43
  description?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"instructor.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/instructor.dto.ts"],"names":[],"mappings":";;;AAeA,iDAAiG;AAEjG,MAAa,qBAAqB;CA4DjC;AA5DD,sDA4DC;AAED,MAAa,mBAAoB,SAAQ,sCAAuB;CAsB/D;AAtBD,kDAsBC;AAED,MAAa,mBAAoB,SAAQ,gCAAiB;CAIzD;AAJD,kDAIC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,gBAAgB;CAY5B;AAZD,4CAYC"}
1
+ {"version":3,"file":"instructor.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/instructor.dto.ts"],"names":[],"mappings":";;;AAeA,iDAAiG;AAEjG,MAAa,qBAAqB;CA8DjC;AA9DD,sDA8DC;AAED,MAAa,mBAAoB,SAAQ,sCAAuB;CAsB/D;AAtBD,kDAsBC;AAED,MAAa,mBAAoB,SAAQ,gCAAiB;CAIzD;AAJD,kDAIC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,gBAAgB;CAY5B;AAZD,4CAYC"}
@@ -46,6 +46,7 @@ export declare class SpaceResourceDto extends IdAndNameDto {
46
46
  facility?: FacilityDto;
47
47
  purchasedResources?: PurchasedResourceDto[];
48
48
  linkSEO: string;
49
+ medias?: MediaDto[];
49
50
  }
50
51
  export declare class ResourceDependenciesDto {
51
52
  resourceGroupId?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA+E;AAqB/E,8EAA8E;AAG9E,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,gBAAiB,SAAQ,0BAAY;CA4DjD;AA5DD,4CA4DC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAU3C;AAVD,0EAUC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAItE;AAJD,8DAIC;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":";;;AAAA,uDAA+E;AAqB/E,8EAA8E;AAG9E,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,gBAAiB,SAAQ,0BAAY;CA8DjD;AA9DD,4CA8DC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAU3C;AAVD,0EAUC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAItE;AAJD,8DAIC;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"}
@@ -44,4 +44,5 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
44
44
  space?: Space;
45
45
  user: User;
46
46
  schedule?: ResourceScheduleDto[];
47
+ medias?: Media[];
47
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Resource.ts"],"names":[],"mappings":";;;AAuBA,oGAAiG;AAWjG,MAAa,QAAS,SAAQ,mEAAgC;CAyE7D;AAzED,4BAyEC"}
1
+ {"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Resource.ts"],"names":[],"mappings":";;;AAuBA,oGAAiG;AAWjG,MAAa,QAAS,SAAQ,mEAAgC;CA2E7D;AA3ED,4BA2EC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.1.51",
3
+ "version": "2.1.53",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {