@webpieces/core-util 0.4.750 → 0.4.751

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 (47) hide show
  1. package/README.md +6 -0
  2. package/package.json +9 -1
  3. package/src/errors/ApiError.d.ts +70 -0
  4. package/src/errors/ApiError.js +106 -0
  5. package/src/errors/ApiError.js.map +1 -0
  6. package/src/errors/ApiErrorCodec.d.ts +25 -0
  7. package/src/errors/ApiErrorCodec.js +184 -0
  8. package/src/errors/ApiErrorCodec.js.map +1 -0
  9. package/src/errors/index.d.ts +2 -0
  10. package/src/errors/index.js +23 -0
  11. package/src/errors/index.js.map +1 -0
  12. package/src/http/HttpErrorStatus.d.ts +5 -0
  13. package/src/http/HttpErrorStatus.js +38 -0
  14. package/src/http/HttpErrorStatus.js.map +1 -0
  15. package/src/http/LogApiCall.d.ts +1 -1
  16. package/src/http/LogApiCall.js +7 -2
  17. package/src/http/LogApiCall.js.map +1 -1
  18. package/src/http/WebpiecesDefaultFailureClassifier.d.ts +4 -4
  19. package/src/http/WebpiecesDefaultFailureClassifier.js +11 -11
  20. package/src/http/WebpiecesDefaultFailureClassifier.js.map +1 -1
  21. package/src/http/decorators.d.ts +1 -1
  22. package/src/http/decorators.js +1 -1
  23. package/src/http/decorators.js.map +1 -1
  24. package/src/http/errors.d.ts +35 -158
  25. package/src/http/errors.js +65 -235
  26. package/src/http/errors.js.map +1 -1
  27. package/src/index.d.ts +8 -6
  28. package/src/index.js +20 -2
  29. package/src/index.js.map +1 -1
  30. package/src/ipc/IpcCompileAssertions.d.ts +4 -0
  31. package/src/ipc/IpcCompileAssertions.js +39 -0
  32. package/src/ipc/IpcCompileAssertions.js.map +1 -0
  33. package/src/ipc/IpcConnection.d.ts +50 -0
  34. package/src/ipc/IpcConnection.js +187 -0
  35. package/src/ipc/IpcConnection.js.map +1 -0
  36. package/src/ipc/IpcContract.d.ts +32 -0
  37. package/src/ipc/IpcContract.js +65 -0
  38. package/src/ipc/IpcContract.js.map +1 -0
  39. package/src/ipc/IpcLogging.d.ts +11 -0
  40. package/src/ipc/IpcLogging.js +13 -0
  41. package/src/ipc/IpcLogging.js.map +1 -0
  42. package/src/ipc/IpcProtocol.d.ts +37 -0
  43. package/src/ipc/IpcProtocol.js +103 -0
  44. package/src/ipc/IpcProtocol.js.map +1 -0
  45. package/src/ipc/index.d.ts +14 -0
  46. package/src/ipc/index.js +31 -0
  47. package/src/ipc/index.js.map +1 -0
@@ -0,0 +1,37 @@
1
+ import { ApiErrorPayload } from '../errors';
2
+ export declare class IpcCallContext {
3
+ readonly txId: string;
4
+ readonly callId: string;
5
+ readonly parentCallId?: string | undefined;
6
+ constructor(txId: string, callId: string, parentCallId?: string | undefined);
7
+ }
8
+ export declare class IpcRequest {
9
+ readonly apiId: string;
10
+ readonly methodId: string;
11
+ readonly context: IpcCallContext;
12
+ readonly body: unknown;
13
+ readonly version = 1;
14
+ readonly type = "request";
15
+ constructor(apiId: string, methodId: string, context: IpcCallContext, body: unknown);
16
+ }
17
+ export declare class IpcSuccess {
18
+ readonly context: IpcCallContext;
19
+ readonly body: unknown;
20
+ readonly version = 1;
21
+ readonly type = "success";
22
+ constructor(context: IpcCallContext, body: unknown);
23
+ }
24
+ export declare class IpcFailure {
25
+ readonly context: IpcCallContext;
26
+ readonly error: ApiErrorPayload;
27
+ readonly version = 1;
28
+ readonly type = "failure";
29
+ constructor(context: IpcCallContext, error: ApiErrorPayload);
30
+ }
31
+ export type IpcReply = IpcSuccess | IpcFailure;
32
+ export type IpcMessage = IpcRequest | IpcReply;
33
+ export declare class IpcProtocol {
34
+ static record(value: unknown): Record<string, unknown>;
35
+ static parse(json: string): IpcMessage;
36
+ static sameContext(a: IpcCallContext, b: IpcCallContext): boolean;
37
+ }
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IpcProtocol = exports.IpcFailure = exports.IpcSuccess = exports.IpcRequest = exports.IpcCallContext = void 0;
4
+ const errors_1 = require("../errors");
5
+ const IpcContract_1 = require("./IpcContract");
6
+ class IpcCallContext {
7
+ txId;
8
+ callId;
9
+ parentCallId;
10
+ constructor(txId, callId, parentCallId) {
11
+ this.txId = txId;
12
+ this.callId = callId;
13
+ this.parentCallId = parentCallId;
14
+ IpcContract_1.IpcIdentity.assert(txId, 'transaction');
15
+ IpcContract_1.IpcIdentity.assert(callId, 'call');
16
+ if (parentCallId !== undefined)
17
+ IpcContract_1.IpcIdentity.assert(parentCallId, 'parent call');
18
+ }
19
+ }
20
+ exports.IpcCallContext = IpcCallContext;
21
+ class IpcRequest {
22
+ apiId;
23
+ methodId;
24
+ context;
25
+ body;
26
+ version = 1;
27
+ type = 'request';
28
+ constructor(apiId, methodId, context,
29
+ // webpieces-disable no-any-unknown -- untrusted IPC data is schema-validated; generic dispatch cannot assume a DTO type before validation
30
+ body) {
31
+ this.apiId = apiId;
32
+ this.methodId = methodId;
33
+ this.context = context;
34
+ this.body = body;
35
+ }
36
+ }
37
+ exports.IpcRequest = IpcRequest;
38
+ class IpcSuccess {
39
+ context;
40
+ body;
41
+ version = 1;
42
+ type = 'success';
43
+ constructor(context,
44
+ // webpieces-disable no-any-unknown -- untrusted IPC data is schema-validated; generic dispatch cannot assume a DTO type before validation
45
+ body) {
46
+ this.context = context;
47
+ this.body = body;
48
+ }
49
+ }
50
+ exports.IpcSuccess = IpcSuccess;
51
+ class IpcFailure {
52
+ context;
53
+ error;
54
+ version = 1;
55
+ type = 'failure';
56
+ constructor(context, error) {
57
+ this.context = context;
58
+ this.error = error;
59
+ }
60
+ }
61
+ exports.IpcFailure = IpcFailure;
62
+ class IpcProtocol {
63
+ // webpieces-disable no-function-outside-class -- portable stateless IPC primitive; no platform DI container exists on this boundary; webpieces-disable no-any-unknown -- untrusted IPC data is schema-validated; generic dispatch cannot assume a DTO type before validation
64
+ static record(value) {
65
+ if (typeof value !== 'object' || value === null || Array.isArray(value)) {
66
+ throw new errors_1.InternalError('Malformed IPC envelope');
67
+ }
68
+ // webpieces-disable no-any-unknown -- untrusted IPC data is schema-validated; generic dispatch cannot assume a DTO type before validation
69
+ return value;
70
+ }
71
+ // webpieces-disable no-function-outside-class -- portable stateless IPC primitive; no platform DI container exists on this boundary
72
+ static parse(json) {
73
+ const value = IpcProtocol.record(JSON.parse(json));
74
+ if (value['version'] !== 1)
75
+ throw new errors_1.InternalError('Unsupported IPC protocol version');
76
+ const raw = IpcProtocol.record(value['context']);
77
+ const context = new IpcCallContext(raw['txId'], raw['callId'], raw['parentCallId']);
78
+ switch (value['type']) {
79
+ case 'request':
80
+ IpcContract_1.IpcIdentity.assert(value['apiId'], 'API');
81
+ IpcContract_1.IpcIdentity.assert(value['methodId'], 'method');
82
+ if (!Object.prototype.hasOwnProperty.call(value, 'body'))
83
+ throw new errors_1.InternalError('Missing IPC request body');
84
+ return new IpcRequest(value['apiId'], value['methodId'], context, value['body']);
85
+ case 'success':
86
+ if (!Object.prototype.hasOwnProperty.call(value, 'body'))
87
+ throw new errors_1.InternalError('Missing IPC success body');
88
+ return new IpcSuccess(context, value['body']);
89
+ case 'failure':
90
+ return new IpcFailure(context,
91
+ // webpieces-disable no-any-unknown -- untrusted IPC data is schema-validated; generic dispatch cannot assume a DTO type before validation
92
+ IpcProtocol.record(value['error']));
93
+ default:
94
+ throw new errors_1.InternalError('Invalid IPC message discriminator');
95
+ }
96
+ }
97
+ // webpieces-disable no-function-outside-class -- portable stateless IPC primitive; no platform DI container exists on this boundary
98
+ static sameContext(a, b) {
99
+ return a.callId === b.callId && a.txId === b.txId && a.parentCallId === b.parentCallId;
100
+ }
101
+ }
102
+ exports.IpcProtocol = IpcProtocol;
103
+ //# sourceMappingURL=IpcProtocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IpcProtocol.js","sourceRoot":"","sources":["../../../../../../packages/core/core-util/src/ipc/IpcProtocol.ts"],"names":[],"mappings":";;;AAAA,sCAA2D;AAC3D,+CAA4C;AAE5C,MAAa,cAA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,KAAK,SAAS;gBACV,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC;oBACpD,MAAM,IAAI,sBAAa,CAAC,0BAA0B,CAAC,CAAC;gBACxD,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;YAClD,KAAK,SAAS;gBACV,OAAO,IAAI,UAAU,CACjB,OAAO;gBACP,0IAA0I;gBAC1I,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAA+B,CACnE,CAAC;YACN;gBACI,MAAM,IAAI,sBAAa,CAAC,mCAAmC,CAAC,CAAC;QACrE,CAAC;IACL,CAAC;IAED,oIAAoI;IACpI,MAAM,CAAC,WAAW,CAAC,CAAiB,EAAE,CAAiB;QACnD,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,YAAY,KAAK,CAAC,CAAC,YAAY,CAAC;IAC3F,CAAC;CACJ;AA9CD,kCA8CC","sourcesContent":["import { ApiErrorPayload, InternalError } from '../errors';\nimport { IpcIdentity } from './IpcContract';\n\nexport class IpcCallContext {\n constructor(\n readonly txId: string,\n readonly callId: string,\n readonly parentCallId?: string,\n ) {\n IpcIdentity.assert(txId, 'transaction');\n IpcIdentity.assert(callId, 'call');\n if (parentCallId !== undefined) IpcIdentity.assert(parentCallId, 'parent call');\n }\n}\n\nexport class IpcRequest {\n readonly version = 1;\n readonly type = 'request';\n constructor(\n readonly apiId: string,\n readonly methodId: string,\n readonly context: IpcCallContext,\n // webpieces-disable no-any-unknown -- untrusted IPC data is schema-validated; generic dispatch cannot assume a DTO type before validation\n readonly body: unknown,\n ) {}\n}\nexport class IpcSuccess {\n readonly version = 1;\n readonly type = 'success';\n constructor(\n readonly context: IpcCallContext,\n // webpieces-disable no-any-unknown -- untrusted IPC data is schema-validated; generic dispatch cannot assume a DTO type before validation\n readonly body: unknown,\n ) {}\n}\nexport class IpcFailure {\n readonly version = 1;\n readonly type = 'failure';\n constructor(\n readonly context: IpcCallContext,\n readonly error: ApiErrorPayload,\n ) {}\n}\nexport type IpcReply = IpcSuccess | IpcFailure;\nexport type IpcMessage = IpcRequest | IpcReply;\n\nexport class IpcProtocol {\n // webpieces-disable no-function-outside-class -- portable stateless IPC primitive; no platform DI container exists on this boundary; webpieces-disable no-any-unknown -- untrusted IPC data is schema-validated; generic dispatch cannot assume a DTO type before validation\n static record(value: unknown): Record<string, unknown> {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) {\n throw new InternalError('Malformed IPC envelope');\n }\n // webpieces-disable no-any-unknown -- untrusted IPC data is schema-validated; generic dispatch cannot assume a DTO type before validation\n return value as Record<string, unknown>;\n }\n\n // webpieces-disable no-function-outside-class -- portable stateless IPC primitive; no platform DI container exists on this boundary\n static parse(json: string): IpcMessage {\n const value = IpcProtocol.record(JSON.parse(json));\n if (value['version'] !== 1) throw new InternalError('Unsupported IPC protocol version');\n const raw = IpcProtocol.record(value['context']);\n const context = new IpcCallContext(\n raw['txId'] as string,\n raw['callId'] as string,\n raw['parentCallId'] as string | undefined,\n );\n switch (value['type']) {\n case 'request':\n IpcIdentity.assert(value['apiId'], 'API');\n IpcIdentity.assert(value['methodId'], 'method');\n if (!Object.prototype.hasOwnProperty.call(value, 'body'))\n throw new InternalError('Missing IPC request body');\n return new IpcRequest(value['apiId'], value['methodId'], context, value['body']);\n case 'success':\n if (!Object.prototype.hasOwnProperty.call(value, 'body'))\n throw new InternalError('Missing IPC success body');\n return new IpcSuccess(context, value['body']);\n case 'failure':\n return new IpcFailure(\n context,\n // webpieces-disable no-any-unknown -- untrusted IPC data is schema-validated; generic dispatch cannot assume a DTO type before validation\n IpcProtocol.record(value['error']) as unknown as ApiErrorPayload,\n );\n default:\n throw new InternalError('Invalid IPC message discriminator');\n }\n }\n\n // webpieces-disable no-function-outside-class -- portable stateless IPC primitive; no platform DI container exists on this boundary\n static sameContext(a: IpcCallContext, b: IpcCallContext): boolean {\n return a.callId === b.callId && a.txId === b.txId && a.parentCallId === b.parentCallId;\n }\n}\n"]}
@@ -0,0 +1,14 @@
1
+ export { IpcContract, IpcMethod, IpcVoidSchema } from './IpcContract';
2
+ export type { IpcSchema, IpcMethods, IpcApiType } from './IpcContract';
3
+ export { IpcCallContext, IpcRequest, IpcSuccess, IpcFailure, IpcProtocol } from './IpcProtocol';
4
+ export type { IpcReply, IpcMessage } from './IpcProtocol';
5
+ export { IpcConnection, IpcConnectionOptions, IpcTransportError, IpcErrors } from './IpcConnection';
6
+ export type { IpcTransport, IpcScheduler, IpcErrorOwner } from './IpcConnection';
7
+ export { IpcCallLogger } from './IpcLogging';
8
+ export type { IpcLogging } from './IpcLogging';
9
+ export { MaskSpec } from '../http/LogFieldMask';
10
+ export { ApiMethodInfo } from '../http/ApiMethodInfo';
11
+ export { LogApiCallImpl } from '../http/LogApiCall';
12
+ export type { ApiCallContext } from '../http/ApiCallContext';
13
+ export { TimeoutError } from '../http/TimeoutError';
14
+ export { toError } from '../lib/errorUtils';
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toError = exports.TimeoutError = exports.LogApiCallImpl = exports.ApiMethodInfo = exports.MaskSpec = exports.IpcCallLogger = exports.IpcErrors = exports.IpcTransportError = exports.IpcConnectionOptions = exports.IpcConnection = exports.IpcProtocol = exports.IpcFailure = exports.IpcSuccess = exports.IpcRequest = exports.IpcCallContext = exports.IpcVoidSchema = exports.IpcMethod = exports.IpcContract = void 0;
4
+ var IpcContract_1 = require("./IpcContract");
5
+ Object.defineProperty(exports, "IpcContract", { enumerable: true, get: function () { return IpcContract_1.IpcContract; } });
6
+ Object.defineProperty(exports, "IpcMethod", { enumerable: true, get: function () { return IpcContract_1.IpcMethod; } });
7
+ Object.defineProperty(exports, "IpcVoidSchema", { enumerable: true, get: function () { return IpcContract_1.IpcVoidSchema; } });
8
+ var IpcProtocol_1 = require("./IpcProtocol");
9
+ Object.defineProperty(exports, "IpcCallContext", { enumerable: true, get: function () { return IpcProtocol_1.IpcCallContext; } });
10
+ Object.defineProperty(exports, "IpcRequest", { enumerable: true, get: function () { return IpcProtocol_1.IpcRequest; } });
11
+ Object.defineProperty(exports, "IpcSuccess", { enumerable: true, get: function () { return IpcProtocol_1.IpcSuccess; } });
12
+ Object.defineProperty(exports, "IpcFailure", { enumerable: true, get: function () { return IpcProtocol_1.IpcFailure; } });
13
+ Object.defineProperty(exports, "IpcProtocol", { enumerable: true, get: function () { return IpcProtocol_1.IpcProtocol; } });
14
+ var IpcConnection_1 = require("./IpcConnection");
15
+ Object.defineProperty(exports, "IpcConnection", { enumerable: true, get: function () { return IpcConnection_1.IpcConnection; } });
16
+ Object.defineProperty(exports, "IpcConnectionOptions", { enumerable: true, get: function () { return IpcConnection_1.IpcConnectionOptions; } });
17
+ Object.defineProperty(exports, "IpcTransportError", { enumerable: true, get: function () { return IpcConnection_1.IpcTransportError; } });
18
+ Object.defineProperty(exports, "IpcErrors", { enumerable: true, get: function () { return IpcConnection_1.IpcErrors; } });
19
+ var IpcLogging_1 = require("./IpcLogging");
20
+ Object.defineProperty(exports, "IpcCallLogger", { enumerable: true, get: function () { return IpcLogging_1.IpcCallLogger; } });
21
+ var LogFieldMask_1 = require("../http/LogFieldMask");
22
+ Object.defineProperty(exports, "MaskSpec", { enumerable: true, get: function () { return LogFieldMask_1.MaskSpec; } });
23
+ var ApiMethodInfo_1 = require("../http/ApiMethodInfo");
24
+ Object.defineProperty(exports, "ApiMethodInfo", { enumerable: true, get: function () { return ApiMethodInfo_1.ApiMethodInfo; } });
25
+ var LogApiCall_1 = require("../http/LogApiCall");
26
+ Object.defineProperty(exports, "LogApiCallImpl", { enumerable: true, get: function () { return LogApiCall_1.LogApiCallImpl; } });
27
+ var TimeoutError_1 = require("../http/TimeoutError");
28
+ Object.defineProperty(exports, "TimeoutError", { enumerable: true, get: function () { return TimeoutError_1.TimeoutError; } });
29
+ var errorUtils_1 = require("../lib/errorUtils");
30
+ Object.defineProperty(exports, "toError", { enumerable: true, get: function () { return errorUtils_1.toError; } });
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/core/core-util/src/ipc/index.ts"],"names":[],"mappings":";;;AAAA,6CAAsE;AAA7D,0GAAA,WAAW,OAAA;AAAE,wGAAA,SAAS,OAAA;AAAE,4GAAA,aAAa,OAAA;AAE9C,6CAAgG;AAAvF,6GAAA,cAAc,OAAA;AAAE,yGAAA,UAAU,OAAA;AAAE,yGAAA,UAAU,OAAA;AAAE,yGAAA,UAAU,OAAA;AAAE,0GAAA,WAAW,OAAA;AAExE,iDAAoG;AAA3F,8GAAA,aAAa,OAAA;AAAE,qHAAA,oBAAoB,OAAA;AAAE,kHAAA,iBAAiB,OAAA;AAAE,0GAAA,SAAS,OAAA;AAE1E,2CAA6C;AAApC,2GAAA,aAAa,OAAA;AAEtB,qDAAgD;AAAvC,wGAAA,QAAQ,OAAA;AACjB,uDAAsD;AAA7C,8GAAA,aAAa,OAAA;AACtB,iDAAoD;AAA3C,4GAAA,cAAc,OAAA;AAEvB,qDAAoD;AAA3C,4GAAA,YAAY,OAAA;AAErB,gDAA4C;AAAnC,qGAAA,OAAO,OAAA","sourcesContent":["export { IpcContract, IpcMethod, IpcVoidSchema } from './IpcContract';\nexport type { IpcSchema, IpcMethods, IpcApiType } from './IpcContract';\nexport { IpcCallContext, IpcRequest, IpcSuccess, IpcFailure, IpcProtocol } from './IpcProtocol';\nexport type { IpcReply, IpcMessage } from './IpcProtocol';\nexport { IpcConnection, IpcConnectionOptions, IpcTransportError, IpcErrors } from './IpcConnection';\nexport type { IpcTransport, IpcScheduler, IpcErrorOwner } from './IpcConnection';\nexport { IpcCallLogger } from './IpcLogging';\nexport type { IpcLogging } from './IpcLogging';\nexport { MaskSpec } from '../http/LogFieldMask';\nexport { ApiMethodInfo } from '../http/ApiMethodInfo';\nexport { LogApiCallImpl } from '../http/LogApiCall';\nexport type { ApiCallContext } from '../http/ApiCallContext';\nexport { TimeoutError } from '../http/TimeoutError';\n\nexport { toError } from '../lib/errorUtils';\n"]}