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

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

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  finishedProduct: {
                      billOfMaterials: (
                          {
                              finishedProductComponent: | {
                                  client: ...;
                                  code: ...;
                                  cost: ...;
                                  id: ...;
                                  name: ...;
                              }
                              | null;
                              rawMaterial: | {
                                  code: ...;
                                  cost: ...;
                                  id: ...;
                                  name: ...;
                                  supplier: ...;
                              }
                              | null;
                          } & {}
                      )[];
                      category: { id: string; name: string }
                      | null;
                      categoryId: string | null;
                      client:
                          | {
                              code: string;
                              currency: { code: string; id: string; symbol: string }
                              | null;
                              id: string;
                              name: string;
                          }
                          | null;
                      code: string;
                      description: string
                      | null;
                      id: string;
                      name: string;
                  };
                  operations: (
                      {
                          consumedComponents: {
                              bomQuantity: number;
                              calculatedQuantity: (...)
                              | (...);
                              finishedProduct: (...) | (...);
                              id: string;
                              rawMaterial: (...) | (...);
                              sequence: number;
                              unitOfMeasure: (...) | (...);
                          }[];
                          equipment: { code: string; id: string; name: string }
                          | null;
                          instructions: {
                              controlType: (...) | (...);
                              description: string;
                              descriptionAr: (...) | (...);
                              frequency: (...) | (...);
                              id: string;
                              maxValue: (...) | (...);
                              method: (...) | (...);
                              minValue: (...) | (...);
                              recording: (...) | (...);
                              sequence: number;
                              targetValue: (...) | (...);
                              type: InstructionType;
                              unit: (...) | (...);
                          }[];
                          timingABC: | {
                              cadencePerHour: number;
                              calculatedA: number;
                              calculatedB: number;
                              calculatedC: number;
                              coefD: number;
                              coefE: number;
                              coefF: number;
                              id: string;
                              isActive: boolean;
                              notes: (...)
                              | (...);
                              timeA: number;
                              timeB: number;
                              timeC: number;
                              totalTime: number;
                              totalTimePerUnit: number;
                          }
                          | null;
                          tools: {
                              finishedProduct: (...)
                              | (...);
                              id: string;
                              quantity: number;
                              rawMaterial: (...) | (...);
                              unitOfMeasure: (...) | (...);
                          }[];
                          workStation: | {
                              code: string;
                              costPerHour: (...)
                              | (...);
                              id: string;
                              name: string;
                          }
                          | null;
                      } & {}
                  )[];
                  unitOfMeasure: | {
                      code: string;
                      id: string;
                      name: string;
                      symbol: string
                      | null;
                  }
                  | null;
              } & {},
          >,
      >