@naisys/erp 3.0.0-beta.23 → 3.0.0-beta.25
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/client-dist/assets/{index-DycEn-R_.js → index-ey6Ixpe7.js} +245 -213
- package/client-dist/index.html +1 -1
- package/dist/auth-middleware.js +1 -0
- package/dist/error-handler.js +3 -0
- package/dist/routes/inventory.js +31 -8
- package/dist/routes/item-fields.js +18 -16
- package/dist/routes/item-instances.js +36 -18
- package/dist/routes/items.js +31 -29
- package/dist/routes/labor-tickets.js +1 -2
- package/dist/routes/operation-run-transitions.js +9 -2
- package/dist/routes/operation-runs.js +5 -1
- package/dist/routes/order-run-transitions.js +8 -2
- package/dist/routes/orders.js +11 -7
- package/dist/routes/users.js +1 -0
- package/dist/routes/work-centers.js +25 -25
- package/dist/services/field-value-service.js +26 -2
- package/dist/services/order-run-service.js +64 -17
- package/dist/services/order-service.js +9 -0
- package/npm-shrinkwrap.json +28 -28
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM } from "./rolldown-runtime-CvHMtSRF.js";
|
|
2
|
-
import { $ as unknown, $t as ScrollArea, A as IconLogout, At as Textarea, B as IconApi, Bt as Badge, C as useForm, Ct as SegmentedControl, D as IconTrash, Dt as NumberInput, E as IconUpload, Et as Pagination, F as IconFile, Ft as Container, G as _enum, Gt as Text, H as IconAlertCircle, Ht as Checkbox, I as IconEye$1, It as Code, J as number, Jt as Group, K as array, Kt as Alert, L as IconChevronDown, Lt as Center, M as IconLayoutSidebarLeftExpand, Mt as FileButton, N as IconLayoutSidebarLeftCollapse, Nt as Drawer, O as IconPlus, Ot as Modal, P as IconInfoCircle, Pt as Divider, Q as union, Qt as UnstyledButton, R as IconCheck, Rt as Card, S as IconCopy, St as Select, T as IconUser, Tt as PasswordInput, U as require_semver, Ut as AppShell, V as IconAlertTriangle, Vt as Autocomplete, W as ZodIssueCode, Wt as Anchor, X as record, Xt as Loader, Y as object, Yt as ActionIcon, Z as string, Zt as Popover, _ as IconRefresh, _t as TextInput, a as _undefined, an as require_client, at as Routes, b as IconEyeOff, bt as Switch, c as boolean$1, ct as useOutletContext, d as object$1, dt as Notifications, en as Box, et as BrowserRouter, f as string$1, ft as notifications, g as Markdown, gt as Title, h as remarkGfm, ht as DatesProvider, i as _null, in as require_jsx_runtime, it as Route, j as IconListDetails, jt as Image, k as IconNote, kt as Menu, l as literal, lt as useParams, m as datetime, mt as DateInput, n as string$2, nn as useDisclosure, nt as Navigate, o as any, on as require_react, ot as useLocation, p as union$1, pt as DateTimePicker, q as boolean, qt as Accordion, r as _enum$1, rn as useDebouncedValue, rt as Outlet, s as array$1, st as useNavigate, t as number$
|
|
2
|
+
import { $ as unknown, $t as ScrollArea, A as IconLogout, At as Textarea, B as IconApi, Bt as Badge, C as useForm, Ct as SegmentedControl, D as IconTrash, Dt as NumberInput, E as IconUpload, Et as Pagination, F as IconFile, Ft as Container, G as _enum, Gt as Text, H as IconAlertCircle, Ht as Checkbox, I as IconEye$1, It as Code, J as number, Jt as Group, K as array, Kt as Alert, L as IconChevronDown, Lt as Center, M as IconLayoutSidebarLeftExpand, Mt as FileButton, N as IconLayoutSidebarLeftCollapse, Nt as Drawer, O as IconPlus, Ot as Modal, P as IconInfoCircle, Pt as Divider, Q as union, Qt as UnstyledButton, R as IconCheck, Rt as Card, S as IconCopy, St as Select, T as IconUser, Tt as PasswordInput, U as require_semver, Ut as AppShell, V as IconAlertTriangle, Vt as Autocomplete, W as ZodIssueCode, Wt as Anchor, X as record, Xt as Loader, Y as object, Yt as ActionIcon, Z as string, Zt as Popover, _ as IconRefresh, _t as TextInput, a as _undefined, an as require_client, at as Routes, b as IconEyeOff, bt as Switch, c as boolean$1, ct as useOutletContext, d as object$1, dt as Notifications, en as Box, et as BrowserRouter, f as string$1, ft as notifications, g as Markdown, gt as Title, h as remarkGfm, ht as DatesProvider, i as _null, in as require_jsx_runtime, it as Route, j as IconListDetails, jt as Image, k as IconNote, kt as Menu, l as literal, lt as useParams, m as datetime, mt as DateInput, n as string$2, nn as useDisclosure, nt as Navigate, o as any, on as require_react, ot as useLocation, p as union$1, pt as DateTimePicker, q as boolean, qt as Accordion, r as _enum$1, rn as useDebouncedValue, rt as Outlet, s as array$1, st as useNavigate, t as number$1, tn as MantineProvider, tt as Link, u as number$2, ut as useSearchParams, v as IconPhoto, vt as Tabs, w as IconX, wt as Tooltip, x as IconDownload, xt as Stack, y as IconEye, yt as Table, z as IconArrowBackUp, zt as Button } from "./vendor-MNFI7PUp.js";
|
|
3
3
|
//#region \0vite/modulepreload-polyfill.js
|
|
4
4
|
(function polyfill() {
|
|
5
5
|
const relList = document.createElement("link").relList;
|
|
@@ -222,8 +222,11 @@ function hasAction(actions, rel, opts) {
|
|
|
222
222
|
if (a.disabled && !opts?.includeDisabled) return void 0;
|
|
223
223
|
return a;
|
|
224
224
|
}
|
|
225
|
-
function hasActionTemplate(templates, rel) {
|
|
226
|
-
|
|
225
|
+
function hasActionTemplate(templates, rel, opts) {
|
|
226
|
+
const t = templates?.find((t) => t.rel === rel);
|
|
227
|
+
if (!t) return void 0;
|
|
228
|
+
if (t.disabled && !opts?.includeDisabled) return void 0;
|
|
229
|
+
return t;
|
|
227
230
|
}
|
|
228
231
|
/** Normalize a `disabledReason` (string | string[] | undefined) to a single display string. */
|
|
229
232
|
function formatDisabledReason(reason) {
|
|
@@ -262,7 +265,9 @@ var HateoasActionTemplateSchema = object({
|
|
|
262
265
|
title: string().optional(),
|
|
263
266
|
schema: string().optional(),
|
|
264
267
|
body: record(string(), unknown()).optional(),
|
|
265
|
-
alternateEncoding: AlternateEncodingSchema.optional()
|
|
268
|
+
alternateEncoding: AlternateEncodingSchema.optional(),
|
|
269
|
+
disabled: boolean().optional(),
|
|
270
|
+
disabledReason: union([string(), array(string())]).optional()
|
|
266
271
|
});
|
|
267
272
|
var HateoasLinkTemplateSchema = object({
|
|
268
273
|
rel: string(),
|
|
@@ -946,63 +951,96 @@ function zodResolver(schema) {
|
|
|
946
951
|
return errors;
|
|
947
952
|
};
|
|
948
953
|
}
|
|
954
|
+
/**
|
|
955
|
+
* Build a `pageSize` query-param schema with a documented cap.
|
|
956
|
+
*
|
|
957
|
+
* Behaviour:
|
|
958
|
+
* - Coerces strings → numbers (querystrings are always strings).
|
|
959
|
+
* - Rejects values < 1 (floor of 1, then defaults).
|
|
960
|
+
* - Silently clamps oversized values to {@link MAX_PAGE_SIZE}.
|
|
961
|
+
* - Defaults to {@link defaultValue} when omitted.
|
|
962
|
+
*
|
|
963
|
+
* Apply via the shared {@link paginationQuery} helper rather than per-route.
|
|
964
|
+
*/
|
|
965
|
+
function pageSizeSchema(defaultValue = 20) {
|
|
966
|
+
return number$1().int().min(1).optional().default(defaultValue).transform((n) => Math.min(n, 100)).describe(`Items per page. Values above 100 are silently clamped to 100.`);
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* Page-number schema — coerced int >= 1, defaulting to 1.
|
|
970
|
+
*/
|
|
971
|
+
function pageSchema() {
|
|
972
|
+
return number$1().int().min(1).optional().default(1);
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
* Standard pagination query fields. Spread into a list-query Zod object:
|
|
976
|
+
*
|
|
977
|
+
* ```ts
|
|
978
|
+
* export const InventoryListQuerySchema = z.object({
|
|
979
|
+
* ...paginationQuery(),
|
|
980
|
+
* search: z.string().optional(),
|
|
981
|
+
* });
|
|
982
|
+
* ```
|
|
983
|
+
*/
|
|
984
|
+
function paginationQuery(defaultPageSize = 20) {
|
|
985
|
+
return {
|
|
986
|
+
page: pageSchema(),
|
|
987
|
+
pageSize: pageSizeSchema(defaultPageSize)
|
|
988
|
+
};
|
|
989
|
+
}
|
|
949
990
|
object$1({
|
|
950
991
|
erpVersion: string$1(),
|
|
951
992
|
erpDbPath: string$1(),
|
|
952
|
-
erpDbSize: number$
|
|
953
|
-
erpDbVersion: number$
|
|
993
|
+
erpDbSize: number$2().optional(),
|
|
994
|
+
erpDbVersion: number$2(),
|
|
954
995
|
targetVersion: string$1().optional(),
|
|
955
996
|
_actions: array$1(HateoasActionSchema).optional()
|
|
956
997
|
});
|
|
957
998
|
var AdminAttachmentItemSchema = object$1({
|
|
958
999
|
id: string$1(),
|
|
959
1000
|
filename: string$1(),
|
|
960
|
-
fileSize: number$
|
|
1001
|
+
fileSize: number$2(),
|
|
961
1002
|
fileHash: string$1(),
|
|
962
1003
|
uploadedBy: string$1(),
|
|
963
1004
|
createdAt: string$1()
|
|
964
1005
|
});
|
|
965
|
-
object$1({
|
|
966
|
-
page: number$2().optional().default(1),
|
|
967
|
-
pageSize: number$2().optional().default(50)
|
|
968
|
-
});
|
|
1006
|
+
object$1({ ...paginationQuery(50) });
|
|
969
1007
|
object$1({
|
|
970
1008
|
attachments: array$1(AdminAttachmentItemSchema),
|
|
971
|
-
total: number$
|
|
972
|
-
page: number$
|
|
973
|
-
pageSize: number$
|
|
1009
|
+
total: number$2(),
|
|
1010
|
+
page: number$2(),
|
|
1011
|
+
pageSize: number$2(),
|
|
974
1012
|
_links: array$1(HateoasLinkSchema)
|
|
975
1013
|
});
|
|
976
1014
|
var PinoLogEntrySchema = object$1({
|
|
977
|
-
level: number$
|
|
978
|
-
time: number$
|
|
1015
|
+
level: number$2(),
|
|
1016
|
+
time: number$2(),
|
|
979
1017
|
msg: string$1(),
|
|
980
1018
|
detail: string$1().optional()
|
|
981
1019
|
});
|
|
982
1020
|
object$1({
|
|
983
|
-
lines: number$
|
|
984
|
-
minLevel: number$
|
|
1021
|
+
lines: number$1().optional().default(200),
|
|
1022
|
+
minLevel: number$1().optional()
|
|
985
1023
|
});
|
|
986
1024
|
object$1({
|
|
987
1025
|
entries: array$1(PinoLogEntrySchema),
|
|
988
1026
|
fileName: string$1(),
|
|
989
|
-
fileSize: number$
|
|
1027
|
+
fileSize: number$2().optional()
|
|
990
1028
|
});
|
|
991
1029
|
object$1({ message: string$1() });
|
|
992
1030
|
object$1({ items: array$1(object$1({
|
|
993
|
-
id: number$
|
|
1031
|
+
id: number$2(),
|
|
994
1032
|
entityType: string$1(),
|
|
995
|
-
entityId: number$
|
|
1033
|
+
entityId: number$2(),
|
|
996
1034
|
action: string$1(),
|
|
997
1035
|
field: string$1(),
|
|
998
1036
|
oldValue: string$1().nullable(),
|
|
999
1037
|
newValue: string$1().nullable(),
|
|
1000
|
-
userId: number$
|
|
1038
|
+
userId: number$2(),
|
|
1001
1039
|
createdAt: datetime()
|
|
1002
1040
|
})) });
|
|
1003
1041
|
object$1({
|
|
1004
1042
|
entityType: string$1(),
|
|
1005
|
-
entityId: number$
|
|
1043
|
+
entityId: number$1().int()
|
|
1006
1044
|
});
|
|
1007
1045
|
//#endregion
|
|
1008
1046
|
//#region ../shared/dist/auth-types.js
|
|
@@ -1011,14 +1049,15 @@ var LoginRequestSchema = object$1({
|
|
|
1011
1049
|
password: string$1().min(1)
|
|
1012
1050
|
}).strict();
|
|
1013
1051
|
object$1({ user: object$1({
|
|
1014
|
-
id: number$
|
|
1052
|
+
id: number$2(),
|
|
1015
1053
|
username: string$1(),
|
|
1016
1054
|
permissions: array$1(string$1()).optional()
|
|
1017
1055
|
}) });
|
|
1018
1056
|
object$1({
|
|
1019
|
-
statusCode: number$
|
|
1057
|
+
statusCode: number$2().int(),
|
|
1020
1058
|
error: string$1(),
|
|
1021
|
-
message: string$1()
|
|
1059
|
+
message: string$1(),
|
|
1060
|
+
missingPermission: string$1().optional()
|
|
1022
1061
|
});
|
|
1023
1062
|
//#endregion
|
|
1024
1063
|
//#region ../shared/dist/field-types.js
|
|
@@ -1033,9 +1072,9 @@ var FieldTypeEnum = _enum$1([
|
|
|
1033
1072
|
]);
|
|
1034
1073
|
var FieldType = FieldTypeEnum.enum;
|
|
1035
1074
|
var FieldSchema = object$1({
|
|
1036
|
-
id: number$
|
|
1037
|
-
fieldSetId: number$
|
|
1038
|
-
seqNo: number$
|
|
1075
|
+
id: number$2(),
|
|
1076
|
+
fieldSetId: number$2(),
|
|
1077
|
+
seqNo: number$2(),
|
|
1039
1078
|
label: string$1(),
|
|
1040
1079
|
type: FieldTypeEnum,
|
|
1041
1080
|
isArray: boolean$1(),
|
|
@@ -1048,7 +1087,7 @@ var FieldSchema = object$1({
|
|
|
1048
1087
|
_actions: array$1(HateoasActionSchema).optional()
|
|
1049
1088
|
});
|
|
1050
1089
|
var CreateFieldSchema = object$1({
|
|
1051
|
-
seqNo: number$
|
|
1090
|
+
seqNo: number$2().int().min(1).optional(),
|
|
1052
1091
|
label: string$1().min(1).max(200),
|
|
1053
1092
|
type: FieldTypeEnum.optional(),
|
|
1054
1093
|
isArray: boolean$1().optional(),
|
|
@@ -1056,7 +1095,7 @@ var CreateFieldSchema = object$1({
|
|
|
1056
1095
|
}).strict();
|
|
1057
1096
|
object$1({ items: array$1(CreateFieldSchema).min(1).max(100) });
|
|
1058
1097
|
var UpdateFieldSchema = object$1({
|
|
1059
|
-
seqNo: number$
|
|
1098
|
+
seqNo: number$2().int().min(1).optional(),
|
|
1060
1099
|
label: string$1().min(1).max(200).optional(),
|
|
1061
1100
|
type: FieldTypeEnum.optional(),
|
|
1062
1101
|
isArray: boolean$1().optional(),
|
|
@@ -1064,8 +1103,8 @@ var UpdateFieldSchema = object$1({
|
|
|
1064
1103
|
}).strict();
|
|
1065
1104
|
var FieldListResponseSchema = object$1({
|
|
1066
1105
|
items: array$1(FieldSchema),
|
|
1067
|
-
total: number$
|
|
1068
|
-
nextSeqNo: number$
|
|
1106
|
+
total: number$2(),
|
|
1107
|
+
nextSeqNo: number$2(),
|
|
1069
1108
|
_links: array$1(HateoasLinkSchema),
|
|
1070
1109
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1071
1110
|
_actions: array$1(HateoasActionSchema).optional()
|
|
@@ -1079,19 +1118,19 @@ var FieldValidationSchema = object$1({
|
|
|
1079
1118
|
var FieldAttachmentSchema = object$1({
|
|
1080
1119
|
id: string$1(),
|
|
1081
1120
|
filename: string$1(),
|
|
1082
|
-
fileSize: number$
|
|
1121
|
+
fileSize: number$2(),
|
|
1083
1122
|
downloadHref: string$1().optional()
|
|
1084
1123
|
});
|
|
1085
1124
|
var coercedString = string$2();
|
|
1086
1125
|
var FieldValueSchema = union$1([array$1(coercedString), coercedString]);
|
|
1087
1126
|
var FieldValueEntrySchema = object$1({
|
|
1088
|
-
fieldId: number$
|
|
1089
|
-
fieldSeqNo: number$
|
|
1127
|
+
fieldId: number$2(),
|
|
1128
|
+
fieldSeqNo: number$2(),
|
|
1090
1129
|
label: string$1(),
|
|
1091
1130
|
type: string$1(),
|
|
1092
1131
|
valueFormat: string$1(),
|
|
1093
1132
|
required: boolean$1(),
|
|
1094
|
-
setIndex: number$
|
|
1133
|
+
setIndex: number$2(),
|
|
1095
1134
|
value: FieldValueSchema,
|
|
1096
1135
|
attachments: array$1(FieldAttachmentSchema).optional(),
|
|
1097
1136
|
validation: FieldValidationSchema
|
|
@@ -1099,19 +1138,19 @@ var FieldValueEntrySchema = object$1({
|
|
|
1099
1138
|
object$1({
|
|
1100
1139
|
attachmentId: string$1(),
|
|
1101
1140
|
filename: string$1(),
|
|
1102
|
-
fileSize: number$
|
|
1141
|
+
fileSize: number$2()
|
|
1103
1142
|
});
|
|
1104
1143
|
var StepRunSchema = object$1({
|
|
1105
|
-
id: number$
|
|
1106
|
-
operationRunId: number$
|
|
1107
|
-
stepId: number$
|
|
1108
|
-
seqNo: number$
|
|
1144
|
+
id: number$2(),
|
|
1145
|
+
operationRunId: number$2(),
|
|
1146
|
+
stepId: number$2(),
|
|
1147
|
+
seqNo: number$2(),
|
|
1109
1148
|
title: string$1(),
|
|
1110
1149
|
instructions: string$1(),
|
|
1111
1150
|
multiSet: boolean$1(),
|
|
1112
1151
|
completed: boolean$1(),
|
|
1113
1152
|
note: string$1().nullable(),
|
|
1114
|
-
fieldCount: number$
|
|
1153
|
+
fieldCount: number$2().optional(),
|
|
1115
1154
|
fieldValues: array$1(FieldValueEntrySchema).optional(),
|
|
1116
1155
|
createdAt: datetime(),
|
|
1117
1156
|
createdBy: string$1(),
|
|
@@ -1124,12 +1163,12 @@ var StepRunSchema = object$1({
|
|
|
1124
1163
|
var coercedStringMax = string$2().max(2e3);
|
|
1125
1164
|
object$1({ value: union$1([array$1(coercedStringMax), coercedStringMax]) }).strict();
|
|
1126
1165
|
object$1({ fieldValues: array$1(object$1({
|
|
1127
|
-
fieldSeqNo: number$
|
|
1166
|
+
fieldSeqNo: number$2().int(),
|
|
1128
1167
|
value: union$1([array$1(coercedStringMax), coercedStringMax])
|
|
1129
1168
|
})) }).strict();
|
|
1130
1169
|
var BatchFieldValueResponseSchema = object$1({
|
|
1131
1170
|
items: array$1(FieldValueEntrySchema),
|
|
1132
|
-
total: number$
|
|
1171
|
+
total: number$2()
|
|
1133
1172
|
});
|
|
1134
1173
|
FieldValueEntrySchema.extend({
|
|
1135
1174
|
_actions: array$1(HateoasActionSchema).optional(),
|
|
@@ -1140,12 +1179,12 @@ BatchFieldValueResponseSchema.extend({
|
|
|
1140
1179
|
_actionTemplates: array$1(HateoasActionTemplateSchema).optional()
|
|
1141
1180
|
});
|
|
1142
1181
|
object$1({
|
|
1143
|
-
setCount: number$
|
|
1182
|
+
setCount: number$2(),
|
|
1144
1183
|
_actions: array$1(HateoasActionSchema).optional(),
|
|
1145
1184
|
_actionTemplates: array$1(HateoasActionTemplateSchema).optional()
|
|
1146
1185
|
});
|
|
1147
1186
|
object$1({
|
|
1148
|
-
id: number$
|
|
1187
|
+
id: number$2(),
|
|
1149
1188
|
completed: boolean$1(),
|
|
1150
1189
|
note: string$1().nullable(),
|
|
1151
1190
|
updatedAt: datetime(),
|
|
@@ -1156,7 +1195,7 @@ object$1({
|
|
|
1156
1195
|
object$1({ includeFields: union$1([literal("true"), literal("false")]).transform((v) => v === "true").optional() });
|
|
1157
1196
|
object$1({
|
|
1158
1197
|
items: array$1(StepRunSchema),
|
|
1159
|
-
total: number$
|
|
1198
|
+
total: number$2(),
|
|
1160
1199
|
_links: array$1(HateoasLinkSchema),
|
|
1161
1200
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1162
1201
|
_actions: array$1(HateoasActionSchema).optional()
|
|
@@ -1164,17 +1203,17 @@ object$1({
|
|
|
1164
1203
|
//#endregion
|
|
1165
1204
|
//#region ../shared/dist/field-ref-types.js
|
|
1166
1205
|
var FieldRefFieldSchema = object$1({
|
|
1167
|
-
seqNo: number$
|
|
1206
|
+
seqNo: number$2(),
|
|
1168
1207
|
label: string$1(),
|
|
1169
1208
|
type: FieldTypeEnum
|
|
1170
1209
|
});
|
|
1171
1210
|
var FieldRefSchema = object$1({
|
|
1172
|
-
id: number$
|
|
1173
|
-
seqNo: number$
|
|
1211
|
+
id: number$2(),
|
|
1212
|
+
seqNo: number$2(),
|
|
1174
1213
|
title: string$1(),
|
|
1175
|
-
sourceOpSeqNo: number$
|
|
1214
|
+
sourceOpSeqNo: number$2(),
|
|
1176
1215
|
sourceOpTitle: string$1(),
|
|
1177
|
-
sourceStepSeqNo: number$
|
|
1216
|
+
sourceStepSeqNo: number$2(),
|
|
1178
1217
|
sourceStepTitle: string$1(),
|
|
1179
1218
|
fields: array$1(FieldRefFieldSchema),
|
|
1180
1219
|
createdAt: datetime(),
|
|
@@ -1183,59 +1222,58 @@ var FieldRefSchema = object$1({
|
|
|
1183
1222
|
_actions: array$1(HateoasActionSchema).optional()
|
|
1184
1223
|
});
|
|
1185
1224
|
object$1({
|
|
1186
|
-
seqNo: number$
|
|
1225
|
+
seqNo: number$2().int().min(1).optional(),
|
|
1187
1226
|
title: string$1().min(1).max(200),
|
|
1188
|
-
sourceOpSeqNo: number$
|
|
1189
|
-
sourceStepSeqNo: number$
|
|
1227
|
+
sourceOpSeqNo: number$2().int().min(1),
|
|
1228
|
+
sourceStepSeqNo: number$2().int().min(1)
|
|
1190
1229
|
}).strict();
|
|
1191
1230
|
object$1({
|
|
1192
1231
|
items: array$1(FieldRefSchema),
|
|
1193
|
-
total: number$
|
|
1194
|
-
nextSeqNo: number$
|
|
1232
|
+
total: number$2(),
|
|
1233
|
+
nextSeqNo: number$2(),
|
|
1195
1234
|
_links: array$1(HateoasLinkSchema),
|
|
1196
1235
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1197
1236
|
_actions: array$1(HateoasActionSchema).optional()
|
|
1198
1237
|
});
|
|
1199
1238
|
var FieldRefValueSummarySchema = object$1({
|
|
1200
|
-
seqNo: number$
|
|
1239
|
+
seqNo: number$2(),
|
|
1201
1240
|
title: string$1(),
|
|
1202
|
-
sourceOpSeqNo: number$
|
|
1241
|
+
sourceOpSeqNo: number$2(),
|
|
1203
1242
|
sourceOpTitle: string$1(),
|
|
1204
|
-
sourceStepSeqNo: number$
|
|
1243
|
+
sourceStepSeqNo: number$2(),
|
|
1205
1244
|
sourceStepTitle: string$1(),
|
|
1206
1245
|
multiSet: boolean$1(),
|
|
1207
1246
|
fieldValues: array$1(FieldValueEntrySchema)
|
|
1208
1247
|
});
|
|
1209
1248
|
object$1({
|
|
1210
|
-
|
|
1211
|
-
pageSize: number$2().int().min(1).max(100).optional().default(20),
|
|
1249
|
+
...paginationQuery(),
|
|
1212
1250
|
search: string$1().optional()
|
|
1213
1251
|
});
|
|
1214
1252
|
object$1({
|
|
1215
1253
|
items: array$1(object$1({
|
|
1216
|
-
id: number$
|
|
1254
|
+
id: number$2(),
|
|
1217
1255
|
itemKey: string$1(),
|
|
1218
1256
|
key: string$1(),
|
|
1219
|
-
quantity: number$
|
|
1257
|
+
quantity: number$2().nullable(),
|
|
1220
1258
|
orderKey: string$1().nullable(),
|
|
1221
|
-
orderRunNo: number$
|
|
1259
|
+
orderRunNo: number$2().nullable(),
|
|
1222
1260
|
createdAt: datetime()
|
|
1223
1261
|
})),
|
|
1224
|
-
total: number$
|
|
1225
|
-
page: number$
|
|
1226
|
-
pageSize: number$
|
|
1262
|
+
total: number$2(),
|
|
1263
|
+
page: number$2(),
|
|
1264
|
+
pageSize: number$2(),
|
|
1227
1265
|
_links: array$1(HateoasLinkSchema),
|
|
1228
1266
|
_actionTemplates: array$1(HateoasActionTemplateSchema).optional()
|
|
1229
1267
|
});
|
|
1230
1268
|
//#endregion
|
|
1231
1269
|
//#region ../shared/dist/item-instance-types.js
|
|
1232
1270
|
var ItemInstanceSchema = object$1({
|
|
1233
|
-
id: number$
|
|
1271
|
+
id: number$2(),
|
|
1234
1272
|
itemKey: string$1(),
|
|
1235
1273
|
orderKey: string$1().nullable(),
|
|
1236
|
-
orderRunNo: number$
|
|
1274
|
+
orderRunNo: number$2().nullable(),
|
|
1237
1275
|
key: string$1(),
|
|
1238
|
-
quantity: number$
|
|
1276
|
+
quantity: number$2().nullable(),
|
|
1239
1277
|
fieldValues: array$1(FieldValueEntrySchema),
|
|
1240
1278
|
createdBy: string$1(),
|
|
1241
1279
|
createdAt: datetime(),
|
|
@@ -1247,24 +1285,23 @@ var ItemInstanceSchema = object$1({
|
|
|
1247
1285
|
});
|
|
1248
1286
|
object$1({
|
|
1249
1287
|
key: string$1().min(1).max(200),
|
|
1250
|
-
quantity: number$
|
|
1251
|
-
orderRunId: number$
|
|
1288
|
+
quantity: number$2().nullable().optional(),
|
|
1289
|
+
orderRunId: number$2().nullable().optional()
|
|
1252
1290
|
}).strict();
|
|
1253
1291
|
object$1({
|
|
1254
1292
|
key: string$1().min(1).max(200).optional(),
|
|
1255
|
-
quantity: number$
|
|
1256
|
-
orderRunId: number$
|
|
1293
|
+
quantity: number$2().nullable().optional(),
|
|
1294
|
+
orderRunId: number$2().nullable().optional()
|
|
1257
1295
|
}).strict();
|
|
1258
1296
|
object$1({
|
|
1259
|
-
|
|
1260
|
-
pageSize: number$2().int().min(1).max(100).optional().default(20),
|
|
1297
|
+
...paginationQuery(),
|
|
1261
1298
|
search: string$1().optional()
|
|
1262
1299
|
});
|
|
1263
1300
|
object$1({
|
|
1264
1301
|
items: array$1(ItemInstanceSchema),
|
|
1265
|
-
total: number$
|
|
1266
|
-
page: number$
|
|
1267
|
-
pageSize: number$
|
|
1302
|
+
total: number$2(),
|
|
1303
|
+
page: number$2(),
|
|
1304
|
+
pageSize: number$2(),
|
|
1268
1305
|
_links: array$1(HateoasLinkSchema),
|
|
1269
1306
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1270
1307
|
_actions: array$1(HateoasActionSchema).optional()
|
|
@@ -1272,7 +1309,7 @@ object$1({
|
|
|
1272
1309
|
//#endregion
|
|
1273
1310
|
//#region ../shared/dist/item-types.js
|
|
1274
1311
|
var ItemSchema = object$1({
|
|
1275
|
-
id: number$
|
|
1312
|
+
id: number$2(),
|
|
1276
1313
|
key: string$1(),
|
|
1277
1314
|
description: string$1(),
|
|
1278
1315
|
fields: FieldListResponseSchema,
|
|
@@ -1292,15 +1329,14 @@ object$1({
|
|
|
1292
1329
|
description: string$1().max(2e3).optional()
|
|
1293
1330
|
}).strict();
|
|
1294
1331
|
object$1({
|
|
1295
|
-
|
|
1296
|
-
pageSize: number$2().int().min(1).max(100).optional().default(20),
|
|
1332
|
+
...paginationQuery(),
|
|
1297
1333
|
search: string$1().optional()
|
|
1298
1334
|
});
|
|
1299
1335
|
object$1({
|
|
1300
1336
|
items: array$1(ItemSchema),
|
|
1301
|
-
total: number$
|
|
1302
|
-
page: number$
|
|
1303
|
-
pageSize: number$
|
|
1337
|
+
total: number$2(),
|
|
1338
|
+
page: number$2(),
|
|
1339
|
+
pageSize: number$2(),
|
|
1304
1340
|
_links: array$1(HateoasLinkSchema),
|
|
1305
1341
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1306
1342
|
_actions: array$1(HateoasActionSchema).optional()
|
|
@@ -1308,14 +1344,14 @@ object$1({
|
|
|
1308
1344
|
//#endregion
|
|
1309
1345
|
//#region ../shared/dist/labor-ticket-types.js
|
|
1310
1346
|
var LaborTicketSchema = object$1({
|
|
1311
|
-
id: number$
|
|
1312
|
-
operationRunId: number$
|
|
1313
|
-
userId: number$
|
|
1347
|
+
id: number$2(),
|
|
1348
|
+
operationRunId: number$2(),
|
|
1349
|
+
userId: number$2(),
|
|
1314
1350
|
username: string$1(),
|
|
1315
|
-
runId: number$
|
|
1351
|
+
runId: number$2().nullable(),
|
|
1316
1352
|
clockIn: datetime(),
|
|
1317
1353
|
clockOut: datetime().nullable(),
|
|
1318
|
-
cost: number$
|
|
1354
|
+
cost: number$2().nullable(),
|
|
1319
1355
|
createdAt: datetime(),
|
|
1320
1356
|
createdBy: string$1(),
|
|
1321
1357
|
updatedAt: datetime(),
|
|
@@ -1323,12 +1359,12 @@ var LaborTicketSchema = object$1({
|
|
|
1323
1359
|
_links: array$1(HateoasLinkSchema).optional()
|
|
1324
1360
|
});
|
|
1325
1361
|
object$1({
|
|
1326
|
-
userId: number$
|
|
1327
|
-
ticketId: number$
|
|
1362
|
+
userId: number$2().int().optional(),
|
|
1363
|
+
ticketId: number$2().int().optional()
|
|
1328
1364
|
}).strict();
|
|
1329
1365
|
object$1({
|
|
1330
1366
|
items: array$1(LaborTicketSchema),
|
|
1331
|
-
total: number$
|
|
1367
|
+
total: number$2(),
|
|
1332
1368
|
_links: array$1(HateoasLinkSchema),
|
|
1333
1369
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1334
1370
|
_actions: array$1(HateoasActionSchema).optional(),
|
|
@@ -1337,21 +1373,21 @@ object$1({
|
|
|
1337
1373
|
//#endregion
|
|
1338
1374
|
//#region ../shared/dist/operation-types.js
|
|
1339
1375
|
var OperationPredecessorSchema = object$1({
|
|
1340
|
-
seqNo: number$
|
|
1376
|
+
seqNo: number$2(),
|
|
1341
1377
|
title: string$1()
|
|
1342
1378
|
});
|
|
1343
1379
|
var StepSummarySchema = object$1({
|
|
1344
|
-
seqNo: number$
|
|
1380
|
+
seqNo: number$2(),
|
|
1345
1381
|
title: string$1()
|
|
1346
1382
|
});
|
|
1347
1383
|
var OperationSchema = object$1({
|
|
1348
|
-
id: number$
|
|
1349
|
-
orderRevId: number$
|
|
1350
|
-
seqNo: number$
|
|
1384
|
+
id: number$2(),
|
|
1385
|
+
orderRevId: number$2(),
|
|
1386
|
+
seqNo: number$2(),
|
|
1351
1387
|
title: string$1(),
|
|
1352
1388
|
description: string$1(),
|
|
1353
1389
|
workCenterKey: string$1().nullable(),
|
|
1354
|
-
stepCount: number$
|
|
1390
|
+
stepCount: number$2().optional(),
|
|
1355
1391
|
stepSummary: array$1(StepSummarySchema).optional(),
|
|
1356
1392
|
predecessors: array$1(OperationPredecessorSchema).optional(),
|
|
1357
1393
|
createdAt: datetime(),
|
|
@@ -1362,22 +1398,22 @@ var OperationSchema = object$1({
|
|
|
1362
1398
|
_actions: array$1(HateoasActionSchema).optional()
|
|
1363
1399
|
});
|
|
1364
1400
|
var CreateOperationSchema = object$1({
|
|
1365
|
-
seqNo: number$
|
|
1401
|
+
seqNo: number$2().int().min(1).optional(),
|
|
1366
1402
|
title: string$1().min(1).max(200),
|
|
1367
1403
|
description: string$1().max(2e3).optional(),
|
|
1368
1404
|
workCenterKey: string$1().max(100).nullable().optional(),
|
|
1369
|
-
predecessorSeqNos: array$1(number$
|
|
1405
|
+
predecessorSeqNos: array$1(number$2().int().min(1)).optional()
|
|
1370
1406
|
}).strict();
|
|
1371
1407
|
var UpdateOperationSchema = object$1({
|
|
1372
1408
|
title: string$1().min(1).max(200).optional(),
|
|
1373
1409
|
description: string$1().max(2e3).optional(),
|
|
1374
1410
|
workCenterKey: string$1().max(100).nullable().optional(),
|
|
1375
|
-
seqNo: number$
|
|
1411
|
+
seqNo: number$2().int().min(1).optional()
|
|
1376
1412
|
}).strict();
|
|
1377
1413
|
object$1({
|
|
1378
1414
|
items: array$1(OperationSchema),
|
|
1379
|
-
total: number$
|
|
1380
|
-
nextSeqNo: number$
|
|
1415
|
+
total: number$2(),
|
|
1416
|
+
nextSeqNo: number$2(),
|
|
1381
1417
|
_links: array$1(HateoasLinkSchema),
|
|
1382
1418
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1383
1419
|
_actions: array$1(HateoasActionSchema).optional()
|
|
@@ -1385,7 +1421,7 @@ object$1({
|
|
|
1385
1421
|
//#endregion
|
|
1386
1422
|
//#region ../shared/dist/operation-run-types.js
|
|
1387
1423
|
var StepRunSummarySchema = object$1({
|
|
1388
|
-
seqNo: number$
|
|
1424
|
+
seqNo: number$2(),
|
|
1389
1425
|
title: string$1(),
|
|
1390
1426
|
completed: boolean$1()
|
|
1391
1427
|
});
|
|
@@ -1399,18 +1435,18 @@ var OperationRunStatusEnum = _enum$1([
|
|
|
1399
1435
|
]);
|
|
1400
1436
|
var OperationRunStatus = OperationRunStatusEnum.enum;
|
|
1401
1437
|
var OperationRunSchema = object$1({
|
|
1402
|
-
id: number$
|
|
1403
|
-
orderRunId: number$
|
|
1404
|
-
operationId: number$
|
|
1405
|
-
seqNo: number$
|
|
1438
|
+
id: number$2(),
|
|
1439
|
+
orderRunId: number$2(),
|
|
1440
|
+
operationId: number$2(),
|
|
1441
|
+
seqNo: number$2(),
|
|
1406
1442
|
title: string$1(),
|
|
1407
1443
|
description: string$1(),
|
|
1408
1444
|
workCenterKey: string$1().nullable(),
|
|
1409
|
-
stepCount: number$
|
|
1445
|
+
stepCount: number$2().optional(),
|
|
1410
1446
|
predecessors: array$1(OperationPredecessorSchema).optional(),
|
|
1411
1447
|
status: OperationRunStatusEnum,
|
|
1412
1448
|
assignedTo: string$1().nullable(),
|
|
1413
|
-
cost: number$
|
|
1449
|
+
cost: number$2().nullable(),
|
|
1414
1450
|
note: string$1().nullable(),
|
|
1415
1451
|
completedAt: datetime().nullable(),
|
|
1416
1452
|
stepSummary: array$1(StepRunSummarySchema).optional(),
|
|
@@ -1422,17 +1458,17 @@ var OperationRunSchema = object$1({
|
|
|
1422
1458
|
_links: array$1(HateoasLinkSchema).optional(),
|
|
1423
1459
|
_actions: array$1(HateoasActionSchema).optional()
|
|
1424
1460
|
});
|
|
1425
|
-
object$1({ assignedToId: number$
|
|
1461
|
+
object$1({ assignedToId: number$2().int().nullable().optional() }).strict();
|
|
1426
1462
|
union$1([
|
|
1427
1463
|
object$1({ note: string$1().max(2e3).optional() }).strict(),
|
|
1428
1464
|
_null(),
|
|
1429
1465
|
_undefined()
|
|
1430
1466
|
]).transform((v) => v ?? {});
|
|
1431
1467
|
object$1({
|
|
1432
|
-
id: number$
|
|
1468
|
+
id: number$2(),
|
|
1433
1469
|
status: OperationRunStatusEnum,
|
|
1434
1470
|
assignedTo: string$1().nullable(),
|
|
1435
|
-
cost: number$
|
|
1471
|
+
cost: number$2().nullable(),
|
|
1436
1472
|
note: string$1().nullable(),
|
|
1437
1473
|
completedAt: datetime().nullable(),
|
|
1438
1474
|
updatedAt: datetime(),
|
|
@@ -1441,7 +1477,7 @@ object$1({
|
|
|
1441
1477
|
});
|
|
1442
1478
|
object$1({
|
|
1443
1479
|
items: array$1(OperationRunSchema),
|
|
1444
|
-
total: number$
|
|
1480
|
+
total: number$2(),
|
|
1445
1481
|
_links: array$1(HateoasLinkSchema),
|
|
1446
1482
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1447
1483
|
_actions: array$1(HateoasActionSchema).optional()
|
|
@@ -1449,7 +1485,7 @@ object$1({
|
|
|
1449
1485
|
//#endregion
|
|
1450
1486
|
//#region ../shared/dist/order-revision-types.js
|
|
1451
1487
|
var RevisionOperationSummarySchema = object$1({
|
|
1452
|
-
seqNo: number$
|
|
1488
|
+
seqNo: number$2(),
|
|
1453
1489
|
title: string$1()
|
|
1454
1490
|
});
|
|
1455
1491
|
var RevisionStatusEnum = _enum$1([
|
|
@@ -1459,9 +1495,9 @@ var RevisionStatusEnum = _enum$1([
|
|
|
1459
1495
|
]);
|
|
1460
1496
|
var RevisionStatus = RevisionStatusEnum.enum;
|
|
1461
1497
|
var OrderRevisionSchema = object$1({
|
|
1462
|
-
id: number$
|
|
1463
|
-
orderId: number$
|
|
1464
|
-
revNo: number$
|
|
1498
|
+
id: number$2(),
|
|
1499
|
+
orderId: number$2(),
|
|
1500
|
+
revNo: number$2(),
|
|
1465
1501
|
status: RevisionStatusEnum,
|
|
1466
1502
|
description: string$1(),
|
|
1467
1503
|
changeSummary: string$1().nullable(),
|
|
@@ -1483,16 +1519,15 @@ var UpdateOrderRevisionSchema = object$1({
|
|
|
1483
1519
|
changeSummary: string$1().max(2e3).optional()
|
|
1484
1520
|
}).strict();
|
|
1485
1521
|
object$1({
|
|
1486
|
-
|
|
1487
|
-
pageSize: number$2().int().min(1).max(100).optional().default(20),
|
|
1522
|
+
...paginationQuery(),
|
|
1488
1523
|
status: RevisionStatusEnum.optional(),
|
|
1489
1524
|
includeObsolete: _enum$1(["true", "false"]).transform((v) => v === "true").optional().default(false)
|
|
1490
1525
|
});
|
|
1491
1526
|
object$1({
|
|
1492
1527
|
items: array$1(OrderRevisionSchema),
|
|
1493
|
-
total: number$
|
|
1494
|
-
page: number$
|
|
1495
|
-
pageSize: number$
|
|
1528
|
+
total: number$2(),
|
|
1529
|
+
page: number$2(),
|
|
1530
|
+
pageSize: number$2(),
|
|
1496
1531
|
_links: array$1(HateoasLinkSchema),
|
|
1497
1532
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1498
1533
|
_actions: array$1(HateoasActionSchema).optional()
|
|
@@ -1500,7 +1535,7 @@ object$1({
|
|
|
1500
1535
|
//#endregion
|
|
1501
1536
|
//#region ../shared/dist/order-run-types.js
|
|
1502
1537
|
var OperationRunSummarySchema = object$1({
|
|
1503
|
-
seqNo: number$
|
|
1538
|
+
seqNo: number$2(),
|
|
1504
1539
|
title: string$1(),
|
|
1505
1540
|
status: OperationRunStatusEnum
|
|
1506
1541
|
});
|
|
@@ -1519,17 +1554,17 @@ var OrderRunPriorityEnum = _enum$1([
|
|
|
1519
1554
|
]);
|
|
1520
1555
|
var OrderRunPriority = OrderRunPriorityEnum.enum;
|
|
1521
1556
|
var OrderRunSchema = object$1({
|
|
1522
|
-
id: number$
|
|
1523
|
-
runNo: number$
|
|
1524
|
-
orderId: number$
|
|
1557
|
+
id: number$2(),
|
|
1558
|
+
runNo: number$2(),
|
|
1559
|
+
orderId: number$2(),
|
|
1525
1560
|
orderKey: string$1(),
|
|
1526
|
-
revNo: number$
|
|
1561
|
+
revNo: number$2(),
|
|
1527
1562
|
itemKey: string$1().nullable(),
|
|
1528
|
-
instanceId: number$
|
|
1563
|
+
instanceId: number$2().nullable(),
|
|
1529
1564
|
instanceKey: string$1().nullable(),
|
|
1530
1565
|
status: OrderRunStatusEnum,
|
|
1531
1566
|
priority: OrderRunPriorityEnum,
|
|
1532
|
-
cost: number$
|
|
1567
|
+
cost: number$2().nullable(),
|
|
1533
1568
|
dueAt: string$1().nullable(),
|
|
1534
1569
|
releaseNote: string$1().nullable(),
|
|
1535
1570
|
operationSummary: array$1(OperationRunSummarySchema).optional(),
|
|
@@ -1541,7 +1576,7 @@ var OrderRunSchema = object$1({
|
|
|
1541
1576
|
_actions: array$1(HateoasActionSchema).optional()
|
|
1542
1577
|
});
|
|
1543
1578
|
var CreateOrderRunSchema = object$1({
|
|
1544
|
-
revNo: number$
|
|
1579
|
+
revNo: number$2().int().min(1).optional(),
|
|
1545
1580
|
priority: OrderRunPriorityEnum.optional().default("medium"),
|
|
1546
1581
|
dueAt: string$1().regex(/^\d{4}-\d{2}-\d{2}$/, "Must be YYYY-MM-DD"),
|
|
1547
1582
|
releaseNote: string$1().max(2e3).optional()
|
|
@@ -1553,32 +1588,30 @@ var UpdateOrderRunSchema = object$1({
|
|
|
1553
1588
|
}).strict();
|
|
1554
1589
|
object$1({
|
|
1555
1590
|
instanceKey: string$1().max(200).optional(),
|
|
1556
|
-
quantity: number$
|
|
1591
|
+
quantity: number$2().nullable().optional(),
|
|
1557
1592
|
fieldValues: array$1(object$1({
|
|
1558
|
-
|
|
1593
|
+
fieldSeqNo: number$2().int(),
|
|
1559
1594
|
value: string$1().max(2e3),
|
|
1560
|
-
setIndex: number$
|
|
1595
|
+
setIndex: number$2().int().min(0).optional()
|
|
1561
1596
|
})).optional()
|
|
1562
1597
|
}).strict();
|
|
1563
1598
|
object$1({
|
|
1564
|
-
|
|
1565
|
-
pageSize: number$2().int().min(1).max(100).optional().default(20),
|
|
1599
|
+
...paginationQuery(),
|
|
1566
1600
|
status: OrderRunStatusEnum.optional(),
|
|
1567
1601
|
priority: OrderRunPriorityEnum.optional(),
|
|
1568
1602
|
search: string$1().optional()
|
|
1569
1603
|
});
|
|
1570
1604
|
object$1({
|
|
1571
1605
|
items: array$1(OrderRunSchema),
|
|
1572
|
-
total: number$
|
|
1573
|
-
page: number$
|
|
1574
|
-
pageSize: number$
|
|
1606
|
+
total: number$2(),
|
|
1607
|
+
page: number$2(),
|
|
1608
|
+
pageSize: number$2(),
|
|
1575
1609
|
_links: array$1(HateoasLinkSchema),
|
|
1576
1610
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1577
1611
|
_actions: array$1(HateoasActionSchema).optional()
|
|
1578
1612
|
});
|
|
1579
1613
|
object$1({
|
|
1580
|
-
|
|
1581
|
-
pageSize: number$2().int().min(1).max(100).optional().default(20),
|
|
1614
|
+
...paginationQuery(),
|
|
1582
1615
|
status: OperationRunStatusEnum.optional(),
|
|
1583
1616
|
priority: OrderRunPriorityEnum.optional(),
|
|
1584
1617
|
search: string$1().optional(),
|
|
@@ -1588,11 +1621,11 @@ object$1({
|
|
|
1588
1621
|
});
|
|
1589
1622
|
object$1({
|
|
1590
1623
|
items: array$1(object$1({
|
|
1591
|
-
id: number$
|
|
1624
|
+
id: number$2(),
|
|
1592
1625
|
orderKey: string$1(),
|
|
1593
|
-
revNo: number$
|
|
1594
|
-
runNo: number$
|
|
1595
|
-
seqNo: number$
|
|
1626
|
+
revNo: number$2(),
|
|
1627
|
+
runNo: number$2(),
|
|
1628
|
+
seqNo: number$2(),
|
|
1596
1629
|
title: string$1(),
|
|
1597
1630
|
workCenterKey: string$1().nullable(),
|
|
1598
1631
|
canWork: boolean$1(),
|
|
@@ -1602,32 +1635,32 @@ object$1({
|
|
|
1602
1635
|
dueAt: string$1().nullable(),
|
|
1603
1636
|
createdAt: datetime()
|
|
1604
1637
|
})),
|
|
1605
|
-
total: number$
|
|
1606
|
-
page: number$
|
|
1607
|
-
pageSize: number$
|
|
1638
|
+
total: number$2(),
|
|
1639
|
+
page: number$2(),
|
|
1640
|
+
pageSize: number$2(),
|
|
1608
1641
|
_links: array$1(HateoasLinkSchema),
|
|
1609
1642
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1610
1643
|
_actionTemplates: array$1(HateoasActionTemplateSchema).optional()
|
|
1611
1644
|
});
|
|
1612
1645
|
/** POST create — server-generated id + self link + actions */
|
|
1613
1646
|
var CreateResponseSchema = object$1({ _actions: array$1(HateoasActionSchema).optional() }).extend({
|
|
1614
|
-
id: number$
|
|
1647
|
+
id: number$2(),
|
|
1615
1648
|
_links: array$1(HateoasLinkSchema).optional()
|
|
1616
1649
|
});
|
|
1617
1650
|
CreateResponseSchema.extend({ key: string$1() });
|
|
1618
|
-
CreateResponseSchema.extend({ seqNo: number$
|
|
1651
|
+
CreateResponseSchema.extend({ seqNo: number$2() });
|
|
1619
1652
|
object$1({
|
|
1620
1653
|
items: array$1(object$1({
|
|
1621
|
-
id: number$
|
|
1622
|
-
seqNo: number$
|
|
1654
|
+
id: number$2(),
|
|
1655
|
+
seqNo: number$2()
|
|
1623
1656
|
})),
|
|
1624
|
-
total: number$
|
|
1657
|
+
total: number$2(),
|
|
1625
1658
|
_actions: array$1(HateoasActionSchema).optional()
|
|
1626
1659
|
});
|
|
1627
|
-
CreateResponseSchema.extend({ revNo: number$
|
|
1628
|
-
CreateResponseSchema.extend({ runNo: number$
|
|
1660
|
+
CreateResponseSchema.extend({ revNo: number$2() });
|
|
1661
|
+
CreateResponseSchema.extend({ runNo: number$2() });
|
|
1629
1662
|
object$1({
|
|
1630
|
-
id: number$
|
|
1663
|
+
id: number$2(),
|
|
1631
1664
|
username: string$1(),
|
|
1632
1665
|
apiKey: string$1().nullable().optional(),
|
|
1633
1666
|
_links: array$1(HateoasLinkSchema).optional(),
|
|
@@ -1656,30 +1689,30 @@ object$1({
|
|
|
1656
1689
|
});
|
|
1657
1690
|
object$1({
|
|
1658
1691
|
items: array$1(object$1({
|
|
1659
|
-
fieldSeqNo: number$
|
|
1692
|
+
fieldSeqNo: number$2(),
|
|
1660
1693
|
value: FieldValueSchema,
|
|
1661
1694
|
validation: FieldValidationSchema
|
|
1662
1695
|
})),
|
|
1663
|
-
total: number$
|
|
1696
|
+
total: number$2(),
|
|
1664
1697
|
_actions: array$1(HateoasActionSchema).optional()
|
|
1665
1698
|
});
|
|
1666
1699
|
object$1({
|
|
1667
|
-
setCount: number$
|
|
1700
|
+
setCount: number$2(),
|
|
1668
1701
|
_actions: array$1(HateoasActionSchema).optional()
|
|
1669
1702
|
});
|
|
1670
1703
|
//#endregion
|
|
1671
1704
|
//#region ../shared/dist/operation-dependency-types.js
|
|
1672
1705
|
var OperationDependencySchema = object$1({
|
|
1673
|
-
id: number$
|
|
1674
|
-
predecessorSeqNo: number$
|
|
1706
|
+
id: number$2(),
|
|
1707
|
+
predecessorSeqNo: number$2(),
|
|
1675
1708
|
predecessorTitle: string$1(),
|
|
1676
1709
|
createdAt: datetime(),
|
|
1677
1710
|
createdBy: string$1()
|
|
1678
1711
|
});
|
|
1679
|
-
var CreateOperationDependencySchema = object$1({ predecessorSeqNo: number$
|
|
1712
|
+
var CreateOperationDependencySchema = object$1({ predecessorSeqNo: number$2().int().min(1) }).strict();
|
|
1680
1713
|
object$1({
|
|
1681
1714
|
items: array$1(OperationDependencySchema),
|
|
1682
|
-
total: number$
|
|
1715
|
+
total: number$2(),
|
|
1683
1716
|
_links: array$1(HateoasLinkSchema),
|
|
1684
1717
|
_actions: array$1(HateoasActionSchema).optional(),
|
|
1685
1718
|
_actionTemplates: array$1(HateoasActionTemplateSchema).optional()
|
|
@@ -1693,8 +1726,8 @@ var OperationRunCommentTypeEnum = _enum$1([
|
|
|
1693
1726
|
]);
|
|
1694
1727
|
OperationRunCommentTypeEnum.enum;
|
|
1695
1728
|
var OperationRunCommentSchema = object$1({
|
|
1696
|
-
id: number$
|
|
1697
|
-
operationRunId: number$
|
|
1729
|
+
id: number$2(),
|
|
1730
|
+
operationRunId: number$2(),
|
|
1698
1731
|
type: OperationRunCommentTypeEnum,
|
|
1699
1732
|
body: string$1(),
|
|
1700
1733
|
createdAt: datetime(),
|
|
@@ -1707,7 +1740,7 @@ object$1({
|
|
|
1707
1740
|
}).strict();
|
|
1708
1741
|
object$1({
|
|
1709
1742
|
items: array$1(OperationRunCommentSchema),
|
|
1710
|
-
total: number$
|
|
1743
|
+
total: number$2(),
|
|
1711
1744
|
_links: array$1(HateoasLinkSchema),
|
|
1712
1745
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1713
1746
|
_actions: array$1(HateoasActionSchema).optional()
|
|
@@ -1717,11 +1750,12 @@ object$1({
|
|
|
1717
1750
|
var OrderStatusEnum = _enum$1(["active", "archived"]);
|
|
1718
1751
|
var OrderStatus = OrderStatusEnum.enum;
|
|
1719
1752
|
var OrderSchema = object$1({
|
|
1720
|
-
id: number$
|
|
1753
|
+
id: number$2(),
|
|
1721
1754
|
key: string$1(),
|
|
1722
1755
|
description: string$1(),
|
|
1723
1756
|
status: OrderStatusEnum,
|
|
1724
1757
|
itemKey: string$1().nullable(),
|
|
1758
|
+
latestApprovedRevNo: number$2().int().nullable().optional(),
|
|
1725
1759
|
createdBy: string$1(),
|
|
1726
1760
|
createdAt: datetime(),
|
|
1727
1761
|
updatedBy: string$1(),
|
|
@@ -1741,16 +1775,15 @@ var UpdateOrderSchema = object$1({
|
|
|
1741
1775
|
itemKey: string$1().max(100).nullable().optional()
|
|
1742
1776
|
}).strict();
|
|
1743
1777
|
object$1({
|
|
1744
|
-
|
|
1745
|
-
pageSize: number$2().int().min(1).max(100).optional().default(20),
|
|
1778
|
+
...paginationQuery(),
|
|
1746
1779
|
status: _enum$1(["active", "archived"]).optional(),
|
|
1747
1780
|
search: string$1().optional()
|
|
1748
1781
|
});
|
|
1749
1782
|
object$1({
|
|
1750
1783
|
items: array$1(OrderSchema),
|
|
1751
|
-
total: number$
|
|
1752
|
-
page: number$
|
|
1753
|
-
pageSize: number$
|
|
1784
|
+
total: number$2(),
|
|
1785
|
+
page: number$2(),
|
|
1786
|
+
pageSize: number$2(),
|
|
1754
1787
|
_links: array$1(HateoasLinkSchema),
|
|
1755
1788
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1756
1789
|
_actions: array$1(HateoasActionSchema).optional()
|
|
@@ -1761,13 +1794,13 @@ var PropertyChangeSchema = object$1({
|
|
|
1761
1794
|
field: string$1(),
|
|
1762
1795
|
from: union$1([
|
|
1763
1796
|
string$1(),
|
|
1764
|
-
number$
|
|
1797
|
+
number$2(),
|
|
1765
1798
|
boolean$1(),
|
|
1766
1799
|
_null()
|
|
1767
1800
|
]),
|
|
1768
1801
|
to: union$1([
|
|
1769
1802
|
string$1(),
|
|
1770
|
-
number$
|
|
1803
|
+
number$2(),
|
|
1771
1804
|
boolean$1(),
|
|
1772
1805
|
_null()
|
|
1773
1806
|
])
|
|
@@ -1779,20 +1812,20 @@ var DiffStatusEnum = _enum$1([
|
|
|
1779
1812
|
"unchanged"
|
|
1780
1813
|
]);
|
|
1781
1814
|
var FieldDiffSchema = object$1({
|
|
1782
|
-
seqNo: number$
|
|
1815
|
+
seqNo: number$2(),
|
|
1783
1816
|
label: string$1(),
|
|
1784
1817
|
status: DiffStatusEnum,
|
|
1785
1818
|
changes: array$1(PropertyChangeSchema).optional()
|
|
1786
1819
|
});
|
|
1787
1820
|
var StepDiffSchema = object$1({
|
|
1788
|
-
seqNo: number$
|
|
1821
|
+
seqNo: number$2(),
|
|
1789
1822
|
title: string$1(),
|
|
1790
1823
|
status: DiffStatusEnum,
|
|
1791
1824
|
changes: array$1(PropertyChangeSchema).optional(),
|
|
1792
1825
|
fields: array$1(FieldDiffSchema).optional()
|
|
1793
1826
|
});
|
|
1794
1827
|
var DependencyDiffSchema = object$1({
|
|
1795
|
-
predecessorSeqNo: number$
|
|
1828
|
+
predecessorSeqNo: number$2(),
|
|
1796
1829
|
predecessorTitle: string$1(),
|
|
1797
1830
|
status: _enum$1([
|
|
1798
1831
|
"added",
|
|
@@ -1801,7 +1834,7 @@ var DependencyDiffSchema = object$1({
|
|
|
1801
1834
|
])
|
|
1802
1835
|
});
|
|
1803
1836
|
var OperationDiffSchema = object$1({
|
|
1804
|
-
seqNo: number$
|
|
1837
|
+
seqNo: number$2(),
|
|
1805
1838
|
title: string$1(),
|
|
1806
1839
|
status: DiffStatusEnum,
|
|
1807
1840
|
changes: array$1(PropertyChangeSchema).optional(),
|
|
@@ -1809,25 +1842,25 @@ var OperationDiffSchema = object$1({
|
|
|
1809
1842
|
dependencies: array$1(DependencyDiffSchema).optional()
|
|
1810
1843
|
});
|
|
1811
1844
|
object$1({
|
|
1812
|
-
fromRevNo: number$
|
|
1813
|
-
toRevNo: number$
|
|
1845
|
+
fromRevNo: number$2(),
|
|
1846
|
+
toRevNo: number$2(),
|
|
1814
1847
|
revisionChanges: array$1(PropertyChangeSchema),
|
|
1815
1848
|
operations: array$1(OperationDiffSchema)
|
|
1816
1849
|
});
|
|
1817
1850
|
object$1({
|
|
1818
|
-
from: number$
|
|
1819
|
-
to: number$
|
|
1851
|
+
from: number$1().int().min(1),
|
|
1852
|
+
to: number$1().int().min(1)
|
|
1820
1853
|
});
|
|
1821
1854
|
//#endregion
|
|
1822
1855
|
//#region ../shared/dist/step-types.js
|
|
1823
1856
|
var StepSchema = object$1({
|
|
1824
|
-
id: number$
|
|
1825
|
-
operationId: number$
|
|
1826
|
-
seqNo: number$
|
|
1857
|
+
id: number$2(),
|
|
1858
|
+
operationId: number$2(),
|
|
1859
|
+
seqNo: number$2(),
|
|
1827
1860
|
title: string$1(),
|
|
1828
1861
|
instructions: string$1(),
|
|
1829
1862
|
multiSet: boolean$1(),
|
|
1830
|
-
fieldCount: number$
|
|
1863
|
+
fieldCount: number$2().optional(),
|
|
1831
1864
|
createdAt: datetime(),
|
|
1832
1865
|
createdBy: string$1(),
|
|
1833
1866
|
updatedAt: datetime(),
|
|
@@ -1837,22 +1870,22 @@ var StepSchema = object$1({
|
|
|
1837
1870
|
_actions: array$1(HateoasActionSchema).optional()
|
|
1838
1871
|
});
|
|
1839
1872
|
var CreateStepSchema = object$1({
|
|
1840
|
-
seqNo: number$
|
|
1873
|
+
seqNo: number$2().int().min(1).optional(),
|
|
1841
1874
|
title: string$1().max(200).optional(),
|
|
1842
1875
|
instructions: string$1().max(1e4).optional(),
|
|
1843
1876
|
multiSet: boolean$1().optional()
|
|
1844
1877
|
}).strict();
|
|
1845
1878
|
object$1({ items: array$1(CreateStepSchema).min(1).max(100) });
|
|
1846
1879
|
var UpdateStepSchema = object$1({
|
|
1847
|
-
seqNo: number$
|
|
1880
|
+
seqNo: number$2().int().min(1).optional(),
|
|
1848
1881
|
title: string$1().max(200).optional(),
|
|
1849
1882
|
instructions: string$1().max(1e4).optional(),
|
|
1850
1883
|
multiSet: boolean$1().optional()
|
|
1851
1884
|
}).strict();
|
|
1852
1885
|
object$1({
|
|
1853
1886
|
items: array$1(StepSchema),
|
|
1854
|
-
total: number$
|
|
1855
|
-
nextSeqNo: number$
|
|
1887
|
+
total: number$2(),
|
|
1888
|
+
nextSeqNo: number$2(),
|
|
1856
1889
|
_links: array$1(HateoasLinkSchema),
|
|
1857
1890
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1858
1891
|
_actions: array$1(HateoasActionSchema).optional()
|
|
@@ -1877,16 +1910,16 @@ object$1({
|
|
|
1877
1910
|
password: string$1().min(6).optional()
|
|
1878
1911
|
}).strict();
|
|
1879
1912
|
object$1({ permission: ErpPermissionEnum }).strict();
|
|
1880
|
-
object$1({ agentId: number$
|
|
1913
|
+
object$1({ agentId: number$2().int() }).strict();
|
|
1881
1914
|
object$1({ password: string$1().min(6) }).strict();
|
|
1882
1915
|
var UserPermissionSchema = object$1({
|
|
1883
1916
|
permission: ErpPermissionEnum,
|
|
1884
1917
|
grantedAt: string$1(),
|
|
1885
|
-
grantedBy: number$
|
|
1918
|
+
grantedBy: number$2().nullable(),
|
|
1886
1919
|
_actions: array$1(any()).optional()
|
|
1887
1920
|
});
|
|
1888
1921
|
object$1({
|
|
1889
|
-
id: number$
|
|
1922
|
+
id: number$2(),
|
|
1890
1923
|
username: string$1(),
|
|
1891
1924
|
isAgent: boolean$1(),
|
|
1892
1925
|
createdAt: string$1(),
|
|
@@ -1898,35 +1931,34 @@ object$1({
|
|
|
1898
1931
|
});
|
|
1899
1932
|
object$1({
|
|
1900
1933
|
items: array$1(object$1({
|
|
1901
|
-
id: number$
|
|
1934
|
+
id: number$2(),
|
|
1902
1935
|
username: string$1(),
|
|
1903
1936
|
isAgent: boolean$1(),
|
|
1904
1937
|
createdAt: string$1(),
|
|
1905
|
-
permissionCount: number$
|
|
1938
|
+
permissionCount: number$2()
|
|
1906
1939
|
})),
|
|
1907
|
-
total: number$
|
|
1908
|
-
page: number$
|
|
1909
|
-
pageSize: number$
|
|
1940
|
+
total: number$2(),
|
|
1941
|
+
page: number$2(),
|
|
1942
|
+
pageSize: number$2(),
|
|
1910
1943
|
_links: array$1(any()).optional(),
|
|
1911
1944
|
_linkTemplates: array$1(any()).optional(),
|
|
1912
1945
|
_actions: array$1(any()).optional()
|
|
1913
1946
|
});
|
|
1914
1947
|
object$1({
|
|
1915
|
-
|
|
1916
|
-
pageSize: number$2().int().min(1).max(100).default(20),
|
|
1948
|
+
...paginationQuery(),
|
|
1917
1949
|
search: string$1().optional()
|
|
1918
1950
|
});
|
|
1919
1951
|
//#endregion
|
|
1920
1952
|
//#region ../shared/dist/work-center-types.js
|
|
1921
1953
|
var WorkCenterUserSchema = object$1({
|
|
1922
|
-
userId: number$
|
|
1954
|
+
userId: number$2(),
|
|
1923
1955
|
username: string$1(),
|
|
1924
1956
|
createdAt: string$1(),
|
|
1925
1957
|
createdBy: string$1().nullable(),
|
|
1926
1958
|
_actions: array$1(HateoasActionSchema).optional()
|
|
1927
1959
|
});
|
|
1928
1960
|
object$1({
|
|
1929
|
-
id: number$
|
|
1961
|
+
id: number$2(),
|
|
1930
1962
|
key: string$1(),
|
|
1931
1963
|
description: string$1(),
|
|
1932
1964
|
userAssignments: array$1(WorkCenterUserSchema),
|
|
@@ -1947,24 +1979,23 @@ object$1({
|
|
|
1947
1979
|
}).strict();
|
|
1948
1980
|
object$1({ username: string$1().min(1) }).strict();
|
|
1949
1981
|
object$1({
|
|
1950
|
-
|
|
1951
|
-
pageSize: number$2().int().min(1).max(100).optional().default(20),
|
|
1982
|
+
...paginationQuery(),
|
|
1952
1983
|
search: string$1().optional()
|
|
1953
1984
|
});
|
|
1954
1985
|
object$1({
|
|
1955
1986
|
items: array$1(object$1({
|
|
1956
|
-
id: number$
|
|
1987
|
+
id: number$2(),
|
|
1957
1988
|
key: string$1(),
|
|
1958
1989
|
description: string$1(),
|
|
1959
|
-
userCount: number$
|
|
1990
|
+
userCount: number$2(),
|
|
1960
1991
|
createdAt: datetime(),
|
|
1961
1992
|
createdBy: string$1(),
|
|
1962
1993
|
updatedAt: datetime(),
|
|
1963
1994
|
updatedBy: string$1()
|
|
1964
1995
|
})),
|
|
1965
|
-
total: number$
|
|
1966
|
-
page: number$
|
|
1967
|
-
pageSize: number$
|
|
1996
|
+
total: number$2(),
|
|
1997
|
+
page: number$2(),
|
|
1998
|
+
pageSize: number$2(),
|
|
1968
1999
|
_links: array$1(HateoasLinkSchema),
|
|
1969
2000
|
_linkTemplates: array$1(HateoasLinkTemplateSchema).optional(),
|
|
1970
2001
|
_actions: array$1(HateoasActionSchema).optional()
|
|
@@ -8693,8 +8724,9 @@ var CompletionDialog = ({ opened, onClose, orderRun, orderKey, runNo, onComplete
|
|
|
8693
8724
|
const body = {};
|
|
8694
8725
|
if (instanceKey.trim()) body.instanceKey = instanceKey.trim();
|
|
8695
8726
|
if (typeof quantity === "number") body.quantity = quantity;
|
|
8727
|
+
const seqNoById = new Map(fields.map((f) => [f.id, f.seqNo]));
|
|
8696
8728
|
const fvArray = Object.entries(fieldValues).filter(([, value]) => value !== "").map(([fieldId, value]) => ({
|
|
8697
|
-
|
|
8729
|
+
fieldSeqNo: seqNoById.get(Number(fieldId)),
|
|
8698
8730
|
value
|
|
8699
8731
|
}));
|
|
8700
8732
|
if (fvArray.length > 0) body.fieldValues = fvArray;
|