@emilgroup/accounting-sdk 1.19.0 → 1.20.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 (260) hide show
  1. package/.openapi-generator/FILES +29 -52
  2. package/README.md +2 -2
  3. package/api/{zip-codes-api.ts → booking-entries-api.ts} +195 -162
  4. package/api/financial-accounts-api.ts +573 -0
  5. package/api/financial-transactions-api.ts +365 -0
  6. package/api/health-api.ts +7 -7
  7. package/api/number-ranges-api.ts +573 -0
  8. package/api/personal-accounts-api.ts +573 -0
  9. package/api.ts +12 -14
  10. package/base.ts +2 -2
  11. package/common.ts +4 -4
  12. package/configuration.ts +2 -2
  13. package/dist/api/{zip-codes-api.d.ts → booking-entries-api.d.ts} +130 -111
  14. package/dist/api/{zip-codes-api.js → booking-entries-api.js} +144 -130
  15. package/dist/api/financial-accounts-api.d.ts +327 -0
  16. package/dist/api/financial-accounts-api.js +545 -0
  17. package/dist/api/financial-transactions-api.d.ts +215 -0
  18. package/dist/api/financial-transactions-api.js +360 -0
  19. package/dist/api/health-api.d.ts +6 -6
  20. package/dist/api/health-api.js +7 -7
  21. package/dist/api/number-ranges-api.d.ts +327 -0
  22. package/dist/api/{vbas-api.js → number-ranges-api.js} +156 -161
  23. package/dist/api/personal-accounts-api.d.ts +327 -0
  24. package/dist/api/{vbus-api.js → personal-accounts-api.js} +136 -234
  25. package/dist/api.d.ts +7 -8
  26. package/dist/api.js +7 -8
  27. package/dist/base.d.ts +2 -2
  28. package/dist/base.js +2 -2
  29. package/dist/common.d.ts +4 -4
  30. package/dist/common.js +2 -2
  31. package/dist/configuration.d.ts +2 -2
  32. package/dist/configuration.js +2 -2
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.js +2 -2
  35. package/dist/models/booking-entry-class.d.ts +123 -0
  36. package/dist/models/{create-vbuv-request-dto.js → booking-entry-class.js} +15 -6
  37. package/dist/models/create-booking-entry-request-dto.d.ts +61 -0
  38. package/dist/models/{address-class.js → create-booking-entry-request-dto.js} +2 -2
  39. package/dist/models/create-booking-entry-response-class.d.ts +25 -0
  40. package/dist/models/{create-user-response-class.js → create-booking-entry-response-class.js} +2 -2
  41. package/dist/models/create-financial-account-request-dto.d.ts +75 -0
  42. package/dist/models/create-financial-account-request-dto.js +24 -0
  43. package/dist/models/create-financial-account-response-class.d.ts +25 -0
  44. package/dist/models/{create-mailbox-request-dto.js → create-financial-account-response-class.js} +2 -2
  45. package/dist/models/create-number-range-request-dto.d.ts +53 -0
  46. package/dist/models/create-number-range-request-dto.js +26 -0
  47. package/dist/models/create-number-range-response-class.d.ts +25 -0
  48. package/dist/models/{create-vba-response-class.js → create-number-range-response-class.js} +2 -2
  49. package/dist/models/create-personal-account-request-dto.d.ts +60 -0
  50. package/dist/models/{create-vba-request-dto.js → create-personal-account-request-dto.js} +7 -6
  51. package/dist/models/create-personal-account-response-class.d.ts +25 -0
  52. package/dist/models/create-personal-account-response-class.js +15 -0
  53. package/dist/models/financial-account-class.d.ts +111 -0
  54. package/dist/models/{create-vbu-request-dto.js → financial-account-class.js} +10 -6
  55. package/dist/models/financial-transaction-class.d.ts +114 -0
  56. package/dist/models/financial-transaction-class.js +15 -0
  57. package/dist/models/financial-transaction-data-dto.d.ts +71 -0
  58. package/dist/models/financial-transaction-data-dto.js +25 -0
  59. package/dist/models/get-booking-entry-response-class.d.ts +25 -0
  60. package/dist/models/get-booking-entry-response-class.js +15 -0
  61. package/dist/models/get-financial-account-response-class.d.ts +25 -0
  62. package/dist/models/get-financial-account-response-class.js +15 -0
  63. package/dist/models/get-financial-transaction-response-class.d.ts +25 -0
  64. package/dist/models/get-financial-transaction-response-class.js +15 -0
  65. package/dist/models/get-number-range-response-class.d.ts +25 -0
  66. package/dist/models/get-number-range-response-class.js +15 -0
  67. package/dist/models/get-personal-account-response-class.d.ts +25 -0
  68. package/dist/models/get-personal-account-response-class.js +15 -0
  69. package/dist/models/index.d.ts +24 -46
  70. package/dist/models/index.js +24 -46
  71. package/dist/models/inline-response200.d.ts +2 -2
  72. package/dist/models/inline-response200.js +2 -2
  73. package/dist/models/inline-response503.d.ts +2 -2
  74. package/dist/models/inline-response503.js +2 -2
  75. package/dist/models/list-booking-entries-response-class.d.ts +31 -0
  76. package/dist/models/list-booking-entries-response-class.js +15 -0
  77. package/dist/models/list-financial-accounts-response-class.d.ts +31 -0
  78. package/dist/models/list-financial-accounts-response-class.js +15 -0
  79. package/dist/models/list-financial-transactions-response-class.d.ts +31 -0
  80. package/dist/models/list-financial-transactions-response-class.js +15 -0
  81. package/dist/models/list-number-range-response-class.d.ts +31 -0
  82. package/dist/models/list-number-range-response-class.js +15 -0
  83. package/dist/models/list-personal-accounts-response-class.d.ts +31 -0
  84. package/dist/models/list-personal-accounts-response-class.js +15 -0
  85. package/dist/models/number-range-class.d.ts +84 -0
  86. package/dist/models/number-range-class.js +15 -0
  87. package/dist/models/personal-account-class.d.ts +105 -0
  88. package/dist/models/{create-user-request-dto.js → personal-account-class.js} +10 -10
  89. package/index.ts +2 -2
  90. package/models/booking-entry-class.ts +132 -0
  91. package/models/create-booking-entry-request-dto.ts +67 -0
  92. package/models/create-booking-entry-response-class.ts +31 -0
  93. package/models/create-financial-account-request-dto.ts +84 -0
  94. package/models/create-financial-account-response-class.ts +31 -0
  95. package/models/create-number-range-request-dto.ts +62 -0
  96. package/models/create-number-range-response-class.ts +31 -0
  97. package/models/create-personal-account-request-dto.ts +69 -0
  98. package/models/create-personal-account-response-class.ts +31 -0
  99. package/models/financial-account-class.ts +120 -0
  100. package/models/financial-transaction-class.ts +120 -0
  101. package/models/financial-transaction-data-dto.ts +81 -0
  102. package/models/get-booking-entry-response-class.ts +31 -0
  103. package/models/get-financial-account-response-class.ts +31 -0
  104. package/models/get-financial-transaction-response-class.ts +31 -0
  105. package/models/get-number-range-response-class.ts +31 -0
  106. package/models/get-personal-account-response-class.ts +31 -0
  107. package/models/index.ts +24 -46
  108. package/models/inline-response200.ts +2 -2
  109. package/models/inline-response503.ts +2 -2
  110. package/models/list-booking-entries-response-class.ts +37 -0
  111. package/models/list-financial-accounts-response-class.ts +37 -0
  112. package/models/list-financial-transactions-response-class.ts +37 -0
  113. package/models/list-number-range-response-class.ts +37 -0
  114. package/models/list-personal-accounts-response-class.ts +37 -0
  115. package/models/number-range-class.ts +90 -0
  116. package/models/personal-account-class.ts +114 -0
  117. package/package.json +1 -1
  118. package/api/mailbox-api.ts +0 -251
  119. package/api/messages-api.ts +0 -1096
  120. package/api/users-api.ts +0 -492
  121. package/api/vbas-api.ts +0 -588
  122. package/api/vbus-api.ts +0 -697
  123. package/dist/api/mailbox-api.d.ts +0 -142
  124. package/dist/api/mailbox-api.js +0 -311
  125. package/dist/api/messages-api.d.ts +0 -632
  126. package/dist/api/messages-api.js +0 -912
  127. package/dist/api/users-api.d.ts +0 -275
  128. package/dist/api/users-api.js +0 -508
  129. package/dist/api/vbas-api.d.ts +0 -337
  130. package/dist/api/vbus-api.d.ts +0 -395
  131. package/dist/models/address-class.d.ts +0 -48
  132. package/dist/models/create-mailbox-request-dto.d.ts +0 -36
  133. package/dist/models/create-user-request-dto.d.ts +0 -76
  134. package/dist/models/create-user-response-class.d.ts +0 -25
  135. package/dist/models/create-vba-request-dto.d.ts +0 -41
  136. package/dist/models/create-vba-response-class.d.ts +0 -24
  137. package/dist/models/create-vbu-request-dto.d.ts +0 -41
  138. package/dist/models/create-vbu-response-class.d.ts +0 -24
  139. package/dist/models/create-vbu-response-class.js +0 -15
  140. package/dist/models/create-vbuv-request-dto.d.ts +0 -41
  141. package/dist/models/create-vbuv-response-class.d.ts +0 -24
  142. package/dist/models/create-vbuv-response-class.js +0 -15
  143. package/dist/models/get-request-message-response-class.d.ts +0 -25
  144. package/dist/models/get-request-message-response-class.js +0 -15
  145. package/dist/models/get-response-message-response-class.d.ts +0 -25
  146. package/dist/models/get-response-message-response-class.js +0 -15
  147. package/dist/models/get-user-response-class.d.ts +0 -25
  148. package/dist/models/get-user-response-class.js +0 -15
  149. package/dist/models/get-vba-response-class.d.ts +0 -25
  150. package/dist/models/get-vba-response-class.js +0 -15
  151. package/dist/models/get-vbu-response-class.d.ts +0 -25
  152. package/dist/models/get-vbu-response-class.js +0 -15
  153. package/dist/models/get-zip-code-response-class.d.ts +0 -25
  154. package/dist/models/get-zip-code-response-class.js +0 -15
  155. package/dist/models/list-all-messages-response-class.d.ts +0 -31
  156. package/dist/models/list-all-messages-response-class.js +0 -15
  157. package/dist/models/list-requests-messages-response-class.d.ts +0 -31
  158. package/dist/models/list-requests-messages-response-class.js +0 -15
  159. package/dist/models/list-responses-messages-response-class.d.ts +0 -31
  160. package/dist/models/list-responses-messages-response-class.js +0 -15
  161. package/dist/models/list-users-response-class.d.ts +0 -31
  162. package/dist/models/list-users-response-class.js +0 -15
  163. package/dist/models/list-vbas-response-class.d.ts +0 -31
  164. package/dist/models/list-vbas-response-class.js +0 -15
  165. package/dist/models/list-vbus-response-class.d.ts +0 -31
  166. package/dist/models/list-vbus-response-class.js +0 -15
  167. package/dist/models/list-zip-codes-response-class.d.ts +0 -31
  168. package/dist/models/list-zip-codes-response-class.js +0 -15
  169. package/dist/models/message-class.d.ts +0 -90
  170. package/dist/models/message-class.js +0 -15
  171. package/dist/models/request-details-class.d.ts +0 -48
  172. package/dist/models/request-details-class.js +0 -15
  173. package/dist/models/request-message-class.d.ts +0 -127
  174. package/dist/models/request-message-class.js +0 -15
  175. package/dist/models/response-details-class.d.ts +0 -42
  176. package/dist/models/response-details-class.js +0 -15
  177. package/dist/models/response-message-class.d.ts +0 -139
  178. package/dist/models/response-message-class.js +0 -15
  179. package/dist/models/store-zip-codes-request-dto.d.ts +0 -25
  180. package/dist/models/store-zip-codes-request-dto.js +0 -15
  181. package/dist/models/store-zip-codes-response-class.d.ts +0 -25
  182. package/dist/models/store-zip-codes-response-class.js +0 -15
  183. package/dist/models/update-request-message-request-dto.d.ts +0 -36
  184. package/dist/models/update-request-message-request-dto.js +0 -15
  185. package/dist/models/update-request-message-response-class.d.ts +0 -25
  186. package/dist/models/update-request-message-response-class.js +0 -15
  187. package/dist/models/update-response-message-request-dto.d.ts +0 -36
  188. package/dist/models/update-response-message-request-dto.js +0 -15
  189. package/dist/models/update-response-message-response-class.d.ts +0 -25
  190. package/dist/models/update-response-message-response-class.js +0 -15
  191. package/dist/models/update-user-request-dto.d.ts +0 -82
  192. package/dist/models/update-user-request-dto.js +0 -24
  193. package/dist/models/update-user-response-class.d.ts +0 -25
  194. package/dist/models/update-user-response-class.js +0 -15
  195. package/dist/models/update-vba-request-dto.d.ts +0 -30
  196. package/dist/models/update-vba-request-dto.js +0 -15
  197. package/dist/models/update-vbu-request-dto.d.ts +0 -30
  198. package/dist/models/update-vbu-request-dto.js +0 -15
  199. package/dist/models/update-vbu-response-class.d.ts +0 -25
  200. package/dist/models/update-vbu-response-class.js +0 -15
  201. package/dist/models/user-class.d.ts +0 -107
  202. package/dist/models/user-class.js +0 -20
  203. package/dist/models/vba-class.d.ts +0 -116
  204. package/dist/models/vba-class.js +0 -15
  205. package/dist/models/vba-response-class.d.ts +0 -48
  206. package/dist/models/vba-response-class.js +0 -15
  207. package/dist/models/vbu-class.d.ts +0 -115
  208. package/dist/models/vbu-class.js +0 -15
  209. package/dist/models/vbu-response-class.d.ts +0 -48
  210. package/dist/models/vbu-response-class.js +0 -15
  211. package/dist/models/xlsx-zip-code-dto.d.ts +0 -30
  212. package/dist/models/xlsx-zip-code-dto.js +0 -15
  213. package/dist/models/zip-code-class.d.ts +0 -60
  214. package/dist/models/zip-code-class.js +0 -15
  215. package/models/address-class.ts +0 -54
  216. package/models/create-mailbox-request-dto.ts +0 -42
  217. package/models/create-user-request-dto.ts +0 -86
  218. package/models/create-user-response-class.ts +0 -31
  219. package/models/create-vba-request-dto.ts +0 -50
  220. package/models/create-vba-response-class.ts +0 -30
  221. package/models/create-vbu-request-dto.ts +0 -50
  222. package/models/create-vbu-response-class.ts +0 -30
  223. package/models/create-vbuv-request-dto.ts +0 -50
  224. package/models/create-vbuv-response-class.ts +0 -30
  225. package/models/get-request-message-response-class.ts +0 -31
  226. package/models/get-response-message-response-class.ts +0 -31
  227. package/models/get-user-response-class.ts +0 -31
  228. package/models/get-vba-response-class.ts +0 -31
  229. package/models/get-vbu-response-class.ts +0 -31
  230. package/models/get-zip-code-response-class.ts +0 -31
  231. package/models/list-all-messages-response-class.ts +0 -37
  232. package/models/list-requests-messages-response-class.ts +0 -37
  233. package/models/list-responses-messages-response-class.ts +0 -37
  234. package/models/list-users-response-class.ts +0 -37
  235. package/models/list-vbas-response-class.ts +0 -37
  236. package/models/list-vbus-response-class.ts +0 -37
  237. package/models/list-zip-codes-response-class.ts +0 -37
  238. package/models/message-class.ts +0 -96
  239. package/models/request-details-class.ts +0 -54
  240. package/models/request-message-class.ts +0 -133
  241. package/models/response-details-class.ts +0 -48
  242. package/models/response-message-class.ts +0 -145
  243. package/models/store-zip-codes-request-dto.ts +0 -31
  244. package/models/store-zip-codes-response-class.ts +0 -31
  245. package/models/update-request-message-request-dto.ts +0 -42
  246. package/models/update-request-message-response-class.ts +0 -31
  247. package/models/update-response-message-request-dto.ts +0 -42
  248. package/models/update-response-message-response-class.ts +0 -31
  249. package/models/update-user-request-dto.ts +0 -92
  250. package/models/update-user-response-class.ts +0 -31
  251. package/models/update-vba-request-dto.ts +0 -36
  252. package/models/update-vbu-request-dto.ts +0 -36
  253. package/models/update-vbu-response-class.ts +0 -31
  254. package/models/user-class.ts +0 -116
  255. package/models/vba-class.ts +0 -122
  256. package/models/vba-response-class.ts +0 -54
  257. package/models/vbu-class.ts +0 -121
  258. package/models/vbu-response-class.ts +0 -54
  259. package/models/xlsx-zip-code-dto.ts +0 -36
  260. package/models/zip-code-class.ts +0 -66
package/api/vbas-api.ts DELETED
@@ -1,588 +0,0 @@
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 { CreateVbaRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateVbaResponseClass } from '../models';
27
- // @ts-ignore
28
- import { GetVbaResponseClass } from '../models';
29
- // @ts-ignore
30
- import { ListVbasResponseClass } from '../models';
31
- // @ts-ignore
32
- import { UpdateVbaRequestDto } from '../models';
33
- /**
34
- * VbasApi - axios parameter creator
35
- * @export
36
- */
37
- export const VbasApiAxiosParamCreator = function (configuration?: Configuration) {
38
- return {
39
- /**
40
- * This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready. **Required Permissions** \"gdv-management.operations.create\"
41
- * @summary Create the vba
42
- * @param {CreateVbaRequestDto} createVbaRequestDto
43
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
44
- * @param {*} [options] Override http request option.
45
- * @throws {RequiredError}
46
- */
47
- createVba: async (createVbaRequestDto: CreateVbaRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
48
- // verify required parameter 'createVbaRequestDto' is not null or undefined
49
- assertParamExists('createVba', 'createVbaRequestDto', createVbaRequestDto)
50
- const localVarPath = `/gdvservice/v1/vbas`;
51
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
- let baseOptions;
54
- let baseAccessToken;
55
- if (configuration) {
56
- baseOptions = configuration.baseOptions;
57
- baseAccessToken = configuration.accessToken;
58
- }
59
-
60
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
61
- const localVarHeaderParameter = {} as any;
62
- const localVarQueryParameter = {} as any;
63
-
64
- // authentication bearer required
65
- // http bearer authentication required
66
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
-
68
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
69
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
- }
71
-
72
-
73
-
74
- localVarHeaderParameter['Content-Type'] = 'application/json';
75
-
76
- setSearchParams(localVarUrlObj, localVarQueryParameter);
77
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
79
- localVarRequestOptions.data = serializeDataIfNeeded(createVbaRequestDto, localVarRequestOptions, configuration)
80
-
81
- return {
82
- url: toPathString(localVarUrlObj),
83
- options: localVarRequestOptions,
84
- };
85
- },
86
- /**
87
- * Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information. **Required Permissions** \"gdv-management.operations.view\"
88
- * @summary Retrieve the vba
89
- * @param {string} code Unique identifier for the object.
90
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
91
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
92
- * @param {*} [options] Override http request option.
93
- * @throws {RequiredError}
94
- */
95
- getVba: async (code: string, authorization?: string, expand?: 'responses', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
96
- // verify required parameter 'code' is not null or undefined
97
- assertParamExists('getVba', 'code', code)
98
- const localVarPath = `/gdvservice/v1/vbas/{code}`
99
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
100
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
101
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
102
- let baseOptions;
103
- let baseAccessToken;
104
- if (configuration) {
105
- baseOptions = configuration.baseOptions;
106
- baseAccessToken = configuration.accessToken;
107
- }
108
-
109
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
110
- const localVarHeaderParameter = {} as any;
111
- const localVarQueryParameter = {} as any;
112
-
113
- // authentication bearer required
114
- // http bearer authentication required
115
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
116
-
117
- if (expand !== undefined) {
118
- localVarQueryParameter['expand'] = expand;
119
- }
120
-
121
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
122
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
123
- }
124
-
125
-
126
-
127
- setSearchParams(localVarUrlObj, localVarQueryParameter);
128
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
130
-
131
- return {
132
- url: toPathString(localVarUrlObj),
133
- options: localVarRequestOptions,
134
- };
135
- },
136
- /**
137
- * Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
138
- * @summary List vbas
139
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
140
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
141
- * @param {string} [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.
142
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadNumber, vbNumber, policyNumber, policyCode, customerName, status, expiryDate, createdAt&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
143
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
144
- * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, expiryDate, createdAt, updatedAt, status&lt;/i&gt;
145
- * @param {string} [expand] No expanding supported
146
- * @param {string} [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.
147
- * @param {*} [options] Override http request option.
148
- * @throws {RequiredError}
149
- */
150
- listVbas: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
151
- const localVarPath = `/gdvservice/v1/vbas`;
152
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
154
- let baseOptions;
155
- let baseAccessToken;
156
- if (configuration) {
157
- baseOptions = configuration.baseOptions;
158
- baseAccessToken = configuration.accessToken;
159
- }
160
-
161
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
162
- const localVarHeaderParameter = {} as any;
163
- const localVarQueryParameter = {} as any;
164
-
165
- // authentication bearer required
166
- // http bearer authentication required
167
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
-
169
- if (pageSize !== undefined) {
170
- localVarQueryParameter['pageSize'] = pageSize;
171
- }
172
-
173
- if (pageToken !== undefined) {
174
- localVarQueryParameter['pageToken'] = pageToken;
175
- }
176
-
177
- if (filter !== undefined) {
178
- localVarQueryParameter['filter'] = filter;
179
- }
180
-
181
- if (search !== undefined) {
182
- localVarQueryParameter['search'] = search;
183
- }
184
-
185
- if (order !== undefined) {
186
- localVarQueryParameter['order'] = order;
187
- }
188
-
189
- if (expand !== undefined) {
190
- localVarQueryParameter['expand'] = expand;
191
- }
192
-
193
- if (filters !== undefined) {
194
- localVarQueryParameter['filters'] = filters;
195
- }
196
-
197
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
198
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
199
- }
200
-
201
-
202
-
203
- setSearchParams(localVarUrlObj, localVarQueryParameter);
204
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
205
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
206
-
207
- return {
208
- url: toPathString(localVarUrlObj),
209
- options: localVarRequestOptions,
210
- };
211
- },
212
- /**
213
- * Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
214
- * @summary Update the vba
215
- * @param {string} code Unique identifier for the object.
216
- * @param {UpdateVbaRequestDto} updateVbaRequestDto
217
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
218
- * @param {*} [options] Override http request option.
219
- * @throws {RequiredError}
220
- */
221
- updateVba: async (code: string, updateVbaRequestDto: UpdateVbaRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
222
- // verify required parameter 'code' is not null or undefined
223
- assertParamExists('updateVba', 'code', code)
224
- // verify required parameter 'updateVbaRequestDto' is not null or undefined
225
- assertParamExists('updateVba', 'updateVbaRequestDto', updateVbaRequestDto)
226
- const localVarPath = `/gdvservice/v1/vbas/{code}`
227
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
228
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
229
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
230
- let baseOptions;
231
- let baseAccessToken;
232
- if (configuration) {
233
- baseOptions = configuration.baseOptions;
234
- baseAccessToken = configuration.accessToken;
235
- }
236
-
237
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
238
- const localVarHeaderParameter = {} as any;
239
- const localVarQueryParameter = {} as any;
240
-
241
- // authentication bearer required
242
- // http bearer authentication required
243
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
244
-
245
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
247
- }
248
-
249
-
250
-
251
- localVarHeaderParameter['Content-Type'] = 'application/json';
252
-
253
- setSearchParams(localVarUrlObj, localVarQueryParameter);
254
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
256
- localVarRequestOptions.data = serializeDataIfNeeded(updateVbaRequestDto, localVarRequestOptions, configuration)
257
-
258
- return {
259
- url: toPathString(localVarUrlObj),
260
- options: localVarRequestOptions,
261
- };
262
- },
263
- }
264
- };
265
-
266
- /**
267
- * VbasApi - functional programming interface
268
- * @export
269
- */
270
- export const VbasApiFp = function(configuration?: Configuration) {
271
- const localVarAxiosParamCreator = VbasApiAxiosParamCreator(configuration)
272
- return {
273
- /**
274
- * This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready. **Required Permissions** \"gdv-management.operations.create\"
275
- * @summary Create the vba
276
- * @param {CreateVbaRequestDto} createVbaRequestDto
277
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
278
- * @param {*} [options] Override http request option.
279
- * @throws {RequiredError}
280
- */
281
- async createVba(createVbaRequestDto: CreateVbaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateVbaResponseClass>> {
282
- const localVarAxiosArgs = await localVarAxiosParamCreator.createVba(createVbaRequestDto, authorization, options);
283
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
284
- },
285
- /**
286
- * Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information. **Required Permissions** \"gdv-management.operations.view\"
287
- * @summary Retrieve the vba
288
- * @param {string} code Unique identifier for the object.
289
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
290
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
291
- * @param {*} [options] Override http request option.
292
- * @throws {RequiredError}
293
- */
294
- async getVba(code: string, authorization?: string, expand?: 'responses', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetVbaResponseClass>> {
295
- const localVarAxiosArgs = await localVarAxiosParamCreator.getVba(code, authorization, expand, options);
296
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
297
- },
298
- /**
299
- * Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
300
- * @summary List vbas
301
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
302
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
303
- * @param {string} [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.
304
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadNumber, vbNumber, policyNumber, policyCode, customerName, status, expiryDate, createdAt&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
305
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
306
- * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, expiryDate, createdAt, updatedAt, status&lt;/i&gt;
307
- * @param {string} [expand] No expanding supported
308
- * @param {string} [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.
309
- * @param {*} [options] Override http request option.
310
- * @throws {RequiredError}
311
- */
312
- async listVbas(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListVbasResponseClass>> {
313
- const localVarAxiosArgs = await localVarAxiosParamCreator.listVbas(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
314
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
315
- },
316
- /**
317
- * Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
318
- * @summary Update the vba
319
- * @param {string} code Unique identifier for the object.
320
- * @param {UpdateVbaRequestDto} updateVbaRequestDto
321
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
322
- * @param {*} [options] Override http request option.
323
- * @throws {RequiredError}
324
- */
325
- async updateVba(code: string, updateVbaRequestDto: UpdateVbaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateVbaRequestDto>> {
326
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateVba(code, updateVbaRequestDto, authorization, options);
327
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
328
- },
329
- }
330
- };
331
-
332
- /**
333
- * VbasApi - factory interface
334
- * @export
335
- */
336
- export const VbasApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
337
- const localVarFp = VbasApiFp(configuration)
338
- return {
339
- /**
340
- * This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready. **Required Permissions** \"gdv-management.operations.create\"
341
- * @summary Create the vba
342
- * @param {CreateVbaRequestDto} createVbaRequestDto
343
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
344
- * @param {*} [options] Override http request option.
345
- * @throws {RequiredError}
346
- */
347
- createVba(createVbaRequestDto: CreateVbaRequestDto, authorization?: string, options?: any): AxiosPromise<CreateVbaResponseClass> {
348
- return localVarFp.createVba(createVbaRequestDto, authorization, options).then((request) => request(axios, basePath));
349
- },
350
- /**
351
- * Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information. **Required Permissions** \"gdv-management.operations.view\"
352
- * @summary Retrieve the vba
353
- * @param {string} code Unique identifier for the object.
354
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
355
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
356
- * @param {*} [options] Override http request option.
357
- * @throws {RequiredError}
358
- */
359
- getVba(code: string, authorization?: string, expand?: 'responses', options?: any): AxiosPromise<GetVbaResponseClass> {
360
- return localVarFp.getVba(code, authorization, expand, options).then((request) => request(axios, basePath));
361
- },
362
- /**
363
- * Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
364
- * @summary List vbas
365
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
366
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
367
- * @param {string} [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.
368
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadNumber, vbNumber, policyNumber, policyCode, customerName, status, expiryDate, createdAt&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
369
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
370
- * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, expiryDate, createdAt, updatedAt, status&lt;/i&gt;
371
- * @param {string} [expand] No expanding supported
372
- * @param {string} [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.
373
- * @param {*} [options] Override http request option.
374
- * @throws {RequiredError}
375
- */
376
- listVbas(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListVbasResponseClass> {
377
- return localVarFp.listVbas(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
378
- },
379
- /**
380
- * Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
381
- * @summary Update the vba
382
- * @param {string} code Unique identifier for the object.
383
- * @param {UpdateVbaRequestDto} updateVbaRequestDto
384
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
385
- * @param {*} [options] Override http request option.
386
- * @throws {RequiredError}
387
- */
388
- updateVba(code: string, updateVbaRequestDto: UpdateVbaRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateVbaRequestDto> {
389
- return localVarFp.updateVba(code, updateVbaRequestDto, authorization, options).then((request) => request(axios, basePath));
390
- },
391
- };
392
- };
393
-
394
- /**
395
- * Request parameters for createVba operation in VbasApi.
396
- * @export
397
- * @interface VbasApiCreateVbaRequest
398
- */
399
- export interface VbasApiCreateVbaRequest {
400
- /**
401
- *
402
- * @type {CreateVbaRequestDto}
403
- * @memberof VbasApiCreateVba
404
- */
405
- readonly createVbaRequestDto: CreateVbaRequestDto
406
-
407
- /**
408
- * Bearer Token: provided by the login endpoint under the name accessToken.
409
- * @type {string}
410
- * @memberof VbasApiCreateVba
411
- */
412
- readonly authorization?: string
413
- }
414
-
415
- /**
416
- * Request parameters for getVba operation in VbasApi.
417
- * @export
418
- * @interface VbasApiGetVbaRequest
419
- */
420
- export interface VbasApiGetVbaRequest {
421
- /**
422
- * Unique identifier for the object.
423
- * @type {string}
424
- * @memberof VbasApiGetVba
425
- */
426
- readonly code: string
427
-
428
- /**
429
- * Bearer Token: provided by the login endpoint under the name accessToken.
430
- * @type {string}
431
- * @memberof VbasApiGetVba
432
- */
433
- readonly authorization?: string
434
-
435
- /**
436
- * You can expand policy in this endpoint. By default, versions will be an empty array.
437
- * @type {'responses'}
438
- * @memberof VbasApiGetVba
439
- */
440
- readonly expand?: 'responses'
441
- }
442
-
443
- /**
444
- * Request parameters for listVbas operation in VbasApi.
445
- * @export
446
- * @interface VbasApiListVbasRequest
447
- */
448
- export interface VbasApiListVbasRequest {
449
- /**
450
- * Bearer Token: provided by the login endpoint under the name accessToken.
451
- * @type {string}
452
- * @memberof VbasApiListVbas
453
- */
454
- readonly authorization?: string
455
-
456
- /**
457
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
458
- * @type {number}
459
- * @memberof VbasApiListVbas
460
- */
461
- readonly pageSize?: number
462
-
463
- /**
464
- * 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.
465
- * @type {string}
466
- * @memberof VbasApiListVbas
467
- */
468
- readonly pageToken?: string
469
-
470
- /**
471
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadNumber, vbNumber, policyNumber, policyCode, customerName, status, expiryDate, createdAt&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
472
- * @type {string}
473
- * @memberof VbasApiListVbas
474
- */
475
- readonly filter?: string
476
-
477
- /**
478
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
479
- * @type {string}
480
- * @memberof VbasApiListVbas
481
- */
482
- readonly search?: string
483
-
484
- /**
485
- * Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, expiryDate, createdAt, updatedAt, status&lt;/i&gt;
486
- * @type {string}
487
- * @memberof VbasApiListVbas
488
- */
489
- readonly order?: string
490
-
491
- /**
492
- * No expanding supported
493
- * @type {string}
494
- * @memberof VbasApiListVbas
495
- */
496
- readonly expand?: string
497
-
498
- /**
499
- * 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.
500
- * @type {string}
501
- * @memberof VbasApiListVbas
502
- */
503
- readonly filters?: string
504
- }
505
-
506
- /**
507
- * Request parameters for updateVba operation in VbasApi.
508
- * @export
509
- * @interface VbasApiUpdateVbaRequest
510
- */
511
- export interface VbasApiUpdateVbaRequest {
512
- /**
513
- * Unique identifier for the object.
514
- * @type {string}
515
- * @memberof VbasApiUpdateVba
516
- */
517
- readonly code: string
518
-
519
- /**
520
- *
521
- * @type {UpdateVbaRequestDto}
522
- * @memberof VbasApiUpdateVba
523
- */
524
- readonly updateVbaRequestDto: UpdateVbaRequestDto
525
-
526
- /**
527
- * Bearer Token: provided by the login endpoint under the name accessToken.
528
- * @type {string}
529
- * @memberof VbasApiUpdateVba
530
- */
531
- readonly authorization?: string
532
- }
533
-
534
- /**
535
- * VbasApi - object-oriented interface
536
- * @export
537
- * @class VbasApi
538
- * @extends {BaseAPI}
539
- */
540
- export class VbasApi extends BaseAPI {
541
- /**
542
- * This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready. **Required Permissions** \"gdv-management.operations.create\"
543
- * @summary Create the vba
544
- * @param {VbasApiCreateVbaRequest} requestParameters Request parameters.
545
- * @param {*} [options] Override http request option.
546
- * @throws {RequiredError}
547
- * @memberof VbasApi
548
- */
549
- public createVba(requestParameters: VbasApiCreateVbaRequest, options?: AxiosRequestConfig) {
550
- return VbasApiFp(this.configuration).createVba(requestParameters.createVbaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
551
- }
552
-
553
- /**
554
- * Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information. **Required Permissions** \"gdv-management.operations.view\"
555
- * @summary Retrieve the vba
556
- * @param {VbasApiGetVbaRequest} requestParameters Request parameters.
557
- * @param {*} [options] Override http request option.
558
- * @throws {RequiredError}
559
- * @memberof VbasApi
560
- */
561
- public getVba(requestParameters: VbasApiGetVbaRequest, options?: AxiosRequestConfig) {
562
- return VbasApiFp(this.configuration).getVba(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
563
- }
564
-
565
- /**
566
- * Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
567
- * @summary List vbas
568
- * @param {VbasApiListVbasRequest} requestParameters Request parameters.
569
- * @param {*} [options] Override http request option.
570
- * @throws {RequiredError}
571
- * @memberof VbasApi
572
- */
573
- public listVbas(requestParameters: VbasApiListVbasRequest = {}, options?: AxiosRequestConfig) {
574
- return VbasApiFp(this.configuration).listVbas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
575
- }
576
-
577
- /**
578
- * Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
579
- * @summary Update the vba
580
- * @param {VbasApiUpdateVbaRequest} requestParameters Request parameters.
581
- * @param {*} [options] Override http request option.
582
- * @throws {RequiredError}
583
- * @memberof VbasApi
584
- */
585
- public updateVba(requestParameters: VbasApiUpdateVbaRequest, options?: AxiosRequestConfig) {
586
- return VbasApiFp(this.configuration).updateVba(requestParameters.code, requestParameters.updateVbaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
587
- }
588
- }