@b10cks/client 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +7 -6
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -27,7 +27,7 @@ export declare interface B10cksApiClientOptions {
27
27
  baseUrl: string;
28
28
  token: string;
29
29
  rv?: string | number;
30
- version?: 'draft' | 'published';
30
+ version?: string | 'draft' | 'published';
31
31
  fetchClient?: FetchClient;
32
32
  getRv?: () => string | number;
33
33
  setRv?: (value: string | number) => void;
@@ -137,14 +137,16 @@ export declare interface IBContent<Content = IBContentBlock<string> & {
137
137
  [index: string]: unknown;
138
138
  }> {
139
139
  id: string;
140
- slug: string;
141
140
  name: string;
142
- content: Content;
143
- type: string;
141
+ slug: string;
142
+ block: string;
144
143
  parent_id: string | null;
145
144
  full_slug: string;
145
+ content: Content;
146
146
  language_iso: string;
147
+ translations: IBContentRelation[];
147
148
  published_at: string | null;
149
+ first_published_at: string | null;
148
150
  created_at: string;
149
151
  updated_at: string;
150
152
  }
@@ -152,7 +154,6 @@ export declare interface IBContent<Content = IBContentBlock<string> & {
152
154
  export declare interface IBContentBlock<T extends string> {
153
155
  id?: string;
154
156
  block?: T;
155
- _editable?: string;
156
157
  }
157
158
 
158
159
  export declare interface IBContentQueryParams extends IBBaseQueryParams {
@@ -160,7 +161,7 @@ export declare interface IBContentQueryParams extends IBBaseQueryParams {
160
161
  full_slug?: string;
161
162
  language_iso?: string;
162
163
  type?: string;
163
- parent_id?: string;
164
+ parent_id?: string | string[];
164
165
  }
165
166
 
166
167
  export declare interface IBContentRelation {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b10cks/client",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Core b10cks API client",
5
5
  "license": "MIT",
6
6
  "author": "Michael Wallner @ Coder's Cantina",