ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              (
                  {
                      finishedProduct: {
                          billOfMaterials: {
                              finishedProductComponent: { code: ...; id: ...; name: ... }
                              | null;
                              id: string;
                              isActive: boolean;
                              quantity: number;
                              rawMaterial: { code: ...; id: ...; name: ... } | null;
                              unit: string;
                          }[];
                          client: { code: string; id: string; name: string }
                          | null;
                          clientId: string | null;
                          code: string;
                          description: string | null;
                          id: string;
                          name: string;
                      };
                      operations: (
                          {
                              consumedComponents: {
                                  bomQuantity: ...;
                                  calculatedQuantity: ...;
                                  finishedProduct: ...;
                                  id: ...;
                                  rawMaterial: ...;
                                  sequence: ...;
                                  unitOfMeasure: ...;
                              }[];
                              equipment: { code: ...; id: ...; name: ... }
                              | null;
                              instructions: {
                                  controlType: ...;
                                  description: ...;
                                  descriptionAr: ...;
                                  frequency: ...;
                                  id: ...;
                                  maxValue: ...;
                                  method: ...;
                                  minValue: ...;
                                  sequence: ...;
                                  targetValue: ...;
                                  type: ...;
                                  unit: ...;
                              }[];
                              timingABC: | {
                                  cadencePerHour: ...;
                                  id: ...;
                                  timeA: ...;
                                  timeB: ...;
                                  timeC: ...;
                              }
                              | null;
                              tools: {
                                  finishedProduct: ...;
                                  id: ...;
                                  quantity: ...;
                                  rawMaterial: ...;
                                  unitOfMeasure: ...;
                              }[];
                              workStation: | { code: ...; costPerHour: ...; id: ...; name: ... }
                              | null;
                          } & {}
                      )[];
                      unitOfMeasure: | {
                          code: string;
                          id: string;
                          name: string;
                          symbol: string
                          | null;
                      }
                      | null;
                  } & {}
              )[],
          >,
      >