@bondsports/types 0.0.181 → 0.0.183

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -9,6 +9,13 @@ export declare class BasicActivityTimesDto {
9
9
  availabilityStartDate?: string;
10
10
  availabilityEndDate?: string;
11
11
  }
12
+ export declare class FindBookingTypeSettingDto {
13
+ organizationId: number;
14
+ facilityId: number;
15
+ spaceId: number;
16
+ bookingDate: string;
17
+ bookingTime: string;
18
+ }
12
19
  export declare class QuestionAnswersDto {
13
20
  questionId: number;
14
21
  value: any;
@@ -20,13 +27,6 @@ export declare class UserAnswersDto {
20
27
  export declare class GetByQuestionnaireIdsDto {
21
28
  questionnaireIds: string;
22
29
  }
23
- export declare class FindBookingTypeSettingDto {
24
- organizationId: number;
25
- facilityId: number;
26
- spaceId: number;
27
- bookingDate: string;
28
- bookingTime: string;
29
- }
30
30
  export declare enum EConfigurationKeys {
31
31
  MAX_ALLOWED_PM_FAILURE = "max_allowed_pm_failure"
32
32
  }
@@ -34,6 +34,67 @@ export declare enum EFailedPaymentReasons {
34
34
  CARD_BLOCKED = "card_blocked_by_bond",
35
35
  UNKNOWN = "unknown"
36
36
  }
37
+ export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
38
+ membershipId: number;
39
+ }
40
+ export declare class ImportProductsFromDB {
41
+ buDate: string;
42
+ }
43
+ export declare class ImportCustomerFromCSV {
44
+ fileName: string;
45
+ startIndex?: number;
46
+ }
47
+ export declare class ImportProgramsFileDto extends ImportCustomerFromCSV {
48
+ resolveInvoices: string;
49
+ }
50
+ export declare class ImportDashCustomerDto extends ImportCustomerFromCSV {
51
+ membershipId: number;
52
+ onlyDashIds: string;
53
+ }
54
+ export declare class ImportRentalsFromCSV extends ImportCustomerFromCSV {
55
+ facilityId: number;
56
+ }
57
+ export declare class ByOrganizationIdCustomerIdDto extends ByOrganizationIdDto {
58
+ customerId: number;
59
+ }
60
+ export declare class ByOrganizationIdUserIdDto extends ByOrganizationIdDto {
61
+ userId: number;
62
+ }
63
+ export declare class FindCustomersByOrganizationIdFiltersDto extends PaginationQuery {
64
+ nameSearch?: string;
65
+ fuzzy?: string;
66
+ customerType?: CustomerTypeEnum;
67
+ customersIds?: string;
68
+ }
69
+ export declare class AddCustomerNotesDto {
70
+ customerNotes: CustomerNoteDto[];
71
+ }
72
+ export declare class CustomerNoteDto {
73
+ id?: number;
74
+ description: string;
75
+ pinToTop?: boolean;
76
+ }
77
+ export declare class AddEditCustomerDto {
78
+ firstName?: string;
79
+ lastName?: string;
80
+ entityId?: number;
81
+ entityType?: CustomerTypeEnum;
82
+ email?: string;
83
+ color?: string;
84
+ street?: string;
85
+ city?: string;
86
+ state?: string;
87
+ zip?: string;
88
+ phoneNumber?: string;
89
+ mainMediaId?: number;
90
+ creatorId?: number;
91
+ creatorType?: ResourceNameTypeEnum;
92
+ userCreatorId?: number;
93
+ gender?: GenderEnum;
94
+ birthDate?: string;
95
+ emergencyContactName?: string;
96
+ emergencyContactPhone?: string;
97
+ }
37
98
  export declare class FindEventByIdDto {
38
99
  eventId: number;
39
100
  organizationId: number;
@@ -134,67 +195,6 @@ export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
134
195
  isWaiverSigned?: string;
135
196
  statuses?: string;
136
197
  }
137
- export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
138
- membershipId: number;
139
- }
140
- export declare class ImportProductsFromDB {
141
- buDate: string;
142
- }
143
- export declare class ImportCustomerFromCSV {
144
- fileName: string;
145
- startIndex?: number;
146
- }
147
- export declare class ImportProgramsFileDto extends ImportCustomerFromCSV {
148
- resolveInvoices: string;
149
- }
150
- export declare class ImportDashCustomerDto extends ImportCustomerFromCSV {
151
- membershipId: number;
152
- onlyDashIds: string;
153
- }
154
- export declare class ImportRentalsFromCSV extends ImportCustomerFromCSV {
155
- facilityId: number;
156
- }
157
- export declare class ByOrganizationIdCustomerIdDto extends ByOrganizationIdDto {
158
- customerId: number;
159
- }
160
- export declare class ByOrganizationIdUserIdDto extends ByOrganizationIdDto {
161
- userId: number;
162
- }
163
- export declare class FindCustomersByOrganizationIdFiltersDto extends PaginationQuery {
164
- nameSearch?: string;
165
- fuzzy?: string;
166
- customerType?: CustomerTypeEnum;
167
- customersIds?: string;
168
- }
169
- export declare class AddCustomerNotesDto {
170
- customerNotes: CustomerNoteDto[];
171
- }
172
- export declare class CustomerNoteDto {
173
- id?: number;
174
- description: string;
175
- pinToTop?: boolean;
176
- }
177
- export declare class AddEditCustomerDto {
178
- firstName?: string;
179
- lastName?: string;
180
- entityId?: number;
181
- entityType?: CustomerTypeEnum;
182
- email?: string;
183
- color?: string;
184
- street?: string;
185
- city?: string;
186
- state?: string;
187
- zip?: string;
188
- phoneNumber?: string;
189
- mainMediaId?: number;
190
- creatorId?: number;
191
- creatorType?: ResourceNameTypeEnum;
192
- userCreatorId?: number;
193
- gender?: GenderEnum;
194
- birthDate?: string;
195
- emergencyContactName?: string;
196
- emergencyContactPhone?: string;
197
- }
198
198
  export declare class AddressDto {
199
199
  city: string;
200
200
  state: string;
@@ -1010,9 +1010,9 @@ export declare class PartialPaymentAsUserDto {
1010
1010
  paymentMethodData: any;
1011
1011
  platform?: PlatformsEnum;
1012
1012
  }
1013
- export declare class ResourceDto {
1014
- type: ResourceNameTypeEnum;
1015
- id: number;
1013
+ export declare class ValidateParticipantDto {
1014
+ customerIds: number[];
1015
+ products: PurchaseProductDto[];
1016
1016
  }
1017
1017
  export declare class CreateResourceGroupDto {
1018
1018
  name: string;
@@ -1022,6 +1022,10 @@ export declare class CreateResourceGroupDto {
1022
1022
  }
1023
1023
  export declare class UpdateResourceGroupDto extends CreateResourceGroupDto {
1024
1024
  }
1025
+ export declare class ResourceDto {
1026
+ type: ResourceNameTypeEnum;
1027
+ id: number;
1028
+ }
1025
1029
  export declare class SpaceByIdDto {
1026
1030
  spaceId: number;
1027
1031
  }
@@ -1147,16 +1151,10 @@ export declare class Address extends BondBaseEntity {
1147
1151
  geo: any;
1148
1152
  deletedAt?: Date;
1149
1153
  }
1150
- export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1151
- questionnaireId: number;
1152
- userId?: number;
1153
- answers: Answer[];
1154
- questionnaire: Questionnaires;
1155
- }
1156
- export declare class AthleteSports extends BondBaseEntity {
1157
- athleteId: number | null;
1158
- sports: number | null;
1159
- levelOfPlay: LevelOfPlayEnum | null;
1154
+ export declare class Athlete extends BondBaseEntity {
1155
+ userId: number | null;
1156
+ metadata: object | null;
1157
+ athleteSports: AthleteSports[];
1160
1158
  }
1161
1159
  export declare class BlockedDate extends BondBaseEntity {
1162
1160
  entityType: ResourceNameTypeEnum;
@@ -1166,6 +1164,11 @@ export declare class BlockedDate extends BondBaseEntity {
1166
1164
  endDate: Date;
1167
1165
  deletedAt?: Date;
1168
1166
  }
1167
+ export declare class AthleteSports extends BondBaseEntity {
1168
+ athleteId: number | null;
1169
+ sports: number | null;
1170
+ levelOfPlay: LevelOfPlayEnum | null;
1171
+ }
1169
1172
  export declare class BondBaseEntity extends BaseEntity {
1170
1173
  id: number;
1171
1174
  createdAt: Date;
@@ -1392,10 +1395,6 @@ export declare class FacilityToResource extends BondBaseEntity {
1392
1395
  facilityId: number;
1393
1396
  resourceId: number;
1394
1397
  }
1395
- export declare class FamilyAccount extends BondBaseEntity {
1396
- name: string | null;
1397
- userInFamilyAccounts: UserInFamilyAccount[];
1398
- }
1399
1398
  export declare class FutureInstallment extends OrganizationConnectionBaseEntity {
1400
1399
  userId: number;
1401
1400
  invoiceId: number;
@@ -1407,6 +1406,13 @@ export declare class FutureInstallment extends OrganizationConnectionBaseEntity
1407
1406
  chargedAt?: Date;
1408
1407
  originalPlannedDate?: Date;
1409
1408
  }
1409
+ export declare class FamilyAccount extends BondBaseEntity {
1410
+ name: string | null;
1411
+ userInFamilyAccounts: UserInFamilyAccount[];
1412
+ }
1413
+ export declare class GlCodes extends OrganizationConnectionBaseEntity {
1414
+ code: string;
1415
+ }
1410
1416
  export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
1411
1417
  groupId: number;
1412
1418
  itemId: number;
@@ -1420,8 +1426,10 @@ export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity
1420
1426
  discountMethod?: DiscountMethodsEnum;
1421
1427
  discountValue?: number;
1422
1428
  }
1423
- export declare class GlCodes extends OrganizationConnectionBaseEntity {
1424
- code: string;
1429
+ export declare class GroupsInDivisions extends BondBaseEntity {
1430
+ groupId: number;
1431
+ divisionId: number;
1432
+ deletedAt?: Date;
1425
1433
  }
1426
1434
  export declare class Group extends BondBaseEntity {
1427
1435
  name: string;
@@ -1439,11 +1447,6 @@ export declare class Group extends BondBaseEntity {
1439
1447
  members: ISeasonAttendeeInfo[];
1440
1448
  users: User[];
1441
1449
  }
1442
- export declare class GroupsInDivisions extends BondBaseEntity {
1443
- groupId: number;
1444
- divisionId: number;
1445
- deletedAt?: Date;
1446
- }
1447
1450
  export declare class Invoice extends BondBaseEntity {
1448
1451
  invoiceId: string | null;
1449
1452
  price: number | null;
@@ -1479,6 +1482,14 @@ export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1479
1482
  mailParams?: any;
1480
1483
  memo?: string;
1481
1484
  }
1485
+ export declare class InvoiceToPayment extends BondBaseEntity {
1486
+ invoiceId: number;
1487
+ paymentId: number;
1488
+ invoice: Invoice;
1489
+ payment: Payment;
1490
+ paidAmount?: number;
1491
+ currency: CurrencyEnum;
1492
+ }
1482
1493
  export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
1483
1494
  content: string;
1484
1495
  creatingUserId: number;
@@ -1488,14 +1499,6 @@ export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
1488
1499
  invoiceId: number;
1489
1500
  invoice: Invoice;
1490
1501
  }
1491
- export declare class InvoiceToPayment extends BondBaseEntity {
1492
- invoiceId: number;
1493
- paymentId: number;
1494
- invoice: Invoice;
1495
- payment: Payment;
1496
- paidAmount?: number;
1497
- currency: CurrencyEnum;
1498
- }
1499
1502
  export declare class League extends OrganizationConnectionBaseEntity {
1500
1503
  name: string | null;
1501
1504
  description: string | null;
@@ -1694,6 +1697,12 @@ export declare class Membership extends OrganizationConnectionBaseEntity {
1694
1697
  isAutoRenew?: boolean;
1695
1698
  purchasedResources: PurchasedResource[];
1696
1699
  }
1700
+ export declare class NotificationSubscriptions extends OrganizationConnectionBaseEntity {
1701
+ email: string | null;
1702
+ notificationType: NotificationTypeEnum | null;
1703
+ resourceId: number | null;
1704
+ resourceType: string | null;
1705
+ }
1697
1706
  export declare class MembershipMember extends OrganizationConnectionBaseEntity {
1698
1707
  membership: Membership;
1699
1708
  membershipId: number;
@@ -1714,12 +1723,6 @@ export declare class MembershipMember extends OrganizationConnectionBaseEntity {
1714
1723
  cancellationStatus?: CancellationStatusEnum;
1715
1724
  isImported?: boolean;
1716
1725
  }
1717
- export declare class NotificationSubscriptions extends OrganizationConnectionBaseEntity {
1718
- email: string | null;
1719
- notificationType: NotificationTypeEnum | null;
1720
- resourceId: number | null;
1721
- resourceType: string | null;
1722
- }
1723
1726
  export declare class OpeningTime extends OrganizationConnectionBaseEntity {
1724
1727
  id: number;
1725
1728
  dayOfWeek: number;
@@ -1734,6 +1737,12 @@ export declare class OpeningTime extends OrganizationConnectionBaseEntity {
1734
1737
  export declare class OrganizationConnectionBaseEntity extends BondBaseEntity {
1735
1738
  organizationId: number;
1736
1739
  }
1740
+ export declare class PasswordReset extends BondBaseEntity {
1741
+ token: string | null;
1742
+ userId: number | null;
1743
+ validUntil: Date | null;
1744
+ active: boolean | null;
1745
+ }
1737
1746
  export declare class PackageV1 extends BondBaseEntity {
1738
1747
  name?: string;
1739
1748
  description?: string;
@@ -1778,12 +1787,6 @@ export declare class Payment extends OrganizationConnectionBaseEntity {
1778
1787
  refundReasonId?: number;
1779
1788
  refundNote?: string;
1780
1789
  }
1781
- export declare class PasswordReset extends BondBaseEntity {
1782
- token: string | null;
1783
- userId: number | null;
1784
- validUntil: Date | null;
1785
- active: boolean | null;
1786
- }
1787
1790
  export declare class PaymentFailConfig extends OrganizationConnectionBaseEntity {
1788
1791
  failureIndex: number;
1789
1792
  waitingDays: number;
@@ -1794,12 +1797,6 @@ export declare class PaymentFailure extends OrganizationConnectionBaseEntity {
1794
1797
  reason: EFailedPaymentReasons;
1795
1798
  errorMessage: string;
1796
1799
  }
1797
- export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1798
- paymentPlanId: number;
1799
- paymentDate: Date;
1800
- deletedAt?: Date;
1801
- paymentPlan: ProductPaymentPlan;
1802
- }
1803
1800
  export declare class PaymentNote extends OrganizationConnectionBaseEntity {
1804
1801
  content: string;
1805
1802
  creatingUserId: number;
@@ -1844,21 +1841,6 @@ export declare class Price extends OrganizationConnectionBaseEntity {
1844
1841
  discountValue?: number;
1845
1842
  taxIncludedPrice?: number;
1846
1843
  }
1847
- export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1848
- parentProductId: number;
1849
- childProductId: number;
1850
- relationType: PackageProductsRelationTypeEnum;
1851
- timePeriod: AddonTimePeriodEnum;
1852
- deletedAt?: Date;
1853
- productResource: ProductResource;
1854
- childProduct: Product;
1855
- parentProduct: Product;
1856
- price: number;
1857
- isFlatPrice: boolean;
1858
- durationMinutes?: number;
1859
- durationDays?: number;
1860
- level?: ProductPackageLevelEnum;
1861
- }
1862
1844
  export declare class Product extends OrganizationConnectionBaseEntity {
1863
1845
  name: string;
1864
1846
  quantity: number;
@@ -1909,18 +1891,35 @@ export declare class Product extends OrganizationConnectionBaseEntity {
1909
1891
  activityTimes: ActivityTimes[];
1910
1892
  purchasedResources: PurchasedResource[];
1911
1893
  }
1912
- export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
1913
- productId: number;
1914
- maxMonths?: number;
1915
- dayOfMonth?: number;
1916
- name: string;
1894
+ export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1895
+ paymentPlanId: number;
1896
+ paymentDate: Date;
1917
1897
  deletedAt?: Date;
1918
- schedule: PaymentPlanSchedule[];
1919
- product?: Product;
1898
+ paymentPlan: ProductPaymentPlan;
1920
1899
  }
1921
- export declare class ProductToVariantTitle extends OrganizationConnectionBaseEntity {
1900
+ export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1901
+ parentProductId: number;
1902
+ childProductId: number;
1903
+ relationType: PackageProductsRelationTypeEnum;
1904
+ timePeriod: AddonTimePeriodEnum;
1905
+ deletedAt?: Date;
1906
+ productResource: ProductResource;
1907
+ childProduct: Product;
1908
+ parentProduct: Product;
1909
+ price: number;
1910
+ isFlatPrice: boolean;
1911
+ durationMinutes?: number;
1912
+ durationDays?: number;
1913
+ level?: ProductPackageLevelEnum;
1914
+ }
1915
+ export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
1922
1916
  productId: number;
1923
- variantTitleId: number;
1917
+ maxMonths?: number;
1918
+ dayOfMonth?: number;
1919
+ name: string;
1920
+ deletedAt?: Date;
1921
+ schedule: PaymentPlanSchedule[];
1922
+ product?: Product;
1924
1923
  }
1925
1924
  export declare class ProductResource extends OrganizationConnectionBaseEntity {
1926
1925
  productId: number;
@@ -1933,6 +1932,10 @@ export declare class ProductResource extends OrganizationConnectionBaseEntity {
1933
1932
  productPackages: ProductPackage[];
1934
1933
  resourceName?: string;
1935
1934
  }
1935
+ export declare class ProductToVariantTitle extends OrganizationConnectionBaseEntity {
1936
+ productId: number;
1937
+ variantTitleId: number;
1938
+ }
1936
1939
  export declare class ProductToVariant extends OrganizationConnectionBaseEntity {
1937
1940
  productId: number;
1938
1941
  variantId: number;
@@ -2068,6 +2071,24 @@ export declare class PurchasedResource extends OrganizationConnectionBaseEntity
2068
2071
  product?: Product;
2069
2072
  event?: Event;
2070
2073
  }
2074
+ export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2075
+ title: string | null;
2076
+ answerTitle: AnswerTitle;
2077
+ }
2078
+ export declare class Questions extends BondBaseEntity {
2079
+ questionType: string | null;
2080
+ ordinal: number | null;
2081
+ pageOrdinal: number | null;
2082
+ isActive: boolean | null;
2083
+ isMandatory: boolean | null;
2084
+ metaData: any | null;
2085
+ question: string | null;
2086
+ creatorId: number | null;
2087
+ creatorType: string | null;
2088
+ userCreatorId: number | null;
2089
+ ownerId: number | null;
2090
+ questionnaireId: number | null;
2091
+ }
2071
2092
  export declare class RefundReason extends OrganizationConnectionBaseEntity {
2072
2093
  reason: string;
2073
2094
  ordinal: number;
@@ -2084,10 +2105,6 @@ export declare class RegistrationConstraint extends OrganizationConnectionBaseEn
2084
2105
  closeTime?: string;
2085
2106
  deletedAt?: Date;
2086
2107
  }
2087
- export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2088
- title: string | null;
2089
- answerTitle: AnswerTitle;
2090
- }
2091
2108
  export declare class Reservations extends OrganizationConnectionBaseEntity {
2092
2109
  name?: string;
2093
2110
  description?: string;
@@ -2120,27 +2137,6 @@ export declare class Reservations extends OrganizationConnectionBaseEntity {
2120
2137
  publicNotes?: string;
2121
2138
  slots?: Slot[];
2122
2139
  }
2123
- export declare class Questions extends BondBaseEntity {
2124
- questionType: string | null;
2125
- ordinal: number | null;
2126
- pageOrdinal: number | null;
2127
- isActive: boolean | null;
2128
- isMandatory: boolean | null;
2129
- metaData: any | null;
2130
- question: string | null;
2131
- creatorId: number | null;
2132
- creatorType: string | null;
2133
- userCreatorId: number | null;
2134
- ownerId: number | null;
2135
- questionnaireId: number | null;
2136
- }
2137
- export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2138
- name: string;
2139
- facilityId: number;
2140
- parentSlotId: number;
2141
- childrenSlotIds: number[];
2142
- deletedAt?: Date;
2143
- }
2144
2140
  export declare class Resource extends OrganizationConnectionBaseEntity {
2145
2141
  name: string;
2146
2142
  resourceType: ResourceTypeEnum;
@@ -2169,6 +2165,13 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
2169
2165
  purchasedResources: PurchasedResource[];
2170
2166
  linkSEO: string;
2171
2167
  }
2168
+ export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2169
+ name: string;
2170
+ facilityId: number;
2171
+ parentSlotId: number;
2172
+ childrenSlotIds: number[];
2173
+ deletedAt?: Date;
2174
+ }
2172
2175
  export declare class School extends BondBaseEntity {
2173
2176
  name: string | null;
2174
2177
  alias: string[] | null;
@@ -2296,6 +2299,15 @@ export declare class TeamInvite extends BondBaseEntity {
2296
2299
  tokenExpirationDate: Date;
2297
2300
  isUsed: boolean;
2298
2301
  }
2302
+ export declare class TeamMember extends BondBaseEntity {
2303
+ teamId: number | null;
2304
+ userId: number | null;
2305
+ paymentId: number | null;
2306
+ hasPaid: boolean | null;
2307
+ status: TeamMemberStatusEnum | null;
2308
+ role: TeamMemberRoleEnum;
2309
+ user: User;
2310
+ }
2299
2311
  export declare class User extends BondBaseEntity {
2300
2312
  firstName: string | null;
2301
2313
  lastName: string | null;
@@ -2335,21 +2347,20 @@ export declare class User extends BondBaseEntity {
2335
2347
  invoiceNotes: InvoiceNote[];
2336
2348
  paymentNotes: PaymentNote[];
2337
2349
  }
2338
- export declare class TeamMember extends BondBaseEntity {
2339
- teamId: number | null;
2340
- userId: number | null;
2341
- paymentId: number | null;
2342
- hasPaid: boolean | null;
2343
- status: TeamMemberStatusEnum | null;
2344
- role: TeamMemberRoleEnum;
2345
- user: User;
2346
- }
2347
2350
  export declare class UserAuthorizations extends BondBaseEntity {
2348
2351
  entityId: number | null;
2349
2352
  userId: number | null;
2350
2353
  entityType: UserAuthorizationsTypeEnum;
2351
2354
  user: User;
2352
2355
  }
2356
+ export declare class UserInFamilyAccount extends BondBaseEntity {
2357
+ familyAccountId: number;
2358
+ userId: number;
2359
+ isAdmin: boolean;
2360
+ user: User;
2361
+ familyAccount: FamilyAccount;
2362
+ deletedAt?: Date;
2363
+ }
2353
2364
  export declare class UserPaymentMethod extends BondBaseEntity {
2354
2365
  userId: number;
2355
2366
  failCount: number;
@@ -2381,433 +2392,73 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2381
2392
  membershipCollectionId?: string;
2382
2393
  programsCollectionId?: string;
2383
2394
  }
2384
- export interface IEntitlementTerms {
2385
- type: EntitlementTermsTypesEnum;
2386
- id?: number;
2387
- value?: string;
2388
- minValue?: string;
2389
- maxValue?: string;
2390
- }
2391
- export interface IQuestionAnswerObject {
2392
- questionId: number;
2393
- value: string;
2394
- }
2395
- export interface ILowestPriceForItem {
2396
- itemId: number;
2397
- itemType: ResourceNameTypeEnum;
2398
- groupId: number;
2399
- groupName?: string;
2400
- price: number;
2401
- overridesPrice: boolean;
2402
- }
2403
- export interface IResourcesAvailability {
2404
- resourceType: ResourceNameTypeEnum;
2405
- quantity: number;
2406
- resourcesIds: number[];
2407
- isPunchCard: boolean;
2408
- resources?: any[];
2409
- }
2410
- export interface IPackageResponse {
2411
- parentProduct: Product;
2412
- children: IChildProduct[];
2413
- }
2414
- export interface IChildProduct {
2415
- product: Product;
2416
- relationType: PackageProductsRelationTypeEnum;
2417
- timePeriod?: AddonTimePeriodEnum;
2418
- }
2419
- export interface ISeasonAttendeeInfo {
2420
- applicationAnswers: Answer[];
2421
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2422
- invoices: Invoice[];
2423
- payments: Payment[];
2424
- products: Product[];
2425
- redeemNext: ProductsUsers;
2426
- }
2427
- export interface ISeasonAttendeeListInfo {
2428
- userId: number;
2429
- userFirstName: string;
2430
- userLastName: string;
2431
- userGender: number;
2432
- userBirthDate: Date;
2433
- userProfilePicUrl: string;
2434
- customerId: number;
2435
- customerEmail: string;
2436
- paymentStatus: string;
2437
- productName: string;
2438
- punchCard: boolean;
2439
- }
2440
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2441
- segmentType: ResourceNameTypeEnum;
2442
- participantRegisteredDate?: string;
2395
+ export declare enum EntitlementTermsTypesEnum {
2396
+ QUESTION = "question",
2397
+ CITY = "city",
2398
+ MEMBERSHIP = "membership"
2443
2399
  }
2444
- export declare class EventAsSeasonSegment extends Event {
2445
- segmentType: ResourceNameTypeEnum;
2446
- participantRegisteredDate?: string;
2400
+ export declare enum ResourceNameTypeEnum {
2401
+ EVENT = "event",
2402
+ VENUE = "venue",
2403
+ TEAM = "team",
2404
+ LEAGUE = "league",
2405
+ USER = "user",
2406
+ ORGANIZATION = "organization",
2407
+ APP = "app",
2408
+ FEED = "feed",
2409
+ MATCH = "match",
2410
+ ROUND = "round",
2411
+ PORTAL = "portal",
2412
+ SEASON = "season",
2413
+ TOURNAMENT = "tournament",
2414
+ MEMBERSHIP = "membership",
2415
+ DIVISION = "division",
2416
+ GAMESLOT = "gameslot",
2417
+ SPACE = "space",
2418
+ RESERVATION = "reservation",
2419
+ INVOICE = "invoice",
2420
+ CUSTOMER = "customer",
2421
+ PACKAGE = "package",
2422
+ FACILITY = "facility",
2423
+ PROGRAM = "program",
2424
+ PROGRAM_SEASON = "program_season",
2425
+ PRODUCT = "product",
2426
+ GROUP = "group",
2427
+ VARIANT = "variant",
2428
+ SLOT = "slot",
2429
+ ADDON = "addon"
2447
2430
  }
2448
- export interface ITokenResonse {
2449
- token: string;
2431
+ export declare enum DirectBookingTypesEnum {
2432
+ DIRECT_FOR_ALL = "all",
2433
+ DIRECT_FOR_NONE = "none",
2434
+ DIRECT_VETTED_ONLY = "vetted_only",
2435
+ NO_SETTING = "no_setting"
2450
2436
  }
2451
- export interface IStripeBondInvoices {
2452
- paidStripePaymentIntent: Stripe.PaymentIntent;
2453
- bondPaidPayment: Payment;
2454
- invoice?: Invoice;
2455
- customer?: Customer;
2437
+ export declare enum GenderEnum {
2438
+ OTHER = 1,
2439
+ MALE = 2,
2440
+ FEMALE = 3
2456
2441
  }
2457
- export interface IPartialPaymentData {
2458
- purchasingUserId: number;
2459
- paymentData: PurchasePaymentDto;
2460
- amountToPay: number;
2442
+ export declare enum LevelOfPlayEnum {
2443
+ BEGINNER = 1,
2444
+ INTERMEDIATE = 2,
2445
+ ADVANCED = 3,
2446
+ SEMIPRO = 4,
2447
+ SPECTATOR = 5
2461
2448
  }
2462
- export interface IPayment {
2463
- id: number;
2464
- total: number;
2465
- paymentMethod: PaymentMethodTypeEnum;
2466
- status: PaymentStatusEnum;
2467
- createdAt: Date;
2468
- invoices: number[];
2449
+ export declare enum ProgramTypesEnum {
2450
+ LEAGUE = 0,
2451
+ TOURNAMENT = 1,
2452
+ CLASS = 2,
2453
+ CLINIC = 3,
2454
+ CAMP = 4,
2455
+ LESSON = 5,
2456
+ CLUB_TEAM = 6
2469
2457
  }
2470
- export interface IPaginationData<T> {
2471
- meta: {
2472
- totalItems: number;
2473
- itemsPerPage: number;
2474
- totalPages: number;
2475
- currentPage: number;
2476
- };
2477
- data: T[];
2478
- }
2479
- export interface IPricesOfProductsResults {
2480
- productId: number;
2481
- userId: number;
2482
- price: number;
2483
- groupId?: number;
2484
- groupName?: string;
2485
- originalPrice?: number;
2486
- priceWithoutTax: number;
2487
- tax: number;
2488
- isTaxInclusive: boolean;
2489
- }
2490
- export interface IPaymentMethodToFundLeft {
2491
- paymentType: PaymentMethodTypeEnum;
2492
- paymentMethodId: string;
2493
- fundLeft: number;
2494
- ccLast4?: string;
2495
- ccBrand?: string;
2496
- }
2497
- export interface IVariantsAndTitle {
2498
- title: VariantTitle;
2499
- variants: Variant[];
2500
- }
2501
- export interface IProgramSeasonActivityTimes {
2502
- dayOfWeek: number;
2503
- open: string;
2504
- close: string;
2505
- }
2506
- export interface IProgramSeasonActivityTimesAsDates {
2507
- date: string;
2508
- startTime: string;
2509
- endTime: string;
2510
- }
2511
- export interface IBlockedDates {
2512
- name: string;
2513
- startDate: Date;
2514
- endDate: Date;
2515
- }
2516
- export interface ISingleMemberForRenewal {
2517
- member_id: number;
2518
- member_membershipId: number;
2519
- member_userId: number;
2520
- member_nextPaymentMethodId?: string;
2521
- member_nextPaymentType?: PaymentMethodTypeEnum;
2522
- member_answerTitleIds?: number[];
2523
- member_organizationId: number;
2524
- product_productPrice: number;
2525
- product_productId: number;
2526
- invoice_payingUserId: number;
2527
- invoice_paymentMethodId: string;
2528
- invoice_paymentType: PaymentMethodTypeEnum;
2529
- endDate: Date;
2530
- membership_name: string;
2531
- user_firstName: string;
2532
- user_lastName: string;
2533
- user_email: string;
2534
- }
2535
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2536
- package_parentProductId: number;
2537
- product2_productPrice: number;
2538
- familyid: number;
2539
- invoice_id: number;
2540
- }
2541
- export interface IResourceRegistrationData {
2542
- id: number;
2543
- resourceType: ResourceNameTypeEnum;
2544
- openNumDays?: number;
2545
- openNumMinutes?: number;
2546
- openTime?: string;
2547
- closeNumDays?: number;
2548
- closeNumMinutes?: number;
2549
- closeTime?: string;
2550
- registrationWindowStatus?: RegistrationWindowStatusEnum;
2551
- }
2552
- export interface IResourceDataForConstraintsCalc {
2553
- id: number;
2554
- startDate: string;
2555
- startTime: string;
2556
- }
2557
- export interface IRegistrationConstraintsSetting {
2558
- numDays?: number;
2559
- numMinutes?: number;
2560
- }
2561
- export interface IAttendeeDataToNotify {
2562
- firstName: string;
2563
- lastName: string;
2564
- email: string;
2565
- sessionName: string;
2566
- parentSessionName?: string;
2567
- organizationName: string;
2568
- programName: string;
2569
- }
2570
- export interface IEventInSchedule {
2571
- eventId: number;
2572
- eventName: string;
2573
- eventStartDate: string;
2574
- eventEndDate: string;
2575
- eventStartTime: string;
2576
- eventEndTime: string;
2577
- programId: number;
2578
- programName: string;
2579
- programType: ProgramTypesEnum;
2580
- sessionId: number;
2581
- sessionName: string;
2582
- sports: number;
2583
- spaces: {
2584
- spaceId: number;
2585
- spaceName: string;
2586
- }[];
2587
- status?: RegistrationValidationStatusEnum;
2588
- }
2589
- export interface ISlotInSchedule {
2590
- facilityId: number;
2591
- facilityName: string;
2592
- spaces: ISpaceWithSlots[];
2593
- }
2594
- export interface ISpaceWithSlots {
2595
- id: number;
2596
- name: string;
2597
- slots: ISlotReservationData[];
2598
- }
2599
- export interface ISlotReservationData {
2600
- reservationId: number;
2601
- reservationName: string;
2602
- date: string;
2603
- startTime: string;
2604
- endTime: string;
2605
- notes: string;
2606
- spaceId: number;
2607
- isRental: boolean;
2608
- slotType: SlotTypeEnum;
2609
- slotId: number;
2610
- eventId: number;
2611
- isPrivate: boolean;
2612
- }
2613
- export interface IRawEventInSchedule extends IEventInSchedule {
2614
- parentSessionId: number;
2615
- parentSessionName: string;
2616
- eventTimezone: string;
2617
- maxParticipants: number;
2618
- maxMaleParticipants: number;
2619
- maxFemaleParticipants: number;
2620
- isPunchCard: boolean;
2621
- }
2622
- export interface IBasicSpaceAndSlotCreator {
2623
- id: number;
2624
- name: string;
2625
- bookingCreatorId: number;
2626
- }
2627
- export interface IRawSlotInSchedule {
2628
- startDate: string;
2629
- endDate: string;
2630
- startTime: string;
2631
- endTime: string;
2632
- reservationId: number;
2633
- eventTitle: string;
2634
- publicNotes: string;
2635
- spaceId: number;
2636
- creatorType: ResourceNameTypeEnum;
2637
- slotType: SlotTypeEnum;
2638
- slotId: number;
2639
- eventId: number;
2640
- isPrivate: boolean;
2641
- }
2642
- export interface IPurchasedResourcesRaw {
2643
- purchasedId: number;
2644
- purchasedProductUserId: number;
2645
- purchasedResourceId: number;
2646
- purchasedResourceType: ResourceNameTypeEnum;
2647
- purchasedStatus: PurchasedResourceStatusEnum;
2648
- pUserId: number;
2649
- pUserPaymentStatus: PaymentStatusEnum;
2650
- pUserProductId: number;
2651
- pUserProductName: string;
2652
- pUserProductPrice: number;
2653
- pUserProductPriceCurrency: string;
2654
- pUserProductQuantity: number;
2655
- pUserProductQuantityLeft: number;
2656
- pUserUserId: number;
2657
- }
2658
- export interface IUsersPasses {
2659
- userId: number;
2660
- userFirstName: string;
2661
- userLastName: string;
2662
- organizationId: number;
2663
- programId: number;
2664
- programName: string;
2665
- sessionId: number;
2666
- sessionName: string;
2667
- productId: number;
2668
- productName: string;
2669
- productUserId: number;
2670
- purchaseDate: Date;
2671
- passesLeft: number;
2672
- }
2673
- export interface ISessionsLandingPage {
2674
- sessionId: number;
2675
- name: string;
2676
- startDate: Date;
2677
- endDate: Date;
2678
- registrationStartDate: Date;
2679
- registrationEndDate: Date;
2680
- sport: SportsEnum;
2681
- minAge: string;
2682
- maxAge: string;
2683
- maxParticipants?: number;
2684
- gender: GenderEnum;
2685
- activityTimes: ActivityTimes[];
2686
- earlyRegistrationStartDate?: Date;
2687
- earlyRegistrationEndDate?: Date;
2688
- lateRegistrationStartDate?: Date;
2689
- lateRegistrationEndDate?: Date;
2690
- attendeeCount?: number;
2691
- segmentsOrEvents: 'segment' | 'event';
2692
- }
2693
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2694
- hasRequiredMembership: boolean;
2695
- hasEntitledPricing: boolean;
2696
- lowestPrice?: number;
2697
- products?: ISessionLandingPageProduct[];
2698
- }
2699
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2700
- hasRequiredMembership: boolean;
2701
- hasEntitledPricing: boolean;
2702
- products?: ISessionLandingPageProduct[];
2703
- segments?: Event[] | ProgramSeason[];
2704
- programName: string;
2705
- programId: number;
2706
- levelOfPlay: LevelOfPlayEnum[];
2707
- registrationConstraints: IResourceRegistrationData[];
2708
- }
2709
- export interface ISlimAddons {
2710
- addons?: {
2711
- id: number;
2712
- timePeriod: AddonTimePeriodEnum;
2713
- name: string;
2714
- productType?: ProductTypesEnum;
2715
- productSubType?: string;
2716
- }[];
2717
- }
2718
- export interface ISessionLandingPageProduct extends ISlimAddons {
2719
- id: number;
2720
- name: string;
2721
- startDate?: Date;
2722
- endDate?: Date;
2723
- downpayment?: number;
2724
- description?: string;
2725
- prices: Price[];
2726
- productSubType?: ProductSubTypesEnum;
2727
- punchCard: boolean;
2728
- isAddon: boolean;
2729
- defaultPriceId?: number;
2730
- }
2731
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2732
- destinationId?: string;
2733
- stripeCustomerId?: string;
2734
- fee?: number;
2735
- }
2736
- export interface IReservationCreatorData {
2737
- type: ResourceNameTypeEnum;
2738
- id: number;
2739
- organizationId: number;
2740
- startDate: string;
2741
- endDate: string;
2742
- sportId: number;
2743
- }
2744
- export declare enum EntitlementTermsTypesEnum {
2745
- QUESTION = "question",
2746
- CITY = "city",
2747
- MEMBERSHIP = "membership"
2748
- }
2749
- export declare enum ResourceNameTypeEnum {
2750
- EVENT = "event",
2751
- VENUE = "venue",
2752
- TEAM = "team",
2753
- LEAGUE = "league",
2754
- USER = "user",
2755
- ORGANIZATION = "organization",
2756
- APP = "app",
2757
- FEED = "feed",
2758
- MATCH = "match",
2759
- ROUND = "round",
2760
- PORTAL = "portal",
2761
- SEASON = "season",
2762
- TOURNAMENT = "tournament",
2763
- MEMBERSHIP = "membership",
2764
- DIVISION = "division",
2765
- GAMESLOT = "gameslot",
2766
- SPACE = "space",
2767
- RESERVATION = "reservation",
2768
- INVOICE = "invoice",
2769
- CUSTOMER = "customer",
2770
- PACKAGE = "package",
2771
- FACILITY = "facility",
2772
- PROGRAM = "program",
2773
- PROGRAM_SEASON = "program_season",
2774
- PRODUCT = "product",
2775
- GROUP = "group",
2776
- VARIANT = "variant",
2777
- SLOT = "slot",
2778
- ADDON = "addon"
2779
- }
2780
- export declare enum DirectBookingTypesEnum {
2781
- DIRECT_FOR_ALL = "all",
2782
- DIRECT_FOR_NONE = "none",
2783
- DIRECT_VETTED_ONLY = "vetted_only",
2784
- NO_SETTING = "no_setting"
2785
- }
2786
- export declare enum GenderEnum {
2787
- OTHER = 1,
2788
- MALE = 2,
2789
- FEMALE = 3
2790
- }
2791
- export declare enum LevelOfPlayEnum {
2792
- BEGINNER = 1,
2793
- INTERMEDIATE = 2,
2794
- ADVANCED = 3,
2795
- SEMIPRO = 4,
2796
- SPECTATOR = 5
2797
- }
2798
- export declare enum ProgramTypesEnum {
2799
- LEAGUE = 0,
2800
- TOURNAMENT = 1,
2801
- CLASS = 2,
2802
- CLINIC = 3,
2803
- CAMP = 4,
2804
- LESSON = 5,
2805
- CLUB_TEAM = 6
2806
- }
2807
- export declare enum ProgramSeasonTypesEnum {
2808
- ROUND_ROBIN = 1,
2809
- BRACKETS = 2,
2810
- CAMP_CLINIC_CLASS = 3
2458
+ export declare enum ProgramSeasonTypesEnum {
2459
+ ROUND_ROBIN = 1,
2460
+ BRACKETS = 2,
2461
+ CAMP_CLINIC_CLASS = 3
2811
2462
  }
2812
2463
  export declare enum SportsEnum {
2813
2464
  SOFTBALL = 1,
@@ -3148,156 +2799,509 @@ export declare enum UserAuthorizationsTypeEnum {
3148
2799
  export declare enum OrganizationLocaleDateEnum {
3149
2800
  USA = "USA"
3150
2801
  }
3151
- export declare enum DateTimeFormatsEnum {
3152
- API_DATE = "YYYY/MM/DD",
3153
- API_TIME = "HH:mm:ss",
3154
- DB_DATE = "YYYY-MM-DD"
2802
+ export declare enum DateTimeFormatsEnum {
2803
+ API_DATE = "YYYY/MM/DD",
2804
+ API_TIME = "HH:mm:ss",
2805
+ DB_DATE = "YYYY-MM-DD"
2806
+ }
2807
+ export declare enum SlotTypeEnum {
2808
+ EXTERNAL = "external",
2809
+ INTERNAL = "internal",
2810
+ MAINTENANCE = "maintenance",
2811
+ CUSTOM = "custom"
2812
+ }
2813
+ export declare enum PlatformsEnum {
2814
+ CONSUMER = "consumer",
2815
+ CONSUMER_CHECKOUT = "consumer_checkout",
2816
+ BO = "backoffice",
2817
+ MOBILE = "mobile",
2818
+ CRON = "cron"
2819
+ }
2820
+ export declare enum ShiftStatusEnum {
2821
+ OPEN = "open",
2822
+ CLOSED = "closed",
2823
+ MANAGMENT_CLOSED = "closed_by_manager",
2824
+ RECONCILED = "reconciled"
2825
+ }
2826
+ export declare enum EventStatusEnum {
2827
+ OPEN = 1,
2828
+ DRAFT = 2,
2829
+ FULL = 3,
2830
+ CANCELLED = 4,
2831
+ CLOSED = 5,
2832
+ DELETED = 6
2833
+ }
2834
+ export declare enum ReservationTypeEnum {
2835
+ RENTAL = "rental",
2836
+ PROGRAM = "program",
2837
+ MAINTENANCE = "maintenance",
2838
+ CUSTOM = "custom",
2839
+ INTERNAL = "internal"
2840
+ }
2841
+ export declare enum SlotDurationTypeEnum {
2842
+ DATES = "dates",
2843
+ ALL_DAY = "all day",
2844
+ DURATION = "duration"
2845
+ }
2846
+ export declare enum DurationUnitTypesEnum {
2847
+ MINUTES = "minutes",
2848
+ HOURS = "hours"
2849
+ }
2850
+ export declare enum FrequencyEnum {
2851
+ NONE = "none",
2852
+ WEEKLY = "weekly",
2853
+ DAILY = "daily",
2854
+ MONTHLY = "monthly",
2855
+ YEARLY = "yearly"
2856
+ }
2857
+ export declare enum MaintenanceTimingEnum {
2858
+ BEFORE = 1,
2859
+ AFTER = 2,
2860
+ AT_THE_BEGINING = 3,
2861
+ AT_THE_END = 4
2862
+ }
2863
+ export declare enum CreatorTypeEnum {
2864
+ SPACE = "space",
2865
+ PROGRAM_SEASON = "program_season",
2866
+ SEASON = "season"
2867
+ }
2868
+ export declare enum UpdatePricesTypeEnum {
2869
+ INDIVIDUAL = "indvidual",
2870
+ CATEGORY = "category",
2871
+ GLOBAL = "global"
2872
+ }
2873
+ export declare enum BondDayOfWeekEnum {
2874
+ MONDAY = 2,
2875
+ TUESDAY = 3,
2876
+ WEDNESDAY = 4,
2877
+ THURSDAY = 5,
2878
+ FRIDAY = 6,
2879
+ SATURDAY = 7,
2880
+ SUNDAY = 8
2881
+ }
2882
+ export declare enum ReservationMigrationStatusEnum {
2883
+ NEW = "new",
2884
+ NO = "no",
2885
+ YES = "yes"
2886
+ }
2887
+ export declare enum ProductPackageLevelEnum {
2888
+ HOUR = "hour",
2889
+ SLOT = "slot",
2890
+ RESERVATION = "reservation"
2891
+ }
2892
+ export declare enum CancellationStatusEnum {
2893
+ IMMEDIATE = "immediate",
2894
+ AUTO_RENEWAL = "auto_renewal"
2895
+ }
2896
+ export declare enum SeasonScheduleStatusEnum {
2897
+ DRAFT = 0,
2898
+ PUBLISHED = 1
2899
+ }
2900
+ export declare enum FinancialStepEnum {
2901
+ VOID = "void",
2902
+ REFUND = "refund",
2903
+ NONE = "none",
2904
+ REFUND_AND_VOID = "refund-and-void",
2905
+ APPEND = "append"
2906
+ }
2907
+ export declare enum StripeAccountTypesEnum {
2908
+ STRIPE = "stripe",
2909
+ STRIPE_CUSTOM = "stripe:account:custom",
2910
+ STRIPE_CUSTOMER = "stripe:customer"
2911
+ }
2912
+ export declare enum LinkedAccountStatus {
2913
+ PENDING = 1,
2914
+ ACTIVE = 2,
2915
+ PRE_PENDING = 3
2916
+ }
2917
+ export declare enum AddonParentTypeEnum {
2918
+ RESERVATION = "reservation",
2919
+ SLOT = "slot"
2920
+ }
2921
+ export declare enum EEmailStatus {
2922
+ SENT = "sent",
2923
+ OPENED = "opened",
2924
+ PAID = "paid",
2925
+ CANCELED = "canceled"
2926
+ }
2927
+ export declare enum PaymentSettingStatusEnum {
2928
+ ENABLED = 1,
2929
+ DISABLED_REDIRECT = 2,
2930
+ DISABLED_INFO_ONLY = 3,
2931
+ DISABLED_EMAIL = 4
2932
+ }
2933
+ export declare enum NotifyMethodEnum {
2934
+ EMAIL = "Email"
2935
+ }
2936
+ export declare enum EComparisonFilter {
2937
+ LessThan = "lt",
2938
+ GreaterOrEqualTo = "gte"
2939
+ }
2940
+ export interface IEntitlementTerms {
2941
+ type: EntitlementTermsTypesEnum;
2942
+ id?: number;
2943
+ value?: string;
2944
+ minValue?: string;
2945
+ maxValue?: string;
2946
+ }
2947
+ export interface IQuestionAnswerObject {
2948
+ questionId: number;
2949
+ value: string;
2950
+ }
2951
+ export interface ILowestPriceForItem {
2952
+ itemId: number;
2953
+ itemType: ResourceNameTypeEnum;
2954
+ groupId: number;
2955
+ groupName?: string;
2956
+ price: number;
2957
+ overridesPrice: boolean;
2958
+ }
2959
+ export interface IResourcesAvailability {
2960
+ resourceType: ResourceNameTypeEnum;
2961
+ quantity: number;
2962
+ resourcesIds: number[];
2963
+ isPunchCard: boolean;
2964
+ resources?: any[];
2965
+ }
2966
+ export interface IPackageResponse {
2967
+ parentProduct: Product;
2968
+ children: IChildProduct[];
2969
+ }
2970
+ export interface IChildProduct {
2971
+ product: Product;
2972
+ relationType: PackageProductsRelationTypeEnum;
2973
+ timePeriod?: AddonTimePeriodEnum;
2974
+ }
2975
+ export interface ISeasonAttendeeInfo {
2976
+ applicationAnswers: Answer[];
2977
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2978
+ invoices: Invoice[];
2979
+ payments: Payment[];
2980
+ products: Product[];
2981
+ redeemNext: ProductsUsers;
2982
+ }
2983
+ export interface ISeasonAttendeeListInfo {
2984
+ userId: number;
2985
+ userFirstName: string;
2986
+ userLastName: string;
2987
+ userGender: number;
2988
+ userBirthDate: Date;
2989
+ userProfilePicUrl: string;
2990
+ customerId: number;
2991
+ customerEmail: string;
2992
+ paymentStatus: string;
2993
+ productName: string;
2994
+ punchCard: boolean;
2995
+ }
2996
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2997
+ segmentType: ResourceNameTypeEnum;
2998
+ participantRegisteredDate?: string;
2999
+ }
3000
+ export declare class EventAsSeasonSegment extends Event {
3001
+ segmentType: ResourceNameTypeEnum;
3002
+ participantRegisteredDate?: string;
3003
+ }
3004
+ export interface ITokenResonse {
3005
+ token: string;
3006
+ }
3007
+ export interface IStripeBondInvoices {
3008
+ paidStripePaymentIntent: Stripe.PaymentIntent;
3009
+ bondPaidPayment: Payment;
3010
+ invoice?: Invoice;
3011
+ customer?: Customer;
3012
+ }
3013
+ export interface IPartialPaymentData {
3014
+ purchasingUserId: number;
3015
+ paymentData: PurchasePaymentDto;
3016
+ amountToPay: number;
3017
+ }
3018
+ export interface IPayment {
3019
+ id: number;
3020
+ total: number;
3021
+ paymentMethod: PaymentMethodTypeEnum;
3022
+ status: PaymentStatusEnum;
3023
+ createdAt: Date;
3024
+ invoices: number[];
3025
+ }
3026
+ export interface IPaginationData<T> {
3027
+ meta: {
3028
+ totalItems: number;
3029
+ itemsPerPage: number;
3030
+ totalPages: number;
3031
+ currentPage: number;
3032
+ };
3033
+ data: T[];
3034
+ }
3035
+ export interface IPricesOfProductsResults {
3036
+ productId: number;
3037
+ userId: number;
3038
+ price: number;
3039
+ groupId?: number;
3040
+ groupName?: string;
3041
+ originalPrice?: number;
3042
+ priceWithoutTax: number;
3043
+ tax: number;
3044
+ isTaxInclusive: boolean;
3045
+ }
3046
+ export interface IPaymentMethodToFundLeft {
3047
+ paymentType: PaymentMethodTypeEnum;
3048
+ paymentMethodId: string;
3049
+ fundLeft: number;
3050
+ ccLast4?: string;
3051
+ ccBrand?: string;
3052
+ }
3053
+ export interface IVariantsAndTitle {
3054
+ title: VariantTitle;
3055
+ variants: Variant[];
3155
3056
  }
3156
- export declare enum SlotTypeEnum {
3157
- EXTERNAL = "external",
3158
- INTERNAL = "internal",
3159
- MAINTENANCE = "maintenance",
3160
- CUSTOM = "custom"
3057
+ export interface IProgramSeasonActivityTimes {
3058
+ dayOfWeek: number;
3059
+ open: string;
3060
+ close: string;
3161
3061
  }
3162
- export declare enum PlatformsEnum {
3163
- CONSUMER = "consumer",
3164
- CONSUMER_CHECKOUT = "consumer_checkout",
3165
- BO = "backoffice",
3166
- MOBILE = "mobile",
3167
- CRON = "cron"
3062
+ export interface IProgramSeasonActivityTimesAsDates {
3063
+ date: string;
3064
+ startTime: string;
3065
+ endTime: string;
3168
3066
  }
3169
- export declare enum ShiftStatusEnum {
3170
- OPEN = "open",
3171
- CLOSED = "closed",
3172
- MANAGMENT_CLOSED = "closed_by_manager",
3173
- RECONCILED = "reconciled"
3067
+ export interface IBlockedDates {
3068
+ name: string;
3069
+ startDate: Date;
3070
+ endDate: Date;
3174
3071
  }
3175
- export declare enum EventStatusEnum {
3176
- OPEN = 1,
3177
- DRAFT = 2,
3178
- FULL = 3,
3179
- CANCELLED = 4,
3180
- CLOSED = 5,
3181
- DELETED = 6
3072
+ export interface ISingleMemberForRenewal {
3073
+ member_id: number;
3074
+ member_membershipId: number;
3075
+ member_userId: number;
3076
+ member_nextPaymentMethodId?: string;
3077
+ member_nextPaymentType?: PaymentMethodTypeEnum;
3078
+ member_answerTitleIds?: number[];
3079
+ member_organizationId: number;
3080
+ product_productPrice: number;
3081
+ product_productId: number;
3082
+ invoice_payingUserId: number;
3083
+ invoice_paymentMethodId: string;
3084
+ invoice_paymentType: PaymentMethodTypeEnum;
3085
+ endDate: Date;
3086
+ membership_name: string;
3087
+ user_firstName: string;
3088
+ user_lastName: string;
3089
+ user_email: string;
3182
3090
  }
3183
- export declare enum ReservationTypeEnum {
3184
- RENTAL = "rental",
3185
- PROGRAM = "program",
3186
- MAINTENANCE = "maintenance",
3187
- CUSTOM = "custom",
3188
- INTERNAL = "internal"
3091
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3092
+ package_parentProductId: number;
3093
+ product2_productPrice: number;
3094
+ familyid: number;
3095
+ invoice_id: number;
3189
3096
  }
3190
- export declare enum SlotDurationTypeEnum {
3191
- DATES = "dates",
3192
- ALL_DAY = "all day",
3193
- DURATION = "duration"
3097
+ export interface IResourceRegistrationData {
3098
+ id: number;
3099
+ resourceType: ResourceNameTypeEnum;
3100
+ openNumDays?: number;
3101
+ openNumMinutes?: number;
3102
+ openTime?: string;
3103
+ closeNumDays?: number;
3104
+ closeNumMinutes?: number;
3105
+ closeTime?: string;
3106
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
3194
3107
  }
3195
- export declare enum DurationUnitTypesEnum {
3196
- MINUTES = "minutes",
3197
- HOURS = "hours"
3108
+ export interface IResourceDataForConstraintsCalc {
3109
+ id: number;
3110
+ startDate: string;
3111
+ startTime: string;
3198
3112
  }
3199
- export declare enum FrequencyEnum {
3200
- NONE = "none",
3201
- WEEKLY = "weekly",
3202
- DAILY = "daily",
3203
- MONTHLY = "monthly",
3204
- YEARLY = "yearly"
3113
+ export interface IRegistrationConstraintsSetting {
3114
+ numDays?: number;
3115
+ numMinutes?: number;
3205
3116
  }
3206
- export declare enum MaintenanceTimingEnum {
3207
- BEFORE = 1,
3208
- AFTER = 2,
3209
- AT_THE_BEGINING = 3,
3210
- AT_THE_END = 4
3117
+ export interface IAttendeeDataToNotify {
3118
+ firstName: string;
3119
+ lastName: string;
3120
+ email: string;
3121
+ sessionName: string;
3122
+ parentSessionName?: string;
3123
+ organizationName: string;
3124
+ programName: string;
3211
3125
  }
3212
- export declare enum CreatorTypeEnum {
3213
- SPACE = "space",
3214
- PROGRAM_SEASON = "program_season",
3215
- SEASON = "season"
3126
+ export interface IEventInSchedule {
3127
+ eventId: number;
3128
+ eventName: string;
3129
+ eventStartDate: string;
3130
+ eventEndDate: string;
3131
+ eventStartTime: string;
3132
+ eventEndTime: string;
3133
+ programId: number;
3134
+ programName: string;
3135
+ programType: ProgramTypesEnum;
3136
+ sessionId: number;
3137
+ sessionName: string;
3138
+ sports: number;
3139
+ spaces: {
3140
+ spaceId: number;
3141
+ spaceName: string;
3142
+ }[];
3143
+ status?: RegistrationValidationStatusEnum;
3216
3144
  }
3217
- export declare enum UpdatePricesTypeEnum {
3218
- INDIVIDUAL = "indvidual",
3219
- CATEGORY = "category",
3220
- GLOBAL = "global"
3145
+ export interface ISlotInSchedule {
3146
+ facilityId: number;
3147
+ facilityName: string;
3148
+ spaces: ISpaceWithSlots[];
3221
3149
  }
3222
- export declare enum BondDayOfWeekEnum {
3223
- MONDAY = 2,
3224
- TUESDAY = 3,
3225
- WEDNESDAY = 4,
3226
- THURSDAY = 5,
3227
- FRIDAY = 6,
3228
- SATURDAY = 7,
3229
- SUNDAY = 8
3150
+ export interface ISpaceWithSlots {
3151
+ id: number;
3152
+ name: string;
3153
+ slots: ISlotReservationData[];
3230
3154
  }
3231
- export declare enum ReservationMigrationStatusEnum {
3232
- NEW = "new",
3233
- NO = "no",
3234
- YES = "yes"
3155
+ export interface ISlotReservationData {
3156
+ reservationId: number;
3157
+ reservationName: string;
3158
+ date: string;
3159
+ startTime: string;
3160
+ endTime: string;
3161
+ notes: string;
3162
+ spaceId: number;
3163
+ isRental: boolean;
3164
+ slotType: SlotTypeEnum;
3165
+ slotId: number;
3166
+ eventId: number;
3167
+ isPrivate: boolean;
3235
3168
  }
3236
- export declare enum ProductPackageLevelEnum {
3237
- HOUR = "hour",
3238
- SLOT = "slot",
3239
- RESERVATION = "reservation"
3169
+ export interface IRawEventInSchedule extends IEventInSchedule {
3170
+ parentSessionId: number;
3171
+ parentSessionName: string;
3172
+ eventTimezone: string;
3173
+ maxParticipants: number;
3174
+ maxMaleParticipants: number;
3175
+ maxFemaleParticipants: number;
3176
+ isPunchCard: boolean;
3240
3177
  }
3241
- export declare enum CancellationStatusEnum {
3242
- IMMEDIATE = "immediate",
3243
- AUTO_RENEWAL = "auto_renewal"
3178
+ export interface IBasicSpaceAndSlotCreator {
3179
+ id: number;
3180
+ name: string;
3181
+ bookingCreatorId: number;
3244
3182
  }
3245
- export declare enum SeasonScheduleStatusEnum {
3246
- DRAFT = 0,
3247
- PUBLISHED = 1
3183
+ export interface IRawSlotInSchedule {
3184
+ startDate: string;
3185
+ endDate: string;
3186
+ startTime: string;
3187
+ endTime: string;
3188
+ reservationId: number;
3189
+ eventTitle: string;
3190
+ publicNotes: string;
3191
+ spaceId: number;
3192
+ creatorType: ResourceNameTypeEnum;
3193
+ slotType: SlotTypeEnum;
3194
+ slotId: number;
3195
+ eventId: number;
3196
+ isPrivate: boolean;
3248
3197
  }
3249
- export declare enum FinancialStepEnum {
3250
- VOID = "void",
3251
- REFUND = "refund",
3252
- NONE = "none",
3253
- REFUND_AND_VOID = "refund-and-void",
3254
- APPEND = "append"
3198
+ export interface IPurchasedResourcesRaw {
3199
+ purchasedId: number;
3200
+ purchasedProductUserId: number;
3201
+ purchasedResourceId: number;
3202
+ purchasedResourceType: ResourceNameTypeEnum;
3203
+ purchasedStatus: PurchasedResourceStatusEnum;
3204
+ pUserId: number;
3205
+ pUserPaymentStatus: PaymentStatusEnum;
3206
+ pUserProductId: number;
3207
+ pUserProductName: string;
3208
+ pUserProductPrice: number;
3209
+ pUserProductPriceCurrency: string;
3210
+ pUserProductQuantity: number;
3211
+ pUserProductQuantityLeft: number;
3212
+ pUserUserId: number;
3255
3213
  }
3256
- export declare enum StripeAccountTypesEnum {
3257
- STRIPE = "stripe",
3258
- STRIPE_CUSTOM = "stripe:account:custom",
3259
- STRIPE_CUSTOMER = "stripe:customer"
3214
+ export interface IUsersPasses {
3215
+ userId: number;
3216
+ userFirstName: string;
3217
+ userLastName: string;
3218
+ organizationId: number;
3219
+ programId: number;
3220
+ programName: string;
3221
+ sessionId: number;
3222
+ sessionName: string;
3223
+ productId: number;
3224
+ productName: string;
3225
+ productUserId: number;
3226
+ purchaseDate: Date;
3227
+ passesLeft: number;
3260
3228
  }
3261
- export declare enum LinkedAccountStatus {
3262
- PENDING = 1,
3263
- ACTIVE = 2,
3264
- PRE_PENDING = 3
3229
+ export interface ISessionsLandingPage {
3230
+ sessionId: number;
3231
+ name: string;
3232
+ startDate: Date;
3233
+ endDate: Date;
3234
+ registrationStartDate: Date;
3235
+ registrationEndDate: Date;
3236
+ sport: SportsEnum;
3237
+ minAge: string;
3238
+ maxAge: string;
3239
+ maxParticipants?: number;
3240
+ gender: GenderEnum;
3241
+ activityTimes: ActivityTimes[];
3242
+ earlyRegistrationStartDate?: Date;
3243
+ earlyRegistrationEndDate?: Date;
3244
+ lateRegistrationStartDate?: Date;
3245
+ lateRegistrationEndDate?: Date;
3246
+ attendeeCount?: number;
3247
+ segmentsOrEvents: 'segment' | 'event';
3265
3248
  }
3266
- export declare enum AddonParentTypeEnum {
3267
- RESERVATION = "reservation",
3268
- SLOT = "slot"
3249
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3250
+ hasRequiredMembership: boolean;
3251
+ hasEntitledPricing: boolean;
3252
+ lowestPrice?: number;
3253
+ products?: ISessionLandingPageProduct[];
3269
3254
  }
3270
- export declare enum EEmailStatus {
3271
- SENT = "sent",
3272
- OPENED = "opened",
3273
- PAID = "paid",
3274
- CANCELED = "canceled"
3255
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3256
+ hasRequiredMembership: boolean;
3257
+ hasEntitledPricing: boolean;
3258
+ products?: ISessionLandingPageProduct[];
3259
+ segments?: Event[] | ProgramSeason[];
3260
+ programName: string;
3261
+ programId: number;
3262
+ levelOfPlay: LevelOfPlayEnum[];
3263
+ registrationConstraints: IResourceRegistrationData[];
3275
3264
  }
3276
- export declare enum PaymentSettingStatusEnum {
3277
- ENABLED = 1,
3278
- DISABLED_REDIRECT = 2,
3279
- DISABLED_INFO_ONLY = 3,
3280
- DISABLED_EMAIL = 4
3265
+ export interface ISlimAddons {
3266
+ addons?: {
3267
+ id: number;
3268
+ timePeriod: AddonTimePeriodEnum;
3269
+ name: string;
3270
+ productType?: ProductTypesEnum;
3271
+ productSubType?: string;
3272
+ }[];
3281
3273
  }
3282
- export declare enum NotifyMethodEnum {
3283
- EMAIL = "Email"
3274
+ export interface ISessionLandingPageProduct extends ISlimAddons {
3275
+ id: number;
3276
+ name: string;
3277
+ startDate?: Date;
3278
+ endDate?: Date;
3279
+ downpayment?: number;
3280
+ description?: string;
3281
+ prices: Price[];
3282
+ productSubType?: ProductSubTypesEnum;
3283
+ punchCard: boolean;
3284
+ isAddon: boolean;
3285
+ defaultPriceId?: number;
3284
3286
  }
3285
- export declare enum EComparisonFilter {
3286
- LessThan = "lt",
3287
- GreaterOrEqualTo = "gte"
3287
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3288
+ destinationId?: string;
3289
+ stripeCustomerId?: string;
3290
+ fee?: number;
3288
3291
  }
3289
- export declare class Athlete extends BondBaseEntity {
3290
- userId: number | null;
3291
- metadata: object | null;
3292
- athleteSports: AthleteSports[];
3292
+ export interface IReservationCreatorData {
3293
+ type: ResourceNameTypeEnum;
3294
+ id: number;
3295
+ organizationId: number;
3296
+ startDate: string;
3297
+ endDate: string;
3298
+ sportId: number;
3293
3299
  }
3294
- export declare class UserInFamilyAccount extends BondBaseEntity {
3295
- familyAccountId: number;
3296
- userId: number;
3297
- isAdmin: boolean;
3298
- user: User;
3299
- familyAccount: FamilyAccount;
3300
- deletedAt?: Date;
3300
+ export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
3301
+ questionnaireId: number;
3302
+ userId?: number;
3303
+ answers: Answer[];
3304
+ questionnaire: Questionnaires;
3301
3305
  }
3302
3306
  export declare class ColumnNumericTransformer {
3303
3307
  to(data: number): number;
@@ -3318,6 +3322,15 @@ export declare class AddFamilyDto {
3318
3322
  parents: AddImportedCustomerDto[];
3319
3323
  children: AddImportedCustomerDto[];
3320
3324
  }
3325
+ export declare class ProductIdsDto {
3326
+ productIds?: number[];
3327
+ }
3328
+ export declare class ProductImportDto {
3329
+ product: Product;
3330
+ prices: Price[];
3331
+ resourceIds: number[];
3332
+ oldId: number;
3333
+ }
3321
3334
  export declare enum ImportPaymentTypeEnum {
3322
3335
  CREDIT_CARD = "card",
3323
3336
  ACH = "ach",
@@ -3354,14 +3367,9 @@ export declare class ImportedPaymentDto {
3354
3367
  date: string;
3355
3368
  time: string;
3356
3369
  }
3357
- export declare class ProductIdsDto {
3358
- productIds?: number[];
3359
- }
3360
- export declare class ProductImportDto {
3361
- product: Product;
3362
- prices: Price[];
3363
- resourceIds: number[];
3364
- oldId: number;
3370
+ export declare class GameSlots extends BondBaseEntity {
3371
+ entityType: string;
3372
+ entityId: number;
3365
3373
  }
3366
3374
  export declare class PunchPassDto {
3367
3375
  CustomerID: string;
@@ -3370,60 +3378,10 @@ export declare class PunchPassDto {
3370
3378
  BondSessionID: number;
3371
3379
  ProductID: number;
3372
3380
  }
3373
- export declare class ImportedSlotProductDto {
3374
- slotID?: string;
3375
- name?: string;
3376
- pricingType?: 'Hourly' | 'Flat';
3377
- appliesTo?: 'slot' | 'addon' | 'reservation';
3378
- price?: string;
3379
- minutes?: string;
3380
- quantity: string;
3381
- startDate?: string;
3382
- startTime?: string;
3383
- endDate?: string;
3384
- endTime?: string;
3385
- bondProductId?: number;
3386
- }
3387
- export declare class ImportResourceMappingDto {
3388
- bondResourceID?: string;
3389
- resourceName?: string;
3390
- }
3391
- export declare class ImportProductMappingDto {
3392
- productID?: string;
3393
- productName?: string;
3394
- }
3395
- export declare class ImportedSlotDto {
3396
- reservationID: string;
3397
- bondResourceID: string;
3398
- resourceName: string;
3399
- subResourceName: string;
3400
- startDate: string;
3401
- startTime: string;
3402
- endDate: string;
3403
- endTime: string;
3404
- sportId?: string;
3405
- setupDuration: string;
3406
- setupIncludeInCosts: string;
3407
- takedownDuration: string;
3408
- takedownIncludeInCosts: string;
3409
- slotProduct: ImportedSlotProductDto;
3410
- addonProducts: ImportedSlotProductDto[];
3411
- totalPrice: string;
3412
- }
3413
- export declare class ImportedReservationDto {
3414
- name: string;
3415
- customerId: string;
3416
- description: string;
3417
- totalPrice: string;
3418
- downPayment: string;
3419
- paid: string;
3420
- invoiceId: string;
3421
- slots?: ImportedSlotDto[];
3422
- addons?: ImportedSlotProductDto[];
3423
- }
3424
- export declare class GameSlots extends BondBaseEntity {
3425
- entityType: string;
3426
- entityId: number;
3381
+ export declare class Matches extends BondBaseEntity {
3382
+ eventId: number | null;
3383
+ status: number | null;
3384
+ excludeStandings: boolean | null;
3427
3385
  }
3428
3386
  export declare class MatchParticipants extends BondBaseEntity {
3429
3387
  matchId: number | null;
@@ -3434,10 +3392,11 @@ export declare class MatchParticipants extends BondBaseEntity {
3434
3392
  score: number | null;
3435
3393
  gameSlotId: number | null;
3436
3394
  }
3437
- export declare class Matches extends BondBaseEntity {
3438
- eventId: number | null;
3439
- status: number | null;
3440
- excludeStandings: boolean | null;
3395
+ export declare class SeasonRounds extends BondBaseEntity {
3396
+ seasonId: number;
3397
+ ordinal?: number;
3398
+ divisionId?: number;
3399
+ name: string;
3441
3400
  }
3442
3401
  export declare class RoundEvents extends BaseEntity {
3443
3402
  roundId: number;
@@ -3446,47 +3405,165 @@ export declare class RoundEvents extends BaseEntity {
3446
3405
  createdAt: Date;
3447
3406
  updatedAt: Date;
3448
3407
  }
3449
- export declare class SeasonRounds extends BondBaseEntity {
3450
- seasonId: number;
3451
- ordinal?: number;
3452
- divisionId?: number;
3408
+ export declare class TeamEvents extends BondBaseEntity {
3409
+ teamId: number | null;
3410
+ eventId: number | null;
3411
+ status: number | null;
3412
+ }
3413
+ export interface PaymentStatus {
3414
+ parentId: number;
3415
+ paymentStatus: ReservationPaymentStatusEnum;
3416
+ approvalStatus?: ReservationStatusEnum;
3417
+ id?: number;
3418
+ }
3419
+ export interface PaymentStatusesDict {
3420
+ [id: number]: PaymentStatus[];
3421
+ }
3422
+ export interface PaymentStatusDict {
3423
+ [id: number]: ReservationPaymentStatusEnum;
3424
+ }
3425
+ export interface ValidatedMonthAndDay {
3426
+ valid: boolean;
3427
+ month?: number;
3428
+ day?: number;
3429
+ }
3430
+ export interface ValidationReason {
3431
+ valid: boolean;
3432
+ reason?: string;
3433
+ }
3434
+ export declare class Lock extends BondBaseEntity {
3435
+ name: string;
3436
+ locked?: Date;
3437
+ }
3438
+ export declare class CreateMonitorConfigDto {
3439
+ facilityId: number;
3453
3440
  name: string;
3441
+ code: string;
3442
+ config: any;
3443
+ }
3444
+ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3445
+ facilityId: number;
3446
+ code: string;
3447
+ config?: any;
3448
+ }
3449
+ export declare class NotifyTracker extends BondBaseEntity {
3450
+ userId: number;
3451
+ organizationId: number;
3452
+ notifyMetadata?: any;
3453
+ notfiyMethodtype: NotifyMethodEnum;
3454
+ destination: string;
3455
+ }
3456
+ export declare class ByOrganizationIdDto {
3457
+ organizationId: number;
3458
+ }
3459
+ export declare class OptionalFindByOrganizationIdDto {
3460
+ organizationId?: number;
3461
+ }
3462
+ export declare class FindUnallocatedEventsIdsFiltersDto {
3463
+ programsIds?: string;
3464
+ sessionsIds?: string;
3465
+ segmentsIds?: string;
3466
+ startDate?: string;
3467
+ endDate?: string;
3468
+ months?: string;
3469
+ dow?: string;
3470
+ }
3471
+ export declare class FindUnallocatedEventsFiltersDto extends PaginationQuery {
3472
+ programsIds?: string;
3473
+ sessionsIds?: string;
3474
+ segmentsIds?: string;
3475
+ startDate?: string;
3476
+ endDate?: string;
3477
+ months?: string;
3478
+ dow?: string;
3454
3479
  }
3455
- export declare class TeamEvents extends BondBaseEntity {
3456
- teamId: number | null;
3457
- eventId: number | null;
3480
+ export declare class Organization extends BondBaseEntity {
3481
+ name: string | null;
3482
+ email: string | null;
3483
+ twitter: string | null;
3484
+ facebook: string | null;
3485
+ instagram: string | null;
3486
+ website: string | null;
3487
+ blog: string | null;
3488
+ phoneNumber: string | null;
3489
+ waiverDoc: string | null;
3490
+ about: string | null;
3491
+ tagline: string | null;
3458
3492
  status: number | null;
3493
+ addressId: number | null;
3494
+ merchantId: number | null;
3495
+ userCreatorId: number | null;
3496
+ parentId: number | null;
3497
+ paymentSettings: object | null;
3498
+ settings: object | null;
3499
+ isClaimed: boolean | null;
3500
+ sports: number[] | null;
3501
+ mainMediaId: number | null;
3502
+ deletedAt: Date | null;
3503
+ organizationActivityTypes: number[] | null;
3504
+ organizationTypes: number[] | null;
3505
+ organizationAudienceTypes: number[] | null;
3506
+ organizationGenders: number[] | null;
3507
+ questionnaireId: number | null;
3508
+ membershipQuestionnaireId: number | null;
3509
+ feeRate: number;
3510
+ feeAddDollarRate: number;
3511
+ achFeeRate: number;
3512
+ achFeeAddDollarRate: number;
3513
+ maxAchFee: number;
3514
+ cashFeeRate: number;
3515
+ cashFeeAddDollarRate: number;
3516
+ terminalFeeRate: number;
3517
+ terminalFeeAddDollarRate: number;
3518
+ checkFeeRate: number;
3519
+ checkFeeAddDollarRate: number;
3520
+ otherFeeRate: number;
3521
+ otherFeeAddDollarRate: number;
3522
+ balanceFeeRate: number;
3523
+ balanceFeeAddDollarRate: number;
3524
+ address: Address;
3525
+ mainMedia: Media;
3526
+ brandings: OrganizationBranding[];
3527
+ brandingsV2?: OrganizationBranding[];
3459
3528
  }
3460
- export declare class Lock extends BondBaseEntity {
3461
- name: string;
3462
- locked?: Date;
3529
+ export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3530
+ key?: string;
3531
+ vaule?: string;
3532
+ version: number;
3533
+ organization: Organization;
3463
3534
  }
3464
- export interface ValidatedMonthAndDay {
3465
- valid: boolean;
3466
- month?: number;
3467
- day?: number;
3535
+ export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3536
+ mainAdminUserId?: number;
3468
3537
  }
3469
- export interface ValidationReason {
3470
- valid: boolean;
3471
- reason?: string;
3538
+ export declare class OrganizationUsers extends BondBaseEntity {
3539
+ organisationId: number | null;
3540
+ userId: number | null;
3472
3541
  }
3473
- export declare class CreateMonitorConfigDto {
3474
- facilityId: number;
3475
- name: string;
3476
- code: string;
3477
- config: any;
3542
+ export interface UnallocatedEventsFilters {
3543
+ programsIds?: number[];
3544
+ sessionsIds?: number[];
3545
+ segmentsIds?: number[];
3546
+ durations?: Duration[];
3547
+ daysOfWeek?: number[];
3478
3548
  }
3479
- export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3480
- facilityId: number;
3481
- code: string;
3482
- config?: any;
3549
+ export interface Duration {
3550
+ startDate: string;
3551
+ endDate: string;
3483
3552
  }
3484
- export declare class NotifyTracker extends BondBaseEntity {
3485
- userId: number;
3486
- organizationId: number;
3487
- notifyMetadata?: any;
3488
- notfiyMethodtype: NotifyMethodEnum;
3489
- destination: string;
3553
+ export interface IUnallocatedEventRes {
3554
+ id: number;
3555
+ title: string;
3556
+ sports: number[];
3557
+ startDate: string;
3558
+ startDateString: string;
3559
+ startTime: string;
3560
+ endDate: string;
3561
+ endDateString: string;
3562
+ endTime: string;
3563
+ timezone: string;
3564
+ }
3565
+ export interface IUnallocatedEventsIdsRes {
3566
+ data: IUnallocatedEventRes[];
3490
3567
  }
3491
3568
  export declare class CustomerIdDto {
3492
3569
  customerId: number;
@@ -3632,191 +3709,50 @@ export declare class RefundLineItemAmountDto {
3632
3709
  id: number;
3633
3710
  refundAmount: number;
3634
3711
  }
3635
- export declare class VoidDto {
3636
- lineItems: VoidLineItemDto[];
3637
- meta?: RevertMetaDto;
3638
- }
3639
- export declare class VoidLineItemDto {
3640
- id: number;
3641
- quantity?: number;
3642
- isEdit?: boolean;
3643
- amount?: number;
3644
- }
3645
- export interface PaymentResult {
3646
- paymentMethodId: string;
3647
- paymentMethodType: PaymentMethodTypeEnum;
3648
- amount: number;
3649
- receiptId?: number;
3650
- paymentMethod4Digits?: string;
3651
- errorMessage?: string;
3652
- wasSuccessful: boolean;
3653
- }
3654
- export interface PaymentsResults {
3655
- success: PaymentResult[];
3656
- failed: PaymentResult[];
3657
- }
3658
- export interface InvoicePaymentSum {
3659
- priceSum: number;
3660
- paidSum: number;
3661
- }
3662
- export interface ExtendedLineItems {
3663
- memberships: LineItems[];
3664
- programs: LineItems[];
3665
- leagues: LineItems[];
3666
- rentals: LineItems[];
3667
- products: LineItems[];
3668
- events: LineItems[];
3669
- }
3670
- export interface PaymentStatus {
3671
- parentId: number;
3672
- paymentStatus: ReservationPaymentStatusEnum;
3673
- approvalStatus?: ReservationStatusEnum;
3674
- id?: number;
3675
- }
3676
- export interface PaymentStatusesDict {
3677
- [id: number]: PaymentStatus[];
3678
- }
3679
- export interface PaymentStatusDict {
3680
- [id: number]: ReservationPaymentStatusEnum;
3681
- }
3682
3712
  export interface RefundResult extends PaymentsResults {
3683
3713
  successfulLineItems: RefundLineItemAmountDto[];
3684
- failedLineItems: RefundLineItemAmountDto[];
3685
- invoice?: Invoice;
3686
- }
3687
- export interface RefundResultWithLineItemsDict extends PaymentsResults {
3688
- successfulLineItems: Map<number, RefundLineItemAmountDto>;
3689
- failedLineItems: Map<number, RefundLineItemAmountDto>;
3690
- totalAmountProcessed: number;
3691
- }
3692
- export declare class ByOrganizationIdDto {
3693
- organizationId: number;
3694
- }
3695
- export declare class OptionalFindByOrganizationIdDto {
3696
- organizationId?: number;
3697
- }
3698
- export declare class FindUnallocatedEventsIdsFiltersDto {
3699
- programsIds?: string;
3700
- sessionsIds?: string;
3701
- segmentsIds?: string;
3702
- startDate?: string;
3703
- endDate?: string;
3704
- months?: string;
3705
- dow?: string;
3706
- }
3707
- export declare class FindUnallocatedEventsFiltersDto extends PaginationQuery {
3708
- programsIds?: string;
3709
- sessionsIds?: string;
3710
- segmentsIds?: string;
3711
- startDate?: string;
3712
- endDate?: string;
3713
- months?: string;
3714
- dow?: string;
3715
- }
3716
- export declare class Organization extends BondBaseEntity {
3717
- name: string | null;
3718
- email: string | null;
3719
- twitter: string | null;
3720
- facebook: string | null;
3721
- instagram: string | null;
3722
- website: string | null;
3723
- blog: string | null;
3724
- phoneNumber: string | null;
3725
- waiverDoc: string | null;
3726
- about: string | null;
3727
- tagline: string | null;
3728
- status: number | null;
3729
- addressId: number | null;
3730
- merchantId: number | null;
3731
- userCreatorId: number | null;
3732
- parentId: number | null;
3733
- paymentSettings: object | null;
3734
- settings: object | null;
3735
- isClaimed: boolean | null;
3736
- sports: number[] | null;
3737
- mainMediaId: number | null;
3738
- deletedAt: Date | null;
3739
- organizationActivityTypes: number[] | null;
3740
- organizationTypes: number[] | null;
3741
- organizationAudienceTypes: number[] | null;
3742
- organizationGenders: number[] | null;
3743
- questionnaireId: number | null;
3744
- membershipQuestionnaireId: number | null;
3745
- feeRate: number;
3746
- feeAddDollarRate: number;
3747
- achFeeRate: number;
3748
- achFeeAddDollarRate: number;
3749
- maxAchFee: number;
3750
- cashFeeRate: number;
3751
- cashFeeAddDollarRate: number;
3752
- terminalFeeRate: number;
3753
- terminalFeeAddDollarRate: number;
3754
- checkFeeRate: number;
3755
- checkFeeAddDollarRate: number;
3756
- otherFeeRate: number;
3757
- otherFeeAddDollarRate: number;
3758
- balanceFeeRate: number;
3759
- balanceFeeAddDollarRate: number;
3760
- address: Address;
3761
- mainMedia: Media;
3762
- brandings: OrganizationBranding[];
3763
- brandingsV2?: OrganizationBranding[];
3764
- }
3765
- export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3766
- key?: string;
3767
- vaule?: string;
3768
- version: number;
3769
- organization: Organization;
3770
- }
3771
- export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3772
- mainAdminUserId?: number;
3773
- }
3774
- export declare class OrganizationUsers extends BondBaseEntity {
3775
- organisationId: number | null;
3776
- userId: number | null;
3777
- }
3778
- export interface UnallocatedEventsFilters {
3779
- programsIds?: number[];
3780
- sessionsIds?: number[];
3781
- segmentsIds?: number[];
3782
- durations?: Duration[];
3783
- daysOfWeek?: number[];
3714
+ failedLineItems: RefundLineItemAmountDto[];
3715
+ invoice?: Invoice;
3784
3716
  }
3785
- export interface Duration {
3786
- startDate: string;
3787
- endDate: string;
3717
+ export interface RefundResultWithLineItemsDict extends PaymentsResults {
3718
+ successfulLineItems: Map<number, RefundLineItemAmountDto>;
3719
+ failedLineItems: Map<number, RefundLineItemAmountDto>;
3720
+ totalAmountProcessed: number;
3788
3721
  }
3789
- export interface IUnallocatedEventRes {
3722
+ export declare class VoidDto {
3723
+ lineItems: VoidLineItemDto[];
3724
+ meta?: RevertMetaDto;
3725
+ }
3726
+ export declare class VoidLineItemDto {
3790
3727
  id: number;
3791
- title: string;
3792
- sports: number[];
3793
- startDate: string;
3794
- startDateString: string;
3795
- startTime: string;
3796
- endDate: string;
3797
- endDateString: string;
3798
- endTime: string;
3799
- timezone: string;
3728
+ quantity?: number;
3729
+ isEdit?: boolean;
3730
+ amount?: number;
3800
3731
  }
3801
- export interface IUnallocatedEventsIdsRes {
3802
- data: IUnallocatedEventRes[];
3732
+ export interface PaymentResult {
3733
+ paymentMethodId: string;
3734
+ paymentMethodType: PaymentMethodTypeEnum;
3735
+ amount: number;
3736
+ receiptId?: number;
3737
+ paymentMethod4Digits?: string;
3738
+ errorMessage?: string;
3739
+ wasSuccessful: boolean;
3803
3740
  }
3804
- export declare class Role extends OrganizationConnectionBaseEntity {
3805
- name: string;
3806
- deletedAt?: Date;
3807
- permissions: Permission[];
3808
- usersRoles: UserRole[];
3741
+ export interface PaymentsResults {
3742
+ success: PaymentResult[];
3743
+ failed: PaymentResult[];
3809
3744
  }
3810
- export declare class Permission extends BondBaseEntity {
3811
- name: string;
3812
- deletedAt?: Date;
3745
+ export interface InvoicePaymentSum {
3746
+ priceSum: number;
3747
+ paidSum: number;
3813
3748
  }
3814
- export declare class UserRole extends OrganizationConnectionBaseEntity {
3815
- deletedAt?: Date;
3816
- userId: number;
3817
- roleId: number;
3818
- role: Role;
3819
- user: User;
3749
+ export interface ExtendedLineItems {
3750
+ memberships: LineItems[];
3751
+ programs: LineItems[];
3752
+ leagues: LineItems[];
3753
+ rentals: LineItems[];
3754
+ products: LineItems[];
3755
+ events: LineItems[];
3820
3756
  }
3821
3757
  export declare class AddonDto {
3822
3758
  productId: number;
@@ -3845,32 +3781,6 @@ export declare class EditAddonDto {
3845
3781
  totalPrice: number;
3846
3782
  unitPrice?: number;
3847
3783
  }
3848
- export declare class LineItemDto {
3849
- id?: number;
3850
- invoiceId?: number;
3851
- type: LineItemsStatusEnum;
3852
- organizationId: number;
3853
- userId?: number;
3854
- productId: number;
3855
- product?: Product;
3856
- productType: ProductTypesEnum;
3857
- ordinal?: number;
3858
- price: number;
3859
- originalPrice?: number;
3860
- paidAmount?: number;
3861
- currency: CurrencyEnum;
3862
- paymentStatus?: PaymentStatusEnum;
3863
- isRefunded?: boolean;
3864
- isTaxInclusive?: boolean;
3865
- taxPrecent?: number;
3866
- unitPrice?: number;
3867
- quantity: number;
3868
- resources?: PurchasedResourceDto[];
3869
- relationType?: 'reservation-addon' | 'slots' | 'slot_addons';
3870
- unitPriceWithTax?: number;
3871
- unitTaxPrice?: number;
3872
- parentOrdinal?: number;
3873
- }
3874
3784
  export declare class InvoiceDto {
3875
3785
  invoiceId?: string | null;
3876
3786
  organizationId: number;
@@ -3912,6 +3822,32 @@ export declare class AddSlotsDto extends UpdateInvoiceDto {
3912
3822
  export declare class AddSegmentsDto extends UpdateInvoiceDto {
3913
3823
  segments: SegmentDto[];
3914
3824
  }
3825
+ export declare class LineItemDto {
3826
+ id?: number;
3827
+ invoiceId?: number;
3828
+ type: LineItemsStatusEnum;
3829
+ organizationId: number;
3830
+ userId?: number;
3831
+ productId: number;
3832
+ product?: Product;
3833
+ productType: ProductTypesEnum;
3834
+ ordinal?: number;
3835
+ price: number;
3836
+ originalPrice?: number;
3837
+ paidAmount?: number;
3838
+ currency: CurrencyEnum;
3839
+ paymentStatus?: PaymentStatusEnum;
3840
+ isRefunded?: boolean;
3841
+ isTaxInclusive?: boolean;
3842
+ taxPrecent?: number;
3843
+ unitPrice?: number;
3844
+ quantity: number;
3845
+ resources?: PurchasedResourceDto[];
3846
+ relationType?: 'reservation-addon' | 'slots' | 'slot_addons';
3847
+ unitPriceWithTax?: number;
3848
+ unitTaxPrice?: number;
3849
+ parentOrdinal?: number;
3850
+ }
3915
3851
  export declare class MaintenanceDto {
3916
3852
  id?: number;
3917
3853
  title: string;
@@ -3919,14 +3855,6 @@ export declare class MaintenanceDto {
3919
3855
  maintenanceDurationdurationType: DurationUnitTypesEnum;
3920
3856
  maintenanceTiming: MaintenanceTimingEnum;
3921
3857
  }
3922
- export declare class PurchasedResourceDto {
3923
- resourceId?: number;
3924
- resourceType: ResourceNameTypeEnum;
3925
- startDate?: string;
3926
- startTime?: string;
3927
- endDate?: string;
3928
- endTime?: string;
3929
- }
3930
3858
  export declare class ReservationDto {
3931
3859
  id?: number;
3932
3860
  organizationId?: number;
@@ -4079,6 +4007,14 @@ export declare class UpdateReservationInvoiceDto {
4079
4007
  updateAddons?: boolean;
4080
4008
  updateMaintenance?: boolean;
4081
4009
  }
4010
+ export declare class PurchasedResourceDto {
4011
+ resourceId?: number;
4012
+ resourceType: ResourceNameTypeEnum;
4013
+ startDate?: string;
4014
+ startTime?: string;
4015
+ endDate?: string;
4016
+ endTime?: string;
4017
+ }
4082
4018
  export declare class SegmentDto {
4083
4019
  id?: number;
4084
4020
  title: string;
@@ -4234,12 +4170,6 @@ export declare class Addon extends OrganizationConnectionBaseEntity {
4234
4170
  previousProductUsersIds?: number[];
4235
4171
  previousProductUsers?: ProductsUsers[];
4236
4172
  }
4237
- export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4238
- deletedAt?: Date;
4239
- reservationId: number;
4240
- invoiceId: number;
4241
- slotId: number;
4242
- }
4243
4173
  export declare class Reservation extends OrganizationConnectionBaseEntity {
4244
4174
  name?: string;
4245
4175
  description?: string;
@@ -4287,6 +4217,12 @@ export declare class Segment extends OrganizationConnectionBaseEntity {
4287
4217
  privateNotesForSlots?: string;
4288
4218
  slots?: Slot[];
4289
4219
  }
4220
+ export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4221
+ deletedAt?: Date;
4222
+ reservationId: number;
4223
+ invoiceId: number;
4224
+ slotId: number;
4225
+ }
4290
4226
  export declare class Series extends OrganizationConnectionBaseEntity {
4291
4227
  deletedAt?: Date;
4292
4228
  segmentId: number;
@@ -4306,6 +4242,19 @@ export declare class Series extends OrganizationConnectionBaseEntity {
4306
4242
  numberOccurrences?: number;
4307
4243
  resources?: Resource[];
4308
4244
  }
4245
+ export declare type TSlotAndType = {
4246
+ type: 'slots' | 'slot_addons';
4247
+ slotsForProduct: {
4248
+ [productId: number]: {
4249
+ product: Product;
4250
+ slots: SlotDto[];
4251
+ };
4252
+ };
4253
+ };
4254
+ export interface ILineItemResource {
4255
+ type: 'segments' | 'series' | 'slots' | 'reservation_addons' | 'slot_addons';
4256
+ values: TResource[];
4257
+ }
4309
4258
  export declare class Slot extends OrganizationConnectionBaseEntity {
4310
4259
  constructor();
4311
4260
  defineIsReverted(): void;
@@ -4373,25 +4322,6 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
4373
4322
  conflictsCount?: number;
4374
4323
  conflicts?: Slot[];
4375
4324
  }
4376
- export declare class ChangeRolePermissionsDto {
4377
- permissionIds: number[];
4378
- }
4379
- export declare class CreateRoleDto {
4380
- name: string;
4381
- }
4382
- export declare type TSlotAndType = {
4383
- type: 'slots' | 'slot_addons';
4384
- slotsForProduct: {
4385
- [productId: number]: {
4386
- product: Product;
4387
- slots: SlotDto[];
4388
- };
4389
- };
4390
- };
4391
- export interface ILineItemResource {
4392
- type: 'segments' | 'series' | 'slots' | 'reservation_addons' | 'slot_addons';
4393
- values: TResource[];
4394
- }
4395
4325
  export declare type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
4396
4326
  export declare type TResource = Reservation | Segment | Series | Slot | Addon;
4397
4327
  export interface ReservationV1 {
@@ -4611,12 +4541,32 @@ export interface AddonMetadata {
4611
4541
  totalPrice: number;
4612
4542
  product?: Product;
4613
4543
  }
4544
+ export declare class ChangeRolePermissionsDto {
4545
+ permissionIds: number[];
4546
+ }
4547
+ export declare class CreateRoleDto {
4548
+ name: string;
4549
+ }
4550
+ export declare class Permission extends BondBaseEntity {
4551
+ name: string;
4552
+ deletedAt?: Date;
4553
+ }
4554
+ export declare class Role extends OrganizationConnectionBaseEntity {
4555
+ name: string;
4556
+ deletedAt?: Date;
4557
+ permissions: Permission[];
4558
+ usersRoles: UserRole[];
4559
+ }
4560
+ export declare class UserRole extends OrganizationConnectionBaseEntity {
4561
+ deletedAt?: Date;
4562
+ userId: number;
4563
+ roleId: number;
4564
+ role: Role;
4565
+ user: User;
4566
+ }
4614
4567
  export declare class CloseShiftDto {
4615
4568
  closingCashAmount: number;
4616
4569
  }
4617
- export declare class FindShiftsByIdsDto {
4618
- shiftIds: number[];
4619
- }
4620
4570
  export declare class FindShiftsFiltersDto {
4621
4571
  statuses?: string;
4622
4572
  stationIds?: string;
@@ -4637,6 +4587,9 @@ export declare class FindShiftsFormattedFilters {
4637
4587
  startDate?: Date;
4638
4588
  endDate?: Date;
4639
4589
  }
4590
+ export declare class FindShiftsByIdsDto {
4591
+ shiftIds: number[];
4592
+ }
4640
4593
  export declare class ShiftManagementClosingAmount {
4641
4594
  shiftId: number;
4642
4595
  managementClosingCashAmount: number;
@@ -4690,3 +4643,54 @@ export default interface IWebflowProgram {
4690
4643
  level: string[];
4691
4644
  gender: string;
4692
4645
  }
4646
+ export declare class ImportedSlotProductDto {
4647
+ slotID?: string;
4648
+ name?: string;
4649
+ pricingType?: 'Hourly' | 'Flat';
4650
+ appliesTo?: 'slot' | 'addon' | 'reservation';
4651
+ price?: string;
4652
+ minutes?: string;
4653
+ quantity: string;
4654
+ startDate?: string;
4655
+ startTime?: string;
4656
+ endDate?: string;
4657
+ endTime?: string;
4658
+ bondProductId?: number;
4659
+ }
4660
+ export declare class ImportResourceMappingDto {
4661
+ bondResourceID?: string;
4662
+ resourceName?: string;
4663
+ }
4664
+ export declare class ImportProductMappingDto {
4665
+ productID?: string;
4666
+ productName?: string;
4667
+ }
4668
+ export declare class ImportedSlotDto {
4669
+ reservationID: string;
4670
+ bondResourceID: string;
4671
+ resourceName: string;
4672
+ subResourceName: string;
4673
+ startDate: string;
4674
+ startTime: string;
4675
+ endDate: string;
4676
+ endTime: string;
4677
+ sportId?: string;
4678
+ setupDuration: string;
4679
+ setupIncludeInCosts: string;
4680
+ takedownDuration: string;
4681
+ takedownIncludeInCosts: string;
4682
+ slotProduct: ImportedSlotProductDto;
4683
+ addonProducts: ImportedSlotProductDto[];
4684
+ totalPrice: string;
4685
+ }
4686
+ export declare class ImportedReservationDto {
4687
+ name: string;
4688
+ customerId: string;
4689
+ description: string;
4690
+ totalPrice: string;
4691
+ downPayment: string;
4692
+ paid: string;
4693
+ invoiceId: string;
4694
+ slots?: ImportedSlotDto[];
4695
+ addons?: ImportedSlotProductDto[];
4696
+ }