@squidcloud/local-backend 1.0.45 → 1.0.46
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/common/src/index.d.ts +0 -1
- package/dist/common/src/index.js +0 -1
- package/dist/common/src/index.js.map +1 -1
- package/dist/common/src/query/base-query-builder.d.ts +39 -1
- package/dist/common/src/query/base-query-builder.js +254 -1
- package/dist/common/src/query/base-query-builder.js.map +1 -1
- package/dist/common/src/query/query-context.d.ts +29 -6
- package/dist/common/src/query/query-context.js +5 -4
- package/dist/common/src/query/query-context.js.map +1 -1
- package/dist/common/src/query.types.d.ts +20 -38
- package/dist/common/src/query.types.js +91 -72
- package/dist/common/src/query.types.js.map +1 -1
- package/dist/common/src/types.d.ts +8 -2
- package/dist/internal-common/src/shutdown.manager.js +0 -1
- package/dist/internal-common/src/shutdown.manager.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/common/src/query.schemas.d.ts +0 -6
- package/dist/common/src/query.schemas.js +0 -97
- package/dist/common/src/query.schemas.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { JSONSchemaType } from 'ajv';
|
|
2
|
-
import { Query, QueryRegisterRequest, QueryRequest, QueryUnsubscribeRequest } from './query.types';
|
|
3
|
-
export declare const QuerySchema: JSONSchemaType<Query>;
|
|
4
|
-
export declare const QueryRequestSchema: JSONSchemaType<QueryRequest>;
|
|
5
|
-
export declare const QueryUnsubscribeRequestSchema: JSONSchemaType<QueryUnsubscribeRequest>;
|
|
6
|
-
export declare const QueryRegisterRequestSchema: JSONSchemaType<QueryRegisterRequest>;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QueryRegisterRequestSchema = exports.QueryUnsubscribeRequestSchema = exports.QueryRequestSchema = exports.QuerySchema = void 0;
|
|
4
|
-
exports.QuerySchema = {
|
|
5
|
-
$id: 'querySchema',
|
|
6
|
-
type: 'object',
|
|
7
|
-
required: ['collectionName', 'integrationId'],
|
|
8
|
-
properties: {
|
|
9
|
-
collectionName: { type: 'string', nullable: false },
|
|
10
|
-
integrationId: { type: 'string', nullable: false },
|
|
11
|
-
conditions: {
|
|
12
|
-
type: 'array',
|
|
13
|
-
nullable: false,
|
|
14
|
-
items: {
|
|
15
|
-
type: 'object',
|
|
16
|
-
nullable: false,
|
|
17
|
-
required: ['fieldName', 'operator', 'value'],
|
|
18
|
-
properties: {
|
|
19
|
-
fieldName: { type: 'string', nullable: false },
|
|
20
|
-
operator: {
|
|
21
|
-
type: 'string',
|
|
22
|
-
nullable: false,
|
|
23
|
-
enum: ['==', '>=', '<=', '>', '<', '!=', 'like', 'not like', 'like_cs', 'not like_cs'],
|
|
24
|
-
},
|
|
25
|
-
value: {
|
|
26
|
-
$ref: 'querySchema#/definitions/conditionValueSchema',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
sortOrder: {
|
|
32
|
-
type: 'array',
|
|
33
|
-
nullable: false,
|
|
34
|
-
items: {
|
|
35
|
-
type: 'object',
|
|
36
|
-
required: ['fieldName', 'asc'],
|
|
37
|
-
properties: {
|
|
38
|
-
fieldName: { type: 'string' },
|
|
39
|
-
asc: { type: 'boolean' },
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
limit: { type: 'number', nullable: false },
|
|
44
|
-
},
|
|
45
|
-
definitions: {
|
|
46
|
-
conditionValueSchema: {
|
|
47
|
-
oneOf: [
|
|
48
|
-
{ type: 'null', nullable: true },
|
|
49
|
-
{ type: 'string', nullable: false },
|
|
50
|
-
{ type: 'number', nullable: false },
|
|
51
|
-
{ type: 'boolean', nullable: false },
|
|
52
|
-
{
|
|
53
|
-
type: 'array',
|
|
54
|
-
nullable: false,
|
|
55
|
-
items: {
|
|
56
|
-
$ref: 'querySchema#/definitions/conditionValueSchema',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
type: 'object',
|
|
61
|
-
nullable: false,
|
|
62
|
-
patternProperties: {
|
|
63
|
-
'[0-9a-zA-Z\\$_\\-\\.]{1,64}': {
|
|
64
|
-
$ref: 'querySchema#/definitions/conditionValueSchema',
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
exports.QueryRequestSchema = {
|
|
73
|
-
type: 'object',
|
|
74
|
-
required: ['clientRequestId', 'query', 'subscribe'],
|
|
75
|
-
properties: {
|
|
76
|
-
clientRequestId: { type: 'string', nullable: false },
|
|
77
|
-
query: exports.QuerySchema,
|
|
78
|
-
subscribe: { type: 'boolean', nullable: false },
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
exports.QueryUnsubscribeRequestSchema = {
|
|
82
|
-
type: 'object',
|
|
83
|
-
required: ['clientRequestId'],
|
|
84
|
-
properties: {
|
|
85
|
-
clientRequestId: { type: 'string', nullable: false },
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
exports.QueryRegisterRequestSchema = {
|
|
89
|
-
type: 'object',
|
|
90
|
-
required: ['clientRequestId', 'query', 'parentClientRequestId'],
|
|
91
|
-
properties: {
|
|
92
|
-
clientRequestId: { type: 'string', nullable: false },
|
|
93
|
-
query: exports.QuerySchema,
|
|
94
|
-
parentClientRequestId: { type: 'string', nullable: false },
|
|
95
|
-
},
|
|
96
|
-
};
|
|
97
|
-
//# sourceMappingURL=query.schemas.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.schemas.js","sourceRoot":"","sources":["../../../../common/src/query.schemas.ts"],"names":[],"mappings":";;;AAIa,QAAA,WAAW,GAA0B;IAChD,GAAG,EAAE,aAAa;IAClB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAA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