@bondsports/types 0.0.122 → 0.0.123

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
@@ -2,19 +2,16 @@ import { BaseEntity } from 'typeorm';
2
2
  import { Stripe } from 'stripe';
3
3
  import moment from 'moment';
4
4
  export { TypesProvider } from './provider';
5
- export declare class BasicActivityTimesDto {
6
- dayOfWeek: number;
7
- close: string;
8
- open: string;
9
- availabilityStartDate?: string;
10
- availabilityEndDate?: string;
5
+ export declare class QuestionAnswersDto {
6
+ questionId: number;
7
+ value: any;
11
8
  }
12
- export declare class FindBookingTypeSettingDto {
13
- organizationId: number;
14
- facilityId: number;
15
- spaceId: number;
16
- bookingDate: string;
17
- bookingTime: string;
9
+ export declare class UserAnswersDto {
10
+ userId: number;
11
+ answers: QuestionAnswersDto[];
12
+ }
13
+ export declare class GetByQuestionnaireIdsDto {
14
+ questionnaireIds: string;
18
15
  }
19
16
  export declare enum EConfigurationKeys {
20
17
  MAX_ALLOWED_PM_FAILURE = "max_allowed_pm_failure"
@@ -22,6 +19,13 @@ export declare enum EConfigurationKeys {
22
19
  export declare enum EFailedPaymentReasons {
23
20
  CARD_BLOCKED = "card_blocked_by_bond"
24
21
  }
22
+ export declare class FindBookingTypeSettingDto {
23
+ organizationId: number;
24
+ facilityId: number;
25
+ spaceId: number;
26
+ bookingDate: string;
27
+ bookingTime: string;
28
+ }
25
29
  export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
26
30
  membershipId: number;
27
31
  }
@@ -83,6 +87,13 @@ export declare class AddEditCustomerDto {
83
87
  emergencyContactName?: string;
84
88
  emergencyContactPhone?: string;
85
89
  }
90
+ export declare class BasicActivityTimesDto {
91
+ dayOfWeek: number;
92
+ close: string;
93
+ open: string;
94
+ availabilityStartDate?: string;
95
+ availabilityEndDate?: string;
96
+ }
86
97
  export declare class FindEventByIdDto {
87
98
  eventId: number;
88
99
  organizationId: number;
@@ -226,38 +237,6 @@ export declare class UpdateFacilityAmenitiesDto {
226
237
  export declare class FindFacilitiesOptionsDto extends PaginationQuery {
227
238
  nameSearch?: string;
228
239
  }
229
- export declare class FindFamilyAccountsDto {
230
- userId: number;
231
- }
232
- export declare class FindFamilyAccountsCustomerDto {
233
- customerId: number;
234
- organizationId: number;
235
- }
236
- export declare class FindUsersInFamilyAccountDto {
237
- familyAccountId: number;
238
- }
239
- export declare class CreateFamilyAccountDto {
240
- familyName: string;
241
- userId: number;
242
- }
243
- export declare class UpdateFamilyAccountNameDto {
244
- familyName: string;
245
- familyAccountId: number;
246
- }
247
- export declare class AddUserToFamilyAccountDto {
248
- familyAccountId: number;
249
- isUserAdmin: boolean;
250
- firstName: string;
251
- lastName: string;
252
- gender: GenderEnum;
253
- birthDate: string;
254
- sports?: number[];
255
- email?: string;
256
- }
257
- export declare class RemoveUserFromFamilyAccountDto {
258
- userId: number;
259
- familyAccountId: number;
260
- }
261
240
  export declare class FindOneParams {
262
241
  id: number;
263
242
  }
@@ -270,27 +249,6 @@ export declare class PaginationRangeQuery {
270
249
  endPage: number;
271
250
  itemsPerPage: number;
272
251
  }
273
- export declare class FindGlCodeByOrganizationIdDto {
274
- organizationId: number;
275
- }
276
- export declare class GetGlCodeDto {
277
- id: number;
278
- organizationId: number;
279
- code: string;
280
- createdAt: Date;
281
- updatedAt: Date;
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
252
  export declare class FindByProgramSeasonIdDto {
295
253
  seasonId: number;
296
254
  }
@@ -364,6 +322,48 @@ export declare class MoveTeamOrMemberDto implements IMoveSeason {
364
322
  export declare class MoveTeamOrMembersByCsvDTO {
365
323
  fileName: string;
366
324
  }
325
+ export declare class FindFamilyAccountsDto {
326
+ userId: number;
327
+ }
328
+ export declare class FindFamilyAccountsCustomerDto {
329
+ customerId: number;
330
+ organizationId: number;
331
+ }
332
+ export declare class FindUsersInFamilyAccountDto {
333
+ familyAccountId: number;
334
+ }
335
+ export declare class CreateFamilyAccountDto {
336
+ familyName: string;
337
+ userId: number;
338
+ }
339
+ export declare class UpdateFamilyAccountNameDto {
340
+ familyName: string;
341
+ familyAccountId: number;
342
+ }
343
+ export declare class AddUserToFamilyAccountDto {
344
+ familyAccountId: number;
345
+ isUserAdmin: boolean;
346
+ firstName: string;
347
+ lastName: string;
348
+ gender: GenderEnum;
349
+ birthDate: string;
350
+ sports?: number[];
351
+ email?: string;
352
+ }
353
+ export declare class RemoveUserFromFamilyAccountDto {
354
+ userId: number;
355
+ familyAccountId: number;
356
+ }
357
+ export declare class FindGlCodeByOrganizationIdDto {
358
+ organizationId: number;
359
+ }
360
+ export declare class GetGlCodeDto {
361
+ id: number;
362
+ organizationId: number;
363
+ code: string;
364
+ createdAt: Date;
365
+ updatedAt: Date;
366
+ }
367
367
  export declare class CreateMembershipDto {
368
368
  organizationId: number;
369
369
  name: string;
@@ -683,24 +683,6 @@ export declare class createResourceDto {
683
683
  export declare class archiveDto {
684
684
  isArchive: boolean;
685
685
  }
686
- export declare class CreateUpdateVariantsDto {
687
- organizationId: number;
688
- parentProductId: number;
689
- variantTitles: VariantTitleDto[];
690
- variants: VariantDto[];
691
- }
692
- export declare class VariantTitleDto {
693
- titleName: string;
694
- titleId: number;
695
- }
696
- export declare class VariantDto {
697
- name: string;
698
- price: number;
699
- variantId: number;
700
- currency: CurrencyEnum;
701
- startDate: Date;
702
- endDate: Date;
703
- }
704
686
  export declare class FindProgramSeasonsByProgramIdDto {
705
687
  programId: number;
706
688
  }
@@ -932,6 +914,24 @@ export declare class ProgramHighlightDto {
932
914
  type: ProgramHighlightTypeEnum;
933
915
  title: string;
934
916
  }
917
+ export declare class CreateUpdateVariantsDto {
918
+ organizationId: number;
919
+ parentProductId: number;
920
+ variantTitles: VariantTitleDto[];
921
+ variants: VariantDto[];
922
+ }
923
+ export declare class VariantTitleDto {
924
+ titleName: string;
925
+ titleId: number;
926
+ }
927
+ export declare class VariantDto {
928
+ name: string;
929
+ price: number;
930
+ variantId: number;
931
+ currency: CurrencyEnum;
932
+ startDate: Date;
933
+ endDate: Date;
934
+ }
935
935
  export declare class PurchasePaymentDto {
936
936
  token: string;
937
937
  type: PaymentMethodTypeEnum;
@@ -1017,16 +1017,6 @@ 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
- }
1030
1020
  export declare class SpaceByIdDto {
1031
1021
  spaceId: number;
1032
1022
  }
@@ -1083,6 +1073,16 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
1083
1073
  types?: string;
1084
1074
  resourcesIds?: string;
1085
1075
  }
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
  }
@@ -1189,6 +1189,11 @@ export declare class BookedSessions extends BondBaseEntity {
1189
1189
  publicNotes?: string;
1190
1190
  slotType?: SlotTypeEnum;
1191
1191
  }
1192
+ export declare class Configuration extends BondBaseEntity {
1193
+ area: string;
1194
+ key: string;
1195
+ value: string;
1196
+ }
1192
1197
  export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity {
1193
1198
  parentId: number;
1194
1199
  parentType: ResourceNameTypeEnum;
@@ -1199,11 +1204,6 @@ export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity
1199
1204
  endTimeInDay: string;
1200
1205
  directBookingFor: DirectBookingTypesEnum;
1201
1206
  }
1202
- export declare class Configuration extends BondBaseEntity {
1203
- area: string;
1204
- key: string;
1205
- value: string;
1206
- }
1207
1207
  export declare class Connection extends BondBaseEntity {
1208
1208
  connType: number | null;
1209
1209
  from: number | null;
@@ -1576,22 +1576,6 @@ 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
- }
1595
1579
  export declare class LineItems extends BondBaseEntity {
1596
1580
  constructor();
1597
1581
  defineIsReverted(): void;
@@ -1647,6 +1631,22 @@ export declare class LineItems extends BondBaseEntity {
1647
1631
  displayUnitPrice?: number;
1648
1632
  displayQuantity?: number;
1649
1633
  }
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;
@@ -1784,10 +1784,6 @@ export declare class Payment extends OrganizationConnectionBaseEntity {
1784
1784
  refundReasonId?: number;
1785
1785
  refundNote?: string;
1786
1786
  }
1787
- export declare class PaymentFailConfig extends OrganizationConnectionBaseEntity {
1788
- failureIndex: number;
1789
- waitingDays: number;
1790
- }
1791
1787
  export declare class PaymentFailure extends OrganizationConnectionBaseEntity {
1792
1788
  paymentInstallmentId?: number;
1793
1789
  invoiceId: number;
@@ -1803,6 +1799,10 @@ export declare class PaymentNote extends OrganizationConnectionBaseEntity {
1803
1799
  paymentId: number;
1804
1800
  payment: Payment;
1805
1801
  }
1802
+ export declare class PaymentFailConfig extends OrganizationConnectionBaseEntity {
1803
+ failureIndex: number;
1804
+ waitingDays: number;
1805
+ }
1806
1806
  export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1807
1807
  paymentPlanId: number;
1808
1808
  paymentDate: Date;
@@ -2253,15 +2253,6 @@ 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
- }
2265
2256
  export declare class Team extends BondBaseEntity {
2266
2257
  name: string | null;
2267
2258
  description: string | null;
@@ -2296,6 +2287,15 @@ export declare class Team extends BondBaseEntity {
2296
2287
  gender: number | null;
2297
2288
  questionnaireId: number | null;
2298
2289
  }
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,6 +2375,12 @@ 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
+ }
2378
2384
  export declare class WebflowOrganizationConfiguration extends OrganizationConnectionBaseEntity {
2379
2385
  projectToken: string;
2380
2386
  programTypesCollectionId?: string;
@@ -2383,12 +2389,6 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2383
2389
  membershipCollectionId?: string;
2384
2390
  programsCollectionId?: string;
2385
2391
  }
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,6 +3289,11 @@ 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;
3292
3297
  export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3293
3298
  name?: string;
3294
3299
  genderStr?: string;
@@ -3347,11 +3352,6 @@ export declare class ProductImportDto {
3347
3352
  resourceIds: number[];
3348
3353
  oldId: number;
3349
3354
  }
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;
@@ -3441,15 +3441,26 @@ export declare class SeasonRounds extends BondBaseEntity {
3441
3441
  divisionId?: number;
3442
3442
  name: string;
3443
3443
  }
3444
- export declare class Lock extends BondBaseEntity {
3445
- name: string;
3446
- locked?: Date;
3447
- }
3448
3444
  export declare class TeamEvents extends BondBaseEntity {
3449
3445
  teamId: number | null;
3450
3446
  eventId: number | null;
3451
3447
  status: number | null;
3452
3448
  }
3449
+ export declare class Lock extends BondBaseEntity {
3450
+ name: string;
3451
+ locked?: Date;
3452
+ }
3453
+ export declare class CreateMonitorConfigDto {
3454
+ facilityId: number;
3455
+ name: string;
3456
+ code: string;
3457
+ config: any;
3458
+ }
3459
+ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3460
+ facilityId: number;
3461
+ code: string;
3462
+ config?: any;
3463
+ }
3453
3464
  export interface ValidatedMonthAndDay {
3454
3465
  valid: boolean;
3455
3466
  month?: number;
@@ -3471,24 +3482,6 @@ export interface PaymentStatusesDict {
3471
3482
  export interface PaymentStatusDict {
3472
3483
  [id: number]: ReservationPaymentStatusEnum;
3473
3484
  }
3474
- export declare class CreateMonitorConfigDto {
3475
- facilityId: number;
3476
- name: string;
3477
- code: string;
3478
- config: any;
3479
- }
3480
- export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3481
- facilityId: number;
3482
- code: string;
3483
- config?: any;
3484
- }
3485
- export declare class NotifyTracker extends BondBaseEntity {
3486
- userId: number;
3487
- organizationId: number;
3488
- notifyMetadata?: any;
3489
- notfiyMethodtype: NotifyMethodEnum;
3490
- destination: string;
3491
- }
3492
3485
  export declare class ByOrganizationIdDto {
3493
3486
  organizationId: number;
3494
3487
  }
@@ -3586,6 +3579,13 @@ export interface Duration {
3586
3579
  startDate: string;
3587
3580
  endDate: string;
3588
3581
  }
3582
+ export declare class NotifyTracker extends BondBaseEntity {
3583
+ userId: number;
3584
+ organizationId: number;
3585
+ notifyMetadata?: any;
3586
+ notfiyMethodtype: NotifyMethodEnum;
3587
+ destination: string;
3588
+ }
3589
3589
  export declare class CustomerIdDto {
3590
3590
  customerId: number;
3591
3591
  }