@embedworkflow/sdk 1.1.0 → 1.2.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/.github/workflows/push-tag.yaml +34 -0
- package/.openapi-generator/FILES +87 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +2 -2
- package/api/accounts-api.ts +540 -0
- package/api/action-types-api.ts +697 -0
- package/api/actions-api.ts +786 -0
- package/api/app-connections-api.ts +556 -0
- package/api/available-apps-api.ts +239 -0
- package/api/data-fields-api.ts +404 -0
- package/api/events-api.ts +172 -0
- package/api/executions-api.ts +361 -0
- package/api/installed-apps-api.ts +410 -0
- package/api/payments-api.ts +172 -0
- package/api/triggers-api.ts +437 -0
- package/api/users-api.ts +531 -0
- package/api/workflows-api.ts +1302 -0
- package/api.ts +30 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api/accounts-api.d.ts +124 -3
- package/dist/api/accounts-api.js +182 -1
- package/dist/api/action-types-api.d.ts +16 -11
- package/dist/api/action-types-api.js +14 -7
- package/dist/api/actions-api.d.ts +6 -6
- package/dist/api/app-connections-api.d.ts +5 -5
- package/dist/api/available-apps-api.d.ts +2 -2
- package/dist/api/data-fields-api.d.ts +46 -2
- package/dist/api/data-fields-api.js +68 -0
- package/dist/api/events-api.d.ts +1 -1
- package/dist/api/executions-api.d.ts +3 -3
- package/dist/api/installed-apps-api.d.ts +4 -4
- package/dist/api/payments-api.d.ts +1 -1
- package/dist/api/triggers-api.d.ts +14 -14
- package/dist/api/triggers-api.js +12 -12
- package/dist/api/users-api.d.ts +14 -9
- package/dist/api/users-api.js +14 -7
- package/dist/api/workflows-api.d.ts +96 -15
- package/dist/api/workflows-api.js +125 -8
- package/dist/common.d.ts +1 -1
- package/dist/esm/api/accounts-api.d.ts +124 -3
- package/dist/esm/api/accounts-api.js +181 -0
- package/dist/esm/api/action-types-api.d.ts +16 -11
- package/dist/esm/api/action-types-api.js +14 -7
- package/dist/esm/api/actions-api.d.ts +6 -6
- package/dist/esm/api/app-connections-api.d.ts +5 -5
- package/dist/esm/api/available-apps-api.d.ts +2 -2
- package/dist/esm/api/data-fields-api.d.ts +46 -2
- package/dist/esm/api/data-fields-api.js +69 -1
- package/dist/esm/api/events-api.d.ts +1 -1
- package/dist/esm/api/executions-api.d.ts +3 -3
- package/dist/esm/api/installed-apps-api.d.ts +4 -4
- package/dist/esm/api/payments-api.d.ts +1 -1
- package/dist/esm/api/triggers-api.d.ts +14 -14
- package/dist/esm/api/triggers-api.js +12 -12
- package/dist/esm/api/users-api.d.ts +14 -9
- package/dist/esm/api/users-api.js +14 -7
- package/dist/esm/api/workflows-api.d.ts +96 -15
- package/dist/esm/api/workflows-api.js +124 -7
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/models/catch-hook-request.d.ts +25 -0
- package/dist/esm/models/create-action-type-request-form-draft-inner.d.ts +6 -0
- package/dist/esm/models/create-action-type-request.d.ts +12 -0
- package/dist/esm/models/create-workflow201-response.d.ts +58 -11
- package/dist/esm/models/create-workflow201-response.js +4 -0
- package/dist/esm/models/evaluate-expression-request.d.ts +32 -0
- package/dist/esm/models/evaluate-expression200-response.d.ts +24 -0
- package/dist/esm/models/export-configuration200-response-configuration.d.ts +16 -0
- package/dist/esm/models/export-configuration200-response.d.ts +25 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/esm/models/list-action-types200-response-collection-inner.d.ts +58 -0
- package/dist/esm/models/list-action-types200-response-collection-inner.js +9 -0
- package/dist/esm/models/list-data-fields200-response-collection-inner.d.ts +18 -0
- package/dist/esm/models/list-triggers200-response-collection-inner.d.ts +18 -0
- package/dist/esm/models/list-users200-response-collection-inner.d.ts +6 -6
- package/dist/esm/models/list-workflows200-response-collection-inner.d.ts +29 -5
- package/dist/esm/models/retrieve-account-usage200-response.d.ts +60 -0
- package/dist/esm/models/retrieve-account-usage200-response.js +14 -0
- package/dist/esm/models/retrieve-account200-response.d.ts +19 -1
- package/dist/esm/models/{api-v1-action-types-post-request-icon-draft.d.ts → update-account-request-action-type-categories-inner-icon.d.ts} +10 -10
- package/dist/esm/models/update-account-request-action-type-categories-inner-icon.js +14 -0
- package/dist/esm/models/update-account-request-action-type-categories-inner.d.ts +43 -0
- package/dist/esm/models/update-account-request-action-type-categories-inner.js +14 -0
- package/dist/esm/models/update-account-request.d.ts +13 -0
- package/dist/esm/models/update-action-type-request.d.ts +12 -0
- package/dist/esm/models/update-trigger-request.d.ts +30 -0
- package/dist/esm/models/update-trigger-request.js +14 -0
- package/dist/esm/models/update-workflow-request.d.ts +7 -1
- package/dist/esm/models/upsert-user-request.d.ts +6 -0
- package/dist/models/catch-hook-request.d.ts +25 -0
- package/dist/models/create-action-type-request-form-draft-inner.d.ts +6 -0
- package/dist/models/create-action-type-request.d.ts +12 -0
- package/dist/models/create-workflow201-response.d.ts +58 -11
- package/dist/models/create-workflow201-response.js +5 -1
- package/dist/models/evaluate-expression-request.d.ts +32 -0
- package/dist/models/evaluate-expression200-response.d.ts +24 -0
- package/dist/models/export-configuration200-response-configuration.d.ts +16 -0
- package/dist/models/export-configuration200-response.d.ts +25 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/models/list-action-types200-response-collection-inner.d.ts +58 -0
- package/dist/models/list-action-types200-response-collection-inner.js +10 -1
- package/dist/models/list-data-fields200-response-collection-inner.d.ts +18 -0
- package/dist/models/list-triggers200-response-collection-inner.d.ts +18 -0
- package/dist/models/list-users200-response-collection-inner.d.ts +6 -6
- package/dist/models/list-workflows200-response-collection-inner.d.ts +29 -5
- package/dist/models/retrieve-account-usage200-response.d.ts +60 -0
- package/dist/models/retrieve-account-usage200-response.js +15 -0
- package/dist/models/retrieve-account200-response.d.ts +19 -1
- package/dist/{esm/models/retrieve-action-type404-response.d.ts → models/update-account-request-action-type-categories-inner-icon.d.ts} +12 -12
- package/dist/models/update-account-request-action-type-categories-inner-icon.js +15 -0
- package/dist/models/update-account-request-action-type-categories-inner.d.ts +43 -0
- package/dist/models/update-account-request-action-type-categories-inner.js +15 -0
- package/dist/models/update-account-request.d.ts +13 -0
- package/dist/models/update-action-type-request.d.ts +12 -0
- package/dist/models/update-trigger-request.d.ts +30 -0
- package/dist/models/update-trigger-request.js +15 -0
- package/dist/models/update-workflow-request.d.ts +7 -1
- package/dist/models/upsert-user-request.d.ts +6 -0
- package/git_push.sh +57 -0
- package/index.ts +111 -0
- package/models/catch-hook-request.ts +32 -0
- package/models/create-action-type-request-form-draft-inner.ts +88 -0
- package/{dist/models/api-v1-action-types-post-request-icon-draft.d.ts → models/create-action-type-request-icon-draft.ts} +12 -6
- package/{dist/models/api-v1-action-types-post-request.d.ts → models/create-action-type-request.ts} +49 -25
- package/{dist/models/retrieve-action-type404-response.d.ts → models/create-action-type422-response.ts} +13 -7
- package/{dist/esm/models/api-v1-app-connections-post-request.d.ts → models/create-app-connection-request.ts} +14 -8
- package/models/create-user-token-request.ts +38 -0
- package/models/create-user-token200-response.ts +30 -0
- package/models/create-workflow-request-template-draft-nodes-inner.ts +138 -0
- package/models/create-workflow-request-template-draft.ts +39 -0
- package/models/create-workflow-request.ts +75 -0
- package/{dist/esm/models/retrieve-workflow200-response.d.ts → models/create-workflow201-response.ts} +111 -60
- package/models/delete-action-type200-response.ts +30 -0
- package/{dist/esm/models/api-v1-action-types-post-request-form-draft-inner.js → models/delete-workflow200-response-one-of.ts} +18 -13
- package/models/delete-workflow200-response-one-of1.ts +30 -0
- package/models/delete-workflow200-response.ts +30 -0
- package/models/discard-workflow-draft-request.ts +36 -0
- package/models/evaluate-expression-request.ts +36 -0
- package/models/evaluate-expression200-response.ts +30 -0
- package/models/execute-workflow-request.ts +50 -0
- package/models/execute-workflow201-response.ts +126 -0
- package/models/export-configuration200-response-configuration.ts +23 -0
- package/models/export-configuration200-response.ts +33 -0
- package/models/import-configuration-request-schema.ts +24 -0
- package/models/import-configuration-request.ts +50 -0
- package/models/import-configuration201-response.ts +60 -0
- package/models/index.ts +70 -0
- package/models/install-app-request.ts +36 -0
- package/{dist/models/retrieve-installed-app200-response.d.ts → models/install-app201-response.ts} +28 -24
- package/models/list-action-types200-response-collection-inner.ts +325 -0
- package/models/list-action-types200-response-meta.ts +42 -0
- package/models/list-action-types200-response.ts +42 -0
- package/models/list-actions200-response-collection-inner.ts +150 -0
- package/models/list-actions200-response.ts +42 -0
- package/models/list-app-connections200-response-collection-inner.ts +72 -0
- package/models/list-app-connections200-response.ts +42 -0
- package/models/list-available-apps200-response-collection-inner.ts +72 -0
- package/models/list-available-apps200-response.ts +42 -0
- package/{dist/esm/models/clone-workflow201-response.js → models/list-data-fields-type-parameter.ts} +11 -5
- package/models/list-data-fields200-response-collection-inner.ts +108 -0
- package/models/list-data-fields200-response.ts +42 -0
- package/models/list-events200-response-collection-inner.ts +84 -0
- package/models/list-events200-response.ts +42 -0
- package/{dist/esm/models/retrieve-installed-app200-response.d.ts → models/list-installed-apps200-response-collection-inner.ts} +26 -28
- package/models/list-installed-apps200-response.ts +42 -0
- package/models/list-triggers200-response-collection-inner.ts +126 -0
- package/models/list-triggers200-response.ts +42 -0
- package/models/list-users200-response-collection-inner.ts +90 -0
- package/models/list-users200-response.ts +42 -0
- package/models/list-workflow-executions200-response.ts +42 -0
- package/models/list-workflow-versions200-response-collection-inner.ts +66 -0
- package/models/list-workflow-versions200-response.ts +42 -0
- package/{dist/models/retrieve-workflow200-response.d.ts → models/list-workflows200-response-collection-inner.ts} +76 -79
- package/models/list-workflows200-response.ts +42 -0
- package/models/publish-workflow-request.ts +30 -0
- package/models/retrieve-account-usage200-response.ts +66 -0
- package/models/retrieve-account200-response.ts +114 -0
- package/models/retrieve-available-app200-response.ts +78 -0
- package/models/retrieve-execution200-response.ts +138 -0
- package/models/retry-action-request.ts +38 -0
- package/models/stop-executions-request.ts +38 -0
- package/models/trigger-workflow-request.ts +54 -0
- package/models/update-account-request-action-type-categories-inner-icon.ts +42 -0
- package/models/update-account-request-action-type-categories-inner.ts +51 -0
- package/models/update-account-request-user-data-schema-inner.ts +54 -0
- package/models/update-account-request.ts +96 -0
- package/models/update-action-type-request.ts +48 -0
- package/models/update-installed-app-request.ts +30 -0
- package/models/update-trigger-request.ts +36 -0
- package/models/update-workflow-request.ts +93 -0
- package/models/upsert-user-request.ts +54 -0
- package/package.json +4 -6
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
- package/dist/esm/models/api-v1-action-types-post-request-form-draft-inner.d.ts +0 -75
- package/dist/esm/models/api-v1-action-types-post-request.d.ts +0 -105
- package/dist/esm/models/clone-workflow201-response.d.ts +0 -183
- package/dist/esm/models/retrieve-workflow200-response.js +0 -17
- package/dist/models/api-v1-action-types-post-request-form-draft-inner.d.ts +0 -75
- package/dist/models/api-v1-action-types-post-request-form-draft-inner.js +0 -28
- package/dist/models/api-v1-app-connections-post-request.d.ts +0 -42
- package/dist/models/clone-workflow201-response.d.ts +0 -183
- package/dist/models/clone-workflow201-response.js +0 -20
- package/dist/models/retrieve-workflow200-response.js +0 -20
- /package/dist/esm/models/{api-v1-action-types-post-request-icon-draft.js → catch-hook-request.js} +0 -0
- /package/dist/esm/models/{api-v1-action-types-post-request.js → evaluate-expression-request.js} +0 -0
- /package/dist/esm/models/{api-v1-app-connections-post-request.js → evaluate-expression200-response.js} +0 -0
- /package/dist/esm/models/{retrieve-action-type404-response.js → export-configuration200-response-configuration.js} +0 -0
- /package/dist/esm/models/{retrieve-installed-app200-response.js → export-configuration200-response.js} +0 -0
- /package/dist/models/{api-v1-action-types-post-request-icon-draft.js → catch-hook-request.js} +0 -0
- /package/dist/models/{api-v1-action-types-post-request.js → evaluate-expression-request.js} +0 -0
- /package/dist/models/{api-v1-app-connections-post-request.js → evaluate-expression200-response.js} +0 -0
- /package/dist/models/{retrieve-action-type404-response.js → export-configuration200-response-configuration.js} +0 -0
- /package/dist/models/{retrieve-installed-app200-response.js → export-configuration200-response.js} +0 -0
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CatchHookRequest } from '../models';
|
|
15
16
|
import { CreateWorkflow201Response } from '../models';
|
|
16
17
|
import { CreateWorkflowRequest } from '../models';
|
|
17
18
|
import { DeleteWorkflow200Response } from '../models';
|
|
@@ -29,6 +30,15 @@ import { UpdateWorkflowRequest } from '../models';
|
|
|
29
30
|
* @export
|
|
30
31
|
*/
|
|
31
32
|
export declare const WorkflowsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @summary Catch hook
|
|
36
|
+
* @param {string} hookId The trigger\'s hook id used for third party webhooks
|
|
37
|
+
* @param {CatchHookRequest} [catchHookRequest]
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
catchHook: (hookId: string, catchHookRequest?: CatchHookRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
42
|
/**
|
|
33
43
|
*
|
|
34
44
|
* @summary Clone workflow
|
|
@@ -93,10 +103,15 @@ export declare const WorkflowsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
93
103
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
94
104
|
* @param {number} [limit] Number of items to return (max 100)
|
|
95
105
|
* @param {Array<string>} [expand] Expand related objects
|
|
106
|
+
* @param {string} [userKey] Unique user identifier
|
|
107
|
+
* @param {boolean} [isTemplate] Filter workflows by is_template value
|
|
108
|
+
* @param {boolean} [on] Filter workflows by on value
|
|
109
|
+
* @param {string} [orderBy] Field to order results by
|
|
110
|
+
* @param {ListWorkflowsOrderDirectionEnum} [orderDirection]
|
|
96
111
|
* @param {*} [options] Override http request option.
|
|
97
112
|
* @throws {RequiredError}
|
|
98
113
|
*/
|
|
99
|
-
listWorkflows: (startingAfter?: string, endingBefore?: string, limit?: number, expand?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
114
|
+
listWorkflows: (startingAfter?: string, endingBefore?: string, limit?: number, expand?: Array<string>, userKey?: string, isTemplate?: boolean, on?: boolean, orderBy?: string, orderDirection?: ListWorkflowsOrderDirectionEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
100
115
|
/**
|
|
101
116
|
*
|
|
102
117
|
* @summary Publish workflow
|
|
@@ -140,6 +155,15 @@ export declare const WorkflowsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
140
155
|
* @export
|
|
141
156
|
*/
|
|
142
157
|
export declare const WorkflowsApiFp: (configuration?: Configuration) => {
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @summary Catch hook
|
|
161
|
+
* @param {string} hookId The trigger\'s hook id used for third party webhooks
|
|
162
|
+
* @param {CatchHookRequest} [catchHookRequest]
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
*/
|
|
166
|
+
catchHook(hookId: string, catchHookRequest?: CatchHookRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
143
167
|
/**
|
|
144
168
|
*
|
|
145
169
|
* @summary Clone workflow
|
|
@@ -204,10 +228,15 @@ export declare const WorkflowsApiFp: (configuration?: Configuration) => {
|
|
|
204
228
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
205
229
|
* @param {number} [limit] Number of items to return (max 100)
|
|
206
230
|
* @param {Array<string>} [expand] Expand related objects
|
|
231
|
+
* @param {string} [userKey] Unique user identifier
|
|
232
|
+
* @param {boolean} [isTemplate] Filter workflows by is_template value
|
|
233
|
+
* @param {boolean} [on] Filter workflows by on value
|
|
234
|
+
* @param {string} [orderBy] Field to order results by
|
|
235
|
+
* @param {ListWorkflowsOrderDirectionEnum} [orderDirection]
|
|
207
236
|
* @param {*} [options] Override http request option.
|
|
208
237
|
* @throws {RequiredError}
|
|
209
238
|
*/
|
|
210
|
-
listWorkflows(startingAfter?: string, endingBefore?: string, limit?: number, expand?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkflows200Response>>;
|
|
239
|
+
listWorkflows(startingAfter?: string, endingBefore?: string, limit?: number, expand?: Array<string>, userKey?: string, isTemplate?: boolean, on?: boolean, orderBy?: string, orderDirection?: ListWorkflowsOrderDirectionEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkflows200Response>>;
|
|
211
240
|
/**
|
|
212
241
|
*
|
|
213
242
|
* @summary Publish workflow
|
|
@@ -251,6 +280,15 @@ export declare const WorkflowsApiFp: (configuration?: Configuration) => {
|
|
|
251
280
|
* @export
|
|
252
281
|
*/
|
|
253
282
|
export declare const WorkflowsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* @summary Catch hook
|
|
286
|
+
* @param {string} hookId The trigger\'s hook id used for third party webhooks
|
|
287
|
+
* @param {CatchHookRequest} [catchHookRequest]
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
*/
|
|
291
|
+
catchHook(hookId: string, catchHookRequest?: CatchHookRequest, options?: any): AxiosPromise<object>;
|
|
254
292
|
/**
|
|
255
293
|
*
|
|
256
294
|
* @summary Clone workflow
|
|
@@ -315,10 +353,15 @@ export declare const WorkflowsApiFactory: (configuration?: Configuration, basePa
|
|
|
315
353
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
316
354
|
* @param {number} [limit] Number of items to return (max 100)
|
|
317
355
|
* @param {Array<string>} [expand] Expand related objects
|
|
356
|
+
* @param {string} [userKey] Unique user identifier
|
|
357
|
+
* @param {boolean} [isTemplate] Filter workflows by is_template value
|
|
358
|
+
* @param {boolean} [on] Filter workflows by on value
|
|
359
|
+
* @param {string} [orderBy] Field to order results by
|
|
360
|
+
* @param {ListWorkflowsOrderDirectionEnum} [orderDirection]
|
|
318
361
|
* @param {*} [options] Override http request option.
|
|
319
362
|
* @throws {RequiredError}
|
|
320
363
|
*/
|
|
321
|
-
listWorkflows(startingAfter?: string, endingBefore?: string, limit?: number, expand?: Array<string>, options?: any): AxiosPromise<ListWorkflows200Response>;
|
|
364
|
+
listWorkflows(startingAfter?: string, endingBefore?: string, limit?: number, expand?: Array<string>, userKey?: string, isTemplate?: boolean, on?: boolean, orderBy?: string, orderDirection?: ListWorkflowsOrderDirectionEnum, options?: any): AxiosPromise<ListWorkflows200Response>;
|
|
322
365
|
/**
|
|
323
366
|
*
|
|
324
367
|
* @summary Publish workflow
|
|
@@ -363,6 +406,16 @@ export declare const WorkflowsApiFactory: (configuration?: Configuration, basePa
|
|
|
363
406
|
* @interface WorkflowsApi
|
|
364
407
|
*/
|
|
365
408
|
export interface WorkflowsApiInterface {
|
|
409
|
+
/**
|
|
410
|
+
*
|
|
411
|
+
* @summary Catch hook
|
|
412
|
+
* @param {string} hookId The trigger\'s hook id used for third party webhooks
|
|
413
|
+
* @param {CatchHookRequest} [catchHookRequest]
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
* @memberof WorkflowsApiInterface
|
|
417
|
+
*/
|
|
418
|
+
catchHook(hookId: string, catchHookRequest?: CatchHookRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
366
419
|
/**
|
|
367
420
|
*
|
|
368
421
|
* @summary Clone workflow
|
|
@@ -433,11 +486,16 @@ export interface WorkflowsApiInterface {
|
|
|
433
486
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
434
487
|
* @param {number} [limit] Number of items to return (max 100)
|
|
435
488
|
* @param {Array<string>} [expand] Expand related objects
|
|
489
|
+
* @param {string} [userKey] Unique user identifier
|
|
490
|
+
* @param {boolean} [isTemplate] Filter workflows by is_template value
|
|
491
|
+
* @param {boolean} [on] Filter workflows by on value
|
|
492
|
+
* @param {string} [orderBy] Field to order results by
|
|
493
|
+
* @param {ListWorkflowsOrderDirectionEnum} [orderDirection]
|
|
436
494
|
* @param {*} [options] Override http request option.
|
|
437
495
|
* @throws {RequiredError}
|
|
438
496
|
* @memberof WorkflowsApiInterface
|
|
439
497
|
*/
|
|
440
|
-
listWorkflows(startingAfter?: string, endingBefore?: string, limit?: number, expand?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<ListWorkflows200Response>;
|
|
498
|
+
listWorkflows(startingAfter?: string, endingBefore?: string, limit?: number, expand?: Array<string>, userKey?: string, isTemplate?: boolean, on?: boolean, orderBy?: string, orderDirection?: ListWorkflowsOrderDirectionEnum, options?: RawAxiosRequestConfig): AxiosPromise<ListWorkflows200Response>;
|
|
441
499
|
/**
|
|
442
500
|
*
|
|
443
501
|
* @summary Publish workflow
|
|
@@ -487,6 +545,16 @@ export interface WorkflowsApiInterface {
|
|
|
487
545
|
* @extends {BaseAPI}
|
|
488
546
|
*/
|
|
489
547
|
export declare class WorkflowsApi extends BaseAPI implements WorkflowsApiInterface {
|
|
548
|
+
/**
|
|
549
|
+
*
|
|
550
|
+
* @summary Catch hook
|
|
551
|
+
* @param {string} hookId The trigger\'s hook id used for third party webhooks
|
|
552
|
+
* @param {CatchHookRequest} [catchHookRequest]
|
|
553
|
+
* @param {*} [options] Override http request option.
|
|
554
|
+
* @throws {RequiredError}
|
|
555
|
+
* @memberof WorkflowsApi
|
|
556
|
+
*/
|
|
557
|
+
catchHook(hookId: string, catchHookRequest?: CatchHookRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
490
558
|
/**
|
|
491
559
|
*
|
|
492
560
|
* @summary Clone workflow
|
|
@@ -496,7 +564,7 @@ export declare class WorkflowsApi extends BaseAPI implements WorkflowsApiInterfa
|
|
|
496
564
|
* @throws {RequiredError}
|
|
497
565
|
* @memberof WorkflowsApi
|
|
498
566
|
*/
|
|
499
|
-
cloneWorkflow(id: string, discardWorkflowDraftRequest?: DiscardWorkflowDraftRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkflows200ResponseCollectionInner, any>>;
|
|
567
|
+
cloneWorkflow(id: string, discardWorkflowDraftRequest?: DiscardWorkflowDraftRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkflows200ResponseCollectionInner, any, {}>>;
|
|
500
568
|
/**
|
|
501
569
|
*
|
|
502
570
|
* @summary Create workflow
|
|
@@ -505,7 +573,7 @@ export declare class WorkflowsApi extends BaseAPI implements WorkflowsApiInterfa
|
|
|
505
573
|
* @throws {RequiredError}
|
|
506
574
|
* @memberof WorkflowsApi
|
|
507
575
|
*/
|
|
508
|
-
createWorkflow(createWorkflowRequest?: CreateWorkflowRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateWorkflow201Response, any>>;
|
|
576
|
+
createWorkflow(createWorkflowRequest?: CreateWorkflowRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateWorkflow201Response, any, {}>>;
|
|
509
577
|
/**
|
|
510
578
|
*
|
|
511
579
|
* @summary Delete workflow
|
|
@@ -516,7 +584,7 @@ export declare class WorkflowsApi extends BaseAPI implements WorkflowsApiInterfa
|
|
|
516
584
|
* @throws {RequiredError}
|
|
517
585
|
* @memberof WorkflowsApi
|
|
518
586
|
*/
|
|
519
|
-
deleteWorkflow(id: string, idType?: string, userKey?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteWorkflow200Response, any>>;
|
|
587
|
+
deleteWorkflow(id: string, idType?: string, userKey?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteWorkflow200Response, any, {}>>;
|
|
520
588
|
/**
|
|
521
589
|
*
|
|
522
590
|
* @summary Discard workflow draft
|
|
@@ -526,7 +594,7 @@ export declare class WorkflowsApi extends BaseAPI implements WorkflowsApiInterfa
|
|
|
526
594
|
* @throws {RequiredError}
|
|
527
595
|
* @memberof WorkflowsApi
|
|
528
596
|
*/
|
|
529
|
-
discardWorkflowDraft(id: string, discardWorkflowDraftRequest?: DiscardWorkflowDraftRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateWorkflow201Response, any>>;
|
|
597
|
+
discardWorkflowDraft(id: string, discardWorkflowDraftRequest?: DiscardWorkflowDraftRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateWorkflow201Response, any, {}>>;
|
|
530
598
|
/**
|
|
531
599
|
*
|
|
532
600
|
* @summary Execute workflow
|
|
@@ -536,7 +604,7 @@ export declare class WorkflowsApi extends BaseAPI implements WorkflowsApiInterfa
|
|
|
536
604
|
* @throws {RequiredError}
|
|
537
605
|
* @memberof WorkflowsApi
|
|
538
606
|
*/
|
|
539
|
-
executeWorkflow(id: string, executeWorkflowRequest?: ExecuteWorkflowRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteWorkflow201Response, any>>;
|
|
607
|
+
executeWorkflow(id: string, executeWorkflowRequest?: ExecuteWorkflowRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteWorkflow201Response, any, {}>>;
|
|
540
608
|
/**
|
|
541
609
|
*
|
|
542
610
|
* @summary List workflow versions
|
|
@@ -549,7 +617,7 @@ export declare class WorkflowsApi extends BaseAPI implements WorkflowsApiInterfa
|
|
|
549
617
|
* @throws {RequiredError}
|
|
550
618
|
* @memberof WorkflowsApi
|
|
551
619
|
*/
|
|
552
|
-
listWorkflowVersions(workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, userKey?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkflowVersions200Response, any>>;
|
|
620
|
+
listWorkflowVersions(workflowId: string, startingAfter?: string, endingBefore?: string, limit?: number, userKey?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkflowVersions200Response, any, {}>>;
|
|
553
621
|
/**
|
|
554
622
|
*
|
|
555
623
|
* @summary List workflows
|
|
@@ -557,11 +625,16 @@ export declare class WorkflowsApi extends BaseAPI implements WorkflowsApiInterfa
|
|
|
557
625
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
558
626
|
* @param {number} [limit] Number of items to return (max 100)
|
|
559
627
|
* @param {Array<string>} [expand] Expand related objects
|
|
628
|
+
* @param {string} [userKey] Unique user identifier
|
|
629
|
+
* @param {boolean} [isTemplate] Filter workflows by is_template value
|
|
630
|
+
* @param {boolean} [on] Filter workflows by on value
|
|
631
|
+
* @param {string} [orderBy] Field to order results by
|
|
632
|
+
* @param {ListWorkflowsOrderDirectionEnum} [orderDirection]
|
|
560
633
|
* @param {*} [options] Override http request option.
|
|
561
634
|
* @throws {RequiredError}
|
|
562
635
|
* @memberof WorkflowsApi
|
|
563
636
|
*/
|
|
564
|
-
listWorkflows(startingAfter?: string, endingBefore?: string, limit?: number, expand?: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkflows200Response, any>>;
|
|
637
|
+
listWorkflows(startingAfter?: string, endingBefore?: string, limit?: number, expand?: Array<string>, userKey?: string, isTemplate?: boolean, on?: boolean, orderBy?: string, orderDirection?: ListWorkflowsOrderDirectionEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkflows200Response, any, {}>>;
|
|
565
638
|
/**
|
|
566
639
|
*
|
|
567
640
|
* @summary Publish workflow
|
|
@@ -571,7 +644,7 @@ export declare class WorkflowsApi extends BaseAPI implements WorkflowsApiInterfa
|
|
|
571
644
|
* @throws {RequiredError}
|
|
572
645
|
* @memberof WorkflowsApi
|
|
573
646
|
*/
|
|
574
|
-
publishWorkflow(id: string, publishWorkflowRequest?: PublishWorkflowRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateWorkflow201Response, any>>;
|
|
647
|
+
publishWorkflow(id: string, publishWorkflowRequest?: PublishWorkflowRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateWorkflow201Response, any, {}>>;
|
|
575
648
|
/**
|
|
576
649
|
*
|
|
577
650
|
* @summary Retrieve workflow
|
|
@@ -583,7 +656,7 @@ export declare class WorkflowsApi extends BaseAPI implements WorkflowsApiInterfa
|
|
|
583
656
|
* @throws {RequiredError}
|
|
584
657
|
* @memberof WorkflowsApi
|
|
585
658
|
*/
|
|
586
|
-
retrieveWorkflow(id: string, idType?: string, userKey?: string, expand?: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateWorkflow201Response, any>>;
|
|
659
|
+
retrieveWorkflow(id: string, idType?: string, userKey?: string, expand?: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateWorkflow201Response, any, {}>>;
|
|
587
660
|
/**
|
|
588
661
|
*
|
|
589
662
|
* @summary Trigger workflow
|
|
@@ -592,7 +665,7 @@ export declare class WorkflowsApi extends BaseAPI implements WorkflowsApiInterfa
|
|
|
592
665
|
* @throws {RequiredError}
|
|
593
666
|
* @memberof WorkflowsApi
|
|
594
667
|
*/
|
|
595
|
-
triggerWorkflow(triggerWorkflowRequest?: TriggerWorkflowRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
668
|
+
triggerWorkflow(triggerWorkflowRequest?: TriggerWorkflowRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
596
669
|
/**
|
|
597
670
|
*
|
|
598
671
|
* @summary Update workflow
|
|
@@ -602,5 +675,13 @@ export declare class WorkflowsApi extends BaseAPI implements WorkflowsApiInterfa
|
|
|
602
675
|
* @throws {RequiredError}
|
|
603
676
|
* @memberof WorkflowsApi
|
|
604
677
|
*/
|
|
605
|
-
updateWorkflow(id: string, updateWorkflowRequest?: UpdateWorkflowRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
678
|
+
updateWorkflow(id: string, updateWorkflowRequest?: UpdateWorkflowRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
606
679
|
}
|
|
680
|
+
/**
|
|
681
|
+
* @export
|
|
682
|
+
*/
|
|
683
|
+
export declare const ListWorkflowsOrderDirectionEnum: {
|
|
684
|
+
readonly Asc: "asc";
|
|
685
|
+
readonly Desc: "desc";
|
|
686
|
+
};
|
|
687
|
+
export type ListWorkflowsOrderDirectionEnum = typeof ListWorkflowsOrderDirectionEnum[keyof typeof ListWorkflowsOrderDirectionEnum];
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.WorkflowsApi = exports.WorkflowsApiFactory = exports.WorkflowsApiFp = exports.WorkflowsApiAxiosParamCreator = void 0;
|
|
25
|
+
exports.ListWorkflowsOrderDirectionEnum = exports.WorkflowsApi = exports.WorkflowsApiFactory = exports.WorkflowsApiFp = exports.WorkflowsApiAxiosParamCreator = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -35,6 +35,41 @@ const base_1 = require("../base");
|
|
|
35
35
|
*/
|
|
36
36
|
const WorkflowsApiAxiosParamCreator = function (configuration) {
|
|
37
37
|
return {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @summary Catch hook
|
|
41
|
+
* @param {string} hookId The trigger\'s hook id used for third party webhooks
|
|
42
|
+
* @param {CatchHookRequest} [catchHookRequest]
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
catchHook: (hookId, catchHookRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
// verify required parameter 'hookId' is not null or undefined
|
|
48
|
+
(0, common_1.assertParamExists)('catchHook', 'hookId', hookId);
|
|
49
|
+
const localVarPath = `/api/v1/hooks/{hook_id}/catch`
|
|
50
|
+
.replace(`{${"hook_id"}}`, encodeURIComponent(String(hookId)));
|
|
51
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
53
|
+
let baseOptions;
|
|
54
|
+
if (configuration) {
|
|
55
|
+
baseOptions = configuration.baseOptions;
|
|
56
|
+
}
|
|
57
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
58
|
+
const localVarHeaderParameter = {};
|
|
59
|
+
const localVarQueryParameter = {};
|
|
60
|
+
// authentication bearer required
|
|
61
|
+
// http bearer authentication required
|
|
62
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
63
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
64
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
65
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
66
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
67
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(catchHookRequest, localVarRequestOptions, configuration);
|
|
68
|
+
return {
|
|
69
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
70
|
+
options: localVarRequestOptions,
|
|
71
|
+
};
|
|
72
|
+
}),
|
|
38
73
|
/**
|
|
39
74
|
*
|
|
40
75
|
* @summary Clone workflow
|
|
@@ -266,10 +301,15 @@ const WorkflowsApiAxiosParamCreator = function (configuration) {
|
|
|
266
301
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
267
302
|
* @param {number} [limit] Number of items to return (max 100)
|
|
268
303
|
* @param {Array<string>} [expand] Expand related objects
|
|
304
|
+
* @param {string} [userKey] Unique user identifier
|
|
305
|
+
* @param {boolean} [isTemplate] Filter workflows by is_template value
|
|
306
|
+
* @param {boolean} [on] Filter workflows by on value
|
|
307
|
+
* @param {string} [orderBy] Field to order results by
|
|
308
|
+
* @param {ListWorkflowsOrderDirectionEnum} [orderDirection]
|
|
269
309
|
* @param {*} [options] Override http request option.
|
|
270
310
|
* @throws {RequiredError}
|
|
271
311
|
*/
|
|
272
|
-
listWorkflows: (startingAfter, endingBefore, limit, expand, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
312
|
+
listWorkflows: (startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
273
313
|
const localVarPath = `/api/v1/workflows`;
|
|
274
314
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
275
315
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -295,6 +335,21 @@ const WorkflowsApiAxiosParamCreator = function (configuration) {
|
|
|
295
335
|
if (expand) {
|
|
296
336
|
localVarQueryParameter['expand'] = expand;
|
|
297
337
|
}
|
|
338
|
+
if (userKey !== undefined) {
|
|
339
|
+
localVarQueryParameter['user_key'] = userKey;
|
|
340
|
+
}
|
|
341
|
+
if (isTemplate !== undefined) {
|
|
342
|
+
localVarQueryParameter['is_template'] = isTemplate;
|
|
343
|
+
}
|
|
344
|
+
if (on !== undefined) {
|
|
345
|
+
localVarQueryParameter['on'] = on;
|
|
346
|
+
}
|
|
347
|
+
if (orderBy !== undefined) {
|
|
348
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
349
|
+
}
|
|
350
|
+
if (orderDirection !== undefined) {
|
|
351
|
+
localVarQueryParameter['order_direction'] = orderDirection;
|
|
352
|
+
}
|
|
298
353
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
299
354
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
300
355
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -458,6 +513,23 @@ exports.WorkflowsApiAxiosParamCreator = WorkflowsApiAxiosParamCreator;
|
|
|
458
513
|
const WorkflowsApiFp = function (configuration) {
|
|
459
514
|
const localVarAxiosParamCreator = (0, exports.WorkflowsApiAxiosParamCreator)(configuration);
|
|
460
515
|
return {
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @summary Catch hook
|
|
519
|
+
* @param {string} hookId The trigger\'s hook id used for third party webhooks
|
|
520
|
+
* @param {CatchHookRequest} [catchHookRequest]
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @throws {RequiredError}
|
|
523
|
+
*/
|
|
524
|
+
catchHook(hookId, catchHookRequest, options) {
|
|
525
|
+
var _a, _b, _c;
|
|
526
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
527
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.catchHook(hookId, catchHookRequest, options);
|
|
528
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
529
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['WorkflowsApi.catchHook']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
530
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
531
|
+
});
|
|
532
|
+
},
|
|
461
533
|
/**
|
|
462
534
|
*
|
|
463
535
|
* @summary Clone workflow
|
|
@@ -570,13 +642,18 @@ const WorkflowsApiFp = function (configuration) {
|
|
|
570
642
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
571
643
|
* @param {number} [limit] Number of items to return (max 100)
|
|
572
644
|
* @param {Array<string>} [expand] Expand related objects
|
|
645
|
+
* @param {string} [userKey] Unique user identifier
|
|
646
|
+
* @param {boolean} [isTemplate] Filter workflows by is_template value
|
|
647
|
+
* @param {boolean} [on] Filter workflows by on value
|
|
648
|
+
* @param {string} [orderBy] Field to order results by
|
|
649
|
+
* @param {ListWorkflowsOrderDirectionEnum} [orderDirection]
|
|
573
650
|
* @param {*} [options] Override http request option.
|
|
574
651
|
* @throws {RequiredError}
|
|
575
652
|
*/
|
|
576
|
-
listWorkflows(startingAfter, endingBefore, limit, expand, options) {
|
|
653
|
+
listWorkflows(startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options) {
|
|
577
654
|
var _a, _b, _c;
|
|
578
655
|
return __awaiter(this, void 0, void 0, function* () {
|
|
579
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkflows(startingAfter, endingBefore, limit, expand, options);
|
|
656
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkflows(startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options);
|
|
580
657
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
581
658
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['WorkflowsApi.listWorkflows']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
582
659
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -661,6 +738,17 @@ exports.WorkflowsApiFp = WorkflowsApiFp;
|
|
|
661
738
|
const WorkflowsApiFactory = function (configuration, basePath, axios) {
|
|
662
739
|
const localVarFp = (0, exports.WorkflowsApiFp)(configuration);
|
|
663
740
|
return {
|
|
741
|
+
/**
|
|
742
|
+
*
|
|
743
|
+
* @summary Catch hook
|
|
744
|
+
* @param {string} hookId The trigger\'s hook id used for third party webhooks
|
|
745
|
+
* @param {CatchHookRequest} [catchHookRequest]
|
|
746
|
+
* @param {*} [options] Override http request option.
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
*/
|
|
749
|
+
catchHook(hookId, catchHookRequest, options) {
|
|
750
|
+
return localVarFp.catchHook(hookId, catchHookRequest, options).then((request) => request(axios, basePath));
|
|
751
|
+
},
|
|
664
752
|
/**
|
|
665
753
|
*
|
|
666
754
|
* @summary Clone workflow
|
|
@@ -737,11 +825,16 @@ const WorkflowsApiFactory = function (configuration, basePath, axios) {
|
|
|
737
825
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
738
826
|
* @param {number} [limit] Number of items to return (max 100)
|
|
739
827
|
* @param {Array<string>} [expand] Expand related objects
|
|
828
|
+
* @param {string} [userKey] Unique user identifier
|
|
829
|
+
* @param {boolean} [isTemplate] Filter workflows by is_template value
|
|
830
|
+
* @param {boolean} [on] Filter workflows by on value
|
|
831
|
+
* @param {string} [orderBy] Field to order results by
|
|
832
|
+
* @param {ListWorkflowsOrderDirectionEnum} [orderDirection]
|
|
740
833
|
* @param {*} [options] Override http request option.
|
|
741
834
|
* @throws {RequiredError}
|
|
742
835
|
*/
|
|
743
|
-
listWorkflows(startingAfter, endingBefore, limit, expand, options) {
|
|
744
|
-
return localVarFp.listWorkflows(startingAfter, endingBefore, limit, expand, options).then((request) => request(axios, basePath));
|
|
836
|
+
listWorkflows(startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options) {
|
|
837
|
+
return localVarFp.listWorkflows(startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options).then((request) => request(axios, basePath));
|
|
745
838
|
},
|
|
746
839
|
/**
|
|
747
840
|
*
|
|
@@ -798,6 +891,18 @@ exports.WorkflowsApiFactory = WorkflowsApiFactory;
|
|
|
798
891
|
* @extends {BaseAPI}
|
|
799
892
|
*/
|
|
800
893
|
class WorkflowsApi extends base_1.BaseAPI {
|
|
894
|
+
/**
|
|
895
|
+
*
|
|
896
|
+
* @summary Catch hook
|
|
897
|
+
* @param {string} hookId The trigger\'s hook id used for third party webhooks
|
|
898
|
+
* @param {CatchHookRequest} [catchHookRequest]
|
|
899
|
+
* @param {*} [options] Override http request option.
|
|
900
|
+
* @throws {RequiredError}
|
|
901
|
+
* @memberof WorkflowsApi
|
|
902
|
+
*/
|
|
903
|
+
catchHook(hookId, catchHookRequest, options) {
|
|
904
|
+
return (0, exports.WorkflowsApiFp)(this.configuration).catchHook(hookId, catchHookRequest, options).then((request) => request(this.axios, this.basePath));
|
|
905
|
+
}
|
|
801
906
|
/**
|
|
802
907
|
*
|
|
803
908
|
* @summary Clone workflow
|
|
@@ -880,12 +985,17 @@ class WorkflowsApi extends base_1.BaseAPI {
|
|
|
880
985
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
881
986
|
* @param {number} [limit] Number of items to return (max 100)
|
|
882
987
|
* @param {Array<string>} [expand] Expand related objects
|
|
988
|
+
* @param {string} [userKey] Unique user identifier
|
|
989
|
+
* @param {boolean} [isTemplate] Filter workflows by is_template value
|
|
990
|
+
* @param {boolean} [on] Filter workflows by on value
|
|
991
|
+
* @param {string} [orderBy] Field to order results by
|
|
992
|
+
* @param {ListWorkflowsOrderDirectionEnum} [orderDirection]
|
|
883
993
|
* @param {*} [options] Override http request option.
|
|
884
994
|
* @throws {RequiredError}
|
|
885
995
|
* @memberof WorkflowsApi
|
|
886
996
|
*/
|
|
887
|
-
listWorkflows(startingAfter, endingBefore, limit, expand, options) {
|
|
888
|
-
return (0, exports.WorkflowsApiFp)(this.configuration).listWorkflows(startingAfter, endingBefore, limit, expand, options).then((request) => request(this.axios, this.basePath));
|
|
997
|
+
listWorkflows(startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options) {
|
|
998
|
+
return (0, exports.WorkflowsApiFp)(this.configuration).listWorkflows(startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options).then((request) => request(this.axios, this.basePath));
|
|
889
999
|
}
|
|
890
1000
|
/**
|
|
891
1001
|
*
|
|
@@ -938,3 +1048,10 @@ class WorkflowsApi extends base_1.BaseAPI {
|
|
|
938
1048
|
}
|
|
939
1049
|
}
|
|
940
1050
|
exports.WorkflowsApi = WorkflowsApi;
|
|
1051
|
+
/**
|
|
1052
|
+
* @export
|
|
1053
|
+
*/
|
|
1054
|
+
exports.ListWorkflowsOrderDirectionEnum = {
|
|
1055
|
+
Asc: 'asc',
|
|
1056
|
+
Desc: 'desc'
|
|
1057
|
+
};
|
package/dist/common.d.ts
CHANGED
|
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|