From 9e4c539ce8f47ec0d92bc1b1b699f3b80b53f4a3 Mon Sep 17 00:00:00 2001 From: Manuel romero Date: Mon, 18 May 2026 18:20:55 -0400 Subject: [PATCH] feat(references): add atsShowOnlyLastExit to ReferenceCategory enum and update changelog --- CHANGELOG.md | 4 ++++ lib/src/references/references.g.dart | 1 + lib/src/references/src/category.dart | 7 +++++++ pubspec.yaml | 2 +- 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3d3a85..c5c567d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 3.8.17 + +- Added `ReferenceCategory.atsShowOnlyLastExit` (`ATS_SHOW_ONLY_LAST_EXIT`) to flag pump assets whose exit history should be limited to the most recent record. + ## 3.8.16 - Fixed `RenderWidget.magnet` enum value: corrected `@JsonValue` from `'MAGNET_SENSOR'` to `'MAGNET'` to match the backend `Widget` enum. diff --git a/lib/src/references/references.g.dart b/lib/src/references/references.g.dart index 7dfc321..2cb21d5 100644 --- a/lib/src/references/references.g.dart +++ b/lib/src/references/references.g.dart @@ -90,6 +90,7 @@ const _$ReferenceCategoryEnumMap = { ReferenceCategory.atsGetAllTerminals: 'ATS_GET_ALL_TERMINALS', ReferenceCategory.atsStorageReceptionAccess: 'ATS_STORAGE_RECEPTION_ACCESS', ReferenceCategory.atsInvoiceSwap: 'ATS_INVOICE_SWAP', + ReferenceCategory.atsShowOnlyLastExit: 'ATS_SHOW_ONLY_LAST_EXIT', ReferenceCategory.mappitOperator: 'MAPPIT_OPERATOR', ReferenceCategory.mappitCustomer: 'MAPPIT_CUSTOMER', ReferenceCategory.mappitEmployee: 'MAPPIT_EMPLOYEE', diff --git a/lib/src/references/src/category.dart b/lib/src/references/src/category.dart index e249f32..4bbfdfd 100644 --- a/lib/src/references/src/category.dart +++ b/lib/src/references/src/category.dart @@ -288,6 +288,13 @@ enum ReferenceCategory { @JsonValue('ATS_INVOICE_SWAP') atsInvoiceSwap, + /// !ATS Reference + /// [AllTank Systems] When present on a pump asset, the history view must + /// show only the most recent exit instead of the full list. + /// Layrz API Reference: ATS_SHOW_ONLY_LAST_EXIT + @JsonValue('ATS_SHOW_ONLY_LAST_EXIT') + atsShowOnlyLastExit, + /// !Mappit Reference /// Defines the access to the Mappit module as a operator or mappit employee /// Layrz API Reference: MAPPIT_OPERATOR diff --git a/pubspec.yaml b/pubspec.yaml index e1db7d3..00374e1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ description: Layrz API models for Dart/Flutter. This package contains the models used by the Layrz API. name: layrz_models -version: "3.8.16" +version: "3.8.17" repository: https://github.com/goldenm-software/layrz_models environment: