@emilgroup/account-sdk 1.6.0 → 1.8.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 (62) hide show
  1. package/.openapi-generator/FILES +4 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/api/accounts-api.ts +36 -34
  5. package/api/default-api.ts +120 -0
  6. package/api.ts +3 -1
  7. package/base.ts +1 -1
  8. package/common.ts +2 -2
  9. package/configuration.ts +1 -1
  10. package/dist/api/accounts-api.d.ts +37 -37
  11. package/dist/api/accounts-api.js +68 -60
  12. package/dist/api/default-api.d.ts +66 -0
  13. package/dist/api/default-api.js +196 -0
  14. package/dist/api.d.ts +2 -1
  15. package/dist/api.js +17 -5
  16. package/dist/base.d.ts +1 -1
  17. package/dist/base.js +14 -11
  18. package/dist/common.d.ts +2 -2
  19. package/dist/common.js +24 -13
  20. package/dist/configuration.d.ts +1 -1
  21. package/dist/configuration.js +2 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +21 -9
  24. package/dist/models/account-class.d.ts +10 -10
  25. package/dist/models/account-class.js +2 -1
  26. package/dist/models/create-account-request-dto.d.ts +31 -31
  27. package/dist/models/create-account-request-dto.js +2 -1
  28. package/dist/models/create-account-response-class.d.ts +1 -1
  29. package/dist/models/create-account-response-class.js +1 -1
  30. package/dist/models/get-account-response-class.d.ts +1 -1
  31. package/dist/models/get-account-response-class.js +1 -1
  32. package/dist/models/index.d.ts +2 -2
  33. package/dist/models/index.js +24 -6
  34. package/dist/models/inline-response200.d.ts +54 -0
  35. package/dist/models/{delete-request-dto.js → inline-response200.js} +1 -1
  36. package/dist/models/inline-response503.d.ts +54 -0
  37. package/dist/models/{register-policy-request-dto.js → inline-response503.js} +1 -1
  38. package/dist/models/list-accounts-response-class.d.ts +1 -1
  39. package/dist/models/list-accounts-response-class.js +1 -1
  40. package/dist/models/policy-class.d.ts +1 -1
  41. package/dist/models/policy-class.js +1 -1
  42. package/dist/models/update-account-request-dto.d.ts +37 -37
  43. package/dist/models/update-account-request-dto.js +2 -1
  44. package/dist/models/update-account-response-class.d.ts +1 -1
  45. package/dist/models/update-account-response-class.js +1 -1
  46. package/index.ts +1 -1
  47. package/models/account-class.ts +9 -9
  48. package/models/create-account-request-dto.ts +28 -28
  49. package/models/create-account-response-class.ts +1 -1
  50. package/models/get-account-response-class.ts +1 -1
  51. package/models/index.ts +2 -2
  52. package/models/inline-response200.ts +48 -0
  53. package/models/inline-response503.ts +48 -0
  54. package/models/list-accounts-response-class.ts +1 -1
  55. package/models/policy-class.ts +1 -1
  56. package/models/update-account-request-dto.ts +34 -34
  57. package/models/update-account-response-class.ts +1 -1
  58. package/package.json +1 -2
  59. package/dist/models/delete-request-dto.d.ts +0 -24
  60. package/dist/models/register-policy-request-dto.d.ts +0 -36
  61. package/models/delete-request-dto.ts +0 -30
  62. package/models/register-policy-request-dto.ts +0 -42
@@ -1,8 +1,10 @@
1
1
  .gitignore
2
2
  .npmignore
3
+ .openapi-generator-ignore
3
4
  README.md
4
5
  api.ts
5
6
  api/accounts-api.ts
7
+ api/default-api.ts
6
8
  base.ts
7
9
  common.ts
8
10
  configuration.ts
@@ -11,12 +13,12 @@ index.ts
11
13
  models/account-class.ts
12
14
  models/create-account-request-dto.ts
13
15
  models/create-account-response-class.ts
14
- models/delete-request-dto.ts
15
16
  models/get-account-response-class.ts
16
17
  models/index.ts
18
+ models/inline-response200.ts
19
+ models/inline-response503.ts
17
20
  models/list-accounts-response-class.ts
18
21
  models/policy-class.ts
19
- models/register-policy-request-dto.ts
20
22
  models/update-account-request-dto.ts
21
23
  models/update-account-response-class.ts
22
24
  package.json
@@ -1 +1 @@
1
- unset
1
+ 5.4.0
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/account-sdk@1.6.0 --save
20
+ npm install @emilgroup/account-sdk@1.8.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/account-sdk@1.6.0
24
+ yarn add @emilgroup/account-sdk@1.8.0
25
25
  ```
26
26
 
27
27
  And then you can import `AccountsApi`.
@@ -5,7 +5,7 @@
5
5
  * The EMIL AccountService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -134,14 +134,16 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
134
134
  * Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
135
135
  * @summary Retrieve the account
136
136
  * @param {string} code Unique identifier for the object.
137
+ * @param {string} expand
137
138
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
138
- * @param {string} [expand] Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task.
139
139
  * @param {*} [options] Override http request option.
140
140
  * @throws {RequiredError}
141
141
  */
142
- getAccount: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
142
+ getAccount: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
143
143
  // verify required parameter 'code' is not null or undefined
144
144
  assertParamExists('getAccount', 'code', code)
145
+ // verify required parameter 'expand' is not null or undefined
146
+ assertParamExists('getAccount', 'expand', expand)
145
147
  const localVarPath = `/accountservice/v1/accounts/{code}`
146
148
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
147
149
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -186,14 +188,14 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
186
188
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
189
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
188
190
  * @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.
189
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
191
+ * @param {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
190
192
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
191
- * @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.
192
- * @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.
193
+ * @param {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'} [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.
194
+ * @param {'policies'} [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.
193
195
  * @param {*} [options] Override http request option.
194
196
  * @throws {RequiredError}
195
197
  */
196
- listAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
198
+ listAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName', search?: any, order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber', expand?: 'policies', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
199
  const localVarPath = `/accountservice/v1/accounts`;
198
200
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
199
201
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -332,7 +334,7 @@ export const AccountsApiFp = function(configuration?: Configuration) {
332
334
  * @param {*} [options] Override http request option.
333
335
  * @throws {RequiredError}
334
336
  */
335
- async deleteAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
337
+ async deleteAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
336
338
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccount(code, authorization, options);
337
339
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
338
340
  },
@@ -340,13 +342,13 @@ export const AccountsApiFp = function(configuration?: Configuration) {
340
342
  * Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
341
343
  * @summary Retrieve the account
342
344
  * @param {string} code Unique identifier for the object.
345
+ * @param {string} expand
343
346
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
344
- * @param {string} [expand] Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task.
345
347
  * @param {*} [options] Override http request option.
346
348
  * @throws {RequiredError}
347
349
  */
348
- async getAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>> {
349
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAccount(code, authorization, expand, options);
350
+ async getAccount(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>> {
351
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccount(code, expand, authorization, options);
350
352
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
351
353
  },
352
354
  /**
@@ -355,14 +357,14 @@ export const AccountsApiFp = function(configuration?: Configuration) {
355
357
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
356
358
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
357
359
  * @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.
358
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
360
+ * @param {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
359
361
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
360
- * @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.
361
- * @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.
362
+ * @param {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'} [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.
363
+ * @param {'policies'} [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.
362
364
  * @param {*} [options] Override http request option.
363
365
  * @throws {RequiredError}
364
366
  */
365
- async listAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponseClass>> {
367
+ async listAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName', search?: any, order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber', expand?: 'policies', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponseClass>> {
366
368
  const localVarAxiosArgs = await localVarAxiosParamCreator.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options);
367
369
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
368
370
  },
@@ -408,20 +410,20 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
408
410
  * @param {*} [options] Override http request option.
409
411
  * @throws {RequiredError}
410
412
  */
411
- deleteAccount(code: string, authorization?: string, options?: any): AxiosPromise<object> {
413
+ deleteAccount(code: string, authorization?: string, options?: any): AxiosPromise<void> {
412
414
  return localVarFp.deleteAccount(code, authorization, options).then((request) => request(axios, basePath));
413
415
  },
414
416
  /**
415
417
  * Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
416
418
  * @summary Retrieve the account
417
419
  * @param {string} code Unique identifier for the object.
420
+ * @param {string} expand
418
421
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
419
- * @param {string} [expand] Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task.
420
422
  * @param {*} [options] Override http request option.
421
423
  * @throws {RequiredError}
422
424
  */
423
- getAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetAccountResponseClass> {
424
- return localVarFp.getAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
425
+ getAccount(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetAccountResponseClass> {
426
+ return localVarFp.getAccount(code, expand, authorization, options).then((request) => request(axios, basePath));
425
427
  },
426
428
  /**
427
429
  * Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -429,14 +431,14 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
429
431
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
430
432
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
431
433
  * @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.
432
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
434
+ * @param {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
433
435
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
434
- * @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.
435
- * @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.
436
+ * @param {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'} [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.
437
+ * @param {'policies'} [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.
436
438
  * @param {*} [options] Override http request option.
437
439
  * @throws {RequiredError}
438
440
  */
439
- listAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListAccountsResponseClass> {
441
+ listAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName', search?: any, order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber', expand?: 'policies', options?: any): AxiosPromise<ListAccountsResponseClass> {
440
442
  return localVarFp.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
441
443
  },
442
444
  /**
@@ -510,18 +512,18 @@ export interface AccountsApiGetAccountRequest {
510
512
  readonly code: string
511
513
 
512
514
  /**
513
- * Bearer Token: provided by the login endpoint under the name accessToken.
515
+ *
514
516
  * @type {string}
515
517
  * @memberof AccountsApiGetAccount
516
518
  */
517
- readonly authorization?: string
519
+ readonly expand: string
518
520
 
519
521
  /**
520
- * Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task.
522
+ * Bearer Token: provided by the login endpoint under the name accessToken.
521
523
  * @type {string}
522
524
  * @memberof AccountsApiGetAccount
523
525
  */
524
- readonly expand?: string
526
+ readonly authorization?: string
525
527
  }
526
528
 
527
529
  /**
@@ -553,10 +555,10 @@ export interface AccountsApiListAccountsRequest {
553
555
 
554
556
  /**
555
557
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
556
- * @type {any}
558
+ * @type {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName'}
557
559
  * @memberof AccountsApiListAccounts
558
560
  */
559
- readonly filter?: any
561
+ readonly filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName'
560
562
 
561
563
  /**
562
564
  * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
@@ -567,17 +569,17 @@ export interface AccountsApiListAccountsRequest {
567
569
 
568
570
  /**
569
571
  * 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.
570
- * @type {any}
572
+ * @type {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'}
571
573
  * @memberof AccountsApiListAccounts
572
574
  */
573
- readonly order?: any
575
+ readonly order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'
574
576
 
575
577
  /**
576
578
  * 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.
577
- * @type {any}
579
+ * @type {'policies'}
578
580
  * @memberof AccountsApiListAccounts
579
581
  */
580
- readonly expand?: any
582
+ readonly expand?: 'policies'
581
583
  }
582
584
 
583
585
  /**
@@ -648,7 +650,7 @@ export class AccountsApi extends BaseAPI {
648
650
  * @memberof AccountsApi
649
651
  */
650
652
  public getAccount(requestParameters: AccountsApiGetAccountRequest, options?: AxiosRequestConfig) {
651
- return AccountsApiFp(this.configuration).getAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
653
+ return AccountsApiFp(this.configuration).getAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
652
654
  }
653
655
 
654
656
  /**
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountService
5
+ * The EMIL AccountService 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 { InlineResponse200 } from '../models';
25
+ // @ts-ignore
26
+ import { InlineResponse503 } from '../models';
27
+ /**
28
+ * DefaultApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ *
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39
+ const localVarPath = `/accountservice/health`;
40
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42
+ let baseOptions;
43
+ let baseAccessToken;
44
+ if (configuration) {
45
+ baseOptions = configuration.baseOptions;
46
+ baseAccessToken = configuration.accessToken;
47
+ }
48
+
49
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
50
+ const localVarHeaderParameter = {} as any;
51
+ const localVarQueryParameter = {} as any;
52
+
53
+
54
+
55
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
56
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58
+
59
+ return {
60
+ url: toPathString(localVarUrlObj),
61
+ options: localVarRequestOptions,
62
+ };
63
+ },
64
+ }
65
+ };
66
+
67
+ /**
68
+ * DefaultApi - functional programming interface
69
+ * @export
70
+ */
71
+ export const DefaultApiFp = function(configuration?: Configuration) {
72
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
73
+ return {
74
+ /**
75
+ *
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
80
+ const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
81
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
82
+ },
83
+ }
84
+ };
85
+
86
+ /**
87
+ * DefaultApi - factory interface
88
+ * @export
89
+ */
90
+ export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
91
+ const localVarFp = DefaultApiFp(configuration)
92
+ return {
93
+ /**
94
+ *
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ check(options?: any): AxiosPromise<InlineResponse200> {
99
+ return localVarFp.check(options).then((request) => request(axios, basePath));
100
+ },
101
+ };
102
+ };
103
+
104
+ /**
105
+ * DefaultApi - object-oriented interface
106
+ * @export
107
+ * @class DefaultApi
108
+ * @extends {BaseAPI}
109
+ */
110
+ export class DefaultApi extends BaseAPI {
111
+ /**
112
+ *
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ * @memberof DefaultApi
116
+ */
117
+ public check(options?: AxiosRequestConfig) {
118
+ return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
119
+ }
120
+ }
package/api.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * The EMIL AccountService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -21,7 +21,9 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
23
  import { AccountsApi } from './api';
24
+ import { DefaultApi } from './api';
24
25
 
25
26
 
26
27
  export * from './api/accounts-api';
28
+ export * from './api/default-api';
27
29
 
package/base.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * The EMIL AccountService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
package/common.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * The EMIL AccountService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -143,7 +143,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
143
143
  * The EMIL AccountService API description
144
144
  *
145
145
  * The version of the OpenAPI document: 1.0
146
- *
146
+ * Contact: kontakt@emil.de
147
147
  *
148
148
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
149
149
  * https://openapi-generator.tech
package/configuration.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * The EMIL AccountService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech