@bondsports/types 0.0.159 → 0.0.161

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
@@ -9,6 +9,17 @@ export declare class BasicActivityTimesDto {
9
9
  availabilityStartDate?: string;
10
10
  availabilityEndDate?: string;
11
11
  }
12
+ export declare class QuestionAnswersDto {
13
+ questionId: number;
14
+ value: any;
15
+ }
16
+ export declare class UserAnswersDto {
17
+ userId: number;
18
+ answers: QuestionAnswersDto[];
19
+ }
20
+ export declare class GetByQuestionnaireIdsDto {
21
+ questionnaireIds: string;
22
+ }
12
23
  export declare class FindBookingTypeSettingDto {
13
24
  organizationId: number;
14
25
  facilityId: number;
@@ -23,17 +34,6 @@ export declare enum EFailedPaymentReasons {
23
34
  CARD_BLOCKED = "card_blocked_by_bond",
24
35
  UNKNOWN = "unknown"
25
36
  }
26
- export declare class QuestionAnswersDto {
27
- questionId: number;
28
- value: any;
29
- }
30
- export declare class UserAnswersDto {
31
- userId: number;
32
- answers: QuestionAnswersDto[];
33
- }
34
- export declare class GetByQuestionnaireIdsDto {
35
- questionnaireIds: string;
36
- }
37
37
  export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
38
38
  membershipId: number;
39
39
  }
@@ -481,6 +481,196 @@ export declare class VariantDto {
481
481
  startDate: Date;
482
482
  endDate: Date;
483
483
  }
484
+ export declare class FindProgramSeasonsByProgramIdDto {
485
+ programId: number;
486
+ }
487
+ export declare class FindSessionsFiltersDto {
488
+ status?: PublishingStatusEnum;
489
+ isFullFetch?: boolean;
490
+ }
491
+ export declare class FindSessionsByProgramAndOrganizationDto extends FindProgramSeasonsByProgramIdDto {
492
+ organizationId: number;
493
+ }
494
+ export declare class DeleteEventAttendeesDto {
495
+ eventAttendeeIds: string;
496
+ }
497
+ export declare class FindProgramSeasonByIdQueryDto {
498
+ includeResources?: boolean;
499
+ }
500
+ export declare class FindProgramSeasonByIdDto extends OptionalFindByOrganizationIdDto {
501
+ seasonId: number;
502
+ }
503
+ export declare class FindSeasonEventsQueryDto {
504
+ startDateFilter?: EStartDateFilter;
505
+ }
506
+ export declare class DeleteProgramSeasonByIDDto extends ByOrganizationIdDto {
507
+ seasonId: number;
508
+ }
509
+ export declare class FindSessionEventByIdDto {
510
+ seasonId: number;
511
+ eventId: number;
512
+ }
513
+ export declare class DeleteProductDto {
514
+ deleteProduct?: boolean;
515
+ }
516
+ export declare class FindRegisteredUserDto extends FindProgramSeasonByIdDto {
517
+ userId: number;
518
+ }
519
+ export declare class FindRegisteredUsersOptionsDto extends PaginationQuery {
520
+ isFreeAgentsOnly?: boolean;
521
+ isPunchCardUsers?: boolean;
522
+ nameEmailSearch?: string;
523
+ }
524
+ export declare class BaseProgramSeasonDto {
525
+ programId: number;
526
+ name: string;
527
+ status: PublishingStatusEnum;
528
+ seasonType: ProgramSeasonTypesEnum;
529
+ startDate: Date;
530
+ endDate: Date;
531
+ description?: string;
532
+ GL?: string;
533
+ parentSeasonId?: number;
534
+ questionnaires?: number[];
535
+ maxParticipants?: number;
536
+ maxMaleParticipants?: number;
537
+ maxFemaleParticipants?: number;
538
+ maxWaitlist?: number;
539
+ maxMaleWaitlist?: number;
540
+ maxFemaleWaitlist?: number;
541
+ facilityId?: number;
542
+ addressId?: number;
543
+ blockedDated?: blockedDatesDto[];
544
+ activityTimes: ActivityTimesDto[];
545
+ longDescription?: string;
546
+ isPunchCard?: boolean;
547
+ organizationId: number;
548
+ sport: SportsEnum;
549
+ minAge: string;
550
+ maxAge: string;
551
+ gender: GenderEnum;
552
+ level?: LevelOfPlayEnum[];
553
+ requiredProductIds?: number[];
554
+ }
555
+ export declare class CreateProgramSeasonDto extends BaseProgramSeasonDto {
556
+ subSeasons?: SubSeasonBasicInfo[];
557
+ }
558
+ export declare class CreateSessionScheduleDto {
559
+ startDate: Date;
560
+ endDate: Date;
561
+ activityTimes: ActivityTimesDto[];
562
+ blockedDated?: blockedDatesDto[];
563
+ subSeasons?: SubSeasonBasicInfo[];
564
+ }
565
+ export declare class SubSeasonBasicInfo {
566
+ name: string;
567
+ startDate: Date;
568
+ endDate: Date;
569
+ activityTimes?: ActivityTimesDto[];
570
+ }
571
+ export declare class UpdateProgramSeasonDto extends BaseProgramSeasonDto {
572
+ seasonId: number;
573
+ }
574
+ export declare class UpdateProgramSeasonStatusDto {
575
+ seasonId: number;
576
+ status: PublishingStatusEnum;
577
+ }
578
+ export declare class blockedDatesDto {
579
+ name: string;
580
+ startDate: Date;
581
+ endDate: Date;
582
+ }
583
+ export declare class ActivityTimesDto {
584
+ dayOfWeek: number;
585
+ open: string;
586
+ close: string;
587
+ }
588
+ export declare class ShallowUpdateProgramSeasonDto {
589
+ seasonId: number;
590
+ name: string;
591
+ description?: string;
592
+ questionnaires?: number[];
593
+ maxParticipants?: number;
594
+ maxMaleParticipants?: number;
595
+ maxFemaleParticipants?: number;
596
+ maxWaitlist?: number;
597
+ maxMaleWaitlist?: number;
598
+ maxFemaleWaitlist?: number;
599
+ facilityId?: number;
600
+ addressId?: number;
601
+ sport?: SportsEnum;
602
+ minAge?: string;
603
+ maxAge?: string;
604
+ gender?: GenderEnum;
605
+ level?: LevelOfPlayEnum[];
606
+ requiredProductIds?: number[];
607
+ subSeasons?: ShallowUpdateSubSeasonDto[];
608
+ }
609
+ export declare class ShallowUpdateSubSeasonDto {
610
+ id: number;
611
+ name: string;
612
+ }
613
+ export declare class SpaceResourcePairDto {
614
+ resourceType: ResourceNameTypeEnum;
615
+ resourceId: number;
616
+ spacesIds: number[];
617
+ publicNotes?: string;
618
+ privateNotes?: string;
619
+ maintenance?: MaintenanceDto[];
620
+ }
621
+ export declare class BulkSpaceResourceAllocationDto {
622
+ spaceResourcePairs: SpaceResourcePairDto[];
623
+ organizationId: number;
624
+ }
625
+ export declare class SingleSpaceAllocationByTimesDto {
626
+ date: string;
627
+ startTime: string;
628
+ endTime: string;
629
+ spaceId: number;
630
+ publicNotes?: string;
631
+ slotType?: SlotTypeEnum;
632
+ }
633
+ export declare class SpaceAllocationsByTimesDto {
634
+ spaceAllocations: SingleSpaceAllocationByTimesDto[];
635
+ }
636
+ export declare class UpdateSeasonDatesDto {
637
+ startDate: Date;
638
+ endDate: Date;
639
+ }
640
+ export declare class MoveAttendeeDto {
641
+ userId: number;
642
+ resourceType: ResourceNameTypeEnum;
643
+ fromResourceIds: number[];
644
+ toResourceIds: number[];
645
+ }
646
+ export declare class UpdateSeasonRegistrationDatesDto {
647
+ registrationPeriods: UpdateSeasonDatesDto[];
648
+ }
649
+ export declare class RegistrationDatesDto {
650
+ registrationStartDate: Date;
651
+ registrationEndDate: Date;
652
+ earlyRegistrationStartDate?: Date;
653
+ earlyRegistrationEndDate?: Date;
654
+ lateRegistrationStartDate?: Date;
655
+ lateRegistrationEndDate?: Date;
656
+ }
657
+ export declare class RegistrationSettingsDto extends RegistrationDatesDto {
658
+ closeRegistrationPeriodValue?: number;
659
+ closeRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
660
+ closeRegistrationSpecTime?: string;
661
+ openRegistrationPeriodValue?: number;
662
+ openRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
663
+ openRegistrationSpecTime?: string;
664
+ productsIdsToUpdate?: number[];
665
+ }
666
+ export declare class MoveParticipantDto {
667
+ userId: number;
668
+ oldProductId: number;
669
+ newProductId: number;
670
+ moveType: 'session' | 'segment';
671
+ resourceId: number;
672
+ invoiceId: number;
673
+ }
484
674
  export declare class FindByProductIdDto {
485
675
  productId: number;
486
676
  }
@@ -702,233 +892,43 @@ export declare class createResourceDto {
702
892
  export declare class archiveDto {
703
893
  isArchive: boolean;
704
894
  }
705
- export declare class FindProgramSeasonsByProgramIdDto {
706
- programId: number;
895
+ export declare class FindProgramsByOrganizationIdDto {
896
+ organizationId: number;
897
+ programType?: ProgramTypesEnum;
707
898
  }
708
- export declare class FindSessionsFiltersDto {
709
- status?: PublishingStatusEnum;
710
- isFullFetch?: boolean;
899
+ export declare class FindProgramByIdDto {
900
+ programId: number;
711
901
  }
712
- export declare class FindSessionsByProgramAndOrganizationDto extends FindProgramSeasonsByProgramIdDto {
902
+ export declare class FindProgramByOrgIdAndIdDto {
903
+ programId: number;
713
904
  organizationId: number;
714
905
  }
715
- export declare class DeleteEventAttendeesDto {
716
- eventAttendeeIds: string;
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[];
717
922
  }
718
- export declare class FindProgramSeasonByIdQueryDto {
719
- includeResources?: boolean;
923
+ export declare class CreateProgramDto extends BaseProgramDto {
720
924
  }
721
- export declare class FindProgramSeasonByIdDto extends OptionalFindByOrganizationIdDto {
722
- seasonId: number;
925
+ export declare class UpdateProgramDto extends BaseProgramDto {
926
+ programId: number;
927
+ mainMediaId: number;
723
928
  }
724
- export declare class FindSeasonEventsQueryDto {
725
- startDateFilter?: EStartDateFilter;
726
- }
727
- export declare class DeleteProgramSeasonByIDDto extends ByOrganizationIdDto {
728
- seasonId: number;
729
- }
730
- export declare class FindSessionEventByIdDto {
731
- seasonId: number;
732
- eventId: number;
733
- }
734
- export declare class DeleteProductDto {
735
- deleteProduct?: boolean;
736
- }
737
- export declare class FindRegisteredUserDto extends FindProgramSeasonByIdDto {
738
- userId: number;
739
- }
740
- export declare class FindRegisteredUsersOptionsDto extends PaginationQuery {
741
- isFreeAgentsOnly?: boolean;
742
- isPunchCardUsers?: boolean;
743
- nameEmailSearch?: string;
744
- }
745
- export declare class BaseProgramSeasonDto {
746
- programId: number;
747
- name: string;
748
- status: PublishingStatusEnum;
749
- seasonType: ProgramSeasonTypesEnum;
750
- startDate: Date;
751
- endDate: Date;
752
- description?: string;
753
- GL?: string;
754
- parentSeasonId?: number;
755
- questionnaires?: number[];
756
- maxParticipants?: number;
757
- maxMaleParticipants?: number;
758
- maxFemaleParticipants?: number;
759
- maxWaitlist?: number;
760
- maxMaleWaitlist?: number;
761
- maxFemaleWaitlist?: number;
762
- facilityId?: number;
763
- addressId?: number;
764
- blockedDated?: blockedDatesDto[];
765
- activityTimes: ActivityTimesDto[];
766
- longDescription?: string;
767
- isPunchCard?: boolean;
768
- organizationId: number;
769
- sport: SportsEnum;
770
- minAge: string;
771
- maxAge: string;
772
- gender: GenderEnum;
773
- level?: LevelOfPlayEnum[];
774
- requiredProductIds?: number[];
775
- }
776
- export declare class CreateProgramSeasonDto extends BaseProgramSeasonDto {
777
- subSeasons?: SubSeasonBasicInfo[];
778
- }
779
- export declare class CreateSessionScheduleDto {
780
- startDate: Date;
781
- endDate: Date;
782
- activityTimes: ActivityTimesDto[];
783
- blockedDated?: blockedDatesDto[];
784
- subSeasons?: SubSeasonBasicInfo[];
785
- }
786
- export declare class SubSeasonBasicInfo {
787
- name: string;
788
- startDate: Date;
789
- endDate: Date;
790
- activityTimes?: ActivityTimesDto[];
791
- }
792
- export declare class UpdateProgramSeasonDto extends BaseProgramSeasonDto {
793
- seasonId: number;
794
- }
795
- export declare class UpdateProgramSeasonStatusDto {
796
- seasonId: number;
797
- status: PublishingStatusEnum;
798
- }
799
- export declare class blockedDatesDto {
800
- name: string;
801
- startDate: Date;
802
- endDate: Date;
803
- }
804
- export declare class ActivityTimesDto {
805
- dayOfWeek: number;
806
- open: string;
807
- close: string;
808
- }
809
- export declare class ShallowUpdateProgramSeasonDto {
810
- seasonId: number;
811
- name: string;
812
- description?: string;
813
- questionnaires?: number[];
814
- maxParticipants?: number;
815
- maxMaleParticipants?: number;
816
- maxFemaleParticipants?: number;
817
- maxWaitlist?: number;
818
- maxMaleWaitlist?: number;
819
- maxFemaleWaitlist?: number;
820
- facilityId?: number;
821
- addressId?: number;
822
- sport?: SportsEnum;
823
- minAge?: string;
824
- maxAge?: string;
825
- gender?: GenderEnum;
826
- level?: LevelOfPlayEnum[];
827
- requiredProductIds?: number[];
828
- subSeasons?: ShallowUpdateSubSeasonDto[];
829
- }
830
- export declare class ShallowUpdateSubSeasonDto {
831
- id: number;
832
- name: string;
833
- }
834
- export declare class SpaceResourcePairDto {
835
- resourceType: ResourceNameTypeEnum;
836
- resourceId: number;
837
- spacesIds: number[];
838
- publicNotes?: string;
839
- privateNotes?: string;
840
- maintenance?: MaintenanceDto[];
841
- }
842
- export declare class BulkSpaceResourceAllocationDto {
843
- spaceResourcePairs: SpaceResourcePairDto[];
844
- organizationId: number;
845
- }
846
- export declare class SingleSpaceAllocationByTimesDto {
847
- date: string;
848
- startTime: string;
849
- endTime: string;
850
- spaceId: number;
851
- publicNotes?: string;
852
- slotType?: SlotTypeEnum;
853
- }
854
- export declare class SpaceAllocationsByTimesDto {
855
- spaceAllocations: SingleSpaceAllocationByTimesDto[];
856
- }
857
- export declare class UpdateSeasonDatesDto {
858
- startDate: Date;
859
- endDate: Date;
860
- }
861
- export declare class MoveAttendeeDto {
862
- userId: number;
863
- resourceType: ResourceNameTypeEnum;
864
- fromResourceIds: number[];
865
- toResourceIds: number[];
866
- }
867
- export declare class UpdateSeasonRegistrationDatesDto {
868
- registrationPeriods: UpdateSeasonDatesDto[];
869
- }
870
- export declare class RegistrationDatesDto {
871
- registrationStartDate: Date;
872
- registrationEndDate: Date;
873
- earlyRegistrationStartDate?: Date;
874
- earlyRegistrationEndDate?: Date;
875
- lateRegistrationStartDate?: Date;
876
- lateRegistrationEndDate?: Date;
877
- }
878
- export declare class RegistrationSettingsDto extends RegistrationDatesDto {
879
- closeRegistrationPeriodValue?: number;
880
- closeRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
881
- closeRegistrationSpecTime?: string;
882
- openRegistrationPeriodValue?: number;
883
- openRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
884
- openRegistrationSpecTime?: string;
885
- productsIdsToUpdate?: number[];
886
- }
887
- export declare class MoveParticipantDto {
888
- userId: number;
889
- oldProductId: number;
890
- newProductId: number;
891
- moveType: 'session' | 'segment';
892
- resourceId: number;
893
- invoiceId: number;
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;
929
+ export declare class UpdateProgramStatusDto {
930
+ programId: number;
931
+ status: PublishingStatusEnum;
932
932
  }
933
933
  export declare class ProgramHighlightDto {
934
934
  data: string;
@@ -1096,2206 +1096,2206 @@ export declare class FindByFamilyAccountIdDto {
1096
1096
  export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1097
1097
  organizationId: number;
1098
1098
  }
1099
- export declare enum EntitlementTermsTypesEnum {
1100
- QUESTION = "question",
1101
- CITY = "city",
1102
- MEMBERSHIP = "membership"
1103
- }
1104
- export declare enum ResourceNameTypeEnum {
1105
- EVENT = "event",
1106
- VENUE = "venue",
1107
- TEAM = "team",
1108
- LEAGUE = "league",
1109
- USER = "user",
1110
- ORGANIZATION = "organization",
1111
- APP = "app",
1112
- FEED = "feed",
1113
- MATCH = "match",
1114
- ROUND = "round",
1115
- PORTAL = "portal",
1116
- SEASON = "season",
1117
- TOURNAMENT = "tournament",
1118
- MEMBERSHIP = "membership",
1119
- DIVISION = "division",
1120
- GAMESLOT = "gameslot",
1121
- SPACE = "space",
1122
- RESERVATION = "reservation",
1123
- INVOICE = "invoice",
1124
- CUSTOMER = "customer",
1125
- PACKAGE = "package",
1126
- FACILITY = "facility",
1127
- PROGRAM = "program",
1128
- PROGRAM_SEASON = "program_season",
1129
- PRODUCT = "product",
1130
- GROUP = "group",
1131
- VARIANT = "variant",
1132
- SLOT = "slot",
1133
- ADDON = "addon"
1099
+ export declare class ActivityTimes extends BondBaseEntity {
1100
+ parentType: ResourceNameTypeEnum | ProductTypesEnum;
1101
+ parentId: number;
1102
+ dayOfWeek: number;
1103
+ open: string;
1104
+ close: string;
1105
+ deletedAt?: Date;
1106
+ program: ProgramSeason;
1107
+ availabilityStartDate: string;
1108
+ availabilityEndDate: string;
1109
+ proudct: Product;
1110
+ event: Event;
1134
1111
  }
1135
- export declare enum DirectBookingTypesEnum {
1136
- DIRECT_FOR_ALL = "all",
1137
- DIRECT_FOR_NONE = "none",
1138
- DIRECT_VETTED_ONLY = "vetted_only",
1139
- NO_SETTING = "no_setting"
1140
- }
1141
- export declare enum GenderEnum {
1142
- OTHER = 1,
1143
- MALE = 2,
1144
- FEMALE = 3
1145
- }
1146
- export declare enum LevelOfPlayEnum {
1147
- BEGINNER = 1,
1148
- INTERMEDIATE = 2,
1149
- ADVANCED = 3,
1150
- SEMIPRO = 4,
1151
- SPECTATOR = 5
1152
- }
1153
- export declare enum ProgramTypesEnum {
1154
- LEAGUE = 0,
1155
- TOURNAMENT = 1,
1156
- CLASS = 2,
1157
- CLINIC = 3,
1158
- CAMP = 4,
1159
- LESSON = 5,
1160
- CLUB_TEAM = 6
1161
- }
1162
- export declare enum ProgramSeasonTypesEnum {
1163
- ROUND_ROBIN = 1,
1164
- BRACKETS = 2,
1165
- CAMP_CLINIC_CLASS = 3
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;
1166
1122
  }
1167
- export declare enum SportsEnum {
1168
- SOFTBALL = 1,
1169
- BASKETBALL = 2,
1170
- FOOTBALL = 3,
1171
- SOCCER = 4,
1172
- BOWLING = 5,
1173
- BOCCEBALL = 6,
1174
- CORNHOLE = 7,
1175
- DODGEBALL = 8,
1176
- FRISBEE = 9,
1177
- HOCKEY = 10,
1178
- KICKBALL = 11,
1179
- LACROSSE = 12,
1180
- PINGPONG = 13,
1181
- RUGBY = 14,
1182
- SKEEBALL = 15,
1183
- TENNIS = 16,
1184
- VOLLEYBALL = 17,
1185
- WIFFLEBALL = 18,
1186
- BADMINTON = 19,
1187
- FITNESS = 20,
1188
- GOLF = 21,
1189
- PILATES = 22,
1190
- RUNNING = 23,
1191
- SKIING = 24,
1192
- SNOWBOARDING = 25,
1193
- YOGA = 26,
1194
- BROOMBALL = 27,
1195
- CRICKET = 28,
1196
- CROSSFIT = 29,
1197
- CYCLING = 30,
1198
- FIELD_HOCKEY = 31,
1199
- RACQUETBALL = 32,
1200
- SPINNING = 33,
1201
- SQUASH = 34,
1202
- SURFING = 35,
1203
- SWIMMING = 36,
1204
- WIND_SURFING = 37,
1205
- ADVENTURE = 38,
1206
- BOXING = 39,
1207
- BASEBALL = 40,
1208
- DANCE = 41,
1209
- KICKBOXING = 42,
1210
- MARTIAL_ARTS = 43,
1211
- OUTDOORS = 44,
1212
- ROWING = 45,
1213
- SAILING = 46,
1214
- SUP = 47,
1215
- TRIATHLON = 48,
1216
- HANDBALL = 49,
1217
- CATCHBALL = 50,
1218
- BLITZBALL = 51,
1219
- ROLLER_DERBY = 52,
1220
- ICE_SKATING = 53,
1221
- PICKLEBALL = 54,
1222
- AXE_THROWING = 55,
1223
- FURSAL = 56,
1224
- BIRTHDAY = 57,
1225
- CORPRATE_EVENTS = 58,
1226
- OTHER = 999
1123
+ export declare class Answer extends OrganizationConnectionBaseEntity {
1124
+ questionId: number;
1125
+ question?: Questions;
1126
+ parentId: number;
1127
+ parentType: ResourceNameTypeEnum;
1128
+ answerValue: any;
1129
+ creatorId: number;
1130
+ creatorType: ResourceNameTypeEnum;
1131
+ answerTitleId: number;
1132
+ answerTitle: AnswerTitle;
1133
+ metaData: any | null;
1134
+ questionText: string | null;
1227
1135
  }
1228
- export declare enum PublishingStatusEnum {
1229
- DRAFT = 1,
1230
- PUBLISHED = 2,
1231
- CLOSED = 3,
1232
- CANCELLED = 4,
1233
- ARCHIVE = 5,
1234
- UNPUBLISHED = 6
1136
+ export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1137
+ questionnaireId: number;
1138
+ userId?: number;
1139
+ answers: Answer[];
1140
+ questionnaire: Questionnaires;
1235
1141
  }
1236
- export declare enum ProgramHighlightTypeEnum {
1237
- OTHER = 1,
1238
- MINAGE = 2,
1239
- MAXAGE = 3,
1240
- GENDER = 4,
1241
- LEVELOFPLAY = 5,
1242
- GAMESSEASON = 6,
1243
- MINWEEK = 7,
1244
- SURFACE = 8,
1245
- FORMAT = 9,
1246
- PLAYERS_PER_TEAM = 10,
1247
- MATCH_LENGTH = 12
1142
+ export declare class Athlete extends BondBaseEntity {
1143
+ userId: number | null;
1144
+ metadata: object | null;
1145
+ athleteSports: AthleteSports[];
1248
1146
  }
1249
- export declare enum RequestStatusEnum {
1250
- PENDING = 1,
1251
- ACCEPTED = 2,
1252
- DECLINED = 3
1147
+ export declare class ActivityLogRecord extends BondBaseEntity {
1148
+ entityType: ResourceNameTypeEnum;
1149
+ entityId: number;
1150
+ organizationId?: number;
1151
+ userId?: number;
1152
+ customerId?: number;
1153
+ performingUserId: number;
1154
+ description: string;
1155
+ actionType: ActionTypesEnum;
1156
+ sourcePlatform: ActionSourcePlatformEnum;
1157
+ oldValue?: any;
1158
+ newValue?: any;
1253
1159
  }
1254
- export declare enum PaymentStatusEnum {
1255
- NOT_PAID = "not_paid",
1256
- PARTIAL_PAYMENT = "partial",
1257
- FULLY_PAID = "paid",
1258
- REFUNDED = "refunded",
1259
- VOID = "void"
1160
+ export declare class AthleteSports extends BondBaseEntity {
1161
+ athleteId: number | null;
1162
+ sports: number | null;
1163
+ levelOfPlay: LevelOfPlayEnum | null;
1260
1164
  }
1261
- export declare enum ReservationExtendedEnum {
1262
- PURCHASE_ORDER = "purchase_order"
1165
+ export declare class BondBaseEntity extends BaseEntity {
1166
+ id: number;
1167
+ createdAt: Date;
1168
+ updatedAt: Date;
1263
1169
  }
1264
- export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
1265
- export declare enum ReservationStatusEnum {
1266
- PLANNED = "Planned",
1267
- APPROVED = "Approved",
1268
- AWAITING_ADMIN = "Awaiting Admin",
1269
- AWAITING_CUSTOMER = "Awaiting Customer",
1270
- REJECTED = "Rejected",
1271
- CANCELED = "Canceled"
1170
+ export declare class BookedSessions extends BondBaseEntity {
1171
+ reservationId?: number;
1172
+ color?: string;
1173
+ creatorId?: number;
1174
+ creatorType?: string;
1175
+ startDate?: Date | moment.Moment;
1176
+ endDate?: Date | moment.Moment;
1177
+ timezone?: string;
1178
+ spaceId?: number;
1179
+ percentage?: number;
1180
+ status?: string;
1181
+ originalSessionId?: number;
1182
+ isFinal?: boolean;
1183
+ concurrent?: number;
1184
+ deletedAt?: Date;
1185
+ publicNotes?: string;
1186
+ slotType?: SlotTypeEnum;
1272
1187
  }
1273
- export declare enum PaymentStatusV1Enum {
1274
- SENT_TO_CLIENT = 1,
1275
- SENT_FOR_PAYMENT = 2,
1276
- ACCEPTED = 3,
1277
- REJECTED = 4,
1278
- CANCELLED = 5,
1279
- FRAUD = 6,
1280
- NOT_RELEVANT = 7,
1281
- PENDING = 8
1188
+ export declare class BlockedDate extends BondBaseEntity {
1189
+ entityType: ResourceNameTypeEnum;
1190
+ entityId: number;
1191
+ name: string;
1192
+ startDate: Date;
1193
+ endDate: Date;
1194
+ deletedAt?: Date;
1282
1195
  }
1283
- export declare enum PaymentMethodsEnum {
1284
- STRIPE = 1,
1285
- CASH = 3
1196
+ export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity {
1197
+ parentId: number;
1198
+ parentType: ResourceNameTypeEnum;
1199
+ startDate: Date;
1200
+ endDate: Date;
1201
+ dayOfWeek: number;
1202
+ startTimeInDay: string;
1203
+ endTimeInDay: string;
1204
+ directBookingFor: DirectBookingTypesEnum;
1286
1205
  }
1287
- export declare enum PackageProductsRelationTypeEnum {
1288
- CHILD = "child",
1289
- UPSALE = "upsale"
1206
+ export declare class Configuration extends BondBaseEntity {
1207
+ area: string;
1208
+ key: string;
1209
+ value: string;
1290
1210
  }
1291
- export declare enum AddonTimePeriodEnum {
1292
- FULL = "full",
1293
- SESSION = "session",
1294
- EVENT = "event"
1211
+ export declare class Connection extends BondBaseEntity {
1212
+ connType: number | null;
1213
+ from: number | null;
1214
+ fromType: string | null;
1215
+ to: number | null;
1216
+ toType: string | null;
1217
+ status: number | null;
1218
+ creatorId: number | null;
1219
+ creatorType: string | null;
1220
+ userCreatorId: number | null;
1221
+ ownerId: number | null;
1295
1222
  }
1296
- export declare enum CurrencyEnum {
1297
- USD = "USD"
1223
+ export declare class CreditNote extends OrganizationConnectionBaseEntity {
1224
+ creditAmount: number;
1225
+ paymentProcessorId: string;
1226
+ userId: number;
1227
+ paymentId: number;
1228
+ invoiceId: number;
1229
+ creditPaymentId: number;
1298
1230
  }
1299
- export declare enum NotificationTypeEnum {
1300
- BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
1301
- BOOKING_CHANGED_STUFF = "booking_changed_stuff",
1302
- BOOKING_DELETED_STUFF = "booking_deleted_stuff"
1303
- }
1304
- export declare enum ProductTypesEnum {
1305
- RESERVATION = "reservation",
1306
- REGISTRATION = "registration",
1307
- MEMBERSHIP = "membership",
1308
- GOODS = "goods",
1309
- PACKAGE = "package",
1310
- REFUND_COMPENSATION = "refund",
1311
- CASH_OVER_SHORT = "cash_over_short",
1312
- PETTY_CASH = "petty_cash",
1313
- LEAGUE_REGISTRATION = "league_registration",
1314
- TAX = "tax"
1315
- }
1316
- export declare enum InvoiceStatusEnum {
1317
- ACTIVE = "active",
1318
- WAITING_ADMIN = "waitingAdmin",
1319
- WAITING_CLIENT = "waitingClient",
1320
- CANCELED = "canceled"
1321
- }
1322
- export declare enum LineItemsStatusEnum {
1323
- USER_PRODUCT = "UserProduct",
1324
- RENTAL_PRODUCT = "RentalProduct"
1231
+ export declare class Customer extends OrganizationConnectionBaseEntity {
1232
+ name: string | null;
1233
+ entityId: number | null;
1234
+ addressId: number | null;
1235
+ entityType: CustomerTypeEnum | null;
1236
+ customerId: string | null;
1237
+ email: string | null;
1238
+ color: string | null;
1239
+ phoneNumber: string | null;
1240
+ mainMediaId: number | null;
1241
+ creatorId: number | null;
1242
+ creatorType: ResourceNameTypeEnum | null;
1243
+ userCreatorId: number | null;
1244
+ ownerId: number | null;
1245
+ vetted: boolean | null;
1246
+ firstName: string | null;
1247
+ lastName: string | null;
1248
+ waiverSignedDate: string | null;
1249
+ balance: number | null;
1250
+ storedCredit: number;
1251
+ members: (User & Customer)[];
1252
+ emergencyContacts: EmergencyContact[];
1253
+ customerNotes: CustomerNote[];
1254
+ customerCreditTransactions: CustomerCreditTransaction[];
1255
+ productsReservedFor: ProductsReservedForCustomers[];
1256
+ mainMedia: Media;
1257
+ reservations?: Reservation[];
1325
1258
  }
1326
- export declare enum ProductSubTypesEnum {
1327
- SEASON_INDIVIDUAL = "season_individual",
1328
- SEASON_TEAM = "season_team",
1329
- SEASON_PER_PLAYER = "season_per_player"
1259
+ export declare class CustomerCreditTransaction extends OrganizationConnectionBaseEntity {
1260
+ customerId: number;
1261
+ userId: number;
1262
+ amount: number;
1263
+ paymentId?: number;
1264
+ invoiceId?: number;
1265
+ description?: string;
1266
+ deletedAt?: Date;
1267
+ customer: Customer;
1268
+ invoice: Invoice;
1269
+ payment: Payment;
1330
1270
  }
1331
- export declare enum PaymentMethodTypeEnum {
1332
- CREDIT_CARD = "card",
1333
- ACH = "ach",
1334
- CASH = "cash",
1335
- CHECK = "check",
1336
- BALANCE = "balance",
1337
- CARD_ON_TERMINAL = "card-on-terminal",
1338
- OTHER = "other",
1339
- MIGRATED = "migrated",
1340
- VOID = "void"
1271
+ export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1272
+ customerId?: number;
1273
+ description: string;
1274
+ pinToTop?: boolean;
1275
+ customer: Customer;
1341
1276
  }
1342
- export declare enum RefundTypeEnum {
1343
- LEAVE_BALANCE = "leave_balance",
1344
- REDUCE_BALANCE = "reduce_balance"
1277
+ export declare class Division extends BondBaseEntity {
1278
+ name: string;
1279
+ ordinal?: number;
1280
+ programSeasonId: number;
1281
+ color: string;
1282
+ isDefault: boolean;
1283
+ groups: Group[];
1345
1284
  }
1346
- export declare enum CustomerInMembershipTypeEnum {
1347
- INDIVIDUAL = "individual",
1348
- FAMILY = "family",
1349
- ORGANIZATION = "organization"
1285
+ export declare class EntitlementGroup extends OrganizationConnectionBaseEntity {
1286
+ name: string | null;
1350
1287
  }
1351
- export declare enum MembershipTypeEnum {
1352
- FIXED = "fix_membership",
1353
- ROLLING = "rolling_membership"
1288
+ export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1289
+ customerId: number;
1290
+ name: string | null;
1291
+ phoneNumber: string | null;
1292
+ customer: Customer;
1354
1293
  }
1355
- export declare enum CustomerTypeEnum {
1356
- USER = "user",
1357
- FAMILY = "family",
1358
- ORGANIZATION = "organization"
1294
+ export declare class EntitlementTerms extends OrganizationConnectionBaseEntity {
1295
+ groupId: number;
1296
+ terms: IEntitlementTerms[];
1359
1297
  }
1360
- export declare enum GroupStatusEnum {
1361
- ACTIVE = 1,
1362
- INACTIVE = 2,
1363
- DRAFT = 3
1298
+ export declare class EventAttendee extends BondBaseEntity {
1299
+ status: RequestStatusEnum | null;
1300
+ hasPaid: boolean | null;
1301
+ paymentId: number | null;
1302
+ attendeeId: number;
1303
+ eventId?: number | null;
1304
+ productUserId?: number;
1305
+ answerTitleIds?: number[];
1306
+ entryStatus?: EntryStatusEnum;
1307
+ addonProductUserIds?: number[];
1308
+ deletedAt?: Date;
1309
+ attendee: User;
1310
+ event: Event;
1311
+ purchasedResource: PurchasedResource;
1364
1312
  }
1365
- export declare enum FutureInstallmentStatusEnum {
1366
- FUTURE = "future",
1367
- SUCCEEDED = "succeeded",
1368
- FAILED = "failed",
1369
- CANCELED = "canceled"
1313
+ export declare class Event extends OrganizationConnectionBaseEntity {
1314
+ constructor();
1315
+ defineCalculatedDateTimeProps(): void;
1316
+ title: string | null;
1317
+ description: string | null;
1318
+ eventType: number | null;
1319
+ startDate: Date | null;
1320
+ endDate: Date | null;
1321
+ price: number | null;
1322
+ venueName: string | null;
1323
+ status: EventStatusEnum;
1324
+ private: boolean | null;
1325
+ guestsCanInvite: boolean | null;
1326
+ venueId: number | null;
1327
+ addressId: number | null;
1328
+ participantsLimit: number | null;
1329
+ parentId: number | null;
1330
+ parentType: string | null;
1331
+ timezone: string | null;
1332
+ eventSubType: string | null;
1333
+ eventSubId: number | null;
1334
+ metaData: any | null;
1335
+ groupingId: string | null;
1336
+ redirectUri: string | null;
1337
+ externalId: string | null;
1338
+ paymentSettings: any | null;
1339
+ whoCanJoin: string | null;
1340
+ spaceId?: number;
1341
+ bookedSessionId: number | null;
1342
+ creatorId: number | null;
1343
+ creatorType: string | null;
1344
+ userCreatorId: number | null;
1345
+ ownerId: number | null;
1346
+ sports: number[] | null;
1347
+ isVerified: boolean | null;
1348
+ mainMediaId: number | null;
1349
+ minAge: number | null;
1350
+ maxAge: number | null;
1351
+ gender: number | null;
1352
+ questionnaireId: number | null;
1353
+ eventAttendees: EventAttendee[];
1354
+ deletedAt?: Date;
1355
+ spaces?: IBasicSpaceAndSlotCreator[];
1356
+ startDateString: string;
1357
+ endDateString: string;
1358
+ startTime: string;
1359
+ endTime: string;
1360
+ publicNotes?: string;
1361
+ privateNotes?: string;
1362
+ productResources: ProductResource[];
1363
+ parentSession: ProgramSeason;
1364
+ activityTimes: ActivityTimes[];
1365
+ slots: Slot[];
1366
+ purchasedResources: PurchasedResource[];
1367
+ program?: Program;
1368
+ session?: ProgramSeason;
1369
+ segment?: ProgramSeason;
1370
1370
  }
1371
- export declare enum EntryStatusEnum {
1372
- ENTERED = 1,
1373
- NOT_ENTERED = 2,
1374
- CANCELED = 3
1371
+ export declare class Facility extends OrganizationConnectionBaseEntity {
1372
+ name: string;
1373
+ description?: string;
1374
+ addressId: number;
1375
+ address: Address;
1376
+ amenities?: number[];
1377
+ timezone: string;
1378
+ creatorId: number;
1379
+ creatorType: string;
1380
+ userCreatorId: number;
1381
+ mainMediaId: number;
1382
+ mainMedia: Media;
1383
+ publishedDate?: Date;
1384
+ isPublished: boolean;
1385
+ sports?: number[];
1386
+ info?: string;
1387
+ longDescription?: string;
1388
+ deletedAt?: Date;
1389
+ openingTimes: OpeningTime[];
1390
+ resources: Resource[];
1391
+ spaces: Resource[];
1392
+ programSeasons: ProgramSeason[];
1393
+ linkSEO: string;
1375
1394
  }
1376
- export declare enum PurchasedResourceStatusEnum {
1377
- ACTIVE = 1,
1378
- MOVED = 2,
1379
- CANCELED = 3
1395
+ export declare class FacilityToResource extends BondBaseEntity {
1396
+ facilityId: number;
1397
+ resourceId: number;
1380
1398
  }
1381
- export declare enum TeamCanJoinEnum {
1382
- ANYONE = "anyone",
1383
- BY_INVITE = "byInvite",
1384
- CAPTAIN_APPROVAL = "captainApproval"
1399
+ export declare class FamilyAccount extends BondBaseEntity {
1400
+ name: string | null;
1401
+ userInFamilyAccounts: UserInFamilyAccount[];
1385
1402
  }
1386
- export declare enum TeamMemberStatusEnum {
1387
- PENDING = 1,
1388
- ACTIVE = 2,
1389
- DECLINED = 3,
1390
- SUSPENDED = 4,
1391
- INACTIVE = 5,
1392
- INVITED = 6
1403
+ export declare class FutureInstallment extends OrganizationConnectionBaseEntity {
1404
+ userId: number;
1405
+ invoiceId: number;
1406
+ paymentMethodId: string;
1407
+ paymentType: PaymentMethodTypeEnum;
1408
+ price: number;
1409
+ status: FutureInstallmentStatusEnum;
1410
+ plannedDate: Date;
1411
+ chargedAt?: Date;
1412
+ originalPlannedDate?: Date;
1393
1413
  }
1394
- export declare enum TeamMemberRoleEnum {
1395
- NULL = 0,
1396
- ADMIN = 1
1414
+ export declare class GlCodes extends OrganizationConnectionBaseEntity {
1415
+ code: string;
1397
1416
  }
1398
- export declare enum DayOfWeekEnum {
1399
- SUNDAY = 0,
1400
- MONDAY = 1,
1401
- TUESDAY = 2,
1402
- WEDNESDAY = 3,
1403
- THURSDAY = 4,
1404
- FRIDAY = 5,
1405
- SATURDAY = 6
1406
- }
1407
- export declare enum ActionTypesEnum {
1408
- CREATE = "create",
1409
- READ = "read",
1410
- UPDATE = "update",
1411
- DELETE = "delete"
1412
- }
1413
- export declare enum ActionSourcePlatformEnum {
1414
- ADMIN = "admin",
1415
- BACKOFFICE = "backoffice",
1416
- CONSUMER = "consumer"
1417
- }
1418
- export declare enum RolesEnum {
1419
- ORG_ADMIN = "organizationAdmin",
1420
- BOND_ADMIN = "bondAdmin"
1421
- }
1422
- export declare enum SeasonPoolStatusEnum {
1423
- IN_POOL = 5,
1424
- ASSIGNED = 1,
1425
- QUIT = 2,
1426
- SUSPENDED = 3,
1427
- INACTIVE = 4
1428
- }
1429
- export declare enum AmenitiesEnum {
1430
- HEAT = 1,
1431
- AC = 2,
1432
- WIFI = 3,
1433
- RESTROOMS = 4,
1434
- DRINKING_FOUNTAIN = 5,
1435
- PARKING = 6,
1436
- CONCESSIONS = 7,
1437
- SHELTER = 8,
1438
- PORTABLE_RESTROOMS = 9,
1439
- LIGHTS = 10,
1440
- LOCKER_ROOM = 11,
1441
- PAID_PARKING = 12,
1442
- ACCESSIBLE = 13
1443
- }
1444
- export declare enum ResourceSubTypeEnum {
1445
- COURT = "court",
1446
- FIELD = "field",
1447
- ROOM = "room",
1448
- DIAMOND = "diamond",
1449
- RINK = "rink",
1450
- STUDIO = "studio",
1451
- POOL = "pool",
1452
- BATTING_CAGE = "batting cage",
1453
- SHELTER = "shelter",
1454
- GOLF_SIMULATOR = "golf simulator"
1455
- }
1456
- export declare enum ResourceTypeEnum {
1457
- SPACE = "space"
1417
+ export declare class Group extends BondBaseEntity {
1418
+ name: string;
1419
+ description?: string;
1420
+ status: GroupStatusEnum;
1421
+ maxCapacity?: number;
1422
+ mainMediaId?: number;
1423
+ minAgeYears?: number;
1424
+ maxAgeYears?: number;
1425
+ gender: GenderEnum;
1426
+ levelOfPlay?: LevelOfPlayEnum[];
1427
+ sports: SportsEnum[];
1428
+ questionnaires?: number[];
1429
+ captainUserId?: number;
1430
+ members: ISeasonAttendeeInfo[];
1431
+ users: User[];
1458
1432
  }
1459
- export declare enum ResourceAgesEnum {
1460
- ADULTS = "adults",
1461
- CHILDREN = "children"
1433
+ export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
1434
+ groupId: number;
1435
+ itemId: number;
1436
+ itemType: ResourceNameTypeEnum;
1437
+ startDate: Date;
1438
+ endDate: Date;
1439
+ price: number;
1440
+ overridesPrice: boolean;
1441
+ deletedAt?: Date;
1442
+ group?: EntitlementGroup;
1443
+ discountMethod?: DiscountMethodsEnum;
1444
+ discountValue?: number;
1462
1445
  }
1463
- export declare enum SpacePropertiesEnum {
1464
- OUTDOOR = "outdoor",
1465
- INDOOR = "indoor"
1446
+ export declare class GroupsInDivisions extends BondBaseEntity {
1447
+ groupId: number;
1448
+ divisionId: number;
1449
+ deletedAt?: Date;
1466
1450
  }
1467
- export declare enum SurfacesEnum {
1468
- GRASS = "grass",
1469
- TURF = "turf",
1470
- FIELD_TURF = "fieldTurf",
1471
- ASTRO_TURF = "astroTurf",
1472
- HARDWOOD = "hardwood",
1473
- ASPHALT = "asphalt",
1474
- SAND = "sand",
1475
- ICE = "ice",
1476
- SPORT_COURT = "sportCourt"
1451
+ export declare class Invoice extends BondBaseEntity {
1452
+ invoiceId: string | null;
1453
+ price: number | null;
1454
+ status: InvoiceStatusEnum | null;
1455
+ sentForClientDate: Date | null;
1456
+ payingUserId?: number | null;
1457
+ invoiceToPayments: InvoiceToPayment[];
1458
+ lineItems: LineItems[];
1459
+ lineItemHistory: LineItemHistory[];
1460
+ paymentStatus: PaymentStatusEnum;
1461
+ paymentMethodId?: string;
1462
+ paymentType?: PaymentMethodTypeEnum;
1463
+ paidAmount: number;
1464
+ currency: CurrencyEnum;
1465
+ mainPaymentId: number;
1466
+ isScheduled: boolean;
1467
+ isRefunded: boolean;
1468
+ isVoided: boolean;
1469
+ creatingUserId: number;
1470
+ shiftId: number;
1471
+ platform: PlatformsEnum;
1472
+ invoiceNotes: InvoiceNote[];
1473
+ slots: Slot[];
1477
1474
  }
1478
- export declare enum RegistrationConstraintPeriodTypeEnum {
1479
- MINUTES = "minutes",
1480
- DAYS = "days"
1475
+ export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1476
+ email: string;
1477
+ status: EEmailStatus;
1478
+ templateId: string;
1479
+ userId: number;
1480
+ invoiceId: number;
1481
+ paymentId: number;
1482
+ sendingUserId: number;
1483
+ mailParams?: any;
1484
+ memo?: string;
1481
1485
  }
1482
- export declare enum RegistrationWindowStatusEnum {
1483
- NOT_OPEN_YET = "not_opened_yet",
1484
- OPEN = "open",
1485
- CLOSED = "closed"
1486
+ export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
1487
+ content: string;
1488
+ creatingUserId: number;
1489
+ user: User;
1490
+ isPublic: boolean;
1491
+ deletedAt: Date;
1492
+ invoiceId: number;
1493
+ invoice: Invoice;
1486
1494
  }
1487
- export declare enum RegistrationValidationStatusEnum {
1488
- FULL = "full",
1489
- ALREADY_REGISTERED = "registered",
1490
- AVAILABLE = "available",
1491
- NOT_OPEN_YET = "not opened",
1492
- ALREADY_CLOSED = "closed",
1493
- NO_PRODUCT_FOUND = "no-product-found"
1495
+ export declare class InvoiceToPayment extends BondBaseEntity {
1496
+ invoiceId: number;
1497
+ paymentId: number;
1498
+ invoice: Invoice;
1499
+ payment: Payment;
1500
+ paidAmount?: number;
1501
+ currency: CurrencyEnum;
1494
1502
  }
1495
- export declare enum DiscountMethodsEnum {
1496
- PERCENT = "percent",
1497
- AMOUNT = "amount"
1503
+ export declare class League extends OrganizationConnectionBaseEntity {
1504
+ name: string | null;
1505
+ description: string | null;
1506
+ allowBookingRequest: boolean | null;
1507
+ addressName: string | null;
1508
+ shortDescription: string | null;
1509
+ waiverDoc: string | null;
1510
+ bookingStateStatus: number | null;
1511
+ timezone: string | null;
1512
+ shortUrl: string | null;
1513
+ leagueType: string | null;
1514
+ addressId: number | null;
1515
+ sportConfigData: any | null;
1516
+ creatorId: number | null;
1517
+ creatorType: string | null;
1518
+ userCreatorId: number | null;
1519
+ ownerId: number | null;
1520
+ sports: number[] | null;
1521
+ mainMediaId: number | null;
1522
+ publishedDate: Date | null;
1523
+ isPublished: boolean | null;
1524
+ isVerified: boolean | null;
1525
+ questionnaireId: number | null;
1526
+ logo?: Media;
1527
+ seasons: LeagueSeason[];
1498
1528
  }
1499
- export declare enum UserAuthorizationsTypeEnum {
1500
- ORGANIZATION = "organization"
1529
+ export declare class LeagueSeason extends BondBaseEntity {
1530
+ leagueId: number | null;
1531
+ name: string | null;
1532
+ status: number | null;
1533
+ startDate: Date | null;
1534
+ endDate: Date | null;
1535
+ priceEarlySingle: number | null;
1536
+ priceRegularSingle: number | null;
1537
+ priceLateSingle: number | null;
1538
+ priceEarlyTeam: number | null;
1539
+ priceRegularTeam: number | null;
1540
+ priceLateTeam: number | null;
1541
+ priceEarlyTeamMember: number | null;
1542
+ priceRegularTeamMember: number | null;
1543
+ priceLateTeamMember: number | null;
1544
+ priceEarlyGroup: number | null;
1545
+ priceRegularGroup: number | null;
1546
+ priceLateGroup: number | null;
1547
+ earlyRegistrationEnds: Date | null;
1548
+ regularRegistrationEnds: Date | null;
1549
+ lateRegistrationEnds: Date | null;
1550
+ registrationStatus: number | null;
1551
+ description: string | null;
1552
+ addressName: string | null;
1553
+ registrationOpen: Date | null;
1554
+ connectedSeasonId: number | null;
1555
+ tournamentType: boolean | null;
1556
+ playoffType: boolean | null;
1557
+ scheduleStatus: SeasonScheduleStatusEnum;
1558
+ rosterStatus: string | null;
1559
+ metaData: any | null;
1560
+ inviteSendDate: Date | null;
1561
+ maxNumParticipants: number | null;
1562
+ programId: number | null;
1563
+ minNumParticipants: number | null;
1564
+ league: League;
1565
+ facilities: Facility[];
1566
+ seasonAttendees: SeasonAttendee[];
1567
+ purchasedResources: PurchasedResource[];
1501
1568
  }
1502
- export declare enum OrganizationLocaleDateEnum {
1503
- USA = "USA"
1569
+ export declare class LeagueSeasonRelations {
1570
+ league?: boolean;
1571
+ facilities?: boolean;
1504
1572
  }
1505
- export declare enum DateTimeFormatsEnum {
1506
- API_DATE = "YYYY/MM/DD",
1507
- API_TIME = "HH:mm:ss",
1508
- DB_DATE = "YYYY-MM-DD"
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;
1509
1582
  }
1510
- export declare enum SlotTypeEnum {
1511
- EXTERNAL = "external",
1512
- INTERNAL = "internal",
1513
- MAINTENANCE = "maintenance",
1514
- CUSTOM = "custom"
1583
+ export declare class LineItems extends BondBaseEntity {
1584
+ constructor();
1585
+ defineIsReverted(): void;
1586
+ isReverted: boolean;
1587
+ invoiceId: number;
1588
+ invoice: Invoice;
1589
+ lineItemsHistory: LineItemHistory[];
1590
+ type: LineItemsStatusEnum | null;
1591
+ userId: number | null;
1592
+ productId: number;
1593
+ paymentProcessorId: string;
1594
+ productType: ProductTypesEnum;
1595
+ productUserId?: number;
1596
+ ordinal: number | null;
1597
+ entitlementGroupId?: number;
1598
+ entitlementGroups: EntitlementGroup;
1599
+ price: number;
1600
+ originalPrice?: number;
1601
+ paidAmount?: number;
1602
+ totalPaid?: number;
1603
+ totalQuantity?: number;
1604
+ totalPrice?: number;
1605
+ currency: CurrencyEnum;
1606
+ paymentStatus: PaymentStatusEnum;
1607
+ productSubType?: ProductSubTypesEnum;
1608
+ product: Product;
1609
+ organizationId: number;
1610
+ parentLineItemId?: number;
1611
+ taxLineItem?: LineItems;
1612
+ children?: LineItems[];
1613
+ previousPurchaseProducUserId?: number;
1614
+ discountDescription?: string;
1615
+ productUser?: ProductsUsers;
1616
+ resourceRedeemedForDiscount?: number;
1617
+ redeemableProduct: Product[];
1618
+ isRefunded: boolean;
1619
+ isPartiallyRefund: boolean;
1620
+ isVoided: boolean;
1621
+ isPartiallyVoided: boolean;
1622
+ wasReverted: boolean;
1623
+ isEdit: boolean;
1624
+ purchasedResources: PurchasedResource[];
1625
+ isTaxInclusive?: boolean;
1626
+ taxPrecent?: number;
1627
+ unitPrice?: number;
1628
+ quantity?: number;
1629
+ customerFirstName?: string;
1630
+ customerLastName?: string;
1631
+ displayFullPrice?: number;
1632
+ displayTotalPriceWithTax?: number;
1633
+ displayTotalPaid?: number;
1634
+ displayTotalQuantity?: number;
1635
+ displayUnitPrice?: number;
1636
+ displayQuantity?: number;
1515
1637
  }
1516
- export declare enum PlatformsEnum {
1517
- CONSUMER = "consumer",
1518
- CONSUMER_CHECKOUT = "consumer_checkout",
1519
- BO = "backoffice",
1520
- MOBILE = "mobile",
1521
- CRON = "cron"
1638
+ export declare class LinkedAccounts extends BondBaseEntity {
1639
+ id: number;
1640
+ provider: string;
1641
+ providerId: string | null;
1642
+ parentId: number | null;
1643
+ parentType: string | null;
1644
+ status: number | null;
1645
+ token: string | null;
1646
+ refreshToken: string | null;
1647
+ tokenCreatedAt: Date | null;
1648
+ tokenValidUpTo: Date | null;
1649
+ createdAt: Date;
1650
+ updatedAt: Date;
1651
+ user: User;
1652
+ userId: number | null;
1522
1653
  }
1523
- export declare enum ShiftStatusEnum {
1524
- OPEN = "open",
1525
- CLOSED = "closed",
1526
- MANAGMENT_CLOSED = "closed_by_manager",
1527
- RECONCILED = "reconciled"
1654
+ export declare class Media extends BondBaseEntity {
1655
+ url: string;
1656
+ name: string | null;
1657
+ title: string | null;
1658
+ mediaKey: string | null;
1659
+ description: string | null;
1660
+ provider: string | null;
1661
+ mediaType: number;
1662
+ fileType: string | null;
1663
+ isDefault: boolean | null;
1664
+ creatorId: number | null;
1665
+ creatorType: string | null;
1666
+ userCreatorId: number | null;
1667
+ ownerId: number | null;
1668
+ createdBy: number | null;
1669
+ users: User[];
1670
+ programs: Program[];
1671
+ memberships: Membership[];
1528
1672
  }
1529
- export declare enum EventStatusEnum {
1530
- OPEN = 1,
1531
- DRAFT = 2,
1532
- FULL = 3,
1533
- CANCELLED = 4,
1534
- CLOSED = 5,
1535
- DELETED = 6
1673
+ export declare class Membership extends OrganizationConnectionBaseEntity {
1674
+ name: string;
1675
+ description?: string;
1676
+ mainMedia?: Media;
1677
+ customerTypes: CustomerInMembershipTypeEnum[];
1678
+ activity?: SportsEnum;
1679
+ facilityId?: number;
1680
+ facilityName?: string;
1681
+ questionnaires?: number[];
1682
+ minAgeYears?: number;
1683
+ maxAgeYears?: number;
1684
+ gender: GenderEnum;
1685
+ maxMembers?: number;
1686
+ maxMaleMembers?: number;
1687
+ maxFemaleMembers?: number;
1688
+ membershipType: MembershipTypeEnum;
1689
+ durationMonths?: number;
1690
+ startDate?: string;
1691
+ endDate?: string;
1692
+ registrationStartDate?: Date;
1693
+ registrationEndDate?: Date;
1694
+ package?: IPackageResponse;
1695
+ tags: any[];
1696
+ members: MembershipMember[];
1697
+ longDescription?: string;
1698
+ isAutoRenew?: boolean;
1699
+ purchasedResources: PurchasedResource[];
1536
1700
  }
1537
- export declare enum ReservationTypeEnum {
1538
- RENTAL = "rental",
1539
- PROGRAM = "program",
1540
- MAINTENANCE = "maintenance",
1541
- CUSTOM = "custom",
1542
- INTERNAL = "internal"
1701
+ export declare class MembershipMember extends OrganizationConnectionBaseEntity {
1702
+ membership: Membership;
1703
+ membershipId: number;
1704
+ productUserId: number;
1705
+ productUser?: ProductsUsers;
1706
+ userId: number;
1707
+ membershipType: MembershipTypeEnum;
1708
+ durationMonths?: number;
1709
+ startDate?: string;
1710
+ endDate?: string;
1711
+ renewalOfMemberId?: number;
1712
+ isAutoRenew?: boolean;
1713
+ nextPaymentMethodId?: string;
1714
+ nextPaymentType?: PaymentMethodTypeEnum;
1715
+ answerTitleIds?: number[];
1716
+ cancelledAt?: Date | null;
1717
+ cancellationReason?: string;
1718
+ cancellationStatus?: CancellationStatusEnum;
1719
+ isImported?: boolean;
1543
1720
  }
1544
- export declare enum SlotDurationTypeEnum {
1545
- DATES = "dates",
1546
- ALL_DAY = "all day",
1547
- DURATION = "duration"
1721
+ export declare class NotificationSubscriptions extends OrganizationConnectionBaseEntity {
1722
+ email: string | null;
1723
+ notificationType: NotificationTypeEnum | null;
1724
+ resourceId: number | null;
1725
+ resourceType: string | null;
1548
1726
  }
1549
- export declare enum DurationUnitTypesEnum {
1550
- MINUTES = "minutes",
1551
- HOURS = "hours"
1727
+ export declare class OpeningTime extends OrganizationConnectionBaseEntity {
1728
+ id: number;
1729
+ dayOfWeek: number;
1730
+ open: string;
1731
+ close: string;
1732
+ facilityId: number;
1733
+ createdAt: Date;
1734
+ updatedAt: Date;
1735
+ deletedAt?: Date;
1736
+ facility: Facility;
1552
1737
  }
1553
- export declare enum FrequencyEnum {
1554
- NONE = "none",
1555
- WEEKLY = "weekly",
1556
- DAILY = "daily",
1557
- MONTHLY = "monthly",
1558
- YEARLY = "yearly"
1738
+ export declare class OrganizationConnectionBaseEntity extends BondBaseEntity {
1739
+ organizationId: number;
1559
1740
  }
1560
- export declare enum MaintenanceTimingEnum {
1561
- BEFORE = 1,
1562
- AFTER = 2,
1563
- AT_THE_BEGINING = 3,
1564
- AT_THE_END = 4
1741
+ export declare class PackageV1 extends BondBaseEntity {
1742
+ name?: string;
1743
+ description?: string;
1744
+ price: number;
1745
+ status: string;
1746
+ percentage: number;
1747
+ quantity: number;
1748
+ duration: number;
1749
+ organizationId: number;
1750
+ creatorId: number;
1751
+ creatorType: string;
1752
+ userCreatorId: number;
1753
+ ownerId: number;
1754
+ addon: boolean;
1755
+ isMandatory: boolean;
1756
+ productId: number;
1565
1757
  }
1566
- export declare enum CreatorTypeEnum {
1567
- SPACE = "space",
1568
- PROGRAM_SEASON = "program_season",
1569
- SEASON = "season"
1758
+ export declare class PasswordReset extends BondBaseEntity {
1759
+ token: string | null;
1760
+ userId: number | null;
1761
+ validUntil: Date | null;
1762
+ active: boolean | null;
1570
1763
  }
1571
- export declare enum UpdatePricesTypeEnum {
1572
- INDIVIDUAL = "indvidual",
1573
- CATEGORY = "category",
1574
- GLOBAL = "global"
1764
+ export declare class Payment extends OrganizationConnectionBaseEntity {
1765
+ price: number;
1766
+ paymentProcessorId: string;
1767
+ invoiceToPayments: InvoiceToPayment[];
1768
+ paymentStatus: PaymentStatusEnum;
1769
+ bondFee?: number;
1770
+ stripeFee?: number;
1771
+ currency: CurrencyEnum;
1772
+ payingUserId?: number;
1773
+ paymentMethodId?: string;
1774
+ paymentType?: PaymentMethodTypeEnum;
1775
+ fundLeft: number;
1776
+ notes?: string;
1777
+ isRefunded: boolean;
1778
+ lineItemHistory: LineItemHistory[];
1779
+ receiptUrl?: string;
1780
+ paymentProcessorTransactionId?: string;
1781
+ creatingUserId: number;
1782
+ shiftId: number;
1783
+ platform: PlatformsEnum;
1784
+ ccLast4: string;
1785
+ ccBrand: string;
1786
+ paymentNotes: PaymentNote[];
1787
+ parentInvoiceId?: number;
1788
+ refundReasonId?: number;
1789
+ refundNote?: string;
1575
1790
  }
1576
- export declare enum BondDayOfWeekEnum {
1577
- MONDAY = 2,
1578
- TUESDAY = 3,
1579
- WEDNESDAY = 4,
1580
- THURSDAY = 5,
1581
- FRIDAY = 6,
1582
- SATURDAY = 7,
1583
- SUNDAY = 8
1584
- }
1585
- export declare enum ReservationMigrationStatusEnum {
1586
- NEW = "new",
1587
- NO = "no",
1588
- YES = "yes"
1589
- }
1590
- export declare enum ProductPackageLevelEnum {
1591
- HOUR = "hour",
1592
- SLOT = "slot",
1593
- RESERVATION = "reservation"
1594
- }
1595
- export declare enum CancellationStatusEnum {
1596
- IMMEDIATE = "immediate",
1597
- AUTO_RENEWAL = "auto_renewal"
1598
- }
1599
- export declare enum SeasonScheduleStatusEnum {
1600
- DRAFT = 0,
1601
- PUBLISHED = 1
1602
- }
1603
- export declare enum FinancialStepEnum {
1604
- VOID = "void",
1605
- REFUND = "refund",
1606
- NONE = "none",
1607
- REFUND_AND_VOID = "refund-and-void",
1608
- APPEND = "append"
1609
- }
1610
- export declare enum StripeAccountTypesEnum {
1611
- STRIPE = "stripe",
1612
- STRIPE_CUSTOM = "stripe:account:custom",
1613
- STRIPE_CUSTOMER = "stripe:customer"
1614
- }
1615
- export declare enum LinkedAccountStatus {
1616
- PENDING = 1,
1617
- ACTIVE = 2,
1618
- PRE_PENDING = 3
1791
+ export declare class PaymentFailure extends OrganizationConnectionBaseEntity {
1792
+ paymentInstallmentId?: number;
1793
+ invoiceId: number;
1794
+ reason: EFailedPaymentReasons;
1795
+ errorMessage: string;
1619
1796
  }
1620
- export declare enum AddonParentTypeEnum {
1621
- RESERVATION = "reservation",
1622
- SLOT = "slot"
1797
+ export declare class PaymentFailConfig extends OrganizationConnectionBaseEntity {
1798
+ failureIndex: number;
1799
+ waitingDays: number;
1623
1800
  }
1624
- export declare enum EEmailStatus {
1625
- SENT = "sent",
1626
- OPENED = "opened",
1627
- PAID = "paid",
1628
- CANCELED = "canceled"
1801
+ export declare class PaymentNote extends OrganizationConnectionBaseEntity {
1802
+ content: string;
1803
+ creatingUserId: number;
1804
+ user: User;
1805
+ isPublic: boolean;
1806
+ deletedAt: Date;
1807
+ paymentId: number;
1808
+ payment: Payment;
1629
1809
  }
1630
- export declare enum PaymentSettingStatusEnum {
1631
- ENABLED = 1,
1632
- DISABLED_REDIRECT = 2,
1633
- DISABLED_INFO_ONLY = 3,
1634
- DISABLED_EMAIL = 4
1810
+ export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1811
+ paymentPlanId: number;
1812
+ paymentDate: Date;
1813
+ deletedAt?: Date;
1814
+ paymentPlan: ProductPaymentPlan;
1635
1815
  }
1636
- export declare enum NotifyMethodEnum {
1637
- EMAIL = "Email"
1816
+ export declare class PaymentV1 extends BondBaseEntity {
1817
+ userId: number | null;
1818
+ ownerId: number | null;
1819
+ parentId: number | null;
1820
+ parentType: string | null;
1821
+ idAtProvider: string | null;
1822
+ providerType: number | null;
1823
+ providerExtraData: string | null;
1824
+ requestData: string | null;
1825
+ responseData: string | null;
1826
+ status: number | null;
1827
+ price: number | null;
1828
+ currency: string | null;
1829
+ locked: boolean | null;
1830
+ numberOfTries: number | null;
1831
+ installmentId: number | null;
1832
+ invoiceId: string | null;
1638
1833
  }
1639
- export declare enum EStartDateFilter {
1640
- LessThan = "lt",
1641
- GreaterOrEqualTo = "gte"
1834
+ export declare class Price extends OrganizationConnectionBaseEntity {
1835
+ productId: number;
1836
+ product: Product;
1837
+ name: string | null;
1838
+ price: number;
1839
+ currency: CurrencyEnum;
1840
+ paymentProcessorId: number | null;
1841
+ startDate: Date;
1842
+ endDate: Date;
1843
+ groupId?: number;
1844
+ groupName?: string;
1845
+ originalPrice?: number;
1846
+ deletedAt?: Date;
1847
+ discountMethod?: DiscountMethodsEnum;
1848
+ discountValue?: number;
1849
+ taxIncludedPrice?: number;
1642
1850
  }
1643
- export interface IEntitlementTerms {
1644
- type: EntitlementTermsTypesEnum;
1645
- id?: number;
1646
- value?: string;
1647
- minValue?: string;
1648
- maxValue?: string;
1851
+ export declare class Product extends OrganizationConnectionBaseEntity {
1852
+ name: string;
1853
+ quantity: number;
1854
+ paymentProcessorId?: string;
1855
+ startDate?: Date;
1856
+ endDate?: Date;
1857
+ isPublic: boolean;
1858
+ productType?: ProductTypesEnum;
1859
+ GL?: string;
1860
+ downpayment?: number;
1861
+ description?: string;
1862
+ prices: Price[];
1863
+ currPrice: Price;
1864
+ productSubType?: ProductSubTypesEnum;
1865
+ punchCard: boolean;
1866
+ requiredProductIds?: number[];
1867
+ lineItems: LineItems[];
1868
+ resources: IResourcesAvailability[];
1869
+ variantParentId?: number;
1870
+ isAddon: boolean;
1871
+ isArchive: boolean;
1872
+ productVariants: Product[];
1873
+ variantParentProduct: Product;
1874
+ variantsObj: Variant[];
1875
+ variantTitlesObj: VariantTitle[];
1876
+ timePeriod?: AddonTimePeriodEnum;
1877
+ deletedAt?: Date;
1878
+ productsUsers: ProductsUsers[];
1879
+ isProRated: boolean;
1880
+ entitledPrices?: GroupItemsPricing[];
1881
+ defaultPriceId?: number;
1882
+ tax: number;
1883
+ isTaxInclusive: boolean;
1884
+ defaultPrice?: Price;
1885
+ addOns?: IChildProduct[];
1886
+ productPaymentPlan?: ProductPaymentPlan;
1887
+ productResources: ProductResource[];
1888
+ parentProductPackages: ProductPackage[];
1889
+ childProductPackages: ProductPackage[];
1890
+ sports?: number[] | null;
1891
+ durationMinutes?: number;
1892
+ durationDays?: number;
1893
+ forms?: number[] | null;
1894
+ isForAllCustomers?: boolean;
1895
+ productsReservedForCustomers: ProductsReservedForCustomers[];
1896
+ reservedForCustomers: Customer[];
1897
+ reservedForMemberships: Membership[];
1898
+ activityTimes: ActivityTimes[];
1899
+ purchasedResources: PurchasedResource[];
1649
1900
  }
1650
- export interface IQuestionAnswerObject {
1651
- questionId: number;
1652
- value: string;
1901
+ export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
1902
+ productId: number;
1903
+ maxMonths?: number;
1904
+ dayOfMonth?: number;
1905
+ name: string;
1906
+ deletedAt?: Date;
1907
+ schedule: PaymentPlanSchedule[];
1908
+ product?: Product;
1653
1909
  }
1654
- export interface ILowestPriceForItem {
1655
- itemId: number;
1656
- itemType: ResourceNameTypeEnum;
1657
- groupId: number;
1658
- groupName?: string;
1910
+ export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1911
+ parentProductId: number;
1912
+ childProductId: number;
1913
+ relationType: PackageProductsRelationTypeEnum;
1914
+ timePeriod: AddonTimePeriodEnum;
1915
+ deletedAt?: Date;
1916
+ productResource: ProductResource;
1917
+ childProduct: Product;
1918
+ parentProduct: Product;
1659
1919
  price: number;
1660
- overridesPrice: boolean;
1920
+ isFlatPrice: boolean;
1921
+ durationMinutes?: number;
1922
+ durationDays?: number;
1923
+ level?: ProductPackageLevelEnum;
1661
1924
  }
1662
- export interface IResourcesAvailability {
1925
+ export declare class ProductResource extends OrganizationConnectionBaseEntity {
1926
+ productId: number;
1927
+ resourceId: number;
1663
1928
  resourceType: ResourceNameTypeEnum;
1664
- quantity: number;
1665
- resourcesIds: number[];
1666
- isPunchCard: boolean;
1667
- resources?: any[];
1929
+ deletedAt?: Date;
1930
+ programSeason: ProgramSeason;
1931
+ event: Event;
1932
+ product: Product;
1933
+ productPackages: ProductPackage[];
1934
+ resourceName?: string;
1668
1935
  }
1669
- export interface IPackageResponse {
1670
- parentProduct: Product;
1671
- children: IChildProduct[];
1936
+ export declare class ProductToVariantTitle extends OrganizationConnectionBaseEntity {
1937
+ productId: number;
1938
+ variantTitleId: number;
1672
1939
  }
1673
- export interface IChildProduct {
1674
- product: Product;
1675
- relationType: PackageProductsRelationTypeEnum;
1676
- timePeriod?: AddonTimePeriodEnum;
1940
+ export declare class ProductToVariant extends OrganizationConnectionBaseEntity {
1941
+ productId: number;
1942
+ variantId: number;
1677
1943
  }
1678
- export interface ISeasonAttendeeInfo {
1679
- applicationAnswers: Answer[];
1680
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
1681
- invoices: Invoice[];
1682
- payments: Payment[];
1683
- products: Product[];
1684
- redeemNext: ProductsUsers;
1944
+ export declare class ProductsReservedForCustomers extends OrganizationConnectionBaseEntity {
1945
+ productId: number;
1946
+ customerId: number;
1947
+ customer: Customer;
1948
+ deletedAt?: Date;
1949
+ product: Product;
1685
1950
  }
1686
- export interface ISeasonAttendeeListInfo {
1951
+ export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1952
+ productId: number;
1687
1953
  userId: number;
1688
- userFirstName: string;
1689
- userLastName: string;
1690
- userGender: number;
1691
- userBirthDate: Date;
1692
- userProfilePicUrl: string;
1693
- customerId: number;
1694
- customerEmail: string;
1695
- paymentStatus: string;
1954
+ user?: User;
1955
+ paymentStatus: PaymentStatusEnum;
1696
1956
  productName: string;
1697
- punchCard: boolean;
1698
- }
1699
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
1700
- segmentType: ResourceNameTypeEnum;
1701
- participantRegisteredDate?: string;
1702
- }
1703
- export declare class EventAsSeasonSegment extends Event {
1704
- segmentType: ResourceNameTypeEnum;
1705
- participantRegisteredDate?: string;
1706
- }
1707
- export interface ITokenResonse {
1708
- token: string;
1709
- }
1710
- export interface IStripeBondInvoices {
1711
- paidStripePaymentIntent: Stripe.PaymentIntent;
1712
- bondPaidPayment: Payment;
1713
- invoice?: Invoice;
1714
- customer?: Customer;
1715
- }
1716
- export interface IPartialPaymentData {
1717
- purchasingUserId: number;
1718
- paymentData: PurchasePaymentDto;
1719
- amountToPay: number;
1720
- }
1721
- export interface IPayment {
1722
- id: number;
1723
- total: number;
1724
- paymentMethod: PaymentMethodTypeEnum;
1725
- status: PaymentStatusEnum;
1726
- createdAt: Date;
1727
- invoices: number[];
1728
- }
1729
- export interface IPaginationData<T> {
1730
- meta: {
1731
- totalItems: number;
1732
- itemsPerPage: number;
1733
- totalPages: number;
1734
- currentPage: number;
1735
- };
1736
- data: T[];
1737
- }
1738
- export interface IPricesOfProductsResults {
1739
- productId: number;
1740
- userId: number;
1741
- price: number;
1742
- groupId?: number;
1743
- groupName?: string;
1744
- originalPrice?: number;
1745
- priceWithoutTax: number;
1746
- tax: number;
1747
- isTaxInclusive: boolean;
1748
- }
1749
- export interface IPaymentMethodToFundLeft {
1750
- paymentType: PaymentMethodTypeEnum;
1751
- paymentMethodId: string;
1752
- fundLeft: number;
1753
- ccLast4?: string;
1754
- ccBrand?: string;
1755
- }
1756
- export interface IVariantsAndTitle {
1757
- title: VariantTitle;
1758
- variants: Variant[];
1957
+ productPrice: number;
1958
+ productQuantity: number;
1959
+ productQuantityLeft: number;
1960
+ productPriceCurrency: CurrencyEnum;
1961
+ ordinal?: number;
1962
+ purchasedResources: PurchasedResource[];
1963
+ product: Product;
1964
+ lineItem: LineItems;
1965
+ slots?: Slot[];
1966
+ addons?: Addon[];
1759
1967
  }
1760
- export interface IProgramSeasonActivityTimes {
1761
- dayOfWeek: number;
1762
- open: string;
1763
- close: string;
1968
+ export declare class Program extends BondBaseEntity {
1969
+ type: ProgramTypesEnum;
1970
+ name: string;
1971
+ sport: SportsEnum;
1972
+ minAge: string;
1973
+ maxAge: string;
1974
+ gender: GenderEnum;
1975
+ level: LevelOfPlayEnum[] | null;
1976
+ description: string | null;
1977
+ GL?: string | null;
1978
+ status: PublishingStatusEnum;
1979
+ mainMedia: Media;
1980
+ organizationId: number;
1981
+ userCreatorId: number;
1982
+ programHighlights: ProgramHighlights[];
1983
+ linkSEO: string;
1984
+ longDescription?: string;
1985
+ requiredProductIds: number[] | null;
1986
+ deletedAt?: Date;
1987
+ programSeason: ProgramSeason[];
1988
+ purchasedResources: PurchasedResource[];
1764
1989
  }
1765
- export interface IProgramSeasonActivityTimesAsDates {
1766
- date: string;
1767
- startTime: string;
1768
- endTime: string;
1990
+ export declare class ProgramHighlights extends BondBaseEntity {
1991
+ type: ProgramHighlightTypeEnum;
1992
+ ordinal: number | null;
1993
+ title: string | null;
1994
+ data: any | null;
1995
+ program: Program;
1996
+ deletedAt?: Date;
1769
1997
  }
1770
- export interface IBlockedDates {
1998
+ export declare class ProgramSeason extends BondBaseEntity {
1999
+ programId: number;
1771
2000
  name: string;
2001
+ description: string | null;
2002
+ GL?: string | null;
2003
+ status: PublishingStatusEnum;
1772
2004
  startDate: Date;
1773
2005
  endDate: Date;
2006
+ registrationStartDate: Date | null;
2007
+ registrationEndDate: Date | null;
2008
+ questionnaires: number[] | null;
2009
+ seasonType: ProgramSeasonTypesEnum;
2010
+ parentSeasonId: number | null;
2011
+ maxParticipants: number | null;
2012
+ maxMaleParticipants: number | null;
2013
+ maxFemaleParticipants: number | null;
2014
+ maxWaitlist: number | null;
2015
+ maxMaleWaitlist: number | null;
2016
+ maxFemaleWaitlist: number | null;
2017
+ organizationId: number;
2018
+ facilityId: number | null;
2019
+ facilityName?: string;
2020
+ addressId: number | null;
2021
+ sport: SportsEnum;
2022
+ minAge: string;
2023
+ maxAge: string;
2024
+ gender: GenderEnum;
2025
+ level: LevelOfPlayEnum[] | null;
2026
+ blockedDated: BlockedDate[];
2027
+ seasonAttendees: SeasonAttendee[];
2028
+ products: Product[];
2029
+ linkSEO: string;
2030
+ address: Address;
2031
+ defaultProductId?: number;
2032
+ longDescription?: string;
2033
+ isPunchCard?: boolean;
2034
+ deletedAt?: Date;
2035
+ segments?: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2036
+ program: Program;
2037
+ spaces?: Resource[];
2038
+ reservationId?: number;
2039
+ earlyRegistrationStartDate?: Date;
2040
+ earlyRegistrationEndDate?: Date;
2041
+ lateRegistrationStartDate?: Date;
2042
+ lateRegistrationEndDate?: Date;
2043
+ requiredProductIds?: number[];
2044
+ registrationConstraints?: RegistrationConstraint;
2045
+ sessionSegments: ProgramSeason[];
2046
+ sessionEvents: Event[];
2047
+ parentSession: ProgramSeason;
2048
+ activityTimes: ActivityTimes[];
2049
+ productResources: ProductResource[];
2050
+ facility: Facility;
2051
+ purchasedResources: PurchasedResource[];
1774
2052
  }
1775
- export interface ISingleMemberForRenewal {
1776
- member_id: number;
1777
- member_membershipId: number;
1778
- member_userId: number;
1779
- member_nextPaymentMethodId?: string;
1780
- member_nextPaymentType?: PaymentMethodTypeEnum;
1781
- member_answerTitleIds?: number[];
1782
- member_organizationId: number;
1783
- product_productPrice: number;
1784
- product_productId: number;
1785
- invoice_payingUserId: number;
1786
- invoice_paymentMethodId: string;
1787
- invoice_paymentType: PaymentMethodTypeEnum;
1788
- endDate: Date;
1789
- membership_name: string;
1790
- user_firstName: string;
1791
- user_lastName: string;
1792
- user_email: string;
2053
+ export declare class PurchasedResource extends OrganizationConnectionBaseEntity {
2054
+ productUserId: number;
2055
+ resourceId: number;
2056
+ resourceType: ResourceNameTypeEnum;
2057
+ status: PurchasedResourceStatusEnum;
2058
+ startDate?: string;
2059
+ startTime?: string;
2060
+ endDate?: string;
2061
+ endTime?: string;
2062
+ productUser?: ProductsUsers;
2063
+ lineItem?: LineItems;
2064
+ eventAttendee?: EventAttendee;
2065
+ seasonAttendee?: SeasonAttendee;
2066
+ leagueAttendee?: SeasonPool;
2067
+ membership?: Membership;
2068
+ program?: Program;
2069
+ programSeason?: ProgramSeason;
2070
+ leagueSeason?: LeagueSeason;
2071
+ space?: Resource;
2072
+ product?: Product;
2073
+ event?: Event;
1793
2074
  }
1794
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
1795
- package_parentProductId: number;
1796
- product2_productPrice: number;
1797
- familyid: number;
1798
- invoice_id: number;
2075
+ export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2076
+ title: string | null;
2077
+ answerTitle: AnswerTitle;
1799
2078
  }
1800
- export interface IResourceRegistrationData {
1801
- id: number;
2079
+ export declare class RefundReason extends OrganizationConnectionBaseEntity {
2080
+ reason: string;
2081
+ ordinal: number;
2082
+ deletedAt: Date;
2083
+ }
2084
+ export declare class Questions extends BondBaseEntity {
2085
+ questionType: string | null;
2086
+ ordinal: number | null;
2087
+ pageOrdinal: number | null;
2088
+ isActive: boolean | null;
2089
+ isMandatory: boolean | null;
2090
+ metaData: any | null;
2091
+ question: string | null;
2092
+ creatorId: number | null;
2093
+ creatorType: string | null;
2094
+ userCreatorId: number | null;
2095
+ ownerId: number | null;
2096
+ questionnaireId: number | null;
2097
+ }
2098
+ export declare class RegistrationConstraint extends OrganizationConnectionBaseEntity {
1802
2099
  resourceType: ResourceNameTypeEnum;
2100
+ resourceId: number;
1803
2101
  openNumDays?: number;
1804
2102
  openNumMinutes?: number;
1805
2103
  openTime?: string;
1806
2104
  closeNumDays?: number;
1807
2105
  closeNumMinutes?: number;
1808
2106
  closeTime?: string;
1809
- registrationWindowStatus?: RegistrationWindowStatusEnum;
1810
- }
1811
- export interface IResourceDataForConstraintsCalc {
1812
- id: number;
1813
- startDate: string;
1814
- startTime: string;
1815
- }
1816
- export interface IRegistrationConstraintsSetting {
1817
- numDays?: number;
1818
- numMinutes?: number;
1819
- }
1820
- export interface IAttendeeDataToNotify {
1821
- firstName: string;
1822
- lastName: string;
1823
- email: string;
1824
- sessionName: string;
1825
- parentSessionName?: string;
1826
- organizationName: string;
1827
- programName: string;
2107
+ deletedAt?: Date;
1828
2108
  }
1829
- export interface IEventInSchedule {
1830
- eventId: number;
1831
- eventName: string;
1832
- eventStartDate: string;
1833
- eventEndDate: string;
1834
- eventStartTime: string;
1835
- eventEndTime: string;
1836
- programId: number;
1837
- programName: string;
1838
- programType: ProgramTypesEnum;
1839
- sessionId: number;
1840
- sessionName: string;
1841
- sports: number;
1842
- spaces: {
1843
- spaceId: number;
1844
- spaceName: string;
1845
- }[];
1846
- status?: RegistrationValidationStatusEnum;
2109
+ export declare class Reservations extends OrganizationConnectionBaseEntity {
2110
+ name?: string;
2111
+ description?: string;
2112
+ color?: string;
2113
+ status?: string;
2114
+ privacySetting?: string;
2115
+ reservationType?: string;
2116
+ invoiceId?: string;
2117
+ customerId?: number;
2118
+ length?: number;
2119
+ price?: number;
2120
+ sessions?: number;
2121
+ percentage?: number;
2122
+ paymentStatus?: number;
2123
+ paymentId?: number;
2124
+ startTime?: string;
2125
+ dayOfWeek?: number;
2126
+ resourcePackageId?: number;
2127
+ resourcePackageAmount?: number;
2128
+ startDate?: Date;
2129
+ endDate?: Date;
2130
+ originalReservationId?: number;
2131
+ creatorId?: number;
2132
+ creatorType?: string;
2133
+ userCreatorId?: number;
2134
+ ownerId?: number;
2135
+ sportType?: number;
2136
+ participantType?: string;
2137
+ deletedAt?: Date;
2138
+ publicNotes?: string;
2139
+ slots?: Slot[];
1847
2140
  }
1848
- export interface ISlotInSchedule {
2141
+ export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2142
+ name: string;
1849
2143
  facilityId: number;
1850
- facilityName: string;
1851
- spaces: ISpaceWithSlots[];
2144
+ parentSlotId: number;
2145
+ childrenSlotIds: number[];
2146
+ deletedAt?: Date;
1852
2147
  }
1853
- export interface ISpaceWithSlots {
1854
- id: number;
1855
- name: string;
1856
- slots: ISlotReservationData[];
2148
+ export declare class School extends BondBaseEntity {
2149
+ name: string | null;
2150
+ alias: string[] | null;
2151
+ addressId: number | null;
2152
+ website: string | null;
2153
+ phone: string | null;
2154
+ dataId: number | null;
1857
2155
  }
1858
- export interface ISlotReservationData {
1859
- reservationId: number;
1860
- reservationName: string;
1861
- date: string;
1862
- startTime: string;
1863
- endTime: string;
1864
- notes: string;
1865
- spaceId: number;
1866
- isRental: boolean;
1867
- slotType: SlotTypeEnum;
1868
- slotId: number;
1869
- eventId: number;
1870
- isPrivate: boolean;
2156
+ export declare class SeasonAttendee extends BondBaseEntity {
2157
+ status: RequestStatusEnum;
2158
+ paymentStatus: PaymentStatusEnum;
2159
+ paymentId?: number;
2160
+ productId?: number;
2161
+ attendeeId: number;
2162
+ attendee: User;
2163
+ seasonId: number;
2164
+ season: ProgramSeason;
2165
+ productUserId?: number;
2166
+ answerTitleIds?: number[];
2167
+ deletedAt?: Date;
2168
+ purchasedResource: PurchasedResource;
1871
2169
  }
1872
- export interface IRawEventInSchedule extends IEventInSchedule {
1873
- parentSessionId: number;
1874
- parentSessionName: string;
1875
- eventTimezone: string;
1876
- maxParticipants: number;
1877
- maxMaleParticipants: number;
1878
- maxFemaleParticipants: number;
1879
- isPunchCard: boolean;
2170
+ export declare class SeasonDivisions extends BondBaseEntity {
2171
+ name: string | null;
2172
+ ordinal: number | null;
2173
+ seasonId: number | null;
2174
+ color: string | null;
1880
2175
  }
1881
- export interface IBasicSpaceAndSlotCreator {
1882
- id: number;
2176
+ export declare class Resource extends OrganizationConnectionBaseEntity {
1883
2177
  name: string;
1884
- bookingCreatorId: number;
2178
+ resourceType: ResourceTypeEnum;
2179
+ resourceSubType: ResourceSubTypeEnum;
2180
+ description?: string;
2181
+ longDescription?: string;
2182
+ surface?: SurfacesEnum;
2183
+ properties?: SpacePropertiesEnum[];
2184
+ mainMediaId?: number;
2185
+ mainMedia: Media;
2186
+ sports: SportsEnum[];
2187
+ width?: number;
2188
+ length?: number;
2189
+ amenities?: AmenitiesEnum[];
2190
+ parentSpaceId?: number;
2191
+ ordinal?: number;
2192
+ isAddOn: boolean;
2193
+ ages?: ResourceAgesEnum;
2194
+ deletedAt?: Date;
2195
+ activityTimes: ActivityTimes[];
2196
+ facilities: Facility[];
2197
+ slots?: Slot[];
2198
+ addons?: Addon[];
2199
+ facilityId: number;
2200
+ facility: Facility;
2201
+ purchasedResources: PurchasedResource[];
2202
+ linkSEO: string;
1885
2203
  }
1886
- export interface IRawSlotInSchedule {
1887
- startDate: string;
1888
- endDate: string;
1889
- startTime: string;
1890
- endTime: string;
1891
- reservationId: number;
1892
- eventTitle: string;
1893
- publicNotes: string;
1894
- spaceId: number;
1895
- creatorType: ResourceNameTypeEnum;
1896
- slotType: SlotTypeEnum;
1897
- slotId: number;
1898
- eventId: number;
1899
- isPrivate: boolean;
2204
+ export declare class SeasonPool extends BondBaseEntity {
2205
+ seasonId?: number;
2206
+ userId?: number;
2207
+ status?: number;
2208
+ entityId?: number;
2209
+ entityType?: string;
2210
+ groupId?: string;
2211
+ paymentStatus?: PaymentStatusV1Enum;
2212
+ metadata?: any;
2213
+ paymentId?: number;
2214
+ externalAssign?: boolean;
2215
+ productUserId?: number;
2216
+ purchasedResource: PurchasedResource;
2217
+ season: LeagueSeason;
1900
2218
  }
1901
- export interface IPurchasedResourcesRaw {
1902
- purchasedId: number;
1903
- purchasedProductUserId: number;
1904
- purchasedResourceId: number;
1905
- purchasedResourceType: ResourceNameTypeEnum;
1906
- purchasedStatus: PurchasedResourceStatusEnum;
1907
- pUserId: number;
1908
- pUserPaymentStatus: PaymentStatusEnum;
1909
- pUserProductId: number;
1910
- pUserProductName: string;
1911
- pUserProductPrice: number;
1912
- pUserProductPriceCurrency: string;
1913
- pUserProductQuantity: number;
1914
- pUserProductQuantityLeft: number;
1915
- pUserUserId: number;
2219
+ export declare class SeasonTeam extends BondBaseEntity {
2220
+ seasonId: number | null;
2221
+ teamId: number | null;
2222
+ standingPosition: number | null;
2223
+ statistics: any | null;
2224
+ points: number | null;
2225
+ divisionId: number | null;
2226
+ metaData: any | null;
2227
+ team: Team;
1916
2228
  }
1917
- export interface IUsersPasses {
1918
- userId: number;
1919
- userFirstName: string;
1920
- userLastName: string;
1921
- organizationId: number;
1922
- programId: number;
1923
- programName: string;
1924
- sessionId: number;
1925
- sessionName: string;
1926
- productId: number;
1927
- productName: string;
1928
- productUserId: number;
1929
- purchaseDate: Date;
1930
- passesLeft: number;
2229
+ export declare class SpacesDependency extends BondBaseEntity {
2230
+ blockingSpaceId: number;
2231
+ blockedSpaceId: number;
1931
2232
  }
1932
- export interface ISessionsLandingPage {
1933
- sessionId: number;
2233
+ export declare class Station extends OrganizationConnectionBaseEntity {
1934
2234
  name: string;
1935
- startDate: Date;
1936
- endDate: Date;
1937
- registrationStartDate: Date;
1938
- registrationEndDate: Date;
1939
- sport: SportsEnum;
1940
- minAge: string;
1941
- maxAge: string;
1942
- maxParticipants?: number;
1943
- gender: GenderEnum;
1944
- activityTimes: ActivityTimes[];
1945
- earlyRegistrationStartDate?: Date;
1946
- earlyRegistrationEndDate?: Date;
1947
- lateRegistrationStartDate?: Date;
1948
- lateRegistrationEndDate?: Date;
1949
- attendeeCount?: number;
1950
- segmentsOrEvents: 'segment' | 'event';
1951
- }
1952
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
1953
- hasRequiredMembership: boolean;
1954
- hasEntitledPricing: boolean;
1955
- lowestPrice?: number;
1956
- products?: ISessionLandingPageProduct[];
1957
- }
1958
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
1959
- hasRequiredMembership: boolean;
1960
- hasEntitledPricing: boolean;
1961
- products?: ISessionLandingPageProduct[];
1962
- segments?: Event[] | ProgramSeason[];
1963
- programName: string;
1964
- programId: number;
1965
- levelOfPlay: LevelOfPlayEnum[];
1966
- registrationConstraints: IResourceRegistrationData[];
2235
+ facilityId: number;
2236
+ processorTerminalId: string | null;
2237
+ terminaLabel: string | null;
2238
+ processorSerialNumber: string | null;
2239
+ currentOpenShift?: Shift;
2240
+ stationToSubcategories: StationToSubcategory[];
2241
+ subcategories: Subcategory[];
2242
+ shifts?: Shift[];
1967
2243
  }
1968
- export interface ISlimAddons {
1969
- addons?: {
1970
- id: number;
1971
- timePeriod: AddonTimePeriodEnum;
1972
- name: string;
1973
- productType?: ProductTypesEnum;
1974
- productSubType?: string;
1975
- }[];
2244
+ export declare class StationToSubcategory extends OrganizationConnectionBaseEntity {
2245
+ stationId: number;
2246
+ subcategoryId: number;
2247
+ productType: ProductTypesEnum;
2248
+ deletedAt?: Date;
2249
+ station: Station;
2250
+ subcategory: Subcategory;
1976
2251
  }
1977
- export interface ISessionLandingPageProduct extends ISlimAddons {
1978
- id: number;
2252
+ export declare class Subcategory extends OrganizationConnectionBaseEntity {
2253
+ productType: ProductTypesEnum;
1979
2254
  name: string;
1980
- startDate?: Date;
1981
- endDate?: Date;
1982
- downpayment?: number;
1983
- description?: string;
1984
- prices: Price[];
1985
- productSubType?: ProductSubTypesEnum;
1986
- punchCard: boolean;
1987
- isAddon: boolean;
1988
- defaultPriceId?: number;
1989
- }
1990
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
1991
- destinationId?: string;
1992
- stripeCustomerId?: string;
1993
- fee?: number;
2255
+ ordinal?: number;
2256
+ deletedAt?: Date;
2257
+ stationToSubcategories: StationToSubcategory[];
2258
+ stations: Station[];
1994
2259
  }
1995
- export interface IReservationCreatorData {
1996
- type: ResourceNameTypeEnum;
1997
- id: number;
1998
- organizationId: number;
1999
- startDate: string;
2000
- endDate: string;
2001
- sportId: number;
2260
+ export declare class Team extends BondBaseEntity {
2261
+ name: string | null;
2262
+ description: string | null;
2263
+ status: number | null;
2264
+ capacity: number | null;
2265
+ allowNewMembers: boolean | null;
2266
+ membersCanInvite: boolean | null;
2267
+ inviteOnly: boolean | null;
2268
+ logoId: number | null;
2269
+ addressId: number | null;
2270
+ price: number | null;
2271
+ private: boolean | null;
2272
+ returnOverride: boolean | null;
2273
+ organizationId: number | null;
2274
+ whoCanJoin: TeamCanJoinEnum | null;
2275
+ whoCanInvite: string | null;
2276
+ metadata: any | null;
2277
+ externalId: string | null;
2278
+ paymentSettings: any | null;
2279
+ isClaimed: boolean | null;
2280
+ creatorId: number | null;
2281
+ creatorType: string | null;
2282
+ userCreatorId: number | null;
2283
+ ownerId: number | null;
2284
+ mainMediaId: number | null;
2285
+ publishedDate: Date | null;
2286
+ isPublished: boolean | null;
2287
+ levelOfPlay: number[] | null;
2288
+ sports: number | null;
2289
+ minAge: number | null;
2290
+ maxAge: number | null;
2291
+ gender: number | null;
2292
+ questionnaireId: number | null;
2002
2293
  }
2003
- export declare class ActivityLogRecord extends BondBaseEntity {
2004
- entityType: ResourceNameTypeEnum;
2005
- entityId: number;
2006
- organizationId?: number;
2007
- userId?: number;
2008
- customerId?: number;
2009
- performingUserId: number;
2010
- description: string;
2011
- actionType: ActionTypesEnum;
2012
- sourcePlatform: ActionSourcePlatformEnum;
2013
- oldValue?: any;
2014
- newValue?: any;
2294
+ export declare class TeamMember extends BondBaseEntity {
2295
+ teamId: number | null;
2296
+ userId: number | null;
2297
+ paymentId: number | null;
2298
+ hasPaid: boolean | null;
2299
+ status: TeamMemberStatusEnum | null;
2300
+ role: TeamMemberRoleEnum;
2301
+ user: User;
2015
2302
  }
2016
- export declare class ActivityTimes extends BondBaseEntity {
2017
- parentType: ResourceNameTypeEnum | ProductTypesEnum;
2018
- parentId: number;
2019
- dayOfWeek: number;
2020
- open: string;
2021
- close: string;
2022
- deletedAt?: Date;
2023
- program: ProgramSeason;
2024
- availabilityStartDate: string;
2025
- availabilityEndDate: string;
2026
- proudct: Product;
2027
- event: Event;
2303
+ export declare class TeamInvite extends BondBaseEntity {
2304
+ email: string;
2305
+ teamId: number;
2306
+ invitedUserId?: number;
2307
+ userCreatorId: number;
2308
+ token: string;
2309
+ tokenExpirationDate: Date;
2310
+ isUsed: boolean;
2028
2311
  }
2029
- export declare class Address extends BondBaseEntity {
2030
- city?: string;
2031
- street?: string;
2032
- streetNum?: string;
2033
- aptNum?: string;
2034
- zip?: string;
2035
- country?: string;
2036
- state?: string;
2037
- geo: any;
2038
- deletedAt?: Date;
2312
+ export declare class User extends BondBaseEntity {
2313
+ firstName: string | null;
2314
+ lastName: string | null;
2315
+ email: string | null;
2316
+ phoneNumber: string | null;
2317
+ about: string | null;
2318
+ password: string | null;
2319
+ passwordResetToken: string | null;
2320
+ passwordResetExpires: Date | null;
2321
+ status: string | null;
2322
+ pushNotifications: boolean | null;
2323
+ notificationSettings: any | null;
2324
+ addressId: number | null;
2325
+ address: Address;
2326
+ currentAddressId: number | null;
2327
+ merchantId: number | null;
2328
+ loginToken: string | null;
2329
+ gender: GenderEnum | null;
2330
+ height: number | null;
2331
+ weight: number | null;
2332
+ birthDate: Date | null;
2333
+ lastLogin: Date | null;
2334
+ lastInteractionDay: Date | null;
2335
+ createAsId: number | null;
2336
+ createAsType: ResourceNameTypeEnum | null;
2337
+ motto: string | null;
2338
+ privateProfile: boolean | null;
2339
+ allowMultiSignHack: boolean | null;
2340
+ deletedAt: Date | null;
2341
+ userInFamilyAccounts: UserInFamilyAccount[];
2342
+ athlete: Athlete;
2343
+ eventAttendees: EventAttendee[];
2344
+ seasonAttendees: SeasonAttendee[];
2345
+ linkedAccounts: LinkedAccounts[];
2346
+ profilePicture: Media;
2347
+ usersRoles: UserRole[];
2348
+ invoiceNotes: InvoiceNote[];
2349
+ paymentNotes: PaymentNote[];
2039
2350
  }
2040
- export declare class Answer extends OrganizationConnectionBaseEntity {
2041
- questionId: number;
2042
- question?: Questions;
2043
- parentId: number;
2044
- parentType: ResourceNameTypeEnum;
2045
- answerValue: any;
2046
- creatorId: number;
2047
- creatorType: ResourceNameTypeEnum;
2048
- answerTitleId: number;
2049
- answerTitle: AnswerTitle;
2050
- metaData: any | null;
2051
- questionText: string | null;
2351
+ export declare class UserAuthorizations extends BondBaseEntity {
2352
+ entityId: number | null;
2353
+ userId: number | null;
2354
+ entityType: UserAuthorizationsTypeEnum;
2355
+ user: User;
2052
2356
  }
2053
- export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
2054
- questionnaireId: number;
2055
- userId?: number;
2056
- answers: Answer[];
2057
- questionnaire: Questionnaires;
2357
+ export declare class UserInFamilyAccount extends BondBaseEntity {
2358
+ familyAccountId: number;
2359
+ userId: number;
2360
+ isAdmin: boolean;
2361
+ user: User;
2362
+ familyAccount: FamilyAccount;
2363
+ deletedAt?: Date;
2058
2364
  }
2059
- export declare class Athlete extends BondBaseEntity {
2060
- userId: number | null;
2061
- metadata: object | null;
2062
- athleteSports: AthleteSports[];
2365
+ export declare class UserPaymentMethod extends BondBaseEntity {
2366
+ userId: number;
2367
+ failCount: number;
2368
+ isDefault?: boolean;
2369
+ paymentMethodType: PaymentMethodTypeEnum;
2370
+ paymentMethodId: string;
2371
+ nextAllowedChargeDate?: Date;
2063
2372
  }
2064
- export declare class AthleteSports extends BondBaseEntity {
2065
- athleteId: number | null;
2066
- sports: number | null;
2067
- levelOfPlay: LevelOfPlayEnum | null;
2373
+ export declare class UsersInGroup extends BondBaseEntity {
2374
+ groupId: number;
2375
+ userId: number;
2376
+ deletedAt?: Date;
2068
2377
  }
2069
- export declare class BlockedDate extends BondBaseEntity {
2070
- entityType: ResourceNameTypeEnum;
2071
- entityId: number;
2378
+ export declare class VariantTitle extends OrganizationConnectionBaseEntity {
2072
2379
  name: string;
2073
- startDate: Date;
2074
- endDate: Date;
2075
- deletedAt?: Date;
2380
+ variants: Variant[];
2076
2381
  }
2077
- export declare class BondBaseEntity extends BaseEntity {
2078
- id: number;
2079
- createdAt: Date;
2080
- updatedAt: Date;
2382
+ export declare class WebflowOrganizationConfiguration extends OrganizationConnectionBaseEntity {
2383
+ projectToken: string;
2384
+ programTypesCollectionId?: string;
2385
+ programTagsCollectionId?: string;
2386
+ sportsCollectionId?: string;
2387
+ membershipCollectionId?: string;
2388
+ programsCollectionId?: string;
2081
2389
  }
2082
- export declare class BookedSessions extends BondBaseEntity {
2083
- reservationId?: number;
2084
- color?: string;
2085
- creatorId?: number;
2086
- creatorType?: string;
2087
- startDate?: Date | moment.Moment;
2088
- endDate?: Date | moment.Moment;
2089
- timezone?: string;
2090
- spaceId?: number;
2091
- percentage?: number;
2092
- status?: string;
2093
- originalSessionId?: number;
2094
- isFinal?: boolean;
2095
- concurrent?: number;
2390
+ export declare class Variant extends OrganizationConnectionBaseEntity {
2391
+ name: string;
2392
+ variantTitleId: number;
2393
+ variantTitle: VariantTitle;
2096
2394
  deletedAt?: Date;
2097
- publicNotes?: string;
2098
- slotType?: SlotTypeEnum;
2099
2395
  }
2100
- export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity {
2101
- parentId: number;
2102
- parentType: ResourceNameTypeEnum;
2103
- startDate: Date;
2104
- endDate: Date;
2105
- dayOfWeek: number;
2106
- startTimeInDay: string;
2107
- endTimeInDay: string;
2108
- directBookingFor: DirectBookingTypesEnum;
2396
+ export interface IEntitlementTerms {
2397
+ type: EntitlementTermsTypesEnum;
2398
+ id?: number;
2399
+ value?: string;
2400
+ minValue?: string;
2401
+ maxValue?: string;
2109
2402
  }
2110
- export declare class Configuration extends BondBaseEntity {
2111
- area: string;
2112
- key: string;
2403
+ export interface IQuestionAnswerObject {
2404
+ questionId: number;
2113
2405
  value: string;
2114
2406
  }
2115
- export declare class Connection extends BondBaseEntity {
2116
- connType: number | null;
2117
- from: number | null;
2118
- fromType: string | null;
2119
- to: number | null;
2120
- toType: string | null;
2121
- status: number | null;
2122
- creatorId: number | null;
2123
- creatorType: string | null;
2124
- userCreatorId: number | null;
2125
- ownerId: number | null;
2126
- }
2127
- export declare class CreditNote extends OrganizationConnectionBaseEntity {
2128
- creditAmount: number;
2129
- paymentProcessorId: string;
2130
- userId: number;
2131
- paymentId: number;
2132
- invoiceId: number;
2133
- creditPaymentId: number;
2407
+ export interface ILowestPriceForItem {
2408
+ itemId: number;
2409
+ itemType: ResourceNameTypeEnum;
2410
+ groupId: number;
2411
+ groupName?: string;
2412
+ price: number;
2413
+ overridesPrice: boolean;
2134
2414
  }
2135
- export declare class Customer extends OrganizationConnectionBaseEntity {
2136
- name: string | null;
2137
- entityId: number | null;
2138
- addressId: number | null;
2139
- entityType: CustomerTypeEnum | null;
2140
- customerId: string | null;
2141
- email: string | null;
2142
- color: string | null;
2143
- phoneNumber: string | null;
2144
- mainMediaId: number | null;
2145
- creatorId: number | null;
2146
- creatorType: ResourceNameTypeEnum | null;
2147
- userCreatorId: number | null;
2148
- ownerId: number | null;
2149
- vetted: boolean | null;
2150
- firstName: string | null;
2151
- lastName: string | null;
2152
- waiverSignedDate: string | null;
2153
- balance: number | null;
2154
- storedCredit: number;
2155
- members: (User & Customer)[];
2156
- emergencyContacts: EmergencyContact[];
2157
- customerNotes: CustomerNote[];
2158
- customerCreditTransactions: CustomerCreditTransaction[];
2159
- productsReservedFor: ProductsReservedForCustomers[];
2160
- mainMedia: Media;
2161
- reservations?: Reservation[];
2415
+ export interface IResourcesAvailability {
2416
+ resourceType: ResourceNameTypeEnum;
2417
+ quantity: number;
2418
+ resourcesIds: number[];
2419
+ isPunchCard: boolean;
2420
+ resources?: any[];
2162
2421
  }
2163
- export declare class CustomerCreditTransaction extends OrganizationConnectionBaseEntity {
2164
- customerId: number;
2165
- userId: number;
2166
- amount: number;
2167
- paymentId?: number;
2168
- invoiceId?: number;
2169
- description?: string;
2170
- deletedAt?: Date;
2171
- customer: Customer;
2172
- invoice: Invoice;
2173
- payment: Payment;
2422
+ export interface IPackageResponse {
2423
+ parentProduct: Product;
2424
+ children: IChildProduct[];
2174
2425
  }
2175
- export declare class CustomerNote extends OrganizationConnectionBaseEntity {
2176
- customerId?: number;
2177
- description: string;
2178
- pinToTop?: boolean;
2179
- customer: Customer;
2426
+ export interface IChildProduct {
2427
+ product: Product;
2428
+ relationType: PackageProductsRelationTypeEnum;
2429
+ timePeriod?: AddonTimePeriodEnum;
2180
2430
  }
2181
- export declare class Division extends BondBaseEntity {
2182
- name: string;
2183
- ordinal?: number;
2184
- programSeasonId: number;
2185
- color: string;
2186
- isDefault: boolean;
2187
- groups: Group[];
2431
+ export interface ISeasonAttendeeInfo {
2432
+ applicationAnswers: Answer[];
2433
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2434
+ invoices: Invoice[];
2435
+ payments: Payment[];
2436
+ products: Product[];
2437
+ redeemNext: ProductsUsers;
2188
2438
  }
2189
- export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
2439
+ export interface ISeasonAttendeeListInfo {
2440
+ userId: number;
2441
+ userFirstName: string;
2442
+ userLastName: string;
2443
+ userGender: number;
2444
+ userBirthDate: Date;
2445
+ userProfilePicUrl: string;
2190
2446
  customerId: number;
2191
- name: string | null;
2192
- phoneNumber: string | null;
2193
- customer: Customer;
2447
+ customerEmail: string;
2448
+ paymentStatus: string;
2449
+ productName: string;
2450
+ punchCard: boolean;
2194
2451
  }
2195
- export declare class EntitlementGroup extends OrganizationConnectionBaseEntity {
2196
- name: string | null;
2452
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2453
+ segmentType: ResourceNameTypeEnum;
2454
+ participantRegisteredDate?: string;
2197
2455
  }
2198
- export declare class EntitlementTerms extends OrganizationConnectionBaseEntity {
2199
- groupId: number;
2200
- terms: IEntitlementTerms[];
2456
+ export declare class EventAsSeasonSegment extends Event {
2457
+ segmentType: ResourceNameTypeEnum;
2458
+ participantRegisteredDate?: string;
2201
2459
  }
2202
- export declare class EventAttendee extends BondBaseEntity {
2203
- status: RequestStatusEnum | null;
2204
- hasPaid: boolean | null;
2205
- paymentId: number | null;
2206
- attendeeId: number;
2207
- eventId?: number | null;
2208
- productUserId?: number;
2209
- answerTitleIds?: number[];
2210
- entryStatus?: EntryStatusEnum;
2211
- addonProductUserIds?: number[];
2212
- deletedAt?: Date;
2213
- attendee: User;
2214
- event: Event;
2215
- purchasedResource: PurchasedResource;
2460
+ export interface ITokenResonse {
2461
+ token: string;
2216
2462
  }
2217
- export declare class Facility extends OrganizationConnectionBaseEntity {
2218
- name: string;
2219
- description?: string;
2220
- addressId: number;
2221
- address: Address;
2222
- amenities?: number[];
2223
- timezone: string;
2224
- creatorId: number;
2225
- creatorType: string;
2226
- userCreatorId: number;
2227
- mainMediaId: number;
2228
- mainMedia: Media;
2229
- publishedDate?: Date;
2230
- isPublished: boolean;
2231
- sports?: number[];
2232
- info?: string;
2233
- longDescription?: string;
2234
- deletedAt?: Date;
2235
- openingTimes: OpeningTime[];
2236
- resources: Resource[];
2237
- spaces: Resource[];
2238
- programSeasons: ProgramSeason[];
2239
- linkSEO: string;
2463
+ export interface IStripeBondInvoices {
2464
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2465
+ bondPaidPayment: Payment;
2466
+ invoice?: Invoice;
2467
+ customer?: Customer;
2240
2468
  }
2241
- export declare class Event extends OrganizationConnectionBaseEntity {
2242
- constructor();
2243
- defineCalculatedDateTimeProps(): void;
2244
- title: string | null;
2245
- description: string | null;
2246
- eventType: number | null;
2247
- startDate: Date | null;
2248
- endDate: Date | null;
2249
- price: number | null;
2250
- venueName: string | null;
2251
- status: EventStatusEnum;
2252
- private: boolean | null;
2253
- guestsCanInvite: boolean | null;
2254
- venueId: number | null;
2255
- addressId: number | null;
2256
- participantsLimit: number | null;
2257
- parentId: number | null;
2258
- parentType: string | null;
2259
- timezone: string | null;
2260
- eventSubType: string | null;
2261
- eventSubId: number | null;
2262
- metaData: any | null;
2263
- groupingId: string | null;
2264
- redirectUri: string | null;
2265
- externalId: string | null;
2266
- paymentSettings: any | null;
2267
- whoCanJoin: string | null;
2268
- spaceId?: number;
2269
- bookedSessionId: number | null;
2270
- creatorId: number | null;
2271
- creatorType: string | null;
2272
- userCreatorId: number | null;
2273
- ownerId: number | null;
2274
- sports: number[] | null;
2275
- isVerified: boolean | null;
2276
- mainMediaId: number | null;
2277
- minAge: number | null;
2278
- maxAge: number | null;
2279
- gender: number | null;
2280
- questionnaireId: number | null;
2281
- eventAttendees: EventAttendee[];
2282
- deletedAt?: Date;
2283
- spaces?: IBasicSpaceAndSlotCreator[];
2284
- startDateString: string;
2285
- endDateString: string;
2286
- startTime: string;
2287
- endTime: string;
2288
- publicNotes?: string;
2289
- privateNotes?: string;
2290
- productResources: ProductResource[];
2291
- parentSession: ProgramSeason;
2292
- activityTimes: ActivityTimes[];
2293
- slots: Slot[];
2294
- purchasedResources: PurchasedResource[];
2295
- program?: Program;
2296
- session?: ProgramSeason;
2297
- segment?: ProgramSeason;
2469
+ export interface IPartialPaymentData {
2470
+ purchasingUserId: number;
2471
+ paymentData: PurchasePaymentDto;
2472
+ amountToPay: number;
2298
2473
  }
2299
- export declare class FacilityToResource extends BondBaseEntity {
2300
- facilityId: number;
2301
- resourceId: number;
2474
+ export interface IPayment {
2475
+ id: number;
2476
+ total: number;
2477
+ paymentMethod: PaymentMethodTypeEnum;
2478
+ status: PaymentStatusEnum;
2479
+ createdAt: Date;
2480
+ invoices: number[];
2302
2481
  }
2303
- export declare class FamilyAccount extends BondBaseEntity {
2304
- name: string | null;
2305
- userInFamilyAccounts: UserInFamilyAccount[];
2482
+ export interface IPaginationData<T> {
2483
+ meta: {
2484
+ totalItems: number;
2485
+ itemsPerPage: number;
2486
+ totalPages: number;
2487
+ currentPage: number;
2488
+ };
2489
+ data: T[];
2306
2490
  }
2307
- export declare class FutureInstallment extends OrganizationConnectionBaseEntity {
2491
+ export interface IPricesOfProductsResults {
2492
+ productId: number;
2308
2493
  userId: number;
2309
- invoiceId: number;
2310
- paymentMethodId: string;
2311
- paymentType: PaymentMethodTypeEnum;
2312
2494
  price: number;
2313
- status: FutureInstallmentStatusEnum;
2314
- plannedDate: Date;
2315
- chargedAt?: Date;
2316
- originalPlannedDate?: Date;
2317
- }
2318
- export declare class GlCodes extends OrganizationConnectionBaseEntity {
2319
- code: string;
2320
- }
2321
- export declare class Group extends BondBaseEntity {
2322
- name: string;
2323
- description?: string;
2324
- status: GroupStatusEnum;
2325
- maxCapacity?: number;
2326
- mainMediaId?: number;
2327
- minAgeYears?: number;
2328
- maxAgeYears?: number;
2329
- gender: GenderEnum;
2330
- levelOfPlay?: LevelOfPlayEnum[];
2331
- sports: SportsEnum[];
2332
- questionnaires?: number[];
2333
- captainUserId?: number;
2334
- members: ISeasonAttendeeInfo[];
2335
- users: User[];
2495
+ groupId?: number;
2496
+ groupName?: string;
2497
+ originalPrice?: number;
2498
+ priceWithoutTax: number;
2499
+ tax: number;
2500
+ isTaxInclusive: boolean;
2336
2501
  }
2337
- export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
2338
- groupId: number;
2339
- itemId: number;
2340
- itemType: ResourceNameTypeEnum;
2502
+ export interface IPaymentMethodToFundLeft {
2503
+ paymentType: PaymentMethodTypeEnum;
2504
+ paymentMethodId: string;
2505
+ fundLeft: number;
2506
+ ccLast4?: string;
2507
+ ccBrand?: string;
2508
+ }
2509
+ export interface IVariantsAndTitle {
2510
+ title: VariantTitle;
2511
+ variants: Variant[];
2512
+ }
2513
+ export interface IProgramSeasonActivityTimes {
2514
+ dayOfWeek: number;
2515
+ open: string;
2516
+ close: string;
2517
+ }
2518
+ export interface IProgramSeasonActivityTimesAsDates {
2519
+ date: string;
2520
+ startTime: string;
2521
+ endTime: string;
2522
+ }
2523
+ export interface IBlockedDates {
2524
+ name: string;
2341
2525
  startDate: Date;
2342
2526
  endDate: Date;
2343
- price: number;
2344
- overridesPrice: boolean;
2345
- deletedAt?: Date;
2346
- group?: EntitlementGroup;
2347
- discountMethod?: DiscountMethodsEnum;
2348
- discountValue?: number;
2349
2527
  }
2350
- export declare class GroupsInDivisions extends BondBaseEntity {
2351
- groupId: number;
2352
- divisionId: number;
2353
- deletedAt?: Date;
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;
2354
2546
  }
2355
- export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
2356
- email: string;
2357
- status: EEmailStatus;
2358
- templateId: string;
2359
- userId: number;
2360
- invoiceId: number;
2361
- paymentId: number;
2362
- sendingUserId: number;
2363
- mailParams?: any;
2364
- memo?: string;
2547
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2548
+ package_parentProductId: number;
2549
+ product2_productPrice: number;
2550
+ familyid: number;
2551
+ invoice_id: number;
2365
2552
  }
2366
- export declare class Invoice extends BondBaseEntity {
2367
- invoiceId: string | null;
2368
- price: number | null;
2369
- status: InvoiceStatusEnum | null;
2370
- sentForClientDate: Date | null;
2371
- payingUserId?: number | null;
2372
- invoiceToPayments: InvoiceToPayment[];
2373
- lineItems: LineItems[];
2374
- lineItemHistory: LineItemHistory[];
2375
- paymentStatus: PaymentStatusEnum;
2376
- paymentMethodId?: string;
2377
- paymentType?: PaymentMethodTypeEnum;
2378
- paidAmount: number;
2379
- currency: CurrencyEnum;
2380
- mainPaymentId: number;
2381
- isScheduled: boolean;
2382
- isRefunded: boolean;
2383
- isVoided: boolean;
2384
- creatingUserId: number;
2385
- shiftId: number;
2386
- platform: PlatformsEnum;
2387
- invoiceNotes: InvoiceNote[];
2388
- slots: Slot[];
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;
2389
2563
  }
2390
- export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
2391
- content: string;
2392
- creatingUserId: number;
2393
- user: User;
2394
- isPublic: boolean;
2395
- deletedAt: Date;
2396
- invoiceId: number;
2397
- invoice: Invoice;
2564
+ export interface IResourceDataForConstraintsCalc {
2565
+ id: number;
2566
+ startDate: string;
2567
+ startTime: string;
2398
2568
  }
2399
- export declare class InvoiceToPayment extends BondBaseEntity {
2400
- invoiceId: number;
2401
- paymentId: number;
2402
- invoice: Invoice;
2403
- payment: Payment;
2404
- paidAmount?: number;
2405
- currency: CurrencyEnum;
2569
+ export interface IRegistrationConstraintsSetting {
2570
+ numDays?: number;
2571
+ numMinutes?: number;
2406
2572
  }
2407
- export declare class League extends OrganizationConnectionBaseEntity {
2408
- name: string | null;
2409
- description: string | null;
2410
- allowBookingRequest: boolean | null;
2411
- addressName: string | null;
2412
- shortDescription: string | null;
2413
- waiverDoc: string | null;
2414
- bookingStateStatus: number | null;
2415
- timezone: string | null;
2416
- shortUrl: string | null;
2417
- leagueType: string | null;
2418
- addressId: number | null;
2419
- sportConfigData: any | null;
2420
- creatorId: number | null;
2421
- creatorType: string | null;
2422
- userCreatorId: number | null;
2423
- ownerId: number | null;
2424
- sports: number[] | null;
2425
- mainMediaId: number | null;
2426
- publishedDate: Date | null;
2427
- isPublished: boolean | null;
2428
- isVerified: boolean | null;
2429
- questionnaireId: number | null;
2430
- logo?: Media;
2431
- seasons: LeagueSeason[];
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;
2432
2581
  }
2433
- export declare class LeagueSeason extends BondBaseEntity {
2434
- leagueId: number | null;
2435
- name: string | null;
2436
- status: number | null;
2437
- startDate: Date | null;
2438
- endDate: Date | null;
2439
- priceEarlySingle: number | null;
2440
- priceRegularSingle: number | null;
2441
- priceLateSingle: number | null;
2442
- priceEarlyTeam: number | null;
2443
- priceRegularTeam: number | null;
2444
- priceLateTeam: number | null;
2445
- priceEarlyTeamMember: number | null;
2446
- priceRegularTeamMember: number | null;
2447
- priceLateTeamMember: number | null;
2448
- priceEarlyGroup: number | null;
2449
- priceRegularGroup: number | null;
2450
- priceLateGroup: number | null;
2451
- earlyRegistrationEnds: Date | null;
2452
- regularRegistrationEnds: Date | null;
2453
- lateRegistrationEnds: Date | null;
2454
- registrationStatus: number | null;
2455
- description: string | null;
2456
- addressName: string | null;
2457
- registrationOpen: Date | null;
2458
- connectedSeasonId: number | null;
2459
- tournamentType: boolean | null;
2460
- playoffType: boolean | null;
2461
- scheduleStatus: SeasonScheduleStatusEnum;
2462
- rosterStatus: string | null;
2463
- metaData: any | null;
2464
- inviteSendDate: Date | null;
2465
- maxNumParticipants: number | null;
2466
- programId: number | null;
2467
- minNumParticipants: number | null;
2468
- league: League;
2469
- facilities: Facility[];
2470
- seasonAttendees: SeasonAttendee[];
2471
- purchasedResources: PurchasedResource[];
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;
2472
2600
  }
2473
- export declare class LeagueSeasonRelations {
2474
- league?: boolean;
2475
- facilities?: boolean;
2601
+ export interface ISlotInSchedule {
2602
+ facilityId: number;
2603
+ facilityName: string;
2604
+ spaces: ISpaceWithSlots[];
2476
2605
  }
2477
- export declare class LineItemHistory extends BondBaseEntity {
2478
- invoiceId: number;
2479
- paymentId: number;
2480
- lineItemId: number;
2481
- paidAmount: number;
2482
- unitPaidAmount: number;
2483
- currency: CurrencyEnum;
2484
- payment: Payment;
2485
- lineItem: LineItems;
2606
+ export interface ISpaceWithSlots {
2607
+ id: number;
2608
+ name: string;
2609
+ slots: ISlotReservationData[];
2486
2610
  }
2487
- export declare class LineItems extends BondBaseEntity {
2488
- constructor();
2489
- defineIsReverted(): void;
2490
- isReverted: boolean;
2491
- invoiceId: number;
2492
- invoice: Invoice;
2493
- lineItemsHistory: LineItemHistory[];
2494
- type: LineItemsStatusEnum | null;
2495
- userId: number | null;
2611
+ export interface ISlotReservationData {
2612
+ reservationId: number;
2613
+ reservationName: string;
2614
+ date: string;
2615
+ startTime: string;
2616
+ endTime: string;
2617
+ notes: string;
2618
+ spaceId: number;
2619
+ isRental: boolean;
2620
+ slotType: SlotTypeEnum;
2621
+ slotId: number;
2622
+ eventId: number;
2623
+ isPrivate: boolean;
2624
+ }
2625
+ export interface IRawEventInSchedule extends IEventInSchedule {
2626
+ parentSessionId: number;
2627
+ parentSessionName: string;
2628
+ eventTimezone: string;
2629
+ maxParticipants: number;
2630
+ maxMaleParticipants: number;
2631
+ maxFemaleParticipants: number;
2632
+ isPunchCard: boolean;
2633
+ }
2634
+ export interface IBasicSpaceAndSlotCreator {
2635
+ id: number;
2636
+ name: string;
2637
+ bookingCreatorId: number;
2638
+ }
2639
+ export interface IRawSlotInSchedule {
2640
+ startDate: string;
2641
+ endDate: string;
2642
+ startTime: string;
2643
+ endTime: string;
2644
+ reservationId: number;
2645
+ eventTitle: string;
2646
+ publicNotes: string;
2647
+ spaceId: number;
2648
+ creatorType: ResourceNameTypeEnum;
2649
+ slotType: SlotTypeEnum;
2650
+ slotId: number;
2651
+ eventId: number;
2652
+ isPrivate: boolean;
2653
+ }
2654
+ export interface IPurchasedResourcesRaw {
2655
+ purchasedId: number;
2656
+ purchasedProductUserId: number;
2657
+ purchasedResourceId: number;
2658
+ purchasedResourceType: ResourceNameTypeEnum;
2659
+ purchasedStatus: PurchasedResourceStatusEnum;
2660
+ pUserId: number;
2661
+ pUserPaymentStatus: PaymentStatusEnum;
2662
+ pUserProductId: number;
2663
+ pUserProductName: string;
2664
+ pUserProductPrice: number;
2665
+ pUserProductPriceCurrency: string;
2666
+ pUserProductQuantity: number;
2667
+ pUserProductQuantityLeft: number;
2668
+ pUserUserId: number;
2669
+ }
2670
+ export interface IUsersPasses {
2671
+ userId: number;
2672
+ userFirstName: string;
2673
+ userLastName: string;
2674
+ organizationId: number;
2675
+ programId: number;
2676
+ programName: string;
2677
+ sessionId: number;
2678
+ sessionName: string;
2496
2679
  productId: number;
2497
- paymentProcessorId: string;
2498
- productType: ProductTypesEnum;
2499
- productUserId?: number;
2500
- ordinal: number | null;
2501
- entitlementGroupId?: number;
2502
- entitlementGroups: EntitlementGroup;
2503
- price: number;
2504
- originalPrice?: number;
2505
- paidAmount?: number;
2506
- totalPaid?: number;
2507
- totalQuantity?: number;
2508
- totalPrice?: number;
2509
- currency: CurrencyEnum;
2510
- paymentStatus: PaymentStatusEnum;
2680
+ productName: string;
2681
+ productUserId: number;
2682
+ purchaseDate: Date;
2683
+ passesLeft: number;
2684
+ }
2685
+ export interface ISessionsLandingPage {
2686
+ sessionId: number;
2687
+ name: string;
2688
+ startDate: Date;
2689
+ endDate: Date;
2690
+ registrationStartDate: Date;
2691
+ registrationEndDate: Date;
2692
+ sport: SportsEnum;
2693
+ minAge: string;
2694
+ maxAge: string;
2695
+ maxParticipants?: number;
2696
+ gender: GenderEnum;
2697
+ activityTimes: ActivityTimes[];
2698
+ earlyRegistrationStartDate?: Date;
2699
+ earlyRegistrationEndDate?: Date;
2700
+ lateRegistrationStartDate?: Date;
2701
+ lateRegistrationEndDate?: Date;
2702
+ attendeeCount?: number;
2703
+ segmentsOrEvents: 'segment' | 'event';
2704
+ }
2705
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2706
+ hasRequiredMembership: boolean;
2707
+ hasEntitledPricing: boolean;
2708
+ lowestPrice?: number;
2709
+ products?: ISessionLandingPageProduct[];
2710
+ }
2711
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2712
+ hasRequiredMembership: boolean;
2713
+ hasEntitledPricing: boolean;
2714
+ products?: ISessionLandingPageProduct[];
2715
+ segments?: Event[] | ProgramSeason[];
2716
+ programName: string;
2717
+ programId: number;
2718
+ levelOfPlay: LevelOfPlayEnum[];
2719
+ registrationConstraints: IResourceRegistrationData[];
2720
+ }
2721
+ export interface ISlimAddons {
2722
+ addons?: {
2723
+ id: number;
2724
+ timePeriod: AddonTimePeriodEnum;
2725
+ name: string;
2726
+ productType?: ProductTypesEnum;
2727
+ productSubType?: string;
2728
+ }[];
2729
+ }
2730
+ export interface ISessionLandingPageProduct extends ISlimAddons {
2731
+ id: number;
2732
+ name: string;
2733
+ startDate?: Date;
2734
+ endDate?: Date;
2735
+ downpayment?: number;
2736
+ description?: string;
2737
+ prices: Price[];
2511
2738
  productSubType?: ProductSubTypesEnum;
2512
- product: Product;
2513
- organizationId: number;
2514
- parentLineItemId?: number;
2515
- taxLineItem?: LineItems;
2516
- children?: LineItems[];
2517
- previousPurchaseProducUserId?: number;
2518
- discountDescription?: string;
2519
- productUser?: ProductsUsers;
2520
- resourceRedeemedForDiscount?: number;
2521
- redeemableProduct: Product[];
2522
- isRefunded: boolean;
2523
- isPartiallyRefund: boolean;
2524
- isVoided: boolean;
2525
- isPartiallyVoided: boolean;
2526
- wasReverted: boolean;
2527
- isEdit: boolean;
2528
- purchasedResources: PurchasedResource[];
2529
- isTaxInclusive?: boolean;
2530
- taxPrecent?: number;
2531
- unitPrice?: number;
2532
- quantity?: number;
2533
- customerFirstName?: string;
2534
- customerLastName?: string;
2535
- displayFullPrice?: number;
2536
- displayTotalPriceWithTax?: number;
2537
- displayTotalPaid?: number;
2538
- displayTotalQuantity?: number;
2539
- displayUnitPrice?: number;
2540
- displayQuantity?: number;
2739
+ punchCard: boolean;
2740
+ isAddon: boolean;
2741
+ defaultPriceId?: number;
2541
2742
  }
2542
- export declare class LinkedAccounts extends BondBaseEntity {
2743
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2744
+ destinationId?: string;
2745
+ stripeCustomerId?: string;
2746
+ fee?: number;
2747
+ }
2748
+ export interface IReservationCreatorData {
2749
+ type: ResourceNameTypeEnum;
2543
2750
  id: number;
2544
- provider: string;
2545
- providerId: string | null;
2546
- parentId: number | null;
2547
- parentType: string | null;
2548
- status: number | null;
2549
- token: string | null;
2550
- refreshToken: string | null;
2551
- tokenCreatedAt: Date | null;
2552
- tokenValidUpTo: Date | null;
2553
- createdAt: Date;
2554
- updatedAt: Date;
2555
- user: User;
2556
- userId: number | null;
2751
+ organizationId: number;
2752
+ startDate: string;
2753
+ endDate: string;
2754
+ sportId: number;
2755
+ }
2756
+ export declare enum EntitlementTermsTypesEnum {
2757
+ QUESTION = "question",
2758
+ CITY = "city",
2759
+ MEMBERSHIP = "membership"
2760
+ }
2761
+ export declare enum ResourceNameTypeEnum {
2762
+ EVENT = "event",
2763
+ VENUE = "venue",
2764
+ TEAM = "team",
2765
+ LEAGUE = "league",
2766
+ USER = "user",
2767
+ ORGANIZATION = "organization",
2768
+ APP = "app",
2769
+ FEED = "feed",
2770
+ MATCH = "match",
2771
+ ROUND = "round",
2772
+ PORTAL = "portal",
2773
+ SEASON = "season",
2774
+ TOURNAMENT = "tournament",
2775
+ MEMBERSHIP = "membership",
2776
+ DIVISION = "division",
2777
+ GAMESLOT = "gameslot",
2778
+ SPACE = "space",
2779
+ RESERVATION = "reservation",
2780
+ INVOICE = "invoice",
2781
+ CUSTOMER = "customer",
2782
+ PACKAGE = "package",
2783
+ FACILITY = "facility",
2784
+ PROGRAM = "program",
2785
+ PROGRAM_SEASON = "program_season",
2786
+ PRODUCT = "product",
2787
+ GROUP = "group",
2788
+ VARIANT = "variant",
2789
+ SLOT = "slot",
2790
+ ADDON = "addon"
2791
+ }
2792
+ export declare enum DirectBookingTypesEnum {
2793
+ DIRECT_FOR_ALL = "all",
2794
+ DIRECT_FOR_NONE = "none",
2795
+ DIRECT_VETTED_ONLY = "vetted_only",
2796
+ NO_SETTING = "no_setting"
2797
+ }
2798
+ export declare enum GenderEnum {
2799
+ OTHER = 1,
2800
+ MALE = 2,
2801
+ FEMALE = 3
2802
+ }
2803
+ export declare enum LevelOfPlayEnum {
2804
+ BEGINNER = 1,
2805
+ INTERMEDIATE = 2,
2806
+ ADVANCED = 3,
2807
+ SEMIPRO = 4,
2808
+ SPECTATOR = 5
2809
+ }
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
2818
+ }
2819
+ export declare enum ProgramSeasonTypesEnum {
2820
+ ROUND_ROBIN = 1,
2821
+ BRACKETS = 2,
2822
+ CAMP_CLINIC_CLASS = 3
2823
+ }
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
2884
+ }
2885
+ export declare enum PublishingStatusEnum {
2886
+ DRAFT = 1,
2887
+ PUBLISHED = 2,
2888
+ CLOSED = 3,
2889
+ CANCELLED = 4,
2890
+ ARCHIVE = 5,
2891
+ UNPUBLISHED = 6
2892
+ }
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
2905
+ }
2906
+ export declare enum RequestStatusEnum {
2907
+ PENDING = 1,
2908
+ ACCEPTED = 2,
2909
+ DECLINED = 3
2910
+ }
2911
+ export declare enum PaymentStatusEnum {
2912
+ NOT_PAID = "not_paid",
2913
+ PARTIAL_PAYMENT = "partial",
2914
+ FULLY_PAID = "paid",
2915
+ REFUNDED = "refunded",
2916
+ VOID = "void"
2917
+ }
2918
+ export declare enum ReservationExtendedEnum {
2919
+ PURCHASE_ORDER = "purchase_order"
2920
+ }
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"
2929
+ }
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
2557
2939
  }
2558
- export declare class Media extends BondBaseEntity {
2559
- url: string;
2560
- name: string | null;
2561
- title: string | null;
2562
- mediaKey: string | null;
2563
- description: string | null;
2564
- provider: string | null;
2565
- mediaType: number;
2566
- fileType: string | null;
2567
- isDefault: boolean | null;
2568
- creatorId: number | null;
2569
- creatorType: string | null;
2570
- userCreatorId: number | null;
2571
- ownerId: number | null;
2572
- createdBy: number | null;
2573
- users: User[];
2574
- programs: Program[];
2575
- memberships: Membership[];
2940
+ export declare enum PaymentMethodsEnum {
2941
+ STRIPE = 1,
2942
+ CASH = 3
2576
2943
  }
2577
- export declare class Membership extends OrganizationConnectionBaseEntity {
2578
- name: string;
2579
- description?: string;
2580
- mainMedia?: Media;
2581
- customerTypes: CustomerInMembershipTypeEnum[];
2582
- activity?: SportsEnum;
2583
- facilityId?: number;
2584
- facilityName?: string;
2585
- questionnaires?: number[];
2586
- minAgeYears?: number;
2587
- maxAgeYears?: number;
2588
- gender: GenderEnum;
2589
- maxMembers?: number;
2590
- maxMaleMembers?: number;
2591
- maxFemaleMembers?: number;
2592
- membershipType: MembershipTypeEnum;
2593
- durationMonths?: number;
2594
- startDate?: string;
2595
- endDate?: string;
2596
- registrationStartDate?: Date;
2597
- registrationEndDate?: Date;
2598
- package?: IPackageResponse;
2599
- tags: any[];
2600
- members: MembershipMember[];
2601
- longDescription?: string;
2602
- isAutoRenew?: boolean;
2603
- purchasedResources: PurchasedResource[];
2944
+ export declare enum PackageProductsRelationTypeEnum {
2945
+ CHILD = "child",
2946
+ UPSALE = "upsale"
2604
2947
  }
2605
- export declare class MembershipMember extends OrganizationConnectionBaseEntity {
2606
- membership: Membership;
2607
- membershipId: number;
2608
- productUserId: number;
2609
- productUser?: ProductsUsers;
2610
- userId: number;
2611
- membershipType: MembershipTypeEnum;
2612
- durationMonths?: number;
2613
- startDate?: string;
2614
- endDate?: string;
2615
- renewalOfMemberId?: number;
2616
- isAutoRenew?: boolean;
2617
- nextPaymentMethodId?: string;
2618
- nextPaymentType?: PaymentMethodTypeEnum;
2619
- answerTitleIds?: number[];
2620
- cancelledAt?: Date | null;
2621
- cancellationReason?: string;
2622
- cancellationStatus?: CancellationStatusEnum;
2623
- isImported?: boolean;
2948
+ export declare enum AddonTimePeriodEnum {
2949
+ FULL = "full",
2950
+ SESSION = "session",
2951
+ EVENT = "event"
2624
2952
  }
2625
- export declare class NotificationSubscriptions extends OrganizationConnectionBaseEntity {
2626
- email: string | null;
2627
- notificationType: NotificationTypeEnum | null;
2628
- resourceId: number | null;
2629
- resourceType: string | null;
2953
+ export declare enum CurrencyEnum {
2954
+ USD = "USD"
2630
2955
  }
2631
- export declare class OpeningTime extends OrganizationConnectionBaseEntity {
2632
- id: number;
2633
- dayOfWeek: number;
2634
- open: string;
2635
- close: string;
2636
- facilityId: number;
2637
- createdAt: Date;
2638
- updatedAt: Date;
2639
- deletedAt?: Date;
2640
- facility: Facility;
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"
2641
2960
  }
2642
- export declare class OrganizationConnectionBaseEntity extends BondBaseEntity {
2643
- organizationId: number;
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"
2644
2972
  }
2645
- export declare class PackageV1 extends BondBaseEntity {
2646
- name?: string;
2647
- description?: string;
2648
- price: number;
2649
- status: string;
2650
- percentage: number;
2651
- quantity: number;
2652
- duration: number;
2653
- organizationId: number;
2654
- creatorId: number;
2655
- creatorType: string;
2656
- userCreatorId: number;
2657
- ownerId: number;
2658
- addon: boolean;
2659
- isMandatory: boolean;
2660
- productId: number;
2973
+ export declare enum InvoiceStatusEnum {
2974
+ ACTIVE = "active",
2975
+ WAITING_ADMIN = "waitingAdmin",
2976
+ WAITING_CLIENT = "waitingClient",
2977
+ CANCELED = "canceled"
2661
2978
  }
2662
- export declare class PasswordReset extends BondBaseEntity {
2663
- token: string | null;
2664
- userId: number | null;
2665
- validUntil: Date | null;
2666
- active: boolean | null;
2979
+ export declare enum LineItemsStatusEnum {
2980
+ USER_PRODUCT = "UserProduct",
2981
+ RENTAL_PRODUCT = "RentalProduct"
2667
2982
  }
2668
- export declare class Payment extends OrganizationConnectionBaseEntity {
2669
- price: number;
2670
- paymentProcessorId: string;
2671
- invoiceToPayments: InvoiceToPayment[];
2672
- paymentStatus: PaymentStatusEnum;
2673
- bondFee?: number;
2674
- stripeFee?: number;
2675
- currency: CurrencyEnum;
2676
- payingUserId?: number;
2677
- paymentMethodId?: string;
2678
- paymentType?: PaymentMethodTypeEnum;
2679
- fundLeft: number;
2680
- notes?: string;
2681
- isRefunded: boolean;
2682
- lineItemHistory: LineItemHistory[];
2683
- receiptUrl?: string;
2684
- paymentProcessorTransactionId?: string;
2685
- creatingUserId: number;
2686
- shiftId: number;
2687
- platform: PlatformsEnum;
2688
- ccLast4: string;
2689
- ccBrand: string;
2690
- paymentNotes: PaymentNote[];
2691
- parentInvoiceId?: number;
2692
- refundReasonId?: number;
2693
- refundNote?: string;
2983
+ export declare enum ProductSubTypesEnum {
2984
+ SEASON_INDIVIDUAL = "season_individual",
2985
+ SEASON_TEAM = "season_team",
2986
+ SEASON_PER_PLAYER = "season_per_player"
2694
2987
  }
2695
- export declare class PaymentFailConfig extends OrganizationConnectionBaseEntity {
2696
- failureIndex: number;
2697
- waitingDays: number;
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"
2698
2998
  }
2699
- export declare class PaymentFailure extends OrganizationConnectionBaseEntity {
2700
- paymentInstallmentId?: number;
2701
- invoiceId: number;
2702
- reason: EFailedPaymentReasons;
2703
- errorMessage: string;
2999
+ export declare enum RefundTypeEnum {
3000
+ LEAVE_BALANCE = "leave_balance",
3001
+ REDUCE_BALANCE = "reduce_balance"
2704
3002
  }
2705
- export declare class PaymentNote extends OrganizationConnectionBaseEntity {
2706
- content: string;
2707
- creatingUserId: number;
2708
- user: User;
2709
- isPublic: boolean;
2710
- deletedAt: Date;
2711
- paymentId: number;
2712
- payment: Payment;
3003
+ export declare enum CustomerInMembershipTypeEnum {
3004
+ INDIVIDUAL = "individual",
3005
+ FAMILY = "family",
3006
+ ORGANIZATION = "organization"
2713
3007
  }
2714
- export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
2715
- paymentPlanId: number;
2716
- paymentDate: Date;
2717
- deletedAt?: Date;
2718
- paymentPlan: ProductPaymentPlan;
3008
+ export declare enum MembershipTypeEnum {
3009
+ FIXED = "fix_membership",
3010
+ ROLLING = "rolling_membership"
2719
3011
  }
2720
- export declare class PaymentV1 extends BondBaseEntity {
2721
- userId: number | null;
2722
- ownerId: number | null;
2723
- parentId: number | null;
2724
- parentType: string | null;
2725
- idAtProvider: string | null;
2726
- providerType: number | null;
2727
- providerExtraData: string | null;
2728
- requestData: string | null;
2729
- responseData: string | null;
2730
- status: number | null;
2731
- price: number | null;
2732
- currency: string | null;
2733
- locked: boolean | null;
2734
- numberOfTries: number | null;
2735
- installmentId: number | null;
2736
- invoiceId: string | null;
3012
+ export declare enum CustomerTypeEnum {
3013
+ USER = "user",
3014
+ FAMILY = "family",
3015
+ ORGANIZATION = "organization"
2737
3016
  }
2738
- export declare class Price extends OrganizationConnectionBaseEntity {
2739
- productId: number;
2740
- product: Product;
2741
- name: string | null;
2742
- price: number;
2743
- currency: CurrencyEnum;
2744
- paymentProcessorId: number | null;
2745
- startDate: Date;
2746
- endDate: Date;
2747
- groupId?: number;
2748
- groupName?: string;
2749
- originalPrice?: number;
2750
- deletedAt?: Date;
2751
- discountMethod?: DiscountMethodsEnum;
2752
- discountValue?: number;
2753
- taxIncludedPrice?: number;
3017
+ export declare enum GroupStatusEnum {
3018
+ ACTIVE = 1,
3019
+ INACTIVE = 2,
3020
+ DRAFT = 3
3021
+ }
3022
+ export declare enum FutureInstallmentStatusEnum {
3023
+ FUTURE = "future",
3024
+ SUCCEEDED = "succeeded",
3025
+ FAILED = "failed",
3026
+ CANCELED = "canceled"
3027
+ }
3028
+ export declare enum EntryStatusEnum {
3029
+ ENTERED = 1,
3030
+ NOT_ENTERED = 2,
3031
+ CANCELED = 3
2754
3032
  }
2755
- export declare class Product extends OrganizationConnectionBaseEntity {
2756
- name: string;
2757
- quantity: number;
2758
- paymentProcessorId?: string;
2759
- startDate?: Date;
2760
- endDate?: Date;
2761
- isPublic: boolean;
2762
- productType?: ProductTypesEnum;
2763
- GL?: string;
2764
- downpayment?: number;
2765
- description?: string;
2766
- prices: Price[];
2767
- currPrice: Price;
2768
- productSubType?: ProductSubTypesEnum;
2769
- punchCard: boolean;
2770
- requiredProductIds?: number[];
2771
- lineItems: LineItems[];
2772
- resources: IResourcesAvailability[];
2773
- variantParentId?: number;
2774
- isAddon: boolean;
2775
- isArchive: boolean;
2776
- productVariants: Product[];
2777
- variantParentProduct: Product;
2778
- variantsObj: Variant[];
2779
- variantTitlesObj: VariantTitle[];
2780
- timePeriod?: AddonTimePeriodEnum;
2781
- deletedAt?: Date;
2782
- productsUsers: ProductsUsers[];
2783
- isProRated: boolean;
2784
- entitledPrices?: GroupItemsPricing[];
2785
- defaultPriceId?: number;
2786
- tax: number;
2787
- isTaxInclusive: boolean;
2788
- defaultPrice?: Price;
2789
- addOns?: IChildProduct[];
2790
- productPaymentPlan?: ProductPaymentPlan;
2791
- productResources: ProductResource[];
2792
- parentProductPackages: ProductPackage[];
2793
- childProductPackages: ProductPackage[];
2794
- sports?: number[] | null;
2795
- durationMinutes?: number;
2796
- durationDays?: number;
2797
- forms?: number[] | null;
2798
- isForAllCustomers?: boolean;
2799
- productsReservedForCustomers: ProductsReservedForCustomers[];
2800
- reservedForCustomers: Customer[];
2801
- reservedForMemberships: Membership[];
2802
- activityTimes: ActivityTimes[];
2803
- purchasedResources: PurchasedResource[];
3033
+ export declare enum PurchasedResourceStatusEnum {
3034
+ ACTIVE = 1,
3035
+ MOVED = 2,
3036
+ CANCELED = 3
2804
3037
  }
2805
- export declare class ProductPackage extends OrganizationConnectionBaseEntity {
2806
- parentProductId: number;
2807
- childProductId: number;
2808
- relationType: PackageProductsRelationTypeEnum;
2809
- timePeriod: AddonTimePeriodEnum;
2810
- deletedAt?: Date;
2811
- productResource: ProductResource;
2812
- childProduct: Product;
2813
- parentProduct: Product;
2814
- price: number;
2815
- isFlatPrice: boolean;
2816
- durationMinutes?: number;
2817
- durationDays?: number;
2818
- level?: ProductPackageLevelEnum;
3038
+ export declare enum TeamCanJoinEnum {
3039
+ ANYONE = "anyone",
3040
+ BY_INVITE = "byInvite",
3041
+ CAPTAIN_APPROVAL = "captainApproval"
2819
3042
  }
2820
- export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
2821
- productId: number;
2822
- maxMonths?: number;
2823
- dayOfMonth?: number;
2824
- name: string;
2825
- deletedAt?: Date;
2826
- schedule: PaymentPlanSchedule[];
2827
- product?: Product;
3043
+ export declare enum TeamMemberStatusEnum {
3044
+ PENDING = 1,
3045
+ ACTIVE = 2,
3046
+ DECLINED = 3,
3047
+ SUSPENDED = 4,
3048
+ INACTIVE = 5,
3049
+ INVITED = 6
2828
3050
  }
2829
- export declare class ProductResource extends OrganizationConnectionBaseEntity {
2830
- productId: number;
2831
- resourceId: number;
2832
- resourceType: ResourceNameTypeEnum;
2833
- deletedAt?: Date;
2834
- programSeason: ProgramSeason;
2835
- event: Event;
2836
- product: Product;
2837
- productPackages: ProductPackage[];
2838
- resourceName?: string;
3051
+ export declare enum TeamMemberRoleEnum {
3052
+ NULL = 0,
3053
+ ADMIN = 1
2839
3054
  }
2840
- export declare class ProductToVariantTitle extends OrganizationConnectionBaseEntity {
2841
- productId: number;
2842
- variantTitleId: number;
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
2843
3063
  }
2844
- export declare class ProductToVariant extends OrganizationConnectionBaseEntity {
2845
- productId: number;
2846
- variantId: number;
3064
+ export declare enum ActionTypesEnum {
3065
+ CREATE = "create",
3066
+ READ = "read",
3067
+ UPDATE = "update",
3068
+ DELETE = "delete"
2847
3069
  }
2848
- export declare class ProductsReservedForCustomers extends OrganizationConnectionBaseEntity {
2849
- productId: number;
2850
- customerId: number;
2851
- customer: Customer;
2852
- deletedAt?: Date;
2853
- product: Product;
3070
+ export declare enum ActionSourcePlatformEnum {
3071
+ ADMIN = "admin",
3072
+ BACKOFFICE = "backoffice",
3073
+ CONSUMER = "consumer"
2854
3074
  }
2855
- export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
2856
- productId: number;
2857
- userId: number;
2858
- user?: User;
2859
- paymentStatus: PaymentStatusEnum;
2860
- productName: string;
2861
- productPrice: number;
2862
- productQuantity: number;
2863
- productQuantityLeft: number;
2864
- productPriceCurrency: CurrencyEnum;
2865
- ordinal?: number;
2866
- purchasedResources: PurchasedResource[];
2867
- product: Product;
2868
- lineItem: LineItems;
2869
- slots?: Slot[];
2870
- addons?: Addon[];
3075
+ export declare enum RolesEnum {
3076
+ ORG_ADMIN = "organizationAdmin",
3077
+ BOND_ADMIN = "bondAdmin"
2871
3078
  }
2872
- export declare class Program extends BondBaseEntity {
2873
- type: ProgramTypesEnum;
2874
- name: string;
2875
- sport: SportsEnum;
2876
- minAge: string;
2877
- maxAge: string;
2878
- gender: GenderEnum;
2879
- level: LevelOfPlayEnum[] | null;
2880
- description: string | null;
2881
- GL?: string | null;
2882
- status: PublishingStatusEnum;
2883
- mainMedia: Media;
2884
- organizationId: number;
2885
- userCreatorId: number;
2886
- programHighlights: ProgramHighlights[];
2887
- linkSEO: string;
2888
- longDescription?: string;
2889
- requiredProductIds: number[] | null;
2890
- deletedAt?: Date;
2891
- programSeason: ProgramSeason[];
2892
- purchasedResources: PurchasedResource[];
3079
+ export declare enum SeasonPoolStatusEnum {
3080
+ IN_POOL = 5,
3081
+ ASSIGNED = 1,
3082
+ QUIT = 2,
3083
+ SUSPENDED = 3,
3084
+ INACTIVE = 4
2893
3085
  }
2894
- export declare class ProgramHighlights extends BondBaseEntity {
2895
- type: ProgramHighlightTypeEnum;
2896
- ordinal: number | null;
2897
- title: string | null;
2898
- data: any | null;
2899
- program: Program;
2900
- deletedAt?: Date;
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
2901
3100
  }
2902
- export declare class ProgramSeason extends BondBaseEntity {
2903
- programId: number;
2904
- name: string;
2905
- description: string | null;
2906
- GL?: string | null;
2907
- status: PublishingStatusEnum;
2908
- startDate: Date;
2909
- endDate: Date;
2910
- registrationStartDate: Date | null;
2911
- registrationEndDate: Date | null;
2912
- questionnaires: number[] | null;
2913
- seasonType: ProgramSeasonTypesEnum;
2914
- parentSeasonId: number | null;
2915
- maxParticipants: number | null;
2916
- maxMaleParticipants: number | null;
2917
- maxFemaleParticipants: number | null;
2918
- maxWaitlist: number | null;
2919
- maxMaleWaitlist: number | null;
2920
- maxFemaleWaitlist: number | null;
2921
- organizationId: number;
2922
- facilityId: number | null;
2923
- facilityName?: string;
2924
- addressId: number | null;
2925
- sport: SportsEnum;
2926
- minAge: string;
2927
- maxAge: string;
2928
- gender: GenderEnum;
2929
- level: LevelOfPlayEnum[] | null;
2930
- blockedDated: BlockedDate[];
2931
- seasonAttendees: SeasonAttendee[];
2932
- products: Product[];
2933
- linkSEO: string;
2934
- address: Address;
2935
- defaultProductId?: number;
2936
- longDescription?: string;
2937
- isPunchCard?: boolean;
2938
- deletedAt?: Date;
2939
- segments?: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2940
- program: Program;
2941
- spaces?: Resource[];
2942
- reservationId?: number;
2943
- earlyRegistrationStartDate?: Date;
2944
- earlyRegistrationEndDate?: Date;
2945
- lateRegistrationStartDate?: Date;
2946
- lateRegistrationEndDate?: Date;
2947
- requiredProductIds?: number[];
2948
- registrationConstraints?: RegistrationConstraint;
2949
- sessionSegments: ProgramSeason[];
2950
- sessionEvents: Event[];
2951
- parentSession: ProgramSeason;
2952
- activityTimes: ActivityTimes[];
2953
- productResources: ProductResource[];
2954
- facility: Facility;
2955
- purchasedResources: PurchasedResource[];
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"
2956
3112
  }
2957
- export declare class PurchasedResource extends OrganizationConnectionBaseEntity {
2958
- productUserId: number;
2959
- resourceId: number;
2960
- resourceType: ResourceNameTypeEnum;
2961
- status: PurchasedResourceStatusEnum;
2962
- startDate?: string;
2963
- startTime?: string;
2964
- endDate?: string;
2965
- endTime?: string;
2966
- productUser?: ProductsUsers;
2967
- lineItem?: LineItems;
2968
- eventAttendee?: EventAttendee;
2969
- seasonAttendee?: SeasonAttendee;
2970
- leagueAttendee?: SeasonPool;
2971
- membership?: Membership;
2972
- program?: Program;
2973
- programSeason?: ProgramSeason;
2974
- leagueSeason?: LeagueSeason;
2975
- space?: Resource;
2976
- product?: Product;
2977
- event?: Event;
3113
+ export declare enum ResourceTypeEnum {
3114
+ SPACE = "space"
2978
3115
  }
2979
- export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2980
- title: string | null;
2981
- answerTitle: AnswerTitle;
3116
+ export declare enum ResourceAgesEnum {
3117
+ ADULTS = "adults",
3118
+ CHILDREN = "children"
2982
3119
  }
2983
- export declare class Questions extends BondBaseEntity {
2984
- questionType: string | null;
2985
- ordinal: number | null;
2986
- pageOrdinal: number | null;
2987
- isActive: boolean | null;
2988
- isMandatory: boolean | null;
2989
- metaData: any | null;
2990
- question: string | null;
2991
- creatorId: number | null;
2992
- creatorType: string | null;
2993
- userCreatorId: number | null;
2994
- ownerId: number | null;
2995
- questionnaireId: number | null;
3120
+ export declare enum SpacePropertiesEnum {
3121
+ OUTDOOR = "outdoor",
3122
+ INDOOR = "indoor"
2996
3123
  }
2997
- export declare class RefundReason extends OrganizationConnectionBaseEntity {
2998
- reason: string;
2999
- ordinal: number;
3000
- deletedAt: Date;
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"
3001
3134
  }
3002
- export declare class RegistrationConstraint extends OrganizationConnectionBaseEntity {
3003
- resourceType: ResourceNameTypeEnum;
3004
- resourceId: number;
3005
- openNumDays?: number;
3006
- openNumMinutes?: number;
3007
- openTime?: string;
3008
- closeNumDays?: number;
3009
- closeNumMinutes?: number;
3010
- closeTime?: string;
3011
- deletedAt?: Date;
3135
+ export declare enum RegistrationConstraintPeriodTypeEnum {
3136
+ MINUTES = "minutes",
3137
+ DAYS = "days"
3012
3138
  }
3013
- export declare class Reservations extends OrganizationConnectionBaseEntity {
3014
- name?: string;
3015
- description?: string;
3016
- color?: string;
3017
- status?: string;
3018
- privacySetting?: string;
3019
- reservationType?: string;
3020
- invoiceId?: string;
3021
- customerId?: number;
3022
- length?: number;
3023
- price?: number;
3024
- sessions?: number;
3025
- percentage?: number;
3026
- paymentStatus?: number;
3027
- paymentId?: number;
3028
- startTime?: string;
3029
- dayOfWeek?: number;
3030
- resourcePackageId?: number;
3031
- resourcePackageAmount?: number;
3032
- startDate?: Date;
3033
- endDate?: Date;
3034
- originalReservationId?: number;
3035
- creatorId?: number;
3036
- creatorType?: string;
3037
- userCreatorId?: number;
3038
- ownerId?: number;
3039
- sportType?: number;
3040
- participantType?: string;
3041
- deletedAt?: Date;
3042
- publicNotes?: string;
3043
- slots?: Slot[];
3139
+ export declare enum RegistrationWindowStatusEnum {
3140
+ NOT_OPEN_YET = "not_opened_yet",
3141
+ OPEN = "open",
3142
+ CLOSED = "closed"
3044
3143
  }
3045
- export declare class Resource extends OrganizationConnectionBaseEntity {
3046
- name: string;
3047
- resourceType: ResourceTypeEnum;
3048
- resourceSubType: ResourceSubTypeEnum;
3049
- description?: string;
3050
- longDescription?: string;
3051
- surface?: SurfacesEnum;
3052
- properties?: SpacePropertiesEnum[];
3053
- mainMediaId?: number;
3054
- mainMedia: Media;
3055
- sports: SportsEnum[];
3056
- width?: number;
3057
- length?: number;
3058
- amenities?: AmenitiesEnum[];
3059
- parentSpaceId?: number;
3060
- ordinal?: number;
3061
- isAddOn: boolean;
3062
- ages?: ResourceAgesEnum;
3063
- deletedAt?: Date;
3064
- activityTimes: ActivityTimes[];
3065
- facilities: Facility[];
3066
- slots?: Slot[];
3067
- addons?: Addon[];
3068
- facilityId: number;
3069
- facility: Facility;
3070
- purchasedResources: PurchasedResource[];
3071
- linkSEO: 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"
3072
3151
  }
3073
- export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
3074
- name: string;
3075
- facilityId: number;
3076
- parentSlotId: number;
3077
- childrenSlotIds: number[];
3078
- deletedAt?: Date;
3152
+ export declare enum DiscountMethodsEnum {
3153
+ PERCENT = "percent",
3154
+ AMOUNT = "amount"
3079
3155
  }
3080
- export declare class School extends BondBaseEntity {
3081
- name: string | null;
3082
- alias: string[] | null;
3083
- addressId: number | null;
3084
- website: string | null;
3085
- phone: string | null;
3086
- dataId: number | null;
3156
+ export declare enum UserAuthorizationsTypeEnum {
3157
+ ORGANIZATION = "organization"
3087
3158
  }
3088
- export declare class SeasonAttendee extends BondBaseEntity {
3089
- status: RequestStatusEnum;
3090
- paymentStatus: PaymentStatusEnum;
3091
- paymentId?: number;
3092
- productId?: number;
3093
- attendeeId: number;
3094
- attendee: User;
3095
- seasonId: number;
3096
- season: ProgramSeason;
3097
- productUserId?: number;
3098
- answerTitleIds?: number[];
3099
- deletedAt?: Date;
3100
- purchasedResource: PurchasedResource;
3159
+ export declare enum OrganizationLocaleDateEnum {
3160
+ USA = "USA"
3101
3161
  }
3102
- export declare class SeasonDivisions extends BondBaseEntity {
3103
- name: string | null;
3104
- ordinal: number | null;
3105
- seasonId: number | null;
3106
- color: string | null;
3162
+ export declare enum DateTimeFormatsEnum {
3163
+ API_DATE = "YYYY/MM/DD",
3164
+ API_TIME = "HH:mm:ss",
3165
+ DB_DATE = "YYYY-MM-DD"
3107
3166
  }
3108
- export declare class SeasonPool extends BondBaseEntity {
3109
- seasonId?: number;
3110
- userId?: number;
3111
- status?: number;
3112
- entityId?: number;
3113
- entityType?: string;
3114
- groupId?: string;
3115
- paymentStatus?: PaymentStatusV1Enum;
3116
- metadata?: any;
3117
- paymentId?: number;
3118
- externalAssign?: boolean;
3119
- productUserId?: number;
3120
- purchasedResource: PurchasedResource;
3121
- season: LeagueSeason;
3167
+ export declare enum SlotTypeEnum {
3168
+ EXTERNAL = "external",
3169
+ INTERNAL = "internal",
3170
+ MAINTENANCE = "maintenance",
3171
+ CUSTOM = "custom"
3122
3172
  }
3123
- export declare class SeasonTeam extends BondBaseEntity {
3124
- seasonId: number | null;
3125
- teamId: number | null;
3126
- standingPosition: number | null;
3127
- statistics: any | null;
3128
- points: number | null;
3129
- divisionId: number | null;
3130
- metaData: any | null;
3131
- team: Team;
3173
+ export declare enum PlatformsEnum {
3174
+ CONSUMER = "consumer",
3175
+ CONSUMER_CHECKOUT = "consumer_checkout",
3176
+ BO = "backoffice",
3177
+ MOBILE = "mobile",
3178
+ CRON = "cron"
3179
+ }
3180
+ export declare enum ShiftStatusEnum {
3181
+ OPEN = "open",
3182
+ CLOSED = "closed",
3183
+ MANAGMENT_CLOSED = "closed_by_manager",
3184
+ RECONCILED = "reconciled"
3185
+ }
3186
+ export declare enum EventStatusEnum {
3187
+ OPEN = 1,
3188
+ DRAFT = 2,
3189
+ FULL = 3,
3190
+ CANCELLED = 4,
3191
+ CLOSED = 5,
3192
+ DELETED = 6
3193
+ }
3194
+ export declare enum ReservationTypeEnum {
3195
+ RENTAL = "rental",
3196
+ PROGRAM = "program",
3197
+ MAINTENANCE = "maintenance",
3198
+ CUSTOM = "custom",
3199
+ INTERNAL = "internal"
3200
+ }
3201
+ export declare enum SlotDurationTypeEnum {
3202
+ DATES = "dates",
3203
+ ALL_DAY = "all day",
3204
+ DURATION = "duration"
3205
+ }
3206
+ export declare enum DurationUnitTypesEnum {
3207
+ MINUTES = "minutes",
3208
+ HOURS = "hours"
3209
+ }
3210
+ export declare enum FrequencyEnum {
3211
+ NONE = "none",
3212
+ WEEKLY = "weekly",
3213
+ DAILY = "daily",
3214
+ MONTHLY = "monthly",
3215
+ YEARLY = "yearly"
3132
3216
  }
3133
- export declare class SpacesDependency extends BondBaseEntity {
3134
- blockingSpaceId: number;
3135
- blockedSpaceId: number;
3217
+ export declare enum MaintenanceTimingEnum {
3218
+ BEFORE = 1,
3219
+ AFTER = 2,
3220
+ AT_THE_BEGINING = 3,
3221
+ AT_THE_END = 4
3136
3222
  }
3137
- export declare class Station extends OrganizationConnectionBaseEntity {
3138
- name: string;
3139
- facilityId: number;
3140
- processorTerminalId: string | null;
3141
- terminaLabel: string | null;
3142
- processorSerialNumber: string | null;
3143
- currentOpenShift?: Shift;
3144
- stationToSubcategories: StationToSubcategory[];
3145
- subcategories: Subcategory[];
3146
- shifts?: Shift[];
3223
+ export declare enum CreatorTypeEnum {
3224
+ SPACE = "space",
3225
+ PROGRAM_SEASON = "program_season",
3226
+ SEASON = "season"
3147
3227
  }
3148
- export declare class StationToSubcategory extends OrganizationConnectionBaseEntity {
3149
- stationId: number;
3150
- subcategoryId: number;
3151
- productType: ProductTypesEnum;
3152
- deletedAt?: Date;
3153
- station: Station;
3154
- subcategory: Subcategory;
3228
+ export declare enum UpdatePricesTypeEnum {
3229
+ INDIVIDUAL = "indvidual",
3230
+ CATEGORY = "category",
3231
+ GLOBAL = "global"
3155
3232
  }
3156
- export declare class Subcategory extends OrganizationConnectionBaseEntity {
3157
- productType: ProductTypesEnum;
3158
- name: string;
3159
- ordinal?: number;
3160
- deletedAt?: Date;
3161
- stationToSubcategories: StationToSubcategory[];
3162
- stations: Station[];
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
3163
3241
  }
3164
- export declare class Team extends BondBaseEntity {
3165
- name: string | null;
3166
- description: string | null;
3167
- status: number | null;
3168
- capacity: number | null;
3169
- allowNewMembers: boolean | null;
3170
- membersCanInvite: boolean | null;
3171
- inviteOnly: boolean | null;
3172
- logoId: number | null;
3173
- addressId: number | null;
3174
- price: number | null;
3175
- private: boolean | null;
3176
- returnOverride: boolean | null;
3177
- organizationId: number | null;
3178
- whoCanJoin: TeamCanJoinEnum | null;
3179
- whoCanInvite: string | null;
3180
- metadata: any | null;
3181
- externalId: string | null;
3182
- paymentSettings: any | null;
3183
- isClaimed: boolean | null;
3184
- creatorId: number | null;
3185
- creatorType: string | null;
3186
- userCreatorId: number | null;
3187
- ownerId: number | null;
3188
- mainMediaId: number | null;
3189
- publishedDate: Date | null;
3190
- isPublished: boolean | null;
3191
- levelOfPlay: number[] | null;
3192
- sports: number | null;
3193
- minAge: number | null;
3194
- maxAge: number | null;
3195
- gender: number | null;
3196
- questionnaireId: number | null;
3242
+ export declare enum ReservationMigrationStatusEnum {
3243
+ NEW = "new",
3244
+ NO = "no",
3245
+ YES = "yes"
3197
3246
  }
3198
- export declare class TeamInvite extends BondBaseEntity {
3199
- email: string;
3200
- teamId: number;
3201
- invitedUserId?: number;
3202
- userCreatorId: number;
3203
- token: string;
3204
- tokenExpirationDate: Date;
3205
- isUsed: boolean;
3247
+ export declare enum ProductPackageLevelEnum {
3248
+ HOUR = "hour",
3249
+ SLOT = "slot",
3250
+ RESERVATION = "reservation"
3206
3251
  }
3207
- export declare class TeamMember extends BondBaseEntity {
3208
- teamId: number | null;
3209
- userId: number | null;
3210
- paymentId: number | null;
3211
- hasPaid: boolean | null;
3212
- status: TeamMemberStatusEnum | null;
3213
- role: TeamMemberRoleEnum;
3214
- user: User;
3252
+ export declare enum CancellationStatusEnum {
3253
+ IMMEDIATE = "immediate",
3254
+ AUTO_RENEWAL = "auto_renewal"
3215
3255
  }
3216
- export declare class User extends BondBaseEntity {
3217
- firstName: string | null;
3218
- lastName: string | null;
3219
- email: string | null;
3220
- phoneNumber: string | null;
3221
- about: string | null;
3222
- password: string | null;
3223
- passwordResetToken: string | null;
3224
- passwordResetExpires: Date | null;
3225
- status: string | null;
3226
- pushNotifications: boolean | null;
3227
- notificationSettings: any | null;
3228
- addressId: number | null;
3229
- address: Address;
3230
- currentAddressId: number | null;
3231
- merchantId: number | null;
3232
- loginToken: string | null;
3233
- gender: GenderEnum | null;
3234
- height: number | null;
3235
- weight: number | null;
3236
- birthDate: Date | null;
3237
- lastLogin: Date | null;
3238
- lastInteractionDay: Date | null;
3239
- createAsId: number | null;
3240
- createAsType: ResourceNameTypeEnum | null;
3241
- motto: string | null;
3242
- privateProfile: boolean | null;
3243
- allowMultiSignHack: boolean | null;
3244
- deletedAt: Date | null;
3245
- userInFamilyAccounts: UserInFamilyAccount[];
3246
- athlete: Athlete;
3247
- eventAttendees: EventAttendee[];
3248
- seasonAttendees: SeasonAttendee[];
3249
- linkedAccounts: LinkedAccounts[];
3250
- profilePicture: Media;
3251
- usersRoles: UserRole[];
3252
- invoiceNotes: InvoiceNote[];
3253
- paymentNotes: PaymentNote[];
3256
+ export declare enum SeasonScheduleStatusEnum {
3257
+ DRAFT = 0,
3258
+ PUBLISHED = 1
3254
3259
  }
3255
- export declare class UserAuthorizations extends BondBaseEntity {
3256
- entityId: number | null;
3257
- userId: number | null;
3258
- entityType: UserAuthorizationsTypeEnum;
3259
- user: User;
3260
+ export declare enum FinancialStepEnum {
3261
+ VOID = "void",
3262
+ REFUND = "refund",
3263
+ NONE = "none",
3264
+ REFUND_AND_VOID = "refund-and-void",
3265
+ APPEND = "append"
3260
3266
  }
3261
- export declare class UserInFamilyAccount extends BondBaseEntity {
3262
- familyAccountId: number;
3263
- userId: number;
3264
- isAdmin: boolean;
3265
- user: User;
3266
- familyAccount: FamilyAccount;
3267
- deletedAt?: Date;
3267
+ export declare enum StripeAccountTypesEnum {
3268
+ STRIPE = "stripe",
3269
+ STRIPE_CUSTOM = "stripe:account:custom",
3270
+ STRIPE_CUSTOMER = "stripe:customer"
3268
3271
  }
3269
- export declare class UserPaymentMethod extends BondBaseEntity {
3270
- userId: number;
3271
- failCount: number;
3272
- isDefault?: boolean;
3273
- paymentMethodType: PaymentMethodTypeEnum;
3274
- paymentMethodId: string;
3275
- nextAllowedChargeDate?: Date;
3272
+ export declare enum LinkedAccountStatus {
3273
+ PENDING = 1,
3274
+ ACTIVE = 2,
3275
+ PRE_PENDING = 3
3276
3276
  }
3277
- export declare class UsersInGroup extends BondBaseEntity {
3278
- groupId: number;
3279
- userId: number;
3280
- deletedAt?: Date;
3277
+ export declare enum AddonParentTypeEnum {
3278
+ RESERVATION = "reservation",
3279
+ SLOT = "slot"
3281
3280
  }
3282
- export declare class VariantTitle extends OrganizationConnectionBaseEntity {
3283
- name: string;
3284
- variants: Variant[];
3281
+ export declare enum EEmailStatus {
3282
+ SENT = "sent",
3283
+ OPENED = "opened",
3284
+ PAID = "paid",
3285
+ CANCELED = "canceled"
3285
3286
  }
3286
- export declare class Variant extends OrganizationConnectionBaseEntity {
3287
- name: string;
3288
- variantTitleId: number;
3289
- variantTitle: VariantTitle;
3290
- deletedAt?: Date;
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 declare class WebflowOrganizationConfiguration extends OrganizationConnectionBaseEntity {
3293
- projectToken: string;
3294
- programTypesCollectionId?: string;
3295
- programTagsCollectionId?: string;
3296
- sportsCollectionId?: string;
3297
- membershipCollectionId?: string;
3298
- programsCollectionId?: string;
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 AddImportedCustomerDto extends AddEditCustomerDto {
3301
3301
  name?: string;
@@ -3311,6 +3311,11 @@ export declare class AddFamilyDto {
3311
3311
  parents: AddImportedCustomerDto[];
3312
3312
  children: AddImportedCustomerDto[];
3313
3313
  }
3314
+ export declare class ColumnNumericTransformer {
3315
+ to(data: number): number;
3316
+ from(data: string): number;
3317
+ }
3318
+ export declare function convertToNumber(data: string): number;
3314
3319
  export declare enum ImportPaymentTypeEnum {
3315
3320
  CREDIT_CARD = "card",
3316
3321
  ACH = "ach",
@@ -3362,6 +3367,10 @@ export declare class PunchPassDto {
3362
3367
  BondSessionID: number;
3363
3368
  ProductID: number;
3364
3369
  }
3370
+ export declare class GameSlots extends BondBaseEntity {
3371
+ entityType: string;
3372
+ entityId: number;
3373
+ }
3365
3374
  export declare class ImportedSlotProductDto {
3366
3375
  slotID?: string;
3367
3376
  name?: string;
@@ -3413,10 +3422,6 @@ export declare class ImportedReservationDto {
3413
3422
  slots?: ImportedSlotDto[];
3414
3423
  addons?: ImportedSlotProductDto[];
3415
3424
  }
3416
- export declare class GameSlots extends BondBaseEntity {
3417
- entityType: string;
3418
- entityId: number;
3419
- }
3420
3425
  export declare class MatchParticipants extends BondBaseEntity {
3421
3426
  matchId: number | null;
3422
3427
  ordinal: number | null;
@@ -3474,12 +3479,6 @@ export interface PaymentStatusesDict {
3474
3479
  export interface PaymentStatusDict {
3475
3480
  [id: number]: ReservationPaymentStatusEnum;
3476
3481
  }
3477
- export declare class CreateMonitorConfigDto {
3478
- facilityId: number;
3479
- name: string;
3480
- code: string;
3481
- config: any;
3482
- }
3483
3482
  export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3484
3483
  facilityId: number;
3485
3484
  code: string;
@@ -4566,6 +4565,12 @@ export declare class ChangeRolePermissionsDto {
4566
4565
  export declare class CreateRoleDto {
4567
4566
  name: string;
4568
4567
  }
4568
+ export declare class CreateMonitorConfigDto {
4569
+ facilityId: number;
4570
+ name: string;
4571
+ code: string;
4572
+ config: any;
4573
+ }
4569
4574
  export declare class Permission extends BondBaseEntity {
4570
4575
  name: string;
4571
4576
  deletedAt?: Date;
@@ -4649,8 +4654,3 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4649
4654
  closingManager?: User;
4650
4655
  reconcilingUser?: User;
4651
4656
  }
4652
- export declare class ColumnNumericTransformer {
4653
- to(data: number): number;
4654
- from(data: string): number;
4655
- }
4656
- export declare function convertToNumber(data: string): number;