@lotics/app-sdk 0.124.3 → 0.124.5
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.
- package/dist/hooks.d.ts +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.js +46 -48
- package/dist/mock.d.ts +1 -1
- package/dist/queries.d.ts +2 -123
- package/dist/row.d.ts +0 -44
- package/dist/shared_types.d.ts +124 -42
- package/package.json +1 -1
- package/dist/members.d.ts +0 -31
- package/dist/select.d.ts +0 -24
package/package.json
CHANGED
package/dist/members.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A member, in the one shape a `select_member` cell and the `useMembers`
|
|
3
|
-
* roster both return. `email`, `image`, `groups`, `role` and `joined` reach
|
|
4
|
-
* only an authenticated member of the org; a public visitor sees `id`, `name`
|
|
5
|
-
* and `archived`. Absent is not empty: `image: null` is "no photo", a missing
|
|
6
|
-
* `image` is "not told".
|
|
7
|
-
*/
|
|
8
|
-
export interface ResolvedMember {
|
|
9
|
-
id: string;
|
|
10
|
-
/** `null` for an id outside the org (a removed member). */
|
|
11
|
-
name: string | null;
|
|
12
|
-
email?: string | null;
|
|
13
|
-
/** Presigned; `null` without a photo. */
|
|
14
|
-
image?: string | null;
|
|
15
|
-
/** Group names — the platform's "department"; `[]` when in none. */
|
|
16
|
-
groups?: string[];
|
|
17
|
-
/**
|
|
18
|
-
* The organization PERMISSION level, not a job title — "who is this person"
|
|
19
|
-
* is `groups`. Raw: translate it yourself.
|
|
20
|
-
*/
|
|
21
|
-
role?: "owner" | "admin" | "member";
|
|
22
|
-
/** ISO timestamp of joining the organization. */
|
|
23
|
-
joined?: string;
|
|
24
|
-
/**
|
|
25
|
-
* `true` for a member who has left; never `false`. The roster never returns
|
|
26
|
-
* one, since a departed member cannot be assigned.
|
|
27
|
-
*/
|
|
28
|
-
archived?: true;
|
|
29
|
-
}
|
|
30
|
-
/** `[]` for an empty or malformed cell; malformed entries are dropped. */
|
|
31
|
-
export declare function readMembers(value: unknown): ResolvedMember[];
|
package/dist/select.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** The server resolves each `select` cell to `ResolvedOption[]` before the app sees it. */
|
|
2
|
-
export interface ResolvedOption {
|
|
3
|
-
key: string;
|
|
4
|
-
/** The key, for an option deleted after the cell was written. */
|
|
5
|
-
label: string;
|
|
6
|
-
/**
|
|
7
|
-
* A palette token (`"blue"`), from `useFieldOptions` only — a cell carries
|
|
8
|
-
* key and label.
|
|
9
|
-
*/
|
|
10
|
-
color?: string;
|
|
11
|
-
/** A brand or icon mark, from `useFieldOptions` only. */
|
|
12
|
-
mark?: {
|
|
13
|
-
kind: "brand";
|
|
14
|
-
name: string;
|
|
15
|
-
} | {
|
|
16
|
-
kind: "icon";
|
|
17
|
-
name: string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* `[]` for an empty or malformed cell; a bare string (options unresolved
|
|
22
|
-
* server-side) becomes `{ key, label: key }`; malformed entries are dropped.
|
|
23
|
-
*/
|
|
24
|
-
export declare function readSelect(value: unknown): ResolvedOption[];
|