@go-avro/avro-js 0.0.4-beta.3 → 0.0.4-beta.31
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/client/QueryClient.d.ts +55 -2
- package/dist/client/QueryClient.js +29 -7
- package/dist/client/hooks/catalog_items.js +8 -1
- package/dist/client/hooks/jobs.js +7 -3
- package/dist/client/hooks/prepayments.js +60 -1
- package/dist/client/hooks/proposal.js +8 -1
- package/dist/client/hooks/routes.js +13 -8
- package/dist/client/hooks/users.js +15 -1
- package/dist/client/hooks/waivers.d.ts +1 -0
- package/dist/client/hooks/waivers.js +123 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/types/api/AdditionalCharge.d.ts +5 -0
- package/dist/types/api/AdditionalCharge.js +1 -0
- package/dist/types/api/Avro.d.ts +11 -0
- package/dist/types/api/Avro.js +1 -0
- package/dist/types/api/Bill.d.ts +27 -0
- package/dist/types/api/Bill.js +1 -0
- package/dist/types/api/BillPayment.d.ts +13 -0
- package/dist/types/api/BillPayment.js +1 -0
- package/dist/types/api/BillUser.d.ts +11 -0
- package/dist/types/api/BillUser.js +1 -0
- package/dist/types/api/Break.d.ts +7 -0
- package/dist/types/api/Break.js +1 -0
- package/dist/types/api/CatalogItem.d.ts +16 -0
- package/dist/types/api/CatalogItem.js +1 -0
- package/dist/types/api/Chat.d.ts +12 -0
- package/dist/types/api/Chat.js +1 -0
- package/dist/types/api/Company.d.ts +58 -0
- package/dist/types/api/Company.js +1 -0
- package/dist/types/api/CustomLineItem.d.ts +4 -0
- package/dist/types/api/CustomLineItem.js +1 -0
- package/dist/types/api/Email.d.ts +21 -0
- package/dist/types/api/Email.js +1 -0
- package/dist/types/api/Friendship.d.ts +2 -0
- package/dist/types/api/Friendship.js +1 -0
- package/dist/types/api/Group.d.ts +12 -0
- package/dist/types/api/Group.js +1 -0
- package/dist/types/api/Job.d.ts +36 -0
- package/dist/types/api/Job.js +22 -0
- package/dist/types/api/Label.d.ts +7 -0
- package/dist/types/api/Label.js +1 -0
- package/dist/types/api/LineItem.d.ts +41 -0
- package/dist/types/api/LineItem.js +30 -0
- package/dist/types/api/MemberState.d.ts +7 -0
- package/dist/types/api/MemberState.js +1 -0
- package/dist/types/api/Message.d.ts +13 -0
- package/dist/types/api/Message.js +1 -0
- package/dist/types/api/PaymentMethod.d.ts +51 -0
- package/dist/types/api/PaymentMethod.js +1 -0
- package/dist/types/api/PaymentOption.d.ts +9 -0
- package/dist/types/api/PaymentOption.js +1 -0
- package/dist/types/api/PaymentType.d.ts +5 -0
- package/dist/types/api/PaymentType.js +5 -0
- package/dist/types/api/Plan.d.ts +13 -0
- package/dist/types/api/Plan.js +1 -0
- package/dist/types/api/PlanPayment.d.ts +10 -0
- package/dist/types/api/PlanPayment.js +1 -0
- package/dist/types/api/Prepayment.d.ts +15 -0
- package/dist/types/api/Prepayment.js +7 -0
- package/dist/types/api/Reaction.d.ts +8 -0
- package/dist/types/api/Reaction.js +1 -0
- package/dist/types/api/Route.d.ts +37 -0
- package/dist/types/api/Route.js +82 -0
- package/dist/types/api/RouteJob.d.ts +15 -0
- package/dist/types/api/RouteJob.js +5 -0
- package/dist/types/api/ServiceMonth.d.ts +7 -0
- package/dist/types/api/ServiceMonth.js +1 -0
- package/dist/types/api/Session.d.ts +13 -0
- package/dist/types/api/Session.js +1 -0
- package/dist/types/api/Skill.d.ts +7 -0
- package/dist/types/api/Skill.js +1 -0
- package/dist/types/api/Subscription.d.ts +8 -0
- package/dist/types/api/Subscription.js +1 -0
- package/dist/types/api/Task.d.ts +57 -0
- package/dist/types/api/Task.js +74 -0
- package/dist/types/api/User.d.ts +23 -0
- package/dist/types/api/User.js +1 -0
- package/dist/types/api/UserCompanyAssociation.d.ts +71 -0
- package/dist/types/api/UserCompanyAssociation.js +53 -0
- package/dist/types/api/UserEvent.d.ts +13 -0
- package/dist/types/api/UserEvent.js +1 -0
- package/dist/types/api/Waiver.d.ts +9 -0
- package/dist/types/api/Waiver.js +1 -0
- package/dist/types/api/_Event.d.ts +19 -0
- package/dist/types/api/_Event.js +1 -0
- package/dist/types/api.d.ts +43 -587
- package/dist/types/api.js +37 -74
- package/dist/types/cache.d.ts +2 -2
- package/package.json +1 -1
package/dist/types/api.js
CHANGED
|
@@ -1,78 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
export * from "../types/api/_Event";
|
|
2
|
+
export * from "../types/api/AdditionalCharge";
|
|
3
|
+
export * from "../types/api/Avro";
|
|
4
|
+
export * from "../types/api/Bill";
|
|
5
|
+
export * from "../types/api/BillPayment";
|
|
6
|
+
export * from "../types/api/BillUser";
|
|
7
|
+
export * from "../types/api/Break";
|
|
8
|
+
export * from "../types/api/CatalogItem";
|
|
9
|
+
export * from "../types/api/Chat";
|
|
10
|
+
export * from "../types/api/Company";
|
|
11
|
+
export * from "../types/api/CustomLineItem";
|
|
12
|
+
export * from "../types/api/Email";
|
|
13
|
+
export * from "../types/api/Friendship";
|
|
14
|
+
export * from "../types/api/Group";
|
|
15
|
+
export * from "../types/api/Job";
|
|
16
|
+
export * from "../types/api/Label";
|
|
17
|
+
export * from "../types/api/LineItem";
|
|
18
|
+
export * from "../types/api/MemberState";
|
|
19
|
+
export * from "../types/api/Message";
|
|
20
|
+
export * from "../types/api/PaymentMethod";
|
|
21
|
+
export * from "../types/api/PaymentOption";
|
|
22
|
+
export * from "../types/api/PaymentType";
|
|
23
|
+
export * from "../types/api/Plan";
|
|
24
|
+
export * from "../types/api/PlanPayment";
|
|
25
|
+
export * from "../types/api/Prepayment";
|
|
26
|
+
export * from "../types/api/Reaction";
|
|
27
|
+
export * from "../types/api/Route";
|
|
28
|
+
export * from "../types/api/RouteJob";
|
|
29
|
+
export * from "../types/api/ServiceMonth";
|
|
30
|
+
export * from "../types/api/Session";
|
|
31
|
+
export * from "../types/api/Skill";
|
|
32
|
+
export * from "../types/api/Subscription";
|
|
33
|
+
export * from "../types/api/Task";
|
|
34
|
+
export * from "../types/api/User";
|
|
35
|
+
export * from "../types/api/UserCompanyAssociation";
|
|
36
|
+
export * from "../types/api/UserEvent";
|
|
37
|
+
export * from "../types/api/Waiver";
|
|
28
38
|
export const LoginResponse = {
|
|
29
39
|
SUCCESS: "SUCCESS",
|
|
30
40
|
NEEDS_TOTP: "NEEDS_TOTP",
|
|
31
41
|
};
|
|
32
|
-
export const Permission = {
|
|
33
|
-
CAN_WRITE_COMPANY: "can_write_company",
|
|
34
|
-
CAN_READ_GROUPS: "can_read_groups",
|
|
35
|
-
CAN_WRITE_PROPOSALS: "can_write_proposals",
|
|
36
|
-
CAN_READ_PROPOSALS: "can_read_proposals",
|
|
37
|
-
CAN_WRITE_GROUPS: "can_write_groups",
|
|
38
|
-
CAN_WRITE_ROUTES: "can_write_routes",
|
|
39
|
-
CAN_WRITE_SUBSCRIPTIONS: "can_write_subscriptions",
|
|
40
|
-
CAN_READ_SUBSCRIPTIONS: "can_read_subscriptions",
|
|
41
|
-
CAN_WRITE_TEAMS: "can_write_teams",
|
|
42
|
-
CAN_WRITE_JOBS: "can_write_jobs",
|
|
43
|
-
CAN_WRITE_TASKS: "can_write_tasks",
|
|
44
|
-
CAN_WRITE_ITEMS: "can_write_items",
|
|
45
|
-
CAN_WRITE_SKILLS: "can_write_skills",
|
|
46
|
-
CAN_WRITE_EMAILS: "can_write_emails",
|
|
47
|
-
CAN_WRITE_OTHERS_SESSIONS: "can_write_others_sessions",
|
|
48
|
-
CAN_READ_OTHERS_SESSIONS: "can_read_others_sessions",
|
|
49
|
-
CAN_READ_SESSIONS: "can_read_sessions",
|
|
50
|
-
CAN_WRITE_LABELS: "can_write_labels",
|
|
51
|
-
CAN_READ_LABELS: "can_read_labels",
|
|
52
|
-
CAN_READ_ROUTES: "can_read_routes",
|
|
53
|
-
CAN_READ_TEAMS: "can_read_teams",
|
|
54
|
-
CAN_READ_JOBS: "can_read_jobs",
|
|
55
|
-
CAN_WRITE_EVENTS: "can_write_events",
|
|
56
|
-
CAN_READ_TASKS: "can_read_tasks",
|
|
57
|
-
CAN_READ_ITEMS: "can_read_items",
|
|
58
|
-
CAN_READ_SKILLS: "can_read_skills",
|
|
59
|
-
CAN_WRITE_SESSIONS: "can_write_sessions",
|
|
60
|
-
CAN_READ_EMAILS: "can_read_emails",
|
|
61
|
-
CAN_WRITE_SMS: "can_write_sms",
|
|
62
|
-
CAN_READ_SMS: "can_read_sms",
|
|
63
|
-
CAN_WRITE_NOTIFICATIONS: "can_write_notifications",
|
|
64
|
-
CAN_READ_EVENTS: "can_read_events",
|
|
65
|
-
CAN_READ_MONTHS: "can_read_months",
|
|
66
|
-
CAN_WRITE_MONTHS: "can_write_months",
|
|
67
|
-
CAN_WRITE_BILLS: "can_write_bills",
|
|
68
|
-
CAN_READ_BILLS: "can_read_bills",
|
|
69
|
-
CAN_OPTIMIZE: "can_optimize",
|
|
70
|
-
CAN_READ_COMPANY: "can_read_company",
|
|
71
|
-
CAN_WRITE_OTHERS_TIMECARDS: "can_write_others_timecards",
|
|
72
|
-
CAN_READ_OTHERS_TIMECARDS: "can_read_others_timecards",
|
|
73
|
-
CAN_WRITE_TIMECARDS: "can_write_timecards",
|
|
74
|
-
CAN_READ_TIMECARDS: "can_read_timecards",
|
|
75
|
-
CAN_APPROVE_TIME_OFF: "can_approve_time_off",
|
|
76
|
-
IS_ROOT: "is_root",
|
|
77
|
-
IS_CUSTOMER: "is_customer",
|
|
78
|
-
};
|
package/dist/types/cache.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export interface CacheData extends Tokens {
|
|
|
3
3
|
companyId: string;
|
|
4
4
|
}
|
|
5
5
|
export interface Cache {
|
|
6
|
-
get(key?: keyof CacheData): Promise<CacheData | string | null>;
|
|
7
|
-
set(data: Partial<CacheData>): Promise<void>;
|
|
6
|
+
get(key?: keyof CacheData | string): Promise<CacheData | string | null>;
|
|
7
|
+
set(data: Partial<CacheData> | Object): Promise<void>;
|
|
8
8
|
clear(): Promise<void>;
|
|
9
9
|
}
|