@bondsports/types 2.1.72 → 2.1.73

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) 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/SlotHistory.d.ts +2 -2
  6. package/dist/types/entity/user-payment-method.d.ts +1 -0
  7. package/dist/types/entity/user-payment-method.js.map +1 -1
  8. package/dist/types/import/dto/user-payment-method.dto.d.ts +1 -0
  9. package/dist/types/import/dto/user-payment-method.dto.js.map +1 -1
  10. package/dist/types/index.d.ts +0 -1
  11. package/dist/types/index.js +0 -1
  12. package/dist/types/index.js.map +1 -1
  13. package/dist/types/invoice/types/consts/index.d.ts +1 -0
  14. package/dist/types/invoice/types/consts/index.js +1 -0
  15. package/dist/types/invoice/types/consts/index.js.map +1 -1
  16. package/dist/types/invoice/types/consts/invoice.interfaces.d.ts +14 -0
  17. package/dist/types/{models/interfaces/payment.js → invoice/types/consts/invoice.interfaces.js} +1 -1
  18. package/dist/types/invoice/types/consts/invoice.interfaces.js.map +1 -0
  19. package/dist/types/payment/dto/connected-resources.d.ts +13 -0
  20. package/dist/types/payment/dto/connected-resources.js +10 -0
  21. package/dist/types/payment/dto/connected-resources.js.map +1 -0
  22. package/dist/types/payment/dto/index.d.ts +1 -0
  23. package/dist/types/payment/dto/index.js +1 -0
  24. package/dist/types/payment/dto/index.js.map +1 -1
  25. package/dist/types/payment/dto/payment-method.dto.d.ts +25 -0
  26. package/dist/types/payment/dto/payment-method.dto.js +11 -1
  27. package/dist/types/payment/dto/payment-method.dto.js.map +1 -1
  28. package/dist/types/payment/types/enums/connected-resources.enums.d.ts +4 -0
  29. package/dist/types/payment/types/enums/connected-resources.enums.js +9 -0
  30. package/dist/types/payment/types/enums/connected-resources.enums.js.map +1 -0
  31. package/dist/types/payment/types/enums/index.d.ts +1 -0
  32. package/dist/types/payment/types/enums/index.js +1 -0
  33. package/dist/types/payment/types/enums/index.js.map +1 -1
  34. package/dist/types/payment/types/interfaces/connected-resources.interfaces.d.ts +2 -0
  35. package/dist/types/payment/types/interfaces/connected-resources.interfaces.js +3 -0
  36. package/dist/types/payment/types/interfaces/connected-resources.interfaces.js.map +1 -0
  37. package/dist/types/payment/types/interfaces/index.d.ts +1 -0
  38. package/dist/types/payment/types/interfaces/index.js +1 -0
  39. package/dist/types/payment/types/interfaces/index.js.map +1 -1
  40. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +13 -1
  41. package/dist/types/payment/types/interfaces/void.interfaces.d.ts +1 -1
  42. package/dist/types/pricing/dto/pricing.dto.d.ts +0 -4
  43. package/dist/types/pricing/dto/pricing.dto.js.map +1 -1
  44. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +22 -1
  45. package/dist/types/product-pricing/dto/product-pricing.dto.js +7 -1
  46. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  47. package/dist/types/product-pricing/dto/product.dto.d.ts +5 -1
  48. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  49. package/dist/types/product-pricing/dto/rental-product.dto.d.ts +12 -3
  50. package/dist/types/product-pricing/dto/rental-product.dto.js +7 -1
  51. package/dist/types/product-pricing/dto/rental-product.dto.js.map +1 -1
  52. package/dist/types/product-pricing/entities/Product.d.ts +2 -0
  53. package/dist/types/product-pricing/entities/Product.js.map +1 -1
  54. package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
  55. package/dist/types/{models/interfaces → product-pricing/types/consts}/index.js +1 -2
  56. package/dist/types/product-pricing/types/consts/index.js.map +1 -0
  57. package/dist/types/product-pricing/types/consts/product-pricing.consts.d.ts +1 -0
  58. package/dist/types/product-pricing/types/consts/product-pricing.consts.js +5 -0
  59. package/dist/types/product-pricing/types/consts/product-pricing.consts.js.map +1 -0
  60. package/dist/types/product-pricing/types/enums/product.enums.d.ts +8 -0
  61. package/dist/types/product-pricing/types/enums/product.enums.js +10 -1
  62. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  63. package/dist/types/product-pricing/types/index.d.ts +1 -0
  64. package/dist/types/product-pricing/types/index.js +1 -0
  65. package/dist/types/product-pricing/types/index.js.map +1 -1
  66. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +25 -0
  67. package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +2 -2
  68. package/dist/types/reservations/dto/reservation.dto.d.ts +1 -2
  69. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  70. package/dist/types/reservations/dto/slot.dto.d.ts +3 -3
  71. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  72. package/dist/types/reservations/entities/Slots.d.ts +2 -2
  73. package/dist/types/reservations/index.d.ts +1 -1
  74. package/dist/types/reservations/index.js +1 -1
  75. package/dist/types/reservations/index.js.map +1 -1
  76. package/dist/types/reservations/types/consts/index.d.ts +1 -0
  77. package/dist/types/reservations/{interfaces → types/consts}/index.js +1 -2
  78. package/dist/types/reservations/types/consts/index.js.map +1 -0
  79. package/dist/types/reservations/types/consts/reservation.consts.d.ts +5 -0
  80. package/dist/types/reservations/types/consts/reservation.consts.js +9 -0
  81. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -0
  82. package/dist/types/reservations/types/enums/index.d.ts +1 -0
  83. package/dist/types/{util/types → reservations/types/enums}/index.js +1 -1
  84. package/dist/types/reservations/types/enums/index.js.map +1 -0
  85. package/dist/types/reservations/types/enums/invoice.enums.d.ts +7 -0
  86. package/dist/types/reservations/{interfaces/invoice.js → types/enums/invoice.enums.js} +2 -3
  87. package/dist/types/reservations/types/enums/invoice.enums.js.map +1 -0
  88. package/dist/types/reservations/types/index.d.ts +3 -0
  89. package/dist/types/reservations/types/index.js +20 -0
  90. package/dist/types/reservations/types/index.js.map +1 -0
  91. package/dist/types/reservations/types/interfaces/index.d.ts +2 -0
  92. package/dist/types/reservations/types/interfaces/index.js +19 -0
  93. package/dist/types/reservations/types/interfaces/index.js.map +1 -0
  94. package/dist/types/reservations/types/interfaces/invoice.interfaces.d.ts +45 -0
  95. package/dist/types/{util/types/general.js → reservations/types/interfaces/invoice.interfaces.js} +1 -1
  96. package/dist/types/reservations/types/interfaces/invoice.interfaces.js.map +1 -0
  97. package/dist/types/reservations/{interfaces/reservation.d.ts → types/interfaces/reservation.interfaces.d.ts} +71 -71
  98. package/dist/types/reservations/types/interfaces/reservation.interfaces.js +7 -0
  99. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -0
  100. package/dist/types/resources/dto/resource.dto.d.ts +1 -0
  101. package/dist/types/resources/dto/resource.dto.js.map +1 -1
  102. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +2 -0
  103. package/dist/types/services/interfaces.service.d.ts +2 -2
  104. package/dist/types/util/index.d.ts +1 -1
  105. package/dist/types/util/index.js +1 -1
  106. package/dist/types/util/index.js.map +1 -1
  107. package/dist/types/util/models/ExitCode.js.map +1 -0
  108. package/dist/types/{models → util/models}/index.d.ts +1 -0
  109. package/dist/types/{models → util/models}/index.js +1 -0
  110. package/dist/types/util/models/index.js.map +1 -0
  111. package/dist/types/util/models/interfaces/date-util.interfaces.js +3 -0
  112. package/dist/types/util/models/interfaces/date-util.interfaces.js.map +1 -0
  113. package/dist/types/util/models/interfaces/general.interfaces.d.ts +4 -0
  114. package/dist/types/util/models/interfaces/general.interfaces.js +3 -0
  115. package/dist/types/util/models/interfaces/general.interfaces.js.map +1 -0
  116. package/dist/types/util/models/interfaces/index.d.ts +2 -0
  117. package/dist/types/util/models/interfaces/index.js +19 -0
  118. package/dist/types/util/models/interfaces/index.js.map +1 -0
  119. package/dist/types/{models/interfaces/date-util.js → util/models/types/general.types.js} +1 -1
  120. package/dist/types/util/models/types/general.types.js.map +1 -0
  121. package/dist/types/util/models/types/index.d.ts +1 -0
  122. package/dist/types/util/models/types/index.js +18 -0
  123. package/dist/types/util/models/types/index.js.map +1 -0
  124. package/package.json +1 -1
  125. package/dist/types/models/ExitCode.js.map +0 -1
  126. package/dist/types/models/index.js.map +0 -1
  127. package/dist/types/models/interfaces/date-util.js.map +0 -1
  128. package/dist/types/models/interfaces/index.d.ts +0 -2
  129. package/dist/types/models/interfaces/index.js.map +0 -1
  130. package/dist/types/models/interfaces/payment.d.ts +0 -13
  131. package/dist/types/models/interfaces/payment.js.map +0 -1
  132. package/dist/types/reservations/interfaces/index.d.ts +0 -2
  133. package/dist/types/reservations/interfaces/index.js.map +0 -1
  134. package/dist/types/reservations/interfaces/invoice.d.ts +0 -53
  135. package/dist/types/reservations/interfaces/invoice.js.map +0 -1
  136. package/dist/types/reservations/interfaces/reservation.js +0 -11
  137. package/dist/types/reservations/interfaces/reservation.js.map +0 -1
  138. package/dist/types/util/types/general.js.map +0 -1
  139. package/dist/types/util/types/index.d.ts +0 -1
  140. package/dist/types/util/types/index.js.map +0 -1
  141. /package/dist/types/{models → util/models}/ExitCode.d.ts +0 -0
  142. /package/dist/types/{models → util/models}/ExitCode.js +0 -0
  143. /package/dist/types/{models/interfaces/date-util.d.ts → util/models/interfaces/date-util.interfaces.d.ts} +0 -0
  144. /package/dist/types/util/{types/general.d.ts → models/types/general.types.d.ts} +0 -0
@@ -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;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DAMC;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
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=general.js.map
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":""}