@objectql/types 4.0.0 → 4.0.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/action.d.ts +2 -1
- package/dist/config.d.ts +2 -2
- package/dist/driver.d.ts +6 -0
- package/dist/field.d.ts +4 -1
- package/dist/object.d.ts +3 -1
- package/dist/query.d.ts +3 -1
- package/dist/registry.d.ts +4 -4
- package/dist/registry.js +4 -4
- package/dist/registry.js.map +1 -1
- package/package.json +5 -5
package/dist/action.d.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import { UI } from '@objectstack/spec';
|
|
9
|
+
type Action = UI.Action;
|
|
9
10
|
import { FieldConfig } from "./field";
|
|
10
11
|
import { HookAPI } from "./hook";
|
|
11
12
|
/**
|
package/dist/config.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { MetadataRegistry } from "./registry";
|
|
9
9
|
import { Driver } from "./driver";
|
|
10
10
|
import { ObjectConfig } from "./object";
|
|
11
|
-
import type { RuntimePlugin } from "
|
|
11
|
+
import type { RuntimePlugin } from "../../../objectstack/runtime/dist";
|
|
12
12
|
export interface ObjectQLConfig {
|
|
13
13
|
registry?: MetadataRegistry;
|
|
14
14
|
datasources?: Record<string, Driver>;
|
|
@@ -37,7 +37,7 @@ export interface ObjectQLConfig {
|
|
|
37
37
|
modules?: string[];
|
|
38
38
|
/**
|
|
39
39
|
* List of plugins to load.
|
|
40
|
-
* Must implement the RuntimePlugin interface from @
|
|
40
|
+
* Must implement the RuntimePlugin interface from @objectql/runtime.
|
|
41
41
|
* String plugins (package names) are not supported in core.
|
|
42
42
|
*/
|
|
43
43
|
plugins?: (RuntimePlugin | string)[];
|
package/dist/driver.d.ts
CHANGED
|
@@ -66,6 +66,12 @@ export interface Driver {
|
|
|
66
66
|
fullTextSearch?: boolean;
|
|
67
67
|
jsonFields?: boolean;
|
|
68
68
|
arrayFields?: boolean;
|
|
69
|
+
queryFilters?: boolean;
|
|
70
|
+
queryAggregations?: boolean;
|
|
71
|
+
querySorting?: boolean;
|
|
72
|
+
queryPagination?: boolean;
|
|
73
|
+
queryWindowFunctions?: boolean;
|
|
74
|
+
querySubqueries?: boolean;
|
|
69
75
|
};
|
|
70
76
|
find(objectName: string, query: any, options?: any): Promise<any[]>;
|
|
71
77
|
findOne(objectName: string, id: string | number, query?: any, options?: any): Promise<any>;
|
package/dist/field.d.ts
CHANGED
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import { Data } from '@objectstack/spec';
|
|
9
|
+
type ProtocolFieldType = Data.FieldType;
|
|
10
|
+
type Field = Data.Field;
|
|
11
|
+
type SpecSelectOption = Data.SelectOption;
|
|
9
12
|
/**
|
|
10
13
|
* Re-export Protocol Types from the Constitution
|
|
11
14
|
* These are the wire-protocol standard types defined in @objectstack/spec
|
package/dist/object.d.ts
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import { Data } from '@objectstack/spec';
|
|
9
|
+
type ServiceObject = Data.ServiceObject;
|
|
10
|
+
type IndexSchema = NonNullable<ServiceObject['indexes']>[number];
|
|
9
11
|
import { FieldConfig } from './field';
|
|
10
12
|
import { ActionConfig } from './action';
|
|
11
13
|
import { AnyValidationRule } from './validation';
|
package/dist/query.d.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import { Data } from '@objectstack/spec';
|
|
9
|
+
type FilterCondition = Data.FilterCondition;
|
|
9
10
|
/**
|
|
10
11
|
* Modern Query Filter using @objectstack/spec FilterCondition
|
|
11
12
|
*
|
|
@@ -50,3 +51,4 @@ export interface UnifiedQuery {
|
|
|
50
51
|
/** Aggregation - aggregate functions to apply */
|
|
51
52
|
aggregate?: AggregateOption[];
|
|
52
53
|
}
|
|
54
|
+
export {};
|
package/dist/registry.d.ts
CHANGED
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* Re-export MetadataRegistry and MetadataItem from @
|
|
9
|
+
* Re-export MetadataRegistry and MetadataItem from @objectql/runtime
|
|
10
10
|
*
|
|
11
11
|
* As of Week 3 refactoring, metadata management has been moved to the
|
|
12
|
-
* @
|
|
12
|
+
* @objectql/runtime package to enable sharing across the ecosystem.
|
|
13
13
|
*/
|
|
14
|
-
export { MetadataRegistry, MetadataItem } from '
|
|
14
|
+
export { MetadataRegistry, MetadataItem } from '../../../objectstack/runtime/dist';
|
|
15
15
|
/**
|
|
16
16
|
* Legacy Metadata interface - kept for backward compatibility
|
|
17
|
-
* @deprecated Use MetadataItem from @
|
|
17
|
+
* @deprecated Use MetadataItem from @objectql/runtime instead
|
|
18
18
|
*/
|
|
19
19
|
export interface Metadata {
|
|
20
20
|
type: string;
|
package/dist/registry.js
CHANGED
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.MetadataRegistry = void 0;
|
|
11
11
|
/**
|
|
12
|
-
* Re-export MetadataRegistry and MetadataItem from @
|
|
12
|
+
* Re-export MetadataRegistry and MetadataItem from @objectql/runtime
|
|
13
13
|
*
|
|
14
14
|
* As of Week 3 refactoring, metadata management has been moved to the
|
|
15
|
-
* @
|
|
15
|
+
* @objectql/runtime package to enable sharing across the ecosystem.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
Object.defineProperty(exports, "MetadataRegistry", { enumerable: true, get: function () { return
|
|
17
|
+
var dist_1 = require("../../../objectstack/runtime/dist");
|
|
18
|
+
Object.defineProperty(exports, "MetadataRegistry", { enumerable: true, get: function () { return dist_1.MetadataRegistry; } });
|
|
19
19
|
//# sourceMappingURL=registry.js.map
|
package/dist/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH;;;;;GAKG;AACH,0DAAmF;AAA1E,wGAAA,gBAAgB,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@objectql/types",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Pure TypeScript type definitions and interfaces for the ObjectQL protocol - The Contract",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"objectql",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"test": "jest --passWithNoTests"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@objectstack/spec": "^0.
|
|
31
|
-
"@
|
|
30
|
+
"@objectstack/spec": "^0.3.1",
|
|
31
|
+
"@objectql/runtime": "^0.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@objectstack/spec": "
|
|
35
|
-
"@
|
|
34
|
+
"@objectstack/spec": "^0.3.1",
|
|
35
|
+
"@objectql/runtime": "workspace:*",
|
|
36
36
|
"ts-json-schema-generator": "^2.4.0"
|
|
37
37
|
}
|
|
38
38
|
}
|