@treatwell/moleculer-essentials 2.1.0-beta.1 → 2.1.0-beta.2
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/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/mixins/database.mixin.d.cts +1 -1
- package/dist/mixins/database.mixin.d.mts +1 -1
- package/dist/mixins/encryptor.mixin.d.cts +1 -1
- package/dist/mixins/encryptor.mixin.d.mts +1 -1
- package/dist/mixins/global-store.mixin.d.cts +1 -1
- package/dist/mixins/global-store.mixin.d.mts +1 -1
- package/dist/mixins/jwt.mixin.d.cts +1 -1
- package/dist/mixins/jwt.mixin.d.mts +1 -1
- package/dist/mixins/queue.mixin.d.cts +1 -1
- package/dist/mixins/queue.mixin.d.mts +1 -1
- package/dist/mixins/redis.mixin.d.cts +1 -1
- package/dist/mixins/redis.mixin.d.mts +1 -1
- package/dist/mixins/redlock.mixin.d.cts +1 -1
- package/dist/mixins/redlock.mixin.d.mts +1 -1
- package/dist/{types-rbdpRATx.d.cts → types-Cdh7thEZ.d.cts} +1 -1
- package/dist/{types-rbdpRATx.d.mts → types-Cdh7thEZ.d.mts} +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as SomeJSONSchema, J as JSONSchemaType, C as CustomActionSchema, A as Alias, P as PartialCustomServiceSchema, D as Document, a as SchemaObject, O as OperationObject, R as ReferenceObject, b as CustomServiceSchema, c as CreateLoggerOptions, M as MoleculerLoggerConfigOptions } from './types-
|
|
2
|
-
export { d as AjvValidator, e as ApiKeySecurityScheme, f as CallbackObject, g as ComponentsObject, h as ContactObject, i as ContextFactory, E as EncodingObject, j as ExampleObject, k as ExternalDocumentationObject, H as HeaderObject, l as HttpSecurityScheme, I as InfoObject, m as InternalCallbackServiceThis, n as InternalObjectServiceThis, L as LicenseObject, o as LinkObject, p as MediaTypeObject, q as OAuth2SecurityScheme, r as OpenIdSecurityScheme, s as ParameterBaseObject, t as ParameterObject, u as PathItemObject, v as PathsObject, w as PropertiesSchema, x as RequestBodyObject, y as RequiredMembers, z as ResponseObject, B as ResponsesObject, F as SecurityRequirementObject, G as SecuritySchemeObject, K as ServerObject, N as ServerVariableObject, T as TagObject, Q as Transform, U as TransformField, V as TransformLevel, W as TransformMap, X as Transformer, Y as ValidationSchema, Z as ZodValidator } from './types-
|
|
1
|
+
import { S as SomeJSONSchema, J as JSONSchemaType, C as CustomActionSchema, A as Alias, P as PartialCustomServiceSchema, D as Document, a as SchemaObject, O as OperationObject, R as ReferenceObject, b as CustomServiceSchema, c as CreateLoggerOptions, M as MoleculerLoggerConfigOptions } from './types-Cdh7thEZ.cjs';
|
|
2
|
+
export { d as AjvValidator, e as ApiKeySecurityScheme, f as CallbackObject, g as ComponentsObject, h as ContactObject, i as ContextFactory, E as EncodingObject, j as ExampleObject, k as ExternalDocumentationObject, H as HeaderObject, l as HttpSecurityScheme, I as InfoObject, m as InternalCallbackServiceThis, n as InternalObjectServiceThis, L as LicenseObject, o as LinkObject, p as MediaTypeObject, q as OAuth2SecurityScheme, r as OpenIdSecurityScheme, s as ParameterBaseObject, t as ParameterObject, u as PathItemObject, v as PathsObject, w as PropertiesSchema, x as RequestBodyObject, y as RequiredMembers, z as ResponseObject, B as ResponsesObject, F as SecurityRequirementObject, G as SecuritySchemeObject, K as ServerObject, N as ServerVariableObject, T as TagObject, Q as Transform, U as TransformField, V as TransformLevel, W as TransformMap, X as Transformer, Y as ValidationSchema, Z as ZodValidator } from './types-Cdh7thEZ.cjs';
|
|
3
3
|
import { ObjectId } from 'bson';
|
|
4
4
|
import { z, ZodType } from 'zod/v4';
|
|
5
5
|
import { Ajv2019 } from 'ajv/dist/2019.js';
|
|
6
|
-
import { Errors, Context,
|
|
6
|
+
import { Errors, Context, ServiceSettingSchema, ServiceSchema, Service, ServiceBroker, BrokerOptions, Middleware, LoggerConfig, TracerExporters, Logger as Logger$1, Tracer, Span, MetricReporters, MetricRegistry } from 'moleculer';
|
|
7
7
|
import { Logger } from 'pino';
|
|
8
8
|
import 'pino-pretty';
|
|
9
9
|
|
|
@@ -205,7 +205,7 @@ declare function wrapMixin<Settings, Methods, Mixins>(svc: PartialCustomServiceS
|
|
|
205
205
|
* type that extend the original one.
|
|
206
206
|
* More on why: https://github.com/microsoft/TypeScript/pull/58176#issuecomment-2052698294
|
|
207
207
|
*/
|
|
208
|
-
type _InferredServiceSchema = ServiceSchema
|
|
208
|
+
type _InferredServiceSchema<TSettings = ServiceSettingSchema> = ServiceSchema<TSettings>;
|
|
209
209
|
/**
|
|
210
210
|
* This function is a NO-OP and is only useful for Typescript types.
|
|
211
211
|
* Using Generic arguments allows TS to infer types directly from the object
|
|
@@ -214,7 +214,7 @@ type _InferredServiceSchema = ServiceSchema;
|
|
|
214
214
|
* For the wrapService fn, it will return a moleculer ServiceSchema that will stripe
|
|
215
215
|
* out every smart typing of methods. This should never be used inside a mixin.
|
|
216
216
|
*/
|
|
217
|
-
declare function wrapService<Settings, Methods, Mixins>(svc: CustomServiceSchema<Settings, Methods, Mixins>): _InferredServiceSchema
|
|
217
|
+
declare function wrapService<Settings, Methods, Mixins>(svc: CustomServiceSchema<Settings, Methods, Mixins>): _InferredServiceSchema<Settings>;
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* This class replace the default Service class in Moleculer to:
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as SomeJSONSchema, J as JSONSchemaType, C as CustomActionSchema, A as Alias, P as PartialCustomServiceSchema, D as Document, a as SchemaObject, O as OperationObject, R as ReferenceObject, b as CustomServiceSchema, c as CreateLoggerOptions, M as MoleculerLoggerConfigOptions } from './types-
|
|
2
|
-
export { d as AjvValidator, e as ApiKeySecurityScheme, f as CallbackObject, g as ComponentsObject, h as ContactObject, i as ContextFactory, E as EncodingObject, j as ExampleObject, k as ExternalDocumentationObject, H as HeaderObject, l as HttpSecurityScheme, I as InfoObject, m as InternalCallbackServiceThis, n as InternalObjectServiceThis, L as LicenseObject, o as LinkObject, p as MediaTypeObject, q as OAuth2SecurityScheme, r as OpenIdSecurityScheme, s as ParameterBaseObject, t as ParameterObject, u as PathItemObject, v as PathsObject, w as PropertiesSchema, x as RequestBodyObject, y as RequiredMembers, z as ResponseObject, B as ResponsesObject, F as SecurityRequirementObject, G as SecuritySchemeObject, K as ServerObject, N as ServerVariableObject, T as TagObject, Q as Transform, U as TransformField, V as TransformLevel, W as TransformMap, X as Transformer, Y as ValidationSchema, Z as ZodValidator } from './types-
|
|
1
|
+
import { S as SomeJSONSchema, J as JSONSchemaType, C as CustomActionSchema, A as Alias, P as PartialCustomServiceSchema, D as Document, a as SchemaObject, O as OperationObject, R as ReferenceObject, b as CustomServiceSchema, c as CreateLoggerOptions, M as MoleculerLoggerConfigOptions } from './types-Cdh7thEZ.mjs';
|
|
2
|
+
export { d as AjvValidator, e as ApiKeySecurityScheme, f as CallbackObject, g as ComponentsObject, h as ContactObject, i as ContextFactory, E as EncodingObject, j as ExampleObject, k as ExternalDocumentationObject, H as HeaderObject, l as HttpSecurityScheme, I as InfoObject, m as InternalCallbackServiceThis, n as InternalObjectServiceThis, L as LicenseObject, o as LinkObject, p as MediaTypeObject, q as OAuth2SecurityScheme, r as OpenIdSecurityScheme, s as ParameterBaseObject, t as ParameterObject, u as PathItemObject, v as PathsObject, w as PropertiesSchema, x as RequestBodyObject, y as RequiredMembers, z as ResponseObject, B as ResponsesObject, F as SecurityRequirementObject, G as SecuritySchemeObject, K as ServerObject, N as ServerVariableObject, T as TagObject, Q as Transform, U as TransformField, V as TransformLevel, W as TransformMap, X as Transformer, Y as ValidationSchema, Z as ZodValidator } from './types-Cdh7thEZ.mjs';
|
|
3
3
|
import { ObjectId } from 'bson';
|
|
4
4
|
import { z, ZodType } from 'zod/v4';
|
|
5
5
|
import { Ajv2019 } from 'ajv/dist/2019.js';
|
|
6
|
-
import { Errors, Context,
|
|
6
|
+
import { Errors, Context, ServiceSettingSchema, ServiceSchema, Service, ServiceBroker, BrokerOptions, Middleware, LoggerConfig, TracerExporters, Logger as Logger$1, Tracer, Span, MetricReporters, MetricRegistry } from 'moleculer';
|
|
7
7
|
import { Logger } from 'pino';
|
|
8
8
|
import 'pino-pretty';
|
|
9
9
|
|
|
@@ -205,7 +205,7 @@ declare function wrapMixin<Settings, Methods, Mixins>(svc: PartialCustomServiceS
|
|
|
205
205
|
* type that extend the original one.
|
|
206
206
|
* More on why: https://github.com/microsoft/TypeScript/pull/58176#issuecomment-2052698294
|
|
207
207
|
*/
|
|
208
|
-
type _InferredServiceSchema = ServiceSchema
|
|
208
|
+
type _InferredServiceSchema<TSettings = ServiceSettingSchema> = ServiceSchema<TSettings>;
|
|
209
209
|
/**
|
|
210
210
|
* This function is a NO-OP and is only useful for Typescript types.
|
|
211
211
|
* Using Generic arguments allows TS to infer types directly from the object
|
|
@@ -214,7 +214,7 @@ type _InferredServiceSchema = ServiceSchema;
|
|
|
214
214
|
* For the wrapService fn, it will return a moleculer ServiceSchema that will stripe
|
|
215
215
|
* out every smart typing of methods. This should never be used inside a mixin.
|
|
216
216
|
*/
|
|
217
|
-
declare function wrapService<Settings, Methods, Mixins>(svc: CustomServiceSchema<Settings, Methods, Mixins>): _InferredServiceSchema
|
|
217
|
+
declare function wrapService<Settings, Methods, Mixins>(svc: CustomServiceSchema<Settings, Methods, Mixins>): _InferredServiceSchema<Settings>;
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* This class replace the default Service class in Moleculer to:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Document, ObjectId, WithoutId, InferIdType, Filter, OptionalId, WithId, CountDocumentsOptions, DeleteOptions, FindOneAndDeleteOptions, FindOptions, BulkWriteOptions, FindOneAndUpdateOptions, UpdateOptions, FindOneAndReplaceOptions, CollationOptions, CreateCollectionOptions, MongoClient, CollectionOptions, Collection, UpdateFilter, FindCursor, UpdateResult } from 'mongodb';
|
|
2
2
|
import { ActionVisibility, Validators, Errors, Context } from 'moleculer';
|
|
3
3
|
import { ZodType, ZodObject } from 'zod/v4';
|
|
4
|
-
import { Y as ValidationSchema, J as JSONSchemaType, C as CustomActionSchema, P as PartialCustomServiceSchema } from '../types-
|
|
4
|
+
import { Y as ValidationSchema, J as JSONSchemaType, C as CustomActionSchema, P as PartialCustomServiceSchema } from '../types-Cdh7thEZ.cjs';
|
|
5
5
|
import { Readable } from 'stream';
|
|
6
6
|
import 'bson';
|
|
7
7
|
import 'ajv/dist/2019.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Document, ObjectId, WithoutId, InferIdType, Filter, OptionalId, WithId, CountDocumentsOptions, DeleteOptions, FindOneAndDeleteOptions, FindOptions, BulkWriteOptions, FindOneAndUpdateOptions, UpdateOptions, FindOneAndReplaceOptions, CollationOptions, CreateCollectionOptions, MongoClient, CollectionOptions, Collection, UpdateFilter, FindCursor, UpdateResult } from 'mongodb';
|
|
2
2
|
import { ActionVisibility, Validators, Errors, Context } from 'moleculer';
|
|
3
3
|
import { ZodType, ZodObject } from 'zod/v4';
|
|
4
|
-
import { Y as ValidationSchema, J as JSONSchemaType, C as CustomActionSchema, P as PartialCustomServiceSchema } from '../types-
|
|
4
|
+
import { Y as ValidationSchema, J as JSONSchemaType, C as CustomActionSchema, P as PartialCustomServiceSchema } from '../types-Cdh7thEZ.mjs';
|
|
5
5
|
import { Readable } from 'stream';
|
|
6
6
|
import 'bson';
|
|
7
7
|
import 'ajv/dist/2019.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PartialCustomServiceSchema } from '../types-
|
|
1
|
+
import { P as PartialCustomServiceSchema } from '../types-Cdh7thEZ.cjs';
|
|
2
2
|
import { buildClient, NodeCachingMaterialsManager } from '@aws-crypto/client-node';
|
|
3
3
|
import 'moleculer';
|
|
4
4
|
import 'bson';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PartialCustomServiceSchema } from '../types-
|
|
1
|
+
import { P as PartialCustomServiceSchema } from '../types-Cdh7thEZ.mjs';
|
|
2
2
|
import { buildClient, NodeCachingMaterialsManager } from '@aws-crypto/client-node';
|
|
3
3
|
import 'moleculer';
|
|
4
4
|
import 'bson';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PartialCustomServiceSchema } from '../types-
|
|
1
|
+
import { P as PartialCustomServiceSchema } from '../types-Cdh7thEZ.cjs';
|
|
2
2
|
import { SignOptions, PrivateKey, VerifyOptions, JwtHeader, SigningKeyCallback } from 'jsonwebtoken';
|
|
3
3
|
import { Options, JwksClient } from 'jwks-rsa';
|
|
4
4
|
import { Context } from 'moleculer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PartialCustomServiceSchema } from '../types-
|
|
1
|
+
import { P as PartialCustomServiceSchema } from '../types-Cdh7thEZ.mjs';
|
|
2
2
|
import { SignOptions, PrivateKey, VerifyOptions, JwtHeader, SigningKeyCallback } from 'jsonwebtoken';
|
|
3
3
|
import { Options, JwksClient } from 'jwks-rsa';
|
|
4
4
|
import { Context } from 'moleculer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PartialCustomServiceSchema } from '../types-
|
|
1
|
+
import { P as PartialCustomServiceSchema } from '../types-Cdh7thEZ.cjs';
|
|
2
2
|
import { Redis } from 'ioredis';
|
|
3
3
|
import { QueueOptions, Queue, JobsOptions, Job, QueueEventsOptions, QueueEvents, QueueBaseOptions, FlowProducer, RepeatOptions, WorkerOptions, Worker } from 'bullmq';
|
|
4
4
|
import { Service } from 'moleculer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PartialCustomServiceSchema } from '../types-
|
|
1
|
+
import { P as PartialCustomServiceSchema } from '../types-Cdh7thEZ.mjs';
|
|
2
2
|
import { Redis } from 'ioredis';
|
|
3
3
|
import { QueueOptions, Queue, JobsOptions, Job, QueueEventsOptions, QueueEvents, QueueBaseOptions, FlowProducer, RepeatOptions, WorkerOptions, Worker } from 'bullmq';
|
|
4
4
|
import { Service } from 'moleculer';
|
|
@@ -350,7 +350,7 @@ interface CustomActionSchema<T = unknown> extends Omit<ActionSchema, 'params' |
|
|
|
350
350
|
openAPINames?: string[] | null;
|
|
351
351
|
openapi?: OperationObject;
|
|
352
352
|
bodySchemaRefName?: string;
|
|
353
|
-
rest?: CustomRestSchema | CustomRestSchema[] | string | string[];
|
|
353
|
+
rest?: CustomRestSchema | CustomRestSchema[] | string | string[] | null;
|
|
354
354
|
}
|
|
355
355
|
type Alias = {
|
|
356
356
|
actionName: string;
|
|
@@ -350,7 +350,7 @@ interface CustomActionSchema<T = unknown> extends Omit<ActionSchema, 'params' |
|
|
|
350
350
|
openAPINames?: string[] | null;
|
|
351
351
|
openapi?: OperationObject;
|
|
352
352
|
bodySchemaRefName?: string;
|
|
353
|
-
rest?: CustomRestSchema | CustomRestSchema[] | string | string[];
|
|
353
|
+
rest?: CustomRestSchema | CustomRestSchema[] | string | string[] | null;
|
|
354
354
|
}
|
|
355
355
|
type Alias = {
|
|
356
356
|
actionName: string;
|
package/package.json
CHANGED