@elsikora/nestjs-crud-automator 1.11.2 → 1.11.3-dev.1
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/cjs/class/api/service-base.class.d.ts +6 -0
- package/dist/cjs/class/api/service-base.class.js +6 -0
- package/dist/cjs/class/api/service-base.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/function-base.class.d.ts +6 -0
- package/dist/cjs/class/api/subscriber/function-base.class.js +6 -0
- package/dist/cjs/class/api/subscriber/function-base.class.js.map +1 -1
- package/dist/cjs/class/api/subscriber/route-base.class.d.ts +6 -0
- package/dist/cjs/class/api/subscriber/route-base.class.js +6 -0
- package/dist/cjs/class/api/subscriber/route-base.class.js.map +1 -1
- package/dist/cjs/class/metadata-storage.class.d.ts +6 -0
- package/dist/cjs/class/metadata-storage.class.js +6 -0
- package/dist/cjs/class/metadata-storage.class.js.map +1 -1
- package/dist/cjs/decorator/api/controller/decorator.d.ts +6 -0
- package/dist/cjs/decorator/api/controller/decorator.js +6 -0
- package/dist/cjs/decorator/api/controller/decorator.js.map +1 -1
- package/dist/cjs/decorator/api/property/describe.decorator.d.ts +3 -0
- package/dist/cjs/decorator/api/property/describe.decorator.js +3 -0
- package/dist/cjs/decorator/api/property/describe.decorator.js.map +1 -1
- package/dist/cjs/decorator/api/service.decorator.d.ts +3 -0
- package/dist/cjs/decorator/api/service.decorator.js +3 -0
- package/dist/cjs/decorator/api/service.decorator.js.map +1 -1
- package/dist/cjs/interceptor/correlation-id-response-body.interceptor.d.ts +6 -0
- package/dist/cjs/interceptor/correlation-id-response-body.interceptor.js +6 -0
- package/dist/cjs/interceptor/correlation-id-response-body.interceptor.js.map +1 -1
- package/dist/cjs/module/api-subscriber.module.d.ts +7 -0
- package/dist/cjs/module/api-subscriber.module.js +7 -0
- package/dist/cjs/module/api-subscriber.module.js.map +1 -1
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.d.ts +6 -0
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.js +6 -0
- package/dist/cjs/validator/all-or-none-of-listed-properties.validator.js.map +1 -1
- package/dist/esm/class/api/service-base.class.d.ts +6 -0
- package/dist/esm/class/api/service-base.class.js +6 -0
- package/dist/esm/class/api/service-base.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/function-base.class.d.ts +6 -0
- package/dist/esm/class/api/subscriber/function-base.class.js +6 -0
- package/dist/esm/class/api/subscriber/function-base.class.js.map +1 -1
- package/dist/esm/class/api/subscriber/route-base.class.d.ts +6 -0
- package/dist/esm/class/api/subscriber/route-base.class.js +6 -0
- package/dist/esm/class/api/subscriber/route-base.class.js.map +1 -1
- package/dist/esm/class/metadata-storage.class.d.ts +6 -0
- package/dist/esm/class/metadata-storage.class.js +6 -0
- package/dist/esm/class/metadata-storage.class.js.map +1 -1
- package/dist/esm/decorator/api/controller/decorator.d.ts +6 -0
- package/dist/esm/decorator/api/controller/decorator.js +6 -0
- package/dist/esm/decorator/api/controller/decorator.js.map +1 -1
- package/dist/esm/decorator/api/property/describe.decorator.d.ts +3 -0
- package/dist/esm/decorator/api/property/describe.decorator.js +3 -0
- package/dist/esm/decorator/api/property/describe.decorator.js.map +1 -1
- package/dist/esm/decorator/api/service.decorator.d.ts +3 -0
- package/dist/esm/decorator/api/service.decorator.js +3 -0
- package/dist/esm/decorator/api/service.decorator.js.map +1 -1
- package/dist/esm/interceptor/correlation-id-response-body.interceptor.d.ts +6 -0
- package/dist/esm/interceptor/correlation-id-response-body.interceptor.js +6 -0
- package/dist/esm/interceptor/correlation-id-response-body.interceptor.js.map +1 -1
- package/dist/esm/module/api-subscriber.module.d.ts +7 -0
- package/dist/esm/module/api-subscriber.module.js +7 -0
- package/dist/esm/module/api-subscriber.module.js.map +1 -1
- package/dist/esm/validator/all-or-none-of-listed-properties.validator.d.ts +6 -0
- package/dist/esm/validator/all-or-none-of-listed-properties.validator.js +6 -0
- package/dist/esm/validator/all-or-none-of-listed-properties.validator.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { IApiGetListResponseResult } from '../../interface/decorator/api/index';
|
|
2
2
|
import type { TApiFunctionCreateProperties, TApiFunctionDeleteCriteria, TApiFunctionGetListProperties, TApiFunctionGetManyProperties, TApiFunctionGetProperties, TApiFunctionUpdateCriteria, TApiFunctionUpdateProperties } from '../../type/decorator/api/function/index';
|
|
3
3
|
import type { EntityManager } from "typeorm";
|
|
4
|
+
/**
|
|
5
|
+
* Base class for services providing CRUD operations.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#apiservicebase | API Reference - ApiServiceBase}
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/services | Core Concepts - Services}
|
|
9
|
+
*/
|
|
4
10
|
export declare class ApiServiceBase<E> {
|
|
5
11
|
create(properties: TApiFunctionCreateProperties<E>, eventManager?: EntityManager): Promise<E>;
|
|
6
12
|
delete(criteria: TApiFunctionDeleteCriteria<E>, eventManager?: EntityManager): Promise<void>;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Base class for services providing CRUD operations.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#apiservicebase | API Reference - ApiServiceBase}
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/services | Core Concepts - Services}
|
|
8
|
+
*/
|
|
3
9
|
class ApiServiceBase {
|
|
4
10
|
create(properties, eventManager) {
|
|
5
11
|
return Promise.resolve({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-base.class.js","sources":["../../../../../src/class/api/service-base.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"service-base.class.js","sources":["../../../../../src/class/api/service-base.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;;;;;AAKG;MACU,cAAc,CAAA;IAC1B,MAAM,CAAC,UAA2C,EAAE,YAA4B,EAAA;AAI/E,QAAA,OAAO,OAAO,CAAC,OAAO,CAAC,EAAO,CAAC;IAChC;IAEA,MAAM,CAAC,QAAuC,EAAE,YAA4B,EAAA;AAI3E,QAAA,OAAO,OAAO,CAAC,OAAO,EAAE;IACzB;;IAGA,GAAG,CAAC,UAAwC,EAAE,YAA4B,EAAA;AAIzE,QAAA,OAAO,OAAO,CAAC,OAAO,CAAC,EAAO,CAAC;IAChC;IAEA,OAAO,CAAC,UAA4C,EAAE,YAA4B,EAAA;AAIjF,QAAA,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAA6C,CAAC;IAC3F;IAEA,OAAO,CAAC,UAA4C,EAAE,YAA4B,EAAA;AAIjF,QAAA,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;IAC3B;AAEA,IAAA,MAAM,CAAC,QAAuC,EAAE,UAA2C,EAAE,YAA4B,EAAA;AAKxH,QAAA,OAAO,OAAO,CAAC,OAAO,CAAC,EAAO,CAAC;IAChC;AACA;;;;"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { IApiBaseEntity } from '../../../interface/api-base-entity.interface';
|
|
2
2
|
import type { IApiSubscriberFunction } from '../../../interface/class/api/subscriber/function.interface';
|
|
3
3
|
import { ApiSubscriberBase } from './base.class';
|
|
4
|
+
/**
|
|
5
|
+
* Abstract base class for function-level subscribers.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#apifunctionsubscriberbase | API Reference - ApiFunctionSubscriberBase}
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/subscriber-system/function-subscribers | Subscriber System - Function Subscribers}
|
|
9
|
+
*/
|
|
4
10
|
export declare abstract class ApiFunctionSubscriberBase<E extends IApiBaseEntity> extends ApiSubscriberBase implements IApiSubscriberFunction<E> {
|
|
5
11
|
}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var base_class = require('./base.class.js');
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Abstract base class for function-level subscribers.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#apifunctionsubscriberbase | API Reference - ApiFunctionSubscriberBase}
|
|
9
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/subscriber-system/function-subscribers | Subscriber System - Function Subscribers}
|
|
10
|
+
*/
|
|
5
11
|
class ApiFunctionSubscriberBase extends base_class.ApiSubscriberBase {
|
|
6
12
|
}
|
|
7
13
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function-base.class.js","sources":["../../../../../../src/class/api/subscriber/function-base.class.ts"],"sourcesContent":[null],"names":["ApiSubscriberBase"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"function-base.class.js","sources":["../../../../../../src/class/api/subscriber/function-base.class.ts"],"sourcesContent":[null],"names":["ApiSubscriberBase"],"mappings":";;;;AAKA;;;;;AAKG;AACG,MAAgB,yBAAoD,SAAQA,4BAAiB,CAAA;AAAwC;;;;"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { IApiBaseEntity } from '../../../interface/api-base-entity.interface';
|
|
2
2
|
import type { IApiSubscriberRoute } from '../../../interface/class/api/subscriber/route.interface';
|
|
3
3
|
import { ApiSubscriberBase } from './base.class';
|
|
4
|
+
/**
|
|
5
|
+
* Abstract base class for route-level subscribers.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#apiroutesubscriberbase | API Reference - ApiRouteSubscriberBase}
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/subscriber-system/route-subscribers | Subscriber System - Route Subscribers}
|
|
9
|
+
*/
|
|
4
10
|
export declare abstract class ApiRouteSubscriberBase<E extends IApiBaseEntity> extends ApiSubscriberBase implements IApiSubscriberRoute<E> {
|
|
5
11
|
}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var base_class = require('./base.class.js');
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Abstract base class for route-level subscribers.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#apiroutesubscriberbase | API Reference - ApiRouteSubscriberBase}
|
|
9
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/subscriber-system/route-subscribers | Subscriber System - Route Subscribers}
|
|
10
|
+
*/
|
|
5
11
|
class ApiRouteSubscriberBase extends base_class.ApiSubscriberBase {
|
|
6
12
|
}
|
|
7
13
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-base.class.js","sources":["../../../../../../src/class/api/subscriber/route-base.class.ts"],"sourcesContent":[null],"names":["ApiSubscriberBase"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"route-base.class.js","sources":["../../../../../../src/class/api/subscriber/route-base.class.ts"],"sourcesContent":[null],"names":["ApiSubscriberBase"],"mappings":";;;;AAKA;;;;;AAKG;AACG,MAAgB,sBAAiD,SAAQA,4BAAiB,CAAA;AAAqC;;;;"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { IMetadataEntry } from '../interface/class/index';
|
|
2
2
|
import type { TMetadata } from '../type/class/index';
|
|
3
|
+
/**
|
|
4
|
+
* Singleton class for storing and retrieving entity property metadata.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#metadatastorage | API Reference - MetadataStorage}
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/metadata-storage | Core Concepts - Metadata Storage}
|
|
8
|
+
*/
|
|
3
9
|
export declare class MetadataStorage {
|
|
4
10
|
private static instance;
|
|
5
11
|
private readonly STORAGE;
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
require('../constant/decorator/api/function.constant.js');
|
|
4
4
|
var propertyDescribe_constant = require('../constant/decorator/api/property-describe.constant.js');
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Singleton class for storing and retrieving entity property metadata.
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#metadatastorage | API Reference - MetadataStorage}
|
|
10
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/metadata-storage | Core Concepts - Metadata Storage}
|
|
11
|
+
*/
|
|
6
12
|
class MetadataStorage {
|
|
7
13
|
static instance;
|
|
8
14
|
STORAGE = new Map();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata-storage.class.js","sources":["../../../../src/class/metadata-storage.class.ts"],"sourcesContent":[null],"names":["PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"metadata-storage.class.js","sources":["../../../../src/class/metadata-storage.class.ts"],"sourcesContent":[null],"names":["PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT"],"mappings":";;;;;AAKA;;;;;AAKG;MACU,eAAe,CAAA;IACnB,OAAO,QAAQ;AAEN,IAAA,OAAO,GAA6C,IAAI,GAAG,EAAuC;AAE5G,IAAA,OAAO,WAAW,GAAA;AACxB,QAAA,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE;AAC9B,YAAA,eAAe,CAAC,QAAQ,GAAG,IAAI,eAAe,EAAE;QACjD;QAEA,OAAO,eAAe,CAAC,QAAQ;IAChC;IAEO,sBAAsB,GAAA;QAC5B,MAAM,MAAM,GAA8B,EAAE;AAE5C,QAAA,KAAK,MAAM,CAAC,UAAU,EAAE,cAAc,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE;YAClE,MAAM,CAAC,UAAU,CAAC,GAAG,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|
import type { IApiBaseEntity } from '../../../interface/api-base-entity.interface';
|
|
2
2
|
import type { IApiControllerProperties } from '../../../interface/decorator/api/index';
|
|
3
3
|
import type { TApiControllerConstructor } from '../../../type/decorator/api/controller/index';
|
|
4
|
+
/**
|
|
5
|
+
* Automatically generates CRUD endpoints for an entity.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apicontroller | API Reference - ApiController}
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/controllers | Core Concepts - Controllers}
|
|
9
|
+
*/
|
|
4
10
|
export declare const ApiController: <E extends IApiBaseEntity>(options: IApiControllerProperties<E>) => <T extends TApiControllerConstructor>(target: T) => T;
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var controller_factory = require('../../../factory/api/controller.factory.js');
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Automatically generates CRUD endpoints for an entity.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apicontroller | API Reference - ApiController}
|
|
9
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/controllers | Core Concepts - Controllers}
|
|
10
|
+
*/
|
|
5
11
|
const ApiController = (options) => (target) => {
|
|
6
12
|
const factory = new controller_factory.ApiControllerFactory(target, options);
|
|
7
13
|
factory.init();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorator.js","sources":["../../../../../../src/decorator/api/controller/decorator.ts"],"sourcesContent":[null],"names":["ApiControllerFactory"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"decorator.js","sources":["../../../../../../src/decorator/api/controller/decorator.ts"],"sourcesContent":[null],"names":["ApiControllerFactory"],"mappings":";;;;AAMA;;;;;AAKG;AACI,MAAM,aAAa,GACzB,CAA2B,OAAoC,KAC/D,CAAsC,MAAS,KAAO;IACrD,MAAM,OAAO,GAA4B,IAAIA,uCAAoB,CAAI,MAAM,EAAE,OAAO,CAAC;IACrF,OAAO,CAAC,IAAI,EAAE;;AAGd,IAAA,MAAM,mBAAmB,GAA2D,cAAc,MAAM,CAAA;;AAEvG,QAAA,WAAA,CAAY,GAAG,UAAe,EAAA;;AAE7B,YAAA,KAAK,CAAC,GAAG,UAAU,CAAC;QACrB;KACA;AACD,IAAA,MAAM,CAAC,cAAc,CAAC,mBAAmB,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;AAE1E,IAAA,OAAO,mBAAwB;AAChC;;;;"}
|
|
@@ -79,5 +79,8 @@ import type { TApiPropertyDescribeProperties } from '../../../type/decorator/api
|
|
|
79
79
|
* })
|
|
80
80
|
* posts: Post[];
|
|
81
81
|
* ```
|
|
82
|
+
*
|
|
83
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apipropertydescribe | API Reference - ApiPropertyDescribe}
|
|
84
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/entities | Core Concepts - Entities}
|
|
82
85
|
*/
|
|
83
86
|
export declare function ApiPropertyDescribe(properties: TApiPropertyDescribeProperties): PropertyDecorator;
|
|
@@ -84,6 +84,9 @@ var propertyDescribe_constant = require('../../../constant/decorator/api/propert
|
|
|
84
84
|
* })
|
|
85
85
|
* posts: Post[];
|
|
86
86
|
* ```
|
|
87
|
+
*
|
|
88
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apipropertydescribe | API Reference - ApiPropertyDescribe}
|
|
89
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/entities | Core Concepts - Entities}
|
|
87
90
|
*/
|
|
88
91
|
function ApiPropertyDescribe(properties) {
|
|
89
92
|
return (target, propertyKey) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describe.decorator.js","sources":["../../../../../../src/decorator/api/property/describe.decorator.ts"],"sourcesContent":[null],"names":["MetadataStorage","PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT"],"mappings":";;;;;;AAKA
|
|
1
|
+
{"version":3,"file":"describe.decorator.js","sources":["../../../../../../src/decorator/api/property/describe.decorator.ts"],"sourcesContent":[null],"names":["MetadataStorage","PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT"],"mappings":";;;;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFG;AACG,SAAU,mBAAmB,CAAC,UAA0C,EAAA;AAC7E,IAAA,OAAO,CAAC,MAA8B,EAAE,WAA4B,KAAU;AAC7E,QAAA,MAAM,UAAU,GAAW,MAAM,CAAC,WAAW,CAAC,IAAI;AAClD,QAAAA,qCAAe,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,EAAEC,kEAAwC,CAAC,YAAY,EAAE,UAAU,CAAC;AACtI,IAAA,CAAC;AACF;;;;"}
|
|
@@ -5,5 +5,8 @@ import type { TApiServiceProperties } from '../../type/decorator/api/service/ind
|
|
|
5
5
|
* @param {TApiServiceProperties<E>} properties - Configuration properties for the service
|
|
6
6
|
* @returns {Function} A class decorator function that extends the target class with CRUD methods
|
|
7
7
|
* @template E - The entity type
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apiservice | API Reference - ApiService}
|
|
10
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/services | Core Concepts - Services}
|
|
8
11
|
*/
|
|
9
12
|
export declare function ApiService<E extends IApiBaseEntity>(properties: TApiServiceProperties<E>): <TFunction extends new (...arguments_: Array<any>) => object>(target: TFunction) => TFunction;
|
|
@@ -26,6 +26,9 @@ require('../../enum/decorator/api/route-type.enum.js');
|
|
|
26
26
|
* @param {TApiServiceProperties<E>} properties - Configuration properties for the service
|
|
27
27
|
* @returns {Function} A class decorator function that extends the target class with CRUD methods
|
|
28
28
|
* @template E - The entity type
|
|
29
|
+
*
|
|
30
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apiservice | API Reference - ApiService}
|
|
31
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/services | Core Concepts - Services}
|
|
29
32
|
*/
|
|
30
33
|
function ApiService(properties) {
|
|
31
34
|
const { entity } = properties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.decorator.js","sources":["../../../../../src/decorator/api/service.decorator.ts"],"sourcesContent":[null],"names":["EApiFunctionType","ApiFunction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AASA
|
|
1
|
+
{"version":3,"file":"service.decorator.js","sources":["../../../../../src/decorator/api/service.decorator.ts"],"sourcesContent":[null],"names":["EApiFunctionType","ApiFunction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AASA;;;;;;;;AAQG;AACG,SAAU,UAAU,CAA2B,UAAoC,EAAA;AACxF,IAAA,MAAM,EAAE,MAAM,EAAE,GAA6B,UAAU;;AAGvD,IAAA,OAAO,UAAuE,MAAiB,EAAA;QAC9F,MAAM,mBAAmB,GAAc,MAAM;;AAG7C,QAAA,MAAM,aAAa,GAAmE,cAAc,mBAAmB,CAAA;;AAEtH,YAAA,WAAA,CAAY,GAAG,UAAsB,EAAA;;AAEpC,gBAAA,KAAK,CAAC,GAAG,UAAU,CAAC;AAEpB,gBAAA,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAEA,0BAAgB,CAAC,QAAQ,CAAC,EAAE;oBAC3E,MAAM,CAAC,cAAc,CAAC,IAAI,EAAEA,0BAAgB,CAAC,QAAQ,EAAE;;AAEtD,wBAAA,YAAY,EAAE,IAAI;;AAElB,wBAAA,UAAU,EAAE,IAAI;AAChB,wBAAA,KAAK,EAAE,gBAAgB,UAA4C,EAAE,SAAkC,EAAE,YAA4B,EAA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CAAC;wBACjL,CAAC;;AAED,wBAAA,QAAQ,EAAE,IAAI;AACd,qBAAA,CAAC;gBACH;YACD;SACA;AAED,QAAA,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,mBAAmB,CAAC;AAEzD,QAAA,OAAO,aAA0B;AAClC,IAAA,CAAC;AACF;;;;"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { CallHandler, ExecutionContext, NestInterceptor } from "@nestjs/common";
|
|
2
2
|
import type { Observable } from "rxjs";
|
|
3
|
+
/**
|
|
4
|
+
* Global interceptor that adds correlation IDs and timestamps to all error responses.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/interceptors | API Reference - Interceptors}
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/guides/error-handling | Guides - Error Handling}
|
|
8
|
+
*/
|
|
3
9
|
export declare class CorrelationIDResponseBodyInterceptor implements NestInterceptor {
|
|
4
10
|
intercept(context: ExecutionContext, next: CallHandler): Observable<unknown>;
|
|
5
11
|
}
|
|
@@ -6,6 +6,12 @@ var common = require('@nestjs/common');
|
|
|
6
6
|
var throttler = require('@nestjs/throttler');
|
|
7
7
|
var operators = require('rxjs/operators');
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Global interceptor that adds correlation IDs and timestamps to all error responses.
|
|
11
|
+
*
|
|
12
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/interceptors | API Reference - Interceptors}
|
|
13
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/guides/error-handling | Guides - Error Handling}
|
|
14
|
+
*/
|
|
9
15
|
exports.CorrelationIDResponseBodyInterceptor = class CorrelationIDResponseBodyInterceptor {
|
|
10
16
|
intercept(context, next) {
|
|
11
17
|
return next.handle().pipe(operators.catchError((error) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"correlation-id-response-body.interceptor.js","sources":["../../../../src/interceptor/correlation-id-response-body.interceptor.ts"],"sourcesContent":[null],"names":["CorrelationIDResponseBodyInterceptor","catchError","ThrottlerException","randomUUID","HttpStatus","HttpException","InternalServerErrorException","__decorate","Injectable"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"correlation-id-response-body.interceptor.js","sources":["../../../../src/interceptor/correlation-id-response-body.interceptor.ts"],"sourcesContent":[null],"names":["CorrelationIDResponseBodyInterceptor","catchError","ThrottlerException","randomUUID","HttpStatus","HttpException","InternalServerErrorException","__decorate","Injectable"],"mappings":";;;;;;;;AAUA;;;;;AAKG;AAEUA,4CAAoC,GAA1C,MAAM,oCAAoC,CAAA;IAChD,SAAS,CAAC,OAAyB,EAAE,IAAiB,EAAA;AACrD,QAAA,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CACxBC,oBAAU,CAAC,CAAC,KAAc,KAAI;AAC7B,YAAA,IAAI,KAAK,YAAYC,4BAAkB,EAAE;gBACxC,MAAM,OAAO,GAAmB,OAAO,CAAC,YAAY,EAAE,CAAC,UAAU,EAAkB;gBACnF,IAAI,aAAa,GAAW,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAW;AACzE,gBAAA,MAAM,aAAa,GAAoB,KAAK,CAAC,WAAW,EAAE;gBAE1D,aAAa,KAAKC,sBAAU,EAAE;gBAE9B,IAAI,mBAAmB,GAA4B,EAAE;AACrD,gBAAA,mBAAmB,CAAC,UAAU,GAAGC,iBAAU,CAAC,iBAAiB;gBAE7D,IAAI,OAAO,aAAa,KAAK,QAAQ,IAAI,aAAa,IAAI,IAAI,EAAE;AAC/D,oBAAA,mBAAmB,GAAG,EAAE,GAAG,aAAa,EAAE;gBAC3C;qBAAO;AACN,oBAAA,mBAAmB,CAAC,OAAO,GAAG,aAAa;gBAC5C;AACA,gBAAA,mBAAmB,CAAC,KAAK,GAAG,mBAAmB;AAC/C,gBAAA,mBAAmB,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE;AAC1C,gBAAA,mB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AAC,UAAU,GAAGF,iBAAU,CAAC,qBAAqB;AACjE,gBAAA,mBAAmB,CAAC,OAAO,GAAG,aAAa;AAC3C,gBAAA,mBAAmB,CAAC,KAAK,GAAG,uBAAuB;AACnD,gBAAA,mBAAmB,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE;AAC1C,gBAAA,mBAAmB,CAAC,aAAa,GAAG,aAAa;gBAEjD,MAAM,MAAM,GAAW,WAAW,IAAI,aAAa,IAAI,OAAO,aAAa,CAAC,SAAS,KAAK,UAAU,GAAG,aAAa,CAAC,SAAS,EAAE,GAAGA,iBAAU,CAAC,qBAAqB;AAEnK,gBAAA,MAAM,IAAIC,oBAAa,CAAC,mBAAmB,EAAE,MAAM,CAAC;YACrD;QACD,CAAC,CAAC,CACF;IACF;;AAnEYL,4CAAoC,GAAAO,oBAAA,CAAA;AADhD,IAAAC,iBAAU;AACE,CAAA,EAAAR,4CAAoC,CAoEhD;;"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module for enabling the subscriber system.
|
|
3
|
+
*
|
|
4
|
+
* Import this module in your application root to enable subscriber discovery.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/subscriber-system | Subscriber System}
|
|
7
|
+
*/
|
|
1
8
|
export declare class ApiSubscriberModule {
|
|
2
9
|
}
|
|
@@ -5,6 +5,13 @@ var discoveryService_class = require('../class/api/subscriber/discovery-service.
|
|
|
5
5
|
var common = require('@nestjs/common');
|
|
6
6
|
var core = require('@nestjs/core');
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Module for enabling the subscriber system.
|
|
10
|
+
*
|
|
11
|
+
* Import this module in your application root to enable subscriber discovery.
|
|
12
|
+
*
|
|
13
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/subscriber-system | Subscriber System}
|
|
14
|
+
*/
|
|
8
15
|
exports.ApiSubscriberModule = class ApiSubscriberModule {
|
|
9
16
|
};
|
|
10
17
|
exports.ApiSubscriberModule = tslib_es6.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-subscriber.module.js","sources":["../../../../src/module/api-subscriber.module.ts"],"sourcesContent":[null],"names":["ApiSubscriberModule","__decorate","Module","ApiSubscriberDiscoveryService","DiscoveryModule"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"api-subscriber.module.js","sources":["../../../../src/module/api-subscriber.module.ts"],"sourcesContent":[null],"names":["ApiSubscriberModule","__decorate","Module","ApiSubscriberDiscoveryService","DiscoveryModule"],"mappings":";;;;;;;AAIA;;;;;;AAMG;AAMUA,2BAAmB,GAAzB,MAAM,mBAAmB,CAAA;;AAAnBA,2BAAmB,GAAAC,oBAAA,CAAA;AAL/B,IAAAC,aAAM,CAAC;QACP,OAAO,EAAE,CAACC,oDAA6B,CAAC;QACxC,OAAO,EAAE,CAACC,oBAAe,CAAC;QAC1B,SAAS,EAAE,CAACD,oDAA6B,CAAC;KAC1C;AACY,CAAA,EAAAH,2BAAmB,CAAG;;"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { ValidationArguments, ValidatorConstraintInterface } from "class-validator";
|
|
2
|
+
/**
|
|
3
|
+
* Validator that ensures either all or none of the specified properties are provided.
|
|
4
|
+
*
|
|
5
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/validators#allornoneoflistedpropertiesvalidator | API Reference - Validators}
|
|
6
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/guides/validation | Guides - Validation}
|
|
7
|
+
*/
|
|
2
8
|
export declare class AllOrNoneOfListedPropertiesValidator implements ValidatorConstraintInterface {
|
|
3
9
|
defaultMessage(properties: ValidationArguments): string;
|
|
4
10
|
validate(_value: unknown, properties: ValidationArguments): boolean;
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
var tslib_es6 = require('../external/tslib/tslib.es6.js');
|
|
4
4
|
var classValidator = require('class-validator');
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Validator that ensures either all or none of the specified properties are provided.
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/validators#allornoneoflistedpropertiesvalidator | API Reference - Validators}
|
|
10
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/guides/validation | Guides - Validation}
|
|
11
|
+
*/
|
|
6
12
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
7
13
|
exports.AllOrNoneOfListedPropertiesValidator = class AllOrNoneOfListedPropertiesValidator {
|
|
8
14
|
defaultMessage(properties) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-or-none-of-listed-properties.validator.js","sources":["../../../../src/validator/all-or-none-of-listed-properties.validator.ts"],"sourcesContent":[null],"names":["AllOrNoneOfListedPropertiesValidator","__decorate","ValidatorConstraint"],"mappings":";;;;;AAIA;AAEaA,4CAAoC,GAA1C,MAAM,oCAAoC,CAAA;AAChD,IAAA,cAAc,CAAC,UAA+B,EAAA;QAC7C,OAAO,CAAA,iEAAA,EAAoE,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE;IAC/G;IAEA,QAAQ,CAAC,MAAe,EAAE,UAA+B,EAAA;AACxD,QAAA,MAAM,WAAW,GAAkB,UAAU,CAAC,WAA4B;AAE1E,QAAA,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;AAC3B,YAAA,MAAM,eAAe,GAA4B,UAAU,CAAC,MAAiC;AAC7F,YAAA,MAAM,aAAa,GAAkB,WAAW,CAAC,MAAM,CAAC,CAAC,KAAa,KAAK,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,IAAI,eAAe,CAAC,KAAK,CAAC,KAAK,SAAS,CAAC;AAEhL,YAAA,OAAO,aAAa,CAAC,MAAM,KAAK,CAAC,IAAI,aAAa,CAAC,MAAM,KAAK,WAAW,CAAC,MAAM;QACjF;AAEA,QAAA,OAAO,IAAI;IACZ;;AAhBYA,4CAAoC,GAAAC,oBAAA,CAAA;IADhDC,kCAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kCAAkC,EAAE;AAClE,CAAA,EAAAF,4CAAoC,CAiBhD;;"}
|
|
1
|
+
{"version":3,"file":"all-or-none-of-listed-properties.validator.js","sources":["../../../../src/validator/all-or-none-of-listed-properties.validator.ts"],"sourcesContent":[null],"names":["AllOrNoneOfListedPropertiesValidator","__decorate","ValidatorConstraint"],"mappings":";;;;;AAIA;;;;;AAKG;AACH;AAEaA,4CAAoC,GAA1C,MAAM,oCAAoC,CAAA;AAChD,IAAA,cAAc,CAAC,UAA+B,EAAA;QAC7C,OAAO,CAAA,iEAAA,EAAoE,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE;IAC/G;IAEA,QAAQ,CAAC,MAAe,EAAE,UAA+B,EAAA;AACxD,QAAA,MAAM,WAAW,GAAkB,UAAU,CAAC,WAA4B;AAE1E,QAAA,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;AAC3B,YAAA,MAAM,eAAe,GAA4B,UAAU,CAAC,MAAiC;AAC7F,YAAA,MAAM,aAAa,GAAkB,WAAW,CAAC,MAAM,CAAC,CAAC,KAAa,KAAK,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,IAAI,eAAe,CAAC,KAAK,CAAC,KAAK,SAAS,CAAC;AAEhL,YAAA,OAAO,aAAa,CAAC,MAAM,KAAK,CAAC,IAAI,aAAa,CAAC,MAAM,KAAK,WAAW,CAAC,MAAM;QACjF;AAEA,QAAA,OAAO,IAAI;IACZ;;AAhBYA,4CAAoC,GAAAC,oBAAA,CAAA;IADhDC,kCAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kCAAkC,EAAE;AAClE,CAAA,EAAAF,4CAAoC,CAiBhD;;"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { IApiGetListResponseResult } from '../../interface/decorator/api/index';
|
|
2
2
|
import type { TApiFunctionCreateProperties, TApiFunctionDeleteCriteria, TApiFunctionGetListProperties, TApiFunctionGetManyProperties, TApiFunctionGetProperties, TApiFunctionUpdateCriteria, TApiFunctionUpdateProperties } from '../../type/decorator/api/function/index';
|
|
3
3
|
import type { EntityManager } from "typeorm";
|
|
4
|
+
/**
|
|
5
|
+
* Base class for services providing CRUD operations.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#apiservicebase | API Reference - ApiServiceBase}
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/services | Core Concepts - Services}
|
|
9
|
+
*/
|
|
4
10
|
export declare class ApiServiceBase<E> {
|
|
5
11
|
create(properties: TApiFunctionCreateProperties<E>, eventManager?: EntityManager): Promise<E>;
|
|
6
12
|
delete(criteria: TApiFunctionDeleteCriteria<E>, eventManager?: EntityManager): Promise<void>;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base class for services providing CRUD operations.
|
|
3
|
+
*
|
|
4
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#apiservicebase | API Reference - ApiServiceBase}
|
|
5
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/services | Core Concepts - Services}
|
|
6
|
+
*/
|
|
1
7
|
class ApiServiceBase {
|
|
2
8
|
create(properties, eventManager) {
|
|
3
9
|
return Promise.resolve({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-base.class.js","sources":["../../../../../src/class/api/service-base.class.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service-base.class.js","sources":["../../../../../src/class/api/service-base.class.ts"],"sourcesContent":[null],"names":[],"mappings":"AAKA;;;;;AAKG;MACU,cAAc,CAAA;IAC1B,MAAM,CAAC,UAA2C,EAAE,YAA4B,EAAA;AAI/E,QAAA,OAAO,OAAO,CAAC,OAAO,CAAC,EAAO,CAAC;IAChC;IAEA,MAAM,CAAC,QAAuC,EAAE,YAA4B,EAAA;AAI3E,QAAA,OAAO,OAAO,CAAC,OAAO,EAAE;IACzB;;IAGA,GAAG,CAAC,UAAwC,EAAE,YAA4B,EAAA;AAIzE,QAAA,OAAO,OAAO,CAAC,OAAO,CAAC,EAAO,CAAC;IAChC;IAEA,OAAO,CAAC,UAA4C,EAAE,YAA4B,EAAA;AAIjF,QAAA,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAA6C,CAAC;IAC3F;IAEA,OAAO,CAAC,UAA4C,EAAE,YAA4B,EAAA;AAIjF,QAAA,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;IAC3B;AAEA,IAAA,MAAM,CAAC,QAAuC,EAAE,UAA2C,EAAE,YAA4B,EAAA;AAKxH,QAAA,OAAO,OAAO,CAAC,OAAO,CAAC,EAAO,CAAC;IAChC;AACA;;;;"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { IApiBaseEntity } from '../../../interface/api-base-entity.interface';
|
|
2
2
|
import type { IApiSubscriberFunction } from '../../../interface/class/api/subscriber/function.interface';
|
|
3
3
|
import { ApiSubscriberBase } from './base.class';
|
|
4
|
+
/**
|
|
5
|
+
* Abstract base class for function-level subscribers.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#apifunctionsubscriberbase | API Reference - ApiFunctionSubscriberBase}
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/subscriber-system/function-subscribers | Subscriber System - Function Subscribers}
|
|
9
|
+
*/
|
|
4
10
|
export declare abstract class ApiFunctionSubscriberBase<E extends IApiBaseEntity> extends ApiSubscriberBase implements IApiSubscriberFunction<E> {
|
|
5
11
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ApiSubscriberBase } from './base.class.js';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Abstract base class for function-level subscribers.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#apifunctionsubscriberbase | API Reference - ApiFunctionSubscriberBase}
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/subscriber-system/function-subscribers | Subscriber System - Function Subscribers}
|
|
8
|
+
*/
|
|
3
9
|
class ApiFunctionSubscriberBase extends ApiSubscriberBase {
|
|
4
10
|
}
|
|
5
11
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function-base.class.js","sources":["../../../../../../src/class/api/subscriber/function-base.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"function-base.class.js","sources":["../../../../../../src/class/api/subscriber/function-base.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;;;;;AAKG;AACG,MAAgB,yBAAoD,SAAQ,iBAAiB,CAAA;AAAwC;;;;"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { IApiBaseEntity } from '../../../interface/api-base-entity.interface';
|
|
2
2
|
import type { IApiSubscriberRoute } from '../../../interface/class/api/subscriber/route.interface';
|
|
3
3
|
import { ApiSubscriberBase } from './base.class';
|
|
4
|
+
/**
|
|
5
|
+
* Abstract base class for route-level subscribers.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#apiroutesubscriberbase | API Reference - ApiRouteSubscriberBase}
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/subscriber-system/route-subscribers | Subscriber System - Route Subscribers}
|
|
9
|
+
*/
|
|
4
10
|
export declare abstract class ApiRouteSubscriberBase<E extends IApiBaseEntity> extends ApiSubscriberBase implements IApiSubscriberRoute<E> {
|
|
5
11
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ApiSubscriberBase } from './base.class.js';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Abstract base class for route-level subscribers.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#apiroutesubscriberbase | API Reference - ApiRouteSubscriberBase}
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/subscriber-system/route-subscribers | Subscriber System - Route Subscribers}
|
|
8
|
+
*/
|
|
3
9
|
class ApiRouteSubscriberBase extends ApiSubscriberBase {
|
|
4
10
|
}
|
|
5
11
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-base.class.js","sources":["../../../../../../src/class/api/subscriber/route-base.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"route-base.class.js","sources":["../../../../../../src/class/api/subscriber/route-base.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;;;;;AAKG;AACG,MAAgB,sBAAiD,SAAQ,iBAAiB,CAAA;AAAqC;;;;"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { IMetadataEntry } from '../interface/class/index';
|
|
2
2
|
import type { TMetadata } from '../type/class/index';
|
|
3
|
+
/**
|
|
4
|
+
* Singleton class for storing and retrieving entity property metadata.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#metadatastorage | API Reference - MetadataStorage}
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/metadata-storage | Core Concepts - Metadata Storage}
|
|
8
|
+
*/
|
|
3
9
|
export declare class MetadataStorage {
|
|
4
10
|
private static instance;
|
|
5
11
|
private readonly STORAGE;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import '../constant/decorator/api/function.constant.js';
|
|
2
2
|
import { PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT } from '../constant/decorator/api/property-describe.constant.js';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Singleton class for storing and retrieving entity property metadata.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/classes#metadatastorage | API Reference - MetadataStorage}
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/metadata-storage | Core Concepts - Metadata Storage}
|
|
9
|
+
*/
|
|
4
10
|
class MetadataStorage {
|
|
5
11
|
static instance;
|
|
6
12
|
STORAGE = new Map();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata-storage.class.js","sources":["../../../../src/class/metadata-storage.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"metadata-storage.class.js","sources":["../../../../src/class/metadata-storage.class.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAKA;;;;;AAKG;MACU,eAAe,CAAA;IACnB,OAAO,QAAQ;AAEN,IAAA,OAAO,GAA6C,IAAI,GAAG,EAAuC;AAE5G,IAAA,OAAO,WAAW,GAAA;AACxB,QAAA,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE;AAC9B,YAAA,eAAe,CAAC,QAAQ,GAAG,IAAI,eAAe,EAAE;QACjD;QAEA,OAAO,eAAe,CAAC,QAAQ;IAChC;IAEO,sBAAsB,GAAA;QAC5B,MAAM,MAAM,GAA8B,EAAE;AAE5C,QAAA,KAAK,MAAM,CAAC,UAAU,EAAE,cAAc,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE;YAClE,MAAM,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC;QACxD;AAEA,QAAA,OAAO,MAAM;IACd;AAKO,IAAA,WAAW,CAAC,UAAkB,EAAE,YAAqB,EAAE,GAA0B,EAAA;QACvF,MAAM,cAAc,GAA4C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;AAE5F,QAAA,IAAI,CAAC,cAAc;AAAE,YAAA,OAAO,SAAS;AAErC,QAAA,IAAI,CAAC,YAAY;AAAE,YAAA,OAAO,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC;QAC5D,MAAM,gBAAgB,GAA+B,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC;AAErF,QAAA,IAAI,CAAC,gBAAgB;AAAE,YAAA,OAAO,SAAS;AAEvC,QAAA,IAAI,CAAC,GAAG;AAAE,YAAA,OAAO,gBAAgB;AAEjC,QAAA,OAAO,gBAAgB,CAAC,GAAG,CAAC;IAC7B;AAEO,IAAA,WAAW,CAAiC,UAAkB,EAAE,YAA6B,EAAE,GAAM,EAAE,KAAwB,EAAA;QACrI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;YAClC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,GAAG,EAAE,CAAC;QACxC;;QAEA,MAAM,cAAc,GAAyC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAE;QAE1F,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE;AACtC,YAAA,cAAc,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC,wCAAwC,CAAC,YAAY,GAAG,EAAE,EAAE,CAAC;QAClG;;QAGA,MAAM,gBAAgB,GAAmB,cAAc,CAAC,GAAG,CAAC,YAAY,CAAE;AAC1E,QAAA,gBAAgB,CAAC,GAAG,CAAC,GAAG,KAAK;IAC9B;AACA;;;;"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { IApiBaseEntity } from '../../../interface/api-base-entity.interface';
|
|
2
2
|
import type { IApiControllerProperties } from '../../../interface/decorator/api/index';
|
|
3
3
|
import type { TApiControllerConstructor } from '../../../type/decorator/api/controller/index';
|
|
4
|
+
/**
|
|
5
|
+
* Automatically generates CRUD endpoints for an entity.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apicontroller | API Reference - ApiController}
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/controllers | Core Concepts - Controllers}
|
|
9
|
+
*/
|
|
4
10
|
export declare const ApiController: <E extends IApiBaseEntity>(options: IApiControllerProperties<E>) => <T extends TApiControllerConstructor>(target: T) => T;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ApiControllerFactory } from '../../../factory/api/controller.factory.js';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Automatically generates CRUD endpoints for an entity.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apicontroller | API Reference - ApiController}
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/controllers | Core Concepts - Controllers}
|
|
8
|
+
*/
|
|
3
9
|
const ApiController = (options) => (target) => {
|
|
4
10
|
const factory = new ApiControllerFactory(target, options);
|
|
5
11
|
factory.init();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorator.js","sources":["../../../../../../src/decorator/api/controller/decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"decorator.js","sources":["../../../../../../src/decorator/api/controller/decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAMA;;;;;AAKG;AACI,MAAM,aAAa,GACzB,CAA2B,OAAoC,KAC/D,CAAsC,MAAS,KAAO;IACrD,MAAM,OAAO,GAA4B,IAAI,oBAAoB,CAAI,MAAM,EAAE,OAAO,CAAC;IACrF,OAAO,CAAC,IAAI,EAAE;;AAGd,IAAA,MAAM,mBAAmB,GAA2D,cAAc,MAAM,CAAA;;AAEvG,QAAA,WAAA,CAAY,GAAG,UAAe,EAAA;;AAE7B,YAAA,KAAK,CAAC,GAAG,UAAU,CAAC;QACrB;KACA;AACD,IAAA,MAAM,CAAC,cAAc,CAAC,mBAAmB,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;AAE1E,IAAA,OAAO,mBAAwB;AAChC;;;;"}
|
|
@@ -79,5 +79,8 @@ import type { TApiPropertyDescribeProperties } from '../../../type/decorator/api
|
|
|
79
79
|
* })
|
|
80
80
|
* posts: Post[];
|
|
81
81
|
* ```
|
|
82
|
+
*
|
|
83
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apipropertydescribe | API Reference - ApiPropertyDescribe}
|
|
84
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/entities | Core Concepts - Entities}
|
|
82
85
|
*/
|
|
83
86
|
export declare function ApiPropertyDescribe(properties: TApiPropertyDescribeProperties): PropertyDecorator;
|
|
@@ -82,6 +82,9 @@ import { PROPERTY_DESCRIBE_DECORATOR_API_CONSTANT } from '../../../constant/deco
|
|
|
82
82
|
* })
|
|
83
83
|
* posts: Post[];
|
|
84
84
|
* ```
|
|
85
|
+
*
|
|
86
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apipropertydescribe | API Reference - ApiPropertyDescribe}
|
|
87
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/entities | Core Concepts - Entities}
|
|
85
88
|
*/
|
|
86
89
|
function ApiPropertyDescribe(properties) {
|
|
87
90
|
return (target, propertyKey) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describe.decorator.js","sources":["../../../../../../src/decorator/api/property/describe.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA
|
|
1
|
+
{"version":3,"file":"describe.decorator.js","sources":["../../../../../../src/decorator/api/property/describe.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFG;AACG,SAAU,mBAAmB,CAAC,UAA0C,EAAA;AAC7E,IAAA,OAAO,CAAC,MAA8B,EAAE,WAA4B,KAAU;AAC7E,QAAA,MAAM,UAAU,GAAW,MAAM,CAAC,WAAW,CAAC,IAAI;AAClD,QAAA,eAAe,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,EAAE,wCAAwC,CAAC,YAAY,EAAE,UAAU,CAAC;AACtI,IAAA,CAAC;AACF;;;;"}
|
|
@@ -5,5 +5,8 @@ import type { TApiServiceProperties } from '../../type/decorator/api/service/ind
|
|
|
5
5
|
* @param {TApiServiceProperties<E>} properties - Configuration properties for the service
|
|
6
6
|
* @returns {Function} A class decorator function that extends the target class with CRUD methods
|
|
7
7
|
* @template E - The entity type
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apiservice | API Reference - ApiService}
|
|
10
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/services | Core Concepts - Services}
|
|
8
11
|
*/
|
|
9
12
|
export declare function ApiService<E extends IApiBaseEntity>(properties: TApiServiceProperties<E>): <TFunction extends new (...arguments_: Array<any>) => object>(target: TFunction) => TFunction;
|
|
@@ -24,6 +24,9 @@ import '../../enum/decorator/api/route-type.enum.js';
|
|
|
24
24
|
* @param {TApiServiceProperties<E>} properties - Configuration properties for the service
|
|
25
25
|
* @returns {Function} A class decorator function that extends the target class with CRUD methods
|
|
26
26
|
* @template E - The entity type
|
|
27
|
+
*
|
|
28
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/decorators#apiservice | API Reference - ApiService}
|
|
29
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/core-concepts/services | Core Concepts - Services}
|
|
27
30
|
*/
|
|
28
31
|
function ApiService(properties) {
|
|
29
32
|
const { entity } = properties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.decorator.js","sources":["../../../../../src/decorator/api/service.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AASA
|
|
1
|
+
{"version":3,"file":"service.decorator.js","sources":["../../../../../src/decorator/api/service.decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AASA;;;;;;;;AAQG;AACG,SAAU,UAAU,CAA2B,UAAoC,EAAA;AACxF,IAAA,MAAM,EAAE,MAAM,EAAE,GAA6B,UAAU;;AAGvD,IAAA,OAAO,UAAuE,MAAiB,EAAA;QAC9F,MAAM,mBAAmB,GAAc,MAAM;;AAG7C,QAAA,MAAM,aAAa,GAAmE,cAAc,mBAAmB,CAAA;;AAEtH,YAAA,WAAA,CAAY,GAAG,UAAsB,EAAA;;AAEpC,gBAAA,KAAK,CAAC,GAAG,UAAU,CAAC;AAEpB,gBAAA,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAAE;oBAC3E,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,gBAAgB,CAAC,QAAQ,EAAE;;AAEtD,wBAAA,YAAY,EAAE,IAAI;;AAElB,wBAAA,UAAU,EAAE,IAAI;AAChB,wBAAA,KAAK,EAAE,gBAAgB,UAA4C,EAAE,SAAkC,EAAE,YAA4B,EAAA;4BACpI,MAAM,oBAAoB,GAAmG,WAAW,CAAC;gCACxI,MAAM;gCAEN,IAAI,EAAE,gBAAgB,CAAC,QAAQ;AAC/B,6BAAA,CAAC;AAEF,4BAAA,MAAM,UAAU,GAQZ;;AAEH,gCAAA,YAAY,EAAE,IAAI;;AAElB,gCAAA,UAAU,EAAE,IAAI;;AAEhB,gCAAA,KAAK,EAAE,MAAM,MAAM;;AAEnB,gCAAA,QAAQ,EAAE,IAAI;6BACd;AAED,4BAAA,MAAM,mBAAmB,G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,CAAC;wBACvO,CAAC;;AAED,wBAAA,QAAQ,EAAE,IAAI;AACd,qBAAA,CAAC;gBACH;AAEA,gBAAA,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAAE;oBACzE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,gBAAgB,CAAC,MAAM,EAAE;;AAEpD,wBAAA,YAAY,EAAE,IAAI;;AAElB,wBAAA,UAAU,EAAE,IAAI;AAChB,wBAAA,KAAK,EAAE,gBAAgB,QAAuC,EAAE,YAA4B,EAAA;4BAC3F,MAAM,oBAAoB,GAAkG,WAAW,CAAC;gCACvI,MAAM;gCACN,IAAI,EAAE,gBAAgB,CAAC,MAAM;AAC7B,6BAAA,CAAC;AAEF,4BAAA,MAAM,UAAU,GAQZ;;AAEH,gCAAA,YAAY,EAAE,IAAI;;AAElB,gCAAA,UAAU,EAAE,IAAI;;AAEhB,gCAAA,KAAK,EAAE,MAAM,MAAM;;AAEnB,gCAAA,QAAQ,EAAE,IAAI;6BACd;AAED,4BAAA,MAAM,mBAAmB,GAAuB,oBAAoB,CAAC,IAAI,EAAE,gBAAgB,CAAC,MAAM,EAAE,UAAU,CAAC;AAE/G,4BAAA,OAAQ,mBAAmB,CAAC,KAAiH,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,CAAC;wBACjL,CAAC;;AAED,wBAAA,QAAQ,EAAE,IAAI;AACd,qBAAA,CAAC;gBACH;YACD;SACA;AAED,QAAA,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,mBAAmB,CAAC;AAEzD,QAAA,OAAO,aAA0B;AAClC,IAAA,CAAC;AACF;;;;"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { CallHandler, ExecutionContext, NestInterceptor } from "@nestjs/common";
|
|
2
2
|
import type { Observable } from "rxjs";
|
|
3
|
+
/**
|
|
4
|
+
* Global interceptor that adds correlation IDs and timestamps to all error responses.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/interceptors | API Reference - Interceptors}
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/guides/error-handling | Guides - Error Handling}
|
|
8
|
+
*/
|
|
3
9
|
export declare class CorrelationIDResponseBodyInterceptor implements NestInterceptor {
|
|
4
10
|
intercept(context: ExecutionContext, next: CallHandler): Observable<unknown>;
|
|
5
11
|
}
|
|
@@ -4,6 +4,12 @@ import { Injectable, HttpStatus, HttpException, InternalServerErrorException } f
|
|
|
4
4
|
import { ThrottlerException } from '@nestjs/throttler';
|
|
5
5
|
import { catchError } from 'rxjs/operators';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Global interceptor that adds correlation IDs and timestamps to all error responses.
|
|
9
|
+
*
|
|
10
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/interceptors | API Reference - Interceptors}
|
|
11
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/guides/error-handling | Guides - Error Handling}
|
|
12
|
+
*/
|
|
7
13
|
let CorrelationIDResponseBodyInterceptor = class CorrelationIDResponseBodyInterceptor {
|
|
8
14
|
intercept(context, next) {
|
|
9
15
|
return next.handle().pipe(catchError((error) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"correlation-id-response-body.interceptor.js","sources":["../../../../src/interceptor/correlation-id-response-body.interceptor.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"correlation-id-response-body.interceptor.js","sources":["../../../../src/interceptor/correlation-id-response-body.interceptor.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAUA;;;;;AAKG;AAEI,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC,CAAA;IAChD,SAAS,CAAC,OAAyB,EAAE,IAAiB,EAAA;AACrD,QAAA,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,IA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hD,IAAA,UAAU;AACE,CAAA,EAAA,oCAAoC,CAoEhD;;;;"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module for enabling the subscriber system.
|
|
3
|
+
*
|
|
4
|
+
* Import this module in your application root to enable subscriber discovery.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/subscriber-system | Subscriber System}
|
|
7
|
+
*/
|
|
1
8
|
export declare class ApiSubscriberModule {
|
|
2
9
|
}
|
|
@@ -3,6 +3,13 @@ import { ApiSubscriberDiscoveryService } from '../class/api/subscriber/discovery
|
|
|
3
3
|
import { Module } from '@nestjs/common';
|
|
4
4
|
import { DiscoveryModule } from '@nestjs/core';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Module for enabling the subscriber system.
|
|
8
|
+
*
|
|
9
|
+
* Import this module in your application root to enable subscriber discovery.
|
|
10
|
+
*
|
|
11
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/subscriber-system | Subscriber System}
|
|
12
|
+
*/
|
|
6
13
|
let ApiSubscriberModule = class ApiSubscriberModule {
|
|
7
14
|
};
|
|
8
15
|
ApiSubscriberModule = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-subscriber.module.js","sources":["../../../../src/module/api-subscriber.module.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"api-subscriber.module.js","sources":["../../../../src/module/api-subscriber.module.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIA;;;;;;AAMG;AAMI,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB,CAAA;;AAAnB,mBAAmB,GAAA,UAAA,CAAA;AAL/B,IAAA,MAAM,CAAC;QACP,OAAO,EAAE,CAAC,6BAA6B,CAAC;QACxC,OAAO,EAAE,CAAC,eAAe,CAAC;QAC1B,SAAS,EAAE,CAAC,6BAA6B,CAAC;KAC1C;AACY,CAAA,EAAA,mBAAmB,CAAG;;;;"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { ValidationArguments, ValidatorConstraintInterface } from "class-validator";
|
|
2
|
+
/**
|
|
3
|
+
* Validator that ensures either all or none of the specified properties are provided.
|
|
4
|
+
*
|
|
5
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/validators#allornoneoflistedpropertiesvalidator | API Reference - Validators}
|
|
6
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/guides/validation | Guides - Validation}
|
|
7
|
+
*/
|
|
2
8
|
export declare class AllOrNoneOfListedPropertiesValidator implements ValidatorConstraintInterface {
|
|
3
9
|
defaultMessage(properties: ValidationArguments): string;
|
|
4
10
|
validate(_value: unknown, properties: ValidationArguments): boolean;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { __decorate } from '../external/tslib/tslib.es6.js';
|
|
2
2
|
import { ValidatorConstraint } from 'class-validator';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Validator that ensures either all or none of the specified properties are provided.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/validators#allornoneoflistedpropertiesvalidator | API Reference - Validators}
|
|
8
|
+
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/guides/validation | Guides - Validation}
|
|
9
|
+
*/
|
|
4
10
|
// eslint-disable-next-line @elsikora/typescript/naming-convention
|
|
5
11
|
let AllOrNoneOfListedPropertiesValidator = class AllOrNoneOfListedPropertiesValidator {
|
|
6
12
|
defaultMessage(properties) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-or-none-of-listed-properties.validator.js","sources":["../../../../src/validator/all-or-none-of-listed-properties.validator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAIA;AAEO,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC,CAAA;AAChD,IAAA,cAAc,CAAC,UAA+B,EAAA;QAC7C,OAAO,CAAA,iEAAA,EAAoE,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE;IAC/G;IAEA,QAAQ,CAAC,MAAe,EAAE,UAA+B,EAAA;AACxD,QAAA,MAAM,WAAW,GAAkB,UAAU,CAAC,WAA4B;AAE1E,QAAA,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;AAC3B,YAAA,MAAM,eAAe,GAA4B,UAAU,CAAC,MAAiC;AAC7F,YAAA,MAAM,aAAa,GAAkB,WAAW,CAAC,MAAM,CAAC,CAAC,KAAa,KAAK,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,IAAI,eAAe,CAAC,KAAK,CAAC,KAAK,SAAS,CAAC;AAEhL,YAAA,OAAO,aAAa,CAAC,MAAM,KAAK,CAAC,IAAI,aAAa,CAAC,MAAM,KAAK,WAAW,CAAC,MAAM;QACjF;AAEA,QAAA,OAAO,IAAI;IACZ;;AAhBY,oCAAoC,GAAA,UAAA,CAAA;IADhD,mBAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kCAAkC,EAAE;AAClE,CAAA,EAAA,oCAAoC,CAiBhD;;;;"}
|
|
1
|
+
{"version":3,"file":"all-or-none-of-listed-properties.validator.js","sources":["../../../../src/validator/all-or-none-of-listed-properties.validator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAIA;;;;;AAKG;AACH;AAEO,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC,CAAA;AAChD,IAAA,cAAc,CAAC,UAA+B,EAAA;QAC7C,OAAO,CAAA,iEAAA,EAAoE,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE;IAC/G;IAEA,QAAQ,CAAC,MAAe,EAAE,UAA+B,EAAA;AACxD,QAAA,MAAM,WAAW,GAAkB,UAAU,CAAC,WAA4B;AAE1E,QAAA,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;AAC3B,YAAA,MAAM,eAAe,GAA4B,UAAU,CAAC,MAAiC;AAC7F,YAAA,MAAM,aAAa,GAAkB,WAAW,CAAC,MAAM,CAAC,CAAC,KAAa,KAAK,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,IAAI,eAAe,CAAC,KAAK,CAAC,KAAK,SAAS,CAAC;AAEhL,YAAA,OAAO,aAAa,CAAC,MAAM,KAAK,CAAC,IAAI,aAAa,CAAC,MAAM,KAAK,WAAW,CAAC,MAAM;QACjF;AAEA,QAAA,OAAO,IAAI;IACZ;;AAhBY,oCAAoC,GAAA,UAAA,CAAA;IADhD,mBAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kCAAkC,EAAE;AAClE,CAAA,EAAA,oCAAoC,CAiBhD;;;;"}
|