@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.
Files changed (41) hide show
  1. package/build/connector-auth.d.ts +2 -2
  2. package/build/connector-auth.js +5 -4
  3. package/build/connector-public.d.ts +2 -2
  4. package/build/connector-public.js +6 -5
  5. package/build/connector.d.ts +17 -13
  6. package/build/connector.js +127 -84
  7. package/build/enum/article-method.enum.d.ts +1 -0
  8. package/build/enum/article-method.enum.js +1 -0
  9. package/build/enum/hd-service-method.d.ts +3 -1
  10. package/build/enum/hd-service-method.js +2 -0
  11. package/build/enum/internal-param.enum.d.ts +2 -1
  12. package/build/enum/internal-param.enum.js +2 -1
  13. package/build/enum/refcode/configuration-display-option.enum.d.ts +14 -0
  14. package/build/enum/refcode/configuration-display-option.enum.js +17 -0
  15. package/build/ione-api-connection.d.ts +2 -2
  16. package/build/model/answer.d.ts +53 -7
  17. package/build/model/answer.js +39 -12
  18. package/build/model/article-list-object-extended.d.ts +1 -0
  19. package/build/model/article-list-object-extended.js +0 -5
  20. package/build/model/color.js +0 -1
  21. package/build/model/question-and-answer.d.ts +6 -0
  22. package/build/model/question-and-answer.js +8 -0
  23. package/build/model/selection.d.ts +46 -0
  24. package/build/model/selection.js +42 -0
  25. package/build/model/tag.js +0 -1
  26. package/build/provider/ajax.service.js +1 -1
  27. package/build/provider/base-backend-connection.service.d.ts +0 -1
  28. package/build/provider/base-backend-connection.service.js +0 -1
  29. package/build/provider/data-repository.service.d.ts +3 -2
  30. package/build/provider/data-repository.service.js +142 -28
  31. package/build/provider/hd-ajax.service.d.ts +0 -1
  32. package/build/provider/hd-ajax.service.js +2 -3
  33. package/build/service/business-object-factory.js +8 -3
  34. package/build/service/encrypt.service.js +1 -1
  35. package/build/service/hd-data.service.d.ts +4 -1
  36. package/build/service/hd-data.service.js +162 -31
  37. package/build/service/hd-session.service.js +20 -28
  38. package/build/service/login.service.d.ts +1 -1
  39. package/build/tests/int/connector-auth.int.test.js +7 -1
  40. package/build/tests/int/connector-public.int.test.js +6 -0
  41. package/package.json +10 -17
@@ -53,7 +53,6 @@ const article_extended_dto_1 = require("../model/article-extended-dto");
53
53
  class DataRepositoryService {
54
54
  constructor(url, branchNr, currencyId, useGroups, options, session = undefined, externalStorage = undefined) {
55
55
  this.showLoader = new rxjs_1.Subject();
56
- this.connectionAborted = new rxjs_1.Subject();
57
56
  this.connectionResetInactivity = new rxjs_1.Subject();
58
57
  this.useGroups = true;
59
58
  this.versionHigherThan249 = false;
@@ -64,7 +63,6 @@ class DataRepositoryService {
64
63
  this.versionHigherThan249 = Number(options.version) > 249;
65
64
  this.connection = new ajax_service_1.AjaxService(url, options, session, externalStorage, false);
66
65
  this.connection.showLoader.subscribe(value => this.showLoader.next(value));
67
- this.connection.connectionAborted.subscribe(() => this.connectionAborted.next());
68
66
  this.connection.connectionResetInactivity.subscribe(() => this.connectionResetInactivity.next());
69
67
  }
70
68
  commit() {
@@ -84,13 +82,17 @@ class DataRepositoryService {
84
82
  parameterValues: params
85
83
  };
86
84
  return new Promise((resolve, reject) => {
87
- return this.call(data).then((result) => {
85
+ return this.call(data)
86
+ .then((result) => {
88
87
  if (result.data.validationResult && result.data.validationResult.success) {
89
88
  return resolve(result.data.resultObject);
90
89
  }
91
90
  else {
92
91
  reject("Error retrieving article (" + result.message + ")");
93
92
  }
93
+ })
94
+ .catch((e) => {
95
+ return reject(e);
94
96
  });
95
97
  });
96
98
  }
@@ -103,7 +105,8 @@ class DataRepositoryService {
103
105
  parameterValues: params
104
106
  };
105
107
  return new Promise((resolve, reject) => {
106
- return this.call(data).then((result) => {
108
+ return this.call(data)
109
+ .then((result) => {
107
110
  if (result.data.validationResult && result.data.validationResult.success) {
108
111
  const matchTable = result.data.resultObject ? result.data.resultObject["oMatchTable"] : null;
109
112
  return resolve(matchTable);
@@ -111,12 +114,16 @@ class DataRepositoryService {
111
114
  else {
112
115
  reject("Error retrieving match table data");
113
116
  }
117
+ })
118
+ .catch((e) => {
119
+ return reject(e);
114
120
  });
115
121
  });
116
122
  }
117
123
  getFrozenArticle() {
118
124
  return new Promise((resolve, reject) => {
119
- return this.callGenerateFrozenArticle().then((result) => {
125
+ return this.callGenerateFrozenArticle()
126
+ .then((result) => {
120
127
  if (result.data.validationResult && result.data.validationResult.success === true) {
121
128
  return this.callGetFrozenArticleArray().then((result) => {
122
129
  if (result.data.validationResult && result.data.validationResult.success === true) {
@@ -132,12 +139,34 @@ class DataRepositoryService {
132
139
  console.error("Error creating article");
133
140
  reject("Error creating article");
134
141
  }
142
+ })
143
+ .catch((e) => {
144
+ return reject(e);
135
145
  });
136
146
  });
137
147
  }
138
- getSkipButtonImageAndText() {
148
+ getJsonArticleFlatTree(goodId) {
149
+ return new Promise((resolve, reject) => {
150
+ return this.callArticleFlatTree(goodId)
151
+ .then((result) => {
152
+ if (result.data.validationResult && result.data.validationResult.success === true) {
153
+ resolve(result.data.resultObject);
154
+ }
155
+ else {
156
+ reject("Error getting article tree");
157
+ }
158
+ })
159
+ .catch((e) => {
160
+ return reject(e);
161
+ });
162
+ });
163
+ }
164
+ getSkipButtonImageAndText(goodId) {
139
165
  return __awaiter(this, void 0, void 0, function* () {
140
166
  const params = {};
167
+ if (goodId) {
168
+ params.goodId = goodId;
169
+ }
141
170
  const data = {
142
171
  methodName: master_data_method_name_enum_1.MasterDataMethodName.GetSkipButtonImageAndText,
143
172
  moduleName: module_name_enum_1.ModuleName.MasterData,
@@ -145,7 +174,8 @@ class DataRepositoryService {
145
174
  parameterValues: params
146
175
  };
147
176
  return new Promise((resolve, reject) => {
148
- return this.call(data).then((result) => {
177
+ return this.call(data)
178
+ .then((result) => {
149
179
  const data = result.data;
150
180
  const validationResult = data.validationResult;
151
181
  if (validationResult && validationResult.success) {
@@ -154,6 +184,9 @@ class DataRepositoryService {
154
184
  else {
155
185
  return reject("Error retrieving skip button image and text");
156
186
  }
187
+ })
188
+ .catch((e) => {
189
+ return reject(e);
157
190
  });
158
191
  });
159
192
  });
@@ -170,7 +203,8 @@ class DataRepositoryService {
170
203
  parameterValues: params
171
204
  };
172
205
  return new Promise((resolve, reject) => {
173
- return this.call(data).then((result) => {
206
+ return this.call(data)
207
+ .then((result) => {
174
208
  if (result.data.validationResult && result.data.validationResult.success) {
175
209
  if (!result.data.resultObject) {
176
210
  return reject("Article not found!");
@@ -181,6 +215,9 @@ class DataRepositoryService {
181
215
  else {
182
216
  return reject("Error retrieving article data");
183
217
  }
218
+ })
219
+ .catch((e) => {
220
+ return reject(e);
184
221
  });
185
222
  });
186
223
  }
@@ -196,7 +233,8 @@ class DataRepositoryService {
196
233
  parameterValues: params
197
234
  };
198
235
  return new Promise((resolve, reject) => {
199
- return this.call(data).then((result) => {
236
+ return this.call(data)
237
+ .then((result) => {
200
238
  if (result.data.validationResult && result.data.validationResult.success) {
201
239
  if (!result.data.resultObject) {
202
240
  return reject("Super article not found!");
@@ -207,6 +245,9 @@ class DataRepositoryService {
207
245
  else {
208
246
  return reject("Error retrieving super article data");
209
247
  }
248
+ })
249
+ .catch((e) => {
250
+ return reject(e);
210
251
  });
211
252
  });
212
253
  }
@@ -218,7 +259,8 @@ class DataRepositoryService {
218
259
  objectId: id
219
260
  };
220
261
  return new Promise((resolve, reject) => {
221
- return this.call(data, data_service_method_enum_1.DataServiceMethod.SelectSingleObject).then((result) => {
262
+ return this.call(data, data_service_method_enum_1.DataServiceMethod.SelectSingleObject)
263
+ .then((result) => {
222
264
  if (result.data.validationResult && result.data.validationResult.success) {
223
265
  if (!result.data.resultObject) {
224
266
  return reject("Article not found!");
@@ -228,6 +270,9 @@ class DataRepositoryService {
228
270
  else {
229
271
  return reject("Error retrieving article data");
230
272
  }
273
+ })
274
+ .catch((e) => {
275
+ return reject(e);
231
276
  });
232
277
  });
233
278
  }
@@ -243,7 +288,8 @@ class DataRepositoryService {
243
288
  parameterValues: inputParams
244
289
  };
245
290
  return new Promise((resolve, reject) => {
246
- return this.call(data).then((result) => {
291
+ return this.call(data)
292
+ .then((result) => {
247
293
  if (result.data.validationResult && result.data.validationResult.success) {
248
294
  if (!result.data.resultObject) {
249
295
  return reject("Document not found!");
@@ -253,6 +299,9 @@ class DataRepositoryService {
253
299
  else {
254
300
  return reject("Error retrieving article data");
255
301
  }
302
+ })
303
+ .catch((e) => {
304
+ return reject(e);
256
305
  });
257
306
  });
258
307
  }
@@ -267,7 +316,10 @@ class DataRepositoryService {
267
316
  refCursorAsArray: true,
268
317
  parameterValues: inputParams
269
318
  };
270
- const response = yield this.call(data);
319
+ const response = yield this.call(data)
320
+ .catch((e) => {
321
+ return Promise.reject(e);
322
+ });
271
323
  return response.data.resultObject;
272
324
  });
273
325
  }
@@ -275,7 +327,7 @@ class DataRepositoryService {
275
327
  return this.getSelectorActiveOptionValues();
276
328
  }
277
329
  initNode(id) {
278
- return new Promise((resolve) => {
330
+ return new Promise((resolve, reject) => {
279
331
  const params = { goodId: id, pubicationCode: 4 };
280
332
  if (this.branchNr !== undefined && this.branchNr !== "") {
281
333
  params.branchNr = this.branchNr;
@@ -286,13 +338,17 @@ class DataRepositoryService {
286
338
  refCursorAsArray: true,
287
339
  parameterValues: params
288
340
  };
289
- return this.call(data).then((data) => {
341
+ return this.call(data)
342
+ .then((data) => {
290
343
  return resolve(data);
344
+ })
345
+ .catch((e) => {
346
+ return reject(e);
291
347
  });
292
348
  });
293
349
  }
294
350
  initNodeInstance(id) {
295
- return new Promise((resolve) => {
351
+ return new Promise((resolve, reject) => {
296
352
  const params = { goodId: id, pubicationCode: 4 };
297
353
  if (this.branchNr !== undefined && this.branchNr !== "") {
298
354
  params.branchNr = this.branchNr;
@@ -303,8 +359,12 @@ class DataRepositoryService {
303
359
  refCursorAsArray: true,
304
360
  parameterValues: params
305
361
  };
306
- return this.call(data).then((data) => {
362
+ return this.call(data)
363
+ .then((data) => {
307
364
  return resolve(data);
365
+ })
366
+ .catch((e) => {
367
+ return reject(e);
308
368
  });
309
369
  });
310
370
  }
@@ -325,25 +385,33 @@ class DataRepositoryService {
325
385
  }
326
386
  getSelectorActiveOptionValuesPrices() {
327
387
  return new Promise((resolve, reject) => {
328
- return this.callSelectorActiveOptionValuesPrices().then((result) => {
388
+ return this.callSelectorActiveOptionValuesPrices()
389
+ .then((result) => {
329
390
  if (result.data.validationResult && result.data.validationResult.success) {
330
391
  return resolve(result.data.resultObjects);
331
392
  }
332
393
  else {
333
394
  return reject("Error getting selector action prices");
334
395
  }
396
+ })
397
+ .catch((e) => {
398
+ return reject(e);
335
399
  });
336
400
  });
337
401
  }
338
402
  getAnswerTexts(params) {
339
403
  return new Promise((resolve, reject) => {
340
- return this.callGetNodeData(params).then((result) => {
404
+ return this.callGetNodeData(params)
405
+ .then((result) => {
341
406
  if (result.data.validationResult && result.data.validationResult.success) {
342
407
  return resolve(result.data.resultObject);
343
408
  }
344
409
  else {
345
410
  return reject("Error getting answer info");
346
411
  }
412
+ })
413
+ .catch((e) => {
414
+ return reject(e);
347
415
  });
348
416
  });
349
417
  }
@@ -427,7 +495,8 @@ class DataRepositoryService {
427
495
  }
428
496
  getSelections() {
429
497
  return new Promise((resolve, reject) => {
430
- return this.callSelectorSelections().then((result) => {
498
+ return this.callSelectorSelections()
499
+ .then((result) => {
431
500
  if (result && result.data && result.data.validationResult && result.data.validationResult.success) {
432
501
  return resolve(result.data.resultObjects);
433
502
  }
@@ -439,12 +508,16 @@ class DataRepositoryService {
439
508
  return reject("Error getting selections");
440
509
  }
441
510
  }
511
+ })
512
+ .catch((e) => {
513
+ return reject(e);
442
514
  });
443
515
  });
444
516
  }
445
517
  getDeliveryPrognosis(goodId) {
446
518
  return new Promise((resolve, reject) => {
447
- return this.callGetSelectorDeliveryDate({}).then((response) => {
519
+ return this.callGetSelectorDeliveryDate({})
520
+ .then((response) => {
448
521
  if (response && response.data && response.data.validationResult && response.data.validationResult.success) {
449
522
  return resolve(response.data.resultObject);
450
523
  }
@@ -463,12 +536,16 @@ class DataRepositoryService {
463
536
  }
464
537
  });
465
538
  }
539
+ })
540
+ .catch((e) => {
541
+ return reject(e);
466
542
  });
467
543
  });
468
544
  }
469
545
  getDeliveryPrognosisForArticle(goodId) {
470
546
  return new Promise((resolve, reject) => {
471
- this.callDeliveryDate2({ goodId: goodId }).then((response) => {
547
+ this.callDeliveryDate2({ goodId: goodId })
548
+ .then((response) => {
472
549
  if (response && response.data && response.data.validationResult && response.data.validationResult.success) {
473
550
  return resolve(response.data.resultObject);
474
551
  }
@@ -480,12 +557,16 @@ class DataRepositoryService {
480
557
  return reject("Error getting delivery prognosis");
481
558
  }
482
559
  }
560
+ })
561
+ .catch((e) => {
562
+ return reject(e);
483
563
  });
484
564
  });
485
565
  }
486
566
  getDecos() {
487
567
  return new Promise((resolve, reject) => {
488
- return this.callSelectorDecos({}).then((result) => {
568
+ return this.callSelectorDecos({})
569
+ .then((result) => {
489
570
  if (result && result.data && result.data.validationResult && result.data.validationResult.success) {
490
571
  return resolve(result.data.resultObjects);
491
572
  }
@@ -497,6 +578,9 @@ class DataRepositoryService {
497
578
  return reject("Error getting decoNodes");
498
579
  }
499
580
  }
581
+ })
582
+ .catch((e) => {
583
+ return reject(e);
500
584
  });
501
585
  });
502
586
  }
@@ -512,7 +596,8 @@ class DataRepositoryService {
512
596
  params.includeBody = thumb === undefined || thumb === false;
513
597
  params.includeThumbnail = thumb === true;
514
598
  params.publication = publication;
515
- return this.callGetSingleImage(params, showLoader).then((result) => {
599
+ return this.callGetSingleImage(params, showLoader)
600
+ .then((result) => {
516
601
  if (result.data.resultObject) {
517
602
  if (result.data.resultObject.filePath !== null && result.data.resultObject.filePath !== "") {
518
603
  return resolve(image_utils_1.ImageUtils.getFixedImageFilepathUrl(result.data.resultObject.filePath));
@@ -529,6 +614,9 @@ class DataRepositoryService {
529
614
  else {
530
615
  return resolve();
531
616
  }
617
+ })
618
+ .catch((e) => {
619
+ return reject(e);
532
620
  });
533
621
  });
534
622
  }
@@ -543,7 +631,10 @@ class DataRepositoryService {
543
631
  selectionId: selNodeId
544
632
  }
545
633
  };
546
- const response = yield this.call(data, data_service_method_enum_1.DataServiceMethod.ExecuteMethod);
634
+ const response = yield this.call(data, data_service_method_enum_1.DataServiceMethod.ExecuteMethod)
635
+ .catch((e) => {
636
+ return Promise.reject(e);
637
+ });
547
638
  if (this.isSuccesfulResponseRoot(response)) {
548
639
  return response.data.resultObject;
549
640
  }
@@ -559,7 +650,10 @@ class DataRepositoryService {
559
650
  parameterValues: params,
560
651
  pagingParameters: paging
561
652
  };
562
- const rawResponse = yield this.call(data, data_service_method_enum_1.DataServiceMethod.SelectMultipleObjects, showLoader);
653
+ const rawResponse = yield this.call(data, data_service_method_enum_1.DataServiceMethod.SelectMultipleObjects, showLoader)
654
+ .catch((e) => {
655
+ return Promise.reject(e);
656
+ });
563
657
  if (rawResponse && rawResponse.data) {
564
658
  if (this.versionHigherThan249) {
565
659
  stronglyTypedResults = this.boFactory.makeBOArrayFromRawBackendDataArray(article_extended_dto_1.ArticleExtendedDto, rawResponse.data.resultObjects);
@@ -585,7 +679,10 @@ class DataRepositoryService {
585
679
  refCursorAsArray: true,
586
680
  parameterValues: request
587
681
  };
588
- const response = yield this.call(data, data_service_method_enum_1.DataServiceMethod.ExecuteMethod);
682
+ const response = yield this.call(data, data_service_method_enum_1.DataServiceMethod.ExecuteMethod)
683
+ .catch((e) => {
684
+ return Promise.reject(e);
685
+ });
589
686
  if (response && response.data) {
590
687
  return this.boFactory.makeWithRawBackendData(article_price_1.ArticlePrice, response.data.resultObject);
591
688
  }
@@ -722,6 +819,16 @@ class DataRepositoryService {
722
819
  };
723
820
  return this.call(data);
724
821
  }
822
+ callArticleFlatTree(goodId) {
823
+ const params = { goodId: goodId };
824
+ const data = {
825
+ methodName: article_method_enum_1.ArticleMethod.GetArticleTree,
826
+ moduleName: module_name_enum_1.ModuleName.Articles,
827
+ refCursorAsArray: true,
828
+ parameterValues: params
829
+ };
830
+ return this.call(data);
831
+ }
725
832
  callGetFrozenArticleArray() {
726
833
  const params = {};
727
834
  const data = {
@@ -767,7 +874,8 @@ class DataRepositoryService {
767
874
  }
768
875
  getSelectorActiveOptionValues() {
769
876
  return new Promise((resolve, reject) => {
770
- return this.callSelectorActiveOptionValues().then((rootResponse) => {
877
+ return this.callSelectorActiveOptionValues()
878
+ .then((rootResponse) => {
771
879
  if (rootResponse && rootResponse.data && rootResponse.data.validationResult && rootResponse.data.validationResult.success) {
772
880
  const match = rootResponse.data.resultObject["matchTableActive"] === "T";
773
881
  const question = rootResponse.data.resultObject['oActiveNodes'][0];
@@ -784,6 +892,9 @@ class DataRepositoryService {
784
892
  else {
785
893
  return reject("Error getting selector active options");
786
894
  }
895
+ })
896
+ .catch((e) => {
897
+ return reject(e);
787
898
  });
788
899
  });
789
900
  }
@@ -803,7 +914,10 @@ class DataRepositoryService {
803
914
  if (parameterValues) {
804
915
  data.parameterValues = parameterValues;
805
916
  }
806
- const rawResponse = yield this.call(data, data_service_method_enum_1.DataServiceMethod.SelectMultipleObjects);
917
+ const rawResponse = yield this.call(data, data_service_method_enum_1.DataServiceMethod.SelectMultipleObjects)
918
+ .catch((e) => {
919
+ return Promise.reject(e);
920
+ });
807
921
  if (rawResponse && rawResponse.data) {
808
922
  stronglyTypedResults = this.boFactory.makeBOArrayFromRawBackendDataArray(clazz, rawResponse.data.resultObjects);
809
923
  }
@@ -4,7 +4,6 @@ import { Subject } from "rxjs";
4
4
  import { Options } from "../model/options";
5
5
  export declare class HdAjaxService implements ConnectionEndpoint {
6
6
  readonly showLoader: Subject<boolean>;
7
- readonly connectionAborted: Subject<void>;
8
7
  readonly connectionResetInactivity: Subject<void>;
9
8
  private _timeout;
10
9
  private _url;
@@ -16,7 +16,6 @@ const rxjs_1 = require("rxjs");
16
16
  class HdAjaxService {
17
17
  constructor(options) {
18
18
  this.showLoader = new rxjs_1.Subject();
19
- this.connectionAborted = new rxjs_1.Subject();
20
19
  this.connectionResetInactivity = new rxjs_1.Subject();
21
20
  this._timeout = 180000;
22
21
  this._showLoaderRequests = 0;
@@ -55,13 +54,13 @@ class HdAjaxService {
55
54
  if (showLoader) {
56
55
  this._setShowLoaderRequests(0);
57
56
  }
58
- this.connectionAborted.next();
57
+ return Promise.reject("ECONNABORTED");
59
58
  }
60
59
  else {
61
60
  if (showLoader) {
62
61
  this._setShowLoaderRequests(this._showLoaderRequests - 1);
63
62
  }
64
- throw e;
63
+ return Promise.reject(e);
65
64
  }
66
65
  }
67
66
  });
@@ -9,6 +9,7 @@ const is_nill_function_1 = require("../utils/function/is-nill.function");
9
9
  const array_utils_1 = require("../utils/array-utils");
10
10
  const business_object_1 = require("../model/business-object");
11
11
  const map_property_decorator_1 = require("../factory/decorators/map-property.decorator");
12
+ const json_decorator_1 = require("../factory/decorators/json.decorator");
12
13
  class BusinessObjectFactory {
13
14
  constructor() {
14
15
  }
@@ -46,18 +47,22 @@ class BusinessObjectFactory {
46
47
  if (!sourceData.hasOwnProperty(srcPropKey)) {
47
48
  continue;
48
49
  }
49
- const srcPropVal = sourceData[srcPropKey];
50
+ let srcPropVal = sourceData[srcPropKey];
50
51
  for (let prop in destinationModel) {
51
52
  if (destinationModel.hasOwnProperty(prop)) {
52
53
  if (map_property_decorator_1.MapPropertyDecorator.IsMapProperty(destinationModel, prop)) {
53
- const destPropKey = map_property_decorator_1.MapPropertyDecorator.GetMapProperty(destinationModel, prop);
54
- if (srcPropKey === destPropKey) {
54
+ const destPropKeys = map_property_decorator_1.MapPropertyDecorator.GetMapProperty(destinationModel, prop).split(',');
55
+ const keyFound = destPropKeys.find(k => k.trim() === srcPropKey);
56
+ if (keyFound) {
55
57
  srcPropKey = prop;
56
58
  break;
57
59
  }
58
60
  }
59
61
  }
60
62
  }
63
+ if (json_decorator_1.JsonFieldFieldDecorator.IsJsonField(destinationModel, srcPropKey)) {
64
+ srcPropVal = json_decorator_1.JsonFieldFieldDecorator.StringAsJson(srcPropVal);
65
+ }
61
66
  if (complex_field_decorator_1.ComplexFieldDecorator.IsComplexField(destinationModel, srcPropKey)) {
62
67
  const classOfField = complex_field_decorator_1.ComplexFieldDecorator.GetComplexFieldType(destinationModel, srcPropKey);
63
68
  destinationModel[srcPropKey] = this.makeWithRawBackendData(classOfField, srcPropVal);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const jsencrypt_1 = require("jsencrypt");
4
4
  class EncryptService {
5
5
  constructor() {
6
- this.rsa = new jsencrypt_1.default({
6
+ this.rsa = new jsencrypt_1.JSEncrypt({
7
7
  default_key_size: "2048"
8
8
  });
9
9
  }
@@ -22,6 +22,7 @@ import { Atmosphere } from "../model/atmosphere";
22
22
  import { ArticleGroup } from "../model/article-group";
23
23
  import { ArticleExtendedDto } from "../model/article-extended-dto";
24
24
  import { Options } from "../model/options";
25
+ import { InternalParam } from "../enum/internal-param.enum";
25
26
  export declare class HdDataService {
26
27
  private _sessionService;
27
28
  private _boFactory;
@@ -43,8 +44,9 @@ export declare class HdDataService {
43
44
  navigateTo(params: any): Promise<DataServiceResponseRoot>;
44
45
  getMatchTable(): Promise<any>;
45
46
  getFrozenArticle(): Promise<any>;
47
+ getJsonArticleFlatTree(goodId: number): Promise<any>;
46
48
  private getLastFrozenArticle;
47
- getSkipButtonImageAndText(): Promise<SkipButtonInfo>;
49
+ getSkipButtonImageAndText(goodId?: number): Promise<SkipButtonInfo>;
48
50
  getArticleQuickSel(goodId: number, branch: string): Promise<Article>;
49
51
  getSuperArticleQuickSel(id: string, branch: string): Promise<SuperArticle>;
50
52
  getGoodIdFromArticleNr(sku: string): Promise<number>;
@@ -71,6 +73,7 @@ export declare class HdDataService {
71
73
  getMaterials(): Promise<Material[]>;
72
74
  getAtmospheres(): Promise<Atmosphere[]>;
73
75
  getArticleGroups(): Promise<ArticleGroup[]>;
76
+ getInternalParameter(parameter: InternalParam): Promise<string>;
74
77
  closeSession(): Promise<boolean>;
75
78
  private createServiceRequestData;
76
79
  }