@go-avro/avro-js 0.0.2-beta.159 → 0.0.2-beta.160
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/types/api.d.ts +51 -3
- package/dist/types/api.js +47 -0
- package/package.json +1 -1
package/dist/types/api.d.ts
CHANGED
|
@@ -287,7 +287,7 @@ export interface Group {
|
|
|
287
287
|
is_active: boolean;
|
|
288
288
|
is_user_type: boolean;
|
|
289
289
|
users: string[];
|
|
290
|
-
permissions:
|
|
290
|
+
permissions: Permissions[];
|
|
291
291
|
company_id: string;
|
|
292
292
|
time_created: number;
|
|
293
293
|
time_updated: number;
|
|
@@ -304,12 +304,60 @@ export declare const LoginResponse: {
|
|
|
304
304
|
readonly NEEDS_TOTP: "NEEDS_TOTP";
|
|
305
305
|
};
|
|
306
306
|
export type LoginResponse = typeof LoginResponse[keyof typeof LoginResponse];
|
|
307
|
+
export declare const Permissions: {
|
|
308
|
+
readonly CAN_WRITE_COMPANY: "can_write_company";
|
|
309
|
+
readonly CAN_READ_GROUPS: "can_read_groups";
|
|
310
|
+
readonly CAN_WRITE_PROPOSALS: "can_write_proposals";
|
|
311
|
+
readonly CAN_READ_PROPOSALS: "can_read_proposals";
|
|
312
|
+
readonly CAN_WRITE_GROUPS: "can_write_groups";
|
|
313
|
+
readonly CAN_WRITE_ROUTES: "can_write_routes";
|
|
314
|
+
readonly CAN_WRITE_SUBSCRIPTIONS: "can_write_subscriptions";
|
|
315
|
+
readonly CAN_READ_SUBSCRIPTIONS: "can_read_subscriptions";
|
|
316
|
+
readonly CAN_WRITE_TEAMS: "can_write_teams";
|
|
317
|
+
readonly CAN_WRITE_JOBS: "can_write_jobs";
|
|
318
|
+
readonly CAN_WRITE_TASKS: "can_write_tasks";
|
|
319
|
+
readonly CAN_WRITE_ITEMS: "can_write_items";
|
|
320
|
+
readonly CAN_WRITE_SKILLS: "can_write_skills";
|
|
321
|
+
readonly CAN_WRITE_EMAILS: "can_write_emails";
|
|
322
|
+
readonly CAN_WRITE_OTHERS_SESSIONS: "can_write_others_sessions";
|
|
323
|
+
readonly CAN_READ_OTHERS_SESSIONS: "can_read_others_sessions";
|
|
324
|
+
readonly CAN_READ_SESSIONS: "can_read_sessions";
|
|
325
|
+
readonly CAN_WRITE_LABELS: "can_write_labels";
|
|
326
|
+
readonly CAN_READ_LABELS: "can_read_labels";
|
|
327
|
+
readonly CAN_READ_ROUTES: "can_read_routes";
|
|
328
|
+
readonly CAN_READ_TEAMS: "can_read_teams";
|
|
329
|
+
readonly CAN_READ_JOBS: "can_read_jobs";
|
|
330
|
+
readonly CAN_WRITE_EVENTS: "can_write_events";
|
|
331
|
+
readonly CAN_READ_TASKS: "can_read_tasks";
|
|
332
|
+
readonly CAN_READ_ITEMS: "can_read_items";
|
|
333
|
+
readonly CAN_READ_SKILLS: "can_read_skills";
|
|
334
|
+
readonly CAN_WRITE_SESSIONS: "can_write_sessions";
|
|
335
|
+
readonly CAN_READ_EMAILS: "can_read_emails";
|
|
336
|
+
readonly CAN_WRITE_SMS: "can_write_sms";
|
|
337
|
+
readonly CAN_READ_SMS: "can_read_sms";
|
|
338
|
+
readonly CAN_WRITE_NOTIFICATIONS: "can_write_notifications";
|
|
339
|
+
readonly CAN_READ_EVENTS: "can_read_events";
|
|
340
|
+
readonly CAN_READ_MONTHS: "can_read_months";
|
|
341
|
+
readonly CAN_WRITE_MONTHS: "can_write_months";
|
|
342
|
+
readonly CAN_WRITE_BILLS: "can_write_bills";
|
|
343
|
+
readonly CAN_READ_BILLS: "can_read_bills";
|
|
344
|
+
readonly CAN_OPTIMIZE: "can_optimize";
|
|
345
|
+
readonly CAN_READ_COMPANY: "can_read_company";
|
|
346
|
+
readonly CAN_WRITE_OTHERS_TIMECARDS: "can_write_others_timecards";
|
|
347
|
+
readonly CAN_READ_OTHERS_TIMECARDS: "can_read_others_timecards";
|
|
348
|
+
readonly CAN_WRITE_TIMECARDS: "can_write_timecards";
|
|
349
|
+
readonly CAN_READ_TIMECARDS: "can_read_timecards";
|
|
350
|
+
readonly CAN_APPROVE_TIME_OFF: "can_approve_time_off";
|
|
351
|
+
readonly IS_ROOT: "is_root";
|
|
352
|
+
readonly IS_CUSTOMER: "is_customer";
|
|
353
|
+
};
|
|
354
|
+
export type Permissions = typeof Permissions[keyof typeof Permissions];
|
|
307
355
|
export interface UserCompanyAssociation {
|
|
308
356
|
id: string;
|
|
309
357
|
user: User;
|
|
310
358
|
company: string;
|
|
311
|
-
permissions:
|
|
312
|
-
effective_permissions:
|
|
359
|
+
permissions: Permissions[];
|
|
360
|
+
effective_permissions: Permissions[];
|
|
313
361
|
time_created: number | null;
|
|
314
362
|
time_updated: number | null;
|
|
315
363
|
notification_setting: NotificationLevel[];
|
package/dist/types/api.js
CHANGED
|
@@ -8,3 +8,50 @@ export const LoginResponse = {
|
|
|
8
8
|
SUCCESS: "SUCCESS",
|
|
9
9
|
NEEDS_TOTP: "NEEDS_TOTP",
|
|
10
10
|
};
|
|
11
|
+
export const Permissions = {
|
|
12
|
+
CAN_WRITE_COMPANY: "can_write_company",
|
|
13
|
+
CAN_READ_GROUPS: "can_read_groups",
|
|
14
|
+
CAN_WRITE_PROPOSALS: "can_write_proposals",
|
|
15
|
+
CAN_READ_PROPOSALS: "can_read_proposals",
|
|
16
|
+
CAN_WRITE_GROUPS: "can_write_groups",
|
|
17
|
+
CAN_WRITE_ROUTES: "can_write_routes",
|
|
18
|
+
CAN_WRITE_SUBSCRIPTIONS: "can_write_subscriptions",
|
|
19
|
+
CAN_READ_SUBSCRIPTIONS: "can_read_subscriptions",
|
|
20
|
+
CAN_WRITE_TEAMS: "can_write_teams",
|
|
21
|
+
CAN_WRITE_JOBS: "can_write_jobs",
|
|
22
|
+
CAN_WRITE_TASKS: "can_write_tasks",
|
|
23
|
+
CAN_WRITE_ITEMS: "can_write_items",
|
|
24
|
+
CAN_WRITE_SKILLS: "can_write_skills",
|
|
25
|
+
CAN_WRITE_EMAILS: "can_write_emails",
|
|
26
|
+
CAN_WRITE_OTHERS_SESSIONS: "can_write_others_sessions",
|
|
27
|
+
CAN_READ_OTHERS_SESSIONS: "can_read_others_sessions",
|
|
28
|
+
CAN_READ_SESSIONS: "can_read_sessions",
|
|
29
|
+
CAN_WRITE_LABELS: "can_write_labels",
|
|
30
|
+
CAN_READ_LABELS: "can_read_labels",
|
|
31
|
+
CAN_READ_ROUTES: "can_read_routes",
|
|
32
|
+
CAN_READ_TEAMS: "can_read_teams",
|
|
33
|
+
CAN_READ_JOBS: "can_read_jobs",
|
|
34
|
+
CAN_WRITE_EVENTS: "can_write_events",
|
|
35
|
+
CAN_READ_TASKS: "can_read_tasks",
|
|
36
|
+
CAN_READ_ITEMS: "can_read_items",
|
|
37
|
+
CAN_READ_SKILLS: "can_read_skills",
|
|
38
|
+
CAN_WRITE_SESSIONS: "can_write_sessions",
|
|
39
|
+
CAN_READ_EMAILS: "can_read_emails",
|
|
40
|
+
CAN_WRITE_SMS: "can_write_sms",
|
|
41
|
+
CAN_READ_SMS: "can_read_sms",
|
|
42
|
+
CAN_WRITE_NOTIFICATIONS: "can_write_notifications",
|
|
43
|
+
CAN_READ_EVENTS: "can_read_events",
|
|
44
|
+
CAN_READ_MONTHS: "can_read_months",
|
|
45
|
+
CAN_WRITE_MONTHS: "can_write_months",
|
|
46
|
+
CAN_WRITE_BILLS: "can_write_bills",
|
|
47
|
+
CAN_READ_BILLS: "can_read_bills",
|
|
48
|
+
CAN_OPTIMIZE: "can_optimize",
|
|
49
|
+
CAN_READ_COMPANY: "can_read_company",
|
|
50
|
+
CAN_WRITE_OTHERS_TIMECARDS: "can_write_others_timecards",
|
|
51
|
+
CAN_READ_OTHERS_TIMECARDS: "can_read_others_timecards",
|
|
52
|
+
CAN_WRITE_TIMECARDS: "can_write_timecards",
|
|
53
|
+
CAN_READ_TIMECARDS: "can_read_timecards",
|
|
54
|
+
CAN_APPROVE_TIME_OFF: "can_approve_time_off",
|
|
55
|
+
IS_ROOT: "is_root",
|
|
56
|
+
IS_CUSTOMER: "is_customer",
|
|
57
|
+
};
|