ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          request: NextRequest,
      ): Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  finishedProduct: { code: string; id: string; name: string };
                  operations: (
                      {
                          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;
                              sequence: number;
                              targetValue: number | null;
                              type: InstructionType;
                              unit: string | null;
                          }[];
                          workCenter: { code: string; id: string; name: string }
                          | null;
                          workStation: { code: string; id: string; name: string } | null;
                      } & {}
                  )[];
                  summary: {
                      operationsCount: number;
                      totalDuration: number;
                      hasWorkStations: boolean;
                      hasEquipment: boolean;
                  };
              },
          >,
      >

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  finishedProduct: { code: string; id: string; name: string };
                  operations: (
                      {
                          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;
                              sequence: number;
                              targetValue: number | null;
                              type: InstructionType;
                              unit: string | null;
                          }[];
                          workCenter: { code: string; id: string; name: string }
                          | null;
                          workStation: { code: string; id: string; name: string } | null;
                      } & {}
                  )[];
                  summary: {
                      operationsCount: number;
                      totalDuration: number;
                      hasWorkStations: boolean;
                      hasEquipment: boolean;
                  };
              },
          >,
      >