@emilgroup/insurance-sdk-node 1.7.1 → 1.7.2
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/api.ts +0 -6
- package/base.ts +6 -1
- package/dist/api.d.ts +0 -5
- package/dist/api.js +0 -7
- package/dist/base.d.ts +5 -1
- package/dist/base.js +8 -3
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -45,9 +45,3 @@ export * from './api/product-fields-api';
|
|
|
45
45
|
export * from './api/product-versions-api';
|
|
46
46
|
export * from './api/products-api';
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
export enum Environment {
|
|
50
|
-
Production = 'https://apiv2.emil.de',
|
|
51
|
-
Test = 'https://apiv2-test.emil.de',
|
|
52
|
-
Development = 'https://apiv2-dev.emil.de',
|
|
53
|
-
}
|
package/base.ts
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import { Configuration } from "./configuration";
|
|
17
|
-
import { Environment } from "./api";
|
|
18
17
|
// Some imports not used depending on template conditions
|
|
19
18
|
// @ts-ignore
|
|
20
19
|
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
@@ -45,6 +44,12 @@ export interface LoginClass {
|
|
|
45
44
|
permissions: Array<string>;
|
|
46
45
|
}
|
|
47
46
|
|
|
47
|
+
export enum Environment {
|
|
48
|
+
Production = 'https://apiv2.emil.de',
|
|
49
|
+
Test = 'https://apiv2-test.emil.de',
|
|
50
|
+
Development = 'https://apiv2-dev.emil.de',
|
|
51
|
+
}
|
|
52
|
+
|
|
48
53
|
let _retry_count = 0
|
|
49
54
|
let _retry = null
|
|
50
55
|
|
package/dist/api.d.ts
CHANGED
|
@@ -18,8 +18,3 @@ export * from './api/product-factors-api';
|
|
|
18
18
|
export * from './api/product-fields-api';
|
|
19
19
|
export * from './api/product-versions-api';
|
|
20
20
|
export * from './api/products-api';
|
|
21
|
-
export declare enum Environment {
|
|
22
|
-
Production = "https://apiv2.emil.de",
|
|
23
|
-
Test = "https://apiv2-test.emil.de",
|
|
24
|
-
Development = "https://apiv2-dev.emil.de"
|
|
25
|
-
}
|
package/dist/api.js
CHANGED
|
@@ -27,7 +27,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.Environment = void 0;
|
|
31
30
|
__exportStar(require("./api/insured-object-types-api"), exports);
|
|
32
31
|
__exportStar(require("./api/insured-objects-api"), exports);
|
|
33
32
|
__exportStar(require("./api/leads-api"), exports);
|
|
@@ -37,9 +36,3 @@ __exportStar(require("./api/product-factors-api"), exports);
|
|
|
37
36
|
__exportStar(require("./api/product-fields-api"), exports);
|
|
38
37
|
__exportStar(require("./api/product-versions-api"), exports);
|
|
39
38
|
__exportStar(require("./api/products-api"), exports);
|
|
40
|
-
var Environment;
|
|
41
|
-
(function (Environment) {
|
|
42
|
-
Environment["Production"] = "https://apiv2.emil.de";
|
|
43
|
-
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
44
|
-
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
45
|
-
})(Environment = exports.Environment || (exports.Environment = {}));
|
package/dist/base.d.ts
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Configuration } from "./configuration";
|
|
13
|
-
import { Environment } from "./api";
|
|
14
13
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
15
14
|
export declare const BASE_PATH: string;
|
|
16
15
|
/**
|
|
@@ -27,6 +26,11 @@ export interface LoginClass {
|
|
|
27
26
|
accessToken: string;
|
|
28
27
|
permissions: Array<string>;
|
|
29
28
|
}
|
|
29
|
+
export declare enum Environment {
|
|
30
|
+
Production = "https://apiv2.emil.de",
|
|
31
|
+
Test = "https://apiv2-test.emil.de",
|
|
32
|
+
Development = "https://apiv2-dev.emil.de"
|
|
33
|
+
}
|
|
30
34
|
export declare function resetRetry(): void;
|
|
31
35
|
/**
|
|
32
36
|
*
|
package/dist/base.js
CHANGED
|
@@ -101,9 +101,8 @@ 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.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
104
|
+
exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
105
105
|
var configuration_1 = require("./configuration");
|
|
106
|
-
var api_1 = require("./api");
|
|
107
106
|
// Some imports not used depending on template conditions
|
|
108
107
|
// @ts-ignore
|
|
109
108
|
var axios_1 = __importDefault(require("axios"));
|
|
@@ -126,6 +125,12 @@ exports.COLLECTION_FORMATS = {
|
|
|
126
125
|
tsv: "\t",
|
|
127
126
|
pipes: "|",
|
|
128
127
|
};
|
|
128
|
+
var Environment;
|
|
129
|
+
(function (Environment) {
|
|
130
|
+
Environment["Production"] = "https://apiv2.emil.de";
|
|
131
|
+
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
132
|
+
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
133
|
+
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
129
134
|
var _retry_count = 0;
|
|
130
135
|
var _retry = null;
|
|
131
136
|
function resetRetry() {
|
|
@@ -156,7 +161,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
156
161
|
this.attachInterceptor(axios);
|
|
157
162
|
}
|
|
158
163
|
BaseAPI.prototype.initialize = function (env) {
|
|
159
|
-
if (env === void 0) { env =
|
|
164
|
+
if (env === void 0) { env = Environment.Production; }
|
|
160
165
|
return __awaiter(this, void 0, void 0, function () {
|
|
161
166
|
return __generator(this, function (_a) {
|
|
162
167
|
switch (_a.label) {
|