@bondsports/types 0.0.55 → 0.0.58
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 +154 -152
- package/build/index.es.js.map +1 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -85,6 +85,49 @@ export declare class AddEditCustomerDto {
|
|
|
85
85
|
emergencyContactName?: string;
|
|
86
86
|
emergencyContactPhone?: string;
|
|
87
87
|
}
|
|
88
|
+
export declare class AddressDto {
|
|
89
|
+
city: string;
|
|
90
|
+
state: string;
|
|
91
|
+
country: string;
|
|
92
|
+
geo: number[];
|
|
93
|
+
}
|
|
94
|
+
export declare class OpeningTimeDto {
|
|
95
|
+
open: string;
|
|
96
|
+
close: string;
|
|
97
|
+
dayOfWeek: number;
|
|
98
|
+
}
|
|
99
|
+
export declare class CreateFacilityDto {
|
|
100
|
+
name: string;
|
|
101
|
+
sports: number[];
|
|
102
|
+
description?: string;
|
|
103
|
+
longDescription?: string;
|
|
104
|
+
info?: string;
|
|
105
|
+
address: AddressDto;
|
|
106
|
+
timezone: string;
|
|
107
|
+
amenities: number[];
|
|
108
|
+
openingTimes: OpeningTimeDto[];
|
|
109
|
+
resourcesIds?: number[];
|
|
110
|
+
}
|
|
111
|
+
export declare class UpdateFacilityDetailsDto {
|
|
112
|
+
name?: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
longDescription?: string;
|
|
115
|
+
info?: string;
|
|
116
|
+
address?: AddressDto;
|
|
117
|
+
timezone?: string;
|
|
118
|
+
}
|
|
119
|
+
export declare class UpdateFacilityOpeningTimesDto {
|
|
120
|
+
openingTimes: OpeningTimeDto[];
|
|
121
|
+
}
|
|
122
|
+
export declare class UpdateFacilitySportsDto {
|
|
123
|
+
sports: number[];
|
|
124
|
+
}
|
|
125
|
+
export declare class UpdateFacilityAmenitiesDto {
|
|
126
|
+
amenities: number[];
|
|
127
|
+
}
|
|
128
|
+
export declare class FindFacilitiesOptionsDto extends PaginationQuery {
|
|
129
|
+
nameSearch?: string;
|
|
130
|
+
}
|
|
88
131
|
export declare class FindEventByIdDto {
|
|
89
132
|
eventId: number;
|
|
90
133
|
organizationId: number;
|
|
@@ -186,49 +229,6 @@ export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
|
|
|
186
229
|
isWaiverSigned?: string;
|
|
187
230
|
statuses?: string;
|
|
188
231
|
}
|
|
189
|
-
export declare class AddressDto {
|
|
190
|
-
city: string;
|
|
191
|
-
state: string;
|
|
192
|
-
country: string;
|
|
193
|
-
geo: number[];
|
|
194
|
-
}
|
|
195
|
-
export declare class OpeningTimeDto {
|
|
196
|
-
open: string;
|
|
197
|
-
close: string;
|
|
198
|
-
dayOfWeek: number;
|
|
199
|
-
}
|
|
200
|
-
export declare class CreateFacilityDto {
|
|
201
|
-
name: string;
|
|
202
|
-
sports: number[];
|
|
203
|
-
description?: string;
|
|
204
|
-
longDescription?: string;
|
|
205
|
-
info?: string;
|
|
206
|
-
address: AddressDto;
|
|
207
|
-
timezone: string;
|
|
208
|
-
amenities: number[];
|
|
209
|
-
openingTimes: OpeningTimeDto[];
|
|
210
|
-
resourcesIds?: number[];
|
|
211
|
-
}
|
|
212
|
-
export declare class UpdateFacilityDetailsDto {
|
|
213
|
-
name?: string;
|
|
214
|
-
description?: string;
|
|
215
|
-
longDescription?: string;
|
|
216
|
-
info?: string;
|
|
217
|
-
address?: AddressDto;
|
|
218
|
-
timezone?: string;
|
|
219
|
-
}
|
|
220
|
-
export declare class UpdateFacilityOpeningTimesDto {
|
|
221
|
-
openingTimes: OpeningTimeDto[];
|
|
222
|
-
}
|
|
223
|
-
export declare class UpdateFacilitySportsDto {
|
|
224
|
-
sports: number[];
|
|
225
|
-
}
|
|
226
|
-
export declare class UpdateFacilityAmenitiesDto {
|
|
227
|
-
amenities: number[];
|
|
228
|
-
}
|
|
229
|
-
export declare class FindFacilitiesOptionsDto extends PaginationQuery {
|
|
230
|
-
nameSearch?: 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,12 +1111,6 @@ 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
|
-
}
|
|
1120
1114
|
export declare class Answer extends OrganizationConnectionBaseEntity {
|
|
1121
1115
|
questionId: number;
|
|
1122
1116
|
question?: Questions;
|
|
@@ -1130,6 +1124,12 @@ export declare class Answer extends OrganizationConnectionBaseEntity {
|
|
|
1130
1124
|
metaData: any | null;
|
|
1131
1125
|
questionText: string | null;
|
|
1132
1126
|
}
|
|
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;
|
|
@@ -1876,15 +1876,6 @@ export declare class ProductPackage extends OrganizationConnectionBaseEntity {
|
|
|
1876
1876
|
durationDays?: number;
|
|
1877
1877
|
level?: ProductPackageLevelEnum;
|
|
1878
1878
|
}
|
|
1879
|
-
export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
|
|
1880
|
-
productId: number;
|
|
1881
|
-
maxMonths?: number;
|
|
1882
|
-
dayOfMonth?: number;
|
|
1883
|
-
name: string;
|
|
1884
|
-
deletedAt?: Date;
|
|
1885
|
-
schedule: PaymentPlanSchedule[];
|
|
1886
|
-
product?: Product;
|
|
1887
|
-
}
|
|
1888
1879
|
export declare class ProductResource extends OrganizationConnectionBaseEntity {
|
|
1889
1880
|
productId: number;
|
|
1890
1881
|
resourceId: number;
|
|
@@ -1896,6 +1887,15 @@ export declare class ProductResource extends OrganizationConnectionBaseEntity {
|
|
|
1896
1887
|
productPackages: ProductPackage[];
|
|
1897
1888
|
resourceName?: string;
|
|
1898
1889
|
}
|
|
1890
|
+
export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
|
|
1891
|
+
productId: number;
|
|
1892
|
+
maxMonths?: number;
|
|
1893
|
+
dayOfMonth?: number;
|
|
1894
|
+
name: string;
|
|
1895
|
+
deletedAt?: Date;
|
|
1896
|
+
schedule: PaymentPlanSchedule[];
|
|
1897
|
+
product?: Product;
|
|
1898
|
+
}
|
|
1899
1899
|
export declare class ProductToVariantTitle extends OrganizationConnectionBaseEntity {
|
|
1900
1900
|
productId: number;
|
|
1901
1901
|
variantTitleId: number;
|
|
@@ -2262,15 +2262,6 @@ export declare class TeamInvite extends BondBaseEntity {
|
|
|
2262
2262
|
tokenExpirationDate: Date;
|
|
2263
2263
|
isUsed: boolean;
|
|
2264
2264
|
}
|
|
2265
|
-
export declare class TeamMember extends BondBaseEntity {
|
|
2266
|
-
teamId: number | null;
|
|
2267
|
-
userId: number | null;
|
|
2268
|
-
paymentId: number | null;
|
|
2269
|
-
hasPaid: boolean | null;
|
|
2270
|
-
status: TeamMemberStatusEnum | null;
|
|
2271
|
-
role: TeamMemberRoleEnum;
|
|
2272
|
-
user: User;
|
|
2273
|
-
}
|
|
2274
2265
|
export declare class User extends BondBaseEntity {
|
|
2275
2266
|
firstName: string | null;
|
|
2276
2267
|
lastName: string | null;
|
|
@@ -2310,6 +2301,15 @@ export declare class User extends BondBaseEntity {
|
|
|
2310
2301
|
orderNotes: OrderNote[];
|
|
2311
2302
|
invoiceNotes: InvoiceNote[];
|
|
2312
2303
|
}
|
|
2304
|
+
export declare class TeamMember extends BondBaseEntity {
|
|
2305
|
+
teamId: number | null;
|
|
2306
|
+
userId: number | null;
|
|
2307
|
+
paymentId: number | null;
|
|
2308
|
+
hasPaid: boolean | null;
|
|
2309
|
+
status: TeamMemberStatusEnum | null;
|
|
2310
|
+
role: TeamMemberRoleEnum;
|
|
2311
|
+
user: User;
|
|
2312
|
+
}
|
|
2313
2313
|
export declare class UserAuthorizations extends BondBaseEntity {
|
|
2314
2314
|
entityId: number | null;
|
|
2315
2315
|
userId: number | null;
|
|
@@ -3101,6 +3101,7 @@ export interface ISlotReservationData {
|
|
|
3101
3101
|
slotType: SlotTypeEnum;
|
|
3102
3102
|
slotId: number;
|
|
3103
3103
|
eventId: number;
|
|
3104
|
+
isPrivate: boolean;
|
|
3104
3105
|
}
|
|
3105
3106
|
export interface IRawEventInSchedule extends IEventInSchedule {
|
|
3106
3107
|
parentSessionId: number;
|
|
@@ -3129,6 +3130,7 @@ export interface IRawSlotInSchedule {
|
|
|
3129
3130
|
slotType: SlotTypeEnum;
|
|
3130
3131
|
slotId: number;
|
|
3131
3132
|
eventId: number;
|
|
3133
|
+
isPrivate: boolean;
|
|
3132
3134
|
}
|
|
3133
3135
|
export interface IPurchasedResourcesRaw {
|
|
3134
3136
|
purchasedId: number;
|
|
@@ -3251,41 +3253,6 @@ export declare class AddFamilyDto {
|
|
|
3251
3253
|
parents: AddImportedCustomerDto[];
|
|
3252
3254
|
children: AddImportedCustomerDto[];
|
|
3253
3255
|
}
|
|
3254
|
-
export declare enum ImportPaymentTypeEnum {
|
|
3255
|
-
CREDIT_CARD = "card",
|
|
3256
|
-
ACH = "ach",
|
|
3257
|
-
CASH = "cash",
|
|
3258
|
-
CHECK = "check",
|
|
3259
|
-
CARD_ON_TERMINAL = "card-on-terminal",
|
|
3260
|
-
OTHER = "other"
|
|
3261
|
-
}
|
|
3262
|
-
export declare class ImportedInvoiceLineDto {
|
|
3263
|
-
invoiceID?: string;
|
|
3264
|
-
description: string;
|
|
3265
|
-
createdDate: string;
|
|
3266
|
-
createdTime: string;
|
|
3267
|
-
quantity: string;
|
|
3268
|
-
price: string;
|
|
3269
|
-
total: string;
|
|
3270
|
-
customerID: string;
|
|
3271
|
-
resourceType: string;
|
|
3272
|
-
resourceID: string;
|
|
3273
|
-
}
|
|
3274
|
-
export declare class ImportedInvoiceDto {
|
|
3275
|
-
customerId?: string;
|
|
3276
|
-
total?: string;
|
|
3277
|
-
amountDue?: string;
|
|
3278
|
-
payments?: ImportedPaymentDto[];
|
|
3279
|
-
lines: any;
|
|
3280
|
-
}
|
|
3281
|
-
export declare class ImportedPaymentDto {
|
|
3282
|
-
invoiceID: string;
|
|
3283
|
-
type: ImportPaymentTypeEnum;
|
|
3284
|
-
description: string;
|
|
3285
|
-
paid: string;
|
|
3286
|
-
date: string;
|
|
3287
|
-
time: string;
|
|
3288
|
-
}
|
|
3289
3256
|
export declare class ProductIdsDto {
|
|
3290
3257
|
productIds?: number[];
|
|
3291
3258
|
}
|
|
@@ -3353,6 +3320,41 @@ export declare class ImportedReservationDto {
|
|
|
3353
3320
|
slots?: ImportedSlotDto[];
|
|
3354
3321
|
addons?: ImportedSlotProductDto[];
|
|
3355
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
|
+
}
|
|
3356
3358
|
export declare class GameSlots extends BondBaseEntity {
|
|
3357
3359
|
entityType: string;
|
|
3358
3360
|
entityId: number;
|
|
@@ -4143,12 +4145,6 @@ export declare class Permission extends BondBaseEntity {
|
|
|
4143
4145
|
name: string;
|
|
4144
4146
|
deletedAt?: Date;
|
|
4145
4147
|
}
|
|
4146
|
-
export declare class Role extends OrganizationConnectionBaseEntity {
|
|
4147
|
-
name: string;
|
|
4148
|
-
deletedAt?: Date;
|
|
4149
|
-
permissions: Permission[];
|
|
4150
|
-
usersRoles: UserRole[];
|
|
4151
|
-
}
|
|
4152
4148
|
export declare class UserRole extends OrganizationConnectionBaseEntity {
|
|
4153
4149
|
deletedAt?: Date;
|
|
4154
4150
|
userId: number;
|
|
@@ -4156,8 +4152,11 @@ export declare class UserRole extends OrganizationConnectionBaseEntity {
|
|
|
4156
4152
|
role: Role;
|
|
4157
4153
|
user: User;
|
|
4158
4154
|
}
|
|
4159
|
-
export declare class
|
|
4160
|
-
|
|
4155
|
+
export declare class Role extends OrganizationConnectionBaseEntity {
|
|
4156
|
+
name: string;
|
|
4157
|
+
deletedAt?: Date;
|
|
4158
|
+
permissions: Permission[];
|
|
4159
|
+
usersRoles: UserRole[];
|
|
4161
4160
|
}
|
|
4162
4161
|
export declare class FindShiftsByIdsDto {
|
|
4163
4162
|
shiftIds: number[];
|
|
@@ -4182,6 +4181,9 @@ export declare class FindShiftsFormattedFilters {
|
|
|
4182
4181
|
startDate?: Date;
|
|
4183
4182
|
endDate?: Date;
|
|
4184
4183
|
}
|
|
4184
|
+
export declare class CloseShiftDto {
|
|
4185
|
+
closingCashAmount: number;
|
|
4186
|
+
}
|
|
4185
4187
|
export declare class ShiftManagementClosingAmount {
|
|
4186
4188
|
shiftId: number;
|
|
4187
4189
|
managementClosingCashAmount: number;
|