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

      • request: NextRequest
      • __namedParameters: { params: Promise<{ id: string }> }

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  alternativeResources: {}[];
                  claims: (
                      {
                          client: { code: string; id: string; name: string }
                          | null;
                          product: { code: string; id: string; name: string } | null;
                      } & {}
                  )[];
                  consumedComponents: (
                      {
                          finishedProduct: { code: string; id: string; name: string }
                          | null;
                          rawMaterial: { code: string; id: string; name: string } | null;
                          unitOfMeasure:
                              | { code: string; id: string; name: string; symbol: (...)
                              | (...) }
                              | null;
                      } & {}
                  )[];
                  equipment: { code: string; id: string; name: string }
                  | null;
                  instructions: {
                      controlType: ControlType | null;
                      description: string;
                      descriptionAr: string | null;
                      frequency: string | null;
                      id: string;
                      isActive: boolean;
                      maxValue: number | null;
                      method: string | null;
                      minValue: number | null;
                      recording: string | null;
                      sequence: number;
                      targetValue: number | null;
                      type: InstructionType;
                      unit: string | null;
                  }[];
                  routing: | {
                      finishedProduct: { code: string; name: string };
                      id: string;
                      name: string;
                  }
                  | null;
                  tools: (
                      {
                          finishedProduct: { code: string; id: string; name: string }
                          | null;
                          rawMaterial: { code: string; id: string; name: string } | null;
                          unitOfMeasure:
                              | { code: string; id: string; name: string; symbol: (...)
                              | (...) }
                              | null;
                      } & {}
                  )[];
                  workCenter: { code: string; id: string; name: string }
                  | null;
                  workOrderSteps: (
                      {
                          operatorUser: { name: (...) | (...) }
                          | null;
                          workOrder: { id: string; number: string; status: WorkOrderStatus };
                      } & {}
                  )[];
                  workStation: { code: string; id: string; name: string }
                  | null;
              } & {},
          >,
      >