@objectstack/objectql 3.2.5 → 3.2.7
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +16 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +35 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/protocol.ts +28 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @objectstack/objectql@3.2.
|
|
2
|
+
> @objectstack/objectql@3.2.7 build /home/runner/work/spec/spec/packages/objectql
|
|
3
3
|
> tsup --config ../../tsup.config.ts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m94.28 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m193.23 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 197ms
|
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m96.02 KB[39m
|
|
17
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m194.53 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 197ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m77.
|
|
22
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m77.
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 12511ms
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m77.36 KB[39m
|
|
22
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m77.36 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @objectstack/objectql
|
|
2
2
|
|
|
3
|
+
## 3.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @objectstack/spec@3.2.7
|
|
8
|
+
- @objectstack/core@3.2.7
|
|
9
|
+
- @objectstack/types@3.2.7
|
|
10
|
+
|
|
11
|
+
## 3.2.6
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- @objectstack/spec@3.2.6
|
|
16
|
+
- @objectstack/core@3.2.6
|
|
17
|
+
- @objectstack/types@3.2.6
|
|
18
|
+
|
|
3
19
|
## 3.2.5
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -366,6 +366,7 @@ declare class SchemaRegistry {
|
|
|
366
366
|
pluralLabel?: string | undefined;
|
|
367
367
|
description?: string | undefined;
|
|
368
368
|
icon?: string | undefined;
|
|
369
|
+
namespace?: string | undefined;
|
|
369
370
|
tags?: string[] | undefined;
|
|
370
371
|
tableName?: string | undefined;
|
|
371
372
|
indexes?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -366,6 +366,7 @@ declare class SchemaRegistry {
|
|
|
366
366
|
pluralLabel?: string | undefined;
|
|
367
367
|
description?: string | undefined;
|
|
368
368
|
icon?: string | undefined;
|
|
369
|
+
namespace?: string | undefined;
|
|
369
370
|
tags?: string[] | undefined;
|
|
370
371
|
tableName?: string | undefined;
|
|
371
372
|
indexes?: {
|
package/dist/index.js
CHANGED
|
@@ -552,7 +552,7 @@ var SERVICE_CONFIG = {
|
|
|
552
552
|
realtime: { route: "/api/v1/realtime", plugin: "plugin-realtime" },
|
|
553
553
|
notification: { route: "/api/v1/notifications", plugin: "plugin-notifications" },
|
|
554
554
|
ai: { route: "/api/v1/ai", plugin: "plugin-ai" },
|
|
555
|
-
i18n: { route: "/api/v1/i18n", plugin: "
|
|
555
|
+
i18n: { route: "/api/v1/i18n", plugin: "service-i18n" },
|
|
556
556
|
graphql: { route: "/graphql", plugin: "plugin-graphql" },
|
|
557
557
|
// GraphQL uses /graphql by convention (not versioned REST)
|
|
558
558
|
"file-storage": { route: "/api/v1/storage", plugin: "plugin-storage" },
|
|
@@ -788,6 +788,40 @@ var ObjectStackProtocolImplementation = class {
|
|
|
788
788
|
if (options[key] === "true") options[key] = true;
|
|
789
789
|
else if (options[key] === "false") options[key] = false;
|
|
790
790
|
}
|
|
791
|
+
const knownParams = /* @__PURE__ */ new Set([
|
|
792
|
+
"top",
|
|
793
|
+
"skip",
|
|
794
|
+
"limit",
|
|
795
|
+
"offset",
|
|
796
|
+
"sort",
|
|
797
|
+
"orderBy",
|
|
798
|
+
"select",
|
|
799
|
+
"fields",
|
|
800
|
+
"filter",
|
|
801
|
+
"filters",
|
|
802
|
+
"$filter",
|
|
803
|
+
"populate",
|
|
804
|
+
"expand",
|
|
805
|
+
"$expand",
|
|
806
|
+
"distinct",
|
|
807
|
+
"count",
|
|
808
|
+
"aggregations",
|
|
809
|
+
"groupBy",
|
|
810
|
+
"search",
|
|
811
|
+
"context"
|
|
812
|
+
]);
|
|
813
|
+
if (!options.filter) {
|
|
814
|
+
const implicitFilters = {};
|
|
815
|
+
for (const key of Object.keys(options)) {
|
|
816
|
+
if (!knownParams.has(key)) {
|
|
817
|
+
implicitFilters[key] = options[key];
|
|
818
|
+
delete options[key];
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
if (Object.keys(implicitFilters).length > 0) {
|
|
822
|
+
options.filter = implicitFilters;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
791
825
|
const records = await this.engine.find(request.object, options);
|
|
792
826
|
return {
|
|
793
827
|
object: request.object,
|