@knpkv/codecommit-core 0.3.0 → 0.5.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 +66 -0
- package/dist/AwsClient/createPullRequest.d.ts +1 -6
- package/dist/AwsClient/createPullRequest.d.ts.map +1 -1
- package/dist/AwsClient/createPullRequest.js +3 -11
- package/dist/AwsClient/createPullRequest.js.map +1 -1
- package/dist/AwsClient/getCallerIdentity.d.ts +5 -6
- package/dist/AwsClient/getCallerIdentity.d.ts.map +1 -1
- package/dist/AwsClient/getCallerIdentity.js +7 -12
- package/dist/AwsClient/getCallerIdentity.js.map +1 -1
- package/dist/AwsClient/getCommentsForPullRequest.d.ts +1 -6
- package/dist/AwsClient/getCommentsForPullRequest.d.ts.map +1 -1
- package/dist/AwsClient/getCommentsForPullRequest.js +9 -16
- package/dist/AwsClient/getCommentsForPullRequest.js.map +1 -1
- package/dist/AwsClient/getPullRequest.d.ts +2 -7
- package/dist/AwsClient/getPullRequest.d.ts.map +1 -1
- package/dist/AwsClient/getPullRequest.js +15 -28
- package/dist/AwsClient/getPullRequest.js.map +1 -1
- package/dist/AwsClient/getPullRequests.d.ts.map +1 -1
- package/dist/AwsClient/getPullRequests.js +18 -15
- package/dist/AwsClient/getPullRequests.js.map +1 -1
- package/dist/AwsClient/index.d.ts +3 -2
- package/dist/AwsClient/index.d.ts.map +1 -1
- package/dist/AwsClient/index.js.map +1 -1
- package/dist/AwsClient/internal.d.ts +47 -11
- package/dist/AwsClient/internal.d.ts.map +1 -1
- package/dist/AwsClient/internal.js +38 -9
- package/dist/AwsClient/internal.js.map +1 -1
- package/dist/AwsClient/listBranches.d.ts +1 -6
- package/dist/AwsClient/listBranches.d.ts.map +1 -1
- package/dist/AwsClient/listBranches.js +3 -11
- package/dist/AwsClient/listBranches.js.map +1 -1
- package/dist/AwsClient/updatePullRequestDescription.d.ts +1 -6
- package/dist/AwsClient/updatePullRequestDescription.d.ts.map +1 -1
- package/dist/AwsClient/updatePullRequestDescription.js +3 -11
- package/dist/AwsClient/updatePullRequestDescription.js.map +1 -1
- package/dist/AwsClient/updatePullRequestTitle.d.ts +1 -6
- package/dist/AwsClient/updatePullRequestTitle.d.ts.map +1 -1
- package/dist/AwsClient/updatePullRequestTitle.js +3 -11
- package/dist/AwsClient/updatePullRequestTitle.js.map +1 -1
- package/dist/CacheService/CacheError.d.ts +21 -0
- package/dist/CacheService/CacheError.d.ts.map +1 -0
- package/dist/CacheService/CacheError.js +17 -0
- package/dist/CacheService/CacheError.js.map +1 -0
- package/dist/CacheService/Database.d.ts +13 -0
- package/dist/CacheService/Database.d.ts.map +1 -0
- package/dist/CacheService/Database.js +38 -0
- package/dist/CacheService/Database.js.map +1 -0
- package/dist/CacheService/EventsHub.d.ts +183 -0
- package/dist/CacheService/EventsHub.d.ts.map +1 -0
- package/dist/CacheService/EventsHub.js +22 -0
- package/dist/CacheService/EventsHub.js.map +1 -0
- package/dist/CacheService/diff.d.ts +28 -0
- package/dist/CacheService/diff.d.ts.map +1 -0
- package/dist/CacheService/diff.js +102 -0
- package/dist/CacheService/diff.js.map +1 -0
- package/dist/CacheService/index.d.ts +19 -0
- package/dist/CacheService/index.d.ts.map +1 -0
- package/dist/CacheService/index.js +16 -0
- package/dist/CacheService/index.js.map +1 -0
- package/dist/CacheService/migrations/0001_initial.d.ts +5 -0
- package/dist/CacheService/migrations/0001_initial.d.ts.map +1 -0
- package/dist/CacheService/migrations/0001_initial.js +72 -0
- package/dist/CacheService/migrations/0001_initial.js.map +1 -0
- package/dist/CacheService/migrations/0002_indexes.d.ts +5 -0
- package/dist/CacheService/migrations/0002_indexes.d.ts.map +1 -0
- package/dist/CacheService/migrations/0002_indexes.js +7 -0
- package/dist/CacheService/migrations/0002_indexes.js.map +1 -0
- package/dist/CacheService/migrations/0003_add_health_score.d.ts +5 -0
- package/dist/CacheService/migrations/0003_add_health_score.d.ts.map +1 -0
- package/dist/CacheService/migrations/0003_add_health_score.js +4 -0
- package/dist/CacheService/migrations/0003_add_health_score.js.map +1 -0
- package/dist/CacheService/migrations/0004_unify_notifications.d.ts +5 -0
- package/dist/CacheService/migrations/0004_unify_notifications.d.ts.map +1 -0
- package/dist/CacheService/migrations/0004_unify_notifications.js +7 -0
- package/dist/CacheService/migrations/0004_unify_notifications.js.map +1 -0
- package/dist/CacheService/migrations/0005_add_sandboxes.d.ts +5 -0
- package/dist/CacheService/migrations/0005_add_sandboxes.d.ts.map +1 -0
- package/dist/CacheService/migrations/0005_add_sandboxes.js +23 -0
- package/dist/CacheService/migrations/0005_add_sandboxes.js.map +1 -0
- package/dist/CacheService/migrations/0006_sandbox_logs.d.ts +5 -0
- package/dist/CacheService/migrations/0006_sandbox_logs.d.ts.map +1 -0
- package/dist/CacheService/migrations/0006_sandbox_logs.js +7 -0
- package/dist/CacheService/migrations/0006_sandbox_logs.js.map +1 -0
- package/dist/CacheService/repos/CommentRepo.d.ts +16 -0
- package/dist/CacheService/repos/CommentRepo.d.ts.map +1 -0
- package/dist/CacheService/repos/CommentRepo.js +42 -0
- package/dist/CacheService/repos/CommentRepo.js.map +1 -0
- package/dist/CacheService/repos/NotificationRepo.d.ts +48 -0
- package/dist/CacheService/repos/NotificationRepo.d.ts.map +1 -0
- package/dist/CacheService/repos/NotificationRepo.js +128 -0
- package/dist/CacheService/repos/NotificationRepo.js.map +1 -0
- package/dist/CacheService/repos/PullRequestRepo.d.ts +112 -0
- package/dist/CacheService/repos/PullRequestRepo.d.ts.map +1 -0
- package/dist/CacheService/repos/PullRequestRepo.js +146 -0
- package/dist/CacheService/repos/PullRequestRepo.js.map +1 -0
- package/dist/CacheService/repos/SandboxRepo.d.ts +116 -0
- package/dist/CacheService/repos/SandboxRepo.d.ts.map +1 -0
- package/dist/CacheService/repos/SandboxRepo.js +88 -0
- package/dist/CacheService/repos/SandboxRepo.js.map +1 -0
- package/dist/CacheService/repos/SubscriptionRepo.d.ts +20 -0
- package/dist/CacheService/repos/SubscriptionRepo.d.ts.map +1 -0
- package/dist/CacheService/repos/SubscriptionRepo.js +49 -0
- package/dist/CacheService/repos/SubscriptionRepo.js.map +1 -0
- package/dist/CacheService/repos/SyncMetadataRepo.d.ts +14 -0
- package/dist/CacheService/repos/SyncMetadataRepo.d.ts.map +1 -0
- package/dist/CacheService/repos/SyncMetadataRepo.js +36 -0
- package/dist/CacheService/repos/SyncMetadataRepo.js.map +1 -0
- package/dist/ConfigService/backup.d.ts +1 -1
- package/dist/ConfigService/detectProfiles.d.ts +1 -1
- package/dist/ConfigService/index.d.ts +3 -2
- package/dist/ConfigService/index.d.ts.map +1 -1
- package/dist/ConfigService/index.js +4 -2
- package/dist/ConfigService/index.js.map +1 -1
- package/dist/ConfigService/internal.d.ts +104 -0
- package/dist/ConfigService/internal.d.ts.map +1 -1
- package/dist/ConfigService/internal.js +18 -1
- package/dist/ConfigService/internal.js.map +1 -1
- package/dist/ConfigService/load.d.ts +18 -1
- package/dist/ConfigService/load.d.ts.map +1 -1
- package/dist/ConfigService/load.js +12 -3
- package/dist/ConfigService/load.js.map +1 -1
- package/dist/ConfigService/reset.d.ts.map +1 -1
- package/dist/ConfigService/reset.js +5 -2
- package/dist/ConfigService/reset.js.map +1 -1
- package/dist/ConfigService/save.d.ts +1 -1
- package/dist/ConfigService/validate.d.ts +1 -1
- package/dist/DateUtils.d.ts +1 -1
- package/dist/DateUtils.d.ts.map +1 -1
- package/dist/DateUtils.js +2 -2
- package/dist/DateUtils.js.map +1 -1
- package/dist/Domain.d.ts +251 -10
- package/dist/Domain.d.ts.map +1 -1
- package/dist/Domain.js +55 -5
- package/dist/Domain.js.map +1 -1
- package/dist/Errors.d.ts +28 -1
- package/dist/Errors.d.ts.map +1 -1
- package/dist/Errors.js +22 -1
- package/dist/Errors.js.map +1 -1
- package/dist/HealthScore.d.ts.map +1 -1
- package/dist/HealthScore.js +1 -3
- package/dist/HealthScore.js.map +1 -1
- package/dist/PRService/index.d.ts +46 -18
- package/dist/PRService/index.d.ts.map +1 -1
- package/dist/PRService/index.js +58 -27
- package/dist/PRService/index.js.map +1 -1
- package/dist/PRService/internal.d.ts +86 -1
- package/dist/PRService/internal.d.ts.map +1 -1
- package/dist/PRService/internal.js +106 -1
- package/dist/PRService/internal.js.map +1 -1
- package/dist/PRService/refresh.d.ts +10 -4
- package/dist/PRService/refresh.d.ts.map +1 -1
- package/dist/PRService/refresh.js +30 -89
- package/dist/PRService/refresh.js.map +1 -1
- package/dist/PRService/refreshEnrich.d.ts +15 -0
- package/dist/PRService/refreshEnrich.d.ts.map +1 -0
- package/dist/PRService/refreshEnrich.js +72 -0
- package/dist/PRService/refreshEnrich.js.map +1 -0
- package/dist/PRService/refreshFetch.d.ts +20 -0
- package/dist/PRService/refreshFetch.d.ts.map +1 -0
- package/dist/PRService/refreshFetch.js +78 -0
- package/dist/PRService/refreshFetch.js.map +1 -0
- package/dist/PRService/refreshResolve.d.ts +29 -0
- package/dist/PRService/refreshResolve.d.ts.map +1 -0
- package/dist/PRService/refreshResolve.js +84 -0
- package/dist/PRService/refreshResolve.js.map +1 -0
- package/dist/PRService/refreshScore.d.ts +9 -0
- package/dist/PRService/refreshScore.d.ts.map +1 -0
- package/dist/PRService/refreshScore.js +24 -0
- package/dist/PRService/refreshScore.js.map +1 -0
- package/dist/PRService/refreshSinglePR.d.ts +13 -0
- package/dist/PRService/refreshSinglePR.d.ts.map +1 -0
- package/dist/PRService/refreshSinglePR.js +102 -0
- package/dist/PRService/refreshSinglePR.js.map +1 -0
- package/dist/PRService/setAllAccounts.d.ts +1 -3
- package/dist/PRService/setAllAccounts.d.ts.map +1 -1
- package/dist/PRService/setAllAccounts.js +2 -2
- package/dist/PRService/setAllAccounts.js.map +1 -1
- package/dist/PRService/toggleAccount.d.ts +1 -3
- package/dist/PRService/toggleAccount.d.ts.map +1 -1
- package/dist/PRService/toggleAccount.js +2 -2
- package/dist/PRService/toggleAccount.js.map +1 -1
- package/dist/SandboxService/DockerService.d.ts +57 -0
- package/dist/SandboxService/DockerService.d.ts.map +1 -0
- package/dist/SandboxService/DockerService.js +83 -0
- package/dist/SandboxService/DockerService.js.map +1 -0
- package/dist/SandboxService/PluginService.d.ts +38 -0
- package/dist/SandboxService/PluginService.d.ts.map +1 -0
- package/dist/SandboxService/PluginService.js +26 -0
- package/dist/SandboxService/PluginService.js.map +1 -0
- package/dist/SandboxService/SandboxService.d.ts +102 -0
- package/dist/SandboxService/SandboxService.d.ts.map +1 -0
- package/dist/SandboxService/SandboxService.js +272 -0
- package/dist/SandboxService/SandboxService.js.map +1 -0
- package/dist/SandboxService/index.d.ts +13 -0
- package/dist/SandboxService/index.d.ts.map +1 -0
- package/dist/SandboxService/index.js +10 -0
- package/dist/SandboxService/index.js.map +1 -0
- package/dist/SandboxService/plugins/ClaudeCodePlugin.d.ts +18 -0
- package/dist/SandboxService/plugins/ClaudeCodePlugin.d.ts.map +1 -0
- package/dist/SandboxService/plugins/ClaudeCodePlugin.js +24 -0
- package/dist/SandboxService/plugins/ClaudeCodePlugin.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/dist/NotificationsService.d.ts +0 -46
- package/dist/NotificationsService.d.ts.map +0 -1
- package/dist/NotificationsService.js +0 -57
- package/dist/NotificationsService.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../src/ConfigService/internal.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAGxD,8EAA8E;AAC9E,UAAU;AACV,8EAA8E;AAE9E,MAAM,OAAO,eAAgB,SAAQ,MAAM,CAAC,KAAK,CAAkB,iBAAiB,CAAC,CAAC;IACpF,IAAI,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
|
17
|
+
readonly autoRefresh: boolean;
|
|
18
|
+
readonly refreshIntervalSeconds: number;
|
|
19
|
+
readonly sandbox: {
|
|
20
|
+
readonly image: string;
|
|
21
|
+
readonly extensions: readonly string[];
|
|
22
|
+
readonly setupCommands: readonly string[];
|
|
23
|
+
readonly env: {
|
|
24
|
+
readonly [x: string]: string;
|
|
25
|
+
};
|
|
26
|
+
readonly enableClaudeCode: boolean;
|
|
27
|
+
readonly volumeMounts: readonly {
|
|
28
|
+
readonly hostPath: string;
|
|
29
|
+
readonly containerPath: string;
|
|
30
|
+
readonly readonly: boolean;
|
|
31
|
+
}[];
|
|
32
|
+
readonly cloneDepth: number;
|
|
33
|
+
};
|
|
34
|
+
}, ConfigError | ConfigParseError, FileSystem.FileSystem | ConfigPaths | Path.Path>;
|
|
18
35
|
//# sourceMappingURL=load.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../src/ConfigService/load.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../src/ConfigService/load.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,EAAE,WAAW,EAAwB,KAAK,eAAe,EAAa,MAAM,eAAe,CAAA;AAElG,eAAO,MAAM,QAAQ,GACnB,gBAAgB,MAAM,CAAC,MAAM,CAC3B,aAAa,CAAC,eAAe,CAAC,EAC9B,qBAAqB,EACrB,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,WAAW,CAChD;;;;;;;;;;;;;;;;;;;;;;;;mFA8D6C,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileSystem } from "@effect/platform";
|
|
2
2
|
import { Effect, Schema } from "effect";
|
|
3
3
|
import { ConfigError, ConfigParseError } from "../Errors.js";
|
|
4
|
-
import { ConfigPaths, TuiConfig } from "./internal.js";
|
|
4
|
+
import { ConfigPaths, defaultSandboxConfig, TuiConfig } from "./internal.js";
|
|
5
5
|
export const makeLoad = (detectProfiles) => Effect.gen(function* () {
|
|
6
6
|
const fs = yield* FileSystem.FileSystem;
|
|
7
7
|
const paths = yield* ConfigPaths;
|
|
@@ -16,10 +16,19 @@ export const makeLoad = (detectProfiles) => Effect.gen(function* () {
|
|
|
16
16
|
regions: p.region ? [p.region] : [],
|
|
17
17
|
enabled: false
|
|
18
18
|
})),
|
|
19
|
-
autoDetect: true
|
|
19
|
+
autoDetect: true,
|
|
20
|
+
autoRefresh: true,
|
|
21
|
+
refreshIntervalSeconds: 300,
|
|
22
|
+
sandbox: defaultSandboxConfig
|
|
20
23
|
};
|
|
21
24
|
}
|
|
22
|
-
return {
|
|
25
|
+
return {
|
|
26
|
+
accounts: [],
|
|
27
|
+
autoDetect: true,
|
|
28
|
+
autoRefresh: true,
|
|
29
|
+
refreshIntervalSeconds: 300,
|
|
30
|
+
sandbox: defaultSandboxConfig
|
|
31
|
+
};
|
|
23
32
|
}
|
|
24
33
|
const content = yield* fs.readFileString(configPath).pipe(Effect.mapError((e) => new ConfigError({ message: "Failed to read config file", cause: e })));
|
|
25
34
|
const config = yield* Schema.decodeUnknown(Schema.parseJson(TuiConfig))(content).pipe(Effect.mapError((cause) => new ConfigParseError({ path: configPath, cause })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../src/ConfigService/load.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE5D,OAAO,EAAE,WAAW,EAAwB,SAAS,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../src/ConfigService/load.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE5D,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAwB,SAAS,EAAE,MAAM,eAAe,CAAA;AAElG,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,cAIC,EACD,EAAE,CACF,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAA;IACvC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,WAAW,CAAA;IAChC,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,KAAK,CAAC,UAAU,CAAA;IAE1C,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAC9C,MAAM,CAAC,QAAQ,CAAC,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BAAkB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEtE,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"reset.d.ts","sourceRoot":"","sources":["../../src/ConfigService/reset.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEtE,OAAO,EAAE,WAAW,EAAwB,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,eAAe,CAAA;AAGvG,eAAO,MAAM,SAAS,GACpB,gBAAgB,MAAM,CAAC,MAAM,CAC3B,aAAa,CAAC,eAAe,CAAC,EAC9B,qBAAqB,EACrB,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,WAAW,CAChD,KACA,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,WAAW,CAkCvC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileSystem } from "@effect/platform";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
import { backup } from "./backup.js";
|
|
4
|
-
import { ConfigPaths } from "./internal.js";
|
|
4
|
+
import { ConfigPaths, defaultSandboxConfig } from "./internal.js";
|
|
5
5
|
import { save } from "./save.js";
|
|
6
6
|
export const makeReset = (detectProfiles) => Effect.gen(function* () {
|
|
7
7
|
const fs = yield* FileSystem.FileSystem;
|
|
@@ -18,7 +18,10 @@ export const makeReset = (detectProfiles) => Effect.gen(function* () {
|
|
|
18
18
|
regions: p.region ? [p.region] : [],
|
|
19
19
|
enabled: false
|
|
20
20
|
})),
|
|
21
|
-
autoDetect: true
|
|
21
|
+
autoDetect: true,
|
|
22
|
+
autoRefresh: true,
|
|
23
|
+
refreshIntervalSeconds: 300,
|
|
24
|
+
sandbox: defaultSandboxConfig
|
|
22
25
|
};
|
|
23
26
|
yield* save(config);
|
|
24
27
|
return config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset.js","sourceRoot":"","sources":["../../src/ConfigService/reset.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,WAAW,EAAwC,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"reset.js","sourceRoot":"","sources":["../../src/ConfigService/reset.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAwC,MAAM,eAAe,CAAA;AACvG,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,cAIC,EACuF,EAAE,CAC1F,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAA;IACvC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,WAAW,CAAA;IAChC,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,KAAK,CAAC,UAAU,CAAA;IAE1C,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,E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effect/platform";
|
|
|
5
5
|
import { Effect } from "effect";
|
|
6
6
|
import { ConfigError } from "../Errors.js";
|
|
7
7
|
import { ConfigPaths, type TuiConfig } from "./internal.js";
|
|
8
|
-
export declare const save: (config: TuiConfig) => Effect.Effect<void, ConfigError,
|
|
8
|
+
export declare const save: (config: TuiConfig) => Effect.Effect<void, ConfigError, FileSystem.FileSystem | ConfigPaths | Path.Path>;
|
|
9
9
|
//# sourceMappingURL=save.d.ts.map
|
|
@@ -26,6 +26,6 @@ declare const ConfigValidationResult_base: Schema.Class<ConfigValidationResult,
|
|
|
26
26
|
}, {}, {}>;
|
|
27
27
|
export declare class ConfigValidationResult extends ConfigValidationResult_base {
|
|
28
28
|
}
|
|
29
|
-
export declare const validate: Effect.Effect<ConfigValidationResult, ConfigError,
|
|
29
|
+
export declare const validate: Effect.Effect<ConfigValidationResult, ConfigError, FileSystem.FileSystem | ConfigPaths>;
|
|
30
30
|
export {};
|
|
31
31
|
//# sourceMappingURL=validate.d.ts.map
|
package/dist/DateUtils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const formatDate: (date: Date) => string;
|
|
2
2
|
export declare const formatDateTime: (date: Date) => string;
|
|
3
|
-
export declare const formatRelativeTime: (date: Date, now: Date) => string;
|
|
3
|
+
export declare const formatRelativeTime: (date: Date, now: Date, prefix?: string) => string;
|
|
4
4
|
//# sourceMappingURL=DateUtils.d.ts.map
|
package/dist/DateUtils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateUtils.d.ts","sourceRoot":"","sources":["../src/DateUtils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,KAAG,MAKvC,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,MAAM,IAAI,KAAG,MAI3C,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,MAAM,IAAI,EAAE,KAAK,IAAI,KAAG,
|
|
1
|
+
{"version":3,"file":"DateUtils.d.ts","sourceRoot":"","sources":["../src/DateUtils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,KAAG,MAKvC,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,MAAM,IAAI,KAAG,MAI3C,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,MAAM,IAAI,EAAE,KAAK,IAAI,EAAE,eAAkB,KAAG,MAS9E,CAAA"}
|
package/dist/DateUtils.js
CHANGED
|
@@ -10,8 +10,8 @@ export const formatDateTime = (date) => {
|
|
|
10
10
|
const tStr = date.toLocaleTimeString("en-GB", { hour12: false });
|
|
11
11
|
return `${dStr} ${tStr}`;
|
|
12
12
|
};
|
|
13
|
-
export const formatRelativeTime = (date, now) => {
|
|
13
|
+
export const formatRelativeTime = (date, now, prefix = "Updated") => {
|
|
14
14
|
const seconds = Math.max(0, Math.floor((now.getTime() - date.getTime()) / 1000));
|
|
15
|
-
return Match.value(seconds).pipe(Match.when((s) => s < 60, (s) =>
|
|
15
|
+
return Match.value(seconds).pipe(Match.when((s) => s < 60, (s) => `${prefix} ${s}s ago`), Match.when((s) => s < 3600, (s) => `${prefix} ${Math.floor(s / 60)}m ago`), Match.when((s) => s < 86400, (s) => `${prefix} ${Math.floor(s / 3600)}h ago`), Match.orElse(() => `${prefix} on ${formatDate(date)}`));
|
|
16
16
|
};
|
|
17
17
|
//# sourceMappingURL=DateUtils.js.map
|
package/dist/DateUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateUtils.js","sourceRoot":"","sources":["../src/DateUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE9B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAU,EAAU,EAAE;IAC/C,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAA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U,CAAC,IAAI,CAAC,EAAE,CAAC,CACvD,CAAA;AACH,CAAC,CAAA"}
|
package/dist/Domain.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @category Domain
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
|
-
import { Schema } from "effect";
|
|
11
|
+
import { Data, Schema } from "effect";
|
|
12
12
|
/**
|
|
13
13
|
* Branded pull request identifier.
|
|
14
14
|
*
|
|
@@ -44,12 +44,19 @@ export type AwsRegion = typeof AwsRegion.Type;
|
|
|
44
44
|
*/
|
|
45
45
|
export declare const CommentId: Schema.brand<typeof Schema.String, "CommentId">;
|
|
46
46
|
export type CommentId = typeof CommentId.Type;
|
|
47
|
+
/**
|
|
48
|
+
* Branded sandbox identifier.
|
|
49
|
+
*
|
|
50
|
+
* @category Domain
|
|
51
|
+
*/
|
|
52
|
+
export declare const SandboxId: Schema.brand<typeof Schema.String, "SandboxId">;
|
|
53
|
+
export type SandboxId = typeof SandboxId.Type;
|
|
47
54
|
/**
|
|
48
55
|
* Pull request status.
|
|
49
56
|
*
|
|
50
57
|
* @category Domain
|
|
51
58
|
*/
|
|
52
|
-
export declare const PullRequestStatus: Schema.Literal<["OPEN", "CLOSED"]>;
|
|
59
|
+
export declare const PullRequestStatus: Schema.Literal<["OPEN", "CLOSED", "MERGED"]>;
|
|
53
60
|
export type PullRequestStatus = typeof PullRequestStatus.Type;
|
|
54
61
|
/**
|
|
55
62
|
* Notification severity type.
|
|
@@ -65,16 +72,27 @@ export type NotificationType = typeof NotificationType.Type;
|
|
|
65
72
|
*/
|
|
66
73
|
export declare const AppStatus: Schema.Literal<["idle", "loading", "error"]>;
|
|
67
74
|
export type AppStatus = typeof AppStatus.Type;
|
|
75
|
+
/**
|
|
76
|
+
* Sandbox lifecycle status.
|
|
77
|
+
*
|
|
78
|
+
* @category Domain
|
|
79
|
+
*/
|
|
80
|
+
export declare const SandboxStatus: Schema.Literal<["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
|
|
81
|
+
export type SandboxStatus = typeof SandboxStatus.Type;
|
|
68
82
|
declare const Account_base: Schema.Class<Account, {
|
|
69
|
-
|
|
83
|
+
profile: Schema.brand<typeof Schema.String, "AwsProfileName">;
|
|
70
84
|
region: Schema.brand<typeof Schema.String, "AwsRegion">;
|
|
85
|
+
awsAccountId: Schema.optional<typeof Schema.String>;
|
|
71
86
|
}, Schema.Struct.Encoded<{
|
|
72
|
-
|
|
87
|
+
profile: Schema.brand<typeof Schema.String, "AwsProfileName">;
|
|
73
88
|
region: Schema.brand<typeof Schema.String, "AwsRegion">;
|
|
89
|
+
awsAccountId: Schema.optional<typeof Schema.String>;
|
|
74
90
|
}>, never, {
|
|
75
|
-
readonly
|
|
91
|
+
readonly profile: string & import("effect/Brand").Brand<"AwsProfileName">;
|
|
76
92
|
} & {
|
|
77
93
|
readonly region: string & import("effect/Brand").Brand<"AwsRegion">;
|
|
94
|
+
} & {
|
|
95
|
+
readonly awsAccountId?: string | undefined;
|
|
78
96
|
}, {}, {}>;
|
|
79
97
|
/**
|
|
80
98
|
* AWS account reference (profile + region).
|
|
@@ -93,12 +111,14 @@ declare const PullRequest_base: Schema.Class<PullRequest, {
|
|
|
93
111
|
lastModifiedDate: typeof Schema.DateFromSelf;
|
|
94
112
|
link: typeof Schema.String;
|
|
95
113
|
account: typeof Account;
|
|
96
|
-
status: Schema.Literal<["OPEN", "CLOSED"]>;
|
|
114
|
+
status: Schema.Literal<["OPEN", "CLOSED", "MERGED"]>;
|
|
97
115
|
sourceBranch: typeof Schema.String;
|
|
98
116
|
destinationBranch: typeof Schema.String;
|
|
99
117
|
isMergeable: typeof Schema.Boolean;
|
|
100
118
|
isApproved: typeof Schema.Boolean;
|
|
101
119
|
commentCount: Schema.optional<typeof Schema.Number>;
|
|
120
|
+
healthScore: Schema.optional<typeof Schema.Number>;
|
|
121
|
+
fetchedAt: Schema.optional<typeof Schema.DateFromSelf>;
|
|
102
122
|
}, Schema.Struct.Encoded<{
|
|
103
123
|
id: Schema.brand<typeof Schema.String, "PullRequestId">;
|
|
104
124
|
title: typeof Schema.String;
|
|
@@ -109,12 +129,14 @@ declare const PullRequest_base: Schema.Class<PullRequest, {
|
|
|
109
129
|
lastModifiedDate: typeof Schema.DateFromSelf;
|
|
110
130
|
link: typeof Schema.String;
|
|
111
131
|
account: typeof Account;
|
|
112
|
-
status: Schema.Literal<["OPEN", "CLOSED"]>;
|
|
132
|
+
status: Schema.Literal<["OPEN", "CLOSED", "MERGED"]>;
|
|
113
133
|
sourceBranch: typeof Schema.String;
|
|
114
134
|
destinationBranch: typeof Schema.String;
|
|
115
135
|
isMergeable: typeof Schema.Boolean;
|
|
116
136
|
isApproved: typeof Schema.Boolean;
|
|
117
137
|
commentCount: Schema.optional<typeof Schema.Number>;
|
|
138
|
+
healthScore: Schema.optional<typeof Schema.Number>;
|
|
139
|
+
fetchedAt: Schema.optional<typeof Schema.DateFromSelf>;
|
|
118
140
|
}>, never, {
|
|
119
141
|
readonly link: string;
|
|
120
142
|
} & {
|
|
@@ -132,7 +154,7 @@ declare const PullRequest_base: Schema.Class<PullRequest, {
|
|
|
132
154
|
} & {
|
|
133
155
|
readonly account: Account;
|
|
134
156
|
} & {
|
|
135
|
-
readonly status: "OPEN" | "CLOSED";
|
|
157
|
+
readonly status: "OPEN" | "CLOSED" | "MERGED";
|
|
136
158
|
} & {
|
|
137
159
|
readonly sourceBranch: string;
|
|
138
160
|
} & {
|
|
@@ -145,6 +167,10 @@ declare const PullRequest_base: Schema.Class<PullRequest, {
|
|
|
145
167
|
readonly description?: string | undefined;
|
|
146
168
|
} & {
|
|
147
169
|
readonly commentCount?: number | undefined;
|
|
170
|
+
} & {
|
|
171
|
+
readonly healthScore?: number | undefined;
|
|
172
|
+
} & {
|
|
173
|
+
readonly fetchedAt?: Date | undefined;
|
|
148
174
|
}, {}, {}>;
|
|
149
175
|
/**
|
|
150
176
|
* CodeCommit pull request.
|
|
@@ -157,6 +183,64 @@ export declare class PullRequest extends PullRequest_base {
|
|
|
157
183
|
*/
|
|
158
184
|
get consoleUrl(): string;
|
|
159
185
|
}
|
|
186
|
+
declare const Sandbox_base: Schema.Class<Sandbox, {
|
|
187
|
+
id: Schema.brand<typeof Schema.String, "SandboxId">;
|
|
188
|
+
pullRequestId: Schema.brand<typeof Schema.String, "PullRequestId">;
|
|
189
|
+
awsAccountId: typeof Schema.String;
|
|
190
|
+
repositoryName: Schema.brand<typeof Schema.String, "RepositoryName">;
|
|
191
|
+
sourceBranch: typeof Schema.String;
|
|
192
|
+
containerId: Schema.optional<typeof Schema.String>;
|
|
193
|
+
port: Schema.optional<typeof Schema.Number>;
|
|
194
|
+
workspacePath: typeof Schema.String;
|
|
195
|
+
status: Schema.Literal<["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
|
|
196
|
+
error: Schema.optional<typeof Schema.String>;
|
|
197
|
+
createdAt: typeof Schema.DateFromSelf;
|
|
198
|
+
lastActivityAt: typeof Schema.DateFromSelf;
|
|
199
|
+
}, Schema.Struct.Encoded<{
|
|
200
|
+
id: Schema.brand<typeof Schema.String, "SandboxId">;
|
|
201
|
+
pullRequestId: Schema.brand<typeof Schema.String, "PullRequestId">;
|
|
202
|
+
awsAccountId: typeof Schema.String;
|
|
203
|
+
repositoryName: Schema.brand<typeof Schema.String, "RepositoryName">;
|
|
204
|
+
sourceBranch: typeof Schema.String;
|
|
205
|
+
containerId: Schema.optional<typeof Schema.String>;
|
|
206
|
+
port: Schema.optional<typeof Schema.Number>;
|
|
207
|
+
workspacePath: typeof Schema.String;
|
|
208
|
+
status: Schema.Literal<["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
|
|
209
|
+
error: Schema.optional<typeof Schema.String>;
|
|
210
|
+
createdAt: typeof Schema.DateFromSelf;
|
|
211
|
+
lastActivityAt: typeof Schema.DateFromSelf;
|
|
212
|
+
}>, never, {
|
|
213
|
+
readonly error?: string | undefined;
|
|
214
|
+
} & {
|
|
215
|
+
readonly awsAccountId: string;
|
|
216
|
+
} & {
|
|
217
|
+
readonly id: string & import("effect/Brand").Brand<"SandboxId">;
|
|
218
|
+
} & {
|
|
219
|
+
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
220
|
+
} & {
|
|
221
|
+
readonly status: "error" | "creating" | "cloning" | "starting" | "running" | "stopping" | "stopped";
|
|
222
|
+
} & {
|
|
223
|
+
readonly sourceBranch: string;
|
|
224
|
+
} & {
|
|
225
|
+
readonly pullRequestId: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
226
|
+
} & {
|
|
227
|
+
readonly workspacePath: string;
|
|
228
|
+
} & {
|
|
229
|
+
readonly createdAt: Date;
|
|
230
|
+
} & {
|
|
231
|
+
readonly lastActivityAt: Date;
|
|
232
|
+
} & {
|
|
233
|
+
readonly containerId?: string | undefined;
|
|
234
|
+
} & {
|
|
235
|
+
readonly port?: number | undefined;
|
|
236
|
+
}, {}, {}>;
|
|
237
|
+
/**
|
|
238
|
+
* Code sandbox instance for a pull request.
|
|
239
|
+
*
|
|
240
|
+
* @category Domain
|
|
241
|
+
*/
|
|
242
|
+
export declare class Sandbox extends Sandbox_base {
|
|
243
|
+
}
|
|
160
244
|
declare const PRComment_base: Schema.Class<PRComment, {
|
|
161
245
|
id: Schema.brand<typeof Schema.String, "CommentId">;
|
|
162
246
|
content: typeof Schema.String;
|
|
@@ -251,6 +335,163 @@ export declare const PRCommentLocationJson: Schema.Struct<{
|
|
|
251
335
|
* @category Domain
|
|
252
336
|
*/
|
|
253
337
|
export declare const encodeCommentLocations: (locations: ReadonlyArray<PRCommentLocation>) => ReadonlyArray<typeof PRCommentLocationJson.Type>;
|
|
338
|
+
export declare const PersistentNotificationType: Schema.Literal<["new_comment", "comment_edited", "comment_deleted", "approval_changed", "merge_changed", "title_changed", "description_changed", "pr_merged", "pr_closed", "pr_reopened"]>;
|
|
339
|
+
export type PersistentNotificationType = typeof PersistentNotificationType.Type;
|
|
340
|
+
declare const PersistentNotification_base: Schema.Class<PersistentNotification, {
|
|
341
|
+
id: typeof Schema.Number;
|
|
342
|
+
pullRequestId: Schema.brand<typeof Schema.String, "PullRequestId">;
|
|
343
|
+
awsAccountId: typeof Schema.String;
|
|
344
|
+
type: Schema.Literal<["new_comment", "comment_edited", "comment_deleted", "approval_changed", "merge_changed", "title_changed", "description_changed", "pr_merged", "pr_closed", "pr_reopened"]>;
|
|
345
|
+
message: typeof Schema.String;
|
|
346
|
+
createdAt: typeof Schema.DateFromSelf;
|
|
347
|
+
read: typeof Schema.Boolean;
|
|
348
|
+
}, Schema.Struct.Encoded<{
|
|
349
|
+
id: typeof Schema.Number;
|
|
350
|
+
pullRequestId: Schema.brand<typeof Schema.String, "PullRequestId">;
|
|
351
|
+
awsAccountId: typeof Schema.String;
|
|
352
|
+
type: Schema.Literal<["new_comment", "comment_edited", "comment_deleted", "approval_changed", "merge_changed", "title_changed", "description_changed", "pr_merged", "pr_closed", "pr_reopened"]>;
|
|
353
|
+
message: typeof Schema.String;
|
|
354
|
+
createdAt: typeof Schema.DateFromSelf;
|
|
355
|
+
read: typeof Schema.Boolean;
|
|
356
|
+
}>, never, {
|
|
357
|
+
readonly awsAccountId: string;
|
|
358
|
+
} & {
|
|
359
|
+
readonly id: number;
|
|
360
|
+
} & {
|
|
361
|
+
readonly pullRequestId: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
362
|
+
} & {
|
|
363
|
+
readonly createdAt: Date;
|
|
364
|
+
} & {
|
|
365
|
+
readonly type: "new_comment" | "comment_edited" | "comment_deleted" | "approval_changed" | "merge_changed" | "title_changed" | "description_changed" | "pr_merged" | "pr_closed" | "pr_reopened";
|
|
366
|
+
} & {
|
|
367
|
+
readonly message: string;
|
|
368
|
+
} & {
|
|
369
|
+
readonly read: boolean;
|
|
370
|
+
}, {}, {}>;
|
|
371
|
+
export declare class PersistentNotification extends PersistentNotification_base {
|
|
372
|
+
}
|
|
373
|
+
export type PRSyncStatus = Data.TaggedEnum<{
|
|
374
|
+
readonly Cached: {
|
|
375
|
+
readonly fetchedAt: Date;
|
|
376
|
+
};
|
|
377
|
+
readonly Syncing: {
|
|
378
|
+
readonly fetchedAt: Date;
|
|
379
|
+
};
|
|
380
|
+
readonly UpToDate: {
|
|
381
|
+
readonly fetchedAt: Date;
|
|
382
|
+
};
|
|
383
|
+
readonly Failed: {
|
|
384
|
+
readonly fetchedAt: Date;
|
|
385
|
+
readonly error: string;
|
|
386
|
+
};
|
|
387
|
+
}>;
|
|
388
|
+
export declare const PRSyncStatus: {
|
|
389
|
+
readonly Cached: Data.Case.Constructor<{
|
|
390
|
+
readonly _tag: "Cached";
|
|
391
|
+
readonly fetchedAt: Date;
|
|
392
|
+
}, "_tag">;
|
|
393
|
+
readonly Syncing: Data.Case.Constructor<{
|
|
394
|
+
readonly _tag: "Syncing";
|
|
395
|
+
readonly fetchedAt: Date;
|
|
396
|
+
}, "_tag">;
|
|
397
|
+
readonly UpToDate: Data.Case.Constructor<{
|
|
398
|
+
readonly _tag: "UpToDate";
|
|
399
|
+
readonly fetchedAt: Date;
|
|
400
|
+
}, "_tag">;
|
|
401
|
+
readonly Failed: Data.Case.Constructor<{
|
|
402
|
+
readonly _tag: "Failed";
|
|
403
|
+
readonly fetchedAt: Date;
|
|
404
|
+
readonly error: string;
|
|
405
|
+
}, "_tag">;
|
|
406
|
+
readonly $is: <Tag extends "Cached" | "Syncing" | "UpToDate" | "Failed">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
407
|
+
readonly _tag: "Cached";
|
|
408
|
+
readonly fetchedAt: Date;
|
|
409
|
+
}, {
|
|
410
|
+
readonly _tag: Tag;
|
|
411
|
+
}> | Extract<{
|
|
412
|
+
readonly _tag: "Syncing";
|
|
413
|
+
readonly fetchedAt: Date;
|
|
414
|
+
}, {
|
|
415
|
+
readonly _tag: Tag;
|
|
416
|
+
}> | Extract<{
|
|
417
|
+
readonly _tag: "UpToDate";
|
|
418
|
+
readonly fetchedAt: Date;
|
|
419
|
+
}, {
|
|
420
|
+
readonly _tag: Tag;
|
|
421
|
+
}> | Extract<{
|
|
422
|
+
readonly _tag: "Failed";
|
|
423
|
+
readonly fetchedAt: Date;
|
|
424
|
+
readonly error: string;
|
|
425
|
+
}, {
|
|
426
|
+
readonly _tag: Tag;
|
|
427
|
+
}>;
|
|
428
|
+
readonly $match: {
|
|
429
|
+
<const Cases extends {
|
|
430
|
+
readonly Cached: (args: {
|
|
431
|
+
readonly _tag: "Cached";
|
|
432
|
+
readonly fetchedAt: Date;
|
|
433
|
+
}) => any;
|
|
434
|
+
readonly Syncing: (args: {
|
|
435
|
+
readonly _tag: "Syncing";
|
|
436
|
+
readonly fetchedAt: Date;
|
|
437
|
+
}) => any;
|
|
438
|
+
readonly UpToDate: (args: {
|
|
439
|
+
readonly _tag: "UpToDate";
|
|
440
|
+
readonly fetchedAt: Date;
|
|
441
|
+
}) => any;
|
|
442
|
+
readonly Failed: (args: {
|
|
443
|
+
readonly _tag: "Failed";
|
|
444
|
+
readonly fetchedAt: Date;
|
|
445
|
+
readonly error: string;
|
|
446
|
+
}) => any;
|
|
447
|
+
}>(cases: Cases & { [K in Exclude<keyof Cases, "Cached" | "Syncing" | "UpToDate" | "Failed">]: never; }): (value: {
|
|
448
|
+
readonly _tag: "Cached";
|
|
449
|
+
readonly fetchedAt: Date;
|
|
450
|
+
} | {
|
|
451
|
+
readonly _tag: "Syncing";
|
|
452
|
+
readonly fetchedAt: Date;
|
|
453
|
+
} | {
|
|
454
|
+
readonly _tag: "UpToDate";
|
|
455
|
+
readonly fetchedAt: Date;
|
|
456
|
+
} | {
|
|
457
|
+
readonly _tag: "Failed";
|
|
458
|
+
readonly fetchedAt: Date;
|
|
459
|
+
readonly error: string;
|
|
460
|
+
}) => import("effect/Unify").Unify<ReturnType<Cases["Cached" | "Syncing" | "UpToDate" | "Failed"]>>;
|
|
461
|
+
<const Cases extends {
|
|
462
|
+
readonly Cached: (args: {
|
|
463
|
+
readonly _tag: "Cached";
|
|
464
|
+
readonly fetchedAt: Date;
|
|
465
|
+
}) => any;
|
|
466
|
+
readonly Syncing: (args: {
|
|
467
|
+
readonly _tag: "Syncing";
|
|
468
|
+
readonly fetchedAt: Date;
|
|
469
|
+
}) => any;
|
|
470
|
+
readonly UpToDate: (args: {
|
|
471
|
+
readonly _tag: "UpToDate";
|
|
472
|
+
readonly fetchedAt: Date;
|
|
473
|
+
}) => any;
|
|
474
|
+
readonly Failed: (args: {
|
|
475
|
+
readonly _tag: "Failed";
|
|
476
|
+
readonly fetchedAt: Date;
|
|
477
|
+
readonly error: string;
|
|
478
|
+
}) => any;
|
|
479
|
+
}>(value: {
|
|
480
|
+
readonly _tag: "Cached";
|
|
481
|
+
readonly fetchedAt: Date;
|
|
482
|
+
} | {
|
|
483
|
+
readonly _tag: "Syncing";
|
|
484
|
+
readonly fetchedAt: Date;
|
|
485
|
+
} | {
|
|
486
|
+
readonly _tag: "UpToDate";
|
|
487
|
+
readonly fetchedAt: Date;
|
|
488
|
+
} | {
|
|
489
|
+
readonly _tag: "Failed";
|
|
490
|
+
readonly fetchedAt: Date;
|
|
491
|
+
readonly error: string;
|
|
492
|
+
}, cases: Cases & { [K in Exclude<keyof Cases, "Cached" | "Syncing" | "UpToDate" | "Failed">]: never; }): import("effect/Unify").Unify<ReturnType<Cases["Cached" | "Syncing" | "UpToDate" | "Failed"]>>;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
254
495
|
declare const NotificationItem_base: Schema.Class<NotificationItem, {
|
|
255
496
|
type: Schema.Literal<["error", "info", "warning", "success"]>;
|
|
256
497
|
title: typeof Schema.String;
|
|
@@ -268,6 +509,8 @@ declare const NotificationItem_base: Schema.Class<NotificationItem, {
|
|
|
268
509
|
exact: true;
|
|
269
510
|
}>;
|
|
270
511
|
}>, never, {
|
|
512
|
+
readonly profile?: string;
|
|
513
|
+
} & {
|
|
271
514
|
readonly title: string;
|
|
272
515
|
} & {
|
|
273
516
|
readonly type: "error" | "info" | "warning" | "success";
|
|
@@ -275,8 +518,6 @@ declare const NotificationItem_base: Schema.Class<NotificationItem, {
|
|
|
275
518
|
readonly message: string;
|
|
276
519
|
} & {
|
|
277
520
|
readonly timestamp: Date;
|
|
278
|
-
} & {
|
|
279
|
-
readonly profile?: string;
|
|
280
521
|
}, {}, {}>;
|
|
281
522
|
/**
|
|
282
523
|
* Notification item with timestamp.
|
package/dist/Domain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../src/Domain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../src/Domain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAMrC;;;;GAIG;AACH,eAAO,MAAM,aAAa,qDAAoD,CAAA;AAC9E,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,cAAc,sDAAqD,CAAA;AAChF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA;AAEvD;;;;GAIG;AACH,eAAO,MAAM,cAAc,sDAAqD,CAAA;AAChF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA;AAEvD;;;;GAIG;AACH,eAAO,MAAM,SAAS,iDAAgD,CAAA;AACtE,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAA;AAE7C;;;;GAIG;AACH,eAAO,MAAM,SAAS,iDAAgD,CAAA;AACtE,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAA;AAE7C;;;;GAIG;AACH,eAAO,MAAM,SAAS,iDAAgD,CAAA;AACtE,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,C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