@savvycal/appointments-core 0.3.0 → 0.5.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 +29 -0
- package/dist/index.d.cts +717 -51
- package/dist/index.d.ts +717 -51
- package/dist/index.js +25 -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,
|
|
@@ -87,6 +90,7 @@ __export(index_exports, {
|
|
|
87
90
|
updateBlock: () => updateBlock,
|
|
88
91
|
updateCancellationReason: () => updateCancellationReason,
|
|
89
92
|
updateClient: () => updateClient,
|
|
93
|
+
updateConnectedAccount: () => updateConnectedAccount,
|
|
90
94
|
updateProvider: () => updateProvider,
|
|
91
95
|
updateProviderSchedule: () => updateProviderSchedule,
|
|
92
96
|
updateService: () => updateService
|
|
@@ -269,6 +273,11 @@ function deleteClient(client, path) {
|
|
|
269
273
|
params: { path }
|
|
270
274
|
});
|
|
271
275
|
}
|
|
276
|
+
function deleteConnectedAccount(client, path) {
|
|
277
|
+
return client.DELETE("/v1/connected_accounts/{connected_account_id}", {
|
|
278
|
+
params: { path }
|
|
279
|
+
});
|
|
280
|
+
}
|
|
272
281
|
function deleteProviderSchedule(client, path) {
|
|
273
282
|
return client.DELETE("/v1/provider_schedules/{provider_schedule_id}", {
|
|
274
283
|
params: { path }
|
|
@@ -309,6 +318,11 @@ function getClient(client, path) {
|
|
|
309
318
|
params: { path }
|
|
310
319
|
});
|
|
311
320
|
}
|
|
321
|
+
function getConnectedAccount(client, path) {
|
|
322
|
+
return client.GET("/v1/connected_accounts/{connected_account_id}", {
|
|
323
|
+
params: { path }
|
|
324
|
+
});
|
|
325
|
+
}
|
|
312
326
|
function getCurrentAccount(client) {
|
|
313
327
|
return client.GET("/v1/account");
|
|
314
328
|
}
|
|
@@ -369,6 +383,11 @@ function listClients(client, query) {
|
|
|
369
383
|
params: { query }
|
|
370
384
|
});
|
|
371
385
|
}
|
|
386
|
+
function listConnectedAccounts(client, query) {
|
|
387
|
+
return client.GET("/v1/connected_accounts", {
|
|
388
|
+
params: { query }
|
|
389
|
+
});
|
|
390
|
+
}
|
|
372
391
|
function listProviders(client, query) {
|
|
373
392
|
return client.GET("/v1/providers", {
|
|
374
393
|
params: { query }
|
|
@@ -452,6 +471,12 @@ function updateClient(client, path, body) {
|
|
|
452
471
|
params: { path }
|
|
453
472
|
});
|
|
454
473
|
}
|
|
474
|
+
function updateConnectedAccount(client, path, body) {
|
|
475
|
+
return client.PATCH("/v1/connected_accounts/{connected_account_id}", {
|
|
476
|
+
body,
|
|
477
|
+
params: { path }
|
|
478
|
+
});
|
|
479
|
+
}
|
|
455
480
|
function updateProvider(client, path, body) {
|
|
456
481
|
return client.PATCH("/v1/providers/{provider_id}", {
|
|
457
482
|
body,
|
|
@@ -492,6 +517,7 @@ function updateService(client, path, body) {
|
|
|
492
517
|
deleteBlock,
|
|
493
518
|
deleteCancellationReason,
|
|
494
519
|
deleteClient,
|
|
520
|
+
deleteConnectedAccount,
|
|
495
521
|
deleteProviderSchedule,
|
|
496
522
|
deleteService,
|
|
497
523
|
deleteServiceProvider,
|
|
@@ -500,6 +526,7 @@ function updateService(client, path, body) {
|
|
|
500
526
|
getBlock,
|
|
501
527
|
getCancellationReason,
|
|
502
528
|
getClient,
|
|
529
|
+
getConnectedAccount,
|
|
503
530
|
getCurrentAccount,
|
|
504
531
|
getCurrentAccountUser,
|
|
505
532
|
getCurrentPlatform,
|
|
@@ -514,6 +541,7 @@ function updateService(client, path, body) {
|
|
|
514
541
|
listBlocks,
|
|
515
542
|
listCancellationReasons,
|
|
516
543
|
listClients,
|
|
544
|
+
listConnectedAccounts,
|
|
517
545
|
listProviderSchedules,
|
|
518
546
|
listProviders,
|
|
519
547
|
listPublicCancellationReasons,
|
|
@@ -529,6 +557,7 @@ function updateService(client, path, body) {
|
|
|
529
557
|
updateBlock,
|
|
530
558
|
updateCancellationReason,
|
|
531
559
|
updateClient,
|
|
560
|
+
updateConnectedAccount,
|
|
532
561
|
updateProvider,
|
|
533
562
|
updateProviderSchedule,
|
|
534
563
|
updateService
|