mirror of
https://github.com/s-frick/effigenix.git
synced 2026-03-28 12:09:35 +01:00
feat(tui): Create-Screen für Produktionsaufträge
Types, API-Client Resource, Hook und TUI-Screen für den neuen POST /api/production/production-orders Endpoint. Menüeintrag im Produktionsmenü ergänzt.
This commit is contained in:
parent
2938628db4
commit
fb8387c10e
10 changed files with 381 additions and 2 deletions
|
|
@ -436,6 +436,22 @@ export interface paths {
|
|||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/api/production/production-orders": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
get?: never;
|
||||
put?: never;
|
||||
post: operations["createProductionOrder"];
|
||||
delete?: never;
|
||||
options?: never;
|
||||
head?: never;
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/api/production/batches": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
|
|
@ -1459,6 +1475,30 @@ export interface components {
|
|||
subRecipeId?: string;
|
||||
substitutable?: boolean;
|
||||
};
|
||||
CreateProductionOrderRequest: {
|
||||
recipeId: string;
|
||||
plannedQuantity: string;
|
||||
plannedQuantityUnit: string;
|
||||
/** Format: date */
|
||||
plannedDate: string;
|
||||
priority: string;
|
||||
notes?: string;
|
||||
};
|
||||
ProductionOrderResponse: {
|
||||
id?: string;
|
||||
recipeId?: string;
|
||||
status?: string;
|
||||
plannedQuantity?: string;
|
||||
plannedQuantityUnit?: string;
|
||||
/** Format: date */
|
||||
plannedDate?: string;
|
||||
priority?: string;
|
||||
notes?: string;
|
||||
/** Format: date-time */
|
||||
createdAt?: string;
|
||||
/** Format: date-time */
|
||||
updatedAt?: string;
|
||||
};
|
||||
PlanBatchRequest: {
|
||||
recipeId: string;
|
||||
plannedQuantity: string;
|
||||
|
|
@ -2755,6 +2795,30 @@ export interface operations {
|
|||
};
|
||||
};
|
||||
};
|
||||
createProductionOrder: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
requestBody: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["CreateProductionOrderRequest"];
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description OK */
|
||||
200: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"*/*": components["schemas"]["ProductionOrderResponse"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
listBatches: {
|
||||
parameters: {
|
||||
query?: {
|
||||
|
|
|
|||
|
|
@ -26,3 +26,7 @@ export type PlanBatchRequest = components['schemas']['PlanBatchRequest'];
|
|||
export type CompleteBatchRequest = components['schemas']['CompleteBatchRequest'];
|
||||
export type RecordConsumptionRequest = components['schemas']['RecordConsumptionRequest'];
|
||||
export type CancelBatchRequest = components['schemas']['CancelBatchRequest'];
|
||||
|
||||
// Production Order types
|
||||
export type ProductionOrderDTO = components['schemas']['ProductionOrderResponse'];
|
||||
export type CreateProductionOrderRequest = components['schemas']['CreateProductionOrderRequest'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue