@knpkv/codecommit-core 0.7.1 → 0.8.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 +1 -1
- package/dist/AwsClient/AwsClientGated.d.ts.map +1 -1
- package/dist/AwsClient/AwsClientGated.js +29 -16
- package/dist/AwsClient/AwsClientGated.js.map +1 -1
- package/dist/AwsClient/approvalRuleContent.d.ts +15 -0
- package/dist/AwsClient/approvalRuleContent.d.ts.map +1 -0
- package/dist/AwsClient/approvalRuleContent.js +39 -0
- package/dist/AwsClient/approvalRuleContent.js.map +1 -0
- package/dist/AwsClient/createApprovalRule.d.ts +1 -1
- package/dist/AwsClient/createApprovalRule.d.ts.map +1 -1
- package/dist/AwsClient/createPullRequest.d.ts +1 -1
- package/dist/AwsClient/createPullRequest.d.ts.map +1 -1
- package/dist/AwsClient/deleteApprovalRule.d.ts +1 -1
- package/dist/AwsClient/deleteApprovalRule.d.ts.map +1 -1
- package/dist/AwsClient/getCallerIdentity.d.ts +1 -1
- package/dist/AwsClient/getCallerIdentity.d.ts.map +1 -1
- package/dist/AwsClient/getCommentsForPullRequest.d.ts +1 -1
- package/dist/AwsClient/getCommentsForPullRequest.d.ts.map +1 -1
- package/dist/AwsClient/getCommentsForPullRequest.js +20 -20
- package/dist/AwsClient/getCommentsForPullRequest.js.map +1 -1
- package/dist/AwsClient/getDifferences.d.ts +1 -12
- package/dist/AwsClient/getDifferences.d.ts.map +1 -1
- package/dist/AwsClient/getDifferences.js.map +1 -1
- package/dist/AwsClient/getPullRequest.d.ts +2 -1
- package/dist/AwsClient/getPullRequest.d.ts.map +1 -1
- package/dist/AwsClient/getPullRequest.js +10 -10
- package/dist/AwsClient/getPullRequest.js.map +1 -1
- package/dist/AwsClient/getPullRequests.d.ts +10 -27
- package/dist/AwsClient/getPullRequests.d.ts.map +1 -1
- package/dist/AwsClient/getPullRequests.js +28 -92
- package/dist/AwsClient/getPullRequests.js.map +1 -1
- package/dist/AwsClient/index.d.ts +3 -3
- package/dist/AwsClient/index.d.ts.map +1 -1
- package/dist/AwsClient/index.js +14 -26
- package/dist/AwsClient/index.js.map +1 -1
- package/dist/AwsClient/internal.d.ts +36 -104
- package/dist/AwsClient/internal.d.ts.map +1 -1
- package/dist/AwsClient/internal.js +15 -14
- package/dist/AwsClient/internal.js.map +1 -1
- package/dist/AwsClient/listBranches.d.ts +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/AwsClient/updateApprovalRule.d.ts +1 -1
- package/dist/AwsClient/updateApprovalRule.d.ts.map +1 -1
- package/dist/AwsClient/updatePullRequestDescription.d.ts +1 -1
- package/dist/AwsClient/updatePullRequestDescription.d.ts.map +1 -1
- package/dist/AwsClient/updatePullRequestTitle.d.ts +1 -1
- package/dist/AwsClient/updatePullRequestTitle.d.ts.map +1 -1
- package/dist/AwsClientConfig.d.ts +7 -7
- package/dist/AwsClientConfig.d.ts.map +1 -1
- package/dist/AwsClientConfig.js +1 -1
- package/dist/AwsClientConfig.js.map +1 -1
- package/dist/CacheService/CacheError.d.ts +4 -6
- package/dist/CacheService/CacheError.d.ts.map +1 -1
- package/dist/CacheService/CacheError.js +2 -2
- package/dist/CacheService/CacheError.js.map +1 -1
- package/dist/CacheService/Database.d.ts +5 -5
- package/dist/CacheService/Database.d.ts.map +1 -1
- package/dist/CacheService/Database.js +3 -3
- package/dist/CacheService/Database.js.map +1 -1
- package/dist/CacheService/EventsHub.d.ts +44 -41
- package/dist/CacheService/EventsHub.d.ts.map +1 -1
- package/dist/CacheService/EventsHub.js +19 -19
- package/dist/CacheService/EventsHub.js.map +1 -1
- package/dist/CacheService/migrations/0001_initial.d.ts +2 -2
- package/dist/CacheService/migrations/0001_initial.d.ts.map +1 -1
- package/dist/CacheService/migrations/0001_initial.js +1 -1
- package/dist/CacheService/migrations/0001_initial.js.map +1 -1
- package/dist/CacheService/migrations/0002_indexes.d.ts +2 -2
- package/dist/CacheService/migrations/0002_indexes.d.ts.map +1 -1
- package/dist/CacheService/migrations/0002_indexes.js +1 -1
- package/dist/CacheService/migrations/0002_indexes.js.map +1 -1
- package/dist/CacheService/migrations/0003_add_health_score.d.ts +2 -2
- package/dist/CacheService/migrations/0003_add_health_score.d.ts.map +1 -1
- package/dist/CacheService/migrations/0003_add_health_score.js +2 -2
- package/dist/CacheService/migrations/0003_add_health_score.js.map +1 -1
- package/dist/CacheService/migrations/0004_unify_notifications.d.ts +2 -2
- package/dist/CacheService/migrations/0004_unify_notifications.d.ts.map +1 -1
- package/dist/CacheService/migrations/0004_unify_notifications.js +3 -3
- package/dist/CacheService/migrations/0004_unify_notifications.js.map +1 -1
- package/dist/CacheService/migrations/0005_add_sandboxes.d.ts +2 -2
- package/dist/CacheService/migrations/0005_add_sandboxes.d.ts.map +1 -1
- package/dist/CacheService/migrations/0005_add_sandboxes.js +1 -1
- package/dist/CacheService/migrations/0005_add_sandboxes.js.map +1 -1
- package/dist/CacheService/migrations/0006_sandbox_logs.d.ts +2 -2
- package/dist/CacheService/migrations/0006_sandbox_logs.d.ts.map +1 -1
- package/dist/CacheService/migrations/0006_sandbox_logs.js +1 -1
- package/dist/CacheService/migrations/0006_sandbox_logs.js.map +1 -1
- package/dist/CacheService/migrations/0007_stats_columns.d.ts +2 -2
- package/dist/CacheService/migrations/0007_stats_columns.d.ts.map +1 -1
- package/dist/CacheService/migrations/0007_stats_columns.js +5 -5
- package/dist/CacheService/migrations/0007_stats_columns.js.map +1 -1
- package/dist/CacheService/migrations/0008_merged_by.d.ts +2 -2
- package/dist/CacheService/migrations/0008_merged_by.d.ts.map +1 -1
- package/dist/CacheService/migrations/0008_merged_by.js +2 -2
- package/dist/CacheService/migrations/0008_merged_by.js.map +1 -1
- package/dist/CacheService/migrations/0009_approved_by.d.ts +2 -2
- package/dist/CacheService/migrations/0009_approved_by.d.ts.map +1 -1
- package/dist/CacheService/migrations/0009_approved_by.js +2 -2
- package/dist/CacheService/migrations/0009_approved_by.js.map +1 -1
- package/dist/CacheService/migrations/0010_commented_by.d.ts +2 -2
- package/dist/CacheService/migrations/0010_commented_by.d.ts.map +1 -1
- package/dist/CacheService/migrations/0010_commented_by.js +2 -2
- package/dist/CacheService/migrations/0010_commented_by.js.map +1 -1
- package/dist/CacheService/migrations/0011_audit_log.d.ts +2 -2
- package/dist/CacheService/migrations/0011_audit_log.d.ts.map +1 -1
- package/dist/CacheService/migrations/0011_audit_log.js +2 -2
- package/dist/CacheService/migrations/0011_audit_log.js.map +1 -1
- package/dist/CacheService/migrations/0012_audit_log_indexes.d.ts +2 -2
- package/dist/CacheService/migrations/0012_audit_log_indexes.d.ts.map +1 -1
- package/dist/CacheService/migrations/0012_audit_log_indexes.js +2 -2
- package/dist/CacheService/migrations/0012_audit_log_indexes.js.map +1 -1
- package/dist/CacheService/migrations/0013_approval_rules.d.ts +2 -2
- package/dist/CacheService/migrations/0013_approval_rules.d.ts.map +1 -1
- package/dist/CacheService/migrations/0013_approval_rules.js +2 -2
- package/dist/CacheService/migrations/0013_approval_rules.js.map +1 -1
- package/dist/CacheService/migrations/0014_approved_by_arns.d.ts +2 -2
- package/dist/CacheService/migrations/0014_approved_by_arns.d.ts.map +1 -1
- package/dist/CacheService/migrations/0014_approved_by_arns.js +2 -2
- package/dist/CacheService/migrations/0014_approved_by_arns.js.map +1 -1
- package/dist/CacheService/migrations/0015_repo_account_id.d.ts +2 -2
- package/dist/CacheService/migrations/0015_repo_account_id.d.ts.map +1 -1
- package/dist/CacheService/migrations/0015_repo_account_id.js +2 -2
- package/dist/CacheService/migrations/0015_repo_account_id.js.map +1 -1
- package/dist/CacheService/repos/CommentRepo.d.ts +11 -9
- package/dist/CacheService/repos/CommentRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/CommentRepo.js +27 -29
- package/dist/CacheService/repos/CommentRepo.js.map +1 -1
- package/dist/CacheService/repos/NotificationRepo.d.ts +36 -34
- package/dist/CacheService/repos/NotificationRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/NotificationRepo.js +92 -94
- package/dist/CacheService/repos/NotificationRepo.js.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/index.d.ts +129 -127
- package/dist/CacheService/repos/PullRequestRepo/index.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/index.js +18 -19
- package/dist/CacheService/repos/PullRequestRepo/index.js.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/internal.d.ts +51 -54
- package/dist/CacheService/repos/PullRequestRepo/internal.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/internal.js +22 -19
- package/dist/CacheService/repos/PullRequestRepo/internal.js.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/mutations.d.ts +1 -1
- package/dist/CacheService/repos/PullRequestRepo/mutations.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/mutations.js +20 -4
- package/dist/CacheService/repos/PullRequestRepo/mutations.js.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/queries.d.ts +108 -108
- package/dist/CacheService/repos/PullRequestRepo/queries.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/queries.js +11 -3
- package/dist/CacheService/repos/PullRequestRepo/queries.js.map +1 -1
- package/dist/CacheService/repos/SandboxRepo.d.ts +97 -95
- package/dist/CacheService/repos/SandboxRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/SandboxRepo.js +47 -48
- package/dist/CacheService/repos/SandboxRepo.js.map +1 -1
- package/dist/CacheService/repos/StatsRepo/index.d.ts +65 -63
- package/dist/CacheService/repos/StatsRepo/index.d.ts.map +1 -1
- package/dist/CacheService/repos/StatsRepo/index.js +24 -25
- package/dist/CacheService/repos/StatsRepo/index.js.map +1 -1
- package/dist/CacheService/repos/StatsRepo/internal.d.ts +8 -13
- package/dist/CacheService/repos/StatsRepo/internal.d.ts.map +1 -1
- package/dist/CacheService/repos/StatsRepo/internal.js +11 -4
- package/dist/CacheService/repos/StatsRepo/internal.js.map +1 -1
- package/dist/CacheService/repos/StatsRepo/queries.d.ts +1 -1
- package/dist/CacheService/repos/StatsRepo/queries.d.ts.map +1 -1
- package/dist/CacheService/repos/StatsRepo/queries.js +8 -0
- package/dist/CacheService/repos/StatsRepo/queries.js.map +1 -1
- package/dist/CacheService/repos/StatsRepo/reviewerData.d.ts +1 -1
- package/dist/CacheService/repos/StatsRepo/reviewerData.d.ts.map +1 -1
- package/dist/CacheService/repos/StatsRepo/reviewerData.js +13 -3
- package/dist/CacheService/repos/StatsRepo/reviewerData.js.map +1 -1
- package/dist/CacheService/repos/SubscriptionRepo.d.ts +16 -14
- package/dist/CacheService/repos/SubscriptionRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/SubscriptionRepo.js +36 -37
- package/dist/CacheService/repos/SubscriptionRepo.js.map +1 -1
- package/dist/CacheService/repos/SyncMetadataRepo.d.ts +11 -9
- package/dist/CacheService/repos/SyncMetadataRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/SyncMetadataRepo.js +22 -23
- package/dist/CacheService/repos/SyncMetadataRepo.js.map +1 -1
- package/dist/CacheService/repos/commentLocations.d.ts +12 -0
- package/dist/CacheService/repos/commentLocations.d.ts.map +1 -0
- package/dist/CacheService/repos/commentLocations.js +7 -0
- package/dist/CacheService/repos/commentLocations.js.map +1 -0
- package/dist/ConfigService/backup.d.ts +1 -1
- package/dist/ConfigService/backup.d.ts.map +1 -1
- package/dist/ConfigService/backup.js +1 -1
- package/dist/ConfigService/backup.js.map +1 -1
- package/dist/ConfigService/detectProfiles.d.ts +2 -1
- package/dist/ConfigService/detectProfiles.d.ts.map +1 -1
- package/dist/ConfigService/detectProfiles.js +3 -2
- package/dist/ConfigService/detectProfiles.js.map +1 -1
- package/dist/ConfigService/index.d.ts +10 -11
- package/dist/ConfigService/index.d.ts.map +1 -1
- package/dist/ConfigService/index.js +13 -6
- package/dist/ConfigService/index.js.map +1 -1
- package/dist/ConfigService/internal.d.ts +41 -137
- package/dist/ConfigService/internal.d.ts.map +1 -1
- package/dist/ConfigService/internal.js +35 -20
- package/dist/ConfigService/internal.js.map +1 -1
- package/dist/ConfigService/load.d.ts +25 -28
- package/dist/ConfigService/load.d.ts.map +1 -1
- package/dist/ConfigService/load.js +11 -28
- package/dist/ConfigService/load.js.map +1 -1
- package/dist/ConfigService/reset.d.ts +26 -5
- package/dist/ConfigService/reset.d.ts.map +1 -1
- package/dist/ConfigService/reset.js +9 -16
- package/dist/ConfigService/reset.js.map +1 -1
- package/dist/ConfigService/save.d.ts +2 -1
- package/dist/ConfigService/save.d.ts.map +1 -1
- package/dist/ConfigService/save.js +2 -1
- package/dist/ConfigService/save.js.map +1 -1
- package/dist/ConfigService/validate.d.ts +6 -20
- package/dist/ConfigService/validate.d.ts.map +1 -1
- package/dist/ConfigService/validate.js +10 -11
- package/dist/ConfigService/validate.js.map +1 -1
- package/dist/Domain.d.ts +130 -324
- package/dist/Domain.d.ts.map +1 -1
- package/dist/Domain.js +77 -20
- package/dist/Domain.js.map +1 -1
- package/dist/Errors.d.ts +45 -65
- package/dist/Errors.d.ts.map +1 -1
- package/dist/Errors.js +20 -20
- package/dist/Errors.js.map +1 -1
- package/dist/PRService/index.d.ts +36 -33
- package/dist/PRService/index.d.ts.map +1 -1
- package/dist/PRService/index.js +44 -45
- package/dist/PRService/index.js.map +1 -1
- package/dist/PRService/internal.d.ts +86 -118
- package/dist/PRService/internal.d.ts.map +1 -1
- package/dist/PRService/internal.js +28 -25
- package/dist/PRService/internal.js.map +1 -1
- package/dist/PRService/refresh.d.ts +1 -1
- package/dist/PRService/refresh.d.ts.map +1 -1
- package/dist/PRService/refresh.js +4 -4
- package/dist/PRService/refresh.js.map +1 -1
- package/dist/PRService/refreshDiffs.d.ts +1 -1
- package/dist/PRService/refreshDiffs.d.ts.map +1 -1
- package/dist/PRService/refreshDiffs.js +3 -3
- package/dist/PRService/refreshDiffs.js.map +1 -1
- package/dist/PRService/refreshEnrich.d.ts +1 -5
- package/dist/PRService/refreshEnrich.d.ts.map +1 -1
- package/dist/PRService/refreshEnrich.js +9 -9
- package/dist/PRService/refreshEnrich.js.map +1 -1
- package/dist/PRService/refreshFetch.d.ts +1 -5
- package/dist/PRService/refreshFetch.d.ts.map +1 -1
- package/dist/PRService/refreshFetch.js +10 -10
- package/dist/PRService/refreshFetch.js.map +1 -1
- package/dist/PRService/refreshHistory.d.ts +1 -1
- package/dist/PRService/refreshHistory.d.ts.map +1 -1
- package/dist/PRService/refreshHistory.js +8 -8
- package/dist/PRService/refreshHistory.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 +6 -6
- package/dist/PRService/refreshResolve.js.map +1 -1
- package/dist/PRService/refreshScore.d.ts +1 -2
- package/dist/PRService/refreshScore.d.ts.map +1 -1
- package/dist/PRService/refreshScore.js +5 -5
- package/dist/PRService/refreshScore.js.map +1 -1
- package/dist/PRService/refreshSinglePR.d.ts +4 -1
- package/dist/PRService/refreshSinglePR.d.ts.map +1 -1
- package/dist/PRService/refreshSinglePR.js +92 -82
- package/dist/PRService/refreshSinglePR.js.map +1 -1
- package/dist/PermissionService/AuditLog.d.ts +30 -32
- package/dist/PermissionService/AuditLog.d.ts.map +1 -1
- package/dist/PermissionService/AuditLog.js +89 -90
- package/dist/PermissionService/AuditLog.js.map +1 -1
- package/dist/PermissionService/PermissionGate.d.ts +8 -21
- package/dist/PermissionService/PermissionGate.d.ts.map +1 -1
- package/dist/PermissionService/PermissionGate.js +2 -2
- package/dist/PermissionService/PermissionGate.js.map +1 -1
- package/dist/PermissionService/PermissionGateLive.d.ts +7 -11
- package/dist/PermissionService/PermissionGateLive.d.ts.map +1 -1
- package/dist/PermissionService/PermissionGateLive.js +49 -49
- package/dist/PermissionService/PermissionGateLive.js.map +1 -1
- package/dist/PermissionService/index.d.ts +17 -17
- package/dist/PermissionService/index.d.ts.map +1 -1
- package/dist/PermissionService/index.js +50 -50
- package/dist/PermissionService/index.js.map +1 -1
- package/dist/SandboxService/DockerService.d.ts +22 -19
- package/dist/SandboxService/DockerService.d.ts.map +1 -1
- package/dist/SandboxService/DockerService.js +71 -70
- package/dist/SandboxService/DockerService.js.map +1 -1
- package/dist/SandboxService/PluginService.d.ts +11 -8
- package/dist/SandboxService/PluginService.d.ts.map +1 -1
- package/dist/SandboxService/PluginService.js +16 -16
- package/dist/SandboxService/PluginService.js.map +1 -1
- package/dist/SandboxService/SandboxService.d.ts +78 -76
- package/dist/SandboxService/SandboxService.d.ts.map +1 -1
- package/dist/SandboxService/SandboxService.js +235 -226
- package/dist/SandboxService/SandboxService.js.map +1 -1
- package/dist/SandboxService/index.d.ts +0 -1
- package/dist/SandboxService/index.d.ts.map +1 -1
- package/dist/SandboxService/index.js +0 -1
- package/dist/SandboxService/index.js.map +1 -1
- package/dist/StatsService/WeeklyStats.d.ts +112 -112
- package/dist/StatsService/index.d.ts +3 -8
- package/dist/StatsService/index.d.ts.map +1 -1
- package/dist/StatsService/index.js +113 -112
- package/dist/StatsService/index.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -12
- package/dist/SandboxService/plugins/ClaudeCodePlugin.d.ts +0 -18
- package/dist/SandboxService/plugins/ClaudeCodePlugin.d.ts.map +0 -1
- package/dist/SandboxService/plugins/ClaudeCodePlugin.js +0 -24
- package/dist/SandboxService/plugins/ClaudeCodePlugin.js.map +0 -1
package/dist/Domain.d.ts
CHANGED
|
@@ -46,90 +46,77 @@ import { Data, Schema } from "effect";
|
|
|
46
46
|
*
|
|
47
47
|
* @category Domain
|
|
48
48
|
*/
|
|
49
|
-
export declare const PullRequestId: Schema.brand<
|
|
49
|
+
export declare const PullRequestId: Schema.brand<Schema.String, "PullRequestId">;
|
|
50
50
|
export type PullRequestId = typeof PullRequestId.Type;
|
|
51
51
|
/**
|
|
52
52
|
* Branded repository name.
|
|
53
53
|
*
|
|
54
54
|
* @category Domain
|
|
55
55
|
*/
|
|
56
|
-
export declare const RepositoryName: Schema.brand<
|
|
56
|
+
export declare const RepositoryName: Schema.brand<Schema.String, "RepositoryName">;
|
|
57
57
|
export type RepositoryName = typeof RepositoryName.Type;
|
|
58
58
|
/**
|
|
59
59
|
* Branded AWS profile name.
|
|
60
60
|
*
|
|
61
61
|
* @category Domain
|
|
62
62
|
*/
|
|
63
|
-
export declare const AwsProfileName: Schema.brand<
|
|
63
|
+
export declare const AwsProfileName: Schema.brand<Schema.String, "AwsProfileName">;
|
|
64
64
|
export type AwsProfileName = typeof AwsProfileName.Type;
|
|
65
65
|
/**
|
|
66
66
|
* Branded AWS region name.
|
|
67
67
|
*
|
|
68
68
|
* @category Domain
|
|
69
69
|
*/
|
|
70
|
-
export declare const AwsRegion: Schema.brand<
|
|
70
|
+
export declare const AwsRegion: Schema.brand<Schema.String, "AwsRegion">;
|
|
71
71
|
export type AwsRegion = typeof AwsRegion.Type;
|
|
72
72
|
/**
|
|
73
73
|
* Branded comment identifier.
|
|
74
74
|
*
|
|
75
75
|
* @category Domain
|
|
76
76
|
*/
|
|
77
|
-
export declare const CommentId: Schema.brand<
|
|
77
|
+
export declare const CommentId: Schema.brand<Schema.String, "CommentId">;
|
|
78
78
|
export type CommentId = typeof CommentId.Type;
|
|
79
79
|
/**
|
|
80
80
|
* Branded sandbox identifier.
|
|
81
81
|
*
|
|
82
82
|
* @category Domain
|
|
83
83
|
*/
|
|
84
|
-
export declare const SandboxId: Schema.brand<
|
|
84
|
+
export declare const SandboxId: Schema.brand<Schema.String, "SandboxId">;
|
|
85
85
|
export type SandboxId = typeof SandboxId.Type;
|
|
86
86
|
/**
|
|
87
87
|
* Pull request status.
|
|
88
88
|
*
|
|
89
89
|
* @category Domain
|
|
90
90
|
*/
|
|
91
|
-
export declare const PullRequestStatus: Schema.
|
|
91
|
+
export declare const PullRequestStatus: Schema.Literals<readonly ["OPEN", "CLOSED", "MERGED"]>;
|
|
92
92
|
export type PullRequestStatus = typeof PullRequestStatus.Type;
|
|
93
93
|
/**
|
|
94
94
|
* Notification severity type.
|
|
95
95
|
*
|
|
96
96
|
* @category Domain
|
|
97
97
|
*/
|
|
98
|
-
export declare const NotificationType: Schema.
|
|
98
|
+
export declare const NotificationType: Schema.Literals<readonly ["error", "info", "warning", "success"]>;
|
|
99
99
|
export type NotificationType = typeof NotificationType.Type;
|
|
100
100
|
/**
|
|
101
101
|
* Application loading status.
|
|
102
102
|
*
|
|
103
103
|
* @category Domain
|
|
104
104
|
*/
|
|
105
|
-
export declare const AppStatus: Schema.
|
|
105
|
+
export declare const AppStatus: Schema.Literals<readonly ["idle", "loading", "error"]>;
|
|
106
106
|
export type AppStatus = typeof AppStatus.Type;
|
|
107
107
|
/**
|
|
108
108
|
* Sandbox lifecycle status.
|
|
109
109
|
*
|
|
110
110
|
* @category Domain
|
|
111
111
|
*/
|
|
112
|
-
export declare const SandboxStatus: Schema.
|
|
112
|
+
export declare const SandboxStatus: Schema.Literals<readonly ["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
|
|
113
113
|
export type SandboxStatus = typeof SandboxStatus.Type;
|
|
114
|
-
declare const Account_base: Schema.Class<Account, {
|
|
115
|
-
profile: Schema.brand<
|
|
116
|
-
region: Schema.brand<
|
|
117
|
-
awsAccountId: Schema.optional<
|
|
118
|
-
repoAccountId: Schema.optional<
|
|
119
|
-
}
|
|
120
|
-
profile: Schema.brand<typeof Schema.String, "AwsProfileName">;
|
|
121
|
-
region: Schema.brand<typeof Schema.String, "AwsRegion">;
|
|
122
|
-
awsAccountId: Schema.optional<typeof Schema.String>;
|
|
123
|
-
repoAccountId: Schema.optional<typeof Schema.String>;
|
|
124
|
-
}>, never, {
|
|
125
|
-
readonly profile: string & import("effect/Brand").Brand<"AwsProfileName">;
|
|
126
|
-
} & {
|
|
127
|
-
readonly region: string & import("effect/Brand").Brand<"AwsRegion">;
|
|
128
|
-
} & {
|
|
129
|
-
readonly awsAccountId?: string | undefined;
|
|
130
|
-
} & {
|
|
131
|
-
readonly repoAccountId?: string | undefined;
|
|
132
|
-
}, {}, {}>;
|
|
114
|
+
declare const Account_base: Schema.Class<Account, Schema.Struct<{
|
|
115
|
+
readonly profile: Schema.brand<Schema.String, "AwsProfileName">;
|
|
116
|
+
readonly region: Schema.brand<Schema.String, "AwsRegion">;
|
|
117
|
+
readonly awsAccountId: Schema.optional<Schema.String>;
|
|
118
|
+
readonly repoAccountId: Schema.optional<Schema.String>;
|
|
119
|
+
}>, {}>;
|
|
133
120
|
/**
|
|
134
121
|
* AWS account reference (profile + region).
|
|
135
122
|
*
|
|
@@ -137,37 +124,14 @@ declare const Account_base: Schema.Class<Account, {
|
|
|
137
124
|
*/
|
|
138
125
|
export declare class Account extends Account_base {
|
|
139
126
|
}
|
|
140
|
-
declare const ApprovalRule_base: Schema.Class<ApprovalRule, {
|
|
141
|
-
ruleName:
|
|
142
|
-
requiredApprovals:
|
|
143
|
-
poolMembers: Schema
|
|
144
|
-
poolMemberArns: Schema.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
fromTemplate: Schema.optional<typeof Schema.String>;
|
|
149
|
-
}, Schema.Struct.Encoded<{
|
|
150
|
-
ruleName: typeof Schema.String;
|
|
151
|
-
requiredApprovals: typeof Schema.Number;
|
|
152
|
-
poolMembers: Schema.Array$<typeof Schema.String>;
|
|
153
|
-
poolMemberArns: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
154
|
-
default: () => never[];
|
|
155
|
-
}>;
|
|
156
|
-
satisfied: typeof Schema.Boolean;
|
|
157
|
-
fromTemplate: Schema.optional<typeof Schema.String>;
|
|
158
|
-
}>, never, {
|
|
159
|
-
readonly ruleName: string;
|
|
160
|
-
} & {
|
|
161
|
-
readonly requiredApprovals: number;
|
|
162
|
-
} & {
|
|
163
|
-
readonly satisfied: boolean;
|
|
164
|
-
} & {
|
|
165
|
-
readonly poolMembers: readonly string[];
|
|
166
|
-
} & {
|
|
167
|
-
readonly poolMemberArns?: readonly string[];
|
|
168
|
-
} & {
|
|
169
|
-
readonly fromTemplate?: string | undefined;
|
|
170
|
-
}, {}, {}>;
|
|
127
|
+
declare const ApprovalRule_base: Schema.Class<ApprovalRule, Schema.Struct<{
|
|
128
|
+
readonly ruleName: Schema.String;
|
|
129
|
+
readonly requiredApprovals: Schema.Number;
|
|
130
|
+
readonly poolMembers: Schema.$Array<Schema.String>;
|
|
131
|
+
readonly poolMemberArns: Schema.withDecodingDefaultTypeKey<Schema.$Array<Schema.String>, never>;
|
|
132
|
+
readonly satisfied: Schema.Boolean;
|
|
133
|
+
readonly fromTemplate: Schema.optional<Schema.String>;
|
|
134
|
+
}>, {}>;
|
|
171
135
|
/**
|
|
172
136
|
* Approval rule attached to a pull request.
|
|
173
137
|
*
|
|
@@ -175,105 +139,30 @@ declare const ApprovalRule_base: Schema.Class<ApprovalRule, {
|
|
|
175
139
|
*/
|
|
176
140
|
export declare class ApprovalRule extends ApprovalRule_base {
|
|
177
141
|
}
|
|
178
|
-
declare const PullRequest_base: Schema.Class<PullRequest, {
|
|
179
|
-
id: Schema.brand<
|
|
180
|
-
title:
|
|
181
|
-
description: Schema.optional<
|
|
182
|
-
author:
|
|
183
|
-
repositoryName: Schema.brand<
|
|
184
|
-
creationDate:
|
|
185
|
-
lastModifiedDate:
|
|
186
|
-
link:
|
|
187
|
-
account: typeof Account;
|
|
188
|
-
status: Schema.
|
|
189
|
-
sourceBranch:
|
|
190
|
-
destinationBranch:
|
|
191
|
-
isMergeable:
|
|
192
|
-
isApproved:
|
|
193
|
-
commentCount: Schema.optional<
|
|
194
|
-
healthScore: Schema.optional<
|
|
195
|
-
fetchedAt: Schema.optional<
|
|
196
|
-
approvedBy: Schema
|
|
197
|
-
approvedByArns: Schema.
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
approvalRules: Schema.optionalWith<Schema.Array$<typeof ApprovalRule>, {
|
|
203
|
-
default: () => never[];
|
|
204
|
-
}>;
|
|
205
|
-
}, Schema.Struct.Encoded<{
|
|
206
|
-
id: Schema.brand<typeof Schema.String, "PullRequestId">;
|
|
207
|
-
title: typeof Schema.String;
|
|
208
|
-
description: Schema.optional<typeof Schema.String>;
|
|
209
|
-
author: typeof Schema.String;
|
|
210
|
-
repositoryName: Schema.brand<typeof Schema.String, "RepositoryName">;
|
|
211
|
-
creationDate: typeof Schema.DateFromSelf;
|
|
212
|
-
lastModifiedDate: typeof Schema.DateFromSelf;
|
|
213
|
-
link: typeof Schema.String;
|
|
214
|
-
account: typeof Account;
|
|
215
|
-
status: Schema.Literal<["OPEN", "CLOSED", "MERGED"]>;
|
|
216
|
-
sourceBranch: typeof Schema.String;
|
|
217
|
-
destinationBranch: typeof Schema.String;
|
|
218
|
-
isMergeable: typeof Schema.Boolean;
|
|
219
|
-
isApproved: typeof Schema.Boolean;
|
|
220
|
-
commentCount: Schema.optional<typeof Schema.Number>;
|
|
221
|
-
healthScore: Schema.optional<typeof Schema.Number>;
|
|
222
|
-
fetchedAt: Schema.optional<typeof Schema.DateFromSelf>;
|
|
223
|
-
approvedBy: Schema.Array$<typeof Schema.String>;
|
|
224
|
-
approvedByArns: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
225
|
-
default: () => never[];
|
|
226
|
-
}>;
|
|
227
|
-
commentedBy: Schema.Array$<typeof Schema.String>;
|
|
228
|
-
filesChanged: Schema.optional<typeof Schema.Number>;
|
|
229
|
-
approvalRules: Schema.optionalWith<Schema.Array$<typeof ApprovalRule>, {
|
|
230
|
-
default: () => never[];
|
|
231
|
-
}>;
|
|
232
|
-
}>, never, {
|
|
233
|
-
readonly link: string;
|
|
234
|
-
} & {
|
|
235
|
-
readonly id: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
236
|
-
} & {
|
|
237
|
-
readonly title: string;
|
|
238
|
-
} & {
|
|
239
|
-
readonly author: string;
|
|
240
|
-
} & {
|
|
241
|
-
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
242
|
-
} & {
|
|
243
|
-
readonly creationDate: Date;
|
|
244
|
-
} & {
|
|
245
|
-
readonly lastModifiedDate: Date;
|
|
246
|
-
} & {
|
|
247
|
-
readonly account: Account;
|
|
248
|
-
} & {
|
|
249
|
-
readonly status: "OPEN" | "CLOSED" | "MERGED";
|
|
250
|
-
} & {
|
|
251
|
-
readonly sourceBranch: string;
|
|
252
|
-
} & {
|
|
253
|
-
readonly destinationBranch: string;
|
|
254
|
-
} & {
|
|
255
|
-
readonly isMergeable: boolean;
|
|
256
|
-
} & {
|
|
257
|
-
readonly isApproved: boolean;
|
|
258
|
-
} & {
|
|
259
|
-
readonly description?: string | undefined;
|
|
260
|
-
} & {
|
|
261
|
-
readonly commentCount?: number | undefined;
|
|
262
|
-
} & {
|
|
263
|
-
readonly healthScore?: number | undefined;
|
|
264
|
-
} & {
|
|
265
|
-
readonly fetchedAt?: Date | undefined;
|
|
266
|
-
} & {
|
|
267
|
-
readonly approvedBy: readonly string[];
|
|
268
|
-
} & {
|
|
269
|
-
readonly approvedByArns?: readonly string[];
|
|
270
|
-
} & {
|
|
271
|
-
readonly commentedBy: readonly string[];
|
|
272
|
-
} & {
|
|
273
|
-
readonly filesChanged?: number | undefined;
|
|
274
|
-
} & {
|
|
275
|
-
readonly approvalRules?: readonly ApprovalRule[];
|
|
276
|
-
}, {}, {}>;
|
|
142
|
+
declare const PullRequest_base: Schema.Class<PullRequest, Schema.Struct<{
|
|
143
|
+
readonly id: Schema.brand<Schema.String, "PullRequestId">;
|
|
144
|
+
readonly title: Schema.String;
|
|
145
|
+
readonly description: Schema.optional<Schema.String>;
|
|
146
|
+
readonly author: Schema.String;
|
|
147
|
+
readonly repositoryName: Schema.brand<Schema.String, "RepositoryName">;
|
|
148
|
+
readonly creationDate: Schema.Date;
|
|
149
|
+
readonly lastModifiedDate: Schema.Date;
|
|
150
|
+
readonly link: Schema.String;
|
|
151
|
+
readonly account: typeof Account;
|
|
152
|
+
readonly status: Schema.Literals<readonly ["OPEN", "CLOSED", "MERGED"]>;
|
|
153
|
+
readonly sourceBranch: Schema.String;
|
|
154
|
+
readonly destinationBranch: Schema.String;
|
|
155
|
+
readonly isMergeable: Schema.Boolean;
|
|
156
|
+
readonly isApproved: Schema.Boolean;
|
|
157
|
+
readonly commentCount: Schema.optional<Schema.Number>;
|
|
158
|
+
readonly healthScore: Schema.optional<Schema.Number>;
|
|
159
|
+
readonly fetchedAt: Schema.optional<Schema.Date>;
|
|
160
|
+
readonly approvedBy: Schema.$Array<Schema.String>;
|
|
161
|
+
readonly approvedByArns: Schema.withDecodingDefaultTypeKey<Schema.$Array<Schema.String>, never>;
|
|
162
|
+
readonly commentedBy: Schema.$Array<Schema.String>;
|
|
163
|
+
readonly filesChanged: Schema.optional<Schema.Number>;
|
|
164
|
+
readonly approvalRules: Schema.withDecodingDefaultTypeKey<Schema.$Array<typeof ApprovalRule>, never>;
|
|
165
|
+
}>, {}>;
|
|
277
166
|
/**
|
|
278
167
|
* CodeCommit pull request.
|
|
279
168
|
*
|
|
@@ -282,66 +171,50 @@ declare const PullRequest_base: Schema.Class<PullRequest, {
|
|
|
282
171
|
export declare class PullRequest extends PullRequest_base {
|
|
283
172
|
get consoleUrl(): string;
|
|
284
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Robust identity comparison for matching a caller against an author or
|
|
176
|
+
* approval-pool member.
|
|
177
|
+
*
|
|
178
|
+
* Both sides normally arrive already normalised by `normalizeAuthor`
|
|
179
|
+
* (ARN → trailing `/`-segment), so the happy path is a plain equality. Under
|
|
180
|
+
* cross-account SSO / assumed-role setups the two strings can still diverge —
|
|
181
|
+
* e.g. one side is a full ARN or `AWSReservedSSO_<perm>_<id>/<user>` form while
|
|
182
|
+
* the other is the bare username, or they differ only in case. This is a
|
|
183
|
+
* SUPERSET of exact match: it still matches when the strings are equal, and
|
|
184
|
+
* additionally matches when, after case-folding and reducing each side to its
|
|
185
|
+
* final `/`- or `:`-segment (the username), the username segments are equal.
|
|
186
|
+
* It deliberately anchors on the username segment so unrelated users never match.
|
|
187
|
+
*
|
|
188
|
+
* @category Domain
|
|
189
|
+
*/
|
|
190
|
+
export declare const identityMatches: (callerUsername: string, prAuthor: string) => boolean;
|
|
285
191
|
/**
|
|
286
192
|
* Check if a PR needs review from the given user.
|
|
287
193
|
* Standalone function so it works with both Schema.Class instances and plain wire objects.
|
|
194
|
+
*
|
|
195
|
+
* Uses {@link identityMatches} (a superset of exact equality) for the
|
|
196
|
+
* caller-vs-pool-member and caller-vs-approver comparisons so SSO/ARN identity
|
|
197
|
+
* forms still match when they refer to the same user.
|
|
288
198
|
*/
|
|
289
199
|
export declare const needsMyReview: (pr: {
|
|
290
200
|
readonly approvalRules: ReadonlyArray<ApprovalRule>;
|
|
291
201
|
readonly approvedBy: ReadonlyArray<string>;
|
|
292
202
|
}, currentUser: string | undefined) => boolean;
|
|
293
203
|
export declare const codecommitConsoleUrl: (region: string, repo: string, prId: string) => string;
|
|
294
|
-
declare const Sandbox_base: Schema.Class<Sandbox, {
|
|
295
|
-
id: Schema.brand<
|
|
296
|
-
pullRequestId: Schema.brand<
|
|
297
|
-
awsAccountId:
|
|
298
|
-
repositoryName: Schema.brand<
|
|
299
|
-
sourceBranch:
|
|
300
|
-
containerId: Schema.optional<
|
|
301
|
-
port: Schema.optional<
|
|
302
|
-
workspacePath:
|
|
303
|
-
status: Schema.
|
|
304
|
-
error: Schema.optional<
|
|
305
|
-
createdAt:
|
|
306
|
-
lastActivityAt:
|
|
307
|
-
}
|
|
308
|
-
id: Schema.brand<typeof Schema.String, "SandboxId">;
|
|
309
|
-
pullRequestId: Schema.brand<typeof Schema.String, "PullRequestId">;
|
|
310
|
-
awsAccountId: typeof Schema.String;
|
|
311
|
-
repositoryName: Schema.brand<typeof Schema.String, "RepositoryName">;
|
|
312
|
-
sourceBranch: typeof Schema.String;
|
|
313
|
-
containerId: Schema.optional<typeof Schema.String>;
|
|
314
|
-
port: Schema.optional<typeof Schema.Number>;
|
|
315
|
-
workspacePath: typeof Schema.String;
|
|
316
|
-
status: Schema.Literal<["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
|
|
317
|
-
error: Schema.optional<typeof Schema.String>;
|
|
318
|
-
createdAt: typeof Schema.DateFromSelf;
|
|
319
|
-
lastActivityAt: typeof Schema.DateFromSelf;
|
|
320
|
-
}>, never, {
|
|
321
|
-
readonly error?: string | undefined;
|
|
322
|
-
} & {
|
|
323
|
-
readonly awsAccountId: string;
|
|
324
|
-
} & {
|
|
325
|
-
readonly id: string & import("effect/Brand").Brand<"SandboxId">;
|
|
326
|
-
} & {
|
|
327
|
-
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
328
|
-
} & {
|
|
329
|
-
readonly status: "error" | "creating" | "cloning" | "starting" | "running" | "stopping" | "stopped";
|
|
330
|
-
} & {
|
|
331
|
-
readonly sourceBranch: string;
|
|
332
|
-
} & {
|
|
333
|
-
readonly pullRequestId: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
334
|
-
} & {
|
|
335
|
-
readonly workspacePath: string;
|
|
336
|
-
} & {
|
|
337
|
-
readonly createdAt: Date;
|
|
338
|
-
} & {
|
|
339
|
-
readonly lastActivityAt: Date;
|
|
340
|
-
} & {
|
|
341
|
-
readonly containerId?: string | undefined;
|
|
342
|
-
} & {
|
|
343
|
-
readonly port?: number | undefined;
|
|
344
|
-
}, {}, {}>;
|
|
204
|
+
declare const Sandbox_base: Schema.Class<Sandbox, Schema.Struct<{
|
|
205
|
+
readonly id: Schema.brand<Schema.String, "SandboxId">;
|
|
206
|
+
readonly pullRequestId: Schema.brand<Schema.String, "PullRequestId">;
|
|
207
|
+
readonly awsAccountId: Schema.String;
|
|
208
|
+
readonly repositoryName: Schema.brand<Schema.String, "RepositoryName">;
|
|
209
|
+
readonly sourceBranch: Schema.String;
|
|
210
|
+
readonly containerId: Schema.optional<Schema.String>;
|
|
211
|
+
readonly port: Schema.optional<Schema.Number>;
|
|
212
|
+
readonly workspacePath: Schema.String;
|
|
213
|
+
readonly status: Schema.Literals<readonly ["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
|
|
214
|
+
readonly error: Schema.optional<Schema.String>;
|
|
215
|
+
readonly createdAt: Schema.Date;
|
|
216
|
+
readonly lastActivityAt: Schema.Date;
|
|
217
|
+
}>, {}>;
|
|
345
218
|
/**
|
|
346
219
|
* Code sandbox instance for a pull request.
|
|
347
220
|
*
|
|
@@ -349,41 +222,16 @@ declare const Sandbox_base: Schema.Class<Sandbox, {
|
|
|
349
222
|
*/
|
|
350
223
|
export declare class Sandbox extends Sandbox_base {
|
|
351
224
|
}
|
|
352
|
-
declare const PRComment_base: Schema.Class<PRComment, {
|
|
353
|
-
id: Schema.brand<
|
|
354
|
-
content:
|
|
355
|
-
author:
|
|
356
|
-
creationDate:
|
|
357
|
-
inReplyTo: Schema.optional<Schema.brand<
|
|
358
|
-
deleted:
|
|
359
|
-
filePath: Schema.optional<
|
|
360
|
-
lineNumber: Schema.optional<
|
|
361
|
-
}
|
|
362
|
-
id: Schema.brand<typeof Schema.String, "CommentId">;
|
|
363
|
-
content: typeof Schema.String;
|
|
364
|
-
author: typeof Schema.String;
|
|
365
|
-
creationDate: typeof Schema.DateFromSelf;
|
|
366
|
-
inReplyTo: Schema.optional<Schema.brand<typeof Schema.String, "CommentId">>;
|
|
367
|
-
deleted: typeof Schema.Boolean;
|
|
368
|
-
filePath: Schema.optional<typeof Schema.String>;
|
|
369
|
-
lineNumber: Schema.optional<typeof Schema.Number>;
|
|
370
|
-
}>, never, {
|
|
371
|
-
readonly id: string & import("effect/Brand").Brand<"CommentId">;
|
|
372
|
-
} & {
|
|
373
|
-
readonly author: string;
|
|
374
|
-
} & {
|
|
375
|
-
readonly creationDate: Date;
|
|
376
|
-
} & {
|
|
377
|
-
readonly content: string;
|
|
378
|
-
} & {
|
|
379
|
-
readonly deleted: boolean;
|
|
380
|
-
} & {
|
|
381
|
-
readonly inReplyTo?: (string & import("effect/Brand").Brand<"CommentId">) | undefined;
|
|
382
|
-
} & {
|
|
383
|
-
readonly filePath?: string | undefined;
|
|
384
|
-
} & {
|
|
385
|
-
readonly lineNumber?: number | undefined;
|
|
386
|
-
}, {}, {}>;
|
|
225
|
+
declare const PRComment_base: Schema.Class<PRComment, Schema.Struct<{
|
|
226
|
+
readonly id: Schema.brand<Schema.String, "CommentId">;
|
|
227
|
+
readonly content: Schema.String;
|
|
228
|
+
readonly author: Schema.String;
|
|
229
|
+
readonly creationDate: Schema.Date;
|
|
230
|
+
readonly inReplyTo: Schema.optional<Schema.brand<Schema.String, "CommentId">>;
|
|
231
|
+
readonly deleted: Schema.Boolean;
|
|
232
|
+
readonly filePath: Schema.optional<Schema.String>;
|
|
233
|
+
readonly lineNumber: Schema.optional<Schema.Number>;
|
|
234
|
+
}>, {}>;
|
|
387
235
|
/**
|
|
388
236
|
* Comment on a pull request.
|
|
389
237
|
*
|
|
@@ -412,14 +260,14 @@ export interface PRCommentLocation {
|
|
|
412
260
|
readonly comments: ReadonlyArray<CommentThread>;
|
|
413
261
|
}
|
|
414
262
|
declare const PRCommentJson: Schema.Struct<{
|
|
415
|
-
id:
|
|
416
|
-
content:
|
|
417
|
-
author:
|
|
418
|
-
creationDate:
|
|
419
|
-
inReplyTo: Schema.optional<
|
|
420
|
-
deleted:
|
|
421
|
-
filePath: Schema.optional<
|
|
422
|
-
lineNumber: Schema.optional<
|
|
263
|
+
readonly id: Schema.String;
|
|
264
|
+
readonly content: Schema.String;
|
|
265
|
+
readonly author: Schema.String;
|
|
266
|
+
readonly creationDate: Schema.String;
|
|
267
|
+
readonly inReplyTo: Schema.optional<Schema.String>;
|
|
268
|
+
readonly deleted: Schema.Boolean;
|
|
269
|
+
readonly filePath: Schema.optional<Schema.String>;
|
|
270
|
+
readonly lineNumber: Schema.optional<Schema.Number>;
|
|
423
271
|
}>;
|
|
424
272
|
export interface CommentThreadJsonEncoded {
|
|
425
273
|
readonly root: typeof PRCommentJson.Type;
|
|
@@ -432,10 +280,10 @@ export interface CommentThreadJsonEncoded {
|
|
|
432
280
|
* @category Domain
|
|
433
281
|
*/
|
|
434
282
|
export declare const PRCommentLocationJson: Schema.Struct<{
|
|
435
|
-
filePath: Schema.optional<
|
|
436
|
-
beforeCommitId: Schema.optional<
|
|
437
|
-
afterCommitId: Schema.optional<
|
|
438
|
-
comments: Schema
|
|
283
|
+
readonly filePath: Schema.optional<Schema.String>;
|
|
284
|
+
readonly beforeCommitId: Schema.optional<Schema.String>;
|
|
285
|
+
readonly afterCommitId: Schema.optional<Schema.String>;
|
|
286
|
+
readonly comments: Schema.$Array<Schema.Schema<CommentThreadJsonEncoded>>;
|
|
439
287
|
}>;
|
|
440
288
|
/**
|
|
441
289
|
* Encode PRCommentLocations to JSON-safe format for HTTP responses.
|
|
@@ -443,39 +291,17 @@ export declare const PRCommentLocationJson: Schema.Struct<{
|
|
|
443
291
|
* @category Domain
|
|
444
292
|
*/
|
|
445
293
|
export declare const encodeCommentLocations: (locations: ReadonlyArray<PRCommentLocation>) => ReadonlyArray<typeof PRCommentLocationJson.Type>;
|
|
446
|
-
export declare const PersistentNotificationType: Schema.
|
|
294
|
+
export declare const PersistentNotificationType: Schema.Literals<readonly ["new_comment", "comment_edited", "comment_deleted", "approval_changed", "approval_requested", "review_reminder", "merge_changed", "title_changed", "description_changed", "pr_merged", "pr_closed", "pr_reopened"]>;
|
|
447
295
|
export type PersistentNotificationType = typeof PersistentNotificationType.Type;
|
|
448
|
-
declare const PersistentNotification_base: Schema.Class<PersistentNotification, {
|
|
449
|
-
id:
|
|
450
|
-
pullRequestId: Schema.brand<
|
|
451
|
-
awsAccountId:
|
|
452
|
-
type: Schema.
|
|
453
|
-
message:
|
|
454
|
-
createdAt:
|
|
455
|
-
read:
|
|
456
|
-
}
|
|
457
|
-
id: typeof Schema.Number;
|
|
458
|
-
pullRequestId: Schema.brand<typeof Schema.String, "PullRequestId">;
|
|
459
|
-
awsAccountId: typeof Schema.String;
|
|
460
|
-
type: Schema.Literal<["new_comment", "comment_edited", "comment_deleted", "approval_changed", "approval_requested", "review_reminder", "merge_changed", "title_changed", "description_changed", "pr_merged", "pr_closed", "pr_reopened"]>;
|
|
461
|
-
message: typeof Schema.String;
|
|
462
|
-
createdAt: typeof Schema.DateFromSelf;
|
|
463
|
-
read: typeof Schema.Boolean;
|
|
464
|
-
}>, never, {
|
|
465
|
-
readonly awsAccountId: string;
|
|
466
|
-
} & {
|
|
467
|
-
readonly id: number;
|
|
468
|
-
} & {
|
|
469
|
-
readonly pullRequestId: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
470
|
-
} & {
|
|
471
|
-
readonly createdAt: Date;
|
|
472
|
-
} & {
|
|
473
|
-
readonly type: "new_comment" | "comment_edited" | "comment_deleted" | "approval_changed" | "approval_requested" | "review_reminder" | "merge_changed" | "title_changed" | "description_changed" | "pr_merged" | "pr_closed" | "pr_reopened";
|
|
474
|
-
} & {
|
|
475
|
-
readonly message: string;
|
|
476
|
-
} & {
|
|
477
|
-
readonly read: boolean;
|
|
478
|
-
}, {}, {}>;
|
|
296
|
+
declare const PersistentNotification_base: Schema.Class<PersistentNotification, Schema.Struct<{
|
|
297
|
+
readonly id: Schema.Number;
|
|
298
|
+
readonly pullRequestId: Schema.brand<Schema.String, "PullRequestId">;
|
|
299
|
+
readonly awsAccountId: Schema.String;
|
|
300
|
+
readonly type: Schema.Literals<readonly ["new_comment", "comment_edited", "comment_deleted", "approval_changed", "approval_requested", "review_reminder", "merge_changed", "title_changed", "description_changed", "pr_merged", "pr_closed", "pr_reopened"]>;
|
|
301
|
+
readonly message: Schema.String;
|
|
302
|
+
readonly createdAt: Schema.Date;
|
|
303
|
+
readonly read: Schema.Boolean;
|
|
304
|
+
}>, {}>;
|
|
479
305
|
export declare class PersistentNotification extends PersistentNotification_base {
|
|
480
306
|
}
|
|
481
307
|
export type PRSyncStatus = Data.TaggedEnum<{
|
|
@@ -494,19 +320,19 @@ export type PRSyncStatus = Data.TaggedEnum<{
|
|
|
494
320
|
};
|
|
495
321
|
}>;
|
|
496
322
|
export declare const PRSyncStatus: {
|
|
497
|
-
readonly Cached: Data.
|
|
323
|
+
readonly Cached: Data.TaggedEnum.ConstructorFrom<{
|
|
498
324
|
readonly _tag: "Cached";
|
|
499
325
|
readonly fetchedAt: Date;
|
|
500
326
|
}, "_tag">;
|
|
501
|
-
readonly Syncing: Data.
|
|
327
|
+
readonly Syncing: Data.TaggedEnum.ConstructorFrom<{
|
|
502
328
|
readonly _tag: "Syncing";
|
|
503
329
|
readonly fetchedAt: Date;
|
|
504
330
|
}, "_tag">;
|
|
505
|
-
readonly UpToDate: Data.
|
|
331
|
+
readonly UpToDate: Data.TaggedEnum.ConstructorFrom<{
|
|
506
332
|
readonly _tag: "UpToDate";
|
|
507
333
|
readonly fetchedAt: Date;
|
|
508
334
|
}, "_tag">;
|
|
509
|
-
readonly Failed: Data.
|
|
335
|
+
readonly Failed: Data.TaggedEnum.ConstructorFrom<{
|
|
510
336
|
readonly _tag: "Failed";
|
|
511
337
|
readonly fetchedAt: Date;
|
|
512
338
|
readonly error: string;
|
|
@@ -534,7 +360,7 @@ export declare const PRSyncStatus: {
|
|
|
534
360
|
readonly _tag: Tag;
|
|
535
361
|
}>;
|
|
536
362
|
readonly $match: {
|
|
537
|
-
<
|
|
363
|
+
<Cases extends {
|
|
538
364
|
readonly Cached: (args: {
|
|
539
365
|
readonly _tag: "Cached";
|
|
540
366
|
readonly fetchedAt: Date;
|
|
@@ -552,7 +378,7 @@ export declare const PRSyncStatus: {
|
|
|
552
378
|
readonly fetchedAt: Date;
|
|
553
379
|
readonly error: string;
|
|
554
380
|
}) => any;
|
|
555
|
-
}>(cases: Cases
|
|
381
|
+
}>(cases: Cases): (value: {
|
|
556
382
|
readonly _tag: "Cached";
|
|
557
383
|
readonly fetchedAt: Date;
|
|
558
384
|
} | {
|
|
@@ -566,7 +392,7 @@ export declare const PRSyncStatus: {
|
|
|
566
392
|
readonly fetchedAt: Date;
|
|
567
393
|
readonly error: string;
|
|
568
394
|
}) => import("effect/Unify").Unify<ReturnType<Cases["Cached" | "Syncing" | "UpToDate" | "Failed"]>>;
|
|
569
|
-
<
|
|
395
|
+
<Cases extends {
|
|
570
396
|
readonly Cached: (args: {
|
|
571
397
|
readonly _tag: "Cached";
|
|
572
398
|
readonly fetchedAt: Date;
|
|
@@ -597,36 +423,16 @@ export declare const PRSyncStatus: {
|
|
|
597
423
|
readonly _tag: "Failed";
|
|
598
424
|
readonly fetchedAt: Date;
|
|
599
425
|
readonly error: string;
|
|
600
|
-
}, cases: Cases
|
|
426
|
+
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Cached" | "Syncing" | "UpToDate" | "Failed"]>>;
|
|
601
427
|
};
|
|
602
428
|
};
|
|
603
|
-
declare const NotificationItem_base: Schema.Class<NotificationItem, {
|
|
604
|
-
type: Schema.
|
|
605
|
-
title:
|
|
606
|
-
message:
|
|
607
|
-
timestamp:
|
|
608
|
-
profile: Schema.
|
|
609
|
-
|
|
610
|
-
}>;
|
|
611
|
-
}, Schema.Struct.Encoded<{
|
|
612
|
-
type: Schema.Literal<["error", "info", "warning", "success"]>;
|
|
613
|
-
title: typeof Schema.String;
|
|
614
|
-
message: typeof Schema.String;
|
|
615
|
-
timestamp: typeof Schema.DateFromSelf;
|
|
616
|
-
profile: Schema.optionalWith<typeof Schema.String, {
|
|
617
|
-
exact: true;
|
|
618
|
-
}>;
|
|
619
|
-
}>, never, {
|
|
620
|
-
readonly profile?: string;
|
|
621
|
-
} & {
|
|
622
|
-
readonly title: string;
|
|
623
|
-
} & {
|
|
624
|
-
readonly type: "error" | "info" | "warning" | "success";
|
|
625
|
-
} & {
|
|
626
|
-
readonly message: string;
|
|
627
|
-
} & {
|
|
628
|
-
readonly timestamp: Date;
|
|
629
|
-
}, {}, {}>;
|
|
429
|
+
declare const NotificationItem_base: Schema.Class<NotificationItem, Schema.Struct<{
|
|
430
|
+
readonly type: Schema.Literals<readonly ["error", "info", "warning", "success"]>;
|
|
431
|
+
readonly title: Schema.String;
|
|
432
|
+
readonly message: Schema.String;
|
|
433
|
+
readonly timestamp: Schema.Date;
|
|
434
|
+
readonly profile: Schema.optionalKey<Schema.String>;
|
|
435
|
+
}>, {}>;
|
|
630
436
|
/**
|
|
631
437
|
* Notification item with timestamp.
|
|
632
438
|
*
|
package/dist/Domain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../src/Domain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../src/Domain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAE,IAAI,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAA;AAM7C;;;;GAIG;AACH,eAAO,MAAM,aAAa,8CAAoD,CAAA;AAC9E,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,cAAc,+CAAqD,CAAA;AAChF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA;AAEvD;;;;GAIG;AACH,eAAO,MAAM,cAAc,+CAAqD,CAAA;AAChF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA;AAEvD;;;;GAIG;AACH,eAAO,MAAM,SAAS,0CAAgD,CAAA;AACtE,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAA;AAE7C;;;;GAIG;AACH,eAAO,MAAM,SAAS,0CAAgD,CAAA;AACtE,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAA;AAE7C;;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