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