@computec/uibase 1.0.3 → 1.0.6
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.
- package/dist/communication/ConnectionOptions.d.ts +48 -0
- package/dist/communication/ConnectionOptions.d.ts.map +1 -0
- package/dist/communication/ConnectionOptions.js +9 -0
- package/dist/communication/HttpClient.d.ts +1 -0
- package/dist/communication/HttpClient.d.ts.map +1 -1
- package/dist/communication/HttpClient.js +6 -1
- package/dist/communication/IBaseHttpClientOptions.d.ts +1 -0
- package/dist/communication/IBaseHttpClientOptions.d.ts.map +1 -1
- package/dist/communication/IConnectionInfo.d.ts +17 -0
- package/dist/communication/IConnectionInfo.d.ts.map +1 -0
- package/dist/communication/IConnectionInfo.js +2 -0
- package/dist/communication/ISignalRHubClient.d.ts +47 -0
- package/dist/communication/ISignalRHubClient.d.ts.map +1 -0
- package/dist/communication/ISignalRHubClient.js +2 -0
- package/dist/communication/ISignalRMessage.d.ts +8 -0
- package/dist/communication/ISignalRMessage.d.ts.map +1 -0
- package/dist/communication/ISignalRMessage.js +2 -0
- package/dist/communication/SignalRHubClient.d.ts +26 -0
- package/dist/communication/SignalRHubClient.d.ts.map +1 -0
- package/dist/communication/SignalRHubClient.js +133 -0
- package/dist/communication/SignalRMessage.d.ts +10 -0
- package/dist/communication/SignalRMessage.d.ts.map +1 -0
- package/dist/communication/SignalRMessage.js +9 -0
- package/dist/communication/SubscribeProperties.d.ts +17 -0
- package/dist/communication/SubscribeProperties.d.ts.map +1 -0
- package/dist/communication/SubscribeProperties.js +25 -0
- package/dist/helpers/ErrorHelper.d.ts.map +1 -1
- package/dist/helpers/ErrorHelper.js +12 -0
- package/dist/helpers/HttpClientHelper.d.ts.map +1 -1
- package/dist/helpers/HttpClientHelper.js +15 -4
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/models/AppEngineException.d.ts +17 -7
- package/dist/models/AppEngineException.d.ts.map +1 -1
- package/dist/models/AppEngineException.js +31 -8
- package/dist/models/BaseBusinessObject.d.ts +1 -2
- package/dist/models/BaseBusinessObject.d.ts.map +1 -1
- package/dist/models/BaseError.d.ts +51 -0
- package/dist/models/BaseError.d.ts.map +1 -0
- package/dist/models/BaseError.js +53 -0
- package/dist/models/CompanyInfo.d.ts +4 -1
- package/dist/models/CompanyInfo.d.ts.map +1 -1
- package/dist/models/CompanyInfo.js +13 -0
- package/dist/models/DocumentedException.d.ts +22 -0
- package/dist/models/DocumentedException.d.ts.map +1 -0
- package/dist/models/DocumentedException.js +48 -0
- package/dist/models/HttpResponse.d.ts +7 -0
- package/dist/models/HttpResponse.d.ts.map +1 -0
- package/dist/models/HttpResponse.js +9 -0
- package/dist/models/IOdataResponse.d.ts +6 -0
- package/dist/models/IOdataResponse.d.ts.map +1 -0
- package/dist/models/IOdataResponse.js +2 -0
- package/dist/models/OdataError.d.ts +56 -0
- package/dist/models/OdataError.d.ts.map +1 -0
- package/dist/models/OdataError.js +88 -0
- package/dist/models/ProblemDetails.d.ts +23 -0
- package/dist/models/ProblemDetails.d.ts.map +1 -0
- package/dist/models/ProblemDetails.js +37 -0
- package/dist/models/Session.d.ts +2 -1
- package/dist/models/Session.d.ts.map +1 -1
- package/dist/models/Session.js +5 -1
- package/dist/models/UserInfo.d.ts +27 -1
- package/dist/models/UserInfo.d.ts.map +1 -1
- package/dist/models/ValidationProblemDetails.d.ts +19 -0
- package/dist/models/ValidationProblemDetails.d.ts.map +1 -0
- package/dist/models/ValidationProblemDetails.js +41 -0
- package/dist/models/Version.d.ts +35 -0
- package/dist/models/Version.d.ts.map +1 -0
- package/dist/models/Version.js +185 -0
- package/dist/models/enums/HeadersContentTypeEnum.d.ts +7 -0
- package/dist/models/enums/HeadersContentTypeEnum.d.ts.map +1 -1
- package/dist/models/enums/HeadersContentTypeEnum.js +7 -0
- package/dist/models/interfaces/IAppEngineException.d.ts +54 -4
- package/dist/models/interfaces/IAppEngineException.d.ts.map +1 -1
- package/dist/models/interfaces/IDocumentedException.d.ts +60 -0
- package/dist/models/interfaces/IDocumentedException.d.ts.map +1 -0
- package/dist/models/interfaces/IDocumentedException.js +2 -0
- package/dist/models/interfaces/IHttpResponse.d.ts +5 -0
- package/dist/models/interfaces/IHttpResponse.d.ts.map +1 -0
- package/dist/models/interfaces/IHttpResponse.js +2 -0
- package/dist/models/interfaces/IOdataError.d.ts +182 -0
- package/dist/models/interfaces/IOdataError.d.ts.map +1 -0
- package/dist/models/interfaces/IOdataError.js +2 -0
- package/dist/models/interfaces/IProblemDetails.d.ts +93 -0
- package/dist/models/interfaces/IProblemDetails.d.ts.map +1 -0
- package/dist/models/interfaces/IProblemDetails.js +2 -0
- package/dist/models/interfaces/IValidationProblemDetails.d.ts +82 -0
- package/dist/models/interfaces/IValidationProblemDetails.d.ts.map +1 -0
- package/dist/models/interfaces/IValidationProblemDetails.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/.library +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/communication/ConnectionOptions-dbg.js +20 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ConnectionOptions.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ConnectionOptions.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/HttpClient-dbg.js +41 -22
- package/dist-ui5/resources/computec/appengine/uibase/communication/HttpClient.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/communication/HttpClient.js.map +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/communication/IConnectionInfo-dbg.js +7 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/IConnectionInfo.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/IConnectionInfo.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ISignalRHubClient-dbg.js +7 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ISignalRHubClient.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ISignalRHubClient.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ISignalRMessage-dbg.js +7 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ISignalRMessage.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ISignalRMessage.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRHubClient-dbg.js +213 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRHubClient.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRHubClient.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRMessage-dbg.js +31 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRMessage.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRMessage.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SubscribeProperties-dbg.js +49 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SubscribeProperties.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SubscribeProperties.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/helpers/ErrorHelper-dbg.js +13 -1
- package/dist-ui5/resources/computec/appengine/uibase/helpers/ErrorHelper.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/helpers/ErrorHelper.js.map +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/helpers/HttpClientHelper-dbg.js +76 -85
- package/dist-ui5/resources/computec/appengine/uibase/helpers/HttpClientHelper.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/helpers/HttpClientHelper.js.map +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/index-dbg.js +5 -1
- package/dist-ui5/resources/computec/appengine/uibase/index.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/index.js.map +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/library-dbg.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/library-preload.js +70 -10
- package/dist-ui5/resources/computec/appengine/uibase/library-preload.js.map +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/library.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/manifest.json +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineException-dbg.js +49 -12
- package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineException.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineException.js.map +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/models/BaseError-dbg.js +92 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/BaseError.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/BaseError.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/CompanyInfo-dbg.js +34 -6
- package/dist-ui5/resources/computec/appengine/uibase/models/CompanyInfo.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/models/CompanyInfo.js.map +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/models/DocumentedException-dbg.js +75 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/DocumentedException.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/DocumentedException.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/HttpResponse-dbg.js +17 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/HttpResponse.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/HttpResponse.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/IOdataResponse-dbg.js +7 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/IOdataResponse.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/IOdataResponse.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/OdataError-dbg.js +122 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/OdataError.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/OdataError.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/ProblemDetails-dbg.js +71 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/ProblemDetails.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/ProblemDetails.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/Session-dbg.js +20 -4
- package/dist-ui5/resources/computec/appengine/uibase/models/Session.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/models/Session.js.map +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/models/ValidationProblemDetails-dbg.js +83 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/ValidationProblemDetails.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/ValidationProblemDetails.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/Version-dbg.js +253 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/Version.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/Version.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/enums/HeadersContentTypeEnum-dbg.js +7 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/enums/HeadersContentTypeEnum.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/models/enums/HeadersContentTypeEnum.js.map +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IDocumentedException-dbg.js +7 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IDocumentedException.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IDocumentedException.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IHttpResponse-dbg.js +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IHttpResponse.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IHttpResponse.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IOdataError-dbg.js +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IOdataError.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IOdataError.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IProblemDetails-dbg.js +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IProblemDetails.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IProblemDetails.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IValidationProblemDetails-dbg.js +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IValidationProblemDetails.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IValidationProblemDetails.js.map +1 -0
- package/package.json +11 -6
|
@@ -1,11 +1,21 @@
|
|
|
1
|
+
import BaseError from "./BaseError";
|
|
1
2
|
import IAppEngineException from "./interfaces/IAppEngineException";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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;
|
|
13
|
+
Title: string;
|
|
14
|
+
Detail: string;
|
|
7
15
|
constructor(error?: any);
|
|
8
|
-
|
|
9
|
-
|
|
16
|
+
fillData(data: Record<string, unknown> | object): this;
|
|
17
|
+
get message(): string;
|
|
18
|
+
get error(): this;
|
|
19
|
+
static is(obj: any): obj is IAppEngineException;
|
|
10
20
|
}
|
|
11
21
|
//# sourceMappingURL=AppEngineException.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppEngineException.d.ts","sourceRoot":"","sources":["../../src/models/AppEngineException.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,kCAAkC,CAAC;AAEnE,MAAM,CAAC,OAAO,OAAO,kBAAmB,YAAW,mBAAmB;
|
|
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,21 +1,44 @@
|
|
|
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
|
-
|
|
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
|
-
this.title = error.title;
|
|
9
|
-
this.detail = error.detail;
|
|
10
21
|
}
|
|
11
22
|
}
|
|
23
|
+
fillData(data) {
|
|
24
|
+
super.fillData(data);
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
get message() {
|
|
28
|
+
return this.Detail;
|
|
29
|
+
}
|
|
12
30
|
get error() {
|
|
13
|
-
return
|
|
31
|
+
return this;
|
|
14
32
|
}
|
|
15
|
-
static is(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
33
|
+
static is(obj) {
|
|
34
|
+
if (typeof obj !== "object" || obj === null)
|
|
35
|
+
return false;
|
|
36
|
+
const candidate = obj;
|
|
37
|
+
return ("Title" in candidate &&
|
|
38
|
+
typeof candidate.Title === "string" &&
|
|
39
|
+
"Detail" in candidate &&
|
|
40
|
+
typeof candidate.Detail === "string" && candidate.Title === this.exceptionName);
|
|
19
41
|
}
|
|
20
42
|
}
|
|
43
|
+
AppEngineException.exceptionName = "AppEngineException";
|
|
21
44
|
exports.default = AppEngineException;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type BaseBusinessObjectConstructor<T extends BaseBusinessObject> = {
|
|
1
|
+
export type BaseBusinessObjectConstructor<T extends BaseBusinessObject> = {
|
|
2
2
|
new (): T;
|
|
3
3
|
create<U extends T>(this: BaseBusinessObjectConstructor<U>, data: Record<string, unknown> | object): U;
|
|
4
4
|
createMany<U extends T>(this: BaseBusinessObjectConstructor<U>, data: Record<string, unknown>[] | object[]): U[];
|
|
@@ -154,5 +154,4 @@ export default abstract class BaseBusinessObject {
|
|
|
154
154
|
*/
|
|
155
155
|
toJSON(): Record<string, unknown>;
|
|
156
156
|
}
|
|
157
|
-
export {};
|
|
158
157
|
//# sourceMappingURL=BaseBusinessObject.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseBusinessObject.d.ts","sourceRoot":"","sources":["../../src/models/BaseBusinessObject.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"BaseBusinessObject.d.ts","sourceRoot":"","sources":["../../src/models/BaseBusinessObject.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,kBAAkB,IAAI;IACxE,QAAQ,CAAC,CAAC;IACV,MAAM,CAAC,CAAC,SAAS,CAAC,EAChB,IAAI,EAAE,6BAA6B,CAAC,CAAC,CAAC,EACtC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GACrC,CAAC,CAAC;IACL,UAAU,CAAC,CAAC,SAAS,CAAC,EACpB,IAAI,EAAE,6BAA6B,CAAC,CAAC,CAAC,EACtC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,MAAM,EAAE,GACzC,CAAC,EAAE,CAAC;CACR,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,kBAAkB;IAC9C;;;;;OAKG;IACH,SAAS,CAAC,YAAY,UAAS;IAC/B;;;;;;;;;OASG;IACH,OAAO,CAAC,QAAQ,CAA+B;IAE/C;;;;;;;;;OASG;IACI,QAAQ;IAGf;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,kBAAkB,EAAE,CAAC,SAAS,CAAC,EACrD,IAAI,EAAE,6BAA6B,CAAC,CAAC,CAAC,EACtC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GACrC,CAAC;IAMJ;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,kBAAkB,EAAE,CAAC,SAAS,CAAC,EACzD,IAAI,EAAE,6BAA6B,CAAC,CAAC,CAAC,EACtC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,MAAM,EAAE,GACzC,CAAC,EAAE;IAIN;;;;;;;;;OASG;IACH,SAAS,CAAC,QAAQ,CAAC,CAAC,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM;IAQ5C;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;IAU/C;;;;;;;;;;;;OAYG;IACH,KAAK,IAAI,IAAI;IAIb;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,IAAI,IAAI;IAMvB,SAAS,CAAC,aAAa,CAAC,aAAa,EAAE,OAAO,GAAG,IAAI;IAIrD;;;;OAIG;IACH,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAOlC"}
|
|
@@ -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;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import BaseBusinessObject from "./BaseBusinessObject";
|
|
2
|
+
import Version from "./Version";
|
|
2
3
|
export default class CompanyInfo extends BaseBusinessObject {
|
|
3
|
-
Version:
|
|
4
|
+
Version: Version;
|
|
4
5
|
LanguageCode: string;
|
|
5
6
|
CompanyName: string;
|
|
6
7
|
Localization: string;
|
|
8
|
+
fillData(data: Record<string, unknown> | object): this;
|
|
9
|
+
toJSON(): Record<string, unknown>;
|
|
7
10
|
}
|
|
8
11
|
//# sourceMappingURL=CompanyInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompanyInfo.d.ts","sourceRoot":"","sources":["../../src/models/CompanyInfo.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"CompanyInfo.d.ts","sourceRoot":"","sources":["../../src/models/CompanyInfo.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,kBAAkB;IACzD,OAAO,UAAiB;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI;IAOtD,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMlC"}
|
|
@@ -4,6 +4,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const BaseBusinessObject_1 = __importDefault(require("./BaseBusinessObject"));
|
|
7
|
+
const Version_1 = __importDefault(require("./Version"));
|
|
7
8
|
class CompanyInfo extends BaseBusinessObject_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.Version = new Version_1.default();
|
|
12
|
+
}
|
|
13
|
+
fillData(data) {
|
|
14
|
+
super.fillData(data);
|
|
15
|
+
this.Version = new Version_1.default(this.Version);
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
toJSON() {
|
|
19
|
+
return Object.assign(Object.assign({}, super.toJSON()), { Version: this.Version.toString() });
|
|
20
|
+
}
|
|
8
21
|
}
|
|
9
22
|
exports.default = CompanyInfo;
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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,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"}
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
* Represents an OData error that occurs during web service operations.
|
|
9
|
+
* This class is designed to handle OData error responses from C# backend services,
|
|
10
|
+
* providing structured error information including error codes, messages, details, and inner errors.
|
|
11
|
+
*
|
|
12
|
+
* OData errors typically follow the OData specification format with a hierarchical structure
|
|
13
|
+
* containing error details that can be used for debugging and user feedback.
|
|
14
|
+
*
|
|
15
|
+
* @extends BaseError
|
|
16
|
+
* @implements IOdataErrorObject
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* const odataError = OdataError.create({
|
|
21
|
+
* error: {
|
|
22
|
+
* code: "ValidationError",
|
|
23
|
+
* message: "Invalid input data",
|
|
24
|
+
* details: [...],
|
|
25
|
+
* innererror: {...}
|
|
26
|
+
* }
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
class OdataError extends BaseError_1.default {
|
|
31
|
+
constructor() {
|
|
32
|
+
super(...arguments);
|
|
33
|
+
this._message = "";
|
|
34
|
+
this.code = "";
|
|
35
|
+
this.details = [];
|
|
36
|
+
this.innererror = {};
|
|
37
|
+
}
|
|
38
|
+
fillData(data) {
|
|
39
|
+
if (OdataError.is(data)) {
|
|
40
|
+
super.fillData(data.error);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
super.fillData(data);
|
|
44
|
+
}
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
get name() {
|
|
48
|
+
return "OData Error";
|
|
49
|
+
}
|
|
50
|
+
get message() {
|
|
51
|
+
return this._message;
|
|
52
|
+
}
|
|
53
|
+
set message(value) {
|
|
54
|
+
this._message = value;
|
|
55
|
+
}
|
|
56
|
+
get error() {
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Type guard to check if an object is a valid IODataError structure.
|
|
61
|
+
* Validates that the object has the expected OData error format with
|
|
62
|
+
* nested error object containing required properties.
|
|
63
|
+
*
|
|
64
|
+
* This is particularly useful when handling responses from C# OData services
|
|
65
|
+
* that return errors in the standard OData format.
|
|
66
|
+
*
|
|
67
|
+
* @param obj - The object to check
|
|
68
|
+
* @returns True if the object matches the IODataError structure
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```typescript
|
|
72
|
+
* if (OdataError.is(responseData)) {
|
|
73
|
+
* const error = OdataError.create(responseData);
|
|
74
|
+
* }
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
static is(obj) {
|
|
78
|
+
if (typeof obj !== "object" || obj === null)
|
|
79
|
+
return false;
|
|
80
|
+
const candidate = obj;
|
|
81
|
+
return (typeof candidate.error === "object" &&
|
|
82
|
+
typeof candidate.error.code === "string" &&
|
|
83
|
+
typeof candidate.error.message === "string" &&
|
|
84
|
+
Array.isArray(candidate.error.details) &&
|
|
85
|
+
typeof candidate.error.innererror === "object");
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.default = OdataError;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import BaseError from "./BaseError";
|
|
2
|
+
import { IProblemDetails } from "./interfaces/IProblemDetails";
|
|
3
|
+
/**
|
|
4
|
+
* Concrete implementation of RFC 7807 Problem Details for HTTP APIs.
|
|
5
|
+
* Provides standardized error representation for REST API responses
|
|
6
|
+
* with structured error information including type, title, status, and details.
|
|
7
|
+
*
|
|
8
|
+
* @extends BaseError
|
|
9
|
+
* @implements IProblemDetails
|
|
10
|
+
*/
|
|
11
|
+
export default class ProblemDetails extends BaseError implements IProblemDetails {
|
|
12
|
+
type: string;
|
|
13
|
+
title: string;
|
|
14
|
+
status: number;
|
|
15
|
+
detail: string;
|
|
16
|
+
instance: string;
|
|
17
|
+
fillData(data: Record<string, unknown> | object): this;
|
|
18
|
+
get name(): string;
|
|
19
|
+
get message(): string;
|
|
20
|
+
get error(): Error;
|
|
21
|
+
static is(obj: any): obj is IProblemDetails;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=ProblemDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProblemDetails.d.ts","sourceRoot":"","sources":["../../src/models/ProblemDetails.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,SAAU,YAAW,eAAe;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI;IAMtD,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,eAAe;CAS3C"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 RFC 7807 Problem Details for HTTP APIs.
|
|
9
|
+
* Provides standardized error representation for REST API responses
|
|
10
|
+
* with structured error information including type, title, status, and details.
|
|
11
|
+
*
|
|
12
|
+
* @extends BaseError
|
|
13
|
+
* @implements IProblemDetails
|
|
14
|
+
*/
|
|
15
|
+
class ProblemDetails extends BaseError_1.default {
|
|
16
|
+
fillData(data) {
|
|
17
|
+
super.fillData(data);
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
get name() {
|
|
21
|
+
return "Problem Details";
|
|
22
|
+
}
|
|
23
|
+
get message() {
|
|
24
|
+
return this.detail || this.title;
|
|
25
|
+
}
|
|
26
|
+
get error() {
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
static is(obj) {
|
|
30
|
+
if (typeof obj !== "object" || obj === null)
|
|
31
|
+
return false;
|
|
32
|
+
const candidate = obj;
|
|
33
|
+
return (("title" in candidate && typeof candidate.title === "string") ||
|
|
34
|
+
("status" in candidate && typeof candidate.status === "number"));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = ProblemDetails;
|
package/dist/models/Session.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../src/models/Session.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,
|
|
1
|
+
{"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../src/models/Session.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAGtD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,kBAAkB;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
package/dist/models/Session.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
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
|
-
|
|
6
|
+
const BaseBusinessObject_1 = __importDefault(require("./BaseBusinessObject"));
|
|
7
|
+
class Session extends BaseBusinessObject_1.default {
|
|
4
8
|
}
|
|
5
9
|
exports.default = Session;
|
|
@@ -1,7 +1,33 @@
|
|
|
1
1
|
import BaseBusinessObject from "./BaseBusinessObject";
|
|
2
2
|
export default class UserInfo extends BaseBusinessObject {
|
|
3
|
+
InternalKey: number;
|
|
4
|
+
UserPassword: string | null;
|
|
3
5
|
UserCode: string;
|
|
4
|
-
Superuser: string;
|
|
5
6
|
UserName: string;
|
|
7
|
+
Superuser: string;
|
|
8
|
+
eMail: string | null;
|
|
9
|
+
MobilePhoneNumber: string | null;
|
|
10
|
+
Defaults: string | null;
|
|
11
|
+
FaxNumber: string | null;
|
|
12
|
+
Branch: number;
|
|
13
|
+
Department: number;
|
|
14
|
+
LanguageCode: string;
|
|
15
|
+
Locked: string;
|
|
16
|
+
Group: string;
|
|
17
|
+
MaxDiscountGeneral: number;
|
|
18
|
+
MaxDiscountSales: number;
|
|
19
|
+
MaxDiscountPurchase: number;
|
|
20
|
+
CashLimit: string;
|
|
21
|
+
MaxCashAmtForIncmngPayts: number;
|
|
22
|
+
LastLogoutDate: string;
|
|
23
|
+
LastLoginTime: string;
|
|
24
|
+
LastLogoutTime: string;
|
|
25
|
+
LastPasswordChangeTime: string;
|
|
26
|
+
LastPasswordChangedBy: string;
|
|
27
|
+
U_StdProd: string;
|
|
28
|
+
U_CO_FrmOpenMode: string;
|
|
29
|
+
UserPermission: any[];
|
|
30
|
+
UserGroupByUser: any[];
|
|
31
|
+
UserBranchAssignment: any[];
|
|
6
32
|
}
|
|
7
33
|
//# sourceMappingURL=UserInfo.d.ts.map
|