@colijnit/ioneconnector 1.0.128 → 1.0.129
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/build/connector-auth.d.ts +2 -1
- package/build/connector-auth.js +2 -2
- package/build/connector-public.d.ts +2 -1
- package/build/connector-public.js +2 -2
- package/build/connector.d.ts +2 -1
- package/build/connector.js +2 -2
- package/build/ione-api-connection.d.ts +2 -1
- package/build/model/configurator-statistics-environment.d.ts +8 -0
- package/build/model/configurator-statistics-environment.js +5 -0
- package/build/provider/data-repository.service.d.ts +2 -1
- package/build/provider/data-repository.service.js +6 -3
- package/build/service/hd-data.service.d.ts +2 -1
- package/build/service/hd-data.service.js +4 -1
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ import { Concept } from "./model/concept";
|
|
|
27
27
|
import { ArticleGroup } from "./model/article-group";
|
|
28
28
|
import { ArticleExtendedDto } from "./model/article-extended-dto";
|
|
29
29
|
import { InternalParam } from "./enum/internal-param.enum";
|
|
30
|
+
import { ConfiguratorStatisticsEnvironment } from "./model/configurator-statistics-environment";
|
|
30
31
|
export declare class ConnectorAuth implements IoneApiConnection {
|
|
31
32
|
readonly showLoader: Subject<boolean>;
|
|
32
33
|
readonly connectionResetInactivity: Subject<void>;
|
|
@@ -68,7 +69,7 @@ export declare class ConnectorAuth implements IoneApiConnection {
|
|
|
68
69
|
navigateTo(params: any): Promise<DataServiceResponseRoot>;
|
|
69
70
|
getStockForArtNode(branchNo: string, selNodeId: number): Promise<number>;
|
|
70
71
|
getMatchTable(): Promise<any>;
|
|
71
|
-
getFrozenArticle(): Promise<any>;
|
|
72
|
+
getFrozenArticle(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<any>;
|
|
72
73
|
getJsonArticleFlatTree(goodId: number): Promise<any>;
|
|
73
74
|
getSkipButtonImageAndText(goodId?: number): Promise<SkipButtonInfo>;
|
|
74
75
|
getArticlesForCatalog(params: GetArticlesForCatalogRequest, paging: PagingParameters, showLoader: boolean): Promise<ArticleListObjectExtended[] | ArticleExtendedDto[]>;
|
package/build/connector-auth.js
CHANGED
|
@@ -125,8 +125,8 @@ class ConnectorAuth {
|
|
|
125
125
|
getMatchTable() {
|
|
126
126
|
return this.dataRepository.getMatchTable();
|
|
127
127
|
}
|
|
128
|
-
getFrozenArticle() {
|
|
129
|
-
return this.dataRepository.getFrozenArticle();
|
|
128
|
+
getFrozenArticle(configuratorStatistics) {
|
|
129
|
+
return this.dataRepository.getFrozenArticle(configuratorStatistics);
|
|
130
130
|
}
|
|
131
131
|
getJsonArticleFlatTree(goodId) {
|
|
132
132
|
return this.dataRepository.getJsonArticleFlatTree(goodId);
|
|
@@ -25,6 +25,7 @@ import { Concept } from "./model/concept";
|
|
|
25
25
|
import { ArticleGroup } from "./model/article-group";
|
|
26
26
|
import { ArticleExtendedDto } from "./model/article-extended-dto";
|
|
27
27
|
import { InternalParam } from "./enum/internal-param.enum";
|
|
28
|
+
import { ConfiguratorStatisticsEnvironment } from "./model/configurator-statistics-environment";
|
|
28
29
|
export declare class ConnectorPublic implements IoneApiConnection {
|
|
29
30
|
readonly showLoader: Subject<boolean>;
|
|
30
31
|
readonly connectionResetInactivity: Subject<void>;
|
|
@@ -63,7 +64,7 @@ export declare class ConnectorPublic implements IoneApiConnection {
|
|
|
63
64
|
navigateTo(params: any): Promise<DataServiceResponseRoot>;
|
|
64
65
|
getStockForArtNode(branchNo: string, selNodeId: number): Promise<number>;
|
|
65
66
|
getMatchTable(): Promise<any>;
|
|
66
|
-
getFrozenArticle(): Promise<any>;
|
|
67
|
+
getFrozenArticle(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<any>;
|
|
67
68
|
getJsonArticleFlatTree(goodId: number): Promise<any>;
|
|
68
69
|
getSkipButtonImageAndText(goodId?: number): Promise<SkipButtonInfo>;
|
|
69
70
|
getArticlesForCatalog(params: GetArticlesForCatalogRequest, paging: PagingParameters, showLoader: boolean): Promise<ArticleListObjectExtended[] | ArticleExtendedDto[]>;
|
|
@@ -120,8 +120,8 @@ class ConnectorPublic {
|
|
|
120
120
|
getMatchTable() {
|
|
121
121
|
return this.dataService.getMatchTable();
|
|
122
122
|
}
|
|
123
|
-
getFrozenArticle() {
|
|
124
|
-
return this.dataService.getFrozenArticle();
|
|
123
|
+
getFrozenArticle(configuratorStatistics) {
|
|
124
|
+
return this.dataService.getFrozenArticle(configuratorStatistics);
|
|
125
125
|
}
|
|
126
126
|
getJsonArticleFlatTree(goodId) {
|
|
127
127
|
return this.dataService.getJsonArticleFlatTree(goodId);
|
package/build/connector.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ import { ArticleGroup } from "./model/article-group";
|
|
|
37
37
|
import { ArticleExtendedDto } from "./model/article-extended-dto";
|
|
38
38
|
import { InternalParam } from "./enum/internal-param.enum";
|
|
39
39
|
import { QuestionAndAnswer } from "./model/question-and-answer";
|
|
40
|
+
import { ConfiguratorStatisticsEnvironment } from "./model/configurator-statistics-environment";
|
|
40
41
|
export declare class Connector {
|
|
41
42
|
goodId: number;
|
|
42
43
|
useWebsocket: boolean;
|
|
@@ -100,7 +101,7 @@ export declare class Connector {
|
|
|
100
101
|
selectSelection(selection: Selection, forceBackToNode?: boolean, after?: boolean, connector?: string): Promise<DataServiceResponseRoot>;
|
|
101
102
|
cancelAnswer(): Promise<DataServiceResponseRoot>;
|
|
102
103
|
getAnswerStock(answer: Answer): Promise<StockStatus>;
|
|
103
|
-
getJsonConfiguredArticles(): Promise<any>;
|
|
104
|
+
getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<any>;
|
|
104
105
|
getJsonArticleFlatTree(goodId: number): Promise<any>;
|
|
105
106
|
getJsonMatchTableArticles(): Promise<any>;
|
|
106
107
|
getInternalParameter(parameter: InternalParam): Promise<string>;
|
package/build/connector.js
CHANGED
|
@@ -423,9 +423,9 @@ class Connector {
|
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
|
-
getJsonConfiguredArticles() {
|
|
426
|
+
getJsonConfiguredArticles(configuratorStatistics) {
|
|
427
427
|
return new Promise((resolve) => {
|
|
428
|
-
this.connection.getFrozenArticle()
|
|
428
|
+
this.connection.getFrozenArticle(configuratorStatistics)
|
|
429
429
|
.then((result) => {
|
|
430
430
|
resolve(JSON.stringify(this.getMappedFrozenArticle(result)));
|
|
431
431
|
})
|
|
@@ -23,6 +23,7 @@ import { Concept } from "./model/concept";
|
|
|
23
23
|
import { ArticleGroup } from "./model/article-group";
|
|
24
24
|
import { ArticleExtendedDto } from "./model/article-extended-dto";
|
|
25
25
|
import { InternalParam } from "./enum/internal-param.enum";
|
|
26
|
+
import { ConfiguratorStatisticsEnvironment } from "./model/configurator-statistics-environment";
|
|
26
27
|
export interface IoneApiConnection {
|
|
27
28
|
showLoader: Subject<boolean>;
|
|
28
29
|
connectionResetInactivity: Subject<void>;
|
|
@@ -54,7 +55,7 @@ export interface IoneApiConnection {
|
|
|
54
55
|
navigateTo(params: any): Promise<DataServiceResponseRoot>;
|
|
55
56
|
getStockForArtNode(branchNo: string, selNodeId: number): Promise<number>;
|
|
56
57
|
getMatchTable(): Promise<any>;
|
|
57
|
-
getFrozenArticle(): Promise<any>;
|
|
58
|
+
getFrozenArticle(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<any>;
|
|
58
59
|
getJsonArticleFlatTree(goodId: number): Promise<any>;
|
|
59
60
|
getSkipButtonImageAndText(goodId?: number): Promise<SkipButtonInfo>;
|
|
60
61
|
getArticlesForCatalog(params: GetArticlesForCatalogRequest, paging: PagingParameters, showLoader: boolean): Promise<ArticleListObjectExtended[] | ArticleExtendedDto[]>;
|
|
@@ -27,6 +27,7 @@ import { Concept } from "../model/concept";
|
|
|
27
27
|
import { ArticleGroup } from "../model/article-group";
|
|
28
28
|
import { ArticleExtendedDto } from "../model/article-extended-dto";
|
|
29
29
|
import { InternalParam } from "../enum/internal-param.enum";
|
|
30
|
+
import { ConfiguratorStatisticsEnvironment } from "../model/configurator-statistics-environment";
|
|
30
31
|
export declare class DataRepositoryService {
|
|
31
32
|
readonly showLoader: Subject<boolean>;
|
|
32
33
|
readonly connectionResetInactivity: Subject<void>;
|
|
@@ -43,7 +44,7 @@ export declare class DataRepositoryService {
|
|
|
43
44
|
closeSession(): void;
|
|
44
45
|
getGoodIdFromArticleNr(sku: string): Promise<number>;
|
|
45
46
|
getMatchTable(): Promise<any>;
|
|
46
|
-
getFrozenArticle(): Promise<any>;
|
|
47
|
+
getFrozenArticle(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<any>;
|
|
47
48
|
getJsonArticleFlatTree(goodId: number): Promise<any>;
|
|
48
49
|
getSkipButtonImageAndText(goodId?: number): Promise<SkipButtonInfo>;
|
|
49
50
|
getArticleQuickSel(id: number): Promise<Article>;
|
|
@@ -120,9 +120,9 @@ class DataRepositoryService {
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
getFrozenArticle() {
|
|
123
|
+
getFrozenArticle(configuratorStatistics) {
|
|
124
124
|
return new Promise((resolve, reject) => {
|
|
125
|
-
return this.callGenerateFrozenArticle()
|
|
125
|
+
return this.callGenerateFrozenArticle(configuratorStatistics)
|
|
126
126
|
.then((result) => {
|
|
127
127
|
if (result.data.validationResult && result.data.validationResult.success === true) {
|
|
128
128
|
return this.callGetFrozenArticleArray().then((result) => {
|
|
@@ -809,8 +809,11 @@ class DataRepositoryService {
|
|
|
809
809
|
};
|
|
810
810
|
return this.call(data, undefined, showLoader);
|
|
811
811
|
}
|
|
812
|
-
callGenerateFrozenArticle() {
|
|
812
|
+
callGenerateFrozenArticle(configuratorStatistics) {
|
|
813
813
|
const params = {};
|
|
814
|
+
if (configuratorStatistics) {
|
|
815
|
+
params.configuratorStatisticsEnvironment = configuratorStatistics;
|
|
816
|
+
}
|
|
814
817
|
const data = {
|
|
815
818
|
methodName: article_method_enum_1.ArticleMethod.GenerateFrozenArticle,
|
|
816
819
|
moduleName: module_name_enum_1.ModuleName.Articles,
|
|
@@ -23,6 +23,7 @@ import { ArticleGroup } from "../model/article-group";
|
|
|
23
23
|
import { ArticleExtendedDto } from "../model/article-extended-dto";
|
|
24
24
|
import { Options } from "../model/options";
|
|
25
25
|
import { InternalParam } from "../enum/internal-param.enum";
|
|
26
|
+
import { ConfiguratorStatisticsEnvironment } from "../model/configurator-statistics-environment";
|
|
26
27
|
export declare class HdDataService {
|
|
27
28
|
private _sessionService;
|
|
28
29
|
private _boFactory;
|
|
@@ -43,7 +44,7 @@ export declare class HdDataService {
|
|
|
43
44
|
cancelBack2Node(params: any): Promise<DataServiceResponseRoot>;
|
|
44
45
|
navigateTo(params: any): Promise<DataServiceResponseRoot>;
|
|
45
46
|
getMatchTable(): Promise<any>;
|
|
46
|
-
getFrozenArticle(): Promise<any>;
|
|
47
|
+
getFrozenArticle(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<any>;
|
|
47
48
|
getJsonArticleFlatTree(goodId: number): Promise<any>;
|
|
48
49
|
private getLastFrozenArticle;
|
|
49
50
|
getSkipButtonImageAndText(goodId?: number): Promise<SkipButtonInfo>;
|
|
@@ -107,9 +107,12 @@ class HdDataService {
|
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
|
-
getFrozenArticle() {
|
|
110
|
+
getFrozenArticle(configuratorStatistics) {
|
|
111
111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
112
112
|
const params = { instanceId: this._instanceId };
|
|
113
|
+
if (configuratorStatistics) {
|
|
114
|
+
params.configuratorStatisticsEnvironment = configuratorStatistics;
|
|
115
|
+
}
|
|
113
116
|
const data = Object.assign(Object.assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
114
117
|
const response = yield this._sessionService.call(hd_service_method_1.HdServiceMethod.GenerateFrozenArticle, data)
|
|
115
118
|
.catch((e) => {
|