@go-avro/avro-js 0.1.6 → 0.1.8
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.
- package/dist/auth/AuthManager.d.ts +2 -2
- package/dist/auth/AuthManager.js +2 -2
- package/dist/auth/storage.d.ts +1 -1
- package/dist/billing/fees.d.ts +1 -1
- package/dist/billing/fees.js +1 -1
- package/dist/census.d.ts +1 -1
- package/dist/client/AvroQueryClientProvider.d.ts +1 -1
- package/dist/client/QueryClient.d.ts +17 -11
- package/dist/client/QueryClient.js +57 -26
- package/dist/client/core/fetch.js +4 -4
- package/dist/client/core/utils.js +1 -1
- package/dist/client/core/xhr.js +4 -4
- package/dist/client/hooks/address.js +1 -1
- package/dist/client/hooks/analytics.js +1 -1
- package/dist/client/hooks/audit.js +1 -1
- package/dist/client/hooks/avro.js +9 -1
- package/dist/client/hooks/bills.js +3 -3
- package/dist/client/hooks/catalog_items.js +1 -1
- package/dist/client/hooks/chats.js +2 -2
- package/dist/client/hooks/checkins.js +1 -1
- package/dist/client/hooks/companies.js +3 -3
- package/dist/client/hooks/devices.js +1 -1
- package/dist/client/hooks/email.d.ts +1 -1
- package/dist/client/hooks/email.js +1 -1
- package/dist/client/hooks/events.js +3 -3
- package/dist/client/hooks/groups.js +2 -2
- package/dist/client/hooks/jobs.js +3 -3
- package/dist/client/hooks/labels.js +2 -2
- package/dist/client/hooks/messages.js +2 -2
- package/dist/client/hooks/months.js +3 -3
- package/dist/client/hooks/payouts.js +2 -2
- package/dist/client/hooks/plans.js +1 -1
- package/dist/client/hooks/prepayments.js +3 -3
- package/dist/client/hooks/proposal.js +2 -2
- package/dist/client/hooks/root.js +1 -1
- package/dist/client/hooks/routes.js +3 -3
- package/dist/client/hooks/sessions.js +3 -3
- package/dist/client/hooks/skills.js +2 -2
- package/dist/client/hooks/teams.js +2 -2
- package/dist/client/hooks/timecards.js +1 -1
- package/dist/client/hooks/users.js +7 -3
- package/dist/client/hooks/waivers.js +2 -2
- package/dist/client/persist.js +2 -2
- package/dist/client/realtime.d.ts +2 -2
- package/dist/client/realtime.js +4 -2
- package/dist/index.d.ts +52 -52
- package/dist/index.js +47 -47
- package/dist/presence.d.ts +1 -1
- package/dist/types/api/AdditionalCharge.d.ts +1 -1
- package/dist/types/api/Avro.d.ts +72 -1
- package/dist/types/api/Bill.d.ts +8 -8
- package/dist/types/api/Bill.js +1 -1
- package/dist/types/api/BillUser.d.ts +1 -1
- package/dist/types/api/CatalogItem.d.ts +1 -1
- package/dist/types/api/Chat.d.ts +2 -2
- package/dist/types/api/Company.d.ts +11 -11
- package/dist/types/api/CustomLineItem.d.ts +1 -1
- package/dist/types/api/DelayEvent.d.ts +2 -2
- package/dist/types/api/DelayEvent.js +1 -1
- package/dist/types/api/Device.d.ts +2 -2
- package/dist/types/api/Email.d.ts +7 -5
- package/dist/types/api/Group.d.ts +1 -1
- package/dist/types/api/Job.d.ts +7 -7
- package/dist/types/api/Job.js +2 -2
- package/dist/types/api/LineItem.d.ts +1 -1
- package/dist/types/api/MemberState.d.ts +1 -1
- package/dist/types/api/Message.d.ts +1 -1
- package/dist/types/api/Notification.d.ts +17 -0
- package/dist/types/api/Notification.js +1 -0
- package/dist/types/api/PaymentMethod.d.ts +1 -1
- package/dist/types/api/Payout.d.ts +1 -1
- package/dist/types/api/Prepayment.d.ts +2 -2
- package/dist/types/api/Prepayment.js +1 -1
- package/dist/types/api/ProcessingFeeLineItem.d.ts +1 -1
- package/dist/types/api/Route.d.ts +3 -3
- package/dist/types/api/Route.js +1 -1
- package/dist/types/api/RouteJob.d.ts +1 -1
- package/dist/types/api/ServiceMonth.d.ts +1 -1
- package/dist/types/api/Session.d.ts +2 -2
- package/dist/types/api/Task.d.ts +6 -6
- package/dist/types/api/Task.js +1 -1
- package/dist/types/api/Timecard.d.ts +1 -1
- package/dist/types/api/User.d.ts +6 -6
- package/dist/types/api/UserCompanyAssociation.d.ts +2 -2
- package/dist/types/api/_Event.d.ts +4 -4
- package/dist/types/api/_Event.js +1 -1
- package/dist/types/api.d.ts +50 -49
- package/dist/types/api.js +48 -47
- package/dist/types/cache.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/client/realtime.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* `delete` removes, `invalidate` refetches. Query keys: `[ns, id]`
|
|
5
5
|
* detail, `keys.list/keys.infinite(ns, scope, filters)` for lists.
|
|
6
6
|
*/
|
|
7
|
-
import { Bill, constructEvent, Job, Route, Session } from '../types/api';
|
|
7
|
+
import { Bill, constructEvent, Job, Route, Session } from '../types/api.js';
|
|
8
8
|
export const keys = {
|
|
9
9
|
detail: (ns, id) => [ns, id],
|
|
10
10
|
list: (ns, scope, filters = {}) => [ns, 'list', scope ?? '', filters],
|
|
@@ -448,7 +448,9 @@ export function fallbackInvalidate(qc, types) {
|
|
|
448
448
|
export function patchMemberLocation(qc, data) {
|
|
449
449
|
const userId = data?.user_id;
|
|
450
450
|
if (!userId || typeof userId !== 'string' || typeof data?.latitude !== 'number') {
|
|
451
|
-
|
|
451
|
+
// Malformed ping: stale-mark only — an active refetch per bad
|
|
452
|
+
// ping re-downloads the full member list on every client.
|
|
453
|
+
qc.invalidateQueries({ queryKey: ['users', 'company'], refetchType: 'none' });
|
|
452
454
|
return;
|
|
453
455
|
}
|
|
454
456
|
qc.setQueriesData({ queryKey: ['users', 'company'] }, (old) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
export { AvroQueryClientConfig, AvroQueryClient } from './client/QueryClient';
|
|
2
|
-
export { AvroQueryClientProvider, useAvroQueryClient, useSocketEvent, } from './client/AvroQueryClientProvider';
|
|
3
|
-
export { useEmailStatus } from './client/hooks/email';
|
|
4
|
-
export type { EmailResult, EmailResultStatus, UseEmailStatusOptions } from './client/hooks/email';
|
|
5
|
-
export type { BulkBillError, BulkDeleteBillsResponse, BulkEmailBillsResponse, } from './client/hooks/bills';
|
|
6
|
-
export { AuthManager } from './auth/AuthManager';
|
|
7
|
-
export { MemoryStorage, LocalStorage } from './auth/storage';
|
|
8
|
-
export { QueryPersister, IndexedDBStore, MemoryKeyValueStore, defaultKeyValueStore, PERSISTED_NAMESPACES, } from './client/persist';
|
|
9
|
-
export type { KeyValueStore, QueryPersistOptions } from './client/persist';
|
|
10
|
-
import './client/core/xhr';
|
|
11
|
-
import './client/core/fetch';
|
|
12
|
-
import './client/core/utils';
|
|
13
|
-
import './client/hooks/address';
|
|
14
|
-
import './client/hooks/root';
|
|
15
|
-
import './client/hooks/jobs';
|
|
16
|
-
import './client/hooks/audit';
|
|
17
|
-
import './client/hooks/routes';
|
|
18
|
-
import './client/hooks/events';
|
|
19
|
-
import './client/hooks/months';
|
|
20
|
-
import './client/hooks/bills';
|
|
21
|
-
import './client/hooks/payouts';
|
|
22
|
-
import './client/hooks/companies';
|
|
23
|
-
import './client/hooks/devices';
|
|
24
|
-
import './client/hooks/users';
|
|
25
|
-
import './client/hooks/sessions';
|
|
26
|
-
import './client/hooks/checkins';
|
|
27
|
-
import './client/hooks/chats';
|
|
28
|
-
import './client/hooks/catalog_items';
|
|
29
|
-
import './client/hooks/messages';
|
|
30
|
-
import './client/hooks/plans';
|
|
31
|
-
import './client/hooks/prepayments';
|
|
32
|
-
import './client/hooks/analytics';
|
|
33
|
-
import './client/hooks/avro';
|
|
34
|
-
import './client/hooks/teams';
|
|
35
|
-
import './client/hooks/labels';
|
|
36
|
-
import './client/hooks/groups';
|
|
37
|
-
import './client/hooks/skills';
|
|
38
|
-
import './client/hooks/proposal';
|
|
39
|
-
import './client/hooks/timecards';
|
|
40
|
-
import './client/hooks/waivers';
|
|
41
|
-
import './client/hooks/email';
|
|
42
|
-
export { defaultPassOnFeeMethod } from './billing/fees';
|
|
43
|
-
export { reverseGeocode } from './geocode';
|
|
44
|
-
export { fetchCensusFeatures } from './census';
|
|
45
|
-
export { LOCATION_STALE_MINUTES, LOCATION_RECENT_HOURS, isLocationRecent, REPORTING_STATUSES, locationAgeMinutes, isLocationStale, isReportingStatus, isMobileDevice, mobileDevices, userPresence, } from './presence';
|
|
46
|
-
export type { UserPresence } from './presence';
|
|
47
|
-
export type { ReverseGeocodeResult } from './geocode';
|
|
48
|
-
export * from './types/api';
|
|
49
|
-
export * from './types/auth';
|
|
50
|
-
export * from './types/cache';
|
|
51
|
-
export * from './types/client';
|
|
52
|
-
export * from './types/error';
|
|
1
|
+
export { AvroQueryClientConfig, AvroQueryClient } from './client/QueryClient.js';
|
|
2
|
+
export { AvroQueryClientProvider, useAvroQueryClient, useSocketEvent, } from './client/AvroQueryClientProvider.js';
|
|
3
|
+
export { useEmailStatus } from './client/hooks/email.js';
|
|
4
|
+
export type { EmailResult, EmailResultStatus, UseEmailStatusOptions } from './client/hooks/email.js';
|
|
5
|
+
export type { BulkBillError, BulkDeleteBillsResponse, BulkEmailBillsResponse, } from './client/hooks/bills.js';
|
|
6
|
+
export { AuthManager } from './auth/AuthManager.js';
|
|
7
|
+
export { MemoryStorage, LocalStorage } from './auth/storage.js';
|
|
8
|
+
export { QueryPersister, IndexedDBStore, MemoryKeyValueStore, defaultKeyValueStore, PERSISTED_NAMESPACES, } from './client/persist.js';
|
|
9
|
+
export type { KeyValueStore, QueryPersistOptions } from './client/persist.js';
|
|
10
|
+
import './client/core/xhr.js';
|
|
11
|
+
import './client/core/fetch.js';
|
|
12
|
+
import './client/core/utils.js';
|
|
13
|
+
import './client/hooks/address.js';
|
|
14
|
+
import './client/hooks/root.js';
|
|
15
|
+
import './client/hooks/jobs.js';
|
|
16
|
+
import './client/hooks/audit.js';
|
|
17
|
+
import './client/hooks/routes.js';
|
|
18
|
+
import './client/hooks/events.js';
|
|
19
|
+
import './client/hooks/months.js';
|
|
20
|
+
import './client/hooks/bills.js';
|
|
21
|
+
import './client/hooks/payouts.js';
|
|
22
|
+
import './client/hooks/companies.js';
|
|
23
|
+
import './client/hooks/devices.js';
|
|
24
|
+
import './client/hooks/users.js';
|
|
25
|
+
import './client/hooks/sessions.js';
|
|
26
|
+
import './client/hooks/checkins.js';
|
|
27
|
+
import './client/hooks/chats.js';
|
|
28
|
+
import './client/hooks/catalog_items.js';
|
|
29
|
+
import './client/hooks/messages.js';
|
|
30
|
+
import './client/hooks/plans.js';
|
|
31
|
+
import './client/hooks/prepayments.js';
|
|
32
|
+
import './client/hooks/analytics.js';
|
|
33
|
+
import './client/hooks/avro.js';
|
|
34
|
+
import './client/hooks/teams.js';
|
|
35
|
+
import './client/hooks/labels.js';
|
|
36
|
+
import './client/hooks/groups.js';
|
|
37
|
+
import './client/hooks/skills.js';
|
|
38
|
+
import './client/hooks/proposal.js';
|
|
39
|
+
import './client/hooks/timecards.js';
|
|
40
|
+
import './client/hooks/waivers.js';
|
|
41
|
+
import './client/hooks/email.js';
|
|
42
|
+
export { defaultPassOnFeeMethod } from './billing/fees.js';
|
|
43
|
+
export { reverseGeocode } from './geocode.js';
|
|
44
|
+
export { fetchCensusFeatures } from './census.js';
|
|
45
|
+
export { LOCATION_STALE_MINUTES, LOCATION_RECENT_HOURS, isLocationRecent, REPORTING_STATUSES, locationAgeMinutes, isLocationStale, isReportingStatus, isMobileDevice, mobileDevices, userPresence, } from './presence.js';
|
|
46
|
+
export type { UserPresence } from './presence.js';
|
|
47
|
+
export type { ReverseGeocodeResult } from './geocode.js';
|
|
48
|
+
export * from './types/api.js';
|
|
49
|
+
export * from './types/auth.js';
|
|
50
|
+
export * from './types/cache.js';
|
|
51
|
+
export * from './types/client.js';
|
|
52
|
+
export * from './types/error.js';
|
package/dist/index.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
export { AvroQueryClient } from './client/QueryClient';
|
|
2
|
-
export { AvroQueryClientProvider, useAvroQueryClient, useSocketEvent, } from './client/AvroQueryClientProvider';
|
|
3
|
-
export { useEmailStatus } from './client/hooks/email';
|
|
4
|
-
export { AuthManager } from './auth/AuthManager';
|
|
5
|
-
export { MemoryStorage, LocalStorage } from './auth/storage';
|
|
6
|
-
export { QueryPersister, IndexedDBStore, MemoryKeyValueStore, defaultKeyValueStore, PERSISTED_NAMESPACES, } from './client/persist';
|
|
7
|
-
import './client/core/xhr';
|
|
8
|
-
import './client/core/fetch';
|
|
9
|
-
import './client/core/utils';
|
|
10
|
-
import './client/hooks/address';
|
|
11
|
-
import './client/hooks/root';
|
|
12
|
-
import './client/hooks/jobs';
|
|
13
|
-
import './client/hooks/audit';
|
|
14
|
-
import './client/hooks/routes';
|
|
15
|
-
import './client/hooks/events';
|
|
16
|
-
import './client/hooks/months';
|
|
17
|
-
import './client/hooks/bills';
|
|
18
|
-
import './client/hooks/payouts';
|
|
19
|
-
import './client/hooks/companies';
|
|
20
|
-
import './client/hooks/devices';
|
|
21
|
-
import './client/hooks/users';
|
|
22
|
-
import './client/hooks/sessions';
|
|
23
|
-
import './client/hooks/checkins';
|
|
24
|
-
import './client/hooks/chats';
|
|
25
|
-
import './client/hooks/catalog_items';
|
|
26
|
-
import './client/hooks/messages';
|
|
27
|
-
import './client/hooks/plans';
|
|
28
|
-
import './client/hooks/prepayments';
|
|
29
|
-
import './client/hooks/analytics';
|
|
30
|
-
import './client/hooks/avro';
|
|
31
|
-
import './client/hooks/teams';
|
|
32
|
-
import './client/hooks/labels';
|
|
33
|
-
import './client/hooks/groups';
|
|
34
|
-
import './client/hooks/skills';
|
|
35
|
-
import './client/hooks/proposal';
|
|
36
|
-
import './client/hooks/timecards';
|
|
37
|
-
import './client/hooks/waivers';
|
|
38
|
-
import './client/hooks/email';
|
|
39
|
-
export { defaultPassOnFeeMethod } from './billing/fees';
|
|
40
|
-
export { reverseGeocode } from './geocode';
|
|
41
|
-
export { fetchCensusFeatures } from './census';
|
|
42
|
-
export { LOCATION_STALE_MINUTES, LOCATION_RECENT_HOURS, isLocationRecent, REPORTING_STATUSES, locationAgeMinutes, isLocationStale, isReportingStatus, isMobileDevice, mobileDevices, userPresence, } from './presence';
|
|
43
|
-
export * from './types/api';
|
|
44
|
-
export * from './types/auth';
|
|
45
|
-
export * from './types/cache';
|
|
46
|
-
export * from './types/client';
|
|
47
|
-
export * from './types/error';
|
|
1
|
+
export { AvroQueryClient } from './client/QueryClient.js';
|
|
2
|
+
export { AvroQueryClientProvider, useAvroQueryClient, useSocketEvent, } from './client/AvroQueryClientProvider.js';
|
|
3
|
+
export { useEmailStatus } from './client/hooks/email.js';
|
|
4
|
+
export { AuthManager } from './auth/AuthManager.js';
|
|
5
|
+
export { MemoryStorage, LocalStorage } from './auth/storage.js';
|
|
6
|
+
export { QueryPersister, IndexedDBStore, MemoryKeyValueStore, defaultKeyValueStore, PERSISTED_NAMESPACES, } from './client/persist.js';
|
|
7
|
+
import './client/core/xhr.js';
|
|
8
|
+
import './client/core/fetch.js';
|
|
9
|
+
import './client/core/utils.js';
|
|
10
|
+
import './client/hooks/address.js';
|
|
11
|
+
import './client/hooks/root.js';
|
|
12
|
+
import './client/hooks/jobs.js';
|
|
13
|
+
import './client/hooks/audit.js';
|
|
14
|
+
import './client/hooks/routes.js';
|
|
15
|
+
import './client/hooks/events.js';
|
|
16
|
+
import './client/hooks/months.js';
|
|
17
|
+
import './client/hooks/bills.js';
|
|
18
|
+
import './client/hooks/payouts.js';
|
|
19
|
+
import './client/hooks/companies.js';
|
|
20
|
+
import './client/hooks/devices.js';
|
|
21
|
+
import './client/hooks/users.js';
|
|
22
|
+
import './client/hooks/sessions.js';
|
|
23
|
+
import './client/hooks/checkins.js';
|
|
24
|
+
import './client/hooks/chats.js';
|
|
25
|
+
import './client/hooks/catalog_items.js';
|
|
26
|
+
import './client/hooks/messages.js';
|
|
27
|
+
import './client/hooks/plans.js';
|
|
28
|
+
import './client/hooks/prepayments.js';
|
|
29
|
+
import './client/hooks/analytics.js';
|
|
30
|
+
import './client/hooks/avro.js';
|
|
31
|
+
import './client/hooks/teams.js';
|
|
32
|
+
import './client/hooks/labels.js';
|
|
33
|
+
import './client/hooks/groups.js';
|
|
34
|
+
import './client/hooks/skills.js';
|
|
35
|
+
import './client/hooks/proposal.js';
|
|
36
|
+
import './client/hooks/timecards.js';
|
|
37
|
+
import './client/hooks/waivers.js';
|
|
38
|
+
import './client/hooks/email.js';
|
|
39
|
+
export { defaultPassOnFeeMethod } from './billing/fees.js';
|
|
40
|
+
export { reverseGeocode } from './geocode.js';
|
|
41
|
+
export { fetchCensusFeatures } from './census.js';
|
|
42
|
+
export { LOCATION_STALE_MINUTES, LOCATION_RECENT_HOURS, isLocationRecent, REPORTING_STATUSES, locationAgeMinutes, isLocationStale, isReportingStatus, isMobileDevice, mobileDevices, userPresence, } from './presence.js';
|
|
43
|
+
export * from './types/api.js';
|
|
44
|
+
export * from './types/auth.js';
|
|
45
|
+
export * from './types/cache.js';
|
|
46
|
+
export * from './types/client.js';
|
|
47
|
+
export * from './types/error.js';
|
package/dist/presence.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Device, Location, LocationServicesStatus } from './types/api';
|
|
1
|
+
import type { Device, Location, LocationServicesStatus } from './types/api.js';
|
|
2
2
|
/**
|
|
3
3
|
* Statuses under which a device promises to keep pinging. Mirrors the
|
|
4
4
|
* backend's REPORTING_STATUSES: only these flip to APP_DEAD when the
|
package/dist/types/api/Avro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Email } from '
|
|
1
|
+
import { Email } from './Email.js';
|
|
2
2
|
export interface Avro {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
@@ -26,6 +26,77 @@ export interface StorageAnalytics {
|
|
|
26
26
|
/** Ordered by bytes, largest first. */
|
|
27
27
|
by_company: StorageByCompany[];
|
|
28
28
|
}
|
|
29
|
+
/** One gunicorn worker's SQLAlchemy pool and process stats. */
|
|
30
|
+
export interface PerformanceWorker {
|
|
31
|
+
/** `<hostname>:<pid>` of the worker process. */
|
|
32
|
+
worker: string;
|
|
33
|
+
/** Unix seconds when the worker last reported. */
|
|
34
|
+
time: number;
|
|
35
|
+
pool_size: number;
|
|
36
|
+
max_overflow: number;
|
|
37
|
+
checked_out: number;
|
|
38
|
+
checked_in: number;
|
|
39
|
+
overflow: number;
|
|
40
|
+
rss_bytes: number;
|
|
41
|
+
cpu_percent: number;
|
|
42
|
+
}
|
|
43
|
+
/** CPU/RAM of one machine running backend workers. */
|
|
44
|
+
export interface PerformanceHost {
|
|
45
|
+
host: string;
|
|
46
|
+
/** Unix seconds when the host last reported. */
|
|
47
|
+
time: number;
|
|
48
|
+
cpu_percent: number;
|
|
49
|
+
cpu_count: number;
|
|
50
|
+
load_avg: number;
|
|
51
|
+
memory_total_bytes: number;
|
|
52
|
+
memory_used_bytes: number;
|
|
53
|
+
memory_percent: number;
|
|
54
|
+
}
|
|
55
|
+
/** pg_stat_activity summary for the application database. */
|
|
56
|
+
export interface PerformanceDatabase {
|
|
57
|
+
/** Connection count and oldest age per state ("active", "idle", "idle in transaction", ...). */
|
|
58
|
+
states: Record<string, {
|
|
59
|
+
count: number;
|
|
60
|
+
max_age_seconds: number;
|
|
61
|
+
}>;
|
|
62
|
+
total: number;
|
|
63
|
+
idle_in_transaction: number;
|
|
64
|
+
max_connections: number;
|
|
65
|
+
}
|
|
66
|
+
/** Live per-worker and per-host stats aggregated across the fleet. */
|
|
67
|
+
export interface PerformanceFleet {
|
|
68
|
+
workers: PerformanceWorker[];
|
|
69
|
+
hosts: PerformanceHost[];
|
|
70
|
+
pool_in_use: number;
|
|
71
|
+
pool_capacity: number;
|
|
72
|
+
}
|
|
73
|
+
/** One point of performance history, recorded by the scheduler. */
|
|
74
|
+
export interface PerformanceSample {
|
|
75
|
+
/** Unix seconds when the sample was taken. */
|
|
76
|
+
time: number;
|
|
77
|
+
/** Connection count per pg_stat_activity state. */
|
|
78
|
+
connections: Record<string, number>;
|
|
79
|
+
total_connections: number;
|
|
80
|
+
idle_in_transaction: number;
|
|
81
|
+
max_connections: number;
|
|
82
|
+
pool_in_use: number;
|
|
83
|
+
pool_capacity: number;
|
|
84
|
+
worker_count: number;
|
|
85
|
+
hosts: {
|
|
86
|
+
host: string;
|
|
87
|
+
cpu_percent: number;
|
|
88
|
+
memory_percent: number;
|
|
89
|
+
}[];
|
|
90
|
+
}
|
|
91
|
+
/** Response of GET /avro/performance (root only). */
|
|
92
|
+
export interface PerformanceMetrics {
|
|
93
|
+
current: {
|
|
94
|
+
database: PerformanceDatabase;
|
|
95
|
+
fleet: PerformanceFleet;
|
|
96
|
+
};
|
|
97
|
+
/** Oldest first. */
|
|
98
|
+
samples: PerformanceSample[];
|
|
99
|
+
}
|
|
29
100
|
/** A crash or error reported by a client (app or web). */
|
|
30
101
|
export interface ClientErrorReport {
|
|
31
102
|
message: string;
|
package/dist/types/api/Bill.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BillPayment } from '
|
|
2
|
-
import { BillUser } from '
|
|
3
|
-
import { CustomLineItem } from '
|
|
4
|
-
import { LineItem } from '
|
|
5
|
-
import { PaymentType } from '
|
|
6
|
-
import { Refund } from '
|
|
7
|
-
import { ProcessingFeeLineItem } from '
|
|
1
|
+
import { BillPayment } from './BillPayment.js';
|
|
2
|
+
import { BillUser } from './BillUser.js';
|
|
3
|
+
import { CustomLineItem } from './CustomLineItem.js';
|
|
4
|
+
import { LineItem } from './LineItem.js';
|
|
5
|
+
import { PaymentType } from './PaymentType.js';
|
|
6
|
+
import { Refund } from './Refund.js';
|
|
7
|
+
import { ProcessingFeeLineItem } from './ProcessingFeeLineItem.js';
|
|
8
8
|
export type BillLineItem = CustomLineItem | ProcessingFeeLineItem;
|
|
9
9
|
export declare const BillStatus: {
|
|
10
10
|
readonly SENT: "SENT";
|
|
@@ -13,7 +13,7 @@ export declare const BillStatus: {
|
|
|
13
13
|
readonly MANUALLY_PAID: "MANUALLY_PAID";
|
|
14
14
|
};
|
|
15
15
|
export type BillStatus = (typeof BillStatus)[keyof typeof BillStatus];
|
|
16
|
-
declare module '
|
|
16
|
+
declare module './Bill.js' {
|
|
17
17
|
interface Bill {
|
|
18
18
|
id: string;
|
|
19
19
|
invoice_id: number;
|
package/dist/types/api/Bill.js
CHANGED
package/dist/types/api/Chat.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Bill } from '
|
|
2
|
-
import { Email } from '
|
|
3
|
-
import { Group } from '
|
|
4
|
-
import { Label } from '
|
|
5
|
-
import { PaymentMethod } from '
|
|
6
|
-
import { PaymentType } from '
|
|
7
|
-
import { Plan } from '
|
|
8
|
-
import { PlanPayment } from '
|
|
9
|
-
import { Session } from '
|
|
10
|
-
import { Skill } from '
|
|
11
|
-
import { CatalogItem } from '
|
|
1
|
+
import { Bill } from './Bill.js';
|
|
2
|
+
import { Email } from './Email.js';
|
|
3
|
+
import { Group } from './Group.js';
|
|
4
|
+
import { Label } from './Label.js';
|
|
5
|
+
import { PaymentMethod } from './PaymentMethod.js';
|
|
6
|
+
import { PaymentType } from './PaymentType.js';
|
|
7
|
+
import { Plan } from './Plan.js';
|
|
8
|
+
import { PlanPayment } from './PlanPayment.js';
|
|
9
|
+
import { Session } from './Session.js';
|
|
10
|
+
import { Skill } from './Skill.js';
|
|
11
|
+
import { CatalogItem } from './CatalogItem.js';
|
|
12
12
|
export interface Company {
|
|
13
13
|
id: string;
|
|
14
14
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _Event } from '
|
|
2
|
-
declare module '
|
|
1
|
+
import { _Event } from './_Event.js';
|
|
2
|
+
declare module './DelayEvent.js' {
|
|
3
3
|
interface DelayEvent extends _Event {
|
|
4
4
|
line_item_type: 'DELAY';
|
|
5
5
|
/** Seconds this delay added to each linked task's delay. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Location } from '
|
|
2
|
-
import { LocationServicesStatus } from '
|
|
1
|
+
import { Location } from '../api.js';
|
|
2
|
+
import { LocationServicesStatus } from './UserCompanyAssociation.js';
|
|
3
3
|
export declare const DevicePlatform: {
|
|
4
4
|
readonly IOS: "ios";
|
|
5
5
|
readonly ANDROID: "android";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { User } from '
|
|
1
|
+
import { User } from './User.js';
|
|
2
2
|
export interface Email {
|
|
3
3
|
id: string;
|
|
4
4
|
company_id: string;
|
|
@@ -14,8 +14,10 @@ export interface Email {
|
|
|
14
14
|
is_company_wide: boolean;
|
|
15
15
|
users: User[];
|
|
16
16
|
type: 'OUTLOOK' | 'SMTP' | 'GMAIL';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
/**
|
|
18
|
+
* False when an OAuth (Outlook/Gmail) account's grant was revoked or
|
|
19
|
+
* expired: sends fail until someone signs in again. Always true for
|
|
20
|
+
* SMTP accounts.
|
|
21
|
+
*/
|
|
22
|
+
connected: boolean;
|
|
21
23
|
}
|
package/dist/types/api/Job.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Task } from '
|
|
2
|
-
import { _Event } from '
|
|
3
|
-
import type { CheckIn } from '
|
|
4
|
-
import { RouteJob } from '
|
|
5
|
-
import { Subscription } from '
|
|
6
|
-
import { Route } from '
|
|
7
|
-
declare module '
|
|
1
|
+
import { Task } from './Task.js';
|
|
2
|
+
import { _Event } from './_Event.js';
|
|
3
|
+
import type { CheckIn } from '../api.js';
|
|
4
|
+
import { RouteJob } from './RouteJob.js';
|
|
5
|
+
import { Subscription } from './Subscription.js';
|
|
6
|
+
import { Route } from './Route.js';
|
|
7
|
+
declare module './Job.js' {
|
|
8
8
|
interface Job {
|
|
9
9
|
address: string;
|
|
10
10
|
company: string;
|
package/dist/types/api/Job.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Task, TaskStatus } from '
|
|
2
|
-
import { RouteJob } from '
|
|
1
|
+
import { Task, TaskStatus } from './Task.js';
|
|
2
|
+
import { RouteJob } from './RouteJob.js';
|
|
3
3
|
export class Job {
|
|
4
4
|
constructor(init) {
|
|
5
5
|
this.isOverdue = () => {
|
|
@@ -18,7 +18,7 @@ export declare const LineItemType: {
|
|
|
18
18
|
readonly PROCESSING_FEE: "PROCESSING_FEE";
|
|
19
19
|
};
|
|
20
20
|
export type LineItemType = (typeof LineItemType)[keyof typeof LineItemType];
|
|
21
|
-
declare module '
|
|
21
|
+
declare module './LineItem.js' {
|
|
22
22
|
interface LineItem {
|
|
23
23
|
id: string;
|
|
24
24
|
line_item_type: LineItemType;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** A recipient whose notification email could not be sent. */
|
|
2
|
+
export interface NotificationEmailError {
|
|
3
|
+
recipient: string;
|
|
4
|
+
msg: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Response of `POST /company/<id>/notification`.
|
|
8
|
+
*
|
|
9
|
+
* The notification (and any event photos) is saved even when emails
|
|
10
|
+
* fail; failed sends are listed in `email_errors` — e.g. when the
|
|
11
|
+
* sending Outlook/Gmail account must be reconnected.
|
|
12
|
+
*/
|
|
13
|
+
export interface NotificationCreated {
|
|
14
|
+
msg: string;
|
|
15
|
+
id: string;
|
|
16
|
+
email_errors: NotificationEmailError[];
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RouteJob } from '
|
|
2
|
-
import type { Job } from '
|
|
1
|
+
import { RouteJob } from './RouteJob.js';
|
|
2
|
+
import type { Job } from './Job.js';
|
|
3
3
|
export declare const FrequencyType: {
|
|
4
4
|
readonly ONCE: "ONCE";
|
|
5
5
|
readonly DAILY: "DAILY";
|
|
@@ -9,7 +9,7 @@ export declare const FrequencyType: {
|
|
|
9
9
|
readonly YEARLY: "YEARLY";
|
|
10
10
|
};
|
|
11
11
|
export type FrequencyType = (typeof FrequencyType)[keyof typeof FrequencyType];
|
|
12
|
-
declare module '
|
|
12
|
+
declare module './Route.js' {
|
|
13
13
|
interface Route {
|
|
14
14
|
company: string;
|
|
15
15
|
id: string;
|
package/dist/types/api/Route.js
CHANGED