@bondsports/types 0.0.84 → 0.0.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -27,49 +27,6 @@ export declare class FindBookingTypeSettingDto {
27
27
  bookingDate: string;
28
28
  bookingTime: string;
29
29
  }
30
- export declare class AddressDto {
31
- city: string;
32
- state: string;
33
- country: string;
34
- geo: number[];
35
- }
36
- export declare class OpeningTimeDto {
37
- open: string;
38
- close: string;
39
- dayOfWeek: number;
40
- }
41
- export declare class CreateFacilityDto {
42
- name: string;
43
- sports: number[];
44
- description?: string;
45
- longDescription?: string;
46
- info?: string;
47
- address: AddressDto;
48
- timezone: string;
49
- amenities: number[];
50
- openingTimes: OpeningTimeDto[];
51
- resourcesIds?: number[];
52
- }
53
- export declare class UpdateFacilityDetailsDto {
54
- name?: string;
55
- description?: string;
56
- longDescription?: string;
57
- info?: string;
58
- address?: AddressDto;
59
- timezone?: string;
60
- }
61
- export declare class UpdateFacilityOpeningTimesDto {
62
- openingTimes: OpeningTimeDto[];
63
- }
64
- export declare class UpdateFacilitySportsDto {
65
- sports: number[];
66
- }
67
- export declare class UpdateFacilityAmenitiesDto {
68
- amenities: number[];
69
- }
70
- export declare class FindFacilitiesOptionsDto extends PaginationQuery {
71
- nameSearch?: string;
72
- }
73
30
  export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
74
31
  membershipId: number;
75
32
  }
@@ -229,6 +186,93 @@ export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
229
186
  isWaiverSigned?: string;
230
187
  statuses?: string;
231
188
  }
189
+ export declare class AddressDto {
190
+ city: string;
191
+ state: string;
192
+ country: string;
193
+ geo: number[];
194
+ }
195
+ export declare class OpeningTimeDto {
196
+ open: string;
197
+ close: string;
198
+ dayOfWeek: number;
199
+ }
200
+ export declare class CreateFacilityDto {
201
+ name: string;
202
+ sports: number[];
203
+ description?: string;
204
+ longDescription?: string;
205
+ info?: string;
206
+ address: AddressDto;
207
+ timezone: string;
208
+ amenities: number[];
209
+ openingTimes: OpeningTimeDto[];
210
+ resourcesIds?: number[];
211
+ }
212
+ export declare class UpdateFacilityDetailsDto {
213
+ name?: string;
214
+ description?: string;
215
+ longDescription?: string;
216
+ info?: string;
217
+ address?: AddressDto;
218
+ timezone?: string;
219
+ }
220
+ export declare class UpdateFacilityOpeningTimesDto {
221
+ openingTimes: OpeningTimeDto[];
222
+ }
223
+ export declare class UpdateFacilitySportsDto {
224
+ sports: number[];
225
+ }
226
+ export declare class UpdateFacilityAmenitiesDto {
227
+ amenities: number[];
228
+ }
229
+ export declare class FindFacilitiesOptionsDto extends PaginationQuery {
230
+ nameSearch?: string;
231
+ }
232
+ export declare class FindFamilyAccountsDto {
233
+ userId: number;
234
+ }
235
+ export declare class FindFamilyAccountsCustomerDto {
236
+ customerId: number;
237
+ organizationId: number;
238
+ }
239
+ export declare class FindUsersInFamilyAccountDto {
240
+ familyAccountId: number;
241
+ }
242
+ export declare class CreateFamilyAccountDto {
243
+ familyName: string;
244
+ userId: number;
245
+ }
246
+ export declare class UpdateFamilyAccountNameDto {
247
+ familyName: string;
248
+ familyAccountId: number;
249
+ }
250
+ export declare class AddUserToFamilyAccountDto {
251
+ familyAccountId: number;
252
+ isUserAdmin: boolean;
253
+ firstName: string;
254
+ lastName: string;
255
+ gender: GenderEnum;
256
+ birthDate: string;
257
+ sports?: number[];
258
+ email?: string;
259
+ }
260
+ export declare class RemoveUserFromFamilyAccountDto {
261
+ userId: number;
262
+ familyAccountId: number;
263
+ }
264
+ export declare class FindOneParams {
265
+ id: number;
266
+ }
267
+ export declare class PaginationQuery {
268
+ page: number;
269
+ itemsPerPage: number;
270
+ }
271
+ export declare class PaginationRangeQuery {
272
+ startPage: number;
273
+ endPage: number;
274
+ itemsPerPage: number;
275
+ }
232
276
  export declare class FindGlCodeByOrganizationIdDto {
233
277
  organizationId: number;
234
278
  }
@@ -312,37 +356,61 @@ export declare class MoveTeamOrMemberDto implements IMoveSeason {
312
356
  export declare class MoveTeamOrMembersByCsvDTO {
313
357
  fileName: string;
314
358
  }
315
- export declare class FindFamilyAccountsDto {
316
- userId: number;
317
- }
318
- export declare class FindFamilyAccountsCustomerDto {
319
- customerId: number;
359
+ export declare class CreateMembershipDto {
320
360
  organizationId: number;
361
+ name: string;
362
+ description?: string;
363
+ customerTypes: CustomerInMembershipTypeEnum[];
364
+ activity: SportsEnum;
365
+ facilityId: number;
366
+ questionnaires: number[];
367
+ minAgeYears: number;
368
+ maxAgeYears: number;
369
+ gender: GenderEnum;
370
+ maxMembers?: number;
371
+ maxMaleMembers?: number;
372
+ maxFemaleMembers?: number;
373
+ startDate: string;
374
+ endDate: string;
375
+ registrationStartDate?: Date;
376
+ registrationEndDate?: Date;
377
+ membershipType: MembershipTypeEnum;
378
+ durationMonths: number;
379
+ longDescription?: string;
380
+ isAutoRenew?: boolean;
321
381
  }
322
- export declare class FindUsersInFamilyAccountDto {
323
- familyAccountId: number;
382
+ export declare class UpdateMembrshipDto extends CreateMembershipDto {
383
+ id: number;
324
384
  }
325
- export declare class CreateFamilyAccountDto {
326
- familyName: string;
327
- userId: number;
385
+ export declare class UpdateMembershipMediaDto {
386
+ membershipId: number;
387
+ mediaId: number;
328
388
  }
329
- export declare class UpdateFamilyAccountNameDto {
330
- familyName: string;
331
- familyAccountId: number;
389
+ export declare class FindMembershipByIdDto {
390
+ membershipId: number;
332
391
  }
333
- export declare class AddUserToFamilyAccountDto {
334
- familyAccountId: number;
335
- isUserAdmin: boolean;
336
- firstName: string;
337
- lastName: string;
338
- gender: GenderEnum;
339
- birthDate: string;
340
- sports?: number[];
341
- email?: string;
392
+ export declare class FindMembershipsByOrganizationIdDto {
393
+ organizationId: number;
342
394
  }
343
- export declare class RemoveUserFromFamilyAccountDto {
395
+ export declare class FindMembershipsByUserIdDto {
344
396
  userId: number;
345
- familyAccountId: number;
397
+ }
398
+ export declare class SetMembersStartDateByOrganization extends FindMembershipsByOrganizationIdDto {
399
+ startDate: string;
400
+ }
401
+ export declare class MembershipIdsDto {
402
+ membershipIds?: number[];
403
+ }
404
+ export declare class MemberIdDto {
405
+ memberId?: number;
406
+ }
407
+ export declare class FindMembersOptionsDto extends PaginationQuery {
408
+ nameEmailSearch?: string;
409
+ pastMemberships?: string;
410
+ }
411
+ export declare class CancelMembershipDto {
412
+ isImmediatelyCancel: boolean;
413
+ cancellationReason?: string;
346
414
  }
347
415
  export declare class CreateEntitlementTermsDto {
348
416
  organizationId: number;
@@ -386,18 +454,6 @@ export declare class CreateGroupPricingWithProduct {
386
454
  discountValue?: number;
387
455
  discountMethod?: DiscountMethodsEnum;
388
456
  }
389
- export declare class FindOneParams {
390
- id: number;
391
- }
392
- export declare class PaginationQuery {
393
- page: number;
394
- itemsPerPage: number;
395
- }
396
- export declare class PaginationRangeQuery {
397
- startPage: number;
398
- endPage: number;
399
- itemsPerPage: number;
400
- }
401
457
  export declare class FindByProductIdDto {
402
458
  productId: number;
403
459
  }
@@ -618,79 +674,23 @@ export declare class createResourceDto {
618
674
  export declare class archiveDto {
619
675
  isArchive: boolean;
620
676
  }
621
- export declare class CreateMembershipDto {
677
+ export declare class CreateUpdateVariantsDto {
622
678
  organizationId: number;
623
- name: string;
624
- description?: string;
625
- customerTypes: CustomerInMembershipTypeEnum[];
626
- activity: SportsEnum;
627
- facilityId: number;
628
- questionnaires: number[];
629
- minAgeYears: number;
630
- maxAgeYears: number;
631
- gender: GenderEnum;
632
- maxMembers?: number;
633
- maxMaleMembers?: number;
634
- maxFemaleMembers?: number;
635
- startDate: string;
636
- endDate: string;
637
- registrationStartDate?: Date;
638
- registrationEndDate?: Date;
639
- membershipType: MembershipTypeEnum;
640
- durationMonths: number;
641
- longDescription?: string;
642
- isAutoRenew?: boolean;
679
+ parentProductId: number;
680
+ variantTitles: VariantTitleDto[];
681
+ variants: VariantDto[];
643
682
  }
644
- export declare class UpdateMembrshipDto extends CreateMembershipDto {
645
- id: number;
683
+ export declare class VariantTitleDto {
684
+ titleName: string;
685
+ titleId: number;
646
686
  }
647
- export declare class UpdateMembershipMediaDto {
648
- membershipId: number;
649
- mediaId: number;
650
- }
651
- export declare class FindMembershipByIdDto {
652
- membershipId: number;
653
- }
654
- export declare class FindMembershipsByOrganizationIdDto {
655
- organizationId: number;
656
- }
657
- export declare class FindMembershipsByUserIdDto {
658
- userId: number;
659
- }
660
- export declare class SetMembersStartDateByOrganization extends FindMembershipsByOrganizationIdDto {
661
- startDate: string;
662
- }
663
- export declare class MembershipIdsDto {
664
- membershipIds?: number[];
665
- }
666
- export declare class MemberIdDto {
667
- memberId?: number;
668
- }
669
- export declare class FindMembersOptionsDto extends PaginationQuery {
670
- nameEmailSearch?: string;
671
- pastMemberships?: string;
672
- }
673
- export declare class CancelMembershipDto {
674
- isImmediatelyCancel: boolean;
675
- cancellationReason?: string;
676
- }
677
- export declare class CreateUpdateVariantsDto {
678
- organizationId: number;
679
- parentProductId: number;
680
- variantTitles: VariantTitleDto[];
681
- variants: VariantDto[];
682
- }
683
- export declare class VariantTitleDto {
684
- titleName: string;
685
- titleId: number;
686
- }
687
- export declare class VariantDto {
688
- name: string;
689
- price: number;
690
- variantId: number;
691
- currency: CurrencyEnum;
692
- startDate: Date;
693
- endDate: Date;
687
+ export declare class VariantDto {
688
+ name: string;
689
+ price: number;
690
+ variantId: number;
691
+ currency: CurrencyEnum;
692
+ startDate: Date;
693
+ endDate: Date;
694
694
  }
695
695
  export declare class FindProgramSeasonsByProgramIdDto {
696
696
  programId: number;
@@ -1272,6 +1272,21 @@ export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1272
1272
  export declare class EntitlementGroup extends OrganizationConnectionBaseEntity {
1273
1273
  name: string | null;
1274
1274
  }
1275
+ export declare class EventAttendee extends BondBaseEntity {
1276
+ status: RequestStatusEnum | null;
1277
+ hasPaid: boolean | null;
1278
+ paymentId: number | null;
1279
+ attendeeId: number;
1280
+ eventId?: number | null;
1281
+ productUserId?: number;
1282
+ answerTitleIds?: number[];
1283
+ entryStatus?: EntryStatusEnum;
1284
+ addonProductUserIds?: number[];
1285
+ deletedAt?: Date;
1286
+ attendee: User;
1287
+ event: Event;
1288
+ purchasedResource: PurchasedResource;
1289
+ }
1275
1290
  export declare class EntitlementTerms extends OrganizationConnectionBaseEntity {
1276
1291
  groupId: number;
1277
1292
  terms: IEntitlementTerms[];
@@ -1331,21 +1346,6 @@ export declare class Event extends OrganizationConnectionBaseEntity {
1331
1346
  slots: Slot[];
1332
1347
  purchasedResources: PurchasedResource[];
1333
1348
  }
1334
- export declare class EventAttendee extends BondBaseEntity {
1335
- status: RequestStatusEnum | null;
1336
- hasPaid: boolean | null;
1337
- paymentId: number | null;
1338
- attendeeId: number;
1339
- eventId?: number | null;
1340
- productUserId?: number;
1341
- answerTitleIds?: number[];
1342
- entryStatus?: EntryStatusEnum;
1343
- addonProductUserIds?: number[];
1344
- deletedAt?: Date;
1345
- attendee: User;
1346
- event: Event;
1347
- purchasedResource: PurchasedResource;
1348
- }
1349
1349
  export declare class Facility extends OrganizationConnectionBaseEntity {
1350
1350
  name: string;
1351
1351
  description?: string;
@@ -1412,6 +1412,19 @@ export declare class GroupsInDivisions extends BondBaseEntity {
1412
1412
  divisionId: number;
1413
1413
  deletedAt?: Date;
1414
1414
  }
1415
+ export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
1416
+ groupId: number;
1417
+ itemId: number;
1418
+ itemType: ResourceNameTypeEnum;
1419
+ startDate: Date;
1420
+ endDate: Date;
1421
+ price: number;
1422
+ overridesPrice: boolean;
1423
+ deletedAt?: Date;
1424
+ group?: EntitlementGroup;
1425
+ discountMethod?: DiscountMethodsEnum;
1426
+ discountValue?: number;
1427
+ }
1415
1428
  export declare class Invoice extends OrganizationConnectionBaseEntity {
1416
1429
  price: number;
1417
1430
  paymentProcessorId: string;
@@ -1450,19 +1463,6 @@ export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1450
1463
  mailParams?: any;
1451
1464
  memo?: string;
1452
1465
  }
1453
- export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
1454
- groupId: number;
1455
- itemId: number;
1456
- itemType: ResourceNameTypeEnum;
1457
- startDate: Date;
1458
- endDate: Date;
1459
- price: number;
1460
- overridesPrice: boolean;
1461
- deletedAt?: Date;
1462
- group?: EntitlementGroup;
1463
- discountMethod?: DiscountMethodsEnum;
1464
- discountValue?: number;
1465
- }
1466
1466
  export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
1467
1467
  content: string;
1468
1468
  creatingUserId: number;
@@ -1607,22 +1607,6 @@ export declare class LineItems extends BondBaseEntity {
1607
1607
  displayUnitPrice?: number;
1608
1608
  displayQuantity?: number;
1609
1609
  }
1610
- export declare class LinkedAccounts extends BondBaseEntity {
1611
- id: number;
1612
- provider: string;
1613
- providerId: string | null;
1614
- parentId: number | null;
1615
- parentType: string | null;
1616
- status: number | null;
1617
- token: string | null;
1618
- refreshToken: string | null;
1619
- tokenCreatedAt: Date | null;
1620
- tokenValidUpTo: Date | null;
1621
- createdAt: Date;
1622
- updatedAt: Date;
1623
- user: User;
1624
- userId: number | null;
1625
- }
1626
1610
  export declare class Media extends BondBaseEntity {
1627
1611
  url: string;
1628
1612
  name: string | null;
@@ -1815,6 +1799,21 @@ export declare class Price extends OrganizationConnectionBaseEntity {
1815
1799
  discountValue?: number;
1816
1800
  taxIncludedPrice?: number;
1817
1801
  }
1802
+ export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1803
+ parentProductId: number;
1804
+ childProductId: number;
1805
+ relationType: PackageProductsRelationTypeEnum;
1806
+ timePeriod: AddonTimePeriodEnum;
1807
+ deletedAt?: Date;
1808
+ productResource: ProductResource;
1809
+ childProduct: Product;
1810
+ parentProduct: Product;
1811
+ price: number;
1812
+ isFlatPrice: boolean;
1813
+ durationMinutes?: number;
1814
+ durationDays?: number;
1815
+ level?: ProductPackageLevelEnum;
1816
+ }
1818
1817
  export declare class Product extends OrganizationConnectionBaseEntity {
1819
1818
  name: string;
1820
1819
  quantity: number;
@@ -1865,21 +1864,6 @@ export declare class Product extends OrganizationConnectionBaseEntity {
1865
1864
  activityTimes: ActivityTimes[];
1866
1865
  purchasedResources: PurchasedResource[];
1867
1866
  }
1868
- export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1869
- parentProductId: number;
1870
- childProductId: number;
1871
- relationType: PackageProductsRelationTypeEnum;
1872
- timePeriod: AddonTimePeriodEnum;
1873
- deletedAt?: Date;
1874
- productResource: ProductResource;
1875
- childProduct: Product;
1876
- parentProduct: Product;
1877
- price: number;
1878
- isFlatPrice: boolean;
1879
- durationMinutes?: number;
1880
- durationDays?: number;
1881
- level?: ProductPackageLevelEnum;
1882
- }
1883
1867
  export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
1884
1868
  productId: number;
1885
1869
  maxMonths?: number;
@@ -1915,6 +1899,22 @@ export declare class ProductsReservedForCustomers extends OrganizationConnection
1915
1899
  deletedAt?: Date;
1916
1900
  product: Product;
1917
1901
  }
1902
+ export declare class LinkedAccounts extends BondBaseEntity {
1903
+ id: number;
1904
+ provider: string;
1905
+ providerId: string | null;
1906
+ parentId: number | null;
1907
+ parentType: string | null;
1908
+ status: number | null;
1909
+ token: string | null;
1910
+ refreshToken: string | null;
1911
+ tokenCreatedAt: Date | null;
1912
+ tokenValidUpTo: Date | null;
1913
+ createdAt: Date;
1914
+ updatedAt: Date;
1915
+ user: User;
1916
+ userId: number | null;
1917
+ }
1918
1918
  export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1919
1919
  productId: number;
1920
1920
  userId: number;
@@ -2351,892 +2351,892 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2351
2351
  membershipCollectionId?: string;
2352
2352
  programsCollectionId?: string;
2353
2353
  }
2354
- export declare enum EntitlementTermsTypesEnum {
2355
- QUESTION = "question",
2356
- CITY = "city",
2357
- MEMBERSHIP = "membership"
2358
- }
2359
- export declare enum ResourceNameTypeEnum {
2360
- EVENT = "event",
2361
- VENUE = "venue",
2362
- TEAM = "team",
2363
- LEAGUE = "league",
2364
- USER = "user",
2365
- ORGANIZATION = "organization",
2366
- APP = "app",
2367
- FEED = "feed",
2368
- MATCH = "match",
2369
- ROUND = "round",
2370
- PORTAL = "portal",
2371
- SEASON = "season",
2372
- TOURNAMENT = "tournament",
2373
- MEMBERSHIP = "membership",
2374
- DIVISION = "division",
2375
- GAMESLOT = "gameslot",
2376
- SPACE = "space",
2377
- RESERVATION = "reservation",
2378
- ORDER = "order",
2379
- CUSTOMER = "customer",
2380
- PACKAGE = "package",
2381
- FACILITY = "facility",
2382
- PROGRAM = "program",
2383
- PROGRAM_SEASON = "program_season",
2384
- PRODUCT = "product",
2385
- GROUP = "group",
2386
- VARIANT = "variant",
2387
- SLOT = "slot",
2388
- ADDON = "addon"
2354
+ export interface IEntitlementTerms {
2355
+ type: EntitlementTermsTypesEnum;
2356
+ id?: number;
2357
+ value?: string;
2358
+ minValue?: string;
2359
+ maxValue?: string;
2389
2360
  }
2390
- export declare enum DirectBookingTypesEnum {
2391
- DIRECT_FOR_ALL = "all",
2392
- DIRECT_FOR_NONE = "none",
2393
- DIRECT_VETTED_ONLY = "vetted_only",
2394
- NO_SETTING = "no_setting"
2361
+ export interface IQuestionAnswerObject {
2362
+ questionId: number;
2363
+ value: string;
2395
2364
  }
2396
- export declare enum GenderEnum {
2397
- OTHER = 1,
2398
- MALE = 2,
2399
- FEMALE = 3
2365
+ export interface ILowestPriceForItem {
2366
+ itemId: number;
2367
+ itemType: ResourceNameTypeEnum;
2368
+ groupId: number;
2369
+ groupName?: string;
2370
+ price: number;
2371
+ overridesPrice: boolean;
2400
2372
  }
2401
- export declare enum LevelOfPlayEnum {
2402
- BEGINNER = 1,
2403
- INTERMEDIATE = 2,
2404
- ADVANCED = 3,
2405
- SEMIPRO = 4,
2406
- SPECTATOR = 5
2373
+ export interface IResourcesAvailability {
2374
+ resourceType: ResourceNameTypeEnum;
2375
+ quantity: number;
2376
+ resourcesIds: number[];
2377
+ isPunchCard: boolean;
2378
+ resources?: any[];
2407
2379
  }
2408
- export declare enum ProgramTypesEnum {
2409
- LEAGUE = 0,
2410
- TOURNAMENT = 1,
2411
- CLASS = 2,
2412
- CLINIC = 3,
2413
- CAMP = 4,
2414
- LESSON = 5,
2415
- CLUB_TEAM = 6
2380
+ export interface IPackageResponse {
2381
+ parentProduct: Product;
2382
+ children: IChildProduct[];
2416
2383
  }
2417
- export declare enum ProgramSeasonTypesEnum {
2418
- ROUND_ROBIN = 1,
2419
- BRACKETS = 2,
2420
- CAMP_CLINIC_CLASS = 3
2384
+ export interface IChildProduct {
2385
+ product: Product;
2386
+ relationType: PackageProductsRelationTypeEnum;
2387
+ timePeriod?: AddonTimePeriodEnum;
2421
2388
  }
2422
- export declare enum SportsEnum {
2423
- SOFTBALL = 1,
2424
- BASKETBALL = 2,
2425
- FOOTBALL = 3,
2426
- SOCCER = 4,
2427
- BOWLING = 5,
2428
- BOCCEBALL = 6,
2429
- CORNHOLE = 7,
2430
- DODGEBALL = 8,
2431
- FRISBEE = 9,
2432
- HOCKEY = 10,
2433
- KICKBALL = 11,
2434
- LACROSSE = 12,
2435
- PINGPONG = 13,
2436
- RUGBY = 14,
2437
- SKEEBALL = 15,
2438
- TENNIS = 16,
2439
- VOLLEYBALL = 17,
2440
- WIFFLEBALL = 18,
2441
- BADMINTON = 19,
2442
- FITNESS = 20,
2443
- GOLF = 21,
2444
- PILATES = 22,
2445
- RUNNING = 23,
2446
- SKIING = 24,
2447
- SNOWBOARDING = 25,
2448
- YOGA = 26,
2449
- BROOMBALL = 27,
2450
- CRICKET = 28,
2451
- CROSSFIT = 29,
2452
- CYCLING = 30,
2453
- FIELD_HOCKEY = 31,
2454
- RACQUETBALL = 32,
2455
- SPINNING = 33,
2456
- SQUASH = 34,
2457
- SURFING = 35,
2458
- SWIMMING = 36,
2459
- WIND_SURFING = 37,
2460
- ADVENTURE = 38,
2461
- BOXING = 39,
2462
- BASEBALL = 40,
2463
- DANCE = 41,
2464
- KICKBOXING = 42,
2465
- MARTIAL_ARTS = 43,
2466
- OUTDOORS = 44,
2467
- ROWING = 45,
2468
- SAILING = 46,
2469
- SUP = 47,
2470
- TRIATHLON = 48,
2471
- HANDBALL = 49,
2472
- CATCHBALL = 50,
2473
- BLITZBALL = 51,
2474
- ROLLER_DERBY = 52,
2475
- ICE_SKATING = 53,
2476
- PICKLEBALL = 54,
2477
- AXE_THROWING = 55,
2478
- FURSAL = 56,
2479
- BIRTHDAY = 57,
2480
- CORPRATE_EVENTS = 58,
2481
- OTHER = 999
2389
+ export interface ISeasonAttendeeInfo {
2390
+ applicationAnswers: Answer[];
2391
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2392
+ invoices: Order[];
2393
+ payments: Invoice[];
2394
+ products: Product[];
2395
+ redeemNext: ProductsUsers;
2482
2396
  }
2483
- export declare enum PublishingStatusEnum {
2484
- DRAFT = 1,
2485
- PUBLISHED = 2,
2486
- CLOSED = 3,
2487
- CANCELLED = 4,
2488
- ARCHIVE = 5,
2489
- UNPUBLISHED = 6
2397
+ export interface ISeasonAttendeeListInfo {
2398
+ userId: number;
2399
+ userFirstName: string;
2400
+ userLastName: string;
2401
+ userGender: number;
2402
+ userBirthDate: Date;
2403
+ userProfilePicUrl: string;
2404
+ customerId: number;
2405
+ customerEmail: string;
2406
+ paymentStatus: string;
2407
+ productName: string;
2408
+ punchCard: boolean;
2490
2409
  }
2491
- export declare enum ProgramHighlightTypeEnum {
2492
- OTHER = 1,
2493
- MINAGE = 2,
2494
- MAXAGE = 3,
2495
- GENDER = 4,
2496
- LEVELOFPLAY = 5,
2497
- GAMESSEASON = 6,
2498
- MINWEEK = 7,
2499
- SURFACE = 8,
2500
- FORMAT = 9,
2501
- PLAYERS_PER_TEAM = 10,
2502
- MATCH_LENGTH = 12
2410
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2411
+ segmentType: ResourceNameTypeEnum;
2412
+ participantRegisteredDate?: string;
2503
2413
  }
2504
- export declare enum RequestStatusEnum {
2505
- PENDING = 1,
2506
- ACCEPTED = 2,
2507
- DECLINED = 3
2414
+ export declare class EventAsSeasonSegment extends Event {
2415
+ segmentType: ResourceNameTypeEnum;
2416
+ participantRegisteredDate?: string;
2508
2417
  }
2509
- export declare enum PaymentStatusEnum {
2510
- NOT_PAID = "not_paid",
2511
- PARTIAL_PAYMENT = "partial",
2512
- FULLY_PAID = "paid",
2513
- REFUNDED = "refunded",
2514
- VOID = "void"
2418
+ export interface ITokenResonse {
2419
+ token: string;
2515
2420
  }
2516
- export declare enum ReservationExtendedEnum {
2517
- PURCHASE_ORDER = "purchase_order"
2421
+ export interface IStripeBondInvoices {
2422
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2423
+ bondPaidInvoice: Invoice;
2424
+ order?: Order;
2425
+ customer?: Customer;
2518
2426
  }
2519
- export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2520
- export declare enum ReservationStatusEnum {
2521
- PLANNED = "Planned",
2522
- APPROVED = "Approved",
2523
- AWAITING_ADMIN = "Awaiting Admin",
2524
- AWAITING_CUSTOMER = "Awaiting Customer",
2525
- REJECTED = "Rejected",
2526
- CANCELED = "Canceled"
2427
+ export interface IPartialPaymentData {
2428
+ purchasingUserId: number;
2429
+ paymentData: PurchasePaymentDto;
2430
+ amountToPay: number;
2527
2431
  }
2528
- export declare enum PaymentStatusV1Enum {
2529
- SENT_TO_CLIENT = 1,
2530
- SENT_FOR_PAYMENT = 2,
2531
- ACCEPTED = 3,
2532
- REJECTED = 4,
2533
- CANCELLED = 5,
2534
- FRAUD = 6,
2535
- NOT_RELEVANT = 7,
2536
- PENDING = 8
2432
+ export interface IPayment {
2433
+ id: number;
2434
+ total: number;
2435
+ paymentMethod: PaymentMethodTypeEnum;
2436
+ status: PaymentStatusEnum;
2437
+ createdAt: Date;
2438
+ invoices: number[];
2537
2439
  }
2538
- export declare enum PaymentMethodsEnum {
2539
- STRIPE = 1,
2540
- CASH = 3
2440
+ export interface IPaginationData<T> {
2441
+ meta: {
2442
+ totalItems: number;
2443
+ itemsPerPage: number;
2444
+ totalPages: number;
2445
+ currentPage: number;
2446
+ };
2447
+ data: T[];
2541
2448
  }
2542
- export declare enum PackageProductsRelationTypeEnum {
2543
- CHILD = "child",
2544
- UPSALE = "upsale"
2449
+ export interface IPricesOfProductsResults {
2450
+ productId: number;
2451
+ userId: number;
2452
+ price: number;
2453
+ groupId?: number;
2454
+ groupName?: string;
2455
+ originalPrice?: number;
2456
+ priceWithoutTax: number;
2457
+ tax: number;
2458
+ isTaxInclusive: boolean;
2545
2459
  }
2546
- export declare enum AddonTimePeriodEnum {
2547
- FULL = "full",
2548
- SESSION = "session",
2549
- EVENT = "event"
2460
+ export interface IPaymentMethodToFundLeft {
2461
+ paymentType: PaymentMethodTypeEnum;
2462
+ paymentMethodId: string;
2463
+ fundLeft: number;
2464
+ ccLast4?: string;
2465
+ ccBrand?: string;
2550
2466
  }
2551
- export declare enum CurrencyEnum {
2552
- USD = "USD"
2467
+ export interface IVariantsAndTitle {
2468
+ title: VariantTitle;
2469
+ variants: Variant[];
2553
2470
  }
2554
- export declare enum NotificationTypeEnum {
2555
- BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2556
- BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2557
- BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2471
+ export interface IProgramSeasonActivityTimes {
2472
+ dayOfWeek: number;
2473
+ open: string;
2474
+ close: string;
2558
2475
  }
2559
- export declare enum ProductTypesEnum {
2560
- RESERVATION = "reservation",
2561
- REGISTRATION = "registration",
2562
- MEMBERSHIP = "membership",
2563
- GOODS = "goods",
2564
- PACKAGE = "package",
2565
- REFUND_COMPENSATION = "refund",
2566
- CASH_OVER_SHORT = "cash_over_short",
2567
- PETTY_CASH = "petty_cash",
2568
- LEAGUE_REGISTRATION = "league_registration",
2569
- TAX = "tax"
2476
+ export interface IProgramSeasonActivityTimesAsDates {
2477
+ date: string;
2478
+ startTime: string;
2479
+ endTime: string;
2570
2480
  }
2571
- export declare enum OrderStatusEnum {
2572
- ACTIVE = "active",
2573
- WAITING_ADMIN = "waitingAdmin",
2574
- WAITING_CLIENT = "waitingClient",
2575
- CANCELED = "canceled"
2481
+ export interface IBlockedDates {
2482
+ name: string;
2483
+ startDate: Date;
2484
+ endDate: Date;
2576
2485
  }
2577
- export declare enum LineItemsStatusEnum {
2578
- USER_PRODUCT = "UserProduct",
2579
- RENTAL_PRODUCT = "RentalProduct"
2486
+ export interface ISingleMemberForRenewal {
2487
+ member_id: number;
2488
+ member_membershipId: number;
2489
+ member_userId: number;
2490
+ member_nextPaymentMethodId?: string;
2491
+ member_nextPaymentType?: PaymentMethodTypeEnum;
2492
+ member_answerTitleIds?: number[];
2493
+ member_organizationId: number;
2494
+ line_paidAmount: number;
2495
+ line_productId: number;
2496
+ order_payingUserId: number;
2497
+ order_paymentMethodId: string;
2498
+ order_paymentType: PaymentMethodTypeEnum;
2499
+ endDate: Date;
2500
+ membership_name: string;
2501
+ user_firstName: string;
2502
+ user_lastName: string;
2503
+ user_email: string;
2580
2504
  }
2581
- export declare enum ProductSubTypesEnum {
2582
- SEASON_INDIVIDUAL = "season_individual",
2583
- SEASON_TEAM = "season_team",
2584
- SEASON_PER_PLAYER = "season_per_player"
2505
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2506
+ package_parentProductId: number;
2507
+ line2_paidAmount: number;
2508
+ familyid: number;
2509
+ order_id: number;
2585
2510
  }
2586
- export declare enum PaymentMethodTypeEnum {
2587
- CREDIT_CARD = "card",
2588
- ACH = "ach",
2589
- CASH = "cash",
2590
- CHECK = "check",
2591
- BALANCE = "balance",
2592
- CARD_ON_TERMINAL = "card-on-terminal",
2593
- OTHER = "other",
2594
- MIGRATED = "migrated",
2595
- VOID = "void"
2511
+ export interface IResourceRegistrationData {
2512
+ id: number;
2513
+ resourceType: ResourceNameTypeEnum;
2514
+ openNumDays?: number;
2515
+ openNumMinutes?: number;
2516
+ openTime?: string;
2517
+ closeNumDays?: number;
2518
+ closeNumMinutes?: number;
2519
+ closeTime?: string;
2520
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
2596
2521
  }
2597
- export declare enum RefundTypeEnum {
2598
- LEAVE_BALANCE = "leave_balance",
2599
- REDUCE_BALANCE = "reduce_balance"
2522
+ export interface IResourceDataForConstraintsCalc {
2523
+ id: number;
2524
+ startDate: string;
2525
+ startTime: string;
2600
2526
  }
2601
- export declare enum CustomerInMembershipTypeEnum {
2602
- INDIVIDUAL = "individual",
2603
- FAMILY = "family",
2604
- ORGANIZATION = "organization"
2527
+ export interface IRegistrationConstraintsSetting {
2528
+ numDays?: number;
2529
+ numMinutes?: number;
2605
2530
  }
2606
- export declare enum MembershipTypeEnum {
2607
- FIXED = "fix_membership",
2608
- ROLLING = "rolling_membership"
2531
+ export interface IAttendeeDataToNotify {
2532
+ firstName: string;
2533
+ lastName: string;
2534
+ email: string;
2535
+ sessionName: string;
2536
+ parentSessionName?: string;
2537
+ organizationName: string;
2538
+ programName: string;
2609
2539
  }
2610
- export declare enum CustomerTypeEnum {
2611
- USER = "user",
2612
- FAMILY = "family",
2613
- ORGANIZATION = "organization"
2540
+ export interface IEventInSchedule {
2541
+ eventId: number;
2542
+ eventName: string;
2543
+ eventStartDate: string;
2544
+ eventEndDate: string;
2545
+ eventStartTime: string;
2546
+ eventEndTime: string;
2547
+ programId: number;
2548
+ programName: string;
2549
+ programType: ProgramTypesEnum;
2550
+ sessionId: number;
2551
+ sessionName: string;
2552
+ sports: number;
2553
+ spaces: {
2554
+ spaceId: number;
2555
+ spaceName: string;
2556
+ }[];
2557
+ status?: RegistrationValidationStatusEnum;
2614
2558
  }
2615
- export declare enum GroupStatusEnum {
2616
- ACTIVE = 1,
2617
- INACTIVE = 2,
2618
- DRAFT = 3
2559
+ export interface ISlotInSchedule {
2560
+ facilityId: number;
2561
+ facilityName: string;
2562
+ spaces: ISpaceWithSlots[];
2619
2563
  }
2620
- export declare enum FutureInstallmentStatusEnum {
2621
- FUTURE = "future",
2622
- SUCCEEDED = "succeeded",
2623
- FAILED = "failed",
2624
- CANCELED = "canceled"
2564
+ export interface ISpaceWithSlots {
2565
+ id: number;
2566
+ name: string;
2567
+ slots: ISlotReservationData[];
2625
2568
  }
2626
- export declare enum EntryStatusEnum {
2627
- ENTERED = 1,
2628
- NOT_ENTERED = 2,
2629
- CANCELED = 3
2569
+ export interface ISlotReservationData {
2570
+ reservationId: number;
2571
+ reservationName: string;
2572
+ date: string;
2573
+ startTime: string;
2574
+ endTime: string;
2575
+ notes: string;
2576
+ spaceId: number;
2577
+ isRental: boolean;
2578
+ slotType: SlotTypeEnum;
2579
+ slotId: number;
2580
+ eventId: number;
2581
+ isPrivate: boolean;
2630
2582
  }
2631
- export declare enum PurchasedResourceStatusEnum {
2632
- ACTIVE = 1,
2633
- MOVED = 2,
2634
- CANCELED = 3
2583
+ export interface IRawEventInSchedule extends IEventInSchedule {
2584
+ parentSessionId: number;
2585
+ parentSessionName: string;
2586
+ eventTimezone: string;
2587
+ maxParticipants: number;
2588
+ maxMaleParticipants: number;
2589
+ maxFemaleParticipants: number;
2590
+ isPunchCard: boolean;
2635
2591
  }
2636
- export declare enum TeamCanJoinEnum {
2637
- ANYONE = "anyone",
2638
- BY_INVITE = "byInvite",
2639
- CAPTAIN_APPROVAL = "captainApproval"
2592
+ export interface IBasicSpaceAndSlotCreator {
2593
+ id: number;
2594
+ name: string;
2595
+ bookingCreatorId: number;
2640
2596
  }
2641
- export declare enum TeamMemberStatusEnum {
2642
- PENDING = 1,
2643
- ACTIVE = 2,
2644
- DECLINED = 3,
2645
- SUSPENDED = 4,
2646
- INACTIVE = 5,
2647
- INVITED = 6
2597
+ export interface IRawSlotInSchedule {
2598
+ startDate: string;
2599
+ endDate: string;
2600
+ startTime: string;
2601
+ endTime: string;
2602
+ reservationId: number;
2603
+ eventTitle: string;
2604
+ publicNotes: string;
2605
+ spaceId: number;
2606
+ creatorType: ResourceNameTypeEnum;
2607
+ slotType: SlotTypeEnum;
2608
+ slotId: number;
2609
+ eventId: number;
2610
+ isPrivate: boolean;
2648
2611
  }
2649
- export declare enum TeamMemberRoleEnum {
2650
- NULL = 0,
2651
- ADMIN = 1
2612
+ export interface IPurchasedResourcesRaw {
2613
+ purchasedId: number;
2614
+ purchasedProductUserId: number;
2615
+ purchasedResourceId: number;
2616
+ purchasedResourceType: ResourceNameTypeEnum;
2617
+ purchasedStatus: PurchasedResourceStatusEnum;
2618
+ pUserId: number;
2619
+ pUserPaymentStatus: PaymentStatusEnum;
2620
+ pUserProductId: number;
2621
+ pUserProductName: string;
2622
+ pUserProductPrice: number;
2623
+ pUserProductPriceCurrency: string;
2624
+ pUserProductQuantity: number;
2625
+ pUserProductQuantityLeft: number;
2626
+ pUserUserId: number;
2652
2627
  }
2653
- export declare enum DayOfWeekEnum {
2654
- SUNDAY = 0,
2655
- MONDAY = 1,
2656
- TUESDAY = 2,
2657
- WEDNESDAY = 3,
2658
- THURSDAY = 4,
2659
- FRIDAY = 5,
2660
- SATURDAY = 6
2628
+ export interface IUsersPasses {
2629
+ userId: number;
2630
+ userFirstName: string;
2631
+ userLastName: string;
2632
+ organizationId: number;
2633
+ programId: number;
2634
+ programName: string;
2635
+ sessionId: number;
2636
+ sessionName: string;
2637
+ productId: number;
2638
+ productName: string;
2639
+ productUserId: number;
2640
+ purchaseDate: Date;
2641
+ passesLeft: number;
2661
2642
  }
2662
- export declare enum ActionTypesEnum {
2663
- CREATE = "create",
2664
- READ = "read",
2665
- UPDATE = "update",
2666
- DELETE = "delete"
2643
+ export interface ISessionsLandingPage {
2644
+ sessionId: number;
2645
+ name: string;
2646
+ startDate: Date;
2647
+ endDate: Date;
2648
+ registrationStartDate: Date;
2649
+ registrationEndDate: Date;
2650
+ sport: SportsEnum;
2651
+ minAge: string;
2652
+ maxAge: string;
2653
+ maxParticipants?: number;
2654
+ gender: GenderEnum;
2655
+ activityTimes: ActivityTimes[];
2656
+ earlyRegistrationStartDate?: Date;
2657
+ earlyRegistrationEndDate?: Date;
2658
+ lateRegistrationStartDate?: Date;
2659
+ lateRegistrationEndDate?: Date;
2660
+ attendeeCount?: number;
2661
+ segmentsOrEvents: 'segment' | 'event';
2667
2662
  }
2668
- export declare enum ActionSourcePlatformEnum {
2669
- ADMIN = "admin",
2670
- BACKOFFICE = "backoffice",
2671
- CONSUMER = "consumer"
2663
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2664
+ hasRequiredMembership: boolean;
2665
+ hasEntitledPricing: boolean;
2666
+ lowestPrice?: number;
2667
+ products?: ISessionLandingPageProduct[];
2672
2668
  }
2673
- export declare enum RolesEnum {
2674
- ORG_ADMIN = "organizationAdmin",
2675
- BOND_ADMIN = "bondAdmin"
2669
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2670
+ hasRequiredMembership: boolean;
2671
+ hasEntitledPricing: boolean;
2672
+ products?: ISessionLandingPageProduct[];
2673
+ segments?: Event[] | ProgramSeason[];
2674
+ programName: string;
2675
+ programId: number;
2676
+ levelOfPlay: LevelOfPlayEnum[];
2677
+ registrationConstraints: IResourceRegistrationData[];
2676
2678
  }
2677
- export declare enum SeasonPoolStatusEnum {
2678
- IN_POOL = 5,
2679
- ASSIGNED = 1,
2680
- QUIT = 2,
2681
- SUSPENDED = 3,
2682
- INACTIVE = 4
2679
+ export interface ISlimAddons {
2680
+ addons?: {
2681
+ id: number;
2682
+ timePeriod: AddonTimePeriodEnum;
2683
+ name: string;
2684
+ productType?: ProductTypesEnum;
2685
+ productSubType?: string;
2686
+ }[];
2683
2687
  }
2684
- export declare enum AmenitiesEnum {
2685
- HEAT = 1,
2686
- AC = 2,
2687
- WIFI = 3,
2688
- RESTROOMS = 4,
2689
- DRINKING_FOUNTAIN = 5,
2690
- PARKING = 6,
2691
- CONCESSIONS = 7,
2692
- SHELTER = 8,
2693
- PORTABLE_RESTROOMS = 9,
2694
- LIGHTS = 10,
2695
- LOCKER_ROOM = 11,
2696
- PAID_PARKING = 12,
2697
- ACCESSIBLE = 13
2688
+ export interface ISessionLandingPageProduct extends ISlimAddons {
2689
+ id: number;
2690
+ name: string;
2691
+ startDate?: Date;
2692
+ endDate?: Date;
2693
+ downpayment?: number;
2694
+ description?: string;
2695
+ prices: Price[];
2696
+ productSubType?: ProductSubTypesEnum;
2697
+ punchCard: boolean;
2698
+ isAddon: boolean;
2699
+ defaultPriceId?: number;
2698
2700
  }
2699
- export declare enum ResourceSubTypeEnum {
2700
- COURT = "court",
2701
- FIELD = "field",
2702
- ROOM = "room",
2703
- DIAMOND = "diamond",
2704
- RINK = "rink",
2705
- STUDIO = "studio",
2706
- POOL = "pool",
2707
- BATTING_CAGE = "batting cage",
2708
- SHELTER = "shelter",
2709
- GOLF_SIMULATOR = "golf simulator"
2701
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2702
+ destinationId?: string;
2703
+ stripeCustomerId?: string;
2704
+ fee?: number;
2710
2705
  }
2711
- export declare enum ResourceTypeEnum {
2712
- SPACE = "space"
2706
+ export interface IReservationCreatorData {
2707
+ type: ResourceNameTypeEnum;
2708
+ id: number;
2709
+ organizationId: number;
2710
+ startDate: string;
2711
+ endDate: string;
2712
+ sportId: number;
2713
2713
  }
2714
- export declare enum ResourceAgesEnum {
2715
- ADULTS = "adults",
2716
- CHILDREN = "children"
2714
+ export declare enum EntitlementTermsTypesEnum {
2715
+ QUESTION = "question",
2716
+ CITY = "city",
2717
+ MEMBERSHIP = "membership"
2717
2718
  }
2718
- export declare enum SpacePropertiesEnum {
2719
- OUTDOOR = "outdoor",
2720
- INDOOR = "indoor"
2719
+ export declare enum ResourceNameTypeEnum {
2720
+ EVENT = "event",
2721
+ VENUE = "venue",
2722
+ TEAM = "team",
2723
+ LEAGUE = "league",
2724
+ USER = "user",
2725
+ ORGANIZATION = "organization",
2726
+ APP = "app",
2727
+ FEED = "feed",
2728
+ MATCH = "match",
2729
+ ROUND = "round",
2730
+ PORTAL = "portal",
2731
+ SEASON = "season",
2732
+ TOURNAMENT = "tournament",
2733
+ MEMBERSHIP = "membership",
2734
+ DIVISION = "division",
2735
+ GAMESLOT = "gameslot",
2736
+ SPACE = "space",
2737
+ RESERVATION = "reservation",
2738
+ ORDER = "order",
2739
+ CUSTOMER = "customer",
2740
+ PACKAGE = "package",
2741
+ FACILITY = "facility",
2742
+ PROGRAM = "program",
2743
+ PROGRAM_SEASON = "program_season",
2744
+ PRODUCT = "product",
2745
+ GROUP = "group",
2746
+ VARIANT = "variant",
2747
+ SLOT = "slot",
2748
+ ADDON = "addon"
2721
2749
  }
2722
- export declare enum SurfacesEnum {
2723
- GRASS = "grass",
2724
- TURF = "turf",
2725
- FIELD_TURF = "fieldTurf",
2726
- ASTRO_TURF = "astroTurf",
2727
- HARDWOOD = "hardwood",
2728
- ASPHALT = "asphalt",
2729
- SAND = "sand",
2730
- ICE = "ice",
2731
- SPORT_COURT = "sportCourt"
2750
+ export declare enum DirectBookingTypesEnum {
2751
+ DIRECT_FOR_ALL = "all",
2752
+ DIRECT_FOR_NONE = "none",
2753
+ DIRECT_VETTED_ONLY = "vetted_only",
2754
+ NO_SETTING = "no_setting"
2732
2755
  }
2733
- export declare enum RegistrationConstraintPeriodTypeEnum {
2734
- MINUTES = "minutes",
2735
- DAYS = "days"
2756
+ export declare enum GenderEnum {
2757
+ OTHER = 1,
2758
+ MALE = 2,
2759
+ FEMALE = 3
2736
2760
  }
2737
- export declare enum RegistrationWindowStatusEnum {
2738
- NOT_OPEN_YET = "not_opened_yet",
2739
- OPEN = "open",
2740
- CLOSED = "closed"
2761
+ export declare enum LevelOfPlayEnum {
2762
+ BEGINNER = 1,
2763
+ INTERMEDIATE = 2,
2764
+ ADVANCED = 3,
2765
+ SEMIPRO = 4,
2766
+ SPECTATOR = 5
2741
2767
  }
2742
- export declare enum RegistrationValidationStatusEnum {
2743
- FULL = "full",
2744
- ALREADY_REGISTERED = "registered",
2745
- AVAILABLE = "available",
2746
- NOT_OPEN_YET = "not opened",
2747
- ALREADY_CLOSED = "closed",
2748
- NO_PRODUCT_FOUND = "no-product-found"
2768
+ export declare enum ProgramTypesEnum {
2769
+ LEAGUE = 0,
2770
+ TOURNAMENT = 1,
2771
+ CLASS = 2,
2772
+ CLINIC = 3,
2773
+ CAMP = 4,
2774
+ LESSON = 5,
2775
+ CLUB_TEAM = 6
2749
2776
  }
2750
- export declare enum DiscountMethodsEnum {
2751
- PERCENT = "percent",
2752
- AMOUNT = "amount"
2777
+ export declare enum ProgramSeasonTypesEnum {
2778
+ ROUND_ROBIN = 1,
2779
+ BRACKETS = 2,
2780
+ CAMP_CLINIC_CLASS = 3
2753
2781
  }
2754
- export declare enum UserAuthorizationsTypeEnum {
2755
- ORGANIZATION = "organization"
2782
+ export declare enum SportsEnum {
2783
+ SOFTBALL = 1,
2784
+ BASKETBALL = 2,
2785
+ FOOTBALL = 3,
2786
+ SOCCER = 4,
2787
+ BOWLING = 5,
2788
+ BOCCEBALL = 6,
2789
+ CORNHOLE = 7,
2790
+ DODGEBALL = 8,
2791
+ FRISBEE = 9,
2792
+ HOCKEY = 10,
2793
+ KICKBALL = 11,
2794
+ LACROSSE = 12,
2795
+ PINGPONG = 13,
2796
+ RUGBY = 14,
2797
+ SKEEBALL = 15,
2798
+ TENNIS = 16,
2799
+ VOLLEYBALL = 17,
2800
+ WIFFLEBALL = 18,
2801
+ BADMINTON = 19,
2802
+ FITNESS = 20,
2803
+ GOLF = 21,
2804
+ PILATES = 22,
2805
+ RUNNING = 23,
2806
+ SKIING = 24,
2807
+ SNOWBOARDING = 25,
2808
+ YOGA = 26,
2809
+ BROOMBALL = 27,
2810
+ CRICKET = 28,
2811
+ CROSSFIT = 29,
2812
+ CYCLING = 30,
2813
+ FIELD_HOCKEY = 31,
2814
+ RACQUETBALL = 32,
2815
+ SPINNING = 33,
2816
+ SQUASH = 34,
2817
+ SURFING = 35,
2818
+ SWIMMING = 36,
2819
+ WIND_SURFING = 37,
2820
+ ADVENTURE = 38,
2821
+ BOXING = 39,
2822
+ BASEBALL = 40,
2823
+ DANCE = 41,
2824
+ KICKBOXING = 42,
2825
+ MARTIAL_ARTS = 43,
2826
+ OUTDOORS = 44,
2827
+ ROWING = 45,
2828
+ SAILING = 46,
2829
+ SUP = 47,
2830
+ TRIATHLON = 48,
2831
+ HANDBALL = 49,
2832
+ CATCHBALL = 50,
2833
+ BLITZBALL = 51,
2834
+ ROLLER_DERBY = 52,
2835
+ ICE_SKATING = 53,
2836
+ PICKLEBALL = 54,
2837
+ AXE_THROWING = 55,
2838
+ FURSAL = 56,
2839
+ BIRTHDAY = 57,
2840
+ CORPRATE_EVENTS = 58,
2841
+ OTHER = 999
2756
2842
  }
2757
- export declare enum OrganizationLocaleDateEnum {
2758
- USA = "USA"
2843
+ export declare enum PublishingStatusEnum {
2844
+ DRAFT = 1,
2845
+ PUBLISHED = 2,
2846
+ CLOSED = 3,
2847
+ CANCELLED = 4,
2848
+ ARCHIVE = 5,
2849
+ UNPUBLISHED = 6
2759
2850
  }
2760
- export declare enum DateTimeFormatsEnum {
2761
- API_DATE = "YYYY/MM/DD",
2762
- API_TIME = "HH:mm:ss"
2851
+ export declare enum ProgramHighlightTypeEnum {
2852
+ OTHER = 1,
2853
+ MINAGE = 2,
2854
+ MAXAGE = 3,
2855
+ GENDER = 4,
2856
+ LEVELOFPLAY = 5,
2857
+ GAMESSEASON = 6,
2858
+ MINWEEK = 7,
2859
+ SURFACE = 8,
2860
+ FORMAT = 9,
2861
+ PLAYERS_PER_TEAM = 10,
2862
+ MATCH_LENGTH = 12
2763
2863
  }
2764
- export declare enum SlotTypeEnum {
2765
- EXTERNAL = "external",
2766
- INTERNAL = "internal",
2767
- MAINTENANCE = "maintenance",
2768
- CUSTOM = "custom"
2864
+ export declare enum RequestStatusEnum {
2865
+ PENDING = 1,
2866
+ ACCEPTED = 2,
2867
+ DECLINED = 3
2769
2868
  }
2770
- export declare enum PlatformsEnum {
2771
- CONSUMER = "consumer",
2772
- BO = "backoffice",
2773
- MOBILE = "mobile",
2774
- CRON = "cron"
2869
+ export declare enum PaymentStatusEnum {
2870
+ NOT_PAID = "not_paid",
2871
+ PARTIAL_PAYMENT = "partial",
2872
+ FULLY_PAID = "paid",
2873
+ REFUNDED = "refunded",
2874
+ VOID = "void"
2775
2875
  }
2776
- export declare enum ShiftStatusEnum {
2777
- OPEN = "open",
2778
- CLOSED = "closed",
2779
- MANAGMENT_CLOSED = "closed_by_manager",
2780
- RECONCILED = "reconciled"
2876
+ export declare enum ReservationExtendedEnum {
2877
+ PURCHASE_ORDER = "purchase_order"
2781
2878
  }
2782
- export declare enum EventStatusEnum {
2783
- OPEN = 1,
2784
- DRAFT = 2,
2785
- FULL = 3,
2786
- CANCELLED = 4,
2787
- CLOSED = 5,
2788
- DELETED = 6
2879
+ export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2880
+ export declare enum ReservationStatusEnum {
2881
+ PLANNED = "Planned",
2882
+ APPROVED = "Approved",
2883
+ AWAITING_ADMIN = "Awaiting Admin",
2884
+ AWAITING_CUSTOMER = "Awaiting Customer",
2885
+ REJECTED = "Rejected",
2886
+ CANCELED = "Canceled"
2789
2887
  }
2790
- export declare enum ReservationTypeEnum {
2791
- RENTAL = "rental",
2792
- PROGRAM = "program",
2793
- MAINTENANCE = "maintenance",
2794
- CUSTOM = "custom"
2888
+ export declare enum PaymentStatusV1Enum {
2889
+ SENT_TO_CLIENT = 1,
2890
+ SENT_FOR_PAYMENT = 2,
2891
+ ACCEPTED = 3,
2892
+ REJECTED = 4,
2893
+ CANCELLED = 5,
2894
+ FRAUD = 6,
2895
+ NOT_RELEVANT = 7,
2896
+ PENDING = 8
2795
2897
  }
2796
- export declare enum SlotDurationTypeEnum {
2797
- DATES = "dates",
2798
- ALL_DAY = "all day",
2799
- DURATION = "duration"
2898
+ export declare enum PaymentMethodsEnum {
2899
+ STRIPE = 1,
2900
+ CASH = 3
2800
2901
  }
2801
- export declare enum DurationUnitTypesEnum {
2802
- MINUTES = "minutes",
2803
- HOURS = "hours"
2902
+ export declare enum PackageProductsRelationTypeEnum {
2903
+ CHILD = "child",
2904
+ UPSALE = "upsale"
2804
2905
  }
2805
- export declare enum FrequencyEnum {
2806
- NONE = "none",
2807
- WEEKLY = "weekly",
2808
- DAILY = "daily",
2809
- MONTHLY = "monthly",
2810
- YEARLY = "yearly"
2906
+ export declare enum AddonTimePeriodEnum {
2907
+ FULL = "full",
2908
+ SESSION = "session",
2909
+ EVENT = "event"
2811
2910
  }
2812
- export declare enum MaintenanceTimingEnum {
2813
- BEFORE = 1,
2814
- AFTER = 2,
2815
- AT_THE_BEGINING = 3,
2816
- AT_THE_END = 4
2911
+ export declare enum CurrencyEnum {
2912
+ USD = "USD"
2817
2913
  }
2818
- export declare enum CreatorTypeEnum {
2819
- SPACE = "space",
2820
- PROGRAM_SEASON = "program_season"
2914
+ export declare enum NotificationTypeEnum {
2915
+ BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2916
+ BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2917
+ BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2821
2918
  }
2822
- export declare enum UpdatePricesTypeEnum {
2823
- INDIVIDUAL = "indvidual",
2824
- CATEGORY = "category",
2825
- GLOBAL = "global"
2919
+ export declare enum ProductTypesEnum {
2920
+ RESERVATION = "reservation",
2921
+ REGISTRATION = "registration",
2922
+ MEMBERSHIP = "membership",
2923
+ GOODS = "goods",
2924
+ PACKAGE = "package",
2925
+ REFUND_COMPENSATION = "refund",
2926
+ CASH_OVER_SHORT = "cash_over_short",
2927
+ PETTY_CASH = "petty_cash",
2928
+ LEAGUE_REGISTRATION = "league_registration",
2929
+ TAX = "tax"
2826
2930
  }
2827
- export declare enum BondDayOfWeekEnum {
2828
- MONDAY = 2,
2829
- TUESDAY = 3,
2830
- WEDNESDAY = 4,
2831
- THURSDAY = 5,
2832
- FRIDAY = 6,
2833
- SATURDAY = 7,
2834
- SUNDAY = 8
2931
+ export declare enum OrderStatusEnum {
2932
+ ACTIVE = "active",
2933
+ WAITING_ADMIN = "waitingAdmin",
2934
+ WAITING_CLIENT = "waitingClient",
2935
+ CANCELED = "canceled"
2835
2936
  }
2836
- export declare enum ReservationMigrationStatusEnum {
2837
- NEW = "new",
2838
- NO = "no",
2839
- YES = "yes"
2937
+ export declare enum LineItemsStatusEnum {
2938
+ USER_PRODUCT = "UserProduct",
2939
+ RENTAL_PRODUCT = "RentalProduct"
2840
2940
  }
2841
- export declare enum ProductPackageLevelEnum {
2842
- HOUR = "hour",
2843
- SLOT = "slot",
2844
- RESERVATION = "reservation"
2941
+ export declare enum ProductSubTypesEnum {
2942
+ SEASON_INDIVIDUAL = "season_individual",
2943
+ SEASON_TEAM = "season_team",
2944
+ SEASON_PER_PLAYER = "season_per_player"
2845
2945
  }
2846
- export declare enum CancellationStatusEnum {
2847
- IMMEDIATE = "immediate",
2848
- AUTO_RENEWAL = "auto_renewal"
2946
+ export declare enum PaymentMethodTypeEnum {
2947
+ CREDIT_CARD = "card",
2948
+ ACH = "ach",
2949
+ CASH = "cash",
2950
+ CHECK = "check",
2951
+ BALANCE = "balance",
2952
+ CARD_ON_TERMINAL = "card-on-terminal",
2953
+ OTHER = "other",
2954
+ MIGRATED = "migrated",
2955
+ VOID = "void"
2849
2956
  }
2850
- export declare enum SeasonScheduleStatusEnum {
2851
- DRAFT = 0,
2852
- PUBLISHED = 1
2957
+ export declare enum RefundTypeEnum {
2958
+ LEAVE_BALANCE = "leave_balance",
2959
+ REDUCE_BALANCE = "reduce_balance"
2853
2960
  }
2854
- export declare enum FinancialStepEnum {
2855
- VOID = "void",
2856
- REFUND = "refund",
2857
- NONE = "none",
2858
- REFUND_AND_VOID = "refund-and-void",
2859
- APPEND = "append"
2961
+ export declare enum CustomerInMembershipTypeEnum {
2962
+ INDIVIDUAL = "individual",
2963
+ FAMILY = "family",
2964
+ ORGANIZATION = "organization"
2860
2965
  }
2861
- export declare enum StripeAccountTypesEnum {
2862
- STRIPE = "stripe",
2863
- STRIPE_CUSTOM = "stripe:account:custom",
2864
- STRIPE_CUSTOMER = "stripe:customer"
2966
+ export declare enum MembershipTypeEnum {
2967
+ FIXED = "fix_membership",
2968
+ ROLLING = "rolling_membership"
2865
2969
  }
2866
- export declare enum LinkedAccountStatus {
2867
- PENDING = 1,
2868
- ACTIVE = 2,
2869
- PRE_PENDING = 3
2970
+ export declare enum CustomerTypeEnum {
2971
+ USER = "user",
2972
+ FAMILY = "family",
2973
+ ORGANIZATION = "organization"
2870
2974
  }
2871
- export declare enum AddonParentTypeEnum {
2872
- RESERVATION = "reservation",
2873
- SLOT = "slot"
2975
+ export declare enum GroupStatusEnum {
2976
+ ACTIVE = 1,
2977
+ INACTIVE = 2,
2978
+ DRAFT = 3
2874
2979
  }
2875
- export declare enum EEmailStatus {
2876
- SENT = "sent",
2877
- OPENED = "opened",
2878
- PAID = "paid",
2980
+ export declare enum FutureInstallmentStatusEnum {
2981
+ FUTURE = "future",
2982
+ SUCCEEDED = "succeeded",
2983
+ FAILED = "failed",
2879
2984
  CANCELED = "canceled"
2880
2985
  }
2881
- export interface IEntitlementTerms {
2882
- type: EntitlementTermsTypesEnum;
2883
- id?: number;
2884
- value?: string;
2885
- minValue?: string;
2886
- maxValue?: string;
2887
- }
2888
- export interface IQuestionAnswerObject {
2889
- questionId: number;
2890
- value: string;
2986
+ export declare enum EntryStatusEnum {
2987
+ ENTERED = 1,
2988
+ NOT_ENTERED = 2,
2989
+ CANCELED = 3
2891
2990
  }
2892
- export interface ILowestPriceForItem {
2893
- itemId: number;
2894
- itemType: ResourceNameTypeEnum;
2895
- groupId: number;
2896
- groupName?: string;
2897
- price: number;
2898
- overridesPrice: boolean;
2991
+ export declare enum PurchasedResourceStatusEnum {
2992
+ ACTIVE = 1,
2993
+ MOVED = 2,
2994
+ CANCELED = 3
2899
2995
  }
2900
- export interface IResourcesAvailability {
2901
- resourceType: ResourceNameTypeEnum;
2902
- quantity: number;
2903
- resourcesIds: number[];
2904
- isPunchCard: boolean;
2905
- resources?: any[];
2996
+ export declare enum TeamCanJoinEnum {
2997
+ ANYONE = "anyone",
2998
+ BY_INVITE = "byInvite",
2999
+ CAPTAIN_APPROVAL = "captainApproval"
2906
3000
  }
2907
- export interface IPackageResponse {
2908
- parentProduct: Product;
2909
- children: IChildProduct[];
3001
+ export declare enum TeamMemberStatusEnum {
3002
+ PENDING = 1,
3003
+ ACTIVE = 2,
3004
+ DECLINED = 3,
3005
+ SUSPENDED = 4,
3006
+ INACTIVE = 5,
3007
+ INVITED = 6
2910
3008
  }
2911
- export interface IChildProduct {
2912
- product: Product;
2913
- relationType: PackageProductsRelationTypeEnum;
2914
- timePeriod?: AddonTimePeriodEnum;
3009
+ export declare enum TeamMemberRoleEnum {
3010
+ NULL = 0,
3011
+ ADMIN = 1
2915
3012
  }
2916
- export interface ISeasonAttendeeInfo {
2917
- applicationAnswers: Answer[];
2918
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2919
- invoices: Order[];
2920
- payments: Invoice[];
2921
- products: Product[];
2922
- redeemNext: ProductsUsers;
3013
+ export declare enum DayOfWeekEnum {
3014
+ SUNDAY = 0,
3015
+ MONDAY = 1,
3016
+ TUESDAY = 2,
3017
+ WEDNESDAY = 3,
3018
+ THURSDAY = 4,
3019
+ FRIDAY = 5,
3020
+ SATURDAY = 6
2923
3021
  }
2924
- export interface ISeasonAttendeeListInfo {
2925
- userId: number;
2926
- userFirstName: string;
2927
- userLastName: string;
2928
- userGender: number;
2929
- userBirthDate: Date;
2930
- userProfilePicUrl: string;
2931
- customerId: number;
2932
- customerEmail: string;
2933
- paymentStatus: string;
2934
- productName: string;
2935
- punchCard: boolean;
3022
+ export declare enum ActionTypesEnum {
3023
+ CREATE = "create",
3024
+ READ = "read",
3025
+ UPDATE = "update",
3026
+ DELETE = "delete"
2936
3027
  }
2937
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2938
- segmentType: ResourceNameTypeEnum;
2939
- participantRegisteredDate?: string;
3028
+ export declare enum ActionSourcePlatformEnum {
3029
+ ADMIN = "admin",
3030
+ BACKOFFICE = "backoffice",
3031
+ CONSUMER = "consumer"
2940
3032
  }
2941
- export declare class EventAsSeasonSegment extends Event {
2942
- segmentType: ResourceNameTypeEnum;
2943
- participantRegisteredDate?: string;
3033
+ export declare enum RolesEnum {
3034
+ ORG_ADMIN = "organizationAdmin",
3035
+ BOND_ADMIN = "bondAdmin"
2944
3036
  }
2945
- export interface ITokenResonse {
2946
- token: string;
3037
+ export declare enum SeasonPoolStatusEnum {
3038
+ IN_POOL = 5,
3039
+ ASSIGNED = 1,
3040
+ QUIT = 2,
3041
+ SUSPENDED = 3,
3042
+ INACTIVE = 4
2947
3043
  }
2948
- export interface IStripeBondInvoices {
2949
- paidStripePaymentIntent: Stripe.PaymentIntent;
2950
- bondPaidInvoice: Invoice;
2951
- order?: Order;
2952
- customer?: Customer;
3044
+ export declare enum AmenitiesEnum {
3045
+ HEAT = 1,
3046
+ AC = 2,
3047
+ WIFI = 3,
3048
+ RESTROOMS = 4,
3049
+ DRINKING_FOUNTAIN = 5,
3050
+ PARKING = 6,
3051
+ CONCESSIONS = 7,
3052
+ SHELTER = 8,
3053
+ PORTABLE_RESTROOMS = 9,
3054
+ LIGHTS = 10,
3055
+ LOCKER_ROOM = 11,
3056
+ PAID_PARKING = 12,
3057
+ ACCESSIBLE = 13
2953
3058
  }
2954
- export interface IPartialPaymentData {
2955
- purchasingUserId: number;
2956
- paymentData: PurchasePaymentDto;
2957
- amountToPay: number;
3059
+ export declare enum ResourceSubTypeEnum {
3060
+ COURT = "court",
3061
+ FIELD = "field",
3062
+ ROOM = "room",
3063
+ DIAMOND = "diamond",
3064
+ RINK = "rink",
3065
+ STUDIO = "studio",
3066
+ POOL = "pool",
3067
+ BATTING_CAGE = "batting cage",
3068
+ SHELTER = "shelter",
3069
+ GOLF_SIMULATOR = "golf simulator"
2958
3070
  }
2959
- export interface IPayment {
2960
- id: number;
2961
- total: number;
2962
- paymentMethod: PaymentMethodTypeEnum;
2963
- status: PaymentStatusEnum;
2964
- createdAt: Date;
2965
- invoices: number[];
3071
+ export declare enum ResourceTypeEnum {
3072
+ SPACE = "space"
2966
3073
  }
2967
- export interface IPaginationData<T> {
2968
- meta: {
2969
- totalItems: number;
2970
- itemsPerPage: number;
2971
- totalPages: number;
2972
- currentPage: number;
2973
- };
2974
- data: T[];
3074
+ export declare enum ResourceAgesEnum {
3075
+ ADULTS = "adults",
3076
+ CHILDREN = "children"
2975
3077
  }
2976
- export interface IPricesOfProductsResults {
2977
- productId: number;
2978
- userId: number;
2979
- price: number;
2980
- groupId?: number;
2981
- groupName?: string;
2982
- originalPrice?: number;
2983
- priceWithoutTax: number;
2984
- tax: number;
2985
- isTaxInclusive: boolean;
3078
+ export declare enum SpacePropertiesEnum {
3079
+ OUTDOOR = "outdoor",
3080
+ INDOOR = "indoor"
2986
3081
  }
2987
- export interface IPaymentMethodToFundLeft {
2988
- paymentType: PaymentMethodTypeEnum;
2989
- paymentMethodId: string;
2990
- fundLeft: number;
2991
- ccLast4?: string;
2992
- ccBrand?: string;
3082
+ export declare enum SurfacesEnum {
3083
+ GRASS = "grass",
3084
+ TURF = "turf",
3085
+ FIELD_TURF = "fieldTurf",
3086
+ ASTRO_TURF = "astroTurf",
3087
+ HARDWOOD = "hardwood",
3088
+ ASPHALT = "asphalt",
3089
+ SAND = "sand",
3090
+ ICE = "ice",
3091
+ SPORT_COURT = "sportCourt"
2993
3092
  }
2994
- export interface IVariantsAndTitle {
2995
- title: VariantTitle;
2996
- variants: Variant[];
3093
+ export declare enum RegistrationConstraintPeriodTypeEnum {
3094
+ MINUTES = "minutes",
3095
+ DAYS = "days"
2997
3096
  }
2998
- export interface IProgramSeasonActivityTimes {
2999
- dayOfWeek: number;
3000
- open: string;
3001
- close: string;
3097
+ export declare enum RegistrationWindowStatusEnum {
3098
+ NOT_OPEN_YET = "not_opened_yet",
3099
+ OPEN = "open",
3100
+ CLOSED = "closed"
3002
3101
  }
3003
- export interface IProgramSeasonActivityTimesAsDates {
3004
- date: string;
3005
- startTime: string;
3006
- endTime: string;
3102
+ export declare enum RegistrationValidationStatusEnum {
3103
+ FULL = "full",
3104
+ ALREADY_REGISTERED = "registered",
3105
+ AVAILABLE = "available",
3106
+ NOT_OPEN_YET = "not opened",
3107
+ ALREADY_CLOSED = "closed",
3108
+ NO_PRODUCT_FOUND = "no-product-found"
3007
3109
  }
3008
- export interface IBlockedDates {
3009
- name: string;
3010
- startDate: Date;
3011
- endDate: Date;
3110
+ export declare enum DiscountMethodsEnum {
3111
+ PERCENT = "percent",
3112
+ AMOUNT = "amount"
3012
3113
  }
3013
- export interface ISingleMemberForRenewal {
3014
- member_id: number;
3015
- member_membershipId: number;
3016
- member_userId: number;
3017
- member_nextPaymentMethodId?: string;
3018
- member_nextPaymentType?: PaymentMethodTypeEnum;
3019
- member_answerTitleIds?: number[];
3020
- member_organizationId: number;
3021
- line_paidAmount: number;
3022
- line_productId: number;
3023
- order_payingUserId: number;
3024
- order_paymentMethodId: string;
3025
- order_paymentType: PaymentMethodTypeEnum;
3026
- endDate: Date;
3027
- membership_name: string;
3028
- user_firstName: string;
3029
- user_lastName: string;
3030
- user_email: string;
3114
+ export declare enum UserAuthorizationsTypeEnum {
3115
+ ORGANIZATION = "organization"
3031
3116
  }
3032
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3033
- package_parentProductId: number;
3034
- line2_paidAmount: number;
3035
- familyid: number;
3036
- order_id: number;
3117
+ export declare enum OrganizationLocaleDateEnum {
3118
+ USA = "USA"
3037
3119
  }
3038
- export interface IResourceRegistrationData {
3039
- id: number;
3040
- resourceType: ResourceNameTypeEnum;
3041
- openNumDays?: number;
3042
- openNumMinutes?: number;
3043
- openTime?: string;
3044
- closeNumDays?: number;
3045
- closeNumMinutes?: number;
3046
- closeTime?: string;
3047
- registrationWindowStatus?: RegistrationWindowStatusEnum;
3120
+ export declare enum DateTimeFormatsEnum {
3121
+ API_DATE = "YYYY/MM/DD",
3122
+ API_TIME = "HH:mm:ss"
3048
3123
  }
3049
- export interface IResourceDataForConstraintsCalc {
3050
- id: number;
3051
- startDate: string;
3052
- startTime: string;
3124
+ export declare enum SlotTypeEnum {
3125
+ EXTERNAL = "external",
3126
+ INTERNAL = "internal",
3127
+ MAINTENANCE = "maintenance",
3128
+ CUSTOM = "custom"
3053
3129
  }
3054
- export interface IRegistrationConstraintsSetting {
3055
- numDays?: number;
3056
- numMinutes?: number;
3130
+ export declare enum PlatformsEnum {
3131
+ CONSUMER = "consumer",
3132
+ BO = "backoffice",
3133
+ MOBILE = "mobile",
3134
+ CRON = "cron"
3057
3135
  }
3058
- export interface IAttendeeDataToNotify {
3059
- firstName: string;
3060
- lastName: string;
3061
- email: string;
3062
- sessionName: string;
3063
- parentSessionName?: string;
3064
- organizationName: string;
3065
- programName: string;
3136
+ export declare enum ShiftStatusEnum {
3137
+ OPEN = "open",
3138
+ CLOSED = "closed",
3139
+ MANAGMENT_CLOSED = "closed_by_manager",
3140
+ RECONCILED = "reconciled"
3066
3141
  }
3067
- export interface IEventInSchedule {
3068
- eventId: number;
3069
- eventName: string;
3070
- eventStartDate: string;
3071
- eventEndDate: string;
3072
- eventStartTime: string;
3073
- eventEndTime: string;
3074
- programId: number;
3075
- programName: string;
3076
- programType: ProgramTypesEnum;
3077
- sessionId: number;
3078
- sessionName: string;
3079
- sports: number;
3080
- spaces: {
3081
- spaceId: number;
3082
- spaceName: string;
3083
- }[];
3084
- status?: RegistrationValidationStatusEnum;
3142
+ export declare enum EventStatusEnum {
3143
+ OPEN = 1,
3144
+ DRAFT = 2,
3145
+ FULL = 3,
3146
+ CANCELLED = 4,
3147
+ CLOSED = 5,
3148
+ DELETED = 6
3085
3149
  }
3086
- export interface ISlotInSchedule {
3087
- facilityId: number;
3088
- facilityName: string;
3089
- spaces: ISpaceWithSlots[];
3150
+ export declare enum ReservationTypeEnum {
3151
+ RENTAL = "rental",
3152
+ PROGRAM = "program",
3153
+ MAINTENANCE = "maintenance",
3154
+ CUSTOM = "custom"
3090
3155
  }
3091
- export interface ISpaceWithSlots {
3092
- id: number;
3093
- name: string;
3094
- slots: ISlotReservationData[];
3156
+ export declare enum SlotDurationTypeEnum {
3157
+ DATES = "dates",
3158
+ ALL_DAY = "all day",
3159
+ DURATION = "duration"
3095
3160
  }
3096
- export interface ISlotReservationData {
3097
- reservationId: number;
3098
- reservationName: string;
3099
- date: string;
3100
- startTime: string;
3101
- endTime: string;
3102
- notes: string;
3103
- spaceId: number;
3104
- isRental: boolean;
3105
- slotType: SlotTypeEnum;
3106
- slotId: number;
3107
- eventId: number;
3108
- isPrivate: boolean;
3161
+ export declare enum DurationUnitTypesEnum {
3162
+ MINUTES = "minutes",
3163
+ HOURS = "hours"
3109
3164
  }
3110
- export interface IRawEventInSchedule extends IEventInSchedule {
3111
- parentSessionId: number;
3112
- parentSessionName: string;
3113
- eventTimezone: string;
3114
- maxParticipants: number;
3115
- maxMaleParticipants: number;
3116
- maxFemaleParticipants: number;
3117
- isPunchCard: boolean;
3165
+ export declare enum FrequencyEnum {
3166
+ NONE = "none",
3167
+ WEEKLY = "weekly",
3168
+ DAILY = "daily",
3169
+ MONTHLY = "monthly",
3170
+ YEARLY = "yearly"
3118
3171
  }
3119
- export interface IBasicSpaceAndSlotCreator {
3120
- id: number;
3121
- name: string;
3122
- bookingCreatorId: number;
3172
+ export declare enum MaintenanceTimingEnum {
3173
+ BEFORE = 1,
3174
+ AFTER = 2,
3175
+ AT_THE_BEGINING = 3,
3176
+ AT_THE_END = 4
3123
3177
  }
3124
- export interface IRawSlotInSchedule {
3125
- startDate: string;
3126
- endDate: string;
3127
- startTime: string;
3128
- endTime: string;
3129
- reservationId: number;
3130
- eventTitle: string;
3131
- publicNotes: string;
3132
- spaceId: number;
3133
- creatorType: ResourceNameTypeEnum;
3134
- slotType: SlotTypeEnum;
3135
- slotId: number;
3136
- eventId: number;
3137
- isPrivate: boolean;
3178
+ export declare enum CreatorTypeEnum {
3179
+ SPACE = "space",
3180
+ PROGRAM_SEASON = "program_season"
3138
3181
  }
3139
- export interface IPurchasedResourcesRaw {
3140
- purchasedId: number;
3141
- purchasedProductUserId: number;
3142
- purchasedResourceId: number;
3143
- purchasedResourceType: ResourceNameTypeEnum;
3144
- purchasedStatus: PurchasedResourceStatusEnum;
3145
- pUserId: number;
3146
- pUserPaymentStatus: PaymentStatusEnum;
3147
- pUserProductId: number;
3148
- pUserProductName: string;
3149
- pUserProductPrice: number;
3150
- pUserProductPriceCurrency: string;
3151
- pUserProductQuantity: number;
3152
- pUserProductQuantityLeft: number;
3153
- pUserUserId: number;
3182
+ export declare enum UpdatePricesTypeEnum {
3183
+ INDIVIDUAL = "indvidual",
3184
+ CATEGORY = "category",
3185
+ GLOBAL = "global"
3154
3186
  }
3155
- export interface IUsersPasses {
3156
- userId: number;
3157
- userFirstName: string;
3158
- userLastName: string;
3159
- organizationId: number;
3160
- programId: number;
3161
- programName: string;
3162
- sessionId: number;
3163
- sessionName: string;
3164
- productId: number;
3165
- productName: string;
3166
- productUserId: number;
3167
- purchaseDate: Date;
3168
- passesLeft: number;
3187
+ export declare enum BondDayOfWeekEnum {
3188
+ MONDAY = 2,
3189
+ TUESDAY = 3,
3190
+ WEDNESDAY = 4,
3191
+ THURSDAY = 5,
3192
+ FRIDAY = 6,
3193
+ SATURDAY = 7,
3194
+ SUNDAY = 8
3169
3195
  }
3170
- export interface ISessionsLandingPage {
3171
- sessionId: number;
3172
- name: string;
3173
- startDate: Date;
3174
- endDate: Date;
3175
- registrationStartDate: Date;
3176
- registrationEndDate: Date;
3177
- sport: SportsEnum;
3178
- minAge: string;
3179
- maxAge: string;
3180
- maxParticipants?: number;
3181
- gender: GenderEnum;
3182
- activityTimes: ActivityTimes[];
3183
- earlyRegistrationStartDate?: Date;
3184
- earlyRegistrationEndDate?: Date;
3185
- lateRegistrationStartDate?: Date;
3186
- lateRegistrationEndDate?: Date;
3187
- attendeeCount?: number;
3188
- segmentsOrEvents: 'segment' | 'event';
3196
+ export declare enum ReservationMigrationStatusEnum {
3197
+ NEW = "new",
3198
+ NO = "no",
3199
+ YES = "yes"
3189
3200
  }
3190
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3191
- hasRequiredMembership: boolean;
3192
- hasEntitledPricing: boolean;
3193
- lowestPrice?: number;
3194
- products?: ISessionLandingPageProduct[];
3201
+ export declare enum ProductPackageLevelEnum {
3202
+ HOUR = "hour",
3203
+ SLOT = "slot",
3204
+ RESERVATION = "reservation"
3195
3205
  }
3196
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3197
- hasRequiredMembership: boolean;
3198
- hasEntitledPricing: boolean;
3199
- products?: ISessionLandingPageProduct[];
3200
- segments?: Event[] | ProgramSeason[];
3201
- programName: string;
3202
- programId: number;
3203
- levelOfPlay: LevelOfPlayEnum[];
3204
- registrationConstraints: IResourceRegistrationData[];
3206
+ export declare enum CancellationStatusEnum {
3207
+ IMMEDIATE = "immediate",
3208
+ AUTO_RENEWAL = "auto_renewal"
3205
3209
  }
3206
- export interface ISlimAddons {
3207
- addons?: {
3208
- id: number;
3209
- timePeriod: AddonTimePeriodEnum;
3210
- name: string;
3211
- productType?: ProductTypesEnum;
3212
- productSubType?: string;
3213
- }[];
3210
+ export declare enum SeasonScheduleStatusEnum {
3211
+ DRAFT = 0,
3212
+ PUBLISHED = 1
3214
3213
  }
3215
- export interface ISessionLandingPageProduct extends ISlimAddons {
3216
- id: number;
3217
- name: string;
3218
- startDate?: Date;
3219
- endDate?: Date;
3220
- downpayment?: number;
3221
- description?: string;
3222
- prices: Price[];
3223
- productSubType?: ProductSubTypesEnum;
3224
- punchCard: boolean;
3225
- isAddon: boolean;
3226
- defaultPriceId?: number;
3214
+ export declare enum FinancialStepEnum {
3215
+ VOID = "void",
3216
+ REFUND = "refund",
3217
+ NONE = "none",
3218
+ REFUND_AND_VOID = "refund-and-void",
3219
+ APPEND = "append"
3227
3220
  }
3228
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3229
- destinationId?: string;
3230
- stripeCustomerId?: string;
3231
- fee?: number;
3221
+ export declare enum StripeAccountTypesEnum {
3222
+ STRIPE = "stripe",
3223
+ STRIPE_CUSTOM = "stripe:account:custom",
3224
+ STRIPE_CUSTOMER = "stripe:customer"
3232
3225
  }
3233
- export interface IReservationCreatorData {
3234
- type: ResourceNameTypeEnum;
3235
- id: number;
3236
- organizationId: number;
3237
- startDate: string;
3238
- endDate: string;
3239
- sportId: number;
3226
+ export declare enum LinkedAccountStatus {
3227
+ PENDING = 1,
3228
+ ACTIVE = 2,
3229
+ PRE_PENDING = 3
3230
+ }
3231
+ export declare enum AddonParentTypeEnum {
3232
+ RESERVATION = "reservation",
3233
+ SLOT = "slot"
3234
+ }
3235
+ export declare enum EEmailStatus {
3236
+ SENT = "sent",
3237
+ OPENED = "opened",
3238
+ PAID = "paid",
3239
+ CANCELED = "canceled"
3240
3240
  }
3241
3241
  export declare class ColumnNumericTransformer {
3242
3242
  to(data: number): number;
@@ -3257,6 +3257,22 @@ export declare class AddFamilyDto {
3257
3257
  parents: AddImportedCustomerDto[];
3258
3258
  children: AddImportedCustomerDto[];
3259
3259
  }
3260
+ export declare class ProductIdsDto {
3261
+ productIds?: number[];
3262
+ }
3263
+ export declare class ProductImportDto {
3264
+ product: Product;
3265
+ prices: Price[];
3266
+ resourceIds: number[];
3267
+ oldId: number;
3268
+ }
3269
+ export declare class PunchPassDto {
3270
+ CustomerID: string;
3271
+ QuantityLeft: number;
3272
+ BondProgramID: number;
3273
+ BondSessionID: number;
3274
+ ProductID: number;
3275
+ }
3260
3276
  export declare enum ImportPaymentTypeEnum {
3261
3277
  CREDIT_CARD = "card",
3262
3278
  ACH = "ach",
@@ -3292,22 +3308,6 @@ export declare class ImportedPaymentDto {
3292
3308
  date: string;
3293
3309
  time: string;
3294
3310
  }
3295
- export declare class ProductIdsDto {
3296
- productIds?: number[];
3297
- }
3298
- export declare class ProductImportDto {
3299
- product: Product;
3300
- prices: Price[];
3301
- resourceIds: number[];
3302
- oldId: number;
3303
- }
3304
- export declare class PunchPassDto {
3305
- CustomerID: string;
3306
- QuantityLeft: number;
3307
- BondProgramID: number;
3308
- BondSessionID: number;
3309
- ProductID: number;
3310
- }
3311
3311
  export declare class ImportedSlotProductDto {
3312
3312
  slotID?: string;
3313
3313
  name?: string;
@@ -4352,7 +4352,6 @@ export interface SingleReservation {
4352
4352
  paymentStatus: PaymentStatusEnum;
4353
4353
  reservationType: ReservationTypeEnum;
4354
4354
  sports: number[];
4355
- addonsProductUserIds: number[];
4356
4355
  facilityId?: number;
4357
4356
  customerId: number;
4358
4357
  customer?: Customer;
@@ -4450,6 +4449,10 @@ export declare class FindShiftsFormattedFilters {
4450
4449
  startDate?: Date;
4451
4450
  endDate?: Date;
4452
4451
  }
4452
+ export declare class OpenShiftDto {
4453
+ openingCashAmount: number;
4454
+ stationId: number;
4455
+ }
4453
4456
  export declare class ShiftManagementClosingAmount {
4454
4457
  shiftId: number;
4455
4458
  managementClosingCashAmount: number;
@@ -4457,10 +4460,6 @@ export declare class ShiftManagementClosingAmount {
4457
4460
  export declare class ManagementClosingOfShiftsDto {
4458
4461
  managementClosingData: ShiftManagementClosingAmount[];
4459
4462
  }
4460
- export declare class OpenShiftDto {
4461
- openingCashAmount: number;
4462
- stationId: number;
4463
- }
4464
4463
  export declare class Shift extends OrganizationConnectionBaseEntity {
4465
4464
  stationId: number;
4466
4465
  station?: Station;