@revisium/core 1.2.0 → 1.3.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/dist/package.json +1 -1
- package/dist/src/__tests__/utils/createMocks.js.map +1 -1
- package/dist/src/api/graphql-api/graphql-api.module.js +1 -2
- package/dist/src/api/graphql-api/graphql-api.module.js.map +1 -1
- package/dist/src/api/rest-api/init-swagger.d.ts +2 -0
- package/dist/src/api/rest-api/init-swagger.js +28 -0
- package/dist/src/api/rest-api/init-swagger.js.map +1 -0
- package/dist/src/api/rest-api/share/model/order-by.model.js +2 -2
- package/dist/src/api/rest-api/share/model/order-by.model.js.map +1 -1
- package/dist/src/api/rest-api/table/dto/__tests__/utils.d.ts +2 -0
- package/dist/src/api/rest-api/table/dto/__tests__/utils.js +19 -0
- package/dist/src/api/rest-api/table/dto/__tests__/utils.js.map +1 -0
- package/dist/src/api/rest-api/table/dto/get-table-rows.dto.d.ts +2 -0
- package/dist/src/api/rest-api/table/dto/get-table-rows.dto.js +14 -0
- package/dist/src/api/rest-api/table/dto/get-table-rows.dto.js.map +1 -1
- package/dist/src/api/rest-api/table/dto/row/bool-filter.dto.d.ts +4 -0
- package/dist/src/api/rest-api/table/dto/row/bool-filter.dto.js +35 -0
- package/dist/src/api/rest-api/table/dto/row/bool-filter.dto.js.map +1 -0
- package/dist/src/api/rest-api/table/dto/row/datetime-filter.dto.d.ts +9 -0
- package/dist/src/api/rest-api/table/dto/row/datetime-filter.dto.js +72 -0
- package/dist/src/api/rest-api/table/dto/row/datetime-filter.dto.js.map +1 -0
- package/dist/src/api/rest-api/table/dto/row/json-filter.dto.d.ts +15 -0
- package/dist/src/api/rest-api/table/dto/row/json-filter.dto.js +117 -0
- package/dist/src/api/rest-api/table/dto/row/json-filter.dto.js.map +1 -0
- package/dist/src/api/rest-api/table/dto/row/row-where-input.dto.d.ts +19 -0
- package/dist/src/api/rest-api/table/dto/row/row-where-input.dto.js +156 -0
- package/dist/src/api/rest-api/table/dto/row/row-where-input.dto.js.map +1 -0
- package/dist/src/api/rest-api/table/dto/row/string-filter.dto.d.ts +14 -0
- package/dist/src/api/rest-api/table/dto/row/string-filter.dto.js +96 -0
- package/dist/src/api/rest-api/table/dto/row/string-filter.dto.js.map +1 -0
- package/dist/src/api/rest-api/table/table-by-id.controller.d.ts +1 -1
- package/dist/src/api/rest-api/table/table-by-id.controller.js +7 -1
- package/dist/src/api/rest-api/table/table-by-id.controller.js.map +1 -1
- package/dist/src/features/table/queries/handlers/get-rows-by-table.handler.js +1 -0
- package/dist/src/features/table/queries/handlers/get-rows-by-table.handler.js.map +1 -1
- package/dist/src/features/table/queries/impl/get-rows-by-table.query.d.ts +2 -0
- package/dist/src/features/table/queries/impl/get-rows-by-table.query.js.map +1 -1
- package/dist/src/infrastructure/database/s3.service.js +1 -1
- package/dist/src/infrastructure/database/s3.service.js.map +1 -1
- package/dist/src/infrastructure/health/notification.check.d.ts +3 -1
- package/dist/src/infrastructure/health/notification.check.js +9 -3
- package/dist/src/infrastructure/health/notification.check.js.map +1 -1
- package/dist/src/main.js +2 -24
- package/dist/src/main.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revisium/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Revisium is a tool (UI/API) inspired by JSON (JSON Schema) and Git, designed to provide a flexible and low-level headless CMS solution.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://revisium.io",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMocks.js","sourceRoot":"","sources":["../../../../src/__tests__/utils/createMocks.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"createMocks.js","sourceRoot":"","sources":["../../../../src/__tests__/utils/createMocks.ts"],"names":[],"mappings":";;;AAEA,2DAA6D;AAOtD,MAAM,WAAW,GAAG,CAAC,EAC1B,sBAAsB,MAGpB,EAAE,EAAE,EAAE;IACR,MAAM,MAAM,GAAiC,IAAA,6BAAQ,GAAiB,CAAC;IACvE,MAAM,UAAU,GAA8B,IAAA,6BAAQ,GAAc,CAAC;IACrE,MAAM,iBAAiB,GACrB,IAAA,6BAAQ,GAA4B,CAAC;IACvC,MAAM,iBAAiB,GACrB,IAAA,6BAAQ,GAA0B,CAAC;IAErC,iBAAiB,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;IACjE,iBAAiB,CAAC,cAAc,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC;IAElE,MAAM,SAAS,GAAG,IAAA,6BAAQ,GAAa,CAAC;IAExC,MAAM,0BAA0B,GAC9B,IAAA,6BAAQ,GAA8B,CAAC;IACzC,MAAM,yBAAyB,GAC7B,IAAA,6BAAQ,GAA6B,CAAC;IAExC,IAAI,sBAAsB,EAAE,CAAC;QAC3B,iBAAiB,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;QACpE,iBAAiB,CAAC,QAAQ,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC,CAAC;IAC9E,CAAC;IAED,OAAO;QACL,MAAM;QACN,iBAAiB;QACjB,UAAU;QACV,SAAS;QACT,iBAAiB;QACjB,0BAA0B;QAC1B,yBAAyB;KAC1B,CAAC;AACJ,CAAC,CAAC;AApCW,QAAA,WAAW,eAoCtB"}
|
|
@@ -13,7 +13,6 @@ const common_1 = require("@nestjs/common");
|
|
|
13
13
|
const cqrs_1 = require("@nestjs/cqrs");
|
|
14
14
|
const graphql_1 = require("@nestjs/graphql");
|
|
15
15
|
const graphql_type_json_1 = require("graphql-type-json");
|
|
16
|
-
const path_1 = require("path");
|
|
17
16
|
const auth_module_1 = require("../../features/auth/auth.module");
|
|
18
17
|
const auth_resolver_1 = require("./auth/auth.resolver");
|
|
19
18
|
const branch_resolver_1 = require("./branch/branch.resolver");
|
|
@@ -47,7 +46,7 @@ exports.GraphqlApiModule = GraphqlApiModule = __decorate([
|
|
|
47
46
|
path: '/graphql',
|
|
48
47
|
resolvers: { JSON: graphql_type_json_1.default },
|
|
49
48
|
playground: false,
|
|
50
|
-
autoSchemaFile:
|
|
49
|
+
autoSchemaFile: true,
|
|
51
50
|
sortSchema: true,
|
|
52
51
|
introspection: true,
|
|
53
52
|
formatError: (error) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql-api.module.js","sourceRoot":"","sources":["../../../../src/api/graphql-api/graphql-api.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uEAAsG;AACtG,2CAAkE;AAClE,2CAAwC;AACxC,uCAA0C;AAC1C,6CAAgD;AAChD,yDAA4C;AAC5C
|
|
1
|
+
{"version":3,"file":"graphql-api.module.js","sourceRoot":"","sources":["../../../../src/api/graphql-api/graphql-api.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uEAAsG;AACtG,2CAAkE;AAClE,2CAAwC;AACxC,uCAA0C;AAC1C,6CAAgD;AAChD,yDAA4C;AAC5C,iEAA2D;AAC3D,wDAAsE;AACtE,8DAA4E;AAC5E,4EAAyF;AACzF,mFAAiG;AACjG,2DAAyE;AACzE,oEAAkF;AAClF,gFAA8F;AAC9F,iEAA+E;AAC/E,iEAAgF;AAChF,4EAAyF;AACzF,oEAAkF;AAClF,qDAAmE;AACnE,2DAAyE;AACzE,wDAAsE;AACtE,wGAAiG;AACjG,gFAA0E;AAgDnE,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAG,CAAA;AAAnB,4CAAgB;2BAAhB,gBAAgB;IA9C5B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,8BAAa;YACb,uBAAa,CAAC,YAAY,CAAqB;gBAC7C,OAAO,EAAE,CAAC,8BAAa,CAAC;gBACxB,MAAM,EAAE,qBAAY;gBACpB,MAAM,EAAE,CAAC,6CAAoB,CAAC;gBAC9B,UAAU,EAAE,CAAC,oBAA0C,EAAE,EAAE,CAAC,CAAC;oBAC3D,OAAO,EAAE,CAAC,EAAE,GAAG,EAAgB,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC;oBAC7C,IAAI,EAAE,UAAU;oBAChB,SAAS,EAAE,EAAE,IAAI,EAAE,2BAAW,EAAE;oBAChC,UAAU,EAAE,KAAK;oBACjB,cAAc,EAAE,IAAI;oBACpB,UAAU,EAAE,IAAI;oBAChB,aAAa,EAAE,IAAI;oBACnB,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE;wBACrB,IAAI,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,CAAC;4BACjC,KAAK,CAAC,UAAU,CAAC,UAAU,GAAG,EAAE,CAAC;wBACnC,CAAC;wBACD,OAAO,KAAK,CAAC;oBACf,CAAC;oBACD,OAAO,EAAE;wBACP,IAAA,mDAAyC,GAAE;wBAC3C,oBAAoB;qBACrB;iBACF,CAAC;aACH,CAAC;YACF,iBAAU;YACV,wBAAU;SACX;QACD,SAAS,EAAE;YACT,8CAAqB;YACrB,4BAAY;YACZ,4BAAY;YACZ,4CAAoB;YACpB,kCAAe;YACf,gCAAc;YACd,6CAAoB;YACpB,2CAAmB;YACnB,8BAAa;YACb,oCAAgB;YAChB,oCAAgB;YAChB,0BAAW;YACX,8BAAa;SACd;KACF,CAAC;GACW,gBAAgB,CAAG;AAEhC,IAAA,2CAAoB,GAAE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initSwagger = initSwagger;
|
|
4
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
5
|
+
const packageJson = require("../../../package.json");
|
|
6
|
+
function initSwagger(app) {
|
|
7
|
+
const documentBuilder = new swagger_1.DocumentBuilder()
|
|
8
|
+
.setTitle('Revisium API')
|
|
9
|
+
.setVersion(packageJson.version)
|
|
10
|
+
.addBearerAuth({
|
|
11
|
+
type: 'http',
|
|
12
|
+
scheme: 'bearer',
|
|
13
|
+
bearerFormat: 'JWT',
|
|
14
|
+
}, 'access-token')
|
|
15
|
+
.build();
|
|
16
|
+
const document = swagger_1.SwaggerModule.createDocument(app, documentBuilder);
|
|
17
|
+
swagger_1.SwaggerModule.setup('/api', app, document, {
|
|
18
|
+
swaggerOptions: {
|
|
19
|
+
urls: [{ name: 'OpenAPI JSON', url: '/api-json' }],
|
|
20
|
+
persistAuthorization: true,
|
|
21
|
+
tryItOutEnabled: true,
|
|
22
|
+
filter: true,
|
|
23
|
+
ignoreGlobalPrefix: true,
|
|
24
|
+
docExpansion: 'none',
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=init-swagger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-swagger.js","sourceRoot":"","sources":["../../../../src/api/rest-api/init-swagger.ts"],"names":[],"mappings":";;AAIA,kCAyBC;AA5BD,6CAAiE;AACjE,qDAA4C;AAE5C,SAAgB,WAAW,CAAC,GAA0B;IACpD,MAAM,eAAe,GAAG,IAAI,yBAAe,EAAE;SAC1C,QAAQ,CAAC,cAAc,CAAC;SACxB,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC;SAC/B,aAAa,CACZ;QACE,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,QAAQ;QAChB,YAAY,EAAE,KAAK;KACpB,EACD,cAAc,CACf;SACA,KAAK,EAAE,CAAC;IAEX,MAAM,QAAQ,GAAG,uBAAa,CAAC,cAAc,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;IACpE,uBAAa,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE;QACzC,cAAc,EAAE;YACd,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;YAClD,oBAAoB,EAAE,IAAI;YAC1B,eAAe,EAAE,IAAI;YACrB,MAAM,EAAE,IAAI;YACZ,kBAAkB,EAAE,IAAI;YACxB,YAAY,EAAE,MAAM;SACrB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -28,12 +28,12 @@ class OrderByDto {
|
|
|
28
28
|
exports.OrderByDto = OrderByDto;
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, swagger_1.ApiProperty)({ enum: SortField }),
|
|
31
|
-
(0, class_validator_1.IsEnum)(SortField),
|
|
31
|
+
(0, class_validator_1.IsEnum)(SortField, { message: 'field must be a valid SortField' }),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], OrderByDto.prototype, "field", void 0);
|
|
34
34
|
__decorate([
|
|
35
35
|
(0, swagger_1.ApiProperty)({ enum: SortDirection }),
|
|
36
|
-
(0, class_validator_1.IsEnum)(SortDirection),
|
|
36
|
+
(0, class_validator_1.IsEnum)(SortDirection, { message: 'direction must be a valid SortDirection' }),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
38
|
], OrderByDto.prototype, "direction", void 0);
|
|
39
39
|
//# sourceMappingURL=order-by.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-by.model.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/share/model/order-by.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAyC;AAEzC,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,sBAAS,CAAA;AACX,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,8BAAa,CAAA;AACf,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,MAAa,UAAU;CAQtB;AARD,gCAQC;AALC;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAChC,IAAA,wBAAM,EAAC,SAAS,CAAC;;
|
|
1
|
+
{"version":3,"file":"order-by.model.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/share/model/order-by.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAyC;AAEzC,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,sBAAS,CAAA;AACX,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,8BAAa,CAAA;AACf,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,MAAa,UAAU;CAQtB;AARD,gCAQC;AALC;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAChC,IAAA,wBAAM,EAAC,SAAS,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;;yCACjD;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;IACpC,IAAA,wBAAM,EAAC,aAAa,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;;6CACrD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findConstraint = findConstraint;
|
|
4
|
+
function findConstraint(errors, property, constraintKey) {
|
|
5
|
+
const stack = [...errors];
|
|
6
|
+
while (stack.length) {
|
|
7
|
+
const e = stack.pop();
|
|
8
|
+
if (e.property === property &&
|
|
9
|
+
e.constraints &&
|
|
10
|
+
e.constraints[constraintKey]) {
|
|
11
|
+
return e.constraints[constraintKey];
|
|
12
|
+
}
|
|
13
|
+
if (e.children && e.children.length) {
|
|
14
|
+
stack.push(...e.children);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../src/api/rest-api/table/dto/__tests__/utils.ts"],"names":[],"mappings":";;AAEA,wCAqBC;AArBD,SAAgB,cAAc,CAC5B,MAAyB,EACzB,QAAgB,EAChB,aAAqB;IAGrB,MAAM,KAAK,GAAsB,CAAC,GAAG,MAAM,CAAC,CAAC;IAC7C,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;QACpB,MAAM,CAAC,GAAG,KAAK,CAAC,GAAG,EAAG,CAAC;QACvB,IACE,CAAC,CAAC,QAAQ,KAAK,QAAQ;YACvB,CAAC,CAAC,WAAW;YACb,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,EAC5B,CAAC;YACD,OAAO,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QACtC,CAAC;QACD,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YACpC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { OrderByDto } from '../../../../api/rest-api/share/model/order-by.model';
|
|
2
|
+
import { RowWhereInputDto } from '../../../../api/rest-api/table/dto/row/row-where-input.dto';
|
|
2
3
|
export declare class GetTableRowsDto {
|
|
3
4
|
first: number;
|
|
4
5
|
after?: string;
|
|
5
6
|
orderBy?: OrderByDto[];
|
|
7
|
+
where?: RowWhereInputDto;
|
|
6
8
|
}
|
|
@@ -16,6 +16,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
17
|
const order_by_model_1 = require("../../share/model/order-by.model");
|
|
18
18
|
const is_unique_order_by_fields_validator_1 = require("../../share/validators/is-unique-order-by-fields.validator");
|
|
19
|
+
const row_where_input_dto_1 = require("./row/row-where-input.dto");
|
|
19
20
|
class GetTableRowsDto {
|
|
20
21
|
}
|
|
21
22
|
exports.GetTableRowsDto = GetTableRowsDto;
|
|
@@ -28,6 +29,8 @@ __decorate([
|
|
|
28
29
|
], GetTableRowsDto.prototype, "first", void 0);
|
|
29
30
|
__decorate([
|
|
30
31
|
(0, swagger_1.ApiProperty)({ required: false, example: '' }),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
31
34
|
__metadata("design:type", String)
|
|
32
35
|
], GetTableRowsDto.prototype, "after", void 0);
|
|
33
36
|
__decorate([
|
|
@@ -54,4 +57,15 @@ __decorate([
|
|
|
54
57
|
(0, is_unique_order_by_fields_validator_1.IsUniqueOrderByFields)({ message: 'Each orderBy.field must be unique' }),
|
|
55
58
|
__metadata("design:type", Array)
|
|
56
59
|
], GetTableRowsDto.prototype, "orderBy", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
62
|
+
description: 'Row filtering conditions',
|
|
63
|
+
type: row_where_input_dto_1.RowWhereInputDto,
|
|
64
|
+
}),
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, class_validator_1.IsObject)({ message: 'where must be an object' }),
|
|
67
|
+
(0, class_validator_1.ValidateNested)(),
|
|
68
|
+
(0, class_transformer_1.Type)(() => row_where_input_dto_1.RowWhereInputDto),
|
|
69
|
+
__metadata("design:type", row_where_input_dto_1.RowWhereInputDto)
|
|
70
|
+
], GetTableRowsDto.prototype, "where", void 0);
|
|
57
71
|
//# sourceMappingURL=get-table-rows.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-table-rows.dto.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/table/dto/get-table-rows.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAqD;AACrD,6CAAmE;AACnE,yDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"get-table-rows.dto.js","sourceRoot":"","sources":["../../../../../../src/api/rest-api/table/dto/get-table-rows.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAqD;AACrD,6CAAmE;AACnE,yDAAoD;AACpD,qDAQyB;AACzB,qEAAyE;AACzE,oHAA8G;AAC9G,mEAAsF;AAEtF,MAAa,eAAe;CA2C3B;AA3CD,0CA2CC;AAtCC;IAJC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;IAC7B,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC7C,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;8CACO;AAKd;IAHC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC7C,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACI;AAsBf;IApBC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,2BAA2B;QACxC,IAAI,EAAE,CAAC,2BAAU,CAAC;QAClB,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;KAC7C,CAAC;IACD,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QACvB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,IAAI,CAAC;gBACH,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC3B,CAAC;YAAC,MAAM,CAAC;gBACP,MAAM,IAAI,4BAAmB,CAAC,oCAAoC,CAAC,CAAC;YACtE,CAAC;QACH,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAa,EAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IACpE,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2BAAU,CAAC;IACtB,IAAA,2DAAqB,EAAC,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;;gDACjD;AAUvB;IARC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE,sCAAgB;KACvB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAChD,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sCAAgB,CAAC;8BACrB,sCAAgB;8CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BoolFilterDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class BoolFilterDto {
|
|
17
|
+
}
|
|
18
|
+
exports.BoolFilterDto = BoolFilterDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
(0, class_validator_1.IsBoolean)(),
|
|
23
|
+
__metadata("design:type", Boolean)
|
|
24
|
+
], BoolFilterDto.prototype, "equals", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
27
|
+
oneOf: [{ $ref: (0, swagger_1.getSchemaPath)(BoolFilterDto) }, { type: 'boolean' }],
|
|
28
|
+
description: 'Filter negation (not).',
|
|
29
|
+
}),
|
|
30
|
+
(0, class_validator_1.ValidateNested)(),
|
|
31
|
+
(0, class_transformer_1.Type)(() => BoolFilterDto),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], BoolFilterDto.prototype, "not", void 0);
|
|
35
|
+
//# sourceMappingURL=bool-filter.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bool-filter.dto.js","sourceRoot":"","sources":["../../../../../../../src/api/rest-api/table/dto/row/bool-filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAqE;AACrE,yDAAyC;AACzC,qDAAwE;AAExE,MAAa,aAAa;CAczB;AAdD,sCAcC;AAVC;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;6CACK;AASjB;IAPC,IAAA,6BAAmB,EAAC;QACnB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,IAAA,uBAAa,EAAC,aAAa,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACpE,WAAW,EAAE,wBAAwB;KACtC,CAAC;IACD,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAa,CAAC;IACzB,IAAA,4BAAU,GAAE;;0CACiB"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DateTimeFilterDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class DateTimeFilterDto {
|
|
16
|
+
}
|
|
17
|
+
exports.DateTimeFilterDto = DateTimeFilterDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiPropertyOptional)({ format: 'date-time' }),
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.IsDateString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], DateTimeFilterDto.prototype, "equals", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
26
|
+
isArray: true,
|
|
27
|
+
type: String,
|
|
28
|
+
format: 'date-time',
|
|
29
|
+
}),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_validator_1.IsArray)(),
|
|
32
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
33
|
+
(0, class_validator_1.IsDateString)(undefined, { each: true }),
|
|
34
|
+
__metadata("design:type", Array)
|
|
35
|
+
], DateTimeFilterDto.prototype, "in", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
38
|
+
isArray: true,
|
|
39
|
+
type: String,
|
|
40
|
+
format: 'date-time',
|
|
41
|
+
}),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
(0, class_validator_1.IsArray)(),
|
|
44
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
45
|
+
(0, class_validator_1.IsDateString)(undefined, { each: true }),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], DateTimeFilterDto.prototype, "notIn", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiPropertyOptional)({ format: 'date-time' }),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsDateString)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], DateTimeFilterDto.prototype, "lt", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, swagger_1.ApiPropertyOptional)({ format: 'date-time' }),
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, class_validator_1.IsDateString)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], DateTimeFilterDto.prototype, "lte", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiPropertyOptional)({ format: 'date-time' }),
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsDateString)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], DateTimeFilterDto.prototype, "gt", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, swagger_1.ApiPropertyOptional)({ format: 'date-time' }),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsDateString)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], DateTimeFilterDto.prototype, "gte", void 0);
|
|
72
|
+
//# sourceMappingURL=datetime-filter.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datetime-filter.dto.js","sourceRoot":"","sources":["../../../../../../../src/api/rest-api/table/dto/row/datetime-filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,qDAKyB;AAEzB,MAAa,iBAAiB;CA+C7B;AA/CD,8CA+CC;AA3CC;IAHC,IAAA,6BAAmB,EAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;IAC5C,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;iDACC;AAWhB;IATC,IAAA,6BAAmB,EAAC;QACnB,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,WAAW;KACpB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,8BAAY,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;6CAC1B;AAWd;IATC,IAAA,6BAAmB,EAAC;QACnB,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,WAAW;KACpB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,8BAAY,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;gDACvB;AAKjB;IAHC,IAAA,6BAAmB,EAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;IAC5C,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;6CACH;AAKZ;IAHC,IAAA,6BAAmB,EAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;IAC5C,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;8CACF;AAKb;IAHC,IAAA,6BAAmB,EAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;IAC5C,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;6CACH;AAKZ;IAHC,IAAA,6BAAmB,EAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;IAC5C,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;8CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class JsonFilterDto {
|
|
2
|
+
equals?: any;
|
|
3
|
+
path?: string[];
|
|
4
|
+
mode?: 'default' | 'insensitive';
|
|
5
|
+
string_contains?: string;
|
|
6
|
+
string_starts_with?: string;
|
|
7
|
+
string_ends_with?: string;
|
|
8
|
+
array_contains?: any[];
|
|
9
|
+
array_starts_with?: any;
|
|
10
|
+
array_ends_with?: any;
|
|
11
|
+
lt?: number;
|
|
12
|
+
lte?: number;
|
|
13
|
+
gt?: number;
|
|
14
|
+
gte?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.JsonFilterDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class JsonFilterDto {
|
|
16
|
+
}
|
|
17
|
+
exports.JsonFilterDto = JsonFilterDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Exact JSON match' }),
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
__metadata("design:type", Object)
|
|
22
|
+
], JsonFilterDto.prototype, "equals", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
25
|
+
type: [String],
|
|
26
|
+
description: 'Path in JSON (PostgreSQL: array of keys/indexes, e.g. ["pet1","petName"])',
|
|
27
|
+
}),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsArray)(),
|
|
30
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
31
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], JsonFilterDto.prototype, "path", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
36
|
+
enum: ['default', 'insensitive'],
|
|
37
|
+
description: 'Case sensitivity mode for string filters within JSON ("insensitive" uses ILIKE on PostgreSQL)',
|
|
38
|
+
}),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsIn)(['default', 'insensitive']),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], JsonFilterDto.prototype, "mode", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Substring match in JSON string value' }),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], JsonFilterDto.prototype, "string_contains", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Prefix match in JSON string value' }),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.IsString)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], JsonFilterDto.prototype, "string_starts_with", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Suffix match in JSON string value' }),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], JsonFilterDto.prototype, "string_ends_with", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
63
|
+
type: [Object],
|
|
64
|
+
description: 'Filter on arrays: target JSON array must contain *all* of these values',
|
|
65
|
+
}),
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
67
|
+
(0, class_validator_1.IsArray)(),
|
|
68
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
69
|
+
__metadata("design:type", Array)
|
|
70
|
+
], JsonFilterDto.prototype, "array_contains", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
73
|
+
description: 'JSON value that the target JSON array must start with (could be object, array, primitive)',
|
|
74
|
+
}),
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], JsonFilterDto.prototype, "array_starts_with", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
80
|
+
description: 'JSON value that the target JSON array must end with (could be object, array, primitive)',
|
|
81
|
+
}),
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], JsonFilterDto.prototype, "array_ends_with", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
87
|
+
description: 'Less-than comparison. Must be a number or numeric JSON value',
|
|
88
|
+
}),
|
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
|
90
|
+
(0, class_validator_1.IsNumber)(),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], JsonFilterDto.prototype, "lt", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
95
|
+
description: 'Less-than-or-equal comparison. Must be a number or numeric JSON value',
|
|
96
|
+
}),
|
|
97
|
+
(0, class_validator_1.IsOptional)(),
|
|
98
|
+
(0, class_validator_1.IsNumber)(),
|
|
99
|
+
__metadata("design:type", Number)
|
|
100
|
+
], JsonFilterDto.prototype, "lte", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
103
|
+
description: 'Greater-than comparison. Must be a number or numeric JSON value',
|
|
104
|
+
}),
|
|
105
|
+
(0, class_validator_1.IsOptional)(),
|
|
106
|
+
(0, class_validator_1.IsNumber)(),
|
|
107
|
+
__metadata("design:type", Number)
|
|
108
|
+
], JsonFilterDto.prototype, "gt", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
111
|
+
description: 'Greater-than-or-equal comparison. Must be a number or numeric JSON value',
|
|
112
|
+
}),
|
|
113
|
+
(0, class_validator_1.IsOptional)(),
|
|
114
|
+
(0, class_validator_1.IsNumber)(),
|
|
115
|
+
__metadata("design:type", Number)
|
|
116
|
+
], JsonFilterDto.prototype, "gte", void 0);
|
|
117
|
+
//# sourceMappingURL=json-filter.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-filter.dto.js","sourceRoot":"","sources":["../../../../../../../src/api/rest-api/table/dto/row/json-filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,qDAOyB;AAEzB,MAAa,aAAa;CA8FzB;AA9FD,sCA8FC;AA3FC;IAFC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IACxD,IAAA,4BAAU,GAAE;;6CACA;AAWb;IATC,IAAA,6BAAmB,EAAC;QACnB,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,WAAW,EACT,2EAA2E;KAC9E,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2CACT;AAShB;IAPC,IAAA,6BAAmB,EAAC;QACnB,IAAI,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;QAChC,WAAW,EACT,+FAA+F;KAClG,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;;2CACA;AAKjC;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;IAC5E,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACc;AAKzB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;IACzE,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACiB;AAK5B;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;IACzE,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACe;AAU1B;IARC,IAAA,6BAAmB,EAAC;QACnB,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,WAAW,EACT,wEAAwE;KAC3E,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;;qDACO;AAOvB;IALC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EACT,2FAA2F;KAC9F,CAAC;IACD,IAAA,4BAAU,GAAE;;wDACW;AAOxB;IALC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EACT,yFAAyF;KAC5F,CAAC;IACD,IAAA,4BAAU,GAAE;;sDACS;AAOtB;IALC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,8DAA8D;KAC5E,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yCACC;AAQZ;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EACT,uEAAuE;KAC1E,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACE;AAQb;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EACT,iEAAiE;KACpE,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yCACC;AAQZ;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EACT,0EAA0E;KAC7E,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StringFilterDto } from './string-filter.dto';
|
|
2
|
+
import { BoolFilterDto } from './bool-filter.dto';
|
|
3
|
+
import { DateTimeFilterDto } from './datetime-filter.dto';
|
|
4
|
+
import { JsonFilterDto } from './json-filter.dto';
|
|
5
|
+
export declare class RowWhereInputDto {
|
|
6
|
+
AND?: RowWhereInputDto[];
|
|
7
|
+
OR?: RowWhereInputDto[];
|
|
8
|
+
NOT?: RowWhereInputDto[];
|
|
9
|
+
versionId?: StringFilterDto;
|
|
10
|
+
createdId?: StringFilterDto;
|
|
11
|
+
id?: StringFilterDto;
|
|
12
|
+
readonly?: BoolFilterDto;
|
|
13
|
+
createdAt?: DateTimeFilterDto;
|
|
14
|
+
updatedAt?: DateTimeFilterDto;
|
|
15
|
+
data?: JsonFilterDto;
|
|
16
|
+
meta?: JsonFilterDto;
|
|
17
|
+
hash?: StringFilterDto;
|
|
18
|
+
schemaHash?: StringFilterDto;
|
|
19
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RowWhereInputDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const string_filter_dto_1 = require("./string-filter.dto");
|
|
17
|
+
const bool_filter_dto_1 = require("./bool-filter.dto");
|
|
18
|
+
const datetime_filter_dto_1 = require("./datetime-filter.dto");
|
|
19
|
+
const json_filter_dto_1 = require("./json-filter.dto");
|
|
20
|
+
class RowWhereInputDto {
|
|
21
|
+
}
|
|
22
|
+
exports.RowWhereInputDto = RowWhereInputDto;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
25
|
+
type: () => [RowWhereInputDto],
|
|
26
|
+
description: 'AND conditions',
|
|
27
|
+
}),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsArray)({ message: 'AND must be an array of filters' }),
|
|
30
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
31
|
+
(0, class_transformer_1.Type)(() => RowWhereInputDto),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], RowWhereInputDto.prototype, "AND", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
36
|
+
type: () => [RowWhereInputDto],
|
|
37
|
+
description: 'OR conditions',
|
|
38
|
+
}),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsArray)({ message: 'OR must be an array of filters' }),
|
|
41
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
42
|
+
(0, class_transformer_1.Type)(() => RowWhereInputDto),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], RowWhereInputDto.prototype, "OR", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
47
|
+
type: () => [RowWhereInputDto],
|
|
48
|
+
description: 'NOT conditions',
|
|
49
|
+
}),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsArray)({ message: 'NOT must be an array of filters' }),
|
|
52
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
53
|
+
(0, class_transformer_1.Type)(() => RowWhereInputDto),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], RowWhereInputDto.prototype, "NOT", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
58
|
+
type: () => string_filter_dto_1.StringFilterDto,
|
|
59
|
+
description: 'Filter by versionId',
|
|
60
|
+
}),
|
|
61
|
+
(0, class_validator_1.ValidateNested)(),
|
|
62
|
+
(0, class_transformer_1.Type)(() => string_filter_dto_1.StringFilterDto),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
__metadata("design:type", string_filter_dto_1.StringFilterDto)
|
|
65
|
+
], RowWhereInputDto.prototype, "versionId", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
68
|
+
type: () => string_filter_dto_1.StringFilterDto,
|
|
69
|
+
description: 'Filter by createdId',
|
|
70
|
+
}),
|
|
71
|
+
(0, class_validator_1.ValidateNested)(),
|
|
72
|
+
(0, class_transformer_1.Type)(() => string_filter_dto_1.StringFilterDto),
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
__metadata("design:type", string_filter_dto_1.StringFilterDto)
|
|
75
|
+
], RowWhereInputDto.prototype, "createdId", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
78
|
+
type: () => string_filter_dto_1.StringFilterDto,
|
|
79
|
+
description: 'Filter by id',
|
|
80
|
+
}),
|
|
81
|
+
(0, class_validator_1.ValidateNested)(),
|
|
82
|
+
(0, class_transformer_1.Type)(() => string_filter_dto_1.StringFilterDto),
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
__metadata("design:type", string_filter_dto_1.StringFilterDto)
|
|
85
|
+
], RowWhereInputDto.prototype, "id", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
88
|
+
type: () => bool_filter_dto_1.BoolFilterDto,
|
|
89
|
+
description: 'Filter by readonly',
|
|
90
|
+
}),
|
|
91
|
+
(0, class_validator_1.ValidateNested)(),
|
|
92
|
+
(0, class_transformer_1.Type)(() => bool_filter_dto_1.BoolFilterDto),
|
|
93
|
+
(0, class_validator_1.IsOptional)(),
|
|
94
|
+
__metadata("design:type", bool_filter_dto_1.BoolFilterDto)
|
|
95
|
+
], RowWhereInputDto.prototype, "readonly", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
98
|
+
type: () => datetime_filter_dto_1.DateTimeFilterDto,
|
|
99
|
+
description: 'Filter by createdAt',
|
|
100
|
+
}),
|
|
101
|
+
(0, class_validator_1.ValidateNested)(),
|
|
102
|
+
(0, class_transformer_1.Type)(() => datetime_filter_dto_1.DateTimeFilterDto),
|
|
103
|
+
(0, class_validator_1.IsOptional)(),
|
|
104
|
+
__metadata("design:type", datetime_filter_dto_1.DateTimeFilterDto)
|
|
105
|
+
], RowWhereInputDto.prototype, "createdAt", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
108
|
+
type: () => datetime_filter_dto_1.DateTimeFilterDto,
|
|
109
|
+
description: 'Filter by updatedAt',
|
|
110
|
+
}),
|
|
111
|
+
(0, class_validator_1.ValidateNested)(),
|
|
112
|
+
(0, class_transformer_1.Type)(() => datetime_filter_dto_1.DateTimeFilterDto),
|
|
113
|
+
(0, class_validator_1.IsOptional)(),
|
|
114
|
+
__metadata("design:type", datetime_filter_dto_1.DateTimeFilterDto)
|
|
115
|
+
], RowWhereInputDto.prototype, "updatedAt", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
118
|
+
type: () => json_filter_dto_1.JsonFilterDto,
|
|
119
|
+
description: 'Filter by data',
|
|
120
|
+
}),
|
|
121
|
+
(0, class_validator_1.ValidateNested)(),
|
|
122
|
+
(0, class_transformer_1.Type)(() => json_filter_dto_1.JsonFilterDto),
|
|
123
|
+
(0, class_validator_1.IsOptional)(),
|
|
124
|
+
__metadata("design:type", json_filter_dto_1.JsonFilterDto)
|
|
125
|
+
], RowWhereInputDto.prototype, "data", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
128
|
+
type: () => json_filter_dto_1.JsonFilterDto,
|
|
129
|
+
description: 'Filter by meta',
|
|
130
|
+
}),
|
|
131
|
+
(0, class_validator_1.ValidateNested)(),
|
|
132
|
+
(0, class_transformer_1.Type)(() => json_filter_dto_1.JsonFilterDto),
|
|
133
|
+
(0, class_validator_1.IsOptional)(),
|
|
134
|
+
__metadata("design:type", json_filter_dto_1.JsonFilterDto)
|
|
135
|
+
], RowWhereInputDto.prototype, "meta", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
138
|
+
type: () => string_filter_dto_1.StringFilterDto,
|
|
139
|
+
description: 'Filter by hash',
|
|
140
|
+
}),
|
|
141
|
+
(0, class_validator_1.ValidateNested)(),
|
|
142
|
+
(0, class_transformer_1.Type)(() => string_filter_dto_1.StringFilterDto),
|
|
143
|
+
(0, class_validator_1.IsOptional)(),
|
|
144
|
+
__metadata("design:type", string_filter_dto_1.StringFilterDto)
|
|
145
|
+
], RowWhereInputDto.prototype, "hash", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
148
|
+
type: () => string_filter_dto_1.StringFilterDto,
|
|
149
|
+
description: 'Filter by schemaHash',
|
|
150
|
+
}),
|
|
151
|
+
(0, class_validator_1.ValidateNested)(),
|
|
152
|
+
(0, class_transformer_1.Type)(() => string_filter_dto_1.StringFilterDto),
|
|
153
|
+
(0, class_validator_1.IsOptional)(),
|
|
154
|
+
__metadata("design:type", string_filter_dto_1.StringFilterDto)
|
|
155
|
+
], RowWhereInputDto.prototype, "schemaHash", void 0);
|
|
156
|
+
//# sourceMappingURL=row-where-input.dto.js.map
|