@bondsports/types 0.0.147 → 0.0.157

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
@@ -1220,14 +1220,6 @@ export declare class Connection extends BondBaseEntity {
1220
1220
  userCreatorId: number | null;
1221
1221
  ownerId: number | null;
1222
1222
  }
1223
- export declare class CreditNote extends OrganizationConnectionBaseEntity {
1224
- creditAmount: number;
1225
- paymentProcessorId: string;
1226
- userId: number;
1227
- paymentId: number;
1228
- invoiceId: number;
1229
- creditPaymentId: number;
1230
- }
1231
1223
  export declare class Customer extends OrganizationConnectionBaseEntity {
1232
1224
  name: string | null;
1233
1225
  entityId: number | null;
@@ -1268,6 +1260,14 @@ export declare class CustomerCreditTransaction extends OrganizationConnectionBas
1268
1260
  invoice: Invoice;
1269
1261
  payment: Payment;
1270
1262
  }
1263
+ export declare class CreditNote extends OrganizationConnectionBaseEntity {
1264
+ creditAmount: number;
1265
+ paymentProcessorId: string;
1266
+ userId: number;
1267
+ paymentId: number;
1268
+ invoiceId: number;
1269
+ creditPaymentId: number;
1270
+ }
1271
1271
  export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1272
1272
  customerId?: number;
1273
1273
  description: string;
@@ -1414,22 +1414,6 @@ export declare class FutureInstallment extends OrganizationConnectionBaseEntity
1414
1414
  export declare class GlCodes extends OrganizationConnectionBaseEntity {
1415
1415
  code: string;
1416
1416
  }
1417
- export declare class Group extends BondBaseEntity {
1418
- name: string;
1419
- description?: string;
1420
- status: GroupStatusEnum;
1421
- maxCapacity?: number;
1422
- mainMediaId?: number;
1423
- minAgeYears?: number;
1424
- maxAgeYears?: number;
1425
- gender: GenderEnum;
1426
- levelOfPlay?: LevelOfPlayEnum[];
1427
- sports: SportsEnum[];
1428
- questionnaires?: number[];
1429
- captainUserId?: number;
1430
- members: ISeasonAttendeeInfo[];
1431
- users: User[];
1432
- }
1433
1417
  export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
1434
1418
  groupId: number;
1435
1419
  itemId: number;
@@ -1448,6 +1432,22 @@ export declare class GroupsInDivisions extends BondBaseEntity {
1448
1432
  divisionId: number;
1449
1433
  deletedAt?: Date;
1450
1434
  }
1435
+ export declare class Group extends BondBaseEntity {
1436
+ name: string;
1437
+ description?: string;
1438
+ status: GroupStatusEnum;
1439
+ maxCapacity?: number;
1440
+ mainMediaId?: number;
1441
+ minAgeYears?: number;
1442
+ maxAgeYears?: number;
1443
+ gender: GenderEnum;
1444
+ levelOfPlay?: LevelOfPlayEnum[];
1445
+ sports: SportsEnum[];
1446
+ questionnaires?: number[];
1447
+ captainUserId?: number;
1448
+ members: ISeasonAttendeeInfo[];
1449
+ users: User[];
1450
+ }
1451
1451
  export declare class Invoice extends BondBaseEntity {
1452
1452
  invoiceId: string | null;
1453
1453
  price: number | null;
@@ -1761,6 +1761,31 @@ export declare class PasswordReset extends BondBaseEntity {
1761
1761
  validUntil: Date | null;
1762
1762
  active: boolean | null;
1763
1763
  }
1764
+ export declare class PaymentFailConfig extends OrganizationConnectionBaseEntity {
1765
+ failureIndex: number;
1766
+ waitingDays: number;
1767
+ }
1768
+ export declare class PaymentFailure extends OrganizationConnectionBaseEntity {
1769
+ paymentInstallmentId?: number;
1770
+ invoiceId: number;
1771
+ reason: EFailedPaymentReasons;
1772
+ errorMessage: string;
1773
+ }
1774
+ export declare class PaymentNote extends OrganizationConnectionBaseEntity {
1775
+ content: string;
1776
+ creatingUserId: number;
1777
+ user: User;
1778
+ isPublic: boolean;
1779
+ deletedAt: Date;
1780
+ paymentId: number;
1781
+ payment: Payment;
1782
+ }
1783
+ export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1784
+ paymentPlanId: number;
1785
+ paymentDate: Date;
1786
+ deletedAt?: Date;
1787
+ paymentPlan: ProductPaymentPlan;
1788
+ }
1764
1789
  export declare class Payment extends OrganizationConnectionBaseEntity {
1765
1790
  price: number;
1766
1791
  paymentProcessorId: string;
@@ -1788,31 +1813,6 @@ export declare class Payment extends OrganizationConnectionBaseEntity {
1788
1813
  refundReasonId?: number;
1789
1814
  refundNote?: string;
1790
1815
  }
1791
- export declare class PaymentFailConfig extends OrganizationConnectionBaseEntity {
1792
- failureIndex: number;
1793
- waitingDays: number;
1794
- }
1795
- export declare class PaymentFailure extends OrganizationConnectionBaseEntity {
1796
- paymentInstallmentId?: number;
1797
- invoiceId: number;
1798
- reason: EFailedPaymentReasons;
1799
- errorMessage: string;
1800
- }
1801
- export declare class PaymentNote extends OrganizationConnectionBaseEntity {
1802
- content: string;
1803
- creatingUserId: number;
1804
- user: User;
1805
- isPublic: boolean;
1806
- deletedAt: Date;
1807
- paymentId: number;
1808
- payment: Payment;
1809
- }
1810
- export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1811
- paymentPlanId: number;
1812
- paymentDate: Date;
1813
- deletedAt?: Date;
1814
- paymentPlan: ProductPaymentPlan;
1815
- }
1816
1816
  export declare class PaymentV1 extends BondBaseEntity {
1817
1817
  userId: number | null;
1818
1818
  ownerId: number | null;
@@ -2072,6 +2072,10 @@ 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
+ }
2075
2079
  export declare class Questions extends BondBaseEntity {
2076
2080
  questionType: string | null;
2077
2081
  ordinal: number | null;
@@ -2086,15 +2090,6 @@ export declare class Questions extends BondBaseEntity {
2086
2090
  ownerId: number | null;
2087
2091
  questionnaireId: number | null;
2088
2092
  }
2089
- export declare class RefundReason extends OrganizationConnectionBaseEntity {
2090
- reason: string;
2091
- ordinal: number;
2092
- deletedAt: Date;
2093
- }
2094
- export declare class Questionnaires extends OrganizationConnectionBaseEntity {
2095
- title: string | null;
2096
- answerTitle: AnswerTitle;
2097
- }
2098
2093
  export declare class RegistrationConstraint extends OrganizationConnectionBaseEntity {
2099
2094
  resourceType: ResourceNameTypeEnum;
2100
2095
  resourceId: number;
@@ -2106,6 +2101,11 @@ export declare class RegistrationConstraint extends OrganizationConnectionBaseEn
2106
2101
  closeTime?: string;
2107
2102
  deletedAt?: Date;
2108
2103
  }
2104
+ export declare class RefundReason extends OrganizationConnectionBaseEntity {
2105
+ reason: string;
2106
+ ordinal: number;
2107
+ deletedAt: Date;
2108
+ }
2109
2109
  export declare class Reservations extends OrganizationConnectionBaseEntity {
2110
2110
  name?: string;
2111
2111
  description?: string;
@@ -2226,10 +2226,6 @@ export declare class SeasonTeam extends BondBaseEntity {
2226
2226
  metaData: any | null;
2227
2227
  team: Team;
2228
2228
  }
2229
- export declare class SpacesDependency extends BondBaseEntity {
2230
- blockingSpaceId: number;
2231
- blockedSpaceId: number;
2232
- }
2233
2229
  export declare class Station extends OrganizationConnectionBaseEntity {
2234
2230
  name: string;
2235
2231
  facilityId: number;
@@ -2241,6 +2237,10 @@ export declare class Station extends OrganizationConnectionBaseEntity {
2241
2237
  subcategories: Subcategory[];
2242
2238
  shifts?: Shift[];
2243
2239
  }
2240
+ export declare class SpacesDependency extends BondBaseEntity {
2241
+ blockingSpaceId: number;
2242
+ blockedSpaceId: number;
2243
+ }
2244
2244
  export declare class StationToSubcategory extends OrganizationConnectionBaseEntity {
2245
2245
  stationId: number;
2246
2246
  subcategoryId: number;
@@ -2300,15 +2300,6 @@ export declare class TeamInvite extends BondBaseEntity {
2300
2300
  tokenExpirationDate: Date;
2301
2301
  isUsed: boolean;
2302
2302
  }
2303
- export declare class TeamMember extends BondBaseEntity {
2304
- teamId: number | null;
2305
- userId: number | null;
2306
- paymentId: number | null;
2307
- hasPaid: boolean | null;
2308
- status: TeamMemberStatusEnum | null;
2309
- role: TeamMemberRoleEnum;
2310
- user: User;
2311
- }
2312
2303
  export declare class User extends BondBaseEntity {
2313
2304
  firstName: string | null;
2314
2305
  lastName: string | null;
@@ -2348,6 +2339,15 @@ export declare class User extends BondBaseEntity {
2348
2339
  invoiceNotes: InvoiceNote[];
2349
2340
  paymentNotes: PaymentNote[];
2350
2341
  }
2342
+ export declare class TeamMember extends BondBaseEntity {
2343
+ teamId: number | null;
2344
+ userId: number | null;
2345
+ paymentId: number | null;
2346
+ hasPaid: boolean | null;
2347
+ status: TeamMemberStatusEnum | null;
2348
+ role: TeamMemberRoleEnum;
2349
+ user: User;
2350
+ }
2351
2351
  export declare class UserAuthorizations extends BondBaseEntity {
2352
2352
  entityId: number | null;
2353
2353
  userId: number | null;
@@ -3449,14 +3449,35 @@ export declare class SeasonRounds extends BondBaseEntity {
3449
3449
  divisionId?: number;
3450
3450
  name: string;
3451
3451
  }
3452
+ export declare class Lock extends BondBaseEntity {
3453
+ name: string;
3454
+ locked?: Date;
3455
+ }
3452
3456
  export declare class TeamEvents extends BondBaseEntity {
3453
3457
  teamId: number | null;
3454
3458
  eventId: number | null;
3455
3459
  status: number | null;
3456
3460
  }
3457
- export declare class Lock extends BondBaseEntity {
3458
- name: string;
3459
- locked?: Date;
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;
3460
3481
  }
3461
3482
  export declare class CreateMonitorConfigDto {
3462
3483
  facilityId: number;
@@ -3464,10 +3485,12 @@ export declare class CreateMonitorConfigDto {
3464
3485
  code: string;
3465
3486
  config: any;
3466
3487
  }
3467
- export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3468
- facilityId: number;
3469
- code: string;
3470
- config?: any;
3488
+ export declare class NotifyTracker extends BondBaseEntity {
3489
+ userId: number;
3490
+ organizationId: number;
3491
+ notifyMetadata?: any;
3492
+ notfiyMethodtype: NotifyMethodEnum;
3493
+ destination: string;
3471
3494
  }
3472
3495
  export declare class ByOrganizationIdDto {
3473
3496
  organizationId: number;
@@ -3493,6 +3516,22 @@ export declare class FindUnallocatedEventsFiltersDto extends PaginationQuery {
3493
3516
  months?: string;
3494
3517
  dow?: string;
3495
3518
  }
3519
+ export interface UnallocatedEventsFilters {
3520
+ programsIds?: number[];
3521
+ sessionsIds?: number[];
3522
+ segmentsIds?: number[];
3523
+ durations?: Duration[];
3524
+ daysOfWeek?: number[];
3525
+ }
3526
+ export interface Duration {
3527
+ startDate: string;
3528
+ endDate: string;
3529
+ }
3530
+ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3531
+ facilityId: number;
3532
+ code: string;
3533
+ config?: any;
3534
+ }
3496
3535
  export declare class Organization extends BondBaseEntity {
3497
3536
  name: string | null;
3498
3537
  email: string | null;
@@ -3555,24 +3594,6 @@ export declare class OrganizationUsers extends BondBaseEntity {
3555
3594
  organisationId: number | null;
3556
3595
  userId: number | null;
3557
3596
  }
3558
- export interface UnallocatedEventsFilters {
3559
- programsIds?: number[];
3560
- sessionsIds?: number[];
3561
- segmentsIds?: number[];
3562
- durations?: Duration[];
3563
- daysOfWeek?: number[];
3564
- }
3565
- export interface Duration {
3566
- startDate: string;
3567
- endDate: string;
3568
- }
3569
- export declare class NotifyTracker extends BondBaseEntity {
3570
- userId: number;
3571
- organizationId: number;
3572
- notifyMetadata?: any;
3573
- notfiyMethodtype: NotifyMethodEnum;
3574
- destination: string;
3575
- }
3576
3597
  export declare class CustomerIdDto {
3577
3598
  customerId: number;
3578
3599
  }
@@ -3689,38 +3710,6 @@ export declare class SendRequestDto {
3689
3710
  sendToEmail: string;
3690
3711
  memo?: string;
3691
3712
  }
3692
- export declare class RefundDto {
3693
- invoiceId: number;
3694
- lineItems: RefundLineItemAmountDto[];
3695
- refundLineItemAmountDict?: {
3696
- [id: number]: number;
3697
- };
3698
- refunds: PaymentMethodDto[];
3699
- refundType: RefundTypeEnum;
3700
- reasonId: number;
3701
- note?: string;
3702
- shiftId?: number;
3703
- meta?: RevertMetaDto;
3704
- }
3705
- export declare class PaymentMethodDto {
3706
- paymentMethodType: PaymentMethodTypeEnum;
3707
- amount: number;
3708
- paymentMethodId?: string;
3709
- }
3710
- export declare class RefundLineItemAmountDto {
3711
- id: number;
3712
- refundAmount: number;
3713
- }
3714
- export declare class VoidDto {
3715
- lineItems: VoidLineItemDto[];
3716
- meta?: RevertMetaDto;
3717
- }
3718
- export declare class VoidLineItemDto {
3719
- id: number;
3720
- quantity?: number;
3721
- isEdit?: boolean;
3722
- amount?: number;
3723
- }
3724
3713
  export interface PaymentResult {
3725
3714
  paymentMethodId: string;
3726
3715
  paymentMethodType: PaymentMethodTypeEnum;
@@ -3756,6 +3745,28 @@ export interface RefundResultWithLineItemsDict extends PaymentsResults {
3756
3745
  failedLineItems: Map<number, RefundLineItemAmountDto>;
3757
3746
  totalAmountProcessed: number;
3758
3747
  }
3748
+ export declare class RefundDto {
3749
+ invoiceId: number;
3750
+ lineItems: RefundLineItemAmountDto[];
3751
+ refundLineItemAmountDict?: {
3752
+ [id: number]: number;
3753
+ };
3754
+ refunds: PaymentMethodDto[];
3755
+ refundType: RefundTypeEnum;
3756
+ reasonId: number;
3757
+ note?: string;
3758
+ shiftId?: number;
3759
+ meta?: RevertMetaDto;
3760
+ }
3761
+ export declare class PaymentMethodDto {
3762
+ paymentMethodType: PaymentMethodTypeEnum;
3763
+ amount: number;
3764
+ paymentMethodId?: string;
3765
+ }
3766
+ export declare class RefundLineItemAmountDto {
3767
+ id: number;
3768
+ refundAmount: number;
3769
+ }
3759
3770
  export declare class AddonDto {
3760
3771
  productId: number;
3761
3772
  id?: number;
@@ -3850,6 +3861,16 @@ export declare class LineItemDto {
3850
3861
  unitTaxPrice?: number;
3851
3862
  parentOrdinal?: number;
3852
3863
  }
3864
+ export declare class VoidDto {
3865
+ lineItems: VoidLineItemDto[];
3866
+ meta?: RevertMetaDto;
3867
+ }
3868
+ export declare class VoidLineItemDto {
3869
+ id: number;
3870
+ quantity?: number;
3871
+ isEdit?: boolean;
3872
+ amount?: number;
3873
+ }
3853
3874
  export declare class MaintenanceDto {
3854
3875
  id?: number;
3855
3876
  title: string;
@@ -4110,26 +4131,6 @@ export declare class TimeSlotsDto {
4110
4131
  export declare class SlotsIdsDto {
4111
4132
  slotsIds: number[];
4112
4133
  }
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
- }
4133
4134
  declare class AnswerDto {
4134
4135
  questionId: number;
4135
4136
  value: any;
@@ -4167,6 +4168,26 @@ export declare class BookingV1Dto {
4167
4168
  cashPayment: boolean;
4168
4169
  requestOnly: boolean;
4169
4170
  }
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
+ }
4170
4191
  export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4171
4192
  deletedAt?: Date;
4172
4193
  reservationId: number;
@@ -4538,12 +4559,12 @@ export interface AddonMetadata {
4538
4559
  totalPrice: number;
4539
4560
  product?: Product;
4540
4561
  }
4541
- export declare class ChangeRolePermissionsDto {
4542
- permissionIds: number[];
4543
- }
4544
4562
  export declare class CreateRoleDto {
4545
4563
  name: string;
4546
4564
  }
4565
+ export declare class ChangeRolePermissionsDto {
4566
+ permissionIds: number[];
4567
+ }
4547
4568
  export declare class Permission extends BondBaseEntity {
4548
4569
  name: string;
4549
4570
  deletedAt?: Date;
@@ -4561,9 +4582,6 @@ export declare class UserRole extends OrganizationConnectionBaseEntity {
4561
4582
  role: Role;
4562
4583
  user: User;
4563
4584
  }
4564
- export declare class CloseShiftDto {
4565
- closingCashAmount: number;
4566
- }
4567
4585
  export declare class FindShiftsByIdsDto {
4568
4586
  shiftIds: number[];
4569
4587
  }
@@ -4587,6 +4605,9 @@ export declare class FindShiftsFormattedFilters {
4587
4605
  startDate?: Date;
4588
4606
  endDate?: Date;
4589
4607
  }
4608
+ export declare class CloseShiftDto {
4609
+ closingCashAmount: number;
4610
+ }
4590
4611
  export declare class ShiftManagementClosingAmount {
4591
4612
  shiftId: number;
4592
4613
  managementClosingCashAmount: number;
@@ -4594,10 +4615,6 @@ export declare class ShiftManagementClosingAmount {
4594
4615
  export declare class ManagementClosingOfShiftsDto {
4595
4616
  managementClosingData: ShiftManagementClosingAmount[];
4596
4617
  }
4597
- export declare class OpenShiftDto {
4598
- openingCashAmount: number;
4599
- stationId: number;
4600
- }
4601
4618
  export declare class Shift extends OrganizationConnectionBaseEntity {
4602
4619
  stationId: number;
4603
4620
  station?: Station;
@@ -4627,24 +4644,7 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4627
4644
  closingManager?: User;
4628
4645
  reconcilingUser?: User;
4629
4646
  }
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;
4647
+ export declare class OpenShiftDto {
4648
+ openingCashAmount: number;
4649
+ stationId: number;
4650
4650
  }