@epilot/sdk 2.3.2 → 2.3.5
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/README.md +2 -0
- package/definitions/blueprint-manifest-runtime.json +1 -1
- package/definitions/blueprint-manifest.json +239 -12
- package/definitions/configuration-hub-runtime.json +1 -0
- package/definitions/configuration-hub.json +399 -0
- package/definitions/environments-runtime.json +1 -1
- package/definitions/environments.json +2 -2
- package/definitions/query-runtime.json +1 -0
- package/definitions/query.json +3178 -0
- package/dist/README-6MG272KM.cjs +7 -0
- package/dist/README-7N542PBL.js +7 -0
- package/dist/{_index-O7JDGRSE.cjs → _index-55HAH24D.cjs} +7 -1
- package/dist/{_index-CLT2KTVS.js → _index-HE4B6FOA.js} +6 -0
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +8 -8
- package/dist/apis/blueprint-manifest.d.cts +2 -2
- package/dist/apis/blueprint-manifest.d.ts +2 -2
- package/dist/apis/blueprint-manifest.js +2 -2
- package/dist/apis/configuration-hub.cjs +38 -0
- package/dist/apis/configuration-hub.d.cts +18 -0
- package/dist/apis/configuration-hub.d.ts +18 -0
- package/dist/apis/configuration-hub.js +38 -0
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +8 -8
- package/dist/apis/environments.d.cts +2 -2
- package/dist/apis/environments.d.ts +2 -2
- package/dist/apis/environments.js +2 -2
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +38 -0
- package/dist/apis/query.d.cts +18 -0
- package/dist/apis/query.d.ts +18 -0
- package/dist/apis/query.js +38 -0
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +38 -0
- package/dist/apis/target.d.cts +597 -0
- package/dist/apis/target.d.ts +597 -0
- package/dist/apis/target.js +38 -0
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/blueprint-manifest-DBEY5PPI.js +7 -0
- package/dist/blueprint-manifest-IEQ6YBY7.cjs +7 -0
- package/dist/{blueprint-manifest-runtime-E2FN43TB.js → blueprint-manifest-runtime-5UN52LW5.js} +1 -1
- package/dist/{blueprint-manifest-runtime-G4UK5VEX.cjs → blueprint-manifest-runtime-QN2IECSA.cjs} +2 -2
- package/dist/{blueprint-manifest.d-BGrGU787.d.cts → blueprint-manifest.d-BPyzoR0X.d.cts} +228 -9
- package/dist/{blueprint-manifest.d-BGrGU787.d.ts → blueprint-manifest.d-BPyzoR0X.d.ts} +228 -9
- package/dist/{chunk-6IMAKHA4.js → chunk-2LEEXRJX.js} +1 -1
- package/dist/chunk-4JAOFRYX.js +14 -0
- package/dist/{chunk-5JN243WJ.js → chunk-7C4FQXMS.js} +12 -6
- package/dist/chunk-EYKEVZME.cjs +14 -0
- package/dist/{chunk-VTJQTEQX.cjs → chunk-GGMGJYHO.cjs} +12 -6
- package/dist/{chunk-BDKLBHIN.cjs → chunk-I6DG26UJ.cjs} +1 -1
- package/dist/{chunk-5APJZUIH.cjs → chunk-L544VG3B.cjs} +1 -1
- package/dist/chunk-MM5JDJFO.js +14 -0
- package/dist/{chunk-VPDA5SAH.js → chunk-O2YVXGPZ.js} +1 -1
- package/dist/chunk-Q7OKRNUG.cjs +14 -0
- package/dist/chunk-RMP2HHCR.js +14 -0
- package/dist/chunk-XDZ2JKJ4.cjs +14 -0
- package/dist/configuration-hub-LKSRCGYT.cjs +7 -0
- package/dist/configuration-hub-TZ2ULWV4.js +7 -0
- package/dist/configuration-hub-runtime-B7KKIHHY.cjs +5 -0
- package/dist/configuration-hub-runtime-TEDEKI7E.js +5 -0
- package/dist/configuration-hub.d-CqvhcMOn.d.cts +166 -0
- package/dist/configuration-hub.d-CqvhcMOn.d.ts +166 -0
- package/dist/environments-PXJOTQVM.js +7 -0
- package/dist/environments-QJ4UMJ5C.cjs +7 -0
- package/dist/{environments-runtime-FMSNJF5S.js → environments-runtime-NKHLZJB3.js} +1 -1
- package/dist/{environments-runtime-5DVTRV2Z.cjs → environments-runtime-QC2BUHBW.cjs} +2 -2
- package/dist/{environments.d-H3LK_KuH.d.ts → environments.d-BvqvN-PD.d.cts} +134 -5
- package/dist/{environments.d-H3LK_KuH.d.cts → environments.d-BvqvN-PD.d.ts} +134 -5
- package/dist/index.cjs +43 -27
- package/dist/index.d.cts +81 -77
- package/dist/index.d.ts +81 -77
- package/dist/index.js +39 -23
- package/dist/query-JSDB2F2U.cjs +7 -0
- package/dist/query-RJ4M25PA.js +7 -0
- package/dist/query-runtime-NLOSMDAJ.cjs +5 -0
- package/dist/query-runtime-SYJTDUNG.js +5 -0
- package/dist/query.d-Cmp78IhZ.d.cts +2375 -0
- package/dist/query.d-Cmp78IhZ.d.ts +2375 -0
- package/dist/target-3RS5BN2B.cjs +7 -0
- package/dist/target-5MKRXCHX.js +7 -0
- package/dist/target-runtime-BMJ7EARM.cjs +5 -0
- package/dist/target-runtime-PBF3WYL7.js +5 -0
- package/docs/blueprint-manifest.md +418 -40
- package/docs/configuration-hub.md +256 -0
- package/docs/environments.md +3 -5
- package/docs/query.md +1609 -0
- package/docs/target.md +741 -0
- package/package.json +19 -1
- package/dist/README-KX4XC2HB.js +0 -7
- package/dist/README-PTYV6PQI.cjs +0 -7
- package/dist/blueprint-manifest-ELK4SGN7.js +0 -7
- package/dist/blueprint-manifest-VBOWPK52.cjs +0 -7
- package/dist/environments-I6RWPVHA.js +0 -7
- package/dist/environments-TZYXLYXA.cjs +0 -7
package/docs/query.md
ADDED
|
@@ -0,0 +1,1609 @@
|
|
|
1
|
+
# Query API
|
|
2
|
+
|
|
3
|
+
- **Base URL:** `https://query.sls.epilot.io`
|
|
4
|
+
- **Full API Docs:** [https://docs.epilot.io/api/query](https://docs.epilot.io/api/query)
|
|
5
|
+
|
|
6
|
+
## Usage
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import { epilot } from '@epilot/sdk'
|
|
10
|
+
|
|
11
|
+
epilot.authorize(() => '<token>')
|
|
12
|
+
const { data } = await epilot.query.createOrUpdateView(...)
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Tree-shakeable import
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { getClient, authorize } from '@epilot/sdk/query'
|
|
19
|
+
|
|
20
|
+
const queryClient = getClient()
|
|
21
|
+
authorize(queryClient, () => '<token>')
|
|
22
|
+
const { data } = await queryClient.createOrUpdateView(...)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Operations
|
|
26
|
+
|
|
27
|
+
**Datalake V2**
|
|
28
|
+
- [`createOrUpdateView`](#createorupdateview)
|
|
29
|
+
- [`getAllViews`](#getallviews)
|
|
30
|
+
- [`getView`](#getview)
|
|
31
|
+
- [`createOrUpdateRelationship`](#createorupdaterelationship)
|
|
32
|
+
- [`getAllRelationships`](#getallrelationships)
|
|
33
|
+
|
|
34
|
+
**Datasets**
|
|
35
|
+
- [`listAvailableDatasetsV2`](#listavailabledatasetsv2)
|
|
36
|
+
|
|
37
|
+
**Query**
|
|
38
|
+
- [`executeEntitiesQuery`](#executeentitiesquery)
|
|
39
|
+
- [`executeWorkflowsQuery`](#executeworkflowsquery)
|
|
40
|
+
- [`executeAutomationQuery`](#executeautomationquery)
|
|
41
|
+
- [`listWorkflowPhasesByDefinitionId`](#listworkflowphasesbydefinitionid)
|
|
42
|
+
- [`listWorkflowDefinitions`](#listworkflowdefinitions)
|
|
43
|
+
- [`listPhaseNames`](#listphasenames)
|
|
44
|
+
|
|
45
|
+
**V1**
|
|
46
|
+
- [`listDatasets`](#listdatasets)
|
|
47
|
+
- [`executeQuery`](#executequery)
|
|
48
|
+
|
|
49
|
+
**CredentialsV2**
|
|
50
|
+
- [`generateCredentialsV2`](#generatecredentialsv2)
|
|
51
|
+
- [`listCredentialsV2`](#listcredentialsv2)
|
|
52
|
+
- [`revokeCredentialsV2`](#revokecredentialsv2)
|
|
53
|
+
|
|
54
|
+
**V2**
|
|
55
|
+
- [`executeQueryV2`](#executequeryv2)
|
|
56
|
+
- [`getSemanticModel`](#getsemanticmodel)
|
|
57
|
+
- [`autocomplete`](#autocomplete)
|
|
58
|
+
- [`workflowsAutocomplete`](#workflowsautocomplete)
|
|
59
|
+
|
|
60
|
+
**Schemas**
|
|
61
|
+
- [`ErrorResponse`](#errorresponse)
|
|
62
|
+
- [`ViewRequest`](#viewrequest)
|
|
63
|
+
- [`CurrentEntitiesViewRequest`](#currententitiesviewrequest)
|
|
64
|
+
- [`TaxonomiesViewRequest`](#taxonomiesviewrequest)
|
|
65
|
+
- [`WorkflowExecutionsViewRequest`](#workflowexecutionsviewrequest)
|
|
66
|
+
- [`ViewResponse`](#viewresponse)
|
|
67
|
+
- [`ViewsListResponse`](#viewslistresponse)
|
|
68
|
+
- [`RelationshipRequest`](#relationshiprequest)
|
|
69
|
+
- [`RelationshipResponse`](#relationshipresponse)
|
|
70
|
+
- [`RelationshipsListResponse`](#relationshipslistresponse)
|
|
71
|
+
- [`NoCache`](#nocache)
|
|
72
|
+
- [`CacheExpiration`](#cacheexpiration)
|
|
73
|
+
- [`UserId`](#userid)
|
|
74
|
+
- [`DatasetDomain`](#datasetdomain)
|
|
75
|
+
- [`Dataset`](#dataset)
|
|
76
|
+
- [`DatalakeQueryOptions`](#datalakequeryoptions)
|
|
77
|
+
- [`DatalakeQuery`](#datalakequery)
|
|
78
|
+
- [`AutomationQueryOptions`](#automationqueryoptions)
|
|
79
|
+
- [`DatasetOptions.AutomationExecutionsOverview`](#datasetoptions.automationexecutionsoverview)
|
|
80
|
+
- [`DatasetOptions.ListAutomationDefinitions`](#datasetoptions.listautomationdefinitions)
|
|
81
|
+
- [`WorkflowsQueryOptions`](#workflowsqueryoptions)
|
|
82
|
+
- [`DatasetOptions.TotalCountOfWorkflowExecutions`](#datasetoptions.totalcountofworkflowexecutions)
|
|
83
|
+
- [`DatasetOptions.WorkflowExecutionTimeSeries`](#datasetoptions.workflowexecutiontimeseries)
|
|
84
|
+
- [`DatasetOptions.CumulativeSumOfWorkflows`](#datasetoptions.cumulativesumofworkflows)
|
|
85
|
+
- [`DatasetOptions.CancellationReasons`](#datasetoptions.cancellationreasons)
|
|
86
|
+
- [`DatasetOptions.WorkflowTasksOverview`](#datasetoptions.workflowtasksoverview)
|
|
87
|
+
- [`Response.WorkflowTaskOverview`](#response.workflowtaskoverview)
|
|
88
|
+
- [`ECPDetails`](#ecpdetails)
|
|
89
|
+
- [`WorkflowContext`](#workflowcontext)
|
|
90
|
+
- [`WorkflowStatus`](#workflowstatus)
|
|
91
|
+
- [`AutomationConfig`](#automationconfig)
|
|
92
|
+
- [`DynamicDueDate`](#dynamicduedate)
|
|
93
|
+
- [`TaskStatus`](#taskstatus)
|
|
94
|
+
- [`TaskRequirement`](#taskrequirement)
|
|
95
|
+
- [`TaskType`](#tasktype)
|
|
96
|
+
- [`Task`](#task)
|
|
97
|
+
- [`WorkflowsQueryOptions.WorkflowDefinitionIDs`](#workflowsqueryoptions.workflowdefinitionids)
|
|
98
|
+
- [`WorkflowsQueryOptions.EntitySchema`](#workflowsqueryoptions.entityschema)
|
|
99
|
+
- [`WorkflowsQueryOptions.RelativeTimeRange`](#workflowsqueryoptions.relativetimerange)
|
|
100
|
+
- [`WorkflowsQueryOptions.TimeRangeFrom`](#workflowsqueryoptions.timerangefrom)
|
|
101
|
+
- [`WorkflowsQueryOptions.TimeRangeTo`](#workflowsqueryoptions.timerangeto)
|
|
102
|
+
- [`WorkflowsQueryOptions.GroupTimeBy`](#workflowsqueryoptions.grouptimeby)
|
|
103
|
+
- [`WorkflowsQueryOptions.WorkflowStates`](#workflowsqueryoptions.workflowstates)
|
|
104
|
+
- [`DatasetName`](#datasetname)
|
|
105
|
+
- [`EntityDataset`](#entitydataset)
|
|
106
|
+
- [`AutomationExecutionDataset`](#automationexecutiondataset)
|
|
107
|
+
- [`WorkflowDataset`](#workflowdataset)
|
|
108
|
+
- [`WorkflowStates`](#workflowstates)
|
|
109
|
+
- [`PhaseStates`](#phasestates)
|
|
110
|
+
- [`TaskStates`](#taskstates)
|
|
111
|
+
- [`SortBy`](#sortby)
|
|
112
|
+
- [`TimeGroups`](#timegroups)
|
|
113
|
+
- [`RelativeTimeRange`](#relativetimerange)
|
|
114
|
+
- [`WorkflowsQueryResult`](#workflowsqueryresult)
|
|
115
|
+
- [`AutomationExecutionResponse`](#automationexecutionresponse)
|
|
116
|
+
- [`ListAutomationDefinitionsResponse`](#listautomationdefinitionsresponse)
|
|
117
|
+
- [`SemanticModel`](#semanticmodel)
|
|
118
|
+
- [`QueryResults`](#queryresults)
|
|
119
|
+
- [`TimeSeriesSettings`](#timeseriessettings)
|
|
120
|
+
- [`NameDurationSettings`](#namedurationsettings)
|
|
121
|
+
|
|
122
|
+
### `createOrUpdateView`
|
|
123
|
+
|
|
124
|
+
Create or update a materialized SQL view in the epilot data lake.
|
|
125
|
+
|
|
126
|
+
`POST /datalake/views`
|
|
127
|
+
|
|
128
|
+
```ts
|
|
129
|
+
const { data } = await client.createOrUpdateView(
|
|
130
|
+
null,
|
|
131
|
+
{
|
|
132
|
+
view_name: 'some_view',
|
|
133
|
+
source_dataset: 'current_entities',
|
|
134
|
+
config: {
|
|
135
|
+
schema: 'some_schema',
|
|
136
|
+
include_purpose_view: true,
|
|
137
|
+
include_label_view: true,
|
|
138
|
+
include_relation_view: true,
|
|
139
|
+
relationship_attribute: ['some_relationship_attribute']
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
)
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
<details>
|
|
146
|
+
<summary>Response</summary>
|
|
147
|
+
|
|
148
|
+
```json
|
|
149
|
+
{
|
|
150
|
+
"view_name": "some_view",
|
|
151
|
+
"source_dataset": "current_entities",
|
|
152
|
+
"attributes": [
|
|
153
|
+
{
|
|
154
|
+
"name": "some_attribute",
|
|
155
|
+
"type": "string",
|
|
156
|
+
"description": "some description"
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
</details>
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
### `getAllViews`
|
|
167
|
+
|
|
168
|
+
Retrieve all materialized data lake views configured for the organization.
|
|
169
|
+
|
|
170
|
+
`GET /datalake/views`
|
|
171
|
+
|
|
172
|
+
```ts
|
|
173
|
+
const { data } = await client.getAllViews()
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
<details>
|
|
177
|
+
<summary>Response</summary>
|
|
178
|
+
|
|
179
|
+
```json
|
|
180
|
+
{
|
|
181
|
+
"views": [
|
|
182
|
+
{
|
|
183
|
+
"view_name": "some_view",
|
|
184
|
+
"source_dataset": "current_entities",
|
|
185
|
+
"view_slug": "some_view",
|
|
186
|
+
"attributes": [
|
|
187
|
+
{
|
|
188
|
+
"name": "some_attribute",
|
|
189
|
+
"type": "string",
|
|
190
|
+
"description": "some description"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"view_name": "another_view",
|
|
196
|
+
"source_dataset": "taxonomies",
|
|
197
|
+
"view_slug": "another_view",
|
|
198
|
+
"attributes": [
|
|
199
|
+
{
|
|
200
|
+
"name": "taxonomy_attribute",
|
|
201
|
+
"type": "string",
|
|
202
|
+
"description": "taxonomy attribute description"
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
</details>
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
### `getView`
|
|
215
|
+
|
|
216
|
+
Retrieve the definition and attributes of a specific data lake view by its slug.
|
|
217
|
+
|
|
218
|
+
`GET /datalake/views/{view_slug}`
|
|
219
|
+
|
|
220
|
+
```ts
|
|
221
|
+
const { data } = await client.getView({
|
|
222
|
+
view_slug: 'example',
|
|
223
|
+
})
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
<details>
|
|
227
|
+
<summary>Response</summary>
|
|
228
|
+
|
|
229
|
+
```json
|
|
230
|
+
{
|
|
231
|
+
"view_name": "some_view",
|
|
232
|
+
"source_dataset": "current_entities",
|
|
233
|
+
"attributes": [
|
|
234
|
+
{
|
|
235
|
+
"name": "some_attribute",
|
|
236
|
+
"type": "string",
|
|
237
|
+
"description": "some description"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
</details>
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
### `createOrUpdateRelationship`
|
|
248
|
+
|
|
249
|
+
Define or update a relationship between two tables in the data lake.
|
|
250
|
+
|
|
251
|
+
`POST /datalake/relationships`
|
|
252
|
+
|
|
253
|
+
```ts
|
|
254
|
+
const { data } = await client.createOrUpdateRelationship(
|
|
255
|
+
null,
|
|
256
|
+
{
|
|
257
|
+
relationship_name: 'some_relationship',
|
|
258
|
+
from_table: 'some_table',
|
|
259
|
+
to_table: 'some_table',
|
|
260
|
+
from_column: 'some_column',
|
|
261
|
+
to_column: 'some_column',
|
|
262
|
+
type: 'one_to_many'
|
|
263
|
+
},
|
|
264
|
+
)
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
<details>
|
|
268
|
+
<summary>Response</summary>
|
|
269
|
+
|
|
270
|
+
```json
|
|
271
|
+
{
|
|
272
|
+
"relationship_name": "some_relationship",
|
|
273
|
+
"from_table": "some_table",
|
|
274
|
+
"to_table": "some_table",
|
|
275
|
+
"from_column": "some_column",
|
|
276
|
+
"to_column": "some_column",
|
|
277
|
+
"type": "one_to_many"
|
|
278
|
+
}
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
</details>
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
### `getAllRelationships`
|
|
286
|
+
|
|
287
|
+
Retrieve all table relationships configured for the organization's data lake.
|
|
288
|
+
|
|
289
|
+
`GET /datalake/relationships`
|
|
290
|
+
|
|
291
|
+
```ts
|
|
292
|
+
const { data } = await client.getAllRelationships()
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
<details>
|
|
296
|
+
<summary>Response</summary>
|
|
297
|
+
|
|
298
|
+
```json
|
|
299
|
+
{
|
|
300
|
+
"relationships": [
|
|
301
|
+
{
|
|
302
|
+
"relationship_name": "some_relationship",
|
|
303
|
+
"from_table": "some_table",
|
|
304
|
+
"to_table": "some_table",
|
|
305
|
+
"from_column": "some_column",
|
|
306
|
+
"to_column": "some_column",
|
|
307
|
+
"type": "one_to_many"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"relationship_name": "another_relationship",
|
|
311
|
+
"from_table": "table_a",
|
|
312
|
+
"to_table": "table_b",
|
|
313
|
+
"from_column": "column_a",
|
|
314
|
+
"to_column": "column_b",
|
|
315
|
+
"type": "many_to_many"
|
|
316
|
+
}
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
</details>
|
|
322
|
+
|
|
323
|
+
---
|
|
324
|
+
|
|
325
|
+
### `listAvailableDatasetsV2`
|
|
326
|
+
|
|
327
|
+
Lists all available datasets grouped by domain
|
|
328
|
+
|
|
329
|
+
`GET /v2/query/datasets`
|
|
330
|
+
|
|
331
|
+
```ts
|
|
332
|
+
const { data } = await client.listAvailableDatasetsV2()
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
<details>
|
|
336
|
+
<summary>Response</summary>
|
|
337
|
+
|
|
338
|
+
```json
|
|
339
|
+
{
|
|
340
|
+
"results": [
|
|
341
|
+
{
|
|
342
|
+
"domain": "entities",
|
|
343
|
+
"dataset": "entity_operations",
|
|
344
|
+
"endpoint": "/v2/query/domain/entities:execute"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"domain": "workflows",
|
|
348
|
+
"dataset": "workflow_execution_time_series",
|
|
349
|
+
"endpoint": "/v2/query/domain/workflows:execute"
|
|
350
|
+
}
|
|
351
|
+
]
|
|
352
|
+
}
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
</details>
|
|
356
|
+
|
|
357
|
+
---
|
|
358
|
+
|
|
359
|
+
### `executeEntitiesQuery`
|
|
360
|
+
|
|
361
|
+
Execute queries against entities datasets.
|
|
362
|
+
|
|
363
|
+
`POST /v2/query/domain/entities:execute`
|
|
364
|
+
|
|
365
|
+
```ts
|
|
366
|
+
const { data } = await client.executeEntitiesQuery(
|
|
367
|
+
{
|
|
368
|
+
cache_expiration: 'example',
|
|
369
|
+
no_cache: true,
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
query: {}
|
|
373
|
+
},
|
|
374
|
+
)
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
<details>
|
|
378
|
+
<summary>Response</summary>
|
|
379
|
+
|
|
380
|
+
```json
|
|
381
|
+
{
|
|
382
|
+
"status": "FINISHED",
|
|
383
|
+
"timestamp": "1715621496068",
|
|
384
|
+
"results": [
|
|
385
|
+
{}
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
</details>
|
|
391
|
+
|
|
392
|
+
---
|
|
393
|
+
|
|
394
|
+
### `executeWorkflowsQuery`
|
|
395
|
+
|
|
396
|
+
Query Workflow Analytics Datasets.
|
|
397
|
+
|
|
398
|
+
`POST /v2/query/domain/workflows:execute`
|
|
399
|
+
|
|
400
|
+
```ts
|
|
401
|
+
const { data } = await client.executeWorkflowsQuery(
|
|
402
|
+
{
|
|
403
|
+
mock: true,
|
|
404
|
+
cache_expiration: 'example',
|
|
405
|
+
no_cache: true,
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
dataset: 'total_count_of_workflow_executions',
|
|
409
|
+
workflow_definition_ids: ['string'],
|
|
410
|
+
entity_schemas: ['string'],
|
|
411
|
+
states: ['string'],
|
|
412
|
+
group_time_by: 'M',
|
|
413
|
+
relative_time_range: 'string',
|
|
414
|
+
time_range_from: 'string',
|
|
415
|
+
time_range_to: 'string',
|
|
416
|
+
duration_threshold: 0
|
|
417
|
+
},
|
|
418
|
+
)
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
<details>
|
|
422
|
+
<summary>Response</summary>
|
|
423
|
+
|
|
424
|
+
```json
|
|
425
|
+
{
|
|
426
|
+
"data": [0, 1],
|
|
427
|
+
"labels": ["label1", "label2"],
|
|
428
|
+
"timestamp": "1715621496068"
|
|
429
|
+
}
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
</details>
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
### `executeAutomationQuery`
|
|
437
|
+
|
|
438
|
+
Query Automation Analytics Datasets.
|
|
439
|
+
|
|
440
|
+
`POST /v2/query/domain/automations:execute`
|
|
441
|
+
|
|
442
|
+
```ts
|
|
443
|
+
const { data } = await client.executeAutomationQuery(
|
|
444
|
+
{
|
|
445
|
+
from: 1,
|
|
446
|
+
size: 1,
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
dataset: 'automation_executions_overview',
|
|
450
|
+
flow_ids: ['string'],
|
|
451
|
+
execution_states: ['success', 'failed', 'scheduled'],
|
|
452
|
+
relative_time_range: 'all_time',
|
|
453
|
+
time_range_from: 'string',
|
|
454
|
+
time_range_to: 'string'
|
|
455
|
+
},
|
|
456
|
+
)
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
<details>
|
|
460
|
+
<summary>Response</summary>
|
|
461
|
+
|
|
462
|
+
```json
|
|
463
|
+
{
|
|
464
|
+
"hits": 100,
|
|
465
|
+
"results": [
|
|
466
|
+
{
|
|
467
|
+
"flow_id": "1234567890",
|
|
468
|
+
"flow_name": "flow_name",
|
|
469
|
+
"execution_id": "execution_id",
|
|
470
|
+
"execution_status": "execution_status",
|
|
471
|
+
"entity_schema": "opportunity",
|
|
472
|
+
"entity_id": "entity_id",
|
|
473
|
+
"created_at": "execution_created_at",
|
|
474
|
+
"updated_at": "execution_updated_at",
|
|
475
|
+
"error": {
|
|
476
|
+
"message": "error_message",
|
|
477
|
+
"error_code": "error_code"
|
|
478
|
+
},
|
|
479
|
+
"trigger_event": {
|
|
480
|
+
"type": "EntityOperation",
|
|
481
|
+
"trigger_type": "createEntity"
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
</details>
|
|
489
|
+
|
|
490
|
+
---
|
|
491
|
+
|
|
492
|
+
### `listWorkflowPhasesByDefinitionId`
|
|
493
|
+
|
|
494
|
+
Retrieves the workflow phases associated with a given workflow definition ID.
|
|
495
|
+
|
|
496
|
+
`GET /v2/query/domain/workflows/definitions/{workflowDefinitionId}/phases`
|
|
497
|
+
|
|
498
|
+
```ts
|
|
499
|
+
const { data } = await client.listWorkflowPhasesByDefinitionId({
|
|
500
|
+
workflowDefinitionId: 'example',
|
|
501
|
+
})
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
<details>
|
|
505
|
+
<summary>Response</summary>
|
|
506
|
+
|
|
507
|
+
```json
|
|
508
|
+
[
|
|
509
|
+
{
|
|
510
|
+
"id": "y0UdVCOI",
|
|
511
|
+
"name": "Initial Phase"
|
|
512
|
+
}
|
|
513
|
+
]
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
</details>
|
|
517
|
+
|
|
518
|
+
---
|
|
519
|
+
|
|
520
|
+
### `listWorkflowDefinitions`
|
|
521
|
+
|
|
522
|
+
Lists available worflow definitions with their ids, names and start times
|
|
523
|
+
|
|
524
|
+
`GET /v2/query/domain/workflows/definitions`
|
|
525
|
+
|
|
526
|
+
```ts
|
|
527
|
+
const { data } = await client.listWorkflowDefinitions({
|
|
528
|
+
mock: true,
|
|
529
|
+
})
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
<details>
|
|
533
|
+
<summary>Response</summary>
|
|
534
|
+
|
|
535
|
+
```json
|
|
536
|
+
{
|
|
537
|
+
"results": [
|
|
538
|
+
{
|
|
539
|
+
"id": "y0UdVCOI",
|
|
540
|
+
"name": "PV Kauf",
|
|
541
|
+
"max_date": "2023-05-31T00:00:00.000Z",
|
|
542
|
+
"min_date": "2023-01-00T00:00:00.000Z"
|
|
543
|
+
}
|
|
544
|
+
]
|
|
545
|
+
}
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
</details>
|
|
549
|
+
|
|
550
|
+
---
|
|
551
|
+
|
|
552
|
+
### `listPhaseNames`
|
|
553
|
+
|
|
554
|
+
Lists phase names of an org.
|
|
555
|
+
|
|
556
|
+
`GET /v2/query/domain/workflows/phases`
|
|
557
|
+
|
|
558
|
+
```ts
|
|
559
|
+
const { data } = await client.listPhaseNames({
|
|
560
|
+
org_id: 'example',
|
|
561
|
+
})
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
<details>
|
|
565
|
+
<summary>Response</summary>
|
|
566
|
+
|
|
567
|
+
```json
|
|
568
|
+
{
|
|
569
|
+
"results": [
|
|
570
|
+
{
|
|
571
|
+
"id": "y0UdVCOI",
|
|
572
|
+
"name": "PV Kauf",
|
|
573
|
+
"max_date": "2023-05-31T00:00:00.000Z",
|
|
574
|
+
"min_date": "2023-01-00T00:00:00.000Z"
|
|
575
|
+
}
|
|
576
|
+
]
|
|
577
|
+
}
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
</details>
|
|
581
|
+
|
|
582
|
+
---
|
|
583
|
+
|
|
584
|
+
### `listDatasets`
|
|
585
|
+
|
|
586
|
+
Get list of available datasets
|
|
587
|
+
|
|
588
|
+
`GET /v1/query/datasets`
|
|
589
|
+
|
|
590
|
+
```ts
|
|
591
|
+
const { data } = await client.listDatasets()
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
<details>
|
|
595
|
+
<summary>Response</summary>
|
|
596
|
+
|
|
597
|
+
```json
|
|
598
|
+
{
|
|
599
|
+
"results": [
|
|
600
|
+
{
|
|
601
|
+
"dataset": "entity_operations"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"dataset": "entities_timemachine"
|
|
605
|
+
}
|
|
606
|
+
]
|
|
607
|
+
}
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
</details>
|
|
611
|
+
|
|
612
|
+
---
|
|
613
|
+
|
|
614
|
+
### `executeQuery`
|
|
615
|
+
|
|
616
|
+
Execute queries against datasets.
|
|
617
|
+
|
|
618
|
+
`POST /v1/query:execute`
|
|
619
|
+
|
|
620
|
+
```ts
|
|
621
|
+
const { data } = await client.executeQuery(
|
|
622
|
+
{
|
|
623
|
+
cache_expiration: 'example',
|
|
624
|
+
no_cache: true,
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
query: {}
|
|
628
|
+
},
|
|
629
|
+
)
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
<details>
|
|
633
|
+
<summary>Response</summary>
|
|
634
|
+
|
|
635
|
+
```json
|
|
636
|
+
{
|
|
637
|
+
"status": "FINISHED",
|
|
638
|
+
"timestamp": "1715621496068",
|
|
639
|
+
"results": [
|
|
640
|
+
{}
|
|
641
|
+
]
|
|
642
|
+
}
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
</details>
|
|
646
|
+
|
|
647
|
+
---
|
|
648
|
+
|
|
649
|
+
### `generateCredentialsV2`
|
|
650
|
+
|
|
651
|
+
Generate credentials for the epilot datalake for connecting other BI tools with ClickHouse
|
|
652
|
+
|
|
653
|
+
`POST /v2/query/credentials:generate`
|
|
654
|
+
|
|
655
|
+
```ts
|
|
656
|
+
const { data } = await client.generateCredentialsV2()
|
|
657
|
+
```
|
|
658
|
+
|
|
659
|
+
<details>
|
|
660
|
+
<summary>Response</summary>
|
|
661
|
+
|
|
662
|
+
```json
|
|
663
|
+
{
|
|
664
|
+
"username": "datalakeuser_sfsdfs_66",
|
|
665
|
+
"password": "***",
|
|
666
|
+
"endpoints": {
|
|
667
|
+
"host": "qjjcxsy87t.eu-central-1.aws.clickhouse.cloud",
|
|
668
|
+
"port": 8443
|
|
669
|
+
},
|
|
670
|
+
"database": "datawarehouse"
|
|
671
|
+
}
|
|
672
|
+
```
|
|
673
|
+
|
|
674
|
+
</details>
|
|
675
|
+
|
|
676
|
+
---
|
|
677
|
+
|
|
678
|
+
### `listCredentialsV2`
|
|
679
|
+
|
|
680
|
+
List all the credentialof Clickhouse for the organization here
|
|
681
|
+
|
|
682
|
+
`GET /v2/query/credentials:list`
|
|
683
|
+
|
|
684
|
+
```ts
|
|
685
|
+
const { data } = await client.listCredentialsV2()
|
|
686
|
+
```
|
|
687
|
+
|
|
688
|
+
<details>
|
|
689
|
+
<summary>Response</summary>
|
|
690
|
+
|
|
691
|
+
```json
|
|
692
|
+
{
|
|
693
|
+
"users": [
|
|
694
|
+
{
|
|
695
|
+
"user_id": "string"
|
|
696
|
+
}
|
|
697
|
+
]
|
|
698
|
+
}
|
|
699
|
+
```
|
|
700
|
+
|
|
701
|
+
</details>
|
|
702
|
+
|
|
703
|
+
---
|
|
704
|
+
|
|
705
|
+
### `revokeCredentialsV2`
|
|
706
|
+
|
|
707
|
+
Revoke credentials for the epilot datalake for connecting other BI tools with Clickhouse
|
|
708
|
+
|
|
709
|
+
`POST /v2/query/credentials:revoke`
|
|
710
|
+
|
|
711
|
+
```ts
|
|
712
|
+
const { data } = await client.revokeCredentialsV2({
|
|
713
|
+
user_id: 'example',
|
|
714
|
+
})
|
|
715
|
+
```
|
|
716
|
+
|
|
717
|
+
<details>
|
|
718
|
+
<summary>Response</summary>
|
|
719
|
+
|
|
720
|
+
```json
|
|
721
|
+
{
|
|
722
|
+
"success": true
|
|
723
|
+
}
|
|
724
|
+
```
|
|
725
|
+
|
|
726
|
+
</details>
|
|
727
|
+
|
|
728
|
+
---
|
|
729
|
+
|
|
730
|
+
### `executeQueryV2`
|
|
731
|
+
|
|
732
|
+
Execute queries against datasets.
|
|
733
|
+
|
|
734
|
+
`POST /v2/query:execute`
|
|
735
|
+
|
|
736
|
+
```ts
|
|
737
|
+
const { data } = await client.executeQueryV2(
|
|
738
|
+
null,
|
|
739
|
+
{},
|
|
740
|
+
)
|
|
741
|
+
```
|
|
742
|
+
|
|
743
|
+
<details>
|
|
744
|
+
<summary>Response</summary>
|
|
745
|
+
|
|
746
|
+
```json
|
|
747
|
+
{
|
|
748
|
+
"status": "FINISHED",
|
|
749
|
+
"timestamp": "1715621496068",
|
|
750
|
+
"results": [
|
|
751
|
+
{}
|
|
752
|
+
]
|
|
753
|
+
}
|
|
754
|
+
```
|
|
755
|
+
|
|
756
|
+
</details>
|
|
757
|
+
|
|
758
|
+
---
|
|
759
|
+
|
|
760
|
+
### `getSemanticModel`
|
|
761
|
+
|
|
762
|
+
Get the semantic model for agent/tool consumption.
|
|
763
|
+
|
|
764
|
+
`GET /v2/query/semantic-model`
|
|
765
|
+
|
|
766
|
+
```ts
|
|
767
|
+
const { data } = await client.getSemanticModel()
|
|
768
|
+
```
|
|
769
|
+
|
|
770
|
+
<details>
|
|
771
|
+
<summary>Response</summary>
|
|
772
|
+
|
|
773
|
+
```json
|
|
774
|
+
{
|
|
775
|
+
"entities": [
|
|
776
|
+
{
|
|
777
|
+
"name": "current_contacts",
|
|
778
|
+
"displayName": "Contacts",
|
|
779
|
+
"schema": "entity"
|
|
780
|
+
}
|
|
781
|
+
],
|
|
782
|
+
"relationships": [
|
|
783
|
+
{
|
|
784
|
+
"from": "current_contacts",
|
|
785
|
+
"to": "opportunity_account_contact_relation",
|
|
786
|
+
"relationship": "hasMany",
|
|
787
|
+
"displayName": "Contact has many Opportunities"
|
|
788
|
+
}
|
|
789
|
+
],
|
|
790
|
+
"capabilities": {
|
|
791
|
+
"aggregations": ["count", "count_distinct", "sum", "average", "min", "max", "median"],
|
|
792
|
+
"calculationTypes": [
|
|
793
|
+
{
|
|
794
|
+
"type": "string",
|
|
795
|
+
"description": "string",
|
|
796
|
+
"parameters": {}
|
|
797
|
+
}
|
|
798
|
+
],
|
|
799
|
+
"granularities": ["day", "week", "month", "quarter", "year"],
|
|
800
|
+
"filterOperators": [
|
|
801
|
+
{
|
|
802
|
+
"operator": "string",
|
|
803
|
+
"description": "string"
|
|
804
|
+
}
|
|
805
|
+
]
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
```
|
|
809
|
+
|
|
810
|
+
</details>
|
|
811
|
+
|
|
812
|
+
---
|
|
813
|
+
|
|
814
|
+
### `autocomplete`
|
|
815
|
+
|
|
816
|
+
Generic autocomplete endpoint for querying distinct values across datasets.
|
|
817
|
+
Use the dataset parameter to specify which data category to query.
|
|
818
|
+
|
|
819
|
+
`GET /v2/query/autocomplete`
|
|
820
|
+
|
|
821
|
+
```ts
|
|
822
|
+
const { data } = await client.autocomplete({
|
|
823
|
+
dataset: 'example',
|
|
824
|
+
input: 'example',
|
|
825
|
+
attribute: 'example',
|
|
826
|
+
size: 1,
|
|
827
|
+
})
|
|
828
|
+
```
|
|
829
|
+
|
|
830
|
+
<details>
|
|
831
|
+
<summary>Response</summary>
|
|
832
|
+
|
|
833
|
+
```json
|
|
834
|
+
{
|
|
835
|
+
"results": ["value"]
|
|
836
|
+
}
|
|
837
|
+
```
|
|
838
|
+
|
|
839
|
+
</details>
|
|
840
|
+
|
|
841
|
+
---
|
|
842
|
+
|
|
843
|
+
### `workflowsAutocomplete`
|
|
844
|
+
|
|
845
|
+
Autocomplete Workflows data
|
|
846
|
+
|
|
847
|
+
`GET /v2/query/workflows:autocomplete`
|
|
848
|
+
|
|
849
|
+
```ts
|
|
850
|
+
const { data } = await client.workflowsAutocomplete({
|
|
851
|
+
input: 'example',
|
|
852
|
+
attribute: 'example',
|
|
853
|
+
size: 1,
|
|
854
|
+
})
|
|
855
|
+
```
|
|
856
|
+
|
|
857
|
+
<details>
|
|
858
|
+
<summary>Response</summary>
|
|
859
|
+
|
|
860
|
+
```json
|
|
861
|
+
{
|
|
862
|
+
"results": ["value"]
|
|
863
|
+
}
|
|
864
|
+
```
|
|
865
|
+
|
|
866
|
+
</details>
|
|
867
|
+
|
|
868
|
+
---
|
|
869
|
+
|
|
870
|
+
## Schemas
|
|
871
|
+
|
|
872
|
+
### `ErrorResponse`
|
|
873
|
+
|
|
874
|
+
Standard error response body
|
|
875
|
+
|
|
876
|
+
```ts
|
|
877
|
+
type ErrorResponse = {
|
|
878
|
+
status?: number
|
|
879
|
+
error?: string
|
|
880
|
+
message?: string
|
|
881
|
+
}
|
|
882
|
+
```
|
|
883
|
+
|
|
884
|
+
### `ViewRequest`
|
|
885
|
+
|
|
886
|
+
```ts
|
|
887
|
+
type ViewRequest = {
|
|
888
|
+
view_name?: string
|
|
889
|
+
source_dataset: "current_entities"
|
|
890
|
+
config: {
|
|
891
|
+
schema: string
|
|
892
|
+
include_purpose_view?: boolean
|
|
893
|
+
include_label_view?: boolean
|
|
894
|
+
include_relation_view?: boolean
|
|
895
|
+
relationship_attribute?: string[]
|
|
896
|
+
}
|
|
897
|
+
} | {
|
|
898
|
+
view_name?: string
|
|
899
|
+
source_dataset: "taxonomies"
|
|
900
|
+
} | {
|
|
901
|
+
view_name?: string
|
|
902
|
+
source_dataset: "workflow_executions"
|
|
903
|
+
}
|
|
904
|
+
```
|
|
905
|
+
|
|
906
|
+
### `CurrentEntitiesViewRequest`
|
|
907
|
+
|
|
908
|
+
```ts
|
|
909
|
+
type CurrentEntitiesViewRequest = {
|
|
910
|
+
view_name?: string
|
|
911
|
+
source_dataset: "current_entities"
|
|
912
|
+
config: {
|
|
913
|
+
schema: string
|
|
914
|
+
include_purpose_view?: boolean
|
|
915
|
+
include_label_view?: boolean
|
|
916
|
+
include_relation_view?: boolean
|
|
917
|
+
relationship_attribute?: string[]
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
```
|
|
921
|
+
|
|
922
|
+
### `TaxonomiesViewRequest`
|
|
923
|
+
|
|
924
|
+
```ts
|
|
925
|
+
type TaxonomiesViewRequest = {
|
|
926
|
+
view_name?: string
|
|
927
|
+
source_dataset: "taxonomies"
|
|
928
|
+
}
|
|
929
|
+
```
|
|
930
|
+
|
|
931
|
+
### `WorkflowExecutionsViewRequest`
|
|
932
|
+
|
|
933
|
+
```ts
|
|
934
|
+
type WorkflowExecutionsViewRequest = {
|
|
935
|
+
view_name?: string
|
|
936
|
+
source_dataset: "workflow_executions"
|
|
937
|
+
}
|
|
938
|
+
```
|
|
939
|
+
|
|
940
|
+
### `ViewResponse`
|
|
941
|
+
|
|
942
|
+
```ts
|
|
943
|
+
type ViewResponse = {
|
|
944
|
+
view_name: string
|
|
945
|
+
source_dataset: "current_entities" | "taxonomies" | "workflow_executions"
|
|
946
|
+
attributes: Array<{
|
|
947
|
+
name: string
|
|
948
|
+
type: string
|
|
949
|
+
description?: string
|
|
950
|
+
}>
|
|
951
|
+
}
|
|
952
|
+
```
|
|
953
|
+
|
|
954
|
+
### `ViewsListResponse`
|
|
955
|
+
|
|
956
|
+
```ts
|
|
957
|
+
type ViewsListResponse = {
|
|
958
|
+
views?: Array<{
|
|
959
|
+
view_name: string
|
|
960
|
+
source_dataset: "current_entities" | "taxonomies" | "workflow_executions"
|
|
961
|
+
view_slug?: string
|
|
962
|
+
attributes: Array<{
|
|
963
|
+
name: { ... }
|
|
964
|
+
type: { ... }
|
|
965
|
+
description?: { ... }
|
|
966
|
+
}>
|
|
967
|
+
}>
|
|
968
|
+
}
|
|
969
|
+
```
|
|
970
|
+
|
|
971
|
+
### `RelationshipRequest`
|
|
972
|
+
|
|
973
|
+
```ts
|
|
974
|
+
type RelationshipRequest = {
|
|
975
|
+
relationship_name: string
|
|
976
|
+
from_table: string
|
|
977
|
+
to_table: string
|
|
978
|
+
from_column: string
|
|
979
|
+
to_column: string
|
|
980
|
+
type: "one_to_many" | "many_to_many" | "many_to_one" | "one_to_one"
|
|
981
|
+
}
|
|
982
|
+
```
|
|
983
|
+
|
|
984
|
+
### `RelationshipResponse`
|
|
985
|
+
|
|
986
|
+
```ts
|
|
987
|
+
type RelationshipResponse = {
|
|
988
|
+
relationship_name?: string
|
|
989
|
+
from_table?: string
|
|
990
|
+
to_table?: string
|
|
991
|
+
from_column?: string
|
|
992
|
+
to_column?: string
|
|
993
|
+
type?: "one_to_many" | "many_to_many" | "many_to_one" | "one_to_one"
|
|
994
|
+
}
|
|
995
|
+
```
|
|
996
|
+
|
|
997
|
+
### `RelationshipsListResponse`
|
|
998
|
+
|
|
999
|
+
```ts
|
|
1000
|
+
type RelationshipsListResponse = {
|
|
1001
|
+
relationships?: Array<{
|
|
1002
|
+
relationship_name?: string
|
|
1003
|
+
from_table?: string
|
|
1004
|
+
to_table?: string
|
|
1005
|
+
from_column?: string
|
|
1006
|
+
to_column?: string
|
|
1007
|
+
type?: "one_to_many" | "many_to_many" | "many_to_one" | "one_to_one"
|
|
1008
|
+
}>
|
|
1009
|
+
}
|
|
1010
|
+
```
|
|
1011
|
+
|
|
1012
|
+
### `NoCache`
|
|
1013
|
+
|
|
1014
|
+
```ts
|
|
1015
|
+
type NoCache = boolean
|
|
1016
|
+
```
|
|
1017
|
+
|
|
1018
|
+
### `CacheExpiration`
|
|
1019
|
+
|
|
1020
|
+
Cache Expiration timestamp
|
|
1021
|
+
|
|
1022
|
+
```ts
|
|
1023
|
+
type CacheExpiration = string // timestamp
|
|
1024
|
+
```
|
|
1025
|
+
|
|
1026
|
+
### `UserId`
|
|
1027
|
+
|
|
1028
|
+
Execution Id for the query
|
|
1029
|
+
|
|
1030
|
+
```ts
|
|
1031
|
+
type UserId = string
|
|
1032
|
+
```
|
|
1033
|
+
|
|
1034
|
+
### `DatasetDomain`
|
|
1035
|
+
|
|
1036
|
+
```ts
|
|
1037
|
+
type DatasetDomain = "entities" | "workflows"
|
|
1038
|
+
```
|
|
1039
|
+
|
|
1040
|
+
### `Dataset`
|
|
1041
|
+
|
|
1042
|
+
```ts
|
|
1043
|
+
type Dataset = {
|
|
1044
|
+
dataset?: string
|
|
1045
|
+
domain?: "entities" | "workflows"
|
|
1046
|
+
endpoint?: string
|
|
1047
|
+
}
|
|
1048
|
+
```
|
|
1049
|
+
|
|
1050
|
+
### `DatalakeQueryOptions`
|
|
1051
|
+
|
|
1052
|
+
```ts
|
|
1053
|
+
type DatalakeQueryOptions = {
|
|
1054
|
+
dataset?: string
|
|
1055
|
+
measure?: string
|
|
1056
|
+
dimensions?: Record<string, unknown>[]
|
|
1057
|
+
filters?: Record<string, unknown>[]
|
|
1058
|
+
exclude_deleted?: boolean
|
|
1059
|
+
}
|
|
1060
|
+
```
|
|
1061
|
+
|
|
1062
|
+
### `DatalakeQuery`
|
|
1063
|
+
|
|
1064
|
+
```ts
|
|
1065
|
+
type DatalakeQuery = {
|
|
1066
|
+
dataset?: string
|
|
1067
|
+
measure?: string
|
|
1068
|
+
dimensions?: Record<string, unknown>[]
|
|
1069
|
+
filters?: Record<string, unknown>[]
|
|
1070
|
+
exclude_deleted?: boolean
|
|
1071
|
+
}
|
|
1072
|
+
```
|
|
1073
|
+
|
|
1074
|
+
### `AutomationQueryOptions`
|
|
1075
|
+
|
|
1076
|
+
```ts
|
|
1077
|
+
type AutomationQueryOptions = {
|
|
1078
|
+
dataset: "automation_executions_overview" | "list_automation_definitions"
|
|
1079
|
+
}
|
|
1080
|
+
```
|
|
1081
|
+
|
|
1082
|
+
### `DatasetOptions.AutomationExecutionsOverview`
|
|
1083
|
+
|
|
1084
|
+
```ts
|
|
1085
|
+
type DatasetOptions.AutomationExecutionsOverview = {
|
|
1086
|
+
dataset: "automation_executions_overview" | "list_automation_definitions"
|
|
1087
|
+
flow_ids?: string[]
|
|
1088
|
+
execution_states?: string[]
|
|
1089
|
+
relative_time_range?: "all_time" | "this_week" | "last_week" | "last_7_days" | "this_month" | "last_month" | "last_30_days" | "last_3_months" | "last_6_months" | "this_year" | "last_year"
|
|
1090
|
+
time_range_from?: string
|
|
1091
|
+
time_range_to?: string
|
|
1092
|
+
}
|
|
1093
|
+
```
|
|
1094
|
+
|
|
1095
|
+
### `DatasetOptions.ListAutomationDefinitions`
|
|
1096
|
+
|
|
1097
|
+
```ts
|
|
1098
|
+
type DatasetOptions.ListAutomationDefinitions = {
|
|
1099
|
+
dataset: "automation_executions_overview" | "list_automation_definitions"
|
|
1100
|
+
search?: string
|
|
1101
|
+
}
|
|
1102
|
+
```
|
|
1103
|
+
|
|
1104
|
+
### `WorkflowsQueryOptions`
|
|
1105
|
+
|
|
1106
|
+
Settings for the data of the chart that is being queried.
|
|
1107
|
+
|
|
1108
|
+
```ts
|
|
1109
|
+
type WorkflowsQueryOptions = {
|
|
1110
|
+
dataset?: "total_count_of_workflow_executions" | "workflow_execution_time_series" | "cumulative_sum_of_workflows" | "cancellation_reasons" | "phases_count" | "phases_duration" | "tasks_duration" | "task_duration" | "workflow_tasks_overview"
|
|
1111
|
+
workflow_definition_ids?: string[]
|
|
1112
|
+
entity_schemas?: string[]
|
|
1113
|
+
states?: string[]
|
|
1114
|
+
group_time_by?: string
|
|
1115
|
+
relative_time_range?: string
|
|
1116
|
+
time_range_from?: string
|
|
1117
|
+
time_range_to?: string
|
|
1118
|
+
duration_threshold?: number
|
|
1119
|
+
}
|
|
1120
|
+
```
|
|
1121
|
+
|
|
1122
|
+
### `DatasetOptions.TotalCountOfWorkflowExecutions`
|
|
1123
|
+
|
|
1124
|
+
See the total of workflow executions in a pie chart.
|
|
1125
|
+
|
|
1126
|
+
```ts
|
|
1127
|
+
type DatasetOptions.TotalCountOfWorkflowExecutions = {
|
|
1128
|
+
workflow_definition_ids?: string[]
|
|
1129
|
+
entity_schema?: string
|
|
1130
|
+
relative_time_range?: string
|
|
1131
|
+
time_range_from?: string
|
|
1132
|
+
time_range_to?: string
|
|
1133
|
+
}
|
|
1134
|
+
```
|
|
1135
|
+
|
|
1136
|
+
### `DatasetOptions.WorkflowExecutionTimeSeries`
|
|
1137
|
+
|
|
1138
|
+
```ts
|
|
1139
|
+
type DatasetOptions.WorkflowExecutionTimeSeries = {
|
|
1140
|
+
workflow_definition_ids?: string[]
|
|
1141
|
+
entity_schema?: string
|
|
1142
|
+
relative_time_range?: string
|
|
1143
|
+
time_range_from?: string
|
|
1144
|
+
time_range_to?: string
|
|
1145
|
+
workflow_states?: string[]
|
|
1146
|
+
group_time_by?: string
|
|
1147
|
+
}
|
|
1148
|
+
```
|
|
1149
|
+
|
|
1150
|
+
### `DatasetOptions.CumulativeSumOfWorkflows`
|
|
1151
|
+
|
|
1152
|
+
```ts
|
|
1153
|
+
type DatasetOptions.CumulativeSumOfWorkflows = {
|
|
1154
|
+
workflow_definition_ids?: string[]
|
|
1155
|
+
entity_schema?: string
|
|
1156
|
+
relative_time_range?: string
|
|
1157
|
+
time_range_from?: string
|
|
1158
|
+
time_range_to?: string
|
|
1159
|
+
workflow_states?: string[]
|
|
1160
|
+
group_time_by?: string
|
|
1161
|
+
}
|
|
1162
|
+
```
|
|
1163
|
+
|
|
1164
|
+
### `DatasetOptions.CancellationReasons`
|
|
1165
|
+
|
|
1166
|
+
See the cancellation reasons of workflows in a pie chart.
|
|
1167
|
+
|
|
1168
|
+
```ts
|
|
1169
|
+
type DatasetOptions.CancellationReasons = {
|
|
1170
|
+
workflow_definition_ids?: string[]
|
|
1171
|
+
entity_schema?: string
|
|
1172
|
+
relative_time_range?: string
|
|
1173
|
+
time_range_from?: string
|
|
1174
|
+
time_range_to?: string
|
|
1175
|
+
}
|
|
1176
|
+
```
|
|
1177
|
+
|
|
1178
|
+
### `DatasetOptions.WorkflowTasksOverview`
|
|
1179
|
+
|
|
1180
|
+
Get a list of tasks to help organize executing users their day.
|
|
1181
|
+
|
|
1182
|
+
```ts
|
|
1183
|
+
type DatasetOptions.WorkflowTasksOverview = {
|
|
1184
|
+
dataset: "total_count_of_workflow_executions" | "workflow_execution_time_series" | "cumulative_sum_of_workflows" | "cancellation_reasons" | "phases_count" | "phases_duration" | "tasks_duration" | "task_duration" | "workflow_tasks_overview"
|
|
1185
|
+
workflow_definition_ids?: string[]
|
|
1186
|
+
entity_schema?: string
|
|
1187
|
+
relative_time_range?: string
|
|
1188
|
+
time_range_from?: string
|
|
1189
|
+
time_range_to?: string
|
|
1190
|
+
assignee_ids?: string[]
|
|
1191
|
+
include_unassigned?: boolean
|
|
1192
|
+
due_date_from?: string
|
|
1193
|
+
due_date_to?: string
|
|
1194
|
+
sort_by?: string
|
|
1195
|
+
page_number?: number
|
|
1196
|
+
page_size?: number
|
|
1197
|
+
}
|
|
1198
|
+
```
|
|
1199
|
+
|
|
1200
|
+
### `Response.WorkflowTaskOverview`
|
|
1201
|
+
|
|
1202
|
+
```ts
|
|
1203
|
+
type Response.WorkflowTaskOverview = {
|
|
1204
|
+
results?: Array<{
|
|
1205
|
+
orgId?: string
|
|
1206
|
+
id?: string
|
|
1207
|
+
definitionId?: string
|
|
1208
|
+
phaseId?: string
|
|
1209
|
+
entityRefId?: string
|
|
1210
|
+
name?: string
|
|
1211
|
+
type?: "MANUAL" | "AUTOMATION"
|
|
1212
|
+
ecp?: {
|
|
1213
|
+
label?: { ... }
|
|
1214
|
+
}
|
|
1215
|
+
requirements?: Array<{
|
|
1216
|
+
definitionId?: { ... }
|
|
1217
|
+
type?: { ... }
|
|
1218
|
+
condition?: { ... }
|
|
1219
|
+
}>
|
|
1220
|
+
executionType?: "MANUAL" | "AUTOMATION"
|
|
1221
|
+
executionId?: string
|
|
1222
|
+
assignedTo?: string[]
|
|
1223
|
+
assignedToInProgress?: string
|
|
1224
|
+
status?: "UNASSIGNED" | "ASSIGNED" | "COMPLETED" | "SKIPPED" | "IN_PROGRESS"
|
|
1225
|
+
executionStatus?: "STARTED" | "DONE" | "CLOSED"
|
|
1226
|
+
created?: string
|
|
1227
|
+
lastUpdated?: string
|
|
1228
|
+
dueDate?: string
|
|
1229
|
+
dynamicDueDate?: {
|
|
1230
|
+
numberOfUnits: { ... }
|
|
1231
|
+
timePeriod: { ... }
|
|
1232
|
+
actionTypeCondition?: { ... }
|
|
1233
|
+
stepId?: { ... }
|
|
1234
|
+
}
|
|
1235
|
+
manuallyCreated?: boolean
|
|
1236
|
+
enabled?: boolean
|
|
1237
|
+
automationConfig?: {
|
|
1238
|
+
flowId: { ... }
|
|
1239
|
+
executionId?: { ... }
|
|
1240
|
+
executionStatus?: { ... }
|
|
1241
|
+
}
|
|
1242
|
+
executionName?: string
|
|
1243
|
+
contexts?: Array<{
|
|
1244
|
+
id: { ... }
|
|
1245
|
+
title: { ... }
|
|
1246
|
+
schema: { ... }
|
|
1247
|
+
}>
|
|
1248
|
+
}>
|
|
1249
|
+
hits?: number
|
|
1250
|
+
}
|
|
1251
|
+
```
|
|
1252
|
+
|
|
1253
|
+
### `ECPDetails`
|
|
1254
|
+
|
|
1255
|
+
Details regarding ECP for the workflow step
|
|
1256
|
+
|
|
1257
|
+
```ts
|
|
1258
|
+
type ECPDetails = {
|
|
1259
|
+
label?: string
|
|
1260
|
+
}
|
|
1261
|
+
```
|
|
1262
|
+
|
|
1263
|
+
### `WorkflowContext`
|
|
1264
|
+
|
|
1265
|
+
```ts
|
|
1266
|
+
type WorkflowContext = {
|
|
1267
|
+
id: string
|
|
1268
|
+
title: string
|
|
1269
|
+
schema: string
|
|
1270
|
+
}
|
|
1271
|
+
```
|
|
1272
|
+
|
|
1273
|
+
### `WorkflowStatus`
|
|
1274
|
+
|
|
1275
|
+
```ts
|
|
1276
|
+
type WorkflowStatus = "STARTED" | "DONE" | "CLOSED"
|
|
1277
|
+
```
|
|
1278
|
+
|
|
1279
|
+
### `AutomationConfig`
|
|
1280
|
+
|
|
1281
|
+
Configuration for automation execution to run
|
|
1282
|
+
|
|
1283
|
+
```ts
|
|
1284
|
+
type AutomationConfig = {
|
|
1285
|
+
flowId: string
|
|
1286
|
+
executionId?: string
|
|
1287
|
+
executionStatus?: string
|
|
1288
|
+
}
|
|
1289
|
+
```
|
|
1290
|
+
|
|
1291
|
+
### `DynamicDueDate`
|
|
1292
|
+
|
|
1293
|
+
set a Duedate for a step then a specific
|
|
1294
|
+
|
|
1295
|
+
```ts
|
|
1296
|
+
type DynamicDueDate = {
|
|
1297
|
+
numberOfUnits: number
|
|
1298
|
+
timePeriod: "days" | "weeks" | "months"
|
|
1299
|
+
actionTypeCondition?: "WORKFLOW_STARTED" | "STEP_CLOSED"
|
|
1300
|
+
stepId?: string
|
|
1301
|
+
}
|
|
1302
|
+
```
|
|
1303
|
+
|
|
1304
|
+
### `TaskStatus`
|
|
1305
|
+
|
|
1306
|
+
```ts
|
|
1307
|
+
type TaskStatus = "UNASSIGNED" | "ASSIGNED" | "COMPLETED" | "SKIPPED" | "IN_PROGRESS"
|
|
1308
|
+
```
|
|
1309
|
+
|
|
1310
|
+
### `TaskRequirement`
|
|
1311
|
+
|
|
1312
|
+
describe the requirement for step enablement
|
|
1313
|
+
|
|
1314
|
+
```ts
|
|
1315
|
+
type TaskRequirement = {
|
|
1316
|
+
definitionId?: string
|
|
1317
|
+
type?: "STEP"
|
|
1318
|
+
condition?: "CLOSED"
|
|
1319
|
+
}
|
|
1320
|
+
```
|
|
1321
|
+
|
|
1322
|
+
### `TaskType`
|
|
1323
|
+
|
|
1324
|
+
```ts
|
|
1325
|
+
type TaskType = "MANUAL" | "AUTOMATION"
|
|
1326
|
+
```
|
|
1327
|
+
|
|
1328
|
+
### `Task`
|
|
1329
|
+
|
|
1330
|
+
```ts
|
|
1331
|
+
type Task = {
|
|
1332
|
+
orgId?: string
|
|
1333
|
+
id?: string
|
|
1334
|
+
definitionId?: string
|
|
1335
|
+
phaseId?: string
|
|
1336
|
+
entityRefId?: string
|
|
1337
|
+
name?: string
|
|
1338
|
+
type?: "MANUAL" | "AUTOMATION"
|
|
1339
|
+
ecp?: {
|
|
1340
|
+
label?: string
|
|
1341
|
+
}
|
|
1342
|
+
requirements?: Array<{
|
|
1343
|
+
definitionId?: string
|
|
1344
|
+
type?: "STEP"
|
|
1345
|
+
condition?: "CLOSED"
|
|
1346
|
+
}>
|
|
1347
|
+
executionType?: "MANUAL" | "AUTOMATION"
|
|
1348
|
+
executionId?: string
|
|
1349
|
+
assignedTo?: string[]
|
|
1350
|
+
assignedToInProgress?: string
|
|
1351
|
+
status?: "UNASSIGNED" | "ASSIGNED" | "COMPLETED" | "SKIPPED" | "IN_PROGRESS"
|
|
1352
|
+
executionStatus?: "STARTED" | "DONE" | "CLOSED"
|
|
1353
|
+
created?: string
|
|
1354
|
+
lastUpdated?: string
|
|
1355
|
+
dueDate?: string
|
|
1356
|
+
dynamicDueDate?: {
|
|
1357
|
+
numberOfUnits: number
|
|
1358
|
+
timePeriod: "days" | "weeks" | "months"
|
|
1359
|
+
actionTypeCondition?: "WORKFLOW_STARTED" | "STEP_CLOSED"
|
|
1360
|
+
stepId?: string
|
|
1361
|
+
}
|
|
1362
|
+
manuallyCreated?: boolean
|
|
1363
|
+
enabled?: boolean
|
|
1364
|
+
automationConfig?: {
|
|
1365
|
+
flowId: string
|
|
1366
|
+
executionId?: string
|
|
1367
|
+
executionStatus?: string
|
|
1368
|
+
}
|
|
1369
|
+
executionName?: string
|
|
1370
|
+
contexts?: Array<{
|
|
1371
|
+
id: string
|
|
1372
|
+
title: string
|
|
1373
|
+
schema: string
|
|
1374
|
+
}>
|
|
1375
|
+
}
|
|
1376
|
+
```
|
|
1377
|
+
|
|
1378
|
+
### `WorkflowsQueryOptions.WorkflowDefinitionIDs`
|
|
1379
|
+
|
|
1380
|
+
Filter by specific workflows by passing a list of workflow definition ids.
|
|
1381
|
+
|
|
1382
|
+
```ts
|
|
1383
|
+
type WorkflowsQueryOptions.WorkflowDefinitionIDs = string[]
|
|
1384
|
+
```
|
|
1385
|
+
|
|
1386
|
+
### `WorkflowsQueryOptions.EntitySchema`
|
|
1387
|
+
|
|
1388
|
+
Workflows can be applied to different kinds of entities, e.g. on Opportunities or Orders.
|
|
1389
|
+
You can choose to limit your results to workflow executions to specific entity schemas / types.
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
```ts
|
|
1393
|
+
type WorkflowsQueryOptions.EntitySchema = string
|
|
1394
|
+
```
|
|
1395
|
+
|
|
1396
|
+
### `WorkflowsQueryOptions.RelativeTimeRange`
|
|
1397
|
+
|
|
1398
|
+
A combination of two worde that describe a time range, e.g. "this year" or "last month"
|
|
1399
|
+
|
|
1400
|
+
```ts
|
|
1401
|
+
type WorkflowsQueryOptions.RelativeTimeRange = string
|
|
1402
|
+
```
|
|
1403
|
+
|
|
1404
|
+
### `WorkflowsQueryOptions.TimeRangeFrom`
|
|
1405
|
+
|
|
1406
|
+
Set a specific start of a time range, e.g. "2023-01-01"
|
|
1407
|
+
|
|
1408
|
+
```ts
|
|
1409
|
+
type WorkflowsQueryOptions.TimeRangeFrom = string
|
|
1410
|
+
```
|
|
1411
|
+
|
|
1412
|
+
### `WorkflowsQueryOptions.TimeRangeTo`
|
|
1413
|
+
|
|
1414
|
+
Set a specific end of a time range, e.g. "2023-06-30"
|
|
1415
|
+
|
|
1416
|
+
```ts
|
|
1417
|
+
type WorkflowsQueryOptions.TimeRangeTo = string
|
|
1418
|
+
```
|
|
1419
|
+
|
|
1420
|
+
### `WorkflowsQueryOptions.GroupTimeBy`
|
|
1421
|
+
|
|
1422
|
+
If chosen a time series, this parameter sets by which time the data is grouped, e.g. quarterly, monthly or weekly. Available values: "D","W","M","Q","Y"
|
|
1423
|
+
|
|
1424
|
+
```ts
|
|
1425
|
+
type WorkflowsQueryOptions.GroupTimeBy = string
|
|
1426
|
+
```
|
|
1427
|
+
|
|
1428
|
+
### `WorkflowsQueryOptions.WorkflowStates`
|
|
1429
|
+
|
|
1430
|
+
Filter by the states of the workflow executions.
|
|
1431
|
+
|
|
1432
|
+
```ts
|
|
1433
|
+
type WorkflowsQueryOptions.WorkflowStates = string[]
|
|
1434
|
+
```
|
|
1435
|
+
|
|
1436
|
+
### `DatasetName`
|
|
1437
|
+
|
|
1438
|
+
```ts
|
|
1439
|
+
type DatasetName = string
|
|
1440
|
+
```
|
|
1441
|
+
|
|
1442
|
+
### `EntityDataset`
|
|
1443
|
+
|
|
1444
|
+
```ts
|
|
1445
|
+
type EntityDataset = "entity_operations" | "entities_timemachine" | "datalake_raw_sql"
|
|
1446
|
+
```
|
|
1447
|
+
|
|
1448
|
+
### `AutomationExecutionDataset`
|
|
1449
|
+
|
|
1450
|
+
```ts
|
|
1451
|
+
type AutomationExecutionDataset = "automation_executions_overview" | "list_automation_definitions"
|
|
1452
|
+
```
|
|
1453
|
+
|
|
1454
|
+
### `WorkflowDataset`
|
|
1455
|
+
|
|
1456
|
+
```ts
|
|
1457
|
+
type WorkflowDataset = "total_count_of_workflow_executions" | "workflow_execution_time_series" | "cumulative_sum_of_workflows" | "cancellation_reasons" | "phases_count" | "phases_duration" | "tasks_duration" | "task_duration" | "workflow_tasks_overview"
|
|
1458
|
+
```
|
|
1459
|
+
|
|
1460
|
+
### `WorkflowStates`
|
|
1461
|
+
|
|
1462
|
+
```ts
|
|
1463
|
+
type WorkflowStates = "STARTED" | "CLOSED" | "DONE"
|
|
1464
|
+
```
|
|
1465
|
+
|
|
1466
|
+
### `PhaseStates`
|
|
1467
|
+
|
|
1468
|
+
```ts
|
|
1469
|
+
type PhaseStates = "OPEN" | "COMPLETED" | "IN_PROGRESS"
|
|
1470
|
+
```
|
|
1471
|
+
|
|
1472
|
+
### `TaskStates`
|
|
1473
|
+
|
|
1474
|
+
```ts
|
|
1475
|
+
type TaskStates = "OPEN" | "COMPLETED" | "IN_PROGRESS"
|
|
1476
|
+
```
|
|
1477
|
+
|
|
1478
|
+
### `SortBy`
|
|
1479
|
+
|
|
1480
|
+
```ts
|
|
1481
|
+
type SortBy = "due_date_ascending" | "due_date_descending" | "creation_date_ascending" | "creation_date_descending"
|
|
1482
|
+
```
|
|
1483
|
+
|
|
1484
|
+
### `TimeGroups`
|
|
1485
|
+
|
|
1486
|
+
```ts
|
|
1487
|
+
type TimeGroups = "Y" | "Q" | "M" | "W" | "D"
|
|
1488
|
+
```
|
|
1489
|
+
|
|
1490
|
+
### `RelativeTimeRange`
|
|
1491
|
+
|
|
1492
|
+
```ts
|
|
1493
|
+
type RelativeTimeRange = "all_time" | "this_week" | "last_week" | "last_7_days" | "this_month" | "last_month" | "last_30_days" | "last_3_months" | "last_6_months" | "this_year" | "last_year"
|
|
1494
|
+
```
|
|
1495
|
+
|
|
1496
|
+
### `WorkflowsQueryResult`
|
|
1497
|
+
|
|
1498
|
+
```ts
|
|
1499
|
+
type WorkflowsQueryResult = {
|
|
1500
|
+
data?: string | number | Record<string, unknown> | Record<string, unknown>[][] | Record<string, unknown> | string | number
|
|
1501
|
+
labels?: string[]
|
|
1502
|
+
timestamp?: string
|
|
1503
|
+
}
|
|
1504
|
+
```
|
|
1505
|
+
|
|
1506
|
+
### `AutomationExecutionResponse`
|
|
1507
|
+
|
|
1508
|
+
```ts
|
|
1509
|
+
type AutomationExecutionResponse = {
|
|
1510
|
+
hits?: number
|
|
1511
|
+
results?: Array<{
|
|
1512
|
+
flow_id: string
|
|
1513
|
+
flow_name?: string
|
|
1514
|
+
execution_id: string
|
|
1515
|
+
execution_status: string
|
|
1516
|
+
entity_schema?: string
|
|
1517
|
+
entity_id?: string
|
|
1518
|
+
created_at: string
|
|
1519
|
+
updated_at?: string
|
|
1520
|
+
error?: {
|
|
1521
|
+
message?: { ... }
|
|
1522
|
+
error_code?: { ... }
|
|
1523
|
+
}
|
|
1524
|
+
trigger_event?: {
|
|
1525
|
+
type?: { ... }
|
|
1526
|
+
trigger_type?: { ... }
|
|
1527
|
+
}
|
|
1528
|
+
}>
|
|
1529
|
+
}
|
|
1530
|
+
```
|
|
1531
|
+
|
|
1532
|
+
### `ListAutomationDefinitionsResponse`
|
|
1533
|
+
|
|
1534
|
+
```ts
|
|
1535
|
+
type ListAutomationDefinitionsResponse = {
|
|
1536
|
+
hits?: number
|
|
1537
|
+
results?: Array<{
|
|
1538
|
+
flow_id: string
|
|
1539
|
+
flow_name: string
|
|
1540
|
+
entity_schema?: string
|
|
1541
|
+
}>
|
|
1542
|
+
}
|
|
1543
|
+
```
|
|
1544
|
+
|
|
1545
|
+
### `SemanticModel`
|
|
1546
|
+
|
|
1547
|
+
The semantic model exposing entities, relationships, and query capabilities
|
|
1548
|
+
|
|
1549
|
+
```ts
|
|
1550
|
+
type SemanticModel = {
|
|
1551
|
+
entities?: Array<{
|
|
1552
|
+
name?: string
|
|
1553
|
+
displayName?: string
|
|
1554
|
+
schema?: string
|
|
1555
|
+
}>
|
|
1556
|
+
relationships?: Array<{
|
|
1557
|
+
from?: string
|
|
1558
|
+
to?: string
|
|
1559
|
+
relationship?: "hasMany" | "belongsTo" | "hasOne"
|
|
1560
|
+
displayName?: string
|
|
1561
|
+
}>
|
|
1562
|
+
capabilities?: {
|
|
1563
|
+
aggregations?: string[]
|
|
1564
|
+
calculationTypes?: Array<{
|
|
1565
|
+
type?: { ... }
|
|
1566
|
+
description?: { ... }
|
|
1567
|
+
parameters?: { ... }
|
|
1568
|
+
}>
|
|
1569
|
+
granularities?: string[]
|
|
1570
|
+
filterOperators?: Array<{
|
|
1571
|
+
operator?: { ... }
|
|
1572
|
+
description?: { ... }
|
|
1573
|
+
}>
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
```
|
|
1577
|
+
|
|
1578
|
+
### `QueryResults`
|
|
1579
|
+
|
|
1580
|
+
```ts
|
|
1581
|
+
type QueryResults = {
|
|
1582
|
+
status?: string
|
|
1583
|
+
timestamp?: string
|
|
1584
|
+
results?: Record<string, unknown>[]
|
|
1585
|
+
}
|
|
1586
|
+
```
|
|
1587
|
+
|
|
1588
|
+
### `TimeSeriesSettings`
|
|
1589
|
+
|
|
1590
|
+
```ts
|
|
1591
|
+
type TimeSeriesSettings = {
|
|
1592
|
+
dataset?: "time_series"
|
|
1593
|
+
from?: string // date-time
|
|
1594
|
+
to?: string // date-time
|
|
1595
|
+
time_grouper?: string
|
|
1596
|
+
workflow_names?: string[]
|
|
1597
|
+
}
|
|
1598
|
+
```
|
|
1599
|
+
|
|
1600
|
+
### `NameDurationSettings`
|
|
1601
|
+
|
|
1602
|
+
```ts
|
|
1603
|
+
type NameDurationSettings = {
|
|
1604
|
+
dataset?: "name_duration"
|
|
1605
|
+
from?: string // date-time
|
|
1606
|
+
to?: string // date-time
|
|
1607
|
+
workflow_name?: string
|
|
1608
|
+
}
|
|
1609
|
+
```
|