@emilgroup/account-sdk 1.5.0 → 1.6.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 +0 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/api/accounts-api.d.ts +10 -10
- package/dist/api/accounts-api.js +42 -48
- package/dist/api.js +4 -15
- package/dist/base.js +10 -13
- package/dist/common.js +12 -23
- package/dist/configuration.js +0 -1
- package/dist/index.js +8 -20
- package/dist/models/account-class.d.ts +7 -1
- package/dist/models/account-class.js +0 -1
- package/dist/models/create-account-request-dto.d.ts +3 -3
- package/dist/models/create-account-request-dto.js +0 -1
- package/dist/models/index.js +6 -24
- package/dist/models/update-account-request-dto.d.ts +3 -3
- package/dist/models/update-account-request-dto.js +0 -1
- package/models/account-class.ts +6 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
unset
|
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.6.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/account-sdk@1.
|
|
24
|
+
yarn add @emilgroup/account-sdk@1.6.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `AccountsApi`.
|
|
@@ -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) => Promise<RequestArgs>;
|
|
34
|
+
createAccount: (createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig<any>) => 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) => Promise<RequestArgs>;
|
|
43
|
+
deleteAccount: (code: string, authorization?: string, options?: AxiosRequestConfig<any>) => 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) => Promise<RequestArgs>;
|
|
53
|
+
getAccount: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig<any>) => 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) => Promise<RequestArgs>;
|
|
67
|
+
listAccounts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig<any>) => 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) => Promise<RequestArgs>;
|
|
77
|
+
updateAccount: (code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig<any>) => 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): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountResponseClass>>;
|
|
92
|
+
createAccount(createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig<any>): 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): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
101
|
+
deleteAccount(code: string, authorization?: string, options?: AxiosRequestConfig<any>): 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): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>>;
|
|
111
|
+
getAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig<any>): 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): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponseClass>>;
|
|
125
|
+
listAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig<any>): 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): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateAccountResponseClass>>;
|
|
135
|
+
updateAccount(code: string, updateAccountRequestDto: UpdateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig<any>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateAccountResponseClass>>;
|
|
136
136
|
};
|
|
137
137
|
/**
|
|
138
138
|
* AccountsApi - factory interface
|
package/dist/api/accounts-api.js
CHANGED
|
@@ -16,12 +16,10 @@ 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 (b.hasOwnProperty(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");
|
|
25
23
|
extendStatics(d, b);
|
|
26
24
|
function __() { this.constructor = d; }
|
|
27
25
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -53,7 +51,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
51
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
52
|
function step(op) {
|
|
55
53
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (
|
|
54
|
+
while (_) try {
|
|
57
55
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
56
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
57
|
switch (op[0]) {
|
|
@@ -78,7 +76,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
76
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
77
|
};
|
|
80
78
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = void 0;
|
|
82
79
|
var axios_1 = __importDefault(require("axios"));
|
|
83
80
|
// Some imports not used depending on template conditions
|
|
84
81
|
// @ts-ignore
|
|
@@ -89,7 +86,7 @@ var base_1 = require("../base");
|
|
|
89
86
|
* AccountsApi - axios parameter creator
|
|
90
87
|
* @export
|
|
91
88
|
*/
|
|
92
|
-
|
|
89
|
+
exports.AccountsApiAxiosParamCreator = function (configuration) {
|
|
93
90
|
var _this = this;
|
|
94
91
|
return {
|
|
95
92
|
/**
|
|
@@ -108,7 +105,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
108
105
|
switch (_a.label) {
|
|
109
106
|
case 0:
|
|
110
107
|
// verify required parameter 'createAccountRequestDto' is not null or undefined
|
|
111
|
-
|
|
108
|
+
common_1.assertParamExists('createAccount', 'createAccountRequestDto', createAccountRequestDto);
|
|
112
109
|
localVarPath = "/accountservice/v1/accounts";
|
|
113
110
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
111
|
if (configuration) {
|
|
@@ -120,7 +117,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
120
117
|
localVarQueryParameter = {};
|
|
121
118
|
// authentication bearer required
|
|
122
119
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/,
|
|
120
|
+
return [4 /*yield*/, common_1.setBearerAuthToObject(localVarHeaderParameter, configuration)];
|
|
124
121
|
case 1:
|
|
125
122
|
// authentication bearer required
|
|
126
123
|
// http bearer authentication required
|
|
@@ -129,12 +126,12 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
129
126
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
127
|
}
|
|
131
128
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
-
|
|
129
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
133
130
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
131
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
-
localVarRequestOptions.data =
|
|
132
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createAccountRequestDto, localVarRequestOptions, configuration);
|
|
136
133
|
return [2 /*return*/, {
|
|
137
|
-
url:
|
|
134
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
138
135
|
options: localVarRequestOptions,
|
|
139
136
|
}];
|
|
140
137
|
}
|
|
@@ -157,9 +154,9 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
157
154
|
switch (_a.label) {
|
|
158
155
|
case 0:
|
|
159
156
|
// verify required parameter 'code' is not null or undefined
|
|
160
|
-
|
|
157
|
+
common_1.assertParamExists('deleteAccount', 'code', code);
|
|
161
158
|
localVarPath = "/accountservice/v1/accounts/{code}"
|
|
162
|
-
.replace("{"
|
|
159
|
+
.replace("{" + "code" + "}", encodeURIComponent(String(code)));
|
|
163
160
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
161
|
if (configuration) {
|
|
165
162
|
baseOptions = configuration.baseOptions;
|
|
@@ -170,7 +167,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
170
167
|
localVarQueryParameter = {};
|
|
171
168
|
// authentication bearer required
|
|
172
169
|
// http bearer authentication required
|
|
173
|
-
return [4 /*yield*/,
|
|
170
|
+
return [4 /*yield*/, common_1.setBearerAuthToObject(localVarHeaderParameter, configuration)];
|
|
174
171
|
case 1:
|
|
175
172
|
// authentication bearer required
|
|
176
173
|
// http bearer authentication required
|
|
@@ -178,11 +175,11 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
178
175
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
176
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
180
177
|
}
|
|
181
|
-
|
|
178
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
182
179
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
180
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
181
|
return [2 /*return*/, {
|
|
185
|
-
url:
|
|
182
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
186
183
|
options: localVarRequestOptions,
|
|
187
184
|
}];
|
|
188
185
|
}
|
|
@@ -206,9 +203,9 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
206
203
|
switch (_a.label) {
|
|
207
204
|
case 0:
|
|
208
205
|
// verify required parameter 'code' is not null or undefined
|
|
209
|
-
|
|
206
|
+
common_1.assertParamExists('getAccount', 'code', code);
|
|
210
207
|
localVarPath = "/accountservice/v1/accounts/{code}"
|
|
211
|
-
.replace("{"
|
|
208
|
+
.replace("{" + "code" + "}", encodeURIComponent(String(code)));
|
|
212
209
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
213
210
|
if (configuration) {
|
|
214
211
|
baseOptions = configuration.baseOptions;
|
|
@@ -219,7 +216,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
219
216
|
localVarQueryParameter = {};
|
|
220
217
|
// authentication bearer required
|
|
221
218
|
// http bearer authentication required
|
|
222
|
-
return [4 /*yield*/,
|
|
219
|
+
return [4 /*yield*/, common_1.setBearerAuthToObject(localVarHeaderParameter, configuration)];
|
|
223
220
|
case 1:
|
|
224
221
|
// authentication bearer required
|
|
225
222
|
// http bearer authentication required
|
|
@@ -230,11 +227,11 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
230
227
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
231
228
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
232
229
|
}
|
|
233
|
-
|
|
230
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
234
231
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
235
232
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
236
233
|
return [2 /*return*/, {
|
|
237
|
-
url:
|
|
234
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
238
235
|
options: localVarRequestOptions,
|
|
239
236
|
}];
|
|
240
237
|
}
|
|
@@ -272,7 +269,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
272
269
|
localVarQueryParameter = {};
|
|
273
270
|
// authentication bearer required
|
|
274
271
|
// http bearer authentication required
|
|
275
|
-
return [4 /*yield*/,
|
|
272
|
+
return [4 /*yield*/, common_1.setBearerAuthToObject(localVarHeaderParameter, configuration)];
|
|
276
273
|
case 1:
|
|
277
274
|
// authentication bearer required
|
|
278
275
|
// http bearer authentication required
|
|
@@ -298,11 +295,11 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
298
295
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
299
296
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
300
297
|
}
|
|
301
|
-
|
|
298
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
302
299
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
303
300
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
304
301
|
return [2 /*return*/, {
|
|
305
|
-
url:
|
|
302
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
306
303
|
options: localVarRequestOptions,
|
|
307
304
|
}];
|
|
308
305
|
}
|
|
@@ -326,11 +323,11 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
326
323
|
switch (_a.label) {
|
|
327
324
|
case 0:
|
|
328
325
|
// verify required parameter 'code' is not null or undefined
|
|
329
|
-
|
|
326
|
+
common_1.assertParamExists('updateAccount', 'code', code);
|
|
330
327
|
// verify required parameter 'updateAccountRequestDto' is not null or undefined
|
|
331
|
-
|
|
328
|
+
common_1.assertParamExists('updateAccount', 'updateAccountRequestDto', updateAccountRequestDto);
|
|
332
329
|
localVarPath = "/accountservice/v1/accounts/{code}"
|
|
333
|
-
.replace("{"
|
|
330
|
+
.replace("{" + "code" + "}", encodeURIComponent(String(code)));
|
|
334
331
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
335
332
|
if (configuration) {
|
|
336
333
|
baseOptions = configuration.baseOptions;
|
|
@@ -341,7 +338,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
341
338
|
localVarQueryParameter = {};
|
|
342
339
|
// authentication bearer required
|
|
343
340
|
// http bearer authentication required
|
|
344
|
-
return [4 /*yield*/,
|
|
341
|
+
return [4 /*yield*/, common_1.setBearerAuthToObject(localVarHeaderParameter, configuration)];
|
|
345
342
|
case 1:
|
|
346
343
|
// authentication bearer required
|
|
347
344
|
// http bearer authentication required
|
|
@@ -350,12 +347,12 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
350
347
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
351
348
|
}
|
|
352
349
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
353
|
-
|
|
350
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
354
351
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
355
352
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
356
|
-
localVarRequestOptions.data =
|
|
353
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateAccountRequestDto, localVarRequestOptions, configuration);
|
|
357
354
|
return [2 /*return*/, {
|
|
358
|
-
url:
|
|
355
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
359
356
|
options: localVarRequestOptions,
|
|
360
357
|
}];
|
|
361
358
|
}
|
|
@@ -364,13 +361,12 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
364
361
|
},
|
|
365
362
|
};
|
|
366
363
|
};
|
|
367
|
-
exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
|
|
368
364
|
/**
|
|
369
365
|
* AccountsApi - functional programming interface
|
|
370
366
|
* @export
|
|
371
367
|
*/
|
|
372
|
-
|
|
373
|
-
var localVarAxiosParamCreator =
|
|
368
|
+
exports.AccountsApiFp = function (configuration) {
|
|
369
|
+
var localVarAxiosParamCreator = exports.AccountsApiAxiosParamCreator(configuration);
|
|
374
370
|
return {
|
|
375
371
|
/**
|
|
376
372
|
* 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.
|
|
@@ -388,7 +384,7 @@ var AccountsApiFp = function (configuration) {
|
|
|
388
384
|
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAccount(createAccountRequestDto, authorization, options)];
|
|
389
385
|
case 1:
|
|
390
386
|
localVarAxiosArgs = _a.sent();
|
|
391
|
-
return [2 /*return*/,
|
|
387
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
392
388
|
}
|
|
393
389
|
});
|
|
394
390
|
});
|
|
@@ -409,7 +405,7 @@ var AccountsApiFp = function (configuration) {
|
|
|
409
405
|
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAccount(code, authorization, options)];
|
|
410
406
|
case 1:
|
|
411
407
|
localVarAxiosArgs = _a.sent();
|
|
412
|
-
return [2 /*return*/,
|
|
408
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
413
409
|
}
|
|
414
410
|
});
|
|
415
411
|
});
|
|
@@ -431,7 +427,7 @@ var AccountsApiFp = function (configuration) {
|
|
|
431
427
|
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAccount(code, authorization, expand, options)];
|
|
432
428
|
case 1:
|
|
433
429
|
localVarAxiosArgs = _a.sent();
|
|
434
|
-
return [2 /*return*/,
|
|
430
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
435
431
|
}
|
|
436
432
|
});
|
|
437
433
|
});
|
|
@@ -457,7 +453,7 @@ var AccountsApiFp = function (configuration) {
|
|
|
457
453
|
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
458
454
|
case 1:
|
|
459
455
|
localVarAxiosArgs = _a.sent();
|
|
460
|
-
return [2 /*return*/,
|
|
456
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
461
457
|
}
|
|
462
458
|
});
|
|
463
459
|
});
|
|
@@ -479,20 +475,19 @@ var AccountsApiFp = function (configuration) {
|
|
|
479
475
|
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAccount(code, updateAccountRequestDto, authorization, options)];
|
|
480
476
|
case 1:
|
|
481
477
|
localVarAxiosArgs = _a.sent();
|
|
482
|
-
return [2 /*return*/,
|
|
478
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
483
479
|
}
|
|
484
480
|
});
|
|
485
481
|
});
|
|
486
482
|
},
|
|
487
483
|
};
|
|
488
484
|
};
|
|
489
|
-
exports.AccountsApiFp = AccountsApiFp;
|
|
490
485
|
/**
|
|
491
486
|
* AccountsApi - factory interface
|
|
492
487
|
* @export
|
|
493
488
|
*/
|
|
494
|
-
|
|
495
|
-
var localVarFp =
|
|
489
|
+
exports.AccountsApiFactory = function (configuration, basePath, axios) {
|
|
490
|
+
var localVarFp = exports.AccountsApiFp(configuration);
|
|
496
491
|
return {
|
|
497
492
|
/**
|
|
498
493
|
* 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.
|
|
@@ -558,7 +553,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
558
553
|
},
|
|
559
554
|
};
|
|
560
555
|
};
|
|
561
|
-
exports.AccountsApiFactory = AccountsApiFactory;
|
|
562
556
|
/**
|
|
563
557
|
* AccountsApi - object-oriented interface
|
|
564
558
|
* @export
|
|
@@ -580,7 +574,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
580
574
|
*/
|
|
581
575
|
AccountsApi.prototype.createAccount = function (requestParameters, options) {
|
|
582
576
|
var _this = this;
|
|
583
|
-
return
|
|
577
|
+
return exports.AccountsApiFp(this.configuration).createAccount(requestParameters.createAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
584
578
|
};
|
|
585
579
|
/**
|
|
586
580
|
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
@@ -592,7 +586,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
592
586
|
*/
|
|
593
587
|
AccountsApi.prototype.deleteAccount = function (requestParameters, options) {
|
|
594
588
|
var _this = this;
|
|
595
|
-
return
|
|
589
|
+
return exports.AccountsApiFp(this.configuration).deleteAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
596
590
|
};
|
|
597
591
|
/**
|
|
598
592
|
* 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.
|
|
@@ -604,7 +598,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
604
598
|
*/
|
|
605
599
|
AccountsApi.prototype.getAccount = function (requestParameters, options) {
|
|
606
600
|
var _this = this;
|
|
607
|
-
return
|
|
601
|
+
return exports.AccountsApiFp(this.configuration).getAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
608
602
|
};
|
|
609
603
|
/**
|
|
610
604
|
* 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.
|
|
@@ -617,7 +611,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
617
611
|
AccountsApi.prototype.listAccounts = function (requestParameters, options) {
|
|
618
612
|
var _this = this;
|
|
619
613
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
620
|
-
return
|
|
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); });
|
|
621
615
|
};
|
|
622
616
|
/**
|
|
623
617
|
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -629,7 +623,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
629
623
|
*/
|
|
630
624
|
AccountsApi.prototype.updateAccount = function (requestParameters, options) {
|
|
631
625
|
var _this = this;
|
|
632
|
-
return
|
|
626
|
+
return exports.AccountsApiFp(this.configuration).updateAccount(requestParameters.code, requestParameters.updateAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
633
627
|
};
|
|
634
628
|
return AccountsApi;
|
|
635
629
|
}(base_1.BaseAPI));
|
package/dist/api.js
CHANGED
|
@@ -12,19 +12,8 @@
|
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
};
|
|
15
|
+
function __export(m) {
|
|
16
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
17
|
+
}
|
|
29
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
|
|
19
|
+
__export(require("./api/accounts-api"));
|
package/dist/base.js
CHANGED
|
@@ -16,12 +16,10 @@ 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 (b.hasOwnProperty(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");
|
|
25
23
|
extendStatics(d, b);
|
|
26
24
|
function __() { this.constructor = d; }
|
|
27
25
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -53,7 +51,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
51
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
52
|
function step(op) {
|
|
55
53
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (
|
|
54
|
+
while (_) try {
|
|
57
55
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
56
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
57
|
switch (op[0]) {
|
|
@@ -78,7 +76,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
76
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
77
|
};
|
|
80
78
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
82
79
|
var configuration_1 = require("./configuration");
|
|
83
80
|
var common_1 = require("./common");
|
|
84
81
|
// Some imports not used depending on template conditions
|
|
@@ -129,7 +126,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
129
126
|
var _a = this.tokenData, accessToken = _a.accessToken, username = _a.username;
|
|
130
127
|
this.configuration = new configuration_1.Configuration({
|
|
131
128
|
basePath: this.basePath,
|
|
132
|
-
accessToken: accessToken ? "Bearer "
|
|
129
|
+
accessToken: accessToken ? "Bearer " + accessToken : '',
|
|
133
130
|
username: username,
|
|
134
131
|
});
|
|
135
132
|
}
|
|
@@ -146,7 +143,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
146
143
|
case 0:
|
|
147
144
|
options = {
|
|
148
145
|
method: 'POST',
|
|
149
|
-
url:
|
|
146
|
+
url: this.configuration.basePath + "/authservice/v1/login",
|
|
150
147
|
headers: { 'Content-Type': 'application/json' },
|
|
151
148
|
data: {
|
|
152
149
|
username: username,
|
|
@@ -159,7 +156,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
159
156
|
response = _a.sent();
|
|
160
157
|
accessToken = response.data.accessToken;
|
|
161
158
|
this.configuration.username = username;
|
|
162
|
-
this.configuration.accessToken = "Bearer "
|
|
159
|
+
this.configuration.accessToken = "Bearer " + accessToken;
|
|
163
160
|
this.tokenData.username = username;
|
|
164
161
|
this.tokenData.accessToken = accessToken;
|
|
165
162
|
this.storeTokenData(__assign({}, this.tokenData));
|
|
@@ -180,7 +177,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
180
177
|
}
|
|
181
178
|
options = {
|
|
182
179
|
method: 'POST',
|
|
183
|
-
url:
|
|
180
|
+
url: this.configuration.basePath + "/authservice/v1/refresh-token",
|
|
184
181
|
headers: {
|
|
185
182
|
'Content-Type': 'application/json',
|
|
186
183
|
},
|
|
@@ -197,12 +194,12 @@ var BaseAPI = /** @class */ (function () {
|
|
|
197
194
|
};
|
|
198
195
|
BaseAPI.prototype.storeTokenData = function (tokenData) {
|
|
199
196
|
if (typeof window !== 'undefined') {
|
|
200
|
-
|
|
197
|
+
common_1.defaultStorage().set(TOKEN_DATA, tokenData);
|
|
201
198
|
}
|
|
202
199
|
};
|
|
203
200
|
BaseAPI.prototype.loadTokenData = function () {
|
|
204
201
|
if (typeof window !== 'undefined') {
|
|
205
|
-
this.tokenData =
|
|
202
|
+
this.tokenData = common_1.defaultStorage().get(TOKEN_DATA) || {};
|
|
206
203
|
}
|
|
207
204
|
else {
|
|
208
205
|
this.tokenData = {};
|
|
@@ -231,7 +228,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
231
228
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
232
229
|
case 2:
|
|
233
230
|
tokenString = _a.sent();
|
|
234
|
-
accessToken = "Bearer "
|
|
231
|
+
accessToken = "Bearer " + tokenString;
|
|
235
232
|
delete originalConfig.headers['Authorization'];
|
|
236
233
|
originalConfig.headers['Authorization'] = accessToken;
|
|
237
234
|
this.configuration.accessToken = accessToken;
|
|
@@ -256,7 +253,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
256
253
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
257
254
|
case 7:
|
|
258
255
|
tokenString = _a.sent();
|
|
259
|
-
accessToken = "Bearer "
|
|
256
|
+
accessToken = "Bearer " + tokenString;
|
|
260
257
|
_retry = true;
|
|
261
258
|
originalConfig.headers['Authorization'] = accessToken;
|
|
262
259
|
this.configuration.accessToken = accessToken;
|
package/dist/common.js
CHANGED
|
@@ -38,7 +38,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
38
38
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
39
39
|
function step(op) {
|
|
40
40
|
if (f) throw new TypeError("Generator is already executing.");
|
|
41
|
-
while (
|
|
41
|
+
while (_) try {
|
|
42
42
|
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;
|
|
43
43
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
44
44
|
switch (op[0]) {
|
|
@@ -60,7 +60,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
|
-
exports.defaultStorage = exports.LocalStorage = exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
64
63
|
var base_1 = require("./base");
|
|
65
64
|
/**
|
|
66
65
|
*
|
|
@@ -72,17 +71,16 @@ exports.DUMMY_BASE_URL = 'https://example.com';
|
|
|
72
71
|
* @throws {RequiredError}
|
|
73
72
|
* @export
|
|
74
73
|
*/
|
|
75
|
-
|
|
74
|
+
exports.assertParamExists = function (functionName, paramName, paramValue) {
|
|
76
75
|
if (paramValue === null || paramValue === undefined) {
|
|
77
|
-
throw new base_1.RequiredError(paramName, "Required parameter "
|
|
76
|
+
throw new base_1.RequiredError(paramName, "Required parameter " + paramName + " was null or undefined when calling " + functionName + ".");
|
|
78
77
|
}
|
|
79
78
|
};
|
|
80
|
-
exports.assertParamExists = assertParamExists;
|
|
81
79
|
/**
|
|
82
80
|
*
|
|
83
81
|
* @export
|
|
84
82
|
*/
|
|
85
|
-
|
|
83
|
+
exports.setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
86
84
|
return __awaiter(this, void 0, void 0, function () {
|
|
87
85
|
var localVarApiKeyValue, _a;
|
|
88
86
|
return __generator(this, function (_b) {
|
|
@@ -107,22 +105,20 @@ var setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
|
107
105
|
});
|
|
108
106
|
});
|
|
109
107
|
};
|
|
110
|
-
exports.setApiKeyToObject = setApiKeyToObject;
|
|
111
108
|
/**
|
|
112
109
|
*
|
|
113
110
|
* @export
|
|
114
111
|
*/
|
|
115
|
-
|
|
112
|
+
exports.setBasicAuthToObject = function (object, configuration) {
|
|
116
113
|
if (configuration && (configuration.username || configuration.password)) {
|
|
117
114
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
118
115
|
}
|
|
119
116
|
};
|
|
120
|
-
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
121
117
|
/**
|
|
122
118
|
*
|
|
123
119
|
* @export
|
|
124
120
|
*/
|
|
125
|
-
|
|
121
|
+
exports.setBearerAuthToObject = function (object, configuration) {
|
|
126
122
|
return __awaiter(this, void 0, void 0, function () {
|
|
127
123
|
var accessToken, _a;
|
|
128
124
|
return __generator(this, function (_b) {
|
|
@@ -147,12 +143,11 @@ var setBearerAuthToObject = function (object, configuration) {
|
|
|
147
143
|
});
|
|
148
144
|
});
|
|
149
145
|
};
|
|
150
|
-
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
151
146
|
/**
|
|
152
147
|
*
|
|
153
148
|
* @export
|
|
154
149
|
*/
|
|
155
|
-
|
|
150
|
+
exports.setOAuthToObject = function (object, name, scopes, configuration) {
|
|
156
151
|
return __awaiter(this, void 0, void 0, function () {
|
|
157
152
|
var localVarAccessTokenValue, _a;
|
|
158
153
|
return __generator(this, function (_b) {
|
|
@@ -177,12 +172,11 @@ var setOAuthToObject = function (object, name, scopes, configuration) {
|
|
|
177
172
|
});
|
|
178
173
|
});
|
|
179
174
|
};
|
|
180
|
-
exports.setOAuthToObject = setOAuthToObject;
|
|
181
175
|
/**
|
|
182
176
|
*
|
|
183
177
|
* @export
|
|
184
178
|
*/
|
|
185
|
-
|
|
179
|
+
exports.setSearchParams = function (url) {
|
|
186
180
|
var objects = [];
|
|
187
181
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
188
182
|
objects[_i - 1] = arguments[_i];
|
|
@@ -205,12 +199,11 @@ var setSearchParams = function (url) {
|
|
|
205
199
|
}
|
|
206
200
|
url.search = searchParams.toString();
|
|
207
201
|
};
|
|
208
|
-
exports.setSearchParams = setSearchParams;
|
|
209
202
|
/**
|
|
210
203
|
*
|
|
211
204
|
* @export
|
|
212
205
|
*/
|
|
213
|
-
|
|
206
|
+
exports.serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
214
207
|
var nonString = typeof value !== 'string';
|
|
215
208
|
var needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
216
209
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
@@ -219,20 +212,18 @@ var serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
|
219
212
|
? JSON.stringify(value !== undefined ? value : {})
|
|
220
213
|
: (value || "");
|
|
221
214
|
};
|
|
222
|
-
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
223
215
|
/**
|
|
224
216
|
*
|
|
225
217
|
* @export
|
|
226
218
|
*/
|
|
227
|
-
|
|
219
|
+
exports.toPathString = function (url) {
|
|
228
220
|
return url.pathname + url.search + url.hash;
|
|
229
221
|
};
|
|
230
|
-
exports.toPathString = toPathString;
|
|
231
222
|
/**
|
|
232
223
|
*
|
|
233
224
|
* @export
|
|
234
225
|
*/
|
|
235
|
-
|
|
226
|
+
exports.createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
236
227
|
return function (axios, basePath) {
|
|
237
228
|
if (axios === void 0) { axios = globalAxios; }
|
|
238
229
|
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
@@ -240,7 +231,6 @@ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configu
|
|
|
240
231
|
return axios.request(axiosRequestArgs);
|
|
241
232
|
};
|
|
242
233
|
};
|
|
243
|
-
exports.createRequestFunction = createRequestFunction;
|
|
244
234
|
var LocalStorage = /** @class */ (function () {
|
|
245
235
|
function LocalStorage() {
|
|
246
236
|
this.storage = localStorage;
|
|
@@ -270,7 +260,6 @@ var LocalStorage = /** @class */ (function () {
|
|
|
270
260
|
}());
|
|
271
261
|
exports.LocalStorage = LocalStorage;
|
|
272
262
|
var _defaultStorage = null;
|
|
273
|
-
|
|
263
|
+
exports.defaultStorage = function () {
|
|
274
264
|
return _defaultStorage || (_defaultStorage = new LocalStorage());
|
|
275
265
|
};
|
|
276
|
-
exports.defaultStorage = defaultStorage;
|
package/dist/configuration.js
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.Configuration = void 0;
|
|
17
16
|
var Configuration = /** @class */ (function () {
|
|
18
17
|
function Configuration(param) {
|
|
19
18
|
if (param === void 0) { param = {}; }
|
package/dist/index.js
CHANGED
|
@@ -12,25 +12,13 @@
|
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
};
|
|
15
|
+
function __export(m) {
|
|
16
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
17
|
+
}
|
|
29
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.BaseAPI = exports.Environment = void 0;
|
|
31
19
|
var base_1 = require("./base");
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
exports.Environment = base_1.Environment;
|
|
21
|
+
exports.BaseAPI = base_1.BaseAPI;
|
|
22
|
+
__export(require("./api"));
|
|
23
|
+
__export(require("./configuration"));
|
|
24
|
+
__export(require("./models"));
|
|
@@ -142,6 +142,12 @@ export interface AccountClass {
|
|
|
142
142
|
* @memberof AccountClass
|
|
143
143
|
*/
|
|
144
144
|
'metadata'?: object;
|
|
145
|
+
/**
|
|
146
|
+
* ERN of the organization that created the account.
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof AccountClass
|
|
149
|
+
*/
|
|
150
|
+
'ern': string;
|
|
145
151
|
/**
|
|
146
152
|
* Optional field contain custom fields
|
|
147
153
|
* @type {object}
|
|
@@ -155,4 +161,4 @@ export declare const AccountClassTitleEnum: {
|
|
|
155
161
|
readonly DrMed: "Dr. med.";
|
|
156
162
|
readonly ProfDrMed: "Prof. Dr. med.";
|
|
157
163
|
};
|
|
158
|
-
export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
|
|
164
|
+
export declare type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
|
|
@@ -118,15 +118,15 @@ export declare const CreateAccountRequestDtoTitleEnum: {
|
|
|
118
118
|
readonly DrMed: "Dr. med.";
|
|
119
119
|
readonly ProfDrMed: "Prof. Dr. med.";
|
|
120
120
|
};
|
|
121
|
-
export type CreateAccountRequestDtoTitleEnum = typeof CreateAccountRequestDtoTitleEnum[keyof typeof CreateAccountRequestDtoTitleEnum];
|
|
121
|
+
export declare type CreateAccountRequestDtoTitleEnum = typeof CreateAccountRequestDtoTitleEnum[keyof typeof CreateAccountRequestDtoTitleEnum];
|
|
122
122
|
export declare const CreateAccountRequestDtoGenderEnum: {
|
|
123
123
|
readonly Male: "male";
|
|
124
124
|
readonly Female: "female";
|
|
125
125
|
readonly Unspecified: "unspecified";
|
|
126
126
|
};
|
|
127
|
-
export type CreateAccountRequestDtoGenderEnum = typeof CreateAccountRequestDtoGenderEnum[keyof typeof CreateAccountRequestDtoGenderEnum];
|
|
127
|
+
export declare type CreateAccountRequestDtoGenderEnum = typeof CreateAccountRequestDtoGenderEnum[keyof typeof CreateAccountRequestDtoGenderEnum];
|
|
128
128
|
export declare const CreateAccountRequestDtoTypeEnum: {
|
|
129
129
|
readonly Person: "person";
|
|
130
130
|
readonly Org: "org";
|
|
131
131
|
};
|
|
132
|
-
export type CreateAccountRequestDtoTypeEnum = typeof CreateAccountRequestDtoTypeEnum[keyof typeof CreateAccountRequestDtoTypeEnum];
|
|
132
|
+
export declare type CreateAccountRequestDtoTypeEnum = typeof CreateAccountRequestDtoTypeEnum[keyof typeof CreateAccountRequestDtoTypeEnum];
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateAccountRequestDtoTypeEnum = exports.CreateAccountRequestDtoGenderEnum = exports.CreateAccountRequestDtoTitleEnum = void 0;
|
|
17
16
|
exports.CreateAccountRequestDtoTitleEnum = {
|
|
18
17
|
Empty: '',
|
|
19
18
|
Dr: 'Dr.',
|
package/dist/models/index.js
CHANGED
|
@@ -1,26 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
2
|
+
function __export(m) {
|
|
3
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
+
}
|
|
16
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
__exportStar(require("./delete-request-dto"), exports);
|
|
21
|
-
__exportStar(require("./get-account-response-class"), exports);
|
|
22
|
-
__exportStar(require("./list-accounts-response-class"), exports);
|
|
23
|
-
__exportStar(require("./policy-class"), exports);
|
|
24
|
-
__exportStar(require("./register-policy-request-dto"), exports);
|
|
25
|
-
__exportStar(require("./update-account-request-dto"), exports);
|
|
26
|
-
__exportStar(require("./update-account-response-class"), exports);
|
|
6
|
+
__export(require("./account-class"));
|
|
7
|
+
__export(require("./create-account-request-dto"));
|
|
8
|
+
__export(require("./update-account-request-dto"));
|
|
@@ -118,15 +118,15 @@ export declare const UpdateAccountRequestDtoTitleEnum: {
|
|
|
118
118
|
readonly DrMed: "Dr. med.";
|
|
119
119
|
readonly ProfDrMed: "Prof. Dr. med.";
|
|
120
120
|
};
|
|
121
|
-
export type UpdateAccountRequestDtoTitleEnum = typeof UpdateAccountRequestDtoTitleEnum[keyof typeof UpdateAccountRequestDtoTitleEnum];
|
|
121
|
+
export declare type UpdateAccountRequestDtoTitleEnum = typeof UpdateAccountRequestDtoTitleEnum[keyof typeof UpdateAccountRequestDtoTitleEnum];
|
|
122
122
|
export declare const UpdateAccountRequestDtoGenderEnum: {
|
|
123
123
|
readonly Male: "male";
|
|
124
124
|
readonly Female: "female";
|
|
125
125
|
readonly Unspecified: "unspecified";
|
|
126
126
|
};
|
|
127
|
-
export type UpdateAccountRequestDtoGenderEnum = typeof UpdateAccountRequestDtoGenderEnum[keyof typeof UpdateAccountRequestDtoGenderEnum];
|
|
127
|
+
export declare type UpdateAccountRequestDtoGenderEnum = typeof UpdateAccountRequestDtoGenderEnum[keyof typeof UpdateAccountRequestDtoGenderEnum];
|
|
128
128
|
export declare const UpdateAccountRequestDtoTypeEnum: {
|
|
129
129
|
readonly Person: "person";
|
|
130
130
|
readonly Org: "org";
|
|
131
131
|
};
|
|
132
|
-
export type UpdateAccountRequestDtoTypeEnum = typeof UpdateAccountRequestDtoTypeEnum[keyof typeof UpdateAccountRequestDtoTypeEnum];
|
|
132
|
+
export declare type UpdateAccountRequestDtoTypeEnum = typeof UpdateAccountRequestDtoTypeEnum[keyof typeof UpdateAccountRequestDtoTypeEnum];
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UpdateAccountRequestDtoTypeEnum = exports.UpdateAccountRequestDtoGenderEnum = exports.UpdateAccountRequestDtoTitleEnum = void 0;
|
|
17
16
|
exports.UpdateAccountRequestDtoTitleEnum = {
|
|
18
17
|
Empty: '',
|
|
19
18
|
Dr: 'Dr.',
|
package/models/account-class.ts
CHANGED
|
@@ -147,6 +147,12 @@ export interface AccountClass {
|
|
|
147
147
|
* @memberof AccountClass
|
|
148
148
|
*/
|
|
149
149
|
'metadata'?: object;
|
|
150
|
+
/**
|
|
151
|
+
* ERN of the organization that created the account.
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof AccountClass
|
|
154
|
+
*/
|
|
155
|
+
'ern': string;
|
|
150
156
|
/**
|
|
151
157
|
* Optional field contain custom fields
|
|
152
158
|
* @type {object}
|