@colijnit/ioneconnector 1.0.122 → 1.0.126
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 -2
- package/build/connector-auth.js +5 -4
- package/build/connector-public.d.ts +2 -2
- package/build/connector-public.js +6 -5
- package/build/connector.d.ts +17 -13
- package/build/connector.js +127 -84
- package/build/enum/article-method.enum.d.ts +1 -0
- package/build/enum/article-method.enum.js +1 -0
- package/build/enum/hd-service-method.d.ts +3 -1
- package/build/enum/hd-service-method.js +2 -0
- package/build/enum/internal-param.enum.d.ts +2 -1
- package/build/enum/internal-param.enum.js +2 -1
- package/build/enum/refcode/configuration-display-option.enum.d.ts +14 -0
- package/build/enum/refcode/configuration-display-option.enum.js +17 -0
- package/build/ione-api-connection.d.ts +2 -2
- package/build/model/answer.d.ts +53 -7
- package/build/model/answer.js +39 -12
- package/build/model/article-list-object-extended.d.ts +1 -0
- package/build/model/article-list-object-extended.js +0 -5
- package/build/model/color.js +0 -1
- package/build/model/question-and-answer.d.ts +6 -0
- package/build/model/question-and-answer.js +8 -0
- package/build/model/selection.d.ts +46 -0
- package/build/model/selection.js +42 -0
- package/build/model/tag.js +0 -1
- package/build/provider/ajax.service.js +1 -1
- package/build/provider/base-backend-connection.service.d.ts +0 -1
- package/build/provider/base-backend-connection.service.js +0 -1
- package/build/provider/data-repository.service.d.ts +3 -2
- package/build/provider/data-repository.service.js +142 -28
- package/build/provider/hd-ajax.service.d.ts +0 -1
- package/build/provider/hd-ajax.service.js +2 -3
- package/build/service/business-object-factory.js +8 -3
- package/build/service/encrypt.service.js +1 -1
- package/build/service/hd-data.service.d.ts +4 -1
- package/build/service/hd-data.service.js +162 -31
- package/build/service/hd-session.service.js +20 -28
- package/build/service/login.service.d.ts +1 -1
- package/build/tests/int/connector-auth.int.test.js +7 -1
- package/build/tests/int/connector-public.int.test.js +6 -0
- package/package.json +10 -17
|
@@ -25,7 +25,6 @@ import { ArticleExtendedDto } from "./model/article-extended-dto";
|
|
|
25
25
|
import { InternalParam } from "./enum/internal-param.enum";
|
|
26
26
|
export interface IoneApiConnection {
|
|
27
27
|
showLoader: Subject<boolean>;
|
|
28
|
-
connectionAborted: Subject<void>;
|
|
29
28
|
connectionResetInactivity: Subject<void>;
|
|
30
29
|
currentInstanceId: string;
|
|
31
30
|
saveConfigurations(): Promise<boolean>;
|
|
@@ -56,7 +55,8 @@ export interface IoneApiConnection {
|
|
|
56
55
|
getStockForArtNode(branchNo: string, selNodeId: number): Promise<number>;
|
|
57
56
|
getMatchTable(): Promise<any>;
|
|
58
57
|
getFrozenArticle(): Promise<any>;
|
|
59
|
-
|
|
58
|
+
getJsonArticleFlatTree(goodId: number): Promise<any>;
|
|
59
|
+
getSkipButtonImageAndText(goodId?: number): Promise<SkipButtonInfo>;
|
|
60
60
|
getArticlesForCatalog(params: GetArticlesForCatalogRequest, paging: PagingParameters, showLoader: boolean): Promise<ArticleListObjectExtended[] | ArticleExtendedDto[]>;
|
|
61
61
|
getArticlePrice(goodId: number): Promise<ArticlePrice>;
|
|
62
62
|
getArticleCategories(publicationCode: number): Promise<ArticleCategory[]>;
|
package/build/model/answer.d.ts
CHANGED
|
@@ -1,18 +1,61 @@
|
|
|
1
1
|
import { BusinessObject } from "./business-object";
|
|
2
2
|
import { NodeType } from "../enum/node-type.enum";
|
|
3
|
+
import { ConfigurationDisplayOption } from "../enum/refcode/configuration-display-option.enum";
|
|
3
4
|
export declare class Answer extends BusinessObject {
|
|
5
|
+
addAdjust: string;
|
|
6
|
+
articleNumber: string;
|
|
7
|
+
articleDescription: string;
|
|
8
|
+
articleName: string;
|
|
9
|
+
artOptId: number;
|
|
10
|
+
assetUrl: string;
|
|
11
|
+
childDescription: string;
|
|
12
|
+
childGoodId: number;
|
|
13
|
+
connectorArticle: string;
|
|
14
|
+
currencySymbol: number;
|
|
15
|
+
decoLength: any;
|
|
16
|
+
decoWidth: any;
|
|
17
|
+
decoHeight: any;
|
|
4
18
|
defaultAnswer: boolean;
|
|
19
|
+
defaultNumber: number;
|
|
20
|
+
detailedDescription: string;
|
|
21
|
+
displayOptionControlOpt: ConfigurationDisplayOption;
|
|
22
|
+
displayOptionControlOpv: ConfigurationDisplayOption;
|
|
23
|
+
elementType: string;
|
|
24
|
+
handleLikePar: boolean;
|
|
25
|
+
hdecoGameObject: string;
|
|
26
|
+
hdecoType: string;
|
|
27
|
+
hdecoPositioning: string;
|
|
28
|
+
gameObject: string;
|
|
29
|
+
genericOpt: boolean;
|
|
5
30
|
userInput: boolean;
|
|
31
|
+
optionValueLevel: string;
|
|
32
|
+
parentGoodId: number;
|
|
33
|
+
goodId: number;
|
|
34
|
+
parentOptionId: number;
|
|
6
35
|
grossPrice: number;
|
|
7
|
-
optionId:
|
|
8
|
-
|
|
36
|
+
optionId: any;
|
|
37
|
+
optionType: string;
|
|
38
|
+
id: any;
|
|
39
|
+
imageUrl: string;
|
|
40
|
+
inqNumber: number;
|
|
41
|
+
inqType: string;
|
|
42
|
+
mention: string;
|
|
43
|
+
minNumber: number;
|
|
44
|
+
maxNumber: number;
|
|
9
45
|
node: any;
|
|
46
|
+
nodeLevel: string;
|
|
47
|
+
optCategory: string;
|
|
48
|
+
opvCategory: string;
|
|
49
|
+
stepSize: number;
|
|
10
50
|
colors: any[];
|
|
51
|
+
supplierArticleNo: string;
|
|
11
52
|
tags: any[];
|
|
12
|
-
|
|
13
|
-
|
|
53
|
+
tagsOptions: any[];
|
|
54
|
+
nodeId: any;
|
|
55
|
+
decoId: any;
|
|
14
56
|
price: number;
|
|
15
57
|
recommendedPrice: number;
|
|
58
|
+
seqO: string;
|
|
16
59
|
answer: string;
|
|
17
60
|
commercialAnswer: string;
|
|
18
61
|
type: NodeType;
|
|
@@ -22,12 +65,15 @@ export declare class Answer extends BusinessObject {
|
|
|
22
65
|
level: string;
|
|
23
66
|
infoAvailable: boolean;
|
|
24
67
|
questionPublicationCode: any;
|
|
68
|
+
questionPublicationCodeSales: any;
|
|
25
69
|
publicationCode: any;
|
|
70
|
+
publicationCodeSales: any;
|
|
26
71
|
hierarchicalPublicationCode: any;
|
|
27
|
-
|
|
28
|
-
|
|
72
|
+
hierarchicalPublicationCodeSales: any;
|
|
73
|
+
articleDecoId: any;
|
|
74
|
+
parentArticleDecoId: any;
|
|
29
75
|
useNextCombNode: boolean;
|
|
30
|
-
treeLevel:
|
|
76
|
+
treeLevel: any;
|
|
31
77
|
isGroupHeader: boolean;
|
|
32
78
|
imageData: string;
|
|
33
79
|
instanceId: string;
|
package/build/model/answer.js
CHANGED
|
@@ -22,17 +22,17 @@ class Answer extends business_object_1.BusinessObject {
|
|
|
22
22
|
constructor(rawData, nodeHierarchyLevelOffset = 0) {
|
|
23
23
|
super();
|
|
24
24
|
this.defaultAnswer = false;
|
|
25
|
+
this.handleLikePar = false;
|
|
26
|
+
this.genericOpt = false;
|
|
25
27
|
this.userInput = false;
|
|
26
|
-
this.grossPrice = null;
|
|
27
28
|
this.optionId = null;
|
|
28
29
|
this.id = null;
|
|
29
30
|
this.node = null;
|
|
30
31
|
this.colors = [];
|
|
31
32
|
this.tags = [];
|
|
33
|
+
this.tagsOptions = [];
|
|
32
34
|
this.nodeId = null;
|
|
33
35
|
this.decoId = null;
|
|
34
|
-
this.price = null;
|
|
35
|
-
this.recommendedPrice = null;
|
|
36
36
|
this.answer = null;
|
|
37
37
|
this.commercialAnswer = null;
|
|
38
38
|
this.type = null;
|
|
@@ -42,15 +42,16 @@ class Answer extends business_object_1.BusinessObject {
|
|
|
42
42
|
this.level = null;
|
|
43
43
|
this.infoAvailable = false;
|
|
44
44
|
this.questionPublicationCode = null;
|
|
45
|
+
this.questionPublicationCodeSales = null;
|
|
45
46
|
this.publicationCode = null;
|
|
47
|
+
this.publicationCodeSales = null;
|
|
46
48
|
this.hierarchicalPublicationCode = null;
|
|
49
|
+
this.hierarchicalPublicationCodeSales = null;
|
|
47
50
|
this.articleDecoId = null;
|
|
48
51
|
this.parentArticleDecoId = null;
|
|
49
52
|
this.useNextCombNode = false;
|
|
50
53
|
this.treeLevel = null;
|
|
51
54
|
this.isGroupHeader = false;
|
|
52
|
-
this.setOwnMappedPropsFromRawData(rawData);
|
|
53
|
-
this._customPostProcessSelfFromRawData(rawData, nodeHierarchyLevelOffset);
|
|
54
55
|
}
|
|
55
56
|
_customPostProcessSelfFromRawData(rawData, nodeHierarchyLevelOffset = 0) {
|
|
56
57
|
if (rawData) {
|
|
@@ -64,6 +65,14 @@ __decorate([
|
|
|
64
65
|
boolean_decorator_1.BooleanText("T"),
|
|
65
66
|
__metadata("design:type", Boolean)
|
|
66
67
|
], Answer.prototype, "defaultAnswer", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
boolean_decorator_1.BooleanText("T"),
|
|
70
|
+
__metadata("design:type", Boolean)
|
|
71
|
+
], Answer.prototype, "handleLikePar", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
boolean_decorator_1.BooleanText("T"),
|
|
74
|
+
__metadata("design:type", Boolean)
|
|
75
|
+
], Answer.prototype, "genericOpt", void 0);
|
|
67
76
|
__decorate([
|
|
68
77
|
map_property_decorator_1.MapProperty("freeInput"),
|
|
69
78
|
boolean_decorator_1.BooleanText("T"),
|
|
@@ -71,11 +80,11 @@ __decorate([
|
|
|
71
80
|
], Answer.prototype, "userInput", void 0);
|
|
72
81
|
__decorate([
|
|
73
82
|
map_property_decorator_1.MapProperty("optionId"),
|
|
74
|
-
__metadata("design:type",
|
|
83
|
+
__metadata("design:type", Object)
|
|
75
84
|
], Answer.prototype, "optionId", void 0);
|
|
76
85
|
__decorate([
|
|
77
86
|
map_property_decorator_1.MapProperty("optionValueId, id"),
|
|
78
|
-
__metadata("design:type",
|
|
87
|
+
__metadata("design:type", Object)
|
|
79
88
|
], Answer.prototype, "id", void 0);
|
|
80
89
|
__decorate([
|
|
81
90
|
map_property_decorator_1.MapProperty("selNodeId"),
|
|
@@ -93,13 +102,19 @@ __decorate([
|
|
|
93
102
|
complex_array_decorator_1.ComplexArray(tag_1.Tag),
|
|
94
103
|
__metadata("design:type", Array)
|
|
95
104
|
], Answer.prototype, "tags", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
map_property_decorator_1.MapProperty("tagArrayOptions"),
|
|
107
|
+
json_decorator_1.JsonField(),
|
|
108
|
+
complex_array_decorator_1.ComplexArray(tag_1.Tag),
|
|
109
|
+
__metadata("design:type", Array)
|
|
110
|
+
], Answer.prototype, "tagsOptions", void 0);
|
|
96
111
|
__decorate([
|
|
97
112
|
map_property_decorator_1.MapProperty("nodeId, artNodeId"),
|
|
98
|
-
__metadata("design:type",
|
|
113
|
+
__metadata("design:type", Object)
|
|
99
114
|
], Answer.prototype, "nodeId", void 0);
|
|
100
115
|
__decorate([
|
|
101
116
|
map_property_decorator_1.MapProperty("selDecoId"),
|
|
102
|
-
__metadata("design:type",
|
|
117
|
+
__metadata("design:type", Object)
|
|
103
118
|
], Answer.prototype, "decoId", void 0);
|
|
104
119
|
__decorate([
|
|
105
120
|
map_property_decorator_1.MapProperty("nodeText"),
|
|
@@ -140,21 +155,33 @@ __decorate([
|
|
|
140
155
|
map_property_decorator_1.MapProperty("optPublicationCode"),
|
|
141
156
|
__metadata("design:type", Object)
|
|
142
157
|
], Answer.prototype, "questionPublicationCode", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
map_property_decorator_1.MapProperty("optPublicationCodeSales"),
|
|
160
|
+
__metadata("design:type", Object)
|
|
161
|
+
], Answer.prototype, "questionPublicationCodeSales", void 0);
|
|
143
162
|
__decorate([
|
|
144
163
|
map_property_decorator_1.MapProperty("opvPublicationCode"),
|
|
145
164
|
__metadata("design:type", Object)
|
|
146
165
|
], Answer.prototype, "publicationCode", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
map_property_decorator_1.MapProperty("opvPublicationCodeSales"),
|
|
168
|
+
__metadata("design:type", Object)
|
|
169
|
+
], Answer.prototype, "publicationCodeSales", void 0);
|
|
147
170
|
__decorate([
|
|
148
171
|
map_property_decorator_1.MapProperty("hierarchicalPublicationCode"),
|
|
149
172
|
__metadata("design:type", Object)
|
|
150
173
|
], Answer.prototype, "hierarchicalPublicationCode", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
map_property_decorator_1.MapProperty("hierarchicalPublicationCodeSales"),
|
|
176
|
+
__metadata("design:type", Object)
|
|
177
|
+
], Answer.prototype, "hierarchicalPublicationCodeSales", void 0);
|
|
151
178
|
__decorate([
|
|
152
179
|
map_property_decorator_1.MapProperty("artNodeIdDeco"),
|
|
153
|
-
__metadata("design:type",
|
|
180
|
+
__metadata("design:type", Object)
|
|
154
181
|
], Answer.prototype, "articleDecoId", void 0);
|
|
155
182
|
__decorate([
|
|
156
183
|
map_property_decorator_1.MapProperty("parentArtNodeIdDeco"),
|
|
157
|
-
__metadata("design:type",
|
|
184
|
+
__metadata("design:type", Object)
|
|
158
185
|
], Answer.prototype, "parentArticleDecoId", void 0);
|
|
159
186
|
__decorate([
|
|
160
187
|
map_property_decorator_1.MapProperty("useNextCombNode"),
|
|
@@ -163,6 +190,6 @@ __decorate([
|
|
|
163
190
|
], Answer.prototype, "useNextCombNode", void 0);
|
|
164
191
|
__decorate([
|
|
165
192
|
map_property_decorator_1.MapProperty("treeLevel"),
|
|
166
|
-
__metadata("design:type",
|
|
193
|
+
__metadata("design:type", Object)
|
|
167
194
|
], Answer.prototype, "treeLevel", void 0);
|
|
168
195
|
exports.Answer = Answer;
|
|
@@ -19,7 +19,6 @@ const is_nill_function_1 = require("../utils/function/is-nill.function");
|
|
|
19
19
|
const stock_status_enum_1 = require("../enum/refcode/stock-status.enum");
|
|
20
20
|
const color_1 = require("./color");
|
|
21
21
|
const complex_array_decorator_1 = require("../factory/decorators/complex-array.decorator");
|
|
22
|
-
const boolean_decorator_1 = require("../factory/decorators/boolean.decorator");
|
|
23
22
|
class ArticleListObjectExtended extends business_object_1.BusinessObject {
|
|
24
23
|
constructor() {
|
|
25
24
|
super();
|
|
@@ -37,10 +36,6 @@ class ArticleListObjectExtended extends business_object_1.BusinessObject {
|
|
|
37
36
|
return this.isConfigurable() && not_nill_function_1.notNill(this.homeBrandId);
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
|
-
__decorate([
|
|
41
|
-
boolean_decorator_1.BooleanText('T'),
|
|
42
|
-
__metadata("design:type", Boolean)
|
|
43
|
-
], ArticleListObjectExtended.prototype, "cashRegisterArticle", void 0);
|
|
44
39
|
__decorate([
|
|
45
40
|
complex_array_decorator_1.ComplexArray(color_1.Color),
|
|
46
41
|
__metadata("design:type", Array)
|
package/build/model/color.js
CHANGED
|
@@ -18,7 +18,6 @@ class Color extends business_object_1.BusinessObject {
|
|
|
18
18
|
this.description = null;
|
|
19
19
|
this.rgbColor = null;
|
|
20
20
|
this.active = false;
|
|
21
|
-
this.setOwnMappedPropsFromRawData(rawData);
|
|
22
21
|
}
|
|
23
22
|
get hexColor() {
|
|
24
23
|
let hex = this.rgbColor ? Number(this.rgbColor).toString(16) : '';
|
|
@@ -2,7 +2,30 @@ import { BusinessObject } from "./business-object";
|
|
|
2
2
|
import { DecoNode } from "./deco-node";
|
|
3
3
|
import { NodeType } from "../enum/node-type.enum";
|
|
4
4
|
import { HdecoPositioning } from "../enum/hdeco-positioning.enum";
|
|
5
|
+
import { ConfigurationDisplayOption } from "../enum/refcode/configuration-display-option.enum";
|
|
6
|
+
import { Tag } from "./tag";
|
|
5
7
|
export declare class Selection extends BusinessObject {
|
|
8
|
+
addAdjust: any;
|
|
9
|
+
assetUrl: string;
|
|
10
|
+
amountInComposition: number;
|
|
11
|
+
artSelGoodId: number;
|
|
12
|
+
artMountingPrice: number;
|
|
13
|
+
artSelSeq: number;
|
|
14
|
+
brandId: string;
|
|
15
|
+
totalMountingPrice: number;
|
|
16
|
+
articleDescription: string;
|
|
17
|
+
colorCodeString: string;
|
|
18
|
+
connectorArticle: string;
|
|
19
|
+
defaultNumber: any;
|
|
20
|
+
currencyCode: string;
|
|
21
|
+
decoLength: any;
|
|
22
|
+
decoWidth: any;
|
|
23
|
+
decoHeight: any;
|
|
24
|
+
elementType: any;
|
|
25
|
+
gameObject: string;
|
|
26
|
+
imgUrl: string;
|
|
27
|
+
inquireNbrMode: string;
|
|
28
|
+
hashCheck: boolean;
|
|
6
29
|
nodeId: number;
|
|
7
30
|
colors: any[];
|
|
8
31
|
tags: any[];
|
|
@@ -11,6 +34,7 @@ export declare class Selection extends BusinessObject {
|
|
|
11
34
|
commercialAnswer: string;
|
|
12
35
|
generic: boolean;
|
|
13
36
|
artRetailGrossPrice: number;
|
|
37
|
+
totalRetailGrossPrice: number;
|
|
14
38
|
node: any;
|
|
15
39
|
decoId: number;
|
|
16
40
|
nodeType: NodeType;
|
|
@@ -20,19 +44,36 @@ export declare class Selection extends BusinessObject {
|
|
|
20
44
|
id: number;
|
|
21
45
|
presentationLevel: number;
|
|
22
46
|
artRetailPrice: number;
|
|
47
|
+
totalRetailPrice: number;
|
|
23
48
|
artRecommendedPrice: number;
|
|
49
|
+
tagsPresent: boolean;
|
|
50
|
+
totalRecommPrice: number;
|
|
24
51
|
required: boolean;
|
|
52
|
+
repeatOptActive: boolean;
|
|
25
53
|
grouped: boolean;
|
|
26
54
|
questionPublicationCode: any;
|
|
55
|
+
questionPublicationCodeSales: any;
|
|
27
56
|
answerPublicationCode: any;
|
|
57
|
+
answerPublicationCodeSales: any;
|
|
28
58
|
hierarchicalPublicationCode: any;
|
|
59
|
+
hierarchicalPublicationCodeSales: any;
|
|
29
60
|
artNodeIdDeco: string;
|
|
30
61
|
parentArtNodeIdDeco: string;
|
|
31
62
|
optCycle: number;
|
|
32
63
|
optCycleDeco: number;
|
|
64
|
+
schema: string;
|
|
33
65
|
userInput: boolean;
|
|
34
66
|
userInputValue: string;
|
|
67
|
+
inqHandleLikePar: boolean;
|
|
68
|
+
handleLikePar: boolean;
|
|
69
|
+
minNumber: number;
|
|
70
|
+
maxNumber: number;
|
|
71
|
+
nbrChoices: number;
|
|
72
|
+
nodeState: string;
|
|
35
73
|
selection: string;
|
|
74
|
+
stepSize: number;
|
|
75
|
+
treeId: number;
|
|
76
|
+
techLevel: number;
|
|
36
77
|
imageData: string;
|
|
37
78
|
instanceId: string;
|
|
38
79
|
decoNode: DecoNode;
|
|
@@ -46,6 +87,11 @@ export declare class Selection extends BusinessObject {
|
|
|
46
87
|
hdecoType: string;
|
|
47
88
|
hdecoPositioning: HdecoPositioning;
|
|
48
89
|
supplierArticleNr: string;
|
|
90
|
+
tagArrayOpt: Tag[];
|
|
91
|
+
optCategory: string;
|
|
92
|
+
opvCategory: string;
|
|
93
|
+
displayOptionControlOpt: ConfigurationDisplayOption;
|
|
94
|
+
displayOptionControlOpv: ConfigurationDisplayOption;
|
|
49
95
|
get answerTreeAsArray(): any;
|
|
50
96
|
constructor(rawData?: any);
|
|
51
97
|
}
|
package/build/model/selection.js
CHANGED
|
@@ -12,6 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
const business_object_1 = require("./business-object");
|
|
13
13
|
const map_property_decorator_1 = require("../factory/decorators/map-property.decorator");
|
|
14
14
|
const boolean_decorator_1 = require("../factory/decorators/boolean.decorator");
|
|
15
|
+
const tag_1 = require("./tag");
|
|
16
|
+
const complex_array_decorator_1 = require("../factory/decorators/complex-array.decorator");
|
|
17
|
+
const json_decorator_1 = require("../factory/decorators/json.decorator");
|
|
15
18
|
class Selection extends business_object_1.BusinessObject {
|
|
16
19
|
constructor(rawData = {}) {
|
|
17
20
|
super();
|
|
@@ -34,14 +37,19 @@ class Selection extends business_object_1.BusinessObject {
|
|
|
34
37
|
this.artRetailPrice = null;
|
|
35
38
|
this.artRecommendedPrice = null;
|
|
36
39
|
this.required = false;
|
|
40
|
+
this.repeatOptActive = false;
|
|
37
41
|
this.grouped = false;
|
|
38
42
|
this.questionPublicationCode = null;
|
|
43
|
+
this.questionPublicationCodeSales = null;
|
|
39
44
|
this.answerPublicationCode = null;
|
|
45
|
+
this.answerPublicationCodeSales = null;
|
|
40
46
|
this.hierarchicalPublicationCode = null;
|
|
47
|
+
this.hierarchicalPublicationCodeSales = null;
|
|
41
48
|
this.artNodeIdDeco = null;
|
|
42
49
|
this.parentArtNodeIdDeco = null;
|
|
43
50
|
this.optCycle = null;
|
|
44
51
|
this.optCycleDeco = null;
|
|
52
|
+
this.schema = null;
|
|
45
53
|
this.userInput = false;
|
|
46
54
|
this.userInputValue = null;
|
|
47
55
|
this.selection = null;
|
|
@@ -53,12 +61,17 @@ class Selection extends business_object_1.BusinessObject {
|
|
|
53
61
|
this.hdecoType = null;
|
|
54
62
|
this.hdecoPositioning = null;
|
|
55
63
|
this.supplierArticleNr = null;
|
|
64
|
+
this.tagArrayOpt = [];
|
|
56
65
|
this.setOwnMappedPropsFromRawData(rawData);
|
|
57
66
|
}
|
|
58
67
|
get answerTreeAsArray() {
|
|
59
68
|
return JSON.parse(this.answerTree);
|
|
60
69
|
}
|
|
61
70
|
}
|
|
71
|
+
__decorate([
|
|
72
|
+
boolean_decorator_1.BooleanText("T"),
|
|
73
|
+
__metadata("design:type", Boolean)
|
|
74
|
+
], Selection.prototype, "hashCheck", void 0);
|
|
62
75
|
__decorate([
|
|
63
76
|
map_property_decorator_1.MapProperty("nodeId"),
|
|
64
77
|
__metadata("design:type", Number)
|
|
@@ -112,11 +125,19 @@ __decorate([
|
|
|
112
125
|
map_property_decorator_1.MapProperty("artRecommPrice"),
|
|
113
126
|
__metadata("design:type", Number)
|
|
114
127
|
], Selection.prototype, "artRecommendedPrice", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
boolean_decorator_1.BooleanText("T"),
|
|
130
|
+
__metadata("design:type", Boolean)
|
|
131
|
+
], Selection.prototype, "tagsPresent", void 0);
|
|
115
132
|
__decorate([
|
|
116
133
|
map_property_decorator_1.MapProperty("optRequired"),
|
|
117
134
|
boolean_decorator_1.BooleanText("T"),
|
|
118
135
|
__metadata("design:type", Boolean)
|
|
119
136
|
], Selection.prototype, "required", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
boolean_decorator_1.BooleanText("T"),
|
|
139
|
+
__metadata("design:type", Boolean)
|
|
140
|
+
], Selection.prototype, "repeatOptActive", void 0);
|
|
120
141
|
__decorate([
|
|
121
142
|
map_property_decorator_1.MapProperty("showGrouped"),
|
|
122
143
|
boolean_decorator_1.BooleanText("T"),
|
|
@@ -126,10 +147,18 @@ __decorate([
|
|
|
126
147
|
map_property_decorator_1.MapProperty("optPublicationCode"),
|
|
127
148
|
__metadata("design:type", Object)
|
|
128
149
|
], Selection.prototype, "questionPublicationCode", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
map_property_decorator_1.MapProperty("optPublicationCodeSales"),
|
|
152
|
+
__metadata("design:type", Object)
|
|
153
|
+
], Selection.prototype, "questionPublicationCodeSales", void 0);
|
|
129
154
|
__decorate([
|
|
130
155
|
map_property_decorator_1.MapProperty("opvPublicationCode"),
|
|
131
156
|
__metadata("design:type", Object)
|
|
132
157
|
], Selection.prototype, "answerPublicationCode", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
map_property_decorator_1.MapProperty("opvPublicationCodeSales"),
|
|
160
|
+
__metadata("design:type", Object)
|
|
161
|
+
], Selection.prototype, "answerPublicationCodeSales", void 0);
|
|
133
162
|
__decorate([
|
|
134
163
|
map_property_decorator_1.MapProperty("freeInput"),
|
|
135
164
|
boolean_decorator_1.BooleanText("T"),
|
|
@@ -139,8 +168,21 @@ __decorate([
|
|
|
139
168
|
map_property_decorator_1.MapProperty("inqString"),
|
|
140
169
|
__metadata("design:type", String)
|
|
141
170
|
], Selection.prototype, "userInputValue", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
boolean_decorator_1.BooleanText("T"),
|
|
173
|
+
__metadata("design:type", Boolean)
|
|
174
|
+
], Selection.prototype, "inqHandleLikePar", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
boolean_decorator_1.BooleanText("T"),
|
|
177
|
+
__metadata("design:type", Boolean)
|
|
178
|
+
], Selection.prototype, "handleLikePar", void 0);
|
|
142
179
|
__decorate([
|
|
143
180
|
map_property_decorator_1.MapProperty("supplierArticleNo"),
|
|
144
181
|
__metadata("design:type", String)
|
|
145
182
|
], Selection.prototype, "supplierArticleNr", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
json_decorator_1.JsonField(),
|
|
185
|
+
complex_array_decorator_1.ComplexArray(tag_1.Tag),
|
|
186
|
+
__metadata("design:type", Array)
|
|
187
|
+
], Selection.prototype, "tagArrayOpt", void 0);
|
|
146
188
|
exports.Selection = Selection;
|
package/build/model/tag.js
CHANGED
|
@@ -73,7 +73,7 @@ class AjaxService extends base_backend_connection_service_1.BaseBackendConnectio
|
|
|
73
73
|
this.setShowLoaderRequests(0);
|
|
74
74
|
}
|
|
75
75
|
if (error.code === "ECONNABORTED") {
|
|
76
|
-
|
|
76
|
+
reject("ECONNABORTED");
|
|
77
77
|
}
|
|
78
78
|
else if (error.response && error.response.status === 500) {
|
|
79
79
|
this.resetConnection();
|
|
@@ -7,7 +7,6 @@ import { Subject } from "rxjs";
|
|
|
7
7
|
import { ConnectionEndpoint } from "./connection-endpoint";
|
|
8
8
|
export declare abstract class BaseBackendConnectionService implements ConnectionEndpoint {
|
|
9
9
|
readonly showLoader: Subject<boolean>;
|
|
10
|
-
readonly connectionAborted: Subject<void>;
|
|
11
10
|
readonly connectionResetInactivity: Subject<void>;
|
|
12
11
|
session: Session;
|
|
13
12
|
options: Options;
|
|
@@ -18,7 +18,6 @@ const connection_endpoint_enum_1 = require("../enum/connection-endpoint-enum");
|
|
|
18
18
|
class BaseBackendConnectionService {
|
|
19
19
|
constructor(url, options, session = undefined, externalStorage = undefined, secure = false) {
|
|
20
20
|
this.showLoader = new rxjs_1.Subject();
|
|
21
|
-
this.connectionAborted = new rxjs_1.Subject();
|
|
22
21
|
this.connectionResetInactivity = new rxjs_1.Subject();
|
|
23
22
|
this.callId = "1";
|
|
24
23
|
this.url = this.addEndpointToUrl(url);
|
|
@@ -29,7 +29,6 @@ import { ArticleExtendedDto } from "../model/article-extended-dto";
|
|
|
29
29
|
import { InternalParam } from "../enum/internal-param.enum";
|
|
30
30
|
export declare class DataRepositoryService {
|
|
31
31
|
readonly showLoader: Subject<boolean>;
|
|
32
|
-
readonly connectionAborted: Subject<void>;
|
|
33
32
|
readonly connectionResetInactivity: Subject<void>;
|
|
34
33
|
branchNr: string;
|
|
35
34
|
currencyId: number;
|
|
@@ -45,7 +44,8 @@ export declare class DataRepositoryService {
|
|
|
45
44
|
getGoodIdFromArticleNr(sku: string): Promise<number>;
|
|
46
45
|
getMatchTable(): Promise<any>;
|
|
47
46
|
getFrozenArticle(): Promise<any>;
|
|
48
|
-
|
|
47
|
+
getJsonArticleFlatTree(goodId: number): Promise<any>;
|
|
48
|
+
getSkipButtonImageAndText(goodId?: number): Promise<SkipButtonInfo>;
|
|
49
49
|
getArticleQuickSel(id: number): Promise<Article>;
|
|
50
50
|
getSuperArticleQuickSel(id: string): Promise<SuperArticle>;
|
|
51
51
|
getArticleFullObject(id: number): Promise<ArticleFullObject>;
|
|
@@ -92,6 +92,7 @@ export declare class DataRepositoryService {
|
|
|
92
92
|
private callSelectorActiveOptionValuesPrices;
|
|
93
93
|
private callGetSingleImage;
|
|
94
94
|
private callGenerateFrozenArticle;
|
|
95
|
+
private callArticleFlatTree;
|
|
95
96
|
private callGetFrozenArticleArray;
|
|
96
97
|
private callSelectorActiveOptionValues;
|
|
97
98
|
private callSelectorStructure;
|