ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          request: NextRequest,
      ): Promise<
          | NextResponse<{ error: string; message: string }>
          | NextResponse<
              {
                  success: boolean;
                  message: string;
                  workStation: {
                      id: string;
                      code: string;
                      name: string;
                      description: string
                      | null;
                      location: string | null;
                      capacity: number | null;
                      costPerHour: number | null;
                      status: string;
                      efficiency: number;
                      isActive: boolean;
                      createdAt: Date;
                      updatedAt: Date;
                  };
                  operator: | {
                      id: string;
                      name: string
                      | null;
                      email: string;
                      phone: string | null;
                      experience: number | null;
                      skills: string[];
                      efficiency: number | null;
                      lastActive: Date | null;
                  }
                  | null;
                  equipment: {
                      id: string;
                      name: string;
                      code: string;
                      type: string;
                      status: string;
                  }[];
                  activeManufacturingOrders: {
                      id: string;
                      number: string;
                      status: ManufacturingOrderStatus;
                      priority: ManufacturingOrderPriority;
                      plannedQuantity: number;
                      producedQuantity: number;
                      product: { id: string; name: string; code: string };
                      client: { id: string; name: string; code: string } | null;
                  }[];
                  scanInfo: { scannedAt: string; scannedBy: { id: any }
                  | null };
              },
          >,
      >

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string; message: string }>
          | NextResponse<
              {
                  success: boolean;
                  message: string;
                  workStation: {
                      id: string;
                      code: string;
                      name: string;
                      description: string
                      | null;
                      location: string | null;
                      capacity: number | null;
                      costPerHour: number | null;
                      status: string;
                      efficiency: number;
                      isActive: boolean;
                      createdAt: Date;
                      updatedAt: Date;
                  };
                  operator: | {
                      id: string;
                      name: string
                      | null;
                      email: string;
                      phone: string | null;
                      experience: number | null;
                      skills: string[];
                      efficiency: number | null;
                      lastActive: Date | null;
                  }
                  | null;
                  equipment: {
                      id: string;
                      name: string;
                      code: string;
                      type: string;
                      status: string;
                  }[];
                  activeManufacturingOrders: {
                      id: string;
                      number: string;
                      status: ManufacturingOrderStatus;
                      priority: ManufacturingOrderPriority;
                      plannedQuantity: number;
                      producedQuantity: number;
                      product: { id: string; name: string; code: string };
                      client: { id: string; name: string; code: string } | null;
                  }[];
                  scanInfo: { scannedAt: string; scannedBy: { id: any }
                  | null };
              },
          >,
      >