@emilgroup/customer-sdk-node 1.0.0 → 1.1.1
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/.openapi-generator/FILES +8 -4
- package/README.md +12 -12
- package/api/customers-api.ts +304 -114
- package/base.ts +57 -43
- package/dist/api/customers-api.d.ts +180 -76
- package/dist/api/customers-api.js +249 -89
- package/dist/base.d.ts +3 -0
- package/dist/base.js +75 -42
- package/dist/models/{login-request-dto.d.ts → authentication-result-class.d.ts} +8 -14
- package/dist/models/{invite-customer-request-dto.js → authentication-result-class.js} +0 -0
- package/dist/models/index.d.ts +8 -4
- package/dist/models/index.js +8 -4
- package/dist/models/initiate-auth-request-dto.d.ts +36 -0
- package/dist/models/{invite-customer-response-class.js → initiate-auth-request-dto.js} +0 -0
- package/dist/models/initiate-auth-response-class.d.ts +43 -0
- package/dist/models/{login-request-dto.js → initiate-auth-response-class.js} +0 -0
- package/dist/models/{invite-customer-request-dto.d.ts → invite-by-customer-request-dto.d.ts} +6 -6
- package/dist/models/{login-response-class.js → invite-by-customer-request-dto.js} +0 -0
- package/dist/models/invite-by-customer-response-class.d.ts +25 -0
- package/dist/models/invite-by-customer-response-class.js +15 -0
- package/dist/models/{invite-customer-response-class.d.ts → invite-by-tenant-response-class.d.ts} +3 -3
- package/dist/models/invite-by-tenant-response-class.js +15 -0
- package/dist/models/respond-to-auth-challenge-class.d.ts +43 -0
- package/dist/models/respond-to-auth-challenge-class.js +15 -0
- package/dist/models/respond-to-auth-challenge-request-dto.d.ts +42 -0
- package/dist/models/respond-to-auth-challenge-request-dto.js +15 -0
- package/models/{login-request-dto.ts → authentication-result-class.ts} +8 -14
- package/models/index.ts +8 -4
- package/models/initiate-auth-request-dto.ts +42 -0
- package/models/initiate-auth-response-class.ts +49 -0
- package/models/{invite-customer-request-dto.ts → invite-by-customer-request-dto.ts} +6 -6
- package/models/invite-by-customer-response-class.ts +31 -0
- package/models/{invite-customer-response-class.ts → invite-by-tenant-response-class.ts} +3 -3
- package/models/respond-to-auth-challenge-class.ts +49 -0
- package/models/respond-to-auth-challenge-request-dto.ts +48 -0
- package/package.json +1 -1
- package/dist/models/login-response-class.d.ts +0 -30
- package/models/login-response-class.ts +0 -36
package/.openapi-generator/FILES
CHANGED
|
@@ -9,19 +9,21 @@ common.ts
|
|
|
9
9
|
configuration.ts
|
|
10
10
|
git_push.sh
|
|
11
11
|
index.ts
|
|
12
|
+
models/authentication-result-class.ts
|
|
12
13
|
models/create-account-request-dto.ts
|
|
13
14
|
models/create-customer-request-dto.ts
|
|
14
15
|
models/create-customer-response-class.ts
|
|
15
16
|
models/forgot-password-request-dto.ts
|
|
16
17
|
models/get-policy-response-class.ts
|
|
17
18
|
models/index.ts
|
|
19
|
+
models/initiate-auth-request-dto.ts
|
|
20
|
+
models/initiate-auth-response-class.ts
|
|
21
|
+
models/invite-by-customer-request-dto.ts
|
|
22
|
+
models/invite-by-customer-response-class.ts
|
|
23
|
+
models/invite-by-tenant-response-class.ts
|
|
18
24
|
models/invite-class.ts
|
|
19
|
-
models/invite-customer-request-dto.ts
|
|
20
|
-
models/invite-customer-response-class.ts
|
|
21
25
|
models/list-invoices-response-class.ts
|
|
22
26
|
models/list-policies-response-class.ts
|
|
23
|
-
models/login-request-dto.ts
|
|
24
|
-
models/login-response-class.ts
|
|
25
27
|
models/policy-class.ts
|
|
26
28
|
models/policy-object-class.ts
|
|
27
29
|
models/policy-premium-class.ts
|
|
@@ -29,6 +31,8 @@ models/policy-premium-item-class.ts
|
|
|
29
31
|
models/policy-version-class.ts
|
|
30
32
|
models/refresh-token-dto.ts
|
|
31
33
|
models/reset-password-by-customer-request-dto.ts
|
|
34
|
+
models/respond-to-auth-challenge-class.ts
|
|
35
|
+
models/respond-to-auth-challenge-request-dto.ts
|
|
32
36
|
models/timeslice-class.ts
|
|
33
37
|
models/verify-customer-invite-response-class.ts
|
|
34
38
|
package.json
|
package/README.md
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
# Emil Customer SDK for Nodejs
|
|
2
2
|
|
|
3
|
-
This TypeScript/JavaScript client utilizes [axios](https://github.com/axios/axios). The generated Node module can be used
|
|
4
|
-
|
|
5
|
-
Environment
|
|
6
|
-
* Node.js
|
|
7
|
-
* Webpack
|
|
8
|
-
* Browserify
|
|
3
|
+
This TypeScript/JavaScript client utilizes [axios](https://github.com/axios/axios). The generated Node module can be used with Nodejs based applications.
|
|
9
4
|
|
|
10
5
|
Language level
|
|
11
6
|
* ES5 - you must have a Promises/A+ library installed
|
|
@@ -15,19 +10,24 @@ Module system
|
|
|
15
10
|
* CommonJS
|
|
16
11
|
* ES6 module system
|
|
17
12
|
|
|
18
|
-
|
|
13
|
+
Although this package can be used in both TypeScript and JavaScript, it is intended to be used with TypeScript. The definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
|
|
19
14
|
|
|
20
|
-
|
|
15
|
+
## Consuming
|
|
21
16
|
|
|
22
|
-
|
|
17
|
+
Navigate to the folder of your consuming project and run one of the following commands:
|
|
23
18
|
|
|
24
19
|
```
|
|
25
|
-
npm install @emilgroup/customer-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.1.1 --save
|
|
21
|
+
```
|
|
22
|
+
or
|
|
26
23
|
```
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.1.1
|
|
25
|
+
```
|
|
26
|
+
|
|
27
27
|
And then you can import `CustomersApi`.
|
|
28
28
|
|
|
29
29
|
```ts
|
|
30
|
-
import { CustomersApi } from '@emilgroup/customer-sdk
|
|
30
|
+
import { CustomersApi } from '@emilgroup/customer-sdk'
|
|
31
31
|
|
|
32
32
|
const customersApi = new CustomersApi();
|
|
33
33
|
```
|