@emilgroup/tenant-sdk 1.15.1-beta.0 → 1.16.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/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/tenant-sdk@1.15.1-beta.0 --save
20
+ npm install @emilgroup/tenant-sdk@1.16.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.15.1-beta.0
24
+ yarn add @emilgroup/tenant-sdk@1.16.0
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
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 () {
@@ -33,6 +33,12 @@ export interface OrganizationClass {
33
33
  * @memberof OrganizationClass
34
34
  */
35
35
  'parentId'?: number;
36
+ /**
37
+ * Parent organization name
38
+ * @type {string}
39
+ * @memberof OrganizationClass
40
+ */
41
+ 'parentName': string;
36
42
  /**
37
43
  * Emil Resources Names (ERN) identifies the most specific owner of a resource.
38
44
  * @type {string}
@@ -38,6 +38,12 @@ export interface OrganizationClass {
38
38
  * @memberof OrganizationClass
39
39
  */
40
40
  'parentId'?: number;
41
+ /**
42
+ * Parent organization name
43
+ * @type {string}
44
+ * @memberof OrganizationClass
45
+ */
46
+ 'parentName': string;
41
47
  /**
42
48
  * Emil Resources Names (ERN) identifies the most specific owner of a resource.
43
49
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/tenant-sdk",
3
- "version": "1.15.1-beta.0",
3
+ "version": "1.16.0",
4
4
  "description": "OpenAPI client for @emilgroup/tenant-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [