@bondsports/types 2.2.131 → 2.2.133

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/employees/dto/employee.dto.d.ts +64 -1
  3. package/dist/types/employees/dto/employee.dto.js +21 -1
  4. package/dist/types/employees/dto/employee.dto.js.map +1 -1
  5. package/dist/types/employees/index.d.ts +1 -0
  6. package/dist/types/employees/index.js +1 -0
  7. package/dist/types/employees/index.js.map +1 -1
  8. package/dist/types/employees/types/enums.d.ts +17 -0
  9. package/dist/types/employees/types/enums.js +24 -0
  10. package/dist/types/employees/types/enums.js.map +1 -0
  11. package/dist/types/employees/types/index.d.ts +2 -0
  12. package/dist/types/employees/types/index.js +19 -0
  13. package/dist/types/employees/types/index.js.map +1 -0
  14. package/dist/types/employees/types/interfaces.d.ts +27 -0
  15. package/dist/types/employees/types/interfaces.js +3 -0
  16. package/dist/types/employees/types/interfaces.js.map +1 -0
  17. package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +3 -3
  18. package/dist/types/invoice/types/interfaces/invoice.interfaces.js +4 -0
  19. package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
  20. package/dist/types/organization/entities/OrganizationUsers.d.ts +8 -0
  21. package/dist/types/organization/entities/OrganizationUsers.js.map +1 -1
  22. package/dist/types/organization/interfaces/index.d.ts +1 -0
  23. package/dist/types/organization/interfaces/index.js +1 -0
  24. package/dist/types/organization/interfaces/index.js.map +1 -1
  25. package/dist/types/organization/interfaces/organizationUser.d.ts +7 -0
  26. package/dist/types/organization/interfaces/organizationUser.js +3 -0
  27. package/dist/types/organization/interfaces/organizationUser.js.map +1 -0
  28. package/dist/types/product-pricing/entities/Product.d.ts +2 -0
  29. package/dist/types/product-pricing/entities/Product.js.map +1 -1
  30. package/dist/types/product-pricing/entities/ProductToFacility.d.ts +2 -0
  31. package/dist/types/product-pricing/entities/ProductToFacility.js.map +1 -1
  32. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +6 -0
  33. package/dist/types/reservations/dto/reservation.dto.d.ts +4 -1
  34. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  35. package/dist/types/reservations/entities/reservation.entity.d.ts +2 -2
  36. package/dist/types/reservations/entities/reservation.entity.js.map +1 -1
  37. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +1 -0
  38. package/package.json +1 -1
@@ -1,11 +1,36 @@
1
1
  import { MediaDto } from '../../media/dto/media.dto';
2
- import { CustomerTypeEnum, GenderEnum, ResourceNameTypeEnum } from '../../services/enums.service';
2
+ import { CustomerTypeEnum, GenderEnum, OrderByEnum, ResourceNameTypeEnum } from '../../services/enums.service';
3
+ import { Role } from '../../roles/entities/Role';
4
+ import { EmployeeStatus, OrganizationUserOrderBy, UserOrderBy } from '../types/enums';
5
+ import { PaginationQuery } from '../../dto/general.dto';
6
+ import { Customer } from '../../entity/Customer';
7
+ import { OrganizationUsers } from '../../organization/entities/OrganizationUsers';
8
+ export declare class ByEmployeeIdDto {
9
+ employeeId: number;
10
+ }
3
11
  export declare class EmployeeDto {
4
12
  id: number;
5
13
  firstName: string;
6
14
  lastName: string;
7
15
  email?: string;
8
16
  organizationId?: number;
17
+ referenceId?: string;
18
+ status?: EmployeeStatus;
19
+ lastLogin?: Date;
20
+ employmentStartDate?: Date;
21
+ employmentEndDate?: Date;
22
+ userId: number;
23
+ }
24
+ export declare class EmployeeWithRoles extends EmployeeDto {
25
+ roles?: Role[];
26
+ }
27
+ export declare class EmployeeWithRoleIds extends EmployeeWithRoles {
28
+ rolesIds?: number[];
29
+ }
30
+ export declare class BuildEmployee {
31
+ customer: Customer;
32
+ organizationUser: OrganizationUsers;
33
+ roles: Role[];
9
34
  }
10
35
  export declare class CreateEmployeeDto {
11
36
  firstName: string;
@@ -29,5 +54,43 @@ export declare class CreateEmployeeDto {
29
54
  emergencyContactName?: string;
30
55
  emergencyContactPhone?: string;
31
56
  mainMedia?: MediaDto;
57
+ rolesIds: number[];
58
+ referenceId?: string;
59
+ status?: EmployeeStatus;
60
+ employmentStartDate?: Date;
61
+ employmentEndDate?: Date;
62
+ }
63
+ export declare class UpdateEmployeeDto {
64
+ firstName?: string;
65
+ lastName?: string;
66
+ name?: string;
67
+ entityId?: number;
68
+ entityType?: CustomerTypeEnum;
69
+ email?: string;
70
+ colorCodeId?: number;
71
+ street?: string;
72
+ city?: string;
73
+ state?: string;
74
+ zip?: string;
75
+ phoneNumber?: string;
76
+ mainMediaId?: number;
77
+ creatorId?: number;
78
+ creatorType?: ResourceNameTypeEnum;
79
+ userCreatorId?: number;
80
+ gender?: GenderEnum;
81
+ birthDate?: string;
82
+ emergencyContactName?: string;
83
+ emergencyContactPhone?: string;
84
+ mainMedia?: MediaDto;
32
85
  rolesIds?: number[];
86
+ referenceId?: string;
87
+ status?: EmployeeStatus;
88
+ employmentStartDate?: Date;
89
+ employmentEndDate?: Date;
90
+ }
91
+ export declare class GetEmployeesByFilterOptions extends PaginationQuery {
92
+ status?: EmployeeStatus;
93
+ search?: string;
94
+ orderBy?: UserOrderBy | OrganizationUserOrderBy;
95
+ order?: OrderByEnum;
33
96
  }
@@ -1,10 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateEmployeeDto = exports.EmployeeDto = void 0;
3
+ exports.GetEmployeesByFilterOptions = exports.UpdateEmployeeDto = exports.CreateEmployeeDto = exports.BuildEmployee = exports.EmployeeWithRoleIds = exports.EmployeeWithRoles = exports.EmployeeDto = exports.ByEmployeeIdDto = void 0;
4
+ const general_dto_1 = require("../../dto/general.dto");
5
+ class ByEmployeeIdDto {
6
+ }
7
+ exports.ByEmployeeIdDto = ByEmployeeIdDto;
4
8
  class EmployeeDto {
5
9
  }
6
10
  exports.EmployeeDto = EmployeeDto;
11
+ class EmployeeWithRoles extends EmployeeDto {
12
+ }
13
+ exports.EmployeeWithRoles = EmployeeWithRoles;
14
+ class EmployeeWithRoleIds extends EmployeeWithRoles {
15
+ }
16
+ exports.EmployeeWithRoleIds = EmployeeWithRoleIds;
17
+ class BuildEmployee {
18
+ }
19
+ exports.BuildEmployee = BuildEmployee;
7
20
  class CreateEmployeeDto {
8
21
  }
9
22
  exports.CreateEmployeeDto = CreateEmployeeDto;
23
+ // TODO: Update with the correct fields
24
+ class UpdateEmployeeDto {
25
+ }
26
+ exports.UpdateEmployeeDto = UpdateEmployeeDto;
27
+ class GetEmployeesByFilterOptions extends general_dto_1.PaginationQuery {
28
+ }
29
+ exports.GetEmployeesByFilterOptions = GetEmployeesByFilterOptions;
10
30
  //# sourceMappingURL=employee.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,WAAW;CAUvB;AAVD,kCAUC;AACD,MAAa,iBAAiB;CA4C7B;AA5CD,8CA4CC"}
1
+ {"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAIA,uDAAwD;AAIxD,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAW;CAsBvB;AAtBD,kCAsBC;AAGD,MAAa,iBAAkB,SAAQ,WAAW;CAGjD;AAHD,8CAGC;AAED,MAAa,mBAAoB,SAAQ,iBAAiB;CAGzD;AAHD,kDAGC;AAED,MAAa,aAAa;CAMzB;AAND,sCAMC;AAED,MAAa,iBAAiB;CAoD7B;AApDD,8CAoDC;AAED,uCAAuC;AACvC,MAAa,iBAAiB;CAoD7B;AApDD,8CAoDC;AAED,MAAa,2BAA4B,SAAQ,6BAAe;CAQ/D;AARD,kEAQC"}
@@ -1 +1,2 @@
1
1
  export * from './dto';
2
+ export * from './types';
@@ -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("./dto"), exports);
18
+ __exportStar(require("./types"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/employees/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/employees/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,0CAAwB"}
@@ -0,0 +1,17 @@
1
+ export declare enum EmployeeStatus {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive",
4
+ PENDING = "pending"
5
+ }
6
+ export declare enum UserOrderBy {
7
+ EMAIL = "email",
8
+ FIRST_NAME = "firstName",
9
+ LAST_NAME = "lastName",
10
+ LAST_LOGIN = "lastLogin"
11
+ }
12
+ export declare enum OrganizationUserOrderBy {
13
+ STATUS = "status",
14
+ EMPLOYMENT_START_DATE = "employmentStartDate",
15
+ EMPLOYMENT_END_DATE = "employmentEndDate",
16
+ REFERENCE_ID = "referenceId"
17
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrganizationUserOrderBy = exports.UserOrderBy = exports.EmployeeStatus = void 0;
4
+ var EmployeeStatus;
5
+ (function (EmployeeStatus) {
6
+ EmployeeStatus["ACTIVE"] = "active";
7
+ EmployeeStatus["INACTIVE"] = "inactive";
8
+ EmployeeStatus["PENDING"] = "pending";
9
+ })(EmployeeStatus = exports.EmployeeStatus || (exports.EmployeeStatus = {}));
10
+ var UserOrderBy;
11
+ (function (UserOrderBy) {
12
+ UserOrderBy["EMAIL"] = "email";
13
+ UserOrderBy["FIRST_NAME"] = "firstName";
14
+ UserOrderBy["LAST_NAME"] = "lastName";
15
+ UserOrderBy["LAST_LOGIN"] = "lastLogin";
16
+ })(UserOrderBy = exports.UserOrderBy || (exports.UserOrderBy = {}));
17
+ var OrganizationUserOrderBy;
18
+ (function (OrganizationUserOrderBy) {
19
+ OrganizationUserOrderBy["STATUS"] = "status";
20
+ OrganizationUserOrderBy["EMPLOYMENT_START_DATE"] = "employmentStartDate";
21
+ OrganizationUserOrderBy["EMPLOYMENT_END_DATE"] = "employmentEndDate";
22
+ OrganizationUserOrderBy["REFERENCE_ID"] = "referenceId";
23
+ })(OrganizationUserOrderBy = exports.OrganizationUserOrderBy || (exports.OrganizationUserOrderBy = {}));
24
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/employees/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;AACpB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACtB,8BAAe,CAAA;IACf,uCAAwB,CAAA;IACxB,qCAAsB,CAAA;IACtB,uCAAwB,CAAA;AACzB,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;AAED,IAAY,uBAKX;AALD,WAAY,uBAAuB;IAClC,4CAAiB,CAAA;IACjB,wEAA6C,CAAA;IAC7C,oEAAyC,CAAA;IACzC,uDAA4B,CAAA;AAC7B,CAAC,EALW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAKlC"}
@@ -0,0 +1,2 @@
1
+ export * from './enums';
2
+ export * from './interfaces';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./enums"), exports);
18
+ __exportStar(require("./interfaces"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/employees/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,+CAA6B"}
@@ -0,0 +1,27 @@
1
+ import { MediaDto } from '../../media/dto/media.dto';
2
+ import { CustomerTypeEnum, ResourceNameTypeEnum, GenderEnum } from '../../services/enums.service';
3
+ export interface ICreateEmployeeDto {
4
+ firstName: string;
5
+ lastName: string;
6
+ name?: string;
7
+ entityId?: number;
8
+ entityType?: CustomerTypeEnum;
9
+ email?: string;
10
+ colorCodeId?: number;
11
+ street?: string;
12
+ city?: string;
13
+ state?: string;
14
+ zip?: string;
15
+ phoneNumber?: string;
16
+ mainMediaId?: number;
17
+ creatorId?: number;
18
+ creatorType?: ResourceNameTypeEnum;
19
+ userCreatorId?: number;
20
+ gender?: GenderEnum;
21
+ birthDate: string;
22
+ emergencyContactName?: string;
23
+ emergencyContactPhone?: string;
24
+ mainMedia?: MediaDto;
25
+ employmentStartDate?: Date;
26
+ employmentEndDate?: Date;
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/types/employees/types/interfaces.ts"],"names":[],"mappings":""}
@@ -35,18 +35,18 @@ export interface IGeneratedLineItems {
35
35
  childItemToParent: Map<LineItemDto, LineItemDto>;
36
36
  }
37
37
  export interface IOverridePricingResult {
38
- overrideProductsPricing: IOverrideProductsPricing;
38
+ overrideProductsPricing: OverrideProductsPricingDto;
39
39
  totalPrice?: number;
40
40
  }
41
41
  export interface IOverrideLineItemPrice {
42
42
  invoice: InvoiceDto;
43
43
  lineItem: LineItemDto;
44
44
  ratio: number;
45
- overrideProductsPricing: IOverrideProductsPricing;
45
+ overrideProductsPricing: OverrideProductsPricingDto;
46
46
  isLastLineItem?: boolean;
47
47
  priceLeft?: number;
48
48
  }
49
- export interface IOverrideProductsPricing {
49
+ export declare class OverrideProductsPricingDto {
50
50
  [productInfo: string]: ProductPricesDto;
51
51
  }
52
52
  export interface IInvoiceReservationOptions {
@@ -1,3 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OverrideProductsPricingDto = void 0;
4
+ class OverrideProductsPricingDto {
5
+ }
6
+ exports.OverrideProductsPricingDto = OverrideProductsPricingDto;
3
7
  //# sourceMappingURL=invoice.interfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;AA6DA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
@@ -1,5 +1,13 @@
1
1
  import { BondBaseEntity } from '../../entity/BondBaseEntity';
2
+ import { EmployeeStatus } from '../../employees/types/enums';
3
+ import { User } from '../../user/entities/User';
2
4
  export declare class OrganizationUsers extends BondBaseEntity {
3
5
  organisationId: number | null;
4
6
  userId: number | null;
7
+ user: User;
8
+ status?: EmployeeStatus;
9
+ referenceId?: string;
10
+ employmentStartDate?: Date;
11
+ employmentEndDate?: Date;
12
+ deletedAt?: Date;
5
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"OrganizationUsers.js","sourceRoot":"","sources":["../../../../src/types/organization/entities/OrganizationUsers.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAE7D,MAAa,iBAAkB,SAAQ,+BAAc;CAIpD;AAJD,8CAIC"}
1
+ {"version":3,"file":"OrganizationUsers.js","sourceRoot":"","sources":["../../../../src/types/organization/entities/OrganizationUsers.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAI7D,MAAa,iBAAkB,SAAQ,+BAAc;CAkBpD;AAlBD,8CAkBC"}
@@ -1 +1,2 @@
1
1
  export * from './organization';
2
+ export * from './organizationUser';
@@ -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("./organization"), exports);
18
+ __exportStar(require("./organizationUser"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/organization/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/organization/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,qDAAmC"}
@@ -0,0 +1,7 @@
1
+ import { EmployeeStatus } from '../../employees/types/enums';
2
+ export interface EmployeeAdditionalFields {
3
+ employmentStartDate?: Date;
4
+ employmentEndDate?: Date;
5
+ status?: EmployeeStatus;
6
+ referenceId?: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=organizationUser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizationUser.js","sourceRoot":"","sources":["../../../../src/types/organization/interfaces/organizationUser.ts"],"names":[],"mappings":""}
@@ -21,6 +21,7 @@ import { IChildProduct, IResourcesAvailability } from '../../services/interfaces
21
21
  import { ProductResourceDto } from '../dto/product-resource.dto';
22
22
  import { ProductStateEnum } from '../types/enums/product.enums';
23
23
  import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
24
+ import { ProductToFacility } from './ProductToFacility';
24
25
  export declare class Product extends OrganizationConnectionBaseEntity {
25
26
  name: string;
26
27
  quantity: number;
@@ -77,6 +78,7 @@ export declare class Product extends OrganizationConnectionBaseEntity {
77
78
  productsUsers: ProductsUsers[];
78
79
  purchasedResources: PurchasedResource[];
79
80
  facilities: Facility[];
81
+ productToFacilities: ProductToFacility[];
80
82
  pricingSchedules?: IPricingSchedule[];
81
83
  timezone?: string;
82
84
  spacesIds?: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;AAmBjG,MAAa,OAAQ,SAAQ,mEAAgC;CA8H5D;AA9HD,0BA8HC"}
1
+ {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;AAoBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAgI5D;AAhID,0BAgIC"}
@@ -1,8 +1,10 @@
1
1
  import { BondBaseEntity } from '../../entity/BondBaseEntity';
2
2
  import { Facility } from '../../entity/Facility';
3
+ import { Product } from './Product';
3
4
  export declare class ProductToFacility extends BondBaseEntity {
4
5
  productId: number;
5
6
  facilityId: number;
6
7
  deletedAt?: Date;
7
8
  facility: Facility;
9
+ product: Product;
8
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ProductToFacility.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/ProductToFacility.ts"],"names":[],"mappings":";;;AAAA,gEAA6D;AAI7D,MAAa,iBAAkB,SAAQ,+BAAc;CAQpD;AARD,8CAQC"}
1
+ {"version":3,"file":"ProductToFacility.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/ProductToFacility.ts"],"names":[],"mappings":";;;AAAA,gEAA6D;AAK7D,MAAa,iBAAkB,SAAQ,+BAAc;CAUpD;AAVD,8CAUC"}
@@ -39,3 +39,9 @@ export interface IPricingSchedule {
39
39
  prices: Price[];
40
40
  activityTimes: ActivityTimes[];
41
41
  }
42
+ export interface IGetProductsOptions {
43
+ extraProductRelations?: string[];
44
+ getTaxIncludedPrice?: boolean;
45
+ throwError?: boolean;
46
+ skipRefetch?: boolean;
47
+ }
@@ -16,10 +16,13 @@ import { SlotDto, UpdateSlotsColorsDto } from './slot.dto';
16
16
  import { SimpleResourceDto } from '../../resources/dto/resource.dto';
17
17
  import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
18
18
  import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
19
+ import { OverrideProductsPricingDto } from '../../invoice/types/interfaces/invoice.interfaces';
19
20
  export declare class ProductPricesDto {
20
21
  productId: number;
21
22
  product?: Product;
22
23
  price?: number;
24
+ originalPrice?: number;
25
+ priceId?: number;
23
26
  quantity?: number;
24
27
  totalPrice?: number;
25
28
  }
@@ -36,7 +39,7 @@ declare class BaseReservationDto {
36
39
  publicNotes?: string;
37
40
  privateNotes?: string;
38
41
  forms?: number[];
39
- overrideProductsPrice?: ProductPricesDto[];
42
+ overrideProductsPrice?: OverrideProductsPricingDto;
40
43
  targetGlobalPrice?: number;
41
44
  colorCodeId?: number;
42
45
  customerId?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,+DAAsG;AACtG,8EAA8E;AAI9E,kEAAwF;AAqCxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAM,kBAAkB;CAiCvB;AAED,MAAa,cAAe,SAAQ,kBAAkB;CAcrD;AAdD,wCAcC;AAED,MAAa,yBAA0B,SAAQ,kBAAkB;CAEhE;AAFD,8DAEC;AAED,MAAa,mBAA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AACD,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,0BAA2B,SAAQ,gCAAiB;CAIhE;AAJD,gEAIC;AAED,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AACD,MAAa,yBAA0B,SAAQ,wBAAwB;CAEtE;AAFD,8DAEC;AAED,MAAa,0BAA2B,SAAQ,qCAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,WAAY,SAAQ,8BAAgB;CAEhD;AAFD,kCAEC;AAED,MAAa,cAAe,SAAQ,8BAAgB;CAEnD;AAFD,wCAEC;AAED,MAAa,kCACZ,SAAQ,6BAAe;CAqBvB;AAtBD,gFAsBC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,yBAAyB;CAYrC;AAZD,8DAYC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAIrE;AAJD,8EAIC;AAED,MAAa,6BAA6B;CAYzC;AAZD,sEAYC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC"}
1
+ {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,+DAAsG;AACtG,8EAA8E;AAI9E,kEAAwF;AAsCxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CAgCvB;AAED,MAAa,cAAe,SAAQ,kBAAkB;CAcrD;AAdD,wCAcC;AAED,MAAa,yBAA0B,SAAQ,kBAAkB;CAE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AAQ,cAAc;CAIvD;AAJD,oDAIC;AACD,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,0BAA2B,SAAQ,gCAAiB;CAIhE;AAJD,gEAIC;AAED,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AACD,MAAa,yBAA0B,SAAQ,wBAAwB;CAEtE;AAFD,8DAEC;AAED,MAAa,0BAA2B,SAAQ,qCAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,WAAY,SAAQ,8BAAgB;CAEhD;AAFD,kCAEC;AAED,MAAa,cAAe,SAAQ,8BAAgB;CAEnD;AAFD,wCAEC;AAED,MAAa,kCACZ,SAAQ,6BAAe;CAqBvB;AAtBD,gFAsBC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,yBAAyB;CAYrC;AAZD,8DAYC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAIrE;AAJD,8EAIC;AAED,MAAa,6BAA6B;CAYzC;AAZD,sEAYC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC"}
@@ -27,10 +27,10 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
27
27
  segments?: Segment[];
28
28
  addons: Addon[];
29
29
  slots: Slot[];
30
- overrideProductsPrice: {
30
+ overrideProductsPrice: Record<string, {
31
31
  productId: number;
32
32
  price: number;
33
- }[];
33
+ }>;
34
34
  targetGlobalPrice?: number;
35
35
  invoiceId?: string;
36
36
  startTime?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/reservation.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAcjG,MAAa,WAAY,SAAQ,mEAAgC;CAgEhE;AAhED,kCAgEC"}
1
+ {"version":3,"file":"reservation.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/reservation.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAcjG,MAAa,WAAY,SAAQ,mEAAgC;CA+DhE;AA/DD,kCA+DC"}
@@ -26,6 +26,7 @@ export interface IGetResourceByIdsOptions {
26
26
  ignoreDeleted?: boolean;
27
27
  onlyActive?: boolean;
28
28
  includeAdditionalData?: boolean;
29
+ includeFullResource?: boolean;
29
30
  includeFacilities?: boolean;
30
31
  includeProducts?: boolean;
31
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.131",
3
+ "version": "2.2.133",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {