@bondsports/types 0.0.54 → 0.0.55

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
@@ -876,6 +876,50 @@ export declare class MoveParticipantDto {
876
876
  resourceId: number;
877
877
  orderId: number;
878
878
  }
879
+ export declare class FindProgramsByOrganizationIdDto {
880
+ organizationId: number;
881
+ programType?: ProgramTypesEnum;
882
+ }
883
+ export declare class FindProgramByIdDto {
884
+ programId: number;
885
+ }
886
+ export declare class FindProgramByOrgIdAndIdDto {
887
+ programId: number;
888
+ organizationId: number;
889
+ }
890
+ export declare class BaseProgramDto {
891
+ type: ProgramTypesEnum;
892
+ name: string;
893
+ sport: SportsEnum;
894
+ minAge: string;
895
+ maxAge: string;
896
+ gender: GenderEnum;
897
+ level?: LevelOfPlayEnum[];
898
+ description?: string;
899
+ GL?: string;
900
+ status: PublishingStatusEnum;
901
+ organizationId: number;
902
+ userCreatorId: number;
903
+ highlights: ProgramHighlights[];
904
+ longDescription?: string;
905
+ requiredProductIds: number[];
906
+ }
907
+ export declare class CreateProgramDto extends BaseProgramDto {
908
+ }
909
+ export declare class UpdateProgramDto extends BaseProgramDto {
910
+ programId: number;
911
+ mainMediaId: number;
912
+ }
913
+ export declare class UpdateProgramStatusDto {
914
+ programId: number;
915
+ status: PublishingStatusEnum;
916
+ }
917
+ export declare class ProgramHighlightDto {
918
+ data: string;
919
+ ordinal: number;
920
+ type: ProgramHighlightTypeEnum;
921
+ title: string;
922
+ }
879
923
  export declare class PurchasePaymentDto {
880
924
  token: string;
881
925
  type: PaymentMethodTypeEnum;
@@ -946,50 +990,6 @@ export declare class PartialPaymentAsUserDto {
946
990
  amountToPay: any;
947
991
  paymentMethodData: any;
948
992
  }
949
- export declare class FindProgramsByOrganizationIdDto {
950
- organizationId: number;
951
- programType?: ProgramTypesEnum;
952
- }
953
- export declare class FindProgramByIdDto {
954
- programId: number;
955
- }
956
- export declare class FindProgramByOrgIdAndIdDto {
957
- programId: number;
958
- organizationId: number;
959
- }
960
- export declare class BaseProgramDto {
961
- type: ProgramTypesEnum;
962
- name: string;
963
- sport: SportsEnum;
964
- minAge: string;
965
- maxAge: string;
966
- gender: GenderEnum;
967
- level?: LevelOfPlayEnum[];
968
- description?: string;
969
- GL?: string;
970
- status: PublishingStatusEnum;
971
- organizationId: number;
972
- userCreatorId: number;
973
- highlights: ProgramHighlights[];
974
- longDescription?: string;
975
- requiredProductIds: number[];
976
- }
977
- export declare class CreateProgramDto extends BaseProgramDto {
978
- }
979
- export declare class UpdateProgramDto extends BaseProgramDto {
980
- programId: number;
981
- mainMediaId: number;
982
- }
983
- export declare class UpdateProgramStatusDto {
984
- programId: number;
985
- status: PublishingStatusEnum;
986
- }
987
- export declare class ProgramHighlightDto {
988
- data: string;
989
- ordinal: number;
990
- type: ProgramHighlightTypeEnum;
991
- title: string;
992
- }
993
993
  export declare class CreateResourceGroupDto {
994
994
  name: string;
995
995
  parentSlotId: number;
@@ -1111,6 +1111,12 @@ export declare class Address extends BondBaseEntity {
1111
1111
  geo: any;
1112
1112
  deletedAt?: Date;
1113
1113
  }
1114
+ export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1115
+ questionnaireId: number;
1116
+ userId?: number;
1117
+ answers: Answer[];
1118
+ questionnaire: Questionnaires;
1119
+ }
1114
1120
  export declare class Answer extends OrganizationConnectionBaseEntity {
1115
1121
  questionId: number;
1116
1122
  question?: Questions;
@@ -1124,12 +1130,6 @@ export declare class Answer extends OrganizationConnectionBaseEntity {
1124
1130
  metaData: any | null;
1125
1131
  questionText: string | null;
1126
1132
  }
1127
- export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1128
- questionnaireId: number;
1129
- userId?: number;
1130
- answers: Answer[];
1131
- questionnaire: Questionnaires;
1132
- }
1133
1133
  export declare class Athlete extends BondBaseEntity {
1134
1134
  userId: number | null;
1135
1135
  metadata: object | null;
@@ -1911,6 +1911,23 @@ export declare class ProductsReservedForCustomers extends OrganizationConnection
1911
1911
  deletedAt?: Date;
1912
1912
  product: Product;
1913
1913
  }
1914
+ export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1915
+ productId: number;
1916
+ userId: number;
1917
+ user?: User;
1918
+ paymentStatus: PaymentStatusEnum;
1919
+ productName: string;
1920
+ productPrice: number;
1921
+ productQuantity: number;
1922
+ productQuantityLeft: number;
1923
+ productPriceCurrency: CurrencyEnum;
1924
+ ordinal?: number;
1925
+ purchasedResources: PurchasedResource[];
1926
+ product: Product;
1927
+ lineItem: LineItems;
1928
+ slots?: Slot[];
1929
+ addons?: Addon[];
1930
+ }
1914
1931
  export declare class Program extends BondBaseEntity {
1915
1932
  type: ProgramTypesEnum;
1916
1933
  name: string;
@@ -1933,23 +1950,6 @@ export declare class Program extends BondBaseEntity {
1933
1950
  programSeason: ProgramSeason[];
1934
1951
  purchasedResources: PurchasedResource[];
1935
1952
  }
1936
- export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1937
- productId: number;
1938
- userId: number;
1939
- user?: User;
1940
- paymentStatus: PaymentStatusEnum;
1941
- productName: string;
1942
- productPrice: number;
1943
- productQuantity: number;
1944
- productQuantityLeft: number;
1945
- productPriceCurrency: CurrencyEnum;
1946
- ordinal?: number;
1947
- purchasedResources: PurchasedResource[];
1948
- product: Product;
1949
- lineItem: LineItems;
1950
- slots?: Slot[];
1951
- addons?: Addon[];
1952
- }
1953
1953
  export declare class ProgramHighlights extends BondBaseEntity {
1954
1954
  type: ProgramHighlightTypeEnum;
1955
1955
  ordinal: number | null;
@@ -2128,6 +2128,13 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
2128
2128
  purchasedResources: PurchasedResource[];
2129
2129
  linkSEO: string;
2130
2130
  }
2131
+ export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2132
+ name: string;
2133
+ facilityId: number;
2134
+ parentSlotId: number;
2135
+ childrenSlotIds: number[];
2136
+ deletedAt?: Date;
2137
+ }
2131
2138
  export declare class School extends BondBaseEntity {
2132
2139
  name: string | null;
2133
2140
  alias: string[] | null;
@@ -2150,13 +2157,6 @@ export declare class SeasonAttendee extends BondBaseEntity {
2150
2157
  deletedAt?: Date;
2151
2158
  purchasedResource: PurchasedResource;
2152
2159
  }
2153
- export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2154
- name: string;
2155
- facilityId: number;
2156
- parentSlotId: number;
2157
- childrenSlotIds: number[];
2158
- deletedAt?: Date;
2159
- }
2160
2160
  export declare class SeasonDivisions extends BondBaseEntity {
2161
2161
  name: string | null;
2162
2162
  ordinal: number | null;
@@ -2347,431 +2347,73 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2347
2347
  membershipCollectionId?: string;
2348
2348
  programsCollectionId?: string;
2349
2349
  }
2350
- export interface IEntitlementTerms {
2351
- type: EntitlementTermsTypesEnum;
2352
- id?: number;
2353
- value?: string;
2354
- minValue?: string;
2355
- maxValue?: string;
2350
+ export declare enum EntitlementTermsTypesEnum {
2351
+ QUESTION = "question",
2352
+ CITY = "city",
2353
+ MEMBERSHIP = "membership"
2356
2354
  }
2357
- export interface IQuestionAnswerObject {
2358
- questionId: number;
2359
- value: string;
2355
+ export declare enum ResourceNameTypeEnum {
2356
+ EVENT = "event",
2357
+ VENUE = "venue",
2358
+ TEAM = "team",
2359
+ LEAGUE = "league",
2360
+ USER = "user",
2361
+ ORGANIZATION = "organization",
2362
+ APP = "app",
2363
+ FEED = "feed",
2364
+ MATCH = "match",
2365
+ ROUND = "round",
2366
+ PORTAL = "portal",
2367
+ SEASON = "season",
2368
+ TOURNAMENT = "tournament",
2369
+ MEMBERSHIP = "membership",
2370
+ DIVISION = "division",
2371
+ GAMESLOT = "gameslot",
2372
+ SPACE = "space",
2373
+ RESERVATION = "reservation",
2374
+ ORDER = "order",
2375
+ CUSTOMER = "customer",
2376
+ PACKAGE = "package",
2377
+ FACILITY = "facility",
2378
+ PROGRAM = "program",
2379
+ PROGRAM_SEASON = "program_season",
2380
+ PRODUCT = "product",
2381
+ GROUP = "group",
2382
+ VARIANT = "variant",
2383
+ SLOT = "slot",
2384
+ ADDON = "addon"
2360
2385
  }
2361
- export interface ILowestPriceForItem {
2362
- itemId: number;
2363
- itemType: ResourceNameTypeEnum;
2364
- groupId: number;
2365
- groupName?: string;
2366
- price: number;
2367
- overridesPrice: boolean;
2386
+ export declare enum DirectBookingTypesEnum {
2387
+ DIRECT_FOR_ALL = "all",
2388
+ DIRECT_FOR_NONE = "none",
2389
+ DIRECT_VETTED_ONLY = "vetted_only",
2390
+ NO_SETTING = "no_setting"
2368
2391
  }
2369
- export interface IResourcesAvailability {
2370
- resourceType: ResourceNameTypeEnum;
2371
- quantity: number;
2372
- resourcesIds: number[];
2373
- isPunchCard: boolean;
2374
- resources?: any[];
2392
+ export declare enum GenderEnum {
2393
+ OTHER = 1,
2394
+ MALE = 2,
2395
+ FEMALE = 3
2375
2396
  }
2376
- export interface IPackageResponse {
2377
- parentProduct: Product;
2378
- children: IChildProduct[];
2397
+ export declare enum LevelOfPlayEnum {
2398
+ BEGINNER = 1,
2399
+ INTERMEDIATE = 2,
2400
+ ADVANCED = 3,
2401
+ SEMIPRO = 4,
2402
+ SPECTATOR = 5
2379
2403
  }
2380
- export interface IChildProduct {
2381
- product: Product;
2382
- relationType: PackageProductsRelationTypeEnum;
2383
- timePeriod?: AddonTimePeriodEnum;
2404
+ export declare enum ProgramTypesEnum {
2405
+ LEAGUE = 0,
2406
+ TOURNAMENT = 1,
2407
+ CLASS = 2,
2408
+ CLINIC = 3,
2409
+ CAMP = 4,
2410
+ LESSON = 5,
2411
+ CLUB_TEAM = 6
2384
2412
  }
2385
- export interface ISeasonAttendeeInfo {
2386
- applicationAnswers: Answer[];
2387
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2388
- invoices: Order[];
2389
- payments: Invoice[];
2390
- products: Product[];
2391
- redeemNext: ProductsUsers;
2392
- }
2393
- export interface ISeasonAttendeeListInfo {
2394
- userId: number;
2395
- userFirstName: string;
2396
- userLastName: string;
2397
- userGender: number;
2398
- userBirthDate: Date;
2399
- userProfilePicUrl: string;
2400
- customerId: number;
2401
- customerEmail: string;
2402
- paymentStatus: string;
2403
- productName: string;
2404
- punchCard: boolean;
2405
- }
2406
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2407
- segmentType: ResourceNameTypeEnum;
2408
- participantRegisteredDate?: string;
2409
- }
2410
- export declare class EventAsSeasonSegment extends Event {
2411
- segmentType: ResourceNameTypeEnum;
2412
- participantRegisteredDate?: string;
2413
- }
2414
- export interface ITokenResonse {
2415
- token: string;
2416
- }
2417
- export interface IStripeBondInvoices {
2418
- paidStripePaymentIntent: Stripe.PaymentIntent;
2419
- bondPaidInvoice: Invoice;
2420
- order?: Order;
2421
- customer?: Customer;
2422
- }
2423
- export interface IPartialPaymentData {
2424
- purchasingUserId: number;
2425
- paymentData: PurchasePaymentDto;
2426
- amountToPay: number;
2427
- }
2428
- export interface IPayment {
2429
- id: number;
2430
- total: number;
2431
- paymentMethod: PaymentMethodTypeEnum;
2432
- status: PaymentStatusEnum;
2433
- createdAt: Date;
2434
- invoices: number[];
2435
- }
2436
- export interface IPaginationData<T> {
2437
- meta: {
2438
- totalItems: number;
2439
- itemsPerPage: number;
2440
- totalPages: number;
2441
- currentPage: number;
2442
- };
2443
- data: T[];
2444
- }
2445
- export interface IPricesOfProductsResults {
2446
- productId: number;
2447
- userId: number;
2448
- price: number;
2449
- groupId?: number;
2450
- groupName?: string;
2451
- originalPrice?: number;
2452
- priceWithoutTax: number;
2453
- tax: number;
2454
- isTaxInclusive: boolean;
2455
- }
2456
- export interface IPaymentMethodToFundLeft {
2457
- paymentType: PaymentMethodTypeEnum;
2458
- paymentMethodId: string;
2459
- fundLeft: number;
2460
- ccLast4?: string;
2461
- ccBrand?: string;
2462
- }
2463
- export interface IVariantsAndTitle {
2464
- title: VariantTitle;
2465
- variants: Variant[];
2466
- }
2467
- export interface IProgramSeasonActivityTimes {
2468
- dayOfWeek: number;
2469
- open: string;
2470
- close: string;
2471
- }
2472
- export interface IProgramSeasonActivityTimesAsDates {
2473
- date: string;
2474
- startTime: string;
2475
- endTime: string;
2476
- }
2477
- export interface IBlockedDates {
2478
- name: string;
2479
- startDate: Date;
2480
- endDate: Date;
2481
- }
2482
- export interface ISingleMemberForRenewal {
2483
- member_id: number;
2484
- member_membershipId: number;
2485
- member_userId: number;
2486
- member_nextPaymentMethodId?: string;
2487
- member_nextPaymentType?: PaymentMethodTypeEnum;
2488
- member_answerTitleIds?: number[];
2489
- member_organizationId: number;
2490
- line_paidAmount: number;
2491
- line_productId: number;
2492
- order_payingUserId: number;
2493
- order_paymentMethodId: string;
2494
- order_paymentType: PaymentMethodTypeEnum;
2495
- endDate: Date;
2496
- membership_name: string;
2497
- user_firstName: string;
2498
- user_lastName: string;
2499
- user_email: string;
2500
- }
2501
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2502
- package_parentProductId: number;
2503
- line2_paidAmount: number;
2504
- familyid: number;
2505
- order_id: number;
2506
- }
2507
- export interface IResourceRegistrationData {
2508
- id: number;
2509
- resourceType: ResourceNameTypeEnum;
2510
- openNumDays?: number;
2511
- openNumMinutes?: number;
2512
- openTime?: string;
2513
- closeNumDays?: number;
2514
- closeNumMinutes?: number;
2515
- closeTime?: string;
2516
- registrationWindowStatus?: RegistrationWindowStatusEnum;
2517
- }
2518
- export interface IResourceDataForConstraintsCalc {
2519
- id: number;
2520
- startDate: string;
2521
- startTime: string;
2522
- }
2523
- export interface IRegistrationConstraintsSetting {
2524
- numDays?: number;
2525
- numMinutes?: number;
2526
- }
2527
- export interface IAttendeeDataToNotify {
2528
- firstName: string;
2529
- lastName: string;
2530
- email: string;
2531
- sessionName: string;
2532
- parentSessionName?: string;
2533
- organizationName: string;
2534
- programName: string;
2535
- }
2536
- export interface IEventInSchedule {
2537
- eventId: number;
2538
- eventName: string;
2539
- eventStartDate: string;
2540
- eventEndDate: string;
2541
- eventStartTime: string;
2542
- eventEndTime: string;
2543
- programId: number;
2544
- programName: string;
2545
- programType: ProgramTypesEnum;
2546
- sessionId: number;
2547
- sessionName: string;
2548
- sports: number;
2549
- spaces: {
2550
- spaceId: number;
2551
- spaceName: string;
2552
- }[];
2553
- status?: RegistrationValidationStatusEnum;
2554
- }
2555
- export interface ISlotInSchedule {
2556
- facilityId: number;
2557
- facilityName: string;
2558
- spaces: ISpaceWithSlots[];
2559
- }
2560
- export interface ISpaceWithSlots {
2561
- id: number;
2562
- name: string;
2563
- slots: ISlotReservationData[];
2564
- }
2565
- export interface ISlotReservationData {
2566
- reservationId: number;
2567
- reservationName: string;
2568
- date: string;
2569
- startTime: string;
2570
- endTime: string;
2571
- notes: string;
2572
- spaceId: number;
2573
- isRental: boolean;
2574
- slotType: SlotTypeEnum;
2575
- slotId: number;
2576
- eventId: number;
2577
- }
2578
- export interface IRawEventInSchedule extends IEventInSchedule {
2579
- parentSessionId: number;
2580
- parentSessionName: string;
2581
- eventTimezone: string;
2582
- maxParticipants: number;
2583
- maxMaleParticipants: number;
2584
- maxFemaleParticipants: number;
2585
- isPunchCard: boolean;
2586
- }
2587
- export interface IBasicSpaceAndSlotCreator {
2588
- id: number;
2589
- name: string;
2590
- bookingCreatorId: number;
2591
- }
2592
- export interface IRawSlotInSchedule {
2593
- startDate: string;
2594
- endDate: string;
2595
- startTime: string;
2596
- endTime: string;
2597
- reservationId: number;
2598
- eventTitle: string;
2599
- publicNotes: string;
2600
- spaceId: number;
2601
- creatorType: ResourceNameTypeEnum;
2602
- slotType: SlotTypeEnum;
2603
- slotId: number;
2604
- eventId: number;
2605
- }
2606
- export interface IPurchasedResourcesRaw {
2607
- purchasedId: number;
2608
- purchasedProductUserId: number;
2609
- purchasedResourceId: number;
2610
- purchasedResourceType: ResourceNameTypeEnum;
2611
- purchasedStatus: PurchasedResourceStatusEnum;
2612
- pUserId: number;
2613
- pUserPaymentStatus: PaymentStatusEnum;
2614
- pUserProductId: number;
2615
- pUserProductName: string;
2616
- pUserProductPrice: number;
2617
- pUserProductPriceCurrency: string;
2618
- pUserProductQuantity: number;
2619
- pUserProductQuantityLeft: number;
2620
- pUserUserId: number;
2621
- }
2622
- export interface IUsersPasses {
2623
- userId: number;
2624
- userFirstName: string;
2625
- userLastName: string;
2626
- organizationId: number;
2627
- programId: number;
2628
- programName: string;
2629
- sessionId: number;
2630
- sessionName: string;
2631
- productId: number;
2632
- productName: string;
2633
- productUserId: number;
2634
- purchaseDate: Date;
2635
- passesLeft: number;
2636
- }
2637
- export interface ISessionsLandingPage {
2638
- sessionId: number;
2639
- name: string;
2640
- startDate: Date;
2641
- endDate: Date;
2642
- registrationStartDate: Date;
2643
- registrationEndDate: Date;
2644
- sport: SportsEnum;
2645
- minAge: string;
2646
- maxAge: string;
2647
- maxParticipants?: number;
2648
- gender: GenderEnum;
2649
- activityTimes: ActivityTimes[];
2650
- earlyRegistrationStartDate?: Date;
2651
- earlyRegistrationEndDate?: Date;
2652
- lateRegistrationStartDate?: Date;
2653
- lateRegistrationEndDate?: Date;
2654
- attendeeCount?: number;
2655
- segmentsOrEvents: 'segment' | 'event';
2656
- }
2657
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2658
- hasRequiredMembership: boolean;
2659
- hasEntitledPricing: boolean;
2660
- lowestPrice?: number;
2661
- products?: ISessionLandingPageProduct[];
2662
- }
2663
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2664
- hasRequiredMembership: boolean;
2665
- hasEntitledPricing: boolean;
2666
- products?: ISessionLandingPageProduct[];
2667
- segments?: Event[] | ProgramSeason[];
2668
- programName: string;
2669
- programId: number;
2670
- levelOfPlay: LevelOfPlayEnum[];
2671
- registrationConstraints: IResourceRegistrationData[];
2672
- }
2673
- export interface ISlimAddons {
2674
- addons?: {
2675
- id: number;
2676
- timePeriod: AddonTimePeriodEnum;
2677
- name: string;
2678
- productType?: ProductTypesEnum;
2679
- productSubType?: string;
2680
- }[];
2681
- }
2682
- export interface ISessionLandingPageProduct extends ISlimAddons {
2683
- id: number;
2684
- name: string;
2685
- startDate?: Date;
2686
- endDate?: Date;
2687
- downpayment?: number;
2688
- description?: string;
2689
- prices: Price[];
2690
- productSubType?: ProductSubTypesEnum;
2691
- punchCard: boolean;
2692
- isAddon: boolean;
2693
- defaultPriceId?: number;
2694
- }
2695
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2696
- destinationId?: string;
2697
- stripeCustomerId?: string;
2698
- fee?: number;
2699
- }
2700
- export interface IReservationCreatorData {
2701
- type: ResourceNameTypeEnum;
2702
- id: number;
2703
- organizationId: number;
2704
- startDate: string;
2705
- endDate: string;
2706
- sportId: number;
2707
- }
2708
- export declare enum EntitlementTermsTypesEnum {
2709
- QUESTION = "question",
2710
- CITY = "city",
2711
- MEMBERSHIP = "membership"
2712
- }
2713
- export declare enum ResourceNameTypeEnum {
2714
- EVENT = "event",
2715
- VENUE = "venue",
2716
- TEAM = "team",
2717
- LEAGUE = "league",
2718
- USER = "user",
2719
- ORGANIZATION = "organization",
2720
- APP = "app",
2721
- FEED = "feed",
2722
- MATCH = "match",
2723
- ROUND = "round",
2724
- PORTAL = "portal",
2725
- SEASON = "season",
2726
- TOURNAMENT = "tournament",
2727
- MEMBERSHIP = "membership",
2728
- DIVISION = "division",
2729
- GAMESLOT = "gameslot",
2730
- SPACE = "space",
2731
- RESERVATION = "reservation",
2732
- ORDER = "order",
2733
- CUSTOMER = "customer",
2734
- PACKAGE = "package",
2735
- FACILITY = "facility",
2736
- PROGRAM = "program",
2737
- PROGRAM_SEASON = "program_season",
2738
- PRODUCT = "product",
2739
- GROUP = "group",
2740
- VARIANT = "variant",
2741
- SLOT = "slot",
2742
- ADDON = "addon"
2743
- }
2744
- export declare enum DirectBookingTypesEnum {
2745
- DIRECT_FOR_ALL = "all",
2746
- DIRECT_FOR_NONE = "none",
2747
- DIRECT_VETTED_ONLY = "vetted_only",
2748
- NO_SETTING = "no_setting"
2749
- }
2750
- export declare enum GenderEnum {
2751
- OTHER = 1,
2752
- MALE = 2,
2753
- FEMALE = 3
2754
- }
2755
- export declare enum LevelOfPlayEnum {
2756
- BEGINNER = 1,
2757
- INTERMEDIATE = 2,
2758
- ADVANCED = 3,
2759
- SEMIPRO = 4,
2760
- SPECTATOR = 5
2761
- }
2762
- export declare enum ProgramTypesEnum {
2763
- LEAGUE = 0,
2764
- TOURNAMENT = 1,
2765
- CLASS = 2,
2766
- CLINIC = 3,
2767
- CAMP = 4,
2768
- LESSON = 5,
2769
- CLUB_TEAM = 6
2770
- }
2771
- export declare enum ProgramSeasonTypesEnum {
2772
- ROUND_ROBIN = 1,
2773
- BRACKETS = 2,
2774
- CAMP_CLINIC_CLASS = 3
2413
+ export declare enum ProgramSeasonTypesEnum {
2414
+ ROUND_ROBIN = 1,
2415
+ BRACKETS = 2,
2416
+ CAMP_CLINIC_CLASS = 3
2775
2417
  }
2776
2418
  export declare enum SportsEnum {
2777
2419
  SOFTBALL = 1,
@@ -3028,209 +2670,567 @@ export declare enum RolesEnum {
3028
2670
  ORG_ADMIN = "organizationAdmin",
3029
2671
  BOND_ADMIN = "bondAdmin"
3030
2672
  }
3031
- export declare enum SeasonPoolStatusEnum {
3032
- IN_POOL = 5,
3033
- ASSIGNED = 1,
3034
- QUIT = 2,
3035
- SUSPENDED = 3,
3036
- INACTIVE = 4
2673
+ export declare enum SeasonPoolStatusEnum {
2674
+ IN_POOL = 5,
2675
+ ASSIGNED = 1,
2676
+ QUIT = 2,
2677
+ SUSPENDED = 3,
2678
+ INACTIVE = 4
2679
+ }
2680
+ export declare enum AmenitiesEnum {
2681
+ HEAT = 1,
2682
+ AC = 2,
2683
+ WIFI = 3,
2684
+ RESTROOMS = 4,
2685
+ DRINKING_FOUNTAIN = 5,
2686
+ PARKING = 6,
2687
+ CONCESSIONS = 7,
2688
+ SHELTER = 8,
2689
+ PORTABLE_RESTROOMS = 9,
2690
+ LIGHTS = 10,
2691
+ LOCKER_ROOM = 11,
2692
+ PAID_PARKING = 12,
2693
+ ACCESSIBLE = 13
2694
+ }
2695
+ export declare enum ResourceSubTypeEnum {
2696
+ COURT = "court",
2697
+ FIELD = "field",
2698
+ ROOM = "room",
2699
+ DIAMOND = "diamond",
2700
+ RINK = "rink",
2701
+ STUDIO = "studio",
2702
+ POOL = "pool",
2703
+ BATTING_CAGE = "batting cage",
2704
+ SHELTER = "shelter",
2705
+ GOLF_SIMULATOR = "golf simulator"
2706
+ }
2707
+ export declare enum ResourceTypeEnum {
2708
+ SPACE = "space"
2709
+ }
2710
+ export declare enum ResourceAgesEnum {
2711
+ ADULTS = "adults",
2712
+ CHILDREN = "children"
2713
+ }
2714
+ export declare enum SpacePropertiesEnum {
2715
+ OUTDOOR = "outdoor",
2716
+ INDOOR = "indoor"
2717
+ }
2718
+ export declare enum SurfacesEnum {
2719
+ GRASS = "grass",
2720
+ TURF = "turf",
2721
+ FIELD_TURF = "fieldTurf",
2722
+ ASTRO_TURF = "astroTurf",
2723
+ HARDWOOD = "hardwood",
2724
+ ASPHALT = "asphalt",
2725
+ SAND = "sand",
2726
+ ICE = "ice",
2727
+ SPORT_COURT = "sportCourt"
2728
+ }
2729
+ export declare enum RegistrationConstraintPeriodTypeEnum {
2730
+ MINUTES = "minutes",
2731
+ DAYS = "days"
2732
+ }
2733
+ export declare enum RegistrationWindowStatusEnum {
2734
+ NOT_OPEN_YET = "not_opened_yet",
2735
+ OPEN = "open",
2736
+ CLOSED = "closed"
2737
+ }
2738
+ export declare enum RegistrationValidationStatusEnum {
2739
+ FULL = "full",
2740
+ ALREADY_REGISTERED = "registered",
2741
+ AVAILABLE = "available",
2742
+ NOT_OPEN_YET = "not opened",
2743
+ ALREADY_CLOSED = "closed",
2744
+ NO_PRODUCT_FOUND = "no-product-found"
2745
+ }
2746
+ export declare enum DiscountMethodsEnum {
2747
+ PERCENT = "percent",
2748
+ AMOUNT = "amount"
2749
+ }
2750
+ export declare enum UserAuthorizationsTypeEnum {
2751
+ ORGANIZATION = "organization"
2752
+ }
2753
+ export declare enum OrganizationLocaleDateEnum {
2754
+ USA = "USA"
2755
+ }
2756
+ export declare enum DateTimeFormatsEnum {
2757
+ API_DATE = "YYYY/MM/DD",
2758
+ API_TIME = "HH:mm:ss"
2759
+ }
2760
+ export declare enum SlotTypeEnum {
2761
+ EXTERNAL = "external",
2762
+ INTERNAL = "internal",
2763
+ MAINTENANCE = "maintenance",
2764
+ CUSTOM = "custom"
2765
+ }
2766
+ export declare enum PlatformsEnum {
2767
+ CONSUMER = "consumer",
2768
+ BO = "backoffice",
2769
+ MOBILE = "mobile",
2770
+ CRON = "cron"
2771
+ }
2772
+ export declare enum ShiftStatusEnum {
2773
+ OPEN = "open",
2774
+ CLOSED = "closed",
2775
+ MANAGMENT_CLOSED = "closed_by_manager",
2776
+ RECONCILED = "reconciled"
2777
+ }
2778
+ export declare enum EventStatusEnum {
2779
+ OPEN = 1,
2780
+ DRAFT = 2,
2781
+ FULL = 3,
2782
+ CANCELLED = 4,
2783
+ CLOSED = 5,
2784
+ DELETED = 6
2785
+ }
2786
+ export declare enum ReservationTypeEnum {
2787
+ RENTAL = "rental",
2788
+ PROGRAM = "program",
2789
+ MAINTENANCE = "maintenance",
2790
+ CUSTOM = "custom"
2791
+ }
2792
+ export declare enum SlotDurationTypeEnum {
2793
+ DATES = "dates",
2794
+ ALL_DAY = "all day",
2795
+ DURATION = "duration"
2796
+ }
2797
+ export declare enum DurationUnitTypesEnum {
2798
+ MINUTES = "minutes",
2799
+ HOURS = "hours"
2800
+ }
2801
+ export declare enum FrequencyEnum {
2802
+ NONE = "none",
2803
+ WEEKLY = "weekly",
2804
+ DAILY = "daily",
2805
+ MONTHLY = "monthly",
2806
+ YEARLY = "yearly"
2807
+ }
2808
+ export declare enum MaintenanceTimingEnum {
2809
+ BEFORE = 1,
2810
+ AFTER = 2,
2811
+ AT_THE_BEGINING = 3,
2812
+ AT_THE_END = 4
2813
+ }
2814
+ export declare enum CreatorTypeEnum {
2815
+ SPACE = "space",
2816
+ PROGRAM_SEASON = "program_season"
2817
+ }
2818
+ export declare enum UpdatePricesTypeEnum {
2819
+ INDIVIDUAL = "indvidual",
2820
+ CATEGORY = "category",
2821
+ GLOBAL = "global"
2822
+ }
2823
+ export declare enum BondDayOfWeekEnum {
2824
+ MONDAY = 2,
2825
+ TUESDAY = 3,
2826
+ WEDNESDAY = 4,
2827
+ THURSDAY = 5,
2828
+ FRIDAY = 6,
2829
+ SATURDAY = 7,
2830
+ SUNDAY = 8
2831
+ }
2832
+ export declare enum ReservationMigrationStatusEnum {
2833
+ NEW = "new",
2834
+ NO = "no",
2835
+ YES = "yes"
2836
+ }
2837
+ export declare enum ProductPackageLevelEnum {
2838
+ HOUR = "hour",
2839
+ SLOT = "slot",
2840
+ RESERVATION = "reservation"
2841
+ }
2842
+ export declare enum CancellationStatusEnum {
2843
+ IMMEDIATE = "immediate",
2844
+ AUTO_RENEWAL = "auto_renewal"
2845
+ }
2846
+ export declare enum SeasonScheduleStatusEnum {
2847
+ DRAFT = 0,
2848
+ PUBLISHED = 1
2849
+ }
2850
+ export declare enum FinancialStepEnum {
2851
+ VOID = "void",
2852
+ REFUND = "refund",
2853
+ NONE = "none",
2854
+ REFUND_AND_VOID = "refund-and-void",
2855
+ APPEND = "append"
2856
+ }
2857
+ export declare enum StripeAccountTypesEnum {
2858
+ STRIPE = "stripe",
2859
+ STRIPE_CUSTOM = "stripe:account:custom",
2860
+ STRIPE_CUSTOMER = "stripe:customer"
2861
+ }
2862
+ export declare enum LinkedAccountStatus {
2863
+ PENDING = 1,
2864
+ ACTIVE = 2,
2865
+ PRE_PENDING = 3
2866
+ }
2867
+ export declare enum AddonParentTypeEnum {
2868
+ RESERVATION = "reservation",
2869
+ SLOT = "slot"
2870
+ }
2871
+ export declare enum EEmailStatus {
2872
+ SENT = "sent",
2873
+ OPENED = "opened",
2874
+ PAID = "paid",
2875
+ CANCELED = "canceled"
2876
+ }
2877
+ export interface IEntitlementTerms {
2878
+ type: EntitlementTermsTypesEnum;
2879
+ id?: number;
2880
+ value?: string;
2881
+ minValue?: string;
2882
+ maxValue?: string;
2883
+ }
2884
+ export interface IQuestionAnswerObject {
2885
+ questionId: number;
2886
+ value: string;
2887
+ }
2888
+ export interface ILowestPriceForItem {
2889
+ itemId: number;
2890
+ itemType: ResourceNameTypeEnum;
2891
+ groupId: number;
2892
+ groupName?: string;
2893
+ price: number;
2894
+ overridesPrice: boolean;
2895
+ }
2896
+ export interface IResourcesAvailability {
2897
+ resourceType: ResourceNameTypeEnum;
2898
+ quantity: number;
2899
+ resourcesIds: number[];
2900
+ isPunchCard: boolean;
2901
+ resources?: any[];
2902
+ }
2903
+ export interface IPackageResponse {
2904
+ parentProduct: Product;
2905
+ children: IChildProduct[];
2906
+ }
2907
+ export interface IChildProduct {
2908
+ product: Product;
2909
+ relationType: PackageProductsRelationTypeEnum;
2910
+ timePeriod?: AddonTimePeriodEnum;
2911
+ }
2912
+ export interface ISeasonAttendeeInfo {
2913
+ applicationAnswers: Answer[];
2914
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2915
+ invoices: Order[];
2916
+ payments: Invoice[];
2917
+ products: Product[];
2918
+ redeemNext: ProductsUsers;
2919
+ }
2920
+ export interface ISeasonAttendeeListInfo {
2921
+ userId: number;
2922
+ userFirstName: string;
2923
+ userLastName: string;
2924
+ userGender: number;
2925
+ userBirthDate: Date;
2926
+ userProfilePicUrl: string;
2927
+ customerId: number;
2928
+ customerEmail: string;
2929
+ paymentStatus: string;
2930
+ productName: string;
2931
+ punchCard: boolean;
2932
+ }
2933
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2934
+ segmentType: ResourceNameTypeEnum;
2935
+ participantRegisteredDate?: string;
3037
2936
  }
3038
- export declare enum AmenitiesEnum {
3039
- HEAT = 1,
3040
- AC = 2,
3041
- WIFI = 3,
3042
- RESTROOMS = 4,
3043
- DRINKING_FOUNTAIN = 5,
3044
- PARKING = 6,
3045
- CONCESSIONS = 7,
3046
- SHELTER = 8,
3047
- PORTABLE_RESTROOMS = 9,
3048
- LIGHTS = 10,
3049
- LOCKER_ROOM = 11,
3050
- PAID_PARKING = 12,
3051
- ACCESSIBLE = 13
2937
+ export declare class EventAsSeasonSegment extends Event {
2938
+ segmentType: ResourceNameTypeEnum;
2939
+ participantRegisteredDate?: string;
3052
2940
  }
3053
- export declare enum ResourceSubTypeEnum {
3054
- COURT = "court",
3055
- FIELD = "field",
3056
- ROOM = "room",
3057
- DIAMOND = "diamond",
3058
- RINK = "rink",
3059
- STUDIO = "studio",
3060
- POOL = "pool",
3061
- BATTING_CAGE = "batting cage",
3062
- SHELTER = "shelter",
3063
- GOLF_SIMULATOR = "golf simulator"
2941
+ export interface ITokenResonse {
2942
+ token: string;
3064
2943
  }
3065
- export declare enum ResourceTypeEnum {
3066
- SPACE = "space"
2944
+ export interface IStripeBondInvoices {
2945
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2946
+ bondPaidInvoice: Invoice;
2947
+ order?: Order;
2948
+ customer?: Customer;
3067
2949
  }
3068
- export declare enum ResourceAgesEnum {
3069
- ADULTS = "adults",
3070
- CHILDREN = "children"
2950
+ export interface IPartialPaymentData {
2951
+ purchasingUserId: number;
2952
+ paymentData: PurchasePaymentDto;
2953
+ amountToPay: number;
3071
2954
  }
3072
- export declare enum SpacePropertiesEnum {
3073
- OUTDOOR = "outdoor",
3074
- INDOOR = "indoor"
2955
+ export interface IPayment {
2956
+ id: number;
2957
+ total: number;
2958
+ paymentMethod: PaymentMethodTypeEnum;
2959
+ status: PaymentStatusEnum;
2960
+ createdAt: Date;
2961
+ invoices: number[];
3075
2962
  }
3076
- export declare enum SurfacesEnum {
3077
- GRASS = "grass",
3078
- TURF = "turf",
3079
- FIELD_TURF = "fieldTurf",
3080
- ASTRO_TURF = "astroTurf",
3081
- HARDWOOD = "hardwood",
3082
- ASPHALT = "asphalt",
3083
- SAND = "sand",
3084
- ICE = "ice",
3085
- SPORT_COURT = "sportCourt"
2963
+ export interface IPaginationData<T> {
2964
+ meta: {
2965
+ totalItems: number;
2966
+ itemsPerPage: number;
2967
+ totalPages: number;
2968
+ currentPage: number;
2969
+ };
2970
+ data: T[];
3086
2971
  }
3087
- export declare enum RegistrationConstraintPeriodTypeEnum {
3088
- MINUTES = "minutes",
3089
- DAYS = "days"
2972
+ export interface IPricesOfProductsResults {
2973
+ productId: number;
2974
+ userId: number;
2975
+ price: number;
2976
+ groupId?: number;
2977
+ groupName?: string;
2978
+ originalPrice?: number;
2979
+ priceWithoutTax: number;
2980
+ tax: number;
2981
+ isTaxInclusive: boolean;
3090
2982
  }
3091
- export declare enum RegistrationWindowStatusEnum {
3092
- NOT_OPEN_YET = "not_opened_yet",
3093
- OPEN = "open",
3094
- CLOSED = "closed"
2983
+ export interface IPaymentMethodToFundLeft {
2984
+ paymentType: PaymentMethodTypeEnum;
2985
+ paymentMethodId: string;
2986
+ fundLeft: number;
2987
+ ccLast4?: string;
2988
+ ccBrand?: string;
3095
2989
  }
3096
- export declare enum RegistrationValidationStatusEnum {
3097
- FULL = "full",
3098
- ALREADY_REGISTERED = "registered",
3099
- AVAILABLE = "available",
3100
- NOT_OPEN_YET = "not opened",
3101
- ALREADY_CLOSED = "closed",
3102
- NO_PRODUCT_FOUND = "no-product-found"
2990
+ export interface IVariantsAndTitle {
2991
+ title: VariantTitle;
2992
+ variants: Variant[];
3103
2993
  }
3104
- export declare enum DiscountMethodsEnum {
3105
- PERCENT = "percent",
3106
- AMOUNT = "amount"
2994
+ export interface IProgramSeasonActivityTimes {
2995
+ dayOfWeek: number;
2996
+ open: string;
2997
+ close: string;
3107
2998
  }
3108
- export declare enum UserAuthorizationsTypeEnum {
3109
- ORGANIZATION = "organization"
2999
+ export interface IProgramSeasonActivityTimesAsDates {
3000
+ date: string;
3001
+ startTime: string;
3002
+ endTime: string;
3110
3003
  }
3111
- export declare enum OrganizationLocaleDateEnum {
3112
- USA = "USA"
3004
+ export interface IBlockedDates {
3005
+ name: string;
3006
+ startDate: Date;
3007
+ endDate: Date;
3113
3008
  }
3114
- export declare enum DateTimeFormatsEnum {
3115
- API_DATE = "YYYY/MM/DD",
3116
- API_TIME = "HH:mm:ss"
3009
+ export interface ISingleMemberForRenewal {
3010
+ member_id: number;
3011
+ member_membershipId: number;
3012
+ member_userId: number;
3013
+ member_nextPaymentMethodId?: string;
3014
+ member_nextPaymentType?: PaymentMethodTypeEnum;
3015
+ member_answerTitleIds?: number[];
3016
+ member_organizationId: number;
3017
+ line_paidAmount: number;
3018
+ line_productId: number;
3019
+ order_payingUserId: number;
3020
+ order_paymentMethodId: string;
3021
+ order_paymentType: PaymentMethodTypeEnum;
3022
+ endDate: Date;
3023
+ membership_name: string;
3024
+ user_firstName: string;
3025
+ user_lastName: string;
3026
+ user_email: string;
3117
3027
  }
3118
- export declare enum SlotTypeEnum {
3119
- EXTERNAL = "external",
3120
- INTERNAL = "internal",
3121
- MAINTENANCE = "maintenance",
3122
- CUSTOM = "custom"
3028
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3029
+ package_parentProductId: number;
3030
+ line2_paidAmount: number;
3031
+ familyid: number;
3032
+ order_id: number;
3123
3033
  }
3124
- export declare enum PlatformsEnum {
3125
- CONSUMER = "consumer",
3126
- BO = "backoffice",
3127
- MOBILE = "mobile",
3128
- CRON = "cron"
3034
+ export interface IResourceRegistrationData {
3035
+ id: number;
3036
+ resourceType: ResourceNameTypeEnum;
3037
+ openNumDays?: number;
3038
+ openNumMinutes?: number;
3039
+ openTime?: string;
3040
+ closeNumDays?: number;
3041
+ closeNumMinutes?: number;
3042
+ closeTime?: string;
3043
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
3129
3044
  }
3130
- export declare enum ShiftStatusEnum {
3131
- OPEN = "open",
3132
- CLOSED = "closed",
3133
- MANAGMENT_CLOSED = "closed_by_manager",
3134
- RECONCILED = "reconciled"
3045
+ export interface IResourceDataForConstraintsCalc {
3046
+ id: number;
3047
+ startDate: string;
3048
+ startTime: string;
3135
3049
  }
3136
- export declare enum EventStatusEnum {
3137
- OPEN = 1,
3138
- DRAFT = 2,
3139
- FULL = 3,
3140
- CANCELLED = 4,
3141
- CLOSED = 5,
3142
- DELETED = 6
3050
+ export interface IRegistrationConstraintsSetting {
3051
+ numDays?: number;
3052
+ numMinutes?: number;
3143
3053
  }
3144
- export declare enum ReservationTypeEnum {
3145
- RENTAL = "rental",
3146
- PROGRAM = "program",
3147
- MAINTENANCE = "maintenance",
3148
- CUSTOM = "custom"
3054
+ export interface IAttendeeDataToNotify {
3055
+ firstName: string;
3056
+ lastName: string;
3057
+ email: string;
3058
+ sessionName: string;
3059
+ parentSessionName?: string;
3060
+ organizationName: string;
3061
+ programName: string;
3149
3062
  }
3150
- export declare enum SlotDurationTypeEnum {
3151
- DATES = "dates",
3152
- ALL_DAY = "all day",
3153
- DURATION = "duration"
3063
+ export interface IEventInSchedule {
3064
+ eventId: number;
3065
+ eventName: string;
3066
+ eventStartDate: string;
3067
+ eventEndDate: string;
3068
+ eventStartTime: string;
3069
+ eventEndTime: string;
3070
+ programId: number;
3071
+ programName: string;
3072
+ programType: ProgramTypesEnum;
3073
+ sessionId: number;
3074
+ sessionName: string;
3075
+ sports: number;
3076
+ spaces: {
3077
+ spaceId: number;
3078
+ spaceName: string;
3079
+ }[];
3080
+ status?: RegistrationValidationStatusEnum;
3154
3081
  }
3155
- export declare enum DurationUnitTypesEnum {
3156
- MINUTES = "minutes",
3157
- HOURS = "hours"
3082
+ export interface ISlotInSchedule {
3083
+ facilityId: number;
3084
+ facilityName: string;
3085
+ spaces: ISpaceWithSlots[];
3158
3086
  }
3159
- export declare enum FrequencyEnum {
3160
- NONE = "none",
3161
- WEEKLY = "weekly",
3162
- DAILY = "daily",
3163
- MONTHLY = "monthly",
3164
- YEARLY = "yearly"
3087
+ export interface ISpaceWithSlots {
3088
+ id: number;
3089
+ name: string;
3090
+ slots: ISlotReservationData[];
3165
3091
  }
3166
- export declare enum MaintenanceTimingEnum {
3167
- BEFORE = 1,
3168
- AFTER = 2,
3169
- AT_THE_BEGINING = 3,
3170
- AT_THE_END = 4
3092
+ export interface ISlotReservationData {
3093
+ reservationId: number;
3094
+ reservationName: string;
3095
+ date: string;
3096
+ startTime: string;
3097
+ endTime: string;
3098
+ notes: string;
3099
+ spaceId: number;
3100
+ isRental: boolean;
3101
+ slotType: SlotTypeEnum;
3102
+ slotId: number;
3103
+ eventId: number;
3171
3104
  }
3172
- export declare enum CreatorTypeEnum {
3173
- SPACE = "space",
3174
- PROGRAM_SEASON = "program_season"
3105
+ export interface IRawEventInSchedule extends IEventInSchedule {
3106
+ parentSessionId: number;
3107
+ parentSessionName: string;
3108
+ eventTimezone: string;
3109
+ maxParticipants: number;
3110
+ maxMaleParticipants: number;
3111
+ maxFemaleParticipants: number;
3112
+ isPunchCard: boolean;
3175
3113
  }
3176
- export declare enum UpdatePricesTypeEnum {
3177
- INDIVIDUAL = "indvidual",
3178
- CATEGORY = "category",
3179
- GLOBAL = "global"
3114
+ export interface IBasicSpaceAndSlotCreator {
3115
+ id: number;
3116
+ name: string;
3117
+ bookingCreatorId: number;
3180
3118
  }
3181
- export declare enum BondDayOfWeekEnum {
3182
- MONDAY = 2,
3183
- TUESDAY = 3,
3184
- WEDNESDAY = 4,
3185
- THURSDAY = 5,
3186
- FRIDAY = 6,
3187
- SATURDAY = 7,
3188
- SUNDAY = 8
3119
+ export interface IRawSlotInSchedule {
3120
+ startDate: string;
3121
+ endDate: string;
3122
+ startTime: string;
3123
+ endTime: string;
3124
+ reservationId: number;
3125
+ eventTitle: string;
3126
+ publicNotes: string;
3127
+ spaceId: number;
3128
+ creatorType: ResourceNameTypeEnum;
3129
+ slotType: SlotTypeEnum;
3130
+ slotId: number;
3131
+ eventId: number;
3189
3132
  }
3190
- export declare enum ReservationMigrationStatusEnum {
3191
- NEW = "new",
3192
- NO = "no",
3193
- YES = "yes"
3133
+ export interface IPurchasedResourcesRaw {
3134
+ purchasedId: number;
3135
+ purchasedProductUserId: number;
3136
+ purchasedResourceId: number;
3137
+ purchasedResourceType: ResourceNameTypeEnum;
3138
+ purchasedStatus: PurchasedResourceStatusEnum;
3139
+ pUserId: number;
3140
+ pUserPaymentStatus: PaymentStatusEnum;
3141
+ pUserProductId: number;
3142
+ pUserProductName: string;
3143
+ pUserProductPrice: number;
3144
+ pUserProductPriceCurrency: string;
3145
+ pUserProductQuantity: number;
3146
+ pUserProductQuantityLeft: number;
3147
+ pUserUserId: number;
3194
3148
  }
3195
- export declare enum ProductPackageLevelEnum {
3196
- HOUR = "hour",
3197
- SLOT = "slot",
3198
- RESERVATION = "reservation"
3149
+ export interface IUsersPasses {
3150
+ userId: number;
3151
+ userFirstName: string;
3152
+ userLastName: string;
3153
+ organizationId: number;
3154
+ programId: number;
3155
+ programName: string;
3156
+ sessionId: number;
3157
+ sessionName: string;
3158
+ productId: number;
3159
+ productName: string;
3160
+ productUserId: number;
3161
+ purchaseDate: Date;
3162
+ passesLeft: number;
3199
3163
  }
3200
- export declare enum CancellationStatusEnum {
3201
- IMMEDIATE = "immediate",
3202
- AUTO_RENEWAL = "auto_renewal"
3164
+ export interface ISessionsLandingPage {
3165
+ sessionId: number;
3166
+ name: string;
3167
+ startDate: Date;
3168
+ endDate: Date;
3169
+ registrationStartDate: Date;
3170
+ registrationEndDate: Date;
3171
+ sport: SportsEnum;
3172
+ minAge: string;
3173
+ maxAge: string;
3174
+ maxParticipants?: number;
3175
+ gender: GenderEnum;
3176
+ activityTimes: ActivityTimes[];
3177
+ earlyRegistrationStartDate?: Date;
3178
+ earlyRegistrationEndDate?: Date;
3179
+ lateRegistrationStartDate?: Date;
3180
+ lateRegistrationEndDate?: Date;
3181
+ attendeeCount?: number;
3182
+ segmentsOrEvents: 'segment' | 'event';
3203
3183
  }
3204
- export declare enum SeasonScheduleStatusEnum {
3205
- DRAFT = 0,
3206
- PUBLISHED = 1
3184
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3185
+ hasRequiredMembership: boolean;
3186
+ hasEntitledPricing: boolean;
3187
+ lowestPrice?: number;
3188
+ products?: ISessionLandingPageProduct[];
3207
3189
  }
3208
- export declare enum FinancialStepEnum {
3209
- VOID = "void",
3210
- REFUND = "refund",
3211
- NONE = "none",
3212
- REFUND_AND_VOID = "refund-and-void",
3213
- APPEND = "append"
3190
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3191
+ hasRequiredMembership: boolean;
3192
+ hasEntitledPricing: boolean;
3193
+ products?: ISessionLandingPageProduct[];
3194
+ segments?: Event[] | ProgramSeason[];
3195
+ programName: string;
3196
+ programId: number;
3197
+ levelOfPlay: LevelOfPlayEnum[];
3198
+ registrationConstraints: IResourceRegistrationData[];
3214
3199
  }
3215
- export declare enum StripeAccountTypesEnum {
3216
- STRIPE = "stripe",
3217
- STRIPE_CUSTOM = "stripe:account:custom",
3218
- STRIPE_CUSTOMER = "stripe:customer"
3200
+ export interface ISlimAddons {
3201
+ addons?: {
3202
+ id: number;
3203
+ timePeriod: AddonTimePeriodEnum;
3204
+ name: string;
3205
+ productType?: ProductTypesEnum;
3206
+ productSubType?: string;
3207
+ }[];
3219
3208
  }
3220
- export declare enum LinkedAccountStatus {
3221
- PENDING = 1,
3222
- ACTIVE = 2,
3223
- PRE_PENDING = 3
3209
+ export interface ISessionLandingPageProduct extends ISlimAddons {
3210
+ id: number;
3211
+ name: string;
3212
+ startDate?: Date;
3213
+ endDate?: Date;
3214
+ downpayment?: number;
3215
+ description?: string;
3216
+ prices: Price[];
3217
+ productSubType?: ProductSubTypesEnum;
3218
+ punchCard: boolean;
3219
+ isAddon: boolean;
3220
+ defaultPriceId?: number;
3224
3221
  }
3225
- export declare enum AddonParentTypeEnum {
3226
- RESERVATION = "reservation",
3227
- SLOT = "slot"
3222
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3223
+ destinationId?: string;
3224
+ stripeCustomerId?: string;
3225
+ fee?: number;
3228
3226
  }
3229
- export declare enum EEmailStatus {
3230
- SENT = "sent",
3231
- OPENED = "opened",
3232
- PAID = "paid",
3233
- CANCELED = "canceled"
3227
+ export interface IReservationCreatorData {
3228
+ type: ResourceNameTypeEnum;
3229
+ id: number;
3230
+ organizationId: number;
3231
+ startDate: string;
3232
+ endDate: string;
3233
+ sportId: number;
3234
3234
  }
3235
3235
  export declare class ColumnNumericTransformer {
3236
3236
  to(data: number): number;
@@ -3393,6 +3393,17 @@ export declare class Lock extends BondBaseEntity {
3393
3393
  name: string;
3394
3394
  locked?: Date;
3395
3395
  }
3396
+ export declare class CreateMonitorConfigDto {
3397
+ facilityId: number;
3398
+ name: string;
3399
+ code: string;
3400
+ config: any;
3401
+ }
3402
+ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3403
+ facilityId: number;
3404
+ code: string;
3405
+ config?: any;
3406
+ }
3396
3407
  export declare class ByOrganizationIdDto {
3397
3408
  organizationId: number;
3398
3409
  }
@@ -3461,17 +3472,6 @@ export declare class OrganizationUsers extends BondBaseEntity {
3461
3472
  organisationId: number | null;
3462
3473
  userId: number | null;
3463
3474
  }
3464
- export declare class CreateMonitorConfigDto {
3465
- facilityId: number;
3466
- name: string;
3467
- code: string;
3468
- config: any;
3469
- }
3470
- export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3471
- facilityId: number;
3472
- code: string;
3473
- config?: any;
3474
- }
3475
3475
  export declare class CustomerIdDto {
3476
3476
  customerId: number;
3477
3477
  }
@@ -3621,29 +3621,6 @@ export declare class VoidLineItemDto {
3621
3621
  isEdit?: boolean;
3622
3622
  amount?: number;
3623
3623
  }
3624
- export declare class ChangeRolePermissionsDto {
3625
- permissionIds: number[];
3626
- }
3627
- export declare class CreateRoleDto {
3628
- name: string;
3629
- }
3630
- export declare class Role extends OrganizationConnectionBaseEntity {
3631
- name: string;
3632
- deletedAt?: Date;
3633
- permissions: Permission[];
3634
- usersRoles: UserRole[];
3635
- }
3636
- export declare class UserRole extends OrganizationConnectionBaseEntity {
3637
- deletedAt?: Date;
3638
- userId: number;
3639
- roleId: number;
3640
- role: Role;
3641
- user: User;
3642
- }
3643
- export declare class Permission extends BondBaseEntity {
3644
- name: string;
3645
- deletedAt?: Date;
3646
- }
3647
3624
  export declare class LineItemDto {
3648
3625
  id?: number;
3649
3626
  orderId?: number;
@@ -4156,6 +4133,29 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
4156
4133
  changeLineItems?: LineItems[];
4157
4134
  updatedLineItem?: LineItems;
4158
4135
  }
4136
+ export declare class ChangeRolePermissionsDto {
4137
+ permissionIds: number[];
4138
+ }
4139
+ export declare class CreateRoleDto {
4140
+ name: string;
4141
+ }
4142
+ export declare class Permission extends BondBaseEntity {
4143
+ name: string;
4144
+ deletedAt?: Date;
4145
+ }
4146
+ export declare class Role extends OrganizationConnectionBaseEntity {
4147
+ name: string;
4148
+ deletedAt?: Date;
4149
+ permissions: Permission[];
4150
+ usersRoles: UserRole[];
4151
+ }
4152
+ export declare class UserRole extends OrganizationConnectionBaseEntity {
4153
+ deletedAt?: Date;
4154
+ userId: number;
4155
+ roleId: number;
4156
+ role: Role;
4157
+ user: User;
4158
+ }
4159
4159
  export declare class CloseShiftDto {
4160
4160
  closingCashAmount: number;
4161
4161
  }