@emilgroup/insurance-sdk-node 1.49.0 → 1.49.2-beta.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 (182) hide show
  1. package/.openapi-generator/FILES +30 -8
  2. package/README.md +2 -2
  3. package/api/booking-funnel-versions-api.ts +8 -8
  4. package/api/booking-funnels-api.ts +12 -12
  5. package/api/emil-functions-api.ts +1314 -0
  6. package/api/insured-object-types-api.ts +4 -4
  7. package/api/insured-objects-api.ts +8 -8
  8. package/api/lead-statuses-api.ts +104 -20
  9. package/api/lead-versions-api.ts +8 -8
  10. package/api/leads-api.ts +8 -8
  11. package/api/named-ranges-api.ts +8 -8
  12. package/api/partner-links-api.ts +800 -0
  13. package/api/{policy-partner-roles-api.ts → partner-roles-api.ts} +180 -180
  14. package/api/policies-api.ts +116 -118
  15. package/api/premium-formulas-api.ts +8 -8
  16. package/api/product-factors-api.ts +8 -8
  17. package/api/product-fields-api.ts +119 -12
  18. package/api/product-versions-api.ts +4 -4
  19. package/api/products-api.ts +20 -20
  20. package/api/status-transition-rules-api.ts +8 -8
  21. package/api.ts +6 -2
  22. package/dist/api/booking-funnel-versions-api.d.ts +8 -8
  23. package/dist/api/booking-funnel-versions-api.js +8 -8
  24. package/dist/api/booking-funnels-api.d.ts +12 -12
  25. package/dist/api/booking-funnels-api.js +12 -12
  26. package/dist/api/emil-functions-api.d.ts +727 -0
  27. package/dist/api/emil-functions-api.js +1202 -0
  28. package/dist/api/insured-object-types-api.d.ts +4 -4
  29. package/dist/api/insured-object-types-api.js +4 -4
  30. package/dist/api/insured-objects-api.d.ts +8 -8
  31. package/dist/api/insured-objects-api.js +8 -8
  32. package/dist/api/lead-statuses-api.d.ts +71 -17
  33. package/dist/api/lead-statuses-api.js +53 -17
  34. package/dist/api/lead-versions-api.d.ts +8 -8
  35. package/dist/api/lead-versions-api.js +8 -8
  36. package/dist/api/leads-api.d.ts +8 -8
  37. package/dist/api/leads-api.js +8 -8
  38. package/dist/api/named-ranges-api.d.ts +8 -8
  39. package/dist/api/named-ranges-api.js +8 -8
  40. package/dist/api/partner-links-api.d.ts +450 -0
  41. package/dist/api/partner-links-api.js +738 -0
  42. package/dist/api/partner-roles-api.d.ts +385 -0
  43. package/dist/api/{policy-partner-roles-api.js → partner-roles-api.js} +136 -136
  44. package/dist/api/policies-api.d.ts +112 -112
  45. package/dist/api/policies-api.js +66 -67
  46. package/dist/api/premium-formulas-api.d.ts +8 -8
  47. package/dist/api/premium-formulas-api.js +8 -8
  48. package/dist/api/product-factors-api.d.ts +8 -8
  49. package/dist/api/product-factors-api.js +8 -8
  50. package/dist/api/product-fields-api.d.ts +69 -12
  51. package/dist/api/product-fields-api.js +105 -12
  52. package/dist/api/product-versions-api.d.ts +4 -4
  53. package/dist/api/product-versions-api.js +4 -4
  54. package/dist/api/products-api.d.ts +20 -20
  55. package/dist/api/products-api.js +18 -18
  56. package/dist/api/status-transition-rules-api.d.ts +8 -8
  57. package/dist/api/status-transition-rules-api.js +8 -8
  58. package/dist/api.d.ts +3 -1
  59. package/dist/api.js +3 -1
  60. package/dist/models/booking-funnel-class.d.ts +1 -1
  61. package/dist/models/create-account-request-dto.d.ts +1 -1
  62. package/dist/models/create-account-request-dto.js +1 -1
  63. package/dist/models/create-booking-funnel-request-dto.d.ts +1 -1
  64. package/dist/models/create-emil-function-request-dto.d.ts +42 -0
  65. package/dist/models/create-emil-function-secret-request-dto.d.ts +36 -0
  66. package/dist/models/create-lead-request-dto.d.ts +12 -0
  67. package/dist/models/{update-policy-partner-role-request-dto.d.ts → create-partner-role-request-dto.d.ts} +6 -6
  68. package/dist/models/{get-policy-partner-role-response-class.d.ts → create-partner-role-response-class.d.ts} +7 -7
  69. package/dist/models/create-product-field-request-dto.d.ts +7 -1
  70. package/dist/models/create-product-request-dto.d.ts +1 -1
  71. package/dist/models/emil-function-class.d.ts +60 -0
  72. package/dist/models/{create-policy-partner-role-response-class.d.ts → emil-function-secret-class.d.ts} +12 -7
  73. package/dist/models/execute-emil-function-request-dto.d.ts +24 -0
  74. package/dist/models/get-emil-function-secret-response-class.d.ts +24 -0
  75. package/dist/models/get-emil-function-secret-response-class.js +15 -0
  76. package/dist/models/{update-policy-partner-role-response-class.d.ts → get-partner-link-response-class.d.ts} +7 -7
  77. package/dist/models/get-partner-link-response-class.js +15 -0
  78. package/dist/models/get-partner-role-response-class.d.ts +25 -0
  79. package/dist/models/get-partner-role-response-class.js +15 -0
  80. package/dist/models/get-product-request-dto.d.ts +1 -1
  81. package/dist/models/index.d.ts +27 -7
  82. package/dist/models/index.js +27 -7
  83. package/dist/models/insured-object-type-class.d.ts +1 -1
  84. package/dist/models/lead-class.d.ts +8 -1
  85. package/dist/models/lead-status-class.d.ts +1 -1
  86. package/dist/models/link-partner-request-dto.d.ts +54 -0
  87. package/dist/models/link-partner-request-dto.js +15 -0
  88. package/dist/models/link-partner-response-class.d.ts +25 -0
  89. package/dist/models/link-partner-response-class.js +15 -0
  90. package/dist/models/list-emil-function-secrets-response-class.d.ts +25 -0
  91. package/dist/models/list-emil-function-secrets-response-class.js +15 -0
  92. package/dist/models/{list-policy-partner-roles-response-class.d.ts → list-emil-functions-response-class.d.ts} +8 -8
  93. package/dist/models/list-emil-functions-response-class.js +15 -0
  94. package/dist/models/list-partner-links-response-class.d.ts +31 -0
  95. package/dist/models/list-partner-links-response-class.js +15 -0
  96. package/dist/models/list-partner-roles-response-class.d.ts +31 -0
  97. package/dist/models/list-partner-roles-response-class.js +15 -0
  98. package/dist/models/partner-class.d.ts +60 -0
  99. package/dist/models/partner-class.js +15 -0
  100. package/dist/models/partner-link-class.d.ts +86 -0
  101. package/dist/models/partner-link-class.js +15 -0
  102. package/dist/models/{policy-partner-role-class.d.ts → partner-role-class.d.ts} +10 -10
  103. package/dist/models/partner-role-class.js +15 -0
  104. package/dist/models/patch-draft-policy-request-dto.d.ts +1 -1
  105. package/dist/models/policy-class.d.ts +7 -0
  106. package/dist/models/product-class.d.ts +1 -1
  107. package/dist/models/product-field-class.d.ts +6 -0
  108. package/dist/models/shared-product-field-class.d.ts +6 -0
  109. package/dist/models/status-transition-rule-class.d.ts +1 -1
  110. package/dist/models/swap-product-fields-order-request-dto.d.ts +30 -0
  111. package/dist/models/swap-product-fields-order-request-dto.js +15 -0
  112. package/dist/models/unlink-partner-response-class.d.ts +25 -0
  113. package/dist/models/unlink-partner-response-class.js +15 -0
  114. package/dist/models/update-emil-function-request-dto.d.ts +42 -0
  115. package/dist/models/update-emil-function-request-dto.js +15 -0
  116. package/dist/models/update-emil-function-secret-request-dto.d.ts +30 -0
  117. package/dist/models/update-emil-function-secret-request-dto.js +15 -0
  118. package/dist/models/update-partner-link-request-dto.d.ts +30 -0
  119. package/dist/models/update-partner-link-request-dto.js +15 -0
  120. package/dist/models/update-partner-link-response-class.d.ts +25 -0
  121. package/dist/models/update-partner-link-response-class.js +15 -0
  122. package/dist/models/{create-policy-partner-role-request-dto.d.ts → update-partner-role-request-dto.d.ts} +6 -6
  123. package/dist/models/update-partner-role-request-dto.js +15 -0
  124. package/dist/models/update-partner-role-response-class.d.ts +25 -0
  125. package/dist/models/update-partner-role-response-class.js +15 -0
  126. package/dist/models/update-product-field-request-dto.d.ts +7 -1
  127. package/dist/models/update-product-request-dto.d.ts +1 -1
  128. package/models/booking-funnel-class.ts +1 -1
  129. package/models/create-account-request-dto.ts +1 -1
  130. package/models/create-booking-funnel-request-dto.ts +1 -1
  131. package/models/create-emil-function-request-dto.ts +48 -0
  132. package/models/create-emil-function-secret-request-dto.ts +42 -0
  133. package/models/create-lead-request-dto.ts +12 -0
  134. package/models/{update-policy-partner-role-request-dto.ts → create-partner-role-request-dto.ts} +6 -6
  135. package/models/{get-policy-partner-role-response-class.ts → create-partner-role-response-class.ts} +7 -7
  136. package/models/create-product-field-request-dto.ts +7 -1
  137. package/models/create-product-request-dto.ts +1 -1
  138. package/models/emil-function-class.ts +66 -0
  139. package/models/{update-policy-partner-role-response-class.ts → emil-function-secret-class.ts} +12 -7
  140. package/models/execute-emil-function-request-dto.ts +30 -0
  141. package/models/get-emil-function-secret-response-class.ts +30 -0
  142. package/models/{create-policy-partner-role-response-class.ts → get-partner-link-response-class.ts} +7 -7
  143. package/models/get-partner-role-response-class.ts +31 -0
  144. package/models/get-product-request-dto.ts +1 -1
  145. package/models/index.ts +27 -7
  146. package/models/insured-object-type-class.ts +1 -1
  147. package/models/lead-class.ts +8 -1
  148. package/models/lead-status-class.ts +1 -1
  149. package/models/link-partner-request-dto.ts +60 -0
  150. package/models/link-partner-response-class.ts +31 -0
  151. package/models/list-emil-function-secrets-response-class.ts +31 -0
  152. package/models/{list-policy-partner-roles-response-class.ts → list-emil-functions-response-class.ts} +8 -8
  153. package/models/list-partner-links-response-class.ts +37 -0
  154. package/models/list-partner-roles-response-class.ts +37 -0
  155. package/models/partner-class.ts +66 -0
  156. package/models/partner-link-class.ts +92 -0
  157. package/models/{policy-partner-role-class.ts → partner-role-class.ts} +10 -10
  158. package/models/patch-draft-policy-request-dto.ts +1 -1
  159. package/models/policy-class.ts +7 -0
  160. package/models/product-class.ts +1 -1
  161. package/models/product-field-class.ts +6 -0
  162. package/models/shared-product-field-class.ts +6 -0
  163. package/models/status-transition-rule-class.ts +1 -1
  164. package/models/swap-product-fields-order-request-dto.ts +36 -0
  165. package/models/unlink-partner-response-class.ts +31 -0
  166. package/models/update-emil-function-request-dto.ts +48 -0
  167. package/models/update-emil-function-secret-request-dto.ts +36 -0
  168. package/models/update-partner-link-request-dto.ts +36 -0
  169. package/models/update-partner-link-response-class.ts +31 -0
  170. package/models/{create-policy-partner-role-request-dto.ts → update-partner-role-request-dto.ts} +6 -6
  171. package/models/update-partner-role-response-class.ts +31 -0
  172. package/models/update-product-field-request-dto.ts +7 -1
  173. package/models/update-product-request-dto.ts +1 -1
  174. package/package.json +1 -1
  175. package/dist/api/policy-partner-roles-api.d.ts +0 -385
  176. /package/dist/models/{create-policy-partner-role-request-dto.js → create-emil-function-request-dto.js} +0 -0
  177. /package/dist/models/{create-policy-partner-role-response-class.js → create-emil-function-secret-request-dto.js} +0 -0
  178. /package/dist/models/{get-policy-partner-role-response-class.js → create-partner-role-request-dto.js} +0 -0
  179. /package/dist/models/{list-policy-partner-roles-response-class.js → create-partner-role-response-class.js} +0 -0
  180. /package/dist/models/{policy-partner-role-class.js → emil-function-class.js} +0 -0
  181. /package/dist/models/{update-policy-partner-role-request-dto.js → emil-function-secret-class.js} +0 -0
  182. /package/dist/models/{update-policy-partner-role-response-class.js → execute-emil-function-request-dto.js} +0 -0
@@ -0,0 +1,1314 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL InsuranceService
5
+ * The EMIL InsuranceService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateEmilFunctionRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateEmilFunctionSecretRequestDto } from '../models';
27
+ // @ts-ignore
28
+ import { DeleteResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { EmptyResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ExecuteEmilFunctionRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { GetEmilFunctionSecretResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { ListEmilFunctionSecretsResponseClass } from '../models';
37
+ // @ts-ignore
38
+ import { ListEmilFunctionsResponseClass } from '../models';
39
+ // @ts-ignore
40
+ import { UpdateEmilFunctionRequestDto } from '../models';
41
+ // @ts-ignore
42
+ import { UpdateEmilFunctionSecretRequestDto } from '../models';
43
+ // URLSearchParams not necessarily used
44
+ // @ts-ignore
45
+ import { URL, URLSearchParams } from 'url';
46
+ const FormData = require('form-data');
47
+ /**
48
+ * EmilFunctionsApi - axios parameter creator
49
+ * @export
50
+ */
51
+ export const EmilFunctionsApiAxiosParamCreator = function (configuration?: Configuration) {
52
+ return {
53
+ /**
54
+ * This will create the Emil function.
55
+ * @summary Create the Emil function
56
+ * @param {CreateEmilFunctionRequestDto} createEmilFunctionRequestDto
57
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ */
61
+ createEmilFunction: async (createEmilFunctionRequestDto: CreateEmilFunctionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
62
+ // verify required parameter 'createEmilFunctionRequestDto' is not null or undefined
63
+ assertParamExists('createEmilFunction', 'createEmilFunctionRequestDto', createEmilFunctionRequestDto)
64
+ const localVarPath = `/insuranceservice/v1/emil-functions`;
65
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
66
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
67
+ let baseOptions;
68
+ let baseAccessToken;
69
+ if (configuration) {
70
+ baseOptions = configuration.baseOptions;
71
+ baseAccessToken = configuration.accessToken;
72
+ }
73
+
74
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
75
+ const localVarHeaderParameter = {} as any;
76
+ const localVarQueryParameter = {} as any;
77
+
78
+ // authentication bearer required
79
+ // http bearer authentication required
80
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
81
+
82
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
83
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
84
+ }
85
+
86
+
87
+
88
+ localVarHeaderParameter['Content-Type'] = 'application/json';
89
+
90
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
91
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
92
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
93
+ localVarRequestOptions.data = serializeDataIfNeeded(createEmilFunctionRequestDto, localVarRequestOptions, configuration)
94
+
95
+ return {
96
+ url: toPathString(localVarUrlObj),
97
+ options: localVarRequestOptions,
98
+ };
99
+ },
100
+ /**
101
+ * This will create the Emil function secret.
102
+ * @summary Create the Emil function secret
103
+ * @param {CreateEmilFunctionSecretRequestDto} createEmilFunctionSecretRequestDto
104
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ createEmilFunctionSecret: async (createEmilFunctionSecretRequestDto: CreateEmilFunctionSecretRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
109
+ // verify required parameter 'createEmilFunctionSecretRequestDto' is not null or undefined
110
+ assertParamExists('createEmilFunctionSecret', 'createEmilFunctionSecretRequestDto', createEmilFunctionSecretRequestDto)
111
+ const localVarPath = `/insuranceservice/v1/emil-functions/secrets`;
112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
114
+ let baseOptions;
115
+ let baseAccessToken;
116
+ if (configuration) {
117
+ baseOptions = configuration.baseOptions;
118
+ baseAccessToken = configuration.accessToken;
119
+ }
120
+
121
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
122
+ const localVarHeaderParameter = {} as any;
123
+ const localVarQueryParameter = {} as any;
124
+
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
128
+
129
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ }
132
+
133
+
134
+
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+
137
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
138
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
139
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
140
+ localVarRequestOptions.data = serializeDataIfNeeded(createEmilFunctionSecretRequestDto, localVarRequestOptions, configuration)
141
+
142
+ return {
143
+ url: toPathString(localVarUrlObj),
144
+ options: localVarRequestOptions,
145
+ };
146
+ },
147
+ /**
148
+ * Permanently deletes the Emil function. Supply the unique code that was returned when you created the Emil function and this will delete it.
149
+ * @summary Delete the Emil function
150
+ * @param {number} id
151
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ deleteEmilFunction: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
156
+ // verify required parameter 'id' is not null or undefined
157
+ assertParamExists('deleteEmilFunction', 'id', id)
158
+ const localVarPath = `/insuranceservice/v1/emil-functions/{id}`
159
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
160
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
161
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
162
+ let baseOptions;
163
+ let baseAccessToken;
164
+ if (configuration) {
165
+ baseOptions = configuration.baseOptions;
166
+ baseAccessToken = configuration.accessToken;
167
+ }
168
+
169
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
170
+ const localVarHeaderParameter = {} as any;
171
+ const localVarQueryParameter = {} as any;
172
+
173
+ // authentication bearer required
174
+ // http bearer authentication required
175
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
176
+
177
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
179
+ }
180
+
181
+
182
+
183
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
184
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
186
+
187
+ return {
188
+ url: toPathString(localVarUrlObj),
189
+ options: localVarRequestOptions,
190
+ };
191
+ },
192
+ /**
193
+ * Permanently deletes the Emil function secret. Supply the unique code that was returned when you created the Emil function secret and this will delete it.
194
+ * @summary Delete the Emil function secret
195
+ * @param {string} name
196
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ deleteEmilFunctionSecret: async (name: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
+ // verify required parameter 'name' is not null or undefined
202
+ assertParamExists('deleteEmilFunctionSecret', 'name', name)
203
+ const localVarPath = `/insuranceservice/v1/emil-functions/secrets/{name}`
204
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
207
+ let baseOptions;
208
+ let baseAccessToken;
209
+ if (configuration) {
210
+ baseOptions = configuration.baseOptions;
211
+ baseAccessToken = configuration.accessToken;
212
+ }
213
+
214
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
215
+ const localVarHeaderParameter = {} as any;
216
+ const localVarQueryParameter = {} as any;
217
+
218
+ // authentication bearer required
219
+ // http bearer authentication required
220
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
221
+
222
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
223
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
224
+ }
225
+
226
+
227
+
228
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
229
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
230
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
231
+
232
+ return {
233
+ url: toPathString(localVarUrlObj),
234
+ options: localVarRequestOptions,
235
+ };
236
+ },
237
+ /**
238
+ * This will execute the Emil function.
239
+ * @summary Execute the Emil function
240
+ * @param {string} slug
241
+ * @param {ExecuteEmilFunctionRequestDto} executeEmilFunctionRequestDto
242
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ */
246
+ executeEmilFunction: async (slug: string, executeEmilFunctionRequestDto: ExecuteEmilFunctionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
247
+ // verify required parameter 'slug' is not null or undefined
248
+ assertParamExists('executeEmilFunction', 'slug', slug)
249
+ // verify required parameter 'executeEmilFunctionRequestDto' is not null or undefined
250
+ assertParamExists('executeEmilFunction', 'executeEmilFunctionRequestDto', executeEmilFunctionRequestDto)
251
+ const localVarPath = `/insuranceservice/v1/emil-functions/{slug}/execute`
252
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
253
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
254
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
255
+ let baseOptions;
256
+ let baseAccessToken;
257
+ if (configuration) {
258
+ baseOptions = configuration.baseOptions;
259
+ baseAccessToken = configuration.accessToken;
260
+ }
261
+
262
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
263
+ const localVarHeaderParameter = {} as any;
264
+ const localVarQueryParameter = {} as any;
265
+
266
+ // authentication bearer required
267
+ // http bearer authentication required
268
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
269
+
270
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
271
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
272
+ }
273
+
274
+
275
+
276
+ localVarHeaderParameter['Content-Type'] = 'application/json';
277
+
278
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
279
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
280
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
281
+ localVarRequestOptions.data = serializeDataIfNeeded(executeEmilFunctionRequestDto, localVarRequestOptions, configuration)
282
+
283
+ return {
284
+ url: toPathString(localVarUrlObj),
285
+ options: localVarRequestOptions,
286
+ };
287
+ },
288
+ /**
289
+ * Retrieves the details of the Emil function that was previously created. Supply the unique Emil function code that was returned when you created it and Emil Api will return the corresponding Emil function information.
290
+ * @summary Retrieve the Emil function
291
+ * @param {number} id
292
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ getEmilFunction: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
297
+ // verify required parameter 'id' is not null or undefined
298
+ assertParamExists('getEmilFunction', 'id', id)
299
+ const localVarPath = `/insuranceservice/v1/emil-functions/{id}`
300
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
301
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
302
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
303
+ let baseOptions;
304
+ let baseAccessToken;
305
+ if (configuration) {
306
+ baseOptions = configuration.baseOptions;
307
+ baseAccessToken = configuration.accessToken;
308
+ }
309
+
310
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
311
+ const localVarHeaderParameter = {} as any;
312
+ const localVarQueryParameter = {} as any;
313
+
314
+ // authentication bearer required
315
+ // http bearer authentication required
316
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
317
+
318
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
319
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
320
+ }
321
+
322
+
323
+
324
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
325
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
326
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
327
+
328
+ return {
329
+ url: toPathString(localVarUrlObj),
330
+ options: localVarRequestOptions,
331
+ };
332
+ },
333
+ /**
334
+ * Retrieves the details of the Emil function secret that was previously created. Supply the unique Emil function secret code that was returned when you created it and Emil Api will return the corresponding Emil function secret information.
335
+ * @summary Retrieve the Emil function secret
336
+ * @param {string} name
337
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
338
+ * @param {*} [options] Override http request option.
339
+ * @throws {RequiredError}
340
+ */
341
+ getEmilFunctionSecret: async (name: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
342
+ // verify required parameter 'name' is not null or undefined
343
+ assertParamExists('getEmilFunctionSecret', 'name', name)
344
+ const localVarPath = `/insuranceservice/v1/emil-functions/secrets/{name}`
345
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
346
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
347
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
348
+ let baseOptions;
349
+ let baseAccessToken;
350
+ if (configuration) {
351
+ baseOptions = configuration.baseOptions;
352
+ baseAccessToken = configuration.accessToken;
353
+ }
354
+
355
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
356
+ const localVarHeaderParameter = {} as any;
357
+ const localVarQueryParameter = {} as any;
358
+
359
+ // authentication bearer required
360
+ // http bearer authentication required
361
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
362
+
363
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
364
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
365
+ }
366
+
367
+
368
+
369
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
370
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
371
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
372
+
373
+ return {
374
+ url: toPathString(localVarUrlObj),
375
+ options: localVarRequestOptions,
376
+ };
377
+ },
378
+ /**
379
+ * Returns a list of Emil function secrets you have previously created. The Emil function secrets are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
380
+ * @summary List Emil function secrets
381
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ listEmilFunctionSecrets: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
386
+ const localVarPath = `/insuranceservice/v1/emil-functions/secrets`;
387
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
388
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
389
+ let baseOptions;
390
+ let baseAccessToken;
391
+ if (configuration) {
392
+ baseOptions = configuration.baseOptions;
393
+ baseAccessToken = configuration.accessToken;
394
+ }
395
+
396
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
397
+ const localVarHeaderParameter = {} as any;
398
+ const localVarQueryParameter = {} as any;
399
+
400
+ // authentication bearer required
401
+ // http bearer authentication required
402
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
403
+
404
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
405
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
406
+ }
407
+
408
+
409
+
410
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
411
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
412
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
413
+
414
+ return {
415
+ url: toPathString(localVarUrlObj),
416
+ options: localVarRequestOptions,
417
+ };
418
+ },
419
+ /**
420
+ * Returns a list of Emil functions you have previously created. The Emil functions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
421
+ * @summary List Emil functions
422
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
423
+ * @param {number} [pageSize] Page size.
424
+ * @param {string} [pageToken] Page token.
425
+ * @param {string} [filter] List filter
426
+ * @param {string} [search] Search query.
427
+ * @param {string} [order] Ordering criteria.
428
+ * @param {string} [expand] Extra fields to fetch.
429
+ * @param {string} [filters]
430
+ * @param {*} [options] Override http request option.
431
+ * @throws {RequiredError}
432
+ */
433
+ listEmilFunctions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
434
+ const localVarPath = `/insuranceservice/v1/emil-functions`;
435
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
436
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
437
+ let baseOptions;
438
+ let baseAccessToken;
439
+ if (configuration) {
440
+ baseOptions = configuration.baseOptions;
441
+ baseAccessToken = configuration.accessToken;
442
+ }
443
+
444
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
445
+ const localVarHeaderParameter = {} as any;
446
+ const localVarQueryParameter = {} as any;
447
+
448
+ // authentication bearer required
449
+ // http bearer authentication required
450
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
451
+
452
+ if (pageSize !== undefined) {
453
+ localVarQueryParameter['pageSize'] = pageSize;
454
+ }
455
+
456
+ if (pageToken !== undefined) {
457
+ localVarQueryParameter['pageToken'] = pageToken;
458
+ }
459
+
460
+ if (filter !== undefined) {
461
+ localVarQueryParameter['filter'] = filter;
462
+ }
463
+
464
+ if (search !== undefined) {
465
+ localVarQueryParameter['search'] = search;
466
+ }
467
+
468
+ if (order !== undefined) {
469
+ localVarQueryParameter['order'] = order;
470
+ }
471
+
472
+ if (expand !== undefined) {
473
+ localVarQueryParameter['expand'] = expand;
474
+ }
475
+
476
+ if (filters !== undefined) {
477
+ localVarQueryParameter['filters'] = filters;
478
+ }
479
+
480
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
481
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
482
+ }
483
+
484
+
485
+
486
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
487
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
488
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
489
+
490
+ return {
491
+ url: toPathString(localVarUrlObj),
492
+ options: localVarRequestOptions,
493
+ };
494
+ },
495
+ /**
496
+ * Updates the specified Emil function by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
497
+ * @summary Update the Emil function
498
+ * @param {number} id
499
+ * @param {UpdateEmilFunctionRequestDto} updateEmilFunctionRequestDto
500
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ updateEmilFunction: async (id: number, updateEmilFunctionRequestDto: UpdateEmilFunctionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
505
+ // verify required parameter 'id' is not null or undefined
506
+ assertParamExists('updateEmilFunction', 'id', id)
507
+ // verify required parameter 'updateEmilFunctionRequestDto' is not null or undefined
508
+ assertParamExists('updateEmilFunction', 'updateEmilFunctionRequestDto', updateEmilFunctionRequestDto)
509
+ const localVarPath = `/insuranceservice/v1/emil-functions/{id}`
510
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
511
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
512
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
513
+ let baseOptions;
514
+ let baseAccessToken;
515
+ if (configuration) {
516
+ baseOptions = configuration.baseOptions;
517
+ baseAccessToken = configuration.accessToken;
518
+ }
519
+
520
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
521
+ const localVarHeaderParameter = {} as any;
522
+ const localVarQueryParameter = {} as any;
523
+
524
+ // authentication bearer required
525
+ // http bearer authentication required
526
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
527
+
528
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
529
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
530
+ }
531
+
532
+
533
+
534
+ localVarHeaderParameter['Content-Type'] = 'application/json';
535
+
536
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
537
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
538
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
539
+ localVarRequestOptions.data = serializeDataIfNeeded(updateEmilFunctionRequestDto, localVarRequestOptions, configuration)
540
+
541
+ return {
542
+ url: toPathString(localVarUrlObj),
543
+ options: localVarRequestOptions,
544
+ };
545
+ },
546
+ /**
547
+ * Updates the specified Emil function secret by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
548
+ * @summary Update the Emil function secret
549
+ * @param {string} name
550
+ * @param {UpdateEmilFunctionSecretRequestDto} updateEmilFunctionSecretRequestDto
551
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
552
+ * @param {*} [options] Override http request option.
553
+ * @throws {RequiredError}
554
+ */
555
+ updateEmilFunctionSecret: async (name: string, updateEmilFunctionSecretRequestDto: UpdateEmilFunctionSecretRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
556
+ // verify required parameter 'name' is not null or undefined
557
+ assertParamExists('updateEmilFunctionSecret', 'name', name)
558
+ // verify required parameter 'updateEmilFunctionSecretRequestDto' is not null or undefined
559
+ assertParamExists('updateEmilFunctionSecret', 'updateEmilFunctionSecretRequestDto', updateEmilFunctionSecretRequestDto)
560
+ const localVarPath = `/insuranceservice/v1/emil-functions/secrets/{name}`
561
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
562
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
563
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
564
+ let baseOptions;
565
+ let baseAccessToken;
566
+ if (configuration) {
567
+ baseOptions = configuration.baseOptions;
568
+ baseAccessToken = configuration.accessToken;
569
+ }
570
+
571
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
572
+ const localVarHeaderParameter = {} as any;
573
+ const localVarQueryParameter = {} as any;
574
+
575
+ // authentication bearer required
576
+ // http bearer authentication required
577
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
578
+
579
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
580
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
581
+ }
582
+
583
+
584
+
585
+ localVarHeaderParameter['Content-Type'] = 'application/json';
586
+
587
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
588
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
589
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
590
+ localVarRequestOptions.data = serializeDataIfNeeded(updateEmilFunctionSecretRequestDto, localVarRequestOptions, configuration)
591
+
592
+ return {
593
+ url: toPathString(localVarUrlObj),
594
+ options: localVarRequestOptions,
595
+ };
596
+ },
597
+ }
598
+ };
599
+
600
+ /**
601
+ * EmilFunctionsApi - functional programming interface
602
+ * @export
603
+ */
604
+ export const EmilFunctionsApiFp = function(configuration?: Configuration) {
605
+ const localVarAxiosParamCreator = EmilFunctionsApiAxiosParamCreator(configuration)
606
+ return {
607
+ /**
608
+ * This will create the Emil function.
609
+ * @summary Create the Emil function
610
+ * @param {CreateEmilFunctionRequestDto} createEmilFunctionRequestDto
611
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ */
615
+ async createEmilFunction(createEmilFunctionRequestDto: CreateEmilFunctionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
616
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createEmilFunction(createEmilFunctionRequestDto, authorization, options);
617
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
618
+ },
619
+ /**
620
+ * This will create the Emil function secret.
621
+ * @summary Create the Emil function secret
622
+ * @param {CreateEmilFunctionSecretRequestDto} createEmilFunctionSecretRequestDto
623
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
624
+ * @param {*} [options] Override http request option.
625
+ * @throws {RequiredError}
626
+ */
627
+ async createEmilFunctionSecret(createEmilFunctionSecretRequestDto: CreateEmilFunctionSecretRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptyResponseClass>> {
628
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createEmilFunctionSecret(createEmilFunctionSecretRequestDto, authorization, options);
629
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
630
+ },
631
+ /**
632
+ * Permanently deletes the Emil function. Supply the unique code that was returned when you created the Emil function and this will delete it.
633
+ * @summary Delete the Emil function
634
+ * @param {number} id
635
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
636
+ * @param {*} [options] Override http request option.
637
+ * @throws {RequiredError}
638
+ */
639
+ async deleteEmilFunction(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
640
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEmilFunction(id, authorization, options);
641
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
642
+ },
643
+ /**
644
+ * Permanently deletes the Emil function secret. Supply the unique code that was returned when you created the Emil function secret and this will delete it.
645
+ * @summary Delete the Emil function secret
646
+ * @param {string} name
647
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ */
651
+ async deleteEmilFunctionSecret(name: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
652
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEmilFunctionSecret(name, authorization, options);
653
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
654
+ },
655
+ /**
656
+ * This will execute the Emil function.
657
+ * @summary Execute the Emil function
658
+ * @param {string} slug
659
+ * @param {ExecuteEmilFunctionRequestDto} executeEmilFunctionRequestDto
660
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
661
+ * @param {*} [options] Override http request option.
662
+ * @throws {RequiredError}
663
+ */
664
+ async executeEmilFunction(slug: string, executeEmilFunctionRequestDto: ExecuteEmilFunctionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
665
+ const localVarAxiosArgs = await localVarAxiosParamCreator.executeEmilFunction(slug, executeEmilFunctionRequestDto, authorization, options);
666
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
667
+ },
668
+ /**
669
+ * Retrieves the details of the Emil function that was previously created. Supply the unique Emil function code that was returned when you created it and Emil Api will return the corresponding Emil function information.
670
+ * @summary Retrieve the Emil function
671
+ * @param {number} id
672
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ */
676
+ async getEmilFunction(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
677
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEmilFunction(id, authorization, options);
678
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
679
+ },
680
+ /**
681
+ * Retrieves the details of the Emil function secret that was previously created. Supply the unique Emil function secret code that was returned when you created it and Emil Api will return the corresponding Emil function secret information.
682
+ * @summary Retrieve the Emil function secret
683
+ * @param {string} name
684
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
685
+ * @param {*} [options] Override http request option.
686
+ * @throws {RequiredError}
687
+ */
688
+ async getEmilFunctionSecret(name: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEmilFunctionSecretResponseClass>> {
689
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEmilFunctionSecret(name, authorization, options);
690
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
691
+ },
692
+ /**
693
+ * Returns a list of Emil function secrets you have previously created. The Emil function secrets are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
694
+ * @summary List Emil function secrets
695
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
696
+ * @param {*} [options] Override http request option.
697
+ * @throws {RequiredError}
698
+ */
699
+ async listEmilFunctionSecrets(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEmilFunctionSecretsResponseClass>> {
700
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listEmilFunctionSecrets(authorization, options);
701
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
702
+ },
703
+ /**
704
+ * Returns a list of Emil functions you have previously created. The Emil functions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
705
+ * @summary List Emil functions
706
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
707
+ * @param {number} [pageSize] Page size.
708
+ * @param {string} [pageToken] Page token.
709
+ * @param {string} [filter] List filter
710
+ * @param {string} [search] Search query.
711
+ * @param {string} [order] Ordering criteria.
712
+ * @param {string} [expand] Extra fields to fetch.
713
+ * @param {string} [filters]
714
+ * @param {*} [options] Override http request option.
715
+ * @throws {RequiredError}
716
+ */
717
+ async listEmilFunctions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEmilFunctionsResponseClass>> {
718
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listEmilFunctions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
719
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
720
+ },
721
+ /**
722
+ * Updates the specified Emil function by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
723
+ * @summary Update the Emil function
724
+ * @param {number} id
725
+ * @param {UpdateEmilFunctionRequestDto} updateEmilFunctionRequestDto
726
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
727
+ * @param {*} [options] Override http request option.
728
+ * @throws {RequiredError}
729
+ */
730
+ async updateEmilFunction(id: number, updateEmilFunctionRequestDto: UpdateEmilFunctionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
731
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateEmilFunction(id, updateEmilFunctionRequestDto, authorization, options);
732
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
733
+ },
734
+ /**
735
+ * Updates the specified Emil function secret by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
736
+ * @summary Update the Emil function secret
737
+ * @param {string} name
738
+ * @param {UpdateEmilFunctionSecretRequestDto} updateEmilFunctionSecretRequestDto
739
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
740
+ * @param {*} [options] Override http request option.
741
+ * @throws {RequiredError}
742
+ */
743
+ async updateEmilFunctionSecret(name: string, updateEmilFunctionSecretRequestDto: UpdateEmilFunctionSecretRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptyResponseClass>> {
744
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateEmilFunctionSecret(name, updateEmilFunctionSecretRequestDto, authorization, options);
745
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
746
+ },
747
+ }
748
+ };
749
+
750
+ /**
751
+ * EmilFunctionsApi - factory interface
752
+ * @export
753
+ */
754
+ export const EmilFunctionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
755
+ const localVarFp = EmilFunctionsApiFp(configuration)
756
+ return {
757
+ /**
758
+ * This will create the Emil function.
759
+ * @summary Create the Emil function
760
+ * @param {CreateEmilFunctionRequestDto} createEmilFunctionRequestDto
761
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ createEmilFunction(createEmilFunctionRequestDto: CreateEmilFunctionRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
766
+ return localVarFp.createEmilFunction(createEmilFunctionRequestDto, authorization, options).then((request) => request(axios, basePath));
767
+ },
768
+ /**
769
+ * This will create the Emil function secret.
770
+ * @summary Create the Emil function secret
771
+ * @param {CreateEmilFunctionSecretRequestDto} createEmilFunctionSecretRequestDto
772
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
773
+ * @param {*} [options] Override http request option.
774
+ * @throws {RequiredError}
775
+ */
776
+ createEmilFunctionSecret(createEmilFunctionSecretRequestDto: CreateEmilFunctionSecretRequestDto, authorization?: string, options?: any): AxiosPromise<EmptyResponseClass> {
777
+ return localVarFp.createEmilFunctionSecret(createEmilFunctionSecretRequestDto, authorization, options).then((request) => request(axios, basePath));
778
+ },
779
+ /**
780
+ * Permanently deletes the Emil function. Supply the unique code that was returned when you created the Emil function and this will delete it.
781
+ * @summary Delete the Emil function
782
+ * @param {number} id
783
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ */
787
+ deleteEmilFunction(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
788
+ return localVarFp.deleteEmilFunction(id, authorization, options).then((request) => request(axios, basePath));
789
+ },
790
+ /**
791
+ * Permanently deletes the Emil function secret. Supply the unique code that was returned when you created the Emil function secret and this will delete it.
792
+ * @summary Delete the Emil function secret
793
+ * @param {string} name
794
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
795
+ * @param {*} [options] Override http request option.
796
+ * @throws {RequiredError}
797
+ */
798
+ deleteEmilFunctionSecret(name: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
799
+ return localVarFp.deleteEmilFunctionSecret(name, authorization, options).then((request) => request(axios, basePath));
800
+ },
801
+ /**
802
+ * This will execute the Emil function.
803
+ * @summary Execute the Emil function
804
+ * @param {string} slug
805
+ * @param {ExecuteEmilFunctionRequestDto} executeEmilFunctionRequestDto
806
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ executeEmilFunction(slug: string, executeEmilFunctionRequestDto: ExecuteEmilFunctionRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
811
+ return localVarFp.executeEmilFunction(slug, executeEmilFunctionRequestDto, authorization, options).then((request) => request(axios, basePath));
812
+ },
813
+ /**
814
+ * Retrieves the details of the Emil function that was previously created. Supply the unique Emil function code that was returned when you created it and Emil Api will return the corresponding Emil function information.
815
+ * @summary Retrieve the Emil function
816
+ * @param {number} id
817
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ */
821
+ getEmilFunction(id: number, authorization?: string, options?: any): AxiosPromise<object> {
822
+ return localVarFp.getEmilFunction(id, authorization, options).then((request) => request(axios, basePath));
823
+ },
824
+ /**
825
+ * Retrieves the details of the Emil function secret that was previously created. Supply the unique Emil function secret code that was returned when you created it and Emil Api will return the corresponding Emil function secret information.
826
+ * @summary Retrieve the Emil function secret
827
+ * @param {string} name
828
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
829
+ * @param {*} [options] Override http request option.
830
+ * @throws {RequiredError}
831
+ */
832
+ getEmilFunctionSecret(name: string, authorization?: string, options?: any): AxiosPromise<GetEmilFunctionSecretResponseClass> {
833
+ return localVarFp.getEmilFunctionSecret(name, authorization, options).then((request) => request(axios, basePath));
834
+ },
835
+ /**
836
+ * Returns a list of Emil function secrets you have previously created. The Emil function secrets are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
837
+ * @summary List Emil function secrets
838
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
839
+ * @param {*} [options] Override http request option.
840
+ * @throws {RequiredError}
841
+ */
842
+ listEmilFunctionSecrets(authorization?: string, options?: any): AxiosPromise<ListEmilFunctionSecretsResponseClass> {
843
+ return localVarFp.listEmilFunctionSecrets(authorization, options).then((request) => request(axios, basePath));
844
+ },
845
+ /**
846
+ * Returns a list of Emil functions you have previously created. The Emil functions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
847
+ * @summary List Emil functions
848
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
849
+ * @param {number} [pageSize] Page size.
850
+ * @param {string} [pageToken] Page token.
851
+ * @param {string} [filter] List filter
852
+ * @param {string} [search] Search query.
853
+ * @param {string} [order] Ordering criteria.
854
+ * @param {string} [expand] Extra fields to fetch.
855
+ * @param {string} [filters]
856
+ * @param {*} [options] Override http request option.
857
+ * @throws {RequiredError}
858
+ */
859
+ listEmilFunctions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListEmilFunctionsResponseClass> {
860
+ return localVarFp.listEmilFunctions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
861
+ },
862
+ /**
863
+ * Updates the specified Emil function by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
864
+ * @summary Update the Emil function
865
+ * @param {number} id
866
+ * @param {UpdateEmilFunctionRequestDto} updateEmilFunctionRequestDto
867
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
868
+ * @param {*} [options] Override http request option.
869
+ * @throws {RequiredError}
870
+ */
871
+ updateEmilFunction(id: number, updateEmilFunctionRequestDto: UpdateEmilFunctionRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
872
+ return localVarFp.updateEmilFunction(id, updateEmilFunctionRequestDto, authorization, options).then((request) => request(axios, basePath));
873
+ },
874
+ /**
875
+ * Updates the specified Emil function secret by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
876
+ * @summary Update the Emil function secret
877
+ * @param {string} name
878
+ * @param {UpdateEmilFunctionSecretRequestDto} updateEmilFunctionSecretRequestDto
879
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ */
883
+ updateEmilFunctionSecret(name: string, updateEmilFunctionSecretRequestDto: UpdateEmilFunctionSecretRequestDto, authorization?: string, options?: any): AxiosPromise<EmptyResponseClass> {
884
+ return localVarFp.updateEmilFunctionSecret(name, updateEmilFunctionSecretRequestDto, authorization, options).then((request) => request(axios, basePath));
885
+ },
886
+ };
887
+ };
888
+
889
+ /**
890
+ * Request parameters for createEmilFunction operation in EmilFunctionsApi.
891
+ * @export
892
+ * @interface EmilFunctionsApiCreateEmilFunctionRequest
893
+ */
894
+ export interface EmilFunctionsApiCreateEmilFunctionRequest {
895
+ /**
896
+ *
897
+ * @type {CreateEmilFunctionRequestDto}
898
+ * @memberof EmilFunctionsApiCreateEmilFunction
899
+ */
900
+ readonly createEmilFunctionRequestDto: CreateEmilFunctionRequestDto
901
+
902
+ /**
903
+ * Bearer Token: provided by the login endpoint under the name accessToken.
904
+ * @type {string}
905
+ * @memberof EmilFunctionsApiCreateEmilFunction
906
+ */
907
+ readonly authorization?: string
908
+ }
909
+
910
+ /**
911
+ * Request parameters for createEmilFunctionSecret operation in EmilFunctionsApi.
912
+ * @export
913
+ * @interface EmilFunctionsApiCreateEmilFunctionSecretRequest
914
+ */
915
+ export interface EmilFunctionsApiCreateEmilFunctionSecretRequest {
916
+ /**
917
+ *
918
+ * @type {CreateEmilFunctionSecretRequestDto}
919
+ * @memberof EmilFunctionsApiCreateEmilFunctionSecret
920
+ */
921
+ readonly createEmilFunctionSecretRequestDto: CreateEmilFunctionSecretRequestDto
922
+
923
+ /**
924
+ * Bearer Token: provided by the login endpoint under the name accessToken.
925
+ * @type {string}
926
+ * @memberof EmilFunctionsApiCreateEmilFunctionSecret
927
+ */
928
+ readonly authorization?: string
929
+ }
930
+
931
+ /**
932
+ * Request parameters for deleteEmilFunction operation in EmilFunctionsApi.
933
+ * @export
934
+ * @interface EmilFunctionsApiDeleteEmilFunctionRequest
935
+ */
936
+ export interface EmilFunctionsApiDeleteEmilFunctionRequest {
937
+ /**
938
+ *
939
+ * @type {number}
940
+ * @memberof EmilFunctionsApiDeleteEmilFunction
941
+ */
942
+ readonly id: number
943
+
944
+ /**
945
+ * Bearer Token: provided by the login endpoint under the name accessToken.
946
+ * @type {string}
947
+ * @memberof EmilFunctionsApiDeleteEmilFunction
948
+ */
949
+ readonly authorization?: string
950
+ }
951
+
952
+ /**
953
+ * Request parameters for deleteEmilFunctionSecret operation in EmilFunctionsApi.
954
+ * @export
955
+ * @interface EmilFunctionsApiDeleteEmilFunctionSecretRequest
956
+ */
957
+ export interface EmilFunctionsApiDeleteEmilFunctionSecretRequest {
958
+ /**
959
+ *
960
+ * @type {string}
961
+ * @memberof EmilFunctionsApiDeleteEmilFunctionSecret
962
+ */
963
+ readonly name: string
964
+
965
+ /**
966
+ * Bearer Token: provided by the login endpoint under the name accessToken.
967
+ * @type {string}
968
+ * @memberof EmilFunctionsApiDeleteEmilFunctionSecret
969
+ */
970
+ readonly authorization?: string
971
+ }
972
+
973
+ /**
974
+ * Request parameters for executeEmilFunction operation in EmilFunctionsApi.
975
+ * @export
976
+ * @interface EmilFunctionsApiExecuteEmilFunctionRequest
977
+ */
978
+ export interface EmilFunctionsApiExecuteEmilFunctionRequest {
979
+ /**
980
+ *
981
+ * @type {string}
982
+ * @memberof EmilFunctionsApiExecuteEmilFunction
983
+ */
984
+ readonly slug: string
985
+
986
+ /**
987
+ *
988
+ * @type {ExecuteEmilFunctionRequestDto}
989
+ * @memberof EmilFunctionsApiExecuteEmilFunction
990
+ */
991
+ readonly executeEmilFunctionRequestDto: ExecuteEmilFunctionRequestDto
992
+
993
+ /**
994
+ * Bearer Token: provided by the login endpoint under the name accessToken.
995
+ * @type {string}
996
+ * @memberof EmilFunctionsApiExecuteEmilFunction
997
+ */
998
+ readonly authorization?: string
999
+ }
1000
+
1001
+ /**
1002
+ * Request parameters for getEmilFunction operation in EmilFunctionsApi.
1003
+ * @export
1004
+ * @interface EmilFunctionsApiGetEmilFunctionRequest
1005
+ */
1006
+ export interface EmilFunctionsApiGetEmilFunctionRequest {
1007
+ /**
1008
+ *
1009
+ * @type {number}
1010
+ * @memberof EmilFunctionsApiGetEmilFunction
1011
+ */
1012
+ readonly id: number
1013
+
1014
+ /**
1015
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1016
+ * @type {string}
1017
+ * @memberof EmilFunctionsApiGetEmilFunction
1018
+ */
1019
+ readonly authorization?: string
1020
+ }
1021
+
1022
+ /**
1023
+ * Request parameters for getEmilFunctionSecret operation in EmilFunctionsApi.
1024
+ * @export
1025
+ * @interface EmilFunctionsApiGetEmilFunctionSecretRequest
1026
+ */
1027
+ export interface EmilFunctionsApiGetEmilFunctionSecretRequest {
1028
+ /**
1029
+ *
1030
+ * @type {string}
1031
+ * @memberof EmilFunctionsApiGetEmilFunctionSecret
1032
+ */
1033
+ readonly name: string
1034
+
1035
+ /**
1036
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1037
+ * @type {string}
1038
+ * @memberof EmilFunctionsApiGetEmilFunctionSecret
1039
+ */
1040
+ readonly authorization?: string
1041
+ }
1042
+
1043
+ /**
1044
+ * Request parameters for listEmilFunctionSecrets operation in EmilFunctionsApi.
1045
+ * @export
1046
+ * @interface EmilFunctionsApiListEmilFunctionSecretsRequest
1047
+ */
1048
+ export interface EmilFunctionsApiListEmilFunctionSecretsRequest {
1049
+ /**
1050
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1051
+ * @type {string}
1052
+ * @memberof EmilFunctionsApiListEmilFunctionSecrets
1053
+ */
1054
+ readonly authorization?: string
1055
+ }
1056
+
1057
+ /**
1058
+ * Request parameters for listEmilFunctions operation in EmilFunctionsApi.
1059
+ * @export
1060
+ * @interface EmilFunctionsApiListEmilFunctionsRequest
1061
+ */
1062
+ export interface EmilFunctionsApiListEmilFunctionsRequest {
1063
+ /**
1064
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1065
+ * @type {string}
1066
+ * @memberof EmilFunctionsApiListEmilFunctions
1067
+ */
1068
+ readonly authorization?: string
1069
+
1070
+ /**
1071
+ * Page size.
1072
+ * @type {number}
1073
+ * @memberof EmilFunctionsApiListEmilFunctions
1074
+ */
1075
+ readonly pageSize?: number
1076
+
1077
+ /**
1078
+ * Page token.
1079
+ * @type {string}
1080
+ * @memberof EmilFunctionsApiListEmilFunctions
1081
+ */
1082
+ readonly pageToken?: string
1083
+
1084
+ /**
1085
+ * List filter
1086
+ * @type {string}
1087
+ * @memberof EmilFunctionsApiListEmilFunctions
1088
+ */
1089
+ readonly filter?: string
1090
+
1091
+ /**
1092
+ * Search query.
1093
+ * @type {string}
1094
+ * @memberof EmilFunctionsApiListEmilFunctions
1095
+ */
1096
+ readonly search?: string
1097
+
1098
+ /**
1099
+ * Ordering criteria.
1100
+ * @type {string}
1101
+ * @memberof EmilFunctionsApiListEmilFunctions
1102
+ */
1103
+ readonly order?: string
1104
+
1105
+ /**
1106
+ * Extra fields to fetch.
1107
+ * @type {string}
1108
+ * @memberof EmilFunctionsApiListEmilFunctions
1109
+ */
1110
+ readonly expand?: string
1111
+
1112
+ /**
1113
+ *
1114
+ * @type {string}
1115
+ * @memberof EmilFunctionsApiListEmilFunctions
1116
+ */
1117
+ readonly filters?: string
1118
+ }
1119
+
1120
+ /**
1121
+ * Request parameters for updateEmilFunction operation in EmilFunctionsApi.
1122
+ * @export
1123
+ * @interface EmilFunctionsApiUpdateEmilFunctionRequest
1124
+ */
1125
+ export interface EmilFunctionsApiUpdateEmilFunctionRequest {
1126
+ /**
1127
+ *
1128
+ * @type {number}
1129
+ * @memberof EmilFunctionsApiUpdateEmilFunction
1130
+ */
1131
+ readonly id: number
1132
+
1133
+ /**
1134
+ *
1135
+ * @type {UpdateEmilFunctionRequestDto}
1136
+ * @memberof EmilFunctionsApiUpdateEmilFunction
1137
+ */
1138
+ readonly updateEmilFunctionRequestDto: UpdateEmilFunctionRequestDto
1139
+
1140
+ /**
1141
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1142
+ * @type {string}
1143
+ * @memberof EmilFunctionsApiUpdateEmilFunction
1144
+ */
1145
+ readonly authorization?: string
1146
+ }
1147
+
1148
+ /**
1149
+ * Request parameters for updateEmilFunctionSecret operation in EmilFunctionsApi.
1150
+ * @export
1151
+ * @interface EmilFunctionsApiUpdateEmilFunctionSecretRequest
1152
+ */
1153
+ export interface EmilFunctionsApiUpdateEmilFunctionSecretRequest {
1154
+ /**
1155
+ *
1156
+ * @type {string}
1157
+ * @memberof EmilFunctionsApiUpdateEmilFunctionSecret
1158
+ */
1159
+ readonly name: string
1160
+
1161
+ /**
1162
+ *
1163
+ * @type {UpdateEmilFunctionSecretRequestDto}
1164
+ * @memberof EmilFunctionsApiUpdateEmilFunctionSecret
1165
+ */
1166
+ readonly updateEmilFunctionSecretRequestDto: UpdateEmilFunctionSecretRequestDto
1167
+
1168
+ /**
1169
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1170
+ * @type {string}
1171
+ * @memberof EmilFunctionsApiUpdateEmilFunctionSecret
1172
+ */
1173
+ readonly authorization?: string
1174
+ }
1175
+
1176
+ /**
1177
+ * EmilFunctionsApi - object-oriented interface
1178
+ * @export
1179
+ * @class EmilFunctionsApi
1180
+ * @extends {BaseAPI}
1181
+ */
1182
+ export class EmilFunctionsApi extends BaseAPI {
1183
+ /**
1184
+ * This will create the Emil function.
1185
+ * @summary Create the Emil function
1186
+ * @param {EmilFunctionsApiCreateEmilFunctionRequest} requestParameters Request parameters.
1187
+ * @param {*} [options] Override http request option.
1188
+ * @throws {RequiredError}
1189
+ * @memberof EmilFunctionsApi
1190
+ */
1191
+ public createEmilFunction(requestParameters: EmilFunctionsApiCreateEmilFunctionRequest, options?: AxiosRequestConfig) {
1192
+ return EmilFunctionsApiFp(this.configuration).createEmilFunction(requestParameters.createEmilFunctionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1193
+ }
1194
+
1195
+ /**
1196
+ * This will create the Emil function secret.
1197
+ * @summary Create the Emil function secret
1198
+ * @param {EmilFunctionsApiCreateEmilFunctionSecretRequest} requestParameters Request parameters.
1199
+ * @param {*} [options] Override http request option.
1200
+ * @throws {RequiredError}
1201
+ * @memberof EmilFunctionsApi
1202
+ */
1203
+ public createEmilFunctionSecret(requestParameters: EmilFunctionsApiCreateEmilFunctionSecretRequest, options?: AxiosRequestConfig) {
1204
+ return EmilFunctionsApiFp(this.configuration).createEmilFunctionSecret(requestParameters.createEmilFunctionSecretRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1205
+ }
1206
+
1207
+ /**
1208
+ * Permanently deletes the Emil function. Supply the unique code that was returned when you created the Emil function and this will delete it.
1209
+ * @summary Delete the Emil function
1210
+ * @param {EmilFunctionsApiDeleteEmilFunctionRequest} requestParameters Request parameters.
1211
+ * @param {*} [options] Override http request option.
1212
+ * @throws {RequiredError}
1213
+ * @memberof EmilFunctionsApi
1214
+ */
1215
+ public deleteEmilFunction(requestParameters: EmilFunctionsApiDeleteEmilFunctionRequest, options?: AxiosRequestConfig) {
1216
+ return EmilFunctionsApiFp(this.configuration).deleteEmilFunction(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1217
+ }
1218
+
1219
+ /**
1220
+ * Permanently deletes the Emil function secret. Supply the unique code that was returned when you created the Emil function secret and this will delete it.
1221
+ * @summary Delete the Emil function secret
1222
+ * @param {EmilFunctionsApiDeleteEmilFunctionSecretRequest} requestParameters Request parameters.
1223
+ * @param {*} [options] Override http request option.
1224
+ * @throws {RequiredError}
1225
+ * @memberof EmilFunctionsApi
1226
+ */
1227
+ public deleteEmilFunctionSecret(requestParameters: EmilFunctionsApiDeleteEmilFunctionSecretRequest, options?: AxiosRequestConfig) {
1228
+ return EmilFunctionsApiFp(this.configuration).deleteEmilFunctionSecret(requestParameters.name, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1229
+ }
1230
+
1231
+ /**
1232
+ * This will execute the Emil function.
1233
+ * @summary Execute the Emil function
1234
+ * @param {EmilFunctionsApiExecuteEmilFunctionRequest} requestParameters Request parameters.
1235
+ * @param {*} [options] Override http request option.
1236
+ * @throws {RequiredError}
1237
+ * @memberof EmilFunctionsApi
1238
+ */
1239
+ public executeEmilFunction(requestParameters: EmilFunctionsApiExecuteEmilFunctionRequest, options?: AxiosRequestConfig) {
1240
+ return EmilFunctionsApiFp(this.configuration).executeEmilFunction(requestParameters.slug, requestParameters.executeEmilFunctionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1241
+ }
1242
+
1243
+ /**
1244
+ * Retrieves the details of the Emil function that was previously created. Supply the unique Emil function code that was returned when you created it and Emil Api will return the corresponding Emil function information.
1245
+ * @summary Retrieve the Emil function
1246
+ * @param {EmilFunctionsApiGetEmilFunctionRequest} requestParameters Request parameters.
1247
+ * @param {*} [options] Override http request option.
1248
+ * @throws {RequiredError}
1249
+ * @memberof EmilFunctionsApi
1250
+ */
1251
+ public getEmilFunction(requestParameters: EmilFunctionsApiGetEmilFunctionRequest, options?: AxiosRequestConfig) {
1252
+ return EmilFunctionsApiFp(this.configuration).getEmilFunction(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1253
+ }
1254
+
1255
+ /**
1256
+ * Retrieves the details of the Emil function secret that was previously created. Supply the unique Emil function secret code that was returned when you created it and Emil Api will return the corresponding Emil function secret information.
1257
+ * @summary Retrieve the Emil function secret
1258
+ * @param {EmilFunctionsApiGetEmilFunctionSecretRequest} requestParameters Request parameters.
1259
+ * @param {*} [options] Override http request option.
1260
+ * @throws {RequiredError}
1261
+ * @memberof EmilFunctionsApi
1262
+ */
1263
+ public getEmilFunctionSecret(requestParameters: EmilFunctionsApiGetEmilFunctionSecretRequest, options?: AxiosRequestConfig) {
1264
+ return EmilFunctionsApiFp(this.configuration).getEmilFunctionSecret(requestParameters.name, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1265
+ }
1266
+
1267
+ /**
1268
+ * Returns a list of Emil function secrets you have previously created. The Emil function secrets are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1269
+ * @summary List Emil function secrets
1270
+ * @param {EmilFunctionsApiListEmilFunctionSecretsRequest} requestParameters Request parameters.
1271
+ * @param {*} [options] Override http request option.
1272
+ * @throws {RequiredError}
1273
+ * @memberof EmilFunctionsApi
1274
+ */
1275
+ public listEmilFunctionSecrets(requestParameters: EmilFunctionsApiListEmilFunctionSecretsRequest = {}, options?: AxiosRequestConfig) {
1276
+ return EmilFunctionsApiFp(this.configuration).listEmilFunctionSecrets(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1277
+ }
1278
+
1279
+ /**
1280
+ * Returns a list of Emil functions you have previously created. The Emil functions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1281
+ * @summary List Emil functions
1282
+ * @param {EmilFunctionsApiListEmilFunctionsRequest} requestParameters Request parameters.
1283
+ * @param {*} [options] Override http request option.
1284
+ * @throws {RequiredError}
1285
+ * @memberof EmilFunctionsApi
1286
+ */
1287
+ public listEmilFunctions(requestParameters: EmilFunctionsApiListEmilFunctionsRequest = {}, options?: AxiosRequestConfig) {
1288
+ return EmilFunctionsApiFp(this.configuration).listEmilFunctions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1289
+ }
1290
+
1291
+ /**
1292
+ * Updates the specified Emil function by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1293
+ * @summary Update the Emil function
1294
+ * @param {EmilFunctionsApiUpdateEmilFunctionRequest} requestParameters Request parameters.
1295
+ * @param {*} [options] Override http request option.
1296
+ * @throws {RequiredError}
1297
+ * @memberof EmilFunctionsApi
1298
+ */
1299
+ public updateEmilFunction(requestParameters: EmilFunctionsApiUpdateEmilFunctionRequest, options?: AxiosRequestConfig) {
1300
+ return EmilFunctionsApiFp(this.configuration).updateEmilFunction(requestParameters.id, requestParameters.updateEmilFunctionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1301
+ }
1302
+
1303
+ /**
1304
+ * Updates the specified Emil function secret by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1305
+ * @summary Update the Emil function secret
1306
+ * @param {EmilFunctionsApiUpdateEmilFunctionSecretRequest} requestParameters Request parameters.
1307
+ * @param {*} [options] Override http request option.
1308
+ * @throws {RequiredError}
1309
+ * @memberof EmilFunctionsApi
1310
+ */
1311
+ public updateEmilFunctionSecret(requestParameters: EmilFunctionsApiUpdateEmilFunctionSecretRequest, options?: AxiosRequestConfig) {
1312
+ return EmilFunctionsApiFp(this.configuration).updateEmilFunctionSecret(requestParameters.name, requestParameters.updateEmilFunctionSecretRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1313
+ }
1314
+ }