@bondsports/types 0.0.122 → 0.0.124

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
@@ -16,6 +16,17 @@ export declare class FindBookingTypeSettingDto {
16
16
  bookingDate: string;
17
17
  bookingTime: string;
18
18
  }
19
+ export declare class QuestionAnswersDto {
20
+ questionId: number;
21
+ value: any;
22
+ }
23
+ export declare class UserAnswersDto {
24
+ userId: number;
25
+ answers: QuestionAnswersDto[];
26
+ }
27
+ export declare class GetByQuestionnaireIdsDto {
28
+ questionnaireIds: string;
29
+ }
19
30
  export declare enum EConfigurationKeys {
20
31
  MAX_ALLOWED_PM_FAILURE = "max_allowed_pm_failure"
21
32
  }
@@ -280,17 +291,6 @@ export declare class GetGlCodeDto {
280
291
  createdAt: Date;
281
292
  updatedAt: Date;
282
293
  }
283
- export declare class QuestionAnswersDto {
284
- questionId: number;
285
- value: any;
286
- }
287
- export declare class UserAnswersDto {
288
- userId: number;
289
- answers: QuestionAnswersDto[];
290
- }
291
- export declare class GetByQuestionnaireIdsDto {
292
- questionnaireIds: string;
293
- }
294
294
  export declare class FindByProgramSeasonIdDto {
295
295
  seasonId: number;
296
296
  }
@@ -1017,16 +1017,6 @@ export declare class ResourceDto {
1017
1017
  type: ResourceNameTypeEnum;
1018
1018
  id: number;
1019
1019
  }
1020
- export declare class StripeCustomerIdDto {
1021
- userId: number;
1022
- }
1023
- export declare class StripeCustomerPaymentMathodDto extends StripeCustomerIdDto {
1024
- paymentMethodId: string;
1025
- }
1026
- export declare class AddACHTokenToCustomerDto {
1027
- publicToken: string;
1028
- accountId: string;
1029
- }
1030
1020
  export declare class SpaceByIdDto {
1031
1021
  spaceId: number;
1032
1022
  }
@@ -1083,6 +1073,16 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
1083
1073
  types?: string;
1084
1074
  resourcesIds?: string;
1085
1075
  }
1076
+ export declare class StripeCustomerIdDto {
1077
+ userId: number;
1078
+ }
1079
+ export declare class StripeCustomerPaymentMathodDto extends StripeCustomerIdDto {
1080
+ paymentMethodId: string;
1081
+ }
1082
+ export declare class AddACHTokenToCustomerDto {
1083
+ publicToken: string;
1084
+ accountId: string;
1085
+ }
1086
1086
  export declare class FindByUserIdDto {
1087
1087
  userId: number;
1088
1088
  }
@@ -1270,14 +1270,6 @@ export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1270
1270
  pinToTop?: boolean;
1271
1271
  customer: Customer;
1272
1272
  }
1273
- export declare class Division extends BondBaseEntity {
1274
- name: string;
1275
- ordinal?: number;
1276
- programSeasonId: number;
1277
- color: string;
1278
- isDefault: boolean;
1279
- groups: Group[];
1280
- }
1281
1273
  export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1282
1274
  customerId: number;
1283
1275
  name: string | null;
@@ -1306,6 +1298,14 @@ export declare class EventAttendee extends BondBaseEntity {
1306
1298
  event: Event;
1307
1299
  purchasedResource: PurchasedResource;
1308
1300
  }
1301
+ export declare class Division extends BondBaseEntity {
1302
+ name: string;
1303
+ ordinal?: number;
1304
+ programSeasonId: number;
1305
+ color: string;
1306
+ isDefault: boolean;
1307
+ groups: Group[];
1308
+ }
1309
1309
  export declare class Event extends OrganizationConnectionBaseEntity {
1310
1310
  constructor();
1311
1311
  defineCalculatedDateTimeProps(): void;
@@ -1496,32 +1496,6 @@ export declare class InvoiceToPayment extends BondBaseEntity {
1496
1496
  paidAmount?: number;
1497
1497
  currency: CurrencyEnum;
1498
1498
  }
1499
- export declare class League extends OrganizationConnectionBaseEntity {
1500
- name: string | null;
1501
- description: string | null;
1502
- allowBookingRequest: boolean | null;
1503
- addressName: string | null;
1504
- shortDescription: string | null;
1505
- waiverDoc: string | null;
1506
- bookingStateStatus: number | null;
1507
- timezone: string | null;
1508
- shortUrl: string | null;
1509
- leagueType: string | null;
1510
- addressId: number | null;
1511
- sportConfigData: any | null;
1512
- creatorId: number | null;
1513
- creatorType: string | null;
1514
- userCreatorId: number | null;
1515
- ownerId: number | null;
1516
- sports: number[] | null;
1517
- mainMediaId: number | null;
1518
- publishedDate: Date | null;
1519
- isPublished: boolean | null;
1520
- isVerified: boolean | null;
1521
- questionnaireId: number | null;
1522
- logo?: Media;
1523
- seasons: LeagueSeason[];
1524
- }
1525
1499
  export declare class LeagueSeason extends BondBaseEntity {
1526
1500
  leagueId: number | null;
1527
1501
  name: string | null;
@@ -1566,32 +1540,6 @@ export declare class LeagueSeasonRelations {
1566
1540
  league?: boolean;
1567
1541
  facilities?: boolean;
1568
1542
  }
1569
- export declare class LineItemHistory extends BondBaseEntity {
1570
- invoiceId: number;
1571
- paymentId: number;
1572
- lineItemId: number;
1573
- paidAmount: number;
1574
- unitPaidAmount: number;
1575
- currency: CurrencyEnum;
1576
- payment: Payment;
1577
- lineItem: LineItems;
1578
- }
1579
- export declare class LinkedAccounts extends BondBaseEntity {
1580
- id: number;
1581
- provider: string;
1582
- providerId: string | null;
1583
- parentId: number | null;
1584
- parentType: string | null;
1585
- status: number | null;
1586
- token: string | null;
1587
- refreshToken: string | null;
1588
- tokenCreatedAt: Date | null;
1589
- tokenValidUpTo: Date | null;
1590
- createdAt: Date;
1591
- updatedAt: Date;
1592
- user: User;
1593
- userId: number | null;
1594
- }
1595
1543
  export declare class LineItems extends BondBaseEntity {
1596
1544
  constructor();
1597
1545
  defineIsReverted(): void;
@@ -1647,24 +1595,57 @@ export declare class LineItems extends BondBaseEntity {
1647
1595
  displayUnitPrice?: number;
1648
1596
  displayQuantity?: number;
1649
1597
  }
1650
- export declare class Media extends BondBaseEntity {
1651
- url: string;
1598
+ export declare class LineItemHistory extends BondBaseEntity {
1599
+ invoiceId: number;
1600
+ paymentId: number;
1601
+ lineItemId: number;
1602
+ paidAmount: number;
1603
+ unitPaidAmount: number;
1604
+ currency: CurrencyEnum;
1605
+ payment: Payment;
1606
+ lineItem: LineItems;
1607
+ }
1608
+ export declare class League extends OrganizationConnectionBaseEntity {
1652
1609
  name: string | null;
1653
- title: string | null;
1654
- mediaKey: string | null;
1655
1610
  description: string | null;
1656
- provider: string | null;
1657
- mediaType: number;
1658
- fileType: string | null;
1659
- isDefault: boolean | null;
1611
+ allowBookingRequest: boolean | null;
1612
+ addressName: string | null;
1613
+ shortDescription: string | null;
1614
+ waiverDoc: string | null;
1615
+ bookingStateStatus: number | null;
1616
+ timezone: string | null;
1617
+ shortUrl: string | null;
1618
+ leagueType: string | null;
1619
+ addressId: number | null;
1620
+ sportConfigData: any | null;
1660
1621
  creatorId: number | null;
1661
1622
  creatorType: string | null;
1662
1623
  userCreatorId: number | null;
1663
1624
  ownerId: number | null;
1664
- createdBy: number | null;
1665
- users: User[];
1666
- programs: Program[];
1667
- memberships: Membership[];
1625
+ sports: number[] | null;
1626
+ mainMediaId: number | null;
1627
+ publishedDate: Date | null;
1628
+ isPublished: boolean | null;
1629
+ isVerified: boolean | null;
1630
+ questionnaireId: number | null;
1631
+ logo?: Media;
1632
+ seasons: LeagueSeason[];
1633
+ }
1634
+ export declare class LinkedAccounts extends BondBaseEntity {
1635
+ id: number;
1636
+ provider: string;
1637
+ providerId: string | null;
1638
+ parentId: number | null;
1639
+ parentType: string | null;
1640
+ status: number | null;
1641
+ token: string | null;
1642
+ refreshToken: string | null;
1643
+ tokenCreatedAt: Date | null;
1644
+ tokenValidUpTo: Date | null;
1645
+ createdAt: Date;
1646
+ updatedAt: Date;
1647
+ user: User;
1648
+ userId: number | null;
1668
1649
  }
1669
1650
  export declare class Membership extends OrganizationConnectionBaseEntity {
1670
1651
  name: string;
@@ -2046,6 +2027,25 @@ export declare class ProgramSeason extends BondBaseEntity {
2046
2027
  facility: Facility;
2047
2028
  purchasedResources: PurchasedResource[];
2048
2029
  }
2030
+ export declare class Media extends BondBaseEntity {
2031
+ url: string;
2032
+ name: string | null;
2033
+ title: string | null;
2034
+ mediaKey: string | null;
2035
+ description: string | null;
2036
+ provider: string | null;
2037
+ mediaType: number;
2038
+ fileType: string | null;
2039
+ isDefault: boolean | null;
2040
+ creatorId: number | null;
2041
+ creatorType: string | null;
2042
+ userCreatorId: number | null;
2043
+ ownerId: number | null;
2044
+ createdBy: number | null;
2045
+ users: User[];
2046
+ programs: Program[];
2047
+ memberships: Membership[];
2048
+ }
2049
2049
  export declare class PurchasedResource extends OrganizationConnectionBaseEntity {
2050
2050
  productUserId: number;
2051
2051
  resourceId: number;
@@ -2068,10 +2068,6 @@ export declare class PurchasedResource extends OrganizationConnectionBaseEntity
2068
2068
  product?: Product;
2069
2069
  event?: Event;
2070
2070
  }
2071
- export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2072
- title: string | null;
2073
- answerTitle: AnswerTitle;
2074
- }
2075
2071
  export declare class Questions extends BondBaseEntity {
2076
2072
  questionType: string | null;
2077
2073
  ordinal: number | null;
@@ -2253,15 +2249,6 @@ export declare class Subcategory extends OrganizationConnectionBaseEntity {
2253
2249
  stationToSubcategories: StationToSubcategory[];
2254
2250
  stations: Station[];
2255
2251
  }
2256
- export declare class TeamInvite extends BondBaseEntity {
2257
- email: string;
2258
- teamId: number;
2259
- invitedUserId?: number;
2260
- userCreatorId: number;
2261
- token: string;
2262
- tokenExpirationDate: Date;
2263
- isUsed: boolean;
2264
- }
2265
2252
  export declare class Team extends BondBaseEntity {
2266
2253
  name: string | null;
2267
2254
  description: string | null;
@@ -2296,6 +2283,15 @@ export declare class Team extends BondBaseEntity {
2296
2283
  gender: number | null;
2297
2284
  questionnaireId: number | null;
2298
2285
  }
2286
+ export declare class TeamInvite extends BondBaseEntity {
2287
+ email: string;
2288
+ teamId: number;
2289
+ invitedUserId?: number;
2290
+ userCreatorId: number;
2291
+ token: string;
2292
+ tokenExpirationDate: Date;
2293
+ isUsed: boolean;
2294
+ }
2299
2295
  export declare class TeamMember extends BondBaseEntity {
2300
2296
  teamId: number | null;
2301
2297
  userId: number | null;
@@ -2358,6 +2354,10 @@ export declare class UserInFamilyAccount extends BondBaseEntity {
2358
2354
  familyAccount: FamilyAccount;
2359
2355
  deletedAt?: Date;
2360
2356
  }
2357
+ export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2358
+ title: string | null;
2359
+ answerTitle: AnswerTitle;
2360
+ }
2361
2361
  export declare class UserPaymentMethod extends BondBaseEntity {
2362
2362
  userId: number;
2363
2363
  failCount: number;
@@ -2366,15 +2366,16 @@ export declare class UserPaymentMethod extends BondBaseEntity {
2366
2366
  paymentMethodId: string;
2367
2367
  nextAllowedChargeDate?: Date;
2368
2368
  }
2369
- export declare class UsersInGroup extends BondBaseEntity {
2370
- groupId: number;
2371
- userId: number;
2372
- deletedAt?: Date;
2373
- }
2374
2369
  export declare class VariantTitle extends OrganizationConnectionBaseEntity {
2375
2370
  name: string;
2376
2371
  variants: Variant[];
2377
2372
  }
2373
+ export declare class Variant extends OrganizationConnectionBaseEntity {
2374
+ name: string;
2375
+ variantTitleId: number;
2376
+ variantTitle: VariantTitle;
2377
+ deletedAt?: Date;
2378
+ }
2378
2379
  export declare class WebflowOrganizationConfiguration extends OrganizationConnectionBaseEntity {
2379
2380
  projectToken: string;
2380
2381
  programTypesCollectionId?: string;
@@ -2383,33 +2384,392 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2383
2384
  membershipCollectionId?: string;
2384
2385
  programsCollectionId?: string;
2385
2386
  }
2386
- export declare class Variant extends OrganizationConnectionBaseEntity {
2387
- name: string;
2388
- variantTitleId: number;
2389
- variantTitle: VariantTitle;
2387
+ export declare class UsersInGroup extends BondBaseEntity {
2388
+ groupId: number;
2389
+ userId: number;
2390
2390
  deletedAt?: Date;
2391
2391
  }
2392
- export declare enum EntitlementTermsTypesEnum {
2393
- QUESTION = "question",
2394
- CITY = "city",
2395
- MEMBERSHIP = "membership"
2392
+ export interface IEntitlementTerms {
2393
+ type: EntitlementTermsTypesEnum;
2394
+ id?: number;
2395
+ value?: string;
2396
+ minValue?: string;
2397
+ maxValue?: string;
2396
2398
  }
2397
- export declare enum ResourceNameTypeEnum {
2398
- EVENT = "event",
2399
- VENUE = "venue",
2400
- TEAM = "team",
2401
- LEAGUE = "league",
2402
- USER = "user",
2403
- ORGANIZATION = "organization",
2404
- APP = "app",
2405
- FEED = "feed",
2406
- MATCH = "match",
2407
- ROUND = "round",
2408
- PORTAL = "portal",
2409
- SEASON = "season",
2410
- TOURNAMENT = "tournament",
2411
- MEMBERSHIP = "membership",
2412
- DIVISION = "division",
2399
+ export interface IQuestionAnswerObject {
2400
+ questionId: number;
2401
+ value: string;
2402
+ }
2403
+ export interface ILowestPriceForItem {
2404
+ itemId: number;
2405
+ itemType: ResourceNameTypeEnum;
2406
+ groupId: number;
2407
+ groupName?: string;
2408
+ price: number;
2409
+ overridesPrice: boolean;
2410
+ }
2411
+ export interface IResourcesAvailability {
2412
+ resourceType: ResourceNameTypeEnum;
2413
+ quantity: number;
2414
+ resourcesIds: number[];
2415
+ isPunchCard: boolean;
2416
+ resources?: any[];
2417
+ }
2418
+ export interface IPackageResponse {
2419
+ parentProduct: Product;
2420
+ children: IChildProduct[];
2421
+ }
2422
+ export interface IChildProduct {
2423
+ product: Product;
2424
+ relationType: PackageProductsRelationTypeEnum;
2425
+ timePeriod?: AddonTimePeriodEnum;
2426
+ }
2427
+ export interface ISeasonAttendeeInfo {
2428
+ applicationAnswers: Answer[];
2429
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2430
+ invoices: Invoice[];
2431
+ payments: Payment[];
2432
+ products: Product[];
2433
+ redeemNext: ProductsUsers;
2434
+ }
2435
+ export interface ISeasonAttendeeListInfo {
2436
+ userId: number;
2437
+ userFirstName: string;
2438
+ userLastName: string;
2439
+ userGender: number;
2440
+ userBirthDate: Date;
2441
+ userProfilePicUrl: string;
2442
+ customerId: number;
2443
+ customerEmail: string;
2444
+ paymentStatus: string;
2445
+ productName: string;
2446
+ punchCard: boolean;
2447
+ }
2448
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2449
+ segmentType: ResourceNameTypeEnum;
2450
+ participantRegisteredDate?: string;
2451
+ }
2452
+ export declare class EventAsSeasonSegment extends Event {
2453
+ segmentType: ResourceNameTypeEnum;
2454
+ participantRegisteredDate?: string;
2455
+ }
2456
+ export interface ITokenResonse {
2457
+ token: string;
2458
+ }
2459
+ export interface IStripeBondInvoices {
2460
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2461
+ bondPaidPayment: Payment;
2462
+ invoice?: Invoice;
2463
+ customer?: Customer;
2464
+ }
2465
+ export interface IPartialPaymentData {
2466
+ purchasingUserId: number;
2467
+ paymentData: PurchasePaymentDto;
2468
+ amountToPay: number;
2469
+ }
2470
+ export interface IPayment {
2471
+ id: number;
2472
+ total: number;
2473
+ paymentMethod: PaymentMethodTypeEnum;
2474
+ status: PaymentStatusEnum;
2475
+ createdAt: Date;
2476
+ invoices: number[];
2477
+ }
2478
+ export interface IPaginationData<T> {
2479
+ meta: {
2480
+ totalItems: number;
2481
+ itemsPerPage: number;
2482
+ totalPages: number;
2483
+ currentPage: number;
2484
+ };
2485
+ data: T[];
2486
+ }
2487
+ export interface IPricesOfProductsResults {
2488
+ productId: number;
2489
+ userId: number;
2490
+ price: number;
2491
+ groupId?: number;
2492
+ groupName?: string;
2493
+ originalPrice?: number;
2494
+ priceWithoutTax: number;
2495
+ tax: number;
2496
+ isTaxInclusive: boolean;
2497
+ }
2498
+ export interface IPaymentMethodToFundLeft {
2499
+ paymentType: PaymentMethodTypeEnum;
2500
+ paymentMethodId: string;
2501
+ fundLeft: number;
2502
+ ccLast4?: string;
2503
+ ccBrand?: string;
2504
+ }
2505
+ export interface IVariantsAndTitle {
2506
+ title: VariantTitle;
2507
+ variants: Variant[];
2508
+ }
2509
+ export interface IProgramSeasonActivityTimes {
2510
+ dayOfWeek: number;
2511
+ open: string;
2512
+ close: string;
2513
+ }
2514
+ export interface IProgramSeasonActivityTimesAsDates {
2515
+ date: string;
2516
+ startTime: string;
2517
+ endTime: string;
2518
+ }
2519
+ export interface IBlockedDates {
2520
+ name: string;
2521
+ startDate: Date;
2522
+ endDate: Date;
2523
+ }
2524
+ export interface ISingleMemberForRenewal {
2525
+ member_id: number;
2526
+ member_membershipId: number;
2527
+ member_userId: number;
2528
+ member_nextPaymentMethodId?: string;
2529
+ member_nextPaymentType?: PaymentMethodTypeEnum;
2530
+ member_answerTitleIds?: number[];
2531
+ member_organizationId: number;
2532
+ product_productPrice: number;
2533
+ product_productId: number;
2534
+ invoice_payingUserId: number;
2535
+ invoice_paymentMethodId: string;
2536
+ invoice_paymentType: PaymentMethodTypeEnum;
2537
+ endDate: Date;
2538
+ membership_name: string;
2539
+ user_firstName: string;
2540
+ user_lastName: string;
2541
+ user_email: string;
2542
+ }
2543
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2544
+ package_parentProductId: number;
2545
+ product2_productPrice: number;
2546
+ familyid: number;
2547
+ invoice_id: number;
2548
+ }
2549
+ export interface IResourceRegistrationData {
2550
+ id: number;
2551
+ resourceType: ResourceNameTypeEnum;
2552
+ openNumDays?: number;
2553
+ openNumMinutes?: number;
2554
+ openTime?: string;
2555
+ closeNumDays?: number;
2556
+ closeNumMinutes?: number;
2557
+ closeTime?: string;
2558
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
2559
+ }
2560
+ export interface IResourceDataForConstraintsCalc {
2561
+ id: number;
2562
+ startDate: string;
2563
+ startTime: string;
2564
+ }
2565
+ export interface IRegistrationConstraintsSetting {
2566
+ numDays?: number;
2567
+ numMinutes?: number;
2568
+ }
2569
+ export interface IAttendeeDataToNotify {
2570
+ firstName: string;
2571
+ lastName: string;
2572
+ email: string;
2573
+ sessionName: string;
2574
+ parentSessionName?: string;
2575
+ organizationName: string;
2576
+ programName: string;
2577
+ }
2578
+ export interface IEventInSchedule {
2579
+ eventId: number;
2580
+ eventName: string;
2581
+ eventStartDate: string;
2582
+ eventEndDate: string;
2583
+ eventStartTime: string;
2584
+ eventEndTime: string;
2585
+ programId: number;
2586
+ programName: string;
2587
+ programType: ProgramTypesEnum;
2588
+ sessionId: number;
2589
+ sessionName: string;
2590
+ sports: number;
2591
+ spaces: {
2592
+ spaceId: number;
2593
+ spaceName: string;
2594
+ }[];
2595
+ status?: RegistrationValidationStatusEnum;
2596
+ }
2597
+ export interface ISlotInSchedule {
2598
+ facilityId: number;
2599
+ facilityName: string;
2600
+ spaces: ISpaceWithSlots[];
2601
+ }
2602
+ export interface ISpaceWithSlots {
2603
+ id: number;
2604
+ name: string;
2605
+ slots: ISlotReservationData[];
2606
+ }
2607
+ export interface ISlotReservationData {
2608
+ reservationId: number;
2609
+ reservationName: string;
2610
+ date: string;
2611
+ startTime: string;
2612
+ endTime: string;
2613
+ notes: string;
2614
+ spaceId: number;
2615
+ isRental: boolean;
2616
+ slotType: SlotTypeEnum;
2617
+ slotId: number;
2618
+ eventId: number;
2619
+ isPrivate: boolean;
2620
+ }
2621
+ export interface IRawEventInSchedule extends IEventInSchedule {
2622
+ parentSessionId: number;
2623
+ parentSessionName: string;
2624
+ eventTimezone: string;
2625
+ maxParticipants: number;
2626
+ maxMaleParticipants: number;
2627
+ maxFemaleParticipants: number;
2628
+ isPunchCard: boolean;
2629
+ }
2630
+ export interface IBasicSpaceAndSlotCreator {
2631
+ id: number;
2632
+ name: string;
2633
+ bookingCreatorId: number;
2634
+ }
2635
+ export interface IRawSlotInSchedule {
2636
+ startDate: string;
2637
+ endDate: string;
2638
+ startTime: string;
2639
+ endTime: string;
2640
+ reservationId: number;
2641
+ eventTitle: string;
2642
+ publicNotes: string;
2643
+ spaceId: number;
2644
+ creatorType: ResourceNameTypeEnum;
2645
+ slotType: SlotTypeEnum;
2646
+ slotId: number;
2647
+ eventId: number;
2648
+ isPrivate: boolean;
2649
+ }
2650
+ export interface IPurchasedResourcesRaw {
2651
+ purchasedId: number;
2652
+ purchasedProductUserId: number;
2653
+ purchasedResourceId: number;
2654
+ purchasedResourceType: ResourceNameTypeEnum;
2655
+ purchasedStatus: PurchasedResourceStatusEnum;
2656
+ pUserId: number;
2657
+ pUserPaymentStatus: PaymentStatusEnum;
2658
+ pUserProductId: number;
2659
+ pUserProductName: string;
2660
+ pUserProductPrice: number;
2661
+ pUserProductPriceCurrency: string;
2662
+ pUserProductQuantity: number;
2663
+ pUserProductQuantityLeft: number;
2664
+ pUserUserId: number;
2665
+ }
2666
+ export interface IUsersPasses {
2667
+ userId: number;
2668
+ userFirstName: string;
2669
+ userLastName: string;
2670
+ organizationId: number;
2671
+ programId: number;
2672
+ programName: string;
2673
+ sessionId: number;
2674
+ sessionName: string;
2675
+ productId: number;
2676
+ productName: string;
2677
+ productUserId: number;
2678
+ purchaseDate: Date;
2679
+ passesLeft: number;
2680
+ }
2681
+ export interface ISessionsLandingPage {
2682
+ sessionId: number;
2683
+ name: string;
2684
+ startDate: Date;
2685
+ endDate: Date;
2686
+ registrationStartDate: Date;
2687
+ registrationEndDate: Date;
2688
+ sport: SportsEnum;
2689
+ minAge: string;
2690
+ maxAge: string;
2691
+ maxParticipants?: number;
2692
+ gender: GenderEnum;
2693
+ activityTimes: ActivityTimes[];
2694
+ earlyRegistrationStartDate?: Date;
2695
+ earlyRegistrationEndDate?: Date;
2696
+ lateRegistrationStartDate?: Date;
2697
+ lateRegistrationEndDate?: Date;
2698
+ attendeeCount?: number;
2699
+ segmentsOrEvents: 'segment' | 'event';
2700
+ }
2701
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2702
+ hasRequiredMembership: boolean;
2703
+ hasEntitledPricing: boolean;
2704
+ lowestPrice?: number;
2705
+ products?: ISessionLandingPageProduct[];
2706
+ }
2707
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2708
+ hasRequiredMembership: boolean;
2709
+ hasEntitledPricing: boolean;
2710
+ products?: ISessionLandingPageProduct[];
2711
+ segments?: Event[] | ProgramSeason[];
2712
+ programName: string;
2713
+ programId: number;
2714
+ levelOfPlay: LevelOfPlayEnum[];
2715
+ registrationConstraints: IResourceRegistrationData[];
2716
+ }
2717
+ export interface ISlimAddons {
2718
+ addons?: {
2719
+ id: number;
2720
+ timePeriod: AddonTimePeriodEnum;
2721
+ name: string;
2722
+ productType?: ProductTypesEnum;
2723
+ productSubType?: string;
2724
+ }[];
2725
+ }
2726
+ export interface ISessionLandingPageProduct extends ISlimAddons {
2727
+ id: number;
2728
+ name: string;
2729
+ startDate?: Date;
2730
+ endDate?: Date;
2731
+ downpayment?: number;
2732
+ description?: string;
2733
+ prices: Price[];
2734
+ productSubType?: ProductSubTypesEnum;
2735
+ punchCard: boolean;
2736
+ isAddon: boolean;
2737
+ defaultPriceId?: number;
2738
+ }
2739
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2740
+ destinationId?: string;
2741
+ stripeCustomerId?: string;
2742
+ fee?: number;
2743
+ }
2744
+ export interface IReservationCreatorData {
2745
+ type: ResourceNameTypeEnum;
2746
+ id: number;
2747
+ organizationId: number;
2748
+ startDate: string;
2749
+ endDate: string;
2750
+ sportId: number;
2751
+ }
2752
+ export declare enum EntitlementTermsTypesEnum {
2753
+ QUESTION = "question",
2754
+ CITY = "city",
2755
+ MEMBERSHIP = "membership"
2756
+ }
2757
+ export declare enum ResourceNameTypeEnum {
2758
+ EVENT = "event",
2759
+ VENUE = "venue",
2760
+ TEAM = "team",
2761
+ LEAGUE = "league",
2762
+ USER = "user",
2763
+ ORGANIZATION = "organization",
2764
+ APP = "app",
2765
+ FEED = "feed",
2766
+ MATCH = "match",
2767
+ ROUND = "round",
2768
+ PORTAL = "portal",
2769
+ SEASON = "season",
2770
+ TOURNAMENT = "tournament",
2771
+ MEMBERSHIP = "membership",
2772
+ DIVISION = "division",
2413
2773
  GAMESLOT = "gameslot",
2414
2774
  SPACE = "space",
2415
2775
  RESERVATION = "reservation",
@@ -2747,562 +3107,193 @@ export declare enum ResourceSubTypeEnum {
2747
3107
  GOLF_SIMULATOR = "golf simulator"
2748
3108
  }
2749
3109
  export declare enum ResourceTypeEnum {
2750
- SPACE = "space"
2751
- }
2752
- export declare enum ResourceAgesEnum {
2753
- ADULTS = "adults",
2754
- CHILDREN = "children"
2755
- }
2756
- export declare enum SpacePropertiesEnum {
2757
- OUTDOOR = "outdoor",
2758
- INDOOR = "indoor"
2759
- }
2760
- export declare enum SurfacesEnum {
2761
- GRASS = "grass",
2762
- TURF = "turf",
2763
- FIELD_TURF = "fieldTurf",
2764
- ASTRO_TURF = "astroTurf",
2765
- HARDWOOD = "hardwood",
2766
- ASPHALT = "asphalt",
2767
- SAND = "sand",
2768
- ICE = "ice",
2769
- SPORT_COURT = "sportCourt"
2770
- }
2771
- export declare enum RegistrationConstraintPeriodTypeEnum {
2772
- MINUTES = "minutes",
2773
- DAYS = "days"
2774
- }
2775
- export declare enum RegistrationWindowStatusEnum {
2776
- NOT_OPEN_YET = "not_opened_yet",
2777
- OPEN = "open",
2778
- CLOSED = "closed"
2779
- }
2780
- export declare enum RegistrationValidationStatusEnum {
2781
- FULL = "full",
2782
- ALREADY_REGISTERED = "registered",
2783
- AVAILABLE = "available",
2784
- NOT_OPEN_YET = "not opened",
2785
- ALREADY_CLOSED = "closed",
2786
- NO_PRODUCT_FOUND = "no-product-found"
2787
- }
2788
- export declare enum DiscountMethodsEnum {
2789
- PERCENT = "percent",
2790
- AMOUNT = "amount"
2791
- }
2792
- export declare enum UserAuthorizationsTypeEnum {
2793
- ORGANIZATION = "organization"
2794
- }
2795
- export declare enum OrganizationLocaleDateEnum {
2796
- USA = "USA"
2797
- }
2798
- export declare enum DateTimeFormatsEnum {
2799
- API_DATE = "YYYY/MM/DD",
2800
- API_TIME = "HH:mm:ss",
2801
- DB_DATE = "YYYY-MM-DD"
2802
- }
2803
- export declare enum SlotTypeEnum {
2804
- EXTERNAL = "external",
2805
- INTERNAL = "internal",
2806
- MAINTENANCE = "maintenance",
2807
- CUSTOM = "custom"
2808
- }
2809
- export declare enum PlatformsEnum {
2810
- CONSUMER = "consumer",
2811
- CONSUMER_CHECKOUT = "consumer_checkout",
2812
- BO = "backoffice",
2813
- MOBILE = "mobile",
2814
- CRON = "cron"
2815
- }
2816
- export declare enum ShiftStatusEnum {
2817
- OPEN = "open",
2818
- CLOSED = "closed",
2819
- MANAGMENT_CLOSED = "closed_by_manager",
2820
- RECONCILED = "reconciled"
2821
- }
2822
- export declare enum EventStatusEnum {
2823
- OPEN = 1,
2824
- DRAFT = 2,
2825
- FULL = 3,
2826
- CANCELLED = 4,
2827
- CLOSED = 5,
2828
- DELETED = 6
2829
- }
2830
- export declare enum ReservationTypeEnum {
2831
- RENTAL = "rental",
2832
- PROGRAM = "program",
2833
- MAINTENANCE = "maintenance",
2834
- CUSTOM = "custom",
2835
- INTERNAL = "internal"
2836
- }
2837
- export declare enum SlotDurationTypeEnum {
2838
- DATES = "dates",
2839
- ALL_DAY = "all day",
2840
- DURATION = "duration"
2841
- }
2842
- export declare enum DurationUnitTypesEnum {
2843
- MINUTES = "minutes",
2844
- HOURS = "hours"
2845
- }
2846
- export declare enum FrequencyEnum {
2847
- NONE = "none",
2848
- WEEKLY = "weekly",
2849
- DAILY = "daily",
2850
- MONTHLY = "monthly",
2851
- YEARLY = "yearly"
2852
- }
2853
- export declare enum MaintenanceTimingEnum {
2854
- BEFORE = 1,
2855
- AFTER = 2,
2856
- AT_THE_BEGINING = 3,
2857
- AT_THE_END = 4
2858
- }
2859
- export declare enum CreatorTypeEnum {
2860
- SPACE = "space",
2861
- PROGRAM_SEASON = "program_season",
2862
- SEASON = "season"
2863
- }
2864
- export declare enum UpdatePricesTypeEnum {
2865
- INDIVIDUAL = "indvidual",
2866
- CATEGORY = "category",
2867
- GLOBAL = "global"
2868
- }
2869
- export declare enum BondDayOfWeekEnum {
2870
- MONDAY = 2,
2871
- TUESDAY = 3,
2872
- WEDNESDAY = 4,
2873
- THURSDAY = 5,
2874
- FRIDAY = 6,
2875
- SATURDAY = 7,
2876
- SUNDAY = 8
2877
- }
2878
- export declare enum ReservationMigrationStatusEnum {
2879
- NEW = "new",
2880
- NO = "no",
2881
- YES = "yes"
2882
- }
2883
- export declare enum ProductPackageLevelEnum {
2884
- HOUR = "hour",
2885
- SLOT = "slot",
2886
- RESERVATION = "reservation"
2887
- }
2888
- export declare enum CancellationStatusEnum {
2889
- IMMEDIATE = "immediate",
2890
- AUTO_RENEWAL = "auto_renewal"
2891
- }
2892
- export declare enum SeasonScheduleStatusEnum {
2893
- DRAFT = 0,
2894
- PUBLISHED = 1
2895
- }
2896
- export declare enum FinancialStepEnum {
2897
- VOID = "void",
2898
- REFUND = "refund",
2899
- NONE = "none",
2900
- REFUND_AND_VOID = "refund-and-void",
2901
- APPEND = "append"
2902
- }
2903
- export declare enum StripeAccountTypesEnum {
2904
- STRIPE = "stripe",
2905
- STRIPE_CUSTOM = "stripe:account:custom",
2906
- STRIPE_CUSTOMER = "stripe:customer"
2907
- }
2908
- export declare enum LinkedAccountStatus {
2909
- PENDING = 1,
2910
- ACTIVE = 2,
2911
- PRE_PENDING = 3
2912
- }
2913
- export declare enum AddonParentTypeEnum {
2914
- RESERVATION = "reservation",
2915
- SLOT = "slot"
2916
- }
2917
- export declare enum EEmailStatus {
2918
- SENT = "sent",
2919
- OPENED = "opened",
2920
- PAID = "paid",
2921
- CANCELED = "canceled"
2922
- }
2923
- export declare enum PaymentSettingStatusEnum {
2924
- ENABLED = 1,
2925
- DISABLED_REDIRECT = 2,
2926
- DISABLED_INFO_ONLY = 3,
2927
- DISABLED_EMAIL = 4
2928
- }
2929
- export declare enum NotifyMethodEnum {
2930
- EMAIL = "Email"
2931
- }
2932
- export interface IEntitlementTerms {
2933
- type: EntitlementTermsTypesEnum;
2934
- id?: number;
2935
- value?: string;
2936
- minValue?: string;
2937
- maxValue?: string;
2938
- }
2939
- export interface IQuestionAnswerObject {
2940
- questionId: number;
2941
- value: string;
2942
- }
2943
- export interface ILowestPriceForItem {
2944
- itemId: number;
2945
- itemType: ResourceNameTypeEnum;
2946
- groupId: number;
2947
- groupName?: string;
2948
- price: number;
2949
- overridesPrice: boolean;
2950
- }
2951
- export interface IResourcesAvailability {
2952
- resourceType: ResourceNameTypeEnum;
2953
- quantity: number;
2954
- resourcesIds: number[];
2955
- isPunchCard: boolean;
2956
- resources?: any[];
2957
- }
2958
- export interface IPackageResponse {
2959
- parentProduct: Product;
2960
- children: IChildProduct[];
2961
- }
2962
- export interface IChildProduct {
2963
- product: Product;
2964
- relationType: PackageProductsRelationTypeEnum;
2965
- timePeriod?: AddonTimePeriodEnum;
2966
- }
2967
- export interface ISeasonAttendeeInfo {
2968
- applicationAnswers: Answer[];
2969
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2970
- invoices: Invoice[];
2971
- payments: Payment[];
2972
- products: Product[];
2973
- redeemNext: ProductsUsers;
2974
- }
2975
- export interface ISeasonAttendeeListInfo {
2976
- userId: number;
2977
- userFirstName: string;
2978
- userLastName: string;
2979
- userGender: number;
2980
- userBirthDate: Date;
2981
- userProfilePicUrl: string;
2982
- customerId: number;
2983
- customerEmail: string;
2984
- paymentStatus: string;
2985
- productName: string;
2986
- punchCard: boolean;
2987
- }
2988
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2989
- segmentType: ResourceNameTypeEnum;
2990
- participantRegisteredDate?: string;
2991
- }
2992
- export declare class EventAsSeasonSegment extends Event {
2993
- segmentType: ResourceNameTypeEnum;
2994
- participantRegisteredDate?: string;
2995
- }
2996
- export interface ITokenResonse {
2997
- token: string;
3110
+ SPACE = "space"
2998
3111
  }
2999
- export interface IStripeBondInvoices {
3000
- paidStripePaymentIntent: Stripe.PaymentIntent;
3001
- bondPaidPayment: Payment;
3002
- invoice?: Invoice;
3003
- customer?: Customer;
3112
+ export declare enum ResourceAgesEnum {
3113
+ ADULTS = "adults",
3114
+ CHILDREN = "children"
3004
3115
  }
3005
- export interface IPartialPaymentData {
3006
- purchasingUserId: number;
3007
- paymentData: PurchasePaymentDto;
3008
- amountToPay: number;
3116
+ export declare enum SpacePropertiesEnum {
3117
+ OUTDOOR = "outdoor",
3118
+ INDOOR = "indoor"
3009
3119
  }
3010
- export interface IPayment {
3011
- id: number;
3012
- total: number;
3013
- paymentMethod: PaymentMethodTypeEnum;
3014
- status: PaymentStatusEnum;
3015
- createdAt: Date;
3016
- invoices: number[];
3120
+ export declare enum SurfacesEnum {
3121
+ GRASS = "grass",
3122
+ TURF = "turf",
3123
+ FIELD_TURF = "fieldTurf",
3124
+ ASTRO_TURF = "astroTurf",
3125
+ HARDWOOD = "hardwood",
3126
+ ASPHALT = "asphalt",
3127
+ SAND = "sand",
3128
+ ICE = "ice",
3129
+ SPORT_COURT = "sportCourt"
3017
3130
  }
3018
- export interface IPaginationData<T> {
3019
- meta: {
3020
- totalItems: number;
3021
- itemsPerPage: number;
3022
- totalPages: number;
3023
- currentPage: number;
3024
- };
3025
- data: T[];
3131
+ export declare enum RegistrationConstraintPeriodTypeEnum {
3132
+ MINUTES = "minutes",
3133
+ DAYS = "days"
3026
3134
  }
3027
- export interface IPricesOfProductsResults {
3028
- productId: number;
3029
- userId: number;
3030
- price: number;
3031
- groupId?: number;
3032
- groupName?: string;
3033
- originalPrice?: number;
3034
- priceWithoutTax: number;
3035
- tax: number;
3036
- isTaxInclusive: boolean;
3135
+ export declare enum RegistrationWindowStatusEnum {
3136
+ NOT_OPEN_YET = "not_opened_yet",
3137
+ OPEN = "open",
3138
+ CLOSED = "closed"
3037
3139
  }
3038
- export interface IPaymentMethodToFundLeft {
3039
- paymentType: PaymentMethodTypeEnum;
3040
- paymentMethodId: string;
3041
- fundLeft: number;
3042
- ccLast4?: string;
3043
- ccBrand?: string;
3140
+ export declare enum RegistrationValidationStatusEnum {
3141
+ FULL = "full",
3142
+ ALREADY_REGISTERED = "registered",
3143
+ AVAILABLE = "available",
3144
+ NOT_OPEN_YET = "not opened",
3145
+ ALREADY_CLOSED = "closed",
3146
+ NO_PRODUCT_FOUND = "no-product-found"
3044
3147
  }
3045
- export interface IVariantsAndTitle {
3046
- title: VariantTitle;
3047
- variants: Variant[];
3148
+ export declare enum DiscountMethodsEnum {
3149
+ PERCENT = "percent",
3150
+ AMOUNT = "amount"
3048
3151
  }
3049
- export interface IProgramSeasonActivityTimes {
3050
- dayOfWeek: number;
3051
- open: string;
3052
- close: string;
3152
+ export declare enum UserAuthorizationsTypeEnum {
3153
+ ORGANIZATION = "organization"
3053
3154
  }
3054
- export interface IProgramSeasonActivityTimesAsDates {
3055
- date: string;
3056
- startTime: string;
3057
- endTime: string;
3155
+ export declare enum OrganizationLocaleDateEnum {
3156
+ USA = "USA"
3058
3157
  }
3059
- export interface IBlockedDates {
3060
- name: string;
3061
- startDate: Date;
3062
- endDate: Date;
3158
+ export declare enum DateTimeFormatsEnum {
3159
+ API_DATE = "YYYY/MM/DD",
3160
+ API_TIME = "HH:mm:ss",
3161
+ DB_DATE = "YYYY-MM-DD"
3063
3162
  }
3064
- export interface ISingleMemberForRenewal {
3065
- member_id: number;
3066
- member_membershipId: number;
3067
- member_userId: number;
3068
- member_nextPaymentMethodId?: string;
3069
- member_nextPaymentType?: PaymentMethodTypeEnum;
3070
- member_answerTitleIds?: number[];
3071
- member_organizationId: number;
3072
- product_productPrice: number;
3073
- product_productId: number;
3074
- invoice_payingUserId: number;
3075
- invoice_paymentMethodId: string;
3076
- invoice_paymentType: PaymentMethodTypeEnum;
3077
- endDate: Date;
3078
- membership_name: string;
3079
- user_firstName: string;
3080
- user_lastName: string;
3081
- user_email: string;
3163
+ export declare enum SlotTypeEnum {
3164
+ EXTERNAL = "external",
3165
+ INTERNAL = "internal",
3166
+ MAINTENANCE = "maintenance",
3167
+ CUSTOM = "custom"
3082
3168
  }
3083
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3084
- package_parentProductId: number;
3085
- product2_productPrice: number;
3086
- familyid: number;
3087
- invoice_id: number;
3169
+ export declare enum PlatformsEnum {
3170
+ CONSUMER = "consumer",
3171
+ CONSUMER_CHECKOUT = "consumer_checkout",
3172
+ BO = "backoffice",
3173
+ MOBILE = "mobile",
3174
+ CRON = "cron"
3088
3175
  }
3089
- export interface IResourceRegistrationData {
3090
- id: number;
3091
- resourceType: ResourceNameTypeEnum;
3092
- openNumDays?: number;
3093
- openNumMinutes?: number;
3094
- openTime?: string;
3095
- closeNumDays?: number;
3096
- closeNumMinutes?: number;
3097
- closeTime?: string;
3098
- registrationWindowStatus?: RegistrationWindowStatusEnum;
3176
+ export declare enum ShiftStatusEnum {
3177
+ OPEN = "open",
3178
+ CLOSED = "closed",
3179
+ MANAGMENT_CLOSED = "closed_by_manager",
3180
+ RECONCILED = "reconciled"
3099
3181
  }
3100
- export interface IResourceDataForConstraintsCalc {
3101
- id: number;
3102
- startDate: string;
3103
- startTime: string;
3182
+ export declare enum EventStatusEnum {
3183
+ OPEN = 1,
3184
+ DRAFT = 2,
3185
+ FULL = 3,
3186
+ CANCELLED = 4,
3187
+ CLOSED = 5,
3188
+ DELETED = 6
3104
3189
  }
3105
- export interface IRegistrationConstraintsSetting {
3106
- numDays?: number;
3107
- numMinutes?: number;
3190
+ export declare enum ReservationTypeEnum {
3191
+ RENTAL = "rental",
3192
+ PROGRAM = "program",
3193
+ MAINTENANCE = "maintenance",
3194
+ CUSTOM = "custom",
3195
+ INTERNAL = "internal"
3108
3196
  }
3109
- export interface IAttendeeDataToNotify {
3110
- firstName: string;
3111
- lastName: string;
3112
- email: string;
3113
- sessionName: string;
3114
- parentSessionName?: string;
3115
- organizationName: string;
3116
- programName: string;
3197
+ export declare enum SlotDurationTypeEnum {
3198
+ DATES = "dates",
3199
+ ALL_DAY = "all day",
3200
+ DURATION = "duration"
3117
3201
  }
3118
- export interface IEventInSchedule {
3119
- eventId: number;
3120
- eventName: string;
3121
- eventStartDate: string;
3122
- eventEndDate: string;
3123
- eventStartTime: string;
3124
- eventEndTime: string;
3125
- programId: number;
3126
- programName: string;
3127
- programType: ProgramTypesEnum;
3128
- sessionId: number;
3129
- sessionName: string;
3130
- sports: number;
3131
- spaces: {
3132
- spaceId: number;
3133
- spaceName: string;
3134
- }[];
3135
- status?: RegistrationValidationStatusEnum;
3202
+ export declare enum DurationUnitTypesEnum {
3203
+ MINUTES = "minutes",
3204
+ HOURS = "hours"
3136
3205
  }
3137
- export interface ISlotInSchedule {
3138
- facilityId: number;
3139
- facilityName: string;
3140
- spaces: ISpaceWithSlots[];
3206
+ export declare enum FrequencyEnum {
3207
+ NONE = "none",
3208
+ WEEKLY = "weekly",
3209
+ DAILY = "daily",
3210
+ MONTHLY = "monthly",
3211
+ YEARLY = "yearly"
3141
3212
  }
3142
- export interface ISpaceWithSlots {
3143
- id: number;
3144
- name: string;
3145
- slots: ISlotReservationData[];
3213
+ export declare enum MaintenanceTimingEnum {
3214
+ BEFORE = 1,
3215
+ AFTER = 2,
3216
+ AT_THE_BEGINING = 3,
3217
+ AT_THE_END = 4
3146
3218
  }
3147
- export interface ISlotReservationData {
3148
- reservationId: number;
3149
- reservationName: string;
3150
- date: string;
3151
- startTime: string;
3152
- endTime: string;
3153
- notes: string;
3154
- spaceId: number;
3155
- isRental: boolean;
3156
- slotType: SlotTypeEnum;
3157
- slotId: number;
3158
- eventId: number;
3159
- isPrivate: boolean;
3219
+ export declare enum CreatorTypeEnum {
3220
+ SPACE = "space",
3221
+ PROGRAM_SEASON = "program_season",
3222
+ SEASON = "season"
3160
3223
  }
3161
- export interface IRawEventInSchedule extends IEventInSchedule {
3162
- parentSessionId: number;
3163
- parentSessionName: string;
3164
- eventTimezone: string;
3165
- maxParticipants: number;
3166
- maxMaleParticipants: number;
3167
- maxFemaleParticipants: number;
3168
- isPunchCard: boolean;
3224
+ export declare enum UpdatePricesTypeEnum {
3225
+ INDIVIDUAL = "indvidual",
3226
+ CATEGORY = "category",
3227
+ GLOBAL = "global"
3169
3228
  }
3170
- export interface IBasicSpaceAndSlotCreator {
3171
- id: number;
3172
- name: string;
3173
- bookingCreatorId: number;
3229
+ export declare enum BondDayOfWeekEnum {
3230
+ MONDAY = 2,
3231
+ TUESDAY = 3,
3232
+ WEDNESDAY = 4,
3233
+ THURSDAY = 5,
3234
+ FRIDAY = 6,
3235
+ SATURDAY = 7,
3236
+ SUNDAY = 8
3174
3237
  }
3175
- export interface IRawSlotInSchedule {
3176
- startDate: string;
3177
- endDate: string;
3178
- startTime: string;
3179
- endTime: string;
3180
- reservationId: number;
3181
- eventTitle: string;
3182
- publicNotes: string;
3183
- spaceId: number;
3184
- creatorType: ResourceNameTypeEnum;
3185
- slotType: SlotTypeEnum;
3186
- slotId: number;
3187
- eventId: number;
3188
- isPrivate: boolean;
3238
+ export declare enum ReservationMigrationStatusEnum {
3239
+ NEW = "new",
3240
+ NO = "no",
3241
+ YES = "yes"
3189
3242
  }
3190
- export interface IPurchasedResourcesRaw {
3191
- purchasedId: number;
3192
- purchasedProductUserId: number;
3193
- purchasedResourceId: number;
3194
- purchasedResourceType: ResourceNameTypeEnum;
3195
- purchasedStatus: PurchasedResourceStatusEnum;
3196
- pUserId: number;
3197
- pUserPaymentStatus: PaymentStatusEnum;
3198
- pUserProductId: number;
3199
- pUserProductName: string;
3200
- pUserProductPrice: number;
3201
- pUserProductPriceCurrency: string;
3202
- pUserProductQuantity: number;
3203
- pUserProductQuantityLeft: number;
3204
- pUserUserId: number;
3243
+ export declare enum ProductPackageLevelEnum {
3244
+ HOUR = "hour",
3245
+ SLOT = "slot",
3246
+ RESERVATION = "reservation"
3205
3247
  }
3206
- export interface IUsersPasses {
3207
- userId: number;
3208
- userFirstName: string;
3209
- userLastName: string;
3210
- organizationId: number;
3211
- programId: number;
3212
- programName: string;
3213
- sessionId: number;
3214
- sessionName: string;
3215
- productId: number;
3216
- productName: string;
3217
- productUserId: number;
3218
- purchaseDate: Date;
3219
- passesLeft: number;
3248
+ export declare enum CancellationStatusEnum {
3249
+ IMMEDIATE = "immediate",
3250
+ AUTO_RENEWAL = "auto_renewal"
3220
3251
  }
3221
- export interface ISessionsLandingPage {
3222
- sessionId: number;
3223
- name: string;
3224
- startDate: Date;
3225
- endDate: Date;
3226
- registrationStartDate: Date;
3227
- registrationEndDate: Date;
3228
- sport: SportsEnum;
3229
- minAge: string;
3230
- maxAge: string;
3231
- maxParticipants?: number;
3232
- gender: GenderEnum;
3233
- activityTimes: ActivityTimes[];
3234
- earlyRegistrationStartDate?: Date;
3235
- earlyRegistrationEndDate?: Date;
3236
- lateRegistrationStartDate?: Date;
3237
- lateRegistrationEndDate?: Date;
3238
- attendeeCount?: number;
3239
- segmentsOrEvents: 'segment' | 'event';
3252
+ export declare enum SeasonScheduleStatusEnum {
3253
+ DRAFT = 0,
3254
+ PUBLISHED = 1
3240
3255
  }
3241
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3242
- hasRequiredMembership: boolean;
3243
- hasEntitledPricing: boolean;
3244
- lowestPrice?: number;
3245
- products?: ISessionLandingPageProduct[];
3256
+ export declare enum FinancialStepEnum {
3257
+ VOID = "void",
3258
+ REFUND = "refund",
3259
+ NONE = "none",
3260
+ REFUND_AND_VOID = "refund-and-void",
3261
+ APPEND = "append"
3246
3262
  }
3247
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3248
- hasRequiredMembership: boolean;
3249
- hasEntitledPricing: boolean;
3250
- products?: ISessionLandingPageProduct[];
3251
- segments?: Event[] | ProgramSeason[];
3252
- programName: string;
3253
- programId: number;
3254
- levelOfPlay: LevelOfPlayEnum[];
3255
- registrationConstraints: IResourceRegistrationData[];
3263
+ export declare enum StripeAccountTypesEnum {
3264
+ STRIPE = "stripe",
3265
+ STRIPE_CUSTOM = "stripe:account:custom",
3266
+ STRIPE_CUSTOMER = "stripe:customer"
3256
3267
  }
3257
- export interface ISlimAddons {
3258
- addons?: {
3259
- id: number;
3260
- timePeriod: AddonTimePeriodEnum;
3261
- name: string;
3262
- productType?: ProductTypesEnum;
3263
- productSubType?: string;
3264
- }[];
3268
+ export declare enum LinkedAccountStatus {
3269
+ PENDING = 1,
3270
+ ACTIVE = 2,
3271
+ PRE_PENDING = 3
3265
3272
  }
3266
- export interface ISessionLandingPageProduct extends ISlimAddons {
3267
- id: number;
3268
- name: string;
3269
- startDate?: Date;
3270
- endDate?: Date;
3271
- downpayment?: number;
3272
- description?: string;
3273
- prices: Price[];
3274
- productSubType?: ProductSubTypesEnum;
3275
- punchCard: boolean;
3276
- isAddon: boolean;
3277
- defaultPriceId?: number;
3273
+ export declare enum AddonParentTypeEnum {
3274
+ RESERVATION = "reservation",
3275
+ SLOT = "slot"
3278
3276
  }
3279
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3280
- destinationId?: string;
3281
- stripeCustomerId?: string;
3282
- fee?: number;
3277
+ export declare enum EEmailStatus {
3278
+ SENT = "sent",
3279
+ OPENED = "opened",
3280
+ PAID = "paid",
3281
+ CANCELED = "canceled"
3283
3282
  }
3284
- export interface IReservationCreatorData {
3285
- type: ResourceNameTypeEnum;
3286
- id: number;
3287
- organizationId: number;
3288
- startDate: string;
3289
- endDate: string;
3290
- sportId: number;
3283
+ export declare enum PaymentSettingStatusEnum {
3284
+ ENABLED = 1,
3285
+ DISABLED_REDIRECT = 2,
3286
+ DISABLED_INFO_ONLY = 3,
3287
+ DISABLED_EMAIL = 4
3291
3288
  }
3292
- export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3293
- name?: string;
3294
- genderStr?: string;
3295
- parentID?: string;
3296
- partnerID?: string;
3297
- membershipName?: string;
3298
- membershipExpDate?: string;
3299
- membershipCreationDate?: string;
3300
- bondMembershipID?: number;
3289
+ export declare enum NotifyMethodEnum {
3290
+ EMAIL = "Email"
3301
3291
  }
3302
- export declare class AddFamilyDto {
3303
- parents: AddImportedCustomerDto[];
3304
- children: AddImportedCustomerDto[];
3292
+ export declare class ColumnNumericTransformer {
3293
+ to(data: number): number;
3294
+ from(data: string): number;
3305
3295
  }
3296
+ export declare function convertToNumber(data: string): number;
3306
3297
  export declare enum ImportPaymentTypeEnum {
3307
3298
  CREDIT_CARD = "card",
3308
3299
  ACH = "ach",
@@ -3338,6 +3329,20 @@ export declare class ImportedPaymentDto {
3338
3329
  date: string;
3339
3330
  time: string;
3340
3331
  }
3332
+ export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3333
+ name?: string;
3334
+ genderStr?: string;
3335
+ parentID?: string;
3336
+ partnerID?: string;
3337
+ membershipName?: string;
3338
+ membershipExpDate?: string;
3339
+ membershipCreationDate?: string;
3340
+ bondMembershipID?: number;
3341
+ }
3342
+ export declare class AddFamilyDto {
3343
+ parents: AddImportedCustomerDto[];
3344
+ children: AddImportedCustomerDto[];
3345
+ }
3341
3346
  export declare class ProductIdsDto {
3342
3347
  productIds?: number[];
3343
3348
  }
@@ -3347,11 +3352,10 @@ export declare class ProductImportDto {
3347
3352
  resourceIds: number[];
3348
3353
  oldId: number;
3349
3354
  }
3350
- export declare class ColumnNumericTransformer {
3351
- to(data: number): number;
3352
- from(data: string): number;
3355
+ export declare class GameSlots extends BondBaseEntity {
3356
+ entityType: string;
3357
+ entityId: number;
3353
3358
  }
3354
- export declare function convertToNumber(data: string): number;
3355
3359
  export declare class PunchPassDto {
3356
3360
  CustomerID: string;
3357
3361
  QuantityLeft: number;
@@ -3410,10 +3414,6 @@ export declare class ImportedReservationDto {
3410
3414
  slots?: ImportedSlotDto[];
3411
3415
  addons?: ImportedSlotProductDto[];
3412
3416
  }
3413
- export declare class GameSlots extends BondBaseEntity {
3414
- entityType: string;
3415
- entityId: number;
3416
- }
3417
3417
  export declare class MatchParticipants extends BondBaseEntity {
3418
3418
  matchId: number | null;
3419
3419
  ordinal: number | null;
@@ -3441,15 +3441,15 @@ export declare class SeasonRounds extends BondBaseEntity {
3441
3441
  divisionId?: number;
3442
3442
  name: string;
3443
3443
  }
3444
- export declare class Lock extends BondBaseEntity {
3445
- name: string;
3446
- locked?: Date;
3447
- }
3448
3444
  export declare class TeamEvents extends BondBaseEntity {
3449
3445
  teamId: number | null;
3450
3446
  eventId: number | null;
3451
3447
  status: number | null;
3452
3448
  }
3449
+ export declare class Lock extends BondBaseEntity {
3450
+ name: string;
3451
+ locked?: Date;
3452
+ }
3453
3453
  export interface ValidatedMonthAndDay {
3454
3454
  valid: boolean;
3455
3455
  month?: number;
@@ -3513,6 +3513,12 @@ export declare class FindUnallocatedEventsFiltersDto extends PaginationQuery {
3513
3513
  months?: string;
3514
3514
  dow?: string;
3515
3515
  }
3516
+ export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3517
+ key?: string;
3518
+ vaule?: string;
3519
+ version: number;
3520
+ organization: Organization;
3521
+ }
3516
3522
  export declare class Organization extends BondBaseEntity {
3517
3523
  name: string | null;
3518
3524
  email: string | null;
@@ -3562,19 +3568,13 @@ export declare class Organization extends BondBaseEntity {
3562
3568
  brandings: OrganizationBranding[];
3563
3569
  brandingsV2?: OrganizationBranding[];
3564
3570
  }
3565
- export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3566
- key?: string;
3567
- vaule?: string;
3568
- version: number;
3569
- organization: Organization;
3570
- }
3571
- export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3572
- mainAdminUserId?: number;
3573
- }
3574
3571
  export declare class OrganizationUsers extends BondBaseEntity {
3575
3572
  organisationId: number | null;
3576
3573
  userId: number | null;
3577
3574
  }
3575
+ export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3576
+ mainAdminUserId?: number;
3577
+ }
3578
3578
  export interface UnallocatedEventsFilters {
3579
3579
  programsIds?: number[];
3580
3580
  sessionsIds?: number[];
@@ -3724,16 +3724,6 @@ export declare class RefundLineItemAmountDto {
3724
3724
  id: number;
3725
3725
  refundAmount: number;
3726
3726
  }
3727
- export declare class VoidDto {
3728
- lineItems: VoidLineItemDto[];
3729
- meta?: RevertMetaDto;
3730
- }
3731
- export declare class VoidLineItemDto {
3732
- id: number;
3733
- quantity?: number;
3734
- isEdit?: boolean;
3735
- amount?: number;
3736
- }
3737
3727
  export interface PaymentResult {
3738
3728
  paymentMethodId: string;
3739
3729
  paymentMethodType: PaymentMethodTypeEnum;
@@ -3759,6 +3749,16 @@ export interface ExtendedLineItems {
3759
3749
  products: LineItems[];
3760
3750
  events: LineItems[];
3761
3751
  }
3752
+ export declare class VoidDto {
3753
+ lineItems: VoidLineItemDto[];
3754
+ meta?: RevertMetaDto;
3755
+ }
3756
+ export declare class VoidLineItemDto {
3757
+ id: number;
3758
+ quantity?: number;
3759
+ isEdit?: boolean;
3760
+ amount?: number;
3761
+ }
3762
3762
  export interface RefundResult extends PaymentsResults {
3763
3763
  successfulLineItems: RefundLineItemAmountDto[];
3764
3764
  failedLineItems: RefundLineItemAmountDto[];
@@ -4561,16 +4561,16 @@ export declare class ChangeRolePermissionsDto {
4561
4561
  export declare class CreateRoleDto {
4562
4562
  name: string;
4563
4563
  }
4564
- export declare class Permission extends BondBaseEntity {
4565
- name: string;
4566
- deletedAt?: Date;
4567
- }
4568
4564
  export declare class Role extends OrganizationConnectionBaseEntity {
4569
4565
  name: string;
4570
4566
  deletedAt?: Date;
4571
4567
  permissions: Permission[];
4572
4568
  usersRoles: UserRole[];
4573
4569
  }
4570
+ export declare class Permission extends BondBaseEntity {
4571
+ name: string;
4572
+ deletedAt?: Date;
4573
+ }
4574
4574
  export declare class UserRole extends OrganizationConnectionBaseEntity {
4575
4575
  deletedAt?: Date;
4576
4576
  userId: number;
@@ -4611,10 +4611,6 @@ export declare class ShiftManagementClosingAmount {
4611
4611
  export declare class ManagementClosingOfShiftsDto {
4612
4612
  managementClosingData: ShiftManagementClosingAmount[];
4613
4613
  }
4614
- export declare class OpenShiftDto {
4615
- openingCashAmount: number;
4616
- stationId: number;
4617
- }
4618
4614
  export declare class Shift extends OrganizationConnectionBaseEntity {
4619
4615
  stationId: number;
4620
4616
  station?: Station;
@@ -4644,3 +4640,7 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4644
4640
  closingManager?: User;
4645
4641
  reconcilingUser?: User;
4646
4642
  }
4643
+ export declare class OpenShiftDto {
4644
+ openingCashAmount: number;
4645
+ stationId: number;
4646
+ }