@bookinglab/booking-journey-api 2.9.0 → 2.11.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/README.md +1 -0
- package/dist/index.d.cts +527 -1
- package/dist/index.d.ts +527 -1
- package/dist/index.js +279 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +270 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -224,6 +224,7 @@ client.setAppId('your-app-id'); // Sets x-app-id header for resetPassword reques
|
|
|
224
224
|
- `client.resetPassword(memberId, companyId, request, authToken, clientToken)` - Reset a member's password (includes `x-app-id` header when set)
|
|
225
225
|
- `client.sendCustomEmail(companyId, request, clientToken)` - Send a custom email
|
|
226
226
|
- `client.forgotPassword(companyId, request, clientToken)` - Request a password reset email
|
|
227
|
+
- `client.getConfig(request, clientToken)` - Get BookingLab configuration (`POST /config`)
|
|
227
228
|
- `client.deleteBooking(id)` - Delete a booking
|
|
228
229
|
- `client.getServices()` - Get all services
|
|
229
230
|
- `client.getService(id)` - Get a specific service
|
package/dist/index.d.cts
CHANGED
|
@@ -1118,6 +1118,394 @@ interface BookingLabGetTokenRequest {
|
|
|
1118
1118
|
interface BookingLabGetTokenResponse {
|
|
1119
1119
|
[key: string]: unknown;
|
|
1120
1120
|
}
|
|
1121
|
+
interface BookingLabService {
|
|
1122
|
+
id: number;
|
|
1123
|
+
category_id: number;
|
|
1124
|
+
name: string;
|
|
1125
|
+
description: string;
|
|
1126
|
+
durations: number[];
|
|
1127
|
+
prices: number[];
|
|
1128
|
+
detail_group_id: number;
|
|
1129
|
+
listed_durations: any[];
|
|
1130
|
+
extra?: Record<string, any>;
|
|
1131
|
+
booking_time_step: number;
|
|
1132
|
+
can_refund_automatically: boolean;
|
|
1133
|
+
is_event_group: boolean;
|
|
1134
|
+
type: string;
|
|
1135
|
+
group_id: number | null;
|
|
1136
|
+
deleted: boolean;
|
|
1137
|
+
queuing_disabled: boolean;
|
|
1138
|
+
company_id: number;
|
|
1139
|
+
min_advance_period: number;
|
|
1140
|
+
max_advance_period: number;
|
|
1141
|
+
min_cancel_period: number;
|
|
1142
|
+
booking_type_public: string;
|
|
1143
|
+
booking_type: number;
|
|
1144
|
+
mbooking_type: number;
|
|
1145
|
+
min_bookings: number;
|
|
1146
|
+
max_bookings: number;
|
|
1147
|
+
method_of_appointment: string;
|
|
1148
|
+
groups: any[];
|
|
1149
|
+
spaces?: number;
|
|
1150
|
+
order: number;
|
|
1151
|
+
child_level_service: boolean;
|
|
1152
|
+
global_id: number;
|
|
1153
|
+
availability: number;
|
|
1154
|
+
prices_in_major_units: number[];
|
|
1155
|
+
combine_resource_and_staff: boolean;
|
|
1156
|
+
disabled: boolean;
|
|
1157
|
+
_links: Record<string, any>;
|
|
1158
|
+
[key: string]: any;
|
|
1159
|
+
}
|
|
1160
|
+
interface BookingLabGetServicesResponse {
|
|
1161
|
+
total_entries: number;
|
|
1162
|
+
_embedded: {
|
|
1163
|
+
services: BookingLabService[];
|
|
1164
|
+
};
|
|
1165
|
+
_links: Record<string, any>;
|
|
1166
|
+
}
|
|
1167
|
+
interface BookingLabCompany {
|
|
1168
|
+
id: number;
|
|
1169
|
+
name: string;
|
|
1170
|
+
description?: string;
|
|
1171
|
+
company_type?: string;
|
|
1172
|
+
extra?: Record<string, any>;
|
|
1173
|
+
address_id?: number;
|
|
1174
|
+
website?: string;
|
|
1175
|
+
multi_status?: string[];
|
|
1176
|
+
numeric_widget_id?: number;
|
|
1177
|
+
currency_code?: string;
|
|
1178
|
+
timezone?: string;
|
|
1179
|
+
country_code?: string;
|
|
1180
|
+
live?: boolean;
|
|
1181
|
+
ref?: string;
|
|
1182
|
+
created_at?: string;
|
|
1183
|
+
updated_at?: string;
|
|
1184
|
+
children_count?: number;
|
|
1185
|
+
locale?: string;
|
|
1186
|
+
available_locales?: string[];
|
|
1187
|
+
membership_id?: number;
|
|
1188
|
+
address?: Record<string, any>;
|
|
1189
|
+
_embedded?: Record<string, any>;
|
|
1190
|
+
_links?: Record<string, any>;
|
|
1191
|
+
parent?: number;
|
|
1192
|
+
[key: string]: any;
|
|
1193
|
+
}
|
|
1194
|
+
interface BookingLabGetCompaniesParams {
|
|
1195
|
+
service_id?: number;
|
|
1196
|
+
person_id?: number;
|
|
1197
|
+
}
|
|
1198
|
+
type BookingLabGetCompaniesResponse = BookingLabCompany[];
|
|
1199
|
+
interface BookingLabQuestion {
|
|
1200
|
+
id: number;
|
|
1201
|
+
name: string;
|
|
1202
|
+
required: boolean;
|
|
1203
|
+
important: boolean;
|
|
1204
|
+
admin_only: boolean;
|
|
1205
|
+
applies_to: number;
|
|
1206
|
+
ask_member: boolean;
|
|
1207
|
+
detail_type: string;
|
|
1208
|
+
settings: Record<string, any>;
|
|
1209
|
+
price: number;
|
|
1210
|
+
price_per_booking: boolean;
|
|
1211
|
+
outcome: boolean;
|
|
1212
|
+
hide_on_customer_journey: boolean;
|
|
1213
|
+
_links?: Record<string, any>;
|
|
1214
|
+
[key: string]: any;
|
|
1215
|
+
}
|
|
1216
|
+
interface BookingLabGetQuestionsResponse {
|
|
1217
|
+
company_id: number;
|
|
1218
|
+
questions: BookingLabQuestion[];
|
|
1219
|
+
name: string;
|
|
1220
|
+
admin?: any;
|
|
1221
|
+
outcome?: any;
|
|
1222
|
+
_links?: Record<string, any>;
|
|
1223
|
+
[key: string]: any;
|
|
1224
|
+
}
|
|
1225
|
+
interface BookingLabDay {
|
|
1226
|
+
start_date: string;
|
|
1227
|
+
count: number;
|
|
1228
|
+
available: boolean;
|
|
1229
|
+
}
|
|
1230
|
+
interface BookingLabGetDaysParams {
|
|
1231
|
+
resource_id?: number;
|
|
1232
|
+
}
|
|
1233
|
+
interface BookingLabGetDaysResponse {
|
|
1234
|
+
dates: BookingLabDay[];
|
|
1235
|
+
_links?: Record<string, any>;
|
|
1236
|
+
[key: string]: any;
|
|
1237
|
+
}
|
|
1238
|
+
interface BookingLabTime {
|
|
1239
|
+
start: string;
|
|
1240
|
+
available: boolean;
|
|
1241
|
+
_links?: Record<string, any>;
|
|
1242
|
+
}
|
|
1243
|
+
interface BookingLabGetTimesParams {
|
|
1244
|
+
/** Comma-separated list of resource IDs, e.g. "1,2,3" */
|
|
1245
|
+
resource_ids?: string;
|
|
1246
|
+
}
|
|
1247
|
+
interface BookingLabGetTimesResponse {
|
|
1248
|
+
times: BookingLabTime[];
|
|
1249
|
+
_links?: Record<string, any>;
|
|
1250
|
+
[key: string]: any;
|
|
1251
|
+
}
|
|
1252
|
+
interface BookingLabAddBasketServiceItemQuestion {
|
|
1253
|
+
id: string | number;
|
|
1254
|
+
answer: string;
|
|
1255
|
+
[key: string]: any;
|
|
1256
|
+
}
|
|
1257
|
+
interface BookingLabAddBasketServiceItemRequest {
|
|
1258
|
+
company_id: number;
|
|
1259
|
+
start: string;
|
|
1260
|
+
service_id: number;
|
|
1261
|
+
duration: number;
|
|
1262
|
+
questions: BookingLabAddBasketServiceItemQuestion[];
|
|
1263
|
+
[key: string]: any;
|
|
1264
|
+
}
|
|
1265
|
+
interface BookingLabAddBasketServiceItemHeaders {
|
|
1266
|
+
clientToken: string;
|
|
1267
|
+
authToken: string;
|
|
1268
|
+
companyId: number;
|
|
1269
|
+
}
|
|
1270
|
+
interface BookingLabHeldAsset {
|
|
1271
|
+
company_id: number;
|
|
1272
|
+
resource_id: number;
|
|
1273
|
+
}
|
|
1274
|
+
interface BookingLabAddBasketServiceItemResponse {
|
|
1275
|
+
id: string;
|
|
1276
|
+
type: string;
|
|
1277
|
+
company_id: number;
|
|
1278
|
+
service_id: number;
|
|
1279
|
+
resource_id?: number;
|
|
1280
|
+
questions: BookingLabAddBasketServiceItemQuestion[];
|
|
1281
|
+
duration: number;
|
|
1282
|
+
start: string;
|
|
1283
|
+
expires: string;
|
|
1284
|
+
total_price: number;
|
|
1285
|
+
total_price_in_major_units: number;
|
|
1286
|
+
requested_assets: any[];
|
|
1287
|
+
held_assets: BookingLabHeldAsset[];
|
|
1288
|
+
_links?: Record<string, {
|
|
1289
|
+
href: string;
|
|
1290
|
+
templated?: boolean;
|
|
1291
|
+
}>;
|
|
1292
|
+
[key: string]: any;
|
|
1293
|
+
}
|
|
1294
|
+
interface BookingLabCreateBasketRequest {
|
|
1295
|
+
company_id: number;
|
|
1296
|
+
}
|
|
1297
|
+
interface BookingLabCreateBasketHeaders {
|
|
1298
|
+
clientToken: string;
|
|
1299
|
+
companyId: number;
|
|
1300
|
+
authToken?: string;
|
|
1301
|
+
memberId?: number;
|
|
1302
|
+
}
|
|
1303
|
+
interface BookingLabCreateBasketResponse {
|
|
1304
|
+
id: string;
|
|
1305
|
+
company_id: number;
|
|
1306
|
+
total_price: number;
|
|
1307
|
+
total_due_price: number;
|
|
1308
|
+
total_price_in_major_units: number;
|
|
1309
|
+
total_due_price_in_major_units: number;
|
|
1310
|
+
service_items: any[];
|
|
1311
|
+
event_items: any[];
|
|
1312
|
+
_embedded?: {
|
|
1313
|
+
items: any[];
|
|
1314
|
+
items_removed: any[];
|
|
1315
|
+
};
|
|
1316
|
+
_links?: Record<string, any>;
|
|
1317
|
+
[key: string]: any;
|
|
1318
|
+
}
|
|
1319
|
+
interface BookingLabCheckoutBasketRequest {
|
|
1320
|
+
company_id: number;
|
|
1321
|
+
client: {
|
|
1322
|
+
id: number;
|
|
1323
|
+
[key: string]: any;
|
|
1324
|
+
};
|
|
1325
|
+
[key: string]: any;
|
|
1326
|
+
}
|
|
1327
|
+
interface BookingLabCheckoutBasketHeaders {
|
|
1328
|
+
clientToken: string;
|
|
1329
|
+
authToken: string;
|
|
1330
|
+
companyId: number;
|
|
1331
|
+
}
|
|
1332
|
+
interface BookingLabCheckoutBasketBooking {
|
|
1333
|
+
id: number;
|
|
1334
|
+
full_describe?: string;
|
|
1335
|
+
describe?: string;
|
|
1336
|
+
resource_name?: string;
|
|
1337
|
+
datetime?: string;
|
|
1338
|
+
end_datetime?: string;
|
|
1339
|
+
duration?: number;
|
|
1340
|
+
duration_span?: number;
|
|
1341
|
+
listed_duration?: number;
|
|
1342
|
+
on_waitlist?: boolean;
|
|
1343
|
+
company_id?: number;
|
|
1344
|
+
attended?: boolean;
|
|
1345
|
+
price?: number;
|
|
1346
|
+
due_now?: number;
|
|
1347
|
+
paid?: number;
|
|
1348
|
+
quantity?: number;
|
|
1349
|
+
event_id?: number;
|
|
1350
|
+
service_id?: number;
|
|
1351
|
+
purchase_id?: number;
|
|
1352
|
+
purchase_ref?: string;
|
|
1353
|
+
settings?: Record<string, any>;
|
|
1354
|
+
slot_settings?: Record<string, any>;
|
|
1355
|
+
min_cancellation_time?: string;
|
|
1356
|
+
service_name?: string;
|
|
1357
|
+
time_zone?: string;
|
|
1358
|
+
address?: Record<string, any>;
|
|
1359
|
+
booking_type?: string;
|
|
1360
|
+
slot_id?: number;
|
|
1361
|
+
first_name?: string;
|
|
1362
|
+
last_name?: string;
|
|
1363
|
+
email?: string;
|
|
1364
|
+
is_cancelled?: boolean;
|
|
1365
|
+
_embedded?: {
|
|
1366
|
+
answers?: any[];
|
|
1367
|
+
survey_answers?: any[];
|
|
1368
|
+
[key: string]: any;
|
|
1369
|
+
};
|
|
1370
|
+
person_ids?: number[];
|
|
1371
|
+
price_in_major_units?: number;
|
|
1372
|
+
paid_in_major_units?: number;
|
|
1373
|
+
due_now_in_major_units?: number;
|
|
1374
|
+
method_of_appointment?: string;
|
|
1375
|
+
status?: number;
|
|
1376
|
+
member_can_confirm_now?: boolean;
|
|
1377
|
+
member_will_need_to_confirm_in_the_future?: boolean;
|
|
1378
|
+
notification_preferences?: Record<string, any>;
|
|
1379
|
+
_links?: Record<string, {
|
|
1380
|
+
href: string;
|
|
1381
|
+
templated?: boolean;
|
|
1382
|
+
}>;
|
|
1383
|
+
[key: string]: any;
|
|
1384
|
+
}
|
|
1385
|
+
interface BookingLabCheckoutBasketEmbeddedClient {
|
|
1386
|
+
first_name?: string;
|
|
1387
|
+
last_name?: string;
|
|
1388
|
+
name?: string;
|
|
1389
|
+
email?: string;
|
|
1390
|
+
country?: string;
|
|
1391
|
+
mobile?: string;
|
|
1392
|
+
phone_prefix?: string;
|
|
1393
|
+
phone_prefix_country_code?: string;
|
|
1394
|
+
mobile_prefix?: string;
|
|
1395
|
+
mobile_prefix_country_code?: string;
|
|
1396
|
+
id: number;
|
|
1397
|
+
answers?: Array<{
|
|
1398
|
+
question_id: number;
|
|
1399
|
+
name: string;
|
|
1400
|
+
answer: any;
|
|
1401
|
+
answer_id: any;
|
|
1402
|
+
}>;
|
|
1403
|
+
deleted?: boolean;
|
|
1404
|
+
notifications?: Record<string, any>;
|
|
1405
|
+
default_company_id?: number;
|
|
1406
|
+
locale?: string;
|
|
1407
|
+
consent?: boolean;
|
|
1408
|
+
notification_preferences?: Record<string, any>;
|
|
1409
|
+
_links?: Record<string, {
|
|
1410
|
+
href: string;
|
|
1411
|
+
templated?: boolean;
|
|
1412
|
+
}>;
|
|
1413
|
+
[key: string]: any;
|
|
1414
|
+
}
|
|
1415
|
+
interface BookingLabCheckoutBasketEmbeddedMember {
|
|
1416
|
+
id: number;
|
|
1417
|
+
name?: string;
|
|
1418
|
+
first_name?: string;
|
|
1419
|
+
last_name?: string;
|
|
1420
|
+
wallet_amount?: number;
|
|
1421
|
+
email?: string;
|
|
1422
|
+
country?: string;
|
|
1423
|
+
phone_prefix?: string;
|
|
1424
|
+
phone_prefix_country_code?: string;
|
|
1425
|
+
mobile?: string;
|
|
1426
|
+
mobile_prefix?: string;
|
|
1427
|
+
mobile_prefix_country_code?: string;
|
|
1428
|
+
path?: string;
|
|
1429
|
+
company_id?: number;
|
|
1430
|
+
has_active_wallet?: boolean;
|
|
1431
|
+
default_company_id?: number;
|
|
1432
|
+
has_wallet?: boolean;
|
|
1433
|
+
consent?: boolean;
|
|
1434
|
+
locale?: string;
|
|
1435
|
+
answers?: Array<{
|
|
1436
|
+
question_id: number;
|
|
1437
|
+
name: string;
|
|
1438
|
+
answer: any;
|
|
1439
|
+
}>;
|
|
1440
|
+
q?: Record<string, {
|
|
1441
|
+
answer: any;
|
|
1442
|
+
answer_id: any;
|
|
1443
|
+
name: string;
|
|
1444
|
+
}>;
|
|
1445
|
+
_links?: Record<string, {
|
|
1446
|
+
href: string;
|
|
1447
|
+
templated?: boolean;
|
|
1448
|
+
}>;
|
|
1449
|
+
[key: string]: any;
|
|
1450
|
+
}
|
|
1451
|
+
interface BookingLabDeleteBasketHeaders {
|
|
1452
|
+
clientToken: string;
|
|
1453
|
+
authToken: string;
|
|
1454
|
+
companyId: number;
|
|
1455
|
+
}
|
|
1456
|
+
interface BookingLabDeleteBasketResponse {
|
|
1457
|
+
[key: string]: any;
|
|
1458
|
+
}
|
|
1459
|
+
interface BookingLabCheckoutBasketResponse {
|
|
1460
|
+
total_price: number;
|
|
1461
|
+
price: number;
|
|
1462
|
+
paid: number;
|
|
1463
|
+
deposit: number;
|
|
1464
|
+
tax_payable_on_price?: number;
|
|
1465
|
+
tax_payable_on_deposit?: number;
|
|
1466
|
+
tax_payable_on_due_now?: number;
|
|
1467
|
+
due_now?: number;
|
|
1468
|
+
long_id: string;
|
|
1469
|
+
id: number;
|
|
1470
|
+
client_name?: string;
|
|
1471
|
+
created_at?: string;
|
|
1472
|
+
certificate_paid?: number;
|
|
1473
|
+
payment_type?: string;
|
|
1474
|
+
original_price?: number;
|
|
1475
|
+
payment_reference?: any[];
|
|
1476
|
+
_embedded?: {
|
|
1477
|
+
client?: BookingLabCheckoutBasketEmbeddedClient;
|
|
1478
|
+
member?: BookingLabCheckoutBasketEmbeddedMember;
|
|
1479
|
+
bookings?: BookingLabCheckoutBasketBooking[];
|
|
1480
|
+
packages?: any[];
|
|
1481
|
+
products?: any[];
|
|
1482
|
+
pre_paid_bookings?: any[];
|
|
1483
|
+
deals?: any[];
|
|
1484
|
+
course_bookings?: any[];
|
|
1485
|
+
external_purchases?: any[];
|
|
1486
|
+
payment_callbacks?: any[];
|
|
1487
|
+
confirm_messages?: any[];
|
|
1488
|
+
[key: string]: any;
|
|
1489
|
+
};
|
|
1490
|
+
refund?: {
|
|
1491
|
+
amount_refunded: number;
|
|
1492
|
+
amount_remaining: number;
|
|
1493
|
+
};
|
|
1494
|
+
price_in_major_units?: number;
|
|
1495
|
+
total_price_in_major_units?: number;
|
|
1496
|
+
paid_in_major_units?: number;
|
|
1497
|
+
deposit_in_major_units?: number;
|
|
1498
|
+
tax_payable_on_price_in_major_units?: number;
|
|
1499
|
+
tax_payable_on_deposit_in_major_units?: number;
|
|
1500
|
+
tax_payable_on_due_now_in_major_units?: number;
|
|
1501
|
+
due_now_in_major_units?: number;
|
|
1502
|
+
_links?: Record<string, {
|
|
1503
|
+
href: string;
|
|
1504
|
+
templated?: boolean;
|
|
1505
|
+
type?: string;
|
|
1506
|
+
}>;
|
|
1507
|
+
[key: string]: any;
|
|
1508
|
+
}
|
|
1121
1509
|
|
|
1122
1510
|
/**
|
|
1123
1511
|
* Core API Client
|
|
@@ -1272,6 +1660,77 @@ declare class BookingLabClient extends ApiClient {
|
|
|
1272
1660
|
* @param clientToken - Client token for authentication
|
|
1273
1661
|
*/
|
|
1274
1662
|
getToken(request: BookingLabGetTokenRequest, clientToken: string): Promise<ApiResponse<BookingLabGetTokenResponse>>;
|
|
1663
|
+
/**
|
|
1664
|
+
* Get services for a company
|
|
1665
|
+
* @param companyId - The company ID
|
|
1666
|
+
* @param clientToken - Client token for authentication
|
|
1667
|
+
*/
|
|
1668
|
+
getCompanyServices(companyId: number, clientToken: string): Promise<ApiResponse<BookingLabGetServicesResponse>>;
|
|
1669
|
+
/**
|
|
1670
|
+
* Get a single service by ID for a company
|
|
1671
|
+
* @param companyId - The company ID
|
|
1672
|
+
* @param serviceId - The service ID
|
|
1673
|
+
* @param clientToken - Client token for authentication
|
|
1674
|
+
*/
|
|
1675
|
+
getCompanyService(companyId: number, serviceId: number, clientToken: string): Promise<ApiResponse<BookingLabService>>;
|
|
1676
|
+
/**
|
|
1677
|
+
* Get all companies
|
|
1678
|
+
* @param clientToken - Client token for authentication
|
|
1679
|
+
* @param params - Optional query params (service_id, person_id)
|
|
1680
|
+
*/
|
|
1681
|
+
getCompanies(clientToken: string, params?: BookingLabGetCompaniesParams): Promise<ApiResponse<BookingLabGetCompaniesResponse>>;
|
|
1682
|
+
/**
|
|
1683
|
+
* Get questions for a company by detail group ID
|
|
1684
|
+
* @param companyId - The company ID
|
|
1685
|
+
* @param detailGroupId - The detail group ID
|
|
1686
|
+
* @param clientToken - Client token for authentication
|
|
1687
|
+
*/
|
|
1688
|
+
getCompanyQuestions(companyId: number, detailGroupId: number, clientToken: string): Promise<ApiResponse<BookingLabGetQuestionsResponse>>;
|
|
1689
|
+
/**
|
|
1690
|
+
* Get available days for a service within a date range
|
|
1691
|
+
* @param companyId - The company ID
|
|
1692
|
+
* @param serviceId - The service ID
|
|
1693
|
+
* @param fromDate - Start date (YYYY-MM-DD)
|
|
1694
|
+
* @param toDate - End date (YYYY-MM-DD)
|
|
1695
|
+
* @param clientToken - Client token for authentication
|
|
1696
|
+
* @param params - Optional query params (resource_id)
|
|
1697
|
+
*/
|
|
1698
|
+
getDays(companyId: number, serviceId: number, fromDate: string, toDate: string, clientToken: string, params?: BookingLabGetDaysParams): Promise<ApiResponse<BookingLabGetDaysResponse>>;
|
|
1699
|
+
/**
|
|
1700
|
+
* Get available times for a service within a date range
|
|
1701
|
+
* @param companyId - The company ID
|
|
1702
|
+
* @param serviceId - The service ID
|
|
1703
|
+
* @param fromDate - Start date (YYYY-MM-DD)
|
|
1704
|
+
* @param toDate - End date (YYYY-MM-DD)
|
|
1705
|
+
* @param clientToken - Client token for authentication
|
|
1706
|
+
* @param params - Optional query params (duration, resource_id, person_id)
|
|
1707
|
+
*/
|
|
1708
|
+
getTimes(companyId: number, serviceId: number, fromDate: string, toDate: string, clientToken: string, params?: BookingLabGetTimesParams): Promise<ApiResponse<BookingLabGetTimesResponse>>;
|
|
1709
|
+
/**
|
|
1710
|
+
* Create a new basket (BookingLab public)
|
|
1711
|
+
* @param request - Body with company_id
|
|
1712
|
+
* @param headers - Required clientToken/companyId; optional authToken/memberId
|
|
1713
|
+
*/
|
|
1714
|
+
createBasket(request: BookingLabCreateBasketRequest, headers: BookingLabCreateBasketHeaders): Promise<ApiResponse<BookingLabCreateBasketResponse>>;
|
|
1715
|
+
/**
|
|
1716
|
+
* Add a service item to a public basket (BookingLab)
|
|
1717
|
+
* @param basketId - The basket ID
|
|
1718
|
+
* @param request - Service item body
|
|
1719
|
+
* @param headers - Required clientToken/authToken/companyId
|
|
1720
|
+
*/
|
|
1721
|
+
addBasketServiceItem(basketId: string, request: BookingLabAddBasketServiceItemRequest, headers: BookingLabAddBasketServiceItemHeaders): Promise<ApiResponse<BookingLabAddBasketServiceItemResponse>>;
|
|
1722
|
+
/**
|
|
1723
|
+
* Checkout a public basket (BookingLab)
|
|
1724
|
+
* @param basketId - The basket ID
|
|
1725
|
+
* @param request - Body with company_id and client.id
|
|
1726
|
+
* @param headers - Required clientToken/authToken/companyId
|
|
1727
|
+
*/
|
|
1728
|
+
checkoutBasketPublic(basketId: string, request: BookingLabCheckoutBasketRequest, headers: BookingLabCheckoutBasketHeaders): Promise<ApiResponse<BookingLabCheckoutBasketResponse>>;
|
|
1729
|
+
/**
|
|
1730
|
+
* Delete a public basket (BookingLab)
|
|
1731
|
+
* @param headers - Required clientToken/authToken/companyId
|
|
1732
|
+
*/
|
|
1733
|
+
deleteBasketPublic(headers: BookingLabDeleteBasketHeaders): Promise<ApiResponse<BookingLabDeleteBasketResponse>>;
|
|
1275
1734
|
}
|
|
1276
1735
|
/**
|
|
1277
1736
|
* Create a new BookingLab client instance
|
|
@@ -1682,5 +2141,72 @@ declare function useBookingLabConfig(request: BookingLabConfigRequest, clientTok
|
|
|
1682
2141
|
* @param enabled - Whether the query should run
|
|
1683
2142
|
*/
|
|
1684
2143
|
declare function useBookingLabGetToken(request: BookingLabGetTokenRequest, clientToken: string, enabled?: boolean): _tanstack_react_query.UseQueryResult<BookingLabGetTokenResponse, Error>;
|
|
2144
|
+
/**
|
|
2145
|
+
* Hook for fetching services for a company (BookingLab)
|
|
2146
|
+
* @param companyId - The company ID
|
|
2147
|
+
* @param clientToken - Client token for authentication
|
|
2148
|
+
* @param enabled - Whether the query should run
|
|
2149
|
+
*/
|
|
2150
|
+
declare function useBookingLabServices(companyId: number, clientToken: string, enabled?: boolean): _tanstack_react_query.UseQueryResult<BookingLabGetServicesResponse, Error>;
|
|
2151
|
+
/**
|
|
2152
|
+
* Hook for fetching a single service for a company by ID (BookingLab)
|
|
2153
|
+
* @param companyId - The company ID
|
|
2154
|
+
* @param serviceId - The service ID
|
|
2155
|
+
* @param clientToken - Client token for authentication
|
|
2156
|
+
* @param enabled - Whether the query should run
|
|
2157
|
+
*/
|
|
2158
|
+
declare function useBookingLabService(companyId: number, serviceId: number, clientToken: string, enabled?: boolean): _tanstack_react_query.UseQueryResult<BookingLabService, Error>;
|
|
2159
|
+
/**
|
|
2160
|
+
* Hook for fetching all companies (BookingLab)
|
|
2161
|
+
* @param clientToken - Client token for authentication
|
|
2162
|
+
* @param params - Optional query params (service_id, person_id)
|
|
2163
|
+
* @param enabled - Whether the query should run
|
|
2164
|
+
*/
|
|
2165
|
+
declare function useBookingLabCompanies(clientToken: string, params?: BookingLabGetCompaniesParams, enabled?: boolean): _tanstack_react_query.UseQueryResult<BookingLabGetCompaniesResponse, Error>;
|
|
2166
|
+
/**
|
|
2167
|
+
* Hook for fetching questions for a company by detail group (BookingLab)
|
|
2168
|
+
* @param companyId - The company ID
|
|
2169
|
+
* @param detailGroupId - The detail group ID
|
|
2170
|
+
* @param clientToken - Client token for authentication
|
|
2171
|
+
* @param enabled - Whether the query should run
|
|
2172
|
+
*/
|
|
2173
|
+
declare function useBookingLabQuestions(companyId: number, detailGroupId: number, clientToken: string, enabled?: boolean): _tanstack_react_query.UseQueryResult<BookingLabGetQuestionsResponse, Error>;
|
|
2174
|
+
/**
|
|
2175
|
+
* Hook for fetching available days for a service within a date range (BookingLab)
|
|
2176
|
+
*/
|
|
2177
|
+
declare function useBookingLabDays(companyId: number, serviceId: number, fromDate: string, toDate: string, clientToken: string, params?: BookingLabGetDaysParams, enabled?: boolean): _tanstack_react_query.UseQueryResult<BookingLabGetDaysResponse, Error>;
|
|
2178
|
+
/**
|
|
2179
|
+
* Hook for fetching available times for a company/service (BookingLab)
|
|
2180
|
+
*/
|
|
2181
|
+
declare function useBookingLabTimes(companyId: number, serviceId: number, fromDate: string, toDate: string, clientToken: string, params?: BookingLabGetTimesParams, enabled?: boolean): _tanstack_react_query.UseQueryResult<BookingLabGetTimesResponse, Error>;
|
|
2182
|
+
/**
|
|
2183
|
+
* Hook for creating a new basket (BookingLab)
|
|
2184
|
+
*/
|
|
2185
|
+
declare function useBookingLabCreateBasket(): _tanstack_react_query.UseMutationResult<BookingLabCreateBasketResponse, Error, {
|
|
2186
|
+
request: BookingLabCreateBasketRequest;
|
|
2187
|
+
headers: BookingLabCreateBasketHeaders;
|
|
2188
|
+
}, unknown>;
|
|
2189
|
+
/**
|
|
2190
|
+
* Hook for adding a service item to a public basket (BookingLab)
|
|
2191
|
+
*/
|
|
2192
|
+
declare function useBookingLabAddBasketServiceItem(): _tanstack_react_query.UseMutationResult<BookingLabAddBasketServiceItemResponse, Error, {
|
|
2193
|
+
basketId: string;
|
|
2194
|
+
request: BookingLabAddBasketServiceItemRequest;
|
|
2195
|
+
headers: BookingLabAddBasketServiceItemHeaders;
|
|
2196
|
+
}, unknown>;
|
|
2197
|
+
/**
|
|
2198
|
+
* Hook for checking out a public basket (BookingLab)
|
|
2199
|
+
*/
|
|
2200
|
+
declare function useBookingLabCheckoutBasket(): _tanstack_react_query.UseMutationResult<BookingLabCheckoutBasketResponse, Error, {
|
|
2201
|
+
basketId: string;
|
|
2202
|
+
request: BookingLabCheckoutBasketRequest;
|
|
2203
|
+
headers: BookingLabCheckoutBasketHeaders;
|
|
2204
|
+
}, unknown>;
|
|
2205
|
+
/**
|
|
2206
|
+
* Hook for deleting a public basket (BookingLab)
|
|
2207
|
+
*/
|
|
2208
|
+
declare function useBookingLabDeleteBasket(): _tanstack_react_query.UseMutationResult<BookingLabDeleteBasketResponse, Error, {
|
|
2209
|
+
headers: BookingLabDeleteBasketHeaders;
|
|
2210
|
+
}, unknown>;
|
|
1685
2211
|
|
|
1686
|
-
export { type AddBasketItemRequest, type AddServiceItemAssets, type AddServiceItemQuestion, type AddServiceItemRequest, ApiClient, type ApiClientConfig, ApiClientContext, ApiClientProvider, type ApiError, type ApiResponse, type AvailabilityTime, type AvailabilityTimesResponse, type Booking, type BookingAnswer, BookingLabClient, type BookingLabConfigPage, type BookingLabConfigProduct, type BookingLabConfigRequest, type BookingLabConfigResponse, type BookingLabConfigUserJourney, BookingLabContext, type BookingLabForgotPasswordRequest, type BookingLabForgotPasswordResponse, type BookingLabGetTokenRequest, type BookingLabGetTokenResponse, BookingLabProvider, type BookingPaymentItem, type BookingSettings, type CancelBookingRequest, type CancelBookingResponse, type CancelMemberBookingResponse, type CheckoutBasketClient, type CheckoutBasketRequest, type CheckoutBasketResponse, type ChildCompaniesResponse, type ChildCompany, type ChildCompanyAddress, type ChildCompanySettings, type ClearBasketsResponse, type ClientDetailsQuestion, type ClientDetailsResponse, type CompanyResponse, type CompanySettings, type CreateBasketRequest, type CreateBasketResponse, type CreateBookingRequest, type CreateClientRequest, type CreateClientResponse, type DateSlot, type DatesResponse, type FindClientByEmailResponse, type ForgottenPasswordRequest, type ForgottenPasswordResponse, type GetChildCompaniesParams, type GetDatesParams, type GetMemberResponse, type GetQuestionsParams, type GetTimesParams, type JrniBooking, JrniClient, type JrniConfig, JrniContext, JrniProvider, type JrniService, type ListBookingsParams, type ListBookingsResponse, type Location, type LocationsResponse, type LoginRequest, type LoginResponse, type MemberBooking, type MemberBookingsResponse, MemberType, type PersonImage, type PersonImagesResponse, type Question, type QuestionOption, type QuestionsResponse, type RequestOptions, type RescheduleBookingRequest, type RescheduleBookingResponse, type ResetPasswordRequest, type Resource, type ResourceLinks, type ResourcesResponse, type SendCustomEmailRequest, type SendCustomEmailResponse, type Service, type ServiceItemResponse, type ServicesResponse, type TimeSlot, type TimesResponse, type UpdateClientAnswer, type UpdateClientAnswerEntry, type UpdateClientDetailsData, type UpdateClientExtraInfo, type UpdateClientNotificationPreferences, type UpdateClientQuestionEntry, type UpdateClientRequest, type UpdateClientResponse, type UpdateMemberDetailsData, type UpdateMemberRequest, type UpdateMemberResponse, type Vehicle, type VehiclesResponse, createBookingLabClient, createJrniClient, useAddServiceItem, useApiClientContext, useBookingLabClient, useBookingLabConfig, useBookingLabContext, useBookingLabForgotPassword, useBookingLabGetToken, useCancelBooking, useCancelMemberBooking, useCheckoutBasket, useChildCompanies, useClearBaskets, useClientDetails, useCompany, useCreateBasket, useCreateClient, useDates, useFindClientByEmail, useForgottenPassword, useGetMember, useJrniClient, useJrniContext, useListBookings, useLogin, useQuestions, useRescheduleBooking, useResetPassword, useResources, useSendCustomEmail, useServices, useTimes, useUpdateClient, useUpdateMember };
|
|
2212
|
+
export { type AddBasketItemRequest, type AddServiceItemAssets, type AddServiceItemQuestion, type AddServiceItemRequest, ApiClient, type ApiClientConfig, ApiClientContext, ApiClientProvider, type ApiError, type ApiResponse, type AvailabilityTime, type AvailabilityTimesResponse, type Booking, type BookingAnswer, type BookingLabAddBasketServiceItemHeaders, type BookingLabAddBasketServiceItemQuestion, type BookingLabAddBasketServiceItemRequest, type BookingLabAddBasketServiceItemResponse, type BookingLabCheckoutBasketBooking, type BookingLabCheckoutBasketEmbeddedClient, type BookingLabCheckoutBasketEmbeddedMember, type BookingLabCheckoutBasketHeaders, type BookingLabCheckoutBasketRequest, type BookingLabCheckoutBasketResponse, BookingLabClient, type BookingLabCompany, type BookingLabConfigPage, type BookingLabConfigProduct, type BookingLabConfigRequest, type BookingLabConfigResponse, type BookingLabConfigUserJourney, BookingLabContext, type BookingLabCreateBasketHeaders, type BookingLabCreateBasketRequest, type BookingLabCreateBasketResponse, type BookingLabDay, type BookingLabDeleteBasketHeaders, type BookingLabDeleteBasketResponse, type BookingLabForgotPasswordRequest, type BookingLabForgotPasswordResponse, type BookingLabGetCompaniesParams, type BookingLabGetCompaniesResponse, type BookingLabGetDaysParams, type BookingLabGetDaysResponse, type BookingLabGetQuestionsResponse, type BookingLabGetServicesResponse, type BookingLabGetTimesParams, type BookingLabGetTimesResponse, type BookingLabGetTokenRequest, type BookingLabGetTokenResponse, type BookingLabHeldAsset, BookingLabProvider, type BookingLabQuestion, type BookingLabService, type BookingLabTime, type BookingPaymentItem, type BookingSettings, type CancelBookingRequest, type CancelBookingResponse, type CancelMemberBookingResponse, type CheckoutBasketClient, type CheckoutBasketRequest, type CheckoutBasketResponse, type ChildCompaniesResponse, type ChildCompany, type ChildCompanyAddress, type ChildCompanySettings, type ClearBasketsResponse, type ClientDetailsQuestion, type ClientDetailsResponse, type CompanyResponse, type CompanySettings, type CreateBasketRequest, type CreateBasketResponse, type CreateBookingRequest, type CreateClientRequest, type CreateClientResponse, type DateSlot, type DatesResponse, type FindClientByEmailResponse, type ForgottenPasswordRequest, type ForgottenPasswordResponse, type GetChildCompaniesParams, type GetDatesParams, type GetMemberResponse, type GetQuestionsParams, type GetTimesParams, type JrniBooking, JrniClient, type JrniConfig, JrniContext, JrniProvider, type JrniService, type ListBookingsParams, type ListBookingsResponse, type Location, type LocationsResponse, type LoginRequest, type LoginResponse, type MemberBooking, type MemberBookingsResponse, MemberType, type PersonImage, type PersonImagesResponse, type Question, type QuestionOption, type QuestionsResponse, type RequestOptions, type RescheduleBookingRequest, type RescheduleBookingResponse, type ResetPasswordRequest, type Resource, type ResourceLinks, type ResourcesResponse, type SendCustomEmailRequest, type SendCustomEmailResponse, type Service, type ServiceItemResponse, type ServicesResponse, type TimeSlot, type TimesResponse, type UpdateClientAnswer, type UpdateClientAnswerEntry, type UpdateClientDetailsData, type UpdateClientExtraInfo, type UpdateClientNotificationPreferences, type UpdateClientQuestionEntry, type UpdateClientRequest, type UpdateClientResponse, type UpdateMemberDetailsData, type UpdateMemberRequest, type UpdateMemberResponse, type Vehicle, type VehiclesResponse, createBookingLabClient, createJrniClient, useAddServiceItem, useApiClientContext, useBookingLabAddBasketServiceItem, useBookingLabCheckoutBasket, useBookingLabClient, useBookingLabCompanies, useBookingLabConfig, useBookingLabContext, useBookingLabCreateBasket, useBookingLabDays, useBookingLabDeleteBasket, useBookingLabForgotPassword, useBookingLabGetToken, useBookingLabQuestions, useBookingLabService, useBookingLabServices, useBookingLabTimes, useCancelBooking, useCancelMemberBooking, useCheckoutBasket, useChildCompanies, useClearBaskets, useClientDetails, useCompany, useCreateBasket, useCreateClient, useDates, useFindClientByEmail, useForgottenPassword, useGetMember, useJrniClient, useJrniContext, useListBookings, useLogin, useQuestions, useRescheduleBooking, useResetPassword, useResources, useSendCustomEmail, useServices, useTimes, useUpdateClient, useUpdateMember };
|