@emilgroup/accounting-sdk-node 1.1.0 → 1.3.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 (223) hide show
  1. package/.openapi-generator/FILES +52 -15
  2. package/README.md +2 -2
  3. package/api/health-api.ts +7 -7
  4. package/api/mailbox-api.ts +255 -0
  5. package/api/messages-api.ts +1100 -0
  6. package/api/users-api.ts +496 -0
  7. package/api/vbas-api.ts +592 -0
  8. package/api/vbus-api.ts +701 -0
  9. package/api/zip-codes-api.ts +443 -0
  10. package/api.ts +14 -6
  11. package/base.ts +2 -2
  12. package/common.ts +4 -4
  13. package/configuration.ts +2 -2
  14. package/dist/api/health-api.d.ts +6 -6
  15. package/dist/api/health-api.js +7 -7
  16. package/dist/api/mailbox-api.d.ts +142 -0
  17. package/dist/api/mailbox-api.js +315 -0
  18. package/dist/api/messages-api.d.ts +632 -0
  19. package/dist/api/messages-api.js +916 -0
  20. package/dist/api/users-api.d.ts +275 -0
  21. package/dist/api/users-api.js +512 -0
  22. package/dist/api/vbas-api.d.ts +337 -0
  23. package/dist/api/{financial-accounts-api.js → vbas-api.js} +161 -156
  24. package/dist/api/vbus-api.d.ts +395 -0
  25. package/dist/api/vbus-api.js +647 -0
  26. package/dist/api/zip-codes-api.d.ts +253 -0
  27. package/dist/api/{booking-processes-api.js → zip-codes-api.js} +166 -80
  28. package/dist/api.d.ts +8 -4
  29. package/dist/api.js +8 -4
  30. package/dist/base.d.ts +2 -2
  31. package/dist/base.js +2 -2
  32. package/dist/common.d.ts +4 -4
  33. package/dist/common.js +2 -2
  34. package/dist/configuration.d.ts +2 -2
  35. package/dist/configuration.js +2 -2
  36. package/dist/index.d.ts +2 -2
  37. package/dist/index.js +2 -2
  38. package/dist/models/address-class.d.ts +48 -0
  39. package/dist/models/{get-financial-account-response-class.js → address-class.js} +2 -2
  40. package/dist/models/create-mailbox-request-dto.d.ts +36 -0
  41. package/dist/models/{create-booking-process-response-class.js → create-mailbox-request-dto.js} +2 -2
  42. package/dist/models/create-user-request-dto.d.ts +76 -0
  43. package/dist/models/{financial-account-class.js → create-user-request-dto.js} +10 -9
  44. package/dist/models/create-user-response-class.d.ts +25 -0
  45. package/dist/models/{financial-transaction-class.js → create-user-response-class.js} +2 -2
  46. package/dist/models/create-vba-request-dto.d.ts +41 -0
  47. package/dist/models/create-vba-request-dto.js +20 -0
  48. package/dist/models/create-vba-response-class.d.ts +24 -0
  49. package/dist/models/{create-financial-account-response-class.js → create-vba-response-class.js} +2 -2
  50. package/dist/models/create-vbu-request-dto.d.ts +41 -0
  51. package/dist/models/create-vbu-request-dto.js +20 -0
  52. package/dist/models/create-vbu-response-class.d.ts +24 -0
  53. package/dist/models/create-vbu-response-class.js +15 -0
  54. package/dist/models/create-vbuv-request-dto.d.ts +41 -0
  55. package/dist/models/create-vbuv-request-dto.js +20 -0
  56. package/dist/models/create-vbuv-response-class.d.ts +24 -0
  57. package/dist/models/create-vbuv-response-class.js +15 -0
  58. package/dist/models/get-request-message-response-class.d.ts +25 -0
  59. package/dist/models/get-request-message-response-class.js +15 -0
  60. package/dist/models/get-response-message-response-class.d.ts +25 -0
  61. package/dist/models/get-response-message-response-class.js +15 -0
  62. package/dist/models/get-user-response-class.d.ts +25 -0
  63. package/dist/models/get-user-response-class.js +15 -0
  64. package/dist/models/get-vba-response-class.d.ts +25 -0
  65. package/dist/models/get-vba-response-class.js +15 -0
  66. package/dist/models/get-vbu-response-class.d.ts +25 -0
  67. package/dist/models/get-vbu-response-class.js +15 -0
  68. package/dist/models/get-zip-code-response-class.d.ts +25 -0
  69. package/dist/models/get-zip-code-response-class.js +15 -0
  70. package/dist/models/index.d.ts +46 -13
  71. package/dist/models/index.js +46 -13
  72. package/dist/models/inline-response200.d.ts +2 -2
  73. package/dist/models/inline-response200.js +2 -2
  74. package/dist/models/inline-response503.d.ts +2 -2
  75. package/dist/models/inline-response503.js +2 -2
  76. package/dist/models/list-all-messages-response-class.d.ts +31 -0
  77. package/dist/models/list-all-messages-response-class.js +15 -0
  78. package/dist/models/list-requests-messages-response-class.d.ts +31 -0
  79. package/dist/models/list-requests-messages-response-class.js +15 -0
  80. package/dist/models/list-responses-messages-response-class.d.ts +31 -0
  81. package/dist/models/list-responses-messages-response-class.js +15 -0
  82. package/dist/models/list-users-response-class.d.ts +31 -0
  83. package/dist/models/list-users-response-class.js +15 -0
  84. package/dist/models/list-vbas-response-class.d.ts +31 -0
  85. package/dist/models/list-vbas-response-class.js +15 -0
  86. package/dist/models/list-vbus-response-class.d.ts +31 -0
  87. package/dist/models/list-vbus-response-class.js +15 -0
  88. package/dist/models/list-zip-codes-response-class.d.ts +31 -0
  89. package/dist/models/list-zip-codes-response-class.js +15 -0
  90. package/dist/models/message-class.d.ts +84 -0
  91. package/dist/models/message-class.js +15 -0
  92. package/dist/models/request-details-class.d.ts +48 -0
  93. package/dist/models/request-details-class.js +15 -0
  94. package/dist/models/request-message-class.d.ts +121 -0
  95. package/dist/models/request-message-class.js +15 -0
  96. package/dist/models/response-details-class.d.ts +42 -0
  97. package/dist/models/response-details-class.js +15 -0
  98. package/dist/models/response-message-class.d.ts +133 -0
  99. package/dist/models/response-message-class.js +15 -0
  100. package/dist/models/store-zip-codes-request-dto.d.ts +25 -0
  101. package/dist/models/store-zip-codes-request-dto.js +15 -0
  102. package/dist/models/store-zip-codes-response-class.d.ts +25 -0
  103. package/dist/models/store-zip-codes-response-class.js +15 -0
  104. package/dist/models/update-request-message-request-dto.d.ts +36 -0
  105. package/dist/models/update-request-message-request-dto.js +15 -0
  106. package/dist/models/update-request-message-response-class.d.ts +25 -0
  107. package/dist/models/update-request-message-response-class.js +15 -0
  108. package/dist/models/update-response-message-request-dto.d.ts +36 -0
  109. package/dist/models/update-response-message-request-dto.js +15 -0
  110. package/dist/models/update-response-message-response-class.d.ts +25 -0
  111. package/dist/models/update-response-message-response-class.js +15 -0
  112. package/dist/models/update-user-request-dto.d.ts +82 -0
  113. package/dist/models/{financial-transaction-data-dto.js → update-user-request-dto.js} +10 -6
  114. package/dist/models/update-user-response-class.d.ts +25 -0
  115. package/dist/models/update-user-response-class.js +15 -0
  116. package/dist/models/update-vba-request-dto.d.ts +30 -0
  117. package/dist/models/update-vba-request-dto.js +15 -0
  118. package/dist/models/update-vbu-request-dto.d.ts +30 -0
  119. package/dist/models/update-vbu-request-dto.js +15 -0
  120. package/dist/models/update-vbu-response-class.d.ts +25 -0
  121. package/dist/models/update-vbu-response-class.js +15 -0
  122. package/dist/models/user-class.d.ts +107 -0
  123. package/dist/models/user-class.js +20 -0
  124. package/dist/models/vba-class.d.ts +116 -0
  125. package/dist/models/vba-class.js +15 -0
  126. package/dist/models/vba-response-class.d.ts +48 -0
  127. package/dist/models/vba-response-class.js +15 -0
  128. package/dist/models/vbu-class.d.ts +115 -0
  129. package/dist/models/vbu-class.js +15 -0
  130. package/dist/models/vbu-response-class.d.ts +48 -0
  131. package/dist/models/vbu-response-class.js +15 -0
  132. package/dist/models/xlsx-zip-code-dto.d.ts +30 -0
  133. package/dist/models/xlsx-zip-code-dto.js +15 -0
  134. package/dist/models/zip-code-class.d.ts +60 -0
  135. package/dist/models/zip-code-class.js +15 -0
  136. package/index.ts +2 -2
  137. package/models/address-class.ts +54 -0
  138. package/models/create-mailbox-request-dto.ts +42 -0
  139. package/models/create-user-request-dto.ts +86 -0
  140. package/models/create-user-response-class.ts +31 -0
  141. package/models/create-vba-request-dto.ts +50 -0
  142. package/models/create-vba-response-class.ts +30 -0
  143. package/models/create-vbu-request-dto.ts +50 -0
  144. package/models/create-vbu-response-class.ts +30 -0
  145. package/models/create-vbuv-request-dto.ts +50 -0
  146. package/models/create-vbuv-response-class.ts +30 -0
  147. package/models/get-request-message-response-class.ts +31 -0
  148. package/models/get-response-message-response-class.ts +31 -0
  149. package/models/get-user-response-class.ts +31 -0
  150. package/models/get-vba-response-class.ts +31 -0
  151. package/models/get-vbu-response-class.ts +31 -0
  152. package/models/get-zip-code-response-class.ts +31 -0
  153. package/models/index.ts +46 -13
  154. package/models/inline-response200.ts +2 -2
  155. package/models/inline-response503.ts +2 -2
  156. package/models/list-all-messages-response-class.ts +37 -0
  157. package/models/list-requests-messages-response-class.ts +37 -0
  158. package/models/list-responses-messages-response-class.ts +37 -0
  159. package/models/list-users-response-class.ts +37 -0
  160. package/models/list-vbas-response-class.ts +37 -0
  161. package/models/list-vbus-response-class.ts +37 -0
  162. package/models/list-zip-codes-response-class.ts +37 -0
  163. package/models/message-class.ts +90 -0
  164. package/models/request-details-class.ts +54 -0
  165. package/models/request-message-class.ts +127 -0
  166. package/models/response-details-class.ts +48 -0
  167. package/models/response-message-class.ts +139 -0
  168. package/models/store-zip-codes-request-dto.ts +31 -0
  169. package/models/store-zip-codes-response-class.ts +31 -0
  170. package/models/update-request-message-request-dto.ts +42 -0
  171. package/models/update-request-message-response-class.ts +31 -0
  172. package/models/update-response-message-request-dto.ts +42 -0
  173. package/models/update-response-message-response-class.ts +31 -0
  174. package/models/update-user-request-dto.ts +92 -0
  175. package/models/update-user-response-class.ts +31 -0
  176. package/models/update-vba-request-dto.ts +36 -0
  177. package/models/update-vbu-request-dto.ts +36 -0
  178. package/models/update-vbu-response-class.ts +31 -0
  179. package/models/user-class.ts +116 -0
  180. package/models/vba-class.ts +122 -0
  181. package/models/vba-response-class.ts +54 -0
  182. package/models/vbu-class.ts +121 -0
  183. package/models/vbu-response-class.ts +54 -0
  184. package/models/xlsx-zip-code-dto.ts +36 -0
  185. package/models/zip-code-class.ts +66 -0
  186. package/package.json +1 -1
  187. package/api/booking-processes-api.ts +0 -357
  188. package/api/financial-accounts-api.ts +0 -577
  189. package/dist/api/booking-processes-api.d.ts +0 -207
  190. package/dist/api/financial-accounts-api.d.ts +0 -327
  191. package/dist/models/booking-entry-class.d.ts +0 -123
  192. package/dist/models/booking-entry-class.js +0 -34
  193. package/dist/models/booking-process-class.d.ts +0 -94
  194. package/dist/models/booking-process-class.js +0 -29
  195. package/dist/models/create-booking-entry-request-dto.d.ts +0 -99
  196. package/dist/models/create-booking-entry-request-dto.js +0 -34
  197. package/dist/models/create-booking-process-request-dto.d.ts +0 -64
  198. package/dist/models/create-booking-process-request-dto.js +0 -29
  199. package/dist/models/create-booking-process-response-class.d.ts +0 -25
  200. package/dist/models/create-financial-account-request-dto.d.ts +0 -62
  201. package/dist/models/create-financial-account-request-dto.js +0 -23
  202. package/dist/models/create-financial-account-response-class.d.ts +0 -25
  203. package/dist/models/financial-account-class.d.ts +0 -98
  204. package/dist/models/financial-transaction-class.d.ts +0 -108
  205. package/dist/models/financial-transaction-data-dto.d.ts +0 -71
  206. package/dist/models/get-financial-account-response-class.d.ts +0 -25
  207. package/dist/models/list-booking-process-response-class.d.ts +0 -31
  208. package/dist/models/list-booking-process-response-class.js +0 -15
  209. package/dist/models/list-financial-accounts-response-class.d.ts +0 -31
  210. package/dist/models/list-financial-accounts-response-class.js +0 -15
  211. package/models/booking-entry-class.ts +0 -133
  212. package/models/booking-process-class.ts +0 -104
  213. package/models/create-booking-entry-request-dto.ts +0 -109
  214. package/models/create-booking-process-request-dto.ts +0 -74
  215. package/models/create-booking-process-response-class.ts +0 -31
  216. package/models/create-financial-account-request-dto.ts +0 -71
  217. package/models/create-financial-account-response-class.ts +0 -31
  218. package/models/financial-account-class.ts +0 -107
  219. package/models/financial-transaction-class.ts +0 -114
  220. package/models/financial-transaction-data-dto.ts +0 -80
  221. package/models/get-financial-account-response-class.ts +0 -31
  222. package/models/list-booking-process-response-class.ts +0 -37
  223. package/models/list-financial-accounts-response-class.ts +0 -37
@@ -0,0 +1,916 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL GdvService
6
+ * The EMIL GdvService 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.MessagesApi = exports.MessagesApiFactory = exports.MessagesApiFp = exports.MessagesApiAxiosParamCreator = 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
+ * MessagesApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var MessagesApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Retrieves the details of the request message that was previously created. Supply the unique request message code that was returned when you created it and Emil Api will return the corresponding request message information.
101
+ * @summary Retrieve the request message
102
+ * @param {string} code Unique identifier for the object.
103
+ * @param {string} [authorization] Bearer Token
104
+ * @param {string} [expand]
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ getRequestMessage: function (code, authorization, expand, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'code' is not null or undefined
116
+ (0, common_1.assertParamExists)('getRequestMessage', 'code', code);
117
+ localVarPath = "/gdvservice/v1/messages/requests/{code}"
118
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
119
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
120
+ if (configuration) {
121
+ baseOptions = configuration.baseOptions;
122
+ baseAccessToken = configuration.accessToken;
123
+ }
124
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
125
+ localVarHeaderParameter = {};
126
+ localVarQueryParameter = {};
127
+ // authentication bearer required
128
+ // http bearer authentication required
129
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
130
+ case 1:
131
+ // authentication bearer required
132
+ // http bearer authentication required
133
+ _a.sent();
134
+ if (expand !== undefined) {
135
+ localVarQueryParameter['expand'] = expand;
136
+ }
137
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
138
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
139
+ }
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ return [2 /*return*/, {
144
+ url: (0, common_1.toPathString)(localVarUrlObj),
145
+ options: localVarRequestOptions,
146
+ }];
147
+ }
148
+ });
149
+ });
150
+ },
151
+ /**
152
+ * Retrieves the details of the response message that was previously created. Supply the unique response message code that was returned when you created it and Emil Api will return the corresponding response message information.
153
+ * @summary Retrieve the response message
154
+ * @param {string} code Unique identifier for the object.
155
+ * @param {string} [authorization] Bearer Token
156
+ * @param {string} [expand]
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ getResponseMessage: function (code, authorization, expand, options) {
161
+ if (options === void 0) { options = {}; }
162
+ return __awaiter(_this, void 0, void 0, function () {
163
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
164
+ return __generator(this, function (_a) {
165
+ switch (_a.label) {
166
+ case 0:
167
+ // verify required parameter 'code' is not null or undefined
168
+ (0, common_1.assertParamExists)('getResponseMessage', 'code', code);
169
+ localVarPath = "/gdvservice/v1/messages/responses/{code}"
170
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
171
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
172
+ if (configuration) {
173
+ baseOptions = configuration.baseOptions;
174
+ baseAccessToken = configuration.accessToken;
175
+ }
176
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
177
+ localVarHeaderParameter = {};
178
+ localVarQueryParameter = {};
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
182
+ case 1:
183
+ // authentication bearer required
184
+ // http bearer authentication required
185
+ _a.sent();
186
+ if (expand !== undefined) {
187
+ localVarQueryParameter['expand'] = expand;
188
+ }
189
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
190
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
191
+ }
192
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
193
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
194
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
195
+ return [2 /*return*/, {
196
+ url: (0, common_1.toPathString)(localVarUrlObj),
197
+ options: localVarRequestOptions,
198
+ }];
199
+ }
200
+ });
201
+ });
202
+ },
203
+ /**
204
+ * Returns a list of messages you have previously created. The messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
205
+ * @summary List messages
206
+ * @param {string} [authorization] Bearer Token
207
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
208
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
209
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
210
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
211
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
212
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
213
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
217
+ listAllMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
218
+ if (options === void 0) { options = {}; }
219
+ return __awaiter(_this, void 0, void 0, function () {
220
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
221
+ return __generator(this, function (_a) {
222
+ switch (_a.label) {
223
+ case 0:
224
+ localVarPath = "/gdvservice/v1/messages";
225
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
226
+ if (configuration) {
227
+ baseOptions = configuration.baseOptions;
228
+ baseAccessToken = configuration.accessToken;
229
+ }
230
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
231
+ localVarHeaderParameter = {};
232
+ localVarQueryParameter = {};
233
+ // authentication bearer required
234
+ // http bearer authentication required
235
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
236
+ case 1:
237
+ // authentication bearer required
238
+ // http bearer authentication required
239
+ _a.sent();
240
+ if (pageSize !== undefined) {
241
+ localVarQueryParameter['pageSize'] = pageSize;
242
+ }
243
+ if (pageToken !== undefined) {
244
+ localVarQueryParameter['pageToken'] = pageToken;
245
+ }
246
+ if (filter !== undefined) {
247
+ localVarQueryParameter['filter'] = filter;
248
+ }
249
+ if (search !== undefined) {
250
+ localVarQueryParameter['search'] = search;
251
+ }
252
+ if (order !== undefined) {
253
+ localVarQueryParameter['order'] = order;
254
+ }
255
+ if (expand !== undefined) {
256
+ localVarQueryParameter['expand'] = expand;
257
+ }
258
+ if (filters !== undefined) {
259
+ localVarQueryParameter['filters'] = filters;
260
+ }
261
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
262
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
263
+ }
264
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
265
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
266
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
267
+ return [2 /*return*/, {
268
+ url: (0, common_1.toPathString)(localVarUrlObj),
269
+ options: localVarRequestOptions,
270
+ }];
271
+ }
272
+ });
273
+ });
274
+ },
275
+ /**
276
+ * Returns a list of requests messages you have previously created. The requests messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
277
+ * @summary List requests messages
278
+ * @param {string} [authorization] Bearer Token
279
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
280
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
281
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
282
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
283
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
284
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
285
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
286
+ * @param {*} [options] Override http request option.
287
+ * @throws {RequiredError}
288
+ */
289
+ listRequestsMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
290
+ if (options === void 0) { options = {}; }
291
+ return __awaiter(_this, void 0, void 0, function () {
292
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
293
+ return __generator(this, function (_a) {
294
+ switch (_a.label) {
295
+ case 0:
296
+ localVarPath = "/gdvservice/v1/messages/requests";
297
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
298
+ if (configuration) {
299
+ baseOptions = configuration.baseOptions;
300
+ baseAccessToken = configuration.accessToken;
301
+ }
302
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
303
+ localVarHeaderParameter = {};
304
+ localVarQueryParameter = {};
305
+ // authentication bearer required
306
+ // http bearer authentication required
307
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
308
+ case 1:
309
+ // authentication bearer required
310
+ // http bearer authentication required
311
+ _a.sent();
312
+ if (pageSize !== undefined) {
313
+ localVarQueryParameter['pageSize'] = pageSize;
314
+ }
315
+ if (pageToken !== undefined) {
316
+ localVarQueryParameter['pageToken'] = pageToken;
317
+ }
318
+ if (filter !== undefined) {
319
+ localVarQueryParameter['filter'] = filter;
320
+ }
321
+ if (search !== undefined) {
322
+ localVarQueryParameter['search'] = search;
323
+ }
324
+ if (order !== undefined) {
325
+ localVarQueryParameter['order'] = order;
326
+ }
327
+ if (expand !== undefined) {
328
+ localVarQueryParameter['expand'] = expand;
329
+ }
330
+ if (filters !== undefined) {
331
+ localVarQueryParameter['filters'] = filters;
332
+ }
333
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
334
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
335
+ }
336
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
337
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
338
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
339
+ return [2 /*return*/, {
340
+ url: (0, common_1.toPathString)(localVarUrlObj),
341
+ options: localVarRequestOptions,
342
+ }];
343
+ }
344
+ });
345
+ });
346
+ },
347
+ /**
348
+ * Returns a list of responses messages you have previously created. The responses messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
349
+ * @summary List responses messages
350
+ * @param {string} [authorization] Bearer Token
351
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
352
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
353
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
354
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
355
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
356
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
357
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ listResponsesMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
362
+ if (options === void 0) { options = {}; }
363
+ return __awaiter(_this, void 0, void 0, function () {
364
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
365
+ return __generator(this, function (_a) {
366
+ switch (_a.label) {
367
+ case 0:
368
+ localVarPath = "/gdvservice/v1/messages/responses";
369
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
370
+ if (configuration) {
371
+ baseOptions = configuration.baseOptions;
372
+ baseAccessToken = configuration.accessToken;
373
+ }
374
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
375
+ localVarHeaderParameter = {};
376
+ localVarQueryParameter = {};
377
+ // authentication bearer required
378
+ // http bearer authentication required
379
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
380
+ case 1:
381
+ // authentication bearer required
382
+ // http bearer authentication required
383
+ _a.sent();
384
+ if (pageSize !== undefined) {
385
+ localVarQueryParameter['pageSize'] = pageSize;
386
+ }
387
+ if (pageToken !== undefined) {
388
+ localVarQueryParameter['pageToken'] = pageToken;
389
+ }
390
+ if (filter !== undefined) {
391
+ localVarQueryParameter['filter'] = filter;
392
+ }
393
+ if (search !== undefined) {
394
+ localVarQueryParameter['search'] = search;
395
+ }
396
+ if (order !== undefined) {
397
+ localVarQueryParameter['order'] = order;
398
+ }
399
+ if (expand !== undefined) {
400
+ localVarQueryParameter['expand'] = expand;
401
+ }
402
+ if (filters !== undefined) {
403
+ localVarQueryParameter['filters'] = filters;
404
+ }
405
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
406
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
407
+ }
408
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
409
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
410
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
411
+ return [2 /*return*/, {
412
+ url: (0, common_1.toPathString)(localVarUrlObj),
413
+ options: localVarRequestOptions,
414
+ }];
415
+ }
416
+ });
417
+ });
418
+ },
419
+ /**
420
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
421
+ * @summary Update the request message
422
+ * @param {string} code Unique identifier for the object.
423
+ * @param {UpdateRequestMessageRequestDto} updateRequestMessageRequestDto
424
+ * @param {string} [authorization] Bearer Token
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ updateRequestMessage: function (code, updateRequestMessageRequestDto, authorization, options) {
429
+ if (options === void 0) { options = {}; }
430
+ return __awaiter(_this, void 0, void 0, function () {
431
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
432
+ return __generator(this, function (_a) {
433
+ switch (_a.label) {
434
+ case 0:
435
+ // verify required parameter 'code' is not null or undefined
436
+ (0, common_1.assertParamExists)('updateRequestMessage', 'code', code);
437
+ // verify required parameter 'updateRequestMessageRequestDto' is not null or undefined
438
+ (0, common_1.assertParamExists)('updateRequestMessage', 'updateRequestMessageRequestDto', updateRequestMessageRequestDto);
439
+ localVarPath = "/gdvservice/v1/messages/requests/{code}"
440
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
441
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
442
+ if (configuration) {
443
+ baseOptions = configuration.baseOptions;
444
+ baseAccessToken = configuration.accessToken;
445
+ }
446
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
447
+ localVarHeaderParameter = {};
448
+ localVarQueryParameter = {};
449
+ // authentication bearer required
450
+ // http bearer authentication required
451
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
452
+ case 1:
453
+ // authentication bearer required
454
+ // http bearer authentication required
455
+ _a.sent();
456
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
457
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
458
+ }
459
+ localVarHeaderParameter['Content-Type'] = 'application/json';
460
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
461
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
462
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
463
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateRequestMessageRequestDto, localVarRequestOptions, configuration);
464
+ return [2 /*return*/, {
465
+ url: (0, common_1.toPathString)(localVarUrlObj),
466
+ options: localVarRequestOptions,
467
+ }];
468
+ }
469
+ });
470
+ });
471
+ },
472
+ /**
473
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
474
+ * @summary Update the request message
475
+ * @param {string} code Unique identifier for the object.
476
+ * @param {UpdateResponseMessageRequestDto} updateResponseMessageRequestDto
477
+ * @param {string} [authorization] Bearer Token
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ updateResponseMessage: function (code, updateResponseMessageRequestDto, authorization, options) {
482
+ if (options === void 0) { options = {}; }
483
+ return __awaiter(_this, void 0, void 0, function () {
484
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
485
+ return __generator(this, function (_a) {
486
+ switch (_a.label) {
487
+ case 0:
488
+ // verify required parameter 'code' is not null or undefined
489
+ (0, common_1.assertParamExists)('updateResponseMessage', 'code', code);
490
+ // verify required parameter 'updateResponseMessageRequestDto' is not null or undefined
491
+ (0, common_1.assertParamExists)('updateResponseMessage', 'updateResponseMessageRequestDto', updateResponseMessageRequestDto);
492
+ localVarPath = "/gdvservice/v1/messages/responses/{code}"
493
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
494
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
495
+ if (configuration) {
496
+ baseOptions = configuration.baseOptions;
497
+ baseAccessToken = configuration.accessToken;
498
+ }
499
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
500
+ localVarHeaderParameter = {};
501
+ localVarQueryParameter = {};
502
+ // authentication bearer required
503
+ // http bearer authentication required
504
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
505
+ case 1:
506
+ // authentication bearer required
507
+ // http bearer authentication required
508
+ _a.sent();
509
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
510
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
511
+ }
512
+ localVarHeaderParameter['Content-Type'] = 'application/json';
513
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
514
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
515
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
516
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateResponseMessageRequestDto, localVarRequestOptions, configuration);
517
+ return [2 /*return*/, {
518
+ url: (0, common_1.toPathString)(localVarUrlObj),
519
+ options: localVarRequestOptions,
520
+ }];
521
+ }
522
+ });
523
+ });
524
+ },
525
+ };
526
+ };
527
+ exports.MessagesApiAxiosParamCreator = MessagesApiAxiosParamCreator;
528
+ /**
529
+ * MessagesApi - functional programming interface
530
+ * @export
531
+ */
532
+ var MessagesApiFp = function (configuration) {
533
+ var localVarAxiosParamCreator = (0, exports.MessagesApiAxiosParamCreator)(configuration);
534
+ return {
535
+ /**
536
+ * Retrieves the details of the request message that was previously created. Supply the unique request message code that was returned when you created it and Emil Api will return the corresponding request message information.
537
+ * @summary Retrieve the request message
538
+ * @param {string} code Unique identifier for the object.
539
+ * @param {string} [authorization] Bearer Token
540
+ * @param {string} [expand]
541
+ * @param {*} [options] Override http request option.
542
+ * @throws {RequiredError}
543
+ */
544
+ getRequestMessage: function (code, authorization, expand, options) {
545
+ return __awaiter(this, void 0, void 0, function () {
546
+ var localVarAxiosArgs;
547
+ return __generator(this, function (_a) {
548
+ switch (_a.label) {
549
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRequestMessage(code, authorization, expand, options)];
550
+ case 1:
551
+ localVarAxiosArgs = _a.sent();
552
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
553
+ }
554
+ });
555
+ });
556
+ },
557
+ /**
558
+ * Retrieves the details of the response message that was previously created. Supply the unique response message code that was returned when you created it and Emil Api will return the corresponding response message information.
559
+ * @summary Retrieve the response message
560
+ * @param {string} code Unique identifier for the object.
561
+ * @param {string} [authorization] Bearer Token
562
+ * @param {string} [expand]
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ */
566
+ getResponseMessage: function (code, authorization, expand, options) {
567
+ return __awaiter(this, void 0, void 0, function () {
568
+ var localVarAxiosArgs;
569
+ return __generator(this, function (_a) {
570
+ switch (_a.label) {
571
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getResponseMessage(code, authorization, expand, options)];
572
+ case 1:
573
+ localVarAxiosArgs = _a.sent();
574
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
575
+ }
576
+ });
577
+ });
578
+ },
579
+ /**
580
+ * Returns a list of messages you have previously created. The messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
581
+ * @summary List messages
582
+ * @param {string} [authorization] Bearer Token
583
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
584
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
585
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
586
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
587
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
588
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
589
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
590
+ * @param {*} [options] Override http request option.
591
+ * @throws {RequiredError}
592
+ */
593
+ listAllMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
594
+ return __awaiter(this, void 0, void 0, function () {
595
+ var localVarAxiosArgs;
596
+ return __generator(this, function (_a) {
597
+ switch (_a.label) {
598
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAllMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
599
+ case 1:
600
+ localVarAxiosArgs = _a.sent();
601
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
602
+ }
603
+ });
604
+ });
605
+ },
606
+ /**
607
+ * Returns a list of requests messages you have previously created. The requests messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
608
+ * @summary List requests messages
609
+ * @param {string} [authorization] Bearer Token
610
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
611
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
612
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
613
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
614
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
615
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
616
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
617
+ * @param {*} [options] Override http request option.
618
+ * @throws {RequiredError}
619
+ */
620
+ listRequestsMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
621
+ return __awaiter(this, void 0, void 0, function () {
622
+ var localVarAxiosArgs;
623
+ return __generator(this, function (_a) {
624
+ switch (_a.label) {
625
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRequestsMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
626
+ case 1:
627
+ localVarAxiosArgs = _a.sent();
628
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
629
+ }
630
+ });
631
+ });
632
+ },
633
+ /**
634
+ * Returns a list of responses messages you have previously created. The responses messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
635
+ * @summary List responses messages
636
+ * @param {string} [authorization] Bearer Token
637
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
638
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
639
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
640
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
641
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
642
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
643
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ */
647
+ listResponsesMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
648
+ return __awaiter(this, void 0, void 0, function () {
649
+ var localVarAxiosArgs;
650
+ return __generator(this, function (_a) {
651
+ switch (_a.label) {
652
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listResponsesMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
653
+ case 1:
654
+ localVarAxiosArgs = _a.sent();
655
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
656
+ }
657
+ });
658
+ });
659
+ },
660
+ /**
661
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
662
+ * @summary Update the request message
663
+ * @param {string} code Unique identifier for the object.
664
+ * @param {UpdateRequestMessageRequestDto} updateRequestMessageRequestDto
665
+ * @param {string} [authorization] Bearer Token
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ */
669
+ updateRequestMessage: function (code, updateRequestMessageRequestDto, authorization, options) {
670
+ return __awaiter(this, void 0, void 0, function () {
671
+ var localVarAxiosArgs;
672
+ return __generator(this, function (_a) {
673
+ switch (_a.label) {
674
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateRequestMessage(code, updateRequestMessageRequestDto, authorization, options)];
675
+ case 1:
676
+ localVarAxiosArgs = _a.sent();
677
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
678
+ }
679
+ });
680
+ });
681
+ },
682
+ /**
683
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
684
+ * @summary Update the request message
685
+ * @param {string} code Unique identifier for the object.
686
+ * @param {UpdateResponseMessageRequestDto} updateResponseMessageRequestDto
687
+ * @param {string} [authorization] Bearer Token
688
+ * @param {*} [options] Override http request option.
689
+ * @throws {RequiredError}
690
+ */
691
+ updateResponseMessage: function (code, updateResponseMessageRequestDto, authorization, options) {
692
+ return __awaiter(this, void 0, void 0, function () {
693
+ var localVarAxiosArgs;
694
+ return __generator(this, function (_a) {
695
+ switch (_a.label) {
696
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateResponseMessage(code, updateResponseMessageRequestDto, authorization, options)];
697
+ case 1:
698
+ localVarAxiosArgs = _a.sent();
699
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
700
+ }
701
+ });
702
+ });
703
+ },
704
+ };
705
+ };
706
+ exports.MessagesApiFp = MessagesApiFp;
707
+ /**
708
+ * MessagesApi - factory interface
709
+ * @export
710
+ */
711
+ var MessagesApiFactory = function (configuration, basePath, axios) {
712
+ var localVarFp = (0, exports.MessagesApiFp)(configuration);
713
+ return {
714
+ /**
715
+ * Retrieves the details of the request message that was previously created. Supply the unique request message code that was returned when you created it and Emil Api will return the corresponding request message information.
716
+ * @summary Retrieve the request message
717
+ * @param {string} code Unique identifier for the object.
718
+ * @param {string} [authorization] Bearer Token
719
+ * @param {string} [expand]
720
+ * @param {*} [options] Override http request option.
721
+ * @throws {RequiredError}
722
+ */
723
+ getRequestMessage: function (code, authorization, expand, options) {
724
+ return localVarFp.getRequestMessage(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
725
+ },
726
+ /**
727
+ * Retrieves the details of the response message that was previously created. Supply the unique response message code that was returned when you created it and Emil Api will return the corresponding response message information.
728
+ * @summary Retrieve the response message
729
+ * @param {string} code Unique identifier for the object.
730
+ * @param {string} [authorization] Bearer Token
731
+ * @param {string} [expand]
732
+ * @param {*} [options] Override http request option.
733
+ * @throws {RequiredError}
734
+ */
735
+ getResponseMessage: function (code, authorization, expand, options) {
736
+ return localVarFp.getResponseMessage(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
737
+ },
738
+ /**
739
+ * Returns a list of messages you have previously created. The messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
740
+ * @summary List messages
741
+ * @param {string} [authorization] Bearer Token
742
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
743
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
744
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
745
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
746
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
747
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
748
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ */
752
+ listAllMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
753
+ return localVarFp.listAllMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
754
+ },
755
+ /**
756
+ * Returns a list of requests messages you have previously created. The requests messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
757
+ * @summary List requests messages
758
+ * @param {string} [authorization] Bearer Token
759
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
760
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
761
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
762
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
763
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
764
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
765
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
766
+ * @param {*} [options] Override http request option.
767
+ * @throws {RequiredError}
768
+ */
769
+ listRequestsMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
770
+ return localVarFp.listRequestsMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
771
+ },
772
+ /**
773
+ * Returns a list of responses messages you have previously created. The responses messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
774
+ * @summary List responses messages
775
+ * @param {string} [authorization] Bearer Token
776
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
777
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
778
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
779
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
780
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
781
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
782
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
783
+ * @param {*} [options] Override http request option.
784
+ * @throws {RequiredError}
785
+ */
786
+ listResponsesMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
787
+ return localVarFp.listResponsesMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
788
+ },
789
+ /**
790
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
791
+ * @summary Update the request message
792
+ * @param {string} code Unique identifier for the object.
793
+ * @param {UpdateRequestMessageRequestDto} updateRequestMessageRequestDto
794
+ * @param {string} [authorization] Bearer Token
795
+ * @param {*} [options] Override http request option.
796
+ * @throws {RequiredError}
797
+ */
798
+ updateRequestMessage: function (code, updateRequestMessageRequestDto, authorization, options) {
799
+ return localVarFp.updateRequestMessage(code, updateRequestMessageRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
800
+ },
801
+ /**
802
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
803
+ * @summary Update the request message
804
+ * @param {string} code Unique identifier for the object.
805
+ * @param {UpdateResponseMessageRequestDto} updateResponseMessageRequestDto
806
+ * @param {string} [authorization] Bearer Token
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ updateResponseMessage: function (code, updateResponseMessageRequestDto, authorization, options) {
811
+ return localVarFp.updateResponseMessage(code, updateResponseMessageRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
812
+ },
813
+ };
814
+ };
815
+ exports.MessagesApiFactory = MessagesApiFactory;
816
+ /**
817
+ * MessagesApi - object-oriented interface
818
+ * @export
819
+ * @class MessagesApi
820
+ * @extends {BaseAPI}
821
+ */
822
+ var MessagesApi = /** @class */ (function (_super) {
823
+ __extends(MessagesApi, _super);
824
+ function MessagesApi() {
825
+ return _super !== null && _super.apply(this, arguments) || this;
826
+ }
827
+ /**
828
+ * Retrieves the details of the request message that was previously created. Supply the unique request message code that was returned when you created it and Emil Api will return the corresponding request message information.
829
+ * @summary Retrieve the request message
830
+ * @param {MessagesApiGetRequestMessageRequest} requestParameters Request parameters.
831
+ * @param {*} [options] Override http request option.
832
+ * @throws {RequiredError}
833
+ * @memberof MessagesApi
834
+ */
835
+ MessagesApi.prototype.getRequestMessage = function (requestParameters, options) {
836
+ var _this = this;
837
+ return (0, exports.MessagesApiFp)(this.configuration).getRequestMessage(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
838
+ };
839
+ /**
840
+ * Retrieves the details of the response message that was previously created. Supply the unique response message code that was returned when you created it and Emil Api will return the corresponding response message information.
841
+ * @summary Retrieve the response message
842
+ * @param {MessagesApiGetResponseMessageRequest} requestParameters Request parameters.
843
+ * @param {*} [options] Override http request option.
844
+ * @throws {RequiredError}
845
+ * @memberof MessagesApi
846
+ */
847
+ MessagesApi.prototype.getResponseMessage = function (requestParameters, options) {
848
+ var _this = this;
849
+ return (0, exports.MessagesApiFp)(this.configuration).getResponseMessage(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
850
+ };
851
+ /**
852
+ * Returns a list of messages you have previously created. The messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
853
+ * @summary List messages
854
+ * @param {MessagesApiListAllMessagesRequest} requestParameters Request parameters.
855
+ * @param {*} [options] Override http request option.
856
+ * @throws {RequiredError}
857
+ * @memberof MessagesApi
858
+ */
859
+ MessagesApi.prototype.listAllMessages = function (requestParameters, options) {
860
+ var _this = this;
861
+ if (requestParameters === void 0) { requestParameters = {}; }
862
+ return (0, exports.MessagesApiFp)(this.configuration).listAllMessages(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); });
863
+ };
864
+ /**
865
+ * Returns a list of requests messages you have previously created. The requests messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
866
+ * @summary List requests messages
867
+ * @param {MessagesApiListRequestsMessagesRequest} requestParameters Request parameters.
868
+ * @param {*} [options] Override http request option.
869
+ * @throws {RequiredError}
870
+ * @memberof MessagesApi
871
+ */
872
+ MessagesApi.prototype.listRequestsMessages = function (requestParameters, options) {
873
+ var _this = this;
874
+ if (requestParameters === void 0) { requestParameters = {}; }
875
+ return (0, exports.MessagesApiFp)(this.configuration).listRequestsMessages(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); });
876
+ };
877
+ /**
878
+ * Returns a list of responses messages you have previously created. The responses messages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
879
+ * @summary List responses messages
880
+ * @param {MessagesApiListResponsesMessagesRequest} requestParameters Request parameters.
881
+ * @param {*} [options] Override http request option.
882
+ * @throws {RequiredError}
883
+ * @memberof MessagesApi
884
+ */
885
+ MessagesApi.prototype.listResponsesMessages = function (requestParameters, options) {
886
+ var _this = this;
887
+ if (requestParameters === void 0) { requestParameters = {}; }
888
+ return (0, exports.MessagesApiFp)(this.configuration).listResponsesMessages(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); });
889
+ };
890
+ /**
891
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
892
+ * @summary Update the request message
893
+ * @param {MessagesApiUpdateRequestMessageRequest} requestParameters Request parameters.
894
+ * @param {*} [options] Override http request option.
895
+ * @throws {RequiredError}
896
+ * @memberof MessagesApi
897
+ */
898
+ MessagesApi.prototype.updateRequestMessage = function (requestParameters, options) {
899
+ var _this = this;
900
+ return (0, exports.MessagesApiFp)(this.configuration).updateRequestMessage(requestParameters.code, requestParameters.updateRequestMessageRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
901
+ };
902
+ /**
903
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
904
+ * @summary Update the request message
905
+ * @param {MessagesApiUpdateResponseMessageRequest} requestParameters Request parameters.
906
+ * @param {*} [options] Override http request option.
907
+ * @throws {RequiredError}
908
+ * @memberof MessagesApi
909
+ */
910
+ MessagesApi.prototype.updateResponseMessage = function (requestParameters, options) {
911
+ var _this = this;
912
+ return (0, exports.MessagesApiFp)(this.configuration).updateResponseMessage(requestParameters.code, requestParameters.updateResponseMessageRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
913
+ };
914
+ return MessagesApi;
915
+ }(base_1.BaseAPI));
916
+ exports.MessagesApi = MessagesApi;