@computec/uibase 1.0.4 → 1.0.7

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 (147) hide show
  1. package/dist/communication/ConnectionOptions.d.ts.map +1 -1
  2. package/dist/communication/HttpClient.d.ts +1 -0
  3. package/dist/communication/HttpClient.d.ts.map +1 -1
  4. package/dist/communication/HttpClient.js +6 -1
  5. package/dist/communication/IBaseHttpClientOptions.d.ts +1 -0
  6. package/dist/communication/IBaseHttpClientOptions.d.ts.map +1 -1
  7. package/dist/communication/IConnectionInfo.d.ts +0 -1
  8. package/dist/communication/IConnectionInfo.d.ts.map +1 -1
  9. package/dist/communication/ISignalRHubClient.d.ts.map +1 -1
  10. package/dist/communication/SignalRHubClient.d.ts.map +1 -1
  11. package/dist/helpers/ErrorHelper.d.ts +1 -1
  12. package/dist/helpers/ErrorHelper.d.ts.map +1 -1
  13. package/dist/helpers/ErrorHelper.js +6 -0
  14. package/dist/helpers/HttpClientHelper.d.ts.map +1 -1
  15. package/dist/helpers/HttpClientHelper.js +15 -4
  16. package/dist/index.d.ts +2 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +4 -1
  19. package/dist/models/AppEngineException.d.ts +14 -2
  20. package/dist/models/AppEngineException.d.ts.map +1 -1
  21. package/dist/models/AppEngineException.js +24 -3
  22. package/dist/models/BaseError.d.ts +51 -0
  23. package/dist/models/BaseError.d.ts.map +1 -0
  24. package/dist/models/BaseError.js +53 -0
  25. package/dist/models/DocumentedException.d.ts +22 -0
  26. package/dist/models/DocumentedException.d.ts.map +1 -0
  27. package/dist/models/DocumentedException.js +48 -0
  28. package/dist/models/HttpResponse.d.ts +7 -0
  29. package/dist/models/HttpResponse.d.ts.map +1 -0
  30. package/dist/models/HttpResponse.js +9 -0
  31. package/dist/models/IOdataResponse.d.ts +6 -0
  32. package/dist/models/IOdataResponse.d.ts.map +1 -0
  33. package/dist/models/IOdataResponse.js +2 -0
  34. package/dist/models/OdataError.d.ts +56 -0
  35. package/dist/models/OdataError.d.ts.map +1 -0
  36. package/dist/models/OdataError.js +88 -0
  37. package/dist/models/ProblemDetails.d.ts +13 -3
  38. package/dist/models/ProblemDetails.d.ts.map +1 -1
  39. package/dist/models/ProblemDetails.js +19 -4
  40. package/dist/models/Session.d.ts +2 -1
  41. package/dist/models/Session.d.ts.map +1 -1
  42. package/dist/models/Session.js +5 -1
  43. package/dist/models/UserInfo.d.ts +27 -1
  44. package/dist/models/UserInfo.d.ts.map +1 -1
  45. package/dist/models/ValidationProblemDetails.d.ts +10 -1
  46. package/dist/models/ValidationProblemDetails.d.ts.map +1 -1
  47. package/dist/models/ValidationProblemDetails.js +13 -2
  48. package/dist/models/Version.d.ts +21 -1
  49. package/dist/models/Version.d.ts.map +1 -1
  50. package/dist/models/Version.js +137 -14
  51. package/dist/models/enums/HeadersContentTypeEnum.d.ts +7 -0
  52. package/dist/models/enums/HeadersContentTypeEnum.d.ts.map +1 -1
  53. package/dist/models/enums/HeadersContentTypeEnum.js +7 -0
  54. package/dist/models/interfaces/IAppEngineException.d.ts +52 -0
  55. package/dist/models/interfaces/IAppEngineException.d.ts.map +1 -1
  56. package/dist/models/interfaces/IDocumentedException.d.ts +60 -0
  57. package/dist/models/interfaces/IDocumentedException.d.ts.map +1 -0
  58. package/dist/models/interfaces/IDocumentedException.js +2 -0
  59. package/dist/models/interfaces/IHttpResponse.d.ts +5 -0
  60. package/dist/models/interfaces/IHttpResponse.d.ts.map +1 -0
  61. package/dist/models/interfaces/IHttpResponse.js +2 -0
  62. package/dist/models/interfaces/IOdataError.d.ts +182 -0
  63. package/dist/models/interfaces/IOdataError.d.ts.map +1 -0
  64. package/dist/models/interfaces/IOdataError.js +2 -0
  65. package/dist/models/interfaces/IProblemDetails.d.ts +85 -0
  66. package/dist/models/interfaces/IProblemDetails.d.ts.map +1 -1
  67. package/dist/models/interfaces/IValidationProblemDetails.d.ts +76 -0
  68. package/dist/models/interfaces/IValidationProblemDetails.d.ts.map +1 -1
  69. package/dist-ui5/resources/computec/appengine/uibase/.library +1 -1
  70. package/dist-ui5/resources/computec/appengine/uibase/communication/ConnectionOptions-dbg.js +1 -0
  71. package/dist-ui5/resources/computec/appengine/uibase/communication/ConnectionOptions.js.map +1 -1
  72. package/dist-ui5/resources/computec/appengine/uibase/communication/HttpClient-dbg.js +41 -22
  73. package/dist-ui5/resources/computec/appengine/uibase/communication/HttpClient.js +1 -1
  74. package/dist-ui5/resources/computec/appengine/uibase/communication/HttpClient.js.map +1 -1
  75. package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRHubClient-dbg.js +26 -28
  76. package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRHubClient.js +1 -1
  77. package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRHubClient.js.map +1 -1
  78. package/dist-ui5/resources/computec/appengine/uibase/helpers/ErrorHelper-dbg.js +7 -1
  79. package/dist-ui5/resources/computec/appengine/uibase/helpers/ErrorHelper.js +1 -1
  80. package/dist-ui5/resources/computec/appengine/uibase/helpers/ErrorHelper.js.map +1 -1
  81. package/dist-ui5/resources/computec/appengine/uibase/helpers/HttpClientHelper-dbg.js +76 -85
  82. package/dist-ui5/resources/computec/appengine/uibase/helpers/HttpClientHelper.js +1 -1
  83. package/dist-ui5/resources/computec/appengine/uibase/helpers/HttpClientHelper.js.map +1 -1
  84. package/dist-ui5/resources/computec/appengine/uibase/index-dbg.js +55 -0
  85. package/dist-ui5/resources/computec/appengine/uibase/index.js +2 -0
  86. package/dist-ui5/resources/computec/appengine/uibase/index.js.map +1 -0
  87. package/dist-ui5/resources/computec/appengine/uibase/library-dbg.js +1 -1
  88. package/dist-ui5/resources/computec/appengine/uibase/library-preload.js +53 -11
  89. package/dist-ui5/resources/computec/appengine/uibase/library-preload.js.map +1 -1
  90. package/dist-ui5/resources/computec/appengine/uibase/library.js +1 -1
  91. package/dist-ui5/resources/computec/appengine/uibase/manifest.json +1 -1
  92. package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineConfiguration-dbg.js +31 -0
  93. package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineConfiguration.js +2 -0
  94. package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineConfiguration.js.map +1 -0
  95. package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineException-dbg.js +46 -7
  96. package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineException.js +1 -1
  97. package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineException.js.map +1 -1
  98. package/dist-ui5/resources/computec/appengine/uibase/models/BaseError-dbg.js +92 -0
  99. package/dist-ui5/resources/computec/appengine/uibase/models/BaseError.js +2 -0
  100. package/dist-ui5/resources/computec/appengine/uibase/models/BaseError.js.map +1 -0
  101. package/dist-ui5/resources/computec/appengine/uibase/models/CompanyInfo-dbg.js +59 -0
  102. package/dist-ui5/resources/computec/appengine/uibase/models/CompanyInfo.js +2 -0
  103. package/dist-ui5/resources/computec/appengine/uibase/models/CompanyInfo.js.map +1 -0
  104. package/dist-ui5/resources/computec/appengine/uibase/models/DocumentedException-dbg.js +75 -0
  105. package/dist-ui5/resources/computec/appengine/uibase/models/DocumentedException.js +2 -0
  106. package/dist-ui5/resources/computec/appengine/uibase/models/DocumentedException.js.map +1 -0
  107. package/dist-ui5/resources/computec/appengine/uibase/models/HttpResponse-dbg.js +17 -0
  108. package/dist-ui5/resources/computec/appengine/uibase/models/HttpResponse.js +2 -0
  109. package/dist-ui5/resources/computec/appengine/uibase/models/HttpResponse.js.map +1 -0
  110. package/dist-ui5/resources/computec/appengine/uibase/models/IOdataResponse-dbg.js +7 -0
  111. package/dist-ui5/resources/computec/appengine/uibase/models/IOdataResponse.js +2 -0
  112. package/dist-ui5/resources/computec/appengine/uibase/models/IOdataResponse.js.map +1 -0
  113. package/dist-ui5/resources/computec/appengine/uibase/models/OdataError-dbg.js +122 -0
  114. package/dist-ui5/resources/computec/appengine/uibase/models/OdataError.js +2 -0
  115. package/dist-ui5/resources/computec/appengine/uibase/models/OdataError.js.map +1 -0
  116. package/dist-ui5/resources/computec/appengine/uibase/models/ProblemDetails-dbg.js +29 -7
  117. package/dist-ui5/resources/computec/appengine/uibase/models/ProblemDetails.js +1 -1
  118. package/dist-ui5/resources/computec/appengine/uibase/models/ProblemDetails.js.map +1 -1
  119. package/dist-ui5/resources/computec/appengine/uibase/models/Session-dbg.js +20 -4
  120. package/dist-ui5/resources/computec/appengine/uibase/models/Session.js +1 -1
  121. package/dist-ui5/resources/computec/appengine/uibase/models/Session.js.map +1 -1
  122. package/dist-ui5/resources/computec/appengine/uibase/models/UserInfo-dbg.js +31 -0
  123. package/dist-ui5/resources/computec/appengine/uibase/models/UserInfo.js +2 -0
  124. package/dist-ui5/resources/computec/appengine/uibase/models/UserInfo.js.map +1 -0
  125. package/dist-ui5/resources/computec/appengine/uibase/models/ValidationProblemDetails-dbg.js +15 -2
  126. package/dist-ui5/resources/computec/appengine/uibase/models/ValidationProblemDetails.js +1 -1
  127. package/dist-ui5/resources/computec/appengine/uibase/models/ValidationProblemDetails.js.map +1 -1
  128. package/dist-ui5/resources/computec/appengine/uibase/models/Version-dbg.js +253 -0
  129. package/dist-ui5/resources/computec/appengine/uibase/models/Version.js +2 -0
  130. package/dist-ui5/resources/computec/appengine/uibase/models/Version.js.map +1 -0
  131. package/dist-ui5/resources/computec/appengine/uibase/models/enums/HeadersContentTypeEnum-dbg.js +7 -0
  132. package/dist-ui5/resources/computec/appengine/uibase/models/enums/HeadersContentTypeEnum.js +1 -1
  133. package/dist-ui5/resources/computec/appengine/uibase/models/enums/HeadersContentTypeEnum.js.map +1 -1
  134. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IAppEngineConfiguration-dbg.js +7 -0
  135. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IAppEngineConfiguration.js +2 -0
  136. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IAppEngineConfiguration.js.map +1 -0
  137. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IDocumentedException-dbg.js +7 -0
  138. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IDocumentedException.js +2 -0
  139. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IDocumentedException.js.map +1 -0
  140. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IHttpResponse-dbg.js +1 -0
  141. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IHttpResponse.js +2 -0
  142. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IHttpResponse.js.map +1 -0
  143. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IOdataError-dbg.js +1 -0
  144. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IOdataError.js +2 -0
  145. package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IOdataError.js.map +1 -0
  146. package/package.json +12 -6
  147. package/ui5.yaml +8 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ConnectionOptions.d.ts","sourceRoot":"","sources":["../../src/communication/ConnectionOptions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAM,iBAAiB;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE1C;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;IAE3C;;OAEG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;IAEzC;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IAErC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"ConnectionOptions.d.ts","sourceRoot":"","sources":["../../src/communication/ConnectionOptions.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,cAAM,iBAAiB;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE1C;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;IAE3C;;OAEG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;IAEzC;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IAErC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAe,iBAAiB,CAAC"}
@@ -70,6 +70,7 @@ export default class HttpClient {
70
70
  * @param {IBasicHttpRequest} options - The options for the request.
71
71
  * @param {boolean} failHandling - If true, the request will be handled as a failure.
72
72
  * @param {boolean} handleBusy - If true, the request will be handled as a busy request.
73
+ * @param {boolean} includeResponse - If true, the full response will be returned and data (HttpResponse<T>) will be in the "data" property.
73
74
  * @param {MBusyIndicator} busyIndicator - The busy indicator to show.
74
75
  * @returns {Promise<T>} - The response of the request.
75
76
  * @example
@@ -1 +1 @@
1
- {"version":3,"file":"HttpClient.d.ts","sourceRoot":"","sources":["../../src/communication/HttpClient.ts"],"names":[],"mappings":"AAMA,OAAO,EACN,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,MAAM,0BAA0B,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,CAAC,OAAO,OAAO,UAAU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AAI,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,sBAA2B;IAcvF;;;;;;;OAOG;WACW,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,sBAA2B;IASpF;;;;;;OAMG;WACW,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,sBAA2B;IASxF;;;;;;;OAOG;WACW,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,sBAA2B;IAStF;;;;;;OAMG;WACW,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,sBAA2B;IAS1F;;;;;OAKG;WACW,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,sBAA2B;IAYzE,OAAO,CAAC,MAAM,CAAC,gBAAgB;CAW/B"}
@@ -17,6 +17,7 @@ const ErrorHelper_1 = __importDefault(require("../helpers/ErrorHelper"));
17
17
  const HeadersContentTypeEnum_1 = __importDefault(require("../models/enums/HeadersContentTypeEnum"));
18
18
  const HttpClientHelper_1 = __importDefault(require("../helpers/HttpClientHelper"));
19
19
  const HttpClientCacheOptions_1 = __importDefault(require("./HttpClientCacheOptions"));
20
+ const HttpResponse_1 = __importDefault(require("../models/HttpResponse"));
20
21
  /**
21
22
  * @class
22
23
  * @description This class is used to make requests to the server. It is a wrapper for the jQuery.ajax method.
@@ -101,6 +102,7 @@ class HttpClient {
101
102
  * @param {IBasicHttpRequest} options - The options for the request.
102
103
  * @param {boolean} failHandling - If true, the request will be handled as a failure.
103
104
  * @param {boolean} handleBusy - If true, the request will be handled as a busy request.
105
+ * @param {boolean} includeResponse - If true, the full response will be returned and data (HttpResponse<T>) will be in the "data" property.
104
106
  * @param {MBusyIndicator} busyIndicator - The busy indicator to show.
105
107
  * @returns {Promise<T>} - The response of the request.
106
108
  * @example
@@ -129,7 +131,7 @@ class HttpClient {
129
131
  const restOptions = Object.assign({ headers: new Headers({
130
132
  "Content-Type": "application/json",
131
133
  Accepted: "application/json",
132
- }) }, options);
134
+ }), includeResponse: false }, options);
133
135
  if (companyId) {
134
136
  this._appendToHeaders(restOptions.headers, "x-b1-companyid", companyId);
135
137
  }
@@ -145,6 +147,9 @@ class HttpClient {
145
147
  try {
146
148
  const response = yield fetch(url, restOptions);
147
149
  yield HttpClientHelper_1.default.validateResponse(response, restOptions);
150
+ if (options.includeResponse) {
151
+ return new HttpResponse_1.default(yield HttpClientHelper_1.default.fetchData(response), response);
152
+ }
148
153
  return HttpClientHelper_1.default.fetchData(response);
149
154
  }
150
155
  catch (e) {
@@ -2,6 +2,7 @@ import HttpClientCacheOptions from "./HttpClientCacheOptions";
2
2
  export interface IBaseHttpClientOptions {
3
3
  headers?: HeadersInit;
4
4
  cacheOptions?: HttpClientCacheOptions;
5
+ includeResponse?: boolean;
5
6
  }
6
7
  export interface IGetHttpClientOptions extends IBaseHttpClientOptions {
7
8
  useCache?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"IBaseHttpClientOptions.d.ts","sourceRoot":"","sources":["../../src/communication/IBaseHttpClientOptions.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAE9D,MAAM,WAAW,sBAAsB;IACtC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACtC;AAED,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IAEpE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,4BAA6B,SAAQ,qBAAqB;IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAkB,SAAQ,WAAW,EAAE,sBAAsB;IAC7E,GAAG,CAAC,EAAE,MAAM,CAAC;CACb"}
1
+ {"version":3,"file":"IBaseHttpClientOptions.d.ts","sourceRoot":"","sources":["../../src/communication/IBaseHttpClientOptions.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAE9D,MAAM,WAAW,sBAAsB;IACtC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IAEpE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,4BAA6B,SAAQ,qBAAqB;IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAkB,SAAQ,WAAW,EAAE,sBAAsB;IAC7E,GAAG,CAAC,EAAE,MAAM,CAAC;CACb"}
@@ -1,4 +1,3 @@
1
- import type * as signalR from "@microsoft/signalr";
2
1
  /**
3
2
  * Represents the connection information for a SignalR hub.
4
3
  * @interface IConnectionInfo
@@ -1 +1 @@
1
- {"version":3,"file":"IConnectionInfo.d.ts","sourceRoot":"","sources":["../../src/communication/IConnectionInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,WAAW,eAAe;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC,aAAa,CAAC;CAClC"}
1
+ {"version":3,"file":"IConnectionInfo.d.ts","sourceRoot":"","sources":["../../src/communication/IConnectionInfo.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,WAAW,eAAe;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC,aAAa,CAAC;CAClC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ISignalRHubClient.d.ts","sourceRoot":"","sources":["../../src/communication/ISignalRHubClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,OAAO,WAAW,iBAAiB;IACzC;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3B;;OAEG;IACH,IAAI,UAAU,IAAI,OAAO,CAAC,aAAa,CAAC;IAExC;;OAEG;IACH,IAAI,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAExC;;;OAGG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB;;OAEG;IACH,UAAU,IAAI,IAAI,CAAC;IAEnB;;;;OAIG;IACH,SAAS,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvD;;;;OAIG;IACH,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAAG,IAAI,CAAC;CACjE"}
1
+ {"version":3,"file":"ISignalRHubClient.d.ts","sourceRoot":"","sources":["../../src/communication/ISignalRHubClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,OAAO,WAAW,iBAAiB;IACzC;;;OAGG;IAC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,CAAC,KAAK,EAAE;IAI1D,GAAG,GAAI,YAAY,MAAM,UAAsC;cAEtD,UAAU,CAAC,OAAO,EAAE,mBAAmB;IAavD,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,kBAAkB;IA4B1B,OAAO,CAAC,iBAAiB;IAoBzB,OAAO,CAAC,oBAAoB;IAc5B,OAAO,CAAC,cAAc;CAOtB"}
@@ -10,6 +10,6 @@ export default class ErrorHelper {
10
10
  * @param error any object
11
11
  * @returns boolean
12
12
  */
13
- static isAppEngineException(error: any): error is import("../models/interfaces/IAppEngineException").default;
13
+ static isAppEngineException(error: any): error is import("..").IAppEngineException;
14
14
  }
15
15
  //# sourceMappingURL=ErrorHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/ErrorHelper.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,OAAO,WAAW;IAC/B;;;OAGG;WACW,QAAQ,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK;IAmBzC;;;;;OAKG;WACW,oBAAoB,CAAC,KAAK,EAAE,GAAG;CAG7C"}
1
+ {"version":3,"file":"ErrorHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/ErrorHelper.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,OAAO,WAAW;IAC/B;;;OAGG;WACW,QAAQ,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK;IAuBzC;;;;;OAKG;WACW,oBAAoB,CAAC,KAAK,EAAE,GAAG;CAG7C"}
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const ValidationProblemDetails_1 = __importDefault(require("../models/ValidationProblemDetails"));
7
7
  const AppEngineException_1 = __importDefault(require("../models/AppEngineException"));
8
8
  const ProblemDetails_1 = __importDefault(require("../models/ProblemDetails"));
9
+ const OdataError_1 = __importDefault(require("../models/OdataError"));
10
+ const DocumentedException_1 = __importDefault(require("../models/DocumentedException"));
9
11
  class ErrorHelper {
10
12
  /**
11
13
  * @description Helper method that try to return Error type
@@ -18,8 +20,12 @@ class ErrorHelper {
18
20
  return error;
19
21
  case typeof error === "string":
20
22
  return new Error(error);
23
+ case OdataError_1.default.is(error):
24
+ return OdataError_1.default.create(error).error;
21
25
  case ValidationProblemDetails_1.default.is(error):
22
26
  return ValidationProblemDetails_1.default.create(error).error;
27
+ case DocumentedException_1.default.is(error):
28
+ return new DocumentedException_1.default(error).error;
23
29
  case ProblemDetails_1.default.is(error):
24
30
  return ProblemDetails_1.default.create(error).error;
25
31
  case AppEngineException_1.default.is(error):
@@ -1 +1 @@
1
- {"version":3,"file":"HttpClientHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/HttpClientHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAK5E,MAAM,CAAC,OAAO,OAAO,gBAAgB;IACpC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,SAAmB;IACnD,MAAM,CAAC,QAAQ,CAAC,4BAA4B,gCAAgC;IAC5E;;OAEG;WACiB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB;IASvF;;OAEG;WACW,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;IAiBrF;;;;OAIG;WACW,SAAS,CAAC,QAAQ,EAAE,QAAQ;IAO1C;;;;OAIG;WACW,UAAU,CAAC,GAAG,CAAC,EAAE,MAAM;IAMrC;;;;OAIG;IACH,OAAc,kBAAkB,GAAI,OAAO,KAAK,aACc;IAG9D,OAAO,CAAC,MAAM,CAAC,qBAAqB;mBAqBf,0BAA0B;IAyB/C,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAU/B,OAAO,CAAC,MAAM,CAAC,WAAW;IAI1B,OAAO,CAAC,MAAM,CAAC,WAAW;IAI1B,OAAO,CAAC,MAAM,CAAC,WAAW;IAI1B,OAAO,CAAC,MAAM,CAAC,WAAW;mBAIL,cAAc;mBASd,cAAc;mBASd,cAAc;CASnC"}
1
+ {"version":3,"file":"HttpClientHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/HttpClientHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAI5E,MAAM,CAAC,OAAO,OAAO,gBAAgB;IACpC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,SAAmB;IACnD,MAAM,CAAC,QAAQ,CAAC,4BAA4B,gCAAgC;IAC5E;;OAEG;WACiB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB;IASvF;;OAEG;WACW,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;IAiBrF;;;;OAIG;WACW,SAAS,CAAC,QAAQ,EAAE,QAAQ;IAO1C;;;;OAIG;WACW,UAAU,CAAC,GAAG,CAAC,EAAE,MAAM;IAMrC;;;;OAIG;IACH,OAAc,kBAAkB,GAAI,OAAO,KAAK,aACc;IAG9D,OAAO,CAAC,MAAM,CAAC,qBAAqB;mBAqBf,0BAA0B;IAwB/C,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAU/B,OAAO,CAAC,MAAM,CAAC,WAAW;IAI1B,OAAO,CAAC,MAAM,CAAC,WAAW;IAoB1B,OAAO,CAAC,MAAM,CAAC,WAAW;IAI1B,OAAO,CAAC,MAAM,CAAC,WAAW;mBAIL,cAAc;mBASd,cAAc;mBASd,cAAc;CASnC"}
@@ -12,7 +12,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- const AppEngineException_1 = __importDefault(require("../models/AppEngineException"));
16
15
  const ErrorHelper_1 = __importDefault(require("./ErrorHelper"));
17
16
  const HeadersContentTypeEnum_1 = __importDefault(require("../models/enums/HeadersContentTypeEnum"));
18
17
  class HttpClientHelper {
@@ -101,8 +100,6 @@ class HttpClientHelper {
101
100
  throw new Error(`Method ${restOptions.method} not allowed for endpoint: ${restOptions.url}`);
102
101
  }
103
102
  const result = yield this.fetchData(response);
104
- if (AppEngineException_1.default.is(result))
105
- throw new AppEngineException_1.default(result).error;
106
103
  throw ErrorHelper_1.default.getError(result);
107
104
  });
108
105
  }
@@ -122,7 +119,21 @@ class HttpClientHelper {
122
119
  return type === null || type === void 0 ? void 0 : type.includes(HeadersContentTypeEnum_1.default.Json);
123
120
  }
124
121
  static _isFileType(type) {
125
- return type === null || type === void 0 ? void 0 : type.includes(HeadersContentTypeEnum_1.default.OctetStream);
122
+ if (!type)
123
+ return false;
124
+ // Explicitly exclude JSON and text types
125
+ if (this._isJsonType(type) || this._isTextType(type))
126
+ return false;
127
+ return (type.includes(HeadersContentTypeEnum_1.default.OctetStream) ||
128
+ type.includes(HeadersContentTypeEnum_1.default.Pdf) ||
129
+ type.includes(HeadersContentTypeEnum_1.default.Csv) ||
130
+ type.includes(HeadersContentTypeEnum_1.default.Excel) ||
131
+ type.includes(HeadersContentTypeEnum_1.default.ExcelOpenXml) ||
132
+ type.includes(HeadersContentTypeEnum_1.default.Word) ||
133
+ type.includes(HeadersContentTypeEnum_1.default.Zip) ||
134
+ type.includes("image/") ||
135
+ type.includes("audio/") ||
136
+ type.includes("video/"));
126
137
  }
127
138
  static _isTextType(type) {
128
139
  return type === null || type === void 0 ? void 0 : type.includes(HeadersContentTypeEnum_1.default.Text);
package/dist/index.d.ts CHANGED
@@ -11,6 +11,8 @@ export { default as AppEngineConfiguration } from './models/AppEngineConfigurati
11
11
  export * from './models/AppEngineConfiguration';
12
12
  export { default as AppEngineException } from './models/AppEngineException';
13
13
  export * from './models/AppEngineException';
14
+ export { default as DocumentedException } from './models/DocumentedException';
15
+ export * from './models/DocumentedException';
14
16
  export { default as BaseBusinessObject } from './models/BaseBusinessObject';
15
17
  export * from './models/BaseBusinessObject';
16
18
  export { default as CompanyInfo } from './models/CompanyInfo';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACnE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAC3F,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACpF,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC1F,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACjG,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACzF,cAAc,yCAAyC,CAAC;AACxD,OAAO,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B,CAAC;AAC9D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC1F,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACjG,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACzF,cAAc,yCAAyC,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,cAAc,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.Version = exports.UserInfo = exports.Session = exports.LocalStorage = exports.HeadersContentTypeEnum = exports.CompanyInfo = exports.BaseBusinessObject = exports.AppEngineException = exports.AppEngineConfiguration = exports.HttpClientHelper = exports.ErrorHelper = exports.HttpClientCacheOptions = exports.HttpClient = void 0;
20
+ exports.Version = exports.UserInfo = exports.Session = exports.LocalStorage = exports.HeadersContentTypeEnum = exports.CompanyInfo = exports.BaseBusinessObject = exports.DocumentedException = exports.AppEngineException = exports.AppEngineConfiguration = exports.HttpClientHelper = exports.ErrorHelper = exports.HttpClientCacheOptions = exports.HttpClient = void 0;
21
21
  var HttpClient_1 = require("./communication/HttpClient");
22
22
  Object.defineProperty(exports, "HttpClient", { enumerable: true, get: function () { return __importDefault(HttpClient_1).default; } });
23
23
  __exportStar(require("./communication/HttpClient"), exports);
@@ -37,6 +37,9 @@ __exportStar(require("./models/AppEngineConfiguration"), exports);
37
37
  var AppEngineException_1 = require("./models/AppEngineException");
38
38
  Object.defineProperty(exports, "AppEngineException", { enumerable: true, get: function () { return __importDefault(AppEngineException_1).default; } });
39
39
  __exportStar(require("./models/AppEngineException"), exports);
40
+ var DocumentedException_1 = require("./models/DocumentedException");
41
+ Object.defineProperty(exports, "DocumentedException", { enumerable: true, get: function () { return __importDefault(DocumentedException_1).default; } });
42
+ __exportStar(require("./models/DocumentedException"), exports);
40
43
  var BaseBusinessObject_1 = require("./models/BaseBusinessObject");
41
44
  Object.defineProperty(exports, "BaseBusinessObject", { enumerable: true, get: function () { return __importDefault(BaseBusinessObject_1).default; } });
42
45
  __exportStar(require("./models/BaseBusinessObject"), exports);
@@ -1,9 +1,21 @@
1
+ import BaseError from "./BaseError";
1
2
  import IAppEngineException from "./interfaces/IAppEngineException";
2
- export default class AppEngineException implements IAppEngineException {
3
+ /**
4
+ * Concrete implementation of AppEngine-specific exceptions.
5
+ * Handles business logic errors and application-specific error conditions
6
+ * with structured Title and Detail information following RFC 7807 principles.
7
+ *
8
+ * @extends BaseError
9
+ * @implements IAppEngineException
10
+ */
11
+ export default class AppEngineException extends BaseError implements IAppEngineException {
12
+ protected static exceptionName: string;
3
13
  Title: string;
4
14
  Detail: string;
5
15
  constructor(error?: any);
6
- get error(): Error;
16
+ fillData(data: Record<string, unknown> | object): this;
17
+ get message(): string;
18
+ get error(): this;
7
19
  static is(obj: any): obj is IAppEngineException;
8
20
  }
9
21
  //# sourceMappingURL=AppEngineException.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppEngineException.d.ts","sourceRoot":"","sources":["../../src/models/AppEngineException.ts"],"names":[],"mappings":"AACA,OAAO,mBAAmB,MAAM,kCAAkC,CAAC;AAEnE,MAAM,CAAC,OAAO,OAAO,kBAAmB,YAAW,mBAAmB;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;gBAEH,KAAK,CAAC,EAAE,GAAG;IAOvB,IAAI,KAAK,UAER;IAED,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,mBAAmB;CAW/C"}
1
+ {"version":3,"file":"AppEngineException.d.ts","sourceRoot":"","sources":["../../src/models/AppEngineException.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,mBAAmB,MAAM,kCAAkC,CAAC;AAEnE;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,SAAU,YAAW,mBAAmB;IACvF,SAAS,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAwB;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;gBAEH,KAAK,CAAC,EAAE,GAAG;IAQvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI;IAMtD,IAAI,OAAO,WAEV;IAED,IAAI,KAAK,SAER;IAED,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,mBAAmB;CAW/C"}
@@ -1,14 +1,34 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- class AppEngineException {
6
+ const BaseError_1 = __importDefault(require("./BaseError"));
7
+ /**
8
+ * Concrete implementation of AppEngine-specific exceptions.
9
+ * Handles business logic errors and application-specific error conditions
10
+ * with structured Title and Detail information following RFC 7807 principles.
11
+ *
12
+ * @extends BaseError
13
+ * @implements IAppEngineException
14
+ */
15
+ class AppEngineException extends BaseError_1.default {
4
16
  constructor(error) {
17
+ super();
5
18
  if (error) {
6
19
  this.Title = error.Title;
7
20
  this.Detail = error.Detail;
8
21
  }
9
22
  }
23
+ fillData(data) {
24
+ super.fillData(data);
25
+ return this;
26
+ }
27
+ get message() {
28
+ return this.Detail;
29
+ }
10
30
  get error() {
11
- return new Error(this.Detail);
31
+ return this;
12
32
  }
13
33
  static is(obj) {
14
34
  if (typeof obj !== "object" || obj === null)
@@ -17,7 +37,8 @@ class AppEngineException {
17
37
  return ("Title" in candidate &&
18
38
  typeof candidate.Title === "string" &&
19
39
  "Detail" in candidate &&
20
- typeof candidate.Detail === "string");
40
+ typeof candidate.Detail === "string" && candidate.Title === this.exceptionName);
21
41
  }
22
42
  }
43
+ AppEngineException.exceptionName = "AppEngineException";
23
44
  exports.default = AppEngineException;
@@ -0,0 +1,51 @@
1
+ import BaseBusinessObject from "./BaseBusinessObject";
2
+ /**
3
+ * Abstract base class for application errors in the AppEngine system.
4
+ * Extends BaseBusinessObject and implements the Error interface to provide
5
+ * a consistent error handling mechanism throughout the application.
6
+ *
7
+ * @abstract
8
+ * @extends BaseBusinessObject
9
+ * @implements Error
10
+ */
11
+ export default abstract class BaseError extends BaseBusinessObject implements Error {
12
+ protected _stack: string;
13
+ protected static exceptionName: string;
14
+ constructor();
15
+ /**
16
+ * Gets the error message describing what went wrong.
17
+ * Must be implemented by concrete error classes.
18
+ *
19
+ * @abstract
20
+ * @returns The error message
21
+ */
22
+ abstract get message(): string;
23
+ /**
24
+ * Gets the underlying Error object that caused this error.
25
+ * Must be implemented by concrete error classes.
26
+ *
27
+ * @abstract
28
+ * @returns The underlying Error object
29
+ */
30
+ abstract get error(): Error;
31
+ /**
32
+ * The name of the error type.
33
+ * Returns a standard name for all AppEngine errors.
34
+ *
35
+ * @example "AppEngine Error"
36
+ */
37
+ get name(): string;
38
+ /**
39
+ * Gets the stack trace for the error.
40
+ *
41
+ */
42
+ get stack(): string;
43
+ /**
44
+ * Converts the error to a JSON representation.
45
+ * Useful for serialization, logging, and API responses.
46
+ *
47
+ * @returns An object containing the error's name, message, and stack trace
48
+ */
49
+ toJSON(): Record<string, unknown>;
50
+ }
51
+ //# sourceMappingURL=BaseError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseError.d.ts","sourceRoot":"","sources":["../../src/models/BaseError.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,SAAU,SAAQ,kBAAmB,YAAW,KAAK;IAClF,SAAS,CAAC,MAAM,EAAE,MAAM,CAAM;IAC9B,SAAS,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAe;;IAMrD;;;;;;OAMG;IACH,QAAQ,KAAK,OAAO,IAAI,MAAM,CAAC;IAC/B;;;;;;OAMG;IACH,QAAQ,KAAK,KAAK,IAAI,KAAK,CAAC;IAE5B;;;;;OAKG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;OAGG;IACH,IAAI,KAAK,IAAI,MAAM,CAElB;IAED;;;;;OAKG;IACH,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAOjC"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const BaseBusinessObject_1 = __importDefault(require("./BaseBusinessObject"));
7
+ /**
8
+ * Abstract base class for application errors in the AppEngine system.
9
+ * Extends BaseBusinessObject and implements the Error interface to provide
10
+ * a consistent error handling mechanism throughout the application.
11
+ *
12
+ * @abstract
13
+ * @extends BaseBusinessObject
14
+ * @implements Error
15
+ */
16
+ class BaseError extends BaseBusinessObject_1.default {
17
+ constructor() {
18
+ super();
19
+ this._stack = "";
20
+ this._stack = new Error().stack;
21
+ }
22
+ /**
23
+ * The name of the error type.
24
+ * Returns a standard name for all AppEngine errors.
25
+ *
26
+ * @example "AppEngine Error"
27
+ */
28
+ get name() {
29
+ return "AppEngine Error";
30
+ }
31
+ /**
32
+ * Gets the stack trace for the error.
33
+ *
34
+ */
35
+ get stack() {
36
+ return this._stack;
37
+ }
38
+ /**
39
+ * Converts the error to a JSON representation.
40
+ * Useful for serialization, logging, and API responses.
41
+ *
42
+ * @returns An object containing the error's name, message, and stack trace
43
+ */
44
+ toJSON() {
45
+ return {
46
+ name: this.name,
47
+ message: this.message,
48
+ stack: this.stack,
49
+ };
50
+ }
51
+ }
52
+ BaseError.exceptionName = "Exception";
53
+ exports.default = BaseError;
@@ -0,0 +1,22 @@
1
+ import BaseError from "./BaseError";
2
+ import IDocumentedException from "./interfaces/IDocumentedException";
3
+ /**
4
+ * Concrete implementation of AppEngine-specific documented exceptions.
5
+ * Handles business logic errors and application-specific error conditions
6
+ * with structured Title and Detail information following RFC 7807 principles.
7
+ *
8
+ * @extends BaseError
9
+ * @implements IDocumentedException
10
+ */
11
+ export default class DocumentedException extends BaseError implements IDocumentedException {
12
+ protected static exceptionName: string;
13
+ documentationUrl: string;
14
+ title: string;
15
+ detail: string;
16
+ constructor(error?: any);
17
+ fillData(data: Record<string, unknown> | object): this;
18
+ get message(): string;
19
+ get error(): this;
20
+ static is(obj: any): obj is IDocumentedException;
21
+ }
22
+ //# sourceMappingURL=DocumentedException.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentedException.d.ts","sourceRoot":"","sources":["../../src/models/DocumentedException.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,oBAAoB,MAAM,mCAAmC,CAAC;AAGrE;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,SAAU,YAAW,oBAAoB;IACzF,SAAS,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAyB;IAC/D,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;gBAEH,KAAK,CAAC,EAAE,GAAG;IASvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI;IAMtD,IAAI,OAAO,WAEV;IAED,IAAI,KAAK,SAER;IAED,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,oBAAoB;CAchD"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const BaseError_1 = __importDefault(require("./BaseError"));
7
+ /**
8
+ * Concrete implementation of AppEngine-specific documented exceptions.
9
+ * Handles business logic errors and application-specific error conditions
10
+ * with structured Title and Detail information following RFC 7807 principles.
11
+ *
12
+ * @extends BaseError
13
+ * @implements IDocumentedException
14
+ */
15
+ class DocumentedException extends BaseError_1.default {
16
+ constructor(error) {
17
+ super();
18
+ if (error) {
19
+ this.title = error.title;
20
+ this.detail = error.detail;
21
+ this.documentationUrl = error.documentationUrl;
22
+ }
23
+ }
24
+ fillData(data) {
25
+ super.fillData(data);
26
+ return this;
27
+ }
28
+ get message() {
29
+ return this.detail;
30
+ }
31
+ get error() {
32
+ return this;
33
+ }
34
+ static is(obj) {
35
+ if (typeof obj !== "object" || obj === null)
36
+ return false;
37
+ const candidate = obj;
38
+ return ("title" in candidate &&
39
+ typeof candidate.title === "string" &&
40
+ "detail" in candidate &&
41
+ typeof candidate.detail === "string" &&
42
+ candidate.title === this.exceptionName &&
43
+ "documentationUrl" in candidate &&
44
+ typeof candidate.documentationUrl === "string");
45
+ }
46
+ }
47
+ DocumentedException.exceptionName = "DocumentedException";
48
+ exports.default = DocumentedException;
@@ -0,0 +1,7 @@
1
+ import { IHttpResponse } from "./interfaces/IHttpResponse";
2
+ export default class HttpResponse<T> implements IHttpResponse<T> {
3
+ data: T;
4
+ response: Response;
5
+ constructor(data: T, response: Response);
6
+ }
7
+ //# sourceMappingURL=HttpResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HttpResponse.d.ts","sourceRoot":"","sources":["../../src/models/HttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,CAAC,OAAO,OAAO,YAAY,CAAC,CAAC,CAAE,YAAW,aAAa,CAAC,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC;IAAS,QAAQ,EAAE,QAAQ;gBAAlC,IAAI,EAAE,CAAC,EAAS,QAAQ,EAAE,QAAQ;CACrD"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class HttpResponse {
4
+ constructor(data, response) {
5
+ this.data = data;
6
+ this.response = response;
7
+ }
8
+ }
9
+ exports.default = HttpResponse;
@@ -0,0 +1,6 @@
1
+ export default interface IODataResponse<T = object> {
2
+ "@odata.count": number;
3
+ "@odata.context": string;
4
+ value: T[];
5
+ }
6
+ //# sourceMappingURL=IOdataResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IOdataResponse.d.ts","sourceRoot":"","sources":["../../src/models/IOdataResponse.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC,CAAC,GAAG,MAAM;IACjD,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,CAAC,EAAE,CAAC;CACX"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,56 @@
1
+ import BaseError from "./BaseError";
2
+ import { IODataError, IODataErrorDetail, IOdataErrorObject, IODataInnerError } from "./interfaces/IOdataError";
3
+ /**
4
+ * Represents an OData error that occurs during web service operations.
5
+ * This class is designed to handle OData error responses from C# backend services,
6
+ * providing structured error information including error codes, messages, details, and inner errors.
7
+ *
8
+ * OData errors typically follow the OData specification format with a hierarchical structure
9
+ * containing error details that can be used for debugging and user feedback.
10
+ *
11
+ * @extends BaseError
12
+ * @implements IOdataErrorObject
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * const odataError = OdataError.create({
17
+ * error: {
18
+ * code: "ValidationError",
19
+ * message: "Invalid input data",
20
+ * details: [...],
21
+ * innererror: {...}
22
+ * }
23
+ * });
24
+ * ```
25
+ */
26
+ export default class OdataError extends BaseError implements IOdataErrorObject {
27
+ private _message;
28
+ code: string;
29
+ details: IODataErrorDetail[];
30
+ innererror: IODataInnerError;
31
+ fillData(data: Record<string, unknown> | object): this;
32
+ get name(): string;
33
+ get message(): string;
34
+ set message(value: string);
35
+ get error(): this;
36
+ /**
37
+ * Type guard to check if an object is a valid IODataError structure.
38
+ * Validates that the object has the expected OData error format with
39
+ * nested error object containing required properties.
40
+ *
41
+ * This is particularly useful when handling responses from C# OData services
42
+ * that return errors in the standard OData format.
43
+ *
44
+ * @param obj - The object to check
45
+ * @returns True if the object matches the IODataError structure
46
+ *
47
+ * @example
48
+ * ```typescript
49
+ * if (OdataError.is(responseData)) {
50
+ * const error = OdataError.create(responseData);
51
+ * }
52
+ * ```
53
+ */
54
+ static is(obj: any): obj is IODataError;
55
+ }
56
+ //# sourceMappingURL=OdataError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OdataError.d.ts","sourceRoot":"","sources":["../../src/models/OdataError.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EACN,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,MAAM,0BAA0B,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,SAAU,YAAW,iBAAiB;IAC7E,OAAO,CAAC,QAAQ,CAAc;IAC9B,IAAI,EAAE,MAAM,CAAM;IAClB,OAAO,EAAE,iBAAiB,EAAE,CAAM;IAClC,UAAU,EAAE,gBAAgB,CAAM;IAElC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI;IAUtD,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,EAExB;IAED,IAAI,KAAK,SAER;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,WAAW;CAavC"}