@atscript/moost-wf 0.1.159 → 0.1.161
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/store.mjs +5 -3
- package/package.json +20 -20
package/dist/store.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAnnotatedType, throwFeatureDisabled } from "@atscript/typescript/utils";
|
|
1
|
+
import { $ak, $nr, defineAnnotatedType, throwFeatureDisabled } from "@atscript/typescript/utils";
|
|
2
2
|
//#region src/store/wf-store.ts
|
|
3
3
|
const defaultClock = { now: () => Date.now() };
|
|
4
4
|
/**
|
|
@@ -280,7 +280,9 @@ var AsWfStateRecord = class {
|
|
|
280
280
|
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
$ak("db.index.fulltext", "db.index.plain", "db.index.unique", "db.view.joins", "expect.pattern", "ui.dict.attr", "ui.form.classes", "ui.form.styles", "ui.literalLabel", "ui.table.classes", "ui.table.selectWith", "ui.table.styles", "wf.context.pass");
|
|
284
|
+
$nr("db.agg.avg", "db.agg.count", "db.agg.countDistinct", "db.agg.max", "db.agg.min", "db.agg.sum", "db.alias", "db.amount.currency.ref", "db.column", "db.column.collate", "db.column.derived", "db.column.dimension", "db.column.filterable", "db.column.measure", "db.column.precision", "db.column.renamed", "db.column.searchable", "db.column.sortable", "db.column.version", "db.column.version.exempt", "db.compute", "db.default", "db.default.increment", "db.default.now", "db.default.uuid", "db.depth.limit", "db.encrypted", "db.http.path", "db.ignore", "db.index.fulltext", "db.index.geo", "db.index.plain", "db.index.unique", "db.json", "db.onUpdate.inc", "db.onUpdate.now", "db.patch.strategy", "db.rel.FK", "db.rel.filter", "db.rel.filterable", "db.rel.from", "db.rel.onDelete", "db.rel.onUpdate", "db.rel.to", "db.rel.via", "db.schema", "db.search.filter", "db.search.vector", "db.search.vector.threshold", "db.sort.nulls", "db.space", "db.sync.method", "db.table", "db.table.filterable", "db.table.preferredId.uniqueIndex", "db.table.renamed", "db.table.sortable", "db.unit.ref", "db.view", "db.view.filter", "db.view.for", "db.view.having", "db.view.joins", "db.view.materialized", "db.view.renamed", "db.writeOnly", "meta.default", "meta.id", "meta.readonly", "meta.required", "ui.dict.attr", "ui.dict.descr", "ui.dict.filterable", "ui.dict.label", "ui.dict.searchable", "ui.dict.sortable", "ui.form.disabled", "ui.form.hidden", "ui.form.order", "ui.form.prefix.ref", "ui.form.suffix.ref", "ui.nav.group", "ui.nav.hidden", "ui.nav.order", "ui.table.exclude", "ui.table.order", "ui.table.selectWith", "wf.store.fromContext");
|
|
285
|
+
defineAnnotatedType("union", JsonValue).item(defineAnnotatedType().designType("string").tags("string").$type).item(defineAnnotatedType().designType("number").tags("number").$type).item(defineAnnotatedType().designType("boolean").tags("boolean").$type).item(defineAnnotatedType().designType("null").tags("null").$type).item(defineAnnotatedType("array").of(defineAnnotatedType().ref(JsonValue).$type).$type).item(defineAnnotatedType("object").propPattern(/^.+$/, defineAnnotatedType().ref(JsonValue).$type).$type);
|
|
286
|
+
defineAnnotatedType("object", AsWfStateRecord).prop("handle", defineAnnotatedType().designType("string").tags("string").annotate("ui.table.exclude", true).annotate("db.index.unique", "handle_idx", true).annotate("expect.maxLength", { length: 256 }).$type).prop("schemaId", defineAnnotatedType().designType("string").tags("string").annotate("db.index.plain", { name: "schema_idx" }, true).annotate("expect.maxLength", { length: 256 }).$type).prop("state", defineAnnotatedType("object").prop("context", defineAnnotatedType().ref(JsonValue).$type).prop("indexes", defineAnnotatedType("array").of(defineAnnotatedType().designType("number").tags("number").$type).$type).prop("meta", defineAnnotatedType("object").propPattern(/^.+$/, defineAnnotatedType().ref(JsonValue).$type).optional().$type).annotate("ui.table.exclude", true).annotate("db.json", true).$type).prop("expiresAt", defineAnnotatedType().designType("number").tags("timestamp", "number").annotate("db.index.plain", { name: "expires_idx" }, true).annotate("expect.int", true).optional().$type).prop("updatedAt", defineAnnotatedType().designType("number").tags("timestamp", "number").annotate("db.default.now", true).annotate("db.index.plain", { name: "updated_idx" }, true).annotate("expect.int", true).$type).prop("createdAt", defineAnnotatedType().designType("number").tags("timestamp", "number").annotate("expect.int", true).$type).prop("createdBy", defineAnnotatedType().designType("string").tags("string").annotate("ui.table.exclude", true).annotate("expect.maxLength", { length: 128 }).optional().$type).prop("lastUpdatedBy", defineAnnotatedType().designType("string").tags("string").annotate("ui.table.exclude", true).annotate("expect.maxLength", { length: 128 }).optional().$type);
|
|
285
287
|
//#endregion
|
|
286
288
|
export { AsWfStateRecord, AsWfStore };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/moost-wf",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.161",
|
|
4
4
|
"description": "Workflow form integration for moost — decorators, interceptors, and serialization driven by atscript type metadata",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -56,30 +56,30 @@
|
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@atscript/core": "^0.1
|
|
60
|
-
"@atscript/db": "^0.1.
|
|
61
|
-
"@atscript/db-sql-tools": "^0.1.
|
|
62
|
-
"@atscript/db-sqlite": "^0.1.
|
|
63
|
-
"@atscript/typescript": "^0.1
|
|
64
|
-
"@moostjs/event-wf": "^0.
|
|
59
|
+
"@atscript/core": "^0.2.1",
|
|
60
|
+
"@atscript/db": "^0.1.165",
|
|
61
|
+
"@atscript/db-sql-tools": "^0.1.165",
|
|
62
|
+
"@atscript/db-sqlite": "^0.1.165",
|
|
63
|
+
"@atscript/typescript": "^0.2.1",
|
|
64
|
+
"@moostjs/event-wf": "^0.7.0",
|
|
65
65
|
"@prostojs/wf": "^0.2.1",
|
|
66
66
|
"@uniqu/core": "^0.1.15",
|
|
67
|
-
"@wooksjs/event-core": "^0.
|
|
68
|
-
"@wooksjs/event-http": "^0.
|
|
69
|
-
"@wooksjs/event-wf": "^0.
|
|
70
|
-
"@wooksjs/http-body": "^0.
|
|
71
|
-
"moost": "^0.
|
|
72
|
-
"unplugin-atscript": "^0.1
|
|
67
|
+
"@wooksjs/event-core": "^0.8.0",
|
|
68
|
+
"@wooksjs/event-http": "^0.8.0",
|
|
69
|
+
"@wooksjs/event-wf": "^0.8.0",
|
|
70
|
+
"@wooksjs/http-body": "^0.8.0",
|
|
71
|
+
"moost": "^0.7.0",
|
|
72
|
+
"unplugin-atscript": "^0.2.1",
|
|
73
73
|
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.14",
|
|
74
|
-
"@atscript/ui": "^0.1.
|
|
74
|
+
"@atscript/ui": "^0.1.161"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@atscript/core": "^0.1
|
|
78
|
-
"@atscript/typescript": "^0.1
|
|
79
|
-
"@moostjs/event-wf": "^0.
|
|
80
|
-
"@wooksjs/event-core": "^0.
|
|
81
|
-
"@wooksjs/event-wf": "^0.
|
|
82
|
-
"moost": "^0.
|
|
77
|
+
"@atscript/core": "^0.2.1",
|
|
78
|
+
"@atscript/typescript": "^0.2.1",
|
|
79
|
+
"@moostjs/event-wf": "^0.7.0",
|
|
80
|
+
"@wooksjs/event-core": "^0.8.0",
|
|
81
|
+
"@wooksjs/event-wf": "^0.8.0",
|
|
82
|
+
"moost": "^0.7.0"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"build": "vp pack",
|