@bondsports/types 0.1.0 → 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 +245 -265
- 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
|
@@ -186,38 +186,6 @@ export declare class FindEventAttendeeOptionsDto extends PaginationRangeQuery {
|
|
|
186
186
|
isWaiverSigned?: string;
|
|
187
187
|
statuses?: string;
|
|
188
188
|
}
|
|
189
|
-
export declare class FindFamilyAccountsDto {
|
|
190
|
-
userId: number;
|
|
191
|
-
}
|
|
192
|
-
export declare class FindFamilyAccountsCustomerDto {
|
|
193
|
-
customerId: number;
|
|
194
|
-
organizationId: number;
|
|
195
|
-
}
|
|
196
|
-
export declare class FindUsersInFamilyAccountDto {
|
|
197
|
-
familyAccountId: number;
|
|
198
|
-
}
|
|
199
|
-
export declare class CreateFamilyAccountDto {
|
|
200
|
-
familyName: string;
|
|
201
|
-
userId: number;
|
|
202
|
-
}
|
|
203
|
-
export declare class UpdateFamilyAccountNameDto {
|
|
204
|
-
familyName: string;
|
|
205
|
-
familyAccountId: number;
|
|
206
|
-
}
|
|
207
|
-
export declare class AddUserToFamilyAccountDto {
|
|
208
|
-
familyAccountId: number;
|
|
209
|
-
isUserAdmin: boolean;
|
|
210
|
-
firstName: string;
|
|
211
|
-
lastName: string;
|
|
212
|
-
gender: GenderEnum;
|
|
213
|
-
birthDate: string;
|
|
214
|
-
sports?: number[];
|
|
215
|
-
email?: string;
|
|
216
|
-
}
|
|
217
|
-
export declare class RemoveUserFromFamilyAccountDto {
|
|
218
|
-
userId: number;
|
|
219
|
-
familyAccountId: number;
|
|
220
|
-
}
|
|
221
189
|
export declare class AddressDto {
|
|
222
190
|
city: string;
|
|
223
191
|
state: string;
|
|
@@ -261,6 +229,38 @@ export declare class UpdateFacilityAmenitiesDto {
|
|
|
261
229
|
export declare class FindFacilitiesOptionsDto extends PaginationQuery {
|
|
262
230
|
nameSearch?: string;
|
|
263
231
|
}
|
|
232
|
+
export declare class FindFamilyAccountsDto {
|
|
233
|
+
userId: number;
|
|
234
|
+
}
|
|
235
|
+
export declare class FindFamilyAccountsCustomerDto {
|
|
236
|
+
customerId: number;
|
|
237
|
+
organizationId: number;
|
|
238
|
+
}
|
|
239
|
+
export declare class FindUsersInFamilyAccountDto {
|
|
240
|
+
familyAccountId: number;
|
|
241
|
+
}
|
|
242
|
+
export declare class CreateFamilyAccountDto {
|
|
243
|
+
familyName: string;
|
|
244
|
+
userId: number;
|
|
245
|
+
}
|
|
246
|
+
export declare class UpdateFamilyAccountNameDto {
|
|
247
|
+
familyName: string;
|
|
248
|
+
familyAccountId: number;
|
|
249
|
+
}
|
|
250
|
+
export declare class AddUserToFamilyAccountDto {
|
|
251
|
+
familyAccountId: number;
|
|
252
|
+
isUserAdmin: boolean;
|
|
253
|
+
firstName: string;
|
|
254
|
+
lastName: string;
|
|
255
|
+
gender: GenderEnum;
|
|
256
|
+
birthDate: string;
|
|
257
|
+
sports?: number[];
|
|
258
|
+
email?: string;
|
|
259
|
+
}
|
|
260
|
+
export declare class RemoveUserFromFamilyAccountDto {
|
|
261
|
+
userId: number;
|
|
262
|
+
familyAccountId: number;
|
|
263
|
+
}
|
|
264
264
|
export declare class FindOneParams {
|
|
265
265
|
id: number;
|
|
266
266
|
}
|
|
@@ -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,17 +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
1103
|
export declare class AnswerTitle extends OrganizationConnectionBaseEntity {
|
|
1118
1104
|
questionnaireId: number;
|
|
1119
1105
|
userId?: number;
|
|
@@ -1161,19 +1147,6 @@ export declare class BookedSessions extends BondBaseEntity {
|
|
|
1161
1147
|
publicNotes?: string;
|
|
1162
1148
|
slotType?: SlotTypeEnum;
|
|
1163
1149
|
}
|
|
1164
|
-
export declare class Answer extends OrganizationConnectionBaseEntity {
|
|
1165
|
-
questionId: number;
|
|
1166
|
-
question?: Questions;
|
|
1167
|
-
parentId: number;
|
|
1168
|
-
parentType: ResourceNameTypeEnum;
|
|
1169
|
-
answerValue: any;
|
|
1170
|
-
creatorId: number;
|
|
1171
|
-
creatorType: ResourceNameTypeEnum;
|
|
1172
|
-
answerTitleId: number;
|
|
1173
|
-
answerTitle: AnswerTitle;
|
|
1174
|
-
metaData: any | null;
|
|
1175
|
-
questionText: string | null;
|
|
1176
|
-
}
|
|
1177
1150
|
export declare class BookingTypeSetting extends OrganizationConnectionBaseEntity {
|
|
1178
1151
|
parentId: number;
|
|
1179
1152
|
parentType: ResourceNameTypeEnum;
|
|
@@ -1201,14 +1174,6 @@ export declare class Connection extends BondBaseEntity {
|
|
|
1201
1174
|
userCreatorId: number | null;
|
|
1202
1175
|
ownerId: number | null;
|
|
1203
1176
|
}
|
|
1204
|
-
export declare class CreditNote extends OrganizationConnectionBaseEntity {
|
|
1205
|
-
creditAmount: number;
|
|
1206
|
-
paymentProcessorId: string;
|
|
1207
|
-
userId: number;
|
|
1208
|
-
invoiceId: number;
|
|
1209
|
-
orderId: number;
|
|
1210
|
-
creditPaymentInvoiceId: number;
|
|
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;
|
|
@@ -1388,6 +1385,25 @@ export declare class FutureInstallment extends OrganizationConnectionBaseEntity
|
|
|
1388
1385
|
plannedDate: Date;
|
|
1389
1386
|
chargedAt?: Date;
|
|
1390
1387
|
}
|
|
1388
|
+
export declare class GlCodes extends OrganizationConnectionBaseEntity {
|
|
1389
|
+
code: string;
|
|
1390
|
+
}
|
|
1391
|
+
export declare class Group extends BondBaseEntity {
|
|
1392
|
+
name: string;
|
|
1393
|
+
description?: string;
|
|
1394
|
+
status: GroupStatusEnum;
|
|
1395
|
+
maxCapacity?: number;
|
|
1396
|
+
mainMediaId?: number;
|
|
1397
|
+
minAgeYears?: number;
|
|
1398
|
+
maxAgeYears?: number;
|
|
1399
|
+
gender: GenderEnum;
|
|
1400
|
+
levelOfPlay?: LevelOfPlayEnum[];
|
|
1401
|
+
sports: SportsEnum[];
|
|
1402
|
+
questionnaires?: number[];
|
|
1403
|
+
captainUserId?: number;
|
|
1404
|
+
members: ISeasonAttendeeInfo[];
|
|
1405
|
+
users: User[];
|
|
1406
|
+
}
|
|
1391
1407
|
export declare class GroupItemsPricing extends OrganizationConnectionBaseEntity {
|
|
1392
1408
|
groupId: number;
|
|
1393
1409
|
itemId: number;
|
|
@@ -2196,8 +2212,13 @@ export declare class StationToSubcategory extends OrganizationConnectionBaseEnti
|
|
|
2196
2212
|
station: Station;
|
|
2197
2213
|
subcategory: Subcategory;
|
|
2198
2214
|
}
|
|
2199
|
-
export declare class
|
|
2200
|
-
|
|
2215
|
+
export declare class Subcategory extends OrganizationConnectionBaseEntity {
|
|
2216
|
+
productType: ProductTypesEnum;
|
|
2217
|
+
name: string;
|
|
2218
|
+
ordinal?: number;
|
|
2219
|
+
deletedAt?: Date;
|
|
2220
|
+
stationToSubcategories: StationToSubcategory[];
|
|
2221
|
+
stations: Station[];
|
|
2201
2222
|
}
|
|
2202
2223
|
export declare class Team extends BondBaseEntity {
|
|
2203
2224
|
name: string | null;
|
|
@@ -2327,22 +2348,6 @@ export declare class WebflowOrganizationConfiguration extends OrganizationConnec
|
|
|
2327
2348
|
membershipCollectionId?: string;
|
|
2328
2349
|
programsCollectionId?: string;
|
|
2329
2350
|
}
|
|
2330
|
-
export declare class Group extends BondBaseEntity {
|
|
2331
|
-
name: string;
|
|
2332
|
-
description?: string;
|
|
2333
|
-
status: GroupStatusEnum;
|
|
2334
|
-
maxCapacity?: number;
|
|
2335
|
-
mainMediaId?: number;
|
|
2336
|
-
minAgeYears?: number;
|
|
2337
|
-
maxAgeYears?: number;
|
|
2338
|
-
gender: GenderEnum;
|
|
2339
|
-
levelOfPlay?: LevelOfPlayEnum[];
|
|
2340
|
-
sports: SportsEnum[];
|
|
2341
|
-
questionnaires?: number[];
|
|
2342
|
-
captainUserId?: number;
|
|
2343
|
-
members: ISeasonAttendeeInfo[];
|
|
2344
|
-
users: User[];
|
|
2345
|
-
}
|
|
2346
2351
|
export declare enum EntitlementTermsTypesEnum {
|
|
2347
2352
|
QUESTION = "question",
|
|
2348
2353
|
CITY = "city",
|
|
@@ -3230,14 +3235,6 @@ export interface IReservationCreatorData {
|
|
|
3230
3235
|
endDate: string;
|
|
3231
3236
|
sportId: number;
|
|
3232
3237
|
}
|
|
3233
|
-
export declare class Subcategory extends OrganizationConnectionBaseEntity {
|
|
3234
|
-
productType: ProductTypesEnum;
|
|
3235
|
-
name: string;
|
|
3236
|
-
ordinal?: number;
|
|
3237
|
-
deletedAt?: Date;
|
|
3238
|
-
stationToSubcategories: StationToSubcategory[];
|
|
3239
|
-
stations: Station[];
|
|
3240
|
-
}
|
|
3241
3238
|
export declare class ColumnNumericTransformer {
|
|
3242
3239
|
to(data: number): number;
|
|
3243
3240
|
from(data: string): number;
|
|
@@ -3359,9 +3356,9 @@ export declare class ImportedReservationDto {
|
|
|
3359
3356
|
slots?: ImportedSlotDto[];
|
|
3360
3357
|
addons?: ImportedSlotProductDto[];
|
|
3361
3358
|
}
|
|
3362
|
-
export declare class
|
|
3363
|
-
|
|
3364
|
-
|
|
3359
|
+
export declare class GameSlots extends BondBaseEntity {
|
|
3360
|
+
entityType: string;
|
|
3361
|
+
entityId: number;
|
|
3365
3362
|
}
|
|
3366
3363
|
export declare class MatchParticipants extends BondBaseEntity {
|
|
3367
3364
|
matchId: number | null;
|
|
@@ -3395,6 +3392,10 @@ export declare class TeamEvents extends BondBaseEntity {
|
|
|
3395
3392
|
eventId: number | null;
|
|
3396
3393
|
status: number | null;
|
|
3397
3394
|
}
|
|
3395
|
+
export declare class Lock extends BondBaseEntity {
|
|
3396
|
+
name: string;
|
|
3397
|
+
locked?: Date;
|
|
3398
|
+
}
|
|
3398
3399
|
export interface ValidatedMonthAndDay {
|
|
3399
3400
|
valid: boolean;
|
|
3400
3401
|
month?: number;
|
|
@@ -3416,10 +3417,6 @@ export interface PaymentStatusesDict {
|
|
|
3416
3417
|
export interface PaymentStatusDict {
|
|
3417
3418
|
[id: number]: ReservationPaymentStatusEnum;
|
|
3418
3419
|
}
|
|
3419
|
-
export declare class GameSlots extends BondBaseEntity {
|
|
3420
|
-
entityType: string;
|
|
3421
|
-
entityId: number;
|
|
3422
|
-
}
|
|
3423
3420
|
export declare class CreateMonitorConfigDto {
|
|
3424
3421
|
facilityId: number;
|
|
3425
3422
|
name: string;
|
|
@@ -3720,6 +3717,47 @@ export declare class MaintenanceDto {
|
|
|
3720
3717
|
maintenanceDurationdurationType: DurationUnitTypesEnum;
|
|
3721
3718
|
maintenanceTiming: MaintenanceTimingEnum;
|
|
3722
3719
|
}
|
|
3720
|
+
export declare class OrderDto {
|
|
3721
|
+
orderId?: string | null;
|
|
3722
|
+
organizationId: number;
|
|
3723
|
+
price: number | null;
|
|
3724
|
+
totalTax?: number;
|
|
3725
|
+
totalWithoutTax?: number;
|
|
3726
|
+
status?: OrderStatusEnum;
|
|
3727
|
+
lineItems: LineItemDto[];
|
|
3728
|
+
paymentStatus?: PaymentStatusEnum;
|
|
3729
|
+
currency: CurrencyEnum;
|
|
3730
|
+
creatingUserId?: number;
|
|
3731
|
+
platform?: PlatformsEnum;
|
|
3732
|
+
}
|
|
3733
|
+
export declare class BaseInvoiceDto {
|
|
3734
|
+
platform: PlatformsEnum;
|
|
3735
|
+
shiftId?: number;
|
|
3736
|
+
}
|
|
3737
|
+
export declare class InvoiceSlotsDto extends BaseInvoiceDto {
|
|
3738
|
+
purchasingUserId: number;
|
|
3739
|
+
slots: number[];
|
|
3740
|
+
}
|
|
3741
|
+
export declare class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
|
|
3742
|
+
reservationTotalPrice: number;
|
|
3743
|
+
}
|
|
3744
|
+
export declare class UpdateInvoiceOptionsDto {
|
|
3745
|
+
basicInfoData?: BaseInvoiceDto;
|
|
3746
|
+
addToOrderId?: number;
|
|
3747
|
+
}
|
|
3748
|
+
export declare class UpdateInvoiceDto extends UpdateInvoiceOptionsDto {
|
|
3749
|
+
isInvoiced: boolean;
|
|
3750
|
+
}
|
|
3751
|
+
export declare class InvoiceReservationItemsDto extends UpdateInvoiceOptionsDto {
|
|
3752
|
+
slotsIds?: number[];
|
|
3753
|
+
addonsIds?: number[];
|
|
3754
|
+
}
|
|
3755
|
+
export declare class AddSlotsDto extends UpdateInvoiceDto {
|
|
3756
|
+
slots: SlotDto[];
|
|
3757
|
+
}
|
|
3758
|
+
export declare class AddSegmentsDto extends UpdateInvoiceDto {
|
|
3759
|
+
segments: SegmentDto[];
|
|
3760
|
+
}
|
|
3723
3761
|
export declare class PurchasedResourceDto {
|
|
3724
3762
|
resourceId?: number;
|
|
3725
3763
|
resourceType: ResourceNameTypeEnum;
|
|
@@ -3848,13 +3886,13 @@ export declare class AddSlotToSegmenResultDto {
|
|
|
3848
3886
|
export declare class UpdateSlotsDto {
|
|
3849
3887
|
slots: SlotDto[];
|
|
3850
3888
|
}
|
|
3851
|
-
export declare class
|
|
3889
|
+
export declare class EditSlotsRefundMetaDto {
|
|
3852
3890
|
lineItems: RefundLineItemAmountDto[];
|
|
3853
3891
|
paymentMethods: PaymentMethodDto[];
|
|
3854
3892
|
reasonId: number;
|
|
3855
3893
|
}
|
|
3856
3894
|
export declare class EditSlotsDto extends UpdateSlotsDto {
|
|
3857
|
-
refundMeta?:
|
|
3895
|
+
refundMeta?: EditSlotsRefundMetaDto;
|
|
3858
3896
|
}
|
|
3859
3897
|
export declare class EditReservationDetailsDto {
|
|
3860
3898
|
name: string;
|
|
@@ -3867,17 +3905,6 @@ export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
|
|
|
3867
3905
|
export declare class AddAddonsDto {
|
|
3868
3906
|
addons: ProductPricesDto[];
|
|
3869
3907
|
}
|
|
3870
|
-
export declare class EditAddonsDto {
|
|
3871
|
-
addons: EditAddonDto[];
|
|
3872
|
-
}
|
|
3873
|
-
export declare class EditReservationAddonsDto extends EditAddonsDto {
|
|
3874
|
-
refundMeta?: EditItemsRefundMetaDto;
|
|
3875
|
-
}
|
|
3876
|
-
export declare class EditAddonDto {
|
|
3877
|
-
id: number;
|
|
3878
|
-
unitPrice?: number;
|
|
3879
|
-
quantity?: number;
|
|
3880
|
-
}
|
|
3881
3908
|
export declare class SegmentDto {
|
|
3882
3909
|
id?: number;
|
|
3883
3910
|
title: string;
|
|
@@ -3906,67 +3933,6 @@ export declare class SeriesDto {
|
|
|
3906
3933
|
maintenance?: MaintenanceDto[];
|
|
3907
3934
|
slots?: SlotDto[];
|
|
3908
3935
|
}
|
|
3909
|
-
declare class AnswerDto {
|
|
3910
|
-
questionId: number;
|
|
3911
|
-
value: any;
|
|
3912
|
-
}
|
|
3913
|
-
export declare class BookedSessionDto {
|
|
3914
|
-
startDate: string;
|
|
3915
|
-
endDate: string;
|
|
3916
|
-
timezone: string;
|
|
3917
|
-
spaceId: number;
|
|
3918
|
-
}
|
|
3919
|
-
declare class AddonDto {
|
|
3920
|
-
resourcePackageId: number;
|
|
3921
|
-
resourcePackageAmount: number;
|
|
3922
|
-
resourcePackagePrice: number;
|
|
3923
|
-
}
|
|
3924
|
-
export declare class ReservationV1Dto {
|
|
3925
|
-
organizationId: number;
|
|
3926
|
-
name: string;
|
|
3927
|
-
dayOfWeek: number;
|
|
3928
|
-
startTime: string;
|
|
3929
|
-
description: string;
|
|
3930
|
-
sport: number;
|
|
3931
|
-
price: number;
|
|
3932
|
-
resourcePackageId: number;
|
|
3933
|
-
resourcePackageAmount: number;
|
|
3934
|
-
bookedSessions: BookedSessionDto[];
|
|
3935
|
-
addons: AddonDto[];
|
|
3936
|
-
}
|
|
3937
|
-
export declare class BookingV1Dto {
|
|
3938
|
-
organizationId: number;
|
|
3939
|
-
reservations: ReservationV1Dto[];
|
|
3940
|
-
answers: AnswerDto[];
|
|
3941
|
-
paymentData: PurchasePaymentDto;
|
|
3942
|
-
skipPayment: boolean;
|
|
3943
|
-
cashPayment: boolean;
|
|
3944
|
-
requestOnly: boolean;
|
|
3945
|
-
}
|
|
3946
|
-
export declare class Addon extends OrganizationConnectionBaseEntity {
|
|
3947
|
-
parentId: number;
|
|
3948
|
-
parentType: AddonParentTypeEnum;
|
|
3949
|
-
productId: number;
|
|
3950
|
-
product?: Product;
|
|
3951
|
-
quantity: number;
|
|
3952
|
-
unitPrice: number;
|
|
3953
|
-
totalPrice: number;
|
|
3954
|
-
approvalStatus: ReservationStatusEnum;
|
|
3955
|
-
paymentStatus: ReservationPaymentStatusEnum;
|
|
3956
|
-
level?: ProductPackageLevelEnum;
|
|
3957
|
-
resourceId?: number;
|
|
3958
|
-
resource?: Resource;
|
|
3959
|
-
orderId?: number;
|
|
3960
|
-
order?: Order;
|
|
3961
|
-
productUserId?: number;
|
|
3962
|
-
productUser?: ProductsUsers;
|
|
3963
|
-
}
|
|
3964
|
-
export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
|
|
3965
|
-
deletedAt?: Date;
|
|
3966
|
-
reservationId: number;
|
|
3967
|
-
invoiceId: number;
|
|
3968
|
-
slotId: number;
|
|
3969
|
-
}
|
|
3970
3936
|
export declare class SlotDateTimeAndSpace {
|
|
3971
3937
|
startDate: string;
|
|
3972
3938
|
startTime?: string;
|
|
@@ -4030,6 +3996,67 @@ export declare class SlotDto extends SlotDateTimeAndSpace {
|
|
|
4030
3996
|
slotDurationType: SlotDurationTypeEnum;
|
|
4031
3997
|
addonsIds?: number[];
|
|
4032
3998
|
}
|
|
3999
|
+
declare class AnswerDto {
|
|
4000
|
+
questionId: number;
|
|
4001
|
+
value: any;
|
|
4002
|
+
}
|
|
4003
|
+
export declare class BookedSessionDto {
|
|
4004
|
+
startDate: string;
|
|
4005
|
+
endDate: string;
|
|
4006
|
+
timezone: string;
|
|
4007
|
+
spaceId: number;
|
|
4008
|
+
}
|
|
4009
|
+
declare class AddonDto {
|
|
4010
|
+
resourcePackageId: number;
|
|
4011
|
+
resourcePackageAmount: number;
|
|
4012
|
+
resourcePackagePrice: 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[];
|
|
4026
|
+
}
|
|
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;
|
|
4035
|
+
}
|
|
4036
|
+
export declare class Addon extends OrganizationConnectionBaseEntity {
|
|
4037
|
+
parentId: number;
|
|
4038
|
+
parentType: AddonParentTypeEnum;
|
|
4039
|
+
productId: number;
|
|
4040
|
+
product?: Product;
|
|
4041
|
+
quantity: number;
|
|
4042
|
+
unitPrice: number;
|
|
4043
|
+
totalPrice: number;
|
|
4044
|
+
approvalStatus: ReservationStatusEnum;
|
|
4045
|
+
paymentStatus: ReservationPaymentStatusEnum;
|
|
4046
|
+
level?: ProductPackageLevelEnum;
|
|
4047
|
+
resourceId?: number;
|
|
4048
|
+
resource?: Resource;
|
|
4049
|
+
orderId?: number;
|
|
4050
|
+
order?: Order;
|
|
4051
|
+
productUserId?: number;
|
|
4052
|
+
productUser?: ProductsUsers;
|
|
4053
|
+
}
|
|
4054
|
+
export declare class InvoicedSlots extends OrganizationConnectionBaseEntity {
|
|
4055
|
+
deletedAt?: Date;
|
|
4056
|
+
reservationId: number;
|
|
4057
|
+
invoiceId: number;
|
|
4058
|
+
slotId: number;
|
|
4059
|
+
}
|
|
4033
4060
|
export declare class Reservation extends OrganizationConnectionBaseEntity {
|
|
4034
4061
|
name?: string;
|
|
4035
4062
|
description?: string;
|
|
@@ -4054,7 +4081,13 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
|
|
|
4054
4081
|
forms?: number[] | null;
|
|
4055
4082
|
answerTitleIds?: number[] | null;
|
|
4056
4083
|
segments?: Segment[];
|
|
4084
|
+
addonsProductUserIds?: number[] | null;
|
|
4057
4085
|
migrationStatus?: string;
|
|
4086
|
+
addonsMetadata: {
|
|
4087
|
+
productId: number;
|
|
4088
|
+
price?: number;
|
|
4089
|
+
quantity: number;
|
|
4090
|
+
}[];
|
|
4058
4091
|
addons: Addon[];
|
|
4059
4092
|
overrideProductsPrice: {
|
|
4060
4093
|
productId: number;
|
|
@@ -4322,6 +4355,7 @@ export interface SingleReservation {
|
|
|
4322
4355
|
paymentStatus: PaymentStatusEnum;
|
|
4323
4356
|
reservationType: ReservationTypeEnum;
|
|
4324
4357
|
sports: number[];
|
|
4358
|
+
addonsProductUserIds: number[];
|
|
4325
4359
|
facilityId?: number;
|
|
4326
4360
|
customerId: number;
|
|
4327
4361
|
customer?: Customer;
|
|
@@ -4348,39 +4382,26 @@ export interface UpdateSlotsAddonsResult {
|
|
|
4348
4382
|
order: OrderDto;
|
|
4349
4383
|
debug?: any;
|
|
4350
4384
|
}
|
|
4351
|
-
interface
|
|
4385
|
+
export interface ValidateEditSlotsResult {
|
|
4352
4386
|
nextFinancialStep: FinancialStepEnum;
|
|
4387
|
+
slots: SlotDto[];
|
|
4353
4388
|
paymentMethods?: IPaymentMethodToFundLeft[];
|
|
4389
|
+
refundMetadata?: EditSlotsRefundMetadata;
|
|
4354
4390
|
originalInvoicePrice?: number;
|
|
4355
4391
|
updatedInvoicePrice?: number;
|
|
4356
4392
|
priceChange?: number;
|
|
4357
|
-
}
|
|
4358
|
-
export interface ValidateEditSlotsResult extends ValidateEditItemsResult {
|
|
4359
|
-
slots: SlotDto[];
|
|
4360
|
-
refundMetadata?: EditSlotsRefundMetadata;
|
|
4361
4393
|
editData?: EditSlotsData;
|
|
4362
4394
|
}
|
|
4363
|
-
export interface ValidateEditReservationAddonsResult extends ValidateEditItemsResult {
|
|
4364
|
-
refundMetadata?: EditAddonsRefundMetadata;
|
|
4365
|
-
editData?: EditAddonsData;
|
|
4366
|
-
}
|
|
4367
4395
|
export interface EditSlotsRefundMetadata {
|
|
4368
4396
|
lineItems: SlotsLineItemData[];
|
|
4369
4397
|
refundAmount: number;
|
|
4370
4398
|
}
|
|
4371
|
-
export interface EditAddonsRefundMetadata {
|
|
4372
|
-
lineItems: AddonsLineItemData[];
|
|
4373
|
-
refundAmount: number;
|
|
4374
|
-
}
|
|
4375
4399
|
export interface EditSlotsData {
|
|
4376
4400
|
order?: Order;
|
|
4377
4401
|
editSlotsLineItems?: SlotsLineItemData[];
|
|
4378
4402
|
newLineItems?: LineItemDto[];
|
|
4379
4403
|
}
|
|
4380
|
-
export interface
|
|
4381
|
-
order?: Order;
|
|
4382
|
-
}
|
|
4383
|
-
export interface EditReservationItemsResult extends UpdateReservationResult {
|
|
4404
|
+
export interface EditSlotsResult extends UpdateReservationResult {
|
|
4384
4405
|
refundResult?: RefundResult;
|
|
4385
4406
|
}
|
|
4386
4407
|
export declare class ChangeRolePermissionsDto {
|
|
@@ -4472,44 +4493,3 @@ export declare class Shift extends OrganizationConnectionBaseEntity {
|
|
|
4472
4493
|
closingManager?: User;
|
|
4473
4494
|
reconcilingUser?: User;
|
|
4474
4495
|
}
|
|
4475
|
-
export declare class OrderDto {
|
|
4476
|
-
orderId?: string | null;
|
|
4477
|
-
organizationId: number;
|
|
4478
|
-
price: number | null;
|
|
4479
|
-
totalTax?: number;
|
|
4480
|
-
totalWithoutTax?: number;
|
|
4481
|
-
status?: OrderStatusEnum;
|
|
4482
|
-
lineItems: LineItemDto[];
|
|
4483
|
-
paymentStatus?: PaymentStatusEnum;
|
|
4484
|
-
currency: CurrencyEnum;
|
|
4485
|
-
creatingUserId?: number;
|
|
4486
|
-
platform?: PlatformsEnum;
|
|
4487
|
-
}
|
|
4488
|
-
export declare class BaseInvoiceDto {
|
|
4489
|
-
platform: PlatformsEnum;
|
|
4490
|
-
shiftId?: number;
|
|
4491
|
-
}
|
|
4492
|
-
export declare class InvoiceSlotsDto extends BaseInvoiceDto {
|
|
4493
|
-
purchasingUserId: number;
|
|
4494
|
-
slots: number[];
|
|
4495
|
-
}
|
|
4496
|
-
export declare class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
|
|
4497
|
-
reservationTotalPrice: number;
|
|
4498
|
-
}
|
|
4499
|
-
export declare class UpdateInvoiceOptionsDto {
|
|
4500
|
-
basicInfoData?: BaseInvoiceDto;
|
|
4501
|
-
addToOrderId?: number;
|
|
4502
|
-
}
|
|
4503
|
-
export declare class UpdateInvoiceDto extends UpdateInvoiceOptionsDto {
|
|
4504
|
-
isInvoiced: boolean;
|
|
4505
|
-
}
|
|
4506
|
-
export declare class InvoiceReservationItemsDto extends UpdateInvoiceOptionsDto {
|
|
4507
|
-
slotsIds?: number[];
|
|
4508
|
-
addonsIds?: number[];
|
|
4509
|
-
}
|
|
4510
|
-
export declare class AddSlotsDto extends UpdateInvoiceDto {
|
|
4511
|
-
slots: SlotDto[];
|
|
4512
|
-
}
|
|
4513
|
-
export declare class AddSegmentsDto extends UpdateInvoiceDto {
|
|
4514
|
-
segments: SegmentDto[];
|
|
4515
|
-
}
|