layrz_models 3.34.0+4 copy "layrz_models: ^3.34.0+4" to clipboard
layrz_models: ^3.34.0+4 copied to clipboard

Layrz API models for Dart/Flutter. This package contains the models used by the Layrz API.

Changelog #

3.34.0+4 #

  • Moved the Flespi module (FlespiProtocol, FlespiModel, FlespiChannel, and their decoders) to layrz_sdk; re-exported from package:layrz_models/layrz_models.dart for backwards compatibility. lib/src/flespi/flespi.dart is now an empty pass-through library.
  • Moved ModelInput and ZigbeeParameterInput to layrz_sdk; re-exported for backwards compatibility. lib/src/models/models.dart is now an empty pass-through library.
  • Moved CommandDefinitionInput and CommandPayloadDefinitionInput to layrz_sdk; re-exported for backwards compatibility. AssetCommand/AssetCommandPossibleDevice and the legacy report converters remain local to lib/src/commands/commands.dart.
  • Moved ConfigGroupingInput and ConfigDefinitionInput to layrz_sdk; re-exported for backwards compatibility.
  • Moved ConfIoTFile and ConfIoTNamespace (with ConfIoTNamespaceConverter/ConfIoTNamespaceOrNullConverter) to layrz_sdk; re-exported for backwards compatibility. lib/src/confiot/confiot.dart is now an empty pass-through library.
  • Moved the report preview types (ReportPreview, ReportPage, ReportRow, ReportHeader, ReportCell, ReportDataType) to layrz_sdk; re-exported for backwards compatibility.
  • Bumped layrz_sdk to ^4.5.0+3.
  • No public API changes for consumers: all moved types resolve through the existing package:layrz_sdk/layrz_sdk.dart re-export in package:layrz_models/layrz_models.dart.

3.34.0+3 #

  • InboundProtocolInput moved to layrz_sdk and is re-exported from package:layrz_models/layrz_models.dart; no public API changes for consumers.
  • Now consumes layrz_sdk 4.5.0+1 (still resolved via the existing ^4.5.0 dependency pin).

3.34.0+2 #

  • Removed the local definitions of the models, inputs, enums, and converters that were re-exported from layrz_sdk in 3.34.0+1 (the RegisteredApp/Tag/CustomReport closure and related types across access, actions, apps, assets, devices, exchange, geofences, modbus, mqtt, operations, references, sensors, vision, zigbee, and peripheral models across care protocols, charts, commands, concierge, external accounts, inbound protocols, Mappit, outbound services, presets, report templates, triggers, users, and workspace cards). These types now resolve exclusively through the package:layrz_sdk/layrz_sdk.dart re-export already published in package:layrz_models/layrz_models.dart; no public API changes for consumers.
  • Finalized the layrz_sdk dependency on the published ^4.5.0 release (no local path override).

3.34.0+1 #

  • Moved Model, HwModel, HwModelInput, ConfIoTLayout, RenderWidget, FirmwareBuild, and FirmwareBranch to layrz_sdk; re-exported from package:layrz_models/layrz_models.dart for backwards compatibility.
  • Moved CommandDefinition, CommandPayloadDefinition, CommandDefinitionSource, and CommandPayloadDataType to layrz_sdk; re-exported for backwards compatibility.
  • Moved InboundProtocol, ConfigGrouping, ConfigDefinition, ConfigPayloadDataType, ConfigSource, ConfigKind, OperationMode, and ZigbeeDataType to layrz_sdk; re-exported for backwards compatibility.
  • Moved CredentialField, CredentialFieldType, and CredentialFieldAction to layrz_sdk; re-exported for backwards compatibility.
  • Moved FlespiAcl, FlespiSubmoduleConfig, FlespiUri, FlespiAction, FlespiMethod, and FlespiSubmodule to layrz_sdk; re-exported for backwards compatibility.
  • Moved WebhookStructure, WebhookPath, WebhookHeader, WebhookMethod, and WebhookFormat to layrz_sdk; re-exported for backwards compatibility.
  • Moved SimulationCycle to layrz_sdk; re-exported for backwards compatibility.
  • Bumped layrz_sdk to ^4.4.9-dev.1.

3.34.1 #

  • Fixed freezed code generation to emit valid collection constructor parameters (disabled make_collections_unmodifiable), so generated code compiles under a real build.
  • Bumped layrz_sdk to ^4.4.8.

3.34.0 #

  • Moved Category, CategoryKind, and AssetKind to layrz_sdk; they are re-exported from package:layrz_models/layrz_models.dart for backwards compatibility.
  • Deprecated CategoryKindConverter, AssetKindOrNullConverter, and AssetKindConverter; kept as compatibility shims delegating to the SDK enums.
  • Moved RealtimeMessage to layrz_sdk; re-exported for backwards compatibility.
  • Bumped layrz_sdk to ^4.4.7.

3.33.7 #

  • Removed id from editApp mutation
  • This version was released manually

3.33.6 #

  • Added bindConflict (String?) on ZigbeeDevice. Exposes why the ingestion worker refused to auto-bind the device: null/'none', or 'foreign_account' when its ident already belongs to a platform device under an inaccessible account.

3.33.5 #

  • Added origin (String?) on CaclInput, mirroring CaclEntity.origin. Lets the client submit the CACL's manual origin, used by the TFB report format to print ORIGEM for unload (discharge) operations from vessel-type transports instead of falling back to the linked asset's plate/name.

3.33.4 #

  • Added operations (List<AtsOperation>, defaults to []) on AtsPurchaseOrder. A purchase order shared across a road and a fluvial operation exposes each linked operation here with its own transportAsset, so the client can resolve the correct transport by the id returned in operationMatched instead of relying on transportAsset.

3.33.3 #

  • Added fillAuthorizations on RegisteredApp

3.33.2 #

  • Fixed ExternalUnit.fetchAll() GraphQL query: the status/errors/result selection is now nested inside the externalUnits field (with its sourceId argument), instead of being requested at the root of the query.

3.33.1 #

  • AtsLoadingParamsSample.transshipment now serializes to its own value TRANSSHIPMENT (both toJson() and fromJson()), replacing the temporary THIRD_PARTY_STORAGE mapping from 3.33.0. The backend now supports the dedicated value.

3.33.0 #

  • Added AtsLoadingParamsSample.transshipment, distinguishing a transshipment scan reception from third-party storage. The backend does not support a dedicated value yet, so toJson() serializes it as THIRD_PARTY_STORAGE for now; its local key is ats.loadingParamsSample.transshipment.
  • Added AppInternalIdentifier.meuSmartank (MEU_SMARTANK).

3.32.1 #

  • WorkspaceInput.icon is now optional (MdiRemapIcon? with @IconOrNullConverter(), instead of required MdiRemapIcon with @IconConverter()). The backend can return icon: null for a workspace, which previously threw on deserialization.
  • Bumped Flutter to 3.44.8 in .fvmrc.

3.32.0 #

  • Added AtsFuelSubType.silProductCode, the numeric SIL (TENTI) product code for the SKID unloading order. SIL only accepts pure products, so only the 6 pure subtypes (anidro → 1, ethanol → 2, biodieselB100 → 3, dieselS500ComunA → 4, gasolineComunA → 5, dieselS10A → 6) return a code; every other subtype returns null (not managed by SIL).

3.31.1 #

  • Updated the User gql fragment, and gql brickhouseUsers naming convention

3.31.0 #

  • Fully removal of layrz_icons in favor of flutter_material_design_icons
  • layrz_sdk version dump

3.30.0 #

  • Added AtsCfSkidModel (none/sil), the enum backing the new ats.custom.skid.model fixed custom field on Terminal assets (kindId 44) that lets ATS Mobile know whether — and with which equipment brand — a terminal receives product via SKID before routing it through the SIL integration. Follows the same manual toJson/fromJson/getLocaleKey pattern as AtsCfFuelType; unlike it, fromJson falls back to none instead of throwing, since the value comes from a custom field that may be empty or hold stale data.

3.29.0 #

  • Reworked the SIL SKID reception models to match the backend createSilUnloadingOrder contract 1:1, and moved them to a dedicated src/ats/src/sil/ folder.
    • Renamed (breaking vs. 3.28.0): AtsSilInputAtsSilUnloadingOrderInput, AtsSilCarretaAtsSilTrailerInput, AtsSilCompartimentoAtsSilCompartmentInput. Fields are now English and aligned with the backend SilUnloadingOrderInput: numRefoperationId (the backend derives SIL Num_Ref from the operation, so the client sends the operation id), nomeMotorista/rgMotorista/cpfMotoristadriverName/driverRg/driverCpf, placaCavalotruckPlate, carretastrailers, corDoVeiculovehicleColor, possuiDnithasDnit, lacresseals; trailer placaCarretatrailerPlate, compartimentoscompartments; compartment numCompartcompartmentNumber, volDescarga (now int, backend requires an integer) → dischargeVolume, produtoproductCode.
    • Added response entities for the mutation result: AtsSilUnloadingOrder (reuses the existing AtsOperation), AtsSilTrailer, AtsSilCompartment and its certified AtsSilCompartmentResult, plus the AtsSilUnloadingOrderStatus enum (pending/sent/sendFailed/completed).

3.28.0 #

  • Added AtsSilInput, AtsSilCarreta and AtsSilCompartimento — the payload collected in ATS Mobile for the SKID reception flow and forwarded to the SIL integration. Fields use camelCase (GraphQL convention); the backend maps them to SIL's snake_case keys. Every field is nullable (obligatoriness is enforced by the backend). AtsSilInput/AtsSilCarreta expose a private constructor that seeds their nested lists as growable and with one initial row, so consumers can add/remove without hitting an unmodifiable list.
  • Added CFOP codes 5923 and 6923 to AtsPurchaseOrderCategoriesEntity.cfop, mapping them to AtsPurchaseOrderCategoriesEntity.remittanceSale.

3.27.3 #

  • Corrected DeviceCommand.fetchAll(), which documented useFragment and extraFields but honoured neither: the result selection was hardcoded to id, name, source, isGlobal, protocol and model, so callers asking for the full fragment never received data, deviceId, protocolId, modelId, payload, modbusParameter or access. Consumers could not execute a fetched command over BLE, since its definition and payload live in data

3.27.2 #

  • Removed @Deprecated decorator in favor of backwards compatibility and prevent issues on CI until layrz_sdk is completed.

3.27.1 #

  • Fixed LayrzAppLocalizations.delegate() to return a LayrzAppLocalizationsDelegate (typed to LayrzAppLocalizations) instead of a LayrzI18nDelegate. The wrong delegate type registered a LayrzI18n in the widget tree, so LayrzAppLocalizations.of(context) never resolved and threw LayrzAppLocalizations was used before it was initialized — breaking any consumer (e.g. layrz_session's login) that still looks up LayrzAppLocalizations. Restored the LayrzAppLocalizationsDelegate class that plants the correct type.

3.27.0 #

  • Removed the @Deprecated annotation from LayrzAppLocalizations. The 3.26.0 deprecation (in favor of LayrzI18n from package:layrz_i18n) was premature: layrz_theme and many ecosystem widgets still consume LayrzAppLocalizations, and both localization engines are meant to coexist during the migration. The class is supported again; LayrzI18n remains the recommended API for new code.

3.26.1 #

  • Corrected DeviceCommand.delete() and DeviceCommand.deleteMany(), the deleteDeviceCommands field now receives the ids argument. Without it the declared $ids variable went unused and the request failed GraphQL validation with a 400, so nothing was ever deleted
  • Added FirmwareBuild.fragment
  • Added firmwares to Model.fragment, using FirmwareBuild.fragment

3.26.0 #

  • Migrated core user, authentication, and i18n types from layrz_models to layrz_sdk, with re-exports so consumers keep seeing them: Avatar, Department, Employee, Token, UserPreferences, I18nKey, I18nTranslation, Language, ApiResponse.
  • Migrated API and GraphQL utilities to layrz_sdk: LayrzConnector, LayrzApiExtras, StandardResponse, Gql, GqlQuery, GqlMutation, GqlSubscription, and related types.
  • Migrated all JSON converters to layrz_sdk: ColorConverter, IconConverter, DurationConverter, TimestampConverter, DateConverter, RegExpConverter, ByteListConverter, TimeOfDayConverter, DynamicMapConverter, ParamDataMapConverter and their nullable variants.
  • Breaking: TimeOfDay is deliberately hidden from the layrz_sdk re-export to preserve Flutter's TimeOfDay resolution; code annotating Flutter TimeOfDay fields with TimeOfDayConverter must switch to the locally retained FlutterTimeOfDayConverter.
  • Migrated all six enums to layrz_sdkApiStatus, AppPlatform, AvatarType, ColorblindMode, MfaMethod and TokenAudience — re-exported so consumers see no change.
  • Breaking: The localization engine moved to the layrz_i18n package; LayrzAppLocalizations is now @Deprecated in favor of LayrzI18n from package:layrz_i18n/layrz_i18n.dart.
  • Added a dart fix migration that renames LayrzAppLocalizations to LayrzI18n, but the fix does NOT add the import—run dart fix --apply and manually add import 'package:layrz_i18n/layrz_i18n.dart';.
  • Asset.mappitLaborStartTime and Asset.mappitLaborEndTime keep their Flutter TimeOfDay type, with no behavior changes for consumers.
  • Adds dependencies: layrz_sdk: ^4.4.3 and layrz_i18n: ^1.0.1.

3.25.1 #

  • Corrected CommandInput.save(), the status/errors/result selection now hangs off the addDeviceCommand/editDeviceCommand mutation field instead of the mutation root
  • Corrected DeviceCommand.execute(), the mutation field is executeDeviceCommand and not deviceCommands
  • Corrected Device.zigbeePermitJoinExpiresAt, removed the snake_case JsonKey that never matched the fragment field and always decoded to null
  • Corrected Device.delete(), Device.deleteMany() and Device.importDevicesIntoApp() to be sent as mutations, plus the field is importDevicesIntoApp and not importDevicesToApp
  • Added InboundProtocol.detailedFragment, which is fragment plus the protocol's models, and used it on InboundProtocol.fetch()

3.25.0 #

  • Added saleFromThirdPartyDeliveredBySeller value to AtsPurchaseOrderCategoriesEntity enum (SALE_FROM_THIRD_PARTY_DELIVERED_BY_SELLER, CFOP 5120/6120), so it no longer falls back to notDefined.

3.24.7 #

  • Added hasPreviousStockClosing value in StockClosingInfoPa model

3.24.6 #

  • Added totalWithdrawalsByComboio value in StockClosingTankInput and StockClosing models

3.24.5 #

  • Added StockClosingInfoPa model
  • Added totalWithdrawalsByComboio value in StockClosingTank and StockClosingInput models

3.24.4 #

  • Fixes on RegisteredApp.load()
  • This version was released manually

3.24.3 #

  • Fixes on ZigbeeDeviceExpose and ZigbeeDevice
  • Corrected FlespiSubmoduleConfig, wrong type and fields on GraphQL fragment
  • This version was released manually

3.24.2 #

  • Forgot to do the freezed
  • This version was released manually

3.24.1 #

  • Corrected lastSeen on ZigbeeDevice to have a converter.
  • This version was released manually

3.24.0 #

  • Added an API connector to ExternalAccount, with fetch(), fetchAll() and deleteMany(), plus ExternalAccountInput.save()
  • Added ExternalAccountVariant to target the Mappit-prefixed fields, defaulting to standard
  • Added ExternalAccount.gqlFragment, so consumers no longer need to declare the fragment themselves
  • Geofence now requests the errors field on every API call and logs its content whenever the response status is not OK, matching Action, Operation and ExternalAccount

3.23.1 #

  • Added onlyConfiot argument on Device.fetchAll() to include it in the GraphQL query and variables, allowing callers to filter devices that have Confiot enabled.
  • This version was released manually

3.23.0 #

  • Device, DeviceCommand, DeviceTelemetry and other models related to device entity now use the LayrzConnector.query() and LayrzConnector.mutate().

3.22.1 #

  • Added ActionVariant and OperationVariant to target the Mappit-prefixed fields exposed by the public GraphQL endpoint. Both default to standard, so existing callers keep their current behaviour
  • Action.fetch(), Action.fetchAll(), Action.deleteMultiple() and ActionInput.save() now accept a variant argument
  • Operation.fetch(), Operation.fetchAll(), Operation.delete(), Operation.deleteMany() and OperationInput.save() now accept a variant argument
  • Added OperationVariant.supportsAppId, which guards the appId argument. Only the standard operations query declares it; sending it to mappitOperations fails with Unknown argument "appId"
  • Action and Operation now use LayrzConnector.query() and LayrzConnector.mutate() instead of perform(), letting the connector resolve the response index and decode the result
  • Action and Operation API calls now request the errors field and log its content whenever the response status is not OK

3.22.0 #

  • Added API Connector on DeviceCommand
  • Standarized all tupled returns to StandardResponse<T>

3.21.0 #

  • Added API connector for InboundProtocol, Model, FlespiProtocol, FlespiModel and FlespiChannel

3.20.6 #

  • Updated layrz_logging dependency to now include colors on logs emitted by the system
  • This version was released manually

3.20.5 #

  • Added LayrzApiExtras to include extra information on the usage of LayrzConnector, including version and name of the app.
  • This version was released manually

3.20.4 #

  • Adjustments on User.fetch() to include parentId.
  • This version was released manually

3.20.3 #

  • Adjustments on RegisteredApp.load() to use the toJson() on enums
  • This version was released manually

3.20.2 #

  • Fixed User loginAsSubaccount gql mutation implementation

3.20.1 #

  • Fixed Brickhouse Graphql query name in _getGqlQueryName

3.20.0 #

  • Fixed GraphQL fragment emission order. Fragments were collected in pre-order, so a fragment that spread another was written above the fragment it depended on, producing documents where a fragment is referenced before it is defined. Nested dependencies are now emitted first, and cyclic fragment references are broken safely instead of overflowing the stack.
  • Added fragment getters to TagOnStudent, TagOnBusRoute and TagOnNotification.
  • Added API connectors for the TagOn entities with fetchAll, fetch and deleteMultiple on the models, and save on the existing TagOnStudentInput, TagOnBusRouteInput and TagOnNotificationInput models.
  • Added TagOnStudent.bulkLoad for bulk importing students from raw data rows. The data parameter is List<Map<String, dynamic>> (raw rows), not the typed TagOnStudentInput model, because the bulk endpoint resolves bus routes by name from nested objects in the raw data (e.g., {'busRoute': {'name': 'Route 4'}}), whereas TagOnStudentInput only has a flat busRouteId. Returns (ApiStatus, Map<String, dynamic>?) where the map has exactly three keys: 'status' (the serialized ApiStatus), 'errors' and 'studentsWithErrors' (a List<Map<String, dynamic>>, each entry holding errors and data for a row that failed to import).
  • Added TagOnStudent.export to export students to a downloadable file, returning (ApiStatus, String?) with the generated resultUri.
  • Added TagOnNotification.send static method to send a notification by its ID.
  • All TagOn API connectors (TagOnStudent, TagOnBusRoute, TagOnNotification) authenticate via the Authorization: LayrzToken <token> header that LayrzConnector sets automatically. Authentication is no longer sent as a GraphQL field argument. The apiToken parameter remains on every method signature for consistency.

3.19.3 #

  • Breaking: Renamed MappitReportInputMulti to MappitReportMultiInput to match the backend GraphQL schema, which renamed the input type. Queries declaring MappitReportInputMulti are rejected by the server with Unknown type 'MappitReportInputMulti'. The source file was also renamed from report_input_multi.dart to report_multi_input.dart. Field names and types are unchanged.
  • Fixed the $id variable type in Geofence.fetch, which was declared as String! instead of ID!, causing the server to reject the query with Variable $id of type String! used in position expecting type ID.
  • Fixed Geofence.fetchAll, which ignored the variant argument and always queried the geofences field, and referenced an undeclared $id variable in its arguments, making the query invalid for every variant.
  • Removed the apiToken GraphQL variable and argument from every caller in the geofences module (Geofence, GeofenceInput and SearchItem). Authentication travels in the Authorization header, which LayrzConnector already sets, so sending it as a query variable was redundant. The apiToken parameter remains on every method signature.

3.19.2 #

  • Updated Geofence.fetch, Geofence.fetchAll, Geofence.save and Geofence.deleteMultiple to accept a variant argument (standard, mappit, sdm) to resolve the query/mutation names and fragments per variant, aligning with the backend GraphQL schema.

3.19.1 #

  • Fixed Geofence.fragment, removed name on telemetry subgraph

3.19.0 #

  • Added SdmPenInput, SdmIngredientInput, SdmOperatorInput and SdmRecipeInput unfreezed input models for the SDM entities.
  • Added fragment getters to SdmPen, SdmIngredient, SdmOperator and SdmRecipe.
  • Added API connectors for the SDM entities with fetchAll, fetch, deleteMultiple and save (on the input models).
  • Added bulk operations to SdmPen, SdmIngredient and SdmRecipe: bulkLoad, export and formatExcel, returning the generated resultUri where applicable.
  • Added UserVariant enum (standard, ats, atsAdmin, brickhouse, sdm, tagon and the mappit* variants) to drive user queries and mutations from a single source of truth.
  • Added variant-aware API connectors to User: fetchAll, fetch, deleteMultiple and save (on UserInput), resolving the query, mutation and input type names per variant, with optional appId, languageId and mappitModule arguments.
  • Added User.fragment(variant:) covering access, referencesIds, categoryId, tagsIds plus the variant-specific fields, and a withDetails option on User.fetch for the tags, references, category and allowedApps expansions.
  • Added account action connectors to User: importIntoApp, resetPassword, setPaymentWarning, lock, suspend, invite and requestActivityReport.
  • Migrated User.fetchAll and User.fetchAllForAppUsers to the typed connector.query API; fetchAllForAppUsers remains locked to the standard variant by design.
  • Added ReferenceVariant enum (standard, mappit, sdm) and ReferenceInput input model.
  • Added variant-aware API connectors to Reference: fragment(variant:), fetchAll, fetch, clone, deleteMultiple and save (on ReferenceInput).
  • New GqlVariableType.unix for GraphQL Unix timestamp variables.
  • Added ReferenceVariant enum (standard, mappit, sdm) to drive reference queries and mutations from a single source of truth.
  • Added variant-aware API connectors to Reference: fetchAll, fetch, deleteMultiple and save (on ReferenceInput), resolving the query, mutation and input type names per variant — references/mappitReferences/sdmReferences for queries, and add/edit/delete mutations with the Mappit and Sdm infixes.
  • Added Reference.fragment(variant:) covering id, name, category, customFields, qrCode and access, reusing CustomField.fragment and Access.idFragment.
  • Added Reference.clone, which uses the cloneReference mutation for every variant.

3.18.2 #

  • Updated Gql to now auto-include name from the next field in the query or mutation if no name is provided, ensuring that all GraphQL operations have a valid name for better debugging and logging.

3.18.1 #

  • New GqlVariableType.enum_() factory for GraphQL enum variables, allowing type-safe enum variable declarations in queries and mutations.
  • Corrected RegisteredApp.load() to fix the platform and technology fields to be their respective enums AppPlatform and AppTechnology instead of plain strings, ensuring proper type safety and deserialization.

3.18.0 #

  • Added API connector for Geofence with full GraphQL support (fetch, fetchAll, save, delete, exportMany).
  • Added API connector for GeofenceInput with full GraphQL support (save).

3.17.4 #

  • Fixed an issue on AvailableApp.fetchAll() where the apiToken variable was not being passed to the GraphQL query, resulting in an empty response. The query now correctly includes the apiToken argument.

3.17.3 #

  • Corrected Fragment names on AppFont.fragment and InstanceDns.fragment to match the GraphQL schema types (AppFont and InstanceDns) instead of the previous incorrect names (FontInformation and DnsConfiguration).

3.17.2 #

  • Fixed an issue with the API connector RegisteredApp.fechAll

3.17.1 #

  • LayrzConnector now exposes typed query() and mutate() methods returning a decoded ApiResponse with status, errors and result
  • RegisteredApp.registerWithoutCustomization(), registerWithCustomization() and edit() now return (ApiStatus, Map<String, dynamic>?, RegisteredApp?) records with the operation status, field errors and decoded result
  • AppInstance, PushDevice and AvailableApp API callers migrated to the typed connector API
  • Fixed registerWithCustomization() reporting INTERNAL_ERROR on successful responses

3.17.0 #

  • Added API connectors for Country, RegisteredApp and AvailableApp

3.16.1 #

  • Add new value REMITTANCE_SALE in enum AtsPurchaseOrderCategoriesEntity

3.16.0 #

  • Add PushDevice model with validate() API caller to check device registration status on the backend and retrieve associated operation IDs
  • Add PushDevice.register() to register a new push device for an app and retrieve the created device ID
  • Add PushDevice.bindOperations() to bind or unbind a list of operations to a push device
  • Add PushDevice.deregister() to deregister a push device by its ID

3.15.2 #

  • Fix Operation GraphQL fragment: query accountId instead of externalAccountId, remove unexposed emailTemplateId, align access sub-selection with AccessPermission schema (id, read, write, manage, objectId, userId, module)
  • Add appId argument to Operation.fetch() to filter operations by app
  • Slim Operation.fetchAll() result selection to id, name, operationType
  • Invoke onResponse only on error responses across RegisteredApp and Operation API callers
  • Parse OperationInput.save() result as a single object

3.15.1 #

  • Fixes on Registered Apps import modules

3.15.0 #

  • Expanded Operation.gqlFragment to cover the full operation configuration (webhook, email, SMS/Twilio, push, in-app fields) so Operation.fetch/fetchAll return complete data.
  • Added RegisteredApp lifecycle callers (registerWithoutCustomization, registerWithCustomization, edit, delete) and completed app management coverage.
  • Added User.fetchAllForAppUsers for app user management contexts (includes username and email fields).
  • Add tolerant API status parsing accepting both legacy (NOTFOUND) and modern (NOT_FOUND) backend status formats
    • ApiStatus.fromJson() now handles both underscore-separated (e.g., 'NOT_FOUND', 'INTERNAL_ERROR') and legacy squashed (e.g., 'NOTFOUND', 'INTERNALERROR') formats through case-insensitive normalization.

3.14.0 #

  • PushSecrets model; RegisteredApp iosPushSecrets/androidPushSecrets (typed) and hasSvcPushSecrets (boolean status).
  • Operation/OperationInput appId for app-bound PUSH_NOTIFICATION operations.
  • App management API callers on RegisteredApp (fetch, setPushSecrets, access grant/revoke, asset/device import), AppInstance (deprecate/migrate/request), User (loginAs).
  • Operations API callers (fetch, fetchAll, save, delete).
  • GqlVariableType redesigned as a composable type builder (list(of:, isRequired:)/input(of:)); GqlVariable simplified.

3.13.3 #

  • Made performedBy nullable (User?) in MappitRouteLinkingHistory. When an employee is removed, the relation is soft-deleted and the backend sends performedBy: null for historical records, while performedById still holds the plain ID. The previous non-nullable declaration crashed fromJson with type 'Null' is not a subtype of type 'Map<String, dynamic>'. This aligns performedBy with the already-nullable currentSeller field.

3.13.2 #

  • Never published to pub.dev. The release tag was created off the development branch before it merged into main, so the publish workflow rejected it. The performedBy fix above was re-released as 3.13.3.

3.13.1 #

  • Added constant.number value to AtsStreamExitStructureType enum, a sibling of constant for ATAK outbound structure entries whose value should be sent as a real JSON number instead of a string.

3.13.0 #

  • Added ActionType.zigbeeChange (ZIGBEE_CHANGE) plus the ActionZigbeeSetting, ActionZigbeeSettings and ActionZigbeeSettingsInput models, with a new zigbeeSettings field on Action and ActionInput.
  • Added API callers Action.fetch, Action.fetchAll, Action.deleteMultiple and ActionInput.save, following the GqlQuery builder pattern.
  • Added Device.fetchZigbeeCapable, returning the devices that have Zigbee exposes bound to them (id, name, ident and exposes).
  • The Action, Device and User callers no longer send the apiToken GraphQL argument — authentication relies on the Authorization: LayrzToken header; requires a layrz-api deployment with the dual-auth actions, devices and users endpoints.

3.12.1 #

  • Changed vgNavio value type from int to String in CaclTFBDetails and CaclTFBDetailsInput models

3.12.0 #

  • Added AssetWidget, AssetWidgetConfig, and AssetWidgetRange models (with matching input variants) plus a read-only widgets field on Asset, backing the per-asset live-data widgets feature. Writes go through the dedicated updateAssetWidgets mutation, not the asset model.
  • Added NUMERIC and LINE_CHART values to the RenderWidget enum.
  • LayrzConnector now requires an apiToken and injects an Authorization: LayrzToken {token} header on every request and subscription, migrating authentication off the GraphQL apiToken variable.

3.11.9 ⚠️ Breaking Change #

  • Breaking: Fixed null icon handling in WorkspaceInput.fromJson. Previously, workspaces with no icon set would crash with a Null check operator used on a null value error during JSON deserialization. The icon field now falls back to solarOutlineQuestionSquare when null. This is a breaking change because any workspace that had a null icon will now render with the default icon instead of its previously expected icon — verify your workspace icon assignments.

3.11.7 #

  • Added numericSlider, enumSelector, textCommand and rawValue values to RenderWidget enum.
  • Added receptionAssetId (String?) field to AtsPurchaseOrder model.

3.11.6 #

  • Added StockClosingGeneralInfo new model
  • Updated StockClosing, StockClosingInput, StockClosingTank and StockClosingTankInput with new values openingBalanceAmbient, totalEntriesAmbient, totalWithdrawalsAmbient and closingBalanceAmbient

3.11.5 #

  • Added json and json.array values to AtsStreamExitStructureType enum, allowing ATAK outbound services to nest a group of structure fields into a single JSON object or a single-element JSON array.
  • Added attendant.id and attendant.user.id values to AtsStreamExitStructureType enum.
  • Added source (String?) and nested (List<OutboundStructureInput>/List<OutboundStructure>) fields to OutboundStructureInput and OutboundStructure models, to support the new json/json.array structure types.

3.11.4 #

  • Fixed issue on Token.create where duration variable was being sent as int instead of Duration type, causing GraphQL validation errors. Now, the duration variable is correctly sent as a Duration type in seconds.

3.11.3 #

  • Added finalStop value in CaclTFBDetails model
  • Added AtsCaclAsset model

3.11.2 #

  • Removed finalStopBoard and added finalStop as enum value in CaclTFBDetailsInput model
  • Added default value false to boolean values in CaclTFBDetailsInput model

3.11.0 #

  • Bumped minimum SDK constraints to Dart >=3.12.0 and Flutter >=3.44.0
  • Upgraded layrz_icons dependency to ^1.1.0
  • Updated mobilePopupNotification icon in OperationType to solarOutlineSmartphoneN2

3.10.16 #

  • Added duration field (Duration?) to MaskPoint and MaskPointInput models, with @DurationConverter() for JSON serialization/deserialization.

3.10.15 #

  • Added new value SALE_FROM_THIRD_PARTY_TANK in AtsPurchaseOrderCategoriesEntity enum

3.10.14 #

  • Added btInscription and vgNavio values in CaclTFBDetails and CaclTFBDetailsInput models

3.10.13 #

  • Added new models CaclTFBDetails and CaclTFBDetailsInput
  • Added new value tfbdetails to CaclEntity and CaclInput models

3.10.12 #

  • Changed MessageOfTheDay's id, name and title fields to be non-nullable, and required for declaration.

3.10.11 #

  • Added SensorDataType enum (INT, FLOAT, STR, BOOL) to the sensors module.

3.10.10 #

  • Added MessageOfTheDay and MessageOfTheDayInput models to the brickhouse module.

3.10.9 #

  • Added signedAt value in CaclEntity model

3.10.8 #

  • Added ATS_SUPERVISORIO_ALLOW_CLOSE_RAFT_OPERATION value in ReferenceCategory enum

3.10.7 #

  • Added AtsStreamModel and AtsStreamExitStructureType enums
  • added field atsModel to OutboundService and OutboundServiceInput models

3.10.6 #

  • Added exposes field (List<ZigbeeDeviceExpose>?) to the Device model, flattening Zigbee exposes across the device's bound Zigbee device(s).

3.10.5 #

  • Added widget field (RenderWidget?) to ZigbeeDeviceExpose for specifying the UI widget type associated with an exposed property.

3.10.4 #

  • Updated AtsFuelSubType.getColor() colors to match ATS tank product reclassification:
    • Diesel S10 (dieselS10A, dieselS10ComunB, dieselS10BAditivado) changed to #F0E1B4.
    • Ethanol (ethanol, ethanolAditivado) changed to #2274D7.

3.10.3 #

  • Added tankAsset field to CaclEntity model

3.10.2 #

  • Added ZigbeeDeviceExpose freezed class with fields id, name, type, access, params, and updatedAt.
  • Added exposes field (List<ZigbeeDeviceExpose>?) to ZigbeeDevice for storing device capability exposes.
  • Added alias field (String?) to ZigbeeParameter and ZigbeeParameterInput for optional parameter aliasing.
  • Added access field (int, default 3) to ZigbeeParameter for access control (bit flags: read=1, write=2).
  • Added access field (int?) to ZigbeeParameterInput for mutable form editing.

3.10.1 #

  • Add zigbeePermitJoinExpiresAt field to Device for permit-join persistence

Changelog #

3.10.0 #

  • Added ZigbeeDevice freezed class with fields id, ieeeAddress, manufacturer, model, lastSeen, bindedDeviceId, and zoneId.
  • Added zigbeeDevices field (List<ZigbeeDevice>?) to Device for hub-scoped Zigbee device hydration alongside existing peripherals.

3.9.2 #

  • Added gasValue (GAS_VALUE) to RenderWidget enum for gas detection value display.

3.9.1 #

  • Added zigbeeCompatible field (bool, default false) to Model and ModelInput to indicate Zigbee capability (only meaningful for REALTIME protocols).
  • Added zigbeeZoneId field (String, default '') to Device for auto-generated Zigbee zone ID (10 chars).
  • Added zigbeeToken field (String, default '') to Device for auto-generated Zigbee token (72 chars).

3.9.0 #

  • Added ZigbeeDataType enum (BOOLEAN, NUMBER, STRING, ENUM) mirroring connectivity/constants/zigbee_data_type.py.
  • Added ZigbeeParameter (Freezed) and ZigbeeParameterInput (@unfreezed) models with fields: id, name, dataType, widget, extra.
  • Added zigbeeParameters field (List<ZigbeeParameter> / List<ZigbeeParameterInput>) to both Model and ModelInput.
  • Added widget field (List<RenderWidget>) to ModelInput with @JsonKey(name: 'widgetRender').

3.8.20 #

  • Added createdByUserId field String to CaclEntity to expose the id of the user who created the cacl form.
  • Added createdByUser field User to CaclEntity to expose the user who created the cacl form.

3.8.19 #

  • Added new value executedAt in ManifestInput and Manifest models
  • Added new values sampleTemperature and tankTemperature in TankMeasurement models, and deprecated temperature value

3.8.18 #

  • Added purchaseOrderIds field (List<String>?) to AtsReceptionInput to align with the GraphQL ReceptionInput schema.
  • Deprecated ordersIds field in AtsReceptionInput in favor of purchaseOrderIds.

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.

3.8.15 #

  • Added originalBuyerAsset field (Asset?) to AtsPurchaseOrder to expose the original buyer asset linked to the purchase order.

3.8.14 #

  • Added new widgets on RenderWidget enum

3.8.13 #

  • Changed destinyInformation field in AtsLoadingParamsFormInput from nullable List<AtsDestinyInformationInput>? to non-nullable List<AtsDestinyInformationInput> with @Default([]) to ensure it always defaults to an empty list.

3.8.12 #

  • Made position field nullable (InboundPositionStructure?) in InboundStructure and InboundStructureInput to support services without a position structure.
  • Added DynamicMapConverter and DynamicMapConverterNullable converters to safely deserialize Map<dynamic, dynamic> (e.g. Dart literal {}) into Map<String, dynamic>.
  • Applied @DynamicMapConverterNullable() to InboundService.credentials and @DynamicMapConverter() to InboundServiceInput.credentials to fix deserialization failures when credentials arrive as an empty map literal.

3.8.11 #

  • Adjustments on Model, now widget is List<RenderWidget> instead of plain RenderWidget.

3.8.10 #

  • Added new fields on InboundProtocol and Model to support Zigbee and ConfIoT related configurations

3.8.9 #

  • Added new value NFE_CHANGED in AtsPurchaseOrderStatus enum
  • Added new value checkInAt in AtsOperation model

3.8.8 #

  • Fixed casesMonitorConfig type in Workspace model to be a list of nullable CaseMonitorCard? instead of non-nullable CaseMonitorCard.
  • Added AtsMdfe model
  • Added mdfeId, mdfe and mdfes values in AtsOperation model
  • Added default values to StockClosingInput model
  • Added ATS_INVOICE_SWAP value in ReferenceCategory enum

3.8.7 #

  • Updated openingBalance to openingBalance20 in StockClosingTank model
  • Updated totalEntries to totalEntries20 in StockClosingTank model
  • Updated totalWithdrawals to totalWithdrawals20 in StockClosingTank model
  • Updated closingBalance to closingBalance20 in StockClosingTank model

3.8.6 #

  • Refactor StockClosing and StockClosingTank models
  • Rename tanks to closingDetails value in StockClosingInput

3.8.5 #

  • Added thirdPartyStorage value to AtsLoadingParamsSample enum, mapped to THIRD_PARTY_STORAGE JSON value.
  • Added correctionFactor and liquidWeight fields to AtsLoadingParamsFormInput model for third-party storage support.

3.8.4 #

  • Added GqlSubscription class for composable GraphQL subscription query construction.
  • Added LayrzConnector.subscribe() method to open WebSocket subscriptions using the graphql-transport-ws protocol.

3.8.3 #

  • Added attributes field to TableItem and TableItemInput models to support asset attributes in workspace tables.

3.8.2 #

  • Removed stockClosingId to StockClosingTankInput model

3.8.1 #

  • Added linkedStorageTerminals and linkedStorageTerminalsIds fields to Asset model.
  • Added linkedStorageTerminalsIds field to AssetInput model.
  • Added invoiceId field to AtsPurchaseOrder model.
  • Added atsGetAllTerminals and atsStorageReceptionAccess values to ReferenceCategory enum.

3.8.0 #

  • Added gql_builder module (GqlQuery, GqlMutation, GqlFragment, GqlField, GqlVariable) for composable, type-safe GraphQL query construction.
  • Moved LayrzConnector from lib/src/utils/ into the api/ module; still accessible via the top-level barrel.
  • Added LayrzConnector.perform(Gql) replacing the raw-string perform(query:, variables:) method.
  • Added GqlVariableType.list with listOf and nestedRequired for [ID]! and [ID!]! list types.
  • Added GqlVariableType.input with inputName for GraphQL input object variables.
  • Added GqlField.args for rendering field-level arguments (e.g. charts(apiToken: $apiToken)).
  • Added Avatar.gqlFragment reusable fragment.
  • Migrated all API callers (LayrzChart, LayrzChartInput, Access, User, Locator, LocatorInput, MapLayer, MapLayerInput, Poi, PoiInput, Token, RegisteredApp) to the gql_builder.
  • Added assets, assetsIds, and enableLttb fields to LayrzChart and LayrzChartInput.
  • Fragment collection is now automatic — the builder walks the field tree at generation time; no explicit fragments: list required.

3.7.10 #

  • Added StockClosing entity model
  • Added StockClosingTank entity model
  • Added TankChangesType entity model
  • Added StockClosingInput input model
  • Added StockClosingTankInput input model

3.7.9 #

  • Added terminalEntryAt and terminalExitAt values in AtsOperation model

3.7.8 #

  • Deprecated temperature value in TankMeasurementInput model
  • Added sampleTemperature and tankTemperature in TankMeasurementInput model

3.7.7 #

  • Added RealtimeMessage model with topic and payload fields in the new realtime module.

3.7.6 #

  • Added ATS_PREVENT_CHANGES_IN_CACL_TELEMETRY_INPUTS value to ReferenceCategory enum

3.7.5 #

  • Added CaclCategory enum to category value in CaclEntity and CaclInput models

3.7.4 #

  • Added showAssetsLabels, showGeofencesLabels, showPoisLabels, and showAssetsTrails boolean fields to Locator and LocatorInput.
  • enableSidebar and showAssetsTrails default to true in LocatorInput.

3.7.3 #

  • Refactor CaclInput.

3.7.2 #

  • Remove unused properties mapLayerId and poisIds from MapLayerInput

3.7.1 #

  • Added loadingOrders value to AtsOperation model

3.7.0 #

  • Added unknown, userNotFound, wrongPassword, accountBlocked, and passwordUsedBefore values to ApiStatus.
  • Removed deprecated telegramUnauthorized and telegramBadRequest values from ApiStatus.
  • Added MapLayerInput model with full API callers (fetch, fetchAll, save, delete).
  • Removed LocatorApiResponse in favour of the generic ApiResponse<Locator, Map<String, dynamic>>.
  • Removed PoiApiResponse in favour of the generic ApiResponse<Poi, Map<String, dynamic>>.
  • Replaced hardcoded 'INTERNAL_ERROR' strings with ApiStatus.internalError.toJson() across all API callers.

3.6.29 #

  • Updated Locator.fetchAllGraphqlQuery to include description in the query result fields.

3.6.28 #

  • Added description field to Locator and LocatorInput models.
  • Updated Locator GraphQL fragment to include description.

3.6.27 #

  • Added LocatorBoundary and LocatorBoundaryPoint models (freezed + unfreezed variants) for representing the geographic bounding box of a locator.
  • Added boundary field to Locator and LocatorInput models.
  • Updated Locator GraphQL fragment to include boundary data.

3.6.26 #

  • Added operation value in CaclEntity model

3.6.25 #

  • Changed pois and poisIds fields in Locator from non-nullable with default empty list to nullable List<Poi>? and List<String>?.

3.6.24 #

  • Added graphqlIdFragment and graphqlUuidFragment static constants to Access for GraphQL queries.
  • Added save() and delete() methods to AccessInput with full GraphQL mutation support (both ID and UUID variants).
  • Updated Poi.graphqlFragment to include the access field using the UUID access fragment.

3.6.23 #

  • CI issues, no code changes.

3.6.22 #

  • Added pois enum value to AccessModule for access control to the POIs module.

3.6.21 #

  • Added PoiInput model to the map module with save() support for creating and editing points of interest via GraphQL.
  • Added PoiApiResponse helper class to the map module.

3.6.20 #

  • Added hasWorldwideCoverage to Device model to represent if the device has worldwide coverage, for the BHS use case, this field is used to identify if the device has GPS insurance.
  • Added hasGpsInsurance to User model to represent if the user has GPS insurance, for the BHS use case.

3.6.19 #

-Added new value modal in AtsIdeInformation -Added new value ORDER_RECEIVED in AtsPurchaseOrderStatus

3.6.18 #

  • Added new Poi and PoiInput models to the map module
  • Added mapLayerId, mapLayer, pois, and poisIds fields to Locator model
  • Added poisIds and mapLayerId fields to LocatorInput and MapLayerInput

3.6.17 #

  • Refactored AtsCommandExecutionHistory model:
    • Replaced fields fromAsset, toAsset, and fatherAsset from String? to Asset?
    • Replaced generatedBy from String? to User?

3.6.16 #

  • Added new model AtsLoadingOrder
  • Added new value loadingOrders in AtsOrder model

3.6.15 #

  • Added new value VALIDATED in AtsPurchaseOrderStatus enum
  • Added new value ATS_SUPERVISORIO_EXPORT_CACL in ReferenceCategory enum

3.6.14 #

  • Added density20 in AtsLoadingParamsFormInput

3.6.13 #

  • Added TokenAudience enum with values API and SESSION
  • Added id, issuedAt, and audience fields to Token model
  • Changed validBefore to nullable in Token model
  • Added fetchAll, expire, and create GraphQL operations to Token model

3.6.12 #

  • Fix AtsPurchaseOrderCategoriesEntity enum values

3.6.11 #

  • Added new value PRODUCTION_SALE_TO_FREE_TRADE_ZONE in AtsPurchaseOrderCategoriesEntity enum

3.6.10 #

  • Intenal re-organization of modules
  • New EmployeeInput and CustomPermissionInput in favor of centralization of models.

3.6.9 #

  • Added AppPlatform enum to represent the platform of the passkey in the Passkey model.

3.6.8 #

  • Added new Passkey model to represent passkeys registered for users and employees.

3.6.7 #

  • Renamed ExternalAccountForm to ExternalAccountInput

3.6.6 #

  • Added TWO_YEARLY value in BrickhouseBillingPeriod enum

3.6.5 #

  • Changed order value type in AtsOrderStatusHistory model
  • Added ATS_EXPORT_RAFT_CLOSURE_REPORT_PDF value in ReferenceCategory enum
  • Added ATS_SUPERVISORIO_EDIT_CACL value in ReferenceCategory enum
  • Added ATS_SUPERVISORIO_REMOVE_CACL value in ReferenceCategory enum

3.6.4 #

  • Added AtsOrder model
  • Added AtsOrderStatusHistory model

3.6.3 #

  • Added ATS_BALSA_EXPORT_RECEIVEMENT_REPORT_PDF value in ReferenceCategory enum
  • Added totalExits20 value in AtsEntry model

3.6.2 #

  • Added totalExits value in AtsEntry model

3.6.1 #

  • Updated TwilioContentSid template SID on English

3.6.0 #

  • Updated Operation and OperationInput to support new notifications

3.5.7 #

  • Rempalce fatherAsset to fatherAssetId in AtsCommandExecuteHistoryInput

3.5.6 #

  • Add AtsCommandExecutionHistory and AtsCommandExecuteHistoryInput

3.5.5 #

  • Added new value MEDIUM_ACCURACY in enum AtsEtaStatus

3.5.4 #

  • Added new value ATS_BALSA_BORDO in enum ReferenceCategory

3.5.3 #

  • Added new enum AtsEtaStatus
  • Added new values minEta and etaStatus in AtsOperation model

3.5.2 #

  • Added new value BEFORE_UNLOAD in ManifestKind enum

3.5.1+2 #

  • Added lastMessages to ReportSource enum columns

3.5.1+1 #

  • Added migration guide for renaming ReportTemplateSource and ReportTemplateAlgorithm enums.

3.5.1 #

  • Renamed ReportTemplateSource to ReportSource enum, also, added ReportTemplateSource as typedef to avoid breaking changes.
  • Renamed ReportTemplateAlgorithm to ReportAlgorithm enum, also, added ReportTemplateAlgorithm as typedef to avoid breaking changes.

3.5.0+1 #

  • Modified ApiResponse<T> generic class to also include a second generic type Q for error representation.

3.5.0 #

  • Upgraded to Dart SDK version 3.10.0 and Flutter version 3.38.1
  • New ApiResponse<T> generic class to standardize API responses across the package.

3.4.85 #

  • Changed temperature value in TankMeasurementInput to have the possibility of be null

3.4.84 #

  • Added messageId in ManifestInput and Manifest models

3.4.83 #

  • change additionalFields of ExternalUnit to have the posibility of be null

3.4.82 #

  • Added accessibility and preferences to Employee

3.4.81 #

  • Added initialDensity20, finalDensity20, initialVolume20, finalVolume20, initialCorrectionFactor, finalCorrectionFactor in AtsEntry models

3.4.80 #

  • Added density20, volume20 in AtsBalanceParams
  • Added density20, volume20, correctionFactor in AtsSkidSetaParams

3.4.79 #

  • Added lossPercentage to CaclEntity

3.4.78 #

  • Added AtsBooking and AtsBookingInput

3.4.77 #

  • Added TableItem model to support table functionalities in the workspace module.
  • Added TableItemInput model for creating and updating table items on the workspace module.
  • Refactored Workspace and WorkspaceInput models to include new table properties: tableEnabled and tableStructure.
  • Also refactored Workspace to use default values for lists and enums to enhance stability and usability.

3.4.76 #

  • Added file property to CaseComment model to associate files with specific comments.
  • Updated Case model documentation to clarify its purpose.

3.4.75 #

  • Added RealtimeMqttConfig model to support real-time MQTT configurations.
  • Updated User model to include mqttConfig property.

3.4.74 #

  • Updated parameters structure and new model SensorLastUpdate.

3.4.73 #

  • Add ParamData and ParameterUpdate.
  • create param_test this is a funtion to test ParamData,ParameterUpdate and @ParamDataMapConverter().

3.4.72 #

  • Add again volume20 in AtsLoadingParamsFormInput

3.4.71 #

  • Added TagOn models

3.4.70 #

  • Remove a20Volume, liquidWeight, density20, volume20, spareVolume from AtsLoadingParamsFormInput and AtsLoadingParamsForm
  • Add balanceParams and skidSetaParams in AtsLoadingParamsForm

3.4.69 #

  • This version was published by mistake and should be omitted. Please use version 3.4.70 or later.

3.4.68 #

  • Added sensorId to CloudEntry model to associate files with specific sensors.

3.4.67 #

  • Update AtsLoadingParamsForm AtsLoadingParamsFormInput with new props

3.4.66 #

  • Added index in RequestChartInput model

3.4.65 #

  • Changed id to chartId value in RequestChartInput model

3.4.64 #

  • Added RequestChartInput model
  • Added new values assetsIds and name, in AnalyticsGridItem and AnalyticsGridItemInput models

3.4.63 #

  • Expanded accessibility options in UserPreferences by introducing dateFormat and timeFormat fields. These additions allow users to customize their preferred date and time display formats independently, enhancing personalization and usability.

3.4.62 #

  • Added geofences to Case model as replacement of geofence to support multiple geofences context on cases when it's available.

3.4.61 #

  • Added Locator customization fields to GraphQL fetch helpers and allowed filtering by id when requesting a single Locator.

3.4.60 #

= Update AtsLoadingParamsForm

3.4.59 #

  • Update AtsLoadingParamsFormInput

3.4.58 #

  • Added atsPurchaseOrders value in ChartDataSource enum

3.4.57 #

  • Moved utils/ to src/ to be consistent with the rest of the submodules.
  • Removed kPrimaryColor constant to avoid conflicts with other Layrz packages.
  • Added customizationId and customization to Locator and LocatorInput models to support Locator customization.
  • Added locatorCustomizationId and locatorCustomization to Trigger and TriggerInput models to support Locator customization on Trigger activation.
  • Created fetchAll and fetchAllGraphqlQuery statics on RegisteredApp as part of the transition to use layrz_models as official API wrapper/connector of Layrz.

3.4.56 #

  • Added PresetInput model

3.4.55 #

  • Added accessibility and preferences to user entity.

3.4.54 #

  • Changed bookedFor for nullable in AtsOperationHistory

3.4.53 #

  • Added new values LOADING_BOOKED and UNLOADING_BOOKED in AtsPurchaseOrderStatus
  • Added new value bookedFor in AtsOperationHistory

3.4.52 #

  • New model OutboundServiceInput to create and update Outbound Services.

3.4.51 #

  • Added shouldGenerateLocator, locatorExpiresDelta, locatorExpiresTriggersIds and locatorGeofencesIds to Trigger and TriggerInput models to support Locator generation on Trigger activation.

3.4.50+1 #

  • Adjustments on the link of the Locator

3.4.50 #

  • Added list analyticsGridStructure in AtsMonitorInput

3.4.49 #

  • Added Locator in AppInternalIdentifier

3.4.48 #

  • Added Locator models (Locator, LocatorInput, LocatorMqttConfig) plus GraphQL helpers for CRUD, expiry, and bulk fetching.
  • Introduced LayrzConnector utility to streamline GraphQL requests and exported it via layrz_models.utils.
  • Declared new dio and layrz_logging dependencies required for Locator API tooling.

3.4.47 #

  • Added metadata to CaseComment model to support additional information storage.

3.4.46 #

  • Added isPaused to Trigger model
  • Added shouldStack and stackUpperLimit to Trigger and TriggerInput models to support case stacking functionality.

3.4.45 #

  • Changes on Case model to support geofence context on cases when it's available.

3.4.44 #

  • Add getLayrzKey() in AtsSelectCard

3.4.43 #

  • Version tag created for tracking purposes. No code changes were included in this release.

3.4.42 #

  • Added expiredLast12Hours and expiredLast24Hours to WorkspaceCardType enum

3.4.41 #

  • CaseStatus and CaseIgnoredStatus enum converters reworked to use native @JsonKey and @JsonValue
  • Added geofence property to Case model to provide geofence context on cases when it's available.

3.4.40 #

  • Add in AtsMonitor and AtsMonitorInput new props to support charts

3.4.39 #

  • Added hasCaseExpirity and whenCaseExpiresDelta to Trigger and TriggerInput model

3.4.38 #

  • Updated WorkspaceTripPoint model to include eventId and sensors properties.

3.4.37 #

  • Add new entities in MonitorCardType

3.4.36 #

  • Run build_runner to add in AccessModule.atsMonitos

3.4.35 #

  • Add in AccessModule ATS_MONITORS

3.4.34 #

  • Add many models to new Ats monitor entities

3.4.33 #

  • Added new value atsOperations in ChartDataSource enum

3.4.32 #

  • Added isPasswordExpired to User model

3.4.31 #

  • Added transportCompanyAsset and transportCompanyAssetId in AtsOperation entity

3.4.30 #

  • startAt and endAt are DateTime in AtsExitInput
  • Monitor entity models in Ats was implemented

3.4.29 #

  • Added progress to MappitRecalculate model

3.4.28 #

  • Added MappitRecalculate model

3.4.27 #

  • Update Changelog and Readme

3.4.26 #

  • Added BlockInput, BoolBlockInput, MathBlockInput, ConditionType ExceptionType MathType and BlockType
  • Added startAt and endAt in AtsExitInput

3.4.25 #

  • Update README

3.4.24 #

  • Fix prop name authenticationCardBoard to authenticationCardCardboard in ASset

3.4.23 #

  • Added searchTimeDelta to Trigger and TriggerInput models

3.4.22 #

  • Added children and childrenIds to Trigger and TriggerInput models
  • Added TriggerType.nested to TriggerType enum

3.4.21 #

  • Deprecated authenticationCard and authenticationCardId from Asset
  • Added authenticationCardCardboardId , authenticationCardTagId, authenticationCardNfcId, authenticationCardboard authenticationCardTag adn authenticationCardNfc in Asset
  • Added authenticationCardCardboardId , authenticationCardTagId and authenticationCardNfcId in AssetInput

3.4.20 #

  • Added assetId in Geofence and GeofenceInput

3.4.19 #

  • Added atsRecalculateOperationButton in ReferenceCategory

3.4.18 #

  • Add access in ReportScheduler

3.4.17 #

  • Added enabled in ReportScheduler
  • Added REPORT_SCHEDULERS in AccessModule

3.4.16 #

  • Change @Default(['']) to @Default([]) in ReportScheduler

3.4.15 #

  • Remove @Default from templateCode in ReportScheduler

3.4.14 #

  • Weekday add toInt() converter
  • Rework ReportScheduler and ReportSchedulerInput

3.4.13 #

  • Added localIpAddress in Device and `DeviceInput

3.4.12 #

  • Added ReportScheduler and ReportSchedulerInput

3.4.11 #

  • Added createdAt to ManifestInput model
  • Added localDateStart and localDateEnd to CaclInput and CaclEntity models

3.4.10 #

  • Removed ambientProductVolume from ResultsInput and ResultsEntity models

3.4.9 #

-Added RegisteredLogsand RegisteredLogsRowmodels

3.4.8 #

  • Added createdAt to CaclEntity models
  • Fix AtsPurchaseOrderStatus missing unloadingFuel value

3.4.7 #

  • Added CaclEntity to ats models
  • Added CaclEquipmentEntity to ats models
  • Added EquipmentMeasurementEntity to ats models
  • Added MeasurementEntity to ats models
  • Added CaclMeasurementOutput to ats models
  • Added MeasurementsEntity to ats models
  • Added ResultsEntity to ats models
  • Added VolumeMovedEntity to ats models
  • Added CaclEquipmentInput to ats models
  • Added CaclInput to ats models
  • Added EquipmentMeasurementInput to ats models
  • Added MeasurementInput to ats models
  • Added CaclMeasurement to ats models
  • Added MeasurementsInput to ats models
  • Added ResultsInput to ats models
  • Added VolumeMovedInput to ats models
  • Added unloadingFuelInterrupted and destinationBerthExit values in AtsPurchaseOrderStatus enum
  • Updated caclForms and added caclFormsIds values in AtsOperation model

3.4.6 #

  • Added triggerId to BrickhouseAlert model

3.4.5 #

  • Migrated Report input submodels to models.

3.4.4 #

  • Migrated CareProtocol input submodels to models.

3.4.3 #

  • Added Manifest and ManifestInput models to handle manifest data.
  • Added TankMeasurement and TankMeasurementInput models to handle tank measurements.
  • Added ManifestKind enum to define the kind of manifest.

3.4.2 #

  • Re-defined the Trigger model as a submodule to code separation.
  • Added new manualAction to TriggerType enum.
  • Added manualActionFields to Trigger and TriggerInput models.
  • Re-defined the CareProtocol model as a submodule to code separation.

3.4.0 #

  • Upgraded freezed to 3.0.0 version and their dependencies.
  • Moved all @freezed classes to new spec abstract class.
  • Defined a Makefile to do basic operations easily.

3.3.68 #

  • Added new AtsExitInput model
  • Added attendantId parameter in AtsExit model

3.3.67 #

  • Added FirmwareBuild model

3.3.66 #

  • Added peripherals list to Device model

3.3.65 #

  • Added atsSendOdometerInExecuteExits in ReferenceCategory.
  • Created AtsEntryInput
  • Removed const in BHSEncodedTrip unfreezed

3.3.64 #

  • Added BHSEncodedTrip and BHSEncodedTripInput models

3.3.63 #

  • Added I18nKeyHistory model

3.3.62 #

  • I18n changes

3.3.61 #

  • Hotfix

3.3.60 #

  • Added readyToOperate and unloadingOperation values in AtsPurchaseOrderStatus enum
  • Added unloadingOperationAt and readyToOperateAt in AtsOperationStatuses model

3.3.59 #

  • Added billingPlan to User model

3.3.58 #

  • Updated PackageLanguage enum to include Golang as a new language option.
  • Migrated to a JsonConverter to a native @JsonKey and @JsonValue for PackageLanguage enum.

3.3.57 #

  • Added aiEnabled to BillingPlan and their BillingPlanInput models

3.3.56 #

  • Added operationId in AtsEntry

3.3.55 #

  • Added lock, suspension and paymentWarning fields to User model

3.3.54 #

  • updated TriggerInput model to mathch the new Trigger model

3.3.53 #

  • added in isBluetooth in AtsEntryUnloadInput

3.3.52 #

  • add nullsafety in AtsFuelSubType

3.3.51 #

  • Added ctes and caclForms properties in AtsOperation model

3.3.50 #

  • Changes on Workspace submodule

3.3.49 #

  • Added customFields in GeofenceInput model

3.3.48 #

  • Deleted the BHSDriverSafetySpeedingEvent of brickhouse driver safety
  • Modify the messages on BHSDriverSafetySpeedingEvents to work with TriggerActivation

3.3.47 #

  • Created AccessibilityInput.
  • Removed colorblindStrength and ColorblindMode to Employee and UserInput

3.3.46 #

  • Added isDisabled to BrickhouseAlert model

3.3.45 #

  • Fixes

3.3.44 #

  • Name correction of protanopia and protanomaly in ColorblindMode enum

3.3.43 #

  • Added ColorblindMode enum
  • Added colorblindMode and colorblindStrength to User and Employee model

3.3.42 #

  • Added BrickhouseAlertType.unplugged to BrickhouseAlertType enum

3.3.41 #

  • Fixed enum resolver for GeofenceCategory enum

3.3.40 #

  • Add TenvioBulkInput model

3.3.39 #

  • Added startPosition to BHSDriverSafetyDrivingEvent model
  • Added endPosition to BHSDriverSafetyDrivingEvent model

3.3.38 #

  • Added txPower to BleDevice model

3.3.37 #

  • Added peripheralParserSpec to InboundProtocolInput and ModelInput models

3.3.36 #

  • Added peripheralParserSpec to InboundProtocol and Model models

3.3.35 #

  • Changed BLE models to support multiple Manufacturer Data

3.3.34 #

  • Removed BLE parser things.

3.3.33 #

  • Added BHSDriverSafetySpeedingEvents for Brickhouse driver safety
  • Added BHSDriverSafetyDrivingEvent For Brickhouse driver safety

3.3.32 #

  • Added AtsExecuteLoadInput to execute load

3.3.31 #

  • Added Parsing technology on ble submodule

3.3.30 #

  • Updates over Ble things

3.3.29 #

  • Hotfix

3.3.28 #

  • Updates on Action and LayrzChart models to support direct enum conversion
  • Added their equivalences of the models mentioned above in the Input models

3.3.27 #

  • Changes added to Operation and OperationInput models

3.3.26 #

  • Added LayrzNotification model
  • Added SoundEffect enum
  • Updated Operation and OPerationInput models to support sound effects on notifications.

3.3.25 #

  • Updated MapLayer model to use direct enum conversion
  • Added MapLayerInput model

3.3.24 #

  • Updated some models of sub module apps to support direct enum conversion

3.3.23 #

  • Added peripheral indicator and identifier for InboundProtocol and Model models
  • Added new visionCaptureThreshold in Device model

3.3.22 #

  • Document AtsPurchaseOrderCategoriesEntity
  • height and initialHeight was added in AtsEntry

3.3.21 #

  • Modified things on BleDevice to works with layrz_ble plugin.

3.3.20 #

  • Missing definition

3.3.19 #

  • Added optional password field to UserInput model

3.3.18 #

  • Added UserInput model

3.3.17 #

  • Added sdmOperator and sdmGuest on ReferenceCategory enum
  • Marked as deprecated sdmAdmin from ReferenceCategory enum

3.3.16 #

  • Moved Reference model and ReferenceCategory to a submodule
  • Replaced conversion of ReferenceCategory enum from JsonConverter to a native @JsonValue and @JsonKey
  • Declared sdmAdmin and sdmSupervisor on ReferenceCategory enum

3.3.15 #

  • Added BrickhouseUserRole enum and updates to the BHSPermissionTier

3.3.14 #

  • Added new value etaUpdatedAt in AtsPurchaseOrder

3.3.13 #

  • Added new value eta in AtsPurchaseOrder

3.3.12 #

  • In AtsEntry these properties fuelType and fuelSubType were deprecated

3.3.11 #

  • Added new value eta in AtsOperationStatuses

3.3.10 #

  • Added new values in AtsPurchaseOrderCategoriesEntity
  • added new function in cfop function in AtsPurchaseOrderCategoriesEntity

3.3.9 #

  • Updated README.md

3.3.8 #

  • Added BleCharacteristic and BleService models
  • Added BleProperty enum

3.3.7 #

  • Added BleDevice model

3.3.6 #

  • Add orders in AtsReception

3.3.5 #

  • Changed customProperties on BHSPermissionTier to default to a dict

3.3.4 #

  • Added LayrzPackage model

3.3.3 #

  • Changed dart:html to package:web in LayrzAppLocalizations to support web WASM.

3.3.2 #

  • Changed conditional import to validate from dart.library.html to dart.library.js_interop to WASM support.

3.3.1 #

  • Some fixes related to icon conversion.

3.3.0 #

  • Changed icon library from material_design_icons_flutter to layrz_icons

3.2.69 #

  • removed cooldownTime from BrickhouseAlert and BrickhouseAlertInput models since it has been deprecated.

3.2.68 #

  • add AtsFuelSubType.unknown and AtsFuelType.unknown.
  • add in AtsLoadingParamsSample getLocalKey().
  • use converters in AtsLoadingParamsForm.
  • fix loadingParameters in AtsReception.

3.2.67 #

  • Added description to BHSPermissionTier and BHSPermissionTierInput

3.2.66 #

  • Adjustments on MFA models

3.2.65 #

  • rename LoadingParamsFormInput to AtsLoadingParamsFormInput and LoadingParamsForm to AtsLoadingParamsForm.
  • add AtsReceptionStatus in AtsReception.
  • add loadingParamsForm in AtsReception.

3.2.64 #

  • Added tenvio things on User model

3.2.63 #

  • Fix AtsCfFuelType localizations

3.2.62 #

  • Add AtsOperation in AtsPurchaseOrder
  • Add getCfFuelType() in AtsFuelSubType
  • Change the fuelType variable type in getFuelSubTypeList()

3.2.61 #

  • Fix AtsFuelSubType and Gasolina was remplace for Gasoline in AtsCfFuelType

3.2.60 #

  • Added signature on TenvioPackage model

3.2.59 #

  • Added getLocaleKey in AtsFuelType

3.2.58 #

  • Convert getFuelSubTypeList from AtsFuelSubType as static

3.2.57 #

  • Fix AtsFuelSubType enum, getLocaleKey structure

3.2.56 #

  • Fix AtsFuelSubType enum, fromCProdANP method

3.2.55 #

  • Update OperationProductInformation prop subcategory type
  • Added fuelSubtype on AtsEntry model
  • Update AtsFuelSubType enum, added getLocaleKey and getFuelSubTypeList

3.2.54 #

  • Fix AtsCfFuelType.hydrated toJson() and fromJson()

3.2.53 #

  • Rework AtsCfFuelType and AtsFuelSubType.

3.2.52 #

  • Added te() and tce() to LayrzAppLocalizations to handle translations with [InlineSpan].
  • Marked as @Deprecated the translate() of LayrzAppLocalizations in favor of t() and tc().

3.2.51 #

  • Fix in AtsCfFuelType dieselS500 fromJson() and toJson()

3.2.50 #

  • Added requiresPhotos on TenvioPackage model

3.2.49 #

  • Added images and madeBy fields into TenvioPackageHistory model
  • Added history field into TenvioPackage model

3.2.48 #

  • Added AtsFuelSubType toCProdANP() and new colors in getColor()
  • Added getColor() in AtsFuelType and add arla32in this enum
  • Added AtsCfFuelType and this converter

3.2.47 #

  • Added TrackedTenvioPackage and TenvioPackageHistory models

3.2.45 #

  • Changed BHSPermissionTierInput to @unfreezed

3.2.44 #

  • Added access element on the BHSPermissionTier model

3.2.43 #

  • Added AppInternalIdentifier.tenvioDrivers and AppInternalIdentifier.unknown to AppInternalIdentifier enum

3.2.42 #

  • Added BHSPermissionTier model and BHSPermissionTierInput model

3.2.41 #

  • Added new status to TenvioPackageStatus enum
  • Added isCurrent to TenvioPackage model

3.2.40 #

  • Tenvio workflows changes

3.2.39 #

  • More tenvio changes

3.2.38 #

  • Adjustments on Tenvio Dispatch Guide and their status

3.2.37 #

  • Tenvio Driver changes

3.2.36 #

  • Tenvio changes

3.2.35 #

  • Added TenvioDispatchGuide model and TenvioDispatchGuideStatus enum
  • Added TenvioDriver model

3.2.34 #

  • Added qrCodes to TenvioOrder, TenvioPackage and TenvioMatrixItem models

3.2.33 #

  • Major changes on TenvioPackage model.
  • Removed unnecessary values from TenvioOrderStatus enum.
  • Re-writed TenvioPackageStatus enum to be accurate with the Tenvio Pick & Pack ecosystem.

3.2.32 #

  • Added LayrzNumber numeric system to handle the Order.orderId and Tracking IDs of Tenvio
  • Tenvio changes

3.2.31 #

  • Added macAddress to Device models

3.2.30 #

  • Changes for Tenvio Pick & Pack ecosystem

3.2.29 #

  • Added TenvioMatrixItemInput and TenvioItemInput models

3.2.28 #

  • Added getColor() in AtsFuelSubType

3.2.27 #

  • Moved Geofences' things to a submodule
  • Added GeofenceInput and GeofencePointInput models
  • Tenvio changes

3.2.26 #

  • Changes on Tenvio submodule

3.2.25 #

  • Changed @freezed to @unfreezed on CustomFieldInput model

3.2.24 #

  • Added id field to CustomFieldInput model

3.2.23 #

  • Relocated Asset model to a submodule
  • Relocated Sensor model to a submodule
  • New models SensorInput and AssetInput in the submodule with their respective dependencies

3.2.22 #

  • New models TenvioMonitorAccess and TenvioMonitorAccessInput

3.2.21 #

  • New enum TenvioDestinationType for TenvioDestinationTypeOrNullConverter

  • Changed TenvioDestinationType to TenvioOrderDestinationType

3.2.20 #

  • New folder to add all Ats enums.
  • Transform fuelSubType as enum.
  • Added AtsLoadingParamsSample, LoadingParamsFormInput
  • Added itemQuantities & statusPhotos model on TenvioOrder
  • Removed totalItems AsignByDepartment model on TenvioOrder

3.2.19 #

  • Added AccessInput model.

3.2.18 #

  • Fixed an issue with automatic conversion of ConfIoTFile when the namespace is ConfIoTNamespace.config.

3.2.17 #

  • Add price in AtsReceptionProduct
  • Add atsDriver, atsTerminalOperations, atsTerminalLoadingGrid , atsTerminalAccessControl, atsTerminalYardAlerts, atsTerminalLoadFormatting, atsTerminalStockManagement, atsTerminalCacl, atsTerminalEditTransport, atsAccessColeta, atsPaLoadComboio in ReferenceCategory

3.2.16 #

  • New config parameters definition for InboundProtocol and Model models

3.2.15 #

  • Change statsLoading from OutboundService default value to true

3.2.14 #

  • Added OutboundMetrics to OutboundService model

3.2.13 #

  • CustomerInput change to UnregisteredCustomerInput
  • added OrderItemQuantityInput
  • added TenvioOrderPhotosInput
  • rework TenvioOrderStatus
  • rework TenvioOrderInput

3.2.12 #

  • Added LoadingParamsForm
  • Added @Default([]) in AtsReception and AtsReceptionProduct
  • Added TenvioOrderInput in packersIds

3.2.11 #

  • Added hwModelsAnimationsIds to User model

3.2.10 #

  • Added highPriority to TenvioOrder & TenvioOrderInput on Order model

3.2.9 #

-Changed requiresPhoto to requiresPhotos & destinationWareHouseId to destinationWarehouseId, field packageImage deleted

3.2.8 #

  • Added deviceConfig to the ConfIoTNamespace enum.

3.2.7 #

  • Added maxQuantity on Command definitions

3.2.6 #

  • Added new values on CommandSource enum

3.2.5 #

  • Changed source to sources on CommandPayloadDefinition and CommandPayloadDefinitionInput models

3.2.4 #

  • Added configParams to Device model

3.2.3 #

  • Added OperationProductInformation model

3.2.2 #

  • Added productsInformation on AtsOperation model

3.2.1 #

  • New bluetoothPair on CommandPayloadDataType and ConfigPayloadDataType enums
  • Removed models on HwModelInput model

3.2.0 #

  • Added HwModel and HwModelInput models
  • Added hwModelId to Device model

3.1.4 #

  • Added confiot to AppInternalIdentifier enum.

3.1.3 #

  • Added ConfigPayloadDataType.list option.

3.1.2 #

  • Added @ConfIoTLayoutConverter() to confiotLayout property in Model model.
  • Updated all dependencies and using the hat version instead of a constraint version.
  • Changed constraint of flutter version to >=3.22.0

3.1.1 #

  • Added confiotCapable property to Model model.
  • Added ConfIoTLayout enum and their respective properties to Model model (As confiotLayout property).

3.1.0 #

  • Updated InboundProtocol and Model to handle new commands definitions and configuration parameters
  • Added ConfIoTFile configuration model
  • Major change of Command to support new command definitions

3.0.4 #

  • Add ReferenceCategory.mappitPermTagsRead to mappit

3.0.3 #

  • Add MappitReportInput
  • Replace DateTime to double in startAt y endAt inside MappitReportInputMulti
  • Add @Default([]) in routes inside ContainedRouteCategory
  • Convert containedRoutes in PolygonDetails as List

3.0.2 #

  • rename fee_day.dart to free_day.dart;
  • Add MappitReportInputMulti

3.0.1 #

  • Added PolygonDetails and ContainedRouteCategory

3.0.0 #

  • Added requiresExternalAccount and requiresStructure on InboundProtocol and InboundProtocolInput models
  • Added InboundProtocolInput, InboundServiceInput, InboundStructureInput, InboundPositionStructureInput and InboundPayloadStructureInput models
  • Fixes on WebhookStructure model
  • Moved FlespiAcl and submodels to builder submodule
  • Added FlespiAclInput and FlespiSubmoduleConfigInput models
  • Defined new submodule called builder, with the definitions required for new connectivity schema.
  • Added webhookStructure to InboundProtocol model.
  • Added webhookStructure to InboundService model.

2.1.91 #

  • Added sensors and sensorsIds parameters to Tag model

2.1.90 #

  • Added optional params isSuspended and suspendedAt to User model

2.1.89 #

  • Changed data type of exactHour in Trigger model from String to TimeOfDay

2.1.88 #

  • Added schema and splitEach to ModbusParameter model

2.1.87 #

  • Added args into Command model

2.1.86 #

  • Added requiresAssets and requiresGeofences to ExchangeProtocol model
  • Added geofencesIds, geofences, geofencesGroupsIds and geofencesGroups to ExchangeService model

2.1.85 #

  • BrickHouseWorkspaceInput update

2.1.84 #

  • Changed appId to be optional on BrickHouseWorkspaceInput

2.1.83 #

  • Updated Workspace and SensorGridItem to handle new Data grid
  • New WorkspaceCardType enum to identify the type of card in the workspace used in the data grid

2.1.82 #

  • New SdmOperator model

2.1.81 #

  • Added dryFactor and priceByDry on SdmIngredient model

2.1.80 #

  • Renamed mqttToken to flespiToken on Device model

2.1.79 #

  • Added host, port and mqttTopic to InboundProtocol model
  • Deprecation warning to realtimeEndpoint and realtimeVariantEndpoint in favor of host, port and mqttTopic in InboundProtocol model
  • New OperationMode.mqtt in OperationMode enum
  • New requiresFlespiToken and flespiAcl in InboundProtocol model to handle Flespi token creation

2.1.78 #

  • Added isSupended freezed model into Device.dart file

2.1.77 #

  • Added missing @AppPlatformConverter() into pushPlatforms field on Operation model

2.1.76 #

  • New operationType called bhsPush on OperationType enum
  • New pushPlatforms and pushTitle fields on Operation model

2.1.75 #

  • Added value bhsPresence to TriggerType enum

2.1.74 #

  • Added initialDensity, initialTemperature, waterLevel and initialWaterLevel on AtsEntry model

2.1.73 #

  • Added usage and dynamicIcon on VisionProtocol model

2.1.72 #

  • Added finishedAt in AtsOperation model

2.1.71 #

  • Refactorized Tenvio models

2.1.70 #

  • Added usage to InboundProtocol, OutboundProtocol and Algorithm models

2.1.69 #

  • Expanded configuration of FlespiAcl model
  • Added FlespiSubmoduleConfig model

2.1.68 #

  • Added CredentialFieldInput model
  • Added ExchangeProtocol model
  • Added ExchangeService model

2.1.67 #

  • added totalQuantity in AtsOperation model

2.1.66 #

  • Added CredentialFieldType.layrzItemId and CredentialFieldType.layrzWebhookEndpoint

2.1.65 #

  • Added speedingThreshold prop to BrickhouseAlertInput and BrickhouseAlert models
  • Added AtsOperation and AtsOperationStatuses

2.1.64 #

  • Added GeofenceCategory.lead to GeofenceCategory enum

2.1.63 #

  • Added stateRegistration to AtsTransportInformation

2.1.62 #

  • Added bool? [isSuspended] to Asset

2.1.61 #

  • Minor changes related to TenvioPackage model

2.1.60 #

  • Change PurchaseOrderAction to PurchaseOrderOperation

2.1.59 #

  • Fix AtsPurchaseOrder action prop test

2.1.58 #

  • Fix AtsPurchaseOrder test

2.1.57 #

  • Change operation into AtsPurchaseOrder to action

2.1.56 #

  • Added ATS_MOBILE into AppInternalIdentifier enum
  • Removed unused AppInternalIdentifier values

2.1.55 #

  • Implemented Chart* entities

2.1.54 #

  • Change fuelSubType to fuelSubtype in AtsReceptionProduct

2.1.53 #

  • Added mappitRoutes and mappitRoutesIds to Geofence model

2.1.52 #

  • Added secondarySellers and secondarySellersIds to MappitRoute model

2.1.51 #

  • Added all property to enum PurchaseOrderOperation

2.1.50 #

  • Added deliverCategory and category properties to AtsPurchaseOrder model

2.1.49 #

  • Added BHSDriverSafetyDrivenScore model

2.1.48 #

  • Updated portId from String to String? in ModbusParameter model

2.1.47 #

  • Added LayoutDesign.center to LayoutDesign enum

2.1.46 #

  • Removed items and itemsIds from TenvioPackage model
  • Added TenvioPackageQuantity model
  • Added items of type List<TenvioPackageQuantity> to TenvioPackage model

2.1.45 #

  • Added new stauses to TenvioOrderStatus enum

2.1.44 #

  • Add AtsPurchaseOrderStatus enum generated value

2.1.43 #

  • Add deliveredAt, waitingToDispatchAt, inTransitAt,orderStatus in AtsPurchaseOrder
  • Create a new folder to set ats converters

2.1.42 #

  • Removed barcode from TenvioPackage and TenvioMatrixItem models

2.1.41 #

  • Added barcode to TenvioPackage model
  • Changed qrCode to barcode in TenvioMatrixItem model

2.1.40 #

  • Added speeding value to BrickhouseAlertType enum, and added bhsSpeeding value to TriggerType

2.1.39 #

  • Created BrickhouseDriverSafety entity

2.1.38 #

  • Added SensorSubType.flespi to SensorSubType enum

2.1.37 #

  • Move Ats entries.dart file to entry.dart and create a new folder entries to put inside all Models of Ats Entries
  • Create AtsVolume model
  • Add volumeHistory to `AtsEntry

2.1.36 #

  • Added modbusParameter type ModbusParameter model in DeviceCommand model
  • Added modbusPort in DeviceCommand model

2.1.35 #

  • Add fuelSubtype - density - temperature - tanksImages in AtsReceptionProduct

2.1.34 #

  • Added warehouseId in TenvioItem model

2.1.33 #

  • Added dynamicIcon parameter to OutboundProtocol model

2.1.32 #

  • Added ModbusConfig and ModbusParamter models
  • Added modbus parameter to Device model
  • Added modbusPorts parameter to InboundProtocol model

2.1.31 #

  • Added hasModbus flag into InboundProtocol model

2.1.30 #

  • Added sensors parameter to TriggerActivation model

2.1.29 #

  • New models SdmPen, SdmRecipe and SdmIngredient.
  • New internal app identifier for SDM_MANAGER.

2.1.28 #

  • Removed orderId from AtsReceptionInput
  • Add ordersIds from AtsReceptionInput

2.1.27 #

  • Add mappitSecondaryRoutesIds inside Asset
  • Removed mappitSecondaryRoutesIds from User

2.1.26 #

  • Removed mappitSecondaryRoutesIds from User
  • Add mappitSecondaryRoutesIds inside MappitRoute

2.1.25 #

  • Add mappitSecondaryRoutesIds inside User

2.1.24 #

  • Added transportAsset and sellerAsset inside AtsPurchaseOrder.

2.1.23 #

  • New asset mode ZONE that converts the asset into a Geofence.

2.1.22 #

  • Added presenceType for geofence presence on TriggerActivation.

2.1.21 #

  • Added geofences that refer to the geofences linked to the Asset model

2.1.20 #

  • Added VisionGaugeResult to reference the result of a gauge with Layrz Vision.

2.1.19 #

  • Added / registered Layrz Drive as a new app in the AppInternalIdentifier enum.

2.1.18 #

  • Deprecated colors on AppDesign model. (Re-Reverted from version 2.1.15)

2.1.17 #

  • Reorganized app enums to better support.
  • Registered tenvioPickAndPack in the AppInternalIdentifier enum.

2.1.16 #

  • Added theme field in AppDesign model with a deprecation warning for colors field.

2.1.15 #

  • Reverted colors deprecation on AppDesign model.

2.1.14 #

  • More deprecations related to RegisteredApp and AvailableApp models to support new app schema.

2.1.13 #

  • Changes related to RegisteredApp and AvailableApp models to support new app schema.

2.1.12 #

  • Added DeliverLocation, DropoffFailedReason, TenvioImageSet, TenvioItemMovement, TenvioItem, TenvioMatrixItem, TenvioOrder, TenvioPackage models for Tenvio Pick & Pack ecosystem.
  • Added TenvioItemLocation, TenvioOrderStatus, TenvioPackageStatus enums for Tenvio Pick & Pack ecosystem.

2.1.11 #

  • Minor changes in LayrzAppLocalizationsDelegate to prevent unresolved translation keys when loading.

2.1.10 #

  • Major change in LayrzAppLocalizations to support fallbackLocale.
  • Added static getter LayrzAppLocalizations.detectedLocale to get the detected locale, from a Browser or a Native device.
  • Added static function LayrzAppLocalizations.getClosestLocale to get the closest locale from a list of supported locales.
  • When the language changes, the LayrzAppLocalizations will also load the fallback locale to improve the user experience.

2.1.9 #

  • New model InviteLink
  • Added run test in CI

2.1.8 #

  • Add new ReferenceCategory to ATS ecosystem and Tenvio ecosystem

2.1.7 #

  • Defined new fields mappitLaborStartTime and mappitLaborEndTime in Asset model

2.1.6 #

  • Add receptionAt to AtsPurchaseOrder model

2.1.5 #

  • Add cfop to AtsProductInformation model

2.1.4 #

  • Add a JsonKey in TriggerActivation to find date how at

2.1.3 #

  • Added SensorType.dynamic to SensorType enum
  • Added maxHistorySearch type Duration of Sensor model

2.1.2 #

  • Added PurchaseOrderOperation to AtsPurchaseOrder model

2.1.1 #

  • Added mappitRoutes and mappitRoutesIds to Tag model

2.1.0 #

  • Now, LayrzAppLocalizations.of(context) returns LayrzAppLocalizations instead of LayrzAppLocalizations?
  • New LayrzAppLocalizations.maybeOf(context) that returns LayrzAppLocalizations?, replacement of the previous behavior of LayrzAppLocalizations.of(context)

2.0.63 #

  • Reorganized models to work with submodules
  • Defined AppFont to handle different fonts in the app

2.0.62 #

  • Added globalSensors to Asset model

2.0.61 #

  • Updated Sensor model to support global sensors

2.0.60 #

  • Redefined LintError

2.0.59 #

  • Added authorizedLayers in RegisteredApp model

2.0.58 #

  • Added appsIds to MapLayer

2.0.57 #

  • Registered new permission to handle layers CRUD operations on Employee and their Department.

2.0.56 #

  • Inclues changes defined in 2.0.56-preview1

2.0.56-preview1 #

  • Redesigned MapLayer model to support new sources.
  • Removed support of vector tiles on MapLayer model.
  • Removed MapLayer list in RegisteredApp model in favor global source support (App-less schema).

2.0.55 #

  • Added parameters on Asset model
  • Added FIXED as a new AssetMode enum (Previously was FIXED)
  • Deprecated FAILOVER on AssetMode enum
  • New entity StaticPosition to represent the static position of an Asset

2.0.54 #

  • rebuild AtsExit with news props

2.0.53 #

  • Added shortcuts to GenericPermission model

2.0.52 #

  • Added LinkShortcut entity

2.0.51 #

  • added fixedWorkspaceId and fixedWorkspace parameters to RegisteredApp

2.0.50 #

  • Added stateRegistration to AtsCompanyInformation

2.0.49 #

  • Added email to AtsCompanyInformation

2.0.48 #

  • Added atsAutomaticReception to ReferenceCategory

2.0.47 #

  • Added receptionId to AtsEntryUnloadInput model
  • Added errorRate to AtsReception model

2.0.46 #

  • Added cycleId to InboundProtocol model
  • Added cycles permission to GenericPermission model

2.0.45 #

  • Added parentInvoice field in AtsPurchaseOrder
  • Added invoiceType field in AtsPurchaseOrder
  • Added ideInformation field in AtsPurchaseOrder
  • Added hasRawXml field in AtsPurchaseOrder

2.0.44 #

  • Replaced all part of to use a relative path instead of an absolute one
  • Added SimulationCycle model
  • Updated environment constraints of sdk and flutter

2.0.43 #

  • Changed MappitFreeDay field date converter from TimestampConverter to DateConverter

2.0.42 #

  • Added extension DateExtension with toDate method, this will return a String with the date in the format yyyy-MM-dd
  • Added DateConverter and DateOrNullConverter to convert a String to a DateTime and vice versa

2.0.41 #

  • Added MfaMethod enum
  • Added mfaEnabled and mfaMethods to Employee and User model

2.0.40 #

  • Added optional parameter timestamp to TelemetryPosition

2.0.39 #

  • Added triggerName, triggerCode, triggerGeofenceName and triggerGeofenceType to OutboundStructureType enum.

2.0.38 #

  • Added a density and temperature pros in AtsEntry model

2.0.37 #

  • Added a fuel type prop in AtsEntry model

2.0.36 #

  • Added new VisionProtocol model
  • Updated VisionProfile to support new VisionProtocol model and removed migrated fields

2.0.34 #

  • Migrated to from GitLab to GitHub

2.0.33 #

  • Renamed AllowedReport to CustomReport

2.0.32 #

  • Added AllowedReport model, and added allowedReports to RegisteredApp model.

2.0.31 #

  • Changed cells to content in ReportRow

2.0.30 #

  • New entities ReportPreview, ReportRow, ReportCell, ReportHeader and ReportPage to handle reports' previews in the app.

2.0.29 #

  • Updated AppInstance to handle new HA configuration.

2.0.28 #

  • New enum AtsSelectCard in AtsAuthenticationCard
  • Update AtsAuthenticationCard to add typeId

2.0.27 #

  • Update AtsExecuteExitInput to add toAssetMileage

2.0.26 #

  • Updated Action to handle ActionGeofenceSettings property.

2.0.25 #

  • Added MappitFreeDay model

2.0.24 #

  • Replaced avatar with dynamicAvatar on Employee

2.0.23 #

  • Deprecated toggleDeveloperMode on LayrzAppLocalizations in favor of setDeveloperMode
  • Changed setDeveloper to a static method on LayrzAppLocalizations

2.0.22 #

  • Updated LayrzAppLocalizations to support setDeveloperMode and documented some parts of this class

2.0.21 #

  • Renamed BrickhouseAlertInput curfewTimezone to timezone

2.0.20 #

  • Added owner and ownerId to Tag model

2.0.19 #

  • Added owner and ownerId to MappitRoute model

2.0.18 #

  • Added owner and ownerId to Geofence model

2.0.17 #

  • Create AtsCommandResult

2.0.16 #

  • Change from AtsExecuteExitHistory generateBy to generatedBy

2.0.15 #

  • Change from AtsExecuteExitHistory fromAssetId to fromAsset

2.0.14 #

  • Implemented AtsExecuteExitHistory and AtsExitExecuteStatusOrNullConverter

2.0.13 #

  • Changed AtsFeedbackMessege from TimestampConverter to at

2.0.12 #

  • Changed LayrzFunction.maximumTime from Duration to double
  • Changed LayrzFunction.minutesDelta from Duration to double

2.0.11 #

  • Updated DurationConverter() and DurationConverterOrNull() to support int and double values. (Basically any num type)

2.0.10 #

  • Fixed LayrzFunction.credentials from List<CredentialField> to Map<String, dynamic>

2.0.9 #

  • Registered model LayrzFunction and FtpAccount for Layrz Functions.

2.0.8 #

  • AtsReceptionInput changes:
    • var fromApp was changed for app

2.0.7 #

  • AtsReception changes:
    • Added AtsEntry linked to the AtsReception.
  • AtsReceptionInput changes:
    • Added AtsReception operation time
    • Added App used to create the AtsReception
  • AtsReceptionProductInput changes:
    • Removed assetId, fuelType and volumeBought

2.0.6 #

  • Added dynamicIcon of type Avatar to InboundProtocol

2.0.5 #

  • Modified Model entity to support more fields.

2.0.4 #

  • added speed to WorkspaceTripPoint entity

2.0.3 #

  • TimestampConverter and TimestampConverterOrNull now can recive any type of num

2.0.2 #

  • Some linting issues fixed

2.0.1 #

  • Repository initialized and CI test

2.0.0 #

  • Initial public release
3
likes
140
points
10.2k
downloads

Documentation

API reference

Publisher

verified publisherlayrz.com

Weekly Downloads

Layrz API models for Dart/Flutter. This package contains the models used by the Layrz API.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

collection, dio, flutter, flutter_material_design_icons, freezed_annotation, json_annotation, latlong2, layrz_i18n, layrz_logging, layrz_sdk, recase, web, web_socket_channel

More

Packages that depend on layrz_models