@rsdk/grpc.clients 4.0.0-next.7 → 4.0.0-next.9
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/CHANGELOG.md +10 -0
- package/dist/decorators/inject-client-factory.decorator.js +1 -2
- package/dist/decorators/inject-client-factory.decorator.js.map +1 -1
- package/dist/decorators/inject-client.decorator.js +1 -2
- package/dist/decorators/inject-client.decorator.js.map +1 -1
- package/package.json +9 -9
- package/src/decorators/inject-client-factory.decorator.ts +4 -2
- package/src/decorators/inject-client.decorator.ts +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.0.0-next.9](https://github.com/R-Vision/rsdk/compare/v4.0.0-next.8...v4.0.0-next.9) (2023-11-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rsdk/grpc.clients
|
|
9
|
+
|
|
10
|
+
## [4.0.0-next.8](https://github.com/R-Vision/rsdk/compare/v4.0.0-next.7...v4.0.0-next.8) (2023-11-29)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* Kafka batch producer ([#150](https://github.com/R-Vision/rsdk/issues/150)) ([2faa2f4](https://github.com/R-Vision/rsdk/commit/2faa2f41ca0dbb6d8a92cbf0ab20cf5cefeaf4e9))
|
|
15
|
+
|
|
6
16
|
## [4.0.0-next.7](https://github.com/R-Vision/rsdk/compare/v4.0.0-next.6...v4.0.0-next.7) (2023-11-21)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @rsdk/grpc.clients
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InjectGrpcClientsFactory = void 0;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
|
-
const constants_1 = require("@rsdk/core/dist/rsdk-metadata/constants");
|
|
6
5
|
const metadata_1 = require("@rsdk/metadata");
|
|
7
6
|
const module_generator_1 = require("../module.generator");
|
|
8
7
|
const token_factories_1 = require("../token.factories");
|
|
@@ -16,7 +15,7 @@ const token_factories_1 = require("../token.factories");
|
|
|
16
15
|
const InjectGrpcClientsFactory = (definition) => {
|
|
17
16
|
return (target, propertyKey, parameterIndex) => {
|
|
18
17
|
(0, common_1.Inject)((0, token_factories_1.getFactoryToken)(definition))(target, propertyKey, parameterIndex);
|
|
19
|
-
metadata_1.RsdkMetadata.setWithScope(target,
|
|
18
|
+
metadata_1.RsdkMetadata.setWithScope(target, metadata_1.PLATFORM_RAW_GLOBAL_METADATA_SCOPE, definition.fullName, module_generator_1.ModuleGenerator.createClientFactoryModuleDefinition(definition), true);
|
|
20
19
|
};
|
|
21
20
|
};
|
|
22
21
|
exports.InjectGrpcClientsFactory = InjectGrpcClientsFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inject-client-factory.decorator.js","sourceRoot":"","sources":["../../src/decorators/inject-client-factory.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"inject-client-factory.decorator.js","sourceRoot":"","sources":["../../src/decorators/inject-client-factory.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AACxC,6CAGwB;AAGxB,0DAAsD;AACtD,wDAAqD;AAWrD;;;;;;GAMG;AACI,MAAM,wBAAwB,GAAG,CACtC,UAAmC,EACf,EAAE;IACtB,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,EAAE;QAC7C,IAAA,eAAM,EAAC,IAAA,iCAAe,EAAC,UAAU,CAAC,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;QACzE,uBAAY,CAAC,YAAY,CACvB,MAAM,EACN,6CAAkC,EAClC,UAAU,CAAC,QAAQ,EACnB,kCAAe,CAAC,mCAAmC,CAAC,UAAU,CAAC,EAC/D,IAAI,CACL,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,wBAAwB,4BAanC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InjectGrpcClient = void 0;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
|
-
const constants_1 = require("@rsdk/core/dist/rsdk-metadata/constants");
|
|
6
5
|
const metadata_1 = require("@rsdk/metadata");
|
|
7
6
|
const module_generator_1 = require("../module.generator");
|
|
8
7
|
const token_factories_1 = require("../token.factories");
|
|
@@ -17,7 +16,7 @@ const token_factories_1 = require("../token.factories");
|
|
|
17
16
|
const InjectGrpcClient = (grpcServerDeclarationValue) => {
|
|
18
17
|
return (target, propertyKey, parameterIndex) => {
|
|
19
18
|
(0, common_1.Inject)((0, token_factories_1.getClientToken)(grpcServerDeclarationValue.definition))(target, propertyKey, parameterIndex);
|
|
20
|
-
metadata_1.RsdkMetadata.setWithScope(target,
|
|
19
|
+
metadata_1.RsdkMetadata.setWithScope(target, metadata_1.PLATFORM_RAW_GLOBAL_METADATA_SCOPE, `${grpcServerDeclarationValue.serverName}.${grpcServerDeclarationValue.serviceName}`, module_generator_1.ModuleGenerator.createClientModuleDefinition(grpcServerDeclarationValue.serverName, grpcServerDeclarationValue.definition), true);
|
|
21
20
|
};
|
|
22
21
|
};
|
|
23
22
|
exports.InjectGrpcClient = InjectGrpcClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inject-client.decorator.js","sourceRoot":"","sources":["../../src/decorators/inject-client.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"inject-client.decorator.js","sourceRoot":"","sources":["../../src/decorators/inject-client.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AACxC,6CAGwB;AAExB,0DAAsD;AAEtD,wDAAoD;AAEpD;;;;;;;GAOG;AACI,MAAM,gBAAgB,GAAG,CAI9B,0BAGC,EACmB,EAAE;IACtB,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,EAAE;QAC7C,IAAA,eAAM,EAAC,IAAA,gCAAc,EAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC,CAC3D,MAAM,EACN,WAAW,EACX,cAAc,CACf,CAAC;QACF,uBAAY,CAAC,YAAY,CACvB,MAAM,EACN,6CAAkC,EAClC,GAAG,0BAA0B,CAAC,UAAU,IAAI,0BAA0B,CAAC,WAAW,EAAE,EACpF,kCAAe,CAAC,4BAA4B,CAC1C,0BAA0B,CAAC,UAAU,EACrC,0BAA0B,CAAC,UAAU,CACtC,EACD,IAAI,CACL,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AA1BW,QAAA,gBAAgB,oBA0B3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdk/grpc.clients",
|
|
3
|
-
"version": "4.0.0-next.
|
|
3
|
+
"version": "4.0.0-next.9",
|
|
4
4
|
"description": "Grpc clients infrastructure",
|
|
5
5
|
"license": "Apache License 2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"@nestjs/common": "^10.0.0",
|
|
19
19
|
"@nestjs/core": "^10.0.0",
|
|
20
20
|
"@nestjs/microservices": "^10.0.0",
|
|
21
|
-
"@rsdk/autodoc.protocol": "^4.0.0-next.
|
|
22
|
-
"@rsdk/builtin-contract": "^4.0.0-next.
|
|
23
|
-
"@rsdk/common": "^4.0.0-next.
|
|
24
|
-
"@rsdk/core": "^4.0.0-next.
|
|
25
|
-
"@rsdk/grpc.common": "^4.0.0-next.
|
|
26
|
-
"@rsdk/logging": "^4.0.0-next.
|
|
27
|
-
"@rsdk/metadata": "^4.0.0-next.
|
|
21
|
+
"@rsdk/autodoc.protocol": "^4.0.0-next.9",
|
|
22
|
+
"@rsdk/builtin-contract": "^4.0.0-next.9",
|
|
23
|
+
"@rsdk/common": "^4.0.0-next.9",
|
|
24
|
+
"@rsdk/core": "^4.0.0-next.9",
|
|
25
|
+
"@rsdk/grpc.common": "^4.0.0-next.9",
|
|
26
|
+
"@rsdk/logging": "^4.0.0-next.9",
|
|
27
|
+
"@rsdk/metadata": "^4.0.0-next.9",
|
|
28
28
|
"nice-grpc": "^2.1.4",
|
|
29
29
|
"reflect-metadata": "^0.1.13",
|
|
30
30
|
"rxjs": "^7.8.1"
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"nice-grpc-opentelemetry": "^0.1.2"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "889228ebf4076fafc1c7fce4406b1ea5a3d985ff"
|
|
36
36
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Inject } from '@nestjs/common';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
PLATFORM_RAW_GLOBAL_METADATA_SCOPE,
|
|
4
|
+
RsdkMetadata,
|
|
5
|
+
} from '@rsdk/metadata';
|
|
4
6
|
import type { CompatServiceDefinition } from 'nice-grpc/lib/service-definitions';
|
|
5
7
|
|
|
6
8
|
import { ModuleGenerator } from '../module.generator';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Inject } from '@nestjs/common';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
PLATFORM_RAW_GLOBAL_METADATA_SCOPE,
|
|
4
|
+
RsdkMetadata,
|
|
5
|
+
} from '@rsdk/metadata';
|
|
4
6
|
|
|
5
7
|
import { ModuleGenerator } from '../module.generator';
|
|
6
8
|
import type { GrpcServerDeclarationValue } from '../servers/types';
|