@bondsports/types 0.0.68 → 0.0.71

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
@@ -27,64 +27,6 @@ export declare class FindBookingTypeSettingDto {
27
27
  bookingDate: string;
28
28
  bookingTime: string;
29
29
  }
30
- export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
31
- membershipId: number;
32
- }
33
- export declare class ImportProductsFromDB {
34
- buDate: string;
35
- }
36
- export declare class ImportCustomerFromCSV {
37
- fileName: string;
38
- startIndex?: number;
39
- }
40
- export declare class ImportProgramsFileDto extends ImportCustomerFromCSV {
41
- resolveInvoices: string;
42
- }
43
- export declare class ImportDashCustomerDto extends ImportCustomerFromCSV {
44
- membershipId: number;
45
- onlyDashIds: string;
46
- }
47
- export declare class ImportRentalsFromCSV extends ImportCustomerFromCSV {
48
- facilityId: number;
49
- }
50
- export declare class ByOrganizationIdCustomerIdDto extends ByOrganizationIdDto {
51
- customerId: number;
52
- }
53
- export declare class FindCustomersByOrganizationIdFiltersDto extends PaginationQuery {
54
- nameSearch?: string;
55
- fuzzy?: string;
56
- customerType?: CustomerTypeEnum;
57
- customersIds?: string;
58
- }
59
- export declare class AddCustomerNotesDto {
60
- customerNotes: CustomerNoteDto[];
61
- }
62
- export declare class CustomerNoteDto {
63
- id?: number;
64
- description: string;
65
- pinToTop?: boolean;
66
- }
67
- export declare class AddEditCustomerDto {
68
- firstName?: string;
69
- lastName?: string;
70
- entityId?: number;
71
- entityType?: CustomerTypeEnum;
72
- email?: string;
73
- color?: string;
74
- street?: string;
75
- city?: string;
76
- state?: string;
77
- zip?: string;
78
- phoneNumber?: string;
79
- mainMediaId?: number;
80
- creatorId?: number;
81
- creatorType?: ResourceNameTypeEnum;
82
- userCreatorId?: number;
83
- gender?: GenderEnum;
84
- birthDate?: string;
85
- emergencyContactName?: string;
86
- emergencyContactPhone?: string;
87
- }
88
30
  export declare class FindEventByIdDto {
89
31
  eventId: number;
90
32
  organizationId: number;
@@ -229,6 +171,64 @@ export declare class UpdateFacilityAmenitiesDto {
229
171
  export declare class FindFacilitiesOptionsDto extends PaginationQuery {
230
172
  nameSearch?: string;
231
173
  }
174
+ export declare class FindByMembershipIdDto extends ByOrganizationIdDto {
175
+ membershipId: number;
176
+ }
177
+ export declare class ImportProductsFromDB {
178
+ buDate: string;
179
+ }
180
+ export declare class ImportCustomerFromCSV {
181
+ fileName: string;
182
+ startIndex?: number;
183
+ }
184
+ export declare class ImportProgramsFileDto extends ImportCustomerFromCSV {
185
+ resolveInvoices: string;
186
+ }
187
+ export declare class ImportDashCustomerDto extends ImportCustomerFromCSV {
188
+ membershipId: number;
189
+ onlyDashIds: string;
190
+ }
191
+ export declare class ImportRentalsFromCSV extends ImportCustomerFromCSV {
192
+ facilityId: number;
193
+ }
194
+ export declare class ByOrganizationIdCustomerIdDto extends ByOrganizationIdDto {
195
+ customerId: number;
196
+ }
197
+ export declare class FindCustomersByOrganizationIdFiltersDto extends PaginationQuery {
198
+ nameSearch?: string;
199
+ fuzzy?: string;
200
+ customerType?: CustomerTypeEnum;
201
+ customersIds?: string;
202
+ }
203
+ export declare class AddCustomerNotesDto {
204
+ customerNotes: CustomerNoteDto[];
205
+ }
206
+ export declare class CustomerNoteDto {
207
+ id?: number;
208
+ description: string;
209
+ pinToTop?: boolean;
210
+ }
211
+ export declare class AddEditCustomerDto {
212
+ firstName?: string;
213
+ lastName?: string;
214
+ entityId?: number;
215
+ entityType?: CustomerTypeEnum;
216
+ email?: string;
217
+ color?: string;
218
+ street?: string;
219
+ city?: string;
220
+ state?: string;
221
+ zip?: string;
222
+ phoneNumber?: string;
223
+ mainMediaId?: number;
224
+ creatorId?: number;
225
+ creatorType?: ResourceNameTypeEnum;
226
+ userCreatorId?: number;
227
+ gender?: GenderEnum;
228
+ birthDate?: string;
229
+ emergencyContactName?: string;
230
+ emergencyContactPhone?: string;
231
+ }
232
232
  export declare class FindFamilyAccountsDto {
233
233
  userId: number;
234
234
  }
@@ -412,48 +412,6 @@ export declare class CancelMembershipDto {
412
412
  isImmediatelyCancel: boolean;
413
413
  cancellationReason?: string;
414
414
  }
415
- export declare class CreateEntitlementTermsDto {
416
- organizationId: number;
417
- entitlementGroupId: number;
418
- terms: IEntitlementTerms[];
419
- }
420
- export declare class FindEntitlementTermsByGroupIdDto {
421
- entitlementGroupId: number;
422
- }
423
- export declare class FindEntitlementTermsByVariablesDto {
424
- user: any;
425
- userVariables: IQuestionAnswerObject[];
426
- }
427
- export declare class FindLowestPriceDto {
428
- organizationId: number;
429
- user?: any;
430
- answers?: IQuestionAnswerObject[];
431
- itemIds: number[];
432
- itemType?: ResourceNameTypeEnum;
433
- startDate?: Date;
434
- }
435
- export declare class FindGroupItemsPricingsDto {
436
- groupsIds: number[];
437
- itemsIds: number[];
438
- }
439
- export declare class CreateEntitlementGroupDto {
440
- name: string;
441
- }
442
- export declare class GetEntitlementGroupPricingDto {
443
- itemIds: number[];
444
- itemType: string;
445
- }
446
- export declare class FindEntitlementGroupByIdDto {
447
- groupid: number;
448
- }
449
- export declare class CreateGroupPricingWithProduct {
450
- groupId: number;
451
- price: number;
452
- startDate?: Date;
453
- endDate?: Date;
454
- discountValue?: number;
455
- discountMethod?: DiscountMethodsEnum;
456
- }
457
415
  export declare class FindByProductIdDto {
458
416
  productId: number;
459
417
  }
@@ -674,6 +632,48 @@ export declare class createResourceDto {
674
632
  export declare class archiveDto {
675
633
  isArchive: boolean;
676
634
  }
635
+ export declare class CreateEntitlementTermsDto {
636
+ organizationId: number;
637
+ entitlementGroupId: number;
638
+ terms: IEntitlementTerms[];
639
+ }
640
+ export declare class FindEntitlementTermsByGroupIdDto {
641
+ entitlementGroupId: number;
642
+ }
643
+ export declare class FindEntitlementTermsByVariablesDto {
644
+ user: any;
645
+ userVariables: IQuestionAnswerObject[];
646
+ }
647
+ export declare class FindLowestPriceDto {
648
+ organizationId: number;
649
+ user?: any;
650
+ answers?: IQuestionAnswerObject[];
651
+ itemIds: number[];
652
+ itemType?: ResourceNameTypeEnum;
653
+ startDate?: Date;
654
+ }
655
+ export declare class FindGroupItemsPricingsDto {
656
+ groupsIds: number[];
657
+ itemsIds: number[];
658
+ }
659
+ export declare class CreateEntitlementGroupDto {
660
+ name: string;
661
+ }
662
+ export declare class GetEntitlementGroupPricingDto {
663
+ itemIds: number[];
664
+ itemType: string;
665
+ }
666
+ export declare class FindEntitlementGroupByIdDto {
667
+ groupid: number;
668
+ }
669
+ export declare class CreateGroupPricingWithProduct {
670
+ groupId: number;
671
+ price: number;
672
+ startDate?: Date;
673
+ endDate?: Date;
674
+ discountValue?: number;
675
+ discountMethod?: DiscountMethodsEnum;
676
+ }
677
677
  export declare class CreateUpdateVariantsDto {
678
678
  organizationId: number;
679
679
  parentProductId: number;
@@ -1111,6 +1111,12 @@ export declare class Address extends BondBaseEntity {
1111
1111
  geo: any;
1112
1112
  deletedAt?: Date;
1113
1113
  }
1114
+ export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1115
+ questionnaireId: number;
1116
+ userId?: number;
1117
+ answers: Answer[];
1118
+ questionnaire: Questionnaires;
1119
+ }
1114
1120
  export declare class Answer extends OrganizationConnectionBaseEntity {
1115
1121
  questionId: number;
1116
1122
  question?: Questions;
@@ -1124,12 +1130,6 @@ export declare class Answer extends OrganizationConnectionBaseEntity {
1124
1130
  metaData: any | null;
1125
1131
  questionText: string | null;
1126
1132
  }
1127
- export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
1128
- questionnaireId: number;
1129
- userId?: number;
1130
- answers: Answer[];
1131
- questionnaire: Questionnaires;
1132
- }
1133
1133
  export declare class Athlete extends BondBaseEntity {
1134
1134
  userId: number | null;
1135
1135
  metadata: object | null;
@@ -1728,15 +1728,6 @@ export declare class Order extends BondBaseEntity {
1728
1728
  orderNotes: OrderNote[];
1729
1729
  slots: Slot[];
1730
1730
  }
1731
- export declare class OrderNote extends OrganizationConnectionBaseEntity {
1732
- content: string;
1733
- creatingUserId: number;
1734
- user: User;
1735
- isPublic: boolean;
1736
- deletedAt: Date;
1737
- orderId: number;
1738
- order: Order;
1739
- }
1740
1731
  export declare class OrderToInvoice extends BondBaseEntity {
1741
1732
  orderId: number;
1742
1733
  invoiceId: number;
@@ -1771,11 +1762,14 @@ export declare class PasswordReset extends BondBaseEntity {
1771
1762
  validUntil: Date | null;
1772
1763
  active: boolean | null;
1773
1764
  }
1774
- export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1775
- paymentPlanId: number;
1776
- paymentDate: Date;
1777
- deletedAt?: Date;
1778
- paymentPlan: ProductPaymentPlan;
1765
+ export declare class OrderNote extends OrganizationConnectionBaseEntity {
1766
+ content: string;
1767
+ creatingUserId: number;
1768
+ user: User;
1769
+ isPublic: boolean;
1770
+ deletedAt: Date;
1771
+ orderId: number;
1772
+ order: Order;
1779
1773
  }
1780
1774
  export declare class PaymentV1 extends BondBaseEntity {
1781
1775
  userId: number | null;
@@ -1795,6 +1789,12 @@ export declare class PaymentV1 extends BondBaseEntity {
1795
1789
  installmentId: number | null;
1796
1790
  orderId: string | null;
1797
1791
  }
1792
+ export declare class PaymentPlanSchedule extends OrganizationConnectionBaseEntity {
1793
+ paymentPlanId: number;
1794
+ paymentDate: Date;
1795
+ deletedAt?: Date;
1796
+ paymentPlan: ProductPaymentPlan;
1797
+ }
1798
1798
  export declare class Price extends OrganizationConnectionBaseEntity {
1799
1799
  productId: number;
1800
1800
  product: Product;
@@ -1928,28 +1928,6 @@ export declare class ProductsUsers extends OrganizationConnectionBaseEntity {
1928
1928
  slots?: Slot[];
1929
1929
  addons?: Addon[];
1930
1930
  }
1931
- export declare class Program extends BondBaseEntity {
1932
- type: ProgramTypesEnum;
1933
- name: string;
1934
- sport: SportsEnum;
1935
- minAge: string;
1936
- maxAge: string;
1937
- gender: GenderEnum;
1938
- level: LevelOfPlayEnum[] | null;
1939
- description: string | null;
1940
- GL?: string | null;
1941
- status: PublishingStatusEnum;
1942
- mainMedia: Media;
1943
- organizationId: number;
1944
- userCreatorId: number;
1945
- programHighlights: ProgramHighlights[];
1946
- linkSEO: string;
1947
- longDescription?: string;
1948
- requiredProductIds: number[] | null;
1949
- deletedAt?: Date;
1950
- programSeason: ProgramSeason[];
1951
- purchasedResources: PurchasedResource[];
1952
- }
1953
1931
  export declare class ProgramHighlights extends BondBaseEntity {
1954
1932
  type: ProgramHighlightTypeEnum;
1955
1933
  ordinal: number | null;
@@ -2012,6 +1990,28 @@ export declare class ProgramSeason extends BondBaseEntity {
2012
1990
  facility: Facility;
2013
1991
  purchasedResources: PurchasedResource[];
2014
1992
  }
1993
+ export declare class Program extends BondBaseEntity {
1994
+ type: ProgramTypesEnum;
1995
+ name: string;
1996
+ sport: SportsEnum;
1997
+ minAge: string;
1998
+ maxAge: string;
1999
+ gender: GenderEnum;
2000
+ level: LevelOfPlayEnum[] | null;
2001
+ description: string | null;
2002
+ GL?: string | null;
2003
+ status: PublishingStatusEnum;
2004
+ mainMedia: Media;
2005
+ organizationId: number;
2006
+ userCreatorId: number;
2007
+ programHighlights: ProgramHighlights[];
2008
+ linkSEO: string;
2009
+ longDescription?: string;
2010
+ requiredProductIds: number[] | null;
2011
+ deletedAt?: Date;
2012
+ programSeason: ProgramSeason[];
2013
+ purchasedResources: PurchasedResource[];
2014
+ }
2015
2015
  export declare class PurchasedResource extends OrganizationConnectionBaseEntity {
2016
2016
  productUserId: number;
2017
2017
  resourceId: number;
@@ -3253,40 +3253,12 @@ export declare class AddFamilyDto {
3253
3253
  parents: AddImportedCustomerDto[];
3254
3254
  children: AddImportedCustomerDto[];
3255
3255
  }
3256
- export declare enum ImportPaymentTypeEnum {
3257
- CREDIT_CARD = "card",
3258
- ACH = "ach",
3259
- CASH = "cash",
3260
- CHECK = "check",
3261
- CARD_ON_TERMINAL = "card-on-terminal",
3262
- OTHER = "other"
3263
- }
3264
- export declare class ImportedInvoiceLineDto {
3265
- invoiceID?: string;
3266
- description: string;
3267
- createdDate: string;
3268
- createdTime: string;
3269
- quantity: string;
3270
- price: string;
3271
- total: string;
3272
- customerID: string;
3273
- resourceType: string;
3274
- resourceID: string;
3275
- }
3276
- export declare class ImportedInvoiceDto {
3277
- customerId?: string;
3278
- total?: string;
3279
- amountDue?: string;
3280
- payments?: ImportedPaymentDto[];
3281
- lines: any;
3282
- }
3283
- export declare class ImportedPaymentDto {
3284
- invoiceID: string;
3285
- type: ImportPaymentTypeEnum;
3286
- description: string;
3287
- paid: string;
3288
- date: string;
3289
- time: string;
3256
+ export declare class PunchPassDto {
3257
+ CustomerID: string;
3258
+ QuantityLeft: number;
3259
+ BondProgramID: number;
3260
+ BondSessionID: number;
3261
+ ProductID: number;
3290
3262
  }
3291
3263
  export declare class ProductIdsDto {
3292
3264
  productIds?: number[];
@@ -3297,13 +3269,6 @@ export declare class ProductImportDto {
3297
3269
  resourceIds: number[];
3298
3270
  oldId: number;
3299
3271
  }
3300
- export declare class PunchPassDto {
3301
- CustomerID: string;
3302
- QuantityLeft: number;
3303
- BondProgramID: number;
3304
- BondSessionID: number;
3305
- ProductID: number;
3306
- }
3307
3272
  export declare class ImportedSlotProductDto {
3308
3273
  slotID?: string;
3309
3274
  name?: string;
@@ -3355,6 +3320,41 @@ export declare class ImportedReservationDto {
3355
3320
  slots?: ImportedSlotDto[];
3356
3321
  addons?: ImportedSlotProductDto[];
3357
3322
  }
3323
+ export declare enum ImportPaymentTypeEnum {
3324
+ CREDIT_CARD = "card",
3325
+ ACH = "ach",
3326
+ CASH = "cash",
3327
+ CHECK = "check",
3328
+ CARD_ON_TERMINAL = "card-on-terminal",
3329
+ OTHER = "other"
3330
+ }
3331
+ export declare class ImportedInvoiceLineDto {
3332
+ invoiceID?: string;
3333
+ description: string;
3334
+ createdDate: string;
3335
+ createdTime: string;
3336
+ quantity: string;
3337
+ price: string;
3338
+ total: string;
3339
+ customerID: string;
3340
+ resourceType: string;
3341
+ resourceID: string;
3342
+ }
3343
+ export declare class ImportedInvoiceDto {
3344
+ customerId?: string;
3345
+ total?: string;
3346
+ amountDue?: string;
3347
+ payments?: ImportedPaymentDto[];
3348
+ lines: any;
3349
+ }
3350
+ export declare class ImportedPaymentDto {
3351
+ invoiceID: string;
3352
+ type: ImportPaymentTypeEnum;
3353
+ description: string;
3354
+ paid: string;
3355
+ date: string;
3356
+ time: string;
3357
+ }
3358
3358
  export declare class GameSlots extends BondBaseEntity {
3359
3359
  entityType: string;
3360
3360
  entityId: number;
@@ -3467,13 +3467,13 @@ export declare class OrganizationBranding extends OrganizationConnectionBaseEnti
3467
3467
  version: number;
3468
3468
  organization: Organization;
3469
3469
  }
3470
- export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3471
- mainAdminUserId?: number;
3472
- }
3473
3470
  export declare class OrganizationUsers extends BondBaseEntity {
3474
3471
  organisationId: number | null;
3475
3472
  userId: number | null;
3476
3473
  }
3474
+ export declare class OrganizationSettings extends OrganizationConnectionBaseEntity {
3475
+ mainAdminUserId?: number;
3476
+ }
3477
3477
  export declare class CustomerIdDto {
3478
3478
  customerId: number;
3479
3479
  }
@@ -4158,9 +4158,6 @@ export declare class UserRole extends OrganizationConnectionBaseEntity {
4158
4158
  role: Role;
4159
4159
  user: User;
4160
4160
  }
4161
- export declare class CloseShiftDto {
4162
- closingCashAmount: number;
4163
- }
4164
4161
  export declare class FindShiftsByIdsDto {
4165
4162
  shiftIds: number[];
4166
4163
  }
@@ -4224,3 +4221,6 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
4224
4221
  closingManager?: User;
4225
4222
  reconcilingUser?: User;
4226
4223
  }
4224
+ export declare class CloseShiftDto {
4225
+ closingCashAmount: number;
4226
+ }