@atscript/moost-wf 0.1.103 → 0.1.104
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 +1 -1
- package/package.json +4 -4
- package/src/store/as-wf-state.as +4 -4
package/dist/store.mjs
CHANGED
|
@@ -256,6 +256,6 @@ var AsWfStateRecord = class {
|
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
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().refTo(JsonValue).$type).$type).item(defineAnnotatedType("object").propPattern(/^.+$/, defineAnnotatedType().refTo(JsonValue).$type).$type);
|
|
259
|
-
defineAnnotatedType("object", AsWfStateRecord).prop("handle", defineAnnotatedType().designType("string").tags("string").annotate("ui.table.
|
|
259
|
+
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().refTo(JsonValue).$type).prop("indexes", defineAnnotatedType("array").of(defineAnnotatedType().designType("number").tags("number").$type).$type).prop("meta", defineAnnotatedType("object").propPattern(/^.+$/, defineAnnotatedType().refTo(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);
|
|
260
260
|
//#endregion
|
|
261
261
|
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.104",
|
|
4
4
|
"description": "Workflow form integration for moost — decorators, interceptors, and serialization driven by atscript type metadata",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@atscript/core": "^0.1.77",
|
|
60
|
-
"@atscript/db": "^0.1.
|
|
61
|
-
"@atscript/db-sqlite": "^0.1.
|
|
60
|
+
"@atscript/db": "^0.1.108",
|
|
61
|
+
"@atscript/db-sqlite": "^0.1.108",
|
|
62
62
|
"@atscript/typescript": "^0.1.77",
|
|
63
63
|
"@moostjs/event-wf": "^0.6.27",
|
|
64
64
|
"@prostojs/wf": "^0.1.1",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"moost": "^0.6.27",
|
|
68
68
|
"unplugin-atscript": "^0.1.77",
|
|
69
69
|
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.14",
|
|
70
|
-
"@atscript/ui": "^0.1.
|
|
70
|
+
"@atscript/ui": "^0.1.104"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@atscript/core": "^0.1.77",
|
package/src/store/as-wf-state.as
CHANGED
|
@@ -7,7 +7,7 @@ export type JsonValue = string | number | boolean | null | JsonValue[] | { [/^.+
|
|
|
7
7
|
|
|
8
8
|
export interface AsWfStateRecord {
|
|
9
9
|
// Opaque correlation token — uninteresting in a list view.
|
|
10
|
-
@ui.table.
|
|
10
|
+
@ui.table.exclude
|
|
11
11
|
@db.index.unique 'handle_idx'
|
|
12
12
|
@expect.maxLength 256
|
|
13
13
|
handle: string
|
|
@@ -17,7 +17,7 @@ export interface AsWfStateRecord {
|
|
|
17
17
|
schemaId: string
|
|
18
18
|
|
|
19
19
|
// Large JSON snapshot — too noisy for a list view; fetch via getOne.
|
|
20
|
-
@ui.table.
|
|
20
|
+
@ui.table.exclude
|
|
21
21
|
@db.json
|
|
22
22
|
state: {
|
|
23
23
|
context: JsonValue
|
|
@@ -34,11 +34,11 @@ export interface AsWfStateRecord {
|
|
|
34
34
|
|
|
35
35
|
createdAt: number.timestamp
|
|
36
36
|
|
|
37
|
-
@ui.table.
|
|
37
|
+
@ui.table.exclude
|
|
38
38
|
@expect.maxLength 128
|
|
39
39
|
createdBy?: string
|
|
40
40
|
|
|
41
|
-
@ui.table.
|
|
41
|
+
@ui.table.exclude
|
|
42
42
|
@expect.maxLength 128
|
|
43
43
|
lastUpdatedBy?: string
|
|
44
44
|
}
|