@bondsports/types 0.0.67 → 0.0.70

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
@@ -454,6 +454,208 @@ export declare class CreateGroupPricingWithProduct {
454
454
  discountValue?: number;
455
455
  discountMethod?: DiscountMethodsEnum;
456
456
  }
457
+ export declare class CreateUpdateVariantsDto {
458
+ organizationId: number;
459
+ parentProductId: number;
460
+ variantTitles: VariantTitleDto[];
461
+ variants: VariantDto[];
462
+ }
463
+ export declare class VariantTitleDto {
464
+ titleName: string;
465
+ titleId: number;
466
+ }
467
+ export declare class VariantDto {
468
+ name: string;
469
+ price: number;
470
+ variantId: number;
471
+ currency: CurrencyEnum;
472
+ startDate: Date;
473
+ endDate: Date;
474
+ }
475
+ export declare class FindProgramSeasonsByProgramIdDto {
476
+ programId: number;
477
+ }
478
+ export declare class FindSessionsFiltersDto {
479
+ status?: PublishingStatusEnum;
480
+ isFullFetch?: boolean;
481
+ }
482
+ export declare class FindSessionsByProgramAndOrganizationDto extends FindProgramSeasonsByProgramIdDto {
483
+ organizationId: number;
484
+ }
485
+ export declare class DeleteEventAttendeesDto {
486
+ eventAttendeeIds: string;
487
+ }
488
+ export declare class FindProgramSeasonByIdQueryDto {
489
+ includeResources?: boolean;
490
+ }
491
+ export declare class FindProgramSeasonByIdDto extends OptionalFindByOrganizationIdDto {
492
+ seasonId: number;
493
+ }
494
+ export declare class DeleteProgramSeasonByIDDto extends ByOrganizationIdDto {
495
+ seasonId: number;
496
+ }
497
+ export declare class DeleteProductDto {
498
+ deleteProduct?: boolean;
499
+ }
500
+ export declare class FindRegisteredUserDto extends FindProgramSeasonByIdDto {
501
+ userId: number;
502
+ }
503
+ export declare class FindRegisteredUsersOptionsDto extends PaginationQuery {
504
+ isFreeAgentsOnly?: boolean;
505
+ isPunchCardUsers?: boolean;
506
+ nameEmailSearch?: string;
507
+ }
508
+ export declare class BaseProgramSeasonDto {
509
+ programId: number;
510
+ name: string;
511
+ status: PublishingStatusEnum;
512
+ seasonType: ProgramSeasonTypesEnum;
513
+ startDate: Date;
514
+ endDate: Date;
515
+ description?: string;
516
+ GL?: string;
517
+ parentSeasonId?: number;
518
+ questionnaires?: number[];
519
+ maxParticipants?: number;
520
+ maxMaleParticipants?: number;
521
+ maxFemaleParticipants?: number;
522
+ maxWaitlist?: number;
523
+ maxMaleWaitlist?: number;
524
+ maxFemaleWaitlist?: number;
525
+ facilityId?: number;
526
+ addressId?: number;
527
+ blockedDated?: blockedDatesDto[];
528
+ activityTimes: ActivityTimesDto[];
529
+ longDescription?: string;
530
+ isPunchCard?: boolean;
531
+ organizationId: number;
532
+ sport: SportsEnum;
533
+ minAge: string;
534
+ maxAge: string;
535
+ gender: GenderEnum;
536
+ level?: LevelOfPlayEnum[];
537
+ requiredProductIds?: number[];
538
+ }
539
+ export declare class CreateProgramSeasonDto extends BaseProgramSeasonDto {
540
+ subSeasons?: SubSeasonBasicInfo[];
541
+ }
542
+ export declare class CreateSessionScheduleDto {
543
+ startDate: Date;
544
+ endDate: Date;
545
+ activityTimes: ActivityTimesDto[];
546
+ blockedDated?: blockedDatesDto[];
547
+ subSeasons?: SubSeasonBasicInfo[];
548
+ }
549
+ export declare class SubSeasonBasicInfo {
550
+ name: string;
551
+ startDate: Date;
552
+ endDate: Date;
553
+ activityTimes?: ActivityTimesDto[];
554
+ }
555
+ export declare class UpdateProgramSeasonDto extends BaseProgramSeasonDto {
556
+ seasonId: number;
557
+ }
558
+ export declare class UpdateProgramSeasonStatusDto {
559
+ seasonId: number;
560
+ status: PublishingStatusEnum;
561
+ }
562
+ export declare class blockedDatesDto {
563
+ name: string;
564
+ startDate: Date;
565
+ endDate: Date;
566
+ }
567
+ export declare class ActivityTimesDto {
568
+ dayOfWeek: number;
569
+ open: string;
570
+ close: string;
571
+ }
572
+ export declare class ShallowUpdateProgramSeasonDto {
573
+ seasonId: number;
574
+ name: string;
575
+ description?: string;
576
+ questionnaires?: number[];
577
+ maxParticipants?: number;
578
+ maxMaleParticipants?: number;
579
+ maxFemaleParticipants?: number;
580
+ maxWaitlist?: number;
581
+ maxMaleWaitlist?: number;
582
+ maxFemaleWaitlist?: number;
583
+ facilityId?: number;
584
+ addressId?: number;
585
+ sport?: SportsEnum;
586
+ minAge?: string;
587
+ maxAge?: string;
588
+ gender?: GenderEnum;
589
+ level?: LevelOfPlayEnum[];
590
+ requiredProductIds?: number[];
591
+ subSeasons?: ShallowUpdateSubSeasonDto[];
592
+ }
593
+ export declare class ShallowUpdateSubSeasonDto {
594
+ id: number;
595
+ name: string;
596
+ }
597
+ export declare class SpaceResourcePairDto {
598
+ resourceType: ResourceNameTypeEnum;
599
+ resourceId: number;
600
+ spacesIds: number[];
601
+ publicNotes?: string;
602
+ privateNotes?: string;
603
+ minutesBeforeSlot?: number;
604
+ minutesAfterSlot?: number;
605
+ }
606
+ export declare class BulkSpaceResourceAllocationDto {
607
+ spaceResourcePairs: SpaceResourcePairDto[];
608
+ organizationId: number;
609
+ }
610
+ export declare class SingleSpaceAllocationByTimesDto {
611
+ date: string;
612
+ startTime: string;
613
+ endTime: string;
614
+ spaceId: number;
615
+ publicNotes?: string;
616
+ slotType?: SlotTypeEnum;
617
+ }
618
+ export declare class SpaceAllocationsByTimesDto {
619
+ spaceAllocations: SingleSpaceAllocationByTimesDto[];
620
+ }
621
+ export declare class UpdateSeasonDatesDto {
622
+ startDate: Date;
623
+ endDate: Date;
624
+ }
625
+ export declare class MoveAttendeeDto {
626
+ userId: number;
627
+ resourceType: ResourceNameTypeEnum;
628
+ fromResourceIds: number[];
629
+ toResourceIds: number[];
630
+ }
631
+ export declare class UpdateSeasonRegistrationDatesDto {
632
+ registrationPeriods: UpdateSeasonDatesDto[];
633
+ }
634
+ export declare class RegistrationDatesDto {
635
+ registrationStartDate: Date;
636
+ registrationEndDate: Date;
637
+ earlyRegistrationStartDate?: Date;
638
+ earlyRegistrationEndDate?: Date;
639
+ lateRegistrationStartDate?: Date;
640
+ lateRegistrationEndDate?: Date;
641
+ }
642
+ export declare class RegistrationSettingsDto extends RegistrationDatesDto {
643
+ closeRegistrationPeriodValue?: number;
644
+ closeRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
645
+ closeRegistrationSpecTime?: string;
646
+ openRegistrationPeriodValue?: number;
647
+ openRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
648
+ openRegistrationSpecTime?: string;
649
+ productsIdsToUpdate?: number[];
650
+ }
651
+ export declare class MoveParticipantDto {
652
+ userId: number;
653
+ oldProductId: number;
654
+ newProductId: number;
655
+ moveType: 'session' | 'segment';
656
+ resourceId: number;
657
+ orderId: number;
658
+ }
457
659
  export declare class FindByProductIdDto {
458
660
  productId: number;
459
661
  }
@@ -674,208 +876,6 @@ export declare class createResourceDto {
674
876
  export declare class archiveDto {
675
877
  isArchive: boolean;
676
878
  }
677
- export declare class CreateUpdateVariantsDto {
678
- organizationId: number;
679
- parentProductId: number;
680
- variantTitles: VariantTitleDto[];
681
- variants: VariantDto[];
682
- }
683
- export declare class VariantTitleDto {
684
- titleName: string;
685
- titleId: number;
686
- }
687
- export declare class VariantDto {
688
- name: string;
689
- price: number;
690
- variantId: number;
691
- currency: CurrencyEnum;
692
- startDate: Date;
693
- endDate: Date;
694
- }
695
- export declare class FindProgramSeasonsByProgramIdDto {
696
- programId: number;
697
- }
698
- export declare class FindSessionsFiltersDto {
699
- status?: PublishingStatusEnum;
700
- isFullFetch?: boolean;
701
- }
702
- export declare class FindSessionsByProgramAndOrganizationDto extends FindProgramSeasonsByProgramIdDto {
703
- organizationId: number;
704
- }
705
- export declare class DeleteEventAttendeesDto {
706
- eventAttendeeIds: string;
707
- }
708
- export declare class FindProgramSeasonByIdQueryDto {
709
- includeResources?: boolean;
710
- }
711
- export declare class FindProgramSeasonByIdDto extends OptionalFindByOrganizationIdDto {
712
- seasonId: number;
713
- }
714
- export declare class DeleteProgramSeasonByIDDto extends ByOrganizationIdDto {
715
- seasonId: number;
716
- }
717
- export declare class DeleteProductDto {
718
- deleteProduct?: boolean;
719
- }
720
- export declare class FindRegisteredUserDto extends FindProgramSeasonByIdDto {
721
- userId: number;
722
- }
723
- export declare class FindRegisteredUsersOptionsDto extends PaginationQuery {
724
- isFreeAgentsOnly?: boolean;
725
- isPunchCardUsers?: boolean;
726
- nameEmailSearch?: string;
727
- }
728
- export declare class BaseProgramSeasonDto {
729
- programId: number;
730
- name: string;
731
- status: PublishingStatusEnum;
732
- seasonType: ProgramSeasonTypesEnum;
733
- startDate: Date;
734
- endDate: Date;
735
- description?: string;
736
- GL?: string;
737
- parentSeasonId?: number;
738
- questionnaires?: number[];
739
- maxParticipants?: number;
740
- maxMaleParticipants?: number;
741
- maxFemaleParticipants?: number;
742
- maxWaitlist?: number;
743
- maxMaleWaitlist?: number;
744
- maxFemaleWaitlist?: number;
745
- facilityId?: number;
746
- addressId?: number;
747
- blockedDated?: blockedDatesDto[];
748
- activityTimes: ActivityTimesDto[];
749
- longDescription?: string;
750
- isPunchCard?: boolean;
751
- organizationId: number;
752
- sport: SportsEnum;
753
- minAge: string;
754
- maxAge: string;
755
- gender: GenderEnum;
756
- level?: LevelOfPlayEnum[];
757
- requiredProductIds?: number[];
758
- }
759
- export declare class CreateProgramSeasonDto extends BaseProgramSeasonDto {
760
- subSeasons?: SubSeasonBasicInfo[];
761
- }
762
- export declare class CreateSessionScheduleDto {
763
- startDate: Date;
764
- endDate: Date;
765
- activityTimes: ActivityTimesDto[];
766
- blockedDated?: blockedDatesDto[];
767
- subSeasons?: SubSeasonBasicInfo[];
768
- }
769
- export declare class SubSeasonBasicInfo {
770
- name: string;
771
- startDate: Date;
772
- endDate: Date;
773
- activityTimes?: ActivityTimesDto[];
774
- }
775
- export declare class UpdateProgramSeasonDto extends BaseProgramSeasonDto {
776
- seasonId: number;
777
- }
778
- export declare class UpdateProgramSeasonStatusDto {
779
- seasonId: number;
780
- status: PublishingStatusEnum;
781
- }
782
- export declare class blockedDatesDto {
783
- name: string;
784
- startDate: Date;
785
- endDate: Date;
786
- }
787
- export declare class ActivityTimesDto {
788
- dayOfWeek: number;
789
- open: string;
790
- close: string;
791
- }
792
- export declare class ShallowUpdateProgramSeasonDto {
793
- seasonId: number;
794
- name: string;
795
- description?: string;
796
- questionnaires?: number[];
797
- maxParticipants?: number;
798
- maxMaleParticipants?: number;
799
- maxFemaleParticipants?: number;
800
- maxWaitlist?: number;
801
- maxMaleWaitlist?: number;
802
- maxFemaleWaitlist?: number;
803
- facilityId?: number;
804
- addressId?: number;
805
- sport?: SportsEnum;
806
- minAge?: string;
807
- maxAge?: string;
808
- gender?: GenderEnum;
809
- level?: LevelOfPlayEnum[];
810
- requiredProductIds?: number[];
811
- subSeasons?: ShallowUpdateSubSeasonDto[];
812
- }
813
- export declare class ShallowUpdateSubSeasonDto {
814
- id: number;
815
- name: string;
816
- }
817
- export declare class SpaceResourcePairDto {
818
- resourceType: ResourceNameTypeEnum;
819
- resourceId: number;
820
- spacesIds: number[];
821
- publicNotes?: string;
822
- privateNotes?: string;
823
- minutesBeforeSlot?: number;
824
- minutesAfterSlot?: number;
825
- }
826
- export declare class BulkSpaceResourceAllocationDto {
827
- spaceResourcePairs: SpaceResourcePairDto[];
828
- organizationId: number;
829
- }
830
- export declare class SingleSpaceAllocationByTimesDto {
831
- date: string;
832
- startTime: string;
833
- endTime: string;
834
- spaceId: number;
835
- publicNotes?: string;
836
- slotType?: SlotTypeEnum;
837
- }
838
- export declare class SpaceAllocationsByTimesDto {
839
- spaceAllocations: SingleSpaceAllocationByTimesDto[];
840
- }
841
- export declare class UpdateSeasonDatesDto {
842
- startDate: Date;
843
- endDate: Date;
844
- }
845
- export declare class MoveAttendeeDto {
846
- userId: number;
847
- resourceType: ResourceNameTypeEnum;
848
- fromResourceIds: number[];
849
- toResourceIds: number[];
850
- }
851
- export declare class UpdateSeasonRegistrationDatesDto {
852
- registrationPeriods: UpdateSeasonDatesDto[];
853
- }
854
- export declare class RegistrationDatesDto {
855
- registrationStartDate: Date;
856
- registrationEndDate: Date;
857
- earlyRegistrationStartDate?: Date;
858
- earlyRegistrationEndDate?: Date;
859
- lateRegistrationStartDate?: Date;
860
- lateRegistrationEndDate?: Date;
861
- }
862
- export declare class RegistrationSettingsDto extends RegistrationDatesDto {
863
- closeRegistrationPeriodValue?: number;
864
- closeRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
865
- closeRegistrationSpecTime?: string;
866
- openRegistrationPeriodValue?: number;
867
- openRegistrationPeriodType?: RegistrationConstraintPeriodTypeEnum;
868
- openRegistrationSpecTime?: string;
869
- productsIdsToUpdate?: number[];
870
- }
871
- export declare class MoveParticipantDto {
872
- userId: number;
873
- oldProductId: number;
874
- newProductId: number;
875
- moveType: 'session' | 'segment';
876
- resourceId: number;
877
- orderId: number;
878
- }
879
879
  export declare class FindProgramsByOrganizationIdDto {
880
880
  organizationId: number;
881
881
  programType?: ProgramTypesEnum;
@@ -1704,6 +1704,15 @@ export declare class OpeningTime extends OrganizationConnectionBaseEntity {
1704
1704
  deletedAt?: Date;
1705
1705
  facility: Facility;
1706
1706
  }
1707
+ export declare class OrderNote extends OrganizationConnectionBaseEntity {
1708
+ content: string;
1709
+ creatingUserId: number;
1710
+ user: User;
1711
+ isPublic: boolean;
1712
+ deletedAt: Date;
1713
+ orderId: number;
1714
+ order: Order;
1715
+ }
1707
1716
  export declare class Order extends BondBaseEntity {
1708
1717
  orderId: string | null;
1709
1718
  price: number | null;
@@ -1728,15 +1737,6 @@ export declare class Order extends BondBaseEntity {
1728
1737
  orderNotes: OrderNote[];
1729
1738
  slots: Slot[];
1730
1739
  }
1731
- export declare class OrderNote extends OrganizationConnectionBaseEntity {
1732
- content: string;
1733
- creatingUserId: number;
1734
- user: User;
1735
- isPublic: boolean;
1736
- deletedAt: Date;
1737
- orderId: number;
1738
- order: Order;
1739
- }
1740
1740
  export declare class OrderToInvoice extends BondBaseEntity {
1741
1741
  orderId: number;
1742
1742
  invoiceId: number;
@@ -3253,41 +3253,6 @@ export declare class AddFamilyDto {
3253
3253
  parents: AddImportedCustomerDto[];
3254
3254
  children: AddImportedCustomerDto[];
3255
3255
  }
3256
- export declare enum ImportPaymentTypeEnum {
3257
- CREDIT_CARD = "card",
3258
- ACH = "ach",
3259
- CASH = "cash",
3260
- CHECK = "check",
3261
- CARD_ON_TERMINAL = "card-on-terminal",
3262
- OTHER = "other"
3263
- }
3264
- export declare class ImportedInvoiceLineDto {
3265
- invoiceID?: string;
3266
- description: string;
3267
- createdDate: string;
3268
- createdTime: string;
3269
- quantity: string;
3270
- price: string;
3271
- total: string;
3272
- customerID: string;
3273
- resourceType: string;
3274
- resourceID: string;
3275
- }
3276
- export declare class ImportedInvoiceDto {
3277
- customerId?: string;
3278
- total?: string;
3279
- amountDue?: string;
3280
- payments?: ImportedPaymentDto[];
3281
- lines: any;
3282
- }
3283
- export declare class ImportedPaymentDto {
3284
- invoiceID: string;
3285
- type: ImportPaymentTypeEnum;
3286
- description: string;
3287
- paid: string;
3288
- date: string;
3289
- time: string;
3290
- }
3291
3256
  export declare class ProductIdsDto {
3292
3257
  productIds?: number[];
3293
3258
  }
@@ -3368,6 +3333,41 @@ export declare class MatchParticipants extends BondBaseEntity {
3368
3333
  score: number | null;
3369
3334
  gameSlotId: number | null;
3370
3335
  }
3336
+ export declare enum ImportPaymentTypeEnum {
3337
+ CREDIT_CARD = "card",
3338
+ ACH = "ach",
3339
+ CASH = "cash",
3340
+ CHECK = "check",
3341
+ CARD_ON_TERMINAL = "card-on-terminal",
3342
+ OTHER = "other"
3343
+ }
3344
+ export declare class ImportedInvoiceLineDto {
3345
+ invoiceID?: string;
3346
+ description: string;
3347
+ createdDate: string;
3348
+ createdTime: string;
3349
+ quantity: string;
3350
+ price: string;
3351
+ total: string;
3352
+ customerID: string;
3353
+ resourceType: string;
3354
+ resourceID: string;
3355
+ }
3356
+ export declare class ImportedInvoiceDto {
3357
+ customerId?: string;
3358
+ total?: string;
3359
+ amountDue?: string;
3360
+ payments?: ImportedPaymentDto[];
3361
+ lines: any;
3362
+ }
3363
+ export declare class ImportedPaymentDto {
3364
+ invoiceID: string;
3365
+ type: ImportPaymentTypeEnum;
3366
+ description: string;
3367
+ paid: string;
3368
+ date: string;
3369
+ time: string;
3370
+ }
3371
3371
  export declare class Matches extends BondBaseEntity {
3372
3372
  eventId: number | null;
3373
3373
  status: number | null;
@@ -4158,9 +4158,6 @@ export declare class UserRole extends OrganizationConnectionBaseEntity {
4158
4158
  role: Role;
4159
4159
  user: User;
4160
4160
  }
4161
- export declare class CloseShiftDto {
4162
- closingCashAmount: number;
4163
- }
4164
4161
  export declare class FindShiftsByIdsDto {
4165
4162
  shiftIds: number[];
4166
4163
  }
@@ -4224,3 +4221,6 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4224
4221
  closingManager?: User;
4225
4222
  reconcilingUser?: User;
4226
4223
  }
4224
+ export declare class CloseShiftDto {
4225
+ closingCashAmount: number;
4226
+ }