@bondsports/types 0.0.118 → 0.0.120

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
@@ -1073,15 +1073,6 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
1073
1073
  types?: string;
1074
1074
  resourcesIds?: string;
1075
1075
  }
1076
- export declare class FindByUserIdDto {
1077
- userId: number;
1078
- }
1079
- export declare class FindByFamilyAccountIdDto {
1080
- familyAccountId?: number;
1081
- }
1082
- export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1083
- organizationId: number;
1084
- }
1085
1076
  export declare class StripeCustomerIdDto {
1086
1077
  userId: number;
1087
1078
  }
@@ -1092,6 +1083,15 @@ export declare class AddACHTokenToCustomerDto {
1092
1083
  publicToken: string;
1093
1084
  accountId: string;
1094
1085
  }
1086
+ export declare class FindByUserIdDto {
1087
+ userId: number;
1088
+ }
1089
+ export declare class FindByFamilyAccountIdDto {
1090
+ familyAccountId?: number;
1091
+ }
1092
+ export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1093
+ organizationId: number;
1094
+ }
1095
1095
  export declare class ActivityLogRecord extends BondBaseEntity {
1096
1096
  entityType: ResourceNameTypeEnum;
1097
1097
  entityId: number;
@@ -1129,12 +1129,6 @@ export declare class Address extends BondBaseEntity {
1129
1129
  geo: any;
1130
1130
  deletedAt?: Date;
1131
1131
  }
1132
- export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1133
- questionnaireId: number;
1134
- userId?: number;
1135
- answers: Answer[];
1136
- questionnaire: Questionnaires;
1137
- }
1138
1132
  export declare class Answer extends OrganizationConnectionBaseEntity {
1139
1133
  questionId: number;
1140
1134
  question?: Questions;
@@ -1148,6 +1142,12 @@ export declare class Answer extends OrganizationConnectionBaseEntity {
1148
1142
  metaData: any | null;
1149
1143
  questionText: string | null;
1150
1144
  }
1145
+ export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1146
+ questionnaireId: number;
1147
+ userId?: number;
1148
+ answers: Answer[];
1149
+ questionnaire: Questionnaires;
1150
+ }
1151
1151
  export declare class Athlete extends BondBaseEntity {
1152
1152
  userId: number | null;
1153
1153
  metadata: object | null;
@@ -1827,23 +1827,6 @@ export declare class PaymentV1 extends BondBaseEntity {
1827
1827
  installmentId: number | null;
1828
1828
  invoiceId: string | null;
1829
1829
  }
1830
- export declare class Price extends OrganizationConnectionBaseEntity {
1831
- productId: number;
1832
- product: Product;
1833
- name: string | null;
1834
- price: number;
1835
- currency: CurrencyEnum;
1836
- paymentProcessorId: number | null;
1837
- startDate: Date;
1838
- endDate: Date;
1839
- groupId?: number;
1840
- groupName?: string;
1841
- originalPrice?: number;
1842
- deletedAt?: Date;
1843
- discountMethod?: DiscountMethodsEnum;
1844
- discountValue?: number;
1845
- taxIncludedPrice?: number;
1846
- }
1847
1830
  export declare class Product extends OrganizationConnectionBaseEntity {
1848
1831
  name: string;
1849
1832
  quantity: number;
@@ -1894,6 +1877,23 @@ export declare class Product extends OrganizationConnectionBaseEntity {
1894
1877
  activityTimes: ActivityTimes[];
1895
1878
  purchasedResources: PurchasedResource[];
1896
1879
  }
1880
+ export declare class Price extends OrganizationConnectionBaseEntity {
1881
+ productId: number;
1882
+ product: Product;
1883
+ name: string | null;
1884
+ price: number;
1885
+ currency: CurrencyEnum;
1886
+ paymentProcessorId: number | null;
1887
+ startDate: Date;
1888
+ endDate: Date;
1889
+ groupId?: number;
1890
+ groupName?: string;
1891
+ originalPrice?: number;
1892
+ deletedAt?: Date;
1893
+ discountMethod?: DiscountMethodsEnum;
1894
+ discountValue?: number;
1895
+ taxIncludedPrice?: number;
1896
+ }
1897
1897
  export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1898
1898
  parentProductId: number;
1899
1899
  childProductId: number;
@@ -2068,10 +2068,6 @@ export declare class PurchasedResource extends OrganizationConnectionBaseEntity
2068
2068
  product?: Product;
2069
2069
  event?: Event;
2070
2070
  }
2071
- export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2072
- title: string | null;
2073
- answerTitle: AnswerTitle;
2074
- }
2075
2071
  export declare class Questions extends BondBaseEntity {
2076
2072
  questionType: string | null;
2077
2073
  ordinal: number | null;
@@ -2086,6 +2082,10 @@ export declare class Questions extends BondBaseEntity {
2086
2082
  ownerId: number | null;
2087
2083
  questionnaireId: number | null;
2088
2084
  }
2085
+ export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2086
+ title: string | null;
2087
+ answerTitle: AnswerTitle;
2088
+ }
2089
2089
  export declare class RefundReason extends OrganizationConnectionBaseEntity {
2090
2090
  reason: string;
2091
2091
  ordinal: number;
@@ -2102,6 +2102,34 @@ export declare class RegistrationConstraint extends OrganizationConnectionBaseEn
2102
2102
  closeTime?: string;
2103
2103
  deletedAt?: Date;
2104
2104
  }
2105
+ export declare class Resource extends OrganizationConnectionBaseEntity {
2106
+ name: string;
2107
+ resourceType: ResourceTypeEnum;
2108
+ resourceSubType: ResourceSubTypeEnum;
2109
+ description?: string;
2110
+ longDescription?: string;
2111
+ surface?: SurfacesEnum;
2112
+ properties?: SpacePropertiesEnum[];
2113
+ mainMediaId?: number;
2114
+ mainMedia: Media;
2115
+ sports: SportsEnum[];
2116
+ width?: number;
2117
+ length?: number;
2118
+ amenities?: AmenitiesEnum[];
2119
+ parentSpaceId?: number;
2120
+ ordinal?: number;
2121
+ isAddOn: boolean;
2122
+ ages?: ResourceAgesEnum;
2123
+ deletedAt?: Date;
2124
+ activityTimes: ActivityTimes[];
2125
+ facilities: Facility[];
2126
+ slots?: Slot[];
2127
+ addons?: Addon[];
2128
+ facilityId: number;
2129
+ facility: Facility;
2130
+ purchasedResources: PurchasedResource[];
2131
+ linkSEO: string;
2132
+ }
2105
2133
  export declare class Reservations extends OrganizationConnectionBaseEntity {
2106
2134
  name?: string;
2107
2135
  description?: string;
@@ -2134,34 +2162,6 @@ export declare class Reservations extends OrganizationConnectionBaseEntity {
2134
2162
  publicNotes?: string;
2135
2163
  slots?: Slot[];
2136
2164
  }
2137
- export declare class Resource extends OrganizationConnectionBaseEntity {
2138
- name: string;
2139
- resourceType: ResourceTypeEnum;
2140
- resourceSubType: ResourceSubTypeEnum;
2141
- description?: string;
2142
- longDescription?: string;
2143
- surface?: SurfacesEnum;
2144
- properties?: SpacePropertiesEnum[];
2145
- mainMediaId?: number;
2146
- mainMedia: Media;
2147
- sports: SportsEnum[];
2148
- width?: number;
2149
- length?: number;
2150
- amenities?: AmenitiesEnum[];
2151
- parentSpaceId?: number;
2152
- ordinal?: number;
2153
- isAddOn: boolean;
2154
- ages?: ResourceAgesEnum;
2155
- deletedAt?: Date;
2156
- activityTimes: ActivityTimes[];
2157
- facilities: Facility[];
2158
- slots?: Slot[];
2159
- addons?: Addon[];
2160
- facilityId: number;
2161
- facility: Facility;
2162
- purchasedResources: PurchasedResource[];
2163
- linkSEO: string;
2164
- }
2165
2165
  export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2166
2166
  name: string;
2167
2167
  facilityId: number;
@@ -2362,7 +2362,7 @@ export declare class UserPaymentMethod extends BondBaseEntity {
2362
2362
  userId: number;
2363
2363
  failCount: number;
2364
2364
  isDefault?: boolean;
2365
- paymentMethodType: string;
2365
+ paymentMethodType: PaymentMethodTypeEnum;
2366
2366
  paymentMethodId: string;
2367
2367
  nextAllowedChargeDate?: Date;
2368
2368
  }
@@ -2389,433 +2389,73 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2389
2389
  membershipCollectionId?: string;
2390
2390
  programsCollectionId?: string;
2391
2391
  }
2392
- export interface IEntitlementTerms {
2393
- type: EntitlementTermsTypesEnum;
2394
- id?: number;
2395
- value?: string;
2396
- minValue?: string;
2397
- maxValue?: string;
2398
- }
2399
- export interface IQuestionAnswerObject {
2400
- questionId: number;
2401
- value: string;
2402
- }
2403
- export interface ILowestPriceForItem {
2404
- itemId: number;
2405
- itemType: ResourceNameTypeEnum;
2406
- groupId: number;
2407
- groupName?: string;
2408
- price: number;
2409
- overridesPrice: boolean;
2410
- }
2411
- export interface IResourcesAvailability {
2412
- resourceType: ResourceNameTypeEnum;
2413
- quantity: number;
2414
- resourcesIds: number[];
2415
- isPunchCard: boolean;
2416
- resources?: any[];
2417
- }
2418
- export interface IPackageResponse {
2419
- parentProduct: Product;
2420
- children: IChildProduct[];
2421
- }
2422
- export interface IChildProduct {
2423
- product: Product;
2424
- relationType: PackageProductsRelationTypeEnum;
2425
- timePeriod?: AddonTimePeriodEnum;
2392
+ export declare enum EntitlementTermsTypesEnum {
2393
+ QUESTION = "question",
2394
+ CITY = "city",
2395
+ MEMBERSHIP = "membership"
2426
2396
  }
2427
- export interface ISeasonAttendeeInfo {
2428
- applicationAnswers: Answer[];
2429
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2430
- invoices: Invoice[];
2431
- payments: Payment[];
2432
- products: Product[];
2433
- redeemNext: ProductsUsers;
2397
+ export declare enum ResourceNameTypeEnum {
2398
+ EVENT = "event",
2399
+ VENUE = "venue",
2400
+ TEAM = "team",
2401
+ LEAGUE = "league",
2402
+ USER = "user",
2403
+ ORGANIZATION = "organization",
2404
+ APP = "app",
2405
+ FEED = "feed",
2406
+ MATCH = "match",
2407
+ ROUND = "round",
2408
+ PORTAL = "portal",
2409
+ SEASON = "season",
2410
+ TOURNAMENT = "tournament",
2411
+ MEMBERSHIP = "membership",
2412
+ DIVISION = "division",
2413
+ GAMESLOT = "gameslot",
2414
+ SPACE = "space",
2415
+ RESERVATION = "reservation",
2416
+ INVOICE = "invoice",
2417
+ CUSTOMER = "customer",
2418
+ PACKAGE = "package",
2419
+ FACILITY = "facility",
2420
+ PROGRAM = "program",
2421
+ PROGRAM_SEASON = "program_season",
2422
+ PRODUCT = "product",
2423
+ GROUP = "group",
2424
+ VARIANT = "variant",
2425
+ SLOT = "slot",
2426
+ ADDON = "addon"
2434
2427
  }
2435
- export interface ISeasonAttendeeListInfo {
2436
- userId: number;
2437
- userFirstName: string;
2438
- userLastName: string;
2439
- userGender: number;
2440
- userBirthDate: Date;
2441
- userProfilePicUrl: string;
2442
- customerId: number;
2443
- customerEmail: string;
2444
- paymentStatus: string;
2445
- productName: string;
2446
- punchCard: boolean;
2428
+ export declare enum DirectBookingTypesEnum {
2429
+ DIRECT_FOR_ALL = "all",
2430
+ DIRECT_FOR_NONE = "none",
2431
+ DIRECT_VETTED_ONLY = "vetted_only",
2432
+ NO_SETTING = "no_setting"
2447
2433
  }
2448
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2449
- segmentType: ResourceNameTypeEnum;
2450
- participantRegisteredDate?: string;
2434
+ export declare enum GenderEnum {
2435
+ OTHER = 1,
2436
+ MALE = 2,
2437
+ FEMALE = 3
2451
2438
  }
2452
- export declare class EventAsSeasonSegment extends Event {
2453
- segmentType: ResourceNameTypeEnum;
2454
- participantRegisteredDate?: string;
2439
+ export declare enum LevelOfPlayEnum {
2440
+ BEGINNER = 1,
2441
+ INTERMEDIATE = 2,
2442
+ ADVANCED = 3,
2443
+ SEMIPRO = 4,
2444
+ SPECTATOR = 5
2455
2445
  }
2456
- export interface ITokenResonse {
2457
- token: string;
2446
+ export declare enum ProgramTypesEnum {
2447
+ LEAGUE = 0,
2448
+ TOURNAMENT = 1,
2449
+ CLASS = 2,
2450
+ CLINIC = 3,
2451
+ CAMP = 4,
2452
+ LESSON = 5,
2453
+ CLUB_TEAM = 6
2458
2454
  }
2459
- export interface IStripeBondInvoices {
2460
- paidStripePaymentIntent: Stripe.PaymentIntent;
2461
- bondPaidPayment: Payment;
2462
- invoice?: Invoice;
2463
- customer?: Customer;
2464
- }
2465
- export interface IPartialPaymentData {
2466
- purchasingUserId: number;
2467
- paymentData: PurchasePaymentDto;
2468
- amountToPay: number;
2469
- }
2470
- export interface IPayment {
2471
- id: number;
2472
- total: number;
2473
- paymentMethod: PaymentMethodTypeEnum;
2474
- status: PaymentStatusEnum;
2475
- createdAt: Date;
2476
- invoices: number[];
2477
- }
2478
- export interface IPaginationData<T> {
2479
- meta: {
2480
- totalItems: number;
2481
- itemsPerPage: number;
2482
- totalPages: number;
2483
- currentPage: number;
2484
- };
2485
- data: T[];
2486
- }
2487
- export interface IPricesOfProductsResults {
2488
- productId: number;
2489
- userId: number;
2490
- price: number;
2491
- groupId?: number;
2492
- groupName?: string;
2493
- originalPrice?: number;
2494
- priceWithoutTax: number;
2495
- tax: number;
2496
- isTaxInclusive: boolean;
2497
- }
2498
- export interface IPaymentMethodToFundLeft {
2499
- paymentType: PaymentMethodTypeEnum;
2500
- paymentMethodId: string;
2501
- fundLeft: number;
2502
- ccLast4?: string;
2503
- ccBrand?: string;
2504
- }
2505
- export interface IVariantsAndTitle {
2506
- title: VariantTitle;
2507
- variants: Variant[];
2508
- }
2509
- export interface IProgramSeasonActivityTimes {
2510
- dayOfWeek: number;
2511
- open: string;
2512
- close: string;
2513
- }
2514
- export interface IProgramSeasonActivityTimesAsDates {
2515
- date: string;
2516
- startTime: string;
2517
- endTime: string;
2518
- }
2519
- export interface IBlockedDates {
2520
- name: string;
2521
- startDate: Date;
2522
- endDate: Date;
2523
- }
2524
- export interface ISingleMemberForRenewal {
2525
- member_id: number;
2526
- member_membershipId: number;
2527
- member_userId: number;
2528
- member_nextPaymentMethodId?: string;
2529
- member_nextPaymentType?: PaymentMethodTypeEnum;
2530
- member_answerTitleIds?: number[];
2531
- member_organizationId: number;
2532
- line_paidAmount: number;
2533
- line_productId: number;
2534
- invoice_payingUserId: number;
2535
- invoice_paymentMethodId: string;
2536
- invoice_paymentType: PaymentMethodTypeEnum;
2537
- endDate: Date;
2538
- membership_name: string;
2539
- user_firstName: string;
2540
- user_lastName: string;
2541
- user_email: string;
2542
- }
2543
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2544
- package_parentProductId: number;
2545
- line2_paidAmount: number;
2546
- familyid: number;
2547
- invoice_id: number;
2548
- }
2549
- export interface IResourceRegistrationData {
2550
- id: number;
2551
- resourceType: ResourceNameTypeEnum;
2552
- openNumDays?: number;
2553
- openNumMinutes?: number;
2554
- openTime?: string;
2555
- closeNumDays?: number;
2556
- closeNumMinutes?: number;
2557
- closeTime?: string;
2558
- registrationWindowStatus?: RegistrationWindowStatusEnum;
2559
- }
2560
- export interface IResourceDataForConstraintsCalc {
2561
- id: number;
2562
- startDate: string;
2563
- startTime: string;
2564
- }
2565
- export interface IRegistrationConstraintsSetting {
2566
- numDays?: number;
2567
- numMinutes?: number;
2568
- }
2569
- export interface IAttendeeDataToNotify {
2570
- firstName: string;
2571
- lastName: string;
2572
- email: string;
2573
- sessionName: string;
2574
- parentSessionName?: string;
2575
- organizationName: string;
2576
- programName: string;
2577
- }
2578
- export interface IEventInSchedule {
2579
- eventId: number;
2580
- eventName: string;
2581
- eventStartDate: string;
2582
- eventEndDate: string;
2583
- eventStartTime: string;
2584
- eventEndTime: string;
2585
- programId: number;
2586
- programName: string;
2587
- programType: ProgramTypesEnum;
2588
- sessionId: number;
2589
- sessionName: string;
2590
- sports: number;
2591
- spaces: {
2592
- spaceId: number;
2593
- spaceName: string;
2594
- }[];
2595
- status?: RegistrationValidationStatusEnum;
2596
- }
2597
- export interface ISlotInSchedule {
2598
- facilityId: number;
2599
- facilityName: string;
2600
- spaces: ISpaceWithSlots[];
2601
- }
2602
- export interface ISpaceWithSlots {
2603
- id: number;
2604
- name: string;
2605
- slots: ISlotReservationData[];
2606
- }
2607
- export interface ISlotReservationData {
2608
- reservationId: number;
2609
- reservationName: string;
2610
- date: string;
2611
- startTime: string;
2612
- endTime: string;
2613
- notes: string;
2614
- spaceId: number;
2615
- isRental: boolean;
2616
- slotType: SlotTypeEnum;
2617
- slotId: number;
2618
- eventId: number;
2619
- isPrivate: boolean;
2620
- }
2621
- export interface IRawEventInSchedule extends IEventInSchedule {
2622
- parentSessionId: number;
2623
- parentSessionName: string;
2624
- eventTimezone: string;
2625
- maxParticipants: number;
2626
- maxMaleParticipants: number;
2627
- maxFemaleParticipants: number;
2628
- isPunchCard: boolean;
2629
- }
2630
- export interface IBasicSpaceAndSlotCreator {
2631
- id: number;
2632
- name: string;
2633
- bookingCreatorId: number;
2634
- }
2635
- export interface IRawSlotInSchedule {
2636
- startDate: string;
2637
- endDate: string;
2638
- startTime: string;
2639
- endTime: string;
2640
- reservationId: number;
2641
- eventTitle: string;
2642
- publicNotes: string;
2643
- spaceId: number;
2644
- creatorType: ResourceNameTypeEnum;
2645
- slotType: SlotTypeEnum;
2646
- slotId: number;
2647
- eventId: number;
2648
- isPrivate: boolean;
2649
- }
2650
- export interface IPurchasedResourcesRaw {
2651
- purchasedId: number;
2652
- purchasedProductUserId: number;
2653
- purchasedResourceId: number;
2654
- purchasedResourceType: ResourceNameTypeEnum;
2655
- purchasedStatus: PurchasedResourceStatusEnum;
2656
- pUserId: number;
2657
- pUserPaymentStatus: PaymentStatusEnum;
2658
- pUserProductId: number;
2659
- pUserProductName: string;
2660
- pUserProductPrice: number;
2661
- pUserProductPriceCurrency: string;
2662
- pUserProductQuantity: number;
2663
- pUserProductQuantityLeft: number;
2664
- pUserUserId: number;
2665
- }
2666
- export interface IUsersPasses {
2667
- userId: number;
2668
- userFirstName: string;
2669
- userLastName: string;
2670
- organizationId: number;
2671
- programId: number;
2672
- programName: string;
2673
- sessionId: number;
2674
- sessionName: string;
2675
- productId: number;
2676
- productName: string;
2677
- productUserId: number;
2678
- purchaseDate: Date;
2679
- passesLeft: number;
2680
- }
2681
- export interface ISessionsLandingPage {
2682
- sessionId: number;
2683
- name: string;
2684
- startDate: Date;
2685
- endDate: Date;
2686
- registrationStartDate: Date;
2687
- registrationEndDate: Date;
2688
- sport: SportsEnum;
2689
- minAge: string;
2690
- maxAge: string;
2691
- maxParticipants?: number;
2692
- gender: GenderEnum;
2693
- activityTimes: ActivityTimes[];
2694
- earlyRegistrationStartDate?: Date;
2695
- earlyRegistrationEndDate?: Date;
2696
- lateRegistrationStartDate?: Date;
2697
- lateRegistrationEndDate?: Date;
2698
- attendeeCount?: number;
2699
- segmentsOrEvents: 'segment' | 'event';
2700
- }
2701
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2702
- hasRequiredMembership: boolean;
2703
- hasEntitledPricing: boolean;
2704
- lowestPrice?: number;
2705
- products?: ISessionLandingPageProduct[];
2706
- }
2707
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2708
- hasRequiredMembership: boolean;
2709
- hasEntitledPricing: boolean;
2710
- products?: ISessionLandingPageProduct[];
2711
- segments?: Event[] | ProgramSeason[];
2712
- programName: string;
2713
- programId: number;
2714
- levelOfPlay: LevelOfPlayEnum[];
2715
- registrationConstraints: IResourceRegistrationData[];
2716
- }
2717
- export interface ISlimAddons {
2718
- addons?: {
2719
- id: number;
2720
- timePeriod: AddonTimePeriodEnum;
2721
- name: string;
2722
- productType?: ProductTypesEnum;
2723
- productSubType?: string;
2724
- }[];
2725
- }
2726
- export interface ISessionLandingPageProduct extends ISlimAddons {
2727
- id: number;
2728
- name: string;
2729
- startDate?: Date;
2730
- endDate?: Date;
2731
- downpayment?: number;
2732
- description?: string;
2733
- prices: Price[];
2734
- productSubType?: ProductSubTypesEnum;
2735
- punchCard: boolean;
2736
- isAddon: boolean;
2737
- defaultPriceId?: number;
2738
- }
2739
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2740
- destinationId?: string;
2741
- stripeCustomerId?: string;
2742
- fee?: number;
2743
- }
2744
- export interface IReservationCreatorData {
2745
- type: ResourceNameTypeEnum;
2746
- id: number;
2747
- organizationId: number;
2748
- startDate: string;
2749
- endDate: string;
2750
- sportId: number;
2751
- }
2752
- export declare enum EntitlementTermsTypesEnum {
2753
- QUESTION = "question",
2754
- CITY = "city",
2755
- MEMBERSHIP = "membership"
2756
- }
2757
- export declare enum ResourceNameTypeEnum {
2758
- EVENT = "event",
2759
- VENUE = "venue",
2760
- TEAM = "team",
2761
- LEAGUE = "league",
2762
- USER = "user",
2763
- ORGANIZATION = "organization",
2764
- APP = "app",
2765
- FEED = "feed",
2766
- MATCH = "match",
2767
- ROUND = "round",
2768
- PORTAL = "portal",
2769
- SEASON = "season",
2770
- TOURNAMENT = "tournament",
2771
- MEMBERSHIP = "membership",
2772
- DIVISION = "division",
2773
- GAMESLOT = "gameslot",
2774
- SPACE = "space",
2775
- RESERVATION = "reservation",
2776
- INVOICE = "invoice",
2777
- CUSTOMER = "customer",
2778
- PACKAGE = "package",
2779
- FACILITY = "facility",
2780
- PROGRAM = "program",
2781
- PROGRAM_SEASON = "program_season",
2782
- PRODUCT = "product",
2783
- GROUP = "group",
2784
- VARIANT = "variant",
2785
- SLOT = "slot",
2786
- ADDON = "addon"
2787
- }
2788
- export declare enum DirectBookingTypesEnum {
2789
- DIRECT_FOR_ALL = "all",
2790
- DIRECT_FOR_NONE = "none",
2791
- DIRECT_VETTED_ONLY = "vetted_only",
2792
- NO_SETTING = "no_setting"
2793
- }
2794
- export declare enum GenderEnum {
2795
- OTHER = 1,
2796
- MALE = 2,
2797
- FEMALE = 3
2798
- }
2799
- export declare enum LevelOfPlayEnum {
2800
- BEGINNER = 1,
2801
- INTERMEDIATE = 2,
2802
- ADVANCED = 3,
2803
- SEMIPRO = 4,
2804
- SPECTATOR = 5
2805
- }
2806
- export declare enum ProgramTypesEnum {
2807
- LEAGUE = 0,
2808
- TOURNAMENT = 1,
2809
- CLASS = 2,
2810
- CLINIC = 3,
2811
- CAMP = 4,
2812
- LESSON = 5,
2813
- CLUB_TEAM = 6
2814
- }
2815
- export declare enum ProgramSeasonTypesEnum {
2816
- ROUND_ROBIN = 1,
2817
- BRACKETS = 2,
2818
- CAMP_CLINIC_CLASS = 3
2455
+ export declare enum ProgramSeasonTypesEnum {
2456
+ ROUND_ROBIN = 1,
2457
+ BRACKETS = 2,
2458
+ CAMP_CLINIC_CLASS = 3
2819
2459
  }
2820
2460
  export declare enum SportsEnum {
2821
2461
  SOFTBALL = 1,
@@ -2923,369 +2563,737 @@ export declare enum ReservationStatusEnum {
2923
2563
  REJECTED = "Rejected",
2924
2564
  CANCELED = "Canceled"
2925
2565
  }
2926
- export declare enum PaymentStatusV1Enum {
2927
- SENT_TO_CLIENT = 1,
2928
- SENT_FOR_PAYMENT = 2,
2929
- ACCEPTED = 3,
2930
- REJECTED = 4,
2931
- CANCELLED = 5,
2932
- FRAUD = 6,
2933
- NOT_RELEVANT = 7,
2934
- PENDING = 8
2566
+ export declare enum PaymentStatusV1Enum {
2567
+ SENT_TO_CLIENT = 1,
2568
+ SENT_FOR_PAYMENT = 2,
2569
+ ACCEPTED = 3,
2570
+ REJECTED = 4,
2571
+ CANCELLED = 5,
2572
+ FRAUD = 6,
2573
+ NOT_RELEVANT = 7,
2574
+ PENDING = 8
2575
+ }
2576
+ export declare enum PaymentMethodsEnum {
2577
+ STRIPE = 1,
2578
+ CASH = 3
2579
+ }
2580
+ export declare enum PackageProductsRelationTypeEnum {
2581
+ CHILD = "child",
2582
+ UPSALE = "upsale"
2583
+ }
2584
+ export declare enum AddonTimePeriodEnum {
2585
+ FULL = "full",
2586
+ SESSION = "session",
2587
+ EVENT = "event"
2588
+ }
2589
+ export declare enum CurrencyEnum {
2590
+ USD = "USD"
2591
+ }
2592
+ export declare enum NotificationTypeEnum {
2593
+ BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2594
+ BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2595
+ BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2596
+ }
2597
+ export declare enum ProductTypesEnum {
2598
+ RESERVATION = "reservation",
2599
+ REGISTRATION = "registration",
2600
+ MEMBERSHIP = "membership",
2601
+ GOODS = "goods",
2602
+ PACKAGE = "package",
2603
+ REFUND_COMPENSATION = "refund",
2604
+ CASH_OVER_SHORT = "cash_over_short",
2605
+ PETTY_CASH = "petty_cash",
2606
+ LEAGUE_REGISTRATION = "league_registration",
2607
+ TAX = "tax"
2608
+ }
2609
+ export declare enum InvoiceStatusEnum {
2610
+ ACTIVE = "active",
2611
+ WAITING_ADMIN = "waitingAdmin",
2612
+ WAITING_CLIENT = "waitingClient",
2613
+ CANCELED = "canceled"
2614
+ }
2615
+ export declare enum LineItemsStatusEnum {
2616
+ USER_PRODUCT = "UserProduct",
2617
+ RENTAL_PRODUCT = "RentalProduct"
2618
+ }
2619
+ export declare enum ProductSubTypesEnum {
2620
+ SEASON_INDIVIDUAL = "season_individual",
2621
+ SEASON_TEAM = "season_team",
2622
+ SEASON_PER_PLAYER = "season_per_player"
2623
+ }
2624
+ export declare enum PaymentMethodTypeEnum {
2625
+ CREDIT_CARD = "card",
2626
+ ACH = "ach",
2627
+ CASH = "cash",
2628
+ CHECK = "check",
2629
+ BALANCE = "balance",
2630
+ CARD_ON_TERMINAL = "card-on-terminal",
2631
+ OTHER = "other",
2632
+ MIGRATED = "migrated",
2633
+ VOID = "void"
2634
+ }
2635
+ export declare enum RefundTypeEnum {
2636
+ LEAVE_BALANCE = "leave_balance",
2637
+ REDUCE_BALANCE = "reduce_balance"
2638
+ }
2639
+ export declare enum CustomerInMembershipTypeEnum {
2640
+ INDIVIDUAL = "individual",
2641
+ FAMILY = "family",
2642
+ ORGANIZATION = "organization"
2643
+ }
2644
+ export declare enum MembershipTypeEnum {
2645
+ FIXED = "fix_membership",
2646
+ ROLLING = "rolling_membership"
2647
+ }
2648
+ export declare enum CustomerTypeEnum {
2649
+ USER = "user",
2650
+ FAMILY = "family",
2651
+ ORGANIZATION = "organization"
2652
+ }
2653
+ export declare enum GroupStatusEnum {
2654
+ ACTIVE = 1,
2655
+ INACTIVE = 2,
2656
+ DRAFT = 3
2657
+ }
2658
+ export declare enum FutureInstallmentStatusEnum {
2659
+ FUTURE = "future",
2660
+ SUCCEEDED = "succeeded",
2661
+ FAILED = "failed",
2662
+ CANCELED = "canceled"
2663
+ }
2664
+ export declare enum EntryStatusEnum {
2665
+ ENTERED = 1,
2666
+ NOT_ENTERED = 2,
2667
+ CANCELED = 3
2668
+ }
2669
+ export declare enum PurchasedResourceStatusEnum {
2670
+ ACTIVE = 1,
2671
+ MOVED = 2,
2672
+ CANCELED = 3
2673
+ }
2674
+ export declare enum TeamCanJoinEnum {
2675
+ ANYONE = "anyone",
2676
+ BY_INVITE = "byInvite",
2677
+ CAPTAIN_APPROVAL = "captainApproval"
2678
+ }
2679
+ export declare enum TeamMemberStatusEnum {
2680
+ PENDING = 1,
2681
+ ACTIVE = 2,
2682
+ DECLINED = 3,
2683
+ SUSPENDED = 4,
2684
+ INACTIVE = 5,
2685
+ INVITED = 6
2686
+ }
2687
+ export declare enum TeamMemberRoleEnum {
2688
+ NULL = 0,
2689
+ ADMIN = 1
2690
+ }
2691
+ export declare enum DayOfWeekEnum {
2692
+ SUNDAY = 0,
2693
+ MONDAY = 1,
2694
+ TUESDAY = 2,
2695
+ WEDNESDAY = 3,
2696
+ THURSDAY = 4,
2697
+ FRIDAY = 5,
2698
+ SATURDAY = 6
2699
+ }
2700
+ export declare enum ActionTypesEnum {
2701
+ CREATE = "create",
2702
+ READ = "read",
2703
+ UPDATE = "update",
2704
+ DELETE = "delete"
2705
+ }
2706
+ export declare enum ActionSourcePlatformEnum {
2707
+ ADMIN = "admin",
2708
+ BACKOFFICE = "backoffice",
2709
+ CONSUMER = "consumer"
2710
+ }
2711
+ export declare enum RolesEnum {
2712
+ ORG_ADMIN = "organizationAdmin",
2713
+ BOND_ADMIN = "bondAdmin"
2714
+ }
2715
+ export declare enum SeasonPoolStatusEnum {
2716
+ IN_POOL = 5,
2717
+ ASSIGNED = 1,
2718
+ QUIT = 2,
2719
+ SUSPENDED = 3,
2720
+ INACTIVE = 4
2721
+ }
2722
+ export declare enum AmenitiesEnum {
2723
+ HEAT = 1,
2724
+ AC = 2,
2725
+ WIFI = 3,
2726
+ RESTROOMS = 4,
2727
+ DRINKING_FOUNTAIN = 5,
2728
+ PARKING = 6,
2729
+ CONCESSIONS = 7,
2730
+ SHELTER = 8,
2731
+ PORTABLE_RESTROOMS = 9,
2732
+ LIGHTS = 10,
2733
+ LOCKER_ROOM = 11,
2734
+ PAID_PARKING = 12,
2735
+ ACCESSIBLE = 13
2736
+ }
2737
+ export declare enum ResourceSubTypeEnum {
2738
+ COURT = "court",
2739
+ FIELD = "field",
2740
+ ROOM = "room",
2741
+ DIAMOND = "diamond",
2742
+ RINK = "rink",
2743
+ STUDIO = "studio",
2744
+ POOL = "pool",
2745
+ BATTING_CAGE = "batting cage",
2746
+ SHELTER = "shelter",
2747
+ GOLF_SIMULATOR = "golf simulator"
2748
+ }
2749
+ export declare enum ResourceTypeEnum {
2750
+ SPACE = "space"
2751
+ }
2752
+ export declare enum ResourceAgesEnum {
2753
+ ADULTS = "adults",
2754
+ CHILDREN = "children"
2755
+ }
2756
+ export declare enum SpacePropertiesEnum {
2757
+ OUTDOOR = "outdoor",
2758
+ INDOOR = "indoor"
2759
+ }
2760
+ export declare enum SurfacesEnum {
2761
+ GRASS = "grass",
2762
+ TURF = "turf",
2763
+ FIELD_TURF = "fieldTurf",
2764
+ ASTRO_TURF = "astroTurf",
2765
+ HARDWOOD = "hardwood",
2766
+ ASPHALT = "asphalt",
2767
+ SAND = "sand",
2768
+ ICE = "ice",
2769
+ SPORT_COURT = "sportCourt"
2770
+ }
2771
+ export declare enum RegistrationConstraintPeriodTypeEnum {
2772
+ MINUTES = "minutes",
2773
+ DAYS = "days"
2774
+ }
2775
+ export declare enum RegistrationWindowStatusEnum {
2776
+ NOT_OPEN_YET = "not_opened_yet",
2777
+ OPEN = "open",
2778
+ CLOSED = "closed"
2779
+ }
2780
+ export declare enum RegistrationValidationStatusEnum {
2781
+ FULL = "full",
2782
+ ALREADY_REGISTERED = "registered",
2783
+ AVAILABLE = "available",
2784
+ NOT_OPEN_YET = "not opened",
2785
+ ALREADY_CLOSED = "closed",
2786
+ NO_PRODUCT_FOUND = "no-product-found"
2787
+ }
2788
+ export declare enum DiscountMethodsEnum {
2789
+ PERCENT = "percent",
2790
+ AMOUNT = "amount"
2791
+ }
2792
+ export declare enum UserAuthorizationsTypeEnum {
2793
+ ORGANIZATION = "organization"
2794
+ }
2795
+ export declare enum OrganizationLocaleDateEnum {
2796
+ USA = "USA"
2797
+ }
2798
+ export declare enum DateTimeFormatsEnum {
2799
+ API_DATE = "YYYY/MM/DD",
2800
+ API_TIME = "HH:mm:ss",
2801
+ DB_DATE = "YYYY-MM-DD"
2802
+ }
2803
+ export declare enum SlotTypeEnum {
2804
+ EXTERNAL = "external",
2805
+ INTERNAL = "internal",
2806
+ MAINTENANCE = "maintenance",
2807
+ CUSTOM = "custom"
2808
+ }
2809
+ export declare enum PlatformsEnum {
2810
+ CONSUMER = "consumer",
2811
+ CONSUMER_CHECKOUT = "consumer_checkout",
2812
+ BO = "backoffice",
2813
+ MOBILE = "mobile",
2814
+ CRON = "cron"
2815
+ }
2816
+ export declare enum ShiftStatusEnum {
2817
+ OPEN = "open",
2818
+ CLOSED = "closed",
2819
+ MANAGMENT_CLOSED = "closed_by_manager",
2820
+ RECONCILED = "reconciled"
2821
+ }
2822
+ export declare enum EventStatusEnum {
2823
+ OPEN = 1,
2824
+ DRAFT = 2,
2825
+ FULL = 3,
2826
+ CANCELLED = 4,
2827
+ CLOSED = 5,
2828
+ DELETED = 6
2935
2829
  }
2936
- export declare enum PaymentMethodsEnum {
2937
- STRIPE = 1,
2938
- CASH = 3
2830
+ export declare enum ReservationTypeEnum {
2831
+ RENTAL = "rental",
2832
+ PROGRAM = "program",
2833
+ MAINTENANCE = "maintenance",
2834
+ CUSTOM = "custom",
2835
+ INTERNAL = "internal"
2939
2836
  }
2940
- export declare enum PackageProductsRelationTypeEnum {
2941
- CHILD = "child",
2942
- UPSALE = "upsale"
2837
+ export declare enum SlotDurationTypeEnum {
2838
+ DATES = "dates",
2839
+ ALL_DAY = "all day",
2840
+ DURATION = "duration"
2943
2841
  }
2944
- export declare enum AddonTimePeriodEnum {
2945
- FULL = "full",
2946
- SESSION = "session",
2947
- EVENT = "event"
2842
+ export declare enum DurationUnitTypesEnum {
2843
+ MINUTES = "minutes",
2844
+ HOURS = "hours"
2948
2845
  }
2949
- export declare enum CurrencyEnum {
2950
- USD = "USD"
2846
+ export declare enum FrequencyEnum {
2847
+ NONE = "none",
2848
+ WEEKLY = "weekly",
2849
+ DAILY = "daily",
2850
+ MONTHLY = "monthly",
2851
+ YEARLY = "yearly"
2951
2852
  }
2952
- export declare enum NotificationTypeEnum {
2953
- BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2954
- BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2955
- BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2853
+ export declare enum MaintenanceTimingEnum {
2854
+ BEFORE = 1,
2855
+ AFTER = 2,
2856
+ AT_THE_BEGINING = 3,
2857
+ AT_THE_END = 4
2956
2858
  }
2957
- export declare enum ProductTypesEnum {
2958
- RESERVATION = "reservation",
2959
- REGISTRATION = "registration",
2960
- MEMBERSHIP = "membership",
2961
- GOODS = "goods",
2962
- PACKAGE = "package",
2963
- REFUND_COMPENSATION = "refund",
2964
- CASH_OVER_SHORT = "cash_over_short",
2965
- PETTY_CASH = "petty_cash",
2966
- LEAGUE_REGISTRATION = "league_registration",
2967
- TAX = "tax"
2859
+ export declare enum CreatorTypeEnum {
2860
+ SPACE = "space",
2861
+ PROGRAM_SEASON = "program_season",
2862
+ SEASON = "season"
2968
2863
  }
2969
- export declare enum InvoiceStatusEnum {
2970
- ACTIVE = "active",
2971
- WAITING_ADMIN = "waitingAdmin",
2972
- WAITING_CLIENT = "waitingClient",
2973
- CANCELED = "canceled"
2864
+ export declare enum UpdatePricesTypeEnum {
2865
+ INDIVIDUAL = "indvidual",
2866
+ CATEGORY = "category",
2867
+ GLOBAL = "global"
2974
2868
  }
2975
- export declare enum LineItemsStatusEnum {
2976
- USER_PRODUCT = "UserProduct",
2977
- RENTAL_PRODUCT = "RentalProduct"
2869
+ export declare enum BondDayOfWeekEnum {
2870
+ MONDAY = 2,
2871
+ TUESDAY = 3,
2872
+ WEDNESDAY = 4,
2873
+ THURSDAY = 5,
2874
+ FRIDAY = 6,
2875
+ SATURDAY = 7,
2876
+ SUNDAY = 8
2978
2877
  }
2979
- export declare enum ProductSubTypesEnum {
2980
- SEASON_INDIVIDUAL = "season_individual",
2981
- SEASON_TEAM = "season_team",
2982
- SEASON_PER_PLAYER = "season_per_player"
2878
+ export declare enum ReservationMigrationStatusEnum {
2879
+ NEW = "new",
2880
+ NO = "no",
2881
+ YES = "yes"
2983
2882
  }
2984
- export declare enum PaymentMethodTypeEnum {
2985
- CREDIT_CARD = "card",
2986
- ACH = "ach",
2987
- CASH = "cash",
2988
- CHECK = "check",
2989
- BALANCE = "balance",
2990
- CARD_ON_TERMINAL = "card-on-terminal",
2991
- OTHER = "other",
2992
- MIGRATED = "migrated",
2993
- VOID = "void"
2883
+ export declare enum ProductPackageLevelEnum {
2884
+ HOUR = "hour",
2885
+ SLOT = "slot",
2886
+ RESERVATION = "reservation"
2994
2887
  }
2995
- export declare enum RefundTypeEnum {
2996
- LEAVE_BALANCE = "leave_balance",
2997
- REDUCE_BALANCE = "reduce_balance"
2888
+ export declare enum CancellationStatusEnum {
2889
+ IMMEDIATE = "immediate",
2890
+ AUTO_RENEWAL = "auto_renewal"
2998
2891
  }
2999
- export declare enum CustomerInMembershipTypeEnum {
3000
- INDIVIDUAL = "individual",
3001
- FAMILY = "family",
3002
- ORGANIZATION = "organization"
2892
+ export declare enum SeasonScheduleStatusEnum {
2893
+ DRAFT = 0,
2894
+ PUBLISHED = 1
3003
2895
  }
3004
- export declare enum MembershipTypeEnum {
3005
- FIXED = "fix_membership",
3006
- ROLLING = "rolling_membership"
2896
+ export declare enum FinancialStepEnum {
2897
+ VOID = "void",
2898
+ REFUND = "refund",
2899
+ NONE = "none",
2900
+ REFUND_AND_VOID = "refund-and-void",
2901
+ APPEND = "append"
3007
2902
  }
3008
- export declare enum CustomerTypeEnum {
3009
- USER = "user",
3010
- FAMILY = "family",
3011
- ORGANIZATION = "organization"
2903
+ export declare enum StripeAccountTypesEnum {
2904
+ STRIPE = "stripe",
2905
+ STRIPE_CUSTOM = "stripe:account:custom",
2906
+ STRIPE_CUSTOMER = "stripe:customer"
3012
2907
  }
3013
- export declare enum GroupStatusEnum {
3014
- ACTIVE = 1,
3015
- INACTIVE = 2,
3016
- DRAFT = 3
2908
+ export declare enum LinkedAccountStatus {
2909
+ PENDING = 1,
2910
+ ACTIVE = 2,
2911
+ PRE_PENDING = 3
3017
2912
  }
3018
- export declare enum FutureInstallmentStatusEnum {
3019
- FUTURE = "future",
3020
- SUCCEEDED = "succeeded",
3021
- FAILED = "failed",
2913
+ export declare enum AddonParentTypeEnum {
2914
+ RESERVATION = "reservation",
2915
+ SLOT = "slot"
2916
+ }
2917
+ export declare enum EEmailStatus {
2918
+ SENT = "sent",
2919
+ OPENED = "opened",
2920
+ PAID = "paid",
3022
2921
  CANCELED = "canceled"
3023
2922
  }
3024
- export declare enum EntryStatusEnum {
3025
- ENTERED = 1,
3026
- NOT_ENTERED = 2,
3027
- CANCELED = 3
2923
+ export declare enum PaymentSettingStatusEnum {
2924
+ ENABLED = 1,
2925
+ DISABLED_REDIRECT = 2,
2926
+ DISABLED_INFO_ONLY = 3,
2927
+ DISABLED_EMAIL = 4
3028
2928
  }
3029
- export declare enum PurchasedResourceStatusEnum {
3030
- ACTIVE = 1,
3031
- MOVED = 2,
3032
- CANCELED = 3
2929
+ export declare enum NotifyMethodEnum {
2930
+ EMAIL = "Email"
3033
2931
  }
3034
- export declare enum TeamCanJoinEnum {
3035
- ANYONE = "anyone",
3036
- BY_INVITE = "byInvite",
3037
- CAPTAIN_APPROVAL = "captainApproval"
2932
+ export interface IEntitlementTerms {
2933
+ type: EntitlementTermsTypesEnum;
2934
+ id?: number;
2935
+ value?: string;
2936
+ minValue?: string;
2937
+ maxValue?: string;
3038
2938
  }
3039
- export declare enum TeamMemberStatusEnum {
3040
- PENDING = 1,
3041
- ACTIVE = 2,
3042
- DECLINED = 3,
3043
- SUSPENDED = 4,
3044
- INACTIVE = 5,
3045
- INVITED = 6
2939
+ export interface IQuestionAnswerObject {
2940
+ questionId: number;
2941
+ value: string;
3046
2942
  }
3047
- export declare enum TeamMemberRoleEnum {
3048
- NULL = 0,
3049
- ADMIN = 1
2943
+ export interface ILowestPriceForItem {
2944
+ itemId: number;
2945
+ itemType: ResourceNameTypeEnum;
2946
+ groupId: number;
2947
+ groupName?: string;
2948
+ price: number;
2949
+ overridesPrice: boolean;
3050
2950
  }
3051
- export declare enum DayOfWeekEnum {
3052
- SUNDAY = 0,
3053
- MONDAY = 1,
3054
- TUESDAY = 2,
3055
- WEDNESDAY = 3,
3056
- THURSDAY = 4,
3057
- FRIDAY = 5,
3058
- SATURDAY = 6
2951
+ export interface IResourcesAvailability {
2952
+ resourceType: ResourceNameTypeEnum;
2953
+ quantity: number;
2954
+ resourcesIds: number[];
2955
+ isPunchCard: boolean;
2956
+ resources?: any[];
3059
2957
  }
3060
- export declare enum ActionTypesEnum {
3061
- CREATE = "create",
3062
- READ = "read",
3063
- UPDATE = "update",
3064
- DELETE = "delete"
2958
+ export interface IPackageResponse {
2959
+ parentProduct: Product;
2960
+ children: IChildProduct[];
3065
2961
  }
3066
- export declare enum ActionSourcePlatformEnum {
3067
- ADMIN = "admin",
3068
- BACKOFFICE = "backoffice",
3069
- CONSUMER = "consumer"
2962
+ export interface IChildProduct {
2963
+ product: Product;
2964
+ relationType: PackageProductsRelationTypeEnum;
2965
+ timePeriod?: AddonTimePeriodEnum;
3070
2966
  }
3071
- export declare enum RolesEnum {
3072
- ORG_ADMIN = "organizationAdmin",
3073
- BOND_ADMIN = "bondAdmin"
2967
+ export interface ISeasonAttendeeInfo {
2968
+ applicationAnswers: Answer[];
2969
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2970
+ invoices: Invoice[];
2971
+ payments: Payment[];
2972
+ products: Product[];
2973
+ redeemNext: ProductsUsers;
2974
+ }
2975
+ export interface ISeasonAttendeeListInfo {
2976
+ userId: number;
2977
+ userFirstName: string;
2978
+ userLastName: string;
2979
+ userGender: number;
2980
+ userBirthDate: Date;
2981
+ userProfilePicUrl: string;
2982
+ customerId: number;
2983
+ customerEmail: string;
2984
+ paymentStatus: string;
2985
+ productName: string;
2986
+ punchCard: boolean;
3074
2987
  }
3075
- export declare enum SeasonPoolStatusEnum {
3076
- IN_POOL = 5,
3077
- ASSIGNED = 1,
3078
- QUIT = 2,
3079
- SUSPENDED = 3,
3080
- INACTIVE = 4
2988
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2989
+ segmentType: ResourceNameTypeEnum;
2990
+ participantRegisteredDate?: string;
3081
2991
  }
3082
- export declare enum AmenitiesEnum {
3083
- HEAT = 1,
3084
- AC = 2,
3085
- WIFI = 3,
3086
- RESTROOMS = 4,
3087
- DRINKING_FOUNTAIN = 5,
3088
- PARKING = 6,
3089
- CONCESSIONS = 7,
3090
- SHELTER = 8,
3091
- PORTABLE_RESTROOMS = 9,
3092
- LIGHTS = 10,
3093
- LOCKER_ROOM = 11,
3094
- PAID_PARKING = 12,
3095
- ACCESSIBLE = 13
2992
+ export declare class EventAsSeasonSegment extends Event {
2993
+ segmentType: ResourceNameTypeEnum;
2994
+ participantRegisteredDate?: string;
3096
2995
  }
3097
- export declare enum ResourceSubTypeEnum {
3098
- COURT = "court",
3099
- FIELD = "field",
3100
- ROOM = "room",
3101
- DIAMOND = "diamond",
3102
- RINK = "rink",
3103
- STUDIO = "studio",
3104
- POOL = "pool",
3105
- BATTING_CAGE = "batting cage",
3106
- SHELTER = "shelter",
3107
- GOLF_SIMULATOR = "golf simulator"
2996
+ export interface ITokenResonse {
2997
+ token: string;
3108
2998
  }
3109
- export declare enum ResourceTypeEnum {
3110
- SPACE = "space"
2999
+ export interface IStripeBondInvoices {
3000
+ paidStripePaymentIntent: Stripe.PaymentIntent;
3001
+ bondPaidPayment: Payment;
3002
+ invoice?: Invoice;
3003
+ customer?: Customer;
3111
3004
  }
3112
- export declare enum ResourceAgesEnum {
3113
- ADULTS = "adults",
3114
- CHILDREN = "children"
3005
+ export interface IPartialPaymentData {
3006
+ purchasingUserId: number;
3007
+ paymentData: PurchasePaymentDto;
3008
+ amountToPay: number;
3115
3009
  }
3116
- export declare enum SpacePropertiesEnum {
3117
- OUTDOOR = "outdoor",
3118
- INDOOR = "indoor"
3010
+ export interface IPayment {
3011
+ id: number;
3012
+ total: number;
3013
+ paymentMethod: PaymentMethodTypeEnum;
3014
+ status: PaymentStatusEnum;
3015
+ createdAt: Date;
3016
+ invoices: number[];
3119
3017
  }
3120
- export declare enum SurfacesEnum {
3121
- GRASS = "grass",
3122
- TURF = "turf",
3123
- FIELD_TURF = "fieldTurf",
3124
- ASTRO_TURF = "astroTurf",
3125
- HARDWOOD = "hardwood",
3126
- ASPHALT = "asphalt",
3127
- SAND = "sand",
3128
- ICE = "ice",
3129
- SPORT_COURT = "sportCourt"
3018
+ export interface IPaginationData<T> {
3019
+ meta: {
3020
+ totalItems: number;
3021
+ itemsPerPage: number;
3022
+ totalPages: number;
3023
+ currentPage: number;
3024
+ };
3025
+ data: T[];
3130
3026
  }
3131
- export declare enum RegistrationConstraintPeriodTypeEnum {
3132
- MINUTES = "minutes",
3133
- DAYS = "days"
3027
+ export interface IPricesOfProductsResults {
3028
+ productId: number;
3029
+ userId: number;
3030
+ price: number;
3031
+ groupId?: number;
3032
+ groupName?: string;
3033
+ originalPrice?: number;
3034
+ priceWithoutTax: number;
3035
+ tax: number;
3036
+ isTaxInclusive: boolean;
3134
3037
  }
3135
- export declare enum RegistrationWindowStatusEnum {
3136
- NOT_OPEN_YET = "not_opened_yet",
3137
- OPEN = "open",
3138
- CLOSED = "closed"
3038
+ export interface IPaymentMethodToFundLeft {
3039
+ paymentType: PaymentMethodTypeEnum;
3040
+ paymentMethodId: string;
3041
+ fundLeft: number;
3042
+ ccLast4?: string;
3043
+ ccBrand?: string;
3139
3044
  }
3140
- export declare enum RegistrationValidationStatusEnum {
3141
- FULL = "full",
3142
- ALREADY_REGISTERED = "registered",
3143
- AVAILABLE = "available",
3144
- NOT_OPEN_YET = "not opened",
3145
- ALREADY_CLOSED = "closed",
3146
- NO_PRODUCT_FOUND = "no-product-found"
3045
+ export interface IVariantsAndTitle {
3046
+ title: VariantTitle;
3047
+ variants: Variant[];
3147
3048
  }
3148
- export declare enum DiscountMethodsEnum {
3149
- PERCENT = "percent",
3150
- AMOUNT = "amount"
3049
+ export interface IProgramSeasonActivityTimes {
3050
+ dayOfWeek: number;
3051
+ open: string;
3052
+ close: string;
3151
3053
  }
3152
- export declare enum UserAuthorizationsTypeEnum {
3153
- ORGANIZATION = "organization"
3054
+ export interface IProgramSeasonActivityTimesAsDates {
3055
+ date: string;
3056
+ startTime: string;
3057
+ endTime: string;
3154
3058
  }
3155
- export declare enum OrganizationLocaleDateEnum {
3156
- USA = "USA"
3059
+ export interface IBlockedDates {
3060
+ name: string;
3061
+ startDate: Date;
3062
+ endDate: Date;
3157
3063
  }
3158
- export declare enum DateTimeFormatsEnum {
3159
- API_DATE = "YYYY/MM/DD",
3160
- API_TIME = "HH:mm:ss",
3161
- DB_DATE = "YYYY-MM-DD"
3064
+ export interface ISingleMemberForRenewal {
3065
+ member_id: number;
3066
+ member_membershipId: number;
3067
+ member_userId: number;
3068
+ member_nextPaymentMethodId?: string;
3069
+ member_nextPaymentType?: PaymentMethodTypeEnum;
3070
+ member_answerTitleIds?: number[];
3071
+ member_organizationId: number;
3072
+ product_productPrice: number;
3073
+ product_productId: number;
3074
+ invoice_payingUserId: number;
3075
+ invoice_paymentMethodId: string;
3076
+ invoice_paymentType: PaymentMethodTypeEnum;
3077
+ endDate: Date;
3078
+ membership_name: string;
3079
+ user_firstName: string;
3080
+ user_lastName: string;
3081
+ user_email: string;
3162
3082
  }
3163
- export declare enum SlotTypeEnum {
3164
- EXTERNAL = "external",
3165
- INTERNAL = "internal",
3166
- MAINTENANCE = "maintenance",
3167
- CUSTOM = "custom"
3083
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3084
+ package_parentProductId: number;
3085
+ product2_productPrice: number;
3086
+ familyid: number;
3087
+ invoice_id: number;
3168
3088
  }
3169
- export declare enum PlatformsEnum {
3170
- CONSUMER = "consumer",
3171
- CONSUMER_CHECKOUT = "consumer_checkout",
3172
- BO = "backoffice",
3173
- MOBILE = "mobile",
3174
- CRON = "cron"
3089
+ export interface IResourceRegistrationData {
3090
+ id: number;
3091
+ resourceType: ResourceNameTypeEnum;
3092
+ openNumDays?: number;
3093
+ openNumMinutes?: number;
3094
+ openTime?: string;
3095
+ closeNumDays?: number;
3096
+ closeNumMinutes?: number;
3097
+ closeTime?: string;
3098
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
3175
3099
  }
3176
- export declare enum ShiftStatusEnum {
3177
- OPEN = "open",
3178
- CLOSED = "closed",
3179
- MANAGMENT_CLOSED = "closed_by_manager",
3180
- RECONCILED = "reconciled"
3100
+ export interface IResourceDataForConstraintsCalc {
3101
+ id: number;
3102
+ startDate: string;
3103
+ startTime: string;
3181
3104
  }
3182
- export declare enum EventStatusEnum {
3183
- OPEN = 1,
3184
- DRAFT = 2,
3185
- FULL = 3,
3186
- CANCELLED = 4,
3187
- CLOSED = 5,
3188
- DELETED = 6
3105
+ export interface IRegistrationConstraintsSetting {
3106
+ numDays?: number;
3107
+ numMinutes?: number;
3189
3108
  }
3190
- export declare enum ReservationTypeEnum {
3191
- RENTAL = "rental",
3192
- PROGRAM = "program",
3193
- MAINTENANCE = "maintenance",
3194
- CUSTOM = "custom",
3195
- INTERNAL = "internal"
3109
+ export interface IAttendeeDataToNotify {
3110
+ firstName: string;
3111
+ lastName: string;
3112
+ email: string;
3113
+ sessionName: string;
3114
+ parentSessionName?: string;
3115
+ organizationName: string;
3116
+ programName: string;
3196
3117
  }
3197
- export declare enum SlotDurationTypeEnum {
3198
- DATES = "dates",
3199
- ALL_DAY = "all day",
3200
- DURATION = "duration"
3118
+ export interface IEventInSchedule {
3119
+ eventId: number;
3120
+ eventName: string;
3121
+ eventStartDate: string;
3122
+ eventEndDate: string;
3123
+ eventStartTime: string;
3124
+ eventEndTime: string;
3125
+ programId: number;
3126
+ programName: string;
3127
+ programType: ProgramTypesEnum;
3128
+ sessionId: number;
3129
+ sessionName: string;
3130
+ sports: number;
3131
+ spaces: {
3132
+ spaceId: number;
3133
+ spaceName: string;
3134
+ }[];
3135
+ status?: RegistrationValidationStatusEnum;
3201
3136
  }
3202
- export declare enum DurationUnitTypesEnum {
3203
- MINUTES = "minutes",
3204
- HOURS = "hours"
3137
+ export interface ISlotInSchedule {
3138
+ facilityId: number;
3139
+ facilityName: string;
3140
+ spaces: ISpaceWithSlots[];
3205
3141
  }
3206
- export declare enum FrequencyEnum {
3207
- NONE = "none",
3208
- WEEKLY = "weekly",
3209
- DAILY = "daily",
3210
- MONTHLY = "monthly",
3211
- YEARLY = "yearly"
3142
+ export interface ISpaceWithSlots {
3143
+ id: number;
3144
+ name: string;
3145
+ slots: ISlotReservationData[];
3212
3146
  }
3213
- export declare enum MaintenanceTimingEnum {
3214
- BEFORE = 1,
3215
- AFTER = 2,
3216
- AT_THE_BEGINING = 3,
3217
- AT_THE_END = 4
3147
+ export interface ISlotReservationData {
3148
+ reservationId: number;
3149
+ reservationName: string;
3150
+ date: string;
3151
+ startTime: string;
3152
+ endTime: string;
3153
+ notes: string;
3154
+ spaceId: number;
3155
+ isRental: boolean;
3156
+ slotType: SlotTypeEnum;
3157
+ slotId: number;
3158
+ eventId: number;
3159
+ isPrivate: boolean;
3218
3160
  }
3219
- export declare enum CreatorTypeEnum {
3220
- SPACE = "space",
3221
- PROGRAM_SEASON = "program_season",
3222
- SEASON = "season"
3161
+ export interface IRawEventInSchedule extends IEventInSchedule {
3162
+ parentSessionId: number;
3163
+ parentSessionName: string;
3164
+ eventTimezone: string;
3165
+ maxParticipants: number;
3166
+ maxMaleParticipants: number;
3167
+ maxFemaleParticipants: number;
3168
+ isPunchCard: boolean;
3223
3169
  }
3224
- export declare enum UpdatePricesTypeEnum {
3225
- INDIVIDUAL = "indvidual",
3226
- CATEGORY = "category",
3227
- GLOBAL = "global"
3170
+ export interface IBasicSpaceAndSlotCreator {
3171
+ id: number;
3172
+ name: string;
3173
+ bookingCreatorId: number;
3228
3174
  }
3229
- export declare enum BondDayOfWeekEnum {
3230
- MONDAY = 2,
3231
- TUESDAY = 3,
3232
- WEDNESDAY = 4,
3233
- THURSDAY = 5,
3234
- FRIDAY = 6,
3235
- SATURDAY = 7,
3236
- SUNDAY = 8
3175
+ export interface IRawSlotInSchedule {
3176
+ startDate: string;
3177
+ endDate: string;
3178
+ startTime: string;
3179
+ endTime: string;
3180
+ reservationId: number;
3181
+ eventTitle: string;
3182
+ publicNotes: string;
3183
+ spaceId: number;
3184
+ creatorType: ResourceNameTypeEnum;
3185
+ slotType: SlotTypeEnum;
3186
+ slotId: number;
3187
+ eventId: number;
3188
+ isPrivate: boolean;
3237
3189
  }
3238
- export declare enum ReservationMigrationStatusEnum {
3239
- NEW = "new",
3240
- NO = "no",
3241
- YES = "yes"
3190
+ export interface IPurchasedResourcesRaw {
3191
+ purchasedId: number;
3192
+ purchasedProductUserId: number;
3193
+ purchasedResourceId: number;
3194
+ purchasedResourceType: ResourceNameTypeEnum;
3195
+ purchasedStatus: PurchasedResourceStatusEnum;
3196
+ pUserId: number;
3197
+ pUserPaymentStatus: PaymentStatusEnum;
3198
+ pUserProductId: number;
3199
+ pUserProductName: string;
3200
+ pUserProductPrice: number;
3201
+ pUserProductPriceCurrency: string;
3202
+ pUserProductQuantity: number;
3203
+ pUserProductQuantityLeft: number;
3204
+ pUserUserId: number;
3242
3205
  }
3243
- export declare enum ProductPackageLevelEnum {
3244
- HOUR = "hour",
3245
- SLOT = "slot",
3246
- RESERVATION = "reservation"
3206
+ export interface IUsersPasses {
3207
+ userId: number;
3208
+ userFirstName: string;
3209
+ userLastName: string;
3210
+ organizationId: number;
3211
+ programId: number;
3212
+ programName: string;
3213
+ sessionId: number;
3214
+ sessionName: string;
3215
+ productId: number;
3216
+ productName: string;
3217
+ productUserId: number;
3218
+ purchaseDate: Date;
3219
+ passesLeft: number;
3247
3220
  }
3248
- export declare enum CancellationStatusEnum {
3249
- IMMEDIATE = "immediate",
3250
- AUTO_RENEWAL = "auto_renewal"
3221
+ export interface ISessionsLandingPage {
3222
+ sessionId: number;
3223
+ name: string;
3224
+ startDate: Date;
3225
+ endDate: Date;
3226
+ registrationStartDate: Date;
3227
+ registrationEndDate: Date;
3228
+ sport: SportsEnum;
3229
+ minAge: string;
3230
+ maxAge: string;
3231
+ maxParticipants?: number;
3232
+ gender: GenderEnum;
3233
+ activityTimes: ActivityTimes[];
3234
+ earlyRegistrationStartDate?: Date;
3235
+ earlyRegistrationEndDate?: Date;
3236
+ lateRegistrationStartDate?: Date;
3237
+ lateRegistrationEndDate?: Date;
3238
+ attendeeCount?: number;
3239
+ segmentsOrEvents: 'segment' | 'event';
3251
3240
  }
3252
- export declare enum SeasonScheduleStatusEnum {
3253
- DRAFT = 0,
3254
- PUBLISHED = 1
3241
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3242
+ hasRequiredMembership: boolean;
3243
+ hasEntitledPricing: boolean;
3244
+ lowestPrice?: number;
3245
+ products?: ISessionLandingPageProduct[];
3255
3246
  }
3256
- export declare enum FinancialStepEnum {
3257
- VOID = "void",
3258
- REFUND = "refund",
3259
- NONE = "none",
3260
- REFUND_AND_VOID = "refund-and-void",
3261
- APPEND = "append"
3247
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3248
+ hasRequiredMembership: boolean;
3249
+ hasEntitledPricing: boolean;
3250
+ products?: ISessionLandingPageProduct[];
3251
+ segments?: Event[] | ProgramSeason[];
3252
+ programName: string;
3253
+ programId: number;
3254
+ levelOfPlay: LevelOfPlayEnum[];
3255
+ registrationConstraints: IResourceRegistrationData[];
3262
3256
  }
3263
- export declare enum StripeAccountTypesEnum {
3264
- STRIPE = "stripe",
3265
- STRIPE_CUSTOM = "stripe:account:custom",
3266
- STRIPE_CUSTOMER = "stripe:customer"
3257
+ export interface ISlimAddons {
3258
+ addons?: {
3259
+ id: number;
3260
+ timePeriod: AddonTimePeriodEnum;
3261
+ name: string;
3262
+ productType?: ProductTypesEnum;
3263
+ productSubType?: string;
3264
+ }[];
3267
3265
  }
3268
- export declare enum LinkedAccountStatus {
3269
- PENDING = 1,
3270
- ACTIVE = 2,
3271
- PRE_PENDING = 3
3266
+ export interface ISessionLandingPageProduct extends ISlimAddons {
3267
+ id: number;
3268
+ name: string;
3269
+ startDate?: Date;
3270
+ endDate?: Date;
3271
+ downpayment?: number;
3272
+ description?: string;
3273
+ prices: Price[];
3274
+ productSubType?: ProductSubTypesEnum;
3275
+ punchCard: boolean;
3276
+ isAddon: boolean;
3277
+ defaultPriceId?: number;
3272
3278
  }
3273
- export declare enum AddonParentTypeEnum {
3274
- RESERVATION = "reservation",
3275
- SLOT = "slot"
3279
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3280
+ destinationId?: string;
3281
+ stripeCustomerId?: string;
3282
+ fee?: number;
3276
3283
  }
3277
- export declare enum EEmailStatus {
3278
- SENT = "sent",
3279
- OPENED = "opened",
3280
- PAID = "paid",
3281
- CANCELED = "canceled"
3284
+ export interface IReservationCreatorData {
3285
+ type: ResourceNameTypeEnum;
3286
+ id: number;
3287
+ organizationId: number;
3288
+ startDate: string;
3289
+ endDate: string;
3290
+ sportId: number;
3282
3291
  }
3283
- export declare enum PaymentSettingStatusEnum {
3284
- ENABLED = 1,
3285
- DISABLED_REDIRECT = 2,
3286
- DISABLED_INFO_ONLY = 3,
3287
- DISABLED_EMAIL = 4
3292
+ export declare class ColumnNumericTransformer {
3293
+ to(data: number): number;
3294
+ from(data: string): number;
3288
3295
  }
3296
+ export declare function convertToNumber(data: string): number;
3289
3297
  export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3290
3298
  name?: string;
3291
3299
  genderStr?: string;
@@ -3402,15 +3410,6 @@ export declare class ImportedReservationDto {
3402
3410
  slots?: ImportedSlotDto[];
3403
3411
  addons?: ImportedSlotProductDto[];
3404
3412
  }
3405
- export declare class ColumnNumericTransformer {
3406
- to(data: number): number;
3407
- from(data: string): number;
3408
- }
3409
- export declare function convertToNumber(data: string): number;
3410
- export declare class GameSlots extends BondBaseEntity {
3411
- entityType: string;
3412
- entityId: number;
3413
- }
3414
3413
  export declare class MatchParticipants extends BondBaseEntity {
3415
3414
  matchId: number | null;
3416
3415
  ordinal: number | null;
@@ -3420,6 +3419,10 @@ export declare class MatchParticipants extends BondBaseEntity {
3420
3419
  score: number | null;
3421
3420
  gameSlotId: number | null;
3422
3421
  }
3422
+ export declare class GameSlots extends BondBaseEntity {
3423
+ entityType: string;
3424
+ entityId: number;
3425
+ }
3423
3426
  export declare class Matches extends BondBaseEntity {
3424
3427
  eventId: number | null;
3425
3428
  status: number | null;
@@ -3438,11 +3441,6 @@ export declare class SeasonRounds extends BondBaseEntity {
3438
3441
  divisionId?: number;
3439
3442
  name: string;
3440
3443
  }
3441
- export declare class TeamEvents extends BondBaseEntity {
3442
- teamId: number | null;
3443
- eventId: number | null;
3444
- status: number | null;
3445
- }
3446
3444
  export declare class Lock extends BondBaseEntity {
3447
3445
  name: string;
3448
3446
  locked?: Date;
@@ -3456,6 +3454,11 @@ export interface ValidationReason {
3456
3454
  valid: boolean;
3457
3455
  reason?: string;
3458
3456
  }
3457
+ export declare class TeamEvents extends BondBaseEntity {
3458
+ teamId: number | null;
3459
+ eventId: number | null;
3460
+ status: number | null;
3461
+ }
3459
3462
  export interface PaymentStatus {
3460
3463
  parentId: number;
3461
3464
  paymentStatus: ReservationPaymentStatusEnum;
@@ -3468,6 +3471,24 @@ export interface PaymentStatusesDict {
3468
3471
  export interface PaymentStatusDict {
3469
3472
  [id: number]: ReservationPaymentStatusEnum;
3470
3473
  }
3474
+ export declare class CreateMonitorConfigDto {
3475
+ facilityId: number;
3476
+ name: string;
3477
+ code: string;
3478
+ config: any;
3479
+ }
3480
+ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3481
+ facilityId: number;
3482
+ code: string;
3483
+ config?: any;
3484
+ }
3485
+ export declare class NotifyTracker extends BondBaseEntity {
3486
+ userId: number;
3487
+ organizationId: number;
3488
+ notifyMetadata?: any;
3489
+ notfiyMethodtype: NotifyMethodEnum;
3490
+ destination: string;
3491
+ }
3471
3492
  export declare class ByOrganizationIdDto {
3472
3493
  organizationId: number;
3473
3494
  }
@@ -3992,6 +4013,9 @@ export declare class EditReservationDetailsDto {
3992
4013
  export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
3993
4014
  updateAddons?: boolean;
3994
4015
  }
4016
+ export declare class ReservationNotifyDto {
4017
+ notifyMethods?: NotifyMethodEnum[];
4018
+ }
3995
4019
  export declare class SegmentDto {
3996
4020
  id?: number;
3997
4021
  title: string;
@@ -4537,15 +4561,15 @@ export declare class ChangeRolePermissionsDto {
4537
4561
  export declare class CreateRoleDto {
4538
4562
  name: string;
4539
4563
  }
4540
- export declare class Role extends OrganizationConnectionBaseEntity {
4564
+ export declare class Permission extends BondBaseEntity {
4541
4565
  name: string;
4542
4566
  deletedAt?: Date;
4543
- permissions: Permission[];
4544
- usersRoles: UserRole[];
4545
4567
  }
4546
- export declare class Permission extends BondBaseEntity {
4568
+ export declare class Role extends OrganizationConnectionBaseEntity {
4547
4569
  name: string;
4548
4570
  deletedAt?: Date;
4571
+ permissions: Permission[];
4572
+ usersRoles: UserRole[];
4549
4573
  }
4550
4574
  export declare class UserRole extends OrganizationConnectionBaseEntity {
4551
4575
  deletedAt?: Date;
@@ -4620,14 +4644,3 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4620
4644
  closingManager?: User;
4621
4645
  reconcilingUser?: User;
4622
4646
  }
4623
- export declare class CreateMonitorConfigDto {
4624
- facilityId: number;
4625
- name: string;
4626
- code: string;
4627
- config: any;
4628
- }
4629
- export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
4630
- facilityId: number;
4631
- code: string;
4632
- config?: any;
4633
- }