@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.js CHANGED
@@ -174,6 +174,11 @@ function deleteClient(client, path) {
174
174
  params: { path }
175
175
  });
176
176
  }
177
+ function deleteConnectedAccount(client, path) {
178
+ return client.DELETE("/v1/connected_accounts/{connected_account_id}", {
179
+ params: { path }
180
+ });
181
+ }
177
182
  function deleteProviderSchedule(client, path) {
178
183
  return client.DELETE("/v1/provider_schedules/{provider_schedule_id}", {
179
184
  params: { path }
@@ -214,6 +219,11 @@ function getClient(client, path) {
214
219
  params: { path }
215
220
  });
216
221
  }
222
+ function getConnectedAccount(client, path) {
223
+ return client.GET("/v1/connected_accounts/{connected_account_id}", {
224
+ params: { path }
225
+ });
226
+ }
217
227
  function getCurrentAccount(client) {
218
228
  return client.GET("/v1/account");
219
229
  }
@@ -274,6 +284,11 @@ function listClients(client, query) {
274
284
  params: { query }
275
285
  });
276
286
  }
287
+ function listConnectedAccounts(client, query) {
288
+ return client.GET("/v1/connected_accounts", {
289
+ params: { query }
290
+ });
291
+ }
277
292
  function listProviders(client, query) {
278
293
  return client.GET("/v1/providers", {
279
294
  params: { query }
@@ -333,6 +348,12 @@ function updateAccount(client, path, body) {
333
348
  params: { path }
334
349
  });
335
350
  }
351
+ function updateAccountUser(client, path, body) {
352
+ return client.PATCH("/v1/users/{user_id}", {
353
+ body,
354
+ params: { path }
355
+ });
356
+ }
336
357
  function updateBlock(client, path, body) {
337
358
  return client.PATCH("/v1/blocks/{block_id}", {
338
359
  body,
@@ -351,6 +372,12 @@ function updateClient(client, path, body) {
351
372
  params: { path }
352
373
  });
353
374
  }
375
+ function updateConnectedAccount(client, path, body) {
376
+ return client.PATCH("/v1/connected_accounts/{connected_account_id}", {
377
+ body,
378
+ params: { path }
379
+ });
380
+ }
354
381
  function updateProvider(client, path, body) {
355
382
  return client.PATCH("/v1/providers/{provider_id}", {
356
383
  body,
@@ -390,6 +417,7 @@ export {
390
417
  deleteBlock,
391
418
  deleteCancellationReason,
392
419
  deleteClient,
420
+ deleteConnectedAccount,
393
421
  deleteProviderSchedule,
394
422
  deleteService,
395
423
  deleteServiceProvider,
@@ -398,6 +426,7 @@ export {
398
426
  getBlock,
399
427
  getCancellationReason,
400
428
  getClient,
429
+ getConnectedAccount,
401
430
  getCurrentAccount,
402
431
  getCurrentAccountUser,
403
432
  getCurrentPlatform,
@@ -412,6 +441,7 @@ export {
412
441
  listBlocks,
413
442
  listCancellationReasons,
414
443
  listClients,
444
+ listConnectedAccounts,
415
445
  listProviderSchedules,
416
446
  listProviders,
417
447
  listPublicCancellationReasons,
@@ -423,9 +453,11 @@ export {
423
453
  rescheduleAppointment,
424
454
  reschedulePublicAppointment,
425
455
  updateAccount,
456
+ updateAccountUser,
426
457
  updateBlock,
427
458
  updateCancellationReason,
428
459
  updateClient,
460
+ updateConnectedAccount,
429
461
  updateProvider,
430
462
  updateProviderSchedule,
431
463
  updateService
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvycal/appointments-core",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "description": "JavaScript/TypeScript client library for the SavvyCal Appointments API",
6
6
  "main": "./dist/index.cjs",