@bondsports/types 2.2.284-a-1 → 2.2.284-a-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/dto/events.dto.d.ts +1 -2
  3. package/dist/types/dto/events.dto.js.map +1 -1
  4. package/dist/types/dto/general.dto.d.ts +2 -0
  5. package/dist/types/dto/general.dto.js +4 -1
  6. package/dist/types/dto/general.dto.js.map +1 -1
  7. package/dist/types/dto/package.dto.d.ts +55 -2
  8. package/dist/types/dto/package.dto.js +7 -1
  9. package/dist/types/dto/package.dto.js.map +1 -1
  10. package/dist/types/pricing/dto/pricing.dto.d.ts +1 -1
  11. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +2 -2
  12. package/dist/types/product-pricing/dto/product.dto.d.ts +3 -54
  13. package/dist/types/product-pricing/dto/product.dto.js +1 -7
  14. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  15. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +9 -0
  16. package/dist/types/programs/dto/program.dto.d.ts +1 -2
  17. package/dist/types/programs/dto/program.dto.js.map +1 -1
  18. package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +3 -4
  19. package/dist/types/punch-pass/dto/punch-pass.dto.js +1 -1
  20. package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
  21. package/dist/types/reservations/dto/calendar-slot.dto.d.ts +29 -0
  22. package/dist/types/reservations/dto/calendar-slot.dto.js +7 -0
  23. package/dist/types/reservations/dto/calendar-slot.dto.js.map +1 -0
  24. package/dist/types/reservations/dto/index.d.ts +1 -0
  25. package/dist/types/reservations/dto/index.js +1 -0
  26. package/dist/types/reservations/dto/index.js.map +1 -1
  27. package/dist/types/reservations/dto/reservation.dto.d.ts +4 -55
  28. package/dist/types/reservations/dto/reservation.dto.js +2 -41
  29. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  30. package/dist/types/reservations/dto/slot.dto.d.ts +1 -1
  31. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  32. package/dist/types/reservations/entities/slot.entity.d.ts +1 -0
  33. package/dist/types/reservations/entities/slot.entity.js.map +1 -1
  34. package/dist/types/reservations/types/consts/reservation.consts.d.ts +2 -1
  35. package/dist/types/reservations/types/consts/reservation.consts.js +5 -1
  36. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
  37. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +14 -22
  38. package/dist/types/resources/dto/resource.dto.d.ts +8 -2
  39. package/dist/types/resources/dto/resource.dto.js +3 -3
  40. package/dist/types/resources/dto/resource.dto.js.map +1 -1
  41. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +2 -2
  42. package/dist/types/user/dto/userPass.dto.d.ts +6 -7
  43. package/dist/types/user/dto/userPass.dto.js.map +1 -1
  44. package/package.json +1 -1
@@ -2,10 +2,9 @@ import { AttendanceDto } from '../attendance/dto/attendance.dto';
2
2
  import { PaymentStatusEnum } from '../payment/types/enums/payment.enums';
3
3
  import { MaintenanceDto } from '../reservations/dto/maintenance.dto';
4
4
  import { Slot } from '../reservations/entities/slot.entity';
5
- import { SimpleResourceDto } from '../resources/dto/resource.dto';
6
5
  import { EntryStatusEnum, OrderByEnum, ProgramTypesEnum, RegistrationValidationStatusEnum } from '../services/enums.service';
7
6
  import { IBasicSpaceAndSlotCreator } from '../services/interfaces.service';
8
- import { IdDto, PaginationQuery, PaginationRangeQuery } from './general.dto';
7
+ import { IdDto, PaginationQuery, PaginationRangeQuery, SimpleResourceDto } from './general.dto';
9
8
  export declare class FindEventByIdDto {
10
9
  eventId: number;
11
10
  organizationId: number;
@@ -1 +1 @@
1
- {"version":3,"file":"events.dto.js","sourceRoot":"","sources":["../../../src/types/dto/events.dto.ts"],"names":[],"mappings":";;;AAaA,+CAA6E;AAE7E,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,cAAc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,gEAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAuCD,MAAa,2BAA4B,SAAQ,kCAAoB;CAYpE;AAZD,kEAYC;AAED,MAAa,cAAe,SAAQ,mBAAK;CAsBxC;AAtBD,wCAsBC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAE3C;AAFD,8CAEC;AAED,MAAa,QAAQ;CAIpB;AAJD,4BAIC;AAED,MAAa,kBAAkB;CA4B9B;AA5BD,gDA4BC;AAED,MAAa,gBAAiB,SAAQ,mBAAK;CAM1C;AAND,4CAMC;AAED,MAAa,sBAAuB,SAAQ,cAAc;CAIzD;AAJD,wDAIC;AAED,MAAa,sBAAuB,SAAQ,6BAAe;CAgB1D;AAhBD,wDAgBC"}
@@ -53,6 +53,8 @@ export declare class IdDto implements IId {
53
53
  export declare class IdAndNameDto extends IdDto {
54
54
  name: string;
55
55
  }
56
+ export declare class SimpleResourceDto extends IdAndNameDto {
57
+ }
56
58
  export declare class AuthenticatedRequestDto {
57
59
  user: IdDto;
58
60
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Base64EnabledDto = exports.PaginatedSearchDto = exports.IncludeAdditionalDataDto = exports.CronQueryParamsDto = exports.GenericResponseDto = exports.IdsQueryDto = exports.IdsOptionalDto = exports.IdsDto = exports.AuthenticatedRequestDto = exports.IdAndNameDto = exports.IdDto = exports.SharedPaginatedResultDto = exports.PaginationResultDto = exports.PaginationMetaDto = exports.PaginationRangeQuery = exports.IData = exports.PaginationQuery = exports.HUNDRED_PERCENT = exports.MINIMUM_ALLOWED_PERCENTAGE = exports.MINIMUM_ALLOWED_PRICE = exports.DEFAULT_PAGE = exports.DEFAULT_MINIMUM_ITEMS_PER_PAGE = exports.DEFAULT_MAXIMUM_ITEMS_PER_PAGE = exports.FindOneParams = void 0;
3
+ exports.Base64EnabledDto = exports.PaginatedSearchDto = exports.IncludeAdditionalDataDto = exports.CronQueryParamsDto = exports.GenericResponseDto = exports.IdsQueryDto = exports.IdsOptionalDto = exports.IdsDto = exports.AuthenticatedRequestDto = exports.SimpleResourceDto = exports.IdAndNameDto = exports.IdDto = exports.SharedPaginatedResultDto = exports.PaginationResultDto = exports.PaginationMetaDto = exports.PaginationRangeQuery = exports.IData = exports.PaginationQuery = exports.HUNDRED_PERCENT = exports.MINIMUM_ALLOWED_PERCENTAGE = exports.MINIMUM_ALLOWED_PRICE = exports.DEFAULT_PAGE = exports.DEFAULT_MINIMUM_ITEMS_PER_PAGE = exports.DEFAULT_MAXIMUM_ITEMS_PER_PAGE = exports.FindOneParams = void 0;
4
4
  class FindOneParams {
5
5
  }
6
6
  exports.FindOneParams = FindOneParams;
@@ -52,6 +52,9 @@ exports.IdDto = IdDto;
52
52
  class IdAndNameDto extends IdDto {
53
53
  }
54
54
  exports.IdAndNameDto = IdAndNameDto;
55
+ class SimpleResourceDto extends IdAndNameDto {
56
+ }
57
+ exports.SimpleResourceDto = SimpleResourceDto;
55
58
  class AuthenticatedRequestDto {
56
59
  }
57
60
  exports.AuthenticatedRequestDto = AuthenticatedRequestDto;
@@ -1 +1 @@
1
- {"version":3,"file":"general.dto.js","sourceRoot":"","sources":["../../../src/types/dto/general.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAEY,QAAA,8BAA8B,GAAG,GAAG,CAAC;AACrC,QAAA,8BAA8B,GAAG,EAAE,CAAC;AACpC,QAAA,YAAY,GAAG,CAAC,CAAC;AAEjB,QAAA,qBAAqB,GAAG,GAAG,CAAC;AAC5B,QAAA,0BAA0B,GAAG,IAAI,CAAC;AAClC,QAAA,eAAe,GAAG,GAAG,CAAC;AAEnC,MAAa,eAAe;IAC3B,YAAY,KAA6F;;QAgBzG,iBAAY,GAAI,sCAA8B,CAAC;QAf9C,IAAI,CAAC,MAAM,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAAC;QAC5B,IAAI,CAAC,Y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;CAAA;AAND,oDAMC;AAED,MAAa,iBAAiB;CAc7B;AAdD,8CAcC;AAED,MAAa,mBAAmB;IAK/B,YAAY,IAAS,EAAE,IAAuB;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;CACD;AATD,kDASC;AAED,MAAa,wBAA+B,SAAQ,mBAAsB;CAEzE;AAFD,4DAEC;AAED,MAAa,KAAK;CAEjB;AAFD,sBAEC;AAED,MAAa,YAAa,SAAQ,KAAK;CAEtC;AAFD,oCAEC;AAED,MAAa,iBAAkB,SAAQ,YAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,MAAM;CAElB;AAFD,wBAEC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,kBAAmB,SAAQ,eAAe;CAMtD;AAND,gDAMC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC"}
@@ -1,5 +1,58 @@
1
- import { CreateProductDto, ProductInPackage } from '../product-pricing/dto/product.dto';
2
- import { AddonTimePeriodEnum, PackageProductsRelationTypeEnum, ProductPackageLevelEnum, ResourceNameTypeEnum } from '../services/enums.service';
1
+ import { AddonTimePeriodEnum, PackageProductsRelationTypeEnum, ProductPackageLevelEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../services/enums.service';
2
+ import { CreateProductAvailabilityTimesDto, CreateRentalProductAddonDto } from '../product-pricing/dto/product.dto';
3
+ import { CreateOrUpdateResourceSettingDto } from '../resource-settings/dto/create-or-update-resource-setting.dto';
4
+ import { CreatePaymentPlanDto } from '../payment/dto/payment-plan.dto';
5
+ import { VariantWithPrice } from './product-variants.dto';
6
+ import { CreateGroupPricingWithProduct, CreatePriceDto } from '../pricing/dto/pricing.dto';
7
+ export declare class CreateProductDto {
8
+ id?: number;
9
+ organizationId: number;
10
+ name: string;
11
+ quantity?: number;
12
+ isAll?: boolean;
13
+ isPublic: boolean;
14
+ startDate?: Date;
15
+ endDate?: Date;
16
+ description?: string;
17
+ resourcesType?: ResourceNameTypeEnum;
18
+ resourcesIdsToApplyOn?: number[];
19
+ requiredProductIds?: number[];
20
+ GL?: string;
21
+ glIds?: number[];
22
+ prices: CreatePriceDto[];
23
+ downpayment?: number;
24
+ productType: ProductTypesEnum;
25
+ subProductType?: string;
26
+ defaultForResourceId?: number;
27
+ defaultForResourceType?: ResourceNameTypeEnum;
28
+ entitlementGroupsPricings?: CreateGroupPricingWithProduct[];
29
+ variantTitleIds?: number[];
30
+ variants?: VariantWithPrice[];
31
+ variantParentId?: number;
32
+ isAddon?: boolean;
33
+ isArchive?: boolean;
34
+ timePeriod?: AddonTimePeriodEnum;
35
+ isProRated?: boolean;
36
+ paymentPlan?: CreatePaymentPlanDto;
37
+ isTaxInclusive?: boolean;
38
+ tax?: number;
39
+ sports?: number[];
40
+ durationMinutes?: number;
41
+ durationDays?: number;
42
+ forms?: number[];
43
+ isForAllCustomers?: boolean;
44
+ membershipsAvailableFor?: number[];
45
+ customersAvailableFor?: number[];
46
+ addons?: CreateRentalProductAddonDto[];
47
+ availabilityTimes?: CreateProductAvailabilityTimesDto[];
48
+ resourceSettings?: CreateOrUpdateResourceSettingDto[];
49
+ addonsToPackages?: ExistingProductToPackageDto[];
50
+ }
51
+ export declare class ProductInPackage extends CreateProductDto {
52
+ relationType: PackageProductsRelationTypeEnum;
53
+ amountInPackage?: number;
54
+ level?: ProductPackageLevelEnum;
55
+ }
3
56
  export declare class ExistingProductToPackageDto {
4
57
  id: number;
5
58
  relationType: PackageProductsRelationTypeEnum;
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateProductsDto = exports.CreatePackageToResourceDto = exports.FindProductsByResourceAsOrganizationDto = exports.FindPackageByResourceDto = exports.CreatePackageDto = exports.ExistingProductToPackageDto = void 0;
3
+ exports.CreateProductsDto = exports.CreatePackageToResourceDto = exports.FindProductsByResourceAsOrganizationDto = exports.FindPackageByResourceDto = exports.CreatePackageDto = exports.ExistingProductToPackageDto = exports.ProductInPackage = exports.CreateProductDto = void 0;
4
+ class CreateProductDto {
5
+ }
6
+ exports.CreateProductDto = CreateProductDto;
7
+ class ProductInPackage extends CreateProductDto {
8
+ }
9
+ exports.ProductInPackage = ProductInPackage;
4
10
  class ExistingProductToPackageDto {
5
11
  }
6
12
  exports.ExistingProductToPackageDto = ExistingProductToPackageDto;
@@ -1 +1 @@
1
- {"version":3,"file":"package.dto.js","sourceRoot":"","sources":["../../../src/types/dto/package.dto.ts"],"names":[],"mappings":";;;AAQA,MAAa,2BAA2B;CAQvC;AARD,kEAQC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,uCAAwC,SAAQ,wBAAwB;CAEpF;AAFD,0FAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC"}
1
+ {"version":3,"file":"package.dto.js","sourceRoot":"","sources":["../../../src/types/dto/package.dto.ts"],"names":[],"mappings":";;;AAaA,MAAa,gBAAgB;CAoF5B;AApFD,4CAoFC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AACD,MAAa,2BAA2B;CAQvC;AARD,kEAQC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,uCAAwC,SAAQ,wBAAwB;CAEpF;AAFD,0FAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC"}
@@ -67,7 +67,7 @@ export declare class FindEntitlementGroupByIdDto {
67
67
  }
68
68
  export declare class CreateGroupPricingWithProduct {
69
69
  groupId: number;
70
- price: number;
70
+ price?: number;
71
71
  startDate?: Date;
72
72
  endDate?: Date;
73
73
  discountValue?: number;
@@ -4,8 +4,8 @@ import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
4
4
  import { ActivityEnum, OrderByEnum, ProductTypesEnum, ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
5
5
  import { ResourceDto } from '../../resources/dto/resource.dto';
6
6
  import { OrderByProductEnum } from '../types/enums/product.enums';
7
- import { IGetProductsByTypeOptions } from '../types/interfaces/product-pricing.interfaces';
8
- export declare class FindPriceOfProductDto {
7
+ import { IFindPriceOfProduct, IGetProductsByTypeOptions } from '../types/interfaces/product-pricing.interfaces';
8
+ export declare class FindPriceOfProductDto implements IFindPriceOfProduct {
9
9
  id?: number;
10
10
  productId: number;
11
11
  userId: number;
@@ -3,22 +3,19 @@ import { ActivityTimesDto } from '../../dto/activityTimes.dto';
3
3
  import { FacilityDto, SimpleFacilityDto } from '../../dto/facilities.dto';
4
4
  import { IdAndNameDto, PaginationQuery } from '../../dto/general.dto';
5
5
  import { SimpleMembershipDto } from '../../dto/membership.dto';
6
- import { VariantDto, VariantTitleDto, VariantWithPrice } from '../../dto/product-variants.dto';
6
+ import { VariantDto, VariantTitleDto } from '../../dto/product-variants.dto';
7
7
  import { GroupItemsPricing } from '../../entity/GroupItemsPricing';
8
8
  import { ProductPackage } from '../../entity/ProductPackage';
9
9
  import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
10
10
  import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
11
11
  import { EntitlementDiscountDto } from '../../payment/dto/discount.dto';
12
- import { CreatePaymentPlanDto, PaymentPlanDto } from '../../payment/dto/payment-plan.dto';
12
+ import { PaymentPlanDto } from '../../payment/dto/payment-plan.dto';
13
13
  import { PriceDto } from '../../pricing/dto/price.dto';
14
- import { CreateGroupPricingWithProduct, CreatePriceDto } from '../../pricing/dto/pricing.dto';
15
- import { CreateOrUpdateResourceSettingDto } from '../../resource-settings/dto/create-or-update-resource-setting.dto';
16
14
  import { ResourceSettingDto } from '../../resource-settings/dto/resource-setting.dto';
17
- import { ActivityEnum, AddonTimePeriodEnum, PackageProductsRelationTypeEnum, PlatformsEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
15
+ import { ActivityEnum, AddonTimePeriodEnum, PlatformsEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
18
16
  import { IChildProduct, IResourcesAvailability } from '../../services/interfaces.service';
19
17
  import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
20
18
  import { ProductResourceDto } from './product-resource.dto';
21
- import { ExistingProductToPackageDto } from '../../dto/package.dto';
22
19
  export declare class FindByProductIdDto {
23
20
  productId: number;
24
21
  }
@@ -39,54 +36,6 @@ export declare class CreateRentalProductAddonDto {
39
36
  isMandatory?: boolean;
40
37
  level: ProductPackageLevelEnum;
41
38
  }
42
- export declare class CreateProductDto {
43
- id?: number;
44
- organizationId: number;
45
- name: string;
46
- quantity?: number;
47
- isAll?: boolean;
48
- isPublic: boolean;
49
- startDate?: Date;
50
- endDate?: Date;
51
- description?: string;
52
- resourcesType?: ResourceNameTypeEnum;
53
- resourcesIdsToApplyOn?: number[];
54
- GL?: string;
55
- glIds?: number[];
56
- prices: CreatePriceDto[];
57
- downpayment?: number;
58
- productType: ProductTypesEnum;
59
- subProductType?: string;
60
- defaultForResourceId?: number;
61
- defaultForResourceType?: ResourceNameTypeEnum;
62
- entitlementGroupsPricings?: CreateGroupPricingWithProduct[];
63
- variantTitleIds?: number[];
64
- variants?: VariantWithPrice[];
65
- variantParentId?: number;
66
- isAddon?: boolean;
67
- isArchive?: boolean;
68
- timePeriod?: AddonTimePeriodEnum;
69
- isProRated?: boolean;
70
- paymentPlan?: CreatePaymentPlanDto;
71
- isTaxInclusive?: boolean;
72
- tax?: number;
73
- sports?: number[];
74
- durationMinutes?: number;
75
- durationDays?: number;
76
- forms?: number[];
77
- isForAllCustomers?: boolean;
78
- membershipsAvailableFor?: number[];
79
- customersAvailableFor?: number[];
80
- addons?: CreateRentalProductAddonDto[];
81
- availabilityTimes?: CreateProductAvailabilityTimesDto[];
82
- resourceSettings?: CreateOrUpdateResourceSettingDto[];
83
- addonsToPackages?: ExistingProductToPackageDto[];
84
- }
85
- export declare class ProductInPackage extends CreateProductDto {
86
- relationType: PackageProductsRelationTypeEnum;
87
- amountInPackage?: number;
88
- level?: ProductPackageLevelEnum;
89
- }
90
39
  export declare class ConnectProductResourceDto {
91
40
  productId: number;
92
41
  resourceType: ResourceNameTypeEnum;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResourceProductDto = exports.ProductDto = exports.DeprecatedProductDto = exports.BaseProductDto = exports.SimpleProductDto = exports.GetOrganizationProductsDto = exports.GetExtraProductDataDto = exports.ProductFieldsDto = exports.GetProductsDto = exports.ProductsIdsDto = exports.AddRequiredProductsDto = exports.ReturnRequiredProductsDto = exports.ConnectProductResourceDto = exports.ProductInPackage = exports.CreateProductDto = exports.CreateRentalProductAddonDto = exports.ByProductAndOrgDto = exports.CreateProductAvailabilityTimesDto = exports.FindByProductIdDto = void 0;
3
+ exports.ResourceProductDto = exports.ProductDto = exports.DeprecatedProductDto = exports.BaseProductDto = exports.SimpleProductDto = exports.GetOrganizationProductsDto = exports.GetExtraProductDataDto = exports.ProductFieldsDto = exports.GetProductsDto = exports.ProductsIdsDto = exports.AddRequiredProductsDto = exports.ReturnRequiredProductsDto = exports.ConnectProductResourceDto = exports.CreateRentalProductAddonDto = exports.ByProductAndOrgDto = exports.CreateProductAvailabilityTimesDto = exports.FindByProductIdDto = void 0;
4
4
  const general_dto_1 = require("../../dto/general.dto");
5
5
  const organization_dto_1 = require("../../organization/dto/organization.dto");
6
6
  class FindByProductIdDto {
@@ -15,12 +15,6 @@ exports.ByProductAndOrgDto = ByProductAndOrgDto;
15
15
  class CreateRentalProductAddonDto {
16
16
  }
17
17
  exports.CreateRentalProductAddonDto = CreateRentalProductAddonDto;
18
- class CreateProductDto {
19
- }
20
- exports.CreateProductDto = CreateProductDto;
21
- class ProductInPackage extends CreateProductDto {
22
- }
23
- exports.ProductInPackage = ProductInPackage;
24
18
  class ConnectProductResourceDto {
25
19
  }
26
20
  exports.ConnectProductResourceDto = ConnectProductResourceDto;
@@ -1 +1 @@
1
- {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAsE;AAMtE,8EAA8E;AAuB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AAED,MAAa,gBAAgB;CAkF5B;AAlFD,4CAkFC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,yBAAyB;CAKrC;AALD,8DAKC;AAED,MAAa,sBAAsB;CAGlC;AAHD,wDAGC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAwBlD;AAxBD,wCAwBC;AAED,MAAa,gBAAgB;CAsD5B;AAtDD,4CAsDC;AAED,MAAa,sBAAsB;CAYlC;AAZD,wDAYC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAIjD;AAJD,4CAIC;AAED,MAAa,cAAc;CA0G1B;AA1GD,wCA0GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAU7C;AAVD,gCAUC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC"}
1
+ {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAsE;AAMtE,8EAA8E;AAmB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,yBAAyB;CAKrC;AALD,8DAKC;AAED,MAAa,sBAAsB;CAGlC;AAHD,wDAGC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAwBlD;AAxBD,wCAwBC;AAED,MAAa,gBAAgB;CAsD5B;AAtDD,4CAsDC;AAED,MAAa,sBAAsB;CAYlC;AAZD,wDAYC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAIjD;AAJD,4CAIC;AAED,MAAa,cAAc;CA0G1B;AA1GD,wCA0GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAU7C;AAVD,gCAUC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC"}
@@ -5,6 +5,7 @@ import { ActivityEnum, OrderByEnum, SportsEnum } from '../../../services/enums.s
5
5
  import { IPagination } from '../../../util/models/interfaces/general.interfaces';
6
6
  import { OrderByProductEnum } from '../enums/product.enums';
7
7
  import { IProductResource } from './porduct-resource.interfaces';
8
+ import { ResourceDto } from '../../../resources/dto/resource.dto';
8
9
  export interface IGetCurrentPricesOptions {
9
10
  userId?: number;
10
11
  answers?: QuestionAnswersDto[];
@@ -46,3 +47,11 @@ export interface IGetProductsOptions {
46
47
  throwError?: boolean;
47
48
  skipRefetch?: boolean;
48
49
  }
50
+ export interface IFindPriceOfProduct {
51
+ id?: number;
52
+ productId: number;
53
+ userId: number;
54
+ resources?: ResourceDto[];
55
+ quantity?: number;
56
+ unique?: string;
57
+ }
@@ -1,11 +1,10 @@
1
1
  import { SimpleFacilityDto } from '../../dto/facilities.dto';
2
- import { IdAndNameDto, PaginationQuery } from '../../dto/general.dto';
2
+ import { IdAndNameDto, PaginationQuery, SimpleResourceDto } from '../../dto/general.dto';
3
3
  import { ProductUserFinancialInfoDto, SimpleProductUserDto } from '../../dto/product-user';
4
4
  import { ByOrganizationIdDto, OptionalOrganizationIdDto } from '../../organization/dto/organization.dto';
5
5
  import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
6
6
  import { SimpleSessionDto } from '../../programs-seasons/dto/program-seasons.dto';
7
7
  import { GenderEnum, LevelOfPlayEnum, OrderByEnum, PlatformsEnum, ProgramHighlightTypeEnum, ProgramTypesEnum, PublishingStatusEnum, SportsEnum } from '../../services/enums.service';
8
- import { SimpleResourceDto } from '../../resources/dto/resource.dto';
9
8
  import { SimpleUserDto } from '../../user/dto/user.dto';
10
9
  export declare class FindOrganizationProgramsDto {
11
10
  programType?: ProgramTypesEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"program.dto.js","sourceRoot":"","sources":["../../../../src/types/programs/dto/program.dto.ts"],"names":[],"mappings":";;;AACA,uDAAsE;AAEtE,8EAAyG;AAgBzG,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,iCAAiC;CAM7C;AAND,8EAMC;AAED,MAAa,+BAAgC,SAAQ,sCAAm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MAAa,sBAAuB,SAAQ,cAAc;CAEzD;AAFD,wDAEC;AAED,MAAa,mBAAmB;CAY/B;AAZD,kDAYC;AAED,MAAa,cAAc;CA8C1B;AA9CD,wCA8CC;AAED,MAAa,gBAAiB,SAAQ,cAAc;CAAG;AAAvD,4CAAuD;AAEvD,MAAa,gBAAiB,SAAQ,cAAc;CAInD;AAJD,4CAIC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAMjD;AAND,4CAMC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,wBAAyB,SAAQ,6BAAe;CAQ5D;AARD,4DAQC;AAED,MAAa,cAAc;CA4B1B;AA5BD,wCA4BC"}
@@ -1,16 +1,15 @@
1
1
  import { SimpleEventDto } from '../../dto/events.dto';
2
2
  import { SimpleFacilityDto } from '../../dto/facilities.dto';
3
- import { PaginationQuery } from '../../dto/general.dto';
4
- import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
3
+ import { PaginationQuery, SimpleResourceDto } from '../../dto/general.dto';
4
+ import { SimpleProductUserDto } from '../../dto/product-user';
5
5
  import { PaymentIdDto } from '../../payment/dto/payment.dto';
6
6
  import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
7
+ import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
7
8
  import { SimpleSessionDto } from '../../programs-seasons/dto/program-seasons.dto';
8
9
  import { SimpleProgramDto } from '../../programs/dto/program.dto';
9
10
  import { OrderByEnum } from '../../services/enums.service';
10
- import { SimpleResourceDto } from '../../resources/dto/resource.dto';
11
11
  import { ByOrganizationAndUserDto, SimpleUserDto } from '../../user/dto/user.dto';
12
12
  import { PunchPassFilterByEnum, PunchPassOrderByEnum, PunchPassSearchByEnum } from '../types/enums';
13
- import { SimpleProductUserDto } from '../../dto/product-user';
14
13
  export declare class PunchPassFinancialInfoDto {
15
14
  price: number;
16
15
  invoiceId: number;
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PunchPassUserProductInfoDto = exports.ByPassIdOrganizationIdUserIdDto = exports.GetPassEventsDto = exports.GetPassesOptionsDto = exports.PunchPassEventDto = exports.PunchPassInfoDto = exports.PunchPassFinancialInfoDto = void 0;
4
4
  const events_dto_1 = require("../../dto/events.dto");
5
5
  const general_dto_1 = require("../../dto/general.dto");
6
- const user_dto_1 = require("../../user/dto/user.dto");
7
6
  const product_user_1 = require("../../dto/product-user");
7
+ const user_dto_1 = require("../../user/dto/user.dto");
8
8
  class PunchPassFinancialInfoDto {
9
9
  }
10
10
  exports.PunchPassFinancialInfoDto = PunchPassFinancialInfoDto;
@@ -1 +1 @@
1
- {"version":3,"file":"punch-pass.dto.js","sourceRoot":"","sources":["../../../../src/types/punch-pass/dto/punch-pass.dto.ts"],"names":[],"mappings":";;;AAAA,qDAAsD;AAEtD,uDAAwD;AAQxD,sDAAkF;AAElF,yDAA8D;AAE9D,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAED,MAAa,gBAAgB;CA0B5B;AA1BD,4CA0BC;AAED,MAAa,iBAAkB,SAAQ,2BAAc;CAQpD;AARD,8CAQC;AAED,MAAa,mBAAoB,SAAQ,6BAAe;CAcvD;AAdD,kDAcC;AAED,MAAa,gBAAgB;CAY5B;AAZD,4CAYC;AAED,MAAa,+BAAgC,SAAQ,mCAAwB;CAE5E;AAFD,0EAEC;AAED,MAAa,2BAA4B,SAAQ,mCAAoB;CAcpE;AAdD,kEAcC"}
1
+ {"version":3,"file":"punch-pass.dto.js","sourceRoot":"","sources":["../../../../src/types/punch-pass/dto/punch-pass.dto.ts"],"names":[],"mappings":";;;AAAA,qDAAsD;AAEtD,uDAA2E;AAC3E,yDAA8D;AAO9D,sDAAkF;AAGlF,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAED,MAAa,gBAAgB;CA0B5B;AA1BD,4CA0BC;AAED,MAAa,iBAAkB,SAAQ,2BAAc;CAQpD;AARD,8CAQC;AAED,MAAa,mBAAoB,SAAQ,6BAAe;CAcvD;AAdD,kDAcC;AAED,MAAa,gBAAgB;CAY5B;AAZD,4CAYC;AAED,MAAa,+BAAgC,SAAQ,mCAAwB;CAE5E;AAFD,0EAEC;AAED,MAAa,2BAA4B,SAAQ,mCAAoB;CAcpE;AAdD,kEAcC"}
@@ -0,0 +1,29 @@
1
+ import { Event } from '../../entity/Events';
2
+ import { SportsEnum } from '../../services/enums.service';
3
+ import { Reservation } from '../entities/reservation.entity';
4
+ import { Series } from '../entities/series.entity';
5
+ import { ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
6
+ export declare class CalendarSlotDto {
7
+ id: number;
8
+ reservationId: number;
9
+ parentSlotId?: number;
10
+ eventId: number;
11
+ title: string;
12
+ slotType: SlotTypeEnum;
13
+ paymentStatus: ReservationPaymentStatusEnum;
14
+ approvalStatus: ReservationStatusEnum;
15
+ startDate: string;
16
+ startTime: string;
17
+ endDate: string;
18
+ endTime: string;
19
+ timezone: string;
20
+ spaceId: number;
21
+ instructorsIds?: number[];
22
+ sportId: SportsEnum;
23
+ colorCodeId?: number;
24
+ children?: CalendarSlotDto[];
25
+ sportIds: SportsEnum[];
26
+ event: Event;
27
+ reservation: Reservation;
28
+ series?: Series;
29
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CalendarSlotDto = void 0;
4
+ class CalendarSlotDto {
5
+ }
6
+ exports.CalendarSlotDto = CalendarSlotDto;
7
+ //# sourceMappingURL=calendar-slot.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/calendar-slot.dto.ts"],"names":[],"mappings":";;;AAWA,MAAa,eAAe;CA4C3B;AA5CD,0CA4CC"}
@@ -1,4 +1,5 @@
1
1
  export * from './addon.dto';
2
+ export * from './calendar-slot.dto';
2
3
  export * from './maintenance.dto';
3
4
  export * from './purcased-resource.dto';
4
5
  export * from './reservation.dto';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./addon.dto"), exports);
18
+ __exportStar(require("./calendar-slot.dto"), exports);
18
19
  __exportStar(require("./maintenance.dto"), exports);
19
20
  __exportStar(require("./purcased-resource.dto"), exports);
20
21
  __exportStar(require("./reservation.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,sDAAoC;AACpC,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,uDAAqC"}
@@ -1,9 +1,9 @@
1
1
  import { UpdateCartPricesDto } from '../../cart/dto/cart.dto';
2
2
  import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
3
3
  import { FacilityDto } from '../../dto/facilities.dto';
4
- import { PaginationQuery } from '../../dto/general.dto';
4
+ import { PaginationQuery, SimpleResourceDto } from '../../dto/general.dto';
5
5
  import { Invoice } from '../../entity/Invoice';
6
- import { InvoiceCartDto, InvoiceDto, SimpleInvoiceDto, UpdateInvoiceDto } from '../../invoice/dto/invoice.dto';
6
+ import { InvoiceCartDto, SimpleInvoiceDto, UpdateInvoiceDto } from '../../invoice/dto/invoice.dto';
7
7
  import { OverrideProductsPricingDto } from '../../invoice/types/interfaces/invoice.interfaces';
8
8
  import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
9
9
  import { PaymentMethodToFundLeftDto } from '../../payment/dto/payment-method.dto';
@@ -14,16 +14,14 @@ import { ProductDto, SimpleProductDto } from '../../product-pricing/dto/product.
14
14
  import { Product } from '../../product-pricing/entities/Product';
15
15
  import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purchase.dto';
16
16
  import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
17
- import { SimpleResourceDto } from '../../resources/dto/resource.dto';
18
17
  import { SpaceResourceDto } from '../../resources/dto/space.dto';
19
18
  import { AddonParentTypeEnum, FinancialStepEnum, NotifyMethodEnum, OrderByEnum, PlatformsEnum, ProductPackageLevelEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
20
19
  import { Reservation } from '../entities/reservation.entity';
21
20
  import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
22
21
  import { ISegmentsAddons } from '../types/interfaces/addon.interfaces';
23
- import { IBaseReservation, IBaseReservationItemLineItem, IDraftReservation, IDuplicateDetails, IDuplicateReservationItems, IEditItemsRefundMetadata, IEditSlotsFinancialDetails, IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, IProductPrice, IRemoveSlotsFinancialData, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
22
+ import { IBaseReservation, IBaseReservationItemLineItem, IDraftReservation, IDuplicateDetails, IDuplicateReservationItems, IEditFinancialDetails, IEditItemsRefundMetadata, IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, IProductPrice, IRemoveSlotsFinancialData, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
24
23
  import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
25
24
  import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
26
- import { SeriesDto } from './series.dto';
27
25
  import { DraftSlotsDto, SlotDto, TimeSlotConflictsDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
28
26
  export declare class ProductPricesDto implements IProductPrice {
29
27
  productId: number;
@@ -114,21 +112,12 @@ export declare class DraftReservationDto extends SimpleDraftReservationDto imple
114
112
  duplicateDetails?: DuplicatedDetailsDto;
115
113
  combinedSlots?: DraftSlotsDto[];
116
114
  }
117
- export declare class ReservationInvoiceDto {
118
- reservation: ReservationDto;
119
- invoice: InvoiceDto;
120
- debug: any;
121
- }
122
115
  export declare class CreateReservationCartDto implements ISaveReservationOptions {
123
116
  platform?: PlatformsEnum;
124
117
  shiftId?: number;
125
118
  updatePrices?: UpdateCartPricesDto;
126
119
  addToReservationId?: number;
127
120
  }
128
- export declare class SaveReservationDto extends CreateReservationCartDto implements ISaveReservationOptions {
129
- reservation: ReservationDto;
130
- slotType?: SlotTypeEnum;
131
- }
132
121
  export declare class SingleReservationIncludesDto {
133
122
  includeCustomer?: boolean;
134
123
  includeAddons?: boolean;
@@ -151,10 +140,6 @@ declare class UpdatePriceDto {
151
140
  export declare class UpdateReservationPriceDto extends UpdatePriceDto {
152
141
  reservation: ReservationDto;
153
142
  }
154
- export declare class UpdateSlotsPricesDto extends UpdatePriceDto {
155
- slots: SlotDto[];
156
- useCurrentProducts?: boolean;
157
- }
158
143
  export declare class BookingData {
159
144
  platform: PlatformsEnum;
160
145
  shiftId?: number;
@@ -209,12 +194,6 @@ export declare class FindByReservationDto extends ByOrganizationIdDto {
209
194
  export declare class DuplicateSlotDto extends FindByReservationDto {
210
195
  slotId: number;
211
196
  }
212
- export declare class FindByFacilityDto extends FindByReservationDto {
213
- facilityId: number;
214
- }
215
- export declare class FindBySegmentDto extends FindByFacilityDto {
216
- segmentId: number;
217
- }
218
197
  export declare class FindBySlotIdsDto {
219
198
  slotsIds: number[];
220
199
  }
@@ -224,21 +203,11 @@ export declare class UpdateReservationStatusDto extends FindByReservationDto {
224
203
  export declare class FindBySlotDto extends FindByReservationDto {
225
204
  slotId: number;
226
205
  }
227
- export declare class AddSlotToSegmentDto {
228
- slot: SlotDto;
229
- addonIds?: number[];
230
- }
231
- export declare class UpdateSlotsDto {
232
- slots: SlotDto[];
233
- }
234
206
  export declare class EditItemsRefundMetaDto {
235
207
  lineItems: RefundAmountDto[];
236
208
  paymentMethods: PaymentMethodDto[];
237
209
  reasonId: number;
238
210
  }
239
- export declare class EditSlotsDto extends UpdateSlotsDto {
240
- refundMeta?: EditItemsRefundMetaDto;
241
- }
242
211
  export declare class EditReservationDetailsDto {
243
212
  name: string;
244
213
  publicNotes?: string;
@@ -250,17 +219,9 @@ export declare class RemoveSlotsFinancialDataDto implements IRemoveSlotsFinancia
250
219
  nextFinancialStep: FinancialStepEnum;
251
220
  invoice: Invoice;
252
221
  }
253
- export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
254
- updateAddons?: boolean;
255
- updateMaintenance?: boolean;
256
- }
257
222
  export declare class ReservationNotifyDto {
258
223
  notifyMethods?: NotifyMethodEnum[];
259
224
  }
260
- export declare class UpdateReservationInvoiceDto {
261
- updateAddons?: boolean;
262
- updateMaintenance?: boolean;
263
- }
264
225
  export declare class UpdateReservationSlotsColorsDto {
265
226
  slots?: UpdateSlotsColorsDto[];
266
227
  colorCodeId?: number;
@@ -272,22 +233,10 @@ export declare class ChargeReservationResultDto extends PurchaseResultDto {
272
233
  reservation: Reservation;
273
234
  debug?: any;
274
235
  }
275
- export declare class AddSlotToSegmenResultDto {
276
- series: SeriesDto;
277
- slotTotalPrice: number;
278
- addonsTotalPrice: number;
279
- debug?: any;
280
- }
281
- export declare class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
282
- reservationTotalPrice: number;
283
- }
284
236
  export declare class InvoiceReservationItemsDto extends InvoiceCartDto {
285
237
  slotsIds?: number[];
286
238
  addonsIds?: number[];
287
239
  }
288
- export declare class AddSlotsDto extends UpdateInvoiceDto {
289
- slots: SlotDto[];
290
- }
291
240
  export declare class AddSegmentsDto extends UpdateInvoiceDto {
292
241
  segments: SegmentDto[];
293
242
  }
@@ -410,7 +359,7 @@ export declare class EditItemsRefundMetadataDto implements IEditItemsRefundMetad
410
359
  lineItems: ReservationItemLineDto[];
411
360
  refundAmount: number;
412
361
  }
413
- export declare class EditSlotsFinancialDetailsDto implements IEditSlotsFinancialDetails {
362
+ export declare class EditSlotsFinancialDetailsDto implements IEditFinancialDetails {
414
363
  nextFinancialStep: FinancialStepEnum;
415
364
  paymentMethods?: PaymentMethodToFundLeftDto[];
416
365
  originalInvoicePrice?: number;