@knpkv/codecommit-core 0.19.0 → 0.21.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/dist/AwsClient/AwsClientGated.d.ts.map +1 -1
- package/dist/AwsClient/AwsClientGated.js +0 -2
- package/dist/AwsClient/AwsClientGated.js.map +1 -1
- package/dist/AwsClient/approvalRuleContent.d.ts +2 -1
- package/dist/AwsClient/approvalRuleContent.d.ts.map +1 -1
- package/dist/AwsClient/approvalRuleContent.js +25 -18
- package/dist/AwsClient/approvalRuleContent.js.map +1 -1
- package/dist/AwsClient/getPullRequest.d.ts.map +1 -1
- package/dist/AwsClient/getPullRequest.js +21 -10
- package/dist/AwsClient/getPullRequest.js.map +1 -1
- package/dist/AwsClient/getPullRequests.d.ts +30 -23
- package/dist/AwsClient/getPullRequests.d.ts.map +1 -1
- package/dist/AwsClient/getPullRequests.js +50 -33
- package/dist/AwsClient/getPullRequests.js.map +1 -1
- package/dist/AwsClient/index.d.ts +1 -10
- package/dist/AwsClient/index.d.ts.map +1 -1
- package/dist/AwsClient/index.js +0 -1
- package/dist/AwsClient/index.js.map +1 -1
- package/dist/AwsClient/internal.d.ts +11 -1
- package/dist/AwsClient/internal.d.ts.map +1 -1
- package/dist/AwsClient/internal.js +7 -0
- package/dist/AwsClient/internal.js.map +1 -1
- package/dist/CacheService/Database.d.ts +1 -1
- package/dist/CacheService/Database.d.ts.map +1 -1
- package/dist/CacheService/Database.js +8 -2
- package/dist/CacheService/Database.js.map +1 -1
- package/dist/CacheService/diff.d.ts +14 -0
- package/dist/CacheService/diff.d.ts.map +1 -1
- package/dist/CacheService/diff.js +20 -2
- package/dist/CacheService/diff.js.map +1 -1
- package/dist/CacheService/migrations/0022_pull_request_approval_unknown.d.ts +9 -0
- package/dist/CacheService/migrations/0022_pull_request_approval_unknown.d.ts.map +1 -0
- package/dist/CacheService/migrations/0022_pull_request_approval_unknown.js +8 -0
- package/dist/CacheService/migrations/0022_pull_request_approval_unknown.js.map +1 -0
- package/dist/CacheService/migrations/0023_pull_request_row_versions.d.ts +17 -0
- package/dist/CacheService/migrations/0023_pull_request_row_versions.d.ts.map +1 -0
- package/dist/CacheService/migrations/0023_pull_request_row_versions.js +37 -0
- package/dist/CacheService/migrations/0023_pull_request_row_versions.js.map +1 -0
- package/dist/CacheService/migrations/0024_pull_request_approval_baseline.d.ts +12 -0
- package/dist/CacheService/migrations/0024_pull_request_approval_baseline.d.ts.map +1 -0
- package/dist/CacheService/migrations/0024_pull_request_approval_baseline.js +11 -0
- package/dist/CacheService/migrations/0024_pull_request_approval_baseline.js.map +1 -0
- package/dist/CacheService/repos/NotificationRepo.d.ts +6 -0
- package/dist/CacheService/repos/NotificationRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/NotificationRepo.js +20 -1
- package/dist/CacheService/repos/NotificationRepo.js.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/index.d.ts +38 -8
- package/dist/CacheService/repos/PullRequestRepo/index.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/index.js +1 -1
- package/dist/CacheService/repos/PullRequestRepo/index.js.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/internal.d.ts +71 -2
- package/dist/CacheService/repos/PullRequestRepo/internal.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/internal.js +75 -2
- package/dist/CacheService/repos/PullRequestRepo/internal.js.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/mutations.d.ts +39 -16
- package/dist/CacheService/repos/PullRequestRepo/mutations.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/mutations.js +61 -92
- package/dist/CacheService/repos/PullRequestRepo/mutations.js.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/queries.d.ts +28 -0
- package/dist/CacheService/repos/PullRequestRepo/queries.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/queries.js +10 -3
- package/dist/CacheService/repos/PullRequestRepo/queries.js.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/rowWrites.d.ts +132 -0
- package/dist/CacheService/repos/PullRequestRepo/rowWrites.d.ts.map +1 -0
- package/dist/CacheService/repos/PullRequestRepo/rowWrites.js +217 -0
- package/dist/CacheService/repos/PullRequestRepo/rowWrites.js.map +1 -0
- package/dist/CacheService/repos/StatsRepo/internal.d.ts +2 -1
- package/dist/CacheService/repos/StatsRepo/internal.d.ts.map +1 -1
- package/dist/CacheService/repos/StatsRepo/internal.js.map +1 -1
- package/dist/CacheService/repos/StatsRepo/queries.d.ts.map +1 -1
- package/dist/CacheService/repos/StatsRepo/queries.js +8 -2
- package/dist/CacheService/repos/StatsRepo/queries.js.map +1 -1
- package/dist/CacheService/repos/StatsRepo/reviewerData.d.ts.map +1 -1
- package/dist/CacheService/repos/StatsRepo/reviewerData.js +1 -2
- package/dist/CacheService/repos/StatsRepo/reviewerData.js.map +1 -1
- package/dist/Domain.d.ts +81 -0
- package/dist/Domain.d.ts.map +1 -1
- package/dist/Domain.js +63 -1
- package/dist/Domain.js.map +1 -1
- package/dist/HealthScore.d.ts +12 -1
- package/dist/HealthScore.d.ts.map +1 -1
- package/dist/HealthScore.js +76 -18
- package/dist/HealthScore.js.map +1 -1
- package/dist/PRService/internal.d.ts +19 -1
- package/dist/PRService/internal.d.ts.map +1 -1
- package/dist/PRService/internal.js +10 -0
- package/dist/PRService/internal.js.map +1 -1
- package/dist/PRService/refreshDiffs.d.ts.map +1 -1
- package/dist/PRService/refreshDiffs.js +8 -5
- package/dist/PRService/refreshDiffs.js.map +1 -1
- package/dist/PRService/refreshEnrich.d.ts.map +1 -1
- package/dist/PRService/refreshEnrich.js +30 -47
- package/dist/PRService/refreshEnrich.js.map +1 -1
- package/dist/PRService/refreshFetch.d.ts +1 -1
- package/dist/PRService/refreshFetch.d.ts.map +1 -1
- package/dist/PRService/refreshFetch.js +89 -74
- package/dist/PRService/refreshFetch.js.map +1 -1
- package/dist/PRService/refreshHistory.d.ts.map +1 -1
- package/dist/PRService/refreshHistory.js +17 -10
- package/dist/PRService/refreshHistory.js.map +1 -1
- package/dist/PRService/refreshScore.d.ts.map +1 -1
- package/dist/PRService/refreshScore.js +8 -5
- package/dist/PRService/refreshScore.js.map +1 -1
- package/dist/PRService/refreshSinglePR.d.ts.map +1 -1
- package/dist/PRService/refreshSinglePR.js +49 -29
- package/dist/PRService/refreshSinglePR.js.map +1 -1
- package/dist/StatsService/index.d.ts.map +1 -1
- package/dist/StatsService/index.js +2 -1
- package/dist/StatsService/index.js.map +1 -1
- package/package.json +7 -4
|
@@ -12,19 +12,21 @@ import type { Success } from "effect/Effect";
|
|
|
12
12
|
import * as SqlClient from "effect/sql/SqlClient";
|
|
13
13
|
import { EventsHub } from "../../EventsHub.js";
|
|
14
14
|
import * as Q from "./queries.js";
|
|
15
|
-
export { CachedPullRequest, type SearchResult, UpsertInput } from "./internal.js";
|
|
15
|
+
export { approvalColumnsOf, type ApprovalRead, CachedPullRequest, type SearchResult, UpsertInput, versionsOf } from "./internal.js";
|
|
16
16
|
export type { CachedPullRequest as CachedPullRequestType } from "./internal.js";
|
|
17
|
+
export type { UpsertResult } from "./mutations.js";
|
|
17
18
|
export { PullRequestAmbiguityError } from "./queries.js";
|
|
19
|
+
export type { ApprovalGroup, DerivedColumns, GroupsWritten, RowGroup, RowVersion, RowVersions } from "./rowWrites.js";
|
|
18
20
|
declare const makePullRequestRepo: Effect.Effect<{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
observe: () => Effect.Effect<number, import("../../CacheError.ts").CacheError, never>;
|
|
22
|
+
upsert: (input: import("./internal.js").UpsertInput, observation: number) => Effect.Effect<import("./mutations.js").UpsertResult, import("../../CacheError.ts").CacheError, never>;
|
|
23
|
+
upsertRead: (input: import("./internal.js").UpsertInput, read: Parameters<typeof import("./internal.js").rowGroupOfRead>[0] & import("./internal.js").ApprovalRead, observation: number) => Effect.Effect<import("./mutations.js").UpsertResult, import("../../CacheError.ts").CacheError, never>;
|
|
24
|
+
upsertMany: (prs: ReadonlyArray<import("./internal.js").UpsertInput>, observation: number) => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
25
|
+
writeRead: (awsAccountId: string, id: string, read: Parameters<typeof import("./internal.js").rowGroupOfRead>[0] & import("./internal.js").ApprovalRead, observation: number, coordinates?: import("./mutations.js").PullRequestCoordinates) => Effect.Effect<import("./rowWrites.js").GroupsWritten, import("../../CacheError.ts").CacheError, never>;
|
|
26
|
+
writeDerived: (awsAccountId: string, id: string, observed: import("./rowWrites.js").RowVersions, columns: import("./rowWrites.js").DerivedColumns, coordinates?: import("./mutations.js").PullRequestCoordinates) => Effect.Effect<boolean, import("../../CacheError.ts").CacheError, never>;
|
|
21
27
|
deleteStale: (olderThan: string) => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
22
28
|
deleteStaleOpen: (olderThan: string) => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
23
|
-
deleteOne: (awsAccountId: string, id: string, coordinates?: import("./mutations.js").PullRequestCoordinates) => Effect.Effect<
|
|
24
|
-
updateDiffStats: (awsAccountId: string, id: string, filesAdded: number, filesModified: number, filesDeleted: number, coordinates?: import("./mutations.js").PullRequestCoordinates) => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
25
|
-
updateStatusAndClosedAt: (awsAccountId: string, id: string, status: string, closedAt: string, mergedBy?: string, approvedBy?: ReadonlyArray<string>, coordinates?: import("./mutations.js").PullRequestCoordinates) => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
26
|
-
updateCommentCount: (awsAccountId: string, id: string, count: number | null, coordinates?: import("./mutations.js").PullRequestCoordinates) => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
27
|
-
updateHealthScore: (awsAccountId: string, id: string, score: number, coordinates?: import("./mutations.js").PullRequestCoordinates) => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
29
|
+
deleteOne: (awsAccountId: string, id: string, observation: number, coordinates?: import("./mutations.js").PullRequestCoordinates) => Effect.Effect<boolean, import("../../CacheError.ts").CacheError, never>;
|
|
28
30
|
refreshCommentedBy: () => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
29
31
|
propagateRepoAccountId: () => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
30
32
|
findAll: () => Effect.Effect<{
|
|
@@ -39,11 +41,16 @@ declare const makePullRequestRepo: Effect.Effect<{
|
|
|
39
41
|
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
40
42
|
readonly creationDate: Date;
|
|
41
43
|
readonly lastModifiedDate: Date;
|
|
44
|
+
readonly observationSeq: number;
|
|
45
|
+
readonly approvalVersion: Date;
|
|
46
|
+
readonly approvalObservationSeq: number;
|
|
42
47
|
readonly status: "CLOSED" | "MERGED" | "OPEN";
|
|
43
48
|
readonly sourceBranch: string;
|
|
44
49
|
readonly destinationBranch: string;
|
|
45
50
|
readonly isMergeable: boolean;
|
|
46
51
|
readonly isApproved: boolean;
|
|
52
|
+
readonly approvalUnknownReason: "NotPermitted" | "ProviderFailed" | "Throttled" | null;
|
|
53
|
+
readonly approvalBaselineKnown: boolean;
|
|
47
54
|
readonly commentCount: number | null;
|
|
48
55
|
readonly healthScore: number | null;
|
|
49
56
|
readonly link: string;
|
|
@@ -70,11 +77,16 @@ declare const makePullRequestRepo: Effect.Effect<{
|
|
|
70
77
|
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
71
78
|
readonly creationDate: Date;
|
|
72
79
|
readonly lastModifiedDate: Date;
|
|
80
|
+
readonly observationSeq: number;
|
|
81
|
+
readonly approvalVersion: Date;
|
|
82
|
+
readonly approvalObservationSeq: number;
|
|
73
83
|
readonly status: "CLOSED" | "MERGED" | "OPEN";
|
|
74
84
|
readonly sourceBranch: string;
|
|
75
85
|
readonly destinationBranch: string;
|
|
76
86
|
readonly isMergeable: boolean;
|
|
77
87
|
readonly isApproved: boolean;
|
|
88
|
+
readonly approvalUnknownReason: "NotPermitted" | "ProviderFailed" | "Throttled" | null;
|
|
89
|
+
readonly approvalBaselineKnown: boolean;
|
|
78
90
|
readonly commentCount: number | null;
|
|
79
91
|
readonly healthScore: number | null;
|
|
80
92
|
readonly link: string;
|
|
@@ -101,11 +113,16 @@ declare const makePullRequestRepo: Effect.Effect<{
|
|
|
101
113
|
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
102
114
|
readonly creationDate: Date;
|
|
103
115
|
readonly lastModifiedDate: Date;
|
|
116
|
+
readonly observationSeq: number;
|
|
117
|
+
readonly approvalVersion: Date;
|
|
118
|
+
readonly approvalObservationSeq: number;
|
|
104
119
|
readonly status: "CLOSED" | "MERGED" | "OPEN";
|
|
105
120
|
readonly sourceBranch: string;
|
|
106
121
|
readonly destinationBranch: string;
|
|
107
122
|
readonly isMergeable: boolean;
|
|
108
123
|
readonly isApproved: boolean;
|
|
124
|
+
readonly approvalUnknownReason: "NotPermitted" | "ProviderFailed" | "Throttled" | null;
|
|
125
|
+
readonly approvalBaselineKnown: boolean;
|
|
109
126
|
readonly commentCount: number | null;
|
|
110
127
|
readonly healthScore: number | null;
|
|
111
128
|
readonly link: string;
|
|
@@ -132,11 +149,16 @@ declare const makePullRequestRepo: Effect.Effect<{
|
|
|
132
149
|
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
133
150
|
readonly creationDate: Date;
|
|
134
151
|
readonly lastModifiedDate: Date;
|
|
152
|
+
readonly observationSeq: number;
|
|
153
|
+
readonly approvalVersion: Date;
|
|
154
|
+
readonly approvalObservationSeq: number;
|
|
135
155
|
readonly status: "CLOSED" | "MERGED" | "OPEN";
|
|
136
156
|
readonly sourceBranch: string;
|
|
137
157
|
readonly destinationBranch: string;
|
|
138
158
|
readonly isMergeable: boolean;
|
|
139
159
|
readonly isApproved: boolean;
|
|
160
|
+
readonly approvalUnknownReason: "NotPermitted" | "ProviderFailed" | "Throttled" | null;
|
|
161
|
+
readonly approvalBaselineKnown: boolean;
|
|
140
162
|
readonly commentCount: number | null;
|
|
141
163
|
readonly healthScore: number | null;
|
|
142
164
|
readonly link: string;
|
|
@@ -161,6 +183,10 @@ declare const makePullRequestRepo: Effect.Effect<{
|
|
|
161
183
|
readonly repositoryName: string;
|
|
162
184
|
readonly accountProfile: string & import("effect/Brand").Brand<"AwsProfileName">;
|
|
163
185
|
readonly accountRegion: string & import("effect/Brand").Brand<"AwsRegion">;
|
|
186
|
+
readonly lastModifiedDate: Date;
|
|
187
|
+
readonly observationSeq: number;
|
|
188
|
+
readonly approvalVersion: Date;
|
|
189
|
+
readonly approvalObservationSeq: number;
|
|
164
190
|
}[], import("../../CacheError.ts").CacheError, never>;
|
|
165
191
|
findOpenInRange: (weekStart: string, weekEnd: string) => Effect.Effect<{
|
|
166
192
|
readonly id: string;
|
|
@@ -168,6 +194,10 @@ declare const makePullRequestRepo: Effect.Effect<{
|
|
|
168
194
|
readonly repositoryName: string;
|
|
169
195
|
readonly accountProfile: string & import("effect/Brand").Brand<"AwsProfileName">;
|
|
170
196
|
readonly accountRegion: string & import("effect/Brand").Brand<"AwsRegion">;
|
|
197
|
+
readonly lastModifiedDate: Date;
|
|
198
|
+
readonly observationSeq: number;
|
|
199
|
+
readonly approvalVersion: Date;
|
|
200
|
+
readonly approvalObservationSeq: number;
|
|
171
201
|
}[], import("../../CacheError.ts").CacheError, never>;
|
|
172
202
|
}, never, EventsHub | SqlClient.SqlClient>;
|
|
173
203
|
export interface PullRequestRepoContract extends Success<typeof makePullRequestRepo> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/CacheService/repos/PullRequestRepo/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,SAAS,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AmB,CAAC;CAAG;;AAEvF,qBAAa,eAAgB,SAAQ,oBAGf;IACpB,MAAM,CAAC,QAAQ,CAAC,OAAO,8MAEtB;CACF"}
|
|
@@ -13,7 +13,7 @@ import { DatabaseLive } from "../../Database.js";
|
|
|
13
13
|
import { EventsHub, RepoChange } from "../../EventsHub.js";
|
|
14
14
|
import { mutations } from "./mutations.js";
|
|
15
15
|
import * as Q from "./queries.js";
|
|
16
|
-
export { CachedPullRequest, UpsertInput } from "./internal.js";
|
|
16
|
+
export { approvalColumnsOf, CachedPullRequest, UpsertInput, versionsOf } from "./internal.js";
|
|
17
17
|
export { PullRequestAmbiguityError } from "./queries.js";
|
|
18
18
|
const makePullRequestRepo = Effect.gen(function* () {
|
|
19
19
|
const sql = yield* SqlClient.SqlClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/CacheService/repos/PullRequestRepo/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE/C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/CacheService/repos/PullRequestRepo/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE/C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mB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AAM,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC,IAAI,CAC/E,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC,CAC/D,CAAA;CACF"}
|
|
@@ -12,10 +12,15 @@
|
|
|
12
12
|
* @category CacheService
|
|
13
13
|
*/
|
|
14
14
|
import { Effect, Schema } from "effect";
|
|
15
|
-
import { ApprovalRule } from "../../../Domain.js";
|
|
15
|
+
import { ApprovalRule, type ApprovalUnknownReason } from "../../../Domain.js";
|
|
16
16
|
import { CacheError } from "../../CacheError.js";
|
|
17
|
+
import type { ApprovalGroup, RowGroup, RowVersions } from "./rowWrites.js";
|
|
17
18
|
/** DB column `TEXT` (comma-separated) <-> `readonly string[]` */
|
|
18
19
|
export declare const CommaSeparatedArray: Schema.decodeTo<Schema.$Array<Schema.String>, Schema.NullOr<Schema.String>, never, never>;
|
|
20
|
+
/**
|
|
21
|
+
* The `approval_unknown_reason` column: the reason's tag, or NULL when the last evaluation succeeded.
|
|
22
|
+
*/
|
|
23
|
+
export declare const ApprovalUnknownColumn: Schema.NullOr<Schema.Literals<readonly ["NotPermitted", "Throttled", "ProviderFailed"]>>;
|
|
19
24
|
export declare const CachedPullRequest: Schema.Struct<{
|
|
20
25
|
readonly id: Schema.brand<Schema.String, "PullRequestId">;
|
|
21
26
|
readonly awsAccountId: Schema.String;
|
|
@@ -28,11 +33,19 @@ export declare const CachedPullRequest: Schema.Struct<{
|
|
|
28
33
|
readonly repositoryName: Schema.brand<Schema.String, "RepositoryName">;
|
|
29
34
|
readonly creationDate: Schema.DateFromString;
|
|
30
35
|
readonly lastModifiedDate: Schema.DateFromString;
|
|
36
|
+
/** With `lastModifiedDate`, the row group's version: the observation that last wrote it. */
|
|
37
|
+
readonly observationSeq: Schema.Number;
|
|
38
|
+
/** The approval group's version: the provider last activity and observation that last wrote it. */
|
|
39
|
+
readonly approvalVersion: Schema.DateFromString;
|
|
40
|
+
readonly approvalObservationSeq: Schema.Number;
|
|
31
41
|
readonly status: Schema.Literals<readonly ["OPEN", "CLOSED", "MERGED"]>;
|
|
32
42
|
readonly sourceBranch: Schema.String;
|
|
33
43
|
readonly destinationBranch: Schema.String;
|
|
34
44
|
readonly isMergeable: Schema.decodeTo<Schema.Boolean, Schema.Number, never, never>;
|
|
35
45
|
readonly isApproved: Schema.decodeTo<Schema.Boolean, Schema.Number, never, never>;
|
|
46
|
+
readonly approvalUnknownReason: Schema.NullOr<Schema.Literals<readonly ["NotPermitted", "Throttled", "ProviderFailed"]>>;
|
|
47
|
+
/** The `approval_baseline_known` column: whether `isApproved` came from a successful evaluation. */
|
|
48
|
+
readonly approvalBaselineKnown: Schema.decodeTo<Schema.Boolean, Schema.Number, never, never>;
|
|
36
49
|
readonly commentCount: Schema.NullOr<Schema.Number>;
|
|
37
50
|
readonly healthScore: Schema.NullOr<Schema.Number>;
|
|
38
51
|
readonly link: Schema.String;
|
|
@@ -70,13 +83,69 @@ export declare const UpsertInput: Schema.Struct<{
|
|
|
70
83
|
readonly destinationBranch: Schema.String;
|
|
71
84
|
readonly isMergeable: Schema.Number;
|
|
72
85
|
readonly isApproved: Schema.Number;
|
|
86
|
+
readonly approvalUnknownReason: Schema.NullOr<Schema.Literals<readonly ["NotPermitted", "Throttled", "ProviderFailed"]>>;
|
|
73
87
|
readonly commentCount: Schema.NullOr<Schema.Number>;
|
|
74
88
|
readonly link: Schema.String;
|
|
75
89
|
readonly approvedBy: Schema.$Array<Schema.String>;
|
|
76
90
|
readonly approvedByArns: Schema.$Array<Schema.String>;
|
|
77
|
-
readonly approvalRules: Schema.withDecodingDefaultTypeKey<Schema.$Array<
|
|
91
|
+
readonly approvalRules: Schema.withDecodingDefaultTypeKey<Schema.$Array<Schema.Struct<{
|
|
92
|
+
readonly ruleName: Schema.String;
|
|
93
|
+
readonly requiredApprovals: Schema.Number;
|
|
94
|
+
readonly poolMembers: Schema.$Array<Schema.String>;
|
|
95
|
+
readonly poolMemberArns: Schema.withDecodingDefaultTypeKey<Schema.$Array<Schema.String>, never>;
|
|
96
|
+
readonly satisfied: Schema.Boolean;
|
|
97
|
+
readonly fromTemplate: Schema.optional<Schema.String>;
|
|
98
|
+
}>>, never>;
|
|
78
99
|
}>;
|
|
79
100
|
export type UpsertInput = typeof UpsertInput.Type;
|
|
101
|
+
/**
|
|
102
|
+
* A provider read's approval, as `recordApprovalEvaluation` and `approvalColumnsOf` take it: the
|
|
103
|
+
* evaluated value and its complete rules, or the reason evaluation failed. A `PullRequestDetail` is one.
|
|
104
|
+
*/
|
|
105
|
+
export interface ApprovalRead {
|
|
106
|
+
readonly isApproved: boolean;
|
|
107
|
+
readonly approvalRules: UpsertInput["approvalRules"];
|
|
108
|
+
readonly approvalUnknown?: ApprovalUnknownReason | undefined;
|
|
109
|
+
}
|
|
110
|
+
/** Both groups' versions as a read of the row saw them: what a recomputed write must still find. */
|
|
111
|
+
export declare const versionsOf: (row: {
|
|
112
|
+
readonly lastModifiedDate: Date;
|
|
113
|
+
readonly observationSeq: number;
|
|
114
|
+
readonly approvalVersion: Date;
|
|
115
|
+
readonly approvalObservationSeq: number;
|
|
116
|
+
}) => RowVersions;
|
|
117
|
+
/**
|
|
118
|
+
* A listed pull request's row group, complete. The listing reads open pull requests, so no merger and
|
|
119
|
+
* no closing time are authoritative values, not gaps.
|
|
120
|
+
*/
|
|
121
|
+
export declare const rowGroupOfListing: (input: UpsertInput) => RowGroup;
|
|
122
|
+
/** A listed pull request's approval group, complete. */
|
|
123
|
+
export declare const approvalGroupOfListing: (input: UpsertInput) => ApprovalGroup;
|
|
124
|
+
/** A provider re-read's row group, complete: a closed or merged read also carries when and by whom. */
|
|
125
|
+
export declare const rowGroupOfRead: (read: {
|
|
126
|
+
readonly title: string;
|
|
127
|
+
readonly description?: string | undefined;
|
|
128
|
+
readonly author: string;
|
|
129
|
+
readonly status: string;
|
|
130
|
+
readonly creationDate: Date;
|
|
131
|
+
readonly lastActivityDate: Date;
|
|
132
|
+
readonly sourceBranch: string;
|
|
133
|
+
readonly destinationBranch: string;
|
|
134
|
+
readonly isMergeable: boolean;
|
|
135
|
+
readonly approvedBy: ReadonlyArray<string>;
|
|
136
|
+
readonly approvedByArns: ReadonlyArray<string>;
|
|
137
|
+
readonly mergedBy?: string | undefined;
|
|
138
|
+
}) => RowGroup;
|
|
139
|
+
/** A provider read's approval group, complete. */
|
|
140
|
+
export declare const approvalGroupOfRead: (read: ApprovalRead) => ApprovalGroup;
|
|
141
|
+
/**
|
|
142
|
+
* The approval columns an upsert input carries for a provider read. While approval is unknown,
|
|
143
|
+
* `isApproved` is a placeholder: the write keeps an existing row's last known value.
|
|
144
|
+
*/
|
|
145
|
+
export declare const approvalColumnsOf: (read: ApprovalRead) => {
|
|
146
|
+
isApproved: number;
|
|
147
|
+
approvalUnknownReason: "NotPermitted" | "ProviderFailed" | "Throttled" | null;
|
|
148
|
+
};
|
|
80
149
|
/** Wrap an Effect with CacheError mapping and a span. */
|
|
81
150
|
export declare const cacheError: (op: string) => <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, CacheError, Exclude<R, import("effect/Tracer").ParentSpan>>;
|
|
82
151
|
/** Join a string array for the approved_by TEXT column. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../src/CacheService/repos/PullRequestRepo/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAgB,MAAM,QAAQ,CAAA;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../src/CacheService/repos/PullRequestRepo/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAgB,MAAM,QAAQ,CAAA;AACrD,OAAO,EACL,YAAY,EACZ,KAAK,qBAAqB,EAK3B,MAAM,oBAAoB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
|
12
12
|
* @category CacheService
|
|
13
13
|
*/
|
|
14
14
|
import { Effect, Schema, SchemaGetter } from "effect";
|
|
15
|
-
import { ApprovalRule, PullRequestId, PullRequestStatus, RepositoryName } from "../../../Domain.js";
|
|
15
|
+
import { ApprovalRule, ApprovalUnknownTag, PullRequestId, PullRequestStatus, RepositoryName } from "../../../Domain.js";
|
|
16
16
|
import { CacheError } from "../../CacheError.js";
|
|
17
17
|
/** DB column `TEXT` (comma-separated) <-> `readonly string[]` */
|
|
18
18
|
export const CommaSeparatedArray = Schema.NullOr(Schema.String).pipe(Schema.decodeTo(Schema.Array(Schema.String), {
|
|
@@ -37,6 +37,10 @@ const ApprovalRulesFromJson = Schema.NullOr(Schema.String).pipe(Schema.decodeTo(
|
|
|
37
37
|
}),
|
|
38
38
|
encode: SchemaGetter.transform((arr) => (arr.length > 0 ? JSON.stringify(arr) : null))
|
|
39
39
|
}));
|
|
40
|
+
/**
|
|
41
|
+
* The `approval_unknown_reason` column: the reason's tag, or NULL when the last evaluation succeeded.
|
|
42
|
+
*/
|
|
43
|
+
export const ApprovalUnknownColumn = Schema.NullOr(ApprovalUnknownTag);
|
|
40
44
|
export const CachedPullRequest = Schema.Struct({
|
|
41
45
|
id: PullRequestId,
|
|
42
46
|
awsAccountId: Schema.String,
|
|
@@ -49,11 +53,19 @@ export const CachedPullRequest = Schema.Struct({
|
|
|
49
53
|
repositoryName: RepositoryName,
|
|
50
54
|
creationDate: Schema.DateFromString,
|
|
51
55
|
lastModifiedDate: Schema.DateFromString,
|
|
56
|
+
/** With `lastModifiedDate`, the row group's version: the observation that last wrote it. */
|
|
57
|
+
observationSeq: Schema.Number,
|
|
58
|
+
/** The approval group's version: the provider last activity and observation that last wrote it. */
|
|
59
|
+
approvalVersion: Schema.DateFromString,
|
|
60
|
+
approvalObservationSeq: Schema.Number,
|
|
52
61
|
status: PullRequestStatus,
|
|
53
62
|
sourceBranch: Schema.String,
|
|
54
63
|
destinationBranch: Schema.String,
|
|
55
64
|
isMergeable: BooleanFromNumber,
|
|
56
65
|
isApproved: BooleanFromNumber,
|
|
66
|
+
approvalUnknownReason: ApprovalUnknownColumn,
|
|
67
|
+
/** The `approval_baseline_known` column: whether `isApproved` came from a successful evaluation. */
|
|
68
|
+
approvalBaselineKnown: BooleanFromNumber,
|
|
57
69
|
commentCount: Schema.NullOr(Schema.Number),
|
|
58
70
|
healthScore: Schema.NullOr(Schema.Number),
|
|
59
71
|
link: Schema.String,
|
|
@@ -85,11 +97,72 @@ export const UpsertInput = Schema.Struct({
|
|
|
85
97
|
destinationBranch: Schema.String,
|
|
86
98
|
isMergeable: Schema.Number,
|
|
87
99
|
isApproved: Schema.Number,
|
|
100
|
+
approvalUnknownReason: ApprovalUnknownColumn,
|
|
88
101
|
commentCount: Schema.NullOr(Schema.Number),
|
|
89
102
|
link: Schema.String,
|
|
90
103
|
approvedBy: Schema.Array(Schema.String),
|
|
91
104
|
approvedByArns: Schema.Array(Schema.String),
|
|
92
|
-
|
|
105
|
+
// The rule's plain shape, not the class: callers pass the provider's rules as plain objects, and the
|
|
106
|
+
// cache stores them as JSON either way.
|
|
107
|
+
approvalRules: Schema.Array(Schema.Struct(ApprovalRule.fields)).pipe(Schema.withDecodingDefaultTypeKey(Effect.succeed([])))
|
|
108
|
+
});
|
|
109
|
+
/** Both groups' versions as a read of the row saw them: what a recomputed write must still find. */
|
|
110
|
+
export const versionsOf = (row) => ({
|
|
111
|
+
row: { lastActivity: row.lastModifiedDate, observation: row.observationSeq },
|
|
112
|
+
approval: { lastActivity: row.approvalVersion, observation: row.approvalObservationSeq }
|
|
113
|
+
});
|
|
114
|
+
/**
|
|
115
|
+
* A listed pull request's row group, complete. The listing reads open pull requests, so no merger and
|
|
116
|
+
* no closing time are authoritative values, not gaps.
|
|
117
|
+
*/
|
|
118
|
+
export const rowGroupOfListing = (input) => ({
|
|
119
|
+
title: input.title,
|
|
120
|
+
description: input.description,
|
|
121
|
+
author: input.author,
|
|
122
|
+
status: input.status,
|
|
123
|
+
creationDate: input.creationDate,
|
|
124
|
+
sourceBranch: input.sourceBranch,
|
|
125
|
+
destinationBranch: input.destinationBranch,
|
|
126
|
+
isMergeable: input.isMergeable === 1,
|
|
127
|
+
approvedBy: input.approvedBy,
|
|
128
|
+
approvedByArns: input.approvedByArns,
|
|
129
|
+
mergedBy: null,
|
|
130
|
+
closedAt: null
|
|
131
|
+
});
|
|
132
|
+
/** A listed pull request's approval group, complete. */
|
|
133
|
+
export const approvalGroupOfListing = (input) => ({
|
|
134
|
+
isApproved: input.isApproved === 1,
|
|
135
|
+
approvalRules: input.approvalRules,
|
|
136
|
+
unknownReason: input.approvalUnknownReason
|
|
137
|
+
});
|
|
138
|
+
/** A provider re-read's row group, complete: a closed or merged read also carries when and by whom. */
|
|
139
|
+
export const rowGroupOfRead = (read) => ({
|
|
140
|
+
title: read.title,
|
|
141
|
+
description: read.description ?? null,
|
|
142
|
+
author: read.author,
|
|
143
|
+
status: read.status,
|
|
144
|
+
creationDate: read.creationDate.toISOString(),
|
|
145
|
+
sourceBranch: read.sourceBranch,
|
|
146
|
+
destinationBranch: read.destinationBranch,
|
|
147
|
+
isMergeable: read.isMergeable,
|
|
148
|
+
approvedBy: read.approvedBy,
|
|
149
|
+
approvedByArns: read.approvedByArns,
|
|
150
|
+
mergedBy: read.mergedBy ?? null,
|
|
151
|
+
closedAt: read.status === "OPEN" ? null : read.lastActivityDate.toISOString()
|
|
152
|
+
});
|
|
153
|
+
/** A provider read's approval group, complete. */
|
|
154
|
+
export const approvalGroupOfRead = (read) => ({
|
|
155
|
+
isApproved: read.isApproved,
|
|
156
|
+
approvalRules: read.approvalRules,
|
|
157
|
+
unknownReason: read.approvalUnknown?._tag ?? null
|
|
158
|
+
});
|
|
159
|
+
/**
|
|
160
|
+
* The approval columns an upsert input carries for a provider read. While approval is unknown,
|
|
161
|
+
* `isApproved` is a placeholder: the write keeps an existing row's last known value.
|
|
162
|
+
*/
|
|
163
|
+
export const approvalColumnsOf = (read) => ({
|
|
164
|
+
isApproved: read.approvalUnknown === undefined && read.isApproved ? 1 : 0,
|
|
165
|
+
approvalUnknownReason: read.approvalUnknown?._tag ?? null
|
|
93
166
|
});
|
|
94
167
|
/** Wrap an Effect with CacheError mapping and a span. */
|
|
95
168
|
export const cacheError = (op) => (effect) => effect.pipe(Effect.mapError((cause) => new CacheError({ operation: `PullRequestRepo.${op}`, cause })), Effect.withSpan(`PullRequestRepo.${op}`));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../../src/CacheService/repos/PullRequestRepo/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../../src/CacheService/repos/PullRequestRepo/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrD,OAAO,EACL,YAAY,EAEZ,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAGhD,iEAAiE;AACjE,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAClE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;IAC3C,MAAM,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,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e,EAAE,IAAI,IAAI,IAAI;CAClD,CAAC,CAAA;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAkB,EAAE,EAAE,CAAC,CAAC;IACxD,UAAU,EAAE,IAAI,CAAC,eAAe,KAAK,SAAS,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzE,qBAAqB,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,IAAI,IAAI;CAC1D,CAAC,CAAA;AAEF,yDAAyD;AACzD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,CAAU,MAA8B,EAAE,EAAE,CACpF,MAAM,CAAC,IAAI,CACT,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,EAAE,SAAS,EAAE,mBAAmB,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,EACzF,MAAM,CAAC,QAAQ,CAAC,mBAAmB,EAAE,EAAE,CAAC,CACzC,CAAA;AAEH,2DAA2D;AAC3D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAA0B,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA"}
|
|
@@ -4,34 +4,57 @@
|
|
|
4
4
|
* SQL write operations for the pull_requests table. Each function takes `sql`
|
|
5
5
|
* and `publish` (change event) and returns the mutation implementations.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* **Gotchas**
|
|
12
|
-
*
|
|
13
|
-
* - approval_rules uses `= excluded` (no COALESCE) — always fresh from API
|
|
14
|
-
* - repo_account_id uses COALESCE — preserves across partial updates
|
|
7
|
+
* Every write goes through `rowWrites`: provider reads write whole column groups under their versions
|
|
8
|
+
* (`upsert` for a listing, `writeRead` for a re-read), recomputed values go through `writeDerived`,
|
|
9
|
+
* which applies only to the row as it was read, and a not-found read deletes through `deleteOne`.
|
|
15
10
|
*
|
|
16
11
|
* @category CacheService
|
|
17
12
|
*/
|
|
13
|
+
import type { Option } from "effect";
|
|
18
14
|
import { Effect } from "effect";
|
|
19
15
|
import type * as SqlClient from "effect/sql/SqlClient";
|
|
20
|
-
import { UpsertInput } from "./internal.js";
|
|
16
|
+
import { type ApprovalRead, CachedPullRequest, rowGroupOfRead, UpsertInput } from "./internal.js";
|
|
17
|
+
import { type DerivedColumns, type GroupsWritten, type RowVersions } from "./rowWrites.js";
|
|
18
|
+
/** What an upsert wrote, and the row it replaced (none for a pull request seen for the first time). */
|
|
19
|
+
export interface UpsertResult extends GroupsWritten {
|
|
20
|
+
readonly replaced: Option.Option<CachedPullRequest>;
|
|
21
|
+
}
|
|
21
22
|
export interface PullRequestCoordinates {
|
|
22
23
|
readonly repositoryName: string;
|
|
23
24
|
readonly accountRegion: string;
|
|
24
25
|
}
|
|
25
26
|
export declare const mutations: (sql: SqlClient.SqlClient, publish: Effect.Effect<void>) => {
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
/** The next observation number: take it before the provider read whose results a write carries. */
|
|
28
|
+
observe: () => Effect.Effect<number, import("../../CacheError.ts").CacheError, never>;
|
|
29
|
+
/**
|
|
30
|
+
* Write a listed pull request observed by `observation`: its row and approval groups, each unless
|
|
31
|
+
* that group is newer. The result says which were written; a group not written means a newer read
|
|
32
|
+
* already reached it.
|
|
33
|
+
*/
|
|
34
|
+
upsert: (input: UpsertInput, observation: number) => Effect.Effect<UpsertResult, import("../../CacheError.ts").CacheError, never>;
|
|
35
|
+
/**
|
|
36
|
+
* Write a pull request read in full (a single-PR refresh): like `upsert`, but both groups come
|
|
37
|
+
* from `read`, so a merged or closed read carries its merger and closing time.
|
|
38
|
+
*/
|
|
39
|
+
upsertRead: (input: UpsertInput, read: Parameters<typeof rowGroupOfRead>[0] & ApprovalRead, observation: number) => Effect.Effect<UpsertResult, import("../../CacheError.ts").CacheError, never>;
|
|
40
|
+
upsertMany: (prs: ReadonlyArray<UpsertInput>, observation: number) => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
41
|
+
/**
|
|
42
|
+
* Write a provider re-read of a cached pull request, observed by `observation`: its whole row group
|
|
43
|
+
* (including a closed or merged status) and approval group, each unless that group is newer.
|
|
44
|
+
*/
|
|
45
|
+
writeRead: (awsAccountId: string, id: string, read: Parameters<typeof rowGroupOfRead>[0] & ApprovalRead, observation: number, coordinates?: PullRequestCoordinates) => Effect.Effect<GroupsWritten, import("../../CacheError.ts").CacheError, never>;
|
|
46
|
+
/**
|
|
47
|
+
* Write values recomputed from a cached row (diff stats, comment count, health score), only while
|
|
48
|
+
* the row still holds `observed`, the versions it was read at. True when written.
|
|
49
|
+
*/
|
|
50
|
+
writeDerived: (awsAccountId: string, id: string, observed: RowVersions, columns: DerivedColumns, coordinates?: PullRequestCoordinates) => Effect.Effect<boolean, import("../../CacheError.ts").CacheError, never>;
|
|
28
51
|
deleteStale: (olderThan: string) => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
29
52
|
deleteStaleOpen: (olderThan: string) => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Delete a row the provider answered "does not exist" for, in a read begun at `observation`,
|
|
55
|
+
* unless a read that began later has written it since. True when the row was deleted.
|
|
56
|
+
*/
|
|
57
|
+
deleteOne: (awsAccountId: string, id: string, observation: number, coordinates?: PullRequestCoordinates) => Effect.Effect<boolean, import("../../CacheError.ts").CacheError, never>;
|
|
35
58
|
refreshCommentedBy: () => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
36
59
|
propagateRepoAccountId: () => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
37
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../../src/CacheService/repos/PullRequestRepo/mutations.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../../src/CacheService/repos/PullRequestRepo/mutations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAA;AACvC,OAAO,KAAK,KAAK,SAAS,MAAM,sBAAsB,CAAA;AAGtD,OAAO,EAGL,KAAK,YAAY,EACjB,iBAAiB,EAGjB,cAAc,EACd,WAAW,EACZ,MAAM,eAAe,CAAA;AAEtB,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,KAAK,WAAW,EAEjB,MAAM,gBAAgB,CAAA;AAEvB,uGAAuG;AACvG,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAA;CACpD;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;CAC/B;AAED,eAAO,MAAM,SAAS,QAAS,SAAS,CAAC,SAAS,WAAW,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;IAkE5E,mGAAmG;;IAGnG;;;;OAIG;oBACa,WAAW,eAAe,MAAM;IAMhD;;;OAGG;wBAEM,WAAW,QACZ,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,eAC5C,MAAM;sBAOH,aAAa,CAAC,WAAW,CAAC,eAAe,MAAM;IAMjE;;;OAGG;8BAEa,MAAM,MAChB,MAAM,QACJ,UAAU,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