@bondsports/types 0.0.142 → 0.0.143

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
@@ -365,6 +365,48 @@ export declare class MoveTeamOrMemberDto implements IMoveSeason {
365
365
  export declare class MoveTeamOrMembersByCsvDTO {
366
366
  fileName: string;
367
367
  }
368
+ export declare class CreateEntitlementTermsDto {
369
+ organizationId: number;
370
+ entitlementGroupId: number;
371
+ terms: IEntitlementTerms[];
372
+ }
373
+ export declare class FindEntitlementTermsByGroupIdDto {
374
+ entitlementGroupId: number;
375
+ }
376
+ export declare class FindEntitlementTermsByVariablesDto {
377
+ user: any;
378
+ userVariables: IQuestionAnswerObject[];
379
+ }
380
+ export declare class FindLowestPriceDto {
381
+ organizationId: number;
382
+ user?: any;
383
+ answers?: IQuestionAnswerObject[];
384
+ itemIds: number[];
385
+ itemType?: ResourceNameTypeEnum;
386
+ startDate?: Date;
387
+ }
388
+ export declare class FindGroupItemsPricingsDto {
389
+ groupsIds: number[];
390
+ itemsIds: number[];
391
+ }
392
+ export declare class CreateEntitlementGroupDto {
393
+ name: string;
394
+ }
395
+ export declare class GetEntitlementGroupPricingDto {
396
+ itemIds: number[];
397
+ itemType: string;
398
+ }
399
+ export declare class FindEntitlementGroupByIdDto {
400
+ groupid: number;
401
+ }
402
+ export declare class CreateGroupPricingWithProduct {
403
+ groupId: number;
404
+ price: number;
405
+ startDate?: Date;
406
+ endDate?: Date;
407
+ discountValue?: number;
408
+ discountMethod?: DiscountMethodsEnum;
409
+ }
368
410
  export declare class CreateMembershipDto {
369
411
  organizationId: number;
370
412
  name: string;
@@ -421,47 +463,23 @@ export declare class CancelMembershipDto {
421
463
  isImmediatelyCancel: boolean;
422
464
  cancellationReason?: string;
423
465
  }
424
- export declare class CreateEntitlementTermsDto {
425
- organizationId: number;
426
- entitlementGroupId: number;
427
- terms: IEntitlementTerms[];
428
- }
429
- export declare class FindEntitlementTermsByGroupIdDto {
430
- entitlementGroupId: number;
431
- }
432
- export declare class FindEntitlementTermsByVariablesDto {
433
- user: any;
434
- userVariables: IQuestionAnswerObject[];
435
- }
436
- export declare class FindLowestPriceDto {
466
+ export declare class CreateUpdateVariantsDto {
437
467
  organizationId: number;
438
- user?: any;
439
- answers?: IQuestionAnswerObject[];
440
- itemIds: number[];
441
- itemType?: ResourceNameTypeEnum;
442
- startDate?: Date;
468
+ parentProductId: number;
469
+ variantTitles: VariantTitleDto[];
470
+ variants: VariantDto[];
443
471
  }
444
- export declare class FindGroupItemsPricingsDto {
445
- groupsIds: number[];
446
- itemsIds: number[];
472
+ export declare class VariantTitleDto {
473
+ titleName: string;
474
+ titleId: number;
447
475
  }
448
- export declare class CreateEntitlementGroupDto {
476
+ export declare class VariantDto {
449
477
  name: string;
450
- }
451
- export declare class GetEntitlementGroupPricingDto {
452
- itemIds: number[];
453
- itemType: string;
454
- }
455
- export declare class FindEntitlementGroupByIdDto {
456
- groupid: number;
457
- }
458
- export declare class CreateGroupPricingWithProduct {
459
- groupId: number;
460
478
  price: number;
461
- startDate?: Date;
462
- endDate?: Date;
463
- discountValue?: number;
464
- discountMethod?: DiscountMethodsEnum;
479
+ variantId: number;
480
+ currency: CurrencyEnum;
481
+ startDate: Date;
482
+ endDate: Date;
465
483
  }
466
484
  export declare class FindByProductIdDto {
467
485
  productId: number;
@@ -684,24 +702,6 @@ export declare class createResourceDto {
684
702
  export declare class archiveDto {
685
703
  isArchive: boolean;
686
704
  }
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
- }
705
705
  export declare class FindProgramSeasonsByProgramIdDto {
706
706
  programId: number;
707
707
  }
@@ -1122,17 +1122,6 @@ export declare class ActivityTimes extends BondBaseEntity {
1122
1122
  proudct: Product;
1123
1123
  event: Event;
1124
1124
  }
1125
- export declare class Address extends BondBaseEntity {
1126
- city?: string;
1127
- street?: string;
1128
- streetNum?: string;
1129
- aptNum?: string;
1130
- zip?: string;
1131
- country?: string;
1132
- state?: string;
1133
- geo: any;
1134
- deletedAt?: Date;
1135
- }
1136
1125
  export declare class Answer extends OrganizationConnectionBaseEntity {
1137
1126
  questionId: number;
1138
1127
  question?: Questions;
@@ -1146,6 +1135,17 @@ export declare class Answer extends OrganizationConnectionBaseEntity {
1146
1135
  metaData: any | null;
1147
1136
  questionText: string | null;
1148
1137
  }
1138
+ export declare class Address extends BondBaseEntity {
1139
+ city?: string;
1140
+ street?: string;
1141
+ streetNum?: string;
1142
+ aptNum?: string;
1143
+ zip?: string;
1144
+ country?: string;
1145
+ state?: string;
1146
+ geo: any;
1147
+ deletedAt?: Date;
1148
+ }
1149
1149
  export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1150
1150
  questionnaireId: number;
1151
1151
  userId?: number;
@@ -1228,6 +1228,18 @@ export declare class CreditNote extends OrganizationConnectionBaseEntity {
1228
1228
  invoiceId: number;
1229
1229
  creditPaymentId: number;
1230
1230
  }
1231
+ export declare class CustomerCreditTransaction extends OrganizationConnectionBaseEntity {
1232
+ customerId: number;
1233
+ userId: number;
1234
+ amount: number;
1235
+ paymentId?: number;
1236
+ invoiceId?: number;
1237
+ description?: string;
1238
+ deletedAt?: Date;
1239
+ customer: Customer;
1240
+ invoice: Invoice;
1241
+ payment: Payment;
1242
+ }
1231
1243
  export declare class Customer extends OrganizationConnectionBaseEntity {
1232
1244
  name: string | null;
1233
1245
  entityId: number | null;
@@ -1262,18 +1274,6 @@ export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1262
1274
  pinToTop?: boolean;
1263
1275
  customer: Customer;
1264
1276
  }
1265
- export declare class CustomerCreditTransaction extends OrganizationConnectionBaseEntity {
1266
- customerId: number;
1267
- userId: number;
1268
- amount: number;
1269
- paymentId?: number;
1270
- invoiceId?: number;
1271
- description?: string;
1272
- deletedAt?: Date;
1273
- customer: Customer;
1274
- invoice: Invoice;
1275
- payment: Payment;
1276
- }
1277
1277
  export declare class Division extends BondBaseEntity {
1278
1278
  name: string;
1279
1279
  ordinal?: number;
@@ -1848,6 +1848,21 @@ export declare class Price extends OrganizationConnectionBaseEntity {
1848
1848
  discountValue?: number;
1849
1849
  taxIncludedPrice?: number;
1850
1850
  }
1851
+ export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1852
+ parentProductId: number;
1853
+ childProductId: number;
1854
+ relationType: PackageProductsRelationTypeEnum;
1855
+ timePeriod: AddonTimePeriodEnum;
1856
+ deletedAt?: Date;
1857
+ productResource: ProductResource;
1858
+ childProduct: Product;
1859
+ parentProduct: Product;
1860
+ price: number;
1861
+ isFlatPrice: boolean;
1862
+ durationMinutes?: number;
1863
+ durationDays?: number;
1864
+ level?: ProductPackageLevelEnum;
1865
+ }
1851
1866
  export declare class Product extends OrganizationConnectionBaseEntity {
1852
1867
  name: string;
1853
1868
  quantity: number;
@@ -1898,21 +1913,6 @@ export declare class Product extends OrganizationConnectionBaseEntity {
1898
1913
  activityTimes: ActivityTimes[];
1899
1914
  purchasedResources: PurchasedResource[];
1900
1915
  }
1901
- export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1902
- parentProductId: number;
1903
- childProductId: number;
1904
- relationType: PackageProductsRelationTypeEnum;
1905
- timePeriod: AddonTimePeriodEnum;
1906
- deletedAt?: Date;
1907
- productResource: ProductResource;
1908
- childProduct: Product;
1909
- parentProduct: Product;
1910
- price: number;
1911
- isFlatPrice: boolean;
1912
- durationMinutes?: number;
1913
- durationDays?: number;
1914
- level?: ProductPackageLevelEnum;
1915
- }
1916
1916
  export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
1917
1917
  productId: number;
1918
1918
  maxMonths?: number;
@@ -2216,6 +2216,10 @@ export declare class SeasonPool extends BondBaseEntity {
2216
2216
  purchasedResource: PurchasedResource;
2217
2217
  season: LeagueSeason;
2218
2218
  }
2219
+ export declare class SpacesDependency extends BondBaseEntity {
2220
+ blockingSpaceId: number;
2221
+ blockedSpaceId: number;
2222
+ }
2219
2223
  export declare class SeasonTeam extends BondBaseEntity {
2220
2224
  seasonId: number | null;
2221
2225
  teamId: number | null;
@@ -2226,10 +2230,6 @@ export declare class SeasonTeam extends BondBaseEntity {
2226
2230
  metaData: any | null;
2227
2231
  team: Team;
2228
2232
  }
2229
- export declare class SpacesDependency extends BondBaseEntity {
2230
- blockingSpaceId: number;
2231
- blockedSpaceId: number;
2232
- }
2233
2233
  export declare class Station extends OrganizationConnectionBaseEntity {
2234
2234
  name: string;
2235
2235
  facilityId: number;
@@ -2241,14 +2241,6 @@ export declare class Station extends OrganizationConnectionBaseEntity {
2241
2241
  subcategories: Subcategory[];
2242
2242
  shifts?: Shift[];
2243
2243
  }
2244
- export declare class StationToSubcategory extends OrganizationConnectionBaseEntity {
2245
- stationId: number;
2246
- subcategoryId: number;
2247
- productType: ProductTypesEnum;
2248
- deletedAt?: Date;
2249
- station: Station;
2250
- subcategory: Subcategory;
2251
- }
2252
2244
  export declare class Subcategory extends OrganizationConnectionBaseEntity {
2253
2245
  productType: ProductTypesEnum;
2254
2246
  name: string;
@@ -2257,6 +2249,14 @@ export declare class Subcategory extends OrganizationConnectionBaseEntity {
2257
2249
  stationToSubcategories: StationToSubcategory[];
2258
2250
  stations: Station[];
2259
2251
  }
2252
+ export declare class StationToSubcategory extends OrganizationConnectionBaseEntity {
2253
+ stationId: number;
2254
+ subcategoryId: number;
2255
+ productType: ProductTypesEnum;
2256
+ deletedAt?: Date;
2257
+ station: Station;
2258
+ subcategory: Subcategory;
2259
+ }
2260
2260
  export declare class Team extends BondBaseEntity {
2261
2261
  name: string | null;
2262
2262
  description: string | null;
@@ -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;
@@ -3351,6 +3346,13 @@ export declare class ImportedPaymentDto {
3351
3346
  date: string;
3352
3347
  time: string;
3353
3348
  }
3349
+ export declare class PunchPassDto {
3350
+ CustomerID: string;
3351
+ QuantityLeft: number;
3352
+ BondProgramID: number;
3353
+ BondSessionID: number;
3354
+ ProductID: number;
3355
+ }
3354
3356
  export declare class ProductIdsDto {
3355
3357
  productIds?: number[];
3356
3358
  }
@@ -3360,13 +3362,6 @@ export declare class ProductImportDto {
3360
3362
  resourceIds: number[];
3361
3363
  oldId: number;
3362
3364
  }
3363
- export declare class PunchPassDto {
3364
- CustomerID: string;
3365
- QuantityLeft: number;
3366
- BondProgramID: number;
3367
- BondSessionID: number;
3368
- ProductID: number;
3369
- }
3370
3365
  export declare class ImportedSlotProductDto {
3371
3366
  slotID?: string;
3372
3367
  name?: string;
@@ -3449,15 +3444,15 @@ export declare class SeasonRounds extends BondBaseEntity {
3449
3444
  divisionId?: number;
3450
3445
  name: string;
3451
3446
  }
3452
- export declare class TeamEvents extends BondBaseEntity {
3453
- teamId: number | null;
3454
- eventId: number | null;
3455
- status: number | null;
3456
- }
3457
3447
  export declare class Lock extends BondBaseEntity {
3458
3448
  name: string;
3459
3449
  locked?: Date;
3460
3450
  }
3451
+ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3452
+ facilityId: number;
3453
+ code: string;
3454
+ config?: any;
3455
+ }
3461
3456
  export interface ValidatedMonthAndDay {
3462
3457
  valid: boolean;
3463
3458
  month?: number;
@@ -3479,17 +3474,6 @@ export interface PaymentStatusesDict {
3479
3474
  export interface PaymentStatusDict {
3480
3475
  [id: number]: ReservationPaymentStatusEnum;
3481
3476
  }
3482
- export declare class CreateMonitorConfigDto {
3483
- facilityId: number;
3484
- name: string;
3485
- code: string;
3486
- config: any;
3487
- }
3488
- export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3489
- facilityId: number;
3490
- code: string;
3491
- config?: any;
3492
- }
3493
3477
  export declare class NotifyTracker extends BondBaseEntity {
3494
3478
  userId: number;
3495
3479
  organizationId: number;
@@ -3583,6 +3567,12 @@ export declare class OrganizationUsers extends BondBaseEntity {
3583
3567
  organisationId: number | null;
3584
3568
  userId: number | null;
3585
3569
  }
3570
+ export declare class CreateMonitorConfigDto {
3571
+ facilityId: number;
3572
+ name: string;
3573
+ code: string;
3574
+ config: any;
3575
+ }
3586
3576
  export interface UnallocatedEventsFilters {
3587
3577
  programsIds?: number[];
3588
3578
  sessionsIds?: number[];
@@ -3767,16 +3757,6 @@ export interface ExtendedLineItems {
3767
3757
  products: LineItems[];
3768
3758
  events: LineItems[];
3769
3759
  }
3770
- export interface RefundResult extends PaymentsResults {
3771
- successfulLineItems: RefundLineItemAmountDto[];
3772
- failedLineItems: RefundLineItemAmountDto[];
3773
- invoice?: Invoice;
3774
- }
3775
- export interface RefundResultWithLineItemsDict extends PaymentsResults {
3776
- successfulLineItems: Map<number, RefundLineItemAmountDto>;
3777
- failedLineItems: Map<number, RefundLineItemAmountDto>;
3778
- totalAmountProcessed: number;
3779
- }
3780
3760
  export declare class AddonDto {
3781
3761
  productId: number;
3782
3762
  id?: number;
@@ -3804,6 +3784,16 @@ export declare class EditAddonDto {
3804
3784
  totalPrice: number;
3805
3785
  unitPrice?: number;
3806
3786
  }
3787
+ export interface RefundResult extends PaymentsResults {
3788
+ successfulLineItems: RefundLineItemAmountDto[];
3789
+ failedLineItems: RefundLineItemAmountDto[];
3790
+ invoice?: Invoice;
3791
+ }
3792
+ export interface RefundResultWithLineItemsDict extends PaymentsResults {
3793
+ successfulLineItems: Map<number, RefundLineItemAmountDto>;
3794
+ failedLineItems: Map<number, RefundLineItemAmountDto>;
3795
+ totalAmountProcessed: number;
3796
+ }
3807
3797
  export declare class InvoiceDto {
3808
3798
  invoiceId?: string | null;
3809
3799
  organizationId: number;
@@ -4565,15 +4555,15 @@ export declare class ChangeRolePermissionsDto {
4565
4555
  export declare class CreateRoleDto {
4566
4556
  name: string;
4567
4557
  }
4568
- export declare class Role extends OrganizationConnectionBaseEntity {
4558
+ export declare class Permission extends BondBaseEntity {
4569
4559
  name: string;
4570
4560
  deletedAt?: Date;
4571
- permissions: Permission[];
4572
- usersRoles: UserRole[];
4573
4561
  }
4574
- export declare class Permission extends BondBaseEntity {
4562
+ export declare class Role extends OrganizationConnectionBaseEntity {
4575
4563
  name: string;
4576
4564
  deletedAt?: Date;
4565
+ permissions: Permission[];
4566
+ usersRoles: UserRole[];
4577
4567
  }
4578
4568
  export declare class UserRole extends OrganizationConnectionBaseEntity {
4579
4569
  deletedAt?: Date;
@@ -4582,6 +4572,11 @@ export declare class UserRole extends OrganizationConnectionBaseEntity {
4582
4572
  role: Role;
4583
4573
  user: User;
4584
4574
  }
4575
+ export declare class ColumnNumericTransformer {
4576
+ to(data: number): number;
4577
+ from(data: string): number;
4578
+ }
4579
+ export declare function convertToNumber(data: string): number;
4585
4580
  export declare class CloseShiftDto {
4586
4581
  closingCashAmount: number;
4587
4582
  }
@@ -4608,6 +4603,10 @@ export declare class FindShiftsFormattedFilters {
4608
4603
  startDate?: Date;
4609
4604
  endDate?: Date;
4610
4605
  }
4606
+ export declare class OpenShiftDto {
4607
+ openingCashAmount: number;
4608
+ stationId: number;
4609
+ }
4611
4610
  export declare class ShiftManagementClosingAmount {
4612
4611
  shiftId: number;
4613
4612
  managementClosingCashAmount: number;
@@ -4615,10 +4614,6 @@ export declare class ShiftManagementClosingAmount {
4615
4614
  export declare class ManagementClosingOfShiftsDto {
4616
4615
  managementClosingData: ShiftManagementClosingAmount[];
4617
4616
  }
4618
- export declare class OpenShiftDto {
4619
- openingCashAmount: number;
4620
- stationId: number;
4621
- }
4622
4617
  export declare class Shift extends OrganizationConnectionBaseEntity {
4623
4618
  stationId: number;
4624
4619
  station?: Station;
@@ -4648,3 +4643,8 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4648
4643
  closingManager?: User;
4649
4644
  reconcilingUser?: User;
4650
4645
  }
4646
+ export declare class TeamEvents extends BondBaseEntity {
4647
+ teamId: number | null;
4648
+ eventId: number | null;
4649
+ status: number | null;
4650
+ }