@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @objectstack/objectql@3.2.5 build /home/runner/work/spec/spec/packages/objectql
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
  CLI Building entry: src/index.ts
@@ -10,13 +10,13 @@
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- CJS dist/index.js 95.30 KB
14
- CJS dist/index.js.map 192.99 KB
15
- CJS ⚡️ Build success in 168ms
16
- ESM dist/index.mjs 93.56 KB
17
- ESM dist/index.mjs.map 191.69 KB
18
- ESM ⚡️ Build success in 170ms
13
+ ESM dist/index.mjs 94.28 KB
14
+ ESM dist/index.mjs.map 193.23 KB
15
+ ESM ⚡️ Build success in 197ms
16
+ CJS dist/index.js 96.02 KB
17
+ CJS dist/index.js.map 194.53 KB
18
+ CJS ⚡️ Build success in 197ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 21544ms
21
- DTS dist/index.d.mts 77.33 KB
22
- DTS dist/index.d.ts 77.33 KB
20
+ DTS ⚡️ Build success in 12511ms
21
+ DTS dist/index.d.mts 77.36 KB
22
+ DTS dist/index.d.ts 77.36 KB
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: "plugin-i18n" },
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,