@refoldai/refold-js 10.0.0
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/.claude/skills/method/SKILL.md +282 -0
- package/.claude/skills/review-pr/SKILL.md +80 -0
- package/.claude/skills/style/SKILL.md +67 -0
- package/.claude/skills/verify/SKILL.md +85 -0
- package/.github/pull_request_template.md +48 -0
- package/.github/workflows/npm-publish.yml +35 -0
- package/.github/workflows/pr-validation.yml +224 -0
- package/CLAUDE.md +127 -0
- package/LICENSE +21 -0
- package/README.md +63 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/highlight.css +113 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1633 -0
- package/docs/classes/Refold.html +123 -0
- package/docs/enums/AuthStatus.html +3 -0
- package/docs/enums/AuthType.html +4 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +36 -0
- package/docs/interfaces/Application.html +37 -0
- package/docs/interfaces/Config.html +6 -0
- package/docs/interfaces/ConfigField.html +17 -0
- package/docs/interfaces/ConfigPayload.html +8 -0
- package/docs/interfaces/ConfigWorkflow.html +6 -0
- package/docs/interfaces/ExecuteWorkflowPayload.html +9 -0
- package/docs/interfaces/Execution.html +19 -0
- package/docs/interfaces/ExecutionFilters.html +16 -0
- package/docs/interfaces/GetExecutionsParams.html +19 -0
- package/docs/interfaces/InputField.html +18 -0
- package/docs/interfaces/Label.html +6 -0
- package/docs/interfaces/PublicWorkflow.html +16 -0
- package/docs/interfaces/PublicWorkflowPayload.html +8 -0
- package/docs/interfaces/PublicWorkflowsPayload.html +15 -0
- package/docs/interfaces/RefoldOptions.html +5 -0
- package/docs/interfaces/RuleOptions.html +4 -0
- package/docs/interfaces/UpdateConfigPayload.html +10 -0
- package/docs/interfaces/WorkflowPayload.html +8 -0
- package/docs/interfaces/WorkflowPayloadResponse.html +4 -0
- package/docs/llms.txt +986 -0
- package/docs/modules.html +1 -0
- package/docs/types/ExecutionSource.html +2 -0
- package/docs/types/ExecutionStatus.html +2 -0
- package/docs/types/ExecutionType.html +2 -0
- package/package.json +38 -0
- package/refold.d.ts +556 -0
- package/refold.js +667 -0
- package/refold.ts +1044 -0
- package/tsconfig.json +12 -0
package/docs/llms.txt
ADDED
|
@@ -0,0 +1,986 @@
|
|
|
1
|
+
**@refoldai/refold-js**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Refold Javascript SDK
|
|
6
|
+
Refold frontend SDK.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
#### npm
|
|
11
|
+
```bash
|
|
12
|
+
npm install @refoldai/refold-js
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
#### yarn
|
|
16
|
+
```bash
|
|
17
|
+
yarn add @refoldai/refold-js
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
### Include
|
|
23
|
+
|
|
24
|
+
#### Browser
|
|
25
|
+
```html
|
|
26
|
+
<!-- use this if you get an error saying `exports` is not defined. -->
|
|
27
|
+
<script>var exports = {};</script>
|
|
28
|
+
<!-- use a specific version -->
|
|
29
|
+
<script src="https://cdn.jsdelivr.net/npm/@refoldai/refold-js@10.0.0"></script>
|
|
30
|
+
<!-- use a version range instead of a specific version -->
|
|
31
|
+
<script src="https://cdn.jsdelivr.net/npm/@refoldai/refold-js@10"></script>
|
|
32
|
+
<script src="https://cdn.jsdelivr.net/npm/@refoldai/refold-js@10.0"></script>
|
|
33
|
+
<!-- omit the version completely to use the latest one -->
|
|
34
|
+
<!-- you should NOT use this in production -->
|
|
35
|
+
<script src="https://cdn.jsdelivr.net/npm/@refoldai/refold-js"></script>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### Node
|
|
39
|
+
```js
|
|
40
|
+
import { Refold } from "@refoldai/refold-js";
|
|
41
|
+
// or, if you're using CommonJS
|
|
42
|
+
const { Refold } = require("@refoldai/refold-js");
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Initialize
|
|
46
|
+
```js
|
|
47
|
+
// initialize with token
|
|
48
|
+
const refold = new Refold({
|
|
49
|
+
// the token you generate for linked accounts using the Refold backend SDK
|
|
50
|
+
token: "REFOLD_SESSION_TOKEN",
|
|
51
|
+
// OPTIONAL: set custom base url for all API requests. only useful if you are hosting Refold on premise.
|
|
52
|
+
baseUrl: "https://refold.example.com/backend",
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// Or, initialize without token
|
|
56
|
+
const refold = new Refold();
|
|
57
|
+
// and you can set the token later.
|
|
58
|
+
refold.token = "REFOLD_SESSION_TOKEN";
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
# Documentation
|
|
62
|
+
|
|
63
|
+
- You can read the [SDK documentation here](https://gocobalt.github.io/refold-js).
|
|
64
|
+
|
|
65
|
+
- [`llms.txt`](https://gocobalt.github.io/refold-js/llms.txt)
|
|
66
|
+
|
|
67
|
+
This documentation is also available in [llms.txt](https://llmstxt.org) format, which is a simple markdown standard that LLMs can consume easily.
|
|
68
|
+
|
|
69
|
+
## Enumerations
|
|
70
|
+
|
|
71
|
+
### AuthStatus
|
|
72
|
+
|
|
73
|
+
Defined in: [refold.ts:10](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L10)
|
|
74
|
+
|
|
75
|
+
#### Enumeration Members
|
|
76
|
+
|
|
77
|
+
| Enumeration Member | Value | Defined in |
|
|
78
|
+
| ------ | ------ | ------ |
|
|
79
|
+
| <a id="enumeration-member-active"></a> `Active` | `"active"` | [refold.ts:11](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L11) |
|
|
80
|
+
| <a id="enumeration-member-expired"></a> `Expired` | `"expired"` | [refold.ts:12](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L12) |
|
|
81
|
+
|
|
82
|
+
***
|
|
83
|
+
|
|
84
|
+
### AuthType
|
|
85
|
+
|
|
86
|
+
Defined in: [refold.ts:5](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L5)
|
|
87
|
+
|
|
88
|
+
Refold Frontend SDK
|
|
89
|
+
|
|
90
|
+
#### Enumeration Members
|
|
91
|
+
|
|
92
|
+
| Enumeration Member | Value | Defined in |
|
|
93
|
+
| ------ | ------ | ------ |
|
|
94
|
+
| <a id="enumeration-member-keybased"></a> `KeyBased` | `"keybased"` | [refold.ts:7](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L7) |
|
|
95
|
+
| <a id="enumeration-member-oauth2"></a> `OAuth2` | `"oauth2"` | [refold.ts:6](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L6) |
|
|
96
|
+
|
|
97
|
+
## Classes
|
|
98
|
+
|
|
99
|
+
### Refold
|
|
100
|
+
|
|
101
|
+
Defined in: [refold.ts:364](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L364)
|
|
102
|
+
|
|
103
|
+
#### Constructors
|
|
104
|
+
|
|
105
|
+
##### Constructor
|
|
106
|
+
|
|
107
|
+
> **new Refold**(`options?`): [`Refold`](#refold)
|
|
108
|
+
|
|
109
|
+
Defined in: [refold.ts:374](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L374)
|
|
110
|
+
|
|
111
|
+
Refold Frontend SDK
|
|
112
|
+
|
|
113
|
+
###### Parameters
|
|
114
|
+
|
|
115
|
+
| Parameter | Type | Description |
|
|
116
|
+
| ------ | ------ | ------ |
|
|
117
|
+
| `options` | [`RefoldOptions`](#refoldoptions) | The options to configure the Refold SDK. |
|
|
118
|
+
|
|
119
|
+
###### Returns
|
|
120
|
+
|
|
121
|
+
[`Refold`](#refold)
|
|
122
|
+
|
|
123
|
+
#### Properties
|
|
124
|
+
|
|
125
|
+
| Property | Modifier | Type | Defined in |
|
|
126
|
+
| ------ | ------ | ------ | ------ |
|
|
127
|
+
| <a id="token"></a> `token` | `public` | `string` | [refold.ts:366](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L366) |
|
|
128
|
+
|
|
129
|
+
#### Methods
|
|
130
|
+
|
|
131
|
+
##### config()
|
|
132
|
+
|
|
133
|
+
> **config**(`payload`): `Promise`\<[`Config`](#config-1)\>
|
|
134
|
+
|
|
135
|
+
Defined in: [refold.ts:638](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L638)
|
|
136
|
+
|
|
137
|
+
Returns the specified config, or creates one if it doesn't exist.
|
|
138
|
+
|
|
139
|
+
###### Parameters
|
|
140
|
+
|
|
141
|
+
| Parameter | Type | Description |
|
|
142
|
+
| ------ | ------ | ------ |
|
|
143
|
+
| `payload` | [`ConfigPayload`](#configpayload) | The payload object for config. |
|
|
144
|
+
|
|
145
|
+
###### Returns
|
|
146
|
+
|
|
147
|
+
`Promise`\<[`Config`](#config-1)\>
|
|
148
|
+
|
|
149
|
+
The specified config.
|
|
150
|
+
|
|
151
|
+
##### connect()
|
|
152
|
+
|
|
153
|
+
> **connect**(`params`): `Promise`\<`boolean`\>
|
|
154
|
+
|
|
155
|
+
Defined in: [refold.ts:591](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L591)
|
|
156
|
+
|
|
157
|
+
Connects the specified application using the provided authentication type and optional auth data.
|
|
158
|
+
|
|
159
|
+
###### Parameters
|
|
160
|
+
|
|
161
|
+
| Parameter | Type | Description |
|
|
162
|
+
| ------ | ------ | ------ |
|
|
163
|
+
| `params` | \{ `payload?`: `Record`\<`string`, `string`\>; `slug`: `string`; `type?`: [`AuthType`](#authtype); \} | The parameters for connecting the application. |
|
|
164
|
+
| `params.payload?` | `Record`\<`string`, `string`\> | key-value pairs of authentication data required for the specified auth type. |
|
|
165
|
+
| `params.slug` | `string` | The application slug. |
|
|
166
|
+
| `params.type?` | [`AuthType`](#authtype) | The authentication type to use. If not provided, it defaults to `keybased` if payload is provided, otherwise `oauth2`. |
|
|
167
|
+
|
|
168
|
+
###### Returns
|
|
169
|
+
|
|
170
|
+
`Promise`\<`boolean`\>
|
|
171
|
+
|
|
172
|
+
A promise that resolves to true if the connection was successful, otherwise false.
|
|
173
|
+
|
|
174
|
+
###### Throws
|
|
175
|
+
|
|
176
|
+
Throws an error if the authentication type is invalid or the connection fails.
|
|
177
|
+
|
|
178
|
+
##### createWorkflow()
|
|
179
|
+
|
|
180
|
+
> **createWorkflow**(`params`): `Promise`\<[`PublicWorkflow`](#publicworkflow)\>
|
|
181
|
+
|
|
182
|
+
Defined in: [refold.ts:896](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L896)
|
|
183
|
+
|
|
184
|
+
Create a public workflow for the linked account.
|
|
185
|
+
|
|
186
|
+
###### Parameters
|
|
187
|
+
|
|
188
|
+
| Parameter | Type | Description |
|
|
189
|
+
| ------ | ------ | ------ |
|
|
190
|
+
| `params` | [`PublicWorkflowPayload`](#publicworkflowpayload) | - |
|
|
191
|
+
|
|
192
|
+
###### Returns
|
|
193
|
+
|
|
194
|
+
`Promise`\<[`PublicWorkflow`](#publicworkflow)\>
|
|
195
|
+
|
|
196
|
+
The created public workflow.
|
|
197
|
+
|
|
198
|
+
##### deleteConfig()
|
|
199
|
+
|
|
200
|
+
> **deleteConfig**(`slug`, `configId?`): `Promise`\<`unknown`\>
|
|
201
|
+
|
|
202
|
+
Defined in: [refold.ts:731](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L731)
|
|
203
|
+
|
|
204
|
+
Delete the specified config.
|
|
205
|
+
|
|
206
|
+
###### Parameters
|
|
207
|
+
|
|
208
|
+
| Parameter | Type | Description |
|
|
209
|
+
| ------ | ------ | ------ |
|
|
210
|
+
| `slug` | `string` | The application slug. |
|
|
211
|
+
| `configId?` | `string` | The unique ID of the config. |
|
|
212
|
+
|
|
213
|
+
###### Returns
|
|
214
|
+
|
|
215
|
+
`Promise`\<`unknown`\>
|
|
216
|
+
|
|
217
|
+
##### deleteConfigField()
|
|
218
|
+
|
|
219
|
+
> **deleteConfigField**(`slug`, `fieldId`, `workflowId?`): `Promise`\<`unknown`\>
|
|
220
|
+
|
|
221
|
+
Defined in: [refold.ts:808](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L808)
|
|
222
|
+
|
|
223
|
+
Delete the specified config field value.
|
|
224
|
+
|
|
225
|
+
###### Parameters
|
|
226
|
+
|
|
227
|
+
| Parameter | Type | Description |
|
|
228
|
+
| ------ | ------ | ------ |
|
|
229
|
+
| `slug` | `string` | The application slug. |
|
|
230
|
+
| `fieldId` | `string` | The unique ID of the field. |
|
|
231
|
+
| `workflowId?` | `string` | The unique ID of the workflow. |
|
|
232
|
+
|
|
233
|
+
###### Returns
|
|
234
|
+
|
|
235
|
+
`Promise`\<`unknown`\>
|
|
236
|
+
|
|
237
|
+
##### deleteWorkflow()
|
|
238
|
+
|
|
239
|
+
> **deleteWorkflow**(`workflowId`): `Promise`\<`unknown`\>
|
|
240
|
+
|
|
241
|
+
Defined in: [refold.ts:924](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L924)
|
|
242
|
+
|
|
243
|
+
Delete the specified public workflow.
|
|
244
|
+
|
|
245
|
+
###### Parameters
|
|
246
|
+
|
|
247
|
+
| Parameter | Type | Description |
|
|
248
|
+
| ------ | ------ | ------ |
|
|
249
|
+
| `workflowId` | `string` | The workflow ID. |
|
|
250
|
+
|
|
251
|
+
###### Returns
|
|
252
|
+
|
|
253
|
+
`Promise`\<`unknown`\>
|
|
254
|
+
|
|
255
|
+
##### disconnect()
|
|
256
|
+
|
|
257
|
+
> **disconnect**(`slug`, `type?`): `Promise`\<`unknown`\>
|
|
258
|
+
|
|
259
|
+
Defined in: [refold.ts:617](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L617)
|
|
260
|
+
|
|
261
|
+
Disconnect the specified application and remove any associated data from Refold.
|
|
262
|
+
|
|
263
|
+
###### Parameters
|
|
264
|
+
|
|
265
|
+
| Parameter | Type | Description |
|
|
266
|
+
| ------ | ------ | ------ |
|
|
267
|
+
| `slug` | `string` | The application slug. |
|
|
268
|
+
| `type?` | [`AuthType`](#authtype) | The authentication type to use. If not provided, it'll remove all the connected accounts. |
|
|
269
|
+
|
|
270
|
+
###### Returns
|
|
271
|
+
|
|
272
|
+
`Promise`\<`unknown`\>
|
|
273
|
+
|
|
274
|
+
##### executeWorkflow()
|
|
275
|
+
|
|
276
|
+
> **executeWorkflow**(`options`): `Promise`\<`unknown`\>
|
|
277
|
+
|
|
278
|
+
Defined in: [refold.ts:968](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L968)
|
|
279
|
+
|
|
280
|
+
Execute the specified public workflow.
|
|
281
|
+
|
|
282
|
+
###### Parameters
|
|
283
|
+
|
|
284
|
+
| Parameter | Type | Description |
|
|
285
|
+
| ------ | ------ | ------ |
|
|
286
|
+
| `options` | [`ExecuteWorkflowPayload`](#executeworkflowpayload) | The execution payload. |
|
|
287
|
+
|
|
288
|
+
###### Returns
|
|
289
|
+
|
|
290
|
+
`Promise`\<`unknown`\>
|
|
291
|
+
|
|
292
|
+
##### getApp()
|
|
293
|
+
|
|
294
|
+
Returns the application details for the specified application, provided
|
|
295
|
+
the application is enabled in Refold. If no application is specified,
|
|
296
|
+
it returns all the enabled applications.
|
|
297
|
+
|
|
298
|
+
###### Param
|
|
299
|
+
|
|
300
|
+
The application slug.
|
|
301
|
+
|
|
302
|
+
###### Call Signature
|
|
303
|
+
|
|
304
|
+
> **getApp**(): `Promise`\<[`Application`](#application)[]\>
|
|
305
|
+
|
|
306
|
+
Defined in: [refold.ts:434](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L434)
|
|
307
|
+
|
|
308
|
+
Returns the list of enabled applications and their details.
|
|
309
|
+
|
|
310
|
+
###### Returns
|
|
311
|
+
|
|
312
|
+
`Promise`\<[`Application`](#application)[]\>
|
|
313
|
+
|
|
314
|
+
The list of applications.
|
|
315
|
+
|
|
316
|
+
###### Call Signature
|
|
317
|
+
|
|
318
|
+
> **getApp**(`slug`): `Promise`\<[`Application`](#application)\>
|
|
319
|
+
|
|
320
|
+
Defined in: [refold.ts:441](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L441)
|
|
321
|
+
|
|
322
|
+
Returns the application details for the specified application, provided
|
|
323
|
+
the application is enabled in Refold.
|
|
324
|
+
|
|
325
|
+
###### Parameters
|
|
326
|
+
|
|
327
|
+
| Parameter | Type | Description |
|
|
328
|
+
| ------ | ------ | ------ |
|
|
329
|
+
| `slug` | `string` | The application slug. |
|
|
330
|
+
|
|
331
|
+
###### Returns
|
|
332
|
+
|
|
333
|
+
`Promise`\<[`Application`](#application)\>
|
|
334
|
+
|
|
335
|
+
The application details.
|
|
336
|
+
|
|
337
|
+
##### getApps()
|
|
338
|
+
|
|
339
|
+
> **getApps**(): `Promise`\<[`Application`](#application)[]\>
|
|
340
|
+
|
|
341
|
+
Defined in: [refold.ts:469](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L469)
|
|
342
|
+
|
|
343
|
+
Returns all the enabled apps.
|
|
344
|
+
|
|
345
|
+
###### Returns
|
|
346
|
+
|
|
347
|
+
`Promise`\<[`Application`](#application)[]\>
|
|
348
|
+
|
|
349
|
+
The list of applications.
|
|
350
|
+
|
|
351
|
+
##### getConfig()
|
|
352
|
+
|
|
353
|
+
> **getConfig**(`slug`, `configId?`, `excludeOptions?`): `Promise`\<[`Config`](#config-1)\>
|
|
354
|
+
|
|
355
|
+
Defined in: [refold.ts:686](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L686)
|
|
356
|
+
|
|
357
|
+
Returns the specified config.
|
|
358
|
+
|
|
359
|
+
###### Parameters
|
|
360
|
+
|
|
361
|
+
| Parameter | Type | Description |
|
|
362
|
+
| ------ | ------ | ------ |
|
|
363
|
+
| `slug` | `string` | The application slug. |
|
|
364
|
+
| `configId?` | `string` | The unique ID of the config. |
|
|
365
|
+
| `excludeOptions?` | `boolean` | Whether to exclude the options from the fields in the response. |
|
|
366
|
+
|
|
367
|
+
###### Returns
|
|
368
|
+
|
|
369
|
+
`Promise`\<[`Config`](#config-1)\>
|
|
370
|
+
|
|
371
|
+
The specified config.
|
|
372
|
+
|
|
373
|
+
##### getConfigField()
|
|
374
|
+
|
|
375
|
+
> **getConfigField**(`slug`, `fieldId`, `workflowId?`, `payload?`): `Promise`\<[`Config`](#config-1)\>
|
|
376
|
+
|
|
377
|
+
Defined in: [refold.ts:755](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L755)
|
|
378
|
+
|
|
379
|
+
Returns the specified field of the config.
|
|
380
|
+
|
|
381
|
+
###### Parameters
|
|
382
|
+
|
|
383
|
+
| Parameter | Type | Description |
|
|
384
|
+
| ------ | ------ | ------ |
|
|
385
|
+
| `slug` | `string` | The application slug. |
|
|
386
|
+
| `fieldId` | `string` | The unique ID of the field. |
|
|
387
|
+
| `workflowId?` | `string` | The unique ID of the workflow. |
|
|
388
|
+
| `payload?` | `Record`\<`string`, `unknown`\> | The payload to be sent in the request body. |
|
|
389
|
+
|
|
390
|
+
###### Returns
|
|
391
|
+
|
|
392
|
+
`Promise`\<[`Config`](#config-1)\>
|
|
393
|
+
|
|
394
|
+
The specified config field.
|
|
395
|
+
|
|
396
|
+
##### getConfigs()
|
|
397
|
+
|
|
398
|
+
> **getConfigs**(`slug`): `Promise`\<`object`[]\>
|
|
399
|
+
|
|
400
|
+
Defined in: [refold.ts:664](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L664)
|
|
401
|
+
|
|
402
|
+
Returns the configs created for the specified application.
|
|
403
|
+
|
|
404
|
+
###### Parameters
|
|
405
|
+
|
|
406
|
+
| Parameter | Type | Description |
|
|
407
|
+
| ------ | ------ | ------ |
|
|
408
|
+
| `slug` | `string` | The application slug. |
|
|
409
|
+
|
|
410
|
+
###### Returns
|
|
411
|
+
|
|
412
|
+
`Promise`\<`object`[]\>
|
|
413
|
+
|
|
414
|
+
The configs created for the specified application.
|
|
415
|
+
|
|
416
|
+
##### getExecution()
|
|
417
|
+
|
|
418
|
+
> **getExecution**(`executionId`): `Promise`\<[`Execution`](#execution)\>
|
|
419
|
+
|
|
420
|
+
Defined in: [refold.ts:1028](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L1028)
|
|
421
|
+
|
|
422
|
+
Returns the specified workflow execution log.
|
|
423
|
+
|
|
424
|
+
###### Parameters
|
|
425
|
+
|
|
426
|
+
| Parameter | Type | Description |
|
|
427
|
+
| ------ | ------ | ------ |
|
|
428
|
+
| `executionId` | `string` | The execution ID. |
|
|
429
|
+
|
|
430
|
+
###### Returns
|
|
431
|
+
|
|
432
|
+
`Promise`\<[`Execution`](#execution)\>
|
|
433
|
+
|
|
434
|
+
The specified execution log.
|
|
435
|
+
|
|
436
|
+
##### getExecutions()
|
|
437
|
+
|
|
438
|
+
> **getExecutions**(`params?`): `Promise`\<`PaginatedResponse`\<[`Execution`](#execution)\>\>
|
|
439
|
+
|
|
440
|
+
Defined in: [refold.ts:1002](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L1002)
|
|
441
|
+
|
|
442
|
+
Returns the workflow execution logs for the linked account.
|
|
443
|
+
|
|
444
|
+
###### Parameters
|
|
445
|
+
|
|
446
|
+
| Parameter | Type | Description |
|
|
447
|
+
| ------ | ------ | ------ |
|
|
448
|
+
| `params?` | [`GetExecutionsParams`](#getexecutionsparams) | - |
|
|
449
|
+
|
|
450
|
+
###### Returns
|
|
451
|
+
|
|
452
|
+
`Promise`\<`PaginatedResponse`\<[`Execution`](#execution)\>\>
|
|
453
|
+
|
|
454
|
+
The paginated workflow execution logs.
|
|
455
|
+
|
|
456
|
+
##### getFieldOptions()
|
|
457
|
+
|
|
458
|
+
> **getFieldOptions**(`lhs`, `slug`, `fieldId`, `workflowId?`): `Promise`\<[`RuleOptions`](#ruleoptions)\>
|
|
459
|
+
|
|
460
|
+
Defined in: [refold.ts:833](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L833)
|
|
461
|
+
|
|
462
|
+
Returns the options for the specified field.
|
|
463
|
+
|
|
464
|
+
###### Parameters
|
|
465
|
+
|
|
466
|
+
| Parameter | Type | Description |
|
|
467
|
+
| ------ | ------ | ------ |
|
|
468
|
+
| `lhs` | `string` | The selected value of the lhs field. |
|
|
469
|
+
| `slug` | `string` | The application slug. |
|
|
470
|
+
| `fieldId` | `string` | The unique ID of the field. |
|
|
471
|
+
| `workflowId?` | `string` | The unique ID of the workflow, if this is a workflow field. |
|
|
472
|
+
|
|
473
|
+
###### Returns
|
|
474
|
+
|
|
475
|
+
`Promise`\<[`RuleOptions`](#ruleoptions)\>
|
|
476
|
+
|
|
477
|
+
The specified rule field's options.
|
|
478
|
+
|
|
479
|
+
##### getWorkflowPayload()
|
|
480
|
+
|
|
481
|
+
> **getWorkflowPayload**(`workflowId`): `Promise`\<[`WorkflowPayloadResponse`](#workflowpayloadresponse)\>
|
|
482
|
+
|
|
483
|
+
Defined in: [refold.ts:945](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L945)
|
|
484
|
+
|
|
485
|
+
Returns the execution payload for the specified public workflow.
|
|
486
|
+
|
|
487
|
+
###### Parameters
|
|
488
|
+
|
|
489
|
+
| Parameter | Type | Description |
|
|
490
|
+
| ------ | ------ | ------ |
|
|
491
|
+
| `workflowId` | `string` | The workflow ID. |
|
|
492
|
+
|
|
493
|
+
###### Returns
|
|
494
|
+
|
|
495
|
+
`Promise`\<[`WorkflowPayloadResponse`](#workflowpayloadresponse)\>
|
|
496
|
+
|
|
497
|
+
The workflow payload response.
|
|
498
|
+
|
|
499
|
+
##### getWorkflows()
|
|
500
|
+
|
|
501
|
+
> **getWorkflows**(`params?`): `Promise`\<`PaginatedResponse`\<[`PublicWorkflow`](#publicworkflow)\>\>
|
|
502
|
+
|
|
503
|
+
Defined in: [refold.ts:866](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L866)
|
|
504
|
+
|
|
505
|
+
Returns the private workflows for the specified application.
|
|
506
|
+
|
|
507
|
+
###### Parameters
|
|
508
|
+
|
|
509
|
+
| Parameter | Type | Description |
|
|
510
|
+
| ------ | ------ | ------ |
|
|
511
|
+
| `params` | [`PublicWorkflowsPayload`](#publicworkflowspayload) | - |
|
|
512
|
+
|
|
513
|
+
###### Returns
|
|
514
|
+
|
|
515
|
+
`Promise`\<`PaginatedResponse`\<[`PublicWorkflow`](#publicworkflow)\>\>
|
|
516
|
+
|
|
517
|
+
##### updateConfig()
|
|
518
|
+
|
|
519
|
+
> **updateConfig**(`payload`): `Promise`\<[`Config`](#config-1)\>
|
|
520
|
+
|
|
521
|
+
Defined in: [refold.ts:707](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L707)
|
|
522
|
+
|
|
523
|
+
Update the specified config.
|
|
524
|
+
|
|
525
|
+
###### Parameters
|
|
526
|
+
|
|
527
|
+
| Parameter | Type | Description |
|
|
528
|
+
| ------ | ------ | ------ |
|
|
529
|
+
| `payload` | [`UpdateConfigPayload`](#updateconfigpayload) | The update payload. |
|
|
530
|
+
|
|
531
|
+
###### Returns
|
|
532
|
+
|
|
533
|
+
`Promise`\<[`Config`](#config-1)\>
|
|
534
|
+
|
|
535
|
+
The specified config.
|
|
536
|
+
|
|
537
|
+
##### updateConfigField()
|
|
538
|
+
|
|
539
|
+
> **updateConfigField**(`slug`, `fieldId`, `value`, `workflowId?`): `Promise`\<[`Config`](#config-1)\>
|
|
540
|
+
|
|
541
|
+
Defined in: [refold.ts:782](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L782)
|
|
542
|
+
|
|
543
|
+
Update the specified config field value.
|
|
544
|
+
|
|
545
|
+
###### Parameters
|
|
546
|
+
|
|
547
|
+
| Parameter | Type | Description |
|
|
548
|
+
| ------ | ------ | ------ |
|
|
549
|
+
| `slug` | `string` | The application slug. |
|
|
550
|
+
| `fieldId` | `string` | The unique ID of the field. |
|
|
551
|
+
| `value` | `string` \| `number` \| `boolean` \| `null` | The new value for the field. |
|
|
552
|
+
| `workflowId?` | `string` | The unique ID of the workflow. |
|
|
553
|
+
|
|
554
|
+
###### Returns
|
|
555
|
+
|
|
556
|
+
`Promise`\<[`Config`](#config-1)\>
|
|
557
|
+
|
|
558
|
+
The updated config field.
|
|
559
|
+
|
|
560
|
+
## Interfaces
|
|
561
|
+
|
|
562
|
+
### Application
|
|
563
|
+
|
|
564
|
+
Defined in: [refold.ts:16](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L16)
|
|
565
|
+
|
|
566
|
+
An application in Refold.
|
|
567
|
+
|
|
568
|
+
#### Properties
|
|
569
|
+
|
|
570
|
+
| Property | Type | Description | Defined in |
|
|
571
|
+
| ------ | ------ | ------ | ------ |
|
|
572
|
+
| <a id="app_id"></a> `app_id` | `string` | Application ID | [refold.ts:18](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L18) |
|
|
573
|
+
| <a id="auth_input_map"></a> ~~`auth_input_map?`~~ | [`InputField`](#inputfield)[] | The fields required from the user to connect the application (for `keybased` auth type). **Deprecated** Check `auth_type_options` for multiple auth types support. | [refold.ts:69](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L69) |
|
|
574
|
+
| <a id="auth_type"></a> ~~`auth_type`~~ | `"oauth2"` \| `"keybased"` | The type of auth used by application. **Deprecated** Check `auth_type_options` and `connected_accounts` for multiple auth types support. | [refold.ts:54](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L54) |
|
|
575
|
+
| <a id="auth_type_options"></a> `auth_type_options?` | `object` | The supported auth types for the application, and the fields required from the user to connect the application. | [refold.ts:35](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L35) |
|
|
576
|
+
| `auth_type_options.keybased` | [`InputField`](#inputfield)[] | - | |
|
|
577
|
+
| `auth_type_options.oauth2` | [`InputField`](#inputfield)[] | - | |
|
|
578
|
+
| <a id="connected"></a> ~~`connected?`~~ | `boolean` | Whether the user has connected the application. **Deprecated** Check `connected_accounts` for multiple auth types support. | [refold.ts:59](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L59) |
|
|
579
|
+
| <a id="connected_accounts"></a> `connected_accounts?` | `object`[] | The list of connected accounts for this application | [refold.ts:40](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L40) |
|
|
580
|
+
| <a id="description"></a> `description` | `string` | The application description. | [refold.ts:22](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L22) |
|
|
581
|
+
| <a id="icon"></a> `icon` | `string` | The application icon. | [refold.ts:24](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L24) |
|
|
582
|
+
| <a id="name"></a> `name` | `string` | The application name. | [refold.ts:20](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L20) |
|
|
583
|
+
| <a id="reauth_required"></a> ~~`reauth_required?`~~ | `boolean` | Whether the connection has expired and re-auth is required. **Deprecated** Check `connected_accounts` for multiple auth types support. | [refold.ts:64](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L64) |
|
|
584
|
+
| <a id="slug"></a> `slug` | `string` | The application slug. | [refold.ts:31](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L31) |
|
|
585
|
+
| <a id="tags"></a> `tags?` | `string`[] | The categories/tags for the application. | [refold.ts:33](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L33) |
|
|
586
|
+
| <a id="type"></a> ~~`type`~~ | `string` | **Deprecated** Use `slug` instead. The application slug for native apps and `custom` for custom apps. | [refold.ts:29](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L29) |
|
|
587
|
+
|
|
588
|
+
***
|
|
589
|
+
|
|
590
|
+
### Config
|
|
591
|
+
|
|
592
|
+
Defined in: [refold.ts:250](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L250)
|
|
593
|
+
|
|
594
|
+
#### Properties
|
|
595
|
+
|
|
596
|
+
| Property | Type | Defined in |
|
|
597
|
+
| ------ | ------ | ------ |
|
|
598
|
+
| <a id="config_id"></a> `config_id?` | `string` | [refold.ts:252](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L252) |
|
|
599
|
+
| <a id="field_errors"></a> `field_errors?` | `object`[] | [refold.ts:255](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L255) |
|
|
600
|
+
| <a id="fields"></a> `fields?` | [`ConfigField`](#configfield)[] | [refold.ts:253](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L253) |
|
|
601
|
+
| <a id="slug-1"></a> `slug` | `string` | [refold.ts:251](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L251) |
|
|
602
|
+
| <a id="workflows"></a> `workflows?` | [`ConfigWorkflow`](#configworkflow)[] | [refold.ts:254](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L254) |
|
|
603
|
+
|
|
604
|
+
***
|
|
605
|
+
|
|
606
|
+
### ConfigField
|
|
607
|
+
|
|
608
|
+
Defined in: [refold.ts:265](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L265)
|
|
609
|
+
|
|
610
|
+
#### Properties
|
|
611
|
+
|
|
612
|
+
| Property | Type | Description | Defined in |
|
|
613
|
+
| ------ | ------ | ------ | ------ |
|
|
614
|
+
| <a id="associated_page"></a> `associated_page?` | `string` | The page this field is associated with. | [refold.ts:287](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L287) |
|
|
615
|
+
| <a id="field_type"></a> `field_type` | `string` | - | [refold.ts:268](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L268) |
|
|
616
|
+
| <a id="help_text"></a> `help_text?` | `string` | The help text for the field. | [refold.ts:285](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L285) |
|
|
617
|
+
| <a id="hidden"></a> `hidden?` | `boolean` | - | [refold.ts:280](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L280) |
|
|
618
|
+
| <a id="id"></a> `id` | `string` | - | [refold.ts:266](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L266) |
|
|
619
|
+
| <a id="labels"></a> `labels?` | `object`[] | - | [refold.ts:274](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L274) |
|
|
620
|
+
| <a id="multiple"></a> `multiple?` | `boolean` | - | [refold.ts:278](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L278) |
|
|
621
|
+
| <a id="name-1"></a> `name` | `string` | - | [refold.ts:267](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L267) |
|
|
622
|
+
| <a id="options"></a> `options?` | `object`[] | - | [refold.ts:269](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L269) |
|
|
623
|
+
| <a id="parent"></a> `parent?` | `string` | - | [refold.ts:273](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L273) |
|
|
624
|
+
| <a id="placeholder"></a> `placeholder?` | `string` | The placeholder for the field. | [refold.ts:283](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L283) |
|
|
625
|
+
| <a id="required"></a> `required?` | `boolean` | - | [refold.ts:279](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L279) |
|
|
626
|
+
| <a id="value"></a> `value?` | `any` | - | [refold.ts:281](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L281) |
|
|
627
|
+
|
|
628
|
+
***
|
|
629
|
+
|
|
630
|
+
### ConfigPayload
|
|
631
|
+
|
|
632
|
+
Defined in: [refold.ts:96](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L96)
|
|
633
|
+
|
|
634
|
+
The payload object for config.
|
|
635
|
+
|
|
636
|
+
#### Properties
|
|
637
|
+
|
|
638
|
+
| Property | Type | Description | Defined in |
|
|
639
|
+
| ------ | ------ | ------ | ------ |
|
|
640
|
+
| <a id="config_id-1"></a> `config_id?` | `string` | Unique ID for the config. | [refold.ts:100](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L100) |
|
|
641
|
+
| <a id="labels-1"></a> `labels?` | [`Label`](#label-1)[] | The dynamic label mappings. | [refold.ts:102](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L102) |
|
|
642
|
+
| <a id="slug-2"></a> `slug` | `string` | The application slug. | [refold.ts:98](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L98) |
|
|
643
|
+
|
|
644
|
+
***
|
|
645
|
+
|
|
646
|
+
### ConfigWorkflow
|
|
647
|
+
|
|
648
|
+
Defined in: [refold.ts:290](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L290)
|
|
649
|
+
|
|
650
|
+
#### Properties
|
|
651
|
+
|
|
652
|
+
| Property | Type | Defined in |
|
|
653
|
+
| ------ | ------ | ------ |
|
|
654
|
+
| <a id="description-1"></a> `description?` | `string` | [refold.ts:293](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L293) |
|
|
655
|
+
| <a id="enabled"></a> `enabled` | `boolean` | [refold.ts:294](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L294) |
|
|
656
|
+
| <a id="fields-1"></a> `fields?` | [`ConfigField`](#configfield)[] | [refold.ts:295](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L295) |
|
|
657
|
+
| <a id="id-1"></a> `id` | `string` | [refold.ts:291](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L291) |
|
|
658
|
+
| <a id="name-2"></a> `name` | `string` | [refold.ts:292](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L292) |
|
|
659
|
+
|
|
660
|
+
***
|
|
661
|
+
|
|
662
|
+
### ExecuteWorkflowPayload
|
|
663
|
+
|
|
664
|
+
Defined in: [refold.ts:304](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L304)
|
|
665
|
+
|
|
666
|
+
#### Properties
|
|
667
|
+
|
|
668
|
+
| Property | Type | Description | Defined in |
|
|
669
|
+
| ------ | ------ | ------ | ------ |
|
|
670
|
+
| <a id="payload"></a> `payload?` | `Record`\<`string`, `any`\> | The payload to execute the workflow. | [refold.ts:310](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L310) |
|
|
671
|
+
| <a id="slug-3"></a> `slug?` | `string` | The application's slug this workflow belongs to. | [refold.ts:308](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L308) |
|
|
672
|
+
| <a id="sync_execution"></a> `sync_execution?` | `boolean` | Whether to execute the workflow synchronously. | [refold.ts:312](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L312) |
|
|
673
|
+
| <a id="worklfow"></a> `worklfow` | `string` | The workflow id or alias. | [refold.ts:306](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L306) |
|
|
674
|
+
|
|
675
|
+
***
|
|
676
|
+
|
|
677
|
+
### Execution
|
|
678
|
+
|
|
679
|
+
Defined in: [refold.ts:315](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L315)
|
|
680
|
+
|
|
681
|
+
#### Properties
|
|
682
|
+
|
|
683
|
+
| Property | Type | Defined in |
|
|
684
|
+
| ------ | ------ | ------ |
|
|
685
|
+
| <a id="_id"></a> `_id` | `string` | [refold.ts:316](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L316) |
|
|
686
|
+
| <a id="associated_application"></a> `associated_application` | `object` | [refold.ts:320](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L320) |
|
|
687
|
+
| `associated_application._id` | `string` | [refold.ts:321](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L321) |
|
|
688
|
+
| `associated_application.icon?` | `string` | [refold.ts:323](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L323) |
|
|
689
|
+
| `associated_application.name` | `string` | [refold.ts:322](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L322) |
|
|
690
|
+
| <a id="associated_event_id"></a> `associated_event_id` | `string` | [refold.ts:344](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L344) |
|
|
691
|
+
| <a id="associated_trigger_application"></a> `associated_trigger_application` | `object` | [refold.ts:330](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L330) |
|
|
692
|
+
| `associated_trigger_application._id` | `string` | [refold.ts:331](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L331) |
|
|
693
|
+
| `associated_trigger_application.app_type?` | `string` | [refold.ts:334](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L334) |
|
|
694
|
+
| `associated_trigger_application.icon?` | `string` | [refold.ts:333](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L333) |
|
|
695
|
+
| `associated_trigger_application.name` | `string` | [refold.ts:332](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L332) |
|
|
696
|
+
| `associated_trigger_application.origin_trigger` | `object` | [refold.ts:335](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L335) |
|
|
697
|
+
| `associated_trigger_application.origin_trigger._id` | `string` | [refold.ts:336](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L336) |
|
|
698
|
+
| `associated_trigger_application.origin_trigger.name` | `string` | [refold.ts:337](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L337) |
|
|
699
|
+
| <a id="associated_workflow"></a> `associated_workflow` | `object` | [refold.ts:326](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L326) |
|
|
700
|
+
| `associated_workflow._id` | `string` | [refold.ts:327](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L327) |
|
|
701
|
+
| `associated_workflow.name` | `string` | [refold.ts:328](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L328) |
|
|
702
|
+
| <a id="completion_percentage"></a> `completion_percentage?` | `number` | [refold.ts:347](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L347) |
|
|
703
|
+
| <a id="config_id-2"></a> `config_id` | `string` | [refold.ts:343](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L343) |
|
|
704
|
+
| <a id="createdat"></a> `createdAt` | `string` | [refold.ts:359](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L359) |
|
|
705
|
+
| <a id="custom_application_id"></a> `custom_application_id?` | `string` | [refold.ts:346](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L346) |
|
|
706
|
+
| <a id="custom_trigger_id"></a> `custom_trigger_id?` | `string` | [refold.ts:345](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L345) |
|
|
707
|
+
| <a id="environment"></a> `environment` | `"test"` \| `"production"` | [refold.ts:342](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L342) |
|
|
708
|
+
| <a id="id-2"></a> `id?` | `string` | [refold.ts:317](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L317) |
|
|
709
|
+
| <a id="linked_account_id"></a> `linked_account_id` | `string` | [refold.ts:341](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L341) |
|
|
710
|
+
| <a id="name-3"></a> `name` | `string` | [refold.ts:318](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L318) |
|
|
711
|
+
| <a id="nodes"></a> `nodes?` | `object`[] | [refold.ts:348](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L348) |
|
|
712
|
+
| <a id="org_id"></a> `org_id` | `string` | [refold.ts:319](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L319) |
|
|
713
|
+
| <a id="status"></a> `status` | [`ExecutionStatus`](#executionstatus-1) | [refold.ts:325](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L325) |
|
|
714
|
+
| <a id="trigger_application_event"></a> `trigger_application_event?` | `string` | [refold.ts:340](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L340) |
|
|
715
|
+
|
|
716
|
+
***
|
|
717
|
+
|
|
718
|
+
### ExecutionFilters
|
|
719
|
+
|
|
720
|
+
Defined in: [refold.ts:219](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L219)
|
|
721
|
+
|
|
722
|
+
Filters for narrowing down the list of workflow executions.
|
|
723
|
+
|
|
724
|
+
#### Extended by
|
|
725
|
+
|
|
726
|
+
- [`GetExecutionsParams`](#getexecutionsparams)
|
|
727
|
+
|
|
728
|
+
#### Properties
|
|
729
|
+
|
|
730
|
+
| Property | Type | Description | Defined in |
|
|
731
|
+
| ------ | ------ | ------ | ------ |
|
|
732
|
+
| <a id="end_date"></a> `end_date?` | `string` | Filter executions that started on or before this ISO 8601 date string. | [refold.ts:229](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L229) |
|
|
733
|
+
| <a id="execution_source"></a> `execution_source?` | [`ExecutionSource`](#executionsource) | Filter by the trigger source that initiated the execution. | [refold.ts:233](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L233) |
|
|
734
|
+
| <a id="execution_type"></a> `execution_type?` | [`ExecutionType`](#executiontype) | Filter by how the execution was invoked — synchronously or asynchronously. | [refold.ts:231](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L231) |
|
|
735
|
+
| <a id="start_date"></a> `start_date?` | `string` | Filter executions that started on or after this ISO 8601 date string. | [refold.ts:227](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L227) |
|
|
736
|
+
| <a id="status-1"></a> `status?` | [`ExecutionStatus`](#executionstatus-1) | Filter executions by their current status. | [refold.ts:221](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L221) |
|
|
737
|
+
| <a id="workflow_id"></a> `workflow_id?` | `string` | Filter executions by workflow ID. | [refold.ts:225](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L225) |
|
|
738
|
+
| <a id="workflow_name"></a> `workflow_name?` | `string` | Filter executions by workflow name (partial match). | [refold.ts:223](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L223) |
|
|
739
|
+
|
|
740
|
+
***
|
|
741
|
+
|
|
742
|
+
### GetExecutionsParams
|
|
743
|
+
|
|
744
|
+
Defined in: [refold.ts:237](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L237)
|
|
745
|
+
|
|
746
|
+
Parameters for filtering and paginating the list of workflow executions.
|
|
747
|
+
|
|
748
|
+
#### Extends
|
|
749
|
+
|
|
750
|
+
- `PaginationProps`.[`ExecutionFilters`](#executionfilters)
|
|
751
|
+
|
|
752
|
+
#### Indexable
|
|
753
|
+
|
|
754
|
+
> \[`key`: `string`\]: `string` \| `number` \| `undefined`
|
|
755
|
+
|
|
756
|
+
Any additional filter keys supported by the API.
|
|
757
|
+
|
|
758
|
+
#### Properties
|
|
759
|
+
|
|
760
|
+
| Property | Type | Description | Inherited from | Defined in |
|
|
761
|
+
| ------ | ------ | ------ | ------ | ------ |
|
|
762
|
+
| <a id="end_date-1"></a> `end_date?` | `string` | Filter executions that started on or before this ISO 8601 date string. | [`ExecutionFilters`](#executionfilters).[`end_date`](#end_date) | [refold.ts:229](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L229) |
|
|
763
|
+
| <a id="execution_source-1"></a> `execution_source?` | [`ExecutionSource`](#executionsource) | Filter by the trigger source that initiated the execution. | [`ExecutionFilters`](#executionfilters).[`execution_source`](#execution_source) | [refold.ts:233](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L233) |
|
|
764
|
+
| <a id="execution_type-1"></a> `execution_type?` | [`ExecutionType`](#executiontype) | Filter by how the execution was invoked — synchronously or asynchronously. | [`ExecutionFilters`](#executionfilters).[`execution_type`](#execution_type) | [refold.ts:231](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L231) |
|
|
765
|
+
| <a id="limit"></a> `limit?` | `number` | - | `PaginationProps.limit` | [refold.ts:208](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L208) |
|
|
766
|
+
| <a id="page"></a> `page?` | `number` | - | `PaginationProps.page` | [refold.ts:207](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L207) |
|
|
767
|
+
| <a id="start_date-1"></a> `start_date?` | `string` | Filter executions that started on or after this ISO 8601 date string. | [`ExecutionFilters`](#executionfilters).[`start_date`](#start_date) | [refold.ts:227](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L227) |
|
|
768
|
+
| <a id="status-2"></a> `status?` | [`ExecutionStatus`](#executionstatus-1) | Filter executions by their current status. | [`ExecutionFilters`](#executionfilters).[`status`](#status-1) | [refold.ts:221](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L221) |
|
|
769
|
+
| <a id="workflow_id-1"></a> `workflow_id?` | `string` | Filter executions by workflow ID. | [`ExecutionFilters`](#executionfilters).[`workflow_id`](#workflow_id) | [refold.ts:225](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L225) |
|
|
770
|
+
| <a id="workflow_name-1"></a> `workflow_name?` | `string` | Filter executions by workflow name (partial match). | [`ExecutionFilters`](#executionfilters).[`workflow_name`](#workflow_name) | [refold.ts:223](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L223) |
|
|
771
|
+
|
|
772
|
+
***
|
|
773
|
+
|
|
774
|
+
### InputField
|
|
775
|
+
|
|
776
|
+
Defined in: [refold.ts:73](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L73)
|
|
777
|
+
|
|
778
|
+
An Input field to take input from the user.
|
|
779
|
+
|
|
780
|
+
#### Properties
|
|
781
|
+
|
|
782
|
+
| Property | Type | Description | Defined in |
|
|
783
|
+
| ------ | ------ | ------ | ------ |
|
|
784
|
+
| <a id="help_text-1"></a> `help_text?` | `string` | The help text for the field. | [refold.ts:87](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L87) |
|
|
785
|
+
| <a id="label"></a> `label` | `string` | The label of the field. | [refold.ts:85](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L85) |
|
|
786
|
+
| <a id="multiple-1"></a> `multiple?` | `boolean` | Whether the field accepts multiple values. | [refold.ts:81](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L81) |
|
|
787
|
+
| <a id="name-4"></a> `name` | `string` | Key name of the field. | [refold.ts:75](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L75) |
|
|
788
|
+
| <a id="options-1"></a> `options?` | `object`[] | The options for the field. | [refold.ts:89](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L89) |
|
|
789
|
+
| <a id="placeholder-1"></a> `placeholder` | `string` | The placeholder of the field. | [refold.ts:83](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L83) |
|
|
790
|
+
| <a id="required-1"></a> `required` | `boolean` | Whether the field is required. | [refold.ts:79](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L79) |
|
|
791
|
+
| <a id="type-1"></a> `type` | `string` | Input type of the field. | [refold.ts:77](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L77) |
|
|
792
|
+
|
|
793
|
+
***
|
|
794
|
+
|
|
795
|
+
### Label
|
|
796
|
+
|
|
797
|
+
Defined in: [refold.ts:106](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L106)
|
|
798
|
+
|
|
799
|
+
Label Mapping
|
|
800
|
+
|
|
801
|
+
#### Properties
|
|
802
|
+
|
|
803
|
+
| Property | Type | Description | Defined in |
|
|
804
|
+
| ------ | ------ | ------ | ------ |
|
|
805
|
+
| <a id="name-5"></a> `name` | `string` | The label name. | [refold.ts:108](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L108) |
|
|
806
|
+
| <a id="value-1"></a> `value` | `string` \| `number` \| `boolean` | The label value. | [refold.ts:110](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L110) |
|
|
807
|
+
|
|
808
|
+
***
|
|
809
|
+
|
|
810
|
+
### PublicWorkflow
|
|
811
|
+
|
|
812
|
+
Defined in: [refold.ts:163](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L163)
|
|
813
|
+
|
|
814
|
+
A public workflow in Refold.
|
|
815
|
+
|
|
816
|
+
#### Properties
|
|
817
|
+
|
|
818
|
+
| Property | Type | Description | Defined in |
|
|
819
|
+
| ------ | ------ | ------ | ------ |
|
|
820
|
+
| <a id="_id-1"></a> `_id` | `string` | The workflow ID. | [refold.ts:165](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L165) |
|
|
821
|
+
| <a id="createdat-1"></a> `createdAt` | `string` | The workflow created at. | [refold.ts:173](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L173) |
|
|
822
|
+
| <a id="description-2"></a> `description?` | `string` | The workflow description. | [refold.ts:169](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L169) |
|
|
823
|
+
| <a id="name-6"></a> `name` | `string` | The workflow name. | [refold.ts:167](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L167) |
|
|
824
|
+
| <a id="published"></a> `published` | `boolean` | Whether the workflow is published. | [refold.ts:177](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L177) |
|
|
825
|
+
| <a id="slug-4"></a> `slug?` | `string` | The application's slug in which this workflow exists. | [refold.ts:171](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L171) |
|
|
826
|
+
| <a id="updatedat"></a> `updatedAt` | `string` | The workflow updated at. | [refold.ts:175](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L175) |
|
|
827
|
+
|
|
828
|
+
***
|
|
829
|
+
|
|
830
|
+
### PublicWorkflowPayload
|
|
831
|
+
|
|
832
|
+
Defined in: [refold.ts:181](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L181)
|
|
833
|
+
|
|
834
|
+
The payload for creating a public workflow for the linked account.
|
|
835
|
+
|
|
836
|
+
#### Properties
|
|
837
|
+
|
|
838
|
+
| Property | Type | Description | Defined in |
|
|
839
|
+
| ------ | ------ | ------ | ------ |
|
|
840
|
+
| <a id="description-3"></a> `description?` | `string` | The workflow description. | [refold.ts:185](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L185) |
|
|
841
|
+
| <a id="name-7"></a> `name` | `string` | The workflow name. | [refold.ts:183](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L183) |
|
|
842
|
+
| <a id="slug-5"></a> `slug?` | `string` | The application slug in which this workflow should be created. | [refold.ts:187](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L187) |
|
|
843
|
+
|
|
844
|
+
***
|
|
845
|
+
|
|
846
|
+
### PublicWorkflowsPayload
|
|
847
|
+
|
|
848
|
+
Defined in: [refold.ts:191](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L191)
|
|
849
|
+
|
|
850
|
+
Parameters for filtering and paginating the list of workflows.
|
|
851
|
+
|
|
852
|
+
#### Extends
|
|
853
|
+
|
|
854
|
+
- `PaginationProps`
|
|
855
|
+
|
|
856
|
+
#### Indexable
|
|
857
|
+
|
|
858
|
+
> \[`key`: `string`\]: `string` \| `number` \| `boolean` \| `undefined`
|
|
859
|
+
|
|
860
|
+
Any additional filter keys supported by the API.
|
|
861
|
+
|
|
862
|
+
#### Properties
|
|
863
|
+
|
|
864
|
+
| Property | Type | Description | Inherited from | Defined in |
|
|
865
|
+
| ------ | ------ | ------ | ------ | ------ |
|
|
866
|
+
| <a id="end_date-2"></a> `end_date?` | `string` | Filter workflows created on or before this ISO 8601 date string. | - | [refold.ts:199](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L199) |
|
|
867
|
+
| <a id="limit-1"></a> `limit?` | `number` | - | `PaginationProps.limit` | [refold.ts:208](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L208) |
|
|
868
|
+
| <a id="name-8"></a> `name?` | `string` | Filter workflows by name (partial match). | - | [refold.ts:195](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L195) |
|
|
869
|
+
| <a id="page-1"></a> `page?` | `number` | - | `PaginationProps.page` | [refold.ts:207](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L207) |
|
|
870
|
+
| <a id="published-1"></a> `published?` | `boolean` | Filter by workflow published status. `true` returns only published workflows, `false` returns only drafts. | - | [refold.ts:201](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L201) |
|
|
871
|
+
| <a id="slug-6"></a> `slug?` | `string` | Filter workflows by the application slug. | - | [refold.ts:193](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L193) |
|
|
872
|
+
| <a id="start_date-2"></a> `start_date?` | `string` | Filter workflows created on or after this ISO 8601 date string. | - | [refold.ts:197](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L197) |
|
|
873
|
+
|
|
874
|
+
***
|
|
875
|
+
|
|
876
|
+
### RefoldOptions
|
|
877
|
+
|
|
878
|
+
Defined in: [refold.ts:135](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L135)
|
|
879
|
+
|
|
880
|
+
#### Properties
|
|
881
|
+
|
|
882
|
+
| Property | Type | Description | Defined in |
|
|
883
|
+
| ------ | ------ | ------ | ------ |
|
|
884
|
+
| <a id="baseurl"></a> `baseUrl?` | `string` | The base URL of the Refold API. You don't need to set this. | [refold.ts:137](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L137) |
|
|
885
|
+
| <a id="token-1"></a> `token?` | `string` | The session token. | [refold.ts:139](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L139) |
|
|
886
|
+
|
|
887
|
+
***
|
|
888
|
+
|
|
889
|
+
### RuleOptions
|
|
890
|
+
|
|
891
|
+
Defined in: [refold.ts:142](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L142)
|
|
892
|
+
|
|
893
|
+
#### Properties
|
|
894
|
+
|
|
895
|
+
| Property | Type | Defined in |
|
|
896
|
+
| ------ | ------ | ------ |
|
|
897
|
+
| <a id="conditional_code_stdout"></a> `conditional_code_stdout?` | `string`[] | [refold.ts:155](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L155) |
|
|
898
|
+
| <a id="error"></a> `error?` | `object` | [refold.ts:156](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L156) |
|
|
899
|
+
| `error.message?` | `string` | [refold.ts:157](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L157) |
|
|
900
|
+
| `error.stack?` | `string` | [refold.ts:158](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L158) |
|
|
901
|
+
| <a id="rule_column"></a> `rule_column` | `object` | [refold.ts:143](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L143) |
|
|
902
|
+
| `rule_column.operator` | `object` | [refold.ts:149](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L149) |
|
|
903
|
+
| `rule_column.operator.name` | `string` | [refold.ts:150](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L150) |
|
|
904
|
+
| `rule_column.operator.options` | [`Label`](#label-1)[] | [refold.ts:152](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L152) |
|
|
905
|
+
| `rule_column.operator.type` | `"select"` | [refold.ts:151](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L151) |
|
|
906
|
+
| `rule_column.rhs` | `object` | [refold.ts:144](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L144) |
|
|
907
|
+
| `rule_column.rhs.name` | `string` | [refold.ts:145](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L145) |
|
|
908
|
+
| `rule_column.rhs.options?` | [`Label`](#label-1)[] | [refold.ts:147](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L147) |
|
|
909
|
+
| `rule_column.rhs.type` | `"text"` \| `"select"` | [refold.ts:146](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L146) |
|
|
910
|
+
|
|
911
|
+
***
|
|
912
|
+
|
|
913
|
+
### UpdateConfigPayload
|
|
914
|
+
|
|
915
|
+
Defined in: [refold.ts:114](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L114)
|
|
916
|
+
|
|
917
|
+
The configuration data for an application.
|
|
918
|
+
|
|
919
|
+
#### Properties
|
|
920
|
+
|
|
921
|
+
| Property | Type | Description | Defined in |
|
|
922
|
+
| ------ | ------ | ------ | ------ |
|
|
923
|
+
| <a id="config_id-3"></a> `config_id?` | `string` | Unique ID for the config. | [refold.ts:118](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L118) |
|
|
924
|
+
| <a id="fields-2"></a> `fields` | `Record`\<`string`, `string` \| `number` \| `boolean`\> | A map of application fields and their values. | [refold.ts:120](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L120) |
|
|
925
|
+
| <a id="slug-7"></a> `slug` | `string` | The application slug | [refold.ts:116](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L116) |
|
|
926
|
+
| <a id="workflows-1"></a> `workflows` | [`WorkflowPayload`](#workflowpayload)[] | The config workflows data. | [refold.ts:122](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L122) |
|
|
927
|
+
|
|
928
|
+
***
|
|
929
|
+
|
|
930
|
+
### WorkflowPayload
|
|
931
|
+
|
|
932
|
+
Defined in: [refold.ts:126](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L126)
|
|
933
|
+
|
|
934
|
+
The workflow.
|
|
935
|
+
|
|
936
|
+
#### Properties
|
|
937
|
+
|
|
938
|
+
| Property | Type | Description | Defined in |
|
|
939
|
+
| ------ | ------ | ------ | ------ |
|
|
940
|
+
| <a id="enabled-1"></a> `enabled` | `boolean` | Whether the workflow is enabled. | [refold.ts:130](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L130) |
|
|
941
|
+
| <a id="fields-3"></a> `fields` | `Record`\<`string`, `string` \| `number` \| `boolean`\> | A map of workflow field names and their values. | [refold.ts:132](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L132) |
|
|
942
|
+
| <a id="id-3"></a> `id` | `string` | The ID of the workflow. | [refold.ts:128](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L128) |
|
|
943
|
+
|
|
944
|
+
***
|
|
945
|
+
|
|
946
|
+
### WorkflowPayloadResponse
|
|
947
|
+
|
|
948
|
+
Defined in: [refold.ts:298](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L298)
|
|
949
|
+
|
|
950
|
+
#### Properties
|
|
951
|
+
|
|
952
|
+
| Property | Type | Defined in |
|
|
953
|
+
| ------ | ------ | ------ |
|
|
954
|
+
| <a id="payload-1"></a> `payload` | `Record`\<`string`, `any`\> | [refold.ts:299](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L299) |
|
|
955
|
+
| <a id="schema"></a> `schema?` | `unknown` | [refold.ts:300](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L300) |
|
|
956
|
+
| <a id="schema_interpreted"></a> `schema_interpreted?` | `unknown` | [refold.ts:301](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L301) |
|
|
957
|
+
|
|
958
|
+
## Type Aliases
|
|
959
|
+
|
|
960
|
+
### ExecutionSource
|
|
961
|
+
|
|
962
|
+
> **ExecutionSource** = `"Event"` \| `"Schedule"` \| `"API Call"`
|
|
963
|
+
|
|
964
|
+
Defined in: [refold.ts:214](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L214)
|
|
965
|
+
|
|
966
|
+
The trigger source that initiated a workflow execution.
|
|
967
|
+
|
|
968
|
+
***
|
|
969
|
+
|
|
970
|
+
### ExecutionStatus
|
|
971
|
+
|
|
972
|
+
> **ExecutionStatus** = `"COMPLETED"` \| `"RUNNING"` \| `"ERRORED"` \| `"STOPPED"` \| `"STOPPING"` \| `"TIMED_OUT"`
|
|
973
|
+
|
|
974
|
+
Defined in: [refold.ts:212](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L212)
|
|
975
|
+
|
|
976
|
+
The current status of a workflow execution.
|
|
977
|
+
|
|
978
|
+
***
|
|
979
|
+
|
|
980
|
+
### ExecutionType
|
|
981
|
+
|
|
982
|
+
> **ExecutionType** = `"SYNC"` \| `"ASYNC"`
|
|
983
|
+
|
|
984
|
+
Defined in: [refold.ts:216](https://github.com/gocobalt/refold-js/blob/c234ec1f1c2c551a366c639651fe6f9201f6ff9f/refold.ts#L216)
|
|
985
|
+
|
|
986
|
+
Whether a workflow execution runs synchronously (waits for result) or asynchronously (fire-and-forget).
|