ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  qualityControls: {
                      id: string;
                      workOrderStepId: string
                      | null;
                      operationId: string;
                      controlType: string;
                      result: string | null;
                      passed: boolean;
                      performedBy: string | null;
                      performedAt: Date;
                      notes: string | null;
                      photos: string[];
                      attachments: string[];
                      workOrder:
                          | {
                              id: string;
                              number: string;
                              status: string;
                              product: string
                              | undefined;
                              productCode: string | undefined;
                          }
                          | null;
                      operation: { id: string; name: string; code: string };
                      createdAt: Date;
                      updatedAt: Date;
                  }[];
                  pagination: { page: number; limit: number; total: number; pages: number };
              },
          >,
      >