@bondsports/types 0.0.166 → 0.0.167

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
@@ -238,38 +238,6 @@ export declare class UpdateFacilityAmenitiesDto {
238
238
  export declare class FindFacilitiesOptionsDto extends PaginationQuery {
239
239
  nameSearch?: string;
240
240
  }
241
- export declare class FindFamilyAccountsDto {
242
- userId: number;
243
- }
244
- export declare class FindFamilyAccountsCustomerDto {
245
- customerId: number;
246
- organizationId: number;
247
- }
248
- export declare class FindUsersInFamilyAccountDto {
249
- familyAccountId: number;
250
- }
251
- export declare class CreateFamilyAccountDto {
252
- familyName: string;
253
- userId: number;
254
- }
255
- export declare class UpdateFamilyAccountNameDto {
256
- familyName: string;
257
- familyAccountId: number;
258
- }
259
- export declare class AddUserToFamilyAccountDto {
260
- familyAccountId: number;
261
- isUserAdmin: boolean;
262
- firstName: string;
263
- lastName: string;
264
- gender: GenderEnum;
265
- birthDate: string;
266
- sports?: number[];
267
- email?: string;
268
- }
269
- export declare class RemoveUserFromFamilyAccountDto {
270
- userId: number;
271
- familyAccountId: number;
272
- }
273
241
  export declare class FindOneParams {
274
242
  id: number;
275
243
  }
@@ -365,6 +333,38 @@ export declare class MoveTeamOrMemberDto implements IMoveSeason {
365
333
  export declare class MoveTeamOrMembersByCsvDTO {
366
334
  fileName: string;
367
335
  }
336
+ export declare class FindFamilyAccountsDto {
337
+ userId: number;
338
+ }
339
+ export declare class FindFamilyAccountsCustomerDto {
340
+ customerId: number;
341
+ organizationId: number;
342
+ }
343
+ export declare class FindUsersInFamilyAccountDto {
344
+ familyAccountId: number;
345
+ }
346
+ export declare class CreateFamilyAccountDto {
347
+ familyName: string;
348
+ userId: number;
349
+ }
350
+ export declare class UpdateFamilyAccountNameDto {
351
+ familyName: string;
352
+ familyAccountId: number;
353
+ }
354
+ export declare class AddUserToFamilyAccountDto {
355
+ familyAccountId: number;
356
+ isUserAdmin: boolean;
357
+ firstName: string;
358
+ lastName: string;
359
+ gender: GenderEnum;
360
+ birthDate: string;
361
+ sports?: number[];
362
+ email?: string;
363
+ }
364
+ export declare class RemoveUserFromFamilyAccountDto {
365
+ userId: number;
366
+ familyAccountId: number;
367
+ }
368
368
  export declare class CreateMembershipDto {
369
369
  organizationId: number;
370
370
  name: string;
@@ -463,6 +463,24 @@ export declare class CreateGroupPricingWithProduct {
463
463
  discountValue?: number;
464
464
  discountMethod?: DiscountMethodsEnum;
465
465
  }
466
+ export declare class CreateUpdateVariantsDto {
467
+ organizationId: number;
468
+ parentProductId: number;
469
+ variantTitles: VariantTitleDto[];
470
+ variants: VariantDto[];
471
+ }
472
+ export declare class VariantTitleDto {
473
+ titleName: string;
474
+ titleId: number;
475
+ }
476
+ export declare class VariantDto {
477
+ name: string;
478
+ price: number;
479
+ variantId: number;
480
+ currency: CurrencyEnum;
481
+ startDate: Date;
482
+ endDate: Date;
483
+ }
466
484
  export declare class FindByProductIdDto {
467
485
  productId: number;
468
486
  }
@@ -684,24 +702,6 @@ export declare class createResourceDto {
684
702
  export declare class archiveDto {
685
703
  isArchive: boolean;
686
704
  }
687
- export declare class CreateUpdateVariantsDto {
688
- organizationId: number;
689
- parentProductId: number;
690
- variantTitles: VariantTitleDto[];
691
- variants: VariantDto[];
692
- }
693
- export declare class VariantTitleDto {
694
- titleName: string;
695
- titleId: number;
696
- }
697
- export declare class VariantDto {
698
- name: string;
699
- price: number;
700
- variantId: number;
701
- currency: CurrencyEnum;
702
- startDate: Date;
703
- endDate: Date;
704
- }
705
705
  export declare class FindProgramSeasonsByProgramIdDto {
706
706
  programId: number;
707
707
  }
@@ -1087,15 +1087,6 @@ export declare class AddACHTokenToCustomerDto {
1087
1087
  publicToken: string;
1088
1088
  accountId: string;
1089
1089
  }
1090
- export declare class FindByUserIdDto {
1091
- userId: number;
1092
- }
1093
- export declare class FindByFamilyAccountIdDto {
1094
- familyAccountId?: number;
1095
- }
1096
- export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1097
- organizationId: number;
1098
- }
1099
1090
  export declare class ActivityLogRecord extends BondBaseEntity {
1100
1091
  entityType: ResourceNameTypeEnum;
1101
1092
  entityId: number;
@@ -1146,6 +1137,15 @@ export declare class Answer extends OrganizationConnectionBaseEntity {
1146
1137
  metaData: any | null;
1147
1138
  questionText: string | null;
1148
1139
  }
1140
+ export declare class FindByUserIdDto {
1141
+ userId: number;
1142
+ }
1143
+ export declare class FindByFamilyAccountIdDto {
1144
+ familyAccountId?: number;
1145
+ }
1146
+ export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1147
+ organizationId: number;
1148
+ }
1149
1149
  export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1150
1150
  questionnaireId: number;
1151
1151
  userId?: number;
@@ -1411,6 +1411,9 @@ export declare class FutureInstallment extends OrganizationConnectionBaseEntity
1411
1411
  chargedAt?: Date;
1412
1412
  originalPlannedDate?: Date;
1413
1413
  }
1414
+ export declare class GlCodes extends OrganizationConnectionBaseEntity {
1415
+ code: string;
1416
+ }
1414
1417
  export declare class Group extends BondBaseEntity {
1415
1418
  name: string;
1416
1419
  description?: string;
@@ -1440,14 +1443,6 @@ export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity
1440
1443
  discountMethod?: DiscountMethodsEnum;
1441
1444
  discountValue?: number;
1442
1445
  }
1443
- export declare class GlCodes extends OrganizationConnectionBaseEntity {
1444
- code: string;
1445
- }
1446
- export declare class GroupsInDivisions extends BondBaseEntity {
1447
- groupId: number;
1448
- divisionId: number;
1449
- deletedAt?: Date;
1450
- }
1451
1446
  export declare class Invoice extends BondBaseEntity {
1452
1447
  invoiceId: string | null;
1453
1448
  price: number | null;
@@ -1500,6 +1495,11 @@ export declare class InvoiceToPayment extends BondBaseEntity {
1500
1495
  paidAmount?: number;
1501
1496
  currency: CurrencyEnum;
1502
1497
  }
1498
+ export declare class GroupsInDivisions extends BondBaseEntity {
1499
+ groupId: number;
1500
+ divisionId: number;
1501
+ deletedAt?: Date;
1502
+ }
1503
1503
  export declare class League extends OrganizationConnectionBaseEntity {
1504
1504
  name: string | null;
1505
1505
  description: string | null;
@@ -1570,6 +1570,16 @@ export declare class LeagueSeasonRelations {
1570
1570
  league?: boolean;
1571
1571
  facilities?: boolean;
1572
1572
  }
1573
+ export declare class LineItemHistory extends BondBaseEntity {
1574
+ invoiceId: number;
1575
+ paymentId: number;
1576
+ lineItemId: number;
1577
+ paidAmount: number;
1578
+ unitPaidAmount: number;
1579
+ currency: CurrencyEnum;
1580
+ payment: Payment;
1581
+ lineItem: LineItems;
1582
+ }
1573
1583
  export declare class LineItems extends BondBaseEntity {
1574
1584
  constructor();
1575
1585
  defineIsReverted(): void;
@@ -1625,16 +1635,6 @@ export declare class LineItems extends BondBaseEntity {
1625
1635
  displayUnitPrice?: number;
1626
1636
  displayQuantity?: number;
1627
1637
  }
1628
- export declare class LineItemHistory extends BondBaseEntity {
1629
- invoiceId: number;
1630
- paymentId: number;
1631
- lineItemId: number;
1632
- paidAmount: number;
1633
- unitPaidAmount: number;
1634
- currency: CurrencyEnum;
1635
- payment: Payment;
1636
- lineItem: LineItems;
1637
- }
1638
1638
  export declare class LinkedAccounts extends BondBaseEntity {
1639
1639
  id: number;
1640
1640
  provider: string;
@@ -2166,13 +2166,6 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
2166
2166
  purchasedResources: PurchasedResource[];
2167
2167
  linkSEO: string;
2168
2168
  }
2169
- export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2170
- name: string;
2171
- facilityId: number;
2172
- parentSlotId: number;
2173
- childrenSlotIds: number[];
2174
- deletedAt?: Date;
2175
- }
2176
2169
  export declare class School extends BondBaseEntity {
2177
2170
  name: string | null;
2178
2171
  alias: string[] | null;
@@ -2181,6 +2174,13 @@ export declare class School extends BondBaseEntity {
2181
2174
  phone: string | null;
2182
2175
  dataId: number | null;
2183
2176
  }
2177
+ export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2178
+ name: string;
2179
+ facilityId: number;
2180
+ parentSlotId: number;
2181
+ childrenSlotIds: number[];
2182
+ deletedAt?: Date;
2183
+ }
2184
2184
  export declare class SeasonAttendee extends BondBaseEntity {
2185
2185
  status: RequestStatusEnum;
2186
2186
  paymentStatus: PaymentStatusEnum;
@@ -2226,10 +2226,6 @@ export declare class SeasonTeam extends BondBaseEntity {
2226
2226
  metaData: any | null;
2227
2227
  team: Team;
2228
2228
  }
2229
- export declare class SpacesDependency extends BondBaseEntity {
2230
- blockingSpaceId: number;
2231
- blockedSpaceId: number;
2232
- }
2233
2229
  export declare class Station extends OrganizationConnectionBaseEntity {
2234
2230
  name: string;
2235
2231
  facilityId: number;
@@ -2241,6 +2237,10 @@ export declare class Station extends OrganizationConnectionBaseEntity {
2241
2237
  subcategories: Subcategory[];
2242
2238
  shifts?: Shift[];
2243
2239
  }
2240
+ export declare class SpacesDependency extends BondBaseEntity {
2241
+ blockingSpaceId: number;
2242
+ blockedSpaceId: number;
2243
+ }
2244
2244
  export declare class StationToSubcategory extends OrganizationConnectionBaseEntity {
2245
2245
  stationId: number;
2246
2246
  subcategoryId: number;
@@ -2300,6 +2300,15 @@ export declare class TeamInvite extends BondBaseEntity {
2300
2300
  tokenExpirationDate: Date;
2301
2301
  isUsed: boolean;
2302
2302
  }
2303
+ export declare class TeamMember extends BondBaseEntity {
2304
+ teamId: number | null;
2305
+ userId: number | null;
2306
+ paymentId: number | null;
2307
+ hasPaid: boolean | null;
2308
+ status: TeamMemberStatusEnum | null;
2309
+ role: TeamMemberRoleEnum;
2310
+ user: User;
2311
+ }
2303
2312
  export declare class User extends BondBaseEntity {
2304
2313
  firstName: string | null;
2305
2314
  lastName: string | null;
@@ -2339,15 +2348,6 @@ export declare class User extends BondBaseEntity {
2339
2348
  invoiceNotes: InvoiceNote[];
2340
2349
  paymentNotes: PaymentNote[];
2341
2350
  }
2342
- export declare class TeamMember extends BondBaseEntity {
2343
- teamId: number | null;
2344
- userId: number | null;
2345
- paymentId: number | null;
2346
- hasPaid: boolean | null;
2347
- status: TeamMemberStatusEnum | null;
2348
- role: TeamMemberRoleEnum;
2349
- user: User;
2350
- }
2351
2351
  export declare class UserAuthorizations extends BondBaseEntity {
2352
2352
  entityId: number | null;
2353
2353
  userId: number | null;
@@ -2370,21 +2370,10 @@ export declare class UserPaymentMethod extends BondBaseEntity {
2370
2370
  paymentMethodId: string;
2371
2371
  nextAllowedChargeDate?: Date;
2372
2372
  }
2373
- export declare class UsersInGroup extends BondBaseEntity {
2374
- groupId: number;
2375
- userId: number;
2376
- deletedAt?: Date;
2377
- }
2378
2373
  export declare class VariantTitle extends OrganizationConnectionBaseEntity {
2379
2374
  name: string;
2380
2375
  variants: Variant[];
2381
2376
  }
2382
- export declare class Variant extends OrganizationConnectionBaseEntity {
2383
- name: string;
2384
- variantTitleId: number;
2385
- variantTitle: VariantTitle;
2386
- deletedAt?: Date;
2387
- }
2388
2377
  export declare class WebflowOrganizationConfiguration extends OrganizationConnectionBaseEntity {
2389
2378
  projectToken: string;
2390
2379
  programTypesCollectionId?: string;
@@ -2393,50 +2382,421 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2393
2382
  membershipCollectionId?: string;
2394
2383
  programsCollectionId?: string;
2395
2384
  }
2396
- export declare enum EntitlementTermsTypesEnum {
2397
- QUESTION = "question",
2398
- CITY = "city",
2399
- MEMBERSHIP = "membership"
2400
- }
2401
- export declare enum ResourceNameTypeEnum {
2402
- EVENT = "event",
2403
- VENUE = "venue",
2404
- TEAM = "team",
2405
- LEAGUE = "league",
2406
- USER = "user",
2407
- ORGANIZATION = "organization",
2408
- APP = "app",
2409
- FEED = "feed",
2410
- MATCH = "match",
2411
- ROUND = "round",
2412
- PORTAL = "portal",
2413
- SEASON = "season",
2414
- TOURNAMENT = "tournament",
2415
- MEMBERSHIP = "membership",
2416
- DIVISION = "division",
2417
- GAMESLOT = "gameslot",
2418
- SPACE = "space",
2419
- RESERVATION = "reservation",
2420
- INVOICE = "invoice",
2421
- CUSTOMER = "customer",
2422
- PACKAGE = "package",
2423
- FACILITY = "facility",
2424
- PROGRAM = "program",
2425
- PROGRAM_SEASON = "program_season",
2426
- PRODUCT = "product",
2427
- GROUP = "group",
2428
- VARIANT = "variant",
2429
- SLOT = "slot",
2430
- ADDON = "addon"
2385
+ export declare class UsersInGroup extends BondBaseEntity {
2386
+ groupId: number;
2387
+ userId: number;
2388
+ deletedAt?: Date;
2431
2389
  }
2432
- export declare enum DirectBookingTypesEnum {
2433
- DIRECT_FOR_ALL = "all",
2434
- DIRECT_FOR_NONE = "none",
2435
- DIRECT_VETTED_ONLY = "vetted_only",
2436
- NO_SETTING = "no_setting"
2390
+ export declare class Variant extends OrganizationConnectionBaseEntity {
2391
+ name: string;
2392
+ variantTitleId: number;
2393
+ variantTitle: VariantTitle;
2394
+ deletedAt?: Date;
2437
2395
  }
2438
- export declare enum GenderEnum {
2439
- OTHER = 1,
2396
+ export interface IEntitlementTerms {
2397
+ type: EntitlementTermsTypesEnum;
2398
+ id?: number;
2399
+ value?: string;
2400
+ minValue?: string;
2401
+ maxValue?: string;
2402
+ }
2403
+ export interface IQuestionAnswerObject {
2404
+ questionId: number;
2405
+ value: string;
2406
+ }
2407
+ export interface ILowestPriceForItem {
2408
+ itemId: number;
2409
+ itemType: ResourceNameTypeEnum;
2410
+ groupId: number;
2411
+ groupName?: string;
2412
+ price: number;
2413
+ overridesPrice: boolean;
2414
+ }
2415
+ export interface IResourcesAvailability {
2416
+ resourceType: ResourceNameTypeEnum;
2417
+ quantity: number;
2418
+ resourcesIds: number[];
2419
+ isPunchCard: boolean;
2420
+ resources?: any[];
2421
+ }
2422
+ export interface IPackageResponse {
2423
+ parentProduct: Product;
2424
+ children: IChildProduct[];
2425
+ }
2426
+ export interface IChildProduct {
2427
+ product: Product;
2428
+ relationType: PackageProductsRelationTypeEnum;
2429
+ timePeriod?: AddonTimePeriodEnum;
2430
+ }
2431
+ export interface ISeasonAttendeeInfo {
2432
+ applicationAnswers: Answer[];
2433
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2434
+ invoices: Invoice[];
2435
+ payments: Payment[];
2436
+ products: Product[];
2437
+ redeemNext: ProductsUsers;
2438
+ }
2439
+ export interface ISeasonAttendeeListInfo {
2440
+ userId: number;
2441
+ userFirstName: string;
2442
+ userLastName: string;
2443
+ userGender: number;
2444
+ userBirthDate: Date;
2445
+ userProfilePicUrl: string;
2446
+ customerId: number;
2447
+ customerEmail: string;
2448
+ paymentStatus: string;
2449
+ productName: string;
2450
+ punchCard: boolean;
2451
+ }
2452
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2453
+ segmentType: ResourceNameTypeEnum;
2454
+ participantRegisteredDate?: string;
2455
+ }
2456
+ export declare class EventAsSeasonSegment extends Event {
2457
+ segmentType: ResourceNameTypeEnum;
2458
+ participantRegisteredDate?: string;
2459
+ }
2460
+ export interface ITokenResonse {
2461
+ token: string;
2462
+ }
2463
+ export interface IStripeBondInvoices {
2464
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2465
+ bondPaidPayment: Payment;
2466
+ invoice?: Invoice;
2467
+ customer?: Customer;
2468
+ }
2469
+ export interface IPartialPaymentData {
2470
+ purchasingUserId: number;
2471
+ paymentData: PurchasePaymentDto;
2472
+ amountToPay: number;
2473
+ }
2474
+ export interface IPayment {
2475
+ id: number;
2476
+ total: number;
2477
+ paymentMethod: PaymentMethodTypeEnum;
2478
+ status: PaymentStatusEnum;
2479
+ createdAt: Date;
2480
+ invoices: number[];
2481
+ }
2482
+ export interface IPaginationData<T> {
2483
+ meta: {
2484
+ totalItems: number;
2485
+ itemsPerPage: number;
2486
+ totalPages: number;
2487
+ currentPage: number;
2488
+ };
2489
+ data: T[];
2490
+ }
2491
+ export interface IPricesOfProductsResults {
2492
+ productId: number;
2493
+ userId: number;
2494
+ price: number;
2495
+ groupId?: number;
2496
+ groupName?: string;
2497
+ originalPrice?: number;
2498
+ priceWithoutTax: number;
2499
+ tax: number;
2500
+ isTaxInclusive: boolean;
2501
+ }
2502
+ export interface IPaymentMethodToFundLeft {
2503
+ paymentType: PaymentMethodTypeEnum;
2504
+ paymentMethodId: string;
2505
+ fundLeft: number;
2506
+ ccLast4?: string;
2507
+ ccBrand?: string;
2508
+ }
2509
+ export interface IVariantsAndTitle {
2510
+ title: VariantTitle;
2511
+ variants: Variant[];
2512
+ }
2513
+ export interface IProgramSeasonActivityTimes {
2514
+ dayOfWeek: number;
2515
+ open: string;
2516
+ close: string;
2517
+ }
2518
+ export interface IProgramSeasonActivityTimesAsDates {
2519
+ date: string;
2520
+ startTime: string;
2521
+ endTime: string;
2522
+ }
2523
+ export interface IBlockedDates {
2524
+ name: string;
2525
+ startDate: Date;
2526
+ endDate: Date;
2527
+ }
2528
+ export interface ISingleMemberForRenewal {
2529
+ member_id: number;
2530
+ member_membershipId: number;
2531
+ member_userId: number;
2532
+ member_nextPaymentMethodId?: string;
2533
+ member_nextPaymentType?: PaymentMethodTypeEnum;
2534
+ member_answerTitleIds?: number[];
2535
+ member_organizationId: number;
2536
+ product_productPrice: number;
2537
+ product_productId: number;
2538
+ invoice_payingUserId: number;
2539
+ invoice_paymentMethodId: string;
2540
+ invoice_paymentType: PaymentMethodTypeEnum;
2541
+ endDate: Date;
2542
+ membership_name: string;
2543
+ user_firstName: string;
2544
+ user_lastName: string;
2545
+ user_email: string;
2546
+ }
2547
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2548
+ package_parentProductId: number;
2549
+ product2_productPrice: number;
2550
+ familyid: number;
2551
+ invoice_id: number;
2552
+ }
2553
+ export interface IResourceRegistrationData {
2554
+ id: number;
2555
+ resourceType: ResourceNameTypeEnum;
2556
+ openNumDays?: number;
2557
+ openNumMinutes?: number;
2558
+ openTime?: string;
2559
+ closeNumDays?: number;
2560
+ closeNumMinutes?: number;
2561
+ closeTime?: string;
2562
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
2563
+ }
2564
+ export interface IResourceDataForConstraintsCalc {
2565
+ id: number;
2566
+ startDate: string;
2567
+ startTime: string;
2568
+ }
2569
+ export interface IRegistrationConstraintsSetting {
2570
+ numDays?: number;
2571
+ numMinutes?: number;
2572
+ }
2573
+ export interface IAttendeeDataToNotify {
2574
+ firstName: string;
2575
+ lastName: string;
2576
+ email: string;
2577
+ sessionName: string;
2578
+ parentSessionName?: string;
2579
+ organizationName: string;
2580
+ programName: string;
2581
+ }
2582
+ export interface IEventInSchedule {
2583
+ eventId: number;
2584
+ eventName: string;
2585
+ eventStartDate: string;
2586
+ eventEndDate: string;
2587
+ eventStartTime: string;
2588
+ eventEndTime: string;
2589
+ programId: number;
2590
+ programName: string;
2591
+ programType: ProgramTypesEnum;
2592
+ sessionId: number;
2593
+ sessionName: string;
2594
+ sports: number;
2595
+ spaces: {
2596
+ spaceId: number;
2597
+ spaceName: string;
2598
+ }[];
2599
+ status?: RegistrationValidationStatusEnum;
2600
+ }
2601
+ export interface ISlotInSchedule {
2602
+ facilityId: number;
2603
+ facilityName: string;
2604
+ spaces: ISpaceWithSlots[];
2605
+ }
2606
+ export interface ISpaceWithSlots {
2607
+ id: number;
2608
+ name: string;
2609
+ slots: ISlotReservationData[];
2610
+ }
2611
+ export interface ISlotReservationData {
2612
+ reservationId: number;
2613
+ reservationName: string;
2614
+ date: string;
2615
+ startTime: string;
2616
+ endTime: string;
2617
+ notes: string;
2618
+ spaceId: number;
2619
+ isRental: boolean;
2620
+ slotType: SlotTypeEnum;
2621
+ slotId: number;
2622
+ eventId: number;
2623
+ isPrivate: boolean;
2624
+ }
2625
+ export interface IRawEventInSchedule extends IEventInSchedule {
2626
+ parentSessionId: number;
2627
+ parentSessionName: string;
2628
+ eventTimezone: string;
2629
+ maxParticipants: number;
2630
+ maxMaleParticipants: number;
2631
+ maxFemaleParticipants: number;
2632
+ isPunchCard: boolean;
2633
+ }
2634
+ export interface IBasicSpaceAndSlotCreator {
2635
+ id: number;
2636
+ name: string;
2637
+ bookingCreatorId: number;
2638
+ }
2639
+ export interface IRawSlotInSchedule {
2640
+ startDate: string;
2641
+ endDate: string;
2642
+ startTime: string;
2643
+ endTime: string;
2644
+ reservationId: number;
2645
+ eventTitle: string;
2646
+ publicNotes: string;
2647
+ spaceId: number;
2648
+ creatorType: ResourceNameTypeEnum;
2649
+ slotType: SlotTypeEnum;
2650
+ slotId: number;
2651
+ eventId: number;
2652
+ isPrivate: boolean;
2653
+ }
2654
+ export interface IPurchasedResourcesRaw {
2655
+ purchasedId: number;
2656
+ purchasedProductUserId: number;
2657
+ purchasedResourceId: number;
2658
+ purchasedResourceType: ResourceNameTypeEnum;
2659
+ purchasedStatus: PurchasedResourceStatusEnum;
2660
+ pUserId: number;
2661
+ pUserPaymentStatus: PaymentStatusEnum;
2662
+ pUserProductId: number;
2663
+ pUserProductName: string;
2664
+ pUserProductPrice: number;
2665
+ pUserProductPriceCurrency: string;
2666
+ pUserProductQuantity: number;
2667
+ pUserProductQuantityLeft: number;
2668
+ pUserUserId: number;
2669
+ }
2670
+ export interface IUsersPasses {
2671
+ userId: number;
2672
+ userFirstName: string;
2673
+ userLastName: string;
2674
+ organizationId: number;
2675
+ programId: number;
2676
+ programName: string;
2677
+ sessionId: number;
2678
+ sessionName: string;
2679
+ productId: number;
2680
+ productName: string;
2681
+ productUserId: number;
2682
+ purchaseDate: Date;
2683
+ passesLeft: number;
2684
+ }
2685
+ export interface ISessionsLandingPage {
2686
+ sessionId: number;
2687
+ name: string;
2688
+ startDate: Date;
2689
+ endDate: Date;
2690
+ registrationStartDate: Date;
2691
+ registrationEndDate: Date;
2692
+ sport: SportsEnum;
2693
+ minAge: string;
2694
+ maxAge: string;
2695
+ maxParticipants?: number;
2696
+ gender: GenderEnum;
2697
+ activityTimes: ActivityTimes[];
2698
+ earlyRegistrationStartDate?: Date;
2699
+ earlyRegistrationEndDate?: Date;
2700
+ lateRegistrationStartDate?: Date;
2701
+ lateRegistrationEndDate?: Date;
2702
+ attendeeCount?: number;
2703
+ segmentsOrEvents: 'segment' | 'event';
2704
+ }
2705
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2706
+ hasRequiredMembership: boolean;
2707
+ hasEntitledPricing: boolean;
2708
+ lowestPrice?: number;
2709
+ products?: ISessionLandingPageProduct[];
2710
+ }
2711
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2712
+ hasRequiredMembership: boolean;
2713
+ hasEntitledPricing: boolean;
2714
+ products?: ISessionLandingPageProduct[];
2715
+ segments?: Event[] | ProgramSeason[];
2716
+ programName: string;
2717
+ programId: number;
2718
+ levelOfPlay: LevelOfPlayEnum[];
2719
+ registrationConstraints: IResourceRegistrationData[];
2720
+ }
2721
+ export interface ISlimAddons {
2722
+ addons?: {
2723
+ id: number;
2724
+ timePeriod: AddonTimePeriodEnum;
2725
+ name: string;
2726
+ productType?: ProductTypesEnum;
2727
+ productSubType?: string;
2728
+ }[];
2729
+ }
2730
+ export interface ISessionLandingPageProduct extends ISlimAddons {
2731
+ id: number;
2732
+ name: string;
2733
+ startDate?: Date;
2734
+ endDate?: Date;
2735
+ downpayment?: number;
2736
+ description?: string;
2737
+ prices: Price[];
2738
+ productSubType?: ProductSubTypesEnum;
2739
+ punchCard: boolean;
2740
+ isAddon: boolean;
2741
+ defaultPriceId?: number;
2742
+ }
2743
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2744
+ destinationId?: string;
2745
+ stripeCustomerId?: string;
2746
+ fee?: number;
2747
+ }
2748
+ export interface IReservationCreatorData {
2749
+ type: ResourceNameTypeEnum;
2750
+ id: number;
2751
+ organizationId: number;
2752
+ startDate: string;
2753
+ endDate: string;
2754
+ sportId: number;
2755
+ }
2756
+ export declare enum EntitlementTermsTypesEnum {
2757
+ QUESTION = "question",
2758
+ CITY = "city",
2759
+ MEMBERSHIP = "membership"
2760
+ }
2761
+ export declare enum ResourceNameTypeEnum {
2762
+ EVENT = "event",
2763
+ VENUE = "venue",
2764
+ TEAM = "team",
2765
+ LEAGUE = "league",
2766
+ USER = "user",
2767
+ ORGANIZATION = "organization",
2768
+ APP = "app",
2769
+ FEED = "feed",
2770
+ MATCH = "match",
2771
+ ROUND = "round",
2772
+ PORTAL = "portal",
2773
+ SEASON = "season",
2774
+ TOURNAMENT = "tournament",
2775
+ MEMBERSHIP = "membership",
2776
+ DIVISION = "division",
2777
+ GAMESLOT = "gameslot",
2778
+ SPACE = "space",
2779
+ RESERVATION = "reservation",
2780
+ INVOICE = "invoice",
2781
+ CUSTOMER = "customer",
2782
+ PACKAGE = "package",
2783
+ FACILITY = "facility",
2784
+ PROGRAM = "program",
2785
+ PROGRAM_SEASON = "program_season",
2786
+ PRODUCT = "product",
2787
+ GROUP = "group",
2788
+ VARIANT = "variant",
2789
+ SLOT = "slot",
2790
+ ADDON = "addon"
2791
+ }
2792
+ export declare enum DirectBookingTypesEnum {
2793
+ DIRECT_FOR_ALL = "all",
2794
+ DIRECT_FOR_NONE = "none",
2795
+ DIRECT_VETTED_ONLY = "vetted_only",
2796
+ NO_SETTING = "no_setting"
2797
+ }
2798
+ export declare enum GenderEnum {
2799
+ OTHER = 1,
2440
2800
  MALE = 2,
2441
2801
  FEMALE = 3
2442
2802
  }
@@ -2746,557 +3106,202 @@ export declare enum ResourceSubTypeEnum {
2746
3106
  RINK = "rink",
2747
3107
  STUDIO = "studio",
2748
3108
  POOL = "pool",
2749
- BATTING_CAGE = "batting cage",
2750
- SHELTER = "shelter",
2751
- GOLF_SIMULATOR = "golf simulator"
2752
- }
2753
- export declare enum ResourceTypeEnum {
2754
- SPACE = "space"
2755
- }
2756
- export declare enum ResourceAgesEnum {
2757
- ADULTS = "adults",
2758
- CHILDREN = "children"
2759
- }
2760
- export declare enum SpacePropertiesEnum {
2761
- OUTDOOR = "outdoor",
2762
- INDOOR = "indoor"
2763
- }
2764
- export declare enum SurfacesEnum {
2765
- GRASS = "grass",
2766
- TURF = "turf",
2767
- FIELD_TURF = "fieldTurf",
2768
- ASTRO_TURF = "astroTurf",
2769
- HARDWOOD = "hardwood",
2770
- ASPHALT = "asphalt",
2771
- SAND = "sand",
2772
- ICE = "ice",
2773
- SPORT_COURT = "sportCourt"
2774
- }
2775
- export declare enum RegistrationConstraintPeriodTypeEnum {
2776
- MINUTES = "minutes",
2777
- DAYS = "days"
2778
- }
2779
- export declare enum RegistrationWindowStatusEnum {
2780
- NOT_OPEN_YET = "not_opened_yet",
2781
- OPEN = "open",
2782
- CLOSED = "closed"
2783
- }
2784
- export declare enum RegistrationValidationStatusEnum {
2785
- FULL = "full",
2786
- ALREADY_REGISTERED = "registered",
2787
- AVAILABLE = "available",
2788
- NOT_OPEN_YET = "not opened",
2789
- ALREADY_CLOSED = "closed",
2790
- NO_PRODUCT_FOUND = "no-product-found"
2791
- }
2792
- export declare enum DiscountMethodsEnum {
2793
- PERCENT = "percent",
2794
- AMOUNT = "amount"
2795
- }
2796
- export declare enum UserAuthorizationsTypeEnum {
2797
- ORGANIZATION = "organization"
2798
- }
2799
- export declare enum OrganizationLocaleDateEnum {
2800
- USA = "USA"
2801
- }
2802
- export declare enum DateTimeFormatsEnum {
2803
- API_DATE = "YYYY/MM/DD",
2804
- API_TIME = "HH:mm:ss",
2805
- DB_DATE = "YYYY-MM-DD"
2806
- }
2807
- export declare enum SlotTypeEnum {
2808
- EXTERNAL = "external",
2809
- INTERNAL = "internal",
2810
- MAINTENANCE = "maintenance",
2811
- CUSTOM = "custom"
2812
- }
2813
- export declare enum PlatformsEnum {
2814
- CONSUMER = "consumer",
2815
- CONSUMER_CHECKOUT = "consumer_checkout",
2816
- BO = "backoffice",
2817
- MOBILE = "mobile",
2818
- CRON = "cron"
2819
- }
2820
- export declare enum ShiftStatusEnum {
2821
- OPEN = "open",
2822
- CLOSED = "closed",
2823
- MANAGMENT_CLOSED = "closed_by_manager",
2824
- RECONCILED = "reconciled"
2825
- }
2826
- export declare enum EventStatusEnum {
2827
- OPEN = 1,
2828
- DRAFT = 2,
2829
- FULL = 3,
2830
- CANCELLED = 4,
2831
- CLOSED = 5,
2832
- DELETED = 6
2833
- }
2834
- export declare enum ReservationTypeEnum {
2835
- RENTAL = "rental",
2836
- PROGRAM = "program",
2837
- MAINTENANCE = "maintenance",
2838
- CUSTOM = "custom",
2839
- INTERNAL = "internal"
2840
- }
2841
- export declare enum SlotDurationTypeEnum {
2842
- DATES = "dates",
2843
- ALL_DAY = "all day",
2844
- DURATION = "duration"
2845
- }
2846
- export declare enum DurationUnitTypesEnum {
2847
- MINUTES = "minutes",
2848
- HOURS = "hours"
2849
- }
2850
- export declare enum FrequencyEnum {
2851
- NONE = "none",
2852
- WEEKLY = "weekly",
2853
- DAILY = "daily",
2854
- MONTHLY = "monthly",
2855
- YEARLY = "yearly"
2856
- }
2857
- export declare enum MaintenanceTimingEnum {
2858
- BEFORE = 1,
2859
- AFTER = 2,
2860
- AT_THE_BEGINING = 3,
2861
- AT_THE_END = 4
2862
- }
2863
- export declare enum CreatorTypeEnum {
2864
- SPACE = "space",
2865
- PROGRAM_SEASON = "program_season",
2866
- SEASON = "season"
2867
- }
2868
- export declare enum UpdatePricesTypeEnum {
2869
- INDIVIDUAL = "indvidual",
2870
- CATEGORY = "category",
2871
- GLOBAL = "global"
2872
- }
2873
- export declare enum BondDayOfWeekEnum {
2874
- MONDAY = 2,
2875
- TUESDAY = 3,
2876
- WEDNESDAY = 4,
2877
- THURSDAY = 5,
2878
- FRIDAY = 6,
2879
- SATURDAY = 7,
2880
- SUNDAY = 8
2881
- }
2882
- export declare enum ReservationMigrationStatusEnum {
2883
- NEW = "new",
2884
- NO = "no",
2885
- YES = "yes"
2886
- }
2887
- export declare enum ProductPackageLevelEnum {
2888
- HOUR = "hour",
2889
- SLOT = "slot",
2890
- RESERVATION = "reservation"
2891
- }
2892
- export declare enum CancellationStatusEnum {
2893
- IMMEDIATE = "immediate",
2894
- AUTO_RENEWAL = "auto_renewal"
2895
- }
2896
- export declare enum SeasonScheduleStatusEnum {
2897
- DRAFT = 0,
2898
- PUBLISHED = 1
2899
- }
2900
- export declare enum FinancialStepEnum {
2901
- VOID = "void",
2902
- REFUND = "refund",
2903
- NONE = "none",
2904
- REFUND_AND_VOID = "refund-and-void",
2905
- APPEND = "append"
2906
- }
2907
- export declare enum StripeAccountTypesEnum {
2908
- STRIPE = "stripe",
2909
- STRIPE_CUSTOM = "stripe:account:custom",
2910
- STRIPE_CUSTOMER = "stripe:customer"
2911
- }
2912
- export declare enum LinkedAccountStatus {
2913
- PENDING = 1,
2914
- ACTIVE = 2,
2915
- PRE_PENDING = 3
2916
- }
2917
- export declare enum AddonParentTypeEnum {
2918
- RESERVATION = "reservation",
2919
- SLOT = "slot"
2920
- }
2921
- export declare enum EEmailStatus {
2922
- SENT = "sent",
2923
- OPENED = "opened",
2924
- PAID = "paid",
2925
- CANCELED = "canceled"
2926
- }
2927
- export declare enum PaymentSettingStatusEnum {
2928
- ENABLED = 1,
2929
- DISABLED_REDIRECT = 2,
2930
- DISABLED_INFO_ONLY = 3,
2931
- DISABLED_EMAIL = 4
2932
- }
2933
- export declare enum NotifyMethodEnum {
2934
- EMAIL = "Email"
2935
- }
2936
- export declare enum EStartDateFilter {
2937
- LessThan = "lt",
2938
- GreaterOrEqualTo = "gte"
2939
- }
2940
- export interface IEntitlementTerms {
2941
- type: EntitlementTermsTypesEnum;
2942
- id?: number;
2943
- value?: string;
2944
- minValue?: string;
2945
- maxValue?: string;
2946
- }
2947
- export interface IQuestionAnswerObject {
2948
- questionId: number;
2949
- value: string;
2950
- }
2951
- export interface ILowestPriceForItem {
2952
- itemId: number;
2953
- itemType: ResourceNameTypeEnum;
2954
- groupId: number;
2955
- groupName?: string;
2956
- price: number;
2957
- overridesPrice: boolean;
2958
- }
2959
- export interface IResourcesAvailability {
2960
- resourceType: ResourceNameTypeEnum;
2961
- quantity: number;
2962
- resourcesIds: number[];
2963
- isPunchCard: boolean;
2964
- resources?: any[];
2965
- }
2966
- export interface IPackageResponse {
2967
- parentProduct: Product;
2968
- children: IChildProduct[];
2969
- }
2970
- export interface IChildProduct {
2971
- product: Product;
2972
- relationType: PackageProductsRelationTypeEnum;
2973
- timePeriod?: AddonTimePeriodEnum;
2974
- }
2975
- export interface ISeasonAttendeeInfo {
2976
- applicationAnswers: Answer[];
2977
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2978
- invoices: Invoice[];
2979
- payments: Payment[];
2980
- products: Product[];
2981
- redeemNext: ProductsUsers;
2982
- }
2983
- export interface ISeasonAttendeeListInfo {
2984
- userId: number;
2985
- userFirstName: string;
2986
- userLastName: string;
2987
- userGender: number;
2988
- userBirthDate: Date;
2989
- userProfilePicUrl: string;
2990
- customerId: number;
2991
- customerEmail: string;
2992
- paymentStatus: string;
2993
- productName: string;
2994
- punchCard: boolean;
3109
+ BATTING_CAGE = "batting cage",
3110
+ SHELTER = "shelter",
3111
+ GOLF_SIMULATOR = "golf simulator"
2995
3112
  }
2996
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2997
- segmentType: ResourceNameTypeEnum;
2998
- participantRegisteredDate?: string;
3113
+ export declare enum ResourceTypeEnum {
3114
+ SPACE = "space"
2999
3115
  }
3000
- export declare class EventAsSeasonSegment extends Event {
3001
- segmentType: ResourceNameTypeEnum;
3002
- participantRegisteredDate?: string;
3116
+ export declare enum ResourceAgesEnum {
3117
+ ADULTS = "adults",
3118
+ CHILDREN = "children"
3003
3119
  }
3004
- export interface ITokenResonse {
3005
- token: string;
3120
+ export declare enum SpacePropertiesEnum {
3121
+ OUTDOOR = "outdoor",
3122
+ INDOOR = "indoor"
3006
3123
  }
3007
- export interface IStripeBondInvoices {
3008
- paidStripePaymentIntent: Stripe.PaymentIntent;
3009
- bondPaidPayment: Payment;
3010
- invoice?: Invoice;
3011
- customer?: Customer;
3124
+ export declare enum SurfacesEnum {
3125
+ GRASS = "grass",
3126
+ TURF = "turf",
3127
+ FIELD_TURF = "fieldTurf",
3128
+ ASTRO_TURF = "astroTurf",
3129
+ HARDWOOD = "hardwood",
3130
+ ASPHALT = "asphalt",
3131
+ SAND = "sand",
3132
+ ICE = "ice",
3133
+ SPORT_COURT = "sportCourt"
3012
3134
  }
3013
- export interface IPartialPaymentData {
3014
- purchasingUserId: number;
3015
- paymentData: PurchasePaymentDto;
3016
- amountToPay: number;
3135
+ export declare enum RegistrationConstraintPeriodTypeEnum {
3136
+ MINUTES = "minutes",
3137
+ DAYS = "days"
3017
3138
  }
3018
- export interface IPayment {
3019
- id: number;
3020
- total: number;
3021
- paymentMethod: PaymentMethodTypeEnum;
3022
- status: PaymentStatusEnum;
3023
- createdAt: Date;
3024
- invoices: number[];
3139
+ export declare enum RegistrationWindowStatusEnum {
3140
+ NOT_OPEN_YET = "not_opened_yet",
3141
+ OPEN = "open",
3142
+ CLOSED = "closed"
3025
3143
  }
3026
- export interface IPaginationData<T> {
3027
- meta: {
3028
- totalItems: number;
3029
- itemsPerPage: number;
3030
- totalPages: number;
3031
- currentPage: number;
3032
- };
3033
- data: T[];
3144
+ export declare enum RegistrationValidationStatusEnum {
3145
+ FULL = "full",
3146
+ ALREADY_REGISTERED = "registered",
3147
+ AVAILABLE = "available",
3148
+ NOT_OPEN_YET = "not opened",
3149
+ ALREADY_CLOSED = "closed",
3150
+ NO_PRODUCT_FOUND = "no-product-found"
3034
3151
  }
3035
- export interface IPricesOfProductsResults {
3036
- productId: number;
3037
- userId: number;
3038
- price: number;
3039
- groupId?: number;
3040
- groupName?: string;
3041
- originalPrice?: number;
3042
- priceWithoutTax: number;
3043
- tax: number;
3044
- isTaxInclusive: boolean;
3152
+ export declare enum DiscountMethodsEnum {
3153
+ PERCENT = "percent",
3154
+ AMOUNT = "amount"
3045
3155
  }
3046
- export interface IPaymentMethodToFundLeft {
3047
- paymentType: PaymentMethodTypeEnum;
3048
- paymentMethodId: string;
3049
- fundLeft: number;
3050
- ccLast4?: string;
3051
- ccBrand?: string;
3156
+ export declare enum UserAuthorizationsTypeEnum {
3157
+ ORGANIZATION = "organization"
3052
3158
  }
3053
- export interface IVariantsAndTitle {
3054
- title: VariantTitle;
3055
- variants: Variant[];
3159
+ export declare enum OrganizationLocaleDateEnum {
3160
+ USA = "USA"
3056
3161
  }
3057
- export interface IProgramSeasonActivityTimes {
3058
- dayOfWeek: number;
3059
- open: string;
3060
- close: string;
3162
+ export declare enum DateTimeFormatsEnum {
3163
+ API_DATE = "YYYY/MM/DD",
3164
+ API_TIME = "HH:mm:ss",
3165
+ DB_DATE = "YYYY-MM-DD"
3061
3166
  }
3062
- export interface IProgramSeasonActivityTimesAsDates {
3063
- date: string;
3064
- startTime: string;
3065
- endTime: string;
3167
+ export declare enum SlotTypeEnum {
3168
+ EXTERNAL = "external",
3169
+ INTERNAL = "internal",
3170
+ MAINTENANCE = "maintenance",
3171
+ CUSTOM = "custom"
3066
3172
  }
3067
- export interface IBlockedDates {
3068
- name: string;
3069
- startDate: Date;
3070
- endDate: Date;
3173
+ export declare enum PlatformsEnum {
3174
+ CONSUMER = "consumer",
3175
+ CONSUMER_CHECKOUT = "consumer_checkout",
3176
+ BO = "backoffice",
3177
+ MOBILE = "mobile",
3178
+ CRON = "cron"
3071
3179
  }
3072
- export interface ISingleMemberForRenewal {
3073
- member_id: number;
3074
- member_membershipId: number;
3075
- member_userId: number;
3076
- member_nextPaymentMethodId?: string;
3077
- member_nextPaymentType?: PaymentMethodTypeEnum;
3078
- member_answerTitleIds?: number[];
3079
- member_organizationId: number;
3080
- product_productPrice: number;
3081
- product_productId: number;
3082
- invoice_payingUserId: number;
3083
- invoice_paymentMethodId: string;
3084
- invoice_paymentType: PaymentMethodTypeEnum;
3085
- endDate: Date;
3086
- membership_name: string;
3087
- user_firstName: string;
3088
- user_lastName: string;
3089
- user_email: string;
3180
+ export declare enum ShiftStatusEnum {
3181
+ OPEN = "open",
3182
+ CLOSED = "closed",
3183
+ MANAGMENT_CLOSED = "closed_by_manager",
3184
+ RECONCILED = "reconciled"
3090
3185
  }
3091
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3092
- package_parentProductId: number;
3093
- product2_productPrice: number;
3094
- familyid: number;
3095
- invoice_id: number;
3186
+ export declare enum EventStatusEnum {
3187
+ OPEN = 1,
3188
+ DRAFT = 2,
3189
+ FULL = 3,
3190
+ CANCELLED = 4,
3191
+ CLOSED = 5,
3192
+ DELETED = 6
3096
3193
  }
3097
- export interface IResourceRegistrationData {
3098
- id: number;
3099
- resourceType: ResourceNameTypeEnum;
3100
- openNumDays?: number;
3101
- openNumMinutes?: number;
3102
- openTime?: string;
3103
- closeNumDays?: number;
3104
- closeNumMinutes?: number;
3105
- closeTime?: string;
3106
- registrationWindowStatus?: RegistrationWindowStatusEnum;
3194
+ export declare enum ReservationTypeEnum {
3195
+ RENTAL = "rental",
3196
+ PROGRAM = "program",
3197
+ MAINTENANCE = "maintenance",
3198
+ CUSTOM = "custom",
3199
+ INTERNAL = "internal"
3107
3200
  }
3108
- export interface IResourceDataForConstraintsCalc {
3109
- id: number;
3110
- startDate: string;
3111
- startTime: string;
3201
+ export declare enum SlotDurationTypeEnum {
3202
+ DATES = "dates",
3203
+ ALL_DAY = "all day",
3204
+ DURATION = "duration"
3112
3205
  }
3113
- export interface IRegistrationConstraintsSetting {
3114
- numDays?: number;
3115
- numMinutes?: number;
3206
+ export declare enum DurationUnitTypesEnum {
3207
+ MINUTES = "minutes",
3208
+ HOURS = "hours"
3116
3209
  }
3117
- export interface IAttendeeDataToNotify {
3118
- firstName: string;
3119
- lastName: string;
3120
- email: string;
3121
- sessionName: string;
3122
- parentSessionName?: string;
3123
- organizationName: string;
3124
- programName: string;
3210
+ export declare enum FrequencyEnum {
3211
+ NONE = "none",
3212
+ WEEKLY = "weekly",
3213
+ DAILY = "daily",
3214
+ MONTHLY = "monthly",
3215
+ YEARLY = "yearly"
3125
3216
  }
3126
- export interface IEventInSchedule {
3127
- eventId: number;
3128
- eventName: string;
3129
- eventStartDate: string;
3130
- eventEndDate: string;
3131
- eventStartTime: string;
3132
- eventEndTime: string;
3133
- programId: number;
3134
- programName: string;
3135
- programType: ProgramTypesEnum;
3136
- sessionId: number;
3137
- sessionName: string;
3138
- sports: number;
3139
- spaces: {
3140
- spaceId: number;
3141
- spaceName: string;
3142
- }[];
3143
- status?: RegistrationValidationStatusEnum;
3217
+ export declare enum MaintenanceTimingEnum {
3218
+ BEFORE = 1,
3219
+ AFTER = 2,
3220
+ AT_THE_BEGINING = 3,
3221
+ AT_THE_END = 4
3144
3222
  }
3145
- export interface ISlotInSchedule {
3146
- facilityId: number;
3147
- facilityName: string;
3148
- spaces: ISpaceWithSlots[];
3223
+ export declare enum CreatorTypeEnum {
3224
+ SPACE = "space",
3225
+ PROGRAM_SEASON = "program_season",
3226
+ SEASON = "season"
3149
3227
  }
3150
- export interface ISpaceWithSlots {
3151
- id: number;
3152
- name: string;
3153
- slots: ISlotReservationData[];
3228
+ export declare enum UpdatePricesTypeEnum {
3229
+ INDIVIDUAL = "indvidual",
3230
+ CATEGORY = "category",
3231
+ GLOBAL = "global"
3154
3232
  }
3155
- export interface ISlotReservationData {
3156
- reservationId: number;
3157
- reservationName: string;
3158
- date: string;
3159
- startTime: string;
3160
- endTime: string;
3161
- notes: string;
3162
- spaceId: number;
3163
- isRental: boolean;
3164
- slotType: SlotTypeEnum;
3165
- slotId: number;
3166
- eventId: number;
3167
- isPrivate: boolean;
3233
+ export declare enum BondDayOfWeekEnum {
3234
+ MONDAY = 2,
3235
+ TUESDAY = 3,
3236
+ WEDNESDAY = 4,
3237
+ THURSDAY = 5,
3238
+ FRIDAY = 6,
3239
+ SATURDAY = 7,
3240
+ SUNDAY = 8
3168
3241
  }
3169
- export interface IRawEventInSchedule extends IEventInSchedule {
3170
- parentSessionId: number;
3171
- parentSessionName: string;
3172
- eventTimezone: string;
3173
- maxParticipants: number;
3174
- maxMaleParticipants: number;
3175
- maxFemaleParticipants: number;
3176
- isPunchCard: boolean;
3242
+ export declare enum ReservationMigrationStatusEnum {
3243
+ NEW = "new",
3244
+ NO = "no",
3245
+ YES = "yes"
3177
3246
  }
3178
- export interface IBasicSpaceAndSlotCreator {
3179
- id: number;
3180
- name: string;
3181
- bookingCreatorId: number;
3247
+ export declare enum ProductPackageLevelEnum {
3248
+ HOUR = "hour",
3249
+ SLOT = "slot",
3250
+ RESERVATION = "reservation"
3182
3251
  }
3183
- export interface IRawSlotInSchedule {
3184
- startDate: string;
3185
- endDate: string;
3186
- startTime: string;
3187
- endTime: string;
3188
- reservationId: number;
3189
- eventTitle: string;
3190
- publicNotes: string;
3191
- spaceId: number;
3192
- creatorType: ResourceNameTypeEnum;
3193
- slotType: SlotTypeEnum;
3194
- slotId: number;
3195
- eventId: number;
3196
- isPrivate: boolean;
3252
+ export declare enum CancellationStatusEnum {
3253
+ IMMEDIATE = "immediate",
3254
+ AUTO_RENEWAL = "auto_renewal"
3197
3255
  }
3198
- export interface IPurchasedResourcesRaw {
3199
- purchasedId: number;
3200
- purchasedProductUserId: number;
3201
- purchasedResourceId: number;
3202
- purchasedResourceType: ResourceNameTypeEnum;
3203
- purchasedStatus: PurchasedResourceStatusEnum;
3204
- pUserId: number;
3205
- pUserPaymentStatus: PaymentStatusEnum;
3206
- pUserProductId: number;
3207
- pUserProductName: string;
3208
- pUserProductPrice: number;
3209
- pUserProductPriceCurrency: string;
3210
- pUserProductQuantity: number;
3211
- pUserProductQuantityLeft: number;
3212
- pUserUserId: number;
3256
+ export declare enum SeasonScheduleStatusEnum {
3257
+ DRAFT = 0,
3258
+ PUBLISHED = 1
3213
3259
  }
3214
- export interface IUsersPasses {
3215
- userId: number;
3216
- userFirstName: string;
3217
- userLastName: string;
3218
- organizationId: number;
3219
- programId: number;
3220
- programName: string;
3221
- sessionId: number;
3222
- sessionName: string;
3223
- productId: number;
3224
- productName: string;
3225
- productUserId: number;
3226
- purchaseDate: Date;
3227
- passesLeft: number;
3260
+ export declare enum FinancialStepEnum {
3261
+ VOID = "void",
3262
+ REFUND = "refund",
3263
+ NONE = "none",
3264
+ REFUND_AND_VOID = "refund-and-void",
3265
+ APPEND = "append"
3228
3266
  }
3229
- export interface ISessionsLandingPage {
3230
- sessionId: number;
3231
- name: string;
3232
- startDate: Date;
3233
- endDate: Date;
3234
- registrationStartDate: Date;
3235
- registrationEndDate: Date;
3236
- sport: SportsEnum;
3237
- minAge: string;
3238
- maxAge: string;
3239
- maxParticipants?: number;
3240
- gender: GenderEnum;
3241
- activityTimes: ActivityTimes[];
3242
- earlyRegistrationStartDate?: Date;
3243
- earlyRegistrationEndDate?: Date;
3244
- lateRegistrationStartDate?: Date;
3245
- lateRegistrationEndDate?: Date;
3246
- attendeeCount?: number;
3247
- segmentsOrEvents: 'segment' | 'event';
3267
+ export declare enum StripeAccountTypesEnum {
3268
+ STRIPE = "stripe",
3269
+ STRIPE_CUSTOM = "stripe:account:custom",
3270
+ STRIPE_CUSTOMER = "stripe:customer"
3248
3271
  }
3249
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3250
- hasRequiredMembership: boolean;
3251
- hasEntitledPricing: boolean;
3252
- lowestPrice?: number;
3253
- products?: ISessionLandingPageProduct[];
3272
+ export declare enum LinkedAccountStatus {
3273
+ PENDING = 1,
3274
+ ACTIVE = 2,
3275
+ PRE_PENDING = 3
3254
3276
  }
3255
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3256
- hasRequiredMembership: boolean;
3257
- hasEntitledPricing: boolean;
3258
- products?: ISessionLandingPageProduct[];
3259
- segments?: Event[] | ProgramSeason[];
3260
- programName: string;
3261
- programId: number;
3262
- levelOfPlay: LevelOfPlayEnum[];
3263
- registrationConstraints: IResourceRegistrationData[];
3277
+ export declare enum AddonParentTypeEnum {
3278
+ RESERVATION = "reservation",
3279
+ SLOT = "slot"
3264
3280
  }
3265
- export interface ISlimAddons {
3266
- addons?: {
3267
- id: number;
3268
- timePeriod: AddonTimePeriodEnum;
3269
- name: string;
3270
- productType?: ProductTypesEnum;
3271
- productSubType?: string;
3272
- }[];
3281
+ export declare enum EEmailStatus {
3282
+ SENT = "sent",
3283
+ OPENED = "opened",
3284
+ PAID = "paid",
3285
+ CANCELED = "canceled"
3273
3286
  }
3274
- export interface ISessionLandingPageProduct extends ISlimAddons {
3275
- id: number;
3276
- name: string;
3277
- startDate?: Date;
3278
- endDate?: Date;
3279
- downpayment?: number;
3280
- description?: string;
3281
- prices: Price[];
3282
- productSubType?: ProductSubTypesEnum;
3283
- punchCard: boolean;
3284
- isAddon: boolean;
3285
- defaultPriceId?: number;
3287
+ export declare enum PaymentSettingStatusEnum {
3288
+ ENABLED = 1,
3289
+ DISABLED_REDIRECT = 2,
3290
+ DISABLED_INFO_ONLY = 3,
3291
+ DISABLED_EMAIL = 4
3286
3292
  }
3287
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3288
- destinationId?: string;
3289
- stripeCustomerId?: string;
3290
- fee?: number;
3293
+ export declare enum NotifyMethodEnum {
3294
+ EMAIL = "Email"
3291
3295
  }
3292
- export interface IReservationCreatorData {
3293
- type: ResourceNameTypeEnum;
3294
- id: number;
3295
- organizationId: number;
3296
- startDate: string;
3297
- endDate: string;
3298
- sportId: number;
3296
+ export declare enum EStartDateFilter {
3297
+ LessThan = "lt",
3298
+ GreaterOrEqualTo = "gte"
3299
3299
  }
3300
+ export declare class ColumnNumericTransformer {
3301
+ to(data: number): number;
3302
+ from(data: string): number;
3303
+ }
3304
+ export declare function convertToNumber(data: string): number;
3300
3305
  export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3301
3306
  name?: string;
3302
3307
  genderStr?: string;
@@ -3346,6 +3351,15 @@ export declare class ImportedPaymentDto {
3346
3351
  date: string;
3347
3352
  time: string;
3348
3353
  }
3354
+ export declare class ProductIdsDto {
3355
+ productIds?: number[];
3356
+ }
3357
+ export declare class ProductImportDto {
3358
+ product: Product;
3359
+ prices: Price[];
3360
+ resourceIds: number[];
3361
+ oldId: number;
3362
+ }
3349
3363
  export declare class PunchPassDto {
3350
3364
  CustomerID: string;
3351
3365
  QuantityLeft: number;
@@ -3435,15 +3449,15 @@ export declare class SeasonRounds extends BondBaseEntity {
3435
3449
  divisionId?: number;
3436
3450
  name: string;
3437
3451
  }
3452
+ export declare class Lock extends BondBaseEntity {
3453
+ name: string;
3454
+ locked?: Date;
3455
+ }
3438
3456
  export declare class TeamEvents extends BondBaseEntity {
3439
3457
  teamId: number | null;
3440
3458
  eventId: number | null;
3441
3459
  status: number | null;
3442
3460
  }
3443
- export declare class Lock extends BondBaseEntity {
3444
- name: string;
3445
- locked?: Date;
3446
- }
3447
3461
  export interface ValidatedMonthAndDay {
3448
3462
  valid: boolean;
3449
3463
  month?: number;
@@ -3702,15 +3716,6 @@ export declare class SendRequestDto {
3702
3716
  sendToEmail: string;
3703
3717
  memo?: string;
3704
3718
  }
3705
- export declare class ProductIdsDto {
3706
- productIds?: number[];
3707
- }
3708
- export declare class ProductImportDto {
3709
- product: Product;
3710
- prices: Price[];
3711
- resourceIds: number[];
3712
- oldId: number;
3713
- }
3714
3719
  export declare class RefundDto {
3715
3720
  invoiceId: number;
3716
3721
  lineItems: RefundLineItemAmountDto[];
@@ -4564,12 +4569,32 @@ export interface AddonMetadata {
4564
4569
  totalPrice: number;
4565
4570
  product?: Product;
4566
4571
  }
4572
+ export declare class ChangeRolePermissionsDto {
4573
+ permissionIds: number[];
4574
+ }
4575
+ export declare class CreateRoleDto {
4576
+ name: string;
4577
+ }
4578
+ export declare class Permission extends BondBaseEntity {
4579
+ name: string;
4580
+ deletedAt?: Date;
4581
+ }
4582
+ export declare class Role extends OrganizationConnectionBaseEntity {
4583
+ name: string;
4584
+ deletedAt?: Date;
4585
+ permissions: Permission[];
4586
+ usersRoles: UserRole[];
4587
+ }
4588
+ export declare class UserRole extends OrganizationConnectionBaseEntity {
4589
+ deletedAt?: Date;
4590
+ userId: number;
4591
+ roleId: number;
4592
+ role: Role;
4593
+ user: User;
4594
+ }
4567
4595
  export declare class CloseShiftDto {
4568
4596
  closingCashAmount: number;
4569
4597
  }
4570
- export declare class FindShiftsByIdsDto {
4571
- shiftIds: number[];
4572
- }
4573
4598
  export declare class FindShiftsFiltersDto {
4574
4599
  statuses?: string;
4575
4600
  stationIds?: string;
@@ -4601,6 +4626,9 @@ export declare class OpenShiftDto {
4601
4626
  openingCashAmount: number;
4602
4627
  stationId: number;
4603
4628
  }
4629
+ export declare class FindShiftsByIdsDto {
4630
+ shiftIds: number[];
4631
+ }
4604
4632
  export declare class Shift extends OrganizationConnectionBaseEntity {
4605
4633
  stationId: number;
4606
4634
  station?: Station;
@@ -4630,31 +4658,3 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4630
4658
  closingManager?: User;
4631
4659
  reconcilingUser?: User;
4632
4660
  }
4633
- export declare class ChangeRolePermissionsDto {
4634
- permissionIds: number[];
4635
- }
4636
- export declare class CreateRoleDto {
4637
- name: string;
4638
- }
4639
- export declare class Permission extends BondBaseEntity {
4640
- name: string;
4641
- deletedAt?: Date;
4642
- }
4643
- export declare class Role extends OrganizationConnectionBaseEntity {
4644
- name: string;
4645
- deletedAt?: Date;
4646
- permissions: Permission[];
4647
- usersRoles: UserRole[];
4648
- }
4649
- export declare class UserRole extends OrganizationConnectionBaseEntity {
4650
- deletedAt?: Date;
4651
- userId: number;
4652
- roleId: number;
4653
- role: Role;
4654
- user: User;
4655
- }
4656
- export declare class ColumnNumericTransformer {
4657
- to(data: number): number;
4658
- from(data: string): number;
4659
- }
4660
- export declare function convertToNumber(data: string): number;