@emilgroup/claim-sdk 1.0.1 → 1.8.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 +7 -7
- package/base.ts +1 -0
- package/dist/base.d.ts +2 -1
- package/dist/base.js +1 -0
- package/git_push.sh +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,27 +17,27 @@ 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/claim-sdk@1.0
|
|
20
|
+
npm install @emilgroup/claim-sdk@1.8.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/claim-sdk@1.0
|
|
24
|
+
yarn add @emilgroup/claim-sdk@1.8.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
And then you can import `
|
|
27
|
+
And then you can import `ClaimsApi`.
|
|
28
28
|
|
|
29
29
|
```ts
|
|
30
|
-
import {
|
|
30
|
+
import { ClaimsApi } from '@emilgroup/claim-sdk'
|
|
31
31
|
|
|
32
|
-
const claimsApi = new
|
|
32
|
+
const claimsApi = new ClaimsApi();
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
To use authentication protected endpoints, you have to first authorize. To do so, use the `authorize` function in `
|
|
35
|
+
To use authentication protected endpoints, you have to first authorize. To do so, use the `authorize` function in `ClaimsApi`:
|
|
36
36
|
|
|
37
37
|
```ts
|
|
38
38
|
async function listClaims(): Promise<Void> {
|
|
39
39
|
try {
|
|
40
|
-
const claimsApi = new
|
|
40
|
+
const claimsApi = new ClaimsApi();
|
|
41
41
|
|
|
42
42
|
await claimsApi.authorize('username', 'password');
|
|
43
43
|
|
package/base.ts
CHANGED
package/dist/base.d.ts
CHANGED
|
@@ -29,7 +29,8 @@ export interface LoginClass {
|
|
|
29
29
|
export declare enum Environment {
|
|
30
30
|
Production = "https://apiv2.emil.de",
|
|
31
31
|
Test = "https://apiv2-test.emil.de",
|
|
32
|
-
Development = "https://apiv2-dev.emil.de"
|
|
32
|
+
Development = "https://apiv2-dev.emil.de",
|
|
33
|
+
ProductionZurich = "https://eu-central-2.apiv2.emil.de"
|
|
33
34
|
}
|
|
34
35
|
export declare function resetRetry(): void;
|
|
35
36
|
/**
|
package/dist/base.js
CHANGED
|
@@ -100,6 +100,7 @@ var Environment;
|
|
|
100
100
|
Environment["Production"] = "https://apiv2.emil.de";
|
|
101
101
|
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
102
102
|
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
103
|
+
Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
|
|
103
104
|
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
104
105
|
var _retry_count = 0;
|
|
105
106
|
var _retry = null;
|
package/git_push.sh
CHANGED