@bondsports/types 0.0.145 → 0.0.147

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
@@ -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;
@@ -1133,6 +1133,17 @@ export declare class Address extends BondBaseEntity {
1133
1133
  geo: any;
1134
1134
  deletedAt?: Date;
1135
1135
  }
1136
+ export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1137
+ questionnaireId: number;
1138
+ userId?: number;
1139
+ answers: Answer[];
1140
+ questionnaire: Questionnaires;
1141
+ }
1142
+ export declare class Athlete extends BondBaseEntity {
1143
+ userId: number | null;
1144
+ metadata: object | null;
1145
+ athleteSports: AthleteSports[];
1146
+ }
1136
1147
  export declare class Answer extends OrganizationConnectionBaseEntity {
1137
1148
  questionId: number;
1138
1149
  question?: Questions;
@@ -1146,17 +1157,6 @@ export declare class Answer extends OrganizationConnectionBaseEntity {
1146
1157
  metaData: any | null;
1147
1158
  questionText: string | null;
1148
1159
  }
1149
- export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1150
- questionnaireId: number;
1151
- userId?: number;
1152
- answers: Answer[];
1153
- questionnaire: Questionnaires;
1154
- }
1155
- export declare class Athlete extends BondBaseEntity {
1156
- userId: number | null;
1157
- metadata: object | null;
1158
- athleteSports: AthleteSports[];
1159
- }
1160
1160
  export declare class AthleteSports extends BondBaseEntity {
1161
1161
  athleteId: number | null;
1162
1162
  sports: number | null;
@@ -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;
@@ -3458,27 +3458,6 @@ 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
- }
3482
3461
  export declare class CreateMonitorConfigDto {
3483
3462
  facilityId: number;
3484
3463
  name: string;
@@ -3490,13 +3469,6 @@ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3490
3469
  code: string;
3491
3470
  config?: any;
3492
3471
  }
3493
- export declare class NotifyTracker extends BondBaseEntity {
3494
- userId: number;
3495
- organizationId: number;
3496
- notifyMetadata?: any;
3497
- notfiyMethodtype: NotifyMethodEnum;
3498
- destination: string;
3499
- }
3500
3472
  export declare class ByOrganizationIdDto {
3501
3473
  organizationId: number;
3502
3474
  }
@@ -3594,6 +3566,13 @@ export interface Duration {
3594
3566
  startDate: string;
3595
3567
  endDate: string;
3596
3568
  }
3569
+ export declare class NotifyTracker extends BondBaseEntity {
3570
+ userId: number;
3571
+ organizationId: number;
3572
+ notifyMetadata?: any;
3573
+ notfiyMethodtype: NotifyMethodEnum;
3574
+ destination: string;
3575
+ }
3597
3576
  export declare class CustomerIdDto {
3598
3577
  customerId: number;
3599
3578
  }
@@ -4131,6 +4110,26 @@ export declare class TimeSlotsDto {
4131
4110
  export declare class SlotsIdsDto {
4132
4111
  slotsIds: number[];
4133
4112
  }
4113
+ export declare class Addon extends OrganizationConnectionBaseEntity {
4114
+ parentId: number;
4115
+ parentType: AddonParentTypeEnum;
4116
+ productId: number;
4117
+ product?: Product;
4118
+ quantity: number;
4119
+ unitPrice: number;
4120
+ totalPrice: number;
4121
+ approvalStatus: ReservationStatusEnum;
4122
+ paymentStatus: ReservationPaymentStatusEnum;
4123
+ level?: ProductPackageLevelEnum;
4124
+ resourceId?: number;
4125
+ resource?: Resource;
4126
+ invoiceId?: number;
4127
+ invoice?: Invoice;
4128
+ productUserId?: number;
4129
+ productUser?: ProductsUsers;
4130
+ previousProductUsersIds?: number[];
4131
+ previousProductUsers?: ProductsUsers[];
4132
+ }
4134
4133
  declare class AnswerDto {
4135
4134
  questionId: number;
4136
4135
  value: any;
@@ -4168,26 +4167,6 @@ export declare class BookingV1Dto {
4168
4167
  cashPayment: boolean;
4169
4168
  requestOnly: boolean;
4170
4169
  }
4171
- export declare class Addon extends OrganizationConnectionBaseEntity {
4172
- parentId: number;
4173
- parentType: AddonParentTypeEnum;
4174
- productId: number;
4175
- product?: Product;
4176
- quantity: number;
4177
- unitPrice: number;
4178
- totalPrice: number;
4179
- approvalStatus: ReservationStatusEnum;
4180
- paymentStatus: ReservationPaymentStatusEnum;
4181
- level?: ProductPackageLevelEnum;
4182
- resourceId?: number;
4183
- resource?: Resource;
4184
- invoiceId?: number;
4185
- invoice?: Invoice;
4186
- productUserId?: number;
4187
- productUser?: ProductsUsers;
4188
- previousProductUsersIds?: number[];
4189
- previousProductUsers?: ProductsUsers[];
4190
- }
4191
4170
  export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4192
4171
  deletedAt?: Date;
4193
4172
  reservationId: number;
@@ -4648,3 +4627,24 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4648
4627
  closingManager?: User;
4649
4628
  reconcilingUser?: User;
4650
4629
  }
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
+ }