@go-avro/avro-js 0.1.5 → 0.1.7

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.
Files changed (90) hide show
  1. package/dist/auth/AuthManager.d.ts +2 -2
  2. package/dist/auth/AuthManager.js +2 -2
  3. package/dist/auth/storage.d.ts +1 -1
  4. package/dist/billing/fees.d.ts +1 -1
  5. package/dist/billing/fees.js +1 -1
  6. package/dist/census.d.ts +1 -1
  7. package/dist/client/AvroQueryClientProvider.d.ts +1 -1
  8. package/dist/client/QueryClient.d.ts +17 -11
  9. package/dist/client/QueryClient.js +57 -26
  10. package/dist/client/core/fetch.js +4 -4
  11. package/dist/client/core/utils.js +1 -1
  12. package/dist/client/core/xhr.js +4 -4
  13. package/dist/client/hooks/address.js +1 -1
  14. package/dist/client/hooks/analytics.js +1 -1
  15. package/dist/client/hooks/audit.js +1 -1
  16. package/dist/client/hooks/avro.js +9 -1
  17. package/dist/client/hooks/bills.js +3 -3
  18. package/dist/client/hooks/catalog_items.js +1 -1
  19. package/dist/client/hooks/chats.js +2 -2
  20. package/dist/client/hooks/checkins.js +1 -1
  21. package/dist/client/hooks/companies.js +3 -3
  22. package/dist/client/hooks/devices.js +1 -1
  23. package/dist/client/hooks/email.d.ts +1 -1
  24. package/dist/client/hooks/email.js +1 -1
  25. package/dist/client/hooks/events.js +3 -3
  26. package/dist/client/hooks/groups.js +2 -2
  27. package/dist/client/hooks/jobs.js +3 -3
  28. package/dist/client/hooks/labels.js +2 -2
  29. package/dist/client/hooks/messages.js +2 -2
  30. package/dist/client/hooks/months.js +3 -3
  31. package/dist/client/hooks/payouts.js +2 -2
  32. package/dist/client/hooks/plans.js +1 -1
  33. package/dist/client/hooks/prepayments.js +3 -3
  34. package/dist/client/hooks/proposal.js +2 -2
  35. package/dist/client/hooks/root.js +1 -1
  36. package/dist/client/hooks/routes.js +3 -3
  37. package/dist/client/hooks/sessions.js +3 -3
  38. package/dist/client/hooks/skills.js +2 -2
  39. package/dist/client/hooks/teams.js +2 -2
  40. package/dist/client/hooks/timecards.js +1 -1
  41. package/dist/client/hooks/users.js +7 -3
  42. package/dist/client/hooks/waivers.js +2 -2
  43. package/dist/client/persist.js +9 -3
  44. package/dist/client/realtime.d.ts +2 -2
  45. package/dist/client/realtime.js +4 -2
  46. package/dist/index.d.ts +52 -52
  47. package/dist/index.js +47 -47
  48. package/dist/presence.d.ts +1 -1
  49. package/dist/types/api/AdditionalCharge.d.ts +1 -1
  50. package/dist/types/api/Avro.d.ts +72 -1
  51. package/dist/types/api/Bill.d.ts +8 -8
  52. package/dist/types/api/Bill.js +1 -1
  53. package/dist/types/api/BillUser.d.ts +1 -1
  54. package/dist/types/api/CatalogItem.d.ts +1 -1
  55. package/dist/types/api/Chat.d.ts +2 -2
  56. package/dist/types/api/Company.d.ts +11 -11
  57. package/dist/types/api/CustomLineItem.d.ts +1 -1
  58. package/dist/types/api/DelayEvent.d.ts +2 -2
  59. package/dist/types/api/DelayEvent.js +1 -1
  60. package/dist/types/api/Device.d.ts +2 -2
  61. package/dist/types/api/Email.d.ts +1 -1
  62. package/dist/types/api/Group.d.ts +1 -1
  63. package/dist/types/api/Job.d.ts +7 -7
  64. package/dist/types/api/Job.js +2 -2
  65. package/dist/types/api/LineItem.d.ts +1 -1
  66. package/dist/types/api/MemberState.d.ts +1 -1
  67. package/dist/types/api/Message.d.ts +1 -1
  68. package/dist/types/api/PaymentMethod.d.ts +1 -1
  69. package/dist/types/api/Payout.d.ts +1 -1
  70. package/dist/types/api/Prepayment.d.ts +2 -2
  71. package/dist/types/api/Prepayment.js +1 -1
  72. package/dist/types/api/ProcessingFeeLineItem.d.ts +1 -1
  73. package/dist/types/api/Route.d.ts +3 -3
  74. package/dist/types/api/Route.js +1 -1
  75. package/dist/types/api/RouteJob.d.ts +1 -1
  76. package/dist/types/api/ServiceMonth.d.ts +1 -1
  77. package/dist/types/api/Session.d.ts +2 -2
  78. package/dist/types/api/Task.d.ts +6 -6
  79. package/dist/types/api/Task.js +1 -1
  80. package/dist/types/api/Timecard.d.ts +1 -1
  81. package/dist/types/api/User.d.ts +6 -6
  82. package/dist/types/api/UserCompanyAssociation.d.ts +2 -2
  83. package/dist/types/api/_Event.d.ts +4 -4
  84. package/dist/types/api/_Event.js +1 -1
  85. package/dist/types/api.d.ts +49 -49
  86. package/dist/types/api.js +47 -47
  87. package/dist/types/cache.d.ts +1 -1
  88. package/dist/version.d.ts +1 -1
  89. package/dist/version.js +1 -1
  90. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { UserCompanyAssociation } from '../../types/api/UserCompanyAssociation';
2
- import { Prepayment } from '../../types/api/Prepayment';
3
- import { PaymentOption } from '../../types/api/PaymentOption';
4
- import { _Event } from '../../types/api/_Event';
5
- import { Route } from '../../types/api/Route';
1
+ import { UserCompanyAssociation } from './UserCompanyAssociation.js';
2
+ import { Prepayment } from './Prepayment.js';
3
+ import { PaymentOption } from './PaymentOption.js';
4
+ import { _Event } from './_Event.js';
5
+ import { Route } from './Route.js';
6
6
  export declare const TaskStatus: {
7
7
  readonly PENDING_CUSTOMER: "PENDING_CUSTOMER";
8
8
  readonly PENDING_COMPANY: "PENDING_COMPANY";
@@ -28,7 +28,7 @@ export declare const UnroutedReason: {
28
28
  };
29
29
  export type UnroutedReason = (typeof UnroutedReason)[keyof typeof UnroutedReason];
30
30
  export declare const UNROUTED_REASON_LABELS: Record<UnroutedReason, string>;
31
- declare module '../../types/api/Task' {
31
+ declare module './Task.js' {
32
32
  interface Task {
33
33
  enforce_image_amount: boolean;
34
34
  events: _Event[];
@@ -1,4 +1,4 @@
1
- import { Prepayment } from '../../types/api/Prepayment';
1
+ import { Prepayment } from './Prepayment.js';
2
2
  export const TaskStatus = {
3
3
  PENDING_CUSTOMER: 'PENDING_CUSTOMER',
4
4
  PENDING_COMPANY: 'PENDING_COMPANY',
@@ -1,4 +1,4 @@
1
- import { TimecardAction } from '../../types/api/TimecardAction';
1
+ import { TimecardAction } from './TimecardAction.js';
2
2
  export declare const TimecardStatus: {
3
3
  readonly OPEN: "open";
4
4
  readonly PENDING: "pending";
@@ -1,9 +1,9 @@
1
- import { BillUser } from '../../types/api/BillUser';
2
- import { Device } from '../../types/api/Device';
3
- import { Chat } from '../../types/api/Chat';
4
- import { PaymentMethod } from '../../types/api/PaymentMethod';
5
- import { PaymentType } from '../../types/api/PaymentType';
6
- import { NotificationLevel } from '../../types/api/UserCompanyAssociation';
1
+ import { BillUser } from './BillUser.js';
2
+ import { Device } from './Device.js';
3
+ import { Chat } from './Chat.js';
4
+ import { PaymentMethod } from './PaymentMethod.js';
5
+ import { PaymentType } from './PaymentType.js';
6
+ import { NotificationLevel } from './UserCompanyAssociation.js';
7
7
  export interface User {
8
8
  id: string;
9
9
  username: string;
@@ -1,5 +1,5 @@
1
- import { User } from '../../types/api/User';
2
- import { Location } from '../../types/api';
1
+ import { User } from './User.js';
2
+ import { Location } from '../api.js';
3
3
  export declare const Permission: {
4
4
  readonly CAN_WRITE_COMPANY: "can_write_company";
5
5
  readonly CAN_READ_GROUPS: "can_read_groups";
@@ -1,7 +1,7 @@
1
- import { LineItem } from '../../types/api/LineItem';
2
- import { AdditionalCharge } from '../../types/api/AdditionalCharge';
3
- import { UserEvent } from '../../types/api/UserEvent';
4
- declare module '../../types/api/_Event' {
1
+ import { LineItem } from './LineItem.js';
2
+ import { AdditionalCharge } from './AdditionalCharge.js';
3
+ import { UserEvent } from './UserEvent.js';
4
+ declare module './_Event.js' {
5
5
  interface _Event extends LineItem {
6
6
  breaks: string[];
7
7
  line_item_type: 'EVENT' | 'DELAY';
@@ -1,4 +1,4 @@
1
- import { LineItem } from '../../types/api/LineItem';
1
+ import { LineItem } from './LineItem.js';
2
2
  export class _Event extends LineItem {
3
3
  constructor(init) {
4
4
  super(init);
@@ -1,53 +1,53 @@
1
1
  import { FrequencyType } from '..';
2
- import { _Event } from '../types/api/_Event';
3
- import { Route } from '../types/api/Route';
4
- export * from '../types/api/_Event';
5
- export * from '../types/api/AdditionalCharge';
6
- export * from '../types/api/DelayEvent';
7
- export * from '../types/api/Device';
8
- export * from '../types/api/Address';
9
- export * from '../types/api/Avro';
10
- export * from '../types/api/AuditLog';
11
- export * from '../types/api/Bill';
12
- export * from '../types/api/BillPayment';
13
- export * from '../types/api/Refund';
14
- export * from '../types/api/BillUser';
15
- export * from '../types/api/Break';
16
- export * from '../types/api/CatalogItem';
17
- export * from '../types/api/Chat';
18
- export * from '../types/api/Company';
19
- export * from '../types/api/CustomLineItem';
20
- export * from '../types/api/Email';
21
- export * from '../types/api/EmailNotification';
22
- export * from '../types/api/Friendship';
23
- export * from '../types/api/Group';
24
- export * from '../types/api/Job';
25
- export * from '../types/api/Label';
26
- export * from '../types/api/LineItem';
27
- export * from '../types/api/MemberState';
28
- export * from '../types/api/Message';
29
- export * from '../types/api/PaymentMethod';
30
- export * from '../types/api/PaymentOption';
31
- export * from '../types/api/PaymentType';
32
- export * from '../types/api/Payout';
33
- export * from '../types/api/Plan';
34
- export * from '../types/api/PlanPayment';
35
- export * from '../types/api/Prepayment';
36
- export * from '../types/api/ProcessingFeeLineItem';
37
- export * from '../types/api/Reaction';
38
- export * from '../types/api/Route';
39
- export * from '../types/api/RouteJob';
40
- export * from '../types/api/ServiceMonth';
41
- export * from '../types/api/Session';
42
- export * from '../types/api/Skill';
43
- export * from '../types/api/Subscription';
44
- export * from '../types/api/Task';
45
- export * from '../types/api/Timecard';
46
- export * from '../types/api/TimecardAction';
47
- export * from '../types/api/User';
48
- export * from '../types/api/UserCompanyAssociation';
49
- export * from '../types/api/UserEvent';
50
- export * from '../types/api/Waiver';
2
+ import { _Event } from './api/_Event.js';
3
+ import { Route } from './api/Route.js';
4
+ export * from './api/_Event.js';
5
+ export * from './api/AdditionalCharge.js';
6
+ export * from './api/DelayEvent.js';
7
+ export * from './api/Device.js';
8
+ export * from './api/Address.js';
9
+ export * from './api/Avro.js';
10
+ export * from './api/AuditLog.js';
11
+ export * from './api/Bill.js';
12
+ export * from './api/BillPayment.js';
13
+ export * from './api/Refund.js';
14
+ export * from './api/BillUser.js';
15
+ export * from './api/Break.js';
16
+ export * from './api/CatalogItem.js';
17
+ export * from './api/Chat.js';
18
+ export * from './api/Company.js';
19
+ export * from './api/CustomLineItem.js';
20
+ export * from './api/Email.js';
21
+ export * from './api/EmailNotification.js';
22
+ export * from './api/Friendship.js';
23
+ export * from './api/Group.js';
24
+ export * from './api/Job.js';
25
+ export * from './api/Label.js';
26
+ export * from './api/LineItem.js';
27
+ export * from './api/MemberState.js';
28
+ export * from './api/Message.js';
29
+ export * from './api/PaymentMethod.js';
30
+ export * from './api/PaymentOption.js';
31
+ export * from './api/PaymentType.js';
32
+ export * from './api/Payout.js';
33
+ export * from './api/Plan.js';
34
+ export * from './api/PlanPayment.js';
35
+ export * from './api/Prepayment.js';
36
+ export * from './api/ProcessingFeeLineItem.js';
37
+ export * from './api/Reaction.js';
38
+ export * from './api/Route.js';
39
+ export * from './api/RouteJob.js';
40
+ export * from './api/ServiceMonth.js';
41
+ export * from './api/Session.js';
42
+ export * from './api/Skill.js';
43
+ export * from './api/Subscription.js';
44
+ export * from './api/Task.js';
45
+ export * from './api/Timecard.js';
46
+ export * from './api/TimecardAction.js';
47
+ export * from './api/User.js';
48
+ export * from './api/UserCompanyAssociation.js';
49
+ export * from './api/UserEvent.js';
50
+ export * from './api/Waiver.js';
51
51
  export declare const LoginResponse: {
52
52
  readonly SUCCESS: "SUCCESS";
53
53
  readonly NEEDS_TOTP: "NEEDS_TOTP";
package/dist/types/api.js CHANGED
@@ -1,50 +1,50 @@
1
- export * from '../types/api/_Event';
2
- export * from '../types/api/AdditionalCharge';
3
- export * from '../types/api/DelayEvent';
4
- export * from '../types/api/Device';
5
- export * from '../types/api/Address';
6
- export * from '../types/api/Avro';
7
- export * from '../types/api/AuditLog';
8
- export * from '../types/api/Bill';
9
- export * from '../types/api/BillPayment';
10
- export * from '../types/api/Refund';
11
- export * from '../types/api/BillUser';
12
- export * from '../types/api/Break';
13
- export * from '../types/api/CatalogItem';
14
- export * from '../types/api/Chat';
15
- export * from '../types/api/Company';
16
- export * from '../types/api/CustomLineItem';
17
- export * from '../types/api/Email';
18
- export * from '../types/api/EmailNotification';
19
- export * from '../types/api/Friendship';
20
- export * from '../types/api/Group';
21
- export * from '../types/api/Job';
22
- export * from '../types/api/Label';
23
- export * from '../types/api/LineItem';
24
- export * from '../types/api/MemberState';
25
- export * from '../types/api/Message';
26
- export * from '../types/api/PaymentMethod';
27
- export * from '../types/api/PaymentOption';
28
- export * from '../types/api/PaymentType';
29
- export * from '../types/api/Payout';
30
- export * from '../types/api/Plan';
31
- export * from '../types/api/PlanPayment';
32
- export * from '../types/api/Prepayment';
33
- export * from '../types/api/ProcessingFeeLineItem';
34
- export * from '../types/api/Reaction';
35
- export * from '../types/api/Route';
36
- export * from '../types/api/RouteJob';
37
- export * from '../types/api/ServiceMonth';
38
- export * from '../types/api/Session';
39
- export * from '../types/api/Skill';
40
- export * from '../types/api/Subscription';
41
- export * from '../types/api/Task';
42
- export * from '../types/api/Timecard';
43
- export * from '../types/api/TimecardAction';
44
- export * from '../types/api/User';
45
- export * from '../types/api/UserCompanyAssociation';
46
- export * from '../types/api/UserEvent';
47
- export * from '../types/api/Waiver';
1
+ export * from './api/_Event.js';
2
+ export * from './api/AdditionalCharge.js';
3
+ export * from './api/DelayEvent.js';
4
+ export * from './api/Device.js';
5
+ export * from './api/Address.js';
6
+ export * from './api/Avro.js';
7
+ export * from './api/AuditLog.js';
8
+ export * from './api/Bill.js';
9
+ export * from './api/BillPayment.js';
10
+ export * from './api/Refund.js';
11
+ export * from './api/BillUser.js';
12
+ export * from './api/Break.js';
13
+ export * from './api/CatalogItem.js';
14
+ export * from './api/Chat.js';
15
+ export * from './api/Company.js';
16
+ export * from './api/CustomLineItem.js';
17
+ export * from './api/Email.js';
18
+ export * from './api/EmailNotification.js';
19
+ export * from './api/Friendship.js';
20
+ export * from './api/Group.js';
21
+ export * from './api/Job.js';
22
+ export * from './api/Label.js';
23
+ export * from './api/LineItem.js';
24
+ export * from './api/MemberState.js';
25
+ export * from './api/Message.js';
26
+ export * from './api/PaymentMethod.js';
27
+ export * from './api/PaymentOption.js';
28
+ export * from './api/PaymentType.js';
29
+ export * from './api/Payout.js';
30
+ export * from './api/Plan.js';
31
+ export * from './api/PlanPayment.js';
32
+ export * from './api/Prepayment.js';
33
+ export * from './api/ProcessingFeeLineItem.js';
34
+ export * from './api/Reaction.js';
35
+ export * from './api/Route.js';
36
+ export * from './api/RouteJob.js';
37
+ export * from './api/ServiceMonth.js';
38
+ export * from './api/Session.js';
39
+ export * from './api/Skill.js';
40
+ export * from './api/Subscription.js';
41
+ export * from './api/Task.js';
42
+ export * from './api/Timecard.js';
43
+ export * from './api/TimecardAction.js';
44
+ export * from './api/User.js';
45
+ export * from './api/UserCompanyAssociation.js';
46
+ export * from './api/UserEvent.js';
47
+ export * from './api/Waiver.js';
48
48
  export const LoginResponse = {
49
49
  SUCCESS: 'SUCCESS',
50
50
  NEEDS_TOTP: 'NEEDS_TOTP',
@@ -1,4 +1,4 @@
1
- import { Tokens } from '../types/auth';
1
+ import { Tokens } from './auth.js';
2
2
  export interface CacheData extends Tokens {
3
3
  companyId: string;
4
4
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const AVRO_JS_VERSION = "0.1.5";
1
+ export declare const AVRO_JS_VERSION = "0.1.7";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED by scripts/gen-version.js — do not edit by hand.
2
2
  // Regenerated from package.json by the `prebuild` npm hook.
3
- export const AVRO_JS_VERSION = '0.1.5';
3
+ export const AVRO_JS_VERSION = '0.1.7';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",