@infineit-nestjs/services 1.0.19 → 1.0.20
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/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/services/index.d.ts +1 -0
- package/dist/cjs/services/index.js +1 -1
- package/dist/cjs/services/kafka.microservice.d.ts +2 -0
- package/dist/cjs/services/kafka.microservice.js +1 -0
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.js +1 -1
- package/dist/es/services/index.d.ts +1 -0
- package/dist/es/services/index.js +1 -1
- package/dist/es/services/kafka.microservice.d.ts +2 -0
- package/dist/es/services/kafka.microservice.js +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/services/index.d.ts +1 -0
- package/dist/types/services/kafka.microservice.d.ts +5 -0
- package/package.json +7 -5
package/dist/cjs/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './services/argon2.service';
|
|
|
2
2
|
export * from './services/data.transformer.service';
|
|
3
3
|
export * from './services/entity.action.service';
|
|
4
4
|
export * from './services/http.client.service';
|
|
5
|
+
export * from './services/kafka.microservice';
|
|
5
6
|
export * from './services/logger.service';
|
|
6
7
|
export * from './services/merge.service';
|
|
7
8
|
export * from './services/message.formatter.service';
|
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./services/argon2.service"),exports),e.__exportStar(require("./services/data.transformer.service"),exports),e.__exportStar(require("./services/entity.action.service"),exports),e.__exportStar(require("./services/http.client.service"),exports),e.__exportStar(require("./services/logger.service"),exports),e.__exportStar(require("./services/merge.service"),exports),e.__exportStar(require("./services/message.formatter.service"),exports),e.__exportStar(require("./services/pagination.service"),exports),e.__exportStar(require("./services/prisma.service"),exports),e.__exportStar(require("./services/resource.fetch.service"),exports),e.__exportStar(require("./services/util.service"),exports),e.__exportStar(require("./services/validator.service"),exports);
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./services/argon2.service"),exports),e.__exportStar(require("./services/data.transformer.service"),exports),e.__exportStar(require("./services/entity.action.service"),exports),e.__exportStar(require("./services/http.client.service"),exports),e.__exportStar(require("./services/kafka.microservice"),exports),e.__exportStar(require("./services/logger.service"),exports),e.__exportStar(require("./services/merge.service"),exports),e.__exportStar(require("./services/message.formatter.service"),exports),e.__exportStar(require("./services/pagination.service"),exports),e.__exportStar(require("./services/prisma.service"),exports),e.__exportStar(require("./services/resource.fetch.service"),exports),e.__exportStar(require("./services/util.service"),exports),e.__exportStar(require("./services/validator.service"),exports);
|
|
@@ -2,6 +2,7 @@ export * from './argon2.service';
|
|
|
2
2
|
export * from './data.transformer.service';
|
|
3
3
|
export * from './entity.action.service';
|
|
4
4
|
export * from './http.client.service';
|
|
5
|
+
export * from './kafka.microservice';
|
|
5
6
|
export * from './logger.service';
|
|
6
7
|
export * from './merge.service';
|
|
7
8
|
export * from './message.formatter.service';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./argon2.service"),exports),e.__exportStar(require("./data.transformer.service"),exports),e.__exportStar(require("./entity.action.service"),exports),e.__exportStar(require("./http.client.service"),exports),e.__exportStar(require("./logger.service"),exports),e.__exportStar(require("./merge.service"),exports),e.__exportStar(require("./message.formatter.service"),exports),e.__exportStar(require("./pagination.service"),exports),e.__exportStar(require("./prisma.service"),exports),e.__exportStar(require("./resource.fetch.service"),exports),e.__exportStar(require("./util.service"),exports),e.__exportStar(require("./validator.service"),exports);
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./argon2.service"),exports),e.__exportStar(require("./data.transformer.service"),exports),e.__exportStar(require("./entity.action.service"),exports),e.__exportStar(require("./http.client.service"),exports),e.__exportStar(require("./kafka.microservice"),exports),e.__exportStar(require("./logger.service"),exports),e.__exportStar(require("./merge.service"),exports),e.__exportStar(require("./message.formatter.service"),exports),e.__exportStar(require("./pagination.service"),exports),e.__exportStar(require("./prisma.service"),exports),e.__exportStar(require("./resource.fetch.service"),exports),e.__exportStar(require("./util.service"),exports),e.__exportStar(require("./validator.service"),exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InitKafkaConsumer=async function(o){const t=o.get(r.ConfigService);console.log(t.getOrThrow("kafka",{infer:!0}));const n=t.getOrThrow("kafka.consumerEnable",{infer:!0}),s=t.getOrThrow("kafka.brokers",{infer:!0}),i=t.getOrThrow("kafka.consumerClientId",{infer:!0}),a=t.getOrThrow("kafka.consumer.groupId",{infer:!0}),c=t.getOrThrow("kafka.autoCommit",{infer:!0}),f=t.getOrThrow("kafka.consumer",{infer:!0});try{n&&o.connectMicroservice({transport:e.Transport.KAFKA,options:{client:{clientId:i,brokers:s},consumer:{...f,groupId:a},run:{autoCommit:c}}})}catch(r){console.error("Failed to start Kafka microservice:",r),process.exit(1)}await o.startAllMicroservices()};const r=require("@nestjs/config"),e=require("@nestjs/microservices");
|
package/dist/es/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './services/argon2.service';
|
|
|
2
2
|
export * from './services/data.transformer.service';
|
|
3
3
|
export * from './services/entity.action.service';
|
|
4
4
|
export * from './services/http.client.service';
|
|
5
|
+
export * from './services/kafka.microservice';
|
|
5
6
|
export * from './services/logger.service';
|
|
6
7
|
export * from './services/merge.service';
|
|
7
8
|
export * from './services/message.formatter.service';
|
package/dist/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./services/argon2.service"),exports),e.__exportStar(require("./services/data.transformer.service"),exports),e.__exportStar(require("./services/entity.action.service"),exports),e.__exportStar(require("./services/http.client.service"),exports),e.__exportStar(require("./services/logger.service"),exports),e.__exportStar(require("./services/merge.service"),exports),e.__exportStar(require("./services/message.formatter.service"),exports),e.__exportStar(require("./services/pagination.service"),exports),e.__exportStar(require("./services/prisma.service"),exports),e.__exportStar(require("./services/resource.fetch.service"),exports),e.__exportStar(require("./services/util.service"),exports),e.__exportStar(require("./services/validator.service"),exports);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./services/argon2.service"),exports),e.__exportStar(require("./services/data.transformer.service"),exports),e.__exportStar(require("./services/entity.action.service"),exports),e.__exportStar(require("./services/http.client.service"),exports),e.__exportStar(require("./services/kafka.microservice"),exports),e.__exportStar(require("./services/logger.service"),exports),e.__exportStar(require("./services/merge.service"),exports),e.__exportStar(require("./services/message.formatter.service"),exports),e.__exportStar(require("./services/pagination.service"),exports),e.__exportStar(require("./services/prisma.service"),exports),e.__exportStar(require("./services/resource.fetch.service"),exports),e.__exportStar(require("./services/util.service"),exports),e.__exportStar(require("./services/validator.service"),exports);
|
|
@@ -2,6 +2,7 @@ export * from './argon2.service';
|
|
|
2
2
|
export * from './data.transformer.service';
|
|
3
3
|
export * from './entity.action.service';
|
|
4
4
|
export * from './http.client.service';
|
|
5
|
+
export * from './kafka.microservice';
|
|
5
6
|
export * from './logger.service';
|
|
6
7
|
export * from './merge.service';
|
|
7
8
|
export * from './message.formatter.service';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./argon2.service"),exports),e.__exportStar(require("./data.transformer.service"),exports),e.__exportStar(require("./entity.action.service"),exports),e.__exportStar(require("./http.client.service"),exports),e.__exportStar(require("./logger.service"),exports),e.__exportStar(require("./merge.service"),exports),e.__exportStar(require("./message.formatter.service"),exports),e.__exportStar(require("./pagination.service"),exports),e.__exportStar(require("./prisma.service"),exports),e.__exportStar(require("./resource.fetch.service"),exports),e.__exportStar(require("./util.service"),exports),e.__exportStar(require("./validator.service"),exports);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./argon2.service"),exports),e.__exportStar(require("./data.transformer.service"),exports),e.__exportStar(require("./entity.action.service"),exports),e.__exportStar(require("./http.client.service"),exports),e.__exportStar(require("./kafka.microservice"),exports),e.__exportStar(require("./logger.service"),exports),e.__exportStar(require("./merge.service"),exports),e.__exportStar(require("./message.formatter.service"),exports),e.__exportStar(require("./pagination.service"),exports),e.__exportStar(require("./prisma.service"),exports),e.__exportStar(require("./resource.fetch.service"),exports),e.__exportStar(require("./util.service"),exports),e.__exportStar(require("./validator.service"),exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.InitKafkaConsumer=async function(o){const t=o.get(r.ConfigService);console.log(t.getOrThrow("kafka",{infer:!0}));const n=t.getOrThrow("kafka.consumerEnable",{infer:!0}),s=t.getOrThrow("kafka.brokers",{infer:!0}),i=t.getOrThrow("kafka.consumerClientId",{infer:!0}),a=t.getOrThrow("kafka.consumer.groupId",{infer:!0}),c=t.getOrThrow("kafka.autoCommit",{infer:!0}),f=t.getOrThrow("kafka.consumer",{infer:!0});try{n&&o.connectMicroservice({transport:e.Transport.KAFKA,options:{client:{clientId:i,brokers:s},consumer:{...f,groupId:a},run:{autoCommit:c}}})}catch(r){console.error("Failed to start Kafka microservice:",r),process.exit(1)}await o.startAllMicroservices()};const r=require("@nestjs/config"),e=require("@nestjs/microservices");
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { Argon2Service } from './services/argon2.service.js';
|
|
|
2
2
|
export { DataTransformerService } from './services/data.transformer.service.js';
|
|
3
3
|
export { EntityActionService } from './services/entity.action.service.js';
|
|
4
4
|
export { HttpServiceClient } from './services/http.client.service.js';
|
|
5
|
+
export { InitKafkaConsumer } from './services/kafka.microservice.js';
|
|
5
6
|
export { ILogData, LogLevel, LoggerService } from './services/logger.service.js';
|
|
6
7
|
export { MergeService } from './services/merge.service.js';
|
|
7
8
|
export { MessageFormatterService } from './services/message.formatter.service.js';
|
|
@@ -2,6 +2,7 @@ export { Argon2Service } from './argon2.service.js';
|
|
|
2
2
|
export { DataTransformerService } from './data.transformer.service.js';
|
|
3
3
|
export { EntityActionService } from './entity.action.service.js';
|
|
4
4
|
export { HttpServiceClient } from './http.client.service.js';
|
|
5
|
+
export { InitKafkaConsumer } from './kafka.microservice.js';
|
|
5
6
|
export { ILogData, LogLevel, LoggerService } from './logger.service.js';
|
|
6
7
|
export { MergeService } from './merge.service.js';
|
|
7
8
|
export { MessageFormatterService } from './message.formatter.service.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infineit-nestjs/services",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"main": "./dist/cjs/index.js",
|
|
5
5
|
"module": "./dist/es/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -37,15 +37,17 @@
|
|
|
37
37
|
"dev": "concurrently -c blue,red -n tsc,rollup --kill-others \"tsc --watch -p . --preserveWatchOutput\" \"rollup --config --watch --no-watch.clearScreen\""
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@infineit-nestjs/core": "1.0.
|
|
41
|
-
"@infineit-nestjs/types": "1.0.
|
|
42
|
-
"@infineit-nestjs/utils": "1.0.
|
|
40
|
+
"@infineit-nestjs/core": "1.0.11",
|
|
41
|
+
"@infineit-nestjs/types": "1.0.4",
|
|
42
|
+
"@infineit-nestjs/utils": "1.0.21",
|
|
43
43
|
"@infineit/winston-logger": "^1.0.30",
|
|
44
44
|
"@nestjs/axios": "^4.0.0",
|
|
45
|
+
"@nestjs/microservices": "^11.1.2",
|
|
45
46
|
"@nestjs/terminus": "^11.0.0",
|
|
46
47
|
"@prisma/client": "^6.5.0",
|
|
47
48
|
"argon2": "^0.41.1",
|
|
48
49
|
"axios-retry": "^4.5.0",
|
|
50
|
+
"kafkajs": "^2.2.4",
|
|
49
51
|
"lodash": "^4.17.21",
|
|
50
52
|
"opossum": "^8.4.0",
|
|
51
53
|
"prom-client": "^15.1.3",
|
|
@@ -97,5 +99,5 @@
|
|
|
97
99
|
"publishConfig": {
|
|
98
100
|
"access": "public"
|
|
99
101
|
},
|
|
100
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "6fd0bf9a6e3fa9e80bf096631d22b12f917f7b27"
|
|
101
103
|
}
|