Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

forecastmanager.js 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3. return new (P || (P = Promise))(function (resolve, reject) {
  4. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  5. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  7. step((generator = generator.apply(thisArg, _arguments || [])).next());
  8. });
  9. };
  10. var Bizgaze;
  11. (function (Bizgaze) {
  12. let Apps;
  13. (function (Apps) {
  14. let Transact;
  15. (function (Transact) {
  16. let Managers;
  17. (function (Managers) {
  18. let Forecast;
  19. (function (Forecast) {
  20. class ForecastManager extends Unibase.Platform.Core.BaseManager {
  21. getMachinesDataforfilter(obj) {
  22. throw new Error("Method not implemented.");
  23. }
  24. downloadData(obj) {
  25. throw new Error("Method not implemented.");
  26. }
  27. executeforecastdata(wise, value) {
  28. return __awaiter(this, void 0, void 0, function* () {
  29. const url = '/apis/v4/bizgaze/integrations/forecast/executeforecastdata/wise/' + wise + '/value/' + value;
  30. return yield this.dataHelper().postAsync(url, null).then(function (response) {
  31. if (response.result != null) {
  32. response.result = JSON.parse(response.result);
  33. }
  34. return response;
  35. });
  36. });
  37. }
  38. static Instance() {
  39. if (this._instance === undefined)
  40. this._instance = new ForecastManager();
  41. return this._instance;
  42. }
  43. }
  44. Forecast.ForecastManager = ForecastManager;
  45. })(Forecast = Managers.Forecast || (Managers.Forecast = {}));
  46. })(Managers = Transact.Managers || (Transact.Managers = {}));
  47. })(Transact = Apps.Transact || (Apps.Transact = {}));
  48. })(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
  49. })(Bizgaze || (Bizgaze = {}));