@cavuno/board 4.4.0 → 4.5.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/CHANGELOG.md +28 -0
- package/README.md +93 -77
- package/dist/{_spec-COlkrizX.d.mts → _spec-BJah6GIZ.d.mts} +55 -0
- package/dist/{_spec-COlkrizX.d.ts → _spec-BJah6GIZ.d.ts} +55 -0
- package/dist/{blog-DO8Yn21_.d.mts → blog-4Owyo4U_.d.mts} +1 -1
- package/dist/{blog-CgA_ljHa.d.ts → blog-DJi_1n7W.d.ts} +1 -1
- package/dist/{board-JgFR-2UW.d.mts → board-CpR7o9bL.d.mts} +2 -2
- package/dist/{board-D51C3gB5.d.ts → board-KDx9U0nw.d.ts} +2 -2
- package/dist/{breadcrumbs-_QzN4nEk.d.ts → breadcrumbs-CJ-NpA-V.d.ts} +2 -2
- package/dist/{breadcrumbs-zAN2biAq.d.mts → breadcrumbs-DOJH_7nO.d.mts} +2 -2
- package/dist/browser/cavuno-board.global.min.js +1 -1
- package/dist/{chunk-2ETP5UH4.mjs → chunk-GC5QWN7Y.mjs} +16 -0
- package/dist/{chunk-YEAQ3JEI.mjs → chunk-VWGF4I5C.mjs} +143 -4
- package/dist/filters.d.mts +2 -2
- package/dist/filters.d.ts +2 -2
- package/dist/format.d.mts +4 -4
- package/dist/format.d.ts +4 -4
- package/dist/format.js +15 -2
- package/dist/format.mjs +2 -126
- package/dist/index.d.mts +75 -12
- package/dist/index.d.ts +75 -12
- package/dist/index.js +187 -1
- package/dist/index.mjs +172 -2
- package/dist/{jobs-DOF3QXdq.d.ts → jobs-Ay-V6Q6y.d.ts} +1 -1
- package/dist/{jobs-C1Mxty1n.d.mts → jobs-C27qlt6o.d.mts} +1 -1
- package/dist/{search-Cx_dsVUb.d.mts → search-CC-rlMgk.d.mts} +1 -1
- package/dist/{search-_QDaN6Um.d.ts → search-fG_K9J8x.d.ts} +1 -1
- package/dist/seo.d.mts +6 -6
- package/dist/seo.d.ts +6 -6
- package/dist/seo.js +16 -1
- package/dist/seo.mjs +1 -1
- package/dist/server.d.mts +5 -5
- package/dist/server.d.ts +5 -5
- package/dist/server.mjs +1 -1
- package/dist/sitemap.d.mts +5 -5
- package/dist/sitemap.d.ts +5 -5
- package/dist/suggest.d.mts +2 -2
- package/dist/suggest.d.ts +2 -2
- package/package.json +1 -1
- package/skills/cavuno-board-account/SKILL.md +11 -1
- package/skills/cavuno-board-companies/SKILL.md +21 -0
- package/skills/cavuno-board-seo/SALARY.md +2 -1
- package/skills/manifest.json +1 -1
|
@@ -12,6 +12,27 @@ Board-wide jobs use `jobs.*`, board-wide salary hubs use `salaries.*`, and
|
|
|
12
12
|
employer self-service uses authenticated `board.me.companies.*`. The host app
|
|
13
13
|
owns admin writes, sitemaps, and OG-image routes.
|
|
14
14
|
|
|
15
|
+
An approved admin can delete a company they manage and can list, retitle, or
|
|
16
|
+
remove members. Any approved member can leave with `board.me.companies.leave`.
|
|
17
|
+
Demoting, removing, or leaving as the last admin is `last_admin`. Admins
|
|
18
|
+
invite by email; approved members can list pending invites; accept is
|
|
19
|
+
session-gated on `board.me.acceptInvite`.
|
|
20
|
+
|
|
21
|
+
```ts snippet
|
|
22
|
+
await board.me.companies.delete('acme');
|
|
23
|
+
const { data: members } = await board.me.companies.listMembers('acme');
|
|
24
|
+
await board.me.companies.updateMemberRole('acme', members[0].id, {
|
|
25
|
+
role: 'admin',
|
|
26
|
+
});
|
|
27
|
+
await board.me.companies.removeMember('acme', members[0].id);
|
|
28
|
+
await board.me.companies.leave('acme');
|
|
29
|
+
|
|
30
|
+
const { data: invites } = await board.me.companies.listInvites('acme');
|
|
31
|
+
await board.me.companies.createInvite('acme', { email: 'ada@acme.test' });
|
|
32
|
+
await board.me.companies.revokeInvite('acme', invites[0].id);
|
|
33
|
+
const { companySlug } = await board.me.acceptInvite({ token });
|
|
34
|
+
```
|
|
35
|
+
|
|
15
36
|
## List and search
|
|
16
37
|
|
|
17
38
|
`companies.list` returns `CompanyListEnvelope`: `ListEnvelope<PublicCompany>`
|
|
@@ -102,7 +102,8 @@ const index = itemListJsonLd([
|
|
|
102
102
|
- `formatSalaryStat(locale, value, currency, notation?)` /
|
|
103
103
|
`formatSalaryStatRange(locale, min, max, currency, notation?)` for
|
|
104
104
|
salary-page amounts (currency from the detail, not hardcoded USD;
|
|
105
|
-
`formatRange` owns the join
|
|
105
|
+
`formatRange` owns the join when present, else two `format()` calls
|
|
106
|
+
joined with an en-dash). `notation` matches `formatSalaryRange`
|
|
106
107
|
(magnitude default when omitted; pass `'standard'` for full figures).
|
|
107
108
|
Returns `null` when currency is empty or `Intl` rejects inputs.
|
|
108
109
|
- `SENIORITY_ORDER` / `sortBySeniority` for seniority ladder ordering
|
package/skills/manifest.json
CHANGED