@qawolf/ci-sdk 3.7.1 → 3.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/README.md +82 -0
- package/dist/index.js +626 -81
- package/dist/index.js.map +4 -4
- package/dist/lib/sdk/defaults/contracts.d.ts +24 -0
- package/dist/lib/sdk/domain/collectCommitChanges/commitChange.d.ts +22 -0
- package/dist/lib/sdk/domain/collectCommitChanges/fitChanges.d.ts +17 -0
- package/dist/lib/sdk/domain/collectCommitChanges/parseLog.d.ts +7 -5
- package/dist/lib/sdk/domain/collectCommitChanges/readCommitRange.d.ts +32 -0
- package/dist/lib/sdk/domain/collectCommitChanges/summarizeCommits.d.ts +3 -6
- package/dist/lib/sdk/domain/collectDeployChanges/explainCollection.d.ts +8 -0
- package/dist/lib/sdk/domain/collectDeployChanges/filterChanges.d.ts +21 -0
- package/dist/lib/sdk/domain/collectDeployChanges/index.d.ts +18 -0
- package/dist/lib/sdk/domain/collectDeployChanges/isGitHubRepository.d.ts +8 -0
- package/dist/lib/sdk/domain/collectDeployChanges/sendableChanges.d.ts +8 -0
- package/dist/lib/sdk/domain/collectDeployChanges/testHarness.d.ts +46 -0
- package/dist/lib/sdk/domain/collectDeployChanges/types.d.ts +60 -0
- package/dist/lib/sdk/domain/detectProviderDeploymentId/ciSystems.d.ts +16 -0
- package/dist/lib/sdk/domain/detectProviderDeploymentId/index.d.ts +3 -4
- package/dist/lib/sdk/domain/repositoryCoverage/contracts.d.ts +10 -0
- package/dist/lib/sdk/domain/repositoryCoverage/findRepositoryCoverage.d.ts +17 -0
- package/dist/lib/sdk/domain/repositoryCoverage/identifyRepository.d.ts +44 -0
- package/dist/lib/sdk/domain/repositoryCoverage/index.d.ts +15 -0
- package/dist/lib/sdk/domain/repositoryCoverage/testHarness.d.ts +46 -0
- package/dist/lib/sdk/domain/repositoryCoverage/types.d.ts +73 -0
- package/dist/lib/sdk/index.d.ts +20 -8
- package/dist/tests/test-lib.d.ts +12 -8
- package/package.json +5 -5
package/dist/tests/test-lib.d.ts
CHANGED
|
@@ -8,31 +8,35 @@ export declare function makeQaWolfSdkForTest({ apiKey }: {
|
|
|
8
8
|
log: LogDriver;
|
|
9
9
|
sdk: {
|
|
10
10
|
attemptNotifyDeploy: (config: Partial<import("../index.js").DeployConfig>) => Promise<import("../index.js").NotifyDeployStatus>;
|
|
11
|
+
codeHostIntegration: {
|
|
12
|
+
findForRepository: (args_0?: import("../lib/sdk/index.js").FindRepositoryCoverageParams | undefined) => Promise<import("../lib/sdk/index.js").FindRepositoryCoverageResult>;
|
|
13
|
+
};
|
|
11
14
|
deployment: {
|
|
12
15
|
collectCommitChanges: (args_0: import("../lib/sdk/index.js").CollectCommitChangesParams) => Promise<import("../lib/sdk/index.js").CollectCommitChangesResult>;
|
|
16
|
+
collectDeployChanges: (params: import("../lib/sdk/index.js").CollectDeployChangesParams) => Promise<import("../lib/sdk/index.js").CollectDeployChangesResult>;
|
|
13
17
|
reportStatus: (params: {
|
|
14
18
|
providerDeploymentId: string;
|
|
15
|
-
status: "success" | "
|
|
19
|
+
status: "success" | "failure" | "inactive" | "pending";
|
|
16
20
|
workspaceId: string;
|
|
17
21
|
builds?: string[] | undefined;
|
|
18
22
|
changes?: {
|
|
19
23
|
ci?: string | undefined;
|
|
20
24
|
items?: ({
|
|
21
|
-
kind: "pull-request";
|
|
22
25
|
title: string;
|
|
23
|
-
|
|
24
|
-
number?: number | undefined;
|
|
26
|
+
kind: "pull-request";
|
|
25
27
|
changedPaths?: string[] | undefined;
|
|
26
28
|
description?: string | undefined;
|
|
27
29
|
url?: string | undefined;
|
|
30
|
+
mergeCommitSha?: string | undefined;
|
|
31
|
+
number?: number | undefined;
|
|
28
32
|
} | {
|
|
29
|
-
kind: "commit";
|
|
30
33
|
title: string;
|
|
31
|
-
|
|
32
|
-
sha?: string | undefined;
|
|
34
|
+
kind: "commit";
|
|
33
35
|
changedPaths?: string[] | undefined;
|
|
34
36
|
description?: string | undefined;
|
|
35
37
|
url?: string | undefined;
|
|
38
|
+
pullRequestNumber?: number | undefined;
|
|
39
|
+
sha?: string | undefined;
|
|
36
40
|
})[] | undefined;
|
|
37
41
|
omittedCount?: number | undefined;
|
|
38
42
|
problems?: ({
|
|
@@ -96,7 +100,7 @@ export declare function makeQaWolfSdkForTest({ apiKey }: {
|
|
|
96
100
|
} | {
|
|
97
101
|
deploymentId: string;
|
|
98
102
|
outcome: "not-tested";
|
|
99
|
-
reason: "no-
|
|
103
|
+
reason: "no-run-created" | "no-trigger-matched";
|
|
100
104
|
triggers: {
|
|
101
105
|
message: string;
|
|
102
106
|
triggerName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qawolf/ci-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A simple SDK for interacting with QAWolf in CI scripts.",
|
|
6
6
|
"keywords": [],
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"build": "platform-builder --config platformBuilder.config.ts",
|
|
29
29
|
"lint:ci": "pnpm run lint:first-half; FIRST_HALF_EXIT=$?; pnpm run lint:second-half && exit $FIRST_HALF_EXIT",
|
|
30
30
|
"lint:dev": "pnpm run lint:first-half",
|
|
31
|
-
"lint:first-half": "oxlint . --fix --quiet --report-unused-disable-directives --type-aware && oxfmt --write .",
|
|
31
|
+
"lint:first-half": "oxfmt --write . && { oxlint . --fix --quiet --report-unused-disable-directives --type-aware || { oxfmt --write . && oxlint . --fix --quiet --report-unused-disable-directives --type-aware; }; } && oxfmt --write .",
|
|
32
32
|
"lint:second-half": "rev-dep config run",
|
|
33
33
|
"prepublishOnly": "nx run ci-sdk:build",
|
|
34
34
|
"test": "NODE_OPTIONS=\"--experimental-vm-modules\" NODE_NO_WARNINGS=1 jest",
|
|
35
|
-
"tsc:check": "
|
|
35
|
+
"tsc:check": "tsrs --noEmit"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@qawolf/api-contracts": ">=0.
|
|
38
|
+
"@qawolf/api-contracts": ">=0.148.0",
|
|
39
39
|
"@qawolf/ci-utils": "^2.0.0",
|
|
40
40
|
"@sinonjs/fake-timers": "^10.3.0",
|
|
41
41
|
"superjson": "^2.2.6",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@qawolf/platform-builder": "^1.2.7",
|
|
47
47
|
"tsx": "^4.19.4",
|
|
48
|
-
"typescript": "^
|
|
48
|
+
"typescript": "^6.0.3"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=24.14.1 <25"
|