@bondsports/types 0.0.160 → 0.0.162

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
@@ -20,6 +20,13 @@ export declare class UserAnswersDto {
20
20
  export declare class GetByQuestionnaireIdsDto {
21
21
  questionnaireIds: string;
22
22
  }
23
+ export declare class FindBookingTypeSettingDto {
24
+ organizationId: number;
25
+ facilityId: number;
26
+ spaceId: number;
27
+ bookingDate: string;
28
+ bookingTime: string;
29
+ }
23
30
  export declare enum EConfigurationKeys {
24
31
  MAX_ALLOWED_PM_FAILURE = "max_allowed_pm_failure"
25
32
  }
@@ -285,13 +292,6 @@ export declare class GetGlCodeDto {
285
292
  createdAt: Date;
286
293
  updatedAt: Date;
287
294
  }
288
- export declare class FindBookingTypeSettingDto {
289
- organizationId: number;
290
- facilityId: number;
291
- spaceId: number;
292
- bookingDate: string;
293
- bookingTime: string;
294
- }
295
295
  export declare class FindByProgramSeasonIdDto {
296
296
  seasonId: number;
297
297
  }
@@ -463,24 +463,6 @@ export declare class CreateGroupPricingWithProduct {
463
463
  discountValue?: number;
464
464
  discountMethod?: DiscountMethodsEnum;
465
465
  }
466
- export declare class CreateUpdateVariantsDto {
467
- organizationId: number;
468
- parentProductId: number;
469
- variantTitles: VariantTitleDto[];
470
- variants: VariantDto[];
471
- }
472
- export declare class VariantTitleDto {
473
- titleName: string;
474
- titleId: number;
475
- }
476
- export declare class VariantDto {
477
- name: string;
478
- price: number;
479
- variantId: number;
480
- currency: CurrencyEnum;
481
- startDate: Date;
482
- endDate: Date;
483
- }
484
466
  export declare class FindByProductIdDto {
485
467
  productId: number;
486
468
  }
@@ -892,6 +874,50 @@ export declare class MoveParticipantDto {
892
874
  resourceId: number;
893
875
  invoiceId: number;
894
876
  }
877
+ export declare class FindProgramsByOrganizationIdDto {
878
+ organizationId: number;
879
+ programType?: ProgramTypesEnum;
880
+ }
881
+ export declare class FindProgramByIdDto {
882
+ programId: number;
883
+ }
884
+ export declare class FindProgramByOrgIdAndIdDto {
885
+ programId: number;
886
+ organizationId: number;
887
+ }
888
+ export declare class BaseProgramDto {
889
+ type: ProgramTypesEnum;
890
+ name: string;
891
+ sport: SportsEnum;
892
+ minAge: string;
893
+ maxAge: string;
894
+ gender: GenderEnum;
895
+ level?: LevelOfPlayEnum[];
896
+ description?: string;
897
+ GL?: string;
898
+ status: PublishingStatusEnum;
899
+ organizationId: number;
900
+ userCreatorId: number;
901
+ highlights: ProgramHighlights[];
902
+ longDescription?: string;
903
+ requiredProductIds: number[];
904
+ }
905
+ export declare class CreateProgramDto extends BaseProgramDto {
906
+ }
907
+ export declare class UpdateProgramDto extends BaseProgramDto {
908
+ programId: number;
909
+ mainMediaId: number;
910
+ }
911
+ export declare class UpdateProgramStatusDto {
912
+ programId: number;
913
+ status: PublishingStatusEnum;
914
+ }
915
+ export declare class ProgramHighlightDto {
916
+ data: string;
917
+ ordinal: number;
918
+ type: ProgramHighlightTypeEnum;
919
+ title: string;
920
+ }
895
921
  export declare class PurchasePaymentDto {
896
922
  token: string;
897
923
  type: PaymentMethodTypeEnum;
@@ -965,49 +991,23 @@ export declare class PartialPaymentAsUserDto {
965
991
  paymentMethodData: any;
966
992
  platform?: PlatformsEnum;
967
993
  }
968
- export declare class FindProgramsByOrganizationIdDto {
994
+ export declare class CreateUpdateVariantsDto {
969
995
  organizationId: number;
970
- programType?: ProgramTypesEnum;
971
- }
972
- export declare class FindProgramByIdDto {
973
- programId: number;
996
+ parentProductId: number;
997
+ variantTitles: VariantTitleDto[];
998
+ variants: VariantDto[];
974
999
  }
975
- export declare class FindProgramByOrgIdAndIdDto {
976
- programId: number;
977
- organizationId: number;
1000
+ export declare class VariantTitleDto {
1001
+ titleName: string;
1002
+ titleId: number;
978
1003
  }
979
- export declare class BaseProgramDto {
980
- type: ProgramTypesEnum;
1004
+ export declare class VariantDto {
981
1005
  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;
1006
+ price: number;
1007
+ variantId: number;
1008
+ currency: CurrencyEnum;
1009
+ startDate: Date;
1010
+ endDate: Date;
1011
1011
  }
1012
1012
  export declare class CreateResourceGroupDto {
1013
1013
  name: string;
@@ -1291,6 +1291,10 @@ export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1291
1291
  export declare class EntitlementGroup extends OrganizationConnectionBaseEntity {
1292
1292
  name: string | null;
1293
1293
  }
1294
+ export declare class EntitlementTerms extends OrganizationConnectionBaseEntity {
1295
+ groupId: number;
1296
+ terms: IEntitlementTerms[];
1297
+ }
1294
1298
  export declare class EventAttendee extends BondBaseEntity {
1295
1299
  status: RequestStatusEnum | null;
1296
1300
  hasPaid: boolean | null;
@@ -1306,10 +1310,6 @@ export declare class EventAttendee extends BondBaseEntity {
1306
1310
  event: Event;
1307
1311
  purchasedResource: PurchasedResource;
1308
1312
  }
1309
- export declare class EntitlementTerms extends OrganizationConnectionBaseEntity {
1310
- groupId: number;
1311
- terms: IEntitlementTerms[];
1312
- }
1313
1313
  export declare class Event extends OrganizationConnectionBaseEntity {
1314
1314
  constructor();
1315
1315
  defineCalculatedDateTimeProps(): void;
@@ -1848,30 +1848,6 @@ 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
- }
1866
- export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
1867
- productId: number;
1868
- maxMonths?: number;
1869
- dayOfMonth?: number;
1870
- name: string;
1871
- deletedAt?: Date;
1872
- schedule: PaymentPlanSchedule[];
1873
- product?: Product;
1874
- }
1875
1851
  export declare class Product extends OrganizationConnectionBaseEntity {
1876
1852
  name: string;
1877
1853
  quantity: number;
@@ -1922,6 +1898,30 @@ export declare class Product extends OrganizationConnectionBaseEntity {
1922
1898
  activityTimes: ActivityTimes[];
1923
1899
  purchasedResources: PurchasedResource[];
1924
1900
  }
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
+ export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
1917
+ productId: number;
1918
+ maxMonths?: number;
1919
+ dayOfMonth?: number;
1920
+ name: string;
1921
+ deletedAt?: Date;
1922
+ schedule: PaymentPlanSchedule[];
1923
+ product?: Product;
1924
+ }
1925
1925
  export declare class ProductResource extends OrganizationConnectionBaseEntity {
1926
1926
  productId: number;
1927
1927
  resourceId: number;
@@ -1941,13 +1941,6 @@ export declare class ProductToVariant extends OrganizationConnectionBaseEntity {
1941
1941
  productId: number;
1942
1942
  variantId: number;
1943
1943
  }
1944
- export declare class ProductsReservedForCustomers extends OrganizationConnectionBaseEntity {
1945
- productId: number;
1946
- customerId: number;
1947
- customer: Customer;
1948
- deletedAt?: Date;
1949
- product: Product;
1950
- }
1951
1944
  export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1952
1945
  productId: number;
1953
1946
  userId: number;
@@ -1987,6 +1980,13 @@ export declare class Program extends BondBaseEntity {
1987
1980
  programSeason: ProgramSeason[];
1988
1981
  purchasedResources: PurchasedResource[];
1989
1982
  }
1983
+ export declare class ProductsReservedForCustomers extends OrganizationConnectionBaseEntity {
1984
+ productId: number;
1985
+ customerId: number;
1986
+ customer: Customer;
1987
+ deletedAt?: Date;
1988
+ product: Product;
1989
+ }
1990
1990
  export declare class ProgramHighlights extends BondBaseEntity {
1991
1991
  type: ProgramHighlightTypeEnum;
1992
1992
  ordinal: number | null;
@@ -2173,6 +2173,14 @@ export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2173
2173
  childrenSlotIds: number[];
2174
2174
  deletedAt?: Date;
2175
2175
  }
2176
+ export declare class School extends BondBaseEntity {
2177
+ name: string | null;
2178
+ alias: string[] | null;
2179
+ addressId: number | null;
2180
+ website: string | null;
2181
+ phone: string | null;
2182
+ dataId: number | null;
2183
+ }
2176
2184
  export declare class SeasonAttendee extends BondBaseEntity {
2177
2185
  status: RequestStatusEnum;
2178
2186
  paymentStatus: PaymentStatusEnum;
@@ -2187,14 +2195,6 @@ export declare class SeasonAttendee extends BondBaseEntity {
2187
2195
  deletedAt?: Date;
2188
2196
  purchasedResource: PurchasedResource;
2189
2197
  }
2190
- export declare class School extends BondBaseEntity {
2191
- name: string | null;
2192
- alias: string[] | null;
2193
- addressId: number | null;
2194
- website: string | null;
2195
- phone: string | null;
2196
- dataId: number | null;
2197
- }
2198
2198
  export declare class SeasonDivisions extends BondBaseEntity {
2199
2199
  name: string | null;
2200
2200
  ordinal: number | null;
@@ -2216,10 +2216,6 @@ 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
- }
2223
2219
  export declare class SeasonTeam extends BondBaseEntity {
2224
2220
  seasonId: number | null;
2225
2221
  teamId: number | null;
@@ -2230,6 +2226,10 @@ export declare class SeasonTeam extends BondBaseEntity {
2230
2226
  metaData: any | null;
2231
2227
  team: Team;
2232
2228
  }
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;
@@ -3443,21 +3443,27 @@ export declare class RoundEvents extends BaseEntity {
3443
3443
  createdAt: Date;
3444
3444
  updatedAt: Date;
3445
3445
  }
3446
- export declare class TeamEvents extends BondBaseEntity {
3447
- teamId: number | null;
3448
- eventId: number | null;
3449
- status: number | null;
3450
- }
3451
3446
  export declare class SeasonRounds extends BondBaseEntity {
3452
3447
  seasonId: number;
3453
3448
  ordinal?: number;
3454
3449
  divisionId?: number;
3455
3450
  name: string;
3456
3451
  }
3452
+ export declare class TeamEvents extends BondBaseEntity {
3453
+ teamId: number | null;
3454
+ eventId: number | null;
3455
+ status: number | null;
3456
+ }
3457
3457
  export declare class Lock extends BondBaseEntity {
3458
3458
  name: string;
3459
3459
  locked?: Date;
3460
3460
  }
3461
+ export declare class CreateMonitorConfigDto {
3462
+ facilityId: number;
3463
+ name: string;
3464
+ code: string;
3465
+ config: any;
3466
+ }
3461
3467
  export interface ValidatedMonthAndDay {
3462
3468
  valid: boolean;
3463
3469
  month?: number;
@@ -3479,17 +3485,18 @@ export interface PaymentStatusesDict {
3479
3485
  export interface PaymentStatusDict {
3480
3486
  [id: number]: ReservationPaymentStatusEnum;
3481
3487
  }
3482
- export declare class CreateMonitorConfigDto {
3483
- facilityId: number;
3484
- name: string;
3485
- code: string;
3486
- config: any;
3487
- }
3488
3488
  export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3489
3489
  facilityId: number;
3490
3490
  code: string;
3491
3491
  config?: any;
3492
3492
  }
3493
+ export declare class NotifyTracker extends BondBaseEntity {
3494
+ userId: number;
3495
+ organizationId: number;
3496
+ notifyMetadata?: any;
3497
+ notfiyMethodtype: NotifyMethodEnum;
3498
+ destination: string;
3499
+ }
3493
3500
  export declare class ByOrganizationIdDto {
3494
3501
  organizationId: number;
3495
3502
  }
@@ -3587,13 +3594,6 @@ export interface Duration {
3587
3594
  startDate: string;
3588
3595
  endDate: string;
3589
3596
  }
3590
- export declare class NotifyTracker extends BondBaseEntity {
3591
- userId: number;
3592
- organizationId: number;
3593
- notifyMetadata?: any;
3594
- notfiyMethodtype: NotifyMethodEnum;
3595
- destination: string;
3596
- }
3597
3597
  export declare class CustomerIdDto {
3598
3598
  customerId: number;
3599
3599
  }
@@ -3877,6 +3877,13 @@ export declare class LineItemDto {
3877
3877
  unitTaxPrice?: number;
3878
3878
  parentOrdinal?: number;
3879
3879
  }
3880
+ export declare class MaintenanceDto {
3881
+ id?: number;
3882
+ title: string;
3883
+ durationValue: number;
3884
+ maintenanceDurationdurationType: DurationUnitTypesEnum;
3885
+ maintenanceTiming: MaintenanceTimingEnum;
3886
+ }
3880
3887
  export declare class PurchasedResourceDto {
3881
3888
  resourceId?: number;
3882
3889
  resourceType: ResourceNameTypeEnum;
@@ -4032,12 +4039,8 @@ export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
4032
4039
  export declare class ReservationNotifyDto {
4033
4040
  notifyMethods?: NotifyMethodEnum[];
4034
4041
  }
4035
- export declare class MaintenanceDto {
4036
- id?: number;
4037
- title: string;
4038
- durationValue: number;
4039
- maintenanceDurationdurationType: DurationUnitTypesEnum;
4040
- maintenanceTiming: MaintenanceTimingEnum;
4042
+ export declare class UpdateReservationInvoiceDto {
4043
+ updateAddons?: boolean;
4041
4044
  }
4042
4045
  export declare class SegmentDto {
4043
4046
  id?: number;
@@ -4194,6 +4197,12 @@ export declare class Addon extends OrganizationConnectionBaseEntity {
4194
4197
  previousProductUsersIds?: number[];
4195
4198
  previousProductUsers?: ProductsUsers[];
4196
4199
  }
4200
+ export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4201
+ deletedAt?: Date;
4202
+ reservationId: number;
4203
+ invoiceId: number;
4204
+ slotId: number;
4205
+ }
4197
4206
  export declare class Reservation extends OrganizationConnectionBaseEntity {
4198
4207
  name?: string;
4199
4208
  description?: string;
@@ -4227,12 +4236,6 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
4227
4236
  targetGlobalPrice?: number;
4228
4237
  slots: Slot[];
4229
4238
  }
4230
- export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4231
- deletedAt?: Date;
4232
- reservationId: number;
4233
- invoiceId: number;
4234
- slotId: number;
4235
- }
4236
4239
  export declare class Segment extends OrganizationConnectionBaseEntity {
4237
4240
  deletedAt?: Date;
4238
4241
  reservationId: number;
@@ -4571,10 +4574,6 @@ export declare class ChangeRolePermissionsDto {
4571
4574
  export declare class CreateRoleDto {
4572
4575
  name: string;
4573
4576
  }
4574
- export declare class Permission extends BondBaseEntity {
4575
- name: string;
4576
- deletedAt?: Date;
4577
- }
4578
4577
  export declare class Role extends OrganizationConnectionBaseEntity {
4579
4578
  name: string;
4580
4579
  deletedAt?: Date;
@@ -4588,6 +4587,10 @@ export declare class UserRole extends OrganizationConnectionBaseEntity {
4588
4587
  role: Role;
4589
4588
  user: User;
4590
4589
  }
4590
+ export declare class Permission extends BondBaseEntity {
4591
+ name: string;
4592
+ deletedAt?: Date;
4593
+ }
4591
4594
  export declare class CloseShiftDto {
4592
4595
  closingCashAmount: number;
4593
4596
  }