@gpt-platform/admin 0.8.0 → 0.8.1
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.d.mts +13551 -3745
- package/dist/index.d.ts +13551 -3745
- package/dist/index.js +1557 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1557 -40
- package/dist/index.mjs.map +1 -1
- package/llms.txt +143 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -853,7 +853,7 @@ var createClient = (config = {}) => {
|
|
|
853
853
|
};
|
|
854
854
|
|
|
855
855
|
// src/version.ts
|
|
856
|
-
var SDK_VERSION = "0.8.
|
|
856
|
+
var SDK_VERSION = "0.8.1";
|
|
857
857
|
var DEFAULT_API_VERSION = "2026-03-11";
|
|
858
858
|
|
|
859
859
|
// src/base-client.ts
|
|
@@ -1446,6 +1446,25 @@ var postAdminSocialPosts = (options) => (options.client ?? client).post({
|
|
|
1446
1446
|
...options.headers
|
|
1447
1447
|
}
|
|
1448
1448
|
});
|
|
1449
|
+
var deleteAdminClinicalNotesById = (options) => (options.client ?? client).delete({
|
|
1450
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1451
|
+
url: "/admin/clinical/notes/{id}",
|
|
1452
|
+
...options
|
|
1453
|
+
});
|
|
1454
|
+
var getAdminClinicalNotesById = (options) => (options.client ?? client).get({
|
|
1455
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1456
|
+
url: "/admin/clinical/notes/{id}",
|
|
1457
|
+
...options
|
|
1458
|
+
});
|
|
1459
|
+
var patchAdminClinicalNotesById = (options) => (options.client ?? client).patch({
|
|
1460
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1461
|
+
url: "/admin/clinical/notes/{id}",
|
|
1462
|
+
...options,
|
|
1463
|
+
headers: {
|
|
1464
|
+
"Content-Type": "application/vnd.api+json",
|
|
1465
|
+
...options.headers
|
|
1466
|
+
}
|
|
1467
|
+
});
|
|
1449
1468
|
var getAdminApplications = (options) => (options.client ?? client).get({
|
|
1450
1469
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1451
1470
|
url: "/admin/applications",
|
|
@@ -1488,6 +1507,20 @@ var patchAdminSupportTicketsByIdClose = (options) => (options.client ?? client).
|
|
|
1488
1507
|
...options.headers
|
|
1489
1508
|
}
|
|
1490
1509
|
});
|
|
1510
|
+
var getAdminClinicalSessions = (options) => (options.client ?? client).get({
|
|
1511
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1512
|
+
url: "/admin/clinical/sessions",
|
|
1513
|
+
...options
|
|
1514
|
+
});
|
|
1515
|
+
var postAdminClinicalSessions = (options) => (options.client ?? client).post({
|
|
1516
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1517
|
+
url: "/admin/clinical/sessions",
|
|
1518
|
+
...options,
|
|
1519
|
+
headers: {
|
|
1520
|
+
"Content-Type": "application/vnd.api+json",
|
|
1521
|
+
...options.headers
|
|
1522
|
+
}
|
|
1523
|
+
});
|
|
1491
1524
|
var deleteAdminSupportTicketsById = (options) => (options.client ?? client).delete({
|
|
1492
1525
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1493
1526
|
url: "/admin/support/tickets/{id}",
|
|
@@ -1629,6 +1662,11 @@ var getAdminAgents = (options) => (options.client ?? client).get({
|
|
|
1629
1662
|
url: "/admin/agents",
|
|
1630
1663
|
...options
|
|
1631
1664
|
});
|
|
1665
|
+
var getAdminClinicalGoalTemplatesMine = (options) => (options.client ?? client).get({
|
|
1666
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1667
|
+
url: "/admin/clinical/goal-templates/mine",
|
|
1668
|
+
...options
|
|
1669
|
+
});
|
|
1632
1670
|
var deleteAdminBrandIdentitiesById = (options) => (options.client ?? client).delete({
|
|
1633
1671
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1634
1672
|
url: "/admin/brand-identities/{id}",
|
|
@@ -1648,6 +1686,11 @@ var patchAdminBrandIdentitiesById = (options) => (options.client ?? client).patc
|
|
|
1648
1686
|
...options.headers
|
|
1649
1687
|
}
|
|
1650
1688
|
});
|
|
1689
|
+
var getAdminClinicalHealthMetricsBySession = (options) => (options.client ?? client).get({
|
|
1690
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1691
|
+
url: "/admin/clinical/health-metrics/by-session",
|
|
1692
|
+
...options
|
|
1693
|
+
});
|
|
1651
1694
|
var deleteAdminAgentVersionsById = (options) => (options.client ?? client).delete({
|
|
1652
1695
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1653
1696
|
url: "/admin/agent-versions/{id}",
|
|
@@ -1714,6 +1757,20 @@ var postAdminSchedulingEvents = (options) => (options.client ?? client).post({
|
|
|
1714
1757
|
...options.headers
|
|
1715
1758
|
}
|
|
1716
1759
|
});
|
|
1760
|
+
var getAdminClinicalPracticeResources = (options) => (options.client ?? client).get({
|
|
1761
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1762
|
+
url: "/admin/clinical/practice-resources",
|
|
1763
|
+
...options
|
|
1764
|
+
});
|
|
1765
|
+
var postAdminClinicalPracticeResources = (options) => (options.client ?? client).post({
|
|
1766
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1767
|
+
url: "/admin/clinical/practice-resources",
|
|
1768
|
+
...options,
|
|
1769
|
+
headers: {
|
|
1770
|
+
"Content-Type": "application/vnd.api+json",
|
|
1771
|
+
...options.headers
|
|
1772
|
+
}
|
|
1773
|
+
});
|
|
1717
1774
|
var getAdminLlmAnalyticsSummary = (options) => (options.client ?? client).get({
|
|
1718
1775
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1719
1776
|
url: "/admin/llm-analytics/summary",
|
|
@@ -1733,6 +1790,20 @@ var postAdminTenantsPersonal = (options) => (options.client ?? client).post({
|
|
|
1733
1790
|
...options.headers
|
|
1734
1791
|
}
|
|
1735
1792
|
});
|
|
1793
|
+
var getAdminClinicalClientGoals = (options) => (options.client ?? client).get({
|
|
1794
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1795
|
+
url: "/admin/clinical/client-goals",
|
|
1796
|
+
...options
|
|
1797
|
+
});
|
|
1798
|
+
var postAdminClinicalClientGoals = (options) => (options.client ?? client).post({
|
|
1799
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1800
|
+
url: "/admin/clinical/client-goals",
|
|
1801
|
+
...options,
|
|
1802
|
+
headers: {
|
|
1803
|
+
"Content-Type": "application/vnd.api+json",
|
|
1804
|
+
...options.headers
|
|
1805
|
+
}
|
|
1806
|
+
});
|
|
1736
1807
|
var patchAdminTenantsByIdAutoTopUp = (options) => (options.client ?? client).patch({
|
|
1737
1808
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1738
1809
|
url: "/admin/tenants/{id}/auto-top-up",
|
|
@@ -1761,6 +1832,25 @@ var patchAdminTenantsByIdConvertToOrg = (options) => (options.client ?? client).
|
|
|
1761
1832
|
...options.headers
|
|
1762
1833
|
}
|
|
1763
1834
|
});
|
|
1835
|
+
var deleteAdminClinicalHealthMetricsById = (options) => (options.client ?? client).delete({
|
|
1836
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1837
|
+
url: "/admin/clinical/health-metrics/{id}",
|
|
1838
|
+
...options
|
|
1839
|
+
});
|
|
1840
|
+
var getAdminClinicalHealthMetricsById = (options) => (options.client ?? client).get({
|
|
1841
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1842
|
+
url: "/admin/clinical/health-metrics/{id}",
|
|
1843
|
+
...options
|
|
1844
|
+
});
|
|
1845
|
+
var patchAdminClinicalHealthMetricsById = (options) => (options.client ?? client).patch({
|
|
1846
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1847
|
+
url: "/admin/clinical/health-metrics/{id}",
|
|
1848
|
+
...options,
|
|
1849
|
+
headers: {
|
|
1850
|
+
"Content-Type": "application/vnd.api+json",
|
|
1851
|
+
...options.headers
|
|
1852
|
+
}
|
|
1853
|
+
});
|
|
1764
1854
|
var getAdminFeatureUsagesById = (options) => (options.client ?? client).get({
|
|
1765
1855
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1766
1856
|
url: "/admin/feature-usages/{id}",
|
|
@@ -2182,6 +2272,20 @@ var patchAdminStorageFilesByIdConfirmUpload = (options) => (options.client ?? cl
|
|
|
2182
2272
|
...options.headers
|
|
2183
2273
|
}
|
|
2184
2274
|
});
|
|
2275
|
+
var getAdminClinicalGoalTemplatesCatalog = (options) => (options.client ?? client).get({
|
|
2276
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2277
|
+
url: "/admin/clinical/goal-templates/catalog",
|
|
2278
|
+
...options
|
|
2279
|
+
});
|
|
2280
|
+
var postAdminClinicalGoalTemplatesCatalog = (options) => (options.client ?? client).post({
|
|
2281
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2282
|
+
url: "/admin/clinical/goal-templates/catalog",
|
|
2283
|
+
...options,
|
|
2284
|
+
headers: {
|
|
2285
|
+
"Content-Type": "application/vnd.api+json",
|
|
2286
|
+
...options.headers
|
|
2287
|
+
}
|
|
2288
|
+
});
|
|
2185
2289
|
var getAdminSchedulingEventsById = (options) => (options.client ?? client).get({
|
|
2186
2290
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2187
2291
|
url: "/admin/scheduling/events/{id}",
|
|
@@ -2219,6 +2323,25 @@ var postAdminLlmAnalytics = (options) => (options.client ?? client).post({
|
|
|
2219
2323
|
...options.headers
|
|
2220
2324
|
}
|
|
2221
2325
|
});
|
|
2326
|
+
var deleteAdminClinicalPracticeToolsCatalogById = (options) => (options.client ?? client).delete({
|
|
2327
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2328
|
+
url: "/admin/clinical/practice-tools/catalog/{id}",
|
|
2329
|
+
...options
|
|
2330
|
+
});
|
|
2331
|
+
var getAdminClinicalPracticeToolsCatalogById = (options) => (options.client ?? client).get({
|
|
2332
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2333
|
+
url: "/admin/clinical/practice-tools/catalog/{id}",
|
|
2334
|
+
...options
|
|
2335
|
+
});
|
|
2336
|
+
var patchAdminClinicalPracticeToolsCatalogById = (options) => (options.client ?? client).patch({
|
|
2337
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2338
|
+
url: "/admin/clinical/practice-tools/catalog/{id}",
|
|
2339
|
+
...options,
|
|
2340
|
+
headers: {
|
|
2341
|
+
"Content-Type": "application/vnd.api+json",
|
|
2342
|
+
...options.headers
|
|
2343
|
+
}
|
|
2344
|
+
});
|
|
2222
2345
|
var getAdminSchedulingEventsByParticipant = (options) => (options.client ?? client).get({
|
|
2223
2346
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2224
2347
|
url: "/admin/scheduling/events/by_participant",
|
|
@@ -2243,6 +2366,25 @@ var getAdminThreadsSearch = (options) => (options.client ?? client).get({
|
|
|
2243
2366
|
url: "/admin/threads/search",
|
|
2244
2367
|
...options
|
|
2245
2368
|
});
|
|
2369
|
+
var deleteAdminClinicalPracticeResourcesById = (options) => (options.client ?? client).delete({
|
|
2370
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2371
|
+
url: "/admin/clinical/practice-resources/{id}",
|
|
2372
|
+
...options
|
|
2373
|
+
});
|
|
2374
|
+
var getAdminClinicalPracticeResourcesById = (options) => (options.client ?? client).get({
|
|
2375
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2376
|
+
url: "/admin/clinical/practice-resources/{id}",
|
|
2377
|
+
...options
|
|
2378
|
+
});
|
|
2379
|
+
var patchAdminClinicalPracticeResourcesById = (options) => (options.client ?? client).patch({
|
|
2380
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2381
|
+
url: "/admin/clinical/practice-resources/{id}",
|
|
2382
|
+
...options,
|
|
2383
|
+
headers: {
|
|
2384
|
+
"Content-Type": "application/vnd.api+json",
|
|
2385
|
+
...options.headers
|
|
2386
|
+
}
|
|
2387
|
+
});
|
|
2246
2388
|
var getAdminAgentsByIdTrainingExamples = (options) => (options.client ?? client).get({
|
|
2247
2389
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2248
2390
|
url: "/admin/agents/{id}/training-examples",
|
|
@@ -2287,6 +2429,20 @@ var getAdminWebhookDeliveriesById = (options) => (options.client ?? client).get(
|
|
|
2287
2429
|
url: "/admin/webhook-deliveries/{id}",
|
|
2288
2430
|
...options
|
|
2289
2431
|
});
|
|
2432
|
+
var getAdminClinicalGoalTemplates = (options) => (options.client ?? client).get({
|
|
2433
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2434
|
+
url: "/admin/clinical/goal-templates",
|
|
2435
|
+
...options
|
|
2436
|
+
});
|
|
2437
|
+
var postAdminClinicalGoalTemplates = (options) => (options.client ?? client).post({
|
|
2438
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2439
|
+
url: "/admin/clinical/goal-templates",
|
|
2440
|
+
...options,
|
|
2441
|
+
headers: {
|
|
2442
|
+
"Content-Type": "application/vnd.api+json",
|
|
2443
|
+
...options.headers
|
|
2444
|
+
}
|
|
2445
|
+
});
|
|
2290
2446
|
var patchAdminThreadsByIdUnarchive = (options) => (options.client ?? client).patch({
|
|
2291
2447
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2292
2448
|
url: "/admin/threads/{id}/unarchive",
|
|
@@ -2423,6 +2579,20 @@ var patchAdminStorageFilesByIdUpdateMetadata = (options) => (options.client ?? c
|
|
|
2423
2579
|
...options.headers
|
|
2424
2580
|
}
|
|
2425
2581
|
});
|
|
2582
|
+
var getAdminClinicalDeliveries = (options) => (options.client ?? client).get({
|
|
2583
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2584
|
+
url: "/admin/clinical/deliveries",
|
|
2585
|
+
...options
|
|
2586
|
+
});
|
|
2587
|
+
var postAdminClinicalDeliveries = (options) => (options.client ?? client).post({
|
|
2588
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2589
|
+
url: "/admin/clinical/deliveries",
|
|
2590
|
+
...options,
|
|
2591
|
+
headers: {
|
|
2592
|
+
"Content-Type": "application/vnd.api+json",
|
|
2593
|
+
...options.headers
|
|
2594
|
+
}
|
|
2595
|
+
});
|
|
2426
2596
|
var getAdminThreadsByIdMessages = (options) => (options.client ?? client).get({
|
|
2427
2597
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2428
2598
|
url: "/admin/threads/{id}/messages",
|
|
@@ -2789,6 +2959,25 @@ var postAdminConnectorsOauthAppConfigs = (options) => (options.client ?? client)
|
|
|
2789
2959
|
...options.headers
|
|
2790
2960
|
}
|
|
2791
2961
|
});
|
|
2962
|
+
var deleteAdminClinicalSessionsById = (options) => (options.client ?? client).delete({
|
|
2963
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2964
|
+
url: "/admin/clinical/sessions/{id}",
|
|
2965
|
+
...options
|
|
2966
|
+
});
|
|
2967
|
+
var getAdminClinicalSessionsById = (options) => (options.client ?? client).get({
|
|
2968
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2969
|
+
url: "/admin/clinical/sessions/{id}",
|
|
2970
|
+
...options
|
|
2971
|
+
});
|
|
2972
|
+
var patchAdminClinicalSessionsById = (options) => (options.client ?? client).patch({
|
|
2973
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2974
|
+
url: "/admin/clinical/sessions/{id}",
|
|
2975
|
+
...options,
|
|
2976
|
+
headers: {
|
|
2977
|
+
"Content-Type": "application/vnd.api+json",
|
|
2978
|
+
...options.headers
|
|
2979
|
+
}
|
|
2980
|
+
});
|
|
2792
2981
|
var deleteAdminPlatformTonesById = (options) => (options.client ?? client).delete({
|
|
2793
2982
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2794
2983
|
url: "/admin/platform-tones/{id}",
|
|
@@ -2888,6 +3077,11 @@ var postAdminExtractionDocumentsBeginUpload = (options) => (options.client ?? cl
|
|
|
2888
3077
|
...options.headers
|
|
2889
3078
|
}
|
|
2890
3079
|
});
|
|
3080
|
+
var getAdminClinicalSessionsByIdSessionNotes = (options) => (options.client ?? client).get({
|
|
3081
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3082
|
+
url: "/admin/clinical/sessions/{id}/session_notes",
|
|
3083
|
+
...options
|
|
3084
|
+
});
|
|
2891
3085
|
var postAdminConnectorsOauthInitiate = (options) => (options.client ?? client).post({
|
|
2892
3086
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2893
3087
|
url: "/admin/connectors/oauth/initiate",
|
|
@@ -2967,6 +3161,11 @@ var postAdminTrainingExamplesSearch = (options) => (options.client ?? client).po
|
|
|
2967
3161
|
...options.headers
|
|
2968
3162
|
}
|
|
2969
3163
|
});
|
|
3164
|
+
var getAdminClinicalMealPlansByWorkspace = (options) => (options.client ?? client).get({
|
|
3165
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3166
|
+
url: "/admin/clinical/meal-plans/by-workspace",
|
|
3167
|
+
...options
|
|
3168
|
+
});
|
|
2970
3169
|
var patchAdminAccountsByIdDebit = (options) => (options.client ?? client).patch({
|
|
2971
3170
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2972
3171
|
url: "/admin/accounts/{id}/debit",
|
|
@@ -2976,6 +3175,20 @@ var patchAdminAccountsByIdDebit = (options) => (options.client ?? client).patch(
|
|
|
2976
3175
|
...options.headers
|
|
2977
3176
|
}
|
|
2978
3177
|
});
|
|
3178
|
+
var getAdminClinicalPracticeResourcesCatalog = (options) => (options.client ?? client).get({
|
|
3179
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3180
|
+
url: "/admin/clinical/practice-resources/catalog",
|
|
3181
|
+
...options
|
|
3182
|
+
});
|
|
3183
|
+
var postAdminClinicalPracticeResourcesCatalog = (options) => (options.client ?? client).post({
|
|
3184
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3185
|
+
url: "/admin/clinical/practice-resources/catalog",
|
|
3186
|
+
...options,
|
|
3187
|
+
headers: {
|
|
3188
|
+
"Content-Type": "application/vnd.api+json",
|
|
3189
|
+
...options.headers
|
|
3190
|
+
}
|
|
3191
|
+
});
|
|
2979
3192
|
var getAdminVoiceTranscriptionResultsById = (options) => (options.client ?? client).get({
|
|
2980
3193
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2981
3194
|
url: "/admin/voice/transcription-results/{id}",
|
|
@@ -2995,6 +3208,11 @@ var postAdminPricingStrategies = (options) => (options.client ?? client).post({
|
|
|
2995
3208
|
...options.headers
|
|
2996
3209
|
}
|
|
2997
3210
|
});
|
|
3211
|
+
var getAdminClinicalGoalTemplatesCategories = (options) => (options.client ?? client).get({
|
|
3212
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3213
|
+
url: "/admin/clinical/goal-templates/categories",
|
|
3214
|
+
...options
|
|
3215
|
+
});
|
|
2998
3216
|
var getAdminExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
|
|
2999
3217
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3000
3218
|
url: "/admin/extraction/documents/{id}/view",
|
|
@@ -3124,6 +3342,11 @@ var getAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashed = (options) => (opt
|
|
|
3124
3342
|
url: "/admin/extraction/documents/workspace/{workspace_id}/trashed",
|
|
3125
3343
|
...options
|
|
3126
3344
|
});
|
|
3345
|
+
var getAdminClinicalGoalTemplatesCategoriesCatalog = (options) => (options.client ?? client).get({
|
|
3346
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3347
|
+
url: "/admin/clinical/goal-templates/categories/catalog",
|
|
3348
|
+
...options
|
|
3349
|
+
});
|
|
3127
3350
|
var patchAdminBrandIdentitiesByIdSetDefault = (options) => (options.client ?? client).patch({
|
|
3128
3351
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3129
3352
|
url: "/admin/brand-identities/{id}/set-default",
|
|
@@ -3217,6 +3440,20 @@ var getAdminCrmContactsWorkspaceByWorkspaceIdArchived = (options) => (options.cl
|
|
|
3217
3440
|
url: "/admin/crm/contacts/workspace/{workspace_id}/archived",
|
|
3218
3441
|
...options
|
|
3219
3442
|
});
|
|
3443
|
+
var getAdminClinicalPracticeTools = (options) => (options.client ?? client).get({
|
|
3444
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3445
|
+
url: "/admin/clinical/practice-tools",
|
|
3446
|
+
...options
|
|
3447
|
+
});
|
|
3448
|
+
var postAdminClinicalPracticeTools = (options) => (options.client ?? client).post({
|
|
3449
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3450
|
+
url: "/admin/clinical/practice-tools",
|
|
3451
|
+
...options,
|
|
3452
|
+
headers: {
|
|
3453
|
+
"Content-Type": "application/vnd.api+json",
|
|
3454
|
+
...options.headers
|
|
3455
|
+
}
|
|
3456
|
+
});
|
|
3220
3457
|
var patchAdminSocialPostsByIdRetry = (options) => (options.client ?? client).patch({
|
|
3221
3458
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3222
3459
|
url: "/admin/social/posts/{id}/retry",
|
|
@@ -3226,6 +3463,11 @@ var patchAdminSocialPostsByIdRetry = (options) => (options.client ?? client).pat
|
|
|
3226
3463
|
...options.headers
|
|
3227
3464
|
}
|
|
3228
3465
|
});
|
|
3466
|
+
var getAdminClinicalSupplementRecCache = (options) => (options.client ?? client).get({
|
|
3467
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3468
|
+
url: "/admin/clinical/supplement-rec-cache",
|
|
3469
|
+
...options
|
|
3470
|
+
});
|
|
3229
3471
|
var getAdminEmailMarketingCampaignsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3230
3472
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3231
3473
|
url: "/admin/email-marketing/campaigns/workspace/{workspace_id}",
|
|
@@ -3316,6 +3558,11 @@ var patchAdminTenantsByIdTransferOwnership = (options) => (options.client ?? cli
|
|
|
3316
3558
|
...options.headers
|
|
3317
3559
|
}
|
|
3318
3560
|
});
|
|
3561
|
+
var getAdminClinicalNotesByNoteIdVersionsById = (options) => (options.client ?? client).get({
|
|
3562
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3563
|
+
url: "/admin/clinical/notes/{note_id}/versions/{id}",
|
|
3564
|
+
...options
|
|
3565
|
+
});
|
|
3319
3566
|
var patchAdminWalletPlan = (options) => (options.client ?? client).patch({
|
|
3320
3567
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3321
3568
|
url: "/admin/wallet/plan",
|
|
@@ -3377,6 +3624,11 @@ var getAdminEmailTrackingEventsById = (options) => (options.client ?? client).ge
|
|
|
3377
3624
|
url: "/admin/email/tracking-events/{id}",
|
|
3378
3625
|
...options
|
|
3379
3626
|
});
|
|
3627
|
+
var getAdminClinicalPatientsByIdResourceAssignments = (options) => (options.client ?? client).get({
|
|
3628
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3629
|
+
url: "/admin/clinical/patients/{id}/resource_assignments",
|
|
3630
|
+
...options
|
|
3631
|
+
});
|
|
3380
3632
|
var deleteAdminEmailMarketingSenderProfilesById = (options) => (options.client ?? client).delete({
|
|
3381
3633
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3382
3634
|
url: "/admin/email-marketing/sender-profiles/{id}",
|
|
@@ -3567,6 +3819,11 @@ var getAdminSocialMetricsPostBySocialPostIdLatest = (options) => (options.client
|
|
|
3567
3819
|
url: "/admin/social/metrics/post/{social_post_id}/latest",
|
|
3568
3820
|
...options
|
|
3569
3821
|
});
|
|
3822
|
+
var getAdminClinicalSessionsByIdMealPlans = (options) => (options.client ?? client).get({
|
|
3823
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3824
|
+
url: "/admin/clinical/sessions/{id}/meal_plans",
|
|
3825
|
+
...options
|
|
3826
|
+
});
|
|
3570
3827
|
var getAdminCrmSyncConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3571
3828
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3572
3829
|
url: "/admin/crm/sync-configs/workspace/{workspace_id}",
|
|
@@ -3632,6 +3889,11 @@ var patchAdminSocialPostsByIdSeo = (options) => (options.client ?? client).patch
|
|
|
3632
3889
|
...options.headers
|
|
3633
3890
|
}
|
|
3634
3891
|
});
|
|
3892
|
+
var getAdminClinicalDeliveriesBySession = (options) => (options.client ?? client).get({
|
|
3893
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3894
|
+
url: "/admin/clinical/deliveries/by-session",
|
|
3895
|
+
...options
|
|
3896
|
+
});
|
|
3635
3897
|
var postAdminExtractionDocumentsBulkReprocess = (options) => (options.client ?? client).post({
|
|
3636
3898
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3637
3899
|
url: "/admin/extraction/documents/bulk-reprocess",
|
|
@@ -3641,6 +3903,11 @@ var postAdminExtractionDocumentsBulkReprocess = (options) => (options.client ??
|
|
|
3641
3903
|
...options.headers
|
|
3642
3904
|
}
|
|
3643
3905
|
});
|
|
3906
|
+
var getAdminClinicalPatientsByIdHealthMetrics = (options) => (options.client ?? client).get({
|
|
3907
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3908
|
+
url: "/admin/clinical/patients/{id}/health_metrics",
|
|
3909
|
+
...options
|
|
3910
|
+
});
|
|
3644
3911
|
var getAdminEmailOutboundEmailsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3645
3912
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3646
3913
|
url: "/admin/email/outbound-emails/workspace/{workspace_id}",
|
|
@@ -3651,6 +3918,25 @@ var getAdminBucketsByIdStats = (options) => (options.client ?? client).get({
|
|
|
3651
3918
|
url: "/admin/buckets/{id}/stats",
|
|
3652
3919
|
...options
|
|
3653
3920
|
});
|
|
3921
|
+
var deleteAdminClinicalClientResourceAssignmentsById = (options) => (options.client ?? client).delete({
|
|
3922
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3923
|
+
url: "/admin/clinical/client-resource-assignments/{id}",
|
|
3924
|
+
...options
|
|
3925
|
+
});
|
|
3926
|
+
var getAdminClinicalClientResourceAssignmentsById = (options) => (options.client ?? client).get({
|
|
3927
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3928
|
+
url: "/admin/clinical/client-resource-assignments/{id}",
|
|
3929
|
+
...options
|
|
3930
|
+
});
|
|
3931
|
+
var patchAdminClinicalClientResourceAssignmentsById = (options) => (options.client ?? client).patch({
|
|
3932
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3933
|
+
url: "/admin/clinical/client-resource-assignments/{id}",
|
|
3934
|
+
...options,
|
|
3935
|
+
headers: {
|
|
3936
|
+
"Content-Type": "application/vnd.api+json",
|
|
3937
|
+
...options.headers
|
|
3938
|
+
}
|
|
3939
|
+
});
|
|
3654
3940
|
var getAdminUsersByEmail = (options) => (options.client ?? client).get({
|
|
3655
3941
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3656
3942
|
url: "/admin/users/by-email",
|
|
@@ -3768,6 +4054,20 @@ var patchAdminAgentDeploymentsById = (options) => (options.client ?? client).pat
|
|
|
3768
4054
|
...options.headers
|
|
3769
4055
|
}
|
|
3770
4056
|
});
|
|
4057
|
+
var getAdminClinicalSupplementRecCacheById = (options) => (options.client ?? client).get({
|
|
4058
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4059
|
+
url: "/admin/clinical/supplement-rec-cache/{id}",
|
|
4060
|
+
...options
|
|
4061
|
+
});
|
|
4062
|
+
var patchAdminClinicalSupplementRecCacheById = (options) => (options.client ?? client).patch({
|
|
4063
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4064
|
+
url: "/admin/clinical/supplement-rec-cache/{id}",
|
|
4065
|
+
...options,
|
|
4066
|
+
headers: {
|
|
4067
|
+
"Content-Type": "application/vnd.api+json",
|
|
4068
|
+
...options.headers
|
|
4069
|
+
}
|
|
4070
|
+
});
|
|
3771
4071
|
var getAdminCrawlerSiteConfigs = (options) => (options.client ?? client).get({
|
|
3772
4072
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3773
4073
|
url: "/admin/crawler/site-configs",
|
|
@@ -4150,11 +4450,39 @@ var patchAdminCrmContactsByIdArchive = (options) => (options.client ?? client).p
|
|
|
4150
4450
|
...options.headers
|
|
4151
4451
|
}
|
|
4152
4452
|
});
|
|
4453
|
+
var deleteAdminClinicalGoalTemplatesById = (options) => (options.client ?? client).delete({
|
|
4454
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4455
|
+
url: "/admin/clinical/goal-templates/{id}",
|
|
4456
|
+
...options
|
|
4457
|
+
});
|
|
4458
|
+
var getAdminClinicalGoalTemplatesById = (options) => (options.client ?? client).get({
|
|
4459
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4460
|
+
url: "/admin/clinical/goal-templates/{id}",
|
|
4461
|
+
...options
|
|
4462
|
+
});
|
|
4463
|
+
var patchAdminClinicalGoalTemplatesById = (options) => (options.client ?? client).patch({
|
|
4464
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4465
|
+
url: "/admin/clinical/goal-templates/{id}",
|
|
4466
|
+
...options,
|
|
4467
|
+
headers: {
|
|
4468
|
+
"Content-Type": "application/vnd.api+json",
|
|
4469
|
+
...options.headers
|
|
4470
|
+
}
|
|
4471
|
+
});
|
|
4153
4472
|
var getAdminTenantsByTenantIdWorkspaceStats = (options) => (options.client ?? client).get({
|
|
4154
4473
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4155
4474
|
url: "/admin/tenants/{tenant_id}/workspace_stats",
|
|
4156
4475
|
...options
|
|
4157
4476
|
});
|
|
4477
|
+
var patchAdminClinicalNotesByIdApprove = (options) => (options.client ?? client).patch({
|
|
4478
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4479
|
+
url: "/admin/clinical/notes/{id}/approve",
|
|
4480
|
+
...options,
|
|
4481
|
+
headers: {
|
|
4482
|
+
"Content-Type": "application/vnd.api+json",
|
|
4483
|
+
...options.headers
|
|
4484
|
+
}
|
|
4485
|
+
});
|
|
4158
4486
|
var postAdminAgentsByIdTest = (options) => (options.client ?? client).post({
|
|
4159
4487
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4160
4488
|
url: "/admin/agents/{id}/test",
|
|
@@ -4178,6 +4506,11 @@ var patchAdminSchedulingLocationsById = (options) => (options.client ?? client).
|
|
|
4178
4506
|
...options.headers
|
|
4179
4507
|
}
|
|
4180
4508
|
});
|
|
4509
|
+
var getAdminClinicalNotesByNoteIdVersions = (options) => (options.client ?? client).get({
|
|
4510
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4511
|
+
url: "/admin/clinical/notes/{note_id}/versions",
|
|
4512
|
+
...options
|
|
4513
|
+
});
|
|
4181
4514
|
var postAdminCrmExports = (options) => (options.client ?? client).post({
|
|
4182
4515
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4183
4516
|
url: "/admin/crm/exports",
|
|
@@ -4256,6 +4589,25 @@ var getAdminExtractionChunkEntityLinksDocumentByDocumentId = (options) => (optio
|
|
|
4256
4589
|
url: "/admin/extraction/chunk-entity-links/document/{document_id}",
|
|
4257
4590
|
...options
|
|
4258
4591
|
});
|
|
4592
|
+
var deleteAdminClinicalClientSupplementsById = (options) => (options.client ?? client).delete({
|
|
4593
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4594
|
+
url: "/admin/clinical/client-supplements/{id}",
|
|
4595
|
+
...options
|
|
4596
|
+
});
|
|
4597
|
+
var getAdminClinicalClientSupplementsById = (options) => (options.client ?? client).get({
|
|
4598
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4599
|
+
url: "/admin/clinical/client-supplements/{id}",
|
|
4600
|
+
...options
|
|
4601
|
+
});
|
|
4602
|
+
var patchAdminClinicalClientSupplementsById = (options) => (options.client ?? client).patch({
|
|
4603
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4604
|
+
url: "/admin/clinical/client-supplements/{id}",
|
|
4605
|
+
...options,
|
|
4606
|
+
headers: {
|
|
4607
|
+
"Content-Type": "application/vnd.api+json",
|
|
4608
|
+
...options.headers
|
|
4609
|
+
}
|
|
4610
|
+
});
|
|
4259
4611
|
var postAdminCrmPipelines = (options) => (options.client ?? client).post({
|
|
4260
4612
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4261
4613
|
url: "/admin/crm/pipelines",
|
|
@@ -4303,6 +4655,15 @@ var postAdminCrmRelationshipTypes = (options) => (options.client ?? client).post
|
|
|
4303
4655
|
...options.headers
|
|
4304
4656
|
}
|
|
4305
4657
|
});
|
|
4658
|
+
var postAdminClinicalGoalTemplatesFromExisting = (options) => (options.client ?? client).post({
|
|
4659
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4660
|
+
url: "/admin/clinical/goal-templates/from-existing",
|
|
4661
|
+
...options,
|
|
4662
|
+
headers: {
|
|
4663
|
+
"Content-Type": "application/vnd.api+json",
|
|
4664
|
+
...options.headers
|
|
4665
|
+
}
|
|
4666
|
+
});
|
|
4306
4667
|
var getAdminThreadsStats = (options) => (options.client ?? client).get({
|
|
4307
4668
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4308
4669
|
url: "/admin/threads/stats",
|
|
@@ -4383,21 +4744,40 @@ var getAdminLlmAnalyticsById = (options) => (options.client ?? client).get({
|
|
|
4383
4744
|
url: "/admin/llm-analytics/{id}",
|
|
4384
4745
|
...options
|
|
4385
4746
|
});
|
|
4386
|
-
var
|
|
4747
|
+
var deleteAdminClinicalGoalTemplatesCatalogById = (options) => (options.client ?? client).delete({
|
|
4387
4748
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4388
|
-
url: "/admin/
|
|
4749
|
+
url: "/admin/clinical/goal-templates/catalog/{id}",
|
|
4389
4750
|
...options
|
|
4390
4751
|
});
|
|
4391
|
-
var
|
|
4752
|
+
var getAdminClinicalGoalTemplatesCatalogById = (options) => (options.client ?? client).get({
|
|
4392
4753
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4393
|
-
url: "/admin/
|
|
4754
|
+
url: "/admin/clinical/goal-templates/catalog/{id}",
|
|
4755
|
+
...options
|
|
4756
|
+
});
|
|
4757
|
+
var patchAdminClinicalGoalTemplatesCatalogById = (options) => (options.client ?? client).patch({
|
|
4758
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4759
|
+
url: "/admin/clinical/goal-templates/catalog/{id}",
|
|
4394
4760
|
...options,
|
|
4395
4761
|
headers: {
|
|
4396
4762
|
"Content-Type": "application/vnd.api+json",
|
|
4397
4763
|
...options.headers
|
|
4398
4764
|
}
|
|
4399
4765
|
});
|
|
4400
|
-
var
|
|
4766
|
+
var getAdminSocialPostsCampaignBySocialCampaignId = (options) => (options.client ?? client).get({
|
|
4767
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4768
|
+
url: "/admin/social/posts/campaign/{social_campaign_id}",
|
|
4769
|
+
...options
|
|
4770
|
+
});
|
|
4771
|
+
var postAdminAgentVersionsByIdRemoveSystemField = (options) => (options.client ?? client).post({
|
|
4772
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4773
|
+
url: "/admin/agent-versions/{id}/remove-system-field",
|
|
4774
|
+
...options,
|
|
4775
|
+
headers: {
|
|
4776
|
+
"Content-Type": "application/vnd.api+json",
|
|
4777
|
+
...options.headers
|
|
4778
|
+
}
|
|
4779
|
+
});
|
|
4780
|
+
var postAdminCrmFieldDefinitions = (options) => (options.client ?? client).post({
|
|
4401
4781
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4402
4782
|
url: "/admin/crm/field-definitions",
|
|
4403
4783
|
...options,
|
|
@@ -4449,6 +4829,25 @@ var getAdminSchedulingRemindersById = (options) => (options.client ?? client).ge
|
|
|
4449
4829
|
url: "/admin/scheduling/reminders/{id}",
|
|
4450
4830
|
...options
|
|
4451
4831
|
});
|
|
4832
|
+
var deleteAdminClinicalPatientsById = (options) => (options.client ?? client).delete({
|
|
4833
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4834
|
+
url: "/admin/clinical/patients/{id}",
|
|
4835
|
+
...options
|
|
4836
|
+
});
|
|
4837
|
+
var getAdminClinicalPatientsById = (options) => (options.client ?? client).get({
|
|
4838
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4839
|
+
url: "/admin/clinical/patients/{id}",
|
|
4840
|
+
...options
|
|
4841
|
+
});
|
|
4842
|
+
var patchAdminClinicalPatientsById = (options) => (options.client ?? client).patch({
|
|
4843
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4844
|
+
url: "/admin/clinical/patients/{id}",
|
|
4845
|
+
...options,
|
|
4846
|
+
headers: {
|
|
4847
|
+
"Content-Type": "application/vnd.api+json",
|
|
4848
|
+
...options.headers
|
|
4849
|
+
}
|
|
4850
|
+
});
|
|
4452
4851
|
var getAdminPlanFeatureAllocations = (options) => (options.client ?? client).get({
|
|
4453
4852
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4454
4853
|
url: "/admin/plan-feature-allocations",
|
|
@@ -4546,6 +4945,34 @@ var postAdminWholesaleAgreements = (options) => (options.client ?? client).post(
|
|
|
4546
4945
|
...options.headers
|
|
4547
4946
|
}
|
|
4548
4947
|
});
|
|
4948
|
+
var deleteAdminClinicalClientGoalsById = (options) => (options.client ?? client).delete({
|
|
4949
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4950
|
+
url: "/admin/clinical/client-goals/{id}",
|
|
4951
|
+
...options
|
|
4952
|
+
});
|
|
4953
|
+
var getAdminClinicalClientGoalsById = (options) => (options.client ?? client).get({
|
|
4954
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4955
|
+
url: "/admin/clinical/client-goals/{id}",
|
|
4956
|
+
...options
|
|
4957
|
+
});
|
|
4958
|
+
var patchAdminClinicalClientGoalsById = (options) => (options.client ?? client).patch({
|
|
4959
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4960
|
+
url: "/admin/clinical/client-goals/{id}",
|
|
4961
|
+
...options,
|
|
4962
|
+
headers: {
|
|
4963
|
+
"Content-Type": "application/vnd.api+json",
|
|
4964
|
+
...options.headers
|
|
4965
|
+
}
|
|
4966
|
+
});
|
|
4967
|
+
var postAdminClinicalClientGoalsFromTemplate = (options) => (options.client ?? client).post({
|
|
4968
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4969
|
+
url: "/admin/clinical/client-goals/from-template",
|
|
4970
|
+
...options,
|
|
4971
|
+
headers: {
|
|
4972
|
+
"Content-Type": "application/vnd.api+json",
|
|
4973
|
+
...options.headers
|
|
4974
|
+
}
|
|
4975
|
+
});
|
|
4549
4976
|
var deleteAdminSocialTrendingHistoryById = (options) => (options.client ?? client).delete({
|
|
4550
4977
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4551
4978
|
url: "/admin/social/trending/history/{id}",
|
|
@@ -4658,6 +5085,44 @@ var patchAdminApiKeysByIdRevoke = (options) => (options.client ?? client).patch(
|
|
|
4658
5085
|
...options.headers
|
|
4659
5086
|
}
|
|
4660
5087
|
});
|
|
5088
|
+
var deleteAdminClinicalPracticeResourcesCatalogById = (options) => (options.client ?? client).delete({
|
|
5089
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5090
|
+
url: "/admin/clinical/practice-resources/catalog/{id}",
|
|
5091
|
+
...options
|
|
5092
|
+
});
|
|
5093
|
+
var getAdminClinicalPracticeResourcesCatalogById = (options) => (options.client ?? client).get({
|
|
5094
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5095
|
+
url: "/admin/clinical/practice-resources/catalog/{id}",
|
|
5096
|
+
...options
|
|
5097
|
+
});
|
|
5098
|
+
var patchAdminClinicalPracticeResourcesCatalogById = (options) => (options.client ?? client).patch({
|
|
5099
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5100
|
+
url: "/admin/clinical/practice-resources/catalog/{id}",
|
|
5101
|
+
...options,
|
|
5102
|
+
headers: {
|
|
5103
|
+
"Content-Type": "application/vnd.api+json",
|
|
5104
|
+
...options.headers
|
|
5105
|
+
}
|
|
5106
|
+
});
|
|
5107
|
+
var getAdminClinicalNotes = (options) => (options.client ?? client).get({
|
|
5108
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5109
|
+
url: "/admin/clinical/notes",
|
|
5110
|
+
...options
|
|
5111
|
+
});
|
|
5112
|
+
var postAdminClinicalNotes = (options) => (options.client ?? client).post({
|
|
5113
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5114
|
+
url: "/admin/clinical/notes",
|
|
5115
|
+
...options,
|
|
5116
|
+
headers: {
|
|
5117
|
+
"Content-Type": "application/vnd.api+json",
|
|
5118
|
+
...options.headers
|
|
5119
|
+
}
|
|
5120
|
+
});
|
|
5121
|
+
var getAdminClinicalPatientsByIdGoals = (options) => (options.client ?? client).get({
|
|
5122
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5123
|
+
url: "/admin/clinical/patients/{id}/goals",
|
|
5124
|
+
...options
|
|
5125
|
+
});
|
|
4661
5126
|
var getAdminSysAiConfig = (options) => (options.client ?? client).get({
|
|
4662
5127
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4663
5128
|
url: "/admin/sys/ai-config",
|
|
@@ -4691,6 +5156,20 @@ var getAdminSupportRoutingRulesApplicationByApplicationId = (options) => (option
|
|
|
4691
5156
|
url: "/admin/support/routing-rules/application/{application_id}",
|
|
4692
5157
|
...options
|
|
4693
5158
|
});
|
|
5159
|
+
var getAdminClinicalPracticeToolsCatalog = (options) => (options.client ?? client).get({
|
|
5160
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5161
|
+
url: "/admin/clinical/practice-tools/catalog",
|
|
5162
|
+
...options
|
|
5163
|
+
});
|
|
5164
|
+
var postAdminClinicalPracticeToolsCatalog = (options) => (options.client ?? client).post({
|
|
5165
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5166
|
+
url: "/admin/clinical/practice-tools/catalog",
|
|
5167
|
+
...options,
|
|
5168
|
+
headers: {
|
|
5169
|
+
"Content-Type": "application/vnd.api+json",
|
|
5170
|
+
...options.headers
|
|
5171
|
+
}
|
|
5172
|
+
});
|
|
4694
5173
|
var postAdminInvitationsAcceptByToken = (options) => (options.client ?? client).post({
|
|
4695
5174
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4696
5175
|
url: "/admin/invitations/accept-by-token",
|
|
@@ -4860,6 +5339,20 @@ var patchAdminApiKeysByIdRotate = (options) => (options.client ?? client).patch(
|
|
|
4860
5339
|
...options.headers
|
|
4861
5340
|
}
|
|
4862
5341
|
});
|
|
5342
|
+
var getAdminClinicalPatients = (options) => (options.client ?? client).get({
|
|
5343
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5344
|
+
url: "/admin/clinical/patients",
|
|
5345
|
+
...options
|
|
5346
|
+
});
|
|
5347
|
+
var postAdminClinicalPatients = (options) => (options.client ?? client).post({
|
|
5348
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5349
|
+
url: "/admin/clinical/patients",
|
|
5350
|
+
...options,
|
|
5351
|
+
headers: {
|
|
5352
|
+
"Content-Type": "application/vnd.api+json",
|
|
5353
|
+
...options.headers
|
|
5354
|
+
}
|
|
5355
|
+
});
|
|
4863
5356
|
var getAdminUsageEventsById = (options) => (options.client ?? client).get({
|
|
4864
5357
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4865
5358
|
url: "/admin/usage-events/{id}",
|
|
@@ -4936,6 +5429,20 @@ var postAdminIsvCrmEntityTypes = (options) => (options.client ?? client).post({
|
|
|
4936
5429
|
...options.headers
|
|
4937
5430
|
}
|
|
4938
5431
|
});
|
|
5432
|
+
var getAdminClinicalHealthMetrics = (options) => (options.client ?? client).get({
|
|
5433
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5434
|
+
url: "/admin/clinical/health-metrics",
|
|
5435
|
+
...options
|
|
5436
|
+
});
|
|
5437
|
+
var postAdminClinicalHealthMetrics = (options) => (options.client ?? client).post({
|
|
5438
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5439
|
+
url: "/admin/clinical/health-metrics",
|
|
5440
|
+
...options,
|
|
5441
|
+
headers: {
|
|
5442
|
+
"Content-Type": "application/vnd.api+json",
|
|
5443
|
+
...options.headers
|
|
5444
|
+
}
|
|
5445
|
+
});
|
|
4939
5446
|
var getAdminSupportQueueMembersQueueByQueueId = (options) => (options.client ?? client).get({
|
|
4940
5447
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4941
5448
|
url: "/admin/support/queue-members/queue/{queue_id}",
|
|
@@ -5013,6 +5520,11 @@ var getAdminStorageFiles = (options) => (options.client ?? client).get({
|
|
|
5013
5520
|
url: "/admin/storage-files",
|
|
5014
5521
|
...options
|
|
5015
5522
|
});
|
|
5523
|
+
var getAdminClinicalSessionsByPatient = (options) => (options.client ?? client).get({
|
|
5524
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5525
|
+
url: "/admin/clinical/sessions/by-patient",
|
|
5526
|
+
...options
|
|
5527
|
+
});
|
|
5016
5528
|
var getAdminApplicationsBySlugBySlug = (options) => (options.client ?? client).get({
|
|
5017
5529
|
security: [{ scheme: "bearer", type: "http" }],
|
|
5018
5530
|
url: "/admin/applications/by-slug/{slug}",
|
|
@@ -5261,6 +5773,20 @@ var getAdminStorageRecommendations = (options) => (options.client ?? client).get
|
|
|
5261
5773
|
url: "/admin/storage-recommendations",
|
|
5262
5774
|
...options
|
|
5263
5775
|
});
|
|
5776
|
+
var getAdminClinicalClientSupplements = (options) => (options.client ?? client).get({
|
|
5777
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5778
|
+
url: "/admin/clinical/client-supplements",
|
|
5779
|
+
...options
|
|
5780
|
+
});
|
|
5781
|
+
var postAdminClinicalClientSupplements = (options) => (options.client ?? client).post({
|
|
5782
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5783
|
+
url: "/admin/clinical/client-supplements",
|
|
5784
|
+
...options,
|
|
5785
|
+
headers: {
|
|
5786
|
+
"Content-Type": "application/vnd.api+json",
|
|
5787
|
+
...options.headers
|
|
5788
|
+
}
|
|
5789
|
+
});
|
|
5264
5790
|
var deleteAdminCrmDealsById = (options) => (options.client ?? client).delete({
|
|
5265
5791
|
security: [{ scheme: "bearer", type: "http" }],
|
|
5266
5792
|
url: "/admin/crm/deals/{id}",
|
|
@@ -5326,6 +5852,25 @@ var patchAdminSocialAccountsByIdDeactivate = (options) => (options.client ?? cli
|
|
|
5326
5852
|
...options.headers
|
|
5327
5853
|
}
|
|
5328
5854
|
});
|
|
5855
|
+
var deleteAdminClinicalMealPlansById = (options) => (options.client ?? client).delete({
|
|
5856
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5857
|
+
url: "/admin/clinical/meal-plans/{id}",
|
|
5858
|
+
...options
|
|
5859
|
+
});
|
|
5860
|
+
var getAdminClinicalMealPlansById = (options) => (options.client ?? client).get({
|
|
5861
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5862
|
+
url: "/admin/clinical/meal-plans/{id}",
|
|
5863
|
+
...options
|
|
5864
|
+
});
|
|
5865
|
+
var patchAdminClinicalMealPlansById = (options) => (options.client ?? client).patch({
|
|
5866
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5867
|
+
url: "/admin/clinical/meal-plans/{id}",
|
|
5868
|
+
...options,
|
|
5869
|
+
headers: {
|
|
5870
|
+
"Content-Type": "application/vnd.api+json",
|
|
5871
|
+
...options.headers
|
|
5872
|
+
}
|
|
5873
|
+
});
|
|
5329
5874
|
var postAdminCrmCompanies = (options) => (options.client ?? client).post({
|
|
5330
5875
|
security: [{ scheme: "bearer", type: "http" }],
|
|
5331
5876
|
url: "/admin/crm/companies",
|
|
@@ -5373,6 +5918,20 @@ var patchAdminConnectorsOauthAppConfigsById = (options) => (options.client ?? cl
|
|
|
5373
5918
|
...options.headers
|
|
5374
5919
|
}
|
|
5375
5920
|
});
|
|
5921
|
+
var getAdminClinicalClientResourceAssignments = (options) => (options.client ?? client).get({
|
|
5922
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5923
|
+
url: "/admin/clinical/client-resource-assignments",
|
|
5924
|
+
...options
|
|
5925
|
+
});
|
|
5926
|
+
var postAdminClinicalClientResourceAssignments = (options) => (options.client ?? client).post({
|
|
5927
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
5928
|
+
url: "/admin/clinical/client-resource-assignments",
|
|
5929
|
+
...options,
|
|
5930
|
+
headers: {
|
|
5931
|
+
"Content-Type": "application/vnd.api+json",
|
|
5932
|
+
...options.headers
|
|
5933
|
+
}
|
|
5934
|
+
});
|
|
5376
5935
|
var patchAdminExtractionResultsByIdSaveCorrections = (options) => (options.client ?? client).patch({
|
|
5377
5936
|
security: [{ scheme: "bearer", type: "http" }],
|
|
5378
5937
|
url: "/admin/extraction/results/{id}/save-corrections",
|
|
@@ -5451,6 +6010,20 @@ var postAdminAgentsByIdValidate = (options) => (options.client ?? client).post({
|
|
|
5451
6010
|
...options.headers
|
|
5452
6011
|
}
|
|
5453
6012
|
});
|
|
6013
|
+
var getAdminClinicalMealPlans = (options) => (options.client ?? client).get({
|
|
6014
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
6015
|
+
url: "/admin/clinical/meal-plans",
|
|
6016
|
+
...options
|
|
6017
|
+
});
|
|
6018
|
+
var postAdminClinicalMealPlans = (options) => (options.client ?? client).post({
|
|
6019
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
6020
|
+
url: "/admin/clinical/meal-plans",
|
|
6021
|
+
...options,
|
|
6022
|
+
headers: {
|
|
6023
|
+
"Content-Type": "application/vnd.api+json",
|
|
6024
|
+
...options.headers
|
|
6025
|
+
}
|
|
6026
|
+
});
|
|
5454
6027
|
var deleteAdminPipelinesById = (options) => (options.client ?? client).delete({
|
|
5455
6028
|
security: [{ scheme: "bearer", type: "http" }],
|
|
5456
6029
|
url: "/admin/pipelines/{id}",
|
|
@@ -5470,6 +6043,20 @@ var patchAdminPipelinesById = (options) => (options.client ?? client).patch({
|
|
|
5470
6043
|
...options.headers
|
|
5471
6044
|
}
|
|
5472
6045
|
});
|
|
6046
|
+
var getAdminClinicalPatientsByIdSupplements = (options) => (options.client ?? client).get({
|
|
6047
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
6048
|
+
url: "/admin/clinical/patients/{id}/supplements",
|
|
6049
|
+
...options
|
|
6050
|
+
});
|
|
6051
|
+
var patchAdminClinicalNotesByIdReject = (options) => (options.client ?? client).patch({
|
|
6052
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
6053
|
+
url: "/admin/clinical/notes/{id}/reject",
|
|
6054
|
+
...options,
|
|
6055
|
+
headers: {
|
|
6056
|
+
"Content-Type": "application/vnd.api+json",
|
|
6057
|
+
...options.headers
|
|
6058
|
+
}
|
|
6059
|
+
});
|
|
5473
6060
|
var deleteAdminSocialPostsById = (options) => (options.client ?? client).delete({
|
|
5474
6061
|
security: [{ scheme: "bearer", type: "http" }],
|
|
5475
6062
|
url: "/admin/social/posts/{id}",
|
|
@@ -5600,6 +6187,39 @@ var patchAdminExtractionDocumentsByIdFinishUpload = (options) => (options.client
|
|
|
5600
6187
|
...options.headers
|
|
5601
6188
|
}
|
|
5602
6189
|
});
|
|
6190
|
+
var deleteAdminClinicalPracticeToolsById = (options) => (options.client ?? client).delete({
|
|
6191
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
6192
|
+
url: "/admin/clinical/practice-tools/{id}",
|
|
6193
|
+
...options
|
|
6194
|
+
});
|
|
6195
|
+
var getAdminClinicalPracticeToolsById = (options) => (options.client ?? client).get({
|
|
6196
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
6197
|
+
url: "/admin/clinical/practice-tools/{id}",
|
|
6198
|
+
...options
|
|
6199
|
+
});
|
|
6200
|
+
var patchAdminClinicalPracticeToolsById = (options) => (options.client ?? client).patch({
|
|
6201
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
6202
|
+
url: "/admin/clinical/practice-tools/{id}",
|
|
6203
|
+
...options,
|
|
6204
|
+
headers: {
|
|
6205
|
+
"Content-Type": "application/vnd.api+json",
|
|
6206
|
+
...options.headers
|
|
6207
|
+
}
|
|
6208
|
+
});
|
|
6209
|
+
var getAdminClinicalDeliveriesById = (options) => (options.client ?? client).get({
|
|
6210
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
6211
|
+
url: "/admin/clinical/deliveries/{id}",
|
|
6212
|
+
...options
|
|
6213
|
+
});
|
|
6214
|
+
var patchAdminClinicalDeliveriesById = (options) => (options.client ?? client).patch({
|
|
6215
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
6216
|
+
url: "/admin/clinical/deliveries/{id}",
|
|
6217
|
+
...options,
|
|
6218
|
+
headers: {
|
|
6219
|
+
"Content-Type": "application/vnd.api+json",
|
|
6220
|
+
...options.headers
|
|
6221
|
+
}
|
|
6222
|
+
});
|
|
5603
6223
|
var getAdminSupportSyncConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
5604
6224
|
security: [{ scheme: "bearer", type: "http" }],
|
|
5605
6225
|
url: "/admin/support/sync-configs/workspace/{workspace_id}",
|
|
@@ -5638,6 +6258,11 @@ var postAdminCrawlerSchedules = (options) => (options.client ?? client).post({
|
|
|
5638
6258
|
...options.headers
|
|
5639
6259
|
}
|
|
5640
6260
|
});
|
|
6261
|
+
var getAdminClinicalPracticeToolsCategoriesCatalog = (options) => (options.client ?? client).get({
|
|
6262
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
6263
|
+
url: "/admin/clinical/practice-tools/categories/catalog",
|
|
6264
|
+
...options
|
|
6265
|
+
});
|
|
5641
6266
|
var getAdminVoiceRecordings = (options) => (options.client ?? client).get({
|
|
5642
6267
|
security: [{ scheme: "bearer", type: "http" }],
|
|
5643
6268
|
url: "/admin/voice/recordings",
|
|
@@ -14975,23 +15600,6 @@ function createClinicalNamespace(rb) {
|
|
|
14975
15600
|
* ISV clinical analytics — overview and pipeline metrics.
|
|
14976
15601
|
*/
|
|
14977
15602
|
analytics: {
|
|
14978
|
-
/**
|
|
14979
|
-
* Returns an analytics overview for the clinical domain within a workspace.
|
|
14980
|
-
*
|
|
14981
|
-
* Provides aggregate counts of patients (total and recently active)
|
|
14982
|
-
* and total sessions.
|
|
14983
|
-
*
|
|
14984
|
-
* @param workspaceId - The workspace UUID to retrieve analytics for
|
|
14985
|
-
* @param params - Optional query parameters (e.g., period filters)
|
|
14986
|
-
* @param options - Request options
|
|
14987
|
-
* @returns {@link ClinicalAnalyticsOverview} aggregate data
|
|
14988
|
-
*
|
|
14989
|
-
* @example
|
|
14990
|
-
* ```typescript
|
|
14991
|
-
* const overview = await admin.clinical.analytics.overview('ws_abc123');
|
|
14992
|
-
* console.log(overview.active_patients_last_30d); // recently active patients
|
|
14993
|
-
* ```
|
|
14994
|
-
*/
|
|
14995
15603
|
async overview(workspaceId, params, options) {
|
|
14996
15604
|
const qs = new URLSearchParams({
|
|
14997
15605
|
workspace_id: workspaceId,
|
|
@@ -15002,23 +15610,6 @@ function createClinicalNamespace(rb) {
|
|
|
15002
15610
|
options
|
|
15003
15611
|
);
|
|
15004
15612
|
},
|
|
15005
|
-
/**
|
|
15006
|
-
* Returns pipeline analytics for the clinical domain within a workspace.
|
|
15007
|
-
*
|
|
15008
|
-
* Tracks post-session pipeline run counts, completion rates,
|
|
15009
|
-
* and sessions awaiting approval over a configurable period.
|
|
15010
|
-
*
|
|
15011
|
-
* @param workspaceId - The workspace UUID to retrieve analytics for
|
|
15012
|
-
* @param params - Optional query parameters (e.g., period filters)
|
|
15013
|
-
* @param options - Request options
|
|
15014
|
-
* @returns {@link ClinicalPipelineAnalytics} pipeline metrics
|
|
15015
|
-
*
|
|
15016
|
-
* @example
|
|
15017
|
-
* ```typescript
|
|
15018
|
-
* const pipeline = await admin.clinical.analytics.pipeline('ws_abc123');
|
|
15019
|
-
* console.log(pipeline.pipeline_runs_last_30d);
|
|
15020
|
-
* ```
|
|
15021
|
-
*/
|
|
15022
15613
|
async pipeline(workspaceId, params, options) {
|
|
15023
15614
|
const qs = new URLSearchParams({
|
|
15024
15615
|
workspace_id: workspaceId,
|
|
@@ -15029,6 +15620,932 @@ function createClinicalNamespace(rb) {
|
|
|
15029
15620
|
options
|
|
15030
15621
|
);
|
|
15031
15622
|
}
|
|
15623
|
+
},
|
|
15624
|
+
/**
|
|
15625
|
+
* Manage reusable clinical goal templates.
|
|
15626
|
+
*/
|
|
15627
|
+
goalTemplates: {
|
|
15628
|
+
/**
|
|
15629
|
+
* List goal templates in a workspace.
|
|
15630
|
+
*
|
|
15631
|
+
* @param params - Must include `workspace_id`
|
|
15632
|
+
* @param options - Request options
|
|
15633
|
+
* @returns Array of {@link ClinicalGoalTemplate} records
|
|
15634
|
+
*/
|
|
15635
|
+
list: async (params, options) => rb.execute(
|
|
15636
|
+
getAdminClinicalGoalTemplates,
|
|
15637
|
+
{ query: params },
|
|
15638
|
+
options
|
|
15639
|
+
),
|
|
15640
|
+
/**
|
|
15641
|
+
* List practitioner's personal templates.
|
|
15642
|
+
*
|
|
15643
|
+
* @param params - Must include `created_by_id`
|
|
15644
|
+
* @param options - Request options
|
|
15645
|
+
* @returns Array of {@link ClinicalGoalTemplate} records
|
|
15646
|
+
*/
|
|
15647
|
+
listMine: async (params, options) => rb.execute(
|
|
15648
|
+
getAdminClinicalGoalTemplatesMine,
|
|
15649
|
+
{ query: params },
|
|
15650
|
+
options
|
|
15651
|
+
),
|
|
15652
|
+
/**
|
|
15653
|
+
* List distinct goal template categories with counts.
|
|
15654
|
+
*
|
|
15655
|
+
* @param params - Must include `workspace_id`
|
|
15656
|
+
* @param options - Request options
|
|
15657
|
+
* @returns Array of {@link ClinicalGoalTemplateCategory} records
|
|
15658
|
+
*/
|
|
15659
|
+
listCategories: async (params, options) => rb.execute(
|
|
15660
|
+
getAdminClinicalGoalTemplatesCategories,
|
|
15661
|
+
{ query: params },
|
|
15662
|
+
options
|
|
15663
|
+
),
|
|
15664
|
+
/**
|
|
15665
|
+
* Get a single goal template by ID.
|
|
15666
|
+
*
|
|
15667
|
+
* @param id - GoalTemplate UUID
|
|
15668
|
+
* @param options - Request options
|
|
15669
|
+
* @returns {@link ClinicalGoalTemplate} record
|
|
15670
|
+
*/
|
|
15671
|
+
get: async (id, options) => rb.execute(
|
|
15672
|
+
getAdminClinicalGoalTemplatesById,
|
|
15673
|
+
{ path: { id } },
|
|
15674
|
+
options
|
|
15675
|
+
),
|
|
15676
|
+
/**
|
|
15677
|
+
* Create a new goal template.
|
|
15678
|
+
*
|
|
15679
|
+
* @param attributes - Must include `workspace_id`, `goal_type`, and `title`
|
|
15680
|
+
* @param options - Request options
|
|
15681
|
+
* @returns Created {@link ClinicalGoalTemplate} record
|
|
15682
|
+
*/
|
|
15683
|
+
create: async (attributes, options) => rb.execute(
|
|
15684
|
+
postAdminClinicalGoalTemplates,
|
|
15685
|
+
{ body: { data: { type: "clinical-goal-template", attributes } } },
|
|
15686
|
+
options
|
|
15687
|
+
),
|
|
15688
|
+
/**
|
|
15689
|
+
* Create a personalized template from an existing one.
|
|
15690
|
+
*
|
|
15691
|
+
* @param attributes - Must include `workspace_id` and `source_template_id`
|
|
15692
|
+
* @param options - Request options
|
|
15693
|
+
* @returns Created {@link ClinicalGoalTemplate} record
|
|
15694
|
+
*/
|
|
15695
|
+
createFromExisting: async (attributes, options) => rb.execute(
|
|
15696
|
+
postAdminClinicalGoalTemplatesFromExisting,
|
|
15697
|
+
{ body: { data: { type: "clinical-goal-template", attributes } } },
|
|
15698
|
+
options
|
|
15699
|
+
),
|
|
15700
|
+
/**
|
|
15701
|
+
* Update a goal template.
|
|
15702
|
+
*
|
|
15703
|
+
* @param id - GoalTemplate UUID
|
|
15704
|
+
* @param attributes - Fields to update (PATCH semantics)
|
|
15705
|
+
* @param options - Request options
|
|
15706
|
+
* @returns Updated {@link ClinicalGoalTemplate} record
|
|
15707
|
+
*/
|
|
15708
|
+
update: async (id, attributes, options) => rb.execute(
|
|
15709
|
+
patchAdminClinicalGoalTemplatesById,
|
|
15710
|
+
{
|
|
15711
|
+
path: { id },
|
|
15712
|
+
body: { data: { type: "clinical-goal-template", id, attributes } }
|
|
15713
|
+
},
|
|
15714
|
+
options
|
|
15715
|
+
),
|
|
15716
|
+
/**
|
|
15717
|
+
* Delete a goal template.
|
|
15718
|
+
*
|
|
15719
|
+
* @param id - GoalTemplate UUID
|
|
15720
|
+
* @param options - Request options
|
|
15721
|
+
* @returns `true` on successful deletion
|
|
15722
|
+
*/
|
|
15723
|
+
delete: async (id, options) => rb.executeDelete(
|
|
15724
|
+
deleteAdminClinicalGoalTemplatesById,
|
|
15725
|
+
{ path: { id } },
|
|
15726
|
+
options
|
|
15727
|
+
),
|
|
15728
|
+
/**
|
|
15729
|
+
* List application-level catalog goal templates.
|
|
15730
|
+
*
|
|
15731
|
+
* @param params - Must include `application_id`
|
|
15732
|
+
* @param options - Request options
|
|
15733
|
+
* @returns Array of {@link ClinicalGoalTemplate} catalog records
|
|
15734
|
+
*/
|
|
15735
|
+
listCatalog: async (params, options) => rb.execute(
|
|
15736
|
+
getAdminClinicalGoalTemplatesCatalog,
|
|
15737
|
+
{ query: params },
|
|
15738
|
+
options
|
|
15739
|
+
),
|
|
15740
|
+
/**
|
|
15741
|
+
* Get a catalog goal template by ID.
|
|
15742
|
+
*
|
|
15743
|
+
* @param id - GoalTemplate UUID
|
|
15744
|
+
* @param options - Request options
|
|
15745
|
+
* @returns {@link ClinicalGoalTemplate} catalog record
|
|
15746
|
+
*/
|
|
15747
|
+
getCatalog: async (id, options) => rb.execute(
|
|
15748
|
+
getAdminClinicalGoalTemplatesCatalogById,
|
|
15749
|
+
{ path: { id } },
|
|
15750
|
+
options
|
|
15751
|
+
),
|
|
15752
|
+
/**
|
|
15753
|
+
* Create an application-level catalog goal template.
|
|
15754
|
+
*
|
|
15755
|
+
* @param attributes - Must include `goal_type` and `title`
|
|
15756
|
+
* @param options - Request options
|
|
15757
|
+
* @returns Created {@link ClinicalGoalTemplate} catalog record
|
|
15758
|
+
*/
|
|
15759
|
+
createCatalog: async (attributes, options) => rb.execute(
|
|
15760
|
+
postAdminClinicalGoalTemplatesCatalog,
|
|
15761
|
+
{ body: { data: { type: "clinical-goal-template", attributes } } },
|
|
15762
|
+
options
|
|
15763
|
+
),
|
|
15764
|
+
/**
|
|
15765
|
+
* Update a catalog goal template.
|
|
15766
|
+
*
|
|
15767
|
+
* @param id - GoalTemplate UUID
|
|
15768
|
+
* @param attributes - Fields to update (PATCH semantics)
|
|
15769
|
+
* @param options - Request options
|
|
15770
|
+
* @returns Updated {@link ClinicalGoalTemplate} catalog record
|
|
15771
|
+
*/
|
|
15772
|
+
updateCatalog: async (id, attributes, options) => rb.execute(
|
|
15773
|
+
patchAdminClinicalGoalTemplatesCatalogById,
|
|
15774
|
+
{
|
|
15775
|
+
path: { id },
|
|
15776
|
+
body: { data: { type: "clinical-goal-template", id, attributes } }
|
|
15777
|
+
},
|
|
15778
|
+
options
|
|
15779
|
+
),
|
|
15780
|
+
/**
|
|
15781
|
+
* Delete a catalog goal template.
|
|
15782
|
+
*
|
|
15783
|
+
* @param id - GoalTemplate UUID
|
|
15784
|
+
* @param options - Request options
|
|
15785
|
+
* @returns `true` on successful deletion
|
|
15786
|
+
*/
|
|
15787
|
+
deleteCatalog: async (id, options) => rb.executeDelete(
|
|
15788
|
+
deleteAdminClinicalGoalTemplatesCatalogById,
|
|
15789
|
+
{ path: { id } },
|
|
15790
|
+
options
|
|
15791
|
+
),
|
|
15792
|
+
/**
|
|
15793
|
+
* List distinct catalog goal template categories with counts.
|
|
15794
|
+
*
|
|
15795
|
+
* @param params - Must include `application_id`
|
|
15796
|
+
* @param options - Request options
|
|
15797
|
+
* @returns Array of {@link ClinicalGoalTemplateCategory} records
|
|
15798
|
+
*/
|
|
15799
|
+
listCatalogCategories: async (params, options) => rb.execute(
|
|
15800
|
+
getAdminClinicalGoalTemplatesCategoriesCatalog,
|
|
15801
|
+
{ query: params },
|
|
15802
|
+
options
|
|
15803
|
+
)
|
|
15804
|
+
},
|
|
15805
|
+
/**
|
|
15806
|
+
* Manage practice-level tools (apps, wearables, platforms).
|
|
15807
|
+
*/
|
|
15808
|
+
practiceTools: {
|
|
15809
|
+
/**
|
|
15810
|
+
* List practice tools in a workspace.
|
|
15811
|
+
*
|
|
15812
|
+
* @param params - Filter/pagination parameters
|
|
15813
|
+
* @param options - Request options
|
|
15814
|
+
* @returns Array of {@link ClinicalPracticeTool} records
|
|
15815
|
+
*/
|
|
15816
|
+
list: async (params, options) => rb.execute(
|
|
15817
|
+
getAdminClinicalPracticeTools,
|
|
15818
|
+
{ query: params },
|
|
15819
|
+
options
|
|
15820
|
+
),
|
|
15821
|
+
/**
|
|
15822
|
+
* Get a single practice tool by ID.
|
|
15823
|
+
*
|
|
15824
|
+
* @param id - PracticeTool UUID
|
|
15825
|
+
* @param options - Request options
|
|
15826
|
+
* @returns {@link ClinicalPracticeTool} record
|
|
15827
|
+
*/
|
|
15828
|
+
get: async (id, options) => rb.execute(
|
|
15829
|
+
getAdminClinicalPracticeToolsById,
|
|
15830
|
+
{ path: { id } },
|
|
15831
|
+
options
|
|
15832
|
+
),
|
|
15833
|
+
/**
|
|
15834
|
+
* Create a new practice tool.
|
|
15835
|
+
*
|
|
15836
|
+
* @param attributes - Must include `workspace_id` and `name`
|
|
15837
|
+
* @param options - Request options
|
|
15838
|
+
* @returns Created {@link ClinicalPracticeTool} record
|
|
15839
|
+
*/
|
|
15840
|
+
create: async (attributes, options) => rb.execute(
|
|
15841
|
+
postAdminClinicalPracticeTools,
|
|
15842
|
+
{ body: { data: { type: "clinical-practice-tool", attributes } } },
|
|
15843
|
+
options
|
|
15844
|
+
),
|
|
15845
|
+
/**
|
|
15846
|
+
* Update a practice tool.
|
|
15847
|
+
*
|
|
15848
|
+
* @param id - PracticeTool UUID
|
|
15849
|
+
* @param attributes - Fields to update (PATCH semantics)
|
|
15850
|
+
* @param options - Request options
|
|
15851
|
+
* @returns Updated {@link ClinicalPracticeTool} record
|
|
15852
|
+
*/
|
|
15853
|
+
update: async (id, attributes, options) => rb.execute(
|
|
15854
|
+
patchAdminClinicalPracticeToolsById,
|
|
15855
|
+
{
|
|
15856
|
+
path: { id },
|
|
15857
|
+
body: { data: { type: "clinical-practice-tool", id, attributes } }
|
|
15858
|
+
},
|
|
15859
|
+
options
|
|
15860
|
+
),
|
|
15861
|
+
/**
|
|
15862
|
+
* Delete a practice tool.
|
|
15863
|
+
*
|
|
15864
|
+
* @param id - PracticeTool UUID
|
|
15865
|
+
* @param options - Request options
|
|
15866
|
+
* @returns `true` on successful deletion
|
|
15867
|
+
*/
|
|
15868
|
+
delete: async (id, options) => rb.executeDelete(
|
|
15869
|
+
deleteAdminClinicalPracticeToolsById,
|
|
15870
|
+
{ path: { id } },
|
|
15871
|
+
options
|
|
15872
|
+
),
|
|
15873
|
+
/**
|
|
15874
|
+
* List application-level catalog practice tools.
|
|
15875
|
+
*
|
|
15876
|
+
* @param params - Must include `application_id`
|
|
15877
|
+
* @param options - Request options
|
|
15878
|
+
* @returns Array of {@link ClinicalPracticeTool} catalog records
|
|
15879
|
+
*/
|
|
15880
|
+
listCatalog: async (params, options) => rb.execute(
|
|
15881
|
+
getAdminClinicalPracticeToolsCatalog,
|
|
15882
|
+
{ query: params },
|
|
15883
|
+
options
|
|
15884
|
+
),
|
|
15885
|
+
/**
|
|
15886
|
+
* Get a catalog practice tool by ID.
|
|
15887
|
+
*
|
|
15888
|
+
* @param id - PracticeTool UUID
|
|
15889
|
+
* @param options - Request options
|
|
15890
|
+
* @returns {@link ClinicalPracticeTool} catalog record
|
|
15891
|
+
*/
|
|
15892
|
+
getCatalog: async (id, options) => rb.execute(
|
|
15893
|
+
getAdminClinicalPracticeToolsCatalogById,
|
|
15894
|
+
{ path: { id } },
|
|
15895
|
+
options
|
|
15896
|
+
),
|
|
15897
|
+
/**
|
|
15898
|
+
* Create an application-level catalog practice tool.
|
|
15899
|
+
*
|
|
15900
|
+
* @param attributes - Must include `name`
|
|
15901
|
+
* @param options - Request options
|
|
15902
|
+
* @returns Created {@link ClinicalPracticeTool} catalog record
|
|
15903
|
+
*/
|
|
15904
|
+
createCatalog: async (attributes, options) => rb.execute(
|
|
15905
|
+
postAdminClinicalPracticeToolsCatalog,
|
|
15906
|
+
{ body: { data: { type: "clinical-practice-tool", attributes } } },
|
|
15907
|
+
options
|
|
15908
|
+
),
|
|
15909
|
+
/**
|
|
15910
|
+
* Update a catalog practice tool.
|
|
15911
|
+
*
|
|
15912
|
+
* @param id - PracticeTool UUID
|
|
15913
|
+
* @param attributes - Fields to update (PATCH semantics)
|
|
15914
|
+
* @param options - Request options
|
|
15915
|
+
* @returns Updated {@link ClinicalPracticeTool} catalog record
|
|
15916
|
+
*/
|
|
15917
|
+
updateCatalog: async (id, attributes, options) => rb.execute(
|
|
15918
|
+
patchAdminClinicalPracticeToolsCatalogById,
|
|
15919
|
+
{
|
|
15920
|
+
path: { id },
|
|
15921
|
+
body: { data: { type: "clinical-practice-tool", id, attributes } }
|
|
15922
|
+
},
|
|
15923
|
+
options
|
|
15924
|
+
),
|
|
15925
|
+
/**
|
|
15926
|
+
* Delete a catalog practice tool.
|
|
15927
|
+
*
|
|
15928
|
+
* @param id - PracticeTool UUID
|
|
15929
|
+
* @param options - Request options
|
|
15930
|
+
* @returns `true` on successful deletion
|
|
15931
|
+
*/
|
|
15932
|
+
deleteCatalog: async (id, options) => rb.executeDelete(
|
|
15933
|
+
deleteAdminClinicalPracticeToolsCatalogById,
|
|
15934
|
+
{ path: { id } },
|
|
15935
|
+
options
|
|
15936
|
+
),
|
|
15937
|
+
/**
|
|
15938
|
+
* List distinct catalog practice tool categories with counts.
|
|
15939
|
+
*
|
|
15940
|
+
* @param params - Must include `application_id`
|
|
15941
|
+
* @param options - Request options
|
|
15942
|
+
* @returns Array of category records
|
|
15943
|
+
*/
|
|
15944
|
+
listCatalogCategories: async (params, options) => rb.execute(
|
|
15945
|
+
getAdminClinicalPracticeToolsCategoriesCatalog,
|
|
15946
|
+
{ query: params },
|
|
15947
|
+
options
|
|
15948
|
+
)
|
|
15949
|
+
},
|
|
15950
|
+
/**
|
|
15951
|
+
* Manage practice-level educational resources.
|
|
15952
|
+
*/
|
|
15953
|
+
practiceResources: {
|
|
15954
|
+
/**
|
|
15955
|
+
* List practice resources in a workspace.
|
|
15956
|
+
*
|
|
15957
|
+
* @param params - Filter/pagination parameters
|
|
15958
|
+
* @param options - Request options
|
|
15959
|
+
* @returns Array of {@link ClinicalPracticeResource} records
|
|
15960
|
+
*/
|
|
15961
|
+
list: async (params, options) => rb.execute(
|
|
15962
|
+
getAdminClinicalPracticeResources,
|
|
15963
|
+
{ query: params },
|
|
15964
|
+
options
|
|
15965
|
+
),
|
|
15966
|
+
/**
|
|
15967
|
+
* Get a single practice resource by ID.
|
|
15968
|
+
*
|
|
15969
|
+
* @param id - PracticeResource UUID
|
|
15970
|
+
* @param options - Request options
|
|
15971
|
+
* @returns {@link ClinicalPracticeResource} record
|
|
15972
|
+
*/
|
|
15973
|
+
get: async (id, options) => rb.execute(
|
|
15974
|
+
getAdminClinicalPracticeResourcesById,
|
|
15975
|
+
{ path: { id } },
|
|
15976
|
+
options
|
|
15977
|
+
),
|
|
15978
|
+
/**
|
|
15979
|
+
* Create a new practice resource.
|
|
15980
|
+
*
|
|
15981
|
+
* @param attributes - Must include `workspace_id` and `title`
|
|
15982
|
+
* @param options - Request options
|
|
15983
|
+
* @returns Created {@link ClinicalPracticeResource} record
|
|
15984
|
+
*/
|
|
15985
|
+
create: async (attributes, options) => rb.execute(
|
|
15986
|
+
postAdminClinicalPracticeResources,
|
|
15987
|
+
{
|
|
15988
|
+
body: { data: { type: "clinical-practice-resource", attributes } }
|
|
15989
|
+
},
|
|
15990
|
+
options
|
|
15991
|
+
),
|
|
15992
|
+
/**
|
|
15993
|
+
* Update a practice resource.
|
|
15994
|
+
*
|
|
15995
|
+
* @param id - PracticeResource UUID
|
|
15996
|
+
* @param attributes - Fields to update (PATCH semantics)
|
|
15997
|
+
* @param options - Request options
|
|
15998
|
+
* @returns Updated {@link ClinicalPracticeResource} record
|
|
15999
|
+
*/
|
|
16000
|
+
update: async (id, attributes, options) => rb.execute(
|
|
16001
|
+
patchAdminClinicalPracticeResourcesById,
|
|
16002
|
+
{
|
|
16003
|
+
path: { id },
|
|
16004
|
+
body: {
|
|
16005
|
+
data: { type: "clinical-practice-resource", id, attributes }
|
|
16006
|
+
}
|
|
16007
|
+
},
|
|
16008
|
+
options
|
|
16009
|
+
),
|
|
16010
|
+
/**
|
|
16011
|
+
* Delete a practice resource.
|
|
16012
|
+
*
|
|
16013
|
+
* @param id - PracticeResource UUID
|
|
16014
|
+
* @param options - Request options
|
|
16015
|
+
* @returns `true` on successful deletion
|
|
16016
|
+
*/
|
|
16017
|
+
delete: async (id, options) => rb.executeDelete(
|
|
16018
|
+
deleteAdminClinicalPracticeResourcesById,
|
|
16019
|
+
{ path: { id } },
|
|
16020
|
+
options
|
|
16021
|
+
),
|
|
16022
|
+
/**
|
|
16023
|
+
* List application-level catalog practice resources.
|
|
16024
|
+
*
|
|
16025
|
+
* @param params - Must include `application_id`
|
|
16026
|
+
* @param options - Request options
|
|
16027
|
+
* @returns Array of {@link ClinicalPracticeResource} catalog records
|
|
16028
|
+
*/
|
|
16029
|
+
listCatalog: async (params, options) => rb.execute(
|
|
16030
|
+
getAdminClinicalPracticeResourcesCatalog,
|
|
16031
|
+
{ query: params },
|
|
16032
|
+
options
|
|
16033
|
+
),
|
|
16034
|
+
/**
|
|
16035
|
+
* Get a catalog practice resource by ID.
|
|
16036
|
+
*
|
|
16037
|
+
* @param id - PracticeResource UUID
|
|
16038
|
+
* @param options - Request options
|
|
16039
|
+
* @returns {@link ClinicalPracticeResource} catalog record
|
|
16040
|
+
*/
|
|
16041
|
+
getCatalog: async (id, options) => rb.execute(
|
|
16042
|
+
getAdminClinicalPracticeResourcesCatalogById,
|
|
16043
|
+
{ path: { id } },
|
|
16044
|
+
options
|
|
16045
|
+
),
|
|
16046
|
+
/**
|
|
16047
|
+
* Create an application-level catalog practice resource.
|
|
16048
|
+
*
|
|
16049
|
+
* @param attributes - Must include `title`
|
|
16050
|
+
* @param options - Request options
|
|
16051
|
+
* @returns Created {@link ClinicalPracticeResource} catalog record
|
|
16052
|
+
*/
|
|
16053
|
+
createCatalog: async (attributes, options) => rb.execute(
|
|
16054
|
+
postAdminClinicalPracticeResourcesCatalog,
|
|
16055
|
+
{
|
|
16056
|
+
body: { data: { type: "clinical-practice-resource", attributes } }
|
|
16057
|
+
},
|
|
16058
|
+
options
|
|
16059
|
+
),
|
|
16060
|
+
/**
|
|
16061
|
+
* Update a catalog practice resource.
|
|
16062
|
+
*
|
|
16063
|
+
* @param id - PracticeResource UUID
|
|
16064
|
+
* @param attributes - Fields to update (PATCH semantics)
|
|
16065
|
+
* @param options - Request options
|
|
16066
|
+
* @returns Updated {@link ClinicalPracticeResource} catalog record
|
|
16067
|
+
*/
|
|
16068
|
+
updateCatalog: async (id, attributes, options) => rb.execute(
|
|
16069
|
+
patchAdminClinicalPracticeResourcesCatalogById,
|
|
16070
|
+
{
|
|
16071
|
+
path: { id },
|
|
16072
|
+
body: {
|
|
16073
|
+
data: { type: "clinical-practice-resource", id, attributes }
|
|
16074
|
+
}
|
|
16075
|
+
},
|
|
16076
|
+
options
|
|
16077
|
+
),
|
|
16078
|
+
/**
|
|
16079
|
+
* Delete a catalog practice resource.
|
|
16080
|
+
*
|
|
16081
|
+
* @param id - PracticeResource UUID
|
|
16082
|
+
* @param options - Request options
|
|
16083
|
+
* @returns `true` on successful deletion
|
|
16084
|
+
*/
|
|
16085
|
+
deleteCatalog: async (id, options) => rb.executeDelete(
|
|
16086
|
+
deleteAdminClinicalPracticeResourcesCatalogById,
|
|
16087
|
+
{ path: { id } },
|
|
16088
|
+
options
|
|
16089
|
+
)
|
|
16090
|
+
},
|
|
16091
|
+
// ─── New sub-namespaces (10 missing from finalize-domain audit) ───────────
|
|
16092
|
+
/** Manage clinical patient records. */
|
|
16093
|
+
patients: {
|
|
16094
|
+
/** List patients. */
|
|
16095
|
+
list: async (params, options) => rb.execute(
|
|
16096
|
+
getAdminClinicalPatients,
|
|
16097
|
+
{ query: params },
|
|
16098
|
+
options
|
|
16099
|
+
),
|
|
16100
|
+
/** Get patient by ID. */
|
|
16101
|
+
get: async (id, options) => rb.execute(
|
|
16102
|
+
getAdminClinicalPatientsById,
|
|
16103
|
+
{ path: { id } },
|
|
16104
|
+
options
|
|
16105
|
+
),
|
|
16106
|
+
/** Create a patient. */
|
|
16107
|
+
create: async (attributes, options) => rb.execute(
|
|
16108
|
+
postAdminClinicalPatients,
|
|
16109
|
+
{ body: { data: { type: "clinical-patient", attributes } } },
|
|
16110
|
+
options
|
|
16111
|
+
),
|
|
16112
|
+
/** Update a patient. */
|
|
16113
|
+
update: async (id, attributes, options) => rb.execute(
|
|
16114
|
+
patchAdminClinicalPatientsById,
|
|
16115
|
+
{
|
|
16116
|
+
path: { id },
|
|
16117
|
+
body: { data: { type: "clinical-patient", id, attributes } }
|
|
16118
|
+
},
|
|
16119
|
+
options
|
|
16120
|
+
),
|
|
16121
|
+
/** Delete a patient. */
|
|
16122
|
+
delete: async (id, options) => rb.executeDelete(
|
|
16123
|
+
deleteAdminClinicalPatientsById,
|
|
16124
|
+
{ path: { id } },
|
|
16125
|
+
options
|
|
16126
|
+
),
|
|
16127
|
+
/** List goals for a patient. */
|
|
16128
|
+
goals: async (id, options) => rb.execute(
|
|
16129
|
+
getAdminClinicalPatientsByIdGoals,
|
|
16130
|
+
{ path: { id } },
|
|
16131
|
+
options
|
|
16132
|
+
),
|
|
16133
|
+
/** List health metrics for a patient. */
|
|
16134
|
+
healthMetrics: async (id, options) => rb.execute(
|
|
16135
|
+
getAdminClinicalPatientsByIdHealthMetrics,
|
|
16136
|
+
{ path: { id } },
|
|
16137
|
+
options
|
|
16138
|
+
),
|
|
16139
|
+
/** List supplements for a patient. */
|
|
16140
|
+
supplements: async (id, options) => rb.execute(
|
|
16141
|
+
getAdminClinicalPatientsByIdSupplements,
|
|
16142
|
+
{ path: { id } },
|
|
16143
|
+
options
|
|
16144
|
+
),
|
|
16145
|
+
/** List resource assignments for a patient. */
|
|
16146
|
+
resourceAssignments: async (id, options) => rb.execute(
|
|
16147
|
+
getAdminClinicalPatientsByIdResourceAssignments,
|
|
16148
|
+
{ path: { id } },
|
|
16149
|
+
options
|
|
16150
|
+
)
|
|
16151
|
+
},
|
|
16152
|
+
/** Manage clinical sessions. */
|
|
16153
|
+
sessions: {
|
|
16154
|
+
/** List sessions. */
|
|
16155
|
+
list: async (params, options) => rb.execute(
|
|
16156
|
+
getAdminClinicalSessions,
|
|
16157
|
+
{ query: params },
|
|
16158
|
+
options
|
|
16159
|
+
),
|
|
16160
|
+
/** List sessions by patient. */
|
|
16161
|
+
listByPatient: async (params, options) => rb.execute(
|
|
16162
|
+
getAdminClinicalSessionsByPatient,
|
|
16163
|
+
{ query: params },
|
|
16164
|
+
options
|
|
16165
|
+
),
|
|
16166
|
+
/** Get session by ID. */
|
|
16167
|
+
get: async (id, options) => rb.execute(
|
|
16168
|
+
getAdminClinicalSessionsById,
|
|
16169
|
+
{ path: { id } },
|
|
16170
|
+
options
|
|
16171
|
+
),
|
|
16172
|
+
/** Create a session. */
|
|
16173
|
+
create: async (attributes, options) => rb.execute(
|
|
16174
|
+
postAdminClinicalSessions,
|
|
16175
|
+
{ body: { data: { type: "clinical-session", attributes } } },
|
|
16176
|
+
options
|
|
16177
|
+
),
|
|
16178
|
+
/** Update a session. */
|
|
16179
|
+
update: async (id, attributes, options) => rb.execute(
|
|
16180
|
+
patchAdminClinicalSessionsById,
|
|
16181
|
+
{
|
|
16182
|
+
path: { id },
|
|
16183
|
+
body: { data: { type: "clinical-session", id, attributes } }
|
|
16184
|
+
},
|
|
16185
|
+
options
|
|
16186
|
+
),
|
|
16187
|
+
/** Delete a session. */
|
|
16188
|
+
delete: async (id, options) => rb.executeDelete(
|
|
16189
|
+
deleteAdminClinicalSessionsById,
|
|
16190
|
+
{ path: { id } },
|
|
16191
|
+
options
|
|
16192
|
+
),
|
|
16193
|
+
/** List notes for a session. */
|
|
16194
|
+
notes: async (id, options) => rb.execute(
|
|
16195
|
+
getAdminClinicalSessionsByIdSessionNotes,
|
|
16196
|
+
{ path: { id } },
|
|
16197
|
+
options
|
|
16198
|
+
),
|
|
16199
|
+
/** List meal plans for a session. */
|
|
16200
|
+
mealPlans: async (id, options) => rb.execute(
|
|
16201
|
+
getAdminClinicalSessionsByIdMealPlans,
|
|
16202
|
+
{ path: { id } },
|
|
16203
|
+
options
|
|
16204
|
+
)
|
|
16205
|
+
},
|
|
16206
|
+
/** Manage clinical notes with approve/reject workflow. */
|
|
16207
|
+
notes: {
|
|
16208
|
+
/** List notes. */
|
|
16209
|
+
list: async (params, options) => rb.execute(
|
|
16210
|
+
getAdminClinicalNotes,
|
|
16211
|
+
{ query: params },
|
|
16212
|
+
options
|
|
16213
|
+
),
|
|
16214
|
+
/** Get note by ID. */
|
|
16215
|
+
get: async (id, options) => rb.execute(
|
|
16216
|
+
getAdminClinicalNotesById,
|
|
16217
|
+
{ path: { id } },
|
|
16218
|
+
options
|
|
16219
|
+
),
|
|
16220
|
+
/** Create a note. */
|
|
16221
|
+
create: async (attributes, options) => rb.execute(
|
|
16222
|
+
postAdminClinicalNotes,
|
|
16223
|
+
{ body: { data: { type: "clinical-note", attributes } } },
|
|
16224
|
+
options
|
|
16225
|
+
),
|
|
16226
|
+
/** Update a note. */
|
|
16227
|
+
update: async (id, attributes, options) => rb.execute(
|
|
16228
|
+
patchAdminClinicalNotesById,
|
|
16229
|
+
{
|
|
16230
|
+
path: { id },
|
|
16231
|
+
body: { data: { type: "clinical-note", id, attributes } }
|
|
16232
|
+
},
|
|
16233
|
+
options
|
|
16234
|
+
),
|
|
16235
|
+
/** Delete a note. */
|
|
16236
|
+
delete: async (id, options) => rb.executeDelete(
|
|
16237
|
+
deleteAdminClinicalNotesById,
|
|
16238
|
+
{ path: { id } },
|
|
16239
|
+
options
|
|
16240
|
+
),
|
|
16241
|
+
/** Approve a note (creates immutable version). */
|
|
16242
|
+
approve: async (id, attributes, options) => rb.execute(
|
|
16243
|
+
patchAdminClinicalNotesByIdApprove,
|
|
16244
|
+
{
|
|
16245
|
+
path: { id },
|
|
16246
|
+
body: {
|
|
16247
|
+
data: { type: "clinical-note", id, attributes: attributes ?? {} }
|
|
16248
|
+
}
|
|
16249
|
+
},
|
|
16250
|
+
options
|
|
16251
|
+
),
|
|
16252
|
+
/** Reject a note. */
|
|
16253
|
+
reject: async (id, attributes, options) => rb.execute(
|
|
16254
|
+
patchAdminClinicalNotesByIdReject,
|
|
16255
|
+
{
|
|
16256
|
+
path: { id },
|
|
16257
|
+
body: {
|
|
16258
|
+
data: { type: "clinical-note", id, attributes: attributes ?? {} }
|
|
16259
|
+
}
|
|
16260
|
+
},
|
|
16261
|
+
options
|
|
16262
|
+
),
|
|
16263
|
+
/** List versions for a note. */
|
|
16264
|
+
versions: async (noteId, options) => rb.execute(
|
|
16265
|
+
getAdminClinicalNotesByNoteIdVersions,
|
|
16266
|
+
{ path: { note_id: noteId } },
|
|
16267
|
+
options
|
|
16268
|
+
),
|
|
16269
|
+
/** Get a specific note version. */
|
|
16270
|
+
getVersion: async (noteId, id, options) => rb.execute(
|
|
16271
|
+
getAdminClinicalNotesByNoteIdVersionsById,
|
|
16272
|
+
{ path: { note_id: noteId, id } },
|
|
16273
|
+
options
|
|
16274
|
+
)
|
|
16275
|
+
},
|
|
16276
|
+
/** Manage clinical health metrics. */
|
|
16277
|
+
healthMetrics: {
|
|
16278
|
+
/** List health metrics. */
|
|
16279
|
+
list: async (params, options) => rb.execute(
|
|
16280
|
+
getAdminClinicalHealthMetrics,
|
|
16281
|
+
{ query: params },
|
|
16282
|
+
options
|
|
16283
|
+
),
|
|
16284
|
+
/** List health metrics by session. */
|
|
16285
|
+
listBySession: async (params, options) => rb.execute(
|
|
16286
|
+
getAdminClinicalHealthMetricsBySession,
|
|
16287
|
+
{ query: params },
|
|
16288
|
+
options
|
|
16289
|
+
),
|
|
16290
|
+
/** Get health metric by ID. */
|
|
16291
|
+
get: async (id, options) => rb.execute(
|
|
16292
|
+
getAdminClinicalHealthMetricsById,
|
|
16293
|
+
{ path: { id } },
|
|
16294
|
+
options
|
|
16295
|
+
),
|
|
16296
|
+
/** Create a health metric. */
|
|
16297
|
+
create: async (attributes, options) => rb.execute(
|
|
16298
|
+
postAdminClinicalHealthMetrics,
|
|
16299
|
+
{ body: { data: { type: "clinical-health-metric", attributes } } },
|
|
16300
|
+
options
|
|
16301
|
+
),
|
|
16302
|
+
/** Update a health metric. */
|
|
16303
|
+
update: async (id, attributes, options) => rb.execute(
|
|
16304
|
+
patchAdminClinicalHealthMetricsById,
|
|
16305
|
+
{
|
|
16306
|
+
path: { id },
|
|
16307
|
+
body: { data: { type: "clinical-health-metric", id, attributes } }
|
|
16308
|
+
},
|
|
16309
|
+
options
|
|
16310
|
+
),
|
|
16311
|
+
/** Delete a health metric. */
|
|
16312
|
+
delete: async (id, options) => rb.executeDelete(
|
|
16313
|
+
deleteAdminClinicalHealthMetricsById,
|
|
16314
|
+
{ path: { id } },
|
|
16315
|
+
options
|
|
16316
|
+
)
|
|
16317
|
+
},
|
|
16318
|
+
/** Manage clinical meal plans. */
|
|
16319
|
+
mealPlans: {
|
|
16320
|
+
/** List meal plans. */
|
|
16321
|
+
list: async (params, options) => rb.execute(
|
|
16322
|
+
getAdminClinicalMealPlans,
|
|
16323
|
+
{ query: params },
|
|
16324
|
+
options
|
|
16325
|
+
),
|
|
16326
|
+
/** List meal plans by workspace. */
|
|
16327
|
+
listByWorkspace: async (params, options) => rb.execute(
|
|
16328
|
+
getAdminClinicalMealPlansByWorkspace,
|
|
16329
|
+
{ query: params },
|
|
16330
|
+
options
|
|
16331
|
+
),
|
|
16332
|
+
/** Get meal plan by ID. */
|
|
16333
|
+
get: async (id, options) => rb.execute(
|
|
16334
|
+
getAdminClinicalMealPlansById,
|
|
16335
|
+
{ path: { id } },
|
|
16336
|
+
options
|
|
16337
|
+
),
|
|
16338
|
+
/** Create a meal plan. */
|
|
16339
|
+
create: async (attributes, options) => rb.execute(
|
|
16340
|
+
postAdminClinicalMealPlans,
|
|
16341
|
+
{ body: { data: { type: "clinical-meal-plan", attributes } } },
|
|
16342
|
+
options
|
|
16343
|
+
),
|
|
16344
|
+
/** Update a meal plan. */
|
|
16345
|
+
update: async (id, attributes, options) => rb.execute(
|
|
16346
|
+
patchAdminClinicalMealPlansById,
|
|
16347
|
+
{
|
|
16348
|
+
path: { id },
|
|
16349
|
+
body: { data: { type: "clinical-meal-plan", id, attributes } }
|
|
16350
|
+
},
|
|
16351
|
+
options
|
|
16352
|
+
),
|
|
16353
|
+
/** Delete a meal plan. */
|
|
16354
|
+
delete: async (id, options) => rb.executeDelete(
|
|
16355
|
+
deleteAdminClinicalMealPlansById,
|
|
16356
|
+
{ path: { id } },
|
|
16357
|
+
options
|
|
16358
|
+
)
|
|
16359
|
+
},
|
|
16360
|
+
/** Manage patient clinical goals. */
|
|
16361
|
+
clientGoals: {
|
|
16362
|
+
/** List client goals. */
|
|
16363
|
+
list: async (params, options) => rb.execute(
|
|
16364
|
+
getAdminClinicalClientGoals,
|
|
16365
|
+
{ query: params },
|
|
16366
|
+
options
|
|
16367
|
+
),
|
|
16368
|
+
/** Get client goal by ID. */
|
|
16369
|
+
get: async (id, options) => rb.execute(
|
|
16370
|
+
getAdminClinicalClientGoalsById,
|
|
16371
|
+
{ path: { id } },
|
|
16372
|
+
options
|
|
16373
|
+
),
|
|
16374
|
+
/** Create a client goal. */
|
|
16375
|
+
create: async (attributes, options) => rb.execute(
|
|
16376
|
+
postAdminClinicalClientGoals,
|
|
16377
|
+
{ body: { data: { type: "clinical-client-goal", attributes } } },
|
|
16378
|
+
options
|
|
16379
|
+
),
|
|
16380
|
+
/** Create a goal from a template. */
|
|
16381
|
+
createFromTemplate: async (attributes, options) => rb.execute(
|
|
16382
|
+
postAdminClinicalClientGoalsFromTemplate,
|
|
16383
|
+
{ body: { data: { type: "clinical-client-goal", attributes } } },
|
|
16384
|
+
options
|
|
16385
|
+
),
|
|
16386
|
+
/** Update a client goal. */
|
|
16387
|
+
update: async (id, attributes, options) => rb.execute(
|
|
16388
|
+
patchAdminClinicalClientGoalsById,
|
|
16389
|
+
{
|
|
16390
|
+
path: { id },
|
|
16391
|
+
body: { data: { type: "clinical-client-goal", id, attributes } }
|
|
16392
|
+
},
|
|
16393
|
+
options
|
|
16394
|
+
),
|
|
16395
|
+
/** Delete a client goal. */
|
|
16396
|
+
delete: async (id, options) => rb.executeDelete(
|
|
16397
|
+
deleteAdminClinicalClientGoalsById,
|
|
16398
|
+
{ path: { id } },
|
|
16399
|
+
options
|
|
16400
|
+
)
|
|
16401
|
+
},
|
|
16402
|
+
/** Manage patient supplement prescriptions. */
|
|
16403
|
+
clientSupplements: {
|
|
16404
|
+
/** List client supplements. */
|
|
16405
|
+
list: async (params, options) => rb.execute(
|
|
16406
|
+
getAdminClinicalClientSupplements,
|
|
16407
|
+
{ query: params },
|
|
16408
|
+
options
|
|
16409
|
+
),
|
|
16410
|
+
/** Get client supplement by ID. */
|
|
16411
|
+
get: async (id, options) => rb.execute(
|
|
16412
|
+
getAdminClinicalClientSupplementsById,
|
|
16413
|
+
{ path: { id } },
|
|
16414
|
+
options
|
|
16415
|
+
),
|
|
16416
|
+
/** Create a client supplement. */
|
|
16417
|
+
create: async (attributes, options) => rb.execute(
|
|
16418
|
+
postAdminClinicalClientSupplements,
|
|
16419
|
+
{
|
|
16420
|
+
body: { data: { type: "clinical-client-supplement", attributes } }
|
|
16421
|
+
},
|
|
16422
|
+
options
|
|
16423
|
+
),
|
|
16424
|
+
/** Update a client supplement. */
|
|
16425
|
+
update: async (id, attributes, options) => rb.execute(
|
|
16426
|
+
patchAdminClinicalClientSupplementsById,
|
|
16427
|
+
{
|
|
16428
|
+
path: { id },
|
|
16429
|
+
body: {
|
|
16430
|
+
data: { type: "clinical-client-supplement", id, attributes }
|
|
16431
|
+
}
|
|
16432
|
+
},
|
|
16433
|
+
options
|
|
16434
|
+
),
|
|
16435
|
+
/** Delete a client supplement. */
|
|
16436
|
+
delete: async (id, options) => rb.executeDelete(
|
|
16437
|
+
deleteAdminClinicalClientSupplementsById,
|
|
16438
|
+
{ path: { id } },
|
|
16439
|
+
options
|
|
16440
|
+
)
|
|
16441
|
+
},
|
|
16442
|
+
/** View and update clinical delivery audit records. */
|
|
16443
|
+
deliveries: {
|
|
16444
|
+
/** List deliveries. */
|
|
16445
|
+
list: async (params, options) => rb.execute(
|
|
16446
|
+
getAdminClinicalDeliveries,
|
|
16447
|
+
{ query: params },
|
|
16448
|
+
options
|
|
16449
|
+
),
|
|
16450
|
+
/** List deliveries by session. */
|
|
16451
|
+
listBySession: async (params, options) => rb.execute(
|
|
16452
|
+
getAdminClinicalDeliveriesBySession,
|
|
16453
|
+
{ query: params },
|
|
16454
|
+
options
|
|
16455
|
+
),
|
|
16456
|
+
/** Get delivery by ID. */
|
|
16457
|
+
get: async (id, options) => rb.execute(
|
|
16458
|
+
getAdminClinicalDeliveriesById,
|
|
16459
|
+
{ path: { id } },
|
|
16460
|
+
options
|
|
16461
|
+
),
|
|
16462
|
+
/** Create a delivery record. */
|
|
16463
|
+
create: async (attributes, options) => rb.execute(
|
|
16464
|
+
postAdminClinicalDeliveries,
|
|
16465
|
+
{ body: { data: { type: "clinical-delivery", attributes } } },
|
|
16466
|
+
options
|
|
16467
|
+
),
|
|
16468
|
+
/** Update a delivery. */
|
|
16469
|
+
update: async (id, attributes, options) => rb.execute(
|
|
16470
|
+
patchAdminClinicalDeliveriesById,
|
|
16471
|
+
{
|
|
16472
|
+
path: { id },
|
|
16473
|
+
body: { data: { type: "clinical-delivery", id, attributes } }
|
|
16474
|
+
},
|
|
16475
|
+
options
|
|
16476
|
+
)
|
|
16477
|
+
},
|
|
16478
|
+
/** Manage practice resource assignments to patients. */
|
|
16479
|
+
clientResourceAssignments: {
|
|
16480
|
+
/** List resource assignments. */
|
|
16481
|
+
list: async (params, options) => rb.execute(
|
|
16482
|
+
getAdminClinicalClientResourceAssignments,
|
|
16483
|
+
{ query: params },
|
|
16484
|
+
options
|
|
16485
|
+
),
|
|
16486
|
+
/** Get assignment by ID. */
|
|
16487
|
+
get: async (id, options) => rb.execute(
|
|
16488
|
+
getAdminClinicalClientResourceAssignmentsById,
|
|
16489
|
+
{ path: { id } },
|
|
16490
|
+
options
|
|
16491
|
+
),
|
|
16492
|
+
/** Create a resource assignment. */
|
|
16493
|
+
create: async (attributes, options) => rb.execute(
|
|
16494
|
+
postAdminClinicalClientResourceAssignments,
|
|
16495
|
+
{
|
|
16496
|
+
body: {
|
|
16497
|
+
data: { type: "clinical-client-resource-assignment", attributes }
|
|
16498
|
+
}
|
|
16499
|
+
},
|
|
16500
|
+
options
|
|
16501
|
+
),
|
|
16502
|
+
/** Update a resource assignment. */
|
|
16503
|
+
update: async (id, attributes, options) => rb.execute(
|
|
16504
|
+
patchAdminClinicalClientResourceAssignmentsById,
|
|
16505
|
+
{
|
|
16506
|
+
path: { id },
|
|
16507
|
+
body: {
|
|
16508
|
+
data: {
|
|
16509
|
+
type: "clinical-client-resource-assignment",
|
|
16510
|
+
id,
|
|
16511
|
+
attributes
|
|
16512
|
+
}
|
|
16513
|
+
}
|
|
16514
|
+
},
|
|
16515
|
+
options
|
|
16516
|
+
),
|
|
16517
|
+
/** Delete a resource assignment. */
|
|
16518
|
+
delete: async (id, options) => rb.executeDelete(
|
|
16519
|
+
deleteAdminClinicalClientResourceAssignmentsById,
|
|
16520
|
+
{ path: { id } },
|
|
16521
|
+
options
|
|
16522
|
+
)
|
|
16523
|
+
},
|
|
16524
|
+
/** View AI supplement recommendation cache entries. */
|
|
16525
|
+
supplementRecCache: {
|
|
16526
|
+
/** List supplement cache entries. */
|
|
16527
|
+
list: async (params, options) => rb.execute(
|
|
16528
|
+
getAdminClinicalSupplementRecCache,
|
|
16529
|
+
{ query: params },
|
|
16530
|
+
options
|
|
16531
|
+
),
|
|
16532
|
+
/** Get cache entry by ID. */
|
|
16533
|
+
get: async (id, options) => rb.execute(
|
|
16534
|
+
getAdminClinicalSupplementRecCacheById,
|
|
16535
|
+
{ path: { id } },
|
|
16536
|
+
options
|
|
16537
|
+
),
|
|
16538
|
+
/** Update a cache entry. */
|
|
16539
|
+
update: async (id, attributes, options) => rb.execute(
|
|
16540
|
+
patchAdminClinicalSupplementRecCacheById,
|
|
16541
|
+
{
|
|
16542
|
+
path: { id },
|
|
16543
|
+
body: {
|
|
16544
|
+
data: { type: "clinical-supplement-rec-cache", id, attributes }
|
|
16545
|
+
}
|
|
16546
|
+
},
|
|
16547
|
+
options
|
|
16548
|
+
)
|
|
15032
16549
|
}
|
|
15033
16550
|
};
|
|
15034
16551
|
}
|