@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.
Files changed (218) hide show
  1. package/.github/workflows/push-tag.yaml +34 -0
  2. package/.openapi-generator/FILES +87 -0
  3. package/.openapi-generator/VERSION +1 -0
  4. package/.openapi-generator-ignore +23 -0
  5. package/README.md +2 -2
  6. package/api/accounts-api.ts +540 -0
  7. package/api/action-types-api.ts +697 -0
  8. package/api/actions-api.ts +786 -0
  9. package/api/app-connections-api.ts +556 -0
  10. package/api/available-apps-api.ts +239 -0
  11. package/api/data-fields-api.ts +404 -0
  12. package/api/events-api.ts +172 -0
  13. package/api/executions-api.ts +361 -0
  14. package/api/installed-apps-api.ts +410 -0
  15. package/api/payments-api.ts +172 -0
  16. package/api/triggers-api.ts +437 -0
  17. package/api/users-api.ts +531 -0
  18. package/api/workflows-api.ts +1302 -0
  19. package/api.ts +30 -0
  20. package/base.ts +86 -0
  21. package/common.ts +150 -0
  22. package/configuration.ts +110 -0
  23. package/dist/api/accounts-api.d.ts +124 -3
  24. package/dist/api/accounts-api.js +182 -1
  25. package/dist/api/action-types-api.d.ts +16 -11
  26. package/dist/api/action-types-api.js +14 -7
  27. package/dist/api/actions-api.d.ts +6 -6
  28. package/dist/api/app-connections-api.d.ts +5 -5
  29. package/dist/api/available-apps-api.d.ts +2 -2
  30. package/dist/api/data-fields-api.d.ts +46 -2
  31. package/dist/api/data-fields-api.js +68 -0
  32. package/dist/api/events-api.d.ts +1 -1
  33. package/dist/api/executions-api.d.ts +3 -3
  34. package/dist/api/installed-apps-api.d.ts +4 -4
  35. package/dist/api/payments-api.d.ts +1 -1
  36. package/dist/api/triggers-api.d.ts +14 -14
  37. package/dist/api/triggers-api.js +12 -12
  38. package/dist/api/users-api.d.ts +14 -9
  39. package/dist/api/users-api.js +14 -7
  40. package/dist/api/workflows-api.d.ts +96 -15
  41. package/dist/api/workflows-api.js +125 -8
  42. package/dist/common.d.ts +1 -1
  43. package/dist/esm/api/accounts-api.d.ts +124 -3
  44. package/dist/esm/api/accounts-api.js +181 -0
  45. package/dist/esm/api/action-types-api.d.ts +16 -11
  46. package/dist/esm/api/action-types-api.js +14 -7
  47. package/dist/esm/api/actions-api.d.ts +6 -6
  48. package/dist/esm/api/app-connections-api.d.ts +5 -5
  49. package/dist/esm/api/available-apps-api.d.ts +2 -2
  50. package/dist/esm/api/data-fields-api.d.ts +46 -2
  51. package/dist/esm/api/data-fields-api.js +69 -1
  52. package/dist/esm/api/events-api.d.ts +1 -1
  53. package/dist/esm/api/executions-api.d.ts +3 -3
  54. package/dist/esm/api/installed-apps-api.d.ts +4 -4
  55. package/dist/esm/api/payments-api.d.ts +1 -1
  56. package/dist/esm/api/triggers-api.d.ts +14 -14
  57. package/dist/esm/api/triggers-api.js +12 -12
  58. package/dist/esm/api/users-api.d.ts +14 -9
  59. package/dist/esm/api/users-api.js +14 -7
  60. package/dist/esm/api/workflows-api.d.ts +96 -15
  61. package/dist/esm/api/workflows-api.js +124 -7
  62. package/dist/esm/common.d.ts +1 -1
  63. package/dist/esm/models/catch-hook-request.d.ts +25 -0
  64. package/dist/esm/models/create-action-type-request-form-draft-inner.d.ts +6 -0
  65. package/dist/esm/models/create-action-type-request.d.ts +12 -0
  66. package/dist/esm/models/create-workflow201-response.d.ts +58 -11
  67. package/dist/esm/models/create-workflow201-response.js +4 -0
  68. package/dist/esm/models/evaluate-expression-request.d.ts +32 -0
  69. package/dist/esm/models/evaluate-expression200-response.d.ts +24 -0
  70. package/dist/esm/models/export-configuration200-response-configuration.d.ts +16 -0
  71. package/dist/esm/models/export-configuration200-response.d.ts +25 -0
  72. package/dist/esm/models/index.d.ts +9 -0
  73. package/dist/esm/models/index.js +9 -0
  74. package/dist/esm/models/list-action-types200-response-collection-inner.d.ts +58 -0
  75. package/dist/esm/models/list-action-types200-response-collection-inner.js +9 -0
  76. package/dist/esm/models/list-data-fields200-response-collection-inner.d.ts +18 -0
  77. package/dist/esm/models/list-triggers200-response-collection-inner.d.ts +18 -0
  78. package/dist/esm/models/list-users200-response-collection-inner.d.ts +6 -6
  79. package/dist/esm/models/list-workflows200-response-collection-inner.d.ts +29 -5
  80. package/dist/esm/models/retrieve-account-usage200-response.d.ts +60 -0
  81. package/dist/esm/models/retrieve-account-usage200-response.js +14 -0
  82. package/dist/esm/models/retrieve-account200-response.d.ts +19 -1
  83. 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
  84. package/dist/esm/models/update-account-request-action-type-categories-inner-icon.js +14 -0
  85. package/dist/esm/models/update-account-request-action-type-categories-inner.d.ts +43 -0
  86. package/dist/esm/models/update-account-request-action-type-categories-inner.js +14 -0
  87. package/dist/esm/models/update-account-request.d.ts +13 -0
  88. package/dist/esm/models/update-action-type-request.d.ts +12 -0
  89. package/dist/esm/models/update-trigger-request.d.ts +30 -0
  90. package/dist/esm/models/update-trigger-request.js +14 -0
  91. package/dist/esm/models/update-workflow-request.d.ts +7 -1
  92. package/dist/esm/models/upsert-user-request.d.ts +6 -0
  93. package/dist/models/catch-hook-request.d.ts +25 -0
  94. package/dist/models/create-action-type-request-form-draft-inner.d.ts +6 -0
  95. package/dist/models/create-action-type-request.d.ts +12 -0
  96. package/dist/models/create-workflow201-response.d.ts +58 -11
  97. package/dist/models/create-workflow201-response.js +5 -1
  98. package/dist/models/evaluate-expression-request.d.ts +32 -0
  99. package/dist/models/evaluate-expression200-response.d.ts +24 -0
  100. package/dist/models/export-configuration200-response-configuration.d.ts +16 -0
  101. package/dist/models/export-configuration200-response.d.ts +25 -0
  102. package/dist/models/index.d.ts +9 -0
  103. package/dist/models/index.js +9 -0
  104. package/dist/models/list-action-types200-response-collection-inner.d.ts +58 -0
  105. package/dist/models/list-action-types200-response-collection-inner.js +10 -1
  106. package/dist/models/list-data-fields200-response-collection-inner.d.ts +18 -0
  107. package/dist/models/list-triggers200-response-collection-inner.d.ts +18 -0
  108. package/dist/models/list-users200-response-collection-inner.d.ts +6 -6
  109. package/dist/models/list-workflows200-response-collection-inner.d.ts +29 -5
  110. package/dist/models/retrieve-account-usage200-response.d.ts +60 -0
  111. package/dist/models/retrieve-account-usage200-response.js +15 -0
  112. package/dist/models/retrieve-account200-response.d.ts +19 -1
  113. package/dist/{esm/models/retrieve-action-type404-response.d.ts → models/update-account-request-action-type-categories-inner-icon.d.ts} +12 -12
  114. package/dist/models/update-account-request-action-type-categories-inner-icon.js +15 -0
  115. package/dist/models/update-account-request-action-type-categories-inner.d.ts +43 -0
  116. package/dist/models/update-account-request-action-type-categories-inner.js +15 -0
  117. package/dist/models/update-account-request.d.ts +13 -0
  118. package/dist/models/update-action-type-request.d.ts +12 -0
  119. package/dist/models/update-trigger-request.d.ts +30 -0
  120. package/dist/models/update-trigger-request.js +15 -0
  121. package/dist/models/update-workflow-request.d.ts +7 -1
  122. package/dist/models/upsert-user-request.d.ts +6 -0
  123. package/git_push.sh +57 -0
  124. package/index.ts +111 -0
  125. package/models/catch-hook-request.ts +32 -0
  126. package/models/create-action-type-request-form-draft-inner.ts +88 -0
  127. package/{dist/models/api-v1-action-types-post-request-icon-draft.d.ts → models/create-action-type-request-icon-draft.ts} +12 -6
  128. package/{dist/models/api-v1-action-types-post-request.d.ts → models/create-action-type-request.ts} +49 -25
  129. package/{dist/models/retrieve-action-type404-response.d.ts → models/create-action-type422-response.ts} +13 -7
  130. package/{dist/esm/models/api-v1-app-connections-post-request.d.ts → models/create-app-connection-request.ts} +14 -8
  131. package/models/create-user-token-request.ts +38 -0
  132. package/models/create-user-token200-response.ts +30 -0
  133. package/models/create-workflow-request-template-draft-nodes-inner.ts +138 -0
  134. package/models/create-workflow-request-template-draft.ts +39 -0
  135. package/models/create-workflow-request.ts +75 -0
  136. package/{dist/esm/models/retrieve-workflow200-response.d.ts → models/create-workflow201-response.ts} +111 -60
  137. package/models/delete-action-type200-response.ts +30 -0
  138. package/{dist/esm/models/api-v1-action-types-post-request-form-draft-inner.js → models/delete-workflow200-response-one-of.ts} +18 -13
  139. package/models/delete-workflow200-response-one-of1.ts +30 -0
  140. package/models/delete-workflow200-response.ts +30 -0
  141. package/models/discard-workflow-draft-request.ts +36 -0
  142. package/models/evaluate-expression-request.ts +36 -0
  143. package/models/evaluate-expression200-response.ts +30 -0
  144. package/models/execute-workflow-request.ts +50 -0
  145. package/models/execute-workflow201-response.ts +126 -0
  146. package/models/export-configuration200-response-configuration.ts +23 -0
  147. package/models/export-configuration200-response.ts +33 -0
  148. package/models/import-configuration-request-schema.ts +24 -0
  149. package/models/import-configuration-request.ts +50 -0
  150. package/models/import-configuration201-response.ts +60 -0
  151. package/models/index.ts +70 -0
  152. package/models/install-app-request.ts +36 -0
  153. package/{dist/models/retrieve-installed-app200-response.d.ts → models/install-app201-response.ts} +28 -24
  154. package/models/list-action-types200-response-collection-inner.ts +325 -0
  155. package/models/list-action-types200-response-meta.ts +42 -0
  156. package/models/list-action-types200-response.ts +42 -0
  157. package/models/list-actions200-response-collection-inner.ts +150 -0
  158. package/models/list-actions200-response.ts +42 -0
  159. package/models/list-app-connections200-response-collection-inner.ts +72 -0
  160. package/models/list-app-connections200-response.ts +42 -0
  161. package/models/list-available-apps200-response-collection-inner.ts +72 -0
  162. package/models/list-available-apps200-response.ts +42 -0
  163. package/{dist/esm/models/clone-workflow201-response.js → models/list-data-fields-type-parameter.ts} +11 -5
  164. package/models/list-data-fields200-response-collection-inner.ts +108 -0
  165. package/models/list-data-fields200-response.ts +42 -0
  166. package/models/list-events200-response-collection-inner.ts +84 -0
  167. package/models/list-events200-response.ts +42 -0
  168. package/{dist/esm/models/retrieve-installed-app200-response.d.ts → models/list-installed-apps200-response-collection-inner.ts} +26 -28
  169. package/models/list-installed-apps200-response.ts +42 -0
  170. package/models/list-triggers200-response-collection-inner.ts +126 -0
  171. package/models/list-triggers200-response.ts +42 -0
  172. package/models/list-users200-response-collection-inner.ts +90 -0
  173. package/models/list-users200-response.ts +42 -0
  174. package/models/list-workflow-executions200-response.ts +42 -0
  175. package/models/list-workflow-versions200-response-collection-inner.ts +66 -0
  176. package/models/list-workflow-versions200-response.ts +42 -0
  177. package/{dist/models/retrieve-workflow200-response.d.ts → models/list-workflows200-response-collection-inner.ts} +76 -79
  178. package/models/list-workflows200-response.ts +42 -0
  179. package/models/publish-workflow-request.ts +30 -0
  180. package/models/retrieve-account-usage200-response.ts +66 -0
  181. package/models/retrieve-account200-response.ts +114 -0
  182. package/models/retrieve-available-app200-response.ts +78 -0
  183. package/models/retrieve-execution200-response.ts +138 -0
  184. package/models/retry-action-request.ts +38 -0
  185. package/models/stop-executions-request.ts +38 -0
  186. package/models/trigger-workflow-request.ts +54 -0
  187. package/models/update-account-request-action-type-categories-inner-icon.ts +42 -0
  188. package/models/update-account-request-action-type-categories-inner.ts +51 -0
  189. package/models/update-account-request-user-data-schema-inner.ts +54 -0
  190. package/models/update-account-request.ts +96 -0
  191. package/models/update-action-type-request.ts +48 -0
  192. package/models/update-installed-app-request.ts +30 -0
  193. package/models/update-trigger-request.ts +36 -0
  194. package/models/update-workflow-request.ts +93 -0
  195. package/models/upsert-user-request.ts +54 -0
  196. package/package.json +4 -6
  197. package/tsconfig.esm.json +7 -0
  198. package/tsconfig.json +18 -0
  199. package/dist/esm/models/api-v1-action-types-post-request-form-draft-inner.d.ts +0 -75
  200. package/dist/esm/models/api-v1-action-types-post-request.d.ts +0 -105
  201. package/dist/esm/models/clone-workflow201-response.d.ts +0 -183
  202. package/dist/esm/models/retrieve-workflow200-response.js +0 -17
  203. package/dist/models/api-v1-action-types-post-request-form-draft-inner.d.ts +0 -75
  204. package/dist/models/api-v1-action-types-post-request-form-draft-inner.js +0 -28
  205. package/dist/models/api-v1-app-connections-post-request.d.ts +0 -42
  206. package/dist/models/clone-workflow201-response.d.ts +0 -183
  207. package/dist/models/clone-workflow201-response.js +0 -20
  208. package/dist/models/retrieve-workflow200-response.js +0 -20
  209. /package/dist/esm/models/{api-v1-action-types-post-request-icon-draft.js → catch-hook-request.js} +0 -0
  210. /package/dist/esm/models/{api-v1-action-types-post-request.js → evaluate-expression-request.js} +0 -0
  211. /package/dist/esm/models/{api-v1-app-connections-post-request.js → evaluate-expression200-response.js} +0 -0
  212. /package/dist/esm/models/{retrieve-action-type404-response.js → export-configuration200-response-configuration.js} +0 -0
  213. /package/dist/esm/models/{retrieve-installed-app200-response.js → export-configuration200-response.js} +0 -0
  214. /package/dist/models/{api-v1-action-types-post-request-icon-draft.js → catch-hook-request.js} +0 -0
  215. /package/dist/models/{api-v1-action-types-post-request.js → evaluate-expression-request.js} +0 -0
  216. /package/dist/models/{api-v1-app-connections-post-request.js → evaluate-expression200-response.js} +0 -0
  217. /package/dist/models/{retrieve-action-type404-response.js → export-configuration200-response-configuration.js} +0 -0
  218. /package/dist/models/{retrieve-installed-app200-response.js → export-configuration200-response.js} +0 -0
@@ -0,0 +1,239 @@
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 { ListAvailableApps200Response } from '../models';
26
+ // @ts-ignore
27
+ import { RetrieveAvailableApp200Response } from '../models';
28
+ /**
29
+ * AvailableAppsApi - axios parameter creator
30
+ * @export
31
+ */
32
+ export const AvailableAppsApiAxiosParamCreator = function (configuration?: Configuration) {
33
+ return {
34
+ /**
35
+ *
36
+ * @summary List available apps
37
+ * @param {string} [excludeInstalled] Exclude already installed apps
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ listAvailableApps: async (excludeInstalled?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42
+ const localVarPath = `/api/v1/available_apps`;
43
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45
+ let baseOptions;
46
+ if (configuration) {
47
+ baseOptions = configuration.baseOptions;
48
+ }
49
+
50
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
51
+ const localVarHeaderParameter = {} as any;
52
+ const localVarQueryParameter = {} as any;
53
+
54
+ // authentication bearer required
55
+ // http bearer authentication required
56
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
57
+
58
+ if (excludeInstalled !== undefined) {
59
+ localVarQueryParameter['exclude_installed'] = excludeInstalled;
60
+ }
61
+
62
+
63
+
64
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
65
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
67
+
68
+ return {
69
+ url: toPathString(localVarUrlObj),
70
+ options: localVarRequestOptions,
71
+ };
72
+ },
73
+ /**
74
+ *
75
+ * @summary Retrieve available app
76
+ * @param {string} appIdentifier App indentifier
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ retrieveAvailableApp: async (appIdentifier: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
81
+ // verify required parameter 'appIdentifier' is not null or undefined
82
+ assertParamExists('retrieveAvailableApp', 'appIdentifier', appIdentifier)
83
+ const localVarPath = `/api/v1/available_apps/{app_identifier}`
84
+ .replace(`{${"app_identifier"}}`, encodeURIComponent(String(appIdentifier)));
85
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
86
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
87
+ let baseOptions;
88
+ if (configuration) {
89
+ baseOptions = configuration.baseOptions;
90
+ }
91
+
92
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
93
+ const localVarHeaderParameter = {} as any;
94
+ const localVarQueryParameter = {} as any;
95
+
96
+ // authentication bearer required
97
+ // http bearer authentication required
98
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
99
+
100
+
101
+
102
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
104
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
105
+
106
+ return {
107
+ url: toPathString(localVarUrlObj),
108
+ options: localVarRequestOptions,
109
+ };
110
+ },
111
+ }
112
+ };
113
+
114
+ /**
115
+ * AvailableAppsApi - functional programming interface
116
+ * @export
117
+ */
118
+ export const AvailableAppsApiFp = function(configuration?: Configuration) {
119
+ const localVarAxiosParamCreator = AvailableAppsApiAxiosParamCreator(configuration)
120
+ return {
121
+ /**
122
+ *
123
+ * @summary List available apps
124
+ * @param {string} [excludeInstalled] Exclude already installed apps
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ async listAvailableApps(excludeInstalled?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAvailableApps200Response>> {
129
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableApps(excludeInstalled, options);
130
+ const index = configuration?.serverIndex ?? 0;
131
+ const operationBasePath = operationServerMap['AvailableAppsApi.listAvailableApps']?.[index]?.url;
132
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
133
+ },
134
+ /**
135
+ *
136
+ * @summary Retrieve available app
137
+ * @param {string} appIdentifier App indentifier
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ async retrieveAvailableApp(appIdentifier: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RetrieveAvailableApp200Response>> {
142
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveAvailableApp(appIdentifier, options);
143
+ const index = configuration?.serverIndex ?? 0;
144
+ const operationBasePath = operationServerMap['AvailableAppsApi.retrieveAvailableApp']?.[index]?.url;
145
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
146
+ },
147
+ }
148
+ };
149
+
150
+ /**
151
+ * AvailableAppsApi - factory interface
152
+ * @export
153
+ */
154
+ export const AvailableAppsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
155
+ const localVarFp = AvailableAppsApiFp(configuration)
156
+ return {
157
+ /**
158
+ *
159
+ * @summary List available apps
160
+ * @param {string} [excludeInstalled] Exclude already installed apps
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ listAvailableApps(excludeInstalled?: string, options?: any): AxiosPromise<ListAvailableApps200Response> {
165
+ return localVarFp.listAvailableApps(excludeInstalled, options).then((request) => request(axios, basePath));
166
+ },
167
+ /**
168
+ *
169
+ * @summary Retrieve available app
170
+ * @param {string} appIdentifier App indentifier
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ retrieveAvailableApp(appIdentifier: string, options?: any): AxiosPromise<RetrieveAvailableApp200Response> {
175
+ return localVarFp.retrieveAvailableApp(appIdentifier, options).then((request) => request(axios, basePath));
176
+ },
177
+ };
178
+ };
179
+
180
+ /**
181
+ * AvailableAppsApi - interface
182
+ * @export
183
+ * @interface AvailableAppsApi
184
+ */
185
+ export interface AvailableAppsApiInterface {
186
+ /**
187
+ *
188
+ * @summary List available apps
189
+ * @param {string} [excludeInstalled] Exclude already installed apps
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ * @memberof AvailableAppsApiInterface
193
+ */
194
+ listAvailableApps(excludeInstalled?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListAvailableApps200Response>;
195
+
196
+ /**
197
+ *
198
+ * @summary Retrieve available app
199
+ * @param {string} appIdentifier App indentifier
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ * @memberof AvailableAppsApiInterface
203
+ */
204
+ retrieveAvailableApp(appIdentifier: string, options?: RawAxiosRequestConfig): AxiosPromise<RetrieveAvailableApp200Response>;
205
+
206
+ }
207
+
208
+ /**
209
+ * AvailableAppsApi - object-oriented interface
210
+ * @export
211
+ * @class AvailableAppsApi
212
+ * @extends {BaseAPI}
213
+ */
214
+ export class AvailableAppsApi extends BaseAPI implements AvailableAppsApiInterface {
215
+ /**
216
+ *
217
+ * @summary List available apps
218
+ * @param {string} [excludeInstalled] Exclude already installed apps
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ * @memberof AvailableAppsApi
222
+ */
223
+ public listAvailableApps(excludeInstalled?: string, options?: RawAxiosRequestConfig) {
224
+ return AvailableAppsApiFp(this.configuration).listAvailableApps(excludeInstalled, options).then((request) => request(this.axios, this.basePath));
225
+ }
226
+
227
+ /**
228
+ *
229
+ * @summary Retrieve available app
230
+ * @param {string} appIdentifier App indentifier
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ * @memberof AvailableAppsApi
234
+ */
235
+ public retrieveAvailableApp(appIdentifier: string, options?: RawAxiosRequestConfig) {
236
+ return AvailableAppsApiFp(this.configuration).retrieveAvailableApp(appIdentifier, options).then((request) => request(this.axios, this.basePath));
237
+ }
238
+ }
239
+
@@ -0,0 +1,404 @@
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 { EvaluateExpression200Response } from '../models';
28
+ // @ts-ignore
29
+ import { EvaluateExpressionRequest } from '../models';
30
+ // @ts-ignore
31
+ import { ListDataFields200Response } from '../models';
32
+ // @ts-ignore
33
+ import { ListDataFieldsTypeParameter } from '../models';
34
+ /**
35
+ * DataFieldsApi - axios parameter creator
36
+ * @export
37
+ */
38
+ export const DataFieldsApiAxiosParamCreator = function (configuration?: Configuration) {
39
+ return {
40
+ /**
41
+ *
42
+ * @summary Evaluate expression
43
+ * @param {EvaluateExpressionRequest} [evaluateExpressionRequest]
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ evaluateExpression: async (evaluateExpressionRequest?: EvaluateExpressionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48
+ const localVarPath = `/api/v1/data_fields/evaluate`;
49
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
+ let baseOptions;
52
+ if (configuration) {
53
+ baseOptions = configuration.baseOptions;
54
+ }
55
+
56
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
57
+ const localVarHeaderParameter = {} as any;
58
+ const localVarQueryParameter = {} as any;
59
+
60
+ // authentication bearer required
61
+ // http bearer authentication required
62
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
63
+
64
+
65
+
66
+ localVarHeaderParameter['Content-Type'] = 'application/json';
67
+
68
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
69
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
70
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
71
+ localVarRequestOptions.data = serializeDataIfNeeded(evaluateExpressionRequest, localVarRequestOptions, configuration)
72
+
73
+ return {
74
+ url: toPathString(localVarUrlObj),
75
+ options: localVarRequestOptions,
76
+ };
77
+ },
78
+ /**
79
+ *
80
+ * @summary List data fields
81
+ * @param {string} [userKey] Filter results by user key
82
+ * @param {string} [eventTrigger] Filter results by event trigger
83
+ * @param {ListDataFieldsTypeParameter} [type] Data type filter - can be a single type or multiple types
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ listDataFields: async (userKey?: string, eventTrigger?: string, type?: ListDataFieldsTypeParameter, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
88
+ const localVarPath = `/api/v1/data_fields`;
89
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
90
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
91
+ let baseOptions;
92
+ if (configuration) {
93
+ baseOptions = configuration.baseOptions;
94
+ }
95
+
96
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
97
+ const localVarHeaderParameter = {} as any;
98
+ const localVarQueryParameter = {} as any;
99
+
100
+ // authentication bearer required
101
+ // http bearer authentication required
102
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
103
+
104
+ if (userKey !== undefined) {
105
+ localVarQueryParameter['user_key'] = userKey;
106
+ }
107
+
108
+ if (eventTrigger !== undefined) {
109
+ localVarQueryParameter['event_trigger'] = eventTrigger;
110
+ }
111
+
112
+ if (type !== undefined) {
113
+ for (const [key, value] of Object.entries(type)) {
114
+ localVarQueryParameter[key] = value;
115
+ }
116
+ }
117
+
118
+
119
+
120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
122
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
123
+
124
+ return {
125
+ url: toPathString(localVarUrlObj),
126
+ options: localVarRequestOptions,
127
+ };
128
+ },
129
+ /**
130
+ *
131
+ * @summary List workflow data fields
132
+ * @param {string} id System-generated unique identifier
133
+ * @param {string} [nodeId] Node ID to determine current workflow position
134
+ * @param {string} [parentNodeId] Parent node ID to determine workflow position
135
+ * @param {string} [userKey] User context for determining available data fields
136
+ * @param {string} [eventTrigger] Event trigger context for determining available data fields
137
+ * @param {string} [actionEventTrigger] Action\&#39;s event trigger context for determining available data fields
138
+ * @param {ListDataFieldsTypeParameter} [type] Data type filter - can be a single type or multiple types
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ listWorkflowDataFields: async (id: string, nodeId?: string, parentNodeId?: string, userKey?: string, eventTrigger?: string, actionEventTrigger?: string, type?: ListDataFieldsTypeParameter, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
143
+ // verify required parameter 'id' is not null or undefined
144
+ assertParamExists('listWorkflowDataFields', 'id', id)
145
+ const localVarPath = `/api/v1/workflows/{id}/data_fields`
146
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
147
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
148
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
149
+ let baseOptions;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ }
153
+
154
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
155
+ const localVarHeaderParameter = {} as any;
156
+ const localVarQueryParameter = {} as any;
157
+
158
+ // authentication bearer required
159
+ // http bearer authentication required
160
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
161
+
162
+ if (nodeId !== undefined) {
163
+ localVarQueryParameter['node_id'] = nodeId;
164
+ }
165
+
166
+ if (parentNodeId !== undefined) {
167
+ localVarQueryParameter['parent_node_id'] = parentNodeId;
168
+ }
169
+
170
+ if (userKey !== undefined) {
171
+ localVarQueryParameter['user_key'] = userKey;
172
+ }
173
+
174
+ if (eventTrigger !== undefined) {
175
+ localVarQueryParameter['event_trigger'] = eventTrigger;
176
+ }
177
+
178
+ if (actionEventTrigger !== undefined) {
179
+ localVarQueryParameter['action_event_trigger'] = actionEventTrigger;
180
+ }
181
+
182
+ if (type !== undefined) {
183
+ for (const [key, value] of Object.entries(type)) {
184
+ localVarQueryParameter[key] = value;
185
+ }
186
+ }
187
+
188
+
189
+
190
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
191
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
193
+
194
+ return {
195
+ url: toPathString(localVarUrlObj),
196
+ options: localVarRequestOptions,
197
+ };
198
+ },
199
+ }
200
+ };
201
+
202
+ /**
203
+ * DataFieldsApi - functional programming interface
204
+ * @export
205
+ */
206
+ export const DataFieldsApiFp = function(configuration?: Configuration) {
207
+ const localVarAxiosParamCreator = DataFieldsApiAxiosParamCreator(configuration)
208
+ return {
209
+ /**
210
+ *
211
+ * @summary Evaluate expression
212
+ * @param {EvaluateExpressionRequest} [evaluateExpressionRequest]
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ async evaluateExpression(evaluateExpressionRequest?: EvaluateExpressionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvaluateExpression200Response>> {
217
+ const localVarAxiosArgs = await localVarAxiosParamCreator.evaluateExpression(evaluateExpressionRequest, options);
218
+ const index = configuration?.serverIndex ?? 0;
219
+ const operationBasePath = operationServerMap['DataFieldsApi.evaluateExpression']?.[index]?.url;
220
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
221
+ },
222
+ /**
223
+ *
224
+ * @summary List data fields
225
+ * @param {string} [userKey] Filter results by user key
226
+ * @param {string} [eventTrigger] Filter results by event trigger
227
+ * @param {ListDataFieldsTypeParameter} [type] Data type filter - can be a single type or multiple types
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ async listDataFields(userKey?: string, eventTrigger?: string, type?: ListDataFieldsTypeParameter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDataFields200Response>> {
232
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDataFields(userKey, eventTrigger, type, options);
233
+ const index = configuration?.serverIndex ?? 0;
234
+ const operationBasePath = operationServerMap['DataFieldsApi.listDataFields']?.[index]?.url;
235
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
236
+ },
237
+ /**
238
+ *
239
+ * @summary List workflow data fields
240
+ * @param {string} id System-generated unique identifier
241
+ * @param {string} [nodeId] Node ID to determine current workflow position
242
+ * @param {string} [parentNodeId] Parent node ID to determine workflow position
243
+ * @param {string} [userKey] User context for determining available data fields
244
+ * @param {string} [eventTrigger] Event trigger context for determining available data fields
245
+ * @param {string} [actionEventTrigger] Action\&#39;s event trigger context for determining available data fields
246
+ * @param {ListDataFieldsTypeParameter} [type] Data type filter - can be a single type or multiple types
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ async listWorkflowDataFields(id: string, nodeId?: string, parentNodeId?: string, userKey?: string, eventTrigger?: string, actionEventTrigger?: string, type?: ListDataFieldsTypeParameter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDataFields200Response>> {
251
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkflowDataFields(id, nodeId, parentNodeId, userKey, eventTrigger, actionEventTrigger, type, options);
252
+ const index = configuration?.serverIndex ?? 0;
253
+ const operationBasePath = operationServerMap['DataFieldsApi.listWorkflowDataFields']?.[index]?.url;
254
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
255
+ },
256
+ }
257
+ };
258
+
259
+ /**
260
+ * DataFieldsApi - factory interface
261
+ * @export
262
+ */
263
+ export const DataFieldsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
264
+ const localVarFp = DataFieldsApiFp(configuration)
265
+ return {
266
+ /**
267
+ *
268
+ * @summary Evaluate expression
269
+ * @param {EvaluateExpressionRequest} [evaluateExpressionRequest]
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ evaluateExpression(evaluateExpressionRequest?: EvaluateExpressionRequest, options?: any): AxiosPromise<EvaluateExpression200Response> {
274
+ return localVarFp.evaluateExpression(evaluateExpressionRequest, options).then((request) => request(axios, basePath));
275
+ },
276
+ /**
277
+ *
278
+ * @summary List data fields
279
+ * @param {string} [userKey] Filter results by user key
280
+ * @param {string} [eventTrigger] Filter results by event trigger
281
+ * @param {ListDataFieldsTypeParameter} [type] Data type filter - can be a single type or multiple types
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ listDataFields(userKey?: string, eventTrigger?: string, type?: ListDataFieldsTypeParameter, options?: any): AxiosPromise<ListDataFields200Response> {
286
+ return localVarFp.listDataFields(userKey, eventTrigger, type, options).then((request) => request(axios, basePath));
287
+ },
288
+ /**
289
+ *
290
+ * @summary List workflow data fields
291
+ * @param {string} id System-generated unique identifier
292
+ * @param {string} [nodeId] Node ID to determine current workflow position
293
+ * @param {string} [parentNodeId] Parent node ID to determine workflow position
294
+ * @param {string} [userKey] User context for determining available data fields
295
+ * @param {string} [eventTrigger] Event trigger context for determining available data fields
296
+ * @param {string} [actionEventTrigger] Action\&#39;s event trigger context for determining available data fields
297
+ * @param {ListDataFieldsTypeParameter} [type] Data type filter - can be a single type or multiple types
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ listWorkflowDataFields(id: string, nodeId?: string, parentNodeId?: string, userKey?: string, eventTrigger?: string, actionEventTrigger?: string, type?: ListDataFieldsTypeParameter, options?: any): AxiosPromise<ListDataFields200Response> {
302
+ return localVarFp.listWorkflowDataFields(id, nodeId, parentNodeId, userKey, eventTrigger, actionEventTrigger, type, options).then((request) => request(axios, basePath));
303
+ },
304
+ };
305
+ };
306
+
307
+ /**
308
+ * DataFieldsApi - interface
309
+ * @export
310
+ * @interface DataFieldsApi
311
+ */
312
+ export interface DataFieldsApiInterface {
313
+ /**
314
+ *
315
+ * @summary Evaluate expression
316
+ * @param {EvaluateExpressionRequest} [evaluateExpressionRequest]
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ * @memberof DataFieldsApiInterface
320
+ */
321
+ evaluateExpression(evaluateExpressionRequest?: EvaluateExpressionRequest, options?: RawAxiosRequestConfig): AxiosPromise<EvaluateExpression200Response>;
322
+
323
+ /**
324
+ *
325
+ * @summary List data fields
326
+ * @param {string} [userKey] Filter results by user key
327
+ * @param {string} [eventTrigger] Filter results by event trigger
328
+ * @param {ListDataFieldsTypeParameter} [type] Data type filter - can be a single type or multiple types
329
+ * @param {*} [options] Override http request option.
330
+ * @throws {RequiredError}
331
+ * @memberof DataFieldsApiInterface
332
+ */
333
+ listDataFields(userKey?: string, eventTrigger?: string, type?: ListDataFieldsTypeParameter, options?: RawAxiosRequestConfig): AxiosPromise<ListDataFields200Response>;
334
+
335
+ /**
336
+ *
337
+ * @summary List workflow data fields
338
+ * @param {string} id System-generated unique identifier
339
+ * @param {string} [nodeId] Node ID to determine current workflow position
340
+ * @param {string} [parentNodeId] Parent node ID to determine workflow position
341
+ * @param {string} [userKey] User context for determining available data fields
342
+ * @param {string} [eventTrigger] Event trigger context for determining available data fields
343
+ * @param {string} [actionEventTrigger] Action\&#39;s event trigger context for determining available data fields
344
+ * @param {ListDataFieldsTypeParameter} [type] Data type filter - can be a single type or multiple types
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ * @memberof DataFieldsApiInterface
348
+ */
349
+ listWorkflowDataFields(id: string, nodeId?: string, parentNodeId?: string, userKey?: string, eventTrigger?: string, actionEventTrigger?: string, type?: ListDataFieldsTypeParameter, options?: RawAxiosRequestConfig): AxiosPromise<ListDataFields200Response>;
350
+
351
+ }
352
+
353
+ /**
354
+ * DataFieldsApi - object-oriented interface
355
+ * @export
356
+ * @class DataFieldsApi
357
+ * @extends {BaseAPI}
358
+ */
359
+ export class DataFieldsApi extends BaseAPI implements DataFieldsApiInterface {
360
+ /**
361
+ *
362
+ * @summary Evaluate expression
363
+ * @param {EvaluateExpressionRequest} [evaluateExpressionRequest]
364
+ * @param {*} [options] Override http request option.
365
+ * @throws {RequiredError}
366
+ * @memberof DataFieldsApi
367
+ */
368
+ public evaluateExpression(evaluateExpressionRequest?: EvaluateExpressionRequest, options?: RawAxiosRequestConfig) {
369
+ return DataFieldsApiFp(this.configuration).evaluateExpression(evaluateExpressionRequest, options).then((request) => request(this.axios, this.basePath));
370
+ }
371
+
372
+ /**
373
+ *
374
+ * @summary List data fields
375
+ * @param {string} [userKey] Filter results by user key
376
+ * @param {string} [eventTrigger] Filter results by event trigger
377
+ * @param {ListDataFieldsTypeParameter} [type] Data type filter - can be a single type or multiple types
378
+ * @param {*} [options] Override http request option.
379
+ * @throws {RequiredError}
380
+ * @memberof DataFieldsApi
381
+ */
382
+ public listDataFields(userKey?: string, eventTrigger?: string, type?: ListDataFieldsTypeParameter, options?: RawAxiosRequestConfig) {
383
+ return DataFieldsApiFp(this.configuration).listDataFields(userKey, eventTrigger, type, options).then((request) => request(this.axios, this.basePath));
384
+ }
385
+
386
+ /**
387
+ *
388
+ * @summary List workflow data fields
389
+ * @param {string} id System-generated unique identifier
390
+ * @param {string} [nodeId] Node ID to determine current workflow position
391
+ * @param {string} [parentNodeId] Parent node ID to determine workflow position
392
+ * @param {string} [userKey] User context for determining available data fields
393
+ * @param {string} [eventTrigger] Event trigger context for determining available data fields
394
+ * @param {string} [actionEventTrigger] Action\&#39;s event trigger context for determining available data fields
395
+ * @param {ListDataFieldsTypeParameter} [type] Data type filter - can be a single type or multiple types
396
+ * @param {*} [options] Override http request option.
397
+ * @throws {RequiredError}
398
+ * @memberof DataFieldsApi
399
+ */
400
+ public listWorkflowDataFields(id: string, nodeId?: string, parentNodeId?: string, userKey?: string, eventTrigger?: string, actionEventTrigger?: string, type?: ListDataFieldsTypeParameter, options?: RawAxiosRequestConfig) {
401
+ return DataFieldsApiFp(this.configuration).listWorkflowDataFields(id, nodeId, parentNodeId, userKey, eventTrigger, actionEventTrigger, type, options).then((request) => request(this.axios, this.basePath));
402
+ }
403
+ }
404
+