@bondsports/types 2.5.25 → 2.5.26-squad-b-1

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 (38) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/dto/cart-item-public.dto.d.ts +2 -0
  3. package/dist/types/cart/dto/cart-item-public.dto.js.map +1 -1
  4. package/dist/types/cart/dto/cart-item.dto.d.ts +1 -0
  5. package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
  6. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +60 -1
  7. package/dist/types/future-installments/entities/future-installment.entity.d.ts +3 -0
  8. package/dist/types/future-installments/entities/future-installment.entity.js.map +1 -1
  9. package/dist/types/product-pricing/types/enums/product.enums.d.ts +15 -0
  10. package/dist/types/product-pricing/types/enums/product.enums.js +17 -1
  11. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  12. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +4 -0
  13. package/dist/types/program-portals/types/classes/program-portal-options.class.d.ts +2 -1
  14. package/dist/types/program-portals/types/classes/program-portal-options.class.js.map +1 -1
  15. package/dist/types/program-portals/types/classes/program-portal.class.d.ts +2 -0
  16. package/dist/types/program-portals/types/classes/program-portal.class.js.map +1 -1
  17. package/dist/types/program-portals/types/dto/program-portals.dto.d.ts +2 -1
  18. package/dist/types/program-portals/types/dto/program-portals.dto.js.map +1 -1
  19. package/dist/types/program-portals/types/dto/public-program-portals.dto.d.ts +7 -1
  20. package/dist/types/program-portals/types/dto/public-program-portals.dto.js.map +1 -1
  21. package/dist/types/program-portals/types/enums/program-portals.enums.d.ts +4 -0
  22. package/dist/types/program-portals/types/enums/program-portals.enums.js +6 -1
  23. package/dist/types/program-portals/types/enums/program-portals.enums.js.map +1 -1
  24. package/dist/types/programs/dto/program-backoffice.dto.d.ts +1 -0
  25. package/dist/types/programs/dto/program-backoffice.dto.js.map +1 -1
  26. package/dist/types/programs/dto/session-public.dto.d.ts +21 -1
  27. package/dist/types/programs/dto/session-public.dto.js +11 -1
  28. package/dist/types/programs/dto/session-public.dto.js.map +1 -1
  29. package/dist/types/programs/types/interfaces/program.interfaces.d.ts +2 -0
  30. package/dist/types/programs-seasons/types/interfaces/program-session.interfaces.d.ts +9 -0
  31. package/dist/types/purchase/dto/purchase.dto.d.ts +6 -0
  32. package/dist/types/purchase/dto/purchase.dto.js +4 -1
  33. package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
  34. package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +21 -2
  35. package/dist/types/types/enums/gender.enums.d.ts +4 -0
  36. package/dist/types/types/enums/gender.enums.js +6 -1
  37. package/dist/types/types/enums/gender.enums.js.map +1 -1
  38. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import { PaymentPlanDto } from '../../payment/dto/payment-plan.dto';
1
2
  import { BasePurchaseResourceDto } from '../../purchase/dto/purchase.dto';
2
3
  import { TimeSlotDto } from '../../reservations/dto/slot.dto';
3
4
  import { BaseAddCartItemDto, BaseCartItemDto, CartItemDto } from './cart-item.dto';
@@ -11,6 +12,7 @@ export declare class PublicCartItemDto extends CartItemDto {
11
12
  children?: PublicCartItemDto[];
12
13
  slots?: TimeSlotDto[];
13
14
  downpayment?: number;
15
+ paymentPlan?: PaymentPlanDto | null;
14
16
  requiredProductIds?: number[];
15
17
  }
16
18
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"cart-item-public.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item-public.dto.ts"],"names":[],"mappings":";;;AACA,kEAA0E;AAQ1E,mDAAmF;AAEnF;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,sCAAuB;CAAG;AAAzE,8DAAyE;AAEzE,MAAa,iBAAkB,SAAQ,2BAAW;CAQjD;AARD,8CAQC;AAED;;;;;;GAMG;AACH,MAAa,oBAAqB,SAAQ,kCAAkB;CAI3D;AAJD,oDAIC;AAED;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,+BAAe;CAI3D;AAJD,0DAIC"}
1
+ {"version":3,"file":"cart-item-public.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item-public.dto.ts"],"names":[],"mappings":";;;AAEA,kEAA0E;AAQ1E,mDAAmF;AAEnF;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,sCAAuB;CAAG;AAAzE,8DAAyE;AAEzE,MAAa,iBAAkB,SAAQ,2BAAW;CAUjD;AAVD,8CAUC;AAED;;;;;;GAMG;AACH,MAAa,oBAAqB,SAAQ,kCAAkB;CAI3D;AAJD,oDAIC;AAED;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,+BAAe;CAI3D;AAJD,0DAIC"}
@@ -54,6 +54,7 @@ export declare class CartItemDto extends SimpleCartItemDto {
54
54
  parentId?: number;
55
55
  price: number;
56
56
  subtotal?: number;
57
+ totalPrice?: number;
57
58
  unitPrice?: number;
58
59
  status: CartStatusEnum;
59
60
  errors?: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"cart-item.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item.dto.ts"],"names":[],"mappings":";;;AAEA,8EAAoF;AAgBpF,MAAa,UAAW,SAAQ,4CAAyB;CAYxD;AAZD,gCAYC;AAED,MAAa,eAAgB,SAAQ,4CAAyB;CAsB7D;AAtBD,0CAsBC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,iBAAkB,SAAQ,4CAAyB;CAI/D;AAJD,8CAIC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CA8CjD;AA9CD,kCA8CC;AAED;;;;;GAKG;AACH,MAAa,eAAe;CAO3B;AAPD,0CAOC;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAGrD;AAHD,8CAGC;AAED;;;;;GAKG;AACH,MAAa,kBAAmB,SAAQ,eAAe;CAMtD;AAND,gDAMC;AAED,MAAa,cAAe,SAAQ,kBAAkB;CAQrD;AARD,wCAQC"}
1
+ {"version":3,"file":"cart-item.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item.dto.ts"],"names":[],"mappings":";;;AAEA,8EAAoF;AAgBpF,MAAa,UAAW,SAAQ,4CAAyB;CAYxD;AAZD,gCAYC;AAED,MAAa,eAAgB,SAAQ,4CAAyB;CAsB7D;AAtBD,0CAsBC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,iBAAkB,SAAQ,4CAAyB;CAI/D;AAJD,8CAIC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAgDjD;AAhDD,kCAgDC;AAED;;;;;GAKG;AACH,MAAa,eAAe;CAO3B;AAPD,0CAOC;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAGrD;AAHD,8CAGC;AAED;;;;;GAKG;AACH,MAAa,kBAAmB,SAAQ,eAAe;CAMtD;AAND,gDAMC;AAED,MAAa,cAAe,SAAQ,kBAAkB;CAQrD;AARD,wCAQC"}
@@ -1,10 +1,14 @@
1
1
  import { ActivityTimes } from '../../../activity-times/entities/activity-times.entity';
2
2
  import { UserAnswersDto } from '../../../applications/dto/application.dto';
3
3
  import { Invoice } from '../../../invoice/entities/invoice.entity';
4
+ import { ScheduledPaymentDto } from '../../../payment/dto/payment-plan.dto';
5
+ import { ProductPaymentPlan } from '../../../product-pricing/entities/product-payment-plan.entity';
4
6
  import { Product } from '../../../product-pricing/entities/product.entity';
7
+ import { StaleExternalValidationPricingEnum } from '../../../product-pricing/types/enums/product.enums';
5
8
  import { IPricesOfProductsResults } from '../../../product-pricing/types/interfaces/product-pricing.interfaces';
6
9
  import { IResource } from '../../../product-resources/types/interfaces/product-resource.interfaces';
7
- import { IPurchaseResult } from '../../../purchase/types/interfaces/purchase.interfaces';
10
+ import { BasicPurchaseDto } from '../../../purchase/dto/purchase.dto';
11
+ import { IPurchasePayment, IPurchaseResult } from '../../../purchase/types/interfaces/purchase.interfaces';
8
12
  import { Reservation } from '../../../reservations/entities/reservation.entity';
9
13
  import { CurrencyEnum } from '../../../types/enums/currency.enums';
10
14
  import { PlatformsEnum } from '../../../types/enums/platform.enums';
@@ -70,6 +74,8 @@ export interface ISkipCartValidations {
70
74
  export interface IValidateCartOptions extends ISkipCartValidations {
71
75
  onErrorCallback?: (error: Error, ...args: unknown[]) => void;
72
76
  overridePrice?: boolean;
77
+ /** How pricing treats a stale `valid` external validation; defaults to asking the provider again. */
78
+ staleExternalValidationPricing?: StaleExternalValidationPricingEnum;
73
79
  throwError?: boolean;
74
80
  }
75
81
  export interface ICreateCartOptions extends IValidateCartOptions {
@@ -79,6 +85,13 @@ export interface ICreateCartOptions extends IValidateCartOptions {
79
85
  skipOnMissingProduct?: boolean;
80
86
  skipSave?: boolean;
81
87
  }
88
+ export interface IGetCartCurrentPricesParams {
89
+ cart: Cart;
90
+ productsDict: {
91
+ [key: number]: Product;
92
+ };
93
+ options: IValidateCartOptions;
94
+ }
82
95
  export interface IValidateCartResult {
83
96
  currentPrices: IPricesOfProductsResults[];
84
97
  productsDict?: {
@@ -157,6 +170,52 @@ export interface IRecalculateCartOptions {
157
170
  recalculateDiscounts?: boolean;
158
171
  skipSave?: boolean;
159
172
  }
173
+ export interface IPurchaseCartParams {
174
+ organizationId: number;
175
+ amountToPay: number;
176
+ cart: Cart;
177
+ installments?: ScheduledPaymentDto[];
178
+ onBeforeCharge?: (invoice: Invoice) => Promise<void>;
179
+ paymentInfo: IPurchasePayment;
180
+ }
181
+ export interface IRegistrationSchedulesParams {
182
+ organizationId: number;
183
+ cart: Cart;
184
+ purchaseData: BasicPurchaseDto;
185
+ }
186
+ export interface ISchedulesForPurchaseParams extends IRegistrationSchedulesParams {
187
+ paymentInfo: IPurchasePayment;
188
+ }
189
+ export interface IEnsureChargeableMethodParams {
190
+ organizationId: number;
191
+ installments: ScheduledPaymentDto[];
192
+ paymentInfo: IPurchasePayment;
193
+ purchaseData: BasicPurchaseDto;
194
+ }
195
+ export interface IAssertPaymentPlanAmountsParams {
196
+ todayByCartItemId: Map<number, number>;
197
+ amountToPay: number;
198
+ nonPlanDue: number;
199
+ plannedItems: CartItem[];
200
+ }
201
+ export interface IScheduleForRegistrationParams {
202
+ organizationId: number;
203
+ cartItem: CartItem;
204
+ requestedInstallmentCount?: number;
205
+ today: number;
206
+ }
207
+ export interface IRollingInstallmentCountParams {
208
+ cartItemId: number;
209
+ plan: ProductPaymentPlan;
210
+ requestedInstallmentCount?: number;
211
+ }
212
+ export interface IPaymentPlanCalculationParams {
213
+ organizationId: number;
214
+ amountToSplit: number;
215
+ months?: number;
216
+ plan: ProductPaymentPlan;
217
+ today: number;
218
+ }
160
219
  export interface ISendCartConfirmationEmailsParams {
161
220
  amountToPay: number;
162
221
  cart?: Cart;
@@ -2,6 +2,7 @@ import { CustomerMerge } from '../../customers-merge/entities/customer-merge.ent
2
2
  import { OrganizationConnectionBaseEntity } from '../../entity/organization-connection-base-entity';
3
3
  import { Fee } from '../../fee/entities/fee.entity';
4
4
  import { Invoice } from '../../invoice/entities/invoice.entity';
5
+ import { ProductsUsers } from '../../invoice/entities/products-users.entity';
5
6
  import { UserPaymentMethod } from '../../payment-methods/entities/user-payment-method.entity';
6
7
  import { PaymentFailure } from '../../payment/entities/payment-failure.entity';
7
8
  import { Payment } from '../../payment/entities/payment.entity';
@@ -10,6 +11,8 @@ export declare class FutureInstallment extends OrganizationConnectionBaseEntity
10
11
  userId: number;
11
12
  invoiceId: number;
12
13
  invoice: Invoice;
14
+ productUserId?: number;
15
+ productUser?: ProductsUsers;
13
16
  paymentMethodId?: number;
14
17
  paymentMethod: UserPaymentMethod;
15
18
  token?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"future-installment.entity.js","sourceRoot":"","sources":["../../../../src/types/future-installments/entities/future-installment.entity.ts"],"names":[],"mappings":";;;AAGA,0GAAoG;AAQpG,MAAa,iBAAkB,SAAQ,sEAAgC;CAkDtE;AAlDD,8CAkDC"}
1
+ {"version":3,"file":"future-installment.entity.js","sourceRoot":"","sources":["../../../../src/types/future-installments/entities/future-installment.entity.ts"],"names":[],"mappings":";;;AAGA,0GAAoG;AASpG,MAAa,iBAAkB,SAAQ,sEAAgC;CAsDtE;AAtDD,8CAsDC"}
@@ -126,3 +126,18 @@ export declare enum QuantityOperationsEnum {
126
126
  INCREMENT = "increment",
127
127
  DECREMENT = "decrement"
128
128
  }
129
+ /**
130
+ * How pricing treats an attendee's `valid` external validation that was confirmed more than the validity window ago.
131
+ */
132
+ export declare enum StaleExternalValidationPricingEnum {
133
+ /** Full price, without asking the provider. The open price routes. */
134
+ FULL_PRICE = "full_price",
135
+ /** Asks the provider again and stores its answer. Cart, waitlist and reservation pricing. */
136
+ ASK_PROVIDER = "ask_provider",
137
+ /**
138
+ * Finalize. Member price only on a line the cart saved with that member group; the purchase re-check that follows asks
139
+ * the provider and refuses with its 409. A line saved at full price stays at full price, so a shopper who accepted full
140
+ * price while the provider was down can always complete the purchase.
141
+ */
142
+ PURCHASE_RECHECK = "purchase_recheck"
143
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QuantityOperationsEnum = exports.PriceFieldEnum = exports.ProductPackageLevelEnum = exports.DiscountMethodsEnum = exports.PARTICIPANT_SUBTYPES_EXCLUDED_FROM_USER_VALIDATION = exports.FOLDERED_REGISTRATION_VALID_PRODUCT_SUBTYPES = exports.PROGRAM_LEAGUE_AND_TOURNAMENT_V2_PRODUCT_SUBTYPES = exports.LEAGUE_V2_LEADERSHIP_PRODUCT_SUBTYPES = exports.ProductSubTypesEnum = exports.PROGRAM_PRODUCT_TYPES = exports.ProductTypesEnum = exports.AddonTimePeriodEnum = exports.PackageProductsRelationTypeEnum = exports.CommerceProductInventoryFilterStatusEnum = exports.ProductBuilderTypeEnum = exports.PRODUCT_EXPAND_CREATE_RESPONSE = exports.PUBLIC_PRODUCT_EXPAND_VALUES = exports.ProductExpandEnum = exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
3
+ exports.StaleExternalValidationPricingEnum = exports.QuantityOperationsEnum = exports.PriceFieldEnum = exports.ProductPackageLevelEnum = exports.DiscountMethodsEnum = exports.PARTICIPANT_SUBTYPES_EXCLUDED_FROM_USER_VALIDATION = exports.FOLDERED_REGISTRATION_VALID_PRODUCT_SUBTYPES = exports.PROGRAM_LEAGUE_AND_TOURNAMENT_V2_PRODUCT_SUBTYPES = exports.LEAGUE_V2_LEADERSHIP_PRODUCT_SUBTYPES = exports.ProductSubTypesEnum = exports.PROGRAM_PRODUCT_TYPES = exports.ProductTypesEnum = exports.AddonTimePeriodEnum = exports.PackageProductsRelationTypeEnum = exports.CommerceProductInventoryFilterStatusEnum = exports.ProductBuilderTypeEnum = exports.PRODUCT_EXPAND_CREATE_RESPONSE = exports.PUBLIC_PRODUCT_EXPAND_VALUES = exports.ProductExpandEnum = exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
4
4
  var ProductStateEnum;
5
5
  (function (ProductStateEnum) {
6
6
  ProductStateEnum["VALID"] = "valid";
@@ -181,4 +181,20 @@ var QuantityOperationsEnum;
181
181
  QuantityOperationsEnum["INCREMENT"] = "increment";
182
182
  QuantityOperationsEnum["DECREMENT"] = "decrement";
183
183
  })(QuantityOperationsEnum = exports.QuantityOperationsEnum || (exports.QuantityOperationsEnum = {}));
184
+ /**
185
+ * How pricing treats an attendee's `valid` external validation that was confirmed more than the validity window ago.
186
+ */
187
+ var StaleExternalValidationPricingEnum;
188
+ (function (StaleExternalValidationPricingEnum) {
189
+ /** Full price, without asking the provider. The open price routes. */
190
+ StaleExternalValidationPricingEnum["FULL_PRICE"] = "full_price";
191
+ /** Asks the provider again and stores its answer. Cart, waitlist and reservation pricing. */
192
+ StaleExternalValidationPricingEnum["ASK_PROVIDER"] = "ask_provider";
193
+ /**
194
+ * Finalize. Member price only on a line the cart saved with that member group; the purchase re-check that follows asks
195
+ * the provider and refuses with its 409. A line saved at full price stays at full price, so a shopper who accepted full
196
+ * price while the provider was down can always complete the purchase.
197
+ */
198
+ StaleExternalValidationPricingEnum["PURCHASE_RECHECK"] = "purchase_recheck";
199
+ })(StaleExternalValidationPricingEnum = exports.StaleExternalValidationPricingEnum || (exports.StaleExternalValidationPricingEnum = {}));
184
200
  //# 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;AAED,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC7B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;IACjB,sDAAgC,CAAA;IAChC,2DAAqC,CAAA;IACrC,+DAAyC,CAAA;AAC1C,CAAC,EAVW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAU7B;AAED,IAAY,iBAuBX;AAvBD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,2DAAsC,CAAA;IACtC,mEAA8C,CAAA;IAC9C,yDAAoC,CAAA;IACpC,kDAA6B,CAAA;IAC7B,yDAAoC,CAAA;IACpC,qDAAgC,CAAA;IAChC,oCAAe,CAAA;IACf,4CAAuB,CAAA;IACvB,2DAAsC,CAAA;IACtC,8CAAyB,CAAA;IACzB,iDAA4B,CAAA;IAC5B,yCAAoB,CAAA;IACpB,6DAAwC,CAAA;IACxC,4CAAuB,CAAA;IACvB,iDAA4B,CAAA;IAC5B,mDAA8B,CAAA;IAC9B,2DAAsC,CAAA;IACtC,6CAAwB,CAAA;IACxB,6DAAwC,CAAA;IACxC,0CAAqB,CAA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mBAAmB,CAAC,iBAAiB;IACrC,mBAAmB,CAAC,wBAAwB;IAC5C,mBAAmB,CAAC,gBAAgB;IACpC,mBAAmB,CAAC,oBAAoB;IACxC,mBAAmB,CAAC,mBAAmB;IACvC,mBAAmB,CAAC,eAAe;CACnC,CAAC;AAEF,mIAAmI;AACtH,QAAA,4CAA4C,GAAG,yDAAiD,CAAC;AAE9G;;GAEG;AACU,QAAA,kDAAkD,GAAG;IACjE,mBAAmB,CAAC,eAAe;IACnC,mBAAmB,CAAC,mBAAmB;CACvC,CAAC;AAEF,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC9B,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AAClB,CAAC,EAHW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B;AAED,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IAClC,wCAAa,CAAA;IACb,wCAAa,CAAA;IACb,sDAA2B,CAAA;AAC5B,CAAC,EAJW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAIlC;AAED,IAAY,cAQX;AARD,WAAY,cAAc;IACzB,iCAAe,CAAA;IACf,4CAA0B,CAAA;IAC1B,mCAAiB,CAAA;IACjB,4CAA0B,CAAA;IAC1B,0CAAwB,CAAA;IACxB,gDAA8B,CAAA;IAC9B,oDAAkC,CAAA;AACnC,CAAC,EARW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAQzB;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IACjC,iDAAuB,CAAA;IACvB,iDAAuB,CAAA;AACxB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC"}
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,GAA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BAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B;AAED,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IAClC,wCAAa,CAAA;IACb,wCAAa,CAAA;IACb,sDAA2B,CAAA;AAC5B,CAAC,EAJW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAIlC;AAED,IAAY,cAQX;AARD,WAAY,cAAc;IACzB,iCAAe,CAAA;IACf,4CAA0B,CAAA;IAC1B,mCAAiB,CAAA;IACjB,4CAA0B,CAAA;IAC1B,0CAAwB,CAAA;IACxB,gDAA8B,CAAA;IAC9B,oDAAkC,CAAA;AACnC,CAAC,EARW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAQzB;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IACjC,iDAAuB,CAAA;IACvB,iDAAuB,CAAA;AACxB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED;;GAEG;AACH,IAAY,kCAWX;AAXD,WAAY,kCAAkC;IAC7C,sEAAsE;IACtE,+DAAyB,CAAA;IACzB,6FAA6F;IAC7F,mEAA6B,CAAA;IAC7B;;;;OAIG;IACH,2EAAqC,CAAA;AACtC,CAAC,EAXW,kCAAkC,GAAlC,0CAAkC,KAAlC,0CAAkC,QAW7C"}
@@ -16,6 +16,10 @@ import { Price } from '../../entities/price.entity';
16
16
  import { Product } from '../../entities/product.entity';
17
17
  import { AddonTimePeriodEnum, CommerceProductInventoryFilterStatusEnum, OrderByProductEnum, PackageProductsRelationTypeEnum, ProductExpandEnum } from '../enums/product.enums';
18
18
  import { IRelativeEblfContexts } from './relative-eblf.interfaces';
19
+ export interface ISavedEntitlement {
20
+ userId: number;
21
+ entitlementGroupId: number;
22
+ }
19
23
  export interface IGetCurrentPricesOptions {
20
24
  userId?: number;
21
25
  answers?: QuestionAnswersDto[];
@@ -1,6 +1,6 @@
1
1
  import { CreateMediaDto } from '../../../media/dto/media.dto';
2
2
  import { ProgramTypesEnum } from '../../../programs/types/enums/program.enums';
3
- import { ProgramPortalModeOrderEnum, ProgramPortalViewEnum } from '../enums/program-portals.enums';
3
+ import { ProgramPortalHeroMediaSizeEnum, ProgramPortalModeOrderEnum, ProgramPortalViewEnum } from '../enums/program-portals.enums';
4
4
  export declare class ProgramPortalModeLabels {
5
5
  singular: string;
6
6
  plural?: string;
@@ -21,4 +21,5 @@ export declare class ProgramPortalOptions {
21
21
  event?: ProgramPortalBrowseMode;
22
22
  heroMedia?: CreateMediaDto;
23
23
  heroMediaId?: number | null;
24
+ heroMediaSize?: ProgramPortalHeroMediaSizeEnum;
24
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"program-portal-options.class.js","sourceRoot":"","sources":["../../../../../src/types/program-portals/types/classes/program-portal-options.class.ts"],"names":[],"mappings":";;;AAKA,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,oBAAoB;CAsBhC;AAtBD,oDAsBC"}
1
+ {"version":3,"file":"program-portal-options.class.js","sourceRoot":"","sources":["../../../../../src/types/program-portals/types/classes/program-portal-options.class.ts"],"names":[],"mappings":";;;AASA,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,oBAAoB;CAwBhC;AAxBD,oDAwBC"}
@@ -1,3 +1,4 @@
1
+ import { SportsEnum } from '../../../activities/types/activities.enums';
1
2
  import { Facility } from '../../../facilities/entities/facility.entity';
2
3
  import { Filter } from '../../../filters/entities/filter.entity';
3
4
  import { Organization } from '../../../organization/entities/organization.entity';
@@ -16,5 +17,6 @@ export declare class ProgramPortal extends Filter {
16
17
  maxPrice?: number;
17
18
  earliestStartDate?: string;
18
19
  latestEndDate?: string;
20
+ sports?: SportsEnum[];
19
21
  organization?: Organization;
20
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"program-portal.class.js","sourceRoot":"","sources":["../../../../../src/types/program-portals/types/classes/program-portal.class.ts"],"names":[],"mappings":";;;AAEA,2EAAiE;AAQjE,MAAa,aAAc,SAAQ,sBAAM;CAsBxC;AAtBD,sCAsBC"}
1
+ {"version":3,"file":"program-portal.class.js","sourceRoot":"","sources":["../../../../../src/types/program-portals/types/classes/program-portal.class.ts"],"names":[],"mappings":";;;AAGA,2EAAiE;AAQjE,MAAa,aAAc,SAAQ,sBAAM;CAwBxC;AAxBD,sCAwBC"}
@@ -5,7 +5,7 @@ import { ByOrganizationIdDto } from '../../../organization/dto/organization.dto'
5
5
  import { ProgramTypesEnum, PublishingStatusEnum } from '../../../programs/types/enums/program.enums';
6
6
  import { SegmentTagDto } from '../../../segment-tags/types/dto/segment-tags.dto';
7
7
  import { OrderByEnum } from '../../../types/enums/query.enums';
8
- import { ProgramPortalModeOrderEnum, ProgramPortalOrderByEnum, ProgramPortalScheduleSummaryEnum, ProgramPortalViewEnum } from '../enums/program-portals.enums';
8
+ import { ProgramPortalHeroMediaSizeEnum, ProgramPortalModeOrderEnum, ProgramPortalOrderByEnum, ProgramPortalScheduleSummaryEnum, ProgramPortalViewEnum } from '../enums/program-portals.enums';
9
9
  export declare class ProgramPortalModeLabelsDto {
10
10
  singular: string;
11
11
  plural?: string;
@@ -26,6 +26,7 @@ export declare class ProgramPortalOptionsInputDto {
26
26
  event?: ProgramPortalBrowseModeDto;
27
27
  heroMedia?: CreateMediaDto;
28
28
  heroMediaId?: number | null;
29
+ heroMediaSize?: ProgramPortalHeroMediaSizeEnum;
29
30
  }
30
31
  export declare class ProgramPortalOptionsDto extends ProgramPortalOptionsInputDto {
31
32
  heroMedia?: MediaDto;
@@ -1 +1 @@
1
- {"version":3,"file":"program-portals.dto.js","sourceRoot":"","sources":["../../../../../src/types/program-portals/types/dto/program-portals.dto.ts"],"names":[],"mappings":";;;AAEA,0DAMkC;AAElC,iFAAiF;AAYjF,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,4BAA4B;CAsBxC;AAtBD,oEAsBC;AAED,MAAa,uBAAwB,SAAQ,4BAA4B;CAExE;AAFD,0DAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,sBAAuB,SAAQ,mBAAK;CAMhD;AAND,wDAMC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,oBAAqB,SAAQ,6BAAe;IAAzD;;QACC,iBAAY,GAAI,4CAA8B,CAAC;IAehD,CAAC;CAAA;AAhBD,oDAgBC;AAED,MAAa,2BAA4B,SAAQ,6BAAe;IAAhE;;QACC,iBAAY,GAAI,4CAA8B,CAAC;IAShD,CAAC;CAAA;AAVD,kEAUC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAcjD;AAdD,4CAcC;AAED,MAAa,qCAAsC,SAAQ,sCAAmB;CAE7E;AAFD,sFAEC;AAED,MAAa,6BAA8B,SAAQ,qCAAqC;CAEvF;AAFD,sEAEC;AAED,MAAa,iCAAkC,SAAQ,6BAA6B;CAEnF;AAFD,8EAEC;AAED,MAAa,qCAAsC,SAAQ,qCAAqC;CAI/F;AAJD,sFAIC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,gBAAgB;CAwB5B;AAxBD,4CAwBC"}
1
+ {"version":3,"file":"program-portals.dto.js","sourceRoot":"","sources":["../../../../../src/types/program-portals/types/dto/program-portals.dto.ts"],"names":[],"mappings":";;;AAEA,0DAMkC;AAElC,iFAAiF;AAajF,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,4BAA4B;CAwBxC;AAxBD,oEAwBC;AAED,MAAa,uBAAwB,SAAQ,4BAA4B;CAExE;AAFD,0DAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,sBAAuB,SAAQ,mBAAK;CAMhD;AAND,wDAMC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,oBAAqB,SAAQ,6BAAe;IAAzD;;QACC,iBAAY,GAAI,4CAA8B,CAAC;IAehD,CAAC;CAAA;AAhBD,oDAgBC;AAED,MAAa,2BAA4B,SAAQ,6BAAe;IAAhE;;QACC,iBAAY,GAAI,4CAA8B,CAAC;IAShD,CAAC;CAAA;AAVD,kEAUC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAcjD;AAdD,4CAcC;AAED,MAAa,qCAAsC,SAAQ,sCAAmB;CAE7E;AAFD,sFAEC;AAED,MAAa,6BAA8B,SAAQ,qCAAqC;CAEvF;AAFD,sEAEC;AAED,MAAa,iCAAkC,SAAQ,6BAA6B;CAEnF;AAFD,8EAEC;AAED,MAAa,qCAAsC,SAAQ,qCAAqC;CAI/F;AAJD,sFAIC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,gBAAgB;CAwB5B;AAxBD,4CAwBC"}
@@ -2,7 +2,8 @@ import { SportNameEnum, SportsEnum } from '../../../activities/types/activities.
2
2
  import { PaginationQuery } from '../../../dto/general.dto';
3
3
  import { SimpleMediaDto } from '../../../media/dto/media-public.dto';
4
4
  import { PublicOrganizationDto } from '../../../organization/dto/organization-public.dto';
5
- import { ProgramPortalModeOrderEnum, ProgramPortalViewEnum } from '../enums/program-portals.enums';
5
+ import { GenderEnum } from '../../../types/enums/gender.enums';
6
+ import { ProgramPortalHeroMediaSizeEnum, ProgramPortalModeOrderEnum, ProgramPortalViewEnum } from '../enums/program-portals.enums';
6
7
  import { PortalEligibilityViolationCodeEnum, PublicProgramPortalExpandEnum } from '../enums/public-program-portal.enums';
7
8
  import { ProgramPortalModeLabelsDto } from './program-portals.dto';
8
9
  export declare class GetPublicProgramPortalQueryDto {
@@ -20,6 +21,9 @@ export declare class GetPublicTaggedSegmentsQueryDto extends PaginationQuery {
20
21
  }
21
22
  export declare class GetPublicTaggedSegmentQueryDto extends GetPublicTaggedSegmentsQueryDto {
22
23
  segmentId?: number;
24
+ search?: string;
25
+ gender?: GenderEnum;
26
+ activityTypes?: SportsEnum[];
23
27
  }
24
28
  export declare class PublicProgramPortalModeDto {
25
29
  labels: ProgramPortalModeLabelsDto;
@@ -30,6 +34,7 @@ export declare class PublicProgramPortalDto {
30
34
  name: string;
31
35
  description?: string;
32
36
  heroMedia?: SimpleMediaDto;
37
+ heroMediaSize: ProgramPortalHeroMediaSizeEnum;
33
38
  organization: PublicOrganizationDto;
34
39
  defaultView: ProgramPortalViewEnum;
35
40
  sellBy: ProgramPortalViewEnum[];
@@ -40,6 +45,7 @@ export declare class PublicProgramPortalDto {
40
45
  maxPrice?: number;
41
46
  earliestStartDate?: string;
42
47
  latestEndDate?: string;
48
+ sports: SportNameEnum[];
43
49
  }
44
50
  export declare class PublicSegmentTagDto {
45
51
  tagId: number;
@@ -1 +1 @@
1
- {"version":3,"file":"public-program-portals.dto.js","sourceRoot":"","sources":["../../../../../src/types/program-portals/types/dto/public-program-portals.dto.ts"],"names":[],"mappings":";;;AAGA,0DAA2F;AAG3F,6EAAoF;AASpF,MAAa,8BAA8B;CAE1C;AAFD,wEAEC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;IAAvE;;QACC,iBAAY,GAAI,4CAA8B,CAAC;IAOhD,CAAC;CAAA;AARD,gFAQC;AAED,MAAa,+BAAgC,SAAQ,6BAAe;IAApE;;QACC,iBAAY,GAAI,yDAAgC,CAAC;IAGlD,CAAC;CAAA;AAJD,0EAIC;AAED,MAAa,8BAA+B,SAAQ,+BAA+B;CAElF;AAFD,wEAEC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,sBAAsB;CA4BlC;AA5BD,wDA4BC;AAED,MAAa,mBAAmB;CAU/B;AAVD,kDAUC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,sBAAsB;CAgDlC;AAhDD,wDAgDC;AAED,MAAa,0BAA0B;CAUtC;AAVD,gEAUC"}
1
+ {"version":3,"file":"public-program-portals.dto.js","sourceRoot":"","sources":["../../../../../src/types/program-portals/types/dto/public-program-portals.dto.ts"],"names":[],"mappings":";;;AAGA,0DAA2F;AAK3F,6EAAoF;AAapF,MAAa,8BAA8B;CAE1C;AAFD,wEAEC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;IAAvE;;QACC,iBAAY,GAAI,4CAA8B,CAAC;IAOhD,CAAC;CAAA;AARD,gFAQC;AAED,MAAa,+BAAgC,SAAQ,6BAAe;IAApE;;QACC,iBAAY,GAAI,yDAAgC,CAAC;IAGlD,CAAC;CAAA;AAJD,0EAIC;AAED,MAAa,8BAA+B,SAAQ,+BAA+B;CAQlF;AARD,wEAQC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,sBAAsB;CAgClC;AAhCD,wDAgCC;AAED,MAAa,mBAAmB;CAU/B;AAVD,kDAUC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,sBAAsB;CAgDlC;AAhDD,wDAgDC;AAED,MAAa,0BAA0B;CAUtC;AAVD,gEAUC"}
@@ -1,3 +1,7 @@
1
+ export declare enum ProgramPortalHeroMediaSizeEnum {
2
+ FULL_WIDTH = "full_width",
3
+ MINIMIZED = "minimized"
4
+ }
1
5
  export declare enum ProgramPortalModeOrderEnum {
2
6
  ALPHABETICAL_ASC = "ALPHABETICAL_ASC",
3
7
  ALPHABETICAL_DESC = "ALPHABETICAL_DESC",
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProgramPortalViewEnum = exports.ProgramPortalScheduleSummaryEnum = exports.ProgramPortalOrderByEnum = exports.ProgramPortalModeOrderEnum = void 0;
3
+ exports.ProgramPortalViewEnum = exports.ProgramPortalScheduleSummaryEnum = exports.ProgramPortalOrderByEnum = exports.ProgramPortalModeOrderEnum = exports.ProgramPortalHeroMediaSizeEnum = void 0;
4
+ var ProgramPortalHeroMediaSizeEnum;
5
+ (function (ProgramPortalHeroMediaSizeEnum) {
6
+ ProgramPortalHeroMediaSizeEnum["FULL_WIDTH"] = "full_width";
7
+ ProgramPortalHeroMediaSizeEnum["MINIMIZED"] = "minimized";
8
+ })(ProgramPortalHeroMediaSizeEnum = exports.ProgramPortalHeroMediaSizeEnum || (exports.ProgramPortalHeroMediaSizeEnum = {}));
4
9
  var ProgramPortalModeOrderEnum;
5
10
  (function (ProgramPortalModeOrderEnum) {
6
11
  ProgramPortalModeOrderEnum["ALPHABETICAL_ASC"] = "ALPHABETICAL_ASC";
@@ -1 +1 @@
1
- {"version":3,"file":"program-portals.enums.js","sourceRoot":"","sources":["../../../../../src/types/program-portals/types/enums/program-portals.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACrC,mEAAqC,CAAA;IACrC,qEAAuC,CAAA;IACvC,mDAAqB,CAAA;IACrB,qDAAuB,CAAA;AACxB,CAAC,EALW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAKrC;AAED,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IACnC,qCAAS,CAAA;IACT,yCAAa,CAAA;IACb,6CAAiB,CAAA;AAClB,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC;AAED,IAAY,gCAIX;AAJD,WAAY,gCAAgC;IAC3C,uDAAmB,CAAA;IACnB,qDAAiB,CAAA;IACjB,iDAAa,CAAA;AACd,CAAC,EAJW,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAI3C;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AAChB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC"}
1
+ {"version":3,"file":"program-portals.enums.js","sourceRoot":"","sources":["../../../../../src/types/program-portals/types/enums/program-portals.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,8BAGX;AAHD,WAAY,8BAA8B;IACzC,2DAAyB,CAAA;IACzB,yDAAuB,CAAA;AACxB,CAAC,EAHW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAGzC;AAED,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACrC,mEAAqC,CAAA;IACrC,qEAAuC,CAAA;IACvC,mDAAqB,CAAA;IACrB,qDAAuB,CAAA;AACxB,CAAC,EALW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAKrC;AAED,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IACnC,qCAAS,CAAA;IACT,yCAAa,CAAA;IACb,6CAAiB,CAAA;AAClB,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC;AAED,IAAY,gCAIX;AAJD,WAAY,gCAAgC;IAC3C,uDAAmB,CAAA;IACnB,qDAAiB,CAAA;IACjB,iDAAa,CAAA;AACd,CAAC,EAJW,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAI3C;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AAChB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC"}
@@ -7,4 +7,5 @@ export declare class BackofficeProgramDto extends ProgramDto {
7
7
  }
8
8
  export declare class BackofficeProgramsFiltersDto extends OrganizationProgramsFiltersDto {
9
9
  includeScheduleSummary?: boolean;
10
+ matchAnySessionSport?: boolean;
10
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"program-backoffice.dto.js","sourceRoot":"","sources":["../../../../src/types/programs/dto/program-backoffice.dto.ts"],"names":[],"mappings":";;;AAGA,6DAAkF;AAElF,MAAa,oBAAqB,SAAQ,+BAAU;CAMnD;AAND,oDAMC;AAED,MAAa,4BAA6B,SAAQ,mDAA8B;CAE/E;AAFD,oEAEC"}
1
+ {"version":3,"file":"program-backoffice.dto.js","sourceRoot":"","sources":["../../../../src/types/programs/dto/program-backoffice.dto.ts"],"names":[],"mappings":";;;AAGA,6DAAkF;AAElF,MAAa,oBAAqB,SAAQ,+BAAU;CAMnD;AAND,oDAMC;AAED,MAAa,4BAA6B,SAAQ,mDAA8B;CAI/E;AAJD,oEAIC"}
@@ -1,4 +1,4 @@
1
- import { SportNameEnum } from '../../activities/types/activities.enums';
1
+ import { SportNameEnum, SportsEnum } from '../../activities/types/activities.enums';
2
2
  import { PaginationQuery, PaginationResultDto } from '../../dto/general.dto';
3
3
  import { ExtendedFacilityDto } from '../../facilities/dto/public-facilities.dto';
4
4
  import { AccountingCodeDto } from '../../gl-codes/dto/gl-code.dto';
@@ -78,6 +78,22 @@ export declare class PaginatedSessionsDto extends PaginationResultDto<SessionDto
78
78
  data: SessionDto[];
79
79
  }
80
80
  export declare class GetSessionsFiltersExtendedDto extends GetSessionsFiltersDto {
81
+ facilitiesIds?: number[];
82
+ sports?: SportsEnum[];
83
+ statuses?: PublishingStatusEnum[];
84
+ }
85
+ /**
86
+ * Filters for the session activities list.
87
+ * Sort, expand, and the selected sports stay on the sessions list.
88
+ */
89
+ export declare class GetProgramSessionActivitiesFiltersDto extends PaginationQuery implements Omit<ISessionsFilters, 'expand' | 'order' | 'orderBy' | 'sports'> {
90
+ gender?: GenderEnum;
91
+ levels?: LevelOfPlayEnum[];
92
+ search?: string;
93
+ includePast?: boolean;
94
+ startDate?: string;
95
+ endDate?: string;
96
+ searchByProgram?: boolean;
81
97
  facilitiesIds?: number[];
82
98
  statuses?: PublishingStatusEnum[];
83
99
  }
@@ -86,6 +102,10 @@ export declare class SessionExtendedDto extends SessionDto {
86
102
  publishingStatus: PublishingStatusEnum;
87
103
  settings?: SeasonSettingsDto;
88
104
  }
105
+ export declare class SessionActivityOptionDto {
106
+ id: SportsEnum;
107
+ label: string;
108
+ }
89
109
  export declare class PaginatedSessionsExtendedDto extends PaginationResultDto<SessionExtendedDto> {
90
110
  data: SessionExtendedDto[];
91
111
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaginatedSessionsExtendedDto = exports.SessionExtendedDto = exports.GetSessionsFiltersExtendedDto = exports.PaginatedSessionsDto = exports.SessionDto = exports.SessionActivityTimeDto = exports.GetSessionProductsFiltersDto = exports.GetSessionsFiltersDto = void 0;
3
+ exports.PaginatedSessionsExtendedDto = exports.SessionActivityOptionDto = exports.SessionExtendedDto = exports.GetProgramSessionActivitiesFiltersDto = exports.GetSessionsFiltersExtendedDto = exports.PaginatedSessionsDto = exports.SessionDto = exports.SessionActivityTimeDto = exports.GetSessionProductsFiltersDto = exports.GetSessionsFiltersDto = 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 GetSessionsFiltersDto extends general_dto_1.PaginationQuery {
@@ -22,9 +22,19 @@ exports.PaginatedSessionsDto = PaginatedSessionsDto;
22
22
  class GetSessionsFiltersExtendedDto extends GetSessionsFiltersDto {
23
23
  }
24
24
  exports.GetSessionsFiltersExtendedDto = GetSessionsFiltersExtendedDto;
25
+ /**
26
+ * Filters for the session activities list.
27
+ * Sort, expand, and the selected sports stay on the sessions list.
28
+ */
29
+ class GetProgramSessionActivitiesFiltersDto extends general_dto_1.PaginationQuery {
30
+ }
31
+ exports.GetProgramSessionActivitiesFiltersDto = GetProgramSessionActivitiesFiltersDto;
25
32
  class SessionExtendedDto extends SessionDto {
26
33
  }
27
34
  exports.SessionExtendedDto = SessionExtendedDto;
35
+ class SessionActivityOptionDto {
36
+ }
37
+ exports.SessionActivityOptionDto = SessionActivityOptionDto;
28
38
  class PaginatedSessionsExtendedDto extends general_dto_1.PaginationResultDto {
29
39
  }
30
40
  exports.PaginatedSessionsExtendedDto = PaginatedSessionsExtendedDto;
@@ -1 +1 @@
1
- {"version":3,"file":"session-public.dto.js","sourceRoot":"","sources":["../../../../src/types/programs/dto/session-public.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA6E;AAI7E,8EAAoF;AAkBpF,MAAa,qBAAsB,SAAQ,6BAAe;CAoBzD;AApBD,sDAoBC;AAED,MAAa,4BAA6B,SAAQ,6BAAe;CAEhE;AAFD,oEAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,UAAW,SAAQ,4CAAyB;CA8ExD;AA9ED,gCA8EC;AAED,MAAa,oBAAqB,SAAQ,iCAA+B;CAExE;AAFD,oDAEC;AAED,2CAA2C;AAC3C,MAAa,6BAA8B,SAAQ,qBAAqB;CAIvE;AAJD,sEAIC;AAED,MAAa,kBAAmB,SAAQ,UAAU;CAMjD;AAND,gDAMC;AAED,MAAa,4BAA6B,SAAQ,iCAAuC;CAExF;AAFD,oEAEC"}
1
+ {"version":3,"file":"session-public.dto.js","sourceRoot":"","sources":["../../../../src/types/programs/dto/session-public.dto.ts"],"names":[],"mappings":";;;AAGA,uDAA6E;AAI7E,8EAAoF;AAkBpF,MAAa,qBAAsB,SAAQ,6BAAe;CAoBzD;AApBD,sDAoBC;AAED,MAAa,4BAA6B,SAAQ,6BAAe;CAEhE;AAFD,oEAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,UAAW,SAAQ,4CAAyB;CA8ExD;AA9ED,gCA8EC;AAED,MAAa,oBAAqB,SAAQ,iCAA+B;CAExE;AAFD,oDAEC;AAED,2CAA2C;AAC3C,MAAa,6BAA8B,SAAQ,qBAAqB;CAMvE;AAND,sEAMC;AAED;;;GAGG;AACH,MAAa,qCACZ,SAAQ,6BAAe;CAoBvB;AArBD,sFAqBC;AAED,MAAa,kBAAmB,SAAQ,UAAU;CAMjD;AAND,gDAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,4BAA6B,SAAQ,iCAAuC;CAExF;AAFD,oEAEC"}
@@ -60,11 +60,13 @@ export interface ISessionsFilters extends IBaseSessionsFilters {
60
60
  expand?: SessionExpandEnum[];
61
61
  order?: OrderByEnum;
62
62
  orderBy?: string;
63
+ sports?: SportsEnum[];
63
64
  }
64
65
  export interface IProgramFilters extends IBaseSessionsFilters, IPagination {
65
66
  expand?: ProgramExpandEnum[];
66
67
  includeEmptyPrograms?: boolean;
67
68
  includeScheduleSummary?: boolean;
69
+ matchAnySessionSport?: boolean;
68
70
  order?: OrderByEnum;
69
71
  orderBy?: OrderByProgramEnum;
70
72
  programTypes?: ProgramTypesEnum[];
@@ -16,6 +16,7 @@ import { Product } from '../../../product-pricing/entities/product.entity';
16
16
  import { AddonTimePeriodEnum, ProductTypesEnum, ProductSubTypesEnum } from '../../../product-pricing/types/enums/product.enums';
17
17
  import { IValidateResourcesOptions } from '../../../product-pricing/types/interfaces/validate-resources.interfaces';
18
18
  import { PublishingStatusEnum, LevelOfPlayEnum } from '../../../programs/types/enums/program.enums';
19
+ import { ISessionsFilters } from '../../../programs/types/interfaces/program.interfaces';
19
20
  import { PurchasedResourceStatusEnum } from '../../../registration/types/enums/registration.enums';
20
21
  import { DayOfWeekNameEnum } from '../../../types/enums/date-time.enums';
21
22
  import { GenderEnum } from '../../../types/enums/gender.enums';
@@ -149,8 +150,16 @@ export interface IDistinctPublishedSegmentTagsParams {
149
150
  sortByDate?: boolean;
150
151
  sortDirection?: OrderByEnum;
151
152
  }
153
+ export type TProgramSessionActivityFilters = Omit<ISessionsFilters & IPagination, 'expand' | 'order' | 'orderBy' | 'sports'>;
154
+ export interface IGetProgramSessionActivitiesParams {
155
+ filters?: TProgramSessionActivityFilters;
156
+ organizationId: number;
157
+ programId: number;
158
+ }
152
159
  export interface IGetTaggedSegmentsBySessionIdsParams {
153
160
  organizationId: number;
161
+ activityTypes?: SportsEnum[];
162
+ gender?: GenderEnum;
154
163
  includeSegmentTag?: boolean;
155
164
  order?: OrderByEnum;
156
165
  orderBy?: 'name' | 'startDate';
@@ -113,9 +113,15 @@ export declare class PurchaseResultDto {
113
113
  customer?: Customer;
114
114
  productUsers?: ProductsUsers[];
115
115
  }
116
+ export declare class RollingInstallmentCountDto {
117
+ cartItemId: number;
118
+ installmentCount?: number;
119
+ amountToPay?: number;
120
+ }
116
121
  export declare class BasicPurchaseDto {
117
122
  paymentMethodId?: number;
118
123
  amountToPay?: number;
124
+ installmentCounts?: RollingInstallmentCountDto[];
119
125
  }
120
126
  export declare class PurchaseCartDto extends InvoiceCartDto implements IPurchaseCart {
121
127
  paymentInfo?: PurchasePaymentDto;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PurchaseCartDto = exports.BasicPurchaseDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddCartItemsToInvoiceDto = exports.PartialPaymentRequestDto = exports.ScheduledPaymentRequestBodyDto = exports.ScheduledPaymentRequestDto = exports.ScheduledPaymentConsumerRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.BasePurchaseResourceDto = exports.PurchasePaymentDto = void 0;
3
+ exports.PurchaseCartDto = exports.BasicPurchaseDto = exports.RollingInstallmentCountDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddCartItemsToInvoiceDto = exports.PartialPaymentRequestDto = exports.ScheduledPaymentRequestBodyDto = exports.ScheduledPaymentRequestDto = exports.ScheduledPaymentConsumerRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.BasePurchaseResourceDto = exports.PurchasePaymentDto = void 0;
4
4
  const invoice_cart_dto_1 = require("../../invoice/dto/invoice-cart.dto");
5
5
  const organization_dto_1 = require("../../organization/dto/organization.dto");
6
6
  class PurchasePaymentDto {
@@ -43,6 +43,9 @@ exports.ValidateParticipantDto = ValidateParticipantDto;
43
43
  class PurchaseResultDto {
44
44
  }
45
45
  exports.PurchaseResultDto = PurchaseResultDto;
46
+ class RollingInstallmentCountDto {
47
+ }
48
+ exports.RollingInstallmentCountDto = RollingInstallmentCountDto;
46
49
  class BasicPurchaseDto {
47
50
  }
48
51
  exports.BasicPurchaseDto = BasicPurchaseDto;
@@ -1 +1 @@
1
- {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAMA,yEAAoE;AAGpE,8EAA8E;AAiB9E,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED;;;GAGG;AACH,MAAa,uBAAuB;CAsBnC;AAtBD,0DAsBC;AAED,MAAa,mBAAoB,SAAQ,uBAAuB;CAE/D;AAFD,kDAEC;AAED,MAAa,kBAAkB;CAqC9B;AArCD,gDAqCC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAkBpC;AAlBD,4DAkBC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AAED,MAAa,eAAgB,SAAQ,iCAAc;CAkBlD;AAlBD,0CAkBC"}
1
+ {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAMA,yEAAoE;AAGpE,8EAA8E;AAiB9E,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED;;;GAGG;AACH,MAAa,uBAAuB;CAsBnC;AAtBD,0DAsBC;AAED,MAAa,mBAAoB,SAAQ,uBAAuB;CAE/D;AAFD,kDAEC;AAED,MAAa,kBAAkB;CAqC9B;AArCD,gDAqCC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAkBpC;AAlBD,4DAkBC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,eAAgB,SAAQ,iCAAc;CAkBlD;AAlBD,0CAkBC"}
@@ -4,6 +4,7 @@ import type { Cart } from '../../../cart/entities/cart.entity';
4
4
  import { IUpdateCartPrices, IValidateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
5
5
  import { Customer } from '../../../customers/entities/customer.entity';
6
6
  import { Invoice } from '../../../invoice/entities/invoice.entity';
7
+ import { LineItems } from '../../../invoice/entities/line-items.entity';
7
8
  import { ProductsUsers } from '../../../invoice/entities/products-users.entity';
8
9
  import { LineItemsStatusEnum } from '../../../invoice/types/enums/invoice.enums';
9
10
  import { IInvoiceCart } from '../../../invoice/types/interfaces/invoice.interfaces';
@@ -72,10 +73,15 @@ export interface IPastDueNotificationGroup {
72
73
  facilitiesIds: number[];
73
74
  mailsData: Record<string, unknown>[];
74
75
  }
76
+ /** A scheduled payment with server-resolved registration linkage. Not a request DTO. */
77
+ export interface IServerBuiltInstallment extends ScheduledPaymentDto {
78
+ cartItemId?: number;
79
+ productUserId?: number;
80
+ }
75
81
  export interface IChargeInvoice extends ISaveInvoicePayment {
76
82
  parentPurchasedId?: number;
77
83
  amountToPay?: number;
78
- installments?: ScheduledPaymentDto[];
84
+ installments?: IServerBuiltInstallment[];
79
85
  parentPurchasedType?: ResourceNameTypeEnum;
80
86
  resources?: PurchaseResourceDto[];
81
87
  }
@@ -93,8 +99,21 @@ export interface IPurchaseOptions extends IValidateCartOptions {
93
99
  isImport?: boolean;
94
100
  /** Re-checks external validation discounts even when `overridePrice` keeps the reservation lines' prices. */
95
101
  recheckExternalValidations?: boolean;
102
+ /** Never set from request data: it enables stamping every dateless installment as a deposit. */
103
+ serverBuiltInstallments?: boolean;
96
104
  skipMail?: boolean;
97
105
  }
106
+ export interface ISaveScheduledPaymentsFromPurchaseParams {
107
+ organizationId: number;
108
+ chargeInvoice: IChargeInvoice;
109
+ invoice: Invoice;
110
+ options?: IPurchaseOptions;
111
+ }
112
+ export interface ISplitInvoiceByRegistrationTargetsParams {
113
+ amountToSplit: number;
114
+ invoice: Invoice;
115
+ relevantLineItems: LineItems[];
116
+ }
98
117
  export interface IPurchasePayment {
99
118
  applyForFuture?: boolean;
100
119
  cardSaveTerminalData?: ISaveCardTerminalInput;
@@ -111,7 +130,7 @@ export interface IPurchaseCart extends IInvoiceCart {
111
130
  parentPurchasedId?: number;
112
131
  purchasingUserId?: number;
113
132
  amountToPay?: number;
114
- installments?: ScheduledPaymentDto[];
133
+ installments?: IServerBuiltInstallment[];
115
134
  parentPurchasedType?: ResourceNameTypeEnum;
116
135
  paymentInfo?: PurchasePaymentDto;
117
136
  tipAmount?: number;
@@ -9,3 +9,7 @@ export declare enum GenderNameEnum {
9
9
  FEMALE = "female",
10
10
  EVERYONE = "everyone"
11
11
  }
12
+ export declare enum GenderFilterNameEnum {
13
+ MALE = "male",
14
+ FEMALE = "female"
15
+ }