Skip to main content

nativemind_api_client 0.2.0 copy "nativemind_api_client: ^0.2.0" to clipboard
nativemind_api_client: ^0.2.0 copied to clipboard

Pure-Dart API client of the NativeMind framework: operation table, HTTP transport with silent token refresh, error envelope, paging, offline action queue, SSE topic stream, OData filters.

0.2.0 - 2026-11-19 #

Dependency upgrade to the latest stable versions (checked with Flutter 3.50.0 / Dart 3.14).

  • Breaking for the toolchain only: the SDK floor rises to Dart ^3.13.0 (web 1.1.2 needs Dart 3.13). Apps on an older Flutter keep resolving the previous release, so nothing changes for them; the public API and behaviour are unchanged unless listed below.
  • Dependencies raised to the latest stable: web ^1.1.2 (http ^1.6.0 already latest); dev: lints ^6.1.0, test ^1.33.0.

0.1.0 #

First release (SDD widgets.nativemind.net flows/sdd-nativemind-widgets-liendeed). Carried from the LienDeed apps (liendeed_api, the Pro app's local OData compiler), with every product name made an option:

  • NmApiOperation: operation table entries (fill, pathParams, usesBody).
  • NmApiClient / NmHttpApiClient on package:http. It adds default headers and the bearer token, does one silent renewal and one retry after a 401, and maps timeouts to TIMEOUT and transport failures to NETWORK_ERROR. It decodes the {error} envelope into NmApiException, sends query lists as repeated keys, and on web uses a BrowserClient with credentials. send() serves clients without an operation table and can retry a GET once.
  • NmApiEnvelope, NmAccessTokens, NmTableQuery / NmTablePage / table().
  • NmActionQueue: an ordered offline queue with deduplication, batches, a retryable-or-dropped rule, and serialised store updates.
  • NmSseParser, nmOpenSse (io / web), and NmTopicEventStream: one connection for many topics, with Last-Event-ID resume.
  • nmODataFilter / nmODataOrderBy: the OData subset of @nativemind108/query, compiled to row predicates.
0
likes
140
points
0
downloads

Documentation

API reference

Publisher

verified publisherframework.nativemind.net

Weekly Downloads

Pure-Dart API client of the NativeMind framework: operation table, HTTP transport with silent token refresh, error envelope, paging, offline action queue, SSE topic stream, OData filters.

Repository (GitLab)

Topics

#api #http #sse #offline #client

License

unknown (license)

Dependencies

http, web

More

Packages that depend on nativemind_api_client