@bondsports/types 0.0.145 → 0.0.146

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
@@ -463,6 +463,24 @@ export declare class CreateGroupPricingWithProduct {
463
463
  discountValue?: number;
464
464
  discountMethod?: DiscountMethodsEnum;
465
465
  }
466
+ export declare class CreateUpdateVariantsDto {
467
+ organizationId: number;
468
+ parentProductId: number;
469
+ variantTitles: VariantTitleDto[];
470
+ variants: VariantDto[];
471
+ }
472
+ export declare class VariantTitleDto {
473
+ titleName: string;
474
+ titleId: number;
475
+ }
476
+ export declare class VariantDto {
477
+ name: string;
478
+ price: number;
479
+ variantId: number;
480
+ currency: CurrencyEnum;
481
+ startDate: Date;
482
+ endDate: Date;
483
+ }
466
484
  export declare class FindByProductIdDto {
467
485
  productId: number;
468
486
  }
@@ -684,24 +702,6 @@ export declare class createResourceDto {
684
702
  export declare class archiveDto {
685
703
  isArchive: boolean;
686
704
  }
687
- export declare class CreateUpdateVariantsDto {
688
- organizationId: number;
689
- parentProductId: number;
690
- variantTitles: VariantTitleDto[];
691
- variants: VariantDto[];
692
- }
693
- export declare class VariantTitleDto {
694
- titleName: string;
695
- titleId: number;
696
- }
697
- export declare class VariantDto {
698
- name: string;
699
- price: number;
700
- variantId: number;
701
- currency: CurrencyEnum;
702
- startDate: Date;
703
- endDate: Date;
704
- }
705
705
  export declare class FindProgramSeasonsByProgramIdDto {
706
706
  programId: number;
707
707
  }
@@ -892,6 +892,50 @@ export declare class MoveParticipantDto {
892
892
  resourceId: number;
893
893
  invoiceId: number;
894
894
  }
895
+ export declare class FindProgramsByOrganizationIdDto {
896
+ organizationId: number;
897
+ programType?: ProgramTypesEnum;
898
+ }
899
+ export declare class FindProgramByIdDto {
900
+ programId: number;
901
+ }
902
+ export declare class FindProgramByOrgIdAndIdDto {
903
+ programId: number;
904
+ organizationId: number;
905
+ }
906
+ export declare class BaseProgramDto {
907
+ type: ProgramTypesEnum;
908
+ name: string;
909
+ sport: SportsEnum;
910
+ minAge: string;
911
+ maxAge: string;
912
+ gender: GenderEnum;
913
+ level?: LevelOfPlayEnum[];
914
+ description?: string;
915
+ GL?: string;
916
+ status: PublishingStatusEnum;
917
+ organizationId: number;
918
+ userCreatorId: number;
919
+ highlights: ProgramHighlights[];
920
+ longDescription?: string;
921
+ requiredProductIds: number[];
922
+ }
923
+ export declare class CreateProgramDto extends BaseProgramDto {
924
+ }
925
+ export declare class UpdateProgramDto extends BaseProgramDto {
926
+ programId: number;
927
+ mainMediaId: number;
928
+ }
929
+ export declare class UpdateProgramStatusDto {
930
+ programId: number;
931
+ status: PublishingStatusEnum;
932
+ }
933
+ export declare class ProgramHighlightDto {
934
+ data: string;
935
+ ordinal: number;
936
+ type: ProgramHighlightTypeEnum;
937
+ title: string;
938
+ }
895
939
  export declare class PurchasePaymentDto {
896
940
  token: string;
897
941
  type: PaymentMethodTypeEnum;
@@ -965,50 +1009,6 @@ export declare class PartialPaymentAsUserDto {
965
1009
  paymentMethodData: any;
966
1010
  platform?: PlatformsEnum;
967
1011
  }
968
- export declare class FindProgramsByOrganizationIdDto {
969
- organizationId: number;
970
- programType?: ProgramTypesEnum;
971
- }
972
- export declare class FindProgramByIdDto {
973
- programId: number;
974
- }
975
- export declare class FindProgramByOrgIdAndIdDto {
976
- programId: number;
977
- organizationId: number;
978
- }
979
- export declare class BaseProgramDto {
980
- type: ProgramTypesEnum;
981
- name: string;
982
- sport: SportsEnum;
983
- minAge: string;
984
- maxAge: string;
985
- gender: GenderEnum;
986
- level?: LevelOfPlayEnum[];
987
- description?: string;
988
- GL?: string;
989
- status: PublishingStatusEnum;
990
- organizationId: number;
991
- userCreatorId: number;
992
- highlights: ProgramHighlights[];
993
- longDescription?: string;
994
- requiredProductIds: number[];
995
- }
996
- export declare class CreateProgramDto extends BaseProgramDto {
997
- }
998
- export declare class UpdateProgramDto extends BaseProgramDto {
999
- programId: number;
1000
- mainMediaId: number;
1001
- }
1002
- export declare class UpdateProgramStatusDto {
1003
- programId: number;
1004
- status: PublishingStatusEnum;
1005
- }
1006
- export declare class ProgramHighlightDto {
1007
- data: string;
1008
- ordinal: number;
1009
- type: ProgramHighlightTypeEnum;
1010
- title: string;
1011
- }
1012
1012
  export declare class CreateResourceGroupDto {
1013
1013
  name: string;
1014
1014
  parentSlotId: number;
@@ -1580,6 +1580,22 @@ export declare class LineItemHistory extends BondBaseEntity {
1580
1580
  payment: Payment;
1581
1581
  lineItem: LineItems;
1582
1582
  }
1583
+ export declare class LinkedAccounts extends BondBaseEntity {
1584
+ id: number;
1585
+ provider: string;
1586
+ providerId: string | null;
1587
+ parentId: number | null;
1588
+ parentType: string | null;
1589
+ status: number | null;
1590
+ token: string | null;
1591
+ refreshToken: string | null;
1592
+ tokenCreatedAt: Date | null;
1593
+ tokenValidUpTo: Date | null;
1594
+ createdAt: Date;
1595
+ updatedAt: Date;
1596
+ user: User;
1597
+ userId: number | null;
1598
+ }
1583
1599
  export declare class LineItems extends BondBaseEntity {
1584
1600
  constructor();
1585
1601
  defineIsReverted(): void;
@@ -1635,22 +1651,6 @@ export declare class LineItems extends BondBaseEntity {
1635
1651
  displayUnitPrice?: number;
1636
1652
  displayQuantity?: number;
1637
1653
  }
1638
- export declare class LinkedAccounts extends BondBaseEntity {
1639
- id: number;
1640
- provider: string;
1641
- providerId: string | null;
1642
- parentId: number | null;
1643
- parentType: string | null;
1644
- status: number | null;
1645
- token: string | null;
1646
- refreshToken: string | null;
1647
- tokenCreatedAt: Date | null;
1648
- tokenValidUpTo: Date | null;
1649
- createdAt: Date;
1650
- updatedAt: Date;
1651
- user: User;
1652
- userId: number | null;
1653
- }
1654
1654
  export declare class Media extends BondBaseEntity {
1655
1655
  url: string;
1656
1656
  name: string | null;
@@ -1995,6 +1995,28 @@ export declare class ProgramHighlights extends BondBaseEntity {
1995
1995
  program: Program;
1996
1996
  deletedAt?: Date;
1997
1997
  }
1998
+ export declare class PurchasedResource extends OrganizationConnectionBaseEntity {
1999
+ productUserId: number;
2000
+ resourceId: number;
2001
+ resourceType: ResourceNameTypeEnum;
2002
+ status: PurchasedResourceStatusEnum;
2003
+ startDate?: string;
2004
+ startTime?: string;
2005
+ endDate?: string;
2006
+ endTime?: string;
2007
+ productUser?: ProductsUsers;
2008
+ lineItem?: LineItems;
2009
+ eventAttendee?: EventAttendee;
2010
+ seasonAttendee?: SeasonAttendee;
2011
+ leagueAttendee?: SeasonPool;
2012
+ membership?: Membership;
2013
+ program?: Program;
2014
+ programSeason?: ProgramSeason;
2015
+ leagueSeason?: LeagueSeason;
2016
+ space?: Resource;
2017
+ product?: Product;
2018
+ event?: Event;
2019
+ }
1998
2020
  export declare class ProgramSeason extends BondBaseEntity {
1999
2021
  programId: number;
2000
2022
  name: string;
@@ -2050,28 +2072,6 @@ export declare class ProgramSeason extends BondBaseEntity {
2050
2072
  facility: Facility;
2051
2073
  purchasedResources: PurchasedResource[];
2052
2074
  }
2053
- export declare class PurchasedResource extends OrganizationConnectionBaseEntity {
2054
- productUserId: number;
2055
- resourceId: number;
2056
- resourceType: ResourceNameTypeEnum;
2057
- status: PurchasedResourceStatusEnum;
2058
- startDate?: string;
2059
- startTime?: string;
2060
- endDate?: string;
2061
- endTime?: string;
2062
- productUser?: ProductsUsers;
2063
- lineItem?: LineItems;
2064
- eventAttendee?: EventAttendee;
2065
- seasonAttendee?: SeasonAttendee;
2066
- leagueAttendee?: SeasonPool;
2067
- membership?: Membership;
2068
- program?: Program;
2069
- programSeason?: ProgramSeason;
2070
- leagueSeason?: LeagueSeason;
2071
- space?: Resource;
2072
- product?: Product;
2073
- event?: Event;
2074
- }
2075
2075
  export declare class Questions extends BondBaseEntity {
2076
2076
  questionType: string | null;
2077
2077
  ordinal: number | null;
@@ -2086,15 +2086,15 @@ export declare class Questions extends BondBaseEntity {
2086
2086
  ownerId: number | null;
2087
2087
  questionnaireId: number | null;
2088
2088
  }
2089
+ export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2090
+ title: string | null;
2091
+ answerTitle: AnswerTitle;
2092
+ }
2089
2093
  export declare class RefundReason extends OrganizationConnectionBaseEntity {
2090
2094
  reason: string;
2091
2095
  ordinal: number;
2092
2096
  deletedAt: Date;
2093
2097
  }
2094
- export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2095
- title: string | null;
2096
- answerTitle: AnswerTitle;
2097
- }
2098
2098
  export declare class RegistrationConstraint extends OrganizationConnectionBaseEntity {
2099
2099
  resourceType: ResourceNameTypeEnum;
2100
2100
  resourceId: number;
@@ -3297,6 +3297,11 @@ export interface IReservationCreatorData {
3297
3297
  endDate: string;
3298
3298
  sportId: number;
3299
3299
  }
3300
+ export declare class ColumnNumericTransformer {
3301
+ to(data: number): number;
3302
+ from(data: string): number;
3303
+ }
3304
+ export declare function convertToNumber(data: string): number;
3300
3305
  export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3301
3306
  name?: string;
3302
3307
  genderStr?: string;
@@ -3413,11 +3418,6 @@ export declare class ImportedReservationDto {
3413
3418
  slots?: ImportedSlotDto[];
3414
3419
  addons?: ImportedSlotProductDto[];
3415
3420
  }
3416
- export declare class ColumnNumericTransformer {
3417
- to(data: number): number;
3418
- from(data: string): number;
3419
- }
3420
- export declare function convertToNumber(data: string): number;
3421
3421
  export declare class GameSlots extends BondBaseEntity {
3422
3422
  entityType: string;
3423
3423
  entityId: number;
@@ -3467,18 +3467,6 @@ export interface ValidationReason {
3467
3467
  valid: boolean;
3468
3468
  reason?: string;
3469
3469
  }
3470
- export interface PaymentStatus {
3471
- parentId: number;
3472
- paymentStatus: ReservationPaymentStatusEnum;
3473
- approvalStatus?: ReservationStatusEnum;
3474
- id?: number;
3475
- }
3476
- export interface PaymentStatusesDict {
3477
- [id: number]: PaymentStatus[];
3478
- }
3479
- export interface PaymentStatusDict {
3480
- [id: number]: ReservationPaymentStatusEnum;
3481
- }
3482
3470
  export declare class CreateMonitorConfigDto {
3483
3471
  facilityId: number;
3484
3472
  name: string;
@@ -3570,6 +3558,18 @@ export declare class Organization extends BondBaseEntity {
3570
3558
  brandings: OrganizationBranding[];
3571
3559
  brandingsV2?: OrganizationBranding[];
3572
3560
  }
3561
+ export interface PaymentStatus {
3562
+ parentId: number;
3563
+ paymentStatus: ReservationPaymentStatusEnum;
3564
+ approvalStatus?: ReservationStatusEnum;
3565
+ id?: number;
3566
+ }
3567
+ export interface PaymentStatusesDict {
3568
+ [id: number]: PaymentStatus[];
3569
+ }
3570
+ export interface PaymentStatusDict {
3571
+ [id: number]: ReservationPaymentStatusEnum;
3572
+ }
3573
3573
  export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3574
3574
  key?: string;
3575
3575
  vaule?: string;