@naisys/erp-shared 3.0.0-beta.4 → 3.0.0-beta.7
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/package.json +5 -3
- package/dist/admin-types.d.ts +0 -80
- package/dist/api-types.d.ts +0 -6
- package/dist/audit-types.d.ts +0 -32
- package/dist/auth-types.d.ts +0 -21
- package/dist/error-types.d.ts +0 -8
- package/dist/field-ref-types.d.ts +0 -178
- package/dist/field-types.d.ts +0 -190
- package/dist/hateoas-types.d.ts +0 -2
- package/dist/index.d.ts +0 -26
- package/dist/inventory-types.d.ts +0 -53
- package/dist/item-instance-types.d.ts +0 -188
- package/dist/item-types.d.ts +0 -262
- package/dist/labor-ticket-types.d.ts +0 -94
- package/dist/mutation-types.d.ts +0 -381
- package/dist/operation-dependency-types.d.ts +0 -60
- package/dist/operation-run-comment-types.d.ts +0 -92
- package/dist/operation-run-types.d.ts +0 -274
- package/dist/operation-types.d.ts +0 -145
- package/dist/order-revision-types.d.ts +0 -162
- package/dist/order-run-types.d.ts +0 -361
- package/dist/order-types.d.ts +0 -143
- package/dist/revision-diff-types.d.ts +0 -196
- package/dist/step-run-types.d.ts +0 -431
- package/dist/step-types.d.ts +0 -276
- package/dist/user-types.d.ts +0 -109
- package/dist/work-center-types.d.ts +0 -151
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naisys/erp-shared",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.7",
|
|
4
4
|
"description": "[internal] NAISYS ERP shared types and validation schemas",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
8
|
-
"!dist/**/*.map"
|
|
8
|
+
"!dist/**/*.map",
|
|
9
|
+
"!dist/**/*.d.ts",
|
|
10
|
+
"!dist/**/*.d.ts.map"
|
|
9
11
|
],
|
|
10
12
|
"scripts": {
|
|
11
13
|
"clean": "rimraf dist",
|
|
@@ -18,7 +20,7 @@
|
|
|
18
20
|
"typescript": "^5.9.3"
|
|
19
21
|
},
|
|
20
22
|
"dependencies": {
|
|
21
|
-
"@naisys/common": "3.0.0-beta.
|
|
23
|
+
"@naisys/common": "3.0.0-beta.7",
|
|
22
24
|
"zod": "^4.3.6"
|
|
23
25
|
},
|
|
24
26
|
"exports": {
|
package/dist/admin-types.d.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { z } from "zod/v4";
|
|
2
|
-
export declare const AdminInfoResponseSchema: z.ZodObject<{
|
|
3
|
-
erpDbPath: z.ZodString;
|
|
4
|
-
erpDbSize: z.ZodOptional<z.ZodNumber>;
|
|
5
|
-
_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
-
rel: z.ZodString;
|
|
7
|
-
href: z.ZodString;
|
|
8
|
-
method: z.ZodString;
|
|
9
|
-
title: z.ZodOptional<z.ZodString>;
|
|
10
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
11
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
-
alternateEncoding: z.ZodOptional<z.ZodObject<{
|
|
13
|
-
contentType: z.ZodString;
|
|
14
|
-
description: z.ZodOptional<z.ZodString>;
|
|
15
|
-
fileFields: z.ZodArray<z.ZodString>;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
-
disabledReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
19
|
-
}, z.core.$strip>>>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
export declare const AdminAttachmentItemSchema: z.ZodObject<{
|
|
22
|
-
id: z.ZodString;
|
|
23
|
-
filename: z.ZodString;
|
|
24
|
-
fileSize: z.ZodNumber;
|
|
25
|
-
fileHash: z.ZodString;
|
|
26
|
-
uploadedBy: z.ZodString;
|
|
27
|
-
createdAt: z.ZodString;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
export type AdminAttachmentItem = z.infer<typeof AdminAttachmentItemSchema>;
|
|
30
|
-
export declare const AdminAttachmentListRequestSchema: z.ZodObject<{
|
|
31
|
-
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
32
|
-
pageSize: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
33
|
-
}, z.core.$strip>;
|
|
34
|
-
export type AdminAttachmentListRequest = z.infer<typeof AdminAttachmentListRequestSchema>;
|
|
35
|
-
export declare const AdminAttachmentListResponseSchema: z.ZodObject<{
|
|
36
|
-
attachments: z.ZodArray<z.ZodObject<{
|
|
37
|
-
id: z.ZodString;
|
|
38
|
-
filename: z.ZodString;
|
|
39
|
-
fileSize: z.ZodNumber;
|
|
40
|
-
fileHash: z.ZodString;
|
|
41
|
-
uploadedBy: z.ZodString;
|
|
42
|
-
createdAt: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>;
|
|
44
|
-
total: z.ZodNumber;
|
|
45
|
-
page: z.ZodNumber;
|
|
46
|
-
pageSize: z.ZodNumber;
|
|
47
|
-
_links: z.ZodArray<z.ZodObject<{
|
|
48
|
-
rel: z.ZodString;
|
|
49
|
-
href: z.ZodString;
|
|
50
|
-
method: z.ZodOptional<z.ZodString>;
|
|
51
|
-
title: z.ZodOptional<z.ZodString>;
|
|
52
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
53
|
-
}, z.core.$strip>>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
export type AdminAttachmentListResponse = z.infer<typeof AdminAttachmentListResponseSchema>;
|
|
56
|
-
export type AdminInfoResponse = z.infer<typeof AdminInfoResponseSchema>;
|
|
57
|
-
export declare const PinoLogEntrySchema: z.ZodObject<{
|
|
58
|
-
level: z.ZodNumber;
|
|
59
|
-
time: z.ZodNumber;
|
|
60
|
-
msg: z.ZodString;
|
|
61
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
export type PinoLogEntry = z.infer<typeof PinoLogEntrySchema>;
|
|
64
|
-
export declare const ServerLogRequestSchema: z.ZodObject<{
|
|
65
|
-
lines: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
66
|
-
minLevel: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
|
-
export type ServerLogRequest = z.infer<typeof ServerLogRequestSchema>;
|
|
69
|
-
export declare const ServerLogResponseSchema: z.ZodObject<{
|
|
70
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
71
|
-
level: z.ZodNumber;
|
|
72
|
-
time: z.ZodNumber;
|
|
73
|
-
msg: z.ZodString;
|
|
74
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
75
|
-
}, z.core.$strip>>;
|
|
76
|
-
fileName: z.ZodString;
|
|
77
|
-
fileSize: z.ZodOptional<z.ZodNumber>;
|
|
78
|
-
}, z.core.$strip>;
|
|
79
|
-
export type ServerLogResponse = z.infer<typeof ServerLogResponseSchema>;
|
|
80
|
-
//# sourceMappingURL=admin-types.d.ts.map
|
package/dist/api-types.d.ts
DELETED
package/dist/audit-types.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { z } from "zod/v4";
|
|
2
|
-
export declare const AuditEntrySchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodNumber;
|
|
4
|
-
entityType: z.ZodString;
|
|
5
|
-
entityId: z.ZodNumber;
|
|
6
|
-
action: z.ZodString;
|
|
7
|
-
field: z.ZodString;
|
|
8
|
-
oldValue: z.ZodNullable<z.ZodString>;
|
|
9
|
-
newValue: z.ZodNullable<z.ZodString>;
|
|
10
|
-
userId: z.ZodNumber;
|
|
11
|
-
createdAt: z.ZodISODateTime;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export type AuditEntry = z.infer<typeof AuditEntrySchema>;
|
|
14
|
-
export declare const AuditListResponseSchema: z.ZodObject<{
|
|
15
|
-
items: z.ZodArray<z.ZodObject<{
|
|
16
|
-
id: z.ZodNumber;
|
|
17
|
-
entityType: z.ZodString;
|
|
18
|
-
entityId: z.ZodNumber;
|
|
19
|
-
action: z.ZodString;
|
|
20
|
-
field: z.ZodString;
|
|
21
|
-
oldValue: z.ZodNullable<z.ZodString>;
|
|
22
|
-
newValue: z.ZodNullable<z.ZodString>;
|
|
23
|
-
userId: z.ZodNumber;
|
|
24
|
-
createdAt: z.ZodISODateTime;
|
|
25
|
-
}, z.core.$strip>>;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
export type AuditListResponse = z.infer<typeof AuditListResponseSchema>;
|
|
28
|
-
export declare const AuditQuerySchema: z.ZodObject<{
|
|
29
|
-
entityType: z.ZodString;
|
|
30
|
-
entityId: z.ZodCoercedNumber<unknown>;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
//# sourceMappingURL=audit-types.d.ts.map
|
package/dist/auth-types.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { z } from "zod/v4";
|
|
2
|
-
export declare const LoginRequestSchema: z.ZodObject<{
|
|
3
|
-
username: z.ZodString;
|
|
4
|
-
password: z.ZodString;
|
|
5
|
-
}, z.core.$strict>;
|
|
6
|
-
export type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
|
7
|
-
export declare const AuthUserSchema: z.ZodObject<{
|
|
8
|
-
id: z.ZodNumber;
|
|
9
|
-
username: z.ZodString;
|
|
10
|
-
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
export type AuthUser = z.infer<typeof AuthUserSchema>;
|
|
13
|
-
export declare const LoginResponseSchema: z.ZodObject<{
|
|
14
|
-
user: z.ZodObject<{
|
|
15
|
-
id: z.ZodNumber;
|
|
16
|
-
username: z.ZodString;
|
|
17
|
-
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export type LoginResponse = z.infer<typeof LoginResponseSchema>;
|
|
21
|
-
//# sourceMappingURL=auth-types.d.ts.map
|
package/dist/error-types.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from "zod/v4";
|
|
2
|
-
export declare const ErrorResponseSchema: z.ZodObject<{
|
|
3
|
-
statusCode: z.ZodNumber;
|
|
4
|
-
error: z.ZodString;
|
|
5
|
-
message: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
|
|
8
|
-
//# sourceMappingURL=error-types.d.ts.map
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { z } from "zod/v4";
|
|
2
|
-
export declare const FieldRefFieldSchema: z.ZodObject<{
|
|
3
|
-
seqNo: z.ZodNumber;
|
|
4
|
-
label: z.ZodString;
|
|
5
|
-
type: z.ZodEnum<{
|
|
6
|
-
string: "string";
|
|
7
|
-
number: "number";
|
|
8
|
-
date: "date";
|
|
9
|
-
datetime: "datetime";
|
|
10
|
-
yesNo: "yesNo";
|
|
11
|
-
checkbox: "checkbox";
|
|
12
|
-
attachment: "attachment";
|
|
13
|
-
}>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export type FieldRefField = z.infer<typeof FieldRefFieldSchema>;
|
|
16
|
-
export declare const FieldRefSchema: z.ZodObject<{
|
|
17
|
-
id: z.ZodNumber;
|
|
18
|
-
seqNo: z.ZodNumber;
|
|
19
|
-
title: z.ZodString;
|
|
20
|
-
sourceOpSeqNo: z.ZodNumber;
|
|
21
|
-
sourceOpTitle: z.ZodString;
|
|
22
|
-
sourceStepSeqNo: z.ZodNumber;
|
|
23
|
-
sourceStepTitle: z.ZodString;
|
|
24
|
-
fields: z.ZodArray<z.ZodObject<{
|
|
25
|
-
seqNo: z.ZodNumber;
|
|
26
|
-
label: z.ZodString;
|
|
27
|
-
type: z.ZodEnum<{
|
|
28
|
-
string: "string";
|
|
29
|
-
number: "number";
|
|
30
|
-
date: "date";
|
|
31
|
-
datetime: "datetime";
|
|
32
|
-
yesNo: "yesNo";
|
|
33
|
-
checkbox: "checkbox";
|
|
34
|
-
attachment: "attachment";
|
|
35
|
-
}>;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
createdAt: z.ZodISODateTime;
|
|
38
|
-
createdBy: z.ZodString;
|
|
39
|
-
_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
|
-
rel: z.ZodString;
|
|
41
|
-
href: z.ZodString;
|
|
42
|
-
method: z.ZodOptional<z.ZodString>;
|
|
43
|
-
title: z.ZodOptional<z.ZodString>;
|
|
44
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
45
|
-
}, z.core.$strip>>>;
|
|
46
|
-
_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
|
-
rel: z.ZodString;
|
|
48
|
-
href: z.ZodString;
|
|
49
|
-
method: z.ZodString;
|
|
50
|
-
title: z.ZodOptional<z.ZodString>;
|
|
51
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
52
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
53
|
-
alternateEncoding: z.ZodOptional<z.ZodObject<{
|
|
54
|
-
contentType: z.ZodString;
|
|
55
|
-
description: z.ZodOptional<z.ZodString>;
|
|
56
|
-
fileFields: z.ZodArray<z.ZodString>;
|
|
57
|
-
}, z.core.$strip>>;
|
|
58
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
-
disabledReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
60
|
-
}, z.core.$strip>>>;
|
|
61
|
-
}, z.core.$strip>;
|
|
62
|
-
export type FieldRef = z.infer<typeof FieldRefSchema>;
|
|
63
|
-
export declare const CreateFieldRefSchema: z.ZodObject<{
|
|
64
|
-
seqNo: z.ZodOptional<z.ZodNumber>;
|
|
65
|
-
title: z.ZodString;
|
|
66
|
-
sourceOpSeqNo: z.ZodNumber;
|
|
67
|
-
sourceStepSeqNo: z.ZodNumber;
|
|
68
|
-
}, z.core.$strict>;
|
|
69
|
-
export type CreateFieldRef = z.infer<typeof CreateFieldRefSchema>;
|
|
70
|
-
export declare const FieldRefListResponseSchema: z.ZodObject<{
|
|
71
|
-
items: z.ZodArray<z.ZodObject<{
|
|
72
|
-
id: z.ZodNumber;
|
|
73
|
-
seqNo: z.ZodNumber;
|
|
74
|
-
title: z.ZodString;
|
|
75
|
-
sourceOpSeqNo: z.ZodNumber;
|
|
76
|
-
sourceOpTitle: z.ZodString;
|
|
77
|
-
sourceStepSeqNo: z.ZodNumber;
|
|
78
|
-
sourceStepTitle: z.ZodString;
|
|
79
|
-
fields: z.ZodArray<z.ZodObject<{
|
|
80
|
-
seqNo: z.ZodNumber;
|
|
81
|
-
label: z.ZodString;
|
|
82
|
-
type: z.ZodEnum<{
|
|
83
|
-
string: "string";
|
|
84
|
-
number: "number";
|
|
85
|
-
date: "date";
|
|
86
|
-
datetime: "datetime";
|
|
87
|
-
yesNo: "yesNo";
|
|
88
|
-
checkbox: "checkbox";
|
|
89
|
-
attachment: "attachment";
|
|
90
|
-
}>;
|
|
91
|
-
}, z.core.$strip>>;
|
|
92
|
-
createdAt: z.ZodISODateTime;
|
|
93
|
-
createdBy: z.ZodString;
|
|
94
|
-
_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
95
|
-
rel: z.ZodString;
|
|
96
|
-
href: z.ZodString;
|
|
97
|
-
method: z.ZodOptional<z.ZodString>;
|
|
98
|
-
title: z.ZodOptional<z.ZodString>;
|
|
99
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
100
|
-
}, z.core.$strip>>>;
|
|
101
|
-
_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
-
rel: z.ZodString;
|
|
103
|
-
href: z.ZodString;
|
|
104
|
-
method: z.ZodString;
|
|
105
|
-
title: z.ZodOptional<z.ZodString>;
|
|
106
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
107
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
108
|
-
alternateEncoding: z.ZodOptional<z.ZodObject<{
|
|
109
|
-
contentType: z.ZodString;
|
|
110
|
-
description: z.ZodOptional<z.ZodString>;
|
|
111
|
-
fileFields: z.ZodArray<z.ZodString>;
|
|
112
|
-
}, z.core.$strip>>;
|
|
113
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
-
disabledReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
115
|
-
}, z.core.$strip>>>;
|
|
116
|
-
}, z.core.$strip>>;
|
|
117
|
-
total: z.ZodNumber;
|
|
118
|
-
nextSeqNo: z.ZodNumber;
|
|
119
|
-
_links: z.ZodArray<z.ZodObject<{
|
|
120
|
-
rel: z.ZodString;
|
|
121
|
-
href: z.ZodString;
|
|
122
|
-
method: z.ZodOptional<z.ZodString>;
|
|
123
|
-
title: z.ZodOptional<z.ZodString>;
|
|
124
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
125
|
-
}, z.core.$strip>>;
|
|
126
|
-
_linkTemplates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
127
|
-
rel: z.ZodString;
|
|
128
|
-
hrefTemplate: z.ZodString;
|
|
129
|
-
title: z.ZodOptional<z.ZodString>;
|
|
130
|
-
}, z.core.$strip>>>;
|
|
131
|
-
_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
132
|
-
rel: z.ZodString;
|
|
133
|
-
href: z.ZodString;
|
|
134
|
-
method: z.ZodString;
|
|
135
|
-
title: z.ZodOptional<z.ZodString>;
|
|
136
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
137
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
138
|
-
alternateEncoding: z.ZodOptional<z.ZodObject<{
|
|
139
|
-
contentType: z.ZodString;
|
|
140
|
-
description: z.ZodOptional<z.ZodString>;
|
|
141
|
-
fileFields: z.ZodArray<z.ZodString>;
|
|
142
|
-
}, z.core.$strip>>;
|
|
143
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
-
disabledReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
145
|
-
}, z.core.$strip>>>;
|
|
146
|
-
}, z.core.$strip>;
|
|
147
|
-
export type FieldRefListResponse = z.infer<typeof FieldRefListResponseSchema>;
|
|
148
|
-
export declare const FieldRefValueSummarySchema: z.ZodObject<{
|
|
149
|
-
seqNo: z.ZodNumber;
|
|
150
|
-
title: z.ZodString;
|
|
151
|
-
sourceOpSeqNo: z.ZodNumber;
|
|
152
|
-
sourceOpTitle: z.ZodString;
|
|
153
|
-
sourceStepSeqNo: z.ZodNumber;
|
|
154
|
-
sourceStepTitle: z.ZodString;
|
|
155
|
-
multiSet: z.ZodBoolean;
|
|
156
|
-
fieldValues: z.ZodArray<z.ZodObject<{
|
|
157
|
-
fieldId: z.ZodNumber;
|
|
158
|
-
fieldSeqNo: z.ZodNumber;
|
|
159
|
-
label: z.ZodString;
|
|
160
|
-
type: z.ZodString;
|
|
161
|
-
valueFormat: z.ZodString;
|
|
162
|
-
required: z.ZodBoolean;
|
|
163
|
-
setIndex: z.ZodNumber;
|
|
164
|
-
value: z.ZodUnion<readonly [z.ZodArray<z.ZodCoercedString<unknown>>, z.ZodCoercedString<unknown>]>;
|
|
165
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
166
|
-
id: z.ZodString;
|
|
167
|
-
filename: z.ZodString;
|
|
168
|
-
fileSize: z.ZodNumber;
|
|
169
|
-
downloadHref: z.ZodOptional<z.ZodString>;
|
|
170
|
-
}, z.core.$strip>>>;
|
|
171
|
-
validation: z.ZodObject<{
|
|
172
|
-
valid: z.ZodBoolean;
|
|
173
|
-
error: z.ZodOptional<z.ZodString>;
|
|
174
|
-
}, z.core.$strip>;
|
|
175
|
-
}, z.core.$strip>>;
|
|
176
|
-
}, z.core.$strip>;
|
|
177
|
-
export type FieldRefValueSummary = z.infer<typeof FieldRefValueSummarySchema>;
|
|
178
|
-
//# sourceMappingURL=field-ref-types.d.ts.map
|
package/dist/field-types.d.ts
DELETED
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { z } from "zod/v4";
|
|
2
|
-
export declare const FieldTypeEnum: z.ZodEnum<{
|
|
3
|
-
string: "string";
|
|
4
|
-
number: "number";
|
|
5
|
-
date: "date";
|
|
6
|
-
datetime: "datetime";
|
|
7
|
-
yesNo: "yesNo";
|
|
8
|
-
checkbox: "checkbox";
|
|
9
|
-
attachment: "attachment";
|
|
10
|
-
}>;
|
|
11
|
-
export type FieldType = z.infer<typeof FieldTypeEnum>;
|
|
12
|
-
export declare const FieldType: {
|
|
13
|
-
string: "string";
|
|
14
|
-
number: "number";
|
|
15
|
-
date: "date";
|
|
16
|
-
datetime: "datetime";
|
|
17
|
-
yesNo: "yesNo";
|
|
18
|
-
checkbox: "checkbox";
|
|
19
|
-
attachment: "attachment";
|
|
20
|
-
};
|
|
21
|
-
export declare const FieldSchema: z.ZodObject<{
|
|
22
|
-
id: z.ZodNumber;
|
|
23
|
-
fieldSetId: z.ZodNumber;
|
|
24
|
-
seqNo: z.ZodNumber;
|
|
25
|
-
label: z.ZodString;
|
|
26
|
-
type: z.ZodEnum<{
|
|
27
|
-
string: "string";
|
|
28
|
-
number: "number";
|
|
29
|
-
date: "date";
|
|
30
|
-
datetime: "datetime";
|
|
31
|
-
yesNo: "yesNo";
|
|
32
|
-
checkbox: "checkbox";
|
|
33
|
-
attachment: "attachment";
|
|
34
|
-
}>;
|
|
35
|
-
isArray: z.ZodBoolean;
|
|
36
|
-
required: z.ZodBoolean;
|
|
37
|
-
createdAt: z.ZodISODateTime;
|
|
38
|
-
createdBy: z.ZodString;
|
|
39
|
-
updatedAt: z.ZodISODateTime;
|
|
40
|
-
updatedBy: z.ZodString;
|
|
41
|
-
_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42
|
-
rel: z.ZodString;
|
|
43
|
-
href: z.ZodString;
|
|
44
|
-
method: z.ZodOptional<z.ZodString>;
|
|
45
|
-
title: z.ZodOptional<z.ZodString>;
|
|
46
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
47
|
-
}, z.core.$strip>>>;
|
|
48
|
-
_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
|
-
rel: z.ZodString;
|
|
50
|
-
href: z.ZodString;
|
|
51
|
-
method: z.ZodString;
|
|
52
|
-
title: z.ZodOptional<z.ZodString>;
|
|
53
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
54
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
55
|
-
alternateEncoding: z.ZodOptional<z.ZodObject<{
|
|
56
|
-
contentType: z.ZodString;
|
|
57
|
-
description: z.ZodOptional<z.ZodString>;
|
|
58
|
-
fileFields: z.ZodArray<z.ZodString>;
|
|
59
|
-
}, z.core.$strip>>;
|
|
60
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
-
disabledReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
62
|
-
}, z.core.$strip>>>;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
export type Field = z.infer<typeof FieldSchema>;
|
|
65
|
-
export declare const CreateFieldSchema: z.ZodObject<{
|
|
66
|
-
seqNo: z.ZodOptional<z.ZodNumber>;
|
|
67
|
-
label: z.ZodString;
|
|
68
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
69
|
-
string: "string";
|
|
70
|
-
number: "number";
|
|
71
|
-
date: "date";
|
|
72
|
-
datetime: "datetime";
|
|
73
|
-
yesNo: "yesNo";
|
|
74
|
-
checkbox: "checkbox";
|
|
75
|
-
attachment: "attachment";
|
|
76
|
-
}>>;
|
|
77
|
-
isArray: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
-
}, z.core.$strict>;
|
|
80
|
-
export type CreateField = z.infer<typeof CreateFieldSchema>;
|
|
81
|
-
export declare const BatchCreateFieldSchema: z.ZodObject<{
|
|
82
|
-
items: z.ZodArray<z.ZodObject<{
|
|
83
|
-
seqNo: z.ZodOptional<z.ZodNumber>;
|
|
84
|
-
label: z.ZodString;
|
|
85
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
86
|
-
string: "string";
|
|
87
|
-
number: "number";
|
|
88
|
-
date: "date";
|
|
89
|
-
datetime: "datetime";
|
|
90
|
-
yesNo: "yesNo";
|
|
91
|
-
checkbox: "checkbox";
|
|
92
|
-
attachment: "attachment";
|
|
93
|
-
}>>;
|
|
94
|
-
isArray: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
-
}, z.core.$strict>>;
|
|
97
|
-
}, z.core.$strip>;
|
|
98
|
-
export type BatchCreateField = z.infer<typeof BatchCreateFieldSchema>;
|
|
99
|
-
export declare const UpdateFieldSchema: z.ZodObject<{
|
|
100
|
-
seqNo: z.ZodOptional<z.ZodNumber>;
|
|
101
|
-
label: z.ZodOptional<z.ZodString>;
|
|
102
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
103
|
-
string: "string";
|
|
104
|
-
number: "number";
|
|
105
|
-
date: "date";
|
|
106
|
-
datetime: "datetime";
|
|
107
|
-
yesNo: "yesNo";
|
|
108
|
-
checkbox: "checkbox";
|
|
109
|
-
attachment: "attachment";
|
|
110
|
-
}>>;
|
|
111
|
-
isArray: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
-
}, z.core.$strict>;
|
|
114
|
-
export type UpdateField = z.infer<typeof UpdateFieldSchema>;
|
|
115
|
-
export declare const FieldListResponseSchema: z.ZodObject<{
|
|
116
|
-
items: z.ZodArray<z.ZodObject<{
|
|
117
|
-
id: z.ZodNumber;
|
|
118
|
-
fieldSetId: z.ZodNumber;
|
|
119
|
-
seqNo: z.ZodNumber;
|
|
120
|
-
label: z.ZodString;
|
|
121
|
-
type: z.ZodEnum<{
|
|
122
|
-
string: "string";
|
|
123
|
-
number: "number";
|
|
124
|
-
date: "date";
|
|
125
|
-
datetime: "datetime";
|
|
126
|
-
yesNo: "yesNo";
|
|
127
|
-
checkbox: "checkbox";
|
|
128
|
-
attachment: "attachment";
|
|
129
|
-
}>;
|
|
130
|
-
isArray: z.ZodBoolean;
|
|
131
|
-
required: z.ZodBoolean;
|
|
132
|
-
createdAt: z.ZodISODateTime;
|
|
133
|
-
createdBy: z.ZodString;
|
|
134
|
-
updatedAt: z.ZodISODateTime;
|
|
135
|
-
updatedBy: z.ZodString;
|
|
136
|
-
_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
137
|
-
rel: z.ZodString;
|
|
138
|
-
href: z.ZodString;
|
|
139
|
-
method: z.ZodOptional<z.ZodString>;
|
|
140
|
-
title: z.ZodOptional<z.ZodString>;
|
|
141
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
142
|
-
}, z.core.$strip>>>;
|
|
143
|
-
_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
144
|
-
rel: z.ZodString;
|
|
145
|
-
href: z.ZodString;
|
|
146
|
-
method: z.ZodString;
|
|
147
|
-
title: z.ZodOptional<z.ZodString>;
|
|
148
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
149
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
150
|
-
alternateEncoding: z.ZodOptional<z.ZodObject<{
|
|
151
|
-
contentType: z.ZodString;
|
|
152
|
-
description: z.ZodOptional<z.ZodString>;
|
|
153
|
-
fileFields: z.ZodArray<z.ZodString>;
|
|
154
|
-
}, z.core.$strip>>;
|
|
155
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
156
|
-
disabledReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
157
|
-
}, z.core.$strip>>>;
|
|
158
|
-
}, z.core.$strip>>;
|
|
159
|
-
total: z.ZodNumber;
|
|
160
|
-
nextSeqNo: z.ZodNumber;
|
|
161
|
-
_links: z.ZodArray<z.ZodObject<{
|
|
162
|
-
rel: z.ZodString;
|
|
163
|
-
href: z.ZodString;
|
|
164
|
-
method: z.ZodOptional<z.ZodString>;
|
|
165
|
-
title: z.ZodOptional<z.ZodString>;
|
|
166
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
167
|
-
}, z.core.$strip>>;
|
|
168
|
-
_linkTemplates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
169
|
-
rel: z.ZodString;
|
|
170
|
-
hrefTemplate: z.ZodString;
|
|
171
|
-
title: z.ZodOptional<z.ZodString>;
|
|
172
|
-
}, z.core.$strip>>>;
|
|
173
|
-
_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
174
|
-
rel: z.ZodString;
|
|
175
|
-
href: z.ZodString;
|
|
176
|
-
method: z.ZodString;
|
|
177
|
-
title: z.ZodOptional<z.ZodString>;
|
|
178
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
179
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
180
|
-
alternateEncoding: z.ZodOptional<z.ZodObject<{
|
|
181
|
-
contentType: z.ZodString;
|
|
182
|
-
description: z.ZodOptional<z.ZodString>;
|
|
183
|
-
fileFields: z.ZodArray<z.ZodString>;
|
|
184
|
-
}, z.core.$strip>>;
|
|
185
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
-
disabledReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
187
|
-
}, z.core.$strip>>>;
|
|
188
|
-
}, z.core.$strip>;
|
|
189
|
-
export type FieldListResponse = z.infer<typeof FieldListResponseSchema>;
|
|
190
|
-
//# sourceMappingURL=field-types.d.ts.map
|
package/dist/hateoas-types.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { type HateoasAction, HateoasActionSchema, type HateoasActionTemplate, HateoasActionTemplateSchema, type HateoasLink, type HateoasLinks, HateoasLinkSchema, HateoasLinksSchema, type HateoasLinkTemplate, HateoasLinkTemplateSchema, } from "@naisys/common";
|
|
2
|
-
//# sourceMappingURL=hateoas-types.d.ts.map
|
package/dist/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export * from "./admin-types.js";
|
|
2
|
-
export * from "./api-types.js";
|
|
3
|
-
export * from "./audit-types.js";
|
|
4
|
-
export * from "./auth-types.js";
|
|
5
|
-
export * from "./error-types.js";
|
|
6
|
-
export * from "./field-ref-types.js";
|
|
7
|
-
export * from "./field-types.js";
|
|
8
|
-
export * from "./hateoas-types.js";
|
|
9
|
-
export * from "./inventory-types.js";
|
|
10
|
-
export * from "./item-instance-types.js";
|
|
11
|
-
export * from "./item-types.js";
|
|
12
|
-
export * from "./labor-ticket-types.js";
|
|
13
|
-
export * from "./mutation-types.js";
|
|
14
|
-
export * from "./operation-dependency-types.js";
|
|
15
|
-
export * from "./operation-run-comment-types.js";
|
|
16
|
-
export * from "./operation-run-types.js";
|
|
17
|
-
export * from "./operation-types.js";
|
|
18
|
-
export * from "./order-revision-types.js";
|
|
19
|
-
export * from "./order-run-types.js";
|
|
20
|
-
export * from "./order-types.js";
|
|
21
|
-
export * from "./revision-diff-types.js";
|
|
22
|
-
export * from "./step-run-types.js";
|
|
23
|
-
export * from "./step-types.js";
|
|
24
|
-
export * from "./user-types.js";
|
|
25
|
-
export * from "./work-center-types.js";
|
|
26
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { z } from "zod/v4";
|
|
2
|
-
export declare const InventoryListQuerySchema: z.ZodObject<{
|
|
3
|
-
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
4
|
-
pageSize: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
5
|
-
search: z.ZodOptional<z.ZodString>;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export type InventoryListQuery = z.infer<typeof InventoryListQuerySchema>;
|
|
8
|
-
export declare const InventoryItemSchema: z.ZodObject<{
|
|
9
|
-
id: z.ZodNumber;
|
|
10
|
-
itemKey: z.ZodString;
|
|
11
|
-
key: z.ZodString;
|
|
12
|
-
quantity: z.ZodNullable<z.ZodNumber>;
|
|
13
|
-
orderKey: z.ZodNullable<z.ZodString>;
|
|
14
|
-
orderRunNo: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
createdAt: z.ZodISODateTime;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
export type InventoryItem = z.infer<typeof InventoryItemSchema>;
|
|
18
|
-
export declare const InventoryListResponseSchema: z.ZodObject<{
|
|
19
|
-
items: z.ZodArray<z.ZodObject<{
|
|
20
|
-
id: z.ZodNumber;
|
|
21
|
-
itemKey: z.ZodString;
|
|
22
|
-
key: z.ZodString;
|
|
23
|
-
quantity: z.ZodNullable<z.ZodNumber>;
|
|
24
|
-
orderKey: z.ZodNullable<z.ZodString>;
|
|
25
|
-
orderRunNo: z.ZodNullable<z.ZodNumber>;
|
|
26
|
-
createdAt: z.ZodISODateTime;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
total: z.ZodNumber;
|
|
29
|
-
page: z.ZodNumber;
|
|
30
|
-
pageSize: z.ZodNumber;
|
|
31
|
-
_links: z.ZodArray<z.ZodObject<{
|
|
32
|
-
rel: z.ZodString;
|
|
33
|
-
href: z.ZodString;
|
|
34
|
-
method: z.ZodOptional<z.ZodString>;
|
|
35
|
-
title: z.ZodOptional<z.ZodString>;
|
|
36
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
37
|
-
}, z.core.$strip>>;
|
|
38
|
-
_actionTemplates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
39
|
-
rel: z.ZodString;
|
|
40
|
-
hrefTemplate: z.ZodString;
|
|
41
|
-
method: z.ZodString;
|
|
42
|
-
title: z.ZodOptional<z.ZodString>;
|
|
43
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
44
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
45
|
-
alternateEncoding: z.ZodOptional<z.ZodObject<{
|
|
46
|
-
contentType: z.ZodString;
|
|
47
|
-
description: z.ZodOptional<z.ZodString>;
|
|
48
|
-
fileFields: z.ZodArray<z.ZodString>;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
}, z.core.$strip>>>;
|
|
51
|
-
}, z.core.$strip>;
|
|
52
|
-
export type InventoryListResponse = z.infer<typeof InventoryListResponseSchema>;
|
|
53
|
-
//# sourceMappingURL=inventory-types.d.ts.map
|