@bondsports/types 2.1.46 → 2.1.48

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ import { Slot } from '../../reservations/entities/Slots';
4
4
  import { Addon } from '../../reservations/entities/Addon';
5
5
  import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
6
6
  import { ActivityTimesDto } from '../../programs-seasons/dto/program-seasons.dto';
7
- import { FacilityDto } from '../../dto/facilities.dto';
7
+ import { AddressDto, FacilityDto } from '../../dto/facilities.dto';
8
8
  import { BasicActivityTimesDto } from '../../dto/activityTimes.dto';
9
9
  import { ResourceDependenciesDto } from './resource.dto';
10
10
  export declare class InstructorResourceDto {
@@ -13,7 +13,6 @@ export declare class InstructorResourceDto {
13
13
  createdAt: Date;
14
14
  updatedAt: Date;
15
15
  deletedAt?: Date;
16
- name: string;
17
16
  resourceType: ResourceTypeEnum;
18
17
  description?: string;
19
18
  longDescription?: string;
@@ -34,10 +33,13 @@ export declare class InstructorResourceDto {
34
33
  linkSEO: string;
35
34
  email?: string;
36
35
  phoneNumber?: string;
36
+ firstName: string;
37
+ lastName: string;
38
+ address?: AddressDto;
37
39
  programTypes?: ProgramTypesEnum[];
40
+ isBookableOnline?: boolean;
38
41
  }
39
42
  export declare class CreateInstructorDto extends ResourceDependenciesDto {
40
- name: string;
41
43
  description?: string;
42
44
  longDescription?: string;
43
45
  activityTimes: BasicActivityTimesDto[];
@@ -48,7 +50,6 @@ export declare class CreateInstructorDto extends ResourceDependenciesDto {
48
50
  isAddon?: boolean;
49
51
  userId: number;
50
52
  status?: ActivityEnum;
51
- phoneNumber?: string;
52
- email?: string;
53
- sports: SportsEnum[];
53
+ sports?: SportsEnum[];
54
+ isBookableOnline?: boolean;
54
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"instructor.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/instructor.dto.ts"],"names":[],"mappings":";;;AAeA,iDAAyD;AAEzD,MAAa,qBAAqB;CAsDjC;AAtDD,sDAsDC;AAED,MAAa,mBAAoB,SAAQ,sCAAuB;CA4B/D;AA5BD,kDA4BC"}
1
+ {"version":3,"file":"instructor.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/instructor.dto.ts"],"names":[],"mappings":";;;AAeA,iDAAyD;AAEzD,MAAa,qBAAqB;CA4DjC;AA5DD,sDA4DC;AAED,MAAa,mBAAoB,SAAQ,sCAAuB;CAwB/D;AAxBD,kDAwBC"}
@@ -5,7 +5,5 @@ export declare class Instructor extends BondBaseEntity {
5
5
  deletedAt?: Date;
6
6
  resourceId: number;
7
7
  programTypes?: ProgramTypesEnum[];
8
- email?: string;
9
- phoneNumber?: string;
10
8
  resource: Resource;
11
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Instructor.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Instructor.ts"],"names":[],"mappings":";;;AAGA,gEAA6D;AAE7D,MAAa,UAAW,SAAQ,+BAAc;CAY7C;AAZD,gCAYC"}
1
+ {"version":3,"file":"Instructor.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Instructor.ts"],"names":[],"mappings":";;;AAGA,gEAA6D;AAE7D,MAAa,UAAW,SAAQ,+BAAc;CAQ7C;AARD,gCAQC"}
@@ -8,6 +8,7 @@ import { Slot } from '../../reservations/entities/Slots';
8
8
  import { Addon } from '../../reservations/entities/Addon';
9
9
  import { Instructor } from './Instructor';
10
10
  import { Space } from './Space';
11
+ import { User } from '../../user/entities/User';
11
12
  export declare class Resource extends OrganizationConnectionBaseEntity {
12
13
  name: string;
13
14
  resourceType: ResourceTypeEnum;
@@ -34,9 +35,11 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
34
35
  slots?: Slot[];
35
36
  addons?: Addon[];
36
37
  facilityId: number;
38
+ isBookableOnline?: boolean;
37
39
  facility: Facility;
38
40
  purchasedResources: PurchasedResource[];
39
41
  linkSEO: string;
40
42
  instructor?: Instructor;
41
43
  space?: Space;
44
+ user: User;
42
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Resource.ts"],"names":[],"mappings":";;;AAuBA,oGAAiG;AASjG,MAAa,QAAS,SAAQ,mEAAgC;CAmE7D;AAnED,4BAmEC"}
1
+ {"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Resource.ts"],"names":[],"mappings":";;;AAuBA,oGAAiG;AAUjG,MAAa,QAAS,SAAQ,mEAAgC;CAuE7D;AAvED,4BAuEC"}
@@ -11,6 +11,7 @@ import { PaymentNote } from '../../payment/entities/PaymentNote';
11
11
  import { UserRole } from '../../roles/entities/UserRole';
12
12
  import { GenderEnum, ResourceNameTypeEnum } from '../../services/enums.service';
13
13
  import { Athlete } from './Athlete';
14
+ import { Resource } from '../../resources/entities/Resource';
14
15
  export declare class User extends BondBaseEntity {
15
16
  firstName?: string;
16
17
  lastName?: string;
@@ -51,6 +52,7 @@ export declare class User extends BondBaseEntity {
51
52
  invoiceNotes: InvoiceNote[];
52
53
  paymentNotes: PaymentNote[];
53
54
  customers: Customer[];
55
+ resources?: Resource[];
54
56
  }
55
57
  export declare class IUserInOrganization extends User {
56
58
  organizationId: number;
@@ -1 +1 @@
1
- {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/types/user/entities/User.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAa7D,MAAa,IAAK,SAAQ,+BAAc;CA8EvC;AA9ED,oBA8EC;AAED,MAAa,mBAAoB,SAAQ,IAAI;CAI5C;AAJD,kDAIC"}
1
+ {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/types/user/entities/User.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAc7D,MAAa,IAAK,SAAQ,+BAAc;CAgFvC;AAhFD,oBAgFC;AAED,MAAa,mBAAoB,SAAQ,IAAI;CAI5C;AAJD,kDAIC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.1.46",
3
+ "version": "2.1.48",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {