@objectql/types 3.0.0 → 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.
- package/dist/action.d.ts +28 -0
- package/dist/action.js +7 -0
- package/dist/action.js.map +1 -1
- package/dist/api.d.ts +13 -6
- package/dist/api.js +4 -3
- package/dist/api.js.map +1 -1
- package/dist/app.d.ts +12 -0
- package/dist/app.js +7 -0
- package/dist/app.js.map +1 -1
- package/dist/application.d.ts +7 -0
- package/dist/application.js +7 -0
- package/dist/application.js.map +1 -1
- package/dist/config.d.ts +11 -3
- package/dist/config.js +7 -0
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +7 -0
- package/dist/context.js +7 -0
- package/dist/context.js.map +1 -1
- package/dist/driver.d.ts +61 -0
- package/dist/driver.js +7 -0
- package/dist/driver.js.map +1 -1
- package/dist/field.d.ts +129 -53
- package/dist/field.js +7 -0
- package/dist/field.js.map +1 -1
- package/dist/form.d.ts +7 -0
- package/dist/form.js +4 -6
- package/dist/form.js.map +1 -1
- package/dist/formula.d.ts +7 -0
- package/dist/formula.js +9 -2
- package/dist/formula.js.map +1 -1
- package/dist/hook.d.ts +7 -0
- package/dist/hook.js +7 -0
- package/dist/hook.js.map +1 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/loader.d.ts +7 -0
- package/dist/loader.js +7 -0
- package/dist/loader.js.map +1 -1
- package/dist/menu.d.ts +7 -0
- package/dist/menu.js +7 -0
- package/dist/menu.js.map +1 -1
- package/dist/migration.d.ts +7 -0
- package/dist/migration.js +7 -0
- package/dist/migration.js.map +1 -1
- package/dist/object.d.ts +89 -4
- package/dist/object.js +7 -0
- package/dist/object.js.map +1 -1
- package/dist/page.d.ts +7 -0
- package/dist/page.js +4 -6
- package/dist/page.js.map +1 -1
- package/dist/permission.d.ts +7 -0
- package/dist/permission.js +4 -6
- package/dist/permission.js.map +1 -1
- package/dist/query.d.ts +37 -3
- package/dist/query.js +7 -0
- package/dist/query.js.map +1 -1
- package/dist/registry.d.ts +19 -10
- package/dist/registry.js +15 -50
- package/dist/registry.js.map +1 -1
- package/dist/report.d.ts +7 -0
- package/dist/report.js +4 -5
- package/dist/report.js.map +1 -1
- package/dist/repository.d.ts +7 -0
- package/dist/repository.js +7 -0
- package/dist/repository.js.map +1 -1
- package/dist/validation.d.ts +7 -0
- package/dist/validation.js +5 -2
- package/dist/validation.js.map +1 -1
- package/dist/view.d.ts +7 -0
- package/dist/view.js +4 -6
- package/dist/view.js.map +1 -1
- package/dist/workflow.d.ts +7 -0
- package/dist/workflow.js +4 -5
- package/dist/workflow.js.map +1 -1
- package/package.json +12 -6
- package/schemas/app.schema.json +1 -0
- package/schemas/menu.schema.json +1 -0
- package/LICENSE +0 -21
- package/dist/plugin.d.ts +0 -5
- package/dist/plugin.js +0 -3
- 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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
package/dist/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":";;;
|
|
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
package/dist/report.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* ObjectQL
|
|
4
|
+
* Copyright (c) 2026-present ObjectStack Inc.
|
|
4
5
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
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
|
package/dist/report.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../src/report.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../src/report.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}
|
package/dist/repository.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
|
import { UnifiedQuery } from "./query";
|
|
2
9
|
export interface IObjectRepository {
|
|
3
10
|
find(query?: UnifiedQuery): Promise<any[]>;
|
package/dist/repository.js
CHANGED
|
@@ -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
|
package/dist/repository.js.map
CHANGED
|
@@ -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"}
|
package/dist/validation.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
|
* Validation system types based on the validation metadata specification.
|
|
3
10
|
* These types define the structure for metadata-driven validation rules.
|
package/dist/validation.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
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;
|
package/dist/validation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":";AAAA;;;
|
|
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
package/dist/view.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* ObjectQL
|
|
4
|
+
* Copyright (c) 2026-present ObjectStack Inc.
|
|
4
5
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
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
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../src/view.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}
|
package/dist/workflow.d.ts
CHANGED
package/dist/workflow.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* ObjectQL
|
|
4
|
+
* Copyright (c) 2026-present ObjectStack Inc.
|
|
4
5
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
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
|
package/dist/workflow.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":";AAAA
|
|
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
|
+
"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
|
|
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
|
+
}
|
package/schemas/app.schema.json
CHANGED
|
@@ -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",
|
package/schemas/menu.schema.json
CHANGED
|
@@ -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
package/dist/plugin.js
DELETED
package/dist/plugin.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":""}
|