@emilgroup/account-sdk 1.4.0 → 1.4.2

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/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.4.0 --save
20
+ npm install @emilgroup/account-sdk@1.4.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/account-sdk@1.4.0
24
+ yarn add @emilgroup/account-sdk@1.4.1
25
25
  ```
26
26
 
27
27
  And then you can import `AccountsApi`.
package/base.ts CHANGED
@@ -155,11 +155,15 @@ export class BaseAPI {
155
155
  if (typeof window !== 'undefined') {
156
156
  defaultStorage().set<TokenData>(TOKEN_DATA, tokenData);
157
157
  }
158
+
159
+ this.tokenData = null;
158
160
  }
159
161
 
160
162
  public loadTokenData() {
161
163
  if (typeof window !== 'undefined') {
162
164
  this.tokenData = defaultStorage().get<TokenData>(TOKEN_DATA) || {};
165
+ } else {
166
+ this.tokenData = {};
163
167
  }
164
168
  }
165
169
 
@@ -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<any>) => Promise<RequestArgs>;
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<any>) => Promise<RequestArgs>;
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<any>) => Promise<RequestArgs>;
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<any>) => Promise<RequestArgs>;
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<any>) => Promise<RequestArgs>;
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<any>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountResponseClass>>;
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<any>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
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<any>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>>;
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<any>): 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): 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<any>): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateAccountResponseClass>>;
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
@@ -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 (b.hasOwnProperty(p)) d[p] = b[p]; };
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
- exports.AccountsApiAxiosParamCreator = function (configuration) {
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("{" + "code" + "}", encodeURIComponent(String(code)));
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("{" + "code" + "}", encodeURIComponent(String(code)));
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("{" + "code" + "}", encodeURIComponent(String(code)));
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
- exports.AccountsApiFp = function (configuration) {
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
- exports.AccountsApiFactory = function (configuration, basePath, axios) {
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.js CHANGED
@@ -12,8 +12,19 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
- function __export(m) {
16
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
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
- __export(require("./api/accounts-api"));
30
+ __exportStar(require("./api/accounts-api"), exports);
package/dist/base.js CHANGED
@@ -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 (b.hasOwnProperty(p)) d[p] = b[p]; };
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.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
79
82
  var configuration_1 = require("./configuration");
80
83
  var common_1 = require("./common");
81
84
  // Some imports not used depending on template conditions
@@ -126,7 +129,7 @@ var BaseAPI = /** @class */ (function () {
126
129
  var _a = this.tokenData, accessToken = _a.accessToken, username = _a.username;
127
130
  this.configuration = new configuration_1.Configuration({
128
131
  basePath: this.basePath,
129
- accessToken: accessToken ? "Bearer " + accessToken : '',
132
+ accessToken: accessToken ? "Bearer ".concat(accessToken) : '',
130
133
  username: username,
131
134
  });
132
135
  }
@@ -143,7 +146,7 @@ var BaseAPI = /** @class */ (function () {
143
146
  case 0:
144
147
  options = {
145
148
  method: 'POST',
146
- url: this.configuration.basePath + "/authservice/v1/login",
149
+ url: "".concat(this.configuration.basePath, "/authservice/v1/login"),
147
150
  headers: { 'Content-Type': 'application/json' },
148
151
  data: {
149
152
  username: username,
@@ -156,7 +159,7 @@ var BaseAPI = /** @class */ (function () {
156
159
  response = _a.sent();
157
160
  accessToken = response.data.accessToken;
158
161
  this.configuration.username = username;
159
- this.configuration.accessToken = "Bearer " + accessToken;
162
+ this.configuration.accessToken = "Bearer ".concat(accessToken);
160
163
  this.tokenData.username = username;
161
164
  this.tokenData.accessToken = accessToken;
162
165
  this.storeTokenData(__assign({}, this.tokenData));
@@ -177,7 +180,7 @@ var BaseAPI = /** @class */ (function () {
177
180
  }
178
181
  options = {
179
182
  method: 'POST',
180
- url: this.configuration.basePath + "/authservice/v1/refresh-token",
183
+ url: "".concat(this.configuration.basePath, "/authservice/v1/refresh-token"),
181
184
  headers: {
182
185
  'Content-Type': 'application/json',
183
186
  },
@@ -194,12 +197,16 @@ var BaseAPI = /** @class */ (function () {
194
197
  };
195
198
  BaseAPI.prototype.storeTokenData = function (tokenData) {
196
199
  if (typeof window !== 'undefined') {
197
- common_1.defaultStorage().set(TOKEN_DATA, tokenData);
200
+ (0, common_1.defaultStorage)().set(TOKEN_DATA, tokenData);
198
201
  }
202
+ this.tokenData = null;
199
203
  };
200
204
  BaseAPI.prototype.loadTokenData = function () {
201
205
  if (typeof window !== 'undefined') {
202
- this.tokenData = common_1.defaultStorage().get(TOKEN_DATA) || {};
206
+ this.tokenData = (0, common_1.defaultStorage)().get(TOKEN_DATA) || {};
207
+ }
208
+ else {
209
+ this.tokenData = {};
203
210
  }
204
211
  };
205
212
  BaseAPI.prototype.cleanTokenData = function () {
@@ -225,7 +232,7 @@ var BaseAPI = /** @class */ (function () {
225
232
  return [4 /*yield*/, this.refreshTokenInternal()];
226
233
  case 2:
227
234
  tokenString = _a.sent();
228
- accessToken = "Bearer " + tokenString;
235
+ accessToken = "Bearer ".concat(tokenString);
229
236
  delete originalConfig.headers['Authorization'];
230
237
  originalConfig.headers['Authorization'] = accessToken;
231
238
  this.configuration.accessToken = accessToken;
@@ -250,7 +257,7 @@ var BaseAPI = /** @class */ (function () {
250
257
  return [4 /*yield*/, this.refreshTokenInternal()];
251
258
  case 7:
252
259
  tokenString = _a.sent();
253
- accessToken = "Bearer " + tokenString;
260
+ accessToken = "Bearer ".concat(tokenString);
254
261
  _retry = true;
255
262
  originalConfig.headers['Authorization'] = accessToken;
256
263
  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 (_) try {
41
+ while (g && (g = 0, op[0] && (_ = 0)), _) 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,6 +60,7 @@ 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;
63
64
  var base_1 = require("./base");
64
65
  /**
65
66
  *
@@ -71,16 +72,17 @@ exports.DUMMY_BASE_URL = 'https://example.com';
71
72
  * @throws {RequiredError}
72
73
  * @export
73
74
  */
74
- exports.assertParamExists = function (functionName, paramName, paramValue) {
75
+ var assertParamExists = function (functionName, paramName, paramValue) {
75
76
  if (paramValue === null || paramValue === undefined) {
76
- throw new base_1.RequiredError(paramName, "Required parameter " + paramName + " was null or undefined when calling " + functionName + ".");
77
+ throw new base_1.RequiredError(paramName, "Required parameter ".concat(paramName, " was null or undefined when calling ").concat(functionName, "."));
77
78
  }
78
79
  };
80
+ exports.assertParamExists = assertParamExists;
79
81
  /**
80
82
  *
81
83
  * @export
82
84
  */
83
- exports.setApiKeyToObject = function (object, keyParamName, configuration) {
85
+ var setApiKeyToObject = function (object, keyParamName, configuration) {
84
86
  return __awaiter(this, void 0, void 0, function () {
85
87
  var localVarApiKeyValue, _a;
86
88
  return __generator(this, function (_b) {
@@ -105,20 +107,22 @@ exports.setApiKeyToObject = function (object, keyParamName, configuration) {
105
107
  });
106
108
  });
107
109
  };
110
+ exports.setApiKeyToObject = setApiKeyToObject;
108
111
  /**
109
112
  *
110
113
  * @export
111
114
  */
112
- exports.setBasicAuthToObject = function (object, configuration) {
115
+ var setBasicAuthToObject = function (object, configuration) {
113
116
  if (configuration && (configuration.username || configuration.password)) {
114
117
  object["auth"] = { username: configuration.username, password: configuration.password };
115
118
  }
116
119
  };
120
+ exports.setBasicAuthToObject = setBasicAuthToObject;
117
121
  /**
118
122
  *
119
123
  * @export
120
124
  */
121
- exports.setBearerAuthToObject = function (object, configuration) {
125
+ var setBearerAuthToObject = function (object, configuration) {
122
126
  return __awaiter(this, void 0, void 0, function () {
123
127
  var accessToken, _a;
124
128
  return __generator(this, function (_b) {
@@ -143,11 +147,12 @@ exports.setBearerAuthToObject = function (object, configuration) {
143
147
  });
144
148
  });
145
149
  };
150
+ exports.setBearerAuthToObject = setBearerAuthToObject;
146
151
  /**
147
152
  *
148
153
  * @export
149
154
  */
150
- exports.setOAuthToObject = function (object, name, scopes, configuration) {
155
+ var setOAuthToObject = function (object, name, scopes, configuration) {
151
156
  return __awaiter(this, void 0, void 0, function () {
152
157
  var localVarAccessTokenValue, _a;
153
158
  return __generator(this, function (_b) {
@@ -172,11 +177,12 @@ exports.setOAuthToObject = function (object, name, scopes, configuration) {
172
177
  });
173
178
  });
174
179
  };
180
+ exports.setOAuthToObject = setOAuthToObject;
175
181
  /**
176
182
  *
177
183
  * @export
178
184
  */
179
- exports.setSearchParams = function (url) {
185
+ var setSearchParams = function (url) {
180
186
  var objects = [];
181
187
  for (var _i = 1; _i < arguments.length; _i++) {
182
188
  objects[_i - 1] = arguments[_i];
@@ -199,11 +205,12 @@ exports.setSearchParams = function (url) {
199
205
  }
200
206
  url.search = searchParams.toString();
201
207
  };
208
+ exports.setSearchParams = setSearchParams;
202
209
  /**
203
210
  *
204
211
  * @export
205
212
  */
206
- exports.serializeDataIfNeeded = function (value, requestOptions, configuration) {
213
+ var serializeDataIfNeeded = function (value, requestOptions, configuration) {
207
214
  var nonString = typeof value !== 'string';
208
215
  var needsSerialization = nonString && configuration && configuration.isJsonMime
209
216
  ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
@@ -212,18 +219,20 @@ exports.serializeDataIfNeeded = function (value, requestOptions, configuration)
212
219
  ? JSON.stringify(value !== undefined ? value : {})
213
220
  : (value || "");
214
221
  };
222
+ exports.serializeDataIfNeeded = serializeDataIfNeeded;
215
223
  /**
216
224
  *
217
225
  * @export
218
226
  */
219
- exports.toPathString = function (url) {
227
+ var toPathString = function (url) {
220
228
  return url.pathname + url.search + url.hash;
221
229
  };
230
+ exports.toPathString = toPathString;
222
231
  /**
223
232
  *
224
233
  * @export
225
234
  */
226
- exports.createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
235
+ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
227
236
  return function (axios, basePath) {
228
237
  if (axios === void 0) { axios = globalAxios; }
229
238
  if (basePath === void 0) { basePath = BASE_PATH; }
@@ -231,6 +240,7 @@ exports.createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, con
231
240
  return axios.request(axiosRequestArgs);
232
241
  };
233
242
  };
243
+ exports.createRequestFunction = createRequestFunction;
234
244
  var LocalStorage = /** @class */ (function () {
235
245
  function LocalStorage() {
236
246
  this.storage = localStorage;
@@ -260,6 +270,7 @@ var LocalStorage = /** @class */ (function () {
260
270
  }());
261
271
  exports.LocalStorage = LocalStorage;
262
272
  var _defaultStorage = null;
263
- exports.defaultStorage = function () {
273
+ var defaultStorage = function () {
264
274
  return _defaultStorage || (_defaultStorage = new LocalStorage());
265
275
  };
276
+ exports.defaultStorage = defaultStorage;
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.Configuration = void 0;
16
17
  var Configuration = /** @class */ (function () {
17
18
  function Configuration(param) {
18
19
  if (param === void 0) { param = {}; }
package/dist/index.js CHANGED
@@ -12,13 +12,25 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
- function __export(m) {
16
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
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 });
30
+ exports.BaseAPI = exports.Environment = void 0;
19
31
  var base_1 = require("./base");
20
- exports.Environment = base_1.Environment;
21
- exports.BaseAPI = base_1.BaseAPI;
22
- __export(require("./api"));
23
- __export(require("./configuration"));
24
- __export(require("./models"));
32
+ Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return base_1.Environment; } });
33
+ Object.defineProperty(exports, "BaseAPI", { enumerable: true, get: function () { return base_1.BaseAPI; } });
34
+ __exportStar(require("./api"), exports);
35
+ __exportStar(require("./configuration"), exports);
36
+ __exportStar(require("./models"), exports);
@@ -155,4 +155,4 @@ export declare const AccountClassTitleEnum: {
155
155
  readonly DrMed: "Dr. med.";
156
156
  readonly ProfDrMed: "Prof. Dr. med.";
157
157
  };
158
- export declare type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
158
+ export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AccountClassTitleEnum = void 0;
16
17
  exports.AccountClassTitleEnum = {
17
18
  Empty: '',
18
19
  Dr: 'Dr.',
@@ -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 declare type CreateAccountRequestDtoTitleEnum = typeof CreateAccountRequestDtoTitleEnum[keyof typeof CreateAccountRequestDtoTitleEnum];
121
+ export 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 declare type CreateAccountRequestDtoGenderEnum = typeof CreateAccountRequestDtoGenderEnum[keyof typeof CreateAccountRequestDtoGenderEnum];
127
+ export 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 declare type CreateAccountRequestDtoTypeEnum = typeof CreateAccountRequestDtoTypeEnum[keyof typeof CreateAccountRequestDtoTypeEnum];
132
+ export type CreateAccountRequestDtoTypeEnum = typeof CreateAccountRequestDtoTypeEnum[keyof typeof CreateAccountRequestDtoTypeEnum];
@@ -13,6 +13,7 @@
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;
16
17
  exports.CreateAccountRequestDtoTitleEnum = {
17
18
  Empty: '',
18
19
  Dr: 'Dr.',
@@ -1,8 +1,26 @@
1
1
  "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
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
+ };
5
16
  Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./account-class"));
7
- __export(require("./create-account-request-dto"));
8
- __export(require("./update-account-request-dto"));
17
+ __exportStar(require("./account-class"), exports);
18
+ __exportStar(require("./create-account-request-dto"), exports);
19
+ __exportStar(require("./create-account-response-class"), exports);
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);
@@ -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 declare type UpdateAccountRequestDtoTitleEnum = typeof UpdateAccountRequestDtoTitleEnum[keyof typeof UpdateAccountRequestDtoTitleEnum];
121
+ export 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 declare type UpdateAccountRequestDtoGenderEnum = typeof UpdateAccountRequestDtoGenderEnum[keyof typeof UpdateAccountRequestDtoGenderEnum];
127
+ export 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 declare type UpdateAccountRequestDtoTypeEnum = typeof UpdateAccountRequestDtoTypeEnum[keyof typeof UpdateAccountRequestDtoTypeEnum];
132
+ export type UpdateAccountRequestDtoTypeEnum = typeof UpdateAccountRequestDtoTypeEnum[keyof typeof UpdateAccountRequestDtoTypeEnum];
@@ -13,6 +13,7 @@
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;
16
17
  exports.UpdateAccountRequestDtoTitleEnum = {
17
18
  Empty: '',
18
19
  Dr: 'Dr.',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/account-sdk",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "OpenAPI client for @emilgroup/account-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [