@bondsports/types 0.0.120 → 0.0.122

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,17 +9,6 @@ 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
- }
23
12
  export declare class FindBookingTypeSettingDto {
24
13
  organizationId: number;
25
14
  facilityId: number;
@@ -291,6 +280,17 @@ export declare class GetGlCodeDto {
291
280
  createdAt: Date;
292
281
  updatedAt: Date;
293
282
  }
283
+ export declare class QuestionAnswersDto {
284
+ questionId: number;
285
+ value: any;
286
+ }
287
+ export declare class UserAnswersDto {
288
+ userId: number;
289
+ answers: QuestionAnswersDto[];
290
+ }
291
+ export declare class GetByQuestionnaireIdsDto {
292
+ questionnaireIds: string;
293
+ }
294
294
  export declare class FindByProgramSeasonIdDto {
295
295
  seasonId: number;
296
296
  }
@@ -701,50 +701,6 @@ export declare class VariantDto {
701
701
  startDate: Date;
702
702
  endDate: Date;
703
703
  }
704
- export declare class FindProgramsByOrganizationIdDto {
705
- organizationId: number;
706
- programType?: ProgramTypesEnum;
707
- }
708
- export declare class FindProgramByIdDto {
709
- programId: number;
710
- }
711
- export declare class FindProgramByOrgIdAndIdDto {
712
- programId: number;
713
- organizationId: number;
714
- }
715
- export declare class BaseProgramDto {
716
- type: ProgramTypesEnum;
717
- name: string;
718
- sport: SportsEnum;
719
- minAge: string;
720
- maxAge: string;
721
- gender: GenderEnum;
722
- level?: LevelOfPlayEnum[];
723
- description?: string;
724
- GL?: string;
725
- status: PublishingStatusEnum;
726
- organizationId: number;
727
- userCreatorId: number;
728
- highlights: ProgramHighlights[];
729
- longDescription?: string;
730
- requiredProductIds: number[];
731
- }
732
- export declare class CreateProgramDto extends BaseProgramDto {
733
- }
734
- export declare class UpdateProgramDto extends BaseProgramDto {
735
- programId: number;
736
- mainMediaId: number;
737
- }
738
- export declare class UpdateProgramStatusDto {
739
- programId: number;
740
- status: PublishingStatusEnum;
741
- }
742
- export declare class ProgramHighlightDto {
743
- data: string;
744
- ordinal: number;
745
- type: ProgramHighlightTypeEnum;
746
- title: string;
747
- }
748
704
  export declare class FindProgramSeasonsByProgramIdDto {
749
705
  programId: number;
750
706
  }
@@ -932,6 +888,50 @@ export declare class MoveParticipantDto {
932
888
  resourceId: number;
933
889
  invoiceId: number;
934
890
  }
891
+ export declare class FindProgramsByOrganizationIdDto {
892
+ organizationId: number;
893
+ programType?: ProgramTypesEnum;
894
+ }
895
+ export declare class FindProgramByIdDto {
896
+ programId: number;
897
+ }
898
+ export declare class FindProgramByOrgIdAndIdDto {
899
+ programId: number;
900
+ organizationId: number;
901
+ }
902
+ export declare class BaseProgramDto {
903
+ type: ProgramTypesEnum;
904
+ name: string;
905
+ sport: SportsEnum;
906
+ minAge: string;
907
+ maxAge: string;
908
+ gender: GenderEnum;
909
+ level?: LevelOfPlayEnum[];
910
+ description?: string;
911
+ GL?: string;
912
+ status: PublishingStatusEnum;
913
+ organizationId: number;
914
+ userCreatorId: number;
915
+ highlights: ProgramHighlights[];
916
+ longDescription?: string;
917
+ requiredProductIds: number[];
918
+ }
919
+ export declare class CreateProgramDto extends BaseProgramDto {
920
+ }
921
+ export declare class UpdateProgramDto extends BaseProgramDto {
922
+ programId: number;
923
+ mainMediaId: number;
924
+ }
925
+ export declare class UpdateProgramStatusDto {
926
+ programId: number;
927
+ status: PublishingStatusEnum;
928
+ }
929
+ export declare class ProgramHighlightDto {
930
+ data: string;
931
+ ordinal: number;
932
+ type: ProgramHighlightTypeEnum;
933
+ title: string;
934
+ }
935
935
  export declare class PurchasePaymentDto {
936
936
  token: string;
937
937
  type: PaymentMethodTypeEnum;
@@ -1017,6 +1017,16 @@ export declare class ResourceDto {
1017
1017
  type: ResourceNameTypeEnum;
1018
1018
  id: number;
1019
1019
  }
1020
+ export declare class StripeCustomerIdDto {
1021
+ userId: number;
1022
+ }
1023
+ export declare class StripeCustomerPaymentMathodDto extends StripeCustomerIdDto {
1024
+ paymentMethodId: string;
1025
+ }
1026
+ export declare class AddACHTokenToCustomerDto {
1027
+ publicToken: string;
1028
+ accountId: string;
1029
+ }
1020
1030
  export declare class SpaceByIdDto {
1021
1031
  spaceId: number;
1022
1032
  }
@@ -1073,16 +1083,6 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
1073
1083
  types?: string;
1074
1084
  resourcesIds?: string;
1075
1085
  }
1076
- export declare class StripeCustomerIdDto {
1077
- userId: number;
1078
- }
1079
- export declare class StripeCustomerPaymentMathodDto extends StripeCustomerIdDto {
1080
- paymentMethodId: string;
1081
- }
1082
- export declare class AddACHTokenToCustomerDto {
1083
- publicToken: string;
1084
- accountId: string;
1085
- }
1086
1086
  export declare class FindByUserIdDto {
1087
1087
  userId: number;
1088
1088
  }
@@ -1576,6 +1576,22 @@ export declare class LineItemHistory extends BondBaseEntity {
1576
1576
  payment: Payment;
1577
1577
  lineItem: LineItems;
1578
1578
  }
1579
+ export declare class LinkedAccounts extends BondBaseEntity {
1580
+ id: number;
1581
+ provider: string;
1582
+ providerId: string | null;
1583
+ parentId: number | null;
1584
+ parentType: string | null;
1585
+ status: number | null;
1586
+ token: string | null;
1587
+ refreshToken: string | null;
1588
+ tokenCreatedAt: Date | null;
1589
+ tokenValidUpTo: Date | null;
1590
+ createdAt: Date;
1591
+ updatedAt: Date;
1592
+ user: User;
1593
+ userId: number | null;
1594
+ }
1579
1595
  export declare class LineItems extends BondBaseEntity {
1580
1596
  constructor();
1581
1597
  defineIsReverted(): void;
@@ -1631,22 +1647,6 @@ export declare class LineItems extends BondBaseEntity {
1631
1647
  displayUnitPrice?: number;
1632
1648
  displayQuantity?: number;
1633
1649
  }
1634
- export declare class LinkedAccounts extends BondBaseEntity {
1635
- id: number;
1636
- provider: string;
1637
- providerId: string | null;
1638
- parentId: number | null;
1639
- parentType: string | null;
1640
- status: number | null;
1641
- token: string | null;
1642
- refreshToken: string | null;
1643
- tokenCreatedAt: Date | null;
1644
- tokenValidUpTo: Date | null;
1645
- createdAt: Date;
1646
- updatedAt: Date;
1647
- user: User;
1648
- userId: number | null;
1649
- }
1650
1650
  export declare class Media extends BondBaseEntity {
1651
1651
  url: string;
1652
1652
  name: string | null;
@@ -1827,6 +1827,23 @@ export declare class PaymentV1 extends BondBaseEntity {
1827
1827
  installmentId: number | null;
1828
1828
  invoiceId: string | null;
1829
1829
  }
1830
+ export declare class Price extends OrganizationConnectionBaseEntity {
1831
+ productId: number;
1832
+ product: Product;
1833
+ name: string | null;
1834
+ price: number;
1835
+ currency: CurrencyEnum;
1836
+ paymentProcessorId: number | null;
1837
+ startDate: Date;
1838
+ endDate: Date;
1839
+ groupId?: number;
1840
+ groupName?: string;
1841
+ originalPrice?: number;
1842
+ deletedAt?: Date;
1843
+ discountMethod?: DiscountMethodsEnum;
1844
+ discountValue?: number;
1845
+ taxIncludedPrice?: number;
1846
+ }
1830
1847
  export declare class Product extends OrganizationConnectionBaseEntity {
1831
1848
  name: string;
1832
1849
  quantity: number;
@@ -1877,23 +1894,6 @@ export declare class Product extends OrganizationConnectionBaseEntity {
1877
1894
  activityTimes: ActivityTimes[];
1878
1895
  purchasedResources: PurchasedResource[];
1879
1896
  }
1880
- export declare class Price extends OrganizationConnectionBaseEntity {
1881
- productId: number;
1882
- product: Product;
1883
- name: string | null;
1884
- price: number;
1885
- currency: CurrencyEnum;
1886
- paymentProcessorId: number | null;
1887
- startDate: Date;
1888
- endDate: Date;
1889
- groupId?: number;
1890
- groupName?: string;
1891
- originalPrice?: number;
1892
- deletedAt?: Date;
1893
- discountMethod?: DiscountMethodsEnum;
1894
- discountValue?: number;
1895
- taxIncludedPrice?: number;
1896
- }
1897
1897
  export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1898
1898
  parentProductId: number;
1899
1899
  childProductId: number;
@@ -2068,6 +2068,10 @@ export declare class PurchasedResource extends OrganizationConnectionBaseEntity
2068
2068
  product?: Product;
2069
2069
  event?: Event;
2070
2070
  }
2071
+ export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2072
+ title: string | null;
2073
+ answerTitle: AnswerTitle;
2074
+ }
2071
2075
  export declare class Questions extends BondBaseEntity {
2072
2076
  questionType: string | null;
2073
2077
  ordinal: number | null;
@@ -2082,10 +2086,6 @@ export declare class Questions extends BondBaseEntity {
2082
2086
  ownerId: number | null;
2083
2087
  questionnaireId: number | null;
2084
2088
  }
2085
- export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2086
- title: string | null;
2087
- answerTitle: AnswerTitle;
2088
- }
2089
2089
  export declare class RefundReason extends OrganizationConnectionBaseEntity {
2090
2090
  reason: string;
2091
2091
  ordinal: number;
@@ -2102,34 +2102,6 @@ export declare class RegistrationConstraint extends OrganizationConnectionBaseEn
2102
2102
  closeTime?: string;
2103
2103
  deletedAt?: Date;
2104
2104
  }
2105
- export declare class Resource extends OrganizationConnectionBaseEntity {
2106
- name: string;
2107
- resourceType: ResourceTypeEnum;
2108
- resourceSubType: ResourceSubTypeEnum;
2109
- description?: string;
2110
- longDescription?: string;
2111
- surface?: SurfacesEnum;
2112
- properties?: SpacePropertiesEnum[];
2113
- mainMediaId?: number;
2114
- mainMedia: Media;
2115
- sports: SportsEnum[];
2116
- width?: number;
2117
- length?: number;
2118
- amenities?: AmenitiesEnum[];
2119
- parentSpaceId?: number;
2120
- ordinal?: number;
2121
- isAddOn: boolean;
2122
- ages?: ResourceAgesEnum;
2123
- deletedAt?: Date;
2124
- activityTimes: ActivityTimes[];
2125
- facilities: Facility[];
2126
- slots?: Slot[];
2127
- addons?: Addon[];
2128
- facilityId: number;
2129
- facility: Facility;
2130
- purchasedResources: PurchasedResource[];
2131
- linkSEO: string;
2132
- }
2133
2105
  export declare class Reservations extends OrganizationConnectionBaseEntity {
2134
2106
  name?: string;
2135
2107
  description?: string;
@@ -2162,6 +2134,34 @@ export declare class Reservations extends OrganizationConnectionBaseEntity {
2162
2134
  publicNotes?: string;
2163
2135
  slots?: Slot[];
2164
2136
  }
2137
+ export declare class Resource extends OrganizationConnectionBaseEntity {
2138
+ name: string;
2139
+ resourceType: ResourceTypeEnum;
2140
+ resourceSubType: ResourceSubTypeEnum;
2141
+ description?: string;
2142
+ longDescription?: string;
2143
+ surface?: SurfacesEnum;
2144
+ properties?: SpacePropertiesEnum[];
2145
+ mainMediaId?: number;
2146
+ mainMedia: Media;
2147
+ sports: SportsEnum[];
2148
+ width?: number;
2149
+ length?: number;
2150
+ amenities?: AmenitiesEnum[];
2151
+ parentSpaceId?: number;
2152
+ ordinal?: number;
2153
+ isAddOn: boolean;
2154
+ ages?: ResourceAgesEnum;
2155
+ deletedAt?: Date;
2156
+ activityTimes: ActivityTimes[];
2157
+ facilities: Facility[];
2158
+ slots?: Slot[];
2159
+ addons?: Addon[];
2160
+ facilityId: number;
2161
+ facility: Facility;
2162
+ purchasedResources: PurchasedResource[];
2163
+ linkSEO: string;
2164
+ }
2165
2165
  export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2166
2166
  name: string;
2167
2167
  facilityId: number;
@@ -2253,6 +2253,15 @@ export declare class Subcategory extends OrganizationConnectionBaseEntity {
2253
2253
  stationToSubcategories: StationToSubcategory[];
2254
2254
  stations: Station[];
2255
2255
  }
2256
+ export declare class TeamInvite extends BondBaseEntity {
2257
+ email: string;
2258
+ teamId: number;
2259
+ invitedUserId?: number;
2260
+ userCreatorId: number;
2261
+ token: string;
2262
+ tokenExpirationDate: Date;
2263
+ isUsed: boolean;
2264
+ }
2256
2265
  export declare class Team extends BondBaseEntity {
2257
2266
  name: string | null;
2258
2267
  description: string | null;
@@ -2287,15 +2296,6 @@ export declare class Team extends BondBaseEntity {
2287
2296
  gender: number | null;
2288
2297
  questionnaireId: number | null;
2289
2298
  }
2290
- export declare class TeamInvite extends BondBaseEntity {
2291
- email: string;
2292
- teamId: number;
2293
- invitedUserId?: number;
2294
- userCreatorId: number;
2295
- token: string;
2296
- tokenExpirationDate: Date;
2297
- isUsed: boolean;
2298
- }
2299
2299
  export declare class TeamMember extends BondBaseEntity {
2300
2300
  teamId: number | null;
2301
2301
  userId: number | null;
@@ -2375,12 +2375,6 @@ export declare class VariantTitle extends OrganizationConnectionBaseEntity {
2375
2375
  name: string;
2376
2376
  variants: Variant[];
2377
2377
  }
2378
- export declare class Variant extends OrganizationConnectionBaseEntity {
2379
- name: string;
2380
- variantTitleId: number;
2381
- variantTitle: VariantTitle;
2382
- deletedAt?: Date;
2383
- }
2384
2378
  export declare class WebflowOrganizationConfiguration extends OrganizationConnectionBaseEntity {
2385
2379
  projectToken: string;
2386
2380
  programTypesCollectionId?: string;
@@ -2389,6 +2383,12 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2389
2383
  membershipCollectionId?: string;
2390
2384
  programsCollectionId?: string;
2391
2385
  }
2386
+ export declare class Variant extends OrganizationConnectionBaseEntity {
2387
+ name: string;
2388
+ variantTitleId: number;
2389
+ variantTitle: VariantTitle;
2390
+ deletedAt?: Date;
2391
+ }
2392
2392
  export declare enum EntitlementTermsTypesEnum {
2393
2393
  QUESTION = "question",
2394
2394
  CITY = "city",
@@ -3289,11 +3289,6 @@ export interface IReservationCreatorData {
3289
3289
  endDate: string;
3290
3290
  sportId: number;
3291
3291
  }
3292
- export declare class ColumnNumericTransformer {
3293
- to(data: number): number;
3294
- from(data: string): number;
3295
- }
3296
- export declare function convertToNumber(data: string): number;
3297
3292
  export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3298
3293
  name?: string;
3299
3294
  genderStr?: string;
@@ -3352,6 +3347,11 @@ export declare class ProductImportDto {
3352
3347
  resourceIds: number[];
3353
3348
  oldId: number;
3354
3349
  }
3350
+ export declare class ColumnNumericTransformer {
3351
+ to(data: number): number;
3352
+ from(data: string): number;
3353
+ }
3354
+ export declare function convertToNumber(data: string): number;
3355
3355
  export declare class PunchPassDto {
3356
3356
  CustomerID: string;
3357
3357
  QuantityLeft: number;
@@ -3410,6 +3410,10 @@ export declare class ImportedReservationDto {
3410
3410
  slots?: ImportedSlotDto[];
3411
3411
  addons?: ImportedSlotProductDto[];
3412
3412
  }
3413
+ export declare class GameSlots extends BondBaseEntity {
3414
+ entityType: string;
3415
+ entityId: number;
3416
+ }
3413
3417
  export declare class MatchParticipants extends BondBaseEntity {
3414
3418
  matchId: number | null;
3415
3419
  ordinal: number | null;
@@ -3419,10 +3423,6 @@ export declare class MatchParticipants extends BondBaseEntity {
3419
3423
  score: number | null;
3420
3424
  gameSlotId: number | null;
3421
3425
  }
3422
- export declare class GameSlots extends BondBaseEntity {
3423
- entityType: string;
3424
- entityId: number;
3425
- }
3426
3426
  export declare class Matches extends BondBaseEntity {
3427
3427
  eventId: number | null;
3428
3428
  status: number | null;
@@ -3445,6 +3445,11 @@ export declare class Lock extends BondBaseEntity {
3445
3445
  name: string;
3446
3446
  locked?: Date;
3447
3447
  }
3448
+ export declare class TeamEvents extends BondBaseEntity {
3449
+ teamId: number | null;
3450
+ eventId: number | null;
3451
+ status: number | null;
3452
+ }
3448
3453
  export interface ValidatedMonthAndDay {
3449
3454
  valid: boolean;
3450
3455
  month?: number;
@@ -3454,11 +3459,6 @@ export interface ValidationReason {
3454
3459
  valid: boolean;
3455
3460
  reason?: string;
3456
3461
  }
3457
- export declare class TeamEvents extends BondBaseEntity {
3458
- teamId: number | null;
3459
- eventId: number | null;
3460
- status: number | null;
3461
- }
3462
3462
  export interface PaymentStatus {
3463
3463
  parentId: number;
3464
3464
  paymentStatus: ReservationPaymentStatusEnum;