mindee
Version:
Mindee Client Library for Node.js
54 lines (53 loc) • 2.92 kB
TypeScript
import { Prediction, StringDict } from "../../parsing/common";
import { NutritionFactsLabelV1ServingSize } from "./nutritionFactsLabelV1ServingSize";
import { NutritionFactsLabelV1Calorie } from "./nutritionFactsLabelV1Calorie";
import { NutritionFactsLabelV1TotalFat } from "./nutritionFactsLabelV1TotalFat";
import { NutritionFactsLabelV1SaturatedFat } from "./nutritionFactsLabelV1SaturatedFat";
import { NutritionFactsLabelV1TransFat } from "./nutritionFactsLabelV1TransFat";
import { NutritionFactsLabelV1Cholesterol } from "./nutritionFactsLabelV1Cholesterol";
import { NutritionFactsLabelV1TotalCarbohydrate } from "./nutritionFactsLabelV1TotalCarbohydrate";
import { NutritionFactsLabelV1DietaryFiber } from "./nutritionFactsLabelV1DietaryFiber";
import { NutritionFactsLabelV1TotalSugar } from "./nutritionFactsLabelV1TotalSugar";
import { NutritionFactsLabelV1AddedSugar } from "./nutritionFactsLabelV1AddedSugar";
import { NutritionFactsLabelV1Protein } from "./nutritionFactsLabelV1Protein";
import { NutritionFactsLabelV1Sodium } from "./nutritionFactsLabelV1Sodium";
import { NutritionFactsLabelV1Nutrient } from "./nutritionFactsLabelV1Nutrient";
import { AmountField } from "../../parsing/standard";
/**
* Nutrition Facts Label API version 1.0 document data.
*/
export declare class NutritionFactsLabelV1Document implements Prediction {
/** The amount of added sugars in the product. */
addedSugars: NutritionFactsLabelV1AddedSugar;
/** The amount of calories in the product. */
calories: NutritionFactsLabelV1Calorie;
/** The amount of cholesterol in the product. */
cholesterol: NutritionFactsLabelV1Cholesterol;
/** The amount of dietary fiber in the product. */
dietaryFiber: NutritionFactsLabelV1DietaryFiber;
/** The amount of nutrients in the product. */
nutrients: NutritionFactsLabelV1Nutrient[];
/** The amount of protein in the product. */
protein: NutritionFactsLabelV1Protein;
/** The amount of saturated fat in the product. */
saturatedFat: NutritionFactsLabelV1SaturatedFat;
/** The number of servings in each box of the product. */
servingPerBox: AmountField;
/** The size of a single serving of the product. */
servingSize: NutritionFactsLabelV1ServingSize;
/** The amount of sodium in the product. */
sodium: NutritionFactsLabelV1Sodium;
/** The total amount of carbohydrates in the product. */
totalCarbohydrate: NutritionFactsLabelV1TotalCarbohydrate;
/** The total amount of fat in the product. */
totalFat: NutritionFactsLabelV1TotalFat;
/** The total amount of sugars in the product. */
totalSugars: NutritionFactsLabelV1TotalSugar;
/** The amount of trans fat in the product. */
transFat: NutritionFactsLabelV1TransFat;
constructor(rawPrediction: StringDict, pageId?: number);
/**
* Default string representation.
*/
toString(): string;
}