@bondsports/types 2.1.71 → 2.1.73

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +4 -1
  3. package/dist/types/dto/general.dto.d.ts +2 -1
  4. package/dist/types/dto/general.dto.js.map +1 -1
  5. package/dist/types/entity/ActivityTimes.d.ts +2 -0
  6. package/dist/types/entity/ActivityTimes.js.map +1 -1
  7. package/dist/types/entity/SlotHistory.d.ts +2 -2
  8. package/dist/types/entity/user-payment-method.d.ts +1 -0
  9. package/dist/types/entity/user-payment-method.js.map +1 -1
  10. package/dist/types/import/dto/user-payment-method.dto.d.ts +1 -0
  11. package/dist/types/import/dto/user-payment-method.dto.js.map +1 -1
  12. package/dist/types/index.d.ts +0 -1
  13. package/dist/types/index.js +0 -1
  14. package/dist/types/index.js.map +1 -1
  15. package/dist/types/invoice/types/consts/index.d.ts +1 -0
  16. package/dist/types/invoice/types/consts/index.js +1 -0
  17. package/dist/types/invoice/types/consts/index.js.map +1 -1
  18. package/dist/types/invoice/types/consts/invoice.interfaces.d.ts +14 -0
  19. package/dist/types/{models/interfaces/payment.js → invoice/types/consts/invoice.interfaces.js} +1 -1
  20. package/dist/types/invoice/types/consts/invoice.interfaces.js.map +1 -0
  21. package/dist/types/payment/dto/connected-resources.d.ts +13 -0
  22. package/dist/types/payment/dto/connected-resources.js +10 -0
  23. package/dist/types/payment/dto/connected-resources.js.map +1 -0
  24. package/dist/types/payment/dto/index.d.ts +1 -0
  25. package/dist/types/payment/dto/index.js +1 -0
  26. package/dist/types/payment/dto/index.js.map +1 -1
  27. package/dist/types/payment/dto/payment-method.dto.d.ts +25 -0
  28. package/dist/types/payment/dto/payment-method.dto.js +11 -1
  29. package/dist/types/payment/dto/payment-method.dto.js.map +1 -1
  30. package/dist/types/payment/types/enums/connected-resources.enums.d.ts +4 -0
  31. package/dist/types/payment/types/enums/connected-resources.enums.js +9 -0
  32. package/dist/types/payment/types/enums/connected-resources.enums.js.map +1 -0
  33. package/dist/types/payment/types/enums/index.d.ts +1 -0
  34. package/dist/types/payment/types/enums/index.js +1 -0
  35. package/dist/types/payment/types/enums/index.js.map +1 -1
  36. package/dist/types/payment/types/interfaces/connected-resources.interfaces.d.ts +2 -0
  37. package/dist/types/payment/types/interfaces/connected-resources.interfaces.js +3 -0
  38. package/dist/types/payment/types/interfaces/connected-resources.interfaces.js.map +1 -0
  39. package/dist/types/payment/types/interfaces/index.d.ts +1 -0
  40. package/dist/types/payment/types/interfaces/index.js +1 -0
  41. package/dist/types/payment/types/interfaces/index.js.map +1 -1
  42. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +13 -1
  43. package/dist/types/payment/types/interfaces/void.interfaces.d.ts +1 -1
  44. package/dist/types/pricing/dto/pricing.dto.d.ts +3 -0
  45. package/dist/types/pricing/dto/pricing.dto.js.map +1 -1
  46. package/dist/types/pricing/entities/Price.d.ts +2 -0
  47. package/dist/types/pricing/entities/Price.js.map +1 -1
  48. package/dist/types/pricing/index.d.ts +1 -0
  49. package/dist/types/pricing/index.js +1 -0
  50. package/dist/types/pricing/index.js.map +1 -1
  51. package/dist/types/pricing/types/index.d.ts +2 -0
  52. package/dist/types/pricing/types/index.js +19 -0
  53. package/dist/types/pricing/types/index.js.map +1 -0
  54. package/dist/types/pricing/types/pricing.enums.d.ts +5 -0
  55. package/dist/types/pricing/types/pricing.enums.js +10 -0
  56. package/dist/types/pricing/types/pricing.enums.js.map +1 -0
  57. package/dist/types/pricing/types/pricing.interfaces.d.ts +5 -0
  58. package/dist/types/{util/types/general.js → pricing/types/pricing.interfaces.js} +1 -1
  59. package/dist/types/pricing/types/pricing.interfaces.js.map +1 -0
  60. package/dist/types/product-pricing/dto/index.d.ts +1 -0
  61. package/dist/types/product-pricing/dto/index.js +1 -0
  62. package/dist/types/product-pricing/dto/index.js.map +1 -1
  63. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +22 -1
  64. package/dist/types/product-pricing/dto/product-pricing.dto.js +7 -1
  65. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  66. package/dist/types/product-pricing/dto/product.dto.d.ts +5 -1
  67. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  68. package/dist/types/product-pricing/dto/rental-product.dto.d.ts +42 -0
  69. package/dist/types/product-pricing/dto/rental-product.dto.js +16 -0
  70. package/dist/types/product-pricing/dto/rental-product.dto.js.map +1 -0
  71. package/dist/types/product-pricing/entities/Product.d.ts +2 -0
  72. package/dist/types/product-pricing/entities/Product.js.map +1 -1
  73. package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
  74. package/dist/types/{models/interfaces → product-pricing/types/consts}/index.js +1 -2
  75. package/dist/types/product-pricing/types/consts/index.js.map +1 -0
  76. package/dist/types/product-pricing/types/consts/product-pricing.consts.d.ts +1 -0
  77. package/dist/types/product-pricing/types/consts/product-pricing.consts.js +5 -0
  78. package/dist/types/product-pricing/types/consts/product-pricing.consts.js.map +1 -0
  79. package/dist/types/product-pricing/types/enums/product.enums.d.ts +8 -0
  80. package/dist/types/product-pricing/types/enums/product.enums.js +10 -1
  81. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  82. package/dist/types/product-pricing/types/index.d.ts +1 -0
  83. package/dist/types/product-pricing/types/index.js +1 -0
  84. package/dist/types/product-pricing/types/index.js.map +1 -1
  85. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +25 -0
  86. package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +2 -2
  87. package/dist/types/reservations/dto/reservation.dto.d.ts +1 -2
  88. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  89. package/dist/types/reservations/dto/slot.dto.d.ts +3 -3
  90. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  91. package/dist/types/reservations/entities/Slots.d.ts +2 -2
  92. package/dist/types/reservations/index.d.ts +1 -1
  93. package/dist/types/reservations/index.js +1 -1
  94. package/dist/types/reservations/index.js.map +1 -1
  95. package/dist/types/reservations/types/consts/index.d.ts +1 -0
  96. package/dist/types/reservations/{interfaces → types/consts}/index.js +1 -2
  97. package/dist/types/reservations/types/consts/index.js.map +1 -0
  98. package/dist/types/reservations/types/consts/reservation.consts.d.ts +5 -0
  99. package/dist/types/reservations/types/consts/reservation.consts.js +9 -0
  100. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -0
  101. package/dist/types/reservations/types/enums/index.d.ts +1 -0
  102. package/dist/types/{util/types → reservations/types/enums}/index.js +1 -1
  103. package/dist/types/reservations/types/enums/index.js.map +1 -0
  104. package/dist/types/reservations/types/enums/invoice.enums.d.ts +7 -0
  105. package/dist/types/reservations/{interfaces/invoice.js → types/enums/invoice.enums.js} +2 -3
  106. package/dist/types/reservations/types/enums/invoice.enums.js.map +1 -0
  107. package/dist/types/reservations/types/index.d.ts +3 -0
  108. package/dist/types/reservations/types/index.js +20 -0
  109. package/dist/types/reservations/types/index.js.map +1 -0
  110. package/dist/types/reservations/types/interfaces/index.d.ts +2 -0
  111. package/dist/types/reservations/types/interfaces/index.js +19 -0
  112. package/dist/types/reservations/types/interfaces/index.js.map +1 -0
  113. package/dist/types/reservations/types/interfaces/invoice.interfaces.d.ts +45 -0
  114. package/dist/types/reservations/types/interfaces/invoice.interfaces.js +3 -0
  115. package/dist/types/reservations/types/interfaces/invoice.interfaces.js.map +1 -0
  116. package/dist/types/reservations/{interfaces/reservation.d.ts → types/interfaces/reservation.interfaces.d.ts} +71 -71
  117. package/dist/types/reservations/types/interfaces/reservation.interfaces.js +7 -0
  118. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -0
  119. package/dist/types/resources/dto/resource.dto.d.ts +1 -0
  120. package/dist/types/resources/dto/resource.dto.js.map +1 -1
  121. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +2 -0
  122. package/dist/types/services/enums.service.d.ts +11 -4
  123. package/dist/types/services/enums.service.js +7 -0
  124. package/dist/types/services/enums.service.js.map +1 -1
  125. package/dist/types/services/interfaces.service.d.ts +2 -2
  126. package/dist/types/util/index.d.ts +1 -1
  127. package/dist/types/util/index.js +1 -1
  128. package/dist/types/util/index.js.map +1 -1
  129. package/dist/types/util/models/ExitCode.js.map +1 -0
  130. package/dist/types/{models → util/models}/index.d.ts +1 -0
  131. package/dist/types/{models → util/models}/index.js +1 -0
  132. package/dist/types/util/models/index.js.map +1 -0
  133. package/dist/types/util/models/interfaces/date-util.interfaces.js +3 -0
  134. package/dist/types/util/models/interfaces/date-util.interfaces.js.map +1 -0
  135. package/dist/types/util/models/interfaces/general.interfaces.d.ts +4 -0
  136. package/dist/types/util/models/interfaces/general.interfaces.js +3 -0
  137. package/dist/types/util/models/interfaces/general.interfaces.js.map +1 -0
  138. package/dist/types/util/models/interfaces/index.d.ts +2 -0
  139. package/dist/types/util/models/interfaces/index.js +19 -0
  140. package/dist/types/util/models/interfaces/index.js.map +1 -0
  141. package/dist/types/{models/interfaces/date-util.js → util/models/types/general.types.js} +1 -1
  142. package/dist/types/util/models/types/general.types.js.map +1 -0
  143. package/dist/types/util/models/types/index.d.ts +1 -0
  144. package/dist/types/util/models/types/index.js +18 -0
  145. package/dist/types/util/models/types/index.js.map +1 -0
  146. package/package.json +1 -1
  147. package/dist/types/models/ExitCode.js.map +0 -1
  148. package/dist/types/models/index.js.map +0 -1
  149. package/dist/types/models/interfaces/date-util.js.map +0 -1
  150. package/dist/types/models/interfaces/index.d.ts +0 -2
  151. package/dist/types/models/interfaces/index.js.map +0 -1
  152. package/dist/types/models/interfaces/payment.d.ts +0 -13
  153. package/dist/types/models/interfaces/payment.js.map +0 -1
  154. package/dist/types/reservations/interfaces/index.d.ts +0 -2
  155. package/dist/types/reservations/interfaces/index.js.map +0 -1
  156. package/dist/types/reservations/interfaces/invoice.d.ts +0 -53
  157. package/dist/types/reservations/interfaces/invoice.js.map +0 -1
  158. package/dist/types/reservations/interfaces/reservation.js +0 -11
  159. package/dist/types/reservations/interfaces/reservation.js.map +0 -1
  160. package/dist/types/util/types/general.js.map +0 -1
  161. package/dist/types/util/types/index.d.ts +0 -1
  162. package/dist/types/util/types/index.js.map +0 -1
  163. /package/dist/types/{models → util/models}/ExitCode.d.ts +0 -0
  164. /package/dist/types/{models → util/models}/ExitCode.js +0 -0
  165. /package/dist/types/{models/interfaces/date-util.d.ts → util/models/interfaces/date-util.interfaces.d.ts} +0 -0
  166. /package/dist/types/util/{types/general.d.ts → models/types/general.types.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.archiveDto = exports.SetStationSubcategoriesDto = exports.GetSubcategoryDto = exports.UpdateSubcategoryDto = exports.CreateSubcategoriesDto = exports.CreateSubcategoryDto = exports.GetBySessionType = exports.GetByCustomerIdDto = exports.GetAllOrganizationAddonsDto = exports.GetByOrgIdInvoiceIdDto = exports.FindByProductUserIdsDto = exports.FindPricesOfProductsDto = exports.FindPriceOfProductDto = void 0;
3
+ exports.GetProductsByTypeQueryDto = exports.GetProductsByTypeDto = exports.archiveDto = exports.SetStationSubcategoriesDto = exports.GetSubcategoryDto = exports.UpdateSubcategoryDto = exports.CreateSubcategoriesDto = exports.CreateSubcategoryDto = exports.GetBySessionType = exports.GetByCustomerIdDto = exports.GetAllOrganizationAddonsDto = exports.GetByOrgIdInvoiceIdDto = exports.FindByProductUserIdsDto = exports.FindPricesOfProductsDto = exports.FindPriceOfProductDto = 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 FindPriceOfProductDto {
@@ -42,4 +42,10 @@ exports.SetStationSubcategoriesDto = SetStationSubcategoriesDto;
42
42
  class archiveDto {
43
43
  }
44
44
  exports.archiveDto = archiveDto;
45
+ class GetProductsByTypeDto extends organization_dto_1.ByOrganizationIdDto {
46
+ }
47
+ exports.GetProductsByTypeDto = GetProductsByTypeDto;
48
+ class GetProductsByTypeQueryDto extends general_dto_1.PaginationQuery {
49
+ }
50
+ exports.GetProductsByTypeQueryDto = GetProductsByTypeQueryDto;
45
51
  //# sourceMappingURL=product-pricing.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAI9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAAG;AAAvE,kEAAuE;AAEvE,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC"}
1
+ {"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAM9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAAG;AAAvE,kEAAuE;AAEvE,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CA4B7D;AA5BD,8DA4BC"}
@@ -4,7 +4,7 @@ import { CreatePaymentPlanDto, PaymentPlanDto } from '../../payment/dto/payment-
4
4
  import { ProductPaymentPlan } from '../../payment/entities/ProductPaymentPlan';
5
5
  import { CreateGroupPricingWithProduct, CreatePriceDto } from '../../pricing/dto/pricing.dto';
6
6
  import { CreateOrUpdateResourceSettingDto } from '../../resource-settings/dto/create-or-update-resource-setting.dto';
7
- import { AddonTimePeriodEnum, PackageProductsRelationTypeEnum, PlatformsEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
7
+ import { ActivityEnum, AddonTimePeriodEnum, PackageProductsRelationTypeEnum, PlatformsEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
8
8
  import { ProductResourceDto } from './product-resource.dto';
9
9
  import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
10
10
  import { Price } from '../../pricing/entities/Price';
@@ -20,6 +20,7 @@ import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.d
20
20
  import { ResourceSettingDto } from '../../resource-settings/dto/resource-setting.dto';
21
21
  import { LineItemDto } from '../../reservations/dto/lineItem.dto';
22
22
  import { Product } from '../entities/Product';
23
+ import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
23
24
  export declare class FindByProductIdDto {
24
25
  productId: number;
25
26
  }
@@ -115,6 +116,8 @@ export declare class GetProductsDto extends PaginationQuery {
115
116
  includeAllData?: boolean;
116
117
  resourceIds?: number[];
117
118
  sports?: number[];
119
+ facilitiesIds?: number[];
120
+ statuses?: ActivityEnum[];
118
121
  }
119
122
  export declare class GetExtraProductDataDto {
120
123
  isPublic?: boolean;
@@ -196,4 +199,5 @@ export declare class DeprecatedProductDto extends BaseProductDto {
196
199
  }
197
200
  export declare class ProductDto extends BaseProductDto {
198
201
  productPaymentPlans?: PaymentPlanDto[];
202
+ pricingSchedules?: IPricingSchedule[];
199
203
  }
@@ -1 +1 @@
1
- {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAsE;AA+BtE,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AAED,MAAa,gBAAgB;CAgF5B;AAhFD,4CAgFC;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;CAoBlD;AApBD,wCAoBC;AAED,MAAa,sBAAsB;CASlC;AATD,wDASC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAIjD;AAJD,4CAIC;AAED,MAAa,cAAc;CA8G1B;AA9GD,wCA8GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAE7C;AAFD,gCAEC"}
1
+ {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAsE;AAkCtE,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AAED,MAAa,gBAAgB;CAgF5B;AAhFD,4CAgFC;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,sBAAsB;CASlC;AATD,wDASC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAIjD;AAJD,4CAIC;AAED,MAAa,cAAc;CA8G1B;AA9GD,wCA8GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAI7C;AAJD,gCAIC"}
@@ -0,0 +1,42 @@
1
+ import { ActivityEnum, ProductPackageLevelEnum, ProductSubTypesEnum, SportsEnum } from '../../services/enums.service';
2
+ import { ResourceDto } from '../../resources/dto/resource.dto';
3
+ import { CreatePriceDto } from '../../pricing/dto/pricing.dto';
4
+ import { CreateRentalProductAddonDto } from './product.dto';
5
+ import { BasicActivityTimesDto } from '../../dto/activityTimes.dto';
6
+ import { PriceTypeEnum } from '../../pricing/types/pricing.enums';
7
+ export declare class CreateRentalProductDto {
8
+ id?: number;
9
+ name: string;
10
+ glCodes?: number[];
11
+ sports: SportsEnum[];
12
+ isPublic?: boolean;
13
+ description?: string;
14
+ quantity?: number;
15
+ isAll?: boolean;
16
+ startDate?: Date;
17
+ endDate?: Date;
18
+ tax?: number;
19
+ isTaxInclusive?: boolean;
20
+ durationMinutes?: number;
21
+ durationDays?: number;
22
+ status?: ActivityEnum;
23
+ level?: ProductPackageLevelEnum;
24
+ productSubType?: ProductSubTypesEnum;
25
+ }
26
+ export declare class CreatePricingWithScheduleDto {
27
+ prices: CreatePriceDto[];
28
+ activityTimes?: BasicActivityTimesDto[];
29
+ }
30
+ export declare class CreateRentalPricesDto {
31
+ type: PriceTypeEnum;
32
+ defaultPricing: CreatePricingWithScheduleDto;
33
+ customPricing?: CreatePricingWithScheduleDto[];
34
+ }
35
+ export declare class CreateRentalProductPackageDto {
36
+ product: CreateRentalProductDto;
37
+ facilitiesIds: number[];
38
+ pricing?: CreateRentalPricesDto;
39
+ resources?: ResourceDto[];
40
+ addons?: CreateRentalProductAddonDto[];
41
+ extraParticipantsPrice?: CreatePriceDto;
42
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateRentalProductPackageDto = exports.CreateRentalPricesDto = exports.CreatePricingWithScheduleDto = exports.CreateRentalProductDto = void 0;
4
+ class CreateRentalProductDto {
5
+ }
6
+ exports.CreateRentalProductDto = CreateRentalProductDto;
7
+ class CreatePricingWithScheduleDto {
8
+ }
9
+ exports.CreatePricingWithScheduleDto = CreatePricingWithScheduleDto;
10
+ class CreateRentalPricesDto {
11
+ }
12
+ exports.CreateRentalPricesDto = CreateRentalPricesDto;
13
+ class CreateRentalProductPackageDto {
14
+ }
15
+ exports.CreateRentalProductPackageDto = CreateRentalProductPackageDto;
16
+ //# sourceMappingURL=rental-product.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rental-product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/rental-product.dto.ts"],"names":[],"mappings":";;;AAOA,MAAa,sBAAsB;CAkClC;AAlCD,wDAkCC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,6BAA6B;CAYzC;AAZD,sEAYC"}
@@ -20,6 +20,7 @@ import { IChildProduct, IResourcesAvailability } from '../../services/interfaces
20
20
  import { ProductResourceDto } from '../dto/product-resource.dto';
21
21
  import { Facility } from '../../entity/Facility';
22
22
  import { ProductStateEnum } from '../types/enums/product.enums';
23
+ import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
23
24
  export declare class Product extends OrganizationConnectionBaseEntity {
24
25
  name: string;
25
26
  quantity: number;
@@ -76,4 +77,5 @@ export declare class Product extends OrganizationConnectionBaseEntity {
76
77
  productsUsers: ProductsUsers[];
77
78
  purchasedResources: PurchasedResource[];
78
79
  facilities: Facility[];
80
+ pricingSchedules?: IPricingSchedule[];
79
81
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;AAmBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAsH5D;AAtHD,0BAsHC"}
1
+ {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;AAoBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAwH5D;AAxHD,0BAwHC"}
@@ -0,0 +1 @@
1
+ export * from './product-pricing.consts';
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./date-util"), exports);
18
- __exportStar(require("./payment"), exports);
17
+ __exportStar(require("./product-pricing.consts"), exports);
19
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
@@ -0,0 +1 @@
1
+ export declare const NO_SCHEDULE_GROUP_ID = "no-schedule";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NO_SCHEDULE_GROUP_ID = void 0;
4
+ exports.NO_SCHEDULE_GROUP_ID = 'no-schedule';
5
+ //# sourceMappingURL=product-pricing.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-pricing.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-pricing.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,aAAa,CAAC"}
@@ -2,3 +2,11 @@ export declare enum ProductStateEnum {
2
2
  VALID = "valid",
3
3
  IN_PROGRESS = "in_progress"
4
4
  }
5
+ export declare enum OrderByProductEnum {
6
+ ID = "id",
7
+ NAME = "name",
8
+ PRICE = "price",
9
+ DURATION = "duration",
10
+ PRODUCT_SUB_TYPE = "productSubType",
11
+ STATUS = "status"
12
+ }
@@ -1,9 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProductStateEnum = void 0;
3
+ exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
4
4
  var ProductStateEnum;
5
5
  (function (ProductStateEnum) {
6
6
  ProductStateEnum["VALID"] = "valid";
7
7
  ProductStateEnum["IN_PROGRESS"] = "in_progress";
8
8
  })(ProductStateEnum = exports.ProductStateEnum || (exports.ProductStateEnum = {}));
9
+ var OrderByProductEnum;
10
+ (function (OrderByProductEnum) {
11
+ OrderByProductEnum["ID"] = "id";
12
+ OrderByProductEnum["NAME"] = "name";
13
+ OrderByProductEnum["PRICE"] = "price";
14
+ OrderByProductEnum["DURATION"] = "duration";
15
+ OrderByProductEnum["PRODUCT_SUB_TYPE"] = "productSubType";
16
+ OrderByProductEnum["STATUS"] = "status";
17
+ })(OrderByProductEnum = exports.OrderByProductEnum || (exports.OrderByProductEnum = {}));
9
18
  //# sourceMappingURL=product.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B"}
1
+ {"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC7B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;AAClB,CAAC,EAPW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAO7B"}
@@ -1,2 +1,3 @@
1
+ export * from './consts';
1
2
  export * from './enums';
2
3
  export * from './interfaces';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./consts"), exports);
17
18
  __exportStar(require("./enums"), exports);
18
19
  __exportStar(require("./interfaces"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
@@ -1,9 +1,34 @@
1
1
  import { QuestionAnswersDto } from '../../../dto/application.dto';
2
+ import { ActivityTimes } from '../../../entity/ActivityTimes';
2
3
  import { Price } from '../../../pricing/entities/Price';
3
4
  import { PurchaseResourceDto } from '../../../purchase/dto/purchase.dto';
5
+ import { ActivityEnum, OrderByEnum, SportsEnum } from '../../../services/enums.service';
6
+ import { IPagination } from '../../../util/models/interfaces/general.interfaces';
7
+ import { OrderByProductEnum } from '../enums/product.enums';
4
8
  export interface IGetCurrentPricesOptions {
5
9
  userId?: number;
6
10
  answers?: QuestionAnswersDto[];
7
11
  prefetchedPrices?: Price[];
8
12
  resources?: PurchaseResourceDto[];
9
13
  }
14
+ export interface IGetProductsByTypeOptions extends IPagination {
15
+ productIds?: number[];
16
+ includeResources?: boolean;
17
+ includeArchived?: boolean;
18
+ includeCurrentPrice?: boolean;
19
+ includePricesSchedule?: boolean;
20
+ facilitiesIds?: number[];
21
+ resourcesIds?: number[];
22
+ excludeResourceIds?: number[];
23
+ excludeProductIds?: number[];
24
+ statuses?: ActivityEnum[];
25
+ sports?: SportsEnum[];
26
+ search?: string;
27
+ sortBy?: OrderByProductEnum;
28
+ order?: OrderByEnum;
29
+ }
30
+ export interface IPricingSchedule {
31
+ groupId: string;
32
+ prices: Price[];
33
+ activityTimes: ActivityTimes[];
34
+ }
@@ -4,7 +4,7 @@ import { BaseNotificationDto } from '../../notifications/dto/backoffice.notify.d
4
4
  import { ByOrganizationIdDto, OptionalOrganizationIdDto } from '../../organization/dto/organization.dto';
5
5
  import { ByProgramDto, UpdateProgramOptionsDto } from '../../programs/dto/program.dto';
6
6
  import { MaintenanceDto } from '../../reservations/dto/maintenance.dto';
7
- import { TimeSlotConflicts } from '../../reservations/interfaces/reservation';
7
+ import { ITimeSlotConflicts } from '../../reservations/types/interfaces/reservation.interfaces';
8
8
  import { CreateOrUpdateResourceSettingDto } from '../../resource-settings/dto/create-or-update-resource-setting.dto';
9
9
  import { GenderEnum, LevelOfPlayEnum, OrderByEnum, ProductTypesEnum, ProgramSeasonTypesEnum, ProgramTypesEnum, PublishingStatusEnum, RegistrationConstraintPeriodTypeEnum, ResourceNameTypeEnum, SlotTypeEnum, SportsEnum } from '../../services/enums.service';
10
10
  export declare class FindSessionsFiltersDto {
@@ -229,7 +229,7 @@ export declare class UpdateProgramSeasonOptionsDto extends UpdateProgramOptionsD
229
229
  }
230
230
  export declare class EventsAndConflictsDto {
231
231
  events: Event[];
232
- conflicts: TimeSlotConflicts[];
232
+ conflicts: ITimeSlotConflicts[];
233
233
  meta: PaginationMetaDto;
234
234
  }
235
235
  export declare class NotifyEventAttendeesDto extends BaseNotificationDto {
@@ -81,8 +81,7 @@ export declare class BookingData {
81
81
  platform: PlatformsEnum;
82
82
  shiftId?: number;
83
83
  paymentData?: PurchasePaymentDto;
84
- amountToPay: number;
85
- total: number;
84
+ amountToPay?: number;
86
85
  purchasingUserId: number;
87
86
  }
88
87
  export declare class BookingDto extends BookingData {
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAI9E,kEAAwF;AAsBxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAa,cAAc;CAqD1B;AArDD,wCAqDC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AACD,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAYvB;AAZD,kCAYC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0CAA2C,SAAQ,6BAAe;CAY9E;AAZD,gGAYC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAUtE;AAVD,gFAUC;AAED,MAAa,+BAA+B;IAA5C;QAKC,UAAK,GAAW,uBAAuB,CAAC;IAqBzC,CAAC;CAAA;AA1BD,0EA0BC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,iBAAkB,SAAQ,oBAAoB;CAE1D;AAFD,8CAEC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAEtD;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,oBAAoB;CAEnE;AAFD,gEAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,YAAa,SAAQ,cAAc;CAE/C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,oBAAqB,SAAQ,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"}
1
+ {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAI9E,kEAAwF;AAsBxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAa,cAAc;CAqD1B;AArDD,wCAqDC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AACD,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0CAA2C,SAAQ,6BAAe;CAY9E;AAZD,gGAYC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAUtE;AAVD,gFAUC;AAED,MAAa,+BAA+B;IAA5C;QAKC,UAAK,GAAW,uBAAuB,CAAC;IAqBzC,CAAC;CAAA;AA1BD,0EA0BC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,iBAAkB,SAAQ,oBAAoB;CAE1D;AAFD,8CAEC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAEtD;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,oBAAoB;CAEnE;AAFD,gEAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,YAAa,SAAQ,cAAc;CAE/C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,oBAAqB,SAAQ,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"}
@@ -1,6 +1,6 @@
1
1
  import { Product } from '../../product-pricing/entities/Product';
2
2
  import { DurationUnitTypesEnum, MaintenanceTimingEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotDurationTypeEnum, SlotTypeEnum } from '../../services/enums.service';
3
- import { OverridePriceMeta } from '../interfaces/reservation';
3
+ import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
4
4
  import { AddonDto } from './addon.dto';
5
5
  import { MaintenanceDto } from './maintenance.dto';
6
6
  export declare class SlotDateTimeAndSpace {
@@ -23,9 +23,9 @@ export declare class SlotDto extends SlotDateTimeAndSpace {
23
23
  privateNotes?: string;
24
24
  slotType: SlotTypeEnum;
25
25
  product?: Product;
26
- priceOverrideMeta?: OverridePriceMeta;
26
+ priceOverrideMeta?: IOverridePriceMeta;
27
27
  addonPriceOverrideMeta?: {
28
- [addonProductId: number]: OverridePriceMeta;
28
+ [addonProductId: number]: IOverridePriceMeta;
29
29
  };
30
30
  addonProducts?: Product[];
31
31
  segmentId?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAaA,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,OAAQ,SAAQ,oBAAoB;CAuFhD;AAvFD,0BAuFC;AAED,MAAa,WAAW;CAevB;AAfD,kCAeC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC"}
1
+ {"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAcA,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,OAAQ,SAAQ,oBAAoB;CAuFhD;AAvFD,0BAuFC;AAED,MAAa,WAAW;CAevB;AAfD,kCAeC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC"}
@@ -6,7 +6,7 @@ import { ProductsUsers } from '../../entity/ProductsUsers';
6
6
  import { Product } from '../../product-pricing/entities/Product';
7
7
  import { ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../../services/enums.service';
8
8
  import { Resource } from '../../resources/entities/Resource';
9
- import { AddonMetadata } from '../interfaces/reservation';
9
+ import { IAddonMetadata } from '../types/interfaces/reservation.interfaces';
10
10
  import { Addon } from './Addon';
11
11
  import { Reservation } from './Reservations';
12
12
  import { Segment } from './Segments';
@@ -35,7 +35,7 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
35
35
  product?: Product;
36
36
  addons: Addon[];
37
37
  addonsProductUserIds?: number[] | null;
38
- addonsMetadata: AddonMetadata[];
38
+ addonsMetadata: IAddonMetadata[];
39
39
  segmentId: number;
40
40
  segment: Segment;
41
41
  eventId: number;
@@ -1,3 +1,3 @@
1
1
  export * from './dto';
2
2
  export * from './entities';
3
- export * from './interfaces';
3
+ export * from './types';
@@ -16,5 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dto"), exports);
18
18
  __exportStar(require("./entities"), exports);
19
- __exportStar(require("./interfaces"), exports);
19
+ __exportStar(require("./types"), exports);
20
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/reservations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/reservations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './reservation.consts';
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./invoice"), exports);
18
- __exportStar(require("./reservation"), exports);
17
+ __exportStar(require("./reservation.consts"), exports);
19
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
@@ -0,0 +1,5 @@
1
+ import { PriceFieldEnum } from '../../../services/enums.service';
2
+ export declare const RESOURCE_TOTAL_FIELD = PriceFieldEnum.TOTAL_PRICE;
3
+ export declare const DEFAULT_ADDON_QUANTITY = 1;
4
+ export declare const PUBLIC_NOTES_LIMIT = 500;
5
+ export declare const PRIVATE_NOTES_LIMIT = 500;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.DEFAULT_ADDON_QUANTITY = exports.RESOURCE_TOTAL_FIELD = void 0;
4
+ const enums_service_1 = require("../../../services/enums.service");
5
+ exports.RESOURCE_TOTAL_FIELD = enums_service_1.PriceFieldEnum.TOTAL_PRICE;
6
+ exports.DEFAULT_ADDON_QUANTITY = 1;
7
+ exports.PUBLIC_NOTES_LIMIT = 500;
8
+ exports.PRIVATE_NOTES_LIMIT = 500;
9
+ //# sourceMappingURL=reservation.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAiE;AAEpD,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAC3B,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './invoice.enums';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./general"), exports);
17
+ __exportStar(require("./invoice.enums"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
@@ -0,0 +1,7 @@
1
+ export declare enum LineItemResourceEnum {
2
+ SEGMENTS = "segments",
3
+ SERIES = "series",
4
+ SLOTS = "slots",
5
+ RESERVATION_ADDONS = "reservation_addons",
6
+ SLOT_ADDONS = "slot_addons"
7
+ }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LineItemResourceEnum = exports.DEFAULT_QUANTITY = void 0;
4
- exports.DEFAULT_QUANTITY = 1;
3
+ exports.LineItemResourceEnum = void 0;
5
4
  var LineItemResourceEnum;
6
5
  (function (LineItemResourceEnum) {
7
6
  LineItemResourceEnum["SEGMENTS"] = "segments";
@@ -10,4 +9,4 @@ var LineItemResourceEnum;
10
9
  LineItemResourceEnum["RESERVATION_ADDONS"] = "reservation_addons";
11
10
  LineItemResourceEnum["SLOT_ADDONS"] = "slot_addons";
12
11
  })(LineItemResourceEnum = exports.LineItemResourceEnum || (exports.LineItemResourceEnum = {}));
13
- //# sourceMappingURL=invoice.js.map
12
+ //# sourceMappingURL=invoice.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoice.enums.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/invoice.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC/B,6CAAqB,CAAA;IACrB,yCAAiB,CAAA;IACjB,uCAAe,CAAA;IACf,iEAAyC,CAAA;IACzC,mDAA2B,CAAA;AAC5B,CAAC,EANW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAM/B"}
@@ -0,0 +1,3 @@
1
+ export * from './consts';
2
+ export * from './enums';
3
+ export * from './interfaces';
@@ -0,0 +1,20 @@
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("./consts"), exports);
18
+ __exportStar(require("./enums"), exports);
19
+ __exportStar(require("./interfaces"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
@@ -0,0 +1,2 @@
1
+ export * from './invoice.interfaces';
2
+ export * from './reservation.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("./invoice.interfaces"), exports);
18
+ __exportStar(require("./reservation.interfaces"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAAyC"}
@@ -0,0 +1,45 @@
1
+ import { Invoice } from '../../../entity/Invoice';
2
+ import { Product } from '../../../product-pricing/entities/Product';
3
+ import { InvoiceDto } from '../../dto/invoice.dto';
4
+ import { LineItemDto } from '../../dto/lineItem.dto';
5
+ import { ProductPricesDto } from '../../dto/reservation.dto';
6
+ import { SlotDto } from '../../dto/slot.dto';
7
+ import { TDtoResource, TResource } from './reservation.interfaces';
8
+ export type TSlotAndType = {
9
+ type: 'slots' | 'slot_addons';
10
+ slotsForProduct: {
11
+ [productId: number]: {
12
+ product: Product;
13
+ slots: SlotDto[];
14
+ };
15
+ };
16
+ };
17
+ export interface ILineItemResource {
18
+ type: 'segments' | 'series' | 'slots' | 'reservation_addons' | 'slot_addons';
19
+ values: TResource[];
20
+ dtoValues: TDtoResource[];
21
+ }
22
+ export interface IGeneratedLineItems {
23
+ lineItems: LineItemDto[];
24
+ childItemToParent: Map<LineItemDto, LineItemDto>;
25
+ }
26
+ export interface IOverridePricingResult {
27
+ overrideProductsPricing: IOverrideProductsPricing;
28
+ totalPrice?: number;
29
+ }
30
+ export interface IOverrideLineItemPrice {
31
+ invoice: InvoiceDto;
32
+ lineItem: LineItemDto;
33
+ ratio: number;
34
+ overrideProductsPricing: IOverrideProductsPricing;
35
+ isLastLineItem?: boolean;
36
+ priceLeft?: number;
37
+ }
38
+ export interface IOverrideProductsPricing {
39
+ [productInfo: string]: ProductPricesDto;
40
+ }
41
+ export interface IInvoiceReservationOptions {
42
+ invoice?: Invoice;
43
+ skipUpdateReservationPrice?: boolean;
44
+ skipUpdatePaymentStatuses?: boolean;
45
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=invoice.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":""}