@bondsports/types 0.0.131 → 0.0.133

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,24 +9,6 @@ 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
- }
23
- export declare class FindBookingTypeSettingDto {
24
- organizationId: number;
25
- facilityId: number;
26
- spaceId: number;
27
- bookingDate: string;
28
- bookingTime: string;
29
- }
30
12
  export declare enum EConfigurationKeys {
31
13
  MAX_ALLOWED_PM_FAILURE = "max_allowed_pm_failure"
32
14
  }
@@ -292,79 +274,6 @@ export declare class GetGlCodeDto {
292
274
  createdAt: Date;
293
275
  updatedAt: Date;
294
276
  }
295
- export declare class FindByProgramSeasonIdDto {
296
- seasonId: number;
297
- }
298
- export declare class CreateBulkDivisionsDto {
299
- divisions: CreateDivisionDto[];
300
- }
301
- export declare class CreateDivisionDto {
302
- name: string;
303
- ordinal?: number;
304
- programSeasonId: number;
305
- color: string;
306
- isDefault: boolean;
307
- }
308
- export declare class CreateGroupDto {
309
- name: string;
310
- description?: string;
311
- status?: GroupStatusEnum;
312
- maxCapacity?: number;
313
- mainMediaId?: number;
314
- minAgeYears?: number;
315
- maxAgeYears?: number;
316
- gender: GenderEnum;
317
- levelOfPlay?: LevelOfPlayEnum[];
318
- sports: SportsEnum[];
319
- questionnaires?: number[];
320
- captainUserId?: number;
321
- divisionId?: number;
322
- }
323
- export declare class ConnectGroupToDivision {
324
- groupId: number;
325
- divisionId: number;
326
- prevDivisionId: number;
327
- }
328
- export declare class MoveUserInGroups {
329
- userId: number;
330
- groupId?: number;
331
- prevGroupId?: number;
332
- }
333
- export declare class SaveUserAsGroupCaptain {
334
- groupId: number;
335
- userId: number;
336
- }
337
- export declare class CreateTeamInviteDto {
338
- emails: string[];
339
- userCreatorId: number;
340
- }
341
- export declare class TeamByIdDto {
342
- teamId: number;
343
- }
344
- export declare class GetInviteDto extends TeamByIdDto {
345
- inviteToken: string;
346
- }
347
- export declare class JoinTeamDto {
348
- userId: number;
349
- inviteToken?: string;
350
- }
351
- export declare class UserTeamFutureSeasons extends TeamByIdDto {
352
- userId: number;
353
- }
354
- export interface IMoveSeason {
355
- fromSeasonId: number;
356
- toSeasonId: number;
357
- }
358
- export declare class MoveTeamOrMemberDto implements IMoveSeason {
359
- teamId?: number;
360
- memberId?: number;
361
- fromSeasonId: number;
362
- toSeasonId: number;
363
- toDivisionId?: number;
364
- }
365
- export declare class MoveTeamOrMembersByCsvDTO {
366
- fileName: string;
367
- }
368
277
  export declare class CreateMembershipDto {
369
278
  organizationId: number;
370
279
  name: string;
@@ -421,6 +330,13 @@ export declare class CancelMembershipDto {
421
330
  isImmediatelyCancel: boolean;
422
331
  cancellationReason?: string;
423
332
  }
333
+ export declare class FindBookingTypeSettingDto {
334
+ organizationId: number;
335
+ facilityId: number;
336
+ spaceId: number;
337
+ bookingDate: string;
338
+ bookingTime: string;
339
+ }
424
340
  export declare class CreateEntitlementTermsDto {
425
341
  organizationId: number;
426
342
  entitlementGroupId: number;
@@ -463,6 +379,17 @@ export declare class CreateGroupPricingWithProduct {
463
379
  discountValue?: number;
464
380
  discountMethod?: DiscountMethodsEnum;
465
381
  }
382
+ export declare class QuestionAnswersDto {
383
+ questionId: number;
384
+ value: any;
385
+ }
386
+ export declare class UserAnswersDto {
387
+ userId: number;
388
+ answers: QuestionAnswersDto[];
389
+ }
390
+ export declare class GetByQuestionnaireIdsDto {
391
+ questionnaireIds: string;
392
+ }
466
393
  export declare class FindByProductIdDto {
467
394
  productId: number;
468
395
  }
@@ -1093,6 +1020,19 @@ export declare class FindByFamilyAccountIdDto {
1093
1020
  export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1094
1021
  organizationId: number;
1095
1022
  }
1023
+ export declare class ActivityTimes extends BondBaseEntity {
1024
+ parentType: ResourceNameTypeEnum | ProductTypesEnum;
1025
+ parentId: number;
1026
+ dayOfWeek: number;
1027
+ open: string;
1028
+ close: string;
1029
+ deletedAt?: Date;
1030
+ program: ProgramSeason;
1031
+ availabilityStartDate: string;
1032
+ availabilityEndDate: string;
1033
+ proudct: Product;
1034
+ event: Event;
1035
+ }
1096
1036
  export declare class ActivityLogRecord extends BondBaseEntity {
1097
1037
  entityType: ResourceNameTypeEnum;
1098
1038
  entityId: number;
@@ -1106,18 +1046,78 @@ export declare class ActivityLogRecord extends BondBaseEntity {
1106
1046
  oldValue?: any;
1107
1047
  newValue?: any;
1108
1048
  }
1109
- export declare class ActivityTimes extends BondBaseEntity {
1110
- parentType: ResourceNameTypeEnum | ProductTypesEnum;
1111
- parentId: number;
1112
- dayOfWeek: number;
1113
- open: string;
1114
- close: string;
1115
- deletedAt?: Date;
1116
- program: ProgramSeason;
1117
- availabilityStartDate: string;
1118
- availabilityEndDate: string;
1119
- proudct: Product;
1120
- event: Event;
1049
+ export declare class FindByProgramSeasonIdDto {
1050
+ seasonId: number;
1051
+ }
1052
+ export declare class CreateBulkDivisionsDto {
1053
+ divisions: CreateDivisionDto[];
1054
+ }
1055
+ export declare class CreateDivisionDto {
1056
+ name: string;
1057
+ ordinal?: number;
1058
+ programSeasonId: number;
1059
+ color: string;
1060
+ isDefault: boolean;
1061
+ }
1062
+ export declare class CreateGroupDto {
1063
+ name: string;
1064
+ description?: string;
1065
+ status?: GroupStatusEnum;
1066
+ maxCapacity?: number;
1067
+ mainMediaId?: number;
1068
+ minAgeYears?: number;
1069
+ maxAgeYears?: number;
1070
+ gender: GenderEnum;
1071
+ levelOfPlay?: LevelOfPlayEnum[];
1072
+ sports: SportsEnum[];
1073
+ questionnaires?: number[];
1074
+ captainUserId?: number;
1075
+ divisionId?: number;
1076
+ }
1077
+ export declare class ConnectGroupToDivision {
1078
+ groupId: number;
1079
+ divisionId: number;
1080
+ prevDivisionId: number;
1081
+ }
1082
+ export declare class MoveUserInGroups {
1083
+ userId: number;
1084
+ groupId?: number;
1085
+ prevGroupId?: number;
1086
+ }
1087
+ export declare class SaveUserAsGroupCaptain {
1088
+ groupId: number;
1089
+ userId: number;
1090
+ }
1091
+ export declare class CreateTeamInviteDto {
1092
+ emails: string[];
1093
+ userCreatorId: number;
1094
+ }
1095
+ export declare class TeamByIdDto {
1096
+ teamId: number;
1097
+ }
1098
+ export declare class GetInviteDto extends TeamByIdDto {
1099
+ inviteToken: string;
1100
+ }
1101
+ export declare class JoinTeamDto {
1102
+ userId: number;
1103
+ inviteToken?: string;
1104
+ }
1105
+ export declare class UserTeamFutureSeasons extends TeamByIdDto {
1106
+ userId: number;
1107
+ }
1108
+ export interface IMoveSeason {
1109
+ fromSeasonId: number;
1110
+ toSeasonId: number;
1111
+ }
1112
+ export declare class MoveTeamOrMemberDto implements IMoveSeason {
1113
+ teamId?: number;
1114
+ memberId?: number;
1115
+ fromSeasonId: number;
1116
+ toSeasonId: number;
1117
+ toDivisionId?: number;
1118
+ }
1119
+ export declare class MoveTeamOrMembersByCsvDTO {
1120
+ fileName: string;
1121
1121
  }
1122
1122
  export declare class Address extends BondBaseEntity {
1123
1123
  city?: string;
@@ -1292,21 +1292,6 @@ export declare class EntitlementTerms extends OrganizationConnectionBaseEntity {
1292
1292
  groupId: number;
1293
1293
  terms: IEntitlementTerms[];
1294
1294
  }
1295
- export declare class EventAttendee extends BondBaseEntity {
1296
- status: RequestStatusEnum | null;
1297
- hasPaid: boolean | null;
1298
- paymentId: number | null;
1299
- attendeeId: number;
1300
- eventId?: number | null;
1301
- productUserId?: number;
1302
- answerTitleIds?: number[];
1303
- entryStatus?: EntryStatusEnum;
1304
- addonProductUserIds?: number[];
1305
- deletedAt?: Date;
1306
- attendee: User;
1307
- event: Event;
1308
- purchasedResource: PurchasedResource;
1309
- }
1310
1295
  export declare class Event extends OrganizationConnectionBaseEntity {
1311
1296
  constructor();
1312
1297
  defineCalculatedDateTimeProps(): void;
@@ -1393,21 +1378,25 @@ export declare class FacilityToResource extends BondBaseEntity {
1393
1378
  facilityId: number;
1394
1379
  resourceId: number;
1395
1380
  }
1381
+ export declare class EventAttendee extends BondBaseEntity {
1382
+ status: RequestStatusEnum | null;
1383
+ hasPaid: boolean | null;
1384
+ paymentId: number | null;
1385
+ attendeeId: number;
1386
+ eventId?: number | null;
1387
+ productUserId?: number;
1388
+ answerTitleIds?: number[];
1389
+ entryStatus?: EntryStatusEnum;
1390
+ addonProductUserIds?: number[];
1391
+ deletedAt?: Date;
1392
+ attendee: User;
1393
+ event: Event;
1394
+ purchasedResource: PurchasedResource;
1395
+ }
1396
1396
  export declare class FamilyAccount extends BondBaseEntity {
1397
1397
  name: string | null;
1398
1398
  userInFamilyAccounts: UserInFamilyAccount[];
1399
1399
  }
1400
- export declare class FutureInstallment extends OrganizationConnectionBaseEntity {
1401
- userId: number;
1402
- invoiceId: number;
1403
- paymentMethodId: string;
1404
- paymentType: PaymentMethodTypeEnum;
1405
- price: number;
1406
- status: FutureInstallmentStatusEnum;
1407
- plannedDate: Date;
1408
- chargedAt?: Date;
1409
- originalPlannedDate?: Date;
1410
- }
1411
1400
  export declare class GlCodes extends OrganizationConnectionBaseEntity {
1412
1401
  code: string;
1413
1402
  }
@@ -1440,15 +1429,26 @@ export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity
1440
1429
  discountMethod?: DiscountMethodsEnum;
1441
1430
  discountValue?: number;
1442
1431
  }
1443
- export declare class GroupsInDivisions extends BondBaseEntity {
1444
- groupId: number;
1445
- divisionId: number;
1446
- deletedAt?: Date;
1447
- }
1448
- export declare class Invoice extends BondBaseEntity {
1449
- invoiceId: string | null;
1450
- price: number | null;
1451
- status: InvoiceStatusEnum | null;
1432
+ export declare class FutureInstallment extends OrganizationConnectionBaseEntity {
1433
+ userId: number;
1434
+ invoiceId: number;
1435
+ paymentMethodId: string;
1436
+ paymentType: PaymentMethodTypeEnum;
1437
+ price: number;
1438
+ status: FutureInstallmentStatusEnum;
1439
+ plannedDate: Date;
1440
+ chargedAt?: Date;
1441
+ originalPlannedDate?: Date;
1442
+ }
1443
+ export declare class GroupsInDivisions extends BondBaseEntity {
1444
+ groupId: number;
1445
+ divisionId: number;
1446
+ deletedAt?: Date;
1447
+ }
1448
+ export declare class Invoice extends BondBaseEntity {
1449
+ invoiceId: string | null;
1450
+ price: number | null;
1451
+ status: InvoiceStatusEnum | null;
1452
1452
  sentForClientDate: Date | null;
1453
1453
  payingUserId?: number | null;
1454
1454
  invoiceToPayments: InvoiceToPayment[];
@@ -1721,17 +1721,6 @@ export declare class NotificationSubscriptions extends OrganizationConnectionBas
1721
1721
  resourceId: number | null;
1722
1722
  resourceType: string | null;
1723
1723
  }
1724
- export declare class OpeningTime extends OrganizationConnectionBaseEntity {
1725
- id: number;
1726
- dayOfWeek: number;
1727
- open: string;
1728
- close: string;
1729
- facilityId: number;
1730
- createdAt: Date;
1731
- updatedAt: Date;
1732
- deletedAt?: Date;
1733
- facility: Facility;
1734
- }
1735
1724
  export declare class OrganizationConnectionBaseEntity extends BondBaseEntity {
1736
1725
  organizationId: number;
1737
1726
  }
@@ -1758,6 +1747,17 @@ export declare class PasswordReset extends BondBaseEntity {
1758
1747
  validUntil: Date | null;
1759
1748
  active: boolean | null;
1760
1749
  }
1750
+ export declare class OpeningTime extends OrganizationConnectionBaseEntity {
1751
+ id: number;
1752
+ dayOfWeek: number;
1753
+ open: string;
1754
+ close: string;
1755
+ facilityId: number;
1756
+ createdAt: Date;
1757
+ updatedAt: Date;
1758
+ deletedAt?: Date;
1759
+ facility: Facility;
1760
+ }
1761
1761
  export declare class Payment extends OrganizationConnectionBaseEntity {
1762
1762
  price: number;
1763
1763
  paymentProcessorId: string;
@@ -2288,15 +2288,6 @@ export declare class Team extends BondBaseEntity {
2288
2288
  gender: number | null;
2289
2289
  questionnaireId: number | null;
2290
2290
  }
2291
- export declare class TeamInvite extends BondBaseEntity {
2292
- email: string;
2293
- teamId: number;
2294
- invitedUserId?: number;
2295
- userCreatorId: number;
2296
- token: string;
2297
- tokenExpirationDate: Date;
2298
- isUsed: boolean;
2299
- }
2300
2291
  export declare class TeamMember extends BondBaseEntity {
2301
2292
  teamId: number | null;
2302
2293
  userId: number | null;
@@ -2345,6 +2336,15 @@ export declare class User extends BondBaseEntity {
2345
2336
  invoiceNotes: InvoiceNote[];
2346
2337
  paymentNotes: PaymentNote[];
2347
2338
  }
2339
+ export declare class TeamInvite extends BondBaseEntity {
2340
+ email: string;
2341
+ teamId: number;
2342
+ invitedUserId?: number;
2343
+ userCreatorId: number;
2344
+ token: string;
2345
+ tokenExpirationDate: Date;
2346
+ isUsed: boolean;
2347
+ }
2348
2348
  export declare class UserAuthorizations extends BondBaseEntity {
2349
2349
  entityId: number | null;
2350
2350
  userId: number | null;
@@ -2390,925 +2390,911 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2390
2390
  membershipCollectionId?: string;
2391
2391
  programsCollectionId?: string;
2392
2392
  }
2393
- export declare enum EntitlementTermsTypesEnum {
2394
- QUESTION = "question",
2395
- CITY = "city",
2396
- MEMBERSHIP = "membership"
2393
+ export interface IEntitlementTerms {
2394
+ type: EntitlementTermsTypesEnum;
2395
+ id?: number;
2396
+ value?: string;
2397
+ minValue?: string;
2398
+ maxValue?: string;
2397
2399
  }
2398
- export declare enum ResourceNameTypeEnum {
2399
- EVENT = "event",
2400
- VENUE = "venue",
2401
- TEAM = "team",
2402
- LEAGUE = "league",
2403
- USER = "user",
2404
- ORGANIZATION = "organization",
2405
- APP = "app",
2406
- FEED = "feed",
2407
- MATCH = "match",
2408
- ROUND = "round",
2409
- PORTAL = "portal",
2410
- SEASON = "season",
2411
- TOURNAMENT = "tournament",
2412
- MEMBERSHIP = "membership",
2413
- DIVISION = "division",
2414
- GAMESLOT = "gameslot",
2415
- SPACE = "space",
2416
- RESERVATION = "reservation",
2417
- INVOICE = "invoice",
2418
- CUSTOMER = "customer",
2419
- PACKAGE = "package",
2420
- FACILITY = "facility",
2421
- PROGRAM = "program",
2422
- PROGRAM_SEASON = "program_season",
2423
- PRODUCT = "product",
2424
- GROUP = "group",
2425
- VARIANT = "variant",
2426
- SLOT = "slot",
2427
- ADDON = "addon"
2400
+ export interface IQuestionAnswerObject {
2401
+ questionId: number;
2402
+ value: string;
2428
2403
  }
2429
- export declare enum DirectBookingTypesEnum {
2430
- DIRECT_FOR_ALL = "all",
2431
- DIRECT_FOR_NONE = "none",
2432
- DIRECT_VETTED_ONLY = "vetted_only",
2433
- NO_SETTING = "no_setting"
2404
+ export interface ILowestPriceForItem {
2405
+ itemId: number;
2406
+ itemType: ResourceNameTypeEnum;
2407
+ groupId: number;
2408
+ groupName?: string;
2409
+ price: number;
2410
+ overridesPrice: boolean;
2434
2411
  }
2435
- export declare enum GenderEnum {
2436
- OTHER = 1,
2437
- MALE = 2,
2438
- FEMALE = 3
2412
+ export interface IResourcesAvailability {
2413
+ resourceType: ResourceNameTypeEnum;
2414
+ quantity: number;
2415
+ resourcesIds: number[];
2416
+ isPunchCard: boolean;
2417
+ resources?: any[];
2439
2418
  }
2440
- export declare enum LevelOfPlayEnum {
2441
- BEGINNER = 1,
2442
- INTERMEDIATE = 2,
2443
- ADVANCED = 3,
2444
- SEMIPRO = 4,
2445
- SPECTATOR = 5
2419
+ export interface IPackageResponse {
2420
+ parentProduct: Product;
2421
+ children: IChildProduct[];
2446
2422
  }
2447
- export declare enum ProgramTypesEnum {
2448
- LEAGUE = 0,
2449
- TOURNAMENT = 1,
2450
- CLASS = 2,
2451
- CLINIC = 3,
2452
- CAMP = 4,
2453
- LESSON = 5,
2454
- CLUB_TEAM = 6
2423
+ export interface IChildProduct {
2424
+ product: Product;
2425
+ relationType: PackageProductsRelationTypeEnum;
2426
+ timePeriod?: AddonTimePeriodEnum;
2455
2427
  }
2456
- export declare enum ProgramSeasonTypesEnum {
2457
- ROUND_ROBIN = 1,
2458
- BRACKETS = 2,
2459
- CAMP_CLINIC_CLASS = 3
2428
+ export interface ISeasonAttendeeInfo {
2429
+ applicationAnswers: Answer[];
2430
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2431
+ invoices: Invoice[];
2432
+ payments: Payment[];
2433
+ products: Product[];
2434
+ redeemNext: ProductsUsers;
2460
2435
  }
2461
- export declare enum SportsEnum {
2462
- SOFTBALL = 1,
2463
- BASKETBALL = 2,
2464
- FOOTBALL = 3,
2465
- SOCCER = 4,
2466
- BOWLING = 5,
2467
- BOCCEBALL = 6,
2468
- CORNHOLE = 7,
2469
- DODGEBALL = 8,
2470
- FRISBEE = 9,
2471
- HOCKEY = 10,
2472
- KICKBALL = 11,
2473
- LACROSSE = 12,
2474
- PINGPONG = 13,
2475
- RUGBY = 14,
2476
- SKEEBALL = 15,
2477
- TENNIS = 16,
2478
- VOLLEYBALL = 17,
2479
- WIFFLEBALL = 18,
2480
- BADMINTON = 19,
2481
- FITNESS = 20,
2482
- GOLF = 21,
2483
- PILATES = 22,
2484
- RUNNING = 23,
2485
- SKIING = 24,
2486
- SNOWBOARDING = 25,
2487
- YOGA = 26,
2488
- BROOMBALL = 27,
2489
- CRICKET = 28,
2490
- CROSSFIT = 29,
2491
- CYCLING = 30,
2492
- FIELD_HOCKEY = 31,
2493
- RACQUETBALL = 32,
2494
- SPINNING = 33,
2495
- SQUASH = 34,
2496
- SURFING = 35,
2497
- SWIMMING = 36,
2498
- WIND_SURFING = 37,
2499
- ADVENTURE = 38,
2500
- BOXING = 39,
2501
- BASEBALL = 40,
2502
- DANCE = 41,
2503
- KICKBOXING = 42,
2504
- MARTIAL_ARTS = 43,
2505
- OUTDOORS = 44,
2506
- ROWING = 45,
2507
- SAILING = 46,
2508
- SUP = 47,
2509
- TRIATHLON = 48,
2510
- HANDBALL = 49,
2511
- CATCHBALL = 50,
2512
- BLITZBALL = 51,
2513
- ROLLER_DERBY = 52,
2514
- ICE_SKATING = 53,
2515
- PICKLEBALL = 54,
2516
- AXE_THROWING = 55,
2517
- FURSAL = 56,
2518
- BIRTHDAY = 57,
2519
- CORPRATE_EVENTS = 58,
2520
- OTHER = 999
2436
+ export interface ISeasonAttendeeListInfo {
2437
+ userId: number;
2438
+ userFirstName: string;
2439
+ userLastName: string;
2440
+ userGender: number;
2441
+ userBirthDate: Date;
2442
+ userProfilePicUrl: string;
2443
+ customerId: number;
2444
+ customerEmail: string;
2445
+ paymentStatus: string;
2446
+ productName: string;
2447
+ punchCard: boolean;
2521
2448
  }
2522
- export declare enum PublishingStatusEnum {
2523
- DRAFT = 1,
2524
- PUBLISHED = 2,
2525
- CLOSED = 3,
2526
- CANCELLED = 4,
2527
- ARCHIVE = 5,
2528
- UNPUBLISHED = 6
2449
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2450
+ segmentType: ResourceNameTypeEnum;
2451
+ participantRegisteredDate?: string;
2529
2452
  }
2530
- export declare enum ProgramHighlightTypeEnum {
2531
- OTHER = 1,
2532
- MINAGE = 2,
2533
- MAXAGE = 3,
2534
- GENDER = 4,
2535
- LEVELOFPLAY = 5,
2536
- GAMESSEASON = 6,
2537
- MINWEEK = 7,
2538
- SURFACE = 8,
2539
- FORMAT = 9,
2540
- PLAYERS_PER_TEAM = 10,
2541
- MATCH_LENGTH = 12
2453
+ export declare class EventAsSeasonSegment extends Event {
2454
+ segmentType: ResourceNameTypeEnum;
2455
+ participantRegisteredDate?: string;
2542
2456
  }
2543
- export declare enum RequestStatusEnum {
2544
- PENDING = 1,
2545
- ACCEPTED = 2,
2546
- DECLINED = 3
2457
+ export interface ITokenResonse {
2458
+ token: string;
2547
2459
  }
2548
- export declare enum PaymentStatusEnum {
2549
- NOT_PAID = "not_paid",
2550
- PARTIAL_PAYMENT = "partial",
2551
- FULLY_PAID = "paid",
2552
- REFUNDED = "refunded",
2553
- VOID = "void"
2460
+ export interface IStripeBondInvoices {
2461
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2462
+ bondPaidPayment: Payment;
2463
+ invoice?: Invoice;
2464
+ customer?: Customer;
2554
2465
  }
2555
- export declare enum ReservationExtendedEnum {
2556
- PURCHASE_ORDER = "purchase_order"
2466
+ export interface IPartialPaymentData {
2467
+ purchasingUserId: number;
2468
+ paymentData: PurchasePaymentDto;
2469
+ amountToPay: number;
2557
2470
  }
2558
- export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2559
- export declare enum ReservationStatusEnum {
2560
- PLANNED = "Planned",
2561
- APPROVED = "Approved",
2562
- AWAITING_ADMIN = "Awaiting Admin",
2563
- AWAITING_CUSTOMER = "Awaiting Customer",
2564
- REJECTED = "Rejected",
2565
- CANCELED = "Canceled"
2471
+ export interface IPayment {
2472
+ id: number;
2473
+ total: number;
2474
+ paymentMethod: PaymentMethodTypeEnum;
2475
+ status: PaymentStatusEnum;
2476
+ createdAt: Date;
2477
+ invoices: number[];
2566
2478
  }
2567
- export declare enum PaymentStatusV1Enum {
2568
- SENT_TO_CLIENT = 1,
2569
- SENT_FOR_PAYMENT = 2,
2570
- ACCEPTED = 3,
2571
- REJECTED = 4,
2572
- CANCELLED = 5,
2573
- FRAUD = 6,
2574
- NOT_RELEVANT = 7,
2575
- PENDING = 8
2479
+ export interface IPaginationData<T> {
2480
+ meta: {
2481
+ totalItems: number;
2482
+ itemsPerPage: number;
2483
+ totalPages: number;
2484
+ currentPage: number;
2485
+ };
2486
+ data: T[];
2576
2487
  }
2577
- export declare enum PaymentMethodsEnum {
2578
- STRIPE = 1,
2579
- CASH = 3
2488
+ export interface IPricesOfProductsResults {
2489
+ productId: number;
2490
+ userId: number;
2491
+ price: number;
2492
+ groupId?: number;
2493
+ groupName?: string;
2494
+ originalPrice?: number;
2495
+ priceWithoutTax: number;
2496
+ tax: number;
2497
+ isTaxInclusive: boolean;
2580
2498
  }
2581
- export declare enum PackageProductsRelationTypeEnum {
2582
- CHILD = "child",
2583
- UPSALE = "upsale"
2499
+ export interface IPaymentMethodToFundLeft {
2500
+ paymentType: PaymentMethodTypeEnum;
2501
+ paymentMethodId: string;
2502
+ fundLeft: number;
2503
+ ccLast4?: string;
2504
+ ccBrand?: string;
2584
2505
  }
2585
- export declare enum AddonTimePeriodEnum {
2586
- FULL = "full",
2587
- SESSION = "session",
2588
- EVENT = "event"
2506
+ export interface IVariantsAndTitle {
2507
+ title: VariantTitle;
2508
+ variants: Variant[];
2589
2509
  }
2590
- export declare enum CurrencyEnum {
2591
- USD = "USD"
2510
+ export interface IProgramSeasonActivityTimes {
2511
+ dayOfWeek: number;
2512
+ open: string;
2513
+ close: string;
2592
2514
  }
2593
- export declare enum NotificationTypeEnum {
2594
- BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2595
- BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2596
- BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2515
+ export interface IProgramSeasonActivityTimesAsDates {
2516
+ date: string;
2517
+ startTime: string;
2518
+ endTime: string;
2597
2519
  }
2598
- export declare enum ProductTypesEnum {
2599
- RESERVATION = "reservation",
2600
- REGISTRATION = "registration",
2601
- MEMBERSHIP = "membership",
2602
- GOODS = "goods",
2603
- PACKAGE = "package",
2604
- REFUND_COMPENSATION = "refund",
2605
- CASH_OVER_SHORT = "cash_over_short",
2606
- PETTY_CASH = "petty_cash",
2607
- LEAGUE_REGISTRATION = "league_registration",
2608
- TAX = "tax"
2520
+ export interface IBlockedDates {
2521
+ name: string;
2522
+ startDate: Date;
2523
+ endDate: Date;
2609
2524
  }
2610
- export declare enum InvoiceStatusEnum {
2611
- ACTIVE = "active",
2612
- WAITING_ADMIN = "waitingAdmin",
2613
- WAITING_CLIENT = "waitingClient",
2614
- CANCELED = "canceled"
2525
+ export interface ISingleMemberForRenewal {
2526
+ member_id: number;
2527
+ member_membershipId: number;
2528
+ member_userId: number;
2529
+ member_nextPaymentMethodId?: string;
2530
+ member_nextPaymentType?: PaymentMethodTypeEnum;
2531
+ member_answerTitleIds?: number[];
2532
+ member_organizationId: number;
2533
+ product_productPrice: number;
2534
+ product_productId: number;
2535
+ invoice_payingUserId: number;
2536
+ invoice_paymentMethodId: string;
2537
+ invoice_paymentType: PaymentMethodTypeEnum;
2538
+ endDate: Date;
2539
+ membership_name: string;
2540
+ user_firstName: string;
2541
+ user_lastName: string;
2542
+ user_email: string;
2615
2543
  }
2616
- export declare enum LineItemsStatusEnum {
2617
- USER_PRODUCT = "UserProduct",
2618
- RENTAL_PRODUCT = "RentalProduct"
2544
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2545
+ package_parentProductId: number;
2546
+ product2_productPrice: number;
2547
+ familyid: number;
2548
+ invoice_id: number;
2619
2549
  }
2620
- export declare enum ProductSubTypesEnum {
2621
- SEASON_INDIVIDUAL = "season_individual",
2622
- SEASON_TEAM = "season_team",
2623
- SEASON_PER_PLAYER = "season_per_player"
2550
+ export interface IResourceRegistrationData {
2551
+ id: number;
2552
+ resourceType: ResourceNameTypeEnum;
2553
+ openNumDays?: number;
2554
+ openNumMinutes?: number;
2555
+ openTime?: string;
2556
+ closeNumDays?: number;
2557
+ closeNumMinutes?: number;
2558
+ closeTime?: string;
2559
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
2624
2560
  }
2625
- export declare enum PaymentMethodTypeEnum {
2626
- CREDIT_CARD = "card",
2627
- ACH = "ach",
2628
- CASH = "cash",
2629
- CHECK = "check",
2630
- BALANCE = "balance",
2631
- CARD_ON_TERMINAL = "card-on-terminal",
2632
- OTHER = "other",
2633
- MIGRATED = "migrated",
2634
- VOID = "void"
2561
+ export interface IResourceDataForConstraintsCalc {
2562
+ id: number;
2563
+ startDate: string;
2564
+ startTime: string;
2635
2565
  }
2636
- export declare enum RefundTypeEnum {
2637
- LEAVE_BALANCE = "leave_balance",
2638
- REDUCE_BALANCE = "reduce_balance"
2566
+ export interface IRegistrationConstraintsSetting {
2567
+ numDays?: number;
2568
+ numMinutes?: number;
2639
2569
  }
2640
- export declare enum CustomerInMembershipTypeEnum {
2641
- INDIVIDUAL = "individual",
2642
- FAMILY = "family",
2643
- ORGANIZATION = "organization"
2570
+ export interface IAttendeeDataToNotify {
2571
+ firstName: string;
2572
+ lastName: string;
2573
+ email: string;
2574
+ sessionName: string;
2575
+ parentSessionName?: string;
2576
+ organizationName: string;
2577
+ programName: string;
2644
2578
  }
2645
- export declare enum MembershipTypeEnum {
2646
- FIXED = "fix_membership",
2647
- ROLLING = "rolling_membership"
2579
+ export interface IEventInSchedule {
2580
+ eventId: number;
2581
+ eventName: string;
2582
+ eventStartDate: string;
2583
+ eventEndDate: string;
2584
+ eventStartTime: string;
2585
+ eventEndTime: string;
2586
+ programId: number;
2587
+ programName: string;
2588
+ programType: ProgramTypesEnum;
2589
+ sessionId: number;
2590
+ sessionName: string;
2591
+ sports: number;
2592
+ spaces: {
2593
+ spaceId: number;
2594
+ spaceName: string;
2595
+ }[];
2596
+ status?: RegistrationValidationStatusEnum;
2648
2597
  }
2649
- export declare enum CustomerTypeEnum {
2650
- USER = "user",
2651
- FAMILY = "family",
2652
- ORGANIZATION = "organization"
2598
+ export interface ISlotInSchedule {
2599
+ facilityId: number;
2600
+ facilityName: string;
2601
+ spaces: ISpaceWithSlots[];
2653
2602
  }
2654
- export declare enum GroupStatusEnum {
2655
- ACTIVE = 1,
2656
- INACTIVE = 2,
2657
- DRAFT = 3
2603
+ export interface ISpaceWithSlots {
2604
+ id: number;
2605
+ name: string;
2606
+ slots: ISlotReservationData[];
2658
2607
  }
2659
- export declare enum FutureInstallmentStatusEnum {
2660
- FUTURE = "future",
2661
- SUCCEEDED = "succeeded",
2662
- FAILED = "failed",
2663
- CANCELED = "canceled"
2608
+ export interface ISlotReservationData {
2609
+ reservationId: number;
2610
+ reservationName: string;
2611
+ date: string;
2612
+ startTime: string;
2613
+ endTime: string;
2614
+ notes: string;
2615
+ spaceId: number;
2616
+ isRental: boolean;
2617
+ slotType: SlotTypeEnum;
2618
+ slotId: number;
2619
+ eventId: number;
2620
+ isPrivate: boolean;
2664
2621
  }
2665
- export declare enum EntryStatusEnum {
2666
- ENTERED = 1,
2667
- NOT_ENTERED = 2,
2668
- CANCELED = 3
2622
+ export interface IRawEventInSchedule extends IEventInSchedule {
2623
+ parentSessionId: number;
2624
+ parentSessionName: string;
2625
+ eventTimezone: string;
2626
+ maxParticipants: number;
2627
+ maxMaleParticipants: number;
2628
+ maxFemaleParticipants: number;
2629
+ isPunchCard: boolean;
2669
2630
  }
2670
- export declare enum PurchasedResourceStatusEnum {
2671
- ACTIVE = 1,
2672
- MOVED = 2,
2673
- CANCELED = 3
2674
- }
2675
- export declare enum TeamCanJoinEnum {
2676
- ANYONE = "anyone",
2677
- BY_INVITE = "byInvite",
2678
- CAPTAIN_APPROVAL = "captainApproval"
2679
- }
2680
- export declare enum TeamMemberStatusEnum {
2681
- PENDING = 1,
2682
- ACTIVE = 2,
2683
- DECLINED = 3,
2684
- SUSPENDED = 4,
2685
- INACTIVE = 5,
2686
- INVITED = 6
2631
+ export interface IBasicSpaceAndSlotCreator {
2632
+ id: number;
2633
+ name: string;
2634
+ bookingCreatorId: number;
2687
2635
  }
2688
- export declare enum TeamMemberRoleEnum {
2689
- NULL = 0,
2690
- ADMIN = 1
2636
+ export interface IRawSlotInSchedule {
2637
+ startDate: string;
2638
+ endDate: string;
2639
+ startTime: string;
2640
+ endTime: string;
2641
+ reservationId: number;
2642
+ eventTitle: string;
2643
+ publicNotes: string;
2644
+ spaceId: number;
2645
+ creatorType: ResourceNameTypeEnum;
2646
+ slotType: SlotTypeEnum;
2647
+ slotId: number;
2648
+ eventId: number;
2649
+ isPrivate: boolean;
2691
2650
  }
2692
- export declare enum DayOfWeekEnum {
2693
- SUNDAY = 0,
2694
- MONDAY = 1,
2695
- TUESDAY = 2,
2696
- WEDNESDAY = 3,
2697
- THURSDAY = 4,
2698
- FRIDAY = 5,
2699
- SATURDAY = 6
2651
+ export interface IPurchasedResourcesRaw {
2652
+ purchasedId: number;
2653
+ purchasedProductUserId: number;
2654
+ purchasedResourceId: number;
2655
+ purchasedResourceType: ResourceNameTypeEnum;
2656
+ purchasedStatus: PurchasedResourceStatusEnum;
2657
+ pUserId: number;
2658
+ pUserPaymentStatus: PaymentStatusEnum;
2659
+ pUserProductId: number;
2660
+ pUserProductName: string;
2661
+ pUserProductPrice: number;
2662
+ pUserProductPriceCurrency: string;
2663
+ pUserProductQuantity: number;
2664
+ pUserProductQuantityLeft: number;
2665
+ pUserUserId: number;
2700
2666
  }
2701
- export declare enum ActionTypesEnum {
2702
- CREATE = "create",
2703
- READ = "read",
2704
- UPDATE = "update",
2705
- DELETE = "delete"
2667
+ export interface IUsersPasses {
2668
+ userId: number;
2669
+ userFirstName: string;
2670
+ userLastName: string;
2671
+ organizationId: number;
2672
+ programId: number;
2673
+ programName: string;
2674
+ sessionId: number;
2675
+ sessionName: string;
2676
+ productId: number;
2677
+ productName: string;
2678
+ productUserId: number;
2679
+ purchaseDate: Date;
2680
+ passesLeft: number;
2706
2681
  }
2707
- export declare enum ActionSourcePlatformEnum {
2708
- ADMIN = "admin",
2709
- BACKOFFICE = "backoffice",
2710
- CONSUMER = "consumer"
2682
+ export interface ISessionsLandingPage {
2683
+ sessionId: number;
2684
+ name: string;
2685
+ startDate: Date;
2686
+ endDate: Date;
2687
+ registrationStartDate: Date;
2688
+ registrationEndDate: Date;
2689
+ sport: SportsEnum;
2690
+ minAge: string;
2691
+ maxAge: string;
2692
+ maxParticipants?: number;
2693
+ gender: GenderEnum;
2694
+ activityTimes: ActivityTimes[];
2695
+ earlyRegistrationStartDate?: Date;
2696
+ earlyRegistrationEndDate?: Date;
2697
+ lateRegistrationStartDate?: Date;
2698
+ lateRegistrationEndDate?: Date;
2699
+ attendeeCount?: number;
2700
+ segmentsOrEvents: 'segment' | 'event';
2711
2701
  }
2712
- export declare enum RolesEnum {
2713
- ORG_ADMIN = "organizationAdmin",
2714
- BOND_ADMIN = "bondAdmin"
2702
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2703
+ hasRequiredMembership: boolean;
2704
+ hasEntitledPricing: boolean;
2705
+ lowestPrice?: number;
2706
+ products?: ISessionLandingPageProduct[];
2715
2707
  }
2716
- export declare enum SeasonPoolStatusEnum {
2717
- IN_POOL = 5,
2718
- ASSIGNED = 1,
2719
- QUIT = 2,
2720
- SUSPENDED = 3,
2721
- INACTIVE = 4
2708
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2709
+ hasRequiredMembership: boolean;
2710
+ hasEntitledPricing: boolean;
2711
+ products?: ISessionLandingPageProduct[];
2712
+ segments?: Event[] | ProgramSeason[];
2713
+ programName: string;
2714
+ programId: number;
2715
+ levelOfPlay: LevelOfPlayEnum[];
2716
+ registrationConstraints: IResourceRegistrationData[];
2722
2717
  }
2723
- export declare enum AmenitiesEnum {
2724
- HEAT = 1,
2725
- AC = 2,
2726
- WIFI = 3,
2727
- RESTROOMS = 4,
2728
- DRINKING_FOUNTAIN = 5,
2729
- PARKING = 6,
2730
- CONCESSIONS = 7,
2731
- SHELTER = 8,
2732
- PORTABLE_RESTROOMS = 9,
2733
- LIGHTS = 10,
2734
- LOCKER_ROOM = 11,
2735
- PAID_PARKING = 12,
2736
- ACCESSIBLE = 13
2718
+ export interface ISlimAddons {
2719
+ addons?: {
2720
+ id: number;
2721
+ timePeriod: AddonTimePeriodEnum;
2722
+ name: string;
2723
+ productType?: ProductTypesEnum;
2724
+ productSubType?: string;
2725
+ }[];
2737
2726
  }
2738
- export declare enum ResourceSubTypeEnum {
2739
- COURT = "court",
2740
- FIELD = "field",
2741
- ROOM = "room",
2742
- DIAMOND = "diamond",
2743
- RINK = "rink",
2744
- STUDIO = "studio",
2745
- POOL = "pool",
2746
- BATTING_CAGE = "batting cage",
2747
- SHELTER = "shelter",
2748
- GOLF_SIMULATOR = "golf simulator"
2727
+ export interface ISessionLandingPageProduct extends ISlimAddons {
2728
+ id: number;
2729
+ name: string;
2730
+ startDate?: Date;
2731
+ endDate?: Date;
2732
+ downpayment?: number;
2733
+ description?: string;
2734
+ prices: Price[];
2735
+ productSubType?: ProductSubTypesEnum;
2736
+ punchCard: boolean;
2737
+ isAddon: boolean;
2738
+ defaultPriceId?: number;
2749
2739
  }
2750
- export declare enum ResourceTypeEnum {
2751
- SPACE = "space"
2740
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2741
+ destinationId?: string;
2742
+ stripeCustomerId?: string;
2743
+ fee?: number;
2752
2744
  }
2753
- export declare enum ResourceAgesEnum {
2754
- ADULTS = "adults",
2755
- CHILDREN = "children"
2745
+ export interface IReservationCreatorData {
2746
+ type: ResourceNameTypeEnum;
2747
+ id: number;
2748
+ organizationId: number;
2749
+ startDate: string;
2750
+ endDate: string;
2751
+ sportId: number;
2756
2752
  }
2757
- export declare enum SpacePropertiesEnum {
2758
- OUTDOOR = "outdoor",
2759
- INDOOR = "indoor"
2753
+ export declare enum EntitlementTermsTypesEnum {
2754
+ QUESTION = "question",
2755
+ CITY = "city",
2756
+ MEMBERSHIP = "membership"
2760
2757
  }
2761
- export declare enum SurfacesEnum {
2762
- GRASS = "grass",
2763
- TURF = "turf",
2764
- FIELD_TURF = "fieldTurf",
2765
- ASTRO_TURF = "astroTurf",
2766
- HARDWOOD = "hardwood",
2767
- ASPHALT = "asphalt",
2768
- SAND = "sand",
2769
- ICE = "ice",
2770
- SPORT_COURT = "sportCourt"
2758
+ export declare enum ResourceNameTypeEnum {
2759
+ EVENT = "event",
2760
+ VENUE = "venue",
2761
+ TEAM = "team",
2762
+ LEAGUE = "league",
2763
+ USER = "user",
2764
+ ORGANIZATION = "organization",
2765
+ APP = "app",
2766
+ FEED = "feed",
2767
+ MATCH = "match",
2768
+ ROUND = "round",
2769
+ PORTAL = "portal",
2770
+ SEASON = "season",
2771
+ TOURNAMENT = "tournament",
2772
+ MEMBERSHIP = "membership",
2773
+ DIVISION = "division",
2774
+ GAMESLOT = "gameslot",
2775
+ SPACE = "space",
2776
+ RESERVATION = "reservation",
2777
+ INVOICE = "invoice",
2778
+ CUSTOMER = "customer",
2779
+ PACKAGE = "package",
2780
+ FACILITY = "facility",
2781
+ PROGRAM = "program",
2782
+ PROGRAM_SEASON = "program_season",
2783
+ PRODUCT = "product",
2784
+ GROUP = "group",
2785
+ VARIANT = "variant",
2786
+ SLOT = "slot",
2787
+ ADDON = "addon"
2771
2788
  }
2772
- export declare enum RegistrationConstraintPeriodTypeEnum {
2773
- MINUTES = "minutes",
2774
- DAYS = "days"
2789
+ export declare enum DirectBookingTypesEnum {
2790
+ DIRECT_FOR_ALL = "all",
2791
+ DIRECT_FOR_NONE = "none",
2792
+ DIRECT_VETTED_ONLY = "vetted_only",
2793
+ NO_SETTING = "no_setting"
2775
2794
  }
2776
- export declare enum RegistrationWindowStatusEnum {
2777
- NOT_OPEN_YET = "not_opened_yet",
2778
- OPEN = "open",
2779
- CLOSED = "closed"
2795
+ export declare enum GenderEnum {
2796
+ OTHER = 1,
2797
+ MALE = 2,
2798
+ FEMALE = 3
2780
2799
  }
2781
- export declare enum RegistrationValidationStatusEnum {
2782
- FULL = "full",
2783
- ALREADY_REGISTERED = "registered",
2784
- AVAILABLE = "available",
2785
- NOT_OPEN_YET = "not opened",
2786
- ALREADY_CLOSED = "closed",
2787
- NO_PRODUCT_FOUND = "no-product-found"
2800
+ export declare enum LevelOfPlayEnum {
2801
+ BEGINNER = 1,
2802
+ INTERMEDIATE = 2,
2803
+ ADVANCED = 3,
2804
+ SEMIPRO = 4,
2805
+ SPECTATOR = 5
2788
2806
  }
2789
- export declare enum DiscountMethodsEnum {
2790
- PERCENT = "percent",
2791
- AMOUNT = "amount"
2807
+ export declare enum ProgramTypesEnum {
2808
+ LEAGUE = 0,
2809
+ TOURNAMENT = 1,
2810
+ CLASS = 2,
2811
+ CLINIC = 3,
2812
+ CAMP = 4,
2813
+ LESSON = 5,
2814
+ CLUB_TEAM = 6
2792
2815
  }
2793
- export declare enum UserAuthorizationsTypeEnum {
2794
- ORGANIZATION = "organization"
2816
+ export declare enum ProgramSeasonTypesEnum {
2817
+ ROUND_ROBIN = 1,
2818
+ BRACKETS = 2,
2819
+ CAMP_CLINIC_CLASS = 3
2795
2820
  }
2796
- export declare enum OrganizationLocaleDateEnum {
2797
- USA = "USA"
2821
+ export declare enum SportsEnum {
2822
+ SOFTBALL = 1,
2823
+ BASKETBALL = 2,
2824
+ FOOTBALL = 3,
2825
+ SOCCER = 4,
2826
+ BOWLING = 5,
2827
+ BOCCEBALL = 6,
2828
+ CORNHOLE = 7,
2829
+ DODGEBALL = 8,
2830
+ FRISBEE = 9,
2831
+ HOCKEY = 10,
2832
+ KICKBALL = 11,
2833
+ LACROSSE = 12,
2834
+ PINGPONG = 13,
2835
+ RUGBY = 14,
2836
+ SKEEBALL = 15,
2837
+ TENNIS = 16,
2838
+ VOLLEYBALL = 17,
2839
+ WIFFLEBALL = 18,
2840
+ BADMINTON = 19,
2841
+ FITNESS = 20,
2842
+ GOLF = 21,
2843
+ PILATES = 22,
2844
+ RUNNING = 23,
2845
+ SKIING = 24,
2846
+ SNOWBOARDING = 25,
2847
+ YOGA = 26,
2848
+ BROOMBALL = 27,
2849
+ CRICKET = 28,
2850
+ CROSSFIT = 29,
2851
+ CYCLING = 30,
2852
+ FIELD_HOCKEY = 31,
2853
+ RACQUETBALL = 32,
2854
+ SPINNING = 33,
2855
+ SQUASH = 34,
2856
+ SURFING = 35,
2857
+ SWIMMING = 36,
2858
+ WIND_SURFING = 37,
2859
+ ADVENTURE = 38,
2860
+ BOXING = 39,
2861
+ BASEBALL = 40,
2862
+ DANCE = 41,
2863
+ KICKBOXING = 42,
2864
+ MARTIAL_ARTS = 43,
2865
+ OUTDOORS = 44,
2866
+ ROWING = 45,
2867
+ SAILING = 46,
2868
+ SUP = 47,
2869
+ TRIATHLON = 48,
2870
+ HANDBALL = 49,
2871
+ CATCHBALL = 50,
2872
+ BLITZBALL = 51,
2873
+ ROLLER_DERBY = 52,
2874
+ ICE_SKATING = 53,
2875
+ PICKLEBALL = 54,
2876
+ AXE_THROWING = 55,
2877
+ FURSAL = 56,
2878
+ BIRTHDAY = 57,
2879
+ CORPRATE_EVENTS = 58,
2880
+ OTHER = 999
2798
2881
  }
2799
- export declare enum DateTimeFormatsEnum {
2800
- API_DATE = "YYYY/MM/DD",
2801
- API_TIME = "HH:mm:ss",
2802
- DB_DATE = "YYYY-MM-DD"
2882
+ export declare enum PublishingStatusEnum {
2883
+ DRAFT = 1,
2884
+ PUBLISHED = 2,
2885
+ CLOSED = 3,
2886
+ CANCELLED = 4,
2887
+ ARCHIVE = 5,
2888
+ UNPUBLISHED = 6
2803
2889
  }
2804
- export declare enum SlotTypeEnum {
2805
- EXTERNAL = "external",
2806
- INTERNAL = "internal",
2807
- MAINTENANCE = "maintenance",
2808
- CUSTOM = "custom"
2890
+ export declare enum ProgramHighlightTypeEnum {
2891
+ OTHER = 1,
2892
+ MINAGE = 2,
2893
+ MAXAGE = 3,
2894
+ GENDER = 4,
2895
+ LEVELOFPLAY = 5,
2896
+ GAMESSEASON = 6,
2897
+ MINWEEK = 7,
2898
+ SURFACE = 8,
2899
+ FORMAT = 9,
2900
+ PLAYERS_PER_TEAM = 10,
2901
+ MATCH_LENGTH = 12
2809
2902
  }
2810
- export declare enum PlatformsEnum {
2811
- CONSUMER = "consumer",
2812
- CONSUMER_CHECKOUT = "consumer_checkout",
2813
- BO = "backoffice",
2814
- MOBILE = "mobile",
2815
- CRON = "cron"
2903
+ export declare enum RequestStatusEnum {
2904
+ PENDING = 1,
2905
+ ACCEPTED = 2,
2906
+ DECLINED = 3
2816
2907
  }
2817
- export declare enum ShiftStatusEnum {
2818
- OPEN = "open",
2819
- CLOSED = "closed",
2820
- MANAGMENT_CLOSED = "closed_by_manager",
2821
- RECONCILED = "reconciled"
2908
+ export declare enum PaymentStatusEnum {
2909
+ NOT_PAID = "not_paid",
2910
+ PARTIAL_PAYMENT = "partial",
2911
+ FULLY_PAID = "paid",
2912
+ REFUNDED = "refunded",
2913
+ VOID = "void"
2822
2914
  }
2823
- export declare enum EventStatusEnum {
2824
- OPEN = 1,
2825
- DRAFT = 2,
2826
- FULL = 3,
2827
- CANCELLED = 4,
2828
- CLOSED = 5,
2829
- DELETED = 6
2915
+ export declare enum ReservationExtendedEnum {
2916
+ PURCHASE_ORDER = "purchase_order"
2830
2917
  }
2831
- export declare enum ReservationTypeEnum {
2832
- RENTAL = "rental",
2833
- PROGRAM = "program",
2834
- MAINTENANCE = "maintenance",
2835
- CUSTOM = "custom",
2836
- INTERNAL = "internal"
2918
+ export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2919
+ export declare enum ReservationStatusEnum {
2920
+ PLANNED = "Planned",
2921
+ APPROVED = "Approved",
2922
+ AWAITING_ADMIN = "Awaiting Admin",
2923
+ AWAITING_CUSTOMER = "Awaiting Customer",
2924
+ REJECTED = "Rejected",
2925
+ CANCELED = "Canceled"
2837
2926
  }
2838
- export declare enum SlotDurationTypeEnum {
2839
- DATES = "dates",
2840
- ALL_DAY = "all day",
2841
- DURATION = "duration"
2927
+ export declare enum PaymentStatusV1Enum {
2928
+ SENT_TO_CLIENT = 1,
2929
+ SENT_FOR_PAYMENT = 2,
2930
+ ACCEPTED = 3,
2931
+ REJECTED = 4,
2932
+ CANCELLED = 5,
2933
+ FRAUD = 6,
2934
+ NOT_RELEVANT = 7,
2935
+ PENDING = 8
2842
2936
  }
2843
- export declare enum DurationUnitTypesEnum {
2844
- MINUTES = "minutes",
2845
- HOURS = "hours"
2937
+ export declare enum PaymentMethodsEnum {
2938
+ STRIPE = 1,
2939
+ CASH = 3
2846
2940
  }
2847
- export declare enum FrequencyEnum {
2848
- NONE = "none",
2849
- WEEKLY = "weekly",
2850
- DAILY = "daily",
2851
- MONTHLY = "monthly",
2852
- YEARLY = "yearly"
2941
+ export declare enum PackageProductsRelationTypeEnum {
2942
+ CHILD = "child",
2943
+ UPSALE = "upsale"
2853
2944
  }
2854
- export declare enum MaintenanceTimingEnum {
2855
- BEFORE = 1,
2856
- AFTER = 2,
2857
- AT_THE_BEGINING = 3,
2858
- AT_THE_END = 4
2945
+ export declare enum AddonTimePeriodEnum {
2946
+ FULL = "full",
2947
+ SESSION = "session",
2948
+ EVENT = "event"
2859
2949
  }
2860
- export declare enum CreatorTypeEnum {
2861
- SPACE = "space",
2862
- PROGRAM_SEASON = "program_season",
2863
- SEASON = "season"
2950
+ export declare enum CurrencyEnum {
2951
+ USD = "USD"
2864
2952
  }
2865
- export declare enum UpdatePricesTypeEnum {
2866
- INDIVIDUAL = "indvidual",
2867
- CATEGORY = "category",
2868
- GLOBAL = "global"
2953
+ export declare enum NotificationTypeEnum {
2954
+ BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2955
+ BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2956
+ BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2869
2957
  }
2870
- export declare enum BondDayOfWeekEnum {
2871
- MONDAY = 2,
2872
- TUESDAY = 3,
2873
- WEDNESDAY = 4,
2874
- THURSDAY = 5,
2875
- FRIDAY = 6,
2876
- SATURDAY = 7,
2877
- SUNDAY = 8
2958
+ export declare enum ProductTypesEnum {
2959
+ RESERVATION = "reservation",
2960
+ REGISTRATION = "registration",
2961
+ MEMBERSHIP = "membership",
2962
+ GOODS = "goods",
2963
+ PACKAGE = "package",
2964
+ REFUND_COMPENSATION = "refund",
2965
+ CASH_OVER_SHORT = "cash_over_short",
2966
+ PETTY_CASH = "petty_cash",
2967
+ LEAGUE_REGISTRATION = "league_registration",
2968
+ TAX = "tax"
2878
2969
  }
2879
- export declare enum ReservationMigrationStatusEnum {
2880
- NEW = "new",
2881
- NO = "no",
2882
- YES = "yes"
2970
+ export declare enum InvoiceStatusEnum {
2971
+ ACTIVE = "active",
2972
+ WAITING_ADMIN = "waitingAdmin",
2973
+ WAITING_CLIENT = "waitingClient",
2974
+ CANCELED = "canceled"
2883
2975
  }
2884
- export declare enum ProductPackageLevelEnum {
2885
- HOUR = "hour",
2886
- SLOT = "slot",
2887
- RESERVATION = "reservation"
2976
+ export declare enum LineItemsStatusEnum {
2977
+ USER_PRODUCT = "UserProduct",
2978
+ RENTAL_PRODUCT = "RentalProduct"
2888
2979
  }
2889
- export declare enum CancellationStatusEnum {
2890
- IMMEDIATE = "immediate",
2891
- AUTO_RENEWAL = "auto_renewal"
2980
+ export declare enum ProductSubTypesEnum {
2981
+ SEASON_INDIVIDUAL = "season_individual",
2982
+ SEASON_TEAM = "season_team",
2983
+ SEASON_PER_PLAYER = "season_per_player"
2892
2984
  }
2893
- export declare enum SeasonScheduleStatusEnum {
2894
- DRAFT = 0,
2895
- PUBLISHED = 1
2985
+ export declare enum PaymentMethodTypeEnum {
2986
+ CREDIT_CARD = "card",
2987
+ ACH = "ach",
2988
+ CASH = "cash",
2989
+ CHECK = "check",
2990
+ BALANCE = "balance",
2991
+ CARD_ON_TERMINAL = "card-on-terminal",
2992
+ OTHER = "other",
2993
+ MIGRATED = "migrated",
2994
+ VOID = "void"
2896
2995
  }
2897
- export declare enum FinancialStepEnum {
2898
- VOID = "void",
2899
- REFUND = "refund",
2900
- NONE = "none",
2901
- REFUND_AND_VOID = "refund-and-void",
2902
- APPEND = "append"
2996
+ export declare enum RefundTypeEnum {
2997
+ LEAVE_BALANCE = "leave_balance",
2998
+ REDUCE_BALANCE = "reduce_balance"
2903
2999
  }
2904
- export declare enum StripeAccountTypesEnum {
2905
- STRIPE = "stripe",
2906
- STRIPE_CUSTOM = "stripe:account:custom",
2907
- STRIPE_CUSTOMER = "stripe:customer"
3000
+ export declare enum CustomerInMembershipTypeEnum {
3001
+ INDIVIDUAL = "individual",
3002
+ FAMILY = "family",
3003
+ ORGANIZATION = "organization"
2908
3004
  }
2909
- export declare enum LinkedAccountStatus {
2910
- PENDING = 1,
2911
- ACTIVE = 2,
2912
- PRE_PENDING = 3
3005
+ export declare enum MembershipTypeEnum {
3006
+ FIXED = "fix_membership",
3007
+ ROLLING = "rolling_membership"
2913
3008
  }
2914
- export declare enum AddonParentTypeEnum {
2915
- RESERVATION = "reservation",
2916
- SLOT = "slot"
3009
+ export declare enum CustomerTypeEnum {
3010
+ USER = "user",
3011
+ FAMILY = "family",
3012
+ ORGANIZATION = "organization"
2917
3013
  }
2918
- export declare enum EEmailStatus {
2919
- SENT = "sent",
2920
- OPENED = "opened",
2921
- PAID = "paid",
2922
- CANCELED = "canceled"
3014
+ export declare enum GroupStatusEnum {
3015
+ ACTIVE = 1,
3016
+ INACTIVE = 2,
3017
+ DRAFT = 3
2923
3018
  }
2924
- export declare enum PaymentSettingStatusEnum {
2925
- ENABLED = 1,
2926
- DISABLED_REDIRECT = 2,
2927
- DISABLED_INFO_ONLY = 3,
2928
- DISABLED_EMAIL = 4
3019
+ export declare enum FutureInstallmentStatusEnum {
3020
+ FUTURE = "future",
3021
+ SUCCEEDED = "succeeded",
3022
+ FAILED = "failed",
3023
+ CANCELED = "canceled"
2929
3024
  }
2930
- export declare enum NotifyMethodEnum {
2931
- EMAIL = "Email"
3025
+ export declare enum EntryStatusEnum {
3026
+ ENTERED = 1,
3027
+ NOT_ENTERED = 2,
3028
+ CANCELED = 3
2932
3029
  }
2933
- export interface IEntitlementTerms {
2934
- type: EntitlementTermsTypesEnum;
2935
- id?: number;
2936
- value?: string;
2937
- minValue?: string;
2938
- maxValue?: string;
3030
+ export declare enum PurchasedResourceStatusEnum {
3031
+ ACTIVE = 1,
3032
+ MOVED = 2,
3033
+ CANCELED = 3
2939
3034
  }
2940
- export interface IQuestionAnswerObject {
2941
- questionId: number;
2942
- value: string;
3035
+ export declare enum TeamCanJoinEnum {
3036
+ ANYONE = "anyone",
3037
+ BY_INVITE = "byInvite",
3038
+ CAPTAIN_APPROVAL = "captainApproval"
2943
3039
  }
2944
- export interface ILowestPriceForItem {
2945
- itemId: number;
2946
- itemType: ResourceNameTypeEnum;
2947
- groupId: number;
2948
- groupName?: string;
2949
- price: number;
2950
- overridesPrice: boolean;
3040
+ export declare enum TeamMemberStatusEnum {
3041
+ PENDING = 1,
3042
+ ACTIVE = 2,
3043
+ DECLINED = 3,
3044
+ SUSPENDED = 4,
3045
+ INACTIVE = 5,
3046
+ INVITED = 6
2951
3047
  }
2952
- export interface IResourcesAvailability {
2953
- resourceType: ResourceNameTypeEnum;
2954
- quantity: number;
2955
- resourcesIds: number[];
2956
- isPunchCard: boolean;
2957
- resources?: any[];
3048
+ export declare enum TeamMemberRoleEnum {
3049
+ NULL = 0,
3050
+ ADMIN = 1
2958
3051
  }
2959
- export interface IPackageResponse {
2960
- parentProduct: Product;
2961
- children: IChildProduct[];
3052
+ export declare enum DayOfWeekEnum {
3053
+ SUNDAY = 0,
3054
+ MONDAY = 1,
3055
+ TUESDAY = 2,
3056
+ WEDNESDAY = 3,
3057
+ THURSDAY = 4,
3058
+ FRIDAY = 5,
3059
+ SATURDAY = 6
2962
3060
  }
2963
- export interface IChildProduct {
2964
- product: Product;
2965
- relationType: PackageProductsRelationTypeEnum;
2966
- timePeriod?: AddonTimePeriodEnum;
3061
+ export declare enum ActionTypesEnum {
3062
+ CREATE = "create",
3063
+ READ = "read",
3064
+ UPDATE = "update",
3065
+ DELETE = "delete"
2967
3066
  }
2968
- export interface ISeasonAttendeeInfo {
2969
- applicationAnswers: Answer[];
2970
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2971
- invoices: Invoice[];
2972
- payments: Payment[];
2973
- products: Product[];
2974
- redeemNext: ProductsUsers;
3067
+ export declare enum ActionSourcePlatformEnum {
3068
+ ADMIN = "admin",
3069
+ BACKOFFICE = "backoffice",
3070
+ CONSUMER = "consumer"
2975
3071
  }
2976
- export interface ISeasonAttendeeListInfo {
2977
- userId: number;
2978
- userFirstName: string;
2979
- userLastName: string;
2980
- userGender: number;
2981
- userBirthDate: Date;
2982
- userProfilePicUrl: string;
2983
- customerId: number;
2984
- customerEmail: string;
2985
- paymentStatus: string;
2986
- productName: string;
2987
- punchCard: boolean;
3072
+ export declare enum RolesEnum {
3073
+ ORG_ADMIN = "organizationAdmin",
3074
+ BOND_ADMIN = "bondAdmin"
2988
3075
  }
2989
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2990
- segmentType: ResourceNameTypeEnum;
2991
- participantRegisteredDate?: string;
3076
+ export declare enum SeasonPoolStatusEnum {
3077
+ IN_POOL = 5,
3078
+ ASSIGNED = 1,
3079
+ QUIT = 2,
3080
+ SUSPENDED = 3,
3081
+ INACTIVE = 4
2992
3082
  }
2993
- export declare class EventAsSeasonSegment extends Event {
2994
- segmentType: ResourceNameTypeEnum;
2995
- participantRegisteredDate?: string;
3083
+ export declare enum AmenitiesEnum {
3084
+ HEAT = 1,
3085
+ AC = 2,
3086
+ WIFI = 3,
3087
+ RESTROOMS = 4,
3088
+ DRINKING_FOUNTAIN = 5,
3089
+ PARKING = 6,
3090
+ CONCESSIONS = 7,
3091
+ SHELTER = 8,
3092
+ PORTABLE_RESTROOMS = 9,
3093
+ LIGHTS = 10,
3094
+ LOCKER_ROOM = 11,
3095
+ PAID_PARKING = 12,
3096
+ ACCESSIBLE = 13
2996
3097
  }
2997
- export interface ITokenResonse {
2998
- token: string;
3098
+ export declare enum ResourceSubTypeEnum {
3099
+ COURT = "court",
3100
+ FIELD = "field",
3101
+ ROOM = "room",
3102
+ DIAMOND = "diamond",
3103
+ RINK = "rink",
3104
+ STUDIO = "studio",
3105
+ POOL = "pool",
3106
+ BATTING_CAGE = "batting cage",
3107
+ SHELTER = "shelter",
3108
+ GOLF_SIMULATOR = "golf simulator"
2999
3109
  }
3000
- export interface IStripeBondInvoices {
3001
- paidStripePaymentIntent: Stripe.PaymentIntent;
3002
- bondPaidPayment: Payment;
3003
- invoice?: Invoice;
3004
- customer?: Customer;
3110
+ export declare enum ResourceTypeEnum {
3111
+ SPACE = "space"
3005
3112
  }
3006
- export interface IPartialPaymentData {
3007
- purchasingUserId: number;
3008
- paymentData: PurchasePaymentDto;
3009
- amountToPay: number;
3113
+ export declare enum ResourceAgesEnum {
3114
+ ADULTS = "adults",
3115
+ CHILDREN = "children"
3010
3116
  }
3011
- export interface IPayment {
3012
- id: number;
3013
- total: number;
3014
- paymentMethod: PaymentMethodTypeEnum;
3015
- status: PaymentStatusEnum;
3016
- createdAt: Date;
3017
- invoices: number[];
3117
+ export declare enum SpacePropertiesEnum {
3118
+ OUTDOOR = "outdoor",
3119
+ INDOOR = "indoor"
3018
3120
  }
3019
- export interface IPaginationData<T> {
3020
- meta: {
3021
- totalItems: number;
3022
- itemsPerPage: number;
3023
- totalPages: number;
3024
- currentPage: number;
3025
- };
3026
- data: T[];
3121
+ export declare enum SurfacesEnum {
3122
+ GRASS = "grass",
3123
+ TURF = "turf",
3124
+ FIELD_TURF = "fieldTurf",
3125
+ ASTRO_TURF = "astroTurf",
3126
+ HARDWOOD = "hardwood",
3127
+ ASPHALT = "asphalt",
3128
+ SAND = "sand",
3129
+ ICE = "ice",
3130
+ SPORT_COURT = "sportCourt"
3027
3131
  }
3028
- export interface IPricesOfProductsResults {
3029
- productId: number;
3030
- userId: number;
3031
- price: number;
3032
- groupId?: number;
3033
- groupName?: string;
3034
- originalPrice?: number;
3035
- priceWithoutTax: number;
3036
- tax: number;
3037
- isTaxInclusive: boolean;
3132
+ export declare enum RegistrationConstraintPeriodTypeEnum {
3133
+ MINUTES = "minutes",
3134
+ DAYS = "days"
3038
3135
  }
3039
- export interface IPaymentMethodToFundLeft {
3040
- paymentType: PaymentMethodTypeEnum;
3041
- paymentMethodId: string;
3042
- fundLeft: number;
3043
- ccLast4?: string;
3044
- ccBrand?: string;
3136
+ export declare enum RegistrationWindowStatusEnum {
3137
+ NOT_OPEN_YET = "not_opened_yet",
3138
+ OPEN = "open",
3139
+ CLOSED = "closed"
3045
3140
  }
3046
- export interface IVariantsAndTitle {
3047
- title: VariantTitle;
3048
- variants: Variant[];
3141
+ export declare enum RegistrationValidationStatusEnum {
3142
+ FULL = "full",
3143
+ ALREADY_REGISTERED = "registered",
3144
+ AVAILABLE = "available",
3145
+ NOT_OPEN_YET = "not opened",
3146
+ ALREADY_CLOSED = "closed",
3147
+ NO_PRODUCT_FOUND = "no-product-found"
3049
3148
  }
3050
- export interface IProgramSeasonActivityTimes {
3051
- dayOfWeek: number;
3052
- open: string;
3053
- close: string;
3149
+ export declare enum DiscountMethodsEnum {
3150
+ PERCENT = "percent",
3151
+ AMOUNT = "amount"
3054
3152
  }
3055
- export interface IProgramSeasonActivityTimesAsDates {
3056
- date: string;
3057
- startTime: string;
3058
- endTime: string;
3153
+ export declare enum UserAuthorizationsTypeEnum {
3154
+ ORGANIZATION = "organization"
3059
3155
  }
3060
- export interface IBlockedDates {
3061
- name: string;
3062
- startDate: Date;
3063
- endDate: Date;
3156
+ export declare enum OrganizationLocaleDateEnum {
3157
+ USA = "USA"
3064
3158
  }
3065
- export interface ISingleMemberForRenewal {
3066
- member_id: number;
3067
- member_membershipId: number;
3068
- member_userId: number;
3069
- member_nextPaymentMethodId?: string;
3070
- member_nextPaymentType?: PaymentMethodTypeEnum;
3071
- member_answerTitleIds?: number[];
3072
- member_organizationId: number;
3073
- product_productPrice: number;
3074
- product_productId: number;
3075
- invoice_payingUserId: number;
3076
- invoice_paymentMethodId: string;
3077
- invoice_paymentType: PaymentMethodTypeEnum;
3078
- endDate: Date;
3079
- membership_name: string;
3080
- user_firstName: string;
3081
- user_lastName: string;
3082
- user_email: string;
3159
+ export declare enum DateTimeFormatsEnum {
3160
+ API_DATE = "YYYY/MM/DD",
3161
+ API_TIME = "HH:mm:ss",
3162
+ DB_DATE = "YYYY-MM-DD"
3083
3163
  }
3084
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3085
- package_parentProductId: number;
3086
- product2_productPrice: number;
3087
- familyid: number;
3088
- invoice_id: number;
3164
+ export declare enum SlotTypeEnum {
3165
+ EXTERNAL = "external",
3166
+ INTERNAL = "internal",
3167
+ MAINTENANCE = "maintenance",
3168
+ CUSTOM = "custom"
3089
3169
  }
3090
- export interface IResourceRegistrationData {
3091
- id: number;
3092
- resourceType: ResourceNameTypeEnum;
3093
- openNumDays?: number;
3094
- openNumMinutes?: number;
3095
- openTime?: string;
3096
- closeNumDays?: number;
3097
- closeNumMinutes?: number;
3098
- closeTime?: string;
3099
- registrationWindowStatus?: RegistrationWindowStatusEnum;
3170
+ export declare enum PlatformsEnum {
3171
+ CONSUMER = "consumer",
3172
+ CONSUMER_CHECKOUT = "consumer_checkout",
3173
+ BO = "backoffice",
3174
+ MOBILE = "mobile",
3175
+ CRON = "cron"
3100
3176
  }
3101
- export interface IResourceDataForConstraintsCalc {
3102
- id: number;
3103
- startDate: string;
3104
- startTime: string;
3177
+ export declare enum ShiftStatusEnum {
3178
+ OPEN = "open",
3179
+ CLOSED = "closed",
3180
+ MANAGMENT_CLOSED = "closed_by_manager",
3181
+ RECONCILED = "reconciled"
3105
3182
  }
3106
- export interface IRegistrationConstraintsSetting {
3107
- numDays?: number;
3108
- numMinutes?: number;
3183
+ export declare enum EventStatusEnum {
3184
+ OPEN = 1,
3185
+ DRAFT = 2,
3186
+ FULL = 3,
3187
+ CANCELLED = 4,
3188
+ CLOSED = 5,
3189
+ DELETED = 6
3109
3190
  }
3110
- export interface IAttendeeDataToNotify {
3111
- firstName: string;
3112
- lastName: string;
3113
- email: string;
3114
- sessionName: string;
3115
- parentSessionName?: string;
3116
- organizationName: string;
3117
- programName: string;
3191
+ export declare enum ReservationTypeEnum {
3192
+ RENTAL = "rental",
3193
+ PROGRAM = "program",
3194
+ MAINTENANCE = "maintenance",
3195
+ CUSTOM = "custom",
3196
+ INTERNAL = "internal"
3118
3197
  }
3119
- export interface IEventInSchedule {
3120
- eventId: number;
3121
- eventName: string;
3122
- eventStartDate: string;
3123
- eventEndDate: string;
3124
- eventStartTime: string;
3125
- eventEndTime: string;
3126
- programId: number;
3127
- programName: string;
3128
- programType: ProgramTypesEnum;
3129
- sessionId: number;
3130
- sessionName: string;
3131
- sports: number;
3132
- spaces: {
3133
- spaceId: number;
3134
- spaceName: string;
3135
- }[];
3136
- status?: RegistrationValidationStatusEnum;
3198
+ export declare enum SlotDurationTypeEnum {
3199
+ DATES = "dates",
3200
+ ALL_DAY = "all day",
3201
+ DURATION = "duration"
3137
3202
  }
3138
- export interface ISlotInSchedule {
3139
- facilityId: number;
3140
- facilityName: string;
3141
- spaces: ISpaceWithSlots[];
3203
+ export declare enum DurationUnitTypesEnum {
3204
+ MINUTES = "minutes",
3205
+ HOURS = "hours"
3142
3206
  }
3143
- export interface ISpaceWithSlots {
3144
- id: number;
3145
- name: string;
3146
- slots: ISlotReservationData[];
3207
+ export declare enum FrequencyEnum {
3208
+ NONE = "none",
3209
+ WEEKLY = "weekly",
3210
+ DAILY = "daily",
3211
+ MONTHLY = "monthly",
3212
+ YEARLY = "yearly"
3147
3213
  }
3148
- export interface ISlotReservationData {
3149
- reservationId: number;
3150
- reservationName: string;
3151
- date: string;
3152
- startTime: string;
3153
- endTime: string;
3154
- notes: string;
3155
- spaceId: number;
3156
- isRental: boolean;
3157
- slotType: SlotTypeEnum;
3158
- slotId: number;
3159
- eventId: number;
3160
- isPrivate: boolean;
3214
+ export declare enum MaintenanceTimingEnum {
3215
+ BEFORE = 1,
3216
+ AFTER = 2,
3217
+ AT_THE_BEGINING = 3,
3218
+ AT_THE_END = 4
3161
3219
  }
3162
- export interface IRawEventInSchedule extends IEventInSchedule {
3163
- parentSessionId: number;
3164
- parentSessionName: string;
3165
- eventTimezone: string;
3166
- maxParticipants: number;
3167
- maxMaleParticipants: number;
3168
- maxFemaleParticipants: number;
3169
- isPunchCard: boolean;
3220
+ export declare enum CreatorTypeEnum {
3221
+ SPACE = "space",
3222
+ PROGRAM_SEASON = "program_season",
3223
+ SEASON = "season"
3170
3224
  }
3171
- export interface IBasicSpaceAndSlotCreator {
3172
- id: number;
3173
- name: string;
3174
- bookingCreatorId: number;
3225
+ export declare enum UpdatePricesTypeEnum {
3226
+ INDIVIDUAL = "indvidual",
3227
+ CATEGORY = "category",
3228
+ GLOBAL = "global"
3175
3229
  }
3176
- export interface IRawSlotInSchedule {
3177
- startDate: string;
3178
- endDate: string;
3179
- startTime: string;
3180
- endTime: string;
3181
- reservationId: number;
3182
- eventTitle: string;
3183
- publicNotes: string;
3184
- spaceId: number;
3185
- creatorType: ResourceNameTypeEnum;
3186
- slotType: SlotTypeEnum;
3187
- slotId: number;
3188
- eventId: number;
3189
- isPrivate: boolean;
3230
+ export declare enum BondDayOfWeekEnum {
3231
+ MONDAY = 2,
3232
+ TUESDAY = 3,
3233
+ WEDNESDAY = 4,
3234
+ THURSDAY = 5,
3235
+ FRIDAY = 6,
3236
+ SATURDAY = 7,
3237
+ SUNDAY = 8
3190
3238
  }
3191
- export interface IPurchasedResourcesRaw {
3192
- purchasedId: number;
3193
- purchasedProductUserId: number;
3194
- purchasedResourceId: number;
3195
- purchasedResourceType: ResourceNameTypeEnum;
3196
- purchasedStatus: PurchasedResourceStatusEnum;
3197
- pUserId: number;
3198
- pUserPaymentStatus: PaymentStatusEnum;
3199
- pUserProductId: number;
3200
- pUserProductName: string;
3201
- pUserProductPrice: number;
3202
- pUserProductPriceCurrency: string;
3203
- pUserProductQuantity: number;
3204
- pUserProductQuantityLeft: number;
3205
- pUserUserId: number;
3239
+ export declare enum ReservationMigrationStatusEnum {
3240
+ NEW = "new",
3241
+ NO = "no",
3242
+ YES = "yes"
3206
3243
  }
3207
- export interface IUsersPasses {
3208
- userId: number;
3209
- userFirstName: string;
3210
- userLastName: string;
3211
- organizationId: number;
3212
- programId: number;
3213
- programName: string;
3214
- sessionId: number;
3215
- sessionName: string;
3216
- productId: number;
3217
- productName: string;
3218
- productUserId: number;
3219
- purchaseDate: Date;
3220
- passesLeft: number;
3244
+ export declare enum ProductPackageLevelEnum {
3245
+ HOUR = "hour",
3246
+ SLOT = "slot",
3247
+ RESERVATION = "reservation"
3221
3248
  }
3222
- export interface ISessionsLandingPage {
3223
- sessionId: number;
3224
- name: string;
3225
- startDate: Date;
3226
- endDate: Date;
3227
- registrationStartDate: Date;
3228
- registrationEndDate: Date;
3229
- sport: SportsEnum;
3230
- minAge: string;
3231
- maxAge: string;
3232
- maxParticipants?: number;
3233
- gender: GenderEnum;
3234
- activityTimes: ActivityTimes[];
3235
- earlyRegistrationStartDate?: Date;
3236
- earlyRegistrationEndDate?: Date;
3237
- lateRegistrationStartDate?: Date;
3238
- lateRegistrationEndDate?: Date;
3239
- attendeeCount?: number;
3240
- segmentsOrEvents: 'segment' | 'event';
3249
+ export declare enum CancellationStatusEnum {
3250
+ IMMEDIATE = "immediate",
3251
+ AUTO_RENEWAL = "auto_renewal"
3241
3252
  }
3242
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3243
- hasRequiredMembership: boolean;
3244
- hasEntitledPricing: boolean;
3245
- lowestPrice?: number;
3246
- products?: ISessionLandingPageProduct[];
3253
+ export declare enum SeasonScheduleStatusEnum {
3254
+ DRAFT = 0,
3255
+ PUBLISHED = 1
3247
3256
  }
3248
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3249
- hasRequiredMembership: boolean;
3250
- hasEntitledPricing: boolean;
3251
- products?: ISessionLandingPageProduct[];
3252
- segments?: Event[] | ProgramSeason[];
3253
- programName: string;
3254
- programId: number;
3255
- levelOfPlay: LevelOfPlayEnum[];
3256
- registrationConstraints: IResourceRegistrationData[];
3257
+ export declare enum FinancialStepEnum {
3258
+ VOID = "void",
3259
+ REFUND = "refund",
3260
+ NONE = "none",
3261
+ REFUND_AND_VOID = "refund-and-void",
3262
+ APPEND = "append"
3257
3263
  }
3258
- export interface ISlimAddons {
3259
- addons?: {
3260
- id: number;
3261
- timePeriod: AddonTimePeriodEnum;
3262
- name: string;
3263
- productType?: ProductTypesEnum;
3264
- productSubType?: string;
3265
- }[];
3264
+ export declare enum StripeAccountTypesEnum {
3265
+ STRIPE = "stripe",
3266
+ STRIPE_CUSTOM = "stripe:account:custom",
3267
+ STRIPE_CUSTOMER = "stripe:customer"
3266
3268
  }
3267
- export interface ISessionLandingPageProduct extends ISlimAddons {
3268
- id: number;
3269
- name: string;
3270
- startDate?: Date;
3271
- endDate?: Date;
3272
- downpayment?: number;
3273
- description?: string;
3274
- prices: Price[];
3275
- productSubType?: ProductSubTypesEnum;
3276
- punchCard: boolean;
3277
- isAddon: boolean;
3278
- defaultPriceId?: number;
3269
+ export declare enum LinkedAccountStatus {
3270
+ PENDING = 1,
3271
+ ACTIVE = 2,
3272
+ PRE_PENDING = 3
3279
3273
  }
3280
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3281
- destinationId?: string;
3282
- stripeCustomerId?: string;
3283
- fee?: number;
3274
+ export declare enum AddonParentTypeEnum {
3275
+ RESERVATION = "reservation",
3276
+ SLOT = "slot"
3284
3277
  }
3285
- export interface IReservationCreatorData {
3286
- type: ResourceNameTypeEnum;
3287
- id: number;
3288
- organizationId: number;
3289
- startDate: string;
3290
- endDate: string;
3291
- sportId: number;
3278
+ export declare enum EEmailStatus {
3279
+ SENT = "sent",
3280
+ OPENED = "opened",
3281
+ PAID = "paid",
3282
+ CANCELED = "canceled"
3283
+ }
3284
+ export declare enum PaymentSettingStatusEnum {
3285
+ ENABLED = 1,
3286
+ DISABLED_REDIRECT = 2,
3287
+ DISABLED_INFO_ONLY = 3,
3288
+ DISABLED_EMAIL = 4
3289
+ }
3290
+ export declare enum NotifyMethodEnum {
3291
+ EMAIL = "Email"
3292
3292
  }
3293
3293
  export declare class ColumnNumericTransformer {
3294
3294
  to(data: number): number;
3295
3295
  from(data: string): number;
3296
3296
  }
3297
3297
  export declare function convertToNumber(data: string): number;
3298
- export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3299
- name?: string;
3300
- genderStr?: string;
3301
- parentID?: string;
3302
- partnerID?: string;
3303
- membershipName?: string;
3304
- membershipExpDate?: string;
3305
- membershipCreationDate?: string;
3306
- bondMembershipID?: number;
3307
- }
3308
- export declare class AddFamilyDto {
3309
- parents: AddImportedCustomerDto[];
3310
- children: AddImportedCustomerDto[];
3311
- }
3312
3298
  export declare enum ImportPaymentTypeEnum {
3313
3299
  CREDIT_CARD = "card",
3314
3300
  ACH = "ach",
@@ -3436,41 +3422,20 @@ export declare class RoundEvents extends BaseEntity {
3436
3422
  createdAt: Date;
3437
3423
  updatedAt: Date;
3438
3424
  }
3439
- export declare class SeasonRounds extends BondBaseEntity {
3440
- seasonId: number;
3441
- ordinal?: number;
3442
- divisionId?: number;
3425
+ export declare class Lock extends BondBaseEntity {
3443
3426
  name: string;
3427
+ locked?: Date;
3444
3428
  }
3445
3429
  export declare class TeamEvents extends BondBaseEntity {
3446
3430
  teamId: number | null;
3447
3431
  eventId: number | null;
3448
3432
  status: number | null;
3449
3433
  }
3450
- export declare class Lock extends BondBaseEntity {
3434
+ export declare class SeasonRounds extends BondBaseEntity {
3435
+ seasonId: number;
3436
+ ordinal?: number;
3437
+ divisionId?: number;
3451
3438
  name: string;
3452
- locked?: Date;
3453
- }
3454
- export interface ValidatedMonthAndDay {
3455
- valid: boolean;
3456
- month?: number;
3457
- day?: number;
3458
- }
3459
- export interface ValidationReason {
3460
- valid: boolean;
3461
- reason?: string;
3462
- }
3463
- export interface PaymentStatus {
3464
- parentId: number;
3465
- paymentStatus: ReservationPaymentStatusEnum;
3466
- approvalStatus?: ReservationStatusEnum;
3467
- id?: number;
3468
- }
3469
- export interface PaymentStatusesDict {
3470
- [id: number]: PaymentStatus[];
3471
- }
3472
- export interface PaymentStatusDict {
3473
- [id: number]: ReservationPaymentStatusEnum;
3474
3439
  }
3475
3440
  export declare class CreateMonitorConfigDto {
3476
3441
  facilityId: number;
@@ -3478,11 +3443,6 @@ export declare class CreateMonitorConfigDto {
3478
3443
  code: string;
3479
3444
  config: any;
3480
3445
  }
3481
- export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3482
- facilityId: number;
3483
- code: string;
3484
- config?: any;
3485
- }
3486
3446
  export declare class NotifyTracker extends BondBaseEntity {
3487
3447
  userId: number;
3488
3448
  organizationId: number;
@@ -3490,6 +3450,11 @@ export declare class NotifyTracker extends BondBaseEntity {
3490
3450
  notfiyMethodtype: NotifyMethodEnum;
3491
3451
  destination: string;
3492
3452
  }
3453
+ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3454
+ facilityId: number;
3455
+ code: string;
3456
+ config?: any;
3457
+ }
3493
3458
  export declare class ByOrganizationIdDto {
3494
3459
  organizationId: number;
3495
3460
  }
@@ -3587,6 +3552,27 @@ export interface Duration {
3587
3552
  startDate: string;
3588
3553
  endDate: string;
3589
3554
  }
3555
+ export interface ValidatedMonthAndDay {
3556
+ valid: boolean;
3557
+ month?: number;
3558
+ day?: number;
3559
+ }
3560
+ export interface ValidationReason {
3561
+ valid: boolean;
3562
+ reason?: string;
3563
+ }
3564
+ export interface PaymentStatus {
3565
+ parentId: number;
3566
+ paymentStatus: ReservationPaymentStatusEnum;
3567
+ approvalStatus?: ReservationStatusEnum;
3568
+ id?: number;
3569
+ }
3570
+ export interface PaymentStatusesDict {
3571
+ [id: number]: PaymentStatus[];
3572
+ }
3573
+ export interface PaymentStatusDict {
3574
+ [id: number]: ReservationPaymentStatusEnum;
3575
+ }
3590
3576
  export declare class CustomerIdDto {
3591
3577
  customerId: number;
3592
3578
  }
@@ -3735,6 +3721,16 @@ export declare class VoidLineItemDto {
3735
3721
  isEdit?: boolean;
3736
3722
  amount?: number;
3737
3723
  }
3724
+ export interface RefundResult extends PaymentsResults {
3725
+ successfulLineItems: RefundLineItemAmountDto[];
3726
+ failedLineItems: RefundLineItemAmountDto[];
3727
+ invoice?: Invoice;
3728
+ }
3729
+ export interface RefundResultWithLineItemsDict extends PaymentsResults {
3730
+ successfulLineItems: Map<number, RefundLineItemAmountDto>;
3731
+ failedLineItems: Map<number, RefundLineItemAmountDto>;
3732
+ totalAmountProcessed: number;
3733
+ }
3738
3734
  export interface PaymentResult {
3739
3735
  paymentMethodId: string;
3740
3736
  paymentMethodType: PaymentMethodTypeEnum;
@@ -3760,34 +3756,6 @@ export interface ExtendedLineItems {
3760
3756
  products: LineItems[];
3761
3757
  events: LineItems[];
3762
3758
  }
3763
- export interface RefundResult extends PaymentsResults {
3764
- successfulLineItems: RefundLineItemAmountDto[];
3765
- failedLineItems: RefundLineItemAmountDto[];
3766
- invoice?: Invoice;
3767
- }
3768
- export interface RefundResultWithLineItemsDict extends PaymentsResults {
3769
- successfulLineItems: Map<number, RefundLineItemAmountDto>;
3770
- failedLineItems: Map<number, RefundLineItemAmountDto>;
3771
- totalAmountProcessed: number;
3772
- }
3773
- export declare class AddonDto extends ProductPricesDto {
3774
- id?: number;
3775
- }
3776
- export declare class AddAddonsDto {
3777
- addons: AddonDto[];
3778
- }
3779
- export declare class EditAddonsDto {
3780
- addons: EditAddonDto[];
3781
- }
3782
- export declare class EditReservationAddonsDto extends EditAddonsDto {
3783
- refundMeta?: EditItemsRefundMetaDto;
3784
- }
3785
- export declare class EditAddonDto {
3786
- id: number;
3787
- quantity: number;
3788
- totalPrice: number;
3789
- unitPrice?: number;
3790
- }
3791
3759
  export declare class InvoiceDto {
3792
3760
  invoiceId?: string | null;
3793
3761
  organizationId: number;
@@ -3870,6 +3838,24 @@ export declare class PurchasedResourceDto {
3870
3838
  endDate?: string;
3871
3839
  endTime?: string;
3872
3840
  }
3841
+ export declare class AddonDto extends ProductPricesDto {
3842
+ id?: number;
3843
+ }
3844
+ export declare class AddAddonsDto {
3845
+ addons: AddonDto[];
3846
+ }
3847
+ export declare class EditAddonsDto {
3848
+ addons: EditAddonDto[];
3849
+ }
3850
+ export declare class EditReservationAddonsDto extends EditAddonsDto {
3851
+ refundMeta?: EditItemsRefundMetaDto;
3852
+ }
3853
+ export declare class EditAddonDto {
3854
+ id: number;
3855
+ quantity: number;
3856
+ totalPrice: number;
3857
+ unitPrice?: number;
3858
+ }
3873
3859
  export declare class ReservationDto {
3874
3860
  id?: number;
3875
3861
  organizationId?: number;
@@ -4557,9 +4543,19 @@ export declare class ChangeRolePermissionsDto {
4557
4543
  export declare class CreateRoleDto {
4558
4544
  name: string;
4559
4545
  }
4560
- export declare class Permission extends BondBaseEntity {
4561
- name: string;
4562
- deletedAt?: Date;
4546
+ export declare class AddImportedCustomerDto extends AddEditCustomerDto {
4547
+ name?: string;
4548
+ genderStr?: string;
4549
+ parentID?: string;
4550
+ partnerID?: string;
4551
+ membershipName?: string;
4552
+ membershipExpDate?: string;
4553
+ membershipCreationDate?: string;
4554
+ bondMembershipID?: number;
4555
+ }
4556
+ export declare class AddFamilyDto {
4557
+ parents: AddImportedCustomerDto[];
4558
+ children: AddImportedCustomerDto[];
4563
4559
  }
4564
4560
  export declare class Role extends OrganizationConnectionBaseEntity {
4565
4561
  name: string;
@@ -4567,6 +4563,10 @@ export declare class Role extends OrganizationConnectionBaseEntity {
4567
4563
  permissions: Permission[];
4568
4564
  usersRoles: UserRole[];
4569
4565
  }
4566
+ export declare class Permission extends BondBaseEntity {
4567
+ name: string;
4568
+ deletedAt?: Date;
4569
+ }
4570
4570
  export declare class UserRole extends OrganizationConnectionBaseEntity {
4571
4571
  deletedAt?: Date;
4572
4572
  userId: number;