@kookee/sdk 0.0.38 → 0.0.40
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/README.md +34 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Official TypeScript SDK for [Kookee](https://kookee.dev) - the headless CMS for
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- **Lightweight** -
|
|
7
|
+
- **Lightweight** - Small minified footprint (ESM), no bloat
|
|
8
8
|
- **Zero dependencies** - Uses native `fetch`, nothing else
|
|
9
9
|
- **TypeScript-first** - Full type definitions out of the box
|
|
10
10
|
- **Tree-shakeable** - Import only what you need
|
|
@@ -559,6 +559,7 @@ import type {
|
|
|
559
559
|
ReactResponse,
|
|
560
560
|
|
|
561
561
|
// Common
|
|
562
|
+
ApiError,
|
|
562
563
|
PublicConfig,
|
|
563
564
|
PaginatedResponse,
|
|
564
565
|
PaginationParams,
|
|
@@ -566,6 +567,38 @@ import type {
|
|
|
566
567
|
OrderDirection,
|
|
567
568
|
KookeeConfig,
|
|
568
569
|
HealthCheckResponse,
|
|
570
|
+
|
|
571
|
+
// Module request parameter shapes
|
|
572
|
+
EntriesListParams,
|
|
573
|
+
EntriesGetByIdParams,
|
|
574
|
+
EntriesGetBySlugParams,
|
|
575
|
+
EntriesGetCommentsParams,
|
|
576
|
+
EntriesGetCategoriesParams,
|
|
577
|
+
BlogListParams,
|
|
578
|
+
BlogGetBySlugParams,
|
|
579
|
+
BlogGetByIdParams,
|
|
580
|
+
BlogGetCommentsParams,
|
|
581
|
+
HelpCategoriesParams,
|
|
582
|
+
HelpListParams,
|
|
583
|
+
HelpSearchParams,
|
|
584
|
+
HelpGetBySlugParams,
|
|
585
|
+
HelpGetByIdParams,
|
|
586
|
+
HelpGetCommentsParams,
|
|
587
|
+
ChangelogListParams,
|
|
588
|
+
ChangelogGetBySlugParams,
|
|
589
|
+
ChangelogGetByIdParams,
|
|
590
|
+
ChangelogGetCommentsParams,
|
|
591
|
+
PagesListParams,
|
|
592
|
+
PagesGetBySlugParams,
|
|
593
|
+
PagesGetByIdParams,
|
|
594
|
+
PagesGetCommentsParams,
|
|
595
|
+
AnnouncementListParams,
|
|
596
|
+
AnnouncementGetByIdParams,
|
|
597
|
+
AnnouncementGetCommentsParams,
|
|
598
|
+
ConfigListParams,
|
|
599
|
+
FeedbackListParams,
|
|
600
|
+
FeedbackVoteParams,
|
|
601
|
+
FeedbackTopContributorsParams,
|
|
569
602
|
} from '@kookee/sdk';
|
|
570
603
|
```
|
|
571
604
|
|
package/dist/index.d.cts
CHANGED
|
@@ -28,7 +28,6 @@ interface PublicConfig {
|
|
|
28
28
|
}
|
|
29
29
|
interface HealthCheckResponse {
|
|
30
30
|
status: 'ok';
|
|
31
|
-
projectId: string;
|
|
32
31
|
timestamp: string;
|
|
33
32
|
}
|
|
34
33
|
type ReactionType = 'fire' | 'heart' | 'rocket' | 'eyes' | 'mindblown';
|
|
@@ -205,12 +204,15 @@ type AnnouncementType = 'info' | 'warning' | 'critical' | 'promotion' | 'mainten
|
|
|
205
204
|
/**
|
|
206
205
|
* Author shape returned on public entry responses.
|
|
207
206
|
*
|
|
208
|
-
* NOTE: `name` and `image` can be `null` on the server side.
|
|
207
|
+
* NOTE: `name` and `image` can be `null` on the server side. `isTeamMember`
|
|
208
|
+
* is only populated on comment responses (where the server can tell whether
|
|
209
|
+
* the commenter is a project member) — it is not set on entry author fields.
|
|
209
210
|
*/
|
|
210
211
|
interface EntryAuthor {
|
|
211
212
|
id: string;
|
|
212
213
|
name: string | null;
|
|
213
214
|
image: string | null;
|
|
215
|
+
isTeamMember?: boolean;
|
|
214
216
|
}
|
|
215
217
|
interface EntryTag {
|
|
216
218
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ interface PublicConfig {
|
|
|
28
28
|
}
|
|
29
29
|
interface HealthCheckResponse {
|
|
30
30
|
status: 'ok';
|
|
31
|
-
projectId: string;
|
|
32
31
|
timestamp: string;
|
|
33
32
|
}
|
|
34
33
|
type ReactionType = 'fire' | 'heart' | 'rocket' | 'eyes' | 'mindblown';
|
|
@@ -205,12 +204,15 @@ type AnnouncementType = 'info' | 'warning' | 'critical' | 'promotion' | 'mainten
|
|
|
205
204
|
/**
|
|
206
205
|
* Author shape returned on public entry responses.
|
|
207
206
|
*
|
|
208
|
-
* NOTE: `name` and `image` can be `null` on the server side.
|
|
207
|
+
* NOTE: `name` and `image` can be `null` on the server side. `isTeamMember`
|
|
208
|
+
* is only populated on comment responses (where the server can tell whether
|
|
209
|
+
* the commenter is a project member) — it is not set on entry author fields.
|
|
209
210
|
*/
|
|
210
211
|
interface EntryAuthor {
|
|
211
212
|
id: string;
|
|
212
213
|
name: string | null;
|
|
213
214
|
image: string | null;
|
|
215
|
+
isTeamMember?: boolean;
|
|
214
216
|
}
|
|
215
217
|
interface EntryTag {
|
|
216
218
|
id: string;
|