@savvycal/appointments-core 0.2.0 → 0.4.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/dist/index.cjs +37 -0
- package/dist/index.d.cts +1436 -69
- package/dist/index.d.ts +1436 -69
- package/dist/index.js +32 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -50,6 +50,7 @@ __export(index_exports, {
|
|
|
50
50
|
deleteBlock: () => deleteBlock,
|
|
51
51
|
deleteCancellationReason: () => deleteCancellationReason,
|
|
52
52
|
deleteClient: () => deleteClient,
|
|
53
|
+
deleteConnectedAccount: () => deleteConnectedAccount,
|
|
53
54
|
deleteProviderSchedule: () => deleteProviderSchedule,
|
|
54
55
|
deleteService: () => deleteService,
|
|
55
56
|
deleteServiceProvider: () => deleteServiceProvider,
|
|
@@ -58,6 +59,7 @@ __export(index_exports, {
|
|
|
58
59
|
getBlock: () => getBlock,
|
|
59
60
|
getCancellationReason: () => getCancellationReason,
|
|
60
61
|
getClient: () => getClient,
|
|
62
|
+
getConnectedAccount: () => getConnectedAccount,
|
|
61
63
|
getCurrentAccount: () => getCurrentAccount,
|
|
62
64
|
getCurrentAccountUser: () => getCurrentAccountUser,
|
|
63
65
|
getCurrentPlatform: () => getCurrentPlatform,
|
|
@@ -72,6 +74,7 @@ __export(index_exports, {
|
|
|
72
74
|
listBlocks: () => listBlocks,
|
|
73
75
|
listCancellationReasons: () => listCancellationReasons,
|
|
74
76
|
listClients: () => listClients,
|
|
77
|
+
listConnectedAccounts: () => listConnectedAccounts,
|
|
75
78
|
listProviderSchedules: () => listProviderSchedules,
|
|
76
79
|
listProviders: () => listProviders,
|
|
77
80
|
listPublicCancellationReasons: () => listPublicCancellationReasons,
|
|
@@ -83,9 +86,11 @@ __export(index_exports, {
|
|
|
83
86
|
rescheduleAppointment: () => rescheduleAppointment,
|
|
84
87
|
reschedulePublicAppointment: () => reschedulePublicAppointment,
|
|
85
88
|
updateAccount: () => updateAccount,
|
|
89
|
+
updateAccountUser: () => updateAccountUser,
|
|
86
90
|
updateBlock: () => updateBlock,
|
|
87
91
|
updateCancellationReason: () => updateCancellationReason,
|
|
88
92
|
updateClient: () => updateClient,
|
|
93
|
+
updateConnectedAccount: () => updateConnectedAccount,
|
|
89
94
|
updateProvider: () => updateProvider,
|
|
90
95
|
updateProviderSchedule: () => updateProviderSchedule,
|
|
91
96
|
updateService: () => updateService
|
|
@@ -268,6 +273,11 @@ function deleteClient(client, path) {
|
|
|
268
273
|
params: { path }
|
|
269
274
|
});
|
|
270
275
|
}
|
|
276
|
+
function deleteConnectedAccount(client, path) {
|
|
277
|
+
return client.DELETE("/v1/connected_accounts/{connected_account_id}", {
|
|
278
|
+
params: { path }
|
|
279
|
+
});
|
|
280
|
+
}
|
|
271
281
|
function deleteProviderSchedule(client, path) {
|
|
272
282
|
return client.DELETE("/v1/provider_schedules/{provider_schedule_id}", {
|
|
273
283
|
params: { path }
|
|
@@ -308,6 +318,11 @@ function getClient(client, path) {
|
|
|
308
318
|
params: { path }
|
|
309
319
|
});
|
|
310
320
|
}
|
|
321
|
+
function getConnectedAccount(client, path) {
|
|
322
|
+
return client.GET("/v1/connected_accounts/{connected_account_id}", {
|
|
323
|
+
params: { path }
|
|
324
|
+
});
|
|
325
|
+
}
|
|
311
326
|
function getCurrentAccount(client) {
|
|
312
327
|
return client.GET("/v1/account");
|
|
313
328
|
}
|
|
@@ -368,6 +383,11 @@ function listClients(client, query) {
|
|
|
368
383
|
params: { query }
|
|
369
384
|
});
|
|
370
385
|
}
|
|
386
|
+
function listConnectedAccounts(client, query) {
|
|
387
|
+
return client.GET("/v1/connected_accounts", {
|
|
388
|
+
params: { query }
|
|
389
|
+
});
|
|
390
|
+
}
|
|
371
391
|
function listProviders(client, query) {
|
|
372
392
|
return client.GET("/v1/providers", {
|
|
373
393
|
params: { query }
|
|
@@ -427,6 +447,12 @@ function updateAccount(client, path, body) {
|
|
|
427
447
|
params: { path }
|
|
428
448
|
});
|
|
429
449
|
}
|
|
450
|
+
function updateAccountUser(client, path, body) {
|
|
451
|
+
return client.PATCH("/v1/users/{user_id}", {
|
|
452
|
+
body,
|
|
453
|
+
params: { path }
|
|
454
|
+
});
|
|
455
|
+
}
|
|
430
456
|
function updateBlock(client, path, body) {
|
|
431
457
|
return client.PATCH("/v1/blocks/{block_id}", {
|
|
432
458
|
body,
|
|
@@ -445,6 +471,12 @@ function updateClient(client, path, body) {
|
|
|
445
471
|
params: { path }
|
|
446
472
|
});
|
|
447
473
|
}
|
|
474
|
+
function updateConnectedAccount(client, path, body) {
|
|
475
|
+
return client.PATCH("/v1/connected_accounts/{connected_account_id}", {
|
|
476
|
+
body,
|
|
477
|
+
params: { path }
|
|
478
|
+
});
|
|
479
|
+
}
|
|
448
480
|
function updateProvider(client, path, body) {
|
|
449
481
|
return client.PATCH("/v1/providers/{provider_id}", {
|
|
450
482
|
body,
|
|
@@ -485,6 +517,7 @@ function updateService(client, path, body) {
|
|
|
485
517
|
deleteBlock,
|
|
486
518
|
deleteCancellationReason,
|
|
487
519
|
deleteClient,
|
|
520
|
+
deleteConnectedAccount,
|
|
488
521
|
deleteProviderSchedule,
|
|
489
522
|
deleteService,
|
|
490
523
|
deleteServiceProvider,
|
|
@@ -493,6 +526,7 @@ function updateService(client, path, body) {
|
|
|
493
526
|
getBlock,
|
|
494
527
|
getCancellationReason,
|
|
495
528
|
getClient,
|
|
529
|
+
getConnectedAccount,
|
|
496
530
|
getCurrentAccount,
|
|
497
531
|
getCurrentAccountUser,
|
|
498
532
|
getCurrentPlatform,
|
|
@@ -507,6 +541,7 @@ function updateService(client, path, body) {
|
|
|
507
541
|
listBlocks,
|
|
508
542
|
listCancellationReasons,
|
|
509
543
|
listClients,
|
|
544
|
+
listConnectedAccounts,
|
|
510
545
|
listProviderSchedules,
|
|
511
546
|
listProviders,
|
|
512
547
|
listPublicCancellationReasons,
|
|
@@ -518,9 +553,11 @@ function updateService(client, path, body) {
|
|
|
518
553
|
rescheduleAppointment,
|
|
519
554
|
reschedulePublicAppointment,
|
|
520
555
|
updateAccount,
|
|
556
|
+
updateAccountUser,
|
|
521
557
|
updateBlock,
|
|
522
558
|
updateCancellationReason,
|
|
523
559
|
updateClient,
|
|
560
|
+
updateConnectedAccount,
|
|
524
561
|
updateProvider,
|
|
525
562
|
updateProviderSchedule,
|
|
526
563
|
updateService
|