nativemind_api_client 0.1.0
nativemind_api_client: ^0.1.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.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/NmHttpApiClientonpackage:http. It adds default headers and the bearer token, does one silent renewal and one retry after a 401, and maps timeouts toTIMEOUTand transport failures toNETWORK_ERROR. It decodes the{error}envelope intoNmApiException, sends query lists as repeated keys, and on web uses aBrowserClientwith 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), andNmTopicEventStream: one connection for many topics, withLast-Event-IDresume.nmODataFilter/nmODataOrderBy: the OData subset of@nativemind108/query, compiled to row predicates.