@liaisongroup/assist-api-js-client 1.5.182 → 1.5.183
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/openapi.d.ts +136 -94
- package/dist/openapi.json +314 -262
- package/dist/openapi.zod.d.ts +7027 -8088
- package/dist/openapi.zod.js +86 -83
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -21,7 +21,17 @@ declare namespace Components {
|
|
|
21
21
|
links: Links;
|
|
22
22
|
included?: ActionInclusions;
|
|
23
23
|
}
|
|
24
|
-
export
|
|
24
|
+
export interface ActionAttributes {
|
|
25
|
+
name?: string;
|
|
26
|
+
updated_at?: string; // date-time
|
|
27
|
+
created_at?: string; // date-time
|
|
28
|
+
active?: boolean;
|
|
29
|
+
trigger_id?: string; // uuid
|
|
30
|
+
action_type?: "at_time" | "calculation" | "create_or_update_case" | "create_task" | "each_case" | "each_task" | "extract_questionnaire_response" | "find_cases" | "find_tasks" | "get_case_from_task" | "get_value" | "hl7_message" | "internal_event" | "trigger_questionnaire" | "update_resource" | "update_task";
|
|
31
|
+
config?: {
|
|
32
|
+
[key: string]: never;
|
|
33
|
+
} | AtTimeConfig | CalculationConfig | CreateOrUpdateCaseConfig | CreateTaskConfig | ExtractQuestionnaireResponseConfig | FindCasesOrTasksConfig | GetValueConfig | InternalEventConfig | TriggerQuestionnaireConfig | UpdateResourceConfig | UpdateTaskConfig;
|
|
34
|
+
}
|
|
25
35
|
export interface ActionData {
|
|
26
36
|
type: "action";
|
|
27
37
|
id: string; // uuid
|
|
@@ -94,7 +104,7 @@ declare namespace Components {
|
|
|
94
104
|
id: string;
|
|
95
105
|
attributes: ActionTypeAttributes;
|
|
96
106
|
}
|
|
97
|
-
export type ActionTypeInputsOutputs = ("resource_instance" | "value" | "
|
|
107
|
+
export type ActionTypeInputsOutputs = ("attributes" | "case" | "cases" | "resource_instance" | "task" | "tasks" | "value" | "values")[];
|
|
98
108
|
export interface ActionTypes {
|
|
99
109
|
data: ActionTypeData[];
|
|
100
110
|
meta: Meta;
|
|
@@ -107,6 +117,13 @@ declare namespace Components {
|
|
|
107
117
|
included?: ActionInclusions;
|
|
108
118
|
}
|
|
109
119
|
export type AdministrableResources = ("user" | "field" | "template" | "saved_filter" | "list" | "tag" | "role")[];
|
|
120
|
+
export interface AtTimeConfig {
|
|
121
|
+
/**
|
|
122
|
+
* A cron expression that is used to schedule the action.
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
cron: string;
|
|
126
|
+
}
|
|
110
127
|
export interface AuthApplication {
|
|
111
128
|
data: AuthApplicationData;
|
|
112
129
|
links: Links;
|
|
@@ -141,17 +158,9 @@ declare namespace Components {
|
|
|
141
158
|
unread_notification_count: number;
|
|
142
159
|
};
|
|
143
160
|
}
|
|
144
|
-
export interface
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
created_at?: string; // date-time
|
|
148
|
-
active?: boolean;
|
|
149
|
-
trigger_id?: string; // uuid
|
|
150
|
-
action_type?: "calculation";
|
|
151
|
-
config?: {
|
|
152
|
-
fields: string[];
|
|
153
|
-
operation: "sum" | "average" | "minimum" | "maximum";
|
|
154
|
-
};
|
|
161
|
+
export interface CalculationConfig {
|
|
162
|
+
fields: string[];
|
|
163
|
+
operation: "sum" | "average" | "minimum" | "maximum";
|
|
155
164
|
}
|
|
156
165
|
export interface Case {
|
|
157
166
|
data: CaseData;
|
|
@@ -320,23 +329,20 @@ declare namespace Components {
|
|
|
320
329
|
meta: Meta;
|
|
321
330
|
links: Links;
|
|
322
331
|
}
|
|
323
|
-
export interface
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
*/
|
|
338
|
-
template_id: string; // uuid
|
|
339
|
-
};
|
|
332
|
+
export interface CreateOrUpdateCaseConfig {
|
|
333
|
+
/**
|
|
334
|
+
* The fields that are used to identify the case. If no identifying fields are provided, a new case will be created.
|
|
335
|
+
*/
|
|
336
|
+
identifying_fields: string[];
|
|
337
|
+
/**
|
|
338
|
+
* The template ID of the case to create or update.
|
|
339
|
+
*/
|
|
340
|
+
template_id: string; // uuid
|
|
341
|
+
}
|
|
342
|
+
export interface CreateTaskConfig {
|
|
343
|
+
template_id: string; // uuid
|
|
344
|
+
title?: string;
|
|
345
|
+
status?: "completed" | "in_progress" | "cancelled" | "pending" | "accepted";
|
|
340
346
|
}
|
|
341
347
|
/**
|
|
342
348
|
* Applied when the field_type is `integer` - sets the currency to display the field in.
|
|
@@ -365,6 +371,23 @@ declare namespace Components {
|
|
|
365
371
|
};
|
|
366
372
|
}[];
|
|
367
373
|
}
|
|
374
|
+
export interface ExtractQuestionnaireResponseConfig {
|
|
375
|
+
/**
|
|
376
|
+
* The key of the field to get the questionnaire ID from.
|
|
377
|
+
*
|
|
378
|
+
*/
|
|
379
|
+
questionnaire_id_field_key: string;
|
|
380
|
+
/**
|
|
381
|
+
* The key of the field to get the NHS number from.
|
|
382
|
+
*
|
|
383
|
+
*/
|
|
384
|
+
nhs_number_field_key: string;
|
|
385
|
+
/**
|
|
386
|
+
* The key of the field to set the questionnaire response to.
|
|
387
|
+
*
|
|
388
|
+
*/
|
|
389
|
+
questionnaire_response_field_key: string;
|
|
390
|
+
}
|
|
368
391
|
export interface Field {
|
|
369
392
|
data: FieldData;
|
|
370
393
|
links: Links;
|
|
@@ -899,21 +922,16 @@ declare namespace Components {
|
|
|
899
922
|
}[];
|
|
900
923
|
links?: Links;
|
|
901
924
|
}
|
|
902
|
-
export interface
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
* If the key is prefixed with "case/" then the value is looked up in the associated case, otherwise the value is looked up in the task or case itself.
|
|
913
|
-
*
|
|
914
|
-
*/
|
|
915
|
-
field_key: string;
|
|
916
|
-
};
|
|
925
|
+
export interface FindCasesOrTasksConfig {
|
|
926
|
+
rules: SavedFilterCondition[];
|
|
927
|
+
}
|
|
928
|
+
export interface GetValueConfig {
|
|
929
|
+
/**
|
|
930
|
+
* The key of the field to get the value from.
|
|
931
|
+
* If the key is prefixed with "case/" then the value is looked up in the associated case, otherwise the value is looked up in the task or case itself.
|
|
932
|
+
*
|
|
933
|
+
*/
|
|
934
|
+
field_key: string;
|
|
917
935
|
}
|
|
918
936
|
export interface HL7Message {
|
|
919
937
|
data: HL7MessageData;
|
|
@@ -942,25 +960,17 @@ declare namespace Components {
|
|
|
942
960
|
export interface IdAttribute {
|
|
943
961
|
id?: string; // uuid
|
|
944
962
|
}
|
|
945
|
-
export interface
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
/**
|
|
957
|
-
* From the matchers available for the resource on the resource attributes endpoint.
|
|
958
|
-
*
|
|
959
|
-
*/
|
|
960
|
-
matcher: string;
|
|
961
|
-
value: any;
|
|
962
|
-
}[];
|
|
963
|
-
};
|
|
963
|
+
export interface InternalEventConfig {
|
|
964
|
+
resource: Type;
|
|
965
|
+
actions: ("create" | "update" | "destroy")[];
|
|
966
|
+
conditions?: {
|
|
967
|
+
/**
|
|
968
|
+
* From the matchers available for the resource on the resource attributes endpoint.
|
|
969
|
+
*
|
|
970
|
+
*/
|
|
971
|
+
matcher: string;
|
|
972
|
+
value: any;
|
|
973
|
+
}[];
|
|
964
974
|
}
|
|
965
975
|
export interface InterpolatedTemplateName {
|
|
966
976
|
/**
|
|
@@ -2216,32 +2226,26 @@ declare namespace Components {
|
|
|
2216
2226
|
}[];
|
|
2217
2227
|
links?: Links;
|
|
2218
2228
|
}
|
|
2219
|
-
export interface
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
config?: {
|
|
2227
|
-
/**
|
|
2228
|
-
* The ID of the questionnaire to trigger in PKB.
|
|
2229
|
-
* This is the ID of the questionnaire as it appears in the PKB API.
|
|
2230
|
-
*
|
|
2231
|
-
*/
|
|
2232
|
-
pkb_questionnaire_id: string;
|
|
2233
|
-
};
|
|
2229
|
+
export interface TriggerQuestionnaireConfig {
|
|
2230
|
+
/**
|
|
2231
|
+
* The ID of the questionnaire to trigger in PKB.
|
|
2232
|
+
* This is the ID of the questionnaire as it appears in the PKB API.
|
|
2233
|
+
*
|
|
2234
|
+
*/
|
|
2235
|
+
pkb_questionnaire_id: string;
|
|
2234
2236
|
}
|
|
2235
2237
|
export type Type = "action" | "case" | "case_activity_log" | "field" | "field_setting" | "list" | "list_saved_filter" | "note" | "notification" | "push_subscription" | "role" | "saved_filter" | "sso_config" | "tag" | "task" | "team" | "team_member" | "template" | "user";
|
|
2236
|
-
export interface
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2238
|
+
export interface UpdateResourceConfig {
|
|
2239
|
+
field_to_update: string;
|
|
2240
|
+
}
|
|
2241
|
+
export interface UpdateTaskConfig {
|
|
2242
|
+
/**
|
|
2243
|
+
* Optional map of task attribute updates to apply.
|
|
2244
|
+
* If omitted or empty, the action applies no attribute updates.
|
|
2245
|
+
*
|
|
2246
|
+
*/
|
|
2247
|
+
attribute_changes?: {
|
|
2248
|
+
[key: string]: any;
|
|
2245
2249
|
};
|
|
2246
2250
|
}
|
|
2247
2251
|
export interface User {
|
|
@@ -3752,6 +3756,21 @@ declare namespace Paths {
|
|
|
3752
3756
|
export type $403 = Components.Schemas.Errors;
|
|
3753
3757
|
}
|
|
3754
3758
|
}
|
|
3759
|
+
namespace PerformAction {
|
|
3760
|
+
namespace Parameters {
|
|
3761
|
+
export type Id = string; // uuid
|
|
3762
|
+
}
|
|
3763
|
+
export interface PathParameters {
|
|
3764
|
+
id: Parameters.Id /* uuid */;
|
|
3765
|
+
}
|
|
3766
|
+
namespace Responses {
|
|
3767
|
+
export type $200 = Components.Schemas.Action;
|
|
3768
|
+
export type $401 = Components.Schemas.Errors;
|
|
3769
|
+
export type $403 = Components.Schemas.Errors;
|
|
3770
|
+
export type $404 = Components.Schemas.Errors;
|
|
3771
|
+
export type $422 = Components.Schemas.Errors;
|
|
3772
|
+
}
|
|
3773
|
+
}
|
|
3755
3774
|
namespace PreviewXsltMap {
|
|
3756
3775
|
namespace Parameters {
|
|
3757
3776
|
export type Id = string; // uuid
|
|
@@ -4409,6 +4428,14 @@ export interface OperationMethods {
|
|
|
4409
4428
|
data?: any,
|
|
4410
4429
|
config?: AxiosRequestConfig
|
|
4411
4430
|
): OperationResponse<Paths.DeleteAction.Responses.$204>
|
|
4431
|
+
/**
|
|
4432
|
+
* perform_action - Perform action
|
|
4433
|
+
*/
|
|
4434
|
+
'perform_action'(
|
|
4435
|
+
parameters?: Parameters<Paths.PerformAction.PathParameters> | null,
|
|
4436
|
+
data?: any,
|
|
4437
|
+
config?: AxiosRequestConfig
|
|
4438
|
+
): OperationResponse<Paths.PerformAction.Responses.$200>
|
|
4412
4439
|
/**
|
|
4413
4440
|
* get_action_errors - Get action errors
|
|
4414
4441
|
*/
|
|
@@ -5468,6 +5495,16 @@ export interface PathsDictionary {
|
|
|
5468
5495
|
config?: AxiosRequestConfig
|
|
5469
5496
|
): OperationResponse<Paths.DeleteAction.Responses.$204>
|
|
5470
5497
|
}
|
|
5498
|
+
['/actions/{id}/perform']: {
|
|
5499
|
+
/**
|
|
5500
|
+
* perform_action - Perform action
|
|
5501
|
+
*/
|
|
5502
|
+
'post'(
|
|
5503
|
+
parameters?: Parameters<Paths.PerformAction.PathParameters> | null,
|
|
5504
|
+
data?: any,
|
|
5505
|
+
config?: AxiosRequestConfig
|
|
5506
|
+
): OperationResponse<Paths.PerformAction.Responses.$200>
|
|
5507
|
+
}
|
|
5471
5508
|
['/action_errors']: {
|
|
5472
5509
|
/**
|
|
5473
5510
|
* get_action_errors - Get action errors
|
|
@@ -6493,13 +6530,14 @@ export type ActionTypeInputsOutputs = Components.Schemas.ActionTypeInputsOutputs
|
|
|
6493
6530
|
export type ActionTypes = Components.Schemas.ActionTypes;
|
|
6494
6531
|
export type Actions = Components.Schemas.Actions;
|
|
6495
6532
|
export type AdministrableResources = Components.Schemas.AdministrableResources;
|
|
6533
|
+
export type AtTimeConfig = Components.Schemas.AtTimeConfig;
|
|
6496
6534
|
export type AuthApplication = Components.Schemas.AuthApplication;
|
|
6497
6535
|
export type AuthApplicationAttributes = Components.Schemas.AuthApplicationAttributes;
|
|
6498
6536
|
export type AuthApplicationData = Components.Schemas.AuthApplicationData;
|
|
6499
6537
|
export type AuthApplications = Components.Schemas.AuthApplications;
|
|
6500
6538
|
export type BroadcastEvent = Components.Schemas.BroadcastEvent;
|
|
6501
6539
|
export type BroadcastToEvent = Components.Schemas.BroadcastToEvent;
|
|
6502
|
-
export type
|
|
6540
|
+
export type CalculationConfig = Components.Schemas.CalculationConfig;
|
|
6503
6541
|
export type Case = Components.Schemas.Case;
|
|
6504
6542
|
export type CaseActivityLog = Components.Schemas.CaseActivityLog;
|
|
6505
6543
|
export type CaseActivityLogData = Components.Schemas.CaseActivityLogData;
|
|
@@ -6523,10 +6561,12 @@ export type Config = Components.Schemas.Config;
|
|
|
6523
6561
|
export type ConfigAttributes = Components.Schemas.ConfigAttributes;
|
|
6524
6562
|
export type ConfigData = Components.Schemas.ConfigData;
|
|
6525
6563
|
export type Configs = Components.Schemas.Configs;
|
|
6526
|
-
export type
|
|
6564
|
+
export type CreateOrUpdateCaseConfig = Components.Schemas.CreateOrUpdateCaseConfig;
|
|
6565
|
+
export type CreateTaskConfig = Components.Schemas.CreateTaskConfig;
|
|
6527
6566
|
export type Currency = Components.Schemas.Currency;
|
|
6528
6567
|
export type DisplayCurrencySubunit = Components.Schemas.DisplayCurrencySubunit;
|
|
6529
6568
|
export type Errors = Components.Schemas.Errors;
|
|
6569
|
+
export type ExtractQuestionnaireResponseConfig = Components.Schemas.ExtractQuestionnaireResponseConfig;
|
|
6530
6570
|
export type Field = Components.Schemas.Field;
|
|
6531
6571
|
export type FieldAttributes = Components.Schemas.FieldAttributes;
|
|
6532
6572
|
export type FieldAttributes/properties/description = Components.Schemas.FieldAttributes.Properties.Description;
|
|
@@ -6560,14 +6600,15 @@ export type FieldSettingsRelationship = Components.Schemas.FieldSettingsRelation
|
|
|
6560
6600
|
export type FieldUpdateAttributes = Components.Schemas.FieldUpdateAttributes;
|
|
6561
6601
|
export type Fields = Components.Schemas.Fields;
|
|
6562
6602
|
export type FieldsRelationship = Components.Schemas.FieldsRelationship;
|
|
6563
|
-
export type
|
|
6603
|
+
export type FindCasesOrTasksConfig = Components.Schemas.FindCasesOrTasksConfig;
|
|
6604
|
+
export type GetValueConfig = Components.Schemas.GetValueConfig;
|
|
6564
6605
|
export type HL7Message = Components.Schemas.HL7Message;
|
|
6565
6606
|
export type HL7MessageAttributes = Components.Schemas.HL7MessageAttributes;
|
|
6566
6607
|
export type HL7MessageData = Components.Schemas.HL7MessageData;
|
|
6567
6608
|
export type HL7MessageUpdateAttributes = Components.Schemas.HL7MessageUpdateAttributes;
|
|
6568
6609
|
export type HL7Messages = Components.Schemas.HL7Messages;
|
|
6569
6610
|
export type IdAttribute = Components.Schemas.IdAttribute;
|
|
6570
|
-
export type
|
|
6611
|
+
export type InternalEventConfig = Components.Schemas.InternalEventConfig;
|
|
6571
6612
|
export type InterpolatedTemplateName = Components.Schemas.InterpolatedTemplateName;
|
|
6572
6613
|
export type KnownConfigIDs = Components.Schemas.KnownConfigIDs;
|
|
6573
6614
|
export type Links = Components.Schemas.Links;
|
|
@@ -6757,9 +6798,10 @@ export type TemplateSchemaItem = Components.Schemas.TemplateSchemaItem;
|
|
|
6757
6798
|
export type TemplateSchemaItems = Components.Schemas.TemplateSchemaItems;
|
|
6758
6799
|
export type Templates = Components.Schemas.Templates;
|
|
6759
6800
|
export type TemplatesRelationship = Components.Schemas.TemplatesRelationship;
|
|
6760
|
-
export type
|
|
6801
|
+
export type TriggerQuestionnaireConfig = Components.Schemas.TriggerQuestionnaireConfig;
|
|
6761
6802
|
export type Type = Components.Schemas.Type;
|
|
6762
|
-
export type
|
|
6803
|
+
export type UpdateResourceConfig = Components.Schemas.UpdateResourceConfig;
|
|
6804
|
+
export type UpdateTaskConfig = Components.Schemas.UpdateTaskConfig;
|
|
6763
6805
|
export type User = Components.Schemas.User;
|
|
6764
6806
|
export type UserAttributes = Components.Schemas.UserAttributes;
|
|
6765
6807
|
export type UserAttributes/properties/active = Components.Schemas.UserAttributes.Properties.Active;
|