@emilgroup/account-sdk 1.26.1-beta.2 → 1.26.1-beta.5

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.26.1-beta.2 --save
20
+ npm install @emilgroup/account-sdk@1.26.1-beta.5 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/account-sdk@1.26.1-beta.2
24
+ yarn add @emilgroup/account-sdk@1.26.1-beta.5
25
25
  ```
26
26
 
27
27
  And then you can import `AccountsApi`.
package/base.ts CHANGED
@@ -102,7 +102,11 @@ export class BaseAPI {
102
102
  }
103
103
 
104
104
  selectEnvironment(env: Environment) {
105
- this.configuration.basePath = env;
105
+ this.selectBasePath(env);
106
+ }
107
+
108
+ selectBasePath(path: string) {
109
+ this.configuration.basePath = path;
106
110
  }
107
111
 
108
112
  async authorize(username: string, password: string): Promise<void> {
package/dist/base.d.ts CHANGED
@@ -54,6 +54,7 @@ export declare class BaseAPI {
54
54
  private tokenData?;
55
55
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
56
56
  selectEnvironment(env: Environment): void;
57
+ selectBasePath(path: string): void;
57
58
  authorize(username: string, password: string): Promise<void>;
58
59
  refreshTokenInternal(): Promise<string>;
59
60
  private storeTokenData;
package/dist/base.js CHANGED
@@ -138,7 +138,10 @@ var BaseAPI = /** @class */ (function () {
138
138
  this.attachInterceptor(axios);
139
139
  }
140
140
  BaseAPI.prototype.selectEnvironment = function (env) {
141
- this.configuration.basePath = env;
141
+ this.selectBasePath(env);
142
+ };
143
+ BaseAPI.prototype.selectBasePath = function (path) {
144
+ this.configuration.basePath = path;
142
145
  };
143
146
  BaseAPI.prototype.authorize = function (username, password) {
144
147
  return __awaiter(this, void 0, void 0, function () {
@@ -159,6 +159,6 @@ export declare const AccountClassTitleEnum: {
159
159
  readonly Empty: "";
160
160
  readonly Dr: "Dr.";
161
161
  readonly DrMed: "Dr. med.";
162
- readonly ProfDrMed: "Prof. Dr. med.";
162
+ readonly Prof: "Prof.";
163
163
  };
164
164
  export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
@@ -18,5 +18,5 @@ exports.AccountClassTitleEnum = {
18
18
  Empty: '',
19
19
  Dr: 'Dr.',
20
20
  DrMed: 'Dr. med.',
21
- ProfDrMed: 'Prof. Dr. med.'
21
+ Prof: 'Prof.'
22
22
  };
@@ -116,7 +116,7 @@ export declare const CreateAccountRequestDtoTitleEnum: {
116
116
  readonly Empty: "";
117
117
  readonly Dr: "Dr.";
118
118
  readonly DrMed: "Dr. med.";
119
- readonly ProfDrMed: "Prof. Dr. med.";
119
+ readonly Prof: "Prof.";
120
120
  };
121
121
  export type CreateAccountRequestDtoTitleEnum = typeof CreateAccountRequestDtoTitleEnum[keyof typeof CreateAccountRequestDtoTitleEnum];
122
122
  export declare const CreateAccountRequestDtoGenderEnum: {
@@ -18,7 +18,7 @@ exports.CreateAccountRequestDtoTitleEnum = {
18
18
  Empty: '',
19
19
  Dr: 'Dr.',
20
20
  DrMed: 'Dr. med.',
21
- ProfDrMed: 'Prof. Dr. med.'
21
+ Prof: 'Prof.'
22
22
  };
23
23
  exports.CreateAccountRequestDtoGenderEnum = {
24
24
  Male: 'male',
@@ -116,7 +116,7 @@ export declare const UpdateAccountRequestDtoTitleEnum: {
116
116
  readonly Empty: "";
117
117
  readonly Dr: "Dr.";
118
118
  readonly DrMed: "Dr. med.";
119
- readonly ProfDrMed: "Prof. Dr. med.";
119
+ readonly Prof: "Prof.";
120
120
  };
121
121
  export type UpdateAccountRequestDtoTitleEnum = typeof UpdateAccountRequestDtoTitleEnum[keyof typeof UpdateAccountRequestDtoTitleEnum];
122
122
  export declare const UpdateAccountRequestDtoGenderEnum: {
@@ -18,7 +18,7 @@ exports.UpdateAccountRequestDtoTitleEnum = {
18
18
  Empty: '',
19
19
  Dr: 'Dr.',
20
20
  DrMed: 'Dr. med.',
21
- ProfDrMed: 'Prof. Dr. med.'
21
+ Prof: 'Prof.'
22
22
  };
23
23
  exports.UpdateAccountRequestDtoGenderEnum = {
24
24
  Male: 'male',
@@ -165,7 +165,7 @@ export const AccountClassTitleEnum = {
165
165
  Empty: '',
166
166
  Dr: 'Dr.',
167
167
  DrMed: 'Dr. med.',
168
- ProfDrMed: 'Prof. Dr. med.'
168
+ Prof: 'Prof.'
169
169
  } as const;
170
170
 
171
171
  export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
@@ -122,7 +122,7 @@ export const CreateAccountRequestDtoTitleEnum = {
122
122
  Empty: '',
123
123
  Dr: 'Dr.',
124
124
  DrMed: 'Dr. med.',
125
- ProfDrMed: 'Prof. Dr. med.'
125
+ Prof: 'Prof.'
126
126
  } as const;
127
127
 
128
128
  export type CreateAccountRequestDtoTitleEnum = typeof CreateAccountRequestDtoTitleEnum[keyof typeof CreateAccountRequestDtoTitleEnum];
@@ -122,7 +122,7 @@ export const UpdateAccountRequestDtoTitleEnum = {
122
122
  Empty: '',
123
123
  Dr: 'Dr.',
124
124
  DrMed: 'Dr. med.',
125
- ProfDrMed: 'Prof. Dr. med.'
125
+ Prof: 'Prof.'
126
126
  } as const;
127
127
 
128
128
  export type UpdateAccountRequestDtoTitleEnum = typeof UpdateAccountRequestDtoTitleEnum[keyof typeof UpdateAccountRequestDtoTitleEnum];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/account-sdk",
3
- "version": "1.26.1-beta.2",
3
+ "version": "1.26.1-beta.5",
4
4
  "description": "OpenAPI client for @emilgroup/account-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [