@cavuno/board 1.5.0 → 1.7.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/index.d.mts CHANGED
@@ -860,6 +860,23 @@ interface components {
860
860
  };
861
861
  links: components["schemas"]["AdminOnlyResourceLinks"];
862
862
  };
863
+ LegalPage: {
864
+ /** @enum {string} */
865
+ object: "legal_page";
866
+ /** @description The resolved legal page type. */
867
+ type: string;
868
+ /** @description Page heading (H1), with `{{board_name}}` resolved. */
869
+ title: string;
870
+ /** @description Owner-authored prose as portable HTML (transitional field, ADR-0039 — the starter authors the layout). Empty string when the page has no text body. */
871
+ content: string;
872
+ /** @enum {string} */
873
+ contentFormat: "html";
874
+ /** @description Structured impressum legal-entity facts; `null` for non-impressum pages. */
875
+ legalEntity: {
876
+ legalName: string | null;
877
+ address: string | null;
878
+ } | null;
879
+ };
863
880
  MediaGet: components["schemas"]["MediaUpload"] & {
864
881
  /** @description Time at which the file was uploaded. ISO 8601 datetime. */
865
882
  uploadedAt: string;
@@ -1012,8 +1029,8 @@ interface components {
1012
1029
  PublicBlogAdjacentPosts: {
1013
1030
  /** @enum {string} */
1014
1031
  object: "blog_adjacent_posts";
1015
- previous: components["schemas"]["PublicBlogPostSummary"] & unknown;
1016
- next: components["schemas"]["PublicBlogPostSummary"] & unknown;
1032
+ previous: components["schemas"]["PublicBlogPostSummary"] | null;
1033
+ next: components["schemas"]["PublicBlogPostSummary"] | null;
1017
1034
  };
1018
1035
  PublicBlogAuthor: components["schemas"]["PublicBlogAuthorEmbed"] & {
1019
1036
  /** @enum {string} */
@@ -1283,7 +1300,13 @@ interface components {
1283
1300
  frequency: string;
1284
1301
  isActive: boolean;
1285
1302
  filters: {
1286
- [key: string]: unknown;
1303
+ jobFunctions?: string[];
1304
+ seniorityLevels?: string[];
1305
+ remoteOptions?: string[];
1306
+ placeIds?: string[];
1307
+ salaryMin?: number | null;
1308
+ salaryMax?: number | null;
1309
+ salaryCurrency?: string | null;
1287
1310
  };
1288
1311
  manageToken: string;
1289
1312
  }[];
@@ -2071,7 +2094,7 @@ declare function isConflict(e: unknown): e is BoardApiError;
2071
2094
  * constant because the package is platform-neutral and cannot read
2072
2095
  * package.json at runtime.
2073
2096
  */
2074
- declare const SDK_VERSION = "1.5.0";
2097
+ declare const SDK_VERSION = "1.7.0";
2075
2098
 
2076
2099
  type BoardUser = Schemas['BoardUser'];
2077
2100
  type BoardAuthSession = Schemas['BoardAuthSession'];
@@ -2136,21 +2159,8 @@ type RedirectResolution = Schemas['RedirectResolution'];
2136
2159
  * facts and is gated by the board's `impressumEnabled` flag (404 when off).
2137
2160
  */
2138
2161
  type LegalPageType = 'terms-of-service' | 'privacy-policy' | 'cookie-policy' | 'about' | 'impressum';
2139
- interface LegalEntity {
2140
- legalName: string | null;
2141
- address: string | null;
2142
- }
2143
- interface PublicLegalPage {
2144
- object: 'legal_page';
2145
- type: string;
2146
- /** Page heading (H1), with `{{board_name}}` resolved. */
2147
- title: string;
2148
- /** Owner-authored prose as portable HTML; `''` when the page has no body. */
2149
- content: string;
2150
- contentFormat: 'html';
2151
- /** Structured impressum facts; `null` for non-impressum pages. */
2152
- legalEntity: LegalEntity | null;
2153
- }
2162
+ type PublicLegalPage = Schemas['LegalPage'];
2163
+ type LegalEntity = NonNullable<PublicLegalPage['legalEntity']>;
2154
2164
 
2155
2165
  /** Author shape embedded on posts (no `object` discriminator). */
2156
2166
  type BlogAuthorEmbed = Schemas['PublicBlogAuthorEmbed'];
@@ -2630,8 +2640,8 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2630
2640
  }>;
2631
2641
  adjacent(postSlug: string, options?: FetchOptions): Promise<{
2632
2642
  object: "blog_adjacent_posts";
2633
- previous: components["schemas"]["PublicBlogPostSummary"] & unknown;
2634
- next: components["schemas"]["PublicBlogPostSummary"] & unknown;
2643
+ previous: components["schemas"]["PublicBlogPostSummary"] | null;
2644
+ next: components["schemas"]["PublicBlogPostSummary"] | null;
2635
2645
  }>;
2636
2646
  similar(postSlug: string, query?: BlogSimilarQuery, options?: FetchOptions): Promise<ListEnvelope<{
2637
2647
  id: string;
@@ -2714,7 +2724,17 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2714
2724
  }>>;
2715
2725
  };
2716
2726
  legal: {
2717
- retrieve(type: LegalPageType, options?: FetchOptions): Promise<PublicLegalPage>;
2727
+ retrieve(type: LegalPageType, options?: FetchOptions): Promise<{
2728
+ object: "legal_page";
2729
+ type: string;
2730
+ title: string;
2731
+ content: string;
2732
+ contentFormat: "html";
2733
+ legalEntity: {
2734
+ legalName: string | null;
2735
+ address: string | null;
2736
+ } | null;
2737
+ }>;
2718
2738
  };
2719
2739
  auth: {
2720
2740
  register(body: RegisterBody, options?: FetchOptions): Promise<{
@@ -2856,7 +2876,13 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2856
2876
  frequency: string;
2857
2877
  isActive: boolean;
2858
2878
  filters: {
2859
- [key: string]: unknown;
2879
+ jobFunctions?: string[];
2880
+ seniorityLevels?: string[];
2881
+ remoteOptions?: string[];
2882
+ placeIds?: string[];
2883
+ salaryMin?: number | null;
2884
+ salaryMax?: number | null;
2885
+ salaryCurrency?: string | null;
2860
2886
  };
2861
2887
  manageToken: string;
2862
2888
  }[];
package/dist/index.d.ts CHANGED
@@ -860,6 +860,23 @@ interface components {
860
860
  };
861
861
  links: components["schemas"]["AdminOnlyResourceLinks"];
862
862
  };
863
+ LegalPage: {
864
+ /** @enum {string} */
865
+ object: "legal_page";
866
+ /** @description The resolved legal page type. */
867
+ type: string;
868
+ /** @description Page heading (H1), with `{{board_name}}` resolved. */
869
+ title: string;
870
+ /** @description Owner-authored prose as portable HTML (transitional field, ADR-0039 — the starter authors the layout). Empty string when the page has no text body. */
871
+ content: string;
872
+ /** @enum {string} */
873
+ contentFormat: "html";
874
+ /** @description Structured impressum legal-entity facts; `null` for non-impressum pages. */
875
+ legalEntity: {
876
+ legalName: string | null;
877
+ address: string | null;
878
+ } | null;
879
+ };
863
880
  MediaGet: components["schemas"]["MediaUpload"] & {
864
881
  /** @description Time at which the file was uploaded. ISO 8601 datetime. */
865
882
  uploadedAt: string;
@@ -1012,8 +1029,8 @@ interface components {
1012
1029
  PublicBlogAdjacentPosts: {
1013
1030
  /** @enum {string} */
1014
1031
  object: "blog_adjacent_posts";
1015
- previous: components["schemas"]["PublicBlogPostSummary"] & unknown;
1016
- next: components["schemas"]["PublicBlogPostSummary"] & unknown;
1032
+ previous: components["schemas"]["PublicBlogPostSummary"] | null;
1033
+ next: components["schemas"]["PublicBlogPostSummary"] | null;
1017
1034
  };
1018
1035
  PublicBlogAuthor: components["schemas"]["PublicBlogAuthorEmbed"] & {
1019
1036
  /** @enum {string} */
@@ -1283,7 +1300,13 @@ interface components {
1283
1300
  frequency: string;
1284
1301
  isActive: boolean;
1285
1302
  filters: {
1286
- [key: string]: unknown;
1303
+ jobFunctions?: string[];
1304
+ seniorityLevels?: string[];
1305
+ remoteOptions?: string[];
1306
+ placeIds?: string[];
1307
+ salaryMin?: number | null;
1308
+ salaryMax?: number | null;
1309
+ salaryCurrency?: string | null;
1287
1310
  };
1288
1311
  manageToken: string;
1289
1312
  }[];
@@ -2071,7 +2094,7 @@ declare function isConflict(e: unknown): e is BoardApiError;
2071
2094
  * constant because the package is platform-neutral and cannot read
2072
2095
  * package.json at runtime.
2073
2096
  */
2074
- declare const SDK_VERSION = "1.5.0";
2097
+ declare const SDK_VERSION = "1.7.0";
2075
2098
 
2076
2099
  type BoardUser = Schemas['BoardUser'];
2077
2100
  type BoardAuthSession = Schemas['BoardAuthSession'];
@@ -2136,21 +2159,8 @@ type RedirectResolution = Schemas['RedirectResolution'];
2136
2159
  * facts and is gated by the board's `impressumEnabled` flag (404 when off).
2137
2160
  */
2138
2161
  type LegalPageType = 'terms-of-service' | 'privacy-policy' | 'cookie-policy' | 'about' | 'impressum';
2139
- interface LegalEntity {
2140
- legalName: string | null;
2141
- address: string | null;
2142
- }
2143
- interface PublicLegalPage {
2144
- object: 'legal_page';
2145
- type: string;
2146
- /** Page heading (H1), with `{{board_name}}` resolved. */
2147
- title: string;
2148
- /** Owner-authored prose as portable HTML; `''` when the page has no body. */
2149
- content: string;
2150
- contentFormat: 'html';
2151
- /** Structured impressum facts; `null` for non-impressum pages. */
2152
- legalEntity: LegalEntity | null;
2153
- }
2162
+ type PublicLegalPage = Schemas['LegalPage'];
2163
+ type LegalEntity = NonNullable<PublicLegalPage['legalEntity']>;
2154
2164
 
2155
2165
  /** Author shape embedded on posts (no `object` discriminator). */
2156
2166
  type BlogAuthorEmbed = Schemas['PublicBlogAuthorEmbed'];
@@ -2630,8 +2640,8 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2630
2640
  }>;
2631
2641
  adjacent(postSlug: string, options?: FetchOptions): Promise<{
2632
2642
  object: "blog_adjacent_posts";
2633
- previous: components["schemas"]["PublicBlogPostSummary"] & unknown;
2634
- next: components["schemas"]["PublicBlogPostSummary"] & unknown;
2643
+ previous: components["schemas"]["PublicBlogPostSummary"] | null;
2644
+ next: components["schemas"]["PublicBlogPostSummary"] | null;
2635
2645
  }>;
2636
2646
  similar(postSlug: string, query?: BlogSimilarQuery, options?: FetchOptions): Promise<ListEnvelope<{
2637
2647
  id: string;
@@ -2714,7 +2724,17 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2714
2724
  }>>;
2715
2725
  };
2716
2726
  legal: {
2717
- retrieve(type: LegalPageType, options?: FetchOptions): Promise<PublicLegalPage>;
2727
+ retrieve(type: LegalPageType, options?: FetchOptions): Promise<{
2728
+ object: "legal_page";
2729
+ type: string;
2730
+ title: string;
2731
+ content: string;
2732
+ contentFormat: "html";
2733
+ legalEntity: {
2734
+ legalName: string | null;
2735
+ address: string | null;
2736
+ } | null;
2737
+ }>;
2718
2738
  };
2719
2739
  auth: {
2720
2740
  register(body: RegisterBody, options?: FetchOptions): Promise<{
@@ -2856,7 +2876,13 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2856
2876
  frequency: string;
2857
2877
  isActive: boolean;
2858
2878
  filters: {
2859
- [key: string]: unknown;
2879
+ jobFunctions?: string[];
2880
+ seniorityLevels?: string[];
2881
+ remoteOptions?: string[];
2882
+ placeIds?: string[];
2883
+ salaryMin?: number | null;
2884
+ salaryMax?: number | null;
2885
+ salaryCurrency?: string | null;
2860
2886
  };
2861
2887
  manageToken: string;
2862
2888
  }[];
package/dist/index.js CHANGED
@@ -149,7 +149,7 @@ async function clearSession(storage) {
149
149
  }
150
150
 
151
151
  // src/version.ts
152
- var SDK_VERSION = "1.5.0";
152
+ var SDK_VERSION = "1.7.0";
153
153
 
154
154
  // src/client.ts
155
155
  function isRawBody(body) {
package/dist/index.mjs CHANGED
@@ -109,7 +109,7 @@ async function clearSession(storage) {
109
109
  }
110
110
 
111
111
  // src/version.ts
112
- var SDK_VERSION = "1.5.0";
112
+ var SDK_VERSION = "1.7.0";
113
113
 
114
114
  // src/client.ts
115
115
  function isRawBody(body) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cavuno/board",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "Typed isomorphic client for the Cavuno Board API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.0",
2
+ "version": "1.7.0",
3
3
  "skills": [
4
4
  {
5
5
  "name": "cavuno-board-auth",