@objectql/types 3.0.1 → 4.0.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.
Files changed (82) hide show
  1. package/dist/action.d.ts +28 -0
  2. package/dist/action.js +7 -0
  3. package/dist/action.js.map +1 -1
  4. package/dist/api.d.ts +13 -6
  5. package/dist/api.js +4 -3
  6. package/dist/api.js.map +1 -1
  7. package/dist/app.d.ts +12 -0
  8. package/dist/app.js +7 -0
  9. package/dist/app.js.map +1 -1
  10. package/dist/application.d.ts +7 -0
  11. package/dist/application.js +7 -0
  12. package/dist/application.js.map +1 -1
  13. package/dist/config.d.ts +11 -3
  14. package/dist/config.js +7 -0
  15. package/dist/config.js.map +1 -1
  16. package/dist/context.d.ts +7 -0
  17. package/dist/context.js +7 -0
  18. package/dist/context.js.map +1 -1
  19. package/dist/driver.d.ts +61 -0
  20. package/dist/driver.js +7 -0
  21. package/dist/driver.js.map +1 -1
  22. package/dist/field.d.ts +129 -53
  23. package/dist/field.js +7 -0
  24. package/dist/field.js.map +1 -1
  25. package/dist/form.d.ts +7 -0
  26. package/dist/form.js +4 -6
  27. package/dist/form.js.map +1 -1
  28. package/dist/formula.d.ts +7 -0
  29. package/dist/formula.js +9 -2
  30. package/dist/formula.js.map +1 -1
  31. package/dist/hook.d.ts +7 -0
  32. package/dist/hook.js +7 -0
  33. package/dist/hook.js.map +1 -1
  34. package/dist/index.d.ts +14 -1
  35. package/dist/index.js +14 -1
  36. package/dist/index.js.map +1 -1
  37. package/dist/loader.d.ts +7 -0
  38. package/dist/loader.js +7 -0
  39. package/dist/loader.js.map +1 -1
  40. package/dist/menu.d.ts +7 -0
  41. package/dist/menu.js +7 -0
  42. package/dist/menu.js.map +1 -1
  43. package/dist/migration.d.ts +7 -0
  44. package/dist/migration.js +7 -0
  45. package/dist/migration.js.map +1 -1
  46. package/dist/object.d.ts +89 -4
  47. package/dist/object.js +7 -0
  48. package/dist/object.js.map +1 -1
  49. package/dist/page.d.ts +7 -0
  50. package/dist/page.js +4 -6
  51. package/dist/page.js.map +1 -1
  52. package/dist/permission.d.ts +7 -0
  53. package/dist/permission.js +4 -6
  54. package/dist/permission.js.map +1 -1
  55. package/dist/query.d.ts +37 -3
  56. package/dist/query.js +7 -0
  57. package/dist/query.js.map +1 -1
  58. package/dist/registry.d.ts +19 -10
  59. package/dist/registry.js +15 -50
  60. package/dist/registry.js.map +1 -1
  61. package/dist/report.d.ts +7 -0
  62. package/dist/report.js +4 -5
  63. package/dist/report.js.map +1 -1
  64. package/dist/repository.d.ts +7 -0
  65. package/dist/repository.js +7 -0
  66. package/dist/repository.js.map +1 -1
  67. package/dist/validation.d.ts +7 -0
  68. package/dist/validation.js +5 -2
  69. package/dist/validation.js.map +1 -1
  70. package/dist/view.d.ts +7 -0
  71. package/dist/view.js +4 -6
  72. package/dist/view.js.map +1 -1
  73. package/dist/workflow.d.ts +7 -0
  74. package/dist/workflow.js +4 -5
  75. package/dist/workflow.js.map +1 -1
  76. package/package.json +12 -6
  77. package/schemas/app.schema.json +1 -0
  78. package/schemas/menu.schema.json +1 -0
  79. package/LICENSE +0 -21
  80. package/dist/plugin.d.ts +0 -5
  81. package/dist/plugin.js +0 -3
  82. package/dist/plugin.js.map +0 -1
package/dist/registry.js CHANGED
@@ -1,54 +1,19 @@
1
1
  "use strict";
2
+ /**
3
+ * ObjectQL
4
+ * Copyright (c) 2026-present ObjectStack Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  exports.MetadataRegistry = void 0;
4
- class MetadataRegistry {
5
- constructor() {
6
- // Map<type, Map<id, Metadata>>
7
- this.store = new Map();
8
- }
9
- register(type, metadata) {
10
- if (!this.store.has(type)) {
11
- this.store.set(type, new Map());
12
- }
13
- this.store.get(type).set(metadata.id, metadata);
14
- }
15
- unregister(type, id) {
16
- const map = this.store.get(type);
17
- if (map) {
18
- map.delete(id);
19
- }
20
- }
21
- unregisterPackage(packageName) {
22
- for (const [type, map] of this.store.entries()) {
23
- const entriesToDelete = [];
24
- for (const [id, meta] of map.entries()) {
25
- if (meta.package === packageName) {
26
- entriesToDelete.push(id);
27
- }
28
- }
29
- // Delete all collected entries
30
- for (const id of entriesToDelete) {
31
- map.delete(id);
32
- }
33
- }
34
- }
35
- get(type, id) {
36
- const map = this.store.get(type);
37
- if (!map)
38
- return undefined;
39
- const entry = map.get(id);
40
- return entry ? entry.content : undefined;
41
- }
42
- list(type) {
43
- const map = this.store.get(type);
44
- if (!map)
45
- return [];
46
- return Array.from(map.values()).map(m => m.content);
47
- }
48
- getEntry(type, id) {
49
- const map = this.store.get(type);
50
- return map ? map.get(id) : undefined;
51
- }
52
- }
53
- exports.MetadataRegistry = MetadataRegistry;
11
+ /**
12
+ * Re-export MetadataRegistry and MetadataItem from @objectstack/runtime
13
+ *
14
+ * As of Week 3 refactoring, metadata management has been moved to the
15
+ * @objectstack/runtime package to enable sharing across the ecosystem.
16
+ */
17
+ var runtime_1 = require("@objectstack/runtime");
18
+ Object.defineProperty(exports, "MetadataRegistry", { enumerable: true, get: function () { return runtime_1.MetadataRegistry; } });
54
19
  //# sourceMappingURL=registry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":";;;AAQA,MAAa,gBAAgB;IAA7B;QACI,+BAA+B;QACvB,UAAK,GAAuC,IAAI,GAAG,EAAE,CAAC;IAkDlE,CAAC;IAhDG,QAAQ,CAAC,IAAY,EAAE,QAAkB;QACrC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACxB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;QACpC,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC,GAAG,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CAAC;QACjC,IAAI,CAAC,GAAG;YAAE,OAAO,EAAE,CAAC;QACpB,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAY,CAAC,CAAC;IAC7D,CAAC;IAED,QAAQ,CAAC,IAAY,EAAE,EAAU;QAC7B,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACjC,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACzC,CAAC;CACJ;AApDD,4CAoDC"}
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH;;;;;GAKG;AACH,gDAAsE;AAA7D,2GAAA,gBAAgB,OAAA"}
package/dist/report.d.ts CHANGED
@@ -1,3 +1,10 @@
1
+ /**
2
+ * ObjectQL
3
+ * Copyright (c) 2026-present ObjectStack Inc.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
1
8
  /**
2
9
  * Report Metadata Definition
3
10
  *
package/dist/report.js CHANGED
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  /**
3
- * Report Metadata Definition
3
+ * ObjectQL
4
+ * Copyright (c) 2026-present ObjectStack Inc.
4
5
  *
5
- * Defines the structure for reports, data summaries, and analytics in ObjectQL.
6
- * Reports aggregate and visualize data from objects with grouping, filtering, and calculations.
7
- *
8
- * Based on patterns from Salesforce Reports, Tableau, and similar BI platforms.
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
9
8
  */
10
9
  Object.defineProperty(exports, "__esModule", { value: true });
11
10
  //# sourceMappingURL=report.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"report.js","sourceRoot":"","sources":["../src/report.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG"}
1
+ {"version":3,"file":"report.js","sourceRoot":"","sources":["../src/report.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}
@@ -1,3 +1,10 @@
1
+ /**
2
+ * ObjectQL
3
+ * Copyright (c) 2026-present ObjectStack Inc.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
1
8
  import { UnifiedQuery } from "./query";
2
9
  export interface IObjectRepository {
3
10
  find(query?: UnifiedQuery): Promise<any[]>;
@@ -1,3 +1,10 @@
1
1
  "use strict";
2
+ /**
3
+ * ObjectQL
4
+ * Copyright (c) 2026-present ObjectStack Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  //# sourceMappingURL=repository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"repository.js","sourceRoot":"","sources":["../src/repository.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"repository.js","sourceRoot":"","sources":["../src/repository.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}
@@ -1,3 +1,10 @@
1
+ /**
2
+ * ObjectQL
3
+ * Copyright (c) 2026-present ObjectStack Inc.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
1
8
  /**
2
9
  * Validation system types based on the validation metadata specification.
3
10
  * These types define the structure for metadata-driven validation rules.
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  /**
3
- * Validation system types based on the validation metadata specification.
4
- * These types define the structure for metadata-driven validation rules.
3
+ * ObjectQL
4
+ * Copyright (c) 2026-present ObjectStack Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
5
8
  */
6
9
  Object.defineProperty(exports, "__esModule", { value: true });
7
10
  exports.ValidationError = void 0;
@@ -1 +1 @@
1
- {"version":3,"file":"validation.js","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAsXH;;GAEG;AACH,MAAa,eAAgB,SAAQ,KAAK;IACtC,YACI,OAAe,EACR,OAA+B,EAC/B,IAAa;QAEpB,KAAK,CAAC,OAAO,CAAC,CAAC;QAHR,YAAO,GAAP,OAAO,CAAwB;QAC/B,SAAI,GAAJ,IAAI,CAAS;QAGpB,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAClC,CAAC;CACJ;AATD,0CASC"}
1
+ {"version":3,"file":"validation.js","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AA2XH;;GAEG;AACH,MAAa,eAAgB,SAAQ,KAAK;IACtC,YACI,OAAe,EACR,OAA+B,EAC/B,IAAa;QAEpB,KAAK,CAAC,OAAO,CAAC,CAAC;QAHR,YAAO,GAAP,OAAO,CAAwB;QAC/B,SAAI,GAAJ,IAAI,CAAS;QAGpB,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAClC,CAAC;CACJ;AATD,0CASC"}
package/dist/view.d.ts CHANGED
@@ -1,3 +1,10 @@
1
+ /**
2
+ * ObjectQL
3
+ * Copyright (c) 2026-present ObjectStack Inc.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
1
8
  /**
2
9
  * View Metadata Definition
3
10
  *
package/dist/view.js CHANGED
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
2
  /**
3
- * View Metadata Definition
3
+ * ObjectQL
4
+ * Copyright (c) 2026-present ObjectStack Inc.
4
5
  *
5
- * Defines the structure for list views, grid views, and other data visualization views
6
- * in ObjectQL applications. Views define how data from objects is displayed to users
7
- * including columns, filters, sorting, and available actions.
8
- *
9
- * Based on common patterns from Salesforce List Views, Airtable Views, and similar platforms.
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
10
8
  */
11
9
  Object.defineProperty(exports, "__esModule", { value: true });
12
10
  //# sourceMappingURL=view.js.map
package/dist/view.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../src/view.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG"}
1
+ {"version":3,"file":"view.js","sourceRoot":"","sources":["../src/view.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}
@@ -1,3 +1,10 @@
1
+ /**
2
+ * ObjectQL
3
+ * Copyright (c) 2026-present ObjectStack Inc.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
1
8
  /**
2
9
  * Workflow and Automation Metadata Definition
3
10
  *
package/dist/workflow.js CHANGED
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  /**
3
- * Workflow and Automation Metadata Definition
3
+ * ObjectQL
4
+ * Copyright (c) 2026-present ObjectStack Inc.
4
5
  *
5
- * Defines the structure for workflows, approvals, and automation processes in ObjectQL.
6
- * Workflows orchestrate business processes, approval chains, and automated actions.
7
- *
8
- * Based on patterns from Salesforce Process Builder, Microsoft Power Automate, and similar platforms.
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
9
8
  */
10
9
  Object.defineProperty(exports, "__esModule", { value: true });
11
10
  //# sourceMappingURL=workflow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG"}
1
+ {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectql/types",
3
- "version": "3.0.1",
3
+ "version": "4.0.0",
4
4
  "description": "Pure TypeScript type definitions and interfaces for the ObjectQL protocol - The Contract",
5
5
  "keywords": [
6
6
  "objectql",
@@ -21,12 +21,18 @@
21
21
  "dist",
22
22
  "schemas"
23
23
  ],
24
- "devDependencies": {
25
- "ts-json-schema-generator": "^2.4.0"
26
- },
27
24
  "scripts": {
28
- "build": "tsc && npm run generate:schemas",
25
+ "build": "tsc",
29
26
  "generate:schemas": "node scripts/generate-schemas.js",
30
27
  "test": "jest --passWithNoTests"
28
+ },
29
+ "peerDependencies": {
30
+ "@objectstack/spec": "^0.2.0",
31
+ "@objectstack/runtime": "^0.2.0"
32
+ },
33
+ "devDependencies": {
34
+ "@objectstack/spec": "workspace:*",
35
+ "@objectstack/runtime": "workspace:*",
36
+ "ts-json-schema-generator": "^2.4.0"
31
37
  }
32
- }
38
+ }
@@ -6,6 +6,7 @@
6
6
  "additionalProperties": {
7
7
  "description": "Custom metadata/settings"
8
8
  },
9
+ "description": "ObjectQL Copyright (c) 2026-present ObjectStack Inc.\n\nThis source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.",
9
10
  "properties": {
10
11
  "description": {
11
12
  "description": "Description of what this application does",
@@ -116,6 +116,7 @@
116
116
  "type": "string"
117
117
  },
118
118
  "MenuType": {
119
+ "description": "ObjectQL Copyright (c) 2026-present ObjectStack Inc.\n\nThis source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.",
119
120
  "enum": [
120
121
  "sidebar",
121
122
  "topnav",
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 ObjectQL Contributors (https://github.com/objectql)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/dist/plugin.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { IObjectQL } from './app';
2
- export interface ObjectQLPlugin {
3
- name: string;
4
- setup(app: IObjectQL): void | Promise<void>;
5
- }
package/dist/plugin.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=plugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":""}