@sentry/junior-google 0.0.0-stage → 0.238.0
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/LICENSE +201 -0
- package/README.md +102 -2
- package/dist/cli.d.ts +3 -0
- package/dist/config.d.ts +37 -0
- package/dist/credentials.d.ts +42 -0
- package/dist/db/schema.d.ts +98 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1460 -0
- package/dist/oauth.d.ts +47 -0
- package/dist/setup-routes.d.ts +25 -0
- package/dist/store.d.ts +22 -0
- package/dist/tools/create-event.d.ts +142 -0
- package/dist/tools/find-meeting-times.d.ts +162 -0
- package/dist/tools/list-events.d.ts +151 -0
- package/dist/tools/shared.d.ts +85 -0
- package/dist/tools/update-event.d.ts +139 -0
- package/migrations/0000_google_accounts.sql +7 -0
- package/migrations/meta/0000_snapshot.json +62 -0
- package/migrations/meta/_journal.json +13 -0
- package/package.json +44 -3
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { type GoogleToolContext } from "./shared";
|
|
2
|
+
/**
|
|
3
|
+
* Change an event that Junior organizes and email the attendees.
|
|
4
|
+
*
|
|
5
|
+
* Only people already invited to the event may change it. This keeps one
|
|
6
|
+
* requester from moving or rewriting a meeting that Junior set up for others.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
9
|
+
eventId: string;
|
|
10
|
+
timeZone: string;
|
|
11
|
+
addAttendees: string[];
|
|
12
|
+
removeAttendees: string[];
|
|
13
|
+
title?: string | undefined;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
start?: string | undefined;
|
|
16
|
+
end?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
[x: string]: unknown;
|
|
19
|
+
attendees: string[];
|
|
20
|
+
end: string;
|
|
21
|
+
eventId: string;
|
|
22
|
+
label: string;
|
|
23
|
+
start: string;
|
|
24
|
+
target: "updateCalendarEvent";
|
|
25
|
+
objectAnnotations?: {
|
|
26
|
+
kind: "object";
|
|
27
|
+
key: string;
|
|
28
|
+
label: string;
|
|
29
|
+
objectType: "code_change" | "task" | "deployment" | "automation" | "item";
|
|
30
|
+
title: string;
|
|
31
|
+
url: string | null;
|
|
32
|
+
description?: string | undefined;
|
|
33
|
+
status?: string | undefined;
|
|
34
|
+
trigger?: string | undefined;
|
|
35
|
+
warning?: string | undefined;
|
|
36
|
+
displayType?: string | undefined;
|
|
37
|
+
sourceUpdatedAt?: string | undefined;
|
|
38
|
+
facts?: {
|
|
39
|
+
type: "code_change";
|
|
40
|
+
author?: string | undefined;
|
|
41
|
+
sourceBranch?: string | undefined;
|
|
42
|
+
targetBranch?: string | undefined;
|
|
43
|
+
reviewers?: string[] | undefined;
|
|
44
|
+
review?: "required" | "approved" | "changes_requested" | undefined;
|
|
45
|
+
checks?: {
|
|
46
|
+
passed: number;
|
|
47
|
+
failed: number;
|
|
48
|
+
pending: number;
|
|
49
|
+
} | undefined;
|
|
50
|
+
mergeable?: boolean | undefined;
|
|
51
|
+
changedFiles?: number | undefined;
|
|
52
|
+
additions?: number | undefined;
|
|
53
|
+
deletions?: number | undefined;
|
|
54
|
+
} | {
|
|
55
|
+
type: "task";
|
|
56
|
+
assignees?: string[] | undefined;
|
|
57
|
+
priority?: string | undefined;
|
|
58
|
+
project?: string | undefined;
|
|
59
|
+
cycle?: string | undefined;
|
|
60
|
+
dueDate?: string | undefined;
|
|
61
|
+
labels?: string[] | undefined;
|
|
62
|
+
} | {
|
|
63
|
+
type: "deployment";
|
|
64
|
+
project?: string | undefined;
|
|
65
|
+
environment?: string | undefined;
|
|
66
|
+
revision?: string | undefined;
|
|
67
|
+
branch?: string | undefined;
|
|
68
|
+
} | undefined;
|
|
69
|
+
}[] | undefined;
|
|
70
|
+
truncated?: boolean | undefined;
|
|
71
|
+
continuation?: {
|
|
72
|
+
arguments: Record<string, unknown>;
|
|
73
|
+
reason?: string | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
title?: string | undefined;
|
|
76
|
+
url?: string | undefined;
|
|
77
|
+
videoCallUrl?: string | undefined;
|
|
78
|
+
}, {
|
|
79
|
+
[x: string]: unknown;
|
|
80
|
+
attendees: string[];
|
|
81
|
+
end: string;
|
|
82
|
+
eventId: string;
|
|
83
|
+
label: string;
|
|
84
|
+
start: string;
|
|
85
|
+
target: "updateCalendarEvent";
|
|
86
|
+
objectAnnotations?: {
|
|
87
|
+
kind: "object";
|
|
88
|
+
key: string;
|
|
89
|
+
label: string;
|
|
90
|
+
objectType: "code_change" | "task" | "deployment" | "automation" | "item";
|
|
91
|
+
title: string;
|
|
92
|
+
url: string | null;
|
|
93
|
+
description?: string | undefined;
|
|
94
|
+
status?: string | undefined;
|
|
95
|
+
trigger?: string | undefined;
|
|
96
|
+
warning?: string | undefined;
|
|
97
|
+
displayType?: string | undefined;
|
|
98
|
+
sourceUpdatedAt?: string | undefined;
|
|
99
|
+
facts?: {
|
|
100
|
+
type: "code_change";
|
|
101
|
+
author?: string | undefined;
|
|
102
|
+
sourceBranch?: string | undefined;
|
|
103
|
+
targetBranch?: string | undefined;
|
|
104
|
+
reviewers?: string[] | undefined;
|
|
105
|
+
review?: "required" | "approved" | "changes_requested" | undefined;
|
|
106
|
+
checks?: {
|
|
107
|
+
passed: number;
|
|
108
|
+
failed: number;
|
|
109
|
+
pending: number;
|
|
110
|
+
} | undefined;
|
|
111
|
+
mergeable?: boolean | undefined;
|
|
112
|
+
changedFiles?: number | undefined;
|
|
113
|
+
additions?: number | undefined;
|
|
114
|
+
deletions?: number | undefined;
|
|
115
|
+
} | {
|
|
116
|
+
type: "task";
|
|
117
|
+
assignees?: string[] | undefined;
|
|
118
|
+
priority?: string | undefined;
|
|
119
|
+
project?: string | undefined;
|
|
120
|
+
cycle?: string | undefined;
|
|
121
|
+
dueDate?: string | undefined;
|
|
122
|
+
labels?: string[] | undefined;
|
|
123
|
+
} | {
|
|
124
|
+
type: "deployment";
|
|
125
|
+
project?: string | undefined;
|
|
126
|
+
environment?: string | undefined;
|
|
127
|
+
revision?: string | undefined;
|
|
128
|
+
branch?: string | undefined;
|
|
129
|
+
} | undefined;
|
|
130
|
+
}[] | undefined;
|
|
131
|
+
truncated?: boolean | undefined;
|
|
132
|
+
continuation?: {
|
|
133
|
+
arguments: Record<string, unknown>;
|
|
134
|
+
reason?: string | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
title?: string | undefined;
|
|
137
|
+
url?: string | undefined;
|
|
138
|
+
videoCallUrl?: string | undefined;
|
|
139
|
+
}>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "46c07fba-dfdc-49a7-98ee-6ab1a36022d0",
|
|
3
|
+
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
4
|
+
"version": "7",
|
|
5
|
+
"dialect": "postgresql",
|
|
6
|
+
"tables": {
|
|
7
|
+
"public.junior_google_accounts": {
|
|
8
|
+
"name": "junior_google_accounts",
|
|
9
|
+
"schema": "",
|
|
10
|
+
"columns": {
|
|
11
|
+
"account_email": {
|
|
12
|
+
"name": "account_email",
|
|
13
|
+
"type": "text",
|
|
14
|
+
"primaryKey": true,
|
|
15
|
+
"notNull": true
|
|
16
|
+
},
|
|
17
|
+
"refresh_token": {
|
|
18
|
+
"name": "refresh_token",
|
|
19
|
+
"type": "text",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true
|
|
22
|
+
},
|
|
23
|
+
"scope": {
|
|
24
|
+
"name": "scope",
|
|
25
|
+
"type": "text",
|
|
26
|
+
"primaryKey": false,
|
|
27
|
+
"notNull": true
|
|
28
|
+
},
|
|
29
|
+
"connected_by": {
|
|
30
|
+
"name": "connected_by",
|
|
31
|
+
"type": "text",
|
|
32
|
+
"primaryKey": false,
|
|
33
|
+
"notNull": true
|
|
34
|
+
},
|
|
35
|
+
"connected_at_ms": {
|
|
36
|
+
"name": "connected_at_ms",
|
|
37
|
+
"type": "bigint",
|
|
38
|
+
"primaryKey": false,
|
|
39
|
+
"notNull": true
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"indexes": {},
|
|
43
|
+
"foreignKeys": {},
|
|
44
|
+
"compositePrimaryKeys": {},
|
|
45
|
+
"uniqueConstraints": {},
|
|
46
|
+
"policies": {},
|
|
47
|
+
"checkConstraints": {},
|
|
48
|
+
"isRLSEnabled": false
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"enums": {},
|
|
52
|
+
"schemas": {},
|
|
53
|
+
"sequences": {},
|
|
54
|
+
"roles": {},
|
|
55
|
+
"policies": {},
|
|
56
|
+
"views": {},
|
|
57
|
+
"_meta": {
|
|
58
|
+
"columns": {},
|
|
59
|
+
"schemas": {},
|
|
60
|
+
"tables": {}
|
|
61
|
+
}
|
|
62
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-google",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.238.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/getsentry/junior.git",
|
|
12
|
+
"directory": "packages/junior-google"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"migrations"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"commander": "^14.0.3",
|
|
26
|
+
"drizzle-orm": "^0.45.2",
|
|
27
|
+
"zod": "^4.5.4",
|
|
28
|
+
"@sentry/junior-plugin-api": "0.238.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@oxlint/plugins": "1.79.0",
|
|
32
|
+
"@types/node": "^25.9.1",
|
|
33
|
+
"drizzle-kit": "^0.31.8",
|
|
34
|
+
"oxlint": "^1.79.0",
|
|
35
|
+
"tsup": "^8.5.1",
|
|
36
|
+
"typescript": "^6.0.3",
|
|
37
|
+
"vitest": "^4.1.7",
|
|
38
|
+
"@sentry/junior-testing": "0.0.0"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
42
|
+
"db:generate": "pnpm exec drizzle-kit generate --config drizzle.config.ts",
|
|
43
|
+
"lint": "oxlint --config ../junior/.oxlintrc.json --deny-warnings src tests tsup.config.ts vitest.config.ts",
|
|
44
|
+
"test": "vitest run",
|
|
45
|
+
"typecheck": "tsc --noEmit"
|
|
46
|
+
}
|
|
6
47
|
}
|