@common-stack/server-stack 8.2.5-alpha.25 → 8.2.5-alpha.29
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/lib/MainStackServer.cjs +1 -1
- package/lib/MainStackServer.cjs.map +1 -1
- package/lib/MainStackServer.mjs +1 -1
- package/lib/MainStackServer.mjs.map +1 -1
- package/lib/StackServer.cjs +1 -1
- package/lib/StackServer.cjs.map +1 -1
- package/lib/StackServer.mjs +1 -1
- package/lib/StackServer.mjs.map +1 -1
- package/lib/infrastructure/container-module.cjs +2 -1
- package/lib/infrastructure/container-module.cjs.map +1 -1
- package/lib/infrastructure/container-module.mjs +2 -1
- package/lib/infrastructure/container-module.mjs.map +1 -1
- package/package.json +2 -2
- package/lib/MainStackServer.d.ts +0 -34
- package/lib/StackServer.d.ts +0 -29
- package/lib/api/remote-config.d.ts +0 -6
- package/lib/api/resolver.d.ts +0 -10
- package/lib/api/scalar.d.ts +0 -2
- package/lib/api/schema-builder.d.ts +0 -24
- package/lib/api/sub-graph-schema-builder.d.ts +0 -24
- package/lib/api/utils.d.ts +0 -4
- package/lib/config/env-config.d.ts +0 -31
- package/lib/config/index.d.ts +0 -1
- package/lib/config/moleculer.config.d.ts +0 -20
- package/lib/connectors/connection-broker.d.ts +0 -26
- package/lib/connectors/graphql-pubsub-connector.d.ts +0 -22
- package/lib/connectors/mongo-connector.d.ts +0 -21
- package/lib/connectors/nats-connector.d.ts +0 -20
- package/lib/connectors/redis-connector.d.ts +0 -30
- package/lib/examples/tenant-feature-example.d.ts +0 -13
- package/lib/examples/tenant-feature-integration.d.ts +0 -14
- package/lib/features/multi-module-example.d.ts +0 -17
- package/lib/index.d.ts +0 -4
- package/lib/infrastructure/container-module.d.ts +0 -3
- package/lib/infrastructure/example-workflows.d.ts +0 -16
- package/lib/infrastructure/index.d.ts +0 -5
- package/lib/infrastructure/infrastructure-factory.d.ts +0 -45
- package/lib/infrastructure/inngest-factory.d.ts +0 -9
- package/lib/infrastructure/types.d.ts +0 -28
- package/lib/infrastructure/usage-examples.d.ts +0 -9
- package/lib/infrastructure/workflow-orchestrator.d.ts +0 -10
- package/lib/inngest/client-id-generator.d.ts +0 -34
- package/lib/inngest/handler-factory.d.ts +0 -24
- package/lib/inngest/middleware/auto-resolve-invoke.middleware.d.ts +0 -111
- package/lib/inngest/middleware/function-reference-helper.d.ts +0 -211
- package/lib/inngest/middleware/index.d.ts +0 -31
- package/lib/inngest/middleware/types.d.ts +0 -162
- package/lib/inngest/multi-module-functions.d.ts +0 -133
- package/lib/inngest/setup.d.ts +0 -10
- package/lib/interfaces/dbMigration.d.ts +0 -8
- package/lib/interfaces/graphql-request-context.d.ts +0 -20
- package/lib/interfaces/index.d.ts +0 -4
- package/lib/interfaces/module-interface.d.ts +0 -13
- package/lib/interfaces/moleculer.d.ts +0 -7
- package/lib/middleware/cors.d.ts +0 -6
- package/lib/middleware/error.d.ts +0 -9
- package/lib/middleware/index.d.ts +0 -5
- package/lib/middleware/moleculer-inter-namespace.d.ts +0 -2
- package/lib/middleware/redis-client.d.ts +0 -16
- package/lib/middleware/sentry.d.ts +0 -2
- package/lib/middleware/services.d.ts +0 -2
- package/lib/plugins/index.d.ts +0 -2
- package/lib/plugins/invalidateCachePlugin.d.ts +0 -8
- package/lib/plugins/responseCachePlugin.d.ts +0 -12
- package/lib/servers/ExpressApp.d.ts +0 -3
- package/lib/servers/GraphqlServer.d.ts +0 -25
- package/lib/servers/GraphqlWs.d.ts +0 -14
- package/lib/servers/WebsocketMultipathUpdate.d.ts +0 -46
- package/lib/servers/mongodb-migration-update.d.ts +0 -12
- package/lib/servers/utils.d.ts +0 -14
- package/lib/servers/websocket-context.d.ts +0 -30
- package/lib/utils/add-shareable-directive-to-schema.d.ts +0 -1
- package/lib/utils/index.d.ts +0 -3
- package/lib/utils/migrations.d.ts +0 -8
- package/lib/utils/safe-model-factory.d.ts +0 -18
package/lib/MainStackServer.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';require('reflect-metadata');var http=require('http'),server=require('@cdm-logger/server'),serverCore=require('@common-stack/server-core'),_=require('lodash-es'),graphqlModule=require('@common-stack/graphql-api/lib/module.js'),ExpressApp=require('./servers/ExpressApp.cjs'),GraphqlServer=require('./servers/GraphqlServer.cjs'),envConfig=require('./config/env-config.cjs'),schemaBuilder=require('./api/schema-builder.cjs'),WebsocketMultipathUpdate=require('./servers/WebsocketMultipathUpdate.cjs'),migrations=require('./utils/migrations.cjs');require('graphql');var subGraphSchemaBuilder=require('./api/sub-graph-schema-builder.cjs'),setup=require('./inngest/setup.cjs');require('inversify'),require('@common-stack/core');var infrastructureFactory=require('./infrastructure/infrastructure-factory.cjs');require('inngest');function _interopNamespaceDefault(e){var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var http__namespace=/*#__PURE__*/_interopNamespaceDefault(http);/* eslint-disable import/namespace */
|
|
1
|
+
'use strict';require('reflect-metadata');var http=require('http'),server=require('@cdm-logger/server'),serverCore=require('@common-stack/server-core'),_=require('lodash-es'),graphqlModule=require('@common-stack/graphql-api/lib/module.js'),ExpressApp=require('./servers/ExpressApp.cjs'),GraphqlServer=require('./servers/GraphqlServer.cjs'),envConfig=require('./config/env-config.cjs'),schemaBuilder=require('./api/schema-builder.cjs'),WebsocketMultipathUpdate=require('./servers/WebsocketMultipathUpdate.cjs'),migrations=require('./utils/migrations.cjs');require('graphql');var subGraphSchemaBuilder=require('./api/sub-graph-schema-builder.cjs'),setup=require('./inngest/setup.cjs');require('inversify'),require('common/server'),require('@common-stack/core');var infrastructureFactory=require('./infrastructure/infrastructure-factory.cjs');require('inngest');function _interopNamespaceDefault(e){var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var http__namespace=/*#__PURE__*/_interopNamespaceDefault(http);/* eslint-disable import/namespace */
|
|
2
2
|
/* eslint-disable import/no-unresolved */
|
|
3
3
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
4
4
|
// version 08/25/2021
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainStackServer.cjs","sources":["../src/MainStackServer.ts"],"sourcesContent":[null],"names":["serverLogger","InfrastructureFactory","config","Feature","SubGraphSchemaBuilder","GatewaySchemaBuilder","merge","http","expressApp","setupInngestFunctions","isEmpty","WebsocketMultiPathServer","GraphqlServer","migrate"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MainStackServer.cjs","sources":["../src/MainStackServer.ts"],"sourcesContent":[null],"names":["serverLogger","InfrastructureFactory","config","Feature","SubGraphSchemaBuilder","GatewaySchemaBuilder","merge","http","expressApp","setupInngestFunctions","isEmpty","WebsocketMultiPathServer","GraphqlServer","migrate"],"mappings":"wrCAAA;AACA;AACA;AACA;AAwBA,MAAM,iBAAiB,GAAI,aAAqB,CAAC,OAAO,IAAI,aAAa,CAAC;AAE1E,SAAS,cAAc,CAAC,IAAI,EAAA;;IAExB,MAAM,MAAM,GAAG,IAAI,CAAC;AACpB,IAAA,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAI;AAC3B,QAAA,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACjC,KAAC,CAAC,CAAC;AACP,CAAC;AAED;;;;;AAKG;MACU,eAAe,CAAA;AACjB,IAAA,UAAU,CAAoD;AAE9D,IAAA,GAAG,CAAkB;AAEpB,IAAA,MAAM,CAAU;AAEhB,IAAA,qBAAqB,CAAwB;AAE7C,IAAA,kBAAkB,CAKxB;AAEM,IAAA,mBAAmB,CAKzB;AAEM,IAAA,kBAAkB,CAA2B;AAE7C,IAAA,aAAa,CAAgB;AAE7B,IAAA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AAC,kBAAkB,EAAE,MAAM,EAAE;YACjC,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;SAC/C;AACD,QAAA,IAAI,IAAI,CAAC,mBAAmB,EAAE,MAAM,EAAE;YAClC,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;SAChD;KACJ;AACJ"}
|
package/lib/MainStackServer.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import'reflect-metadata';import*as http from'http';import {logger}from'@cdm-logger/server';import {Feature}from'@common-stack/server-core';import {isEmpty,merge}from'lodash-es';import graphqlModule from'@common-stack/graphql-api/lib/module.js';import {expressApp}from'./servers/ExpressApp.mjs';import {GraphqlServer}from'./servers/GraphqlServer.mjs';import {config}from'./config/env-config.mjs';import {GatewaySchemaBuilder}from'./api/schema-builder.mjs';import {WebsocketMultiPathServer}from'./servers/WebsocketMultipathUpdate.mjs';import {migrate}from'./utils/migrations.mjs';import'graphql';import {SubGraphSchemaBuilder}from'./api/sub-graph-schema-builder.mjs';import {setupInngestFunctions}from'./inngest/setup.mjs';import'inversify';import'@common-stack/core';import {InfrastructureFactory}from'./infrastructure/infrastructure-factory.mjs';import'inngest';/* eslint-disable import/namespace */
|
|
1
|
+
import'reflect-metadata';import*as http from'http';import {logger}from'@cdm-logger/server';import {Feature}from'@common-stack/server-core';import {isEmpty,merge}from'lodash-es';import graphqlModule from'@common-stack/graphql-api/lib/module.js';import {expressApp}from'./servers/ExpressApp.mjs';import {GraphqlServer}from'./servers/GraphqlServer.mjs';import {config}from'./config/env-config.mjs';import {GatewaySchemaBuilder}from'./api/schema-builder.mjs';import {WebsocketMultiPathServer}from'./servers/WebsocketMultipathUpdate.mjs';import {migrate}from'./utils/migrations.mjs';import'graphql';import {SubGraphSchemaBuilder}from'./api/sub-graph-schema-builder.mjs';import {setupInngestFunctions}from'./inngest/setup.mjs';import'inversify';import'common/server';import'@common-stack/core';import {InfrastructureFactory}from'./infrastructure/infrastructure-factory.mjs';import'inngest';/* eslint-disable import/namespace */
|
|
2
2
|
/* eslint-disable import/no-unresolved */
|
|
3
3
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
4
4
|
// version 08/25/2021
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainStackServer.mjs","sources":["../src/MainStackServer.ts"],"sourcesContent":[null],"names":["serverLogger"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MainStackServer.mjs","sources":["../src/MainStackServer.ts"],"sourcesContent":[null],"names":["serverLogger"],"mappings":"o3BAAA;AACA;AACA;AACA;AAwBA,MAAM,iBAAiB,GAAI,aAAqB,CAAC,OAAO,IAAI,aAAa,CAAC;AAE1E,SAAS,cAAc,CAAC,IAAI,EAAA;;IAExB,MAAM,MAAM,GAAG,IAAI,CAAC;AACpB,IAAA,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAI;AAC3B,QAAA,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACjC,KAAC,CAAC,CAAC;AACP,CAAC;AAED;;;;;AAKG;MACU,eAAe,CAAA;AACjB,IAAA,UAAU,CAAoD;AAE9D,IAAA,GAAG,CAAkB;AAEpB,IAAA,MAAM,CAAU;AAEhB,IAAA,qBAAqB,CAAwB;AAE7C,IAAA,kBAAkB,CAKxB;AAEM,IAAA,mBAAmB,CAKzB;AAEM,IAAA,kBAAkB,CAA2B;AAE7C,IAAA,aAAa,CAAgB;AAE7B,IAAA,QAAQ,CAAC;AAET,IAAA,OAAO,CAA0B;AAEjC,IAAA,aAAa,CAAiB;AAE9B,IAAA,UAAU,CAAU;AAE5B,IAAA,WAAA,CAAY,OAAsB,EAAE,QAAQ,EAAE,OAAiC,EAAA;AAC3E,QAAA,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC;AAC7B,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,QAAA,IAAI,CAAC,OAAO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
-
'use strict';var server=require('@cdm-logger/server');require('inversify'),require('@common-stack/core');var infrastructureFactory=require('./infrastructure/infrastructure-factory.cjs');require('inngest'),require('./config/env-config.cjs');/* eslint-disable import/no-extraneous-dependencies */
|
|
1
|
+
'use strict';var server=require('@cdm-logger/server');require('inversify'),require('common/server'),require('@common-stack/core');var infrastructureFactory=require('./infrastructure/infrastructure-factory.cjs');require('inngest'),require('./config/env-config.cjs');/* eslint-disable import/no-extraneous-dependencies */
|
|
2
2
|
/* eslint-disable import/namespace */
|
|
3
3
|
/**
|
|
4
4
|
* Controls the lifecycle of the Microservice Server
|
package/lib/StackServer.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackServer.cjs","sources":["../src/StackServer.ts"],"sourcesContent":[null],"names":["serverLogger","InfrastructureFactory"],"mappings":"
|
|
1
|
+
{"version":3,"file":"StackServer.cjs","sources":["../src/StackServer.ts"],"sourcesContent":[null],"names":["serverLogger","InfrastructureFactory"],"mappings":"yQAAA;AACA;AAaA;;;;;AAKG;MACU,WAAW,CAAA;AACZ,IAAA,MAAM,CAAU;AAEhB,IAAA,qBAAqB,CAAwB;AAE7C,IAAA,mBAAmB,CAIzB;AAEM,IAAA,aAAa,CAAgB;AAE7B,IAAA,QAAQ,CAAC;AAET,IAAA,kBAAkB,CAIC;AAE3B,IAAA,WAAA,CACI,OAAsB,EACtB,QAAQ,EACR,OAMC,EAAA;AAED,QAAA,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC;AAC7B,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,QAAA,IAAI,CAAC,kBAAkB,GAAG,OAAO,EAAE,kBAAkB,CAAC;AACtD,QAAA,IAAI,CAAC,MAAM,GAAGA,aAAY,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC,CAAC;QAC/D,IAAI,CAAC,qBAAqB,GAAG,IAAIC,2CAAqB,CAAC,IAAI,CAAC,MAAM,CA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A,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,EAAE,CAAC;SAC9C;AACD,QAAA,IAAI,IAAI,CAAC,mBAAmB,EAAE,MAAM,EAAE;YAClC,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;SAChD;KACJ;AACJ"}
|
package/lib/StackServer.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {logger}from'@cdm-logger/server';import'inversify';import'@common-stack/core';import {InfrastructureFactory}from'./infrastructure/infrastructure-factory.mjs';import'inngest';import'./config/env-config.mjs';/* eslint-disable import/no-extraneous-dependencies */
|
|
1
|
+
import {logger}from'@cdm-logger/server';import'inversify';import'common/server';import'@common-stack/core';import {InfrastructureFactory}from'./infrastructure/infrastructure-factory.mjs';import'inngest';import'./config/env-config.mjs';/* eslint-disable import/no-extraneous-dependencies */
|
|
2
2
|
/* eslint-disable import/namespace */
|
|
3
3
|
/**
|
|
4
4
|
* Controls the lifecycle of the Microservice Server
|
package/lib/StackServer.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackServer.mjs","sources":["../src/StackServer.ts"],"sourcesContent":[null],"names":["serverLogger"],"mappings":"
|
|
1
|
+
{"version":3,"file":"StackServer.mjs","sources":["../src/StackServer.ts"],"sourcesContent":[null],"names":["serverLogger"],"mappings":"2OAAA;AACA;AAaA;;;;;AAKG;MACU,WAAW,CAAA;AACZ,IAAA,MAAM,CAAU;AAEhB,IAAA,qBAAqB,CAAwB;AAE7C,IAAA,mBAAmB,CAIzB;AAEM,IAAA,aAAa,CAAgB;AAE7B,IAAA,QAAQ,CAAC;AAET,IAAA,kBAAkB,CAIC;AAE3B,IAAA,WAAA,CACI,OAAsB,EACtB,QAAQ,EACR,OAMC,EAAA;AAED,QAAA,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC;AAC7B,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,QAAA,I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AAS,CAAC,CAAC;AACvF,SAAC,CAAC;KACL;AAEM,IAAA,MAAM,KAAK,GAAA;QACd,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;KACjD;AAEM,IAAA,MAAM,OAAO,GAAA;AAChB,QAAA,IAAI,IAAI,CAAC,qBAAqB,EAAE;AAC5B,YAAA,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,EAAE,CAAC;SAC9C;AACD,QAAA,IAAI,IAAI,CAAC,mBAAmB,EAAE,MAAM,EAAE;YAClC,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;SAChD;KACJ;AACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var inversify=require('inversify'),core=require('@common-stack/core');const createInfrastructureModule = (context, connectorConfig) => {
|
|
1
|
+
'use strict';var inversify=require('inversify'),server=require('common/server'),core=require('@common-stack/core');const createInfrastructureModule = (context, connectorConfig) => {
|
|
2
2
|
return new inversify.ContainerModule((bind) => {
|
|
3
3
|
// Core bindings - always included
|
|
4
4
|
// Bind logger with multiple identifiers for compatibility, avoiding duplicates
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
bind(core.CommonType.PUBSUB).toConstantValue(context.pubsub);
|
|
16
16
|
}
|
|
17
17
|
if (connectorConfig.mongo && context.mongoClient) {
|
|
18
|
+
bind(server.SERVER_TYPES.MongoDBConnection).toConstantValue(context.mongoClient);
|
|
18
19
|
bind('MongoDBConnection').toConstantValue(context.mongoClient);
|
|
19
20
|
}
|
|
20
21
|
if (connectorConfig.redis && context.redisClient) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-module.cjs","sources":["../../src/infrastructure/container-module.ts"],"sourcesContent":[null],"names":["ContainerModule","CommonType","ClientTypes"],"mappings":"
|
|
1
|
+
{"version":3,"file":"container-module.cjs","sources":["../../src/infrastructure/container-module.ts"],"sourcesContent":[null],"names":["Container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WAAW,CAAC,CAAC;YAC1E,IAAI,CAAC,mBAAmB,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;SAClE;QAED,IAAI,eAAe,CAAC,KAAK,IAAI,OAAO,CAAC,WAAW,EAAE;AAC9C,YAAA,IAAI,CAACF,eAAU,CAAC,YAAY,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;SACtE;QAED,IAAI,eAAe,CAAC,OAAO,IAAI,OAAO,CAAC,aAAa,EAAE;AAClD,YAAA,IAAI,CAACA,eAAU,CAAC,cAAc,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;SAC1E;AACL,KAAC,CAAC,CAAC;AACP"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ContainerModule}from'inversify';import {CommonType,ClientTypes}from'@common-stack/core';const createInfrastructureModule = (context, connectorConfig) => {
|
|
1
|
+
import {ContainerModule}from'inversify';import {SERVER_TYPES}from'common/server';import {CommonType,ClientTypes}from'@common-stack/core';const createInfrastructureModule = (context, connectorConfig) => {
|
|
2
2
|
return new ContainerModule((bind) => {
|
|
3
3
|
// Core bindings - always included
|
|
4
4
|
// Bind logger with multiple identifiers for compatibility, avoiding duplicates
|
|
@@ -15,6 +15,7 @@ import {ContainerModule}from'inversify';import {CommonType,ClientTypes}from'@com
|
|
|
15
15
|
bind(CommonType.PUBSUB).toConstantValue(context.pubsub);
|
|
16
16
|
}
|
|
17
17
|
if (connectorConfig.mongo && context.mongoClient) {
|
|
18
|
+
bind(SERVER_TYPES.MongoDBConnection).toConstantValue(context.mongoClient);
|
|
18
19
|
bind('MongoDBConnection').toConstantValue(context.mongoClient);
|
|
19
20
|
}
|
|
20
21
|
if (connectorConfig.redis && context.redisClient) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-module.mjs","sources":["../../src/infrastructure/container-module.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
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,CAAC,eAAe,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAC1E,IAAI,CAAC,mBAAmB,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;SAClE;QAED,IAAI,eAAe,CAAC,KAAK,IAAI,OAAO,CAAC,WAAW,EAAE;AAC9C,YAAA,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;SACtE;QAED,IAAI,eAAe,CAAC,OAAO,IAAI,OAAO,CAAC,aAAa,EAAE;AAClD,YAAA,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;SAC1E;AACL,KAAC,CAAC,CAAC;AACP"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/server-stack",
|
|
3
|
-
"version": "8.2.5-alpha.
|
|
3
|
+
"version": "8.2.5-alpha.29",
|
|
4
4
|
"description": "common core for higher packages to depend on",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"typescript": {
|
|
97
97
|
"definition": "lib/index.d.ts"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "a1dabc65ef41c77719711e79a0ca452dbea4a675"
|
|
100
100
|
}
|
package/lib/MainStackServer.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import 'reflect-metadata';
|
|
2
|
-
import * as http from 'http';
|
|
3
|
-
import * as express from 'express';
|
|
4
|
-
import { Feature as ServerFeature } from '@common-stack/server-core';
|
|
5
|
-
/**
|
|
6
|
-
* Controls the lifecycle of the Application Server
|
|
7
|
-
*
|
|
8
|
-
* @export
|
|
9
|
-
* @class StackServer
|
|
10
|
-
*/
|
|
11
|
-
export declare class MainStackServer {
|
|
12
|
-
httpServer: http.Server & {
|
|
13
|
-
startListening?: (port: any) => void;
|
|
14
|
-
};
|
|
15
|
-
app: express.Express;
|
|
16
|
-
private logger;
|
|
17
|
-
private infrastructureFactory;
|
|
18
|
-
private mainServiceContext;
|
|
19
|
-
private microserviceContext;
|
|
20
|
-
private multiPathWebsocket;
|
|
21
|
-
private serverFeature;
|
|
22
|
-
private settings;
|
|
23
|
-
private options;
|
|
24
|
-
private serviceBroker;
|
|
25
|
-
private allModules;
|
|
26
|
-
constructor(feature: ServerFeature, settings: any, options?: Record<string, unknown>);
|
|
27
|
-
initialize(): Promise<void>;
|
|
28
|
-
private setupMainServiceBrokerLifecycle;
|
|
29
|
-
private setupMicroserviceBrokerLifecycle;
|
|
30
|
-
private setupGraphQLSchema;
|
|
31
|
-
private setupHttpServer;
|
|
32
|
-
start(): Promise<void>;
|
|
33
|
-
cleanup(): Promise<void>;
|
|
34
|
-
}
|
package/lib/StackServer.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Feature as ServerFeature } from '@common-stack/server-core';
|
|
2
|
-
import { Container } from 'inversify';
|
|
3
|
-
import { ServiceBroker } from 'moleculer';
|
|
4
|
-
import { InfrastructureContext } from './infrastructure';
|
|
5
|
-
/**
|
|
6
|
-
* Controls the lifecycle of the Microservice Server
|
|
7
|
-
*
|
|
8
|
-
* @export
|
|
9
|
-
* @class StackServer
|
|
10
|
-
*/
|
|
11
|
-
export declare class StackServer {
|
|
12
|
-
private logger;
|
|
13
|
-
private infrastructureFactory;
|
|
14
|
-
private microserviceContext;
|
|
15
|
-
private serverFeature;
|
|
16
|
-
private settings;
|
|
17
|
-
private onContainerCreated?;
|
|
18
|
-
constructor(feature: ServerFeature, settings: any, options?: {
|
|
19
|
-
onContainerCreated?: (params: {
|
|
20
|
-
container: Container;
|
|
21
|
-
broker: ServiceBroker;
|
|
22
|
-
context: InfrastructureContext;
|
|
23
|
-
}) => void | Promise<void>;
|
|
24
|
-
});
|
|
25
|
-
initialize(): Promise<void>;
|
|
26
|
-
private setupMicroserviceBrokerLifecycle;
|
|
27
|
-
start(): Promise<void>;
|
|
28
|
-
cleanup(): Promise<void>;
|
|
29
|
-
}
|
package/lib/api/resolver.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const resolvers: {
|
|
2
|
-
AnyObject: import("graphql").GraphQLScalarType<unknown, unknown>;
|
|
3
|
-
Date: import("graphql").GraphQLScalarType<Date, string>;
|
|
4
|
-
Time: import("graphql").GraphQLScalarType<Date, string>;
|
|
5
|
-
URI: any;
|
|
6
|
-
URIInput: any;
|
|
7
|
-
DateTime: import("graphql").GraphQLScalarType<Date, Date>;
|
|
8
|
-
JSON: import("graphql").GraphQLScalarType<unknown, unknown>;
|
|
9
|
-
JSONObject: import("graphql").GraphQLScalarType<unknown, unknown>;
|
|
10
|
-
};
|
package/lib/api/scalar.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
2
|
-
import { IGraphqlShieldRules } from '@common-stack/server-core';
|
|
3
|
-
import { CdmLogger } from '@cdm-logger/core';
|
|
4
|
-
interface IGraphqlOptions {
|
|
5
|
-
schema: string | string[];
|
|
6
|
-
resolvers: any;
|
|
7
|
-
directives: any[];
|
|
8
|
-
directiveResolvers: {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
};
|
|
11
|
-
middlewares: any[];
|
|
12
|
-
rules?: IGraphqlShieldRules;
|
|
13
|
-
logger: CdmLogger.ILogger;
|
|
14
|
-
}
|
|
15
|
-
export declare class GatewaySchemaBuilder {
|
|
16
|
-
private options;
|
|
17
|
-
constructor(options: IGraphqlOptions);
|
|
18
|
-
build(): Promise<GraphQLSchema>;
|
|
19
|
-
private load;
|
|
20
|
-
private createRemoteSchema;
|
|
21
|
-
private loadRemoteSchema;
|
|
22
|
-
private createOwnSchema;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
2
|
-
import { IGraphqlShieldRules } from '@common-stack/server-core';
|
|
3
|
-
import { CdmLogger } from '@cdm-logger/core';
|
|
4
|
-
interface IGraphqlOptions {
|
|
5
|
-
schema: string | string[];
|
|
6
|
-
resolvers: any;
|
|
7
|
-
directives: any[];
|
|
8
|
-
directiveResolvers: {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
};
|
|
11
|
-
middlewares: any[];
|
|
12
|
-
rules?: IGraphqlShieldRules;
|
|
13
|
-
logger: CdmLogger.ILogger;
|
|
14
|
-
}
|
|
15
|
-
export declare class SubGraphSchemaBuilder {
|
|
16
|
-
private readonly options;
|
|
17
|
-
constructor(options: IGraphqlOptions);
|
|
18
|
-
build(): Promise<GraphQLSchema>;
|
|
19
|
-
private load;
|
|
20
|
-
private createRemoteSchema;
|
|
21
|
-
private loadRemoteSchema;
|
|
22
|
-
private createOwnSchema;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
package/lib/api/utils.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as envalid from 'envalid';
|
|
2
|
-
export declare const config: Readonly<{
|
|
3
|
-
NODE_ENV: string;
|
|
4
|
-
NATS_URL: string;
|
|
5
|
-
NATS_USER: string;
|
|
6
|
-
NATS_PW: string;
|
|
7
|
-
GRAPHQL_ENDPOINT: string;
|
|
8
|
-
BACKEND_URL: string;
|
|
9
|
-
GRAPHQL_URL: string;
|
|
10
|
-
CLIENT_URL: string;
|
|
11
|
-
MONGO_URL: string;
|
|
12
|
-
APP_NAME: string;
|
|
13
|
-
REDIS_CLUSTER_URL: string;
|
|
14
|
-
REDIS_URL: string;
|
|
15
|
-
REDIS_CLUSTER_ENABLED: boolean;
|
|
16
|
-
REDIS_SENTINEL_ENABLED: boolean;
|
|
17
|
-
CONNECTION_ID: string;
|
|
18
|
-
NAMESPACE: string;
|
|
19
|
-
CROSS_NAMESPACES: string;
|
|
20
|
-
LOG_LEVEL: string;
|
|
21
|
-
METRICS_CONFIG: string;
|
|
22
|
-
INNGEST_EVENT_KEY: string;
|
|
23
|
-
INNGEST_SIGNING_KEY: string;
|
|
24
|
-
INNGEST_IS_DEV: boolean;
|
|
25
|
-
INNGEST_ENVIRONMENT: string;
|
|
26
|
-
INNGEST_BASE_URL: string;
|
|
27
|
-
INNGEST_CLIENT_ID: string;
|
|
28
|
-
APPLICATION_ID: string;
|
|
29
|
-
WEBSOCKET_MAX_CONNECTIONS: number;
|
|
30
|
-
WEBSOCKET_LIMIT_ENABLED: boolean;
|
|
31
|
-
} & envalid.CleanedEnvAccessors>;
|
package/lib/config/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './env-config';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BrokerOptions } from 'moleculer';
|
|
2
|
-
/**
|
|
3
|
-
* Moleculer ServiceBroker configuration file
|
|
4
|
-
*
|
|
5
|
-
* More info about options:
|
|
6
|
-
* https://moleculer.services/docs/0.14/configuration.html
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Overwrite options in production:
|
|
10
|
-
* ================================
|
|
11
|
-
* You can overwrite any option with environment variables.
|
|
12
|
-
* For example to overwrite the 'logLevel', use `LOGLEVEL=warn` env var.
|
|
13
|
-
* To overwrite a nested parameter, e.g. retryPolicy.retries, use `RETRYPOLICY_RETRIES=10` env var.
|
|
14
|
-
*
|
|
15
|
-
* To overwrite broker’s deeply nested default options, which are not presented in 'moleculer.config.ts',
|
|
16
|
-
* via environment variables, use the `MOL_` prefix and double underscore `__` for nested properties in .env file.
|
|
17
|
-
* For example, to set the cacher prefix to `MYCACHE`, you should declare an env var as `MOL_CACHER__OPTIONS__PREFIX=MYCACHE`.
|
|
18
|
-
*/
|
|
19
|
-
declare const brokerConfig: BrokerOptions;
|
|
20
|
-
export default brokerConfig;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { CdmLogger } from '@cdm-logger/core';
|
|
2
|
-
import { TransporterType } from '../interfaces/moleculer';
|
|
3
|
-
type ILogger = CdmLogger.ILogger;
|
|
4
|
-
/**
|
|
5
|
-
* Connection broker class
|
|
6
|
-
*
|
|
7
|
-
* @class ConnectionBroker
|
|
8
|
-
*/
|
|
9
|
-
export declare class ConnectionBroker {
|
|
10
|
-
private _mongoConnector;
|
|
11
|
-
private _redisConnector;
|
|
12
|
-
private _natsConnector;
|
|
13
|
-
private _graphqlPubsubConnector;
|
|
14
|
-
/**
|
|
15
|
-
* Creates an instance of ConnectionBroker.
|
|
16
|
-
* @param {*} options
|
|
17
|
-
* @memberof ConnectionBroker
|
|
18
|
-
*/
|
|
19
|
-
constructor(transporter: TransporterType, logger: ILogger);
|
|
20
|
-
get mongoConnection(): Promise<import("mongoose").Connection>;
|
|
21
|
-
get redisConnection(): Promise<import("ioredis").default | import("ioredis").Cluster>;
|
|
22
|
-
get natsConnection(): import("nats").Client | Promise<import("nats").Client>;
|
|
23
|
-
get graphqlPubsub(): Promise<import("graphql-nats-subscriptions").NatsPubSub | import("graphql-subscriptions").PubSub>;
|
|
24
|
-
stop(): Promise<void>;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PubSub } from 'graphql-subscriptions';
|
|
2
|
-
import { NatsPubSub } from 'graphql-nats-subscriptions';
|
|
3
|
-
import { GenericObject } from 'moleculer';
|
|
4
|
-
import { CdmLogger } from '@cdm-logger/core';
|
|
5
|
-
type ILogger = CdmLogger.ILogger;
|
|
6
|
-
type PubSubOptions = {
|
|
7
|
-
apolloLogging?: boolean;
|
|
8
|
-
logger: ILogger;
|
|
9
|
-
} & GenericObject;
|
|
10
|
-
export declare class GraphqlPubSubConnector {
|
|
11
|
-
private client;
|
|
12
|
-
private opts;
|
|
13
|
-
private logger;
|
|
14
|
-
/**
|
|
15
|
-
* Creates an instance of GraphqlPubSubConnector.
|
|
16
|
-
* @param {*} opts
|
|
17
|
-
* @memberof GraphqlPubSubConnector
|
|
18
|
-
*/
|
|
19
|
-
constructor(opts?: PubSubOptions);
|
|
20
|
-
getClient(): Promise<NatsPubSub | PubSub>;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Connection, ConnectOptions } from 'mongoose';
|
|
2
|
-
export declare class MongoConnector {
|
|
3
|
-
private client;
|
|
4
|
-
private db;
|
|
5
|
-
private opts;
|
|
6
|
-
private uri;
|
|
7
|
-
private logger;
|
|
8
|
-
constructor(uri: string, opts?: ConnectOptions);
|
|
9
|
-
/**
|
|
10
|
-
* Connect to database
|
|
11
|
-
*
|
|
12
|
-
* @memberof MongoConnector
|
|
13
|
-
*/
|
|
14
|
-
connect(): Promise<Connection>;
|
|
15
|
-
/**
|
|
16
|
-
* Disconnect from database
|
|
17
|
-
*
|
|
18
|
-
* @memberof MongoConnector
|
|
19
|
-
*/
|
|
20
|
-
disconnect(): Promise<void>;
|
|
21
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as nats from 'nats';
|
|
2
|
-
export declare class NatsConnector {
|
|
3
|
-
private opts;
|
|
4
|
-
private client;
|
|
5
|
-
private logger;
|
|
6
|
-
private connected;
|
|
7
|
-
constructor(opts: nats.ClientOpts);
|
|
8
|
-
/**
|
|
9
|
-
* Connect to a NATS server
|
|
10
|
-
*
|
|
11
|
-
* @memberof NatsConnector
|
|
12
|
-
*/
|
|
13
|
-
connect(): nats.Client | Promise<nats.Client>;
|
|
14
|
-
/**
|
|
15
|
-
* Disconnect from a NATS server
|
|
16
|
-
*
|
|
17
|
-
* @memberof NatsTransporter
|
|
18
|
-
*/
|
|
19
|
-
disconnect(): void;
|
|
20
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as IORedis from 'ioredis';
|
|
2
|
-
export declare class RedisConnector {
|
|
3
|
-
private client;
|
|
4
|
-
private opts;
|
|
5
|
-
private logger;
|
|
6
|
-
/**
|
|
7
|
-
* Creates an instance of RedisConnector.
|
|
8
|
-
*
|
|
9
|
-
* @param {object} opts
|
|
10
|
-
*/
|
|
11
|
-
constructor(opts?: IORedis.ClusterOptions | IORedis.RedisOptions);
|
|
12
|
-
/**
|
|
13
|
-
* Connect to the Redis server
|
|
14
|
-
*
|
|
15
|
-
* @memberof RedisConnector
|
|
16
|
-
*/
|
|
17
|
-
connect(): Promise<IORedis.Cluster | IORedis.Redis>;
|
|
18
|
-
/**
|
|
19
|
-
* Return redis or redis.cluster Client
|
|
20
|
-
*
|
|
21
|
-
* @memberof RedisConnection
|
|
22
|
-
*/
|
|
23
|
-
getRedisClient(): IORedis.Cluster | IORedis.Redis;
|
|
24
|
-
/**
|
|
25
|
-
* Close Redis client connection.
|
|
26
|
-
*
|
|
27
|
-
* @memberof RedisConnection
|
|
28
|
-
*/
|
|
29
|
-
disconnect(): Promise<void>;
|
|
30
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Container } from 'inversify';
|
|
2
|
-
/**
|
|
3
|
-
* Example Inngest functions factory for tenant management
|
|
4
|
-
* This is how individual modules can register their Inngest functions
|
|
5
|
-
*/
|
|
6
|
-
export declare const tenantInngestFunctions: (container: Container) => {};
|
|
7
|
-
/**
|
|
8
|
-
* Example Feature configuration for a tenant module
|
|
9
|
-
*/
|
|
10
|
-
export declare const TenantFeature: {
|
|
11
|
-
inngestFunctions: (container: Container) => {};
|
|
12
|
-
registerExpressMiddlewareFunc: (app: any, container: any) => void;
|
|
13
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Feature } from '@common-stack/server-core';
|
|
2
|
-
/**
|
|
3
|
-
* Example of how to create a Feature that includes Inngest functions
|
|
4
|
-
*/
|
|
5
|
-
export declare const TenantFeature: Feature<any, any>;
|
|
6
|
-
/**
|
|
7
|
-
* Example of how other modules can also contribute Inngest functions
|
|
8
|
-
*/
|
|
9
|
-
export declare const NotificationFeature: Feature<any, any>;
|
|
10
|
-
export declare const AnalyticsFeature: Feature<any, any>;
|
|
11
|
-
/**
|
|
12
|
-
* Example of combining multiple features with Inngest functions
|
|
13
|
-
*/
|
|
14
|
-
export declare const createApplicationFeature: () => Feature<any, any>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Feature } from '@common-stack/server-core';
|
|
2
|
-
/**
|
|
3
|
-
* Example Feature that demonstrates using an array of Inngest function factories
|
|
4
|
-
*/
|
|
5
|
-
export declare const MultiModuleFeature: Feature<any, any>;
|
|
6
|
-
/**
|
|
7
|
-
* Example: Feature for just user management
|
|
8
|
-
*/
|
|
9
|
-
export declare const UserManagementFeature: Feature<any, any>;
|
|
10
|
-
/**
|
|
11
|
-
* Example: Feature for email campaigns
|
|
12
|
-
*/
|
|
13
|
-
export declare const EmailCampaignFeature: Feature<any, any>;
|
|
14
|
-
/**
|
|
15
|
-
* Example: Combining multiple features - each with their own Inngest functions
|
|
16
|
-
*/
|
|
17
|
-
export declare const ApplicationFeature: Feature<any, any>;
|
package/lib/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { WorkflowStep, ConnectorConfig } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Example custom workflow steps that can be added to the infrastructure initialization
|
|
4
|
-
*/
|
|
5
|
-
export declare const metricsInitializationStep: WorkflowStep;
|
|
6
|
-
export declare const customMigrationStep: WorkflowStep;
|
|
7
|
-
export declare const healthCheckStep: WorkflowStep;
|
|
8
|
-
export declare const cacheWarmingStep: WorkflowStep;
|
|
9
|
-
export declare const HIGH_PERFORMANCE_CONFIG: ConnectorConfig;
|
|
10
|
-
export declare const MINIMAL_CONFIG: ConnectorConfig;
|
|
11
|
-
export declare function createCustomWorkflow(environment: string): WorkflowStep[];
|
|
12
|
-
export declare function createCustomInfrastructureConfig(environment: string): {
|
|
13
|
-
connectors: ConnectorConfig;
|
|
14
|
-
workflows: WorkflowStep[];
|
|
15
|
-
environment: string;
|
|
16
|
-
};
|