@citec-spbu/contracts 1.0.21 → 1.0.23
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.
|
@@ -36,7 +36,7 @@ interface IssueCreatedEventPayload {
|
|
|
36
36
|
author: UserPayload;
|
|
37
37
|
title: string;
|
|
38
38
|
description: string | null;
|
|
39
|
-
state: "open" | "
|
|
39
|
+
state: "open" | "deleted";
|
|
40
40
|
commentCount: number;
|
|
41
41
|
createdAt: Date;
|
|
42
42
|
closedAt: Date | null;
|
|
@@ -64,6 +64,14 @@ interface IssueLabelEventPayload {
|
|
|
64
64
|
label: string;
|
|
65
65
|
createdAt: Date;
|
|
66
66
|
}
|
|
67
|
+
interface IssueTypeEventPayload {
|
|
68
|
+
eventId: string;
|
|
69
|
+
issueId: string;
|
|
70
|
+
actor: UserPayload;
|
|
71
|
+
event: "typed" | "untyped";
|
|
72
|
+
type: string;
|
|
73
|
+
createdAt: Date;
|
|
74
|
+
}
|
|
67
75
|
interface IssueCommentEventPayload {
|
|
68
76
|
eventId: string;
|
|
69
77
|
issueId: string;
|
|
@@ -71,6 +79,7 @@ interface IssueCommentEventPayload {
|
|
|
71
79
|
event: "commented";
|
|
72
80
|
body: string;
|
|
73
81
|
createdAt: Date;
|
|
82
|
+
updatedAt: Date;
|
|
74
83
|
}
|
|
75
84
|
interface PullRequestCreatedPayload {
|
|
76
85
|
id: string;
|
|
@@ -103,7 +112,7 @@ interface PullRequestAssigneeEventPayload {
|
|
|
103
112
|
}
|
|
104
113
|
interface PullRequestLabelEventPayload {
|
|
105
114
|
eventId: string;
|
|
106
|
-
|
|
115
|
+
prId: string;
|
|
107
116
|
actor: UserPayload;
|
|
108
117
|
event: "labeled" | "unlabeled";
|
|
109
118
|
label: string;
|
|
@@ -135,7 +144,7 @@ interface PullRequestCommentEventPayload {
|
|
|
135
144
|
createdAt: Date;
|
|
136
145
|
updatedAt: Date;
|
|
137
146
|
}
|
|
138
|
-
export type NormalizedEventPublished = _NormalizedEventPublished<"commit.created", CommitEventPayload> | _NormalizedEventPublished<"issue.created", IssueCreatedEventPayload> | _NormalizedEventPublished<"issue.state_changed", IssueStateChangedEventPayload> | _NormalizedEventPublished<"issue.assigned", IssueAssigneeEventPayload> | _NormalizedEventPublished<"issue.labeled", IssueLabelEventPayload> | _NormalizedEventPublished<"issue.commented", IssueCommentEventPayload> | _NormalizedEventPublished<"pull_request.created", PullRequestCreatedPayload> | _NormalizedEventPublished<"pull_request.state_changed", PullRequestStateChangedEventPayload> | _NormalizedEventPublished<"pull_request.assigned", PullRequestAssigneeEventPayload> | _NormalizedEventPublished<"pull_request.labeled", PullRequestLabelEventPayload> | _NormalizedEventPublished<"pull_request.review_requested", PullRequestReviewRequestEventPayload> | _NormalizedEventPublished<"pull_request.reviewed", PullRequestReviewEventPayload> | _NormalizedEventPublished<"pull_request.commented", PullRequestCommentEventPayload>;
|
|
147
|
+
export type NormalizedEventPublished = _NormalizedEventPublished<"commit.created", CommitEventPayload> | _NormalizedEventPublished<"issue.created", IssueCreatedEventPayload> | _NormalizedEventPublished<"issue.state_changed", IssueStateChangedEventPayload> | _NormalizedEventPublished<"issue.assigned", IssueAssigneeEventPayload> | _NormalizedEventPublished<"issue.labeled", IssueLabelEventPayload> | _NormalizedEventPublished<"issue.typed", IssueTypeEventPayload> | _NormalizedEventPublished<"issue.commented", IssueCommentEventPayload> | _NormalizedEventPublished<"pull_request.created", PullRequestCreatedPayload> | _NormalizedEventPublished<"pull_request.state_changed", PullRequestStateChangedEventPayload> | _NormalizedEventPublished<"pull_request.assigned", PullRequestAssigneeEventPayload> | _NormalizedEventPublished<"pull_request.labeled", PullRequestLabelEventPayload> | _NormalizedEventPublished<"pull_request.review_requested", PullRequestReviewRequestEventPayload> | _NormalizedEventPublished<"pull_request.reviewed", PullRequestReviewEventPayload> | _NormalizedEventPublished<"pull_request.commented", PullRequestCommentEventPayload>;
|
|
139
148
|
export type ExtractEvent<T extends NormalizedEventPublished["type"]> = Extract<NormalizedEventPublished, {
|
|
140
149
|
type: T;
|
|
141
150
|
}>;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED