@conduitplatform/grpc-sdk 0.16.0-rc.2 → 0.16.0-rc.4
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/classes/ConduitAuthorizedResource.d.ts +1 -1
- package/dist/classes/ConduitAuthorizedResource.js +1 -5
- package/dist/classes/ConduitAuthorizedResource.js.map +1 -1
- package/dist/classes/ConduitModule.d.ts +3 -3
- package/dist/classes/ConduitModule.js +17 -24
- package/dist/classes/ConduitModule.js.map +1 -1
- package/dist/classes/ConduitSchema.d.ts +1 -1
- package/dist/classes/ConduitSchema.js +1 -5
- package/dist/classes/ConduitSchema.js.map +1 -1
- package/dist/classes/Error.js +1 -5
- package/dist/classes/Error.js.map +1 -1
- package/dist/classes/HealthCheck.js +11 -18
- package/dist/classes/HealthCheck.js.map +1 -1
- package/dist/classes/index.d.ts +5 -5
- package/dist/classes/index.js +5 -21
- package/dist/classes/index.js.map +1 -1
- package/dist/constants/enums/PlatformTypesEnum.js +2 -5
- package/dist/constants/enums/PlatformTypesEnum.js.map +1 -1
- package/dist/constants/enums/index.d.ts +1 -1
- package/dist/constants/enums/index.js +1 -17
- package/dist/constants/enums/index.js.map +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +1 -17
- package/dist/constants/index.js.map +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +49 -68
- package/dist/index.js.map +1 -1
- package/dist/interceptors/grpcSignedToken.js +3 -7
- package/dist/interceptors/grpcSignedToken.js.map +1 -1
- package/dist/interceptors/index.d.ts +2 -2
- package/dist/interceptors/index.js +2 -18
- package/dist/interceptors/index.js.map +1 -1
- package/dist/interceptors/moduleName.js +3 -7
- package/dist/interceptors/moduleName.js.map +1 -1
- package/dist/interfaces/ConduitMiddleware.d.ts +1 -1
- package/dist/interfaces/ConduitMiddleware.js +1 -2
- package/dist/interfaces/ConduitRoute.d.ts +2 -2
- package/dist/interfaces/ConduitRoute.js +1 -2
- package/dist/interfaces/ConduitRouteReturn.d.ts +1 -1
- package/dist/interfaces/ConduitRouteReturn.js +1 -5
- package/dist/interfaces/ConduitRouteReturn.js.map +1 -1
- package/dist/interfaces/ConduitSchemaExtension.d.ts +1 -1
- package/dist/interfaces/ConduitSchemaExtension.js +1 -2
- package/dist/interfaces/GrpcCallback.js +1 -2
- package/dist/interfaces/IConduitLogger.d.ts +1 -1
- package/dist/interfaces/IConduitLogger.js +1 -2
- package/dist/interfaces/IConduitMetrics.d.ts +1 -1
- package/dist/interfaces/IConduitMetrics.js +1 -2
- package/dist/interfaces/Indexable.js +1 -2
- package/dist/interfaces/Model.js +9 -12
- package/dist/interfaces/Model.js.map +1 -1
- package/dist/interfaces/Params.d.ts +1 -1
- package/dist/interfaces/Params.js +1 -2
- package/dist/interfaces/ProxyRoute.js +2 -5
- package/dist/interfaces/ProxyRoute.js.map +1 -1
- package/dist/interfaces/RawQuery.js +1 -2
- package/dist/interfaces/Route.d.ts +2 -2
- package/dist/interfaces/Route.js +2 -5
- package/dist/interfaces/Route.js.map +1 -1
- package/dist/interfaces/Socket.d.ts +2 -2
- package/dist/interfaces/Socket.js +1 -2
- package/dist/interfaces/UntypedArray.js +1 -2
- package/dist/interfaces/index.d.ts +16 -15
- package/dist/interfaces/index.js +16 -31
- package/dist/interfaces/index.js.map +1 -1
- package/dist/interfaces/types.d.ts +2 -2
- package/dist/interfaces/types.js +1 -2
- package/dist/modules/admin/index.d.ts +4 -4
- package/dist/modules/admin/index.js +4 -8
- package/dist/modules/admin/index.js.map +1 -1
- package/dist/modules/authentication/index.d.ts +4 -4
- package/dist/modules/authentication/index.js +4 -8
- package/dist/modules/authentication/index.js.map +1 -1
- package/dist/modules/authorization/index.d.ts +11 -11
- package/dist/modules/authorization/index.js +4 -8
- package/dist/modules/authorization/index.js.map +1 -1
- package/dist/modules/chat/index.d.ts +2 -2
- package/dist/modules/chat/index.js +4 -8
- package/dist/modules/chat/index.js.map +1 -1
- package/dist/modules/config/index.d.ts +5 -5
- package/dist/modules/config/index.js +14 -21
- package/dist/modules/config/index.js.map +1 -1
- package/dist/modules/core/index.d.ts +2 -2
- package/dist/modules/core/index.js +4 -8
- package/dist/modules/core/index.js.map +1 -1
- package/dist/modules/database/index.d.ts +8 -10
- package/dist/modules/database/index.js +4 -8
- package/dist/modules/database/index.js.map +1 -1
- package/dist/modules/email/index.d.ts +4 -3
- package/dist/modules/email/index.js +5 -8
- package/dist/modules/email/index.js.map +1 -1
- package/dist/modules/index.d.ts +12 -12
- package/dist/modules/index.js +12 -28
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/pushNotifications/index.d.ts +5 -5
- package/dist/modules/pushNotifications/index.js +4 -8
- package/dist/modules/pushNotifications/index.js.map +1 -1
- package/dist/modules/router/index.d.ts +5 -5
- package/dist/modules/router/index.js +4 -8
- package/dist/modules/router/index.js.map +1 -1
- package/dist/modules/sms/index.d.ts +2 -2
- package/dist/modules/sms/index.js +4 -8
- package/dist/modules/sms/index.js.map +1 -1
- package/dist/modules/storage/index.d.ts +4 -4
- package/dist/modules/storage/index.js +4 -8
- package/dist/modules/storage/index.js.map +1 -1
- package/dist/protoUtils/authentication.d.ts +2 -2
- package/dist/protoUtils/authentication.js +87 -95
- package/dist/protoUtils/authentication.js.map +1 -1
- package/dist/protoUtils/authorization.d.ts +2 -2
- package/dist/protoUtils/authorization.js +112 -120
- package/dist/protoUtils/authorization.js.map +1 -1
- package/dist/protoUtils/chat.d.ts +2 -2
- package/dist/protoUtils/chat.js +34 -40
- package/dist/protoUtils/chat.js.map +1 -1
- package/dist/protoUtils/core.d.ts +2 -2
- package/dist/protoUtils/core.js +138 -144
- package/dist/protoUtils/core.js.map +1 -1
- package/dist/protoUtils/database.d.ts +2 -2
- package/dist/protoUtils/database.js +180 -186
- package/dist/protoUtils/database.js.map +1 -1
- package/dist/protoUtils/email.d.ts +3 -2
- package/dist/protoUtils/email.js +52 -44
- package/dist/protoUtils/email.js.map +1 -1
- package/dist/protoUtils/google/protobuf/empty.d.ts +1 -1
- package/dist/protoUtils/google/protobuf/empty.js +5 -11
- package/dist/protoUtils/google/protobuf/empty.js.map +1 -1
- package/dist/protoUtils/grpc_health_check.d.ts +1 -1
- package/dist/protoUtils/grpc_health_check.js +18 -26
- package/dist/protoUtils/grpc_health_check.js.map +1 -1
- package/dist/protoUtils/index.d.ts +12 -12
- package/dist/protoUtils/index.js +12 -28
- package/dist/protoUtils/index.js.map +1 -1
- package/dist/protoUtils/module.d.ts +1 -1
- package/dist/protoUtils/module.js +61 -67
- package/dist/protoUtils/module.js.map +1 -1
- package/dist/protoUtils/push-notifications.d.ts +1 -1
- package/dist/protoUtils/push-notifications.js +49 -55
- package/dist/protoUtils/push-notifications.js.map +1 -1
- package/dist/protoUtils/router.d.ts +2 -2
- package/dist/protoUtils/router.js +57 -63
- package/dist/protoUtils/router.js.map +1 -1
- package/dist/protoUtils/sms.d.ts +1 -1
- package/dist/protoUtils/sms.js +32 -38
- package/dist/protoUtils/sms.js.map +1 -1
- package/dist/protoUtils/storage.d.ts +1 -1
- package/dist/protoUtils/storage.js +52 -58
- package/dist/protoUtils/storage.js.map +1 -1
- package/dist/types/db.js +1 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +6 -24
- package/dist/types/index.js.map +1 -1
- package/dist/utilities/EventBus.d.ts +1 -1
- package/dist/utilities/EventBus.js +5 -12
- package/dist/utilities/EventBus.js.map +1 -1
- package/dist/utilities/RedisManager.js +4 -11
- package/dist/utilities/RedisManager.js.map +1 -1
- package/dist/utilities/StateManager.d.ts +3 -3
- package/dist/utilities/StateManager.js +8 -15
- package/dist/utilities/StateManager.js.map +1 -1
- package/dist/utilities/env.js +3 -10
- package/dist/utilities/env.js.map +1 -1
- package/dist/utilities/index.d.ts +5 -5
- package/dist/utilities/index.js +5 -21
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/sleep.js +1 -5
- package/dist/utilities/sleep.js.map +1 -1
- package/package.json +10 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Resource_Permission, Resource_Relation } from '../protoUtils/
|
|
1
|
+
import { Resource_Permission, Resource_Relation } from '../protoUtils/index.js';
|
|
2
2
|
export declare class ConduitAuthorizedResource {
|
|
3
3
|
readonly name: string;
|
|
4
4
|
readonly relations: Resource_Relation[];
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConduitAuthorizedResource = void 0;
|
|
4
|
-
class ConduitAuthorizedResource {
|
|
1
|
+
export class ConduitAuthorizedResource {
|
|
5
2
|
constructor(name, relations, permissions) {
|
|
6
3
|
this.relations = [];
|
|
7
4
|
this.permissions = [];
|
|
@@ -24,5 +21,4 @@ class ConduitAuthorizedResource {
|
|
|
24
21
|
});
|
|
25
22
|
}
|
|
26
23
|
}
|
|
27
|
-
exports.ConduitAuthorizedResource = ConduitAuthorizedResource;
|
|
28
24
|
//# sourceMappingURL=ConduitAuthorizedResource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConduitAuthorizedResource.js","sourceRoot":"","sources":["../../src/classes/ConduitAuthorizedResource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConduitAuthorizedResource.js","sourceRoot":"","sources":["../../src/classes/ConduitAuthorizedResource.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,yBAAyB;IAKpC,YACE,IAAY,EACZ,SAAiD,EACjD,WAAoD;QAN7C,cAAS,GAAwB,EAAE,CAAC;QACpC,gBAAW,GAA0B,EAAE,CAAC;QAO/C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;YACrD,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;oBAC9C,CAAC,CAAE,SAAS,CAAC,QAAQ,CAAc;oBACnC,CAAC,CAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAc;aACxC,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;YAC3D,OAAO;gBACL,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;oBAC3C,CAAC,CAAE,WAAW,CAAC,UAAU,CAAc;oBACvC,CAAC,CAAE,CAAC,WAAW,CAAC,UAAU,CAAC,CAAc;aAC5C,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import { CompatServiceDefinition } from 'nice-grpc/lib/service-definitions';
|
|
3
3
|
import { Channel, Client } from 'nice-grpc';
|
|
4
|
-
import { ConduitModuleDefinition, HealthDefinition } from '../protoUtils';
|
|
4
|
+
import { ConduitModuleDefinition, HealthDefinition } from '../protoUtils/index.js';
|
|
5
5
|
import { EventEmitter } from 'events';
|
|
6
6
|
export declare class ConduitModule<T extends CompatServiceDefinition> {
|
|
7
7
|
readonly _clientName: string;
|
|
@@ -24,6 +24,6 @@ export declare class ConduitModule<T extends CompatServiceDefinition> {
|
|
|
24
24
|
initializeClient(type: T): Client<T>;
|
|
25
25
|
openConnection(): void;
|
|
26
26
|
closeConnection(): void;
|
|
27
|
-
check(service?: string): Promise<import("../
|
|
27
|
+
check(service?: string): Promise<import("../index.js").HealthCheckResponse_ServingStatus>;
|
|
28
28
|
watch(service?: string): Promise<void>;
|
|
29
29
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const nice_grpc_1 = require("nice-grpc");
|
|
9
|
-
const nice_grpc_client_middleware_retry_1 = require("nice-grpc-client-middleware-retry");
|
|
10
|
-
const protoUtils_1 = require("../protoUtils");
|
|
11
|
-
const events_1 = require("events");
|
|
12
|
-
const index_1 = __importDefault(require("../index"));
|
|
13
|
-
class ConduitModule {
|
|
1
|
+
import { getGrpcSignedTokenInterceptor, getModuleNameInterceptor, } from '../interceptors/index.js';
|
|
2
|
+
import { createChannel, createClientFactory } from 'nice-grpc';
|
|
3
|
+
import { retryMiddleware } from 'nice-grpc-client-middleware-retry';
|
|
4
|
+
import { ConduitModuleDefinition, HealthDefinition, } from '../protoUtils/index.js';
|
|
5
|
+
import { EventEmitter } from 'events';
|
|
6
|
+
import ConduitGrpcSdk from '../index.js';
|
|
7
|
+
export class ConduitModule {
|
|
14
8
|
constructor(_clientName, _serviceName, _serviceUrl, _grpcToken) {
|
|
15
9
|
this._clientName = _clientName;
|
|
16
10
|
this._serviceName = _serviceName;
|
|
17
11
|
this._serviceUrl = _serviceUrl;
|
|
18
12
|
this._grpcToken = _grpcToken;
|
|
19
|
-
this.healthCheckEmitter = new
|
|
13
|
+
this.healthCheckEmitter = new EventEmitter();
|
|
20
14
|
}
|
|
21
15
|
get client() {
|
|
22
16
|
return this._client;
|
|
@@ -51,29 +45,29 @@ class ConduitModule {
|
|
|
51
45
|
return;
|
|
52
46
|
}
|
|
53
47
|
// ConduitGrpcSdk.Logger.log(`Opening connection for ${this._serviceName}`);
|
|
54
|
-
this.channel =
|
|
48
|
+
this.channel = createChannel(this._serviceUrl, undefined, {
|
|
55
49
|
'grpc.max_receive_message_length': 1024 * 1024 * 100,
|
|
56
50
|
'grpc.max_send_message_length': 1024 * 1024 * 100,
|
|
57
51
|
});
|
|
58
|
-
let clientFactory =
|
|
52
|
+
let clientFactory = createClientFactory()
|
|
59
53
|
.use(this._grpcToken
|
|
60
|
-
?
|
|
61
|
-
:
|
|
62
|
-
.use(
|
|
63
|
-
for (const interceptor of
|
|
54
|
+
? getGrpcSignedTokenInterceptor(this._grpcToken)
|
|
55
|
+
: getModuleNameInterceptor(this._clientName))
|
|
56
|
+
.use(retryMiddleware);
|
|
57
|
+
for (const interceptor of ConduitGrpcSdk.interceptors) {
|
|
64
58
|
clientFactory = clientFactory.use(interceptor);
|
|
65
59
|
}
|
|
66
60
|
this._client = clientFactory.create(this.type, this.channel, {
|
|
67
61
|
'*': {
|
|
68
62
|
// https://grpc.github.io/grpc/core/md_doc_statuscodes.html
|
|
69
|
-
retryableStatuses: [1, 10, 14],
|
|
63
|
+
retryableStatuses: [1, 10, 14], // handle: cancelled, aborted, unavailable
|
|
70
64
|
retryBaseDelayMs: 250,
|
|
71
65
|
retryMaxAttempts: 5,
|
|
72
66
|
retry: true,
|
|
73
67
|
},
|
|
74
68
|
});
|
|
75
|
-
this._healthClient = clientFactory.create(
|
|
76
|
-
this._moduleClient = clientFactory.create(
|
|
69
|
+
this._healthClient = clientFactory.create(HealthDefinition, this.channel);
|
|
70
|
+
this._moduleClient = clientFactory.create(ConduitModuleDefinition, this.channel);
|
|
77
71
|
const monitorChannel = () => {
|
|
78
72
|
if (!this.channel)
|
|
79
73
|
return;
|
|
@@ -115,5 +109,4 @@ class ConduitModule {
|
|
|
115
109
|
}
|
|
116
110
|
}
|
|
117
111
|
}
|
|
118
|
-
exports.ConduitModule = ConduitModule;
|
|
119
112
|
//# sourceMappingURL=ConduitModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConduitModule.js","sourceRoot":"","sources":["../../src/classes/ConduitModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConduitModule.js","sourceRoot":"","sources":["../../src/classes/ConduitModule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,GACzB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAmB,aAAa,EAAE,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AAkB,CAAC,IAAI,CAAC,sBAAsB,WAAW,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YACjF,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,kCAAkC;YAClC,qCAAqC;YACrC,kEAAkE;QACpE,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConduitSchema = void 0;
|
|
4
|
-
class ConduitSchema {
|
|
1
|
+
export class ConduitSchema {
|
|
5
2
|
constructor(name, fields, modelOptions, collectionName) {
|
|
6
3
|
this.ownerModule = 'unknown';
|
|
7
4
|
this.name = name;
|
|
@@ -10,5 +7,4 @@ class ConduitSchema {
|
|
|
10
7
|
this.collectionName = collectionName && collectionName !== '' ? collectionName : '';
|
|
11
8
|
}
|
|
12
9
|
}
|
|
13
|
-
exports.ConduitSchema = ConduitSchema;
|
|
14
10
|
//# sourceMappingURL=ConduitSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConduitSchema.js","sourceRoot":"","sources":["../../src/classes/ConduitSchema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConduitSchema.js","sourceRoot":"","sources":["../../src/classes/ConduitSchema.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,aAAa;IAQxB,YACE,IAAY,EACZ,MAAoB,EACpB,YAAmC,EACnC,cAAuB;QAPzB,gBAAW,GAAW,SAAS,CAAC;QAS9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,EAAE,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,cAAc,IAAI,cAAc,KAAK,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;IACtF,CAAC;CACF"}
|
package/dist/classes/Error.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConduitError = void 0;
|
|
4
|
-
class ConduitError extends Error {
|
|
1
|
+
export class ConduitError extends Error {
|
|
5
2
|
constructor(name, status, message) {
|
|
6
3
|
super(message);
|
|
7
4
|
this.name = name;
|
|
@@ -24,5 +21,4 @@ class ConduitError extends Error {
|
|
|
24
21
|
throw new ConduitError('INTERNAL_SERVER_ERROR', 500, message);
|
|
25
22
|
}
|
|
26
23
|
}
|
|
27
|
-
exports.ConduitError = ConduitError;
|
|
28
24
|
//# sourceMappingURL=Error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.js","sourceRoot":"","sources":["../../src/classes/Error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Error.js","sourceRoot":"","sources":["../../src/classes/Error.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,YAAa,SAAQ,KAAK;IAKrC,YAAY,IAAY,EAAE,MAAc,EAAE,OAAe;QACvD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,UAAkB,cAAc;QAClD,OAAO,IAAI,YAAY,CAAC,cAAc,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,UAAkB,oBAAoB;QACpD,OAAO,IAAI,YAAY,CAAC,WAAW,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,UAAkB,WAAW;QAC5C,OAAO,IAAI,YAAY,CAAC,WAAW,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,UAAkB,0BAA0B;QAC3D,OAAO,IAAI,YAAY,CAAC,kBAAkB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,OAAO,GAAG,sBAAsB;QACzD,MAAM,IAAI,YAAY,CAAC,uBAAuB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF"}
|
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const interceptors_1 = require("../interceptors");
|
|
8
|
-
const nice_grpc_1 = require("nice-grpc");
|
|
9
|
-
const protoUtils_1 = require("../protoUtils");
|
|
10
|
-
const index_1 = __importDefault(require("../index"));
|
|
11
|
-
async function checkModuleHealth(clientName, serviceUrl, service = '', grpcToken) {
|
|
12
|
-
const channel = (0, nice_grpc_1.createChannel)(serviceUrl, undefined, {
|
|
1
|
+
import { getGrpcSignedTokenInterceptor, getModuleNameInterceptor, } from '../interceptors/index.js';
|
|
2
|
+
import { createChannel, createClientFactory } from 'nice-grpc';
|
|
3
|
+
import { HealthDefinition } from '../protoUtils/index.js';
|
|
4
|
+
import ConduitGrpcSdk from '../index.js';
|
|
5
|
+
export async function checkModuleHealth(clientName, serviceUrl, service = '', grpcToken) {
|
|
6
|
+
const channel = createChannel(serviceUrl, undefined, {
|
|
13
7
|
'grpc.max_receive_message_length': 1024 * 1024 * 100,
|
|
14
8
|
'grpc.max_send_message_length': 1024 * 1024 * 100,
|
|
15
9
|
});
|
|
16
|
-
let clientFactory =
|
|
17
|
-
?
|
|
18
|
-
:
|
|
19
|
-
for (const interceptor of
|
|
10
|
+
let clientFactory = createClientFactory().use(grpcToken
|
|
11
|
+
? getGrpcSignedTokenInterceptor(grpcToken)
|
|
12
|
+
: getModuleNameInterceptor(clientName));
|
|
13
|
+
for (const interceptor of ConduitGrpcSdk.interceptors) {
|
|
20
14
|
clientFactory = clientFactory.use(interceptor);
|
|
21
15
|
}
|
|
22
|
-
const _healthClient = clientFactory.create(
|
|
16
|
+
const _healthClient = clientFactory.create(HealthDefinition, channel);
|
|
23
17
|
let error;
|
|
24
18
|
const status = await _healthClient
|
|
25
19
|
.check({ service })
|
|
@@ -33,5 +27,4 @@ async function checkModuleHealth(clientName, serviceUrl, service = '', grpcToken
|
|
|
33
27
|
}
|
|
34
28
|
throw error;
|
|
35
29
|
}
|
|
36
|
-
exports.checkModuleHealth = checkModuleHealth;
|
|
37
30
|
//# sourceMappingURL=HealthCheck.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HealthCheck.js","sourceRoot":"","sources":["../../src/classes/HealthCheck.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HealthCheck.js","sourceRoot":"","sources":["../../src/classes/HealthCheck.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,GACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAuB,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,cAAc,MAAM,aAAa,CAAC;AAEzC,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,UAAkB,EAClB,UAAkB,EAClB,UAAkB,EAAE,EACpB,SAAkB;IAElB,MAAM,OAAO,GAAG,aAAa,CAAC,UAAU,EAAE,SAAS,EAAE;QACnD,iCAAiC,EAAE,IAAI,GAAG,IAAI,GAAG,GAAG;QACpD,8BAA8B,EAAE,IAAI,GAAG,IAAI,GAAG,GAAG;KAClD,CAAC,CAAC;IACH,IAAI,aAAa,GAAG,mBAAmB,EAAE,CAAC,GAAG,CAC3C,SAAS;QACP,CAAC,CAAC,6BAA6B,CAAC,SAAS,CAAC;QAC1C,CAAC,CAAC,wBAAwB,CAAC,UAAU,CAAC,CACzC,CAAC;IACF,KAAK,MAAM,WAAW,IAAI,cAAc,CAAC,YAAY,EAAE,CAAC;QACtD,aAAa,GAAG,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACjD,CAAC;IACD,MAAM,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAEtE,IAAI,KAAK,CAAC;IACV,MAAM,MAAM,GAAG,MAAM,aAAa;SAC/B,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;SAClB,IAAI,CAAC,CAAC,GAAwB,EAAE,EAAE;QACjC,OAAO,GAAG,CAAC,MAAM,CAAC;IACpB,CAAC,CAAC;SACD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC;IAC/B,OAAO,CAAC,KAAK,EAAE,CAAC;IAChB,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,KAAK,CAAC;AACd,CAAC"}
|
package/dist/classes/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Error';
|
|
2
|
-
export * from './ConduitModule';
|
|
3
|
-
export * from './HealthCheck';
|
|
4
|
-
export * from './ConduitSchema';
|
|
5
|
-
export * from './ConduitAuthorizedResource';
|
|
1
|
+
export * from './Error.js';
|
|
2
|
+
export * from './ConduitModule.js';
|
|
3
|
+
export * from './HealthCheck.js';
|
|
4
|
+
export * from './ConduitSchema.js';
|
|
5
|
+
export * from './ConduitAuthorizedResource.js';
|
package/dist/classes/index.js
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Error"), exports);
|
|
18
|
-
__exportStar(require("./ConduitModule"), exports);
|
|
19
|
-
__exportStar(require("./HealthCheck"), exports);
|
|
20
|
-
__exportStar(require("./ConduitSchema"), exports);
|
|
21
|
-
__exportStar(require("./ConduitAuthorizedResource"), exports);
|
|
1
|
+
export * from './Error.js';
|
|
2
|
+
export * from './ConduitModule.js';
|
|
3
|
+
export * from './HealthCheck.js';
|
|
4
|
+
export * from './ConduitSchema.js';
|
|
5
|
+
export * from './ConduitAuthorizedResource.js';
|
|
22
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/classes/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/classes/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlatformTypesEnum = void 0;
|
|
4
|
-
var PlatformTypesEnum;
|
|
1
|
+
export var PlatformTypesEnum;
|
|
5
2
|
(function (PlatformTypesEnum) {
|
|
6
3
|
PlatformTypesEnum["WEB"] = "WEB";
|
|
7
4
|
PlatformTypesEnum["ANDROID"] = "ANDROID";
|
|
@@ -11,5 +8,5 @@ var PlatformTypesEnum;
|
|
|
11
8
|
PlatformTypesEnum["MACOS"] = "MACOS";
|
|
12
9
|
PlatformTypesEnum["LINUX"] = "LINUX";
|
|
13
10
|
PlatformTypesEnum["CLI"] = "CLI";
|
|
14
|
-
})(PlatformTypesEnum
|
|
11
|
+
})(PlatformTypesEnum || (PlatformTypesEnum = {}));
|
|
15
12
|
//# sourceMappingURL=PlatformTypesEnum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformTypesEnum.js","sourceRoot":"","sources":["../../../src/constants/enums/PlatformTypesEnum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlatformTypesEnum.js","sourceRoot":"","sources":["../../../src/constants/enums/PlatformTypesEnum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,iBASX;AATD,WAAY,iBAAiB;IAC3B,gCAAW,CAAA;IACX,wCAAmB,CAAA;IACnB,gCAAW,CAAA;IACX,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,oCAAe,CAAA;IACf,oCAAe,CAAA;IACf,gCAAW,CAAA;AACb,CAAC,EATW,iBAAiB,KAAjB,iBAAiB,QAS5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './PlatformTypesEnum';
|
|
1
|
+
export * from './PlatformTypesEnum.js';
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./PlatformTypesEnum"), exports);
|
|
1
|
+
export * from './PlatformTypesEnum.js';
|
|
18
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/enums/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './enums';
|
|
1
|
+
export * from './enums/index.js';
|
package/dist/constants/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./enums"), exports);
|
|
1
|
+
export * from './enums/index.js';
|
|
18
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Admin, Authentication, Authorization, Chat, Config, Core, DatabaseProvider, Email, PushNotifications, Router, SMS, Storage } from './modules';
|
|
2
|
-
import { EventBus, RedisManager, StateManager } from './utilities';
|
|
1
|
+
import { Admin, Authentication, Authorization, Chat, Config, Core, DatabaseProvider, Email, PushNotifications, Router, SMS, Storage } from './modules/index.js';
|
|
2
|
+
import { EventBus, RedisManager, StateManager } from './utilities/index.js';
|
|
3
3
|
import { CompatServiceDefinition } from 'nice-grpc/lib/service-definitions';
|
|
4
|
-
import { ConduitModule } from './classes';
|
|
4
|
+
import { ConduitModule } from './classes/index.js';
|
|
5
5
|
import { Client } from 'nice-grpc';
|
|
6
|
-
import {
|
|
7
|
-
import { HealthCheckStatus } from './types';
|
|
6
|
+
import { HealthCheckStatus } from './types/index.js';
|
|
8
7
|
import { ClusterOptions, RedisOptions } from 'ioredis';
|
|
9
|
-
import { IConduitLogger, IConduitMetrics } from './interfaces';
|
|
8
|
+
import { IConduitLogger, IConduitMetrics } from './interfaces/index.js';
|
|
9
|
+
import { ConduitModuleDefinition, HealthDefinition } from './protoUtils/index.js';
|
|
10
10
|
export default class ConduitGrpcSdk {
|
|
11
11
|
private static middleware;
|
|
12
12
|
readonly name: string;
|
|
@@ -90,11 +90,11 @@ export default class ConduitGrpcSdk {
|
|
|
90
90
|
refreshModules(force?: boolean): Promise<string | void>;
|
|
91
91
|
private _initialize;
|
|
92
92
|
}
|
|
93
|
-
export * from './interfaces';
|
|
94
|
-
export * from './classes';
|
|
95
|
-
export * from './modules';
|
|
96
|
-
export * from './constants';
|
|
97
|
-
export * from './types';
|
|
98
|
-
export * from './utilities';
|
|
99
|
-
export * from './protoUtils';
|
|
93
|
+
export * from './interfaces/index.js';
|
|
94
|
+
export * from './classes/index.js';
|
|
95
|
+
export * from './modules/index.js';
|
|
96
|
+
export * from './constants/index.js';
|
|
97
|
+
export * from './types/index.js';
|
|
98
|
+
export * from './utilities/index.js';
|
|
99
|
+
export * from './protoUtils/index.js';
|
|
100
100
|
export * from '@grpc/grpc-js';
|