Wrapper of OFF API

Constructors

Properties

baseUrl: string
fetch: ((input, init?) => Promise<Response>)

Type declaration

    • (input, init?): Promise<Response>
    • Parameters

      • input: RequestInfo | URL
      • Optional init: RequestInit

      Returns Promise<Response>

rawv2: {
    DELETE<P>(url, ...init): Promise<FetchResponse<"delete" extends keyof paths[P]
        ? paths[P][keyof paths[P] & "delete"]
        : unknown>>;
    GET<P>(url, ...init): Promise<FetchResponse<"get" extends keyof paths[P]
        ? paths[P][keyof paths[P] & "get"]
        : unknown>>;
    HEAD<P>(url, ...init): Promise<FetchResponse<"head" extends keyof paths[P]
        ? paths[P][keyof paths[P] & "head"]
        : unknown>>;
    OPTIONS<P>(url, ...init): Promise<FetchResponse<"options" extends keyof paths[P]
        ? paths[P][keyof paths[P] & "options"]
        : unknown>>;
    PATCH<P>(url, ...init): Promise<FetchResponse<"patch" extends keyof paths[P]
        ? paths[P][keyof paths[P] & "patch"]
        : unknown>>;
    POST<P>(url, ...init): Promise<FetchResponse<"post" extends keyof paths[P]
        ? paths[P][keyof paths[P] & "post"]
        : unknown>>;
    PUT<P>(url, ...init): Promise<FetchResponse<"put" extends keyof paths[P]
        ? paths[P][keyof paths[P] & "put"]
        : unknown>>;
    TRACE<P>(url, ...init): Promise<FetchResponse<"trace" extends keyof paths[P]
        ? paths[P][keyof paths[P] & "trace"]
        : unknown>>;
}

Raw v2 client

Type declaration

  • DELETE:function
    • Call a DELETE endpoint

      Type Parameters

      • P extends never

      Parameters

      • url: P
      • Rest ...init: HasRequiredKeys<FetchOptions<FilterKeys<paths[P], "delete">>> extends never
            ? [FetchOptions<FilterKeys<paths[P], "delete">>?]
            : [FetchOptions<FilterKeys<paths[P], "delete">>]

      Returns Promise<FetchResponse<"delete" extends keyof paths[P]
          ? paths[P][keyof paths[P] & "delete"]
          : unknown>>

  • GET:function
    • Call a GET endpoint

      Type Parameters

      • P extends PathsWithMethod<paths, "get">

      Parameters

      • url: P
      • Rest ...init: HasRequiredKeys<FetchOptions<FilterKeys<paths[P], "get">>> extends never
            ? [FetchOptions<FilterKeys<paths[P], "get">>?]
            : [FetchOptions<FilterKeys<paths[P], "get">>]

      Returns Promise<FetchResponse<"get" extends keyof paths[P]
          ? paths[P][keyof paths[P] & "get"]
          : unknown>>

  • HEAD:function
    • Call a HEAD endpoint

      Type Parameters

      • P extends never

      Parameters

      • url: P
      • Rest ...init: HasRequiredKeys<FetchOptions<FilterKeys<paths[P], "head">>> extends never
            ? [FetchOptions<FilterKeys<paths[P], "head">>?]
            : [FetchOptions<FilterKeys<paths[P], "head">>]

      Returns Promise<FetchResponse<"head" extends keyof paths[P]
          ? paths[P][keyof paths[P] & "head"]
          : unknown>>

  • OPTIONS:function
    • Call a OPTIONS endpoint

      Type Parameters

      • P extends never

      Parameters

      • url: P
      • Rest ...init: HasRequiredKeys<FetchOptions<FilterKeys<paths[P], "options">>> extends never
            ? [FetchOptions<FilterKeys<paths[P], "options">>?]
            : [FetchOptions<FilterKeys<paths[P], "options">>]

      Returns Promise<FetchResponse<"options" extends keyof paths[P]
          ? paths[P][keyof paths[P] & "options"]
          : unknown>>

  • PATCH:function
    • Call a PATCH endpoint

      Type Parameters

      • P extends never

      Parameters

      • url: P
      • Rest ...init: HasRequiredKeys<FetchOptions<FilterKeys<paths[P], "patch">>> extends never
            ? [FetchOptions<FilterKeys<paths[P], "patch">>?]
            : [FetchOptions<FilterKeys<paths[P], "patch">>]

      Returns Promise<FetchResponse<"patch" extends keyof paths[P]
          ? paths[P][keyof paths[P] & "patch"]
          : unknown>>

  • POST:function
    • Call a POST endpoint

      Type Parameters

      • P extends PathsWithMethod<paths, "post">

      Parameters

      • url: P
      • Rest ...init: HasRequiredKeys<FetchOptions<FilterKeys<paths[P], "post">>> extends never
            ? [FetchOptions<FilterKeys<paths[P], "post">>?]
            : [FetchOptions<FilterKeys<paths[P], "post">>]

      Returns Promise<FetchResponse<"post" extends keyof paths[P]
          ? paths[P][keyof paths[P] & "post"]
          : unknown>>

  • PUT:function
    • Call a PUT endpoint

      Type Parameters

      • P extends never

      Parameters

      • url: P
      • Rest ...init: HasRequiredKeys<FetchOptions<FilterKeys<paths[P], "put">>> extends never
            ? [FetchOptions<FilterKeys<paths[P], "put">>?]
            : [FetchOptions<FilterKeys<paths[P], "put">>]

      Returns Promise<FetchResponse<"put" extends keyof paths[P]
          ? paths[P][keyof paths[P] & "put"]
          : unknown>>

  • TRACE:function
    • Call a TRACE endpoint

      Type Parameters

      • P extends never

      Parameters

      • url: P
      • Rest ...init: HasRequiredKeys<FetchOptions<FilterKeys<paths[P], "trace">>> extends never
            ? [FetchOptions<FilterKeys<paths[P], "trace">>?]
            : [FetchOptions<FilterKeys<paths[P], "trace">>]

      Returns Promise<FetchResponse<"trace" extends keyof paths[P]
          ? paths[P][keyof paths[P] & "trace"]
          : unknown>>

robotoff: Robotoff

Robotoff API

Methods

  • It is used to get a specific product using barcode

    Parameters

    • barcode: string

      Barcode of the product you want to fetch details

    Returns Promise<undefined | {
        abbreviated_product_name?: string;
        code?: string;
        codes_tags?: string[];
        generic_name?: string;
        id?: string;
        lang?: string;
        lc?: string;
        nova_group?: number;
        nova_groups?: string;
        obsolete?: string;
        obsolete_since_date?: string;
        product_name?: string;
        product_name_en?: string;
        product_quantity?: string;
        product_quantity_unit?: string;
        quantity?: string;
    } & {
        additives_n?: number;
        checked?: string;
        complete?: number;
        completeness?: number;
        ecoscore_grade?: string;
        ecoscore_score?: number;
        food_groups?: string;
        food_groups_tags?: string[];
        nutrient_levels?: {
            fat?: "high" | "low" | "moderate";
            salt?: "high" | "low" | "moderate";
            saturated-fat?: "high" | "low" | "moderate";
            sugars?: "high" | "low" | "moderate";
        };
        packaging_text?: string;
        packagings?: readonly {
            material?: {
                id?: string;
                lc_name?: string;
            };
            number_of_units?: number;
            quantity_per_unit?: string;
            quantity_per_unit_unit?: string;
            quantity_per_unit_value?: number;
            recycling?: {
                id?: string;
                lc_name?: string;
            };
            shape?: {
                id?: string;
                lc_name?: string;
            };
            weight?: number;
            weight_estimated?: number;
            weight_measured?: number;
            weight_source_id?: string;
            weight_specified?: number;
        }[];
        packagings_complete?: number;
        pnns_groups_1?: string;
        pnns_groups_1_tags?: string[];
        pnns_groups_2?: string;
        pnns_groups_2_tags?: string[];
        popularity_key?: number;
        popularity_tags?: string[];
        scans_n?: number;
        serving_quantity?: string;
        serving_quantity_unit?: string;
        serving_size?: string;
        unique_scans_n?: number;
    } & {
        brands?: string;
        brands_tags?: string[];
        categories?: string;
        categories_hierarchy?: string[];
        categories_lc?: string;
        categories_tags?: string[];
        checkers_tags?: string[];
        cities?: string;
        cities_tags?: Record<string, never>[];
        correctors_tags?: string[];
        countries?: string;
        countries_hierarchy?: string[];
        countries_lc?: string;
        countries_tags?: string[];
        ecoscore_tags?: string[];
        emb_codes?: string;
        emb_codes_orig?: string;
        emb_codes_tags?: Record<string, never>[];
        entry_dates_tags?: string[];
        labels?: string;
        labels_hierarchy?: string[];
        labels_lc?: string;
        labels_tags?: string[];
        manufacturing_places?: string;
        manufacturing_places_tags?: Record<string, never>[];
        nova_groups_tags?: string[];
        nutrient_levels_tags?: string[];
    } & {
        image_front_small_url?: string;
        image_front_thumb_url?: string;
        image_front_url?: string;
        image_nutrition_small_url?: string;
        image_nutrition_thumb_url?: string;
        image_nutrition_url?: string;
        image_small_url?: string;
        image_thumb_url?: string;
        image_url?: string;
        images?: {
            1?: {
                sizes?: {
                    full?: {
                        h?: number;
                        w?: number;
                    };
                };
                uploaded_t?: string;
                uploader?: string;
            };
            front?: {
                angle?: number;
                coordinates_image_size?: string;
                geometry?: string;
                imgid?: string;
                normalize?: null;
                rev?: string;
                sizes?: {
                    100?: {
                        h?: number;
                        w?: number;
                    };
                    200?: {
                        h?: number;
                        w?: number;
                    };
                    400?: {
                        h?: number;
                        w?: number;
                    };
                    full?: {
                        h?: number;
                        w?: number;
                    };
                };
                white_magic?: null;
                x1?: string;
                x2?: string;
                y1?: string;
                y2?: string;
            };
        };
        last_image_dates_tags?: string[];
        last_image_t?: number;
        selected_images?: {
            front?: {
                display?: Record<string, never>;
                small?: Record<string, never>;
                thumb?: Record<string, never>;
            };
        };
    } & {
        ecoscore_data?: {
            adjustments?: {
                origins_of_ingredients?: {
                    aggregated_origins?: {
                        origin?: string;
                        percent?: number;
                    }[];
                    epi_score?: number;
                    epi_value?: number;
                    origins_from_origins_field?: string[];
                    transportation_scores?: Record<string, never>;
                    transportation_values?: Record<string, never>;
                    values?: Record<string, never>;
                    warning?: string;
                };
                packaging?: {
                    non_recyclable_and_non_biodegradable_materials?: number;
                    packagings?: {
                        ecoscore_material_score?: number;
                        ecoscore_shape_ratio?: number;
                        material?: string;
                        shape?: string;
                    }[];
                    score?: number;
                    value?: number;
                    warning?: string;
                };
                production_system?: {
                    labels?: string[];
                    value?: number;
                    warning?: string;
                };
                threatened_species?: {
                    ingredient?: string;
                    value?: number;
                };
            };
            agribalyse?: {
                agribalyse_food_code?: string;
                co2_agriculture?: number;
                co2_consumption?: number;
                co2_distribution?: number;
                co2_packaging?: number;
                co2_processing?: number;
                co2_total?: number;
                co2_transportation?: number;
                code?: string;
                dqr?: string;
                ef_agriculture?: number;
                ef_consumption?: number;
                ef_distribution?: number;
                ef_packaging?: number;
                ef_processing?: number;
                ef_total?: number;
                ef_transportation?: number;
                is_beverage?: number;
                name_en?: string;
                score?: number;
                version?: string;
            };
            grade?: string;
            grades?: Record<string, never>;
            missing?: {
                labels?: number;
                origins?: number;
                packagings?: number;
            };
            missing_data_warning?: number;
            previous_data?: {
                agribalyse?: {
                    agribalyse_food_code?: string;
                    co2_agriculture?: number;
                    co2_consumption?: number;
                    co2_distribution?: number;
                    co2_packaging?: number;
                    co2_processing?: number;
                    co2_total?: number;
                    co2_transportation?: number;
                    code?: string;
                    dqr?: string;
                    ef_agriculture?: number;
                    ef_consumption?: number;
                    ef_distribution?: number;
                    ef_packaging?: number;
                    ef_processing?: number;
                    ef_total?: number;
                    ef_transportation?: number;
                    is_beverage?: number;
                    name_en?: string;
                    score?: number;
                    version?: string;
                };
                grade?: string;
                score?: number;
            };
            score?: number;
            scores?: Record<string, never>;
            status?: string;
        };
        ecoscore_extended_data_version?: string;
        environment_impact_level?: string;
        environment_impact_level_tags?: Record<string, never>[];
    } & {
        additives_tags?: string[];
        allergens?: string;
        allergens_hierarchy?: string[];
        allergens_lc?: string;
        allergens_tags?: string[];
        ingredients?: {
            id?: string;
            ingredients?: { id?: string | undefined; ingredients?: ...[] | undefined; percent?: number | undefined; percent_estimate?: number | undefined; percent_max?: number | undefined; percent_min?: number | undefined; text?: string | undefined; vegan?: string | undefined; vegetarian?: string | undefined; }[] | undefined;
            percent?: number;
            percent_estimate?: number;
            percent_max?: number;
            percent_min?: number;
            text?: string;
            vegan?: string;
            vegetarian?: string;
        }[];
        ingredients_analysis?: {
            en:palm-oil?: string[];
            en:vegan-status-unknown?: string[];
            en:vegetarian-status-unknown?: string[];
        };
        ingredients_analysis_tags?: string[];
        ingredients_from_or_that_may_be_from_palm_oil_n?: number;
        ingredients_from_palm_oil_n?: number;
        ingredients_from_palm_oil_tags?: Record<string, never>[];
        ingredients_hierarchy?: string[];
        ingredients_lc?: string;
        ingredients_n?: number;
        ingredients_n_tags?: string[];
        ingredients_original_tags?: string[];
        ingredients_percent_analysis?: number;
        ingredients_tags?: string[];
        ingredients_text?: string;
        ingredients_text_with_allergens?: string;
        ingredients_that_may_be_from_palm_oil_n?: number;
        ingredients_that_may_be_from_palm_oil_tags?: Record<string, never>[];
        ingredients_with_specified_percent_n?: number;
        ingredients_with_specified_percent_sum?: number;
        ingredients_with_unspecified_percent_n?: number;
        ingredients_with_unspecified_percent_sum?: number;
        known_ingredients_n?: number;
        origins?: string;
        origins_hierarchy?: Record<string, never>[];
        origins_lc?: string;
        origins_tags?: Record<string, never>[];
        traces?: string;
        traces_hierarchy?: Record<string, never>[];
        traces_lc?: string;
        traces_tags?: Record<string, never>[];
        unknown_ingredients_n?: number;
    } & {
        no_nutrition_data?: string;
        nutriments?: {
            alcohol?: number;
            carbohydrates?: number;
            carbon-footprint-from-known-ingredients_product?: number;
            carbon-footprint-from-known-ingredients_serving?: number;
            energy?: number;
            energy-kcal?: number;
            energy-kj?: number;
            energy_unit?: "kcal" | "kj";
            energy_value?: number;
            erythritol?: number;
            fat?: number;
            fruits-vegetables-legumes-estimate-from-ingredients?: number;
            fruits-vegetables-nuts-estimate-from-ingredients?: number;
            nova-group?: number;
            nutrition-score-fr?: unknown;
            proteins?: number;
            salt?: number;
            saturated-fat?: number;
            sodium?: number;
            sugars?: number;
        };
        nutriscore_data?: {
            energy?: number;
            energy_points?: number;
            energy_value?: number;
            fiber?: number;
            fiber_points?: number;
            fiber_value?: number;
            fruits_vegetables_nuts_colza_walnut_olive_oils?: number;
            fruits_vegetables_nuts_colza_walnut_olive_oils_points?: number;
            fruits_vegetables_nuts_colza_walnut_olive_oils_value?: number;
            grade?: string;
            is_beverage?: number;
            is_cheese?: number;
            is_fat?: number;
            is_water?: number;
            negative_points?: number;
            positive_points?: number;
            proteins?: number;
            proteins_points?: number;
            proteins_value?: number;
            saturated_fat?: number;
            saturated_fat_points?: number;
            saturated_fat_ratio?: number;
            saturated_fat_ratio_points?: number;
            saturated_fat_ratio_value?: number;
            saturated_fat_value?: number;
            score?: number;
            sodium?: number;
            sodium_points?: number;
            sodium_value?: number;
            sugars?: number;
            sugars_points?: number;
            sugars_value?: number;
        };
        nutriscore_grade?: "d" | "a" | "b" | "c" | "e";
        nutriscore_score?: number;
        nutriscore_score_opposite?: number;
        nutrition_data_per?: "serving" | "100g";
        nutrition_data_prepared_per?: "serving" | "100g";
        nutrition_grade_fr?: string;
        nutrition_grades?: string;
        nutrition_grades_tags?: string[];
        nutrition_score_beverage?: number;
        nutrition_score_warning_fruits_vegetables_nuts_estimate_from_ingredients?: number;
        nutrition_score_warning_fruits_vegetables_nuts_estimate_from_ingredients_value?: number;
        nutrition_score_warning_no_fiber?: number;
        other_nutritional_substances_tags?: Record<string, never>[];
        unknown_nutrients_tags?: Record<string, never>[];
        vitamins_tags?: Record<string, never>[];
    } & {
        data_quality_bugs_tags?: Record<string, never>[];
        data_quality_errors_tags?: Record<string, never>[];
        data_quality_info_tags?: string[];
        data_quality_tags?: string[];
        data_quality_warnings_tags?: string[];
        data_sources?: string;
        data_sources_tags?: string[];
        last_check_dates_tags?: string[];
        last_checked_t?: number;
        last_checker?: string;
        misc_tags?: string[];
        states?: string;
        states_hierarchy?: string[];
        states_tags?: string[];
    } & {
        added_countries_tags?: Record<string, never>[];
        additives_original_tags?: string[];
        additives_prev_original_tags?: string[];
        allergens_from_ingredients?: string;
        allergens_from_user?: string;
        amino_acids_prev_tags?: Record<string, never>[];
        amino_acids_tags?: Record<string, never>[];
        carbon_footprint_percent_of_known_ingredients?: number;
        categories_properties?: {
            agribalyse_food_code:en?: string;
            agribalyse_proxy_food_code:en?: string;
            ciqual_food_code:en?: string;
        };
        categories_properties_tags?: string[];
        category_properties?: {
            [key: string]: string;
        };
        ciqual_food_name_tags?: string[];
        compared_to_category?: string;
        conservation_conditions?: string;
        customer_service?: string;
        expiration_date?: string;
        link?: string;
        main_countries_tags?: Record<string, never>[];
        minerals_prev_tags?: Record<string, never>[];
        minerals_tags?: Record<string, never>[];
        nova_groups_markers?: {
            3?: string[][];
            4?: any;
        };
        nucleotides_tags?: Record<string, never>[];
        origin?: string;
        owner_fields?: {
            additionalProperties?: string | number | Record<string, never>;
        };
        purchase_places?: string;
        purchase_places_tags?: string[];
        stores?: string;
        stores_tags?: string[];
        traces_from_ingredients?: string;
        traces_from_user?: string;
    } & {
        created_t?: number;
        creator?: string;
        editors_tags?: string[];
        informers_tags?: string[];
        interface_version_created?: string;
        interface_version_modified?: string;
        languages?: Record<string, never>;
        languages_codes?: Record<string, never>;
        languages_hierarchy?: string[];
        languages_tags?: string[];
        last_edit_dates_tags?: string[];
        last_editor?: string;
        last_modified_by?: string;
        last_modified_t?: number;
        owner?: string;
        owners_tags?: string;
        photographers_tags?: string[];
        rev?: number;
        sources?: {
            fields?: string[];
            id?: string;
            images?: Record<string, never>[];
            import_t?: number;
            manufacturer?: string | number;
            name?: string;
            source_licence?: string;
            source_licence_url?: string;
            url?: null | string;
        }[];
        sources_fields?: {
            org-gs1?: {
                gln?: string;
                gpcCategoryCode?: string;
                gpcCategoryName?: string;
                isAllergenRelevantDataProvided?: string;
                lastChangeDateTime?: string;
                partyName?: string;
                productionVariantDescription?: string;
                publicationDateTime?: string;
            };
        };
        teams?: string;
        teams_tags?: string[];
        update_key?: string;
    } & {
        knowledge_panels?: {
            additionalProperties?: {
                elements?: {
                    action_element?: string;
                    image_element?: {
                        alt_text?: string;
                        height?: number;
                        url?: string;
                        width?: number;
                    };
                    panel_element?: {
                        panel_id?: string;
                    };
                    panel_group_element?: {
                        panel_ids?: string[];
                        title?: string;
                    };
                    table_element?: {
                        columns?: {
                            column_group_id?: string;
                            shown_by_default?: boolean;
                            style?: string;
                            text?: string;
                            text_for_small_screens?: string;
                            type?: string;
                        }[];
                        id?: string;
                        rows?: string;
                        title?: string;
                    };
                    text_element?: {
                        edit_field_id?: string;
                        edit_field_type?: string;
                        edit_field_value?: string;
                        html?: string;
                        language?: string;
                        lc?: string;
                        source_language?: string;
                        source_lc?: string;
                        source_text?: string;
                        source_url?: string;
                        type?: "summary" | "warning" | "notes";
                    };
                    type: "table" | "image" | "text" | "action" | "panel" | "panel_group";
                }[];
                expand_for?: string;
                expanded?: boolean;
                level?: string;
                size?: "small";
                title_element?: {
                    grade?: "d" | "a" | "b" | "unknown" | "c" | "e";
                    icon_color_from_evaluation?: string;
                    icon_size?: string;
                    icon_url?: string;
                    title?: string;
                    type?: string;
                };
                topics?: string[];
                type?: string;
            };
        };
    }>

  • Parameters

    • barcode: string

    Returns Promise<null | string[]>

  • Type Parameters

    Parameters

    • taxo: string
    • entry: string

    Returns Promise<T>

  • Parameters

    • barcode: string
    • photoId: string
    • ocrEngine: "google_cloud_vision" = "google_cloud_vision"

    Returns Promise<undefined | {
        status?: number;
    }>

  • Parameters

    • Optional fields: string
    • Optional sortBy: "product_name" | "last_modified_t" | "scans_n" | "unique_scans_n" | "created_t" | "completeness" | "popularity_key" | "nutriscore_score" | "nova_score" | "nothing" | "ecoscore_score"

    Returns Promise<undefined | {
        count?: number;
        page?: number;
        page_count?: number;
        page_size?: number;
        products?: ({
            abbreviated_product_name?: string;
            code?: string;
            codes_tags?: string[];
            generic_name?: string;
            id?: string;
            lang?: string;
            lc?: string;
            nova_group?: number;
            nova_groups?: string;
            obsolete?: string;
            obsolete_since_date?: string;
            product_name?: string;
            product_name_en?: string;
            product_quantity?: string;
            product_quantity_unit?: string;
            quantity?: string;
        } & {
            additives_n?: number;
            checked?: string;
            complete?: number;
            completeness?: number;
            ecoscore_grade?: string;
            ecoscore_score?: number;
            food_groups?: string;
            food_groups_tags?: string[];
            nutrient_levels?: {
                fat?: "high" | "low" | "moderate";
                salt?: "high" | "low" | "moderate";
                saturated-fat?: "high" | "low" | "moderate";
                sugars?: "high" | "low" | "moderate";
            };
            packaging_text?: string;
            packagings?: readonly {
                material?: {
                    id?: string;
                    lc_name?: string;
                };
                number_of_units?: number;
                quantity_per_unit?: string;
                quantity_per_unit_unit?: string;
                quantity_per_unit_value?: number;
                recycling?: {
                    id?: string;
                    lc_name?: string;
                };
                shape?: {
                    id?: string;
                    lc_name?: string;
                };
                weight?: number;
                weight_estimated?: number;
                weight_measured?: number;
                weight_source_id?: string;
                weight_specified?: number;
            }[];
            packagings_complete?: number;
            pnns_groups_1?: string;
            pnns_groups_1_tags?: string[];
            pnns_groups_2?: string;
            pnns_groups_2_tags?: string[];
            popularity_key?: number;
            popularity_tags?: string[];
            scans_n?: number;
            serving_quantity?: string;
            serving_quantity_unit?: string;
            serving_size?: string;
            unique_scans_n?: number;
        } & {
            brands?: string;
            brands_tags?: string[];
            categories?: string;
            categories_hierarchy?: string[];
            categories_lc?: string;
            categories_tags?: string[];
            checkers_tags?: string[];
            cities?: string;
            cities_tags?: Record<string, never>[];
            correctors_tags?: string[];
            countries?: string;
            countries_hierarchy?: string[];
            countries_lc?: string;
            countries_tags?: string[];
            ecoscore_tags?: string[];
            emb_codes?: string;
            emb_codes_orig?: string;
            emb_codes_tags?: Record<string, never>[];
            entry_dates_tags?: string[];
            labels?: string;
            labels_hierarchy?: string[];
            labels_lc?: string;
            labels_tags?: string[];
            manufacturing_places?: string;
            manufacturing_places_tags?: Record<string, never>[];
            nova_groups_tags?: string[];
            nutrient_levels_tags?: string[];
        } & {
            image_front_small_url?: string;
            image_front_thumb_url?: string;
            image_front_url?: string;
            image_nutrition_small_url?: string;
            image_nutrition_thumb_url?: string;
            image_nutrition_url?: string;
            image_small_url?: string;
            image_thumb_url?: string;
            image_url?: string;
            images?: {
                1?: {
                    sizes?: {
                        full?: {
                            h?: number;
                            w?: number;
                        };
                    };
                    uploaded_t?: string;
                    uploader?: string;
                };
                front?: {
                    angle?: number;
                    coordinates_image_size?: string;
                    geometry?: string;
                    imgid?: string;
                    normalize?: null;
                    rev?: string;
                    sizes?: {
                        100?: {
                            h?: number;
                            w?: number;
                        };
                        200?: {
                            h?: number;
                            w?: number;
                        };
                        400?: {
                            h?: number;
                            w?: number;
                        };
                        full?: {
                            h?: number;
                            w?: number;
                        };
                    };
                    white_magic?: null;
                    x1?: string;
                    x2?: string;
                    y1?: string;
                    y2?: string;
                };
            };
            last_image_dates_tags?: string[];
            last_image_t?: number;
            selected_images?: {
                front?: {
                    display?: Record<string, never>;
                    small?: Record<string, never>;
                    thumb?: Record<string, never>;
                };
            };
        } & {
            ecoscore_data?: {
                adjustments?: {
                    origins_of_ingredients?: {
                        aggregated_origins?: {
                            origin?: string;
                            percent?: number;
                        }[];
                        epi_score?: number;
                        epi_value?: number;
                        origins_from_origins_field?: string[];
                        transportation_scores?: Record<string, never>;
                        transportation_values?: Record<string, never>;
                        values?: Record<string, never>;
                        warning?: string;
                    };
                    packaging?: {
                        non_recyclable_and_non_biodegradable_materials?: number;
                        packagings?: {
                            ecoscore_material_score?: number;
                            ecoscore_shape_ratio?: number;
                            material?: string;
                            shape?: string;
                        }[];
                        score?: number;
                        value?: number;
                        warning?: string;
                    };
                    production_system?: {
                        labels?: string[];
                        value?: number;
                        warning?: string;
                    };
                    threatened_species?: {
                        ingredient?: string;
                        value?: number;
                    };
                };
                agribalyse?: {
                    agribalyse_food_code?: string;
                    co2_agriculture?: number;
                    co2_consumption?: number;
                    co2_distribution?: number;
                    co2_packaging?: number;
                    co2_processing?: number;
                    co2_total?: number;
                    co2_transportation?: number;
                    code?: string;
                    dqr?: string;
                    ef_agriculture?: number;
                    ef_consumption?: number;
                    ef_distribution?: number;
                    ef_packaging?: number;
                    ef_processing?: number;
                    ef_total?: number;
                    ef_transportation?: number;
                    is_beverage?: number;
                    name_en?: string;
                    score?: number;
                    version?: string;
                };
                grade?: string;
                grades?: Record<string, never>;
                missing?: {
                    labels?: number;
                    origins?: number;
                    packagings?: number;
                };
                missing_data_warning?: number;
                previous_data?: {
                    agribalyse?: {
                        agribalyse_food_code?: string;
                        co2_agriculture?: number;
                        co2_consumption?: number;
                        co2_distribution?: number;
                        co2_packaging?: number;
                        co2_processing?: number;
                        co2_total?: number;
                        co2_transportation?: number;
                        code?: string;
                        dqr?: string;
                        ef_agriculture?: number;
                        ef_consumption?: number;
                        ef_distribution?: number;
                        ef_packaging?: number;
                        ef_processing?: number;
                        ef_total?: number;
                        ef_transportation?: number;
                        is_beverage?: number;
                        name_en?: string;
                        score?: number;
                        version?: string;
                    };
                    grade?: string;
                    score?: number;
                };
                score?: number;
                scores?: Record<string, never>;
                status?: string;
            };
            ecoscore_extended_data_version?: string;
            environment_impact_level?: string;
            environment_impact_level_tags?: Record<string, never>[];
        } & {
            additives_tags?: string[];
            allergens?: string;
            allergens_hierarchy?: string[];
            allergens_lc?: string;
            allergens_tags?: string[];
            ingredients?: {
                id?: string;
                ingredients?: { id?: string | undefined; ingredients?: ...[] | undefined; percent?: number | undefined; percent_estimate?: number | undefined; percent_max?: number | undefined; percent_min?: number | undefined; text?: string | undefined; vegan?: string | undefined; vegetarian?: string | undefined; }[] | undefined;
                percent?: number;
                percent_estimate?: number;
                percent_max?: number;
                percent_min?: number;
                text?: string;
                vegan?: string;
                vegetarian?: string;
            }[];
            ingredients_analysis?: {
                en:palm-oil?: string[];
                en:vegan-status-unknown?: string[];
                en:vegetarian-status-unknown?: string[];
            };
            ingredients_analysis_tags?: string[];
            ingredients_from_or_that_may_be_from_palm_oil_n?: number;
            ingredients_from_palm_oil_n?: number;
            ingredients_from_palm_oil_tags?: Record<string, never>[];
            ingredients_hierarchy?: string[];
            ingredients_lc?: string;
            ingredients_n?: number;
            ingredients_n_tags?: string[];
            ingredients_original_tags?: string[];
            ingredients_percent_analysis?: number;
            ingredients_tags?: string[];
            ingredients_text?: string;
            ingredients_text_with_allergens?: string;
            ingredients_that_may_be_from_palm_oil_n?: number;
            ingredients_that_may_be_from_palm_oil_tags?: Record<string, never>[];
            ingredients_with_specified_percent_n?: number;
            ingredients_with_specified_percent_sum?: number;
            ingredients_with_unspecified_percent_n?: number;
            ingredients_with_unspecified_percent_sum?: number;
            known_ingredients_n?: number;
            origins?: string;
            origins_hierarchy?: Record<string, never>[];
            origins_lc?: string;
            origins_tags?: Record<string, never>[];
            traces?: string;
            traces_hierarchy?: Record<string, never>[];
            traces_lc?: string;
            traces_tags?: Record<string, never>[];
            unknown_ingredients_n?: number;
        } & {
            no_nutrition_data?: string;
            nutriments?: {
                alcohol?: number;
                carbohydrates?: number;
                carbon-footprint-from-known-ingredients_product?: number;
                carbon-footprint-from-known-ingredients_serving?: number;
                energy?: number;
                energy-kcal?: number;
                energy-kj?: number;
                energy_unit?: "kcal" | "kj";
                energy_value?: number;
                erythritol?: number;
                fat?: number;
                fruits-vegetables-legumes-estimate-from-ingredients?: number;
                fruits-vegetables-nuts-estimate-from-ingredients?: number;
                nova-group?: number;
                nutrition-score-fr?: unknown;
                proteins?: number;
                salt?: number;
                saturated-fat?: number;
                sodium?: number;
                sugars?: number;
            };
            nutriscore_data?: {
                energy?: number;
                energy_points?: number;
                energy_value?: number;
                fiber?: number;
                fiber_points?: number;
                fiber_value?: number;
                fruits_vegetables_nuts_colza_walnut_olive_oils?: number;
                fruits_vegetables_nuts_colza_walnut_olive_oils_points?: number;
                fruits_vegetables_nuts_colza_walnut_olive_oils_value?: number;
                grade?: string;
                is_beverage?: number;
                is_cheese?: number;
                is_fat?: number;
                is_water?: number;
                negative_points?: number;
                positive_points?: number;
                proteins?: number;
                proteins_points?: number;
                proteins_value?: number;
                saturated_fat?: number;
                saturated_fat_points?: number;
                saturated_fat_ratio?: number;
                saturated_fat_ratio_points?: number;
                saturated_fat_ratio_value?: number;
                saturated_fat_value?: number;
                score?: number;
                sodium?: number;
                sodium_points?: number;
                sodium_value?: number;
                sugars?: number;
                sugars_points?: number;
                sugars_value?: number;
            };
            nutriscore_grade?: "d" | "a" | "b" | "c" | "e";
            nutriscore_score?: number;
            nutriscore_score_opposite?: number;
            nutrition_data_per?: "serving" | "100g";
            nutrition_data_prepared_per?: "serving" | "100g";
            nutrition_grade_fr?: string;
            nutrition_grades?: string;
            nutrition_grades_tags?: string[];
            nutrition_score_beverage?: number;
            nutrition_score_warning_fruits_vegetables_nuts_estimate_from_ingredients?: number;
            nutrition_score_warning_fruits_vegetables_nuts_estimate_from_ingredients_value?: number;
            nutrition_score_warning_no_fiber?: number;
            other_nutritional_substances_tags?: Record<string, never>[];
            unknown_nutrients_tags?: Record<string, never>[];
            vitamins_tags?: Record<string, never>[];
        } & {
            data_quality_bugs_tags?: Record<string, never>[];
            data_quality_errors_tags?: Record<string, never>[];
            data_quality_info_tags?: string[];
            data_quality_tags?: string[];
            data_quality_warnings_tags?: string[];
            data_sources?: string;
            data_sources_tags?: string[];
            last_check_dates_tags?: string[];
            last_checked_t?: number;
            last_checker?: string;
            misc_tags?: string[];
            states?: string;
            states_hierarchy?: string[];
            states_tags?: string[];
        } & {
            added_countries_tags?: Record<string, never>[];
            additives_original_tags?: string[];
            additives_prev_original_tags?: string[];
            allergens_from_ingredients?: string;
            allergens_from_user?: string;
            amino_acids_prev_tags?: Record<string, never>[];
            amino_acids_tags?: Record<string, never>[];
            carbon_footprint_percent_of_known_ingredients?: number;
            categories_properties?: {
                agribalyse_food_code:en?: string;
                agribalyse_proxy_food_code:en?: string;
                ciqual_food_code:en?: string;
            };
            categories_properties_tags?: string[];
            category_properties?: {
                [key: string]: string;
            };
            ciqual_food_name_tags?: string[];
            compared_to_category?: string;
            conservation_conditions?: string;
            customer_service?: string;
            expiration_date?: string;
            link?: string;
            main_countries_tags?: Record<string, never>[];
            minerals_prev_tags?: Record<string, never>[];
            minerals_tags?: Record<string, never>[];
            nova_groups_markers?: {
                3?: string[][];
                4?: any;
            };
            nucleotides_tags?: Record<string, never>[];
            origin?: string;
            owner_fields?: {
                additionalProperties?: string | number | Record<string, never>;
            };
            purchase_places?: string;
            purchase_places_tags?: string[];
            stores?: string;
            stores_tags?: string[];
            traces_from_ingredients?: string;
            traces_from_user?: string;
        } & {
            created_t?: number;
            creator?: string;
            editors_tags?: string[];
            informers_tags?: string[];
            interface_version_created?: string;
            interface_version_modified?: string;
            languages?: Record<string, never>;
            languages_codes?: Record<string, never>;
            languages_hierarchy?: string[];
            languages_tags?: string[];
            last_edit_dates_tags?: string[];
            last_editor?: string;
            last_modified_by?: string;
            last_modified_t?: number;
            owner?: string;
            owners_tags?: string;
            photographers_tags?: string[];
            rev?: number;
            sources?: {
                fields?: string[];
                id?: string;
                images?: Record<string, never>[];
                import_t?: number;
                manufacturer?: string | number;
                name?: string;
                source_licence?: string;
                source_licence_url?: string;
                url?: null | string;
            }[];
            sources_fields?: {
                org-gs1?: {
                    gln?: string;
                    gpcCategoryCode?: string;
                    gpcCategoryName?: string;
                    isAllergenRelevantDataProvided?: string;
                    lastChangeDateTime?: string;
                    partyName?: string;
                    productionVariantDescription?: string;
                    publicationDateTime?: string;
                };
            };
            teams?: string;
            teams_tags?: string[];
            update_key?: string;
        } & {
            knowledge_panels?: {
                additionalProperties?: {
                    elements?: {
                        action_element?: string;
                        image_element?: {
                            alt_text?: string;
                            height?: number;
                            url?: string;
                            width?: number;
                        };
                        panel_element?: {
                            panel_id?: string;
                        };
                        panel_group_element?: {
                            panel_ids?: string[];
                            title?: string;
                        };
                        table_element?: {
                            columns?: {
                                column_group_id?: string;
                                shown_by_default?: boolean;
                                style?: string;
                                text?: string;
                                text_for_small_screens?: string;
                                type?: string;
                            }[];
                            id?: string;
                            rows?: string;
                            title?: string;
                        };
                        text_element?: {
                            edit_field_id?: string;
                            edit_field_type?: string;
                            edit_field_value?: string;
                            html?: string;
                            language?: string;
                            lc?: string;
                            source_language?: string;
                            source_lc?: string;
                            source_text?: string;
                            source_url?: string;
                            type?: "summary" | "warning" | "notes";
                        };
                        type: "table" | "image" | "text" | "action" | "panel" | "panel_group";
                    }[];
                    expand_for?: string;
                    expanded?: boolean;
                    level?: string;
                    size?: "small";
                    title_element?: {
                        grade?: "d" | "a" | "b" | "unknown" | "c" | "e";
                        icon_color_from_evaluation?: string;
                        icon_size?: string;
                        icon_url?: string;
                        title?: string;
                        type?: string;
                    };
                    topics?: string[];
                    type?: string;
                };
            };
        })[];
        skip?: number;
    }>

Generated using TypeDoc