@colijnit/catalog 255.1.2 → 255.1.3

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.
@@ -30,8 +30,8 @@
30
30
  function Version() {
31
31
  this.name = "@colijnit/catalog";
32
32
  this.description = "iOne Catalog module based on Angular 12";
33
- this.symVer = "255.1.2";
34
- this.publishDate = "07/08/2024, 18:54:37";
33
+ this.symVer = "255.1.3";
34
+ this.publishDate = "13/08/2024, 09:50:34";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -1024,7 +1024,6 @@
1024
1024
  result.count = response.pagingParameters.resultCount;
1025
1025
  result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockSearchTileSelection, response.resultObjects);
1026
1026
  return [2 /*return*/, result];
1027
- // return <unknown>this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockSearchTileSelection, response.resultObjects) as ArticleStockSearchTileSelection[];
1028
1027
  }
1029
1028
  else {
1030
1029
  console.error(response.validationMessagesAsString);
@@ -1048,7 +1047,26 @@
1048
1047
  result.count = response.pagingParameters.resultCount;
1049
1048
  result.articles = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockSearchGridSelection, response.resultObjects);
1050
1049
  return [2 /*return*/, result];
1051
- // return <unknown>this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStockSearchGridSelection, response.resultObjects) as ArticleStockSearchGridSelection[];
1050
+ }
1051
+ else {
1052
+ console.error(response.validationMessagesAsString);
1053
+ }
1054
+ return [2 /*return*/];
1055
+ }
1056
+ });
1057
+ });
1058
+ };
1059
+ CatalogConnectorAdapterService.prototype.getArticleGridViewExcelFile = function (params, showLoader) {
1060
+ if (showLoader === void 0) { showLoader = true; }
1061
+ return __awaiter(this, void 0, void 0, function () {
1062
+ var response;
1063
+ return __generator(this, function (_a) {
1064
+ switch (_a.label) {
1065
+ case 0: return [4 /*yield*/, this.connector.getArticleGridViewExcelFile(params, showLoader)];
1066
+ case 1:
1067
+ response = _a.sent();
1068
+ if (response && response.validationResult && response.validationResult.success) {
1069
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray([], response.resultObjects)];
1052
1070
  }
1053
1071
  else {
1054
1072
  console.error(response.validationMessagesAsString);
@@ -1104,6 +1122,26 @@
1104
1122
  });
1105
1123
  });
1106
1124
  };
1125
+ CatalogConnectorAdapterService.prototype.getTransferArticleGridViewExcelFile = function (params, showLoader) {
1126
+ if (showLoader === void 0) { showLoader = true; }
1127
+ return __awaiter(this, void 0, void 0, function () {
1128
+ var response;
1129
+ return __generator(this, function (_a) {
1130
+ switch (_a.label) {
1131
+ case 0: return [4 /*yield*/, this.connector.getTransferArticleGridViewExcelFile(params, showLoader)];
1132
+ case 1:
1133
+ response = _a.sent();
1134
+ if (response && response.validationResult && response.validationResult.success) {
1135
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray([], response.resultObjects)];
1136
+ }
1137
+ else {
1138
+ console.error(response.validationMessagesAsString);
1139
+ }
1140
+ return [2 /*return*/];
1141
+ }
1142
+ });
1143
+ });
1144
+ };
1107
1145
  CatalogConnectorAdapterService.prototype.getArticlesForStockComparisonSearchTile = function (params, showLoader) {
1108
1146
  if (showLoader === void 0) { showLoader = true; }
1109
1147
  return __awaiter(this, void 0, void 0, function () {
@@ -1150,13 +1188,13 @@
1150
1188
  });
1151
1189
  });
1152
1190
  };
1153
- CatalogConnectorAdapterService.prototype.getArticleGridViewExcelFile = function (params, showLoader) {
1191
+ CatalogConnectorAdapterService.prototype.getComparisonArticleGridViewExcelFile = function (params, showLoader) {
1154
1192
  if (showLoader === void 0) { showLoader = true; }
1155
1193
  return __awaiter(this, void 0, void 0, function () {
1156
1194
  var response;
1157
1195
  return __generator(this, function (_a) {
1158
1196
  switch (_a.label) {
1159
- case 0: return [4 /*yield*/, this.connector.getArticleGridViewExcelFile(params, showLoader)];
1197
+ case 0: return [4 /*yield*/, this.connector.getComparisonArticleGridViewExcelFile(params, showLoader)];
1160
1198
  case 1:
1161
1199
  response = _a.sent();
1162
1200
  if (response && response.validationResult && response.validationResult.success) {
@@ -2372,6 +2410,14 @@
2372
2410
  });
2373
2411
  });
2374
2412
  };
2413
+ CatalogConnectorService.prototype.getArticleGridViewExcelFile = function (params, showLoader) {
2414
+ if (showLoader === void 0) { showLoader = true; }
2415
+ return __awaiter(this, void 0, void 0, function () {
2416
+ return __generator(this, function (_a) {
2417
+ return [2 /*return*/, this._adapterService.getArticleGridViewExcelFile(params, showLoader)];
2418
+ });
2419
+ });
2420
+ };
2375
2421
  CatalogConnectorService.prototype.getArticlesForStockTransferSearchTile = function (params, showLoader) {
2376
2422
  if (showLoader === void 0) { showLoader = true; }
2377
2423
  return __awaiter(this, void 0, void 0, function () {
@@ -2388,6 +2434,14 @@
2388
2434
  });
2389
2435
  });
2390
2436
  };
2437
+ CatalogConnectorService.prototype.getTransferArticleGridViewExcelFile = function (params, showLoader) {
2438
+ if (showLoader === void 0) { showLoader = true; }
2439
+ return __awaiter(this, void 0, void 0, function () {
2440
+ return __generator(this, function (_a) {
2441
+ return [2 /*return*/, this._adapterService.getTransferArticleGridViewExcelFile(params, showLoader)];
2442
+ });
2443
+ });
2444
+ };
2391
2445
  CatalogConnectorService.prototype.getArticlesForStockComparisonSearchTile = function (params, showLoader) {
2392
2446
  if (showLoader === void 0) { showLoader = true; }
2393
2447
  return __awaiter(this, void 0, void 0, function () {
@@ -2404,11 +2458,11 @@
2404
2458
  });
2405
2459
  });
2406
2460
  };
2407
- CatalogConnectorService.prototype.getArticleGridViewExcelFile = function (params, showLoader) {
2461
+ CatalogConnectorService.prototype.getComparisonArticleGridViewExcelFile = function (params, showLoader) {
2408
2462
  if (showLoader === void 0) { showLoader = true; }
2409
2463
  return __awaiter(this, void 0, void 0, function () {
2410
2464
  return __generator(this, function (_a) {
2411
- return [2 /*return*/, this._adapterService.getArticleGridViewExcelFile(params, showLoader)];
2465
+ return [2 /*return*/, this._adapterService.getComparisonArticleGridViewExcelFile(params, showLoader)];
2412
2466
  });
2413
2467
  });
2414
2468
  };
@@ -4666,7 +4720,6 @@
4666
4720
  this.articlesPerPage = 20;
4667
4721
  this.tileArticles = [];
4668
4722
  this.gridArticles = [];
4669
- this.transferTileArticles = [];
4670
4723
  this._currentPage = 1;
4671
4724
  this._subs = [];
4672
4725
  this._subs.push(this._optionService.parametersSet.subscribe(function (isSet) {
@@ -4825,6 +4878,12 @@
4825
4878
  _this._filterService.getFilters(_this.searchRequest);
4826
4879
  });
4827
4880
  };
4881
+ CatalogStockTransferService.prototype.getArticleGridViewExcelFile = function () {
4882
+ this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { rangeStockMutationDate: '', rangeStockStatus: '', rangeSourceWarehouse: '', rangeTargetWarehouse: '' });
4883
+ this._catalogConnectorService.getTransferArticleGridViewExcelFile(this.stockSearchRequest).then(function (result) {
4884
+ console.log('export: ', result);
4885
+ });
4886
+ };
4828
4887
  return CatalogStockTransferService;
4829
4888
  }());
4830
4889
  CatalogStockTransferService.decorators = [
@@ -4984,6 +5043,12 @@
4984
5043
  _this._filterService.getFilters(_this.searchRequest);
4985
5044
  });
4986
5045
  };
5046
+ CatalogStockComparisonService.prototype.getArticleGridViewExcelFile = function () {
5047
+ this.stockSearchRequest = Object.assign(Object.assign({}, this.searchRequest), { sourceWarehouse: 0, targetWarehouse: 0 });
5048
+ this._catalogConnectorService.getComparisonArticleGridViewExcelFile(this.stockSearchRequest).then(function (result) {
5049
+ console.log('export: ', result);
5050
+ });
5051
+ };
4987
5052
  return CatalogStockComparisonService;
4988
5053
  }());
4989
5054
  CatalogStockComparisonService.decorators = [