@liaisongroup/assist-api-js-client 1.5.181 → 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.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Liaison Assist API",
|
|
5
5
|
"description": "\n",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.417",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "MIT",
|
|
9
9
|
"url": "https://opensource.org/licenses/MIT"
|
|
@@ -1481,6 +1481,86 @@
|
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
},
|
|
1484
|
+
"/actions/{id}/perform": {
|
|
1485
|
+
"post": {
|
|
1486
|
+
"operationId": "perform_action",
|
|
1487
|
+
"summary": "Perform action",
|
|
1488
|
+
"tags": [
|
|
1489
|
+
"Actions"
|
|
1490
|
+
],
|
|
1491
|
+
"security": [
|
|
1492
|
+
{
|
|
1493
|
+
"bearerAuth": []
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
"cookieAuth": []
|
|
1497
|
+
}
|
|
1498
|
+
],
|
|
1499
|
+
"parameters": [
|
|
1500
|
+
{
|
|
1501
|
+
"name": "id",
|
|
1502
|
+
"in": "path",
|
|
1503
|
+
"required": true,
|
|
1504
|
+
"schema": {
|
|
1505
|
+
"type": "string",
|
|
1506
|
+
"format": "uuid"
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
],
|
|
1510
|
+
"responses": {
|
|
1511
|
+
"200": {
|
|
1512
|
+
"description": "OK",
|
|
1513
|
+
"content": {
|
|
1514
|
+
"application/vnd.api+json": {
|
|
1515
|
+
"schema": {
|
|
1516
|
+
"$ref": "#/components/schemas/Action"
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
},
|
|
1521
|
+
"401": {
|
|
1522
|
+
"description": "Unauthorized",
|
|
1523
|
+
"content": {
|
|
1524
|
+
"application/vnd.api+json": {
|
|
1525
|
+
"schema": {
|
|
1526
|
+
"$ref": "#/components/schemas/Errors"
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
},
|
|
1531
|
+
"403": {
|
|
1532
|
+
"description": "Forbidden",
|
|
1533
|
+
"content": {
|
|
1534
|
+
"application/vnd.api+json": {
|
|
1535
|
+
"schema": {
|
|
1536
|
+
"$ref": "#/components/schemas/Errors"
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
},
|
|
1541
|
+
"404": {
|
|
1542
|
+
"description": "Not Found",
|
|
1543
|
+
"content": {
|
|
1544
|
+
"application/vnd.api+json": {
|
|
1545
|
+
"schema": {
|
|
1546
|
+
"$ref": "#/components/schemas/Errors"
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
},
|
|
1551
|
+
"422": {
|
|
1552
|
+
"description": "Unprocessable Entity",
|
|
1553
|
+
"content": {
|
|
1554
|
+
"application/vnd.api+json": {
|
|
1555
|
+
"schema": {
|
|
1556
|
+
"$ref": "#/components/schemas/Errors"
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
},
|
|
1484
1564
|
"/action_errors": {
|
|
1485
1565
|
"get": {
|
|
1486
1566
|
"operationId": "get_action_errors",
|
|
@@ -9219,26 +9299,91 @@
|
|
|
9219
9299
|
"components": {
|
|
9220
9300
|
"schemas": {
|
|
9221
9301
|
"ActionAttributes": {
|
|
9222
|
-
"
|
|
9223
|
-
|
|
9224
|
-
|
|
9302
|
+
"type": "object",
|
|
9303
|
+
"additionalProperties": false,
|
|
9304
|
+
"properties": {
|
|
9305
|
+
"name": {
|
|
9306
|
+
"type": "string"
|
|
9225
9307
|
},
|
|
9226
|
-
{
|
|
9227
|
-
"
|
|
9308
|
+
"updated_at": {
|
|
9309
|
+
"type": "string",
|
|
9310
|
+
"format": "date-time"
|
|
9228
9311
|
},
|
|
9229
|
-
{
|
|
9230
|
-
"
|
|
9312
|
+
"created_at": {
|
|
9313
|
+
"type": "string",
|
|
9314
|
+
"format": "date-time"
|
|
9231
9315
|
},
|
|
9232
|
-
{
|
|
9233
|
-
"
|
|
9316
|
+
"active": {
|
|
9317
|
+
"type": "boolean",
|
|
9318
|
+
"default": false
|
|
9234
9319
|
},
|
|
9235
|
-
{
|
|
9236
|
-
"
|
|
9320
|
+
"trigger_id": {
|
|
9321
|
+
"type": "string",
|
|
9322
|
+
"format": "uuid"
|
|
9237
9323
|
},
|
|
9238
|
-
{
|
|
9239
|
-
"
|
|
9324
|
+
"action_type": {
|
|
9325
|
+
"type": "string",
|
|
9326
|
+
"enum": [
|
|
9327
|
+
"at_time",
|
|
9328
|
+
"calculation",
|
|
9329
|
+
"create_or_update_case",
|
|
9330
|
+
"create_task",
|
|
9331
|
+
"each_case",
|
|
9332
|
+
"each_task",
|
|
9333
|
+
"extract_questionnaire_response",
|
|
9334
|
+
"find_cases",
|
|
9335
|
+
"find_tasks",
|
|
9336
|
+
"get_case_from_task",
|
|
9337
|
+
"get_value",
|
|
9338
|
+
"hl7_message",
|
|
9339
|
+
"internal_event",
|
|
9340
|
+
"trigger_questionnaire",
|
|
9341
|
+
"update_resource",
|
|
9342
|
+
"update_task"
|
|
9343
|
+
]
|
|
9344
|
+
},
|
|
9345
|
+
"config": {
|
|
9346
|
+
"anyOf": [
|
|
9347
|
+
{
|
|
9348
|
+
"type": "object",
|
|
9349
|
+
"additionalProperties": false
|
|
9350
|
+
},
|
|
9351
|
+
{
|
|
9352
|
+
"$ref": "#/components/schemas/AtTimeConfig"
|
|
9353
|
+
},
|
|
9354
|
+
{
|
|
9355
|
+
"$ref": "#/components/schemas/CalculationConfig"
|
|
9356
|
+
},
|
|
9357
|
+
{
|
|
9358
|
+
"$ref": "#/components/schemas/CreateOrUpdateCaseConfig"
|
|
9359
|
+
},
|
|
9360
|
+
{
|
|
9361
|
+
"$ref": "#/components/schemas/CreateTaskConfig"
|
|
9362
|
+
},
|
|
9363
|
+
{
|
|
9364
|
+
"$ref": "#/components/schemas/ExtractQuestionnaireResponseConfig"
|
|
9365
|
+
},
|
|
9366
|
+
{
|
|
9367
|
+
"$ref": "#/components/schemas/FindCasesOrTasksConfig"
|
|
9368
|
+
},
|
|
9369
|
+
{
|
|
9370
|
+
"$ref": "#/components/schemas/GetValueConfig"
|
|
9371
|
+
},
|
|
9372
|
+
{
|
|
9373
|
+
"$ref": "#/components/schemas/InternalEventConfig"
|
|
9374
|
+
},
|
|
9375
|
+
{
|
|
9376
|
+
"$ref": "#/components/schemas/TriggerQuestionnaireConfig"
|
|
9377
|
+
},
|
|
9378
|
+
{
|
|
9379
|
+
"$ref": "#/components/schemas/UpdateResourceConfig"
|
|
9380
|
+
},
|
|
9381
|
+
{
|
|
9382
|
+
"$ref": "#/components/schemas/UpdateTaskConfig"
|
|
9383
|
+
}
|
|
9384
|
+
]
|
|
9240
9385
|
}
|
|
9241
|
-
|
|
9386
|
+
}
|
|
9242
9387
|
},
|
|
9243
9388
|
"ActionInclusion": {
|
|
9244
9389
|
"type": "object",
|
|
@@ -9523,9 +9668,14 @@
|
|
|
9523
9668
|
"items": {
|
|
9524
9669
|
"type": "string",
|
|
9525
9670
|
"enum": [
|
|
9671
|
+
"attributes",
|
|
9672
|
+
"case",
|
|
9673
|
+
"cases",
|
|
9526
9674
|
"resource_instance",
|
|
9675
|
+
"task",
|
|
9676
|
+
"tasks",
|
|
9527
9677
|
"value",
|
|
9528
|
-
"
|
|
9678
|
+
"values"
|
|
9529
9679
|
]
|
|
9530
9680
|
}
|
|
9531
9681
|
},
|
|
@@ -15956,311 +16106,213 @@
|
|
|
15956
16106
|
}
|
|
15957
16107
|
}
|
|
15958
16108
|
},
|
|
15959
|
-
"
|
|
16109
|
+
"AtTimeConfig": {
|
|
15960
16110
|
"type": "object",
|
|
15961
16111
|
"additionalProperties": false,
|
|
16112
|
+
"required": [
|
|
16113
|
+
"cron"
|
|
16114
|
+
],
|
|
15962
16115
|
"properties": {
|
|
15963
|
-
"
|
|
15964
|
-
"type": "string"
|
|
15965
|
-
},
|
|
15966
|
-
"updated_at": {
|
|
16116
|
+
"cron": {
|
|
15967
16117
|
"type": "string",
|
|
15968
|
-
"
|
|
15969
|
-
},
|
|
15970
|
-
"created_at": {
|
|
15971
|
-
"type": "string",
|
|
15972
|
-
"format": "date-time"
|
|
15973
|
-
},
|
|
15974
|
-
"active": {
|
|
15975
|
-
"type": "boolean",
|
|
15976
|
-
"default": false
|
|
15977
|
-
},
|
|
15978
|
-
"trigger_id": {
|
|
15979
|
-
"type": "string",
|
|
15980
|
-
"format": "uuid"
|
|
15981
|
-
},
|
|
15982
|
-
"action_type": {
|
|
15983
|
-
"type": "string",
|
|
15984
|
-
"enum": [
|
|
15985
|
-
"get_value"
|
|
15986
|
-
]
|
|
15987
|
-
},
|
|
15988
|
-
"config": {
|
|
15989
|
-
"type": "object",
|
|
15990
|
-
"additionalProperties": false,
|
|
15991
|
-
"required": [
|
|
15992
|
-
"field_key"
|
|
15993
|
-
],
|
|
15994
|
-
"properties": {
|
|
15995
|
-
"field_key": {
|
|
15996
|
-
"type": "string",
|
|
15997
|
-
"description": "The key of the field to get the value from.\nIf 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.\n"
|
|
15998
|
-
}
|
|
15999
|
-
}
|
|
16118
|
+
"description": "A cron expression that is used to schedule the action.\n"
|
|
16000
16119
|
}
|
|
16001
16120
|
}
|
|
16002
16121
|
},
|
|
16003
|
-
"
|
|
16122
|
+
"CreateTaskConfig": {
|
|
16004
16123
|
"type": "object",
|
|
16005
16124
|
"additionalProperties": false,
|
|
16125
|
+
"required": [
|
|
16126
|
+
"template_id"
|
|
16127
|
+
],
|
|
16006
16128
|
"properties": {
|
|
16007
|
-
"
|
|
16008
|
-
"type": "string"
|
|
16009
|
-
},
|
|
16010
|
-
"updated_at": {
|
|
16011
|
-
"type": "string",
|
|
16012
|
-
"format": "date-time"
|
|
16013
|
-
},
|
|
16014
|
-
"created_at": {
|
|
16015
|
-
"type": "string",
|
|
16016
|
-
"format": "date-time"
|
|
16017
|
-
},
|
|
16018
|
-
"active": {
|
|
16019
|
-
"type": "boolean",
|
|
16020
|
-
"default": false
|
|
16021
|
-
},
|
|
16022
|
-
"trigger_id": {
|
|
16129
|
+
"template_id": {
|
|
16023
16130
|
"type": "string",
|
|
16024
16131
|
"format": "uuid"
|
|
16025
16132
|
},
|
|
16026
|
-
"
|
|
16133
|
+
"title": {
|
|
16134
|
+
"type": "string"
|
|
16135
|
+
},
|
|
16136
|
+
"status": {
|
|
16027
16137
|
"type": "string",
|
|
16028
16138
|
"enum": [
|
|
16029
|
-
"
|
|
16139
|
+
"completed",
|
|
16140
|
+
"in_progress",
|
|
16141
|
+
"cancelled",
|
|
16142
|
+
"pending",
|
|
16143
|
+
"accepted"
|
|
16030
16144
|
]
|
|
16031
|
-
}
|
|
16032
|
-
|
|
16145
|
+
}
|
|
16146
|
+
}
|
|
16147
|
+
},
|
|
16148
|
+
"UpdateTaskConfig": {
|
|
16149
|
+
"type": "object",
|
|
16150
|
+
"additionalProperties": false,
|
|
16151
|
+
"properties": {
|
|
16152
|
+
"attribute_changes": {
|
|
16033
16153
|
"type": "object",
|
|
16034
|
-
"
|
|
16035
|
-
"required": [
|
|
16036
|
-
"pkb_questionnaire_id"
|
|
16037
|
-
],
|
|
16038
|
-
"properties": {
|
|
16039
|
-
"pkb_questionnaire_id": {
|
|
16040
|
-
"type": "string",
|
|
16041
|
-
"description": "The ID of the questionnaire to trigger in PKB.\nThis is the ID of the questionnaire as it appears in the PKB API.\n"
|
|
16042
|
-
}
|
|
16043
|
-
}
|
|
16154
|
+
"description": "Optional map of task attribute updates to apply.\nIf omitted or empty, the action applies no attribute updates.\n"
|
|
16044
16155
|
}
|
|
16045
16156
|
}
|
|
16046
16157
|
},
|
|
16047
|
-
"
|
|
16158
|
+
"ExtractQuestionnaireResponseConfig": {
|
|
16048
16159
|
"type": "object",
|
|
16049
16160
|
"additionalProperties": false,
|
|
16161
|
+
"required": [
|
|
16162
|
+
"questionnaire_id_field_key",
|
|
16163
|
+
"nhs_number_field_key",
|
|
16164
|
+
"questionnaire_response_field_key"
|
|
16165
|
+
],
|
|
16050
16166
|
"properties": {
|
|
16051
|
-
"
|
|
16052
|
-
"type": "string"
|
|
16053
|
-
},
|
|
16054
|
-
"updated_at": {
|
|
16167
|
+
"questionnaire_id_field_key": {
|
|
16055
16168
|
"type": "string",
|
|
16056
|
-
"
|
|
16169
|
+
"description": "The key of the field to get the questionnaire ID from.\n"
|
|
16057
16170
|
},
|
|
16058
|
-
"
|
|
16171
|
+
"nhs_number_field_key": {
|
|
16059
16172
|
"type": "string",
|
|
16060
|
-
"
|
|
16173
|
+
"description": "The key of the field to get the NHS number from.\n"
|
|
16061
16174
|
},
|
|
16062
|
-
"
|
|
16063
|
-
"type": "boolean",
|
|
16064
|
-
"default": false
|
|
16065
|
-
},
|
|
16066
|
-
"trigger_id": {
|
|
16175
|
+
"questionnaire_response_field_key": {
|
|
16067
16176
|
"type": "string",
|
|
16068
|
-
"
|
|
16069
|
-
}
|
|
16070
|
-
|
|
16071
|
-
|
|
16072
|
-
|
|
16073
|
-
|
|
16074
|
-
|
|
16075
|
-
|
|
16076
|
-
"
|
|
16077
|
-
|
|
16078
|
-
|
|
16079
|
-
|
|
16080
|
-
|
|
16081
|
-
|
|
16082
|
-
|
|
16083
|
-
"properties": {
|
|
16084
|
-
"resource": {
|
|
16085
|
-
"$ref": "#/components/schemas/Type"
|
|
16086
|
-
},
|
|
16087
|
-
"actions": {
|
|
16088
|
-
"type": "array",
|
|
16089
|
-
"items": {
|
|
16090
|
-
"type": "string",
|
|
16091
|
-
"enum": [
|
|
16092
|
-
"create",
|
|
16093
|
-
"update",
|
|
16094
|
-
"destroy"
|
|
16095
|
-
]
|
|
16096
|
-
}
|
|
16097
|
-
},
|
|
16098
|
-
"conditions": {
|
|
16099
|
-
"type": "array",
|
|
16100
|
-
"items": {
|
|
16101
|
-
"type": "object",
|
|
16102
|
-
"required": [
|
|
16103
|
-
"matcher",
|
|
16104
|
-
"value"
|
|
16105
|
-
],
|
|
16106
|
-
"properties": {
|
|
16107
|
-
"matcher": {
|
|
16108
|
-
"type": "string",
|
|
16109
|
-
"description": "From the matchers available for the resource on the resource attributes endpoint.\n"
|
|
16110
|
-
},
|
|
16111
|
-
"value": {}
|
|
16112
|
-
}
|
|
16113
|
-
}
|
|
16114
|
-
}
|
|
16177
|
+
"description": "The key of the field to set the questionnaire response to.\n"
|
|
16178
|
+
}
|
|
16179
|
+
}
|
|
16180
|
+
},
|
|
16181
|
+
"FindCasesOrTasksConfig": {
|
|
16182
|
+
"type": "object",
|
|
16183
|
+
"additionalProperties": false,
|
|
16184
|
+
"required": [
|
|
16185
|
+
"rules"
|
|
16186
|
+
],
|
|
16187
|
+
"properties": {
|
|
16188
|
+
"rules": {
|
|
16189
|
+
"type": "array",
|
|
16190
|
+
"items": {
|
|
16191
|
+
"$ref": "#/components/schemas/SavedFilterCondition"
|
|
16115
16192
|
}
|
|
16116
16193
|
}
|
|
16117
16194
|
}
|
|
16118
16195
|
},
|
|
16119
|
-
"
|
|
16196
|
+
"GetValueConfig": {
|
|
16120
16197
|
"type": "object",
|
|
16121
16198
|
"additionalProperties": false,
|
|
16199
|
+
"required": [
|
|
16200
|
+
"field_key"
|
|
16201
|
+
],
|
|
16122
16202
|
"properties": {
|
|
16123
|
-
"
|
|
16124
|
-
"type": "string"
|
|
16125
|
-
},
|
|
16126
|
-
"updated_at": {
|
|
16203
|
+
"field_key": {
|
|
16127
16204
|
"type": "string",
|
|
16128
|
-
"
|
|
16129
|
-
}
|
|
16130
|
-
|
|
16131
|
-
|
|
16132
|
-
|
|
16133
|
-
|
|
16134
|
-
|
|
16135
|
-
|
|
16136
|
-
|
|
16137
|
-
|
|
16138
|
-
|
|
16205
|
+
"description": "The key of the field to get the value from.\nIf 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.\n"
|
|
16206
|
+
}
|
|
16207
|
+
}
|
|
16208
|
+
},
|
|
16209
|
+
"TriggerQuestionnaireConfig": {
|
|
16210
|
+
"type": "object",
|
|
16211
|
+
"additionalProperties": false,
|
|
16212
|
+
"required": [
|
|
16213
|
+
"pkb_questionnaire_id"
|
|
16214
|
+
],
|
|
16215
|
+
"properties": {
|
|
16216
|
+
"pkb_questionnaire_id": {
|
|
16139
16217
|
"type": "string",
|
|
16140
|
-
"
|
|
16218
|
+
"description": "The ID of the questionnaire to trigger in PKB.\nThis is the ID of the questionnaire as it appears in the PKB API.\n"
|
|
16219
|
+
}
|
|
16220
|
+
}
|
|
16221
|
+
},
|
|
16222
|
+
"InternalEventConfig": {
|
|
16223
|
+
"type": "object",
|
|
16224
|
+
"additionalProperties": false,
|
|
16225
|
+
"required": [
|
|
16226
|
+
"resource",
|
|
16227
|
+
"actions"
|
|
16228
|
+
],
|
|
16229
|
+
"properties": {
|
|
16230
|
+
"resource": {
|
|
16231
|
+
"$ref": "#/components/schemas/Type"
|
|
16141
16232
|
},
|
|
16142
|
-
"
|
|
16143
|
-
"type": "
|
|
16144
|
-
"
|
|
16145
|
-
"
|
|
16146
|
-
|
|
16233
|
+
"actions": {
|
|
16234
|
+
"type": "array",
|
|
16235
|
+
"items": {
|
|
16236
|
+
"type": "string",
|
|
16237
|
+
"enum": [
|
|
16238
|
+
"create",
|
|
16239
|
+
"update",
|
|
16240
|
+
"destroy"
|
|
16241
|
+
]
|
|
16242
|
+
}
|
|
16147
16243
|
},
|
|
16148
|
-
"
|
|
16149
|
-
"type": "
|
|
16150
|
-
"
|
|
16151
|
-
"
|
|
16152
|
-
"
|
|
16153
|
-
|
|
16154
|
-
|
|
16155
|
-
|
|
16156
|
-
|
|
16157
|
-
"
|
|
16158
|
-
"type": "string"
|
|
16159
|
-
|
|
16160
|
-
|
|
16161
|
-
|
|
16162
|
-
"type": "string",
|
|
16163
|
-
"enum": [
|
|
16164
|
-
"sum",
|
|
16165
|
-
"average",
|
|
16166
|
-
"minimum",
|
|
16167
|
-
"maximum"
|
|
16168
|
-
]
|
|
16244
|
+
"conditions": {
|
|
16245
|
+
"type": "array",
|
|
16246
|
+
"items": {
|
|
16247
|
+
"type": "object",
|
|
16248
|
+
"required": [
|
|
16249
|
+
"matcher",
|
|
16250
|
+
"value"
|
|
16251
|
+
],
|
|
16252
|
+
"properties": {
|
|
16253
|
+
"matcher": {
|
|
16254
|
+
"type": "string",
|
|
16255
|
+
"description": "From the matchers available for the resource on the resource attributes endpoint.\n"
|
|
16256
|
+
},
|
|
16257
|
+
"value": {}
|
|
16169
16258
|
}
|
|
16170
16259
|
}
|
|
16171
16260
|
}
|
|
16172
16261
|
}
|
|
16173
16262
|
},
|
|
16174
|
-
"
|
|
16263
|
+
"CalculationConfig": {
|
|
16175
16264
|
"type": "object",
|
|
16176
|
-
"
|
|
16265
|
+
"required": [
|
|
16266
|
+
"fields",
|
|
16267
|
+
"operation"
|
|
16268
|
+
],
|
|
16177
16269
|
"properties": {
|
|
16178
|
-
"
|
|
16179
|
-
"type": "
|
|
16180
|
-
|
|
16181
|
-
|
|
16182
|
-
|
|
16183
|
-
"format": "date-time"
|
|
16184
|
-
},
|
|
16185
|
-
"created_at": {
|
|
16186
|
-
"type": "string",
|
|
16187
|
-
"format": "date-time"
|
|
16188
|
-
},
|
|
16189
|
-
"active": {
|
|
16190
|
-
"type": "boolean",
|
|
16191
|
-
"default": false
|
|
16192
|
-
},
|
|
16193
|
-
"trigger_id": {
|
|
16194
|
-
"type": "string",
|
|
16195
|
-
"format": "uuid"
|
|
16270
|
+
"fields": {
|
|
16271
|
+
"type": "array",
|
|
16272
|
+
"items": {
|
|
16273
|
+
"type": "string"
|
|
16274
|
+
}
|
|
16196
16275
|
},
|
|
16197
|
-
"
|
|
16276
|
+
"operation": {
|
|
16198
16277
|
"type": "string",
|
|
16199
16278
|
"enum": [
|
|
16200
|
-
"
|
|
16279
|
+
"sum",
|
|
16280
|
+
"average",
|
|
16281
|
+
"minimum",
|
|
16282
|
+
"maximum"
|
|
16201
16283
|
]
|
|
16202
|
-
},
|
|
16203
|
-
"config": {
|
|
16204
|
-
"type": "object",
|
|
16205
|
-
"required": [
|
|
16206
|
-
"field_to_update"
|
|
16207
|
-
],
|
|
16208
|
-
"properties": {
|
|
16209
|
-
"field_to_update": {
|
|
16210
|
-
"type": "string"
|
|
16211
|
-
}
|
|
16212
|
-
}
|
|
16213
16284
|
}
|
|
16214
16285
|
}
|
|
16215
16286
|
},
|
|
16216
|
-
"
|
|
16287
|
+
"UpdateResourceConfig": {
|
|
16217
16288
|
"type": "object",
|
|
16218
|
-
"
|
|
16289
|
+
"required": [
|
|
16290
|
+
"field_to_update"
|
|
16291
|
+
],
|
|
16219
16292
|
"properties": {
|
|
16220
|
-
"
|
|
16293
|
+
"field_to_update": {
|
|
16221
16294
|
"type": "string"
|
|
16295
|
+
}
|
|
16296
|
+
}
|
|
16297
|
+
},
|
|
16298
|
+
"CreateOrUpdateCaseConfig": {
|
|
16299
|
+
"type": "object",
|
|
16300
|
+
"required": [
|
|
16301
|
+
"identifying_fields",
|
|
16302
|
+
"template_id"
|
|
16303
|
+
],
|
|
16304
|
+
"properties": {
|
|
16305
|
+
"identifying_fields": {
|
|
16306
|
+
"description": "The fields that are used to identify the case. If no identifying fields are provided, a new case will be created.",
|
|
16307
|
+
"type": "array",
|
|
16308
|
+
"items": {
|
|
16309
|
+
"type": "string"
|
|
16310
|
+
}
|
|
16222
16311
|
},
|
|
16223
|
-
"
|
|
16224
|
-
"
|
|
16225
|
-
"format": "date-time"
|
|
16226
|
-
},
|
|
16227
|
-
"created_at": {
|
|
16228
|
-
"type": "string",
|
|
16229
|
-
"format": "date-time"
|
|
16230
|
-
},
|
|
16231
|
-
"active": {
|
|
16232
|
-
"type": "boolean"
|
|
16233
|
-
},
|
|
16234
|
-
"trigger_id": {
|
|
16312
|
+
"template_id": {
|
|
16313
|
+
"description": "The template ID of the case to create or update.",
|
|
16235
16314
|
"type": "string",
|
|
16236
16315
|
"format": "uuid"
|
|
16237
|
-
},
|
|
16238
|
-
"action_type": {
|
|
16239
|
-
"type": "string",
|
|
16240
|
-
"enum": [
|
|
16241
|
-
"create_or_update_case"
|
|
16242
|
-
]
|
|
16243
|
-
},
|
|
16244
|
-
"config": {
|
|
16245
|
-
"type": "object",
|
|
16246
|
-
"required": [
|
|
16247
|
-
"identifying_fields",
|
|
16248
|
-
"template_id"
|
|
16249
|
-
],
|
|
16250
|
-
"properties": {
|
|
16251
|
-
"identifying_fields": {
|
|
16252
|
-
"description": "The fields that are used to identify the case. If no identifying fields are provided, a new case will be created.",
|
|
16253
|
-
"type": "array",
|
|
16254
|
-
"items": {
|
|
16255
|
-
"type": "string"
|
|
16256
|
-
}
|
|
16257
|
-
},
|
|
16258
|
-
"template_id": {
|
|
16259
|
-
"description": "The template ID of the case to create or update.",
|
|
16260
|
-
"type": "string",
|
|
16261
|
-
"format": "uuid"
|
|
16262
|
-
}
|
|
16263
|
-
}
|
|
16264
16316
|
}
|
|
16265
16317
|
}
|
|
16266
16318
|
},
|