@prorobotech/openapi-k8s-toolkit 1.4.0-alpha.18 → 1.4.0-alpha.19

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.
@@ -0,0 +1,2 @@
1
+ /** @jest-environment jsdom */
2
+ export {};
@@ -44,11 +44,22 @@ type TPageErrorFrame = {
44
44
  type: 'PAGE_ERROR';
45
45
  error: string;
46
46
  };
47
+ type TInitialErrorFrame = {
48
+ type: 'INITIAL_ERROR';
49
+ message: string;
50
+ statusCode?: number;
51
+ reason?: string;
52
+ };
53
+ type TServerLogFrame = {
54
+ type: 'SERVER_LOG';
55
+ level: 'info' | 'warn' | 'error';
56
+ message: string;
57
+ };
47
58
  type TDeltaFrame = {
48
59
  type: TWatchPhase;
49
60
  item: TEventsV1Event;
50
61
  };
51
- export type TServerFrame = TInitialFrame | TPageFrame | TPageErrorFrame | TDeltaFrame;
62
+ export type TServerFrame = TInitialFrame | TPageFrame | TPageErrorFrame | TInitialErrorFrame | TServerLogFrame | TDeltaFrame;
52
63
  export type TScrollMsg = {
53
64
  type: 'SCROLL';
54
65
  continue: string;
@@ -0,0 +1,2 @@
1
+ /** @jest-environment jsdom */
2
+ export {};
@@ -1,7 +1,8 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
- export declare const useDirectUnknownResource: <T>({ uri, queryKey, refetchInterval, isEnabled, }: {
2
+ export declare const useDirectUnknownResource: <T>({ uri, queryKey, refetchInterval, staleTime, isEnabled, }: {
3
3
  uri: string;
4
4
  queryKey: string[];
5
5
  refetchInterval?: number | false | undefined;
6
+ staleTime?: number | undefined;
6
7
  isEnabled?: boolean | undefined;
7
8
  }) => UseQueryResult<T, Error>;
@@ -29,6 +29,8 @@ type TConsoleFrame = {
29
29
  type TInitialError = {
30
30
  type: 'INITIAL_ERROR';
31
31
  message: string;
32
+ statusCode?: number;
33
+ reason?: string;
32
34
  };
33
35
  export type TServerFrame = TInitialFrame | TPageFrame | TPageErrorFrame | TDeltaFrame | TConsoleFrame | TInitialError;
34
36
  export type TScrollMsg = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prorobotech/openapi-k8s-toolkit",
3
- "version": "1.4.0-alpha.18",
3
+ "version": "1.4.0-alpha.19",
4
4
  "description": "ProRobotech OpenAPI k8s tools",
5
5
  "main": "dist/openapi-k8s-toolkit.cjs.js",
6
6
  "module": "dist/openapi-k8s-toolkit.es.js",