@computec/uibase 1.0.2

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 (86) hide show
  1. package/dist/communication/HttpClient.d.ts +248 -0
  2. package/dist/communication/HttpClient.d.ts.map +1 -0
  3. package/dist/communication/HttpClient.js +355 -0
  4. package/dist/communication/HttpClientCacheOptions.d.ts +9 -0
  5. package/dist/communication/HttpClientCacheOptions.d.ts.map +1 -0
  6. package/dist/communication/HttpClientCacheOptions.js +25 -0
  7. package/dist/communication/IBaseHttpClientOptions.d.ts +17 -0
  8. package/dist/communication/IBaseHttpClientOptions.d.ts.map +1 -0
  9. package/dist/communication/IBaseHttpClientOptions.js +2 -0
  10. package/dist/helpers/ErrorHelper.d.ts +15 -0
  11. package/dist/helpers/ErrorHelper.d.ts.map +1 -0
  12. package/dist/helpers/ErrorHelper.js +37 -0
  13. package/dist/helpers/HttpClientHelper.d.ts +42 -0
  14. package/dist/helpers/HttpClientHelper.d.ts.map +1 -0
  15. package/dist/helpers/HttpClientHelper.js +175 -0
  16. package/dist/index.d.ts +23 -0
  17. package/dist/index.d.ts.map +1 -0
  18. package/dist/index.js +50 -0
  19. package/dist/models/AppEngineException.d.ts +11 -0
  20. package/dist/models/AppEngineException.d.ts.map +1 -0
  21. package/dist/models/AppEngineException.js +21 -0
  22. package/dist/models/BaseBusinessObject.d.ts +158 -0
  23. package/dist/models/BaseBusinessObject.d.ts.map +1 -0
  24. package/dist/models/BaseBusinessObject.js +187 -0
  25. package/dist/models/LocalStorage.d.ts +9 -0
  26. package/dist/models/LocalStorage.d.ts.map +1 -0
  27. package/dist/models/LocalStorage.js +54 -0
  28. package/dist/models/Session.d.ts +18 -0
  29. package/dist/models/Session.d.ts.map +1 -0
  30. package/dist/models/Session.js +5 -0
  31. package/dist/models/enums/HeadersContentTypeEnum.d.ts +8 -0
  32. package/dist/models/enums/HeadersContentTypeEnum.d.ts.map +1 -0
  33. package/dist/models/enums/HeadersContentTypeEnum.js +10 -0
  34. package/dist/models/enums/StorageTypeEnum.d.ts +5 -0
  35. package/dist/models/enums/StorageTypeEnum.d.ts.map +1 -0
  36. package/dist/models/enums/StorageTypeEnum.js +8 -0
  37. package/dist/models/interfaces/IAppEngineException.d.ts +7 -0
  38. package/dist/models/interfaces/IAppEngineException.d.ts.map +1 -0
  39. package/dist/models/interfaces/IAppEngineException.js +2 -0
  40. package/dist-ui5/resources/computec/appengine/uibase/.library +15 -0
  41. package/dist-ui5/resources/computec/appengine/uibase/communication/HttpClient-dbg.js +485 -0
  42. package/dist-ui5/resources/computec/appengine/uibase/communication/HttpClient.js +2 -0
  43. package/dist-ui5/resources/computec/appengine/uibase/communication/HttpClient.js.map +1 -0
  44. package/dist-ui5/resources/computec/appengine/uibase/communication/HttpClientCacheOptions-dbg.js +41 -0
  45. package/dist-ui5/resources/computec/appengine/uibase/communication/HttpClientCacheOptions.js +2 -0
  46. package/dist-ui5/resources/computec/appengine/uibase/communication/HttpClientCacheOptions.js.map +1 -0
  47. package/dist-ui5/resources/computec/appengine/uibase/communication/IBaseHttpClientOptions-dbg.js +1 -0
  48. package/dist-ui5/resources/computec/appengine/uibase/communication/IBaseHttpClientOptions.js +2 -0
  49. package/dist-ui5/resources/computec/appengine/uibase/communication/IBaseHttpClientOptions.js.map +1 -0
  50. package/dist-ui5/resources/computec/appengine/uibase/helpers/ErrorHelper-dbg.js +57 -0
  51. package/dist-ui5/resources/computec/appengine/uibase/helpers/ErrorHelper.js +2 -0
  52. package/dist-ui5/resources/computec/appengine/uibase/helpers/ErrorHelper.js.map +1 -0
  53. package/dist-ui5/resources/computec/appengine/uibase/helpers/HttpClientHelper-dbg.js +310 -0
  54. package/dist-ui5/resources/computec/appengine/uibase/helpers/HttpClientHelper.js +2 -0
  55. package/dist-ui5/resources/computec/appengine/uibase/helpers/HttpClientHelper.js.map +1 -0
  56. package/dist-ui5/resources/computec/appengine/uibase/index-dbg.js +43 -0
  57. package/dist-ui5/resources/computec/appengine/uibase/index.js +2 -0
  58. package/dist-ui5/resources/computec/appengine/uibase/index.js.map +1 -0
  59. package/dist-ui5/resources/computec/appengine/uibase/library-dbg.js +27 -0
  60. package/dist-ui5/resources/computec/appengine/uibase/library-preload.js +47 -0
  61. package/dist-ui5/resources/computec/appengine/uibase/library-preload.js.map +1 -0
  62. package/dist-ui5/resources/computec/appengine/uibase/library.js +2 -0
  63. package/dist-ui5/resources/computec/appengine/uibase/library.js.map +1 -0
  64. package/dist-ui5/resources/computec/appengine/uibase/manifest.json +35 -0
  65. package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineException-dbg.js +37 -0
  66. package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineException.js +2 -0
  67. package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineException.js.map +1 -0
  68. package/dist-ui5/resources/computec/appengine/uibase/models/BaseBusinessObject-dbg.js +231 -0
  69. package/dist-ui5/resources/computec/appengine/uibase/models/BaseBusinessObject.js +2 -0
  70. package/dist-ui5/resources/computec/appengine/uibase/models/BaseBusinessObject.js.map +1 -0
  71. package/dist-ui5/resources/computec/appengine/uibase/models/LocalStorage-dbg.js +75 -0
  72. package/dist-ui5/resources/computec/appengine/uibase/models/LocalStorage.js +2 -0
  73. package/dist-ui5/resources/computec/appengine/uibase/models/LocalStorage.js.map +1 -0
  74. package/dist-ui5/resources/computec/appengine/uibase/models/Session-dbg.js +15 -0
  75. package/dist-ui5/resources/computec/appengine/uibase/models/Session.js +2 -0
  76. package/dist-ui5/resources/computec/appengine/uibase/models/Session.js.map +1 -0
  77. package/dist-ui5/resources/computec/appengine/uibase/models/enums/HeadersContentTypeEnum-dbg.js +14 -0
  78. package/dist-ui5/resources/computec/appengine/uibase/models/enums/HeadersContentTypeEnum.js +2 -0
  79. package/dist-ui5/resources/computec/appengine/uibase/models/enums/HeadersContentTypeEnum.js.map +1 -0
  80. package/dist-ui5/resources/computec/appengine/uibase/models/enums/StorageTypeEnum-dbg.js +16 -0
  81. package/dist-ui5/resources/computec/appengine/uibase/models/enums/StorageTypeEnum.js +2 -0
  82. package/dist-ui5/resources/computec/appengine/uibase/models/enums/StorageTypeEnum.js.map +1 -0
  83. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IAppEngineException-dbg.js +7 -0
  84. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IAppEngineException.js +2 -0
  85. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IAppEngineException.js.map +1 -0
  86. package/package.json +92 -0
@@ -0,0 +1,231 @@
1
+ "use strict";
2
+
3
+ sap.ui.define([], function () {
4
+ "use strict";
5
+
6
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
7
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
8
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
10
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
11
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
12
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
14
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
+ /**
16
+ * @experimental
17
+ * It is possible that this class will be removed or change name in the future.
18
+ * @class
19
+ * @abstract
20
+ * This abstract class is used to transform data from the server to business logic.
21
+ * It's currently marked as experimental, which means it may change in the future.
22
+ *
23
+ * **Static methods**:
24
+ *
25
+ * @static {function} `create` - This method is used to create a new instance of the class filled with the provided data.
26
+ * @static {function} `createMany` - This method is used to create multiple new instances of the class filled with the provided data.
27
+ *
28
+ * **Methods and properties**:
29
+ *
30
+ * @property {boolean} `USE_RAW_DATA` - This property is used to determine if the instance should use the raw data from the server.
31
+ * @property {function} `fillData` - This method is used to fill the instance with data from the server.
32
+ * @property {function} `clone` - This abstract method should be implemented in child classes to clone the instance.
33
+ * @property {function} `toJSON` - This method is used to remove the _rawData property from the object before converting it to JSON.
34
+ * @property {function} `getField` - This method is used to retrieve the value of a specific field from the _rawData object.
35
+ * @property {function} `cleanRaw` - This method is to reset the _rawData property to an empty object.
36
+ */
37
+ var BaseBusinessObject = /*#__PURE__*/function () {
38
+ function BaseBusinessObject() {
39
+ _classCallCheck(this, BaseBusinessObject);
40
+ /**
41
+ * This property is used to determine if the instance should use the raw data from the server.
42
+ * If set to true, the instance will store the raw data in the _rawData property.
43
+ * This property is set to false by default.
44
+ * @method getField - This method is used to retrieve the value of a specific field from the _rawData object.
45
+ */
46
+ _defineProperty(this, "USE_RAW_DATA", false);
47
+ /**
48
+ * This property is used to store the raw data from the server.
49
+ * It is an empty object by default.
50
+ * The property is only used if the USE_RAW_DATA property is set to true.
51
+ * _rawData can be usefull when you need initial data to be able to revert the object to its original state.
52
+ * @method getField - This method is used to retrieve the value of a specific field from the _rawData object.
53
+ * @private
54
+ * @type {Record<string, unknown>}
55
+ * @memberof BaseBusinessObject
56
+ */
57
+ _defineProperty(this, "_rawData", {});
58
+ }
59
+ return _createClass(BaseBusinessObject, [{
60
+ key: "cleanRaw",
61
+ value:
62
+ /**
63
+ * This method is to reset the _rawData property to an empty object.
64
+ *
65
+ * **Recommendations**
66
+ *
67
+ * - Use this method aware that you will lose the initial data of the object.
68
+ * - **IMPORTANT** The method is recommended to use in `fillData` method when you don't use `getField` method in `toJSON` method.
69
+ * - It is useful when you need to clean the raw data from the object or you want to optimize the memory usage.
70
+ * @returns {}
71
+ */
72
+ function cleanRaw() {
73
+ return this._rawData = {};
74
+ }
75
+ /**
76
+ * Creates a new instance of the class filled with the provided data.
77
+ *
78
+ * @template T The type of the instance to create.
79
+ * @param {new () => T} this The constructor of the class to create an instance of.
80
+ * @param {Record<string, unknown>} data The data to fill the instance with.
81
+ * @returns {T} The new instance of the class filled with the provided data.
82
+ *
83
+ * @example
84
+ * // Example data from the server
85
+ * const data = { Code: 'US', Name: 'United States' };
86
+ *
87
+ * // Create a new Country instance filled with the data
88
+ * const country = Country.create(data);
89
+ *
90
+ * console.log(country.Code); // 'US'
91
+ * console.log(country.Name); // 'United States'
92
+ */
93
+ }, {
94
+ key: "getField",
95
+ value:
96
+ /**
97
+ * This method is used to retrieve the value of a specific field from the _rawData object.
98
+ * It takes in a field parameter which represents the name of the field to retrieve.
99
+ * It tries to access the value of the field from the _rawData object using the provided field name.
100
+ * If the field exists, it returns the value casted to the specified type T.
101
+ * If the field does not exist or an error occurs, it returns null.
102
+ *
103
+ * @param field The name of the field to retrieve.
104
+ * @returns The value of the specified field casted to type T, or null if the field does not exist or an error occurs.
105
+ */
106
+ function getField(field) {
107
+ try {
108
+ return this._rawData[field];
109
+ } catch (error) {
110
+ return null;
111
+ }
112
+ }
113
+
114
+ /**
115
+ * Fills the instance with data from the server.
116
+ *
117
+ * @param {Record<string, unknown>} data - The data from the server.
118
+ * @returns {BaseBusinessObject} The instance of the class filled with the server data.
119
+ */
120
+ }, {
121
+ key: "fillData",
122
+ value: function fillData(data) {
123
+ var useRawData = this.USE_RAW_DATA;
124
+ var result = data || {};
125
+ result["_rawData"] = undefined;
126
+ Object.assign(this, result);
127
+ if (useRawData) this._rawData = result;
128
+ return this;
129
+ }
130
+
131
+ /**
132
+ * Creates a clone of the instance.
133
+ *
134
+ * It is more optimized than structuredClone method. It is recommended to use this method when you don't need to deep clone the object.
135
+ *
136
+ * **Recommendations**
137
+ *
138
+ * - Use this method when you don't need to deep clone the object.
139
+ * - It is useful when you need to create a new instance of the class filled with the same data as the original instance.
140
+ * - Remember that the method doesn't clone the lower level objects.
141
+ *
142
+ * @returns {BaseBusinessObject} A clone of the instance.
143
+ */
144
+ }, {
145
+ key: "clone",
146
+ value: function clone() {
147
+ return this.cloneInternal(this);
148
+ }
149
+
150
+ /**
151
+ * Creates a structured clone of the instance.
152
+ *
153
+ * Simple method that use `create` method to create a new instance of the class filled with the same data as the original instance.
154
+ *
155
+ * It is more expensive than the `clone` method. It is recommended to use this method when you need to deep clone the object.
156
+ *
157
+ * **Important**
158
+ * - Remember that you decide what nested objects is cloned. Please check `fillData` method.
159
+ * - `fillData` method give possibility to clone nested objects that what you need to clone.
160
+ *
161
+ * **Recommendations**
162
+ *
163
+ * - Use this method when you need to deep clone the object.
164
+ * - The method is more expensive than the `clone` method.
165
+ *
166
+ * @returns {BaseBusinessObject} A clone of the instance.
167
+ */
168
+ }, {
169
+ key: "structuredClone",
170
+ value: function structuredClone() {
171
+ return this.constructor.create(this);
172
+ }
173
+ }, {
174
+ key: "cloneInternal",
175
+ value: function cloneInternal(objectToClone) {
176
+ return Object.assign(new this.constructor(), objectToClone);
177
+ }
178
+
179
+ /**
180
+ * Remove the _rawData property from the object before converting it to JSON.
181
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
182
+ * @returns Record<string, unknown>
183
+ */
184
+ }, {
185
+ key: "toJSON",
186
+ value: function toJSON() {
187
+ return _objectSpread(_objectSpread({}, this), {}, {
188
+ _rawData: undefined,
189
+ USE_RAW_DATA: undefined
190
+ });
191
+ }
192
+ }], [{
193
+ key: "create",
194
+ value: function create(data) {
195
+ var instance = new this();
196
+ instance.fillData(data);
197
+ return instance;
198
+ }
199
+
200
+ /**
201
+ * Creates multiple new instances of the class filled with the provided data.
202
+ *
203
+ * @template T The type of the instances to create.
204
+ * @param {new () => T} this The constructor of the class to create instances of.
205
+ * @param {Record<string, unknown>[]} data The array of data to fill the instances with.
206
+ * @returns {T[]} The new instances of the class filled with the provided data.
207
+ *
208
+ * @example
209
+ * // Example array of data from the server
210
+ * const dataArray = [{ Code: 'US', Name: 'United States' }, { Code: 'CA', Name: 'Canada' }];
211
+ *
212
+ * // Create new Country instances filled with the data
213
+ * const countries = Country.createMany(dataArray);
214
+ *
215
+ * console.log(countries[0].Code); // 'US'
216
+ * console.log(countries[0].Name); // 'United States'
217
+ * console.log(countries[1].Code); // 'CA'
218
+ * console.log(countries[1].Name); // 'Canada'
219
+ */
220
+ }, {
221
+ key: "createMany",
222
+ value: function createMany(data) {
223
+ var _this = this;
224
+ return (data || []).map(function (item) {
225
+ return _this.create(item);
226
+ });
227
+ }
228
+ }]);
229
+ }();
230
+ return BaseBusinessObject;
231
+ });
@@ -0,0 +1,2 @@
1
+ "use strict";sap.ui.define([],function(){"use strict";function t(e){"@babel/helpers - typeof";return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function o(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e,r){return(e=a(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t){var e=c(t,"string");return"symbol"==typeof e?e:e+""}function c(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,r||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}var f=function(){function t(){n(this,t);u(this,"USE_RAW_DATA",false);u(this,"_rawData",{})}return o(t,[{key:"cleanRaw",value:function t(){return this._rawData={}}},{key:"getField",value:function t(e){try{return this._rawData[e]}catch(t){return null}}},{key:"fillData",value:function t(e){var r=this.USE_RAW_DATA;var n=e||{};n["_rawData"]=undefined;Object.assign(this,n);if(r)this._rawData=n;return this}},{key:"clone",value:function t(){return this.cloneInternal(this)}},{key:"structuredClone",value:function t(){return this.constructor.create(this)}},{key:"cloneInternal",value:function t(e){return Object.assign(new this.constructor,e)}},{key:"toJSON",value:function t(){return r(r({},this),{},{_rawData:undefined,USE_RAW_DATA:undefined})}}],[{key:"create",value:function t(e){var r=new this;r.fillData(e);return r}},{key:"createMany",value:function t(e){var r=this;return(e||[]).map(function(t){return r.create(t)})}}])}();return f});
2
+ //# sourceMappingURL=BaseBusinessObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseBusinessObject.js","names":["sap","ui","define","_typeof","o","Symbol","iterator","constructor","prototype","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_classCallCheck","a","n","TypeError","_defineProperties","configurable","writable","_toPropertyKey","key","_createClass","value","i","_toPrimitive","toPrimitive","call","String","Number","BaseBusinessObject","this","cleanRaw","_rawData","getField","field","error","fillData","data","useRawData","USE_RAW_DATA","result","undefined","assign","clone","cloneInternal","structuredClone","create","objectToClone","toJSON","instance","createMany","_this","map","item"],"sources":["BaseBusinessObject-dbg.js"],"mappings":"AAAA,aAEAA,IAAIC,GAAGC,OAAO,GAAI,WAChB,aAEA,SAASC,EAAQC,GAAK,0BAA2B,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CAAG,EAAGD,EAAQC,EAAI,CAC7T,SAASK,EAAQC,EAAGC,GAAK,IAAIC,EAAIC,OAAOC,KAAKJ,GAAI,GAAIG,OAAOE,sBAAuB,CAAE,IAAIX,EAAIS,OAAOE,sBAAsBL,GAAIC,IAAMP,EAAIA,EAAEY,OAAO,SAAUL,GAAK,OAAOE,OAAOI,yBAAyBP,EAAGC,GAAGO,UAAY,IAAKN,EAAEO,KAAKC,MAAMR,EAAGR,EAAI,CAAE,OAAOQ,CAAG,CAC9P,SAASS,EAAcX,GAAK,IAAK,IAAIC,EAAI,EAAGA,EAAIW,UAAUC,OAAQZ,IAAK,CAAE,IAAIC,EAAI,MAAQU,UAAUX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ACHrB,IAAK,SACLE,MAAO,SAASwB,EAAOT,GACrB,IAAIY,EAAW,IAAInB,KACnBmB,EAASb,SAASC,GAClB,OAAOY,CACT,GAsBC,CACD7B,IAAK,aACLE,MAAO,SAAS4B,EAAWb,GACzB,IAAIc,EAAQrB,KACZ,OAAQO,GAAQ,IAAIe,IAAI,SAAUC,GAChC,OAAOF,EAAML,OAAOO,EACtB,EACF,IAEJ,CAhMsC,GAiMtC,OAAOxB,CACT","ignoreList":[]}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ sap.ui.define(["./enums/StorageTypeEnum"], function (___enums_StorageTypeEnum) {
4
+ "use strict";
5
+
6
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
7
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
8
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
9
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
10
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
11
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
12
+ var StorageTypeEnum = ___enums_StorageTypeEnum["StorageTypeEnum"];
13
+ var LocalStorage = /*#__PURE__*/function () {
14
+ function LocalStorage() {
15
+ _classCallCheck(this, LocalStorage);
16
+ }
17
+ return _createClass(LocalStorage, null, [{
18
+ key: "put",
19
+ value: function put(key, value) {
20
+ var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : StorageTypeEnum.session;
21
+ var valueToStore = this._prepareValueForStorage(value);
22
+ if (valueToStore === null) return;
23
+ if (type === StorageTypeEnum.session) {
24
+ window.sessionStorage.setItem(key, valueToStore);
25
+ } else if (type == StorageTypeEnum.local) {
26
+ window.localStorage.setItem(key, valueToStore);
27
+ }
28
+ }
29
+ }, {
30
+ key: "get",
31
+ value: function get(key) {
32
+ var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : StorageTypeEnum.session;
33
+ var value;
34
+ switch (type) {
35
+ case StorageTypeEnum.session:
36
+ value = window.sessionStorage.getItem(key);
37
+ break;
38
+ case StorageTypeEnum.local:
39
+ value = window.localStorage.getItem(key);
40
+ break;
41
+ default:
42
+ return null;
43
+ }
44
+ if (value === null) return null;
45
+ return this._parseValue(value);
46
+ }
47
+ }, {
48
+ key: "remove",
49
+ value: function remove(key) {
50
+ var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : StorageTypeEnum.session;
51
+ if (type === StorageTypeEnum.session) {
52
+ window.sessionStorage.removeItem(key);
53
+ } else if (type === StorageTypeEnum.local) {
54
+ window.localStorage.removeItem(key);
55
+ }
56
+ }
57
+ }, {
58
+ key: "_prepareValueForStorage",
59
+ value: function _prepareValueForStorage(value) {
60
+ if (_typeof(value) === "object" && value !== null) return JSON.stringify(value);
61
+ return value;
62
+ }
63
+ }, {
64
+ key: "_parseValue",
65
+ value: function _parseValue(str) {
66
+ try {
67
+ JSON.parse(str);
68
+ return JSON.parse(str);
69
+ } catch (_unused) {}
70
+ return str;
71
+ }
72
+ }]);
73
+ }();
74
+ return LocalStorage;
75
+ });
@@ -0,0 +1,2 @@
1
+ "use strict";sap.ui.define(["./enums/StorageTypeEnum"],function(e){"use strict";function t(e){"@babel/helpers - typeof";return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){var t=u(e,"string");return"symbol"==typeof t?t:t+""}function u(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}var a=e["StorageTypeEnum"];var l=function(){function e(){r(this,e)}return o(e,null,[{key:"put",value:function e(t,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:a.session;var o=this._prepareValueForStorage(r);if(o===null)return;if(n===a.session){window.sessionStorage.setItem(t,o)}else if(n==a.local){window.localStorage.setItem(t,o)}}},{key:"get",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:a.session;var n;switch(r){case a.session:n=window.sessionStorage.getItem(t);break;case a.local:n=window.localStorage.getItem(t);break;default:return null}if(n===null)return null;return this._parseValue(n)}},{key:"remove",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:a.session;if(r===a.session){window.sessionStorage.removeItem(t)}else if(r===a.local){window.localStorage.removeItem(t)}}},{key:"_prepareValueForStorage",value:function e(r){if(t(r)==="object"&&r!==null)return JSON.stringify(r);return r}},{key:"_parseValue",value:function e(t){try{JSON.parse(t);return JSON.parse(t)}catch(e){}return t}}])}();return l});
2
+ //# sourceMappingURL=LocalStorage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalStorage.js","names":["sap","ui","define","___enums_StorageTypeEnum","_typeof","o","Symbol","iterator","constructor","prototype","_classCallCheck","a","n","TypeError","_defineProperties","e","r","t","length","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","i","_toPrimitive","toPrimitive","call","String","Number","StorageTypeEnum","LocalStorage","this","value","put","type","arguments","undefined","session","valueToStore","_prepareValueForStorage","window","sessionStorage","setItem","local","localStorage","get","getItem","_parseValue","remove","removeItem","JSON","stringify","str","parse","_unused"],"sources":["LocalStorage-dbg.js"],"mappings":"AAAA,aAEAA,IAAIC,GAAGC,OAAO,CAAC,2BAA4B,SAAUC,GACnD,aAEA,SAASC,EAAQC,GAAK,0BAA2B,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CAAG,EAAGD,EAAQC,EAAI,CAC7T,SAASK,EAAgBC,EAAGC,GAAK,KAAMD,aAAaC,GAAI,MAAM,IAAIC,UAAU,oCAAsC,CAClH,SAASC,EAAkBC,EAAGC,GAAK,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAEE,OAAQD,IAAK,CAAE,IAAIZ,EAAIW,EAAEC,GAAIZ,EAAEc,WAAad,EAAEc,aAAe,EAAGd,EAAEe,cAAgB,EAAG,UAAWf,IAAMA,EAAEgB,UAAY,GAAIC,OAAOC,eAAeR,EAAGS,EAAenB,EAAEoB,KAAMpB,EAAI,CAAE,CACvO,SAASqB,EAAaX,EAAGC,EAAGC,GAAK,OAAOD,GAAKF,EAAkBC,EAAEN,UAAWO,GAAIC,GAAKH,EAAkBC,EAAGE,GAAIK,OAAOC,eAAeR,EAAG,YAAa,CAAEM,UAAW,IAAMN,CAAG,CAC1K,SAASS,EAAeP,GAAK,IAAIU,EAAIC,EAAaX,EAAG,UAAW,MAAO,iBAAmBU,EAAIA,EAAIA,EAAI,EAAI,CAC1G,SA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Ia,EAAOC,UAAUrB,OAAS,GAAKqB,UAAU,KAAOC,UAAYD,UAAU,GAAKN,EAAgBQ,QAC/F,GAAIH,IAASL,EAAgBQ,QAAS,CACpCG,OAAOC,eAAeQ,WAAW5B,EACnC,MAAO,GAAIa,IAASL,EAAgBc,MAAO,CACzCH,OAAOI,aAAaK,WAAW5B,EACjC,CACF,GACC,CACDA,IAAK,0BACLW,MAAO,SAASO,EAAwBP,GACtC,GAAIhC,EAAQgC,KAAW,UAAYA,IAAU,KAAM,OAAOkB,KAAKC,UAAUnB,GACzE,OAAOA,CACT,GACC,CACDX,IAAK,cACLW,MAAO,SAASe,EAAYK,GAC1B,IACEF,KAAKG,MAAMD,GACX,OAAOF,KAAKG,MAAMD,EACpB,CAAE,MAAOE,GAAU,CACnB,OAAOF,CACT,IAEJ,CA5DgC,GA6DhC,OAAOtB,CACT","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ sap.ui.define([], function () {
4
+ "use strict";
5
+
6
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
7
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
9
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ var Session = /*#__PURE__*/_createClass(function Session() {
12
+ _classCallCheck(this, Session);
13
+ });
14
+ return Session;
15
+ });
@@ -0,0 +1,2 @@
1
+ "use strict";sap.ui.define([],function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function e(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(t){var e=n(t,"string");return"symbol"==typeof e?e:e+""}function n(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=e(function t(){i(this,t)});return o});
2
+ //# sourceMappingURL=Session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Session.js","names":["sap","ui","define","_defineProperties","e","r","t","length","o","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","prototype","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","_classCallCheck","a","n","Session","this"],"sources":["Session-dbg.js"],"mappings":"AAAA,aAEAA,IAAIC,GAAGC,OAAO,GAAI,WAChB,aAEA,SAASC,EAAkBC,EAAGC,GAAK,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAEE,OAAQD,IAAK,CAAE,IAAIE,EAAIH,EAAEC,GAAIE,EAAEC,WAAaD,EAAEC,aAAe,EAAGD,EAAEE,cAAgB,EAAG,UAAWF,IAAMA,EAAEG,UAAY,GAAIC,OAAOC,eAAeT,EAAGU,EAAeN,EAAEO,KAAMP,EAAI,CAAE,CACvO,SAASQ,EAAaZ,EAAGC,EAAGC,GAAK,OAAOD,GAAKF,EAAkBC,EAAEa,UAAWZ,GAAIC,GAAKH,EAAkBC,EAAGE,GAAIM,OAAOC,eAAeT,EAAG,YAAa,CAAEO,UAAW,IAAMP,CAAG,CAC1K,SAASU,EAAeR,GAAK,IAAIY,EAAIC,EAAab,EAAG,UAAW,MAAO,iBAAmBY,EAAIA,EAAIA,EAAI,EAAI,CAC1G,SAASC,EAAab,EAAGD,GAAK,GAAI,iBAAmBC,IAAMA,EAAG,OAAOA,EAAG,IAAIF,EAAIE,EAAEc,OAAOC,aAAc,QAAS,IAAMjB,EAAG,CAAE,IAAIc,EAAId,EAAEkB,KAAKhB,EAAGD,GAAK,WAAY,GAAI,iBAAmBa,EAAG,OAAOA,EAAG,MAAM,IAAIK,UAAU,+CAAiD,CAAE,OAAQ,WAAalB,EAAImB,OAASC,QAAQnB,EAAI,CACvT,SAASoB,EAAgBC,EAAGC,GAAK,KAAMD,aAAaC,GAAI,MAAM,IAAIL,UAAU,oCAAsC,CAClH,IAAIM,EAAuBb,EAAa,SAASa,IAC/CH,EAAgBI,KAAMD,EACxB,GACA,OAAOA,CACT","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ sap.ui.define([], function () {
4
+ "use strict";
5
+
6
+ var HeadersContentTypeEnum = /*#__PURE__*/function (HeadersContentTypeEnum) {
7
+ HeadersContentTypeEnum["Json"] = "application/json";
8
+ HeadersContentTypeEnum["Text"] = "text/plain";
9
+ HeadersContentTypeEnum["OctetStream"] = "application/octet-stream";
10
+ HeadersContentTypeEnum["Null"] = "null";
11
+ return HeadersContentTypeEnum;
12
+ }(HeadersContentTypeEnum || {});
13
+ return HeadersContentTypeEnum;
14
+ });
@@ -0,0 +1,2 @@
1
+ "use strict";sap.ui.define([],function(){"use strict";var t=function(t){t["Json"]="application/json";t["Text"]="text/plain";t["OctetStream"]="application/octet-stream";t["Null"]="null";return t}(t||{});return t});
2
+ //# sourceMappingURL=HeadersContentTypeEnum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeadersContentTypeEnum.js","names":["sap","ui","define","HeadersContentTypeEnum"],"sources":["HeadersContentTypeEnum-dbg.js"],"mappings":"AAAA,aAEAA,IAAIC,GAAGC,OAAO,GAAI,WAChB,aAEA,IAAIC,EAAsC,SAAUA,GAClDA,EAAuB,QAAU,mBACjCA,EAAuB,QAAU,aACjCA,EAAuB,eAAiB,2BACxCA,EAAuB,QAAU,OACjC,OAAOA,CACT,CAN0C,CAMxCA,GAA0B,CAAC,GAC7B,OAAOA,CACT","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ sap.ui.define([], function () {
4
+ "use strict";
5
+
6
+ var StorageTypeEnum = /*#__PURE__*/function (StorageTypeEnum) {
7
+ StorageTypeEnum[StorageTypeEnum["session"] = 0] = "session";
8
+ StorageTypeEnum[StorageTypeEnum["local"] = 1] = "local";
9
+ return StorageTypeEnum;
10
+ }(StorageTypeEnum || {});
11
+ var __exports = {
12
+ __esModule: true
13
+ };
14
+ __exports.StorageTypeEnum = StorageTypeEnum;
15
+ return __exports;
16
+ });
@@ -0,0 +1,2 @@
1
+ "use strict";sap.ui.define([],function(){"use strict";var e=function(e){e[e["session"]=0]="session";e[e["local"]=1]="local";return e}(e||{});var s={__esModule:true};s.StorageTypeEnum=e;return s});
2
+ //# sourceMappingURL=StorageTypeEnum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StorageTypeEnum.js","names":["sap","ui","define","StorageTypeEnum","__exports","__esModule"],"sources":["StorageTypeEnum-dbg.js"],"mappings":"AAAA,aAEAA,IAAIC,GAAGC,OAAO,GAAI,WAChB,aAEA,IAAIC,EAA+B,SAAUA,GAC3CA,EAAgBA,EAAgB,WAAa,GAAK,UAClDA,EAAgBA,EAAgB,SAAW,GAAK,QAChD,OAAOA,CACT,CAJmC,CAIjCA,GAAmB,CAAC,GACtB,IAAIC,EAAY,CACdC,WAAY,MAEdD,EAAUD,gBAAkBA,EAC5B,OAAOC,CACT","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ sap.ui.define([], function () {
4
+ "use strict";
5
+
6
+ return IAppEngineException;
7
+ });
@@ -0,0 +1,2 @@
1
+ "use strict";sap.ui.define([],function(){"use strict";return IAppEngineException});
2
+ //# sourceMappingURL=IAppEngineException.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAppEngineException.js","names":["sap","ui","define","IAppEngineException"],"sources":["IAppEngineException-dbg.js"],"mappings":"AAAA,aAEAA,IAAIC,GAAGC,OAAO,GAAI,WAChB,aAEA,OAAOC,mBACT","ignoreList":[]}
package/package.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "@computec/uibase",
3
+ "main": "dist/index.js",
4
+ "module": "NodeNext",
5
+ "moduleResolution": "NodeNext",
6
+ "version": "1.0.2",
7
+ "description": "",
8
+ "types": "dist/index.d.ts",
9
+ "scripts": {
10
+ "copy:forprod": "copyfiles --all src-gen/**/* src-gen/computec/appengine/uibase --up 1 && node scripts/clean-except.js",
11
+ "start": "node scripts/generate-index.js && tsc --build",
12
+ "watch": "nodemon --watch src/ --ignore src/index.ts --ext js,ts --exec \"node scripts/generate-index.js && tsc --build\"",
13
+ "watch:ts": "babel src --out-dir src-gen --source-maps inline --extensions \".ts,.js\" --copy-files --include-dotfiles --config-file ./babel.config.json --presets=@babel/preset-env,transform-ui5,@babel/preset-typescript --watch",
14
+ "docs": "typedoc --plugin typedoc-plugin-markdown && typedoc --out web-docs --theme default",
15
+ "build": "npm run build:js && npm run build:ui5",
16
+ "build:js": "npm run start && npm run docs",
17
+ "build:ui5:ts": "rimraf src-gen && babel src --out-dir src-gen --extensions \".ts,.js\" --copy-files --include-dotfiles --config-file ./babel.config.json --presets=@babel/preset-env,transform-ui5,@babel/preset-typescript && npm run copy:forprod",
18
+ "build:ui5": "tsc --project tsconfig.ui5.json && npm run build:ui5:ts && ui5 build --clean-dest --loglevel error --all --dest dist-ui5",
19
+ "lint": "eslint --ext .ts,.js --max-warnings=0 .",
20
+ "prettier": "prettier --write ."
21
+ },
22
+ "keywords": [],
23
+ "author": {
24
+ "name": "CompuTec S.A.",
25
+ "url": "https://www.computec.pl"
26
+ },
27
+ "license": "Copyright (c) CompuTec S.A.2025",
28
+ "files": [
29
+ "dist",
30
+ "dist-ui5"
31
+ ],
32
+ "devDependencies": {
33
+ "@babel/cli": "^7.27.0",
34
+ "@babel/core": "^7.26.10",
35
+ "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
36
+ "@babel/preset-env": "^7.26.9",
37
+ "@babel/preset-typescript": "^7.27.0",
38
+ "@microsoft/signalr": "^8.0.7",
39
+ "@sapui5/ts-types-esm": "^1.134.1",
40
+ "@sapui5/types": "^1.134.1",
41
+ "@types/chrome": "^0.0.317",
42
+ "@types/qunit": "2.19.12",
43
+ "@types/sinon": "^17.0.4",
44
+ "@typescript-eslint/eslint-plugin": "^8.29.1",
45
+ "@typescript-eslint/parser": "^8.29.1",
46
+ "@ui5/cli": "^4.0.14",
47
+ "@ui5/ts-interface-generator": "^0.10.0",
48
+ "babel-preset-transform-ui5": "^7.7.0",
49
+ "clean-webpack-plugin": "^4.0.0",
50
+ "copy-webpack-plugin": "^13.0.0",
51
+ "copyfiles": "^2.4.1",
52
+ "eslint": "^9.24.0",
53
+ "eslint-webpack-plugin": "^5.0.0",
54
+ "karma": "^6.4.4",
55
+ "karma-chrome-launcher": "^3.2.0",
56
+ "karma-cli": "^2.0.0",
57
+ "karma-ui5": "^4.1.0",
58
+ "mini-css-extract-plugin": "^2.9.2",
59
+ "nodemon": "^3.1.9",
60
+ "npm-run-all": "^4.1.5",
61
+ "rimraf": "^6.0.1",
62
+ "sinon": "^20.0.0",
63
+ "ts-loader": "^9.5.2",
64
+ "typedoc": "^0.28.3",
65
+ "typescript": "^5.8.3",
66
+ "webpack": "^5.99.5",
67
+ "webpack-cli": "^6.0.1",
68
+ "webpack-dev-server": "^5.2.1",
69
+ "webpack-watched-glob-entries-plugin": "^3.0.2"
70
+ },
71
+ "exports": {
72
+ ".": {
73
+ "import": "./dist/index.js",
74
+ "types": "./dist/index.d.ts"
75
+ },
76
+ "./models/*": {
77
+ "import": "./dist/models/*.js",
78
+ "types": "./dist/models/*.d.ts"
79
+ },
80
+ "./helpers/*": {
81
+ "import": "./dist/helpers/*.js",
82
+ "types": "./dist/helpers/*.d.ts"
83
+ },
84
+ "./communication/*": {
85
+ "import": "./dist/communication/*.js",
86
+ "types": "./dist/communication/*.d.ts"
87
+ }
88
+ },
89
+ "dependencies": {
90
+ "typedoc-plugin-markdown": "^4.6.2"
91
+ }
92
+ }