@bondsports/types 0.0.56 → 0.0.57

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
@@ -1140,6 +1140,14 @@ export declare class AthleteSports extends BondBaseEntity {
1140
1140
  sports: number | null;
1141
1141
  levelOfPlay: LevelOfPlayEnum | null;
1142
1142
  }
1143
+ export declare class BlockedDate extends BondBaseEntity {
1144
+ entityType: ResourceNameTypeEnum;
1145
+ entityId: number;
1146
+ name: string;
1147
+ startDate: Date;
1148
+ endDate: Date;
1149
+ deletedAt?: Date;
1150
+ }
1143
1151
  export declare class BondBaseEntity extends BaseEntity {
1144
1152
  id: number;
1145
1153
  createdAt: Date;
@@ -1178,26 +1186,6 @@ export declare class Configuration extends BondBaseEntity {
1178
1186
  key: string;
1179
1187
  value: string;
1180
1188
  }
1181
- export declare class BlockedDate extends BondBaseEntity {
1182
- entityType: ResourceNameTypeEnum;
1183
- entityId: number;
1184
- name: string;
1185
- startDate: Date;
1186
- endDate: Date;
1187
- deletedAt?: Date;
1188
- }
1189
- export declare class Connection extends BondBaseEntity {
1190
- connType: number | null;
1191
- from: number | null;
1192
- fromType: string | null;
1193
- to: number | null;
1194
- toType: string | null;
1195
- status: number | null;
1196
- creatorId: number | null;
1197
- creatorType: string | null;
1198
- userCreatorId: number | null;
1199
- ownerId: number | null;
1200
- }
1201
1189
  export declare class CreditNote extends OrganizationConnectionBaseEntity {
1202
1190
  creditAmount: number;
1203
1191
  paymentProcessorId: string;
@@ -1234,6 +1222,18 @@ export declare class Customer extends OrganizationConnectionBaseEntity {
1234
1222
  mainMedia: Media;
1235
1223
  reservations?: Reservation[];
1236
1224
  }
1225
+ export declare class Connection extends BondBaseEntity {
1226
+ connType: number | null;
1227
+ from: number | null;
1228
+ fromType: string | null;
1229
+ to: number | null;
1230
+ toType: string | null;
1231
+ status: number | null;
1232
+ creatorId: number | null;
1233
+ creatorType: string | null;
1234
+ userCreatorId: number | null;
1235
+ ownerId: number | null;
1236
+ }
1237
1237
  export declare class CustomerCreditTransaction extends OrganizationConnectionBaseEntity {
1238
1238
  customerId: number;
1239
1239
  userId: number;
@@ -1246,6 +1246,12 @@ export declare class CustomerCreditTransaction extends OrganizationConnectionBas
1246
1246
  order: Order;
1247
1247
  invoice: Invoice;
1248
1248
  }
1249
+ export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1250
+ customerId?: number;
1251
+ description: string;
1252
+ pinToTop?: boolean;
1253
+ customer: Customer;
1254
+ }
1249
1255
  export declare class Division extends BondBaseEntity {
1250
1256
  name: string;
1251
1257
  ordinal?: number;
@@ -1254,12 +1260,6 @@ export declare class Division extends BondBaseEntity {
1254
1260
  isDefault: boolean;
1255
1261
  groups: Group[];
1256
1262
  }
1257
- export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1258
- customerId?: number;
1259
- description: string;
1260
- pinToTop?: boolean;
1261
- customer: Customer;
1262
- }
1263
1263
  export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1264
1264
  customerId: number;
1265
1265
  name: string | null;
@@ -1422,17 +1422,6 @@ export declare class GroupsInDivisions extends BondBaseEntity {
1422
1422
  divisionId: number;
1423
1423
  deletedAt?: Date;
1424
1424
  }
1425
- export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1426
- email: string;
1427
- status: EEmailStatus;
1428
- templateId: string;
1429
- userId: number;
1430
- invoiceId: number;
1431
- paymentId: number;
1432
- sendingUserId: number;
1433
- mailParams?: any;
1434
- memo?: string;
1435
- }
1436
1425
  export declare class Invoice extends OrganizationConnectionBaseEntity {
1437
1426
  price: number;
1438
1427
  paymentProcessorId: string;
@@ -1460,6 +1449,17 @@ export declare class Invoice extends OrganizationConnectionBaseEntity {
1460
1449
  refundReasonId?: number;
1461
1450
  refundNote?: string;
1462
1451
  }
1452
+ export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1453
+ email: string;
1454
+ status: EEmailStatus;
1455
+ templateId: string;
1456
+ userId: number;
1457
+ invoiceId: number;
1458
+ paymentId: number;
1459
+ sendingUserId: number;
1460
+ mailParams?: any;
1461
+ memo?: string;
1462
+ }
1463
1463
  export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
1464
1464
  content: string;
1465
1465
  creatingUserId: number;
@@ -1549,6 +1549,22 @@ export declare class LineItemHistory extends BondBaseEntity {
1549
1549
  invoice: Invoice;
1550
1550
  lineItem: LineItems;
1551
1551
  }
1552
+ export declare class LinkedAccounts extends BondBaseEntity {
1553
+ id: number;
1554
+ provider: string;
1555
+ providerId: string | null;
1556
+ parentId: number | null;
1557
+ parentType: string | null;
1558
+ status: number | null;
1559
+ token: string | null;
1560
+ refreshToken: string | null;
1561
+ tokenCreatedAt: Date | null;
1562
+ tokenValidUpTo: Date | null;
1563
+ createdAt: Date;
1564
+ updatedAt: Date;
1565
+ user: User;
1566
+ userId: number | null;
1567
+ }
1552
1568
  export declare class LineItems extends BondBaseEntity {
1553
1569
  constructor();
1554
1570
  defineIsReverted(): void;
@@ -1604,22 +1620,6 @@ export declare class LineItems extends BondBaseEntity {
1604
1620
  displayUnitPrice?: number;
1605
1621
  displayQuantity?: number;
1606
1622
  }
1607
- export declare class LinkedAccounts extends BondBaseEntity {
1608
- id: number;
1609
- provider: string;
1610
- providerId: string | null;
1611
- parentId: number | null;
1612
- parentType: string | null;
1613
- status: number | null;
1614
- token: string | null;
1615
- refreshToken: string | null;
1616
- tokenCreatedAt: Date | null;
1617
- tokenValidUpTo: Date | null;
1618
- createdAt: Date;
1619
- updatedAt: Date;
1620
- user: User;
1621
- userId: number | null;
1622
- }
1623
1623
  export declare class Media extends BondBaseEntity {
1624
1624
  url: string;
1625
1625
  name: string | null;
@@ -1748,6 +1748,12 @@ export declare class OrderToInvoice extends BondBaseEntity {
1748
1748
  export declare class OrganizationConnectionBaseEntity extends BondBaseEntity {
1749
1749
  organizationId: number;
1750
1750
  }
1751
+ export declare class PasswordReset extends BondBaseEntity {
1752
+ token: string | null;
1753
+ userId: number | null;
1754
+ validUntil: Date | null;
1755
+ active: boolean | null;
1756
+ }
1751
1757
  export declare class PackageV1 extends BondBaseEntity {
1752
1758
  name?: string;
1753
1759
  description?: string;
@@ -1765,12 +1771,6 @@ export declare class PackageV1 extends BondBaseEntity {
1765
1771
  isMandatory: boolean;
1766
1772
  productId: number;
1767
1773
  }
1768
- export declare class PasswordReset extends BondBaseEntity {
1769
- token: string | null;
1770
- userId: number | null;
1771
- validUntil: Date | null;
1772
- active: boolean | null;
1773
- }
1774
1774
  export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1775
1775
  paymentPlanId: number;
1776
1776
  paymentDate: Date;
@@ -1811,6 +1811,30 @@ export declare class Price extends OrganizationConnectionBaseEntity {
1811
1811
  discountMethod?: DiscountMethodsEnum;
1812
1812
  discountValue?: number;
1813
1813
  }
1814
+ export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1815
+ parentProductId: number;
1816
+ childProductId: number;
1817
+ relationType: PackageProductsRelationTypeEnum;
1818
+ timePeriod: AddonTimePeriodEnum;
1819
+ deletedAt?: Date;
1820
+ productResource: ProductResource;
1821
+ childProduct: Product;
1822
+ parentProduct: Product;
1823
+ price: number;
1824
+ isFlatPrice: boolean;
1825
+ durationMinutes?: number;
1826
+ durationDays?: number;
1827
+ level?: ProductPackageLevelEnum;
1828
+ }
1829
+ export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
1830
+ productId: number;
1831
+ maxMonths?: number;
1832
+ dayOfMonth?: number;
1833
+ name: string;
1834
+ deletedAt?: Date;
1835
+ schedule: PaymentPlanSchedule[];
1836
+ product?: Product;
1837
+ }
1814
1838
  export declare class Product extends OrganizationConnectionBaseEntity {
1815
1839
  name: string;
1816
1840
  quantity: number;
@@ -1861,30 +1885,6 @@ export declare class Product extends OrganizationConnectionBaseEntity {
1861
1885
  activityTimes: ActivityTimes[];
1862
1886
  purchasedResources: PurchasedResource[];
1863
1887
  }
1864
- export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1865
- parentProductId: number;
1866
- childProductId: number;
1867
- relationType: PackageProductsRelationTypeEnum;
1868
- timePeriod: AddonTimePeriodEnum;
1869
- deletedAt?: Date;
1870
- productResource: ProductResource;
1871
- childProduct: Product;
1872
- parentProduct: Product;
1873
- price: number;
1874
- isFlatPrice: boolean;
1875
- durationMinutes?: number;
1876
- durationDays?: number;
1877
- level?: ProductPackageLevelEnum;
1878
- }
1879
- export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
1880
- productId: number;
1881
- maxMonths?: number;
1882
- dayOfMonth?: number;
1883
- name: string;
1884
- deletedAt?: Date;
1885
- schedule: PaymentPlanSchedule[];
1886
- product?: Product;
1887
- }
1888
1888
  export declare class ProductResource extends OrganizationConnectionBaseEntity {
1889
1889
  productId: number;
1890
1890
  resourceId: number;
@@ -1896,10 +1896,6 @@ export declare class ProductResource extends OrganizationConnectionBaseEntity {
1896
1896
  productPackages: ProductPackage[];
1897
1897
  resourceName?: string;
1898
1898
  }
1899
- export declare class ProductToVariantTitle extends OrganizationConnectionBaseEntity {
1900
- productId: number;
1901
- variantTitleId: number;
1902
- }
1903
1899
  export declare class ProductToVariant extends OrganizationConnectionBaseEntity {
1904
1900
  productId: number;
1905
1901
  variantId: number;
@@ -1911,6 +1907,10 @@ export declare class ProductsReservedForCustomers extends OrganizationConnection
1911
1907
  deletedAt?: Date;
1912
1908
  product: Product;
1913
1909
  }
1910
+ export declare class ProductToVariantTitle extends OrganizationConnectionBaseEntity {
1911
+ productId: number;
1912
+ variantTitleId: number;
1913
+ }
1914
1914
  export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1915
1915
  productId: number;
1916
1916
  userId: number;
@@ -2012,6 +2012,10 @@ export declare class ProgramSeason extends BondBaseEntity {
2012
2012
  facility: Facility;
2013
2013
  purchasedResources: PurchasedResource[];
2014
2014
  }
2015
+ export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2016
+ title: string | null;
2017
+ answerTitle: AnswerTitle;
2018
+ }
2015
2019
  export declare class PurchasedResource extends OrganizationConnectionBaseEntity {
2016
2020
  productUserId: number;
2017
2021
  resourceId: number;
@@ -2034,10 +2038,6 @@ export declare class PurchasedResource extends OrganizationConnectionBaseEntity
2034
2038
  product?: Product;
2035
2039
  event?: Event;
2036
2040
  }
2037
- export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2038
- title: string | null;
2039
- answerTitle: AnswerTitle;
2040
- }
2041
2041
  export declare class Questions extends BondBaseEntity {
2042
2042
  questionType: string | null;
2043
2043
  ordinal: number | null;
@@ -2057,6 +2057,17 @@ export declare class RefundReason extends OrganizationConnectionBaseEntity {
2057
2057
  ordinal: number;
2058
2058
  deletedAt: Date;
2059
2059
  }
2060
+ export declare class RegistrationConstraint extends OrganizationConnectionBaseEntity {
2061
+ resourceType: ResourceNameTypeEnum;
2062
+ resourceId: number;
2063
+ openNumDays?: number;
2064
+ openNumMinutes?: number;
2065
+ openTime?: string;
2066
+ closeNumDays?: number;
2067
+ closeNumMinutes?: number;
2068
+ closeTime?: string;
2069
+ deletedAt?: Date;
2070
+ }
2060
2071
  export declare class Reservations extends OrganizationConnectionBaseEntity {
2061
2072
  name?: string;
2062
2073
  description?: string;
@@ -2117,17 +2128,6 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
2117
2128
  purchasedResources: PurchasedResource[];
2118
2129
  linkSEO: string;
2119
2130
  }
2120
- export declare class RegistrationConstraint extends OrganizationConnectionBaseEntity {
2121
- resourceType: ResourceNameTypeEnum;
2122
- resourceId: number;
2123
- openNumDays?: number;
2124
- openNumMinutes?: number;
2125
- openTime?: string;
2126
- closeNumDays?: number;
2127
- closeNumMinutes?: number;
2128
- closeTime?: string;
2129
- deletedAt?: Date;
2130
- }
2131
2131
  export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2132
2132
  name: string;
2133
2133
  facilityId: number;
@@ -2143,6 +2143,20 @@ export declare class School extends BondBaseEntity {
2143
2143
  phone: string | null;
2144
2144
  dataId: number | null;
2145
2145
  }
2146
+ export declare class SeasonAttendee extends BondBaseEntity {
2147
+ status: RequestStatusEnum;
2148
+ paymentStatus: PaymentStatusEnum;
2149
+ paymentId?: number;
2150
+ productId?: number;
2151
+ attendeeId: number;
2152
+ attendee: User;
2153
+ seasonId: number;
2154
+ season: ProgramSeason;
2155
+ productUserId?: number;
2156
+ answerTitleIds?: number[];
2157
+ deletedAt?: Date;
2158
+ purchasedResource: PurchasedResource;
2159
+ }
2146
2160
  export declare class SeasonDivisions extends BondBaseEntity {
2147
2161
  name: string | null;
2148
2162
  ordinal: number | null;
@@ -2164,20 +2178,6 @@ export declare class SeasonPool extends BondBaseEntity {
2164
2178
  purchasedResource: PurchasedResource;
2165
2179
  season: LeagueSeason;
2166
2180
  }
2167
- export declare class SeasonAttendee extends BondBaseEntity {
2168
- status: RequestStatusEnum;
2169
- paymentStatus: PaymentStatusEnum;
2170
- paymentId?: number;
2171
- productId?: number;
2172
- attendeeId: number;
2173
- attendee: User;
2174
- seasonId: number;
2175
- season: ProgramSeason;
2176
- productUserId?: number;
2177
- answerTitleIds?: number[];
2178
- deletedAt?: Date;
2179
- purchasedResource: PurchasedResource;
2180
- }
2181
2181
  export declare class SeasonTeam extends BondBaseEntity {
2182
2182
  seasonId: number | null;
2183
2183
  teamId: number | null;
@@ -2203,14 +2203,6 @@ export declare class Station extends OrganizationConnectionBaseEntity {
2203
2203
  subcategories: Subcategory[];
2204
2204
  shifts?: Shift[];
2205
2205
  }
2206
- export declare class StationToSubcategory extends OrganizationConnectionBaseEntity {
2207
- stationId: number;
2208
- subcategoryId: number;
2209
- productType: ProductTypesEnum;
2210
- deletedAt?: Date;
2211
- station: Station;
2212
- subcategory: Subcategory;
2213
- }
2214
2206
  export declare class Subcategory extends OrganizationConnectionBaseEntity {
2215
2207
  productType: ProductTypesEnum;
2216
2208
  name: string;
@@ -2219,6 +2211,14 @@ export declare class Subcategory extends OrganizationConnectionBaseEntity {
2219
2211
  stationToSubcategories: StationToSubcategory[];
2220
2212
  stations: Station[];
2221
2213
  }
2214
+ export declare class StationToSubcategory extends OrganizationConnectionBaseEntity {
2215
+ stationId: number;
2216
+ subcategoryId: number;
2217
+ productType: ProductTypesEnum;
2218
+ deletedAt?: Date;
2219
+ station: Station;
2220
+ subcategory: Subcategory;
2221
+ }
2222
2222
  export declare class Team extends BondBaseEntity {
2223
2223
  name: string | null;
2224
2224
  description: string | null;
@@ -2347,896 +2347,893 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2347
2347
  membershipCollectionId?: string;
2348
2348
  programsCollectionId?: string;
2349
2349
  }
2350
- export declare enum EntitlementTermsTypesEnum {
2351
- QUESTION = "question",
2352
- CITY = "city",
2353
- MEMBERSHIP = "membership"
2354
- }
2355
- export declare enum ResourceNameTypeEnum {
2356
- EVENT = "event",
2357
- VENUE = "venue",
2358
- TEAM = "team",
2359
- LEAGUE = "league",
2360
- USER = "user",
2361
- ORGANIZATION = "organization",
2362
- APP = "app",
2363
- FEED = "feed",
2364
- MATCH = "match",
2365
- ROUND = "round",
2366
- PORTAL = "portal",
2367
- SEASON = "season",
2368
- TOURNAMENT = "tournament",
2369
- MEMBERSHIP = "membership",
2370
- DIVISION = "division",
2371
- GAMESLOT = "gameslot",
2372
- SPACE = "space",
2373
- RESERVATION = "reservation",
2374
- ORDER = "order",
2375
- CUSTOMER = "customer",
2376
- PACKAGE = "package",
2377
- FACILITY = "facility",
2378
- PROGRAM = "program",
2379
- PROGRAM_SEASON = "program_season",
2380
- PRODUCT = "product",
2381
- GROUP = "group",
2382
- VARIANT = "variant",
2383
- SLOT = "slot",
2384
- ADDON = "addon"
2385
- }
2386
- export declare enum DirectBookingTypesEnum {
2387
- DIRECT_FOR_ALL = "all",
2388
- DIRECT_FOR_NONE = "none",
2389
- DIRECT_VETTED_ONLY = "vetted_only",
2390
- NO_SETTING = "no_setting"
2350
+ export interface IEntitlementTerms {
2351
+ type: EntitlementTermsTypesEnum;
2352
+ id?: number;
2353
+ value?: string;
2354
+ minValue?: string;
2355
+ maxValue?: string;
2391
2356
  }
2392
- export declare enum GenderEnum {
2393
- OTHER = 1,
2394
- MALE = 2,
2395
- FEMALE = 3
2357
+ export interface IQuestionAnswerObject {
2358
+ questionId: number;
2359
+ value: string;
2396
2360
  }
2397
- export declare enum LevelOfPlayEnum {
2398
- BEGINNER = 1,
2399
- INTERMEDIATE = 2,
2400
- ADVANCED = 3,
2401
- SEMIPRO = 4,
2402
- SPECTATOR = 5
2361
+ export interface ILowestPriceForItem {
2362
+ itemId: number;
2363
+ itemType: ResourceNameTypeEnum;
2364
+ groupId: number;
2365
+ groupName?: string;
2366
+ price: number;
2367
+ overridesPrice: boolean;
2403
2368
  }
2404
- export declare enum ProgramTypesEnum {
2405
- LEAGUE = 0,
2406
- TOURNAMENT = 1,
2407
- CLASS = 2,
2408
- CLINIC = 3,
2409
- CAMP = 4,
2410
- LESSON = 5,
2411
- CLUB_TEAM = 6
2369
+ export interface IResourcesAvailability {
2370
+ resourceType: ResourceNameTypeEnum;
2371
+ quantity: number;
2372
+ resourcesIds: number[];
2373
+ isPunchCard: boolean;
2374
+ resources?: any[];
2412
2375
  }
2413
- export declare enum ProgramSeasonTypesEnum {
2414
- ROUND_ROBIN = 1,
2415
- BRACKETS = 2,
2416
- CAMP_CLINIC_CLASS = 3
2376
+ export interface IPackageResponse {
2377
+ parentProduct: Product;
2378
+ children: IChildProduct[];
2417
2379
  }
2418
- export declare enum SportsEnum {
2419
- SOFTBALL = 1,
2420
- BASKETBALL = 2,
2421
- FOOTBALL = 3,
2422
- SOCCER = 4,
2423
- BOWLING = 5,
2424
- BOCCEBALL = 6,
2425
- CORNHOLE = 7,
2426
- DODGEBALL = 8,
2427
- FRISBEE = 9,
2428
- HOCKEY = 10,
2429
- KICKBALL = 11,
2430
- LACROSSE = 12,
2431
- PINGPONG = 13,
2432
- RUGBY = 14,
2433
- SKEEBALL = 15,
2434
- TENNIS = 16,
2435
- VOLLEYBALL = 17,
2436
- WIFFLEBALL = 18,
2437
- BADMINTON = 19,
2438
- FITNESS = 20,
2439
- GOLF = 21,
2440
- PILATES = 22,
2441
- RUNNING = 23,
2442
- SKIING = 24,
2443
- SNOWBOARDING = 25,
2444
- YOGA = 26,
2445
- BROOMBALL = 27,
2446
- CRICKET = 28,
2447
- CROSSFIT = 29,
2448
- CYCLING = 30,
2449
- FIELD_HOCKEY = 31,
2450
- RACQUETBALL = 32,
2451
- SPINNING = 33,
2452
- SQUASH = 34,
2453
- SURFING = 35,
2454
- SWIMMING = 36,
2455
- WIND_SURFING = 37,
2456
- ADVENTURE = 38,
2457
- BOXING = 39,
2458
- BASEBALL = 40,
2459
- DANCE = 41,
2460
- KICKBOXING = 42,
2461
- MARTIAL_ARTS = 43,
2462
- OUTDOORS = 44,
2463
- ROWING = 45,
2464
- SAILING = 46,
2465
- SUP = 47,
2466
- TRIATHLON = 48,
2467
- HANDBALL = 49,
2468
- CATCHBALL = 50,
2469
- BLITZBALL = 51,
2470
- ROLLER_DERBY = 52,
2471
- ICE_SKATING = 53,
2472
- PICKLEBALL = 54,
2473
- AXE_THROWING = 55,
2474
- FURSAL = 56,
2475
- BIRTHDAY = 57,
2476
- CORPRATE_EVENTS = 58,
2477
- OTHER = 999
2380
+ export interface IChildProduct {
2381
+ product: Product;
2382
+ relationType: PackageProductsRelationTypeEnum;
2383
+ timePeriod?: AddonTimePeriodEnum;
2478
2384
  }
2479
- export declare enum PublishingStatusEnum {
2480
- DRAFT = 1,
2481
- PUBLISHED = 2,
2482
- CLOSED = 3,
2483
- CANCELLED = 4,
2484
- ARCHIVE = 5,
2485
- UNPUBLISHED = 6
2385
+ export interface ISeasonAttendeeInfo {
2386
+ applicationAnswers: Answer[];
2387
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2388
+ invoices: Order[];
2389
+ payments: Invoice[];
2390
+ products: Product[];
2391
+ redeemNext: ProductsUsers;
2486
2392
  }
2487
- export declare enum ProgramHighlightTypeEnum {
2488
- OTHER = 1,
2489
- MINAGE = 2,
2490
- MAXAGE = 3,
2491
- GENDER = 4,
2492
- LEVELOFPLAY = 5,
2493
- GAMESSEASON = 6,
2494
- MINWEEK = 7,
2495
- SURFACE = 8,
2496
- FORMAT = 9,
2497
- PLAYERS_PER_TEAM = 10,
2498
- MATCH_LENGTH = 12
2393
+ export interface ISeasonAttendeeListInfo {
2394
+ userId: number;
2395
+ userFirstName: string;
2396
+ userLastName: string;
2397
+ userGender: number;
2398
+ userBirthDate: Date;
2399
+ userProfilePicUrl: string;
2400
+ customerId: number;
2401
+ customerEmail: string;
2402
+ paymentStatus: string;
2403
+ productName: string;
2404
+ punchCard: boolean;
2499
2405
  }
2500
- export declare enum RequestStatusEnum {
2501
- PENDING = 1,
2502
- ACCEPTED = 2,
2503
- DECLINED = 3
2406
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2407
+ segmentType: ResourceNameTypeEnum;
2408
+ participantRegisteredDate?: string;
2504
2409
  }
2505
- export declare enum PaymentStatusEnum {
2506
- NOT_PAID = "not_paid",
2507
- PARTIAL_PAYMENT = "partial",
2508
- FULLY_PAID = "paid",
2509
- REFUNDED = "refunded",
2510
- VOID = "void"
2410
+ export declare class EventAsSeasonSegment extends Event {
2411
+ segmentType: ResourceNameTypeEnum;
2412
+ participantRegisteredDate?: string;
2511
2413
  }
2512
- export declare enum ReservationExtendedEnum {
2513
- PURCHASE_ORDER = "purchase_order"
2414
+ export interface ITokenResonse {
2415
+ token: string;
2514
2416
  }
2515
- export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2516
- export declare enum ReservationStatusEnum {
2517
- PLANNED = "Planned",
2518
- APPROVED = "Approved",
2519
- AWAITING_ADMIN = "Awaiting Admin",
2520
- AWAITING_CUSTOMER = "Awaiting Customer",
2521
- REJECTED = "Rejected",
2522
- CANCELED = "Canceled"
2417
+ export interface IStripeBondInvoices {
2418
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2419
+ bondPaidInvoice: Invoice;
2420
+ order?: Order;
2421
+ customer?: Customer;
2523
2422
  }
2524
- export declare enum PaymentStatusV1Enum {
2525
- SENT_TO_CLIENT = 1,
2526
- SENT_FOR_PAYMENT = 2,
2527
- ACCEPTED = 3,
2528
- REJECTED = 4,
2529
- CANCELLED = 5,
2530
- FRAUD = 6,
2531
- NOT_RELEVANT = 7,
2532
- PENDING = 8
2423
+ export interface IPartialPaymentData {
2424
+ purchasingUserId: number;
2425
+ paymentData: PurchasePaymentDto;
2426
+ amountToPay: number;
2533
2427
  }
2534
- export declare enum PaymentMethodsEnum {
2535
- STRIPE = 1,
2536
- CASH = 3
2428
+ export interface IPayment {
2429
+ id: number;
2430
+ total: number;
2431
+ paymentMethod: PaymentMethodTypeEnum;
2432
+ status: PaymentStatusEnum;
2433
+ createdAt: Date;
2434
+ invoices: number[];
2537
2435
  }
2538
- export declare enum PackageProductsRelationTypeEnum {
2539
- CHILD = "child",
2540
- UPSALE = "upsale"
2436
+ export interface IPaginationData<T> {
2437
+ meta: {
2438
+ totalItems: number;
2439
+ itemsPerPage: number;
2440
+ totalPages: number;
2441
+ currentPage: number;
2442
+ };
2443
+ data: T[];
2541
2444
  }
2542
- export declare enum AddonTimePeriodEnum {
2543
- FULL = "full",
2544
- SESSION = "session",
2545
- EVENT = "event"
2445
+ export interface IPricesOfProductsResults {
2446
+ productId: number;
2447
+ userId: number;
2448
+ price: number;
2449
+ groupId?: number;
2450
+ groupName?: string;
2451
+ originalPrice?: number;
2452
+ priceWithoutTax: number;
2453
+ tax: number;
2454
+ isTaxInclusive: boolean;
2546
2455
  }
2547
- export declare enum CurrencyEnum {
2548
- USD = "USD"
2456
+ export interface IPaymentMethodToFundLeft {
2457
+ paymentType: PaymentMethodTypeEnum;
2458
+ paymentMethodId: string;
2459
+ fundLeft: number;
2460
+ ccLast4?: string;
2461
+ ccBrand?: string;
2549
2462
  }
2550
- export declare enum NotificationTypeEnum {
2551
- BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2552
- BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2553
- BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2463
+ export interface IVariantsAndTitle {
2464
+ title: VariantTitle;
2465
+ variants: Variant[];
2554
2466
  }
2555
- export declare enum ProductTypesEnum {
2556
- RESERVATION = "reservation",
2557
- REGISTRATION = "registration",
2558
- MEMBERSHIP = "membership",
2559
- GOODS = "goods",
2560
- PACKAGE = "package",
2561
- REFUND_COMPENSATION = "refund",
2562
- CASH_OVER_SHORT = "cash_over_short",
2563
- PETTY_CASH = "petty_cash",
2564
- LEAGUE_REGISTRATION = "league_registration",
2565
- TAX = "tax"
2467
+ export interface IProgramSeasonActivityTimes {
2468
+ dayOfWeek: number;
2469
+ open: string;
2470
+ close: string;
2566
2471
  }
2567
- export declare enum OrderStatusEnum {
2568
- ACTIVE = "active",
2569
- WAITING_ADMIN = "waitingAdmin",
2570
- WAITING_CLIENT = "waitingClient",
2571
- CANCELED = "canceled"
2472
+ export interface IProgramSeasonActivityTimesAsDates {
2473
+ date: string;
2474
+ startTime: string;
2475
+ endTime: string;
2572
2476
  }
2573
- export declare enum LineItemsStatusEnum {
2574
- USER_PRODUCT = "UserProduct",
2575
- RENTAL_PRODUCT = "RentalProduct"
2477
+ export interface IBlockedDates {
2478
+ name: string;
2479
+ startDate: Date;
2480
+ endDate: Date;
2576
2481
  }
2577
- export declare enum ProductSubTypesEnum {
2578
- SEASON_INDIVIDUAL = "season_individual",
2579
- SEASON_TEAM = "season_team",
2580
- SEASON_PER_PLAYER = "season_per_player"
2482
+ export interface ISingleMemberForRenewal {
2483
+ member_id: number;
2484
+ member_membershipId: number;
2485
+ member_userId: number;
2486
+ member_nextPaymentMethodId?: string;
2487
+ member_nextPaymentType?: PaymentMethodTypeEnum;
2488
+ member_answerTitleIds?: number[];
2489
+ member_organizationId: number;
2490
+ line_paidAmount: number;
2491
+ line_productId: number;
2492
+ order_payingUserId: number;
2493
+ order_paymentMethodId: string;
2494
+ order_paymentType: PaymentMethodTypeEnum;
2495
+ endDate: Date;
2496
+ membership_name: string;
2497
+ user_firstName: string;
2498
+ user_lastName: string;
2499
+ user_email: string;
2581
2500
  }
2582
- export declare enum PaymentMethodTypeEnum {
2583
- CREDIT_CARD = "card",
2584
- ACH = "ach",
2585
- CASH = "cash",
2586
- CHECK = "check",
2587
- BALANCE = "balance",
2588
- CARD_ON_TERMINAL = "card-on-terminal",
2589
- OTHER = "other",
2590
- MIGRATED = "migrated",
2591
- VOID = "void"
2501
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2502
+ package_parentProductId: number;
2503
+ line2_paidAmount: number;
2504
+ familyid: number;
2505
+ order_id: number;
2592
2506
  }
2593
- export declare enum RefundTypeEnum {
2594
- LEAVE_BALANCE = "leave_balance",
2595
- REDUCE_BALANCE = "reduce_balance"
2507
+ export interface IResourceRegistrationData {
2508
+ id: number;
2509
+ resourceType: ResourceNameTypeEnum;
2510
+ openNumDays?: number;
2511
+ openNumMinutes?: number;
2512
+ openTime?: string;
2513
+ closeNumDays?: number;
2514
+ closeNumMinutes?: number;
2515
+ closeTime?: string;
2516
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
2596
2517
  }
2597
- export declare enum CustomerInMembershipTypeEnum {
2598
- INDIVIDUAL = "individual",
2599
- FAMILY = "family",
2600
- ORGANIZATION = "organization"
2518
+ export interface IResourceDataForConstraintsCalc {
2519
+ id: number;
2520
+ startDate: string;
2521
+ startTime: string;
2601
2522
  }
2602
- export declare enum MembershipTypeEnum {
2603
- FIXED = "fix_membership",
2604
- ROLLING = "rolling_membership"
2523
+ export interface IRegistrationConstraintsSetting {
2524
+ numDays?: number;
2525
+ numMinutes?: number;
2605
2526
  }
2606
- export declare enum CustomerTypeEnum {
2607
- USER = "user",
2608
- FAMILY = "family",
2609
- ORGANIZATION = "organization"
2527
+ export interface IAttendeeDataToNotify {
2528
+ firstName: string;
2529
+ lastName: string;
2530
+ email: string;
2531
+ sessionName: string;
2532
+ parentSessionName?: string;
2533
+ organizationName: string;
2534
+ programName: string;
2610
2535
  }
2611
- export declare enum GroupStatusEnum {
2612
- ACTIVE = 1,
2613
- INACTIVE = 2,
2614
- DRAFT = 3
2536
+ export interface IEventInSchedule {
2537
+ eventId: number;
2538
+ eventName: string;
2539
+ eventStartDate: string;
2540
+ eventEndDate: string;
2541
+ eventStartTime: string;
2542
+ eventEndTime: string;
2543
+ programId: number;
2544
+ programName: string;
2545
+ programType: ProgramTypesEnum;
2546
+ sessionId: number;
2547
+ sessionName: string;
2548
+ sports: number;
2549
+ spaces: {
2550
+ spaceId: number;
2551
+ spaceName: string;
2552
+ }[];
2553
+ status?: RegistrationValidationStatusEnum;
2615
2554
  }
2616
- export declare enum FutureInstallmentStatusEnum {
2617
- FUTURE = "future",
2618
- SUCCEEDED = "succeeded",
2619
- FAILED = "failed",
2620
- CANCELED = "canceled"
2555
+ export interface ISlotInSchedule {
2556
+ facilityId: number;
2557
+ facilityName: string;
2558
+ spaces: ISpaceWithSlots[];
2621
2559
  }
2622
- export declare enum EntryStatusEnum {
2623
- ENTERED = 1,
2624
- NOT_ENTERED = 2,
2625
- CANCELED = 3
2560
+ export interface ISpaceWithSlots {
2561
+ id: number;
2562
+ name: string;
2563
+ slots: ISlotReservationData[];
2626
2564
  }
2627
- export declare enum PurchasedResourceStatusEnum {
2628
- ACTIVE = 1,
2629
- MOVED = 2,
2630
- CANCELED = 3
2565
+ export interface ISlotReservationData {
2566
+ reservationId: number;
2567
+ reservationName: string;
2568
+ date: string;
2569
+ startTime: string;
2570
+ endTime: string;
2571
+ notes: string;
2572
+ spaceId: number;
2573
+ isRental: boolean;
2574
+ slotType: SlotTypeEnum;
2575
+ slotId: number;
2576
+ eventId: number;
2577
+ isPrivate: boolean;
2631
2578
  }
2632
- export declare enum TeamCanJoinEnum {
2633
- ANYONE = "anyone",
2634
- BY_INVITE = "byInvite",
2635
- CAPTAIN_APPROVAL = "captainApproval"
2579
+ export interface IRawEventInSchedule extends IEventInSchedule {
2580
+ parentSessionId: number;
2581
+ parentSessionName: string;
2582
+ eventTimezone: string;
2583
+ maxParticipants: number;
2584
+ maxMaleParticipants: number;
2585
+ maxFemaleParticipants: number;
2586
+ isPunchCard: boolean;
2636
2587
  }
2637
- export declare enum TeamMemberStatusEnum {
2638
- PENDING = 1,
2639
- ACTIVE = 2,
2640
- DECLINED = 3,
2641
- SUSPENDED = 4,
2642
- INACTIVE = 5,
2643
- INVITED = 6
2588
+ export interface IBasicSpaceAndSlotCreator {
2589
+ id: number;
2590
+ name: string;
2591
+ bookingCreatorId: number;
2644
2592
  }
2645
- export declare enum TeamMemberRoleEnum {
2646
- NULL = 0,
2647
- ADMIN = 1
2593
+ export interface IRawSlotInSchedule {
2594
+ startDate: string;
2595
+ endDate: string;
2596
+ startTime: string;
2597
+ endTime: string;
2598
+ reservationId: number;
2599
+ eventTitle: string;
2600
+ publicNotes: string;
2601
+ spaceId: number;
2602
+ creatorType: ResourceNameTypeEnum;
2603
+ slotType: SlotTypeEnum;
2604
+ slotId: number;
2605
+ eventId: number;
2606
+ isPrivate: boolean;
2648
2607
  }
2649
- export declare enum DayOfWeekEnum {
2650
- SUNDAY = 0,
2651
- MONDAY = 1,
2652
- TUESDAY = 2,
2653
- WEDNESDAY = 3,
2654
- THURSDAY = 4,
2655
- FRIDAY = 5,
2656
- SATURDAY = 6
2608
+ export interface IPurchasedResourcesRaw {
2609
+ purchasedId: number;
2610
+ purchasedProductUserId: number;
2611
+ purchasedResourceId: number;
2612
+ purchasedResourceType: ResourceNameTypeEnum;
2613
+ purchasedStatus: PurchasedResourceStatusEnum;
2614
+ pUserId: number;
2615
+ pUserPaymentStatus: PaymentStatusEnum;
2616
+ pUserProductId: number;
2617
+ pUserProductName: string;
2618
+ pUserProductPrice: number;
2619
+ pUserProductPriceCurrency: string;
2620
+ pUserProductQuantity: number;
2621
+ pUserProductQuantityLeft: number;
2622
+ pUserUserId: number;
2657
2623
  }
2658
- export declare enum ActionTypesEnum {
2659
- CREATE = "create",
2660
- READ = "read",
2661
- UPDATE = "update",
2662
- DELETE = "delete"
2624
+ export interface IUsersPasses {
2625
+ userId: number;
2626
+ userFirstName: string;
2627
+ userLastName: string;
2628
+ organizationId: number;
2629
+ programId: number;
2630
+ programName: string;
2631
+ sessionId: number;
2632
+ sessionName: string;
2633
+ productId: number;
2634
+ productName: string;
2635
+ productUserId: number;
2636
+ purchaseDate: Date;
2637
+ passesLeft: number;
2663
2638
  }
2664
- export declare enum ActionSourcePlatformEnum {
2665
- ADMIN = "admin",
2666
- BACKOFFICE = "backoffice",
2667
- CONSUMER = "consumer"
2639
+ export interface ISessionsLandingPage {
2640
+ sessionId: number;
2641
+ name: string;
2642
+ startDate: Date;
2643
+ endDate: Date;
2644
+ registrationStartDate: Date;
2645
+ registrationEndDate: Date;
2646
+ sport: SportsEnum;
2647
+ minAge: string;
2648
+ maxAge: string;
2649
+ maxParticipants?: number;
2650
+ gender: GenderEnum;
2651
+ activityTimes: ActivityTimes[];
2652
+ earlyRegistrationStartDate?: Date;
2653
+ earlyRegistrationEndDate?: Date;
2654
+ lateRegistrationStartDate?: Date;
2655
+ lateRegistrationEndDate?: Date;
2656
+ attendeeCount?: number;
2657
+ segmentsOrEvents: 'segment' | 'event';
2668
2658
  }
2669
- export declare enum RolesEnum {
2670
- ORG_ADMIN = "organizationAdmin",
2671
- BOND_ADMIN = "bondAdmin"
2659
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2660
+ hasRequiredMembership: boolean;
2661
+ hasEntitledPricing: boolean;
2662
+ lowestPrice?: number;
2663
+ products?: ISessionLandingPageProduct[];
2672
2664
  }
2673
- export declare enum SeasonPoolStatusEnum {
2674
- IN_POOL = 5,
2675
- ASSIGNED = 1,
2676
- QUIT = 2,
2677
- SUSPENDED = 3,
2678
- INACTIVE = 4
2665
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2666
+ hasRequiredMembership: boolean;
2667
+ hasEntitledPricing: boolean;
2668
+ products?: ISessionLandingPageProduct[];
2669
+ segments?: Event[] | ProgramSeason[];
2670
+ programName: string;
2671
+ programId: number;
2672
+ levelOfPlay: LevelOfPlayEnum[];
2673
+ registrationConstraints: IResourceRegistrationData[];
2679
2674
  }
2680
- export declare enum AmenitiesEnum {
2681
- HEAT = 1,
2682
- AC = 2,
2683
- WIFI = 3,
2684
- RESTROOMS = 4,
2685
- DRINKING_FOUNTAIN = 5,
2686
- PARKING = 6,
2687
- CONCESSIONS = 7,
2688
- SHELTER = 8,
2689
- PORTABLE_RESTROOMS = 9,
2690
- LIGHTS = 10,
2691
- LOCKER_ROOM = 11,
2692
- PAID_PARKING = 12,
2693
- ACCESSIBLE = 13
2675
+ export interface ISlimAddons {
2676
+ addons?: {
2677
+ id: number;
2678
+ timePeriod: AddonTimePeriodEnum;
2679
+ name: string;
2680
+ productType?: ProductTypesEnum;
2681
+ productSubType?: string;
2682
+ }[];
2683
+ }
2684
+ export interface ISessionLandingPageProduct extends ISlimAddons {
2685
+ id: number;
2686
+ name: string;
2687
+ startDate?: Date;
2688
+ endDate?: Date;
2689
+ downpayment?: number;
2690
+ description?: string;
2691
+ prices: Price[];
2692
+ productSubType?: ProductSubTypesEnum;
2693
+ punchCard: boolean;
2694
+ isAddon: boolean;
2695
+ defaultPriceId?: number;
2694
2696
  }
2695
- export declare enum ResourceSubTypeEnum {
2696
- COURT = "court",
2697
- FIELD = "field",
2698
- ROOM = "room",
2699
- DIAMOND = "diamond",
2700
- RINK = "rink",
2701
- STUDIO = "studio",
2702
- POOL = "pool",
2703
- BATTING_CAGE = "batting cage",
2704
- SHELTER = "shelter",
2705
- GOLF_SIMULATOR = "golf simulator"
2697
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2698
+ destinationId?: string;
2699
+ stripeCustomerId?: string;
2700
+ fee?: number;
2706
2701
  }
2707
- export declare enum ResourceTypeEnum {
2708
- SPACE = "space"
2702
+ export interface IReservationCreatorData {
2703
+ type: ResourceNameTypeEnum;
2704
+ id: number;
2705
+ organizationId: number;
2706
+ startDate: string;
2707
+ endDate: string;
2708
+ sportId: number;
2709
2709
  }
2710
- export declare enum ResourceAgesEnum {
2711
- ADULTS = "adults",
2712
- CHILDREN = "children"
2710
+ export declare enum EntitlementTermsTypesEnum {
2711
+ QUESTION = "question",
2712
+ CITY = "city",
2713
+ MEMBERSHIP = "membership"
2713
2714
  }
2714
- export declare enum SpacePropertiesEnum {
2715
- OUTDOOR = "outdoor",
2716
- INDOOR = "indoor"
2715
+ export declare enum ResourceNameTypeEnum {
2716
+ EVENT = "event",
2717
+ VENUE = "venue",
2718
+ TEAM = "team",
2719
+ LEAGUE = "league",
2720
+ USER = "user",
2721
+ ORGANIZATION = "organization",
2722
+ APP = "app",
2723
+ FEED = "feed",
2724
+ MATCH = "match",
2725
+ ROUND = "round",
2726
+ PORTAL = "portal",
2727
+ SEASON = "season",
2728
+ TOURNAMENT = "tournament",
2729
+ MEMBERSHIP = "membership",
2730
+ DIVISION = "division",
2731
+ GAMESLOT = "gameslot",
2732
+ SPACE = "space",
2733
+ RESERVATION = "reservation",
2734
+ ORDER = "order",
2735
+ CUSTOMER = "customer",
2736
+ PACKAGE = "package",
2737
+ FACILITY = "facility",
2738
+ PROGRAM = "program",
2739
+ PROGRAM_SEASON = "program_season",
2740
+ PRODUCT = "product",
2741
+ GROUP = "group",
2742
+ VARIANT = "variant",
2743
+ SLOT = "slot",
2744
+ ADDON = "addon"
2717
2745
  }
2718
- export declare enum SurfacesEnum {
2719
- GRASS = "grass",
2720
- TURF = "turf",
2721
- FIELD_TURF = "fieldTurf",
2722
- ASTRO_TURF = "astroTurf",
2723
- HARDWOOD = "hardwood",
2724
- ASPHALT = "asphalt",
2725
- SAND = "sand",
2726
- ICE = "ice",
2727
- SPORT_COURT = "sportCourt"
2746
+ export declare enum DirectBookingTypesEnum {
2747
+ DIRECT_FOR_ALL = "all",
2748
+ DIRECT_FOR_NONE = "none",
2749
+ DIRECT_VETTED_ONLY = "vetted_only",
2750
+ NO_SETTING = "no_setting"
2728
2751
  }
2729
- export declare enum RegistrationConstraintPeriodTypeEnum {
2730
- MINUTES = "minutes",
2731
- DAYS = "days"
2752
+ export declare enum GenderEnum {
2753
+ OTHER = 1,
2754
+ MALE = 2,
2755
+ FEMALE = 3
2732
2756
  }
2733
- export declare enum RegistrationWindowStatusEnum {
2734
- NOT_OPEN_YET = "not_opened_yet",
2735
- OPEN = "open",
2736
- CLOSED = "closed"
2757
+ export declare enum LevelOfPlayEnum {
2758
+ BEGINNER = 1,
2759
+ INTERMEDIATE = 2,
2760
+ ADVANCED = 3,
2761
+ SEMIPRO = 4,
2762
+ SPECTATOR = 5
2737
2763
  }
2738
- export declare enum RegistrationValidationStatusEnum {
2739
- FULL = "full",
2740
- ALREADY_REGISTERED = "registered",
2741
- AVAILABLE = "available",
2742
- NOT_OPEN_YET = "not opened",
2743
- ALREADY_CLOSED = "closed",
2744
- NO_PRODUCT_FOUND = "no-product-found"
2764
+ export declare enum ProgramTypesEnum {
2765
+ LEAGUE = 0,
2766
+ TOURNAMENT = 1,
2767
+ CLASS = 2,
2768
+ CLINIC = 3,
2769
+ CAMP = 4,
2770
+ LESSON = 5,
2771
+ CLUB_TEAM = 6
2745
2772
  }
2746
- export declare enum DiscountMethodsEnum {
2747
- PERCENT = "percent",
2748
- AMOUNT = "amount"
2773
+ export declare enum ProgramSeasonTypesEnum {
2774
+ ROUND_ROBIN = 1,
2775
+ BRACKETS = 2,
2776
+ CAMP_CLINIC_CLASS = 3
2749
2777
  }
2750
- export declare enum UserAuthorizationsTypeEnum {
2751
- ORGANIZATION = "organization"
2778
+ export declare enum SportsEnum {
2779
+ SOFTBALL = 1,
2780
+ BASKETBALL = 2,
2781
+ FOOTBALL = 3,
2782
+ SOCCER = 4,
2783
+ BOWLING = 5,
2784
+ BOCCEBALL = 6,
2785
+ CORNHOLE = 7,
2786
+ DODGEBALL = 8,
2787
+ FRISBEE = 9,
2788
+ HOCKEY = 10,
2789
+ KICKBALL = 11,
2790
+ LACROSSE = 12,
2791
+ PINGPONG = 13,
2792
+ RUGBY = 14,
2793
+ SKEEBALL = 15,
2794
+ TENNIS = 16,
2795
+ VOLLEYBALL = 17,
2796
+ WIFFLEBALL = 18,
2797
+ BADMINTON = 19,
2798
+ FITNESS = 20,
2799
+ GOLF = 21,
2800
+ PILATES = 22,
2801
+ RUNNING = 23,
2802
+ SKIING = 24,
2803
+ SNOWBOARDING = 25,
2804
+ YOGA = 26,
2805
+ BROOMBALL = 27,
2806
+ CRICKET = 28,
2807
+ CROSSFIT = 29,
2808
+ CYCLING = 30,
2809
+ FIELD_HOCKEY = 31,
2810
+ RACQUETBALL = 32,
2811
+ SPINNING = 33,
2812
+ SQUASH = 34,
2813
+ SURFING = 35,
2814
+ SWIMMING = 36,
2815
+ WIND_SURFING = 37,
2816
+ ADVENTURE = 38,
2817
+ BOXING = 39,
2818
+ BASEBALL = 40,
2819
+ DANCE = 41,
2820
+ KICKBOXING = 42,
2821
+ MARTIAL_ARTS = 43,
2822
+ OUTDOORS = 44,
2823
+ ROWING = 45,
2824
+ SAILING = 46,
2825
+ SUP = 47,
2826
+ TRIATHLON = 48,
2827
+ HANDBALL = 49,
2828
+ CATCHBALL = 50,
2829
+ BLITZBALL = 51,
2830
+ ROLLER_DERBY = 52,
2831
+ ICE_SKATING = 53,
2832
+ PICKLEBALL = 54,
2833
+ AXE_THROWING = 55,
2834
+ FURSAL = 56,
2835
+ BIRTHDAY = 57,
2836
+ CORPRATE_EVENTS = 58,
2837
+ OTHER = 999
2752
2838
  }
2753
- export declare enum OrganizationLocaleDateEnum {
2754
- USA = "USA"
2839
+ export declare enum PublishingStatusEnum {
2840
+ DRAFT = 1,
2841
+ PUBLISHED = 2,
2842
+ CLOSED = 3,
2843
+ CANCELLED = 4,
2844
+ ARCHIVE = 5,
2845
+ UNPUBLISHED = 6
2755
2846
  }
2756
- export declare enum DateTimeFormatsEnum {
2757
- API_DATE = "YYYY/MM/DD",
2758
- API_TIME = "HH:mm:ss"
2847
+ export declare enum ProgramHighlightTypeEnum {
2848
+ OTHER = 1,
2849
+ MINAGE = 2,
2850
+ MAXAGE = 3,
2851
+ GENDER = 4,
2852
+ LEVELOFPLAY = 5,
2853
+ GAMESSEASON = 6,
2854
+ MINWEEK = 7,
2855
+ SURFACE = 8,
2856
+ FORMAT = 9,
2857
+ PLAYERS_PER_TEAM = 10,
2858
+ MATCH_LENGTH = 12
2759
2859
  }
2760
- export declare enum SlotTypeEnum {
2761
- EXTERNAL = "external",
2762
- INTERNAL = "internal",
2763
- MAINTENANCE = "maintenance",
2764
- CUSTOM = "custom"
2860
+ export declare enum RequestStatusEnum {
2861
+ PENDING = 1,
2862
+ ACCEPTED = 2,
2863
+ DECLINED = 3
2765
2864
  }
2766
- export declare enum PlatformsEnum {
2767
- CONSUMER = "consumer",
2768
- BO = "backoffice",
2769
- MOBILE = "mobile",
2770
- CRON = "cron"
2865
+ export declare enum PaymentStatusEnum {
2866
+ NOT_PAID = "not_paid",
2867
+ PARTIAL_PAYMENT = "partial",
2868
+ FULLY_PAID = "paid",
2869
+ REFUNDED = "refunded",
2870
+ VOID = "void"
2771
2871
  }
2772
- export declare enum ShiftStatusEnum {
2773
- OPEN = "open",
2774
- CLOSED = "closed",
2775
- MANAGMENT_CLOSED = "closed_by_manager",
2776
- RECONCILED = "reconciled"
2872
+ export declare enum ReservationExtendedEnum {
2873
+ PURCHASE_ORDER = "purchase_order"
2777
2874
  }
2778
- export declare enum EventStatusEnum {
2779
- OPEN = 1,
2780
- DRAFT = 2,
2781
- FULL = 3,
2782
- CANCELLED = 4,
2783
- CLOSED = 5,
2784
- DELETED = 6
2875
+ export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2876
+ export declare enum ReservationStatusEnum {
2877
+ PLANNED = "Planned",
2878
+ APPROVED = "Approved",
2879
+ AWAITING_ADMIN = "Awaiting Admin",
2880
+ AWAITING_CUSTOMER = "Awaiting Customer",
2881
+ REJECTED = "Rejected",
2882
+ CANCELED = "Canceled"
2785
2883
  }
2786
- export declare enum ReservationTypeEnum {
2787
- RENTAL = "rental",
2788
- PROGRAM = "program",
2789
- MAINTENANCE = "maintenance",
2790
- CUSTOM = "custom"
2884
+ export declare enum PaymentStatusV1Enum {
2885
+ SENT_TO_CLIENT = 1,
2886
+ SENT_FOR_PAYMENT = 2,
2887
+ ACCEPTED = 3,
2888
+ REJECTED = 4,
2889
+ CANCELLED = 5,
2890
+ FRAUD = 6,
2891
+ NOT_RELEVANT = 7,
2892
+ PENDING = 8
2791
2893
  }
2792
- export declare enum SlotDurationTypeEnum {
2793
- DATES = "dates",
2794
- ALL_DAY = "all day",
2795
- DURATION = "duration"
2894
+ export declare enum PaymentMethodsEnum {
2895
+ STRIPE = 1,
2896
+ CASH = 3
2796
2897
  }
2797
- export declare enum DurationUnitTypesEnum {
2798
- MINUTES = "minutes",
2799
- HOURS = "hours"
2898
+ export declare enum PackageProductsRelationTypeEnum {
2899
+ CHILD = "child",
2900
+ UPSALE = "upsale"
2800
2901
  }
2801
- export declare enum FrequencyEnum {
2802
- NONE = "none",
2803
- WEEKLY = "weekly",
2804
- DAILY = "daily",
2805
- MONTHLY = "monthly",
2806
- YEARLY = "yearly"
2902
+ export declare enum AddonTimePeriodEnum {
2903
+ FULL = "full",
2904
+ SESSION = "session",
2905
+ EVENT = "event"
2807
2906
  }
2808
- export declare enum MaintenanceTimingEnum {
2809
- BEFORE = 1,
2810
- AFTER = 2,
2811
- AT_THE_BEGINING = 3,
2812
- AT_THE_END = 4
2907
+ export declare enum CurrencyEnum {
2908
+ USD = "USD"
2813
2909
  }
2814
- export declare enum CreatorTypeEnum {
2815
- SPACE = "space",
2816
- PROGRAM_SEASON = "program_season"
2910
+ export declare enum NotificationTypeEnum {
2911
+ BOOKING_CONFIRMED_STUFF = "booking_confirmed_stuff",
2912
+ BOOKING_CHANGED_STUFF = "booking_changed_stuff",
2913
+ BOOKING_DELETED_STUFF = "booking_deleted_stuff"
2817
2914
  }
2818
- export declare enum UpdatePricesTypeEnum {
2819
- INDIVIDUAL = "indvidual",
2820
- CATEGORY = "category",
2821
- GLOBAL = "global"
2915
+ export declare enum ProductTypesEnum {
2916
+ RESERVATION = "reservation",
2917
+ REGISTRATION = "registration",
2918
+ MEMBERSHIP = "membership",
2919
+ GOODS = "goods",
2920
+ PACKAGE = "package",
2921
+ REFUND_COMPENSATION = "refund",
2922
+ CASH_OVER_SHORT = "cash_over_short",
2923
+ PETTY_CASH = "petty_cash",
2924
+ LEAGUE_REGISTRATION = "league_registration",
2925
+ TAX = "tax"
2822
2926
  }
2823
- export declare enum BondDayOfWeekEnum {
2824
- MONDAY = 2,
2825
- TUESDAY = 3,
2826
- WEDNESDAY = 4,
2827
- THURSDAY = 5,
2828
- FRIDAY = 6,
2829
- SATURDAY = 7,
2830
- SUNDAY = 8
2927
+ export declare enum OrderStatusEnum {
2928
+ ACTIVE = "active",
2929
+ WAITING_ADMIN = "waitingAdmin",
2930
+ WAITING_CLIENT = "waitingClient",
2931
+ CANCELED = "canceled"
2831
2932
  }
2832
- export declare enum ReservationMigrationStatusEnum {
2833
- NEW = "new",
2834
- NO = "no",
2835
- YES = "yes"
2933
+ export declare enum LineItemsStatusEnum {
2934
+ USER_PRODUCT = "UserProduct",
2935
+ RENTAL_PRODUCT = "RentalProduct"
2836
2936
  }
2837
- export declare enum ProductPackageLevelEnum {
2838
- HOUR = "hour",
2839
- SLOT = "slot",
2840
- RESERVATION = "reservation"
2937
+ export declare enum ProductSubTypesEnum {
2938
+ SEASON_INDIVIDUAL = "season_individual",
2939
+ SEASON_TEAM = "season_team",
2940
+ SEASON_PER_PLAYER = "season_per_player"
2841
2941
  }
2842
- export declare enum CancellationStatusEnum {
2843
- IMMEDIATE = "immediate",
2844
- AUTO_RENEWAL = "auto_renewal"
2942
+ export declare enum PaymentMethodTypeEnum {
2943
+ CREDIT_CARD = "card",
2944
+ ACH = "ach",
2945
+ CASH = "cash",
2946
+ CHECK = "check",
2947
+ BALANCE = "balance",
2948
+ CARD_ON_TERMINAL = "card-on-terminal",
2949
+ OTHER = "other",
2950
+ MIGRATED = "migrated",
2951
+ VOID = "void"
2845
2952
  }
2846
- export declare enum SeasonScheduleStatusEnum {
2847
- DRAFT = 0,
2848
- PUBLISHED = 1
2953
+ export declare enum RefundTypeEnum {
2954
+ LEAVE_BALANCE = "leave_balance",
2955
+ REDUCE_BALANCE = "reduce_balance"
2849
2956
  }
2850
- export declare enum FinancialStepEnum {
2851
- VOID = "void",
2852
- REFUND = "refund",
2853
- NONE = "none",
2854
- REFUND_AND_VOID = "refund-and-void",
2855
- APPEND = "append"
2957
+ export declare enum CustomerInMembershipTypeEnum {
2958
+ INDIVIDUAL = "individual",
2959
+ FAMILY = "family",
2960
+ ORGANIZATION = "organization"
2856
2961
  }
2857
- export declare enum StripeAccountTypesEnum {
2858
- STRIPE = "stripe",
2859
- STRIPE_CUSTOM = "stripe:account:custom",
2860
- STRIPE_CUSTOMER = "stripe:customer"
2962
+ export declare enum MembershipTypeEnum {
2963
+ FIXED = "fix_membership",
2964
+ ROLLING = "rolling_membership"
2861
2965
  }
2862
- export declare enum LinkedAccountStatus {
2863
- PENDING = 1,
2864
- ACTIVE = 2,
2865
- PRE_PENDING = 3
2966
+ export declare enum CustomerTypeEnum {
2967
+ USER = "user",
2968
+ FAMILY = "family",
2969
+ ORGANIZATION = "organization"
2866
2970
  }
2867
- export declare enum AddonParentTypeEnum {
2868
- RESERVATION = "reservation",
2869
- SLOT = "slot"
2971
+ export declare enum GroupStatusEnum {
2972
+ ACTIVE = 1,
2973
+ INACTIVE = 2,
2974
+ DRAFT = 3
2870
2975
  }
2871
- export declare enum EEmailStatus {
2872
- SENT = "sent",
2873
- OPENED = "opened",
2874
- PAID = "paid",
2976
+ export declare enum FutureInstallmentStatusEnum {
2977
+ FUTURE = "future",
2978
+ SUCCEEDED = "succeeded",
2979
+ FAILED = "failed",
2875
2980
  CANCELED = "canceled"
2876
2981
  }
2877
- export interface IEntitlementTerms {
2878
- type: EntitlementTermsTypesEnum;
2879
- id?: number;
2880
- value?: string;
2881
- minValue?: string;
2882
- maxValue?: string;
2982
+ export declare enum EntryStatusEnum {
2983
+ ENTERED = 1,
2984
+ NOT_ENTERED = 2,
2985
+ CANCELED = 3
2883
2986
  }
2884
- export interface IQuestionAnswerObject {
2885
- questionId: number;
2886
- value: string;
2987
+ export declare enum PurchasedResourceStatusEnum {
2988
+ ACTIVE = 1,
2989
+ MOVED = 2,
2990
+ CANCELED = 3
2887
2991
  }
2888
- export interface ILowestPriceForItem {
2889
- itemId: number;
2890
- itemType: ResourceNameTypeEnum;
2891
- groupId: number;
2892
- groupName?: string;
2893
- price: number;
2894
- overridesPrice: boolean;
2992
+ export declare enum TeamCanJoinEnum {
2993
+ ANYONE = "anyone",
2994
+ BY_INVITE = "byInvite",
2995
+ CAPTAIN_APPROVAL = "captainApproval"
2895
2996
  }
2896
- export interface IResourcesAvailability {
2897
- resourceType: ResourceNameTypeEnum;
2898
- quantity: number;
2899
- resourcesIds: number[];
2900
- isPunchCard: boolean;
2901
- resources?: any[];
2997
+ export declare enum TeamMemberStatusEnum {
2998
+ PENDING = 1,
2999
+ ACTIVE = 2,
3000
+ DECLINED = 3,
3001
+ SUSPENDED = 4,
3002
+ INACTIVE = 5,
3003
+ INVITED = 6
2902
3004
  }
2903
- export interface IPackageResponse {
2904
- parentProduct: Product;
2905
- children: IChildProduct[];
3005
+ export declare enum TeamMemberRoleEnum {
3006
+ NULL = 0,
3007
+ ADMIN = 1
2906
3008
  }
2907
- export interface IChildProduct {
2908
- product: Product;
2909
- relationType: PackageProductsRelationTypeEnum;
2910
- timePeriod?: AddonTimePeriodEnum;
3009
+ export declare enum DayOfWeekEnum {
3010
+ SUNDAY = 0,
3011
+ MONDAY = 1,
3012
+ TUESDAY = 2,
3013
+ WEDNESDAY = 3,
3014
+ THURSDAY = 4,
3015
+ FRIDAY = 5,
3016
+ SATURDAY = 6
2911
3017
  }
2912
- export interface ISeasonAttendeeInfo {
2913
- applicationAnswers: Answer[];
2914
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2915
- invoices: Order[];
2916
- payments: Invoice[];
2917
- products: Product[];
2918
- redeemNext: ProductsUsers;
3018
+ export declare enum ActionTypesEnum {
3019
+ CREATE = "create",
3020
+ READ = "read",
3021
+ UPDATE = "update",
3022
+ DELETE = "delete"
2919
3023
  }
2920
- export interface ISeasonAttendeeListInfo {
2921
- userId: number;
2922
- userFirstName: string;
2923
- userLastName: string;
2924
- userGender: number;
2925
- userBirthDate: Date;
2926
- userProfilePicUrl: string;
2927
- customerId: number;
2928
- customerEmail: string;
2929
- paymentStatus: string;
2930
- productName: string;
2931
- punchCard: boolean;
3024
+ export declare enum ActionSourcePlatformEnum {
3025
+ ADMIN = "admin",
3026
+ BACKOFFICE = "backoffice",
3027
+ CONSUMER = "consumer"
2932
3028
  }
2933
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2934
- segmentType: ResourceNameTypeEnum;
2935
- participantRegisteredDate?: string;
3029
+ export declare enum RolesEnum {
3030
+ ORG_ADMIN = "organizationAdmin",
3031
+ BOND_ADMIN = "bondAdmin"
2936
3032
  }
2937
- export declare class EventAsSeasonSegment extends Event {
2938
- segmentType: ResourceNameTypeEnum;
2939
- participantRegisteredDate?: string;
3033
+ export declare enum SeasonPoolStatusEnum {
3034
+ IN_POOL = 5,
3035
+ ASSIGNED = 1,
3036
+ QUIT = 2,
3037
+ SUSPENDED = 3,
3038
+ INACTIVE = 4
2940
3039
  }
2941
- export interface ITokenResonse {
2942
- token: string;
3040
+ export declare enum AmenitiesEnum {
3041
+ HEAT = 1,
3042
+ AC = 2,
3043
+ WIFI = 3,
3044
+ RESTROOMS = 4,
3045
+ DRINKING_FOUNTAIN = 5,
3046
+ PARKING = 6,
3047
+ CONCESSIONS = 7,
3048
+ SHELTER = 8,
3049
+ PORTABLE_RESTROOMS = 9,
3050
+ LIGHTS = 10,
3051
+ LOCKER_ROOM = 11,
3052
+ PAID_PARKING = 12,
3053
+ ACCESSIBLE = 13
2943
3054
  }
2944
- export interface IStripeBondInvoices {
2945
- paidStripePaymentIntent: Stripe.PaymentIntent;
2946
- bondPaidInvoice: Invoice;
2947
- order?: Order;
2948
- customer?: Customer;
3055
+ export declare enum ResourceSubTypeEnum {
3056
+ COURT = "court",
3057
+ FIELD = "field",
3058
+ ROOM = "room",
3059
+ DIAMOND = "diamond",
3060
+ RINK = "rink",
3061
+ STUDIO = "studio",
3062
+ POOL = "pool",
3063
+ BATTING_CAGE = "batting cage",
3064
+ SHELTER = "shelter",
3065
+ GOLF_SIMULATOR = "golf simulator"
2949
3066
  }
2950
- export interface IPartialPaymentData {
2951
- purchasingUserId: number;
2952
- paymentData: PurchasePaymentDto;
2953
- amountToPay: number;
3067
+ export declare enum ResourceTypeEnum {
3068
+ SPACE = "space"
2954
3069
  }
2955
- export interface IPayment {
2956
- id: number;
2957
- total: number;
2958
- paymentMethod: PaymentMethodTypeEnum;
2959
- status: PaymentStatusEnum;
2960
- createdAt: Date;
2961
- invoices: number[];
3070
+ export declare enum ResourceAgesEnum {
3071
+ ADULTS = "adults",
3072
+ CHILDREN = "children"
2962
3073
  }
2963
- export interface IPaginationData<T> {
2964
- meta: {
2965
- totalItems: number;
2966
- itemsPerPage: number;
2967
- totalPages: number;
2968
- currentPage: number;
2969
- };
2970
- data: T[];
3074
+ export declare enum SpacePropertiesEnum {
3075
+ OUTDOOR = "outdoor",
3076
+ INDOOR = "indoor"
2971
3077
  }
2972
- export interface IPricesOfProductsResults {
2973
- productId: number;
2974
- userId: number;
2975
- price: number;
2976
- groupId?: number;
2977
- groupName?: string;
2978
- originalPrice?: number;
2979
- priceWithoutTax: number;
2980
- tax: number;
2981
- isTaxInclusive: boolean;
3078
+ export declare enum SurfacesEnum {
3079
+ GRASS = "grass",
3080
+ TURF = "turf",
3081
+ FIELD_TURF = "fieldTurf",
3082
+ ASTRO_TURF = "astroTurf",
3083
+ HARDWOOD = "hardwood",
3084
+ ASPHALT = "asphalt",
3085
+ SAND = "sand",
3086
+ ICE = "ice",
3087
+ SPORT_COURT = "sportCourt"
2982
3088
  }
2983
- export interface IPaymentMethodToFundLeft {
2984
- paymentType: PaymentMethodTypeEnum;
2985
- paymentMethodId: string;
2986
- fundLeft: number;
2987
- ccLast4?: string;
2988
- ccBrand?: string;
3089
+ export declare enum RegistrationConstraintPeriodTypeEnum {
3090
+ MINUTES = "minutes",
3091
+ DAYS = "days"
2989
3092
  }
2990
- export interface IVariantsAndTitle {
2991
- title: VariantTitle;
2992
- variants: Variant[];
3093
+ export declare enum RegistrationWindowStatusEnum {
3094
+ NOT_OPEN_YET = "not_opened_yet",
3095
+ OPEN = "open",
3096
+ CLOSED = "closed"
2993
3097
  }
2994
- export interface IProgramSeasonActivityTimes {
2995
- dayOfWeek: number;
2996
- open: string;
2997
- close: string;
3098
+ export declare enum RegistrationValidationStatusEnum {
3099
+ FULL = "full",
3100
+ ALREADY_REGISTERED = "registered",
3101
+ AVAILABLE = "available",
3102
+ NOT_OPEN_YET = "not opened",
3103
+ ALREADY_CLOSED = "closed",
3104
+ NO_PRODUCT_FOUND = "no-product-found"
2998
3105
  }
2999
- export interface IProgramSeasonActivityTimesAsDates {
3000
- date: string;
3001
- startTime: string;
3002
- endTime: string;
3106
+ export declare enum DiscountMethodsEnum {
3107
+ PERCENT = "percent",
3108
+ AMOUNT = "amount"
3003
3109
  }
3004
- export interface IBlockedDates {
3005
- name: string;
3006
- startDate: Date;
3007
- endDate: Date;
3110
+ export declare enum UserAuthorizationsTypeEnum {
3111
+ ORGANIZATION = "organization"
3008
3112
  }
3009
- export interface ISingleMemberForRenewal {
3010
- member_id: number;
3011
- member_membershipId: number;
3012
- member_userId: number;
3013
- member_nextPaymentMethodId?: string;
3014
- member_nextPaymentType?: PaymentMethodTypeEnum;
3015
- member_answerTitleIds?: number[];
3016
- member_organizationId: number;
3017
- line_paidAmount: number;
3018
- line_productId: number;
3019
- order_payingUserId: number;
3020
- order_paymentMethodId: string;
3021
- order_paymentType: PaymentMethodTypeEnum;
3022
- endDate: Date;
3023
- membership_name: string;
3024
- user_firstName: string;
3025
- user_lastName: string;
3026
- user_email: string;
3113
+ export declare enum OrganizationLocaleDateEnum {
3114
+ USA = "USA"
3027
3115
  }
3028
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3029
- package_parentProductId: number;
3030
- line2_paidAmount: number;
3031
- familyid: number;
3032
- order_id: number;
3116
+ export declare enum DateTimeFormatsEnum {
3117
+ API_DATE = "YYYY/MM/DD",
3118
+ API_TIME = "HH:mm:ss"
3033
3119
  }
3034
- export interface IResourceRegistrationData {
3035
- id: number;
3036
- resourceType: ResourceNameTypeEnum;
3037
- openNumDays?: number;
3038
- openNumMinutes?: number;
3039
- openTime?: string;
3040
- closeNumDays?: number;
3041
- closeNumMinutes?: number;
3042
- closeTime?: string;
3043
- registrationWindowStatus?: RegistrationWindowStatusEnum;
3120
+ export declare enum SlotTypeEnum {
3121
+ EXTERNAL = "external",
3122
+ INTERNAL = "internal",
3123
+ MAINTENANCE = "maintenance",
3124
+ CUSTOM = "custom"
3044
3125
  }
3045
- export interface IResourceDataForConstraintsCalc {
3046
- id: number;
3047
- startDate: string;
3048
- startTime: string;
3126
+ export declare enum PlatformsEnum {
3127
+ CONSUMER = "consumer",
3128
+ BO = "backoffice",
3129
+ MOBILE = "mobile",
3130
+ CRON = "cron"
3049
3131
  }
3050
- export interface IRegistrationConstraintsSetting {
3051
- numDays?: number;
3052
- numMinutes?: number;
3132
+ export declare enum ShiftStatusEnum {
3133
+ OPEN = "open",
3134
+ CLOSED = "closed",
3135
+ MANAGMENT_CLOSED = "closed_by_manager",
3136
+ RECONCILED = "reconciled"
3053
3137
  }
3054
- export interface IAttendeeDataToNotify {
3055
- firstName: string;
3056
- lastName: string;
3057
- email: string;
3058
- sessionName: string;
3059
- parentSessionName?: string;
3060
- organizationName: string;
3061
- programName: string;
3138
+ export declare enum EventStatusEnum {
3139
+ OPEN = 1,
3140
+ DRAFT = 2,
3141
+ FULL = 3,
3142
+ CANCELLED = 4,
3143
+ CLOSED = 5,
3144
+ DELETED = 6
3062
3145
  }
3063
- export interface IEventInSchedule {
3064
- eventId: number;
3065
- eventName: string;
3066
- eventStartDate: string;
3067
- eventEndDate: string;
3068
- eventStartTime: string;
3069
- eventEndTime: string;
3070
- programId: number;
3071
- programName: string;
3072
- programType: ProgramTypesEnum;
3073
- sessionId: number;
3074
- sessionName: string;
3075
- sports: number;
3076
- spaces: {
3077
- spaceId: number;
3078
- spaceName: string;
3079
- }[];
3080
- status?: RegistrationValidationStatusEnum;
3146
+ export declare enum ReservationTypeEnum {
3147
+ RENTAL = "rental",
3148
+ PROGRAM = "program",
3149
+ MAINTENANCE = "maintenance",
3150
+ CUSTOM = "custom"
3081
3151
  }
3082
- export interface ISlotInSchedule {
3083
- facilityId: number;
3084
- facilityName: string;
3085
- spaces: ISpaceWithSlots[];
3152
+ export declare enum SlotDurationTypeEnum {
3153
+ DATES = "dates",
3154
+ ALL_DAY = "all day",
3155
+ DURATION = "duration"
3086
3156
  }
3087
- export interface ISpaceWithSlots {
3088
- id: number;
3089
- name: string;
3090
- slots: ISlotReservationData[];
3157
+ export declare enum DurationUnitTypesEnum {
3158
+ MINUTES = "minutes",
3159
+ HOURS = "hours"
3091
3160
  }
3092
- export interface ISlotReservationData {
3093
- reservationId: number;
3094
- reservationName: string;
3095
- date: string;
3096
- startTime: string;
3097
- endTime: string;
3098
- notes: string;
3099
- spaceId: number;
3100
- isRental: boolean;
3101
- slotType: SlotTypeEnum;
3102
- slotId: number;
3103
- eventId: number;
3161
+ export declare enum FrequencyEnum {
3162
+ NONE = "none",
3163
+ WEEKLY = "weekly",
3164
+ DAILY = "daily",
3165
+ MONTHLY = "monthly",
3166
+ YEARLY = "yearly"
3104
3167
  }
3105
- export interface IRawEventInSchedule extends IEventInSchedule {
3106
- parentSessionId: number;
3107
- parentSessionName: string;
3108
- eventTimezone: string;
3109
- maxParticipants: number;
3110
- maxMaleParticipants: number;
3111
- maxFemaleParticipants: number;
3112
- isPunchCard: boolean;
3168
+ export declare enum MaintenanceTimingEnum {
3169
+ BEFORE = 1,
3170
+ AFTER = 2,
3171
+ AT_THE_BEGINING = 3,
3172
+ AT_THE_END = 4
3113
3173
  }
3114
- export interface IBasicSpaceAndSlotCreator {
3115
- id: number;
3116
- name: string;
3117
- bookingCreatorId: number;
3174
+ export declare enum CreatorTypeEnum {
3175
+ SPACE = "space",
3176
+ PROGRAM_SEASON = "program_season"
3118
3177
  }
3119
- export interface IRawSlotInSchedule {
3120
- startDate: string;
3121
- endDate: string;
3122
- startTime: string;
3123
- endTime: string;
3124
- reservationId: number;
3125
- eventTitle: string;
3126
- publicNotes: string;
3127
- spaceId: number;
3128
- creatorType: ResourceNameTypeEnum;
3129
- slotType: SlotTypeEnum;
3130
- slotId: number;
3131
- eventId: number;
3178
+ export declare enum UpdatePricesTypeEnum {
3179
+ INDIVIDUAL = "indvidual",
3180
+ CATEGORY = "category",
3181
+ GLOBAL = "global"
3132
3182
  }
3133
- export interface IPurchasedResourcesRaw {
3134
- purchasedId: number;
3135
- purchasedProductUserId: number;
3136
- purchasedResourceId: number;
3137
- purchasedResourceType: ResourceNameTypeEnum;
3138
- purchasedStatus: PurchasedResourceStatusEnum;
3139
- pUserId: number;
3140
- pUserPaymentStatus: PaymentStatusEnum;
3141
- pUserProductId: number;
3142
- pUserProductName: string;
3143
- pUserProductPrice: number;
3144
- pUserProductPriceCurrency: string;
3145
- pUserProductQuantity: number;
3146
- pUserProductQuantityLeft: number;
3147
- pUserUserId: number;
3183
+ export declare enum BondDayOfWeekEnum {
3184
+ MONDAY = 2,
3185
+ TUESDAY = 3,
3186
+ WEDNESDAY = 4,
3187
+ THURSDAY = 5,
3188
+ FRIDAY = 6,
3189
+ SATURDAY = 7,
3190
+ SUNDAY = 8
3148
3191
  }
3149
- export interface IUsersPasses {
3150
- userId: number;
3151
- userFirstName: string;
3152
- userLastName: string;
3153
- organizationId: number;
3154
- programId: number;
3155
- programName: string;
3156
- sessionId: number;
3157
- sessionName: string;
3158
- productId: number;
3159
- productName: string;
3160
- productUserId: number;
3161
- purchaseDate: Date;
3162
- passesLeft: number;
3192
+ export declare enum ReservationMigrationStatusEnum {
3193
+ NEW = "new",
3194
+ NO = "no",
3195
+ YES = "yes"
3163
3196
  }
3164
- export interface ISessionsLandingPage {
3165
- sessionId: number;
3166
- name: string;
3167
- startDate: Date;
3168
- endDate: Date;
3169
- registrationStartDate: Date;
3170
- registrationEndDate: Date;
3171
- sport: SportsEnum;
3172
- minAge: string;
3173
- maxAge: string;
3174
- maxParticipants?: number;
3175
- gender: GenderEnum;
3176
- activityTimes: ActivityTimes[];
3177
- earlyRegistrationStartDate?: Date;
3178
- earlyRegistrationEndDate?: Date;
3179
- lateRegistrationStartDate?: Date;
3180
- lateRegistrationEndDate?: Date;
3181
- attendeeCount?: number;
3182
- segmentsOrEvents: 'segment' | 'event';
3197
+ export declare enum ProductPackageLevelEnum {
3198
+ HOUR = "hour",
3199
+ SLOT = "slot",
3200
+ RESERVATION = "reservation"
3183
3201
  }
3184
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3185
- hasRequiredMembership: boolean;
3186
- hasEntitledPricing: boolean;
3187
- lowestPrice?: number;
3188
- products?: ISessionLandingPageProduct[];
3202
+ export declare enum CancellationStatusEnum {
3203
+ IMMEDIATE = "immediate",
3204
+ AUTO_RENEWAL = "auto_renewal"
3189
3205
  }
3190
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3191
- hasRequiredMembership: boolean;
3192
- hasEntitledPricing: boolean;
3193
- products?: ISessionLandingPageProduct[];
3194
- segments?: Event[] | ProgramSeason[];
3195
- programName: string;
3196
- programId: number;
3197
- levelOfPlay: LevelOfPlayEnum[];
3198
- registrationConstraints: IResourceRegistrationData[];
3206
+ export declare enum SeasonScheduleStatusEnum {
3207
+ DRAFT = 0,
3208
+ PUBLISHED = 1
3199
3209
  }
3200
- export interface ISlimAddons {
3201
- addons?: {
3202
- id: number;
3203
- timePeriod: AddonTimePeriodEnum;
3204
- name: string;
3205
- productType?: ProductTypesEnum;
3206
- productSubType?: string;
3207
- }[];
3210
+ export declare enum FinancialStepEnum {
3211
+ VOID = "void",
3212
+ REFUND = "refund",
3213
+ NONE = "none",
3214
+ REFUND_AND_VOID = "refund-and-void",
3215
+ APPEND = "append"
3208
3216
  }
3209
- export interface ISessionLandingPageProduct extends ISlimAddons {
3210
- id: number;
3211
- name: string;
3212
- startDate?: Date;
3213
- endDate?: Date;
3214
- downpayment?: number;
3215
- description?: string;
3216
- prices: Price[];
3217
- productSubType?: ProductSubTypesEnum;
3218
- punchCard: boolean;
3219
- isAddon: boolean;
3220
- defaultPriceId?: number;
3217
+ export declare enum StripeAccountTypesEnum {
3218
+ STRIPE = "stripe",
3219
+ STRIPE_CUSTOM = "stripe:account:custom",
3220
+ STRIPE_CUSTOMER = "stripe:customer"
3221
3221
  }
3222
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3223
- destinationId?: string;
3224
- stripeCustomerId?: string;
3225
- fee?: number;
3222
+ export declare enum LinkedAccountStatus {
3223
+ PENDING = 1,
3224
+ ACTIVE = 2,
3225
+ PRE_PENDING = 3
3226
3226
  }
3227
- export interface IReservationCreatorData {
3228
- type: ResourceNameTypeEnum;
3229
- id: number;
3230
- organizationId: number;
3231
- startDate: string;
3232
- endDate: string;
3233
- sportId: number;
3227
+ export declare enum AddonParentTypeEnum {
3228
+ RESERVATION = "reservation",
3229
+ SLOT = "slot"
3234
3230
  }
3235
- export declare class ColumnNumericTransformer {
3236
- to(data: number): number;
3237
- from(data: string): number;
3231
+ export declare enum EEmailStatus {
3232
+ SENT = "sent",
3233
+ OPENED = "opened",
3234
+ PAID = "paid",
3235
+ CANCELED = "canceled"
3238
3236
  }
3239
- export declare function convertToNumber(data: string): number;
3240
3237
  export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3241
3238
  name?: string;
3242
3239
  genderStr?: string;
@@ -3353,6 +3350,10 @@ export declare class ImportedReservationDto {
3353
3350
  slots?: ImportedSlotDto[];
3354
3351
  addons?: ImportedSlotProductDto[];
3355
3352
  }
3353
+ export declare class Lock extends BondBaseEntity {
3354
+ name: string;
3355
+ locked?: Date;
3356
+ }
3356
3357
  export declare class GameSlots extends BondBaseEntity {
3357
3358
  entityType: string;
3358
3359
  entityId: number;
@@ -3366,11 +3367,6 @@ export declare class MatchParticipants extends BondBaseEntity {
3366
3367
  score: number | null;
3367
3368
  gameSlotId: number | null;
3368
3369
  }
3369
- export declare class Matches extends BondBaseEntity {
3370
- eventId: number | null;
3371
- status: number | null;
3372
- excludeStandings: boolean | null;
3373
- }
3374
3370
  export declare class RoundEvents extends BaseEntity {
3375
3371
  roundId: number;
3376
3372
  eventId: number;
@@ -3378,6 +3374,11 @@ export declare class RoundEvents extends BaseEntity {
3378
3374
  createdAt: Date;
3379
3375
  updatedAt: Date;
3380
3376
  }
3377
+ export declare class Matches extends BondBaseEntity {
3378
+ eventId: number | null;
3379
+ status: number | null;
3380
+ excludeStandings: boolean | null;
3381
+ }
3381
3382
  export declare class SeasonRounds extends BondBaseEntity {
3382
3383
  seasonId: number;
3383
3384
  ordinal?: number;
@@ -3389,9 +3390,16 @@ export declare class TeamEvents extends BondBaseEntity {
3389
3390
  eventId: number | null;
3390
3391
  status: number | null;
3391
3392
  }
3392
- export declare class Lock extends BondBaseEntity {
3393
+ export declare class CreateMonitorConfigDto {
3394
+ facilityId: number;
3393
3395
  name: string;
3394
- locked?: Date;
3396
+ code: string;
3397
+ config: any;
3398
+ }
3399
+ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3400
+ facilityId: number;
3401
+ code: string;
3402
+ config?: any;
3395
3403
  }
3396
3404
  export declare class ByOrganizationIdDto {
3397
3405
  organizationId: number;
@@ -3448,30 +3456,19 @@ export declare class Organization extends BondBaseEntity {
3448
3456
  brandings: OrganizationBranding[];
3449
3457
  brandingsV2?: OrganizationBranding[];
3450
3458
  }
3459
+ export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3460
+ mainAdminUserId?: number;
3461
+ }
3451
3462
  export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3452
3463
  key?: string;
3453
3464
  vaule?: string;
3454
3465
  version: number;
3455
3466
  organization: Organization;
3456
3467
  }
3457
- export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3458
- mainAdminUserId?: number;
3459
- }
3460
3468
  export declare class OrganizationUsers extends BondBaseEntity {
3461
3469
  organisationId: number | null;
3462
3470
  userId: number | null;
3463
3471
  }
3464
- export declare class CreateMonitorConfigDto {
3465
- facilityId: number;
3466
- name: string;
3467
- code: string;
3468
- config: any;
3469
- }
3470
- export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3471
- facilityId: number;
3472
- code: string;
3473
- config?: any;
3474
- }
3475
3472
  export declare class CustomerIdDto {
3476
3473
  customerId: number;
3477
3474
  }
@@ -3621,29 +3618,11 @@ export declare class VoidLineItemDto {
3621
3618
  isEdit?: boolean;
3622
3619
  amount?: number;
3623
3620
  }
3624
- export declare class ChangeRolePermissionsDto {
3625
- permissionIds: number[];
3626
- }
3627
- export declare class CreateRoleDto {
3628
- name: string;
3629
- }
3630
- export declare class Permission extends BondBaseEntity {
3631
- name: string;
3632
- deletedAt?: Date;
3633
- }
3634
- export declare class Role extends OrganizationConnectionBaseEntity {
3635
- name: string;
3636
- deletedAt?: Date;
3637
- permissions: Permission[];
3638
- usersRoles: UserRole[];
3639
- }
3640
- export declare class UserRole extends OrganizationConnectionBaseEntity {
3641
- deletedAt?: Date;
3642
- userId: number;
3643
- roleId: number;
3644
- role: Role;
3645
- user: User;
3621
+ export declare class ColumnNumericTransformer {
3622
+ to(data: number): number;
3623
+ from(data: string): number;
3646
3624
  }
3625
+ export declare function convertToNumber(data: string): number;
3647
3626
  export declare class LineItemDto {
3648
3627
  id?: number;
3649
3628
  orderId?: number;
@@ -4156,6 +4135,29 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
4156
4135
  changeLineItems?: LineItems[];
4157
4136
  updatedLineItem?: LineItems;
4158
4137
  }
4138
+ export declare class Permission extends BondBaseEntity {
4139
+ name: string;
4140
+ deletedAt?: Date;
4141
+ }
4142
+ export declare class Role extends OrganizationConnectionBaseEntity {
4143
+ name: string;
4144
+ deletedAt?: Date;
4145
+ permissions: Permission[];
4146
+ usersRoles: UserRole[];
4147
+ }
4148
+ export declare class UserRole extends OrganizationConnectionBaseEntity {
4149
+ deletedAt?: Date;
4150
+ userId: number;
4151
+ roleId: number;
4152
+ role: Role;
4153
+ user: User;
4154
+ }
4155
+ export declare class ChangeRolePermissionsDto {
4156
+ permissionIds: number[];
4157
+ }
4158
+ export declare class CreateRoleDto {
4159
+ name: string;
4160
+ }
4159
4161
  export declare class CloseShiftDto {
4160
4162
  closingCashAmount: number;
4161
4163
  }