@happyvertical/smrt-manufacturing 0.61.3 → 0.61.4
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.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +462 -201
- package/dist/models/BillOfMaterials.d.ts.map +1 -1
- package/dist/models/BomLine.d.ts.map +1 -1
- package/dist/models/Operation.d.ts.map +1 -1
- package/dist/models/ProductionRun.d.ts.map +1 -1
- package/dist/models/ProductionRunCompletion.d.ts.map +1 -1
- package/dist/models/RoutingStep.d.ts +2 -2
- package/dist/models/RoutingStep.d.ts.map +1 -1
- package/dist/services/RoutingService.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +7 -7
- package/package.json +10 -10
package/dist/manifest.json
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
5
|
-
"packageVersion": "0.61.
|
|
5
|
+
"packageVersion": "0.61.4",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-manufacturing:BillOfMaterialsCollection": {
|
|
8
8
|
"name": "billofmaterialscollection",
|
|
9
9
|
"className": "BillOfMaterialsCollection",
|
|
10
10
|
"qualifiedName": "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection",
|
|
11
11
|
"collection": "billofmaterialses",
|
|
12
|
-
"filePath": "
|
|
12
|
+
"filePath": "src/collections/BillOfMaterialsCollection.ts",
|
|
13
13
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
14
14
|
"fields": {},
|
|
15
15
|
"methods": {
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"className": "BomLineCollection",
|
|
195
195
|
"qualifiedName": "@happyvertical/smrt-manufacturing:BomLineCollection",
|
|
196
196
|
"collection": "bomlines",
|
|
197
|
-
"filePath": "
|
|
197
|
+
"filePath": "src/collections/BomLineCollection.ts",
|
|
198
198
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
199
199
|
"fields": {},
|
|
200
200
|
"methods": {
|
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
"className": "OperationCollection",
|
|
365
365
|
"qualifiedName": "@happyvertical/smrt-manufacturing:OperationCollection",
|
|
366
366
|
"collection": "operations",
|
|
367
|
-
"filePath": "
|
|
367
|
+
"filePath": "src/collections/OperationCollection.ts",
|
|
368
368
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
369
369
|
"fields": {},
|
|
370
370
|
"methods": {
|
|
@@ -433,7 +433,7 @@
|
|
|
433
433
|
],
|
|
434
434
|
"schema": {
|
|
435
435
|
"tableName": "manufacturing_operations",
|
|
436
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_operations\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"code\" TEXT NOT NULL DEFAULT '',\n \"name\" TEXT
|
|
436
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_operations\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"code\" TEXT NOT NULL DEFAULT '',\n \"name\" TEXT DEFAULT '',\n \"category\" TEXT DEFAULT '',\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"required_qualification_id\" UUID\n);",
|
|
437
437
|
"columns": {
|
|
438
438
|
"_sync_origin_device_id": {
|
|
439
439
|
"type": "TEXT"
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
},
|
|
481
481
|
"name": {
|
|
482
482
|
"type": "TEXT",
|
|
483
|
-
"notNull":
|
|
483
|
+
"notNull": false,
|
|
484
484
|
"unique": false,
|
|
485
485
|
"default": ""
|
|
486
486
|
},
|
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
]
|
|
535
535
|
}
|
|
536
536
|
],
|
|
537
|
-
"version": "
|
|
537
|
+
"version": "59654ee3"
|
|
538
538
|
},
|
|
539
539
|
"importPath": "@happyvertical/smrt-manufacturing"
|
|
540
540
|
},
|
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
"className": "ProductionRunCollection",
|
|
544
544
|
"qualifiedName": "@happyvertical/smrt-manufacturing:ProductionRunCollection",
|
|
545
545
|
"collection": "productionruns",
|
|
546
|
-
"filePath": "
|
|
546
|
+
"filePath": "src/collections/ProductionRunCollection.ts",
|
|
547
547
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
548
548
|
"fields": {},
|
|
549
549
|
"methods": {
|
|
@@ -711,7 +711,7 @@
|
|
|
711
711
|
"className": "ProductionRunCompletionCollection",
|
|
712
712
|
"qualifiedName": "@happyvertical/smrt-manufacturing:ProductionRunCompletionCollection",
|
|
713
713
|
"collection": "productionruncompletions",
|
|
714
|
-
"filePath": "
|
|
714
|
+
"filePath": "src/collections/ProductionRunCompletionCollection.ts",
|
|
715
715
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
716
716
|
"fields": {},
|
|
717
717
|
"methods": {
|
|
@@ -859,7 +859,7 @@
|
|
|
859
859
|
"className": "RoutingStepCollection",
|
|
860
860
|
"qualifiedName": "@happyvertical/smrt-manufacturing:RoutingStepCollection",
|
|
861
861
|
"collection": "routingsteps",
|
|
862
|
-
"filePath": "
|
|
862
|
+
"filePath": "src/collections/RoutingStepCollection.ts",
|
|
863
863
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
864
864
|
"fields": {},
|
|
865
865
|
"methods": {
|
|
@@ -918,7 +918,7 @@
|
|
|
918
918
|
],
|
|
919
919
|
"schema": {
|
|
920
920
|
"tableName": "manufacturing_routing_steps",
|
|
921
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_routing_steps\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"bom_id\" UUID NOT NULL,\n \"operation_id\" UUID
|
|
921
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_routing_steps\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"bom_id\" UUID NOT NULL,\n \"operation_id\" UUID,\n \"sequence\" INTEGER NOT NULL DEFAULT 1,\n \"estimated_minutes\" REAL,\n \"notes\" TEXT DEFAULT ''\n);",
|
|
922
922
|
"columns": {
|
|
923
923
|
"_sync_origin_device_id": {
|
|
924
924
|
"type": "TEXT"
|
|
@@ -972,7 +972,7 @@
|
|
|
972
972
|
"operation_id": {
|
|
973
973
|
"type": "UUID",
|
|
974
974
|
"referenceKind": "foreignKey",
|
|
975
|
-
"notNull":
|
|
975
|
+
"notNull": false,
|
|
976
976
|
"unique": false,
|
|
977
977
|
"foreignKey": {
|
|
978
978
|
"table": "manufacturing_operations",
|
|
@@ -1031,7 +1031,7 @@
|
|
|
1031
1031
|
]
|
|
1032
1032
|
}
|
|
1033
1033
|
],
|
|
1034
|
-
"version": "
|
|
1034
|
+
"version": "774aec6a"
|
|
1035
1035
|
},
|
|
1036
1036
|
"importPath": "@happyvertical/smrt-manufacturing"
|
|
1037
1037
|
},
|
|
@@ -1040,24 +1040,26 @@
|
|
|
1040
1040
|
"className": "Assembly",
|
|
1041
1041
|
"qualifiedName": "@happyvertical/smrt-manufacturing:Assembly",
|
|
1042
1042
|
"collection": "products",
|
|
1043
|
-
"filePath": "
|
|
1043
|
+
"filePath": "src/models/Assembly.ts",
|
|
1044
1044
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
1045
1045
|
"fields": {
|
|
1046
1046
|
"created_at": {
|
|
1047
1047
|
"type": "datetime",
|
|
1048
|
+
"_meta": {
|
|
1049
|
+
"__statedOptions": []
|
|
1050
|
+
},
|
|
1048
1051
|
"required": false
|
|
1049
1052
|
},
|
|
1050
1053
|
"updated_at": {
|
|
1051
1054
|
"type": "datetime",
|
|
1055
|
+
"_meta": {
|
|
1056
|
+
"__statedOptions": []
|
|
1057
|
+
},
|
|
1052
1058
|
"required": false
|
|
1053
1059
|
},
|
|
1054
1060
|
"tenantId": {
|
|
1055
1061
|
"type": "text",
|
|
1056
|
-
"required": false,
|
|
1057
1062
|
"_meta": {
|
|
1058
|
-
"generated": true,
|
|
1059
|
-
"source": "tenantScoped_decorator",
|
|
1060
|
-
"sqlType": "UUID",
|
|
1061
1063
|
"__tenancy": {
|
|
1062
1064
|
"isTenantIdField": true,
|
|
1063
1065
|
"mode": "optional",
|
|
@@ -1065,11 +1067,29 @@
|
|
|
1065
1067
|
"autoFilter": true,
|
|
1066
1068
|
"autoPopulate": true,
|
|
1067
1069
|
"allowSuperAdminBypass": false
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
+
},
|
|
1071
|
+
"__statedOptions": [
|
|
1072
|
+
"sqlType",
|
|
1073
|
+
"nullable",
|
|
1074
|
+
"__tenancy",
|
|
1075
|
+
"required",
|
|
1076
|
+
"generated",
|
|
1077
|
+
"source"
|
|
1078
|
+
],
|
|
1079
|
+
"required": false,
|
|
1080
|
+
"sqlType": "UUID",
|
|
1081
|
+
"generated": true,
|
|
1082
|
+
"source": "tenantScoped_decorator"
|
|
1083
|
+
},
|
|
1084
|
+
"required": false
|
|
1070
1085
|
},
|
|
1071
1086
|
"productType": {
|
|
1072
|
-
"type": "
|
|
1087
|
+
"type": "text",
|
|
1088
|
+
"_meta": {
|
|
1089
|
+
"__statedOptions": [
|
|
1090
|
+
"enum"
|
|
1091
|
+
]
|
|
1092
|
+
},
|
|
1073
1093
|
"required": false,
|
|
1074
1094
|
"enum": [
|
|
1075
1095
|
"product",
|
|
@@ -1079,100 +1099,160 @@
|
|
|
1079
1099
|
},
|
|
1080
1100
|
"name": {
|
|
1081
1101
|
"type": "text",
|
|
1082
|
-
"required": false,
|
|
1083
|
-
"description": "The product name, as customers see it.",
|
|
1084
1102
|
"_meta": {
|
|
1103
|
+
"__statedOptions": [
|
|
1104
|
+
"description"
|
|
1105
|
+
],
|
|
1085
1106
|
"description": "The product name, as customers see it."
|
|
1086
|
-
}
|
|
1107
|
+
},
|
|
1108
|
+
"required": false,
|
|
1109
|
+
"description": "The product name, as customers see it."
|
|
1087
1110
|
},
|
|
1088
1111
|
"description": {
|
|
1089
1112
|
"type": "text",
|
|
1090
|
-
"required": false,
|
|
1091
|
-
"description": "A few words on what the product is and who it is for.",
|
|
1092
1113
|
"_meta": {
|
|
1114
|
+
"__statedOptions": [
|
|
1115
|
+
"description"
|
|
1116
|
+
],
|
|
1093
1117
|
"description": "A few words on what the product is and who it is for."
|
|
1094
|
-
}
|
|
1118
|
+
},
|
|
1119
|
+
"required": false,
|
|
1120
|
+
"description": "A few words on what the product is and who it is for."
|
|
1095
1121
|
},
|
|
1096
1122
|
"category": {
|
|
1097
1123
|
"type": "text",
|
|
1124
|
+
"_meta": {
|
|
1125
|
+
"__statedOptions": []
|
|
1126
|
+
},
|
|
1098
1127
|
"required": false
|
|
1099
1128
|
},
|
|
1100
1129
|
"manufacturer": {
|
|
1101
1130
|
"type": "text",
|
|
1131
|
+
"_meta": {
|
|
1132
|
+
"__statedOptions": []
|
|
1133
|
+
},
|
|
1102
1134
|
"required": false
|
|
1103
1135
|
},
|
|
1104
1136
|
"model": {
|
|
1105
1137
|
"type": "text",
|
|
1138
|
+
"_meta": {
|
|
1139
|
+
"__statedOptions": []
|
|
1140
|
+
},
|
|
1106
1141
|
"required": false
|
|
1107
1142
|
},
|
|
1108
1143
|
"price": {
|
|
1109
1144
|
"type": "integer",
|
|
1110
|
-
"required": true,
|
|
1111
|
-
"default": 0,
|
|
1112
|
-
"description": "The price in minor units (cents), for example 1999 for 19.99.",
|
|
1113
1145
|
"_meta": {
|
|
1146
|
+
"__statedOptions": [
|
|
1147
|
+
"description",
|
|
1148
|
+
"default"
|
|
1149
|
+
],
|
|
1114
1150
|
"description": "The price in minor units (cents), for example 1999 for 19.99."
|
|
1115
|
-
}
|
|
1151
|
+
},
|
|
1152
|
+
"required": true,
|
|
1153
|
+
"default": 0,
|
|
1154
|
+
"description": "The price in minor units (cents), for example 1999 for 19.99."
|
|
1116
1155
|
},
|
|
1117
1156
|
"defaultSalesTaxCodeId": {
|
|
1118
1157
|
"type": "crossPackageRef",
|
|
1119
|
-
"required": false,
|
|
1120
|
-
"related": "@happyvertical/smrt-commerce:TaxCode",
|
|
1121
1158
|
"_meta": {
|
|
1159
|
+
"__statedOptions": [
|
|
1160
|
+
"description",
|
|
1161
|
+
"related"
|
|
1162
|
+
],
|
|
1122
1163
|
"description": "The tax code normally used when this product is sold."
|
|
1123
|
-
}
|
|
1164
|
+
},
|
|
1165
|
+
"required": false,
|
|
1166
|
+
"related": "@happyvertical/smrt-commerce:TaxCode",
|
|
1167
|
+
"description": "The tax code normally used when this product is sold."
|
|
1124
1168
|
},
|
|
1125
1169
|
"defaultPurchaseTaxCodeId": {
|
|
1126
1170
|
"type": "crossPackageRef",
|
|
1127
|
-
"required": false,
|
|
1128
|
-
"related": "@happyvertical/smrt-commerce:TaxCode",
|
|
1129
1171
|
"_meta": {
|
|
1172
|
+
"__statedOptions": [
|
|
1173
|
+
"description",
|
|
1174
|
+
"related"
|
|
1175
|
+
],
|
|
1130
1176
|
"description": "The tax code normally used when this product is purchased."
|
|
1131
|
-
}
|
|
1177
|
+
},
|
|
1178
|
+
"required": false,
|
|
1179
|
+
"related": "@happyvertical/smrt-commerce:TaxCode",
|
|
1180
|
+
"description": "The tax code normally used when this product is purchased."
|
|
1132
1181
|
},
|
|
1133
1182
|
"inStock": {
|
|
1134
1183
|
"type": "boolean",
|
|
1184
|
+
"_meta": {
|
|
1185
|
+
"__statedOptions": [
|
|
1186
|
+
"default"
|
|
1187
|
+
]
|
|
1188
|
+
},
|
|
1135
1189
|
"required": true,
|
|
1136
1190
|
"default": true
|
|
1137
1191
|
},
|
|
1138
1192
|
"specifications": {
|
|
1139
1193
|
"type": "json",
|
|
1194
|
+
"_meta": {
|
|
1195
|
+
"__statedOptions": [
|
|
1196
|
+
"default"
|
|
1197
|
+
]
|
|
1198
|
+
},
|
|
1140
1199
|
"required": false,
|
|
1141
1200
|
"default": {}
|
|
1142
1201
|
},
|
|
1143
1202
|
"tags": {
|
|
1144
1203
|
"type": "json",
|
|
1204
|
+
"_meta": {
|
|
1205
|
+
"__statedOptions": [
|
|
1206
|
+
"default"
|
|
1207
|
+
]
|
|
1208
|
+
},
|
|
1145
1209
|
"required": false,
|
|
1146
1210
|
"default": []
|
|
1147
1211
|
},
|
|
1148
1212
|
"estimatedLabourMinutes": {
|
|
1149
1213
|
"type": "integer",
|
|
1150
|
-
"required": false,
|
|
1151
|
-
"default": 0,
|
|
1152
|
-
"description": "About how many minutes it takes to make one.",
|
|
1153
1214
|
"_meta": {
|
|
1215
|
+
"__statedOptions": [
|
|
1216
|
+
"description",
|
|
1217
|
+
"default"
|
|
1218
|
+
],
|
|
1154
1219
|
"description": "About how many minutes it takes to make one."
|
|
1155
|
-
}
|
|
1220
|
+
},
|
|
1221
|
+
"required": false,
|
|
1222
|
+
"default": 0,
|
|
1223
|
+
"description": "About how many minutes it takes to make one."
|
|
1156
1224
|
},
|
|
1157
1225
|
"defaultOperationId": {
|
|
1158
1226
|
"type": "foreignKey",
|
|
1159
|
-
"required": false,
|
|
1160
|
-
"related": "Operation",
|
|
1161
|
-
"description": "The kind of work usually booked to this assembly.",
|
|
1162
1227
|
"_meta": {
|
|
1228
|
+
"__statedOptions": [
|
|
1229
|
+
"description",
|
|
1230
|
+
"nullable",
|
|
1231
|
+
"onDelete",
|
|
1232
|
+
"related",
|
|
1233
|
+
"required"
|
|
1234
|
+
],
|
|
1163
1235
|
"description": "The kind of work usually booked to this assembly.",
|
|
1164
1236
|
"nullable": true,
|
|
1165
|
-
"onDelete": "RESTRICT"
|
|
1166
|
-
|
|
1237
|
+
"onDelete": "RESTRICT",
|
|
1238
|
+
"required": false
|
|
1239
|
+
},
|
|
1240
|
+
"required": false,
|
|
1241
|
+
"related": "Operation",
|
|
1242
|
+
"description": "The kind of work usually booked to this assembly."
|
|
1167
1243
|
},
|
|
1168
1244
|
"partReference": {
|
|
1169
1245
|
"type": "text",
|
|
1170
|
-
"required": false,
|
|
1171
|
-
"default": "",
|
|
1172
|
-
"description": "Your own drawing or part number for this assembly.",
|
|
1173
1246
|
"_meta": {
|
|
1247
|
+
"__statedOptions": [
|
|
1248
|
+
"description",
|
|
1249
|
+
"default"
|
|
1250
|
+
],
|
|
1174
1251
|
"description": "Your own drawing or part number for this assembly."
|
|
1175
|
-
}
|
|
1252
|
+
},
|
|
1253
|
+
"required": false,
|
|
1254
|
+
"default": "",
|
|
1255
|
+
"description": "Your own drawing or part number for this assembly."
|
|
1176
1256
|
}
|
|
1177
1257
|
},
|
|
1178
1258
|
"methods": {
|
|
@@ -1486,15 +1566,12 @@
|
|
|
1486
1566
|
"className": "BillOfMaterials",
|
|
1487
1567
|
"qualifiedName": "@happyvertical/smrt-manufacturing:BillOfMaterials",
|
|
1488
1568
|
"collection": "billofmaterialses",
|
|
1489
|
-
"filePath": "
|
|
1569
|
+
"filePath": "src/models/BillOfMaterials.ts",
|
|
1490
1570
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
1491
1571
|
"fields": {
|
|
1492
1572
|
"tenantId": {
|
|
1493
1573
|
"type": "text",
|
|
1494
|
-
"required": false,
|
|
1495
1574
|
"_meta": {
|
|
1496
|
-
"sqlType": "UUID",
|
|
1497
|
-
"nullable": true,
|
|
1498
1575
|
"__tenancy": {
|
|
1499
1576
|
"isTenantIdField": true,
|
|
1500
1577
|
"autoFilter": true,
|
|
@@ -1504,46 +1581,77 @@
|
|
|
1504
1581
|
"mode": "optional",
|
|
1505
1582
|
"field": "tenantId",
|
|
1506
1583
|
"allowSuperAdminBypass": false
|
|
1507
|
-
}
|
|
1508
|
-
|
|
1584
|
+
},
|
|
1585
|
+
"__statedOptions": [
|
|
1586
|
+
"sqlType",
|
|
1587
|
+
"nullable",
|
|
1588
|
+
"__tenancy",
|
|
1589
|
+
"required"
|
|
1590
|
+
],
|
|
1591
|
+
"sqlType": "UUID",
|
|
1592
|
+
"nullable": true,
|
|
1593
|
+
"required": false
|
|
1594
|
+
},
|
|
1595
|
+
"required": false
|
|
1509
1596
|
},
|
|
1510
1597
|
"productId": {
|
|
1511
1598
|
"type": "text",
|
|
1512
|
-
"required": true,
|
|
1513
|
-
"default": "",
|
|
1514
|
-
"description": "The assembly this list of parts is for.",
|
|
1515
1599
|
"_meta": {
|
|
1600
|
+
"__statedOptions": [
|
|
1601
|
+
"required",
|
|
1602
|
+
"requiredFor",
|
|
1603
|
+
"description",
|
|
1604
|
+
"default"
|
|
1605
|
+
],
|
|
1516
1606
|
"required": true,
|
|
1517
|
-
"description": "The assembly this list of parts is for."
|
|
1518
|
-
|
|
1607
|
+
"description": "The assembly this list of parts is for.",
|
|
1608
|
+
"requiredFor": "identity"
|
|
1609
|
+
},
|
|
1610
|
+
"required": true,
|
|
1611
|
+
"default": "",
|
|
1612
|
+
"description": "The assembly this list of parts is for."
|
|
1519
1613
|
},
|
|
1520
1614
|
"version": {
|
|
1521
1615
|
"type": "integer",
|
|
1522
|
-
"required": true,
|
|
1523
|
-
"default": 1,
|
|
1524
|
-
"description": "The revision number, so you can change a list and keep the old one.",
|
|
1525
1616
|
"_meta": {
|
|
1617
|
+
"__statedOptions": [
|
|
1618
|
+
"required",
|
|
1619
|
+
"description",
|
|
1620
|
+
"default"
|
|
1621
|
+
],
|
|
1526
1622
|
"required": true,
|
|
1527
1623
|
"description": "The revision number, so you can change a list and keep the old one."
|
|
1528
|
-
}
|
|
1624
|
+
},
|
|
1625
|
+
"required": true,
|
|
1626
|
+
"default": 1,
|
|
1627
|
+
"description": "The revision number, so you can change a list and keep the old one."
|
|
1529
1628
|
},
|
|
1530
1629
|
"effectiveDate": {
|
|
1531
1630
|
"type": "datetime",
|
|
1532
|
-
"required": false,
|
|
1533
|
-
"description": "The day this list starts to be used.",
|
|
1534
1631
|
"_meta": {
|
|
1632
|
+
"__statedOptions": [
|
|
1633
|
+
"description"
|
|
1634
|
+
],
|
|
1535
1635
|
"description": "The day this list starts to be used."
|
|
1536
|
-
}
|
|
1636
|
+
},
|
|
1637
|
+
"required": false,
|
|
1638
|
+
"description": "The day this list starts to be used."
|
|
1537
1639
|
},
|
|
1538
1640
|
"status": {
|
|
1539
1641
|
"type": "text",
|
|
1540
|
-
"required": true,
|
|
1541
|
-
"default": "draft",
|
|
1542
|
-
"description": "Whether this list is a draft, in use or retired.",
|
|
1543
1642
|
"_meta": {
|
|
1643
|
+
"__statedOptions": [
|
|
1644
|
+
"required",
|
|
1645
|
+
"description",
|
|
1646
|
+
"default",
|
|
1647
|
+
"enum"
|
|
1648
|
+
],
|
|
1544
1649
|
"required": true,
|
|
1545
1650
|
"description": "Whether this list is a draft, in use or retired."
|
|
1546
1651
|
},
|
|
1652
|
+
"required": true,
|
|
1653
|
+
"default": "draft",
|
|
1654
|
+
"description": "Whether this list is a draft, in use or retired.",
|
|
1547
1655
|
"enum": [
|
|
1548
1656
|
"draft",
|
|
1549
1657
|
"active",
|
|
@@ -1552,15 +1660,24 @@
|
|
|
1552
1660
|
},
|
|
1553
1661
|
"notes": {
|
|
1554
1662
|
"type": "text",
|
|
1555
|
-
"required": false,
|
|
1556
|
-
"default": "",
|
|
1557
|
-
"description": "Anything people making it should know.",
|
|
1558
1663
|
"_meta": {
|
|
1664
|
+
"__statedOptions": [
|
|
1665
|
+
"description",
|
|
1666
|
+
"default"
|
|
1667
|
+
],
|
|
1559
1668
|
"description": "Anything people making it should know."
|
|
1560
|
-
}
|
|
1669
|
+
},
|
|
1670
|
+
"required": false,
|
|
1671
|
+
"default": "",
|
|
1672
|
+
"description": "Anything people making it should know."
|
|
1561
1673
|
},
|
|
1562
1674
|
"currency": {
|
|
1563
1675
|
"type": "text",
|
|
1676
|
+
"_meta": {
|
|
1677
|
+
"__statedOptions": [
|
|
1678
|
+
"default"
|
|
1679
|
+
]
|
|
1680
|
+
},
|
|
1564
1681
|
"required": false,
|
|
1565
1682
|
"default": "USD"
|
|
1566
1683
|
}
|
|
@@ -1724,15 +1841,12 @@
|
|
|
1724
1841
|
"className": "BomLine",
|
|
1725
1842
|
"qualifiedName": "@happyvertical/smrt-manufacturing:BomLine",
|
|
1726
1843
|
"collection": "bomlines",
|
|
1727
|
-
"filePath": "
|
|
1844
|
+
"filePath": "src/models/BomLine.ts",
|
|
1728
1845
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
1729
1846
|
"fields": {
|
|
1730
1847
|
"tenantId": {
|
|
1731
1848
|
"type": "text",
|
|
1732
|
-
"required": false,
|
|
1733
1849
|
"_meta": {
|
|
1734
|
-
"sqlType": "UUID",
|
|
1735
|
-
"nullable": true,
|
|
1736
1850
|
"__tenancy": {
|
|
1737
1851
|
"isTenantIdField": true,
|
|
1738
1852
|
"autoFilter": true,
|
|
@@ -1742,53 +1856,91 @@
|
|
|
1742
1856
|
"mode": "optional",
|
|
1743
1857
|
"field": "tenantId",
|
|
1744
1858
|
"allowSuperAdminBypass": false
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1859
|
+
},
|
|
1860
|
+
"__statedOptions": [
|
|
1861
|
+
"sqlType",
|
|
1862
|
+
"nullable",
|
|
1863
|
+
"__tenancy",
|
|
1864
|
+
"required"
|
|
1865
|
+
],
|
|
1866
|
+
"sqlType": "UUID",
|
|
1867
|
+
"nullable": true,
|
|
1868
|
+
"required": false
|
|
1869
|
+
},
|
|
1870
|
+
"required": false
|
|
1747
1871
|
},
|
|
1748
1872
|
"bomId": {
|
|
1749
1873
|
"type": "text",
|
|
1750
|
-
"required": true,
|
|
1751
|
-
"default": "",
|
|
1752
|
-
"description": "The list of parts this line belongs to.",
|
|
1753
1874
|
"_meta": {
|
|
1875
|
+
"__statedOptions": [
|
|
1876
|
+
"required",
|
|
1877
|
+
"requiredFor",
|
|
1878
|
+
"description",
|
|
1879
|
+
"default"
|
|
1880
|
+
],
|
|
1754
1881
|
"required": true,
|
|
1755
|
-
"description": "The list of parts this line belongs to."
|
|
1756
|
-
|
|
1882
|
+
"description": "The list of parts this line belongs to.",
|
|
1883
|
+
"requiredFor": "identity"
|
|
1884
|
+
},
|
|
1885
|
+
"required": true,
|
|
1886
|
+
"default": "",
|
|
1887
|
+
"description": "The list of parts this line belongs to."
|
|
1757
1888
|
},
|
|
1758
1889
|
"componentSkuId": {
|
|
1759
1890
|
"type": "text",
|
|
1760
|
-
"required": true,
|
|
1761
|
-
"default": "",
|
|
1762
|
-
"description": "The part that goes into the assembly.",
|
|
1763
1891
|
"_meta": {
|
|
1892
|
+
"__statedOptions": [
|
|
1893
|
+
"required",
|
|
1894
|
+
"requiredFor",
|
|
1895
|
+
"description",
|
|
1896
|
+
"default"
|
|
1897
|
+
],
|
|
1764
1898
|
"required": true,
|
|
1765
|
-
"description": "The part that goes into the assembly."
|
|
1766
|
-
|
|
1899
|
+
"description": "The part that goes into the assembly.",
|
|
1900
|
+
"requiredFor": "identity"
|
|
1901
|
+
},
|
|
1902
|
+
"required": true,
|
|
1903
|
+
"default": "",
|
|
1904
|
+
"description": "The part that goes into the assembly."
|
|
1767
1905
|
},
|
|
1768
1906
|
"qtyPerUnit": {
|
|
1769
1907
|
"type": "decimal",
|
|
1770
|
-
"required": false,
|
|
1771
|
-
"description": "How much of this part goes into one unit.",
|
|
1772
1908
|
"_meta": {
|
|
1909
|
+
"__statedOptions": [
|
|
1910
|
+
"description"
|
|
1911
|
+
],
|
|
1773
1912
|
"description": "How much of this part goes into one unit."
|
|
1774
|
-
}
|
|
1913
|
+
},
|
|
1914
|
+
"required": false,
|
|
1915
|
+
"description": "How much of this part goes into one unit."
|
|
1775
1916
|
},
|
|
1776
1917
|
"uom": {
|
|
1777
1918
|
"type": "text",
|
|
1778
|
-
"required": false,
|
|
1779
|
-
"default": "each",
|
|
1780
|
-
"description": "What the amount is counted in, such as each or kilograms.",
|
|
1781
1919
|
"_meta": {
|
|
1920
|
+
"__statedOptions": [
|
|
1921
|
+
"description",
|
|
1922
|
+
"default"
|
|
1923
|
+
],
|
|
1782
1924
|
"description": "What the amount is counted in, such as each or kilograms."
|
|
1783
|
-
}
|
|
1925
|
+
},
|
|
1926
|
+
"required": false,
|
|
1927
|
+
"default": "each",
|
|
1928
|
+
"description": "What the amount is counted in, such as each or kilograms."
|
|
1784
1929
|
},
|
|
1785
1930
|
"wastePercent": {
|
|
1786
1931
|
"type": "decimal",
|
|
1787
|
-
"
|
|
1788
|
-
|
|
1932
|
+
"_meta": {
|
|
1933
|
+
"__statedOptions": []
|
|
1934
|
+
},
|
|
1935
|
+
"required": false
|
|
1789
1936
|
},
|
|
1790
1937
|
"notes": {
|
|
1791
1938
|
"type": "text",
|
|
1939
|
+
"_meta": {
|
|
1940
|
+
"__statedOptions": [
|
|
1941
|
+
"default"
|
|
1942
|
+
]
|
|
1943
|
+
},
|
|
1792
1944
|
"required": false,
|
|
1793
1945
|
"default": ""
|
|
1794
1946
|
}
|
|
@@ -1957,15 +2109,12 @@
|
|
|
1957
2109
|
"className": "Operation",
|
|
1958
2110
|
"qualifiedName": "@happyvertical/smrt-manufacturing:Operation",
|
|
1959
2111
|
"collection": "operations",
|
|
1960
|
-
"filePath": "
|
|
2112
|
+
"filePath": "src/models/Operation.ts",
|
|
1961
2113
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
1962
2114
|
"fields": {
|
|
1963
2115
|
"tenantId": {
|
|
1964
2116
|
"type": "text",
|
|
1965
|
-
"required": false,
|
|
1966
2117
|
"_meta": {
|
|
1967
|
-
"sqlType": "UUID",
|
|
1968
|
-
"nullable": true,
|
|
1969
2118
|
"__tenancy": {
|
|
1970
2119
|
"isTenantIdField": true,
|
|
1971
2120
|
"autoFilter": true,
|
|
@@ -1975,50 +2124,87 @@
|
|
|
1975
2124
|
"mode": "optional",
|
|
1976
2125
|
"field": "tenantId",
|
|
1977
2126
|
"allowSuperAdminBypass": false
|
|
1978
|
-
}
|
|
1979
|
-
|
|
2127
|
+
},
|
|
2128
|
+
"__statedOptions": [
|
|
2129
|
+
"sqlType",
|
|
2130
|
+
"nullable",
|
|
2131
|
+
"__tenancy",
|
|
2132
|
+
"required"
|
|
2133
|
+
],
|
|
2134
|
+
"sqlType": "UUID",
|
|
2135
|
+
"nullable": true,
|
|
2136
|
+
"required": false
|
|
2137
|
+
},
|
|
2138
|
+
"required": false
|
|
1980
2139
|
},
|
|
1981
2140
|
"code": {
|
|
1982
2141
|
"type": "text",
|
|
1983
|
-
"required": true,
|
|
1984
|
-
"default": "",
|
|
1985
|
-
"description": "A short code for this kind of work.",
|
|
1986
2142
|
"_meta": {
|
|
2143
|
+
"__statedOptions": [
|
|
2144
|
+
"required",
|
|
2145
|
+
"requiredFor",
|
|
2146
|
+
"description",
|
|
2147
|
+
"default"
|
|
2148
|
+
],
|
|
1987
2149
|
"required": true,
|
|
1988
|
-
"description": "A short code for this kind of work."
|
|
1989
|
-
|
|
2150
|
+
"description": "A short code for this kind of work.",
|
|
2151
|
+
"requiredFor": "identity"
|
|
2152
|
+
},
|
|
2153
|
+
"required": true,
|
|
2154
|
+
"default": "",
|
|
2155
|
+
"description": "A short code for this kind of work."
|
|
1990
2156
|
},
|
|
1991
2157
|
"name": {
|
|
1992
2158
|
"type": "text",
|
|
1993
|
-
"required": true,
|
|
1994
|
-
"default": "",
|
|
1995
|
-
"description": "What this kind of work is called, such as cutting.",
|
|
1996
2159
|
"_meta": {
|
|
1997
|
-
"
|
|
2160
|
+
"__statedOptions": [
|
|
2161
|
+
"required",
|
|
2162
|
+
"description",
|
|
2163
|
+
"default"
|
|
2164
|
+
],
|
|
2165
|
+
"required": false,
|
|
1998
2166
|
"description": "What this kind of work is called, such as cutting."
|
|
1999
|
-
}
|
|
2167
|
+
},
|
|
2168
|
+
"required": false,
|
|
2169
|
+
"default": "",
|
|
2170
|
+
"description": "What this kind of work is called, such as cutting."
|
|
2000
2171
|
},
|
|
2001
2172
|
"category": {
|
|
2002
2173
|
"type": "text",
|
|
2003
|
-
"required": false,
|
|
2004
|
-
"default": "",
|
|
2005
|
-
"description": "A group to sort similar work together.",
|
|
2006
2174
|
"_meta": {
|
|
2175
|
+
"__statedOptions": [
|
|
2176
|
+
"description",
|
|
2177
|
+
"default"
|
|
2178
|
+
],
|
|
2007
2179
|
"description": "A group to sort similar work together."
|
|
2008
|
-
}
|
|
2180
|
+
},
|
|
2181
|
+
"required": false,
|
|
2182
|
+
"default": "",
|
|
2183
|
+
"description": "A group to sort similar work together."
|
|
2009
2184
|
},
|
|
2010
2185
|
"isActive": {
|
|
2011
2186
|
"type": "boolean",
|
|
2187
|
+
"_meta": {
|
|
2188
|
+
"__statedOptions": [
|
|
2189
|
+
"default"
|
|
2190
|
+
]
|
|
2191
|
+
},
|
|
2012
2192
|
"required": false,
|
|
2013
2193
|
"default": true
|
|
2014
2194
|
},
|
|
2015
2195
|
"requiredQualificationId": {
|
|
2016
2196
|
"type": "crossPackageRef",
|
|
2017
|
-
"required": false,
|
|
2018
|
-
"related": "@happyvertical/smrt-human-resources:Qualification",
|
|
2019
2197
|
"_meta": {
|
|
2020
|
-
"
|
|
2021
|
-
|
|
2198
|
+
"__statedOptions": [
|
|
2199
|
+
"nullable",
|
|
2200
|
+
"related",
|
|
2201
|
+
"required"
|
|
2202
|
+
],
|
|
2203
|
+
"nullable": true,
|
|
2204
|
+
"required": false
|
|
2205
|
+
},
|
|
2206
|
+
"required": false,
|
|
2207
|
+
"related": "@happyvertical/smrt-human-resources:Qualification"
|
|
2022
2208
|
}
|
|
2023
2209
|
},
|
|
2024
2210
|
"methods": {
|
|
@@ -2068,16 +2254,11 @@
|
|
|
2068
2254
|
"field": "code",
|
|
2069
2255
|
"rule": "required",
|
|
2070
2256
|
"fieldType": "text"
|
|
2071
|
-
},
|
|
2072
|
-
{
|
|
2073
|
-
"field": "name",
|
|
2074
|
-
"rule": "required",
|
|
2075
|
-
"fieldType": "text"
|
|
2076
2257
|
}
|
|
2077
2258
|
],
|
|
2078
2259
|
"schema": {
|
|
2079
2260
|
"tableName": "manufacturing_operations",
|
|
2080
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_operations\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"code\" TEXT NOT NULL DEFAULT '',\n \"name\" TEXT
|
|
2261
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_operations\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"code\" TEXT NOT NULL DEFAULT '',\n \"name\" TEXT DEFAULT '',\n \"category\" TEXT DEFAULT '',\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"required_qualification_id\" UUID\n);",
|
|
2081
2262
|
"columns": {
|
|
2082
2263
|
"_sync_origin_device_id": {
|
|
2083
2264
|
"type": "TEXT"
|
|
@@ -2124,7 +2305,7 @@
|
|
|
2124
2305
|
},
|
|
2125
2306
|
"name": {
|
|
2126
2307
|
"type": "TEXT",
|
|
2127
|
-
"notNull":
|
|
2308
|
+
"notNull": false,
|
|
2128
2309
|
"unique": false,
|
|
2129
2310
|
"default": ""
|
|
2130
2311
|
},
|
|
@@ -2178,7 +2359,7 @@
|
|
|
2178
2359
|
]
|
|
2179
2360
|
}
|
|
2180
2361
|
],
|
|
2181
|
-
"version": "
|
|
2362
|
+
"version": "59654ee3"
|
|
2182
2363
|
},
|
|
2183
2364
|
"importPath": "@happyvertical/smrt-manufacturing"
|
|
2184
2365
|
},
|
|
@@ -2187,15 +2368,12 @@
|
|
|
2187
2368
|
"className": "ProductionRun",
|
|
2188
2369
|
"qualifiedName": "@happyvertical/smrt-manufacturing:ProductionRun",
|
|
2189
2370
|
"collection": "productionruns",
|
|
2190
|
-
"filePath": "
|
|
2371
|
+
"filePath": "src/models/ProductionRun.ts",
|
|
2191
2372
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
2192
2373
|
"fields": {
|
|
2193
2374
|
"tenantId": {
|
|
2194
2375
|
"type": "text",
|
|
2195
|
-
"required": false,
|
|
2196
2376
|
"_meta": {
|
|
2197
|
-
"sqlType": "UUID",
|
|
2198
|
-
"nullable": true,
|
|
2199
2377
|
"__tenancy": {
|
|
2200
2378
|
"isTenantIdField": true,
|
|
2201
2379
|
"autoFilter": true,
|
|
@@ -2205,45 +2383,75 @@
|
|
|
2205
2383
|
"mode": "optional",
|
|
2206
2384
|
"field": "tenantId",
|
|
2207
2385
|
"allowSuperAdminBypass": false
|
|
2208
|
-
}
|
|
2209
|
-
|
|
2386
|
+
},
|
|
2387
|
+
"__statedOptions": [
|
|
2388
|
+
"sqlType",
|
|
2389
|
+
"nullable",
|
|
2390
|
+
"__tenancy",
|
|
2391
|
+
"required"
|
|
2392
|
+
],
|
|
2393
|
+
"sqlType": "UUID",
|
|
2394
|
+
"nullable": true,
|
|
2395
|
+
"required": false
|
|
2396
|
+
},
|
|
2397
|
+
"required": false
|
|
2210
2398
|
},
|
|
2211
2399
|
"bomId": {
|
|
2212
2400
|
"type": "foreignKey",
|
|
2213
|
-
"required": true,
|
|
2214
|
-
"related": "BillOfMaterials",
|
|
2215
|
-
"description": "The list of parts this run makes from.",
|
|
2216
2401
|
"_meta": {
|
|
2217
|
-
"
|
|
2402
|
+
"__statedOptions": [
|
|
2403
|
+
"description",
|
|
2404
|
+
"required",
|
|
2405
|
+
"requiredFor",
|
|
2406
|
+
"onDelete",
|
|
2407
|
+
"related"
|
|
2408
|
+
],
|
|
2218
2409
|
"required": true,
|
|
2410
|
+
"description": "The list of parts this run makes from.",
|
|
2411
|
+
"requiredFor": "identity",
|
|
2219
2412
|
"onDelete": "RESTRICT"
|
|
2220
|
-
}
|
|
2413
|
+
},
|
|
2414
|
+
"required": true,
|
|
2415
|
+
"related": "BillOfMaterials",
|
|
2416
|
+
"description": "The list of parts this run makes from."
|
|
2221
2417
|
},
|
|
2222
2418
|
"targetQty": {
|
|
2223
2419
|
"type": "decimal",
|
|
2224
|
-
"required": false,
|
|
2225
|
-
"description": "How many you plan to make.",
|
|
2226
2420
|
"_meta": {
|
|
2421
|
+
"__statedOptions": [
|
|
2422
|
+
"description"
|
|
2423
|
+
],
|
|
2227
2424
|
"description": "How many you plan to make."
|
|
2228
|
-
}
|
|
2425
|
+
},
|
|
2426
|
+
"required": false,
|
|
2427
|
+
"description": "How many you plan to make."
|
|
2229
2428
|
},
|
|
2230
2429
|
"completedQty": {
|
|
2231
2430
|
"type": "decimal",
|
|
2232
|
-
"required": false,
|
|
2233
|
-
"description": "How many have been finished so far.",
|
|
2234
2431
|
"_meta": {
|
|
2432
|
+
"__statedOptions": [
|
|
2433
|
+
"description"
|
|
2434
|
+
],
|
|
2235
2435
|
"description": "How many have been finished so far."
|
|
2236
|
-
}
|
|
2436
|
+
},
|
|
2437
|
+
"required": false,
|
|
2438
|
+
"description": "How many have been finished so far."
|
|
2237
2439
|
},
|
|
2238
2440
|
"status": {
|
|
2239
2441
|
"type": "text",
|
|
2240
|
-
"required": true,
|
|
2241
|
-
"default": "planned",
|
|
2242
|
-
"description": "Whether the run is planned, under way, done or cancelled.",
|
|
2243
2442
|
"_meta": {
|
|
2443
|
+
"__statedOptions": [
|
|
2444
|
+
"required",
|
|
2445
|
+
"description",
|
|
2446
|
+
"default",
|
|
2447
|
+
"enum"
|
|
2448
|
+
],
|
|
2244
2449
|
"required": true,
|
|
2245
2450
|
"description": "Whether the run is planned, under way, done or cancelled."
|
|
2246
2451
|
},
|
|
2452
|
+
"required": true,
|
|
2453
|
+
"default": "planned",
|
|
2454
|
+
"description": "Whether the run is planned, under way, done or cancelled.",
|
|
2247
2455
|
"enum": [
|
|
2248
2456
|
"planned",
|
|
2249
2457
|
"in_progress",
|
|
@@ -2410,15 +2618,12 @@
|
|
|
2410
2618
|
"className": "ProductionRunCompletion",
|
|
2411
2619
|
"qualifiedName": "@happyvertical/smrt-manufacturing:ProductionRunCompletion",
|
|
2412
2620
|
"collection": "productionruncompletions",
|
|
2413
|
-
"filePath": "
|
|
2621
|
+
"filePath": "src/models/ProductionRunCompletion.ts",
|
|
2414
2622
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
2415
2623
|
"fields": {
|
|
2416
2624
|
"tenantId": {
|
|
2417
2625
|
"type": "text",
|
|
2418
|
-
"required": false,
|
|
2419
2626
|
"_meta": {
|
|
2420
|
-
"sqlType": "UUID",
|
|
2421
|
-
"nullable": true,
|
|
2422
2627
|
"__tenancy": {
|
|
2423
2628
|
"isTenantIdField": true,
|
|
2424
2629
|
"autoFilter": true,
|
|
@@ -2428,35 +2633,59 @@
|
|
|
2428
2633
|
"mode": "optional",
|
|
2429
2634
|
"field": "tenantId",
|
|
2430
2635
|
"allowSuperAdminBypass": false
|
|
2431
|
-
}
|
|
2432
|
-
|
|
2636
|
+
},
|
|
2637
|
+
"__statedOptions": [
|
|
2638
|
+
"sqlType",
|
|
2639
|
+
"nullable",
|
|
2640
|
+
"__tenancy",
|
|
2641
|
+
"required"
|
|
2642
|
+
],
|
|
2643
|
+
"sqlType": "UUID",
|
|
2644
|
+
"nullable": true,
|
|
2645
|
+
"required": false
|
|
2646
|
+
},
|
|
2647
|
+
"required": false
|
|
2433
2648
|
},
|
|
2434
2649
|
"runId": {
|
|
2435
2650
|
"type": "foreignKey",
|
|
2436
|
-
"required": true,
|
|
2437
|
-
"related": "ProductionRun",
|
|
2438
|
-
"description": "The production run this batch belongs to.",
|
|
2439
2651
|
"_meta": {
|
|
2440
|
-
"
|
|
2652
|
+
"__statedOptions": [
|
|
2653
|
+
"description",
|
|
2654
|
+
"required",
|
|
2655
|
+
"requiredFor",
|
|
2656
|
+
"onDelete",
|
|
2657
|
+
"related"
|
|
2658
|
+
],
|
|
2441
2659
|
"required": true,
|
|
2660
|
+
"description": "The production run this batch belongs to.",
|
|
2661
|
+
"requiredFor": "identity",
|
|
2442
2662
|
"onDelete": "CASCADE"
|
|
2443
|
-
}
|
|
2663
|
+
},
|
|
2664
|
+
"required": true,
|
|
2665
|
+
"related": "ProductionRun",
|
|
2666
|
+
"description": "The production run this batch belongs to."
|
|
2444
2667
|
},
|
|
2445
2668
|
"qty": {
|
|
2446
2669
|
"type": "decimal",
|
|
2447
|
-
"required": false,
|
|
2448
|
-
"description": "How many were finished in this batch.",
|
|
2449
2670
|
"_meta": {
|
|
2671
|
+
"__statedOptions": [
|
|
2672
|
+
"description"
|
|
2673
|
+
],
|
|
2450
2674
|
"description": "How many were finished in this batch."
|
|
2451
|
-
}
|
|
2675
|
+
},
|
|
2676
|
+
"required": false,
|
|
2677
|
+
"description": "How many were finished in this batch."
|
|
2452
2678
|
},
|
|
2453
2679
|
"completedAt": {
|
|
2454
2680
|
"type": "datetime",
|
|
2455
|
-
"required": false,
|
|
2456
|
-
"description": "When this batch was finished.",
|
|
2457
2681
|
"_meta": {
|
|
2682
|
+
"__statedOptions": [
|
|
2683
|
+
"description"
|
|
2684
|
+
],
|
|
2458
2685
|
"description": "When this batch was finished."
|
|
2459
|
-
}
|
|
2686
|
+
},
|
|
2687
|
+
"required": false,
|
|
2688
|
+
"description": "When this batch was finished."
|
|
2460
2689
|
}
|
|
2461
2690
|
},
|
|
2462
2691
|
"methods": {},
|
|
@@ -2597,15 +2826,12 @@
|
|
|
2597
2826
|
"className": "RoutingStep",
|
|
2598
2827
|
"qualifiedName": "@happyvertical/smrt-manufacturing:RoutingStep",
|
|
2599
2828
|
"collection": "routingsteps",
|
|
2600
|
-
"filePath": "
|
|
2829
|
+
"filePath": "src/models/RoutingStep.ts",
|
|
2601
2830
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
2602
2831
|
"fields": {
|
|
2603
2832
|
"tenantId": {
|
|
2604
2833
|
"type": "text",
|
|
2605
|
-
"required": false,
|
|
2606
2834
|
"_meta": {
|
|
2607
|
-
"sqlType": "UUID",
|
|
2608
|
-
"nullable": true,
|
|
2609
2835
|
"__tenancy": {
|
|
2610
2836
|
"isTenantIdField": true,
|
|
2611
2837
|
"autoFilter": true,
|
|
@@ -2615,51 +2841,90 @@
|
|
|
2615
2841
|
"mode": "optional",
|
|
2616
2842
|
"field": "tenantId",
|
|
2617
2843
|
"allowSuperAdminBypass": false
|
|
2618
|
-
}
|
|
2619
|
-
|
|
2844
|
+
},
|
|
2845
|
+
"__statedOptions": [
|
|
2846
|
+
"sqlType",
|
|
2847
|
+
"nullable",
|
|
2848
|
+
"__tenancy",
|
|
2849
|
+
"required"
|
|
2850
|
+
],
|
|
2851
|
+
"sqlType": "UUID",
|
|
2852
|
+
"nullable": true,
|
|
2853
|
+
"required": false
|
|
2854
|
+
},
|
|
2855
|
+
"required": false
|
|
2620
2856
|
},
|
|
2621
2857
|
"bomId": {
|
|
2622
2858
|
"type": "foreignKey",
|
|
2623
|
-
"required": true,
|
|
2624
|
-
"related": "BillOfMaterials",
|
|
2625
|
-
"description": "The list of parts this step is part of.",
|
|
2626
2859
|
"_meta": {
|
|
2627
|
-
"
|
|
2860
|
+
"__statedOptions": [
|
|
2861
|
+
"description",
|
|
2862
|
+
"required",
|
|
2863
|
+
"requiredFor",
|
|
2864
|
+
"onDelete",
|
|
2865
|
+
"related"
|
|
2866
|
+
],
|
|
2628
2867
|
"required": true,
|
|
2868
|
+
"description": "The list of parts this step is part of.",
|
|
2869
|
+
"requiredFor": "identity",
|
|
2629
2870
|
"onDelete": "CASCADE"
|
|
2630
|
-
}
|
|
2871
|
+
},
|
|
2872
|
+
"required": true,
|
|
2873
|
+
"related": "BillOfMaterials",
|
|
2874
|
+
"description": "The list of parts this step is part of."
|
|
2631
2875
|
},
|
|
2632
2876
|
"operationId": {
|
|
2633
2877
|
"type": "foreignKey",
|
|
2634
|
-
"required": true,
|
|
2635
|
-
"related": "Operation",
|
|
2636
|
-
"description": "The kind of work done in this step.",
|
|
2637
2878
|
"_meta": {
|
|
2879
|
+
"__statedOptions": [
|
|
2880
|
+
"description",
|
|
2881
|
+
"nullable",
|
|
2882
|
+
"onDelete",
|
|
2883
|
+
"related",
|
|
2884
|
+
"required"
|
|
2885
|
+
],
|
|
2638
2886
|
"description": "The kind of work done in this step.",
|
|
2639
|
-
"
|
|
2640
|
-
"onDelete": "RESTRICT"
|
|
2641
|
-
|
|
2887
|
+
"nullable": true,
|
|
2888
|
+
"onDelete": "RESTRICT",
|
|
2889
|
+
"required": false
|
|
2890
|
+
},
|
|
2891
|
+
"required": false,
|
|
2892
|
+
"related": "Operation",
|
|
2893
|
+
"description": "The kind of work done in this step."
|
|
2642
2894
|
},
|
|
2643
2895
|
"sequence": {
|
|
2644
2896
|
"type": "integer",
|
|
2645
|
-
"required": true,
|
|
2646
|
-
"default": 1,
|
|
2647
|
-
"description": "The order of this step, starting at 1.",
|
|
2648
2897
|
"_meta": {
|
|
2898
|
+
"__statedOptions": [
|
|
2899
|
+
"required",
|
|
2900
|
+
"description",
|
|
2901
|
+
"default"
|
|
2902
|
+
],
|
|
2649
2903
|
"required": true,
|
|
2650
2904
|
"description": "The order of this step, starting at 1."
|
|
2651
|
-
}
|
|
2905
|
+
},
|
|
2906
|
+
"required": true,
|
|
2907
|
+
"default": 1,
|
|
2908
|
+
"description": "The order of this step, starting at 1."
|
|
2652
2909
|
},
|
|
2653
2910
|
"estimatedMinutes": {
|
|
2654
2911
|
"type": "decimal",
|
|
2655
|
-
"required": false,
|
|
2656
|
-
"description": "About how many minutes this step takes.",
|
|
2657
2912
|
"_meta": {
|
|
2913
|
+
"__statedOptions": [
|
|
2914
|
+
"description"
|
|
2915
|
+
],
|
|
2658
2916
|
"description": "About how many minutes this step takes."
|
|
2659
|
-
}
|
|
2917
|
+
},
|
|
2918
|
+
"required": false,
|
|
2919
|
+
"description": "About how many minutes this step takes."
|
|
2660
2920
|
},
|
|
2661
2921
|
"notes": {
|
|
2662
2922
|
"type": "text",
|
|
2923
|
+
"_meta": {
|
|
2924
|
+
"__statedOptions": [
|
|
2925
|
+
"default"
|
|
2926
|
+
]
|
|
2927
|
+
},
|
|
2663
2928
|
"required": false,
|
|
2664
2929
|
"default": ""
|
|
2665
2930
|
}
|
|
@@ -2700,11 +2965,6 @@
|
|
|
2700
2965
|
"rule": "required",
|
|
2701
2966
|
"fieldType": "foreignKey"
|
|
2702
2967
|
},
|
|
2703
|
-
{
|
|
2704
|
-
"field": "operationId",
|
|
2705
|
-
"rule": "required",
|
|
2706
|
-
"fieldType": "foreignKey"
|
|
2707
|
-
},
|
|
2708
2968
|
{
|
|
2709
2969
|
"field": "sequence",
|
|
2710
2970
|
"rule": "required",
|
|
@@ -2713,7 +2973,7 @@
|
|
|
2713
2973
|
],
|
|
2714
2974
|
"schema": {
|
|
2715
2975
|
"tableName": "manufacturing_routing_steps",
|
|
2716
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_routing_steps\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"bom_id\" UUID NOT NULL,\n \"operation_id\" UUID
|
|
2976
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_routing_steps\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"bom_id\" UUID NOT NULL,\n \"operation_id\" UUID,\n \"sequence\" INTEGER NOT NULL DEFAULT 1,\n \"estimated_minutes\" REAL,\n \"notes\" TEXT DEFAULT ''\n);",
|
|
2717
2977
|
"columns": {
|
|
2718
2978
|
"_sync_origin_device_id": {
|
|
2719
2979
|
"type": "TEXT"
|
|
@@ -2767,7 +3027,7 @@
|
|
|
2767
3027
|
"operation_id": {
|
|
2768
3028
|
"type": "UUID",
|
|
2769
3029
|
"referenceKind": "foreignKey",
|
|
2770
|
-
"notNull":
|
|
3030
|
+
"notNull": false,
|
|
2771
3031
|
"unique": false,
|
|
2772
3032
|
"foreignKey": {
|
|
2773
3033
|
"table": "manufacturing_operations",
|
|
@@ -2826,7 +3086,7 @@
|
|
|
2826
3086
|
]
|
|
2827
3087
|
}
|
|
2828
3088
|
],
|
|
2829
|
-
"version": "
|
|
3089
|
+
"version": "774aec6a"
|
|
2830
3090
|
},
|
|
2831
3091
|
"importPath": "@happyvertical/smrt-manufacturing"
|
|
2832
3092
|
}
|
|
@@ -3186,5 +3446,6 @@
|
|
|
3186
3446
|
"@happyvertical/smrt-tenancy"
|
|
3187
3447
|
]
|
|
3188
3448
|
},
|
|
3449
|
+
"schemaFingerprint": "a2d196b9a477ef05bc3c696f7578120dfcf7a11e7a190119b2b3edb70ab4f8de",
|
|
3189
3450
|
"stampsConstructors": true
|
|
3190
3451
|
}
|