@go-avro/avro-js 0.0.94 → 0.0.95
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Socket } from 'socket.io-client';
|
|
2
2
|
import { InfiniteData, QueryClient, UseInfiniteQueryResult, useMutation, UseQueryResult } from '@tanstack/react-query';
|
|
3
3
|
import { AuthManager } from '../auth/AuthManager';
|
|
4
|
-
import { _Event, ActiveSessionSummary, AddressFeatureCollection, ApiInfo, Avro, Bill, BillInsightData, BillLineItemStatusUpdate, BillStatus, Break, Chat, CheckIn, Company, DelayEventCreatePayload, EventUpdatePayload, LineItemType, FinancialInsightData, RevenueInsightData, Job, JobUpdate, EventInsightData, LoginResponse, Message, Plan, Route, ServiceMonth, Session, Team, User, UserCompanyAssociation, Skill, Group, Label, RouteScheduleConfig, RouteWritePayload, CatalogItem, Payout, Prepayment, Timecard, TimecardActionType, TimecardStatus } from '../types/api';
|
|
4
|
+
import { _Event, ActiveSessionSummary, AddressFeatureCollection, ApiInfo, Avro, StorageAnalytics, Bill, BillInsightData, BillLineItemStatusUpdate, BillStatus, Break, Chat, CheckIn, Company, DelayEventCreatePayload, EventUpdatePayload, LineItemType, FinancialInsightData, RevenueInsightData, Job, JobUpdate, EventInsightData, LoginResponse, Message, Plan, Route, ServiceMonth, Session, Team, User, UserCompanyAssociation, Skill, Group, Label, RouteScheduleConfig, RouteWritePayload, CatalogItem, Payout, Prepayment, Timecard, TimecardActionType, TimecardStatus } from '../types/api';
|
|
5
5
|
import { AuthState, Tokens } from '../types/auth';
|
|
6
6
|
import { CancelToken, ClientId, RetryStrategy } from '../types/client';
|
|
7
7
|
import { StandardError } from '../types/error';
|
|
@@ -235,6 +235,7 @@ declare module '../client/QueryClient' {
|
|
|
235
235
|
}): UseQueryResult<Timecard[], StandardError>;
|
|
236
236
|
useGetTimecard(timecardId?: string, enabled?: boolean): UseQueryResult<Timecard, StandardError>;
|
|
237
237
|
useGetAvro(): UseQueryResult<Avro, StandardError>;
|
|
238
|
+
useGetStorageAnalytics(): UseQueryResult<StorageAnalytics, StandardError>;
|
|
238
239
|
useSearchUsers(searchUsername: string): UseQueryResult<User[], StandardError>;
|
|
239
240
|
useReviewProposal(proposal_id: string): ReturnType<typeof useMutation<{
|
|
240
241
|
msg: string;
|
|
@@ -7,3 +7,9 @@ AvroQueryClient.prototype.useGetAvro = function () {
|
|
|
7
7
|
enabled: true,
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
+
AvroQueryClient.prototype.useGetStorageAnalytics = function () {
|
|
11
|
+
return useQuery({
|
|
12
|
+
queryKey: ['avro', 'storage'],
|
|
13
|
+
queryFn: () => this.get({ path: '/avro/storage' }),
|
|
14
|
+
});
|
|
15
|
+
};
|
package/dist/types/api/Avro.d.ts
CHANGED
|
@@ -9,3 +9,20 @@ export interface Avro {
|
|
|
9
9
|
billing_email_id: string;
|
|
10
10
|
join_email_id: string;
|
|
11
11
|
}
|
|
12
|
+
export interface StorageByType {
|
|
13
|
+
type: string;
|
|
14
|
+
count: number;
|
|
15
|
+
bytes: number;
|
|
16
|
+
}
|
|
17
|
+
export interface StorageByCompany {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
count: number;
|
|
21
|
+
bytes: number;
|
|
22
|
+
}
|
|
23
|
+
export interface StorageAnalytics {
|
|
24
|
+
total_bytes: number;
|
|
25
|
+
by_type: StorageByType[];
|
|
26
|
+
/** Ordered by bytes, largest first. */
|
|
27
|
+
by_company: StorageByCompany[];
|
|
28
|
+
}
|
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.95";
|
package/dist/version.js
CHANGED