r-agency-mesh 1.366.0 → 1.367.0
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/package.json +1 -1
- package/release/index.d.ts +9 -1
- package/release/index.js +22 -5
package/package.json
CHANGED
package/release/index.d.ts
CHANGED
|
@@ -2718,6 +2718,10 @@ interface IBroadcastManager {
|
|
|
2718
2718
|
destroy(name: string, client?: IWsClient): void;
|
|
2719
2719
|
}
|
|
2720
2720
|
|
|
2721
|
+
interface IDbSetupOptions {
|
|
2722
|
+
entities: DbMetaEntity[];
|
|
2723
|
+
}
|
|
2724
|
+
|
|
2721
2725
|
type DbMetaEntity = any;
|
|
2722
2726
|
/**
|
|
2723
2727
|
* Represents metadata for a database bundle.
|
|
@@ -4065,6 +4069,10 @@ interface IDbResourceInternalProps {
|
|
|
4065
4069
|
* of the target class and can be used to apply additional metadata or logic to a database class.
|
|
4066
4070
|
*/
|
|
4067
4071
|
declare function DatabaseSetup(): (ctor: DbSetupCtor) => void;
|
|
4072
|
+
/**
|
|
4073
|
+
* A decorator function used to associate a database entity with a specific property in a class.
|
|
4074
|
+
*/
|
|
4075
|
+
declare function ORMSetup(options: IDbSetupOptions): (target: any, name: string) => void;
|
|
4068
4076
|
|
|
4069
4077
|
/**
|
|
4070
4078
|
* Interface representing a database bundle.
|
|
@@ -6544,4 +6552,4 @@ declare const isProd: () => boolean;
|
|
|
6544
6552
|
*/
|
|
6545
6553
|
declare const startServer: (props: NsBootstrap.IStartServerProps) => void;
|
|
6546
6554
|
|
|
6547
|
-
export { AbstractRuntimeObject, AbstractService, type AfterCompileNextFn, AsyncEventArgs, AsyncEventEmitter, type AsyncEventMap, type AsyncHandlerFn, type AsyncHandlerResolveFn, BaseBroadcastController, BaseDatabaseSetup, BaseDbResource, BaseOrmEntity, BaseTemplate, type BootLoaderNextFn, type BootstrapEvents, DatabaseSetup, DbResource, type DbResourceAlias, type DbResourceOrder, type DbResourceRecords, type DbResourceWhere, DefaultBroadcastController, EmitEvent, GraphqlArgs, GraphqlAuth, GraphqlBaseResolver, type GraphqlDefaultCtor, GraphqlDefinition, GraphqlEvents, GraphqlLog, type GraphqlMetadataType, GraphqlMutation, GraphqlQuery, GraphqlResolver, type GraphqlResolverCtor, GraphqlReturnTypes, GraphqlRuntimeArgs, type GraphqlUploadFile, GraphqlValidationInputs, type IAbstractService, type IActionBootArgs, type IAsyncEventArgs, type IAsyncEventEmitter, type IBootLoader, type IBootLoaderBootArgs, type IBootLoaderBuildArgs, type IBootLoaderOptions, type IBroadcast, type IBroadcastClient, type IBroadcastClientAddMeta, type IBroadcastClientData, type IBroadcastConfig, type IBroadcastController, type IBroadcastManager, type ICANBusChannel, type ICANBusEvent, type ICANBusEventArgs, type ICANBusEventOptions, type ICANBusEventResult, type ICANBusEventRunner, type ICANBusEventV2, type IContainer, type IDatabaseAdapter, type IDatabaseSetup, type IDbInternalResources, type IDbResource, type IDbResourceConfig, type IDbResourceCreateArgs, type IDbResourceCreateGraphqlArgs, type IDbResourceCreateResult, type IDbResourceExtension, type IDbResourceGraphqlArgs, type IDbResourceInternal, type IDbResourceManagerGetResult, type IDbResourceProps, type IDbResourceReadArgs, type IDbResourceReadGraphqlArgs, type IDbResourceReadResult, type IDbResourceResult, type IDbResourceWriteArgs, type IDbResourceWriteGraphqlArgs, type IDbResourceWriteResult, type IDbResourcesManager, type IEnvironment, type IExecutableAction, type IExecutableActionProps, type IExecutableService, type IGlobalEventManager, type IGlobals, type IGraphQlSchemaBuilder, type IGraphQlSchemaBuilderInternal, type IGraphqlArgs, type IGraphqlAuth, type IGraphqlAuthOptions, type IGraphqlConvertedFileUpload, type IGraphqlFile, type IGraphqlFileBag, type IGraphqlFileUpload, type IGraphqlFileWriteResult, type IGraphqlMateQuery, type IGraphqlMetaArgsOptions, type IGraphqlMetaInput, type IGraphqlMetaMutation, type IGraphqlMetadata, type IGraphqlResolver, type IGraphqlStoredResolver, type IGraphqlTypeOptions, type IGraphqlUploadArgs, type ILogger, type IMeshAsyncWorker, type IMeshCANBus, type IMeshConfig, type IMeshCoreCANBusEvents, type IMeshCoreServices, type IMeshCronJob, type IMeshCronJobArgs, type IMeshCronJobExecuteResult, type IMeshCronJobOptions, type IMeshCronJobRunner, type IMeshCronJobRunnerResult, type IMeshCronManager, type IMeshError, type IMeshImageOptOptions, type IMeshImageOptRequestQueries, type IMeshImageOptResult, type IMeshPerformance, type IMeshPerformanceResult, type IMeshPlugin, type IMeshRepositoryFactory, type IMeshRoute, type IMeshRouter, type IMeshSecureService, type IMeshSoredCronJobRunner, type IMeshStoredCronJob, type IMeshUploadProgressInfo, type IMeshUploadProgressOptions, type IMeshUploadService, type IOnInitializeResult, type IOrmHelper, type IPagination, type IRestApiArgs, type IRestApiRequestExtension, type IRestApiRequestExtensionBeforeResult, type IRestApiRoute, type IRestApiRouteConfig, type IRestApiRouter, type IRuntimeActionAuth, type IRuntimeObject, type IRuntimeObjectAware, type IStaticDirectory, type IStaticDirectoryWorker, type IStaticLoader, type IStoredRestApiRoute, type IStoredTemplate, type ITemplate, type ITemplateArgs, type ITemplateExtension, type ITemplateManager, type ITemplateRenderResult, type IUploadFileResource, type IUploadServiceProps, type IUploadServiceResult, type IUploadedFile, type IUploadedFileMeta, type IWebsocketCommander, type IWebsocketInternalEvents, type IWsBcExecutableArgs, type IWsCTRLArgs, type IWsCTRLDispatcher, type IWsCTRLInfo, type IWsCTRLManager, type IWsCTRLOptions, type IWsCTRLResult, type IWsClient, type IWsClientLog, type IWsController, type IWsReceivedCTRL, type IWsSenderCTRL, type IWsStoredCTRL, type InitFnResult, Inject, InjectService, type LoadEnvPropsInt, type MainFnArgs, type MainFnResult, type MeshContainerServices, type MeshCronJobs, type MeshRouter, NsCore, NsEnv, NsRuntime, NsServer, type OnInitializeFn, OrmHelper, type PluginBeforeStartFn, type PluginBuildGraphqlSchemaFn, type PluginBuildRouterFn, type PluginInitFn, type PluginNextFn, type PluginWsClientConnectedFn, RegisterBootLoader, RegisterCronJob, RegisterWsController, RestApi, RestApiArgs, RestApiAuth, RestApiGet, type RestApiHandlerFn, RestApiHeaders, RestApiPath, RestApiPost, type RestApiResult, type RestApiRouteCtor, type RestApiRoutePath, RestApiRouter, type RestApiStatusCode, type RuntimeActionHeaders, RuntimeObjectAware, SubscribeEvent, Template, TemplateArgs, type TemplateContext, TemplateWrapper, type UploadFileResourceType, type UploadServiceFileUploadedFn, type WsBcExecutableFn, type WsCTRLActionFn, WsCTRLDispatcher, WsCTRLManager, type WsStoredCTRLMap, buildMode, cloneDeepObject, createDataListing, distDir, findFiles, genDir, getGlobal, isDev, isProd, lcfirst, ltrim, mergeDeepObject, parsePagination, publicDir, readMetadata, rootDir, rtrim, startServer, staticDir, stringHasOnlySpaces, stringIsEmpty, trim, ucfirst, writeMetadata };
|
|
6555
|
+
export { AbstractRuntimeObject, AbstractService, type AfterCompileNextFn, AsyncEventArgs, AsyncEventEmitter, type AsyncEventMap, type AsyncHandlerFn, type AsyncHandlerResolveFn, BaseBroadcastController, BaseDatabaseSetup, BaseDbResource, BaseOrmEntity, BaseTemplate, type BootLoaderNextFn, type BootstrapEvents, DatabaseSetup, DbResource, type DbResourceAlias, type DbResourceOrder, type DbResourceRecords, type DbResourceWhere, DefaultBroadcastController, EmitEvent, GraphqlArgs, GraphqlAuth, GraphqlBaseResolver, type GraphqlDefaultCtor, GraphqlDefinition, GraphqlEvents, GraphqlLog, type GraphqlMetadataType, GraphqlMutation, GraphqlQuery, GraphqlResolver, type GraphqlResolverCtor, GraphqlReturnTypes, GraphqlRuntimeArgs, type GraphqlUploadFile, GraphqlValidationInputs, type IAbstractService, type IActionBootArgs, type IAsyncEventArgs, type IAsyncEventEmitter, type IBootLoader, type IBootLoaderBootArgs, type IBootLoaderBuildArgs, type IBootLoaderOptions, type IBroadcast, type IBroadcastClient, type IBroadcastClientAddMeta, type IBroadcastClientData, type IBroadcastConfig, type IBroadcastController, type IBroadcastManager, type ICANBusChannel, type ICANBusEvent, type ICANBusEventArgs, type ICANBusEventOptions, type ICANBusEventResult, type ICANBusEventRunner, type ICANBusEventV2, type IContainer, type IDatabaseAdapter, type IDatabaseSetup, type IDbInternalResources, type IDbResource, type IDbResourceConfig, type IDbResourceCreateArgs, type IDbResourceCreateGraphqlArgs, type IDbResourceCreateResult, type IDbResourceExtension, type IDbResourceGraphqlArgs, type IDbResourceInternal, type IDbResourceManagerGetResult, type IDbResourceProps, type IDbResourceReadArgs, type IDbResourceReadGraphqlArgs, type IDbResourceReadResult, type IDbResourceResult, type IDbResourceWriteArgs, type IDbResourceWriteGraphqlArgs, type IDbResourceWriteResult, type IDbResourcesManager, type IEnvironment, type IExecutableAction, type IExecutableActionProps, type IExecutableService, type IGlobalEventManager, type IGlobals, type IGraphQlSchemaBuilder, type IGraphQlSchemaBuilderInternal, type IGraphqlArgs, type IGraphqlAuth, type IGraphqlAuthOptions, type IGraphqlConvertedFileUpload, type IGraphqlFile, type IGraphqlFileBag, type IGraphqlFileUpload, type IGraphqlFileWriteResult, type IGraphqlMateQuery, type IGraphqlMetaArgsOptions, type IGraphqlMetaInput, type IGraphqlMetaMutation, type IGraphqlMetadata, type IGraphqlResolver, type IGraphqlStoredResolver, type IGraphqlTypeOptions, type IGraphqlUploadArgs, type ILogger, type IMeshAsyncWorker, type IMeshCANBus, type IMeshConfig, type IMeshCoreCANBusEvents, type IMeshCoreServices, type IMeshCronJob, type IMeshCronJobArgs, type IMeshCronJobExecuteResult, type IMeshCronJobOptions, type IMeshCronJobRunner, type IMeshCronJobRunnerResult, type IMeshCronManager, type IMeshError, type IMeshImageOptOptions, type IMeshImageOptRequestQueries, type IMeshImageOptResult, type IMeshPerformance, type IMeshPerformanceResult, type IMeshPlugin, type IMeshRepositoryFactory, type IMeshRoute, type IMeshRouter, type IMeshSecureService, type IMeshSoredCronJobRunner, type IMeshStoredCronJob, type IMeshUploadProgressInfo, type IMeshUploadProgressOptions, type IMeshUploadService, type IOnInitializeResult, type IOrmHelper, type IPagination, type IRestApiArgs, type IRestApiRequestExtension, type IRestApiRequestExtensionBeforeResult, type IRestApiRoute, type IRestApiRouteConfig, type IRestApiRouter, type IRuntimeActionAuth, type IRuntimeObject, type IRuntimeObjectAware, type IStaticDirectory, type IStaticDirectoryWorker, type IStaticLoader, type IStoredRestApiRoute, type IStoredTemplate, type ITemplate, type ITemplateArgs, type ITemplateExtension, type ITemplateManager, type ITemplateRenderResult, type IUploadFileResource, type IUploadServiceProps, type IUploadServiceResult, type IUploadedFile, type IUploadedFileMeta, type IWebsocketCommander, type IWebsocketInternalEvents, type IWsBcExecutableArgs, type IWsCTRLArgs, type IWsCTRLDispatcher, type IWsCTRLInfo, type IWsCTRLManager, type IWsCTRLOptions, type IWsCTRLResult, type IWsClient, type IWsClientLog, type IWsController, type IWsReceivedCTRL, type IWsSenderCTRL, type IWsStoredCTRL, type InitFnResult, Inject, InjectService, type LoadEnvPropsInt, type MainFnArgs, type MainFnResult, type MeshContainerServices, type MeshCronJobs, type MeshRouter, NsCore, NsEnv, NsRuntime, NsServer, ORMSetup, type OnInitializeFn, OrmHelper, type PluginBeforeStartFn, type PluginBuildGraphqlSchemaFn, type PluginBuildRouterFn, type PluginInitFn, type PluginNextFn, type PluginWsClientConnectedFn, RegisterBootLoader, RegisterCronJob, RegisterWsController, RestApi, RestApiArgs, RestApiAuth, RestApiGet, type RestApiHandlerFn, RestApiHeaders, RestApiPath, RestApiPost, type RestApiResult, type RestApiRouteCtor, type RestApiRoutePath, RestApiRouter, type RestApiStatusCode, type RuntimeActionHeaders, RuntimeObjectAware, SubscribeEvent, Template, TemplateArgs, type TemplateContext, TemplateWrapper, type UploadFileResourceType, type UploadServiceFileUploadedFn, type WsBcExecutableFn, type WsCTRLActionFn, WsCTRLDispatcher, WsCTRLManager, type WsStoredCTRLMap, buildMode, cloneDeepObject, createDataListing, distDir, findFiles, genDir, getGlobal, isDev, isProd, lcfirst, ltrim, mergeDeepObject, parsePagination, publicDir, readMetadata, rootDir, rtrim, startServer, staticDir, stringHasOnlySpaces, stringIsEmpty, trim, ucfirst, writeMetadata };
|
package/release/index.js
CHANGED
|
@@ -910,7 +910,7 @@ var require_ms = __commonJS({
|
|
|
910
910
|
var require_common = __commonJS({
|
|
911
911
|
"node_modules/debug/src/common.js"(exports, module) {
|
|
912
912
|
"use strict";
|
|
913
|
-
function
|
|
913
|
+
function setup2(env3) {
|
|
914
914
|
createDebug.debug = createDebug;
|
|
915
915
|
createDebug.default = createDebug;
|
|
916
916
|
createDebug.coerce = coerce;
|
|
@@ -1080,7 +1080,7 @@ var require_common = __commonJS({
|
|
|
1080
1080
|
createDebug.enable(createDebug.load());
|
|
1081
1081
|
return createDebug;
|
|
1082
1082
|
}
|
|
1083
|
-
module.exports =
|
|
1083
|
+
module.exports = setup2;
|
|
1084
1084
|
}
|
|
1085
1085
|
});
|
|
1086
1086
|
|
|
@@ -29233,8 +29233,8 @@ var init_database_adapter = __esm({
|
|
|
29233
29233
|
*/
|
|
29234
29234
|
setup(ctor) {
|
|
29235
29235
|
try {
|
|
29236
|
-
const
|
|
29237
|
-
const meta =
|
|
29236
|
+
const setup2 = new ctor();
|
|
29237
|
+
const meta = setup2.getMeta();
|
|
29238
29238
|
meta.entities.map((entity) => {
|
|
29239
29239
|
this.entities.push(entity);
|
|
29240
29240
|
});
|
|
@@ -30700,12 +30700,28 @@ function DatabaseSetup() {
|
|
|
30700
30700
|
getGlobal("database-adapter").setup(ctor);
|
|
30701
30701
|
};
|
|
30702
30702
|
}
|
|
30703
|
+
function ORMSetup(options) {
|
|
30704
|
+
return function(target, name) {
|
|
30705
|
+
setup(options, target);
|
|
30706
|
+
};
|
|
30707
|
+
}
|
|
30708
|
+
var getMeta, setup;
|
|
30703
30709
|
var init_decorators6 = __esm({
|
|
30704
30710
|
"src/core/database/decorators.ts"() {
|
|
30705
30711
|
"use strict";
|
|
30706
30712
|
init_types_all3();
|
|
30707
30713
|
init_helper();
|
|
30708
30714
|
init_globals();
|
|
30715
|
+
getMeta = (target) => {
|
|
30716
|
+
return readMetadata(target, DB_BUNDLE_META_KEY, {
|
|
30717
|
+
entities: []
|
|
30718
|
+
});
|
|
30719
|
+
};
|
|
30720
|
+
setup = (options, target) => {
|
|
30721
|
+
const meta = getMeta(target);
|
|
30722
|
+
meta.entities = options.entities;
|
|
30723
|
+
writeMetadata(target, DB_BUNDLE_META_KEY, meta);
|
|
30724
|
+
};
|
|
30709
30725
|
}
|
|
30710
30726
|
});
|
|
30711
30727
|
|
|
@@ -35873,7 +35889,8 @@ var startServer = (props) => {
|
|
|
35873
35889
|
|
|
35874
35890
|
|
|
35875
35891
|
|
|
35876
|
-
|
|
35892
|
+
|
|
35893
|
+
exports.AbstractRuntimeObject = AbstractRuntimeObject; exports.AbstractService = AbstractService; exports.AfterInsert = _typeorm.AfterInsert; exports.AfterUpdate = _typeorm.AfterUpdate; exports.And = _typeorm.And; exports.AsyncEventArgs = AsyncEventArgs; exports.AsyncEventEmitter = AsyncEventEmitter; exports.BaseBroadcastController = BaseBroadcastController; exports.BaseDatabaseSetup = BaseDatabaseSetup; exports.BaseDbResource = BaseDbResource; exports.BaseOrmEntity = BaseOrmEntity; exports.BaseTemplate = BaseTemplate; exports.BeforeInsert = _typeorm.BeforeInsert; exports.BeforeUpdate = _typeorm.BeforeUpdate; exports.Column = _typeorm.Column; exports.CreateDateColumn = _typeorm.CreateDateColumn; exports.DatabaseSetup = DatabaseSetup; exports.DbResource = DbResource; exports.DefaultBroadcastController = DefaultBroadcastController; exports.EmitEvent = EmitEvent; exports.Entity = _typeorm.Entity; exports.EntityTarget = _typeorm.EntityTarget; exports.FindOptionsWhere = _typeorm.FindOptionsWhere; exports.GraphqlArgs = GraphqlArgs; exports.GraphqlAuth = GraphqlAuth; exports.GraphqlBaseResolver = GraphqlBaseResolver; exports.GraphqlDefinition = GraphqlDefinition; exports.GraphqlEvents = GraphqlEvents; exports.GraphqlLog = GraphqlLog; exports.GraphqlMutation = GraphqlMutation; exports.GraphqlQuery = GraphqlQuery; exports.GraphqlResolver = GraphqlResolver; exports.GraphqlReturnTypes = GraphqlReturnTypes; exports.GraphqlRuntimeArgs = GraphqlRuntimeArgs; exports.GraphqlValidationInputs = GraphqlValidationInputs; exports.ILike = _typeorm.ILike; exports.In = _typeorm.In; exports.Index = _typeorm.Index; exports.Inject = Inject; exports.InjectService = InjectService; exports.JoinColumn = _typeorm.JoinColumn; exports.JoinColumnOptions = _typeorm.JoinColumnOptions; exports.JoinTable = _typeorm.JoinTable; exports.JoinTableOptions = _typeorm.JoinTableOptions; exports.JsonContains = _typeorm.JsonContains; exports.ManyToMany = _typeorm.ManyToMany; exports.ManyToOne = _typeorm.ManyToOne; exports.Not = _typeorm.Not; exports.ORMSetup = ORMSetup; exports.ObjectLiteral = _typeorm.ObjectLiteral; exports.OneToMany = _typeorm.OneToMany; exports.OneToOne = _typeorm.OneToOne; exports.Or = _typeorm.Or; exports.OrmHelper = OrmHelper; exports.PrimaryColumn = _typeorm.PrimaryColumn; exports.PrimaryGeneratedColumn = _typeorm.PrimaryGeneratedColumn; exports.React = _react2.default; exports.RegisterBootLoader = RegisterBootLoader; exports.RegisterCronJob = RegisterCronJob; exports.RegisterWsController = RegisterWsController; exports.Repository = _typeorm.Repository; exports.RestApi = RestApi; exports.RestApiArgs = RestApiArgs; exports.RestApiAuth = RestApiAuth; exports.RestApiGet = RestApiGet; exports.RestApiHeaders = RestApiHeaders; exports.RestApiPath = RestApiPath; exports.RestApiPost = RestApiPost; exports.RestApiRouter = RestApiRouter; exports.RuntimeObjectAware = RuntimeObjectAware; exports.SelectQueryBuilder = _typeorm.SelectQueryBuilder; exports.SubscribeEvent = SubscribeEvent; exports.Template = Template; exports.TemplateArgs = TemplateArgs; exports.TemplateWrapper = TemplateWrapper; exports.Unique = _typeorm.Unique; exports.UpdateDateColumn = _typeorm.UpdateDateColumn; exports.WsCTRLDispatcher = WsCTRLDispatcher; exports.WsCTRLManager = WsCTRLManager; exports.buildMode = buildMode; exports.cloneDeepObject = cloneDeepObject; exports.createDataListing = createDataListing; exports.distDir = distDir; exports.findFiles = findFiles; exports.genDir = genDir; exports.getGlobal = getGlobal; exports.isDev = isDev; exports.isProd = isProd; exports.lcfirst = lcfirst; exports.ltrim = ltrim; exports.mergeDeepObject = mergeDeepObject; exports.parsePagination = parsePagination; exports.publicDir = publicDir; exports.readMetadata = readMetadata; exports.rootDir = rootDir; exports.rtrim = rtrim; exports.startServer = startServer; exports.staticDir = staticDir; exports.stringHasOnlySpaces = stringHasOnlySpaces; exports.stringIsEmpty = stringIsEmpty; exports.trim = trim; exports.ucfirst = ucfirst; exports.writeMetadata = writeMetadata;
|
|
35877
35894
|
/*! Bundled license information:
|
|
35878
35895
|
|
|
35879
35896
|
depd/index.js:
|