@go-avro/avro-js 0.0.2-beta.82 → 0.0.2-beta.84

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.
@@ -22,15 +22,16 @@ declare module '../client/QueryClient' {
22
22
  useGetJobs(companyGuid: string, body: {
23
23
  amt?: number;
24
24
  query?: string;
25
+ routeId?: string;
25
26
  }, total: number, onProgress?: (fraction: number) => void, isMainLoad?: boolean): UseQueryResult<Job[], StandardError>;
26
27
  useGetRoutes(companyGuid: string, body: {
27
28
  amt?: number;
28
29
  query?: string;
29
- }, total: number, onProgress?: (fraction: number) => void): UseQueryResult<any[], StandardError>;
30
+ }, total: number, onProgress?: (fraction: number) => void): UseQueryResult<Route[], StandardError>;
30
31
  useGetTeams(companyGuid: string, body: {
31
32
  amt?: number;
32
33
  query?: string;
33
- }, total: number, onProgress?: (fraction: number) => void): UseQueryResult<any[], StandardError>;
34
+ }, total: number, onProgress?: (fraction: number) => void): UseQueryResult<Team[], StandardError>;
34
35
  useGetEvents(companyGuid: string, body: {
35
36
  amt?: number;
36
37
  known_ids?: string[];
@@ -277,6 +278,7 @@ export declare class AvroQueryClient {
277
278
  unknown_ids?: string[];
278
279
  query?: string;
279
280
  offset?: number;
281
+ route_id?: string;
280
282
  }, cancelToken?: CancelToken, headers?: Record<string, string>): Promise<any>;
281
283
  fetchChats(companyGuid: string, body?: {
282
284
  amt?: number;
@@ -14,6 +14,7 @@ AvroQueryClient.prototype.useGetJobs = function (companyGuid, body, total = 0, o
14
14
  let completed = 0;
15
15
  const promises = Array.from({ length: pageCount }, (_, i) => this.fetchJobs(companyGuid, {
16
16
  ...body,
17
+ route_id: body.routeId,
17
18
  offset: i * (body.amt ?? 0),
18
19
  }));
19
20
  const trackedPromises = promises.map((promise) => promise.then((result) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.0.2-beta.82",
3
+ "version": "0.0.2-beta.84",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",