@bondsports/types 0.0.75 → 0.0.78

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,226 +454,6 @@ export declare class CreateGroupPricingWithProduct {
454
454
  discountValue?: number;
455
455
  discountMethod?: DiscountMethodsEnum;
456
456
  }
457
- export declare class FindByProductIdDto {
458
- productId: number;
459
- }
460
- export declare class FindPriceOfProductDto {
461
- id: number;
462
- userId: number;
463
- resources: ResourceDto[];
464
- }
465
- export declare class FindPricesOfProductsDto {
466
- products: FindPriceOfProductDto[];
467
- answers: UserAnswersDto[];
468
- }
469
- export declare class FindPackageByResourceDto {
470
- resourceType: ResourceNameTypeEnum;
471
- resourceId: number;
472
- }
473
- export declare class FindProductsByResourceAsOrganizationDto extends FindPackageByResourceDto {
474
- organizationId: number;
475
- }
476
- export declare class CreateProductsDto {
477
- products: CreateProductDto[];
478
- addOnsData?: ProductInPackage[];
479
- addOnIds?: ExistingProductToPackageDto[];
480
- }
481
- export declare class CreatePaymentPlanDto extends PaymentPlanDto {
482
- name: string;
483
- }
484
- export declare class CreateProductDto {
485
- id?: number;
486
- organizationId: number;
487
- name: string;
488
- quantity?: number;
489
- isPublic: boolean;
490
- startDate?: Date;
491
- endDate?: Date;
492
- description?: string;
493
- resourcesType?: ResourceNameTypeEnum;
494
- resourcesIdsToApplyOn?: number[];
495
- GL?: string;
496
- prices: CreatePriceDto[];
497
- downpayment?: number;
498
- productType: ProductTypesEnum;
499
- subProductType?: string;
500
- defaultForResourceId?: number;
501
- defaultForResourceType?: ResourceNameTypeEnum;
502
- entitlementGroupsPricings?: CreateGroupPricingWithProduct[];
503
- variantTitleIds?: number[];
504
- variants?: VariantWithPrice[];
505
- variantParentId?: number;
506
- isAddon?: boolean;
507
- isArchive?: boolean;
508
- timePeriod?: AddonTimePeriodEnum;
509
- isProRated?: boolean;
510
- paymentPlan?: CreatePaymentPlanDto;
511
- isTaxInclusive?: boolean;
512
- tax?: number;
513
- sports?: number[];
514
- durationMinutes?: number;
515
- durationDays?: number;
516
- forms?: number[];
517
- isForAllCustomers?: boolean;
518
- membershipsAvailableFor?: number[];
519
- customersAvailableFor?: number[];
520
- addons?: createRentalProductAddonDto[];
521
- availabilityTimes?: createProductAvailabilityTimesDto[];
522
- }
523
- export declare class VariantWithPrice {
524
- variantIds: number[];
525
- price: CreatePriceDto[];
526
- }
527
- export declare class CreatePriceDto {
528
- id?: number;
529
- price: number;
530
- currency: CurrencyEnum;
531
- name: string;
532
- startDate?: Date;
533
- endDate?: Date;
534
- discountValue?: number;
535
- discountMethod?: DiscountMethodsEnum;
536
- isDefaultPriceForProduct?: boolean;
537
- }
538
- export declare class CreatePackageDto {
539
- parentProductId: number;
540
- productsData?: ProductInPackage[];
541
- productsIds?: ExistingProductToPackageDto[];
542
- }
543
- export declare class CreatePackageToResourceDto {
544
- resourceId: number;
545
- resourceType: ResourceNameTypeEnum;
546
- isCreateToChildProducts: boolean;
547
- productsData: ProductInPackage[];
548
- }
549
- export declare class ProductInPackage extends CreateProductDto {
550
- relationType: PackageProductsRelationTypeEnum;
551
- amountInPackage?: number;
552
- level?: ProductPackageLevelEnum;
553
- }
554
- export declare class ExistingProductToPackageDto {
555
- relationType: PackageProductsRelationTypeEnum;
556
- id: number;
557
- timePeriod?: AddonTimePeriodEnum;
558
- level?: ProductPackageLevelEnum;
559
- }
560
- export declare class ConnectProductResourceDto {
561
- productId: number;
562
- resourceType: ResourceNameTypeEnum;
563
- resourceIds: number[];
564
- }
565
- export declare class ReturnRequiredProductsDto {
566
- userId: number;
567
- productId: number;
568
- }
569
- export declare class FindByProductUserIdsDto {
570
- userId: number;
571
- organizationId: number;
572
- }
573
- export declare class AddRequiredProductsDto {
574
- productId: number;
575
- requiredProductIds: number[];
576
- }
577
- export declare class ProductsIdsDto extends PaginationQuery {
578
- productIds?: number[];
579
- includePrices?: boolean;
580
- productType?: ProductTypesEnum;
581
- includeAddons?: string;
582
- }
583
- export declare class GetByOrganizationIdDto {
584
- organizationId?: number;
585
- }
586
- export declare class GetByOrgIdOrderIdDto extends GetByOrganizationIdDto {
587
- orderId?: number;
588
- }
589
- export declare class GetProductsDto extends PaginationQuery {
590
- productIds?: string;
591
- includePrices?: boolean;
592
- productType?: string;
593
- productSubType?: string;
594
- search?: string;
595
- includeAddons?: boolean;
596
- includeArchived?: boolean;
597
- includeAllData?: boolean;
598
- resourceIds?: string;
599
- sports?: string;
600
- }
601
- export declare class GetAllVariantTitlesDto {
602
- organizationId: number;
603
- }
604
- export declare class GetAllOrganizationAddonsDto {
605
- organizationId: number;
606
- }
607
- export declare class CreateVariantTitleDto {
608
- organizationId: number;
609
- title: string;
610
- variants: string[];
611
- }
612
- export declare class UpdateVariantTitleDto {
613
- organizationId: number;
614
- titleId: number;
615
- title: string;
616
- variants: string[];
617
- }
618
- export declare class GetByCustomerIdDto extends PaginationQuery {
619
- customerId: number;
620
- }
621
- export declare class GetExtraProductDataDto {
622
- isPublic?: boolean;
623
- isGetByChildResources?: boolean;
624
- isGetEntitlePricing?: boolean;
625
- isGetAddOns?: boolean;
626
- includeResources?: boolean;
627
- includeArchived?: boolean;
628
- }
629
- export declare class GetBySessionType {
630
- sessionType: 'event' | 'segment';
631
- }
632
- export declare class CreateSubcategoryDto {
633
- productType: ProductTypesEnum;
634
- name: string;
635
- stationId?: number;
636
- ordinal?: number;
637
- }
638
- export declare class CreateSubcategoriesDto {
639
- subcategories: CreateSubcategoryDto[];
640
- }
641
- export declare class UpdateSubcategoryDto {
642
- id: number;
643
- productType?: ProductTypesEnum;
644
- name?: string;
645
- stationId?: number;
646
- ordinal?: number;
647
- }
648
- export declare class GetSubcategoryDto {
649
- stationId?: number;
650
- }
651
- export declare class SetStationSubcategoriesDto {
652
- stationId: number;
653
- subcategoryIds?: number[];
654
- categories?: string[];
655
- }
656
- export declare class createRentalProductAddonDto {
657
- productId: number;
658
- price: number;
659
- isFlatPrice: boolean;
660
- isMandatory: boolean;
661
- level: ProductPackageLevelEnum;
662
- }
663
- export declare class createProductAvailabilityTimesDto {
664
- availabilityStartDate?: string;
665
- availabilityEndDate?: string;
666
- daysOfWeek: number[];
667
- startTime: string;
668
- endTime: string;
669
- }
670
- export declare class createResourceDto {
671
- resourceId: number;
672
- resourceType: ResourceNameTypeEnum;
673
- }
674
- export declare class archiveDto {
675
- isArchive: boolean;
676
- }
677
457
  export declare class CreateUpdateVariantsDto {
678
458
  organizationId: number;
679
459
  parentProductId: number;
@@ -920,6 +700,226 @@ export declare class ProgramHighlightDto {
920
700
  type: ProgramHighlightTypeEnum;
921
701
  title: string;
922
702
  }
703
+ export declare class FindByProductIdDto {
704
+ productId: number;
705
+ }
706
+ export declare class FindPriceOfProductDto {
707
+ id: number;
708
+ userId: number;
709
+ resources: ResourceDto[];
710
+ }
711
+ export declare class FindPricesOfProductsDto {
712
+ products: FindPriceOfProductDto[];
713
+ answers: UserAnswersDto[];
714
+ }
715
+ export declare class FindPackageByResourceDto {
716
+ resourceType: ResourceNameTypeEnum;
717
+ resourceId: number;
718
+ }
719
+ export declare class FindProductsByResourceAsOrganizationDto extends FindPackageByResourceDto {
720
+ organizationId: number;
721
+ }
722
+ export declare class CreateProductsDto {
723
+ products: CreateProductDto[];
724
+ addOnsData?: ProductInPackage[];
725
+ addOnIds?: ExistingProductToPackageDto[];
726
+ }
727
+ export declare class CreatePaymentPlanDto extends PaymentPlanDto {
728
+ name: string;
729
+ }
730
+ export declare class CreateProductDto {
731
+ id?: number;
732
+ organizationId: number;
733
+ name: string;
734
+ quantity?: number;
735
+ isPublic: boolean;
736
+ startDate?: Date;
737
+ endDate?: Date;
738
+ description?: string;
739
+ resourcesType?: ResourceNameTypeEnum;
740
+ resourcesIdsToApplyOn?: number[];
741
+ GL?: string;
742
+ prices: CreatePriceDto[];
743
+ downpayment?: number;
744
+ productType: ProductTypesEnum;
745
+ subProductType?: string;
746
+ defaultForResourceId?: number;
747
+ defaultForResourceType?: ResourceNameTypeEnum;
748
+ entitlementGroupsPricings?: CreateGroupPricingWithProduct[];
749
+ variantTitleIds?: number[];
750
+ variants?: VariantWithPrice[];
751
+ variantParentId?: number;
752
+ isAddon?: boolean;
753
+ isArchive?: boolean;
754
+ timePeriod?: AddonTimePeriodEnum;
755
+ isProRated?: boolean;
756
+ paymentPlan?: CreatePaymentPlanDto;
757
+ isTaxInclusive?: boolean;
758
+ tax?: number;
759
+ sports?: number[];
760
+ durationMinutes?: number;
761
+ durationDays?: number;
762
+ forms?: number[];
763
+ isForAllCustomers?: boolean;
764
+ membershipsAvailableFor?: number[];
765
+ customersAvailableFor?: number[];
766
+ addons?: createRentalProductAddonDto[];
767
+ availabilityTimes?: createProductAvailabilityTimesDto[];
768
+ }
769
+ export declare class VariantWithPrice {
770
+ variantIds: number[];
771
+ price: CreatePriceDto[];
772
+ }
773
+ export declare class CreatePriceDto {
774
+ id?: number;
775
+ price: number;
776
+ currency: CurrencyEnum;
777
+ name: string;
778
+ startDate?: Date;
779
+ endDate?: Date;
780
+ discountValue?: number;
781
+ discountMethod?: DiscountMethodsEnum;
782
+ isDefaultPriceForProduct?: boolean;
783
+ }
784
+ export declare class CreatePackageDto {
785
+ parentProductId: number;
786
+ productsData?: ProductInPackage[];
787
+ productsIds?: ExistingProductToPackageDto[];
788
+ }
789
+ export declare class CreatePackageToResourceDto {
790
+ resourceId: number;
791
+ resourceType: ResourceNameTypeEnum;
792
+ isCreateToChildProducts: boolean;
793
+ productsData: ProductInPackage[];
794
+ }
795
+ export declare class ProductInPackage extends CreateProductDto {
796
+ relationType: PackageProductsRelationTypeEnum;
797
+ amountInPackage?: number;
798
+ level?: ProductPackageLevelEnum;
799
+ }
800
+ export declare class ExistingProductToPackageDto {
801
+ relationType: PackageProductsRelationTypeEnum;
802
+ id: number;
803
+ timePeriod?: AddonTimePeriodEnum;
804
+ level?: ProductPackageLevelEnum;
805
+ }
806
+ export declare class ConnectProductResourceDto {
807
+ productId: number;
808
+ resourceType: ResourceNameTypeEnum;
809
+ resourceIds: number[];
810
+ }
811
+ export declare class ReturnRequiredProductsDto {
812
+ userId: number;
813
+ productId: number;
814
+ }
815
+ export declare class FindByProductUserIdsDto {
816
+ userId: number;
817
+ organizationId: number;
818
+ }
819
+ export declare class AddRequiredProductsDto {
820
+ productId: number;
821
+ requiredProductIds: number[];
822
+ }
823
+ export declare class ProductsIdsDto extends PaginationQuery {
824
+ productIds?: number[];
825
+ includePrices?: boolean;
826
+ productType?: ProductTypesEnum;
827
+ includeAddons?: string;
828
+ }
829
+ export declare class GetByOrganizationIdDto {
830
+ organizationId?: number;
831
+ }
832
+ export declare class GetByOrgIdOrderIdDto extends GetByOrganizationIdDto {
833
+ orderId?: number;
834
+ }
835
+ export declare class GetProductsDto extends PaginationQuery {
836
+ productIds?: string;
837
+ includePrices?: boolean;
838
+ productType?: string;
839
+ productSubType?: string;
840
+ search?: string;
841
+ includeAddons?: boolean;
842
+ includeArchived?: boolean;
843
+ includeAllData?: boolean;
844
+ resourceIds?: string;
845
+ sports?: string;
846
+ }
847
+ export declare class GetAllVariantTitlesDto {
848
+ organizationId: number;
849
+ }
850
+ export declare class GetAllOrganizationAddonsDto {
851
+ organizationId: number;
852
+ }
853
+ export declare class CreateVariantTitleDto {
854
+ organizationId: number;
855
+ title: string;
856
+ variants: string[];
857
+ }
858
+ export declare class UpdateVariantTitleDto {
859
+ organizationId: number;
860
+ titleId: number;
861
+ title: string;
862
+ variants: string[];
863
+ }
864
+ export declare class GetByCustomerIdDto extends PaginationQuery {
865
+ customerId: number;
866
+ }
867
+ export declare class GetExtraProductDataDto {
868
+ isPublic?: boolean;
869
+ isGetByChildResources?: boolean;
870
+ isGetEntitlePricing?: boolean;
871
+ isGetAddOns?: boolean;
872
+ includeResources?: boolean;
873
+ includeArchived?: boolean;
874
+ }
875
+ export declare class GetBySessionType {
876
+ sessionType: 'event' | 'segment';
877
+ }
878
+ export declare class CreateSubcategoryDto {
879
+ productType: ProductTypesEnum;
880
+ name: string;
881
+ stationId?: number;
882
+ ordinal?: number;
883
+ }
884
+ export declare class CreateSubcategoriesDto {
885
+ subcategories: CreateSubcategoryDto[];
886
+ }
887
+ export declare class UpdateSubcategoryDto {
888
+ id: number;
889
+ productType?: ProductTypesEnum;
890
+ name?: string;
891
+ stationId?: number;
892
+ ordinal?: number;
893
+ }
894
+ export declare class GetSubcategoryDto {
895
+ stationId?: number;
896
+ }
897
+ export declare class SetStationSubcategoriesDto {
898
+ stationId: number;
899
+ subcategoryIds?: number[];
900
+ categories?: string[];
901
+ }
902
+ export declare class createRentalProductAddonDto {
903
+ productId: number;
904
+ price: number;
905
+ isFlatPrice: boolean;
906
+ isMandatory: boolean;
907
+ level: ProductPackageLevelEnum;
908
+ }
909
+ export declare class createProductAvailabilityTimesDto {
910
+ availabilityStartDate?: string;
911
+ availabilityEndDate?: string;
912
+ daysOfWeek: number[];
913
+ startTime: string;
914
+ endTime: string;
915
+ }
916
+ export declare class createResourceDto {
917
+ resourceId: number;
918
+ resourceType: ResourceNameTypeEnum;
919
+ }
920
+ export declare class archiveDto {
921
+ isArchive: boolean;
922
+ }
923
923
  export declare class PurchasePaymentDto {
924
924
  token: string;
925
925
  type: PaymentMethodTypeEnum;
@@ -2317,14 +2317,6 @@ export declare class UserAuthorizations extends BondBaseEntity {
2317
2317
  entityType: UserAuthorizationsTypeEnum;
2318
2318
  user: User;
2319
2319
  }
2320
- export declare class UserInFamilyAccount extends BondBaseEntity {
2321
- familyAccountId: number;
2322
- userId: number;
2323
- isAdmin: boolean;
2324
- user: User;
2325
- familyAccount: FamilyAccount;
2326
- deletedAt?: Date;
2327
- }
2328
2320
  export declare class UsersInGroup extends BondBaseEntity {
2329
2321
  groupId: number;
2330
2322
  userId: number;
@@ -2334,6 +2326,14 @@ export declare class VariantTitle extends OrganizationConnectionBaseEntity {
2334
2326
  name: string;
2335
2327
  variants: Variant[];
2336
2328
  }
2329
+ export declare class UserInFamilyAccount extends BondBaseEntity {
2330
+ familyAccountId: number;
2331
+ userId: number;
2332
+ isAdmin: boolean;
2333
+ user: User;
2334
+ familyAccount: FamilyAccount;
2335
+ deletedAt?: Date;
2336
+ }
2337
2337
  export declare class Variant extends OrganizationConnectionBaseEntity {
2338
2338
  name: string;
2339
2339
  variantTitleId: number;
@@ -3356,6 +3356,10 @@ export declare class ImportedReservationDto {
3356
3356
  slots?: ImportedSlotDto[];
3357
3357
  addons?: ImportedSlotProductDto[];
3358
3358
  }
3359
+ export declare class Lock extends BondBaseEntity {
3360
+ name: string;
3361
+ locked?: Date;
3362
+ }
3359
3363
  export declare class GameSlots extends BondBaseEntity {
3360
3364
  entityType: string;
3361
3365
  entityId: number;
@@ -3392,10 +3396,6 @@ export declare class TeamEvents extends BondBaseEntity {
3392
3396
  eventId: number | null;
3393
3397
  status: number | null;
3394
3398
  }
3395
- export declare class Lock extends BondBaseEntity {
3396
- name: string;
3397
- locked?: Date;
3398
- }
3399
3399
  export interface ValidatedMonthAndDay {
3400
3400
  valid: boolean;
3401
3401
  month?: number;