@bondsports/types 0.0.76 → 0.0.77

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,19 @@ 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 ActivityLogRecord extends BondBaseEntity {
6
+ entityType: ResourceNameTypeEnum;
7
+ entityId: number;
8
+ organizationId?: number;
9
+ userId?: number;
10
+ customerId?: number;
11
+ performingUserId: number;
12
+ description: string;
13
+ actionType: ActionTypesEnum;
14
+ sourcePlatform: ActionSourcePlatformEnum;
15
+ oldValue?: any;
16
+ newValue?: any;
17
+ }
5
18
  export declare class ActivityTimes extends BondBaseEntity {
6
19
  parentType: ResourceNameTypeEnum | ProductTypesEnum;
7
20
  parentId: number;
@@ -50,19 +63,6 @@ export declare class Athlete extends BondBaseEntity {
50
63
  metadata: object | null;
51
64
  athleteSports: AthleteSports[];
52
65
  }
53
- export declare class ActivityLogRecord extends BondBaseEntity {
54
- entityType: ResourceNameTypeEnum;
55
- entityId: number;
56
- organizationId?: number;
57
- userId?: number;
58
- customerId?: number;
59
- performingUserId: number;
60
- description: string;
61
- actionType: ActionTypesEnum;
62
- sourcePlatform: ActionSourcePlatformEnum;
63
- oldValue?: any;
64
- newValue?: any;
65
- }
66
66
  export declare class AthleteSports extends BondBaseEntity {
67
67
  athleteId: number | null;
68
68
  sports: number | null;
@@ -76,6 +76,11 @@ export declare class BlockedDate extends BondBaseEntity {
76
76
  endDate: Date;
77
77
  deletedAt?: Date;
78
78
  }
79
+ export declare class BondBaseEntity extends BaseEntity {
80
+ id: number;
81
+ createdAt: Date;
82
+ updatedAt: Date;
83
+ }
79
84
  export declare class BookedSessions extends BondBaseEntity {
80
85
  reservationId?: number;
81
86
  color?: string;
@@ -94,11 +99,6 @@ export declare class BookedSessions extends BondBaseEntity {
94
99
  publicNotes?: string;
95
100
  slotType?: SlotTypeEnum;
96
101
  }
97
- export declare class BondBaseEntity extends BaseEntity {
98
- id: number;
99
- createdAt: Date;
100
- updatedAt: Date;
101
- }
102
102
  export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity {
103
103
  parentId: number;
104
104
  parentType: ResourceNameTypeEnum;
@@ -114,13 +114,17 @@ export declare class Configuration extends BondBaseEntity {
114
114
  key: string;
115
115
  value: string;
116
116
  }
117
- export declare class CreditNote extends OrganizationConnectionBaseEntity {
118
- creditAmount: number;
119
- paymentProcessorId: string;
120
- userId: number;
121
- invoiceId: number;
122
- orderId: number;
123
- creditPaymentInvoiceId: number;
117
+ export declare class Connection extends BondBaseEntity {
118
+ connType: number | null;
119
+ from: number | null;
120
+ fromType: string | null;
121
+ to: number | null;
122
+ toType: string | null;
123
+ status: number | null;
124
+ creatorId: number | null;
125
+ creatorType: string | null;
126
+ userCreatorId: number | null;
127
+ ownerId: number | null;
124
128
  }
125
129
  export declare class Customer extends OrganizationConnectionBaseEntity {
126
130
  name: string | null;
@@ -150,17 +154,13 @@ export declare class Customer extends OrganizationConnectionBaseEntity {
150
154
  mainMedia: Media;
151
155
  reservations?: Reservation[];
152
156
  }
153
- export declare class Connection extends BondBaseEntity {
154
- connType: number | null;
155
- from: number | null;
156
- fromType: string | null;
157
- to: number | null;
158
- toType: string | null;
159
- status: number | null;
160
- creatorId: number | null;
161
- creatorType: string | null;
162
- userCreatorId: number | null;
163
- ownerId: number | null;
157
+ export declare class CreditNote extends OrganizationConnectionBaseEntity {
158
+ creditAmount: number;
159
+ paymentProcessorId: string;
160
+ userId: number;
161
+ invoiceId: number;
162
+ orderId: number;
163
+ creditPaymentInvoiceId: number;
164
164
  }
165
165
  export declare class CustomerCreditTransaction extends OrganizationConnectionBaseEntity {
166
166
  customerId: number;
@@ -194,13 +194,13 @@ export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
194
194
  phoneNumber: string | null;
195
195
  customer: Customer;
196
196
  }
197
- export declare class EntitlementGroup extends OrganizationConnectionBaseEntity {
198
- name: string | null;
199
- }
200
197
  export declare class EntitlementTerms extends OrganizationConnectionBaseEntity {
201
198
  groupId: number;
202
199
  terms: IEntitlementTerms[];
203
200
  }
201
+ export declare class EntitlementGroup extends OrganizationConnectionBaseEntity {
202
+ name: string | null;
203
+ }
204
204
  export declare class EventAttendee extends BondBaseEntity {
205
205
  status: RequestStatusEnum | null;
206
206
  hasPaid: boolean | null;
@@ -303,6 +303,9 @@ export declare class FamilyAccount extends BondBaseEntity {
303
303
  name: string | null;
304
304
  userInFamilyAccounts: UserInFamilyAccount[];
305
305
  }
306
+ export declare class GlCodes extends OrganizationConnectionBaseEntity {
307
+ code: string;
308
+ }
306
309
  export declare class FutureInstallment extends OrganizationConnectionBaseEntity {
307
310
  userId: number;
308
311
  orderId: number;
@@ -342,9 +345,6 @@ export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity
342
345
  discountMethod?: DiscountMethodsEnum;
343
346
  discountValue?: number;
344
347
  }
345
- export declare class GlCodes extends OrganizationConnectionBaseEntity {
346
- code: string;
347
- }
348
348
  export declare class GroupsInDivisions extends BondBaseEntity {
349
349
  groupId: number;
350
350
  divisionId: number;
@@ -665,14 +665,6 @@ export declare class OrderNote extends OrganizationConnectionBaseEntity {
665
665
  orderId: number;
666
666
  order: Order;
667
667
  }
668
- export declare class OrderToInvoice extends BondBaseEntity {
669
- orderId: number;
670
- invoiceId: number;
671
- order: Order;
672
- invoice: Invoice;
673
- paidAmount?: number;
674
- currency: CurrencyEnum;
675
- }
676
668
  export declare class OrganizationConnectionBaseEntity extends BondBaseEntity {
677
669
  organizationId: number;
678
670
  }
@@ -693,6 +685,14 @@ export declare class PackageV1 extends BondBaseEntity {
693
685
  isMandatory: boolean;
694
686
  productId: number;
695
687
  }
688
+ export declare class OrderToInvoice extends BondBaseEntity {
689
+ orderId: number;
690
+ invoiceId: number;
691
+ order: Order;
692
+ invoice: Invoice;
693
+ paidAmount?: number;
694
+ currency: CurrencyEnum;
695
+ }
696
696
  export declare class PasswordReset extends BondBaseEntity {
697
697
  token: string | null;
698
698
  userId: number | null;
@@ -1239,12 +1239,6 @@ export declare class User extends BondBaseEntity {
1239
1239
  orderNotes: OrderNote[];
1240
1240
  invoiceNotes: InvoiceNote[];
1241
1241
  }
1242
- export declare class UserAuthorizations extends BondBaseEntity {
1243
- entityId: number | null;
1244
- userId: number | null;
1245
- entityType: UserAuthorizationsTypeEnum;
1246
- user: User;
1247
- }
1248
1242
  export declare class UserInFamilyAccount extends BondBaseEntity {
1249
1243
  familyAccountId: number;
1250
1244
  userId: number;
@@ -1253,6 +1247,12 @@ export declare class UserInFamilyAccount extends BondBaseEntity {
1253
1247
  familyAccount: FamilyAccount;
1254
1248
  deletedAt?: Date;
1255
1249
  }
1250
+ export declare class UserAuthorizations extends BondBaseEntity {
1251
+ entityId: number | null;
1252
+ userId: number | null;
1253
+ entityType: UserAuthorizationsTypeEnum;
1254
+ user: User;
1255
+ }
1256
1256
  export declare class UsersInGroup extends BondBaseEntity {
1257
1257
  groupId: number;
1258
1258
  userId: number;
@@ -1276,1964 +1276,1983 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
1276
1276
  membershipCollectionId?: string;
1277
1277
  programsCollectionId?: string;
1278
1278
  }
1279
- export declare enum EntitlementTermsTypesEnum {
1280
- QUESTION = "question",
1281
- CITY = "city",
1282
- MEMBERSHIP = "membership"
1279
+ export declare class BasicActivityTimesDto {
1280
+ dayOfWeek: number;
1281
+ close: string;
1282
+ open: string;
1283
+ availabilityStartDate?: string;
1284
+ availabilityEndDate?: string;
1283
1285
  }
1284
- export declare enum ResourceNameTypeEnum {
1285
- EVENT = "event",
1286
- VENUE = "venue",
1287
- TEAM = "team",
1288
- LEAGUE = "league",
1289
- USER = "user",
1290
- ORGANIZATION = "organization",
1291
- APP = "app",
1292
- FEED = "feed",
1293
- MATCH = "match",
1294
- ROUND = "round",
1295
- PORTAL = "portal",
1296
- SEASON = "season",
1297
- TOURNAMENT = "tournament",
1298
- MEMBERSHIP = "membership",
1299
- DIVISION = "division",
1300
- GAMESLOT = "gameslot",
1301
- SPACE = "space",
1302
- RESERVATION = "reservation",
1303
- ORDER = "order",
1304
- CUSTOMER = "customer",
1305
- PACKAGE = "package",
1306
- FACILITY = "facility",
1307
- PROGRAM = "program",
1308
- PROGRAM_SEASON = "program_season",
1309
- PRODUCT = "product",
1310
- GROUP = "group",
1311
- VARIANT = "variant",
1312
- SLOT = "slot",
1313
- ADDON = "addon"
1286
+ export declare class QuestionAnswersDto {
1287
+ questionId: number;
1288
+ value: any;
1314
1289
  }
1315
- export declare enum DirectBookingTypesEnum {
1316
- DIRECT_FOR_ALL = "all",
1317
- DIRECT_FOR_NONE = "none",
1318
- DIRECT_VETTED_ONLY = "vetted_only",
1319
- NO_SETTING = "no_setting"
1290
+ export declare class UserAnswersDto {
1291
+ userId: number;
1292
+ answers: QuestionAnswersDto[];
1320
1293
  }
1321
- export declare enum GenderEnum {
1322
- OTHER = 1,
1323
- MALE = 2,
1324
- FEMALE = 3
1294
+ export declare class GetByQuestionnaireIdsDto {
1295
+ questionnaireIds: string;
1325
1296
  }
1326
- export declare enum LevelOfPlayEnum {
1327
- BEGINNER = 1,
1328
- INTERMEDIATE = 2,
1329
- ADVANCED = 3,
1330
- SEMIPRO = 4,
1331
- SPECTATOR = 5
1297
+ export declare class FindBookingTypeSettingDto {
1298
+ organizationId: number;
1299
+ facilityId: number;
1300
+ spaceId: number;
1301
+ bookingDate: string;
1302
+ bookingTime: string;
1332
1303
  }
1333
- export declare enum ProgramTypesEnum {
1334
- LEAGUE = 0,
1335
- TOURNAMENT = 1,
1336
- CLASS = 2,
1337
- CLINIC = 3,
1338
- CAMP = 4,
1339
- LESSON = 5,
1340
- CLUB_TEAM = 6
1304
+ export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
1305
+ membershipId: number;
1341
1306
  }
1342
- export declare enum ProgramSeasonTypesEnum {
1343
- ROUND_ROBIN = 1,
1344
- BRACKETS = 2,
1345
- CAMP_CLINIC_CLASS = 3
1307
+ export declare class ImportProductsFromDB {
1308
+ buDate: string;
1346
1309
  }
1347
- export declare enum SportsEnum {
1348
- SOFTBALL = 1,
1349
- BASKETBALL = 2,
1350
- FOOTBALL = 3,
1351
- SOCCER = 4,
1352
- BOWLING = 5,
1353
- BOCCEBALL = 6,
1354
- CORNHOLE = 7,
1355
- DODGEBALL = 8,
1356
- FRISBEE = 9,
1357
- HOCKEY = 10,
1358
- KICKBALL = 11,
1359
- LACROSSE = 12,
1360
- PINGPONG = 13,
1361
- RUGBY = 14,
1362
- SKEEBALL = 15,
1363
- TENNIS = 16,
1364
- VOLLEYBALL = 17,
1365
- WIFFLEBALL = 18,
1366
- BADMINTON = 19,
1367
- FITNESS = 20,
1368
- GOLF = 21,
1369
- PILATES = 22,
1370
- RUNNING = 23,
1371
- SKIING = 24,
1372
- SNOWBOARDING = 25,
1373
- YOGA = 26,
1374
- BROOMBALL = 27,
1375
- CRICKET = 28,
1376
- CROSSFIT = 29,
1377
- CYCLING = 30,
1378
- FIELD_HOCKEY = 31,
1379
- RACQUETBALL = 32,
1380
- SPINNING = 33,
1381
- SQUASH = 34,
1382
- SURFING = 35,
1383
- SWIMMING = 36,
1384
- WIND_SURFING = 37,
1385
- ADVENTURE = 38,
1386
- BOXING = 39,
1387
- BASEBALL = 40,
1388
- DANCE = 41,
1389
- KICKBOXING = 42,
1390
- MARTIAL_ARTS = 43,
1391
- OUTDOORS = 44,
1392
- ROWING = 45,
1393
- SAILING = 46,
1394
- SUP = 47,
1395
- TRIATHLON = 48,
1396
- HANDBALL = 49,
1397
- CATCHBALL = 50,
1398
- BLITZBALL = 51,
1399
- ROLLER_DERBY = 52,
1400
- ICE_SKATING = 53,
1401
- PICKLEBALL = 54,
1402
- AXE_THROWING = 55,
1403
- FURSAL = 56,
1404
- BIRTHDAY = 57,
1405
- CORPRATE_EVENTS = 58,
1406
- OTHER = 999
1310
+ export declare class ImportCustomerFromCSV {
1311
+ fileName: string;
1312
+ startIndex?: number;
1407
1313
  }
1408
- export declare enum PublishingStatusEnum {
1409
- DRAFT = 1,
1410
- PUBLISHED = 2,
1411
- CLOSED = 3,
1412
- CANCELLED = 4,
1413
- ARCHIVE = 5,
1414
- UNPUBLISHED = 6
1314
+ export declare class ImportProgramsFileDto extends ImportCustomerFromCSV {
1315
+ resolveInvoices: string;
1415
1316
  }
1416
- export declare enum ProgramHighlightTypeEnum {
1417
- OTHER = 1,
1418
- MINAGE = 2,
1419
- MAXAGE = 3,
1420
- GENDER = 4,
1421
- LEVELOFPLAY = 5,
1422
- GAMESSEASON = 6,
1423
- MINWEEK = 7,
1424
- SURFACE = 8,
1425
- FORMAT = 9,
1426
- PLAYERS_PER_TEAM = 10,
1427
- MATCH_LENGTH = 12
1317
+ export declare class ImportDashCustomerDto extends ImportCustomerFromCSV {
1318
+ membershipId: number;
1319
+ onlyDashIds: string;
1428
1320
  }
1429
- export declare enum RequestStatusEnum {
1430
- PENDING = 1,
1431
- ACCEPTED = 2,
1432
- DECLINED = 3
1321
+ export declare class ImportRentalsFromCSV extends ImportCustomerFromCSV {
1322
+ facilityId: number;
1433
1323
  }
1434
- export declare enum PaymentStatusEnum {
1435
- NOT_PAID = "not_paid",
1436
- PARTIAL_PAYMENT = "partial",
1437
- FULLY_PAID = "paid",
1438
- REFUNDED = "refunded",
1439
- VOID = "void"
1324
+ export declare class ByOrganizationIdCustomerIdDto extends ByOrganizationIdDto {
1325
+ customerId: number;
1440
1326
  }
1441
- export declare enum ReservationExtendedEnum {
1442
- PURCHASE_ORDER = "purchase_order"
1327
+ export declare class FindCustomersByOrganizationIdFiltersDto extends PaginationQuery {
1328
+ nameSearch?: string;
1329
+ fuzzy?: string;
1330
+ customerType?: CustomerTypeEnum;
1331
+ customersIds?: string;
1443
1332
  }
1444
- export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
1445
- export declare enum ReservationStatusEnum {
1446
- PLANNED = "Planned",
1447
- APPROVED = "Approved",
1448
- AWAITING_ADMIN = "Awaiting Admin",
1449
- AWAITING_CUSTOMER = "Awaiting Customer",
1450
- REJECTED = "Rejected",
1451
- CANCELED = "Canceled"
1333
+ export declare class AddCustomerNotesDto {
1334
+ customerNotes: CustomerNoteDto[];
1452
1335
  }
1453
- export declare enum PaymentStatusV1Enum {
1454
- SENT_TO_CLIENT = 1,
1455
- SENT_FOR_PAYMENT = 2,
1456
- ACCEPTED = 3,
1457
- REJECTED = 4,
1458
- CANCELLED = 5,
1459
- FRAUD = 6,
1460
- NOT_RELEVANT = 7,
1461
- PENDING = 8
1336
+ export declare class CustomerNoteDto {
1337
+ id?: number;
1338
+ description: string;
1339
+ pinToTop?: boolean;
1462
1340
  }
1463
- export declare enum PaymentMethodsEnum {
1464
- STRIPE = 1,
1465
- CASH = 3
1341
+ export declare class AddEditCustomerDto {
1342
+ firstName?: string;
1343
+ lastName?: string;
1344
+ entityId?: number;
1345
+ entityType?: CustomerTypeEnum;
1346
+ email?: string;
1347
+ color?: string;
1348
+ street?: string;
1349
+ city?: string;
1350
+ state?: string;
1351
+ zip?: string;
1352
+ phoneNumber?: string;
1353
+ mainMediaId?: number;
1354
+ creatorId?: number;
1355
+ creatorType?: ResourceNameTypeEnum;
1356
+ userCreatorId?: number;
1357
+ gender?: GenderEnum;
1358
+ birthDate?: string;
1359
+ emergencyContactName?: string;
1360
+ emergencyContactPhone?: string;
1466
1361
  }
1467
- export declare enum PackageProductsRelationTypeEnum {
1468
- CHILD = "child",
1469
- UPSALE = "upsale"
1362
+ export declare class FindEventByIdDto {
1363
+ eventId: number;
1364
+ organizationId: number;
1470
1365
  }
1471
- export declare enum AddonTimePeriodEnum {
1472
- FULL = "full",
1473
- SESSION = "session",
1474
- EVENT = "event"
1366
+ export declare class UpdateEventDto {
1367
+ name: string;
1368
+ startDate: string;
1369
+ endDate: string;
1370
+ startTime: string;
1371
+ endTime: string;
1372
+ spacesIds?: number[];
1373
+ publicNotes?: string;
1374
+ privateNotes?: string;
1375
+ isInformAttendees?: boolean;
1376
+ minutesBeforeSlot?: number;
1377
+ minutesAfterSlot?: number;
1475
1378
  }
1476
- export declare enum CurrencyEnum {
1477
- USD = "USD"
1379
+ export declare class AddEventToSessionDto {
1380
+ eventsData: UpdateEventDto[];
1478
1381
  }
1479
- export declare enum NotificationTypeEnum {
1480
- BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
1481
- BOOKING_CHANGED_STUFF = "booking_changed_stuff",
1482
- BOOKING_DELETED_STUFF = "booking_deleted_stuff"
1382
+ export declare class EventsIdsQueryDto {
1383
+ eventsIds: string;
1483
1384
  }
1484
- export declare enum ProductTypesEnum {
1485
- RESERVATION = "reservation",
1486
- REGISTRATION = "registration",
1487
- MEMBERSHIP = "membership",
1488
- GOODS = "goods",
1489
- PACKAGE = "package",
1490
- REFUND_COMPENSATION = "refund",
1491
- CASH_OVER_SHORT = "cash_over_short",
1492
- PETTY_CASH = "petty_cash",
1493
- LEAGUE_REGISTRATION = "league_registration",
1494
- TAX = "tax"
1385
+ export declare class UpdateMultipleEventsDto {
1386
+ eventsIds: number[];
1387
+ name?: string;
1388
+ startTime?: string;
1389
+ endTime?: string;
1390
+ spacesIds?: number[];
1391
+ publicNotes?: string;
1392
+ privateNotes?: string;
1393
+ isInformAttendees?: boolean;
1394
+ minutesBeforeSlot?: number;
1395
+ minutesAfterSlot?: number;
1495
1396
  }
1496
- export declare enum OrderStatusEnum {
1497
- ACTIVE = "active",
1498
- WAITING_ADMIN = "waitingAdmin",
1499
- WAITING_CLIENT = "waitingClient",
1500
- CANCELED = "canceled"
1397
+ export declare class FindByFacilityIdDto {
1398
+ facilityId: number;
1501
1399
  }
1502
- export declare enum LineItemsStatusEnum {
1503
- USER_PRODUCT = "UserProduct",
1504
- RENTAL_PRODUCT = "RentalProduct"
1400
+ export declare class FindByFacilityIdAndOrganizationIdDto extends FindByFacilityIdDto {
1401
+ organizationId: number;
1505
1402
  }
1506
- export declare enum ProductSubTypesEnum {
1507
- SEASON_INDIVIDUAL = "season_individual",
1508
- SEASON_TEAM = "season_team",
1509
- SEASON_PER_PLAYER = "season_per_player"
1403
+ export declare class FacilityEventsScheduleQueryParams {
1404
+ programsIds?: string;
1405
+ startDate?: string;
1406
+ endDate?: string;
1510
1407
  }
1511
- export declare enum PaymentMethodTypeEnum {
1512
- CREDIT_CARD = "card",
1513
- ACH = "ach",
1514
- CASH = "cash",
1515
- CHECK = "check",
1516
- BALANCE = "balance",
1517
- CARD_ON_TERMINAL = "card-on-terminal",
1518
- OTHER = "other",
1519
- MIGRATED = "migrated",
1520
- VOID = "void"
1408
+ export declare class ProgramLandingPageDto {
1409
+ programId: number;
1521
1410
  }
1522
- export declare enum RefundTypeEnum {
1523
- LEAVE_BALANCE = "leave_balance",
1524
- REDUCE_BALANCE = "reduce_balance"
1411
+ export declare class ProgramLandingPageQueryDto {
1412
+ futureLimit?: number;
1525
1413
  }
1526
- export declare enum CustomerInMembershipTypeEnum {
1527
- INDIVIDUAL = "individual",
1528
- FAMILY = "family",
1529
- ORGANIZATION = "organization"
1414
+ export declare class ProgramSessionLandingPageDto {
1415
+ programId: number;
1416
+ sessionId: number;
1530
1417
  }
1531
- export declare enum MembershipTypeEnum {
1532
- FIXED = "fix_membership",
1533
- ROLLING = "rolling_membership"
1418
+ export interface IEventOfSessionDetails {
1419
+ id: number;
1420
+ name: string;
1421
+ programId: number;
1422
+ programType: ProgramTypesEnum;
1423
+ sessionId: number;
1424
+ sessionName: string;
1425
+ isPublic: boolean;
1426
+ startDate: Date;
1427
+ endDate: Date;
1428
+ startTime: string;
1429
+ endTime: string;
1430
+ resources: IBasicSpaceAndSlotCreator[];
1431
+ attenedanceCount: number;
1432
+ checkedInCount: number;
1433
+ missingPaymentCount: number;
1434
+ publicNotes: string;
1435
+ privateNotes: string;
1534
1436
  }
1535
- export declare enum CustomerTypeEnum {
1536
- USER = "user",
1537
- FAMILY = "family",
1538
- ORGANIZATION = "organization"
1437
+ export interface IAttendeeOfEvent {
1438
+ eventId: number;
1439
+ userId: number;
1440
+ lastName: string;
1441
+ firstName: string;
1442
+ birthDate: string;
1443
+ mediaURL: string;
1444
+ signedWaiver: string;
1445
+ entryStatus: EntryStatusEnum;
1446
+ paymentStatus: PaymentStatusEnum;
1447
+ addOns: {
1448
+ productId: number;
1449
+ productName: string;
1450
+ }[];
1451
+ totalPasses?: number;
1452
+ leftPasses?: number;
1453
+ addonProductUserIds: number[];
1539
1454
  }
1540
- export declare enum GroupStatusEnum {
1541
- ACTIVE = 1,
1542
- INACTIVE = 2,
1543
- DRAFT = 3
1455
+ export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
1456
+ nameSearch?: string;
1457
+ isCheckedIn?: string;
1458
+ isNotCheckedIn?: string;
1459
+ hasAddons?: string;
1460
+ isWaiverSigned?: string;
1461
+ statuses?: string;
1544
1462
  }
1545
- export declare enum FutureInstallmentStatusEnum {
1546
- FUTURE = "future",
1547
- SUCCEEDED = "succeeded",
1548
- FAILED = "failed",
1549
- CANCELED = "canceled"
1463
+ export declare class AddressDto {
1464
+ city: string;
1465
+ state: string;
1466
+ country: string;
1467
+ geo: number[];
1550
1468
  }
1551
- export declare enum EntryStatusEnum {
1552
- ENTERED = 1,
1553
- NOT_ENTERED = 2,
1554
- CANCELED = 3
1469
+ export declare class OpeningTimeDto {
1470
+ open: string;
1471
+ close: string;
1472
+ dayOfWeek: number;
1555
1473
  }
1556
- export declare enum PurchasedResourceStatusEnum {
1557
- ACTIVE = 1,
1558
- MOVED = 2,
1559
- CANCELED = 3
1474
+ export declare class CreateFacilityDto {
1475
+ name: string;
1476
+ sports: number[];
1477
+ description?: string;
1478
+ longDescription?: string;
1479
+ info?: string;
1480
+ address: AddressDto;
1481
+ timezone: string;
1482
+ amenities: number[];
1483
+ openingTimes: OpeningTimeDto[];
1484
+ resourcesIds?: number[];
1560
1485
  }
1561
- export declare enum TeamCanJoinEnum {
1562
- ANYONE = "anyone",
1563
- BY_INVITE = "byInvite",
1564
- CAPTAIN_APPROVAL = "captainApproval"
1486
+ export declare class UpdateFacilityDetailsDto {
1487
+ name?: string;
1488
+ description?: string;
1489
+ longDescription?: string;
1490
+ info?: string;
1491
+ address?: AddressDto;
1492
+ timezone?: string;
1565
1493
  }
1566
- export declare enum TeamMemberStatusEnum {
1567
- PENDING = 1,
1568
- ACTIVE = 2,
1569
- DECLINED = 3,
1570
- SUSPENDED = 4,
1571
- INACTIVE = 5,
1572
- INVITED = 6
1494
+ export declare class UpdateFacilityOpeningTimesDto {
1495
+ openingTimes: OpeningTimeDto[];
1573
1496
  }
1574
- export declare enum TeamMemberRoleEnum {
1575
- NULL = 0,
1576
- ADMIN = 1
1497
+ export declare class UpdateFacilitySportsDto {
1498
+ sports: number[];
1577
1499
  }
1578
- export declare enum DayOfWeekEnum {
1579
- SUNDAY = 0,
1580
- MONDAY = 1,
1581
- TUESDAY = 2,
1582
- WEDNESDAY = 3,
1583
- THURSDAY = 4,
1584
- FRIDAY = 5,
1585
- SATURDAY = 6
1500
+ export declare class UpdateFacilityAmenitiesDto {
1501
+ amenities: number[];
1586
1502
  }
1587
- export declare enum ActionTypesEnum {
1588
- CREATE = "create",
1589
- READ = "read",
1590
- UPDATE = "update",
1591
- DELETE = "delete"
1503
+ export declare class FindFacilitiesOptionsDto extends PaginationQuery {
1504
+ nameSearch?: string;
1592
1505
  }
1593
- export declare enum ActionSourcePlatformEnum {
1594
- ADMIN = "admin",
1595
- BACKOFFICE = "backoffice",
1596
- CONSUMER = "consumer"
1506
+ export declare class FindFamilyAccountsDto {
1507
+ userId: number;
1597
1508
  }
1598
- export declare enum RolesEnum {
1599
- ORG_ADMIN = "organizationAdmin",
1600
- BOND_ADMIN = "bondAdmin"
1509
+ export declare class FindFamilyAccountsCustomerDto {
1510
+ customerId: number;
1511
+ organizationId: number;
1601
1512
  }
1602
- export declare enum SeasonPoolStatusEnum {
1603
- IN_POOL = 5,
1604
- ASSIGNED = 1,
1605
- QUIT = 2,
1606
- SUSPENDED = 3,
1607
- INACTIVE = 4
1513
+ export declare class FindUsersInFamilyAccountDto {
1514
+ familyAccountId: number;
1608
1515
  }
1609
- export declare enum AmenitiesEnum {
1610
- HEAT = 1,
1611
- AC = 2,
1612
- WIFI = 3,
1613
- RESTROOMS = 4,
1614
- DRINKING_FOUNTAIN = 5,
1615
- PARKING = 6,
1616
- CONCESSIONS = 7,
1617
- SHELTER = 8,
1618
- PORTABLE_RESTROOMS = 9,
1619
- LIGHTS = 10,
1620
- LOCKER_ROOM = 11,
1621
- PAID_PARKING = 12,
1622
- ACCESSIBLE = 13
1516
+ export declare class CreateFamilyAccountDto {
1517
+ familyName: string;
1518
+ userId: number;
1623
1519
  }
1624
- export declare enum ResourceSubTypeEnum {
1625
- COURT = "court",
1626
- FIELD = "field",
1627
- ROOM = "room",
1628
- DIAMOND = "diamond",
1629
- RINK = "rink",
1630
- STUDIO = "studio",
1631
- POOL = "pool",
1632
- BATTING_CAGE = "batting cage",
1633
- SHELTER = "shelter",
1634
- GOLF_SIMULATOR = "golf simulator"
1520
+ export declare class UpdateFamilyAccountNameDto {
1521
+ familyName: string;
1522
+ familyAccountId: number;
1635
1523
  }
1636
- export declare enum ResourceTypeEnum {
1637
- SPACE = "space"
1524
+ export declare class AddUserToFamilyAccountDto {
1525
+ familyAccountId: number;
1526
+ isUserAdmin: boolean;
1527
+ firstName: string;
1528
+ lastName: string;
1529
+ gender: GenderEnum;
1530
+ birthDate: string;
1531
+ sports?: number[];
1532
+ email?: string;
1638
1533
  }
1639
- export declare enum ResourceAgesEnum {
1640
- ADULTS = "adults",
1641
- CHILDREN = "children"
1534
+ export declare class RemoveUserFromFamilyAccountDto {
1535
+ userId: number;
1536
+ familyAccountId: number;
1642
1537
  }
1643
- export declare enum SpacePropertiesEnum {
1644
- OUTDOOR = "outdoor",
1645
- INDOOR = "indoor"
1538
+ export declare class FindOneParams {
1539
+ id: number;
1646
1540
  }
1647
- export declare enum SurfacesEnum {
1648
- GRASS = "grass",
1649
- TURF = "turf",
1650
- FIELD_TURF = "fieldTurf",
1651
- ASTRO_TURF = "astroTurf",
1652
- HARDWOOD = "hardwood",
1653
- ASPHALT = "asphalt",
1654
- SAND = "sand",
1655
- ICE = "ice",
1656
- SPORT_COURT = "sportCourt"
1541
+ export declare class PaginationQuery {
1542
+ page: number;
1543
+ itemsPerPage: number;
1657
1544
  }
1658
- export declare enum RegistrationConstraintPeriodTypeEnum {
1659
- MINUTES = "minutes",
1660
- DAYS = "days"
1545
+ export declare class PaginationRangeQuery {
1546
+ startPage: number;
1547
+ endPage: number;
1548
+ itemsPerPage: number;
1661
1549
  }
1662
- export declare enum RegistrationWindowStatusEnum {
1663
- NOT_OPEN_YET = "not_opened_yet",
1664
- OPEN = "open",
1665
- CLOSED = "closed"
1550
+ export declare class FindGlCodeByOrganizationIdDto {
1551
+ organizationId: number;
1666
1552
  }
1667
- export declare enum RegistrationValidationStatusEnum {
1668
- FULL = "full",
1669
- ALREADY_REGISTERED = "registered",
1670
- AVAILABLE = "available",
1671
- NOT_OPEN_YET = "not opened",
1672
- ALREADY_CLOSED = "closed",
1673
- NO_PRODUCT_FOUND = "no-product-found"
1553
+ export declare class GetGlCodeDto {
1554
+ id: number;
1555
+ organizationId: number;
1556
+ code: string;
1557
+ createdAt: Date;
1558
+ updatedAt: Date;
1674
1559
  }
1675
- export declare enum DiscountMethodsEnum {
1676
- PERCENT = "percent",
1677
- AMOUNT = "amount"
1560
+ export declare class FindByProgramSeasonIdDto {
1561
+ seasonId: number;
1678
1562
  }
1679
- export declare enum UserAuthorizationsTypeEnum {
1680
- ORGANIZATION = "organization"
1563
+ export declare class CreateBulkDivisionsDto {
1564
+ divisions: CreateDivisionDto[];
1681
1565
  }
1682
- export declare enum OrganizationLocaleDateEnum {
1683
- USA = "USA"
1566
+ export declare class CreateDivisionDto {
1567
+ name: string;
1568
+ ordinal?: number;
1569
+ programSeasonId: number;
1570
+ color: string;
1571
+ isDefault: boolean;
1684
1572
  }
1685
- export declare enum DateTimeFormatsEnum {
1686
- API_DATE = "YYYY/MM/DD",
1687
- API_TIME = "HH:mm:ss"
1573
+ export declare class CreateGroupDto {
1574
+ name: string;
1575
+ description?: string;
1576
+ status?: GroupStatusEnum;
1577
+ maxCapacity?: number;
1578
+ mainMediaId?: number;
1579
+ minAgeYears?: number;
1580
+ maxAgeYears?: number;
1581
+ gender: GenderEnum;
1582
+ levelOfPlay?: LevelOfPlayEnum[];
1583
+ sports: SportsEnum[];
1584
+ questionnaires?: number[];
1585
+ captainUserId?: number;
1586
+ divisionId?: number;
1688
1587
  }
1689
- export declare enum SlotTypeEnum {
1690
- EXTERNAL = "external",
1691
- INTERNAL = "internal",
1692
- MAINTENANCE = "maintenance",
1693
- CUSTOM = "custom"
1588
+ export declare class ConnectGroupToDivision {
1589
+ groupId: number;
1590
+ divisionId: number;
1591
+ prevDivisionId: number;
1694
1592
  }
1695
- export declare enum PlatformsEnum {
1696
- CONSUMER = "consumer",
1697
- BO = "backoffice",
1698
- MOBILE = "mobile",
1699
- CRON = "cron"
1593
+ export declare class MoveUserInGroups {
1594
+ userId: number;
1595
+ groupId?: number;
1596
+ prevGroupId?: number;
1700
1597
  }
1701
- export declare enum ShiftStatusEnum {
1702
- OPEN = "open",
1703
- CLOSED = "closed",
1704
- MANAGMENT_CLOSED = "closed_by_manager",
1705
- RECONCILED = "reconciled"
1598
+ export declare class SaveUserAsGroupCaptain {
1599
+ groupId: number;
1600
+ userId: number;
1706
1601
  }
1707
- export declare enum EventStatusEnum {
1708
- OPEN = 1,
1709
- DRAFT = 2,
1710
- FULL = 3,
1711
- CANCELLED = 4,
1712
- CLOSED = 5,
1713
- DELETED = 6
1602
+ export declare class CreateTeamInviteDto {
1603
+ emails: string[];
1604
+ userCreatorId: number;
1714
1605
  }
1715
- export declare enum ReservationTypeEnum {
1716
- RENTAL = "rental",
1717
- PROGRAM = "program",
1718
- MAINTENANCE = "maintenance",
1719
- CUSTOM = "custom"
1606
+ export declare class TeamByIdDto {
1607
+ teamId: number;
1720
1608
  }
1721
- export declare enum SlotDurationTypeEnum {
1722
- DATES = "dates",
1723
- ALL_DAY = "all day",
1724
- DURATION = "duration"
1725
- }
1726
- export declare enum DurationUnitTypesEnum {
1727
- MINUTES = "minutes",
1728
- HOURS = "hours"
1729
- }
1730
- export declare enum FrequencyEnum {
1731
- NONE = "none",
1732
- WEEKLY = "weekly",
1733
- DAILY = "daily",
1734
- MONTHLY = "monthly",
1735
- YEARLY = "yearly"
1609
+ export declare class GetInviteDto extends TeamByIdDto {
1610
+ inviteToken: string;
1736
1611
  }
1737
- export declare enum MaintenanceTimingEnum {
1738
- BEFORE = 1,
1739
- AFTER = 2,
1740
- AT_THE_BEGINING = 3,
1741
- AT_THE_END = 4
1612
+ export declare class JoinTeamDto {
1613
+ userId: number;
1614
+ inviteToken?: string;
1742
1615
  }
1743
- export declare enum CreatorTypeEnum {
1744
- SPACE = "space",
1745
- PROGRAM_SEASON = "program_season"
1616
+ export declare class UserTeamFutureSeasons extends TeamByIdDto {
1617
+ userId: number;
1746
1618
  }
1747
- export declare enum UpdatePricesTypeEnum {
1748
- INDIVIDUAL = "indvidual",
1749
- CATEGORY = "category",
1750
- GLOBAL = "global"
1619
+ export interface IMoveSeason {
1620
+ fromSeasonId: number;
1621
+ toSeasonId: number;
1751
1622
  }
1752
- export declare enum BondDayOfWeekEnum {
1753
- MONDAY = 2,
1754
- TUESDAY = 3,
1755
- WEDNESDAY = 4,
1756
- THURSDAY = 5,
1757
- FRIDAY = 6,
1758
- SATURDAY = 7,
1759
- SUNDAY = 8
1623
+ export declare class MoveTeamOrMemberDto implements IMoveSeason {
1624
+ teamId?: number;
1625
+ memberId?: number;
1626
+ fromSeasonId: number;
1627
+ toSeasonId: number;
1628
+ toDivisionId?: number;
1760
1629
  }
1761
- export declare enum ReservationMigrationStatusEnum {
1762
- NEW = "new",
1763
- NO = "no",
1764
- YES = "yes"
1630
+ export declare class MoveTeamOrMembersByCsvDTO {
1631
+ fileName: string;
1765
1632
  }
1766
- export declare enum ProductPackageLevelEnum {
1767
- HOUR = "hour",
1768
- SLOT = "slot",
1769
- RESERVATION = "reservation"
1633
+ export declare class CreateMembershipDto {
1634
+ organizationId: number;
1635
+ name: string;
1636
+ description?: string;
1637
+ customerTypes: CustomerInMembershipTypeEnum[];
1638
+ activity: SportsEnum;
1639
+ facilityId: number;
1640
+ questionnaires: number[];
1641
+ minAgeYears: number;
1642
+ maxAgeYears: number;
1643
+ gender: GenderEnum;
1644
+ maxMembers?: number;
1645
+ maxMaleMembers?: number;
1646
+ maxFemaleMembers?: number;
1647
+ startDate: string;
1648
+ endDate: string;
1649
+ registrationStartDate?: Date;
1650
+ registrationEndDate?: Date;
1651
+ membershipType: MembershipTypeEnum;
1652
+ durationMonths: number;
1653
+ longDescription?: string;
1654
+ isAutoRenew?: boolean;
1770
1655
  }
1771
- export declare enum CancellationStatusEnum {
1772
- IMMEDIATE = "immediate",
1773
- AUTO_RENEWAL = "auto_renewal"
1656
+ export declare class UpdateMembrshipDto extends CreateMembershipDto {
1657
+ id: number;
1774
1658
  }
1775
- export declare enum SeasonScheduleStatusEnum {
1776
- DRAFT = 0,
1777
- PUBLISHED = 1
1659
+ export declare class UpdateMembershipMediaDto {
1660
+ membershipId: number;
1661
+ mediaId: number;
1778
1662
  }
1779
- export declare enum FinancialStepEnum {
1780
- VOID = "void",
1781
- REFUND = "refund",
1782
- NONE = "none",
1783
- REFUND_AND_VOID = "refund-and-void",
1784
- APPEND = "append"
1663
+ export declare class FindMembershipByIdDto {
1664
+ membershipId: number;
1785
1665
  }
1786
- export declare enum StripeAccountTypesEnum {
1787
- STRIPE = "stripe",
1788
- STRIPE_CUSTOM = "stripe:account:custom",
1789
- STRIPE_CUSTOMER = "stripe:customer"
1666
+ export declare class FindMembershipsByOrganizationIdDto {
1667
+ organizationId: number;
1790
1668
  }
1791
- export declare enum LinkedAccountStatus {
1792
- PENDING = 1,
1793
- ACTIVE = 2,
1794
- PRE_PENDING = 3
1669
+ export declare class FindMembershipsByUserIdDto {
1670
+ userId: number;
1795
1671
  }
1796
- export declare enum AddonParentTypeEnum {
1797
- RESERVATION = "reservation",
1798
- SLOT = "slot"
1672
+ export declare class SetMembersStartDateByOrganization extends FindMembershipsByOrganizationIdDto {
1673
+ startDate: string;
1799
1674
  }
1800
- export declare enum EEmailStatus {
1801
- SENT = "sent",
1802
- OPENED = "opened",
1803
- PAID = "paid",
1804
- CANCELED = "canceled"
1675
+ export declare class MembershipIdsDto {
1676
+ membershipIds?: number[];
1805
1677
  }
1806
- export interface IEntitlementTerms {
1807
- type: EntitlementTermsTypesEnum;
1808
- id?: number;
1809
- value?: string;
1810
- minValue?: string;
1811
- maxValue?: string;
1678
+ export declare class MemberIdDto {
1679
+ memberId?: number;
1812
1680
  }
1813
- export interface IQuestionAnswerObject {
1814
- questionId: number;
1815
- value: string;
1681
+ export declare class FindMembersOptionsDto extends PaginationQuery {
1682
+ nameEmailSearch?: string;
1683
+ pastMemberships?: string;
1816
1684
  }
1817
- export interface ILowestPriceForItem {
1818
- itemId: number;
1819
- itemType: ResourceNameTypeEnum;
1820
- groupId: number;
1821
- groupName?: string;
1822
- price: number;
1823
- overridesPrice: boolean;
1685
+ export declare class CancelMembershipDto {
1686
+ isImmediatelyCancel: boolean;
1687
+ cancellationReason?: string;
1824
1688
  }
1825
- export interface IResourcesAvailability {
1826
- resourceType: ResourceNameTypeEnum;
1827
- quantity: number;
1828
- resourcesIds: number[];
1829
- isPunchCard: boolean;
1830
- resources?: any[];
1689
+ export declare class CreateEntitlementTermsDto {
1690
+ organizationId: number;
1691
+ entitlementGroupId: number;
1692
+ terms: IEntitlementTerms[];
1831
1693
  }
1832
- export interface IPackageResponse {
1833
- parentProduct: Product;
1834
- children: IChildProduct[];
1694
+ export declare class FindEntitlementTermsByGroupIdDto {
1695
+ entitlementGroupId: number;
1835
1696
  }
1836
- export interface IChildProduct {
1837
- product: Product;
1838
- relationType: PackageProductsRelationTypeEnum;
1839
- timePeriod?: AddonTimePeriodEnum;
1697
+ export declare class FindEntitlementTermsByVariablesDto {
1698
+ user: any;
1699
+ userVariables: IQuestionAnswerObject[];
1840
1700
  }
1841
- export interface ISeasonAttendeeInfo {
1842
- applicationAnswers: Answer[];
1843
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
1844
- invoices: Order[];
1845
- payments: Invoice[];
1846
- products: Product[];
1847
- redeemNext: ProductsUsers;
1701
+ export declare class FindLowestPriceDto {
1702
+ organizationId: number;
1703
+ user?: any;
1704
+ answers?: IQuestionAnswerObject[];
1705
+ itemIds: number[];
1706
+ itemType?: ResourceNameTypeEnum;
1707
+ startDate?: Date;
1848
1708
  }
1849
- export interface ISeasonAttendeeListInfo {
1850
- userId: number;
1851
- userFirstName: string;
1852
- userLastName: string;
1853
- userGender: number;
1854
- userBirthDate: Date;
1855
- userProfilePicUrl: string;
1856
- customerId: number;
1857
- customerEmail: string;
1858
- paymentStatus: string;
1859
- productName: string;
1860
- punchCard: boolean;
1709
+ export declare class FindGroupItemsPricingsDto {
1710
+ groupsIds: number[];
1711
+ itemsIds: number[];
1861
1712
  }
1862
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
1863
- segmentType: ResourceNameTypeEnum;
1864
- participantRegisteredDate?: string;
1713
+ export declare class CreateEntitlementGroupDto {
1714
+ name: string;
1865
1715
  }
1866
- export declare class EventAsSeasonSegment extends Event {
1867
- segmentType: ResourceNameTypeEnum;
1868
- participantRegisteredDate?: string;
1716
+ export declare class GetEntitlementGroupPricingDto {
1717
+ itemIds: number[];
1718
+ itemType: string;
1869
1719
  }
1870
- export interface ITokenResonse {
1871
- token: string;
1720
+ export declare class FindEntitlementGroupByIdDto {
1721
+ groupid: number;
1872
1722
  }
1873
- export interface IStripeBondInvoices {
1874
- paidStripePaymentIntent: Stripe.PaymentIntent;
1875
- bondPaidInvoice: Invoice;
1876
- order?: Order;
1877
- customer?: Customer;
1723
+ export declare class CreateGroupPricingWithProduct {
1724
+ groupId: number;
1725
+ price: number;
1726
+ startDate?: Date;
1727
+ endDate?: Date;
1728
+ discountValue?: number;
1729
+ discountMethod?: DiscountMethodsEnum;
1878
1730
  }
1879
- export interface IPartialPaymentData {
1880
- purchasingUserId: number;
1881
- paymentData: PurchasePaymentDto;
1882
- amountToPay: number;
1731
+ export declare class FindByProductIdDto {
1732
+ productId: number;
1883
1733
  }
1884
- export interface IPayment {
1734
+ export declare class FindPriceOfProductDto {
1885
1735
  id: number;
1886
- total: number;
1887
- paymentMethod: PaymentMethodTypeEnum;
1888
- status: PaymentStatusEnum;
1889
- createdAt: Date;
1890
- invoices: number[];
1736
+ userId: number;
1737
+ resources: ResourceDto[];
1891
1738
  }
1892
- export interface IPaginationData<T> {
1893
- meta: {
1894
- totalItems: number;
1895
- itemsPerPage: number;
1896
- totalPages: number;
1897
- currentPage: number;
1898
- };
1899
- data: T[];
1739
+ export declare class FindPricesOfProductsDto {
1740
+ products: FindPriceOfProductDto[];
1741
+ answers: UserAnswersDto[];
1900
1742
  }
1901
- export interface IPricesOfProductsResults {
1902
- productId: number;
1903
- userId: number;
1904
- price: number;
1905
- groupId?: number;
1906
- groupName?: string;
1907
- originalPrice?: number;
1908
- priceWithoutTax: number;
1909
- tax: number;
1910
- isTaxInclusive: boolean;
1911
- }
1912
- export interface IPaymentMethodToFundLeft {
1913
- paymentType: PaymentMethodTypeEnum;
1914
- paymentMethodId: string;
1915
- fundLeft: number;
1916
- ccLast4?: string;
1917
- ccBrand?: string;
1918
- }
1919
- export interface IVariantsAndTitle {
1920
- title: VariantTitle;
1921
- variants: Variant[];
1922
- }
1923
- export interface IProgramSeasonActivityTimes {
1924
- dayOfWeek: number;
1925
- open: string;
1926
- close: string;
1927
- }
1928
- export interface IProgramSeasonActivityTimesAsDates {
1929
- date: string;
1930
- startTime: string;
1931
- endTime: string;
1932
- }
1933
- export interface IBlockedDates {
1934
- name: string;
1935
- startDate: Date;
1936
- endDate: Date;
1937
- }
1938
- export interface ISingleMemberForRenewal {
1939
- member_id: number;
1940
- member_membershipId: number;
1941
- member_userId: number;
1942
- member_nextPaymentMethodId?: string;
1943
- member_nextPaymentType?: PaymentMethodTypeEnum;
1944
- member_answerTitleIds?: number[];
1945
- member_organizationId: number;
1946
- line_paidAmount: number;
1947
- line_productId: number;
1948
- order_payingUserId: number;
1949
- order_paymentMethodId: string;
1950
- order_paymentType: PaymentMethodTypeEnum;
1951
- endDate: Date;
1952
- membership_name: string;
1953
- user_firstName: string;
1954
- user_lastName: string;
1955
- user_email: string;
1956
- }
1957
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
1958
- package_parentProductId: number;
1959
- line2_paidAmount: number;
1960
- familyid: number;
1961
- order_id: number;
1962
- }
1963
- export interface IResourceRegistrationData {
1964
- id: number;
1743
+ export declare class FindPackageByResourceDto {
1965
1744
  resourceType: ResourceNameTypeEnum;
1966
- openNumDays?: number;
1967
- openNumMinutes?: number;
1968
- openTime?: string;
1969
- closeNumDays?: number;
1970
- closeNumMinutes?: number;
1971
- closeTime?: string;
1972
- registrationWindowStatus?: RegistrationWindowStatusEnum;
1745
+ resourceId: number;
1973
1746
  }
1974
- export interface IResourceDataForConstraintsCalc {
1975
- id: number;
1976
- startDate: string;
1977
- startTime: string;
1747
+ export declare class FindProductsByResourceAsOrganizationDto extends FindPackageByResourceDto {
1748
+ organizationId: number;
1978
1749
  }
1979
- export interface IRegistrationConstraintsSetting {
1980
- numDays?: number;
1981
- numMinutes?: number;
1750
+ export declare class CreateProductsDto {
1751
+ products: CreateProductDto[];
1752
+ addOnsData?: ProductInPackage[];
1753
+ addOnIds?: ExistingProductToPackageDto[];
1982
1754
  }
1983
- export interface IAttendeeDataToNotify {
1984
- firstName: string;
1985
- lastName: string;
1986
- email: string;
1987
- sessionName: string;
1988
- parentSessionName?: string;
1989
- organizationName: string;
1990
- programName: string;
1755
+ export declare class CreatePaymentPlanDto extends PaymentPlanDto {
1756
+ name: string;
1991
1757
  }
1992
- export interface IEventInSchedule {
1993
- eventId: number;
1994
- eventName: string;
1995
- eventStartDate: string;
1996
- eventEndDate: string;
1997
- eventStartTime: string;
1998
- eventEndTime: string;
1999
- programId: number;
2000
- programName: string;
2001
- programType: ProgramTypesEnum;
2002
- sessionId: number;
2003
- sessionName: string;
2004
- sports: number;
2005
- spaces: {
2006
- spaceId: number;
2007
- spaceName: string;
2008
- }[];
2009
- status?: RegistrationValidationStatusEnum;
1758
+ export declare class CreateProductDto {
1759
+ id?: number;
1760
+ organizationId: number;
1761
+ name: string;
1762
+ quantity?: number;
1763
+ isPublic: boolean;
1764
+ startDate?: Date;
1765
+ endDate?: Date;
1766
+ description?: string;
1767
+ resourcesType?: ResourceNameTypeEnum;
1768
+ resourcesIdsToApplyOn?: number[];
1769
+ GL?: string;
1770
+ prices: CreatePriceDto[];
1771
+ downpayment?: number;
1772
+ productType: ProductTypesEnum;
1773
+ subProductType?: string;
1774
+ defaultForResourceId?: number;
1775
+ defaultForResourceType?: ResourceNameTypeEnum;
1776
+ entitlementGroupsPricings?: CreateGroupPricingWithProduct[];
1777
+ variantTitleIds?: number[];
1778
+ variants?: VariantWithPrice[];
1779
+ variantParentId?: number;
1780
+ isAddon?: boolean;
1781
+ isArchive?: boolean;
1782
+ timePeriod?: AddonTimePeriodEnum;
1783
+ isProRated?: boolean;
1784
+ paymentPlan?: CreatePaymentPlanDto;
1785
+ isTaxInclusive?: boolean;
1786
+ tax?: number;
1787
+ sports?: number[];
1788
+ durationMinutes?: number;
1789
+ durationDays?: number;
1790
+ forms?: number[];
1791
+ isForAllCustomers?: boolean;
1792
+ membershipsAvailableFor?: number[];
1793
+ customersAvailableFor?: number[];
1794
+ addons?: createRentalProductAddonDto[];
1795
+ availabilityTimes?: createProductAvailabilityTimesDto[];
2010
1796
  }
2011
- export interface ISlotInSchedule {
2012
- facilityId: number;
2013
- facilityName: string;
2014
- spaces: ISpaceWithSlots[];
1797
+ export declare class VariantWithPrice {
1798
+ variantIds: number[];
1799
+ price: CreatePriceDto[];
2015
1800
  }
2016
- export interface ISpaceWithSlots {
2017
- id: number;
1801
+ export declare class CreatePriceDto {
1802
+ id?: number;
1803
+ price: number;
1804
+ currency: CurrencyEnum;
2018
1805
  name: string;
2019
- slots: ISlotReservationData[];
1806
+ startDate?: Date;
1807
+ endDate?: Date;
1808
+ discountValue?: number;
1809
+ discountMethod?: DiscountMethodsEnum;
1810
+ isDefaultPriceForProduct?: boolean;
2020
1811
  }
2021
- export interface ISlotReservationData {
2022
- reservationId: number;
2023
- reservationName: string;
2024
- date: string;
2025
- startTime: string;
2026
- endTime: string;
2027
- notes: string;
2028
- spaceId: number;
2029
- isRental: boolean;
2030
- slotType: SlotTypeEnum;
2031
- slotId: number;
2032
- eventId: number;
2033
- isPrivate: boolean;
1812
+ export declare class CreatePackageDto {
1813
+ parentProductId: number;
1814
+ productsData?: ProductInPackage[];
1815
+ productsIds?: ExistingProductToPackageDto[];
2034
1816
  }
2035
- export interface IRawEventInSchedule extends IEventInSchedule {
2036
- parentSessionId: number;
2037
- parentSessionName: string;
2038
- eventTimezone: string;
2039
- maxParticipants: number;
2040
- maxMaleParticipants: number;
2041
- maxFemaleParticipants: number;
2042
- isPunchCard: boolean;
1817
+ export declare class CreatePackageToResourceDto {
1818
+ resourceId: number;
1819
+ resourceType: ResourceNameTypeEnum;
1820
+ isCreateToChildProducts: boolean;
1821
+ productsData: ProductInPackage[];
2043
1822
  }
2044
- export interface IBasicSpaceAndSlotCreator {
2045
- id: number;
2046
- name: string;
2047
- bookingCreatorId: number;
1823
+ export declare class ProductInPackage extends CreateProductDto {
1824
+ relationType: PackageProductsRelationTypeEnum;
1825
+ amountInPackage?: number;
1826
+ level?: ProductPackageLevelEnum;
2048
1827
  }
2049
- export interface IRawSlotInSchedule {
2050
- startDate: string;
2051
- endDate: string;
2052
- startTime: string;
2053
- endTime: string;
2054
- reservationId: number;
2055
- eventTitle: string;
2056
- publicNotes: string;
2057
- spaceId: number;
2058
- creatorType: ResourceNameTypeEnum;
2059
- slotType: SlotTypeEnum;
2060
- slotId: number;
2061
- eventId: number;
2062
- isPrivate: boolean;
1828
+ export declare class ExistingProductToPackageDto {
1829
+ relationType: PackageProductsRelationTypeEnum;
1830
+ id: number;
1831
+ timePeriod?: AddonTimePeriodEnum;
1832
+ level?: ProductPackageLevelEnum;
2063
1833
  }
2064
- export interface IPurchasedResourcesRaw {
2065
- purchasedId: number;
2066
- purchasedProductUserId: number;
2067
- purchasedResourceId: number;
2068
- purchasedResourceType: ResourceNameTypeEnum;
2069
- purchasedStatus: PurchasedResourceStatusEnum;
2070
- pUserId: number;
2071
- pUserPaymentStatus: PaymentStatusEnum;
2072
- pUserProductId: number;
2073
- pUserProductName: string;
2074
- pUserProductPrice: number;
2075
- pUserProductPriceCurrency: string;
2076
- pUserProductQuantity: number;
2077
- pUserProductQuantityLeft: number;
2078
- pUserUserId: number;
1834
+ export declare class ConnectProductResourceDto {
1835
+ productId: number;
1836
+ resourceType: ResourceNameTypeEnum;
1837
+ resourceIds: number[];
2079
1838
  }
2080
- export interface IUsersPasses {
1839
+ export declare class ReturnRequiredProductsDto {
2081
1840
  userId: number;
2082
- userFirstName: string;
2083
- userLastName: string;
2084
- organizationId: number;
2085
- programId: number;
2086
- programName: string;
2087
- sessionId: number;
2088
- sessionName: string;
2089
1841
  productId: number;
2090
- productName: string;
2091
- productUserId: number;
2092
- purchaseDate: Date;
2093
- passesLeft: number;
2094
1842
  }
2095
- export interface ISessionsLandingPage {
2096
- sessionId: number;
2097
- name: string;
2098
- startDate: Date;
2099
- endDate: Date;
2100
- registrationStartDate: Date;
2101
- registrationEndDate: Date;
2102
- sport: SportsEnum;
2103
- minAge: string;
2104
- maxAge: string;
2105
- maxParticipants?: number;
2106
- gender: GenderEnum;
2107
- activityTimes: ActivityTimes[];
2108
- earlyRegistrationStartDate?: Date;
2109
- earlyRegistrationEndDate?: Date;
2110
- lateRegistrationStartDate?: Date;
2111
- lateRegistrationEndDate?: Date;
2112
- attendeeCount?: number;
2113
- segmentsOrEvents: 'segment' | 'event';
1843
+ export declare class FindByProductUserIdsDto {
1844
+ userId: number;
1845
+ organizationId: number;
2114
1846
  }
2115
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2116
- hasRequiredMembership: boolean;
2117
- hasEntitledPricing: boolean;
2118
- lowestPrice?: number;
2119
- products?: ISessionLandingPageProduct[];
1847
+ export declare class AddRequiredProductsDto {
1848
+ productId: number;
1849
+ requiredProductIds: number[];
2120
1850
  }
2121
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2122
- hasRequiredMembership: boolean;
2123
- hasEntitledPricing: boolean;
2124
- products?: ISessionLandingPageProduct[];
2125
- segments?: Event[] | ProgramSeason[];
2126
- programName: string;
2127
- programId: number;
2128
- levelOfPlay: LevelOfPlayEnum[];
2129
- registrationConstraints: IResourceRegistrationData[];
1851
+ export declare class ProductsIdsDto extends PaginationQuery {
1852
+ productIds?: number[];
1853
+ includePrices?: boolean;
1854
+ productType?: ProductTypesEnum;
1855
+ includeAddons?: string;
2130
1856
  }
2131
- export interface ISlimAddons {
2132
- addons?: {
2133
- id: number;
2134
- timePeriod: AddonTimePeriodEnum;
2135
- name: string;
2136
- productType?: ProductTypesEnum;
2137
- productSubType?: string;
2138
- }[];
1857
+ export declare class GetByOrganizationIdDto {
1858
+ organizationId?: number;
2139
1859
  }
2140
- export interface ISessionLandingPageProduct extends ISlimAddons {
2141
- id: number;
2142
- name: string;
2143
- startDate?: Date;
2144
- endDate?: Date;
2145
- downpayment?: number;
2146
- description?: string;
2147
- prices: Price[];
2148
- productSubType?: ProductSubTypesEnum;
2149
- punchCard: boolean;
2150
- isAddon: boolean;
2151
- defaultPriceId?: number;
1860
+ export declare class GetByOrgIdOrderIdDto extends GetByOrganizationIdDto {
1861
+ orderId?: number;
2152
1862
  }
2153
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2154
- destinationId?: string;
2155
- stripeCustomerId?: string;
2156
- fee?: number;
1863
+ export declare class GetProductsDto extends PaginationQuery {
1864
+ productIds?: string;
1865
+ includePrices?: boolean;
1866
+ productType?: string;
1867
+ productSubType?: string;
1868
+ search?: string;
1869
+ includeAddons?: boolean;
1870
+ includeArchived?: boolean;
1871
+ includeAllData?: boolean;
1872
+ resourceIds?: string;
1873
+ sports?: string;
2157
1874
  }
2158
- export interface IReservationCreatorData {
2159
- type: ResourceNameTypeEnum;
2160
- id: number;
1875
+ export declare class GetAllVariantTitlesDto {
2161
1876
  organizationId: number;
2162
- startDate: string;
2163
- endDate: string;
2164
- sportId: number;
2165
1877
  }
2166
- export declare class BasicActivityTimesDto {
2167
- dayOfWeek: number;
2168
- close: string;
2169
- open: string;
2170
- availabilityStartDate?: string;
2171
- availabilityEndDate?: string;
1878
+ export declare class GetAllOrganizationAddonsDto {
1879
+ organizationId: number;
2172
1880
  }
2173
- export declare class QuestionAnswersDto {
2174
- questionId: number;
2175
- value: any;
1881
+ export declare class CreateVariantTitleDto {
1882
+ organizationId: number;
1883
+ title: string;
1884
+ variants: string[];
2176
1885
  }
2177
- export declare class UserAnswersDto {
2178
- userId: number;
2179
- answers: QuestionAnswersDto[];
1886
+ export declare class UpdateVariantTitleDto {
1887
+ organizationId: number;
1888
+ titleId: number;
1889
+ title: string;
1890
+ variants: string[];
2180
1891
  }
2181
- export declare class GetByQuestionnaireIdsDto {
2182
- questionnaireIds: string;
1892
+ export declare class GetByCustomerIdDto extends PaginationQuery {
1893
+ customerId: number;
2183
1894
  }
2184
- export declare class FindBookingTypeSettingDto {
2185
- organizationId: number;
2186
- facilityId: number;
2187
- spaceId: number;
2188
- bookingDate: string;
2189
- bookingTime: string;
1895
+ export declare class GetExtraProductDataDto {
1896
+ isPublic?: boolean;
1897
+ isGetByChildResources?: boolean;
1898
+ isGetEntitlePricing?: boolean;
1899
+ isGetAddOns?: boolean;
1900
+ includeResources?: boolean;
1901
+ includeArchived?: boolean;
2190
1902
  }
2191
- export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
2192
- membershipId: number;
1903
+ export declare class GetBySessionType {
1904
+ sessionType: 'event' | 'segment';
2193
1905
  }
2194
- export declare class ImportProductsFromDB {
2195
- buDate: string;
1906
+ export declare class CreateSubcategoryDto {
1907
+ productType: ProductTypesEnum;
1908
+ name: string;
1909
+ stationId?: number;
1910
+ ordinal?: number;
2196
1911
  }
2197
- export declare class ImportCustomerFromCSV {
2198
- fileName: string;
2199
- startIndex?: number;
1912
+ export declare class CreateSubcategoriesDto {
1913
+ subcategories: CreateSubcategoryDto[];
2200
1914
  }
2201
- export declare class ImportProgramsFileDto extends ImportCustomerFromCSV {
2202
- resolveInvoices: string;
1915
+ export declare class UpdateSubcategoryDto {
1916
+ id: number;
1917
+ productType?: ProductTypesEnum;
1918
+ name?: string;
1919
+ stationId?: number;
1920
+ ordinal?: number;
2203
1921
  }
2204
- export declare class ImportDashCustomerDto extends ImportCustomerFromCSV {
2205
- membershipId: number;
2206
- onlyDashIds: string;
1922
+ export declare class GetSubcategoryDto {
1923
+ stationId?: number;
2207
1924
  }
2208
- export declare class ImportRentalsFromCSV extends ImportCustomerFromCSV {
2209
- facilityId: number;
1925
+ export declare class SetStationSubcategoriesDto {
1926
+ stationId: number;
1927
+ subcategoryIds?: number[];
1928
+ categories?: string[];
2210
1929
  }
2211
- export declare class ByOrganizationIdCustomerIdDto extends ByOrganizationIdDto {
2212
- customerId: number;
1930
+ export declare class createRentalProductAddonDto {
1931
+ productId: number;
1932
+ price: number;
1933
+ isFlatPrice: boolean;
1934
+ isMandatory: boolean;
1935
+ level: ProductPackageLevelEnum;
2213
1936
  }
2214
- export declare class FindCustomersByOrganizationIdFiltersDto extends PaginationQuery {
2215
- nameSearch?: string;
2216
- fuzzy?: string;
2217
- customerType?: CustomerTypeEnum;
2218
- customersIds?: string;
1937
+ export declare class createProductAvailabilityTimesDto {
1938
+ availabilityStartDate?: string;
1939
+ availabilityEndDate?: string;
1940
+ daysOfWeek: number[];
1941
+ startTime: string;
1942
+ endTime: string;
2219
1943
  }
2220
- export declare class AddCustomerNotesDto {
2221
- customerNotes: CustomerNoteDto[];
1944
+ export declare class createResourceDto {
1945
+ resourceId: number;
1946
+ resourceType: ResourceNameTypeEnum;
2222
1947
  }
2223
- export declare class CustomerNoteDto {
2224
- id?: number;
2225
- description: string;
2226
- pinToTop?: boolean;
1948
+ export declare class archiveDto {
1949
+ isArchive: boolean;
2227
1950
  }
2228
- export declare class AddEditCustomerDto {
2229
- firstName?: string;
2230
- lastName?: string;
2231
- entityId?: number;
2232
- entityType?: CustomerTypeEnum;
2233
- email?: string;
2234
- color?: string;
2235
- street?: string;
2236
- city?: string;
2237
- state?: string;
2238
- zip?: string;
2239
- phoneNumber?: string;
2240
- mainMediaId?: number;
2241
- creatorId?: number;
2242
- creatorType?: ResourceNameTypeEnum;
2243
- userCreatorId?: number;
2244
- gender?: GenderEnum;
2245
- birthDate?: string;
2246
- emergencyContactName?: string;
2247
- emergencyContactPhone?: string;
1951
+ export declare class CreateUpdateVariantsDto {
1952
+ organizationId: number;
1953
+ parentProductId: number;
1954
+ variantTitles: VariantTitleDto[];
1955
+ variants: VariantDto[];
2248
1956
  }
2249
- export declare class FindEventByIdDto {
2250
- eventId: number;
2251
- organizationId: number;
1957
+ export declare class VariantTitleDto {
1958
+ titleName: string;
1959
+ titleId: number;
2252
1960
  }
2253
- export declare class UpdateEventDto {
1961
+ export declare class VariantDto {
2254
1962
  name: string;
2255
- startDate: string;
2256
- endDate: string;
2257
- startTime: string;
2258
- endTime: string;
2259
- spacesIds?: number[];
2260
- publicNotes?: string;
2261
- privateNotes?: string;
2262
- isInformAttendees?: boolean;
2263
- minutesBeforeSlot?: number;
2264
- minutesAfterSlot?: number;
1963
+ price: number;
1964
+ variantId: number;
1965
+ currency: CurrencyEnum;
1966
+ startDate: Date;
1967
+ endDate: Date;
2265
1968
  }
2266
- export declare class AddEventToSessionDto {
2267
- eventsData: UpdateEventDto[];
1969
+ export declare class FindProgramSeasonsByProgramIdDto {
1970
+ programId: number;
2268
1971
  }
2269
- export declare class EventsIdsQueryDto {
2270
- eventsIds: string;
1972
+ export declare class FindSessionsFiltersDto {
1973
+ status?: PublishingStatusEnum;
1974
+ isFullFetch?: boolean;
2271
1975
  }
2272
- export declare class UpdateMultipleEventsDto {
2273
- eventsIds: number[];
2274
- name?: string;
2275
- startTime?: string;
2276
- endTime?: string;
2277
- spacesIds?: number[];
2278
- publicNotes?: string;
2279
- privateNotes?: string;
2280
- isInformAttendees?: boolean;
2281
- minutesBeforeSlot?: number;
2282
- minutesAfterSlot?: number;
1976
+ export declare class FindSessionsByProgramAndOrganizationDto extends FindProgramSeasonsByProgramIdDto {
1977
+ organizationId: number;
2283
1978
  }
2284
- export declare class FindByFacilityIdDto {
2285
- facilityId: number;
1979
+ export declare class DeleteEventAttendeesDto {
1980
+ eventAttendeeIds: string;
2286
1981
  }
2287
- export declare class FindByFacilityIdAndOrganizationIdDto extends FindByFacilityIdDto {
2288
- organizationId: number;
1982
+ export declare class FindProgramSeasonByIdQueryDto {
1983
+ includeResources?: boolean;
2289
1984
  }
2290
- export declare class FacilityEventsScheduleQueryParams {
2291
- programsIds?: string;
2292
- startDate?: string;
2293
- endDate?: string;
1985
+ export declare class FindProgramSeasonByIdDto extends OptionalFindByOrganizationIdDto {
1986
+ seasonId: number;
2294
1987
  }
2295
- export declare class ProgramLandingPageDto {
2296
- programId: number;
1988
+ export declare class DeleteProgramSeasonByIDDto extends ByOrganizationIdDto {
1989
+ seasonId: number;
2297
1990
  }
2298
- export declare class ProgramLandingPageQueryDto {
2299
- futureLimit?: number;
1991
+ export declare class DeleteProductDto {
1992
+ deleteProduct?: boolean;
2300
1993
  }
2301
- export declare class ProgramSessionLandingPageDto {
1994
+ export declare class FindRegisteredUserDto extends FindProgramSeasonByIdDto {
1995
+ userId: number;
1996
+ }
1997
+ export declare class FindRegisteredUsersOptionsDto extends PaginationQuery {
1998
+ isFreeAgentsOnly?: boolean;
1999
+ isPunchCardUsers?: boolean;
2000
+ nameEmailSearch?: string;
2001
+ }
2002
+ export declare class BaseProgramSeasonDto {
2302
2003
  programId: number;
2303
- sessionId: number;
2004
+ name: string;
2005
+ status: PublishingStatusEnum;
2006
+ seasonType: ProgramSeasonTypesEnum;
2007
+ startDate: Date;
2008
+ endDate: Date;
2009
+ description?: string;
2010
+ GL?: string;
2011
+ parentSeasonId?: number;
2012
+ questionnaires?: number[];
2013
+ maxParticipants?: number;
2014
+ maxMaleParticipants?: number;
2015
+ maxFemaleParticipants?: number;
2016
+ maxWaitlist?: number;
2017
+ maxMaleWaitlist?: number;
2018
+ maxFemaleWaitlist?: number;
2019
+ facilityId?: number;
2020
+ addressId?: number;
2021
+ blockedDated?: blockedDatesDto[];
2022
+ activityTimes: ActivityTimesDto[];
2023
+ longDescription?: string;
2024
+ isPunchCard?: boolean;
2025
+ organizationId: number;
2026
+ sport: SportsEnum;
2027
+ minAge: string;
2028
+ maxAge: string;
2029
+ gender: GenderEnum;
2030
+ level?: LevelOfPlayEnum[];
2031
+ requiredProductIds?: number[];
2304
2032
  }
2305
- export interface IEventOfSessionDetails {
2306
- id: number;
2033
+ export declare class CreateProgramSeasonDto extends BaseProgramSeasonDto {
2034
+ subSeasons?: SubSeasonBasicInfo[];
2035
+ }
2036
+ export declare class CreateSessionScheduleDto {
2037
+ startDate: Date;
2038
+ endDate: Date;
2039
+ activityTimes: ActivityTimesDto[];
2040
+ blockedDated?: blockedDatesDto[];
2041
+ subSeasons?: SubSeasonBasicInfo[];
2042
+ }
2043
+ export declare class SubSeasonBasicInfo {
2307
2044
  name: string;
2308
- programId: number;
2309
- programType: ProgramTypesEnum;
2310
- sessionId: number;
2311
- sessionName: string;
2312
- isPublic: boolean;
2313
2045
  startDate: Date;
2314
2046
  endDate: Date;
2315
- startTime: string;
2316
- endTime: string;
2317
- resources: IBasicSpaceAndSlotCreator[];
2318
- attenedanceCount: number;
2319
- checkedInCount: number;
2320
- missingPaymentCount: number;
2321
- publicNotes: string;
2322
- privateNotes: string;
2047
+ activityTimes?: ActivityTimesDto[];
2323
2048
  }
2324
- export interface IAttendeeOfEvent {
2325
- eventId: number;
2326
- userId: number;
2327
- lastName: string;
2328
- firstName: string;
2329
- birthDate: string;
2330
- mediaURL: string;
2331
- signedWaiver: string;
2332
- entryStatus: EntryStatusEnum;
2333
- paymentStatus: PaymentStatusEnum;
2334
- addOns: {
2335
- productId: number;
2336
- productName: string;
2337
- }[];
2338
- totalPasses?: number;
2339
- leftPasses?: number;
2340
- addonProductUserIds: number[];
2049
+ export declare class UpdateProgramSeasonDto extends BaseProgramSeasonDto {
2050
+ seasonId: number;
2341
2051
  }
2342
- export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
2343
- nameSearch?: string;
2344
- isCheckedIn?: string;
2345
- isNotCheckedIn?: string;
2346
- hasAddons?: string;
2347
- isWaiverSigned?: string;
2348
- statuses?: string;
2052
+ export declare class UpdateProgramSeasonStatusDto {
2053
+ seasonId: number;
2054
+ status: PublishingStatusEnum;
2349
2055
  }
2350
- export declare class AddressDto {
2351
- city: string;
2352
- state: string;
2353
- country: string;
2354
- geo: number[];
2056
+ export declare class blockedDatesDto {
2057
+ name: string;
2058
+ startDate: Date;
2059
+ endDate: Date;
2355
2060
  }
2356
- export declare class OpeningTimeDto {
2061
+ export declare class ActivityTimesDto {
2062
+ dayOfWeek: number;
2357
2063
  open: string;
2358
2064
  close: string;
2359
- dayOfWeek: number;
2360
2065
  }
2361
- export declare class CreateFacilityDto {
2066
+ export declare class ShallowUpdateProgramSeasonDto {
2067
+ seasonId: number;
2362
2068
  name: string;
2363
- sports: number[];
2364
2069
  description?: string;
2365
- longDescription?: string;
2366
- info?: string;
2367
- address: AddressDto;
2368
- timezone: string;
2369
- amenities: number[];
2370
- openingTimes: OpeningTimeDto[];
2371
- resourcesIds?: number[];
2070
+ questionnaires?: number[];
2071
+ maxParticipants?: number;
2072
+ maxMaleParticipants?: number;
2073
+ maxFemaleParticipants?: number;
2074
+ maxWaitlist?: number;
2075
+ maxMaleWaitlist?: number;
2076
+ maxFemaleWaitlist?: number;
2077
+ facilityId?: number;
2078
+ addressId?: number;
2079
+ sport?: SportsEnum;
2080
+ minAge?: string;
2081
+ maxAge?: string;
2082
+ gender?: GenderEnum;
2083
+ level?: LevelOfPlayEnum[];
2084
+ requiredProductIds?: number[];
2085
+ subSeasons?: ShallowUpdateSubSeasonDto[];
2372
2086
  }
2373
- export declare class UpdateFacilityDetailsDto {
2374
- name?: string;
2375
- description?: string;
2376
- longDescription?: string;
2377
- info?: string;
2378
- address?: AddressDto;
2379
- timezone?: string;
2087
+ export declare class ShallowUpdateSubSeasonDto {
2088
+ id: number;
2089
+ name: string;
2380
2090
  }
2381
- export declare class UpdateFacilityOpeningTimesDto {
2382
- openingTimes: OpeningTimeDto[];
2091
+ export declare class SpaceResourcePairDto {
2092
+ resourceType: ResourceNameTypeEnum;
2093
+ resourceId: number;
2094
+ spacesIds: number[];
2095
+ publicNotes?: string;
2096
+ privateNotes?: string;
2097
+ minutesBeforeSlot?: number;
2098
+ minutesAfterSlot?: number;
2383
2099
  }
2384
- export declare class UpdateFacilitySportsDto {
2385
- sports: number[];
2100
+ export declare class BulkSpaceResourceAllocationDto {
2101
+ spaceResourcePairs: SpaceResourcePairDto[];
2102
+ organizationId: number;
2386
2103
  }
2387
- export declare class UpdateFacilityAmenitiesDto {
2388
- amenities: number[];
2104
+ export declare class SingleSpaceAllocationByTimesDto {
2105
+ date: string;
2106
+ startTime: string;
2107
+ endTime: string;
2108
+ spaceId: number;
2109
+ publicNotes?: string;
2110
+ slotType?: SlotTypeEnum;
2111
+ }
2112
+ export declare class SpaceAllocationsByTimesDto {
2113
+ spaceAllocations: SingleSpaceAllocationByTimesDto[];
2114
+ }
2115
+ export declare class UpdateSeasonDatesDto {
2116
+ startDate: Date;
2117
+ endDate: Date;
2118
+ }
2119
+ export declare class MoveAttendeeDto {
2120
+ userId: number;
2121
+ resourceType: ResourceNameTypeEnum;
2122
+ fromResourceIds: number[];
2123
+ toResourceIds: number[];
2124
+ }
2125
+ export declare class UpdateSeasonRegistrationDatesDto {
2126
+ registrationPeriods: UpdateSeasonDatesDto[];
2127
+ }
2128
+ export declare class RegistrationDatesDto {
2129
+ registrationStartDate: Date;
2130
+ registrationEndDate: Date;
2131
+ earlyRegistrationStartDate?: Date;
2132
+ earlyRegistrationEndDate?: Date;
2133
+ lateRegistrationStartDate?: Date;
2134
+ lateRegistrationEndDate?: Date;
2389
2135
  }
2390
- export declare class FindFacilitiesOptionsDto extends PaginationQuery {
2391
- nameSearch?: string;
2136
+ export declare class RegistrationSettingsDto extends RegistrationDatesDto {
2137
+ closeRegistrationPeriodValue?: number;
2138
+ closeRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
2139
+ closeRegistrationSpecTime?: string;
2140
+ openRegistrationPeriodValue?: number;
2141
+ openRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
2142
+ openRegistrationSpecTime?: string;
2143
+ productsIdsToUpdate?: number[];
2392
2144
  }
2393
- export declare class FindFamilyAccountsDto {
2145
+ export declare class MoveParticipantDto {
2394
2146
  userId: number;
2147
+ oldProductId: number;
2148
+ newProductId: number;
2149
+ moveType: 'session' | 'segment';
2150
+ resourceId: number;
2151
+ orderId: number;
2395
2152
  }
2396
- export declare class FindFamilyAccountsCustomerDto {
2397
- customerId: number;
2153
+ export declare class FindProgramsByOrganizationIdDto {
2398
2154
  organizationId: number;
2155
+ programType?: ProgramTypesEnum;
2399
2156
  }
2400
- export declare class FindUsersInFamilyAccountDto {
2401
- familyAccountId: number;
2402
- }
2403
- export declare class CreateFamilyAccountDto {
2404
- familyName: string;
2405
- userId: number;
2157
+ export declare class FindProgramByIdDto {
2158
+ programId: number;
2406
2159
  }
2407
- export declare class UpdateFamilyAccountNameDto {
2408
- familyName: string;
2409
- familyAccountId: number;
2160
+ export declare class FindProgramByOrgIdAndIdDto {
2161
+ programId: number;
2162
+ organizationId: number;
2410
2163
  }
2411
- export declare class AddUserToFamilyAccountDto {
2412
- familyAccountId: number;
2413
- isUserAdmin: boolean;
2414
- firstName: string;
2415
- lastName: string;
2164
+ export declare class BaseProgramDto {
2165
+ type: ProgramTypesEnum;
2166
+ name: string;
2167
+ sport: SportsEnum;
2168
+ minAge: string;
2169
+ maxAge: string;
2416
2170
  gender: GenderEnum;
2417
- birthDate: string;
2418
- sports?: number[];
2419
- email?: string;
2171
+ level?: LevelOfPlayEnum[];
2172
+ description?: string;
2173
+ GL?: string;
2174
+ status: PublishingStatusEnum;
2175
+ organizationId: number;
2176
+ userCreatorId: number;
2177
+ highlights: ProgramHighlights[];
2178
+ longDescription?: string;
2179
+ requiredProductIds: number[];
2420
2180
  }
2421
- export declare class RemoveUserFromFamilyAccountDto {
2422
- userId: number;
2423
- familyAccountId: number;
2181
+ export declare class CreateProgramDto extends BaseProgramDto {
2424
2182
  }
2425
- export declare class FindOneParams {
2426
- id: number;
2183
+ export declare class UpdateProgramDto extends BaseProgramDto {
2184
+ programId: number;
2185
+ mainMediaId: number;
2427
2186
  }
2428
- export declare class PaginationQuery {
2429
- page: number;
2430
- itemsPerPage: number;
2187
+ export declare class UpdateProgramStatusDto {
2188
+ programId: number;
2189
+ status: PublishingStatusEnum;
2431
2190
  }
2432
- export declare class PaginationRangeQuery {
2433
- startPage: number;
2434
- endPage: number;
2435
- itemsPerPage: number;
2191
+ export declare class ProgramHighlightDto {
2192
+ data: string;
2193
+ ordinal: number;
2194
+ type: ProgramHighlightTypeEnum;
2195
+ title: string;
2436
2196
  }
2437
- export declare class FindGlCodeByOrganizationIdDto {
2438
- organizationId: number;
2197
+ export declare class PurchasePaymentDto {
2198
+ token: string;
2199
+ type: PaymentMethodTypeEnum;
2439
2200
  }
2440
- export declare class GetGlCodeDto {
2441
- id: number;
2201
+ export declare class ChargeRentalsReuqestDto {
2442
2202
  organizationId: number;
2443
- code: string;
2444
- createdAt: Date;
2445
- updatedAt: Date;
2203
+ userId?: number;
2204
+ customerId?: number;
2205
+ orderId: number;
2206
+ paymentData: PurchasePaymentDto;
2207
+ amountToPay: number;
2208
+ total: number;
2209
+ platform: PlatformsEnum;
2210
+ shiftId?: number;
2446
2211
  }
2447
- export declare class FindByProgramSeasonIdDto {
2448
- seasonId: number;
2212
+ export declare class PurchaseRequestDto {
2213
+ purchasingUserId: number;
2214
+ customerId?: number;
2215
+ products: PurchaseProductDto[];
2216
+ paymentData: PurchasePaymentDto;
2217
+ answers: UserAnswersDto[];
2218
+ amountToPay: number;
2219
+ parentPurchasedType?: ResourceNameTypeEnum;
2220
+ parentPurchasedId?: number;
2221
+ isPartialPayment: boolean;
2222
+ existingOrderToken?: string;
2223
+ installments?: ScheduledPaymentDto[];
2224
+ shiftId?: number;
2225
+ orderId?: number;
2449
2226
  }
2450
- export declare class CreateBulkDivisionsDto {
2451
- divisions: CreateDivisionDto[];
2227
+ export declare class PurchaseResourceDto extends ResourceDto {
2452
2228
  }
2453
- export declare class CreateDivisionDto {
2454
- name: string;
2229
+ export declare class PurchaseProductDto {
2230
+ id: number;
2231
+ resources?: PurchaseResourceDto[];
2232
+ userId?: number;
2233
+ paymentStatus?: PaymentStatusEnum;
2234
+ amountToPay?: number;
2455
2235
  ordinal?: number;
2456
- programSeasonId: number;
2457
- color: string;
2458
- isDefault: boolean;
2459
- }
2460
- export declare class CreateGroupDto {
2461
- name: string;
2462
- description?: string;
2463
- status?: GroupStatusEnum;
2464
- maxCapacity?: number;
2465
- mainMediaId?: number;
2466
- minAgeYears?: number;
2467
- maxAgeYears?: number;
2468
- gender: GenderEnum;
2469
- levelOfPlay?: LevelOfPlayEnum[];
2470
- sports: SportsEnum[];
2471
- questionnaires?: number[];
2472
- captainUserId?: number;
2473
- divisionId?: number;
2474
- }
2475
- export declare class ConnectGroupToDivision {
2476
- groupId: number;
2477
- divisionId: number;
2478
- prevDivisionId: number;
2479
- }
2480
- export declare class MoveUserInGroups {
2481
- userId: number;
2482
- groupId?: number;
2483
- prevGroupId?: number;
2236
+ startDate?: Date;
2237
+ quantity?: number;
2484
2238
  }
2485
- export declare class SaveUserAsGroupCaptain {
2486
- groupId: number;
2487
- userId: number;
2239
+ export declare class PartialPaymentRequestDto {
2240
+ orderId: number;
2241
+ amountToPay: number;
2242
+ organizationId: number;
2243
+ payingUserId: number;
2244
+ paymentMethodData: PurchasePaymentDto;
2245
+ shiftId?: number;
2488
2246
  }
2489
- export declare class CreateTeamInviteDto {
2490
- emails: string[];
2491
- userCreatorId: number;
2247
+ export declare class RedeemPunchCardRequestDto {
2248
+ products: PurchaseProductDto[];
2249
+ answersTitlesIds: number[];
2250
+ organizationId: number;
2251
+ purchasingUserId: number;
2492
2252
  }
2493
- export declare class TeamByIdDto {
2494
- teamId: number;
2253
+ export declare class OrderIdDto extends ByOrganizationIdDto {
2254
+ orderId: number;
2495
2255
  }
2496
- export declare class GetInviteDto extends TeamByIdDto {
2497
- inviteToken: string;
2256
+ export declare class AddItemsDto {
2257
+ products: PurchaseProductDto[];
2258
+ allocateResource: boolean;
2259
+ skipMail: boolean;
2498
2260
  }
2499
- export declare class JoinTeamDto {
2500
- userId: number;
2501
- inviteToken?: string;
2261
+ export declare class PartialPaymentAsUserDto {
2262
+ orderId: any;
2263
+ organizationId: any;
2264
+ amountToPay: any;
2265
+ paymentMethodData: any;
2502
2266
  }
2503
- export declare class UserTeamFutureSeasons extends TeamByIdDto {
2504
- userId: number;
2267
+ export declare class CreateResourceGroupDto {
2268
+ name: string;
2269
+ parentSlotId: number;
2270
+ facilityId: number;
2271
+ childrenSlotIds: number[];
2505
2272
  }
2506
- export interface IMoveSeason {
2507
- fromSeasonId: number;
2508
- toSeasonId: number;
2273
+ export declare class UpdateResourceGroupDto extends CreateResourceGroupDto {
2509
2274
  }
2510
- export declare class MoveTeamOrMemberDto implements IMoveSeason {
2511
- teamId?: number;
2512
- memberId?: number;
2513
- fromSeasonId: number;
2514
- toSeasonId: number;
2515
- toDivisionId?: number;
2275
+ export declare class ResourceDto {
2276
+ type: ResourceNameTypeEnum;
2277
+ id: number;
2516
2278
  }
2517
- export declare class MoveTeamOrMembersByCsvDTO {
2518
- fileName: string;
2279
+ export declare class SpaceByIdDto {
2280
+ spaceId: number;
2519
2281
  }
2520
- export declare class CreateMembershipDto {
2521
- organizationId: number;
2282
+ export declare class CreateSpaceDto {
2283
+ name: string;
2284
+ sports: number[];
2285
+ description?: string;
2286
+ longDescription?: string;
2287
+ spaceType: ResourceSubTypeEnum;
2288
+ isAddon?: boolean;
2289
+ properties: SpacePropertiesEnum;
2290
+ width?: number;
2291
+ length?: number;
2292
+ surface?: SurfacesEnum;
2293
+ ages?: ResourceAgesEnum;
2294
+ amenities: number[];
2295
+ activityTimes: BasicActivityTimesDto[];
2296
+ facilitiesIds: number[];
2297
+ resourceGroupId?: number;
2298
+ blockedResourcesIds?: number[];
2299
+ }
2300
+ export declare class UpdateSpaceDetailsDto {
2522
2301
  name: string;
2523
2302
  description?: string;
2524
- customerTypes: CustomerInMembershipTypeEnum[];
2525
- activity: SportsEnum;
2526
- facilityId: number;
2527
- questionnaires: number[];
2528
- minAgeYears: number;
2529
- maxAgeYears: number;
2530
- gender: GenderEnum;
2531
- maxMembers?: number;
2532
- maxMaleMembers?: number;
2533
- maxFemaleMembers?: number;
2534
- startDate: string;
2535
- endDate: string;
2536
- registrationStartDate?: Date;
2537
- registrationEndDate?: Date;
2538
- membershipType: MembershipTypeEnum;
2539
- durationMonths: number;
2540
2303
  longDescription?: string;
2541
- isAutoRenew?: boolean;
2304
+ isAddon?: boolean;
2305
+ facilitiesIds: number[];
2542
2306
  }
2543
- export declare class UpdateMembrshipDto extends CreateMembershipDto {
2544
- id: number;
2307
+ export declare class UpdateSpacePropertiesDto {
2308
+ properties: SpacePropertiesEnum;
2309
+ width?: number;
2310
+ length?: number;
2311
+ surface?: SurfacesEnum;
2312
+ ages?: ResourceAgesEnum;
2545
2313
  }
2546
- export declare class UpdateMembershipMediaDto {
2547
- membershipId: number;
2548
- mediaId: number;
2314
+ export declare class UpdateSpaceTimesDto {
2315
+ activityTimes: BasicActivityTimesDto[];
2549
2316
  }
2550
- export declare class FindMembershipByIdDto {
2551
- membershipId: number;
2317
+ export declare class UpdateSpaceRelationshipsDto {
2318
+ resourceGroupId?: number;
2319
+ blockedResourcesIds?: number[];
2552
2320
  }
2553
- export declare class FindMembershipsByOrganizationIdDto {
2554
- organizationId: number;
2321
+ export declare class SaveSpaceDependenciesDto {
2322
+ blockedSpacesIds: number[];
2323
+ parentSpaceId?: number;
2555
2324
  }
2556
- export declare class FindMembershipsByUserIdDto {
2557
- userId: number;
2325
+ export declare class FacilitySlotsScheduleQueryParams {
2326
+ spacesIds?: string;
2327
+ futureHoursLimit?: number;
2558
2328
  }
2559
- export declare class SetMembersStartDateByOrganization extends FindMembershipsByOrganizationIdDto {
2560
- startDate: string;
2329
+ export declare class FindResourcesOptionsDto extends PaginationQuery {
2330
+ nameSearch?: string;
2331
+ facilitiesIds?: string;
2332
+ types?: string;
2333
+ resourcesIds?: string;
2561
2334
  }
2562
- export declare class MembershipIdsDto {
2563
- membershipIds?: number[];
2335
+ export declare class StripeCustomerIdDto {
2336
+ userId: number;
2564
2337
  }
2565
- export declare class MemberIdDto {
2566
- memberId?: number;
2338
+ export declare class AddACHTokenToCustomerDto {
2339
+ publicToken: string;
2340
+ accountId: string;
2567
2341
  }
2568
- export declare class FindMembersOptionsDto extends PaginationQuery {
2569
- nameEmailSearch?: string;
2570
- pastMemberships?: string;
2342
+ export declare class FindByUserIdDto {
2343
+ userId: number;
2571
2344
  }
2572
- export declare class CancelMembershipDto {
2573
- isImmediatelyCancel: boolean;
2574
- cancellationReason?: string;
2345
+ export declare class FindByFamilyAccountIdDto {
2346
+ familyAccountId?: number;
2575
2347
  }
2576
- export declare class CreateEntitlementTermsDto {
2348
+ export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
2577
2349
  organizationId: number;
2578
- entitlementGroupId: number;
2579
- terms: IEntitlementTerms[];
2580
2350
  }
2581
- export declare class FindEntitlementTermsByGroupIdDto {
2582
- entitlementGroupId: number;
2351
+ export declare enum EntitlementTermsTypesEnum {
2352
+ QUESTION = "question",
2353
+ CITY = "city",
2354
+ MEMBERSHIP = "membership"
2583
2355
  }
2584
- export declare class FindEntitlementTermsByVariablesDto {
2585
- user: any;
2586
- userVariables: IQuestionAnswerObject[];
2356
+ export declare enum ResourceNameTypeEnum {
2357
+ EVENT = "event",
2358
+ VENUE = "venue",
2359
+ TEAM = "team",
2360
+ LEAGUE = "league",
2361
+ USER = "user",
2362
+ ORGANIZATION = "organization",
2363
+ APP = "app",
2364
+ FEED = "feed",
2365
+ MATCH = "match",
2366
+ ROUND = "round",
2367
+ PORTAL = "portal",
2368
+ SEASON = "season",
2369
+ TOURNAMENT = "tournament",
2370
+ MEMBERSHIP = "membership",
2371
+ DIVISION = "division",
2372
+ GAMESLOT = "gameslot",
2373
+ SPACE = "space",
2374
+ RESERVATION = "reservation",
2375
+ ORDER = "order",
2376
+ CUSTOMER = "customer",
2377
+ PACKAGE = "package",
2378
+ FACILITY = "facility",
2379
+ PROGRAM = "program",
2380
+ PROGRAM_SEASON = "program_season",
2381
+ PRODUCT = "product",
2382
+ GROUP = "group",
2383
+ VARIANT = "variant",
2384
+ SLOT = "slot",
2385
+ ADDON = "addon"
2587
2386
  }
2588
- export declare class FindLowestPriceDto {
2589
- organizationId: number;
2590
- user?: any;
2591
- answers?: IQuestionAnswerObject[];
2592
- itemIds: number[];
2593
- itemType?: ResourceNameTypeEnum;
2594
- startDate?: Date;
2387
+ export declare enum DirectBookingTypesEnum {
2388
+ DIRECT_FOR_ALL = "all",
2389
+ DIRECT_FOR_NONE = "none",
2390
+ DIRECT_VETTED_ONLY = "vetted_only",
2391
+ NO_SETTING = "no_setting"
2595
2392
  }
2596
- export declare class FindGroupItemsPricingsDto {
2597
- groupsIds: number[];
2598
- itemsIds: number[];
2393
+ export declare enum GenderEnum {
2394
+ OTHER = 1,
2395
+ MALE = 2,
2396
+ FEMALE = 3
2599
2397
  }
2600
- export declare class CreateEntitlementGroupDto {
2601
- name: string;
2398
+ export declare enum LevelOfPlayEnum {
2399
+ BEGINNER = 1,
2400
+ INTERMEDIATE = 2,
2401
+ ADVANCED = 3,
2402
+ SEMIPRO = 4,
2403
+ SPECTATOR = 5
2602
2404
  }
2603
- export declare class GetEntitlementGroupPricingDto {
2604
- itemIds: number[];
2605
- itemType: string;
2405
+ export declare enum ProgramTypesEnum {
2406
+ LEAGUE = 0,
2407
+ TOURNAMENT = 1,
2408
+ CLASS = 2,
2409
+ CLINIC = 3,
2410
+ CAMP = 4,
2411
+ LESSON = 5,
2412
+ CLUB_TEAM = 6
2606
2413
  }
2607
- export declare class FindEntitlementGroupByIdDto {
2608
- groupid: number;
2414
+ export declare enum ProgramSeasonTypesEnum {
2415
+ ROUND_ROBIN = 1,
2416
+ BRACKETS = 2,
2417
+ CAMP_CLINIC_CLASS = 3
2609
2418
  }
2610
- export declare class CreateGroupPricingWithProduct {
2611
- groupId: number;
2612
- price: number;
2613
- startDate?: Date;
2614
- endDate?: Date;
2615
- discountValue?: number;
2616
- discountMethod?: DiscountMethodsEnum;
2419
+ export declare enum SportsEnum {
2420
+ SOFTBALL = 1,
2421
+ BASKETBALL = 2,
2422
+ FOOTBALL = 3,
2423
+ SOCCER = 4,
2424
+ BOWLING = 5,
2425
+ BOCCEBALL = 6,
2426
+ CORNHOLE = 7,
2427
+ DODGEBALL = 8,
2428
+ FRISBEE = 9,
2429
+ HOCKEY = 10,
2430
+ KICKBALL = 11,
2431
+ LACROSSE = 12,
2432
+ PINGPONG = 13,
2433
+ RUGBY = 14,
2434
+ SKEEBALL = 15,
2435
+ TENNIS = 16,
2436
+ VOLLEYBALL = 17,
2437
+ WIFFLEBALL = 18,
2438
+ BADMINTON = 19,
2439
+ FITNESS = 20,
2440
+ GOLF = 21,
2441
+ PILATES = 22,
2442
+ RUNNING = 23,
2443
+ SKIING = 24,
2444
+ SNOWBOARDING = 25,
2445
+ YOGA = 26,
2446
+ BROOMBALL = 27,
2447
+ CRICKET = 28,
2448
+ CROSSFIT = 29,
2449
+ CYCLING = 30,
2450
+ FIELD_HOCKEY = 31,
2451
+ RACQUETBALL = 32,
2452
+ SPINNING = 33,
2453
+ SQUASH = 34,
2454
+ SURFING = 35,
2455
+ SWIMMING = 36,
2456
+ WIND_SURFING = 37,
2457
+ ADVENTURE = 38,
2458
+ BOXING = 39,
2459
+ BASEBALL = 40,
2460
+ DANCE = 41,
2461
+ KICKBOXING = 42,
2462
+ MARTIAL_ARTS = 43,
2463
+ OUTDOORS = 44,
2464
+ ROWING = 45,
2465
+ SAILING = 46,
2466
+ SUP = 47,
2467
+ TRIATHLON = 48,
2468
+ HANDBALL = 49,
2469
+ CATCHBALL = 50,
2470
+ BLITZBALL = 51,
2471
+ ROLLER_DERBY = 52,
2472
+ ICE_SKATING = 53,
2473
+ PICKLEBALL = 54,
2474
+ AXE_THROWING = 55,
2475
+ FURSAL = 56,
2476
+ BIRTHDAY = 57,
2477
+ CORPRATE_EVENTS = 58,
2478
+ OTHER = 999
2617
2479
  }
2618
- export declare class FindByProductIdDto {
2619
- productId: number;
2480
+ export declare enum PublishingStatusEnum {
2481
+ DRAFT = 1,
2482
+ PUBLISHED = 2,
2483
+ CLOSED = 3,
2484
+ CANCELLED = 4,
2485
+ ARCHIVE = 5,
2486
+ UNPUBLISHED = 6
2620
2487
  }
2621
- export declare class FindPriceOfProductDto {
2622
- id: number;
2623
- userId: number;
2624
- resources: ResourceDto[];
2488
+ export declare enum ProgramHighlightTypeEnum {
2489
+ OTHER = 1,
2490
+ MINAGE = 2,
2491
+ MAXAGE = 3,
2492
+ GENDER = 4,
2493
+ LEVELOFPLAY = 5,
2494
+ GAMESSEASON = 6,
2495
+ MINWEEK = 7,
2496
+ SURFACE = 8,
2497
+ FORMAT = 9,
2498
+ PLAYERS_PER_TEAM = 10,
2499
+ MATCH_LENGTH = 12
2500
+ }
2501
+ export declare enum RequestStatusEnum {
2502
+ PENDING = 1,
2503
+ ACCEPTED = 2,
2504
+ DECLINED = 3
2505
+ }
2506
+ export declare enum PaymentStatusEnum {
2507
+ NOT_PAID = "not_paid",
2508
+ PARTIAL_PAYMENT = "partial",
2509
+ FULLY_PAID = "paid",
2510
+ REFUNDED = "refunded",
2511
+ VOID = "void"
2512
+ }
2513
+ export declare enum ReservationExtendedEnum {
2514
+ PURCHASE_ORDER = "purchase_order"
2515
+ }
2516
+ export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2517
+ export declare enum ReservationStatusEnum {
2518
+ PLANNED = "Planned",
2519
+ APPROVED = "Approved",
2520
+ AWAITING_ADMIN = "Awaiting Admin",
2521
+ AWAITING_CUSTOMER = "Awaiting Customer",
2522
+ REJECTED = "Rejected",
2523
+ CANCELED = "Canceled"
2625
2524
  }
2626
- export declare class FindPricesOfProductsDto {
2627
- products: FindPriceOfProductDto[];
2628
- answers: UserAnswersDto[];
2525
+ export declare enum PaymentStatusV1Enum {
2526
+ SENT_TO_CLIENT = 1,
2527
+ SENT_FOR_PAYMENT = 2,
2528
+ ACCEPTED = 3,
2529
+ REJECTED = 4,
2530
+ CANCELLED = 5,
2531
+ FRAUD = 6,
2532
+ NOT_RELEVANT = 7,
2533
+ PENDING = 8
2629
2534
  }
2630
- export declare class FindPackageByResourceDto {
2631
- resourceType: ResourceNameTypeEnum;
2632
- resourceId: number;
2535
+ export declare enum PaymentMethodsEnum {
2536
+ STRIPE = 1,
2537
+ CASH = 3
2633
2538
  }
2634
- export declare class FindProductsByResourceAsOrganizationDto extends FindPackageByResourceDto {
2635
- organizationId: number;
2539
+ export declare enum PackageProductsRelationTypeEnum {
2540
+ CHILD = "child",
2541
+ UPSALE = "upsale"
2636
2542
  }
2637
- export declare class CreateProductsDto {
2638
- products: CreateProductDto[];
2639
- addOnsData?: ProductInPackage[];
2640
- addOnIds?: ExistingProductToPackageDto[];
2543
+ export declare enum AddonTimePeriodEnum {
2544
+ FULL = "full",
2545
+ SESSION = "session",
2546
+ EVENT = "event"
2641
2547
  }
2642
- export declare class CreatePaymentPlanDto extends PaymentPlanDto {
2643
- name: string;
2548
+ export declare enum CurrencyEnum {
2549
+ USD = "USD"
2644
2550
  }
2645
- export declare class CreateProductDto {
2646
- id?: number;
2647
- organizationId: number;
2648
- name: string;
2649
- quantity?: number;
2650
- isPublic: boolean;
2651
- startDate?: Date;
2652
- endDate?: Date;
2653
- description?: string;
2654
- resourcesType?: ResourceNameTypeEnum;
2655
- resourcesIdsToApplyOn?: number[];
2656
- GL?: string;
2657
- prices: CreatePriceDto[];
2658
- downpayment?: number;
2659
- productType: ProductTypesEnum;
2660
- subProductType?: string;
2661
- defaultForResourceId?: number;
2662
- defaultForResourceType?: ResourceNameTypeEnum;
2663
- entitlementGroupsPricings?: CreateGroupPricingWithProduct[];
2664
- variantTitleIds?: number[];
2665
- variants?: VariantWithPrice[];
2666
- variantParentId?: number;
2667
- isAddon?: boolean;
2668
- isArchive?: boolean;
2669
- timePeriod?: AddonTimePeriodEnum;
2670
- isProRated?: boolean;
2671
- paymentPlan?: CreatePaymentPlanDto;
2672
- isTaxInclusive?: boolean;
2673
- tax?: number;
2674
- sports?: number[];
2675
- durationMinutes?: number;
2676
- durationDays?: number;
2677
- forms?: number[];
2678
- isForAllCustomers?: boolean;
2679
- membershipsAvailableFor?: number[];
2680
- customersAvailableFor?: number[];
2681
- addons?: createRentalProductAddonDto[];
2682
- availabilityTimes?: createProductAvailabilityTimesDto[];
2551
+ export declare enum NotificationTypeEnum {
2552
+ BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2553
+ BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2554
+ BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2683
2555
  }
2684
- export declare class VariantWithPrice {
2685
- variantIds: number[];
2686
- price: CreatePriceDto[];
2556
+ export declare enum ProductTypesEnum {
2557
+ RESERVATION = "reservation",
2558
+ REGISTRATION = "registration",
2559
+ MEMBERSHIP = "membership",
2560
+ GOODS = "goods",
2561
+ PACKAGE = "package",
2562
+ REFUND_COMPENSATION = "refund",
2563
+ CASH_OVER_SHORT = "cash_over_short",
2564
+ PETTY_CASH = "petty_cash",
2565
+ LEAGUE_REGISTRATION = "league_registration",
2566
+ TAX = "tax"
2687
2567
  }
2688
- export declare class CreatePriceDto {
2689
- id?: number;
2690
- price: number;
2691
- currency: CurrencyEnum;
2692
- name: string;
2693
- startDate?: Date;
2694
- endDate?: Date;
2695
- discountValue?: number;
2696
- discountMethod?: DiscountMethodsEnum;
2697
- isDefaultPriceForProduct?: boolean;
2568
+ export declare enum OrderStatusEnum {
2569
+ ACTIVE = "active",
2570
+ WAITING_ADMIN = "waitingAdmin",
2571
+ WAITING_CLIENT = "waitingClient",
2572
+ CANCELED = "canceled"
2698
2573
  }
2699
- export declare class CreatePackageDto {
2700
- parentProductId: number;
2701
- productsData?: ProductInPackage[];
2702
- productsIds?: ExistingProductToPackageDto[];
2574
+ export declare enum LineItemsStatusEnum {
2575
+ USER_PRODUCT = "UserProduct",
2576
+ RENTAL_PRODUCT = "RentalProduct"
2703
2577
  }
2704
- export declare class CreatePackageToResourceDto {
2705
- resourceId: number;
2706
- resourceType: ResourceNameTypeEnum;
2707
- isCreateToChildProducts: boolean;
2708
- productsData: ProductInPackage[];
2578
+ export declare enum ProductSubTypesEnum {
2579
+ SEASON_INDIVIDUAL = "season_individual",
2580
+ SEASON_TEAM = "season_team",
2581
+ SEASON_PER_PLAYER = "season_per_player"
2709
2582
  }
2710
- export declare class ProductInPackage extends CreateProductDto {
2711
- relationType: PackageProductsRelationTypeEnum;
2712
- amountInPackage?: number;
2713
- level?: ProductPackageLevelEnum;
2583
+ export declare enum PaymentMethodTypeEnum {
2584
+ CREDIT_CARD = "card",
2585
+ ACH = "ach",
2586
+ CASH = "cash",
2587
+ CHECK = "check",
2588
+ BALANCE = "balance",
2589
+ CARD_ON_TERMINAL = "card-on-terminal",
2590
+ OTHER = "other",
2591
+ MIGRATED = "migrated",
2592
+ VOID = "void"
2714
2593
  }
2715
- export declare class ExistingProductToPackageDto {
2716
- relationType: PackageProductsRelationTypeEnum;
2717
- id: number;
2718
- timePeriod?: AddonTimePeriodEnum;
2719
- level?: ProductPackageLevelEnum;
2594
+ export declare enum RefundTypeEnum {
2595
+ LEAVE_BALANCE = "leave_balance",
2596
+ REDUCE_BALANCE = "reduce_balance"
2720
2597
  }
2721
- export declare class ConnectProductResourceDto {
2722
- productId: number;
2723
- resourceType: ResourceNameTypeEnum;
2724
- resourceIds: number[];
2598
+ export declare enum CustomerInMembershipTypeEnum {
2599
+ INDIVIDUAL = "individual",
2600
+ FAMILY = "family",
2601
+ ORGANIZATION = "organization"
2725
2602
  }
2726
- export declare class ReturnRequiredProductsDto {
2727
- userId: number;
2728
- productId: number;
2603
+ export declare enum MembershipTypeEnum {
2604
+ FIXED = "fix_membership",
2605
+ ROLLING = "rolling_membership"
2729
2606
  }
2730
- export declare class FindByProductUserIdsDto {
2731
- userId: number;
2732
- organizationId: number;
2607
+ export declare enum CustomerTypeEnum {
2608
+ USER = "user",
2609
+ FAMILY = "family",
2610
+ ORGANIZATION = "organization"
2733
2611
  }
2734
- export declare class AddRequiredProductsDto {
2735
- productId: number;
2736
- requiredProductIds: number[];
2612
+ export declare enum GroupStatusEnum {
2613
+ ACTIVE = 1,
2614
+ INACTIVE = 2,
2615
+ DRAFT = 3
2737
2616
  }
2738
- export declare class ProductsIdsDto extends PaginationQuery {
2739
- productIds?: number[];
2740
- includePrices?: boolean;
2741
- productType?: ProductTypesEnum;
2742
- includeAddons?: string;
2617
+ export declare enum FutureInstallmentStatusEnum {
2618
+ FUTURE = "future",
2619
+ SUCCEEDED = "succeeded",
2620
+ FAILED = "failed",
2621
+ CANCELED = "canceled"
2743
2622
  }
2744
- export declare class GetByOrganizationIdDto {
2745
- organizationId?: number;
2623
+ export declare enum EntryStatusEnum {
2624
+ ENTERED = 1,
2625
+ NOT_ENTERED = 2,
2626
+ CANCELED = 3
2746
2627
  }
2747
- export declare class GetByOrgIdOrderIdDto extends GetByOrganizationIdDto {
2748
- orderId?: number;
2628
+ export declare enum PurchasedResourceStatusEnum {
2629
+ ACTIVE = 1,
2630
+ MOVED = 2,
2631
+ CANCELED = 3
2749
2632
  }
2750
- export declare class GetProductsDto extends PaginationQuery {
2751
- productIds?: string;
2752
- includePrices?: boolean;
2753
- productType?: string;
2754
- productSubType?: string;
2755
- search?: string;
2756
- includeAddons?: boolean;
2757
- includeArchived?: boolean;
2758
- includeAllData?: boolean;
2759
- resourceIds?: string;
2760
- sports?: string;
2633
+ export declare enum TeamCanJoinEnum {
2634
+ ANYONE = "anyone",
2635
+ BY_INVITE = "byInvite",
2636
+ CAPTAIN_APPROVAL = "captainApproval"
2761
2637
  }
2762
- export declare class GetAllVariantTitlesDto {
2763
- organizationId: number;
2638
+ export declare enum TeamMemberStatusEnum {
2639
+ PENDING = 1,
2640
+ ACTIVE = 2,
2641
+ DECLINED = 3,
2642
+ SUSPENDED = 4,
2643
+ INACTIVE = 5,
2644
+ INVITED = 6
2764
2645
  }
2765
- export declare class GetAllOrganizationAddonsDto {
2766
- organizationId: number;
2646
+ export declare enum TeamMemberRoleEnum {
2647
+ NULL = 0,
2648
+ ADMIN = 1
2767
2649
  }
2768
- export declare class CreateVariantTitleDto {
2769
- organizationId: number;
2770
- title: string;
2771
- variants: string[];
2650
+ export declare enum DayOfWeekEnum {
2651
+ SUNDAY = 0,
2652
+ MONDAY = 1,
2653
+ TUESDAY = 2,
2654
+ WEDNESDAY = 3,
2655
+ THURSDAY = 4,
2656
+ FRIDAY = 5,
2657
+ SATURDAY = 6
2772
2658
  }
2773
- export declare class UpdateVariantTitleDto {
2774
- organizationId: number;
2775
- titleId: number;
2776
- title: string;
2777
- variants: string[];
2659
+ export declare enum ActionTypesEnum {
2660
+ CREATE = "create",
2661
+ READ = "read",
2662
+ UPDATE = "update",
2663
+ DELETE = "delete"
2778
2664
  }
2779
- export declare class GetByCustomerIdDto extends PaginationQuery {
2780
- customerId: number;
2665
+ export declare enum ActionSourcePlatformEnum {
2666
+ ADMIN = "admin",
2667
+ BACKOFFICE = "backoffice",
2668
+ CONSUMER = "consumer"
2781
2669
  }
2782
- export declare class GetExtraProductDataDto {
2783
- isPublic?: boolean;
2784
- isGetByChildResources?: boolean;
2785
- isGetEntitlePricing?: boolean;
2786
- isGetAddOns?: boolean;
2787
- includeResources?: boolean;
2788
- includeArchived?: boolean;
2670
+ export declare enum RolesEnum {
2671
+ ORG_ADMIN = "organizationAdmin",
2672
+ BOND_ADMIN = "bondAdmin"
2789
2673
  }
2790
- export declare class GetBySessionType {
2791
- sessionType: 'event' | 'segment';
2674
+ export declare enum SeasonPoolStatusEnum {
2675
+ IN_POOL = 5,
2676
+ ASSIGNED = 1,
2677
+ QUIT = 2,
2678
+ SUSPENDED = 3,
2679
+ INACTIVE = 4
2792
2680
  }
2793
- export declare class CreateSubcategoryDto {
2794
- productType: ProductTypesEnum;
2795
- name: string;
2796
- stationId?: number;
2797
- ordinal?: number;
2681
+ export declare enum AmenitiesEnum {
2682
+ HEAT = 1,
2683
+ AC = 2,
2684
+ WIFI = 3,
2685
+ RESTROOMS = 4,
2686
+ DRINKING_FOUNTAIN = 5,
2687
+ PARKING = 6,
2688
+ CONCESSIONS = 7,
2689
+ SHELTER = 8,
2690
+ PORTABLE_RESTROOMS = 9,
2691
+ LIGHTS = 10,
2692
+ LOCKER_ROOM = 11,
2693
+ PAID_PARKING = 12,
2694
+ ACCESSIBLE = 13
2798
2695
  }
2799
- export declare class CreateSubcategoriesDto {
2800
- subcategories: CreateSubcategoryDto[];
2696
+ export declare enum ResourceSubTypeEnum {
2697
+ COURT = "court",
2698
+ FIELD = "field",
2699
+ ROOM = "room",
2700
+ DIAMOND = "diamond",
2701
+ RINK = "rink",
2702
+ STUDIO = "studio",
2703
+ POOL = "pool",
2704
+ BATTING_CAGE = "batting cage",
2705
+ SHELTER = "shelter",
2706
+ GOLF_SIMULATOR = "golf simulator"
2801
2707
  }
2802
- export declare class UpdateSubcategoryDto {
2803
- id: number;
2804
- productType?: ProductTypesEnum;
2805
- name?: string;
2806
- stationId?: number;
2807
- ordinal?: number;
2708
+ export declare enum ResourceTypeEnum {
2709
+ SPACE = "space"
2808
2710
  }
2809
- export declare class GetSubcategoryDto {
2810
- stationId?: number;
2711
+ export declare enum ResourceAgesEnum {
2712
+ ADULTS = "adults",
2713
+ CHILDREN = "children"
2811
2714
  }
2812
- export declare class SetStationSubcategoriesDto {
2813
- stationId: number;
2814
- subcategoryIds?: number[];
2815
- categories?: string[];
2715
+ export declare enum SpacePropertiesEnum {
2716
+ OUTDOOR = "outdoor",
2717
+ INDOOR = "indoor"
2816
2718
  }
2817
- export declare class createRentalProductAddonDto {
2818
- productId: number;
2819
- price: number;
2820
- isFlatPrice: boolean;
2821
- isMandatory: boolean;
2822
- level: ProductPackageLevelEnum;
2719
+ export declare enum SurfacesEnum {
2720
+ GRASS = "grass",
2721
+ TURF = "turf",
2722
+ FIELD_TURF = "fieldTurf",
2723
+ ASTRO_TURF = "astroTurf",
2724
+ HARDWOOD = "hardwood",
2725
+ ASPHALT = "asphalt",
2726
+ SAND = "sand",
2727
+ ICE = "ice",
2728
+ SPORT_COURT = "sportCourt"
2823
2729
  }
2824
- export declare class createProductAvailabilityTimesDto {
2825
- availabilityStartDate?: string;
2826
- availabilityEndDate?: string;
2827
- daysOfWeek: number[];
2828
- startTime: string;
2829
- endTime: string;
2730
+ export declare enum RegistrationConstraintPeriodTypeEnum {
2731
+ MINUTES = "minutes",
2732
+ DAYS = "days"
2830
2733
  }
2831
- export declare class createResourceDto {
2832
- resourceId: number;
2833
- resourceType: ResourceNameTypeEnum;
2734
+ export declare enum RegistrationWindowStatusEnum {
2735
+ NOT_OPEN_YET = "not_opened_yet",
2736
+ OPEN = "open",
2737
+ CLOSED = "closed"
2834
2738
  }
2835
- export declare class archiveDto {
2836
- isArchive: boolean;
2739
+ export declare enum RegistrationValidationStatusEnum {
2740
+ FULL = "full",
2741
+ ALREADY_REGISTERED = "registered",
2742
+ AVAILABLE = "available",
2743
+ NOT_OPEN_YET = "not opened",
2744
+ ALREADY_CLOSED = "closed",
2745
+ NO_PRODUCT_FOUND = "no-product-found"
2837
2746
  }
2838
- export declare class CreateUpdateVariantsDto {
2839
- organizationId: number;
2840
- parentProductId: number;
2841
- variantTitles: VariantTitleDto[];
2842
- variants: VariantDto[];
2747
+ export declare enum DiscountMethodsEnum {
2748
+ PERCENT = "percent",
2749
+ AMOUNT = "amount"
2843
2750
  }
2844
- export declare class VariantTitleDto {
2845
- titleName: string;
2846
- titleId: number;
2751
+ export declare enum UserAuthorizationsTypeEnum {
2752
+ ORGANIZATION = "organization"
2847
2753
  }
2848
- export declare class VariantDto {
2849
- name: string;
2850
- price: number;
2851
- variantId: number;
2852
- currency: CurrencyEnum;
2853
- startDate: Date;
2854
- endDate: Date;
2754
+ export declare enum OrganizationLocaleDateEnum {
2755
+ USA = "USA"
2855
2756
  }
2856
- export declare class FindProgramSeasonsByProgramIdDto {
2857
- programId: number;
2757
+ export declare enum DateTimeFormatsEnum {
2758
+ API_DATE = "YYYY/MM/DD",
2759
+ API_TIME = "HH:mm:ss"
2858
2760
  }
2859
- export declare class FindSessionsFiltersDto {
2860
- status?: PublishingStatusEnum;
2861
- isFullFetch?: boolean;
2761
+ export declare enum SlotTypeEnum {
2762
+ EXTERNAL = "external",
2763
+ INTERNAL = "internal",
2764
+ MAINTENANCE = "maintenance",
2765
+ CUSTOM = "custom"
2862
2766
  }
2863
- export declare class FindSessionsByProgramAndOrganizationDto extends FindProgramSeasonsByProgramIdDto {
2864
- organizationId: number;
2767
+ export declare enum PlatformsEnum {
2768
+ CONSUMER = "consumer",
2769
+ BO = "backoffice",
2770
+ MOBILE = "mobile",
2771
+ CRON = "cron"
2865
2772
  }
2866
- export declare class DeleteEventAttendeesDto {
2867
- eventAttendeeIds: string;
2773
+ export declare enum ShiftStatusEnum {
2774
+ OPEN = "open",
2775
+ CLOSED = "closed",
2776
+ MANAGMENT_CLOSED = "closed_by_manager",
2777
+ RECONCILED = "reconciled"
2868
2778
  }
2869
- export declare class FindProgramSeasonByIdQueryDto {
2870
- includeResources?: boolean;
2779
+ export declare enum EventStatusEnum {
2780
+ OPEN = 1,
2781
+ DRAFT = 2,
2782
+ FULL = 3,
2783
+ CANCELLED = 4,
2784
+ CLOSED = 5,
2785
+ DELETED = 6
2871
2786
  }
2872
- export declare class FindProgramSeasonByIdDto extends OptionalFindByOrganizationIdDto {
2873
- seasonId: number;
2787
+ export declare enum ReservationTypeEnum {
2788
+ RENTAL = "rental",
2789
+ PROGRAM = "program",
2790
+ MAINTENANCE = "maintenance",
2791
+ CUSTOM = "custom"
2874
2792
  }
2875
- export declare class DeleteProgramSeasonByIDDto extends ByOrganizationIdDto {
2876
- seasonId: number;
2793
+ export declare enum SlotDurationTypeEnum {
2794
+ DATES = "dates",
2795
+ ALL_DAY = "all day",
2796
+ DURATION = "duration"
2877
2797
  }
2878
- export declare class DeleteProductDto {
2879
- deleteProduct?: boolean;
2798
+ export declare enum DurationUnitTypesEnum {
2799
+ MINUTES = "minutes",
2800
+ HOURS = "hours"
2880
2801
  }
2881
- export declare class FindRegisteredUserDto extends FindProgramSeasonByIdDto {
2882
- userId: number;
2802
+ export declare enum FrequencyEnum {
2803
+ NONE = "none",
2804
+ WEEKLY = "weekly",
2805
+ DAILY = "daily",
2806
+ MONTHLY = "monthly",
2807
+ YEARLY = "yearly"
2883
2808
  }
2884
- export declare class FindRegisteredUsersOptionsDto extends PaginationQuery {
2885
- isFreeAgentsOnly?: boolean;
2886
- isPunchCardUsers?: boolean;
2887
- nameEmailSearch?: string;
2809
+ export declare enum MaintenanceTimingEnum {
2810
+ BEFORE = 1,
2811
+ AFTER = 2,
2812
+ AT_THE_BEGINING = 3,
2813
+ AT_THE_END = 4
2888
2814
  }
2889
- export declare class BaseProgramSeasonDto {
2890
- programId: number;
2891
- name: string;
2892
- status: PublishingStatusEnum;
2893
- seasonType: ProgramSeasonTypesEnum;
2894
- startDate: Date;
2895
- endDate: Date;
2896
- description?: string;
2897
- GL?: string;
2898
- parentSeasonId?: number;
2899
- questionnaires?: number[];
2900
- maxParticipants?: number;
2901
- maxMaleParticipants?: number;
2902
- maxFemaleParticipants?: number;
2903
- maxWaitlist?: number;
2904
- maxMaleWaitlist?: number;
2905
- maxFemaleWaitlist?: number;
2906
- facilityId?: number;
2907
- addressId?: number;
2908
- blockedDated?: blockedDatesDto[];
2909
- activityTimes: ActivityTimesDto[];
2910
- longDescription?: string;
2911
- isPunchCard?: boolean;
2912
- organizationId: number;
2913
- sport: SportsEnum;
2914
- minAge: string;
2915
- maxAge: string;
2916
- gender: GenderEnum;
2917
- level?: LevelOfPlayEnum[];
2918
- requiredProductIds?: number[];
2815
+ export declare enum CreatorTypeEnum {
2816
+ SPACE = "space",
2817
+ PROGRAM_SEASON = "program_season"
2919
2818
  }
2920
- export declare class CreateProgramSeasonDto extends BaseProgramSeasonDto {
2921
- subSeasons?: SubSeasonBasicInfo[];
2819
+ export declare enum UpdatePricesTypeEnum {
2820
+ INDIVIDUAL = "indvidual",
2821
+ CATEGORY = "category",
2822
+ GLOBAL = "global"
2922
2823
  }
2923
- export declare class CreateSessionScheduleDto {
2924
- startDate: Date;
2925
- endDate: Date;
2926
- activityTimes: ActivityTimesDto[];
2927
- blockedDated?: blockedDatesDto[];
2928
- subSeasons?: SubSeasonBasicInfo[];
2824
+ export declare enum BondDayOfWeekEnum {
2825
+ MONDAY = 2,
2826
+ TUESDAY = 3,
2827
+ WEDNESDAY = 4,
2828
+ THURSDAY = 5,
2829
+ FRIDAY = 6,
2830
+ SATURDAY = 7,
2831
+ SUNDAY = 8
2929
2832
  }
2930
- export declare class SubSeasonBasicInfo {
2931
- name: string;
2932
- startDate: Date;
2933
- endDate: Date;
2934
- activityTimes?: ActivityTimesDto[];
2833
+ export declare enum ReservationMigrationStatusEnum {
2834
+ NEW = "new",
2835
+ NO = "no",
2836
+ YES = "yes"
2935
2837
  }
2936
- export declare class UpdateProgramSeasonDto extends BaseProgramSeasonDto {
2937
- seasonId: number;
2838
+ export declare enum ProductPackageLevelEnum {
2839
+ HOUR = "hour",
2840
+ SLOT = "slot",
2841
+ RESERVATION = "reservation"
2938
2842
  }
2939
- export declare class UpdateProgramSeasonStatusDto {
2940
- seasonId: number;
2941
- status: PublishingStatusEnum;
2843
+ export declare enum CancellationStatusEnum {
2844
+ IMMEDIATE = "immediate",
2845
+ AUTO_RENEWAL = "auto_renewal"
2942
2846
  }
2943
- export declare class blockedDatesDto {
2944
- name: string;
2945
- startDate: Date;
2946
- endDate: Date;
2847
+ export declare enum SeasonScheduleStatusEnum {
2848
+ DRAFT = 0,
2849
+ PUBLISHED = 1
2947
2850
  }
2948
- export declare class ActivityTimesDto {
2949
- dayOfWeek: number;
2950
- open: string;
2951
- close: string;
2851
+ export declare enum FinancialStepEnum {
2852
+ VOID = "void",
2853
+ REFUND = "refund",
2854
+ NONE = "none",
2855
+ REFUND_AND_VOID = "refund-and-void",
2856
+ APPEND = "append"
2952
2857
  }
2953
- export declare class ShallowUpdateProgramSeasonDto {
2954
- seasonId: number;
2955
- name: string;
2956
- description?: string;
2957
- questionnaires?: number[];
2958
- maxParticipants?: number;
2959
- maxMaleParticipants?: number;
2960
- maxFemaleParticipants?: number;
2961
- maxWaitlist?: number;
2962
- maxMaleWaitlist?: number;
2963
- maxFemaleWaitlist?: number;
2964
- facilityId?: number;
2965
- addressId?: number;
2966
- sport?: SportsEnum;
2967
- minAge?: string;
2968
- maxAge?: string;
2969
- gender?: GenderEnum;
2970
- level?: LevelOfPlayEnum[];
2971
- requiredProductIds?: number[];
2972
- subSeasons?: ShallowUpdateSubSeasonDto[];
2858
+ export declare enum StripeAccountTypesEnum {
2859
+ STRIPE = "stripe",
2860
+ STRIPE_CUSTOM = "stripe:account:custom",
2861
+ STRIPE_CUSTOMER = "stripe:customer"
2973
2862
  }
2974
- export declare class ShallowUpdateSubSeasonDto {
2975
- id: number;
2976
- name: string;
2863
+ export declare enum LinkedAccountStatus {
2864
+ PENDING = 1,
2865
+ ACTIVE = 2,
2866
+ PRE_PENDING = 3
2977
2867
  }
2978
- export declare class SpaceResourcePairDto {
2979
- resourceType: ResourceNameTypeEnum;
2980
- resourceId: number;
2981
- spacesIds: number[];
2982
- publicNotes?: string;
2983
- privateNotes?: string;
2984
- minutesBeforeSlot?: number;
2985
- minutesAfterSlot?: number;
2868
+ export declare enum AddonParentTypeEnum {
2869
+ RESERVATION = "reservation",
2870
+ SLOT = "slot"
2986
2871
  }
2987
- export declare class BulkSpaceResourceAllocationDto {
2988
- spaceResourcePairs: SpaceResourcePairDto[];
2989
- organizationId: number;
2872
+ export declare enum EEmailStatus {
2873
+ SENT = "sent",
2874
+ OPENED = "opened",
2875
+ PAID = "paid",
2876
+ CANCELED = "canceled"
2990
2877
  }
2991
- export declare class SingleSpaceAllocationByTimesDto {
2992
- date: string;
2993
- startTime: string;
2994
- endTime: string;
2995
- spaceId: number;
2996
- publicNotes?: string;
2997
- slotType?: SlotTypeEnum;
2878
+ export interface IEntitlementTerms {
2879
+ type: EntitlementTermsTypesEnum;
2880
+ id?: number;
2881
+ value?: string;
2882
+ minValue?: string;
2883
+ maxValue?: string;
2998
2884
  }
2999
- export declare class SpaceAllocationsByTimesDto {
3000
- spaceAllocations: SingleSpaceAllocationByTimesDto[];
2885
+ export interface IQuestionAnswerObject {
2886
+ questionId: number;
2887
+ value: string;
3001
2888
  }
3002
- export declare class UpdateSeasonDatesDto {
3003
- startDate: Date;
3004
- endDate: Date;
2889
+ export interface ILowestPriceForItem {
2890
+ itemId: number;
2891
+ itemType: ResourceNameTypeEnum;
2892
+ groupId: number;
2893
+ groupName?: string;
2894
+ price: number;
2895
+ overridesPrice: boolean;
3005
2896
  }
3006
- export declare class MoveAttendeeDto {
3007
- userId: number;
2897
+ export interface IResourcesAvailability {
3008
2898
  resourceType: ResourceNameTypeEnum;
3009
- fromResourceIds: number[];
3010
- toResourceIds: number[];
2899
+ quantity: number;
2900
+ resourcesIds: number[];
2901
+ isPunchCard: boolean;
2902
+ resources?: any[];
3011
2903
  }
3012
- export declare class UpdateSeasonRegistrationDatesDto {
3013
- registrationPeriods: UpdateSeasonDatesDto[];
2904
+ export interface IPackageResponse {
2905
+ parentProduct: Product;
2906
+ children: IChildProduct[];
3014
2907
  }
3015
- export declare class RegistrationDatesDto {
3016
- registrationStartDate: Date;
3017
- registrationEndDate: Date;
3018
- earlyRegistrationStartDate?: Date;
3019
- earlyRegistrationEndDate?: Date;
3020
- lateRegistrationStartDate?: Date;
3021
- lateRegistrationEndDate?: Date;
2908
+ export interface IChildProduct {
2909
+ product: Product;
2910
+ relationType: PackageProductsRelationTypeEnum;
2911
+ timePeriod?: AddonTimePeriodEnum;
3022
2912
  }
3023
- export declare class RegistrationSettingsDto extends RegistrationDatesDto {
3024
- closeRegistrationPeriodValue?: number;
3025
- closeRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
3026
- closeRegistrationSpecTime?: string;
3027
- openRegistrationPeriodValue?: number;
3028
- openRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
3029
- openRegistrationSpecTime?: string;
3030
- productsIdsToUpdate?: number[];
2913
+ export interface ISeasonAttendeeInfo {
2914
+ applicationAnswers: Answer[];
2915
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2916
+ invoices: Order[];
2917
+ payments: Invoice[];
2918
+ products: Product[];
2919
+ redeemNext: ProductsUsers;
3031
2920
  }
3032
- export declare class MoveParticipantDto {
2921
+ export interface ISeasonAttendeeListInfo {
3033
2922
  userId: number;
3034
- oldProductId: number;
3035
- newProductId: number;
3036
- moveType: 'session' | 'segment';
3037
- resourceId: number;
3038
- orderId: number;
2923
+ userFirstName: string;
2924
+ userLastName: string;
2925
+ userGender: number;
2926
+ userBirthDate: Date;
2927
+ userProfilePicUrl: string;
2928
+ customerId: number;
2929
+ customerEmail: string;
2930
+ paymentStatus: string;
2931
+ productName: string;
2932
+ punchCard: boolean;
3039
2933
  }
3040
- export declare class FindProgramsByOrganizationIdDto {
3041
- organizationId: number;
3042
- programType?: ProgramTypesEnum;
2934
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2935
+ segmentType: ResourceNameTypeEnum;
2936
+ participantRegisteredDate?: string;
3043
2937
  }
3044
- export declare class FindProgramByIdDto {
3045
- programId: number;
2938
+ export declare class EventAsSeasonSegment extends Event {
2939
+ segmentType: ResourceNameTypeEnum;
2940
+ participantRegisteredDate?: string;
3046
2941
  }
3047
- export declare class FindProgramByOrgIdAndIdDto {
3048
- programId: number;
3049
- organizationId: number;
2942
+ export interface ITokenResonse {
2943
+ token: string;
3050
2944
  }
3051
- export declare class BaseProgramDto {
3052
- type: ProgramTypesEnum;
3053
- name: string;
3054
- sport: SportsEnum;
3055
- minAge: string;
3056
- maxAge: string;
3057
- gender: GenderEnum;
3058
- level?: LevelOfPlayEnum[];
3059
- description?: string;
3060
- GL?: string;
3061
- status: PublishingStatusEnum;
3062
- organizationId: number;
3063
- userCreatorId: number;
3064
- highlights: ProgramHighlights[];
3065
- longDescription?: string;
3066
- requiredProductIds: number[];
2945
+ export interface IStripeBondInvoices {
2946
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2947
+ bondPaidInvoice: Invoice;
2948
+ order?: Order;
2949
+ customer?: Customer;
3067
2950
  }
3068
- export declare class CreateProgramDto extends BaseProgramDto {
2951
+ export interface IPartialPaymentData {
2952
+ purchasingUserId: number;
2953
+ paymentData: PurchasePaymentDto;
2954
+ amountToPay: number;
3069
2955
  }
3070
- export declare class UpdateProgramDto extends BaseProgramDto {
3071
- programId: number;
3072
- mainMediaId: number;
2956
+ export interface IPayment {
2957
+ id: number;
2958
+ total: number;
2959
+ paymentMethod: PaymentMethodTypeEnum;
2960
+ status: PaymentStatusEnum;
2961
+ createdAt: Date;
2962
+ invoices: number[];
3073
2963
  }
3074
- export declare class UpdateProgramStatusDto {
3075
- programId: number;
3076
- status: PublishingStatusEnum;
2964
+ export interface IPaginationData<T> {
2965
+ meta: {
2966
+ totalItems: number;
2967
+ itemsPerPage: number;
2968
+ totalPages: number;
2969
+ currentPage: number;
2970
+ };
2971
+ data: T[];
2972
+ }
2973
+ export interface IPricesOfProductsResults {
2974
+ productId: number;
2975
+ userId: number;
2976
+ price: number;
2977
+ groupId?: number;
2978
+ groupName?: string;
2979
+ originalPrice?: number;
2980
+ priceWithoutTax: number;
2981
+ tax: number;
2982
+ isTaxInclusive: boolean;
2983
+ }
2984
+ export interface IPaymentMethodToFundLeft {
2985
+ paymentType: PaymentMethodTypeEnum;
2986
+ paymentMethodId: string;
2987
+ fundLeft: number;
2988
+ ccLast4?: string;
2989
+ ccBrand?: string;
3077
2990
  }
3078
- export declare class ProgramHighlightDto {
3079
- data: string;
3080
- ordinal: number;
3081
- type: ProgramHighlightTypeEnum;
3082
- title: string;
2991
+ export interface IVariantsAndTitle {
2992
+ title: VariantTitle;
2993
+ variants: Variant[];
3083
2994
  }
3084
- export declare class PurchasePaymentDto {
3085
- token: string;
3086
- type: PaymentMethodTypeEnum;
2995
+ export interface IProgramSeasonActivityTimes {
2996
+ dayOfWeek: number;
2997
+ open: string;
2998
+ close: string;
3087
2999
  }
3088
- export declare class ChargeRentalsReuqestDto {
3089
- organizationId: number;
3090
- userId?: number;
3091
- customerId?: number;
3092
- orderId: number;
3093
- paymentData: PurchasePaymentDto;
3094
- amountToPay: number;
3095
- total: number;
3096
- platform: PlatformsEnum;
3097
- shiftId?: number;
3000
+ export interface IProgramSeasonActivityTimesAsDates {
3001
+ date: string;
3002
+ startTime: string;
3003
+ endTime: string;
3098
3004
  }
3099
- export declare class PurchaseRequestDto {
3100
- purchasingUserId: number;
3101
- customerId?: number;
3102
- products: PurchaseProductDto[];
3103
- paymentData: PurchasePaymentDto;
3104
- answers: UserAnswersDto[];
3105
- amountToPay: number;
3106
- parentPurchasedType?: ResourceNameTypeEnum;
3107
- parentPurchasedId?: number;
3108
- isPartialPayment: boolean;
3109
- existingOrderToken?: string;
3110
- installments?: ScheduledPaymentDto[];
3111
- shiftId?: number;
3112
- orderId?: number;
3005
+ export interface IBlockedDates {
3006
+ name: string;
3007
+ startDate: Date;
3008
+ endDate: Date;
3113
3009
  }
3114
- export declare class PurchaseResourceDto extends ResourceDto {
3010
+ export interface ISingleMemberForRenewal {
3011
+ member_id: number;
3012
+ member_membershipId: number;
3013
+ member_userId: number;
3014
+ member_nextPaymentMethodId?: string;
3015
+ member_nextPaymentType?: PaymentMethodTypeEnum;
3016
+ member_answerTitleIds?: number[];
3017
+ member_organizationId: number;
3018
+ line_paidAmount: number;
3019
+ line_productId: number;
3020
+ order_payingUserId: number;
3021
+ order_paymentMethodId: string;
3022
+ order_paymentType: PaymentMethodTypeEnum;
3023
+ endDate: Date;
3024
+ membership_name: string;
3025
+ user_firstName: string;
3026
+ user_lastName: string;
3027
+ user_email: string;
3115
3028
  }
3116
- export declare class PurchaseProductDto {
3117
- id: number;
3118
- resources?: PurchaseResourceDto[];
3119
- userId?: number;
3120
- paymentStatus?: PaymentStatusEnum;
3121
- amountToPay?: number;
3122
- ordinal?: number;
3123
- startDate?: Date;
3124
- quantity?: number;
3029
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3030
+ package_parentProductId: number;
3031
+ line2_paidAmount: number;
3032
+ familyid: number;
3033
+ order_id: number;
3125
3034
  }
3126
- export declare class PartialPaymentRequestDto {
3127
- orderId: number;
3128
- amountToPay: number;
3129
- organizationId: number;
3130
- payingUserId: number;
3131
- paymentMethodData: PurchasePaymentDto;
3132
- shiftId?: number;
3035
+ export interface IResourceRegistrationData {
3036
+ id: number;
3037
+ resourceType: ResourceNameTypeEnum;
3038
+ openNumDays?: number;
3039
+ openNumMinutes?: number;
3040
+ openTime?: string;
3041
+ closeNumDays?: number;
3042
+ closeNumMinutes?: number;
3043
+ closeTime?: string;
3044
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
3133
3045
  }
3134
- export declare class RedeemPunchCardRequestDto {
3135
- products: PurchaseProductDto[];
3136
- answersTitlesIds: number[];
3137
- organizationId: number;
3138
- purchasingUserId: number;
3046
+ export interface IResourceDataForConstraintsCalc {
3047
+ id: number;
3048
+ startDate: string;
3049
+ startTime: string;
3139
3050
  }
3140
- export declare class OrderIdDto extends ByOrganizationIdDto {
3141
- orderId: number;
3051
+ export interface IRegistrationConstraintsSetting {
3052
+ numDays?: number;
3053
+ numMinutes?: number;
3142
3054
  }
3143
- export declare class AddItemsDto {
3144
- products: PurchaseProductDto[];
3145
- allocateResource: boolean;
3146
- skipMail: boolean;
3055
+ export interface IAttendeeDataToNotify {
3056
+ firstName: string;
3057
+ lastName: string;
3058
+ email: string;
3059
+ sessionName: string;
3060
+ parentSessionName?: string;
3061
+ organizationName: string;
3062
+ programName: string;
3147
3063
  }
3148
- export declare class PartialPaymentAsUserDto {
3149
- orderId: any;
3150
- organizationId: any;
3151
- amountToPay: any;
3152
- paymentMethodData: any;
3064
+ export interface IEventInSchedule {
3065
+ eventId: number;
3066
+ eventName: string;
3067
+ eventStartDate: string;
3068
+ eventEndDate: string;
3069
+ eventStartTime: string;
3070
+ eventEndTime: string;
3071
+ programId: number;
3072
+ programName: string;
3073
+ programType: ProgramTypesEnum;
3074
+ sessionId: number;
3075
+ sessionName: string;
3076
+ sports: number;
3077
+ spaces: {
3078
+ spaceId: number;
3079
+ spaceName: string;
3080
+ }[];
3081
+ status?: RegistrationValidationStatusEnum;
3153
3082
  }
3154
- export declare class CreateResourceGroupDto {
3155
- name: string;
3156
- parentSlotId: number;
3083
+ export interface ISlotInSchedule {
3157
3084
  facilityId: number;
3158
- childrenSlotIds: number[];
3159
- }
3160
- export declare class UpdateResourceGroupDto extends CreateResourceGroupDto {
3085
+ facilityName: string;
3086
+ spaces: ISpaceWithSlots[];
3161
3087
  }
3162
- export declare class ResourceDto {
3163
- type: ResourceNameTypeEnum;
3088
+ export interface ISpaceWithSlots {
3164
3089
  id: number;
3090
+ name: string;
3091
+ slots: ISlotReservationData[];
3165
3092
  }
3166
- export declare class SpaceByIdDto {
3093
+ export interface ISlotReservationData {
3094
+ reservationId: number;
3095
+ reservationName: string;
3096
+ date: string;
3097
+ startTime: string;
3098
+ endTime: string;
3099
+ notes: string;
3167
3100
  spaceId: number;
3101
+ isRental: boolean;
3102
+ slotType: SlotTypeEnum;
3103
+ slotId: number;
3104
+ eventId: number;
3105
+ isPrivate: boolean;
3168
3106
  }
3169
- export declare class CreateSpaceDto {
3170
- name: string;
3171
- sports: number[];
3172
- description?: string;
3173
- longDescription?: string;
3174
- spaceType: ResourceSubTypeEnum;
3175
- isAddon?: boolean;
3176
- properties: SpacePropertiesEnum;
3177
- width?: number;
3178
- length?: number;
3179
- surface?: SurfacesEnum;
3180
- ages?: ResourceAgesEnum;
3181
- amenities: number[];
3182
- activityTimes: BasicActivityTimesDto[];
3183
- facilitiesIds: number[];
3184
- resourceGroupId?: number;
3185
- blockedResourcesIds?: number[];
3107
+ export interface IRawEventInSchedule extends IEventInSchedule {
3108
+ parentSessionId: number;
3109
+ parentSessionName: string;
3110
+ eventTimezone: string;
3111
+ maxParticipants: number;
3112
+ maxMaleParticipants: number;
3113
+ maxFemaleParticipants: number;
3114
+ isPunchCard: boolean;
3186
3115
  }
3187
- export declare class UpdateSpaceDetailsDto {
3116
+ export interface IBasicSpaceAndSlotCreator {
3117
+ id: number;
3188
3118
  name: string;
3189
- description?: string;
3190
- longDescription?: string;
3191
- isAddon?: boolean;
3192
- facilitiesIds: number[];
3119
+ bookingCreatorId: number;
3193
3120
  }
3194
- export declare class UpdateSpacePropertiesDto {
3195
- properties: SpacePropertiesEnum;
3196
- width?: number;
3197
- length?: number;
3198
- surface?: SurfacesEnum;
3199
- ages?: ResourceAgesEnum;
3121
+ export interface IRawSlotInSchedule {
3122
+ startDate: string;
3123
+ endDate: string;
3124
+ startTime: string;
3125
+ endTime: string;
3126
+ reservationId: number;
3127
+ eventTitle: string;
3128
+ publicNotes: string;
3129
+ spaceId: number;
3130
+ creatorType: ResourceNameTypeEnum;
3131
+ slotType: SlotTypeEnum;
3132
+ slotId: number;
3133
+ eventId: number;
3134
+ isPrivate: boolean;
3135
+ }
3136
+ export interface IPurchasedResourcesRaw {
3137
+ purchasedId: number;
3138
+ purchasedProductUserId: number;
3139
+ purchasedResourceId: number;
3140
+ purchasedResourceType: ResourceNameTypeEnum;
3141
+ purchasedStatus: PurchasedResourceStatusEnum;
3142
+ pUserId: number;
3143
+ pUserPaymentStatus: PaymentStatusEnum;
3144
+ pUserProductId: number;
3145
+ pUserProductName: string;
3146
+ pUserProductPrice: number;
3147
+ pUserProductPriceCurrency: string;
3148
+ pUserProductQuantity: number;
3149
+ pUserProductQuantityLeft: number;
3150
+ pUserUserId: number;
3151
+ }
3152
+ export interface IUsersPasses {
3153
+ userId: number;
3154
+ userFirstName: string;
3155
+ userLastName: string;
3156
+ organizationId: number;
3157
+ programId: number;
3158
+ programName: string;
3159
+ sessionId: number;
3160
+ sessionName: string;
3161
+ productId: number;
3162
+ productName: string;
3163
+ productUserId: number;
3164
+ purchaseDate: Date;
3165
+ passesLeft: number;
3200
3166
  }
3201
- export declare class UpdateSpaceTimesDto {
3202
- activityTimes: BasicActivityTimesDto[];
3167
+ export interface ISessionsLandingPage {
3168
+ sessionId: number;
3169
+ name: string;
3170
+ startDate: Date;
3171
+ endDate: Date;
3172
+ registrationStartDate: Date;
3173
+ registrationEndDate: Date;
3174
+ sport: SportsEnum;
3175
+ minAge: string;
3176
+ maxAge: string;
3177
+ maxParticipants?: number;
3178
+ gender: GenderEnum;
3179
+ activityTimes: ActivityTimes[];
3180
+ earlyRegistrationStartDate?: Date;
3181
+ earlyRegistrationEndDate?: Date;
3182
+ lateRegistrationStartDate?: Date;
3183
+ lateRegistrationEndDate?: Date;
3184
+ attendeeCount?: number;
3185
+ segmentsOrEvents: 'segment' | 'event';
3203
3186
  }
3204
- export declare class UpdateSpaceRelationshipsDto {
3205
- resourceGroupId?: number;
3206
- blockedResourcesIds?: number[];
3187
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3188
+ hasRequiredMembership: boolean;
3189
+ hasEntitledPricing: boolean;
3190
+ lowestPrice?: number;
3191
+ products?: ISessionLandingPageProduct[];
3207
3192
  }
3208
- export declare class SaveSpaceDependenciesDto {
3209
- blockedSpacesIds: number[];
3210
- parentSpaceId?: number;
3193
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3194
+ hasRequiredMembership: boolean;
3195
+ hasEntitledPricing: boolean;
3196
+ products?: ISessionLandingPageProduct[];
3197
+ segments?: Event[] | ProgramSeason[];
3198
+ programName: string;
3199
+ programId: number;
3200
+ levelOfPlay: LevelOfPlayEnum[];
3201
+ registrationConstraints: IResourceRegistrationData[];
3211
3202
  }
3212
- export declare class FacilitySlotsScheduleQueryParams {
3213
- spacesIds?: string;
3214
- futureHoursLimit?: number;
3203
+ export interface ISlimAddons {
3204
+ addons?: {
3205
+ id: number;
3206
+ timePeriod: AddonTimePeriodEnum;
3207
+ name: string;
3208
+ productType?: ProductTypesEnum;
3209
+ productSubType?: string;
3210
+ }[];
3215
3211
  }
3216
- export declare class FindResourcesOptionsDto extends PaginationQuery {
3217
- nameSearch?: string;
3218
- facilitiesIds?: string;
3219
- types?: string;
3220
- resourcesIds?: string;
3212
+ export interface ISessionLandingPageProduct extends ISlimAddons {
3213
+ id: number;
3214
+ name: string;
3215
+ startDate?: Date;
3216
+ endDate?: Date;
3217
+ downpayment?: number;
3218
+ description?: string;
3219
+ prices: Price[];
3220
+ productSubType?: ProductSubTypesEnum;
3221
+ punchCard: boolean;
3222
+ isAddon: boolean;
3223
+ defaultPriceId?: number;
3221
3224
  }
3222
- export declare class StripeCustomerIdDto {
3223
- userId: number;
3225
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3226
+ destinationId?: string;
3227
+ stripeCustomerId?: string;
3228
+ fee?: number;
3224
3229
  }
3225
- export declare class AddACHTokenToCustomerDto {
3226
- publicToken: string;
3227
- accountId: string;
3230
+ export interface IReservationCreatorData {
3231
+ type: ResourceNameTypeEnum;
3232
+ id: number;
3233
+ organizationId: number;
3234
+ startDate: string;
3235
+ endDate: string;
3236
+ sportId: number;
3228
3237
  }
3229
- export declare class FindByUserIdDto {
3230
- userId: number;
3238
+ export declare class ColumnNumericTransformer {
3239
+ to(data: number): number;
3240
+ from(data: string): number;
3231
3241
  }
3232
- export declare class FindByFamilyAccountIdDto {
3233
- familyAccountId?: number;
3242
+ export declare function convertToNumber(data: string): number;
3243
+ export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3244
+ name?: string;
3245
+ genderStr?: string;
3246
+ parentID?: string;
3247
+ partnerID?: string;
3248
+ membershipName?: string;
3249
+ membershipExpDate?: string;
3250
+ membershipCreationDate?: string;
3251
+ bondMembershipID?: number;
3234
3252
  }
3235
- export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
3236
- organizationId: number;
3253
+ export declare class AddFamilyDto {
3254
+ parents: AddImportedCustomerDto[];
3255
+ children: AddImportedCustomerDto[];
3237
3256
  }
3238
3257
  export declare enum ImportPaymentTypeEnum {
3239
3258
  CREDIT_CARD = "card",
@@ -3270,20 +3289,6 @@ export declare class ImportedPaymentDto {
3270
3289
  date: string;
3271
3290
  time: string;
3272
3291
  }
3273
- export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3274
- name?: string;
3275
- genderStr?: string;
3276
- parentID?: string;
3277
- partnerID?: string;
3278
- membershipName?: string;
3279
- membershipExpDate?: string;
3280
- membershipCreationDate?: string;
3281
- bondMembershipID?: number;
3282
- }
3283
- export declare class AddFamilyDto {
3284
- parents: AddImportedCustomerDto[];
3285
- children: AddImportedCustomerDto[];
3286
- }
3287
3292
  export declare class ProductIdsDto {
3288
3293
  productIds?: number[];
3289
3294
  }
@@ -3391,6 +3396,44 @@ export declare class Lock extends BondBaseEntity {
3391
3396
  name: string;
3392
3397
  locked?: Date;
3393
3398
  }
3399
+ export interface ValidatedMonthAndDay {
3400
+ valid: boolean;
3401
+ month?: number;
3402
+ day?: number;
3403
+ }
3404
+ export interface ValidationReason {
3405
+ valid: boolean;
3406
+ reason?: string;
3407
+ }
3408
+ export interface PaymentStatus {
3409
+ parentId: number;
3410
+ paymentStatus: ReservationPaymentStatusEnum;
3411
+ approvalStatus?: ReservationStatusEnum;
3412
+ id?: number;
3413
+ }
3414
+ export interface PaymentStatusesDict {
3415
+ [id: number]: PaymentStatus[];
3416
+ }
3417
+ export interface PaymentStatusDict {
3418
+ [id: number]: ReservationPaymentStatusEnum;
3419
+ }
3420
+ export declare class CreateMonitorConfigDto {
3421
+ facilityId: number;
3422
+ name: string;
3423
+ code: string;
3424
+ config: any;
3425
+ }
3426
+ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3427
+ facilityId: number;
3428
+ code: string;
3429
+ config?: any;
3430
+ }
3431
+ export declare class ByOrganizationIdDto {
3432
+ organizationId: number;
3433
+ }
3434
+ export declare class OptionalFindByOrganizationIdDto {
3435
+ organizationId?: number;
3436
+ }
3394
3437
  export declare class Organization extends BondBaseEntity {
3395
3438
  name: string | null;
3396
3439
  email: string | null;
@@ -3440,12 +3483,6 @@ export declare class Organization extends BondBaseEntity {
3440
3483
  brandings: OrganizationBranding[];
3441
3484
  brandingsV2?: OrganizationBranding[];
3442
3485
  }
3443
- export declare class ByOrganizationIdDto {
3444
- organizationId: number;
3445
- }
3446
- export declare class OptionalFindByOrganizationIdDto {
3447
- organizationId?: number;
3448
- }
3449
3486
  export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3450
3487
  key?: string;
3451
3488
  vaule?: string;
@@ -3459,17 +3496,6 @@ export declare class OrganizationUsers extends BondBaseEntity {
3459
3496
  organisationId: number | null;
3460
3497
  userId: number | null;
3461
3498
  }
3462
- export declare class CreateMonitorConfigDto {
3463
- facilityId: number;
3464
- name: string;
3465
- code: string;
3466
- config: any;
3467
- }
3468
- export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3469
- facilityId: number;
3470
- code: string;
3471
- config?: any;
3472
- }
3473
3499
  export declare class CustomerIdDto {
3474
3500
  customerId: number;
3475
3501
  }
@@ -3658,29 +3684,6 @@ export interface RefundResultWithLineItemsDict extends PaymentsResults {
3658
3684
  failedLineItems: Map<number, RefundLineItemAmountDto>;
3659
3685
  totalAmountProcessed: number;
3660
3686
  }
3661
- export declare class ChangeRolePermissionsDto {
3662
- permissionIds: number[];
3663
- }
3664
- export declare class CreateRoleDto {
3665
- name: string;
3666
- }
3667
- export declare class Permission extends BondBaseEntity {
3668
- name: string;
3669
- deletedAt?: Date;
3670
- }
3671
- export declare class Role extends OrganizationConnectionBaseEntity {
3672
- name: string;
3673
- deletedAt?: Date;
3674
- permissions: Permission[];
3675
- usersRoles: UserRole[];
3676
- }
3677
- export declare class UserRole extends OrganizationConnectionBaseEntity {
3678
- deletedAt?: Date;
3679
- userId: number;
3680
- roleId: number;
3681
- role: Role;
3682
- user: User;
3683
- }
3684
3687
  export declare class LineItemDto {
3685
3688
  id?: number;
3686
3689
  orderId?: number;
@@ -3993,15 +3996,6 @@ export declare class SlotDto extends SlotDateTimeAndSpace {
3993
3996
  slotDurationType: SlotDurationTypeEnum;
3994
3997
  addonsIds?: number[];
3995
3998
  }
3996
- export interface ValidatedMonthAndDay {
3997
- valid: boolean;
3998
- month?: number;
3999
- day?: number;
4000
- }
4001
- export interface ValidationReason {
4002
- valid: boolean;
4003
- reason?: string;
4004
- }
4005
3999
  declare class AnswerDto {
4006
4000
  questionId: number;
4007
4001
  value: any;
@@ -4063,18 +4057,6 @@ export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4063
4057
  invoiceId: number;
4064
4058
  slotId: number;
4065
4059
  }
4066
- export interface PaymentStatus {
4067
- parentId: number;
4068
- paymentStatus: ReservationPaymentStatusEnum;
4069
- approvalStatus?: ReservationStatusEnum;
4070
- id?: number;
4071
- }
4072
- export interface PaymentStatusesDict {
4073
- [id: number]: PaymentStatus[];
4074
- }
4075
- export interface PaymentStatusDict {
4076
- [id: number]: ReservationPaymentStatusEnum;
4077
- }
4078
4060
  export declare class Reservation extends OrganizationConnectionBaseEntity {
4079
4061
  name?: string;
4080
4062
  description?: string;
@@ -4422,12 +4404,32 @@ export interface EditSlotsData {
4422
4404
  export interface EditSlotsResult extends UpdateReservationResult {
4423
4405
  refundResult?: RefundResult;
4424
4406
  }
4407
+ export declare class Role extends OrganizationConnectionBaseEntity {
4408
+ name: string;
4409
+ deletedAt?: Date;
4410
+ permissions: Permission[];
4411
+ usersRoles: UserRole[];
4412
+ }
4413
+ export declare class UserRole extends OrganizationConnectionBaseEntity {
4414
+ deletedAt?: Date;
4415
+ userId: number;
4416
+ roleId: number;
4417
+ role: Role;
4418
+ user: User;
4419
+ }
4420
+ export declare class Permission extends BondBaseEntity {
4421
+ name: string;
4422
+ deletedAt?: Date;
4423
+ }
4424
+ export declare class ChangeRolePermissionsDto {
4425
+ permissionIds: number[];
4426
+ }
4427
+ export declare class CreateRoleDto {
4428
+ name: string;
4429
+ }
4425
4430
  export declare class CloseShiftDto {
4426
4431
  closingCashAmount: number;
4427
4432
  }
4428
- export declare class FindShiftsByIdsDto {
4429
- shiftIds: number[];
4430
- }
4431
4433
  export declare class FindShiftsFiltersDto {
4432
4434
  statuses?: string;
4433
4435
  stationIds?: string;
@@ -4448,6 +4450,9 @@ export declare class FindShiftsFormattedFilters {
4448
4450
  startDate?: Date;
4449
4451
  endDate?: Date;
4450
4452
  }
4453
+ export declare class FindShiftsByIdsDto {
4454
+ shiftIds: number[];
4455
+ }
4451
4456
  export declare class ShiftManagementClosingAmount {
4452
4457
  shiftId: number;
4453
4458
  managementClosingCashAmount: number;
@@ -4488,8 +4493,3 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4488
4493
  closingManager?: User;
4489
4494
  reconcilingUser?: User;
4490
4495
  }
4491
- export declare class ColumnNumericTransformer {
4492
- to(data: number): number;
4493
- from(data: string): number;
4494
- }
4495
- export declare function convertToNumber(data: string): number;