@bondsports/types 0.0.181 → 0.0.182

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
@@ -20,6 +20,13 @@ export declare class UserAnswersDto {
20
20
  export declare class GetByQuestionnaireIdsDto {
21
21
  questionnaireIds: string;
22
22
  }
23
+ export declare enum EConfigurationKeys {
24
+ MAX_ALLOWED_PM_FAILURE = "max_allowed_pm_failure"
25
+ }
26
+ export declare enum EFailedPaymentReasons {
27
+ CARD_BLOCKED = "card_blocked_by_bond",
28
+ UNKNOWN = "unknown"
29
+ }
23
30
  export declare class FindBookingTypeSettingDto {
24
31
  organizationId: number;
25
32
  facilityId: number;
@@ -27,12 +34,66 @@ export declare class FindBookingTypeSettingDto {
27
34
  bookingDate: string;
28
35
  bookingTime: string;
29
36
  }
30
- export declare enum EConfigurationKeys {
31
- MAX_ALLOWED_PM_FAILURE = "max_allowed_pm_failure"
37
+ export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
38
+ membershipId: number;
32
39
  }
33
- export declare enum EFailedPaymentReasons {
34
- CARD_BLOCKED = "card_blocked_by_bond",
35
- UNKNOWN = "unknown"
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;
36
97
  }
37
98
  export declare class FindEventByIdDto {
38
99
  eventId: number;
@@ -134,66 +195,49 @@ 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;
198
+ export declare class FindFamilyAccountsDto {
199
+ userId: number;
142
200
  }
143
- export declare class ImportCustomerFromCSV {
144
- fileName: string;
145
- startIndex?: number;
201
+ export declare class FindFamilyAccountsCustomerDto {
202
+ customerId: number;
203
+ organizationId: number;
146
204
  }
147
- export declare class ImportProgramsFileDto extends ImportCustomerFromCSV {
148
- resolveInvoices: string;
205
+ export declare class FindUsersInFamilyAccountDto {
206
+ familyAccountId: number;
149
207
  }
150
- export declare class ImportDashCustomerDto extends ImportCustomerFromCSV {
151
- membershipId: number;
152
- onlyDashIds: string;
208
+ export declare class CreateFamilyAccountDto {
209
+ familyName: string;
210
+ userId: number;
153
211
  }
154
- export declare class ImportRentalsFromCSV extends ImportCustomerFromCSV {
155
- facilityId: number;
212
+ export declare class UpdateFamilyAccountNameDto {
213
+ familyName: string;
214
+ familyAccountId: number;
156
215
  }
157
- export declare class ByOrganizationIdCustomerIdDto extends ByOrganizationIdDto {
158
- customerId: number;
216
+ export declare class AddUserToFamilyAccountDto {
217
+ familyAccountId: number;
218
+ isUserAdmin: boolean;
219
+ firstName: string;
220
+ lastName: string;
221
+ gender: GenderEnum;
222
+ birthDate: string;
223
+ sports?: number[];
224
+ email?: string;
159
225
  }
160
- export declare class ByOrganizationIdUserIdDto extends ByOrganizationIdDto {
226
+ export declare class RemoveUserFromFamilyAccountDto {
161
227
  userId: number;
228
+ familyAccountId: number;
162
229
  }
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[];
230
+ export declare class FindOneParams {
231
+ id: number;
171
232
  }
172
- export declare class CustomerNoteDto {
173
- id?: number;
174
- description: string;
175
- pinToTop?: boolean;
233
+ export declare class PaginationQuery {
234
+ page: number;
235
+ itemsPerPage: number;
176
236
  }
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;
237
+ export declare class PaginationRangeQuery {
238
+ startPage: number;
239
+ endPage: number;
240
+ itemsPerPage: number;
197
241
  }
198
242
  export declare class AddressDto {
199
243
  city: string;
@@ -238,50 +282,6 @@ export declare class UpdateFacilityAmenitiesDto {
238
282
  export declare class FindFacilitiesOptionsDto extends PaginationQuery {
239
283
  nameSearch?: string;
240
284
  }
241
- export declare class FindFamilyAccountsDto {
242
- userId: number;
243
- }
244
- export declare class FindFamilyAccountsCustomerDto {
245
- customerId: number;
246
- organizationId: number;
247
- }
248
- export declare class FindUsersInFamilyAccountDto {
249
- familyAccountId: number;
250
- }
251
- export declare class CreateFamilyAccountDto {
252
- familyName: string;
253
- userId: number;
254
- }
255
- export declare class UpdateFamilyAccountNameDto {
256
- familyName: string;
257
- familyAccountId: number;
258
- }
259
- export declare class AddUserToFamilyAccountDto {
260
- familyAccountId: number;
261
- isUserAdmin: boolean;
262
- firstName: string;
263
- lastName: string;
264
- gender: GenderEnum;
265
- birthDate: string;
266
- sports?: number[];
267
- email?: string;
268
- }
269
- export declare class RemoveUserFromFamilyAccountDto {
270
- userId: number;
271
- familyAccountId: number;
272
- }
273
- export declare class FindOneParams {
274
- id: number;
275
- }
276
- export declare class PaginationQuery {
277
- page: number;
278
- itemsPerPage: number;
279
- }
280
- export declare class PaginationRangeQuery {
281
- startPage: number;
282
- endPage: number;
283
- itemsPerPage: number;
284
- }
285
285
  export declare class FindGlCodeByOrganizationIdDto {
286
286
  organizationId: number;
287
287
  }
@@ -292,108 +292,35 @@ export declare class GetGlCodeDto {
292
292
  createdAt: Date;
293
293
  updatedAt: Date;
294
294
  }
295
- export declare class FindByProgramSeasonIdDto {
296
- seasonId: number;
297
- }
298
- export declare class CreateBulkDivisionsDto {
299
- divisions: CreateDivisionDto[];
300
- }
301
- export declare class CreateDivisionDto {
302
- name: string;
303
- ordinal?: number;
304
- programSeasonId: number;
305
- color: string;
306
- isDefault: boolean;
307
- }
308
- export declare class CreateGroupDto {
295
+ export declare class CreateMembershipDto {
296
+ organizationId: number;
309
297
  name: string;
310
298
  description?: string;
311
- status?: GroupStatusEnum;
312
- maxCapacity?: number;
313
- mainMediaId?: number;
314
- minAgeYears?: number;
315
- maxAgeYears?: number;
299
+ customerTypes: CustomerInMembershipTypeEnum[];
300
+ activity: SportsEnum;
301
+ facilityId: number;
302
+ questionnaires: number[];
303
+ minAgeYears: number;
304
+ maxAgeYears: number;
316
305
  gender: GenderEnum;
317
- levelOfPlay?: LevelOfPlayEnum[];
318
- sports: SportsEnum[];
319
- questionnaires?: number[];
320
- captainUserId?: number;
321
- divisionId?: number;
306
+ maxMembers?: number;
307
+ maxMaleMembers?: number;
308
+ maxFemaleMembers?: number;
309
+ startDate: string;
310
+ endDate: string;
311
+ registrationStartDate?: Date;
312
+ registrationEndDate?: Date;
313
+ membershipType: MembershipTypeEnum;
314
+ durationMonths: number;
315
+ longDescription?: string;
316
+ isAutoRenew?: boolean;
322
317
  }
323
- export declare class ConnectGroupToDivision {
324
- groupId: number;
325
- divisionId: number;
326
- prevDivisionId: number;
318
+ export declare class UpdateMembrshipDto extends CreateMembershipDto {
319
+ id: number;
327
320
  }
328
- export declare class MoveUserInGroups {
329
- userId: number;
330
- groupId?: number;
331
- prevGroupId?: number;
332
- }
333
- export declare class SaveUserAsGroupCaptain {
334
- groupId: number;
335
- userId: number;
336
- }
337
- export declare class CreateTeamInviteDto {
338
- emails: string[];
339
- userCreatorId: number;
340
- }
341
- export declare class TeamByIdDto {
342
- teamId: number;
343
- }
344
- export declare class GetInviteDto extends TeamByIdDto {
345
- inviteToken: string;
346
- }
347
- export declare class JoinTeamDto {
348
- userId: number;
349
- inviteToken?: string;
350
- }
351
- export declare class UserTeamFutureSeasons extends TeamByIdDto {
352
- userId: number;
353
- }
354
- export interface IMoveSeason {
355
- fromSeasonId: number;
356
- toSeasonId: number;
357
- }
358
- export declare class MoveTeamOrMemberDto implements IMoveSeason {
359
- teamId?: number;
360
- memberId?: number;
361
- fromSeasonId: number;
362
- toSeasonId: number;
363
- toDivisionId?: number;
364
- }
365
- export declare class MoveTeamOrMembersByCsvDTO {
366
- fileName: string;
367
- }
368
- export declare class CreateMembershipDto {
369
- organizationId: number;
370
- name: string;
371
- description?: string;
372
- customerTypes: CustomerInMembershipTypeEnum[];
373
- activity: SportsEnum;
374
- facilityId: number;
375
- questionnaires: number[];
376
- minAgeYears: number;
377
- maxAgeYears: number;
378
- gender: GenderEnum;
379
- maxMembers?: number;
380
- maxMaleMembers?: number;
381
- maxFemaleMembers?: number;
382
- startDate: string;
383
- endDate: string;
384
- registrationStartDate?: Date;
385
- registrationEndDate?: Date;
386
- membershipType: MembershipTypeEnum;
387
- durationMonths: number;
388
- longDescription?: string;
389
- isAutoRenew?: boolean;
390
- }
391
- export declare class UpdateMembrshipDto extends CreateMembershipDto {
392
- id: number;
393
- }
394
- export declare class UpdateMembershipMediaDto {
395
- membershipId: number;
396
- mediaId: number;
321
+ export declare class UpdateMembershipMediaDto {
322
+ membershipId: number;
323
+ mediaId: number;
397
324
  }
398
325
  export declare class FindMembershipByIdDto {
399
326
  membershipId: number;
@@ -421,48 +348,6 @@ export declare class CancelMembershipDto {
421
348
  isImmediatelyCancel: boolean;
422
349
  cancellationReason?: string;
423
350
  }
424
- export declare class CreateEntitlementTermsDto {
425
- organizationId: number;
426
- entitlementGroupId: number;
427
- terms: IEntitlementTerms[];
428
- }
429
- export declare class FindEntitlementTermsByGroupIdDto {
430
- entitlementGroupId: number;
431
- }
432
- export declare class FindEntitlementTermsByVariablesDto {
433
- user: any;
434
- userVariables: IQuestionAnswerObject[];
435
- }
436
- export declare class FindLowestPriceDto {
437
- organizationId: number;
438
- user?: any;
439
- answers?: IQuestionAnswerObject[];
440
- itemIds: number[];
441
- itemType?: ResourceNameTypeEnum;
442
- startDate?: Date;
443
- }
444
- export declare class FindGroupItemsPricingsDto {
445
- groupsIds: number[];
446
- itemsIds: number[];
447
- }
448
- export declare class CreateEntitlementGroupDto {
449
- name: string;
450
- }
451
- export declare class GetEntitlementGroupPricingDto {
452
- itemIds: number[];
453
- itemType: string;
454
- }
455
- export declare class FindEntitlementGroupByIdDto {
456
- groupid: number;
457
- }
458
- export declare class CreateGroupPricingWithProduct {
459
- groupId: number;
460
- price: number;
461
- startDate?: Date;
462
- endDate?: Date;
463
- discountValue?: number;
464
- discountMethod?: DiscountMethodsEnum;
465
- }
466
351
  export declare class FindByProductIdDto {
467
352
  productId: number;
468
353
  }
@@ -684,23 +569,120 @@ export declare class createResourceDto {
684
569
  export declare class archiveDto {
685
570
  isArchive: boolean;
686
571
  }
687
- export declare class CreateUpdateVariantsDto {
572
+ export declare class FindByProgramSeasonIdDto {
573
+ seasonId: number;
574
+ }
575
+ export declare class CreateBulkDivisionsDto {
576
+ divisions: CreateDivisionDto[];
577
+ }
578
+ export declare class CreateDivisionDto {
579
+ name: string;
580
+ ordinal?: number;
581
+ programSeasonId: number;
582
+ color: string;
583
+ isDefault: boolean;
584
+ }
585
+ export declare class CreateGroupDto {
586
+ name: string;
587
+ description?: string;
588
+ status?: GroupStatusEnum;
589
+ maxCapacity?: number;
590
+ mainMediaId?: number;
591
+ minAgeYears?: number;
592
+ maxAgeYears?: number;
593
+ gender: GenderEnum;
594
+ levelOfPlay?: LevelOfPlayEnum[];
595
+ sports: SportsEnum[];
596
+ questionnaires?: number[];
597
+ captainUserId?: number;
598
+ divisionId?: number;
599
+ }
600
+ export declare class ConnectGroupToDivision {
601
+ groupId: number;
602
+ divisionId: number;
603
+ prevDivisionId: number;
604
+ }
605
+ export declare class MoveUserInGroups {
606
+ userId: number;
607
+ groupId?: number;
608
+ prevGroupId?: number;
609
+ }
610
+ export declare class SaveUserAsGroupCaptain {
611
+ groupId: number;
612
+ userId: number;
613
+ }
614
+ export declare class CreateTeamInviteDto {
615
+ emails: string[];
616
+ userCreatorId: number;
617
+ }
618
+ export declare class TeamByIdDto {
619
+ teamId: number;
620
+ }
621
+ export declare class GetInviteDto extends TeamByIdDto {
622
+ inviteToken: string;
623
+ }
624
+ export declare class JoinTeamDto {
625
+ userId: number;
626
+ inviteToken?: string;
627
+ }
628
+ export declare class UserTeamFutureSeasons extends TeamByIdDto {
629
+ userId: number;
630
+ }
631
+ export interface IMoveSeason {
632
+ fromSeasonId: number;
633
+ toSeasonId: number;
634
+ }
635
+ export declare class MoveTeamOrMemberDto implements IMoveSeason {
636
+ teamId?: number;
637
+ memberId?: number;
638
+ fromSeasonId: number;
639
+ toSeasonId: number;
640
+ toDivisionId?: number;
641
+ }
642
+ export declare class MoveTeamOrMembersByCsvDTO {
643
+ fileName: string;
644
+ }
645
+ export declare class CreateEntitlementTermsDto {
688
646
  organizationId: number;
689
- parentProductId: number;
690
- variantTitles: VariantTitleDto[];
691
- variants: VariantDto[];
647
+ entitlementGroupId: number;
648
+ terms: IEntitlementTerms[];
692
649
  }
693
- export declare class VariantTitleDto {
694
- titleName: string;
695
- titleId: number;
650
+ export declare class FindEntitlementTermsByGroupIdDto {
651
+ entitlementGroupId: number;
696
652
  }
697
- export declare class VariantDto {
653
+ export declare class FindEntitlementTermsByVariablesDto {
654
+ user: any;
655
+ userVariables: IQuestionAnswerObject[];
656
+ }
657
+ export declare class FindLowestPriceDto {
658
+ organizationId: number;
659
+ user?: any;
660
+ answers?: IQuestionAnswerObject[];
661
+ itemIds: number[];
662
+ itemType?: ResourceNameTypeEnum;
663
+ startDate?: Date;
664
+ }
665
+ export declare class FindGroupItemsPricingsDto {
666
+ groupsIds: number[];
667
+ itemsIds: number[];
668
+ }
669
+ export declare class CreateEntitlementGroupDto {
698
670
  name: string;
671
+ }
672
+ export declare class GetEntitlementGroupPricingDto {
673
+ itemIds: number[];
674
+ itemType: string;
675
+ }
676
+ export declare class FindEntitlementGroupByIdDto {
677
+ groupid: number;
678
+ }
679
+ export declare class CreateGroupPricingWithProduct {
680
+ groupId: number;
699
681
  price: number;
700
- variantId: number;
701
- currency: CurrencyEnum;
702
- startDate: Date;
703
- endDate: Date;
682
+ startDate?: Date;
683
+ endDate?: Date;
684
+ discountValue?: number;
685
+ discountMethod?: DiscountMethodsEnum;
704
686
  }
705
687
  export declare class FindProgramSeasonsByProgramIdDto {
706
688
  programId: number;
@@ -893,49 +875,31 @@ export declare class MoveParticipantDto {
893
875
  resourceId: number;
894
876
  invoiceId: number;
895
877
  }
896
- export declare class FindProgramsByOrganizationIdDto {
897
- organizationId: number;
898
- programType?: ProgramTypesEnum;
878
+ export declare class CreateResourceGroupDto {
879
+ name: string;
880
+ parentSlotId: number;
881
+ facilityId: number;
882
+ childrenSlotIds: number[];
899
883
  }
900
- export declare class FindProgramByIdDto {
901
- programId: number;
884
+ export declare class UpdateResourceGroupDto extends CreateResourceGroupDto {
902
885
  }
903
- export declare class FindProgramByOrgIdAndIdDto {
904
- programId: number;
886
+ export declare class CreateUpdateVariantsDto {
905
887
  organizationId: number;
888
+ parentProductId: number;
889
+ variantTitles: VariantTitleDto[];
890
+ variants: VariantDto[];
906
891
  }
907
- export declare class BaseProgramDto {
908
- type: ProgramTypesEnum;
892
+ export declare class VariantTitleDto {
893
+ titleName: string;
894
+ titleId: number;
895
+ }
896
+ export declare class VariantDto {
909
897
  name: string;
910
- sport: SportsEnum;
911
- minAge: string;
912
- maxAge: string;
913
- gender: GenderEnum;
914
- level?: LevelOfPlayEnum[];
915
- description?: string;
916
- GL?: string;
917
- status: PublishingStatusEnum;
918
- organizationId: number;
919
- userCreatorId: number;
920
- highlights: ProgramHighlights[];
921
- longDescription?: string;
922
- requiredProductIds: number[];
923
- }
924
- export declare class CreateProgramDto extends BaseProgramDto {
925
- }
926
- export declare class UpdateProgramDto extends BaseProgramDto {
927
- programId: number;
928
- mainMediaId: number;
929
- }
930
- export declare class UpdateProgramStatusDto {
931
- programId: number;
932
- status: PublishingStatusEnum;
933
- }
934
- export declare class ProgramHighlightDto {
935
- data: string;
936
- ordinal: number;
937
- type: ProgramHighlightTypeEnum;
938
- title: string;
898
+ price: number;
899
+ variantId: number;
900
+ currency: CurrencyEnum;
901
+ startDate: Date;
902
+ endDate: Date;
939
903
  }
940
904
  export declare class PurchasePaymentDto {
941
905
  token: string;
@@ -1010,18 +974,14 @@ export declare class PartialPaymentAsUserDto {
1010
974
  paymentMethodData: any;
1011
975
  platform?: PlatformsEnum;
1012
976
  }
977
+ export declare class ValidateParticipantDto {
978
+ customerIds: number[];
979
+ products: PurchaseProductDto[];
980
+ }
1013
981
  export declare class ResourceDto {
1014
982
  type: ResourceNameTypeEnum;
1015
983
  id: number;
1016
984
  }
1017
- export declare class CreateResourceGroupDto {
1018
- name: string;
1019
- parentSlotId: number;
1020
- facilityId: number;
1021
- childrenSlotIds: number[];
1022
- }
1023
- export declare class UpdateResourceGroupDto extends CreateResourceGroupDto {
1024
- }
1025
985
  export declare class SpaceByIdDto {
1026
986
  spaceId: number;
1027
987
  }
@@ -1078,24 +1038,49 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
1078
1038
  types?: string;
1079
1039
  resourcesIds?: string;
1080
1040
  }
1081
- export declare class StripeCustomerIdDto {
1082
- userId: number;
1041
+ export declare class FindProgramsByOrganizationIdDto {
1042
+ organizationId: number;
1043
+ programType?: ProgramTypesEnum;
1083
1044
  }
1084
- export declare class StripeCustomerPaymentMathodDto extends StripeCustomerIdDto {
1085
- paymentMethodId: string;
1045
+ export declare class FindProgramByIdDto {
1046
+ programId: number;
1086
1047
  }
1087
- export declare class AddACHTokenToCustomerDto {
1088
- publicToken: string;
1089
- accountId: string;
1048
+ export declare class FindProgramByOrgIdAndIdDto {
1049
+ programId: number;
1050
+ organizationId: number;
1090
1051
  }
1091
- export declare class FindByUserIdDto {
1092
- userId: number;
1052
+ export declare class BaseProgramDto {
1053
+ type: ProgramTypesEnum;
1054
+ name: string;
1055
+ sport: SportsEnum;
1056
+ minAge: string;
1057
+ maxAge: string;
1058
+ gender: GenderEnum;
1059
+ level?: LevelOfPlayEnum[];
1060
+ description?: string;
1061
+ GL?: string;
1062
+ status: PublishingStatusEnum;
1063
+ organizationId: number;
1064
+ userCreatorId: number;
1065
+ highlights: ProgramHighlights[];
1066
+ longDescription?: string;
1067
+ requiredProductIds: number[];
1093
1068
  }
1094
- export declare class FindByFamilyAccountIdDto {
1095
- familyAccountId?: number;
1069
+ export declare class CreateProgramDto extends BaseProgramDto {
1096
1070
  }
1097
- export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1098
- organizationId: number;
1071
+ export declare class UpdateProgramDto extends BaseProgramDto {
1072
+ programId: number;
1073
+ mainMediaId: number;
1074
+ }
1075
+ export declare class UpdateProgramStatusDto {
1076
+ programId: number;
1077
+ status: PublishingStatusEnum;
1078
+ }
1079
+ export declare class ProgramHighlightDto {
1080
+ data: string;
1081
+ ordinal: number;
1082
+ type: ProgramHighlightTypeEnum;
1083
+ title: string;
1099
1084
  }
1100
1085
  export declare class ActivityLogRecord extends BondBaseEntity {
1101
1086
  entityType: ResourceNameTypeEnum;
@@ -1110,6 +1095,15 @@ export declare class ActivityLogRecord extends BondBaseEntity {
1110
1095
  oldValue?: any;
1111
1096
  newValue?: any;
1112
1097
  }
1098
+ export declare class FindByUserIdDto {
1099
+ userId: number;
1100
+ }
1101
+ export declare class FindByFamilyAccountIdDto {
1102
+ familyAccountId?: number;
1103
+ }
1104
+ export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1105
+ organizationId: number;
1106
+ }
1113
1107
  export declare class ActivityTimes extends BondBaseEntity {
1114
1108
  parentType: ResourceNameTypeEnum | ProductTypesEnum;
1115
1109
  parentId: number;
@@ -1123,6 +1117,22 @@ export declare class ActivityTimes extends BondBaseEntity {
1123
1117
  proudct: Product;
1124
1118
  event: Event;
1125
1119
  }
1120
+ export declare class StripeCustomerIdDto {
1121
+ userId: number;
1122
+ }
1123
+ export declare class StripeCustomerPaymentMathodDto extends StripeCustomerIdDto {
1124
+ paymentMethodId: string;
1125
+ }
1126
+ export declare class AddACHTokenToCustomerDto {
1127
+ publicToken: string;
1128
+ accountId: string;
1129
+ }
1130
+ export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1131
+ questionnaireId: number;
1132
+ userId?: number;
1133
+ answers: Answer[];
1134
+ questionnaire: Questionnaires;
1135
+ }
1126
1136
  export declare class Answer extends OrganizationConnectionBaseEntity {
1127
1137
  questionId: number;
1128
1138
  question?: Questions;
@@ -1136,41 +1146,16 @@ export declare class Answer extends OrganizationConnectionBaseEntity {
1136
1146
  metaData: any | null;
1137
1147
  questionText: string | null;
1138
1148
  }
1139
- export declare class Address extends BondBaseEntity {
1140
- city?: string;
1141
- street?: string;
1142
- streetNum?: string;
1143
- aptNum?: string;
1144
- zip?: string;
1145
- country?: string;
1146
- state?: string;
1147
- geo: any;
1148
- deletedAt?: Date;
1149
- }
1150
- export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1151
- questionnaireId: number;
1152
- userId?: number;
1153
- answers: Answer[];
1154
- questionnaire: Questionnaires;
1149
+ export declare class Athlete extends BondBaseEntity {
1150
+ userId: number | null;
1151
+ metadata: object | null;
1152
+ athleteSports: AthleteSports[];
1155
1153
  }
1156
1154
  export declare class AthleteSports extends BondBaseEntity {
1157
1155
  athleteId: number | null;
1158
1156
  sports: number | null;
1159
1157
  levelOfPlay: LevelOfPlayEnum | null;
1160
1158
  }
1161
- export declare class BlockedDate extends BondBaseEntity {
1162
- entityType: ResourceNameTypeEnum;
1163
- entityId: number;
1164
- name: string;
1165
- startDate: Date;
1166
- endDate: Date;
1167
- deletedAt?: Date;
1168
- }
1169
- export declare class BondBaseEntity extends BaseEntity {
1170
- id: number;
1171
- createdAt: Date;
1172
- updatedAt: Date;
1173
- }
1174
1159
  export declare class BookedSessions extends BondBaseEntity {
1175
1160
  reservationId?: number;
1176
1161
  color?: string;
@@ -1189,6 +1174,19 @@ export declare class BookedSessions extends BondBaseEntity {
1189
1174
  publicNotes?: string;
1190
1175
  slotType?: SlotTypeEnum;
1191
1176
  }
1177
+ export declare class BlockedDate extends BondBaseEntity {
1178
+ entityType: ResourceNameTypeEnum;
1179
+ entityId: number;
1180
+ name: string;
1181
+ startDate: Date;
1182
+ endDate: Date;
1183
+ deletedAt?: Date;
1184
+ }
1185
+ export declare class BondBaseEntity extends BaseEntity {
1186
+ id: number;
1187
+ createdAt: Date;
1188
+ updatedAt: Date;
1189
+ }
1192
1190
  export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity {
1193
1191
  parentId: number;
1194
1192
  parentType: ResourceNameTypeEnum;
@@ -1216,6 +1214,17 @@ export declare class Connection extends BondBaseEntity {
1216
1214
  userCreatorId: number | null;
1217
1215
  ownerId: number | null;
1218
1216
  }
1217
+ export declare class Address extends BondBaseEntity {
1218
+ city?: string;
1219
+ street?: string;
1220
+ streetNum?: string;
1221
+ aptNum?: string;
1222
+ zip?: string;
1223
+ country?: string;
1224
+ state?: string;
1225
+ geo: any;
1226
+ deletedAt?: Date;
1227
+ }
1219
1228
  export declare class CreditNote extends OrganizationConnectionBaseEntity {
1220
1229
  creditAmount: number;
1221
1230
  paymentProcessorId: string;
@@ -1224,6 +1233,32 @@ export declare class CreditNote extends OrganizationConnectionBaseEntity {
1224
1233
  invoiceId: number;
1225
1234
  creditPaymentId: number;
1226
1235
  }
1236
+ export declare class CustomerCreditTransaction extends OrganizationConnectionBaseEntity {
1237
+ customerId: number;
1238
+ userId: number;
1239
+ amount: number;
1240
+ paymentId?: number;
1241
+ invoiceId?: number;
1242
+ description?: string;
1243
+ deletedAt?: Date;
1244
+ customer: Customer;
1245
+ invoice: Invoice;
1246
+ payment: Payment;
1247
+ }
1248
+ export declare class Division extends BondBaseEntity {
1249
+ name: string;
1250
+ ordinal?: number;
1251
+ programSeasonId: number;
1252
+ color: string;
1253
+ isDefault: boolean;
1254
+ groups: Group[];
1255
+ }
1256
+ export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1257
+ customerId?: number;
1258
+ description: string;
1259
+ pinToTop?: boolean;
1260
+ customer: Customer;
1261
+ }
1227
1262
  export declare class Customer extends OrganizationConnectionBaseEntity {
1228
1263
  name: string | null;
1229
1264
  entityId: number | null;
@@ -1252,32 +1287,6 @@ export declare class Customer extends OrganizationConnectionBaseEntity {
1252
1287
  mainMedia: Media;
1253
1288
  reservations?: Reservation[];
1254
1289
  }
1255
- export declare class CustomerCreditTransaction extends OrganizationConnectionBaseEntity {
1256
- customerId: number;
1257
- userId: number;
1258
- amount: number;
1259
- paymentId?: number;
1260
- invoiceId?: number;
1261
- description?: string;
1262
- deletedAt?: Date;
1263
- customer: Customer;
1264
- invoice: Invoice;
1265
- payment: Payment;
1266
- }
1267
- export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1268
- customerId?: number;
1269
- description: string;
1270
- pinToTop?: boolean;
1271
- customer: Customer;
1272
- }
1273
- export declare class Division extends BondBaseEntity {
1274
- name: string;
1275
- ordinal?: number;
1276
- programSeasonId: number;
1277
- color: string;
1278
- isDefault: boolean;
1279
- groups: Group[];
1280
- }
1281
1290
  export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1282
1291
  customerId: number;
1283
1292
  name: string | null;
@@ -1291,21 +1300,6 @@ export declare class EntitlementTerms extends OrganizationConnectionBaseEntity {
1291
1300
  groupId: number;
1292
1301
  terms: IEntitlementTerms[];
1293
1302
  }
1294
- export declare class EventAttendee extends BondBaseEntity {
1295
- status: RequestStatusEnum | null;
1296
- hasPaid: boolean | null;
1297
- paymentId: number | null;
1298
- attendeeId: number;
1299
- eventId?: number | null;
1300
- productUserId?: number;
1301
- answerTitleIds?: number[];
1302
- entryStatus?: EntryStatusEnum;
1303
- addonProductUserIds?: number[];
1304
- deletedAt?: Date;
1305
- attendee: User;
1306
- event: Event;
1307
- purchasedResource: PurchasedResource;
1308
- }
1309
1303
  export declare class Event extends OrganizationConnectionBaseEntity {
1310
1304
  constructor();
1311
1305
  defineCalculatedDateTimeProps(): void;
@@ -1364,6 +1358,21 @@ export declare class Event extends OrganizationConnectionBaseEntity {
1364
1358
  session?: ProgramSeason;
1365
1359
  segment?: ProgramSeason;
1366
1360
  }
1361
+ export declare class EventAttendee extends BondBaseEntity {
1362
+ status: RequestStatusEnum | null;
1363
+ hasPaid: boolean | null;
1364
+ paymentId: number | null;
1365
+ attendeeId: number;
1366
+ eventId?: number | null;
1367
+ productUserId?: number;
1368
+ answerTitleIds?: number[];
1369
+ entryStatus?: EntryStatusEnum;
1370
+ addonProductUserIds?: number[];
1371
+ deletedAt?: Date;
1372
+ attendee: User;
1373
+ event: Event;
1374
+ purchasedResource: PurchasedResource;
1375
+ }
1367
1376
  export declare class Facility extends OrganizationConnectionBaseEntity {
1368
1377
  name: string;
1369
1378
  description?: string;
@@ -1392,10 +1401,6 @@ export declare class FacilityToResource extends BondBaseEntity {
1392
1401
  facilityId: number;
1393
1402
  resourceId: number;
1394
1403
  }
1395
- export declare class FamilyAccount extends BondBaseEntity {
1396
- name: string | null;
1397
- userInFamilyAccounts: UserInFamilyAccount[];
1398
- }
1399
1404
  export declare class FutureInstallment extends OrganizationConnectionBaseEntity {
1400
1405
  userId: number;
1401
1406
  invoiceId: number;
@@ -1407,19 +1412,6 @@ export declare class FutureInstallment extends OrganizationConnectionBaseEntity
1407
1412
  chargedAt?: Date;
1408
1413
  originalPlannedDate?: Date;
1409
1414
  }
1410
- export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
1411
- groupId: number;
1412
- itemId: number;
1413
- itemType: ResourceNameTypeEnum;
1414
- startDate: Date;
1415
- endDate: Date;
1416
- price: number;
1417
- overridesPrice: boolean;
1418
- deletedAt?: Date;
1419
- group?: EntitlementGroup;
1420
- discountMethod?: DiscountMethodsEnum;
1421
- discountValue?: number;
1422
- }
1423
1415
  export declare class GlCodes extends OrganizationConnectionBaseEntity {
1424
1416
  code: string;
1425
1417
  }
@@ -1439,6 +1431,43 @@ export declare class Group extends BondBaseEntity {
1439
1431
  members: ISeasonAttendeeInfo[];
1440
1432
  users: User[];
1441
1433
  }
1434
+ export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
1435
+ groupId: number;
1436
+ itemId: number;
1437
+ itemType: ResourceNameTypeEnum;
1438
+ startDate: Date;
1439
+ endDate: Date;
1440
+ price: number;
1441
+ overridesPrice: boolean;
1442
+ deletedAt?: Date;
1443
+ group?: EntitlementGroup;
1444
+ discountMethod?: DiscountMethodsEnum;
1445
+ discountValue?: number;
1446
+ }
1447
+ export declare class FamilyAccount extends BondBaseEntity {
1448
+ name: string | null;
1449
+ userInFamilyAccounts: UserInFamilyAccount[];
1450
+ }
1451
+ export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1452
+ email: string;
1453
+ status: EEmailStatus;
1454
+ templateId: string;
1455
+ userId: number;
1456
+ invoiceId: number;
1457
+ paymentId: number;
1458
+ sendingUserId: number;
1459
+ mailParams?: any;
1460
+ memo?: string;
1461
+ }
1462
+ export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
1463
+ content: string;
1464
+ creatingUserId: number;
1465
+ user: User;
1466
+ isPublic: boolean;
1467
+ deletedAt: Date;
1468
+ invoiceId: number;
1469
+ invoice: Invoice;
1470
+ }
1442
1471
  export declare class GroupsInDivisions extends BondBaseEntity {
1443
1472
  groupId: number;
1444
1473
  divisionId: number;
@@ -1468,26 +1497,6 @@ export declare class Invoice extends BondBaseEntity {
1468
1497
  invoiceNotes: InvoiceNote[];
1469
1498
  slots: Slot[];
1470
1499
  }
1471
- export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1472
- email: string;
1473
- status: EEmailStatus;
1474
- templateId: string;
1475
- userId: number;
1476
- invoiceId: number;
1477
- paymentId: number;
1478
- sendingUserId: number;
1479
- mailParams?: any;
1480
- memo?: string;
1481
- }
1482
- export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
1483
- content: string;
1484
- creatingUserId: number;
1485
- user: User;
1486
- isPublic: boolean;
1487
- deletedAt: Date;
1488
- invoiceId: number;
1489
- invoice: Invoice;
1490
- }
1491
1500
  export declare class InvoiceToPayment extends BondBaseEntity {
1492
1501
  invoiceId: number;
1493
1502
  paymentId: number;
@@ -1522,6 +1531,16 @@ export declare class League extends OrganizationConnectionBaseEntity {
1522
1531
  logo?: Media;
1523
1532
  seasons: LeagueSeason[];
1524
1533
  }
1534
+ export declare class LineItemHistory extends BondBaseEntity {
1535
+ invoiceId: number;
1536
+ paymentId: number;
1537
+ lineItemId: number;
1538
+ paidAmount: number;
1539
+ unitPaidAmount: number;
1540
+ currency: CurrencyEnum;
1541
+ payment: Payment;
1542
+ lineItem: LineItems;
1543
+ }
1525
1544
  export declare class LeagueSeason extends BondBaseEntity {
1526
1545
  leagueId: number | null;
1527
1546
  name: string | null;
@@ -1566,16 +1585,6 @@ export declare class LeagueSeasonRelations {
1566
1585
  league?: boolean;
1567
1586
  facilities?: boolean;
1568
1587
  }
1569
- export declare class LineItemHistory extends BondBaseEntity {
1570
- invoiceId: number;
1571
- paymentId: number;
1572
- lineItemId: number;
1573
- paidAmount: number;
1574
- unitPaidAmount: number;
1575
- currency: CurrencyEnum;
1576
- payment: Payment;
1577
- lineItem: LineItems;
1578
- }
1579
1588
  export declare class LineItems extends BondBaseEntity {
1580
1589
  constructor();
1581
1590
  defineIsReverted(): void;
@@ -1694,6 +1703,23 @@ export declare class Membership extends OrganizationConnectionBaseEntity {
1694
1703
  isAutoRenew?: boolean;
1695
1704
  purchasedResources: PurchasedResource[];
1696
1705
  }
1706
+ export declare class NotificationSubscriptions extends OrganizationConnectionBaseEntity {
1707
+ email: string | null;
1708
+ notificationType: NotificationTypeEnum | null;
1709
+ resourceId: number | null;
1710
+ resourceType: string | null;
1711
+ }
1712
+ export declare class OpeningTime extends OrganizationConnectionBaseEntity {
1713
+ id: number;
1714
+ dayOfWeek: number;
1715
+ open: string;
1716
+ close: string;
1717
+ facilityId: number;
1718
+ createdAt: Date;
1719
+ updatedAt: Date;
1720
+ deletedAt?: Date;
1721
+ facility: Facility;
1722
+ }
1697
1723
  export declare class MembershipMember extends OrganizationConnectionBaseEntity {
1698
1724
  membership: Membership;
1699
1725
  membershipId: number;
@@ -1714,26 +1740,6 @@ export declare class MembershipMember extends OrganizationConnectionBaseEntity {
1714
1740
  cancellationStatus?: CancellationStatusEnum;
1715
1741
  isImported?: boolean;
1716
1742
  }
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
- export declare class OpeningTime extends OrganizationConnectionBaseEntity {
1724
- id: number;
1725
- dayOfWeek: number;
1726
- open: string;
1727
- close: string;
1728
- facilityId: number;
1729
- createdAt: Date;
1730
- updatedAt: Date;
1731
- deletedAt?: Date;
1732
- facility: Facility;
1733
- }
1734
- export declare class OrganizationConnectionBaseEntity extends BondBaseEntity {
1735
- organizationId: number;
1736
- }
1737
1743
  export declare class PackageV1 extends BondBaseEntity {
1738
1744
  name?: string;
1739
1745
  description?: string;
@@ -1751,39 +1757,6 @@ export declare class PackageV1 extends BondBaseEntity {
1751
1757
  isMandatory: boolean;
1752
1758
  productId: number;
1753
1759
  }
1754
- export declare class Payment extends OrganizationConnectionBaseEntity {
1755
- price: number;
1756
- paymentProcessorId: string;
1757
- invoiceToPayments: InvoiceToPayment[];
1758
- paymentStatus: PaymentStatusEnum;
1759
- bondFee?: number;
1760
- stripeFee?: number;
1761
- currency: CurrencyEnum;
1762
- payingUserId?: number;
1763
- paymentMethodId?: string;
1764
- paymentType?: PaymentMethodTypeEnum;
1765
- fundLeft: number;
1766
- notes?: string;
1767
- isRefunded: boolean;
1768
- lineItemHistory: LineItemHistory[];
1769
- receiptUrl?: string;
1770
- paymentProcessorTransactionId?: string;
1771
- creatingUserId: number;
1772
- shiftId: number;
1773
- platform: PlatformsEnum;
1774
- ccLast4: string;
1775
- ccBrand: string;
1776
- paymentNotes: PaymentNote[];
1777
- parentInvoiceId?: number;
1778
- refundReasonId?: number;
1779
- refundNote?: string;
1780
- }
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
1760
  export declare class PaymentFailConfig extends OrganizationConnectionBaseEntity {
1788
1761
  failureIndex: number;
1789
1762
  waitingDays: number;
@@ -1794,12 +1767,6 @@ export declare class PaymentFailure extends OrganizationConnectionBaseEntity {
1794
1767
  reason: EFailedPaymentReasons;
1795
1768
  errorMessage: string;
1796
1769
  }
1797
- export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1798
- paymentPlanId: number;
1799
- paymentDate: Date;
1800
- deletedAt?: Date;
1801
- paymentPlan: ProductPaymentPlan;
1802
- }
1803
1770
  export declare class PaymentNote extends OrganizationConnectionBaseEntity {
1804
1771
  content: string;
1805
1772
  creatingUserId: number;
@@ -1809,6 +1776,15 @@ export declare class PaymentNote extends OrganizationConnectionBaseEntity {
1809
1776
  paymentId: number;
1810
1777
  payment: Payment;
1811
1778
  }
1779
+ export declare class OrganizationConnectionBaseEntity extends BondBaseEntity {
1780
+ organizationId: number;
1781
+ }
1782
+ export declare class PasswordReset extends BondBaseEntity {
1783
+ token: string | null;
1784
+ userId: number | null;
1785
+ validUntil: Date | null;
1786
+ active: boolean | null;
1787
+ }
1812
1788
  export declare class PaymentV1 extends BondBaseEntity {
1813
1789
  userId: number | null;
1814
1790
  ownerId: number | null;
@@ -1827,6 +1803,12 @@ export declare class PaymentV1 extends BondBaseEntity {
1827
1803
  installmentId: number | null;
1828
1804
  invoiceId: string | null;
1829
1805
  }
1806
+ export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1807
+ paymentPlanId: number;
1808
+ paymentDate: Date;
1809
+ deletedAt?: Date;
1810
+ paymentPlan: ProductPaymentPlan;
1811
+ }
1830
1812
  export declare class Price extends OrganizationConnectionBaseEntity {
1831
1813
  productId: number;
1832
1814
  product: Product;
@@ -1844,21 +1826,6 @@ export declare class Price extends OrganizationConnectionBaseEntity {
1844
1826
  discountValue?: number;
1845
1827
  taxIncludedPrice?: number;
1846
1828
  }
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
1829
  export declare class Product extends OrganizationConnectionBaseEntity {
1863
1830
  name: string;
1864
1831
  quantity: number;
@@ -1909,6 +1876,48 @@ export declare class Product extends OrganizationConnectionBaseEntity {
1909
1876
  activityTimes: ActivityTimes[];
1910
1877
  purchasedResources: PurchasedResource[];
1911
1878
  }
1879
+ export declare class Payment extends OrganizationConnectionBaseEntity {
1880
+ price: number;
1881
+ paymentProcessorId: string;
1882
+ invoiceToPayments: InvoiceToPayment[];
1883
+ paymentStatus: PaymentStatusEnum;
1884
+ bondFee?: number;
1885
+ stripeFee?: number;
1886
+ currency: CurrencyEnum;
1887
+ payingUserId?: number;
1888
+ paymentMethodId?: string;
1889
+ paymentType?: PaymentMethodTypeEnum;
1890
+ fundLeft: number;
1891
+ notes?: string;
1892
+ isRefunded: boolean;
1893
+ lineItemHistory: LineItemHistory[];
1894
+ receiptUrl?: string;
1895
+ paymentProcessorTransactionId?: string;
1896
+ creatingUserId: number;
1897
+ shiftId: number;
1898
+ platform: PlatformsEnum;
1899
+ ccLast4: string;
1900
+ ccBrand: string;
1901
+ paymentNotes: PaymentNote[];
1902
+ parentInvoiceId?: number;
1903
+ refundReasonId?: number;
1904
+ refundNote?: string;
1905
+ }
1906
+ export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1907
+ parentProductId: number;
1908
+ childProductId: number;
1909
+ relationType: PackageProductsRelationTypeEnum;
1910
+ timePeriod: AddonTimePeriodEnum;
1911
+ deletedAt?: Date;
1912
+ productResource: ProductResource;
1913
+ childProduct: Product;
1914
+ parentProduct: Product;
1915
+ price: number;
1916
+ isFlatPrice: boolean;
1917
+ durationMinutes?: number;
1918
+ durationDays?: number;
1919
+ level?: ProductPackageLevelEnum;
1920
+ }
1912
1921
  export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
1913
1922
  productId: number;
1914
1923
  maxMonths?: number;
@@ -1918,10 +1927,6 @@ export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity
1918
1927
  schedule: PaymentPlanSchedule[];
1919
1928
  product?: Product;
1920
1929
  }
1921
- export declare class ProductToVariantTitle extends OrganizationConnectionBaseEntity {
1922
- productId: number;
1923
- variantTitleId: number;
1924
- }
1925
1930
  export declare class ProductResource extends OrganizationConnectionBaseEntity {
1926
1931
  productId: number;
1927
1932
  resourceId: number;
@@ -1933,6 +1938,10 @@ export declare class ProductResource extends OrganizationConnectionBaseEntity {
1933
1938
  productPackages: ProductPackage[];
1934
1939
  resourceName?: string;
1935
1940
  }
1941
+ export declare class ProductToVariantTitle extends OrganizationConnectionBaseEntity {
1942
+ productId: number;
1943
+ variantTitleId: number;
1944
+ }
1936
1945
  export declare class ProductToVariant extends OrganizationConnectionBaseEntity {
1937
1946
  productId: number;
1938
1947
  variantId: number;
@@ -1944,23 +1953,6 @@ export declare class ProductsReservedForCustomers extends OrganizationConnection
1944
1953
  deletedAt?: Date;
1945
1954
  product: Product;
1946
1955
  }
1947
- export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1948
- productId: number;
1949
- userId: number;
1950
- user?: User;
1951
- paymentStatus: PaymentStatusEnum;
1952
- productName: string;
1953
- productPrice: number;
1954
- productQuantity: number;
1955
- productQuantityLeft: number;
1956
- productPriceCurrency: CurrencyEnum;
1957
- ordinal?: number;
1958
- purchasedResources: PurchasedResource[];
1959
- product: Product;
1960
- lineItem: LineItems;
1961
- slots?: Slot[];
1962
- addons?: Addon[];
1963
- }
1964
1956
  export declare class Program extends BondBaseEntity {
1965
1957
  type: ProgramTypesEnum;
1966
1958
  name: string;
@@ -1983,14 +1975,6 @@ export declare class Program extends BondBaseEntity {
1983
1975
  programSeason: ProgramSeason[];
1984
1976
  purchasedResources: PurchasedResource[];
1985
1977
  }
1986
- export declare class ProgramHighlights extends BondBaseEntity {
1987
- type: ProgramHighlightTypeEnum;
1988
- ordinal: number | null;
1989
- title: string | null;
1990
- data: any | null;
1991
- program: Program;
1992
- deletedAt?: Date;
1993
- }
1994
1978
  export declare class ProgramSeason extends BondBaseEntity {
1995
1979
  programId: number;
1996
1980
  name: string;
@@ -2046,6 +2030,23 @@ export declare class ProgramSeason extends BondBaseEntity {
2046
2030
  facility: Facility;
2047
2031
  purchasedResources: PurchasedResource[];
2048
2032
  }
2033
+ export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
2034
+ productId: number;
2035
+ userId: number;
2036
+ user?: User;
2037
+ paymentStatus: PaymentStatusEnum;
2038
+ productName: string;
2039
+ productPrice: number;
2040
+ productQuantity: number;
2041
+ productQuantityLeft: number;
2042
+ productPriceCurrency: CurrencyEnum;
2043
+ ordinal?: number;
2044
+ purchasedResources: PurchasedResource[];
2045
+ product: Product;
2046
+ lineItem: LineItems;
2047
+ slots?: Slot[];
2048
+ addons?: Addon[];
2049
+ }
2049
2050
  export declare class PurchasedResource extends OrganizationConnectionBaseEntity {
2050
2051
  productUserId: number;
2051
2052
  resourceId: number;
@@ -2068,26 +2069,37 @@ export declare class PurchasedResource extends OrganizationConnectionBaseEntity
2068
2069
  product?: Product;
2069
2070
  event?: Event;
2070
2071
  }
2072
+ export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2073
+ title: string | null;
2074
+ answerTitle: AnswerTitle;
2075
+ }
2076
+ export declare class ProgramHighlights extends BondBaseEntity {
2077
+ type: ProgramHighlightTypeEnum;
2078
+ ordinal: number | null;
2079
+ title: string | null;
2080
+ data: any | null;
2081
+ program: Program;
2082
+ deletedAt?: Date;
2083
+ }
2084
+ export declare class Questions extends BondBaseEntity {
2085
+ questionType: string | null;
2086
+ ordinal: number | null;
2087
+ pageOrdinal: number | null;
2088
+ isActive: boolean | null;
2089
+ isMandatory: boolean | null;
2090
+ metaData: any | null;
2091
+ question: string | null;
2092
+ creatorId: number | null;
2093
+ creatorType: string | null;
2094
+ userCreatorId: number | null;
2095
+ ownerId: number | null;
2096
+ questionnaireId: number | null;
2097
+ }
2071
2098
  export declare class RefundReason extends OrganizationConnectionBaseEntity {
2072
2099
  reason: string;
2073
2100
  ordinal: number;
2074
2101
  deletedAt: Date;
2075
2102
  }
2076
- export declare class RegistrationConstraint extends OrganizationConnectionBaseEntity {
2077
- resourceType: ResourceNameTypeEnum;
2078
- resourceId: number;
2079
- openNumDays?: number;
2080
- openNumMinutes?: number;
2081
- openTime?: string;
2082
- closeNumDays?: number;
2083
- closeNumMinutes?: number;
2084
- closeTime?: string;
2085
- deletedAt?: Date;
2086
- }
2087
- export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2088
- title: string | null;
2089
- answerTitle: AnswerTitle;
2090
- }
2091
2103
  export declare class Reservations extends OrganizationConnectionBaseEntity {
2092
2104
  name?: string;
2093
2105
  description?: string;
@@ -2120,26 +2132,27 @@ export declare class Reservations extends OrganizationConnectionBaseEntity {
2120
2132
  publicNotes?: string;
2121
2133
  slots?: Slot[];
2122
2134
  }
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[];
2135
+ export declare class SeasonAttendee extends BondBaseEntity {
2136
+ status: RequestStatusEnum;
2137
+ paymentStatus: PaymentStatusEnum;
2138
+ paymentId?: number;
2139
+ productId?: number;
2140
+ attendeeId: number;
2141
+ attendee: User;
2142
+ seasonId: number;
2143
+ season: ProgramSeason;
2144
+ productUserId?: number;
2145
+ answerTitleIds?: number[];
2142
2146
  deletedAt?: Date;
2147
+ purchasedResource: PurchasedResource;
2148
+ }
2149
+ export declare class School extends BondBaseEntity {
2150
+ name: string | null;
2151
+ alias: string[] | null;
2152
+ addressId: number | null;
2153
+ website: string | null;
2154
+ phone: string | null;
2155
+ dataId: number | null;
2143
2156
  }
2144
2157
  export declare class Resource extends OrganizationConnectionBaseEntity {
2145
2158
  name: string;
@@ -2169,34 +2182,6 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
2169
2182
  purchasedResources: PurchasedResource[];
2170
2183
  linkSEO: string;
2171
2184
  }
2172
- export declare class School extends BondBaseEntity {
2173
- name: string | null;
2174
- alias: string[] | null;
2175
- addressId: number | null;
2176
- website: string | null;
2177
- phone: string | null;
2178
- dataId: number | null;
2179
- }
2180
- export declare class SeasonAttendee extends BondBaseEntity {
2181
- status: RequestStatusEnum;
2182
- paymentStatus: PaymentStatusEnum;
2183
- paymentId?: number;
2184
- productId?: number;
2185
- attendeeId: number;
2186
- attendee: User;
2187
- seasonId: number;
2188
- season: ProgramSeason;
2189
- productUserId?: number;
2190
- answerTitleIds?: number[];
2191
- deletedAt?: Date;
2192
- purchasedResource: PurchasedResource;
2193
- }
2194
- export declare class SeasonDivisions extends BondBaseEntity {
2195
- name: string | null;
2196
- ordinal: number | null;
2197
- seasonId: number | null;
2198
- color: string | null;
2199
- }
2200
2185
  export declare class SeasonPool extends BondBaseEntity {
2201
2186
  seasonId?: number;
2202
2187
  userId?: number;
@@ -2212,6 +2197,12 @@ export declare class SeasonPool extends BondBaseEntity {
2212
2197
  purchasedResource: PurchasedResource;
2213
2198
  season: LeagueSeason;
2214
2199
  }
2200
+ export declare class SeasonDivisions extends BondBaseEntity {
2201
+ name: string | null;
2202
+ ordinal: number | null;
2203
+ seasonId: number | null;
2204
+ color: string | null;
2205
+ }
2215
2206
  export declare class SeasonTeam extends BondBaseEntity {
2216
2207
  seasonId: number | null;
2217
2208
  teamId: number | null;
@@ -2222,10 +2213,6 @@ export declare class SeasonTeam extends BondBaseEntity {
2222
2213
  metaData: any | null;
2223
2214
  team: Team;
2224
2215
  }
2225
- export declare class SpacesDependency extends BondBaseEntity {
2226
- blockingSpaceId: number;
2227
- blockedSpaceId: number;
2228
- }
2229
2216
  export declare class Station extends OrganizationConnectionBaseEntity {
2230
2217
  name: string;
2231
2218
  facilityId: number;
@@ -2237,6 +2224,21 @@ export declare class Station extends OrganizationConnectionBaseEntity {
2237
2224
  subcategories: Subcategory[];
2238
2225
  shifts?: Shift[];
2239
2226
  }
2227
+ export declare class RegistrationConstraint extends OrganizationConnectionBaseEntity {
2228
+ resourceType: ResourceNameTypeEnum;
2229
+ resourceId: number;
2230
+ openNumDays?: number;
2231
+ openNumMinutes?: number;
2232
+ openTime?: string;
2233
+ closeNumDays?: number;
2234
+ closeNumMinutes?: number;
2235
+ closeTime?: string;
2236
+ deletedAt?: Date;
2237
+ }
2238
+ export declare class SpacesDependency extends BondBaseEntity {
2239
+ blockingSpaceId: number;
2240
+ blockedSpaceId: number;
2241
+ }
2240
2242
  export declare class StationToSubcategory extends OrganizationConnectionBaseEntity {
2241
2243
  stationId: number;
2242
2244
  subcategoryId: number;
@@ -2245,6 +2247,13 @@ export declare class StationToSubcategory extends OrganizationConnectionBaseEnti
2245
2247
  station: Station;
2246
2248
  subcategory: Subcategory;
2247
2249
  }
2250
+ export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2251
+ name: string;
2252
+ facilityId: number;
2253
+ parentSlotId: number;
2254
+ childrenSlotIds: number[];
2255
+ deletedAt?: Date;
2256
+ }
2248
2257
  export declare class Subcategory extends OrganizationConnectionBaseEntity {
2249
2258
  productType: ProductTypesEnum;
2250
2259
  name: string;
@@ -2296,6 +2305,15 @@ export declare class TeamInvite extends BondBaseEntity {
2296
2305
  tokenExpirationDate: Date;
2297
2306
  isUsed: boolean;
2298
2307
  }
2308
+ export declare class TeamMember extends BondBaseEntity {
2309
+ teamId: number | null;
2310
+ userId: number | null;
2311
+ paymentId: number | null;
2312
+ hasPaid: boolean | null;
2313
+ status: TeamMemberStatusEnum | null;
2314
+ role: TeamMemberRoleEnum;
2315
+ user: User;
2316
+ }
2299
2317
  export declare class User extends BondBaseEntity {
2300
2318
  firstName: string | null;
2301
2319
  lastName: string | null;
@@ -2335,21 +2353,20 @@ export declare class User extends BondBaseEntity {
2335
2353
  invoiceNotes: InvoiceNote[];
2336
2354
  paymentNotes: PaymentNote[];
2337
2355
  }
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
2356
  export declare class UserAuthorizations extends BondBaseEntity {
2348
2357
  entityId: number | null;
2349
2358
  userId: number | null;
2350
2359
  entityType: UserAuthorizationsTypeEnum;
2351
2360
  user: User;
2352
2361
  }
2362
+ export declare class UserInFamilyAccount extends BondBaseEntity {
2363
+ familyAccountId: number;
2364
+ userId: number;
2365
+ isAdmin: boolean;
2366
+ user: User;
2367
+ familyAccount: FamilyAccount;
2368
+ deletedAt?: Date;
2369
+ }
2353
2370
  export declare class UserPaymentMethod extends BondBaseEntity {
2354
2371
  userId: number;
2355
2372
  failCount: number;
@@ -2358,11 +2375,6 @@ export declare class UserPaymentMethod extends BondBaseEntity {
2358
2375
  paymentMethodId: string;
2359
2376
  nextAllowedChargeDate?: Date;
2360
2377
  }
2361
- export declare class UsersInGroup extends BondBaseEntity {
2362
- groupId: number;
2363
- userId: number;
2364
- deletedAt?: Date;
2365
- }
2366
2378
  export declare class VariantTitle extends OrganizationConnectionBaseEntity {
2367
2379
  name: string;
2368
2380
  variants: Variant[];
@@ -2381,370 +2393,15 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2381
2393
  membershipCollectionId?: string;
2382
2394
  programsCollectionId?: string;
2383
2395
  }
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;
2396
+ export declare class UsersInGroup extends BondBaseEntity {
2398
2397
  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;
2398
+ userId: number;
2399
+ deletedAt?: Date;
2418
2400
  }
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;
2443
- }
2444
- export declare class EventAsSeasonSegment extends Event {
2445
- segmentType: ResourceNameTypeEnum;
2446
- participantRegisteredDate?: string;
2447
- }
2448
- export interface ITokenResonse {
2449
- token: string;
2450
- }
2451
- export interface IStripeBondInvoices {
2452
- paidStripePaymentIntent: Stripe.PaymentIntent;
2453
- bondPaidPayment: Payment;
2454
- invoice?: Invoice;
2455
- customer?: Customer;
2456
- }
2457
- export interface IPartialPaymentData {
2458
- purchasingUserId: number;
2459
- paymentData: PurchasePaymentDto;
2460
- amountToPay: number;
2461
- }
2462
- export interface IPayment {
2463
- id: number;
2464
- total: number;
2465
- paymentMethod: PaymentMethodTypeEnum;
2466
- status: PaymentStatusEnum;
2467
- createdAt: Date;
2468
- invoices: number[];
2469
- }
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"
2401
+ export declare enum EntitlementTermsTypesEnum {
2402
+ QUESTION = "question",
2403
+ CITY = "city",
2404
+ MEMBERSHIP = "membership"
2748
2405
  }
2749
2406
  export declare enum ResourceNameTypeEnum {
2750
2407
  EVENT = "event",
@@ -3102,202 +2759,549 @@ export declare enum ResourceSubTypeEnum {
3102
2759
  export declare enum ResourceTypeEnum {
3103
2760
  SPACE = "space"
3104
2761
  }
3105
- export declare enum ResourceAgesEnum {
3106
- ADULTS = "adults",
3107
- CHILDREN = "children"
2762
+ export declare enum ResourceAgesEnum {
2763
+ ADULTS = "adults",
2764
+ CHILDREN = "children"
2765
+ }
2766
+ export declare enum SpacePropertiesEnum {
2767
+ OUTDOOR = "outdoor",
2768
+ INDOOR = "indoor"
2769
+ }
2770
+ export declare enum SurfacesEnum {
2771
+ GRASS = "grass",
2772
+ TURF = "turf",
2773
+ FIELD_TURF = "fieldTurf",
2774
+ ASTRO_TURF = "astroTurf",
2775
+ HARDWOOD = "hardwood",
2776
+ ASPHALT = "asphalt",
2777
+ SAND = "sand",
2778
+ ICE = "ice",
2779
+ SPORT_COURT = "sportCourt"
2780
+ }
2781
+ export declare enum RegistrationConstraintPeriodTypeEnum {
2782
+ MINUTES = "minutes",
2783
+ DAYS = "days"
2784
+ }
2785
+ export declare enum RegistrationWindowStatusEnum {
2786
+ NOT_OPEN_YET = "not_opened_yet",
2787
+ OPEN = "open",
2788
+ CLOSED = "closed"
2789
+ }
2790
+ export declare enum RegistrationValidationStatusEnum {
2791
+ FULL = "full",
2792
+ ALREADY_REGISTERED = "registered",
2793
+ AVAILABLE = "available",
2794
+ NOT_OPEN_YET = "not opened",
2795
+ ALREADY_CLOSED = "closed",
2796
+ NO_PRODUCT_FOUND = "no-product-found"
2797
+ }
2798
+ export declare enum DiscountMethodsEnum {
2799
+ PERCENT = "percent",
2800
+ AMOUNT = "amount"
2801
+ }
2802
+ export declare enum UserAuthorizationsTypeEnum {
2803
+ ORGANIZATION = "organization"
2804
+ }
2805
+ export declare enum OrganizationLocaleDateEnum {
2806
+ USA = "USA"
2807
+ }
2808
+ export declare enum DateTimeFormatsEnum {
2809
+ API_DATE = "YYYY/MM/DD",
2810
+ API_TIME = "HH:mm:ss",
2811
+ DB_DATE = "YYYY-MM-DD"
2812
+ }
2813
+ export declare enum SlotTypeEnum {
2814
+ EXTERNAL = "external",
2815
+ INTERNAL = "internal",
2816
+ MAINTENANCE = "maintenance",
2817
+ CUSTOM = "custom"
2818
+ }
2819
+ export declare enum PlatformsEnum {
2820
+ CONSUMER = "consumer",
2821
+ CONSUMER_CHECKOUT = "consumer_checkout",
2822
+ BO = "backoffice",
2823
+ MOBILE = "mobile",
2824
+ CRON = "cron"
2825
+ }
2826
+ export declare enum ShiftStatusEnum {
2827
+ OPEN = "open",
2828
+ CLOSED = "closed",
2829
+ MANAGMENT_CLOSED = "closed_by_manager",
2830
+ RECONCILED = "reconciled"
2831
+ }
2832
+ export declare enum EventStatusEnum {
2833
+ OPEN = 1,
2834
+ DRAFT = 2,
2835
+ FULL = 3,
2836
+ CANCELLED = 4,
2837
+ CLOSED = 5,
2838
+ DELETED = 6
2839
+ }
2840
+ export declare enum ReservationTypeEnum {
2841
+ RENTAL = "rental",
2842
+ PROGRAM = "program",
2843
+ MAINTENANCE = "maintenance",
2844
+ CUSTOM = "custom",
2845
+ INTERNAL = "internal"
2846
+ }
2847
+ export declare enum SlotDurationTypeEnum {
2848
+ DATES = "dates",
2849
+ ALL_DAY = "all day",
2850
+ DURATION = "duration"
2851
+ }
2852
+ export declare enum DurationUnitTypesEnum {
2853
+ MINUTES = "minutes",
2854
+ HOURS = "hours"
2855
+ }
2856
+ export declare enum FrequencyEnum {
2857
+ NONE = "none",
2858
+ WEEKLY = "weekly",
2859
+ DAILY = "daily",
2860
+ MONTHLY = "monthly",
2861
+ YEARLY = "yearly"
2862
+ }
2863
+ export declare enum MaintenanceTimingEnum {
2864
+ BEFORE = 1,
2865
+ AFTER = 2,
2866
+ AT_THE_BEGINING = 3,
2867
+ AT_THE_END = 4
2868
+ }
2869
+ export declare enum CreatorTypeEnum {
2870
+ SPACE = "space",
2871
+ PROGRAM_SEASON = "program_season",
2872
+ SEASON = "season"
2873
+ }
2874
+ export declare enum UpdatePricesTypeEnum {
2875
+ INDIVIDUAL = "indvidual",
2876
+ CATEGORY = "category",
2877
+ GLOBAL = "global"
2878
+ }
2879
+ export declare enum BondDayOfWeekEnum {
2880
+ MONDAY = 2,
2881
+ TUESDAY = 3,
2882
+ WEDNESDAY = 4,
2883
+ THURSDAY = 5,
2884
+ FRIDAY = 6,
2885
+ SATURDAY = 7,
2886
+ SUNDAY = 8
2887
+ }
2888
+ export declare enum ReservationMigrationStatusEnum {
2889
+ NEW = "new",
2890
+ NO = "no",
2891
+ YES = "yes"
2892
+ }
2893
+ export declare enum ProductPackageLevelEnum {
2894
+ HOUR = "hour",
2895
+ SLOT = "slot",
2896
+ RESERVATION = "reservation"
2897
+ }
2898
+ export declare enum CancellationStatusEnum {
2899
+ IMMEDIATE = "immediate",
2900
+ AUTO_RENEWAL = "auto_renewal"
2901
+ }
2902
+ export declare enum SeasonScheduleStatusEnum {
2903
+ DRAFT = 0,
2904
+ PUBLISHED = 1
2905
+ }
2906
+ export declare enum FinancialStepEnum {
2907
+ VOID = "void",
2908
+ REFUND = "refund",
2909
+ NONE = "none",
2910
+ REFUND_AND_VOID = "refund-and-void",
2911
+ APPEND = "append"
2912
+ }
2913
+ export declare enum StripeAccountTypesEnum {
2914
+ STRIPE = "stripe",
2915
+ STRIPE_CUSTOM = "stripe:account:custom",
2916
+ STRIPE_CUSTOMER = "stripe:customer"
2917
+ }
2918
+ export declare enum LinkedAccountStatus {
2919
+ PENDING = 1,
2920
+ ACTIVE = 2,
2921
+ PRE_PENDING = 3
2922
+ }
2923
+ export declare enum AddonParentTypeEnum {
2924
+ RESERVATION = "reservation",
2925
+ SLOT = "slot"
2926
+ }
2927
+ export declare enum EEmailStatus {
2928
+ SENT = "sent",
2929
+ OPENED = "opened",
2930
+ PAID = "paid",
2931
+ CANCELED = "canceled"
2932
+ }
2933
+ export declare enum PaymentSettingStatusEnum {
2934
+ ENABLED = 1,
2935
+ DISABLED_REDIRECT = 2,
2936
+ DISABLED_INFO_ONLY = 3,
2937
+ DISABLED_EMAIL = 4
2938
+ }
2939
+ export declare enum NotifyMethodEnum {
2940
+ EMAIL = "Email"
2941
+ }
2942
+ export declare enum EComparisonFilter {
2943
+ LessThan = "lt",
2944
+ GreaterOrEqualTo = "gte"
2945
+ }
2946
+ export interface IEntitlementTerms {
2947
+ type: EntitlementTermsTypesEnum;
2948
+ id?: number;
2949
+ value?: string;
2950
+ minValue?: string;
2951
+ maxValue?: string;
2952
+ }
2953
+ export interface IQuestionAnswerObject {
2954
+ questionId: number;
2955
+ value: string;
2956
+ }
2957
+ export interface ILowestPriceForItem {
2958
+ itemId: number;
2959
+ itemType: ResourceNameTypeEnum;
2960
+ groupId: number;
2961
+ groupName?: string;
2962
+ price: number;
2963
+ overridesPrice: boolean;
2964
+ }
2965
+ export interface IResourcesAvailability {
2966
+ resourceType: ResourceNameTypeEnum;
2967
+ quantity: number;
2968
+ resourcesIds: number[];
2969
+ isPunchCard: boolean;
2970
+ resources?: any[];
2971
+ }
2972
+ export interface IPackageResponse {
2973
+ parentProduct: Product;
2974
+ children: IChildProduct[];
2975
+ }
2976
+ export interface IChildProduct {
2977
+ product: Product;
2978
+ relationType: PackageProductsRelationTypeEnum;
2979
+ timePeriod?: AddonTimePeriodEnum;
2980
+ }
2981
+ export interface ISeasonAttendeeInfo {
2982
+ applicationAnswers: Answer[];
2983
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2984
+ invoices: Invoice[];
2985
+ payments: Payment[];
2986
+ products: Product[];
2987
+ redeemNext: ProductsUsers;
3108
2988
  }
3109
- export declare enum SpacePropertiesEnum {
3110
- OUTDOOR = "outdoor",
3111
- INDOOR = "indoor"
2989
+ export interface ISeasonAttendeeListInfo {
2990
+ userId: number;
2991
+ userFirstName: string;
2992
+ userLastName: string;
2993
+ userGender: number;
2994
+ userBirthDate: Date;
2995
+ userProfilePicUrl: string;
2996
+ customerId: number;
2997
+ customerEmail: string;
2998
+ paymentStatus: string;
2999
+ productName: string;
3000
+ punchCard: boolean;
3112
3001
  }
3113
- export declare enum SurfacesEnum {
3114
- GRASS = "grass",
3115
- TURF = "turf",
3116
- FIELD_TURF = "fieldTurf",
3117
- ASTRO_TURF = "astroTurf",
3118
- HARDWOOD = "hardwood",
3119
- ASPHALT = "asphalt",
3120
- SAND = "sand",
3121
- ICE = "ice",
3122
- SPORT_COURT = "sportCourt"
3002
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
3003
+ segmentType: ResourceNameTypeEnum;
3004
+ participantRegisteredDate?: string;
3123
3005
  }
3124
- export declare enum RegistrationConstraintPeriodTypeEnum {
3125
- MINUTES = "minutes",
3126
- DAYS = "days"
3006
+ export declare class EventAsSeasonSegment extends Event {
3007
+ segmentType: ResourceNameTypeEnum;
3008
+ participantRegisteredDate?: string;
3127
3009
  }
3128
- export declare enum RegistrationWindowStatusEnum {
3129
- NOT_OPEN_YET = "not_opened_yet",
3130
- OPEN = "open",
3131
- CLOSED = "closed"
3010
+ export interface ITokenResonse {
3011
+ token: string;
3132
3012
  }
3133
- export declare enum RegistrationValidationStatusEnum {
3134
- FULL = "full",
3135
- ALREADY_REGISTERED = "registered",
3136
- AVAILABLE = "available",
3137
- NOT_OPEN_YET = "not opened",
3138
- ALREADY_CLOSED = "closed",
3139
- NO_PRODUCT_FOUND = "no-product-found"
3013
+ export interface IStripeBondInvoices {
3014
+ paidStripePaymentIntent: Stripe.PaymentIntent;
3015
+ bondPaidPayment: Payment;
3016
+ invoice?: Invoice;
3017
+ customer?: Customer;
3140
3018
  }
3141
- export declare enum DiscountMethodsEnum {
3142
- PERCENT = "percent",
3143
- AMOUNT = "amount"
3019
+ export interface IPartialPaymentData {
3020
+ purchasingUserId: number;
3021
+ paymentData: PurchasePaymentDto;
3022
+ amountToPay: number;
3144
3023
  }
3145
- export declare enum UserAuthorizationsTypeEnum {
3146
- ORGANIZATION = "organization"
3024
+ export interface IPayment {
3025
+ id: number;
3026
+ total: number;
3027
+ paymentMethod: PaymentMethodTypeEnum;
3028
+ status: PaymentStatusEnum;
3029
+ createdAt: Date;
3030
+ invoices: number[];
3147
3031
  }
3148
- export declare enum OrganizationLocaleDateEnum {
3149
- USA = "USA"
3032
+ export interface IPaginationData<T> {
3033
+ meta: {
3034
+ totalItems: number;
3035
+ itemsPerPage: number;
3036
+ totalPages: number;
3037
+ currentPage: number;
3038
+ };
3039
+ data: T[];
3150
3040
  }
3151
- export declare enum DateTimeFormatsEnum {
3152
- API_DATE = "YYYY/MM/DD",
3153
- API_TIME = "HH:mm:ss",
3154
- DB_DATE = "YYYY-MM-DD"
3041
+ export interface IPricesOfProductsResults {
3042
+ productId: number;
3043
+ userId: number;
3044
+ price: number;
3045
+ groupId?: number;
3046
+ groupName?: string;
3047
+ originalPrice?: number;
3048
+ priceWithoutTax: number;
3049
+ tax: number;
3050
+ isTaxInclusive: boolean;
3155
3051
  }
3156
- export declare enum SlotTypeEnum {
3157
- EXTERNAL = "external",
3158
- INTERNAL = "internal",
3159
- MAINTENANCE = "maintenance",
3160
- CUSTOM = "custom"
3052
+ export interface IPaymentMethodToFundLeft {
3053
+ paymentType: PaymentMethodTypeEnum;
3054
+ paymentMethodId: string;
3055
+ fundLeft: number;
3056
+ ccLast4?: string;
3057
+ ccBrand?: string;
3161
3058
  }
3162
- export declare enum PlatformsEnum {
3163
- CONSUMER = "consumer",
3164
- CONSUMER_CHECKOUT = "consumer_checkout",
3165
- BO = "backoffice",
3166
- MOBILE = "mobile",
3167
- CRON = "cron"
3059
+ export interface IVariantsAndTitle {
3060
+ title: VariantTitle;
3061
+ variants: Variant[];
3168
3062
  }
3169
- export declare enum ShiftStatusEnum {
3170
- OPEN = "open",
3171
- CLOSED = "closed",
3172
- MANAGMENT_CLOSED = "closed_by_manager",
3173
- RECONCILED = "reconciled"
3063
+ export interface IProgramSeasonActivityTimes {
3064
+ dayOfWeek: number;
3065
+ open: string;
3066
+ close: string;
3174
3067
  }
3175
- export declare enum EventStatusEnum {
3176
- OPEN = 1,
3177
- DRAFT = 2,
3178
- FULL = 3,
3179
- CANCELLED = 4,
3180
- CLOSED = 5,
3181
- DELETED = 6
3068
+ export interface IProgramSeasonActivityTimesAsDates {
3069
+ date: string;
3070
+ startTime: string;
3071
+ endTime: string;
3182
3072
  }
3183
- export declare enum ReservationTypeEnum {
3184
- RENTAL = "rental",
3185
- PROGRAM = "program",
3186
- MAINTENANCE = "maintenance",
3187
- CUSTOM = "custom",
3188
- INTERNAL = "internal"
3073
+ export interface IBlockedDates {
3074
+ name: string;
3075
+ startDate: Date;
3076
+ endDate: Date;
3189
3077
  }
3190
- export declare enum SlotDurationTypeEnum {
3191
- DATES = "dates",
3192
- ALL_DAY = "all day",
3193
- DURATION = "duration"
3078
+ export interface ISingleMemberForRenewal {
3079
+ member_id: number;
3080
+ member_membershipId: number;
3081
+ member_userId: number;
3082
+ member_nextPaymentMethodId?: string;
3083
+ member_nextPaymentType?: PaymentMethodTypeEnum;
3084
+ member_answerTitleIds?: number[];
3085
+ member_organizationId: number;
3086
+ product_productPrice: number;
3087
+ product_productId: number;
3088
+ invoice_payingUserId: number;
3089
+ invoice_paymentMethodId: string;
3090
+ invoice_paymentType: PaymentMethodTypeEnum;
3091
+ endDate: Date;
3092
+ membership_name: string;
3093
+ user_firstName: string;
3094
+ user_lastName: string;
3095
+ user_email: string;
3194
3096
  }
3195
- export declare enum DurationUnitTypesEnum {
3196
- MINUTES = "minutes",
3197
- HOURS = "hours"
3097
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3098
+ package_parentProductId: number;
3099
+ product2_productPrice: number;
3100
+ familyid: number;
3101
+ invoice_id: number;
3198
3102
  }
3199
- export declare enum FrequencyEnum {
3200
- NONE = "none",
3201
- WEEKLY = "weekly",
3202
- DAILY = "daily",
3203
- MONTHLY = "monthly",
3204
- YEARLY = "yearly"
3103
+ export interface IResourceRegistrationData {
3104
+ id: number;
3105
+ resourceType: ResourceNameTypeEnum;
3106
+ openNumDays?: number;
3107
+ openNumMinutes?: number;
3108
+ openTime?: string;
3109
+ closeNumDays?: number;
3110
+ closeNumMinutes?: number;
3111
+ closeTime?: string;
3112
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
3205
3113
  }
3206
- export declare enum MaintenanceTimingEnum {
3207
- BEFORE = 1,
3208
- AFTER = 2,
3209
- AT_THE_BEGINING = 3,
3210
- AT_THE_END = 4
3114
+ export interface IResourceDataForConstraintsCalc {
3115
+ id: number;
3116
+ startDate: string;
3117
+ startTime: string;
3211
3118
  }
3212
- export declare enum CreatorTypeEnum {
3213
- SPACE = "space",
3214
- PROGRAM_SEASON = "program_season",
3215
- SEASON = "season"
3119
+ export interface IRegistrationConstraintsSetting {
3120
+ numDays?: number;
3121
+ numMinutes?: number;
3216
3122
  }
3217
- export declare enum UpdatePricesTypeEnum {
3218
- INDIVIDUAL = "indvidual",
3219
- CATEGORY = "category",
3220
- GLOBAL = "global"
3123
+ export interface IAttendeeDataToNotify {
3124
+ firstName: string;
3125
+ lastName: string;
3126
+ email: string;
3127
+ sessionName: string;
3128
+ parentSessionName?: string;
3129
+ organizationName: string;
3130
+ programName: string;
3221
3131
  }
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
3132
+ export interface IEventInSchedule {
3133
+ eventId: number;
3134
+ eventName: string;
3135
+ eventStartDate: string;
3136
+ eventEndDate: string;
3137
+ eventStartTime: string;
3138
+ eventEndTime: string;
3139
+ programId: number;
3140
+ programName: string;
3141
+ programType: ProgramTypesEnum;
3142
+ sessionId: number;
3143
+ sessionName: string;
3144
+ sports: number;
3145
+ spaces: {
3146
+ spaceId: number;
3147
+ spaceName: string;
3148
+ }[];
3149
+ status?: RegistrationValidationStatusEnum;
3230
3150
  }
3231
- export declare enum ReservationMigrationStatusEnum {
3232
- NEW = "new",
3233
- NO = "no",
3234
- YES = "yes"
3151
+ export interface ISlotInSchedule {
3152
+ facilityId: number;
3153
+ facilityName: string;
3154
+ spaces: ISpaceWithSlots[];
3235
3155
  }
3236
- export declare enum ProductPackageLevelEnum {
3237
- HOUR = "hour",
3238
- SLOT = "slot",
3239
- RESERVATION = "reservation"
3156
+ export interface ISpaceWithSlots {
3157
+ id: number;
3158
+ name: string;
3159
+ slots: ISlotReservationData[];
3240
3160
  }
3241
- export declare enum CancellationStatusEnum {
3242
- IMMEDIATE = "immediate",
3243
- AUTO_RENEWAL = "auto_renewal"
3161
+ export interface ISlotReservationData {
3162
+ reservationId: number;
3163
+ reservationName: string;
3164
+ date: string;
3165
+ startTime: string;
3166
+ endTime: string;
3167
+ notes: string;
3168
+ spaceId: number;
3169
+ isRental: boolean;
3170
+ slotType: SlotTypeEnum;
3171
+ slotId: number;
3172
+ eventId: number;
3173
+ isPrivate: boolean;
3244
3174
  }
3245
- export declare enum SeasonScheduleStatusEnum {
3246
- DRAFT = 0,
3247
- PUBLISHED = 1
3175
+ export interface IRawEventInSchedule extends IEventInSchedule {
3176
+ parentSessionId: number;
3177
+ parentSessionName: string;
3178
+ eventTimezone: string;
3179
+ maxParticipants: number;
3180
+ maxMaleParticipants: number;
3181
+ maxFemaleParticipants: number;
3182
+ isPunchCard: boolean;
3248
3183
  }
3249
- export declare enum FinancialStepEnum {
3250
- VOID = "void",
3251
- REFUND = "refund",
3252
- NONE = "none",
3253
- REFUND_AND_VOID = "refund-and-void",
3254
- APPEND = "append"
3184
+ export interface IBasicSpaceAndSlotCreator {
3185
+ id: number;
3186
+ name: string;
3187
+ bookingCreatorId: number;
3255
3188
  }
3256
- export declare enum StripeAccountTypesEnum {
3257
- STRIPE = "stripe",
3258
- STRIPE_CUSTOM = "stripe:account:custom",
3259
- STRIPE_CUSTOMER = "stripe:customer"
3189
+ export interface IRawSlotInSchedule {
3190
+ startDate: string;
3191
+ endDate: string;
3192
+ startTime: string;
3193
+ endTime: string;
3194
+ reservationId: number;
3195
+ eventTitle: string;
3196
+ publicNotes: string;
3197
+ spaceId: number;
3198
+ creatorType: ResourceNameTypeEnum;
3199
+ slotType: SlotTypeEnum;
3200
+ slotId: number;
3201
+ eventId: number;
3202
+ isPrivate: boolean;
3260
3203
  }
3261
- export declare enum LinkedAccountStatus {
3262
- PENDING = 1,
3263
- ACTIVE = 2,
3264
- PRE_PENDING = 3
3204
+ export interface IPurchasedResourcesRaw {
3205
+ purchasedId: number;
3206
+ purchasedProductUserId: number;
3207
+ purchasedResourceId: number;
3208
+ purchasedResourceType: ResourceNameTypeEnum;
3209
+ purchasedStatus: PurchasedResourceStatusEnum;
3210
+ pUserId: number;
3211
+ pUserPaymentStatus: PaymentStatusEnum;
3212
+ pUserProductId: number;
3213
+ pUserProductName: string;
3214
+ pUserProductPrice: number;
3215
+ pUserProductPriceCurrency: string;
3216
+ pUserProductQuantity: number;
3217
+ pUserProductQuantityLeft: number;
3218
+ pUserUserId: number;
3265
3219
  }
3266
- export declare enum AddonParentTypeEnum {
3267
- RESERVATION = "reservation",
3268
- SLOT = "slot"
3220
+ export interface IUsersPasses {
3221
+ userId: number;
3222
+ userFirstName: string;
3223
+ userLastName: string;
3224
+ organizationId: number;
3225
+ programId: number;
3226
+ programName: string;
3227
+ sessionId: number;
3228
+ sessionName: string;
3229
+ productId: number;
3230
+ productName: string;
3231
+ productUserId: number;
3232
+ purchaseDate: Date;
3233
+ passesLeft: number;
3269
3234
  }
3270
- export declare enum EEmailStatus {
3271
- SENT = "sent",
3272
- OPENED = "opened",
3273
- PAID = "paid",
3274
- CANCELED = "canceled"
3235
+ export interface ISessionsLandingPage {
3236
+ sessionId: number;
3237
+ name: string;
3238
+ startDate: Date;
3239
+ endDate: Date;
3240
+ registrationStartDate: Date;
3241
+ registrationEndDate: Date;
3242
+ sport: SportsEnum;
3243
+ minAge: string;
3244
+ maxAge: string;
3245
+ maxParticipants?: number;
3246
+ gender: GenderEnum;
3247
+ activityTimes: ActivityTimes[];
3248
+ earlyRegistrationStartDate?: Date;
3249
+ earlyRegistrationEndDate?: Date;
3250
+ lateRegistrationStartDate?: Date;
3251
+ lateRegistrationEndDate?: Date;
3252
+ attendeeCount?: number;
3253
+ segmentsOrEvents: 'segment' | 'event';
3275
3254
  }
3276
- export declare enum PaymentSettingStatusEnum {
3277
- ENABLED = 1,
3278
- DISABLED_REDIRECT = 2,
3279
- DISABLED_INFO_ONLY = 3,
3280
- DISABLED_EMAIL = 4
3255
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3256
+ hasRequiredMembership: boolean;
3257
+ hasEntitledPricing: boolean;
3258
+ lowestPrice?: number;
3259
+ products?: ISessionLandingPageProduct[];
3281
3260
  }
3282
- export declare enum NotifyMethodEnum {
3283
- EMAIL = "Email"
3261
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3262
+ hasRequiredMembership: boolean;
3263
+ hasEntitledPricing: boolean;
3264
+ products?: ISessionLandingPageProduct[];
3265
+ segments?: Event[] | ProgramSeason[];
3266
+ programName: string;
3267
+ programId: number;
3268
+ levelOfPlay: LevelOfPlayEnum[];
3269
+ registrationConstraints: IResourceRegistrationData[];
3284
3270
  }
3285
- export declare enum EComparisonFilter {
3286
- LessThan = "lt",
3287
- GreaterOrEqualTo = "gte"
3271
+ export interface ISlimAddons {
3272
+ addons?: {
3273
+ id: number;
3274
+ timePeriod: AddonTimePeriodEnum;
3275
+ name: string;
3276
+ productType?: ProductTypesEnum;
3277
+ productSubType?: string;
3278
+ }[];
3288
3279
  }
3289
- export declare class Athlete extends BondBaseEntity {
3290
- userId: number | null;
3291
- metadata: object | null;
3292
- athleteSports: AthleteSports[];
3280
+ export interface ISessionLandingPageProduct extends ISlimAddons {
3281
+ id: number;
3282
+ name: string;
3283
+ startDate?: Date;
3284
+ endDate?: Date;
3285
+ downpayment?: number;
3286
+ description?: string;
3287
+ prices: Price[];
3288
+ productSubType?: ProductSubTypesEnum;
3289
+ punchCard: boolean;
3290
+ isAddon: boolean;
3291
+ defaultPriceId?: number;
3293
3292
  }
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;
3293
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3294
+ destinationId?: string;
3295
+ stripeCustomerId?: string;
3296
+ fee?: number;
3297
+ }
3298
+ export interface IReservationCreatorData {
3299
+ type: ResourceNameTypeEnum;
3300
+ id: number;
3301
+ organizationId: number;
3302
+ startDate: string;
3303
+ endDate: string;
3304
+ sportId: number;
3301
3305
  }
3302
3306
  export declare class ColumnNumericTransformer {
3303
3307
  to(data: number): number;
@@ -3363,12 +3367,14 @@ export declare class ProductImportDto {
3363
3367
  resourceIds: number[];
3364
3368
  oldId: number;
3365
3369
  }
3366
- export declare class PunchPassDto {
3367
- CustomerID: string;
3368
- QuantityLeft: number;
3369
- BondProgramID: number;
3370
- BondSessionID: number;
3371
- ProductID: number;
3370
+ export declare class MatchParticipants extends BondBaseEntity {
3371
+ matchId: number | null;
3372
+ ordinal: number | null;
3373
+ outcomeOrdinal: number | null;
3374
+ resultMetaData: any | null;
3375
+ points: number | null;
3376
+ score: number | null;
3377
+ gameSlotId: number | null;
3372
3378
  }
3373
3379
  export declare class ImportedSlotProductDto {
3374
3380
  slotID?: string;
@@ -3425,20 +3431,17 @@ export declare class GameSlots extends BondBaseEntity {
3425
3431
  entityType: string;
3426
3432
  entityId: number;
3427
3433
  }
3428
- export declare class MatchParticipants extends BondBaseEntity {
3429
- matchId: number | null;
3430
- ordinal: number | null;
3431
- outcomeOrdinal: number | null;
3432
- resultMetaData: any | null;
3433
- points: number | null;
3434
- score: number | null;
3435
- gameSlotId: number | null;
3436
- }
3437
3434
  export declare class Matches extends BondBaseEntity {
3438
3435
  eventId: number | null;
3439
3436
  status: number | null;
3440
3437
  excludeStandings: boolean | null;
3441
3438
  }
3439
+ export declare class SeasonRounds extends BondBaseEntity {
3440
+ seasonId: number;
3441
+ ordinal?: number;
3442
+ divisionId?: number;
3443
+ name: string;
3444
+ }
3442
3445
  export declare class RoundEvents extends BaseEntity {
3443
3446
  roundId: number;
3444
3447
  eventId: number;
@@ -3446,21 +3449,11 @@ export declare class RoundEvents extends BaseEntity {
3446
3449
  createdAt: Date;
3447
3450
  updatedAt: Date;
3448
3451
  }
3449
- export declare class SeasonRounds extends BondBaseEntity {
3450
- seasonId: number;
3451
- ordinal?: number;
3452
- divisionId?: number;
3453
- name: string;
3454
- }
3455
3452
  export declare class TeamEvents extends BondBaseEntity {
3456
3453
  teamId: number | null;
3457
3454
  eventId: number | null;
3458
3455
  status: number | null;
3459
3456
  }
3460
- export declare class Lock extends BondBaseEntity {
3461
- name: string;
3462
- locked?: Date;
3463
- }
3464
3457
  export interface ValidatedMonthAndDay {
3465
3458
  valid: boolean;
3466
3459
  month?: number;
@@ -3470,12 +3463,35 @@ export interface ValidationReason {
3470
3463
  valid: boolean;
3471
3464
  reason?: string;
3472
3465
  }
3466
+ export declare class Lock extends BondBaseEntity {
3467
+ name: string;
3468
+ locked?: Date;
3469
+ }
3470
+ export declare class PunchPassDto {
3471
+ CustomerID: string;
3472
+ QuantityLeft: number;
3473
+ BondProgramID: number;
3474
+ BondSessionID: number;
3475
+ ProductID: number;
3476
+ }
3473
3477
  export declare class CreateMonitorConfigDto {
3474
3478
  facilityId: number;
3475
3479
  name: string;
3476
3480
  code: string;
3477
3481
  config: any;
3478
3482
  }
3483
+ export interface PaymentStatus {
3484
+ parentId: number;
3485
+ paymentStatus: ReservationPaymentStatusEnum;
3486
+ approvalStatus?: ReservationStatusEnum;
3487
+ id?: number;
3488
+ }
3489
+ export interface PaymentStatusesDict {
3490
+ [id: number]: PaymentStatus[];
3491
+ }
3492
+ export interface PaymentStatusDict {
3493
+ [id: number]: ReservationPaymentStatusEnum;
3494
+ }
3479
3495
  export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3480
3496
  facilityId: number;
3481
3497
  code: string;
@@ -3488,6 +3504,92 @@ export declare class NotifyTracker extends BondBaseEntity {
3488
3504
  notfiyMethodtype: NotifyMethodEnum;
3489
3505
  destination: string;
3490
3506
  }
3507
+ export declare class ByOrganizationIdDto {
3508
+ organizationId: number;
3509
+ }
3510
+ export declare class OptionalFindByOrganizationIdDto {
3511
+ organizationId?: number;
3512
+ }
3513
+ export declare class FindUnallocatedEventsIdsFiltersDto {
3514
+ programsIds?: string;
3515
+ sessionsIds?: string;
3516
+ segmentsIds?: string;
3517
+ startDate?: string;
3518
+ endDate?: string;
3519
+ months?: string;
3520
+ dow?: string;
3521
+ }
3522
+ export declare class FindUnallocatedEventsFiltersDto extends PaginationQuery {
3523
+ programsIds?: string;
3524
+ sessionsIds?: string;
3525
+ segmentsIds?: string;
3526
+ startDate?: string;
3527
+ endDate?: string;
3528
+ months?: string;
3529
+ dow?: string;
3530
+ }
3531
+ export declare class Organization extends BondBaseEntity {
3532
+ name: string | null;
3533
+ email: string | null;
3534
+ twitter: string | null;
3535
+ facebook: string | null;
3536
+ instagram: string | null;
3537
+ website: string | null;
3538
+ blog: string | null;
3539
+ phoneNumber: string | null;
3540
+ waiverDoc: string | null;
3541
+ about: string | null;
3542
+ tagline: string | null;
3543
+ status: number | null;
3544
+ addressId: number | null;
3545
+ merchantId: number | null;
3546
+ userCreatorId: number | null;
3547
+ parentId: number | null;
3548
+ paymentSettings: object | null;
3549
+ settings: object | null;
3550
+ isClaimed: boolean | null;
3551
+ sports: number[] | null;
3552
+ mainMediaId: number | null;
3553
+ deletedAt: Date | null;
3554
+ organizationActivityTypes: number[] | null;
3555
+ organizationTypes: number[] | null;
3556
+ organizationAudienceTypes: number[] | null;
3557
+ organizationGenders: number[] | null;
3558
+ questionnaireId: number | null;
3559
+ membershipQuestionnaireId: number | null;
3560
+ feeRate: number;
3561
+ feeAddDollarRate: number;
3562
+ achFeeRate: number;
3563
+ achFeeAddDollarRate: number;
3564
+ maxAchFee: number;
3565
+ cashFeeRate: number;
3566
+ cashFeeAddDollarRate: number;
3567
+ terminalFeeRate: number;
3568
+ terminalFeeAddDollarRate: number;
3569
+ checkFeeRate: number;
3570
+ checkFeeAddDollarRate: number;
3571
+ otherFeeRate: number;
3572
+ otherFeeAddDollarRate: number;
3573
+ balanceFeeRate: number;
3574
+ balanceFeeAddDollarRate: number;
3575
+ address: Address;
3576
+ mainMedia: Media;
3577
+ brandings: OrganizationBranding[];
3578
+ brandingsV2?: OrganizationBranding[];
3579
+ }
3580
+ export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3581
+ mainAdminUserId?: number;
3582
+ }
3583
+ export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3584
+ key?: string;
3585
+ vaule?: string;
3586
+ version: number;
3587
+ organization: Organization;
3588
+ }
3589
+ export declare class OrganizationUsers extends BondBaseEntity {
3590
+ organisationId: number | null;
3591
+ userId: number | null;
3592
+ }
3491
3593
  export declare class CustomerIdDto {
3492
3594
  customerId: number;
3493
3595
  }
@@ -3596,184 +3698,19 @@ export declare class UpdateNoteContentDto extends CreateNoteDto {
3596
3698
  export declare class NotePrivacyDto {
3597
3699
  filter: string;
3598
3700
  }
3599
- export declare class RevertMetaDto {
3600
- removedResources: RemoveResourceDto[];
3601
- }
3602
- export declare class RemoveResourceDto {
3603
- resourceType: ResourceNameTypeEnum;
3604
- resourceId: number;
3605
- lineItemId: number;
3606
- }
3607
- export declare class SendRequestDto {
3608
- invoiceId: number;
3609
- userId: number;
3610
- sendToEmail: string;
3611
- memo?: string;
3612
- }
3613
- export declare class RefundDto {
3614
- invoiceId: number;
3615
- lineItems: RefundLineItemAmountDto[];
3616
- refundLineItemAmountDict?: {
3617
- [id: number]: number;
3618
- };
3619
- refunds: PaymentMethodDto[];
3620
- refundType: RefundTypeEnum;
3621
- reasonId: number;
3622
- note?: string;
3623
- shiftId?: number;
3624
- meta?: RevertMetaDto;
3625
- }
3626
- export declare class PaymentMethodDto {
3627
- paymentMethodType: PaymentMethodTypeEnum;
3628
- amount: number;
3629
- paymentMethodId?: string;
3630
- }
3631
- export declare class RefundLineItemAmountDto {
3632
- id: number;
3633
- refundAmount: number;
3634
- }
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
- export interface RefundResult extends PaymentsResults {
3683
- 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;
3701
+ export declare class RevertMetaDto {
3702
+ removedResources: RemoveResourceDto[];
3770
3703
  }
3771
- export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3772
- mainAdminUserId?: number;
3704
+ export declare class RemoveResourceDto {
3705
+ resourceType: ResourceNameTypeEnum;
3706
+ resourceId: number;
3707
+ lineItemId: number;
3773
3708
  }
3774
- export declare class OrganizationUsers extends BondBaseEntity {
3775
- organisationId: number | null;
3776
- userId: number | null;
3709
+ export declare class SendRequestDto {
3710
+ invoiceId: number;
3711
+ userId: number;
3712
+ sendToEmail: string;
3713
+ memo?: string;
3777
3714
  }
3778
3715
  export interface UnallocatedEventsFilters {
3779
3716
  programsIds?: number[];
@@ -3801,23 +3738,85 @@ export interface IUnallocatedEventRes {
3801
3738
  export interface IUnallocatedEventsIdsRes {
3802
3739
  data: IUnallocatedEventRes[];
3803
3740
  }
3741
+ export declare class RefundDto {
3742
+ invoiceId: number;
3743
+ lineItems: RefundLineItemAmountDto[];
3744
+ refundLineItemAmountDict?: {
3745
+ [id: number]: number;
3746
+ };
3747
+ refunds: PaymentMethodDto[];
3748
+ refundType: RefundTypeEnum;
3749
+ reasonId: number;
3750
+ note?: string;
3751
+ shiftId?: number;
3752
+ meta?: RevertMetaDto;
3753
+ }
3754
+ export declare class PaymentMethodDto {
3755
+ paymentMethodType: PaymentMethodTypeEnum;
3756
+ amount: number;
3757
+ paymentMethodId?: string;
3758
+ }
3759
+ export declare class RefundLineItemAmountDto {
3760
+ id: number;
3761
+ refundAmount: number;
3762
+ }
3763
+ export interface PaymentResult {
3764
+ paymentMethodId: string;
3765
+ paymentMethodType: PaymentMethodTypeEnum;
3766
+ amount: number;
3767
+ receiptId?: number;
3768
+ paymentMethod4Digits?: string;
3769
+ errorMessage?: string;
3770
+ wasSuccessful: boolean;
3771
+ }
3772
+ export interface PaymentsResults {
3773
+ success: PaymentResult[];
3774
+ failed: PaymentResult[];
3775
+ }
3776
+ export interface InvoicePaymentSum {
3777
+ priceSum: number;
3778
+ paidSum: number;
3779
+ }
3780
+ export interface ExtendedLineItems {
3781
+ memberships: LineItems[];
3782
+ programs: LineItems[];
3783
+ leagues: LineItems[];
3784
+ rentals: LineItems[];
3785
+ products: LineItems[];
3786
+ events: LineItems[];
3787
+ }
3788
+ export interface RefundResult extends PaymentsResults {
3789
+ successfulLineItems: RefundLineItemAmountDto[];
3790
+ failedLineItems: RefundLineItemAmountDto[];
3791
+ invoice?: Invoice;
3792
+ }
3793
+ export interface RefundResultWithLineItemsDict extends PaymentsResults {
3794
+ successfulLineItems: Map<number, RefundLineItemAmountDto>;
3795
+ failedLineItems: Map<number, RefundLineItemAmountDto>;
3796
+ totalAmountProcessed: number;
3797
+ }
3798
+ export declare class ChangeRolePermissionsDto {
3799
+ permissionIds: number[];
3800
+ }
3801
+ export declare class VoidDto {
3802
+ lineItems: VoidLineItemDto[];
3803
+ meta?: RevertMetaDto;
3804
+ }
3805
+ export declare class VoidLineItemDto {
3806
+ id: number;
3807
+ quantity?: number;
3808
+ isEdit?: boolean;
3809
+ amount?: number;
3810
+ }
3811
+ export declare class CreateRoleDto {
3812
+ name: string;
3813
+ }
3804
3814
  export declare class Role extends OrganizationConnectionBaseEntity {
3805
3815
  name: string;
3806
3816
  deletedAt?: Date;
3807
3817
  permissions: Permission[];
3808
3818
  usersRoles: UserRole[];
3809
3819
  }
3810
- export declare class Permission extends BondBaseEntity {
3811
- name: string;
3812
- deletedAt?: Date;
3813
- }
3814
- export declare class UserRole extends OrganizationConnectionBaseEntity {
3815
- deletedAt?: Date;
3816
- userId: number;
3817
- roleId: number;
3818
- role: Role;
3819
- user: User;
3820
- }
3821
3820
  export declare class AddonDto {
3822
3821
  productId: number;
3823
3822
  id?: number;
@@ -3845,32 +3844,6 @@ export declare class EditAddonDto {
3845
3844
  totalPrice: number;
3846
3845
  unitPrice?: number;
3847
3846
  }
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
3847
  export declare class InvoiceDto {
3875
3848
  invoiceId?: string | null;
3876
3849
  organizationId: number;
@@ -3912,6 +3885,39 @@ export declare class AddSlotsDto extends UpdateInvoiceDto {
3912
3885
  export declare class AddSegmentsDto extends UpdateInvoiceDto {
3913
3886
  segments: SegmentDto[];
3914
3887
  }
3888
+ export declare class UserRole extends OrganizationConnectionBaseEntity {
3889
+ deletedAt?: Date;
3890
+ userId: number;
3891
+ roleId: number;
3892
+ role: Role;
3893
+ user: User;
3894
+ }
3895
+ export declare class LineItemDto {
3896
+ id?: number;
3897
+ invoiceId?: number;
3898
+ type: LineItemsStatusEnum;
3899
+ organizationId: number;
3900
+ userId?: number;
3901
+ productId: number;
3902
+ product?: Product;
3903
+ productType: ProductTypesEnum;
3904
+ ordinal?: number;
3905
+ price: number;
3906
+ originalPrice?: number;
3907
+ paidAmount?: number;
3908
+ currency: CurrencyEnum;
3909
+ paymentStatus?: PaymentStatusEnum;
3910
+ isRefunded?: boolean;
3911
+ isTaxInclusive?: boolean;
3912
+ taxPrecent?: number;
3913
+ unitPrice?: number;
3914
+ quantity: number;
3915
+ resources?: PurchasedResourceDto[];
3916
+ relationType?: 'reservation-addon' | 'slots' | 'slot_addons';
3917
+ unitPriceWithTax?: number;
3918
+ unitTaxPrice?: number;
3919
+ parentOrdinal?: number;
3920
+ }
3915
3921
  export declare class MaintenanceDto {
3916
3922
  id?: number;
3917
3923
  title: string;
@@ -3919,6 +3925,10 @@ export declare class MaintenanceDto {
3919
3925
  maintenanceDurationdurationType: DurationUnitTypesEnum;
3920
3926
  maintenanceTiming: MaintenanceTimingEnum;
3921
3927
  }
3928
+ export declare class Permission extends BondBaseEntity {
3929
+ name: string;
3930
+ deletedAt?: Date;
3931
+ }
3922
3932
  export declare class PurchasedResourceDto {
3923
3933
  resourceId?: number;
3924
3934
  resourceType: ResourceNameTypeEnum;
@@ -3927,6 +3937,71 @@ export declare class PurchasedResourceDto {
3927
3937
  endDate?: string;
3928
3938
  endTime?: string;
3929
3939
  }
3940
+ export declare class SegmentDto {
3941
+ id?: number;
3942
+ title: string;
3943
+ isPrivate: boolean;
3944
+ resourceIds: number[];
3945
+ sportId?: number;
3946
+ series: SeriesDto[];
3947
+ addonIds?: number[];
3948
+ publicNotesForSlots?: string;
3949
+ privateNotesForSlots?: string;
3950
+ }
3951
+ declare class AnswerDto {
3952
+ questionId: number;
3953
+ value: any;
3954
+ }
3955
+ export declare class BookedSessionDto {
3956
+ startDate: string;
3957
+ endDate: string;
3958
+ timezone: string;
3959
+ spaceId: number;
3960
+ }
3961
+ declare class AddonV1Dto {
3962
+ resourcePackageId: number;
3963
+ resourcePackageAmount: number;
3964
+ resourcePackagePrice: number;
3965
+ }
3966
+ export declare class ReservationV1Dto {
3967
+ organizationId: number;
3968
+ name: string;
3969
+ dayOfWeek: number;
3970
+ startTime: string;
3971
+ description: string;
3972
+ sport: number;
3973
+ price: number;
3974
+ resourcePackageId: number;
3975
+ resourcePackageAmount: number;
3976
+ bookedSessions: BookedSessionDto[];
3977
+ addons: AddonV1Dto[];
3978
+ }
3979
+ export declare class BookingV1Dto {
3980
+ organizationId: number;
3981
+ reservations: ReservationV1Dto[];
3982
+ answers: AnswerDto[];
3983
+ paymentData: PurchasePaymentDto;
3984
+ skipPayment: boolean;
3985
+ cashPayment: boolean;
3986
+ requestOnly: boolean;
3987
+ }
3988
+ export declare class SeriesDto {
3989
+ id?: number;
3990
+ startDate: string;
3991
+ startTime?: string;
3992
+ endDate?: string;
3993
+ endTime?: string;
3994
+ slotDurationType: SlotDurationTypeEnum;
3995
+ durationEndsAfter?: number;
3996
+ durationUnit?: DurationUnitTypesEnum;
3997
+ frequency: FrequencyEnum;
3998
+ repeatEvery?: number;
3999
+ repeatOn?: number[];
4000
+ repeatEndDate?: string;
4001
+ numberOccurrences?: number;
4002
+ maintenance?: MaintenanceDto[];
4003
+ slots?: SlotDto[];
4004
+ }
3930
4005
  export declare class ReservationDto {
3931
4006
  id?: number;
3932
4007
  organizationId?: number;
@@ -4068,44 +4143,102 @@ export declare class EditReservationDetailsDto {
4068
4143
  publicNotes?: string;
4069
4144
  privateNotes?: string;
4070
4145
  }
4071
- export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
4072
- updateAddons?: boolean;
4073
- updateMaintenance?: boolean;
4074
- }
4075
- export declare class ReservationNotifyDto {
4076
- notifyMethods?: NotifyMethodEnum[];
4077
- }
4078
- export declare class UpdateReservationInvoiceDto {
4079
- updateAddons?: boolean;
4080
- updateMaintenance?: boolean;
4081
- }
4082
- export declare class SegmentDto {
4083
- id?: number;
4146
+ export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
4147
+ updateAddons?: boolean;
4148
+ updateMaintenance?: boolean;
4149
+ }
4150
+ export declare class ReservationNotifyDto {
4151
+ notifyMethods?: NotifyMethodEnum[];
4152
+ }
4153
+ export declare class UpdateReservationInvoiceDto {
4154
+ updateAddons?: boolean;
4155
+ updateMaintenance?: boolean;
4156
+ }
4157
+ export declare class Reservation extends OrganizationConnectionBaseEntity {
4158
+ name?: string;
4159
+ description?: string;
4160
+ approvalStatus?: ReservationStatusEnum;
4161
+ privacySetting?: string;
4162
+ reservationType?: ReservationTypeEnum;
4163
+ invoiceId?: string;
4164
+ customerId?: number;
4165
+ customer?: Customer;
4166
+ price?: number;
4167
+ paymentStatus?: ReservationPaymentStatusEnum;
4168
+ startTime?: string;
4169
+ startDate?: Date;
4170
+ endDate?: Date;
4171
+ creatorId?: number;
4172
+ creatorType?: ResourceNameTypeEnum;
4173
+ userCreatorId?: number;
4174
+ sportType?: number;
4175
+ deletedAt?: Date;
4176
+ publicNotes?: string;
4177
+ privateNotes?: string;
4178
+ forms?: number[] | null;
4179
+ answerTitleIds?: number[] | null;
4180
+ segments?: Segment[];
4181
+ migrationStatus?: string;
4182
+ addons: Addon[];
4183
+ overrideProductsPrice: {
4184
+ productId: number;
4185
+ price: number;
4186
+ }[];
4187
+ targetGlobalPrice?: number;
4188
+ slots: Slot[];
4189
+ }
4190
+ export declare class Segment extends OrganizationConnectionBaseEntity {
4191
+ deletedAt?: Date;
4192
+ reservationId: number;
4084
4193
  title: string;
4085
4194
  isPrivate: boolean;
4086
- resourceIds: number[];
4087
- sportId?: number;
4088
- series: SeriesDto[];
4089
- addonIds?: number[];
4195
+ resourceIds?: number[];
4196
+ sportId: number;
4197
+ reservation?: Reservation;
4198
+ series?: Series[];
4199
+ addonIds?: number[] | null;
4090
4200
  publicNotesForSlots?: string;
4091
4201
  privateNotesForSlots?: string;
4202
+ slots?: Slot[];
4092
4203
  }
4093
- export declare class SeriesDto {
4094
- id?: number;
4095
- startDate: string;
4096
- startTime?: string;
4097
- endDate?: string;
4098
- endTime?: string;
4099
- slotDurationType: SlotDurationTypeEnum;
4100
- durationEndsAfter?: number;
4101
- durationUnit?: DurationUnitTypesEnum;
4102
- frequency: FrequencyEnum;
4103
- repeatEvery?: number;
4204
+ export declare class Series extends OrganizationConnectionBaseEntity {
4205
+ deletedAt?: Date;
4206
+ segmentId: number;
4207
+ segment?: Segment;
4208
+ slots?: Slot[];
4209
+ slotDurationType: string;
4210
+ durationEndsAfter: number;
4211
+ durationUnit: string;
4212
+ startDate?: Date;
4213
+ endDate?: Date;
4214
+ startTime: string;
4215
+ endTime: string;
4216
+ frequency: string;
4217
+ repeatEvery: number;
4104
4218
  repeatOn?: number[];
4105
- repeatEndDate?: string;
4219
+ repeatEndDate?: Date;
4106
4220
  numberOccurrences?: number;
4107
- maintenance?: MaintenanceDto[];
4108
- slots?: SlotDto[];
4221
+ resources?: Resource[];
4222
+ }
4223
+ export declare class Addon extends OrganizationConnectionBaseEntity {
4224
+ parentId: number;
4225
+ parentType: AddonParentTypeEnum;
4226
+ productId: number;
4227
+ product?: Product;
4228
+ quantity: number;
4229
+ unitPrice: number;
4230
+ totalPrice: number;
4231
+ approvalStatus: ReservationStatusEnum;
4232
+ paymentStatus: ReservationPaymentStatusEnum;
4233
+ level?: ProductPackageLevelEnum;
4234
+ resourceId?: number;
4235
+ resource?: Resource;
4236
+ invoiceId?: number;
4237
+ invoice?: Invoice;
4238
+ productUserId?: number;
4239
+ productUser?: ProductsUsers;
4240
+ previousProductUsersIds?: number[];
4241
+ previousProductUsers?: ProductsUsers[];
4109
4242
  }
4110
4243
  export declare class SlotDateTimeAndSpace {
4111
4244
  startDate: string;
@@ -4177,135 +4310,6 @@ export declare class TimeSlotsDto {
4177
4310
  export declare class SlotsIdsDto {
4178
4311
  slotsIds: number[];
4179
4312
  }
4180
- declare class AnswerDto {
4181
- questionId: number;
4182
- value: any;
4183
- }
4184
- export declare class BookedSessionDto {
4185
- startDate: string;
4186
- endDate: string;
4187
- timezone: string;
4188
- spaceId: number;
4189
- }
4190
- declare class AddonV1Dto {
4191
- resourcePackageId: number;
4192
- resourcePackageAmount: number;
4193
- resourcePackagePrice: number;
4194
- }
4195
- export declare class ReservationV1Dto {
4196
- organizationId: number;
4197
- name: string;
4198
- dayOfWeek: number;
4199
- startTime: string;
4200
- description: string;
4201
- sport: number;
4202
- price: number;
4203
- resourcePackageId: number;
4204
- resourcePackageAmount: number;
4205
- bookedSessions: BookedSessionDto[];
4206
- addons: AddonV1Dto[];
4207
- }
4208
- export declare class BookingV1Dto {
4209
- organizationId: number;
4210
- reservations: ReservationV1Dto[];
4211
- answers: AnswerDto[];
4212
- paymentData: PurchasePaymentDto;
4213
- skipPayment: boolean;
4214
- cashPayment: boolean;
4215
- requestOnly: boolean;
4216
- }
4217
- export declare class Addon extends OrganizationConnectionBaseEntity {
4218
- parentId: number;
4219
- parentType: AddonParentTypeEnum;
4220
- productId: number;
4221
- product?: Product;
4222
- quantity: number;
4223
- unitPrice: number;
4224
- totalPrice: number;
4225
- approvalStatus: ReservationStatusEnum;
4226
- paymentStatus: ReservationPaymentStatusEnum;
4227
- level?: ProductPackageLevelEnum;
4228
- resourceId?: number;
4229
- resource?: Resource;
4230
- invoiceId?: number;
4231
- invoice?: Invoice;
4232
- productUserId?: number;
4233
- productUser?: ProductsUsers;
4234
- previousProductUsersIds?: number[];
4235
- previousProductUsers?: ProductsUsers[];
4236
- }
4237
- export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4238
- deletedAt?: Date;
4239
- reservationId: number;
4240
- invoiceId: number;
4241
- slotId: number;
4242
- }
4243
- export declare class Reservation extends OrganizationConnectionBaseEntity {
4244
- name?: string;
4245
- description?: string;
4246
- approvalStatus?: ReservationStatusEnum;
4247
- privacySetting?: string;
4248
- reservationType?: ReservationTypeEnum;
4249
- invoiceId?: string;
4250
- customerId?: number;
4251
- customer?: Customer;
4252
- price?: number;
4253
- paymentStatus?: ReservationPaymentStatusEnum;
4254
- startTime?: string;
4255
- startDate?: Date;
4256
- endDate?: Date;
4257
- creatorId?: number;
4258
- creatorType?: ResourceNameTypeEnum;
4259
- userCreatorId?: number;
4260
- sportType?: number;
4261
- deletedAt?: Date;
4262
- publicNotes?: string;
4263
- privateNotes?: string;
4264
- forms?: number[] | null;
4265
- answerTitleIds?: number[] | null;
4266
- segments?: Segment[];
4267
- migrationStatus?: string;
4268
- addons: Addon[];
4269
- overrideProductsPrice: {
4270
- productId: number;
4271
- price: number;
4272
- }[];
4273
- targetGlobalPrice?: number;
4274
- slots: Slot[];
4275
- }
4276
- export declare class Segment extends OrganizationConnectionBaseEntity {
4277
- deletedAt?: Date;
4278
- reservationId: number;
4279
- title: string;
4280
- isPrivate: boolean;
4281
- resourceIds?: number[];
4282
- sportId: number;
4283
- reservation?: Reservation;
4284
- series?: Series[];
4285
- addonIds?: number[] | null;
4286
- publicNotesForSlots?: string;
4287
- privateNotesForSlots?: string;
4288
- slots?: Slot[];
4289
- }
4290
- export declare class Series extends OrganizationConnectionBaseEntity {
4291
- deletedAt?: Date;
4292
- segmentId: number;
4293
- segment?: Segment;
4294
- slots?: Slot[];
4295
- slotDurationType: string;
4296
- durationEndsAfter: number;
4297
- durationUnit: string;
4298
- startDate?: Date;
4299
- endDate?: Date;
4300
- startTime: string;
4301
- endTime: string;
4302
- frequency: string;
4303
- repeatEvery: number;
4304
- repeatOn?: number[];
4305
- repeatEndDate?: Date;
4306
- numberOccurrences?: number;
4307
- resources?: Resource[];
4308
- }
4309
4313
  export declare class Slot extends OrganizationConnectionBaseEntity {
4310
4314
  constructor();
4311
4315
  defineIsReverted(): void;
@@ -4373,12 +4377,6 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
4373
4377
  conflictsCount?: number;
4374
4378
  conflicts?: Slot[];
4375
4379
  }
4376
- export declare class ChangeRolePermissionsDto {
4377
- permissionIds: number[];
4378
- }
4379
- export declare class CreateRoleDto {
4380
- name: string;
4381
- }
4382
4380
  export declare type TSlotAndType = {
4383
4381
  type: 'slots' | 'slot_addons';
4384
4382
  slotsForProduct: {
@@ -4611,12 +4609,15 @@ export interface AddonMetadata {
4611
4609
  totalPrice: number;
4612
4610
  product?: Product;
4613
4611
  }
4612
+ export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4613
+ deletedAt?: Date;
4614
+ reservationId: number;
4615
+ invoiceId: number;
4616
+ slotId: number;
4617
+ }
4614
4618
  export declare class CloseShiftDto {
4615
4619
  closingCashAmount: number;
4616
4620
  }
4617
- export declare class FindShiftsByIdsDto {
4618
- shiftIds: number[];
4619
- }
4620
4621
  export declare class FindShiftsFiltersDto {
4621
4622
  statuses?: string;
4622
4623
  stationIds?: string;
@@ -4637,12 +4638,8 @@ export declare class FindShiftsFormattedFilters {
4637
4638
  startDate?: Date;
4638
4639
  endDate?: Date;
4639
4640
  }
4640
- export declare class ShiftManagementClosingAmount {
4641
- shiftId: number;
4642
- managementClosingCashAmount: number;
4643
- }
4644
- export declare class ManagementClosingOfShiftsDto {
4645
- managementClosingData: ShiftManagementClosingAmount[];
4641
+ export declare class FindShiftsByIdsDto {
4642
+ shiftIds: number[];
4646
4643
  }
4647
4644
  export declare class OpenShiftDto {
4648
4645
  openingCashAmount: number;
@@ -4677,6 +4674,13 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4677
4674
  closingManager?: User;
4678
4675
  reconcilingUser?: User;
4679
4676
  }
4677
+ export declare class ShiftManagementClosingAmount {
4678
+ shiftId: number;
4679
+ managementClosingCashAmount: number;
4680
+ }
4681
+ export declare class ManagementClosingOfShiftsDto {
4682
+ managementClosingData: ShiftManagementClosingAmount[];
4683
+ }
4680
4684
  export default interface IWebflowProgram {
4681
4685
  name: string;
4682
4686
  id: number;