@valtimo-plugins/github 1.0.1

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 (46) hide show
  1. package/fesm2022/valtimo-plugins-github.mjs +2022 -0
  2. package/fesm2022/valtimo-plugins-github.mjs.map +1 -0
  3. package/index.d.ts +5 -0
  4. package/lib/assets/github-plugin-logo.d.ts +8 -0
  5. package/lib/assets/index.d.ts +1 -0
  6. package/lib/base/github-function-configuration.component.d.ts +58 -0
  7. package/lib/components/comment/comment-configuration.component.d.ts +8 -0
  8. package/lib/components/create-branch/create-branch-configuration.component.d.ts +8 -0
  9. package/lib/components/create-issue/create-issue-configuration.component.d.ts +8 -0
  10. package/lib/components/create-label/create-label-configuration.component.d.ts +8 -0
  11. package/lib/components/create-or-update-file/create-or-update-file-configuration.component.d.ts +8 -0
  12. package/lib/components/create-pull-request/create-pull-request-configuration.component.d.ts +8 -0
  13. package/lib/components/get-authenticated-user/get-authenticated-user-configuration.component.d.ts +8 -0
  14. package/lib/components/get-check-status/get-check-status-configuration.component.d.ts +8 -0
  15. package/lib/components/get-file-content/get-file-content-configuration.component.d.ts +8 -0
  16. package/lib/components/get-issue/get-issue-configuration.component.d.ts +8 -0
  17. package/lib/components/get-job-logs/get-job-logs-configuration.component.d.ts +8 -0
  18. package/lib/components/get-project-items/get-project-items-configuration.component.d.ts +8 -0
  19. package/lib/components/get-pull-request/get-pull-request-configuration.component.d.ts +8 -0
  20. package/lib/components/get-repository/get-repository-configuration.component.d.ts +8 -0
  21. package/lib/components/get-workflow-run/get-workflow-run-configuration.component.d.ts +8 -0
  22. package/lib/components/github-configuration/github-configuration.component.d.ts +28 -0
  23. package/lib/components/graphql-query/graphql-query-configuration.component.d.ts +8 -0
  24. package/lib/components/list-issues/list-issues-configuration.component.d.ts +11 -0
  25. package/lib/components/list-pull-requests/list-pull-requests-configuration.component.d.ts +11 -0
  26. package/lib/components/list-repositories/list-repositories-configuration.component.d.ts +11 -0
  27. package/lib/components/list-review-threads/list-review-threads-configuration.component.d.ts +8 -0
  28. package/lib/components/list-workflow-runs/list-workflow-runs-configuration.component.d.ts +8 -0
  29. package/lib/components/merge-pull-request/merge-pull-request-configuration.component.d.ts +11 -0
  30. package/lib/components/reply-to-review-comment/reply-to-review-comment-configuration.component.d.ts +8 -0
  31. package/lib/components/request-reviewers/request-reviewers-configuration.component.d.ts +8 -0
  32. package/lib/components/rerun-workflow/rerun-workflow-configuration.component.d.ts +8 -0
  33. package/lib/components/resolve-review-thread/resolve-review-thread-configuration.component.d.ts +8 -0
  34. package/lib/components/rest-request/rest-request-configuration.component.d.ts +11 -0
  35. package/lib/components/review-pull-request/review-pull-request-configuration.component.d.ts +11 -0
  36. package/lib/components/search-issues/search-issues-configuration.component.d.ts +11 -0
  37. package/lib/components/set-project-item-field/set-project-item-field-configuration.component.d.ts +11 -0
  38. package/lib/components/set-pull-request-draft/set-pull-request-draft-configuration.component.d.ts +8 -0
  39. package/lib/components/update-issue/update-issue-configuration.component.d.ts +12 -0
  40. package/lib/components/update-pull-request/update-pull-request-configuration.component.d.ts +11 -0
  41. package/lib/github-plugin-module.d.ts +43 -0
  42. package/lib/github-plugin.specification.d.ts +3 -0
  43. package/lib/models/config.d.ts +253 -0
  44. package/lib/models/index.d.ts +1 -0
  45. package/package.json +27 -0
  46. package/public_api.d.ts +38 -0
@@ -0,0 +1,253 @@
1
+ import { PluginConfigurationData } from '@valtimo/plugin';
2
+ /**
3
+ * How a plugin configuration is stored. Keep in lockstep with the @PluginProperty fields of
4
+ * GitHubPlugin in Kotlin.
5
+ */
6
+ interface GitHubConfig extends PluginConfigurationData {
7
+ url: string;
8
+ token: string;
9
+ defaultRepository?: string;
10
+ graphqlUrl?: string;
11
+ perPage?: number;
12
+ maxPages?: number;
13
+ }
14
+ /**
15
+ * One interface per action, mirroring its @PluginActionProperty parameters.
16
+ *
17
+ * `resultVariable` is on nearly all of them: it names the process variable the answer is
18
+ * written to, and leaving it empty means the answer is discarded — which is what you want
19
+ * for an action whose point is the write rather than the reply.
20
+ */
21
+ interface GetRepositoryConfig {
22
+ repository?: string;
23
+ resultVariable?: string;
24
+ }
25
+ interface ListRepositoriesConfig {
26
+ owner: string;
27
+ type?: string;
28
+ limit?: number;
29
+ resultVariable?: string;
30
+ }
31
+ interface GetAuthenticatedUserConfig {
32
+ resultVariable?: string;
33
+ }
34
+ interface ListIssuesConfig {
35
+ repository?: string;
36
+ state?: string;
37
+ labels?: string;
38
+ assignee?: string;
39
+ creator?: string;
40
+ since?: string;
41
+ limit?: number;
42
+ resultVariable?: string;
43
+ }
44
+ interface GetIssueConfig {
45
+ repository?: string;
46
+ issueNumber: number;
47
+ includeComments?: boolean;
48
+ includeTimeline?: boolean;
49
+ resultVariable?: string;
50
+ }
51
+ interface SearchIssuesConfig {
52
+ query: string;
53
+ sort?: string;
54
+ order?: string;
55
+ limit?: number;
56
+ resultVariable?: string;
57
+ }
58
+ interface CreateIssueConfig {
59
+ repository?: string;
60
+ title: string;
61
+ body?: string;
62
+ labels?: string;
63
+ assignees?: string;
64
+ resultVariable?: string;
65
+ }
66
+ interface UpdateIssueConfig {
67
+ repository?: string;
68
+ issueNumber: number;
69
+ title?: string;
70
+ body?: string;
71
+ state?: string;
72
+ stateReason?: string;
73
+ addLabels?: string;
74
+ removeLabels?: string;
75
+ addAssignees?: string;
76
+ removeAssignees?: string;
77
+ resultVariable?: string;
78
+ }
79
+ interface CommentConfig {
80
+ repository?: string;
81
+ issueNumber: number;
82
+ body: string;
83
+ resultVariable?: string;
84
+ }
85
+ interface ListPullRequestsConfig {
86
+ repository?: string;
87
+ state?: string;
88
+ base?: string;
89
+ head?: string;
90
+ limit?: number;
91
+ resultVariable?: string;
92
+ }
93
+ interface GetPullRequestConfig {
94
+ repository?: string;
95
+ pullRequestNumber: number;
96
+ includeFiles?: boolean;
97
+ includeReviews?: boolean;
98
+ includeComments?: boolean;
99
+ includeChecks?: boolean;
100
+ resultVariable?: string;
101
+ }
102
+ interface CreatePullRequestConfig {
103
+ repository?: string;
104
+ title: string;
105
+ body?: string;
106
+ head: string;
107
+ base?: string;
108
+ draft?: boolean;
109
+ resultVariable?: string;
110
+ }
111
+ interface UpdatePullRequestConfig {
112
+ repository?: string;
113
+ pullRequestNumber: number;
114
+ title?: string;
115
+ body?: string;
116
+ base?: string;
117
+ state?: string;
118
+ addLabels?: string;
119
+ removeLabels?: string;
120
+ resultVariable?: string;
121
+ }
122
+ interface SetPullRequestDraftConfig {
123
+ repository?: string;
124
+ pullRequestNumber: number;
125
+ draft: boolean;
126
+ resultVariable?: string;
127
+ }
128
+ interface MergePullRequestConfig {
129
+ repository?: string;
130
+ pullRequestNumber: number;
131
+ mergeMethod?: string;
132
+ commitTitle?: string;
133
+ commitMessage?: string;
134
+ expectedHeadSha?: string;
135
+ resultVariable?: string;
136
+ }
137
+ interface ReviewPullRequestConfig {
138
+ repository?: string;
139
+ pullRequestNumber: number;
140
+ event: string;
141
+ body?: string;
142
+ resultVariable?: string;
143
+ }
144
+ interface RequestReviewersConfig {
145
+ repository?: string;
146
+ pullRequestNumber: number;
147
+ reviewers?: string;
148
+ teamReviewers?: string;
149
+ resultVariable?: string;
150
+ }
151
+ interface ListReviewThreadsConfig {
152
+ repository?: string;
153
+ pullRequestNumber: number;
154
+ onlyUnresolved?: boolean;
155
+ resultVariable?: string;
156
+ }
157
+ interface ReplyToReviewCommentConfig {
158
+ repository?: string;
159
+ pullRequestNumber: number;
160
+ commentId: string;
161
+ body: string;
162
+ resultVariable?: string;
163
+ }
164
+ interface ResolveReviewThreadConfig {
165
+ threadId: string;
166
+ resolve?: boolean;
167
+ resultVariable?: string;
168
+ }
169
+ interface CreateLabelConfig {
170
+ repository?: string;
171
+ name: string;
172
+ color?: string;
173
+ description?: string;
174
+ resultVariable?: string;
175
+ }
176
+ interface GetCheckStatusConfig {
177
+ repository?: string;
178
+ ref: string;
179
+ resultVariable?: string;
180
+ }
181
+ interface ListWorkflowRunsConfig {
182
+ repository?: string;
183
+ branch?: string;
184
+ status?: string;
185
+ event?: string;
186
+ limit?: number;
187
+ resultVariable?: string;
188
+ }
189
+ interface GetWorkflowRunConfig {
190
+ repository?: string;
191
+ runId: string;
192
+ includeJobs?: boolean;
193
+ resultVariable?: string;
194
+ }
195
+ interface GetJobLogsConfig {
196
+ repository?: string;
197
+ jobId: string;
198
+ maxLines?: number;
199
+ resultVariable?: string;
200
+ }
201
+ interface RerunWorkflowConfig {
202
+ repository?: string;
203
+ runId: string;
204
+ onlyFailed?: boolean;
205
+ resultVariable?: string;
206
+ }
207
+ interface GetFileContentConfig {
208
+ repository?: string;
209
+ path: string;
210
+ ref?: string;
211
+ resultVariable?: string;
212
+ }
213
+ interface CreateOrUpdateFileConfig {
214
+ repository?: string;
215
+ path: string;
216
+ commitMessage: string;
217
+ content?: string;
218
+ resourceId?: string;
219
+ branch?: string;
220
+ expectedSha?: string;
221
+ resultVariable?: string;
222
+ }
223
+ interface CreateBranchConfig {
224
+ repository?: string;
225
+ branchName: string;
226
+ fromRef?: string;
227
+ resultVariable?: string;
228
+ }
229
+ interface GetProjectItemsConfig {
230
+ repository?: string;
231
+ issueNumber: number;
232
+ resultVariable?: string;
233
+ }
234
+ interface SetProjectItemFieldConfig {
235
+ projectId: string;
236
+ itemId: string;
237
+ fieldId: string;
238
+ valueType: string;
239
+ value: string;
240
+ resultVariable?: string;
241
+ }
242
+ interface RestRequestConfig {
243
+ method?: string;
244
+ path: string;
245
+ body?: string;
246
+ resultVariable?: string;
247
+ }
248
+ interface GraphqlQueryConfig {
249
+ query: string;
250
+ variables?: string;
251
+ resultVariable?: string;
252
+ }
253
+ export { GitHubConfig, GetRepositoryConfig, ListRepositoriesConfig, GetAuthenticatedUserConfig, ListIssuesConfig, GetIssueConfig, SearchIssuesConfig, CreateIssueConfig, UpdateIssueConfig, CommentConfig, ListPullRequestsConfig, GetPullRequestConfig, CreatePullRequestConfig, UpdatePullRequestConfig, SetPullRequestDraftConfig, MergePullRequestConfig, ReviewPullRequestConfig, RequestReviewersConfig, ListReviewThreadsConfig, ReplyToReviewCommentConfig, ResolveReviewThreadConfig, CreateLabelConfig, GetCheckStatusConfig, ListWorkflowRunsConfig, GetWorkflowRunConfig, GetJobLogsConfig, RerunWorkflowConfig, GetFileContentConfig, CreateOrUpdateFileConfig, CreateBranchConfig, GetProjectItemsConfig, SetProjectItemFieldConfig, RestRequestConfig, GraphqlQueryConfig, };
@@ -0,0 +1 @@
1
+ export * from './config';
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@valtimo-plugins/github",
3
+ "license": "EUPL-1.2",
4
+ "version": "1.0.1",
5
+ "peerDependencies": {
6
+ "@angular/common": "19.2.20",
7
+ "@angular/core": "19.2.20"
8
+ },
9
+ "dependencies": {
10
+ "@angular/forms": "19.2.20",
11
+ "ngx-spinner": "19.0.0",
12
+ "ngx-toastr": "19.0.0",
13
+ "tslib": "2.8.1"
14
+ },
15
+ "module": "fesm2022/valtimo-plugins-github.mjs",
16
+ "typings": "index.d.ts",
17
+ "exports": {
18
+ "./package.json": {
19
+ "default": "./package.json"
20
+ },
21
+ ".": {
22
+ "types": "./index.d.ts",
23
+ "default": "./fesm2022/valtimo-plugins-github.mjs"
24
+ }
25
+ },
26
+ "sideEffects": false
27
+ }
@@ -0,0 +1,38 @@
1
+ export * from './lib/models';
2
+ export * from './lib/github-plugin-module';
3
+ export * from './lib/github-plugin.specification';
4
+ export * from './lib/base/github-function-configuration.component';
5
+ export * from './lib/components/github-configuration/github-configuration.component';
6
+ export * from './lib/components/get-repository/get-repository-configuration.component';
7
+ export * from './lib/components/list-repositories/list-repositories-configuration.component';
8
+ export * from './lib/components/get-authenticated-user/get-authenticated-user-configuration.component';
9
+ export * from './lib/components/list-issues/list-issues-configuration.component';
10
+ export * from './lib/components/get-issue/get-issue-configuration.component';
11
+ export * from './lib/components/search-issues/search-issues-configuration.component';
12
+ export * from './lib/components/create-issue/create-issue-configuration.component';
13
+ export * from './lib/components/update-issue/update-issue-configuration.component';
14
+ export * from './lib/components/comment/comment-configuration.component';
15
+ export * from './lib/components/list-pull-requests/list-pull-requests-configuration.component';
16
+ export * from './lib/components/get-pull-request/get-pull-request-configuration.component';
17
+ export * from './lib/components/create-pull-request/create-pull-request-configuration.component';
18
+ export * from './lib/components/update-pull-request/update-pull-request-configuration.component';
19
+ export * from './lib/components/set-pull-request-draft/set-pull-request-draft-configuration.component';
20
+ export * from './lib/components/merge-pull-request/merge-pull-request-configuration.component';
21
+ export * from './lib/components/review-pull-request/review-pull-request-configuration.component';
22
+ export * from './lib/components/request-reviewers/request-reviewers-configuration.component';
23
+ export * from './lib/components/list-review-threads/list-review-threads-configuration.component';
24
+ export * from './lib/components/reply-to-review-comment/reply-to-review-comment-configuration.component';
25
+ export * from './lib/components/resolve-review-thread/resolve-review-thread-configuration.component';
26
+ export * from './lib/components/create-label/create-label-configuration.component';
27
+ export * from './lib/components/get-check-status/get-check-status-configuration.component';
28
+ export * from './lib/components/list-workflow-runs/list-workflow-runs-configuration.component';
29
+ export * from './lib/components/get-workflow-run/get-workflow-run-configuration.component';
30
+ export * from './lib/components/get-job-logs/get-job-logs-configuration.component';
31
+ export * from './lib/components/rerun-workflow/rerun-workflow-configuration.component';
32
+ export * from './lib/components/get-file-content/get-file-content-configuration.component';
33
+ export * from './lib/components/create-or-update-file/create-or-update-file-configuration.component';
34
+ export * from './lib/components/create-branch/create-branch-configuration.component';
35
+ export * from './lib/components/get-project-items/get-project-items-configuration.component';
36
+ export * from './lib/components/set-project-item-field/set-project-item-field-configuration.component';
37
+ export * from './lib/components/rest-request/rest-request-configuration.component';
38
+ export * from './lib/components/graphql-query/graphql-query-configuration.component';