@bondsports/types 0.0.95 → 0.2.0
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 +104 -124
- 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
|
@@ -1002,6 +1002,35 @@ export declare class ResourceDto {
|
|
|
1002
1002
|
type: ResourceNameTypeEnum;
|
|
1003
1003
|
id: number;
|
|
1004
1004
|
}
|
|
1005
|
+
export declare class StripeCustomerIdDto {
|
|
1006
|
+
userId: number;
|
|
1007
|
+
}
|
|
1008
|
+
export declare class AddACHTokenToCustomerDto {
|
|
1009
|
+
publicToken: string;
|
|
1010
|
+
accountId: string;
|
|
1011
|
+
}
|
|
1012
|
+
export declare class FindByUserIdDto {
|
|
1013
|
+
userId: number;
|
|
1014
|
+
}
|
|
1015
|
+
export declare class FindByFamilyAccountIdDto {
|
|
1016
|
+
familyAccountId?: number;
|
|
1017
|
+
}
|
|
1018
|
+
export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
|
|
1019
|
+
organizationId: number;
|
|
1020
|
+
}
|
|
1021
|
+
export declare class ActivityLogRecord extends BondBaseEntity {
|
|
1022
|
+
entityType: ResourceNameTypeEnum;
|
|
1023
|
+
entityId: number;
|
|
1024
|
+
organizationId?: number;
|
|
1025
|
+
userId?: number;
|
|
1026
|
+
customerId?: number;
|
|
1027
|
+
performingUserId: number;
|
|
1028
|
+
description: string;
|
|
1029
|
+
actionType: ActionTypesEnum;
|
|
1030
|
+
sourcePlatform: ActionSourcePlatformEnum;
|
|
1031
|
+
oldValue?: any;
|
|
1032
|
+
newValue?: any;
|
|
1033
|
+
}
|
|
1005
1034
|
export declare class SpaceByIdDto {
|
|
1006
1035
|
spaceId: number;
|
|
1007
1036
|
}
|
|
@@ -1058,38 +1087,6 @@ export declare class FindResourcesOptionsDto extends PaginationQuery {
|
|
|
1058
1087
|
types?: string;
|
|
1059
1088
|
resourcesIds?: string;
|
|
1060
1089
|
}
|
|
1061
|
-
export declare class StripeCustomerIdDto {
|
|
1062
|
-
userId: number;
|
|
1063
|
-
}
|
|
1064
|
-
export declare class StripeCustomerPaymentMathodDto extends StripeCustomerIdDto {
|
|
1065
|
-
paymentMethodId: string;
|
|
1066
|
-
}
|
|
1067
|
-
export declare class AddACHTokenToCustomerDto {
|
|
1068
|
-
publicToken: string;
|
|
1069
|
-
accountId: string;
|
|
1070
|
-
}
|
|
1071
|
-
export declare class FindByUserIdDto {
|
|
1072
|
-
userId: number;
|
|
1073
|
-
}
|
|
1074
|
-
export declare class FindByFamilyAccountIdDto {
|
|
1075
|
-
familyAccountId?: number;
|
|
1076
|
-
}
|
|
1077
|
-
export declare class FindByUserAndOrganizationDto extends FindByUserIdDto {
|
|
1078
|
-
organizationId: number;
|
|
1079
|
-
}
|
|
1080
|
-
export declare class ActivityLogRecord extends BondBaseEntity {
|
|
1081
|
-
entityType: ResourceNameTypeEnum;
|
|
1082
|
-
entityId: number;
|
|
1083
|
-
organizationId?: number;
|
|
1084
|
-
userId?: number;
|
|
1085
|
-
customerId?: number;
|
|
1086
|
-
performingUserId: number;
|
|
1087
|
-
description: string;
|
|
1088
|
-
actionType: ActionTypesEnum;
|
|
1089
|
-
sourcePlatform: ActionSourcePlatformEnum;
|
|
1090
|
-
oldValue?: any;
|
|
1091
|
-
newValue?: any;
|
|
1092
|
-
}
|
|
1093
1090
|
export declare class ActivityTimes extends BondBaseEntity {
|
|
1094
1091
|
parentType: ResourceNameTypeEnum | ProductTypesEnum;
|
|
1095
1092
|
parentId: number;
|
|
@@ -1103,30 +1100,6 @@ export declare class ActivityTimes extends BondBaseEntity {
|
|
|
1103
1100
|
proudct: Product;
|
|
1104
1101
|
event: Event;
|
|
1105
1102
|
}
|
|
1106
|
-
export declare class Address extends BondBaseEntity {
|
|
1107
|
-
city?: string;
|
|
1108
|
-
street?: string;
|
|
1109
|
-
streetNum?: string;
|
|
1110
|
-
aptNum?: string;
|
|
1111
|
-
zip?: string;
|
|
1112
|
-
country?: string;
|
|
1113
|
-
state?: string;
|
|
1114
|
-
geo: any;
|
|
1115
|
-
deletedAt?: Date;
|
|
1116
|
-
}
|
|
1117
|
-
export declare class Answer extends OrganizationConnectionBaseEntity {
|
|
1118
|
-
questionId: number;
|
|
1119
|
-
question?: Questions;
|
|
1120
|
-
parentId: number;
|
|
1121
|
-
parentType: ResourceNameTypeEnum;
|
|
1122
|
-
answerValue: any;
|
|
1123
|
-
creatorId: number;
|
|
1124
|
-
creatorType: ResourceNameTypeEnum;
|
|
1125
|
-
answerTitleId: number;
|
|
1126
|
-
answerTitle: AnswerTitle;
|
|
1127
|
-
metaData: any | null;
|
|
1128
|
-
questionText: string | null;
|
|
1129
|
-
}
|
|
1130
1103
|
export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
|
|
1131
1104
|
questionnaireId: number;
|
|
1132
1105
|
userId?: number;
|
|
@@ -1184,6 +1157,11 @@ export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity
|
|
|
1184
1157
|
endTimeInDay: string;
|
|
1185
1158
|
directBookingFor: DirectBookingTypesEnum;
|
|
1186
1159
|
}
|
|
1160
|
+
export declare class Configuration extends BondBaseEntity {
|
|
1161
|
+
area: string;
|
|
1162
|
+
key: string;
|
|
1163
|
+
value: string;
|
|
1164
|
+
}
|
|
1187
1165
|
export declare class Connection extends BondBaseEntity {
|
|
1188
1166
|
connType: number | null;
|
|
1189
1167
|
from: number | null;
|
|
@@ -1196,19 +1174,6 @@ export declare class Connection extends BondBaseEntity {
|
|
|
1196
1174
|
userCreatorId: number | null;
|
|
1197
1175
|
ownerId: number | null;
|
|
1198
1176
|
}
|
|
1199
|
-
export declare class CreditNote extends OrganizationConnectionBaseEntity {
|
|
1200
|
-
creditAmount: number;
|
|
1201
|
-
paymentProcessorId: string;
|
|
1202
|
-
userId: number;
|
|
1203
|
-
invoiceId: number;
|
|
1204
|
-
orderId: number;
|
|
1205
|
-
creditPaymentInvoiceId: number;
|
|
1206
|
-
}
|
|
1207
|
-
export declare class Configuration extends BondBaseEntity {
|
|
1208
|
-
area: string;
|
|
1209
|
-
key: string;
|
|
1210
|
-
value: string;
|
|
1211
|
-
}
|
|
1212
1177
|
export declare class Customer extends OrganizationConnectionBaseEntity {
|
|
1213
1178
|
name: string | null;
|
|
1214
1179
|
entityId: number | null;
|
|
@@ -1237,6 +1202,17 @@ export declare class Customer extends OrganizationConnectionBaseEntity {
|
|
|
1237
1202
|
mainMedia: Media;
|
|
1238
1203
|
reservations?: Reservation[];
|
|
1239
1204
|
}
|
|
1205
|
+
export declare class Address extends BondBaseEntity {
|
|
1206
|
+
city?: string;
|
|
1207
|
+
street?: string;
|
|
1208
|
+
streetNum?: string;
|
|
1209
|
+
aptNum?: string;
|
|
1210
|
+
zip?: string;
|
|
1211
|
+
country?: string;
|
|
1212
|
+
state?: string;
|
|
1213
|
+
geo: any;
|
|
1214
|
+
deletedAt?: Date;
|
|
1215
|
+
}
|
|
1240
1216
|
export declare class CustomerCreditTransaction extends OrganizationConnectionBaseEntity {
|
|
1241
1217
|
customerId: number;
|
|
1242
1218
|
userId: number;
|
|
@@ -1249,6 +1225,14 @@ export declare class CustomerCreditTransaction extends OrganizationConnectionBas
|
|
|
1249
1225
|
order: Order;
|
|
1250
1226
|
invoice: Invoice;
|
|
1251
1227
|
}
|
|
1228
|
+
export declare class CreditNote extends OrganizationConnectionBaseEntity {
|
|
1229
|
+
creditAmount: number;
|
|
1230
|
+
paymentProcessorId: string;
|
|
1231
|
+
userId: number;
|
|
1232
|
+
invoiceId: number;
|
|
1233
|
+
orderId: number;
|
|
1234
|
+
creditPaymentInvoiceId: number;
|
|
1235
|
+
}
|
|
1252
1236
|
export declare class CustomerNote extends OrganizationConnectionBaseEntity {
|
|
1253
1237
|
customerId?: number;
|
|
1254
1238
|
description: string;
|
|
@@ -1269,6 +1253,19 @@ export declare class EmergencyContact extends OrganizationConnectionBaseEntity {
|
|
|
1269
1253
|
phoneNumber: string | null;
|
|
1270
1254
|
customer: Customer;
|
|
1271
1255
|
}
|
|
1256
|
+
export declare class Answer extends OrganizationConnectionBaseEntity {
|
|
1257
|
+
questionId: number;
|
|
1258
|
+
question?: Questions;
|
|
1259
|
+
parentId: number;
|
|
1260
|
+
parentType: ResourceNameTypeEnum;
|
|
1261
|
+
answerValue: any;
|
|
1262
|
+
creatorId: number;
|
|
1263
|
+
creatorType: ResourceNameTypeEnum;
|
|
1264
|
+
answerTitleId: number;
|
|
1265
|
+
answerTitle: AnswerTitle;
|
|
1266
|
+
metaData: any | null;
|
|
1267
|
+
questionText: string | null;
|
|
1268
|
+
}
|
|
1272
1269
|
export declare class EntitlementGroup extends OrganizationConnectionBaseEntity {
|
|
1273
1270
|
name: string | null;
|
|
1274
1271
|
}
|
|
@@ -1370,14 +1367,14 @@ export declare class Facility extends OrganizationConnectionBaseEntity {
|
|
|
1370
1367
|
programSeasons: ProgramSeason[];
|
|
1371
1368
|
linkSEO: string;
|
|
1372
1369
|
}
|
|
1373
|
-
export declare class FacilityToResource extends BondBaseEntity {
|
|
1374
|
-
facilityId: number;
|
|
1375
|
-
resourceId: number;
|
|
1376
|
-
}
|
|
1377
1370
|
export declare class FamilyAccount extends BondBaseEntity {
|
|
1378
1371
|
name: string | null;
|
|
1379
1372
|
userInFamilyAccounts: UserInFamilyAccount[];
|
|
1380
1373
|
}
|
|
1374
|
+
export declare class FacilityToResource extends BondBaseEntity {
|
|
1375
|
+
facilityId: number;
|
|
1376
|
+
resourceId: number;
|
|
1377
|
+
}
|
|
1381
1378
|
export declare class FutureInstallment extends OrganizationConnectionBaseEntity {
|
|
1382
1379
|
userId: number;
|
|
1383
1380
|
orderId: number;
|
|
@@ -3243,6 +3240,20 @@ export declare class ColumnNumericTransformer {
|
|
|
3243
3240
|
from(data: string): number;
|
|
3244
3241
|
}
|
|
3245
3242
|
export declare function convertToNumber(data: string): number;
|
|
3243
|
+
export declare class AddImportedCustomerDto extends AddEditCustomerDto {
|
|
3244
|
+
name?: string;
|
|
3245
|
+
genderStr?: string;
|
|
3246
|
+
parentID?: string;
|
|
3247
|
+
partnerID?: string;
|
|
3248
|
+
membershipName?: string;
|
|
3249
|
+
membershipExpDate?: string;
|
|
3250
|
+
membershipCreationDate?: string;
|
|
3251
|
+
bondMembershipID?: number;
|
|
3252
|
+
}
|
|
3253
|
+
export declare class AddFamilyDto {
|
|
3254
|
+
parents: AddImportedCustomerDto[];
|
|
3255
|
+
children: AddImportedCustomerDto[];
|
|
3256
|
+
}
|
|
3246
3257
|
export declare enum ImportPaymentTypeEnum {
|
|
3247
3258
|
CREDIT_CARD = "card",
|
|
3248
3259
|
ACH = "ach",
|
|
@@ -3294,20 +3305,6 @@ export declare class PunchPassDto {
|
|
|
3294
3305
|
BondSessionID: number;
|
|
3295
3306
|
ProductID: number;
|
|
3296
3307
|
}
|
|
3297
|
-
export declare class AddImportedCustomerDto extends AddEditCustomerDto {
|
|
3298
|
-
name?: string;
|
|
3299
|
-
genderStr?: string;
|
|
3300
|
-
parentID?: string;
|
|
3301
|
-
partnerID?: string;
|
|
3302
|
-
membershipName?: string;
|
|
3303
|
-
membershipExpDate?: string;
|
|
3304
|
-
membershipCreationDate?: string;
|
|
3305
|
-
bondMembershipID?: number;
|
|
3306
|
-
}
|
|
3307
|
-
export declare class AddFamilyDto {
|
|
3308
|
-
parents: AddImportedCustomerDto[];
|
|
3309
|
-
children: AddImportedCustomerDto[];
|
|
3310
|
-
}
|
|
3311
3308
|
export declare class ImportedSlotProductDto {
|
|
3312
3309
|
slotID?: string;
|
|
3313
3310
|
name?: string;
|
|
@@ -3687,13 +3684,6 @@ export interface RefundResultWithLineItemsDict extends PaymentsResults {
|
|
|
3687
3684
|
failedLineItems: Map<number, RefundLineItemAmountDto>;
|
|
3688
3685
|
totalAmountProcessed: number;
|
|
3689
3686
|
}
|
|
3690
|
-
export declare class MaintenanceDto {
|
|
3691
|
-
id?: number;
|
|
3692
|
-
title: string;
|
|
3693
|
-
durationValue: number;
|
|
3694
|
-
maintenanceDurationdurationType: DurationUnitTypesEnum;
|
|
3695
|
-
maintenanceTiming: MaintenanceTimingEnum;
|
|
3696
|
-
}
|
|
3697
3687
|
export declare class LineItemDto {
|
|
3698
3688
|
id?: number;
|
|
3699
3689
|
orderId?: number;
|
|
@@ -3720,6 +3710,13 @@ export declare class LineItemDto {
|
|
|
3720
3710
|
unitTaxPrice?: number;
|
|
3721
3711
|
parentOrdinal?: number;
|
|
3722
3712
|
}
|
|
3713
|
+
export declare class MaintenanceDto {
|
|
3714
|
+
id?: number;
|
|
3715
|
+
title: string;
|
|
3716
|
+
durationValue: number;
|
|
3717
|
+
maintenanceDurationdurationType: DurationUnitTypesEnum;
|
|
3718
|
+
maintenanceTiming: MaintenanceTimingEnum;
|
|
3719
|
+
}
|
|
3723
3720
|
export declare class OrderDto {
|
|
3724
3721
|
orderId?: string | null;
|
|
3725
3722
|
organizationId: number;
|
|
@@ -3889,13 +3886,13 @@ export declare class AddSlotToSegmenResultDto {
|
|
|
3889
3886
|
export declare class UpdateSlotsDto {
|
|
3890
3887
|
slots: SlotDto[];
|
|
3891
3888
|
}
|
|
3892
|
-
export declare class
|
|
3889
|
+
export declare class EditSlotsRefundMetaDto {
|
|
3893
3890
|
lineItems: RefundLineItemAmountDto[];
|
|
3894
3891
|
paymentMethods: PaymentMethodDto[];
|
|
3895
3892
|
reasonId: number;
|
|
3896
3893
|
}
|
|
3897
3894
|
export declare class EditSlotsDto extends UpdateSlotsDto {
|
|
3898
|
-
refundMeta?:
|
|
3895
|
+
refundMeta?: EditSlotsRefundMetaDto;
|
|
3899
3896
|
}
|
|
3900
3897
|
export declare class EditReservationDetailsDto {
|
|
3901
3898
|
name: string;
|
|
@@ -3908,17 +3905,6 @@ export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
|
|
|
3908
3905
|
export declare class AddAddonsDto {
|
|
3909
3906
|
addons: ProductPricesDto[];
|
|
3910
3907
|
}
|
|
3911
|
-
export declare class EditAddonsDto {
|
|
3912
|
-
addons: EditAddonDto[];
|
|
3913
|
-
}
|
|
3914
|
-
export declare class EditReservationAddonsDto extends EditAddonsDto {
|
|
3915
|
-
refundMeta?: EditItemsRefundMetaDto;
|
|
3916
|
-
}
|
|
3917
|
-
export declare class EditAddonDto {
|
|
3918
|
-
id: number;
|
|
3919
|
-
unitPrice?: number;
|
|
3920
|
-
quantity?: number;
|
|
3921
|
-
}
|
|
3922
3908
|
export declare class SegmentDto {
|
|
3923
3909
|
id?: number;
|
|
3924
3910
|
title: string;
|
|
@@ -4095,7 +4081,13 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
|
|
|
4095
4081
|
forms?: number[] | null;
|
|
4096
4082
|
answerTitleIds?: number[] | null;
|
|
4097
4083
|
segments?: Segment[];
|
|
4084
|
+
addonsProductUserIds?: number[] | null;
|
|
4098
4085
|
migrationStatus?: string;
|
|
4086
|
+
addonsMetadata: {
|
|
4087
|
+
productId: number;
|
|
4088
|
+
price?: number;
|
|
4089
|
+
quantity: number;
|
|
4090
|
+
}[];
|
|
4099
4091
|
addons: Addon[];
|
|
4100
4092
|
overrideProductsPrice: {
|
|
4101
4093
|
productId: number;
|
|
@@ -4363,6 +4355,7 @@ export interface SingleReservation {
|
|
|
4363
4355
|
paymentStatus: PaymentStatusEnum;
|
|
4364
4356
|
reservationType: ReservationTypeEnum;
|
|
4365
4357
|
sports: number[];
|
|
4358
|
+
addonsProductUserIds: number[];
|
|
4366
4359
|
facilityId?: number;
|
|
4367
4360
|
customerId: number;
|
|
4368
4361
|
customer?: Customer;
|
|
@@ -4389,39 +4382,26 @@ export interface UpdateSlotsAddonsResult {
|
|
|
4389
4382
|
order: OrderDto;
|
|
4390
4383
|
debug?: any;
|
|
4391
4384
|
}
|
|
4392
|
-
interface
|
|
4385
|
+
export interface ValidateEditSlotsResult {
|
|
4393
4386
|
nextFinancialStep: FinancialStepEnum;
|
|
4387
|
+
slots: SlotDto[];
|
|
4394
4388
|
paymentMethods?: IPaymentMethodToFundLeft[];
|
|
4389
|
+
refundMetadata?: EditSlotsRefundMetadata;
|
|
4395
4390
|
originalInvoicePrice?: number;
|
|
4396
4391
|
updatedInvoicePrice?: number;
|
|
4397
4392
|
priceChange?: number;
|
|
4398
|
-
}
|
|
4399
|
-
export interface ValidateEditSlotsResult extends ValidateEditItemsResult {
|
|
4400
|
-
slots: SlotDto[];
|
|
4401
|
-
refundMetadata?: EditSlotsRefundMetadata;
|
|
4402
4393
|
editData?: EditSlotsData;
|
|
4403
4394
|
}
|
|
4404
|
-
export interface ValidateEditReservationAddonsResult extends ValidateEditItemsResult {
|
|
4405
|
-
refundMetadata?: EditAddonsRefundMetadata;
|
|
4406
|
-
editData?: EditAddonsData;
|
|
4407
|
-
}
|
|
4408
4395
|
export interface EditSlotsRefundMetadata {
|
|
4409
4396
|
lineItems: SlotsLineItemData[];
|
|
4410
4397
|
refundAmount: number;
|
|
4411
4398
|
}
|
|
4412
|
-
export interface EditAddonsRefundMetadata {
|
|
4413
|
-
lineItems: AddonsLineItemData[];
|
|
4414
|
-
refundAmount: number;
|
|
4415
|
-
}
|
|
4416
4399
|
export interface EditSlotsData {
|
|
4417
4400
|
order?: Order;
|
|
4418
4401
|
editSlotsLineItems?: SlotsLineItemData[];
|
|
4419
4402
|
newLineItems?: LineItemDto[];
|
|
4420
4403
|
}
|
|
4421
|
-
export interface
|
|
4422
|
-
order?: Order;
|
|
4423
|
-
}
|
|
4424
|
-
export interface EditReservationItemsResult extends UpdateReservationResult {
|
|
4404
|
+
export interface EditSlotsResult extends UpdateReservationResult {
|
|
4425
4405
|
refundResult?: RefundResult;
|
|
4426
4406
|
}
|
|
4427
4407
|
export declare class ChangeRolePermissionsDto {
|