@emilgroup/account-sdk 1.6.0 → 1.7.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.
- package/.openapi-generator/FILES +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/api/accounts-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/accounts-api.d.ts +11 -11
- package/dist/api/accounts-api.js +49 -43
- package/dist/api.d.ts +1 -1
- package/dist/api.js +16 -5
- package/dist/base.d.ts +1 -1
- package/dist/base.js +14 -11
- package/dist/common.d.ts +2 -2
- package/dist/common.js +24 -13
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -9
- package/dist/models/account-class.d.ts +3 -3
- package/dist/models/account-class.js +2 -1
- package/dist/models/create-account-request-dto.d.ts +5 -5
- package/dist/models/create-account-request-dto.js +2 -1
- package/dist/models/create-account-response-class.d.ts +1 -1
- package/dist/models/create-account-response-class.js +1 -1
- package/dist/models/delete-request-dto.d.ts +1 -1
- package/dist/models/delete-request-dto.js +1 -1
- package/dist/models/get-account-response-class.d.ts +1 -1
- package/dist/models/get-account-response-class.js +1 -1
- package/dist/models/index.js +24 -6
- package/dist/models/list-accounts-response-class.d.ts +1 -1
- package/dist/models/list-accounts-response-class.js +1 -1
- package/dist/models/policy-class.d.ts +1 -1
- package/dist/models/policy-class.js +1 -1
- package/dist/models/register-policy-request-dto.d.ts +1 -1
- package/dist/models/register-policy-request-dto.js +1 -1
- package/dist/models/update-account-request-dto.d.ts +5 -5
- package/dist/models/update-account-request-dto.js +2 -1
- package/dist/models/update-account-response-class.d.ts +1 -1
- package/dist/models/update-account-response-class.js +1 -1
- package/index.ts +1 -1
- package/models/account-class.ts +2 -2
- package/models/create-account-request-dto.ts +2 -2
- package/models/create-account-response-class.ts +1 -1
- package/models/delete-request-dto.ts +1 -1
- package/models/get-account-response-class.ts +1 -1
- package/models/list-accounts-response-class.ts +1 -1
- package/models/policy-class.ts +1 -1
- package/models/register-policy-request-dto.ts +1 -1
- package/models/update-account-request-dto.ts +2 -2
- package/models/update-account-response-class.ts +1 -1
- package/package.json +1 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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.
|
|
20
|
+
npm install @emilgroup/account-sdk@1.7.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/account-sdk@1.
|
|
24
|
+
yarn add @emilgroup/account-sdk@1.7.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `AccountsApi`.
|
package/api/accounts-api.ts
CHANGED
package/api.ts
CHANGED
package/base.ts
CHANGED
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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL AccountService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -31,7 +31,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
31
31
|
* @param {*} [options] Override http request option.
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
*/
|
|
34
|
-
createAccount: (createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig
|
|
34
|
+
createAccount: (createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
35
|
/**
|
|
36
36
|
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
37
37
|
* @summary Delete the account
|
|
@@ -40,7 +40,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
40
40
|
* @param {*} [options] Override http request option.
|
|
41
41
|
* @throws {RequiredError}
|
|
42
42
|
*/
|
|
43
|
-
deleteAccount: (code: string, authorization?: string, options?: AxiosRequestConfig
|
|
43
|
+
deleteAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
44
|
/**
|
|
45
45
|
* 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.
|
|
46
46
|
* @summary Retrieve the account
|
|
@@ -50,7 +50,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
*/
|
|
53
|
-
getAccount: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig
|
|
53
|
+
getAccount: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
55
|
* 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.
|
|
56
56
|
* @summary List accounts
|
|
@@ -64,7 +64,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
64
64
|
* @param {*} [options] Override http request option.
|
|
65
65
|
* @throws {RequiredError}
|
|
66
66
|
*/
|
|
67
|
-
listAccounts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig
|
|
67
|
+
listAccounts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
68
68
|
/**
|
|
69
69
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
70
70
|
* @summary Update the account
|
|
@@ -74,7 +74,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
74
74
|
* @param {*} [options] Override http request option.
|
|
75
75
|
* @throws {RequiredError}
|
|
76
76
|
*/
|
|
77
|
-
updateAccount: (code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig
|
|
77
|
+
updateAccount: (code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
80
80
|
* AccountsApi - functional programming interface
|
|
@@ -89,7 +89,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
89
89
|
* @param {*} [options] Override http request option.
|
|
90
90
|
* @throws {RequiredError}
|
|
91
91
|
*/
|
|
92
|
-
createAccount(createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig
|
|
92
|
+
createAccount(createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountResponseClass>>;
|
|
93
93
|
/**
|
|
94
94
|
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
95
95
|
* @summary Delete the account
|
|
@@ -98,7 +98,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
98
98
|
* @param {*} [options] Override http request option.
|
|
99
99
|
* @throws {RequiredError}
|
|
100
100
|
*/
|
|
101
|
-
deleteAccount(code: string, authorization?: string, options?: AxiosRequestConfig
|
|
101
|
+
deleteAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
102
102
|
/**
|
|
103
103
|
* 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.
|
|
104
104
|
* @summary Retrieve the account
|
|
@@ -108,7 +108,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
108
108
|
* @param {*} [options] Override http request option.
|
|
109
109
|
* @throws {RequiredError}
|
|
110
110
|
*/
|
|
111
|
-
getAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig
|
|
111
|
+
getAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>>;
|
|
112
112
|
/**
|
|
113
113
|
* 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.
|
|
114
114
|
* @summary List accounts
|
|
@@ -122,7 +122,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
122
122
|
* @param {*} [options] Override http request option.
|
|
123
123
|
* @throws {RequiredError}
|
|
124
124
|
*/
|
|
125
|
-
listAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig
|
|
125
|
+
listAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponseClass>>;
|
|
126
126
|
/**
|
|
127
127
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
128
128
|
* @summary Update the account
|
|
@@ -132,7 +132,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
132
132
|
* @param {*} [options] Override http request option.
|
|
133
133
|
* @throws {RequiredError}
|
|
134
134
|
*/
|
|
135
|
-
updateAccount(code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig
|
|
135
|
+
updateAccount(code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateAccountResponseClass>>;
|
|
136
136
|
};
|
|
137
137
|
/**
|
|
138
138
|
* AccountsApi - factory interface
|
package/dist/api/accounts-api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The EMIL AccountService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -16,10 +16,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
var extendStatics = function (d, b) {
|
|
17
17
|
extendStatics = Object.setPrototypeOf ||
|
|
18
18
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
20
|
return extendStatics(d, b);
|
|
21
21
|
};
|
|
22
22
|
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
23
25
|
extendStatics(d, b);
|
|
24
26
|
function __() { this.constructor = d; }
|
|
25
27
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -51,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
52
54
|
function step(op) {
|
|
53
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
54
|
-
while (_) try {
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
55
57
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
56
58
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
57
59
|
switch (op[0]) {
|
|
@@ -76,6 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
76
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
77
79
|
};
|
|
78
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = void 0;
|
|
79
82
|
var axios_1 = __importDefault(require("axios"));
|
|
80
83
|
// Some imports not used depending on template conditions
|
|
81
84
|
// @ts-ignore
|
|
@@ -86,7 +89,7 @@ var base_1 = require("../base");
|
|
|
86
89
|
* AccountsApi - axios parameter creator
|
|
87
90
|
* @export
|
|
88
91
|
*/
|
|
89
|
-
|
|
92
|
+
var AccountsApiAxiosParamCreator = function (configuration) {
|
|
90
93
|
var _this = this;
|
|
91
94
|
return {
|
|
92
95
|
/**
|
|
@@ -105,7 +108,7 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
105
108
|
switch (_a.label) {
|
|
106
109
|
case 0:
|
|
107
110
|
// verify required parameter 'createAccountRequestDto' is not null or undefined
|
|
108
|
-
common_1.assertParamExists('createAccount', 'createAccountRequestDto', createAccountRequestDto);
|
|
111
|
+
(0, common_1.assertParamExists)('createAccount', 'createAccountRequestDto', createAccountRequestDto);
|
|
109
112
|
localVarPath = "/accountservice/v1/accounts";
|
|
110
113
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
111
114
|
if (configuration) {
|
|
@@ -117,7 +120,7 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
117
120
|
localVarQueryParameter = {};
|
|
118
121
|
// authentication bearer required
|
|
119
122
|
// http bearer authentication required
|
|
120
|
-
return [4 /*yield*/, common_1.setBearerAuthToObject(localVarHeaderParameter, configuration)];
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
121
124
|
case 1:
|
|
122
125
|
// authentication bearer required
|
|
123
126
|
// http bearer authentication required
|
|
@@ -126,12 +129,12 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
126
129
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
127
130
|
}
|
|
128
131
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
129
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
130
133
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
134
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
132
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createAccountRequestDto, localVarRequestOptions, configuration);
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAccountRequestDto, localVarRequestOptions, configuration);
|
|
133
136
|
return [2 /*return*/, {
|
|
134
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
137
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
135
138
|
options: localVarRequestOptions,
|
|
136
139
|
}];
|
|
137
140
|
}
|
|
@@ -154,9 +157,9 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
154
157
|
switch (_a.label) {
|
|
155
158
|
case 0:
|
|
156
159
|
// verify required parameter 'code' is not null or undefined
|
|
157
|
-
common_1.assertParamExists('deleteAccount', 'code', code);
|
|
160
|
+
(0, common_1.assertParamExists)('deleteAccount', 'code', code);
|
|
158
161
|
localVarPath = "/accountservice/v1/accounts/{code}"
|
|
159
|
-
.replace("{"
|
|
162
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
160
163
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
161
164
|
if (configuration) {
|
|
162
165
|
baseOptions = configuration.baseOptions;
|
|
@@ -167,7 +170,7 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
167
170
|
localVarQueryParameter = {};
|
|
168
171
|
// authentication bearer required
|
|
169
172
|
// http bearer authentication required
|
|
170
|
-
return [4 /*yield*/, common_1.setBearerAuthToObject(localVarHeaderParameter, configuration)];
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
171
174
|
case 1:
|
|
172
175
|
// authentication bearer required
|
|
173
176
|
// http bearer authentication required
|
|
@@ -175,11 +178,11 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
175
178
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
176
179
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
177
180
|
}
|
|
178
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
181
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
179
182
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
180
183
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
181
184
|
return [2 /*return*/, {
|
|
182
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
185
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
183
186
|
options: localVarRequestOptions,
|
|
184
187
|
}];
|
|
185
188
|
}
|
|
@@ -203,9 +206,9 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
203
206
|
switch (_a.label) {
|
|
204
207
|
case 0:
|
|
205
208
|
// verify required parameter 'code' is not null or undefined
|
|
206
|
-
common_1.assertParamExists('getAccount', 'code', code);
|
|
209
|
+
(0, common_1.assertParamExists)('getAccount', 'code', code);
|
|
207
210
|
localVarPath = "/accountservice/v1/accounts/{code}"
|
|
208
|
-
.replace("{"
|
|
211
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
209
212
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
210
213
|
if (configuration) {
|
|
211
214
|
baseOptions = configuration.baseOptions;
|
|
@@ -216,7 +219,7 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
216
219
|
localVarQueryParameter = {};
|
|
217
220
|
// authentication bearer required
|
|
218
221
|
// http bearer authentication required
|
|
219
|
-
return [4 /*yield*/, common_1.setBearerAuthToObject(localVarHeaderParameter, configuration)];
|
|
222
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
220
223
|
case 1:
|
|
221
224
|
// authentication bearer required
|
|
222
225
|
// http bearer authentication required
|
|
@@ -227,11 +230,11 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
227
230
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
228
231
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
229
232
|
}
|
|
230
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
233
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
231
234
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
232
235
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
233
236
|
return [2 /*return*/, {
|
|
234
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
237
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
235
238
|
options: localVarRequestOptions,
|
|
236
239
|
}];
|
|
237
240
|
}
|
|
@@ -269,7 +272,7 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
269
272
|
localVarQueryParameter = {};
|
|
270
273
|
// authentication bearer required
|
|
271
274
|
// http bearer authentication required
|
|
272
|
-
return [4 /*yield*/, common_1.setBearerAuthToObject(localVarHeaderParameter, configuration)];
|
|
275
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
273
276
|
case 1:
|
|
274
277
|
// authentication bearer required
|
|
275
278
|
// http bearer authentication required
|
|
@@ -295,11 +298,11 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
295
298
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
296
299
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
297
300
|
}
|
|
298
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
301
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
299
302
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
300
303
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
301
304
|
return [2 /*return*/, {
|
|
302
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
305
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
303
306
|
options: localVarRequestOptions,
|
|
304
307
|
}];
|
|
305
308
|
}
|
|
@@ -323,11 +326,11 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
323
326
|
switch (_a.label) {
|
|
324
327
|
case 0:
|
|
325
328
|
// verify required parameter 'code' is not null or undefined
|
|
326
|
-
common_1.assertParamExists('updateAccount', 'code', code);
|
|
329
|
+
(0, common_1.assertParamExists)('updateAccount', 'code', code);
|
|
327
330
|
// verify required parameter 'updateAccountRequestDto' is not null or undefined
|
|
328
|
-
common_1.assertParamExists('updateAccount', 'updateAccountRequestDto', updateAccountRequestDto);
|
|
331
|
+
(0, common_1.assertParamExists)('updateAccount', 'updateAccountRequestDto', updateAccountRequestDto);
|
|
329
332
|
localVarPath = "/accountservice/v1/accounts/{code}"
|
|
330
|
-
.replace("{"
|
|
333
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
331
334
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
332
335
|
if (configuration) {
|
|
333
336
|
baseOptions = configuration.baseOptions;
|
|
@@ -338,7 +341,7 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
338
341
|
localVarQueryParameter = {};
|
|
339
342
|
// authentication bearer required
|
|
340
343
|
// http bearer authentication required
|
|
341
|
-
return [4 /*yield*/, common_1.setBearerAuthToObject(localVarHeaderParameter, configuration)];
|
|
344
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
342
345
|
case 1:
|
|
343
346
|
// authentication bearer required
|
|
344
347
|
// http bearer authentication required
|
|
@@ -347,12 +350,12 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
347
350
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
348
351
|
}
|
|
349
352
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
350
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
353
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
351
354
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
352
355
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
353
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateAccountRequestDto, localVarRequestOptions, configuration);
|
|
356
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAccountRequestDto, localVarRequestOptions, configuration);
|
|
354
357
|
return [2 /*return*/, {
|
|
355
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
358
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
356
359
|
options: localVarRequestOptions,
|
|
357
360
|
}];
|
|
358
361
|
}
|
|
@@ -361,12 +364,13 @@ exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
361
364
|
},
|
|
362
365
|
};
|
|
363
366
|
};
|
|
367
|
+
exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
|
|
364
368
|
/**
|
|
365
369
|
* AccountsApi - functional programming interface
|
|
366
370
|
* @export
|
|
367
371
|
*/
|
|
368
|
-
|
|
369
|
-
var localVarAxiosParamCreator = exports.AccountsApiAxiosParamCreator(configuration);
|
|
372
|
+
var AccountsApiFp = function (configuration) {
|
|
373
|
+
var localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
|
|
370
374
|
return {
|
|
371
375
|
/**
|
|
372
376
|
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
@@ -384,7 +388,7 @@ exports.AccountsApiFp = function (configuration) {
|
|
|
384
388
|
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAccount(createAccountRequestDto, authorization, options)];
|
|
385
389
|
case 1:
|
|
386
390
|
localVarAxiosArgs = _a.sent();
|
|
387
|
-
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
391
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
388
392
|
}
|
|
389
393
|
});
|
|
390
394
|
});
|
|
@@ -405,7 +409,7 @@ exports.AccountsApiFp = function (configuration) {
|
|
|
405
409
|
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAccount(code, authorization, options)];
|
|
406
410
|
case 1:
|
|
407
411
|
localVarAxiosArgs = _a.sent();
|
|
408
|
-
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
412
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
409
413
|
}
|
|
410
414
|
});
|
|
411
415
|
});
|
|
@@ -427,7 +431,7 @@ exports.AccountsApiFp = function (configuration) {
|
|
|
427
431
|
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAccount(code, authorization, expand, options)];
|
|
428
432
|
case 1:
|
|
429
433
|
localVarAxiosArgs = _a.sent();
|
|
430
|
-
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
434
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
431
435
|
}
|
|
432
436
|
});
|
|
433
437
|
});
|
|
@@ -453,7 +457,7 @@ exports.AccountsApiFp = function (configuration) {
|
|
|
453
457
|
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
454
458
|
case 1:
|
|
455
459
|
localVarAxiosArgs = _a.sent();
|
|
456
|
-
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
460
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
457
461
|
}
|
|
458
462
|
});
|
|
459
463
|
});
|
|
@@ -475,19 +479,20 @@ exports.AccountsApiFp = function (configuration) {
|
|
|
475
479
|
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAccount(code, updateAccountRequestDto, authorization, options)];
|
|
476
480
|
case 1:
|
|
477
481
|
localVarAxiosArgs = _a.sent();
|
|
478
|
-
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
482
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
479
483
|
}
|
|
480
484
|
});
|
|
481
485
|
});
|
|
482
486
|
},
|
|
483
487
|
};
|
|
484
488
|
};
|
|
489
|
+
exports.AccountsApiFp = AccountsApiFp;
|
|
485
490
|
/**
|
|
486
491
|
* AccountsApi - factory interface
|
|
487
492
|
* @export
|
|
488
493
|
*/
|
|
489
|
-
|
|
490
|
-
var localVarFp = exports.AccountsApiFp(configuration);
|
|
494
|
+
var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
495
|
+
var localVarFp = (0, exports.AccountsApiFp)(configuration);
|
|
491
496
|
return {
|
|
492
497
|
/**
|
|
493
498
|
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
@@ -553,6 +558,7 @@ exports.AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
553
558
|
},
|
|
554
559
|
};
|
|
555
560
|
};
|
|
561
|
+
exports.AccountsApiFactory = AccountsApiFactory;
|
|
556
562
|
/**
|
|
557
563
|
* AccountsApi - object-oriented interface
|
|
558
564
|
* @export
|
|
@@ -574,7 +580,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
574
580
|
*/
|
|
575
581
|
AccountsApi.prototype.createAccount = function (requestParameters, options) {
|
|
576
582
|
var _this = this;
|
|
577
|
-
return exports.AccountsApiFp(this.configuration).createAccount(requestParameters.createAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
583
|
+
return (0, exports.AccountsApiFp)(this.configuration).createAccount(requestParameters.createAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
578
584
|
};
|
|
579
585
|
/**
|
|
580
586
|
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
@@ -586,7 +592,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
586
592
|
*/
|
|
587
593
|
AccountsApi.prototype.deleteAccount = function (requestParameters, options) {
|
|
588
594
|
var _this = this;
|
|
589
|
-
return exports.AccountsApiFp(this.configuration).deleteAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
595
|
+
return (0, exports.AccountsApiFp)(this.configuration).deleteAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
590
596
|
};
|
|
591
597
|
/**
|
|
592
598
|
* 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.
|
|
@@ -598,7 +604,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
598
604
|
*/
|
|
599
605
|
AccountsApi.prototype.getAccount = function (requestParameters, options) {
|
|
600
606
|
var _this = this;
|
|
601
|
-
return exports.AccountsApiFp(this.configuration).getAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
607
|
+
return (0, exports.AccountsApiFp)(this.configuration).getAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
602
608
|
};
|
|
603
609
|
/**
|
|
604
610
|
* 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.
|
|
@@ -611,7 +617,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
611
617
|
AccountsApi.prototype.listAccounts = function (requestParameters, options) {
|
|
612
618
|
var _this = this;
|
|
613
619
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
614
|
-
return exports.AccountsApiFp(this.configuration).listAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
620
|
+
return (0, exports.AccountsApiFp)(this.configuration).listAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
615
621
|
};
|
|
616
622
|
/**
|
|
617
623
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -623,7 +629,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
623
629
|
*/
|
|
624
630
|
AccountsApi.prototype.updateAccount = function (requestParameters, options) {
|
|
625
631
|
var _this = this;
|
|
626
|
-
return exports.AccountsApiFp(this.configuration).updateAccount(requestParameters.code, requestParameters.updateAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
632
|
+
return (0, exports.AccountsApiFp)(this.configuration).updateAccount(requestParameters.code, requestParameters.updateAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
627
633
|
};
|
|
628
634
|
return AccountsApi;
|
|
629
635
|
}(base_1.BaseAPI));
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -6,14 +6,25 @@
|
|
|
6
6
|
* The EMIL AccountService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
27
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
|
+
};
|
|
18
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
|
|
30
|
+
__exportStar(require("./api/accounts-api"), exports);
|
package/dist/base.d.ts
CHANGED