@emilgroup/accounting-sdk 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,1096 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL GdvService
5
+ * The EMIL GdvService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { GetRequestMessageResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { GetResponseMessageResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { ListAllMessagesResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListRequestsMessagesResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListResponsesMessagesResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateRequestMessageRequestDto } from '../models';
35
+ // @ts-ignore
36
+ import { UpdateRequestMessageResponseClass } from '../models';
37
+ // @ts-ignore
38
+ import { UpdateResponseMessageRequestDto } from '../models';
39
+ // @ts-ignore
40
+ import { UpdateResponseMessageResponseClass } from '../models';
41
+ /**
42
+ * MessagesApi - axios parameter creator
43
+ * @export
44
+ */
45
+ export const MessagesApiAxiosParamCreator = function (configuration?: Configuration) {
46
+ return {
47
+ /**
48
+ * 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.
49
+ * @summary Retrieve the request message
50
+ * @param {string} code Unique identifier for the object.
51
+ * @param {string} [authorization] Bearer Token
52
+ * @param {string} [expand]
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ getRequestMessage: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
57
+ // verify required parameter 'code' is not null or undefined
58
+ assertParamExists('getRequestMessage', 'code', code)
59
+ const localVarPath = `/gdvservice/v1/messages/requests/{code}`
60
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
61
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
62
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63
+ let baseOptions;
64
+ let baseAccessToken;
65
+ if (configuration) {
66
+ baseOptions = configuration.baseOptions;
67
+ baseAccessToken = configuration.accessToken;
68
+ }
69
+
70
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
71
+ const localVarHeaderParameter = {} as any;
72
+ const localVarQueryParameter = {} as any;
73
+
74
+ // authentication bearer required
75
+ // http bearer authentication required
76
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
77
+
78
+ if (expand !== undefined) {
79
+ localVarQueryParameter['expand'] = expand;
80
+ }
81
+
82
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
83
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
84
+ }
85
+
86
+
87
+
88
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
89
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
91
+
92
+ return {
93
+ url: toPathString(localVarUrlObj),
94
+ options: localVarRequestOptions,
95
+ };
96
+ },
97
+ /**
98
+ * 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.
99
+ * @summary Retrieve the response message
100
+ * @param {string} code Unique identifier for the object.
101
+ * @param {string} [authorization] Bearer Token
102
+ * @param {string} [expand]
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ getResponseMessage: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
107
+ // verify required parameter 'code' is not null or undefined
108
+ assertParamExists('getResponseMessage', 'code', code)
109
+ const localVarPath = `/gdvservice/v1/messages/responses/{code}`
110
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
113
+ let baseOptions;
114
+ let baseAccessToken;
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ baseAccessToken = configuration.accessToken;
118
+ }
119
+
120
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
121
+ const localVarHeaderParameter = {} as any;
122
+ const localVarQueryParameter = {} as any;
123
+
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
127
+
128
+ if (expand !== undefined) {
129
+ localVarQueryParameter['expand'] = expand;
130
+ }
131
+
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+
136
+
137
+
138
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
139
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
140
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
141
+
142
+ return {
143
+ url: toPathString(localVarUrlObj),
144
+ options: localVarRequestOptions,
145
+ };
146
+ },
147
+ /**
148
+ * 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.
149
+ * @summary List messages
150
+ * @param {string} [authorization] Bearer Token
151
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
152
+ * @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.
153
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
154
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
155
+ * @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.
156
+ * @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.
157
+ * @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.
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ listAllMessages: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
162
+ const localVarPath = `/gdvservice/v1/messages`;
163
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
164
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
165
+ let baseOptions;
166
+ let baseAccessToken;
167
+ if (configuration) {
168
+ baseOptions = configuration.baseOptions;
169
+ baseAccessToken = configuration.accessToken;
170
+ }
171
+
172
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
173
+ const localVarHeaderParameter = {} as any;
174
+ const localVarQueryParameter = {} as any;
175
+
176
+ // authentication bearer required
177
+ // http bearer authentication required
178
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
179
+
180
+ if (pageSize !== undefined) {
181
+ localVarQueryParameter['pageSize'] = pageSize;
182
+ }
183
+
184
+ if (pageToken !== undefined) {
185
+ localVarQueryParameter['pageToken'] = pageToken;
186
+ }
187
+
188
+ if (filter !== undefined) {
189
+ localVarQueryParameter['filter'] = filter;
190
+ }
191
+
192
+ if (search !== undefined) {
193
+ localVarQueryParameter['search'] = search;
194
+ }
195
+
196
+ if (order !== undefined) {
197
+ localVarQueryParameter['order'] = order;
198
+ }
199
+
200
+ if (expand !== undefined) {
201
+ localVarQueryParameter['expand'] = expand;
202
+ }
203
+
204
+ if (filters !== undefined) {
205
+ localVarQueryParameter['filters'] = filters;
206
+ }
207
+
208
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
209
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
210
+ }
211
+
212
+
213
+
214
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
217
+
218
+ return {
219
+ url: toPathString(localVarUrlObj),
220
+ options: localVarRequestOptions,
221
+ };
222
+ },
223
+ /**
224
+ * 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.
225
+ * @summary List requests messages
226
+ * @param {string} [authorization] Bearer Token
227
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
228
+ * @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.
229
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
230
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
231
+ * @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.
232
+ * @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.
233
+ * @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.
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ listRequestsMessages: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
238
+ const localVarPath = `/gdvservice/v1/messages/requests`;
239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
241
+ let baseOptions;
242
+ let baseAccessToken;
243
+ if (configuration) {
244
+ baseOptions = configuration.baseOptions;
245
+ baseAccessToken = configuration.accessToken;
246
+ }
247
+
248
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
249
+ const localVarHeaderParameter = {} as any;
250
+ const localVarQueryParameter = {} as any;
251
+
252
+ // authentication bearer required
253
+ // http bearer authentication required
254
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
255
+
256
+ if (pageSize !== undefined) {
257
+ localVarQueryParameter['pageSize'] = pageSize;
258
+ }
259
+
260
+ if (pageToken !== undefined) {
261
+ localVarQueryParameter['pageToken'] = pageToken;
262
+ }
263
+
264
+ if (filter !== undefined) {
265
+ localVarQueryParameter['filter'] = filter;
266
+ }
267
+
268
+ if (search !== undefined) {
269
+ localVarQueryParameter['search'] = search;
270
+ }
271
+
272
+ if (order !== undefined) {
273
+ localVarQueryParameter['order'] = order;
274
+ }
275
+
276
+ if (expand !== undefined) {
277
+ localVarQueryParameter['expand'] = expand;
278
+ }
279
+
280
+ if (filters !== undefined) {
281
+ localVarQueryParameter['filters'] = filters;
282
+ }
283
+
284
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
286
+ }
287
+
288
+
289
+
290
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
291
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
293
+
294
+ return {
295
+ url: toPathString(localVarUrlObj),
296
+ options: localVarRequestOptions,
297
+ };
298
+ },
299
+ /**
300
+ * 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.
301
+ * @summary List responses messages
302
+ * @param {string} [authorization] Bearer Token
303
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
304
+ * @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.
305
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
306
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
307
+ * @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.
308
+ * @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.
309
+ * @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.
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ listResponsesMessages: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
314
+ const localVarPath = `/gdvservice/v1/messages/responses`;
315
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
316
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
317
+ let baseOptions;
318
+ let baseAccessToken;
319
+ if (configuration) {
320
+ baseOptions = configuration.baseOptions;
321
+ baseAccessToken = configuration.accessToken;
322
+ }
323
+
324
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
325
+ const localVarHeaderParameter = {} as any;
326
+ const localVarQueryParameter = {} as any;
327
+
328
+ // authentication bearer required
329
+ // http bearer authentication required
330
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
331
+
332
+ if (pageSize !== undefined) {
333
+ localVarQueryParameter['pageSize'] = pageSize;
334
+ }
335
+
336
+ if (pageToken !== undefined) {
337
+ localVarQueryParameter['pageToken'] = pageToken;
338
+ }
339
+
340
+ if (filter !== undefined) {
341
+ localVarQueryParameter['filter'] = filter;
342
+ }
343
+
344
+ if (search !== undefined) {
345
+ localVarQueryParameter['search'] = search;
346
+ }
347
+
348
+ if (order !== undefined) {
349
+ localVarQueryParameter['order'] = order;
350
+ }
351
+
352
+ if (expand !== undefined) {
353
+ localVarQueryParameter['expand'] = expand;
354
+ }
355
+
356
+ if (filters !== undefined) {
357
+ localVarQueryParameter['filters'] = filters;
358
+ }
359
+
360
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
361
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
362
+ }
363
+
364
+
365
+
366
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
367
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
368
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
369
+
370
+ return {
371
+ url: toPathString(localVarUrlObj),
372
+ options: localVarRequestOptions,
373
+ };
374
+ },
375
+ /**
376
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
377
+ * @summary Update the request message
378
+ * @param {string} code Unique identifier for the object.
379
+ * @param {UpdateRequestMessageRequestDto} updateRequestMessageRequestDto
380
+ * @param {string} [authorization] Bearer Token
381
+ * @param {*} [options] Override http request option.
382
+ * @throws {RequiredError}
383
+ */
384
+ updateRequestMessage: async (code: string, updateRequestMessageRequestDto: UpdateRequestMessageRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
385
+ // verify required parameter 'code' is not null or undefined
386
+ assertParamExists('updateRequestMessage', 'code', code)
387
+ // verify required parameter 'updateRequestMessageRequestDto' is not null or undefined
388
+ assertParamExists('updateRequestMessage', 'updateRequestMessageRequestDto', updateRequestMessageRequestDto)
389
+ const localVarPath = `/gdvservice/v1/messages/requests/{code}`
390
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
391
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
392
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
393
+ let baseOptions;
394
+ let baseAccessToken;
395
+ if (configuration) {
396
+ baseOptions = configuration.baseOptions;
397
+ baseAccessToken = configuration.accessToken;
398
+ }
399
+
400
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
401
+ const localVarHeaderParameter = {} as any;
402
+ const localVarQueryParameter = {} as any;
403
+
404
+ // authentication bearer required
405
+ // http bearer authentication required
406
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
407
+
408
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
409
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
410
+ }
411
+
412
+
413
+
414
+ localVarHeaderParameter['Content-Type'] = 'application/json';
415
+
416
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
417
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
418
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
419
+ localVarRequestOptions.data = serializeDataIfNeeded(updateRequestMessageRequestDto, localVarRequestOptions, configuration)
420
+
421
+ return {
422
+ url: toPathString(localVarUrlObj),
423
+ options: localVarRequestOptions,
424
+ };
425
+ },
426
+ /**
427
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
428
+ * @summary Update the request message
429
+ * @param {string} code Unique identifier for the object.
430
+ * @param {UpdateResponseMessageRequestDto} updateResponseMessageRequestDto
431
+ * @param {string} [authorization] Bearer Token
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ updateResponseMessage: async (code: string, updateResponseMessageRequestDto: UpdateResponseMessageRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
436
+ // verify required parameter 'code' is not null or undefined
437
+ assertParamExists('updateResponseMessage', 'code', code)
438
+ // verify required parameter 'updateResponseMessageRequestDto' is not null or undefined
439
+ assertParamExists('updateResponseMessage', 'updateResponseMessageRequestDto', updateResponseMessageRequestDto)
440
+ const localVarPath = `/gdvservice/v1/messages/responses/{code}`
441
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
442
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
443
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
444
+ let baseOptions;
445
+ let baseAccessToken;
446
+ if (configuration) {
447
+ baseOptions = configuration.baseOptions;
448
+ baseAccessToken = configuration.accessToken;
449
+ }
450
+
451
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
452
+ const localVarHeaderParameter = {} as any;
453
+ const localVarQueryParameter = {} as any;
454
+
455
+ // authentication bearer required
456
+ // http bearer authentication required
457
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
458
+
459
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
460
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
461
+ }
462
+
463
+
464
+
465
+ localVarHeaderParameter['Content-Type'] = 'application/json';
466
+
467
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
468
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
469
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
470
+ localVarRequestOptions.data = serializeDataIfNeeded(updateResponseMessageRequestDto, localVarRequestOptions, configuration)
471
+
472
+ return {
473
+ url: toPathString(localVarUrlObj),
474
+ options: localVarRequestOptions,
475
+ };
476
+ },
477
+ }
478
+ };
479
+
480
+ /**
481
+ * MessagesApi - functional programming interface
482
+ * @export
483
+ */
484
+ export const MessagesApiFp = function(configuration?: Configuration) {
485
+ const localVarAxiosParamCreator = MessagesApiAxiosParamCreator(configuration)
486
+ return {
487
+ /**
488
+ * 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.
489
+ * @summary Retrieve the request message
490
+ * @param {string} code Unique identifier for the object.
491
+ * @param {string} [authorization] Bearer Token
492
+ * @param {string} [expand]
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ */
496
+ async getRequestMessage(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRequestMessageResponseClass>> {
497
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRequestMessage(code, authorization, expand, options);
498
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
499
+ },
500
+ /**
501
+ * 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.
502
+ * @summary Retrieve the response message
503
+ * @param {string} code Unique identifier for the object.
504
+ * @param {string} [authorization] Bearer Token
505
+ * @param {string} [expand]
506
+ * @param {*} [options] Override http request option.
507
+ * @throws {RequiredError}
508
+ */
509
+ async getResponseMessage(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetResponseMessageResponseClass>> {
510
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getResponseMessage(code, authorization, expand, options);
511
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
512
+ },
513
+ /**
514
+ * 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.
515
+ * @summary List messages
516
+ * @param {string} [authorization] Bearer Token
517
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
518
+ * @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.
519
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
520
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
521
+ * @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.
522
+ * @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.
523
+ * @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.
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ */
527
+ async listAllMessages(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAllMessagesResponseClass>> {
528
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAllMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
529
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
530
+ },
531
+ /**
532
+ * 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.
533
+ * @summary List requests messages
534
+ * @param {string} [authorization] Bearer Token
535
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
536
+ * @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.
537
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
538
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
539
+ * @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.
540
+ * @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.
541
+ * @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.
542
+ * @param {*} [options] Override http request option.
543
+ * @throws {RequiredError}
544
+ */
545
+ async listRequestsMessages(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRequestsMessagesResponseClass>> {
546
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRequestsMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
547
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
548
+ },
549
+ /**
550
+ * 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.
551
+ * @summary List responses messages
552
+ * @param {string} [authorization] Bearer Token
553
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
554
+ * @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.
555
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
556
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
557
+ * @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.
558
+ * @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.
559
+ * @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.
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ async listResponsesMessages(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListResponsesMessagesResponseClass>> {
564
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listResponsesMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
565
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
566
+ },
567
+ /**
568
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
569
+ * @summary Update the request message
570
+ * @param {string} code Unique identifier for the object.
571
+ * @param {UpdateRequestMessageRequestDto} updateRequestMessageRequestDto
572
+ * @param {string} [authorization] Bearer Token
573
+ * @param {*} [options] Override http request option.
574
+ * @throws {RequiredError}
575
+ */
576
+ async updateRequestMessage(code: string, updateRequestMessageRequestDto: UpdateRequestMessageRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateRequestMessageResponseClass>> {
577
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateRequestMessage(code, updateRequestMessageRequestDto, authorization, options);
578
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
579
+ },
580
+ /**
581
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
582
+ * @summary Update the request message
583
+ * @param {string} code Unique identifier for the object.
584
+ * @param {UpdateResponseMessageRequestDto} updateResponseMessageRequestDto
585
+ * @param {string} [authorization] Bearer Token
586
+ * @param {*} [options] Override http request option.
587
+ * @throws {RequiredError}
588
+ */
589
+ async updateResponseMessage(code: string, updateResponseMessageRequestDto: UpdateResponseMessageRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateResponseMessageResponseClass>> {
590
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateResponseMessage(code, updateResponseMessageRequestDto, authorization, options);
591
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
592
+ },
593
+ }
594
+ };
595
+
596
+ /**
597
+ * MessagesApi - factory interface
598
+ * @export
599
+ */
600
+ export const MessagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
601
+ const localVarFp = MessagesApiFp(configuration)
602
+ return {
603
+ /**
604
+ * 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.
605
+ * @summary Retrieve the request message
606
+ * @param {string} code Unique identifier for the object.
607
+ * @param {string} [authorization] Bearer Token
608
+ * @param {string} [expand]
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ getRequestMessage(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetRequestMessageResponseClass> {
613
+ return localVarFp.getRequestMessage(code, authorization, expand, options).then((request) => request(axios, basePath));
614
+ },
615
+ /**
616
+ * 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.
617
+ * @summary Retrieve the response message
618
+ * @param {string} code Unique identifier for the object.
619
+ * @param {string} [authorization] Bearer Token
620
+ * @param {string} [expand]
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ */
624
+ getResponseMessage(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetResponseMessageResponseClass> {
625
+ return localVarFp.getResponseMessage(code, authorization, expand, options).then((request) => request(axios, basePath));
626
+ },
627
+ /**
628
+ * 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.
629
+ * @summary List messages
630
+ * @param {string} [authorization] Bearer Token
631
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
632
+ * @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.
633
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
634
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
635
+ * @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.
636
+ * @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.
637
+ * @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.
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ listAllMessages(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListAllMessagesResponseClass> {
642
+ return localVarFp.listAllMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
643
+ },
644
+ /**
645
+ * 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.
646
+ * @summary List requests messages
647
+ * @param {string} [authorization] Bearer Token
648
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
649
+ * @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.
650
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
651
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
652
+ * @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.
653
+ * @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.
654
+ * @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.
655
+ * @param {*} [options] Override http request option.
656
+ * @throws {RequiredError}
657
+ */
658
+ listRequestsMessages(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListRequestsMessagesResponseClass> {
659
+ return localVarFp.listRequestsMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
660
+ },
661
+ /**
662
+ * 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.
663
+ * @summary List responses messages
664
+ * @param {string} [authorization] Bearer Token
665
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
666
+ * @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.
667
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
668
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
669
+ * @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.
670
+ * @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.
671
+ * @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.
672
+ * @param {*} [options] Override http request option.
673
+ * @throws {RequiredError}
674
+ */
675
+ listResponsesMessages(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListResponsesMessagesResponseClass> {
676
+ return localVarFp.listResponsesMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
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 {UpdateRequestMessageRequestDto} updateRequestMessageRequestDto
683
+ * @param {string} [authorization] Bearer Token
684
+ * @param {*} [options] Override http request option.
685
+ * @throws {RequiredError}
686
+ */
687
+ updateRequestMessage(code: string, updateRequestMessageRequestDto: UpdateRequestMessageRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateRequestMessageResponseClass> {
688
+ return localVarFp.updateRequestMessage(code, updateRequestMessageRequestDto, authorization, options).then((request) => request(axios, basePath));
689
+ },
690
+ /**
691
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
692
+ * @summary Update the request message
693
+ * @param {string} code Unique identifier for the object.
694
+ * @param {UpdateResponseMessageRequestDto} updateResponseMessageRequestDto
695
+ * @param {string} [authorization] Bearer Token
696
+ * @param {*} [options] Override http request option.
697
+ * @throws {RequiredError}
698
+ */
699
+ updateResponseMessage(code: string, updateResponseMessageRequestDto: UpdateResponseMessageRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateResponseMessageResponseClass> {
700
+ return localVarFp.updateResponseMessage(code, updateResponseMessageRequestDto, authorization, options).then((request) => request(axios, basePath));
701
+ },
702
+ };
703
+ };
704
+
705
+ /**
706
+ * Request parameters for getRequestMessage operation in MessagesApi.
707
+ * @export
708
+ * @interface MessagesApiGetRequestMessageRequest
709
+ */
710
+ export interface MessagesApiGetRequestMessageRequest {
711
+ /**
712
+ * Unique identifier for the object.
713
+ * @type {string}
714
+ * @memberof MessagesApiGetRequestMessage
715
+ */
716
+ readonly code: string
717
+
718
+ /**
719
+ * Bearer Token
720
+ * @type {string}
721
+ * @memberof MessagesApiGetRequestMessage
722
+ */
723
+ readonly authorization?: string
724
+
725
+ /**
726
+ *
727
+ * @type {string}
728
+ * @memberof MessagesApiGetRequestMessage
729
+ */
730
+ readonly expand?: string
731
+ }
732
+
733
+ /**
734
+ * Request parameters for getResponseMessage operation in MessagesApi.
735
+ * @export
736
+ * @interface MessagesApiGetResponseMessageRequest
737
+ */
738
+ export interface MessagesApiGetResponseMessageRequest {
739
+ /**
740
+ * Unique identifier for the object.
741
+ * @type {string}
742
+ * @memberof MessagesApiGetResponseMessage
743
+ */
744
+ readonly code: string
745
+
746
+ /**
747
+ * Bearer Token
748
+ * @type {string}
749
+ * @memberof MessagesApiGetResponseMessage
750
+ */
751
+ readonly authorization?: string
752
+
753
+ /**
754
+ *
755
+ * @type {string}
756
+ * @memberof MessagesApiGetResponseMessage
757
+ */
758
+ readonly expand?: string
759
+ }
760
+
761
+ /**
762
+ * Request parameters for listAllMessages operation in MessagesApi.
763
+ * @export
764
+ * @interface MessagesApiListAllMessagesRequest
765
+ */
766
+ export interface MessagesApiListAllMessagesRequest {
767
+ /**
768
+ * Bearer Token
769
+ * @type {string}
770
+ * @memberof MessagesApiListAllMessages
771
+ */
772
+ readonly authorization?: string
773
+
774
+ /**
775
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
776
+ * @type {any}
777
+ * @memberof MessagesApiListAllMessages
778
+ */
779
+ readonly pageSize?: any
780
+
781
+ /**
782
+ * 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.
783
+ * @type {any}
784
+ * @memberof MessagesApiListAllMessages
785
+ */
786
+ readonly pageToken?: any
787
+
788
+ /**
789
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
790
+ * @type {any}
791
+ * @memberof MessagesApiListAllMessages
792
+ */
793
+ readonly filter?: any
794
+
795
+ /**
796
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
797
+ * @type {any}
798
+ * @memberof MessagesApiListAllMessages
799
+ */
800
+ readonly search?: any
801
+
802
+ /**
803
+ * 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.
804
+ * @type {any}
805
+ * @memberof MessagesApiListAllMessages
806
+ */
807
+ readonly order?: any
808
+
809
+ /**
810
+ * 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.
811
+ * @type {any}
812
+ * @memberof MessagesApiListAllMessages
813
+ */
814
+ readonly expand?: any
815
+
816
+ /**
817
+ * 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.
818
+ * @type {any}
819
+ * @memberof MessagesApiListAllMessages
820
+ */
821
+ readonly filters?: any
822
+ }
823
+
824
+ /**
825
+ * Request parameters for listRequestsMessages operation in MessagesApi.
826
+ * @export
827
+ * @interface MessagesApiListRequestsMessagesRequest
828
+ */
829
+ export interface MessagesApiListRequestsMessagesRequest {
830
+ /**
831
+ * Bearer Token
832
+ * @type {string}
833
+ * @memberof MessagesApiListRequestsMessages
834
+ */
835
+ readonly authorization?: string
836
+
837
+ /**
838
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
839
+ * @type {any}
840
+ * @memberof MessagesApiListRequestsMessages
841
+ */
842
+ readonly pageSize?: any
843
+
844
+ /**
845
+ * 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.
846
+ * @type {any}
847
+ * @memberof MessagesApiListRequestsMessages
848
+ */
849
+ readonly pageToken?: any
850
+
851
+ /**
852
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
853
+ * @type {any}
854
+ * @memberof MessagesApiListRequestsMessages
855
+ */
856
+ readonly filter?: any
857
+
858
+ /**
859
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
860
+ * @type {any}
861
+ * @memberof MessagesApiListRequestsMessages
862
+ */
863
+ readonly search?: any
864
+
865
+ /**
866
+ * 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.
867
+ * @type {any}
868
+ * @memberof MessagesApiListRequestsMessages
869
+ */
870
+ readonly order?: any
871
+
872
+ /**
873
+ * 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.
874
+ * @type {any}
875
+ * @memberof MessagesApiListRequestsMessages
876
+ */
877
+ readonly expand?: any
878
+
879
+ /**
880
+ * 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.
881
+ * @type {any}
882
+ * @memberof MessagesApiListRequestsMessages
883
+ */
884
+ readonly filters?: any
885
+ }
886
+
887
+ /**
888
+ * Request parameters for listResponsesMessages operation in MessagesApi.
889
+ * @export
890
+ * @interface MessagesApiListResponsesMessagesRequest
891
+ */
892
+ export interface MessagesApiListResponsesMessagesRequest {
893
+ /**
894
+ * Bearer Token
895
+ * @type {string}
896
+ * @memberof MessagesApiListResponsesMessages
897
+ */
898
+ readonly authorization?: string
899
+
900
+ /**
901
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
902
+ * @type {any}
903
+ * @memberof MessagesApiListResponsesMessages
904
+ */
905
+ readonly pageSize?: any
906
+
907
+ /**
908
+ * 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.
909
+ * @type {any}
910
+ * @memberof MessagesApiListResponsesMessages
911
+ */
912
+ readonly pageToken?: any
913
+
914
+ /**
915
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
916
+ * @type {any}
917
+ * @memberof MessagesApiListResponsesMessages
918
+ */
919
+ readonly filter?: any
920
+
921
+ /**
922
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
923
+ * @type {any}
924
+ * @memberof MessagesApiListResponsesMessages
925
+ */
926
+ readonly search?: any
927
+
928
+ /**
929
+ * 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.
930
+ * @type {any}
931
+ * @memberof MessagesApiListResponsesMessages
932
+ */
933
+ readonly order?: any
934
+
935
+ /**
936
+ * 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.
937
+ * @type {any}
938
+ * @memberof MessagesApiListResponsesMessages
939
+ */
940
+ readonly expand?: any
941
+
942
+ /**
943
+ * 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.
944
+ * @type {any}
945
+ * @memberof MessagesApiListResponsesMessages
946
+ */
947
+ readonly filters?: any
948
+ }
949
+
950
+ /**
951
+ * Request parameters for updateRequestMessage operation in MessagesApi.
952
+ * @export
953
+ * @interface MessagesApiUpdateRequestMessageRequest
954
+ */
955
+ export interface MessagesApiUpdateRequestMessageRequest {
956
+ /**
957
+ * Unique identifier for the object.
958
+ * @type {string}
959
+ * @memberof MessagesApiUpdateRequestMessage
960
+ */
961
+ readonly code: string
962
+
963
+ /**
964
+ *
965
+ * @type {UpdateRequestMessageRequestDto}
966
+ * @memberof MessagesApiUpdateRequestMessage
967
+ */
968
+ readonly updateRequestMessageRequestDto: UpdateRequestMessageRequestDto
969
+
970
+ /**
971
+ * Bearer Token
972
+ * @type {string}
973
+ * @memberof MessagesApiUpdateRequestMessage
974
+ */
975
+ readonly authorization?: string
976
+ }
977
+
978
+ /**
979
+ * Request parameters for updateResponseMessage operation in MessagesApi.
980
+ * @export
981
+ * @interface MessagesApiUpdateResponseMessageRequest
982
+ */
983
+ export interface MessagesApiUpdateResponseMessageRequest {
984
+ /**
985
+ * Unique identifier for the object.
986
+ * @type {string}
987
+ * @memberof MessagesApiUpdateResponseMessage
988
+ */
989
+ readonly code: string
990
+
991
+ /**
992
+ *
993
+ * @type {UpdateResponseMessageRequestDto}
994
+ * @memberof MessagesApiUpdateResponseMessage
995
+ */
996
+ readonly updateResponseMessageRequestDto: UpdateResponseMessageRequestDto
997
+
998
+ /**
999
+ * Bearer Token
1000
+ * @type {string}
1001
+ * @memberof MessagesApiUpdateResponseMessage
1002
+ */
1003
+ readonly authorization?: string
1004
+ }
1005
+
1006
+ /**
1007
+ * MessagesApi - object-oriented interface
1008
+ * @export
1009
+ * @class MessagesApi
1010
+ * @extends {BaseAPI}
1011
+ */
1012
+ export class MessagesApi extends BaseAPI {
1013
+ /**
1014
+ * 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.
1015
+ * @summary Retrieve the request message
1016
+ * @param {MessagesApiGetRequestMessageRequest} requestParameters Request parameters.
1017
+ * @param {*} [options] Override http request option.
1018
+ * @throws {RequiredError}
1019
+ * @memberof MessagesApi
1020
+ */
1021
+ public getRequestMessage(requestParameters: MessagesApiGetRequestMessageRequest, options?: AxiosRequestConfig) {
1022
+ return MessagesApiFp(this.configuration).getRequestMessage(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1023
+ }
1024
+
1025
+ /**
1026
+ * 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.
1027
+ * @summary Retrieve the response message
1028
+ * @param {MessagesApiGetResponseMessageRequest} requestParameters Request parameters.
1029
+ * @param {*} [options] Override http request option.
1030
+ * @throws {RequiredError}
1031
+ * @memberof MessagesApi
1032
+ */
1033
+ public getResponseMessage(requestParameters: MessagesApiGetResponseMessageRequest, options?: AxiosRequestConfig) {
1034
+ return MessagesApiFp(this.configuration).getResponseMessage(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1035
+ }
1036
+
1037
+ /**
1038
+ * 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.
1039
+ * @summary List messages
1040
+ * @param {MessagesApiListAllMessagesRequest} requestParameters Request parameters.
1041
+ * @param {*} [options] Override http request option.
1042
+ * @throws {RequiredError}
1043
+ * @memberof MessagesApi
1044
+ */
1045
+ public listAllMessages(requestParameters: MessagesApiListAllMessagesRequest = {}, options?: AxiosRequestConfig) {
1046
+ return MessagesApiFp(this.configuration).listAllMessages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1047
+ }
1048
+
1049
+ /**
1050
+ * 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.
1051
+ * @summary List requests messages
1052
+ * @param {MessagesApiListRequestsMessagesRequest} requestParameters Request parameters.
1053
+ * @param {*} [options] Override http request option.
1054
+ * @throws {RequiredError}
1055
+ * @memberof MessagesApi
1056
+ */
1057
+ public listRequestsMessages(requestParameters: MessagesApiListRequestsMessagesRequest = {}, options?: AxiosRequestConfig) {
1058
+ return MessagesApiFp(this.configuration).listRequestsMessages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1059
+ }
1060
+
1061
+ /**
1062
+ * 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.
1063
+ * @summary List responses messages
1064
+ * @param {MessagesApiListResponsesMessagesRequest} requestParameters Request parameters.
1065
+ * @param {*} [options] Override http request option.
1066
+ * @throws {RequiredError}
1067
+ * @memberof MessagesApi
1068
+ */
1069
+ public listResponsesMessages(requestParameters: MessagesApiListResponsesMessagesRequest = {}, options?: AxiosRequestConfig) {
1070
+ return MessagesApiFp(this.configuration).listResponsesMessages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1071
+ }
1072
+
1073
+ /**
1074
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1075
+ * @summary Update the request message
1076
+ * @param {MessagesApiUpdateRequestMessageRequest} requestParameters Request parameters.
1077
+ * @param {*} [options] Override http request option.
1078
+ * @throws {RequiredError}
1079
+ * @memberof MessagesApi
1080
+ */
1081
+ public updateRequestMessage(requestParameters: MessagesApiUpdateRequestMessageRequest, options?: AxiosRequestConfig) {
1082
+ return MessagesApiFp(this.configuration).updateRequestMessage(requestParameters.code, requestParameters.updateRequestMessageRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1083
+ }
1084
+
1085
+ /**
1086
+ * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1087
+ * @summary Update the request message
1088
+ * @param {MessagesApiUpdateResponseMessageRequest} requestParameters Request parameters.
1089
+ * @param {*} [options] Override http request option.
1090
+ * @throws {RequiredError}
1091
+ * @memberof MessagesApi
1092
+ */
1093
+ public updateResponseMessage(requestParameters: MessagesApiUpdateResponseMessageRequest, options?: AxiosRequestConfig) {
1094
+ return MessagesApiFp(this.configuration).updateResponseMessage(requestParameters.code, requestParameters.updateResponseMessageRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1095
+ }
1096
+ }