@emilgroup/customer-sdk-node 1.11.0 → 1.11.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/policies-api.ts +4 -4
- package/base.ts +1 -5
- package/dist/api/policies-api.d.ts +4 -4
- package/dist/api/policies-api.js +4 -4
- package/dist/base.d.ts +1 -4
- package/dist/base.js +3 -7
- package/dist/models/policy-class.d.ts +2 -2
- package/models/policy-class.ts +2 -2
- package/package.json +1 -1
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/customer-sdk-node@1.11.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.11.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.11.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.11.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
package/api/policies-api.ts
CHANGED
|
@@ -50,7 +50,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
50
50
|
return {
|
|
51
51
|
/**
|
|
52
52
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
53
|
-
* @summary Get current
|
|
53
|
+
* @summary Get current version details
|
|
54
54
|
* @param {string} policyCode The policy code.
|
|
55
55
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
56
56
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
@@ -424,7 +424,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
424
424
|
return {
|
|
425
425
|
/**
|
|
426
426
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
427
|
-
* @summary Get current
|
|
427
|
+
* @summary Get current version details
|
|
428
428
|
* @param {string} policyCode The policy code.
|
|
429
429
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
430
430
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
@@ -534,7 +534,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
534
534
|
return {
|
|
535
535
|
/**
|
|
536
536
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
537
|
-
* @summary Get current
|
|
537
|
+
* @summary Get current version details
|
|
538
538
|
* @param {string} policyCode The policy code.
|
|
539
539
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
540
540
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
@@ -896,7 +896,7 @@ export interface PoliciesApiWithdrawCustomerPolicyRequest {
|
|
|
896
896
|
export class PoliciesApi extends BaseAPI {
|
|
897
897
|
/**
|
|
898
898
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
899
|
-
* @summary Get current
|
|
899
|
+
* @summary Get current version details
|
|
900
900
|
* @param {PoliciesApiGetCustomerPolicyDataByDateRequest} requestParameters Request parameters.
|
|
901
901
|
* @param {*} [options] Override http request option.
|
|
902
902
|
* @throws {RequiredError}
|
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';
|
|
@@ -45,11 +46,6 @@ export interface LoginClass {
|
|
|
45
46
|
permissions: Array<string>;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
export enum Environment {
|
|
49
|
-
Production = 'https://apiv2.emil.de',
|
|
50
|
-
Test = 'https://apiv2-test.emil.de',
|
|
51
|
-
}
|
|
52
|
-
|
|
53
49
|
let _retry_count = 0
|
|
54
50
|
let _retry = null
|
|
55
51
|
|
|
@@ -28,7 +28,7 @@ import { WithdrawCustomerPolicyResponseClass } from '../models';
|
|
|
28
28
|
export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
29
29
|
/**
|
|
30
30
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
31
|
-
* @summary Get current
|
|
31
|
+
* @summary Get current version details
|
|
32
32
|
* @param {string} policyCode The policy code.
|
|
33
33
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
34
34
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
@@ -113,7 +113,7 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
113
113
|
export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
114
114
|
/**
|
|
115
115
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
116
|
-
* @summary Get current
|
|
116
|
+
* @summary Get current version details
|
|
117
117
|
* @param {string} policyCode The policy code.
|
|
118
118
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
119
119
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
@@ -198,7 +198,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
198
198
|
export declare const PoliciesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
199
199
|
/**
|
|
200
200
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
201
|
-
* @summary Get current
|
|
201
|
+
* @summary Get current version details
|
|
202
202
|
* @param {string} policyCode The policy code.
|
|
203
203
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
204
204
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
@@ -514,7 +514,7 @@ export interface PoliciesApiWithdrawCustomerPolicyRequest {
|
|
|
514
514
|
export declare class PoliciesApi extends BaseAPI {
|
|
515
515
|
/**
|
|
516
516
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
517
|
-
* @summary Get current
|
|
517
|
+
* @summary Get current version details
|
|
518
518
|
* @param {PoliciesApiGetCustomerPolicyDataByDateRequest} requestParameters Request parameters.
|
|
519
519
|
* @param {*} [options] Override http request option.
|
|
520
520
|
* @throws {RequiredError}
|
package/dist/api/policies-api.js
CHANGED
|
@@ -98,7 +98,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
100
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
101
|
-
* @summary Get current
|
|
101
|
+
* @summary Get current version details
|
|
102
102
|
* @param {string} policyCode The policy code.
|
|
103
103
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
104
104
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
@@ -441,7 +441,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
441
441
|
return {
|
|
442
442
|
/**
|
|
443
443
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
444
|
-
* @summary Get current
|
|
444
|
+
* @summary Get current version details
|
|
445
445
|
* @param {string} policyCode The policy code.
|
|
446
446
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
447
447
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
@@ -614,7 +614,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
614
614
|
return {
|
|
615
615
|
/**
|
|
616
616
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
617
|
-
* @summary Get current
|
|
617
|
+
* @summary Get current version details
|
|
618
618
|
* @param {string} policyCode The policy code.
|
|
619
619
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
620
620
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
@@ -721,7 +721,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
721
721
|
}
|
|
722
722
|
/**
|
|
723
723
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
724
|
-
* @summary Get current
|
|
724
|
+
* @summary Get current version details
|
|
725
725
|
* @param {PoliciesApiGetCustomerPolicyDataByDateRequest} requestParameters Request parameters.
|
|
726
726
|
* @param {*} [options] Override http request option.
|
|
727
727
|
* @throws {RequiredError}
|
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, AxiosResponse } from 'axios';
|
|
14
15
|
import { InitiateAuthResponseClass, RespondToAuthChallengeClass, RespondToAuthChallengeRequestDto } from "./models";
|
|
15
16
|
export declare const BASE_PATH: string;
|
|
@@ -27,10 +28,6 @@ export interface LoginClass {
|
|
|
27
28
|
accessToken: string;
|
|
28
29
|
permissions: Array<string>;
|
|
29
30
|
}
|
|
30
|
-
export declare enum Environment {
|
|
31
|
-
Production = "https://apiv2.emil.de",
|
|
32
|
-
Test = "https://apiv2-test.emil.de"
|
|
33
|
-
}
|
|
34
31
|
export declare function resetRetry(): void;
|
|
35
32
|
/**
|
|
36
33
|
*
|
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() {
|
|
@@ -161,7 +157,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
161
157
|
this.attachInterceptor(axios);
|
|
162
158
|
}
|
|
163
159
|
BaseAPI.prototype.initialize = function (env) {
|
|
164
|
-
if (env === void 0) { env = Environment.Production; }
|
|
160
|
+
if (env === void 0) { env = api_1.Environment.Production; }
|
|
165
161
|
return __awaiter(this, void 0, void 0, function () {
|
|
166
162
|
return __generator(this, function (_a) {
|
|
167
163
|
switch (_a.label) {
|
package/models/policy-class.ts
CHANGED