@bondsports/types 0.0.144 → 0.0.145

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
@@ -9,6 +9,17 @@ export declare class BasicActivityTimesDto {
9
9
  availabilityStartDate?: string;
10
10
  availabilityEndDate?: string;
11
11
  }
12
+ export declare class QuestionAnswersDto {
13
+ questionId: number;
14
+ value: any;
15
+ }
16
+ export declare class UserAnswersDto {
17
+ userId: number;
18
+ answers: QuestionAnswersDto[];
19
+ }
20
+ export declare class GetByQuestionnaireIdsDto {
21
+ questionnaireIds: string;
22
+ }
12
23
  export declare class FindBookingTypeSettingDto {
13
24
  organizationId: number;
14
25
  facilityId: number;
@@ -271,17 +282,6 @@ export declare class PaginationRangeQuery {
271
282
  endPage: number;
272
283
  itemsPerPage: number;
273
284
  }
274
- export declare class QuestionAnswersDto {
275
- questionId: number;
276
- value: any;
277
- }
278
- export declare class UserAnswersDto {
279
- userId: number;
280
- answers: QuestionAnswersDto[];
281
- }
282
- export declare class GetByQuestionnaireIdsDto {
283
- questionnaireIds: string;
284
- }
285
285
  export declare class FindGlCodeByOrganizationIdDto {
286
286
  organizationId: number;
287
287
  }
@@ -684,6 +684,24 @@ export declare class createResourceDto {
684
684
  export declare class archiveDto {
685
685
  isArchive: boolean;
686
686
  }
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
+ }
687
705
  export declare class FindProgramSeasonsByProgramIdDto {
688
706
  programId: number;
689
707
  }
@@ -874,50 +892,6 @@ export declare class MoveParticipantDto {
874
892
  resourceId: number;
875
893
  invoiceId: number;
876
894
  }
877
- export declare class FindProgramsByOrganizationIdDto {
878
- organizationId: number;
879
- programType?: ProgramTypesEnum;
880
- }
881
- export declare class FindProgramByIdDto {
882
- programId: number;
883
- }
884
- export declare class FindProgramByOrgIdAndIdDto {
885
- programId: number;
886
- organizationId: number;
887
- }
888
- export declare class BaseProgramDto {
889
- type: ProgramTypesEnum;
890
- name: string;
891
- sport: SportsEnum;
892
- minAge: string;
893
- maxAge: string;
894
- gender: GenderEnum;
895
- level?: LevelOfPlayEnum[];
896
- description?: string;
897
- GL?: string;
898
- status: PublishingStatusEnum;
899
- organizationId: number;
900
- userCreatorId: number;
901
- highlights: ProgramHighlights[];
902
- longDescription?: string;
903
- requiredProductIds: number[];
904
- }
905
- export declare class CreateProgramDto extends BaseProgramDto {
906
- }
907
- export declare class UpdateProgramDto extends BaseProgramDto {
908
- programId: number;
909
- mainMediaId: number;
910
- }
911
- export declare class UpdateProgramStatusDto {
912
- programId: number;
913
- status: PublishingStatusEnum;
914
- }
915
- export declare class ProgramHighlightDto {
916
- data: string;
917
- ordinal: number;
918
- type: ProgramHighlightTypeEnum;
919
- title: string;
920
- }
921
895
  export declare class PurchasePaymentDto {
922
896
  token: string;
923
897
  type: PaymentMethodTypeEnum;
@@ -991,6 +965,50 @@ export declare class PartialPaymentAsUserDto {
991
965
  paymentMethodData: any;
992
966
  platform?: PlatformsEnum;
993
967
  }
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
+ }
994
1012
  export declare class CreateResourceGroupDto {
995
1013
  name: string;
996
1014
  parentSlotId: number;
@@ -1059,24 +1077,6 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
1059
1077
  types?: string;
1060
1078
  resourcesIds?: string;
1061
1079
  }
1062
- export declare class CreateUpdateVariantsDto {
1063
- organizationId: number;
1064
- parentProductId: number;
1065
- variantTitles: VariantTitleDto[];
1066
- variants: VariantDto[];
1067
- }
1068
- export declare class VariantTitleDto {
1069
- titleName: string;
1070
- titleId: number;
1071
- }
1072
- export declare class VariantDto {
1073
- name: string;
1074
- price: number;
1075
- variantId: number;
1076
- currency: CurrencyEnum;
1077
- startDate: Date;
1078
- endDate: Date;
1079
- }
1080
1080
  export declare class StripeCustomerIdDto {
1081
1081
  userId: number;
1082
1082
  }
@@ -1087,6 +1087,15 @@ export declare class AddACHTokenToCustomerDto {
1087
1087
  publicToken: string;
1088
1088
  accountId: string;
1089
1089
  }
1090
+ export declare class FindByUserIdDto {
1091
+ userId: number;
1092
+ }
1093
+ export declare class FindByFamilyAccountIdDto {
1094
+ familyAccountId?: number;
1095
+ }
1096
+ export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1097
+ organizationId: number;
1098
+ }
1090
1099
  export declare class ActivityLogRecord extends BondBaseEntity {
1091
1100
  entityType: ResourceNameTypeEnum;
1092
1101
  entityId: number;
@@ -1143,15 +1152,6 @@ export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1143
1152
  answers: Answer[];
1144
1153
  questionnaire: Questionnaires;
1145
1154
  }
1146
- export declare class FindByUserIdDto {
1147
- userId: number;
1148
- }
1149
- export declare class FindByFamilyAccountIdDto {
1150
- familyAccountId?: number;
1151
- }
1152
- export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1153
- organizationId: number;
1154
- }
1155
1155
  export declare class Athlete extends BondBaseEntity {
1156
1156
  userId: number | null;
1157
1157
  metadata: object | null;
@@ -2072,10 +2072,6 @@ export declare class PurchasedResource extends OrganizationConnectionBaseEntity
2072
2072
  product?: Product;
2073
2073
  event?: Event;
2074
2074
  }
2075
- export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2076
- title: string | null;
2077
- answerTitle: AnswerTitle;
2078
- }
2079
2075
  export declare class Questions extends BondBaseEntity {
2080
2076
  questionType: string | null;
2081
2077
  ordinal: number | null;
@@ -2095,6 +2091,10 @@ export declare class RefundReason extends OrganizationConnectionBaseEntity {
2095
2091
  ordinal: number;
2096
2092
  deletedAt: Date;
2097
2093
  }
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;
@@ -2354,14 +2354,6 @@ export declare class UserAuthorizations extends BondBaseEntity {
2354
2354
  entityType: UserAuthorizationsTypeEnum;
2355
2355
  user: User;
2356
2356
  }
2357
- export declare class UserPaymentMethod extends BondBaseEntity {
2358
- userId: number;
2359
- failCount: number;
2360
- isDefault?: boolean;
2361
- paymentMethodType: PaymentMethodTypeEnum;
2362
- paymentMethodId: string;
2363
- nextAllowedChargeDate?: Date;
2364
- }
2365
2357
  export declare class UserInFamilyAccount extends BondBaseEntity {
2366
2358
  familyAccountId: number;
2367
2359
  userId: number;
@@ -2370,6 +2362,14 @@ export declare class UserInFamilyAccount extends BondBaseEntity {
2370
2362
  familyAccount: FamilyAccount;
2371
2363
  deletedAt?: Date;
2372
2364
  }
2365
+ export declare class UserPaymentMethod extends BondBaseEntity {
2366
+ userId: number;
2367
+ failCount: number;
2368
+ isDefault?: boolean;
2369
+ paymentMethodType: PaymentMethodTypeEnum;
2370
+ paymentMethodId: string;
2371
+ nextAllowedChargeDate?: Date;
2372
+ }
2373
2373
  export declare class UsersInGroup extends BondBaseEntity {
2374
2374
  groupId: number;
2375
2375
  userId: number;
@@ -3297,11 +3297,6 @@ 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;
3305
3300
  export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3306
3301
  name?: string;
3307
3302
  genderStr?: string;
@@ -3418,6 +3413,11 @@ export declare class ImportedReservationDto {
3418
3413
  slots?: ImportedSlotDto[];
3419
3414
  addons?: ImportedSlotProductDto[];
3420
3415
  }
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;
@@ -3458,6 +3458,27 @@ export declare class Lock extends BondBaseEntity {
3458
3458
  name: string;
3459
3459
  locked?: Date;
3460
3460
  }
3461
+ export interface ValidatedMonthAndDay {
3462
+ valid: boolean;
3463
+ month?: number;
3464
+ day?: number;
3465
+ }
3466
+ export interface ValidationReason {
3467
+ valid: boolean;
3468
+ reason?: string;
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
+ }
3461
3482
  export declare class CreateMonitorConfigDto {
3462
3483
  facilityId: number;
3463
3484
  name: string;
@@ -4627,24 +4648,3 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4627
4648
  closingManager?: User;
4628
4649
  reconcilingUser?: User;
4629
4650
  }
4630
- export interface ValidatedMonthAndDay {
4631
- valid: boolean;
4632
- month?: number;
4633
- day?: number;
4634
- }
4635
- export interface ValidationReason {
4636
- valid: boolean;
4637
- reason?: string;
4638
- }
4639
- export interface PaymentStatus {
4640
- parentId: number;
4641
- paymentStatus: ReservationPaymentStatusEnum;
4642
- approvalStatus?: ReservationStatusEnum;
4643
- id?: number;
4644
- }
4645
- export interface PaymentStatusesDict {
4646
- [id: number]: PaymentStatus[];
4647
- }
4648
- export interface PaymentStatusDict {
4649
- [id: number]: ReservationPaymentStatusEnum;
4650
- }