@bondsports/types 0.0.134 → 0.0.135

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
@@ -20,13 +20,6 @@ export declare class UserAnswersDto {
20
20
  export declare class GetByQuestionnaireIdsDto {
21
21
  questionnaireIds: string;
22
22
  }
23
- export declare enum EConfigurationKeys {
24
- MAX_ALLOWED_PM_FAILURE = "max_allowed_pm_failure"
25
- }
26
- export declare enum EFailedPaymentReasons {
27
- CARD_BLOCKED = "card_blocked_by_bond",
28
- UNKNOWN = "unknown"
29
- }
30
23
  export declare class FindBookingTypeSettingDto {
31
24
  organizationId: number;
32
25
  facilityId: number;
@@ -34,6 +27,13 @@ export declare class FindBookingTypeSettingDto {
34
27
  bookingDate: string;
35
28
  bookingTime: string;
36
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
37
  export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
38
38
  membershipId: number;
39
39
  }
@@ -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
  }
@@ -889,50 +889,6 @@ export declare class MoveParticipantDto {
889
889
  resourceId: number;
890
890
  invoiceId: number;
891
891
  }
892
- export declare class FindProgramsByOrganizationIdDto {
893
- organizationId: number;
894
- programType?: ProgramTypesEnum;
895
- }
896
- export declare class FindProgramByIdDto {
897
- programId: number;
898
- }
899
- export declare class FindProgramByOrgIdAndIdDto {
900
- programId: number;
901
- organizationId: number;
902
- }
903
- export declare class BaseProgramDto {
904
- type: ProgramTypesEnum;
905
- name: string;
906
- sport: SportsEnum;
907
- minAge: string;
908
- maxAge: string;
909
- gender: GenderEnum;
910
- level?: LevelOfPlayEnum[];
911
- description?: string;
912
- GL?: string;
913
- status: PublishingStatusEnum;
914
- organizationId: number;
915
- userCreatorId: number;
916
- highlights: ProgramHighlights[];
917
- longDescription?: string;
918
- requiredProductIds: number[];
919
- }
920
- export declare class CreateProgramDto extends BaseProgramDto {
921
- }
922
- export declare class UpdateProgramDto extends BaseProgramDto {
923
- programId: number;
924
- mainMediaId: number;
925
- }
926
- export declare class UpdateProgramStatusDto {
927
- programId: number;
928
- status: PublishingStatusEnum;
929
- }
930
- export declare class ProgramHighlightDto {
931
- data: string;
932
- ordinal: number;
933
- type: ProgramHighlightTypeEnum;
934
- title: string;
935
- }
936
892
  export declare class PurchasePaymentDto {
937
893
  token: string;
938
894
  type: PaymentMethodTypeEnum;
@@ -1014,6 +970,50 @@ export declare class CreateResourceGroupDto {
1014
970
  }
1015
971
  export declare class UpdateResourceGroupDto extends CreateResourceGroupDto {
1016
972
  }
973
+ export declare class FindProgramsByOrganizationIdDto {
974
+ organizationId: number;
975
+ programType?: ProgramTypesEnum;
976
+ }
977
+ export declare class FindProgramByIdDto {
978
+ programId: number;
979
+ }
980
+ export declare class FindProgramByOrgIdAndIdDto {
981
+ programId: number;
982
+ organizationId: number;
983
+ }
984
+ export declare class BaseProgramDto {
985
+ type: ProgramTypesEnum;
986
+ name: string;
987
+ sport: SportsEnum;
988
+ minAge: string;
989
+ maxAge: string;
990
+ gender: GenderEnum;
991
+ level?: LevelOfPlayEnum[];
992
+ description?: string;
993
+ GL?: string;
994
+ status: PublishingStatusEnum;
995
+ organizationId: number;
996
+ userCreatorId: number;
997
+ highlights: ProgramHighlights[];
998
+ longDescription?: string;
999
+ requiredProductIds: number[];
1000
+ }
1001
+ export declare class CreateProgramDto extends BaseProgramDto {
1002
+ }
1003
+ export declare class UpdateProgramDto extends BaseProgramDto {
1004
+ programId: number;
1005
+ mainMediaId: number;
1006
+ }
1007
+ export declare class UpdateProgramStatusDto {
1008
+ programId: number;
1009
+ status: PublishingStatusEnum;
1010
+ }
1011
+ export declare class ProgramHighlightDto {
1012
+ data: string;
1013
+ ordinal: number;
1014
+ type: ProgramHighlightTypeEnum;
1015
+ title: string;
1016
+ }
1017
1017
  export declare class ResourceDto {
1018
1018
  type: ResourceNameTypeEnum;
1019
1019
  id: number;
@@ -1093,19 +1093,6 @@ export declare class FindByFamilyAccountIdDto {
1093
1093
  export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1094
1094
  organizationId: number;
1095
1095
  }
1096
- export declare class ActivityLogRecord extends BondBaseEntity {
1097
- entityType: ResourceNameTypeEnum;
1098
- entityId: number;
1099
- organizationId?: number;
1100
- userId?: number;
1101
- customerId?: number;
1102
- performingUserId: number;
1103
- description: string;
1104
- actionType: ActionTypesEnum;
1105
- sourcePlatform: ActionSourcePlatformEnum;
1106
- oldValue?: any;
1107
- newValue?: any;
1108
- }
1109
1096
  export declare class ActivityTimes extends BondBaseEntity {
1110
1097
  parentType: ResourceNameTypeEnum | ProductTypesEnum;
1111
1098
  parentId: number;
@@ -1119,17 +1106,6 @@ export declare class ActivityTimes extends BondBaseEntity {
1119
1106
  proudct: Product;
1120
1107
  event: Event;
1121
1108
  }
1122
- export declare class Address extends BondBaseEntity {
1123
- city?: string;
1124
- street?: string;
1125
- streetNum?: string;
1126
- aptNum?: string;
1127
- zip?: string;
1128
- country?: string;
1129
- state?: string;
1130
- geo: any;
1131
- deletedAt?: Date;
1132
- }
1133
1109
  export declare class Answer extends OrganizationConnectionBaseEntity {
1134
1110
  questionId: number;
1135
1111
  question?: Questions;
@@ -1143,6 +1119,30 @@ export declare class Answer extends OrganizationConnectionBaseEntity {
1143
1119
  metaData: any | null;
1144
1120
  questionText: string | null;
1145
1121
  }
1122
+ export declare class ActivityLogRecord extends BondBaseEntity {
1123
+ entityType: ResourceNameTypeEnum;
1124
+ entityId: number;
1125
+ organizationId?: number;
1126
+ userId?: number;
1127
+ customerId?: number;
1128
+ performingUserId: number;
1129
+ description: string;
1130
+ actionType: ActionTypesEnum;
1131
+ sourcePlatform: ActionSourcePlatformEnum;
1132
+ oldValue?: any;
1133
+ newValue?: any;
1134
+ }
1135
+ export declare class Address extends BondBaseEntity {
1136
+ city?: string;
1137
+ street?: string;
1138
+ streetNum?: string;
1139
+ aptNum?: string;
1140
+ zip?: string;
1141
+ country?: string;
1142
+ state?: string;
1143
+ geo: any;
1144
+ deletedAt?: Date;
1145
+ }
1146
1146
  export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1147
1147
  questionnaireId: number;
1148
1148
  userId?: number;
@@ -1190,6 +1190,11 @@ export declare class BookedSessions extends BondBaseEntity {
1190
1190
  publicNotes?: string;
1191
1191
  slotType?: SlotTypeEnum;
1192
1192
  }
1193
+ export declare class Configuration extends BondBaseEntity {
1194
+ area: string;
1195
+ key: string;
1196
+ value: string;
1197
+ }
1193
1198
  export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity {
1194
1199
  parentId: number;
1195
1200
  parentType: ResourceNameTypeEnum;
@@ -1200,11 +1205,6 @@ export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity
1200
1205
  endTimeInDay: string;
1201
1206
  directBookingFor: DirectBookingTypesEnum;
1202
1207
  }
1203
- export declare class Configuration extends BondBaseEntity {
1204
- area: string;
1205
- key: string;
1206
- value: string;
1207
- }
1208
1208
  export declare class Connection extends BondBaseEntity {
1209
1209
  connType: number | null;
1210
1210
  from: number | null;
@@ -1393,10 +1393,6 @@ export declare class FacilityToResource extends BondBaseEntity {
1393
1393
  facilityId: number;
1394
1394
  resourceId: number;
1395
1395
  }
1396
- export declare class FamilyAccount extends BondBaseEntity {
1397
- name: string | null;
1398
- userInFamilyAccounts: UserInFamilyAccount[];
1399
- }
1400
1396
  export declare class FutureInstallment extends OrganizationConnectionBaseEntity {
1401
1397
  userId: number;
1402
1398
  invoiceId: number;
@@ -1411,6 +1407,10 @@ export declare class FutureInstallment extends OrganizationConnectionBaseEntity
1411
1407
  export declare class GlCodes extends OrganizationConnectionBaseEntity {
1412
1408
  code: string;
1413
1409
  }
1410
+ export declare class FamilyAccount extends BondBaseEntity {
1411
+ name: string | null;
1412
+ userInFamilyAccounts: UserInFamilyAccount[];
1413
+ }
1414
1414
  export declare class Group extends BondBaseEntity {
1415
1415
  name: string;
1416
1416
  description?: string;
@@ -1440,6 +1440,35 @@ export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity
1440
1440
  discountMethod?: DiscountMethodsEnum;
1441
1441
  discountValue?: number;
1442
1442
  }
1443
+ export declare class GroupsInDivisions extends BondBaseEntity {
1444
+ groupId: number;
1445
+ divisionId: number;
1446
+ deletedAt?: Date;
1447
+ }
1448
+ export declare class Invoice extends BondBaseEntity {
1449
+ invoiceId: string | null;
1450
+ price: number | null;
1451
+ status: InvoiceStatusEnum | null;
1452
+ sentForClientDate: Date | null;
1453
+ payingUserId?: number | null;
1454
+ invoiceToPayments: InvoiceToPayment[];
1455
+ lineItems: LineItems[];
1456
+ lineItemHistory: LineItemHistory[];
1457
+ paymentStatus: PaymentStatusEnum;
1458
+ paymentMethodId?: string;
1459
+ paymentType?: PaymentMethodTypeEnum;
1460
+ paidAmount: number;
1461
+ currency: CurrencyEnum;
1462
+ mainPaymentId: number;
1463
+ isScheduled: boolean;
1464
+ isRefunded: boolean;
1465
+ isVoided: boolean;
1466
+ creatingUserId: number;
1467
+ shiftId: number;
1468
+ platform: PlatformsEnum;
1469
+ invoiceNotes: InvoiceNote[];
1470
+ slots: Slot[];
1471
+ }
1443
1472
  export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1444
1473
  email: string;
1445
1474
  status: EEmailStatus;
@@ -1460,11 +1489,6 @@ export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
1460
1489
  invoiceId: number;
1461
1490
  invoice: Invoice;
1462
1491
  }
1463
- export declare class GroupsInDivisions extends BondBaseEntity {
1464
- groupId: number;
1465
- divisionId: number;
1466
- deletedAt?: Date;
1467
- }
1468
1492
  export declare class InvoiceToPayment extends BondBaseEntity {
1469
1493
  invoiceId: number;
1470
1494
  paymentId: number;
@@ -1543,36 +1567,12 @@ export declare class LeagueSeasonRelations {
1543
1567
  league?: boolean;
1544
1568
  facilities?: boolean;
1545
1569
  }
1546
- export declare class Invoice extends BondBaseEntity {
1547
- invoiceId: string | null;
1548
- price: number | null;
1549
- status: InvoiceStatusEnum | null;
1550
- sentForClientDate: Date | null;
1551
- payingUserId?: number | null;
1552
- invoiceToPayments: InvoiceToPayment[];
1553
- lineItems: LineItems[];
1554
- lineItemHistory: LineItemHistory[];
1555
- paymentStatus: PaymentStatusEnum;
1556
- paymentMethodId?: string;
1557
- paymentType?: PaymentMethodTypeEnum;
1570
+ export declare class LineItemHistory extends BondBaseEntity {
1571
+ invoiceId: number;
1572
+ paymentId: number;
1573
+ lineItemId: number;
1558
1574
  paidAmount: number;
1559
- currency: CurrencyEnum;
1560
- mainPaymentId: number;
1561
- isScheduled: boolean;
1562
- isRefunded: boolean;
1563
- isVoided: boolean;
1564
- creatingUserId: number;
1565
- shiftId: number;
1566
- platform: PlatformsEnum;
1567
- invoiceNotes: InvoiceNote[];
1568
- slots: Slot[];
1569
- }
1570
- export declare class LineItemHistory extends BondBaseEntity {
1571
- invoiceId: number;
1572
- paymentId: number;
1573
- lineItemId: number;
1574
- paidAmount: number;
1575
- unitPaidAmount: number;
1575
+ unitPaidAmount: number;
1576
1576
  currency: CurrencyEnum;
1577
1577
  payment: Payment;
1578
1578
  lineItem: LineItems;
@@ -1795,6 +1795,15 @@ export declare class PaymentFailure extends OrganizationConnectionBaseEntity {
1795
1795
  reason: EFailedPaymentReasons;
1796
1796
  errorMessage: string;
1797
1797
  }
1798
+ export declare class PaymentNote extends OrganizationConnectionBaseEntity {
1799
+ content: string;
1800
+ creatingUserId: number;
1801
+ user: User;
1802
+ isPublic: boolean;
1803
+ deletedAt: Date;
1804
+ paymentId: number;
1805
+ payment: Payment;
1806
+ }
1798
1807
  export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1799
1808
  paymentPlanId: number;
1800
1809
  paymentDate: Date;
@@ -2381,914 +2390,905 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2381
2390
  membershipCollectionId?: string;
2382
2391
  programsCollectionId?: string;
2383
2392
  }
2384
- export declare class PaymentNote extends OrganizationConnectionBaseEntity {
2385
- content: string;
2386
- creatingUserId: number;
2387
- user: User;
2388
- isPublic: boolean;
2389
- deletedAt: Date;
2390
- paymentId: number;
2391
- payment: Payment;
2392
- }
2393
- export declare enum EntitlementTermsTypesEnum {
2394
- QUESTION = "question",
2395
- CITY = "city",
2396
- MEMBERSHIP = "membership"
2393
+ export interface IEntitlementTerms {
2394
+ type: EntitlementTermsTypesEnum;
2395
+ id?: number;
2396
+ value?: string;
2397
+ minValue?: string;
2398
+ maxValue?: string;
2397
2399
  }
2398
- export declare enum ResourceNameTypeEnum {
2399
- EVENT = "event",
2400
- VENUE = "venue",
2401
- TEAM = "team",
2402
- LEAGUE = "league",
2403
- USER = "user",
2404
- ORGANIZATION = "organization",
2405
- APP = "app",
2406
- FEED = "feed",
2407
- MATCH = "match",
2408
- ROUND = "round",
2409
- PORTAL = "portal",
2410
- SEASON = "season",
2411
- TOURNAMENT = "tournament",
2412
- MEMBERSHIP = "membership",
2413
- DIVISION = "division",
2414
- GAMESLOT = "gameslot",
2415
- SPACE = "space",
2416
- RESERVATION = "reservation",
2417
- INVOICE = "invoice",
2418
- CUSTOMER = "customer",
2419
- PACKAGE = "package",
2420
- FACILITY = "facility",
2421
- PROGRAM = "program",
2422
- PROGRAM_SEASON = "program_season",
2423
- PRODUCT = "product",
2424
- GROUP = "group",
2425
- VARIANT = "variant",
2426
- SLOT = "slot",
2427
- ADDON = "addon"
2400
+ export interface IQuestionAnswerObject {
2401
+ questionId: number;
2402
+ value: string;
2428
2403
  }
2429
- export declare enum DirectBookingTypesEnum {
2430
- DIRECT_FOR_ALL = "all",
2431
- DIRECT_FOR_NONE = "none",
2432
- DIRECT_VETTED_ONLY = "vetted_only",
2433
- NO_SETTING = "no_setting"
2404
+ export interface ILowestPriceForItem {
2405
+ itemId: number;
2406
+ itemType: ResourceNameTypeEnum;
2407
+ groupId: number;
2408
+ groupName?: string;
2409
+ price: number;
2410
+ overridesPrice: boolean;
2434
2411
  }
2435
- export declare enum GenderEnum {
2436
- OTHER = 1,
2437
- MALE = 2,
2438
- FEMALE = 3
2412
+ export interface IResourcesAvailability {
2413
+ resourceType: ResourceNameTypeEnum;
2414
+ quantity: number;
2415
+ resourcesIds: number[];
2416
+ isPunchCard: boolean;
2417
+ resources?: any[];
2439
2418
  }
2440
- export declare enum LevelOfPlayEnum {
2441
- BEGINNER = 1,
2442
- INTERMEDIATE = 2,
2443
- ADVANCED = 3,
2444
- SEMIPRO = 4,
2445
- SPECTATOR = 5
2419
+ export interface IPackageResponse {
2420
+ parentProduct: Product;
2421
+ children: IChildProduct[];
2446
2422
  }
2447
- export declare enum ProgramTypesEnum {
2448
- LEAGUE = 0,
2449
- TOURNAMENT = 1,
2450
- CLASS = 2,
2451
- CLINIC = 3,
2452
- CAMP = 4,
2453
- LESSON = 5,
2454
- CLUB_TEAM = 6
2423
+ export interface IChildProduct {
2424
+ product: Product;
2425
+ relationType: PackageProductsRelationTypeEnum;
2426
+ timePeriod?: AddonTimePeriodEnum;
2455
2427
  }
2456
- export declare enum ProgramSeasonTypesEnum {
2457
- ROUND_ROBIN = 1,
2458
- BRACKETS = 2,
2459
- CAMP_CLINIC_CLASS = 3
2428
+ export interface ISeasonAttendeeInfo {
2429
+ applicationAnswers: Answer[];
2430
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2431
+ invoices: Invoice[];
2432
+ payments: Payment[];
2433
+ products: Product[];
2434
+ redeemNext: ProductsUsers;
2460
2435
  }
2461
- export declare enum SportsEnum {
2462
- SOFTBALL = 1,
2463
- BASKETBALL = 2,
2464
- FOOTBALL = 3,
2465
- SOCCER = 4,
2466
- BOWLING = 5,
2467
- BOCCEBALL = 6,
2468
- CORNHOLE = 7,
2469
- DODGEBALL = 8,
2470
- FRISBEE = 9,
2471
- HOCKEY = 10,
2472
- KICKBALL = 11,
2473
- LACROSSE = 12,
2474
- PINGPONG = 13,
2475
- RUGBY = 14,
2476
- SKEEBALL = 15,
2477
- TENNIS = 16,
2478
- VOLLEYBALL = 17,
2479
- WIFFLEBALL = 18,
2480
- BADMINTON = 19,
2481
- FITNESS = 20,
2482
- GOLF = 21,
2483
- PILATES = 22,
2484
- RUNNING = 23,
2485
- SKIING = 24,
2486
- SNOWBOARDING = 25,
2487
- YOGA = 26,
2488
- BROOMBALL = 27,
2489
- CRICKET = 28,
2490
- CROSSFIT = 29,
2491
- CYCLING = 30,
2492
- FIELD_HOCKEY = 31,
2493
- RACQUETBALL = 32,
2494
- SPINNING = 33,
2495
- SQUASH = 34,
2496
- SURFING = 35,
2497
- SWIMMING = 36,
2498
- WIND_SURFING = 37,
2499
- ADVENTURE = 38,
2500
- BOXING = 39,
2501
- BASEBALL = 40,
2502
- DANCE = 41,
2503
- KICKBOXING = 42,
2504
- MARTIAL_ARTS = 43,
2505
- OUTDOORS = 44,
2506
- ROWING = 45,
2507
- SAILING = 46,
2508
- SUP = 47,
2509
- TRIATHLON = 48,
2510
- HANDBALL = 49,
2511
- CATCHBALL = 50,
2512
- BLITZBALL = 51,
2513
- ROLLER_DERBY = 52,
2514
- ICE_SKATING = 53,
2515
- PICKLEBALL = 54,
2516
- AXE_THROWING = 55,
2517
- FURSAL = 56,
2518
- BIRTHDAY = 57,
2519
- CORPRATE_EVENTS = 58,
2520
- OTHER = 999
2436
+ export interface ISeasonAttendeeListInfo {
2437
+ userId: number;
2438
+ userFirstName: string;
2439
+ userLastName: string;
2440
+ userGender: number;
2441
+ userBirthDate: Date;
2442
+ userProfilePicUrl: string;
2443
+ customerId: number;
2444
+ customerEmail: string;
2445
+ paymentStatus: string;
2446
+ productName: string;
2447
+ punchCard: boolean;
2521
2448
  }
2522
- export declare enum PublishingStatusEnum {
2523
- DRAFT = 1,
2524
- PUBLISHED = 2,
2525
- CLOSED = 3,
2526
- CANCELLED = 4,
2527
- ARCHIVE = 5,
2528
- UNPUBLISHED = 6
2449
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2450
+ segmentType: ResourceNameTypeEnum;
2451
+ participantRegisteredDate?: string;
2529
2452
  }
2530
- export declare enum ProgramHighlightTypeEnum {
2531
- OTHER = 1,
2532
- MINAGE = 2,
2533
- MAXAGE = 3,
2534
- GENDER = 4,
2535
- LEVELOFPLAY = 5,
2536
- GAMESSEASON = 6,
2537
- MINWEEK = 7,
2538
- SURFACE = 8,
2539
- FORMAT = 9,
2540
- PLAYERS_PER_TEAM = 10,
2541
- MATCH_LENGTH = 12
2453
+ export declare class EventAsSeasonSegment extends Event {
2454
+ segmentType: ResourceNameTypeEnum;
2455
+ participantRegisteredDate?: string;
2542
2456
  }
2543
- export declare enum RequestStatusEnum {
2544
- PENDING = 1,
2545
- ACCEPTED = 2,
2546
- DECLINED = 3
2457
+ export interface ITokenResonse {
2458
+ token: string;
2547
2459
  }
2548
- export declare enum PaymentStatusEnum {
2549
- NOT_PAID = "not_paid",
2550
- PARTIAL_PAYMENT = "partial",
2551
- FULLY_PAID = "paid",
2552
- REFUNDED = "refunded",
2553
- VOID = "void"
2460
+ export interface IStripeBondInvoices {
2461
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2462
+ bondPaidPayment: Payment;
2463
+ invoice?: Invoice;
2464
+ customer?: Customer;
2554
2465
  }
2555
- export declare enum ReservationExtendedEnum {
2556
- PURCHASE_ORDER = "purchase_order"
2466
+ export interface IPartialPaymentData {
2467
+ purchasingUserId: number;
2468
+ paymentData: PurchasePaymentDto;
2469
+ amountToPay: number;
2557
2470
  }
2558
- export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2559
- export declare enum ReservationStatusEnum {
2560
- PLANNED = "Planned",
2561
- APPROVED = "Approved",
2562
- AWAITING_ADMIN = "Awaiting Admin",
2563
- AWAITING_CUSTOMER = "Awaiting Customer",
2564
- REJECTED = "Rejected",
2565
- CANCELED = "Canceled"
2471
+ export interface IPayment {
2472
+ id: number;
2473
+ total: number;
2474
+ paymentMethod: PaymentMethodTypeEnum;
2475
+ status: PaymentStatusEnum;
2476
+ createdAt: Date;
2477
+ invoices: number[];
2566
2478
  }
2567
- export declare enum PaymentStatusV1Enum {
2568
- SENT_TO_CLIENT = 1,
2569
- SENT_FOR_PAYMENT = 2,
2570
- ACCEPTED = 3,
2571
- REJECTED = 4,
2572
- CANCELLED = 5,
2573
- FRAUD = 6,
2574
- NOT_RELEVANT = 7,
2575
- PENDING = 8
2479
+ export interface IPaginationData<T> {
2480
+ meta: {
2481
+ totalItems: number;
2482
+ itemsPerPage: number;
2483
+ totalPages: number;
2484
+ currentPage: number;
2485
+ };
2486
+ data: T[];
2576
2487
  }
2577
- export declare enum PaymentMethodsEnum {
2578
- STRIPE = 1,
2579
- CASH = 3
2488
+ export interface IPricesOfProductsResults {
2489
+ productId: number;
2490
+ userId: number;
2491
+ price: number;
2492
+ groupId?: number;
2493
+ groupName?: string;
2494
+ originalPrice?: number;
2495
+ priceWithoutTax: number;
2496
+ tax: number;
2497
+ isTaxInclusive: boolean;
2580
2498
  }
2581
- export declare enum PackageProductsRelationTypeEnum {
2582
- CHILD = "child",
2583
- UPSALE = "upsale"
2499
+ export interface IPaymentMethodToFundLeft {
2500
+ paymentType: PaymentMethodTypeEnum;
2501
+ paymentMethodId: string;
2502
+ fundLeft: number;
2503
+ ccLast4?: string;
2504
+ ccBrand?: string;
2584
2505
  }
2585
- export declare enum AddonTimePeriodEnum {
2586
- FULL = "full",
2587
- SESSION = "session",
2588
- EVENT = "event"
2506
+ export interface IVariantsAndTitle {
2507
+ title: VariantTitle;
2508
+ variants: Variant[];
2589
2509
  }
2590
- export declare enum CurrencyEnum {
2591
- USD = "USD"
2510
+ export interface IProgramSeasonActivityTimes {
2511
+ dayOfWeek: number;
2512
+ open: string;
2513
+ close: string;
2592
2514
  }
2593
- export declare enum NotificationTypeEnum {
2594
- BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2595
- BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2596
- BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2515
+ export interface IProgramSeasonActivityTimesAsDates {
2516
+ date: string;
2517
+ startTime: string;
2518
+ endTime: string;
2597
2519
  }
2598
- export declare enum ProductTypesEnum {
2599
- RESERVATION = "reservation",
2600
- REGISTRATION = "registration",
2601
- MEMBERSHIP = "membership",
2602
- GOODS = "goods",
2603
- PACKAGE = "package",
2604
- REFUND_COMPENSATION = "refund",
2605
- CASH_OVER_SHORT = "cash_over_short",
2606
- PETTY_CASH = "petty_cash",
2607
- LEAGUE_REGISTRATION = "league_registration",
2608
- TAX = "tax"
2520
+ export interface IBlockedDates {
2521
+ name: string;
2522
+ startDate: Date;
2523
+ endDate: Date;
2609
2524
  }
2610
- export declare enum InvoiceStatusEnum {
2611
- ACTIVE = "active",
2612
- WAITING_ADMIN = "waitingAdmin",
2613
- WAITING_CLIENT = "waitingClient",
2614
- CANCELED = "canceled"
2525
+ export interface ISingleMemberForRenewal {
2526
+ member_id: number;
2527
+ member_membershipId: number;
2528
+ member_userId: number;
2529
+ member_nextPaymentMethodId?: string;
2530
+ member_nextPaymentType?: PaymentMethodTypeEnum;
2531
+ member_answerTitleIds?: number[];
2532
+ member_organizationId: number;
2533
+ product_productPrice: number;
2534
+ product_productId: number;
2535
+ invoice_payingUserId: number;
2536
+ invoice_paymentMethodId: string;
2537
+ invoice_paymentType: PaymentMethodTypeEnum;
2538
+ endDate: Date;
2539
+ membership_name: string;
2540
+ user_firstName: string;
2541
+ user_lastName: string;
2542
+ user_email: string;
2615
2543
  }
2616
- export declare enum LineItemsStatusEnum {
2617
- USER_PRODUCT = "UserProduct",
2618
- RENTAL_PRODUCT = "RentalProduct"
2544
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2545
+ package_parentProductId: number;
2546
+ product2_productPrice: number;
2547
+ familyid: number;
2548
+ invoice_id: number;
2619
2549
  }
2620
- export declare enum ProductSubTypesEnum {
2621
- SEASON_INDIVIDUAL = "season_individual",
2622
- SEASON_TEAM = "season_team",
2623
- SEASON_PER_PLAYER = "season_per_player"
2550
+ export interface IResourceRegistrationData {
2551
+ id: number;
2552
+ resourceType: ResourceNameTypeEnum;
2553
+ openNumDays?: number;
2554
+ openNumMinutes?: number;
2555
+ openTime?: string;
2556
+ closeNumDays?: number;
2557
+ closeNumMinutes?: number;
2558
+ closeTime?: string;
2559
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
2624
2560
  }
2625
- export declare enum PaymentMethodTypeEnum {
2626
- CREDIT_CARD = "card",
2627
- ACH = "ach",
2628
- CASH = "cash",
2629
- CHECK = "check",
2630
- BALANCE = "balance",
2631
- CARD_ON_TERMINAL = "card-on-terminal",
2632
- OTHER = "other",
2633
- MIGRATED = "migrated",
2634
- VOID = "void"
2561
+ export interface IResourceDataForConstraintsCalc {
2562
+ id: number;
2563
+ startDate: string;
2564
+ startTime: string;
2635
2565
  }
2636
- export declare enum RefundTypeEnum {
2637
- LEAVE_BALANCE = "leave_balance",
2638
- REDUCE_BALANCE = "reduce_balance"
2566
+ export interface IRegistrationConstraintsSetting {
2567
+ numDays?: number;
2568
+ numMinutes?: number;
2639
2569
  }
2640
- export declare enum CustomerInMembershipTypeEnum {
2641
- INDIVIDUAL = "individual",
2642
- FAMILY = "family",
2643
- ORGANIZATION = "organization"
2570
+ export interface IAttendeeDataToNotify {
2571
+ firstName: string;
2572
+ lastName: string;
2573
+ email: string;
2574
+ sessionName: string;
2575
+ parentSessionName?: string;
2576
+ organizationName: string;
2577
+ programName: string;
2644
2578
  }
2645
- export declare enum MembershipTypeEnum {
2646
- FIXED = "fix_membership",
2647
- ROLLING = "rolling_membership"
2579
+ export interface IEventInSchedule {
2580
+ eventId: number;
2581
+ eventName: string;
2582
+ eventStartDate: string;
2583
+ eventEndDate: string;
2584
+ eventStartTime: string;
2585
+ eventEndTime: string;
2586
+ programId: number;
2587
+ programName: string;
2588
+ programType: ProgramTypesEnum;
2589
+ sessionId: number;
2590
+ sessionName: string;
2591
+ sports: number;
2592
+ spaces: {
2593
+ spaceId: number;
2594
+ spaceName: string;
2595
+ }[];
2596
+ status?: RegistrationValidationStatusEnum;
2648
2597
  }
2649
- export declare enum CustomerTypeEnum {
2650
- USER = "user",
2651
- FAMILY = "family",
2652
- ORGANIZATION = "organization"
2598
+ export interface ISlotInSchedule {
2599
+ facilityId: number;
2600
+ facilityName: string;
2601
+ spaces: ISpaceWithSlots[];
2653
2602
  }
2654
- export declare enum GroupStatusEnum {
2655
- ACTIVE = 1,
2656
- INACTIVE = 2,
2657
- DRAFT = 3
2603
+ export interface ISpaceWithSlots {
2604
+ id: number;
2605
+ name: string;
2606
+ slots: ISlotReservationData[];
2658
2607
  }
2659
- export declare enum FutureInstallmentStatusEnum {
2660
- FUTURE = "future",
2661
- SUCCEEDED = "succeeded",
2662
- FAILED = "failed",
2663
- CANCELED = "canceled"
2608
+ export interface ISlotReservationData {
2609
+ reservationId: number;
2610
+ reservationName: string;
2611
+ date: string;
2612
+ startTime: string;
2613
+ endTime: string;
2614
+ notes: string;
2615
+ spaceId: number;
2616
+ isRental: boolean;
2617
+ slotType: SlotTypeEnum;
2618
+ slotId: number;
2619
+ eventId: number;
2620
+ isPrivate: boolean;
2664
2621
  }
2665
- export declare enum EntryStatusEnum {
2666
- ENTERED = 1,
2667
- NOT_ENTERED = 2,
2668
- CANCELED = 3
2622
+ export interface IRawEventInSchedule extends IEventInSchedule {
2623
+ parentSessionId: number;
2624
+ parentSessionName: string;
2625
+ eventTimezone: string;
2626
+ maxParticipants: number;
2627
+ maxMaleParticipants: number;
2628
+ maxFemaleParticipants: number;
2629
+ isPunchCard: boolean;
2669
2630
  }
2670
- export declare enum PurchasedResourceStatusEnum {
2671
- ACTIVE = 1,
2672
- MOVED = 2,
2673
- CANCELED = 3
2631
+ export interface IBasicSpaceAndSlotCreator {
2632
+ id: number;
2633
+ name: string;
2634
+ bookingCreatorId: number;
2674
2635
  }
2675
- export declare enum TeamCanJoinEnum {
2676
- ANYONE = "anyone",
2677
- BY_INVITE = "byInvite",
2678
- CAPTAIN_APPROVAL = "captainApproval"
2636
+ export interface IRawSlotInSchedule {
2637
+ startDate: string;
2638
+ endDate: string;
2639
+ startTime: string;
2640
+ endTime: string;
2641
+ reservationId: number;
2642
+ eventTitle: string;
2643
+ publicNotes: string;
2644
+ spaceId: number;
2645
+ creatorType: ResourceNameTypeEnum;
2646
+ slotType: SlotTypeEnum;
2647
+ slotId: number;
2648
+ eventId: number;
2649
+ isPrivate: boolean;
2679
2650
  }
2680
- export declare enum TeamMemberStatusEnum {
2681
- PENDING = 1,
2682
- ACTIVE = 2,
2683
- DECLINED = 3,
2684
- SUSPENDED = 4,
2685
- INACTIVE = 5,
2686
- INVITED = 6
2687
- }
2688
- export declare enum TeamMemberRoleEnum {
2689
- NULL = 0,
2690
- ADMIN = 1
2651
+ export interface IPurchasedResourcesRaw {
2652
+ purchasedId: number;
2653
+ purchasedProductUserId: number;
2654
+ purchasedResourceId: number;
2655
+ purchasedResourceType: ResourceNameTypeEnum;
2656
+ purchasedStatus: PurchasedResourceStatusEnum;
2657
+ pUserId: number;
2658
+ pUserPaymentStatus: PaymentStatusEnum;
2659
+ pUserProductId: number;
2660
+ pUserProductName: string;
2661
+ pUserProductPrice: number;
2662
+ pUserProductPriceCurrency: string;
2663
+ pUserProductQuantity: number;
2664
+ pUserProductQuantityLeft: number;
2665
+ pUserUserId: number;
2691
2666
  }
2692
- export declare enum DayOfWeekEnum {
2693
- SUNDAY = 0,
2694
- MONDAY = 1,
2695
- TUESDAY = 2,
2696
- WEDNESDAY = 3,
2697
- THURSDAY = 4,
2698
- FRIDAY = 5,
2699
- SATURDAY = 6
2667
+ export interface IUsersPasses {
2668
+ userId: number;
2669
+ userFirstName: string;
2670
+ userLastName: string;
2671
+ organizationId: number;
2672
+ programId: number;
2673
+ programName: string;
2674
+ sessionId: number;
2675
+ sessionName: string;
2676
+ productId: number;
2677
+ productName: string;
2678
+ productUserId: number;
2679
+ purchaseDate: Date;
2680
+ passesLeft: number;
2700
2681
  }
2701
- export declare enum ActionTypesEnum {
2702
- CREATE = "create",
2703
- READ = "read",
2704
- UPDATE = "update",
2705
- DELETE = "delete"
2682
+ export interface ISessionsLandingPage {
2683
+ sessionId: number;
2684
+ name: string;
2685
+ startDate: Date;
2686
+ endDate: Date;
2687
+ registrationStartDate: Date;
2688
+ registrationEndDate: Date;
2689
+ sport: SportsEnum;
2690
+ minAge: string;
2691
+ maxAge: string;
2692
+ maxParticipants?: number;
2693
+ gender: GenderEnum;
2694
+ activityTimes: ActivityTimes[];
2695
+ earlyRegistrationStartDate?: Date;
2696
+ earlyRegistrationEndDate?: Date;
2697
+ lateRegistrationStartDate?: Date;
2698
+ lateRegistrationEndDate?: Date;
2699
+ attendeeCount?: number;
2700
+ segmentsOrEvents: 'segment' | 'event';
2706
2701
  }
2707
- export declare enum ActionSourcePlatformEnum {
2708
- ADMIN = "admin",
2709
- BACKOFFICE = "backoffice",
2710
- CONSUMER = "consumer"
2702
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2703
+ hasRequiredMembership: boolean;
2704
+ hasEntitledPricing: boolean;
2705
+ lowestPrice?: number;
2706
+ products?: ISessionLandingPageProduct[];
2711
2707
  }
2712
- export declare enum RolesEnum {
2713
- ORG_ADMIN = "organizationAdmin",
2714
- BOND_ADMIN = "bondAdmin"
2708
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2709
+ hasRequiredMembership: boolean;
2710
+ hasEntitledPricing: boolean;
2711
+ products?: ISessionLandingPageProduct[];
2712
+ segments?: Event[] | ProgramSeason[];
2713
+ programName: string;
2714
+ programId: number;
2715
+ levelOfPlay: LevelOfPlayEnum[];
2716
+ registrationConstraints: IResourceRegistrationData[];
2715
2717
  }
2716
- export declare enum SeasonPoolStatusEnum {
2717
- IN_POOL = 5,
2718
- ASSIGNED = 1,
2719
- QUIT = 2,
2720
- SUSPENDED = 3,
2721
- INACTIVE = 4
2718
+ export interface ISlimAddons {
2719
+ addons?: {
2720
+ id: number;
2721
+ timePeriod: AddonTimePeriodEnum;
2722
+ name: string;
2723
+ productType?: ProductTypesEnum;
2724
+ productSubType?: string;
2725
+ }[];
2722
2726
  }
2723
- export declare enum AmenitiesEnum {
2724
- HEAT = 1,
2725
- AC = 2,
2726
- WIFI = 3,
2727
- RESTROOMS = 4,
2728
- DRINKING_FOUNTAIN = 5,
2729
- PARKING = 6,
2730
- CONCESSIONS = 7,
2731
- SHELTER = 8,
2732
- PORTABLE_RESTROOMS = 9,
2733
- LIGHTS = 10,
2734
- LOCKER_ROOM = 11,
2735
- PAID_PARKING = 12,
2736
- ACCESSIBLE = 13
2727
+ export interface ISessionLandingPageProduct extends ISlimAddons {
2728
+ id: number;
2729
+ name: string;
2730
+ startDate?: Date;
2731
+ endDate?: Date;
2732
+ downpayment?: number;
2733
+ description?: string;
2734
+ prices: Price[];
2735
+ productSubType?: ProductSubTypesEnum;
2736
+ punchCard: boolean;
2737
+ isAddon: boolean;
2738
+ defaultPriceId?: number;
2737
2739
  }
2738
- export declare enum ResourceSubTypeEnum {
2739
- COURT = "court",
2740
- FIELD = "field",
2741
- ROOM = "room",
2742
- DIAMOND = "diamond",
2743
- RINK = "rink",
2744
- STUDIO = "studio",
2745
- POOL = "pool",
2746
- BATTING_CAGE = "batting cage",
2747
- SHELTER = "shelter",
2748
- GOLF_SIMULATOR = "golf simulator"
2740
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2741
+ destinationId?: string;
2742
+ stripeCustomerId?: string;
2743
+ fee?: number;
2749
2744
  }
2750
- export declare enum ResourceTypeEnum {
2751
- SPACE = "space"
2745
+ export interface IReservationCreatorData {
2746
+ type: ResourceNameTypeEnum;
2747
+ id: number;
2748
+ organizationId: number;
2749
+ startDate: string;
2750
+ endDate: string;
2751
+ sportId: number;
2752
2752
  }
2753
- export declare enum ResourceAgesEnum {
2754
- ADULTS = "adults",
2755
- CHILDREN = "children"
2753
+ export declare enum EntitlementTermsTypesEnum {
2754
+ QUESTION = "question",
2755
+ CITY = "city",
2756
+ MEMBERSHIP = "membership"
2756
2757
  }
2757
- export declare enum SpacePropertiesEnum {
2758
- OUTDOOR = "outdoor",
2759
- INDOOR = "indoor"
2758
+ export declare enum ResourceNameTypeEnum {
2759
+ EVENT = "event",
2760
+ VENUE = "venue",
2761
+ TEAM = "team",
2762
+ LEAGUE = "league",
2763
+ USER = "user",
2764
+ ORGANIZATION = "organization",
2765
+ APP = "app",
2766
+ FEED = "feed",
2767
+ MATCH = "match",
2768
+ ROUND = "round",
2769
+ PORTAL = "portal",
2770
+ SEASON = "season",
2771
+ TOURNAMENT = "tournament",
2772
+ MEMBERSHIP = "membership",
2773
+ DIVISION = "division",
2774
+ GAMESLOT = "gameslot",
2775
+ SPACE = "space",
2776
+ RESERVATION = "reservation",
2777
+ INVOICE = "invoice",
2778
+ CUSTOMER = "customer",
2779
+ PACKAGE = "package",
2780
+ FACILITY = "facility",
2781
+ PROGRAM = "program",
2782
+ PROGRAM_SEASON = "program_season",
2783
+ PRODUCT = "product",
2784
+ GROUP = "group",
2785
+ VARIANT = "variant",
2786
+ SLOT = "slot",
2787
+ ADDON = "addon"
2760
2788
  }
2761
- export declare enum SurfacesEnum {
2762
- GRASS = "grass",
2763
- TURF = "turf",
2764
- FIELD_TURF = "fieldTurf",
2765
- ASTRO_TURF = "astroTurf",
2766
- HARDWOOD = "hardwood",
2767
- ASPHALT = "asphalt",
2768
- SAND = "sand",
2769
- ICE = "ice",
2770
- SPORT_COURT = "sportCourt"
2789
+ export declare enum DirectBookingTypesEnum {
2790
+ DIRECT_FOR_ALL = "all",
2791
+ DIRECT_FOR_NONE = "none",
2792
+ DIRECT_VETTED_ONLY = "vetted_only",
2793
+ NO_SETTING = "no_setting"
2771
2794
  }
2772
- export declare enum RegistrationConstraintPeriodTypeEnum {
2773
- MINUTES = "minutes",
2774
- DAYS = "days"
2795
+ export declare enum GenderEnum {
2796
+ OTHER = 1,
2797
+ MALE = 2,
2798
+ FEMALE = 3
2775
2799
  }
2776
- export declare enum RegistrationWindowStatusEnum {
2777
- NOT_OPEN_YET = "not_opened_yet",
2778
- OPEN = "open",
2779
- CLOSED = "closed"
2800
+ export declare enum LevelOfPlayEnum {
2801
+ BEGINNER = 1,
2802
+ INTERMEDIATE = 2,
2803
+ ADVANCED = 3,
2804
+ SEMIPRO = 4,
2805
+ SPECTATOR = 5
2780
2806
  }
2781
- export declare enum RegistrationValidationStatusEnum {
2782
- FULL = "full",
2783
- ALREADY_REGISTERED = "registered",
2784
- AVAILABLE = "available",
2785
- NOT_OPEN_YET = "not opened",
2786
- ALREADY_CLOSED = "closed",
2787
- NO_PRODUCT_FOUND = "no-product-found"
2807
+ export declare enum ProgramTypesEnum {
2808
+ LEAGUE = 0,
2809
+ TOURNAMENT = 1,
2810
+ CLASS = 2,
2811
+ CLINIC = 3,
2812
+ CAMP = 4,
2813
+ LESSON = 5,
2814
+ CLUB_TEAM = 6
2788
2815
  }
2789
- export declare enum DiscountMethodsEnum {
2790
- PERCENT = "percent",
2791
- AMOUNT = "amount"
2816
+ export declare enum ProgramSeasonTypesEnum {
2817
+ ROUND_ROBIN = 1,
2818
+ BRACKETS = 2,
2819
+ CAMP_CLINIC_CLASS = 3
2792
2820
  }
2793
- export declare enum UserAuthorizationsTypeEnum {
2794
- ORGANIZATION = "organization"
2821
+ export declare enum SportsEnum {
2822
+ SOFTBALL = 1,
2823
+ BASKETBALL = 2,
2824
+ FOOTBALL = 3,
2825
+ SOCCER = 4,
2826
+ BOWLING = 5,
2827
+ BOCCEBALL = 6,
2828
+ CORNHOLE = 7,
2829
+ DODGEBALL = 8,
2830
+ FRISBEE = 9,
2831
+ HOCKEY = 10,
2832
+ KICKBALL = 11,
2833
+ LACROSSE = 12,
2834
+ PINGPONG = 13,
2835
+ RUGBY = 14,
2836
+ SKEEBALL = 15,
2837
+ TENNIS = 16,
2838
+ VOLLEYBALL = 17,
2839
+ WIFFLEBALL = 18,
2840
+ BADMINTON = 19,
2841
+ FITNESS = 20,
2842
+ GOLF = 21,
2843
+ PILATES = 22,
2844
+ RUNNING = 23,
2845
+ SKIING = 24,
2846
+ SNOWBOARDING = 25,
2847
+ YOGA = 26,
2848
+ BROOMBALL = 27,
2849
+ CRICKET = 28,
2850
+ CROSSFIT = 29,
2851
+ CYCLING = 30,
2852
+ FIELD_HOCKEY = 31,
2853
+ RACQUETBALL = 32,
2854
+ SPINNING = 33,
2855
+ SQUASH = 34,
2856
+ SURFING = 35,
2857
+ SWIMMING = 36,
2858
+ WIND_SURFING = 37,
2859
+ ADVENTURE = 38,
2860
+ BOXING = 39,
2861
+ BASEBALL = 40,
2862
+ DANCE = 41,
2863
+ KICKBOXING = 42,
2864
+ MARTIAL_ARTS = 43,
2865
+ OUTDOORS = 44,
2866
+ ROWING = 45,
2867
+ SAILING = 46,
2868
+ SUP = 47,
2869
+ TRIATHLON = 48,
2870
+ HANDBALL = 49,
2871
+ CATCHBALL = 50,
2872
+ BLITZBALL = 51,
2873
+ ROLLER_DERBY = 52,
2874
+ ICE_SKATING = 53,
2875
+ PICKLEBALL = 54,
2876
+ AXE_THROWING = 55,
2877
+ FURSAL = 56,
2878
+ BIRTHDAY = 57,
2879
+ CORPRATE_EVENTS = 58,
2880
+ OTHER = 999
2795
2881
  }
2796
- export declare enum OrganizationLocaleDateEnum {
2797
- USA = "USA"
2882
+ export declare enum PublishingStatusEnum {
2883
+ DRAFT = 1,
2884
+ PUBLISHED = 2,
2885
+ CLOSED = 3,
2886
+ CANCELLED = 4,
2887
+ ARCHIVE = 5,
2888
+ UNPUBLISHED = 6
2798
2889
  }
2799
- export declare enum DateTimeFormatsEnum {
2800
- API_DATE = "YYYY/MM/DD",
2801
- API_TIME = "HH:mm:ss",
2802
- DB_DATE = "YYYY-MM-DD"
2890
+ export declare enum ProgramHighlightTypeEnum {
2891
+ OTHER = 1,
2892
+ MINAGE = 2,
2893
+ MAXAGE = 3,
2894
+ GENDER = 4,
2895
+ LEVELOFPLAY = 5,
2896
+ GAMESSEASON = 6,
2897
+ MINWEEK = 7,
2898
+ SURFACE = 8,
2899
+ FORMAT = 9,
2900
+ PLAYERS_PER_TEAM = 10,
2901
+ MATCH_LENGTH = 12
2803
2902
  }
2804
- export declare enum SlotTypeEnum {
2805
- EXTERNAL = "external",
2806
- INTERNAL = "internal",
2807
- MAINTENANCE = "maintenance",
2808
- CUSTOM = "custom"
2903
+ export declare enum RequestStatusEnum {
2904
+ PENDING = 1,
2905
+ ACCEPTED = 2,
2906
+ DECLINED = 3
2809
2907
  }
2810
- export declare enum PlatformsEnum {
2811
- CONSUMER = "consumer",
2812
- CONSUMER_CHECKOUT = "consumer_checkout",
2813
- BO = "backoffice",
2814
- MOBILE = "mobile",
2815
- CRON = "cron"
2908
+ export declare enum PaymentStatusEnum {
2909
+ NOT_PAID = "not_paid",
2910
+ PARTIAL_PAYMENT = "partial",
2911
+ FULLY_PAID = "paid",
2912
+ REFUNDED = "refunded",
2913
+ VOID = "void"
2816
2914
  }
2817
- export declare enum ShiftStatusEnum {
2818
- OPEN = "open",
2819
- CLOSED = "closed",
2820
- MANAGMENT_CLOSED = "closed_by_manager",
2821
- RECONCILED = "reconciled"
2915
+ export declare enum ReservationExtendedEnum {
2916
+ PURCHASE_ORDER = "purchase_order"
2822
2917
  }
2823
- export declare enum EventStatusEnum {
2824
- OPEN = 1,
2825
- DRAFT = 2,
2826
- FULL = 3,
2827
- CANCELLED = 4,
2828
- CLOSED = 5,
2829
- DELETED = 6
2918
+ export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2919
+ export declare enum ReservationStatusEnum {
2920
+ PLANNED = "Planned",
2921
+ APPROVED = "Approved",
2922
+ AWAITING_ADMIN = "Awaiting Admin",
2923
+ AWAITING_CUSTOMER = "Awaiting Customer",
2924
+ REJECTED = "Rejected",
2925
+ CANCELED = "Canceled"
2830
2926
  }
2831
- export declare enum ReservationTypeEnum {
2832
- RENTAL = "rental",
2833
- PROGRAM = "program",
2834
- MAINTENANCE = "maintenance",
2835
- CUSTOM = "custom",
2836
- INTERNAL = "internal"
2927
+ export declare enum PaymentStatusV1Enum {
2928
+ SENT_TO_CLIENT = 1,
2929
+ SENT_FOR_PAYMENT = 2,
2930
+ ACCEPTED = 3,
2931
+ REJECTED = 4,
2932
+ CANCELLED = 5,
2933
+ FRAUD = 6,
2934
+ NOT_RELEVANT = 7,
2935
+ PENDING = 8
2837
2936
  }
2838
- export declare enum SlotDurationTypeEnum {
2839
- DATES = "dates",
2840
- ALL_DAY = "all day",
2841
- DURATION = "duration"
2937
+ export declare enum PaymentMethodsEnum {
2938
+ STRIPE = 1,
2939
+ CASH = 3
2842
2940
  }
2843
- export declare enum DurationUnitTypesEnum {
2844
- MINUTES = "minutes",
2845
- HOURS = "hours"
2941
+ export declare enum PackageProductsRelationTypeEnum {
2942
+ CHILD = "child",
2943
+ UPSALE = "upsale"
2846
2944
  }
2847
- export declare enum FrequencyEnum {
2848
- NONE = "none",
2849
- WEEKLY = "weekly",
2850
- DAILY = "daily",
2851
- MONTHLY = "monthly",
2852
- YEARLY = "yearly"
2945
+ export declare enum AddonTimePeriodEnum {
2946
+ FULL = "full",
2947
+ SESSION = "session",
2948
+ EVENT = "event"
2853
2949
  }
2854
- export declare enum MaintenanceTimingEnum {
2855
- BEFORE = 1,
2856
- AFTER = 2,
2857
- AT_THE_BEGINING = 3,
2858
- AT_THE_END = 4
2950
+ export declare enum CurrencyEnum {
2951
+ USD = "USD"
2859
2952
  }
2860
- export declare enum CreatorTypeEnum {
2861
- SPACE = "space",
2862
- PROGRAM_SEASON = "program_season",
2863
- SEASON = "season"
2953
+ export declare enum NotificationTypeEnum {
2954
+ BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2955
+ BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2956
+ BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2864
2957
  }
2865
- export declare enum UpdatePricesTypeEnum {
2866
- INDIVIDUAL = "indvidual",
2867
- CATEGORY = "category",
2868
- GLOBAL = "global"
2958
+ export declare enum ProductTypesEnum {
2959
+ RESERVATION = "reservation",
2960
+ REGISTRATION = "registration",
2961
+ MEMBERSHIP = "membership",
2962
+ GOODS = "goods",
2963
+ PACKAGE = "package",
2964
+ REFUND_COMPENSATION = "refund",
2965
+ CASH_OVER_SHORT = "cash_over_short",
2966
+ PETTY_CASH = "petty_cash",
2967
+ LEAGUE_REGISTRATION = "league_registration",
2968
+ TAX = "tax"
2869
2969
  }
2870
- export declare enum BondDayOfWeekEnum {
2871
- MONDAY = 2,
2872
- TUESDAY = 3,
2873
- WEDNESDAY = 4,
2874
- THURSDAY = 5,
2875
- FRIDAY = 6,
2876
- SATURDAY = 7,
2877
- SUNDAY = 8
2970
+ export declare enum InvoiceStatusEnum {
2971
+ ACTIVE = "active",
2972
+ WAITING_ADMIN = "waitingAdmin",
2973
+ WAITING_CLIENT = "waitingClient",
2974
+ CANCELED = "canceled"
2878
2975
  }
2879
- export declare enum ReservationMigrationStatusEnum {
2880
- NEW = "new",
2881
- NO = "no",
2882
- YES = "yes"
2976
+ export declare enum LineItemsStatusEnum {
2977
+ USER_PRODUCT = "UserProduct",
2978
+ RENTAL_PRODUCT = "RentalProduct"
2883
2979
  }
2884
- export declare enum ProductPackageLevelEnum {
2885
- HOUR = "hour",
2886
- SLOT = "slot",
2887
- RESERVATION = "reservation"
2980
+ export declare enum ProductSubTypesEnum {
2981
+ SEASON_INDIVIDUAL = "season_individual",
2982
+ SEASON_TEAM = "season_team",
2983
+ SEASON_PER_PLAYER = "season_per_player"
2888
2984
  }
2889
- export declare enum CancellationStatusEnum {
2890
- IMMEDIATE = "immediate",
2891
- AUTO_RENEWAL = "auto_renewal"
2985
+ export declare enum PaymentMethodTypeEnum {
2986
+ CREDIT_CARD = "card",
2987
+ ACH = "ach",
2988
+ CASH = "cash",
2989
+ CHECK = "check",
2990
+ BALANCE = "balance",
2991
+ CARD_ON_TERMINAL = "card-on-terminal",
2992
+ OTHER = "other",
2993
+ MIGRATED = "migrated",
2994
+ VOID = "void"
2892
2995
  }
2893
- export declare enum SeasonScheduleStatusEnum {
2894
- DRAFT = 0,
2895
- PUBLISHED = 1
2996
+ export declare enum RefundTypeEnum {
2997
+ LEAVE_BALANCE = "leave_balance",
2998
+ REDUCE_BALANCE = "reduce_balance"
2896
2999
  }
2897
- export declare enum FinancialStepEnum {
2898
- VOID = "void",
2899
- REFUND = "refund",
2900
- NONE = "none",
2901
- REFUND_AND_VOID = "refund-and-void",
2902
- APPEND = "append"
3000
+ export declare enum CustomerInMembershipTypeEnum {
3001
+ INDIVIDUAL = "individual",
3002
+ FAMILY = "family",
3003
+ ORGANIZATION = "organization"
2903
3004
  }
2904
- export declare enum StripeAccountTypesEnum {
2905
- STRIPE = "stripe",
2906
- STRIPE_CUSTOM = "stripe:account:custom",
2907
- STRIPE_CUSTOMER = "stripe:customer"
3005
+ export declare enum MembershipTypeEnum {
3006
+ FIXED = "fix_membership",
3007
+ ROLLING = "rolling_membership"
2908
3008
  }
2909
- export declare enum LinkedAccountStatus {
2910
- PENDING = 1,
2911
- ACTIVE = 2,
2912
- PRE_PENDING = 3
3009
+ export declare enum CustomerTypeEnum {
3010
+ USER = "user",
3011
+ FAMILY = "family",
3012
+ ORGANIZATION = "organization"
2913
3013
  }
2914
- export declare enum AddonParentTypeEnum {
2915
- RESERVATION = "reservation",
2916
- SLOT = "slot"
3014
+ export declare enum GroupStatusEnum {
3015
+ ACTIVE = 1,
3016
+ INACTIVE = 2,
3017
+ DRAFT = 3
2917
3018
  }
2918
- export declare enum EEmailStatus {
2919
- SENT = "sent",
2920
- OPENED = "opened",
2921
- PAID = "paid",
3019
+ export declare enum FutureInstallmentStatusEnum {
3020
+ FUTURE = "future",
3021
+ SUCCEEDED = "succeeded",
3022
+ FAILED = "failed",
2922
3023
  CANCELED = "canceled"
2923
3024
  }
2924
- export declare enum PaymentSettingStatusEnum {
2925
- ENABLED = 1,
2926
- DISABLED_REDIRECT = 2,
2927
- DISABLED_INFO_ONLY = 3,
2928
- DISABLED_EMAIL = 4
3025
+ export declare enum EntryStatusEnum {
3026
+ ENTERED = 1,
3027
+ NOT_ENTERED = 2,
3028
+ CANCELED = 3
2929
3029
  }
2930
- export declare enum NotifyMethodEnum {
2931
- EMAIL = "Email"
3030
+ export declare enum PurchasedResourceStatusEnum {
3031
+ ACTIVE = 1,
3032
+ MOVED = 2,
3033
+ CANCELED = 3
2932
3034
  }
2933
- export interface IEntitlementTerms {
2934
- type: EntitlementTermsTypesEnum;
2935
- id?: number;
2936
- value?: string;
2937
- minValue?: string;
2938
- maxValue?: string;
3035
+ export declare enum TeamCanJoinEnum {
3036
+ ANYONE = "anyone",
3037
+ BY_INVITE = "byInvite",
3038
+ CAPTAIN_APPROVAL = "captainApproval"
2939
3039
  }
2940
- export interface IQuestionAnswerObject {
2941
- questionId: number;
2942
- value: string;
3040
+ export declare enum TeamMemberStatusEnum {
3041
+ PENDING = 1,
3042
+ ACTIVE = 2,
3043
+ DECLINED = 3,
3044
+ SUSPENDED = 4,
3045
+ INACTIVE = 5,
3046
+ INVITED = 6
2943
3047
  }
2944
- export interface ILowestPriceForItem {
2945
- itemId: number;
2946
- itemType: ResourceNameTypeEnum;
2947
- groupId: number;
2948
- groupName?: string;
2949
- price: number;
2950
- overridesPrice: boolean;
3048
+ export declare enum TeamMemberRoleEnum {
3049
+ NULL = 0,
3050
+ ADMIN = 1
2951
3051
  }
2952
- export interface IResourcesAvailability {
2953
- resourceType: ResourceNameTypeEnum;
2954
- quantity: number;
2955
- resourcesIds: number[];
2956
- isPunchCard: boolean;
2957
- resources?: any[];
3052
+ export declare enum DayOfWeekEnum {
3053
+ SUNDAY = 0,
3054
+ MONDAY = 1,
3055
+ TUESDAY = 2,
3056
+ WEDNESDAY = 3,
3057
+ THURSDAY = 4,
3058
+ FRIDAY = 5,
3059
+ SATURDAY = 6
2958
3060
  }
2959
- export interface IPackageResponse {
2960
- parentProduct: Product;
2961
- children: IChildProduct[];
3061
+ export declare enum ActionTypesEnum {
3062
+ CREATE = "create",
3063
+ READ = "read",
3064
+ UPDATE = "update",
3065
+ DELETE = "delete"
2962
3066
  }
2963
- export interface IChildProduct {
2964
- product: Product;
2965
- relationType: PackageProductsRelationTypeEnum;
2966
- timePeriod?: AddonTimePeriodEnum;
3067
+ export declare enum ActionSourcePlatformEnum {
3068
+ ADMIN = "admin",
3069
+ BACKOFFICE = "backoffice",
3070
+ CONSUMER = "consumer"
2967
3071
  }
2968
- export interface ISeasonAttendeeInfo {
2969
- applicationAnswers: Answer[];
2970
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2971
- invoices: Invoice[];
2972
- payments: Payment[];
2973
- products: Product[];
2974
- redeemNext: ProductsUsers;
3072
+ export declare enum RolesEnum {
3073
+ ORG_ADMIN = "organizationAdmin",
3074
+ BOND_ADMIN = "bondAdmin"
2975
3075
  }
2976
- export interface ISeasonAttendeeListInfo {
2977
- userId: number;
2978
- userFirstName: string;
2979
- userLastName: string;
2980
- userGender: number;
2981
- userBirthDate: Date;
2982
- userProfilePicUrl: string;
2983
- customerId: number;
2984
- customerEmail: string;
2985
- paymentStatus: string;
2986
- productName: string;
2987
- punchCard: boolean;
3076
+ export declare enum SeasonPoolStatusEnum {
3077
+ IN_POOL = 5,
3078
+ ASSIGNED = 1,
3079
+ QUIT = 2,
3080
+ SUSPENDED = 3,
3081
+ INACTIVE = 4
2988
3082
  }
2989
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2990
- segmentType: ResourceNameTypeEnum;
2991
- participantRegisteredDate?: string;
3083
+ export declare enum AmenitiesEnum {
3084
+ HEAT = 1,
3085
+ AC = 2,
3086
+ WIFI = 3,
3087
+ RESTROOMS = 4,
3088
+ DRINKING_FOUNTAIN = 5,
3089
+ PARKING = 6,
3090
+ CONCESSIONS = 7,
3091
+ SHELTER = 8,
3092
+ PORTABLE_RESTROOMS = 9,
3093
+ LIGHTS = 10,
3094
+ LOCKER_ROOM = 11,
3095
+ PAID_PARKING = 12,
3096
+ ACCESSIBLE = 13
2992
3097
  }
2993
- export declare class EventAsSeasonSegment extends Event {
2994
- segmentType: ResourceNameTypeEnum;
2995
- participantRegisteredDate?: string;
3098
+ export declare enum ResourceSubTypeEnum {
3099
+ COURT = "court",
3100
+ FIELD = "field",
3101
+ ROOM = "room",
3102
+ DIAMOND = "diamond",
3103
+ RINK = "rink",
3104
+ STUDIO = "studio",
3105
+ POOL = "pool",
3106
+ BATTING_CAGE = "batting cage",
3107
+ SHELTER = "shelter",
3108
+ GOLF_SIMULATOR = "golf simulator"
2996
3109
  }
2997
- export interface ITokenResonse {
2998
- token: string;
3110
+ export declare enum ResourceTypeEnum {
3111
+ SPACE = "space"
2999
3112
  }
3000
- export interface IStripeBondInvoices {
3001
- paidStripePaymentIntent: Stripe.PaymentIntent;
3002
- bondPaidPayment: Payment;
3003
- invoice?: Invoice;
3004
- customer?: Customer;
3113
+ export declare enum ResourceAgesEnum {
3114
+ ADULTS = "adults",
3115
+ CHILDREN = "children"
3005
3116
  }
3006
- export interface IPartialPaymentData {
3007
- purchasingUserId: number;
3008
- paymentData: PurchasePaymentDto;
3009
- amountToPay: number;
3117
+ export declare enum SpacePropertiesEnum {
3118
+ OUTDOOR = "outdoor",
3119
+ INDOOR = "indoor"
3010
3120
  }
3011
- export interface IPayment {
3012
- id: number;
3013
- total: number;
3014
- paymentMethod: PaymentMethodTypeEnum;
3015
- status: PaymentStatusEnum;
3016
- createdAt: Date;
3017
- invoices: number[];
3121
+ export declare enum SurfacesEnum {
3122
+ GRASS = "grass",
3123
+ TURF = "turf",
3124
+ FIELD_TURF = "fieldTurf",
3125
+ ASTRO_TURF = "astroTurf",
3126
+ HARDWOOD = "hardwood",
3127
+ ASPHALT = "asphalt",
3128
+ SAND = "sand",
3129
+ ICE = "ice",
3130
+ SPORT_COURT = "sportCourt"
3018
3131
  }
3019
- export interface IPaginationData<T> {
3020
- meta: {
3021
- totalItems: number;
3022
- itemsPerPage: number;
3023
- totalPages: number;
3024
- currentPage: number;
3025
- };
3026
- data: T[];
3132
+ export declare enum RegistrationConstraintPeriodTypeEnum {
3133
+ MINUTES = "minutes",
3134
+ DAYS = "days"
3027
3135
  }
3028
- export interface IPricesOfProductsResults {
3029
- productId: number;
3030
- userId: number;
3031
- price: number;
3032
- groupId?: number;
3033
- groupName?: string;
3034
- originalPrice?: number;
3035
- priceWithoutTax: number;
3036
- tax: number;
3037
- isTaxInclusive: boolean;
3136
+ export declare enum RegistrationWindowStatusEnum {
3137
+ NOT_OPEN_YET = "not_opened_yet",
3138
+ OPEN = "open",
3139
+ CLOSED = "closed"
3038
3140
  }
3039
- export interface IPaymentMethodToFundLeft {
3040
- paymentType: PaymentMethodTypeEnum;
3041
- paymentMethodId: string;
3042
- fundLeft: number;
3043
- ccLast4?: string;
3044
- ccBrand?: string;
3141
+ export declare enum RegistrationValidationStatusEnum {
3142
+ FULL = "full",
3143
+ ALREADY_REGISTERED = "registered",
3144
+ AVAILABLE = "available",
3145
+ NOT_OPEN_YET = "not opened",
3146
+ ALREADY_CLOSED = "closed",
3147
+ NO_PRODUCT_FOUND = "no-product-found"
3045
3148
  }
3046
- export interface IVariantsAndTitle {
3047
- title: VariantTitle;
3048
- variants: Variant[];
3149
+ export declare enum DiscountMethodsEnum {
3150
+ PERCENT = "percent",
3151
+ AMOUNT = "amount"
3049
3152
  }
3050
- export interface IProgramSeasonActivityTimes {
3051
- dayOfWeek: number;
3052
- open: string;
3053
- close: string;
3153
+ export declare enum UserAuthorizationsTypeEnum {
3154
+ ORGANIZATION = "organization"
3054
3155
  }
3055
- export interface IProgramSeasonActivityTimesAsDates {
3056
- date: string;
3057
- startTime: string;
3058
- endTime: string;
3156
+ export declare enum OrganizationLocaleDateEnum {
3157
+ USA = "USA"
3059
3158
  }
3060
- export interface IBlockedDates {
3061
- name: string;
3062
- startDate: Date;
3063
- endDate: Date;
3159
+ export declare enum DateTimeFormatsEnum {
3160
+ API_DATE = "YYYY/MM/DD",
3161
+ API_TIME = "HH:mm:ss",
3162
+ DB_DATE = "YYYY-MM-DD"
3064
3163
  }
3065
- export interface ISingleMemberForRenewal {
3066
- member_id: number;
3067
- member_membershipId: number;
3068
- member_userId: number;
3069
- member_nextPaymentMethodId?: string;
3070
- member_nextPaymentType?: PaymentMethodTypeEnum;
3071
- member_answerTitleIds?: number[];
3072
- member_organizationId: number;
3073
- product_productPrice: number;
3074
- product_productId: number;
3075
- invoice_payingUserId: number;
3076
- invoice_paymentMethodId: string;
3077
- invoice_paymentType: PaymentMethodTypeEnum;
3078
- endDate: Date;
3079
- membership_name: string;
3080
- user_firstName: string;
3081
- user_lastName: string;
3082
- user_email: string;
3164
+ export declare enum SlotTypeEnum {
3165
+ EXTERNAL = "external",
3166
+ INTERNAL = "internal",
3167
+ MAINTENANCE = "maintenance",
3168
+ CUSTOM = "custom"
3083
3169
  }
3084
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3085
- package_parentProductId: number;
3086
- product2_productPrice: number;
3087
- familyid: number;
3088
- invoice_id: number;
3170
+ export declare enum PlatformsEnum {
3171
+ CONSUMER = "consumer",
3172
+ CONSUMER_CHECKOUT = "consumer_checkout",
3173
+ BO = "backoffice",
3174
+ MOBILE = "mobile",
3175
+ CRON = "cron"
3089
3176
  }
3090
- export interface IResourceRegistrationData {
3091
- id: number;
3092
- resourceType: ResourceNameTypeEnum;
3093
- openNumDays?: number;
3094
- openNumMinutes?: number;
3095
- openTime?: string;
3096
- closeNumDays?: number;
3097
- closeNumMinutes?: number;
3098
- closeTime?: string;
3099
- registrationWindowStatus?: RegistrationWindowStatusEnum;
3177
+ export declare enum ShiftStatusEnum {
3178
+ OPEN = "open",
3179
+ CLOSED = "closed",
3180
+ MANAGMENT_CLOSED = "closed_by_manager",
3181
+ RECONCILED = "reconciled"
3100
3182
  }
3101
- export interface IResourceDataForConstraintsCalc {
3102
- id: number;
3103
- startDate: string;
3104
- startTime: string;
3183
+ export declare enum EventStatusEnum {
3184
+ OPEN = 1,
3185
+ DRAFT = 2,
3186
+ FULL = 3,
3187
+ CANCELLED = 4,
3188
+ CLOSED = 5,
3189
+ DELETED = 6
3105
3190
  }
3106
- export interface IRegistrationConstraintsSetting {
3107
- numDays?: number;
3108
- numMinutes?: number;
3191
+ export declare enum ReservationTypeEnum {
3192
+ RENTAL = "rental",
3193
+ PROGRAM = "program",
3194
+ MAINTENANCE = "maintenance",
3195
+ CUSTOM = "custom",
3196
+ INTERNAL = "internal"
3109
3197
  }
3110
- export interface IAttendeeDataToNotify {
3111
- firstName: string;
3112
- lastName: string;
3113
- email: string;
3114
- sessionName: string;
3115
- parentSessionName?: string;
3116
- organizationName: string;
3117
- programName: string;
3198
+ export declare enum SlotDurationTypeEnum {
3199
+ DATES = "dates",
3200
+ ALL_DAY = "all day",
3201
+ DURATION = "duration"
3118
3202
  }
3119
- export interface IEventInSchedule {
3120
- eventId: number;
3121
- eventName: string;
3122
- eventStartDate: string;
3123
- eventEndDate: string;
3124
- eventStartTime: string;
3125
- eventEndTime: string;
3126
- programId: number;
3127
- programName: string;
3128
- programType: ProgramTypesEnum;
3129
- sessionId: number;
3130
- sessionName: string;
3131
- sports: number;
3132
- spaces: {
3133
- spaceId: number;
3134
- spaceName: string;
3135
- }[];
3136
- status?: RegistrationValidationStatusEnum;
3203
+ export declare enum DurationUnitTypesEnum {
3204
+ MINUTES = "minutes",
3205
+ HOURS = "hours"
3137
3206
  }
3138
- export interface ISlotInSchedule {
3139
- facilityId: number;
3140
- facilityName: string;
3141
- spaces: ISpaceWithSlots[];
3207
+ export declare enum FrequencyEnum {
3208
+ NONE = "none",
3209
+ WEEKLY = "weekly",
3210
+ DAILY = "daily",
3211
+ MONTHLY = "monthly",
3212
+ YEARLY = "yearly"
3142
3213
  }
3143
- export interface ISpaceWithSlots {
3144
- id: number;
3145
- name: string;
3146
- slots: ISlotReservationData[];
3214
+ export declare enum MaintenanceTimingEnum {
3215
+ BEFORE = 1,
3216
+ AFTER = 2,
3217
+ AT_THE_BEGINING = 3,
3218
+ AT_THE_END = 4
3219
+ }
3220
+ export declare enum CreatorTypeEnum {
3221
+ SPACE = "space",
3222
+ PROGRAM_SEASON = "program_season",
3223
+ SEASON = "season"
3147
3224
  }
3148
- export interface ISlotReservationData {
3149
- reservationId: number;
3150
- reservationName: string;
3151
- date: string;
3152
- startTime: string;
3153
- endTime: string;
3154
- notes: string;
3155
- spaceId: number;
3156
- isRental: boolean;
3157
- slotType: SlotTypeEnum;
3158
- slotId: number;
3159
- eventId: number;
3160
- isPrivate: boolean;
3225
+ export declare enum UpdatePricesTypeEnum {
3226
+ INDIVIDUAL = "indvidual",
3227
+ CATEGORY = "category",
3228
+ GLOBAL = "global"
3161
3229
  }
3162
- export interface IRawEventInSchedule extends IEventInSchedule {
3163
- parentSessionId: number;
3164
- parentSessionName: string;
3165
- eventTimezone: string;
3166
- maxParticipants: number;
3167
- maxMaleParticipants: number;
3168
- maxFemaleParticipants: number;
3169
- isPunchCard: boolean;
3230
+ export declare enum BondDayOfWeekEnum {
3231
+ MONDAY = 2,
3232
+ TUESDAY = 3,
3233
+ WEDNESDAY = 4,
3234
+ THURSDAY = 5,
3235
+ FRIDAY = 6,
3236
+ SATURDAY = 7,
3237
+ SUNDAY = 8
3170
3238
  }
3171
- export interface IBasicSpaceAndSlotCreator {
3172
- id: number;
3173
- name: string;
3174
- bookingCreatorId: number;
3239
+ export declare enum ReservationMigrationStatusEnum {
3240
+ NEW = "new",
3241
+ NO = "no",
3242
+ YES = "yes"
3175
3243
  }
3176
- export interface IRawSlotInSchedule {
3177
- startDate: string;
3178
- endDate: string;
3179
- startTime: string;
3180
- endTime: string;
3181
- reservationId: number;
3182
- eventTitle: string;
3183
- publicNotes: string;
3184
- spaceId: number;
3185
- creatorType: ResourceNameTypeEnum;
3186
- slotType: SlotTypeEnum;
3187
- slotId: number;
3188
- eventId: number;
3189
- isPrivate: boolean;
3244
+ export declare enum ProductPackageLevelEnum {
3245
+ HOUR = "hour",
3246
+ SLOT = "slot",
3247
+ RESERVATION = "reservation"
3190
3248
  }
3191
- export interface IPurchasedResourcesRaw {
3192
- purchasedId: number;
3193
- purchasedProductUserId: number;
3194
- purchasedResourceId: number;
3195
- purchasedResourceType: ResourceNameTypeEnum;
3196
- purchasedStatus: PurchasedResourceStatusEnum;
3197
- pUserId: number;
3198
- pUserPaymentStatus: PaymentStatusEnum;
3199
- pUserProductId: number;
3200
- pUserProductName: string;
3201
- pUserProductPrice: number;
3202
- pUserProductPriceCurrency: string;
3203
- pUserProductQuantity: number;
3204
- pUserProductQuantityLeft: number;
3205
- pUserUserId: number;
3249
+ export declare enum CancellationStatusEnum {
3250
+ IMMEDIATE = "immediate",
3251
+ AUTO_RENEWAL = "auto_renewal"
3206
3252
  }
3207
- export interface IUsersPasses {
3208
- userId: number;
3209
- userFirstName: string;
3210
- userLastName: string;
3211
- organizationId: number;
3212
- programId: number;
3213
- programName: string;
3214
- sessionId: number;
3215
- sessionName: string;
3216
- productId: number;
3217
- productName: string;
3218
- productUserId: number;
3219
- purchaseDate: Date;
3220
- passesLeft: number;
3253
+ export declare enum SeasonScheduleStatusEnum {
3254
+ DRAFT = 0,
3255
+ PUBLISHED = 1
3221
3256
  }
3222
- export interface ISessionsLandingPage {
3223
- sessionId: number;
3224
- name: string;
3225
- startDate: Date;
3226
- endDate: Date;
3227
- registrationStartDate: Date;
3228
- registrationEndDate: Date;
3229
- sport: SportsEnum;
3230
- minAge: string;
3231
- maxAge: string;
3232
- maxParticipants?: number;
3233
- gender: GenderEnum;
3234
- activityTimes: ActivityTimes[];
3235
- earlyRegistrationStartDate?: Date;
3236
- earlyRegistrationEndDate?: Date;
3237
- lateRegistrationStartDate?: Date;
3238
- lateRegistrationEndDate?: Date;
3239
- attendeeCount?: number;
3240
- segmentsOrEvents: 'segment' | 'event';
3257
+ export declare enum FinancialStepEnum {
3258
+ VOID = "void",
3259
+ REFUND = "refund",
3260
+ NONE = "none",
3261
+ REFUND_AND_VOID = "refund-and-void",
3262
+ APPEND = "append"
3241
3263
  }
3242
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3243
- hasRequiredMembership: boolean;
3244
- hasEntitledPricing: boolean;
3245
- lowestPrice?: number;
3246
- products?: ISessionLandingPageProduct[];
3264
+ export declare enum StripeAccountTypesEnum {
3265
+ STRIPE = "stripe",
3266
+ STRIPE_CUSTOM = "stripe:account:custom",
3267
+ STRIPE_CUSTOMER = "stripe:customer"
3247
3268
  }
3248
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3249
- hasRequiredMembership: boolean;
3250
- hasEntitledPricing: boolean;
3251
- products?: ISessionLandingPageProduct[];
3252
- segments?: Event[] | ProgramSeason[];
3253
- programName: string;
3254
- programId: number;
3255
- levelOfPlay: LevelOfPlayEnum[];
3256
- registrationConstraints: IResourceRegistrationData[];
3269
+ export declare enum LinkedAccountStatus {
3270
+ PENDING = 1,
3271
+ ACTIVE = 2,
3272
+ PRE_PENDING = 3
3257
3273
  }
3258
- export interface ISlimAddons {
3259
- addons?: {
3260
- id: number;
3261
- timePeriod: AddonTimePeriodEnum;
3262
- name: string;
3263
- productType?: ProductTypesEnum;
3264
- productSubType?: string;
3265
- }[];
3274
+ export declare enum AddonParentTypeEnum {
3275
+ RESERVATION = "reservation",
3276
+ SLOT = "slot"
3266
3277
  }
3267
- export interface ISessionLandingPageProduct extends ISlimAddons {
3268
- id: number;
3269
- name: string;
3270
- startDate?: Date;
3271
- endDate?: Date;
3272
- downpayment?: number;
3273
- description?: string;
3274
- prices: Price[];
3275
- productSubType?: ProductSubTypesEnum;
3276
- punchCard: boolean;
3277
- isAddon: boolean;
3278
- defaultPriceId?: number;
3278
+ export declare enum EEmailStatus {
3279
+ SENT = "sent",
3280
+ OPENED = "opened",
3281
+ PAID = "paid",
3282
+ CANCELED = "canceled"
3279
3283
  }
3280
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3281
- destinationId?: string;
3282
- stripeCustomerId?: string;
3283
- fee?: number;
3284
+ export declare enum PaymentSettingStatusEnum {
3285
+ ENABLED = 1,
3286
+ DISABLED_REDIRECT = 2,
3287
+ DISABLED_INFO_ONLY = 3,
3288
+ DISABLED_EMAIL = 4
3284
3289
  }
3285
- export interface IReservationCreatorData {
3286
- type: ResourceNameTypeEnum;
3287
- id: number;
3288
- organizationId: number;
3289
- startDate: string;
3290
- endDate: string;
3291
- sportId: number;
3290
+ export declare enum NotifyMethodEnum {
3291
+ EMAIL = "Email"
3292
3292
  }
3293
3293
  export declare class ColumnNumericTransformer {
3294
3294
  to(data: number): number;
@@ -3735,6 +3735,16 @@ export declare class VoidLineItemDto {
3735
3735
  isEdit?: boolean;
3736
3736
  amount?: number;
3737
3737
  }
3738
+ export interface RefundResult extends PaymentsResults {
3739
+ successfulLineItems: RefundLineItemAmountDto[];
3740
+ failedLineItems: RefundLineItemAmountDto[];
3741
+ invoice?: Invoice;
3742
+ }
3743
+ export interface RefundResultWithLineItemsDict extends PaymentsResults {
3744
+ successfulLineItems: Map<number, RefundLineItemAmountDto>;
3745
+ failedLineItems: Map<number, RefundLineItemAmountDto>;
3746
+ totalAmountProcessed: number;
3747
+ }
3738
3748
  export interface PaymentResult {
3739
3749
  paymentMethodId: string;
3740
3750
  paymentMethodType: PaymentMethodTypeEnum;
@@ -3760,16 +3770,6 @@ export interface ExtendedLineItems {
3760
3770
  products: LineItems[];
3761
3771
  events: LineItems[];
3762
3772
  }
3763
- export interface RefundResult extends PaymentsResults {
3764
- successfulLineItems: RefundLineItemAmountDto[];
3765
- failedLineItems: RefundLineItemAmountDto[];
3766
- invoice?: Invoice;
3767
- }
3768
- export interface RefundResultWithLineItemsDict extends PaymentsResults {
3769
- successfulLineItems: Map<number, RefundLineItemAmountDto>;
3770
- failedLineItems: Map<number, RefundLineItemAmountDto>;
3771
- totalAmountProcessed: number;
3772
- }
3773
3773
  export declare class AddonDto extends ProductPricesDto {
3774
3774
  id?: number;
3775
3775
  }
@@ -4319,29 +4319,6 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
4319
4319
  conflictsCount?: number;
4320
4320
  conflicts?: Slot[];
4321
4321
  }
4322
- export declare class ChangeRolePermissionsDto {
4323
- permissionIds: number[];
4324
- }
4325
- export declare class CreateRoleDto {
4326
- name: string;
4327
- }
4328
- export declare class Permission extends BondBaseEntity {
4329
- name: string;
4330
- deletedAt?: Date;
4331
- }
4332
- export declare class Role extends OrganizationConnectionBaseEntity {
4333
- name: string;
4334
- deletedAt?: Date;
4335
- permissions: Permission[];
4336
- usersRoles: UserRole[];
4337
- }
4338
- export declare class UserRole extends OrganizationConnectionBaseEntity {
4339
- deletedAt?: Date;
4340
- userId: number;
4341
- roleId: number;
4342
- role: Role;
4343
- user: User;
4344
- }
4345
4322
  export declare type TSlotAndType = {
4346
4323
  type: 'slots' | 'slot_addons';
4347
4324
  slotsForProduct: {
@@ -4574,6 +4551,29 @@ export interface AddonMetadata {
4574
4551
  totalPrice: number;
4575
4552
  product?: Product;
4576
4553
  }
4554
+ export declare class ChangeRolePermissionsDto {
4555
+ permissionIds: number[];
4556
+ }
4557
+ export declare class CreateRoleDto {
4558
+ name: string;
4559
+ }
4560
+ export declare class Permission extends BondBaseEntity {
4561
+ name: string;
4562
+ deletedAt?: Date;
4563
+ }
4564
+ export declare class Role extends OrganizationConnectionBaseEntity {
4565
+ name: string;
4566
+ deletedAt?: Date;
4567
+ permissions: Permission[];
4568
+ usersRoles: UserRole[];
4569
+ }
4570
+ export declare class UserRole extends OrganizationConnectionBaseEntity {
4571
+ deletedAt?: Date;
4572
+ userId: number;
4573
+ roleId: number;
4574
+ role: Role;
4575
+ user: User;
4576
+ }
4577
4577
  export declare class CloseShiftDto {
4578
4578
  closingCashAmount: number;
4579
4579
  }