@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
|
@@ -44,10 +44,11 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
44
44
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
45
45
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
46
46
|
* @param {number} [limit] Number of items to return (max 100)
|
|
47
|
+
* @param {string} [search] Search users by key
|
|
47
48
|
* @param {*} [options] Override http request option.
|
|
48
49
|
* @throws {RequiredError}
|
|
49
50
|
*/
|
|
50
|
-
listUsers: (startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
|
+
listUsers: (startingAfter?: string, endingBefore?: string, limit?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
52
|
/**
|
|
52
53
|
*
|
|
53
54
|
* @summary Retrieve user
|
|
@@ -93,10 +94,11 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
93
94
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
94
95
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
95
96
|
* @param {number} [limit] Number of items to return (max 100)
|
|
97
|
+
* @param {string} [search] Search users by key
|
|
96
98
|
* @param {*} [options] Override http request option.
|
|
97
99
|
* @throws {RequiredError}
|
|
98
100
|
*/
|
|
99
|
-
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsers200Response>>;
|
|
101
|
+
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsers200Response>>;
|
|
100
102
|
/**
|
|
101
103
|
*
|
|
102
104
|
* @summary Retrieve user
|
|
@@ -142,10 +144,11 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
142
144
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
143
145
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
144
146
|
* @param {number} [limit] Number of items to return (max 100)
|
|
147
|
+
* @param {string} [search] Search users by key
|
|
145
148
|
* @param {*} [options] Override http request option.
|
|
146
149
|
* @throws {RequiredError}
|
|
147
150
|
*/
|
|
148
|
-
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, options?: any): AxiosPromise<ListUsers200Response>;
|
|
151
|
+
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, search?: string, options?: any): AxiosPromise<ListUsers200Response>;
|
|
149
152
|
/**
|
|
150
153
|
*
|
|
151
154
|
* @summary Retrieve user
|
|
@@ -194,11 +197,12 @@ export interface UsersApiInterface {
|
|
|
194
197
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
195
198
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
196
199
|
* @param {number} [limit] Number of items to return (max 100)
|
|
200
|
+
* @param {string} [search] Search users by key
|
|
197
201
|
* @param {*} [options] Override http request option.
|
|
198
202
|
* @throws {RequiredError}
|
|
199
203
|
* @memberof UsersApiInterface
|
|
200
204
|
*/
|
|
201
|
-
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ListUsers200Response>;
|
|
205
|
+
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListUsers200Response>;
|
|
202
206
|
/**
|
|
203
207
|
*
|
|
204
208
|
* @summary Retrieve user
|
|
@@ -234,7 +238,7 @@ export declare class UsersApi extends BaseAPI implements UsersApiInterface {
|
|
|
234
238
|
* @throws {RequiredError}
|
|
235
239
|
* @memberof UsersApi
|
|
236
240
|
*/
|
|
237
|
-
createUserToken(createUserTokenRequest?: CreateUserTokenRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateUserToken200Response, any>>;
|
|
241
|
+
createUserToken(createUserTokenRequest?: CreateUserTokenRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateUserToken200Response, any, {}>>;
|
|
238
242
|
/**
|
|
239
243
|
*
|
|
240
244
|
* @summary Delete user
|
|
@@ -243,18 +247,19 @@ export declare class UsersApi extends BaseAPI implements UsersApiInterface {
|
|
|
243
247
|
* @throws {RequiredError}
|
|
244
248
|
* @memberof UsersApi
|
|
245
249
|
*/
|
|
246
|
-
deleteUser(key: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200ResponseCollectionInner, any>>;
|
|
250
|
+
deleteUser(key: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200ResponseCollectionInner, any, {}>>;
|
|
247
251
|
/**
|
|
248
252
|
*
|
|
249
253
|
* @summary List users
|
|
250
254
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
251
255
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
252
256
|
* @param {number} [limit] Number of items to return (max 100)
|
|
257
|
+
* @param {string} [search] Search users by key
|
|
253
258
|
* @param {*} [options] Override http request option.
|
|
254
259
|
* @throws {RequiredError}
|
|
255
260
|
* @memberof UsersApi
|
|
256
261
|
*/
|
|
257
|
-
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200Response, any>>;
|
|
262
|
+
listUsers(startingAfter?: string, endingBefore?: string, limit?: number, search?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200Response, any, {}>>;
|
|
258
263
|
/**
|
|
259
264
|
*
|
|
260
265
|
* @summary Retrieve user
|
|
@@ -263,7 +268,7 @@ export declare class UsersApi extends BaseAPI implements UsersApiInterface {
|
|
|
263
268
|
* @throws {RequiredError}
|
|
264
269
|
* @memberof UsersApi
|
|
265
270
|
*/
|
|
266
|
-
retrieveUser(key: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200ResponseCollectionInner, any>>;
|
|
271
|
+
retrieveUser(key: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200ResponseCollectionInner, any, {}>>;
|
|
267
272
|
/**
|
|
268
273
|
*
|
|
269
274
|
* @summary Upsert user
|
|
@@ -273,5 +278,5 @@ export declare class UsersApi extends BaseAPI implements UsersApiInterface {
|
|
|
273
278
|
* @throws {RequiredError}
|
|
274
279
|
* @memberof UsersApi
|
|
275
280
|
*/
|
|
276
|
-
upsertUser(key: string, upsertUserRequest?: UpsertUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200ResponseCollectionInner, any>>;
|
|
281
|
+
upsertUser(key: string, upsertUserRequest?: UpsertUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsers200ResponseCollectionInner, any, {}>>;
|
|
277
282
|
}
|
|
@@ -101,10 +101,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
101
101
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
102
102
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
103
103
|
* @param {number} [limit] Number of items to return (max 100)
|
|
104
|
+
* @param {string} [search] Search users by key
|
|
104
105
|
* @param {*} [options] Override http request option.
|
|
105
106
|
* @throws {RequiredError}
|
|
106
107
|
*/
|
|
107
|
-
listUsers: (startingAfter, endingBefore, limit, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
listUsers: (startingAfter, endingBefore, limit, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
108
109
|
const localVarPath = `/api/v1/users`;
|
|
109
110
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
111
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -127,6 +128,9 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
127
128
|
if (limit !== undefined) {
|
|
128
129
|
localVarQueryParameter['limit'] = limit;
|
|
129
130
|
}
|
|
131
|
+
if (search !== undefined) {
|
|
132
|
+
localVarQueryParameter['search'] = search;
|
|
133
|
+
}
|
|
130
134
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
131
135
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
132
136
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -249,13 +253,14 @@ export const UsersApiFp = function (configuration) {
|
|
|
249
253
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
250
254
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
251
255
|
* @param {number} [limit] Number of items to return (max 100)
|
|
256
|
+
* @param {string} [search] Search users by key
|
|
252
257
|
* @param {*} [options] Override http request option.
|
|
253
258
|
* @throws {RequiredError}
|
|
254
259
|
*/
|
|
255
|
-
listUsers(startingAfter, endingBefore, limit, options) {
|
|
260
|
+
listUsers(startingAfter, endingBefore, limit, search, options) {
|
|
256
261
|
var _a, _b, _c;
|
|
257
262
|
return __awaiter(this, void 0, void 0, function* () {
|
|
258
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(startingAfter, endingBefore, limit, options);
|
|
263
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(startingAfter, endingBefore, limit, search, options);
|
|
259
264
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
260
265
|
const operationBasePath = (_c = (_b = operationServerMap['UsersApi.listUsers']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
261
266
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -329,11 +334,12 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
329
334
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
330
335
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
331
336
|
* @param {number} [limit] Number of items to return (max 100)
|
|
337
|
+
* @param {string} [search] Search users by key
|
|
332
338
|
* @param {*} [options] Override http request option.
|
|
333
339
|
* @throws {RequiredError}
|
|
334
340
|
*/
|
|
335
|
-
listUsers(startingAfter, endingBefore, limit, options) {
|
|
336
|
-
return localVarFp.listUsers(startingAfter, endingBefore, limit, options).then((request) => request(axios, basePath));
|
|
341
|
+
listUsers(startingAfter, endingBefore, limit, search, options) {
|
|
342
|
+
return localVarFp.listUsers(startingAfter, endingBefore, limit, search, options).then((request) => request(axios, basePath));
|
|
337
343
|
},
|
|
338
344
|
/**
|
|
339
345
|
*
|
|
@@ -393,12 +399,13 @@ export class UsersApi extends BaseAPI {
|
|
|
393
399
|
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
394
400
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
395
401
|
* @param {number} [limit] Number of items to return (max 100)
|
|
402
|
+
* @param {string} [search] Search users by key
|
|
396
403
|
* @param {*} [options] Override http request option.
|
|
397
404
|
* @throws {RequiredError}
|
|
398
405
|
* @memberof UsersApi
|
|
399
406
|
*/
|
|
400
|
-
listUsers(startingAfter, endingBefore, limit, options) {
|
|
401
|
-
return UsersApiFp(this.configuration).listUsers(startingAfter, endingBefore, limit, options).then((request) => request(this.axios, this.basePath));
|
|
407
|
+
listUsers(startingAfter, endingBefore, limit, search, options) {
|
|
408
|
+
return UsersApiFp(this.configuration).listUsers(startingAfter, endingBefore, limit, search, options).then((request) => request(this.axios, this.basePath));
|
|
402
409
|
}
|
|
403
410
|
/**
|
|
404
411
|
*
|
|
@@ -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];
|
|
@@ -32,6 +32,41 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
|
32
32
|
*/
|
|
33
33
|
export const WorkflowsApiAxiosParamCreator = function (configuration) {
|
|
34
34
|
return {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @summary Catch hook
|
|
38
|
+
* @param {string} hookId The trigger\'s hook id used for third party webhooks
|
|
39
|
+
* @param {CatchHookRequest} [catchHookRequest]
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
catchHook: (hookId, catchHookRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
// verify required parameter 'hookId' is not null or undefined
|
|
45
|
+
assertParamExists('catchHook', 'hookId', hookId);
|
|
46
|
+
const localVarPath = `/api/v1/hooks/{hook_id}/catch`
|
|
47
|
+
.replace(`{${"hook_id"}}`, encodeURIComponent(String(hookId)));
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
55
|
+
const localVarHeaderParameter = {};
|
|
56
|
+
const localVarQueryParameter = {};
|
|
57
|
+
// authentication bearer required
|
|
58
|
+
// http bearer authentication required
|
|
59
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
60
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
61
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
62
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
64
|
+
localVarRequestOptions.data = serializeDataIfNeeded(catchHookRequest, localVarRequestOptions, configuration);
|
|
65
|
+
return {
|
|
66
|
+
url: toPathString(localVarUrlObj),
|
|
67
|
+
options: localVarRequestOptions,
|
|
68
|
+
};
|
|
69
|
+
}),
|
|
35
70
|
/**
|
|
36
71
|
*
|
|
37
72
|
* @summary Clone workflow
|
|
@@ -263,10 +298,15 @@ export const WorkflowsApiAxiosParamCreator = function (configuration) {
|
|
|
263
298
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
264
299
|
* @param {number} [limit] Number of items to return (max 100)
|
|
265
300
|
* @param {Array<string>} [expand] Expand related objects
|
|
301
|
+
* @param {string} [userKey] Unique user identifier
|
|
302
|
+
* @param {boolean} [isTemplate] Filter workflows by is_template value
|
|
303
|
+
* @param {boolean} [on] Filter workflows by on value
|
|
304
|
+
* @param {string} [orderBy] Field to order results by
|
|
305
|
+
* @param {ListWorkflowsOrderDirectionEnum} [orderDirection]
|
|
266
306
|
* @param {*} [options] Override http request option.
|
|
267
307
|
* @throws {RequiredError}
|
|
268
308
|
*/
|
|
269
|
-
listWorkflows: (startingAfter, endingBefore, limit, expand, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
309
|
+
listWorkflows: (startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
270
310
|
const localVarPath = `/api/v1/workflows`;
|
|
271
311
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
272
312
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -292,6 +332,21 @@ export const WorkflowsApiAxiosParamCreator = function (configuration) {
|
|
|
292
332
|
if (expand) {
|
|
293
333
|
localVarQueryParameter['expand'] = expand;
|
|
294
334
|
}
|
|
335
|
+
if (userKey !== undefined) {
|
|
336
|
+
localVarQueryParameter['user_key'] = userKey;
|
|
337
|
+
}
|
|
338
|
+
if (isTemplate !== undefined) {
|
|
339
|
+
localVarQueryParameter['is_template'] = isTemplate;
|
|
340
|
+
}
|
|
341
|
+
if (on !== undefined) {
|
|
342
|
+
localVarQueryParameter['on'] = on;
|
|
343
|
+
}
|
|
344
|
+
if (orderBy !== undefined) {
|
|
345
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
346
|
+
}
|
|
347
|
+
if (orderDirection !== undefined) {
|
|
348
|
+
localVarQueryParameter['order_direction'] = orderDirection;
|
|
349
|
+
}
|
|
295
350
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
296
351
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
297
352
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -454,6 +509,23 @@ export const WorkflowsApiAxiosParamCreator = function (configuration) {
|
|
|
454
509
|
export const WorkflowsApiFp = function (configuration) {
|
|
455
510
|
const localVarAxiosParamCreator = WorkflowsApiAxiosParamCreator(configuration);
|
|
456
511
|
return {
|
|
512
|
+
/**
|
|
513
|
+
*
|
|
514
|
+
* @summary Catch hook
|
|
515
|
+
* @param {string} hookId The trigger\'s hook id used for third party webhooks
|
|
516
|
+
* @param {CatchHookRequest} [catchHookRequest]
|
|
517
|
+
* @param {*} [options] Override http request option.
|
|
518
|
+
* @throws {RequiredError}
|
|
519
|
+
*/
|
|
520
|
+
catchHook(hookId, catchHookRequest, options) {
|
|
521
|
+
var _a, _b, _c;
|
|
522
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
523
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.catchHook(hookId, catchHookRequest, options);
|
|
524
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
525
|
+
const operationBasePath = (_c = (_b = operationServerMap['WorkflowsApi.catchHook']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
526
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
527
|
+
});
|
|
528
|
+
},
|
|
457
529
|
/**
|
|
458
530
|
*
|
|
459
531
|
* @summary Clone workflow
|
|
@@ -566,13 +638,18 @@ export const WorkflowsApiFp = function (configuration) {
|
|
|
566
638
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
567
639
|
* @param {number} [limit] Number of items to return (max 100)
|
|
568
640
|
* @param {Array<string>} [expand] Expand related objects
|
|
641
|
+
* @param {string} [userKey] Unique user identifier
|
|
642
|
+
* @param {boolean} [isTemplate] Filter workflows by is_template value
|
|
643
|
+
* @param {boolean} [on] Filter workflows by on value
|
|
644
|
+
* @param {string} [orderBy] Field to order results by
|
|
645
|
+
* @param {ListWorkflowsOrderDirectionEnum} [orderDirection]
|
|
569
646
|
* @param {*} [options] Override http request option.
|
|
570
647
|
* @throws {RequiredError}
|
|
571
648
|
*/
|
|
572
|
-
listWorkflows(startingAfter, endingBefore, limit, expand, options) {
|
|
649
|
+
listWorkflows(startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options) {
|
|
573
650
|
var _a, _b, _c;
|
|
574
651
|
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkflows(startingAfter, endingBefore, limit, expand, options);
|
|
652
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkflows(startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options);
|
|
576
653
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
577
654
|
const operationBasePath = (_c = (_b = operationServerMap['WorkflowsApi.listWorkflows']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
578
655
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -656,6 +733,17 @@ export const WorkflowsApiFp = function (configuration) {
|
|
|
656
733
|
export const WorkflowsApiFactory = function (configuration, basePath, axios) {
|
|
657
734
|
const localVarFp = WorkflowsApiFp(configuration);
|
|
658
735
|
return {
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @summary Catch hook
|
|
739
|
+
* @param {string} hookId The trigger\'s hook id used for third party webhooks
|
|
740
|
+
* @param {CatchHookRequest} [catchHookRequest]
|
|
741
|
+
* @param {*} [options] Override http request option.
|
|
742
|
+
* @throws {RequiredError}
|
|
743
|
+
*/
|
|
744
|
+
catchHook(hookId, catchHookRequest, options) {
|
|
745
|
+
return localVarFp.catchHook(hookId, catchHookRequest, options).then((request) => request(axios, basePath));
|
|
746
|
+
},
|
|
659
747
|
/**
|
|
660
748
|
*
|
|
661
749
|
* @summary Clone workflow
|
|
@@ -732,11 +820,16 @@ export const WorkflowsApiFactory = function (configuration, basePath, axios) {
|
|
|
732
820
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
733
821
|
* @param {number} [limit] Number of items to return (max 100)
|
|
734
822
|
* @param {Array<string>} [expand] Expand related objects
|
|
823
|
+
* @param {string} [userKey] Unique user identifier
|
|
824
|
+
* @param {boolean} [isTemplate] Filter workflows by is_template value
|
|
825
|
+
* @param {boolean} [on] Filter workflows by on value
|
|
826
|
+
* @param {string} [orderBy] Field to order results by
|
|
827
|
+
* @param {ListWorkflowsOrderDirectionEnum} [orderDirection]
|
|
735
828
|
* @param {*} [options] Override http request option.
|
|
736
829
|
* @throws {RequiredError}
|
|
737
830
|
*/
|
|
738
|
-
listWorkflows(startingAfter, endingBefore, limit, expand, options) {
|
|
739
|
-
return localVarFp.listWorkflows(startingAfter, endingBefore, limit, expand, options).then((request) => request(axios, basePath));
|
|
831
|
+
listWorkflows(startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options) {
|
|
832
|
+
return localVarFp.listWorkflows(startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options).then((request) => request(axios, basePath));
|
|
740
833
|
},
|
|
741
834
|
/**
|
|
742
835
|
*
|
|
@@ -792,6 +885,18 @@ export const WorkflowsApiFactory = function (configuration, basePath, axios) {
|
|
|
792
885
|
* @extends {BaseAPI}
|
|
793
886
|
*/
|
|
794
887
|
export class WorkflowsApi extends BaseAPI {
|
|
888
|
+
/**
|
|
889
|
+
*
|
|
890
|
+
* @summary Catch hook
|
|
891
|
+
* @param {string} hookId The trigger\'s hook id used for third party webhooks
|
|
892
|
+
* @param {CatchHookRequest} [catchHookRequest]
|
|
893
|
+
* @param {*} [options] Override http request option.
|
|
894
|
+
* @throws {RequiredError}
|
|
895
|
+
* @memberof WorkflowsApi
|
|
896
|
+
*/
|
|
897
|
+
catchHook(hookId, catchHookRequest, options) {
|
|
898
|
+
return WorkflowsApiFp(this.configuration).catchHook(hookId, catchHookRequest, options).then((request) => request(this.axios, this.basePath));
|
|
899
|
+
}
|
|
795
900
|
/**
|
|
796
901
|
*
|
|
797
902
|
* @summary Clone workflow
|
|
@@ -874,12 +979,17 @@ export class WorkflowsApi extends BaseAPI {
|
|
|
874
979
|
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
875
980
|
* @param {number} [limit] Number of items to return (max 100)
|
|
876
981
|
* @param {Array<string>} [expand] Expand related objects
|
|
982
|
+
* @param {string} [userKey] Unique user identifier
|
|
983
|
+
* @param {boolean} [isTemplate] Filter workflows by is_template value
|
|
984
|
+
* @param {boolean} [on] Filter workflows by on value
|
|
985
|
+
* @param {string} [orderBy] Field to order results by
|
|
986
|
+
* @param {ListWorkflowsOrderDirectionEnum} [orderDirection]
|
|
877
987
|
* @param {*} [options] Override http request option.
|
|
878
988
|
* @throws {RequiredError}
|
|
879
989
|
* @memberof WorkflowsApi
|
|
880
990
|
*/
|
|
881
|
-
listWorkflows(startingAfter, endingBefore, limit, expand, options) {
|
|
882
|
-
return WorkflowsApiFp(this.configuration).listWorkflows(startingAfter, endingBefore, limit, expand, options).then((request) => request(this.axios, this.basePath));
|
|
991
|
+
listWorkflows(startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options) {
|
|
992
|
+
return WorkflowsApiFp(this.configuration).listWorkflows(startingAfter, endingBefore, limit, expand, userKey, isTemplate, on, orderBy, orderDirection, options).then((request) => request(this.axios, this.basePath));
|
|
883
993
|
}
|
|
884
994
|
/**
|
|
885
995
|
*
|
|
@@ -931,3 +1041,10 @@ export class WorkflowsApi extends BaseAPI {
|
|
|
931
1041
|
return WorkflowsApiFp(this.configuration).updateWorkflow(id, updateWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
932
1042
|
}
|
|
933
1043
|
}
|
|
1044
|
+
/**
|
|
1045
|
+
* @export
|
|
1046
|
+
*/
|
|
1047
|
+
export const ListWorkflowsOrderDirectionEnum = {
|
|
1048
|
+
Asc: 'asc',
|
|
1049
|
+
Desc: 'desc'
|
|
1050
|
+
};
|
package/dist/esm/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>;
|