@bondsports/types 0.0.96 → 0.0.99

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,71 +20,6 @@ export declare class UserAnswersDto {
20
20
  export declare class GetByQuestionnaireIdsDto {
21
21
  questionnaireIds: string;
22
22
  }
23
- export declare class FindBookingTypeSettingDto {
24
- organizationId: number;
25
- facilityId: number;
26
- spaceId: number;
27
- bookingDate: string;
28
- bookingTime: string;
29
- }
30
- export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
31
- membershipId: number;
32
- }
33
- export declare class ImportProductsFromDB {
34
- buDate: string;
35
- }
36
- export declare class ImportCustomerFromCSV {
37
- fileName: string;
38
- startIndex?: number;
39
- }
40
- export declare class ImportProgramsFileDto extends ImportCustomerFromCSV {
41
- resolveInvoices: string;
42
- }
43
- export declare class ImportDashCustomerDto extends ImportCustomerFromCSV {
44
- membershipId: number;
45
- onlyDashIds: string;
46
- }
47
- export declare class ImportRentalsFromCSV extends ImportCustomerFromCSV {
48
- facilityId: number;
49
- }
50
- export declare class ByOrganizationIdCustomerIdDto extends ByOrganizationIdDto {
51
- customerId: number;
52
- }
53
- export declare class FindCustomersByOrganizationIdFiltersDto extends PaginationQuery {
54
- nameSearch?: string;
55
- fuzzy?: string;
56
- customerType?: CustomerTypeEnum;
57
- customersIds?: string;
58
- }
59
- export declare class AddCustomerNotesDto {
60
- customerNotes: CustomerNoteDto[];
61
- }
62
- export declare class CustomerNoteDto {
63
- id?: number;
64
- description: string;
65
- pinToTop?: boolean;
66
- }
67
- export declare class AddEditCustomerDto {
68
- firstName?: string;
69
- lastName?: string;
70
- entityId?: number;
71
- entityType?: CustomerTypeEnum;
72
- email?: string;
73
- color?: string;
74
- street?: string;
75
- city?: string;
76
- state?: string;
77
- zip?: string;
78
- phoneNumber?: string;
79
- mainMediaId?: number;
80
- creatorId?: number;
81
- creatorType?: ResourceNameTypeEnum;
82
- userCreatorId?: number;
83
- gender?: GenderEnum;
84
- birthDate?: string;
85
- emergencyContactName?: string;
86
- emergencyContactPhone?: string;
87
- }
88
23
  export declare class FindEventByIdDto {
89
24
  eventId: number;
90
25
  organizationId: number;
@@ -186,49 +121,6 @@ export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
186
121
  isWaiverSigned?: string;
187
122
  statuses?: string;
188
123
  }
189
- export declare class AddressDto {
190
- city: string;
191
- state: string;
192
- country: string;
193
- geo: number[];
194
- }
195
- export declare class OpeningTimeDto {
196
- open: string;
197
- close: string;
198
- dayOfWeek: number;
199
- }
200
- export declare class CreateFacilityDto {
201
- name: string;
202
- sports: number[];
203
- description?: string;
204
- longDescription?: string;
205
- info?: string;
206
- address: AddressDto;
207
- timezone: string;
208
- amenities: number[];
209
- openingTimes: OpeningTimeDto[];
210
- resourcesIds?: number[];
211
- }
212
- export declare class UpdateFacilityDetailsDto {
213
- name?: string;
214
- description?: string;
215
- longDescription?: string;
216
- info?: string;
217
- address?: AddressDto;
218
- timezone?: string;
219
- }
220
- export declare class UpdateFacilityOpeningTimesDto {
221
- openingTimes: OpeningTimeDto[];
222
- }
223
- export declare class UpdateFacilitySportsDto {
224
- sports: number[];
225
- }
226
- export declare class UpdateFacilityAmenitiesDto {
227
- amenities: number[];
228
- }
229
- export declare class FindFacilitiesOptionsDto extends PaginationQuery {
230
- nameSearch?: string;
231
- }
232
124
  export declare class FindFamilyAccountsDto {
233
125
  userId: number;
234
126
  }
@@ -261,18 +153,6 @@ export declare class RemoveUserFromFamilyAccountDto {
261
153
  userId: number;
262
154
  familyAccountId: number;
263
155
  }
264
- export declare class FindOneParams {
265
- id: number;
266
- }
267
- export declare class PaginationQuery {
268
- page: number;
269
- itemsPerPage: number;
270
- }
271
- export declare class PaginationRangeQuery {
272
- startPage: number;
273
- endPage: number;
274
- itemsPerPage: number;
275
- }
276
156
  export declare class FindGlCodeByOrganizationIdDto {
277
157
  organizationId: number;
278
158
  }
@@ -283,79 +163,6 @@ export declare class GetGlCodeDto {
283
163
  createdAt: Date;
284
164
  updatedAt: Date;
285
165
  }
286
- export declare class FindByProgramSeasonIdDto {
287
- seasonId: number;
288
- }
289
- export declare class CreateBulkDivisionsDto {
290
- divisions: CreateDivisionDto[];
291
- }
292
- export declare class CreateDivisionDto {
293
- name: string;
294
- ordinal?: number;
295
- programSeasonId: number;
296
- color: string;
297
- isDefault: boolean;
298
- }
299
- export declare class CreateGroupDto {
300
- name: string;
301
- description?: string;
302
- status?: GroupStatusEnum;
303
- maxCapacity?: number;
304
- mainMediaId?: number;
305
- minAgeYears?: number;
306
- maxAgeYears?: number;
307
- gender: GenderEnum;
308
- levelOfPlay?: LevelOfPlayEnum[];
309
- sports: SportsEnum[];
310
- questionnaires?: number[];
311
- captainUserId?: number;
312
- divisionId?: number;
313
- }
314
- export declare class ConnectGroupToDivision {
315
- groupId: number;
316
- divisionId: number;
317
- prevDivisionId: number;
318
- }
319
- export declare class MoveUserInGroups {
320
- userId: number;
321
- groupId?: number;
322
- prevGroupId?: number;
323
- }
324
- export declare class SaveUserAsGroupCaptain {
325
- groupId: number;
326
- userId: number;
327
- }
328
- export declare class CreateTeamInviteDto {
329
- emails: string[];
330
- userCreatorId: number;
331
- }
332
- export declare class TeamByIdDto {
333
- teamId: number;
334
- }
335
- export declare class GetInviteDto extends TeamByIdDto {
336
- inviteToken: string;
337
- }
338
- export declare class JoinTeamDto {
339
- userId: number;
340
- inviteToken?: string;
341
- }
342
- export declare class UserTeamFutureSeasons extends TeamByIdDto {
343
- userId: number;
344
- }
345
- export interface IMoveSeason {
346
- fromSeasonId: number;
347
- toSeasonId: number;
348
- }
349
- export declare class MoveTeamOrMemberDto implements IMoveSeason {
350
- teamId?: number;
351
- memberId?: number;
352
- fromSeasonId: number;
353
- toSeasonId: number;
354
- toDivisionId?: number;
355
- }
356
- export declare class MoveTeamOrMembersByCsvDTO {
357
- fileName: string;
358
- }
359
166
  export declare class CreateMembershipDto {
360
167
  organizationId: number;
361
168
  name: string;
@@ -412,6 +219,49 @@ export declare class CancelMembershipDto {
412
219
  isImmediatelyCancel: boolean;
413
220
  cancellationReason?: string;
414
221
  }
222
+ export declare class AddressDto {
223
+ city: string;
224
+ state: string;
225
+ country: string;
226
+ geo: number[];
227
+ }
228
+ export declare class OpeningTimeDto {
229
+ open: string;
230
+ close: string;
231
+ dayOfWeek: number;
232
+ }
233
+ export declare class CreateFacilityDto {
234
+ name: string;
235
+ sports: number[];
236
+ description?: string;
237
+ longDescription?: string;
238
+ info?: string;
239
+ address: AddressDto;
240
+ timezone: string;
241
+ amenities: number[];
242
+ openingTimes: OpeningTimeDto[];
243
+ resourcesIds?: number[];
244
+ }
245
+ export declare class UpdateFacilityDetailsDto {
246
+ name?: string;
247
+ description?: string;
248
+ longDescription?: string;
249
+ info?: string;
250
+ address?: AddressDto;
251
+ timezone?: string;
252
+ }
253
+ export declare class UpdateFacilityOpeningTimesDto {
254
+ openingTimes: OpeningTimeDto[];
255
+ }
256
+ export declare class UpdateFacilitySportsDto {
257
+ sports: number[];
258
+ }
259
+ export declare class UpdateFacilityAmenitiesDto {
260
+ amenities: number[];
261
+ }
262
+ export declare class FindFacilitiesOptionsDto extends PaginationQuery {
263
+ nameSearch?: string;
264
+ }
415
265
  export declare class CreateEntitlementTermsDto {
416
266
  organizationId: number;
417
267
  entitlementGroupId: number;
@@ -583,8 +433,8 @@ export declare class ProductsIdsDto extends PaginationQuery {
583
433
  export declare class GetByOrganizationIdDto {
584
434
  organizationId?: number;
585
435
  }
586
- export declare class GetByOrgIdOrderIdDto extends GetByOrganizationIdDto {
587
- orderId?: number;
436
+ export declare class GetByOrgIdInvoiceIdDto extends GetByOrganizationIdDto {
437
+ invoiceId?: number;
588
438
  }
589
439
  export declare class GetProductsDto extends PaginationQuery {
590
440
  productIds?: string;
@@ -674,24 +524,220 @@ export declare class createResourceDto {
674
524
  export declare class archiveDto {
675
525
  isArchive: boolean;
676
526
  }
677
- export declare class CreateUpdateVariantsDto {
678
- organizationId: number;
679
- parentProductId: number;
680
- variantTitles: VariantTitleDto[];
681
- variants: VariantDto[];
527
+ export declare class FindOneParams {
528
+ id: number;
682
529
  }
683
- export declare class VariantTitleDto {
684
- titleName: string;
685
- titleId: number;
530
+ export declare class PaginationQuery {
531
+ page: number;
532
+ itemsPerPage: number;
686
533
  }
687
- export declare class VariantDto {
688
- name: string;
689
- price: number;
690
- variantId: number;
691
- currency: CurrencyEnum;
692
- startDate: Date;
534
+ export declare class PaginationRangeQuery {
535
+ startPage: number;
536
+ endPage: number;
537
+ itemsPerPage: number;
538
+ }
539
+ export declare class FindProgramsByOrganizationIdDto {
540
+ organizationId: number;
541
+ programType?: ProgramTypesEnum;
542
+ }
543
+ export declare class FindProgramByIdDto {
544
+ programId: number;
545
+ }
546
+ export declare class FindProgramByOrgIdAndIdDto {
547
+ programId: number;
548
+ organizationId: number;
549
+ }
550
+ export declare class BaseProgramDto {
551
+ type: ProgramTypesEnum;
552
+ name: string;
553
+ sport: SportsEnum;
554
+ minAge: string;
555
+ maxAge: string;
556
+ gender: GenderEnum;
557
+ level?: LevelOfPlayEnum[];
558
+ description?: string;
559
+ GL?: string;
560
+ status: PublishingStatusEnum;
561
+ organizationId: number;
562
+ userCreatorId: number;
563
+ highlights: ProgramHighlights[];
564
+ longDescription?: string;
565
+ requiredProductIds: number[];
566
+ }
567
+ export declare class CreateProgramDto extends BaseProgramDto {
568
+ }
569
+ export declare class UpdateProgramDto extends BaseProgramDto {
570
+ programId: number;
571
+ mainMediaId: number;
572
+ }
573
+ export declare class UpdateProgramStatusDto {
574
+ programId: number;
575
+ status: PublishingStatusEnum;
576
+ }
577
+ export declare class ProgramHighlightDto {
578
+ data: string;
579
+ ordinal: number;
580
+ type: ProgramHighlightTypeEnum;
581
+ title: string;
582
+ }
583
+ export declare class FindBookingTypeSettingDto {
584
+ organizationId: number;
585
+ facilityId: number;
586
+ spaceId: number;
587
+ bookingDate: string;
588
+ bookingTime: string;
589
+ }
590
+ export declare class PurchasePaymentDto {
591
+ token: string;
592
+ type: PaymentMethodTypeEnum;
593
+ }
594
+ export declare class ChargeRentalsReuqestDto {
595
+ organizationId: number;
596
+ userId?: number;
597
+ customerId?: number;
598
+ invoiceId: number;
599
+ paymentData: PurchasePaymentDto;
600
+ amountToPay: number;
601
+ total: number;
602
+ platform: PlatformsEnum;
603
+ shiftId?: number;
604
+ }
605
+ export declare class PurchaseRequestDto {
606
+ purchasingUserId: number;
607
+ customerId?: number;
608
+ products: PurchaseProductDto[];
609
+ paymentData: PurchasePaymentDto;
610
+ answers: UserAnswersDto[];
611
+ amountToPay: number;
612
+ parentPurchasedType?: ResourceNameTypeEnum;
613
+ parentPurchasedId?: number;
614
+ isPartialPayment: boolean;
615
+ existingInvoiceToken?: string;
616
+ installments?: ScheduledPaymentDto[];
617
+ shiftId?: number;
618
+ invoiceId?: number;
619
+ platform?: PlatformsEnum;
620
+ }
621
+ export declare class PurchaseResourceDto extends ResourceDto {
622
+ }
623
+ export declare class PurchaseProductDto {
624
+ id: number;
625
+ resources?: PurchaseResourceDto[];
626
+ userId?: number;
627
+ paymentStatus?: PaymentStatusEnum;
628
+ amountToPay?: number;
629
+ ordinal?: number;
630
+ startDate?: Date;
631
+ quantity?: number;
632
+ }
633
+ export declare class PartialPaymentRequestDto {
634
+ invoiceId: number;
635
+ amountToPay: number;
636
+ organizationId: number;
637
+ payingUserId: number;
638
+ paymentMethodData: PurchasePaymentDto;
639
+ shiftId?: number;
640
+ }
641
+ export declare class RedeemPunchCardRequestDto {
642
+ products: PurchaseProductDto[];
643
+ answersTitlesIds: number[];
644
+ organizationId: number;
645
+ purchasingUserId: number;
646
+ }
647
+ export declare class InvoiceIdDto extends ByOrganizationIdDto {
648
+ invoiceId: number;
649
+ }
650
+ export declare class AddItemsDto {
651
+ products: PurchaseProductDto[];
652
+ allocateResource: boolean;
653
+ skipMail: boolean;
654
+ }
655
+ export declare class PartialPaymentAsUserDto {
656
+ invoiceId: any;
657
+ organizationId: any;
658
+ amountToPay: any;
659
+ paymentMethodData: any;
660
+ platform?: PlatformsEnum;
661
+ }
662
+ export declare class CreateUpdateVariantsDto {
663
+ organizationId: number;
664
+ parentProductId: number;
665
+ variantTitles: VariantTitleDto[];
666
+ variants: VariantDto[];
667
+ }
668
+ export declare class VariantTitleDto {
669
+ titleName: string;
670
+ titleId: number;
671
+ }
672
+ export declare class VariantDto {
673
+ name: string;
674
+ price: number;
675
+ variantId: number;
676
+ currency: CurrencyEnum;
677
+ startDate: Date;
693
678
  endDate: Date;
694
679
  }
680
+ export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
681
+ membershipId: number;
682
+ }
683
+ export declare class ImportProductsFromDB {
684
+ buDate: string;
685
+ }
686
+ export declare class ImportCustomerFromCSV {
687
+ fileName: string;
688
+ startIndex?: number;
689
+ }
690
+ export declare class ImportProgramsFileDto extends ImportCustomerFromCSV {
691
+ resolveInvoices: string;
692
+ }
693
+ export declare class ImportDashCustomerDto extends ImportCustomerFromCSV {
694
+ membershipId: number;
695
+ onlyDashIds: string;
696
+ }
697
+ export declare class ImportRentalsFromCSV extends ImportCustomerFromCSV {
698
+ facilityId: number;
699
+ }
700
+ export declare class ByOrganizationIdCustomerIdDto extends ByOrganizationIdDto {
701
+ customerId: number;
702
+ }
703
+ export declare class ByOrganizationIdUserIdDto extends ByOrganizationIdDto {
704
+ userId: number;
705
+ }
706
+ export declare class FindCustomersByOrganizationIdFiltersDto extends PaginationQuery {
707
+ nameSearch?: string;
708
+ fuzzy?: string;
709
+ customerType?: CustomerTypeEnum;
710
+ customersIds?: string;
711
+ }
712
+ export declare class AddCustomerNotesDto {
713
+ customerNotes: CustomerNoteDto[];
714
+ }
715
+ export declare class CustomerNoteDto {
716
+ id?: number;
717
+ description: string;
718
+ pinToTop?: boolean;
719
+ }
720
+ export declare class AddEditCustomerDto {
721
+ firstName?: string;
722
+ lastName?: string;
723
+ entityId?: number;
724
+ entityType?: CustomerTypeEnum;
725
+ email?: string;
726
+ color?: string;
727
+ street?: string;
728
+ city?: string;
729
+ state?: string;
730
+ zip?: string;
731
+ phoneNumber?: string;
732
+ mainMediaId?: number;
733
+ creatorId?: number;
734
+ creatorType?: ResourceNameTypeEnum;
735
+ userCreatorId?: number;
736
+ gender?: GenderEnum;
737
+ birthDate?: string;
738
+ emergencyContactName?: string;
739
+ emergencyContactPhone?: string;
740
+ }
695
741
  export declare class FindProgramSeasonsByProgramIdDto {
696
742
  programId: number;
697
743
  }
@@ -874,133 +920,107 @@ export declare class MoveParticipantDto {
874
920
  newProductId: number;
875
921
  moveType: 'session' | 'segment';
876
922
  resourceId: number;
877
- orderId: number;
878
- }
879
- export declare class FindProgramsByOrganizationIdDto {
880
- organizationId: number;
881
- programType?: ProgramTypesEnum;
882
- }
883
- export declare class FindProgramByIdDto {
884
- programId: number;
885
- }
886
- export declare class FindProgramByOrgIdAndIdDto {
887
- programId: number;
888
- organizationId: number;
923
+ invoiceId: number;
889
924
  }
890
- export declare class BaseProgramDto {
891
- type: ProgramTypesEnum;
925
+ export declare class CreateResourceGroupDto {
892
926
  name: string;
893
- sport: SportsEnum;
894
- minAge: string;
895
- maxAge: string;
896
- gender: GenderEnum;
897
- level?: LevelOfPlayEnum[];
898
- description?: string;
899
- GL?: string;
900
- status: PublishingStatusEnum;
901
- organizationId: number;
902
- userCreatorId: number;
903
- highlights: ProgramHighlights[];
904
- longDescription?: string;
905
- requiredProductIds: number[];
927
+ parentSlotId: number;
928
+ facilityId: number;
929
+ childrenSlotIds: number[];
906
930
  }
907
- export declare class CreateProgramDto extends BaseProgramDto {
931
+ export declare class UpdateResourceGroupDto extends CreateResourceGroupDto {
908
932
  }
909
- export declare class UpdateProgramDto extends BaseProgramDto {
910
- programId: number;
911
- mainMediaId: number;
933
+ export declare class FindByProgramSeasonIdDto {
934
+ seasonId: number;
912
935
  }
913
- export declare class UpdateProgramStatusDto {
914
- programId: number;
915
- status: PublishingStatusEnum;
936
+ export declare class CreateBulkDivisionsDto {
937
+ divisions: CreateDivisionDto[];
916
938
  }
917
- export declare class ProgramHighlightDto {
918
- data: string;
919
- ordinal: number;
920
- type: ProgramHighlightTypeEnum;
921
- title: string;
939
+ export declare class CreateDivisionDto {
940
+ name: string;
941
+ ordinal?: number;
942
+ programSeasonId: number;
943
+ color: string;
944
+ isDefault: boolean;
922
945
  }
923
- export declare class PurchasePaymentDto {
924
- token: string;
925
- type: PaymentMethodTypeEnum;
946
+ export declare class CreateGroupDto {
947
+ name: string;
948
+ description?: string;
949
+ status?: GroupStatusEnum;
950
+ maxCapacity?: number;
951
+ mainMediaId?: number;
952
+ minAgeYears?: number;
953
+ maxAgeYears?: number;
954
+ gender: GenderEnum;
955
+ levelOfPlay?: LevelOfPlayEnum[];
956
+ sports: SportsEnum[];
957
+ questionnaires?: number[];
958
+ captainUserId?: number;
959
+ divisionId?: number;
926
960
  }
927
- export declare class ChargeRentalsReuqestDto {
928
- organizationId: number;
929
- userId?: number;
930
- customerId?: number;
931
- orderId: number;
932
- paymentData: PurchasePaymentDto;
933
- amountToPay: number;
934
- total: number;
935
- platform: PlatformsEnum;
936
- shiftId?: number;
961
+ export declare class ConnectGroupToDivision {
962
+ groupId: number;
963
+ divisionId: number;
964
+ prevDivisionId: number;
937
965
  }
938
- export declare class PurchaseRequestDto {
939
- purchasingUserId: number;
940
- customerId?: number;
941
- products: PurchaseProductDto[];
942
- paymentData: PurchasePaymentDto;
943
- answers: UserAnswersDto[];
944
- amountToPay: number;
945
- parentPurchasedType?: ResourceNameTypeEnum;
946
- parentPurchasedId?: number;
947
- isPartialPayment: boolean;
948
- existingOrderToken?: string;
949
- installments?: ScheduledPaymentDto[];
950
- shiftId?: number;
951
- orderId?: number;
966
+ export declare class MoveUserInGroups {
967
+ userId: number;
968
+ groupId?: number;
969
+ prevGroupId?: number;
952
970
  }
953
- export declare class PurchaseResourceDto extends ResourceDto {
971
+ export declare class SaveUserAsGroupCaptain {
972
+ groupId: number;
973
+ userId: number;
954
974
  }
955
- export declare class PurchaseProductDto {
956
- id: number;
957
- resources?: PurchaseResourceDto[];
958
- userId?: number;
959
- paymentStatus?: PaymentStatusEnum;
960
- amountToPay?: number;
961
- ordinal?: number;
962
- startDate?: Date;
963
- quantity?: number;
975
+ export declare class CreateTeamInviteDto {
976
+ emails: string[];
977
+ userCreatorId: number;
964
978
  }
965
- export declare class PartialPaymentRequestDto {
966
- orderId: number;
967
- amountToPay: number;
968
- organizationId: number;
969
- payingUserId: number;
970
- paymentMethodData: PurchasePaymentDto;
971
- shiftId?: number;
979
+ export declare class TeamByIdDto {
980
+ teamId: number;
972
981
  }
973
- export declare class RedeemPunchCardRequestDto {
974
- products: PurchaseProductDto[];
975
- answersTitlesIds: number[];
976
- organizationId: number;
977
- purchasingUserId: number;
982
+ export declare class GetInviteDto extends TeamByIdDto {
983
+ inviteToken: string;
978
984
  }
979
- export declare class OrderIdDto extends ByOrganizationIdDto {
980
- orderId: number;
985
+ export declare class JoinTeamDto {
986
+ userId: number;
987
+ inviteToken?: string;
981
988
  }
982
- export declare class AddItemsDto {
983
- products: PurchaseProductDto[];
984
- allocateResource: boolean;
985
- skipMail: boolean;
989
+ export declare class UserTeamFutureSeasons extends TeamByIdDto {
990
+ userId: number;
986
991
  }
987
- export declare class PartialPaymentAsUserDto {
988
- orderId: any;
989
- organizationId: any;
990
- amountToPay: any;
991
- paymentMethodData: any;
992
+ export interface IMoveSeason {
993
+ fromSeasonId: number;
994
+ toSeasonId: number;
992
995
  }
993
- export declare class CreateResourceGroupDto {
994
- name: string;
995
- parentSlotId: number;
996
- facilityId: number;
997
- childrenSlotIds: number[];
996
+ export declare class MoveTeamOrMemberDto implements IMoveSeason {
997
+ teamId?: number;
998
+ memberId?: number;
999
+ fromSeasonId: number;
1000
+ toSeasonId: number;
1001
+ toDivisionId?: number;
998
1002
  }
999
- export declare class UpdateResourceGroupDto extends CreateResourceGroupDto {
1003
+ export declare class MoveTeamOrMembersByCsvDTO {
1004
+ fileName: string;
1000
1005
  }
1001
- export declare class ResourceDto {
1002
- type: ResourceNameTypeEnum;
1003
- id: number;
1006
+ export declare class FindByUserIdDto {
1007
+ userId: number;
1008
+ }
1009
+ export declare class FindByFamilyAccountIdDto {
1010
+ familyAccountId?: number;
1011
+ }
1012
+ export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1013
+ organizationId: number;
1014
+ }
1015
+ export declare class StripeCustomerIdDto {
1016
+ userId: number;
1017
+ }
1018
+ export declare class StripeCustomerPaymentMathodDto extends StripeCustomerIdDto {
1019
+ paymentMethodId: string;
1020
+ }
1021
+ export declare class AddACHTokenToCustomerDto {
1022
+ publicToken: string;
1023
+ accountId: string;
1004
1024
  }
1005
1025
  export declare class SpaceByIdDto {
1006
1026
  spaceId: number;
@@ -1058,50 +1078,11 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
1058
1078
  types?: string;
1059
1079
  resourcesIds?: string;
1060
1080
  }
1061
- export declare class StripeCustomerIdDto {
1062
- userId: number;
1063
- }
1064
- export declare class StripeCustomerPaymentMathodDto extends StripeCustomerIdDto {
1065
- paymentMethodId: string;
1066
- }
1067
- export declare class AddACHTokenToCustomerDto {
1068
- publicToken: string;
1069
- accountId: string;
1070
- }
1071
- export declare class FindByUserIdDto {
1072
- userId: number;
1073
- }
1074
- export declare class FindByFamilyAccountIdDto {
1075
- familyAccountId?: number;
1076
- }
1077
- export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1078
- organizationId: number;
1079
- }
1080
- export declare class ActivityLogRecord extends BondBaseEntity {
1081
- entityType: ResourceNameTypeEnum;
1082
- entityId: number;
1083
- organizationId?: number;
1081
+ export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1082
+ questionnaireId: number;
1084
1083
  userId?: number;
1085
- customerId?: number;
1086
- performingUserId: number;
1087
- description: string;
1088
- actionType: ActionTypesEnum;
1089
- sourcePlatform: ActionSourcePlatformEnum;
1090
- oldValue?: any;
1091
- newValue?: any;
1092
- }
1093
- export declare class ActivityTimes extends BondBaseEntity {
1094
- parentType: ResourceNameTypeEnum | ProductTypesEnum;
1095
- parentId: number;
1096
- dayOfWeek: number;
1097
- open: string;
1098
- close: string;
1099
- deletedAt?: Date;
1100
- program: ProgramSeason;
1101
- availabilityStartDate: string;
1102
- availabilityEndDate: string;
1103
- proudct: Product;
1104
- event: Event;
1084
+ answers: Answer[];
1085
+ questionnaire: Questionnaires;
1105
1086
  }
1106
1087
  export declare class Address extends BondBaseEntity {
1107
1088
  city?: string;
@@ -1114,6 +1095,19 @@ export declare class Address extends BondBaseEntity {
1114
1095
  geo: any;
1115
1096
  deletedAt?: Date;
1116
1097
  }
1098
+ export declare class BlockedDate extends BondBaseEntity {
1099
+ entityType: ResourceNameTypeEnum;
1100
+ entityId: number;
1101
+ name: string;
1102
+ startDate: Date;
1103
+ endDate: Date;
1104
+ deletedAt?: Date;
1105
+ }
1106
+ export declare class Athlete extends BondBaseEntity {
1107
+ userId: number | null;
1108
+ metadata: object | null;
1109
+ athleteSports: AthleteSports[];
1110
+ }
1117
1111
  export declare class Answer extends OrganizationConnectionBaseEntity {
1118
1112
  questionId: number;
1119
1113
  question?: Questions;
@@ -1127,52 +1121,14 @@ export declare class Answer extends OrganizationConnectionBaseEntity {
1127
1121
  metaData: any | null;
1128
1122
  questionText: string | null;
1129
1123
  }
1130
- export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1131
- questionnaireId: number;
1132
- userId?: number;
1133
- answers: Answer[];
1134
- questionnaire: Questionnaires;
1135
- }
1136
- export declare class Athlete extends BondBaseEntity {
1137
- userId: number | null;
1138
- metadata: object | null;
1139
- athleteSports: AthleteSports[];
1140
- }
1141
1124
  export declare class AthleteSports extends BondBaseEntity {
1142
1125
  athleteId: number | null;
1143
1126
  sports: number | null;
1144
1127
  levelOfPlay: LevelOfPlayEnum | null;
1145
1128
  }
1146
- export declare class BlockedDate extends BondBaseEntity {
1147
- entityType: ResourceNameTypeEnum;
1148
- entityId: number;
1149
- name: string;
1150
- startDate: Date;
1151
- endDate: Date;
1152
- deletedAt?: Date;
1153
- }
1154
- export declare class BondBaseEntity extends BaseEntity {
1129
+ export declare class ResourceDto {
1130
+ type: ResourceNameTypeEnum;
1155
1131
  id: number;
1156
- createdAt: Date;
1157
- updatedAt: Date;
1158
- }
1159
- export declare class BookedSessions extends BondBaseEntity {
1160
- reservationId?: number;
1161
- color?: string;
1162
- creatorId?: number;
1163
- creatorType?: string;
1164
- startDate?: Date | moment.Moment;
1165
- endDate?: Date | moment.Moment;
1166
- timezone?: string;
1167
- spaceId?: number;
1168
- percentage?: number;
1169
- status?: string;
1170
- originalSessionId?: number;
1171
- isFinal?: boolean;
1172
- concurrent?: number;
1173
- deletedAt?: Date;
1174
- publicNotes?: string;
1175
- slotType?: SlotTypeEnum;
1176
1132
  }
1177
1133
  export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity {
1178
1134
  parentId: number;
@@ -1184,6 +1140,11 @@ export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity
1184
1140
  endTimeInDay: string;
1185
1141
  directBookingFor: DirectBookingTypesEnum;
1186
1142
  }
1143
+ export declare class Configuration extends BondBaseEntity {
1144
+ area: string;
1145
+ key: string;
1146
+ value: string;
1147
+ }
1187
1148
  export declare class Connection extends BondBaseEntity {
1188
1149
  connType: number | null;
1189
1150
  from: number | null;
@@ -1196,58 +1157,49 @@ export declare class Connection extends BondBaseEntity {
1196
1157
  userCreatorId: number | null;
1197
1158
  ownerId: number | null;
1198
1159
  }
1160
+ export declare class ActivityLogRecord extends BondBaseEntity {
1161
+ entityType: ResourceNameTypeEnum;
1162
+ entityId: number;
1163
+ organizationId?: number;
1164
+ userId?: number;
1165
+ customerId?: number;
1166
+ performingUserId: number;
1167
+ description: string;
1168
+ actionType: ActionTypesEnum;
1169
+ sourcePlatform: ActionSourcePlatformEnum;
1170
+ oldValue?: any;
1171
+ newValue?: any;
1172
+ }
1173
+ export declare class BondBaseEntity extends BaseEntity {
1174
+ id: number;
1175
+ createdAt: Date;
1176
+ updatedAt: Date;
1177
+ }
1199
1178
  export declare class CreditNote extends OrganizationConnectionBaseEntity {
1200
1179
  creditAmount: number;
1201
1180
  paymentProcessorId: string;
1202
1181
  userId: number;
1182
+ paymentId: number;
1203
1183
  invoiceId: number;
1204
- orderId: number;
1205
- creditPaymentInvoiceId: number;
1184
+ creditPaymentId: number;
1206
1185
  }
1207
- export declare class Configuration extends BondBaseEntity {
1208
- area: string;
1209
- key: string;
1210
- value: string;
1211
- }
1212
- export declare class Customer extends OrganizationConnectionBaseEntity {
1213
- name: string | null;
1214
- entityId: number | null;
1215
- addressId: number | null;
1216
- entityType: CustomerTypeEnum | null;
1217
- customerId: string | null;
1218
- email: string | null;
1219
- color: string | null;
1220
- phoneNumber: string | null;
1221
- mainMediaId: number | null;
1222
- creatorId: number | null;
1223
- creatorType: ResourceNameTypeEnum | null;
1224
- userCreatorId: number | null;
1225
- ownerId: number | null;
1226
- vetted: boolean | null;
1227
- firstName: string | null;
1228
- lastName: string | null;
1229
- waiverSignedDate: string | null;
1230
- balance: number | null;
1231
- storedCredit: number;
1232
- members: (User & Customer)[];
1233
- emergencyContacts: EmergencyContact[];
1234
- customerNotes: CustomerNote[];
1235
- customerCreditTransactions: CustomerCreditTransaction[];
1236
- productsReservedFor: ProductsReservedForCustomers[];
1237
- mainMedia: Media;
1238
- reservations?: Reservation[];
1239
- }
1240
- export declare class CustomerCreditTransaction extends OrganizationConnectionBaseEntity {
1241
- customerId: number;
1242
- userId: number;
1243
- amount: number;
1244
- invoiceId?: number;
1245
- orderId?: number;
1246
- description?: string;
1186
+ export declare class BookedSessions extends BondBaseEntity {
1187
+ reservationId?: number;
1188
+ color?: string;
1189
+ creatorId?: number;
1190
+ creatorType?: string;
1191
+ startDate?: Date | moment.Moment;
1192
+ endDate?: Date | moment.Moment;
1193
+ timezone?: string;
1194
+ spaceId?: number;
1195
+ percentage?: number;
1196
+ status?: string;
1197
+ originalSessionId?: number;
1198
+ isFinal?: boolean;
1199
+ concurrent?: number;
1247
1200
  deletedAt?: Date;
1248
- customer: Customer;
1249
- order: Order;
1250
- invoice: Invoice;
1201
+ publicNotes?: string;
1202
+ slotType?: SlotTypeEnum;
1251
1203
  }
1252
1204
  export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1253
1205
  customerId?: number;
@@ -1255,14 +1207,6 @@ export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1255
1207
  pinToTop?: boolean;
1256
1208
  customer: Customer;
1257
1209
  }
1258
- export declare class Division extends BondBaseEntity {
1259
- name: string;
1260
- ordinal?: number;
1261
- programSeasonId: number;
1262
- color: string;
1263
- isDefault: boolean;
1264
- groups: Group[];
1265
- }
1266
1210
  export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1267
1211
  customerId: number;
1268
1212
  name: string | null;
@@ -1272,6 +1216,14 @@ export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1272
1216
  export declare class EntitlementGroup extends OrganizationConnectionBaseEntity {
1273
1217
  name: string | null;
1274
1218
  }
1219
+ export declare class Division extends BondBaseEntity {
1220
+ name: string;
1221
+ ordinal?: number;
1222
+ programSeasonId: number;
1223
+ color: string;
1224
+ isDefault: boolean;
1225
+ groups: Group[];
1226
+ }
1275
1227
  export declare class EntitlementTerms extends OrganizationConnectionBaseEntity {
1276
1228
  groupId: number;
1277
1229
  terms: IEntitlementTerms[];
@@ -1291,60 +1243,17 @@ export declare class EventAttendee extends BondBaseEntity {
1291
1243
  event: Event;
1292
1244
  purchasedResource: PurchasedResource;
1293
1245
  }
1294
- export declare class Event extends OrganizationConnectionBaseEntity {
1295
- constructor();
1296
- defineCalculatedDateTimeProps(): void;
1297
- title: string | null;
1298
- description: string | null;
1299
- eventType: number | null;
1300
- startDate: Date | null;
1301
- endDate: Date | null;
1302
- price: number | null;
1303
- venueName: string | null;
1304
- status: EventStatusEnum;
1305
- private: boolean | null;
1306
- guestsCanInvite: boolean | null;
1307
- venueId: number | null;
1308
- addressId: number | null;
1309
- participantsLimit: number | null;
1310
- parentId: number | null;
1311
- parentType: string | null;
1312
- timezone: string | null;
1313
- eventSubType: string | null;
1314
- eventSubId: number | null;
1315
- metaData: any | null;
1316
- groupingId: string | null;
1317
- redirectUri: string | null;
1318
- externalId: string | null;
1319
- paymentSettings: any | null;
1320
- whoCanJoin: string | null;
1321
- spaceId?: number;
1322
- bookedSessionId: number | null;
1323
- creatorId: number | null;
1324
- creatorType: string | null;
1325
- userCreatorId: number | null;
1326
- ownerId: number | null;
1327
- sports: number[] | null;
1328
- isVerified: boolean | null;
1329
- mainMediaId: number | null;
1330
- minAge: number | null;
1331
- maxAge: number | null;
1332
- gender: number | null;
1333
- questionnaireId: number | null;
1334
- eventAttendees: EventAttendee[];
1246
+ export declare class CustomerCreditTransaction extends OrganizationConnectionBaseEntity {
1247
+ customerId: number;
1248
+ userId: number;
1249
+ amount: number;
1250
+ paymentId?: number;
1251
+ invoiceId?: number;
1252
+ description?: string;
1335
1253
  deletedAt?: Date;
1336
- spaces?: IBasicSpaceAndSlotCreator[];
1337
- startDateString: string;
1338
- endDateString: string;
1339
- startTime: string;
1340
- endTime: string;
1341
- publicNotes?: string;
1342
- privateNotes?: string;
1343
- productResources: ProductResource[];
1344
- parentSession: ProgramSeason;
1345
- activityTimes: ActivityTimes[];
1346
- slots: Slot[];
1347
- purchasedResources: PurchasedResource[];
1254
+ customer: Customer;
1255
+ invoice: Invoice;
1256
+ payment: Payment;
1348
1257
  }
1349
1258
  export declare class Facility extends OrganizationConnectionBaseEntity {
1350
1259
  name: string;
@@ -1378,9 +1287,12 @@ export declare class FamilyAccount extends BondBaseEntity {
1378
1287
  name: string | null;
1379
1288
  userInFamilyAccounts: UserInFamilyAccount[];
1380
1289
  }
1290
+ export declare class GlCodes extends OrganizationConnectionBaseEntity {
1291
+ code: string;
1292
+ }
1381
1293
  export declare class FutureInstallment extends OrganizationConnectionBaseEntity {
1382
1294
  userId: number;
1383
- orderId: number;
1295
+ invoiceId: number;
1384
1296
  paymentMethodId: string;
1385
1297
  paymentType: PaymentMethodTypeEnum;
1386
1298
  price: number;
@@ -1388,9 +1300,6 @@ export declare class FutureInstallment extends OrganizationConnectionBaseEntity
1388
1300
  plannedDate: Date;
1389
1301
  chargedAt?: Date;
1390
1302
  }
1391
- export declare class GlCodes extends OrganizationConnectionBaseEntity {
1392
- code: string;
1393
- }
1394
1303
  export declare class Group extends BondBaseEntity {
1395
1304
  name: string;
1396
1305
  description?: string;
@@ -1407,6 +1316,89 @@ export declare class Group extends BondBaseEntity {
1407
1316
  members: ISeasonAttendeeInfo[];
1408
1317
  users: User[];
1409
1318
  }
1319
+ export declare class Customer extends OrganizationConnectionBaseEntity {
1320
+ name: string | null;
1321
+ entityId: number | null;
1322
+ addressId: number | null;
1323
+ entityType: CustomerTypeEnum | null;
1324
+ customerId: string | null;
1325
+ email: string | null;
1326
+ color: string | null;
1327
+ phoneNumber: string | null;
1328
+ mainMediaId: number | null;
1329
+ creatorId: number | null;
1330
+ creatorType: ResourceNameTypeEnum | null;
1331
+ userCreatorId: number | null;
1332
+ ownerId: number | null;
1333
+ vetted: boolean | null;
1334
+ firstName: string | null;
1335
+ lastName: string | null;
1336
+ waiverSignedDate: string | null;
1337
+ balance: number | null;
1338
+ storedCredit: number;
1339
+ members: (User & Customer)[];
1340
+ emergencyContacts: EmergencyContact[];
1341
+ customerNotes: CustomerNote[];
1342
+ customerCreditTransactions: CustomerCreditTransaction[];
1343
+ productsReservedFor: ProductsReservedForCustomers[];
1344
+ mainMedia: Media;
1345
+ reservations?: Reservation[];
1346
+ }
1347
+ export declare class Event extends OrganizationConnectionBaseEntity {
1348
+ constructor();
1349
+ defineCalculatedDateTimeProps(): void;
1350
+ title: string | null;
1351
+ description: string | null;
1352
+ eventType: number | null;
1353
+ startDate: Date | null;
1354
+ endDate: Date | null;
1355
+ price: number | null;
1356
+ venueName: string | null;
1357
+ status: EventStatusEnum;
1358
+ private: boolean | null;
1359
+ guestsCanInvite: boolean | null;
1360
+ venueId: number | null;
1361
+ addressId: number | null;
1362
+ participantsLimit: number | null;
1363
+ parentId: number | null;
1364
+ parentType: string | null;
1365
+ timezone: string | null;
1366
+ eventSubType: string | null;
1367
+ eventSubId: number | null;
1368
+ metaData: any | null;
1369
+ groupingId: string | null;
1370
+ redirectUri: string | null;
1371
+ externalId: string | null;
1372
+ paymentSettings: any | null;
1373
+ whoCanJoin: string | null;
1374
+ spaceId?: number;
1375
+ bookedSessionId: number | null;
1376
+ creatorId: number | null;
1377
+ creatorType: string | null;
1378
+ userCreatorId: number | null;
1379
+ ownerId: number | null;
1380
+ sports: number[] | null;
1381
+ isVerified: boolean | null;
1382
+ mainMediaId: number | null;
1383
+ minAge: number | null;
1384
+ maxAge: number | null;
1385
+ gender: number | null;
1386
+ questionnaireId: number | null;
1387
+ eventAttendees: EventAttendee[];
1388
+ deletedAt?: Date;
1389
+ spaces?: IBasicSpaceAndSlotCreator[];
1390
+ startDateString: string;
1391
+ endDateString: string;
1392
+ startTime: string;
1393
+ endTime: string;
1394
+ publicNotes?: string;
1395
+ privateNotes?: string;
1396
+ productResources: ProductResource[];
1397
+ parentSession: ProgramSeason;
1398
+ activityTimes: ActivityTimes[];
1399
+ slots: Slot[];
1400
+ purchasedResources: PurchasedResource[];
1401
+ }
1410
1402
  export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
1411
1403
  groupId: number;
1412
1404
  itemId: number;
@@ -1420,37 +1412,35 @@ export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity
1420
1412
  discountMethod?: DiscountMethodsEnum;
1421
1413
  discountValue?: number;
1422
1414
  }
1423
- export declare class GroupsInDivisions extends BondBaseEntity {
1424
- groupId: number;
1425
- divisionId: number;
1426
- deletedAt?: Date;
1415
+ export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
1416
+ content: string;
1417
+ creatingUserId: number;
1418
+ user: User;
1419
+ isPublic: boolean;
1420
+ deletedAt: Date;
1421
+ invoiceId: number;
1422
+ invoice: Invoice;
1427
1423
  }
1428
- export declare class Invoice extends OrganizationConnectionBaseEntity {
1429
- price: number;
1430
- paymentProcessorId: string;
1431
- orderToInvoices: OrderToInvoice[];
1432
- paymentStatus: PaymentStatusEnum;
1433
- bondFee?: number;
1434
- stripeFee?: number;
1424
+ export declare class InvoiceToPayment extends BondBaseEntity {
1425
+ invoiceId: number;
1426
+ paymentId: number;
1427
+ invoice: Invoice;
1428
+ payment: Payment;
1429
+ paidAmount?: number;
1435
1430
  currency: CurrencyEnum;
1436
- payingUserId?: number;
1437
- paymentMethodId?: string;
1438
- paymentType?: PaymentMethodTypeEnum;
1439
- fundLeft: number;
1440
- notes?: string;
1441
- isRefunded: boolean;
1442
- lineItemHistory: LineItemHistory[];
1443
- receiptUrl?: string;
1444
- paymentProcessorTransactionId?: string;
1445
- creatingUserId: number;
1446
- shiftId: number;
1447
- platform: PlatformsEnum;
1448
- ccLast4: string;
1449
- ccBrand: string;
1450
- invoiceNotes: InvoiceNote[];
1451
- parentInvoiceId?: number;
1452
- refundReasonId?: number;
1453
- refundNote?: string;
1431
+ }
1432
+ export declare class ActivityTimes extends BondBaseEntity {
1433
+ parentType: ResourceNameTypeEnum | ProductTypesEnum;
1434
+ parentId: number;
1435
+ dayOfWeek: number;
1436
+ open: string;
1437
+ close: string;
1438
+ deletedAt?: Date;
1439
+ program: ProgramSeason;
1440
+ availabilityStartDate: string;
1441
+ availabilityEndDate: string;
1442
+ proudct: Product;
1443
+ event: Event;
1454
1444
  }
1455
1445
  export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1456
1446
  email: string;
@@ -1463,101 +1453,12 @@ export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1463
1453
  mailParams?: any;
1464
1454
  memo?: string;
1465
1455
  }
1466
- export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
1467
- content: string;
1468
- creatingUserId: number;
1469
- user: User;
1470
- isPublic: boolean;
1471
- deletedAt: Date;
1472
- invoiceId: number;
1473
- invoice: Invoice;
1474
- }
1475
- export declare class League extends OrganizationConnectionBaseEntity {
1476
- name: string | null;
1477
- description: string | null;
1478
- allowBookingRequest: boolean | null;
1479
- addressName: string | null;
1480
- shortDescription: string | null;
1481
- waiverDoc: string | null;
1482
- bookingStateStatus: number | null;
1483
- timezone: string | null;
1484
- shortUrl: string | null;
1485
- leagueType: string | null;
1486
- addressId: number | null;
1487
- sportConfigData: any | null;
1488
- creatorId: number | null;
1489
- creatorType: string | null;
1490
- userCreatorId: number | null;
1491
- ownerId: number | null;
1492
- sports: number[] | null;
1493
- mainMediaId: number | null;
1494
- publishedDate: Date | null;
1495
- isPublished: boolean | null;
1496
- isVerified: boolean | null;
1497
- questionnaireId: number | null;
1498
- logo?: Media;
1499
- seasons: LeagueSeason[];
1500
- }
1501
- export declare class LeagueSeason extends BondBaseEntity {
1502
- leagueId: number | null;
1503
- name: string | null;
1504
- status: number | null;
1505
- startDate: Date | null;
1506
- endDate: Date | null;
1507
- priceEarlySingle: number | null;
1508
- priceRegularSingle: number | null;
1509
- priceLateSingle: number | null;
1510
- priceEarlyTeam: number | null;
1511
- priceRegularTeam: number | null;
1512
- priceLateTeam: number | null;
1513
- priceEarlyTeamMember: number | null;
1514
- priceRegularTeamMember: number | null;
1515
- priceLateTeamMember: number | null;
1516
- priceEarlyGroup: number | null;
1517
- priceRegularGroup: number | null;
1518
- priceLateGroup: number | null;
1519
- earlyRegistrationEnds: Date | null;
1520
- regularRegistrationEnds: Date | null;
1521
- lateRegistrationEnds: Date | null;
1522
- registrationStatus: number | null;
1523
- description: string | null;
1524
- addressName: string | null;
1525
- registrationOpen: Date | null;
1526
- connectedSeasonId: number | null;
1527
- tournamentType: boolean | null;
1528
- playoffType: boolean | null;
1529
- scheduleStatus: SeasonScheduleStatusEnum;
1530
- rosterStatus: string | null;
1531
- metaData: any | null;
1532
- inviteSendDate: Date | null;
1533
- maxNumParticipants: number | null;
1534
- programId: number | null;
1535
- minNumParticipants: number | null;
1536
- league: League;
1537
- facilities: Facility[];
1538
- seasonAttendees: SeasonAttendee[];
1539
- purchasedResources: PurchasedResource[];
1540
- }
1541
- export declare class LeagueSeasonRelations {
1542
- league?: boolean;
1543
- facilities?: boolean;
1544
- }
1545
- export declare class LineItemHistory extends BondBaseEntity {
1546
- orderId: number;
1547
- invoiceId: number;
1548
- lineItemId: number;
1549
- paidAmount: number;
1550
- unitPaidAmount: number;
1551
- currency: CurrencyEnum;
1552
- invoice: Invoice;
1553
- lineItem: LineItems;
1554
- }
1555
1456
  export declare class LineItems extends BondBaseEntity {
1556
1457
  constructor();
1557
1458
  defineIsReverted(): void;
1558
1459
  isReverted: boolean;
1559
- orderId: number;
1560
- order: Order;
1460
+ invoiceId: number;
1461
+ invoice: Invoice;
1561
1462
  lineItemsHistory: LineItemHistory[];
1562
1463
  type: LineItemsStatusEnum | null;
1563
1464
  userId: number | null;
@@ -1623,6 +1524,21 @@ export declare class LinkedAccounts extends BondBaseEntity {
1623
1524
  user: User;
1624
1525
  userId: number | null;
1625
1526
  }
1527
+ export declare class LineItemHistory extends BondBaseEntity {
1528
+ invoiceId: number;
1529
+ paymentId: number;
1530
+ lineItemId: number;
1531
+ paidAmount: number;
1532
+ unitPaidAmount: number;
1533
+ currency: CurrencyEnum;
1534
+ payment: Payment;
1535
+ lineItem: LineItems;
1536
+ }
1537
+ export declare class GroupsInDivisions extends BondBaseEntity {
1538
+ groupId: number;
1539
+ divisionId: number;
1540
+ deletedAt?: Date;
1541
+ }
1626
1542
  export declare class Media extends BondBaseEntity {
1627
1543
  url: string;
1628
1544
  name: string | null;
@@ -1696,6 +1612,9 @@ export declare class NotificationSubscriptions extends OrganizationConnectionBas
1696
1612
  resourceId: number | null;
1697
1613
  resourceType: string | null;
1698
1614
  }
1615
+ export declare class OrganizationConnectionBaseEntity extends BondBaseEntity {
1616
+ organizationId: number;
1617
+ }
1699
1618
  export declare class OpeningTime extends OrganizationConnectionBaseEntity {
1700
1619
  id: number;
1701
1620
  dayOfWeek: number;
@@ -1707,50 +1626,6 @@ export declare class OpeningTime extends OrganizationConnectionBaseEntity {
1707
1626
  deletedAt?: Date;
1708
1627
  facility: Facility;
1709
1628
  }
1710
- export declare class Order extends BondBaseEntity {
1711
- orderId: string | null;
1712
- price: number | null;
1713
- status: OrderStatusEnum | null;
1714
- sentForClientDate: Date | null;
1715
- payingUserId?: number | null;
1716
- orderToInvoices: OrderToInvoice[];
1717
- lineItems: LineItems[];
1718
- lineItemHistory: LineItemHistory[];
1719
- paymentStatus: PaymentStatusEnum;
1720
- paymentMethodId?: string;
1721
- paymentType?: PaymentMethodTypeEnum;
1722
- paidAmount: number;
1723
- currency: CurrencyEnum;
1724
- mainInvoiceId: number;
1725
- isScheduled: boolean;
1726
- isRefunded: boolean;
1727
- isVoided: boolean;
1728
- creatingUserId: number;
1729
- shiftId: number;
1730
- platform: PlatformsEnum;
1731
- orderNotes: OrderNote[];
1732
- slots: Slot[];
1733
- }
1734
- export declare class OrderNote extends OrganizationConnectionBaseEntity {
1735
- content: string;
1736
- creatingUserId: number;
1737
- user: User;
1738
- isPublic: boolean;
1739
- deletedAt: Date;
1740
- orderId: number;
1741
- order: Order;
1742
- }
1743
- export declare class OrderToInvoice extends BondBaseEntity {
1744
- orderId: number;
1745
- invoiceId: number;
1746
- order: Order;
1747
- invoice: Invoice;
1748
- paidAmount?: number;
1749
- currency: CurrencyEnum;
1750
- }
1751
- export declare class OrganizationConnectionBaseEntity extends BondBaseEntity {
1752
- organizationId: number;
1753
- }
1754
1629
  export declare class PackageV1 extends BondBaseEntity {
1755
1630
  name?: string;
1756
1631
  description?: string;
@@ -1768,6 +1643,42 @@ export declare class PackageV1 extends BondBaseEntity {
1768
1643
  isMandatory: boolean;
1769
1644
  productId: number;
1770
1645
  }
1646
+ export declare class PaymentNote extends OrganizationConnectionBaseEntity {
1647
+ content: string;
1648
+ creatingUserId: number;
1649
+ user: User;
1650
+ isPublic: boolean;
1651
+ deletedAt: Date;
1652
+ paymentId: number;
1653
+ payment: Payment;
1654
+ }
1655
+ export declare class Payment extends OrganizationConnectionBaseEntity {
1656
+ price: number;
1657
+ paymentProcessorId: string;
1658
+ invoiceToPayments: InvoiceToPayment[];
1659
+ paymentStatus: PaymentStatusEnum;
1660
+ bondFee?: number;
1661
+ stripeFee?: number;
1662
+ currency: CurrencyEnum;
1663
+ payingUserId?: number;
1664
+ paymentMethodId?: string;
1665
+ paymentType?: PaymentMethodTypeEnum;
1666
+ fundLeft: number;
1667
+ notes?: string;
1668
+ isRefunded: boolean;
1669
+ lineItemHistory: LineItemHistory[];
1670
+ receiptUrl?: string;
1671
+ paymentProcessorTransactionId?: string;
1672
+ creatingUserId: number;
1673
+ shiftId: number;
1674
+ platform: PlatformsEnum;
1675
+ ccLast4: string;
1676
+ ccBrand: string;
1677
+ paymentNotes: PaymentNote[];
1678
+ parentInvoiceId?: number;
1679
+ refundReasonId?: number;
1680
+ refundNote?: string;
1681
+ }
1771
1682
  export declare class PasswordReset extends BondBaseEntity {
1772
1683
  token: string | null;
1773
1684
  userId: number | null;
@@ -1796,7 +1707,7 @@ export declare class PaymentV1 extends BondBaseEntity {
1796
1707
  locked: boolean | null;
1797
1708
  numberOfTries: number | null;
1798
1709
  installmentId: number | null;
1799
- orderId: string | null;
1710
+ invoiceId: string | null;
1800
1711
  }
1801
1712
  export declare class Price extends OrganizationConnectionBaseEntity {
1802
1713
  productId: number;
@@ -1865,6 +1776,17 @@ export declare class Product extends OrganizationConnectionBaseEntity {
1865
1776
  activityTimes: ActivityTimes[];
1866
1777
  purchasedResources: PurchasedResource[];
1867
1778
  }
1779
+ export declare class ProductResource extends OrganizationConnectionBaseEntity {
1780
+ productId: number;
1781
+ resourceId: number;
1782
+ resourceType: ResourceNameTypeEnum;
1783
+ deletedAt?: Date;
1784
+ programSeason: ProgramSeason;
1785
+ event: Event;
1786
+ product: Product;
1787
+ productPackages: ProductPackage[];
1788
+ resourceName?: string;
1789
+ }
1868
1790
  export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1869
1791
  parentProductId: number;
1870
1792
  childProductId: number;
@@ -1880,26 +1802,6 @@ export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1880
1802
  durationDays?: number;
1881
1803
  level?: ProductPackageLevelEnum;
1882
1804
  }
1883
- export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
1884
- productId: number;
1885
- maxMonths?: number;
1886
- dayOfMonth?: number;
1887
- name: string;
1888
- deletedAt?: Date;
1889
- schedule: PaymentPlanSchedule[];
1890
- product?: Product;
1891
- }
1892
- export declare class ProductResource extends OrganizationConnectionBaseEntity {
1893
- productId: number;
1894
- resourceId: number;
1895
- resourceType: ResourceNameTypeEnum;
1896
- deletedAt?: Date;
1897
- programSeason: ProgramSeason;
1898
- event: Event;
1899
- product: Product;
1900
- productPackages: ProductPackage[];
1901
- resourceName?: string;
1902
- }
1903
1805
  export declare class ProductToVariantTitle extends OrganizationConnectionBaseEntity {
1904
1806
  productId: number;
1905
1807
  variantTitleId: number;
@@ -1908,29 +1810,14 @@ export declare class ProductToVariant extends OrganizationConnectionBaseEntity {
1908
1810
  productId: number;
1909
1811
  variantId: number;
1910
1812
  }
1911
- export declare class ProductsReservedForCustomers extends OrganizationConnectionBaseEntity {
1813
+ export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
1912
1814
  productId: number;
1913
- customerId: number;
1914
- customer: Customer;
1815
+ maxMonths?: number;
1816
+ dayOfMonth?: number;
1817
+ name: string;
1915
1818
  deletedAt?: Date;
1916
- product: Product;
1917
- }
1918
- export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1919
- productId: number;
1920
- userId: number;
1921
- user?: User;
1922
- paymentStatus: PaymentStatusEnum;
1923
- productName: string;
1924
- productPrice: number;
1925
- productQuantity: number;
1926
- productQuantityLeft: number;
1927
- productPriceCurrency: CurrencyEnum;
1928
- ordinal?: number;
1929
- purchasedResources: PurchasedResource[];
1930
- product: Product;
1931
- lineItem: LineItems;
1932
- slots?: Slot[];
1933
- addons?: Addon[];
1819
+ schedule: PaymentPlanSchedule[];
1820
+ product?: Product;
1934
1821
  }
1935
1822
  export declare class Program extends BondBaseEntity {
1936
1823
  type: ProgramTypesEnum;
@@ -1954,16 +1841,32 @@ export declare class Program extends BondBaseEntity {
1954
1841
  programSeason: ProgramSeason[];
1955
1842
  purchasedResources: PurchasedResource[];
1956
1843
  }
1957
- export declare class ProgramHighlights extends BondBaseEntity {
1958
- type: ProgramHighlightTypeEnum;
1959
- ordinal: number | null;
1960
- title: string | null;
1961
- data: any | null;
1962
- program: Program;
1963
- deletedAt?: Date;
1964
- }
1965
- export declare class ProgramSeason extends BondBaseEntity {
1966
- programId: number;
1844
+ export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1845
+ productId: number;
1846
+ userId: number;
1847
+ user?: User;
1848
+ paymentStatus: PaymentStatusEnum;
1849
+ productName: string;
1850
+ productPrice: number;
1851
+ productQuantity: number;
1852
+ productQuantityLeft: number;
1853
+ productPriceCurrency: CurrencyEnum;
1854
+ ordinal?: number;
1855
+ purchasedResources: PurchasedResource[];
1856
+ product: Product;
1857
+ lineItem: LineItems;
1858
+ slots?: Slot[];
1859
+ addons?: Addon[];
1860
+ }
1861
+ export declare class ProductsReservedForCustomers extends OrganizationConnectionBaseEntity {
1862
+ productId: number;
1863
+ customerId: number;
1864
+ customer: Customer;
1865
+ deletedAt?: Date;
1866
+ product: Product;
1867
+ }
1868
+ export declare class ProgramSeason extends BondBaseEntity {
1869
+ programId: number;
1967
1870
  name: string;
1968
1871
  description: string | null;
1969
1872
  GL?: string | null;
@@ -2038,10 +1941,23 @@ export declare class PurchasedResource extends OrganizationConnectionBaseEntity
2038
1941
  product?: Product;
2039
1942
  event?: Event;
2040
1943
  }
1944
+ export declare class ProgramHighlights extends BondBaseEntity {
1945
+ type: ProgramHighlightTypeEnum;
1946
+ ordinal: number | null;
1947
+ title: string | null;
1948
+ data: any | null;
1949
+ program: Program;
1950
+ deletedAt?: Date;
1951
+ }
2041
1952
  export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2042
1953
  title: string | null;
2043
1954
  answerTitle: AnswerTitle;
2044
1955
  }
1956
+ export declare class RefundReason extends OrganizationConnectionBaseEntity {
1957
+ reason: string;
1958
+ ordinal: number;
1959
+ deletedAt: Date;
1960
+ }
2045
1961
  export declare class Questions extends BondBaseEntity {
2046
1962
  questionType: string | null;
2047
1963
  ordinal: number | null;
@@ -2056,11 +1972,6 @@ export declare class Questions extends BondBaseEntity {
2056
1972
  ownerId: number | null;
2057
1973
  questionnaireId: number | null;
2058
1974
  }
2059
- export declare class RefundReason extends OrganizationConnectionBaseEntity {
2060
- reason: string;
2061
- ordinal: number;
2062
- deletedAt: Date;
2063
- }
2064
1975
  export declare class RegistrationConstraint extends OrganizationConnectionBaseEntity {
2065
1976
  resourceType: ResourceNameTypeEnum;
2066
1977
  resourceId: number;
@@ -2079,7 +1990,7 @@ export declare class Reservations extends OrganizationConnectionBaseEntity {
2079
1990
  status?: string;
2080
1991
  privacySetting?: string;
2081
1992
  reservationType?: string;
2082
- orderId?: string;
1993
+ invoiceId?: string;
2083
1994
  customerId?: number;
2084
1995
  length?: number;
2085
1996
  price?: number;
@@ -2104,6 +2015,51 @@ export declare class Reservations extends OrganizationConnectionBaseEntity {
2104
2015
  publicNotes?: string;
2105
2016
  slots?: Slot[];
2106
2017
  }
2018
+ export declare class Invoice extends BondBaseEntity {
2019
+ invoiceId: string | null;
2020
+ price: number | null;
2021
+ status: InvoiceStatusEnum | null;
2022
+ sentForClientDate: Date | null;
2023
+ payingUserId?: number | null;
2024
+ invoiceToPayments: InvoiceToPayment[];
2025
+ lineItems: LineItems[];
2026
+ lineItemHistory: LineItemHistory[];
2027
+ paymentStatus: PaymentStatusEnum;
2028
+ paymentMethodId?: string;
2029
+ paymentType?: PaymentMethodTypeEnum;
2030
+ paidAmount: number;
2031
+ currency: CurrencyEnum;
2032
+ mainPaymentId: number;
2033
+ isScheduled: boolean;
2034
+ isRefunded: boolean;
2035
+ isVoided: boolean;
2036
+ creatingUserId: number;
2037
+ shiftId: number;
2038
+ platform: PlatformsEnum;
2039
+ invoiceNotes: InvoiceNote[];
2040
+ slots: Slot[];
2041
+ }
2042
+ export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2043
+ name: string;
2044
+ facilityId: number;
2045
+ parentSlotId: number;
2046
+ childrenSlotIds: number[];
2047
+ deletedAt?: Date;
2048
+ }
2049
+ export declare class SeasonAttendee extends BondBaseEntity {
2050
+ status: RequestStatusEnum;
2051
+ paymentStatus: PaymentStatusEnum;
2052
+ paymentId?: number;
2053
+ productId?: number;
2054
+ attendeeId: number;
2055
+ attendee: User;
2056
+ seasonId: number;
2057
+ season: ProgramSeason;
2058
+ productUserId?: number;
2059
+ answerTitleIds?: number[];
2060
+ deletedAt?: Date;
2061
+ purchasedResource: PurchasedResource;
2062
+ }
2107
2063
  export declare class Resource extends OrganizationConnectionBaseEntity {
2108
2064
  name: string;
2109
2065
  resourceType: ResourceTypeEnum;
@@ -2132,41 +2088,6 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
2132
2088
  purchasedResources: PurchasedResource[];
2133
2089
  linkSEO: string;
2134
2090
  }
2135
- export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2136
- name: string;
2137
- facilityId: number;
2138
- parentSlotId: number;
2139
- childrenSlotIds: number[];
2140
- deletedAt?: Date;
2141
- }
2142
- export declare class School extends BondBaseEntity {
2143
- name: string | null;
2144
- alias: string[] | null;
2145
- addressId: number | null;
2146
- website: string | null;
2147
- phone: string | null;
2148
- dataId: number | null;
2149
- }
2150
- export declare class SeasonAttendee extends BondBaseEntity {
2151
- status: RequestStatusEnum;
2152
- paymentStatus: PaymentStatusEnum;
2153
- paymentId?: number;
2154
- productId?: number;
2155
- attendeeId: number;
2156
- attendee: User;
2157
- seasonId: number;
2158
- season: ProgramSeason;
2159
- productUserId?: number;
2160
- answerTitleIds?: number[];
2161
- deletedAt?: Date;
2162
- purchasedResource: PurchasedResource;
2163
- }
2164
- export declare class SeasonDivisions extends BondBaseEntity {
2165
- name: string | null;
2166
- ordinal: number | null;
2167
- seasonId: number | null;
2168
- color: string | null;
2169
- }
2170
2091
  export declare class SeasonPool extends BondBaseEntity {
2171
2092
  seasonId?: number;
2172
2093
  userId?: number;
@@ -2182,20 +2103,16 @@ export declare class SeasonPool extends BondBaseEntity {
2182
2103
  purchasedResource: PurchasedResource;
2183
2104
  season: LeagueSeason;
2184
2105
  }
2185
- export declare class SeasonTeam extends BondBaseEntity {
2186
- seasonId: number | null;
2187
- teamId: number | null;
2188
- standingPosition: number | null;
2189
- statistics: any | null;
2190
- points: number | null;
2191
- divisionId: number | null;
2192
- metaData: any | null;
2193
- team: Team;
2194
- }
2195
2106
  export declare class SpacesDependency extends BondBaseEntity {
2196
2107
  blockingSpaceId: number;
2197
2108
  blockedSpaceId: number;
2198
2109
  }
2110
+ export declare class SeasonDivisions extends BondBaseEntity {
2111
+ name: string | null;
2112
+ ordinal: number | null;
2113
+ seasonId: number | null;
2114
+ color: string | null;
2115
+ }
2199
2116
  export declare class Station extends OrganizationConnectionBaseEntity {
2200
2117
  name: string;
2201
2118
  facilityId: number;
@@ -2207,6 +2124,16 @@ export declare class Station extends OrganizationConnectionBaseEntity {
2207
2124
  subcategories: Subcategory[];
2208
2125
  shifts?: Shift[];
2209
2126
  }
2127
+ export declare class SeasonTeam extends BondBaseEntity {
2128
+ seasonId: number | null;
2129
+ teamId: number | null;
2130
+ standingPosition: number | null;
2131
+ statistics: any | null;
2132
+ points: number | null;
2133
+ divisionId: number | null;
2134
+ metaData: any | null;
2135
+ team: Team;
2136
+ }
2210
2137
  export declare class StationToSubcategory extends OrganizationConnectionBaseEntity {
2211
2138
  stationId: number;
2212
2139
  subcategoryId: number;
@@ -2215,13 +2142,31 @@ export declare class StationToSubcategory extends OrganizationConnectionBaseEnti
2215
2142
  station: Station;
2216
2143
  subcategory: Subcategory;
2217
2144
  }
2218
- export declare class Subcategory extends OrganizationConnectionBaseEntity {
2219
- productType: ProductTypesEnum;
2220
- name: string;
2221
- ordinal?: number;
2222
- deletedAt?: Date;
2223
- stationToSubcategories: StationToSubcategory[];
2224
- stations: Station[];
2145
+ export declare class League extends OrganizationConnectionBaseEntity {
2146
+ name: string | null;
2147
+ description: string | null;
2148
+ allowBookingRequest: boolean | null;
2149
+ addressName: string | null;
2150
+ shortDescription: string | null;
2151
+ waiverDoc: string | null;
2152
+ bookingStateStatus: number | null;
2153
+ timezone: string | null;
2154
+ shortUrl: string | null;
2155
+ leagueType: string | null;
2156
+ addressId: number | null;
2157
+ sportConfigData: any | null;
2158
+ creatorId: number | null;
2159
+ creatorType: string | null;
2160
+ userCreatorId: number | null;
2161
+ ownerId: number | null;
2162
+ sports: number[] | null;
2163
+ mainMediaId: number | null;
2164
+ publishedDate: Date | null;
2165
+ isPublished: boolean | null;
2166
+ isVerified: boolean | null;
2167
+ questionnaireId: number | null;
2168
+ logo?: Media;
2169
+ seasons: LeagueSeason[];
2225
2170
  }
2226
2171
  export declare class Team extends BondBaseEntity {
2227
2172
  name: string | null;
@@ -2257,14 +2202,13 @@ export declare class Team extends BondBaseEntity {
2257
2202
  gender: number | null;
2258
2203
  questionnaireId: number | null;
2259
2204
  }
2260
- export declare class TeamInvite extends BondBaseEntity {
2261
- email: string;
2262
- teamId: number;
2263
- invitedUserId?: number;
2264
- userCreatorId: number;
2265
- token: string;
2266
- tokenExpirationDate: Date;
2267
- isUsed: boolean;
2205
+ export declare class Subcategory extends OrganizationConnectionBaseEntity {
2206
+ productType: ProductTypesEnum;
2207
+ name: string;
2208
+ ordinal?: number;
2209
+ deletedAt?: Date;
2210
+ stationToSubcategories: StationToSubcategory[];
2211
+ stations: Station[];
2268
2212
  }
2269
2213
  export declare class TeamMember extends BondBaseEntity {
2270
2214
  teamId: number | null;
@@ -2275,6 +2219,12 @@ export declare class TeamMember extends BondBaseEntity {
2275
2219
  role: TeamMemberRoleEnum;
2276
2220
  user: User;
2277
2221
  }
2222
+ export declare class UserAuthorizations extends BondBaseEntity {
2223
+ entityId: number | null;
2224
+ userId: number | null;
2225
+ entityType: UserAuthorizationsTypeEnum;
2226
+ user: User;
2227
+ }
2278
2228
  export declare class User extends BondBaseEntity {
2279
2229
  firstName: string | null;
2280
2230
  lastName: string | null;
@@ -2311,14 +2261,8 @@ export declare class User extends BondBaseEntity {
2311
2261
  linkedAccounts: LinkedAccounts[];
2312
2262
  profilePicture: Media;
2313
2263
  usersRoles: UserRole[];
2314
- orderNotes: OrderNote[];
2315
2264
  invoiceNotes: InvoiceNote[];
2316
- }
2317
- export declare class UserAuthorizations extends BondBaseEntity {
2318
- entityId: number | null;
2319
- userId: number | null;
2320
- entityType: UserAuthorizationsTypeEnum;
2321
- user: User;
2265
+ paymentNotes: PaymentNote[];
2322
2266
  }
2323
2267
  export declare class UserInFamilyAccount extends BondBaseEntity {
2324
2268
  familyAccountId: number;
@@ -2333,16 +2277,54 @@ export declare class UsersInGroup extends BondBaseEntity {
2333
2277
  userId: number;
2334
2278
  deletedAt?: Date;
2335
2279
  }
2280
+ export declare class LeagueSeason extends BondBaseEntity {
2281
+ leagueId: number | null;
2282
+ name: string | null;
2283
+ status: number | null;
2284
+ startDate: Date | null;
2285
+ endDate: Date | null;
2286
+ priceEarlySingle: number | null;
2287
+ priceRegularSingle: number | null;
2288
+ priceLateSingle: number | null;
2289
+ priceEarlyTeam: number | null;
2290
+ priceRegularTeam: number | null;
2291
+ priceLateTeam: number | null;
2292
+ priceEarlyTeamMember: number | null;
2293
+ priceRegularTeamMember: number | null;
2294
+ priceLateTeamMember: number | null;
2295
+ priceEarlyGroup: number | null;
2296
+ priceRegularGroup: number | null;
2297
+ priceLateGroup: number | null;
2298
+ earlyRegistrationEnds: Date | null;
2299
+ regularRegistrationEnds: Date | null;
2300
+ lateRegistrationEnds: Date | null;
2301
+ registrationStatus: number | null;
2302
+ description: string | null;
2303
+ addressName: string | null;
2304
+ registrationOpen: Date | null;
2305
+ connectedSeasonId: number | null;
2306
+ tournamentType: boolean | null;
2307
+ playoffType: boolean | null;
2308
+ scheduleStatus: SeasonScheduleStatusEnum;
2309
+ rosterStatus: string | null;
2310
+ metaData: any | null;
2311
+ inviteSendDate: Date | null;
2312
+ maxNumParticipants: number | null;
2313
+ programId: number | null;
2314
+ minNumParticipants: number | null;
2315
+ league: League;
2316
+ facilities: Facility[];
2317
+ seasonAttendees: SeasonAttendee[];
2318
+ purchasedResources: PurchasedResource[];
2319
+ }
2320
+ export declare class LeagueSeasonRelations {
2321
+ league?: boolean;
2322
+ facilities?: boolean;
2323
+ }
2336
2324
  export declare class VariantTitle extends OrganizationConnectionBaseEntity {
2337
2325
  name: string;
2338
2326
  variants: Variant[];
2339
2327
  }
2340
- export declare class Variant extends OrganizationConnectionBaseEntity {
2341
- name: string;
2342
- variantTitleId: number;
2343
- variantTitle: VariantTitle;
2344
- deletedAt?: Date;
2345
- }
2346
2328
  export declare class WebflowOrganizationConfiguration extends OrganizationConnectionBaseEntity {
2347
2329
  projectToken: string;
2348
2330
  programTypesCollectionId?: string;
@@ -2351,8 +2333,391 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2351
2333
  membershipCollectionId?: string;
2352
2334
  programsCollectionId?: string;
2353
2335
  }
2354
- export declare enum EntitlementTermsTypesEnum {
2355
- QUESTION = "question",
2336
+ export declare class School extends BondBaseEntity {
2337
+ name: string | null;
2338
+ alias: string[] | null;
2339
+ addressId: number | null;
2340
+ website: string | null;
2341
+ phone: string | null;
2342
+ dataId: number | null;
2343
+ }
2344
+ export declare class TeamInvite extends BondBaseEntity {
2345
+ email: string;
2346
+ teamId: number;
2347
+ invitedUserId?: number;
2348
+ userCreatorId: number;
2349
+ token: string;
2350
+ tokenExpirationDate: Date;
2351
+ isUsed: boolean;
2352
+ }
2353
+ export declare class Variant extends OrganizationConnectionBaseEntity {
2354
+ name: string;
2355
+ variantTitleId: number;
2356
+ variantTitle: VariantTitle;
2357
+ deletedAt?: Date;
2358
+ }
2359
+ export interface IEntitlementTerms {
2360
+ type: EntitlementTermsTypesEnum;
2361
+ id?: number;
2362
+ value?: string;
2363
+ minValue?: string;
2364
+ maxValue?: string;
2365
+ }
2366
+ export interface IQuestionAnswerObject {
2367
+ questionId: number;
2368
+ value: string;
2369
+ }
2370
+ export interface ILowestPriceForItem {
2371
+ itemId: number;
2372
+ itemType: ResourceNameTypeEnum;
2373
+ groupId: number;
2374
+ groupName?: string;
2375
+ price: number;
2376
+ overridesPrice: boolean;
2377
+ }
2378
+ export interface IResourcesAvailability {
2379
+ resourceType: ResourceNameTypeEnum;
2380
+ quantity: number;
2381
+ resourcesIds: number[];
2382
+ isPunchCard: boolean;
2383
+ resources?: any[];
2384
+ }
2385
+ export interface IPackageResponse {
2386
+ parentProduct: Product;
2387
+ children: IChildProduct[];
2388
+ }
2389
+ export interface IChildProduct {
2390
+ product: Product;
2391
+ relationType: PackageProductsRelationTypeEnum;
2392
+ timePeriod?: AddonTimePeriodEnum;
2393
+ }
2394
+ export interface ISeasonAttendeeInfo {
2395
+ applicationAnswers: Answer[];
2396
+ segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2397
+ invoices: Invoice[];
2398
+ payments: Payment[];
2399
+ products: Product[];
2400
+ redeemNext: ProductsUsers;
2401
+ }
2402
+ export interface ISeasonAttendeeListInfo {
2403
+ userId: number;
2404
+ userFirstName: string;
2405
+ userLastName: string;
2406
+ userGender: number;
2407
+ userBirthDate: Date;
2408
+ userProfilePicUrl: string;
2409
+ customerId: number;
2410
+ customerEmail: string;
2411
+ paymentStatus: string;
2412
+ productName: string;
2413
+ punchCard: boolean;
2414
+ }
2415
+ export declare class SeasonAsSeasonSegment extends ProgramSeason {
2416
+ segmentType: ResourceNameTypeEnum;
2417
+ participantRegisteredDate?: string;
2418
+ }
2419
+ export declare class EventAsSeasonSegment extends Event {
2420
+ segmentType: ResourceNameTypeEnum;
2421
+ participantRegisteredDate?: string;
2422
+ }
2423
+ export interface ITokenResonse {
2424
+ token: string;
2425
+ }
2426
+ export interface IStripeBondInvoices {
2427
+ paidStripePaymentIntent: Stripe.PaymentIntent;
2428
+ bondPaidPayment: Payment;
2429
+ invoice?: Invoice;
2430
+ customer?: Customer;
2431
+ }
2432
+ export interface IPartialPaymentData {
2433
+ purchasingUserId: number;
2434
+ paymentData: PurchasePaymentDto;
2435
+ amountToPay: number;
2436
+ }
2437
+ export interface IPayment {
2438
+ id: number;
2439
+ total: number;
2440
+ paymentMethod: PaymentMethodTypeEnum;
2441
+ status: PaymentStatusEnum;
2442
+ createdAt: Date;
2443
+ invoices: number[];
2444
+ }
2445
+ export interface IPaginationData<T> {
2446
+ meta: {
2447
+ totalItems: number;
2448
+ itemsPerPage: number;
2449
+ totalPages: number;
2450
+ currentPage: number;
2451
+ };
2452
+ data: T[];
2453
+ }
2454
+ export interface IPricesOfProductsResults {
2455
+ productId: number;
2456
+ userId: number;
2457
+ price: number;
2458
+ groupId?: number;
2459
+ groupName?: string;
2460
+ originalPrice?: number;
2461
+ priceWithoutTax: number;
2462
+ tax: number;
2463
+ isTaxInclusive: boolean;
2464
+ }
2465
+ export interface IPaymentMethodToFundLeft {
2466
+ paymentType: PaymentMethodTypeEnum;
2467
+ paymentMethodId: string;
2468
+ fundLeft: number;
2469
+ ccLast4?: string;
2470
+ ccBrand?: string;
2471
+ }
2472
+ export interface IVariantsAndTitle {
2473
+ title: VariantTitle;
2474
+ variants: Variant[];
2475
+ }
2476
+ export interface IProgramSeasonActivityTimes {
2477
+ dayOfWeek: number;
2478
+ open: string;
2479
+ close: string;
2480
+ }
2481
+ export interface IProgramSeasonActivityTimesAsDates {
2482
+ date: string;
2483
+ startTime: string;
2484
+ endTime: string;
2485
+ }
2486
+ export interface IBlockedDates {
2487
+ name: string;
2488
+ startDate: Date;
2489
+ endDate: Date;
2490
+ }
2491
+ export interface ISingleMemberForRenewal {
2492
+ member_id: number;
2493
+ member_membershipId: number;
2494
+ member_userId: number;
2495
+ member_nextPaymentMethodId?: string;
2496
+ member_nextPaymentType?: PaymentMethodTypeEnum;
2497
+ member_answerTitleIds?: number[];
2498
+ member_organizationId: number;
2499
+ line_paidAmount: number;
2500
+ line_productId: number;
2501
+ invoice_payingUserId: number;
2502
+ invoice_paymentMethodId: string;
2503
+ invoice_paymentType: PaymentMethodTypeEnum;
2504
+ endDate: Date;
2505
+ membership_name: string;
2506
+ user_firstName: string;
2507
+ user_lastName: string;
2508
+ user_email: string;
2509
+ }
2510
+ export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
2511
+ package_parentProductId: number;
2512
+ line2_paidAmount: number;
2513
+ familyid: number;
2514
+ invoice_id: number;
2515
+ }
2516
+ export interface IResourceRegistrationData {
2517
+ id: number;
2518
+ resourceType: ResourceNameTypeEnum;
2519
+ openNumDays?: number;
2520
+ openNumMinutes?: number;
2521
+ openTime?: string;
2522
+ closeNumDays?: number;
2523
+ closeNumMinutes?: number;
2524
+ closeTime?: string;
2525
+ registrationWindowStatus?: RegistrationWindowStatusEnum;
2526
+ }
2527
+ export interface IResourceDataForConstraintsCalc {
2528
+ id: number;
2529
+ startDate: string;
2530
+ startTime: string;
2531
+ }
2532
+ export interface IRegistrationConstraintsSetting {
2533
+ numDays?: number;
2534
+ numMinutes?: number;
2535
+ }
2536
+ export interface IAttendeeDataToNotify {
2537
+ firstName: string;
2538
+ lastName: string;
2539
+ email: string;
2540
+ sessionName: string;
2541
+ parentSessionName?: string;
2542
+ organizationName: string;
2543
+ programName: string;
2544
+ }
2545
+ export interface IEventInSchedule {
2546
+ eventId: number;
2547
+ eventName: string;
2548
+ eventStartDate: string;
2549
+ eventEndDate: string;
2550
+ eventStartTime: string;
2551
+ eventEndTime: string;
2552
+ programId: number;
2553
+ programName: string;
2554
+ programType: ProgramTypesEnum;
2555
+ sessionId: number;
2556
+ sessionName: string;
2557
+ sports: number;
2558
+ spaces: {
2559
+ spaceId: number;
2560
+ spaceName: string;
2561
+ }[];
2562
+ status?: RegistrationValidationStatusEnum;
2563
+ }
2564
+ export interface ISlotInSchedule {
2565
+ facilityId: number;
2566
+ facilityName: string;
2567
+ spaces: ISpaceWithSlots[];
2568
+ }
2569
+ export interface ISpaceWithSlots {
2570
+ id: number;
2571
+ name: string;
2572
+ slots: ISlotReservationData[];
2573
+ }
2574
+ export interface ISlotReservationData {
2575
+ reservationId: number;
2576
+ reservationName: string;
2577
+ date: string;
2578
+ startTime: string;
2579
+ endTime: string;
2580
+ notes: string;
2581
+ spaceId: number;
2582
+ isRental: boolean;
2583
+ slotType: SlotTypeEnum;
2584
+ slotId: number;
2585
+ eventId: number;
2586
+ isPrivate: boolean;
2587
+ }
2588
+ export interface IRawEventInSchedule extends IEventInSchedule {
2589
+ parentSessionId: number;
2590
+ parentSessionName: string;
2591
+ eventTimezone: string;
2592
+ maxParticipants: number;
2593
+ maxMaleParticipants: number;
2594
+ maxFemaleParticipants: number;
2595
+ isPunchCard: boolean;
2596
+ }
2597
+ export interface IBasicSpaceAndSlotCreator {
2598
+ id: number;
2599
+ name: string;
2600
+ bookingCreatorId: number;
2601
+ }
2602
+ export interface IRawSlotInSchedule {
2603
+ startDate: string;
2604
+ endDate: string;
2605
+ startTime: string;
2606
+ endTime: string;
2607
+ reservationId: number;
2608
+ eventTitle: string;
2609
+ publicNotes: string;
2610
+ spaceId: number;
2611
+ creatorType: ResourceNameTypeEnum;
2612
+ slotType: SlotTypeEnum;
2613
+ slotId: number;
2614
+ eventId: number;
2615
+ isPrivate: boolean;
2616
+ }
2617
+ export interface IPurchasedResourcesRaw {
2618
+ purchasedId: number;
2619
+ purchasedProductUserId: number;
2620
+ purchasedResourceId: number;
2621
+ purchasedResourceType: ResourceNameTypeEnum;
2622
+ purchasedStatus: PurchasedResourceStatusEnum;
2623
+ pUserId: number;
2624
+ pUserPaymentStatus: PaymentStatusEnum;
2625
+ pUserProductId: number;
2626
+ pUserProductName: string;
2627
+ pUserProductPrice: number;
2628
+ pUserProductPriceCurrency: string;
2629
+ pUserProductQuantity: number;
2630
+ pUserProductQuantityLeft: number;
2631
+ pUserUserId: number;
2632
+ }
2633
+ export interface IUsersPasses {
2634
+ userId: number;
2635
+ userFirstName: string;
2636
+ userLastName: string;
2637
+ organizationId: number;
2638
+ programId: number;
2639
+ programName: string;
2640
+ sessionId: number;
2641
+ sessionName: string;
2642
+ productId: number;
2643
+ productName: string;
2644
+ productUserId: number;
2645
+ purchaseDate: Date;
2646
+ passesLeft: number;
2647
+ }
2648
+ export interface ISessionsLandingPage {
2649
+ sessionId: number;
2650
+ name: string;
2651
+ startDate: Date;
2652
+ endDate: Date;
2653
+ registrationStartDate: Date;
2654
+ registrationEndDate: Date;
2655
+ sport: SportsEnum;
2656
+ minAge: string;
2657
+ maxAge: string;
2658
+ maxParticipants?: number;
2659
+ gender: GenderEnum;
2660
+ activityTimes: ActivityTimes[];
2661
+ earlyRegistrationStartDate?: Date;
2662
+ earlyRegistrationEndDate?: Date;
2663
+ lateRegistrationStartDate?: Date;
2664
+ lateRegistrationEndDate?: Date;
2665
+ attendeeCount?: number;
2666
+ segmentsOrEvents: 'segment' | 'event';
2667
+ }
2668
+ export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
2669
+ hasRequiredMembership: boolean;
2670
+ hasEntitledPricing: boolean;
2671
+ lowestPrice?: number;
2672
+ products?: ISessionLandingPageProduct[];
2673
+ }
2674
+ export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
2675
+ hasRequiredMembership: boolean;
2676
+ hasEntitledPricing: boolean;
2677
+ products?: ISessionLandingPageProduct[];
2678
+ segments?: Event[] | ProgramSeason[];
2679
+ programName: string;
2680
+ programId: number;
2681
+ levelOfPlay: LevelOfPlayEnum[];
2682
+ registrationConstraints: IResourceRegistrationData[];
2683
+ }
2684
+ export interface ISlimAddons {
2685
+ addons?: {
2686
+ id: number;
2687
+ timePeriod: AddonTimePeriodEnum;
2688
+ name: string;
2689
+ productType?: ProductTypesEnum;
2690
+ productSubType?: string;
2691
+ }[];
2692
+ }
2693
+ export interface ISessionLandingPageProduct extends ISlimAddons {
2694
+ id: number;
2695
+ name: string;
2696
+ startDate?: Date;
2697
+ endDate?: Date;
2698
+ downpayment?: number;
2699
+ description?: string;
2700
+ prices: Price[];
2701
+ productSubType?: ProductSubTypesEnum;
2702
+ punchCard: boolean;
2703
+ isAddon: boolean;
2704
+ defaultPriceId?: number;
2705
+ }
2706
+ export interface CreatePaymentIntentDto extends PurchaseRequestDto {
2707
+ destinationId?: string;
2708
+ stripeCustomerId?: string;
2709
+ fee?: number;
2710
+ }
2711
+ export interface IReservationCreatorData {
2712
+ type: ResourceNameTypeEnum;
2713
+ id: number;
2714
+ organizationId: number;
2715
+ startDate: string;
2716
+ endDate: string;
2717
+ sportId: number;
2718
+ }
2719
+ export declare enum EntitlementTermsTypesEnum {
2720
+ QUESTION = "question",
2356
2721
  CITY = "city",
2357
2722
  MEMBERSHIP = "membership"
2358
2723
  }
@@ -2375,7 +2740,7 @@ export declare enum ResourceNameTypeEnum {
2375
2740
  GAMESLOT = "gameslot",
2376
2741
  SPACE = "space",
2377
2742
  RESERVATION = "reservation",
2378
- ORDER = "order",
2743
+ INVOICE = "invoice",
2379
2744
  CUSTOMER = "customer",
2380
2745
  PACKAGE = "package",
2381
2746
  FACILITY = "facility",
@@ -2514,7 +2879,8 @@ export declare enum PaymentStatusEnum {
2514
2879
  VOID = "void"
2515
2880
  }
2516
2881
  export declare enum ReservationExtendedEnum {
2517
- PURCHASE_ORDER = "purchase_order"
2882
+ PURCHASE_INVOICE = "purchase_invoice",
2883
+ PURCHASE_ORDER_DEPRECATED = "purchase_order"
2518
2884
  }
2519
2885
  export declare type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
2520
2886
  export declare enum ReservationStatusEnum {
@@ -2568,7 +2934,7 @@ export declare enum ProductTypesEnum {
2568
2934
  LEAGUE_REGISTRATION = "league_registration",
2569
2935
  TAX = "tax"
2570
2936
  }
2571
- export declare enum OrderStatusEnum {
2937
+ export declare enum InvoiceStatusEnum {
2572
2938
  ACTIVE = "active",
2573
2939
  WAITING_ADMIN = "waitingAdmin",
2574
2940
  WAITING_CLIENT = "waitingClient",
@@ -2758,491 +3124,141 @@ export declare enum OrganizationLocaleDateEnum {
2758
3124
  USA = "USA"
2759
3125
  }
2760
3126
  export declare enum DateTimeFormatsEnum {
2761
- API_DATE = "YYYY/MM/DD",
2762
- API_TIME = "HH:mm:ss"
2763
- }
2764
- export declare enum SlotTypeEnum {
2765
- EXTERNAL = "external",
2766
- INTERNAL = "internal",
2767
- MAINTENANCE = "maintenance",
2768
- CUSTOM = "custom"
2769
- }
2770
- export declare enum PlatformsEnum {
2771
- CONSUMER = "consumer",
2772
- BO = "backoffice",
2773
- MOBILE = "mobile",
2774
- CRON = "cron"
2775
- }
2776
- export declare enum ShiftStatusEnum {
2777
- OPEN = "open",
2778
- CLOSED = "closed",
2779
- MANAGMENT_CLOSED = "closed_by_manager",
2780
- RECONCILED = "reconciled"
2781
- }
2782
- export declare enum EventStatusEnum {
2783
- OPEN = 1,
2784
- DRAFT = 2,
2785
- FULL = 3,
2786
- CANCELLED = 4,
2787
- CLOSED = 5,
2788
- DELETED = 6
2789
- }
2790
- export declare enum ReservationTypeEnum {
2791
- RENTAL = "rental",
2792
- PROGRAM = "program",
2793
- MAINTENANCE = "maintenance",
2794
- CUSTOM = "custom"
2795
- }
2796
- export declare enum SlotDurationTypeEnum {
2797
- DATES = "dates",
2798
- ALL_DAY = "all day",
2799
- DURATION = "duration"
2800
- }
2801
- export declare enum DurationUnitTypesEnum {
2802
- MINUTES = "minutes",
2803
- HOURS = "hours"
2804
- }
2805
- export declare enum FrequencyEnum {
2806
- NONE = "none",
2807
- WEEKLY = "weekly",
2808
- DAILY = "daily",
2809
- MONTHLY = "monthly",
2810
- YEARLY = "yearly"
2811
- }
2812
- export declare enum MaintenanceTimingEnum {
2813
- BEFORE = 1,
2814
- AFTER = 2,
2815
- AT_THE_BEGINING = 3,
2816
- AT_THE_END = 4
2817
- }
2818
- export declare enum CreatorTypeEnum {
2819
- SPACE = "space",
2820
- PROGRAM_SEASON = "program_season"
2821
- }
2822
- export declare enum UpdatePricesTypeEnum {
2823
- INDIVIDUAL = "indvidual",
2824
- CATEGORY = "category",
2825
- GLOBAL = "global"
2826
- }
2827
- export declare enum BondDayOfWeekEnum {
2828
- MONDAY = 2,
2829
- TUESDAY = 3,
2830
- WEDNESDAY = 4,
2831
- THURSDAY = 5,
2832
- FRIDAY = 6,
2833
- SATURDAY = 7,
2834
- SUNDAY = 8
2835
- }
2836
- export declare enum ReservationMigrationStatusEnum {
2837
- NEW = "new",
2838
- NO = "no",
2839
- YES = "yes"
2840
- }
2841
- export declare enum ProductPackageLevelEnum {
2842
- HOUR = "hour",
2843
- SLOT = "slot",
2844
- RESERVATION = "reservation"
2845
- }
2846
- export declare enum CancellationStatusEnum {
2847
- IMMEDIATE = "immediate",
2848
- AUTO_RENEWAL = "auto_renewal"
2849
- }
2850
- export declare enum SeasonScheduleStatusEnum {
2851
- DRAFT = 0,
2852
- PUBLISHED = 1
2853
- }
2854
- export declare enum FinancialStepEnum {
2855
- VOID = "void",
2856
- REFUND = "refund",
2857
- NONE = "none",
2858
- REFUND_AND_VOID = "refund-and-void",
2859
- APPEND = "append"
2860
- }
2861
- export declare enum StripeAccountTypesEnum {
2862
- STRIPE = "stripe",
2863
- STRIPE_CUSTOM = "stripe:account:custom",
2864
- STRIPE_CUSTOMER = "stripe:customer"
2865
- }
2866
- export declare enum LinkedAccountStatus {
2867
- PENDING = 1,
2868
- ACTIVE = 2,
2869
- PRE_PENDING = 3
2870
- }
2871
- export declare enum AddonParentTypeEnum {
2872
- RESERVATION = "reservation",
2873
- SLOT = "slot"
2874
- }
2875
- export declare enum EEmailStatus {
2876
- SENT = "sent",
2877
- OPENED = "opened",
2878
- PAID = "paid",
2879
- CANCELED = "canceled"
2880
- }
2881
- export interface IEntitlementTerms {
2882
- type: EntitlementTermsTypesEnum;
2883
- id?: number;
2884
- value?: string;
2885
- minValue?: string;
2886
- maxValue?: string;
2887
- }
2888
- export interface IQuestionAnswerObject {
2889
- questionId: number;
2890
- value: string;
2891
- }
2892
- export interface ILowestPriceForItem {
2893
- itemId: number;
2894
- itemType: ResourceNameTypeEnum;
2895
- groupId: number;
2896
- groupName?: string;
2897
- price: number;
2898
- overridesPrice: boolean;
2899
- }
2900
- export interface IResourcesAvailability {
2901
- resourceType: ResourceNameTypeEnum;
2902
- quantity: number;
2903
- resourcesIds: number[];
2904
- isPunchCard: boolean;
2905
- resources?: any[];
2906
- }
2907
- export interface IPackageResponse {
2908
- parentProduct: Product;
2909
- children: IChildProduct[];
2910
- }
2911
- export interface IChildProduct {
2912
- product: Product;
2913
- relationType: PackageProductsRelationTypeEnum;
2914
- timePeriod?: AddonTimePeriodEnum;
2915
- }
2916
- export interface ISeasonAttendeeInfo {
2917
- applicationAnswers: Answer[];
2918
- segments: (SeasonAsSeasonSegment | EventAsSeasonSegment)[];
2919
- invoices: Order[];
2920
- payments: Invoice[];
2921
- products: Product[];
2922
- redeemNext: ProductsUsers;
2923
- }
2924
- export interface ISeasonAttendeeListInfo {
2925
- userId: number;
2926
- userFirstName: string;
2927
- userLastName: string;
2928
- userGender: number;
2929
- userBirthDate: Date;
2930
- userProfilePicUrl: string;
2931
- customerId: number;
2932
- customerEmail: string;
2933
- paymentStatus: string;
2934
- productName: string;
2935
- punchCard: boolean;
2936
- }
2937
- export declare class SeasonAsSeasonSegment extends ProgramSeason {
2938
- segmentType: ResourceNameTypeEnum;
2939
- participantRegisteredDate?: string;
2940
- }
2941
- export declare class EventAsSeasonSegment extends Event {
2942
- segmentType: ResourceNameTypeEnum;
2943
- participantRegisteredDate?: string;
2944
- }
2945
- export interface ITokenResonse {
2946
- token: string;
2947
- }
2948
- export interface IStripeBondInvoices {
2949
- paidStripePaymentIntent: Stripe.PaymentIntent;
2950
- bondPaidInvoice: Invoice;
2951
- order?: Order;
2952
- customer?: Customer;
2953
- }
2954
- export interface IPartialPaymentData {
2955
- purchasingUserId: number;
2956
- paymentData: PurchasePaymentDto;
2957
- amountToPay: number;
2958
- }
2959
- export interface IPayment {
2960
- id: number;
2961
- total: number;
2962
- paymentMethod: PaymentMethodTypeEnum;
2963
- status: PaymentStatusEnum;
2964
- createdAt: Date;
2965
- invoices: number[];
2966
- }
2967
- export interface IPaginationData<T> {
2968
- meta: {
2969
- totalItems: number;
2970
- itemsPerPage: number;
2971
- totalPages: number;
2972
- currentPage: number;
2973
- };
2974
- data: T[];
2975
- }
2976
- export interface IPricesOfProductsResults {
2977
- productId: number;
2978
- userId: number;
2979
- price: number;
2980
- groupId?: number;
2981
- groupName?: string;
2982
- originalPrice?: number;
2983
- priceWithoutTax: number;
2984
- tax: number;
2985
- isTaxInclusive: boolean;
2986
- }
2987
- export interface IPaymentMethodToFundLeft {
2988
- paymentType: PaymentMethodTypeEnum;
2989
- paymentMethodId: string;
2990
- fundLeft: number;
2991
- ccLast4?: string;
2992
- ccBrand?: string;
2993
- }
2994
- export interface IVariantsAndTitle {
2995
- title: VariantTitle;
2996
- variants: Variant[];
2997
- }
2998
- export interface IProgramSeasonActivityTimes {
2999
- dayOfWeek: number;
3000
- open: string;
3001
- close: string;
3002
- }
3003
- export interface IProgramSeasonActivityTimesAsDates {
3004
- date: string;
3005
- startTime: string;
3006
- endTime: string;
3007
- }
3008
- export interface IBlockedDates {
3009
- name: string;
3010
- startDate: Date;
3011
- endDate: Date;
3127
+ API_DATE = "YYYY/MM/DD",
3128
+ API_TIME = "HH:mm:ss"
3012
3129
  }
3013
- export interface ISingleMemberForRenewal {
3014
- member_id: number;
3015
- member_membershipId: number;
3016
- member_userId: number;
3017
- member_nextPaymentMethodId?: string;
3018
- member_nextPaymentType?: PaymentMethodTypeEnum;
3019
- member_answerTitleIds?: number[];
3020
- member_organizationId: number;
3021
- line_paidAmount: number;
3022
- line_productId: number;
3023
- order_payingUserId: number;
3024
- order_paymentMethodId: string;
3025
- order_paymentType: PaymentMethodTypeEnum;
3026
- endDate: Date;
3027
- membership_name: string;
3028
- user_firstName: string;
3029
- user_lastName: string;
3030
- user_email: string;
3130
+ export declare enum SlotTypeEnum {
3131
+ EXTERNAL = "external",
3132
+ INTERNAL = "internal",
3133
+ MAINTENANCE = "maintenance",
3134
+ CUSTOM = "custom"
3031
3135
  }
3032
- export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
3033
- package_parentProductId: number;
3034
- line2_paidAmount: number;
3035
- familyid: number;
3036
- order_id: number;
3136
+ export declare enum PlatformsEnum {
3137
+ CONSUMER = "consumer",
3138
+ CONSUMER_CHECKOUT = "consumer_checkout",
3139
+ BO = "backoffice",
3140
+ MOBILE = "mobile",
3141
+ CRON = "cron"
3037
3142
  }
3038
- export interface IResourceRegistrationData {
3039
- id: number;
3040
- resourceType: ResourceNameTypeEnum;
3041
- openNumDays?: number;
3042
- openNumMinutes?: number;
3043
- openTime?: string;
3044
- closeNumDays?: number;
3045
- closeNumMinutes?: number;
3046
- closeTime?: string;
3047
- registrationWindowStatus?: RegistrationWindowStatusEnum;
3143
+ export declare enum ShiftStatusEnum {
3144
+ OPEN = "open",
3145
+ CLOSED = "closed",
3146
+ MANAGMENT_CLOSED = "closed_by_manager",
3147
+ RECONCILED = "reconciled"
3048
3148
  }
3049
- export interface IResourceDataForConstraintsCalc {
3050
- id: number;
3051
- startDate: string;
3052
- startTime: string;
3149
+ export declare enum EventStatusEnum {
3150
+ OPEN = 1,
3151
+ DRAFT = 2,
3152
+ FULL = 3,
3153
+ CANCELLED = 4,
3154
+ CLOSED = 5,
3155
+ DELETED = 6
3053
3156
  }
3054
- export interface IRegistrationConstraintsSetting {
3055
- numDays?: number;
3056
- numMinutes?: number;
3157
+ export declare enum ReservationTypeEnum {
3158
+ RENTAL = "rental",
3159
+ PROGRAM = "program",
3160
+ MAINTENANCE = "maintenance",
3161
+ CUSTOM = "custom"
3057
3162
  }
3058
- export interface IAttendeeDataToNotify {
3059
- firstName: string;
3060
- lastName: string;
3061
- email: string;
3062
- sessionName: string;
3063
- parentSessionName?: string;
3064
- organizationName: string;
3065
- programName: string;
3163
+ export declare enum SlotDurationTypeEnum {
3164
+ DATES = "dates",
3165
+ ALL_DAY = "all day",
3166
+ DURATION = "duration"
3066
3167
  }
3067
- export interface IEventInSchedule {
3068
- eventId: number;
3069
- eventName: string;
3070
- eventStartDate: string;
3071
- eventEndDate: string;
3072
- eventStartTime: string;
3073
- eventEndTime: string;
3074
- programId: number;
3075
- programName: string;
3076
- programType: ProgramTypesEnum;
3077
- sessionId: number;
3078
- sessionName: string;
3079
- sports: number;
3080
- spaces: {
3081
- spaceId: number;
3082
- spaceName: string;
3083
- }[];
3084
- status?: RegistrationValidationStatusEnum;
3168
+ export declare enum DurationUnitTypesEnum {
3169
+ MINUTES = "minutes",
3170
+ HOURS = "hours"
3085
3171
  }
3086
- export interface ISlotInSchedule {
3087
- facilityId: number;
3088
- facilityName: string;
3089
- spaces: ISpaceWithSlots[];
3172
+ export declare enum FrequencyEnum {
3173
+ NONE = "none",
3174
+ WEEKLY = "weekly",
3175
+ DAILY = "daily",
3176
+ MONTHLY = "monthly",
3177
+ YEARLY = "yearly"
3090
3178
  }
3091
- export interface ISpaceWithSlots {
3092
- id: number;
3093
- name: string;
3094
- slots: ISlotReservationData[];
3179
+ export declare enum MaintenanceTimingEnum {
3180
+ BEFORE = 1,
3181
+ AFTER = 2,
3182
+ AT_THE_BEGINING = 3,
3183
+ AT_THE_END = 4
3095
3184
  }
3096
- export interface ISlotReservationData {
3097
- reservationId: number;
3098
- reservationName: string;
3099
- date: string;
3100
- startTime: string;
3101
- endTime: string;
3102
- notes: string;
3103
- spaceId: number;
3104
- isRental: boolean;
3105
- slotType: SlotTypeEnum;
3106
- slotId: number;
3107
- eventId: number;
3108
- isPrivate: boolean;
3185
+ export declare enum CreatorTypeEnum {
3186
+ SPACE = "space",
3187
+ PROGRAM_SEASON = "program_season"
3109
3188
  }
3110
- export interface IRawEventInSchedule extends IEventInSchedule {
3111
- parentSessionId: number;
3112
- parentSessionName: string;
3113
- eventTimezone: string;
3114
- maxParticipants: number;
3115
- maxMaleParticipants: number;
3116
- maxFemaleParticipants: number;
3117
- isPunchCard: boolean;
3189
+ export declare enum UpdatePricesTypeEnum {
3190
+ INDIVIDUAL = "indvidual",
3191
+ CATEGORY = "category",
3192
+ GLOBAL = "global"
3118
3193
  }
3119
- export interface IBasicSpaceAndSlotCreator {
3120
- id: number;
3121
- name: string;
3122
- bookingCreatorId: number;
3194
+ export declare enum BondDayOfWeekEnum {
3195
+ MONDAY = 2,
3196
+ TUESDAY = 3,
3197
+ WEDNESDAY = 4,
3198
+ THURSDAY = 5,
3199
+ FRIDAY = 6,
3200
+ SATURDAY = 7,
3201
+ SUNDAY = 8
3123
3202
  }
3124
- export interface IRawSlotInSchedule {
3125
- startDate: string;
3126
- endDate: string;
3127
- startTime: string;
3128
- endTime: string;
3129
- reservationId: number;
3130
- eventTitle: string;
3131
- publicNotes: string;
3132
- spaceId: number;
3133
- creatorType: ResourceNameTypeEnum;
3134
- slotType: SlotTypeEnum;
3135
- slotId: number;
3136
- eventId: number;
3137
- isPrivate: boolean;
3203
+ export declare enum ReservationMigrationStatusEnum {
3204
+ NEW = "new",
3205
+ NO = "no",
3206
+ YES = "yes"
3138
3207
  }
3139
- export interface IPurchasedResourcesRaw {
3140
- purchasedId: number;
3141
- purchasedProductUserId: number;
3142
- purchasedResourceId: number;
3143
- purchasedResourceType: ResourceNameTypeEnum;
3144
- purchasedStatus: PurchasedResourceStatusEnum;
3145
- pUserId: number;
3146
- pUserPaymentStatus: PaymentStatusEnum;
3147
- pUserProductId: number;
3148
- pUserProductName: string;
3149
- pUserProductPrice: number;
3150
- pUserProductPriceCurrency: string;
3151
- pUserProductQuantity: number;
3152
- pUserProductQuantityLeft: number;
3153
- pUserUserId: number;
3208
+ export declare enum ProductPackageLevelEnum {
3209
+ HOUR = "hour",
3210
+ SLOT = "slot",
3211
+ RESERVATION = "reservation"
3154
3212
  }
3155
- export interface IUsersPasses {
3156
- userId: number;
3157
- userFirstName: string;
3158
- userLastName: string;
3159
- organizationId: number;
3160
- programId: number;
3161
- programName: string;
3162
- sessionId: number;
3163
- sessionName: string;
3164
- productId: number;
3165
- productName: string;
3166
- productUserId: number;
3167
- purchaseDate: Date;
3168
- passesLeft: number;
3213
+ export declare enum CancellationStatusEnum {
3214
+ IMMEDIATE = "immediate",
3215
+ AUTO_RENEWAL = "auto_renewal"
3169
3216
  }
3170
- export interface ISessionsLandingPage {
3171
- sessionId: number;
3172
- name: string;
3173
- startDate: Date;
3174
- endDate: Date;
3175
- registrationStartDate: Date;
3176
- registrationEndDate: Date;
3177
- sport: SportsEnum;
3178
- minAge: string;
3179
- maxAge: string;
3180
- maxParticipants?: number;
3181
- gender: GenderEnum;
3182
- activityTimes: ActivityTimes[];
3183
- earlyRegistrationStartDate?: Date;
3184
- earlyRegistrationEndDate?: Date;
3185
- lateRegistrationStartDate?: Date;
3186
- lateRegistrationEndDate?: Date;
3187
- attendeeCount?: number;
3188
- segmentsOrEvents: 'segment' | 'event';
3217
+ export declare enum SeasonScheduleStatusEnum {
3218
+ DRAFT = 0,
3219
+ PUBLISHED = 1
3189
3220
  }
3190
- export interface ISessionsLandingPageExpanded extends ISessionsLandingPage, ISlimAddons {
3191
- hasRequiredMembership: boolean;
3192
- hasEntitledPricing: boolean;
3193
- lowestPrice?: number;
3194
- products?: ISessionLandingPageProduct[];
3221
+ export declare enum FinancialStepEnum {
3222
+ VOID = "void",
3223
+ REFUND = "refund",
3224
+ NONE = "none",
3225
+ REFUND_AND_VOID = "refund-and-void",
3226
+ APPEND = "append"
3195
3227
  }
3196
- export interface ISessionLandingPageExpanded extends ISessionsLandingPage {
3197
- hasRequiredMembership: boolean;
3198
- hasEntitledPricing: boolean;
3199
- products?: ISessionLandingPageProduct[];
3200
- segments?: Event[] | ProgramSeason[];
3201
- programName: string;
3202
- programId: number;
3203
- levelOfPlay: LevelOfPlayEnum[];
3204
- registrationConstraints: IResourceRegistrationData[];
3228
+ export declare enum StripeAccountTypesEnum {
3229
+ STRIPE = "stripe",
3230
+ STRIPE_CUSTOM = "stripe:account:custom",
3231
+ STRIPE_CUSTOMER = "stripe:customer"
3205
3232
  }
3206
- export interface ISlimAddons {
3207
- addons?: {
3208
- id: number;
3209
- timePeriod: AddonTimePeriodEnum;
3210
- name: string;
3211
- productType?: ProductTypesEnum;
3212
- productSubType?: string;
3213
- }[];
3233
+ export declare enum LinkedAccountStatus {
3234
+ PENDING = 1,
3235
+ ACTIVE = 2,
3236
+ PRE_PENDING = 3
3214
3237
  }
3215
- export interface ISessionLandingPageProduct extends ISlimAddons {
3216
- id: number;
3217
- name: string;
3218
- startDate?: Date;
3219
- endDate?: Date;
3220
- downpayment?: number;
3221
- description?: string;
3222
- prices: Price[];
3223
- productSubType?: ProductSubTypesEnum;
3224
- punchCard: boolean;
3225
- isAddon: boolean;
3226
- defaultPriceId?: number;
3238
+ export declare enum AddonParentTypeEnum {
3239
+ RESERVATION = "reservation",
3240
+ SLOT = "slot"
3227
3241
  }
3228
- export interface CreatePaymentIntentDto extends PurchaseRequestDto {
3229
- destinationId?: string;
3230
- stripeCustomerId?: string;
3231
- fee?: number;
3242
+ export declare enum EEmailStatus {
3243
+ SENT = "sent",
3244
+ OPENED = "opened",
3245
+ PAID = "paid",
3246
+ CANCELED = "canceled"
3232
3247
  }
3233
- export interface IReservationCreatorData {
3234
- type: ResourceNameTypeEnum;
3235
- id: number;
3236
- organizationId: number;
3237
- startDate: string;
3238
- endDate: string;
3239
- sportId: number;
3248
+ export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3249
+ name?: string;
3250
+ genderStr?: string;
3251
+ parentID?: string;
3252
+ partnerID?: string;
3253
+ membershipName?: string;
3254
+ membershipExpDate?: string;
3255
+ membershipCreationDate?: string;
3256
+ bondMembershipID?: number;
3240
3257
  }
3241
- export declare class ColumnNumericTransformer {
3242
- to(data: number): number;
3243
- from(data: string): number;
3258
+ export declare class AddFamilyDto {
3259
+ parents: AddImportedCustomerDto[];
3260
+ children: AddImportedCustomerDto[];
3244
3261
  }
3245
- export declare function convertToNumber(data: string): number;
3246
3262
  export declare enum ImportPaymentTypeEnum {
3247
3263
  CREDIT_CARD = "card",
3248
3264
  ACH = "ach",
@@ -3278,90 +3294,29 @@ export declare class ImportedPaymentDto {
3278
3294
  date: string;
3279
3295
  time: string;
3280
3296
  }
3281
- export declare class ProductIdsDto {
3282
- productIds?: number[];
3283
- }
3284
- export declare class ProductImportDto {
3285
- product: Product;
3286
- prices: Price[];
3287
- resourceIds: number[];
3288
- oldId: number;
3289
- }
3290
- export declare class PunchPassDto {
3291
- CustomerID: string;
3292
- QuantityLeft: number;
3293
- BondProgramID: number;
3294
- BondSessionID: number;
3295
- ProductID: number;
3296
- }
3297
- export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3298
- name?: string;
3299
- genderStr?: string;
3300
- parentID?: string;
3301
- partnerID?: string;
3302
- membershipName?: string;
3303
- membershipExpDate?: string;
3304
- membershipCreationDate?: string;
3305
- bondMembershipID?: number;
3306
- }
3307
- export declare class AddFamilyDto {
3308
- parents: AddImportedCustomerDto[];
3309
- children: AddImportedCustomerDto[];
3310
- }
3311
- export declare class ImportedSlotProductDto {
3312
- slotID?: string;
3313
- name?: string;
3314
- pricingType?: 'Hourly' | 'Flat';
3315
- appliesTo?: 'slot' | 'addon' | 'reservation';
3316
- price?: string;
3317
- minutes?: string;
3318
- quantity: string;
3319
- startDate?: string;
3320
- startTime?: string;
3321
- endDate?: string;
3322
- endTime?: string;
3323
- bondProductId?: number;
3324
- }
3325
- export declare class ImportResourceMappingDto {
3326
- bondResourceID?: string;
3327
- resourceName?: string;
3328
- }
3329
- export declare class ImportProductMappingDto {
3330
- productID?: string;
3331
- productName?: string;
3297
+ export declare class Lock extends BondBaseEntity {
3298
+ name: string;
3299
+ locked?: Date;
3332
3300
  }
3333
- export declare class ImportedSlotDto {
3334
- reservationID: string;
3335
- bondResourceID: string;
3336
- resourceName: string;
3337
- subResourceName: string;
3338
- startDate: string;
3339
- startTime: string;
3340
- endDate: string;
3341
- endTime: string;
3342
- sportId?: string;
3343
- setupDuration: string;
3344
- setupIncludeInCosts: string;
3345
- takedownDuration: string;
3346
- takedownIncludeInCosts: string;
3347
- slotProduct: ImportedSlotProductDto;
3348
- addonProducts: ImportedSlotProductDto[];
3349
- totalPrice: string;
3301
+ export declare class ColumnNumericTransformer {
3302
+ to(data: number): number;
3303
+ from(data: string): number;
3350
3304
  }
3351
- export declare class ImportedReservationDto {
3305
+ export declare function convertToNumber(data: string): number;
3306
+ export declare class CreateMonitorConfigDto {
3307
+ facilityId: number;
3352
3308
  name: string;
3353
- customerId: string;
3354
- description: string;
3355
- totalPrice: string;
3356
- downPayment: string;
3357
- paid: string;
3358
- invoiceId: string;
3359
- slots?: ImportedSlotDto[];
3360
- addons?: ImportedSlotProductDto[];
3309
+ code: string;
3310
+ config: any;
3361
3311
  }
3362
- export declare class GameSlots extends BondBaseEntity {
3363
- entityType: string;
3364
- entityId: number;
3312
+ export interface ValidatedMonthAndDay {
3313
+ valid: boolean;
3314
+ month?: number;
3315
+ day?: number;
3316
+ }
3317
+ export interface ValidationReason {
3318
+ valid: boolean;
3319
+ reason?: string;
3365
3320
  }
3366
3321
  export declare class MatchParticipants extends BondBaseEntity {
3367
3322
  matchId: number | null;
@@ -3372,6 +3327,22 @@ export declare class MatchParticipants extends BondBaseEntity {
3372
3327
  score: number | null;
3373
3328
  gameSlotId: number | null;
3374
3329
  }
3330
+ export interface PaymentStatus {
3331
+ parentId: number;
3332
+ paymentStatus: ReservationPaymentStatusEnum;
3333
+ approvalStatus?: ReservationStatusEnum;
3334
+ id?: number;
3335
+ }
3336
+ export interface PaymentStatusesDict {
3337
+ [id: number]: PaymentStatus[];
3338
+ }
3339
+ export interface PaymentStatusDict {
3340
+ [id: number]: ReservationPaymentStatusEnum;
3341
+ }
3342
+ export declare class GameSlots extends BondBaseEntity {
3343
+ entityType: string;
3344
+ entityId: number;
3345
+ }
3375
3346
  export declare class Matches extends BondBaseEntity {
3376
3347
  eventId: number | null;
3377
3348
  status: number | null;
@@ -3384,6 +3355,17 @@ export declare class RoundEvents extends BaseEntity {
3384
3355
  createdAt: Date;
3385
3356
  updatedAt: Date;
3386
3357
  }
3358
+ export declare class ByOrganizationIdDto {
3359
+ organizationId: number;
3360
+ }
3361
+ export declare class OptionalFindByOrganizationIdDto {
3362
+ organizationId?: number;
3363
+ }
3364
+ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3365
+ facilityId: number;
3366
+ code: string;
3367
+ config?: any;
3368
+ }
3387
3369
  export declare class SeasonRounds extends BondBaseEntity {
3388
3370
  seasonId: number;
3389
3371
  ordinal?: number;
@@ -3395,47 +3377,11 @@ export declare class TeamEvents extends BondBaseEntity {
3395
3377
  eventId: number | null;
3396
3378
  status: number | null;
3397
3379
  }
3398
- export declare class Lock extends BondBaseEntity {
3399
- name: string;
3400
- locked?: Date;
3401
- }
3402
- export interface ValidatedMonthAndDay {
3403
- valid: boolean;
3404
- month?: number;
3405
- day?: number;
3406
- }
3407
- export interface ValidationReason {
3408
- valid: boolean;
3409
- reason?: string;
3410
- }
3411
- export interface PaymentStatus {
3412
- parentId: number;
3413
- paymentStatus: ReservationPaymentStatusEnum;
3414
- approvalStatus?: ReservationStatusEnum;
3415
- id?: number;
3416
- }
3417
- export interface PaymentStatusesDict {
3418
- [id: number]: PaymentStatus[];
3419
- }
3420
- export interface PaymentStatusDict {
3421
- [id: number]: ReservationPaymentStatusEnum;
3422
- }
3423
- export declare class CreateMonitorConfigDto {
3424
- facilityId: number;
3425
- name: string;
3426
- code: string;
3427
- config: any;
3428
- }
3429
- export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3430
- facilityId: number;
3431
- code: string;
3432
- config?: any;
3433
- }
3434
- export declare class ByOrganizationIdDto {
3435
- organizationId: number;
3436
- }
3437
- export declare class OptionalFindByOrganizationIdDto {
3438
- organizationId?: number;
3380
+ export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3381
+ key?: string;
3382
+ vaule?: string;
3383
+ version: number;
3384
+ organization: Organization;
3439
3385
  }
3440
3386
  export declare class Organization extends BondBaseEntity {
3441
3387
  name: string | null;
@@ -3474,30 +3420,17 @@ export declare class Organization extends BondBaseEntity {
3474
3420
  cashFeeRate: number;
3475
3421
  cashFeeAddDollarRate: number;
3476
3422
  terminalFeeRate: number;
3477
- terminalFeeAddDollarRate: number;
3478
- checkFeeRate: number;
3479
- checkFeeAddDollarRate: number;
3480
- otherFeeRate: number;
3481
- otherFeeAddDollarRate: number;
3482
- balanceFeeRate: number;
3483
- balanceFeeAddDollarRate: number;
3484
- address: Address;
3485
- mainMedia: Media;
3486
- brandings: OrganizationBranding[];
3487
- brandingsV2?: OrganizationBranding[];
3488
- }
3489
- export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3490
- key?: string;
3491
- vaule?: string;
3492
- version: number;
3493
- organization: Organization;
3494
- }
3495
- export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3496
- mainAdminUserId?: number;
3497
- }
3498
- export declare class OrganizationUsers extends BondBaseEntity {
3499
- organisationId: number | null;
3500
- userId: number | null;
3423
+ terminalFeeAddDollarRate: number;
3424
+ checkFeeRate: number;
3425
+ checkFeeAddDollarRate: number;
3426
+ otherFeeRate: number;
3427
+ otherFeeAddDollarRate: number;
3428
+ balanceFeeRate: number;
3429
+ balanceFeeAddDollarRate: number;
3430
+ address: Address;
3431
+ mainMedia: Media;
3432
+ brandings: OrganizationBranding[];
3433
+ brandingsV2?: OrganizationBranding[];
3501
3434
  }
3502
3435
  export declare class CustomerIdDto {
3503
3436
  customerId: number;
@@ -3505,9 +3438,6 @@ export declare class CustomerIdDto {
3505
3438
  export declare class PaymentIdDto {
3506
3439
  paymentId: number;
3507
3440
  }
3508
- export declare class InvoiceIdDto {
3509
- invoiceId: number;
3510
- }
3511
3441
  export declare class ByOrganizationIdAndInvoiceIdDto extends ByOrganizationIdDto {
3512
3442
  invoiceId: number;
3513
3443
  }
@@ -3517,9 +3447,9 @@ export declare class GetInvoicesQueryDto {
3517
3447
  export declare class GetPaymentsQueryDto {
3518
3448
  extended?: boolean;
3519
3449
  }
3520
- export declare class InvoiceViaOrderHashDto {
3450
+ export declare class PaymentViaInvoiceHashDto {
3521
3451
  customerId: number;
3522
- orderHash: string;
3452
+ invoiceHash: string;
3523
3453
  }
3524
3454
  export declare class DiscountDto {
3525
3455
  lineItemId: number;
@@ -3530,12 +3460,6 @@ export declare class DiscountDto {
3530
3460
  export declare class LineItemIdDto {
3531
3461
  lineItemId: number;
3532
3462
  }
3533
- export declare class ByPaymentFilter extends PaginationQuery {
3534
- paymentType?: string;
3535
- paymentStatus?: string;
3536
- }
3537
- export declare class FindPayments extends ByPaymentFilter {
3538
- }
3539
3463
  export declare class BasicInstallmentDataDto extends ByOrganizationIdAndInvoiceIdDto {
3540
3464
  userId: number;
3541
3465
  }
@@ -3586,8 +3510,8 @@ export declare class PaymentPlanDto {
3586
3510
  export declare class CalcPaymentPlanDto extends PaymentPlanDto {
3587
3511
  amountToSplit: number;
3588
3512
  }
3589
- export declare class AddToOrderDto {
3590
- orderId: number;
3513
+ export declare class AddToInvoiceDto {
3514
+ invoiceId: number;
3591
3515
  userId: number;
3592
3516
  productsToAdd: PurchaseProductDto[];
3593
3517
  resourcesToRemove: PurchaseProductDto[];
@@ -3611,13 +3535,20 @@ export declare class RemoveResourceDto {
3611
3535
  lineItemId: number;
3612
3536
  }
3613
3537
  export declare class SendRequestDto {
3614
- orderId: number;
3538
+ invoiceId: number;
3615
3539
  userId: number;
3616
3540
  sendToEmail: string;
3617
3541
  memo?: string;
3618
3542
  }
3543
+ export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3544
+ mainAdminUserId?: number;
3545
+ }
3546
+ export declare class OrganizationUsers extends BondBaseEntity {
3547
+ organisationId: number | null;
3548
+ userId: number | null;
3549
+ }
3619
3550
  export declare class RefundDto {
3620
- orderId: number;
3551
+ invoiceId: number;
3621
3552
  lineItems: RefundLineItemAmountDto[];
3622
3553
  refundLineItemAmountDict?: {
3623
3554
  [id: number]: number;
@@ -3638,16 +3569,6 @@ export declare class RefundLineItemAmountDto {
3638
3569
  id: number;
3639
3570
  refundAmount: number;
3640
3571
  }
3641
- export declare class VoidDto {
3642
- lineItems: VoidLineItemDto[];
3643
- meta?: RevertMetaDto;
3644
- }
3645
- export declare class VoidLineItemDto {
3646
- id: number;
3647
- quantity?: number;
3648
- isEdit?: boolean;
3649
- amount?: number;
3650
- }
3651
3572
  export interface PaymentResult {
3652
3573
  paymentMethodId: string;
3653
3574
  paymentMethodType: PaymentMethodTypeEnum;
@@ -3661,7 +3582,7 @@ export interface PaymentsResults {
3661
3582
  success: PaymentResult[];
3662
3583
  failed: PaymentResult[];
3663
3584
  }
3664
- export interface OrderPaymentSum {
3585
+ export interface InvoicePaymentSum {
3665
3586
  priceSum: number;
3666
3587
  paidSum: number;
3667
3588
  }
@@ -3673,397 +3594,318 @@ export interface ExtendedLineItems {
3673
3594
  products: LineItems[];
3674
3595
  events: LineItems[];
3675
3596
  }
3676
- export declare class FindInvoices extends ByPaymentFilter {
3597
+ export declare class ByPaymentFilter extends PaginationQuery {
3598
+ paymentType?: string;
3599
+ paymentStatus?: string;
3600
+ }
3601
+ export declare class FindPayments extends ByPaymentFilter {
3677
3602
  id?: number;
3678
3603
  months?: string;
3679
3604
  }
3605
+ export declare class ChangeRolePermissionsDto {
3606
+ permissionIds: number[];
3607
+ }
3680
3608
  export interface RefundResult extends PaymentsResults {
3681
3609
  successfulLineItems: RefundLineItemAmountDto[];
3682
3610
  failedLineItems: RefundLineItemAmountDto[];
3683
- order?: Order;
3611
+ invoice?: Invoice;
3684
3612
  }
3685
3613
  export interface RefundResultWithLineItemsDict extends PaymentsResults {
3686
3614
  successfulLineItems: Map<number, RefundLineItemAmountDto>;
3687
3615
  failedLineItems: Map<number, RefundLineItemAmountDto>;
3688
3616
  totalAmountProcessed: number;
3689
3617
  }
3690
- export declare class MaintenanceDto {
3691
- id?: number;
3692
- title: string;
3693
- durationValue: number;
3694
- maintenanceDurationdurationType: DurationUnitTypesEnum;
3695
- maintenanceTiming: MaintenanceTimingEnum;
3696
- }
3697
- export declare class LineItemDto {
3698
- id?: number;
3699
- orderId?: number;
3700
- type: LineItemsStatusEnum;
3701
- organizationId: number;
3702
- userId?: number;
3703
- productId: number;
3704
- product?: Product;
3705
- productType: ProductTypesEnum;
3706
- ordinal?: number;
3707
- price: number;
3708
- originalPrice?: number;
3709
- paidAmount?: number;
3710
- currency: CurrencyEnum;
3711
- paymentStatus?: PaymentStatusEnum;
3712
- isRefunded?: boolean;
3713
- isTaxInclusive?: boolean;
3714
- taxPrecent?: number;
3715
- unitPrice?: number;
3716
- quantity: number;
3717
- resources?: PurchasedResourceDto[];
3718
- relationType?: 'reservation-addon' | 'slots' | 'slot_addons';
3719
- unitPriceWithTax?: number;
3720
- unitTaxPrice?: number;
3721
- parentOrdinal?: number;
3722
- }
3723
- export declare class OrderDto {
3724
- orderId?: string | null;
3725
- organizationId: number;
3726
- price: number | null;
3727
- totalTax?: number;
3728
- totalWithoutTax?: number;
3729
- status?: OrderStatusEnum;
3730
- lineItems: LineItemDto[];
3731
- paymentStatus?: PaymentStatusEnum;
3732
- currency: CurrencyEnum;
3733
- creatingUserId?: number;
3734
- platform?: PlatformsEnum;
3735
- }
3736
- export declare class BaseInvoiceDto {
3737
- platform: PlatformsEnum;
3738
- shiftId?: number;
3739
- }
3740
- export declare class InvoiceSlotsDto extends BaseInvoiceDto {
3741
- purchasingUserId: number;
3742
- slots: number[];
3743
- }
3744
- export declare class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
3745
- reservationTotalPrice: number;
3746
- }
3747
- export declare class UpdateInvoiceOptionsDto {
3748
- basicInfoData?: BaseInvoiceDto;
3749
- addToOrderId?: number;
3750
- }
3751
- export declare class UpdateInvoiceDto extends UpdateInvoiceOptionsDto {
3752
- isInvoiced: boolean;
3753
- }
3754
- export declare class InvoiceReservationItemsDto extends UpdateInvoiceOptionsDto {
3755
- slotsIds?: number[];
3756
- addonsIds?: number[];
3757
- }
3758
- export declare class AddSlotsDto extends UpdateInvoiceDto {
3759
- slots: SlotDto[];
3618
+ export declare class VoidDto {
3619
+ lineItems: VoidLineItemDto[];
3620
+ meta?: RevertMetaDto;
3760
3621
  }
3761
- export declare class AddSegmentsDto extends UpdateInvoiceDto {
3762
- segments: SegmentDto[];
3622
+ export declare class VoidLineItemDto {
3623
+ id: number;
3624
+ quantity?: number;
3625
+ isEdit?: boolean;
3626
+ amount?: number;
3763
3627
  }
3764
- export declare class PurchasedResourceDto {
3765
- resourceId?: number;
3766
- resourceType: ResourceNameTypeEnum;
3767
- startDate?: string;
3768
- startTime?: string;
3769
- endDate?: string;
3770
- endTime?: string;
3628
+ export declare class UserRole extends OrganizationConnectionBaseEntity {
3629
+ deletedAt?: Date;
3630
+ userId: number;
3631
+ roleId: number;
3632
+ role: Role;
3633
+ user: User;
3771
3634
  }
3772
- export declare class ReservationDto {
3773
- id?: number;
3774
- organizationId?: number;
3635
+ export declare class Permission extends BondBaseEntity {
3775
3636
  name: string;
3776
- reservationType: ReservationTypeEnum;
3777
- customerId?: number;
3778
- segments: SegmentDto[];
3779
- description?: string;
3780
- status?: ReservationStatusEnum;
3781
- privacySetting?: string;
3782
- orderId?: string;
3783
- price?: number;
3784
- paymentStatus?: ReservationPaymentStatusEnum;
3785
- creatorId?: number;
3786
- creatorType?: ResourceNameTypeEnum;
3787
- publicNotes?: string;
3788
- privateNotes?: string;
3789
- forms?: number[] | null;
3790
- addons?: ProductPricesDto[];
3791
- userId?: number;
3792
- overrideProductsPrice?: ProductPricesDto[];
3793
- targetGlobalPrice?: number;
3794
- }
3795
- export declare class SaveReservationDto {
3796
- reservation: ReservationDto;
3797
- slotType?: SlotTypeEnum;
3637
+ deletedAt?: Date;
3798
3638
  }
3799
- export declare class SingleReservationIncludesDto {
3800
- includeCustomer?: boolean;
3801
- includeAddons?: boolean;
3802
- includeSeries?: boolean;
3803
- includeInvoices?: boolean;
3804
- includePayments?: boolean;
3805
- includeAnswers?: boolean;
3806
- buildTree?: boolean;
3639
+ export declare type TSlotAndType = {
3640
+ type: 'slots' | 'slot_addons';
3641
+ slotsForProduct: {
3642
+ [productId: number]: {
3643
+ product: Product;
3644
+ slots: SlotDto[];
3645
+ };
3646
+ };
3647
+ };
3648
+ export interface ILineItemResource {
3649
+ type: 'addons' | 'segments' | 'series' | 'slots' | 'slot_addons';
3650
+ values: TResource[];
3807
3651
  }
3808
- export declare class CategoryPricesDto {
3809
- slot: number;
3810
- addon: number;
3652
+ export declare class Role extends OrganizationConnectionBaseEntity {
3653
+ name: string;
3654
+ deletedAt?: Date;
3655
+ permissions: Permission[];
3656
+ usersRoles: UserRole[];
3811
3657
  }
3812
- export declare class ProductPricesDto {
3658
+ export declare class Addon extends OrganizationConnectionBaseEntity {
3659
+ parentId: number;
3660
+ parentType: AddonParentTypeEnum;
3813
3661
  productId: number;
3814
- price?: number;
3815
- quantity?: number;
3816
- totalPrice?: number;
3817
- }
3818
- declare class UpdatePriceDto {
3819
- type: UpdatePricesTypeEnum;
3820
- globalPrice?: number;
3821
- category?: CategoryPricesDto;
3822
- products?: ProductPricesDto[];
3823
- }
3824
- export declare class UpdateReservationPriceDto extends UpdatePriceDto {
3825
- reservation: ReservationDto;
3826
- }
3827
- export declare class UpdateSlotsPricesDto extends UpdatePriceDto {
3828
- slots: SlotDto[];
3829
- useCurrentProducts?: boolean;
3830
- }
3831
- export declare class BookingData {
3832
- platform: PlatformsEnum;
3833
- shiftId?: number;
3834
- paymentData: PurchasePaymentDto;
3835
- amountToPay: number;
3836
- total: number;
3837
- purchasingUserId: number;
3838
- }
3839
- export declare class BookingDto extends BookingData {
3840
- reservation: ReservationDto;
3841
- orderId?: number;
3842
- }
3843
- export declare class FindReservationsByOrganizationIdFiltersDto extends PaginationQuery {
3844
- resourcesIds?: string;
3845
- startDate?: string;
3846
- endDate?: string;
3847
- status?: string;
3848
- paymentStatus?: string;
3849
- customerName?: string;
3850
- }
3851
- export declare class FindSlotsByFacilityIdFiltersDto {
3852
- startDate: string;
3853
- endDate: string;
3854
- limit: number;
3855
- includeBlocking: string;
3856
- onlyActiveSessions?: string;
3857
- resourcesIds?: string;
3858
- resourcesTypes?: string;
3859
- reservationStatuses?: string;
3662
+ product?: Product;
3663
+ quantity: number;
3664
+ unitPrice: number;
3665
+ totalPrice: number;
3666
+ approvalStatus: ReservationStatusEnum;
3667
+ paymentStatus: ReservationPaymentStatusEnum;
3668
+ level?: ProductPackageLevelEnum;
3669
+ resourceId?: number;
3670
+ resource?: Resource;
3671
+ invoiceId?: number;
3672
+ invoice?: Invoice;
3673
+ productUserId?: number;
3674
+ productUser?: ProductsUsers;
3675
+ previousProductUsersIds?: number[];
3676
+ previousProductUsers?: ProductsUsers[];
3860
3677
  }
3861
- export declare class getSlotFQueryParamsDto {
3862
- addProduct?: boolean;
3678
+ export declare type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
3679
+ export declare type TResource = Reservation | Segment | Series | Slot | Addon;
3680
+ export interface ReservationV1 {
3681
+ id: number;
3682
+ price: number;
3683
+ status: string;
3684
+ sentForClientDate?: string;
3685
+ sentForAdminDate?: string;
3686
+ name?: string;
3863
3687
  }
3864
- export declare class FindByReservationDto extends ByOrganizationIdDto {
3865
- reservationId: number;
3688
+ export declare class SlotDateDto {
3689
+ startDate: moment.Moment;
3690
+ endDate: moment.Moment;
3866
3691
  }
3867
- export declare class FindByFacilityDto extends FindByReservationDto {
3868
- facilityId: number;
3692
+ export interface IProductQuantity {
3693
+ productId: number;
3694
+ quantity?: number;
3695
+ unitPrice?: number;
3869
3696
  }
3870
- export declare class FindBySegmentDto extends FindByFacilityDto {
3871
- segmentId: number;
3697
+ export interface SlotsLineItemData extends BaseReservationItemLineItemData {
3698
+ slotIds: number[];
3872
3699
  }
3873
- export declare class UpdateReservationStatusDto extends FindByReservationDto {
3874
- status: ReservationStatusEnum;
3700
+ export interface AddonsLineItemData extends BaseReservationItemLineItemData {
3701
+ addonsIds: number[];
3875
3702
  }
3876
- export declare class FindBySlotDto extends FindByReservationDto {
3877
- slotId: number;
3703
+ export declare type ReservationItemLineItemData = BaseReservationItemLineItemData | SlotsLineItemData | AddonsLineItemData;
3704
+ export interface BaseReservationItemLineItemData {
3705
+ id: number;
3706
+ amount: number;
3707
+ amountPaid: number;
3708
+ quantity: number;
3709
+ canVoid: boolean;
3710
+ canRefund: boolean;
3711
+ isEdit?: boolean;
3878
3712
  }
3879
- export declare class AddSlotToSegmentDto {
3880
- slot: SlotDto;
3881
- addonIds?: number[];
3713
+ export interface IRemoveSlotsFinancialData {
3714
+ paymentMethods: IPaymentMethodToFundLeft[];
3715
+ lineItems: SlotsLineItemData[];
3716
+ nextFinancialStep: FinancialStepEnum;
3882
3717
  }
3883
- export declare class AddSlotToSegmenResultDto {
3884
- series: SeriesDto;
3885
- slotTotalPrice: number;
3886
- addonsTotalPrice: number;
3887
- debug?: any;
3718
+ export interface IRemoveAddonsFinancialData {
3719
+ paymentMethods: IPaymentMethodToFundLeft[];
3720
+ lineItems: AddonsLineItemData[];
3721
+ nextFinancialStep: FinancialStepEnum;
3888
3722
  }
3889
- export declare class UpdateSlotsDto {
3890
- slots: SlotDto[];
3723
+ export interface ReservationData {
3724
+ id: number;
3725
+ reservationName: string;
3726
+ customerId: number;
3727
+ customerFirstName: string;
3728
+ customerLastName: string;
3729
+ spaces: SpaceInReservation[];
3730
+ startDate: string;
3731
+ endDate: string;
3732
+ price: number;
3733
+ status: ReservationStatusEnum;
3734
+ paymentStatus: PaymentStatusEnum;
3735
+ frequencies: FrequencyInReservation[];
3736
+ reservationType: ReservationTypeEnum;
3891
3737
  }
3892
- export declare class EditItemsRefundMetaDto {
3893
- lineItems: RefundLineItemAmountDto[];
3894
- paymentMethods: PaymentMethodDto[];
3895
- reasonId: number;
3738
+ export interface SpaceInReservation {
3739
+ reservationId: number;
3740
+ spaceId: number;
3741
+ spaceName: string;
3896
3742
  }
3897
- export declare class EditSlotsDto extends UpdateSlotsDto {
3898
- refundMeta?: EditItemsRefundMetaDto;
3743
+ export interface FrequencyInReservation {
3744
+ reservationId: number;
3745
+ frequency?: string;
3746
+ repeatEvery?: number;
3747
+ repeatOn?: number[];
3748
+ repeatEndDate?: string;
3899
3749
  }
3900
- export declare class EditReservationDetailsDto {
3901
- name: string;
3902
- publicNotes?: string;
3903
- privateNotes?: string;
3750
+ export interface FindReservationsByOrganizationIdFilters extends PaginationQuery {
3751
+ resourcesIds?: string;
3752
+ datesRange?: {
3753
+ startDate: string;
3754
+ endDate: string;
3755
+ };
3756
+ approvalStatuses?: string[];
3757
+ paymentStatuses?: string[];
3758
+ customerName?: string;
3904
3759
  }
3905
- export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
3906
- updateAddons?: boolean;
3760
+ export interface FindSlotsByFacilityIdFilters {
3761
+ startDate: string;
3762
+ endDate: string;
3763
+ limit: number;
3764
+ resourcesIds?: number[];
3765
+ resourcesTypes?: ResourceTypeEnum[];
3766
+ reservationStatuses?: ReservationStatusEnum[];
3767
+ includeBlocking?: boolean;
3768
+ onlyActiveSessions?: boolean;
3769
+ checkConflicts?: boolean;
3907
3770
  }
3908
- export declare class AddAddonsDto {
3909
- addons: ProductPricesDto[];
3771
+ export interface PriceFields {
3772
+ unitPrice: string;
3773
+ price: string;
3774
+ totalTax: string;
3775
+ quantity: string;
3776
+ isTaxInclusive: boolean;
3777
+ currency: string;
3910
3778
  }
3911
- export declare class EditAddonsDto {
3912
- addons: EditAddonDto[];
3779
+ export interface LineItemPrice {
3780
+ unitPrice: number;
3781
+ unitTax: number;
3782
+ isTaxInclusive: boolean;
3783
+ unitPricePerHour: number;
3784
+ taxPerHour: number;
3785
+ quantity: number;
3786
+ currency: string;
3787
+ totalPrice: number;
3913
3788
  }
3914
- export declare class EditReservationAddonsDto extends EditAddonsDto {
3915
- refundMeta?: EditItemsRefundMetaDto;
3789
+ export interface CalendarCardAddon extends ProductsUsers {
3790
+ price: LineItemPrice;
3916
3791
  }
3917
- export declare class EditAddonDto {
3918
- id: number;
3919
- unitPrice?: number;
3920
- quantity?: number;
3792
+ export interface CalendarSlotCard extends Slot {
3793
+ reservation: Reservation & {
3794
+ resources?: {
3795
+ id: number;
3796
+ name: string;
3797
+ }[];
3798
+ };
3799
+ addons: CalendarCardAddon[];
3800
+ invoice: Invoice;
3801
+ price: LineItemPrice;
3802
+ totalSlotsInSeries?: number;
3803
+ slotIndexInSeries?: number;
3921
3804
  }
3922
- export declare class SegmentDto {
3923
- id?: number;
3924
- title: string;
3925
- isPrivate: boolean;
3926
- resourceIds: number[];
3927
- sportId?: number;
3928
- series: SeriesDto[];
3929
- addonIds?: number[];
3930
- publicNotesForSlots?: string;
3931
- privateNotesForSlots?: string;
3805
+ declare type IPartialInvoice = Pick<Invoice, 'id' | 'createdAt' | 'price' | 'paymentStatus' | 'paidAmount'>;
3806
+ export declare type IPartialPayment = Pick<Payment, 'id' | 'createdAt' | 'price' | 'paymentStatus' | 'paymentType' | 'ccBrand' | 'ccLast4'>;
3807
+ export interface IInvoice extends IPartialInvoice {
3808
+ lineItemsCount: number;
3932
3809
  }
3933
- export declare class SeriesDto {
3934
- id?: number;
3935
- startDate: string;
3936
- startTime?: string;
3937
- endDate?: string;
3938
- endTime?: string;
3939
- slotDurationType: SlotDurationTypeEnum;
3940
- durationEndsAfter?: number;
3941
- durationUnit?: DurationUnitTypesEnum;
3942
- frequency: FrequencyEnum;
3943
- repeatEvery?: number;
3944
- repeatOn?: number[];
3945
- repeatEndDate?: string;
3946
- numberOccurrences?: number;
3947
- maintenance?: MaintenanceDto[];
3948
- slots?: SlotDto[];
3810
+ export interface SingleReservation {
3811
+ id: number;
3812
+ name: string;
3813
+ organizationId: number;
3814
+ description: string;
3815
+ updatedAt: Date;
3816
+ privateNotes: string;
3817
+ publicNotes: string;
3818
+ approvalStatus: string;
3819
+ paymentStatus: PaymentStatusEnum;
3820
+ reservationType: ReservationTypeEnum;
3821
+ sports: number[];
3822
+ facilityId?: number;
3823
+ customerId: number;
3824
+ customer?: Customer;
3825
+ invoices?: IInvoice[];
3826
+ payments?: IPartialPayment[];
3827
+ addons?: Addon[];
3828
+ answers?: Answer[];
3829
+ series: Series[];
3830
+ segments?: Segment[];
3949
3831
  }
3950
- export declare class SlotDateTimeAndSpace {
3951
- startDate: string;
3952
- startTime?: string;
3953
- endDate?: string;
3954
- endTime?: string;
3955
- spaceId: number;
3832
+ export interface UpdateReservationResult {
3833
+ reservation: Reservation;
3834
+ invoice?: Invoice;
3835
+ debug?: any;
3956
3836
  }
3957
- export declare class SlotDto extends SlotDateTimeAndSpace {
3958
- id?: number;
3959
- reservationId?: number;
3960
- occurrence?: number;
3961
- title: string;
3962
- creatorId?: number;
3963
- creatorType?: string;
3964
- userCreatorId?: number;
3965
- timezone?: string;
3966
- publicNotes?: string;
3967
- privateNotes?: string;
3968
- slotType: SlotTypeEnum;
3969
- product?: Product;
3970
- priceOverrideMeta?: {
3971
- unitPrice: number;
3972
- quantity: number;
3973
- totalPrice: number;
3974
- };
3975
- addonPriceOverrideMeta?: {
3976
- [addonProductId: number]: {
3977
- unitPrice: number;
3978
- quantity: number;
3979
- totalPrice: number;
3980
- };
3981
- };
3982
- addonProducts?: Product[];
3983
- addonCalculatedPrice?: {
3984
- productId: number;
3985
- quantity: number;
3986
- unitPrice: number;
3987
- totalPrice: number;
3988
- displayTotalWithTax?: number;
3989
- displayUnitTax?: number;
3990
- }[];
3991
- addonsProductUserIds?: number[];
3992
- segmentId?: number;
3993
- seriesId?: number;
3994
- eventId?: number;
3995
- sportIds: number[];
3996
- parentSlotId?: number;
3997
- maintenanceDurationdurationType?: DurationUnitTypesEnum;
3998
- maintenanceTiming?: MaintenanceTimingEnum;
3999
- durationValue?: number;
4000
- orderId?: number;
4001
- paymentStatus: ReservationPaymentStatusEnum;
4002
- approvalStatus: ReservationStatusEnum;
4003
- displayName?: string;
4004
- internalName?: string;
4005
- totalPrice?: number;
4006
- relevantProducts?: Product[];
4007
- maintenance?: MaintenanceDto[];
4008
- maintenanceSlots?: SlotDto[];
4009
- isPrivate: boolean;
4010
- slotDurationType: SlotDurationTypeEnum;
4011
- addonsIds?: number[];
3837
+ export interface UpdateSlotPricesResult {
3838
+ reservation: ReservationDto;
3839
+ slots: SlotDto[];
3840
+ invoice: InvoiceDto;
3841
+ debug?: any;
4012
3842
  }
4013
- declare class AnswerDto {
4014
- questionId: number;
4015
- value: any;
3843
+ export interface UpdateSlotsAddonsResult {
3844
+ slots: SlotDto[];
3845
+ invoice: InvoiceDto;
3846
+ debug?: any;
4016
3847
  }
4017
- export declare class BookedSessionDto {
4018
- startDate: string;
4019
- endDate: string;
4020
- timezone: string;
4021
- spaceId: number;
3848
+ export interface ValidateEditItemsResult {
3849
+ nextFinancialStep: FinancialStepEnum;
3850
+ paymentMethods?: IPaymentMethodToFundLeft[];
3851
+ originalInvoicePrice?: number;
3852
+ updatedInvoicePrice?: number;
3853
+ originalItemsPrice?: number;
3854
+ updatedItemsPrice?: number;
3855
+ priceChange?: number;
3856
+ refundMetadata?: EditItemsRefundMetadata;
3857
+ editData?: EditItemsData;
4022
3858
  }
4023
- declare class AddonDto {
4024
- resourcePackageId: number;
4025
- resourcePackageAmount: number;
4026
- resourcePackagePrice: number;
3859
+ export interface ValidateEditSlotsResult extends ValidateEditItemsResult {
3860
+ slots: SlotDto[];
3861
+ refundMetadata?: EditSlotsRefundMetadata;
4027
3862
  }
4028
- export declare class ReservationV1Dto {
4029
- organizationId: number;
4030
- name: string;
4031
- dayOfWeek: number;
4032
- startTime: string;
4033
- description: string;
4034
- sport: number;
4035
- price: number;
4036
- resourcePackageId: number;
4037
- resourcePackageAmount: number;
4038
- bookedSessions: BookedSessionDto[];
4039
- addons: AddonDto[];
3863
+ export interface ValidateEditReservationAddonsResult extends ValidateEditItemsResult {
3864
+ refundMetadata?: EditAddonsRefundMetadata;
4040
3865
  }
4041
- export declare class BookingV1Dto {
4042
- organizationId: number;
4043
- reservations: ReservationV1Dto[];
4044
- answers: AnswerDto[];
4045
- paymentData: PurchasePaymentDto;
4046
- skipPayment: boolean;
4047
- cashPayment: boolean;
4048
- requestOnly: boolean;
3866
+ export interface EditSlotsRefundMetadata {
3867
+ lineItems: SlotsLineItemData[];
3868
+ refundAmount: number;
4049
3869
  }
4050
- export declare class Addon extends OrganizationConnectionBaseEntity {
4051
- parentId: number;
4052
- parentType: AddonParentTypeEnum;
3870
+ export interface EditAddonsRefundMetadata {
3871
+ lineItems: AddonsLineItemData[];
3872
+ refundAmount: number;
3873
+ }
3874
+ export interface EditItemsRefundMetadata {
3875
+ lineItems: ReservationItemLineItemData[];
3876
+ refundAmount: number;
3877
+ }
3878
+ export interface EditItemsData {
3879
+ invoice?: Invoice;
3880
+ editLineItems?: ReservationItemLineItemData[];
3881
+ newLineItems?: LineItemDto[];
3882
+ }
3883
+ export interface EditReservationItemsResult extends UpdateReservationResult {
3884
+ refundResult?: RefundResult;
3885
+ }
3886
+ export interface TimeSlotConflicts {
3887
+ timeSlot: TimeSlotDto;
3888
+ conflicts: Slot[];
3889
+ }
3890
+ export interface AddonMetadata {
4053
3891
  productId: number;
4054
- product?: Product;
4055
3892
  quantity: number;
4056
3893
  unitPrice: number;
4057
3894
  totalPrice: number;
4058
- approvalStatus: ReservationStatusEnum;
4059
- paymentStatus: ReservationPaymentStatusEnum;
4060
- level?: ProductPackageLevelEnum;
4061
- resourceId?: number;
4062
- resource?: Resource;
4063
- orderId?: number;
4064
- order?: Order;
4065
- productUserId?: number;
4066
- productUser?: ProductsUsers;
3895
+ }
3896
+ export declare class Segment extends OrganizationConnectionBaseEntity {
3897
+ deletedAt?: Date;
3898
+ reservationId: number;
3899
+ title: string;
3900
+ isPrivate: boolean;
3901
+ resourceIds?: number[];
3902
+ sportId: number;
3903
+ reservation?: Reservation;
3904
+ series?: Series[];
3905
+ addonIds?: number[] | null;
3906
+ publicNotesForSlots?: string;
3907
+ privateNotesForSlots?: string;
3908
+ slots?: Slot[];
4067
3909
  }
4068
3910
  export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4069
3911
  deletedAt?: Date;
@@ -4077,7 +3919,7 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
4077
3919
  approvalStatus?: ReservationStatusEnum;
4078
3920
  privacySetting?: string;
4079
3921
  reservationType?: ReservationTypeEnum;
4080
- orderId?: string;
3922
+ invoiceId?: string;
4081
3923
  customerId?: number;
4082
3924
  customer?: Customer;
4083
3925
  price?: number;
@@ -4104,39 +3946,6 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
4104
3946
  targetGlobalPrice?: number;
4105
3947
  slots: Slot[];
4106
3948
  }
4107
- export declare class Segment extends OrganizationConnectionBaseEntity {
4108
- deletedAt?: Date;
4109
- reservationId: number;
4110
- title: string;
4111
- isPrivate: boolean;
4112
- resourceIds?: number[];
4113
- sportId: number;
4114
- reservation?: Reservation;
4115
- series?: Series[];
4116
- addonIds?: number[] | null;
4117
- publicNotesForSlots?: string;
4118
- privateNotesForSlots?: string;
4119
- slots?: Slot[];
4120
- }
4121
- export declare class Series extends OrganizationConnectionBaseEntity {
4122
- deletedAt?: Date;
4123
- segmentId: number;
4124
- segment?: Segment;
4125
- slots?: Slot[];
4126
- slotDurationType: string;
4127
- durationEndsAfter: number;
4128
- durationUnit: string;
4129
- startDate?: Date;
4130
- endDate?: Date;
4131
- startTime: string;
4132
- endTime: string;
4133
- frequency: string;
4134
- repeatEvery: number;
4135
- repeatOn?: number[];
4136
- repeatEndDate?: Date;
4137
- numberOccurrences?: number;
4138
- resources?: Resource[];
4139
- }
4140
3949
  export declare class Slot extends OrganizationConnectionBaseEntity {
4141
3950
  constructor();
4142
3951
  defineIsReverted(): void;
@@ -4164,25 +3973,22 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
4164
3973
  addonsProductUserIds?: number[] | null;
4165
3974
  addonsProductUsers?: ProductsUsers[];
4166
3975
  addonProducts?: Product[];
4167
- addonsMetadata: {
4168
- productId: number;
4169
- quantity: number;
4170
- unitPrice: number;
4171
- totalPrice: number;
4172
- }[];
3976
+ addonsMetadata: AddonMetadata[];
4173
3977
  segmentId: number;
4174
3978
  segment: Segment;
4175
3979
  eventId: number;
4176
3980
  event: Event;
4177
3981
  sportIds: number[];
4178
3982
  parentSlotId?: number;
3983
+ parent?: Slot;
3984
+ children?: Slot[];
4179
3985
  maintenanceDurationdurationType: string;
4180
3986
  maintenanceTiming: number;
4181
3987
  durationValue: number;
4182
3988
  seriesId?: number;
4183
3989
  series?: Series;
4184
- orderId?: number;
4185
- order?: Order;
3990
+ invoiceId?: number;
3991
+ invoice?: Invoice;
4186
3992
  paymentStatus: ReservationPaymentStatusEnum;
4187
3993
  approvalStatus?: ReservationStatusEnum;
4188
3994
  displayName?: string;
@@ -4203,286 +4009,474 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
4203
4009
  changeLineItemIds?: number[];
4204
4010
  changeLineItems?: LineItems[];
4205
4011
  updatedLineItem?: LineItems;
4012
+ conflictsCount?: number;
4013
+ conflicts?: Slot[];
4206
4014
  }
4207
- export declare type TSlotAndType = {
4208
- type: 'slots' | 'slot_addons';
4209
- slotsForProduct: {
4210
- [productId: number]: {
4211
- product: Product;
4212
- slots: SlotDto[];
4213
- };
4214
- };
4215
- };
4216
- export interface ILineItemResource {
4217
- type: 'addons' | 'segments' | 'series' | 'slots' | 'slot_addons';
4218
- values: TResource[];
4015
+ export declare class Series extends OrganizationConnectionBaseEntity {
4016
+ deletedAt?: Date;
4017
+ segmentId: number;
4018
+ segment?: Segment;
4019
+ slots?: Slot[];
4020
+ slotDurationType: string;
4021
+ durationEndsAfter: number;
4022
+ durationUnit: string;
4023
+ startDate?: Date;
4024
+ endDate?: Date;
4025
+ startTime: string;
4026
+ endTime: string;
4027
+ frequency: string;
4028
+ repeatEvery: number;
4029
+ repeatOn?: number[];
4030
+ repeatEndDate?: Date;
4031
+ numberOccurrences?: number;
4032
+ resources?: Resource[];
4033
+ }
4034
+ export declare class MaintenanceDto {
4035
+ id?: number;
4036
+ title: string;
4037
+ durationValue: number;
4038
+ maintenanceDurationdurationType: DurationUnitTypesEnum;
4039
+ maintenanceTiming: MaintenanceTimingEnum;
4040
+ }
4041
+ export declare class AddonDto extends ProductPricesDto {
4042
+ id?: number;
4043
+ }
4044
+ export declare class AddAddonsDto {
4045
+ addons: AddonDto[];
4046
+ }
4047
+ export declare class EditAddonsDto {
4048
+ addons: EditAddonDto[];
4049
+ }
4050
+ export declare class EditReservationAddonsDto extends EditAddonsDto {
4051
+ refundMeta?: EditItemsRefundMetaDto;
4052
+ }
4053
+ export declare class EditAddonDto {
4054
+ id: number;
4055
+ quantity: number;
4056
+ totalPrice: number;
4057
+ unitPrice?: number;
4058
+ }
4059
+ export declare class LineItemDto {
4060
+ id?: number;
4061
+ invoiceId?: number;
4062
+ type: LineItemsStatusEnum;
4063
+ organizationId: number;
4064
+ userId?: number;
4065
+ productId: number;
4066
+ product?: Product;
4067
+ productType: ProductTypesEnum;
4068
+ ordinal?: number;
4069
+ price: number;
4070
+ originalPrice?: number;
4071
+ paidAmount?: number;
4072
+ currency: CurrencyEnum;
4073
+ paymentStatus?: PaymentStatusEnum;
4074
+ isRefunded?: boolean;
4075
+ isTaxInclusive?: boolean;
4076
+ taxPrecent?: number;
4077
+ unitPrice?: number;
4078
+ quantity: number;
4079
+ resources?: PurchasedResourceDto[];
4080
+ relationType?: 'reservation-addon' | 'slots' | 'slot_addons';
4081
+ unitPriceWithTax?: number;
4082
+ unitTaxPrice?: number;
4083
+ parentOrdinal?: number;
4084
+ }
4085
+ export declare class InvoiceDto {
4086
+ invoiceId?: string | null;
4087
+ organizationId: number;
4088
+ price: number | null;
4089
+ totalTax?: number;
4090
+ totalWithoutTax?: number;
4091
+ status?: InvoiceStatusEnum;
4092
+ lineItems: LineItemDto[];
4093
+ paymentStatus?: PaymentStatusEnum;
4094
+ currency: CurrencyEnum;
4095
+ creatingUserId?: number;
4096
+ platform?: PlatformsEnum;
4097
+ }
4098
+ export declare class BaseInvoiceDto {
4099
+ platform: PlatformsEnum;
4100
+ shiftId?: number;
4101
+ }
4102
+ export declare class InvoiceSlotsDto extends BaseInvoiceDto {
4103
+ purchasingUserId: number;
4104
+ slots: number[];
4105
+ }
4106
+ export declare class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
4107
+ reservationTotalPrice: number;
4108
+ }
4109
+ export declare class UpdateInvoiceOptionsDto {
4110
+ basicInfoData?: BaseInvoiceDto;
4111
+ addToInvoiceId?: number;
4112
+ }
4113
+ export declare class UpdateInvoiceDto extends UpdateInvoiceOptionsDto {
4114
+ isInvoiced: boolean;
4115
+ }
4116
+ export declare class InvoiceReservationItemsDto extends UpdateInvoiceOptionsDto {
4117
+ slotsIds?: number[];
4118
+ addonsIds?: number[];
4119
+ }
4120
+ export declare class AddSlotsDto extends UpdateInvoiceDto {
4121
+ slots: SlotDto[];
4122
+ }
4123
+ export declare class AddSegmentsDto extends UpdateInvoiceDto {
4124
+ segments: SegmentDto[];
4125
+ }
4126
+ export declare class ReservationDto {
4127
+ id?: number;
4128
+ organizationId?: number;
4129
+ name: string;
4130
+ reservationType: ReservationTypeEnum;
4131
+ customerId?: number;
4132
+ segments: SegmentDto[];
4133
+ description?: string;
4134
+ status?: ReservationStatusEnum;
4135
+ privacySetting?: string;
4136
+ invoiceId?: string;
4137
+ price?: number;
4138
+ paymentStatus?: ReservationPaymentStatusEnum;
4139
+ creatorId?: number;
4140
+ creatorType?: ResourceNameTypeEnum;
4141
+ publicNotes?: string;
4142
+ privateNotes?: string;
4143
+ forms?: number[] | null;
4144
+ addons?: AddonDto[];
4145
+ userId?: number;
4146
+ overrideProductsPrice?: ProductPricesDto[];
4147
+ targetGlobalPrice?: number;
4219
4148
  }
4220
- export declare type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | ProductPricesDto;
4221
- export declare type TResource = Reservation | Segment | Series | Slot | Addon;
4222
- export interface ReservationV1 {
4223
- id: number;
4224
- price: number;
4225
- status: string;
4226
- sentForClientDate?: string;
4227
- sentForAdminDate?: string;
4228
- name?: string;
4149
+ export declare class SaveReservationDto {
4150
+ reservation: ReservationDto;
4151
+ slotType?: SlotTypeEnum;
4229
4152
  }
4230
- export declare class SlotDateDto {
4231
- startDate: moment.Moment;
4232
- endDate: moment.Moment;
4153
+ export declare class SingleReservationIncludesDto {
4154
+ includeCustomer?: boolean;
4155
+ includeAddons?: boolean;
4156
+ includeSeries?: boolean;
4157
+ includeInvoices?: boolean;
4158
+ includePayments?: boolean;
4159
+ includeAnswers?: boolean;
4160
+ buildTree?: boolean;
4233
4161
  }
4234
- export interface IProductQuantity {
4162
+ export declare class CategoryPricesDto {
4163
+ slot: number;
4164
+ addon: number;
4165
+ }
4166
+ export declare class ProductPricesDto {
4235
4167
  productId: number;
4168
+ price?: number;
4236
4169
  quantity?: number;
4237
- unitPrice?: number;
4238
- }
4239
- export interface SlotsLineItemData extends BaseReservationItemLineItemData {
4240
- slotIds: number[];
4241
- }
4242
- export interface AddonsLineItemData extends BaseReservationItemLineItemData {
4243
- addonsIds: number[];
4244
- }
4245
- export declare type ReservationItemLineItemData = BaseReservationItemLineItemData | SlotsLineItemData | AddonsLineItemData;
4246
- export interface BaseReservationItemLineItemData {
4247
- id: number;
4248
- amount: number;
4249
- amountPaid: number;
4250
- quantity: number;
4251
- canVoid: boolean;
4252
- canRefund: boolean;
4253
- isEdit?: boolean;
4170
+ totalPrice?: number;
4254
4171
  }
4255
- export interface IRemoveSlotsFinancialData {
4256
- paymentMethods: IPaymentMethodToFundLeft[];
4257
- lineItems: SlotsLineItemData[];
4258
- nextFinancialStep: FinancialStepEnum;
4172
+ declare class UpdatePriceDto {
4173
+ type: UpdatePricesTypeEnum;
4174
+ globalPrice?: number;
4175
+ category?: CategoryPricesDto;
4176
+ products?: ProductPricesDto[];
4259
4177
  }
4260
- export interface IRemoveAddonsFinancialData {
4261
- paymentMethods: IPaymentMethodToFundLeft[];
4262
- lineItems: AddonsLineItemData[];
4263
- nextFinancialStep: FinancialStepEnum;
4178
+ export declare class UpdateReservationPriceDto extends UpdatePriceDto {
4179
+ reservation: ReservationDto;
4264
4180
  }
4265
- export interface ReservationData {
4266
- id: number;
4267
- reservationName: string;
4268
- customerId: number;
4269
- customerFirstName: string;
4270
- customerLastName: string;
4271
- spaces: SpaceInReservation[];
4272
- startDate: string;
4273
- endDate: string;
4274
- price: number;
4275
- status: ReservationStatusEnum;
4276
- paymentStatus: PaymentStatusEnum;
4277
- frequencies: FrequencyInReservation[];
4278
- reservationType: ReservationTypeEnum;
4181
+ export declare class UpdateSlotsPricesDto extends UpdatePriceDto {
4182
+ slots: SlotDto[];
4183
+ useCurrentProducts?: boolean;
4279
4184
  }
4280
- export interface SpaceInReservation {
4281
- reservationId: number;
4282
- spaceId: number;
4283
- spaceName: string;
4185
+ export declare class BookingData {
4186
+ platform: PlatformsEnum;
4187
+ shiftId?: number;
4188
+ paymentData: PurchasePaymentDto;
4189
+ amountToPay: number;
4190
+ total: number;
4191
+ purchasingUserId: number;
4284
4192
  }
4285
- export interface FrequencyInReservation {
4286
- reservationId: number;
4287
- frequency?: string;
4288
- repeatEvery?: number;
4289
- repeatOn?: number[];
4290
- repeatEndDate?: string;
4193
+ export declare class BookingDto extends BookingData {
4194
+ reservation: ReservationDto;
4195
+ invoiceId?: number;
4291
4196
  }
4292
- export interface FindReservationsByOrganizationIdFilters extends PaginationQuery {
4197
+ export declare class FindReservationsByOrganizationIdFiltersDto extends PaginationQuery {
4293
4198
  resourcesIds?: string;
4294
- datesRange?: {
4295
- startDate: string;
4296
- endDate: string;
4297
- };
4298
- approvalStatuses?: string[];
4299
- paymentStatuses?: string[];
4199
+ startDate?: string;
4200
+ endDate?: string;
4201
+ status?: string;
4202
+ paymentStatus?: string;
4300
4203
  customerName?: string;
4301
4204
  }
4302
- export interface FindSlotsByFacilityIdFilters {
4205
+ export declare class FindSlotsByFacilityIdFiltersDto {
4303
4206
  startDate: string;
4304
4207
  endDate: string;
4305
4208
  limit: number;
4306
- includeBlocking: boolean;
4209
+ resourcesIds?: string;
4210
+ resourcesTypes?: string;
4211
+ reservationStatuses?: string;
4212
+ includeBlocking?: boolean;
4307
4213
  onlyActiveSessions?: boolean;
4308
- resourcesIds?: number[];
4309
- resourcesTypes?: ResourceTypeEnum[];
4310
- reservationStatuses?: ReservationStatusEnum[];
4214
+ checkConflicts?: boolean;
4311
4215
  }
4312
- export interface ResourceSlots extends Resource {
4313
- slots: Slot[];
4216
+ export declare class getSlotsSlotCardDto {
4217
+ includeConflicts?: boolean;
4314
4218
  }
4315
- export interface PriceFields {
4316
- unitPrice: string;
4317
- price: string;
4318
- totalTax: string;
4319
- quantity: string;
4320
- isTaxInclusive: boolean;
4321
- currency: string;
4219
+ export declare class getSlotFQueryParamsDto {
4220
+ addProduct?: boolean;
4322
4221
  }
4323
- export interface LineItemPrice {
4324
- unitPrice: number;
4325
- unitTax: number;
4326
- isTaxInclusive: boolean;
4327
- unitPricePerHour: number;
4328
- taxPerHour: number;
4329
- quantity: number;
4330
- currency: string;
4331
- totalPrice: number;
4222
+ export declare class FindByReservationDto extends ByOrganizationIdDto {
4223
+ reservationId: number;
4332
4224
  }
4333
- export interface CalendarCardAddon extends ProductsUsers {
4334
- price: LineItemPrice;
4225
+ export declare class FindByFacilityDto extends FindByReservationDto {
4226
+ facilityId: number;
4335
4227
  }
4336
- export interface CalendarSlotCard extends Slot {
4337
- reservation: Reservation & {
4338
- resources?: {
4339
- id: number;
4340
- name: string;
4341
- }[];
4342
- };
4343
- addons: CalendarCardAddon[];
4344
- invoice: Order;
4345
- price: LineItemPrice;
4346
- totalSlotsInSeries?: number;
4347
- slotIndexInSeries?: number;
4228
+ export declare class FindBySegmentDto extends FindByFacilityDto {
4229
+ segmentId: number;
4348
4230
  }
4349
- declare type IPartialInvoice = Pick<Order, 'id' | 'createdAt' | 'price' | 'paymentStatus' | 'paidAmount'>;
4350
- export declare type IPartialPayment = Pick<Invoice, 'id' | 'createdAt' | 'price' | 'paymentStatus' | 'paymentType' | 'ccBrand' | 'ccLast4'>;
4351
- export interface IInvoice extends IPartialInvoice {
4352
- lineItemsCount: number;
4231
+ export declare class UpdateReservationStatusDto extends FindByReservationDto {
4232
+ status: ReservationStatusEnum;
4353
4233
  }
4354
- export interface SingleReservation {
4355
- id: number;
4356
- name: string;
4357
- organizationId: number;
4358
- description: string;
4359
- updatedAt: Date;
4360
- privateNotes: string;
4361
- publicNotes: string;
4362
- approvalStatus: string;
4363
- paymentStatus: PaymentStatusEnum;
4364
- reservationType: ReservationTypeEnum;
4365
- sports: number[];
4366
- facilityId?: number;
4367
- customerId: number;
4368
- customer?: Customer;
4369
- invoices?: IInvoice[];
4370
- payments?: IPartialPayment[];
4371
- addons?: Addon[];
4372
- answers?: Answer[];
4373
- series: Series[];
4374
- segments?: Segment[];
4234
+ export declare class FindBySlotDto extends FindByReservationDto {
4235
+ slotId: number;
4375
4236
  }
4376
- export interface UpdateReservationResult {
4377
- reservation: Reservation;
4378
- order?: Order;
4379
- debug?: any;
4237
+ export declare class AddSlotToSegmentDto {
4238
+ slot: SlotDto;
4239
+ addonIds?: number[];
4380
4240
  }
4381
- export interface UpdateSlotPricesResult {
4382
- reservation: ReservationDto;
4383
- slots: SlotDto[];
4384
- order: OrderDto;
4241
+ export declare class AddSlotToSegmenResultDto {
4242
+ series: SeriesDto;
4243
+ slotTotalPrice: number;
4244
+ addonsTotalPrice: number;
4385
4245
  debug?: any;
4386
4246
  }
4387
- export interface UpdateSlotsAddonsResult {
4247
+ export declare class UpdateSlotsDto {
4388
4248
  slots: SlotDto[];
4389
- order: OrderDto;
4390
- debug?: any;
4391
4249
  }
4392
- interface ValidateEditItemsResult {
4393
- nextFinancialStep: FinancialStepEnum;
4394
- paymentMethods?: IPaymentMethodToFundLeft[];
4395
- originalInvoicePrice?: number;
4396
- updatedInvoicePrice?: number;
4397
- priceChange?: number;
4250
+ export declare class EditItemsRefundMetaDto {
4251
+ lineItems: RefundLineItemAmountDto[];
4252
+ paymentMethods: PaymentMethodDto[];
4253
+ reasonId: number;
4398
4254
  }
4399
- export interface ValidateEditSlotsResult extends ValidateEditItemsResult {
4400
- slots: SlotDto[];
4401
- refundMetadata?: EditSlotsRefundMetadata;
4402
- editData?: EditSlotsData;
4255
+ export declare class EditSlotsDto extends UpdateSlotsDto {
4256
+ refundMeta?: EditItemsRefundMetaDto;
4403
4257
  }
4404
- export interface ValidateEditReservationAddonsResult extends ValidateEditItemsResult {
4405
- refundMetadata?: EditAddonsRefundMetadata;
4406
- editData?: EditAddonsData;
4258
+ export declare class EditReservationDetailsDto {
4259
+ name: string;
4260
+ publicNotes?: string;
4261
+ privateNotes?: string;
4262
+ }
4263
+ export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
4264
+ updateAddons?: boolean;
4265
+ }
4266
+ export declare class CreateRoleDto {
4267
+ name: string;
4268
+ }
4269
+ export declare class PurchasedResourceDto {
4270
+ resourceId?: number;
4271
+ resourceType: ResourceNameTypeEnum;
4272
+ startDate?: string;
4273
+ startTime?: string;
4274
+ endDate?: string;
4275
+ endTime?: string;
4276
+ }
4277
+ export declare class SeriesDto {
4278
+ id?: number;
4279
+ startDate: string;
4280
+ startTime?: string;
4281
+ endDate?: string;
4282
+ endTime?: string;
4283
+ slotDurationType: SlotDurationTypeEnum;
4284
+ durationEndsAfter?: number;
4285
+ durationUnit?: DurationUnitTypesEnum;
4286
+ frequency: FrequencyEnum;
4287
+ repeatEvery?: number;
4288
+ repeatOn?: number[];
4289
+ repeatEndDate?: string;
4290
+ numberOccurrences?: number;
4291
+ maintenance?: MaintenanceDto[];
4292
+ slots?: SlotDto[];
4407
4293
  }
4408
- export interface EditSlotsRefundMetadata {
4409
- lineItems: SlotsLineItemData[];
4410
- refundAmount: number;
4294
+ export declare class ProductIdsDto {
4295
+ productIds?: number[];
4411
4296
  }
4412
- export interface EditAddonsRefundMetadata {
4413
- lineItems: AddonsLineItemData[];
4414
- refundAmount: number;
4297
+ export declare class ProductImportDto {
4298
+ product: Product;
4299
+ prices: Price[];
4300
+ resourceIds: number[];
4301
+ oldId: number;
4415
4302
  }
4416
- export interface EditSlotsData {
4417
- order?: Order;
4418
- editSlotsLineItems?: SlotsLineItemData[];
4419
- newLineItems?: LineItemDto[];
4303
+ export declare class PunchPassDto {
4304
+ CustomerID: string;
4305
+ QuantityLeft: number;
4306
+ BondProgramID: number;
4307
+ BondSessionID: number;
4308
+ ProductID: number;
4420
4309
  }
4421
- export interface EditAddonsData {
4422
- order?: Order;
4310
+ export declare class ImportedSlotProductDto {
4311
+ slotID?: string;
4312
+ name?: string;
4313
+ pricingType?: 'Hourly' | 'Flat';
4314
+ appliesTo?: 'slot' | 'addon' | 'reservation';
4315
+ price?: string;
4316
+ minutes?: string;
4317
+ quantity: string;
4318
+ startDate?: string;
4319
+ startTime?: string;
4320
+ endDate?: string;
4321
+ endTime?: string;
4322
+ bondProductId?: number;
4423
4323
  }
4424
- export interface EditReservationItemsResult extends UpdateReservationResult {
4425
- refundResult?: RefundResult;
4324
+ export declare class ImportResourceMappingDto {
4325
+ bondResourceID?: string;
4326
+ resourceName?: string;
4426
4327
  }
4427
- export declare class ChangeRolePermissionsDto {
4428
- permissionIds: number[];
4328
+ export declare class ImportProductMappingDto {
4329
+ productID?: string;
4330
+ productName?: string;
4429
4331
  }
4430
- export declare class CreateRoleDto {
4431
- name: string;
4332
+ export declare class ImportedSlotDto {
4333
+ reservationID: string;
4334
+ bondResourceID: string;
4335
+ resourceName: string;
4336
+ subResourceName: string;
4337
+ startDate: string;
4338
+ startTime: string;
4339
+ endDate: string;
4340
+ endTime: string;
4341
+ sportId?: string;
4342
+ setupDuration: string;
4343
+ setupIncludeInCosts: string;
4344
+ takedownDuration: string;
4345
+ takedownIncludeInCosts: string;
4346
+ slotProduct: ImportedSlotProductDto;
4347
+ addonProducts: ImportedSlotProductDto[];
4348
+ totalPrice: string;
4432
4349
  }
4433
- export declare class Permission extends BondBaseEntity {
4350
+ export declare class ImportedReservationDto {
4434
4351
  name: string;
4435
- deletedAt?: Date;
4352
+ customerId: string;
4353
+ description: string;
4354
+ totalPrice: string;
4355
+ downPayment: string;
4356
+ paid: string;
4357
+ invoiceId: string;
4358
+ slots?: ImportedSlotDto[];
4359
+ addons?: ImportedSlotProductDto[];
4436
4360
  }
4437
- export declare class Role extends OrganizationConnectionBaseEntity {
4438
- name: string;
4439
- deletedAt?: Date;
4440
- permissions: Permission[];
4441
- usersRoles: UserRole[];
4361
+ declare class AnswerDto {
4362
+ questionId: number;
4363
+ value: any;
4442
4364
  }
4443
- export declare class UserRole extends OrganizationConnectionBaseEntity {
4444
- deletedAt?: Date;
4445
- userId: number;
4446
- roleId: number;
4447
- role: Role;
4448
- user: User;
4365
+ export declare class BookedSessionDto {
4366
+ startDate: string;
4367
+ endDate: string;
4368
+ timezone: string;
4369
+ spaceId: number;
4449
4370
  }
4450
- export declare class CloseShiftDto {
4451
- closingCashAmount: number;
4371
+ export declare class ReservationV1Dto {
4372
+ organizationId: number;
4373
+ name: string;
4374
+ dayOfWeek: number;
4375
+ startTime: string;
4376
+ description: string;
4377
+ sport: number;
4378
+ price: number;
4379
+ resourcePackageId: number;
4380
+ resourcePackageAmount: number;
4381
+ bookedSessions: BookedSessionDto[];
4382
+ addons: AddonDto[];
4452
4383
  }
4453
- export declare class FindShiftsByIdsDto {
4454
- shiftIds: number[];
4384
+ export declare class BookingV1Dto {
4385
+ organizationId: number;
4386
+ reservations: ReservationV1Dto[];
4387
+ answers: AnswerDto[];
4388
+ paymentData: PurchasePaymentDto;
4389
+ skipPayment: boolean;
4390
+ cashPayment: boolean;
4391
+ requestOnly: boolean;
4455
4392
  }
4456
- export declare class FindShiftsFiltersDto {
4457
- statuses?: string;
4458
- stationIds?: string;
4459
- openingUsersIds?: string;
4460
- closingUsersIds?: string;
4461
- closingManagersIds?: string;
4462
- reconcilingUsersIds?: string;
4463
- startDate?: Date;
4464
- endDate?: Date;
4393
+ export declare class SlotDateTimeAndSpace {
4394
+ startDate: string;
4395
+ startTime?: string;
4396
+ endDate?: string;
4397
+ endTime?: string;
4398
+ spaceId: number;
4465
4399
  }
4466
- export declare class FindShiftsFormattedFilters {
4467
- statuses?: string[];
4468
- stationIds?: number[];
4469
- openingUsersIds?: number[];
4470
- closingUsersIds?: number[];
4471
- closingManagersIds?: number[];
4472
- reconcilingUsersIds?: number[];
4473
- startDate?: Date;
4474
- endDate?: Date;
4400
+ export declare class SlotDto extends SlotDateTimeAndSpace {
4401
+ id?: number;
4402
+ reservationId?: number;
4403
+ occurrence?: number;
4404
+ title: string;
4405
+ creatorId?: number;
4406
+ creatorType?: string;
4407
+ userCreatorId?: number;
4408
+ timezone?: string;
4409
+ publicNotes?: string;
4410
+ privateNotes?: string;
4411
+ slotType: SlotTypeEnum;
4412
+ product?: Product;
4413
+ priceOverrideMeta?: {
4414
+ unitPrice: number;
4415
+ quantity: number;
4416
+ totalPrice: number;
4417
+ };
4418
+ addonPriceOverrideMeta?: {
4419
+ [addonProductId: number]: {
4420
+ unitPrice: number;
4421
+ quantity: number;
4422
+ totalPrice: number;
4423
+ };
4424
+ };
4425
+ addonProducts?: Product[];
4426
+ addonCalculatedPrice?: {
4427
+ productId: number;
4428
+ quantity: number;
4429
+ unitPrice: number;
4430
+ totalPrice: number;
4431
+ displayTotalWithTax?: number;
4432
+ displayUnitTax?: number;
4433
+ }[];
4434
+ addonsProductUserIds?: number[];
4435
+ segmentId?: number;
4436
+ seriesId?: number;
4437
+ eventId?: number;
4438
+ sportIds: number[];
4439
+ parentSlotId?: number;
4440
+ maintenanceDurationdurationType?: DurationUnitTypesEnum;
4441
+ maintenanceTiming?: MaintenanceTimingEnum;
4442
+ durationValue?: number;
4443
+ invoicId?: number;
4444
+ paymentStatus: ReservationPaymentStatusEnum;
4445
+ approvalStatus: ReservationStatusEnum;
4446
+ displayName?: string;
4447
+ internalName?: string;
4448
+ totalPrice?: number;
4449
+ relevantProducts?: Product[];
4450
+ maintenance?: MaintenanceDto[];
4451
+ maintenanceSlots?: SlotDto[];
4452
+ isPrivate: boolean;
4453
+ slotDurationType: SlotDurationTypeEnum;
4454
+ addonsIds?: number[];
4475
4455
  }
4476
- export declare class ShiftManagementClosingAmount {
4477
- shiftId: number;
4478
- managementClosingCashAmount: number;
4456
+ export declare class TimeSlotDto {
4457
+ id?: number;
4458
+ resourceId: number;
4459
+ startDate: string;
4460
+ startTime: string;
4461
+ endDate: string;
4462
+ endTime: string;
4479
4463
  }
4480
- export declare class ManagementClosingOfShiftsDto {
4481
- managementClosingData: ShiftManagementClosingAmount[];
4464
+ export declare class TimeSlotsDto {
4465
+ timeSlots: TimeSlotDto[];
4482
4466
  }
4483
- export declare class OpenShiftDto {
4484
- openingCashAmount: number;
4485
- stationId: number;
4467
+ export declare class SlotsIdsDto {
4468
+ slotsIds: number[];
4469
+ }
4470
+ export declare class SegmentDto {
4471
+ id?: number;
4472
+ title: string;
4473
+ isPrivate: boolean;
4474
+ resourceIds: number[];
4475
+ sportId?: number;
4476
+ series: SeriesDto[];
4477
+ addonIds?: number[];
4478
+ publicNotesForSlots?: string;
4479
+ privateNotesForSlots?: string;
4486
4480
  }
4487
4481
  export declare class Shift extends OrganizationConnectionBaseEntity {
4488
4482
  stationId: number;
@@ -4504,7 +4498,7 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4504
4498
  reconciliationAmount?: number;
4505
4499
  reconcilingDate?: string;
4506
4500
  reconcilingTime?: string;
4507
- reconciliationOrderId?: number;
4501
+ reconciliationInvoiceId?: number;
4508
4502
  deletedAt?: Date;
4509
4503
  sumsOnShift?: Map<PaymentMethodTypeEnum, number>;
4510
4504
  currentCashDifference?: number;
@@ -4513,3 +4507,40 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4513
4507
  closingManager?: User;
4514
4508
  reconcilingUser?: User;
4515
4509
  }
4510
+ export declare class ShiftManagementClosingAmount {
4511
+ shiftId: number;
4512
+ managementClosingCashAmount: number;
4513
+ }
4514
+ export declare class ManagementClosingOfShiftsDto {
4515
+ managementClosingData: ShiftManagementClosingAmount[];
4516
+ }
4517
+ export declare class OpenShiftDto {
4518
+ openingCashAmount: number;
4519
+ stationId: number;
4520
+ }
4521
+ export declare class FindShiftsFiltersDto {
4522
+ statuses?: string;
4523
+ stationIds?: string;
4524
+ openingUsersIds?: string;
4525
+ closingUsersIds?: string;
4526
+ closingManagersIds?: string;
4527
+ reconcilingUsersIds?: string;
4528
+ startDate?: Date;
4529
+ endDate?: Date;
4530
+ }
4531
+ export declare class FindShiftsFormattedFilters {
4532
+ statuses?: string[];
4533
+ stationIds?: number[];
4534
+ openingUsersIds?: number[];
4535
+ closingUsersIds?: number[];
4536
+ closingManagersIds?: number[];
4537
+ reconcilingUsersIds?: number[];
4538
+ startDate?: Date;
4539
+ endDate?: Date;
4540
+ }
4541
+ export declare class FindShiftsByIdsDto {
4542
+ shiftIds: number[];
4543
+ }
4544
+ export declare class CloseShiftDto {
4545
+ closingCashAmount: number;
4546
+ }