@favish/staffbase-utils 0.16.0 → 0.17.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.
- package/dist/src/types/groups/CreateGroupBody.d.ts +12 -0
- package/dist/src/types/groups/CreateGroupBody.d.ts.map +1 -0
- package/dist/src/types/groups/Group.d.ts +47 -0
- package/dist/src/types/groups/Group.d.ts.map +1 -0
- package/dist/src/types/groups/GroupAccessors.d.ts +13 -0
- package/dist/src/types/groups/GroupAccessors.d.ts.map +1 -0
- package/dist/src/types/groups/GroupAdminsWithGroups.d.ts +18 -0
- package/dist/src/types/groups/GroupAdminsWithGroups.d.ts.map +1 -0
- package/dist/src/types/groups/GroupBranch.d.ts +23 -0
- package/dist/src/types/groups/GroupBranch.d.ts.map +1 -0
- package/dist/src/types/groups/GroupConfig.d.ts +16 -0
- package/dist/src/types/groups/GroupConfig.d.ts.map +1 -0
- package/dist/src/types/groups/GroupConfigLocalization.d.ts +13 -0
- package/dist/src/types/groups/GroupConfigLocalization.d.ts.map +1 -0
- package/dist/src/types/groups/GroupUser.d.ts +51 -0
- package/dist/src/types/groups/GroupUser.d.ts.map +1 -0
- package/dist/src/types/groups/GroupUsers.d.ts +21 -0
- package/dist/src/types/groups/GroupUsers.d.ts.map +1 -0
- package/dist/src/types/groups/UpdateGroupBody.d.ts +12 -0
- package/dist/src/types/groups/UpdateGroupBody.d.ts.map +1 -0
- package/dist/src/types/groups/generated/groupsApi.d.ts +739 -0
- package/dist/src/types/groups/generated/groupsApi.d.ts.map +1 -0
- package/dist/src/types/groups/index.d.ts +11 -0
- package/dist/src/types/groups/index.d.ts.map +1 -0
- package/dist/src/types/news/CreatePostBody.d.ts +11 -0
- package/dist/src/types/news/CreatePostBody.d.ts.map +1 -0
- package/dist/src/types/news/Post.d.ts +73 -0
- package/dist/src/types/news/Post.d.ts.map +1 -0
- package/dist/src/types/news/PostAcknowledgements.d.ts +14 -0
- package/dist/src/types/news/PostAcknowledgements.d.ts.map +1 -0
- package/dist/src/types/news/PostAuthor.d.ts +16 -0
- package/dist/src/types/news/PostAuthor.d.ts.map +1 -0
- package/dist/src/types/news/PostAuthorAvatar.d.ts +17 -0
- package/dist/src/types/news/PostAuthorAvatar.d.ts.map +1 -0
- package/dist/src/types/news/PostComments.d.ts +11 -0
- package/dist/src/types/news/PostComments.d.ts.map +1 -0
- package/dist/src/types/news/PostLayout.d.ts +12 -0
- package/dist/src/types/news/PostLayout.d.ts.map +1 -0
- package/dist/src/types/news/PostLikes.d.ts +12 -0
- package/dist/src/types/news/PostLikes.d.ts.map +1 -0
- package/dist/src/types/news/PostSource.d.ts +11 -0
- package/dist/src/types/news/PostSource.d.ts.map +1 -0
- package/dist/src/types/news/UpdatePostBody.d.ts +10 -0
- package/dist/src/types/news/UpdatePostBody.d.ts.map +1 -0
- package/dist/src/types/news/generated/newsApi.d.ts +1433 -0
- package/dist/src/types/news/generated/newsApi.d.ts.map +1 -0
- package/dist/src/types/news/index.d.ts +11 -0
- package/dist/src/types/news/index.d.ts.map +1 -0
- package/dist/src/types/pages/CreatePagePayload.d.ts +12 -0
- package/dist/src/types/pages/CreatePagePayload.d.ts.map +1 -0
- package/dist/src/types/pages/Page.d.ts +51 -0
- package/dist/src/types/pages/Page.d.ts.map +1 -0
- package/dist/src/types/pages/PageAccess.d.ts +20 -0
- package/dist/src/types/pages/PageAccess.d.ts.map +1 -0
- package/dist/src/types/pages/PageContent.d.ts +18 -0
- package/dist/src/types/pages/PageContent.d.ts.map +1 -0
- package/dist/src/types/pages/UpdatePagePayload.d.ts +11 -0
- package/dist/src/types/pages/UpdatePagePayload.d.ts.map +1 -0
- package/dist/src/types/pages/generated/pagesApi.d.ts +418 -0
- package/dist/src/types/pages/generated/pagesApi.d.ts.map +1 -0
- package/dist/src/types/pages/index.d.ts +6 -0
- package/dist/src/types/pages/index.d.ts.map +1 -0
- package/dist/src/types/user/CreateUserBody.d.ts +11 -0
- package/dist/src/types/user/CreateUserBody.d.ts.map +1 -0
- package/dist/src/types/user/UpdateUserBody.d.ts +11 -0
- package/dist/src/types/user/UpdateUserBody.d.ts.map +1 -0
- package/dist/src/types/user/User.d.ts +65 -0
- package/dist/src/types/user/User.d.ts.map +1 -0
- package/dist/src/types/user/UserAvatar.d.ts +19 -0
- package/dist/src/types/user/UserAvatar.d.ts.map +1 -0
- package/dist/src/types/user/UserAvatarVariant.d.ts +23 -0
- package/dist/src/types/user/UserAvatarVariant.d.ts.map +1 -0
- package/dist/src/types/user/UserConfig.d.ts +11 -0
- package/dist/src/types/user/UserConfig.d.ts.map +1 -0
- package/dist/src/types/user/UserCreation.d.ts +16 -0
- package/dist/src/types/user/UserCreation.d.ts.map +1 -0
- package/dist/src/types/user/UserEmail.d.ts +15 -0
- package/dist/src/types/user/UserEmail.d.ts.map +1 -0
- package/dist/src/types/user/UserName.d.ts +13 -0
- package/dist/src/types/user/UserName.d.ts.map +1 -0
- package/dist/src/types/user/UserProfile.d.ts +28 -0
- package/dist/src/types/user/UserProfile.d.ts.map +1 -0
- package/dist/src/types/user/UserRecoveryCode.d.ts +17 -0
- package/dist/src/types/user/UserRecoveryCode.d.ts.map +1 -0
- package/dist/src/types/user/UserRole.d.ts +12 -0
- package/dist/src/types/user/UserRole.d.ts.map +1 -0
- package/dist/src/types/user/UserSecret.d.ts +20 -0
- package/dist/src/types/user/UserSecret.d.ts.map +1 -0
- package/dist/src/types/user/generated/userApi.d.ts +1525 -0
- package/dist/src/types/user/generated/userApi.d.ts.map +1 -0
- package/dist/src/types/user/index.d.ts +14 -0
- package/dist/src/types/user/index.d.ts.map +1 -0
- package/dist/types/groups.cjs.js +1 -0
- package/dist/types/groups.es.mjs +0 -0
- package/dist/types/news.cjs.js +1 -0
- package/dist/types/news.es.mjs +0 -0
- package/dist/types/pages.cjs.js +1 -0
- package/dist/types/pages.es.mjs +0 -0
- package/dist/types/user.cjs.js +1 -0
- package/dist/types/user.es.mjs +0 -0
- package/package.json +26 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { components } from './generated/groupsApi';
|
|
2
|
+
/**
|
|
3
|
+
* Request body for creating a group.
|
|
4
|
+
*
|
|
5
|
+
* Thin alias over the machine-generated groups API schema so the public name
|
|
6
|
+
* stays stable even if `generated/groupsApi.ts` is regenerated. The write side
|
|
7
|
+
* of the spec is properly schematized, so this is sourced directly from codegen
|
|
8
|
+
* (unlike `Group`, whose read shape had to be curated from prod because
|
|
9
|
+
* the spec's `Group` schema does not match the runtime).
|
|
10
|
+
*/
|
|
11
|
+
export type CreateGroupBody = components['schemas']['GroupCreate'];
|
|
12
|
+
//# sourceMappingURL=CreateGroupBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateGroupBody.d.ts","sourceRoot":"","sources":["../../../../src/types/groups/CreateGroupBody.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAEvD;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ChannelLink } from '../content/ChannelLink';
|
|
2
|
+
import { GroupAccessors } from './GroupAccessors';
|
|
3
|
+
import { GroupAdminsWithGroups } from './GroupAdminsWithGroups';
|
|
4
|
+
import { GroupConfig } from './GroupConfig';
|
|
5
|
+
import { GroupUser } from './GroupUser';
|
|
6
|
+
import { GroupUsers } from './GroupUsers';
|
|
7
|
+
/**
|
|
8
|
+
* A group as returned by the Staffbase read endpoints (`GET /api/groups` and
|
|
9
|
+
* `GET /api/groups/{id}`).
|
|
10
|
+
*
|
|
11
|
+
* Curated, not machine-generated: the official groups OpenAPI `Group` schema
|
|
12
|
+
* does NOT match the runtime (it models the v2026 management API with
|
|
13
|
+
* `externalId`/`inclusions`/`exclusions`; only `id`/`name`/`type` overlap).
|
|
14
|
+
* Every field below is grounded in a live prod sweep of all 45 groups (45 list
|
|
15
|
+
* items + 6 single reads). Group membership is PII; only key names and types
|
|
16
|
+
* were extracted, never values.
|
|
17
|
+
*
|
|
18
|
+
* Field names match the wire format verbatim, including the capitalised `ID`
|
|
19
|
+
* suffix on `accessorIDs`, `adminIDs` and `ownerID`. The required/optional
|
|
20
|
+
* split reflects observed presence: `accessorIDs`/`adminIDs`/`ownerID`/
|
|
21
|
+
* `ownerType`/`config`/`links`/`rights` were present on 45/45 list items, while
|
|
22
|
+
* `accessors`, `owner`, `adminsWithGroups` and `users` were present only on the
|
|
23
|
+
* single reads (6/6) and never on the list items, so they are optional.
|
|
24
|
+
* `adminIDs` was an empty array for some groups but always present.
|
|
25
|
+
*
|
|
26
|
+
* `links` reuses {@link ChannelLink}: every entry was `{ method, href }`, some
|
|
27
|
+
* also carrying the optional `parameters`/`form` descriptors, matching the
|
|
28
|
+
* channel link shape exactly.
|
|
29
|
+
*/
|
|
30
|
+
export interface Group {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
type: string;
|
|
34
|
+
accessorIDs: string[];
|
|
35
|
+
adminIDs: string[];
|
|
36
|
+
ownerID: string;
|
|
37
|
+
ownerType: string;
|
|
38
|
+
config: GroupConfig;
|
|
39
|
+
entityType: string;
|
|
40
|
+
links: Record<string, ChannelLink>;
|
|
41
|
+
rights: string[];
|
|
42
|
+
accessors?: GroupAccessors;
|
|
43
|
+
owner?: GroupUser;
|
|
44
|
+
adminsWithGroups?: GroupAdminsWithGroups;
|
|
45
|
+
users?: GroupUsers;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=Group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/types/groups/Group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,WAAW,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAClC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,gBAAgB,CAAC,EAAE,qBAAqB,CAAA;IACxC,KAAK,CAAC,EAAE,UAAU,CAAA;CACnB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GroupBranch } from './GroupBranch';
|
|
2
|
+
/**
|
|
3
|
+
* The `accessors` object on a group's single-read response.
|
|
4
|
+
*
|
|
5
|
+
* Grounded in a live prod sweep (6/6 single reads): every `accessors` carried a
|
|
6
|
+
* single key, `branch`, holding the platform branch entity the group belongs
|
|
7
|
+
* to. Present only on single reads (`GET /api/groups/{id}`), never on the list
|
|
8
|
+
* items. The official groups spec does not document this shape.
|
|
9
|
+
*/
|
|
10
|
+
export interface GroupAccessors {
|
|
11
|
+
branch: GroupBranch;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=GroupAccessors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupAccessors.d.ts","sourceRoot":"","sources":["../../../../src/types/groups/GroupAccessors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,WAAW,CAAA;CACpB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChannelLink } from '../content/ChannelLink';
|
|
2
|
+
/**
|
|
3
|
+
* The `adminsWithGroups` object on a group's single-read response.
|
|
4
|
+
*
|
|
5
|
+
* Grounded in a live prod sweep (6 single reads): `links` (a HAL link map) and
|
|
6
|
+
* `rights` (a string array) were present on 6/6, while `groups` (an embedded
|
|
7
|
+
* paginated collection of `{ total, data }`) appeared on only 1/6 and is
|
|
8
|
+
* therefore optional. Present only on single reads, never on the list items.
|
|
9
|
+
* The `groups` payload is an embedded collection of platform entities and is
|
|
10
|
+
* typed as an opaque record. The official groups spec does not document this
|
|
11
|
+
* shape.
|
|
12
|
+
*/
|
|
13
|
+
export interface GroupAdminsWithGroups {
|
|
14
|
+
links: Record<string, ChannelLink>;
|
|
15
|
+
rights: string[];
|
|
16
|
+
groups?: Record<string, unknown>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=GroupAdminsWithGroups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupAdminsWithGroups.d.ts","sourceRoot":"","sources":["../../../../src/types/groups/GroupAdminsWithGroups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEzD;;;;;;;;;;GAUG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAClC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACjC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A platform branch entity as embedded in a group's `accessors.branch` on the
|
|
3
|
+
* single-read response.
|
|
4
|
+
*
|
|
5
|
+
* Grounded in a live prod sweep (6 branch entities across 6 single reads): all
|
|
6
|
+
* nine top-level keys below were present on 6/6. The nested `config`, `image`
|
|
7
|
+
* and `colors` objects are platform-controlled branch settings dumps and are
|
|
8
|
+
* typed as opaque records, since their inner shapes are tenant-wide
|
|
9
|
+
* configuration rather than part of the group read contract. The official
|
|
10
|
+
* groups spec does not document this shape.
|
|
11
|
+
*/
|
|
12
|
+
export interface GroupBranch {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
tag: string;
|
|
17
|
+
config: Record<string, unknown>;
|
|
18
|
+
image: Record<string, unknown>;
|
|
19
|
+
colors: Record<string, unknown>;
|
|
20
|
+
created: string;
|
|
21
|
+
updated: string;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=GroupBranch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupBranch.d.ts","sourceRoot":"","sources":["../../../../src/types/groups/GroupBranch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GroupConfigLocalization } from './GroupConfigLocalization';
|
|
2
|
+
/**
|
|
3
|
+
* A group's `config` object as returned by the read endpoints
|
|
4
|
+
* (`GET /api/groups`, `GET /api/groups/{id}`).
|
|
5
|
+
*
|
|
6
|
+
* Grounded in a live prod sweep of all 45 groups: every group's `config`
|
|
7
|
+
* carried exactly two keys, `localization` (a per-locale map keyed by locale
|
|
8
|
+
* code) and `showInOverview` (boolean), both present on 45/45 list items and
|
|
9
|
+
* 6/6 single reads. The head-start hint of `icon`/`imageUrl`/`link` was not
|
|
10
|
+
* observed on any group and is therefore not modeled.
|
|
11
|
+
*/
|
|
12
|
+
export interface GroupConfig {
|
|
13
|
+
localization: Record<string, GroupConfigLocalization>;
|
|
14
|
+
showInOverview: boolean;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=GroupConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupConfig.d.ts","sourceRoot":"","sources":["../../../../src/types/groups/GroupConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAExE;;;;;;;;;GASG;AACH,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAA;IACrD,cAAc,EAAE,OAAO,CAAA;CACxB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One per-locale entry of a group's `config.localization` map.
|
|
3
|
+
*
|
|
4
|
+
* Grounded in a live prod sweep of all 45 groups (51 localization entries
|
|
5
|
+
* across list + single reads): every entry carried exactly one key, `title`,
|
|
6
|
+
* always a string. The spec does not document this shape (the official groups
|
|
7
|
+
* `Group` schema models a different management API and does not match the
|
|
8
|
+
* runtime at all).
|
|
9
|
+
*/
|
|
10
|
+
export interface GroupConfigLocalization {
|
|
11
|
+
title: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=GroupConfigLocalization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupConfigLocalization.d.ts","sourceRoot":"","sources":["../../../../src/types/groups/GroupConfigLocalization.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAA;CACd"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A platform user entity as embedded in a group's single-read response, used
|
|
3
|
+
* both for `owner` and for each item of `users.data`.
|
|
4
|
+
*
|
|
5
|
+
* Grounded in a live prod sweep (306 user entities across 6 single reads). The
|
|
6
|
+
* required/optional split below reflects observed presence counts: the core
|
|
7
|
+
* identity and account fields were present on 306/306, while `avatar`
|
|
8
|
+
* (276/306), `recoveryCode` (11/306), `secret` (20/306) and `deactivatedAt`
|
|
9
|
+
* (2/306) were genuinely absent on some users. `mandatoryGroupIDs` and
|
|
10
|
+
* `phoneNumber` were always `null` in the sweep; `department`, `location` and
|
|
11
|
+
* `position` were string-or-null.
|
|
12
|
+
*
|
|
13
|
+
* Nested platform sub-objects (`avatar`, `config`, `creation`, `profile`,
|
|
14
|
+
* `recoveryCode`, `role`, `secret`, `userName`) are full entity dumps and are
|
|
15
|
+
* typed as opaque records: their inner shapes are platform-controlled, vary by
|
|
16
|
+
* tenant (`profile` is a free-form custom-field map), and are not part of the
|
|
17
|
+
* contract this read type guarantees. The official groups spec does not
|
|
18
|
+
* document this user shape at all.
|
|
19
|
+
*/
|
|
20
|
+
export interface GroupUser {
|
|
21
|
+
id: string;
|
|
22
|
+
firstName: string;
|
|
23
|
+
lastName: string;
|
|
24
|
+
entityType: string;
|
|
25
|
+
status: string;
|
|
26
|
+
activated: string;
|
|
27
|
+
branchID: string;
|
|
28
|
+
branchRole: string;
|
|
29
|
+
externalID: string;
|
|
30
|
+
publicEmailAddress: string;
|
|
31
|
+
department: string | null;
|
|
32
|
+
location: string | null;
|
|
33
|
+
position: string | null;
|
|
34
|
+
mandatoryGroupIDs: string[] | null;
|
|
35
|
+
phoneNumber: string | null;
|
|
36
|
+
groupIDs: string[];
|
|
37
|
+
tags: string[];
|
|
38
|
+
emails: Record<string, unknown>[];
|
|
39
|
+
config: Record<string, unknown>;
|
|
40
|
+
creation: Record<string, unknown>;
|
|
41
|
+
profile: Record<string, unknown>;
|
|
42
|
+
role: Record<string, unknown>;
|
|
43
|
+
userName: Record<string, unknown>;
|
|
44
|
+
avatar?: Record<string, unknown>;
|
|
45
|
+
recoveryCode?: Record<string, unknown>;
|
|
46
|
+
secret?: Record<string, unknown>;
|
|
47
|
+
deactivatedAt?: string;
|
|
48
|
+
created: string;
|
|
49
|
+
updated: string;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=GroupUser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupUser.d.ts","sourceRoot":"","sources":["../../../../src/types/groups/GroupUser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,iBAAiB,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAClC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChannelLink } from '../content/ChannelLink';
|
|
2
|
+
import { GroupUser } from './GroupUser';
|
|
3
|
+
/**
|
|
4
|
+
* The `users` object on a group's single-read response: a paginated collection
|
|
5
|
+
* of the group's members.
|
|
6
|
+
*
|
|
7
|
+
* Grounded in a live prod sweep (6/6 single reads): the pagination envelope
|
|
8
|
+
* (`total`, `limit`, `offset`), the `data` array of {@link GroupUser} members,
|
|
9
|
+
* the `links` HAL map and the `rights` string array were all present on 6/6.
|
|
10
|
+
* Present only on single reads (`GET /api/groups/{id}`), never on the list
|
|
11
|
+
* items. The official groups spec does not document this shape.
|
|
12
|
+
*/
|
|
13
|
+
export interface GroupUsers {
|
|
14
|
+
total: number;
|
|
15
|
+
limit: number;
|
|
16
|
+
offset: number;
|
|
17
|
+
data: GroupUser[];
|
|
18
|
+
links: Record<string, ChannelLink>;
|
|
19
|
+
rights: string[];
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=GroupUsers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupUsers.d.ts","sourceRoot":"","sources":["../../../../src/types/groups/GroupUsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,SAAS,EAAE,CAAA;IACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAClC,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { components } from './generated/groupsApi';
|
|
2
|
+
/**
|
|
3
|
+
* Request body for updating a group.
|
|
4
|
+
*
|
|
5
|
+
* Thin alias over the machine-generated groups API schema so the public name
|
|
6
|
+
* stays stable even if `generated/groupsApi.ts` is regenerated. The write side
|
|
7
|
+
* of the spec is properly schematized, so this is sourced directly from codegen
|
|
8
|
+
* (unlike `Group`, whose read shape had to be curated from prod because
|
|
9
|
+
* the spec's `Group` schema does not match the runtime).
|
|
10
|
+
*/
|
|
11
|
+
export type UpdateGroupBody = components['schemas']['GroupUpdate'];
|
|
12
|
+
//# sourceMappingURL=UpdateGroupBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateGroupBody.d.ts","sourceRoot":"","sources":["../../../../src/types/groups/UpdateGroupBody.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAEvD;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAA"}
|