@go-avro/avro-js 0.0.57 → 0.0.59
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.
|
@@ -17,10 +17,6 @@ export const AvroQueryClientProvider = ({ baseUrl, authManager, queryClient, con
|
|
|
17
17
|
return () => {
|
|
18
18
|
try {
|
|
19
19
|
client.teardownSocketInvalidation();
|
|
20
|
-
// Socket is NOT disconnected here. Its lifecycle is managed by the
|
|
21
|
-
// AvroQueryClient constructor and token refresh callbacks.
|
|
22
|
-
// Disconnecting here breaks React StrictMode — the constructor's
|
|
23
|
-
// async connect flow has already completed, so the socket stays dead.
|
|
24
20
|
}
|
|
25
21
|
catch (e) {
|
|
26
22
|
// ignore
|
|
@@ -111,6 +111,12 @@ declare module '../client/QueryClient' {
|
|
|
111
111
|
unknown_ids?: string[];
|
|
112
112
|
query?: string;
|
|
113
113
|
paid?: boolean;
|
|
114
|
+
created_from?: number;
|
|
115
|
+
created_to?: number;
|
|
116
|
+
paid_from?: number;
|
|
117
|
+
paid_to?: number;
|
|
118
|
+
amount_min?: number;
|
|
119
|
+
amount_max?: number;
|
|
114
120
|
}): UseInfiniteQueryResult<InfiniteData<Bill[], unknown>, StandardError>;
|
|
115
121
|
useGetLabels(body: {
|
|
116
122
|
amt?: number;
|
|
@@ -710,6 +716,12 @@ export declare class AvroQueryClient {
|
|
|
710
716
|
query?: string;
|
|
711
717
|
offset?: number;
|
|
712
718
|
paid?: boolean;
|
|
719
|
+
created_from?: number;
|
|
720
|
+
created_to?: number;
|
|
721
|
+
paid_from?: number;
|
|
722
|
+
paid_to?: number;
|
|
723
|
+
amount_min?: number;
|
|
724
|
+
amount_max?: number;
|
|
713
725
|
}, cancelToken?: CancelToken, headers?: Record<string, string>): Promise<any>;
|
|
714
726
|
fetchRoutes(body?: {
|
|
715
727
|
amt?: number;
|
|
@@ -10,6 +10,12 @@ AvroQueryClient.prototype.useGetBills = function (body) {
|
|
|
10
10
|
body.known_ids ?? [],
|
|
11
11
|
body.unknown_ids ?? [],
|
|
12
12
|
body.paid ?? false,
|
|
13
|
+
body.created_from ?? null,
|
|
14
|
+
body.created_to ?? null,
|
|
15
|
+
body.paid_from ?? null,
|
|
16
|
+
body.paid_to ?? null,
|
|
17
|
+
body.amount_min ?? null,
|
|
18
|
+
body.amount_max ?? null,
|
|
13
19
|
],
|
|
14
20
|
initialPageParam: 0,
|
|
15
21
|
getNextPageParam: (lastPage, allPages) => {
|
package/dist/types/client.d.ts
CHANGED
|
@@ -2,4 +2,12 @@ export type RetryStrategy = 'fixed' | 'exponential' | ((attempt: number) => numb
|
|
|
2
2
|
export interface CancelToken {
|
|
3
3
|
isCancelled(): boolean;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export declare const ClientId: {
|
|
6
|
+
readonly PROD_WEB: "prod-web";
|
|
7
|
+
readonly PROD_APP: "prod-app";
|
|
8
|
+
readonly BETA_WEB: "beta-web";
|
|
9
|
+
readonly BETA_APP: "beta-app";
|
|
10
|
+
readonly DEV_WEB: "dev-web";
|
|
11
|
+
readonly DEV_APP: "dev-app";
|
|
12
|
+
};
|
|
13
|
+
export type ClientId = (typeof ClientId)[keyof typeof ClientId];
|
package/dist/types/client.js
CHANGED
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AVRO_JS_VERSION = "0.0.
|
|
1
|
+
export declare const AVRO_JS_VERSION = "0.0.59";
|
package/dist/version.js
CHANGED