@bondsports/types 0.0.123 → 0.0.125

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
@@ -2,6 +2,20 @@ import { BaseEntity } from 'typeorm';
2
2
  import { Stripe } from 'stripe';
3
3
  import moment from 'moment';
4
4
  export { TypesProvider } from './provider';
5
+ export declare class BasicActivityTimesDto {
6
+ dayOfWeek: number;
7
+ close: string;
8
+ open: string;
9
+ availabilityStartDate?: string;
10
+ availabilityEndDate?: string;
11
+ }
12
+ export declare class FindBookingTypeSettingDto {
13
+ organizationId: number;
14
+ facilityId: number;
15
+ spaceId: number;
16
+ bookingDate: string;
17
+ bookingTime: string;
18
+ }
5
19
  export declare class QuestionAnswersDto {
6
20
  questionId: number;
7
21
  value: any;
@@ -19,13 +33,6 @@ export declare enum EConfigurationKeys {
19
33
  export declare enum EFailedPaymentReasons {
20
34
  CARD_BLOCKED = "card_blocked_by_bond"
21
35
  }
22
- export declare class FindBookingTypeSettingDto {
23
- organizationId: number;
24
- facilityId: number;
25
- spaceId: number;
26
- bookingDate: string;
27
- bookingTime: string;
28
- }
29
36
  export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
30
37
  membershipId: number;
31
38
  }
@@ -87,13 +94,6 @@ export declare class AddEditCustomerDto {
87
94
  emergencyContactName?: string;
88
95
  emergencyContactPhone?: string;
89
96
  }
90
- export declare class BasicActivityTimesDto {
91
- dayOfWeek: number;
92
- close: string;
93
- open: string;
94
- availabilityStartDate?: string;
95
- availabilityEndDate?: string;
96
- }
97
97
  export declare class FindEventByIdDto {
98
98
  eventId: number;
99
99
  organizationId: number;
@@ -237,6 +237,38 @@ export declare class UpdateFacilityAmenitiesDto {
237
237
  export declare class FindFacilitiesOptionsDto extends PaginationQuery {
238
238
  nameSearch?: string;
239
239
  }
240
+ export declare class FindFamilyAccountsDto {
241
+ userId: number;
242
+ }
243
+ export declare class FindFamilyAccountsCustomerDto {
244
+ customerId: number;
245
+ organizationId: number;
246
+ }
247
+ export declare class FindUsersInFamilyAccountDto {
248
+ familyAccountId: number;
249
+ }
250
+ export declare class CreateFamilyAccountDto {
251
+ familyName: string;
252
+ userId: number;
253
+ }
254
+ export declare class UpdateFamilyAccountNameDto {
255
+ familyName: string;
256
+ familyAccountId: number;
257
+ }
258
+ export declare class AddUserToFamilyAccountDto {
259
+ familyAccountId: number;
260
+ isUserAdmin: boolean;
261
+ firstName: string;
262
+ lastName: string;
263
+ gender: GenderEnum;
264
+ birthDate: string;
265
+ sports?: number[];
266
+ email?: string;
267
+ }
268
+ export declare class RemoveUserFromFamilyAccountDto {
269
+ userId: number;
270
+ familyAccountId: number;
271
+ }
240
272
  export declare class FindOneParams {
241
273
  id: number;
242
274
  }
@@ -249,6 +281,16 @@ export declare class PaginationRangeQuery {
249
281
  endPage: number;
250
282
  itemsPerPage: number;
251
283
  }
284
+ export declare class FindGlCodeByOrganizationIdDto {
285
+ organizationId: number;
286
+ }
287
+ export declare class GetGlCodeDto {
288
+ id: number;
289
+ organizationId: number;
290
+ code: string;
291
+ createdAt: Date;
292
+ updatedAt: Date;
293
+ }
252
294
  export declare class FindByProgramSeasonIdDto {
253
295
  seasonId: number;
254
296
  }
@@ -322,48 +364,6 @@ export declare class MoveTeamOrMemberDto implements IMoveSeason {
322
364
  export declare class MoveTeamOrMembersByCsvDTO {
323
365
  fileName: string;
324
366
  }
325
- export declare class FindFamilyAccountsDto {
326
- userId: number;
327
- }
328
- export declare class FindFamilyAccountsCustomerDto {
329
- customerId: number;
330
- organizationId: number;
331
- }
332
- export declare class FindUsersInFamilyAccountDto {
333
- familyAccountId: number;
334
- }
335
- export declare class CreateFamilyAccountDto {
336
- familyName: string;
337
- userId: number;
338
- }
339
- export declare class UpdateFamilyAccountNameDto {
340
- familyName: string;
341
- familyAccountId: number;
342
- }
343
- export declare class AddUserToFamilyAccountDto {
344
- familyAccountId: number;
345
- isUserAdmin: boolean;
346
- firstName: string;
347
- lastName: string;
348
- gender: GenderEnum;
349
- birthDate: string;
350
- sports?: number[];
351
- email?: string;
352
- }
353
- export declare class RemoveUserFromFamilyAccountDto {
354
- userId: number;
355
- familyAccountId: number;
356
- }
357
- export declare class FindGlCodeByOrganizationIdDto {
358
- organizationId: number;
359
- }
360
- export declare class GetGlCodeDto {
361
- id: number;
362
- organizationId: number;
363
- code: string;
364
- createdAt: Date;
365
- updatedAt: Date;
366
- }
367
367
  export declare class CreateMembershipDto {
368
368
  organizationId: number;
369
369
  name: string;
@@ -683,6 +683,24 @@ export declare class createResourceDto {
683
683
  export declare class archiveDto {
684
684
  isArchive: boolean;
685
685
  }
686
+ export declare class CreateUpdateVariantsDto {
687
+ organizationId: number;
688
+ parentProductId: number;
689
+ variantTitles: VariantTitleDto[];
690
+ variants: VariantDto[];
691
+ }
692
+ export declare class VariantTitleDto {
693
+ titleName: string;
694
+ titleId: number;
695
+ }
696
+ export declare class VariantDto {
697
+ name: string;
698
+ price: number;
699
+ variantId: number;
700
+ currency: CurrencyEnum;
701
+ startDate: Date;
702
+ endDate: Date;
703
+ }
686
704
  export declare class FindProgramSeasonsByProgramIdDto {
687
705
  programId: number;
688
706
  }
@@ -914,24 +932,6 @@ export declare class ProgramHighlightDto {
914
932
  type: ProgramHighlightTypeEnum;
915
933
  title: string;
916
934
  }
917
- export declare class CreateUpdateVariantsDto {
918
- organizationId: number;
919
- parentProductId: number;
920
- variantTitles: VariantTitleDto[];
921
- variants: VariantDto[];
922
- }
923
- export declare class VariantTitleDto {
924
- titleName: string;
925
- titleId: number;
926
- }
927
- export declare class VariantDto {
928
- name: string;
929
- price: number;
930
- variantId: number;
931
- currency: CurrencyEnum;
932
- startDate: Date;
933
- endDate: Date;
934
- }
935
935
  export declare class PurchasePaymentDto {
936
936
  token: string;
937
937
  type: PaymentMethodTypeEnum;
@@ -1189,11 +1189,6 @@ export declare class BookedSessions extends BondBaseEntity {
1189
1189
  publicNotes?: string;
1190
1190
  slotType?: SlotTypeEnum;
1191
1191
  }
1192
- export declare class Configuration extends BondBaseEntity {
1193
- area: string;
1194
- key: string;
1195
- value: string;
1196
- }
1197
1192
  export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity {
1198
1193
  parentId: number;
1199
1194
  parentType: ResourceNameTypeEnum;
@@ -1204,6 +1199,11 @@ export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity
1204
1199
  endTimeInDay: string;
1205
1200
  directBookingFor: DirectBookingTypesEnum;
1206
1201
  }
1202
+ export declare class Configuration extends BondBaseEntity {
1203
+ area: string;
1204
+ key: string;
1205
+ value: string;
1206
+ }
1207
1207
  export declare class Connection extends BondBaseEntity {
1208
1208
  connType: number | null;
1209
1209
  from: number | null;
@@ -1270,14 +1270,6 @@ export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1270
1270
  pinToTop?: boolean;
1271
1271
  customer: Customer;
1272
1272
  }
1273
- export declare class Division extends BondBaseEntity {
1274
- name: string;
1275
- ordinal?: number;
1276
- programSeasonId: number;
1277
- color: string;
1278
- isDefault: boolean;
1279
- groups: Group[];
1280
- }
1281
1273
  export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1282
1274
  customerId: number;
1283
1275
  name: string | null;
@@ -1306,6 +1298,14 @@ export declare class EventAttendee extends BondBaseEntity {
1306
1298
  event: Event;
1307
1299
  purchasedResource: PurchasedResource;
1308
1300
  }
1301
+ export declare class Division extends BondBaseEntity {
1302
+ name: string;
1303
+ ordinal?: number;
1304
+ programSeasonId: number;
1305
+ color: string;
1306
+ isDefault: boolean;
1307
+ groups: Group[];
1308
+ }
1309
1309
  export declare class Event extends OrganizationConnectionBaseEntity {
1310
1310
  constructor();
1311
1311
  defineCalculatedDateTimeProps(): void;
@@ -1496,32 +1496,6 @@ export declare class InvoiceToPayment extends BondBaseEntity {
1496
1496
  paidAmount?: number;
1497
1497
  currency: CurrencyEnum;
1498
1498
  }
1499
- export declare class League extends OrganizationConnectionBaseEntity {
1500
- name: string | null;
1501
- description: string | null;
1502
- allowBookingRequest: boolean | null;
1503
- addressName: string | null;
1504
- shortDescription: string | null;
1505
- waiverDoc: string | null;
1506
- bookingStateStatus: number | null;
1507
- timezone: string | null;
1508
- shortUrl: string | null;
1509
- leagueType: string | null;
1510
- addressId: number | null;
1511
- sportConfigData: any | null;
1512
- creatorId: number | null;
1513
- creatorType: string | null;
1514
- userCreatorId: number | null;
1515
- ownerId: number | null;
1516
- sports: number[] | null;
1517
- mainMediaId: number | null;
1518
- publishedDate: Date | null;
1519
- isPublished: boolean | null;
1520
- isVerified: boolean | null;
1521
- questionnaireId: number | null;
1522
- logo?: Media;
1523
- seasons: LeagueSeason[];
1524
- }
1525
1499
  export declare class LeagueSeason extends BondBaseEntity {
1526
1500
  leagueId: number | null;
1527
1501
  name: string | null;
@@ -1566,16 +1540,6 @@ export declare class LeagueSeasonRelations {
1566
1540
  league?: boolean;
1567
1541
  facilities?: boolean;
1568
1542
  }
1569
- export declare class LineItemHistory extends BondBaseEntity {
1570
- invoiceId: number;
1571
- paymentId: number;
1572
- lineItemId: number;
1573
- paidAmount: number;
1574
- unitPaidAmount: number;
1575
- currency: CurrencyEnum;
1576
- payment: Payment;
1577
- lineItem: LineItems;
1578
- }
1579
1543
  export declare class LineItems extends BondBaseEntity {
1580
1544
  constructor();
1581
1545
  defineIsReverted(): void;
@@ -1631,6 +1595,42 @@ export declare class LineItems extends BondBaseEntity {
1631
1595
  displayUnitPrice?: number;
1632
1596
  displayQuantity?: number;
1633
1597
  }
1598
+ export declare class LineItemHistory extends BondBaseEntity {
1599
+ invoiceId: number;
1600
+ paymentId: number;
1601
+ lineItemId: number;
1602
+ paidAmount: number;
1603
+ unitPaidAmount: number;
1604
+ currency: CurrencyEnum;
1605
+ payment: Payment;
1606
+ lineItem: LineItems;
1607
+ }
1608
+ export declare class League extends OrganizationConnectionBaseEntity {
1609
+ name: string | null;
1610
+ description: string | null;
1611
+ allowBookingRequest: boolean | null;
1612
+ addressName: string | null;
1613
+ shortDescription: string | null;
1614
+ waiverDoc: string | null;
1615
+ bookingStateStatus: number | null;
1616
+ timezone: string | null;
1617
+ shortUrl: string | null;
1618
+ leagueType: string | null;
1619
+ addressId: number | null;
1620
+ sportConfigData: any | null;
1621
+ creatorId: number | null;
1622
+ creatorType: string | null;
1623
+ userCreatorId: number | null;
1624
+ ownerId: number | null;
1625
+ sports: number[] | null;
1626
+ mainMediaId: number | null;
1627
+ publishedDate: Date | null;
1628
+ isPublished: boolean | null;
1629
+ isVerified: boolean | null;
1630
+ questionnaireId: number | null;
1631
+ logo?: Media;
1632
+ seasons: LeagueSeason[];
1633
+ }
1634
1634
  export declare class LinkedAccounts extends BondBaseEntity {
1635
1635
  id: number;
1636
1636
  provider: string;
@@ -1647,25 +1647,6 @@ export declare class LinkedAccounts extends BondBaseEntity {
1647
1647
  user: User;
1648
1648
  userId: number | null;
1649
1649
  }
1650
- export declare class Media extends BondBaseEntity {
1651
- url: string;
1652
- name: string | null;
1653
- title: string | null;
1654
- mediaKey: string | null;
1655
- description: string | null;
1656
- provider: string | null;
1657
- mediaType: number;
1658
- fileType: string | null;
1659
- isDefault: boolean | null;
1660
- creatorId: number | null;
1661
- creatorType: string | null;
1662
- userCreatorId: number | null;
1663
- ownerId: number | null;
1664
- createdBy: number | null;
1665
- users: User[];
1666
- programs: Program[];
1667
- memberships: Membership[];
1668
- }
1669
1650
  export declare class Membership extends OrganizationConnectionBaseEntity {
1670
1651
  name: string;
1671
1652
  description?: string;
@@ -1784,6 +1765,10 @@ export declare class Payment extends OrganizationConnectionBaseEntity {
1784
1765
  refundReasonId?: number;
1785
1766
  refundNote?: string;
1786
1767
  }
1768
+ export declare class PaymentFailConfig extends OrganizationConnectionBaseEntity {
1769
+ failureIndex: number;
1770
+ waitingDays: number;
1771
+ }
1787
1772
  export declare class PaymentFailure extends OrganizationConnectionBaseEntity {
1788
1773
  paymentInstallmentId?: number;
1789
1774
  invoiceId: number;
@@ -1799,10 +1784,6 @@ export declare class PaymentNote extends OrganizationConnectionBaseEntity {
1799
1784
  paymentId: number;
1800
1785
  payment: Payment;
1801
1786
  }
1802
- export declare class PaymentFailConfig extends OrganizationConnectionBaseEntity {
1803
- failureIndex: number;
1804
- waitingDays: number;
1805
- }
1806
1787
  export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1807
1788
  paymentPlanId: number;
1808
1789
  paymentDate: Date;
@@ -2046,6 +2027,25 @@ export declare class ProgramSeason extends BondBaseEntity {
2046
2027
  facility: Facility;
2047
2028
  purchasedResources: PurchasedResource[];
2048
2029
  }
2030
+ export declare class Media extends BondBaseEntity {
2031
+ url: string;
2032
+ name: string | null;
2033
+ title: string | null;
2034
+ mediaKey: string | null;
2035
+ description: string | null;
2036
+ provider: string | null;
2037
+ mediaType: number;
2038
+ fileType: string | null;
2039
+ isDefault: boolean | null;
2040
+ creatorId: number | null;
2041
+ creatorType: string | null;
2042
+ userCreatorId: number | null;
2043
+ ownerId: number | null;
2044
+ createdBy: number | null;
2045
+ users: User[];
2046
+ programs: Program[];
2047
+ memberships: Membership[];
2048
+ }
2049
2049
  export declare class PurchasedResource extends OrganizationConnectionBaseEntity {
2050
2050
  productUserId: number;
2051
2051
  resourceId: number;
@@ -2068,10 +2068,6 @@ export declare class PurchasedResource extends OrganizationConnectionBaseEntity
2068
2068
  product?: Product;
2069
2069
  event?: Event;
2070
2070
  }
2071
- export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2072
- title: string | null;
2073
- answerTitle: AnswerTitle;
2074
- }
2075
2071
  export declare class Questions extends BondBaseEntity {
2076
2072
  questionType: string | null;
2077
2073
  ordinal: number | null;
@@ -2358,6 +2354,10 @@ export declare class UserInFamilyAccount extends BondBaseEntity {
2358
2354
  familyAccount: FamilyAccount;
2359
2355
  deletedAt?: Date;
2360
2356
  }
2357
+ export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2358
+ title: string | null;
2359
+ answerTitle: AnswerTitle;
2360
+ }
2361
2361
  export declare class UserPaymentMethod extends BondBaseEntity {
2362
2362
  userId: number;
2363
2363
  failCount: number;
@@ -2366,11 +2366,6 @@ export declare class UserPaymentMethod extends BondBaseEntity {
2366
2366
  paymentMethodId: string;
2367
2367
  nextAllowedChargeDate?: Date;
2368
2368
  }
2369
- export declare class UsersInGroup extends BondBaseEntity {
2370
- groupId: number;
2371
- userId: number;
2372
- deletedAt?: Date;
2373
- }
2374
2369
  export declare class VariantTitle extends OrganizationConnectionBaseEntity {
2375
2370
  name: string;
2376
2371
  variants: Variant[];
@@ -2389,292 +2384,657 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2389
2384
  membershipCollectionId?: string;
2390
2385
  programsCollectionId?: string;
2391
2386
  }
2392
- export declare enum EntitlementTermsTypesEnum {
2393
- QUESTION = "question",
2394
- CITY = "city",
2395
- MEMBERSHIP = "membership"
2387
+ export declare class UsersInGroup extends BondBaseEntity {
2388
+ groupId: number;
2389
+ userId: number;
2390
+ deletedAt?: Date;
2396
2391
  }
2397
- export declare enum ResourceNameTypeEnum {
2398
- EVENT = "event",
2399
- VENUE = "venue",
2400
- TEAM = "team",
2401
- LEAGUE = "league",
2402
- USER = "user",
2403
- ORGANIZATION = "organization",
2404
- APP = "app",
2405
- FEED = "feed",
2406
- MATCH = "match",
2407
- ROUND = "round",
2408
- PORTAL = "portal",
2409
- SEASON = "season",
2410
- TOURNAMENT = "tournament",
2411
- MEMBERSHIP = "membership",
2412
- DIVISION = "division",
2413
- GAMESLOT = "gameslot",
2414
- SPACE = "space",
2415
- RESERVATION = "reservation",
2416
- INVOICE = "invoice",
2417
- CUSTOMER = "customer",
2418
- PACKAGE = "package",
2419
- FACILITY = "facility",
2420
- PROGRAM = "program",
2421
- PROGRAM_SEASON = "program_season",
2422
- PRODUCT = "product",
2423
- GROUP = "group",
2424
- VARIANT = "variant",
2425
- SLOT = "slot",
2426
- ADDON = "addon"
2392
+ export interface IEntitlementTerms {
2393
+ type: EntitlementTermsTypesEnum;
2394
+ id?: number;
2395
+ value?: string;
2396
+ minValue?: string;
2397
+ maxValue?: string;
2427
2398
  }
2428
- export declare enum DirectBookingTypesEnum {
2429
- DIRECT_FOR_ALL = "all",
2430
- DIRECT_FOR_NONE = "none",
2431
- DIRECT_VETTED_ONLY = "vetted_only",
2432
- NO_SETTING = "no_setting"
2399
+ export interface IQuestionAnswerObject {
2400
+ questionId: number;
2401
+ value: string;
2433
2402
  }
2434
- export declare enum GenderEnum {
2435
- OTHER = 1,
2436
- MALE = 2,
2437
- FEMALE = 3
2403
+ export interface ILowestPriceForItem {
2404
+ itemId: number;
2405
+ itemType: ResourceNameTypeEnum;
2406
+ groupId: number;
2407
+ groupName?: string;
2408
+ price: number;
2409
+ overridesPrice: boolean;
2438
2410
  }
2439
- export declare enum LevelOfPlayEnum {
2440
- BEGINNER = 1,
2441
- INTERMEDIATE = 2,
2442
- ADVANCED = 3,
2443
- SEMIPRO = 4,
2444
- SPECTATOR = 5
2411
+ export interface IResourcesAvailability {
2412
+ resourceType: ResourceNameTypeEnum;
2413
+ quantity: number;
2414
+ resourcesIds: number[];
2415
+ isPunchCard: boolean;
2416
+ resources?: any[];
2445
2417
  }
2446
- export declare enum ProgramTypesEnum {
2447
- LEAGUE = 0,
2448
- TOURNAMENT = 1,
2449
- CLASS = 2,
2450
- CLINIC = 3,
2451
- CAMP = 4,
2452
- LESSON = 5,
2453
- CLUB_TEAM = 6
2418
+ export interface IPackageResponse {
2419
+ parentProduct: Product;
2420
+ children: IChildProduct[];
2454
2421
  }
2455
- export declare enum ProgramSeasonTypesEnum {
2456
- ROUND_ROBIN = 1,
2457
- BRACKETS = 2,
2458
- CAMP_CLINIC_CLASS = 3
2422
+ export interface IChildProduct {
2423
+ product: Product;
2424
+ relationType: PackageProductsRelationTypeEnum;
2425
+ timePeriod?: AddonTimePeriodEnum;
2459
2426
  }
2460
- export declare enum SportsEnum {
2461
- SOFTBALL = 1,
2462
- BASKETBALL = 2,
2463
- FOOTBALL = 3,
2464
- SOCCER = 4,
2465
- BOWLING = 5,
2466
- BOCCEBALL = 6,
2467
- CORNHOLE = 7,
2468
- DODGEBALL = 8,
2469
- FRISBEE = 9,
2470
- HOCKEY = 10,
2471
- KICKBALL = 11,
2472
- LACROSSE = 12,
2473
- PINGPONG = 13,
2474
- RUGBY = 14,
2475
- SKEEBALL = 15,
2476
- TENNIS = 16,
2477
- VOLLEYBALL = 17,
2478
- WIFFLEBALL = 18,
2479
- BADMINTON = 19,
2480
- FITNESS = 20,
2481
- GOLF = 21,
2482
- PILATES = 22,
2483
- RUNNING = 23,
2484
- SKIING = 24,
2485
- SNOWBOARDING = 25,
2486
- YOGA = 26,
2487
- BROOMBALL = 27,
2488
- CRICKET = 28,
2489
- CROSSFIT = 29,
2490
- CYCLING = 30,
2491
- FIELD_HOCKEY = 31,
2492
- RACQUETBALL = 32,
2493
- SPINNING = 33,
2494
- SQUASH = 34,
2495
- SURFING = 35,
2496
- SWIMMING = 36,
2497
- WIND_SURFING = 37,
2498
- ADVENTURE = 38,
2499
- BOXING = 39,
2500
- BASEBALL = 40,
2501
- DANCE = 41,
2502
- KICKBOXING = 42,
2503
- MARTIAL_ARTS = 43,
2504
- OUTDOORS = 44,
2505
- ROWING = 45,
2506
- SAILING = 46,
2507
- SUP = 47,
2508
- TRIATHLON = 48,
2509
- HANDBALL = 49,
2510
- CATCHBALL = 50,
2511
- BLITZBALL = 51,
2512
- ROLLER_DERBY = 52,
2513
- ICE_SKATING = 53,
2514
- PICKLEBALL = 54,
2515
- AXE_THROWING = 55,
2516
- FURSAL = 56,
2517
- BIRTHDAY = 57,
2518
- CORPRATE_EVENTS = 58,
2519
- OTHER = 999
2427
+ export interface ISeasonAttendeeInfo {
2428
+ applicationAnswers: Answer[];
2429
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2430
+ invoices: Invoice[];
2431
+ payments: Payment[];
2432
+ products: Product[];
2433
+ redeemNext: ProductsUsers;
2520
2434
  }
2521
- export declare enum PublishingStatusEnum {
2522
- DRAFT = 1,
2523
- PUBLISHED = 2,
2524
- CLOSED = 3,
2525
- CANCELLED = 4,
2526
- ARCHIVE = 5,
2527
- UNPUBLISHED = 6
2435
+ export interface ISeasonAttendeeListInfo {
2436
+ userId: number;
2437
+ userFirstName: string;
2438
+ userLastName: string;
2439
+ userGender: number;
2440
+ userBirthDate: Date;
2441
+ userProfilePicUrl: string;
2442
+ customerId: number;
2443
+ customerEmail: string;
2444
+ paymentStatus: string;
2445
+ productName: string;
2446
+ punchCard: boolean;
2528
2447
  }
2529
- export declare enum ProgramHighlightTypeEnum {
2530
- OTHER = 1,
2531
- MINAGE = 2,
2532
- MAXAGE = 3,
2533
- GENDER = 4,
2534
- LEVELOFPLAY = 5,
2535
- GAMESSEASON = 6,
2536
- MINWEEK = 7,
2537
- SURFACE = 8,
2538
- FORMAT = 9,
2539
- PLAYERS_PER_TEAM = 10,
2540
- MATCH_LENGTH = 12
2448
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2449
+ segmentType: ResourceNameTypeEnum;
2450
+ participantRegisteredDate?: string;
2541
2451
  }
2542
- export declare enum RequestStatusEnum {
2543
- PENDING = 1,
2544
- ACCEPTED = 2,
2545
- DECLINED = 3
2452
+ export declare class EventAsSeasonSegment extends Event {
2453
+ segmentType: ResourceNameTypeEnum;
2454
+ participantRegisteredDate?: string;
2546
2455
  }
2547
- export declare enum PaymentStatusEnum {
2548
- NOT_PAID = "not_paid",
2549
- PARTIAL_PAYMENT = "partial",
2550
- FULLY_PAID = "paid",
2551
- REFUNDED = "refunded",
2552
- VOID = "void"
2456
+ export interface ITokenResonse {
2457
+ token: string;
2553
2458
  }
2554
- export declare enum ReservationExtendedEnum {
2555
- PURCHASE_ORDER = "purchase_order"
2459
+ export interface IStripeBondInvoices {
2460
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2461
+ bondPaidPayment: Payment;
2462
+ invoice?: Invoice;
2463
+ customer?: Customer;
2556
2464
  }
2557
- export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2558
- export declare enum ReservationStatusEnum {
2559
- PLANNED = "Planned",
2560
- APPROVED = "Approved",
2561
- AWAITING_ADMIN = "Awaiting Admin",
2562
- AWAITING_CUSTOMER = "Awaiting Customer",
2563
- REJECTED = "Rejected",
2564
- CANCELED = "Canceled"
2465
+ export interface IPartialPaymentData {
2466
+ purchasingUserId: number;
2467
+ paymentData: PurchasePaymentDto;
2468
+ amountToPay: number;
2565
2469
  }
2566
- export declare enum PaymentStatusV1Enum {
2567
- SENT_TO_CLIENT = 1,
2568
- SENT_FOR_PAYMENT = 2,
2569
- ACCEPTED = 3,
2570
- REJECTED = 4,
2571
- CANCELLED = 5,
2572
- FRAUD = 6,
2573
- NOT_RELEVANT = 7,
2574
- PENDING = 8
2470
+ export interface IPayment {
2471
+ id: number;
2472
+ total: number;
2473
+ paymentMethod: PaymentMethodTypeEnum;
2474
+ status: PaymentStatusEnum;
2475
+ createdAt: Date;
2476
+ invoices: number[];
2575
2477
  }
2576
- export declare enum PaymentMethodsEnum {
2577
- STRIPE = 1,
2578
- CASH = 3
2478
+ export interface IPaginationData<T> {
2479
+ meta: {
2480
+ totalItems: number;
2481
+ itemsPerPage: number;
2482
+ totalPages: number;
2483
+ currentPage: number;
2484
+ };
2485
+ data: T[];
2579
2486
  }
2580
- export declare enum PackageProductsRelationTypeEnum {
2581
- CHILD = "child",
2582
- UPSALE = "upsale"
2487
+ export interface IPricesOfProductsResults {
2488
+ productId: number;
2489
+ userId: number;
2490
+ price: number;
2491
+ groupId?: number;
2492
+ groupName?: string;
2493
+ originalPrice?: number;
2494
+ priceWithoutTax: number;
2495
+ tax: number;
2496
+ isTaxInclusive: boolean;
2583
2497
  }
2584
- export declare enum AddonTimePeriodEnum {
2585
- FULL = "full",
2586
- SESSION = "session",
2587
- EVENT = "event"
2498
+ export interface IPaymentMethodToFundLeft {
2499
+ paymentType: PaymentMethodTypeEnum;
2500
+ paymentMethodId: string;
2501
+ fundLeft: number;
2502
+ ccLast4?: string;
2503
+ ccBrand?: string;
2588
2504
  }
2589
- export declare enum CurrencyEnum {
2590
- USD = "USD"
2505
+ export interface IVariantsAndTitle {
2506
+ title: VariantTitle;
2507
+ variants: Variant[];
2591
2508
  }
2592
- export declare enum NotificationTypeEnum {
2593
- BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2594
- BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2595
- BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2509
+ export interface IProgramSeasonActivityTimes {
2510
+ dayOfWeek: number;
2511
+ open: string;
2512
+ close: string;
2596
2513
  }
2597
- export declare enum ProductTypesEnum {
2598
- RESERVATION = "reservation",
2599
- REGISTRATION = "registration",
2600
- MEMBERSHIP = "membership",
2601
- GOODS = "goods",
2602
- PACKAGE = "package",
2603
- REFUND_COMPENSATION = "refund",
2604
- CASH_OVER_SHORT = "cash_over_short",
2605
- PETTY_CASH = "petty_cash",
2606
- LEAGUE_REGISTRATION = "league_registration",
2607
- TAX = "tax"
2514
+ export interface IProgramSeasonActivityTimesAsDates {
2515
+ date: string;
2516
+ startTime: string;
2517
+ endTime: string;
2608
2518
  }
2609
- export declare enum InvoiceStatusEnum {
2610
- ACTIVE = "active",
2611
- WAITING_ADMIN = "waitingAdmin",
2612
- WAITING_CLIENT = "waitingClient",
2613
- CANCELED = "canceled"
2519
+ export interface IBlockedDates {
2520
+ name: string;
2521
+ startDate: Date;
2522
+ endDate: Date;
2614
2523
  }
2615
- export declare enum LineItemsStatusEnum {
2616
- USER_PRODUCT = "UserProduct",
2617
- RENTAL_PRODUCT = "RentalProduct"
2524
+ export interface ISingleMemberForRenewal {
2525
+ member_id: number;
2526
+ member_membershipId: number;
2527
+ member_userId: number;
2528
+ member_nextPaymentMethodId?: string;
2529
+ member_nextPaymentType?: PaymentMethodTypeEnum;
2530
+ member_answerTitleIds?: number[];
2531
+ member_organizationId: number;
2532
+ product_productPrice: number;
2533
+ product_productId: number;
2534
+ invoice_payingUserId: number;
2535
+ invoice_paymentMethodId: string;
2536
+ invoice_paymentType: PaymentMethodTypeEnum;
2537
+ endDate: Date;
2538
+ membership_name: string;
2539
+ user_firstName: string;
2540
+ user_lastName: string;
2541
+ user_email: string;
2618
2542
  }
2619
- export declare enum ProductSubTypesEnum {
2620
- SEASON_INDIVIDUAL = "season_individual",
2621
- SEASON_TEAM = "season_team",
2622
- SEASON_PER_PLAYER = "season_per_player"
2543
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2544
+ package_parentProductId: number;
2545
+ product2_productPrice: number;
2546
+ familyid: number;
2547
+ invoice_id: number;
2623
2548
  }
2624
- export declare enum PaymentMethodTypeEnum {
2625
- CREDIT_CARD = "card",
2626
- ACH = "ach",
2627
- CASH = "cash",
2628
- CHECK = "check",
2629
- BALANCE = "balance",
2630
- CARD_ON_TERMINAL = "card-on-terminal",
2631
- OTHER = "other",
2632
- MIGRATED = "migrated",
2633
- VOID = "void"
2549
+ export interface IResourceRegistrationData {
2550
+ id: number;
2551
+ resourceType: ResourceNameTypeEnum;
2552
+ openNumDays?: number;
2553
+ openNumMinutes?: number;
2554
+ openTime?: string;
2555
+ closeNumDays?: number;
2556
+ closeNumMinutes?: number;
2557
+ closeTime?: string;
2558
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
2634
2559
  }
2635
- export declare enum RefundTypeEnum {
2636
- LEAVE_BALANCE = "leave_balance",
2637
- REDUCE_BALANCE = "reduce_balance"
2560
+ export interface IResourceDataForConstraintsCalc {
2561
+ id: number;
2562
+ startDate: string;
2563
+ startTime: string;
2638
2564
  }
2639
- export declare enum CustomerInMembershipTypeEnum {
2640
- INDIVIDUAL = "individual",
2641
- FAMILY = "family",
2642
- ORGANIZATION = "organization"
2565
+ export interface IRegistrationConstraintsSetting {
2566
+ numDays?: number;
2567
+ numMinutes?: number;
2643
2568
  }
2644
- export declare enum MembershipTypeEnum {
2645
- FIXED = "fix_membership",
2646
- ROLLING = "rolling_membership"
2569
+ export interface IAttendeeDataToNotify {
2570
+ firstName: string;
2571
+ lastName: string;
2572
+ email: string;
2573
+ sessionName: string;
2574
+ parentSessionName?: string;
2575
+ organizationName: string;
2576
+ programName: string;
2647
2577
  }
2648
- export declare enum CustomerTypeEnum {
2649
- USER = "user",
2650
- FAMILY = "family",
2651
- ORGANIZATION = "organization"
2578
+ export interface IEventInSchedule {
2579
+ eventId: number;
2580
+ eventName: string;
2581
+ eventStartDate: string;
2582
+ eventEndDate: string;
2583
+ eventStartTime: string;
2584
+ eventEndTime: string;
2585
+ programId: number;
2586
+ programName: string;
2587
+ programType: ProgramTypesEnum;
2588
+ sessionId: number;
2589
+ sessionName: string;
2590
+ sports: number;
2591
+ spaces: {
2592
+ spaceId: number;
2593
+ spaceName: string;
2594
+ }[];
2595
+ status?: RegistrationValidationStatusEnum;
2652
2596
  }
2653
- export declare enum GroupStatusEnum {
2654
- ACTIVE = 1,
2655
- INACTIVE = 2,
2656
- DRAFT = 3
2597
+ export interface ISlotInSchedule {
2598
+ facilityId: number;
2599
+ facilityName: string;
2600
+ spaces: ISpaceWithSlots[];
2657
2601
  }
2658
- export declare enum FutureInstallmentStatusEnum {
2659
- FUTURE = "future",
2660
- SUCCEEDED = "succeeded",
2661
- FAILED = "failed",
2662
- CANCELED = "canceled"
2602
+ export interface ISpaceWithSlots {
2603
+ id: number;
2604
+ name: string;
2605
+ slots: ISlotReservationData[];
2663
2606
  }
2664
- export declare enum EntryStatusEnum {
2665
- ENTERED = 1,
2666
- NOT_ENTERED = 2,
2667
- CANCELED = 3
2607
+ export interface ISlotReservationData {
2608
+ reservationId: number;
2609
+ reservationName: string;
2610
+ date: string;
2611
+ startTime: string;
2612
+ endTime: string;
2613
+ notes: string;
2614
+ spaceId: number;
2615
+ isRental: boolean;
2616
+ slotType: SlotTypeEnum;
2617
+ slotId: number;
2618
+ eventId: number;
2619
+ isPrivate: boolean;
2668
2620
  }
2669
- export declare enum PurchasedResourceStatusEnum {
2670
- ACTIVE = 1,
2671
- MOVED = 2,
2672
- CANCELED = 3
2621
+ export interface IRawEventInSchedule extends IEventInSchedule {
2622
+ parentSessionId: number;
2623
+ parentSessionName: string;
2624
+ eventTimezone: string;
2625
+ maxParticipants: number;
2626
+ maxMaleParticipants: number;
2627
+ maxFemaleParticipants: number;
2628
+ isPunchCard: boolean;
2673
2629
  }
2674
- export declare enum TeamCanJoinEnum {
2675
- ANYONE = "anyone",
2676
- BY_INVITE = "byInvite",
2677
- CAPTAIN_APPROVAL = "captainApproval"
2630
+ export interface IBasicSpaceAndSlotCreator {
2631
+ id: number;
2632
+ name: string;
2633
+ bookingCreatorId: number;
2634
+ }
2635
+ export interface IRawSlotInSchedule {
2636
+ startDate: string;
2637
+ endDate: string;
2638
+ startTime: string;
2639
+ endTime: string;
2640
+ reservationId: number;
2641
+ eventTitle: string;
2642
+ publicNotes: string;
2643
+ spaceId: number;
2644
+ creatorType: ResourceNameTypeEnum;
2645
+ slotType: SlotTypeEnum;
2646
+ slotId: number;
2647
+ eventId: number;
2648
+ isPrivate: boolean;
2649
+ }
2650
+ export interface IPurchasedResourcesRaw {
2651
+ purchasedId: number;
2652
+ purchasedProductUserId: number;
2653
+ purchasedResourceId: number;
2654
+ purchasedResourceType: ResourceNameTypeEnum;
2655
+ purchasedStatus: PurchasedResourceStatusEnum;
2656
+ pUserId: number;
2657
+ pUserPaymentStatus: PaymentStatusEnum;
2658
+ pUserProductId: number;
2659
+ pUserProductName: string;
2660
+ pUserProductPrice: number;
2661
+ pUserProductPriceCurrency: string;
2662
+ pUserProductQuantity: number;
2663
+ pUserProductQuantityLeft: number;
2664
+ pUserUserId: number;
2665
+ }
2666
+ export interface IUsersPasses {
2667
+ userId: number;
2668
+ userFirstName: string;
2669
+ userLastName: string;
2670
+ organizationId: number;
2671
+ programId: number;
2672
+ programName: string;
2673
+ sessionId: number;
2674
+ sessionName: string;
2675
+ productId: number;
2676
+ productName: string;
2677
+ productUserId: number;
2678
+ purchaseDate: Date;
2679
+ passesLeft: number;
2680
+ }
2681
+ export interface ISessionsLandingPage {
2682
+ sessionId: number;
2683
+ name: string;
2684
+ startDate: Date;
2685
+ endDate: Date;
2686
+ registrationStartDate: Date;
2687
+ registrationEndDate: Date;
2688
+ sport: SportsEnum;
2689
+ minAge: string;
2690
+ maxAge: string;
2691
+ maxParticipants?: number;
2692
+ gender: GenderEnum;
2693
+ activityTimes: ActivityTimes[];
2694
+ earlyRegistrationStartDate?: Date;
2695
+ earlyRegistrationEndDate?: Date;
2696
+ lateRegistrationStartDate?: Date;
2697
+ lateRegistrationEndDate?: Date;
2698
+ attendeeCount?: number;
2699
+ segmentsOrEvents: 'segment' | 'event';
2700
+ }
2701
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2702
+ hasRequiredMembership: boolean;
2703
+ hasEntitledPricing: boolean;
2704
+ lowestPrice?: number;
2705
+ products?: ISessionLandingPageProduct[];
2706
+ }
2707
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2708
+ hasRequiredMembership: boolean;
2709
+ hasEntitledPricing: boolean;
2710
+ products?: ISessionLandingPageProduct[];
2711
+ segments?: Event[] | ProgramSeason[];
2712
+ programName: string;
2713
+ programId: number;
2714
+ levelOfPlay: LevelOfPlayEnum[];
2715
+ registrationConstraints: IResourceRegistrationData[];
2716
+ }
2717
+ export interface ISlimAddons {
2718
+ addons?: {
2719
+ id: number;
2720
+ timePeriod: AddonTimePeriodEnum;
2721
+ name: string;
2722
+ productType?: ProductTypesEnum;
2723
+ productSubType?: string;
2724
+ }[];
2725
+ }
2726
+ export interface ISessionLandingPageProduct extends ISlimAddons {
2727
+ id: number;
2728
+ name: string;
2729
+ startDate?: Date;
2730
+ endDate?: Date;
2731
+ downpayment?: number;
2732
+ description?: string;
2733
+ prices: Price[];
2734
+ productSubType?: ProductSubTypesEnum;
2735
+ punchCard: boolean;
2736
+ isAddon: boolean;
2737
+ defaultPriceId?: number;
2738
+ }
2739
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2740
+ destinationId?: string;
2741
+ stripeCustomerId?: string;
2742
+ fee?: number;
2743
+ }
2744
+ export interface IReservationCreatorData {
2745
+ type: ResourceNameTypeEnum;
2746
+ id: number;
2747
+ organizationId: number;
2748
+ startDate: string;
2749
+ endDate: string;
2750
+ sportId: number;
2751
+ }
2752
+ export declare enum EntitlementTermsTypesEnum {
2753
+ QUESTION = "question",
2754
+ CITY = "city",
2755
+ MEMBERSHIP = "membership"
2756
+ }
2757
+ export declare enum ResourceNameTypeEnum {
2758
+ EVENT = "event",
2759
+ VENUE = "venue",
2760
+ TEAM = "team",
2761
+ LEAGUE = "league",
2762
+ USER = "user",
2763
+ ORGANIZATION = "organization",
2764
+ APP = "app",
2765
+ FEED = "feed",
2766
+ MATCH = "match",
2767
+ ROUND = "round",
2768
+ PORTAL = "portal",
2769
+ SEASON = "season",
2770
+ TOURNAMENT = "tournament",
2771
+ MEMBERSHIP = "membership",
2772
+ DIVISION = "division",
2773
+ GAMESLOT = "gameslot",
2774
+ SPACE = "space",
2775
+ RESERVATION = "reservation",
2776
+ INVOICE = "invoice",
2777
+ CUSTOMER = "customer",
2778
+ PACKAGE = "package",
2779
+ FACILITY = "facility",
2780
+ PROGRAM = "program",
2781
+ PROGRAM_SEASON = "program_season",
2782
+ PRODUCT = "product",
2783
+ GROUP = "group",
2784
+ VARIANT = "variant",
2785
+ SLOT = "slot",
2786
+ ADDON = "addon"
2787
+ }
2788
+ export declare enum DirectBookingTypesEnum {
2789
+ DIRECT_FOR_ALL = "all",
2790
+ DIRECT_FOR_NONE = "none",
2791
+ DIRECT_VETTED_ONLY = "vetted_only",
2792
+ NO_SETTING = "no_setting"
2793
+ }
2794
+ export declare enum GenderEnum {
2795
+ OTHER = 1,
2796
+ MALE = 2,
2797
+ FEMALE = 3
2798
+ }
2799
+ export declare enum LevelOfPlayEnum {
2800
+ BEGINNER = 1,
2801
+ INTERMEDIATE = 2,
2802
+ ADVANCED = 3,
2803
+ SEMIPRO = 4,
2804
+ SPECTATOR = 5
2805
+ }
2806
+ export declare enum ProgramTypesEnum {
2807
+ LEAGUE = 0,
2808
+ TOURNAMENT = 1,
2809
+ CLASS = 2,
2810
+ CLINIC = 3,
2811
+ CAMP = 4,
2812
+ LESSON = 5,
2813
+ CLUB_TEAM = 6
2814
+ }
2815
+ export declare enum ProgramSeasonTypesEnum {
2816
+ ROUND_ROBIN = 1,
2817
+ BRACKETS = 2,
2818
+ CAMP_CLINIC_CLASS = 3
2819
+ }
2820
+ export declare enum SportsEnum {
2821
+ SOFTBALL = 1,
2822
+ BASKETBALL = 2,
2823
+ FOOTBALL = 3,
2824
+ SOCCER = 4,
2825
+ BOWLING = 5,
2826
+ BOCCEBALL = 6,
2827
+ CORNHOLE = 7,
2828
+ DODGEBALL = 8,
2829
+ FRISBEE = 9,
2830
+ HOCKEY = 10,
2831
+ KICKBALL = 11,
2832
+ LACROSSE = 12,
2833
+ PINGPONG = 13,
2834
+ RUGBY = 14,
2835
+ SKEEBALL = 15,
2836
+ TENNIS = 16,
2837
+ VOLLEYBALL = 17,
2838
+ WIFFLEBALL = 18,
2839
+ BADMINTON = 19,
2840
+ FITNESS = 20,
2841
+ GOLF = 21,
2842
+ PILATES = 22,
2843
+ RUNNING = 23,
2844
+ SKIING = 24,
2845
+ SNOWBOARDING = 25,
2846
+ YOGA = 26,
2847
+ BROOMBALL = 27,
2848
+ CRICKET = 28,
2849
+ CROSSFIT = 29,
2850
+ CYCLING = 30,
2851
+ FIELD_HOCKEY = 31,
2852
+ RACQUETBALL = 32,
2853
+ SPINNING = 33,
2854
+ SQUASH = 34,
2855
+ SURFING = 35,
2856
+ SWIMMING = 36,
2857
+ WIND_SURFING = 37,
2858
+ ADVENTURE = 38,
2859
+ BOXING = 39,
2860
+ BASEBALL = 40,
2861
+ DANCE = 41,
2862
+ KICKBOXING = 42,
2863
+ MARTIAL_ARTS = 43,
2864
+ OUTDOORS = 44,
2865
+ ROWING = 45,
2866
+ SAILING = 46,
2867
+ SUP = 47,
2868
+ TRIATHLON = 48,
2869
+ HANDBALL = 49,
2870
+ CATCHBALL = 50,
2871
+ BLITZBALL = 51,
2872
+ ROLLER_DERBY = 52,
2873
+ ICE_SKATING = 53,
2874
+ PICKLEBALL = 54,
2875
+ AXE_THROWING = 55,
2876
+ FURSAL = 56,
2877
+ BIRTHDAY = 57,
2878
+ CORPRATE_EVENTS = 58,
2879
+ OTHER = 999
2880
+ }
2881
+ export declare enum PublishingStatusEnum {
2882
+ DRAFT = 1,
2883
+ PUBLISHED = 2,
2884
+ CLOSED = 3,
2885
+ CANCELLED = 4,
2886
+ ARCHIVE = 5,
2887
+ UNPUBLISHED = 6
2888
+ }
2889
+ export declare enum ProgramHighlightTypeEnum {
2890
+ OTHER = 1,
2891
+ MINAGE = 2,
2892
+ MAXAGE = 3,
2893
+ GENDER = 4,
2894
+ LEVELOFPLAY = 5,
2895
+ GAMESSEASON = 6,
2896
+ MINWEEK = 7,
2897
+ SURFACE = 8,
2898
+ FORMAT = 9,
2899
+ PLAYERS_PER_TEAM = 10,
2900
+ MATCH_LENGTH = 12
2901
+ }
2902
+ export declare enum RequestStatusEnum {
2903
+ PENDING = 1,
2904
+ ACCEPTED = 2,
2905
+ DECLINED = 3
2906
+ }
2907
+ export declare enum PaymentStatusEnum {
2908
+ NOT_PAID = "not_paid",
2909
+ PARTIAL_PAYMENT = "partial",
2910
+ FULLY_PAID = "paid",
2911
+ REFUNDED = "refunded",
2912
+ VOID = "void"
2913
+ }
2914
+ export declare enum ReservationExtendedEnum {
2915
+ PURCHASE_ORDER = "purchase_order"
2916
+ }
2917
+ export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2918
+ export declare enum ReservationStatusEnum {
2919
+ PLANNED = "Planned",
2920
+ APPROVED = "Approved",
2921
+ AWAITING_ADMIN = "Awaiting Admin",
2922
+ AWAITING_CUSTOMER = "Awaiting Customer",
2923
+ REJECTED = "Rejected",
2924
+ CANCELED = "Canceled"
2925
+ }
2926
+ export declare enum PaymentStatusV1Enum {
2927
+ SENT_TO_CLIENT = 1,
2928
+ SENT_FOR_PAYMENT = 2,
2929
+ ACCEPTED = 3,
2930
+ REJECTED = 4,
2931
+ CANCELLED = 5,
2932
+ FRAUD = 6,
2933
+ NOT_RELEVANT = 7,
2934
+ PENDING = 8
2935
+ }
2936
+ export declare enum PaymentMethodsEnum {
2937
+ STRIPE = 1,
2938
+ CASH = 3
2939
+ }
2940
+ export declare enum PackageProductsRelationTypeEnum {
2941
+ CHILD = "child",
2942
+ UPSALE = "upsale"
2943
+ }
2944
+ export declare enum AddonTimePeriodEnum {
2945
+ FULL = "full",
2946
+ SESSION = "session",
2947
+ EVENT = "event"
2948
+ }
2949
+ export declare enum CurrencyEnum {
2950
+ USD = "USD"
2951
+ }
2952
+ export declare enum NotificationTypeEnum {
2953
+ BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2954
+ BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2955
+ BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2956
+ }
2957
+ export declare enum ProductTypesEnum {
2958
+ RESERVATION = "reservation",
2959
+ REGISTRATION = "registration",
2960
+ MEMBERSHIP = "membership",
2961
+ GOODS = "goods",
2962
+ PACKAGE = "package",
2963
+ REFUND_COMPENSATION = "refund",
2964
+ CASH_OVER_SHORT = "cash_over_short",
2965
+ PETTY_CASH = "petty_cash",
2966
+ LEAGUE_REGISTRATION = "league_registration",
2967
+ TAX = "tax"
2968
+ }
2969
+ export declare enum InvoiceStatusEnum {
2970
+ ACTIVE = "active",
2971
+ WAITING_ADMIN = "waitingAdmin",
2972
+ WAITING_CLIENT = "waitingClient",
2973
+ CANCELED = "canceled"
2974
+ }
2975
+ export declare enum LineItemsStatusEnum {
2976
+ USER_PRODUCT = "UserProduct",
2977
+ RENTAL_PRODUCT = "RentalProduct"
2978
+ }
2979
+ export declare enum ProductSubTypesEnum {
2980
+ SEASON_INDIVIDUAL = "season_individual",
2981
+ SEASON_TEAM = "season_team",
2982
+ SEASON_PER_PLAYER = "season_per_player"
2983
+ }
2984
+ export declare enum PaymentMethodTypeEnum {
2985
+ CREDIT_CARD = "card",
2986
+ ACH = "ach",
2987
+ CASH = "cash",
2988
+ CHECK = "check",
2989
+ BALANCE = "balance",
2990
+ CARD_ON_TERMINAL = "card-on-terminal",
2991
+ OTHER = "other",
2992
+ MIGRATED = "migrated",
2993
+ VOID = "void"
2994
+ }
2995
+ export declare enum RefundTypeEnum {
2996
+ LEAVE_BALANCE = "leave_balance",
2997
+ REDUCE_BALANCE = "reduce_balance"
2998
+ }
2999
+ export declare enum CustomerInMembershipTypeEnum {
3000
+ INDIVIDUAL = "individual",
3001
+ FAMILY = "family",
3002
+ ORGANIZATION = "organization"
3003
+ }
3004
+ export declare enum MembershipTypeEnum {
3005
+ FIXED = "fix_membership",
3006
+ ROLLING = "rolling_membership"
3007
+ }
3008
+ export declare enum CustomerTypeEnum {
3009
+ USER = "user",
3010
+ FAMILY = "family",
3011
+ ORGANIZATION = "organization"
3012
+ }
3013
+ export declare enum GroupStatusEnum {
3014
+ ACTIVE = 1,
3015
+ INACTIVE = 2,
3016
+ DRAFT = 3
3017
+ }
3018
+ export declare enum FutureInstallmentStatusEnum {
3019
+ FUTURE = "future",
3020
+ SUCCEEDED = "succeeded",
3021
+ FAILED = "failed",
3022
+ CANCELED = "canceled"
3023
+ }
3024
+ export declare enum EntryStatusEnum {
3025
+ ENTERED = 1,
3026
+ NOT_ENTERED = 2,
3027
+ CANCELED = 3
3028
+ }
3029
+ export declare enum PurchasedResourceStatusEnum {
3030
+ ACTIVE = 1,
3031
+ MOVED = 2,
3032
+ CANCELED = 3
3033
+ }
3034
+ export declare enum TeamCanJoinEnum {
3035
+ ANYONE = "anyone",
3036
+ BY_INVITE = "byInvite",
3037
+ CAPTAIN_APPROVAL = "captainApproval"
2678
3038
  }
2679
3039
  export declare enum TeamMemberStatusEnum {
2680
3040
  PENDING = 1,
@@ -2764,550 +3124,176 @@ export declare enum SurfacesEnum {
2764
3124
  ASTRO_TURF = "astroTurf",
2765
3125
  HARDWOOD = "hardwood",
2766
3126
  ASPHALT = "asphalt",
2767
- SAND = "sand",
2768
- ICE = "ice",
2769
- SPORT_COURT = "sportCourt"
2770
- }
2771
- export declare enum RegistrationConstraintPeriodTypeEnum {
2772
- MINUTES = "minutes",
2773
- DAYS = "days"
2774
- }
2775
- export declare enum RegistrationWindowStatusEnum {
2776
- NOT_OPEN_YET = "not_opened_yet",
2777
- OPEN = "open",
2778
- CLOSED = "closed"
2779
- }
2780
- export declare enum RegistrationValidationStatusEnum {
2781
- FULL = "full",
2782
- ALREADY_REGISTERED = "registered",
2783
- AVAILABLE = "available",
2784
- NOT_OPEN_YET = "not opened",
2785
- ALREADY_CLOSED = "closed",
2786
- NO_PRODUCT_FOUND = "no-product-found"
2787
- }
2788
- export declare enum DiscountMethodsEnum {
2789
- PERCENT = "percent",
2790
- AMOUNT = "amount"
2791
- }
2792
- export declare enum UserAuthorizationsTypeEnum {
2793
- ORGANIZATION = "organization"
2794
- }
2795
- export declare enum OrganizationLocaleDateEnum {
2796
- USA = "USA"
2797
- }
2798
- export declare enum DateTimeFormatsEnum {
2799
- API_DATE = "YYYY/MM/DD",
2800
- API_TIME = "HH:mm:ss",
2801
- DB_DATE = "YYYY-MM-DD"
2802
- }
2803
- export declare enum SlotTypeEnum {
2804
- EXTERNAL = "external",
2805
- INTERNAL = "internal",
2806
- MAINTENANCE = "maintenance",
2807
- CUSTOM = "custom"
2808
- }
2809
- export declare enum PlatformsEnum {
2810
- CONSUMER = "consumer",
2811
- CONSUMER_CHECKOUT = "consumer_checkout",
2812
- BO = "backoffice",
2813
- MOBILE = "mobile",
2814
- CRON = "cron"
2815
- }
2816
- export declare enum ShiftStatusEnum {
2817
- OPEN = "open",
2818
- CLOSED = "closed",
2819
- MANAGMENT_CLOSED = "closed_by_manager",
2820
- RECONCILED = "reconciled"
2821
- }
2822
- export declare enum EventStatusEnum {
2823
- OPEN = 1,
2824
- DRAFT = 2,
2825
- FULL = 3,
2826
- CANCELLED = 4,
2827
- CLOSED = 5,
2828
- DELETED = 6
2829
- }
2830
- export declare enum ReservationTypeEnum {
2831
- RENTAL = "rental",
2832
- PROGRAM = "program",
2833
- MAINTENANCE = "maintenance",
2834
- CUSTOM = "custom",
2835
- INTERNAL = "internal"
2836
- }
2837
- export declare enum SlotDurationTypeEnum {
2838
- DATES = "dates",
2839
- ALL_DAY = "all day",
2840
- DURATION = "duration"
2841
- }
2842
- export declare enum DurationUnitTypesEnum {
2843
- MINUTES = "minutes",
2844
- HOURS = "hours"
2845
- }
2846
- export declare enum FrequencyEnum {
2847
- NONE = "none",
2848
- WEEKLY = "weekly",
2849
- DAILY = "daily",
2850
- MONTHLY = "monthly",
2851
- YEARLY = "yearly"
2852
- }
2853
- export declare enum MaintenanceTimingEnum {
2854
- BEFORE = 1,
2855
- AFTER = 2,
2856
- AT_THE_BEGINING = 3,
2857
- AT_THE_END = 4
2858
- }
2859
- export declare enum CreatorTypeEnum {
2860
- SPACE = "space",
2861
- PROGRAM_SEASON = "program_season",
2862
- SEASON = "season"
2863
- }
2864
- export declare enum UpdatePricesTypeEnum {
2865
- INDIVIDUAL = "indvidual",
2866
- CATEGORY = "category",
2867
- GLOBAL = "global"
2868
- }
2869
- export declare enum BondDayOfWeekEnum {
2870
- MONDAY = 2,
2871
- TUESDAY = 3,
2872
- WEDNESDAY = 4,
2873
- THURSDAY = 5,
2874
- FRIDAY = 6,
2875
- SATURDAY = 7,
2876
- SUNDAY = 8
2877
- }
2878
- export declare enum ReservationMigrationStatusEnum {
2879
- NEW = "new",
2880
- NO = "no",
2881
- YES = "yes"
2882
- }
2883
- export declare enum ProductPackageLevelEnum {
2884
- HOUR = "hour",
2885
- SLOT = "slot",
2886
- RESERVATION = "reservation"
2887
- }
2888
- export declare enum CancellationStatusEnum {
2889
- IMMEDIATE = "immediate",
2890
- AUTO_RENEWAL = "auto_renewal"
2891
- }
2892
- export declare enum SeasonScheduleStatusEnum {
2893
- DRAFT = 0,
2894
- PUBLISHED = 1
2895
- }
2896
- export declare enum FinancialStepEnum {
2897
- VOID = "void",
2898
- REFUND = "refund",
2899
- NONE = "none",
2900
- REFUND_AND_VOID = "refund-and-void",
2901
- APPEND = "append"
2902
- }
2903
- export declare enum StripeAccountTypesEnum {
2904
- STRIPE = "stripe",
2905
- STRIPE_CUSTOM = "stripe:account:custom",
2906
- STRIPE_CUSTOMER = "stripe:customer"
2907
- }
2908
- export declare enum LinkedAccountStatus {
2909
- PENDING = 1,
2910
- ACTIVE = 2,
2911
- PRE_PENDING = 3
2912
- }
2913
- export declare enum AddonParentTypeEnum {
2914
- RESERVATION = "reservation",
2915
- SLOT = "slot"
2916
- }
2917
- export declare enum EEmailStatus {
2918
- SENT = "sent",
2919
- OPENED = "opened",
2920
- PAID = "paid",
2921
- CANCELED = "canceled"
2922
- }
2923
- export declare enum PaymentSettingStatusEnum {
2924
- ENABLED = 1,
2925
- DISABLED_REDIRECT = 2,
2926
- DISABLED_INFO_ONLY = 3,
2927
- DISABLED_EMAIL = 4
2928
- }
2929
- export declare enum NotifyMethodEnum {
2930
- EMAIL = "Email"
2931
- }
2932
- export interface IEntitlementTerms {
2933
- type: EntitlementTermsTypesEnum;
2934
- id?: number;
2935
- value?: string;
2936
- minValue?: string;
2937
- maxValue?: string;
2938
- }
2939
- export interface IQuestionAnswerObject {
2940
- questionId: number;
2941
- value: string;
2942
- }
2943
- export interface ILowestPriceForItem {
2944
- itemId: number;
2945
- itemType: ResourceNameTypeEnum;
2946
- groupId: number;
2947
- groupName?: string;
2948
- price: number;
2949
- overridesPrice: boolean;
2950
- }
2951
- export interface IResourcesAvailability {
2952
- resourceType: ResourceNameTypeEnum;
2953
- quantity: number;
2954
- resourcesIds: number[];
2955
- isPunchCard: boolean;
2956
- resources?: any[];
2957
- }
2958
- export interface IPackageResponse {
2959
- parentProduct: Product;
2960
- children: IChildProduct[];
2961
- }
2962
- export interface IChildProduct {
2963
- product: Product;
2964
- relationType: PackageProductsRelationTypeEnum;
2965
- timePeriod?: AddonTimePeriodEnum;
2966
- }
2967
- export interface ISeasonAttendeeInfo {
2968
- applicationAnswers: Answer[];
2969
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2970
- invoices: Invoice[];
2971
- payments: Payment[];
2972
- products: Product[];
2973
- redeemNext: ProductsUsers;
2974
- }
2975
- export interface ISeasonAttendeeListInfo {
2976
- userId: number;
2977
- userFirstName: string;
2978
- userLastName: string;
2979
- userGender: number;
2980
- userBirthDate: Date;
2981
- userProfilePicUrl: string;
2982
- customerId: number;
2983
- customerEmail: string;
2984
- paymentStatus: string;
2985
- productName: string;
2986
- punchCard: boolean;
2987
- }
2988
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2989
- segmentType: ResourceNameTypeEnum;
2990
- participantRegisteredDate?: string;
2991
- }
2992
- export declare class EventAsSeasonSegment extends Event {
2993
- segmentType: ResourceNameTypeEnum;
2994
- participantRegisteredDate?: string;
2995
- }
2996
- export interface ITokenResonse {
2997
- token: string;
2998
- }
2999
- export interface IStripeBondInvoices {
3000
- paidStripePaymentIntent: Stripe.PaymentIntent;
3001
- bondPaidPayment: Payment;
3002
- invoice?: Invoice;
3003
- customer?: Customer;
3004
- }
3005
- export interface IPartialPaymentData {
3006
- purchasingUserId: number;
3007
- paymentData: PurchasePaymentDto;
3008
- amountToPay: number;
3127
+ SAND = "sand",
3128
+ ICE = "ice",
3129
+ SPORT_COURT = "sportCourt"
3009
3130
  }
3010
- export interface IPayment {
3011
- id: number;
3012
- total: number;
3013
- paymentMethod: PaymentMethodTypeEnum;
3014
- status: PaymentStatusEnum;
3015
- createdAt: Date;
3016
- invoices: number[];
3131
+ export declare enum RegistrationConstraintPeriodTypeEnum {
3132
+ MINUTES = "minutes",
3133
+ DAYS = "days"
3017
3134
  }
3018
- export interface IPaginationData<T> {
3019
- meta: {
3020
- totalItems: number;
3021
- itemsPerPage: number;
3022
- totalPages: number;
3023
- currentPage: number;
3024
- };
3025
- data: T[];
3135
+ export declare enum RegistrationWindowStatusEnum {
3136
+ NOT_OPEN_YET = "not_opened_yet",
3137
+ OPEN = "open",
3138
+ CLOSED = "closed"
3026
3139
  }
3027
- export interface IPricesOfProductsResults {
3028
- productId: number;
3029
- userId: number;
3030
- price: number;
3031
- groupId?: number;
3032
- groupName?: string;
3033
- originalPrice?: number;
3034
- priceWithoutTax: number;
3035
- tax: number;
3036
- isTaxInclusive: boolean;
3140
+ export declare enum RegistrationValidationStatusEnum {
3141
+ FULL = "full",
3142
+ ALREADY_REGISTERED = "registered",
3143
+ AVAILABLE = "available",
3144
+ NOT_OPEN_YET = "not opened",
3145
+ ALREADY_CLOSED = "closed",
3146
+ NO_PRODUCT_FOUND = "no-product-found"
3037
3147
  }
3038
- export interface IPaymentMethodToFundLeft {
3039
- paymentType: PaymentMethodTypeEnum;
3040
- paymentMethodId: string;
3041
- fundLeft: number;
3042
- ccLast4?: string;
3043
- ccBrand?: string;
3148
+ export declare enum DiscountMethodsEnum {
3149
+ PERCENT = "percent",
3150
+ AMOUNT = "amount"
3044
3151
  }
3045
- export interface IVariantsAndTitle {
3046
- title: VariantTitle;
3047
- variants: Variant[];
3152
+ export declare enum UserAuthorizationsTypeEnum {
3153
+ ORGANIZATION = "organization"
3048
3154
  }
3049
- export interface IProgramSeasonActivityTimes {
3050
- dayOfWeek: number;
3051
- open: string;
3052
- close: string;
3155
+ export declare enum OrganizationLocaleDateEnum {
3156
+ USA = "USA"
3053
3157
  }
3054
- export interface IProgramSeasonActivityTimesAsDates {
3055
- date: string;
3056
- startTime: string;
3057
- endTime: string;
3158
+ export declare enum DateTimeFormatsEnum {
3159
+ API_DATE = "YYYY/MM/DD",
3160
+ API_TIME = "HH:mm:ss",
3161
+ DB_DATE = "YYYY-MM-DD"
3058
3162
  }
3059
- export interface IBlockedDates {
3060
- name: string;
3061
- startDate: Date;
3062
- endDate: Date;
3163
+ export declare enum SlotTypeEnum {
3164
+ EXTERNAL = "external",
3165
+ INTERNAL = "internal",
3166
+ MAINTENANCE = "maintenance",
3167
+ CUSTOM = "custom"
3063
3168
  }
3064
- export interface ISingleMemberForRenewal {
3065
- member_id: number;
3066
- member_membershipId: number;
3067
- member_userId: number;
3068
- member_nextPaymentMethodId?: string;
3069
- member_nextPaymentType?: PaymentMethodTypeEnum;
3070
- member_answerTitleIds?: number[];
3071
- member_organizationId: number;
3072
- product_productPrice: number;
3073
- product_productId: number;
3074
- invoice_payingUserId: number;
3075
- invoice_paymentMethodId: string;
3076
- invoice_paymentType: PaymentMethodTypeEnum;
3077
- endDate: Date;
3078
- membership_name: string;
3079
- user_firstName: string;
3080
- user_lastName: string;
3081
- user_email: string;
3169
+ export declare enum PlatformsEnum {
3170
+ CONSUMER = "consumer",
3171
+ CONSUMER_CHECKOUT = "consumer_checkout",
3172
+ BO = "backoffice",
3173
+ MOBILE = "mobile",
3174
+ CRON = "cron"
3082
3175
  }
3083
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3084
- package_parentProductId: number;
3085
- product2_productPrice: number;
3086
- familyid: number;
3087
- invoice_id: number;
3176
+ export declare enum ShiftStatusEnum {
3177
+ OPEN = "open",
3178
+ CLOSED = "closed",
3179
+ MANAGMENT_CLOSED = "closed_by_manager",
3180
+ RECONCILED = "reconciled"
3088
3181
  }
3089
- export interface IResourceRegistrationData {
3090
- id: number;
3091
- resourceType: ResourceNameTypeEnum;
3092
- openNumDays?: number;
3093
- openNumMinutes?: number;
3094
- openTime?: string;
3095
- closeNumDays?: number;
3096
- closeNumMinutes?: number;
3097
- closeTime?: string;
3098
- registrationWindowStatus?: RegistrationWindowStatusEnum;
3182
+ export declare enum EventStatusEnum {
3183
+ OPEN = 1,
3184
+ DRAFT = 2,
3185
+ FULL = 3,
3186
+ CANCELLED = 4,
3187
+ CLOSED = 5,
3188
+ DELETED = 6
3099
3189
  }
3100
- export interface IResourceDataForConstraintsCalc {
3101
- id: number;
3102
- startDate: string;
3103
- startTime: string;
3190
+ export declare enum ReservationTypeEnum {
3191
+ RENTAL = "rental",
3192
+ PROGRAM = "program",
3193
+ MAINTENANCE = "maintenance",
3194
+ CUSTOM = "custom",
3195
+ INTERNAL = "internal"
3104
3196
  }
3105
- export interface IRegistrationConstraintsSetting {
3106
- numDays?: number;
3107
- numMinutes?: number;
3197
+ export declare enum SlotDurationTypeEnum {
3198
+ DATES = "dates",
3199
+ ALL_DAY = "all day",
3200
+ DURATION = "duration"
3108
3201
  }
3109
- export interface IAttendeeDataToNotify {
3110
- firstName: string;
3111
- lastName: string;
3112
- email: string;
3113
- sessionName: string;
3114
- parentSessionName?: string;
3115
- organizationName: string;
3116
- programName: string;
3202
+ export declare enum DurationUnitTypesEnum {
3203
+ MINUTES = "minutes",
3204
+ HOURS = "hours"
3117
3205
  }
3118
- export interface IEventInSchedule {
3119
- eventId: number;
3120
- eventName: string;
3121
- eventStartDate: string;
3122
- eventEndDate: string;
3123
- eventStartTime: string;
3124
- eventEndTime: string;
3125
- programId: number;
3126
- programName: string;
3127
- programType: ProgramTypesEnum;
3128
- sessionId: number;
3129
- sessionName: string;
3130
- sports: number;
3131
- spaces: {
3132
- spaceId: number;
3133
- spaceName: string;
3134
- }[];
3135
- status?: RegistrationValidationStatusEnum;
3206
+ export declare enum FrequencyEnum {
3207
+ NONE = "none",
3208
+ WEEKLY = "weekly",
3209
+ DAILY = "daily",
3210
+ MONTHLY = "monthly",
3211
+ YEARLY = "yearly"
3136
3212
  }
3137
- export interface ISlotInSchedule {
3138
- facilityId: number;
3139
- facilityName: string;
3140
- spaces: ISpaceWithSlots[];
3213
+ export declare enum MaintenanceTimingEnum {
3214
+ BEFORE = 1,
3215
+ AFTER = 2,
3216
+ AT_THE_BEGINING = 3,
3217
+ AT_THE_END = 4
3141
3218
  }
3142
- export interface ISpaceWithSlots {
3143
- id: number;
3144
- name: string;
3145
- slots: ISlotReservationData[];
3219
+ export declare enum CreatorTypeEnum {
3220
+ SPACE = "space",
3221
+ PROGRAM_SEASON = "program_season",
3222
+ SEASON = "season"
3146
3223
  }
3147
- export interface ISlotReservationData {
3148
- reservationId: number;
3149
- reservationName: string;
3150
- date: string;
3151
- startTime: string;
3152
- endTime: string;
3153
- notes: string;
3154
- spaceId: number;
3155
- isRental: boolean;
3156
- slotType: SlotTypeEnum;
3157
- slotId: number;
3158
- eventId: number;
3159
- isPrivate: boolean;
3224
+ export declare enum UpdatePricesTypeEnum {
3225
+ INDIVIDUAL = "indvidual",
3226
+ CATEGORY = "category",
3227
+ GLOBAL = "global"
3160
3228
  }
3161
- export interface IRawEventInSchedule extends IEventInSchedule {
3162
- parentSessionId: number;
3163
- parentSessionName: string;
3164
- eventTimezone: string;
3165
- maxParticipants: number;
3166
- maxMaleParticipants: number;
3167
- maxFemaleParticipants: number;
3168
- isPunchCard: boolean;
3229
+ export declare enum BondDayOfWeekEnum {
3230
+ MONDAY = 2,
3231
+ TUESDAY = 3,
3232
+ WEDNESDAY = 4,
3233
+ THURSDAY = 5,
3234
+ FRIDAY = 6,
3235
+ SATURDAY = 7,
3236
+ SUNDAY = 8
3169
3237
  }
3170
- export interface IBasicSpaceAndSlotCreator {
3171
- id: number;
3172
- name: string;
3173
- bookingCreatorId: number;
3238
+ export declare enum ReservationMigrationStatusEnum {
3239
+ NEW = "new",
3240
+ NO = "no",
3241
+ YES = "yes"
3174
3242
  }
3175
- export interface IRawSlotInSchedule {
3176
- startDate: string;
3177
- endDate: string;
3178
- startTime: string;
3179
- endTime: string;
3180
- reservationId: number;
3181
- eventTitle: string;
3182
- publicNotes: string;
3183
- spaceId: number;
3184
- creatorType: ResourceNameTypeEnum;
3185
- slotType: SlotTypeEnum;
3186
- slotId: number;
3187
- eventId: number;
3188
- isPrivate: boolean;
3243
+ export declare enum ProductPackageLevelEnum {
3244
+ HOUR = "hour",
3245
+ SLOT = "slot",
3246
+ RESERVATION = "reservation"
3189
3247
  }
3190
- export interface IPurchasedResourcesRaw {
3191
- purchasedId: number;
3192
- purchasedProductUserId: number;
3193
- purchasedResourceId: number;
3194
- purchasedResourceType: ResourceNameTypeEnum;
3195
- purchasedStatus: PurchasedResourceStatusEnum;
3196
- pUserId: number;
3197
- pUserPaymentStatus: PaymentStatusEnum;
3198
- pUserProductId: number;
3199
- pUserProductName: string;
3200
- pUserProductPrice: number;
3201
- pUserProductPriceCurrency: string;
3202
- pUserProductQuantity: number;
3203
- pUserProductQuantityLeft: number;
3204
- pUserUserId: number;
3248
+ export declare enum CancellationStatusEnum {
3249
+ IMMEDIATE = "immediate",
3250
+ AUTO_RENEWAL = "auto_renewal"
3205
3251
  }
3206
- export interface IUsersPasses {
3207
- userId: number;
3208
- userFirstName: string;
3209
- userLastName: string;
3210
- organizationId: number;
3211
- programId: number;
3212
- programName: string;
3213
- sessionId: number;
3214
- sessionName: string;
3215
- productId: number;
3216
- productName: string;
3217
- productUserId: number;
3218
- purchaseDate: Date;
3219
- passesLeft: number;
3252
+ export declare enum SeasonScheduleStatusEnum {
3253
+ DRAFT = 0,
3254
+ PUBLISHED = 1
3220
3255
  }
3221
- export interface ISessionsLandingPage {
3222
- sessionId: number;
3223
- name: string;
3224
- startDate: Date;
3225
- endDate: Date;
3226
- registrationStartDate: Date;
3227
- registrationEndDate: Date;
3228
- sport: SportsEnum;
3229
- minAge: string;
3230
- maxAge: string;
3231
- maxParticipants?: number;
3232
- gender: GenderEnum;
3233
- activityTimes: ActivityTimes[];
3234
- earlyRegistrationStartDate?: Date;
3235
- earlyRegistrationEndDate?: Date;
3236
- lateRegistrationStartDate?: Date;
3237
- lateRegistrationEndDate?: Date;
3238
- attendeeCount?: number;
3239
- segmentsOrEvents: 'segment' | 'event';
3256
+ export declare enum FinancialStepEnum {
3257
+ VOID = "void",
3258
+ REFUND = "refund",
3259
+ NONE = "none",
3260
+ REFUND_AND_VOID = "refund-and-void",
3261
+ APPEND = "append"
3240
3262
  }
3241
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3242
- hasRequiredMembership: boolean;
3243
- hasEntitledPricing: boolean;
3244
- lowestPrice?: number;
3245
- products?: ISessionLandingPageProduct[];
3263
+ export declare enum StripeAccountTypesEnum {
3264
+ STRIPE = "stripe",
3265
+ STRIPE_CUSTOM = "stripe:account:custom",
3266
+ STRIPE_CUSTOMER = "stripe:customer"
3246
3267
  }
3247
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3248
- hasRequiredMembership: boolean;
3249
- hasEntitledPricing: boolean;
3250
- products?: ISessionLandingPageProduct[];
3251
- segments?: Event[] | ProgramSeason[];
3252
- programName: string;
3253
- programId: number;
3254
- levelOfPlay: LevelOfPlayEnum[];
3255
- registrationConstraints: IResourceRegistrationData[];
3268
+ export declare enum LinkedAccountStatus {
3269
+ PENDING = 1,
3270
+ ACTIVE = 2,
3271
+ PRE_PENDING = 3
3256
3272
  }
3257
- export interface ISlimAddons {
3258
- addons?: {
3259
- id: number;
3260
- timePeriod: AddonTimePeriodEnum;
3261
- name: string;
3262
- productType?: ProductTypesEnum;
3263
- productSubType?: string;
3264
- }[];
3273
+ export declare enum AddonParentTypeEnum {
3274
+ RESERVATION = "reservation",
3275
+ SLOT = "slot"
3265
3276
  }
3266
- export interface ISessionLandingPageProduct extends ISlimAddons {
3267
- id: number;
3268
- name: string;
3269
- startDate?: Date;
3270
- endDate?: Date;
3271
- downpayment?: number;
3272
- description?: string;
3273
- prices: Price[];
3274
- productSubType?: ProductSubTypesEnum;
3275
- punchCard: boolean;
3276
- isAddon: boolean;
3277
- defaultPriceId?: number;
3277
+ export declare enum EEmailStatus {
3278
+ SENT = "sent",
3279
+ OPENED = "opened",
3280
+ PAID = "paid",
3281
+ CANCELED = "canceled"
3278
3282
  }
3279
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3280
- destinationId?: string;
3281
- stripeCustomerId?: string;
3282
- fee?: number;
3283
+ export declare enum PaymentSettingStatusEnum {
3284
+ ENABLED = 1,
3285
+ DISABLED_REDIRECT = 2,
3286
+ DISABLED_INFO_ONLY = 3,
3287
+ DISABLED_EMAIL = 4
3283
3288
  }
3284
- export interface IReservationCreatorData {
3285
- type: ResourceNameTypeEnum;
3286
- id: number;
3287
- organizationId: number;
3288
- startDate: string;
3289
- endDate: string;
3290
- sportId: number;
3289
+ export declare enum NotifyMethodEnum {
3290
+ EMAIL = "Email"
3291
3291
  }
3292
3292
  export declare class ColumnNumericTransformer {
3293
3293
  to(data: number): number;
3294
3294
  from(data: string): number;
3295
3295
  }
3296
3296
  export declare function convertToNumber(data: string): number;
3297
- export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3298
- name?: string;
3299
- genderStr?: string;
3300
- parentID?: string;
3301
- partnerID?: string;
3302
- membershipName?: string;
3303
- membershipExpDate?: string;
3304
- membershipCreationDate?: string;
3305
- bondMembershipID?: number;
3306
- }
3307
- export declare class AddFamilyDto {
3308
- parents: AddImportedCustomerDto[];
3309
- children: AddImportedCustomerDto[];
3310
- }
3311
3297
  export declare enum ImportPaymentTypeEnum {
3312
3298
  CREDIT_CARD = "card",
3313
3299
  ACH = "ach",
@@ -3343,6 +3329,20 @@ export declare class ImportedPaymentDto {
3343
3329
  date: string;
3344
3330
  time: string;
3345
3331
  }
3332
+ export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3333
+ name?: string;
3334
+ genderStr?: string;
3335
+ parentID?: string;
3336
+ partnerID?: string;
3337
+ membershipName?: string;
3338
+ membershipExpDate?: string;
3339
+ membershipCreationDate?: string;
3340
+ bondMembershipID?: number;
3341
+ }
3342
+ export declare class AddFamilyDto {
3343
+ parents: AddImportedCustomerDto[];
3344
+ children: AddImportedCustomerDto[];
3345
+ }
3346
3346
  export declare class ProductIdsDto {
3347
3347
  productIds?: number[];
3348
3348
  }
@@ -3352,6 +3352,10 @@ export declare class ProductImportDto {
3352
3352
  resourceIds: number[];
3353
3353
  oldId: number;
3354
3354
  }
3355
+ export declare class GameSlots extends BondBaseEntity {
3356
+ entityType: string;
3357
+ entityId: number;
3358
+ }
3355
3359
  export declare class PunchPassDto {
3356
3360
  CustomerID: string;
3357
3361
  QuantityLeft: number;
@@ -3410,10 +3414,6 @@ export declare class ImportedReservationDto {
3410
3414
  slots?: ImportedSlotDto[];
3411
3415
  addons?: ImportedSlotProductDto[];
3412
3416
  }
3413
- export declare class GameSlots extends BondBaseEntity {
3414
- entityType: string;
3415
- entityId: number;
3416
- }
3417
3417
  export declare class MatchParticipants extends BondBaseEntity {
3418
3418
  matchId: number | null;
3419
3419
  ordinal: number | null;
@@ -3450,17 +3450,6 @@ export declare class Lock extends BondBaseEntity {
3450
3450
  name: string;
3451
3451
  locked?: Date;
3452
3452
  }
3453
- export declare class CreateMonitorConfigDto {
3454
- facilityId: number;
3455
- name: string;
3456
- code: string;
3457
- config: any;
3458
- }
3459
- export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3460
- facilityId: number;
3461
- code: string;
3462
- config?: any;
3463
- }
3464
3453
  export interface ValidatedMonthAndDay {
3465
3454
  valid: boolean;
3466
3455
  month?: number;
@@ -3482,6 +3471,24 @@ export interface PaymentStatusesDict {
3482
3471
  export interface PaymentStatusDict {
3483
3472
  [id: number]: ReservationPaymentStatusEnum;
3484
3473
  }
3474
+ export declare class CreateMonitorConfigDto {
3475
+ facilityId: number;
3476
+ name: string;
3477
+ code: string;
3478
+ config: any;
3479
+ }
3480
+ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3481
+ facilityId: number;
3482
+ code: string;
3483
+ config?: any;
3484
+ }
3485
+ export declare class NotifyTracker extends BondBaseEntity {
3486
+ userId: number;
3487
+ organizationId: number;
3488
+ notifyMetadata?: any;
3489
+ notfiyMethodtype: NotifyMethodEnum;
3490
+ destination: string;
3491
+ }
3485
3492
  export declare class ByOrganizationIdDto {
3486
3493
  organizationId: number;
3487
3494
  }
@@ -3506,6 +3513,12 @@ export declare class FindUnallocatedEventsFiltersDto extends PaginationQuery {
3506
3513
  months?: string;
3507
3514
  dow?: string;
3508
3515
  }
3516
+ export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3517
+ key?: string;
3518
+ vaule?: string;
3519
+ version: number;
3520
+ organization: Organization;
3521
+ }
3509
3522
  export declare class Organization extends BondBaseEntity {
3510
3523
  name: string | null;
3511
3524
  email: string | null;
@@ -3555,19 +3568,13 @@ export declare class Organization extends BondBaseEntity {
3555
3568
  brandings: OrganizationBranding[];
3556
3569
  brandingsV2?: OrganizationBranding[];
3557
3570
  }
3558
- export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3559
- key?: string;
3560
- vaule?: string;
3561
- version: number;
3562
- organization: Organization;
3563
- }
3564
- export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3565
- mainAdminUserId?: number;
3566
- }
3567
3571
  export declare class OrganizationUsers extends BondBaseEntity {
3568
3572
  organisationId: number | null;
3569
3573
  userId: number | null;
3570
3574
  }
3575
+ export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3576
+ mainAdminUserId?: number;
3577
+ }
3571
3578
  export interface UnallocatedEventsFilters {
3572
3579
  programsIds?: number[];
3573
3580
  sessionsIds?: number[];
@@ -3579,13 +3586,6 @@ export interface Duration {
3579
3586
  startDate: string;
3580
3587
  endDate: string;
3581
3588
  }
3582
- export declare class NotifyTracker extends BondBaseEntity {
3583
- userId: number;
3584
- organizationId: number;
3585
- notifyMetadata?: any;
3586
- notfiyMethodtype: NotifyMethodEnum;
3587
- destination: string;
3588
- }
3589
3589
  export declare class CustomerIdDto {
3590
3590
  customerId: number;
3591
3591
  }
@@ -3724,16 +3724,6 @@ export declare class RefundLineItemAmountDto {
3724
3724
  id: number;
3725
3725
  refundAmount: number;
3726
3726
  }
3727
- export declare class VoidDto {
3728
- lineItems: VoidLineItemDto[];
3729
- meta?: RevertMetaDto;
3730
- }
3731
- export declare class VoidLineItemDto {
3732
- id: number;
3733
- quantity?: number;
3734
- isEdit?: boolean;
3735
- amount?: number;
3736
- }
3737
3727
  export interface PaymentResult {
3738
3728
  paymentMethodId: string;
3739
3729
  paymentMethodType: PaymentMethodTypeEnum;
@@ -3759,6 +3749,16 @@ export interface ExtendedLineItems {
3759
3749
  products: LineItems[];
3760
3750
  events: LineItems[];
3761
3751
  }
3752
+ export declare class VoidDto {
3753
+ lineItems: VoidLineItemDto[];
3754
+ meta?: RevertMetaDto;
3755
+ }
3756
+ export declare class VoidLineItemDto {
3757
+ id: number;
3758
+ quantity?: number;
3759
+ isEdit?: boolean;
3760
+ amount?: number;
3761
+ }
3762
3762
  export interface RefundResult extends PaymentsResults {
3763
3763
  successfulLineItems: RefundLineItemAmountDto[];
3764
3764
  failedLineItems: RefundLineItemAmountDto[];
@@ -4561,16 +4561,16 @@ export declare class ChangeRolePermissionsDto {
4561
4561
  export declare class CreateRoleDto {
4562
4562
  name: string;
4563
4563
  }
4564
- export declare class Permission extends BondBaseEntity {
4565
- name: string;
4566
- deletedAt?: Date;
4567
- }
4568
4564
  export declare class Role extends OrganizationConnectionBaseEntity {
4569
4565
  name: string;
4570
4566
  deletedAt?: Date;
4571
4567
  permissions: Permission[];
4572
4568
  usersRoles: UserRole[];
4573
4569
  }
4570
+ export declare class Permission extends BondBaseEntity {
4571
+ name: string;
4572
+ deletedAt?: Date;
4573
+ }
4574
4574
  export declare class UserRole extends OrganizationConnectionBaseEntity {
4575
4575
  deletedAt?: Date;
4576
4576
  userId: number;
@@ -4611,10 +4611,6 @@ export declare class ShiftManagementClosingAmount {
4611
4611
  export declare class ManagementClosingOfShiftsDto {
4612
4612
  managementClosingData: ShiftManagementClosingAmount[];
4613
4613
  }
4614
- export declare class OpenShiftDto {
4615
- openingCashAmount: number;
4616
- stationId: number;
4617
- }
4618
4614
  export declare class Shift extends OrganizationConnectionBaseEntity {
4619
4615
  stationId: number;
4620
4616
  station?: Station;
@@ -4644,3 +4640,7 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4644
4640
  closingManager?: User;
4645
4641
  reconcilingUser?: User;
4646
4642
  }
4643
+ export declare class OpenShiftDto {
4644
+ openingCashAmount: number;
4645
+ stationId: number;
4646
+ }