@privateaim/server-telemetry-kit 0.8.21 → 0.8.22

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 (108) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/components/event/constants.d.ts +3 -4
  3. package/dist/components/event/constants.d.ts.map +1 -1
  4. package/dist/components/event/handlers/create/types.d.ts +1 -0
  5. package/dist/components/event/handlers/create/types.d.ts.map +1 -1
  6. package/dist/components/event/index.d.ts +2 -0
  7. package/dist/components/event/index.d.ts.map +1 -1
  8. package/dist/components/event/module.d.ts +9 -0
  9. package/dist/components/event/module.d.ts.map +1 -0
  10. package/dist/components/event/singleton.d.ts +4 -0
  11. package/dist/components/event/singleton.d.ts.map +1 -0
  12. package/dist/components/event/types.d.ts +10 -28
  13. package/dist/components/event/types.d.ts.map +1 -1
  14. package/dist/components/log/index.d.ts +2 -0
  15. package/dist/components/log/index.d.ts.map +1 -1
  16. package/dist/components/log/module.d.ts +8 -0
  17. package/dist/components/log/module.d.ts.map +1 -0
  18. package/dist/components/log/singleton.d.ts +4 -0
  19. package/dist/components/log/singleton.d.ts.map +1 -0
  20. package/dist/core/event/subscriber.d.ts.map +1 -1
  21. package/dist/index.mjs +226 -0
  22. package/dist/index.mjs.map +1 -0
  23. package/dist/services/index.d.ts +0 -2
  24. package/dist/services/index.d.ts.map +1 -1
  25. package/package.json +19 -9
  26. package/rollup.config.mjs +14 -0
  27. package/src/components/event/constants.ts +3 -4
  28. package/src/components/event/handlers/create/types.ts +2 -0
  29. package/src/components/event/index.ts +2 -0
  30. package/src/components/event/module.ts +30 -0
  31. package/src/{services → components}/event/singleton.ts +6 -6
  32. package/src/components/event/types.ts +10 -33
  33. package/src/components/log/index.ts +2 -0
  34. package/src/components/log/module.ts +26 -0
  35. package/src/{services → components}/log/singleton.ts +6 -6
  36. package/src/core/event/subscriber.ts +4 -7
  37. package/src/services/index.ts +0 -2
  38. package/src/services/logger/transport.ts +1 -1
  39. package/dist/components/event/constants.js +0 -31
  40. package/dist/components/event/constants.js.map +0 -1
  41. package/dist/components/event/handlers/create/index.js +0 -24
  42. package/dist/components/event/handlers/create/index.js.map +0 -1
  43. package/dist/components/event/handlers/create/types.js +0 -9
  44. package/dist/components/event/handlers/create/types.js.map +0 -1
  45. package/dist/components/event/handlers/index.js +0 -24
  46. package/dist/components/event/handlers/index.js.map +0 -1
  47. package/dist/components/event/index.js +0 -26
  48. package/dist/components/event/index.js.map +0 -1
  49. package/dist/components/event/types.js +0 -9
  50. package/dist/components/event/types.js.map +0 -1
  51. package/dist/components/index.js +0 -25
  52. package/dist/components/index.js.map +0 -1
  53. package/dist/components/log/constants.js +0 -30
  54. package/dist/components/log/constants.js.map +0 -1
  55. package/dist/components/log/handlers/index.js +0 -24
  56. package/dist/components/log/handlers/index.js.map +0 -1
  57. package/dist/components/log/handlers/write/index.js +0 -24
  58. package/dist/components/log/handlers/write/index.js.map +0 -1
  59. package/dist/components/log/handlers/write/types.js +0 -9
  60. package/dist/components/log/handlers/write/types.js.map +0 -1
  61. package/dist/components/log/index.js +0 -26
  62. package/dist/components/log/index.js.map +0 -1
  63. package/dist/components/log/types.js +0 -9
  64. package/dist/components/log/types.js.map +0 -1
  65. package/dist/core/event/index.js +0 -24
  66. package/dist/core/event/index.js.map +0 -1
  67. package/dist/core/event/subscriber.js +0 -86
  68. package/dist/core/event/subscriber.js.map +0 -1
  69. package/dist/core/index.js +0 -24
  70. package/dist/core/index.js.map +0 -1
  71. package/dist/index.js +0 -26
  72. package/dist/index.js.map +0 -1
  73. package/dist/services/event/index.d.ts +0 -3
  74. package/dist/services/event/index.d.ts.map +0 -1
  75. package/dist/services/event/index.js +0 -25
  76. package/dist/services/event/index.js.map +0 -1
  77. package/dist/services/event/module.d.ts +0 -6
  78. package/dist/services/event/module.d.ts.map +0 -1
  79. package/dist/services/event/module.js +0 -47
  80. package/dist/services/event/module.js.map +0 -1
  81. package/dist/services/event/singleton.d.ts +0 -4
  82. package/dist/services/event/singleton.d.ts.map +0 -1
  83. package/dist/services/event/singleton.js +0 -24
  84. package/dist/services/event/singleton.js.map +0 -1
  85. package/dist/services/index.js +0 -26
  86. package/dist/services/index.js.map +0 -1
  87. package/dist/services/log/index.d.ts +0 -3
  88. package/dist/services/log/index.d.ts.map +0 -1
  89. package/dist/services/log/index.js +0 -25
  90. package/dist/services/log/index.js.map +0 -1
  91. package/dist/services/log/module.d.ts +0 -6
  92. package/dist/services/log/module.d.ts.map +0 -1
  93. package/dist/services/log/module.js +0 -50
  94. package/dist/services/log/module.js.map +0 -1
  95. package/dist/services/log/singleton.d.ts +0 -4
  96. package/dist/services/log/singleton.d.ts.map +0 -1
  97. package/dist/services/log/singleton.js +0 -24
  98. package/dist/services/log/singleton.js.map +0 -1
  99. package/dist/services/logger/index.js +0 -25
  100. package/dist/services/logger/index.js.map +0 -1
  101. package/dist/services/logger/transport.js +0 -76
  102. package/dist/services/logger/transport.js.map +0 -1
  103. package/dist/services/logger/type.js +0 -9
  104. package/dist/services/logger/type.js.map +0 -1
  105. package/src/services/event/index.ts +0 -9
  106. package/src/services/event/module.ts +0 -56
  107. package/src/services/log/index.ts +0 -9
  108. package/src/services/log/module.ts +0 -60
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscriber.js","sourceRoot":"","sources":["../../../src/core/event/subscriber.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA+B;AAE/B,uDAAmD;AAEnD,6DAAuD;AAEvD,yCAAuD;AACvD,6CAAyF;AAEzF,MAAa,kBAAkB;IAC3B,KAAK,CAAC,MAAM,CAAC,GAA6B;QACtC,IAAI,GAAG,CAAC,QAAQ,CAAC,QAAQ,KAAK,0BAAU,CAAC,KAAK,EAAE,CAAC;YAC7C,OAAO;QACX,CAAC;QAED,MAAM,MAAM,GAAoB;YAC5B,QAAQ,EAAE,GAAG,CAAC,QAAQ,CAAC,QAAQ;YAE/B,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,KAA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AAE,CAAC;gBACnC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;gBAEpB,oBAAoB;gBACpB,IAAI,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;oBACtB,SAAS;gBACb,CAAC;gBAED,IAAI,IAAA,cAAQ,EAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;oBAC1D,SAAS;gBACb,CAAC;gBAED,IAAI,CAAC,IAAA,cAAO,EAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;oBACjD,IAAI,CAAC,GAAG,CAAC,GAAG;wBACR,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC;wBACnB,QAAQ,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC;qBAClC,CAAC;gBACN,CAAC;YACL,CAAC;YAED,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACrB,CAAC;QAED,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;QAEnB,IAAI,IAAA,wCAA6B,GAAE,EAAE,CAAC;YAClC,MAAM,YAAY,GAAG,IAAA,mCAAwB,GAAE,CAAC;YAChD,MAAM,YAAY,CAAC,OAAO,CAAC;gBACvB,OAAO,EAAE,QAAQ;gBACjB,IAAI,EAAE,MAAM;aACf,CAAC,CAAC;YAEH,OAAO;QACX,CAAC;QAED,IAAA,sBAAS,GAAE,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;IAC3E,CAAC;CACJ;AA3FD,gDA2FC"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2025.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./event"), exports);
24
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,0CAAwB"}
package/dist/index.js DELETED
@@ -1,26 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2025.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./components"), exports);
24
- __exportStar(require("./core"), exports);
25
- __exportStar(require("./services"), exports);
26
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,yCAAuB;AACvB,6CAA2B"}
@@ -1,3 +0,0 @@
1
- export * from './module';
2
- export * from './singleton';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/event/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2025.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./module"), exports);
24
- __exportStar(require("./singleton"), exports);
25
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/event/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,2CAAyB;AACzB,8CAA4B"}
@@ -1,6 +0,0 @@
1
- import type { EventCommandContext, EventEventContext } from '../../components';
2
- export declare class EventComponentService {
3
- command(ctx: EventCommandContext): Promise<void>;
4
- event(ctx: EventEventContext): Promise<void>;
5
- }
6
- //# sourceMappingURL=module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/services/event/module.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG/E,qBAAa,qBAAqB;IACxB,OAAO,CAAC,GAAG,EAAE,mBAAmB;IAsBhC,KAAK,CAAC,GAAG,EAAE,iBAAiB;CAqBrC"}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2025.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.EventComponentService = void 0;
10
- const server_kit_1 = require("@privateaim/server-kit");
11
- const components_1 = require("../../components");
12
- class EventComponentService {
13
- async command(ctx) {
14
- if ((0, server_kit_1.isQueueRouterUsable)()) {
15
- const queueRouter = (0, server_kit_1.useQueueRouter)();
16
- const queueRouterPayload = (0, server_kit_1.buildQueueRouterPublishPayload)({
17
- type: ctx.command,
18
- data: ctx.data,
19
- metadata: {
20
- routing: components_1.EventTaskQueueRouterRouting,
21
- },
22
- });
23
- await queueRouter.publish(queueRouterPayload);
24
- return;
25
- }
26
- throw new Error(`Event command ${ctx.command} can not be executed.`);
27
- // todo: execute component directly
28
- }
29
- async event(ctx) {
30
- if ((0, server_kit_1.isQueueRouterUsable)()) {
31
- const queueRouter = (0, server_kit_1.useQueueRouter)();
32
- const queueRouterPayload = (0, server_kit_1.buildQueueRouterPublishPayload)({
33
- type: ctx.event,
34
- data: ctx.data,
35
- metadata: {
36
- routing: components_1.EventEventQueueRouterRouting,
37
- },
38
- });
39
- await queueRouter.publish(queueRouterPayload);
40
- return;
41
- }
42
- throw new Error(`Event event ${ctx.event} can not be transmitted.`);
43
- // todo: execute component directly
44
- }
45
- }
46
- exports.EventComponentService = EventComponentService;
47
- //# sourceMappingURL=module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/services/event/module.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,uDAA6G;AAE7G,iDAA6F;AAE7F,MAAa,qBAAqB;IAC9B,KAAK,CAAC,OAAO,CAAC,GAAwB;QAClC,IAAI,IAAA,gCAAmB,GAAE,EAAE,CAAC;YACxB,MAAM,WAAW,GAAG,IAAA,2BAAc,GAAE,CAAC;YAErC,MAAM,kBAAkB,GAAG,IAAA,2CAA8B,EAAC;gBACtD,IAAI,EAAE,GAAG,CAAC,OAAO;gBACjB,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,QAAQ,EAAE;oBACN,OAAO,EAAE,wCAA2B;iBACvC;aACJ,CAAC,CAAC;YAEH,MAAM,WAAW,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;YAE9C,OAAO;QACX,CAAC;QAED,MAAM,IAAI,KAAK,CAAC,iBAAiB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC;QAErE,mCAAmC;IACvC,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,GAAsB;QAC9B,IAAI,IAAA,gCAAmB,GAAE,EAAE,CAAC;YACxB,MAAM,WAAW,GAAG,IAAA,2BAAc,GAAE,CAAC;YAErC,MAAM,kBAAkB,GAAG,IAAA,2CAA8B,EAAC;gBACtD,IAAI,EAAE,GAAG,CAAC,KAAK;gBACf,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,QAAQ,EAAE;oBACN,OAAO,EAAE,yCAA4B;iBACxC;aACJ,CAAC,CAAC;YAEH,MAAM,WAAW,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;YAE9C,OAAO;QACX,CAAC;QAED,MAAM,IAAI,KAAK,CAAC,eAAe,GAAG,CAAC,KAAK,0BAA0B,CAAC,CAAC;QAEpE,mCAAmC;IACvC,CAAC;CACJ;AA5CD,sDA4CC"}
@@ -1,4 +0,0 @@
1
- import { EventComponentService } from './module';
2
- export declare function isEventComponentServiceUsable(): boolean;
3
- export declare function useEventComponentService(): EventComponentService;
4
- //# sourceMappingURL=singleton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"singleton.d.ts","sourceRoot":"","sources":["../../../src/services/event/singleton.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAOjD,wBAAgB,6BAA6B,YAE5C;AAED,wBAAgB,wBAAwB,IAAI,qBAAqB,CAEhE"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.isEventComponentServiceUsable = isEventComponentServiceUsable;
10
- exports.useEventComponentService = useEventComponentService;
11
- const singa_1 = require("singa");
12
- const server_kit_1 = require("@privateaim/server-kit");
13
- const module_1 = require("./module");
14
- const instance = (0, singa_1.singa)({
15
- name: 'eventComponentService',
16
- factory: () => new module_1.EventComponentService(),
17
- });
18
- function isEventComponentServiceUsable() {
19
- return (0, server_kit_1.isQueueRouterUsable)();
20
- }
21
- function useEventComponentService() {
22
- return instance.use();
23
- }
24
- //# sourceMappingURL=singleton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"singleton.js","sourceRoot":"","sources":["../../../src/services/event/singleton.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAWH,sEAEC;AAED,4DAEC;AAfD,iCAA8B;AAC9B,uDAA6D;AAC7D,qCAAiD;AAEjD,MAAM,QAAQ,GAAG,IAAA,aAAK,EAAwB;IAC1C,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,8BAAqB,EAAE;CAC7C,CAAC,CAAC;AAEH,SAAgB,6BAA6B;IACzC,OAAO,IAAA,gCAAmB,GAAE,CAAC;AACjC,CAAC;AAED,SAAgB,wBAAwB;IACpC,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC;AAC1B,CAAC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2025.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./event"), exports);
24
- __exportStar(require("./log"), exports);
25
- __exportStar(require("./logger"), exports);
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,wCAAsB;AACtB,2CAAyB"}
@@ -1,3 +0,0 @@
1
- export * from './module';
2
- export * from './singleton';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/log/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2025.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./module"), exports);
24
- __exportStar(require("./singleton"), exports);
25
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/log/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,2CAAyB;AACzB,8CAA4B"}
@@ -1,6 +0,0 @@
1
- import type { LogCommandContext, LogEventContext } from '../../components';
2
- export declare class LogComponentService {
3
- command(ctx: LogCommandContext): Promise<void>;
4
- event(ctx: LogEventContext): Promise<void>;
5
- }
6
- //# sourceMappingURL=module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/services/log/module.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE3E,qBAAa,mBAAmB;IACtB,OAAO,CAAC,GAAG,EAAE,iBAAiB;IA0B9B,KAAK,CAAC,GAAG,EAAE,eAAe;CAqBnC"}
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2025.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.LogComponentService = void 0;
10
- const server_kit_1 = require("@privateaim/server-kit");
11
- const components_1 = require("../../components");
12
- class LogComponentService {
13
- async command(ctx) {
14
- if ((0, server_kit_1.isQueueRouterUsable)()) {
15
- const queueRouter = (0, server_kit_1.useQueueRouter)();
16
- const queueRouterPayload = (0, server_kit_1.buildQueueRouterPublishPayload)({
17
- type: ctx.command,
18
- data: ctx.data,
19
- metadata: {
20
- routing: components_1.LogTaskQueueRouterRouting,
21
- },
22
- });
23
- await queueRouter.publish(queueRouterPayload, {
24
- logging: false,
25
- });
26
- return;
27
- }
28
- // todo: use http api client if possible
29
- throw new Error(`Log command ${ctx.command} can not be executed.`);
30
- // todo: execute component directly
31
- }
32
- async event(ctx) {
33
- if ((0, server_kit_1.isQueueRouterUsable)()) {
34
- const queueRouter = (0, server_kit_1.useQueueRouter)();
35
- const queueRouterPayload = (0, server_kit_1.buildQueueRouterPublishPayload)({
36
- type: ctx.event,
37
- data: ctx.data,
38
- metadata: {
39
- routing: components_1.LogEventQueueRouterRouting,
40
- },
41
- });
42
- await queueRouter.publish(queueRouterPayload);
43
- return;
44
- }
45
- throw new Error(`Log event ${ctx.event} can not be transmitted.`);
46
- // todo: execute component directly
47
- }
48
- }
49
- exports.LogComponentService = LogComponentService;
50
- //# sourceMappingURL=module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/services/log/module.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,uDAA6G;AAC7G,iDAAyF;AAGzF,MAAa,mBAAmB;IAC5B,KAAK,CAAC,OAAO,CAAC,GAAsB;QAChC,IAAI,IAAA,gCAAmB,GAAE,EAAE,CAAC;YACxB,MAAM,WAAW,GAAG,IAAA,2BAAc,GAAE,CAAC;YAErC,MAAM,kBAAkB,GAAG,IAAA,2CAA8B,EAAC;gBACtD,IAAI,EAAE,GAAG,CAAC,OAAO;gBACjB,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,QAAQ,EAAE;oBACN,OAAO,EAAE,sCAAyB;iBACrC;aACJ,CAAC,CAAC;YAEH,MAAM,WAAW,CAAC,OAAO,CAAC,kBAAkB,EAAE;gBAC1C,OAAO,EAAE,KAAK;aACjB,CAAC,CAAC;YAEH,OAAO;QACX,CAAC;QAED,wCAAwC;QAExC,MAAM,IAAI,KAAK,CAAC,eAAe,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC;QAEnE,mCAAmC;IACvC,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,GAAoB;QAC5B,IAAI,IAAA,gCAAmB,GAAE,EAAE,CAAC;YACxB,MAAM,WAAW,GAAG,IAAA,2BAAc,GAAE,CAAC;YAErC,MAAM,kBAAkB,GAAG,IAAA,2CAA8B,EAAC;gBACtD,IAAI,EAAE,GAAG,CAAC,KAAK;gBACf,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,QAAQ,EAAE;oBACN,OAAO,EAAE,uCAA0B;iBACtC;aACJ,CAAC,CAAC;YAEH,MAAM,WAAW,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;YAE9C,OAAO;QACX,CAAC;QAED,MAAM,IAAI,KAAK,CAAC,aAAa,GAAG,CAAC,KAAK,0BAA0B,CAAC,CAAC;QAElE,mCAAmC;IACvC,CAAC;CACJ;AAhDD,kDAgDC"}
@@ -1,4 +0,0 @@
1
- import { LogComponentService } from './module';
2
- export declare function isLogComponentServiceUsable(): boolean;
3
- export declare function useLogComponentService(): LogComponentService;
4
- //# sourceMappingURL=singleton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"singleton.d.ts","sourceRoot":"","sources":["../../../src/services/log/singleton.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAO/C,wBAAgB,2BAA2B,YAE1C;AAED,wBAAgB,sBAAsB,IAAI,mBAAmB,CAE5D"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.isLogComponentServiceUsable = isLogComponentServiceUsable;
10
- exports.useLogComponentService = useLogComponentService;
11
- const singa_1 = require("singa");
12
- const server_kit_1 = require("@privateaim/server-kit");
13
- const module_1 = require("./module");
14
- const instance = (0, singa_1.singa)({
15
- name: 'logComponentService',
16
- factory: () => new module_1.LogComponentService(),
17
- });
18
- function isLogComponentServiceUsable() {
19
- return (0, server_kit_1.isQueueRouterUsable)();
20
- }
21
- function useLogComponentService() {
22
- return instance.use();
23
- }
24
- //# sourceMappingURL=singleton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"singleton.js","sourceRoot":"","sources":["../../../src/services/log/singleton.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAWH,kEAEC;AAED,wDAEC;AAfD,iCAA8B;AAC9B,uDAA6D;AAC7D,qCAA+C;AAE/C,MAAM,QAAQ,GAAG,IAAA,aAAK,EAAsB;IACxC,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,4BAAmB,EAAE;CAC3C,CAAC,CAAC;AAEH,SAAgB,2BAA2B;IACvC,OAAO,IAAA,gCAAmB,GAAE,CAAC;AACjC,CAAC;AAED,SAAgB,sBAAsB;IAClC,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC;AAC1B,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2025.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./type"), exports);
24
- __exportStar(require("./transport"), exports);
25
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/logger/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,yCAAuB;AACvB,8CAA4B"}
@@ -1,76 +0,0 @@
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
- exports.LoggerTransport = void 0;
7
- const telemetry_kit_1 = require("@privateaim/telemetry-kit");
8
- const winston_transport_1 = __importDefault(require("winston-transport"));
9
- class LoggerTransport extends winston_transport_1.default {
10
- labels;
11
- save;
12
- constructor(options) {
13
- super(options);
14
- this.labels = options.labels || {};
15
- this.save = options.save;
16
- }
17
- log(info, next) {
18
- const payload = this.normalizeInput(info);
19
- Promise.resolve()
20
- .then(() => this.save(payload))
21
- .then(() => next());
22
- }
23
- normalizeInput(info) {
24
- const { message, timestamp, stack, ...data } = info;
25
- let date;
26
- if (typeof timestamp === 'string') {
27
- date = new Date(`${timestamp}`);
28
- }
29
- else {
30
- date = new Date();
31
- }
32
- const output = {
33
- message: stack || message,
34
- time: (BigInt(date.getTime()) * 1000000n).toString(),
35
- labels: { ...this.labels },
36
- level: telemetry_kit_1.LogLevel.DEBUG,
37
- service: 'unknown',
38
- channel: telemetry_kit_1.LogChannel.SYSTEM,
39
- };
40
- const flags = Object.values([
41
- telemetry_kit_1.LogFlag.LEVEL,
42
- telemetry_kit_1.LogFlag.CHANNEL,
43
- telemetry_kit_1.LogFlag.SERVICE,
44
- ]);
45
- let keys = Object.keys(output.labels);
46
- for (let i = 0; i < keys.length; i++) {
47
- const index = flags.indexOf(keys[i]);
48
- if (index !== -1) {
49
- output[keys[i]] = output.labels[keys[i]];
50
- delete output.labels[keys[i]];
51
- }
52
- }
53
- keys = Object.keys(data);
54
- for (let i = 0; i < keys.length; i++) {
55
- if (typeof keys[i] !== 'string') {
56
- continue;
57
- }
58
- const value = data[keys[i]];
59
- if (typeof value !== 'string' &&
60
- typeof value !== 'number' &&
61
- typeof value !== 'boolean') {
62
- continue;
63
- }
64
- const index = flags.indexOf(keys[i]);
65
- if (index === -1) {
66
- output.labels[keys[i]] = `${value}`;
67
- }
68
- else {
69
- output[keys[i]] = `${value}`;
70
- }
71
- }
72
- return output;
73
- }
74
- }
75
- exports.LoggerTransport = LoggerTransport;
76
- //# sourceMappingURL=transport.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transport.js","sourceRoot":"","sources":["../../../src/services/logger/transport.ts"],"names":[],"mappings":";;;;;;AAOA,6DAA0E;AAC1E,0EAAiD;AAGjD,MAAa,eAAgB,SAAQ,2BAAgB;IACvC,MAAM,CAAyB;IAE/B,IAAI,CAAyB;IAEvC,YAAY,OAA+B;QACvC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAC7B,CAAC;IAED,GAAG,CAAC,IA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 -1,9 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2025.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- //# sourceMappingURL=type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/services/logger/type.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -1,9 +0,0 @@
1
- /*
2
- * Copyright (c) 2025.
3
- * Author Peter Placzek (tada5hi)
4
- * For the full copyright and license information,
5
- * view the LICENSE file that was distributed with this source code.
6
- */
7
-
8
- export * from './module';
9
- export * from './singleton';
@@ -1,56 +0,0 @@
1
- /*
2
- * Copyright (c) 2025.
3
- * Author Peter Placzek (tada5hi)
4
- * For the full copyright and license information,
5
- * view the LICENSE file that was distributed with this source code.
6
- */
7
-
8
- import { buildQueueRouterPublishPayload, isQueueRouterUsable, useQueueRouter } from '@privateaim/server-kit';
9
- import type { EventCommandContext, EventEventContext } from '../../components';
10
- import { EventEventQueueRouterRouting, EventTaskQueueRouterRouting } from '../../components';
11
-
12
- export class EventComponentService {
13
- async command(ctx: EventCommandContext) {
14
- if (isQueueRouterUsable()) {
15
- const queueRouter = useQueueRouter();
16
-
17
- const queueRouterPayload = buildQueueRouterPublishPayload({
18
- type: ctx.command,
19
- data: ctx.data,
20
- metadata: {
21
- routing: EventTaskQueueRouterRouting,
22
- },
23
- });
24
-
25
- await queueRouter.publish(queueRouterPayload);
26
-
27
- return;
28
- }
29
-
30
- throw new Error(`Event command ${ctx.command} can not be executed.`);
31
-
32
- // todo: execute component directly
33
- }
34
-
35
- async event(ctx: EventEventContext) {
36
- if (isQueueRouterUsable()) {
37
- const queueRouter = useQueueRouter();
38
-
39
- const queueRouterPayload = buildQueueRouterPublishPayload({
40
- type: ctx.event,
41
- data: ctx.data,
42
- metadata: {
43
- routing: EventEventQueueRouterRouting,
44
- },
45
- });
46
-
47
- await queueRouter.publish(queueRouterPayload);
48
-
49
- return;
50
- }
51
-
52
- throw new Error(`Event event ${ctx.event} can not be transmitted.`);
53
-
54
- // todo: execute component directly
55
- }
56
- }
@@ -1,9 +0,0 @@
1
- /*
2
- * Copyright (c) 2025.
3
- * Author Peter Placzek (tada5hi)
4
- * For the full copyright and license information,
5
- * view the LICENSE file that was distributed with this source code.
6
- */
7
-
8
- export * from './module';
9
- export * from './singleton';