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.
Files changed (56) hide show
  1. package/README.MD +251 -27
  2. package/dist/api.d.ts +8733 -0
  3. package/dist/api.js +10319 -0
  4. package/dist/base.d.ts +55 -0
  5. package/dist/base.js +82 -0
  6. package/dist/common.d.ts +65 -0
  7. package/dist/common.js +250 -0
  8. package/dist/configuration.d.ts +83 -0
  9. package/dist/configuration.js +44 -0
  10. package/dist/index.d.ts +13 -2
  11. package/dist/index.js +20 -3
  12. package/package.json +22 -40
  13. package/dist/client.d.ts +0 -23
  14. package/dist/client.js +0 -166
  15. package/dist/types/attachment.d.ts +0 -14
  16. package/dist/types/attachment.js +0 -2
  17. package/dist/types/autotest.d.ts +0 -97
  18. package/dist/types/autotest.js +0 -2
  19. package/dist/types/autotestResults.d.ts +0 -22
  20. package/dist/types/autotestResults.js +0 -2
  21. package/dist/types/autotestStep.d.ts +0 -5
  22. package/dist/types/autotestStep.js +0 -2
  23. package/dist/types/capabilities.d.ts +0 -1
  24. package/dist/types/capabilities.js +0 -2
  25. package/dist/types/client.d.ts +0 -15
  26. package/dist/types/client.js +0 -2
  27. package/dist/types/config.d.ts +0 -10
  28. package/dist/types/config.js +0 -2
  29. package/dist/types/configuration.d.ts +0 -16
  30. package/dist/types/configuration.js +0 -2
  31. package/dist/types/index.d.ts +0 -18
  32. package/dist/types/index.js +0 -30
  33. package/dist/types/label.d.ts +0 -7
  34. package/dist/types/label.js +0 -2
  35. package/dist/types/link.d.ts +0 -24
  36. package/dist/types/link.js +0 -2
  37. package/dist/types/outcome.d.ts +0 -1
  38. package/dist/types/outcome.js +0 -2
  39. package/dist/types/parameters.d.ts +0 -1
  40. package/dist/types/parameters.js +0 -2
  41. package/dist/types/properties.d.ts +0 -1
  42. package/dist/types/properties.js +0 -2
  43. package/dist/types/stepResults.d.ts +0 -14
  44. package/dist/types/stepResults.js +0 -2
  45. package/dist/types/tag.d.ts +0 -3
  46. package/dist/types/tag.js +0 -2
  47. package/dist/types/testPoint.d.ts +0 -9
  48. package/dist/types/testPoint.js +0 -2
  49. package/dist/types/testResult.d.ts +0 -31
  50. package/dist/types/testResult.js +0 -2
  51. package/dist/types/testRun.d.ts +0 -20
  52. package/dist/types/testRun.js +0 -2
  53. package/dist/types/workItem.d.ts +0 -3
  54. package/dist/types/workItem.js +0 -2
  55. package/dist/validation.d.ts +0 -2
  56. 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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export interface WorkItemId {
2
- id: string;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { ClientConfig } from '.';
2
- export declare function validateConfig(config: Partial<ClientConfig>): ClientConfig;
@@ -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;