@substrat-run/engine-workorder 0.3.7 → 0.3.9
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/index.d.ts +16 -16
- package/dist/index.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -2,19 +2,19 @@ import { z } from 'zod';
|
|
|
2
2
|
import { type EntityRef, type Money } from '@substrat-run/contracts';
|
|
3
3
|
import { type ModuleRegistration, type OperationContext } from '@substrat-run/kernel';
|
|
4
4
|
export declare const PERM: {
|
|
5
|
-
create: string & z
|
|
6
|
-
read: string & z
|
|
7
|
-
assign: string & z
|
|
8
|
-
report: string & z
|
|
9
|
-
complete: string & z
|
|
10
|
-
close: string & z
|
|
5
|
+
create: string & z.$brand<"PermissionKey">;
|
|
6
|
+
read: string & z.$brand<"PermissionKey">;
|
|
7
|
+
assign: string & z.$brand<"PermissionKey">;
|
|
8
|
+
report: string & z.$brand<"PermissionKey">;
|
|
9
|
+
complete: string & z.$brand<"PermissionKey">;
|
|
10
|
+
close: string & z.$brand<"PermissionKey">;
|
|
11
11
|
};
|
|
12
12
|
export declare const workorderManifest: {
|
|
13
|
-
id: string & z
|
|
13
|
+
id: string & z.$brand<"ModuleId">;
|
|
14
14
|
version: string;
|
|
15
15
|
kernelContract: string;
|
|
16
16
|
permissions: {
|
|
17
|
-
key: string & z
|
|
17
|
+
key: string & z.$brand<"PermissionKey">;
|
|
18
18
|
description: string;
|
|
19
19
|
}[];
|
|
20
20
|
events: {
|
|
@@ -33,9 +33,8 @@ export declare const workorderManifest: {
|
|
|
33
33
|
};
|
|
34
34
|
attachmentTargets: {
|
|
35
35
|
entityType: string;
|
|
36
|
-
readPermission: string & z
|
|
36
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
37
37
|
}[];
|
|
38
|
-
entitlementKey: string;
|
|
39
38
|
entityRelations?: {
|
|
40
39
|
entityType: string;
|
|
41
40
|
parentType: string;
|
|
@@ -46,6 +45,7 @@ export declare const workorderManifest: {
|
|
|
46
45
|
config: Record<string, unknown>;
|
|
47
46
|
}[] | undefined;
|
|
48
47
|
withdraws?: string[] | undefined;
|
|
48
|
+
entitlementKey: string;
|
|
49
49
|
api?: string | undefined;
|
|
50
50
|
searchables?: {
|
|
51
51
|
entityType: string;
|
|
@@ -55,13 +55,13 @@ export declare const workorderManifest: {
|
|
|
55
55
|
routes?: {
|
|
56
56
|
path: string;
|
|
57
57
|
screen: string;
|
|
58
|
-
permission: string & z
|
|
58
|
+
permission: string & z.$brand<"PermissionKey">;
|
|
59
59
|
}[] | undefined;
|
|
60
60
|
nav?: {
|
|
61
61
|
label: string;
|
|
62
|
-
to: string;
|
|
63
|
-
permission: string & z.core.$brand<"PermissionKey">;
|
|
64
62
|
icon?: string | undefined;
|
|
63
|
+
to: string;
|
|
64
|
+
permission: string & z.$brand<"PermissionKey">;
|
|
65
65
|
}[] | undefined;
|
|
66
66
|
entityViews?: {
|
|
67
67
|
entityType: string;
|
|
@@ -70,12 +70,12 @@ export declare const workorderManifest: {
|
|
|
70
70
|
widgets?: {
|
|
71
71
|
slot: string;
|
|
72
72
|
component: string;
|
|
73
|
-
permission: string & z
|
|
73
|
+
permission: string & z.$brand<"PermissionKey">;
|
|
74
74
|
}[] | undefined;
|
|
75
75
|
settingsPanels?: {
|
|
76
76
|
label: string;
|
|
77
77
|
component: string;
|
|
78
|
-
permission: string & z
|
|
78
|
+
permission: string & z.$brand<"PermissionKey">;
|
|
79
79
|
}[] | undefined;
|
|
80
80
|
} | undefined;
|
|
81
81
|
};
|
|
@@ -97,8 +97,8 @@ export declare const billableLine: z.ZodObject<{
|
|
|
97
97
|
currency: z.core.$ZodBranded<z.ZodString, "CurrencyCode", "out">;
|
|
98
98
|
}, z.core.$strip>;
|
|
99
99
|
sourceType: z.ZodEnum<{
|
|
100
|
-
time: "time";
|
|
101
100
|
material: "material";
|
|
101
|
+
time: "time";
|
|
102
102
|
}>;
|
|
103
103
|
sourceId: z.ZodString;
|
|
104
104
|
}, z.core.$strip>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAQL,KAAK,SAAS,EACd,KAAK,KAAK,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAC;AAQ9B,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAQL,KAAK,SAAS,EACd,KAAK,KAAK,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAC;AAQ9B,eAAO,MAAM,IAAI;IACf,MAAM;IACN,IAAI;IACJ,MAAM;IACN,MAAM;IACN,QAAQ;IACR,KAAK;CACN,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC5B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;GAuC/B,CAAC;AAQF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;iBASvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;iBAM/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,UAAU,QAAQ;IAChB,EAAE,E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M,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAyCD,wBAAgB,eAAe,CAAC,GAAG,EAAE,gBAAgB,EAAE,QAAQ,EAAE,oBAAoB,GAAG,SAAS,CA0ChG;AAED,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,gBAAgB,EACrB,OAAO,EAAE,MAAM,GACd;IAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAAC,QAAQ,EAAE,YAAY,EAAE,CAAA;CAAE,CAWjD;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,CAQ9E;AAED,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,gBAAgB,EACrB,KAAK,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,YAAY,EAAE,CAAA;CAAE,GACnD;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CA4BpC;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAY3F;AA4HD,eAAO,MAAM,eAAe,EAAE,kBAa7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substrat-run/engine-workorder",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "Substrat engine: work orders + time + material — one engine, one state machine, append-only reporting",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"zod": "^4.4.3",
|
|
29
|
-
"@substrat-run/contracts": "^0.
|
|
30
|
-
"@substrat-run/kernel": "^0.
|
|
29
|
+
"@substrat-run/contracts": "^0.12.0",
|
|
30
|
+
"@substrat-run/kernel": "^0.12.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"typescript": "^
|
|
33
|
+
"typescript": "^7.0.0",
|
|
34
34
|
"vitest": "^3.0.0",
|
|
35
|
-
"@substrat-run/engine-test-kit": "^0.0.
|
|
35
|
+
"@substrat-run/engine-test-kit": "^0.0.10"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsc -p tsconfig.json",
|