@nizam-os/dashboard-sdk 5.4.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,7 @@ export declare class AssetsClient {
|
|
|
14
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<AssetsClient.Options>;
|
|
15
15
|
constructor(options: AssetsClient.Options);
|
|
16
16
|
/**
|
|
17
|
-
* Without `q`: the org's assets ordered by `created_at` descending. With `q`: ranked
|
|
17
|
+
* Without `q`: the org's assets ordered by `created_at` descending. With `q`: ranked search across name, VIN, code, plate, serial, call sign, make, model and sub-kind — accent-insensitive and language-agnostic (epic #97). Matching is hybrid: whole words and word-prefixes (type-ahead — `pick` finds `Picker Bot 3`) plus substrings and typos (`ick`, or a misspelled `sprintr`, still match). Results are ordered by relevance and support forward-only cursors (`starting_after`). `highlight=true` adds a `<mark>`-wrapped match snippet.
|
|
18
18
|
*
|
|
19
19
|
* @param {NizamDashboard.ListAssetsRequest} request
|
|
20
20
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -50,7 +50,7 @@ class AssetsClient {
|
|
|
50
50
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* Without `q`: the org's assets ordered by `created_at` descending. With `q`: ranked
|
|
53
|
+
* Without `q`: the org's assets ordered by `created_at` descending. With `q`: ranked search across name, VIN, code, plate, serial, call sign, make, model and sub-kind — accent-insensitive and language-agnostic (epic #97). Matching is hybrid: whole words and word-prefixes (type-ahead — `pick` finds `Picker Bot 3`) plus substrings and typos (`ick`, or a misspelled `sprintr`, still match). Results are ordered by relevance and support forward-only cursors (`starting_after`). `highlight=true` adds a `<mark>`-wrapped match snippet.
|
|
54
54
|
*
|
|
55
55
|
* @param {NizamDashboard.ListAssetsRequest} request
|
|
56
56
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -17,8 +17,9 @@ export declare class UsersClient {
|
|
|
17
17
|
* Returns the authenticated user merged with profile claims from their JWT.
|
|
18
18
|
*
|
|
19
19
|
* JIT-provisions a shadow row on the first call (so a brand-new Keycloak user can hit any
|
|
20
|
-
* endpoint without an explicit signup step)
|
|
21
|
-
* `login_count`
|
|
20
|
+
* endpoint without an explicit signup step). Records a login (`last_login_at` = the token's
|
|
21
|
+
* `auth_time`, `login_count` incremented) only when a genuinely new authentication is seen;
|
|
22
|
+
* repeated calls within the same session don't write.
|
|
22
23
|
*
|
|
23
24
|
* The `roles` array combines realm roles (flat, e.g. `platform_admin`) with portal-scoped
|
|
24
25
|
* client roles (prefixed, e.g. `dashboard:dispatcher`). The frontend usually drops the
|
|
@@ -53,8 +53,9 @@ class UsersClient {
|
|
|
53
53
|
* Returns the authenticated user merged with profile claims from their JWT.
|
|
54
54
|
*
|
|
55
55
|
* JIT-provisions a shadow row on the first call (so a brand-new Keycloak user can hit any
|
|
56
|
-
* endpoint without an explicit signup step)
|
|
57
|
-
* `login_count`
|
|
56
|
+
* endpoint without an explicit signup step). Records a login (`last_login_at` = the token's
|
|
57
|
+
* `auth_time`, `login_count` incremented) only when a genuinely new authentication is seen;
|
|
58
|
+
* repeated calls within the same session don't write.
|
|
58
59
|
*
|
|
59
60
|
* The `roles` array combines realm roles (flat, e.g. `platform_admin`) with portal-scoped
|
|
60
61
|
* client roles (prefixed, e.g. `dashboard:dispatcher`). The frontend usually drops the
|