@emeryld/rrroutes-openapi 2.3.5 → 2.3.6

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,15 @@
1
+ import type { InfiniteData } from '@tanstack/react-query';
2
+ import { ReactNode } from 'react';
3
+ type FeedPaginationProps<TItem> = {
4
+ data?: InfiniteData<any>;
5
+ items?: TItem[];
6
+ fetchNextPage: () => Promise<unknown>;
7
+ hasNextPage?: boolean;
8
+ isFetchingNextPage?: boolean;
9
+ pageSize?: number;
10
+ autoLoadOffset?: string;
11
+ extractItems?: (page: any) => TItem[];
12
+ children: (items: TItem[]) => ReactNode;
13
+ };
14
+ export default function FeedPagination<TItem>({ data, items: providedItems, fetchNextPage, hasNextPage, isFetchingNextPage, pageSize, autoLoadOffset, extractItems, children, }: FeedPaginationProps<TItem>): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -7,6 +7,8 @@ type BaseFilterBarProps = {
7
7
  searchInputRef?: RefObject<HTMLInputElement>;
8
8
  tagOptions?: string[];
9
9
  groupOptions?: string[];
10
+ onRefresh?: () => void;
11
+ refreshing?: boolean;
10
12
  };
11
- export default function BaseFilterBar({ value, onChange, children, searchInputRef, tagOptions, groupOptions, }: BaseFilterBarProps): import("react/jsx-runtime").JSX.Element;
13
+ export default function BaseFilterBar({ value, onChange, children, searchInputRef, tagOptions, groupOptions, onRefresh, refreshing, }: BaseFilterBarProps): import("react/jsx-runtime").JSX.Element;
12
14
  export {};
@@ -12,6 +12,7 @@ export type BaseFilter = {
12
12
  tagsExclude: string[];
13
13
  groupsInclude: string[];
14
14
  groupsExclude: string[];
15
+ pageSize?: number;
15
16
  };
16
17
  export declare const DEFAULT_BASE_FILTER: BaseFilter;
17
18
  export declare function buildBaseQuery(filter: BaseFilter): Record<string, unknown>;
@@ -39,5 +39,5 @@ export declare const baseQuerySchema: z.ZodObject<{
39
39
  }, z.core.$strip>;
40
40
  export declare const paginationSchema: z.ZodObject<{
41
41
  cursor: z.ZodOptional<z.ZodString>;
42
- pageSize: z.ZodOptional<z.ZodNumber>;
42
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
43
43
  }, z.core.$strip>;
@@ -68,13 +68,13 @@ export declare const cacheLeaves: readonly [{
68
68
  deprecated?: boolean | undefined;
69
69
  queryExtensionSchema: z.ZodObject<{
70
70
  cursor: z.ZodOptional<z.ZodString>;
71
- pageSize: z.ZodOptional<z.ZodNumber>;
71
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
72
72
  }, z.core.$strip> & import("@emeryld/rrroutes-contract").RouteSchema<{
73
73
  cursor?: string | undefined;
74
74
  pageSize?: number | undefined;
75
75
  }, {
76
76
  cursor?: string | undefined;
77
- pageSize?: number | undefined;
77
+ pageSize?: unknown;
78
78
  }>;
79
79
  bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
80
80
  feed: true;
@@ -115,7 +115,7 @@ export declare const cacheLeaves: readonly [{
115
115
  excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
116
116
  } & {
117
117
  cursor?: string | undefined;
118
- pageSize?: number | undefined;
118
+ pageSize?: unknown;
119
119
  }>;
120
120
  paramsSchema: undefined;
121
121
  outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
@@ -108,13 +108,13 @@ export declare const endpointLeaves: readonly [{
108
108
  deprecated?: boolean | undefined;
109
109
  queryExtensionSchema: z.ZodObject<{
110
110
  cursor: z.ZodOptional<z.ZodString>;
111
- pageSize: z.ZodOptional<z.ZodNumber>;
111
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
112
112
  }, z.core.$strip> & import("@emeryld/rrroutes-contract").RouteSchema<{
113
113
  cursor?: string | undefined;
114
114
  pageSize?: number | undefined;
115
115
  }, {
116
116
  cursor?: string | undefined;
117
- pageSize?: number | undefined;
117
+ pageSize?: unknown;
118
118
  }>;
119
119
  bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
120
120
  feed: true;
@@ -161,7 +161,7 @@ export declare const endpointLeaves: readonly [{
161
161
  excludeStability?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
162
162
  } & {
163
163
  cursor?: string | undefined;
164
- pageSize?: number | undefined;
164
+ pageSize?: unknown;
165
165
  }>;
166
166
  paramsSchema: undefined;
167
167
  outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
@@ -60,13 +60,13 @@ export declare const logLeaves: readonly [{
60
60
  deprecated?: boolean | undefined;
61
61
  queryExtensionSchema: z.ZodObject<{
62
62
  cursor: z.ZodOptional<z.ZodString>;
63
- pageSize: z.ZodOptional<z.ZodNumber>;
63
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
64
64
  }, z.core.$strip> & import("@emeryld/rrroutes-contract").RouteSchema<{
65
65
  cursor?: string | undefined;
66
66
  pageSize?: number | undefined;
67
67
  }, {
68
68
  cursor?: string | undefined;
69
- pageSize?: number | undefined;
69
+ pageSize?: unknown;
70
70
  }>;
71
71
  bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
72
72
  feed: true;
@@ -107,7 +107,7 @@ export declare const logLeaves: readonly [{
107
107
  excludeLevel?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
108
108
  } & {
109
109
  cursor?: string | undefined;
110
- pageSize?: number | undefined;
110
+ pageSize?: unknown;
111
111
  }>;
112
112
  paramsSchema: undefined;
113
113
  outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
@@ -34,13 +34,13 @@ export declare const presetLeaves: readonly [{
34
34
  deprecated?: boolean | undefined;
35
35
  queryExtensionSchema: z.ZodObject<{
36
36
  cursor: z.ZodOptional<z.ZodString>;
37
- pageSize: z.ZodOptional<z.ZodNumber>;
37
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
38
38
  }, z.core.$strip> & import("@emeryld/rrroutes-contract").RouteSchema<{
39
39
  cursor?: string | undefined;
40
40
  pageSize?: number | undefined;
41
41
  }, {
42
42
  cursor?: string | undefined;
43
- pageSize?: number | undefined;
43
+ pageSize?: unknown;
44
44
  }>;
45
45
  bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
46
46
  feed: true;
@@ -81,7 +81,7 @@ export declare const presetLeaves: readonly [{
81
81
  excludeName?: string | undefined;
82
82
  } & {
83
83
  cursor?: string | undefined;
84
- pageSize?: number | undefined;
84
+ pageSize?: unknown;
85
85
  }>;
86
86
  paramsSchema: undefined;
87
87
  outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
@@ -64,8 +64,8 @@ export declare const requestQuerySchema: z.ZodObject<{
64
64
  statuses: z.ZodDefault<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
65
65
  excludeStatuses: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
66
66
  path: z.ZodOptional<z.ZodString>;
67
- endpointKey: z.ZodOptional<z.ZodString>;
68
- excludeEndpointKey: z.ZodOptional<z.ZodString>;
67
+ endpointKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
+ excludeEndpointKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
69
69
  }, z.core.$strip>;
70
70
  export declare const requestLogLeaves: readonly [{
71
71
  readonly method: "get";
@@ -76,13 +76,13 @@ export declare const requestLogLeaves: readonly [{
76
76
  deprecated?: boolean | undefined;
77
77
  queryExtensionSchema: z.ZodObject<{
78
78
  cursor: z.ZodOptional<z.ZodString>;
79
- pageSize: z.ZodOptional<z.ZodNumber>;
79
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
80
80
  }, z.core.$strip> & import("@emeryld/rrroutes-contract").RouteSchema<{
81
81
  cursor?: string | undefined;
82
82
  pageSize?: number | undefined;
83
83
  }, {
84
84
  cursor?: string | undefined;
85
- pageSize?: number | undefined;
85
+ pageSize?: unknown;
86
86
  }>;
87
87
  bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
88
88
  feed: true;
@@ -108,8 +108,8 @@ export declare const requestLogLeaves: readonly [{
108
108
  excludeMethods?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
109
109
  excludeStatuses?: number[] | undefined;
110
110
  path?: string | undefined;
111
- endpointKey?: string | undefined;
112
- excludeEndpointKey?: string | undefined;
111
+ endpointKeys?: string[] | undefined;
112
+ excludeEndpointKeys?: string[] | undefined;
113
113
  } & {
114
114
  cursor?: string | undefined;
115
115
  pageSize?: number | undefined;
@@ -129,11 +129,11 @@ export declare const requestLogLeaves: readonly [{
129
129
  statuses?: unknown[] | undefined;
130
130
  excludeStatuses?: unknown[] | undefined;
131
131
  path?: string | undefined;
132
- endpointKey?: string | undefined;
133
- excludeEndpointKey?: string | undefined;
132
+ endpointKeys?: string[] | undefined;
133
+ excludeEndpointKeys?: string[] | undefined;
134
134
  } & {
135
135
  cursor?: string | undefined;
136
- pageSize?: number | undefined;
136
+ pageSize?: unknown;
137
137
  }>;
138
138
  paramsSchema: undefined;
139
139
  outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emeryld/rrroutes-openapi",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",