@emilgroup/public-api-sdk-node 1.4.0 → 1.5.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/README.md +2 -2
- package/api.ts +1 -0
- package/base.ts +1 -5
- package/dist/api.d.ts +2 -1
- package/dist/api.js +1 -0
- package/dist/base.d.ts +1 -4
- package/dist/base.js +3 -7
- package/dist/models/create-estimated-invoice-request-dto.d.ts +6 -0
- package/dist/models/create-lead-request-dto.d.ts +6 -0
- package/dist/models/lead-class.d.ts +12 -0
- package/dist/models/update-lead-request-dto.d.ts +6 -0
- package/models/create-estimated-invoice-request-dto.ts +6 -0
- package/models/create-lead-request-dto.ts +6 -0
- package/models/lead-class.ts +12 -0
- package/models/update-lead-request-dto.ts +6 -0
- package/package.json +2 -2
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/public-api-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/public-api-sdk-node@1.5.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk-node@1.5.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
package/api.ts
CHANGED
package/base.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import { Configuration } from "./configuration";
|
|
17
|
+
import { Environment } from "./api";
|
|
17
18
|
// Some imports not used depending on template conditions
|
|
18
19
|
// @ts-ignore
|
|
19
20
|
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
@@ -44,11 +45,6 @@ export interface LoginClass {
|
|
|
44
45
|
permissions: Array<string>;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
export enum Environment {
|
|
48
|
-
Production = 'https://apiv2.emil.de',
|
|
49
|
-
Test = 'https://apiv2-test.emil.de',
|
|
50
|
-
}
|
|
51
|
-
|
|
52
48
|
let _retry_count = 0
|
|
53
49
|
let _retry = null
|
|
54
50
|
|
package/dist/api.d.ts
CHANGED
|
@@ -16,5 +16,6 @@ export * from './api/payments-setup-api';
|
|
|
16
16
|
export * from './api/products-api';
|
|
17
17
|
export declare enum Environment {
|
|
18
18
|
Production = "https://apiv2.emil.de",
|
|
19
|
-
Test = "https://apiv2-test.emil.de"
|
|
19
|
+
Test = "https://apiv2-test.emil.de",
|
|
20
|
+
Development = "https://apiv2-dev.emil.de"
|
|
20
21
|
}
|
package/dist/api.js
CHANGED
|
@@ -37,4 +37,5 @@ var Environment;
|
|
|
37
37
|
(function (Environment) {
|
|
38
38
|
Environment["Production"] = "https://apiv2.emil.de";
|
|
39
39
|
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
40
|
+
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
40
41
|
})(Environment = exports.Environment || (exports.Environment = {}));
|
package/dist/base.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Configuration } from "./configuration";
|
|
13
|
+
import { Environment } from "./api";
|
|
13
14
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
15
|
export declare const BASE_PATH: string;
|
|
15
16
|
/**
|
|
@@ -26,10 +27,6 @@ export interface LoginClass {
|
|
|
26
27
|
accessToken: string;
|
|
27
28
|
permissions: Array<string>;
|
|
28
29
|
}
|
|
29
|
-
export declare enum Environment {
|
|
30
|
-
Production = "https://apiv2.emil.de",
|
|
31
|
-
Test = "https://apiv2-test.emil.de"
|
|
32
|
-
}
|
|
33
30
|
export declare function resetRetry(): void;
|
|
34
31
|
/**
|
|
35
32
|
*
|
package/dist/base.js
CHANGED
|
@@ -101,8 +101,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
101
101
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
102
102
|
};
|
|
103
103
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104
|
-
exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.
|
|
104
|
+
exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
105
105
|
var configuration_1 = require("./configuration");
|
|
106
|
+
var api_1 = require("./api");
|
|
106
107
|
// Some imports not used depending on template conditions
|
|
107
108
|
// @ts-ignore
|
|
108
109
|
var axios_1 = __importDefault(require("axios"));
|
|
@@ -125,11 +126,6 @@ exports.COLLECTION_FORMATS = {
|
|
|
125
126
|
tsv: "\t",
|
|
126
127
|
pipes: "|",
|
|
127
128
|
};
|
|
128
|
-
var Environment;
|
|
129
|
-
(function (Environment) {
|
|
130
|
-
Environment["Production"] = "https://apiv2.emil.de";
|
|
131
|
-
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
132
|
-
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
133
129
|
var _retry_count = 0;
|
|
134
130
|
var _retry = null;
|
|
135
131
|
function resetRetry() {
|
|
@@ -160,7 +156,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
160
156
|
this.attachInterceptor(axios);
|
|
161
157
|
}
|
|
162
158
|
BaseAPI.prototype.initialize = function (env) {
|
|
163
|
-
if (env === void 0) { env = Environment.Production; }
|
|
159
|
+
if (env === void 0) { env = api_1.Environment.Production; }
|
|
164
160
|
return __awaiter(this, void 0, void 0, function () {
|
|
165
161
|
return __generator(this, function (_a) {
|
|
166
162
|
switch (_a.label) {
|
|
@@ -17,6 +17,12 @@ import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
|
17
17
|
* @interface CreateEstimatedInvoiceRequestDto
|
|
18
18
|
*/
|
|
19
19
|
export interface CreateEstimatedInvoiceRequestDto {
|
|
20
|
+
/**
|
|
21
|
+
* Unique identifier referencing the product version.
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof CreateEstimatedInvoiceRequestDto
|
|
24
|
+
*/
|
|
25
|
+
'productVersionId'?: number;
|
|
20
26
|
/**
|
|
21
27
|
* The policy objects to calculate premium.
|
|
22
28
|
* @type {Array<PolicyObjectRequestDto>}
|
|
@@ -26,6 +26,12 @@ export interface CreateLeadRequestDto {
|
|
|
26
26
|
* @memberof CreateLeadRequestDto
|
|
27
27
|
*/
|
|
28
28
|
'code'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier referencing the product version.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof CreateLeadRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'productVersionId'?: number;
|
|
29
35
|
/**
|
|
30
36
|
* Unique identifier of the product that this object belongs to.
|
|
31
37
|
* @type {string}
|
|
@@ -74,4 +74,16 @@ export interface LeadClass {
|
|
|
74
74
|
* @memberof LeadClass
|
|
75
75
|
*/
|
|
76
76
|
'customData'?: object;
|
|
77
|
+
/**
|
|
78
|
+
* Time at which the object was created.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof LeadClass
|
|
81
|
+
*/
|
|
82
|
+
'createdAt': string;
|
|
83
|
+
/**
|
|
84
|
+
* Time at which the object was updated.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof LeadClass
|
|
87
|
+
*/
|
|
88
|
+
'updatedAt': string;
|
|
77
89
|
}
|
|
@@ -26,6 +26,12 @@ export interface UpdateLeadRequestDto {
|
|
|
26
26
|
* @memberof UpdateLeadRequestDto
|
|
27
27
|
*/
|
|
28
28
|
'code': string;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier referencing the product version.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof UpdateLeadRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'productVersionId'?: number;
|
|
29
35
|
/**
|
|
30
36
|
* Unique identifier of the product that this object belongs to.
|
|
31
37
|
* @type {string}
|
|
@@ -22,6 +22,12 @@ import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
|
22
22
|
* @interface CreateEstimatedInvoiceRequestDto
|
|
23
23
|
*/
|
|
24
24
|
export interface CreateEstimatedInvoiceRequestDto {
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier referencing the product version.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof CreateEstimatedInvoiceRequestDto
|
|
29
|
+
*/
|
|
30
|
+
'productVersionId'?: number;
|
|
25
31
|
/**
|
|
26
32
|
* The policy objects to calculate premium.
|
|
27
33
|
* @type {Array<PolicyObjectRequestDto>}
|
|
@@ -31,6 +31,12 @@ export interface CreateLeadRequestDto {
|
|
|
31
31
|
* @memberof CreateLeadRequestDto
|
|
32
32
|
*/
|
|
33
33
|
'code'?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier referencing the product version.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CreateLeadRequestDto
|
|
38
|
+
*/
|
|
39
|
+
'productVersionId'?: number;
|
|
34
40
|
/**
|
|
35
41
|
* Unique identifier of the product that this object belongs to.
|
|
36
42
|
* @type {string}
|
package/models/lead-class.ts
CHANGED
|
@@ -79,5 +79,17 @@ export interface LeadClass {
|
|
|
79
79
|
* @memberof LeadClass
|
|
80
80
|
*/
|
|
81
81
|
'customData'?: object;
|
|
82
|
+
/**
|
|
83
|
+
* Time at which the object was created.
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof LeadClass
|
|
86
|
+
*/
|
|
87
|
+
'createdAt': string;
|
|
88
|
+
/**
|
|
89
|
+
* Time at which the object was updated.
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof LeadClass
|
|
92
|
+
*/
|
|
93
|
+
'updatedAt': string;
|
|
82
94
|
}
|
|
83
95
|
|
|
@@ -31,6 +31,12 @@ export interface UpdateLeadRequestDto {
|
|
|
31
31
|
* @memberof UpdateLeadRequestDto
|
|
32
32
|
*/
|
|
33
33
|
'code': string;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier referencing the product version.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof UpdateLeadRequestDto
|
|
38
|
+
*/
|
|
39
|
+
'productVersionId'?: number;
|
|
34
40
|
/**
|
|
35
41
|
* Unique identifier of the product that this object belongs to.
|
|
36
42
|
* @type {string}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/public-api-sdk-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/public-api-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
27
|
"typescript": "^4.0"
|
|
28
28
|
}
|
|
29
29
|
}
|