Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k committed Jan 10, 2025
1 parent d710f83 commit 3b974b5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
2 changes: 0 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import 'dart:async';

import 'package:openfoodfacts/openfoodfacts.dart';
import 'package:json_annotation/src/json_value.dart';
import 'package:openfoodfacts/src/nutripatrol/get_ticket.dart';

void main() {
OpenFoodAPIConfiguration.userAgent = UserAgent(
Expand Down
13 changes: 9 additions & 4 deletions lib/openfoodfacts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ export 'src/model/parameter/without_additives.dart';
export 'src/model/per_size.dart';
export 'src/model/product.dart';
export 'src/model/product_freshness.dart';
export 'src/model/product_type.dart';
export 'src/model/product_image.dart';
export 'src/model/product_packaging.dart';
export 'src/model/product_result_field_answer.dart';
export 'src/model/product_result_v3.dart';
export 'src/model/product_state.dart';
export 'src/model/product_stats.dart';
export 'src/model/product_tag.dart';
export 'src/model/product_type.dart';
export 'src/model/recommended_daily_intake.dart';
export 'src/model/robotoff_question.dart';
export 'src/model/robotoff_question_order.dart';
Expand All @@ -80,6 +80,12 @@ export 'src/model/taxonomy_packaging_recycling.dart';
export 'src/model/taxonomy_packaging_shape.dart';
export 'src/model/user.dart';
export 'src/model/user_agent.dart';
export 'src/nutripatrol/create_flag.dart';
export 'src/nutripatrol/get_flag.dart';
export 'src/nutripatrol/get_ticket.dart';
export 'src/nutripatrol/get_tickets.dart';
export 'src/nutripatrol/update_ticket_status.dart';
export 'src/nutripatrol_api_client.dart';
export 'src/open_food_api_client.dart';
export 'src/open_food_search_api_client.dart';
export 'src/open_prices_api_client.dart';
Expand All @@ -96,11 +102,11 @@ export 'src/prices/flavor.dart';
export 'src/prices/get_locations_order.dart';
export 'src/prices/get_locations_parameters.dart';
export 'src/prices/get_locations_result.dart';
export 'src/prices/get_price_count_parameters_helper.dart';
// export 'src/prices/get_parameters_helper.dart'; // uncomment if really needed
export 'src/prices/get_prices_order.dart';
export 'src/prices/get_prices_parameters.dart';
export 'src/prices/get_prices_result.dart';
export 'src/prices/get_price_count_parameters_helper.dart';
export 'src/prices/get_proofs_order.dart';
export 'src/prices/get_proofs_parameters.dart';
export 'src/prices/get_proofs_result.dart';
Expand All @@ -121,6 +127,7 @@ export 'src/prices/proof_type.dart';
export 'src/prices/session.dart';
export 'src/prices/update_price_parameters.dart';
export 'src/prices/update_proof_parameters.dart';
export 'src/robot_off_api_client.dart';
export 'src/search/autocomplete_search_result.dart';
export 'src/search/autocomplete_single_result.dart';
export 'src/search/fuzziness.dart';
Expand Down Expand Up @@ -152,5 +159,3 @@ export 'src/utils/too_many_requests_manager.dart';
export 'src/utils/unit_helper.dart';
export 'src/utils/uri_helper.dart';
export 'src/utils/uri_reader.dart';
export 'src/robot_off_api_client.dart';
export 'src/nutripatrol_api_client.dart';
4 changes: 2 additions & 2 deletions lib/src/nutripatrol/get_flag.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:openfoodfacts/openfoodfacts.dart';
import 'package:openfoodfacts/src/nutripatrol/get_ticket.dart';
import 'package:openfoodfacts/src/prices/flavor.dart';

import '../interface/json_object.dart';

Expand Down Expand Up @@ -62,7 +62,7 @@ class Flag extends JsonObject {

/// created date of the ticket. Read-only.
@JsonKey(name: 'created_at')
late String CreatedAt;
late String createdAt;

Flag();

Expand Down
4 changes: 2 additions & 2 deletions lib/src/nutripatrol/get_flag.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/src/nutripatrol/get_ticket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Ticket extends JsonObject {

/// created date of the ticket. Read-only.
@JsonKey(name: 'created_at')
late String CreatedAt;
late String createdAt;

Ticket();

Expand Down
4 changes: 2 additions & 2 deletions lib/src/nutripatrol/get_ticket.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b974b5

Please sign in to comment.