@colijnit/ioneconnector 1.0.125 → 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.
Files changed (32) hide show
  1. package/build/connector-auth.d.ts +3 -3
  2. package/build/connector-auth.js +9 -6
  3. package/build/connector-public.d.ts +3 -3
  4. package/build/connector-public.js +20 -7
  5. package/build/connector.d.ts +17 -14
  6. package/build/connector.js +102 -76
  7. package/build/enum/hd-service-method.d.ts +2 -1
  8. package/build/enum/hd-service-method.js +1 -0
  9. package/build/enum/internal-param.enum.d.ts +1 -1
  10. package/build/enum/internal-param.enum.js +1 -1
  11. package/build/ione-api-connection.d.ts +3 -3
  12. package/build/model/configurator-statistics-environment.d.ts +8 -0
  13. package/build/model/configurator-statistics-environment.js +5 -0
  14. package/build/model/question-and-answer.d.ts +6 -0
  15. package/build/model/question-and-answer.js +8 -0
  16. package/build/model/selection.d.ts +1 -0
  17. package/build/model/selection.js +1 -0
  18. package/build/provider/ajax.service.js +1 -1
  19. package/build/provider/base-backend-connection.service.d.ts +0 -1
  20. package/build/provider/base-backend-connection.service.js +0 -1
  21. package/build/provider/data-repository.service.d.ts +2 -2
  22. package/build/provider/data-repository.service.js +122 -30
  23. package/build/provider/hd-ajax.service.d.ts +0 -1
  24. package/build/provider/hd-ajax.service.js +2 -3
  25. package/build/service/encrypt.service.js +1 -1
  26. package/build/service/hd-data.service.d.ts +4 -1
  27. package/build/service/hd-data.service.js +148 -32
  28. package/build/service/hd-session.service.js +20 -28
  29. package/build/service/login.service.d.ts +1 -1
  30. package/build/tests/int/connector-auth.int.test.js +7 -1
  31. package/build/tests/int/connector-public.int.test.js +7 -1
  32. package/package.json +10 -17
@@ -61,6 +61,7 @@ export declare class Selection extends BusinessObject {
61
61
  parentArtNodeIdDeco: string;
62
62
  optCycle: number;
63
63
  optCycleDeco: number;
64
+ schema: string;
64
65
  userInput: boolean;
65
66
  userInputValue: string;
66
67
  inqHandleLikePar: boolean;
@@ -49,6 +49,7 @@ class Selection extends business_object_1.BusinessObject {
49
49
  this.parentArtNodeIdDeco = null;
50
50
  this.optCycle = null;
51
51
  this.optCycleDeco = null;
52
+ this.schema = null;
52
53
  this.userInput = false;
53
54
  this.userInputValue = null;
54
55
  this.selection = null;
@@ -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
- this.connectionAborted.next();
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);
@@ -27,9 +27,9 @@ 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
- readonly connectionAborted: Subject<void>;
33
33
  readonly connectionResetInactivity: Subject<void>;
34
34
  branchNr: string;
35
35
  currencyId: number;
@@ -44,7 +44,7 @@ export declare class DataRepositoryService {
44
44
  closeSession(): void;
45
45
  getGoodIdFromArticleNr(sku: string): Promise<number>;
46
46
  getMatchTable(): Promise<any>;
47
- getFrozenArticle(): Promise<any>;
47
+ getFrozenArticle(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<any>;
48
48
  getJsonArticleFlatTree(goodId: number): Promise<any>;
49
49
  getSkipButtonImageAndText(goodId?: number): Promise<SkipButtonInfo>;
50
50
  getArticleQuickSel(id: number): Promise<Article>;
@@ -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
- getFrozenArticle() {
123
+ getFrozenArticle(configuratorStatistics) {
118
124
  return new Promise((resolve, reject) => {
119
- return this.callGenerateFrozenArticle().then((result) => {
125
+ return this.callGenerateFrozenArticle(configuratorStatistics)
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,18 +139,25 @@ 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
148
  getJsonArticleFlatTree(goodId) {
139
149
  return new Promise((resolve, reject) => {
140
- return this.callArticleFlatTree(goodId).then((result) => {
150
+ return this.callArticleFlatTree(goodId)
151
+ .then((result) => {
141
152
  if (result.data.validationResult && result.data.validationResult.success === true) {
142
153
  resolve(result.data.resultObject);
143
154
  }
144
155
  else {
145
156
  reject("Error getting article tree");
146
157
  }
158
+ })
159
+ .catch((e) => {
160
+ return reject(e);
147
161
  });
148
162
  });
149
163
  }
@@ -160,7 +174,8 @@ class DataRepositoryService {
160
174
  parameterValues: params
161
175
  };
162
176
  return new Promise((resolve, reject) => {
163
- return this.call(data).then((result) => {
177
+ return this.call(data)
178
+ .then((result) => {
164
179
  const data = result.data;
165
180
  const validationResult = data.validationResult;
166
181
  if (validationResult && validationResult.success) {
@@ -169,6 +184,9 @@ class DataRepositoryService {
169
184
  else {
170
185
  return reject("Error retrieving skip button image and text");
171
186
  }
187
+ })
188
+ .catch((e) => {
189
+ return reject(e);
172
190
  });
173
191
  });
174
192
  });
@@ -185,7 +203,8 @@ class DataRepositoryService {
185
203
  parameterValues: params
186
204
  };
187
205
  return new Promise((resolve, reject) => {
188
- return this.call(data).then((result) => {
206
+ return this.call(data)
207
+ .then((result) => {
189
208
  if (result.data.validationResult && result.data.validationResult.success) {
190
209
  if (!result.data.resultObject) {
191
210
  return reject("Article not found!");
@@ -196,6 +215,9 @@ class DataRepositoryService {
196
215
  else {
197
216
  return reject("Error retrieving article data");
198
217
  }
218
+ })
219
+ .catch((e) => {
220
+ return reject(e);
199
221
  });
200
222
  });
201
223
  }
@@ -211,7 +233,8 @@ class DataRepositoryService {
211
233
  parameterValues: params
212
234
  };
213
235
  return new Promise((resolve, reject) => {
214
- return this.call(data).then((result) => {
236
+ return this.call(data)
237
+ .then((result) => {
215
238
  if (result.data.validationResult && result.data.validationResult.success) {
216
239
  if (!result.data.resultObject) {
217
240
  return reject("Super article not found!");
@@ -222,6 +245,9 @@ class DataRepositoryService {
222
245
  else {
223
246
  return reject("Error retrieving super article data");
224
247
  }
248
+ })
249
+ .catch((e) => {
250
+ return reject(e);
225
251
  });
226
252
  });
227
253
  }
@@ -233,7 +259,8 @@ class DataRepositoryService {
233
259
  objectId: id
234
260
  };
235
261
  return new Promise((resolve, reject) => {
236
- 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) => {
237
264
  if (result.data.validationResult && result.data.validationResult.success) {
238
265
  if (!result.data.resultObject) {
239
266
  return reject("Article not found!");
@@ -243,6 +270,9 @@ class DataRepositoryService {
243
270
  else {
244
271
  return reject("Error retrieving article data");
245
272
  }
273
+ })
274
+ .catch((e) => {
275
+ return reject(e);
246
276
  });
247
277
  });
248
278
  }
@@ -258,7 +288,8 @@ class DataRepositoryService {
258
288
  parameterValues: inputParams
259
289
  };
260
290
  return new Promise((resolve, reject) => {
261
- return this.call(data).then((result) => {
291
+ return this.call(data)
292
+ .then((result) => {
262
293
  if (result.data.validationResult && result.data.validationResult.success) {
263
294
  if (!result.data.resultObject) {
264
295
  return reject("Document not found!");
@@ -268,6 +299,9 @@ class DataRepositoryService {
268
299
  else {
269
300
  return reject("Error retrieving article data");
270
301
  }
302
+ })
303
+ .catch((e) => {
304
+ return reject(e);
271
305
  });
272
306
  });
273
307
  }
@@ -282,7 +316,10 @@ class DataRepositoryService {
282
316
  refCursorAsArray: true,
283
317
  parameterValues: inputParams
284
318
  };
285
- const response = yield this.call(data);
319
+ const response = yield this.call(data)
320
+ .catch((e) => {
321
+ return Promise.reject(e);
322
+ });
286
323
  return response.data.resultObject;
287
324
  });
288
325
  }
@@ -290,7 +327,7 @@ class DataRepositoryService {
290
327
  return this.getSelectorActiveOptionValues();
291
328
  }
292
329
  initNode(id) {
293
- return new Promise((resolve) => {
330
+ return new Promise((resolve, reject) => {
294
331
  const params = { goodId: id, pubicationCode: 4 };
295
332
  if (this.branchNr !== undefined && this.branchNr !== "") {
296
333
  params.branchNr = this.branchNr;
@@ -301,13 +338,17 @@ class DataRepositoryService {
301
338
  refCursorAsArray: true,
302
339
  parameterValues: params
303
340
  };
304
- return this.call(data).then((data) => {
341
+ return this.call(data)
342
+ .then((data) => {
305
343
  return resolve(data);
344
+ })
345
+ .catch((e) => {
346
+ return reject(e);
306
347
  });
307
348
  });
308
349
  }
309
350
  initNodeInstance(id) {
310
- return new Promise((resolve) => {
351
+ return new Promise((resolve, reject) => {
311
352
  const params = { goodId: id, pubicationCode: 4 };
312
353
  if (this.branchNr !== undefined && this.branchNr !== "") {
313
354
  params.branchNr = this.branchNr;
@@ -318,8 +359,12 @@ class DataRepositoryService {
318
359
  refCursorAsArray: true,
319
360
  parameterValues: params
320
361
  };
321
- return this.call(data).then((data) => {
362
+ return this.call(data)
363
+ .then((data) => {
322
364
  return resolve(data);
365
+ })
366
+ .catch((e) => {
367
+ return reject(e);
323
368
  });
324
369
  });
325
370
  }
@@ -340,25 +385,33 @@ class DataRepositoryService {
340
385
  }
341
386
  getSelectorActiveOptionValuesPrices() {
342
387
  return new Promise((resolve, reject) => {
343
- return this.callSelectorActiveOptionValuesPrices().then((result) => {
388
+ return this.callSelectorActiveOptionValuesPrices()
389
+ .then((result) => {
344
390
  if (result.data.validationResult && result.data.validationResult.success) {
345
391
  return resolve(result.data.resultObjects);
346
392
  }
347
393
  else {
348
394
  return reject("Error getting selector action prices");
349
395
  }
396
+ })
397
+ .catch((e) => {
398
+ return reject(e);
350
399
  });
351
400
  });
352
401
  }
353
402
  getAnswerTexts(params) {
354
403
  return new Promise((resolve, reject) => {
355
- return this.callGetNodeData(params).then((result) => {
404
+ return this.callGetNodeData(params)
405
+ .then((result) => {
356
406
  if (result.data.validationResult && result.data.validationResult.success) {
357
407
  return resolve(result.data.resultObject);
358
408
  }
359
409
  else {
360
410
  return reject("Error getting answer info");
361
411
  }
412
+ })
413
+ .catch((e) => {
414
+ return reject(e);
362
415
  });
363
416
  });
364
417
  }
@@ -442,7 +495,8 @@ class DataRepositoryService {
442
495
  }
443
496
  getSelections() {
444
497
  return new Promise((resolve, reject) => {
445
- return this.callSelectorSelections().then((result) => {
498
+ return this.callSelectorSelections()
499
+ .then((result) => {
446
500
  if (result && result.data && result.data.validationResult && result.data.validationResult.success) {
447
501
  return resolve(result.data.resultObjects);
448
502
  }
@@ -454,12 +508,16 @@ class DataRepositoryService {
454
508
  return reject("Error getting selections");
455
509
  }
456
510
  }
511
+ })
512
+ .catch((e) => {
513
+ return reject(e);
457
514
  });
458
515
  });
459
516
  }
460
517
  getDeliveryPrognosis(goodId) {
461
518
  return new Promise((resolve, reject) => {
462
- return this.callGetSelectorDeliveryDate({}).then((response) => {
519
+ return this.callGetSelectorDeliveryDate({})
520
+ .then((response) => {
463
521
  if (response && response.data && response.data.validationResult && response.data.validationResult.success) {
464
522
  return resolve(response.data.resultObject);
465
523
  }
@@ -478,12 +536,16 @@ class DataRepositoryService {
478
536
  }
479
537
  });
480
538
  }
539
+ })
540
+ .catch((e) => {
541
+ return reject(e);
481
542
  });
482
543
  });
483
544
  }
484
545
  getDeliveryPrognosisForArticle(goodId) {
485
546
  return new Promise((resolve, reject) => {
486
- this.callDeliveryDate2({ goodId: goodId }).then((response) => {
547
+ this.callDeliveryDate2({ goodId: goodId })
548
+ .then((response) => {
487
549
  if (response && response.data && response.data.validationResult && response.data.validationResult.success) {
488
550
  return resolve(response.data.resultObject);
489
551
  }
@@ -495,12 +557,16 @@ class DataRepositoryService {
495
557
  return reject("Error getting delivery prognosis");
496
558
  }
497
559
  }
560
+ })
561
+ .catch((e) => {
562
+ return reject(e);
498
563
  });
499
564
  });
500
565
  }
501
566
  getDecos() {
502
567
  return new Promise((resolve, reject) => {
503
- return this.callSelectorDecos({}).then((result) => {
568
+ return this.callSelectorDecos({})
569
+ .then((result) => {
504
570
  if (result && result.data && result.data.validationResult && result.data.validationResult.success) {
505
571
  return resolve(result.data.resultObjects);
506
572
  }
@@ -512,6 +578,9 @@ class DataRepositoryService {
512
578
  return reject("Error getting decoNodes");
513
579
  }
514
580
  }
581
+ })
582
+ .catch((e) => {
583
+ return reject(e);
515
584
  });
516
585
  });
517
586
  }
@@ -527,7 +596,8 @@ class DataRepositoryService {
527
596
  params.includeBody = thumb === undefined || thumb === false;
528
597
  params.includeThumbnail = thumb === true;
529
598
  params.publication = publication;
530
- return this.callGetSingleImage(params, showLoader).then((result) => {
599
+ return this.callGetSingleImage(params, showLoader)
600
+ .then((result) => {
531
601
  if (result.data.resultObject) {
532
602
  if (result.data.resultObject.filePath !== null && result.data.resultObject.filePath !== "") {
533
603
  return resolve(image_utils_1.ImageUtils.getFixedImageFilepathUrl(result.data.resultObject.filePath));
@@ -544,6 +614,9 @@ class DataRepositoryService {
544
614
  else {
545
615
  return resolve();
546
616
  }
617
+ })
618
+ .catch((e) => {
619
+ return reject(e);
547
620
  });
548
621
  });
549
622
  }
@@ -558,7 +631,10 @@ class DataRepositoryService {
558
631
  selectionId: selNodeId
559
632
  }
560
633
  };
561
- 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
+ });
562
638
  if (this.isSuccesfulResponseRoot(response)) {
563
639
  return response.data.resultObject;
564
640
  }
@@ -574,7 +650,10 @@ class DataRepositoryService {
574
650
  parameterValues: params,
575
651
  pagingParameters: paging
576
652
  };
577
- 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
+ });
578
657
  if (rawResponse && rawResponse.data) {
579
658
  if (this.versionHigherThan249) {
580
659
  stronglyTypedResults = this.boFactory.makeBOArrayFromRawBackendDataArray(article_extended_dto_1.ArticleExtendedDto, rawResponse.data.resultObjects);
@@ -600,7 +679,10 @@ class DataRepositoryService {
600
679
  refCursorAsArray: true,
601
680
  parameterValues: request
602
681
  };
603
- 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
+ });
604
686
  if (response && response.data) {
605
687
  return this.boFactory.makeWithRawBackendData(article_price_1.ArticlePrice, response.data.resultObject);
606
688
  }
@@ -727,8 +809,11 @@ class DataRepositoryService {
727
809
  };
728
810
  return this.call(data, undefined, showLoader);
729
811
  }
730
- callGenerateFrozenArticle() {
812
+ callGenerateFrozenArticle(configuratorStatistics) {
731
813
  const params = {};
814
+ if (configuratorStatistics) {
815
+ params.configuratorStatisticsEnvironment = configuratorStatistics;
816
+ }
732
817
  const data = {
733
818
  methodName: article_method_enum_1.ArticleMethod.GenerateFrozenArticle,
734
819
  moduleName: module_name_enum_1.ModuleName.Articles,
@@ -792,7 +877,8 @@ class DataRepositoryService {
792
877
  }
793
878
  getSelectorActiveOptionValues() {
794
879
  return new Promise((resolve, reject) => {
795
- return this.callSelectorActiveOptionValues().then((rootResponse) => {
880
+ return this.callSelectorActiveOptionValues()
881
+ .then((rootResponse) => {
796
882
  if (rootResponse && rootResponse.data && rootResponse.data.validationResult && rootResponse.data.validationResult.success) {
797
883
  const match = rootResponse.data.resultObject["matchTableActive"] === "T";
798
884
  const question = rootResponse.data.resultObject['oActiveNodes'][0];
@@ -809,6 +895,9 @@ class DataRepositoryService {
809
895
  else {
810
896
  return reject("Error getting selector active options");
811
897
  }
898
+ })
899
+ .catch((e) => {
900
+ return reject(e);
812
901
  });
813
902
  });
814
903
  }
@@ -828,7 +917,10 @@ class DataRepositoryService {
828
917
  if (parameterValues) {
829
918
  data.parameterValues = parameterValues;
830
919
  }
831
- const rawResponse = yield this.call(data, data_service_method_enum_1.DataServiceMethod.SelectMultipleObjects);
920
+ const rawResponse = yield this.call(data, data_service_method_enum_1.DataServiceMethod.SelectMultipleObjects)
921
+ .catch((e) => {
922
+ return Promise.reject(e);
923
+ });
832
924
  if (rawResponse && rawResponse.data) {
833
925
  stronglyTypedResults = this.boFactory.makeBOArrayFromRawBackendDataArray(clazz, rawResponse.data.resultObjects);
834
926
  }
@@ -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
  });
@@ -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,8 @@ 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";
26
+ import { ConfiguratorStatisticsEnvironment } from "../model/configurator-statistics-environment";
25
27
  export declare class HdDataService {
26
28
  private _sessionService;
27
29
  private _boFactory;
@@ -42,7 +44,7 @@ export declare class HdDataService {
42
44
  cancelBack2Node(params: any): Promise<DataServiceResponseRoot>;
43
45
  navigateTo(params: any): Promise<DataServiceResponseRoot>;
44
46
  getMatchTable(): Promise<any>;
45
- getFrozenArticle(): Promise<any>;
47
+ getFrozenArticle(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<any>;
46
48
  getJsonArticleFlatTree(goodId: number): Promise<any>;
47
49
  private getLastFrozenArticle;
48
50
  getSkipButtonImageAndText(goodId?: number): Promise<SkipButtonInfo>;
@@ -72,6 +74,7 @@ export declare class HdDataService {
72
74
  getMaterials(): Promise<Material[]>;
73
75
  getAtmospheres(): Promise<Atmosphere[]>;
74
76
  getArticleGroups(): Promise<ArticleGroup[]>;
77
+ getInternalParameter(parameter: InternalParam): Promise<string>;
75
78
  closeSession(): Promise<boolean>;
76
79
  private createServiceRequestData;
77
80
  }