@emilgroup/billing-sdk 1.2.1 → 1.3.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/billing-sdk@1.2.1 --save
20
+ npm install @emilgroup/billing-sdk@1.3.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk@1.2.1
24
+ yarn add @emilgroup/billing-sdk@1.3.0
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
package/base.ts CHANGED
@@ -160,6 +160,8 @@ export class BaseAPI {
160
160
  public loadTokenData() {
161
161
  if (typeof window !== 'undefined') {
162
162
  this.tokenData = defaultStorage().get<TokenData>(TOKEN_DATA) || {};
163
+ } else {
164
+ this.tokenData = {};
163
165
  }
164
166
  }
165
167
 
package/dist/base.js CHANGED
@@ -204,6 +204,9 @@ var BaseAPI = /** @class */ (function () {
204
204
  if (typeof window !== 'undefined') {
205
205
  this.tokenData = (0, common_1.defaultStorage)().get(TOKEN_DATA) || {};
206
206
  }
207
+ else {
208
+ this.tokenData = {};
209
+ }
207
210
  };
208
211
  BaseAPI.prototype.cleanTokenData = function () {
209
212
  this.storeTokenData(null);
@@ -111,7 +111,7 @@ export interface PolicyDto {
111
111
  * @type {string}
112
112
  * @memberof PolicyDto
113
113
  */
114
- 'tenantHierarchy': string;
114
+ 'ern': string;
115
115
  }
116
116
  export declare const PolicyDtoStatusEnum: {
117
117
  readonly Active: "ACTIVE";
@@ -39,4 +39,10 @@ export interface PolicyObjectDto {
39
39
  * @memberof PolicyObjectDto
40
40
  */
41
41
  'data': object;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PolicyObjectDto
46
+ */
47
+ 'code': string;
42
48
  }
@@ -116,7 +116,7 @@ export interface PolicyDto {
116
116
  * @type {string}
117
117
  * @memberof PolicyDto
118
118
  */
119
- 'tenantHierarchy': string;
119
+ 'ern': string;
120
120
  }
121
121
 
122
122
  export const PolicyDtoStatusEnum = {
@@ -44,5 +44,11 @@ export interface PolicyObjectDto {
44
44
  * @memberof PolicyObjectDto
45
45
  */
46
46
  'data': object;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof PolicyObjectDto
51
+ */
52
+ 'code': string;
47
53
  }
48
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -21,7 +21,6 @@
21
21
  "axios": "^0.27.2"
22
22
  },
23
23
  "devDependencies": {
24
-
25
24
  "typescript": "^4.0"
26
25
  }
27
26
  }