@emilgroup/insurance-sdk-node 1.48.0 → 1.48.1-beta.2

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