@embedworkflow/sdk 1.0.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 +43 -36
- package/dist/api/action-types-api.js +27 -20
- package/dist/api/actions-api.d.ts +6 -6
- package/dist/api/app-connections-api.d.ts +28 -27
- package/dist/api/app-connections-api.js +25 -25
- 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 +14 -14
- package/dist/api/payments-api.d.ts +1 -1
- package/dist/api/triggers-api.d.ts +22 -20
- package/dist/api/triggers-api.js +12 -12
- package/dist/api/users-api.d.ts +24 -18
- package/dist/api/users-api.js +14 -7
- package/dist/api/workflows-api.d.ts +114 -32
- 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 +43 -36
- package/dist/esm/api/action-types-api.js +27 -20
- package/dist/esm/api/actions-api.d.ts +6 -6
- package/dist/esm/api/app-connections-api.d.ts +28 -27
- package/dist/esm/api/app-connections-api.js +25 -25
- 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 +14 -14
- package/dist/esm/api/payments-api.d.ts +1 -1
- package/dist/esm/api/triggers-api.d.ts +22 -20
- package/dist/esm/api/triggers-api.js +12 -12
- package/dist/esm/api/users-api.d.ts +24 -18
- package/dist/esm/api/users-api.js +14 -7
- package/dist/esm/api/workflows-api.d.ts +114 -32
- 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/{api-v1-action-types-post-request-form-draft-inner.d.ts → create-action-type-request-form-draft-inner.d.ts} +18 -12
- package/dist/esm/models/{api-v1-action-types-post-request-form-draft-inner.js → create-action-type-request-form-draft-inner.js} +1 -1
- package/dist/esm/models/{api-v1-action-types-post-request-icon-draft.d.ts → create-action-type-request-icon-draft.d.ts} +5 -5
- package/dist/{models/api-v1-action-types-post-request.d.ts → esm/models/create-action-type-request.d.ts} +34 -22
- package/dist/{models/retrieve-action-type404-response.d.ts → esm/models/create-action-type422-response.d.ts} +5 -5
- package/dist/esm/models/{api-v1-app-connections-post-request.d.ts → create-app-connection-request.d.ts} +6 -6
- package/dist/esm/models/create-workflow201-response.d.ts +262 -0
- package/dist/{models/clone-workflow201-response.js → esm/models/create-workflow201-response.js} +5 -4
- package/dist/esm/models/delete-action-type200-response.d.ts +24 -0
- package/dist/esm/models/delete-action-type200-response.js +14 -0
- package/dist/esm/models/evaluate-expression-request.d.ts +32 -0
- package/dist/esm/models/evaluate-expression-request.js +14 -0
- package/dist/esm/models/evaluate-expression200-response.d.ts +24 -0
- package/dist/esm/models/evaluate-expression200-response.js +14 -0
- package/dist/esm/models/export-configuration200-response-configuration.d.ts +16 -0
- package/dist/esm/models/export-configuration200-response-configuration.js +14 -0
- package/dist/esm/models/export-configuration200-response.d.ts +25 -0
- package/dist/esm/models/export-configuration200-response.js +14 -0
- package/dist/esm/models/import-configuration201-response.d.ts +6 -0
- package/dist/esm/models/index.d.ts +19 -8
- package/dist/esm/models/index.js +19 -8
- package/dist/{models/retrieve-installed-app200-response.d.ts → esm/models/install-app201-response.d.ts} +19 -19
- package/dist/esm/models/install-app201-response.js +14 -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/{models/retrieve-workflow200-response.d.ts → esm/models/list-workflows200-response-collection-inner.d.ts} +60 -68
- package/dist/esm/models/{retrieve-workflow200-response.js → list-workflows200-response-collection-inner.js} +1 -1
- package/dist/esm/models/list-workflows200-response.d.ts +32 -0
- package/dist/esm/models/list-workflows200-response.js +14 -0
- 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/update-account-request-action-type-categories-inner-icon.d.ts +36 -0
- 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/{api-v1-action-types-post-request-form-draft-inner.d.ts → create-action-type-request-form-draft-inner.d.ts} +18 -12
- package/dist/models/{api-v1-action-types-post-request-form-draft-inner.js → create-action-type-request-form-draft-inner.js} +2 -2
- package/dist/models/{api-v1-action-types-post-request-icon-draft.d.ts → create-action-type-request-icon-draft.d.ts} +5 -5
- package/dist/{esm/models/api-v1-action-types-post-request.d.ts → models/create-action-type-request.d.ts} +34 -22
- package/dist/{esm/models/retrieve-action-type404-response.d.ts → models/create-action-type422-response.d.ts} +5 -5
- package/dist/models/{api-v1-app-connections-post-request.d.ts → create-app-connection-request.d.ts} +6 -6
- package/dist/models/create-workflow201-response.d.ts +262 -0
- package/dist/models/create-workflow201-response.js +24 -0
- package/dist/models/delete-action-type200-response.d.ts +24 -0
- package/dist/models/delete-action-type200-response.js +15 -0
- package/dist/models/evaluate-expression-request.d.ts +32 -0
- package/dist/models/evaluate-expression-request.js +15 -0
- package/dist/models/evaluate-expression200-response.d.ts +24 -0
- package/dist/models/evaluate-expression200-response.js +15 -0
- package/dist/models/export-configuration200-response-configuration.d.ts +16 -0
- package/dist/models/export-configuration200-response-configuration.js +15 -0
- package/dist/models/export-configuration200-response.d.ts +25 -0
- package/dist/models/export-configuration200-response.js +15 -0
- package/dist/models/import-configuration201-response.d.ts +6 -0
- package/dist/models/index.d.ts +19 -8
- package/dist/models/index.js +19 -8
- package/dist/{esm/models/retrieve-installed-app200-response.d.ts → models/install-app201-response.d.ts} +19 -19
- package/dist/models/install-app201-response.js +15 -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/{esm/models/retrieve-workflow200-response.d.ts → models/list-workflows200-response-collection-inner.d.ts} +60 -68
- package/dist/models/{retrieve-workflow200-response.js → list-workflows200-response-collection-inner.js} +2 -2
- package/dist/models/list-workflows200-response.d.ts +32 -0
- package/dist/models/list-workflows200-response.js +15 -0
- 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/models/update-account-request-action-type-categories-inner-icon.d.ts +36 -0
- 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/models/create-action-type-request-icon-draft.ts +42 -0
- package/models/create-action-type-request.ts +129 -0
- package/models/create-action-type422-response.ts +42 -0
- package/models/create-app-connection-request.ts +48 -0
- 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/models/create-workflow201-response.ts +266 -0
- package/models/delete-action-type200-response.ts +30 -0
- package/models/delete-workflow200-response-one-of.ts +30 -0
- 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/models/install-app201-response.ts +126 -0
- 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/models/list-installed-apps200-response-collection-inner.ts +120 -0
- 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/esm/models/clone-workflow201-response.d.ts → models/list-workflows200-response-collection-inner.ts} +76 -47
- 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/models/clone-workflow201-response.d.ts +0 -183
- /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 → create-action-type-request-icon-draft.js} +0 -0
- /package/dist/esm/models/{api-v1-app-connections-post-request.js → create-action-type-request.js} +0 -0
- /package/dist/esm/models/{retrieve-action-type404-response.js → create-action-type422-response.js} +0 -0
- /package/dist/esm/models/{retrieve-installed-app200-response.js → create-app-connection-request.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 → create-action-type-request-icon-draft.js} +0 -0
- /package/dist/models/{api-v1-app-connections-post-request.js → create-action-type-request.js} +0 -0
- /package/dist/models/{retrieve-action-type404-response.js → create-action-type422-response.js} +0 -0
- /package/dist/models/{retrieve-installed-app200-response.js → create-app-connection-request.js} +0 -0
|
@@ -0,0 +1,697 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* API V1
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { CreateActionType422Response } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { CreateActionTypeRequest } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { DeleteActionType200Response } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import { ListActionTypes200Response } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import { ListActionTypes200ResponseCollectionInner } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import { UpdateActionTypeRequest } from '../models';
|
|
36
|
+
/**
|
|
37
|
+
* ActionTypesApi - axios parameter creator
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ActionTypesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
41
|
+
return {
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @summary Create action type
|
|
45
|
+
* @param {CreateActionTypeRequest} [createActionTypeRequest]
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
createActionType: async (createActionTypeRequest?: CreateActionTypeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
const localVarPath = `/api/v1/action_types`;
|
|
51
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
53
|
+
let baseOptions;
|
|
54
|
+
if (configuration) {
|
|
55
|
+
baseOptions = configuration.baseOptions;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
59
|
+
const localVarHeaderParameter = {} as any;
|
|
60
|
+
const localVarQueryParameter = {} as any;
|
|
61
|
+
|
|
62
|
+
// authentication bearer required
|
|
63
|
+
// http bearer authentication required
|
|
64
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
69
|
+
|
|
70
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createActionTypeRequest, localVarRequestOptions, configuration)
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
url: toPathString(localVarUrlObj),
|
|
77
|
+
options: localVarRequestOptions,
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @summary Delete action type
|
|
83
|
+
* @param {string} id System-generated unique identifier
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
deleteActionType: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
88
|
+
// verify required parameter 'id' is not null or undefined
|
|
89
|
+
assertParamExists('deleteActionType', 'id', id)
|
|
90
|
+
const localVarPath = `/api/v1/action_types/{id}`
|
|
91
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
92
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
93
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
94
|
+
let baseOptions;
|
|
95
|
+
if (configuration) {
|
|
96
|
+
baseOptions = configuration.baseOptions;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
100
|
+
const localVarHeaderParameter = {} as any;
|
|
101
|
+
const localVarQueryParameter = {} as any;
|
|
102
|
+
|
|
103
|
+
// authentication bearer required
|
|
104
|
+
// http bearer authentication required
|
|
105
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
110
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
111
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
url: toPathString(localVarUrlObj),
|
|
115
|
+
options: localVarRequestOptions,
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @summary Discard action type draft
|
|
121
|
+
* @param {string} id System-generated unique identifier
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
discardActionTypeDraft: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
126
|
+
// verify required parameter 'id' is not null or undefined
|
|
127
|
+
assertParamExists('discardActionTypeDraft', 'id', id)
|
|
128
|
+
const localVarPath = `/api/v1/action_types/{id}/discard_draft`
|
|
129
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
130
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
131
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
132
|
+
let baseOptions;
|
|
133
|
+
if (configuration) {
|
|
134
|
+
baseOptions = configuration.baseOptions;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
138
|
+
const localVarHeaderParameter = {} as any;
|
|
139
|
+
const localVarQueryParameter = {} as any;
|
|
140
|
+
|
|
141
|
+
// authentication bearer required
|
|
142
|
+
// http bearer authentication required
|
|
143
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
148
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
149
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
150
|
+
|
|
151
|
+
return {
|
|
152
|
+
url: toPathString(localVarUrlObj),
|
|
153
|
+
options: localVarRequestOptions,
|
|
154
|
+
};
|
|
155
|
+
},
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @summary List action types
|
|
159
|
+
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
160
|
+
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
161
|
+
* @param {number} [limit] Number of items to return (max 100)
|
|
162
|
+
* @param {string} [category] Filter by category (matches primary or secondary)
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
*/
|
|
166
|
+
listActionTypes: async (startingAfter?: string, endingBefore?: string, limit?: number, category?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
167
|
+
const localVarPath = `/api/v1/action_types`;
|
|
168
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
169
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
170
|
+
let baseOptions;
|
|
171
|
+
if (configuration) {
|
|
172
|
+
baseOptions = configuration.baseOptions;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
176
|
+
const localVarHeaderParameter = {} as any;
|
|
177
|
+
const localVarQueryParameter = {} as any;
|
|
178
|
+
|
|
179
|
+
// authentication bearer required
|
|
180
|
+
// http bearer authentication required
|
|
181
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
182
|
+
|
|
183
|
+
if (startingAfter !== undefined) {
|
|
184
|
+
localVarQueryParameter['starting_after'] = startingAfter;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (endingBefore !== undefined) {
|
|
188
|
+
localVarQueryParameter['ending_before'] = endingBefore;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (limit !== undefined) {
|
|
192
|
+
localVarQueryParameter['limit'] = limit;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if (category !== undefined) {
|
|
196
|
+
localVarQueryParameter['category'] = category;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
202
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
203
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
204
|
+
|
|
205
|
+
return {
|
|
206
|
+
url: toPathString(localVarUrlObj),
|
|
207
|
+
options: localVarRequestOptions,
|
|
208
|
+
};
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @summary Publish action type
|
|
213
|
+
* @param {string} id System-generated unique identifier
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
publishActionType: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
218
|
+
// verify required parameter 'id' is not null or undefined
|
|
219
|
+
assertParamExists('publishActionType', 'id', id)
|
|
220
|
+
const localVarPath = `/api/v1/action_types/{id}/publish`
|
|
221
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
222
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
223
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
224
|
+
let baseOptions;
|
|
225
|
+
if (configuration) {
|
|
226
|
+
baseOptions = configuration.baseOptions;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
230
|
+
const localVarHeaderParameter = {} as any;
|
|
231
|
+
const localVarQueryParameter = {} as any;
|
|
232
|
+
|
|
233
|
+
// authentication bearer required
|
|
234
|
+
// http bearer authentication required
|
|
235
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
240
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
241
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
242
|
+
|
|
243
|
+
return {
|
|
244
|
+
url: toPathString(localVarUrlObj),
|
|
245
|
+
options: localVarRequestOptions,
|
|
246
|
+
};
|
|
247
|
+
},
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @summary Retrieve action type
|
|
251
|
+
* @param {string} id System-generated unique identifier
|
|
252
|
+
* @param {*} [options] Override http request option.
|
|
253
|
+
* @throws {RequiredError}
|
|
254
|
+
*/
|
|
255
|
+
retrieveActionType: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
256
|
+
// verify required parameter 'id' is not null or undefined
|
|
257
|
+
assertParamExists('retrieveActionType', 'id', id)
|
|
258
|
+
const localVarPath = `/api/v1/action_types/{id}`
|
|
259
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
260
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
261
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
262
|
+
let baseOptions;
|
|
263
|
+
if (configuration) {
|
|
264
|
+
baseOptions = configuration.baseOptions;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
268
|
+
const localVarHeaderParameter = {} as any;
|
|
269
|
+
const localVarQueryParameter = {} as any;
|
|
270
|
+
|
|
271
|
+
// authentication bearer required
|
|
272
|
+
// http bearer authentication required
|
|
273
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
278
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
280
|
+
|
|
281
|
+
return {
|
|
282
|
+
url: toPathString(localVarUrlObj),
|
|
283
|
+
options: localVarRequestOptions,
|
|
284
|
+
};
|
|
285
|
+
},
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @summary Update action type
|
|
289
|
+
* @param {string} id System-generated unique identifier
|
|
290
|
+
* @param {UpdateActionTypeRequest} [updateActionTypeRequest]
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
updateActionType: async (id: string, updateActionTypeRequest?: UpdateActionTypeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
295
|
+
// verify required parameter 'id' is not null or undefined
|
|
296
|
+
assertParamExists('updateActionType', 'id', id)
|
|
297
|
+
const localVarPath = `/api/v1/action_types/{id}`
|
|
298
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
299
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
300
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
301
|
+
let baseOptions;
|
|
302
|
+
if (configuration) {
|
|
303
|
+
baseOptions = configuration.baseOptions;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
307
|
+
const localVarHeaderParameter = {} as any;
|
|
308
|
+
const localVarQueryParameter = {} as any;
|
|
309
|
+
|
|
310
|
+
// authentication bearer required
|
|
311
|
+
// http bearer authentication required
|
|
312
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
317
|
+
|
|
318
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
320
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
321
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateActionTypeRequest, localVarRequestOptions, configuration)
|
|
322
|
+
|
|
323
|
+
return {
|
|
324
|
+
url: toPathString(localVarUrlObj),
|
|
325
|
+
options: localVarRequestOptions,
|
|
326
|
+
};
|
|
327
|
+
},
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* ActionTypesApi - functional programming interface
|
|
333
|
+
* @export
|
|
334
|
+
*/
|
|
335
|
+
export const ActionTypesApiFp = function(configuration?: Configuration) {
|
|
336
|
+
const localVarAxiosParamCreator = ActionTypesApiAxiosParamCreator(configuration)
|
|
337
|
+
return {
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @summary Create action type
|
|
341
|
+
* @param {CreateActionTypeRequest} [createActionTypeRequest]
|
|
342
|
+
* @param {*} [options] Override http request option.
|
|
343
|
+
* @throws {RequiredError}
|
|
344
|
+
*/
|
|
345
|
+
async createActionType(createActionTypeRequest?: CreateActionTypeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionTypes200ResponseCollectionInner>> {
|
|
346
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createActionType(createActionTypeRequest, options);
|
|
347
|
+
const index = configuration?.serverIndex ?? 0;
|
|
348
|
+
const operationBasePath = operationServerMap['ActionTypesApi.createActionType']?.[index]?.url;
|
|
349
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
350
|
+
},
|
|
351
|
+
/**
|
|
352
|
+
*
|
|
353
|
+
* @summary Delete action type
|
|
354
|
+
* @param {string} id System-generated unique identifier
|
|
355
|
+
* @param {*} [options] Override http request option.
|
|
356
|
+
* @throws {RequiredError}
|
|
357
|
+
*/
|
|
358
|
+
async deleteActionType(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteActionType200Response>> {
|
|
359
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActionType(id, options);
|
|
360
|
+
const index = configuration?.serverIndex ?? 0;
|
|
361
|
+
const operationBasePath = operationServerMap['ActionTypesApi.deleteActionType']?.[index]?.url;
|
|
362
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
363
|
+
},
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
* @summary Discard action type draft
|
|
367
|
+
* @param {string} id System-generated unique identifier
|
|
368
|
+
* @param {*} [options] Override http request option.
|
|
369
|
+
* @throws {RequiredError}
|
|
370
|
+
*/
|
|
371
|
+
async discardActionTypeDraft(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionTypes200ResponseCollectionInner>> {
|
|
372
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.discardActionTypeDraft(id, options);
|
|
373
|
+
const index = configuration?.serverIndex ?? 0;
|
|
374
|
+
const operationBasePath = operationServerMap['ActionTypesApi.discardActionTypeDraft']?.[index]?.url;
|
|
375
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
376
|
+
},
|
|
377
|
+
/**
|
|
378
|
+
*
|
|
379
|
+
* @summary List action types
|
|
380
|
+
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
381
|
+
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
382
|
+
* @param {number} [limit] Number of items to return (max 100)
|
|
383
|
+
* @param {string} [category] Filter by category (matches primary or secondary)
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
*/
|
|
387
|
+
async listActionTypes(startingAfter?: string, endingBefore?: string, limit?: number, category?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionTypes200Response>> {
|
|
388
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listActionTypes(startingAfter, endingBefore, limit, category, options);
|
|
389
|
+
const index = configuration?.serverIndex ?? 0;
|
|
390
|
+
const operationBasePath = operationServerMap['ActionTypesApi.listActionTypes']?.[index]?.url;
|
|
391
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
392
|
+
},
|
|
393
|
+
/**
|
|
394
|
+
*
|
|
395
|
+
* @summary Publish action type
|
|
396
|
+
* @param {string} id System-generated unique identifier
|
|
397
|
+
* @param {*} [options] Override http request option.
|
|
398
|
+
* @throws {RequiredError}
|
|
399
|
+
*/
|
|
400
|
+
async publishActionType(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionTypes200ResponseCollectionInner>> {
|
|
401
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.publishActionType(id, options);
|
|
402
|
+
const index = configuration?.serverIndex ?? 0;
|
|
403
|
+
const operationBasePath = operationServerMap['ActionTypesApi.publishActionType']?.[index]?.url;
|
|
404
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
405
|
+
},
|
|
406
|
+
/**
|
|
407
|
+
*
|
|
408
|
+
* @summary Retrieve action type
|
|
409
|
+
* @param {string} id System-generated unique identifier
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
async retrieveActionType(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionTypes200ResponseCollectionInner>> {
|
|
414
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveActionType(id, options);
|
|
415
|
+
const index = configuration?.serverIndex ?? 0;
|
|
416
|
+
const operationBasePath = operationServerMap['ActionTypesApi.retrieveActionType']?.[index]?.url;
|
|
417
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
418
|
+
},
|
|
419
|
+
/**
|
|
420
|
+
*
|
|
421
|
+
* @summary Update action type
|
|
422
|
+
* @param {string} id System-generated unique identifier
|
|
423
|
+
* @param {UpdateActionTypeRequest} [updateActionTypeRequest]
|
|
424
|
+
* @param {*} [options] Override http request option.
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
*/
|
|
427
|
+
async updateActionType(id: string, updateActionTypeRequest?: UpdateActionTypeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionTypes200ResponseCollectionInner>> {
|
|
428
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateActionType(id, updateActionTypeRequest, options);
|
|
429
|
+
const index = configuration?.serverIndex ?? 0;
|
|
430
|
+
const operationBasePath = operationServerMap['ActionTypesApi.updateActionType']?.[index]?.url;
|
|
431
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
432
|
+
},
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* ActionTypesApi - factory interface
|
|
438
|
+
* @export
|
|
439
|
+
*/
|
|
440
|
+
export const ActionTypesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
441
|
+
const localVarFp = ActionTypesApiFp(configuration)
|
|
442
|
+
return {
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* @summary Create action type
|
|
446
|
+
* @param {CreateActionTypeRequest} [createActionTypeRequest]
|
|
447
|
+
* @param {*} [options] Override http request option.
|
|
448
|
+
* @throws {RequiredError}
|
|
449
|
+
*/
|
|
450
|
+
createActionType(createActionTypeRequest?: CreateActionTypeRequest, options?: any): AxiosPromise<ListActionTypes200ResponseCollectionInner> {
|
|
451
|
+
return localVarFp.createActionType(createActionTypeRequest, options).then((request) => request(axios, basePath));
|
|
452
|
+
},
|
|
453
|
+
/**
|
|
454
|
+
*
|
|
455
|
+
* @summary Delete action type
|
|
456
|
+
* @param {string} id System-generated unique identifier
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
deleteActionType(id: string, options?: any): AxiosPromise<DeleteActionType200Response> {
|
|
461
|
+
return localVarFp.deleteActionType(id, options).then((request) => request(axios, basePath));
|
|
462
|
+
},
|
|
463
|
+
/**
|
|
464
|
+
*
|
|
465
|
+
* @summary Discard action type draft
|
|
466
|
+
* @param {string} id System-generated unique identifier
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
discardActionTypeDraft(id: string, options?: any): AxiosPromise<ListActionTypes200ResponseCollectionInner> {
|
|
471
|
+
return localVarFp.discardActionTypeDraft(id, options).then((request) => request(axios, basePath));
|
|
472
|
+
},
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @summary List action types
|
|
476
|
+
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
477
|
+
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
478
|
+
* @param {number} [limit] Number of items to return (max 100)
|
|
479
|
+
* @param {string} [category] Filter by category (matches primary or secondary)
|
|
480
|
+
* @param {*} [options] Override http request option.
|
|
481
|
+
* @throws {RequiredError}
|
|
482
|
+
*/
|
|
483
|
+
listActionTypes(startingAfter?: string, endingBefore?: string, limit?: number, category?: string, options?: any): AxiosPromise<ListActionTypes200Response> {
|
|
484
|
+
return localVarFp.listActionTypes(startingAfter, endingBefore, limit, category, options).then((request) => request(axios, basePath));
|
|
485
|
+
},
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @summary Publish action type
|
|
489
|
+
* @param {string} id System-generated unique identifier
|
|
490
|
+
* @param {*} [options] Override http request option.
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
*/
|
|
493
|
+
publishActionType(id: string, options?: any): AxiosPromise<ListActionTypes200ResponseCollectionInner> {
|
|
494
|
+
return localVarFp.publishActionType(id, options).then((request) => request(axios, basePath));
|
|
495
|
+
},
|
|
496
|
+
/**
|
|
497
|
+
*
|
|
498
|
+
* @summary Retrieve action type
|
|
499
|
+
* @param {string} id System-generated unique identifier
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
*/
|
|
503
|
+
retrieveActionType(id: string, options?: any): AxiosPromise<ListActionTypes200ResponseCollectionInner> {
|
|
504
|
+
return localVarFp.retrieveActionType(id, options).then((request) => request(axios, basePath));
|
|
505
|
+
},
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
* @summary Update action type
|
|
509
|
+
* @param {string} id System-generated unique identifier
|
|
510
|
+
* @param {UpdateActionTypeRequest} [updateActionTypeRequest]
|
|
511
|
+
* @param {*} [options] Override http request option.
|
|
512
|
+
* @throws {RequiredError}
|
|
513
|
+
*/
|
|
514
|
+
updateActionType(id: string, updateActionTypeRequest?: UpdateActionTypeRequest, options?: any): AxiosPromise<ListActionTypes200ResponseCollectionInner> {
|
|
515
|
+
return localVarFp.updateActionType(id, updateActionTypeRequest, options).then((request) => request(axios, basePath));
|
|
516
|
+
},
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* ActionTypesApi - interface
|
|
522
|
+
* @export
|
|
523
|
+
* @interface ActionTypesApi
|
|
524
|
+
*/
|
|
525
|
+
export interface ActionTypesApiInterface {
|
|
526
|
+
/**
|
|
527
|
+
*
|
|
528
|
+
* @summary Create action type
|
|
529
|
+
* @param {CreateActionTypeRequest} [createActionTypeRequest]
|
|
530
|
+
* @param {*} [options] Override http request option.
|
|
531
|
+
* @throws {RequiredError}
|
|
532
|
+
* @memberof ActionTypesApiInterface
|
|
533
|
+
*/
|
|
534
|
+
createActionType(createActionTypeRequest?: CreateActionTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListActionTypes200ResponseCollectionInner>;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @summary Delete action type
|
|
539
|
+
* @param {string} id System-generated unique identifier
|
|
540
|
+
* @param {*} [options] Override http request option.
|
|
541
|
+
* @throws {RequiredError}
|
|
542
|
+
* @memberof ActionTypesApiInterface
|
|
543
|
+
*/
|
|
544
|
+
deleteActionType(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DeleteActionType200Response>;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
*
|
|
548
|
+
* @summary Discard action type draft
|
|
549
|
+
* @param {string} id System-generated unique identifier
|
|
550
|
+
* @param {*} [options] Override http request option.
|
|
551
|
+
* @throws {RequiredError}
|
|
552
|
+
* @memberof ActionTypesApiInterface
|
|
553
|
+
*/
|
|
554
|
+
discardActionTypeDraft(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ListActionTypes200ResponseCollectionInner>;
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
*
|
|
558
|
+
* @summary List action types
|
|
559
|
+
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
560
|
+
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
561
|
+
* @param {number} [limit] Number of items to return (max 100)
|
|
562
|
+
* @param {string} [category] Filter by category (matches primary or secondary)
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
* @memberof ActionTypesApiInterface
|
|
566
|
+
*/
|
|
567
|
+
listActionTypes(startingAfter?: string, endingBefore?: string, limit?: number, category?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListActionTypes200Response>;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @summary Publish action type
|
|
572
|
+
* @param {string} id System-generated unique identifier
|
|
573
|
+
* @param {*} [options] Override http request option.
|
|
574
|
+
* @throws {RequiredError}
|
|
575
|
+
* @memberof ActionTypesApiInterface
|
|
576
|
+
*/
|
|
577
|
+
publishActionType(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ListActionTypes200ResponseCollectionInner>;
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
*
|
|
581
|
+
* @summary Retrieve action type
|
|
582
|
+
* @param {string} id System-generated unique identifier
|
|
583
|
+
* @param {*} [options] Override http request option.
|
|
584
|
+
* @throws {RequiredError}
|
|
585
|
+
* @memberof ActionTypesApiInterface
|
|
586
|
+
*/
|
|
587
|
+
retrieveActionType(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ListActionTypes200ResponseCollectionInner>;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
*
|
|
591
|
+
* @summary Update action type
|
|
592
|
+
* @param {string} id System-generated unique identifier
|
|
593
|
+
* @param {UpdateActionTypeRequest} [updateActionTypeRequest]
|
|
594
|
+
* @param {*} [options] Override http request option.
|
|
595
|
+
* @throws {RequiredError}
|
|
596
|
+
* @memberof ActionTypesApiInterface
|
|
597
|
+
*/
|
|
598
|
+
updateActionType(id: string, updateActionTypeRequest?: UpdateActionTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListActionTypes200ResponseCollectionInner>;
|
|
599
|
+
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* ActionTypesApi - object-oriented interface
|
|
604
|
+
* @export
|
|
605
|
+
* @class ActionTypesApi
|
|
606
|
+
* @extends {BaseAPI}
|
|
607
|
+
*/
|
|
608
|
+
export class ActionTypesApi extends BaseAPI implements ActionTypesApiInterface {
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @summary Create action type
|
|
612
|
+
* @param {CreateActionTypeRequest} [createActionTypeRequest]
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
* @memberof ActionTypesApi
|
|
616
|
+
*/
|
|
617
|
+
public createActionType(createActionTypeRequest?: CreateActionTypeRequest, options?: RawAxiosRequestConfig) {
|
|
618
|
+
return ActionTypesApiFp(this.configuration).createActionType(createActionTypeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
*
|
|
623
|
+
* @summary Delete action type
|
|
624
|
+
* @param {string} id System-generated unique identifier
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
* @memberof ActionTypesApi
|
|
628
|
+
*/
|
|
629
|
+
public deleteActionType(id: string, options?: RawAxiosRequestConfig) {
|
|
630
|
+
return ActionTypesApiFp(this.configuration).deleteActionType(id, options).then((request) => request(this.axios, this.basePath));
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
*
|
|
635
|
+
* @summary Discard action type draft
|
|
636
|
+
* @param {string} id System-generated unique identifier
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
* @memberof ActionTypesApi
|
|
640
|
+
*/
|
|
641
|
+
public discardActionTypeDraft(id: string, options?: RawAxiosRequestConfig) {
|
|
642
|
+
return ActionTypesApiFp(this.configuration).discardActionTypeDraft(id, options).then((request) => request(this.axios, this.basePath));
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
*
|
|
647
|
+
* @summary List action types
|
|
648
|
+
* @param {string} [startingAfter] Cursor for pagination - return results after this ID
|
|
649
|
+
* @param {string} [endingBefore] Cursor for pagination - return results before this ID
|
|
650
|
+
* @param {number} [limit] Number of items to return (max 100)
|
|
651
|
+
* @param {string} [category] Filter by category (matches primary or secondary)
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
* @memberof ActionTypesApi
|
|
655
|
+
*/
|
|
656
|
+
public listActionTypes(startingAfter?: string, endingBefore?: string, limit?: number, category?: string, options?: RawAxiosRequestConfig) {
|
|
657
|
+
return ActionTypesApiFp(this.configuration).listActionTypes(startingAfter, endingBefore, limit, category, options).then((request) => request(this.axios, this.basePath));
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
*
|
|
662
|
+
* @summary Publish action type
|
|
663
|
+
* @param {string} id System-generated unique identifier
|
|
664
|
+
* @param {*} [options] Override http request option.
|
|
665
|
+
* @throws {RequiredError}
|
|
666
|
+
* @memberof ActionTypesApi
|
|
667
|
+
*/
|
|
668
|
+
public publishActionType(id: string, options?: RawAxiosRequestConfig) {
|
|
669
|
+
return ActionTypesApiFp(this.configuration).publishActionType(id, options).then((request) => request(this.axios, this.basePath));
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
*
|
|
674
|
+
* @summary Retrieve action type
|
|
675
|
+
* @param {string} id System-generated unique identifier
|
|
676
|
+
* @param {*} [options] Override http request option.
|
|
677
|
+
* @throws {RequiredError}
|
|
678
|
+
* @memberof ActionTypesApi
|
|
679
|
+
*/
|
|
680
|
+
public retrieveActionType(id: string, options?: RawAxiosRequestConfig) {
|
|
681
|
+
return ActionTypesApiFp(this.configuration).retrieveActionType(id, options).then((request) => request(this.axios, this.basePath));
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
*
|
|
686
|
+
* @summary Update action type
|
|
687
|
+
* @param {string} id System-generated unique identifier
|
|
688
|
+
* @param {UpdateActionTypeRequest} [updateActionTypeRequest]
|
|
689
|
+
* @param {*} [options] Override http request option.
|
|
690
|
+
* @throws {RequiredError}
|
|
691
|
+
* @memberof ActionTypesApi
|
|
692
|
+
*/
|
|
693
|
+
public updateActionType(id: string, updateActionTypeRequest?: UpdateActionTypeRequest, options?: RawAxiosRequestConfig) {
|
|
694
|
+
return ActionTypesApiFp(this.configuration).updateActionType(id, updateActionTypeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
|