@bondsports/types 0.0.80 → 0.0.81

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.
package/build/index.d.ts CHANGED
@@ -20,6 +20,13 @@ export declare class UserAnswersDto {
20
20
  export declare class GetByQuestionnaireIdsDto {
21
21
  questionnaireIds: string;
22
22
  }
23
+ export declare class FindBookingTypeSettingDto {
24
+ organizationId: number;
25
+ facilityId: number;
26
+ spaceId: number;
27
+ bookingDate: string;
28
+ bookingTime: string;
29
+ }
23
30
  export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
24
31
  membershipId: number;
25
32
  }
@@ -447,13 +454,6 @@ export declare class CreateGroupPricingWithProduct {
447
454
  discountValue?: number;
448
455
  discountMethod?: DiscountMethodsEnum;
449
456
  }
450
- export declare class FindBookingTypeSettingDto {
451
- organizationId: number;
452
- facilityId: number;
453
- spaceId: number;
454
- bookingDate: string;
455
- bookingTime: string;
456
- }
457
457
  export declare class FindByProductIdDto {
458
458
  productId: number;
459
459
  }
@@ -1002,13 +1002,6 @@ export declare class ResourceDto {
1002
1002
  type: ResourceNameTypeEnum;
1003
1003
  id: number;
1004
1004
  }
1005
- export declare class StripeCustomerIdDto {
1006
- userId: number;
1007
- }
1008
- export declare class AddACHTokenToCustomerDto {
1009
- publicToken: string;
1010
- accountId: string;
1011
- }
1012
1005
  export declare class SpaceByIdDto {
1013
1006
  spaceId: number;
1014
1007
  }
@@ -1065,6 +1058,13 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
1065
1058
  types?: string;
1066
1059
  resourcesIds?: string;
1067
1060
  }
1061
+ export declare class StripeCustomerIdDto {
1062
+ userId: number;
1063
+ }
1064
+ export declare class AddACHTokenToCustomerDto {
1065
+ publicToken: string;
1066
+ accountId: string;
1067
+ }
1068
1068
  export declare class FindByUserIdDto {
1069
1069
  userId: number;
1070
1070
  }
@@ -1385,9 +1385,6 @@ export declare class FutureInstallment extends OrganizationConnectionBaseEntity
1385
1385
  plannedDate: Date;
1386
1386
  chargedAt?: Date;
1387
1387
  }
1388
- export declare class GlCodes extends OrganizationConnectionBaseEntity {
1389
- code: string;
1390
- }
1391
1388
  export declare class Group extends BondBaseEntity {
1392
1389
  name: string;
1393
1390
  description?: string;
@@ -1404,6 +1401,9 @@ export declare class Group extends BondBaseEntity {
1404
1401
  members: ISeasonAttendeeInfo[];
1405
1402
  users: User[];
1406
1403
  }
1404
+ export declare class GlCodes extends OrganizationConnectionBaseEntity {
1405
+ code: string;
1406
+ }
1407
1407
  export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
1408
1408
  groupId: number;
1409
1409
  itemId: number;
@@ -1912,23 +1912,6 @@ export declare class ProductsReservedForCustomers extends OrganizationConnection
1912
1912
  deletedAt?: Date;
1913
1913
  product: Product;
1914
1914
  }
1915
- export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1916
- productId: number;
1917
- userId: number;
1918
- user?: User;
1919
- paymentStatus: PaymentStatusEnum;
1920
- productName: string;
1921
- productPrice: number;
1922
- productQuantity: number;
1923
- productQuantityLeft: number;
1924
- productPriceCurrency: CurrencyEnum;
1925
- ordinal?: number;
1926
- purchasedResources: PurchasedResource[];
1927
- product: Product;
1928
- lineItem: LineItems;
1929
- slots?: Slot[];
1930
- addons?: Addon[];
1931
- }
1932
1915
  export declare class Program extends BondBaseEntity {
1933
1916
  type: ProgramTypesEnum;
1934
1917
  name: string;
@@ -2013,6 +1996,23 @@ export declare class ProgramSeason extends BondBaseEntity {
2013
1996
  facility: Facility;
2014
1997
  purchasedResources: PurchasedResource[];
2015
1998
  }
1999
+ export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
2000
+ productId: number;
2001
+ userId: number;
2002
+ user?: User;
2003
+ paymentStatus: PaymentStatusEnum;
2004
+ productName: string;
2005
+ productPrice: number;
2006
+ productQuantity: number;
2007
+ productQuantityLeft: number;
2008
+ productPriceCurrency: CurrencyEnum;
2009
+ ordinal?: number;
2010
+ purchasedResources: PurchasedResource[];
2011
+ product: Product;
2012
+ lineItem: LineItems;
2013
+ slots?: Slot[];
2014
+ addons?: Addon[];
2015
+ }
2016
2016
  export declare class PurchasedResource extends OrganizationConnectionBaseEntity {
2017
2017
  productUserId: number;
2018
2018
  resourceId: number;
@@ -2129,13 +2129,6 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
2129
2129
  purchasedResources: PurchasedResource[];
2130
2130
  linkSEO: string;
2131
2131
  }
2132
- export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2133
- name: string;
2134
- facilityId: number;
2135
- parentSlotId: number;
2136
- childrenSlotIds: number[];
2137
- deletedAt?: Date;
2138
- }
2139
2132
  export declare class School extends BondBaseEntity {
2140
2133
  name: string | null;
2141
2134
  alias: string[] | null;
@@ -2158,6 +2151,13 @@ export declare class SeasonAttendee extends BondBaseEntity {
2158
2151
  deletedAt?: Date;
2159
2152
  purchasedResource: PurchasedResource;
2160
2153
  }
2154
+ export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2155
+ name: string;
2156
+ facilityId: number;
2157
+ parentSlotId: number;
2158
+ childrenSlotIds: number[];
2159
+ deletedAt?: Date;
2160
+ }
2161
2161
  export declare class SeasonDivisions extends BondBaseEntity {
2162
2162
  name: string | null;
2163
2163
  ordinal: number | null;
@@ -2179,6 +2179,10 @@ export declare class SeasonPool extends BondBaseEntity {
2179
2179
  purchasedResource: PurchasedResource;
2180
2180
  season: LeagueSeason;
2181
2181
  }
2182
+ export declare class SpacesDependency extends BondBaseEntity {
2183
+ blockingSpaceId: number;
2184
+ blockedSpaceId: number;
2185
+ }
2182
2186
  export declare class SeasonTeam extends BondBaseEntity {
2183
2187
  seasonId: number | null;
2184
2188
  teamId: number | null;
@@ -2189,10 +2193,6 @@ export declare class SeasonTeam extends BondBaseEntity {
2189
2193
  metaData: any | null;
2190
2194
  team: Team;
2191
2195
  }
2192
- export declare class SpacesDependency extends BondBaseEntity {
2193
- blockingSpaceId: number;
2194
- blockedSpaceId: number;
2195
- }
2196
2196
  export declare class Station extends OrganizationConnectionBaseEntity {
2197
2197
  name: string;
2198
2198
  facilityId: number;
@@ -2348,433 +2348,73 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2348
2348
  membershipCollectionId?: string;
2349
2349
  programsCollectionId?: string;
2350
2350
  }
2351
- export interface IEntitlementTerms {
2352
- type: EntitlementTermsTypesEnum;
2353
- id?: number;
2354
- value?: string;
2355
- minValue?: string;
2356
- maxValue?: string;
2357
- }
2358
- export interface IQuestionAnswerObject {
2359
- questionId: number;
2360
- value: string;
2361
- }
2362
- export interface ILowestPriceForItem {
2363
- itemId: number;
2364
- itemType: ResourceNameTypeEnum;
2365
- groupId: number;
2366
- groupName?: string;
2367
- price: number;
2368
- overridesPrice: boolean;
2369
- }
2370
- export interface IResourcesAvailability {
2371
- resourceType: ResourceNameTypeEnum;
2372
- quantity: number;
2373
- resourcesIds: number[];
2374
- isPunchCard: boolean;
2375
- resources?: any[];
2376
- }
2377
- export interface IPackageResponse {
2378
- parentProduct: Product;
2379
- children: IChildProduct[];
2380
- }
2381
- export interface IChildProduct {
2382
- product: Product;
2383
- relationType: PackageProductsRelationTypeEnum;
2384
- timePeriod?: AddonTimePeriodEnum;
2385
- }
2386
- export interface ISeasonAttendeeInfo {
2387
- applicationAnswers: Answer[];
2388
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2389
- invoices: Order[];
2390
- payments: Invoice[];
2391
- products: Product[];
2392
- redeemNext: ProductsUsers;
2393
- }
2394
- export interface ISeasonAttendeeListInfo {
2395
- userId: number;
2396
- userFirstName: string;
2397
- userLastName: string;
2398
- userGender: number;
2399
- userBirthDate: Date;
2400
- userProfilePicUrl: string;
2401
- customerId: number;
2402
- customerEmail: string;
2403
- paymentStatus: string;
2404
- productName: string;
2405
- punchCard: boolean;
2406
- }
2407
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2408
- segmentType: ResourceNameTypeEnum;
2409
- participantRegisteredDate?: string;
2410
- }
2411
- export declare class EventAsSeasonSegment extends Event {
2412
- segmentType: ResourceNameTypeEnum;
2413
- participantRegisteredDate?: string;
2351
+ export declare enum EntitlementTermsTypesEnum {
2352
+ QUESTION = "question",
2353
+ CITY = "city",
2354
+ MEMBERSHIP = "membership"
2414
2355
  }
2415
- export interface ITokenResonse {
2416
- token: string;
2356
+ export declare enum ResourceNameTypeEnum {
2357
+ EVENT = "event",
2358
+ VENUE = "venue",
2359
+ TEAM = "team",
2360
+ LEAGUE = "league",
2361
+ USER = "user",
2362
+ ORGANIZATION = "organization",
2363
+ APP = "app",
2364
+ FEED = "feed",
2365
+ MATCH = "match",
2366
+ ROUND = "round",
2367
+ PORTAL = "portal",
2368
+ SEASON = "season",
2369
+ TOURNAMENT = "tournament",
2370
+ MEMBERSHIP = "membership",
2371
+ DIVISION = "division",
2372
+ GAMESLOT = "gameslot",
2373
+ SPACE = "space",
2374
+ RESERVATION = "reservation",
2375
+ ORDER = "order",
2376
+ CUSTOMER = "customer",
2377
+ PACKAGE = "package",
2378
+ FACILITY = "facility",
2379
+ PROGRAM = "program",
2380
+ PROGRAM_SEASON = "program_season",
2381
+ PRODUCT = "product",
2382
+ GROUP = "group",
2383
+ VARIANT = "variant",
2384
+ SLOT = "slot",
2385
+ ADDON = "addon"
2417
2386
  }
2418
- export interface IStripeBondInvoices {
2419
- paidStripePaymentIntent: Stripe.PaymentIntent;
2420
- bondPaidInvoice: Invoice;
2421
- order?: Order;
2422
- customer?: Customer;
2387
+ export declare enum DirectBookingTypesEnum {
2388
+ DIRECT_FOR_ALL = "all",
2389
+ DIRECT_FOR_NONE = "none",
2390
+ DIRECT_VETTED_ONLY = "vetted_only",
2391
+ NO_SETTING = "no_setting"
2423
2392
  }
2424
- export interface IPartialPaymentData {
2425
- purchasingUserId: number;
2426
- paymentData: PurchasePaymentDto;
2427
- amountToPay: number;
2393
+ export declare enum GenderEnum {
2394
+ OTHER = 1,
2395
+ MALE = 2,
2396
+ FEMALE = 3
2428
2397
  }
2429
- export interface IPayment {
2430
- id: number;
2431
- total: number;
2432
- paymentMethod: PaymentMethodTypeEnum;
2433
- status: PaymentStatusEnum;
2434
- createdAt: Date;
2435
- invoices: number[];
2398
+ export declare enum LevelOfPlayEnum {
2399
+ BEGINNER = 1,
2400
+ INTERMEDIATE = 2,
2401
+ ADVANCED = 3,
2402
+ SEMIPRO = 4,
2403
+ SPECTATOR = 5
2436
2404
  }
2437
- export interface IPaginationData<T> {
2438
- meta: {
2439
- totalItems: number;
2440
- itemsPerPage: number;
2441
- totalPages: number;
2442
- currentPage: number;
2443
- };
2444
- data: T[];
2405
+ export declare enum ProgramTypesEnum {
2406
+ LEAGUE = 0,
2407
+ TOURNAMENT = 1,
2408
+ CLASS = 2,
2409
+ CLINIC = 3,
2410
+ CAMP = 4,
2411
+ LESSON = 5,
2412
+ CLUB_TEAM = 6
2445
2413
  }
2446
- export interface IPricesOfProductsResults {
2447
- productId: number;
2448
- userId: number;
2449
- price: number;
2450
- groupId?: number;
2451
- groupName?: string;
2452
- originalPrice?: number;
2453
- priceWithoutTax: number;
2454
- tax: number;
2455
- isTaxInclusive: boolean;
2456
- }
2457
- export interface IPaymentMethodToFundLeft {
2458
- paymentType: PaymentMethodTypeEnum;
2459
- paymentMethodId: string;
2460
- fundLeft: number;
2461
- ccLast4?: string;
2462
- ccBrand?: string;
2463
- }
2464
- export interface IVariantsAndTitle {
2465
- title: VariantTitle;
2466
- variants: Variant[];
2467
- }
2468
- export interface IProgramSeasonActivityTimes {
2469
- dayOfWeek: number;
2470
- open: string;
2471
- close: string;
2472
- }
2473
- export interface IProgramSeasonActivityTimesAsDates {
2474
- date: string;
2475
- startTime: string;
2476
- endTime: string;
2477
- }
2478
- export interface IBlockedDates {
2479
- name: string;
2480
- startDate: Date;
2481
- endDate: Date;
2482
- }
2483
- export interface ISingleMemberForRenewal {
2484
- member_id: number;
2485
- member_membershipId: number;
2486
- member_userId: number;
2487
- member_nextPaymentMethodId?: string;
2488
- member_nextPaymentType?: PaymentMethodTypeEnum;
2489
- member_answerTitleIds?: number[];
2490
- member_organizationId: number;
2491
- line_paidAmount: number;
2492
- line_productId: number;
2493
- order_payingUserId: number;
2494
- order_paymentMethodId: string;
2495
- order_paymentType: PaymentMethodTypeEnum;
2496
- endDate: Date;
2497
- membership_name: string;
2498
- user_firstName: string;
2499
- user_lastName: string;
2500
- user_email: string;
2501
- }
2502
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2503
- package_parentProductId: number;
2504
- line2_paidAmount: number;
2505
- familyid: number;
2506
- order_id: number;
2507
- }
2508
- export interface IResourceRegistrationData {
2509
- id: number;
2510
- resourceType: ResourceNameTypeEnum;
2511
- openNumDays?: number;
2512
- openNumMinutes?: number;
2513
- openTime?: string;
2514
- closeNumDays?: number;
2515
- closeNumMinutes?: number;
2516
- closeTime?: string;
2517
- registrationWindowStatus?: RegistrationWindowStatusEnum;
2518
- }
2519
- export interface IResourceDataForConstraintsCalc {
2520
- id: number;
2521
- startDate: string;
2522
- startTime: string;
2523
- }
2524
- export interface IRegistrationConstraintsSetting {
2525
- numDays?: number;
2526
- numMinutes?: number;
2527
- }
2528
- export interface IAttendeeDataToNotify {
2529
- firstName: string;
2530
- lastName: string;
2531
- email: string;
2532
- sessionName: string;
2533
- parentSessionName?: string;
2534
- organizationName: string;
2535
- programName: string;
2536
- }
2537
- export interface IEventInSchedule {
2538
- eventId: number;
2539
- eventName: string;
2540
- eventStartDate: string;
2541
- eventEndDate: string;
2542
- eventStartTime: string;
2543
- eventEndTime: string;
2544
- programId: number;
2545
- programName: string;
2546
- programType: ProgramTypesEnum;
2547
- sessionId: number;
2548
- sessionName: string;
2549
- sports: number;
2550
- spaces: {
2551
- spaceId: number;
2552
- spaceName: string;
2553
- }[];
2554
- status?: RegistrationValidationStatusEnum;
2555
- }
2556
- export interface ISlotInSchedule {
2557
- facilityId: number;
2558
- facilityName: string;
2559
- spaces: ISpaceWithSlots[];
2560
- }
2561
- export interface ISpaceWithSlots {
2562
- id: number;
2563
- name: string;
2564
- slots: ISlotReservationData[];
2565
- }
2566
- export interface ISlotReservationData {
2567
- reservationId: number;
2568
- reservationName: string;
2569
- date: string;
2570
- startTime: string;
2571
- endTime: string;
2572
- notes: string;
2573
- spaceId: number;
2574
- isRental: boolean;
2575
- slotType: SlotTypeEnum;
2576
- slotId: number;
2577
- eventId: number;
2578
- isPrivate: boolean;
2579
- }
2580
- export interface IRawEventInSchedule extends IEventInSchedule {
2581
- parentSessionId: number;
2582
- parentSessionName: string;
2583
- eventTimezone: string;
2584
- maxParticipants: number;
2585
- maxMaleParticipants: number;
2586
- maxFemaleParticipants: number;
2587
- isPunchCard: boolean;
2588
- }
2589
- export interface IBasicSpaceAndSlotCreator {
2590
- id: number;
2591
- name: string;
2592
- bookingCreatorId: number;
2593
- }
2594
- export interface IRawSlotInSchedule {
2595
- startDate: string;
2596
- endDate: string;
2597
- startTime: string;
2598
- endTime: string;
2599
- reservationId: number;
2600
- eventTitle: string;
2601
- publicNotes: string;
2602
- spaceId: number;
2603
- creatorType: ResourceNameTypeEnum;
2604
- slotType: SlotTypeEnum;
2605
- slotId: number;
2606
- eventId: number;
2607
- isPrivate: boolean;
2608
- }
2609
- export interface IPurchasedResourcesRaw {
2610
- purchasedId: number;
2611
- purchasedProductUserId: number;
2612
- purchasedResourceId: number;
2613
- purchasedResourceType: ResourceNameTypeEnum;
2614
- purchasedStatus: PurchasedResourceStatusEnum;
2615
- pUserId: number;
2616
- pUserPaymentStatus: PaymentStatusEnum;
2617
- pUserProductId: number;
2618
- pUserProductName: string;
2619
- pUserProductPrice: number;
2620
- pUserProductPriceCurrency: string;
2621
- pUserProductQuantity: number;
2622
- pUserProductQuantityLeft: number;
2623
- pUserUserId: number;
2624
- }
2625
- export interface IUsersPasses {
2626
- userId: number;
2627
- userFirstName: string;
2628
- userLastName: string;
2629
- organizationId: number;
2630
- programId: number;
2631
- programName: string;
2632
- sessionId: number;
2633
- sessionName: string;
2634
- productId: number;
2635
- productName: string;
2636
- productUserId: number;
2637
- purchaseDate: Date;
2638
- passesLeft: number;
2639
- }
2640
- export interface ISessionsLandingPage {
2641
- sessionId: number;
2642
- name: string;
2643
- startDate: Date;
2644
- endDate: Date;
2645
- registrationStartDate: Date;
2646
- registrationEndDate: Date;
2647
- sport: SportsEnum;
2648
- minAge: string;
2649
- maxAge: string;
2650
- maxParticipants?: number;
2651
- gender: GenderEnum;
2652
- activityTimes: ActivityTimes[];
2653
- earlyRegistrationStartDate?: Date;
2654
- earlyRegistrationEndDate?: Date;
2655
- lateRegistrationStartDate?: Date;
2656
- lateRegistrationEndDate?: Date;
2657
- attendeeCount?: number;
2658
- segmentsOrEvents: 'segment' | 'event';
2659
- }
2660
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2661
- hasRequiredMembership: boolean;
2662
- hasEntitledPricing: boolean;
2663
- lowestPrice?: number;
2664
- products?: ISessionLandingPageProduct[];
2665
- }
2666
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2667
- hasRequiredMembership: boolean;
2668
- hasEntitledPricing: boolean;
2669
- products?: ISessionLandingPageProduct[];
2670
- segments?: Event[] | ProgramSeason[];
2671
- programName: string;
2672
- programId: number;
2673
- levelOfPlay: LevelOfPlayEnum[];
2674
- registrationConstraints: IResourceRegistrationData[];
2675
- }
2676
- export interface ISlimAddons {
2677
- addons?: {
2678
- id: number;
2679
- timePeriod: AddonTimePeriodEnum;
2680
- name: string;
2681
- productType?: ProductTypesEnum;
2682
- productSubType?: string;
2683
- }[];
2684
- }
2685
- export interface ISessionLandingPageProduct extends ISlimAddons {
2686
- id: number;
2687
- name: string;
2688
- startDate?: Date;
2689
- endDate?: Date;
2690
- downpayment?: number;
2691
- description?: string;
2692
- prices: Price[];
2693
- productSubType?: ProductSubTypesEnum;
2694
- punchCard: boolean;
2695
- isAddon: boolean;
2696
- defaultPriceId?: number;
2697
- }
2698
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2699
- destinationId?: string;
2700
- stripeCustomerId?: string;
2701
- fee?: number;
2702
- }
2703
- export interface IReservationCreatorData {
2704
- type: ResourceNameTypeEnum;
2705
- id: number;
2706
- organizationId: number;
2707
- startDate: string;
2708
- endDate: string;
2709
- sportId: number;
2710
- }
2711
- export declare enum EntitlementTermsTypesEnum {
2712
- QUESTION = "question",
2713
- CITY = "city",
2714
- MEMBERSHIP = "membership"
2715
- }
2716
- export declare enum ResourceNameTypeEnum {
2717
- EVENT = "event",
2718
- VENUE = "venue",
2719
- TEAM = "team",
2720
- LEAGUE = "league",
2721
- USER = "user",
2722
- ORGANIZATION = "organization",
2723
- APP = "app",
2724
- FEED = "feed",
2725
- MATCH = "match",
2726
- ROUND = "round",
2727
- PORTAL = "portal",
2728
- SEASON = "season",
2729
- TOURNAMENT = "tournament",
2730
- MEMBERSHIP = "membership",
2731
- DIVISION = "division",
2732
- GAMESLOT = "gameslot",
2733
- SPACE = "space",
2734
- RESERVATION = "reservation",
2735
- ORDER = "order",
2736
- CUSTOMER = "customer",
2737
- PACKAGE = "package",
2738
- FACILITY = "facility",
2739
- PROGRAM = "program",
2740
- PROGRAM_SEASON = "program_season",
2741
- PRODUCT = "product",
2742
- GROUP = "group",
2743
- VARIANT = "variant",
2744
- SLOT = "slot",
2745
- ADDON = "addon"
2746
- }
2747
- export declare enum DirectBookingTypesEnum {
2748
- DIRECT_FOR_ALL = "all",
2749
- DIRECT_FOR_NONE = "none",
2750
- DIRECT_VETTED_ONLY = "vetted_only",
2751
- NO_SETTING = "no_setting"
2752
- }
2753
- export declare enum GenderEnum {
2754
- OTHER = 1,
2755
- MALE = 2,
2756
- FEMALE = 3
2757
- }
2758
- export declare enum LevelOfPlayEnum {
2759
- BEGINNER = 1,
2760
- INTERMEDIATE = 2,
2761
- ADVANCED = 3,
2762
- SEMIPRO = 4,
2763
- SPECTATOR = 5
2764
- }
2765
- export declare enum ProgramTypesEnum {
2766
- LEAGUE = 0,
2767
- TOURNAMENT = 1,
2768
- CLASS = 2,
2769
- CLINIC = 3,
2770
- CAMP = 4,
2771
- LESSON = 5,
2772
- CLUB_TEAM = 6
2773
- }
2774
- export declare enum ProgramSeasonTypesEnum {
2775
- ROUND_ROBIN = 1,
2776
- BRACKETS = 2,
2777
- CAMP_CLINIC_CLASS = 3
2414
+ export declare enum ProgramSeasonTypesEnum {
2415
+ ROUND_ROBIN = 1,
2416
+ BRACKETS = 2,
2417
+ CAMP_CLINIC_CLASS = 3
2778
2418
  }
2779
2419
  export declare enum SportsEnum {
2780
2420
  SOFTBALL = 1,
@@ -3016,224 +2656,584 @@ export declare enum DayOfWeekEnum {
3016
2656
  FRIDAY = 5,
3017
2657
  SATURDAY = 6
3018
2658
  }
3019
- export declare enum ActionTypesEnum {
3020
- CREATE = "create",
3021
- READ = "read",
3022
- UPDATE = "update",
3023
- DELETE = "delete"
2659
+ export declare enum ActionTypesEnum {
2660
+ CREATE = "create",
2661
+ READ = "read",
2662
+ UPDATE = "update",
2663
+ DELETE = "delete"
2664
+ }
2665
+ export declare enum ActionSourcePlatformEnum {
2666
+ ADMIN = "admin",
2667
+ BACKOFFICE = "backoffice",
2668
+ CONSUMER = "consumer"
2669
+ }
2670
+ export declare enum RolesEnum {
2671
+ ORG_ADMIN = "organizationAdmin",
2672
+ BOND_ADMIN = "bondAdmin"
2673
+ }
2674
+ export declare enum SeasonPoolStatusEnum {
2675
+ IN_POOL = 5,
2676
+ ASSIGNED = 1,
2677
+ QUIT = 2,
2678
+ SUSPENDED = 3,
2679
+ INACTIVE = 4
2680
+ }
2681
+ export declare enum AmenitiesEnum {
2682
+ HEAT = 1,
2683
+ AC = 2,
2684
+ WIFI = 3,
2685
+ RESTROOMS = 4,
2686
+ DRINKING_FOUNTAIN = 5,
2687
+ PARKING = 6,
2688
+ CONCESSIONS = 7,
2689
+ SHELTER = 8,
2690
+ PORTABLE_RESTROOMS = 9,
2691
+ LIGHTS = 10,
2692
+ LOCKER_ROOM = 11,
2693
+ PAID_PARKING = 12,
2694
+ ACCESSIBLE = 13
2695
+ }
2696
+ export declare enum ResourceSubTypeEnum {
2697
+ COURT = "court",
2698
+ FIELD = "field",
2699
+ ROOM = "room",
2700
+ DIAMOND = "diamond",
2701
+ RINK = "rink",
2702
+ STUDIO = "studio",
2703
+ POOL = "pool",
2704
+ BATTING_CAGE = "batting cage",
2705
+ SHELTER = "shelter",
2706
+ GOLF_SIMULATOR = "golf simulator"
2707
+ }
2708
+ export declare enum ResourceTypeEnum {
2709
+ SPACE = "space"
2710
+ }
2711
+ export declare enum ResourceAgesEnum {
2712
+ ADULTS = "adults",
2713
+ CHILDREN = "children"
2714
+ }
2715
+ export declare enum SpacePropertiesEnum {
2716
+ OUTDOOR = "outdoor",
2717
+ INDOOR = "indoor"
2718
+ }
2719
+ export declare enum SurfacesEnum {
2720
+ GRASS = "grass",
2721
+ TURF = "turf",
2722
+ FIELD_TURF = "fieldTurf",
2723
+ ASTRO_TURF = "astroTurf",
2724
+ HARDWOOD = "hardwood",
2725
+ ASPHALT = "asphalt",
2726
+ SAND = "sand",
2727
+ ICE = "ice",
2728
+ SPORT_COURT = "sportCourt"
2729
+ }
2730
+ export declare enum RegistrationConstraintPeriodTypeEnum {
2731
+ MINUTES = "minutes",
2732
+ DAYS = "days"
2733
+ }
2734
+ export declare enum RegistrationWindowStatusEnum {
2735
+ NOT_OPEN_YET = "not_opened_yet",
2736
+ OPEN = "open",
2737
+ CLOSED = "closed"
2738
+ }
2739
+ export declare enum RegistrationValidationStatusEnum {
2740
+ FULL = "full",
2741
+ ALREADY_REGISTERED = "registered",
2742
+ AVAILABLE = "available",
2743
+ NOT_OPEN_YET = "not opened",
2744
+ ALREADY_CLOSED = "closed",
2745
+ NO_PRODUCT_FOUND = "no-product-found"
2746
+ }
2747
+ export declare enum DiscountMethodsEnum {
2748
+ PERCENT = "percent",
2749
+ AMOUNT = "amount"
2750
+ }
2751
+ export declare enum UserAuthorizationsTypeEnum {
2752
+ ORGANIZATION = "organization"
2753
+ }
2754
+ export declare enum OrganizationLocaleDateEnum {
2755
+ USA = "USA"
2756
+ }
2757
+ export declare enum DateTimeFormatsEnum {
2758
+ API_DATE = "YYYY/MM/DD",
2759
+ API_TIME = "HH:mm:ss"
2760
+ }
2761
+ export declare enum SlotTypeEnum {
2762
+ EXTERNAL = "external",
2763
+ INTERNAL = "internal",
2764
+ MAINTENANCE = "maintenance",
2765
+ CUSTOM = "custom"
2766
+ }
2767
+ export declare enum PlatformsEnum {
2768
+ CONSUMER = "consumer",
2769
+ BO = "backoffice",
2770
+ MOBILE = "mobile",
2771
+ CRON = "cron"
2772
+ }
2773
+ export declare enum ShiftStatusEnum {
2774
+ OPEN = "open",
2775
+ CLOSED = "closed",
2776
+ MANAGMENT_CLOSED = "closed_by_manager",
2777
+ RECONCILED = "reconciled"
2778
+ }
2779
+ export declare enum EventStatusEnum {
2780
+ OPEN = 1,
2781
+ DRAFT = 2,
2782
+ FULL = 3,
2783
+ CANCELLED = 4,
2784
+ CLOSED = 5,
2785
+ DELETED = 6
2786
+ }
2787
+ export declare enum ReservationTypeEnum {
2788
+ RENTAL = "rental",
2789
+ PROGRAM = "program",
2790
+ MAINTENANCE = "maintenance",
2791
+ CUSTOM = "custom"
2792
+ }
2793
+ export declare enum SlotDurationTypeEnum {
2794
+ DATES = "dates",
2795
+ ALL_DAY = "all day",
2796
+ DURATION = "duration"
2797
+ }
2798
+ export declare enum DurationUnitTypesEnum {
2799
+ MINUTES = "minutes",
2800
+ HOURS = "hours"
2801
+ }
2802
+ export declare enum FrequencyEnum {
2803
+ NONE = "none",
2804
+ WEEKLY = "weekly",
2805
+ DAILY = "daily",
2806
+ MONTHLY = "monthly",
2807
+ YEARLY = "yearly"
2808
+ }
2809
+ export declare enum MaintenanceTimingEnum {
2810
+ BEFORE = 1,
2811
+ AFTER = 2,
2812
+ AT_THE_BEGINING = 3,
2813
+ AT_THE_END = 4
2814
+ }
2815
+ export declare enum CreatorTypeEnum {
2816
+ SPACE = "space",
2817
+ PROGRAM_SEASON = "program_season"
2818
+ }
2819
+ export declare enum UpdatePricesTypeEnum {
2820
+ INDIVIDUAL = "indvidual",
2821
+ CATEGORY = "category",
2822
+ GLOBAL = "global"
2823
+ }
2824
+ export declare enum BondDayOfWeekEnum {
2825
+ MONDAY = 2,
2826
+ TUESDAY = 3,
2827
+ WEDNESDAY = 4,
2828
+ THURSDAY = 5,
2829
+ FRIDAY = 6,
2830
+ SATURDAY = 7,
2831
+ SUNDAY = 8
2832
+ }
2833
+ export declare enum ReservationMigrationStatusEnum {
2834
+ NEW = "new",
2835
+ NO = "no",
2836
+ YES = "yes"
2837
+ }
2838
+ export declare enum ProductPackageLevelEnum {
2839
+ HOUR = "hour",
2840
+ SLOT = "slot",
2841
+ RESERVATION = "reservation"
2842
+ }
2843
+ export declare enum CancellationStatusEnum {
2844
+ IMMEDIATE = "immediate",
2845
+ AUTO_RENEWAL = "auto_renewal"
2846
+ }
2847
+ export declare enum SeasonScheduleStatusEnum {
2848
+ DRAFT = 0,
2849
+ PUBLISHED = 1
2850
+ }
2851
+ export declare enum FinancialStepEnum {
2852
+ VOID = "void",
2853
+ REFUND = "refund",
2854
+ NONE = "none",
2855
+ REFUND_AND_VOID = "refund-and-void",
2856
+ APPEND = "append"
2857
+ }
2858
+ export declare enum StripeAccountTypesEnum {
2859
+ STRIPE = "stripe",
2860
+ STRIPE_CUSTOM = "stripe:account:custom",
2861
+ STRIPE_CUSTOMER = "stripe:customer"
2862
+ }
2863
+ export declare enum LinkedAccountStatus {
2864
+ PENDING = 1,
2865
+ ACTIVE = 2,
2866
+ PRE_PENDING = 3
2867
+ }
2868
+ export declare enum AddonParentTypeEnum {
2869
+ RESERVATION = "reservation",
2870
+ SLOT = "slot"
2871
+ }
2872
+ export declare enum EEmailStatus {
2873
+ SENT = "sent",
2874
+ OPENED = "opened",
2875
+ PAID = "paid",
2876
+ CANCELED = "canceled"
2877
+ }
2878
+ export interface IEntitlementTerms {
2879
+ type: EntitlementTermsTypesEnum;
2880
+ id?: number;
2881
+ value?: string;
2882
+ minValue?: string;
2883
+ maxValue?: string;
2884
+ }
2885
+ export interface IQuestionAnswerObject {
2886
+ questionId: number;
2887
+ value: string;
2888
+ }
2889
+ export interface ILowestPriceForItem {
2890
+ itemId: number;
2891
+ itemType: ResourceNameTypeEnum;
2892
+ groupId: number;
2893
+ groupName?: string;
2894
+ price: number;
2895
+ overridesPrice: boolean;
2896
+ }
2897
+ export interface IResourcesAvailability {
2898
+ resourceType: ResourceNameTypeEnum;
2899
+ quantity: number;
2900
+ resourcesIds: number[];
2901
+ isPunchCard: boolean;
2902
+ resources?: any[];
2903
+ }
2904
+ export interface IPackageResponse {
2905
+ parentProduct: Product;
2906
+ children: IChildProduct[];
3024
2907
  }
3025
- export declare enum ActionSourcePlatformEnum {
3026
- ADMIN = "admin",
3027
- BACKOFFICE = "backoffice",
3028
- CONSUMER = "consumer"
2908
+ export interface IChildProduct {
2909
+ product: Product;
2910
+ relationType: PackageProductsRelationTypeEnum;
2911
+ timePeriod?: AddonTimePeriodEnum;
3029
2912
  }
3030
- export declare enum RolesEnum {
3031
- ORG_ADMIN = "organizationAdmin",
3032
- BOND_ADMIN = "bondAdmin"
2913
+ export interface ISeasonAttendeeInfo {
2914
+ applicationAnswers: Answer[];
2915
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2916
+ invoices: Order[];
2917
+ payments: Invoice[];
2918
+ products: Product[];
2919
+ redeemNext: ProductsUsers;
3033
2920
  }
3034
- export declare enum SeasonPoolStatusEnum {
3035
- IN_POOL = 5,
3036
- ASSIGNED = 1,
3037
- QUIT = 2,
3038
- SUSPENDED = 3,
3039
- INACTIVE = 4
2921
+ export interface ISeasonAttendeeListInfo {
2922
+ userId: number;
2923
+ userFirstName: string;
2924
+ userLastName: string;
2925
+ userGender: number;
2926
+ userBirthDate: Date;
2927
+ userProfilePicUrl: string;
2928
+ customerId: number;
2929
+ customerEmail: string;
2930
+ paymentStatus: string;
2931
+ productName: string;
2932
+ punchCard: boolean;
3040
2933
  }
3041
- export declare enum AmenitiesEnum {
3042
- HEAT = 1,
3043
- AC = 2,
3044
- WIFI = 3,
3045
- RESTROOMS = 4,
3046
- DRINKING_FOUNTAIN = 5,
3047
- PARKING = 6,
3048
- CONCESSIONS = 7,
3049
- SHELTER = 8,
3050
- PORTABLE_RESTROOMS = 9,
3051
- LIGHTS = 10,
3052
- LOCKER_ROOM = 11,
3053
- PAID_PARKING = 12,
3054
- ACCESSIBLE = 13
2934
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2935
+ segmentType: ResourceNameTypeEnum;
2936
+ participantRegisteredDate?: string;
3055
2937
  }
3056
- export declare enum ResourceSubTypeEnum {
3057
- COURT = "court",
3058
- FIELD = "field",
3059
- ROOM = "room",
3060
- DIAMOND = "diamond",
3061
- RINK = "rink",
3062
- STUDIO = "studio",
3063
- POOL = "pool",
3064
- BATTING_CAGE = "batting cage",
3065
- SHELTER = "shelter",
3066
- GOLF_SIMULATOR = "golf simulator"
2938
+ export declare class EventAsSeasonSegment extends Event {
2939
+ segmentType: ResourceNameTypeEnum;
2940
+ participantRegisteredDate?: string;
3067
2941
  }
3068
- export declare enum ResourceTypeEnum {
3069
- SPACE = "space"
2942
+ export interface ITokenResonse {
2943
+ token: string;
3070
2944
  }
3071
- export declare enum ResourceAgesEnum {
3072
- ADULTS = "adults",
3073
- CHILDREN = "children"
2945
+ export interface IStripeBondInvoices {
2946
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2947
+ bondPaidInvoice: Invoice;
2948
+ order?: Order;
2949
+ customer?: Customer;
3074
2950
  }
3075
- export declare enum SpacePropertiesEnum {
3076
- OUTDOOR = "outdoor",
3077
- INDOOR = "indoor"
2951
+ export interface IPartialPaymentData {
2952
+ purchasingUserId: number;
2953
+ paymentData: PurchasePaymentDto;
2954
+ amountToPay: number;
3078
2955
  }
3079
- export declare enum SurfacesEnum {
3080
- GRASS = "grass",
3081
- TURF = "turf",
3082
- FIELD_TURF = "fieldTurf",
3083
- ASTRO_TURF = "astroTurf",
3084
- HARDWOOD = "hardwood",
3085
- ASPHALT = "asphalt",
3086
- SAND = "sand",
3087
- ICE = "ice",
3088
- SPORT_COURT = "sportCourt"
2956
+ export interface IPayment {
2957
+ id: number;
2958
+ total: number;
2959
+ paymentMethod: PaymentMethodTypeEnum;
2960
+ status: PaymentStatusEnum;
2961
+ createdAt: Date;
2962
+ invoices: number[];
3089
2963
  }
3090
- export declare enum RegistrationConstraintPeriodTypeEnum {
3091
- MINUTES = "minutes",
3092
- DAYS = "days"
2964
+ export interface IPaginationData<T> {
2965
+ meta: {
2966
+ totalItems: number;
2967
+ itemsPerPage: number;
2968
+ totalPages: number;
2969
+ currentPage: number;
2970
+ };
2971
+ data: T[];
3093
2972
  }
3094
- export declare enum RegistrationWindowStatusEnum {
3095
- NOT_OPEN_YET = "not_opened_yet",
3096
- OPEN = "open",
3097
- CLOSED = "closed"
2973
+ export interface IPricesOfProductsResults {
2974
+ productId: number;
2975
+ userId: number;
2976
+ price: number;
2977
+ groupId?: number;
2978
+ groupName?: string;
2979
+ originalPrice?: number;
2980
+ priceWithoutTax: number;
2981
+ tax: number;
2982
+ isTaxInclusive: boolean;
3098
2983
  }
3099
- export declare enum RegistrationValidationStatusEnum {
3100
- FULL = "full",
3101
- ALREADY_REGISTERED = "registered",
3102
- AVAILABLE = "available",
3103
- NOT_OPEN_YET = "not opened",
3104
- ALREADY_CLOSED = "closed",
3105
- NO_PRODUCT_FOUND = "no-product-found"
2984
+ export interface IPaymentMethodToFundLeft {
2985
+ paymentType: PaymentMethodTypeEnum;
2986
+ paymentMethodId: string;
2987
+ fundLeft: number;
2988
+ ccLast4?: string;
2989
+ ccBrand?: string;
3106
2990
  }
3107
- export declare enum DiscountMethodsEnum {
3108
- PERCENT = "percent",
3109
- AMOUNT = "amount"
2991
+ export interface IVariantsAndTitle {
2992
+ title: VariantTitle;
2993
+ variants: Variant[];
3110
2994
  }
3111
- export declare enum UserAuthorizationsTypeEnum {
3112
- ORGANIZATION = "organization"
2995
+ export interface IProgramSeasonActivityTimes {
2996
+ dayOfWeek: number;
2997
+ open: string;
2998
+ close: string;
3113
2999
  }
3114
- export declare enum OrganizationLocaleDateEnum {
3115
- USA = "USA"
3000
+ export interface IProgramSeasonActivityTimesAsDates {
3001
+ date: string;
3002
+ startTime: string;
3003
+ endTime: string;
3116
3004
  }
3117
- export declare enum DateTimeFormatsEnum {
3118
- API_DATE = "YYYY/MM/DD",
3119
- API_TIME = "HH:mm:ss"
3005
+ export interface IBlockedDates {
3006
+ name: string;
3007
+ startDate: Date;
3008
+ endDate: Date;
3120
3009
  }
3121
- export declare enum SlotTypeEnum {
3122
- EXTERNAL = "external",
3123
- INTERNAL = "internal",
3124
- MAINTENANCE = "maintenance",
3125
- CUSTOM = "custom"
3010
+ export interface ISingleMemberForRenewal {
3011
+ member_id: number;
3012
+ member_membershipId: number;
3013
+ member_userId: number;
3014
+ member_nextPaymentMethodId?: string;
3015
+ member_nextPaymentType?: PaymentMethodTypeEnum;
3016
+ member_answerTitleIds?: number[];
3017
+ member_organizationId: number;
3018
+ line_paidAmount: number;
3019
+ line_productId: number;
3020
+ order_payingUserId: number;
3021
+ order_paymentMethodId: string;
3022
+ order_paymentType: PaymentMethodTypeEnum;
3023
+ endDate: Date;
3024
+ membership_name: string;
3025
+ user_firstName: string;
3026
+ user_lastName: string;
3027
+ user_email: string;
3126
3028
  }
3127
- export declare enum PlatformsEnum {
3128
- CONSUMER = "consumer",
3129
- BO = "backoffice",
3130
- MOBILE = "mobile",
3131
- CRON = "cron"
3029
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3030
+ package_parentProductId: number;
3031
+ line2_paidAmount: number;
3032
+ familyid: number;
3033
+ order_id: number;
3132
3034
  }
3133
- export declare enum ShiftStatusEnum {
3134
- OPEN = "open",
3135
- CLOSED = "closed",
3136
- MANAGMENT_CLOSED = "closed_by_manager",
3137
- RECONCILED = "reconciled"
3035
+ export interface IResourceRegistrationData {
3036
+ id: number;
3037
+ resourceType: ResourceNameTypeEnum;
3038
+ openNumDays?: number;
3039
+ openNumMinutes?: number;
3040
+ openTime?: string;
3041
+ closeNumDays?: number;
3042
+ closeNumMinutes?: number;
3043
+ closeTime?: string;
3044
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
3138
3045
  }
3139
- export declare enum EventStatusEnum {
3140
- OPEN = 1,
3141
- DRAFT = 2,
3142
- FULL = 3,
3143
- CANCELLED = 4,
3144
- CLOSED = 5,
3145
- DELETED = 6
3046
+ export interface IResourceDataForConstraintsCalc {
3047
+ id: number;
3048
+ startDate: string;
3049
+ startTime: string;
3146
3050
  }
3147
- export declare enum ReservationTypeEnum {
3148
- RENTAL = "rental",
3149
- PROGRAM = "program",
3150
- MAINTENANCE = "maintenance",
3151
- CUSTOM = "custom"
3051
+ export interface IRegistrationConstraintsSetting {
3052
+ numDays?: number;
3053
+ numMinutes?: number;
3152
3054
  }
3153
- export declare enum SlotDurationTypeEnum {
3154
- DATES = "dates",
3155
- ALL_DAY = "all day",
3156
- DURATION = "duration"
3055
+ export interface IAttendeeDataToNotify {
3056
+ firstName: string;
3057
+ lastName: string;
3058
+ email: string;
3059
+ sessionName: string;
3060
+ parentSessionName?: string;
3061
+ organizationName: string;
3062
+ programName: string;
3157
3063
  }
3158
- export declare enum DurationUnitTypesEnum {
3159
- MINUTES = "minutes",
3160
- HOURS = "hours"
3064
+ export interface IEventInSchedule {
3065
+ eventId: number;
3066
+ eventName: string;
3067
+ eventStartDate: string;
3068
+ eventEndDate: string;
3069
+ eventStartTime: string;
3070
+ eventEndTime: string;
3071
+ programId: number;
3072
+ programName: string;
3073
+ programType: ProgramTypesEnum;
3074
+ sessionId: number;
3075
+ sessionName: string;
3076
+ sports: number;
3077
+ spaces: {
3078
+ spaceId: number;
3079
+ spaceName: string;
3080
+ }[];
3081
+ status?: RegistrationValidationStatusEnum;
3161
3082
  }
3162
- export declare enum FrequencyEnum {
3163
- NONE = "none",
3164
- WEEKLY = "weekly",
3165
- DAILY = "daily",
3166
- MONTHLY = "monthly",
3167
- YEARLY = "yearly"
3083
+ export interface ISlotInSchedule {
3084
+ facilityId: number;
3085
+ facilityName: string;
3086
+ spaces: ISpaceWithSlots[];
3168
3087
  }
3169
- export declare enum MaintenanceTimingEnum {
3170
- BEFORE = 1,
3171
- AFTER = 2,
3172
- AT_THE_BEGINING = 3,
3173
- AT_THE_END = 4
3088
+ export interface ISpaceWithSlots {
3089
+ id: number;
3090
+ name: string;
3091
+ slots: ISlotReservationData[];
3174
3092
  }
3175
- export declare enum CreatorTypeEnum {
3176
- SPACE = "space",
3177
- PROGRAM_SEASON = "program_season"
3093
+ export interface ISlotReservationData {
3094
+ reservationId: number;
3095
+ reservationName: string;
3096
+ date: string;
3097
+ startTime: string;
3098
+ endTime: string;
3099
+ notes: string;
3100
+ spaceId: number;
3101
+ isRental: boolean;
3102
+ slotType: SlotTypeEnum;
3103
+ slotId: number;
3104
+ eventId: number;
3105
+ isPrivate: boolean;
3178
3106
  }
3179
- export declare enum UpdatePricesTypeEnum {
3180
- INDIVIDUAL = "indvidual",
3181
- CATEGORY = "category",
3182
- GLOBAL = "global"
3107
+ export interface IRawEventInSchedule extends IEventInSchedule {
3108
+ parentSessionId: number;
3109
+ parentSessionName: string;
3110
+ eventTimezone: string;
3111
+ maxParticipants: number;
3112
+ maxMaleParticipants: number;
3113
+ maxFemaleParticipants: number;
3114
+ isPunchCard: boolean;
3183
3115
  }
3184
- export declare enum BondDayOfWeekEnum {
3185
- MONDAY = 2,
3186
- TUESDAY = 3,
3187
- WEDNESDAY = 4,
3188
- THURSDAY = 5,
3189
- FRIDAY = 6,
3190
- SATURDAY = 7,
3191
- SUNDAY = 8
3116
+ export interface IBasicSpaceAndSlotCreator {
3117
+ id: number;
3118
+ name: string;
3119
+ bookingCreatorId: number;
3192
3120
  }
3193
- export declare enum ReservationMigrationStatusEnum {
3194
- NEW = "new",
3195
- NO = "no",
3196
- YES = "yes"
3121
+ export interface IRawSlotInSchedule {
3122
+ startDate: string;
3123
+ endDate: string;
3124
+ startTime: string;
3125
+ endTime: string;
3126
+ reservationId: number;
3127
+ eventTitle: string;
3128
+ publicNotes: string;
3129
+ spaceId: number;
3130
+ creatorType: ResourceNameTypeEnum;
3131
+ slotType: SlotTypeEnum;
3132
+ slotId: number;
3133
+ eventId: number;
3134
+ isPrivate: boolean;
3197
3135
  }
3198
- export declare enum ProductPackageLevelEnum {
3199
- HOUR = "hour",
3200
- SLOT = "slot",
3201
- RESERVATION = "reservation"
3136
+ export interface IPurchasedResourcesRaw {
3137
+ purchasedId: number;
3138
+ purchasedProductUserId: number;
3139
+ purchasedResourceId: number;
3140
+ purchasedResourceType: ResourceNameTypeEnum;
3141
+ purchasedStatus: PurchasedResourceStatusEnum;
3142
+ pUserId: number;
3143
+ pUserPaymentStatus: PaymentStatusEnum;
3144
+ pUserProductId: number;
3145
+ pUserProductName: string;
3146
+ pUserProductPrice: number;
3147
+ pUserProductPriceCurrency: string;
3148
+ pUserProductQuantity: number;
3149
+ pUserProductQuantityLeft: number;
3150
+ pUserUserId: number;
3202
3151
  }
3203
- export declare enum CancellationStatusEnum {
3204
- IMMEDIATE = "immediate",
3205
- AUTO_RENEWAL = "auto_renewal"
3152
+ export interface IUsersPasses {
3153
+ userId: number;
3154
+ userFirstName: string;
3155
+ userLastName: string;
3156
+ organizationId: number;
3157
+ programId: number;
3158
+ programName: string;
3159
+ sessionId: number;
3160
+ sessionName: string;
3161
+ productId: number;
3162
+ productName: string;
3163
+ productUserId: number;
3164
+ purchaseDate: Date;
3165
+ passesLeft: number;
3206
3166
  }
3207
- export declare enum SeasonScheduleStatusEnum {
3208
- DRAFT = 0,
3209
- PUBLISHED = 1
3167
+ export interface ISessionsLandingPage {
3168
+ sessionId: number;
3169
+ name: string;
3170
+ startDate: Date;
3171
+ endDate: Date;
3172
+ registrationStartDate: Date;
3173
+ registrationEndDate: Date;
3174
+ sport: SportsEnum;
3175
+ minAge: string;
3176
+ maxAge: string;
3177
+ maxParticipants?: number;
3178
+ gender: GenderEnum;
3179
+ activityTimes: ActivityTimes[];
3180
+ earlyRegistrationStartDate?: Date;
3181
+ earlyRegistrationEndDate?: Date;
3182
+ lateRegistrationStartDate?: Date;
3183
+ lateRegistrationEndDate?: Date;
3184
+ attendeeCount?: number;
3185
+ segmentsOrEvents: 'segment' | 'event';
3210
3186
  }
3211
- export declare enum FinancialStepEnum {
3212
- VOID = "void",
3213
- REFUND = "refund",
3214
- NONE = "none",
3215
- REFUND_AND_VOID = "refund-and-void",
3216
- APPEND = "append"
3187
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3188
+ hasRequiredMembership: boolean;
3189
+ hasEntitledPricing: boolean;
3190
+ lowestPrice?: number;
3191
+ products?: ISessionLandingPageProduct[];
3217
3192
  }
3218
- export declare enum StripeAccountTypesEnum {
3219
- STRIPE = "stripe",
3220
- STRIPE_CUSTOM = "stripe:account:custom",
3221
- STRIPE_CUSTOMER = "stripe:customer"
3193
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3194
+ hasRequiredMembership: boolean;
3195
+ hasEntitledPricing: boolean;
3196
+ products?: ISessionLandingPageProduct[];
3197
+ segments?: Event[] | ProgramSeason[];
3198
+ programName: string;
3199
+ programId: number;
3200
+ levelOfPlay: LevelOfPlayEnum[];
3201
+ registrationConstraints: IResourceRegistrationData[];
3222
3202
  }
3223
- export declare enum LinkedAccountStatus {
3224
- PENDING = 1,
3225
- ACTIVE = 2,
3226
- PRE_PENDING = 3
3203
+ export interface ISlimAddons {
3204
+ addons?: {
3205
+ id: number;
3206
+ timePeriod: AddonTimePeriodEnum;
3207
+ name: string;
3208
+ productType?: ProductTypesEnum;
3209
+ productSubType?: string;
3210
+ }[];
3227
3211
  }
3228
- export declare enum AddonParentTypeEnum {
3229
- RESERVATION = "reservation",
3230
- SLOT = "slot"
3212
+ export interface ISessionLandingPageProduct extends ISlimAddons {
3213
+ id: number;
3214
+ name: string;
3215
+ startDate?: Date;
3216
+ endDate?: Date;
3217
+ downpayment?: number;
3218
+ description?: string;
3219
+ prices: Price[];
3220
+ productSubType?: ProductSubTypesEnum;
3221
+ punchCard: boolean;
3222
+ isAddon: boolean;
3223
+ defaultPriceId?: number;
3231
3224
  }
3232
- export declare enum EEmailStatus {
3233
- SENT = "sent",
3234
- OPENED = "opened",
3235
- PAID = "paid",
3236
- CANCELED = "canceled"
3225
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3226
+ destinationId?: string;
3227
+ stripeCustomerId?: string;
3228
+ fee?: number;
3229
+ }
3230
+ export interface IReservationCreatorData {
3231
+ type: ResourceNameTypeEnum;
3232
+ id: number;
3233
+ organizationId: number;
3234
+ startDate: string;
3235
+ endDate: string;
3236
+ sportId: number;
3237
3237
  }
3238
3238
  export declare class ColumnNumericTransformer {
3239
3239
  to(data: number): number;
@@ -3298,13 +3298,6 @@ export declare class ProductImportDto {
3298
3298
  resourceIds: number[];
3299
3299
  oldId: number;
3300
3300
  }
3301
- export declare class PunchPassDto {
3302
- CustomerID: string;
3303
- QuantityLeft: number;
3304
- BondProgramID: number;
3305
- BondSessionID: number;
3306
- ProductID: number;
3307
- }
3308
3301
  export declare class ImportedSlotProductDto {
3309
3302
  slotID?: string;
3310
3303
  name?: string;
@@ -3356,6 +3349,13 @@ export declare class ImportedReservationDto {
3356
3349
  slots?: ImportedSlotDto[];
3357
3350
  addons?: ImportedSlotProductDto[];
3358
3351
  }
3352
+ export declare class PunchPassDto {
3353
+ CustomerID: string;
3354
+ QuantityLeft: number;
3355
+ BondProgramID: number;
3356
+ BondSessionID: number;
3357
+ ProductID: number;
3358
+ }
3359
3359
  export declare class GameSlots extends BondBaseEntity {
3360
3360
  entityType: string;
3361
3361
  entityId: number;
@@ -3483,15 +3483,15 @@ export declare class Organization extends BondBaseEntity {
3483
3483
  brandings: OrganizationBranding[];
3484
3484
  brandingsV2?: OrganizationBranding[];
3485
3485
  }
3486
- export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3487
- mainAdminUserId?: number;
3488
- }
3489
3486
  export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3490
3487
  key?: string;
3491
3488
  vaule?: string;
3492
3489
  version: number;
3493
3490
  organization: Organization;
3494
3491
  }
3492
+ export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3493
+ mainAdminUserId?: number;
3494
+ }
3495
3495
  export declare class OrganizationUsers extends BondBaseEntity {
3496
3496
  organisationId: number | null;
3497
3497
  userId: number | null;
@@ -4051,6 +4051,12 @@ export declare class Addon extends OrganizationConnectionBaseEntity {
4051
4051
  productUserId?: number;
4052
4052
  productUser?: ProductsUsers;
4053
4053
  }
4054
+ export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4055
+ deletedAt?: Date;
4056
+ reservationId: number;
4057
+ invoiceId: number;
4058
+ slotId: number;
4059
+ }
4054
4060
  export declare class Reservation extends OrganizationConnectionBaseEntity {
4055
4061
  name?: string;
4056
4062
  description?: string;
@@ -4090,12 +4096,6 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
4090
4096
  targetGlobalPrice?: number;
4091
4097
  slots: Slot[];
4092
4098
  }
4093
- export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4094
- deletedAt?: Date;
4095
- reservationId: number;
4096
- invoiceId: number;
4097
- slotId: number;
4098
- }
4099
4099
  export declare class Segment extends OrganizationConnectionBaseEntity {
4100
4100
  deletedAt?: Date;
4101
4101
  reservationId: number;