testit-api-client 1.0.4 → 2.0.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 +251 -27
- package/dist/api.d.ts +8733 -0
- package/dist/api.js +10319 -0
- package/dist/base.d.ts +55 -0
- package/dist/base.js +82 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +250 -0
- package/dist/configuration.d.ts +83 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +13 -2
- package/dist/index.js +20 -3
- package/package.json +22 -40
- package/dist/client.d.ts +0 -23
- package/dist/client.js +0 -166
- package/dist/types/attachment.d.ts +0 -14
- package/dist/types/attachment.js +0 -2
- package/dist/types/autotest.d.ts +0 -97
- package/dist/types/autotest.js +0 -2
- package/dist/types/autotestResults.d.ts +0 -22
- package/dist/types/autotestResults.js +0 -2
- package/dist/types/autotestStep.d.ts +0 -5
- package/dist/types/autotestStep.js +0 -2
- package/dist/types/capabilities.d.ts +0 -1
- package/dist/types/capabilities.js +0 -2
- package/dist/types/client.d.ts +0 -15
- package/dist/types/client.js +0 -2
- package/dist/types/config.d.ts +0 -10
- package/dist/types/config.js +0 -2
- package/dist/types/configuration.d.ts +0 -16
- package/dist/types/configuration.js +0 -2
- package/dist/types/index.d.ts +0 -18
- package/dist/types/index.js +0 -30
- package/dist/types/label.d.ts +0 -7
- package/dist/types/label.js +0 -2
- package/dist/types/link.d.ts +0 -24
- package/dist/types/link.js +0 -2
- package/dist/types/outcome.d.ts +0 -1
- package/dist/types/outcome.js +0 -2
- package/dist/types/parameters.d.ts +0 -1
- package/dist/types/parameters.js +0 -2
- package/dist/types/properties.d.ts +0 -1
- package/dist/types/properties.js +0 -2
- package/dist/types/stepResults.d.ts +0 -14
- package/dist/types/stepResults.js +0 -2
- package/dist/types/tag.d.ts +0 -3
- package/dist/types/tag.js +0 -2
- package/dist/types/testPoint.d.ts +0 -9
- package/dist/types/testPoint.js +0 -2
- package/dist/types/testResult.d.ts +0 -31
- package/dist/types/testResult.js +0 -2
- package/dist/types/testRun.d.ts +0 -20
- package/dist/types/testRun.js +0 -2
- package/dist/types/workItem.d.ts +0 -3
- package/dist/types/workItem.js +0 -2
- package/dist/validation.d.ts +0 -2
- package/dist/validation.js +0 -15
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Attachment } from './attachment';
|
|
2
|
-
import { AutotestGet } from './autotest';
|
|
3
|
-
import { Configuration } from './configuration';
|
|
4
|
-
import { Link } from './link';
|
|
5
|
-
import { OutcomeType } from './outcome';
|
|
6
|
-
import { Parameters } from './parameters';
|
|
7
|
-
import { Properties } from './properties';
|
|
8
|
-
import { TestPointShort } from './testPoint';
|
|
9
|
-
export interface TestResultGet {
|
|
10
|
-
configuration?: Configuration;
|
|
11
|
-
autotest?: AutotestGet;
|
|
12
|
-
is?: string;
|
|
13
|
-
configurationId?: string;
|
|
14
|
-
workItemVersionId?: string;
|
|
15
|
-
autotestId?: string;
|
|
16
|
-
message?: string;
|
|
17
|
-
traces?: string;
|
|
18
|
-
startedOn?: string;
|
|
19
|
-
completedOn?: string;
|
|
20
|
-
runByUserId?: string;
|
|
21
|
-
stoppedByUserId?: string;
|
|
22
|
-
testPointId?: string;
|
|
23
|
-
testPoint?: TestPointShort;
|
|
24
|
-
testRunId?: string;
|
|
25
|
-
outcome?: OutcomeType;
|
|
26
|
-
comment?: string;
|
|
27
|
-
links?: Link[];
|
|
28
|
-
attachments?: Attachment[];
|
|
29
|
-
parameters?: Parameters;
|
|
30
|
-
properties?: Properties;
|
|
31
|
-
}
|
package/dist/types/testResult.js
DELETED
package/dist/types/testRun.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TestResultGet } from './testResult';
|
|
2
|
-
export declare type TestRunStateType = 'NotStarted' | 'InProgress' | 'Stopped' | 'Completed';
|
|
3
|
-
export interface TestRunPost {
|
|
4
|
-
projectId: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface TestRunGet {
|
|
8
|
-
startedOn?: string;
|
|
9
|
-
completedOn?: string;
|
|
10
|
-
stateName?: TestRunStateType;
|
|
11
|
-
projectId?: string;
|
|
12
|
-
testPlanId?: string;
|
|
13
|
-
testResults?: TestResultGet[];
|
|
14
|
-
createdDate?: string;
|
|
15
|
-
modifiedDate?: string;
|
|
16
|
-
createById?: string;
|
|
17
|
-
modifiedById?: string;
|
|
18
|
-
id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
}
|
package/dist/types/testRun.js
DELETED
package/dist/types/workItem.d.ts
DELETED
package/dist/types/workItem.js
DELETED
package/dist/validation.d.ts
DELETED
package/dist/validation.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateConfig = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const configSchema = zod_1.z.object({
|
|
6
|
-
configurationId: zod_1.z.string().uuid(),
|
|
7
|
-
privateToken: zod_1.z.string(),
|
|
8
|
-
projectId: zod_1.z.string().uuid(),
|
|
9
|
-
url: zod_1.z.string().url(),
|
|
10
|
-
testRunId: zod_1.z.string().uuid().optional(),
|
|
11
|
-
});
|
|
12
|
-
function validateConfig(config) {
|
|
13
|
-
return configSchema.parse(config);
|
|
14
|
-
}
|
|
15
|
-
exports.validateConfig = validateConfig;
|