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