@knpkv/codecommit-core 0.10.1 → 0.13.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/README.md +44 -3
- package/dist/AwsClient/approvalRuleContent.js.map +1 -1
- package/dist/AwsClient/getCommentsForPullRequest.d.ts +3 -1
- package/dist/AwsClient/getCommentsForPullRequest.d.ts.map +1 -1
- package/dist/AwsClient/getCommentsForPullRequest.js +14 -7
- package/dist/AwsClient/getCommentsForPullRequest.js.map +1 -1
- package/dist/AwsClient/getDifferences.js +1 -1
- package/dist/AwsClient/getDifferences.js.map +1 -1
- package/dist/AwsClient/getPullRequest.d.ts.map +1 -1
- package/dist/AwsClient/getPullRequest.js +7 -1
- package/dist/AwsClient/getPullRequest.js.map +1 -1
- package/dist/AwsClient/getPullRequests.d.ts +1 -1
- package/dist/AwsClient/getPullRequests.d.ts.map +1 -1
- package/dist/AwsClient/getPullRequests.js +6 -7
- package/dist/AwsClient/getPullRequests.js.map +1 -1
- package/dist/AwsClient/internal.d.ts +7 -3
- package/dist/AwsClient/internal.d.ts.map +1 -1
- package/dist/AwsClient/internal.js +15 -5
- package/dist/AwsClient/internal.js.map +1 -1
- package/dist/AwsClient/listBranches.d.ts.map +1 -1
- package/dist/AwsClient/listBranches.js +1 -1
- package/dist/AwsClient/listBranches.js.map +1 -1
- package/dist/AwsClientConfig.d.ts +3 -3
- package/dist/AwsClientConfig.d.ts.map +1 -1
- package/dist/AwsClientConfig.js.map +1 -1
- package/dist/CacheService/CacheError.js +1 -1
- package/dist/CacheService/CacheError.js.map +1 -1
- package/dist/CacheService/Database.d.ts +5 -4
- package/dist/CacheService/Database.d.ts.map +1 -1
- package/dist/CacheService/Database.js +8 -5
- package/dist/CacheService/Database.js.map +1 -1
- package/dist/CacheService/EventsHub.d.ts +2 -2
- package/dist/CacheService/EventsHub.d.ts.map +1 -1
- package/dist/CacheService/diff.js +2 -2
- package/dist/CacheService/diff.js.map +1 -1
- package/dist/CacheService/internal/PrivateDatabasePathNode.d.ts +34 -0
- package/dist/CacheService/internal/PrivateDatabasePathNode.d.ts.map +1 -0
- package/dist/CacheService/internal/PrivateDatabasePathNode.js +63 -0
- package/dist/CacheService/internal/PrivateDatabasePathNode.js.map +1 -0
- package/dist/CacheService/migrations/0016_sandbox_access_password.d.ts +5 -0
- package/dist/CacheService/migrations/0016_sandbox_access_password.d.ts.map +1 -0
- package/dist/CacheService/migrations/0016_sandbox_access_password.js +4 -0
- package/dist/CacheService/migrations/0016_sandbox_access_password.js.map +1 -0
- package/dist/CacheService/repos/CommentRepo.d.ts +3 -3
- package/dist/CacheService/repos/CommentRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/NotificationRepo.d.ts +3 -3
- package/dist/CacheService/repos/NotificationRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/index.d.ts +108 -108
- package/dist/CacheService/repos/PullRequestRepo/index.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/queries.d.ts +106 -106
- package/dist/CacheService/repos/PullRequestRepo/queries.d.ts.map +1 -1
- package/dist/CacheService/repos/SandboxRepo.d.ts +73 -67
- package/dist/CacheService/repos/SandboxRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/SandboxRepo.js +3 -2
- package/dist/CacheService/repos/SandboxRepo.js.map +1 -1
- package/dist/CacheService/repos/StatsRepo/index.d.ts +3 -3
- package/dist/CacheService/repos/StatsRepo/index.d.ts.map +1 -1
- package/dist/CacheService/repos/SubscriptionRepo.d.ts +8 -8
- package/dist/CacheService/repos/SubscriptionRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/SyncMetadataRepo.d.ts +3 -3
- package/dist/CacheService/repos/SyncMetadataRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/commentLocations.d.ts +1 -1
- package/dist/CacheService/repos/commentLocations.d.ts.map +1 -1
- package/dist/CacheService/repos/commentLocations.js +15 -79
- package/dist/CacheService/repos/commentLocations.js.map +1 -1
- package/dist/ChildEnv.d.ts +67 -2
- package/dist/ChildEnv.d.ts.map +1 -1
- package/dist/ChildEnv.js +47 -14
- package/dist/ChildEnv.js.map +1 -1
- package/dist/ConfigService/SandboxPolicy.d.ts +37 -0
- package/dist/ConfigService/SandboxPolicy.d.ts.map +1 -0
- package/dist/ConfigService/SandboxPolicy.js +72 -0
- package/dist/ConfigService/SandboxPolicy.js.map +1 -0
- package/dist/ConfigService/index.d.ts +3 -1
- package/dist/ConfigService/index.d.ts.map +1 -1
- package/dist/ConfigService/index.js +10 -2
- package/dist/ConfigService/index.js.map +1 -1
- package/dist/ConfigService/internal.d.ts +33 -0
- package/dist/ConfigService/internal.d.ts.map +1 -1
- package/dist/ConfigService/internal.js +64 -9
- package/dist/ConfigService/internal.js.map +1 -1
- package/dist/ConfigService/load.d.ts +34 -23
- package/dist/ConfigService/load.d.ts.map +1 -1
- package/dist/ConfigService/load.js +2 -2
- package/dist/ConfigService/load.js.map +1 -1
- package/dist/ConfigService/reset.d.ts +33 -22
- package/dist/ConfigService/reset.d.ts.map +1 -1
- package/dist/ConfigService/save.d.ts +33 -22
- package/dist/ConfigService/save.d.ts.map +1 -1
- package/dist/Domain.d.ts +17 -1
- package/dist/Domain.d.ts.map +1 -1
- package/dist/Domain.js +15 -6
- package/dist/Domain.js.map +1 -1
- package/dist/Errors.d.ts +11 -1
- package/dist/Errors.d.ts.map +1 -1
- package/dist/Errors.js +19 -10
- package/dist/Errors.js.map +1 -1
- package/dist/PRService/index.d.ts +8 -7
- package/dist/PRService/index.d.ts.map +1 -1
- package/dist/PRService/index.js.map +1 -1
- package/dist/PRService/internal.d.ts +31 -31
- package/dist/PRService/internal.d.ts.map +1 -1
- package/dist/PRService/internal.js +5 -5
- package/dist/PRService/internal.js.map +1 -1
- package/dist/PRService/refresh.d.ts +2 -2
- package/dist/PRService/refresh.d.ts.map +1 -1
- package/dist/PRService/refresh.js +22 -3
- package/dist/PRService/refresh.js.map +1 -1
- package/dist/PRService/refreshFetch.d.ts +2 -1
- package/dist/PRService/refreshFetch.d.ts.map +1 -1
- package/dist/PRService/refreshFetch.js +34 -5
- package/dist/PRService/refreshFetch.js.map +1 -1
- package/dist/PRService/refreshResolve.d.ts +6 -6
- package/dist/PRService/refreshResolve.d.ts.map +1 -1
- package/dist/PRService/refreshResolve.js +3 -1
- package/dist/PRService/refreshResolve.js.map +1 -1
- package/dist/PRService/refreshSinglePR.d.ts +7 -1
- package/dist/PRService/refreshSinglePR.d.ts.map +1 -1
- package/dist/PRService/refreshSinglePR.js +8 -5
- package/dist/PRService/refreshSinglePR.js.map +1 -1
- package/dist/PermissionService/AuditLog.d.ts +3 -3
- package/dist/PermissionService/AuditLog.d.ts.map +1 -1
- package/dist/PermissionService/AuditLog.js +2 -2
- package/dist/PermissionService/AuditLog.js.map +1 -1
- package/dist/PermissionService/PermissionGateLive.d.ts +3 -0
- package/dist/PermissionService/PermissionGateLive.d.ts.map +1 -1
- package/dist/PermissionService/PermissionGateLive.js +9 -20
- package/dist/PermissionService/PermissionGateLive.js.map +1 -1
- package/dist/PermissionService/index.d.ts +2 -2
- package/dist/PermissionService/index.d.ts.map +1 -1
- package/dist/PermissionService/index.js +9 -1
- package/dist/PermissionService/index.js.map +1 -1
- package/dist/PermissionService/operations.d.ts +24 -2
- package/dist/PermissionService/operations.d.ts.map +1 -1
- package/dist/PermissionService/operations.js +18 -0
- package/dist/PermissionService/operations.js.map +1 -1
- package/dist/ReadClient/ReadClient.d.ts +18 -3
- package/dist/ReadClient/ReadClient.d.ts.map +1 -1
- package/dist/ReadClient/ReadClient.js +35 -7
- package/dist/ReadClient/ReadClient.js.map +1 -1
- package/dist/ReadClient/ReadProvider.d.ts +6 -0
- package/dist/ReadClient/ReadProvider.d.ts.map +1 -1
- package/dist/ReadClient/ReadProvider.js +4 -3
- package/dist/ReadClient/ReadProvider.js.map +1 -1
- package/dist/ReadClient/errors.js +3 -3
- package/dist/ReadClient/errors.js.map +1 -1
- package/dist/ReadClient/models.d.ts +15 -1
- package/dist/ReadClient/models.d.ts.map +1 -1
- package/dist/ReadClient/models.js +14 -1
- package/dist/ReadClient/models.js.map +1 -1
- package/dist/ReviewClient/ReviewClient.d.ts.map +1 -1
- package/dist/ReviewClient/ReviewClient.js +57 -4
- package/dist/ReviewClient/ReviewClient.js.map +1 -1
- package/dist/ReviewClient/ReviewProvider.d.ts +30 -0
- package/dist/ReviewClient/ReviewProvider.d.ts.map +1 -1
- package/dist/ReviewClient/ReviewProvider.js +67 -5
- package/dist/ReviewClient/ReviewProvider.js.map +1 -1
- package/dist/ReviewClient/errors.d.ts +3 -1
- package/dist/ReviewClient/errors.d.ts.map +1 -1
- package/dist/ReviewClient/errors.js +73 -2
- package/dist/ReviewClient/errors.js.map +1 -1
- package/dist/ReviewClient/index.d.ts +1 -1
- package/dist/ReviewClient/index.d.ts.map +1 -1
- package/dist/ReviewClient/index.js +1 -1
- package/dist/ReviewClient/index.js.map +1 -1
- package/dist/ReviewClient/models.d.ts +38 -1
- package/dist/ReviewClient/models.d.ts.map +1 -1
- package/dist/ReviewClient/models.js +17 -5
- package/dist/ReviewClient/models.js.map +1 -1
- package/dist/ReviewProfile.d.ts +3 -0
- package/dist/ReviewProfile.d.ts.map +1 -0
- package/dist/ReviewProfile.js +3 -0
- package/dist/ReviewProfile.js.map +1 -0
- package/dist/SandboxService/DockerService.d.ts +24 -15
- package/dist/SandboxService/DockerService.d.ts.map +1 -1
- package/dist/SandboxService/DockerService.js +22 -6
- package/dist/SandboxService/DockerService.js.map +1 -1
- package/dist/SandboxService/PluginService.d.ts +2 -2
- package/dist/SandboxService/PluginService.d.ts.map +1 -1
- package/dist/SandboxService/SandboxService.d.ts +88 -73
- package/dist/SandboxService/SandboxService.d.ts.map +1 -1
- package/dist/SandboxService/SandboxService.js +69 -21
- package/dist/SandboxService/SandboxService.js.map +1 -1
- package/dist/SandboxService/SandboxWorkerScope.d.ts +2 -2
- package/dist/SandboxService/SandboxWorkerScope.d.ts.map +1 -1
- package/dist/SandboxService/SandboxWorkerScope.js.map +1 -1
- package/package.json +7 -6
|
@@ -25,120 +25,120 @@ declare const makePullRequestRepo: Effect.Effect<{
|
|
|
25
25
|
updateHealthScore: (awsAccountId: string, id: string, score: number) => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
26
26
|
refreshCommentedBy: () => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
27
27
|
propagateRepoAccountId: () => Effect.Effect<void, import("../../CacheError.ts").CacheError, never>;
|
|
28
|
-
findAll: () => Effect.Effect<
|
|
29
|
-
readonly id: import("effect/
|
|
30
|
-
readonly awsAccountId:
|
|
31
|
-
readonly repoAccountId:
|
|
32
|
-
readonly accountProfile:
|
|
33
|
-
readonly accountRegion:
|
|
34
|
-
readonly title:
|
|
35
|
-
readonly description:
|
|
36
|
-
readonly author:
|
|
37
|
-
readonly repositoryName: import("effect/
|
|
38
|
-
readonly creationDate:
|
|
39
|
-
readonly lastModifiedDate:
|
|
40
|
-
readonly status:
|
|
41
|
-
readonly sourceBranch:
|
|
42
|
-
readonly destinationBranch:
|
|
43
|
-
readonly isMergeable:
|
|
44
|
-
readonly isApproved:
|
|
45
|
-
readonly commentCount:
|
|
46
|
-
readonly healthScore:
|
|
47
|
-
readonly link:
|
|
48
|
-
readonly fetchedAt:
|
|
49
|
-
readonly filesAdded:
|
|
50
|
-
readonly filesModified:
|
|
51
|
-
readonly filesDeleted:
|
|
52
|
-
readonly closedAt:
|
|
53
|
-
readonly mergedBy:
|
|
54
|
-
readonly approvedBy:
|
|
55
|
-
readonly approvedByArns:
|
|
56
|
-
readonly commentedBy:
|
|
57
|
-
readonly approvalRules:
|
|
58
|
-
}
|
|
59
|
-
findMissingDiffStats: () => Effect.Effect<
|
|
60
|
-
readonly id: import("effect/
|
|
61
|
-
readonly awsAccountId:
|
|
62
|
-
readonly repoAccountId:
|
|
63
|
-
readonly accountProfile:
|
|
64
|
-
readonly accountRegion:
|
|
65
|
-
readonly title:
|
|
66
|
-
readonly description:
|
|
67
|
-
readonly author:
|
|
68
|
-
readonly repositoryName: import("effect/
|
|
69
|
-
readonly creationDate:
|
|
70
|
-
readonly lastModifiedDate:
|
|
71
|
-
readonly status:
|
|
72
|
-
readonly sourceBranch:
|
|
73
|
-
readonly destinationBranch:
|
|
74
|
-
readonly isMergeable:
|
|
75
|
-
readonly isApproved:
|
|
76
|
-
readonly commentCount:
|
|
77
|
-
readonly healthScore:
|
|
78
|
-
readonly link:
|
|
79
|
-
readonly fetchedAt:
|
|
80
|
-
readonly filesAdded:
|
|
81
|
-
readonly filesModified:
|
|
82
|
-
readonly filesDeleted:
|
|
83
|
-
readonly closedAt:
|
|
84
|
-
readonly mergedBy:
|
|
85
|
-
readonly approvedBy:
|
|
86
|
-
readonly approvedByArns:
|
|
87
|
-
readonly commentedBy:
|
|
88
|
-
readonly approvalRules:
|
|
89
|
-
}
|
|
90
|
-
findByAccountAndId: (awsAccountId: string, id: string) => Effect.Effect<
|
|
91
|
-
readonly id: import("effect/
|
|
92
|
-
readonly awsAccountId:
|
|
93
|
-
readonly repoAccountId:
|
|
94
|
-
readonly accountProfile:
|
|
95
|
-
readonly accountRegion:
|
|
96
|
-
readonly title:
|
|
97
|
-
readonly description:
|
|
98
|
-
readonly author:
|
|
99
|
-
readonly repositoryName: import("effect/
|
|
100
|
-
readonly creationDate:
|
|
101
|
-
readonly lastModifiedDate:
|
|
102
|
-
readonly status:
|
|
103
|
-
readonly sourceBranch:
|
|
104
|
-
readonly destinationBranch:
|
|
105
|
-
readonly isMergeable:
|
|
106
|
-
readonly isApproved:
|
|
107
|
-
readonly commentCount:
|
|
108
|
-
readonly healthScore:
|
|
109
|
-
readonly link:
|
|
110
|
-
readonly fetchedAt:
|
|
111
|
-
readonly filesAdded:
|
|
112
|
-
readonly filesModified:
|
|
113
|
-
readonly filesDeleted:
|
|
114
|
-
readonly closedAt:
|
|
115
|
-
readonly mergedBy:
|
|
116
|
-
readonly approvedBy:
|
|
117
|
-
readonly approvedByArns:
|
|
118
|
-
readonly commentedBy:
|
|
119
|
-
readonly approvalRules:
|
|
120
|
-
},
|
|
28
|
+
findAll: () => Effect.Effect<{
|
|
29
|
+
readonly id: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
30
|
+
readonly awsAccountId: string;
|
|
31
|
+
readonly repoAccountId: string | null;
|
|
32
|
+
readonly accountProfile: string;
|
|
33
|
+
readonly accountRegion: string;
|
|
34
|
+
readonly title: string;
|
|
35
|
+
readonly description: string | null;
|
|
36
|
+
readonly author: string;
|
|
37
|
+
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
38
|
+
readonly creationDate: Date;
|
|
39
|
+
readonly lastModifiedDate: Date;
|
|
40
|
+
readonly status: "CLOSED" | "MERGED" | "OPEN";
|
|
41
|
+
readonly sourceBranch: string;
|
|
42
|
+
readonly destinationBranch: string;
|
|
43
|
+
readonly isMergeable: boolean;
|
|
44
|
+
readonly isApproved: boolean;
|
|
45
|
+
readonly commentCount: number | null;
|
|
46
|
+
readonly healthScore: number | null;
|
|
47
|
+
readonly link: string;
|
|
48
|
+
readonly fetchedAt: string;
|
|
49
|
+
readonly filesAdded: number | null;
|
|
50
|
+
readonly filesModified: number | null;
|
|
51
|
+
readonly filesDeleted: number | null;
|
|
52
|
+
readonly closedAt: string | null;
|
|
53
|
+
readonly mergedBy: string | null;
|
|
54
|
+
readonly approvedBy: readonly string[];
|
|
55
|
+
readonly approvedByArns: readonly string[];
|
|
56
|
+
readonly commentedBy: readonly string[];
|
|
57
|
+
readonly approvalRules: readonly import("../../../Domain.ts").ApprovalRule[];
|
|
58
|
+
}[], import("../../CacheError.ts").CacheError, never>;
|
|
59
|
+
findMissingDiffStats: () => Effect.Effect<{
|
|
60
|
+
readonly id: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
61
|
+
readonly awsAccountId: string;
|
|
62
|
+
readonly repoAccountId: string | null;
|
|
63
|
+
readonly accountProfile: string;
|
|
64
|
+
readonly accountRegion: string;
|
|
65
|
+
readonly title: string;
|
|
66
|
+
readonly description: string | null;
|
|
67
|
+
readonly author: string;
|
|
68
|
+
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
69
|
+
readonly creationDate: Date;
|
|
70
|
+
readonly lastModifiedDate: Date;
|
|
71
|
+
readonly status: "CLOSED" | "MERGED" | "OPEN";
|
|
72
|
+
readonly sourceBranch: string;
|
|
73
|
+
readonly destinationBranch: string;
|
|
74
|
+
readonly isMergeable: boolean;
|
|
75
|
+
readonly isApproved: boolean;
|
|
76
|
+
readonly commentCount: number | null;
|
|
77
|
+
readonly healthScore: number | null;
|
|
78
|
+
readonly link: string;
|
|
79
|
+
readonly fetchedAt: string;
|
|
80
|
+
readonly filesAdded: number | null;
|
|
81
|
+
readonly filesModified: number | null;
|
|
82
|
+
readonly filesDeleted: number | null;
|
|
83
|
+
readonly closedAt: string | null;
|
|
84
|
+
readonly mergedBy: string | null;
|
|
85
|
+
readonly approvedBy: readonly string[];
|
|
86
|
+
readonly approvedByArns: readonly string[];
|
|
87
|
+
readonly commentedBy: readonly string[];
|
|
88
|
+
readonly approvalRules: readonly import("../../../Domain.ts").ApprovalRule[];
|
|
89
|
+
}[], import("../../CacheError.ts").CacheError, never>;
|
|
90
|
+
findByAccountAndId: (awsAccountId: string, id: string) => Effect.Effect<{
|
|
91
|
+
readonly id: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
92
|
+
readonly awsAccountId: string;
|
|
93
|
+
readonly repoAccountId: string | null;
|
|
94
|
+
readonly accountProfile: string;
|
|
95
|
+
readonly accountRegion: string;
|
|
96
|
+
readonly title: string;
|
|
97
|
+
readonly description: string | null;
|
|
98
|
+
readonly author: string;
|
|
99
|
+
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
100
|
+
readonly creationDate: Date;
|
|
101
|
+
readonly lastModifiedDate: Date;
|
|
102
|
+
readonly status: "CLOSED" | "MERGED" | "OPEN";
|
|
103
|
+
readonly sourceBranch: string;
|
|
104
|
+
readonly destinationBranch: string;
|
|
105
|
+
readonly isMergeable: boolean;
|
|
106
|
+
readonly isApproved: boolean;
|
|
107
|
+
readonly commentCount: number | null;
|
|
108
|
+
readonly healthScore: number | null;
|
|
109
|
+
readonly link: string;
|
|
110
|
+
readonly fetchedAt: string;
|
|
111
|
+
readonly filesAdded: number | null;
|
|
112
|
+
readonly filesModified: number | null;
|
|
113
|
+
readonly filesDeleted: number | null;
|
|
114
|
+
readonly closedAt: string | null;
|
|
115
|
+
readonly mergedBy: string | null;
|
|
116
|
+
readonly approvedBy: readonly string[];
|
|
117
|
+
readonly approvedByArns: readonly string[];
|
|
118
|
+
readonly commentedBy: readonly string[];
|
|
119
|
+
readonly approvalRules: readonly import("../../../Domain.ts").ApprovalRule[];
|
|
120
|
+
}, import("../../CacheError.ts").CacheError, never>;
|
|
121
121
|
search: (query: string, opts?: {
|
|
122
122
|
readonly limit?: number;
|
|
123
123
|
readonly offset?: number;
|
|
124
124
|
}) => Effect.Effect<import("./internal.js").SearchResult, import("../../CacheError.ts").CacheError, never>;
|
|
125
|
-
findStaleOpen: (olderThan: string) => Effect.Effect<
|
|
126
|
-
readonly id:
|
|
127
|
-
readonly awsAccountId:
|
|
128
|
-
readonly accountProfile: import("effect/
|
|
129
|
-
readonly accountRegion: import("effect/
|
|
130
|
-
}
|
|
131
|
-
findOpenInRange: (weekStart: string, weekEnd: string) => Effect.Effect<
|
|
132
|
-
readonly id:
|
|
133
|
-
readonly awsAccountId:
|
|
134
|
-
readonly accountProfile: import("effect/
|
|
135
|
-
readonly accountRegion: import("effect/
|
|
136
|
-
}
|
|
125
|
+
findStaleOpen: (olderThan: string) => Effect.Effect<{
|
|
126
|
+
readonly id: string;
|
|
127
|
+
readonly awsAccountId: string;
|
|
128
|
+
readonly accountProfile: string & import("effect/Brand").Brand<"AwsProfileName">;
|
|
129
|
+
readonly accountRegion: string & import("effect/Brand").Brand<"AwsRegion">;
|
|
130
|
+
}[], import("../../CacheError.ts").CacheError, never>;
|
|
131
|
+
findOpenInRange: (weekStart: string, weekEnd: string) => Effect.Effect<{
|
|
132
|
+
readonly id: string;
|
|
133
|
+
readonly awsAccountId: string;
|
|
134
|
+
readonly accountProfile: string & import("effect/Brand").Brand<"AwsProfileName">;
|
|
135
|
+
readonly accountRegion: string & import("effect/Brand").Brand<"AwsRegion">;
|
|
136
|
+
}[], import("../../CacheError.ts").CacheError, never>;
|
|
137
137
|
}, never, EventsHub | SqlClient.SqlClient>;
|
|
138
|
-
export interface
|
|
138
|
+
export interface PullRequestRepoContract extends Success<typeof makePullRequestRepo> {
|
|
139
139
|
}
|
|
140
|
-
declare const PullRequestRepo_base: Context.ServiceClass<PullRequestRepo, "PullRequestRepo",
|
|
140
|
+
declare const PullRequestRepo_base: Context.ServiceClass<PullRequestRepo, "PullRequestRepo", PullRequestRepoContract>;
|
|
141
141
|
export declare class PullRequestRepo extends PullRequestRepo_base {
|
|
142
|
-
static readonly Default: Layer.Layer<PullRequestRepo, import("effect/Config").ConfigError | import("@effect/sql-libsql/LibsqlMigrator").MigrationError | import("effect/
|
|
142
|
+
static readonly Default: Layer.Layer<PullRequestRepo, import("../../CacheError.ts").CacheError | import("effect/Config").ConfigError | import("@effect/sql-libsql/LibsqlMigrator").MigrationError | import("effect/unstable/sql/SqlError").SqlError, never>;
|
|
143
143
|
}
|
|
144
144
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,MAAM,+BAA+B,CAAA;AAE1D,OAAO,EAAE,SAAS,EAAc,MAAM,oBAAoB,CAAA;AAI1D,OAAO,EAAE,iBAAiB,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACjF,YAAY,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAE/E,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAevB,CAAA;AAEF,MAAM,WAAW,
|
|
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,MAAM,+BAA+B,CAAA;AAE1D,OAAO,EAAE,SAAS,EAAc,MAAM,oBAAoB,CAAA;AAI1D,OAAO,EAAE,iBAAiB,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACjF,YAAY,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAE/E,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAevB,CAAA;AAEF,MAAM,WAAW,uBAAwB,SAAQ,OAAO,CAAC,OAAO,mBAAmB,CAAC;CAAG;;AAEvF,qBAAa,eAAgB,SAAQ,oBAGf;IACpB,MAAM,CAAC,QAAQ,CAAC,OAAO,qOAEtB;CACF"}
|
|
@@ -6,117 +6,117 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @category CacheService
|
|
8
8
|
*/
|
|
9
|
-
import { Effect
|
|
9
|
+
import { Effect } from "effect";
|
|
10
10
|
import type * as SqlClient from "effect/unstable/sql/SqlClient";
|
|
11
11
|
import type { CacheError } from "../../CacheError.js";
|
|
12
12
|
import { type SearchResult } from "./internal.js";
|
|
13
|
-
export declare const findAll: (sql: SqlClient.SqlClient) => () => Effect.Effect<
|
|
14
|
-
readonly id:
|
|
15
|
-
readonly awsAccountId:
|
|
16
|
-
readonly repoAccountId:
|
|
17
|
-
readonly accountProfile:
|
|
18
|
-
readonly accountRegion:
|
|
19
|
-
readonly title:
|
|
20
|
-
readonly description:
|
|
21
|
-
readonly author:
|
|
22
|
-
readonly repositoryName:
|
|
23
|
-
readonly creationDate:
|
|
24
|
-
readonly lastModifiedDate:
|
|
25
|
-
readonly status:
|
|
26
|
-
readonly sourceBranch:
|
|
27
|
-
readonly destinationBranch:
|
|
28
|
-
readonly isMergeable:
|
|
29
|
-
readonly isApproved:
|
|
30
|
-
readonly commentCount:
|
|
31
|
-
readonly healthScore:
|
|
32
|
-
readonly link:
|
|
33
|
-
readonly fetchedAt:
|
|
34
|
-
readonly filesAdded:
|
|
35
|
-
readonly filesModified:
|
|
36
|
-
readonly filesDeleted:
|
|
37
|
-
readonly closedAt:
|
|
38
|
-
readonly mergedBy:
|
|
39
|
-
readonly approvedBy:
|
|
40
|
-
readonly approvedByArns:
|
|
41
|
-
readonly commentedBy:
|
|
42
|
-
readonly approvalRules:
|
|
43
|
-
}
|
|
44
|
-
export declare const findMissingDiffStats: (sql: SqlClient.SqlClient) => () => Effect.Effect<
|
|
45
|
-
readonly id:
|
|
46
|
-
readonly awsAccountId:
|
|
47
|
-
readonly repoAccountId:
|
|
48
|
-
readonly accountProfile:
|
|
49
|
-
readonly accountRegion:
|
|
50
|
-
readonly title:
|
|
51
|
-
readonly description:
|
|
52
|
-
readonly author:
|
|
53
|
-
readonly repositoryName:
|
|
54
|
-
readonly creationDate:
|
|
55
|
-
readonly lastModifiedDate:
|
|
56
|
-
readonly status:
|
|
57
|
-
readonly sourceBranch:
|
|
58
|
-
readonly destinationBranch:
|
|
59
|
-
readonly isMergeable:
|
|
60
|
-
readonly isApproved:
|
|
61
|
-
readonly commentCount:
|
|
62
|
-
readonly healthScore:
|
|
63
|
-
readonly link:
|
|
64
|
-
readonly fetchedAt:
|
|
65
|
-
readonly filesAdded:
|
|
66
|
-
readonly filesModified:
|
|
67
|
-
readonly filesDeleted:
|
|
68
|
-
readonly closedAt:
|
|
69
|
-
readonly mergedBy:
|
|
70
|
-
readonly approvedBy:
|
|
71
|
-
readonly approvedByArns:
|
|
72
|
-
readonly commentedBy:
|
|
73
|
-
readonly approvalRules:
|
|
74
|
-
}
|
|
75
|
-
export declare const findByAccountAndId: (sql: SqlClient.SqlClient) => (awsAccountId: string, id: string) => Effect.Effect<
|
|
76
|
-
readonly id:
|
|
77
|
-
readonly awsAccountId:
|
|
78
|
-
readonly repoAccountId:
|
|
79
|
-
readonly accountProfile:
|
|
80
|
-
readonly accountRegion:
|
|
81
|
-
readonly title:
|
|
82
|
-
readonly description:
|
|
83
|
-
readonly author:
|
|
84
|
-
readonly repositoryName:
|
|
85
|
-
readonly creationDate:
|
|
86
|
-
readonly lastModifiedDate:
|
|
87
|
-
readonly status:
|
|
88
|
-
readonly sourceBranch:
|
|
89
|
-
readonly destinationBranch:
|
|
90
|
-
readonly isMergeable:
|
|
91
|
-
readonly isApproved:
|
|
92
|
-
readonly commentCount:
|
|
93
|
-
readonly healthScore:
|
|
94
|
-
readonly link:
|
|
95
|
-
readonly fetchedAt:
|
|
96
|
-
readonly filesAdded:
|
|
97
|
-
readonly filesModified:
|
|
98
|
-
readonly filesDeleted:
|
|
99
|
-
readonly closedAt:
|
|
100
|
-
readonly mergedBy:
|
|
101
|
-
readonly approvedBy:
|
|
102
|
-
readonly approvedByArns:
|
|
103
|
-
readonly commentedBy:
|
|
104
|
-
readonly approvalRules:
|
|
105
|
-
},
|
|
13
|
+
export declare const findAll: (sql: SqlClient.SqlClient) => () => Effect.Effect<{
|
|
14
|
+
readonly id: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
15
|
+
readonly awsAccountId: string;
|
|
16
|
+
readonly repoAccountId: string | null;
|
|
17
|
+
readonly accountProfile: string;
|
|
18
|
+
readonly accountRegion: string;
|
|
19
|
+
readonly title: string;
|
|
20
|
+
readonly description: string | null;
|
|
21
|
+
readonly author: string;
|
|
22
|
+
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
23
|
+
readonly creationDate: Date;
|
|
24
|
+
readonly lastModifiedDate: Date;
|
|
25
|
+
readonly status: "CLOSED" | "MERGED" | "OPEN";
|
|
26
|
+
readonly sourceBranch: string;
|
|
27
|
+
readonly destinationBranch: string;
|
|
28
|
+
readonly isMergeable: boolean;
|
|
29
|
+
readonly isApproved: boolean;
|
|
30
|
+
readonly commentCount: number | null;
|
|
31
|
+
readonly healthScore: number | null;
|
|
32
|
+
readonly link: string;
|
|
33
|
+
readonly fetchedAt: string;
|
|
34
|
+
readonly filesAdded: number | null;
|
|
35
|
+
readonly filesModified: number | null;
|
|
36
|
+
readonly filesDeleted: number | null;
|
|
37
|
+
readonly closedAt: string | null;
|
|
38
|
+
readonly mergedBy: string | null;
|
|
39
|
+
readonly approvedBy: readonly string[];
|
|
40
|
+
readonly approvedByArns: readonly string[];
|
|
41
|
+
readonly commentedBy: readonly string[];
|
|
42
|
+
readonly approvalRules: readonly import("../../../Domain.js").ApprovalRule[];
|
|
43
|
+
}[], CacheError, never>;
|
|
44
|
+
export declare const findMissingDiffStats: (sql: SqlClient.SqlClient) => () => Effect.Effect<{
|
|
45
|
+
readonly id: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
46
|
+
readonly awsAccountId: string;
|
|
47
|
+
readonly repoAccountId: string | null;
|
|
48
|
+
readonly accountProfile: string;
|
|
49
|
+
readonly accountRegion: string;
|
|
50
|
+
readonly title: string;
|
|
51
|
+
readonly description: string | null;
|
|
52
|
+
readonly author: string;
|
|
53
|
+
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
54
|
+
readonly creationDate: Date;
|
|
55
|
+
readonly lastModifiedDate: Date;
|
|
56
|
+
readonly status: "CLOSED" | "MERGED" | "OPEN";
|
|
57
|
+
readonly sourceBranch: string;
|
|
58
|
+
readonly destinationBranch: string;
|
|
59
|
+
readonly isMergeable: boolean;
|
|
60
|
+
readonly isApproved: boolean;
|
|
61
|
+
readonly commentCount: number | null;
|
|
62
|
+
readonly healthScore: number | null;
|
|
63
|
+
readonly link: string;
|
|
64
|
+
readonly fetchedAt: string;
|
|
65
|
+
readonly filesAdded: number | null;
|
|
66
|
+
readonly filesModified: number | null;
|
|
67
|
+
readonly filesDeleted: number | null;
|
|
68
|
+
readonly closedAt: string | null;
|
|
69
|
+
readonly mergedBy: string | null;
|
|
70
|
+
readonly approvedBy: readonly string[];
|
|
71
|
+
readonly approvedByArns: readonly string[];
|
|
72
|
+
readonly commentedBy: readonly string[];
|
|
73
|
+
readonly approvalRules: readonly import("../../../Domain.js").ApprovalRule[];
|
|
74
|
+
}[], CacheError, never>;
|
|
75
|
+
export declare const findByAccountAndId: (sql: SqlClient.SqlClient) => (awsAccountId: string, id: string) => Effect.Effect<{
|
|
76
|
+
readonly id: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
77
|
+
readonly awsAccountId: string;
|
|
78
|
+
readonly repoAccountId: string | null;
|
|
79
|
+
readonly accountProfile: string;
|
|
80
|
+
readonly accountRegion: string;
|
|
81
|
+
readonly title: string;
|
|
82
|
+
readonly description: string | null;
|
|
83
|
+
readonly author: string;
|
|
84
|
+
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
85
|
+
readonly creationDate: Date;
|
|
86
|
+
readonly lastModifiedDate: Date;
|
|
87
|
+
readonly status: "CLOSED" | "MERGED" | "OPEN";
|
|
88
|
+
readonly sourceBranch: string;
|
|
89
|
+
readonly destinationBranch: string;
|
|
90
|
+
readonly isMergeable: boolean;
|
|
91
|
+
readonly isApproved: boolean;
|
|
92
|
+
readonly commentCount: number | null;
|
|
93
|
+
readonly healthScore: number | null;
|
|
94
|
+
readonly link: string;
|
|
95
|
+
readonly fetchedAt: string;
|
|
96
|
+
readonly filesAdded: number | null;
|
|
97
|
+
readonly filesModified: number | null;
|
|
98
|
+
readonly filesDeleted: number | null;
|
|
99
|
+
readonly closedAt: string | null;
|
|
100
|
+
readonly mergedBy: string | null;
|
|
101
|
+
readonly approvedBy: readonly string[];
|
|
102
|
+
readonly approvedByArns: readonly string[];
|
|
103
|
+
readonly commentedBy: readonly string[];
|
|
104
|
+
readonly approvalRules: readonly import("../../../Domain.js").ApprovalRule[];
|
|
105
|
+
}, CacheError, never>;
|
|
106
106
|
export declare const search: (sql: SqlClient.SqlClient) => (query: string, opts?: {
|
|
107
107
|
readonly limit?: number;
|
|
108
108
|
readonly offset?: number;
|
|
109
109
|
}) => Effect.Effect<SearchResult, CacheError, never>;
|
|
110
|
-
export declare const findStaleOpen: (sql: SqlClient.SqlClient) => (olderThan: string) => Effect.Effect<
|
|
111
|
-
readonly id:
|
|
112
|
-
readonly awsAccountId:
|
|
113
|
-
readonly accountProfile:
|
|
114
|
-
readonly accountRegion:
|
|
115
|
-
}
|
|
116
|
-
export declare const findOpenInRange: (sql: SqlClient.SqlClient) => (weekStart: string, weekEnd: string) => Effect.Effect<
|
|
117
|
-
readonly id:
|
|
118
|
-
readonly awsAccountId:
|
|
119
|
-
readonly accountProfile:
|
|
120
|
-
readonly accountRegion:
|
|
121
|
-
}
|
|
110
|
+
export declare const findStaleOpen: (sql: SqlClient.SqlClient) => (olderThan: string) => Effect.Effect<{
|
|
111
|
+
readonly id: string;
|
|
112
|
+
readonly awsAccountId: string;
|
|
113
|
+
readonly accountProfile: string & import("effect/Brand").Brand<"AwsProfileName">;
|
|
114
|
+
readonly accountRegion: string & import("effect/Brand").Brand<"AwsRegion">;
|
|
115
|
+
}[], CacheError, never>;
|
|
116
|
+
export declare const findOpenInRange: (sql: SqlClient.SqlClient) => (weekStart: string, weekEnd: string) => Effect.Effect<{
|
|
117
|
+
readonly id: string;
|
|
118
|
+
readonly awsAccountId: string;
|
|
119
|
+
readonly accountProfile: string & import("effect/Brand").Brand<"AwsProfileName">;
|
|
120
|
+
readonly accountRegion: string & import("effect/Brand").Brand<"AwsRegion">;
|
|
121
|
+
}[], CacheError, never>;
|
|
122
122
|
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/CacheService/repos/PullRequestRepo/queries.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/CacheService/repos/PullRequestRepo/queries.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAA;AACvC,OAAO,KAAK,KAAK,SAAS,MAAM,+BAA+B,CAAA;AAG/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAA4D,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAS3G,eAAO,MAAM,OAAO,QAAS,SAAS,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAQ/C,CAAA;AAED,eAAO,MAAM,oBAAoB,QAAS,SAAS,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAQ5D,CAAA;AAED,eAAO,MAAM,kBAAkB,QAAS,SAAS,CAAC,SAAS,oBAQnC,MAAM,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBACzC,CAAA;AAED,eAAO,MAAM,MAAM,QAAS,SAAS,CAAC,SAAS,aAsBpC,MAAM,SACN;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAC3D,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,UAAU,EAAE,KAAK,CAqBjD,CAAA;AAED,eAAO,MAAM,aAAa,QAAS,SAAS,CAAC,SAAS,iBASjC,MAAM;;;;;uBAC1B,CAAA;AAED,eAAO,MAAM,eAAe,QAAS,SAAS,CAAC,SAAS,iBAanC,MAAM,WAAW,MAAM;;;;;uBAC3C,CAAA"}
|