@gpt-platform/admin 0.10.1 → 0.10.3
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 +810 -93
- package/dist/index.d.ts +810 -93
- package/dist/index.js +97 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +97 -17
- package/dist/index.mjs.map +1 -1
- package/llms.txt +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -855,7 +855,7 @@ var createClient = (config = {}) => {
|
|
|
855
855
|
};
|
|
856
856
|
|
|
857
857
|
// src/version.ts
|
|
858
|
-
var SDK_VERSION = "0.10.
|
|
858
|
+
var SDK_VERSION = "0.10.3";
|
|
859
859
|
var DEFAULT_API_VERSION = "2026-03-23";
|
|
860
860
|
|
|
861
861
|
// src/base-client.ts
|
|
@@ -2144,6 +2144,11 @@ var patchAdminIsvCrmEntityTypesById = (options) => (options.client ?? client).pa
|
|
|
2144
2144
|
...options.headers
|
|
2145
2145
|
}
|
|
2146
2146
|
});
|
|
2147
|
+
var getAdminClinicalMealPlansByPatient = (options) => (options.client ?? client).get({
|
|
2148
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2149
|
+
url: "/admin/clinical/meal-plans/by-patient",
|
|
2150
|
+
...options
|
|
2151
|
+
});
|
|
2147
2152
|
var postAdminCampaignsSequenceSteps = (options) => (options.client ?? client).post({
|
|
2148
2153
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2149
2154
|
url: "/admin/campaigns/sequence-steps",
|
|
@@ -2827,6 +2832,11 @@ var patchAdminStorageFilesByIdRestore = (options) => (options.client ?? client).
|
|
|
2827
2832
|
...options.headers
|
|
2828
2833
|
}
|
|
2829
2834
|
});
|
|
2835
|
+
var getAdminClinicalNotesByPatient = (options) => (options.client ?? client).get({
|
|
2836
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2837
|
+
url: "/admin/clinical/notes/by-patient",
|
|
2838
|
+
...options
|
|
2839
|
+
});
|
|
2830
2840
|
var patchAdminCrawlerSchedulesByIdDisable = (options) => (options.client ?? client).patch({
|
|
2831
2841
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2832
2842
|
url: "/admin/crawler/schedules/{id}/disable",
|
|
@@ -3113,6 +3123,11 @@ var postAdminSupportTags = (options) => (options.client ?? client).post({
|
|
|
3113
3123
|
...options.headers
|
|
3114
3124
|
}
|
|
3115
3125
|
});
|
|
3126
|
+
var getAdminClinicalNotesByWorkspace = (options) => (options.client ?? client).get({
|
|
3127
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3128
|
+
url: "/admin/clinical/notes/by-workspace",
|
|
3129
|
+
...options
|
|
3130
|
+
});
|
|
3116
3131
|
var deleteAdminCrmCustomEntitiesById = (options) => (options.client ?? client).delete({
|
|
3117
3132
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3118
3133
|
url: "/admin/crm/custom-entities/{id}",
|
|
@@ -13270,13 +13285,16 @@ function createSocialNamespace(rb) {
|
|
|
13270
13285
|
},
|
|
13271
13286
|
/**
|
|
13272
13287
|
* Create a new social campaign.
|
|
13273
|
-
*
|
|
13274
|
-
*
|
|
13288
|
+
*
|
|
13289
|
+
* @param workspaceId - Workspace ID (passed as query parameter for tenant resolution).
|
|
13290
|
+
* @param attributes - Campaign attributes (name, content_brief, etc.).
|
|
13291
|
+
* @param options - Optional request-level overrides.
|
|
13275
13292
|
*/
|
|
13276
|
-
create: async (attributes, options) => {
|
|
13293
|
+
create: async (workspaceId, attributes, options) => {
|
|
13277
13294
|
return rb.execute(
|
|
13278
13295
|
postAdminSocialCampaigns,
|
|
13279
13296
|
{
|
|
13297
|
+
query: { workspace_id: workspaceId },
|
|
13280
13298
|
body: {
|
|
13281
13299
|
data: { type: "social-campaign", attributes }
|
|
13282
13300
|
}
|
|
@@ -18378,7 +18396,7 @@ function createClinicalNamespace(rb) {
|
|
|
18378
18396
|
*/
|
|
18379
18397
|
listArchived: async (params, options) => rb.execute(
|
|
18380
18398
|
getAdminClinicalGoalTemplatesArchived,
|
|
18381
|
-
params
|
|
18399
|
+
{ query: params },
|
|
18382
18400
|
options
|
|
18383
18401
|
),
|
|
18384
18402
|
/**
|
|
@@ -18501,7 +18519,7 @@ function createClinicalNamespace(rb) {
|
|
|
18501
18519
|
*/
|
|
18502
18520
|
listArchivedCatalog: async (params, options) => rb.execute(
|
|
18503
18521
|
getAdminClinicalGoalTemplatesCatalogArchived,
|
|
18504
|
-
params ?? {},
|
|
18522
|
+
{ query: params ?? {} },
|
|
18505
18523
|
options
|
|
18506
18524
|
),
|
|
18507
18525
|
/**
|
|
@@ -18699,7 +18717,7 @@ function createClinicalNamespace(rb) {
|
|
|
18699
18717
|
*/
|
|
18700
18718
|
listArchived: async (params, options) => rb.execute(
|
|
18701
18719
|
getAdminClinicalPracticeToolsArchived,
|
|
18702
|
-
params
|
|
18720
|
+
{ query: params },
|
|
18703
18721
|
options
|
|
18704
18722
|
),
|
|
18705
18723
|
/**
|
|
@@ -18822,7 +18840,7 @@ function createClinicalNamespace(rb) {
|
|
|
18822
18840
|
*/
|
|
18823
18841
|
listArchivedCatalog: async (params, options) => rb.execute(
|
|
18824
18842
|
getAdminClinicalPracticeToolsCatalogArchived,
|
|
18825
|
-
params ?? {},
|
|
18843
|
+
{ query: params ?? {} },
|
|
18826
18844
|
options
|
|
18827
18845
|
),
|
|
18828
18846
|
/**
|
|
@@ -19024,7 +19042,7 @@ function createClinicalNamespace(rb) {
|
|
|
19024
19042
|
*/
|
|
19025
19043
|
listArchived: async (params, options) => rb.execute(
|
|
19026
19044
|
getAdminClinicalPracticeResourcesArchived,
|
|
19027
|
-
params
|
|
19045
|
+
{ query: params },
|
|
19028
19046
|
options
|
|
19029
19047
|
),
|
|
19030
19048
|
/**
|
|
@@ -19151,7 +19169,7 @@ function createClinicalNamespace(rb) {
|
|
|
19151
19169
|
*/
|
|
19152
19170
|
listArchivedCatalog: async (params, options) => rb.execute(
|
|
19153
19171
|
getAdminClinicalPracticeResourcesCatalogArchived,
|
|
19154
|
-
params ?? {},
|
|
19172
|
+
{ query: params ?? {} },
|
|
19155
19173
|
options
|
|
19156
19174
|
),
|
|
19157
19175
|
/**
|
|
@@ -19374,6 +19392,32 @@ function createClinicalNamespace(rb) {
|
|
|
19374
19392
|
{ query: params },
|
|
19375
19393
|
options
|
|
19376
19394
|
),
|
|
19395
|
+
/**
|
|
19396
|
+
* List all notes for a patient across all sessions.
|
|
19397
|
+
*
|
|
19398
|
+
* @param patientId - Patient UUID
|
|
19399
|
+
* @param params - Filter/pagination parameters
|
|
19400
|
+
* @param options - Request options
|
|
19401
|
+
* @returns Array of {@link ClinicalNote} records
|
|
19402
|
+
*/
|
|
19403
|
+
listByPatient: async (patientId, params, options) => rb.execute(
|
|
19404
|
+
getAdminClinicalNotesByPatient,
|
|
19405
|
+
{ query: { patient_id: patientId, ...params } },
|
|
19406
|
+
options
|
|
19407
|
+
),
|
|
19408
|
+
/**
|
|
19409
|
+
* List all notes in a workspace.
|
|
19410
|
+
*
|
|
19411
|
+
* @param workspaceId - Workspace UUID
|
|
19412
|
+
* @param params - Filter/pagination parameters
|
|
19413
|
+
* @param options - Request options
|
|
19414
|
+
* @returns Array of {@link ClinicalNote} records
|
|
19415
|
+
*/
|
|
19416
|
+
listByWorkspace: async (workspaceId, params, options) => rb.execute(
|
|
19417
|
+
getAdminClinicalNotesByWorkspace,
|
|
19418
|
+
{ query: { workspace_id: workspaceId, ...params } },
|
|
19419
|
+
options
|
|
19420
|
+
),
|
|
19377
19421
|
/** Get note by ID. */
|
|
19378
19422
|
get: async (id, options) => rb.execute(
|
|
19379
19423
|
getAdminClinicalNotesById,
|
|
@@ -19457,7 +19501,7 @@ function createClinicalNamespace(rb) {
|
|
|
19457
19501
|
*/
|
|
19458
19502
|
listArchived: async (params, options) => rb.execute(
|
|
19459
19503
|
getAdminClinicalNotesArchived,
|
|
19460
|
-
params
|
|
19504
|
+
{ query: params },
|
|
19461
19505
|
options
|
|
19462
19506
|
),
|
|
19463
19507
|
/**
|
|
@@ -19627,7 +19671,7 @@ function createClinicalNamespace(rb) {
|
|
|
19627
19671
|
*/
|
|
19628
19672
|
listArchived: async (params, options) => rb.execute(
|
|
19629
19673
|
getAdminClinicalHealthMetricsArchived,
|
|
19630
|
-
params
|
|
19674
|
+
{ query: params },
|
|
19631
19675
|
options
|
|
19632
19676
|
)
|
|
19633
19677
|
},
|
|
@@ -19645,6 +19689,19 @@ function createClinicalNamespace(rb) {
|
|
|
19645
19689
|
{ query: params },
|
|
19646
19690
|
options
|
|
19647
19691
|
),
|
|
19692
|
+
/**
|
|
19693
|
+
* List all meal plans for a patient across all sessions.
|
|
19694
|
+
*
|
|
19695
|
+
* @param patientId - Patient UUID
|
|
19696
|
+
* @param params - Filter/pagination parameters
|
|
19697
|
+
* @param options - Request options
|
|
19698
|
+
* @returns Array of {@link ClinicalMealPlan} records
|
|
19699
|
+
*/
|
|
19700
|
+
listByPatient: async (patientId, params, options) => rb.execute(
|
|
19701
|
+
getAdminClinicalMealPlansByPatient,
|
|
19702
|
+
{ query: { patient_id: patientId, ...params } },
|
|
19703
|
+
options
|
|
19704
|
+
),
|
|
19648
19705
|
/** Get meal plan by ID. */
|
|
19649
19706
|
get: async (id, options) => rb.execute(
|
|
19650
19707
|
getAdminClinicalMealPlansById,
|
|
@@ -19728,7 +19785,7 @@ function createClinicalNamespace(rb) {
|
|
|
19728
19785
|
*/
|
|
19729
19786
|
listArchived: async (params, options) => rb.execute(
|
|
19730
19787
|
getAdminClinicalMealPlansArchived,
|
|
19731
|
-
params
|
|
19788
|
+
{ query: params },
|
|
19732
19789
|
options
|
|
19733
19790
|
)
|
|
19734
19791
|
},
|
|
@@ -19835,7 +19892,7 @@ function createClinicalNamespace(rb) {
|
|
|
19835
19892
|
*/
|
|
19836
19893
|
listArchived: async (params, options) => rb.execute(
|
|
19837
19894
|
getAdminClinicalClientGoalsArchived,
|
|
19838
|
-
params
|
|
19895
|
+
{ query: params },
|
|
19839
19896
|
options
|
|
19840
19897
|
)
|
|
19841
19898
|
},
|
|
@@ -19940,9 +19997,32 @@ function createClinicalNamespace(rb) {
|
|
|
19940
19997
|
*/
|
|
19941
19998
|
listArchived: async (params, options) => rb.execute(
|
|
19942
19999
|
getAdminClinicalClientSupplementsArchived,
|
|
19943
|
-
params
|
|
20000
|
+
{ query: params },
|
|
19944
20001
|
options
|
|
19945
|
-
)
|
|
20002
|
+
),
|
|
20003
|
+
/**
|
|
20004
|
+
* Create multiple client supplements in a single request.
|
|
20005
|
+
*
|
|
20006
|
+
* @param attrs - Bulk creation attributes with workspace_id and supplements array
|
|
20007
|
+
* @param options - Request options
|
|
20008
|
+
* @returns Array of creation results with id and status per supplement
|
|
20009
|
+
*
|
|
20010
|
+
* @example
|
|
20011
|
+
* ```typescript
|
|
20012
|
+
* const results = await admin.clinical.clientSupplements.bulkCreate({
|
|
20013
|
+
* workspace_id: 'ws_123',
|
|
20014
|
+
* supplements: [
|
|
20015
|
+
* { patient_id: 'pat_1', name: 'Vitamin D3', source: 'fullscript' },
|
|
20016
|
+
* { patient_id: 'pat_1', name: 'Omega-3', source: 'fullscript' },
|
|
20017
|
+
* ],
|
|
20018
|
+
* });
|
|
20019
|
+
* ```
|
|
20020
|
+
*/
|
|
20021
|
+
bulkCreate: async (attrs, options) => rb.rawPost(
|
|
20022
|
+
`/admin/clinical/client-supplements/bulk`,
|
|
20023
|
+
{ data: attrs },
|
|
20024
|
+
options
|
|
20025
|
+
).then((r) => r.data)
|
|
19946
20026
|
},
|
|
19947
20027
|
/** View and update clinical delivery audit records. */
|
|
19948
20028
|
deliveries: {
|
|
@@ -20099,7 +20179,7 @@ function createClinicalNamespace(rb) {
|
|
|
20099
20179
|
*/
|
|
20100
20180
|
listArchived: async (params, options) => rb.execute(
|
|
20101
20181
|
getAdminClinicalClientResourceAssignmentsArchived,
|
|
20102
|
-
params
|
|
20182
|
+
{ query: params },
|
|
20103
20183
|
options
|
|
20104
20184
|
)
|
|
20105
20185
|
},
|