@bondsports/types 0.0.87 → 0.0.90

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
@@ -1272,6 +1272,10 @@ export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1272
1272
  export declare class EntitlementGroup extends OrganizationConnectionBaseEntity {
1273
1273
  name: string | null;
1274
1274
  }
1275
+ export declare class EntitlementTerms extends OrganizationConnectionBaseEntity {
1276
+ groupId: number;
1277
+ terms: IEntitlementTerms[];
1278
+ }
1275
1279
  export declare class EventAttendee extends BondBaseEntity {
1276
1280
  status: RequestStatusEnum | null;
1277
1281
  hasPaid: boolean | null;
@@ -1287,10 +1291,6 @@ export declare class EventAttendee extends BondBaseEntity {
1287
1291
  event: Event;
1288
1292
  purchasedResource: PurchasedResource;
1289
1293
  }
1290
- export declare class EntitlementTerms extends OrganizationConnectionBaseEntity {
1291
- groupId: number;
1292
- terms: IEntitlementTerms[];
1293
- }
1294
1294
  export declare class Event extends OrganizationConnectionBaseEntity {
1295
1295
  constructor();
1296
1296
  defineCalculatedDateTimeProps(): void;
@@ -1407,11 +1407,6 @@ export declare class Group extends BondBaseEntity {
1407
1407
  members: ISeasonAttendeeInfo[];
1408
1408
  users: User[];
1409
1409
  }
1410
- export declare class GroupsInDivisions extends BondBaseEntity {
1411
- groupId: number;
1412
- divisionId: number;
1413
- deletedAt?: Date;
1414
- }
1415
1410
  export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
1416
1411
  groupId: number;
1417
1412
  itemId: number;
@@ -1425,6 +1420,11 @@ export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity
1425
1420
  discountMethod?: DiscountMethodsEnum;
1426
1421
  discountValue?: number;
1427
1422
  }
1423
+ export declare class GroupsInDivisions extends BondBaseEntity {
1424
+ groupId: number;
1425
+ divisionId: number;
1426
+ deletedAt?: Date;
1427
+ }
1428
1428
  export declare class Invoice extends OrganizationConnectionBaseEntity {
1429
1429
  price: number;
1430
1430
  paymentProcessorId: string;
@@ -1607,6 +1607,22 @@ export declare class LineItems extends BondBaseEntity {
1607
1607
  displayUnitPrice?: number;
1608
1608
  displayQuantity?: number;
1609
1609
  }
1610
+ export declare class LinkedAccounts extends BondBaseEntity {
1611
+ id: number;
1612
+ provider: string;
1613
+ providerId: string | null;
1614
+ parentId: number | null;
1615
+ parentType: string | null;
1616
+ status: number | null;
1617
+ token: string | null;
1618
+ refreshToken: string | null;
1619
+ tokenCreatedAt: Date | null;
1620
+ tokenValidUpTo: Date | null;
1621
+ createdAt: Date;
1622
+ updatedAt: Date;
1623
+ user: User;
1624
+ userId: number | null;
1625
+ }
1610
1626
  export declare class Media extends BondBaseEntity {
1611
1627
  url: string;
1612
1628
  name: string | null;
@@ -1799,21 +1815,6 @@ export declare class Price extends OrganizationConnectionBaseEntity {
1799
1815
  discountValue?: number;
1800
1816
  taxIncludedPrice?: number;
1801
1817
  }
1802
- export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1803
- parentProductId: number;
1804
- childProductId: number;
1805
- relationType: PackageProductsRelationTypeEnum;
1806
- timePeriod: AddonTimePeriodEnum;
1807
- deletedAt?: Date;
1808
- productResource: ProductResource;
1809
- childProduct: Product;
1810
- parentProduct: Product;
1811
- price: number;
1812
- isFlatPrice: boolean;
1813
- durationMinutes?: number;
1814
- durationDays?: number;
1815
- level?: ProductPackageLevelEnum;
1816
- }
1817
1818
  export declare class Product extends OrganizationConnectionBaseEntity {
1818
1819
  name: string;
1819
1820
  quantity: number;
@@ -1864,6 +1865,21 @@ export declare class Product extends OrganizationConnectionBaseEntity {
1864
1865
  activityTimes: ActivityTimes[];
1865
1866
  purchasedResources: PurchasedResource[];
1866
1867
  }
1868
+ export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1869
+ parentProductId: number;
1870
+ childProductId: number;
1871
+ relationType: PackageProductsRelationTypeEnum;
1872
+ timePeriod: AddonTimePeriodEnum;
1873
+ deletedAt?: Date;
1874
+ productResource: ProductResource;
1875
+ childProduct: Product;
1876
+ parentProduct: Product;
1877
+ price: number;
1878
+ isFlatPrice: boolean;
1879
+ durationMinutes?: number;
1880
+ durationDays?: number;
1881
+ level?: ProductPackageLevelEnum;
1882
+ }
1867
1883
  export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
1868
1884
  productId: number;
1869
1885
  maxMonths?: number;
@@ -1899,22 +1915,6 @@ export declare class ProductsReservedForCustomers extends OrganizationConnection
1899
1915
  deletedAt?: Date;
1900
1916
  product: Product;
1901
1917
  }
1902
- export declare class LinkedAccounts extends BondBaseEntity {
1903
- id: number;
1904
- provider: string;
1905
- providerId: string | null;
1906
- parentId: number | null;
1907
- parentType: string | null;
1908
- status: number | null;
1909
- token: string | null;
1910
- refreshToken: string | null;
1911
- tokenCreatedAt: Date | null;
1912
- tokenValidUpTo: Date | null;
1913
- createdAt: Date;
1914
- updatedAt: Date;
1915
- user: User;
1916
- userId: number | null;
1917
- }
1918
1918
  export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1919
1919
  productId: number;
1920
1920
  userId: number;
@@ -2351,626 +2351,266 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2351
2351
  membershipCollectionId?: string;
2352
2352
  programsCollectionId?: string;
2353
2353
  }
2354
- export interface IEntitlementTerms {
2355
- type: EntitlementTermsTypesEnum;
2356
- id?: number;
2357
- value?: string;
2358
- minValue?: string;
2359
- maxValue?: string;
2360
- }
2361
- export interface IQuestionAnswerObject {
2362
- questionId: number;
2363
- value: string;
2354
+ export declare enum EntitlementTermsTypesEnum {
2355
+ QUESTION = "question",
2356
+ CITY = "city",
2357
+ MEMBERSHIP = "membership"
2364
2358
  }
2365
- export interface ILowestPriceForItem {
2366
- itemId: number;
2367
- itemType: ResourceNameTypeEnum;
2368
- groupId: number;
2369
- groupName?: string;
2370
- price: number;
2371
- overridesPrice: boolean;
2359
+ export declare enum ResourceNameTypeEnum {
2360
+ EVENT = "event",
2361
+ VENUE = "venue",
2362
+ TEAM = "team",
2363
+ LEAGUE = "league",
2364
+ USER = "user",
2365
+ ORGANIZATION = "organization",
2366
+ APP = "app",
2367
+ FEED = "feed",
2368
+ MATCH = "match",
2369
+ ROUND = "round",
2370
+ PORTAL = "portal",
2371
+ SEASON = "season",
2372
+ TOURNAMENT = "tournament",
2373
+ MEMBERSHIP = "membership",
2374
+ DIVISION = "division",
2375
+ GAMESLOT = "gameslot",
2376
+ SPACE = "space",
2377
+ RESERVATION = "reservation",
2378
+ ORDER = "order",
2379
+ CUSTOMER = "customer",
2380
+ PACKAGE = "package",
2381
+ FACILITY = "facility",
2382
+ PROGRAM = "program",
2383
+ PROGRAM_SEASON = "program_season",
2384
+ PRODUCT = "product",
2385
+ GROUP = "group",
2386
+ VARIANT = "variant",
2387
+ SLOT = "slot",
2388
+ ADDON = "addon"
2372
2389
  }
2373
- export interface IResourcesAvailability {
2374
- resourceType: ResourceNameTypeEnum;
2375
- quantity: number;
2376
- resourcesIds: number[];
2377
- isPunchCard: boolean;
2378
- resources?: any[];
2390
+ export declare enum DirectBookingTypesEnum {
2391
+ DIRECT_FOR_ALL = "all",
2392
+ DIRECT_FOR_NONE = "none",
2393
+ DIRECT_VETTED_ONLY = "vetted_only",
2394
+ NO_SETTING = "no_setting"
2379
2395
  }
2380
- export interface IPackageResponse {
2381
- parentProduct: Product;
2382
- children: IChildProduct[];
2396
+ export declare enum GenderEnum {
2397
+ OTHER = 1,
2398
+ MALE = 2,
2399
+ FEMALE = 3
2383
2400
  }
2384
- export interface IChildProduct {
2385
- product: Product;
2386
- relationType: PackageProductsRelationTypeEnum;
2387
- timePeriod?: AddonTimePeriodEnum;
2401
+ export declare enum LevelOfPlayEnum {
2402
+ BEGINNER = 1,
2403
+ INTERMEDIATE = 2,
2404
+ ADVANCED = 3,
2405
+ SEMIPRO = 4,
2406
+ SPECTATOR = 5
2388
2407
  }
2389
- export interface ISeasonAttendeeInfo {
2390
- applicationAnswers: Answer[];
2391
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2392
- invoices: Order[];
2393
- payments: Invoice[];
2394
- products: Product[];
2395
- redeemNext: ProductsUsers;
2408
+ export declare enum ProgramTypesEnum {
2409
+ LEAGUE = 0,
2410
+ TOURNAMENT = 1,
2411
+ CLASS = 2,
2412
+ CLINIC = 3,
2413
+ CAMP = 4,
2414
+ LESSON = 5,
2415
+ CLUB_TEAM = 6
2396
2416
  }
2397
- export interface ISeasonAttendeeListInfo {
2398
- userId: number;
2399
- userFirstName: string;
2400
- userLastName: string;
2401
- userGender: number;
2402
- userBirthDate: Date;
2403
- userProfilePicUrl: string;
2404
- customerId: number;
2405
- customerEmail: string;
2406
- paymentStatus: string;
2407
- productName: string;
2408
- punchCard: boolean;
2417
+ export declare enum ProgramSeasonTypesEnum {
2418
+ ROUND_ROBIN = 1,
2419
+ BRACKETS = 2,
2420
+ CAMP_CLINIC_CLASS = 3
2409
2421
  }
2410
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2411
- segmentType: ResourceNameTypeEnum;
2412
- participantRegisteredDate?: string;
2422
+ export declare enum SportsEnum {
2423
+ SOFTBALL = 1,
2424
+ BASKETBALL = 2,
2425
+ FOOTBALL = 3,
2426
+ SOCCER = 4,
2427
+ BOWLING = 5,
2428
+ BOCCEBALL = 6,
2429
+ CORNHOLE = 7,
2430
+ DODGEBALL = 8,
2431
+ FRISBEE = 9,
2432
+ HOCKEY = 10,
2433
+ KICKBALL = 11,
2434
+ LACROSSE = 12,
2435
+ PINGPONG = 13,
2436
+ RUGBY = 14,
2437
+ SKEEBALL = 15,
2438
+ TENNIS = 16,
2439
+ VOLLEYBALL = 17,
2440
+ WIFFLEBALL = 18,
2441
+ BADMINTON = 19,
2442
+ FITNESS = 20,
2443
+ GOLF = 21,
2444
+ PILATES = 22,
2445
+ RUNNING = 23,
2446
+ SKIING = 24,
2447
+ SNOWBOARDING = 25,
2448
+ YOGA = 26,
2449
+ BROOMBALL = 27,
2450
+ CRICKET = 28,
2451
+ CROSSFIT = 29,
2452
+ CYCLING = 30,
2453
+ FIELD_HOCKEY = 31,
2454
+ RACQUETBALL = 32,
2455
+ SPINNING = 33,
2456
+ SQUASH = 34,
2457
+ SURFING = 35,
2458
+ SWIMMING = 36,
2459
+ WIND_SURFING = 37,
2460
+ ADVENTURE = 38,
2461
+ BOXING = 39,
2462
+ BASEBALL = 40,
2463
+ DANCE = 41,
2464
+ KICKBOXING = 42,
2465
+ MARTIAL_ARTS = 43,
2466
+ OUTDOORS = 44,
2467
+ ROWING = 45,
2468
+ SAILING = 46,
2469
+ SUP = 47,
2470
+ TRIATHLON = 48,
2471
+ HANDBALL = 49,
2472
+ CATCHBALL = 50,
2473
+ BLITZBALL = 51,
2474
+ ROLLER_DERBY = 52,
2475
+ ICE_SKATING = 53,
2476
+ PICKLEBALL = 54,
2477
+ AXE_THROWING = 55,
2478
+ FURSAL = 56,
2479
+ BIRTHDAY = 57,
2480
+ CORPRATE_EVENTS = 58,
2481
+ OTHER = 999
2413
2482
  }
2414
- export declare class EventAsSeasonSegment extends Event {
2415
- segmentType: ResourceNameTypeEnum;
2416
- participantRegisteredDate?: string;
2417
- }
2418
- export interface ITokenResonse {
2419
- token: string;
2483
+ export declare enum PublishingStatusEnum {
2484
+ DRAFT = 1,
2485
+ PUBLISHED = 2,
2486
+ CLOSED = 3,
2487
+ CANCELLED = 4,
2488
+ ARCHIVE = 5,
2489
+ UNPUBLISHED = 6
2420
2490
  }
2421
- export interface IStripeBondInvoices {
2422
- paidStripePaymentIntent: Stripe.PaymentIntent;
2423
- bondPaidInvoice: Invoice;
2424
- order?: Order;
2425
- customer?: Customer;
2491
+ export declare enum ProgramHighlightTypeEnum {
2492
+ OTHER = 1,
2493
+ MINAGE = 2,
2494
+ MAXAGE = 3,
2495
+ GENDER = 4,
2496
+ LEVELOFPLAY = 5,
2497
+ GAMESSEASON = 6,
2498
+ MINWEEK = 7,
2499
+ SURFACE = 8,
2500
+ FORMAT = 9,
2501
+ PLAYERS_PER_TEAM = 10,
2502
+ MATCH_LENGTH = 12
2426
2503
  }
2427
- export interface IPartialPaymentData {
2428
- purchasingUserId: number;
2429
- paymentData: PurchasePaymentDto;
2430
- amountToPay: number;
2504
+ export declare enum RequestStatusEnum {
2505
+ PENDING = 1,
2506
+ ACCEPTED = 2,
2507
+ DECLINED = 3
2431
2508
  }
2432
- export interface IPayment {
2433
- id: number;
2434
- total: number;
2435
- paymentMethod: PaymentMethodTypeEnum;
2436
- status: PaymentStatusEnum;
2437
- createdAt: Date;
2438
- invoices: number[];
2509
+ export declare enum PaymentStatusEnum {
2510
+ NOT_PAID = "not_paid",
2511
+ PARTIAL_PAYMENT = "partial",
2512
+ FULLY_PAID = "paid",
2513
+ REFUNDED = "refunded",
2514
+ VOID = "void"
2439
2515
  }
2440
- export interface IPaginationData<T> {
2441
- meta: {
2442
- totalItems: number;
2443
- itemsPerPage: number;
2444
- totalPages: number;
2445
- currentPage: number;
2446
- };
2447
- data: T[];
2516
+ export declare enum ReservationExtendedEnum {
2517
+ PURCHASE_ORDER = "purchase_order"
2448
2518
  }
2449
- export interface IPricesOfProductsResults {
2450
- productId: number;
2451
- userId: number;
2452
- price: number;
2453
- groupId?: number;
2454
- groupName?: string;
2455
- originalPrice?: number;
2456
- priceWithoutTax: number;
2457
- tax: number;
2458
- isTaxInclusive: boolean;
2519
+ export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2520
+ export declare enum ReservationStatusEnum {
2521
+ PLANNED = "Planned",
2522
+ APPROVED = "Approved",
2523
+ AWAITING_ADMIN = "Awaiting Admin",
2524
+ AWAITING_CUSTOMER = "Awaiting Customer",
2525
+ REJECTED = "Rejected",
2526
+ CANCELED = "Canceled"
2459
2527
  }
2460
- export interface IPaymentMethodToFundLeft {
2461
- paymentType: PaymentMethodTypeEnum;
2462
- paymentMethodId: string;
2463
- fundLeft: number;
2464
- ccLast4?: string;
2465
- ccBrand?: string;
2528
+ export declare enum PaymentStatusV1Enum {
2529
+ SENT_TO_CLIENT = 1,
2530
+ SENT_FOR_PAYMENT = 2,
2531
+ ACCEPTED = 3,
2532
+ REJECTED = 4,
2533
+ CANCELLED = 5,
2534
+ FRAUD = 6,
2535
+ NOT_RELEVANT = 7,
2536
+ PENDING = 8
2466
2537
  }
2467
- export interface IVariantsAndTitle {
2468
- title: VariantTitle;
2469
- variants: Variant[];
2538
+ export declare enum PaymentMethodsEnum {
2539
+ STRIPE = 1,
2540
+ CASH = 3
2470
2541
  }
2471
- export interface IProgramSeasonActivityTimes {
2472
- dayOfWeek: number;
2473
- open: string;
2474
- close: string;
2542
+ export declare enum PackageProductsRelationTypeEnum {
2543
+ CHILD = "child",
2544
+ UPSALE = "upsale"
2475
2545
  }
2476
- export interface IProgramSeasonActivityTimesAsDates {
2477
- date: string;
2478
- startTime: string;
2479
- endTime: string;
2546
+ export declare enum AddonTimePeriodEnum {
2547
+ FULL = "full",
2548
+ SESSION = "session",
2549
+ EVENT = "event"
2480
2550
  }
2481
- export interface IBlockedDates {
2482
- name: string;
2483
- startDate: Date;
2484
- endDate: Date;
2551
+ export declare enum CurrencyEnum {
2552
+ USD = "USD"
2485
2553
  }
2486
- export interface ISingleMemberForRenewal {
2487
- member_id: number;
2488
- member_membershipId: number;
2489
- member_userId: number;
2490
- member_nextPaymentMethodId?: string;
2491
- member_nextPaymentType?: PaymentMethodTypeEnum;
2492
- member_answerTitleIds?: number[];
2493
- member_organizationId: number;
2494
- line_paidAmount: number;
2495
- line_productId: number;
2496
- order_payingUserId: number;
2497
- order_paymentMethodId: string;
2498
- order_paymentType: PaymentMethodTypeEnum;
2499
- endDate: Date;
2500
- membership_name: string;
2501
- user_firstName: string;
2502
- user_lastName: string;
2503
- user_email: string;
2554
+ export declare enum NotificationTypeEnum {
2555
+ BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2556
+ BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2557
+ BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2504
2558
  }
2505
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2506
- package_parentProductId: number;
2507
- line2_paidAmount: number;
2508
- familyid: number;
2509
- order_id: number;
2559
+ export declare enum ProductTypesEnum {
2560
+ RESERVATION = "reservation",
2561
+ REGISTRATION = "registration",
2562
+ MEMBERSHIP = "membership",
2563
+ GOODS = "goods",
2564
+ PACKAGE = "package",
2565
+ REFUND_COMPENSATION = "refund",
2566
+ CASH_OVER_SHORT = "cash_over_short",
2567
+ PETTY_CASH = "petty_cash",
2568
+ LEAGUE_REGISTRATION = "league_registration",
2569
+ TAX = "tax"
2510
2570
  }
2511
- export interface IResourceRegistrationData {
2512
- id: number;
2513
- resourceType: ResourceNameTypeEnum;
2514
- openNumDays?: number;
2515
- openNumMinutes?: number;
2516
- openTime?: string;
2517
- closeNumDays?: number;
2518
- closeNumMinutes?: number;
2519
- closeTime?: string;
2520
- registrationWindowStatus?: RegistrationWindowStatusEnum;
2571
+ export declare enum OrderStatusEnum {
2572
+ ACTIVE = "active",
2573
+ WAITING_ADMIN = "waitingAdmin",
2574
+ WAITING_CLIENT = "waitingClient",
2575
+ CANCELED = "canceled"
2521
2576
  }
2522
- export interface IResourceDataForConstraintsCalc {
2523
- id: number;
2524
- startDate: string;
2525
- startTime: string;
2577
+ export declare enum LineItemsStatusEnum {
2578
+ USER_PRODUCT = "UserProduct",
2579
+ RENTAL_PRODUCT = "RentalProduct"
2526
2580
  }
2527
- export interface IRegistrationConstraintsSetting {
2528
- numDays?: number;
2529
- numMinutes?: number;
2581
+ export declare enum ProductSubTypesEnum {
2582
+ SEASON_INDIVIDUAL = "season_individual",
2583
+ SEASON_TEAM = "season_team",
2584
+ SEASON_PER_PLAYER = "season_per_player"
2530
2585
  }
2531
- export interface IAttendeeDataToNotify {
2532
- firstName: string;
2533
- lastName: string;
2534
- email: string;
2535
- sessionName: string;
2536
- parentSessionName?: string;
2537
- organizationName: string;
2538
- programName: string;
2586
+ export declare enum PaymentMethodTypeEnum {
2587
+ CREDIT_CARD = "card",
2588
+ ACH = "ach",
2589
+ CASH = "cash",
2590
+ CHECK = "check",
2591
+ BALANCE = "balance",
2592
+ CARD_ON_TERMINAL = "card-on-terminal",
2593
+ OTHER = "other",
2594
+ MIGRATED = "migrated",
2595
+ VOID = "void"
2539
2596
  }
2540
- export interface IEventInSchedule {
2541
- eventId: number;
2542
- eventName: string;
2543
- eventStartDate: string;
2544
- eventEndDate: string;
2545
- eventStartTime: string;
2546
- eventEndTime: string;
2547
- programId: number;
2548
- programName: string;
2549
- programType: ProgramTypesEnum;
2550
- sessionId: number;
2551
- sessionName: string;
2552
- sports: number;
2553
- spaces: {
2554
- spaceId: number;
2555
- spaceName: string;
2556
- }[];
2557
- status?: RegistrationValidationStatusEnum;
2597
+ export declare enum RefundTypeEnum {
2598
+ LEAVE_BALANCE = "leave_balance",
2599
+ REDUCE_BALANCE = "reduce_balance"
2558
2600
  }
2559
- export interface ISlotInSchedule {
2560
- facilityId: number;
2561
- facilityName: string;
2562
- spaces: ISpaceWithSlots[];
2601
+ export declare enum CustomerInMembershipTypeEnum {
2602
+ INDIVIDUAL = "individual",
2603
+ FAMILY = "family",
2604
+ ORGANIZATION = "organization"
2563
2605
  }
2564
- export interface ISpaceWithSlots {
2565
- id: number;
2566
- name: string;
2567
- slots: ISlotReservationData[];
2606
+ export declare enum MembershipTypeEnum {
2607
+ FIXED = "fix_membership",
2608
+ ROLLING = "rolling_membership"
2568
2609
  }
2569
- export interface ISlotReservationData {
2570
- reservationId: number;
2571
- reservationName: string;
2572
- date: string;
2573
- startTime: string;
2574
- endTime: string;
2575
- notes: string;
2576
- spaceId: number;
2577
- isRental: boolean;
2578
- slotType: SlotTypeEnum;
2579
- slotId: number;
2580
- eventId: number;
2581
- isPrivate: boolean;
2582
- }
2583
- export interface IRawEventInSchedule extends IEventInSchedule {
2584
- parentSessionId: number;
2585
- parentSessionName: string;
2586
- eventTimezone: string;
2587
- maxParticipants: number;
2588
- maxMaleParticipants: number;
2589
- maxFemaleParticipants: number;
2590
- isPunchCard: boolean;
2591
- }
2592
- export interface IBasicSpaceAndSlotCreator {
2593
- id: number;
2594
- name: string;
2595
- bookingCreatorId: number;
2596
- }
2597
- export interface IRawSlotInSchedule {
2598
- startDate: string;
2599
- endDate: string;
2600
- startTime: string;
2601
- endTime: string;
2602
- reservationId: number;
2603
- eventTitle: string;
2604
- publicNotes: string;
2605
- spaceId: number;
2606
- creatorType: ResourceNameTypeEnum;
2607
- slotType: SlotTypeEnum;
2608
- slotId: number;
2609
- eventId: number;
2610
- isPrivate: boolean;
2611
- }
2612
- export interface IPurchasedResourcesRaw {
2613
- purchasedId: number;
2614
- purchasedProductUserId: number;
2615
- purchasedResourceId: number;
2616
- purchasedResourceType: ResourceNameTypeEnum;
2617
- purchasedStatus: PurchasedResourceStatusEnum;
2618
- pUserId: number;
2619
- pUserPaymentStatus: PaymentStatusEnum;
2620
- pUserProductId: number;
2621
- pUserProductName: string;
2622
- pUserProductPrice: number;
2623
- pUserProductPriceCurrency: string;
2624
- pUserProductQuantity: number;
2625
- pUserProductQuantityLeft: number;
2626
- pUserUserId: number;
2627
- }
2628
- export interface IUsersPasses {
2629
- userId: number;
2630
- userFirstName: string;
2631
- userLastName: string;
2632
- organizationId: number;
2633
- programId: number;
2634
- programName: string;
2635
- sessionId: number;
2636
- sessionName: string;
2637
- productId: number;
2638
- productName: string;
2639
- productUserId: number;
2640
- purchaseDate: Date;
2641
- passesLeft: number;
2642
- }
2643
- export interface ISessionsLandingPage {
2644
- sessionId: number;
2645
- name: string;
2646
- startDate: Date;
2647
- endDate: Date;
2648
- registrationStartDate: Date;
2649
- registrationEndDate: Date;
2650
- sport: SportsEnum;
2651
- minAge: string;
2652
- maxAge: string;
2653
- maxParticipants?: number;
2654
- gender: GenderEnum;
2655
- activityTimes: ActivityTimes[];
2656
- earlyRegistrationStartDate?: Date;
2657
- earlyRegistrationEndDate?: Date;
2658
- lateRegistrationStartDate?: Date;
2659
- lateRegistrationEndDate?: Date;
2660
- attendeeCount?: number;
2661
- segmentsOrEvents: 'segment' | 'event';
2662
- }
2663
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2664
- hasRequiredMembership: boolean;
2665
- hasEntitledPricing: boolean;
2666
- lowestPrice?: number;
2667
- products?: ISessionLandingPageProduct[];
2668
- }
2669
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2670
- hasRequiredMembership: boolean;
2671
- hasEntitledPricing: boolean;
2672
- products?: ISessionLandingPageProduct[];
2673
- segments?: Event[] | ProgramSeason[];
2674
- programName: string;
2675
- programId: number;
2676
- levelOfPlay: LevelOfPlayEnum[];
2677
- registrationConstraints: IResourceRegistrationData[];
2678
- }
2679
- export interface ISlimAddons {
2680
- addons?: {
2681
- id: number;
2682
- timePeriod: AddonTimePeriodEnum;
2683
- name: string;
2684
- productType?: ProductTypesEnum;
2685
- productSubType?: string;
2686
- }[];
2687
- }
2688
- export interface ISessionLandingPageProduct extends ISlimAddons {
2689
- id: number;
2690
- name: string;
2691
- startDate?: Date;
2692
- endDate?: Date;
2693
- downpayment?: number;
2694
- description?: string;
2695
- prices: Price[];
2696
- productSubType?: ProductSubTypesEnum;
2697
- punchCard: boolean;
2698
- isAddon: boolean;
2699
- defaultPriceId?: number;
2700
- }
2701
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2702
- destinationId?: string;
2703
- stripeCustomerId?: string;
2704
- fee?: number;
2705
- }
2706
- export interface IReservationCreatorData {
2707
- type: ResourceNameTypeEnum;
2708
- id: number;
2709
- organizationId: number;
2710
- startDate: string;
2711
- endDate: string;
2712
- sportId: number;
2713
- }
2714
- export declare enum EntitlementTermsTypesEnum {
2715
- QUESTION = "question",
2716
- CITY = "city",
2717
- MEMBERSHIP = "membership"
2718
- }
2719
- export declare enum ResourceNameTypeEnum {
2720
- EVENT = "event",
2721
- VENUE = "venue",
2722
- TEAM = "team",
2723
- LEAGUE = "league",
2724
- USER = "user",
2725
- ORGANIZATION = "organization",
2726
- APP = "app",
2727
- FEED = "feed",
2728
- MATCH = "match",
2729
- ROUND = "round",
2730
- PORTAL = "portal",
2731
- SEASON = "season",
2732
- TOURNAMENT = "tournament",
2733
- MEMBERSHIP = "membership",
2734
- DIVISION = "division",
2735
- GAMESLOT = "gameslot",
2736
- SPACE = "space",
2737
- RESERVATION = "reservation",
2738
- ORDER = "order",
2739
- CUSTOMER = "customer",
2740
- PACKAGE = "package",
2741
- FACILITY = "facility",
2742
- PROGRAM = "program",
2743
- PROGRAM_SEASON = "program_season",
2744
- PRODUCT = "product",
2745
- GROUP = "group",
2746
- VARIANT = "variant",
2747
- SLOT = "slot",
2748
- ADDON = "addon"
2749
- }
2750
- export declare enum DirectBookingTypesEnum {
2751
- DIRECT_FOR_ALL = "all",
2752
- DIRECT_FOR_NONE = "none",
2753
- DIRECT_VETTED_ONLY = "vetted_only",
2754
- NO_SETTING = "no_setting"
2755
- }
2756
- export declare enum GenderEnum {
2757
- OTHER = 1,
2758
- MALE = 2,
2759
- FEMALE = 3
2760
- }
2761
- export declare enum LevelOfPlayEnum {
2762
- BEGINNER = 1,
2763
- INTERMEDIATE = 2,
2764
- ADVANCED = 3,
2765
- SEMIPRO = 4,
2766
- SPECTATOR = 5
2767
- }
2768
- export declare enum ProgramTypesEnum {
2769
- LEAGUE = 0,
2770
- TOURNAMENT = 1,
2771
- CLASS = 2,
2772
- CLINIC = 3,
2773
- CAMP = 4,
2774
- LESSON = 5,
2775
- CLUB_TEAM = 6
2776
- }
2777
- export declare enum ProgramSeasonTypesEnum {
2778
- ROUND_ROBIN = 1,
2779
- BRACKETS = 2,
2780
- CAMP_CLINIC_CLASS = 3
2781
- }
2782
- export declare enum SportsEnum {
2783
- SOFTBALL = 1,
2784
- BASKETBALL = 2,
2785
- FOOTBALL = 3,
2786
- SOCCER = 4,
2787
- BOWLING = 5,
2788
- BOCCEBALL = 6,
2789
- CORNHOLE = 7,
2790
- DODGEBALL = 8,
2791
- FRISBEE = 9,
2792
- HOCKEY = 10,
2793
- KICKBALL = 11,
2794
- LACROSSE = 12,
2795
- PINGPONG = 13,
2796
- RUGBY = 14,
2797
- SKEEBALL = 15,
2798
- TENNIS = 16,
2799
- VOLLEYBALL = 17,
2800
- WIFFLEBALL = 18,
2801
- BADMINTON = 19,
2802
- FITNESS = 20,
2803
- GOLF = 21,
2804
- PILATES = 22,
2805
- RUNNING = 23,
2806
- SKIING = 24,
2807
- SNOWBOARDING = 25,
2808
- YOGA = 26,
2809
- BROOMBALL = 27,
2810
- CRICKET = 28,
2811
- CROSSFIT = 29,
2812
- CYCLING = 30,
2813
- FIELD_HOCKEY = 31,
2814
- RACQUETBALL = 32,
2815
- SPINNING = 33,
2816
- SQUASH = 34,
2817
- SURFING = 35,
2818
- SWIMMING = 36,
2819
- WIND_SURFING = 37,
2820
- ADVENTURE = 38,
2821
- BOXING = 39,
2822
- BASEBALL = 40,
2823
- DANCE = 41,
2824
- KICKBOXING = 42,
2825
- MARTIAL_ARTS = 43,
2826
- OUTDOORS = 44,
2827
- ROWING = 45,
2828
- SAILING = 46,
2829
- SUP = 47,
2830
- TRIATHLON = 48,
2831
- HANDBALL = 49,
2832
- CATCHBALL = 50,
2833
- BLITZBALL = 51,
2834
- ROLLER_DERBY = 52,
2835
- ICE_SKATING = 53,
2836
- PICKLEBALL = 54,
2837
- AXE_THROWING = 55,
2838
- FURSAL = 56,
2839
- BIRTHDAY = 57,
2840
- CORPRATE_EVENTS = 58,
2841
- OTHER = 999
2842
- }
2843
- export declare enum PublishingStatusEnum {
2844
- DRAFT = 1,
2845
- PUBLISHED = 2,
2846
- CLOSED = 3,
2847
- CANCELLED = 4,
2848
- ARCHIVE = 5,
2849
- UNPUBLISHED = 6
2850
- }
2851
- export declare enum ProgramHighlightTypeEnum {
2852
- OTHER = 1,
2853
- MINAGE = 2,
2854
- MAXAGE = 3,
2855
- GENDER = 4,
2856
- LEVELOFPLAY = 5,
2857
- GAMESSEASON = 6,
2858
- MINWEEK = 7,
2859
- SURFACE = 8,
2860
- FORMAT = 9,
2861
- PLAYERS_PER_TEAM = 10,
2862
- MATCH_LENGTH = 12
2863
- }
2864
- export declare enum RequestStatusEnum {
2865
- PENDING = 1,
2866
- ACCEPTED = 2,
2867
- DECLINED = 3
2868
- }
2869
- export declare enum PaymentStatusEnum {
2870
- NOT_PAID = "not_paid",
2871
- PARTIAL_PAYMENT = "partial",
2872
- FULLY_PAID = "paid",
2873
- REFUNDED = "refunded",
2874
- VOID = "void"
2875
- }
2876
- export declare enum ReservationExtendedEnum {
2877
- PURCHASE_ORDER = "purchase_order"
2878
- }
2879
- export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2880
- export declare enum ReservationStatusEnum {
2881
- PLANNED = "Planned",
2882
- APPROVED = "Approved",
2883
- AWAITING_ADMIN = "Awaiting Admin",
2884
- AWAITING_CUSTOMER = "Awaiting Customer",
2885
- REJECTED = "Rejected",
2886
- CANCELED = "Canceled"
2887
- }
2888
- export declare enum PaymentStatusV1Enum {
2889
- SENT_TO_CLIENT = 1,
2890
- SENT_FOR_PAYMENT = 2,
2891
- ACCEPTED = 3,
2892
- REJECTED = 4,
2893
- CANCELLED = 5,
2894
- FRAUD = 6,
2895
- NOT_RELEVANT = 7,
2896
- PENDING = 8
2897
- }
2898
- export declare enum PaymentMethodsEnum {
2899
- STRIPE = 1,
2900
- CASH = 3
2901
- }
2902
- export declare enum PackageProductsRelationTypeEnum {
2903
- CHILD = "child",
2904
- UPSALE = "upsale"
2905
- }
2906
- export declare enum AddonTimePeriodEnum {
2907
- FULL = "full",
2908
- SESSION = "session",
2909
- EVENT = "event"
2910
- }
2911
- export declare enum CurrencyEnum {
2912
- USD = "USD"
2913
- }
2914
- export declare enum NotificationTypeEnum {
2915
- BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2916
- BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2917
- BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2918
- }
2919
- export declare enum ProductTypesEnum {
2920
- RESERVATION = "reservation",
2921
- REGISTRATION = "registration",
2922
- MEMBERSHIP = "membership",
2923
- GOODS = "goods",
2924
- PACKAGE = "package",
2925
- REFUND_COMPENSATION = "refund",
2926
- CASH_OVER_SHORT = "cash_over_short",
2927
- PETTY_CASH = "petty_cash",
2928
- LEAGUE_REGISTRATION = "league_registration",
2929
- TAX = "tax"
2930
- }
2931
- export declare enum OrderStatusEnum {
2932
- ACTIVE = "active",
2933
- WAITING_ADMIN = "waitingAdmin",
2934
- WAITING_CLIENT = "waitingClient",
2935
- CANCELED = "canceled"
2936
- }
2937
- export declare enum LineItemsStatusEnum {
2938
- USER_PRODUCT = "UserProduct",
2939
- RENTAL_PRODUCT = "RentalProduct"
2940
- }
2941
- export declare enum ProductSubTypesEnum {
2942
- SEASON_INDIVIDUAL = "season_individual",
2943
- SEASON_TEAM = "season_team",
2944
- SEASON_PER_PLAYER = "season_per_player"
2945
- }
2946
- export declare enum PaymentMethodTypeEnum {
2947
- CREDIT_CARD = "card",
2948
- ACH = "ach",
2949
- CASH = "cash",
2950
- CHECK = "check",
2951
- BALANCE = "balance",
2952
- CARD_ON_TERMINAL = "card-on-terminal",
2953
- OTHER = "other",
2954
- MIGRATED = "migrated",
2955
- VOID = "void"
2956
- }
2957
- export declare enum RefundTypeEnum {
2958
- LEAVE_BALANCE = "leave_balance",
2959
- REDUCE_BALANCE = "reduce_balance"
2960
- }
2961
- export declare enum CustomerInMembershipTypeEnum {
2962
- INDIVIDUAL = "individual",
2963
- FAMILY = "family",
2964
- ORGANIZATION = "organization"
2965
- }
2966
- export declare enum MembershipTypeEnum {
2967
- FIXED = "fix_membership",
2968
- ROLLING = "rolling_membership"
2969
- }
2970
- export declare enum CustomerTypeEnum {
2971
- USER = "user",
2972
- FAMILY = "family",
2973
- ORGANIZATION = "organization"
2610
+ export declare enum CustomerTypeEnum {
2611
+ USER = "user",
2612
+ FAMILY = "family",
2613
+ ORGANIZATION = "organization"
2974
2614
  }
2975
2615
  export declare enum GroupStatusEnum {
2976
2616
  ACTIVE = 1,
@@ -3139,110 +2779,465 @@ export declare enum ShiftStatusEnum {
3139
2779
  MANAGMENT_CLOSED = "closed_by_manager",
3140
2780
  RECONCILED = "reconciled"
3141
2781
  }
3142
- export declare enum EventStatusEnum {
3143
- OPEN = 1,
3144
- DRAFT = 2,
3145
- FULL = 3,
3146
- CANCELLED = 4,
3147
- CLOSED = 5,
3148
- DELETED = 6
2782
+ export declare enum EventStatusEnum {
2783
+ OPEN = 1,
2784
+ DRAFT = 2,
2785
+ FULL = 3,
2786
+ CANCELLED = 4,
2787
+ CLOSED = 5,
2788
+ DELETED = 6
2789
+ }
2790
+ export declare enum ReservationTypeEnum {
2791
+ RENTAL = "rental",
2792
+ PROGRAM = "program",
2793
+ MAINTENANCE = "maintenance",
2794
+ CUSTOM = "custom"
2795
+ }
2796
+ export declare enum SlotDurationTypeEnum {
2797
+ DATES = "dates",
2798
+ ALL_DAY = "all day",
2799
+ DURATION = "duration"
2800
+ }
2801
+ export declare enum DurationUnitTypesEnum {
2802
+ MINUTES = "minutes",
2803
+ HOURS = "hours"
2804
+ }
2805
+ export declare enum FrequencyEnum {
2806
+ NONE = "none",
2807
+ WEEKLY = "weekly",
2808
+ DAILY = "daily",
2809
+ MONTHLY = "monthly",
2810
+ YEARLY = "yearly"
2811
+ }
2812
+ export declare enum MaintenanceTimingEnum {
2813
+ BEFORE = 1,
2814
+ AFTER = 2,
2815
+ AT_THE_BEGINING = 3,
2816
+ AT_THE_END = 4
2817
+ }
2818
+ export declare enum CreatorTypeEnum {
2819
+ SPACE = "space",
2820
+ PROGRAM_SEASON = "program_season"
2821
+ }
2822
+ export declare enum UpdatePricesTypeEnum {
2823
+ INDIVIDUAL = "indvidual",
2824
+ CATEGORY = "category",
2825
+ GLOBAL = "global"
2826
+ }
2827
+ export declare enum BondDayOfWeekEnum {
2828
+ MONDAY = 2,
2829
+ TUESDAY = 3,
2830
+ WEDNESDAY = 4,
2831
+ THURSDAY = 5,
2832
+ FRIDAY = 6,
2833
+ SATURDAY = 7,
2834
+ SUNDAY = 8
2835
+ }
2836
+ export declare enum ReservationMigrationStatusEnum {
2837
+ NEW = "new",
2838
+ NO = "no",
2839
+ YES = "yes"
2840
+ }
2841
+ export declare enum ProductPackageLevelEnum {
2842
+ HOUR = "hour",
2843
+ SLOT = "slot",
2844
+ RESERVATION = "reservation"
2845
+ }
2846
+ export declare enum CancellationStatusEnum {
2847
+ IMMEDIATE = "immediate",
2848
+ AUTO_RENEWAL = "auto_renewal"
2849
+ }
2850
+ export declare enum SeasonScheduleStatusEnum {
2851
+ DRAFT = 0,
2852
+ PUBLISHED = 1
2853
+ }
2854
+ export declare enum FinancialStepEnum {
2855
+ VOID = "void",
2856
+ REFUND = "refund",
2857
+ NONE = "none",
2858
+ REFUND_AND_VOID = "refund-and-void",
2859
+ APPEND = "append"
2860
+ }
2861
+ export declare enum StripeAccountTypesEnum {
2862
+ STRIPE = "stripe",
2863
+ STRIPE_CUSTOM = "stripe:account:custom",
2864
+ STRIPE_CUSTOMER = "stripe:customer"
2865
+ }
2866
+ export declare enum LinkedAccountStatus {
2867
+ PENDING = 1,
2868
+ ACTIVE = 2,
2869
+ PRE_PENDING = 3
2870
+ }
2871
+ export declare enum AddonParentTypeEnum {
2872
+ RESERVATION = "reservation",
2873
+ SLOT = "slot"
2874
+ }
2875
+ export declare enum EEmailStatus {
2876
+ SENT = "sent",
2877
+ OPENED = "opened",
2878
+ PAID = "paid",
2879
+ CANCELED = "canceled"
2880
+ }
2881
+ export interface IEntitlementTerms {
2882
+ type: EntitlementTermsTypesEnum;
2883
+ id?: number;
2884
+ value?: string;
2885
+ minValue?: string;
2886
+ maxValue?: string;
2887
+ }
2888
+ export interface IQuestionAnswerObject {
2889
+ questionId: number;
2890
+ value: string;
2891
+ }
2892
+ export interface ILowestPriceForItem {
2893
+ itemId: number;
2894
+ itemType: ResourceNameTypeEnum;
2895
+ groupId: number;
2896
+ groupName?: string;
2897
+ price: number;
2898
+ overridesPrice: boolean;
2899
+ }
2900
+ export interface IResourcesAvailability {
2901
+ resourceType: ResourceNameTypeEnum;
2902
+ quantity: number;
2903
+ resourcesIds: number[];
2904
+ isPunchCard: boolean;
2905
+ resources?: any[];
2906
+ }
2907
+ export interface IPackageResponse {
2908
+ parentProduct: Product;
2909
+ children: IChildProduct[];
2910
+ }
2911
+ export interface IChildProduct {
2912
+ product: Product;
2913
+ relationType: PackageProductsRelationTypeEnum;
2914
+ timePeriod?: AddonTimePeriodEnum;
2915
+ }
2916
+ export interface ISeasonAttendeeInfo {
2917
+ applicationAnswers: Answer[];
2918
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2919
+ invoices: Order[];
2920
+ payments: Invoice[];
2921
+ products: Product[];
2922
+ redeemNext: ProductsUsers;
2923
+ }
2924
+ export interface ISeasonAttendeeListInfo {
2925
+ userId: number;
2926
+ userFirstName: string;
2927
+ userLastName: string;
2928
+ userGender: number;
2929
+ userBirthDate: Date;
2930
+ userProfilePicUrl: string;
2931
+ customerId: number;
2932
+ customerEmail: string;
2933
+ paymentStatus: string;
2934
+ productName: string;
2935
+ punchCard: boolean;
2936
+ }
2937
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2938
+ segmentType: ResourceNameTypeEnum;
2939
+ participantRegisteredDate?: string;
2940
+ }
2941
+ export declare class EventAsSeasonSegment extends Event {
2942
+ segmentType: ResourceNameTypeEnum;
2943
+ participantRegisteredDate?: string;
2944
+ }
2945
+ export interface ITokenResonse {
2946
+ token: string;
2947
+ }
2948
+ export interface IStripeBondInvoices {
2949
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2950
+ bondPaidInvoice: Invoice;
2951
+ order?: Order;
2952
+ customer?: Customer;
2953
+ }
2954
+ export interface IPartialPaymentData {
2955
+ purchasingUserId: number;
2956
+ paymentData: PurchasePaymentDto;
2957
+ amountToPay: number;
2958
+ }
2959
+ export interface IPayment {
2960
+ id: number;
2961
+ total: number;
2962
+ paymentMethod: PaymentMethodTypeEnum;
2963
+ status: PaymentStatusEnum;
2964
+ createdAt: Date;
2965
+ invoices: number[];
2966
+ }
2967
+ export interface IPaginationData<T> {
2968
+ meta: {
2969
+ totalItems: number;
2970
+ itemsPerPage: number;
2971
+ totalPages: number;
2972
+ currentPage: number;
2973
+ };
2974
+ data: T[];
2975
+ }
2976
+ export interface IPricesOfProductsResults {
2977
+ productId: number;
2978
+ userId: number;
2979
+ price: number;
2980
+ groupId?: number;
2981
+ groupName?: string;
2982
+ originalPrice?: number;
2983
+ priceWithoutTax: number;
2984
+ tax: number;
2985
+ isTaxInclusive: boolean;
2986
+ }
2987
+ export interface IPaymentMethodToFundLeft {
2988
+ paymentType: PaymentMethodTypeEnum;
2989
+ paymentMethodId: string;
2990
+ fundLeft: number;
2991
+ ccLast4?: string;
2992
+ ccBrand?: string;
2993
+ }
2994
+ export interface IVariantsAndTitle {
2995
+ title: VariantTitle;
2996
+ variants: Variant[];
2997
+ }
2998
+ export interface IProgramSeasonActivityTimes {
2999
+ dayOfWeek: number;
3000
+ open: string;
3001
+ close: string;
3002
+ }
3003
+ export interface IProgramSeasonActivityTimesAsDates {
3004
+ date: string;
3005
+ startTime: string;
3006
+ endTime: string;
3007
+ }
3008
+ export interface IBlockedDates {
3009
+ name: string;
3010
+ startDate: Date;
3011
+ endDate: Date;
3012
+ }
3013
+ export interface ISingleMemberForRenewal {
3014
+ member_id: number;
3015
+ member_membershipId: number;
3016
+ member_userId: number;
3017
+ member_nextPaymentMethodId?: string;
3018
+ member_nextPaymentType?: PaymentMethodTypeEnum;
3019
+ member_answerTitleIds?: number[];
3020
+ member_organizationId: number;
3021
+ line_paidAmount: number;
3022
+ line_productId: number;
3023
+ order_payingUserId: number;
3024
+ order_paymentMethodId: string;
3025
+ order_paymentType: PaymentMethodTypeEnum;
3026
+ endDate: Date;
3027
+ membership_name: string;
3028
+ user_firstName: string;
3029
+ user_lastName: string;
3030
+ user_email: string;
3031
+ }
3032
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3033
+ package_parentProductId: number;
3034
+ line2_paidAmount: number;
3035
+ familyid: number;
3036
+ order_id: number;
3037
+ }
3038
+ export interface IResourceRegistrationData {
3039
+ id: number;
3040
+ resourceType: ResourceNameTypeEnum;
3041
+ openNumDays?: number;
3042
+ openNumMinutes?: number;
3043
+ openTime?: string;
3044
+ closeNumDays?: number;
3045
+ closeNumMinutes?: number;
3046
+ closeTime?: string;
3047
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
3149
3048
  }
3150
- export declare enum ReservationTypeEnum {
3151
- RENTAL = "rental",
3152
- PROGRAM = "program",
3153
- MAINTENANCE = "maintenance",
3154
- CUSTOM = "custom"
3049
+ export interface IResourceDataForConstraintsCalc {
3050
+ id: number;
3051
+ startDate: string;
3052
+ startTime: string;
3155
3053
  }
3156
- export declare enum SlotDurationTypeEnum {
3157
- DATES = "dates",
3158
- ALL_DAY = "all day",
3159
- DURATION = "duration"
3054
+ export interface IRegistrationConstraintsSetting {
3055
+ numDays?: number;
3056
+ numMinutes?: number;
3160
3057
  }
3161
- export declare enum DurationUnitTypesEnum {
3162
- MINUTES = "minutes",
3163
- HOURS = "hours"
3058
+ export interface IAttendeeDataToNotify {
3059
+ firstName: string;
3060
+ lastName: string;
3061
+ email: string;
3062
+ sessionName: string;
3063
+ parentSessionName?: string;
3064
+ organizationName: string;
3065
+ programName: string;
3164
3066
  }
3165
- export declare enum FrequencyEnum {
3166
- NONE = "none",
3167
- WEEKLY = "weekly",
3168
- DAILY = "daily",
3169
- MONTHLY = "monthly",
3170
- YEARLY = "yearly"
3067
+ export interface IEventInSchedule {
3068
+ eventId: number;
3069
+ eventName: string;
3070
+ eventStartDate: string;
3071
+ eventEndDate: string;
3072
+ eventStartTime: string;
3073
+ eventEndTime: string;
3074
+ programId: number;
3075
+ programName: string;
3076
+ programType: ProgramTypesEnum;
3077
+ sessionId: number;
3078
+ sessionName: string;
3079
+ sports: number;
3080
+ spaces: {
3081
+ spaceId: number;
3082
+ spaceName: string;
3083
+ }[];
3084
+ status?: RegistrationValidationStatusEnum;
3171
3085
  }
3172
- export declare enum MaintenanceTimingEnum {
3173
- BEFORE = 1,
3174
- AFTER = 2,
3175
- AT_THE_BEGINING = 3,
3176
- AT_THE_END = 4
3086
+ export interface ISlotInSchedule {
3087
+ facilityId: number;
3088
+ facilityName: string;
3089
+ spaces: ISpaceWithSlots[];
3177
3090
  }
3178
- export declare enum CreatorTypeEnum {
3179
- SPACE = "space",
3180
- PROGRAM_SEASON = "program_season"
3091
+ export interface ISpaceWithSlots {
3092
+ id: number;
3093
+ name: string;
3094
+ slots: ISlotReservationData[];
3181
3095
  }
3182
- export declare enum UpdatePricesTypeEnum {
3183
- INDIVIDUAL = "indvidual",
3184
- CATEGORY = "category",
3185
- GLOBAL = "global"
3096
+ export interface ISlotReservationData {
3097
+ reservationId: number;
3098
+ reservationName: string;
3099
+ date: string;
3100
+ startTime: string;
3101
+ endTime: string;
3102
+ notes: string;
3103
+ spaceId: number;
3104
+ isRental: boolean;
3105
+ slotType: SlotTypeEnum;
3106
+ slotId: number;
3107
+ eventId: number;
3108
+ isPrivate: boolean;
3186
3109
  }
3187
- export declare enum BondDayOfWeekEnum {
3188
- MONDAY = 2,
3189
- TUESDAY = 3,
3190
- WEDNESDAY = 4,
3191
- THURSDAY = 5,
3192
- FRIDAY = 6,
3193
- SATURDAY = 7,
3194
- SUNDAY = 8
3110
+ export interface IRawEventInSchedule extends IEventInSchedule {
3111
+ parentSessionId: number;
3112
+ parentSessionName: string;
3113
+ eventTimezone: string;
3114
+ maxParticipants: number;
3115
+ maxMaleParticipants: number;
3116
+ maxFemaleParticipants: number;
3117
+ isPunchCard: boolean;
3195
3118
  }
3196
- export declare enum ReservationMigrationStatusEnum {
3197
- NEW = "new",
3198
- NO = "no",
3199
- YES = "yes"
3119
+ export interface IBasicSpaceAndSlotCreator {
3120
+ id: number;
3121
+ name: string;
3122
+ bookingCreatorId: number;
3200
3123
  }
3201
- export declare enum ProductPackageLevelEnum {
3202
- HOUR = "hour",
3203
- SLOT = "slot",
3204
- RESERVATION = "reservation"
3124
+ export interface IRawSlotInSchedule {
3125
+ startDate: string;
3126
+ endDate: string;
3127
+ startTime: string;
3128
+ endTime: string;
3129
+ reservationId: number;
3130
+ eventTitle: string;
3131
+ publicNotes: string;
3132
+ spaceId: number;
3133
+ creatorType: ResourceNameTypeEnum;
3134
+ slotType: SlotTypeEnum;
3135
+ slotId: number;
3136
+ eventId: number;
3137
+ isPrivate: boolean;
3205
3138
  }
3206
- export declare enum CancellationStatusEnum {
3207
- IMMEDIATE = "immediate",
3208
- AUTO_RENEWAL = "auto_renewal"
3139
+ export interface IPurchasedResourcesRaw {
3140
+ purchasedId: number;
3141
+ purchasedProductUserId: number;
3142
+ purchasedResourceId: number;
3143
+ purchasedResourceType: ResourceNameTypeEnum;
3144
+ purchasedStatus: PurchasedResourceStatusEnum;
3145
+ pUserId: number;
3146
+ pUserPaymentStatus: PaymentStatusEnum;
3147
+ pUserProductId: number;
3148
+ pUserProductName: string;
3149
+ pUserProductPrice: number;
3150
+ pUserProductPriceCurrency: string;
3151
+ pUserProductQuantity: number;
3152
+ pUserProductQuantityLeft: number;
3153
+ pUserUserId: number;
3209
3154
  }
3210
- export declare enum SeasonScheduleStatusEnum {
3211
- DRAFT = 0,
3212
- PUBLISHED = 1
3155
+ export interface IUsersPasses {
3156
+ userId: number;
3157
+ userFirstName: string;
3158
+ userLastName: string;
3159
+ organizationId: number;
3160
+ programId: number;
3161
+ programName: string;
3162
+ sessionId: number;
3163
+ sessionName: string;
3164
+ productId: number;
3165
+ productName: string;
3166
+ productUserId: number;
3167
+ purchaseDate: Date;
3168
+ passesLeft: number;
3213
3169
  }
3214
- export declare enum FinancialStepEnum {
3215
- VOID = "void",
3216
- REFUND = "refund",
3217
- NONE = "none",
3218
- REFUND_AND_VOID = "refund-and-void",
3219
- APPEND = "append"
3170
+ export interface ISessionsLandingPage {
3171
+ sessionId: number;
3172
+ name: string;
3173
+ startDate: Date;
3174
+ endDate: Date;
3175
+ registrationStartDate: Date;
3176
+ registrationEndDate: Date;
3177
+ sport: SportsEnum;
3178
+ minAge: string;
3179
+ maxAge: string;
3180
+ maxParticipants?: number;
3181
+ gender: GenderEnum;
3182
+ activityTimes: ActivityTimes[];
3183
+ earlyRegistrationStartDate?: Date;
3184
+ earlyRegistrationEndDate?: Date;
3185
+ lateRegistrationStartDate?: Date;
3186
+ lateRegistrationEndDate?: Date;
3187
+ attendeeCount?: number;
3188
+ segmentsOrEvents: 'segment' | 'event';
3220
3189
  }
3221
- export declare enum StripeAccountTypesEnum {
3222
- STRIPE = "stripe",
3223
- STRIPE_CUSTOM = "stripe:account:custom",
3224
- STRIPE_CUSTOMER = "stripe:customer"
3190
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3191
+ hasRequiredMembership: boolean;
3192
+ hasEntitledPricing: boolean;
3193
+ lowestPrice?: number;
3194
+ products?: ISessionLandingPageProduct[];
3225
3195
  }
3226
- export declare enum LinkedAccountStatus {
3227
- PENDING = 1,
3228
- ACTIVE = 2,
3229
- PRE_PENDING = 3
3196
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3197
+ hasRequiredMembership: boolean;
3198
+ hasEntitledPricing: boolean;
3199
+ products?: ISessionLandingPageProduct[];
3200
+ segments?: Event[] | ProgramSeason[];
3201
+ programName: string;
3202
+ programId: number;
3203
+ levelOfPlay: LevelOfPlayEnum[];
3204
+ registrationConstraints: IResourceRegistrationData[];
3230
3205
  }
3231
- export declare enum AddonParentTypeEnum {
3232
- RESERVATION = "reservation",
3233
- SLOT = "slot"
3206
+ export interface ISlimAddons {
3207
+ addons?: {
3208
+ id: number;
3209
+ timePeriod: AddonTimePeriodEnum;
3210
+ name: string;
3211
+ productType?: ProductTypesEnum;
3212
+ productSubType?: string;
3213
+ }[];
3234
3214
  }
3235
- export declare enum EEmailStatus {
3236
- SENT = "sent",
3237
- OPENED = "opened",
3238
- PAID = "paid",
3239
- CANCELED = "canceled"
3215
+ export interface ISessionLandingPageProduct extends ISlimAddons {
3216
+ id: number;
3217
+ name: string;
3218
+ startDate?: Date;
3219
+ endDate?: Date;
3220
+ downpayment?: number;
3221
+ description?: string;
3222
+ prices: Price[];
3223
+ productSubType?: ProductSubTypesEnum;
3224
+ punchCard: boolean;
3225
+ isAddon: boolean;
3226
+ defaultPriceId?: number;
3240
3227
  }
3241
- export declare class ColumnNumericTransformer {
3242
- to(data: number): number;
3243
- from(data: string): number;
3228
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3229
+ destinationId?: string;
3230
+ stripeCustomerId?: string;
3231
+ fee?: number;
3232
+ }
3233
+ export interface IReservationCreatorData {
3234
+ type: ResourceNameTypeEnum;
3235
+ id: number;
3236
+ organizationId: number;
3237
+ startDate: string;
3238
+ endDate: string;
3239
+ sportId: number;
3244
3240
  }
3245
- export declare function convertToNumber(data: string): number;
3246
3241
  export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3247
3242
  name?: string;
3248
3243
  genderStr?: string;
@@ -3257,22 +3252,6 @@ export declare class AddFamilyDto {
3257
3252
  parents: AddImportedCustomerDto[];
3258
3253
  children: AddImportedCustomerDto[];
3259
3254
  }
3260
- export declare class ProductIdsDto {
3261
- productIds?: number[];
3262
- }
3263
- export declare class ProductImportDto {
3264
- product: Product;
3265
- prices: Price[];
3266
- resourceIds: number[];
3267
- oldId: number;
3268
- }
3269
- export declare class PunchPassDto {
3270
- CustomerID: string;
3271
- QuantityLeft: number;
3272
- BondProgramID: number;
3273
- BondSessionID: number;
3274
- ProductID: number;
3275
- }
3276
3255
  export declare enum ImportPaymentTypeEnum {
3277
3256
  CREDIT_CARD = "card",
3278
3257
  ACH = "ach",
@@ -3308,6 +3287,13 @@ export declare class ImportedPaymentDto {
3308
3287
  date: string;
3309
3288
  time: string;
3310
3289
  }
3290
+ export declare class PunchPassDto {
3291
+ CustomerID: string;
3292
+ QuantityLeft: number;
3293
+ BondProgramID: number;
3294
+ BondSessionID: number;
3295
+ ProductID: number;
3296
+ }
3311
3297
  export declare class ImportedSlotProductDto {
3312
3298
  slotID?: string;
3313
3299
  name?: string;
@@ -3363,6 +3349,15 @@ export declare class GameSlots extends BondBaseEntity {
3363
3349
  entityType: string;
3364
3350
  entityId: number;
3365
3351
  }
3352
+ export declare class ProductIdsDto {
3353
+ productIds?: number[];
3354
+ }
3355
+ export declare class ProductImportDto {
3356
+ product: Product;
3357
+ prices: Price[];
3358
+ resourceIds: number[];
3359
+ oldId: number;
3360
+ }
3366
3361
  export declare class MatchParticipants extends BondBaseEntity {
3367
3362
  matchId: number | null;
3368
3363
  ordinal: number | null;
@@ -3431,12 +3426,6 @@ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3431
3426
  code: string;
3432
3427
  config?: any;
3433
3428
  }
3434
- export declare class ByOrganizationIdDto {
3435
- organizationId: number;
3436
- }
3437
- export declare class OptionalFindByOrganizationIdDto {
3438
- organizationId?: number;
3439
- }
3440
3429
  export declare class Organization extends BondBaseEntity {
3441
3430
  name: string | null;
3442
3431
  email: string | null;
@@ -3492,6 +3481,12 @@ export declare class OrganizationBranding extends OrganizationConnectionBaseEnti
3492
3481
  version: number;
3493
3482
  organization: Organization;
3494
3483
  }
3484
+ export declare class ByOrganizationIdDto {
3485
+ organizationId: number;
3486
+ }
3487
+ export declare class OptionalFindByOrganizationIdDto {
3488
+ organizationId?: number;
3489
+ }
3495
3490
  export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3496
3491
  mainAdminUserId?: number;
3497
3492
  }
@@ -3889,13 +3884,13 @@ export declare class AddSlotToSegmenResultDto {
3889
3884
  export declare class UpdateSlotsDto {
3890
3885
  slots: SlotDto[];
3891
3886
  }
3892
- export declare class EditSlotsRefundMetaDto {
3887
+ export declare class EditItemsRefundMetaDto {
3893
3888
  lineItems: RefundLineItemAmountDto[];
3894
3889
  paymentMethods: PaymentMethodDto[];
3895
3890
  reasonId: number;
3896
3891
  }
3897
3892
  export declare class EditSlotsDto extends UpdateSlotsDto {
3898
- refundMeta?: EditSlotsRefundMetaDto;
3893
+ refundMeta?: EditItemsRefundMetaDto;
3899
3894
  }
3900
3895
  export declare class EditReservationDetailsDto {
3901
3896
  name: string;
@@ -3908,6 +3903,17 @@ export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
3908
3903
  export declare class AddAddonsDto {
3909
3904
  addons: ProductPricesDto[];
3910
3905
  }
3906
+ export declare class EditAddonsDto {
3907
+ addons: EditAddonDto[];
3908
+ }
3909
+ export declare class EditReservationAddonsDto extends EditAddonsDto {
3910
+ refundMeta?: EditItemsRefundMetaDto;
3911
+ }
3912
+ export declare class EditAddonDto {
3913
+ id: number;
3914
+ unitPrice?: number;
3915
+ quantity?: number;
3916
+ }
3911
3917
  export declare class SegmentDto {
3912
3918
  id?: number;
3913
3919
  title: string;
@@ -3975,223 +3981,66 @@ export declare class SlotDto extends SlotDateTimeAndSpace {
3975
3981
  unitPrice: number;
3976
3982
  totalPrice: number;
3977
3983
  displayTotalWithTax?: number;
3978
- displayUnitTax?: number;
3979
- }[];
3980
- addonsProductUserIds?: number[];
3981
- segmentId?: number;
3982
- seriesId?: number;
3983
- eventId?: number;
3984
- sportIds: number[];
3985
- parentSlotId?: number;
3986
- maintenanceDurationdurationType?: DurationUnitTypesEnum;
3987
- maintenanceTiming?: MaintenanceTimingEnum;
3988
- durationValue?: number;
3989
- orderId?: number;
3990
- paymentStatus: ReservationPaymentStatusEnum;
3991
- approvalStatus: ReservationStatusEnum;
3992
- displayName?: string;
3993
- internalName?: string;
3994
- totalPrice?: number;
3995
- relevantProducts?: Product[];
3996
- maintenance?: MaintenanceDto[];
3997
- maintenanceSlots?: SlotDto[];
3998
- isPrivate: boolean;
3999
- slotDurationType: SlotDurationTypeEnum;
4000
- addonsIds?: number[];
4001
- }
4002
- declare class AnswerDto {
4003
- questionId: number;
4004
- value: any;
4005
- }
4006
- export declare class BookedSessionDto {
4007
- startDate: string;
4008
- endDate: string;
4009
- timezone: string;
4010
- spaceId: number;
4011
- }
4012
- declare class AddonDto {
4013
- resourcePackageId: number;
4014
- resourcePackageAmount: number;
4015
- resourcePackagePrice: number;
4016
- }
4017
- export declare class ReservationV1Dto {
4018
- organizationId: number;
4019
- name: string;
4020
- dayOfWeek: number;
4021
- startTime: string;
4022
- description: string;
4023
- sport: number;
4024
- price: number;
4025
- resourcePackageId: number;
4026
- resourcePackageAmount: number;
4027
- bookedSessions: BookedSessionDto[];
4028
- addons: AddonDto[];
4029
- }
4030
- export declare class BookingV1Dto {
4031
- organizationId: number;
4032
- reservations: ReservationV1Dto[];
4033
- answers: AnswerDto[];
4034
- paymentData: PurchasePaymentDto;
4035
- skipPayment: boolean;
4036
- cashPayment: boolean;
4037
- requestOnly: boolean;
4038
- }
4039
- export declare class Addon extends OrganizationConnectionBaseEntity {
4040
- parentId: number;
4041
- parentType: AddonParentTypeEnum;
4042
- productId: number;
4043
- product?: Product;
4044
- quantity: number;
4045
- unitPrice: number;
4046
- totalPrice: number;
4047
- approvalStatus: ReservationStatusEnum;
4048
- paymentStatus: ReservationPaymentStatusEnum;
4049
- level?: ProductPackageLevelEnum;
4050
- resourceId?: number;
4051
- resource?: Resource;
4052
- orderId?: number;
4053
- order?: Order;
4054
- productUserId?: number;
4055
- productUser?: ProductsUsers;
4056
- }
4057
- export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4058
- deletedAt?: Date;
4059
- reservationId: number;
4060
- invoiceId: number;
4061
- slotId: number;
4062
- }
4063
- export declare class Reservation extends OrganizationConnectionBaseEntity {
4064
- name?: string;
4065
- description?: string;
4066
- approvalStatus?: ReservationStatusEnum;
4067
- privacySetting?: string;
4068
- reservationType?: ReservationTypeEnum;
4069
- orderId?: string;
4070
- customerId?: number;
4071
- customer?: Customer;
4072
- price?: number;
4073
- paymentStatus?: ReservationPaymentStatusEnum;
4074
- startTime?: string;
4075
- startDate?: Date;
4076
- endDate?: Date;
4077
- creatorId?: number;
4078
- creatorType?: ResourceNameTypeEnum;
4079
- userCreatorId?: number;
4080
- sportType?: number;
4081
- deletedAt?: Date;
4082
- publicNotes?: string;
4083
- privateNotes?: string;
4084
- forms?: number[] | null;
4085
- answerTitleIds?: number[] | null;
4086
- segments?: Segment[];
4087
- migrationStatus?: string;
4088
- addons: Addon[];
4089
- overrideProductsPrice: {
4090
- productId: number;
4091
- price: number;
4092
- }[];
4093
- targetGlobalPrice?: number;
4094
- slots: Slot[];
4095
- }
4096
- export declare class Segment extends OrganizationConnectionBaseEntity {
4097
- deletedAt?: Date;
4098
- reservationId: number;
4099
- title: string;
4100
- isPrivate: boolean;
4101
- resourceIds?: number[];
4102
- sportId: number;
4103
- reservation?: Reservation;
4104
- series?: Series[];
4105
- addonIds?: number[] | null;
4106
- publicNotesForSlots?: string;
4107
- privateNotesForSlots?: string;
4108
- slots?: Slot[];
4109
- }
4110
- export declare class Series extends OrganizationConnectionBaseEntity {
4111
- deletedAt?: Date;
4112
- segmentId: number;
4113
- segment?: Segment;
4114
- slots?: Slot[];
4115
- slotDurationType: string;
4116
- durationEndsAfter: number;
4117
- durationUnit: string;
4118
- startDate?: Date;
4119
- endDate?: Date;
4120
- startTime: string;
4121
- endTime: string;
4122
- frequency: string;
4123
- repeatEvery: number;
4124
- repeatOn?: number[];
4125
- repeatEndDate?: Date;
4126
- numberOccurrences?: number;
4127
- resources?: Resource[];
4128
- }
4129
- export declare class Slot extends OrganizationConnectionBaseEntity {
4130
- constructor();
4131
- defineIsReverted(): void;
4132
- isReverted: boolean;
4133
- reservationId: number;
4134
- reservation: Reservation;
4135
- title?: string;
4136
- creatorId?: number;
4137
- creatorType?: string;
4138
- userCreatorId?: number;
4139
- startDate: Date;
4140
- endDate: Date;
4141
- startTime: string;
4142
- endTime: string;
4143
- timezone?: string;
4144
- spaceId?: number;
4145
- resource?: Resource;
4146
- deletedAt?: Date;
4147
- publicNotes?: string;
4148
- privateNotes?: string;
4149
- slotType: SlotTypeEnum;
4150
- productsUserId?: number;
4151
- productUser?: ProductsUsers;
4152
- product?: Product;
4153
- addonsProductUserIds?: number[] | null;
4154
- addonsProductUsers?: ProductsUsers[];
4155
- addonProducts?: Product[];
4156
- addonsMetadata: {
4157
- productId: number;
4158
- quantity: number;
4159
- unitPrice: number;
4160
- totalPrice: number;
4161
- }[];
4162
- segmentId: number;
4163
- segment: Segment;
4164
- eventId: number;
4165
- event: Event;
3984
+ displayUnitTax?: number;
3985
+ }[];
3986
+ addonsProductUserIds?: number[];
3987
+ segmentId?: number;
3988
+ seriesId?: number;
3989
+ eventId?: number;
4166
3990
  sportIds: number[];
4167
3991
  parentSlotId?: number;
4168
- maintenanceDurationdurationType: string;
4169
- maintenanceTiming: number;
4170
- durationValue: number;
4171
- seriesId?: number;
4172
- series?: Series;
3992
+ maintenanceDurationdurationType?: DurationUnitTypesEnum;
3993
+ maintenanceTiming?: MaintenanceTimingEnum;
3994
+ durationValue?: number;
4173
3995
  orderId?: number;
4174
- order?: Order;
4175
3996
  paymentStatus: ReservationPaymentStatusEnum;
4176
- approvalStatus?: ReservationStatusEnum;
3997
+ approvalStatus: ReservationStatusEnum;
4177
3998
  displayName?: string;
4178
3999
  internalName?: string;
4179
- activityTypes?: number[] | null;
4180
- hourlyRate: number;
4181
- totalPrice: number;
4182
- isConsumerVisible: boolean;
4183
- isMonitorVisible: boolean;
4000
+ totalPrice?: number;
4001
+ relevantProducts?: Product[];
4002
+ maintenance?: MaintenanceDto[];
4003
+ maintenanceSlots?: SlotDto[];
4184
4004
  isPrivate: boolean;
4185
- occurrence?: number;
4186
- maintenance?: Slot[];
4187
- productMetadata: {
4188
- productId: number;
4189
- price: number;
4190
- };
4191
- slotDurationType: string;
4192
- changeLineItemIds?: number[];
4193
- changeLineItems?: LineItems[];
4194
- updatedLineItem?: LineItems;
4005
+ slotDurationType: SlotDurationTypeEnum;
4006
+ addonsIds?: number[];
4007
+ }
4008
+ declare class AnswerDto {
4009
+ questionId: number;
4010
+ value: any;
4011
+ }
4012
+ export declare class BookedSessionDto {
4013
+ startDate: string;
4014
+ endDate: string;
4015
+ timezone: string;
4016
+ spaceId: number;
4017
+ }
4018
+ declare class AddonDto {
4019
+ resourcePackageId: number;
4020
+ resourcePackageAmount: number;
4021
+ resourcePackagePrice: number;
4022
+ }
4023
+ export declare class ReservationV1Dto {
4024
+ organizationId: number;
4025
+ name: string;
4026
+ dayOfWeek: number;
4027
+ startTime: string;
4028
+ description: string;
4029
+ sport: number;
4030
+ price: number;
4031
+ resourcePackageId: number;
4032
+ resourcePackageAmount: number;
4033
+ bookedSessions: BookedSessionDto[];
4034
+ addons: AddonDto[];
4035
+ }
4036
+ export declare class BookingV1Dto {
4037
+ organizationId: number;
4038
+ reservations: ReservationV1Dto[];
4039
+ answers: AnswerDto[];
4040
+ paymentData: PurchasePaymentDto;
4041
+ skipPayment: boolean;
4042
+ cashPayment: boolean;
4043
+ requestOnly: boolean;
4195
4044
  }
4196
4045
  export declare type TSlotAndType = {
4197
4046
  type: 'slots' | 'slot_addons';
@@ -4378,26 +4227,39 @@ export interface UpdateSlotsAddonsResult {
4378
4227
  order: OrderDto;
4379
4228
  debug?: any;
4380
4229
  }
4381
- export interface ValidateEditSlotsResult {
4230
+ interface ValidateEditItemsResult {
4382
4231
  nextFinancialStep: FinancialStepEnum;
4383
- slots: SlotDto[];
4384
4232
  paymentMethods?: IPaymentMethodToFundLeft[];
4385
- refundMetadata?: EditSlotsRefundMetadata;
4386
4233
  originalInvoicePrice?: number;
4387
4234
  updatedInvoicePrice?: number;
4388
4235
  priceChange?: number;
4236
+ }
4237
+ export interface ValidateEditSlotsResult extends ValidateEditItemsResult {
4238
+ slots: SlotDto[];
4239
+ refundMetadata?: EditSlotsRefundMetadata;
4389
4240
  editData?: EditSlotsData;
4390
4241
  }
4242
+ export interface ValidateEditReservationAddonsResult extends ValidateEditItemsResult {
4243
+ refundMetadata?: EditAddonsRefundMetadata;
4244
+ editData?: EditAddonsData;
4245
+ }
4391
4246
  export interface EditSlotsRefundMetadata {
4392
4247
  lineItems: SlotsLineItemData[];
4393
4248
  refundAmount: number;
4394
4249
  }
4250
+ export interface EditAddonsRefundMetadata {
4251
+ lineItems: AddonsLineItemData[];
4252
+ refundAmount: number;
4253
+ }
4395
4254
  export interface EditSlotsData {
4396
4255
  order?: Order;
4397
4256
  editSlotsLineItems?: SlotsLineItemData[];
4398
4257
  newLineItems?: LineItemDto[];
4399
4258
  }
4400
- export interface EditSlotsResult extends UpdateReservationResult {
4259
+ export interface EditAddonsData {
4260
+ order?: Order;
4261
+ }
4262
+ export interface EditReservationItemsResult extends UpdateReservationResult {
4401
4263
  refundResult?: RefundResult;
4402
4264
  }
4403
4265
  export declare class ChangeRolePermissionsDto {
@@ -4423,6 +4285,150 @@ export declare class UserRole extends OrganizationConnectionBaseEntity {
4423
4285
  role: Role;
4424
4286
  user: User;
4425
4287
  }
4288
+ export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4289
+ deletedAt?: Date;
4290
+ reservationId: number;
4291
+ invoiceId: number;
4292
+ slotId: number;
4293
+ }
4294
+ export declare class Reservation extends OrganizationConnectionBaseEntity {
4295
+ name?: string;
4296
+ description?: string;
4297
+ approvalStatus?: ReservationStatusEnum;
4298
+ privacySetting?: string;
4299
+ reservationType?: ReservationTypeEnum;
4300
+ orderId?: string;
4301
+ customerId?: number;
4302
+ customer?: Customer;
4303
+ price?: number;
4304
+ paymentStatus?: ReservationPaymentStatusEnum;
4305
+ startTime?: string;
4306
+ startDate?: Date;
4307
+ endDate?: Date;
4308
+ creatorId?: number;
4309
+ creatorType?: ResourceNameTypeEnum;
4310
+ userCreatorId?: number;
4311
+ sportType?: number;
4312
+ deletedAt?: Date;
4313
+ publicNotes?: string;
4314
+ privateNotes?: string;
4315
+ forms?: number[] | null;
4316
+ answerTitleIds?: number[] | null;
4317
+ segments?: Segment[];
4318
+ migrationStatus?: string;
4319
+ addons: Addon[];
4320
+ overrideProductsPrice: {
4321
+ productId: number;
4322
+ price: number;
4323
+ }[];
4324
+ targetGlobalPrice?: number;
4325
+ slots: Slot[];
4326
+ }
4327
+ export declare class Segment extends OrganizationConnectionBaseEntity {
4328
+ deletedAt?: Date;
4329
+ reservationId: number;
4330
+ title: string;
4331
+ isPrivate: boolean;
4332
+ resourceIds?: number[];
4333
+ sportId: number;
4334
+ reservation?: Reservation;
4335
+ series?: Series[];
4336
+ addonIds?: number[] | null;
4337
+ publicNotesForSlots?: string;
4338
+ privateNotesForSlots?: string;
4339
+ slots?: Slot[];
4340
+ }
4341
+ export declare class Series extends OrganizationConnectionBaseEntity {
4342
+ deletedAt?: Date;
4343
+ segmentId: number;
4344
+ segment?: Segment;
4345
+ slots?: Slot[];
4346
+ slotDurationType: string;
4347
+ durationEndsAfter: number;
4348
+ durationUnit: string;
4349
+ startDate?: Date;
4350
+ endDate?: Date;
4351
+ startTime: string;
4352
+ endTime: string;
4353
+ frequency: string;
4354
+ repeatEvery: number;
4355
+ repeatOn?: number[];
4356
+ repeatEndDate?: Date;
4357
+ numberOccurrences?: number;
4358
+ resources?: Resource[];
4359
+ }
4360
+ export declare class Slot extends OrganizationConnectionBaseEntity {
4361
+ constructor();
4362
+ defineIsReverted(): void;
4363
+ isReverted: boolean;
4364
+ reservationId: number;
4365
+ reservation: Reservation;
4366
+ title?: string;
4367
+ creatorId?: number;
4368
+ creatorType?: string;
4369
+ userCreatorId?: number;
4370
+ startDate: Date;
4371
+ endDate: Date;
4372
+ startTime: string;
4373
+ endTime: string;
4374
+ timezone?: string;
4375
+ spaceId?: number;
4376
+ resource?: Resource;
4377
+ deletedAt?: Date;
4378
+ publicNotes?: string;
4379
+ privateNotes?: string;
4380
+ slotType: SlotTypeEnum;
4381
+ productsUserId?: number;
4382
+ productUser?: ProductsUsers;
4383
+ product?: Product;
4384
+ addonsProductUserIds?: number[] | null;
4385
+ addonsProductUsers?: ProductsUsers[];
4386
+ addonProducts?: Product[];
4387
+ addonsMetadata: {
4388
+ productId: number;
4389
+ quantity: number;
4390
+ unitPrice: number;
4391
+ totalPrice: number;
4392
+ }[];
4393
+ segmentId: number;
4394
+ segment: Segment;
4395
+ eventId: number;
4396
+ event: Event;
4397
+ sportIds: number[];
4398
+ parentSlotId?: number;
4399
+ maintenanceDurationdurationType: string;
4400
+ maintenanceTiming: number;
4401
+ durationValue: number;
4402
+ seriesId?: number;
4403
+ series?: Series;
4404
+ orderId?: number;
4405
+ order?: Order;
4406
+ paymentStatus: ReservationPaymentStatusEnum;
4407
+ approvalStatus?: ReservationStatusEnum;
4408
+ displayName?: string;
4409
+ internalName?: string;
4410
+ activityTypes?: number[] | null;
4411
+ hourlyRate: number;
4412
+ totalPrice: number;
4413
+ isConsumerVisible: boolean;
4414
+ isMonitorVisible: boolean;
4415
+ isPrivate: boolean;
4416
+ occurrence?: number;
4417
+ maintenance?: Slot[];
4418
+ productMetadata: {
4419
+ productId: number;
4420
+ price: number;
4421
+ };
4422
+ slotDurationType: string;
4423
+ changeLineItemIds?: number[];
4424
+ changeLineItems?: LineItems[];
4425
+ updatedLineItem?: LineItems;
4426
+ }
4427
+ export declare class ColumnNumericTransformer {
4428
+ to(data: number): number;
4429
+ from(data: string): number;
4430
+ }
4431
+ export declare function convertToNumber(data: string): number;
4426
4432
  export declare class CloseShiftDto {
4427
4433
  closingCashAmount: number;
4428
4434
  }
@@ -4449,10 +4455,6 @@ export declare class FindShiftsFormattedFilters {
4449
4455
  startDate?: Date;
4450
4456
  endDate?: Date;
4451
4457
  }
4452
- export declare class OpenShiftDto {
4453
- openingCashAmount: number;
4454
- stationId: number;
4455
- }
4456
4458
  export declare class ShiftManagementClosingAmount {
4457
4459
  shiftId: number;
4458
4460
  managementClosingCashAmount: number;
@@ -4460,6 +4462,10 @@ export declare class ShiftManagementClosingAmount {
4460
4462
  export declare class ManagementClosingOfShiftsDto {
4461
4463
  managementClosingData: ShiftManagementClosingAmount[];
4462
4464
  }
4465
+ export declare class OpenShiftDto {
4466
+ openingCashAmount: number;
4467
+ stationId: number;
4468
+ }
4463
4469
  export declare class Shift extends OrganizationConnectionBaseEntity {
4464
4470
  stationId: number;
4465
4471
  station?: Station;
@@ -4489,3 +4495,21 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4489
4495
  closingManager?: User;
4490
4496
  reconcilingUser?: User;
4491
4497
  }
4498
+ export declare class Addon extends OrganizationConnectionBaseEntity {
4499
+ parentId: number;
4500
+ parentType: AddonParentTypeEnum;
4501
+ productId: number;
4502
+ product?: Product;
4503
+ quantity: number;
4504
+ unitPrice: number;
4505
+ totalPrice: number;
4506
+ approvalStatus: ReservationStatusEnum;
4507
+ paymentStatus: ReservationPaymentStatusEnum;
4508
+ level?: ProductPackageLevelEnum;
4509
+ resourceId?: number;
4510
+ resource?: Resource;
4511
+ orderId?: number;
4512
+ order?: Order;
4513
+ productUserId?: number;
4514
+ productUser?: ProductsUsers;
4515
+ }