@bringg/dashboard-sdk 9.37.3-pre → 9.37.4-pre

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 (43) hide show
  1. package/dist/BringgDashboardSDK.d.ts +3 -7
  2. package/dist/BringgDashboardSDK.js +3 -7
  3. package/dist/BringgDashboardSDK.js.map +1 -1
  4. package/dist/PresetViews/preset-views-api.d.ts +16 -9
  5. package/dist/PresetViews/preset-views-api.js +46 -29
  6. package/dist/PresetViews/preset-views-api.js.map +1 -1
  7. package/dist/PresetViews/{v2/preset-views-service.d.ts → preset-views-service.d.ts} +1 -1
  8. package/dist/PresetViews/{v2/preset-views-service.js → preset-views-service.js} +1 -1
  9. package/dist/PresetViews/preset-views-service.js.map +1 -0
  10. package/dist/Services/ServiceRequest.js +1 -1
  11. package/dist/TaskManagedAttributes/task-managed-attributes-api.js +17 -11
  12. package/dist/TaskManagedAttributes/task-managed-attributes-api.js.map +1 -1
  13. package/dist/TaskManagedAttributes/task-managed-attributes-realtime-subscriptions.d.ts +1 -1
  14. package/dist/TaskManagedAttributes/task-managed-attributes-realtime-subscriptions.js +1 -1
  15. package/dist/TaskManagedAttributes/task-managed-attributes-realtime-subscriptions.js.map +1 -1
  16. package/dist/UserPresetViews/user-preset-views-api.d.ts +11 -8
  17. package/dist/UserPresetViews/user-preset-views-api.js +39 -15
  18. package/dist/UserPresetViews/user-preset-views-api.js.map +1 -1
  19. package/dist/UserPresetViews/user-preset-views-service.d.ts +5 -6
  20. package/dist/UserPresetViews/user-preset-views-service.js +21 -38
  21. package/dist/UserPresetViews/user-preset-views-service.js.map +1 -1
  22. package/dist/bringg-dashboard-sdk-cjs2.js +92 -385
  23. package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
  24. package/dist/bringg-dashboard-sdk.js +38 -60
  25. package/dist/bringg-dashboard-sdk.min.js +1 -1
  26. package/dist/bringg-dashboard-sdk.min.js.map +1 -1
  27. package/dist/index.d.ts +2 -0
  28. package/dist/index.js +5 -1
  29. package/dist/index.js.map +1 -1
  30. package/package.json +1 -1
  31. package/dist/PresetViews/preset-views-entity.d.ts +0 -6
  32. package/dist/PresetViews/preset-views-entity.js +0 -56
  33. package/dist/PresetViews/preset-views-entity.js.map +0 -1
  34. package/dist/PresetViews/v2/preset-views-api.d.ts +0 -19
  35. package/dist/PresetViews/v2/preset-views-api.js +0 -97
  36. package/dist/PresetViews/v2/preset-views-api.js.map +0 -1
  37. package/dist/PresetViews/v2/preset-views-service.js.map +0 -1
  38. package/dist/UserPresetViews/v2/user-preset-views-api.d.ts +0 -13
  39. package/dist/UserPresetViews/v2/user-preset-views-api.js +0 -87
  40. package/dist/UserPresetViews/v2/user-preset-views-api.js.map +0 -1
  41. package/dist/UserPresetViews/v2/user-preset-views-service.d.ts +0 -8
  42. package/dist/UserPresetViews/v2/user-preset-views-service.js +0 -79
  43. package/dist/UserPresetViews/v2/user-preset-views-service.js.map +0 -1
@@ -1,19 +1,4 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -55,42 +40,40 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
55
40
  };
56
41
  Object.defineProperty(exports, "__esModule", { value: true });
57
42
  exports.UserPresetViewsService = void 0;
58
- var BaseService_1 = __importDefault(require("../Core/BaseService"));
59
- var settingsServiceBase = 'settings-service';
60
- var baseRoute = "".concat(settingsServiceBase, "/preset-views/user");
61
- var UserPresetViewsService = /** @class */ (function (_super) {
62
- __extends(UserPresetViewsService, _super);
43
+ var CrudService_1 = __importDefault(require("../Core/CrudService"));
44
+ var baseRoute = 'settings-service';
45
+ var UserPresetViewsService = /** @class */ (function () {
63
46
  function UserPresetViewsService(session) {
64
- var _this = _super.call(this, session, baseRoute) || this;
65
- _this.loadAll = function (query, commonOptions) { return __awaiter(_this, void 0, void 0, function () {
47
+ var _this = this;
48
+ this.loadAll = function () { return __awaiter(_this, void 0, void 0, function () {
49
+ var result;
66
50
  return __generator(this, function (_a) {
67
51
  switch (_a.label) {
68
- case 0: return [4 /*yield*/, this.routeGenerator
69
- .get(baseRoute)
70
- .withQueryString(query)
71
- .setException("Failed to get all preset-views/user")
72
- .withCommonOptions(commonOptions)
73
- .invoke()];
74
- case 1: return [2 /*return*/, _a.sent()];
52
+ case 0: return [4 /*yield*/, this.service.getAll()];
53
+ case 1:
54
+ result = _a.sent();
55
+ return [2 /*return*/, result];
75
56
  }
76
57
  });
77
58
  }); };
78
- _this.update = function (payload, commonOptions) { return __awaiter(_this, void 0, void 0, function () {
59
+ this.update = function (body) { return __awaiter(_this, void 0, void 0, function () {
60
+ var result;
79
61
  return __generator(this, function (_a) {
80
62
  switch (_a.label) {
81
- case 0: return [4 /*yield*/, this.routeGenerator
82
- .put(baseRoute)
83
- .withPayload(payload)
84
- .setException("Failed to update preset-views/user")
85
- .withCommonOptions(commonOptions)
63
+ case 0: return [4 /*yield*/, this.service.routeGenerator
64
+ .put("/".concat(this.service.entityName))
65
+ .withPayload(body)
66
+ .setException("Failed to update ".concat(this.service.entityName))
86
67
  .invoke()];
87
- case 1: return [2 /*return*/, _a.sent()];
68
+ case 1:
69
+ result = _a.sent();
70
+ return [2 /*return*/, result];
88
71
  }
89
72
  });
90
73
  }); };
91
- return _this;
74
+ this.service = new CrudService_1.default(session, "".concat(baseRoute, "/preset-views/user"));
92
75
  }
93
76
  return UserPresetViewsService;
94
- }(BaseService_1.default));
77
+ }());
95
78
  exports.UserPresetViewsService = UserPresetViewsService;
96
79
  //# sourceMappingURL=user-preset-views-service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-preset-views-service.js","sourceRoot":"","sources":["../../src/UserPresetViews/user-preset-views-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oEAA8C;AAI9C,IAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAC/C,IAAM,SAAS,GAAG,UAAG,mBAAmB,uBAAoB,CAAC;AAE7D;IAA4C,0CAA2B;IACtE,gCAAY,OAAgB;QAA5B,YACC,kBAAM,OAAO,EAAE,SAAS,CAAC,SACzB;QAEM,aAAO,GAAG,UAChB,KAAwC,EACxC,aAA6B;;;4BAEtB,qBAAM,IAAI,CAAC,cAAc;6BAC9B,GAAG,CAAC,SAAS,CAAC;6BACd,eAAe,CAAC,KAAK,CAAC;6BACtB,YAAY,CAAC,qCAAqC,CAAC;6BACnD,iBAAiB,CAAC,aAAa,CAAC;6BAChC,MAAM,EAAE,EAAA;4BALV,sBAAO,SAKG,EAAC;;;aACX,CAAC;QAEK,YAAM,GAAG,UACf,OAAoC,EACpC,aAA6B;;;4BAEtB,qBAAM,IAAI,CAAC,cAAc;6BAC9B,GAAG,CAAC,SAAS,CAAC;6BACd,WAAW,CAAC,OAAO,CAAC;6BACpB,YAAY,CAAC,oCAAoC,CAAC;6BAClD,iBAAiB,CAAC,aAAa,CAAC;6BAChC,MAAM,EAAE,EAAA;4BALV,sBAAO,SAKG,EAAC;;;aACX,CAAC;;IAxBF,CAAC;IAyBF,6BAAC;AAAD,CAAC,AA5BD,CAA4C,qBAAW,GA4BtD;AA5BY,wDAAsB"}
1
+ {"version":3,"file":"user-preset-views-service.js","sourceRoot":"","sources":["../../src/UserPresetViews/user-preset-views-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oEAA8C;AAG9C,IAAM,SAAS,GAAG,kBAAkB,CAAC;AAErC;IAGC,gCAAY,OAAgB;QAA5B,iBAEC;QAEM,YAAO,GAAG;;;;4BACD,qBAAM,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAA;;wBAApC,MAAM,GAAG,SAA2B;wBAE1C,sBAAO,MAAM,EAAC;;;aACd,CAAC;QAEK,WAAM,GAAG,UAAO,IAAiC;;;;4BACxB,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BAC9D,GAAG,CAAC,WAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAE,CAAC;6BAClC,WAAW,CAAC,IAAI,CAAC;6BACjB,YAAY,CAAC,2BAAoB,IAAI,CAAC,OAAO,CAAC,UAAU,CAAE,CAAC;6BAC3D,MAAM,EAAE,EAAA;;wBAJJ,MAAM,GAAmB,SAIrB;wBAEV,sBAAO,MAAM,EAAC;;;aACd,CAAC;QAjBD,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,UAAG,SAAS,uBAAoB,CAAC,CAAC;IAC3E,CAAC;IAiBF,6BAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBY,wDAAsB"}