@bondsports/types 0.0.108 → 0.0.110

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,109 +2,6 @@ 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 QuestionAnswersDto {
6
- questionId: number;
7
- value: any;
8
- }
9
- export declare class UserAnswersDto {
10
- userId: number;
11
- answers: QuestionAnswersDto[];
12
- }
13
- export declare class GetByQuestionnaireIdsDto {
14
- questionnaireIds: string;
15
- }
16
- export declare class FindBookingTypeSettingDto {
17
- organizationId: number;
18
- facilityId: number;
19
- spaceId: number;
20
- bookingDate: string;
21
- bookingTime: string;
22
- }
23
- export declare class FindFamilyAccountsDto {
24
- userId: number;
25
- }
26
- export declare class FindFamilyAccountsCustomerDto {
27
- customerId: number;
28
- organizationId: number;
29
- }
30
- export declare class FindUsersInFamilyAccountDto {
31
- familyAccountId: number;
32
- }
33
- export declare class CreateFamilyAccountDto {
34
- familyName: string;
35
- userId: number;
36
- }
37
- export declare class UpdateFamilyAccountNameDto {
38
- familyName: string;
39
- familyAccountId: number;
40
- }
41
- export declare class AddUserToFamilyAccountDto {
42
- familyAccountId: number;
43
- isUserAdmin: boolean;
44
- firstName: string;
45
- lastName: string;
46
- gender: GenderEnum;
47
- birthDate: string;
48
- sports?: number[];
49
- email?: string;
50
- }
51
- export declare class RemoveUserFromFamilyAccountDto {
52
- userId: number;
53
- familyAccountId: number;
54
- }
55
- export declare class FindGlCodeByOrganizationIdDto {
56
- organizationId: number;
57
- }
58
- export declare class GetGlCodeDto {
59
- id: number;
60
- organizationId: number;
61
- code: string;
62
- createdAt: Date;
63
- updatedAt: Date;
64
- }
65
- export declare class AddressDto {
66
- city: string;
67
- state: string;
68
- country: string;
69
- geo: number[];
70
- }
71
- export declare class OpeningTimeDto {
72
- open: string;
73
- close: string;
74
- dayOfWeek: number;
75
- }
76
- export declare class CreateFacilityDto {
77
- name: string;
78
- sports: number[];
79
- description?: string;
80
- longDescription?: string;
81
- info?: string;
82
- address: AddressDto;
83
- timezone: string;
84
- amenities: number[];
85
- openingTimes: OpeningTimeDto[];
86
- resourcesIds?: number[];
87
- }
88
- export declare class UpdateFacilityDetailsDto {
89
- name?: string;
90
- description?: string;
91
- longDescription?: string;
92
- info?: string;
93
- address?: AddressDto;
94
- timezone?: string;
95
- }
96
- export declare class UpdateFacilityOpeningTimesDto {
97
- openingTimes: OpeningTimeDto[];
98
- }
99
- export declare class UpdateFacilitySportsDto {
100
- sports: number[];
101
- }
102
- export declare class UpdateFacilityAmenitiesDto {
103
- amenities: number[];
104
- }
105
- export declare class FindFacilitiesOptionsDto extends PaginationQuery {
106
- nameSearch?: string;
107
- }
108
5
  export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
109
6
  membershipId: number;
110
7
  }
@@ -166,103 +63,208 @@ export declare class AddEditCustomerDto {
166
63
  emergencyContactName?: string;
167
64
  emergencyContactPhone?: string;
168
65
  }
169
- export declare class CreateMembershipDto {
66
+ export declare class FindEventByIdDto {
67
+ eventId: number;
170
68
  organizationId: number;
69
+ }
70
+ export declare class UpdateEventDto {
171
71
  name: string;
172
- description?: string;
173
- customerTypes: CustomerInMembershipTypeEnum[];
174
- activity: SportsEnum;
175
- facilityId: number;
176
- questionnaires: number[];
177
- minAgeYears: number;
178
- maxAgeYears: number;
179
- gender: GenderEnum;
180
- maxMembers?: number;
181
- maxMaleMembers?: number;
182
- maxFemaleMembers?: number;
183
72
  startDate: string;
184
73
  endDate: string;
185
- registrationStartDate?: Date;
186
- registrationEndDate?: Date;
187
- membershipType: MembershipTypeEnum;
188
- durationMonths: number;
189
- longDescription?: string;
190
- isAutoRenew?: boolean;
74
+ startTime: string;
75
+ endTime: string;
76
+ spacesIds?: number[];
77
+ publicNotes?: string;
78
+ privateNotes?: string;
79
+ isInformAttendees?: boolean;
80
+ maintenance?: MaintenanceDto[];
191
81
  }
192
- export declare class UpdateMembrshipDto extends CreateMembershipDto {
193
- id: number;
82
+ export declare class AddEventToSessionDto {
83
+ eventsData: UpdateEventDto[];
194
84
  }
195
- export declare class UpdateMembershipMediaDto {
196
- membershipId: number;
197
- mediaId: number;
85
+ export declare class EventsIdsQueryDto {
86
+ eventsIds: string;
198
87
  }
199
- export declare class FindMembershipByIdDto {
200
- membershipId: number;
88
+ export declare class UpdateMultipleEventsDto {
89
+ eventsIds: number[];
90
+ name?: string;
91
+ startTime?: string;
92
+ endTime?: string;
93
+ spacesIds?: number[];
94
+ publicNotes?: string;
95
+ privateNotes?: string;
96
+ isInformAttendees?: boolean;
97
+ maintenance?: MaintenanceDto[];
201
98
  }
202
- export declare class FindMembershipsByOrganizationIdDto {
99
+ export declare class FindByFacilityIdDto {
100
+ facilityId: number;
101
+ }
102
+ export declare class FindByFacilityIdAndOrganizationIdDto extends FindByFacilityIdDto {
203
103
  organizationId: number;
204
104
  }
205
- export declare class FindMembershipsByUserIdDto {
206
- userId: number;
105
+ export declare class FacilityEventsScheduleQueryParams {
106
+ programsIds?: string;
107
+ startDate?: string;
108
+ endDate?: string;
207
109
  }
208
- export declare class SetMembersStartDateByOrganization extends FindMembershipsByOrganizationIdDto {
209
- startDate: string;
110
+ export declare class ProgramLandingPageDto {
111
+ programId: number;
210
112
  }
211
- export declare class MembershipIdsDto {
212
- membershipIds?: number[];
113
+ export declare class ProgramLandingPageQueryDto {
114
+ futureLimit?: number;
213
115
  }
214
- export declare class MemberIdDto {
215
- memberId?: number;
116
+ export declare class ProgramSessionLandingPageDto {
117
+ programId: number;
118
+ sessionId: number;
216
119
  }
217
- export declare class FindMembersOptionsDto extends PaginationQuery {
218
- nameEmailSearch?: string;
219
- pastMemberships?: string;
120
+ export interface IEventOfSessionDetails {
121
+ id: number;
122
+ name: string;
123
+ programId: number;
124
+ programType: ProgramTypesEnum;
125
+ sessionId: number;
126
+ sessionName: string;
127
+ isPublic: boolean;
128
+ startDate: Date;
129
+ endDate: Date;
130
+ startTime: string;
131
+ endTime: string;
132
+ resources: IBasicSpaceAndSlotCreator[];
133
+ attenedanceCount: number;
134
+ checkedInCount: number;
135
+ missingPaymentCount: number;
136
+ publicNotes: string;
137
+ privateNotes: string;
138
+ slots?: Slot[];
220
139
  }
221
- export declare class CancelMembershipDto {
222
- isImmediatelyCancel: boolean;
223
- cancellationReason?: string;
140
+ export interface IAttendeeOfEvent {
141
+ eventId: number;
142
+ userId: number;
143
+ lastName: string;
144
+ firstName: string;
145
+ birthDate: string;
146
+ mediaURL: string;
147
+ signedWaiver: string;
148
+ entryStatus: EntryStatusEnum;
149
+ paymentStatus: PaymentStatusEnum;
150
+ addOns: {
151
+ productId: number;
152
+ productName: string;
153
+ }[];
154
+ totalPasses?: number;
155
+ leftPasses?: number;
156
+ addonProductUserIds: number[];
224
157
  }
225
- export declare class CreateEntitlementTermsDto {
226
- organizationId: number;
227
- entitlementGroupId: number;
228
- terms: IEntitlementTerms[];
158
+ export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
159
+ nameSearch?: string;
160
+ isCheckedIn?: string;
161
+ isNotCheckedIn?: string;
162
+ hasAddons?: string;
163
+ isWaiverSigned?: string;
164
+ statuses?: string;
229
165
  }
230
- export declare class FindEntitlementTermsByGroupIdDto {
231
- entitlementGroupId: number;
166
+ export declare class BasicActivityTimesDto {
167
+ dayOfWeek: number;
168
+ close: string;
169
+ open: string;
170
+ availabilityStartDate?: string;
171
+ availabilityEndDate?: string;
232
172
  }
233
- export declare class FindEntitlementTermsByVariablesDto {
234
- user: any;
235
- userVariables: IQuestionAnswerObject[];
173
+ export declare class QuestionAnswersDto {
174
+ questionId: number;
175
+ value: any;
236
176
  }
237
- export declare class FindLowestPriceDto {
238
- organizationId: number;
239
- user?: any;
240
- answers?: IQuestionAnswerObject[];
241
- itemIds: number[];
242
- itemType?: ResourceNameTypeEnum;
243
- startDate?: Date;
177
+ export declare class UserAnswersDto {
178
+ userId: number;
179
+ answers: QuestionAnswersDto[];
244
180
  }
245
- export declare class FindGroupItemsPricingsDto {
246
- groupsIds: number[];
247
- itemsIds: number[];
181
+ export declare class GetByQuestionnaireIdsDto {
182
+ questionnaireIds: string;
248
183
  }
249
- export declare class CreateEntitlementGroupDto {
184
+ export declare class FindGlCodeByOrganizationIdDto {
185
+ organizationId: number;
186
+ }
187
+ export declare class GetGlCodeDto {
188
+ id: number;
189
+ organizationId: number;
190
+ code: string;
191
+ createdAt: Date;
192
+ updatedAt: Date;
193
+ }
194
+ export declare class AddressDto {
195
+ city: string;
196
+ state: string;
197
+ country: string;
198
+ geo: number[];
199
+ }
200
+ export declare class OpeningTimeDto {
201
+ open: string;
202
+ close: string;
203
+ dayOfWeek: number;
204
+ }
205
+ export declare class CreateFacilityDto {
250
206
  name: string;
207
+ sports: number[];
208
+ description?: string;
209
+ longDescription?: string;
210
+ info?: string;
211
+ address: AddressDto;
212
+ timezone: string;
213
+ amenities: number[];
214
+ openingTimes: OpeningTimeDto[];
215
+ resourcesIds?: number[];
251
216
  }
252
- export declare class GetEntitlementGroupPricingDto {
253
- itemIds: number[];
254
- itemType: string;
217
+ export declare class UpdateFacilityDetailsDto {
218
+ name?: string;
219
+ description?: string;
220
+ longDescription?: string;
221
+ info?: string;
222
+ address?: AddressDto;
223
+ timezone?: string;
255
224
  }
256
- export declare class FindEntitlementGroupByIdDto {
257
- groupid: number;
225
+ export declare class UpdateFacilityOpeningTimesDto {
226
+ openingTimes: OpeningTimeDto[];
258
227
  }
259
- export declare class CreateGroupPricingWithProduct {
260
- groupId: number;
261
- price: number;
262
- startDate?: Date;
263
- endDate?: Date;
264
- discountValue?: number;
265
- discountMethod?: DiscountMethodsEnum;
228
+ export declare class UpdateFacilitySportsDto {
229
+ sports: number[];
230
+ }
231
+ export declare class UpdateFacilityAmenitiesDto {
232
+ amenities: number[];
233
+ }
234
+ export declare class FindFacilitiesOptionsDto extends PaginationQuery {
235
+ nameSearch?: string;
236
+ }
237
+ export declare class FindFamilyAccountsDto {
238
+ userId: number;
239
+ }
240
+ export declare class FindFamilyAccountsCustomerDto {
241
+ customerId: number;
242
+ organizationId: number;
243
+ }
244
+ export declare class FindUsersInFamilyAccountDto {
245
+ familyAccountId: number;
246
+ }
247
+ export declare class CreateFamilyAccountDto {
248
+ familyName: string;
249
+ userId: number;
250
+ }
251
+ export declare class UpdateFamilyAccountNameDto {
252
+ familyName: string;
253
+ familyAccountId: number;
254
+ }
255
+ export declare class AddUserToFamilyAccountDto {
256
+ familyAccountId: number;
257
+ isUserAdmin: boolean;
258
+ firstName: string;
259
+ lastName: string;
260
+ gender: GenderEnum;
261
+ birthDate: string;
262
+ sports?: number[];
263
+ email?: string;
264
+ }
265
+ export declare class RemoveUserFromFamilyAccountDto {
266
+ userId: number;
267
+ familyAccountId: number;
266
268
  }
267
269
  export declare class FindByProgramSeasonIdDto {
268
270
  seasonId: number;
@@ -337,106 +339,17 @@ export declare class MoveTeamOrMemberDto implements IMoveSeason {
337
339
  export declare class MoveTeamOrMembersByCsvDTO {
338
340
  fileName: string;
339
341
  }
340
- export declare class FindEventByIdDto {
341
- eventId: number;
342
- organizationId: number;
343
- }
344
- export declare class UpdateEventDto {
345
- name: string;
346
- startDate: string;
347
- endDate: string;
348
- startTime: string;
349
- endTime: string;
350
- spacesIds?: number[];
351
- publicNotes?: string;
352
- privateNotes?: string;
353
- isInformAttendees?: boolean;
354
- minutesBeforeSlot?: number;
355
- minutesAfterSlot?: number;
356
- }
357
- export declare class AddEventToSessionDto {
358
- eventsData: UpdateEventDto[];
359
- }
360
- export declare class EventsIdsQueryDto {
361
- eventsIds: string;
362
- }
363
- export declare class UpdateMultipleEventsDto {
364
- eventsIds: number[];
365
- name?: string;
366
- startTime?: string;
367
- endTime?: string;
368
- spacesIds?: number[];
369
- publicNotes?: string;
370
- privateNotes?: string;
371
- isInformAttendees?: boolean;
372
- minutesBeforeSlot?: number;
373
- minutesAfterSlot?: number;
374
- }
375
- export declare class FindByFacilityIdDto {
376
- facilityId: number;
377
- }
378
- export declare class FindByFacilityIdAndOrganizationIdDto extends FindByFacilityIdDto {
379
- organizationId: number;
380
- }
381
- export declare class FacilityEventsScheduleQueryParams {
382
- programsIds?: string;
383
- startDate?: string;
384
- endDate?: string;
385
- }
386
- export declare class ProgramLandingPageDto {
387
- programId: number;
388
- }
389
- export declare class ProgramLandingPageQueryDto {
390
- futureLimit?: number;
391
- }
392
- export declare class ProgramSessionLandingPageDto {
393
- programId: number;
394
- sessionId: number;
395
- }
396
- export interface IEventOfSessionDetails {
342
+ export declare class FindOneParams {
397
343
  id: number;
398
- name: string;
399
- programId: number;
400
- programType: ProgramTypesEnum;
401
- sessionId: number;
402
- sessionName: string;
403
- isPublic: boolean;
404
- startDate: Date;
405
- endDate: Date;
406
- startTime: string;
407
- endTime: string;
408
- resources: IBasicSpaceAndSlotCreator[];
409
- attenedanceCount: number;
410
- checkedInCount: number;
411
- missingPaymentCount: number;
412
- publicNotes: string;
413
- privateNotes: string;
414
344
  }
415
- export interface IAttendeeOfEvent {
416
- eventId: number;
417
- userId: number;
418
- lastName: string;
419
- firstName: string;
420
- birthDate: string;
421
- mediaURL: string;
422
- signedWaiver: string;
423
- entryStatus: EntryStatusEnum;
424
- paymentStatus: PaymentStatusEnum;
425
- addOns: {
426
- productId: number;
427
- productName: string;
428
- }[];
429
- totalPasses?: number;
430
- leftPasses?: number;
431
- addonProductUserIds: number[];
345
+ export declare class PaginationQuery {
346
+ page: number;
347
+ itemsPerPage: number;
432
348
  }
433
- export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
434
- nameSearch?: string;
435
- isCheckedIn?: string;
436
- isNotCheckedIn?: string;
437
- hasAddons?: string;
438
- isWaiverSigned?: string;
439
- statuses?: string;
349
+ export declare class PaginationRangeQuery {
350
+ startPage: number;
351
+ endPage: number;
352
+ itemsPerPage: number;
440
353
  }
441
354
  export declare class CreateUpdateVariantsDto {
442
355
  organizationId: number;
@@ -456,37 +369,344 @@ export declare class VariantDto {
456
369
  startDate: Date;
457
370
  endDate: Date;
458
371
  }
459
- export declare class FindProgramSeasonsByProgramIdDto {
460
- programId: number;
372
+ export declare class CreateEntitlementTermsDto {
373
+ organizationId: number;
374
+ entitlementGroupId: number;
375
+ terms: IEntitlementTerms[];
461
376
  }
462
- export declare class FindSessionsFiltersDto {
463
- status?: PublishingStatusEnum;
464
- isFullFetch?: boolean;
377
+ export declare class FindEntitlementTermsByGroupIdDto {
378
+ entitlementGroupId: number;
465
379
  }
466
- export declare class FindSessionsByProgramAndOrganizationDto extends FindProgramSeasonsByProgramIdDto {
380
+ export declare class FindEntitlementTermsByVariablesDto {
381
+ user: any;
382
+ userVariables: IQuestionAnswerObject[];
383
+ }
384
+ export declare class FindLowestPriceDto {
467
385
  organizationId: number;
386
+ user?: any;
387
+ answers?: IQuestionAnswerObject[];
388
+ itemIds: number[];
389
+ itemType?: ResourceNameTypeEnum;
390
+ startDate?: Date;
468
391
  }
469
- export declare class DeleteEventAttendeesDto {
470
- eventAttendeeIds: string;
392
+ export declare class FindGroupItemsPricingsDto {
393
+ groupsIds: number[];
394
+ itemsIds: number[];
471
395
  }
472
- export declare class FindProgramSeasonByIdQueryDto {
473
- includeResources?: boolean;
396
+ export declare class CreateEntitlementGroupDto {
397
+ name: string;
474
398
  }
475
- export declare class FindProgramSeasonByIdDto extends OptionalFindByOrganizationIdDto {
476
- seasonId: number;
399
+ export declare class GetEntitlementGroupPricingDto {
400
+ itemIds: number[];
401
+ itemType: string;
477
402
  }
478
- export declare class DeleteProgramSeasonByIDDto extends ByOrganizationIdDto {
479
- seasonId: number;
403
+ export declare class FindEntitlementGroupByIdDto {
404
+ groupid: number;
480
405
  }
481
- export declare class DeleteProductDto {
482
- deleteProduct?: boolean;
406
+ export declare class CreateGroupPricingWithProduct {
407
+ groupId: number;
408
+ price: number;
409
+ startDate?: Date;
410
+ endDate?: Date;
411
+ discountValue?: number;
412
+ discountMethod?: DiscountMethodsEnum;
483
413
  }
484
- export declare class FindRegisteredUserDto extends FindProgramSeasonByIdDto {
414
+ export declare class FindByProductIdDto {
415
+ productId: number;
416
+ }
417
+ export declare class FindPriceOfProductDto {
418
+ id: number;
485
419
  userId: number;
420
+ resources: ResourceDto[];
486
421
  }
487
- export declare class FindRegisteredUsersOptionsDto extends PaginationQuery {
488
- isFreeAgentsOnly?: boolean;
489
- isPunchCardUsers?: boolean;
422
+ export declare class FindPricesOfProductsDto {
423
+ products: FindPriceOfProductDto[];
424
+ answers: UserAnswersDto[];
425
+ }
426
+ export declare class FindPackageByResourceDto {
427
+ resourceType: ResourceNameTypeEnum;
428
+ resourceId: number;
429
+ }
430
+ export declare class FindProductsByResourceAsOrganizationDto extends FindPackageByResourceDto {
431
+ organizationId: number;
432
+ }
433
+ export declare class CreateProductsDto {
434
+ products: CreateProductDto[];
435
+ addOnsData?: ProductInPackage[];
436
+ addOnIds?: ExistingProductToPackageDto[];
437
+ }
438
+ export declare class CreatePaymentPlanDto extends PaymentPlanDto {
439
+ name: string;
440
+ }
441
+ export declare class CreateProductDto {
442
+ id?: number;
443
+ organizationId: number;
444
+ name: string;
445
+ quantity?: number;
446
+ isPublic: boolean;
447
+ startDate?: Date;
448
+ endDate?: Date;
449
+ description?: string;
450
+ resourcesType?: ResourceNameTypeEnum;
451
+ resourcesIdsToApplyOn?: number[];
452
+ GL?: string;
453
+ prices: CreatePriceDto[];
454
+ downpayment?: number;
455
+ productType: ProductTypesEnum;
456
+ subProductType?: string;
457
+ defaultForResourceId?: number;
458
+ defaultForResourceType?: ResourceNameTypeEnum;
459
+ entitlementGroupsPricings?: CreateGroupPricingWithProduct[];
460
+ variantTitleIds?: number[];
461
+ variants?: VariantWithPrice[];
462
+ variantParentId?: number;
463
+ isAddon?: boolean;
464
+ isArchive?: boolean;
465
+ timePeriod?: AddonTimePeriodEnum;
466
+ isProRated?: boolean;
467
+ paymentPlan?: CreatePaymentPlanDto;
468
+ isTaxInclusive?: boolean;
469
+ tax?: number;
470
+ sports?: number[];
471
+ durationMinutes?: number;
472
+ durationDays?: number;
473
+ forms?: number[];
474
+ isForAllCustomers?: boolean;
475
+ membershipsAvailableFor?: number[];
476
+ customersAvailableFor?: number[];
477
+ addons?: createRentalProductAddonDto[];
478
+ availabilityTimes?: createProductAvailabilityTimesDto[];
479
+ }
480
+ export declare class VariantWithPrice {
481
+ variantIds: number[];
482
+ price: CreatePriceDto[];
483
+ }
484
+ export declare class CreatePriceDto {
485
+ id?: number;
486
+ price: number;
487
+ currency: CurrencyEnum;
488
+ name: string;
489
+ startDate?: Date;
490
+ endDate?: Date;
491
+ discountValue?: number;
492
+ discountMethod?: DiscountMethodsEnum;
493
+ isDefaultPriceForProduct?: boolean;
494
+ }
495
+ export declare class CreatePackageDto {
496
+ parentProductId: number;
497
+ productsData?: ProductInPackage[];
498
+ productsIds?: ExistingProductToPackageDto[];
499
+ }
500
+ export declare class CreatePackageToResourceDto {
501
+ resourceId: number;
502
+ resourceType: ResourceNameTypeEnum;
503
+ isCreateToChildProducts: boolean;
504
+ productsData: ProductInPackage[];
505
+ }
506
+ export declare class ProductInPackage extends CreateProductDto {
507
+ relationType: PackageProductsRelationTypeEnum;
508
+ amountInPackage?: number;
509
+ level?: ProductPackageLevelEnum;
510
+ }
511
+ export declare class ExistingProductToPackageDto {
512
+ relationType: PackageProductsRelationTypeEnum;
513
+ id: number;
514
+ timePeriod?: AddonTimePeriodEnum;
515
+ level?: ProductPackageLevelEnum;
516
+ }
517
+ export declare class ConnectProductResourceDto {
518
+ productId: number;
519
+ resourceType: ResourceNameTypeEnum;
520
+ resourceIds: number[];
521
+ }
522
+ export declare class ReturnRequiredProductsDto {
523
+ userId: number;
524
+ productId: number;
525
+ redeemRelevantDate?: string;
526
+ }
527
+ export declare class FindByProductUserIdsDto {
528
+ userId: number;
529
+ organizationId: number;
530
+ }
531
+ export declare class AddRequiredProductsDto {
532
+ productId: number;
533
+ requiredProductIds: number[];
534
+ }
535
+ export declare class ProductsIdsDto extends PaginationQuery {
536
+ productIds?: number[];
537
+ includePrices?: boolean;
538
+ productType?: ProductTypesEnum;
539
+ includeAddons?: string;
540
+ }
541
+ export declare class GetByOrganizationIdDto {
542
+ organizationId?: number;
543
+ }
544
+ export declare class GetByOrgIdInvoiceIdDto extends GetByOrganizationIdDto {
545
+ invoiceId?: number;
546
+ }
547
+ export declare class GetProductsDto extends PaginationQuery {
548
+ productIds?: string;
549
+ includePrices?: boolean;
550
+ productType?: string;
551
+ productSubType?: string;
552
+ search?: string;
553
+ includeAddons?: boolean;
554
+ includeArchived?: boolean;
555
+ includeAllData?: boolean;
556
+ resourceIds?: string;
557
+ sports?: string;
558
+ }
559
+ export declare class GetAllVariantTitlesDto {
560
+ organizationId: number;
561
+ }
562
+ export declare class GetAllOrganizationAddonsDto {
563
+ organizationId: number;
564
+ }
565
+ export declare class CreateVariantTitleDto {
566
+ organizationId: number;
567
+ title: string;
568
+ variants: string[];
569
+ }
570
+ export declare class UpdateVariantTitleDto {
571
+ organizationId: number;
572
+ titleId: number;
573
+ title: string;
574
+ variants: string[];
575
+ }
576
+ export declare class GetByCustomerIdDto extends PaginationQuery {
577
+ customerId: number;
578
+ }
579
+ export declare class GetExtraProductDataDto {
580
+ isPublic?: boolean;
581
+ isGetByChildResources?: boolean;
582
+ isGetEntitlePricing?: boolean;
583
+ isGetAddOns?: boolean;
584
+ includeResources?: boolean;
585
+ includeArchived?: boolean;
586
+ }
587
+ export declare class GetBySessionType {
588
+ sessionType: 'event' | 'segment';
589
+ }
590
+ export declare class CreateSubcategoryDto {
591
+ productType: ProductTypesEnum;
592
+ name: string;
593
+ stationId?: number;
594
+ ordinal?: number;
595
+ }
596
+ export declare class CreateSubcategoriesDto {
597
+ subcategories: CreateSubcategoryDto[];
598
+ }
599
+ export declare class UpdateSubcategoryDto {
600
+ id: number;
601
+ productType?: ProductTypesEnum;
602
+ name?: string;
603
+ stationId?: number;
604
+ ordinal?: number;
605
+ }
606
+ export declare class GetSubcategoryDto {
607
+ stationId?: number;
608
+ }
609
+ export declare class SetStationSubcategoriesDto {
610
+ stationId: number;
611
+ subcategoryIds?: number[];
612
+ categories?: string[];
613
+ }
614
+ export declare class createRentalProductAddonDto {
615
+ productId: number;
616
+ price: number;
617
+ isFlatPrice: boolean;
618
+ isMandatory: boolean;
619
+ level: ProductPackageLevelEnum;
620
+ }
621
+ export declare class createProductAvailabilityTimesDto {
622
+ availabilityStartDate?: string;
623
+ availabilityEndDate?: string;
624
+ daysOfWeek: number[];
625
+ startTime: string;
626
+ endTime: string;
627
+ }
628
+ export declare class createResourceDto {
629
+ resourceId: number;
630
+ resourceType: ResourceNameTypeEnum;
631
+ }
632
+ export declare class archiveDto {
633
+ isArchive: boolean;
634
+ }
635
+ export declare class FindProgramsByOrganizationIdDto {
636
+ organizationId: number;
637
+ programType?: ProgramTypesEnum;
638
+ }
639
+ export declare class FindProgramByIdDto {
640
+ programId: number;
641
+ }
642
+ export declare class FindProgramByOrgIdAndIdDto {
643
+ programId: number;
644
+ organizationId: number;
645
+ }
646
+ export declare class BaseProgramDto {
647
+ type: ProgramTypesEnum;
648
+ name: string;
649
+ sport: SportsEnum;
650
+ minAge: string;
651
+ maxAge: string;
652
+ gender: GenderEnum;
653
+ level?: LevelOfPlayEnum[];
654
+ description?: string;
655
+ GL?: string;
656
+ status: PublishingStatusEnum;
657
+ organizationId: number;
658
+ userCreatorId: number;
659
+ highlights: ProgramHighlights[];
660
+ longDescription?: string;
661
+ requiredProductIds: number[];
662
+ }
663
+ export declare class CreateProgramDto extends BaseProgramDto {
664
+ }
665
+ export declare class UpdateProgramDto extends BaseProgramDto {
666
+ programId: number;
667
+ mainMediaId: number;
668
+ }
669
+ export declare class UpdateProgramStatusDto {
670
+ programId: number;
671
+ status: PublishingStatusEnum;
672
+ }
673
+ export declare class ProgramHighlightDto {
674
+ data: string;
675
+ ordinal: number;
676
+ type: ProgramHighlightTypeEnum;
677
+ title: string;
678
+ }
679
+ export declare class FindProgramSeasonsByProgramIdDto {
680
+ programId: number;
681
+ }
682
+ export declare class FindSessionsFiltersDto {
683
+ status?: PublishingStatusEnum;
684
+ isFullFetch?: boolean;
685
+ }
686
+ export declare class FindSessionsByProgramAndOrganizationDto extends FindProgramSeasonsByProgramIdDto {
687
+ organizationId: number;
688
+ }
689
+ export declare class DeleteEventAttendeesDto {
690
+ eventAttendeeIds: string;
691
+ }
692
+ export declare class FindProgramSeasonByIdQueryDto {
693
+ includeResources?: boolean;
694
+ }
695
+ export declare class FindProgramSeasonByIdDto extends OptionalFindByOrganizationIdDto {
696
+ seasonId: number;
697
+ }
698
+ export declare class DeleteProgramSeasonByIDDto extends ByOrganizationIdDto {
699
+ seasonId: number;
700
+ }
701
+ export declare class DeleteProductDto {
702
+ deleteProduct?: boolean;
703
+ }
704
+ export declare class FindRegisteredUserDto extends FindProgramSeasonByIdDto {
705
+ userId: number;
706
+ }
707
+ export declare class FindRegisteredUsersOptionsDto extends PaginationQuery {
708
+ isFreeAgentsOnly?: boolean;
709
+ isPunchCardUsers?: boolean;
490
710
  nameEmailSearch?: string;
491
711
  }
492
712
  export declare class BaseProgramSeasonDto {
@@ -584,8 +804,7 @@ export declare class SpaceResourcePairDto {
584
804
  spacesIds: number[];
585
805
  publicNotes?: string;
586
806
  privateNotes?: string;
587
- minutesBeforeSlot?: number;
588
- minutesAfterSlot?: number;
807
+ maintenance?: MaintenanceDto[];
589
808
  }
590
809
  export declare class BulkSpaceResourceAllocationDto {
591
810
  spaceResourcePairs: SpaceResourcePairDto[];
@@ -640,58 +859,6 @@ export declare class MoveParticipantDto {
640
859
  resourceId: number;
641
860
  invoiceId: number;
642
861
  }
643
- export declare class FindProgramsByOrganizationIdDto {
644
- organizationId: number;
645
- programType?: ProgramTypesEnum;
646
- }
647
- export declare class FindProgramByIdDto {
648
- programId: number;
649
- }
650
- export declare class FindProgramByOrgIdAndIdDto {
651
- programId: number;
652
- organizationId: number;
653
- }
654
- export declare class BaseProgramDto {
655
- type: ProgramTypesEnum;
656
- name: string;
657
- sport: SportsEnum;
658
- minAge: string;
659
- maxAge: string;
660
- gender: GenderEnum;
661
- level?: LevelOfPlayEnum[];
662
- description?: string;
663
- GL?: string;
664
- status: PublishingStatusEnum;
665
- organizationId: number;
666
- userCreatorId: number;
667
- highlights: ProgramHighlights[];
668
- longDescription?: string;
669
- requiredProductIds: number[];
670
- }
671
- export declare class CreateProgramDto extends BaseProgramDto {
672
- }
673
- export declare class UpdateProgramDto extends BaseProgramDto {
674
- programId: number;
675
- mainMediaId: number;
676
- }
677
- export declare class UpdateProgramStatusDto {
678
- programId: number;
679
- status: PublishingStatusEnum;
680
- }
681
- export declare class ProgramHighlightDto {
682
- data: string;
683
- ordinal: number;
684
- type: ProgramHighlightTypeEnum;
685
- title: string;
686
- }
687
- export declare class CreateResourceGroupDto {
688
- name: string;
689
- parentSlotId: number;
690
- facilityId: number;
691
- childrenSlotIds: number[];
692
- }
693
- export declare class UpdateResourceGroupDto extends CreateResourceGroupDto {
694
- }
695
862
  export declare class PurchasePaymentDto {
696
863
  token: string;
697
864
  type: PaymentMethodTypeEnum;
@@ -764,30 +931,61 @@ export declare class PartialPaymentAsUserDto {
764
931
  paymentMethodData: any;
765
932
  platform?: PlatformsEnum;
766
933
  }
767
- export declare class ResourceDto {
768
- type: ResourceNameTypeEnum;
769
- id: number;
934
+ export declare class SpaceByIdDto {
935
+ spaceId: number;
936
+ }
937
+ export declare class CreateSpaceDto {
938
+ name: string;
939
+ sports: number[];
940
+ description?: string;
941
+ longDescription?: string;
942
+ spaceType: ResourceSubTypeEnum;
943
+ isAddon?: boolean;
944
+ properties: SpacePropertiesEnum;
945
+ width?: number;
946
+ length?: number;
947
+ surface?: SurfacesEnum;
948
+ ages?: ResourceAgesEnum;
949
+ amenities: number[];
950
+ activityTimes: BasicActivityTimesDto[];
951
+ facilitiesIds: number[];
952
+ resourceGroupId?: number;
953
+ blockedResourcesIds?: number[];
770
954
  }
771
- export declare class FindByUserIdDto {
772
- userId: number;
955
+ export declare class UpdateSpaceDetailsDto {
956
+ name: string;
957
+ description?: string;
958
+ longDescription?: string;
959
+ isAddon?: boolean;
960
+ facilitiesIds: number[];
773
961
  }
774
- export declare class FindByFamilyAccountIdDto {
775
- familyAccountId?: number;
962
+ export declare class UpdateSpacePropertiesDto {
963
+ properties: SpacePropertiesEnum;
964
+ width?: number;
965
+ length?: number;
966
+ surface?: SurfacesEnum;
967
+ ages?: ResourceAgesEnum;
776
968
  }
777
- export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
778
- organizationId: number;
969
+ export declare class UpdateSpaceTimesDto {
970
+ activityTimes: BasicActivityTimesDto[];
779
971
  }
780
- export declare class FindOneParams {
781
- id: number;
972
+ export declare class UpdateSpaceRelationshipsDto {
973
+ resourceGroupId?: number;
974
+ blockedResourcesIds?: number[];
782
975
  }
783
- export declare class PaginationQuery {
784
- page: number;
785
- itemsPerPage: number;
976
+ export declare class SaveSpaceDependenciesDto {
977
+ blockedSpacesIds: number[];
978
+ parentSpaceId?: number;
786
979
  }
787
- export declare class PaginationRangeQuery {
788
- startPage: number;
789
- endPage: number;
790
- itemsPerPage: number;
980
+ export declare class FacilitySlotsScheduleQueryParams {
981
+ spacesIds?: string;
982
+ futureHoursLimit?: number;
983
+ }
984
+ export declare class FindResourcesOptionsDto extends PaginationQuery {
985
+ nameSearch?: string;
986
+ facilitiesIds?: string;
987
+ types?: string;
988
+ resourcesIds?: string;
791
989
  }
792
990
  export declare class StripeCustomerIdDto {
793
991
  userId: number;
@@ -799,18 +997,13 @@ export declare class AddACHTokenToCustomerDto {
799
997
  publicToken: string;
800
998
  accountId: string;
801
999
  }
802
- export declare class ActivityTimes extends BondBaseEntity {
803
- parentType: ResourceNameTypeEnum | ProductTypesEnum;
804
- parentId: number;
805
- dayOfWeek: number;
806
- open: string;
807
- close: string;
808
- deletedAt?: Date;
809
- program: ProgramSeason;
810
- availabilityStartDate: string;
811
- availabilityEndDate: string;
812
- proudct: Product;
813
- event: Event;
1000
+ export declare class CreateResourceGroupDto {
1001
+ name: string;
1002
+ parentSlotId: number;
1003
+ facilityId: number;
1004
+ childrenSlotIds: number[];
1005
+ }
1006
+ export declare class UpdateResourceGroupDto extends CreateResourceGroupDto {
814
1007
  }
815
1008
  export declare class ActivityLogRecord extends BondBaseEntity {
816
1009
  entityType: ResourceNameTypeEnum;
@@ -825,6 +1018,15 @@ export declare class ActivityLogRecord extends BondBaseEntity {
825
1018
  oldValue?: any;
826
1019
  newValue?: any;
827
1020
  }
1021
+ export declare class FindByUserIdDto {
1022
+ userId: number;
1023
+ }
1024
+ export declare class FindByFamilyAccountIdDto {
1025
+ familyAccountId?: number;
1026
+ }
1027
+ export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
1028
+ organizationId: number;
1029
+ }
828
1030
  export declare class Answer extends OrganizationConnectionBaseEntity {
829
1031
  questionId: number;
830
1032
  question?: Questions;
@@ -838,22 +1040,25 @@ export declare class Answer extends OrganizationConnectionBaseEntity {
838
1040
  metaData: any | null;
839
1041
  questionText: string | null;
840
1042
  }
1043
+ export declare class ActivityTimes extends BondBaseEntity {
1044
+ parentType: ResourceNameTypeEnum | ProductTypesEnum;
1045
+ parentId: number;
1046
+ dayOfWeek: number;
1047
+ open: string;
1048
+ close: string;
1049
+ deletedAt?: Date;
1050
+ program: ProgramSeason;
1051
+ availabilityStartDate: string;
1052
+ availabilityEndDate: string;
1053
+ proudct: Product;
1054
+ event: Event;
1055
+ }
841
1056
  export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
842
1057
  questionnaireId: number;
843
1058
  userId?: number;
844
1059
  answers: Answer[];
845
1060
  questionnaire: Questionnaires;
846
1061
  }
847
- export declare class Athlete extends BondBaseEntity {
848
- userId: number | null;
849
- metadata: object | null;
850
- athleteSports: AthleteSports[];
851
- }
852
- export declare class BondBaseEntity extends BaseEntity {
853
- id: number;
854
- createdAt: Date;
855
- updatedAt: Date;
856
- }
857
1062
  export declare class Address extends BondBaseEntity {
858
1063
  city?: string;
859
1064
  street?: string;
@@ -865,13 +1070,10 @@ export declare class Address extends BondBaseEntity {
865
1070
  geo: any;
866
1071
  deletedAt?: Date;
867
1072
  }
868
- export declare class BlockedDate extends BondBaseEntity {
869
- entityType: ResourceNameTypeEnum;
870
- entityId: number;
871
- name: string;
872
- startDate: Date;
873
- endDate: Date;
874
- deletedAt?: Date;
1073
+ export declare class Athlete extends BondBaseEntity {
1074
+ userId: number | null;
1075
+ metadata: object | null;
1076
+ athleteSports: AthleteSports[];
875
1077
  }
876
1078
  export declare class AthleteSports extends BondBaseEntity {
877
1079
  athleteId: number | null;
@@ -896,10 +1098,18 @@ export declare class BookedSessions extends BondBaseEntity {
896
1098
  publicNotes?: string;
897
1099
  slotType?: SlotTypeEnum;
898
1100
  }
899
- export declare class Configuration extends BondBaseEntity {
900
- area: string;
901
- key: string;
902
- value: string;
1101
+ export declare class BondBaseEntity extends BaseEntity {
1102
+ id: number;
1103
+ createdAt: Date;
1104
+ updatedAt: Date;
1105
+ }
1106
+ export declare class BlockedDate extends BondBaseEntity {
1107
+ entityType: ResourceNameTypeEnum;
1108
+ entityId: number;
1109
+ name: string;
1110
+ startDate: Date;
1111
+ endDate: Date;
1112
+ deletedAt?: Date;
903
1113
  }
904
1114
  export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity {
905
1115
  parentId: number;
@@ -911,6 +1121,18 @@ export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity
911
1121
  endTimeInDay: string;
912
1122
  directBookingFor: DirectBookingTypesEnum;
913
1123
  }
1124
+ export declare class FindBookingTypeSettingDto {
1125
+ organizationId: number;
1126
+ facilityId: number;
1127
+ spaceId: number;
1128
+ bookingDate: string;
1129
+ bookingTime: string;
1130
+ }
1131
+ export declare class Configuration extends BondBaseEntity {
1132
+ area: string;
1133
+ key: string;
1134
+ value: string;
1135
+ }
914
1136
  export declare class Connection extends BondBaseEntity {
915
1137
  connType: number | null;
916
1138
  from: number | null;
@@ -923,39 +1145,6 @@ export declare class Connection extends BondBaseEntity {
923
1145
  userCreatorId: number | null;
924
1146
  ownerId: number | null;
925
1147
  }
926
- export declare class CreditNote extends OrganizationConnectionBaseEntity {
927
- creditAmount: number;
928
- paymentProcessorId: string;
929
- userId: number;
930
- paymentId: number;
931
- invoiceId: number;
932
- creditPaymentId: number;
933
- }
934
- export declare class CustomerCreditTransaction extends OrganizationConnectionBaseEntity {
935
- customerId: number;
936
- userId: number;
937
- amount: number;
938
- paymentId?: number;
939
- invoiceId?: number;
940
- description?: string;
941
- deletedAt?: Date;
942
- customer: Customer;
943
- invoice: Invoice;
944
- payment: Payment;
945
- }
946
- export declare class CustomerNote extends OrganizationConnectionBaseEntity {
947
- customerId?: number;
948
- description: string;
949
- pinToTop?: boolean;
950
- customer: Customer;
951
- }
952
- export declare class BasicActivityTimesDto {
953
- dayOfWeek: number;
954
- close: string;
955
- open: string;
956
- availabilityStartDate?: string;
957
- availabilityEndDate?: string;
958
- }
959
1148
  export declare class Customer extends OrganizationConnectionBaseEntity {
960
1149
  name: string | null;
961
1150
  entityId: number | null;
@@ -984,33 +1173,44 @@ export declare class Customer extends OrganizationConnectionBaseEntity {
984
1173
  mainMedia: Media;
985
1174
  reservations?: Reservation[];
986
1175
  }
987
- export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1176
+ export declare class Division extends BondBaseEntity {
1177
+ name: string;
1178
+ ordinal?: number;
1179
+ programSeasonId: number;
1180
+ color: string;
1181
+ isDefault: boolean;
1182
+ groups: Group[];
1183
+ }
1184
+ export declare class CustomerCreditTransaction extends OrganizationConnectionBaseEntity {
988
1185
  customerId: number;
989
- name: string | null;
990
- phoneNumber: string | null;
1186
+ userId: number;
1187
+ amount: number;
1188
+ paymentId?: number;
1189
+ invoiceId?: number;
1190
+ description?: string;
1191
+ deletedAt?: Date;
1192
+ customer: Customer;
1193
+ invoice: Invoice;
1194
+ payment: Payment;
1195
+ }
1196
+ export declare class CustomerNote extends OrganizationConnectionBaseEntity {
1197
+ customerId?: number;
1198
+ description: string;
1199
+ pinToTop?: boolean;
991
1200
  customer: Customer;
992
1201
  }
1202
+ export declare class EntitlementGroup extends OrganizationConnectionBaseEntity {
1203
+ name: string | null;
1204
+ }
993
1205
  export declare class EntitlementTerms extends OrganizationConnectionBaseEntity {
994
1206
  groupId: number;
995
1207
  terms: IEntitlementTerms[];
996
1208
  }
997
- export declare class EntitlementGroup extends OrganizationConnectionBaseEntity {
1209
+ export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
1210
+ customerId: number;
998
1211
  name: string | null;
999
- }
1000
- export declare class EventAttendee extends BondBaseEntity {
1001
- status: RequestStatusEnum | null;
1002
- hasPaid: boolean | null;
1003
- paymentId: number | null;
1004
- attendeeId: number;
1005
- eventId?: number | null;
1006
- productUserId?: number;
1007
- answerTitleIds?: number[];
1008
- entryStatus?: EntryStatusEnum;
1009
- addonProductUserIds?: number[];
1010
- deletedAt?: Date;
1011
- attendee: User;
1012
- event: Event;
1013
- purchasedResource: PurchasedResource;
1212
+ phoneNumber: string | null;
1213
+ customer: Customer;
1014
1214
  }
1015
1215
  export declare class Facility extends OrganizationConnectionBaseEntity {
1016
1216
  name: string;
@@ -1036,13 +1236,28 @@ export declare class Facility extends OrganizationConnectionBaseEntity {
1036
1236
  programSeasons: ProgramSeason[];
1037
1237
  linkSEO: string;
1038
1238
  }
1039
- export declare class FacilityToResource extends BondBaseEntity {
1040
- facilityId: number;
1041
- resourceId: number;
1042
- }
1043
- export declare class FamilyAccount extends BondBaseEntity {
1044
- name: string | null;
1045
- userInFamilyAccounts: UserInFamilyAccount[];
1239
+ export declare class EventAttendee extends BondBaseEntity {
1240
+ status: RequestStatusEnum | null;
1241
+ hasPaid: boolean | null;
1242
+ paymentId: number | null;
1243
+ attendeeId: number;
1244
+ eventId?: number | null;
1245
+ productUserId?: number;
1246
+ answerTitleIds?: number[];
1247
+ entryStatus?: EntryStatusEnum;
1248
+ addonProductUserIds?: number[];
1249
+ deletedAt?: Date;
1250
+ attendee: User;
1251
+ event: Event;
1252
+ purchasedResource: PurchasedResource;
1253
+ }
1254
+ export declare class CreditNote extends OrganizationConnectionBaseEntity {
1255
+ creditAmount: number;
1256
+ paymentProcessorId: string;
1257
+ userId: number;
1258
+ paymentId: number;
1259
+ invoiceId: number;
1260
+ creditPaymentId: number;
1046
1261
  }
1047
1262
  export declare class Event extends OrganizationConnectionBaseEntity {
1048
1263
  constructor();
@@ -1091,554 +1306,306 @@ export declare class Event extends OrganizationConnectionBaseEntity {
1091
1306
  endDateString: string;
1092
1307
  startTime: string;
1093
1308
  endTime: string;
1094
- publicNotes?: string;
1095
- privateNotes?: string;
1096
- productResources: ProductResource[];
1097
- parentSession: ProgramSeason;
1098
- activityTimes: ActivityTimes[];
1099
- slots: Slot[];
1100
- purchasedResources: PurchasedResource[];
1101
- }
1102
- export declare class FutureInstallment extends OrganizationConnectionBaseEntity {
1103
- userId: number;
1104
- invoiceId: number;
1105
- paymentMethodId: string;
1106
- paymentType: PaymentMethodTypeEnum;
1107
- price: number;
1108
- status: FutureInstallmentStatusEnum;
1109
- plannedDate: Date;
1110
- chargedAt?: Date;
1111
- }
1112
- export declare class GlCodes extends OrganizationConnectionBaseEntity {
1113
- code: string;
1114
- }
1115
- export declare class Invoice extends BondBaseEntity {
1116
- invoiceId: string | null;
1117
- price: number | null;
1118
- status: InvoiceStatusEnum | null;
1119
- sentForClientDate: Date | null;
1120
- payingUserId?: number | null;
1121
- invoiceToPayments: InvoiceToPayment[];
1122
- lineItems: LineItems[];
1123
- lineItemHistory: LineItemHistory[];
1124
- paymentStatus: PaymentStatusEnum;
1125
- paymentMethodId?: string;
1126
- paymentType?: PaymentMethodTypeEnum;
1127
- paidAmount: number;
1128
- currency: CurrencyEnum;
1129
- mainPaymentId: number;
1130
- isScheduled: boolean;
1131
- isRefunded: boolean;
1132
- isVoided: boolean;
1133
- creatingUserId: number;
1134
- shiftId: number;
1135
- platform: PlatformsEnum;
1136
- invoiceNotes: InvoiceNote[];
1137
- slots: Slot[];
1138
- }
1139
- export declare class SpaceByIdDto {
1140
- spaceId: number;
1141
- }
1142
- export declare class CreateSpaceDto {
1143
- name: string;
1144
- sports: number[];
1145
- description?: string;
1146
- longDescription?: string;
1147
- spaceType: ResourceSubTypeEnum;
1148
- isAddon?: boolean;
1149
- properties: SpacePropertiesEnum;
1150
- width?: number;
1151
- length?: number;
1152
- surface?: SurfacesEnum;
1153
- ages?: ResourceAgesEnum;
1154
- amenities: number[];
1155
- activityTimes: BasicActivityTimesDto[];
1156
- facilitiesIds: number[];
1157
- resourceGroupId?: number;
1158
- blockedResourcesIds?: number[];
1159
- }
1160
- export declare class UpdateSpaceDetailsDto {
1161
- name: string;
1162
- description?: string;
1163
- longDescription?: string;
1164
- isAddon?: boolean;
1165
- facilitiesIds: number[];
1166
- }
1167
- export declare class UpdateSpacePropertiesDto {
1168
- properties: SpacePropertiesEnum;
1169
- width?: number;
1170
- length?: number;
1171
- surface?: SurfacesEnum;
1172
- ages?: ResourceAgesEnum;
1173
- }
1174
- export declare class UpdateSpaceTimesDto {
1175
- activityTimes: BasicActivityTimesDto[];
1176
- }
1177
- export declare class UpdateSpaceRelationshipsDto {
1178
- resourceGroupId?: number;
1179
- blockedResourcesIds?: number[];
1180
- }
1181
- export declare class SaveSpaceDependenciesDto {
1182
- blockedSpacesIds: number[];
1183
- parentSpaceId?: number;
1184
- }
1185
- export declare class FacilitySlotsScheduleQueryParams {
1186
- spacesIds?: string;
1187
- futureHoursLimit?: number;
1188
- }
1189
- export declare class FindResourcesOptionsDto extends PaginationQuery {
1190
- nameSearch?: string;
1191
- facilitiesIds?: string;
1192
- types?: string;
1193
- resourcesIds?: string;
1194
- }
1195
- export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
1196
- groupId: number;
1197
- itemId: number;
1198
- itemType: ResourceNameTypeEnum;
1199
- startDate: Date;
1200
- endDate: Date;
1201
- price: number;
1202
- overridesPrice: boolean;
1203
- deletedAt?: Date;
1204
- group?: EntitlementGroup;
1205
- discountMethod?: DiscountMethodsEnum;
1206
- discountValue?: number;
1207
- }
1208
- export declare class GroupsInDivisions extends BondBaseEntity {
1209
- groupId: number;
1210
- divisionId: number;
1211
- deletedAt?: Date;
1212
- }
1213
- export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
1214
- content: string;
1215
- creatingUserId: number;
1216
- user: User;
1217
- isPublic: boolean;
1218
- deletedAt: Date;
1219
- invoiceId: number;
1220
- invoice: Invoice;
1221
- }
1222
- export declare class InvoiceToPayment extends BondBaseEntity {
1223
- invoiceId: number;
1224
- paymentId: number;
1225
- invoice: Invoice;
1226
- payment: Payment;
1227
- paidAmount?: number;
1228
- currency: CurrencyEnum;
1229
- }
1230
- export declare class League extends OrganizationConnectionBaseEntity {
1231
- name: string | null;
1232
- description: string | null;
1233
- allowBookingRequest: boolean | null;
1234
- addressName: string | null;
1235
- shortDescription: string | null;
1236
- waiverDoc: string | null;
1237
- bookingStateStatus: number | null;
1238
- timezone: string | null;
1239
- shortUrl: string | null;
1240
- leagueType: string | null;
1241
- addressId: number | null;
1242
- sportConfigData: any | null;
1243
- creatorId: number | null;
1244
- creatorType: string | null;
1245
- userCreatorId: number | null;
1246
- ownerId: number | null;
1247
- sports: number[] | null;
1248
- mainMediaId: number | null;
1249
- publishedDate: Date | null;
1250
- isPublished: boolean | null;
1251
- isVerified: boolean | null;
1252
- questionnaireId: number | null;
1253
- logo?: Media;
1254
- seasons: LeagueSeason[];
1255
- }
1256
- export declare class LeagueSeason extends BondBaseEntity {
1257
- leagueId: number | null;
1258
- name: string | null;
1259
- status: number | null;
1260
- startDate: Date | null;
1261
- endDate: Date | null;
1262
- priceEarlySingle: number | null;
1263
- priceRegularSingle: number | null;
1264
- priceLateSingle: number | null;
1265
- priceEarlyTeam: number | null;
1266
- priceRegularTeam: number | null;
1267
- priceLateTeam: number | null;
1268
- priceEarlyTeamMember: number | null;
1269
- priceRegularTeamMember: number | null;
1270
- priceLateTeamMember: number | null;
1271
- priceEarlyGroup: number | null;
1272
- priceRegularGroup: number | null;
1273
- priceLateGroup: number | null;
1274
- earlyRegistrationEnds: Date | null;
1275
- regularRegistrationEnds: Date | null;
1276
- lateRegistrationEnds: Date | null;
1277
- registrationStatus: number | null;
1278
- description: string | null;
1279
- addressName: string | null;
1280
- registrationOpen: Date | null;
1281
- connectedSeasonId: number | null;
1282
- tournamentType: boolean | null;
1283
- playoffType: boolean | null;
1284
- scheduleStatus: SeasonScheduleStatusEnum;
1285
- rosterStatus: string | null;
1286
- metaData: any | null;
1287
- inviteSendDate: Date | null;
1288
- maxNumParticipants: number | null;
1289
- programId: number | null;
1290
- minNumParticipants: number | null;
1291
- league: League;
1292
- facilities: Facility[];
1293
- seasonAttendees: SeasonAttendee[];
1294
- purchasedResources: PurchasedResource[];
1295
- }
1296
- export declare class LeagueSeasonRelations {
1297
- league?: boolean;
1298
- facilities?: boolean;
1299
- }
1300
- export declare class LineItems extends BondBaseEntity {
1301
- constructor();
1302
- defineIsReverted(): void;
1303
- isReverted: boolean;
1304
- invoiceId: number;
1305
- invoice: Invoice;
1306
- lineItemsHistory: LineItemHistory[];
1307
- type: LineItemsStatusEnum | null;
1308
- userId: number | null;
1309
- productId: number;
1310
- paymentProcessorId: string;
1311
- productType: ProductTypesEnum;
1312
- productUserId?: number;
1313
- ordinal: number | null;
1314
- entitlementGroupId?: number;
1315
- entitlementGroups: EntitlementGroup;
1316
- price: number;
1317
- originalPrice?: number;
1318
- paidAmount?: number;
1319
- totalPaid?: number;
1320
- totalQuantity?: number;
1321
- totalPrice?: number;
1322
- currency: CurrencyEnum;
1323
- paymentStatus: PaymentStatusEnum;
1324
- productSubType?: ProductSubTypesEnum;
1325
- product: Product;
1326
- organizationId: number;
1327
- parentLineItemId?: number;
1328
- taxLineItem?: LineItems;
1329
- children?: LineItems[];
1330
- previousPurchaseProducUserId?: number;
1331
- discountDescription?: string;
1332
- productUser?: ProductsUsers;
1333
- resourceRedeemedForDiscount?: number;
1334
- redeemableProduct: Product[];
1335
- isRefunded: boolean;
1336
- isPartiallyRefund: boolean;
1337
- isVoided: boolean;
1338
- isPartiallyVoided: boolean;
1339
- wasReverted: boolean;
1340
- isEdit: boolean;
1309
+ publicNotes?: string;
1310
+ privateNotes?: string;
1311
+ productResources: ProductResource[];
1312
+ parentSession: ProgramSeason;
1313
+ activityTimes: ActivityTimes[];
1314
+ slots: Slot[];
1341
1315
  purchasedResources: PurchasedResource[];
1342
- isTaxInclusive?: boolean;
1343
- taxPrecent?: number;
1344
- unitPrice?: number;
1345
- quantity?: number;
1346
- customerFirstName?: string;
1347
- customerLastName?: string;
1348
- displayFullPrice?: number;
1349
- displayTotalPriceWithTax?: number;
1350
- displayTotalPaid?: number;
1351
- displayTotalQuantity?: number;
1352
- displayUnitPrice?: number;
1353
- displayQuantity?: number;
1354
1316
  }
1355
- export declare class LineItemHistory extends BondBaseEntity {
1317
+ export declare class FacilityToResource extends BondBaseEntity {
1318
+ facilityId: number;
1319
+ resourceId: number;
1320
+ }
1321
+ export declare class FutureInstallment extends OrganizationConnectionBaseEntity {
1322
+ userId: number;
1356
1323
  invoiceId: number;
1357
- paymentId: number;
1358
- lineItemId: number;
1359
- paidAmount: number;
1360
- unitPaidAmount: number;
1361
- currency: CurrencyEnum;
1362
- payment: Payment;
1363
- lineItem: LineItems;
1324
+ paymentMethodId: string;
1325
+ paymentType: PaymentMethodTypeEnum;
1326
+ price: number;
1327
+ status: FutureInstallmentStatusEnum;
1328
+ plannedDate: Date;
1329
+ chargedAt?: Date;
1364
1330
  }
1365
- export declare class LinkedAccounts extends BondBaseEntity {
1366
- id: number;
1367
- provider: string;
1368
- providerId: string | null;
1369
- parentId: number | null;
1370
- parentType: string | null;
1371
- status: number | null;
1372
- token: string | null;
1373
- refreshToken: string | null;
1374
- tokenCreatedAt: Date | null;
1375
- tokenValidUpTo: Date | null;
1376
- createdAt: Date;
1377
- updatedAt: Date;
1378
- user: User;
1379
- userId: number | null;
1331
+ export declare class GlCodes extends OrganizationConnectionBaseEntity {
1332
+ code: string;
1380
1333
  }
1381
- export declare class Membership extends OrganizationConnectionBaseEntity {
1334
+ export declare class CreateMembershipDto {
1335
+ organizationId: number;
1382
1336
  name: string;
1383
1337
  description?: string;
1384
- mainMedia?: Media;
1385
1338
  customerTypes: CustomerInMembershipTypeEnum[];
1386
- activity?: SportsEnum;
1387
- facilityId?: number;
1388
- facilityName?: string;
1389
- questionnaires?: number[];
1390
- minAgeYears?: number;
1391
- maxAgeYears?: number;
1339
+ activity: SportsEnum;
1340
+ facilityId: number;
1341
+ questionnaires: number[];
1342
+ minAgeYears: number;
1343
+ maxAgeYears: number;
1392
1344
  gender: GenderEnum;
1393
1345
  maxMembers?: number;
1394
1346
  maxMaleMembers?: number;
1395
1347
  maxFemaleMembers?: number;
1396
- membershipType: MembershipTypeEnum;
1397
- durationMonths?: number;
1398
- startDate?: string;
1399
- endDate?: string;
1348
+ startDate: string;
1349
+ endDate: string;
1400
1350
  registrationStartDate?: Date;
1401
1351
  registrationEndDate?: Date;
1402
- package?: IPackageResponse;
1403
- tags: any[];
1404
- members: MembershipMember[];
1352
+ membershipType: MembershipTypeEnum;
1353
+ durationMonths: number;
1405
1354
  longDescription?: string;
1406
1355
  isAutoRenew?: boolean;
1407
- purchasedResources: PurchasedResource[];
1408
- }
1409
- export declare class Division extends BondBaseEntity {
1410
- name: string;
1411
- ordinal?: number;
1412
- programSeasonId: number;
1413
- color: string;
1414
- isDefault: boolean;
1415
- groups: Group[];
1416
- }
1417
- export declare class FindByProductIdDto {
1418
- productId: number;
1419
1356
  }
1420
- export declare class FindPriceOfProductDto {
1357
+ export declare class UpdateMembrshipDto extends CreateMembershipDto {
1421
1358
  id: number;
1422
- userId: number;
1423
- resources: ResourceDto[];
1424
- }
1425
- export declare class FindPricesOfProductsDto {
1426
- products: FindPriceOfProductDto[];
1427
- answers: UserAnswersDto[];
1428
- }
1429
- export declare class FindPackageByResourceDto {
1430
- resourceType: ResourceNameTypeEnum;
1431
- resourceId: number;
1432
- }
1433
- export declare class FindProductsByResourceAsOrganizationDto extends FindPackageByResourceDto {
1434
- organizationId: number;
1435
1359
  }
1436
- export declare class CreateProductsDto {
1437
- products: CreateProductDto[];
1438
- addOnsData?: ProductInPackage[];
1439
- addOnIds?: ExistingProductToPackageDto[];
1360
+ export declare class UpdateMembershipMediaDto {
1361
+ membershipId: number;
1362
+ mediaId: number;
1440
1363
  }
1441
- export declare class CreatePaymentPlanDto extends PaymentPlanDto {
1442
- name: string;
1364
+ export declare class FindMembershipByIdDto {
1365
+ membershipId: number;
1443
1366
  }
1444
- export declare class CreateProductDto {
1445
- id?: number;
1367
+ export declare class FindMembershipsByOrganizationIdDto {
1446
1368
  organizationId: number;
1447
- name: string;
1448
- quantity?: number;
1449
- isPublic: boolean;
1450
- startDate?: Date;
1451
- endDate?: Date;
1452
- description?: string;
1453
- resourcesType?: ResourceNameTypeEnum;
1454
- resourcesIdsToApplyOn?: number[];
1455
- GL?: string;
1456
- prices: CreatePriceDto[];
1457
- downpayment?: number;
1458
- productType: ProductTypesEnum;
1459
- subProductType?: string;
1460
- defaultForResourceId?: number;
1461
- defaultForResourceType?: ResourceNameTypeEnum;
1462
- entitlementGroupsPricings?: CreateGroupPricingWithProduct[];
1463
- variantTitleIds?: number[];
1464
- variants?: VariantWithPrice[];
1465
- variantParentId?: number;
1466
- isAddon?: boolean;
1467
- isArchive?: boolean;
1468
- timePeriod?: AddonTimePeriodEnum;
1469
- isProRated?: boolean;
1470
- paymentPlan?: CreatePaymentPlanDto;
1471
- isTaxInclusive?: boolean;
1472
- tax?: number;
1473
- sports?: number[];
1474
- durationMinutes?: number;
1475
- durationDays?: number;
1476
- forms?: number[];
1477
- isForAllCustomers?: boolean;
1478
- membershipsAvailableFor?: number[];
1479
- customersAvailableFor?: number[];
1480
- addons?: createRentalProductAddonDto[];
1481
- availabilityTimes?: createProductAvailabilityTimesDto[];
1482
- }
1483
- export declare class VariantWithPrice {
1484
- variantIds: number[];
1485
- price: CreatePriceDto[];
1486
- }
1487
- export declare class CreatePriceDto {
1488
- id?: number;
1489
- price: number;
1490
- currency: CurrencyEnum;
1491
- name: string;
1492
- startDate?: Date;
1493
- endDate?: Date;
1494
- discountValue?: number;
1495
- discountMethod?: DiscountMethodsEnum;
1496
- isDefaultPriceForProduct?: boolean;
1497
- }
1498
- export declare class CreatePackageDto {
1499
- parentProductId: number;
1500
- productsData?: ProductInPackage[];
1501
- productsIds?: ExistingProductToPackageDto[];
1502
- }
1503
- export declare class CreatePackageToResourceDto {
1504
- resourceId: number;
1505
- resourceType: ResourceNameTypeEnum;
1506
- isCreateToChildProducts: boolean;
1507
- productsData: ProductInPackage[];
1508
- }
1509
- export declare class ProductInPackage extends CreateProductDto {
1510
- relationType: PackageProductsRelationTypeEnum;
1511
- amountInPackage?: number;
1512
- level?: ProductPackageLevelEnum;
1513
- }
1514
- export declare class ExistingProductToPackageDto {
1515
- relationType: PackageProductsRelationTypeEnum;
1516
- id: number;
1517
- timePeriod?: AddonTimePeriodEnum;
1518
- level?: ProductPackageLevelEnum;
1519
- }
1520
- export declare class ConnectProductResourceDto {
1521
- productId: number;
1522
- resourceType: ResourceNameTypeEnum;
1523
- resourceIds: number[];
1524
- }
1525
- export declare class ReturnRequiredProductsDto {
1526
- userId: number;
1527
- productId: number;
1528
1369
  }
1529
- export declare class FindByProductUserIdsDto {
1370
+ export declare class FindMembershipsByUserIdDto {
1530
1371
  userId: number;
1531
- organizationId: number;
1532
- }
1533
- export declare class AddRequiredProductsDto {
1534
- productId: number;
1535
- requiredProductIds: number[];
1536
1372
  }
1537
- export declare class ProductsIdsDto extends PaginationQuery {
1538
- productIds?: number[];
1539
- includePrices?: boolean;
1540
- productType?: ProductTypesEnum;
1541
- includeAddons?: string;
1373
+ export declare class SetMembersStartDateByOrganization extends FindMembershipsByOrganizationIdDto {
1374
+ startDate: string;
1542
1375
  }
1543
- export declare class GetByOrganizationIdDto {
1544
- organizationId?: number;
1376
+ export declare class MembershipIdsDto {
1377
+ membershipIds?: number[];
1545
1378
  }
1546
- export declare class GetByOrgIdInvoiceIdDto extends GetByOrganizationIdDto {
1547
- invoiceId?: number;
1379
+ export declare class MemberIdDto {
1380
+ memberId?: number;
1548
1381
  }
1549
- export declare class GetProductsDto extends PaginationQuery {
1550
- productIds?: string;
1551
- includePrices?: boolean;
1552
- productType?: string;
1553
- productSubType?: string;
1554
- search?: string;
1555
- includeAddons?: boolean;
1556
- includeArchived?: boolean;
1557
- includeAllData?: boolean;
1558
- resourceIds?: string;
1559
- sports?: string;
1382
+ export declare class FindMembersOptionsDto extends PaginationQuery {
1383
+ nameEmailSearch?: string;
1384
+ pastMemberships?: string;
1560
1385
  }
1561
- export declare class GetAllVariantTitlesDto {
1562
- organizationId: number;
1386
+ export declare class CancelMembershipDto {
1387
+ isImmediatelyCancel: boolean;
1388
+ cancellationReason?: string;
1563
1389
  }
1564
- export declare class GetAllOrganizationAddonsDto {
1565
- organizationId: number;
1390
+ export declare class ResourceDto {
1391
+ type: ResourceNameTypeEnum;
1392
+ id: number;
1566
1393
  }
1567
- export declare class CreateVariantTitleDto {
1568
- organizationId: number;
1569
- title: string;
1570
- variants: string[];
1394
+ export declare class GroupsInDivisions extends BondBaseEntity {
1395
+ groupId: number;
1396
+ divisionId: number;
1397
+ deletedAt?: Date;
1571
1398
  }
1572
- export declare class UpdateVariantTitleDto {
1573
- organizationId: number;
1574
- titleId: number;
1575
- title: string;
1576
- variants: string[];
1399
+ export declare class Invoice extends BondBaseEntity {
1400
+ invoiceId: string | null;
1401
+ price: number | null;
1402
+ status: InvoiceStatusEnum | null;
1403
+ sentForClientDate: Date | null;
1404
+ payingUserId?: number | null;
1405
+ invoiceToPayments: InvoiceToPayment[];
1406
+ lineItems: LineItems[];
1407
+ lineItemHistory: LineItemHistory[];
1408
+ paymentStatus: PaymentStatusEnum;
1409
+ paymentMethodId?: string;
1410
+ paymentType?: PaymentMethodTypeEnum;
1411
+ paidAmount: number;
1412
+ currency: CurrencyEnum;
1413
+ mainPaymentId: number;
1414
+ isScheduled: boolean;
1415
+ isRefunded: boolean;
1416
+ isVoided: boolean;
1417
+ creatingUserId: number;
1418
+ shiftId: number;
1419
+ platform: PlatformsEnum;
1420
+ invoiceNotes: InvoiceNote[];
1421
+ slots: Slot[];
1577
1422
  }
1578
- export declare class GetByCustomerIdDto extends PaginationQuery {
1579
- customerId: number;
1423
+ export declare class FamilyAccount extends BondBaseEntity {
1424
+ name: string | null;
1425
+ userInFamilyAccounts: UserInFamilyAccount[];
1580
1426
  }
1581
- export declare class GetExtraProductDataDto {
1582
- isPublic?: boolean;
1583
- isGetByChildResources?: boolean;
1584
- isGetEntitlePricing?: boolean;
1585
- isGetAddOns?: boolean;
1586
- includeResources?: boolean;
1587
- includeArchived?: boolean;
1427
+ export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1428
+ email: string;
1429
+ status: EEmailStatus;
1430
+ templateId: string;
1431
+ userId: number;
1432
+ invoiceId: number;
1433
+ paymentId: number;
1434
+ sendingUserId: number;
1435
+ mailParams?: any;
1436
+ memo?: string;
1588
1437
  }
1589
- export declare class GetBySessionType {
1590
- sessionType: 'event' | 'segment';
1438
+ export declare class League extends OrganizationConnectionBaseEntity {
1439
+ name: string | null;
1440
+ description: string | null;
1441
+ allowBookingRequest: boolean | null;
1442
+ addressName: string | null;
1443
+ shortDescription: string | null;
1444
+ waiverDoc: string | null;
1445
+ bookingStateStatus: number | null;
1446
+ timezone: string | null;
1447
+ shortUrl: string | null;
1448
+ leagueType: string | null;
1449
+ addressId: number | null;
1450
+ sportConfigData: any | null;
1451
+ creatorId: number | null;
1452
+ creatorType: string | null;
1453
+ userCreatorId: number | null;
1454
+ ownerId: number | null;
1455
+ sports: number[] | null;
1456
+ mainMediaId: number | null;
1457
+ publishedDate: Date | null;
1458
+ isPublished: boolean | null;
1459
+ isVerified: boolean | null;
1460
+ questionnaireId: number | null;
1461
+ logo?: Media;
1462
+ seasons: LeagueSeason[];
1591
1463
  }
1592
- export declare class CreateSubcategoryDto {
1593
- productType: ProductTypesEnum;
1464
+ export declare class Group extends BondBaseEntity {
1594
1465
  name: string;
1595
- stationId?: number;
1596
- ordinal?: number;
1466
+ description?: string;
1467
+ status: GroupStatusEnum;
1468
+ maxCapacity?: number;
1469
+ mainMediaId?: number;
1470
+ minAgeYears?: number;
1471
+ maxAgeYears?: number;
1472
+ gender: GenderEnum;
1473
+ levelOfPlay?: LevelOfPlayEnum[];
1474
+ sports: SportsEnum[];
1475
+ questionnaires?: number[];
1476
+ captainUserId?: number;
1477
+ members: ISeasonAttendeeInfo[];
1478
+ users: User[];
1597
1479
  }
1598
- export declare class CreateSubcategoriesDto {
1599
- subcategories: CreateSubcategoryDto[];
1480
+ export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
1481
+ groupId: number;
1482
+ itemId: number;
1483
+ itemType: ResourceNameTypeEnum;
1484
+ startDate: Date;
1485
+ endDate: Date;
1486
+ price: number;
1487
+ overridesPrice: boolean;
1488
+ deletedAt?: Date;
1489
+ group?: EntitlementGroup;
1490
+ discountMethod?: DiscountMethodsEnum;
1491
+ discountValue?: number;
1600
1492
  }
1601
- export declare class UpdateSubcategoryDto {
1602
- id: number;
1603
- productType?: ProductTypesEnum;
1604
- name?: string;
1605
- stationId?: number;
1606
- ordinal?: number;
1493
+ export declare class LeagueSeason extends BondBaseEntity {
1494
+ leagueId: number | null;
1495
+ name: string | null;
1496
+ status: number | null;
1497
+ startDate: Date | null;
1498
+ endDate: Date | null;
1499
+ priceEarlySingle: number | null;
1500
+ priceRegularSingle: number | null;
1501
+ priceLateSingle: number | null;
1502
+ priceEarlyTeam: number | null;
1503
+ priceRegularTeam: number | null;
1504
+ priceLateTeam: number | null;
1505
+ priceEarlyTeamMember: number | null;
1506
+ priceRegularTeamMember: number | null;
1507
+ priceLateTeamMember: number | null;
1508
+ priceEarlyGroup: number | null;
1509
+ priceRegularGroup: number | null;
1510
+ priceLateGroup: number | null;
1511
+ earlyRegistrationEnds: Date | null;
1512
+ regularRegistrationEnds: Date | null;
1513
+ lateRegistrationEnds: Date | null;
1514
+ registrationStatus: number | null;
1515
+ description: string | null;
1516
+ addressName: string | null;
1517
+ registrationOpen: Date | null;
1518
+ connectedSeasonId: number | null;
1519
+ tournamentType: boolean | null;
1520
+ playoffType: boolean | null;
1521
+ scheduleStatus: SeasonScheduleStatusEnum;
1522
+ rosterStatus: string | null;
1523
+ metaData: any | null;
1524
+ inviteSendDate: Date | null;
1525
+ maxNumParticipants: number | null;
1526
+ programId: number | null;
1527
+ minNumParticipants: number | null;
1528
+ league: League;
1529
+ facilities: Facility[];
1530
+ seasonAttendees: SeasonAttendee[];
1531
+ purchasedResources: PurchasedResource[];
1607
1532
  }
1608
- export declare class GetSubcategoryDto {
1609
- stationId?: number;
1533
+ export declare class LeagueSeasonRelations {
1534
+ league?: boolean;
1535
+ facilities?: boolean;
1610
1536
  }
1611
- export declare class SetStationSubcategoriesDto {
1612
- stationId: number;
1613
- subcategoryIds?: number[];
1614
- categories?: string[];
1537
+ export declare class LineItemHistory extends BondBaseEntity {
1538
+ invoiceId: number;
1539
+ paymentId: number;
1540
+ lineItemId: number;
1541
+ paidAmount: number;
1542
+ unitPaidAmount: number;
1543
+ currency: CurrencyEnum;
1544
+ payment: Payment;
1545
+ lineItem: LineItems;
1615
1546
  }
1616
- export declare class createRentalProductAddonDto {
1547
+ export declare class LineItems extends BondBaseEntity {
1548
+ constructor();
1549
+ defineIsReverted(): void;
1550
+ isReverted: boolean;
1551
+ invoiceId: number;
1552
+ invoice: Invoice;
1553
+ lineItemsHistory: LineItemHistory[];
1554
+ type: LineItemsStatusEnum | null;
1555
+ userId: number | null;
1617
1556
  productId: number;
1557
+ paymentProcessorId: string;
1558
+ productType: ProductTypesEnum;
1559
+ productUserId?: number;
1560
+ ordinal: number | null;
1561
+ entitlementGroupId?: number;
1562
+ entitlementGroups: EntitlementGroup;
1618
1563
  price: number;
1619
- isFlatPrice: boolean;
1620
- isMandatory: boolean;
1621
- level: ProductPackageLevelEnum;
1622
- }
1623
- export declare class createProductAvailabilityTimesDto {
1624
- availabilityStartDate?: string;
1625
- availabilityEndDate?: string;
1626
- daysOfWeek: number[];
1627
- startTime: string;
1628
- endTime: string;
1629
- }
1630
- export declare class createResourceDto {
1631
- resourceId: number;
1632
- resourceType: ResourceNameTypeEnum;
1633
- }
1634
- export declare class archiveDto {
1635
- isArchive: boolean;
1564
+ originalPrice?: number;
1565
+ paidAmount?: number;
1566
+ totalPaid?: number;
1567
+ totalQuantity?: number;
1568
+ totalPrice?: number;
1569
+ currency: CurrencyEnum;
1570
+ paymentStatus: PaymentStatusEnum;
1571
+ productSubType?: ProductSubTypesEnum;
1572
+ product: Product;
1573
+ organizationId: number;
1574
+ parentLineItemId?: number;
1575
+ taxLineItem?: LineItems;
1576
+ children?: LineItems[];
1577
+ previousPurchaseProducUserId?: number;
1578
+ discountDescription?: string;
1579
+ productUser?: ProductsUsers;
1580
+ resourceRedeemedForDiscount?: number;
1581
+ redeemableProduct: Product[];
1582
+ isRefunded: boolean;
1583
+ isPartiallyRefund: boolean;
1584
+ isVoided: boolean;
1585
+ isPartiallyVoided: boolean;
1586
+ wasReverted: boolean;
1587
+ isEdit: boolean;
1588
+ purchasedResources: PurchasedResource[];
1589
+ isTaxInclusive?: boolean;
1590
+ taxPrecent?: number;
1591
+ unitPrice?: number;
1592
+ quantity?: number;
1593
+ customerFirstName?: string;
1594
+ customerLastName?: string;
1595
+ displayFullPrice?: number;
1596
+ displayTotalPriceWithTax?: number;
1597
+ displayTotalPaid?: number;
1598
+ displayTotalQuantity?: number;
1599
+ displayUnitPrice?: number;
1600
+ displayQuantity?: number;
1636
1601
  }
1637
- export declare class NotificationSubscriptions extends OrganizationConnectionBaseEntity {
1638
- email: string | null;
1639
- notificationType: NotificationTypeEnum | null;
1640
- resourceId: number | null;
1641
- resourceType: string | null;
1602
+ export declare class InvoiceToPayment extends BondBaseEntity {
1603
+ invoiceId: number;
1604
+ paymentId: number;
1605
+ invoice: Invoice;
1606
+ payment: Payment;
1607
+ paidAmount?: number;
1608
+ currency: CurrencyEnum;
1642
1609
  }
1643
1610
  export declare class MembershipMember extends OrganizationConnectionBaseEntity {
1644
1611
  membership: Membership;
@@ -1660,6 +1627,15 @@ export declare class MembershipMember extends OrganizationConnectionBaseEntity {
1660
1627
  cancellationStatus?: CancellationStatusEnum;
1661
1628
  isImported?: boolean;
1662
1629
  }
1630
+ export declare class InvoiceNote extends OrganizationConnectionBaseEntity {
1631
+ content: string;
1632
+ creatingUserId: number;
1633
+ user: User;
1634
+ isPublic: boolean;
1635
+ deletedAt: Date;
1636
+ invoiceId: number;
1637
+ invoice: Invoice;
1638
+ }
1663
1639
  export declare class Media extends BondBaseEntity {
1664
1640
  url: string;
1665
1641
  name: string | null;
@@ -1679,24 +1655,20 @@ export declare class Media extends BondBaseEntity {
1679
1655
  programs: Program[];
1680
1656
  memberships: Membership[];
1681
1657
  }
1658
+ export declare class OpeningTime extends OrganizationConnectionBaseEntity {
1659
+ id: number;
1660
+ dayOfWeek: number;
1661
+ open: string;
1662
+ close: string;
1663
+ facilityId: number;
1664
+ createdAt: Date;
1665
+ updatedAt: Date;
1666
+ deletedAt?: Date;
1667
+ facility: Facility;
1668
+ }
1682
1669
  export declare class OrganizationConnectionBaseEntity extends BondBaseEntity {
1683
1670
  organizationId: number;
1684
1671
  }
1685
- export declare class PaymentNote extends OrganizationConnectionBaseEntity {
1686
- content: string;
1687
- creatingUserId: number;
1688
- user: User;
1689
- isPublic: boolean;
1690
- deletedAt: Date;
1691
- paymentId: number;
1692
- payment: Payment;
1693
- }
1694
- export declare class PasswordReset extends BondBaseEntity {
1695
- token: string | null;
1696
- userId: number | null;
1697
- validUntil: Date | null;
1698
- active: boolean | null;
1699
- }
1700
1672
  export declare class PackageV1 extends BondBaseEntity {
1701
1673
  name?: string;
1702
1674
  description?: string;
@@ -1714,6 +1686,57 @@ export declare class PackageV1 extends BondBaseEntity {
1714
1686
  isMandatory: boolean;
1715
1687
  productId: number;
1716
1688
  }
1689
+ export declare class Membership extends OrganizationConnectionBaseEntity {
1690
+ name: string;
1691
+ description?: string;
1692
+ mainMedia?: Media;
1693
+ customerTypes: CustomerInMembershipTypeEnum[];
1694
+ activity?: SportsEnum;
1695
+ facilityId?: number;
1696
+ facilityName?: string;
1697
+ questionnaires?: number[];
1698
+ minAgeYears?: number;
1699
+ maxAgeYears?: number;
1700
+ gender: GenderEnum;
1701
+ maxMembers?: number;
1702
+ maxMaleMembers?: number;
1703
+ maxFemaleMembers?: number;
1704
+ membershipType: MembershipTypeEnum;
1705
+ durationMonths?: number;
1706
+ startDate?: string;
1707
+ endDate?: string;
1708
+ registrationStartDate?: Date;
1709
+ registrationEndDate?: Date;
1710
+ package?: IPackageResponse;
1711
+ tags: any[];
1712
+ members: MembershipMember[];
1713
+ longDescription?: string;
1714
+ isAutoRenew?: boolean;
1715
+ purchasedResources: PurchasedResource[];
1716
+ }
1717
+ export declare class Price extends OrganizationConnectionBaseEntity {
1718
+ productId: number;
1719
+ product: Product;
1720
+ name: string | null;
1721
+ price: number;
1722
+ currency: CurrencyEnum;
1723
+ paymentProcessorId: number | null;
1724
+ startDate: Date;
1725
+ endDate: Date;
1726
+ groupId?: number;
1727
+ groupName?: string;
1728
+ originalPrice?: number;
1729
+ deletedAt?: Date;
1730
+ discountMethod?: DiscountMethodsEnum;
1731
+ discountValue?: number;
1732
+ taxIncludedPrice?: number;
1733
+ }
1734
+ export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1735
+ paymentPlanId: number;
1736
+ paymentDate: Date;
1737
+ deletedAt?: Date;
1738
+ paymentPlan: ProductPaymentPlan;
1739
+ }
1717
1740
  export declare class Payment extends OrganizationConnectionBaseEntity {
1718
1741
  price: number;
1719
1742
  paymentProcessorId: string;
@@ -1741,23 +1764,224 @@ export declare class Payment extends OrganizationConnectionBaseEntity {
1741
1764
  refundReasonId?: number;
1742
1765
  refundNote?: string;
1743
1766
  }
1744
- export declare class PaymentV1 extends BondBaseEntity {
1745
- userId: number | null;
1746
- ownerId: number | null;
1747
- parentId: number | null;
1748
- parentType: string | null;
1749
- idAtProvider: string | null;
1750
- providerType: number | null;
1751
- providerExtraData: string | null;
1752
- requestData: string | null;
1753
- responseData: string | null;
1754
- status: number | null;
1755
- price: number | null;
1756
- currency: string | null;
1757
- locked: boolean | null;
1758
- numberOfTries: number | null;
1759
- installmentId: number | null;
1760
- invoiceId: string | null;
1767
+ export declare class LinkedAccounts extends BondBaseEntity {
1768
+ id: number;
1769
+ provider: string;
1770
+ providerId: string | null;
1771
+ parentId: number | null;
1772
+ parentType: string | null;
1773
+ status: number | null;
1774
+ token: string | null;
1775
+ refreshToken: string | null;
1776
+ tokenCreatedAt: Date | null;
1777
+ tokenValidUpTo: Date | null;
1778
+ createdAt: Date;
1779
+ updatedAt: Date;
1780
+ user: User;
1781
+ userId: number | null;
1782
+ }
1783
+ export declare class PasswordReset extends BondBaseEntity {
1784
+ token: string | null;
1785
+ userId: number | null;
1786
+ validUntil: Date | null;
1787
+ active: boolean | null;
1788
+ }
1789
+ export declare class PaymentNote extends OrganizationConnectionBaseEntity {
1790
+ content: string;
1791
+ creatingUserId: number;
1792
+ user: User;
1793
+ isPublic: boolean;
1794
+ deletedAt: Date;
1795
+ paymentId: number;
1796
+ payment: Payment;
1797
+ }
1798
+ export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1799
+ parentProductId: number;
1800
+ childProductId: number;
1801
+ relationType: PackageProductsRelationTypeEnum;
1802
+ timePeriod: AddonTimePeriodEnum;
1803
+ deletedAt?: Date;
1804
+ productResource: ProductResource;
1805
+ childProduct: Product;
1806
+ parentProduct: Product;
1807
+ price: number;
1808
+ isFlatPrice: boolean;
1809
+ durationMinutes?: number;
1810
+ durationDays?: number;
1811
+ level?: ProductPackageLevelEnum;
1812
+ }
1813
+ export declare class ProductResource extends OrganizationConnectionBaseEntity {
1814
+ productId: number;
1815
+ resourceId: number;
1816
+ resourceType: ResourceNameTypeEnum;
1817
+ deletedAt?: Date;
1818
+ programSeason: ProgramSeason;
1819
+ event: Event;
1820
+ product: Product;
1821
+ productPackages: ProductPackage[];
1822
+ resourceName?: string;
1823
+ }
1824
+ export declare class ProductsReservedForCustomers extends OrganizationConnectionBaseEntity {
1825
+ productId: number;
1826
+ customerId: number;
1827
+ customer: Customer;
1828
+ deletedAt?: Date;
1829
+ product: Product;
1830
+ }
1831
+ export declare class ProductToVariant extends OrganizationConnectionBaseEntity {
1832
+ productId: number;
1833
+ variantId: number;
1834
+ }
1835
+ export declare class ProgramHighlights extends BondBaseEntity {
1836
+ type: ProgramHighlightTypeEnum;
1837
+ ordinal: number | null;
1838
+ title: string | null;
1839
+ data: any | null;
1840
+ program: Program;
1841
+ deletedAt?: Date;
1842
+ }
1843
+ export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1844
+ productId: number;
1845
+ userId: number;
1846
+ user?: User;
1847
+ paymentStatus: PaymentStatusEnum;
1848
+ productName: string;
1849
+ productPrice: number;
1850
+ productQuantity: number;
1851
+ productQuantityLeft: number;
1852
+ productPriceCurrency: CurrencyEnum;
1853
+ ordinal?: number;
1854
+ purchasedResources: PurchasedResource[];
1855
+ product: Product;
1856
+ lineItem: LineItems;
1857
+ slots?: Slot[];
1858
+ addons?: Addon[];
1859
+ }
1860
+ export declare class PurchasedResource extends OrganizationConnectionBaseEntity {
1861
+ productUserId: number;
1862
+ resourceId: number;
1863
+ resourceType: ResourceNameTypeEnum;
1864
+ status: PurchasedResourceStatusEnum;
1865
+ startDate?: string;
1866
+ startTime?: string;
1867
+ endDate?: string;
1868
+ endTime?: string;
1869
+ productUser?: ProductsUsers;
1870
+ lineItem?: LineItems;
1871
+ eventAttendee?: EventAttendee;
1872
+ seasonAttendee?: SeasonAttendee;
1873
+ leagueAttendee?: SeasonPool;
1874
+ membership?: Membership;
1875
+ program?: Program;
1876
+ programSeason?: ProgramSeason;
1877
+ leagueSeason?: LeagueSeason;
1878
+ space?: Resource;
1879
+ product?: Product;
1880
+ event?: Event;
1881
+ }
1882
+ export declare class ProductToVariantTitle extends OrganizationConnectionBaseEntity {
1883
+ productId: number;
1884
+ variantTitleId: number;
1885
+ }
1886
+ export declare class Questions extends BondBaseEntity {
1887
+ questionType: string | null;
1888
+ ordinal: number | null;
1889
+ pageOrdinal: number | null;
1890
+ isActive: boolean | null;
1891
+ isMandatory: boolean | null;
1892
+ metaData: any | null;
1893
+ question: string | null;
1894
+ creatorId: number | null;
1895
+ creatorType: string | null;
1896
+ userCreatorId: number | null;
1897
+ ownerId: number | null;
1898
+ questionnaireId: number | null;
1899
+ }
1900
+ export declare class Questionnaires extends OrganizationConnectionBaseEntity {
1901
+ title: string | null;
1902
+ answerTitle: AnswerTitle;
1903
+ }
1904
+ export declare class Program extends BondBaseEntity {
1905
+ type: ProgramTypesEnum;
1906
+ name: string;
1907
+ sport: SportsEnum;
1908
+ minAge: string;
1909
+ maxAge: string;
1910
+ gender: GenderEnum;
1911
+ level: LevelOfPlayEnum[] | null;
1912
+ description: string | null;
1913
+ GL?: string | null;
1914
+ status: PublishingStatusEnum;
1915
+ mainMedia: Media;
1916
+ organizationId: number;
1917
+ userCreatorId: number;
1918
+ programHighlights: ProgramHighlights[];
1919
+ linkSEO: string;
1920
+ longDescription?: string;
1921
+ requiredProductIds: number[] | null;
1922
+ deletedAt?: Date;
1923
+ programSeason: ProgramSeason[];
1924
+ purchasedResources: PurchasedResource[];
1925
+ }
1926
+ export declare class Resource extends OrganizationConnectionBaseEntity {
1927
+ name: string;
1928
+ resourceType: ResourceTypeEnum;
1929
+ resourceSubType: ResourceSubTypeEnum;
1930
+ description?: string;
1931
+ longDescription?: string;
1932
+ surface?: SurfacesEnum;
1933
+ properties?: SpacePropertiesEnum[];
1934
+ mainMediaId?: number;
1935
+ mainMedia: Media;
1936
+ sports: SportsEnum[];
1937
+ width?: number;
1938
+ length?: number;
1939
+ amenities?: AmenitiesEnum[];
1940
+ parentSpaceId?: number;
1941
+ ordinal?: number;
1942
+ isAddOn: boolean;
1943
+ ages?: ResourceAgesEnum;
1944
+ deletedAt?: Date;
1945
+ activityTimes: ActivityTimes[];
1946
+ facilities: Facility[];
1947
+ slots?: Slot[];
1948
+ addons?: Addon[];
1949
+ facilityId: number;
1950
+ facility: Facility;
1951
+ purchasedResources: PurchasedResource[];
1952
+ linkSEO: string;
1953
+ }
1954
+ export declare class Reservations extends OrganizationConnectionBaseEntity {
1955
+ name?: string;
1956
+ description?: string;
1957
+ color?: string;
1958
+ status?: string;
1959
+ privacySetting?: string;
1960
+ reservationType?: string;
1961
+ invoiceId?: string;
1962
+ customerId?: number;
1963
+ length?: number;
1964
+ price?: number;
1965
+ sessions?: number;
1966
+ percentage?: number;
1967
+ paymentStatus?: number;
1968
+ paymentId?: number;
1969
+ startTime?: string;
1970
+ dayOfWeek?: number;
1971
+ resourcePackageId?: number;
1972
+ resourcePackageAmount?: number;
1973
+ startDate?: Date;
1974
+ endDate?: Date;
1975
+ originalReservationId?: number;
1976
+ creatorId?: number;
1977
+ creatorType?: string;
1978
+ userCreatorId?: number;
1979
+ ownerId?: number;
1980
+ sportType?: number;
1981
+ participantType?: string;
1982
+ deletedAt?: Date;
1983
+ publicNotes?: string;
1984
+ slots?: Slot[];
1761
1985
  }
1762
1986
  export declare class Product extends OrganizationConnectionBaseEntity {
1763
1987
  name: string;
@@ -1809,175 +2033,48 @@ export declare class Product extends OrganizationConnectionBaseEntity {
1809
2033
  activityTimes: ActivityTimes[];
1810
2034
  purchasedResources: PurchasedResource[];
1811
2035
  }
1812
- export declare class ProductPackage extends OrganizationConnectionBaseEntity {
1813
- parentProductId: number;
1814
- childProductId: number;
1815
- relationType: PackageProductsRelationTypeEnum;
1816
- timePeriod: AddonTimePeriodEnum;
1817
- deletedAt?: Date;
1818
- productResource: ProductResource;
1819
- childProduct: Product;
1820
- parentProduct: Product;
1821
- price: number;
1822
- isFlatPrice: boolean;
1823
- durationMinutes?: number;
1824
- durationDays?: number;
1825
- level?: ProductPackageLevelEnum;
1826
- }
1827
- export declare class ProductResource extends OrganizationConnectionBaseEntity {
1828
- productId: number;
1829
- resourceId: number;
1830
- resourceType: ResourceNameTypeEnum;
1831
- deletedAt?: Date;
1832
- programSeason: ProgramSeason;
1833
- event: Event;
1834
- product: Product;
1835
- productPackages: ProductPackage[];
1836
- resourceName?: string;
1837
- }
1838
- export declare class Price extends OrganizationConnectionBaseEntity {
1839
- productId: number;
1840
- product: Product;
1841
- name: string | null;
1842
- price: number;
1843
- currency: CurrencyEnum;
1844
- paymentProcessorId: number | null;
1845
- startDate: Date;
1846
- endDate: Date;
1847
- groupId?: number;
1848
- groupName?: string;
1849
- originalPrice?: number;
1850
- deletedAt?: Date;
1851
- discountMethod?: DiscountMethodsEnum;
1852
- discountValue?: number;
1853
- taxIncludedPrice?: number;
1854
- }
1855
- export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1856
- paymentPlanId: number;
1857
- paymentDate: Date;
1858
- deletedAt?: Date;
1859
- paymentPlan: ProductPaymentPlan;
1860
- }
1861
- export declare class ProductToVariantTitle extends OrganizationConnectionBaseEntity {
1862
- productId: number;
1863
- variantTitleId: number;
1864
- }
1865
- export declare class Group extends BondBaseEntity {
1866
- name: string;
1867
- description?: string;
1868
- status: GroupStatusEnum;
1869
- maxCapacity?: number;
1870
- mainMediaId?: number;
1871
- minAgeYears?: number;
1872
- maxAgeYears?: number;
1873
- gender: GenderEnum;
1874
- levelOfPlay?: LevelOfPlayEnum[];
1875
- sports: SportsEnum[];
1876
- questionnaires?: number[];
1877
- captainUserId?: number;
1878
- members: ISeasonAttendeeInfo[];
1879
- users: User[];
1880
- }
1881
- export declare class Program extends BondBaseEntity {
1882
- type: ProgramTypesEnum;
1883
- name: string;
1884
- sport: SportsEnum;
1885
- minAge: string;
1886
- maxAge: string;
1887
- gender: GenderEnum;
1888
- level: LevelOfPlayEnum[] | null;
1889
- description: string | null;
1890
- GL?: string | null;
1891
- status: PublishingStatusEnum;
1892
- mainMedia: Media;
1893
- organizationId: number;
1894
- userCreatorId: number;
1895
- programHighlights: ProgramHighlights[];
1896
- linkSEO: string;
1897
- longDescription?: string;
1898
- requiredProductIds: number[] | null;
1899
- deletedAt?: Date;
1900
- programSeason: ProgramSeason[];
1901
- purchasedResources: PurchasedResource[];
1902
- }
1903
- export declare class ProgramHighlights extends BondBaseEntity {
1904
- type: ProgramHighlightTypeEnum;
1905
- ordinal: number | null;
1906
- title: string | null;
1907
- data: any | null;
1908
- program: Program;
1909
- deletedAt?: Date;
1910
- }
1911
- export declare class ProductToVariant extends OrganizationConnectionBaseEntity {
1912
- productId: number;
1913
- variantId: number;
1914
- }
1915
- export declare class OpeningTime extends OrganizationConnectionBaseEntity {
1916
- id: number;
1917
- dayOfWeek: number;
1918
- open: string;
1919
- close: string;
1920
- facilityId: number;
1921
- createdAt: Date;
1922
- updatedAt: Date;
1923
- deletedAt?: Date;
1924
- facility: Facility;
1925
- }
1926
- export declare class InvoiceMails extends OrganizationConnectionBaseEntity {
1927
- email: string;
1928
- status: EEmailStatus;
1929
- templateId: string;
1930
- userId: number;
1931
- invoiceId: number;
1932
- paymentId: number;
1933
- sendingUserId: number;
1934
- mailParams?: any;
1935
- memo?: string;
1936
- }
1937
- export declare class Questions extends BondBaseEntity {
1938
- questionType: string | null;
1939
- ordinal: number | null;
1940
- pageOrdinal: number | null;
1941
- isActive: boolean | null;
1942
- isMandatory: boolean | null;
1943
- metaData: any | null;
1944
- question: string | null;
1945
- creatorId: number | null;
1946
- creatorType: string | null;
1947
- userCreatorId: number | null;
1948
- ownerId: number | null;
1949
- questionnaireId: number | null;
1950
- }
1951
- export declare class PurchasedResource extends OrganizationConnectionBaseEntity {
1952
- productUserId: number;
1953
- resourceId: number;
1954
- resourceType: ResourceNameTypeEnum;
1955
- status: PurchasedResourceStatusEnum;
1956
- startDate?: string;
1957
- startTime?: string;
1958
- endDate?: string;
1959
- endTime?: string;
1960
- productUser?: ProductsUsers;
1961
- lineItem?: LineItems;
1962
- eventAttendee?: EventAttendee;
1963
- seasonAttendee?: SeasonAttendee;
1964
- leagueAttendee?: SeasonPool;
1965
- membership?: Membership;
1966
- program?: Program;
1967
- programSeason?: ProgramSeason;
1968
- leagueSeason?: LeagueSeason;
1969
- space?: Resource;
1970
- product?: Product;
1971
- event?: Event;
1972
- }
1973
2036
  export declare class RefundReason extends OrganizationConnectionBaseEntity {
1974
2037
  reason: string;
1975
2038
  ordinal: number;
1976
2039
  deletedAt: Date;
1977
2040
  }
1978
- export declare class Questionnaires extends OrganizationConnectionBaseEntity {
1979
- title: string | null;
1980
- answerTitle: AnswerTitle;
2041
+ export declare class RegistrationConstraint extends OrganizationConnectionBaseEntity {
2042
+ resourceType: ResourceNameTypeEnum;
2043
+ resourceId: number;
2044
+ openNumDays?: number;
2045
+ openNumMinutes?: number;
2046
+ openTime?: string;
2047
+ closeNumDays?: number;
2048
+ closeNumMinutes?: number;
2049
+ closeTime?: string;
2050
+ deletedAt?: Date;
2051
+ }
2052
+ export declare class PaymentV1 extends BondBaseEntity {
2053
+ userId: number | null;
2054
+ ownerId: number | null;
2055
+ parentId: number | null;
2056
+ parentType: string | null;
2057
+ idAtProvider: string | null;
2058
+ providerType: number | null;
2059
+ providerExtraData: string | null;
2060
+ requestData: string | null;
2061
+ responseData: string | null;
2062
+ status: number | null;
2063
+ price: number | null;
2064
+ currency: string | null;
2065
+ locked: boolean | null;
2066
+ numberOfTries: number | null;
2067
+ installmentId: number | null;
2068
+ invoiceId: string | null;
2069
+ }
2070
+ export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
2071
+ productId: number;
2072
+ maxMonths?: number;
2073
+ dayOfMonth?: number;
2074
+ name: string;
2075
+ deletedAt?: Date;
2076
+ schedule: PaymentPlanSchedule[];
2077
+ product?: Product;
1981
2078
  }
1982
2079
  export declare class ProgramSeason extends BondBaseEntity {
1983
2080
  programId: number;
@@ -2033,128 +2130,6 @@ export declare class ProgramSeason extends BondBaseEntity {
2033
2130
  facility: Facility;
2034
2131
  purchasedResources: PurchasedResource[];
2035
2132
  }
2036
- export declare class Reservations extends OrganizationConnectionBaseEntity {
2037
- name?: string;
2038
- description?: string;
2039
- color?: string;
2040
- status?: string;
2041
- privacySetting?: string;
2042
- reservationType?: string;
2043
- invoiceId?: string;
2044
- customerId?: number;
2045
- length?: number;
2046
- price?: number;
2047
- sessions?: number;
2048
- percentage?: number;
2049
- paymentStatus?: number;
2050
- paymentId?: number;
2051
- startTime?: string;
2052
- dayOfWeek?: number;
2053
- resourcePackageId?: number;
2054
- resourcePackageAmount?: number;
2055
- startDate?: Date;
2056
- endDate?: Date;
2057
- originalReservationId?: number;
2058
- creatorId?: number;
2059
- creatorType?: string;
2060
- userCreatorId?: number;
2061
- ownerId?: number;
2062
- sportType?: number;
2063
- participantType?: string;
2064
- deletedAt?: Date;
2065
- publicNotes?: string;
2066
- slots?: Slot[];
2067
- }
2068
- export declare class RegistrationConstraint extends OrganizationConnectionBaseEntity {
2069
- resourceType: ResourceNameTypeEnum;
2070
- resourceId: number;
2071
- openNumDays?: number;
2072
- openNumMinutes?: number;
2073
- openTime?: string;
2074
- closeNumDays?: number;
2075
- closeNumMinutes?: number;
2076
- closeTime?: string;
2077
- deletedAt?: Date;
2078
- }
2079
- export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
2080
- productId: number;
2081
- maxMonths?: number;
2082
- dayOfMonth?: number;
2083
- name: string;
2084
- deletedAt?: Date;
2085
- schedule: PaymentPlanSchedule[];
2086
- product?: Product;
2087
- }
2088
- export declare class Resource extends OrganizationConnectionBaseEntity {
2089
- name: string;
2090
- resourceType: ResourceTypeEnum;
2091
- resourceSubType: ResourceSubTypeEnum;
2092
- description?: string;
2093
- longDescription?: string;
2094
- surface?: SurfacesEnum;
2095
- properties?: SpacePropertiesEnum[];
2096
- mainMediaId?: number;
2097
- mainMedia: Media;
2098
- sports: SportsEnum[];
2099
- width?: number;
2100
- length?: number;
2101
- amenities?: AmenitiesEnum[];
2102
- parentSpaceId?: number;
2103
- ordinal?: number;
2104
- isAddOn: boolean;
2105
- ages?: ResourceAgesEnum;
2106
- deletedAt?: Date;
2107
- activityTimes: ActivityTimes[];
2108
- facilities: Facility[];
2109
- slots?: Slot[];
2110
- addons?: Addon[];
2111
- facilityId: number;
2112
- facility: Facility;
2113
- purchasedResources: PurchasedResource[];
2114
- linkSEO: string;
2115
- }
2116
- export declare class School extends BondBaseEntity {
2117
- name: string | null;
2118
- alias: string[] | null;
2119
- addressId: number | null;
2120
- website: string | null;
2121
- phone: string | null;
2122
- dataId: number | null;
2123
- }
2124
- export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2125
- name: string;
2126
- facilityId: number;
2127
- parentSlotId: number;
2128
- childrenSlotIds: number[];
2129
- deletedAt?: Date;
2130
- }
2131
- export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
2132
- productId: number;
2133
- userId: number;
2134
- user?: User;
2135
- paymentStatus: PaymentStatusEnum;
2136
- productName: string;
2137
- productPrice: number;
2138
- productQuantity: number;
2139
- productQuantityLeft: number;
2140
- productPriceCurrency: CurrencyEnum;
2141
- ordinal?: number;
2142
- purchasedResources: PurchasedResource[];
2143
- product: Product;
2144
- lineItem: LineItems;
2145
- slots?: Slot[];
2146
- addons?: Addon[];
2147
- }
2148
- export declare class SpacesDependency extends BondBaseEntity {
2149
- blockingSpaceId: number;
2150
- blockedSpaceId: number;
2151
- }
2152
- export declare class SeasonDivisions extends BondBaseEntity {
2153
- name: string | null;
2154
- ordinal: number | null;
2155
- seasonId: number | null;
2156
- color: string | null;
2157
- }
2158
2133
  export declare class SeasonAttendee extends BondBaseEntity {
2159
2134
  status: RequestStatusEnum;
2160
2135
  paymentStatus: PaymentStatusEnum;
@@ -2169,47 +2144,17 @@ export declare class SeasonAttendee extends BondBaseEntity {
2169
2144
  deletedAt?: Date;
2170
2145
  purchasedResource: PurchasedResource;
2171
2146
  }
2172
- export declare class Subcategory extends OrganizationConnectionBaseEntity {
2173
- productType: ProductTypesEnum;
2174
- name: string;
2175
- ordinal?: number;
2176
- deletedAt?: Date;
2177
- stationToSubcategories: StationToSubcategory[];
2178
- stations: Station[];
2147
+ export declare class NotificationSubscriptions extends OrganizationConnectionBaseEntity {
2148
+ email: string | null;
2149
+ notificationType: NotificationTypeEnum | null;
2150
+ resourceId: number | null;
2151
+ resourceType: string | null;
2179
2152
  }
2180
- export declare class Team extends BondBaseEntity {
2153
+ export declare class SeasonDivisions extends BondBaseEntity {
2181
2154
  name: string | null;
2182
- description: string | null;
2183
- status: number | null;
2184
- capacity: number | null;
2185
- allowNewMembers: boolean | null;
2186
- membersCanInvite: boolean | null;
2187
- inviteOnly: boolean | null;
2188
- logoId: number | null;
2189
- addressId: number | null;
2190
- price: number | null;
2191
- private: boolean | null;
2192
- returnOverride: boolean | null;
2193
- organizationId: number | null;
2194
- whoCanJoin: TeamCanJoinEnum | null;
2195
- whoCanInvite: string | null;
2196
- metadata: any | null;
2197
- externalId: string | null;
2198
- paymentSettings: any | null;
2199
- isClaimed: boolean | null;
2200
- creatorId: number | null;
2201
- creatorType: string | null;
2202
- userCreatorId: number | null;
2203
- ownerId: number | null;
2204
- mainMediaId: number | null;
2205
- publishedDate: Date | null;
2206
- isPublished: boolean | null;
2207
- levelOfPlay: number[] | null;
2208
- sports: number | null;
2209
- minAge: number | null;
2210
- maxAge: number | null;
2211
- gender: number | null;
2212
- questionnaireId: number | null;
2155
+ ordinal: number | null;
2156
+ seasonId: number | null;
2157
+ color: string | null;
2213
2158
  }
2214
2159
  export declare class StationToSubcategory extends OrganizationConnectionBaseEntity {
2215
2160
  stationId: number;
@@ -2219,40 +2164,27 @@ export declare class StationToSubcategory extends OrganizationConnectionBaseEnti
2219
2164
  station: Station;
2220
2165
  subcategory: Subcategory;
2221
2166
  }
2222
- export declare class Station extends OrganizationConnectionBaseEntity {
2223
- name: string;
2224
- facilityId: number;
2225
- processorTerminalId: string | null;
2226
- terminaLabel: string | null;
2227
- processorSerialNumber: string | null;
2228
- currentOpenShift?: Shift;
2229
- stationToSubcategories: StationToSubcategory[];
2230
- subcategories: Subcategory[];
2231
- shifts?: Shift[];
2167
+ export declare class School extends BondBaseEntity {
2168
+ name: string | null;
2169
+ alias: string[] | null;
2170
+ addressId: number | null;
2171
+ website: string | null;
2172
+ phone: string | null;
2173
+ dataId: number | null;
2232
2174
  }
2233
- export declare class TeamMember extends BondBaseEntity {
2234
- teamId: number | null;
2235
- userId: number | null;
2236
- paymentId: number | null;
2237
- hasPaid: boolean | null;
2238
- status: TeamMemberStatusEnum | null;
2239
- role: TeamMemberRoleEnum;
2240
- user: User;
2175
+ export declare class SpacesDependency extends BondBaseEntity {
2176
+ blockingSpaceId: number;
2177
+ blockedSpaceId: number;
2241
2178
  }
2242
- export declare class SeasonPool extends BondBaseEntity {
2243
- seasonId?: number;
2244
- userId?: number;
2245
- status?: number;
2246
- entityId?: number;
2247
- entityType?: string;
2248
- groupId?: string;
2249
- paymentStatus?: PaymentStatusV1Enum;
2250
- metadata?: any;
2251
- paymentId?: number;
2252
- externalAssign?: boolean;
2253
- productUserId?: number;
2254
- purchasedResource: PurchasedResource;
2255
- season: LeagueSeason;
2179
+ export declare class SeasonTeam extends BondBaseEntity {
2180
+ seasonId: number | null;
2181
+ teamId: number | null;
2182
+ standingPosition: number | null;
2183
+ statistics: any | null;
2184
+ points: number | null;
2185
+ divisionId: number | null;
2186
+ metaData: any | null;
2187
+ team: Team;
2256
2188
  }
2257
2189
  export declare class User extends BondBaseEntity {
2258
2190
  firstName: string | null;
@@ -2293,24 +2225,69 @@ export declare class User extends BondBaseEntity {
2293
2225
  invoiceNotes: InvoiceNote[];
2294
2226
  paymentNotes: PaymentNote[];
2295
2227
  }
2296
- export declare class SeasonTeam extends BondBaseEntity {
2297
- seasonId: number | null;
2298
- teamId: number | null;
2299
- standingPosition: number | null;
2300
- statistics: any | null;
2301
- points: number | null;
2302
- divisionId: number | null;
2303
- metaData: any | null;
2304
- team: Team;
2228
+ export declare class ResourceGroup extends OrganizationConnectionBaseEntity {
2229
+ name: string;
2230
+ facilityId: number;
2231
+ parentSlotId: number;
2232
+ childrenSlotIds: number[];
2233
+ deletedAt?: Date;
2234
+ }
2235
+ export declare class TeamMember extends BondBaseEntity {
2236
+ teamId: number | null;
2237
+ userId: number | null;
2238
+ paymentId: number | null;
2239
+ hasPaid: boolean | null;
2240
+ status: TeamMemberStatusEnum | null;
2241
+ role: TeamMemberRoleEnum;
2242
+ user: User;
2243
+ }
2244
+ export declare class Subcategory extends OrganizationConnectionBaseEntity {
2245
+ productType: ProductTypesEnum;
2246
+ name: string;
2247
+ ordinal?: number;
2248
+ deletedAt?: Date;
2249
+ stationToSubcategories: StationToSubcategory[];
2250
+ stations: Station[];
2251
+ }
2252
+ export declare class VariantTitle extends OrganizationConnectionBaseEntity {
2253
+ name: string;
2254
+ variants: Variant[];
2255
+ }
2256
+ export declare class UserAuthorizations extends BondBaseEntity {
2257
+ entityId: number | null;
2258
+ userId: number | null;
2259
+ entityType: UserAuthorizationsTypeEnum;
2260
+ user: User;
2261
+ }
2262
+ export declare class UserInFamilyAccount extends BondBaseEntity {
2263
+ familyAccountId: number;
2264
+ userId: number;
2265
+ isAdmin: boolean;
2266
+ user: User;
2267
+ familyAccount: FamilyAccount;
2268
+ deletedAt?: Date;
2305
2269
  }
2306
2270
  export declare class UsersInGroup extends BondBaseEntity {
2307
2271
  groupId: number;
2308
2272
  userId: number;
2309
2273
  deletedAt?: Date;
2310
2274
  }
2311
- export declare class VariantTitle extends OrganizationConnectionBaseEntity {
2275
+ export declare class Station extends OrganizationConnectionBaseEntity {
2312
2276
  name: string;
2313
- variants: Variant[];
2277
+ facilityId: number;
2278
+ processorTerminalId: string | null;
2279
+ terminaLabel: string | null;
2280
+ processorSerialNumber: string | null;
2281
+ currentOpenShift?: Shift;
2282
+ stationToSubcategories: StationToSubcategory[];
2283
+ subcategories: Subcategory[];
2284
+ shifts?: Shift[];
2285
+ }
2286
+ export declare class Variant extends OrganizationConnectionBaseEntity {
2287
+ name: string;
2288
+ variantTitleId: number;
2289
+ variantTitle: VariantTitle;
2290
+ deletedAt?: Date;
2314
2291
  }
2315
2292
  export declare class TeamInvite extends BondBaseEntity {
2316
2293
  email: string;
@@ -2321,18 +2298,54 @@ export declare class TeamInvite extends BondBaseEntity {
2321
2298
  tokenExpirationDate: Date;
2322
2299
  isUsed: boolean;
2323
2300
  }
2324
- export declare class ProductsReservedForCustomers extends OrganizationConnectionBaseEntity {
2325
- productId: number;
2326
- customerId: number;
2327
- customer: Customer;
2328
- deletedAt?: Date;
2329
- product: Product;
2301
+ export declare class Team extends BondBaseEntity {
2302
+ name: string | null;
2303
+ description: string | null;
2304
+ status: number | null;
2305
+ capacity: number | null;
2306
+ allowNewMembers: boolean | null;
2307
+ membersCanInvite: boolean | null;
2308
+ inviteOnly: boolean | null;
2309
+ logoId: number | null;
2310
+ addressId: number | null;
2311
+ price: number | null;
2312
+ private: boolean | null;
2313
+ returnOverride: boolean | null;
2314
+ organizationId: number | null;
2315
+ whoCanJoin: TeamCanJoinEnum | null;
2316
+ whoCanInvite: string | null;
2317
+ metadata: any | null;
2318
+ externalId: string | null;
2319
+ paymentSettings: any | null;
2320
+ isClaimed: boolean | null;
2321
+ creatorId: number | null;
2322
+ creatorType: string | null;
2323
+ userCreatorId: number | null;
2324
+ ownerId: number | null;
2325
+ mainMediaId: number | null;
2326
+ publishedDate: Date | null;
2327
+ isPublished: boolean | null;
2328
+ levelOfPlay: number[] | null;
2329
+ sports: number | null;
2330
+ minAge: number | null;
2331
+ maxAge: number | null;
2332
+ gender: number | null;
2333
+ questionnaireId: number | null;
2330
2334
  }
2331
- export declare class Variant extends OrganizationConnectionBaseEntity {
2332
- name: string;
2333
- variantTitleId: number;
2334
- variantTitle: VariantTitle;
2335
- deletedAt?: Date;
2335
+ export declare class SeasonPool extends BondBaseEntity {
2336
+ seasonId?: number;
2337
+ userId?: number;
2338
+ status?: number;
2339
+ entityId?: number;
2340
+ entityType?: string;
2341
+ groupId?: string;
2342
+ paymentStatus?: PaymentStatusV1Enum;
2343
+ metadata?: any;
2344
+ paymentId?: number;
2345
+ externalAssign?: boolean;
2346
+ productUserId?: number;
2347
+ purchasedResource: PurchasedResource;
2348
+ season: LeagueSeason;
2336
2349
  }
2337
2350
  export declare class WebflowOrganizationConfiguration extends OrganizationConnectionBaseEntity {
2338
2351
  projectToken: string;
@@ -2342,12 +2355,6 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
2342
2355
  membershipCollectionId?: string;
2343
2356
  programsCollectionId?: string;
2344
2357
  }
2345
- export declare class UserAuthorizations extends BondBaseEntity {
2346
- entityId: number | null;
2347
- userId: number | null;
2348
- entityType: UserAuthorizationsTypeEnum;
2349
- user: User;
2350
- }
2351
2358
  export interface IEntitlementTerms {
2352
2359
  type: EntitlementTermsTypesEnum;
2353
2360
  id?: number;
@@ -3116,7 +3123,8 @@ export declare enum OrganizationLocaleDateEnum {
3116
3123
  }
3117
3124
  export declare enum DateTimeFormatsEnum {
3118
3125
  API_DATE = "YYYY/MM/DD",
3119
- API_TIME = "HH:mm:ss"
3126
+ API_TIME = "HH:mm:ss",
3127
+ DB_DATE = "YYYY-MM-DD"
3120
3128
  }
3121
3129
  export declare enum SlotTypeEnum {
3122
3130
  EXTERNAL = "external",
@@ -3236,97 +3244,24 @@ export declare enum EEmailStatus {
3236
3244
  PAID = "paid",
3237
3245
  CANCELED = "canceled"
3238
3246
  }
3239
- export declare class UserInFamilyAccount extends BondBaseEntity {
3240
- familyAccountId: number;
3241
- userId: number;
3242
- isAdmin: boolean;
3243
- user: User;
3244
- familyAccount: FamilyAccount;
3245
- deletedAt?: Date;
3247
+ export declare enum PaymentSettingStatusEnum {
3248
+ ENABLED = 1,
3249
+ DISABLED_REDIRECT = 2,
3250
+ DISABLED_INFO_ONLY = 3,
3251
+ DISABLED_EMAIL = 4
3246
3252
  }
3247
- export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3248
- name?: string;
3249
- genderStr?: string;
3250
- parentID?: string;
3251
- partnerID?: string;
3252
- membershipName?: string;
3253
- membershipExpDate?: string;
3254
- membershipCreationDate?: string;
3255
- bondMembershipID?: number;
3253
+ export declare enum NotfiyMethodEnum {
3254
+ EMAIL = "Email"
3256
3255
  }
3257
- export declare class AddFamilyDto {
3258
- parents: AddImportedCustomerDto[];
3259
- children: AddImportedCustomerDto[];
3256
+ export declare class GameSlots extends BondBaseEntity {
3257
+ entityType: string;
3258
+ entityId: number;
3260
3259
  }
3261
3260
  export declare class ColumnNumericTransformer {
3262
3261
  to(data: number): number;
3263
3262
  from(data: string): number;
3264
3263
  }
3265
3264
  export declare function convertToNumber(data: string): number;
3266
- export declare class Lock extends BondBaseEntity {
3267
- name: string;
3268
- locked?: Date;
3269
- }
3270
- export declare class GameSlots extends BondBaseEntity {
3271
- entityType: string;
3272
- entityId: number;
3273
- }
3274
- export declare class ImportedSlotProductDto {
3275
- slotID?: string;
3276
- name?: string;
3277
- pricingType?: 'Hourly' | 'Flat';
3278
- appliesTo?: 'slot' | 'addon' | 'reservation';
3279
- price?: string;
3280
- minutes?: string;
3281
- quantity: string;
3282
- startDate?: string;
3283
- startTime?: string;
3284
- endDate?: string;
3285
- endTime?: string;
3286
- bondProductId?: number;
3287
- }
3288
- export declare class ImportResourceMappingDto {
3289
- bondResourceID?: string;
3290
- resourceName?: string;
3291
- }
3292
- export declare class ImportProductMappingDto {
3293
- productID?: string;
3294
- productName?: string;
3295
- }
3296
- export declare class ImportedSlotDto {
3297
- reservationID: string;
3298
- bondResourceID: string;
3299
- resourceName: string;
3300
- subResourceName: string;
3301
- startDate: string;
3302
- startTime: string;
3303
- endDate: string;
3304
- endTime: string;
3305
- sportId?: string;
3306
- setupDuration: string;
3307
- setupIncludeInCosts: string;
3308
- takedownDuration: string;
3309
- takedownIncludeInCosts: string;
3310
- slotProduct: ImportedSlotProductDto;
3311
- addonProducts: ImportedSlotProductDto[];
3312
- totalPrice: string;
3313
- }
3314
- export declare class ImportedReservationDto {
3315
- name: string;
3316
- customerId: string;
3317
- description: string;
3318
- totalPrice: string;
3319
- downPayment: string;
3320
- paid: string;
3321
- invoiceId: string;
3322
- slots?: ImportedSlotDto[];
3323
- addons?: ImportedSlotProductDto[];
3324
- }
3325
- export declare class Matches extends BondBaseEntity {
3326
- eventId: number | null;
3327
- status: number | null;
3328
- excludeStandings: boolean | null;
3329
- }
3330
3265
  export declare class MatchParticipants extends BondBaseEntity {
3331
3266
  matchId: number | null;
3332
3267
  ordinal: number | null;
@@ -3336,37 +3271,51 @@ export declare class MatchParticipants extends BondBaseEntity {
3336
3271
  score: number | null;
3337
3272
  gameSlotId: number | null;
3338
3273
  }
3339
- export declare class RoundEvents extends BaseEntity {
3340
- roundId: number;
3341
- eventId: number;
3342
- seriesId: number | null;
3343
- createdAt: Date;
3344
- updatedAt: Date;
3274
+ export interface ValidatedMonthAndDay {
3275
+ valid: boolean;
3276
+ month?: number;
3277
+ day?: number;
3345
3278
  }
3346
- export declare class SeasonRounds extends BondBaseEntity {
3347
- seasonId: number;
3348
- ordinal?: number;
3349
- divisionId?: number;
3350
- name: string;
3279
+ export interface ValidationReason {
3280
+ valid: boolean;
3281
+ reason?: string;
3282
+ }
3283
+ export declare class Matches extends BondBaseEntity {
3284
+ eventId: number | null;
3285
+ status: number | null;
3286
+ excludeStandings: boolean | null;
3351
3287
  }
3352
3288
  export declare class TeamEvents extends BondBaseEntity {
3353
3289
  teamId: number | null;
3354
3290
  eventId: number | null;
3355
3291
  status: number | null;
3356
3292
  }
3357
- export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3358
- facilityId: number;
3359
- code: string;
3360
- config?: any;
3293
+ export declare class SeasonRounds extends BondBaseEntity {
3294
+ seasonId: number;
3295
+ ordinal?: number;
3296
+ divisionId?: number;
3297
+ name: string;
3361
3298
  }
3362
- export interface ValidatedMonthAndDay {
3363
- valid: boolean;
3364
- month?: number;
3365
- day?: number;
3299
+ export declare class RoundEvents extends BaseEntity {
3300
+ roundId: number;
3301
+ eventId: number;
3302
+ seriesId: number | null;
3303
+ createdAt: Date;
3304
+ updatedAt: Date;
3366
3305
  }
3367
- export interface ValidationReason {
3368
- valid: boolean;
3369
- reason?: string;
3306
+ export declare class AddImportedCustomerDto extends AddEditCustomerDto {
3307
+ name?: string;
3308
+ genderStr?: string;
3309
+ parentID?: string;
3310
+ partnerID?: string;
3311
+ membershipName?: string;
3312
+ membershipExpDate?: string;
3313
+ membershipCreationDate?: string;
3314
+ bondMembershipID?: number;
3315
+ }
3316
+ export declare class AddFamilyDto {
3317
+ parents: AddImportedCustomerDto[];
3318
+ children: AddImportedCustomerDto[];
3370
3319
  }
3371
3320
  export interface PaymentStatus {
3372
3321
  parentId: number;
@@ -3380,46 +3329,81 @@ export interface PaymentStatusesDict {
3380
3329
  export interface PaymentStatusDict {
3381
3330
  [id: number]: ReservationPaymentStatusEnum;
3382
3331
  }
3383
- export declare enum ImportPaymentTypeEnum {
3384
- CREDIT_CARD = "card",
3385
- ACH = "ach",
3386
- CASH = "cash",
3387
- CHECK = "check",
3388
- CARD_ON_TERMINAL = "card-on-terminal",
3389
- OTHER = "other"
3332
+ export declare class MonitorConfig extends OrganizationConnectionBaseEntity {
3333
+ facilityId: number;
3334
+ code: string;
3335
+ config?: any;
3390
3336
  }
3391
- export declare class ImportedInvoiceLineDto {
3392
- invoiceID?: string;
3393
- description: string;
3394
- createdDate: string;
3395
- createdTime: string;
3337
+ export declare class ImportedSlotProductDto {
3338
+ slotID?: string;
3339
+ name?: string;
3340
+ pricingType?: 'Hourly' | 'Flat';
3341
+ appliesTo?: 'slot' | 'addon' | 'reservation';
3342
+ price?: string;
3343
+ minutes?: string;
3396
3344
  quantity: string;
3397
- price: string;
3398
- total: string;
3399
- customerID: string;
3400
- resourceType: string;
3401
- resourceID: string;
3345
+ startDate?: string;
3346
+ startTime?: string;
3347
+ endDate?: string;
3348
+ endTime?: string;
3349
+ bondProductId?: number;
3402
3350
  }
3403
- export declare class ImportedInvoiceDto {
3404
- customerId?: string;
3405
- total?: string;
3406
- amountDue?: string;
3407
- payments?: ImportedPaymentDto[];
3408
- lines: any;
3351
+ export declare class ImportResourceMappingDto {
3352
+ bondResourceID?: string;
3353
+ resourceName?: string;
3409
3354
  }
3410
- export declare class ImportedPaymentDto {
3411
- invoiceID: string;
3412
- type: ImportPaymentTypeEnum;
3355
+ export declare class ImportProductMappingDto {
3356
+ productID?: string;
3357
+ productName?: string;
3358
+ }
3359
+ export declare class ImportedSlotDto {
3360
+ reservationID: string;
3361
+ bondResourceID: string;
3362
+ resourceName: string;
3363
+ subResourceName: string;
3364
+ startDate: string;
3365
+ startTime: string;
3366
+ endDate: string;
3367
+ endTime: string;
3368
+ sportId?: string;
3369
+ setupDuration: string;
3370
+ setupIncludeInCosts: string;
3371
+ takedownDuration: string;
3372
+ takedownIncludeInCosts: string;
3373
+ slotProduct: ImportedSlotProductDto;
3374
+ addonProducts: ImportedSlotProductDto[];
3375
+ totalPrice: string;
3376
+ }
3377
+ export declare class ImportedReservationDto {
3378
+ name: string;
3379
+ customerId: string;
3413
3380
  description: string;
3381
+ totalPrice: string;
3382
+ downPayment: string;
3414
3383
  paid: string;
3415
- date: string;
3416
- time: string;
3384
+ invoiceId: string;
3385
+ slots?: ImportedSlotDto[];
3386
+ addons?: ImportedSlotProductDto[];
3417
3387
  }
3418
- export declare class CreateMonitorConfigDto {
3419
- facilityId: number;
3388
+ export declare class Lock extends BondBaseEntity {
3420
3389
  name: string;
3421
- code: string;
3422
- config: any;
3390
+ locked?: Date;
3391
+ }
3392
+ export declare class PunchPassDto {
3393
+ CustomerID: string;
3394
+ QuantityLeft: number;
3395
+ BondProgramID: number;
3396
+ BondSessionID: number;
3397
+ ProductID: number;
3398
+ }
3399
+ export declare class ProductIdsDto {
3400
+ productIds?: number[];
3401
+ }
3402
+ export declare class ProductImportDto {
3403
+ product: Product;
3404
+ prices: Price[];
3405
+ resourceIds: number[];
3406
+ oldId: number;
3423
3407
  }
3424
3408
  export declare class OrganizationBranding extends OrganizationConnectionBaseEntity {
3425
3409
  key?: string;
@@ -3427,12 +3411,6 @@ export declare class OrganizationBranding extends OrganizationConnectionBaseEnti
3427
3411
  version: number;
3428
3412
  organization: Organization;
3429
3413
  }
3430
- export declare class ByOrganizationIdDto {
3431
- organizationId: number;
3432
- }
3433
- export declare class OptionalFindByOrganizationIdDto {
3434
- organizationId?: number;
3435
- }
3436
3414
  export declare class Organization extends BondBaseEntity {
3437
3415
  name: string | null;
3438
3416
  email: string | null;
@@ -3482,6 +3460,22 @@ export declare class Organization extends BondBaseEntity {
3482
3460
  brandings: OrganizationBranding[];
3483
3461
  brandingsV2?: OrganizationBranding[];
3484
3462
  }
3463
+ export interface RefundResult extends PaymentsResults {
3464
+ successfulLineItems: RefundLineItemAmountDto[];
3465
+ failedLineItems: RefundLineItemAmountDto[];
3466
+ invoice?: Invoice;
3467
+ }
3468
+ export interface RefundResultWithLineItemsDict extends PaymentsResults {
3469
+ successfulLineItems: Map<number, RefundLineItemAmountDto>;
3470
+ failedLineItems: Map<number, RefundLineItemAmountDto>;
3471
+ totalAmountProcessed: number;
3472
+ }
3473
+ export declare class ByOrganizationIdDto {
3474
+ organizationId: number;
3475
+ }
3476
+ export declare class OptionalFindByOrganizationIdDto {
3477
+ organizationId?: number;
3478
+ }
3485
3479
  export interface PaymentResult {
3486
3480
  paymentMethodId: string;
3487
3481
  paymentMethodType: PaymentMethodTypeEnum;
@@ -3507,14 +3501,9 @@ export interface ExtendedLineItems {
3507
3501
  products: LineItems[];
3508
3502
  events: LineItems[];
3509
3503
  }
3510
- export declare class ProductIdsDto {
3511
- productIds?: number[];
3512
- }
3513
- export declare class ProductImportDto {
3514
- product: Product;
3515
- prices: Price[];
3516
- resourceIds: number[];
3517
- oldId: number;
3504
+ export declare class OrganizationUsers extends BondBaseEntity {
3505
+ organisationId: number | null;
3506
+ userId: number | null;
3518
3507
  }
3519
3508
  export declare class VoidDto {
3520
3509
  lineItems: VoidLineItemDto[];
@@ -3526,29 +3515,58 @@ export declare class VoidLineItemDto {
3526
3515
  isEdit?: boolean;
3527
3516
  amount?: number;
3528
3517
  }
3529
- export interface RefundResult extends PaymentsResults {
3530
- successfulLineItems: RefundLineItemAmountDto[];
3531
- failedLineItems: RefundLineItemAmountDto[];
3532
- invoice?: Invoice;
3518
+ export declare class RefundDto {
3519
+ invoiceId: number;
3520
+ lineItems: RefundLineItemAmountDto[];
3521
+ refundLineItemAmountDict?: {
3522
+ [id: number]: number;
3523
+ };
3524
+ refunds: PaymentMethodDto[];
3525
+ refundType: RefundTypeEnum;
3526
+ reasonId: number;
3527
+ note?: string;
3528
+ shiftId?: number;
3529
+ meta?: RevertMetaDto;
3533
3530
  }
3534
- export interface RefundResultWithLineItemsDict extends PaymentsResults {
3535
- successfulLineItems: Map<number, RefundLineItemAmountDto>;
3536
- failedLineItems: Map<number, RefundLineItemAmountDto>;
3537
- totalAmountProcessed: number;
3531
+ export declare class PaymentMethodDto {
3532
+ paymentMethodType: PaymentMethodTypeEnum;
3533
+ amount: number;
3534
+ paymentMethodId?: string;
3538
3535
  }
3539
- export declare class OrganizationUsers extends BondBaseEntity {
3540
- organisationId: number | null;
3541
- userId: number | null;
3536
+ export declare class RefundLineItemAmountDto {
3537
+ id: number;
3538
+ refundAmount: number;
3542
3539
  }
3543
- export declare class PunchPassDto {
3544
- CustomerID: string;
3545
- QuantityLeft: number;
3546
- BondProgramID: number;
3547
- BondSessionID: number;
3548
- ProductID: number;
3540
+ export declare class CreateMonitorConfigDto {
3541
+ facilityId: number;
3542
+ name: string;
3543
+ code: string;
3544
+ config: any;
3549
3545
  }
3550
- export declare class ChangeRolePermissionsDto {
3551
- permissionIds: number[];
3546
+ export declare class MaintenanceDto {
3547
+ id?: number;
3548
+ title: string;
3549
+ durationValue: number;
3550
+ maintenanceDurationdurationType: DurationUnitTypesEnum;
3551
+ maintenanceTiming: MaintenanceTimingEnum;
3552
+ }
3553
+ export declare class AddonDto extends ProductPricesDto {
3554
+ id?: number;
3555
+ }
3556
+ export declare class AddAddonsDto {
3557
+ addons: AddonDto[];
3558
+ }
3559
+ export declare class EditAddonsDto {
3560
+ addons: EditAddonDto[];
3561
+ }
3562
+ export declare class EditReservationAddonsDto extends EditAddonsDto {
3563
+ refundMeta?: EditItemsRefundMetaDto;
3564
+ }
3565
+ export declare class EditAddonDto {
3566
+ id: number;
3567
+ quantity: number;
3568
+ totalPrice: number;
3569
+ unitPrice?: number;
3552
3570
  }
3553
3571
  export declare class CustomerIdDto {
3554
3572
  customerId: number;
@@ -3618,7 +3636,7 @@ export declare class PaymentDataDto {
3618
3636
  payemntMethodId: string;
3619
3637
  }
3620
3638
  export declare class SendReceiptDataDto {
3621
- invoiceId: number;
3639
+ paymentId: number;
3622
3640
  deliveryMethod: 'email' | 'sms';
3623
3641
  sendToAddress?: string;
3624
3642
  }
@@ -3664,27 +3682,39 @@ export declare class SendRequestDto {
3664
3682
  sendToEmail: string;
3665
3683
  memo?: string;
3666
3684
  }
3667
- export declare class RefundDto {
3668
- invoiceId: number;
3669
- lineItems: RefundLineItemAmountDto[];
3670
- refundLineItemAmountDict?: {
3671
- [id: number]: number;
3672
- };
3673
- refunds: PaymentMethodDto[];
3674
- refundType: RefundTypeEnum;
3675
- reasonId: number;
3676
- note?: string;
3677
- shiftId?: number;
3678
- meta?: RevertMetaDto;
3679
- }
3680
- export declare class PaymentMethodDto {
3681
- paymentMethodType: PaymentMethodTypeEnum;
3682
- amount: number;
3683
- paymentMethodId?: string;
3685
+ export declare class LineItemDto {
3686
+ id?: number;
3687
+ invoiceId?: number;
3688
+ type: LineItemsStatusEnum;
3689
+ organizationId: number;
3690
+ userId?: number;
3691
+ productId: number;
3692
+ product?: Product;
3693
+ productType: ProductTypesEnum;
3694
+ ordinal?: number;
3695
+ price: number;
3696
+ originalPrice?: number;
3697
+ paidAmount?: number;
3698
+ currency: CurrencyEnum;
3699
+ paymentStatus?: PaymentStatusEnum;
3700
+ isRefunded?: boolean;
3701
+ isTaxInclusive?: boolean;
3702
+ taxPrecent?: number;
3703
+ unitPrice?: number;
3704
+ quantity: number;
3705
+ resources?: PurchasedResourceDto[];
3706
+ relationType?: 'reservation-addon' | 'slots' | 'slot_addons';
3707
+ unitPriceWithTax?: number;
3708
+ unitTaxPrice?: number;
3709
+ parentOrdinal?: number;
3684
3710
  }
3685
- export declare class RefundLineItemAmountDto {
3686
- id: number;
3687
- refundAmount: number;
3711
+ export declare class PurchasedResourceDto {
3712
+ resourceId?: number;
3713
+ resourceType: ResourceNameTypeEnum;
3714
+ startDate?: string;
3715
+ startTime?: string;
3716
+ endDate?: string;
3717
+ endTime?: string;
3688
3718
  }
3689
3719
  export declare class InvoiceDto {
3690
3720
  invoiceId?: string | null;
@@ -3727,30 +3757,57 @@ export declare class AddSlotsDto extends UpdateInvoiceDto {
3727
3757
  export declare class AddSegmentsDto extends UpdateInvoiceDto {
3728
3758
  segments: SegmentDto[];
3729
3759
  }
3730
- export declare class MaintenanceDto {
3731
- id?: number;
3732
- title: string;
3733
- durationValue: number;
3734
- maintenanceDurationdurationType: DurationUnitTypesEnum;
3735
- maintenanceTiming: MaintenanceTimingEnum;
3736
- }
3737
- export declare class AddonDto extends ProductPricesDto {
3738
- id?: number;
3760
+ export declare enum ImportPaymentTypeEnum {
3761
+ CREDIT_CARD = "card",
3762
+ ACH = "ach",
3763
+ CASH = "cash",
3764
+ CHECK = "check",
3765
+ CARD_ON_TERMINAL = "card-on-terminal",
3766
+ OTHER = "other"
3739
3767
  }
3740
- export declare class AddAddonsDto {
3741
- addons: AddonDto[];
3768
+ export declare class ImportedInvoiceLineDto {
3769
+ invoiceID?: string;
3770
+ description: string;
3771
+ createdDate: string;
3772
+ createdTime: string;
3773
+ quantity: string;
3774
+ price: string;
3775
+ total: string;
3776
+ customerID: string;
3777
+ resourceType: string;
3778
+ resourceID: string;
3742
3779
  }
3743
- export declare class EditAddonsDto {
3744
- addons: EditAddonDto[];
3780
+ export declare class ImportedInvoiceDto {
3781
+ customerId?: string;
3782
+ total?: string;
3783
+ amountDue?: string;
3784
+ payments?: ImportedPaymentDto[];
3785
+ lines: any;
3745
3786
  }
3746
- export declare class EditReservationAddonsDto extends EditAddonsDto {
3747
- refundMeta?: EditItemsRefundMetaDto;
3787
+ export declare class ImportedPaymentDto {
3788
+ invoiceID: string;
3789
+ type: ImportPaymentTypeEnum;
3790
+ description: string;
3791
+ paid: string;
3792
+ date: string;
3793
+ time: string;
3748
3794
  }
3749
- export declare class EditAddonDto {
3750
- id: number;
3751
- quantity: number;
3752
- totalPrice: number;
3753
- unitPrice?: number;
3795
+ export declare class SeriesDto {
3796
+ id?: number;
3797
+ startDate: string;
3798
+ startTime?: string;
3799
+ endDate?: string;
3800
+ endTime?: string;
3801
+ slotDurationType: SlotDurationTypeEnum;
3802
+ durationEndsAfter?: number;
3803
+ durationUnit?: DurationUnitTypesEnum;
3804
+ frequency: FrequencyEnum;
3805
+ repeatEvery?: number;
3806
+ repeatOn?: number[];
3807
+ repeatEndDate?: string;
3808
+ numberOccurrences?: number;
3809
+ maintenance?: MaintenanceDto[];
3810
+ slots?: SlotDto[];
3754
3811
  }
3755
3812
  export declare class ReservationDto {
3756
3813
  id?: number;
@@ -3896,152 +3953,47 @@ export declare class EditReservationDetailsDto {
3896
3953
  export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
3897
3954
  updateAddons?: boolean;
3898
3955
  }
3899
- export declare class SegmentDto {
3900
- id?: number;
3901
- title: string;
3902
- isPrivate: boolean;
3903
- resourceIds: number[];
3904
- sportId?: number;
3905
- series: SeriesDto[];
3906
- addonIds?: number[];
3907
- publicNotesForSlots?: string;
3908
- privateNotesForSlots?: string;
3909
- }
3910
- export declare class SlotDateTimeAndSpace {
3911
- startDate: string;
3912
- startTime?: string;
3913
- endDate?: string;
3914
- endTime?: string;
3915
- spaceId: number;
3956
+ export declare class ReservationNotifyDto {
3957
+ notifyMethods?: NotfiyMethodEnum[];
3916
3958
  }
3917
- export declare class SlotDto extends SlotDateTimeAndSpace {
3918
- id?: number;
3919
- reservationId?: number;
3920
- occurrence?: number;
3921
- title: string;
3922
- creatorId?: number;
3923
- creatorType?: string;
3924
- userCreatorId?: number;
3925
- timezone?: string;
3926
- publicNotes?: string;
3927
- privateNotes?: string;
3928
- slotType: SlotTypeEnum;
3929
- product?: Product;
3930
- priceOverrideMeta?: {
3931
- unitPrice: number;
3932
- quantity: number;
3933
- totalPrice: number;
3934
- };
3935
- addonPriceOverrideMeta?: {
3936
- [addonProductId: number]: {
3937
- unitPrice: number;
3938
- quantity: number;
3939
- totalPrice: number;
3959
+ export declare type TSlotAndType = {
3960
+ type: 'slots' | 'slot_addons';
3961
+ slotsForProduct: {
3962
+ [productId: number]: {
3963
+ product: Product;
3964
+ slots: SlotDto[];
3940
3965
  };
3941
3966
  };
3942
- addonProducts?: Product[];
3943
- addonCalculatedPrice?: {
3944
- productId: number;
3945
- quantity: number;
3946
- unitPrice: number;
3947
- totalPrice: number;
3948
- displayTotalWithTax?: number;
3949
- displayUnitTax?: number;
3950
- }[];
3951
- addonsProductUserIds?: number[];
3952
- segmentId?: number;
3953
- seriesId?: number;
3954
- eventId?: number;
3955
- sportIds: number[];
3956
- parentSlotId?: number;
3957
- maintenanceDurationdurationType?: DurationUnitTypesEnum;
3958
- maintenanceTiming?: MaintenanceTimingEnum;
3959
- durationValue?: number;
3960
- invoicId?: number;
3961
- paymentStatus: ReservationPaymentStatusEnum;
3962
- approvalStatus: ReservationStatusEnum;
3963
- displayName?: string;
3964
- internalName?: string;
3965
- totalPrice?: number;
3966
- relevantProducts?: Product[];
3967
- maintenance?: MaintenanceDto[];
3968
- maintenanceSlots?: SlotDto[];
3969
- isPrivate: boolean;
3970
- slotDurationType: SlotDurationTypeEnum;
3971
- addonsIds?: number[];
3972
- }
3973
- export declare class TimeSlotDto {
3974
- id?: number;
3975
- resourceId: number;
3976
- startDate: string;
3977
- startTime: string;
3978
- endDate: string;
3979
- endTime: string;
3980
- }
3981
- export declare class TimeSlotsDto {
3982
- timeSlots: TimeSlotDto[];
3983
- }
3984
- export declare class SlotsIdsDto {
3985
- slotsIds: number[];
3986
- }
3987
- export declare class SeriesDto {
3988
- id?: number;
3989
- startDate: string;
3990
- startTime?: string;
3991
- endDate?: string;
3992
- endTime?: string;
3993
- slotDurationType: SlotDurationTypeEnum;
3994
- durationEndsAfter?: number;
3995
- durationUnit?: DurationUnitTypesEnum;
3996
- frequency: FrequencyEnum;
3997
- repeatEvery?: number;
3998
- repeatOn?: number[];
3999
- repeatEndDate?: string;
4000
- numberOccurrences?: number;
4001
- maintenance?: MaintenanceDto[];
4002
- slots?: SlotDto[];
4003
- }
4004
- declare class AnswerDto {
4005
- questionId: number;
4006
- value: any;
4007
- }
4008
- export declare class BookedSessionDto {
4009
- startDate: string;
4010
- endDate: string;
4011
- timezone: string;
4012
- spaceId: number;
4013
- }
4014
- export declare class ReservationV1Dto {
4015
- organizationId: number;
4016
- name: string;
4017
- dayOfWeek: number;
4018
- startTime: string;
4019
- description: string;
4020
- sport: number;
4021
- price: number;
4022
- resourcePackageId: number;
4023
- resourcePackageAmount: number;
4024
- bookedSessions: BookedSessionDto[];
4025
- addons: AddonDto[];
3967
+ };
3968
+ export interface ILineItemResource {
3969
+ type: 'addons' | 'segments' | 'series' | 'slots' | 'slot_addons';
3970
+ values: TResource[];
4026
3971
  }
4027
- export declare class BookingV1Dto {
4028
- organizationId: number;
4029
- reservations: ReservationV1Dto[];
4030
- answers: AnswerDto[];
4031
- paymentData: PurchasePaymentDto;
4032
- skipPayment: boolean;
4033
- cashPayment: boolean;
4034
- requestOnly: boolean;
3972
+ export declare class ChangeRolePermissionsDto {
3973
+ permissionIds: number[];
4035
3974
  }
4036
- export declare class Role extends OrganizationConnectionBaseEntity {
3975
+ export declare class CreateRoleDto {
4037
3976
  name: string;
4038
- deletedAt?: Date;
4039
- permissions: Permission[];
4040
- usersRoles: UserRole[];
4041
3977
  }
4042
- export declare class Permission extends BondBaseEntity {
4043
- name: string;
4044
- deletedAt?: Date;
3978
+ export declare class Addon extends OrganizationConnectionBaseEntity {
3979
+ parentId: number;
3980
+ parentType: AddonParentTypeEnum;
3981
+ productId: number;
3982
+ product?: Product;
3983
+ quantity: number;
3984
+ unitPrice: number;
3985
+ totalPrice: number;
3986
+ approvalStatus: ReservationStatusEnum;
3987
+ paymentStatus: ReservationPaymentStatusEnum;
3988
+ level?: ProductPackageLevelEnum;
3989
+ resourceId?: number;
3990
+ resource?: Resource;
3991
+ invoiceId?: number;
3992
+ invoice?: Invoice;
3993
+ productUserId?: number;
3994
+ productUser?: ProductsUsers;
3995
+ previousProductUsersIds?: number[];
3996
+ previousProductUsers?: ProductsUsers[];
4045
3997
  }
4046
3998
  export declare type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
4047
3999
  export declare type TResource = Reservation | Segment | Series | Slot | Addon;
@@ -4263,40 +4215,45 @@ export interface AddonMetadata {
4263
4215
  productId: number;
4264
4216
  quantity: number;
4265
4217
  unitPrice: number;
4266
- totalPrice: number;
4267
- }
4268
- export declare class UserRole extends OrganizationConnectionBaseEntity {
4269
- deletedAt?: Date;
4270
- userId: number;
4271
- roleId: number;
4272
- role: Role;
4273
- user: User;
4274
- }
4275
- export declare class Addon extends OrganizationConnectionBaseEntity {
4276
- parentId: number;
4277
- parentType: AddonParentTypeEnum;
4278
- productId: number;
4279
- product?: Product;
4280
- quantity: number;
4281
- unitPrice: number;
4282
- totalPrice: number;
4283
- approvalStatus: ReservationStatusEnum;
4284
- paymentStatus: ReservationPaymentStatusEnum;
4285
- level?: ProductPackageLevelEnum;
4286
- resourceId?: number;
4287
- resource?: Resource;
4288
- invoiceId?: number;
4289
- invoice?: Invoice;
4290
- productUserId?: number;
4291
- productUser?: ProductsUsers;
4292
- previousProductUsersIds?: number[];
4293
- previousProductUsers?: ProductsUsers[];
4218
+ totalPrice: number;
4219
+ product?: Product;
4294
4220
  }
4295
- export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4296
- deletedAt?: Date;
4297
- reservationId: number;
4298
- invoiceId: number;
4299
- slotId: number;
4221
+ declare class AnswerDto {
4222
+ questionId: number;
4223
+ value: any;
4224
+ }
4225
+ export declare class BookedSessionDto {
4226
+ startDate: string;
4227
+ endDate: string;
4228
+ timezone: string;
4229
+ spaceId: number;
4230
+ }
4231
+ declare class AddonV1Dto {
4232
+ resourcePackageId: number;
4233
+ resourcePackageAmount: number;
4234
+ resourcePackagePrice: number;
4235
+ }
4236
+ export declare class ReservationV1Dto {
4237
+ organizationId: number;
4238
+ name: string;
4239
+ dayOfWeek: number;
4240
+ startTime: string;
4241
+ description: string;
4242
+ sport: number;
4243
+ price: number;
4244
+ resourcePackageId: number;
4245
+ resourcePackageAmount: number;
4246
+ bookedSessions: BookedSessionDto[];
4247
+ addons: AddonV1Dto[];
4248
+ }
4249
+ export declare class BookingV1Dto {
4250
+ organizationId: number;
4251
+ reservations: ReservationV1Dto[];
4252
+ answers: AnswerDto[];
4253
+ paymentData: PurchasePaymentDto;
4254
+ skipPayment: boolean;
4255
+ cashPayment: boolean;
4256
+ requestOnly: boolean;
4300
4257
  }
4301
4258
  export declare class Reservation extends OrganizationConnectionBaseEntity {
4302
4259
  name?: string;
@@ -4331,19 +4288,9 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
4331
4288
  targetGlobalPrice?: number;
4332
4289
  slots: Slot[];
4333
4290
  }
4334
- export declare class Segment extends OrganizationConnectionBaseEntity {
4291
+ export declare class Permission extends BondBaseEntity {
4292
+ name: string;
4335
4293
  deletedAt?: Date;
4336
- reservationId: number;
4337
- title: string;
4338
- isPrivate: boolean;
4339
- resourceIds?: number[];
4340
- sportId: number;
4341
- reservation?: Reservation;
4342
- series?: Series[];
4343
- addonIds?: number[] | null;
4344
- publicNotesForSlots?: string;
4345
- privateNotesForSlots?: string;
4346
- slots?: Slot[];
4347
4294
  }
4348
4295
  export declare class Series extends OrganizationConnectionBaseEntity {
4349
4296
  deletedAt?: Date;
@@ -4364,26 +4311,44 @@ export declare class Series extends OrganizationConnectionBaseEntity {
4364
4311
  numberOccurrences?: number;
4365
4312
  resources?: Resource[];
4366
4313
  }
4367
- export declare type TSlotAndType = {
4368
- type: 'slots' | 'slot_addons';
4369
- slotsForProduct: {
4370
- [productId: number]: {
4371
- product: Product;
4372
- slots: SlotDto[];
4373
- };
4374
- };
4375
- };
4376
- export interface ILineItemResource {
4377
- type: 'addons' | 'segments' | 'series' | 'slots' | 'slot_addons';
4378
- values: TResource[];
4314
+ export declare class Segment extends OrganizationConnectionBaseEntity {
4315
+ deletedAt?: Date;
4316
+ reservationId: number;
4317
+ title: string;
4318
+ isPrivate: boolean;
4319
+ resourceIds?: number[];
4320
+ sportId: number;
4321
+ reservation?: Reservation;
4322
+ series?: Series[];
4323
+ addonIds?: number[] | null;
4324
+ publicNotesForSlots?: string;
4325
+ privateNotesForSlots?: string;
4326
+ slots?: Slot[];
4379
4327
  }
4380
- export declare class PurchasedResourceDto {
4381
- resourceId?: number;
4382
- resourceType: ResourceNameTypeEnum;
4383
- startDate?: string;
4384
- startTime?: string;
4385
- endDate?: string;
4386
- endTime?: string;
4328
+ export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
4329
+ deletedAt?: Date;
4330
+ reservationId: number;
4331
+ invoiceId: number;
4332
+ slotId: number;
4333
+ }
4334
+ export declare class UserRole extends OrganizationConnectionBaseEntity {
4335
+ deletedAt?: Date;
4336
+ userId: number;
4337
+ roleId: number;
4338
+ role: Role;
4339
+ user: User;
4340
+ }
4341
+ export declare class Role extends OrganizationConnectionBaseEntity {
4342
+ name: string;
4343
+ deletedAt?: Date;
4344
+ permissions: Permission[];
4345
+ usersRoles: UserRole[];
4346
+ }
4347
+ export declare class FindShiftsByIdsDto {
4348
+ shiftIds: number[];
4349
+ }
4350
+ export declare class CloseShiftDto {
4351
+ closingCashAmount: number;
4387
4352
  }
4388
4353
  export declare class Slot extends OrganizationConnectionBaseEntity {
4389
4354
  constructor();
@@ -4451,31 +4416,108 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
4451
4416
  conflictsCount?: number;
4452
4417
  conflicts?: Slot[];
4453
4418
  }
4454
- export declare class LineItemDto {
4419
+ export declare class ShiftManagementClosingAmount {
4420
+ shiftId: number;
4421
+ managementClosingCashAmount: number;
4422
+ }
4423
+ export declare class ManagementClosingOfShiftsDto {
4424
+ managementClosingData: ShiftManagementClosingAmount[];
4425
+ }
4426
+ export declare class SlotDateTimeAndSpace {
4427
+ startDate: string;
4428
+ startTime?: string;
4429
+ endDate?: string;
4430
+ endTime?: string;
4431
+ spaceId: number;
4432
+ }
4433
+ export declare class SlotDto extends SlotDateTimeAndSpace {
4455
4434
  id?: number;
4456
- invoiceId?: number;
4457
- type: LineItemsStatusEnum;
4458
- organizationId: number;
4459
- userId?: number;
4460
- productId: number;
4435
+ reservationId?: number;
4436
+ occurrence?: number;
4437
+ title: string;
4438
+ creatorId?: number;
4439
+ creatorType?: string;
4440
+ userCreatorId?: number;
4441
+ timezone?: string;
4442
+ publicNotes?: string;
4443
+ privateNotes?: string;
4444
+ slotType: SlotTypeEnum;
4461
4445
  product?: Product;
4462
- productType: ProductTypesEnum;
4463
- ordinal?: number;
4464
- price: number;
4465
- originalPrice?: number;
4466
- paidAmount?: number;
4467
- currency: CurrencyEnum;
4468
- paymentStatus?: PaymentStatusEnum;
4469
- isRefunded?: boolean;
4470
- isTaxInclusive?: boolean;
4471
- taxPrecent?: number;
4472
- unitPrice?: number;
4473
- quantity: number;
4474
- resources?: PurchasedResourceDto[];
4475
- relationType?: 'reservation-addon' | 'slots' | 'slot_addons';
4476
- unitPriceWithTax?: number;
4477
- unitTaxPrice?: number;
4478
- parentOrdinal?: number;
4446
+ priceOverrideMeta?: {
4447
+ unitPrice: number;
4448
+ quantity: number;
4449
+ totalPrice: number;
4450
+ };
4451
+ addonPriceOverrideMeta?: {
4452
+ [addonProductId: number]: {
4453
+ unitPrice: number;
4454
+ quantity: number;
4455
+ totalPrice: number;
4456
+ };
4457
+ };
4458
+ addonProducts?: Product[];
4459
+ addonCalculatedPrice?: {
4460
+ productId: number;
4461
+ quantity: number;
4462
+ unitPrice: number;
4463
+ totalPrice: number;
4464
+ displayTotalWithTax?: number;
4465
+ displayUnitTax?: number;
4466
+ }[];
4467
+ addonsProductUserIds?: number[];
4468
+ segmentId?: number;
4469
+ seriesId?: number;
4470
+ eventId?: number;
4471
+ sportIds: number[];
4472
+ parentSlotId?: number;
4473
+ maintenanceDurationdurationType?: DurationUnitTypesEnum;
4474
+ maintenanceTiming?: MaintenanceTimingEnum;
4475
+ durationValue?: number;
4476
+ invoicId?: number;
4477
+ paymentStatus: ReservationPaymentStatusEnum;
4478
+ approvalStatus: ReservationStatusEnum;
4479
+ displayName?: string;
4480
+ internalName?: string;
4481
+ totalPrice?: number;
4482
+ relevantProducts?: Product[];
4483
+ maintenance?: MaintenanceDto[];
4484
+ maintenanceSlots?: SlotDto[];
4485
+ isPrivate: boolean;
4486
+ slotDurationType: SlotDurationTypeEnum;
4487
+ addonsIds?: number[];
4488
+ }
4489
+ export declare class TimeSlotDto {
4490
+ id?: number;
4491
+ resourceId: number;
4492
+ startDate: string;
4493
+ startTime: string;
4494
+ endDate: string;
4495
+ endTime: string;
4496
+ parentSlotId?: number;
4497
+ }
4498
+ export declare class TimeSlotsDto {
4499
+ timeSlots: TimeSlotDto[];
4500
+ }
4501
+ export declare class SlotsIdsDto {
4502
+ slotsIds: number[];
4503
+ }
4504
+ export declare class SegmentDto {
4505
+ id?: number;
4506
+ title: string;
4507
+ isPrivate: boolean;
4508
+ resourceIds: number[];
4509
+ sportId?: number;
4510
+ series: SeriesDto[];
4511
+ addonIds?: number[];
4512
+ publicNotesForSlots?: string;
4513
+ privateNotesForSlots?: string;
4514
+ }
4515
+ export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
4516
+ mainAdminUserId?: number;
4517
+ }
4518
+ export declare class OpenShiftDto {
4519
+ openingCashAmount: number;
4520
+ stationId: number;
4479
4521
  }
4480
4522
  export declare class Shift extends OrganizationConnectionBaseEntity {
4481
4523
  stationId: number;
@@ -4526,26 +4568,3 @@ export declare class FindShiftsFormattedFilters {
4526
4568
  startDate?: Date;
4527
4569
  endDate?: Date;
4528
4570
  }
4529
- export declare class CreateRoleDto {
4530
- name: string;
4531
- }
4532
- export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
4533
- mainAdminUserId?: number;
4534
- }
4535
- export declare class FindShiftsByIdsDto {
4536
- shiftIds: number[];
4537
- }
4538
- export declare class OpenShiftDto {
4539
- openingCashAmount: number;
4540
- stationId: number;
4541
- }
4542
- export declare class ShiftManagementClosingAmount {
4543
- shiftId: number;
4544
- managementClosingCashAmount: number;
4545
- }
4546
- export declare class ManagementClosingOfShiftsDto {
4547
- managementClosingData: ShiftManagementClosingAmount[];
4548
- }
4549
- export declare class CloseShiftDto {
4550
- closingCashAmount: number;
4551
- }