@bondsports/types 0.0.168 → 0.0.170

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
@@ -27,13 +27,6 @@ export declare class FindBookingTypeSettingDto {
27
27
  bookingDate: string;
28
28
  bookingTime: string;
29
29
  }
30
- export declare enum EConfigurationKeys {
31
- MAX_ALLOWED_PM_FAILURE = "max_allowed_pm_failure"
32
- }
33
- export declare enum EFailedPaymentReasons {
34
- CARD_BLOCKED = "card_blocked_by_bond",
35
- UNKNOWN = "unknown"
36
- }
37
30
  export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
38
31
  membershipId: number;
39
32
  }
@@ -195,6 +188,13 @@ export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
195
188
  isWaiverSigned?: string;
196
189
  statuses?: string;
197
190
  }
191
+ export declare enum EConfigurationKeys {
192
+ MAX_ALLOWED_PM_FAILURE = "max_allowed_pm_failure"
193
+ }
194
+ export declare enum EFailedPaymentReasons {
195
+ CARD_BLOCKED = "card_blocked_by_bond",
196
+ UNKNOWN = "unknown"
197
+ }
198
198
  export declare class AddressDto {
199
199
  city: string;
200
200
  state: string;
@@ -892,50 +892,6 @@ export declare class MoveParticipantDto {
892
892
  resourceId: number;
893
893
  invoiceId: number;
894
894
  }
895
- export declare class FindProgramsByOrganizationIdDto {
896
- organizationId: number;
897
- programType?: ProgramTypesEnum;
898
- }
899
- export declare class FindProgramByIdDto {
900
- programId: number;
901
- }
902
- export declare class FindProgramByOrgIdAndIdDto {
903
- programId: number;
904
- organizationId: number;
905
- }
906
- export declare class BaseProgramDto {
907
- type: ProgramTypesEnum;
908
- name: string;
909
- sport: SportsEnum;
910
- minAge: string;
911
- maxAge: string;
912
- gender: GenderEnum;
913
- level?: LevelOfPlayEnum[];
914
- description?: string;
915
- GL?: string;
916
- status: PublishingStatusEnum;
917
- organizationId: number;
918
- userCreatorId: number;
919
- highlights: ProgramHighlights[];
920
- longDescription?: string;
921
- requiredProductIds: number[];
922
- }
923
- export declare class CreateProgramDto extends BaseProgramDto {
924
- }
925
- export declare class UpdateProgramDto extends BaseProgramDto {
926
- programId: number;
927
- mainMediaId: number;
928
- }
929
- export declare class UpdateProgramStatusDto {
930
- programId: number;
931
- status: PublishingStatusEnum;
932
- }
933
- export declare class ProgramHighlightDto {
934
- data: string;
935
- ordinal: number;
936
- type: ProgramHighlightTypeEnum;
937
- title: string;
938
- }
939
895
  export declare class PurchasePaymentDto {
940
896
  token: string;
941
897
  type: PaymentMethodTypeEnum;
@@ -1017,6 +973,54 @@ export declare class CreateResourceGroupDto {
1017
973
  }
1018
974
  export declare class UpdateResourceGroupDto extends CreateResourceGroupDto {
1019
975
  }
976
+ export declare class FindProgramsByOrganizationIdDto {
977
+ organizationId: number;
978
+ programType?: ProgramTypesEnum;
979
+ }
980
+ export declare class FindProgramByIdDto {
981
+ programId: number;
982
+ }
983
+ export declare class FindProgramByOrgIdAndIdDto {
984
+ programId: number;
985
+ organizationId: number;
986
+ }
987
+ export declare class BaseProgramDto {
988
+ type: ProgramTypesEnum;
989
+ name: string;
990
+ sport: SportsEnum;
991
+ minAge: string;
992
+ maxAge: string;
993
+ gender: GenderEnum;
994
+ level?: LevelOfPlayEnum[];
995
+ description?: string;
996
+ GL?: string;
997
+ status: PublishingStatusEnum;
998
+ organizationId: number;
999
+ userCreatorId: number;
1000
+ highlights: ProgramHighlights[];
1001
+ longDescription?: string;
1002
+ requiredProductIds: number[];
1003
+ }
1004
+ export declare class CreateProgramDto extends BaseProgramDto {
1005
+ }
1006
+ export declare class UpdateProgramDto extends BaseProgramDto {
1007
+ programId: number;
1008
+ mainMediaId: number;
1009
+ }
1010
+ export declare class UpdateProgramStatusDto {
1011
+ programId: number;
1012
+ status: PublishingStatusEnum;
1013
+ }
1014
+ export declare class ProgramHighlightDto {
1015
+ data: string;
1016
+ ordinal: number;
1017
+ type: ProgramHighlightTypeEnum;
1018
+ title: string;
1019
+ }
1020
+ export declare class ResourceDto {
1021
+ type: ResourceNameTypeEnum;
1022
+ id: number;
1023
+ }
1020
1024
  export declare class SpaceByIdDto {
1021
1025
  spaceId: number;
1022
1026
  }
@@ -1073,10 +1077,6 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
1073
1077
  types?: string;
1074
1078
  resourcesIds?: string;
1075
1079
  }
1076
- export declare class ResourceDto {
1077
- type: ResourceNameTypeEnum;
1078
- id: number;
1079
- }
1080
1080
  export declare class StripeCustomerIdDto {
1081
1081
  userId: number;
1082
1082
  }
@@ -1096,19 +1096,6 @@ export declare class FindByFamilyAccountIdDto {
1096
1096
  export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1097
1097
  organizationId: number;
1098
1098
  }
1099
- export declare class ActivityLogRecord extends BondBaseEntity {
1100
- entityType: ResourceNameTypeEnum;
1101
- entityId: number;
1102
- organizationId?: number;
1103
- userId?: number;
1104
- customerId?: number;
1105
- performingUserId: number;
1106
- description: string;
1107
- actionType: ActionTypesEnum;
1108
- sourcePlatform: ActionSourcePlatformEnum;
1109
- oldValue?: any;
1110
- newValue?: any;
1111
- }
1112
1099
  export declare class ActivityTimes extends BondBaseEntity {
1113
1100
  parentType: ResourceNameTypeEnum | ProductTypesEnum;
1114
1101
  parentId: number;
@@ -1122,6 +1109,30 @@ export declare class ActivityTimes extends BondBaseEntity {
1122
1109
  proudct: Product;
1123
1110
  event: Event;
1124
1111
  }
1112
+ export declare class Address extends BondBaseEntity {
1113
+ city?: string;
1114
+ street?: string;
1115
+ streetNum?: string;
1116
+ aptNum?: string;
1117
+ zip?: string;
1118
+ country?: string;
1119
+ state?: string;
1120
+ geo: any;
1121
+ deletedAt?: Date;
1122
+ }
1123
+ export declare class ActivityLogRecord extends BondBaseEntity {
1124
+ entityType: ResourceNameTypeEnum;
1125
+ entityId: number;
1126
+ organizationId?: number;
1127
+ userId?: number;
1128
+ customerId?: number;
1129
+ performingUserId: number;
1130
+ description: string;
1131
+ actionType: ActionTypesEnum;
1132
+ sourcePlatform: ActionSourcePlatformEnum;
1133
+ oldValue?: any;
1134
+ newValue?: any;
1135
+ }
1125
1136
  export declare class Answer extends OrganizationConnectionBaseEntity {
1126
1137
  questionId: number;
1127
1138
  question?: Questions;
@@ -1182,16 +1193,6 @@ export declare class BookedSessions extends BondBaseEntity {
1182
1193
  publicNotes?: string;
1183
1194
  slotType?: SlotTypeEnum;
1184
1195
  }
1185
- export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity {
1186
- parentId: number;
1187
- parentType: ResourceNameTypeEnum;
1188
- startDate: Date;
1189
- endDate: Date;
1190
- dayOfWeek: number;
1191
- startTimeInDay: string;
1192
- endTimeInDay: string;
1193
- directBookingFor: DirectBookingTypesEnum;
1194
- }
1195
1196
  export declare class Configuration extends BondBaseEntity {
1196
1197
  area: string;
1197
1198
  key: string;
@@ -1209,6 +1210,16 @@ export declare class Connection extends BondBaseEntity {
1209
1210
  userCreatorId: number | null;
1210
1211
  ownerId: number | null;
1211
1212
  }
1213
+ export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity {
1214
+ parentId: number;
1215
+ parentType: ResourceNameTypeEnum;
1216
+ startDate: Date;
1217
+ endDate: Date;
1218
+ dayOfWeek: number;
1219
+ startTimeInDay: string;
1220
+ endTimeInDay: string;
1221
+ directBookingFor: DirectBookingTypesEnum;
1222
+ }
1212
1223
  export declare class CreditNote extends OrganizationConnectionBaseEntity {
1213
1224
  creditAmount: number;
1214
1225
  paymentProcessorId: string;
@@ -1271,17 +1282,6 @@ export declare class Division extends BondBaseEntity {
1271
1282
  isDefault: boolean;
1272
1283
  groups: Group[];
1273
1284
  }
1274
- export declare class Address extends BondBaseEntity {
1275
- city?: string;
1276
- street?: string;
1277
- streetNum?: string;
1278
- aptNum?: string;
1279
- zip?: string;
1280
- country?: string;
1281
- state?: string;
1282
- geo: any;
1283
- deletedAt?: Date;
1284
- }
1285
1285
  export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1286
1286
  customerId: number;
1287
1287
  name: string | null;
@@ -1570,16 +1570,6 @@ 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
- }
1583
1573
  export declare class LineItems extends BondBaseEntity {
1584
1574
  constructor();
1585
1575
  defineIsReverted(): void;
@@ -1651,6 +1641,16 @@ export declare class LinkedAccounts extends BondBaseEntity {
1651
1641
  user: User;
1652
1642
  userId: number | null;
1653
1643
  }
1644
+ export declare class LineItemHistory extends BondBaseEntity {
1645
+ invoiceId: number;
1646
+ paymentId: number;
1647
+ lineItemId: number;
1648
+ paidAmount: number;
1649
+ unitPaidAmount: number;
1650
+ currency: CurrencyEnum;
1651
+ payment: Payment;
1652
+ lineItem: LineItems;
1653
+ }
1654
1654
  export declare class Media extends BondBaseEntity {
1655
1655
  url: string;
1656
1656
  name: string | null;
@@ -1922,17 +1922,6 @@ export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity
1922
1922
  schedule: PaymentPlanSchedule[];
1923
1923
  product?: Product;
1924
1924
  }
1925
- export declare class ProductResource extends OrganizationConnectionBaseEntity {
1926
- productId: number;
1927
- resourceId: number;
1928
- resourceType: ResourceNameTypeEnum;
1929
- deletedAt?: Date;
1930
- programSeason: ProgramSeason;
1931
- event: Event;
1932
- product: Product;
1933
- productPackages: ProductPackage[];
1934
- resourceName?: string;
1935
- }
1936
1925
  export declare class ProductToVariantTitle extends OrganizationConnectionBaseEntity {
1937
1926
  productId: number;
1938
1927
  variantTitleId: number;
@@ -1948,6 +1937,17 @@ export declare class ProductsReservedForCustomers extends OrganizationConnection
1948
1937
  deletedAt?: Date;
1949
1938
  product: Product;
1950
1939
  }
1940
+ export declare class ProductResource extends OrganizationConnectionBaseEntity {
1941
+ productId: number;
1942
+ resourceId: number;
1943
+ resourceType: ResourceNameTypeEnum;
1944
+ deletedAt?: Date;
1945
+ programSeason: ProgramSeason;
1946
+ event: Event;
1947
+ product: Product;
1948
+ productPackages: ProductPackage[];
1949
+ resourceName?: string;
1950
+ }
1951
1951
  export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1952
1952
  productId: number;
1953
1953
  userId: number;
@@ -2393,909 +2393,909 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2393
2393
  membershipCollectionId?: string;
2394
2394
  programsCollectionId?: string;
2395
2395
  }
2396
- export declare enum EntitlementTermsTypesEnum {
2397
- QUESTION = "question",
2398
- CITY = "city",
2399
- MEMBERSHIP = "membership"
2396
+ export interface IEntitlementTerms {
2397
+ type: EntitlementTermsTypesEnum;
2398
+ id?: number;
2399
+ value?: string;
2400
+ minValue?: string;
2401
+ maxValue?: string;
2400
2402
  }
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"
2403
+ export interface IQuestionAnswerObject {
2404
+ questionId: number;
2405
+ value: string;
2431
2406
  }
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"
2407
+ export interface ILowestPriceForItem {
2408
+ itemId: number;
2409
+ itemType: ResourceNameTypeEnum;
2410
+ groupId: number;
2411
+ groupName?: string;
2412
+ price: number;
2413
+ overridesPrice: boolean;
2437
2414
  }
2438
- export declare enum GenderEnum {
2439
- OTHER = 1,
2440
- MALE = 2,
2441
- FEMALE = 3
2415
+ export interface IResourcesAvailability {
2416
+ resourceType: ResourceNameTypeEnum;
2417
+ quantity: number;
2418
+ resourcesIds: number[];
2419
+ isPunchCard: boolean;
2420
+ resources?: any[];
2442
2421
  }
2443
- export declare enum LevelOfPlayEnum {
2444
- BEGINNER = 1,
2445
- INTERMEDIATE = 2,
2446
- ADVANCED = 3,
2447
- SEMIPRO = 4,
2448
- SPECTATOR = 5
2422
+ export interface IPackageResponse {
2423
+ parentProduct: Product;
2424
+ children: IChildProduct[];
2449
2425
  }
2450
- export declare enum ProgramTypesEnum {
2451
- LEAGUE = 0,
2452
- TOURNAMENT = 1,
2453
- CLASS = 2,
2454
- CLINIC = 3,
2455
- CAMP = 4,
2456
- LESSON = 5,
2457
- CLUB_TEAM = 6
2426
+ export interface IChildProduct {
2427
+ product: Product;
2428
+ relationType: PackageProductsRelationTypeEnum;
2429
+ timePeriod?: AddonTimePeriodEnum;
2458
2430
  }
2459
- export declare enum ProgramSeasonTypesEnum {
2460
- ROUND_ROBIN = 1,
2461
- BRACKETS = 2,
2462
- CAMP_CLINIC_CLASS = 3
2431
+ export interface ISeasonAttendeeInfo {
2432
+ applicationAnswers: Answer[];
2433
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2434
+ invoices: Invoice[];
2435
+ payments: Payment[];
2436
+ products: Product[];
2437
+ redeemNext: ProductsUsers;
2463
2438
  }
2464
- export declare enum SportsEnum {
2465
- SOFTBALL = 1,
2466
- BASKETBALL = 2,
2467
- FOOTBALL = 3,
2468
- SOCCER = 4,
2469
- BOWLING = 5,
2470
- BOCCEBALL = 6,
2471
- CORNHOLE = 7,
2472
- DODGEBALL = 8,
2473
- FRISBEE = 9,
2474
- HOCKEY = 10,
2475
- KICKBALL = 11,
2476
- LACROSSE = 12,
2477
- PINGPONG = 13,
2478
- RUGBY = 14,
2479
- SKEEBALL = 15,
2480
- TENNIS = 16,
2481
- VOLLEYBALL = 17,
2482
- WIFFLEBALL = 18,
2483
- BADMINTON = 19,
2484
- FITNESS = 20,
2485
- GOLF = 21,
2486
- PILATES = 22,
2487
- RUNNING = 23,
2488
- SKIING = 24,
2489
- SNOWBOARDING = 25,
2490
- YOGA = 26,
2491
- BROOMBALL = 27,
2492
- CRICKET = 28,
2493
- CROSSFIT = 29,
2494
- CYCLING = 30,
2495
- FIELD_HOCKEY = 31,
2496
- RACQUETBALL = 32,
2497
- SPINNING = 33,
2498
- SQUASH = 34,
2499
- SURFING = 35,
2500
- SWIMMING = 36,
2501
- WIND_SURFING = 37,
2502
- ADVENTURE = 38,
2503
- BOXING = 39,
2504
- BASEBALL = 40,
2505
- DANCE = 41,
2506
- KICKBOXING = 42,
2507
- MARTIAL_ARTS = 43,
2508
- OUTDOORS = 44,
2509
- ROWING = 45,
2510
- SAILING = 46,
2511
- SUP = 47,
2512
- TRIATHLON = 48,
2513
- HANDBALL = 49,
2514
- CATCHBALL = 50,
2515
- BLITZBALL = 51,
2516
- ROLLER_DERBY = 52,
2517
- ICE_SKATING = 53,
2518
- PICKLEBALL = 54,
2519
- AXE_THROWING = 55,
2520
- FURSAL = 56,
2521
- BIRTHDAY = 57,
2522
- CORPRATE_EVENTS = 58,
2523
- OTHER = 999
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;
2524
2451
  }
2525
- export declare enum PublishingStatusEnum {
2526
- DRAFT = 1,
2527
- PUBLISHED = 2,
2528
- CLOSED = 3,
2529
- CANCELLED = 4,
2530
- ARCHIVE = 5,
2531
- UNPUBLISHED = 6
2452
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2453
+ segmentType: ResourceNameTypeEnum;
2454
+ participantRegisteredDate?: string;
2532
2455
  }
2533
- export declare enum ProgramHighlightTypeEnum {
2534
- OTHER = 1,
2535
- MINAGE = 2,
2536
- MAXAGE = 3,
2537
- GENDER = 4,
2538
- LEVELOFPLAY = 5,
2539
- GAMESSEASON = 6,
2540
- MINWEEK = 7,
2541
- SURFACE = 8,
2542
- FORMAT = 9,
2543
- PLAYERS_PER_TEAM = 10,
2544
- MATCH_LENGTH = 12
2456
+ export declare class EventAsSeasonSegment extends Event {
2457
+ segmentType: ResourceNameTypeEnum;
2458
+ participantRegisteredDate?: string;
2545
2459
  }
2546
- export declare enum RequestStatusEnum {
2547
- PENDING = 1,
2548
- ACCEPTED = 2,
2549
- DECLINED = 3
2460
+ export interface ITokenResonse {
2461
+ token: string;
2550
2462
  }
2551
- export declare enum PaymentStatusEnum {
2552
- NOT_PAID = "not_paid",
2553
- PARTIAL_PAYMENT = "partial",
2554
- FULLY_PAID = "paid",
2555
- REFUNDED = "refunded",
2556
- VOID = "void"
2463
+ export interface IStripeBondInvoices {
2464
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2465
+ bondPaidPayment: Payment;
2466
+ invoice?: Invoice;
2467
+ customer?: Customer;
2557
2468
  }
2558
- export declare enum ReservationExtendedEnum {
2559
- PURCHASE_ORDER = "purchase_order"
2469
+ export interface IPartialPaymentData {
2470
+ purchasingUserId: number;
2471
+ paymentData: PurchasePaymentDto;
2472
+ amountToPay: number;
2560
2473
  }
2561
- export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2562
- export declare enum ReservationStatusEnum {
2563
- PLANNED = "Planned",
2564
- APPROVED = "Approved",
2565
- AWAITING_ADMIN = "Awaiting Admin",
2566
- AWAITING_CUSTOMER = "Awaiting Customer",
2567
- REJECTED = "Rejected",
2568
- CANCELED = "Canceled"
2474
+ export interface IPayment {
2475
+ id: number;
2476
+ total: number;
2477
+ paymentMethod: PaymentMethodTypeEnum;
2478
+ status: PaymentStatusEnum;
2479
+ createdAt: Date;
2480
+ invoices: number[];
2569
2481
  }
2570
- export declare enum PaymentStatusV1Enum {
2571
- SENT_TO_CLIENT = 1,
2572
- SENT_FOR_PAYMENT = 2,
2573
- ACCEPTED = 3,
2574
- REJECTED = 4,
2575
- CANCELLED = 5,
2576
- FRAUD = 6,
2577
- NOT_RELEVANT = 7,
2578
- PENDING = 8
2482
+ export interface IPaginationData<T> {
2483
+ meta: {
2484
+ totalItems: number;
2485
+ itemsPerPage: number;
2486
+ totalPages: number;
2487
+ currentPage: number;
2488
+ };
2489
+ data: T[];
2579
2490
  }
2580
- export declare enum PaymentMethodsEnum {
2581
- STRIPE = 1,
2582
- CASH = 3
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;
2583
2501
  }
2584
- export declare enum PackageProductsRelationTypeEnum {
2585
- CHILD = "child",
2586
- UPSALE = "upsale"
2502
+ export interface IPaymentMethodToFundLeft {
2503
+ paymentType: PaymentMethodTypeEnum;
2504
+ paymentMethodId: string;
2505
+ fundLeft: number;
2506
+ ccLast4?: string;
2507
+ ccBrand?: string;
2587
2508
  }
2588
- export declare enum AddonTimePeriodEnum {
2589
- FULL = "full",
2590
- SESSION = "session",
2591
- EVENT = "event"
2509
+ export interface IVariantsAndTitle {
2510
+ title: VariantTitle;
2511
+ variants: Variant[];
2592
2512
  }
2593
- export declare enum CurrencyEnum {
2594
- USD = "USD"
2513
+ export interface IProgramSeasonActivityTimes {
2514
+ dayOfWeek: number;
2515
+ open: string;
2516
+ close: string;
2595
2517
  }
2596
- export declare enum NotificationTypeEnum {
2597
- BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2598
- BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2599
- BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2518
+ export interface IProgramSeasonActivityTimesAsDates {
2519
+ date: string;
2520
+ startTime: string;
2521
+ endTime: string;
2600
2522
  }
2601
- export declare enum ProductTypesEnum {
2602
- RESERVATION = "reservation",
2603
- REGISTRATION = "registration",
2604
- MEMBERSHIP = "membership",
2605
- GOODS = "goods",
2606
- PACKAGE = "package",
2607
- REFUND_COMPENSATION = "refund",
2608
- CASH_OVER_SHORT = "cash_over_short",
2609
- PETTY_CASH = "petty_cash",
2610
- LEAGUE_REGISTRATION = "league_registration",
2611
- TAX = "tax"
2612
- }
2613
- export declare enum InvoiceStatusEnum {
2614
- ACTIVE = "active",
2615
- WAITING_ADMIN = "waitingAdmin",
2616
- WAITING_CLIENT = "waitingClient",
2617
- CANCELED = "canceled"
2618
- }
2619
- export declare enum LineItemsStatusEnum {
2620
- USER_PRODUCT = "UserProduct",
2621
- RENTAL_PRODUCT = "RentalProduct"
2523
+ export interface IBlockedDates {
2524
+ name: string;
2525
+ startDate: Date;
2526
+ endDate: Date;
2622
2527
  }
2623
- export declare enum ProductSubTypesEnum {
2624
- SEASON_INDIVIDUAL = "season_individual",
2625
- SEASON_TEAM = "season_team",
2626
- SEASON_PER_PLAYER = "season_per_player"
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;
2627
2546
  }
2628
- export declare enum PaymentMethodTypeEnum {
2629
- CREDIT_CARD = "card",
2630
- ACH = "ach",
2631
- CASH = "cash",
2632
- CHECK = "check",
2633
- BALANCE = "balance",
2634
- CARD_ON_TERMINAL = "card-on-terminal",
2635
- OTHER = "other",
2636
- MIGRATED = "migrated",
2637
- VOID = "void"
2547
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2548
+ package_parentProductId: number;
2549
+ product2_productPrice: number;
2550
+ familyid: number;
2551
+ invoice_id: number;
2638
2552
  }
2639
- export declare enum RefundTypeEnum {
2640
- LEAVE_BALANCE = "leave_balance",
2641
- REDUCE_BALANCE = "reduce_balance"
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;
2642
2563
  }
2643
- export declare enum CustomerInMembershipTypeEnum {
2644
- INDIVIDUAL = "individual",
2645
- FAMILY = "family",
2646
- ORGANIZATION = "organization"
2564
+ export interface IResourceDataForConstraintsCalc {
2565
+ id: number;
2566
+ startDate: string;
2567
+ startTime: string;
2647
2568
  }
2648
- export declare enum MembershipTypeEnum {
2649
- FIXED = "fix_membership",
2650
- ROLLING = "rolling_membership"
2569
+ export interface IRegistrationConstraintsSetting {
2570
+ numDays?: number;
2571
+ numMinutes?: number;
2651
2572
  }
2652
- export declare enum CustomerTypeEnum {
2653
- USER = "user",
2654
- FAMILY = "family",
2655
- ORGANIZATION = "organization"
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;
2656
2581
  }
2657
- export declare enum GroupStatusEnum {
2658
- ACTIVE = 1,
2659
- INACTIVE = 2,
2660
- DRAFT = 3
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;
2661
2600
  }
2662
- export declare enum FutureInstallmentStatusEnum {
2663
- FUTURE = "future",
2664
- SUCCEEDED = "succeeded",
2665
- FAILED = "failed",
2666
- CANCELED = "canceled"
2601
+ export interface ISlotInSchedule {
2602
+ facilityId: number;
2603
+ facilityName: string;
2604
+ spaces: ISpaceWithSlots[];
2667
2605
  }
2668
- export declare enum EntryStatusEnum {
2669
- ENTERED = 1,
2670
- NOT_ENTERED = 2,
2671
- CANCELED = 3
2606
+ export interface ISpaceWithSlots {
2607
+ id: number;
2608
+ name: string;
2609
+ slots: ISlotReservationData[];
2672
2610
  }
2673
- export declare enum PurchasedResourceStatusEnum {
2674
- ACTIVE = 1,
2675
- MOVED = 2,
2676
- CANCELED = 3
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;
2677
2624
  }
2678
- export declare enum TeamCanJoinEnum {
2679
- ANYONE = "anyone",
2680
- BY_INVITE = "byInvite",
2681
- CAPTAIN_APPROVAL = "captainApproval"
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;
2682
2633
  }
2683
- export declare enum TeamMemberStatusEnum {
2684
- PENDING = 1,
2685
- ACTIVE = 2,
2686
- DECLINED = 3,
2687
- SUSPENDED = 4,
2688
- INACTIVE = 5,
2689
- INVITED = 6
2634
+ export interface IBasicSpaceAndSlotCreator {
2635
+ id: number;
2636
+ name: string;
2637
+ bookingCreatorId: number;
2690
2638
  }
2691
- export declare enum TeamMemberRoleEnum {
2692
- NULL = 0,
2693
- ADMIN = 1
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;
2694
2653
  }
2695
- export declare enum DayOfWeekEnum {
2696
- SUNDAY = 0,
2697
- MONDAY = 1,
2698
- TUESDAY = 2,
2699
- WEDNESDAY = 3,
2700
- THURSDAY = 4,
2701
- FRIDAY = 5,
2702
- SATURDAY = 6
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;
2703
2669
  }
2704
- export declare enum ActionTypesEnum {
2705
- CREATE = "create",
2706
- READ = "read",
2707
- UPDATE = "update",
2708
- DELETE = "delete"
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;
2709
2684
  }
2710
- export declare enum ActionSourcePlatformEnum {
2711
- ADMIN = "admin",
2712
- BACKOFFICE = "backoffice",
2713
- CONSUMER = "consumer"
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';
2714
2704
  }
2715
- export declare enum RolesEnum {
2716
- ORG_ADMIN = "organizationAdmin",
2717
- BOND_ADMIN = "bondAdmin"
2705
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2706
+ hasRequiredMembership: boolean;
2707
+ hasEntitledPricing: boolean;
2708
+ lowestPrice?: number;
2709
+ products?: ISessionLandingPageProduct[];
2718
2710
  }
2719
- export declare enum SeasonPoolStatusEnum {
2720
- IN_POOL = 5,
2721
- ASSIGNED = 1,
2722
- QUIT = 2,
2723
- SUSPENDED = 3,
2724
- INACTIVE = 4
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[];
2725
2720
  }
2726
- export declare enum AmenitiesEnum {
2727
- HEAT = 1,
2728
- AC = 2,
2729
- WIFI = 3,
2730
- RESTROOMS = 4,
2731
- DRINKING_FOUNTAIN = 5,
2732
- PARKING = 6,
2733
- CONCESSIONS = 7,
2734
- SHELTER = 8,
2735
- PORTABLE_RESTROOMS = 9,
2736
- LIGHTS = 10,
2737
- LOCKER_ROOM = 11,
2738
- PAID_PARKING = 12,
2739
- ACCESSIBLE = 13
2721
+ export interface ISlimAddons {
2722
+ addons?: {
2723
+ id: number;
2724
+ timePeriod: AddonTimePeriodEnum;
2725
+ name: string;
2726
+ productType?: ProductTypesEnum;
2727
+ productSubType?: string;
2728
+ }[];
2740
2729
  }
2741
- export declare enum ResourceSubTypeEnum {
2742
- COURT = "court",
2743
- FIELD = "field",
2744
- ROOM = "room",
2745
- DIAMOND = "diamond",
2746
- RINK = "rink",
2747
- STUDIO = "studio",
2748
- POOL = "pool",
2749
- BATTING_CAGE = "batting cage",
2750
- SHELTER = "shelter",
2751
- GOLF_SIMULATOR = "golf simulator"
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;
2752
2742
  }
2753
- export declare enum ResourceTypeEnum {
2754
- SPACE = "space"
2743
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2744
+ destinationId?: string;
2745
+ stripeCustomerId?: string;
2746
+ fee?: number;
2755
2747
  }
2756
- export declare enum ResourceAgesEnum {
2757
- ADULTS = "adults",
2758
- CHILDREN = "children"
2748
+ export interface IReservationCreatorData {
2749
+ type: ResourceNameTypeEnum;
2750
+ id: number;
2751
+ organizationId: number;
2752
+ startDate: string;
2753
+ endDate: string;
2754
+ sportId: number;
2759
2755
  }
2760
- export declare enum SpacePropertiesEnum {
2761
- OUTDOOR = "outdoor",
2762
- INDOOR = "indoor"
2756
+ export declare enum EntitlementTermsTypesEnum {
2757
+ QUESTION = "question",
2758
+ CITY = "city",
2759
+ MEMBERSHIP = "membership"
2763
2760
  }
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"
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"
2774
2791
  }
2775
- export declare enum RegistrationConstraintPeriodTypeEnum {
2776
- MINUTES = "minutes",
2777
- DAYS = "days"
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"
2778
2797
  }
2779
- export declare enum RegistrationWindowStatusEnum {
2780
- NOT_OPEN_YET = "not_opened_yet",
2781
- OPEN = "open",
2782
- CLOSED = "closed"
2798
+ export declare enum GenderEnum {
2799
+ OTHER = 1,
2800
+ MALE = 2,
2801
+ FEMALE = 3
2783
2802
  }
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"
2803
+ export declare enum LevelOfPlayEnum {
2804
+ BEGINNER = 1,
2805
+ INTERMEDIATE = 2,
2806
+ ADVANCED = 3,
2807
+ SEMIPRO = 4,
2808
+ SPECTATOR = 5
2791
2809
  }
2792
- export declare enum DiscountMethodsEnum {
2793
- PERCENT = "percent",
2794
- AMOUNT = "amount"
2810
+ export declare enum ProgramTypesEnum {
2811
+ LEAGUE = 0,
2812
+ TOURNAMENT = 1,
2813
+ CLASS = 2,
2814
+ CLINIC = 3,
2815
+ CAMP = 4,
2816
+ LESSON = 5,
2817
+ CLUB_TEAM = 6
2795
2818
  }
2796
- export declare enum UserAuthorizationsTypeEnum {
2797
- ORGANIZATION = "organization"
2819
+ export declare enum ProgramSeasonTypesEnum {
2820
+ ROUND_ROBIN = 1,
2821
+ BRACKETS = 2,
2822
+ CAMP_CLINIC_CLASS = 3
2798
2823
  }
2799
- export declare enum OrganizationLocaleDateEnum {
2800
- USA = "USA"
2824
+ export declare enum SportsEnum {
2825
+ SOFTBALL = 1,
2826
+ BASKETBALL = 2,
2827
+ FOOTBALL = 3,
2828
+ SOCCER = 4,
2829
+ BOWLING = 5,
2830
+ BOCCEBALL = 6,
2831
+ CORNHOLE = 7,
2832
+ DODGEBALL = 8,
2833
+ FRISBEE = 9,
2834
+ HOCKEY = 10,
2835
+ KICKBALL = 11,
2836
+ LACROSSE = 12,
2837
+ PINGPONG = 13,
2838
+ RUGBY = 14,
2839
+ SKEEBALL = 15,
2840
+ TENNIS = 16,
2841
+ VOLLEYBALL = 17,
2842
+ WIFFLEBALL = 18,
2843
+ BADMINTON = 19,
2844
+ FITNESS = 20,
2845
+ GOLF = 21,
2846
+ PILATES = 22,
2847
+ RUNNING = 23,
2848
+ SKIING = 24,
2849
+ SNOWBOARDING = 25,
2850
+ YOGA = 26,
2851
+ BROOMBALL = 27,
2852
+ CRICKET = 28,
2853
+ CROSSFIT = 29,
2854
+ CYCLING = 30,
2855
+ FIELD_HOCKEY = 31,
2856
+ RACQUETBALL = 32,
2857
+ SPINNING = 33,
2858
+ SQUASH = 34,
2859
+ SURFING = 35,
2860
+ SWIMMING = 36,
2861
+ WIND_SURFING = 37,
2862
+ ADVENTURE = 38,
2863
+ BOXING = 39,
2864
+ BASEBALL = 40,
2865
+ DANCE = 41,
2866
+ KICKBOXING = 42,
2867
+ MARTIAL_ARTS = 43,
2868
+ OUTDOORS = 44,
2869
+ ROWING = 45,
2870
+ SAILING = 46,
2871
+ SUP = 47,
2872
+ TRIATHLON = 48,
2873
+ HANDBALL = 49,
2874
+ CATCHBALL = 50,
2875
+ BLITZBALL = 51,
2876
+ ROLLER_DERBY = 52,
2877
+ ICE_SKATING = 53,
2878
+ PICKLEBALL = 54,
2879
+ AXE_THROWING = 55,
2880
+ FURSAL = 56,
2881
+ BIRTHDAY = 57,
2882
+ CORPRATE_EVENTS = 58,
2883
+ OTHER = 999
2801
2884
  }
2802
- export declare enum DateTimeFormatsEnum {
2803
- API_DATE = "YYYY/MM/DD",
2804
- API_TIME = "HH:mm:ss",
2805
- DB_DATE = "YYYY-MM-DD"
2885
+ export declare enum PublishingStatusEnum {
2886
+ DRAFT = 1,
2887
+ PUBLISHED = 2,
2888
+ CLOSED = 3,
2889
+ CANCELLED = 4,
2890
+ ARCHIVE = 5,
2891
+ UNPUBLISHED = 6
2806
2892
  }
2807
- export declare enum SlotTypeEnum {
2808
- EXTERNAL = "external",
2809
- INTERNAL = "internal",
2810
- MAINTENANCE = "maintenance",
2811
- CUSTOM = "custom"
2893
+ export declare enum ProgramHighlightTypeEnum {
2894
+ OTHER = 1,
2895
+ MINAGE = 2,
2896
+ MAXAGE = 3,
2897
+ GENDER = 4,
2898
+ LEVELOFPLAY = 5,
2899
+ GAMESSEASON = 6,
2900
+ MINWEEK = 7,
2901
+ SURFACE = 8,
2902
+ FORMAT = 9,
2903
+ PLAYERS_PER_TEAM = 10,
2904
+ MATCH_LENGTH = 12
2812
2905
  }
2813
- export declare enum PlatformsEnum {
2814
- CONSUMER = "consumer",
2815
- CONSUMER_CHECKOUT = "consumer_checkout",
2816
- BO = "backoffice",
2817
- MOBILE = "mobile",
2818
- CRON = "cron"
2906
+ export declare enum RequestStatusEnum {
2907
+ PENDING = 1,
2908
+ ACCEPTED = 2,
2909
+ DECLINED = 3
2819
2910
  }
2820
- export declare enum ShiftStatusEnum {
2821
- OPEN = "open",
2822
- CLOSED = "closed",
2823
- MANAGMENT_CLOSED = "closed_by_manager",
2824
- RECONCILED = "reconciled"
2911
+ export declare enum PaymentStatusEnum {
2912
+ NOT_PAID = "not_paid",
2913
+ PARTIAL_PAYMENT = "partial",
2914
+ FULLY_PAID = "paid",
2915
+ REFUNDED = "refunded",
2916
+ VOID = "void"
2825
2917
  }
2826
- export declare enum EventStatusEnum {
2827
- OPEN = 1,
2828
- DRAFT = 2,
2829
- FULL = 3,
2830
- CANCELLED = 4,
2831
- CLOSED = 5,
2832
- DELETED = 6
2918
+ export declare enum ReservationExtendedEnum {
2919
+ PURCHASE_ORDER = "purchase_order"
2833
2920
  }
2834
- export declare enum ReservationTypeEnum {
2835
- RENTAL = "rental",
2836
- PROGRAM = "program",
2837
- MAINTENANCE = "maintenance",
2838
- CUSTOM = "custom",
2839
- INTERNAL = "internal"
2921
+ export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2922
+ export declare enum ReservationStatusEnum {
2923
+ PLANNED = "Planned",
2924
+ APPROVED = "Approved",
2925
+ AWAITING_ADMIN = "Awaiting Admin",
2926
+ AWAITING_CUSTOMER = "Awaiting Customer",
2927
+ REJECTED = "Rejected",
2928
+ CANCELED = "Canceled"
2840
2929
  }
2841
- export declare enum SlotDurationTypeEnum {
2842
- DATES = "dates",
2843
- ALL_DAY = "all day",
2844
- DURATION = "duration"
2930
+ export declare enum PaymentStatusV1Enum {
2931
+ SENT_TO_CLIENT = 1,
2932
+ SENT_FOR_PAYMENT = 2,
2933
+ ACCEPTED = 3,
2934
+ REJECTED = 4,
2935
+ CANCELLED = 5,
2936
+ FRAUD = 6,
2937
+ NOT_RELEVANT = 7,
2938
+ PENDING = 8
2845
2939
  }
2846
- export declare enum DurationUnitTypesEnum {
2847
- MINUTES = "minutes",
2848
- HOURS = "hours"
2940
+ export declare enum PaymentMethodsEnum {
2941
+ STRIPE = 1,
2942
+ CASH = 3
2849
2943
  }
2850
- export declare enum FrequencyEnum {
2851
- NONE = "none",
2852
- WEEKLY = "weekly",
2853
- DAILY = "daily",
2854
- MONTHLY = "monthly",
2855
- YEARLY = "yearly"
2944
+ export declare enum PackageProductsRelationTypeEnum {
2945
+ CHILD = "child",
2946
+ UPSALE = "upsale"
2856
2947
  }
2857
- export declare enum MaintenanceTimingEnum {
2858
- BEFORE = 1,
2859
- AFTER = 2,
2860
- AT_THE_BEGINING = 3,
2861
- AT_THE_END = 4
2948
+ export declare enum AddonTimePeriodEnum {
2949
+ FULL = "full",
2950
+ SESSION = "session",
2951
+ EVENT = "event"
2862
2952
  }
2863
- export declare enum CreatorTypeEnum {
2864
- SPACE = "space",
2865
- PROGRAM_SEASON = "program_season",
2866
- SEASON = "season"
2953
+ export declare enum CurrencyEnum {
2954
+ USD = "USD"
2867
2955
  }
2868
- export declare enum UpdatePricesTypeEnum {
2869
- INDIVIDUAL = "indvidual",
2870
- CATEGORY = "category",
2871
- GLOBAL = "global"
2956
+ export declare enum NotificationTypeEnum {
2957
+ BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2958
+ BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2959
+ BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2872
2960
  }
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
2961
+ export declare enum ProductTypesEnum {
2962
+ RESERVATION = "reservation",
2963
+ REGISTRATION = "registration",
2964
+ MEMBERSHIP = "membership",
2965
+ GOODS = "goods",
2966
+ PACKAGE = "package",
2967
+ REFUND_COMPENSATION = "refund",
2968
+ CASH_OVER_SHORT = "cash_over_short",
2969
+ PETTY_CASH = "petty_cash",
2970
+ LEAGUE_REGISTRATION = "league_registration",
2971
+ TAX = "tax"
2881
2972
  }
2882
- export declare enum ReservationMigrationStatusEnum {
2883
- NEW = "new",
2884
- NO = "no",
2885
- YES = "yes"
2973
+ export declare enum InvoiceStatusEnum {
2974
+ ACTIVE = "active",
2975
+ WAITING_ADMIN = "waitingAdmin",
2976
+ WAITING_CLIENT = "waitingClient",
2977
+ CANCELED = "canceled"
2886
2978
  }
2887
- export declare enum ProductPackageLevelEnum {
2888
- HOUR = "hour",
2889
- SLOT = "slot",
2890
- RESERVATION = "reservation"
2979
+ export declare enum LineItemsStatusEnum {
2980
+ USER_PRODUCT = "UserProduct",
2981
+ RENTAL_PRODUCT = "RentalProduct"
2891
2982
  }
2892
- export declare enum CancellationStatusEnum {
2893
- IMMEDIATE = "immediate",
2894
- AUTO_RENEWAL = "auto_renewal"
2983
+ export declare enum ProductSubTypesEnum {
2984
+ SEASON_INDIVIDUAL = "season_individual",
2985
+ SEASON_TEAM = "season_team",
2986
+ SEASON_PER_PLAYER = "season_per_player"
2895
2987
  }
2896
- export declare enum SeasonScheduleStatusEnum {
2897
- DRAFT = 0,
2898
- PUBLISHED = 1
2988
+ export declare enum PaymentMethodTypeEnum {
2989
+ CREDIT_CARD = "card",
2990
+ ACH = "ach",
2991
+ CASH = "cash",
2992
+ CHECK = "check",
2993
+ BALANCE = "balance",
2994
+ CARD_ON_TERMINAL = "card-on-terminal",
2995
+ OTHER = "other",
2996
+ MIGRATED = "migrated",
2997
+ VOID = "void"
2899
2998
  }
2900
- export declare enum FinancialStepEnum {
2901
- VOID = "void",
2902
- REFUND = "refund",
2903
- NONE = "none",
2904
- REFUND_AND_VOID = "refund-and-void",
2905
- APPEND = "append"
2999
+ export declare enum RefundTypeEnum {
3000
+ LEAVE_BALANCE = "leave_balance",
3001
+ REDUCE_BALANCE = "reduce_balance"
2906
3002
  }
2907
- export declare enum StripeAccountTypesEnum {
2908
- STRIPE = "stripe",
2909
- STRIPE_CUSTOM = "stripe:account:custom",
2910
- STRIPE_CUSTOMER = "stripe:customer"
3003
+ export declare enum CustomerInMembershipTypeEnum {
3004
+ INDIVIDUAL = "individual",
3005
+ FAMILY = "family",
3006
+ ORGANIZATION = "organization"
2911
3007
  }
2912
- export declare enum LinkedAccountStatus {
2913
- PENDING = 1,
2914
- ACTIVE = 2,
2915
- PRE_PENDING = 3
3008
+ export declare enum MembershipTypeEnum {
3009
+ FIXED = "fix_membership",
3010
+ ROLLING = "rolling_membership"
2916
3011
  }
2917
- export declare enum AddonParentTypeEnum {
2918
- RESERVATION = "reservation",
2919
- SLOT = "slot"
3012
+ export declare enum CustomerTypeEnum {
3013
+ USER = "user",
3014
+ FAMILY = "family",
3015
+ ORGANIZATION = "organization"
2920
3016
  }
2921
- export declare enum EEmailStatus {
2922
- SENT = "sent",
2923
- OPENED = "opened",
2924
- PAID = "paid",
2925
- CANCELED = "canceled"
3017
+ export declare enum GroupStatusEnum {
3018
+ ACTIVE = 1,
3019
+ INACTIVE = 2,
3020
+ DRAFT = 3
2926
3021
  }
2927
- export declare enum PaymentSettingStatusEnum {
2928
- ENABLED = 1,
2929
- DISABLED_REDIRECT = 2,
2930
- DISABLED_INFO_ONLY = 3,
2931
- DISABLED_EMAIL = 4
3022
+ export declare enum FutureInstallmentStatusEnum {
3023
+ FUTURE = "future",
3024
+ SUCCEEDED = "succeeded",
3025
+ FAILED = "failed",
3026
+ CANCELED = "canceled"
2932
3027
  }
2933
- export declare enum NotifyMethodEnum {
2934
- EMAIL = "Email"
3028
+ export declare enum EntryStatusEnum {
3029
+ ENTERED = 1,
3030
+ NOT_ENTERED = 2,
3031
+ CANCELED = 3
2935
3032
  }
2936
- export declare enum EStartDateFilter {
2937
- LessThan = "lt",
2938
- GreaterOrEqualTo = "gte"
3033
+ export declare enum PurchasedResourceStatusEnum {
3034
+ ACTIVE = 1,
3035
+ MOVED = 2,
3036
+ CANCELED = 3
2939
3037
  }
2940
- export interface IEntitlementTerms {
2941
- type: EntitlementTermsTypesEnum;
2942
- id?: number;
2943
- value?: string;
2944
- minValue?: string;
2945
- maxValue?: string;
3038
+ export declare enum TeamCanJoinEnum {
3039
+ ANYONE = "anyone",
3040
+ BY_INVITE = "byInvite",
3041
+ CAPTAIN_APPROVAL = "captainApproval"
2946
3042
  }
2947
- export interface IQuestionAnswerObject {
2948
- questionId: number;
2949
- value: string;
3043
+ export declare enum TeamMemberStatusEnum {
3044
+ PENDING = 1,
3045
+ ACTIVE = 2,
3046
+ DECLINED = 3,
3047
+ SUSPENDED = 4,
3048
+ INACTIVE = 5,
3049
+ INVITED = 6
2950
3050
  }
2951
- export interface ILowestPriceForItem {
2952
- itemId: number;
2953
- itemType: ResourceNameTypeEnum;
2954
- groupId: number;
2955
- groupName?: string;
2956
- price: number;
2957
- overridesPrice: boolean;
3051
+ export declare enum TeamMemberRoleEnum {
3052
+ NULL = 0,
3053
+ ADMIN = 1
2958
3054
  }
2959
- export interface IResourcesAvailability {
2960
- resourceType: ResourceNameTypeEnum;
2961
- quantity: number;
2962
- resourcesIds: number[];
2963
- isPunchCard: boolean;
2964
- resources?: any[];
3055
+ export declare enum DayOfWeekEnum {
3056
+ SUNDAY = 0,
3057
+ MONDAY = 1,
3058
+ TUESDAY = 2,
3059
+ WEDNESDAY = 3,
3060
+ THURSDAY = 4,
3061
+ FRIDAY = 5,
3062
+ SATURDAY = 6
2965
3063
  }
2966
- export interface IPackageResponse {
2967
- parentProduct: Product;
2968
- children: IChildProduct[];
3064
+ export declare enum ActionTypesEnum {
3065
+ CREATE = "create",
3066
+ READ = "read",
3067
+ UPDATE = "update",
3068
+ DELETE = "delete"
2969
3069
  }
2970
- export interface IChildProduct {
2971
- product: Product;
2972
- relationType: PackageProductsRelationTypeEnum;
2973
- timePeriod?: AddonTimePeriodEnum;
3070
+ export declare enum ActionSourcePlatformEnum {
3071
+ ADMIN = "admin",
3072
+ BACKOFFICE = "backoffice",
3073
+ CONSUMER = "consumer"
2974
3074
  }
2975
- export interface ISeasonAttendeeInfo {
2976
- applicationAnswers: Answer[];
2977
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2978
- invoices: Invoice[];
2979
- payments: Payment[];
2980
- products: Product[];
2981
- redeemNext: ProductsUsers;
3075
+ export declare enum RolesEnum {
3076
+ ORG_ADMIN = "organizationAdmin",
3077
+ BOND_ADMIN = "bondAdmin"
2982
3078
  }
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;
3079
+ export declare enum SeasonPoolStatusEnum {
3080
+ IN_POOL = 5,
3081
+ ASSIGNED = 1,
3082
+ QUIT = 2,
3083
+ SUSPENDED = 3,
3084
+ INACTIVE = 4
2995
3085
  }
2996
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2997
- segmentType: ResourceNameTypeEnum;
2998
- participantRegisteredDate?: string;
3086
+ export declare enum AmenitiesEnum {
3087
+ HEAT = 1,
3088
+ AC = 2,
3089
+ WIFI = 3,
3090
+ RESTROOMS = 4,
3091
+ DRINKING_FOUNTAIN = 5,
3092
+ PARKING = 6,
3093
+ CONCESSIONS = 7,
3094
+ SHELTER = 8,
3095
+ PORTABLE_RESTROOMS = 9,
3096
+ LIGHTS = 10,
3097
+ LOCKER_ROOM = 11,
3098
+ PAID_PARKING = 12,
3099
+ ACCESSIBLE = 13
2999
3100
  }
3000
- export declare class EventAsSeasonSegment extends Event {
3001
- segmentType: ResourceNameTypeEnum;
3002
- participantRegisteredDate?: string;
3101
+ export declare enum ResourceSubTypeEnum {
3102
+ COURT = "court",
3103
+ FIELD = "field",
3104
+ ROOM = "room",
3105
+ DIAMOND = "diamond",
3106
+ RINK = "rink",
3107
+ STUDIO = "studio",
3108
+ POOL = "pool",
3109
+ BATTING_CAGE = "batting cage",
3110
+ SHELTER = "shelter",
3111
+ GOLF_SIMULATOR = "golf simulator"
3003
3112
  }
3004
- export interface ITokenResonse {
3005
- token: string;
3113
+ export declare enum ResourceTypeEnum {
3114
+ SPACE = "space"
3006
3115
  }
3007
- export interface IStripeBondInvoices {
3008
- paidStripePaymentIntent: Stripe.PaymentIntent;
3009
- bondPaidPayment: Payment;
3010
- invoice?: Invoice;
3011
- customer?: Customer;
3116
+ export declare enum ResourceAgesEnum {
3117
+ ADULTS = "adults",
3118
+ CHILDREN = "children"
3012
3119
  }
3013
- export interface IPartialPaymentData {
3014
- purchasingUserId: number;
3015
- paymentData: PurchasePaymentDto;
3016
- amountToPay: number;
3120
+ export declare enum SpacePropertiesEnum {
3121
+ OUTDOOR = "outdoor",
3122
+ INDOOR = "indoor"
3017
3123
  }
3018
- export interface IPayment {
3019
- id: number;
3020
- total: number;
3021
- paymentMethod: PaymentMethodTypeEnum;
3022
- status: PaymentStatusEnum;
3023
- createdAt: Date;
3024
- invoices: number[];
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"
3025
3134
  }
3026
- export interface IPaginationData<T> {
3027
- meta: {
3028
- totalItems: number;
3029
- itemsPerPage: number;
3030
- totalPages: number;
3031
- currentPage: number;
3032
- };
3033
- data: T[];
3135
+ export declare enum RegistrationConstraintPeriodTypeEnum {
3136
+ MINUTES = "minutes",
3137
+ DAYS = "days"
3034
3138
  }
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;
3139
+ export declare enum RegistrationWindowStatusEnum {
3140
+ NOT_OPEN_YET = "not_opened_yet",
3141
+ OPEN = "open",
3142
+ CLOSED = "closed"
3045
3143
  }
3046
- export interface IPaymentMethodToFundLeft {
3047
- paymentType: PaymentMethodTypeEnum;
3048
- paymentMethodId: string;
3049
- fundLeft: number;
3050
- ccLast4?: string;
3051
- ccBrand?: string;
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"
3052
3151
  }
3053
- export interface IVariantsAndTitle {
3054
- title: VariantTitle;
3055
- variants: Variant[];
3152
+ export declare enum DiscountMethodsEnum {
3153
+ PERCENT = "percent",
3154
+ AMOUNT = "amount"
3056
3155
  }
3057
- export interface IProgramSeasonActivityTimes {
3058
- dayOfWeek: number;
3059
- open: string;
3060
- close: string;
3156
+ export declare enum UserAuthorizationsTypeEnum {
3157
+ ORGANIZATION = "organization"
3061
3158
  }
3062
- export interface IProgramSeasonActivityTimesAsDates {
3063
- date: string;
3064
- startTime: string;
3065
- endTime: string;
3159
+ export declare enum OrganizationLocaleDateEnum {
3160
+ USA = "USA"
3066
3161
  }
3067
- export interface IBlockedDates {
3068
- name: string;
3069
- startDate: Date;
3070
- endDate: Date;
3162
+ export declare enum DateTimeFormatsEnum {
3163
+ API_DATE = "YYYY/MM/DD",
3164
+ API_TIME = "HH:mm:ss",
3165
+ DB_DATE = "YYYY-MM-DD"
3071
3166
  }
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;
3167
+ export declare enum SlotTypeEnum {
3168
+ EXTERNAL = "external",
3169
+ INTERNAL = "internal",
3170
+ MAINTENANCE = "maintenance",
3171
+ CUSTOM = "custom"
3090
3172
  }
3091
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3092
- package_parentProductId: number;
3093
- product2_productPrice: number;
3094
- familyid: number;
3095
- invoice_id: number;
3173
+ export declare enum PlatformsEnum {
3174
+ CONSUMER = "consumer",
3175
+ CONSUMER_CHECKOUT = "consumer_checkout",
3176
+ BO = "backoffice",
3177
+ MOBILE = "mobile",
3178
+ CRON = "cron"
3096
3179
  }
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;
3180
+ export declare enum ShiftStatusEnum {
3181
+ OPEN = "open",
3182
+ CLOSED = "closed",
3183
+ MANAGMENT_CLOSED = "closed_by_manager",
3184
+ RECONCILED = "reconciled"
3107
3185
  }
3108
- export interface IResourceDataForConstraintsCalc {
3109
- id: number;
3110
- startDate: string;
3111
- startTime: string;
3186
+ export declare enum EventStatusEnum {
3187
+ OPEN = 1,
3188
+ DRAFT = 2,
3189
+ FULL = 3,
3190
+ CANCELLED = 4,
3191
+ CLOSED = 5,
3192
+ DELETED = 6
3112
3193
  }
3113
- export interface IRegistrationConstraintsSetting {
3114
- numDays?: number;
3115
- numMinutes?: number;
3194
+ export declare enum ReservationTypeEnum {
3195
+ RENTAL = "rental",
3196
+ PROGRAM = "program",
3197
+ MAINTENANCE = "maintenance",
3198
+ CUSTOM = "custom",
3199
+ INTERNAL = "internal"
3116
3200
  }
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;
3201
+ export declare enum SlotDurationTypeEnum {
3202
+ DATES = "dates",
3203
+ ALL_DAY = "all day",
3204
+ DURATION = "duration"
3125
3205
  }
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;
3206
+ export declare enum DurationUnitTypesEnum {
3207
+ MINUTES = "minutes",
3208
+ HOURS = "hours"
3144
3209
  }
3145
- export interface ISlotInSchedule {
3146
- facilityId: number;
3147
- facilityName: string;
3148
- spaces: ISpaceWithSlots[];
3210
+ export declare enum FrequencyEnum {
3211
+ NONE = "none",
3212
+ WEEKLY = "weekly",
3213
+ DAILY = "daily",
3214
+ MONTHLY = "monthly",
3215
+ YEARLY = "yearly"
3149
3216
  }
3150
- export interface ISpaceWithSlots {
3151
- id: number;
3152
- name: string;
3153
- slots: ISlotReservationData[];
3217
+ export declare enum MaintenanceTimingEnum {
3218
+ BEFORE = 1,
3219
+ AFTER = 2,
3220
+ AT_THE_BEGINING = 3,
3221
+ AT_THE_END = 4
3154
3222
  }
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;
3223
+ export declare enum CreatorTypeEnum {
3224
+ SPACE = "space",
3225
+ PROGRAM_SEASON = "program_season",
3226
+ SEASON = "season"
3168
3227
  }
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;
3228
+ export declare enum UpdatePricesTypeEnum {
3229
+ INDIVIDUAL = "indvidual",
3230
+ CATEGORY = "category",
3231
+ GLOBAL = "global"
3177
3232
  }
3178
- export interface IBasicSpaceAndSlotCreator {
3179
- id: number;
3180
- name: string;
3181
- bookingCreatorId: number;
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
3182
3241
  }
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;
3242
+ export declare enum ReservationMigrationStatusEnum {
3243
+ NEW = "new",
3244
+ NO = "no",
3245
+ YES = "yes"
3197
3246
  }
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;
3247
+ export declare enum ProductPackageLevelEnum {
3248
+ HOUR = "hour",
3249
+ SLOT = "slot",
3250
+ RESERVATION = "reservation"
3213
3251
  }
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;
3252
+ export declare enum CancellationStatusEnum {
3253
+ IMMEDIATE = "immediate",
3254
+ AUTO_RENEWAL = "auto_renewal"
3228
3255
  }
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';
3256
+ export declare enum SeasonScheduleStatusEnum {
3257
+ DRAFT = 0,
3258
+ PUBLISHED = 1
3248
3259
  }
3249
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3250
- hasRequiredMembership: boolean;
3251
- hasEntitledPricing: boolean;
3252
- lowestPrice?: number;
3253
- products?: ISessionLandingPageProduct[];
3260
+ export declare enum FinancialStepEnum {
3261
+ VOID = "void",
3262
+ REFUND = "refund",
3263
+ NONE = "none",
3264
+ REFUND_AND_VOID = "refund-and-void",
3265
+ APPEND = "append"
3254
3266
  }
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[];
3267
+ export declare enum StripeAccountTypesEnum {
3268
+ STRIPE = "stripe",
3269
+ STRIPE_CUSTOM = "stripe:account:custom",
3270
+ STRIPE_CUSTOMER = "stripe:customer"
3264
3271
  }
3265
- export interface ISlimAddons {
3266
- addons?: {
3267
- id: number;
3268
- timePeriod: AddonTimePeriodEnum;
3269
- name: string;
3270
- productType?: ProductTypesEnum;
3271
- productSubType?: string;
3272
- }[];
3272
+ export declare enum LinkedAccountStatus {
3273
+ PENDING = 1,
3274
+ ACTIVE = 2,
3275
+ PRE_PENDING = 3
3276
+ }
3277
+ export declare enum AddonParentTypeEnum {
3278
+ RESERVATION = "reservation",
3279
+ SLOT = "slot"
3273
3280
  }
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;
3281
+ export declare enum EEmailStatus {
3282
+ SENT = "sent",
3283
+ OPENED = "opened",
3284
+ PAID = "paid",
3285
+ CANCELED = "canceled"
3286
3286
  }
3287
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3288
- destinationId?: string;
3289
- stripeCustomerId?: string;
3290
- fee?: number;
3287
+ export declare enum PaymentSettingStatusEnum {
3288
+ ENABLED = 1,
3289
+ DISABLED_REDIRECT = 2,
3290
+ DISABLED_INFO_ONLY = 3,
3291
+ DISABLED_EMAIL = 4
3291
3292
  }
3292
- export interface IReservationCreatorData {
3293
- type: ResourceNameTypeEnum;
3294
- id: number;
3295
- organizationId: number;
3296
- startDate: string;
3297
- endDate: string;
3298
- sportId: number;
3293
+ export declare enum NotifyMethodEnum {
3294
+ EMAIL = "Email"
3295
+ }
3296
+ export declare enum EStartDateFilter {
3297
+ LessThan = "lt",
3298
+ GreaterOrEqualTo = "gte"
3299
3299
  }
3300
3300
  export declare class ColumnNumericTransformer {
3301
3301
  to(data: number): number;
@@ -3418,6 +3418,10 @@ export declare class ImportedReservationDto {
3418
3418
  slots?: ImportedSlotDto[];
3419
3419
  addons?: ImportedSlotProductDto[];
3420
3420
  }
3421
+ export declare class Lock extends BondBaseEntity {
3422
+ name: string;
3423
+ locked?: Date;
3424
+ }
3421
3425
  export declare class GameSlots extends BondBaseEntity {
3422
3426
  entityType: string;
3423
3427
  entityId: number;
@@ -3454,10 +3458,6 @@ export declare class TeamEvents extends BondBaseEntity {
3454
3458
  eventId: number | null;
3455
3459
  status: number | null;
3456
3460
  }
3457
- export declare class Lock extends BondBaseEntity {
3458
- name: string;
3459
- locked?: Date;
3460
- }
3461
3461
  export interface ValidatedMonthAndDay {
3462
3462
  valid: boolean;
3463
3463
  month?: number;
@@ -3479,12 +3479,6 @@ export interface PaymentStatusesDict {
3479
3479
  export interface PaymentStatusDict {
3480
3480
  [id: number]: ReservationPaymentStatusEnum;
3481
3481
  }
3482
- export declare class CreateMonitorConfigDto {
3483
- facilityId: number;
3484
- name: string;
3485
- code: string;
3486
- config: any;
3487
- }
3488
3482
  export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3489
3483
  facilityId: number;
3490
3484
  code: string;
@@ -3497,103 +3491,6 @@ export declare class NotifyTracker extends BondBaseEntity {
3497
3491
  notfiyMethodtype: NotifyMethodEnum;
3498
3492
  destination: string;
3499
3493
  }
3500
- export declare class ByOrganizationIdDto {
3501
- organizationId: number;
3502
- }
3503
- export declare class OptionalFindByOrganizationIdDto {
3504
- organizationId?: number;
3505
- }
3506
- export declare class FindUnallocatedEventsIdsFiltersDto {
3507
- programsIds?: string;
3508
- sessionsIds?: string;
3509
- segmentsIds?: string;
3510
- startDate?: string;
3511
- endDate?: string;
3512
- months?: string;
3513
- dow?: string;
3514
- }
3515
- export declare class FindUnallocatedEventsFiltersDto extends PaginationQuery {
3516
- programsIds?: string;
3517
- sessionsIds?: string;
3518
- segmentsIds?: string;
3519
- startDate?: string;
3520
- endDate?: string;
3521
- months?: string;
3522
- dow?: string;
3523
- }
3524
- export declare class Organization extends BondBaseEntity {
3525
- name: string | null;
3526
- email: string | null;
3527
- twitter: string | null;
3528
- facebook: string | null;
3529
- instagram: string | null;
3530
- website: string | null;
3531
- blog: string | null;
3532
- phoneNumber: string | null;
3533
- waiverDoc: string | null;
3534
- about: string | null;
3535
- tagline: string | null;
3536
- status: number | null;
3537
- addressId: number | null;
3538
- merchantId: number | null;
3539
- userCreatorId: number | null;
3540
- parentId: number | null;
3541
- paymentSettings: object | null;
3542
- settings: object | null;
3543
- isClaimed: boolean | null;
3544
- sports: number[] | null;
3545
- mainMediaId: number | null;
3546
- deletedAt: Date | null;
3547
- organizationActivityTypes: number[] | null;
3548
- organizationTypes: number[] | null;
3549
- organizationAudienceTypes: number[] | null;
3550
- organizationGenders: number[] | null;
3551
- questionnaireId: number | null;
3552
- membershipQuestionnaireId: number | null;
3553
- feeRate: number;
3554
- feeAddDollarRate: number;
3555
- achFeeRate: number;
3556
- achFeeAddDollarRate: number;
3557
- maxAchFee: number;
3558
- cashFeeRate: number;
3559
- cashFeeAddDollarRate: number;
3560
- terminalFeeRate: number;
3561
- terminalFeeAddDollarRate: number;
3562
- checkFeeRate: number;
3563
- checkFeeAddDollarRate: number;
3564
- otherFeeRate: number;
3565
- otherFeeAddDollarRate: number;
3566
- balanceFeeRate: number;
3567
- balanceFeeAddDollarRate: number;
3568
- address: Address;
3569
- mainMedia: Media;
3570
- brandings: OrganizationBranding[];
3571
- brandingsV2?: OrganizationBranding[];
3572
- }
3573
- export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3574
- key?: string;
3575
- vaule?: string;
3576
- version: number;
3577
- organization: Organization;
3578
- }
3579
- export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3580
- mainAdminUserId?: number;
3581
- }
3582
- export declare class OrganizationUsers extends BondBaseEntity {
3583
- organisationId: number | null;
3584
- userId: number | null;
3585
- }
3586
- export interface UnallocatedEventsFilters {
3587
- programsIds?: number[];
3588
- sessionsIds?: number[];
3589
- segmentsIds?: number[];
3590
- durations?: Duration[];
3591
- daysOfWeek?: number[];
3592
- }
3593
- export interface Duration {
3594
- startDate: string;
3595
- endDate: string;
3596
- }
3597
3494
  export declare class CustomerIdDto {
3598
3495
  customerId: number;
3599
3496
  }
@@ -3748,6 +3645,12 @@ export declare class VoidLineItemDto {
3748
3645
  isEdit?: boolean;
3749
3646
  amount?: number;
3750
3647
  }
3648
+ export declare class CreateMonitorConfigDto {
3649
+ facilityId: number;
3650
+ name: string;
3651
+ code: string;
3652
+ config: any;
3653
+ }
3751
3654
  export interface PaymentResult {
3752
3655
  paymentMethodId: string;
3753
3656
  paymentMethodType: PaymentMethodTypeEnum;
@@ -3783,6 +3686,103 @@ export interface RefundResultWithLineItemsDict extends PaymentsResults {
3783
3686
  failedLineItems: Map<number, RefundLineItemAmountDto>;
3784
3687
  totalAmountProcessed: number;
3785
3688
  }
3689
+ export declare class ByOrganizationIdDto {
3690
+ organizationId: number;
3691
+ }
3692
+ export declare class OptionalFindByOrganizationIdDto {
3693
+ organizationId?: number;
3694
+ }
3695
+ export declare class FindUnallocatedEventsIdsFiltersDto {
3696
+ programsIds?: string;
3697
+ sessionsIds?: string;
3698
+ segmentsIds?: string;
3699
+ startDate?: string;
3700
+ endDate?: string;
3701
+ months?: string;
3702
+ dow?: string;
3703
+ }
3704
+ export declare class FindUnallocatedEventsFiltersDto extends PaginationQuery {
3705
+ programsIds?: string;
3706
+ sessionsIds?: string;
3707
+ segmentsIds?: string;
3708
+ startDate?: string;
3709
+ endDate?: string;
3710
+ months?: string;
3711
+ dow?: string;
3712
+ }
3713
+ export declare class Organization extends BondBaseEntity {
3714
+ name: string | null;
3715
+ email: string | null;
3716
+ twitter: string | null;
3717
+ facebook: string | null;
3718
+ instagram: string | null;
3719
+ website: string | null;
3720
+ blog: string | null;
3721
+ phoneNumber: string | null;
3722
+ waiverDoc: string | null;
3723
+ about: string | null;
3724
+ tagline: string | null;
3725
+ status: number | null;
3726
+ addressId: number | null;
3727
+ merchantId: number | null;
3728
+ userCreatorId: number | null;
3729
+ parentId: number | null;
3730
+ paymentSettings: object | null;
3731
+ settings: object | null;
3732
+ isClaimed: boolean | null;
3733
+ sports: number[] | null;
3734
+ mainMediaId: number | null;
3735
+ deletedAt: Date | null;
3736
+ organizationActivityTypes: number[] | null;
3737
+ organizationTypes: number[] | null;
3738
+ organizationAudienceTypes: number[] | null;
3739
+ organizationGenders: number[] | null;
3740
+ questionnaireId: number | null;
3741
+ membershipQuestionnaireId: number | null;
3742
+ feeRate: number;
3743
+ feeAddDollarRate: number;
3744
+ achFeeRate: number;
3745
+ achFeeAddDollarRate: number;
3746
+ maxAchFee: number;
3747
+ cashFeeRate: number;
3748
+ cashFeeAddDollarRate: number;
3749
+ terminalFeeRate: number;
3750
+ terminalFeeAddDollarRate: number;
3751
+ checkFeeRate: number;
3752
+ checkFeeAddDollarRate: number;
3753
+ otherFeeRate: number;
3754
+ otherFeeAddDollarRate: number;
3755
+ balanceFeeRate: number;
3756
+ balanceFeeAddDollarRate: number;
3757
+ address: Address;
3758
+ mainMedia: Media;
3759
+ brandings: OrganizationBranding[];
3760
+ brandingsV2?: OrganizationBranding[];
3761
+ }
3762
+ export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3763
+ key?: string;
3764
+ vaule?: string;
3765
+ version: number;
3766
+ organization: Organization;
3767
+ }
3768
+ export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3769
+ mainAdminUserId?: number;
3770
+ }
3771
+ export declare class OrganizationUsers extends BondBaseEntity {
3772
+ organisationId: number | null;
3773
+ userId: number | null;
3774
+ }
3775
+ export interface UnallocatedEventsFilters {
3776
+ programsIds?: number[];
3777
+ sessionsIds?: number[];
3778
+ segmentsIds?: number[];
3779
+ durations?: Duration[];
3780
+ daysOfWeek?: number[];
3781
+ }
3782
+ export interface Duration {
3783
+ startDate: string;
3784
+ endDate: string;
3785
+ }
3786
3786
  export declare class AddonDto {
3787
3787
  productId: number;
3788
3788
  id?: number;