simplify3x-connect 0.0.0-stage → 0.28.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/LICENSE +21 -0
- package/README.md +117 -3
- package/dist/acText.d.ts +12 -0
- package/dist/acText.d.ts.map +1 -0
- package/dist/acText.js +44 -0
- package/dist/acText.js.map +1 -0
- package/dist/adapters/factory.d.ts +25 -0
- package/dist/adapters/factory.d.ts.map +1 -0
- package/dist/adapters/factory.js +55 -0
- package/dist/adapters/factory.js.map +1 -0
- package/dist/adapters/http.d.ts +62 -0
- package/dist/adapters/http.d.ts.map +1 -0
- package/dist/adapters/http.js +138 -0
- package/dist/adapters/http.js.map +1 -0
- package/dist/adapters/remoteMcp/adapter.d.ts +112 -0
- package/dist/adapters/remoteMcp/adapter.d.ts.map +1 -0
- package/dist/adapters/remoteMcp/adapter.js +259 -0
- package/dist/adapters/remoteMcp/adapter.js.map +1 -0
- package/dist/adapters/simplifyqa/adapter.d.ts +1390 -0
- package/dist/adapters/simplifyqa/adapter.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/adapter.js +9126 -0
- package/dist/adapters/simplifyqa/adapter.js.map +1 -0
- package/dist/adapters/simplifyqa/apiFailureReason.d.ts +11 -0
- package/dist/adapters/simplifyqa/apiFailureReason.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/apiFailureReason.js +35 -0
- package/dist/adapters/simplifyqa/apiFailureReason.js.map +1 -0
- package/dist/adapters/simplifyqa/desktopConditions.d.ts +50 -0
- package/dist/adapters/simplifyqa/desktopConditions.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/desktopConditions.js +95 -0
- package/dist/adapters/simplifyqa/desktopConditions.js.map +1 -0
- package/dist/adapters/simplifyqa/executionFailures.d.ts +59 -0
- package/dist/adapters/simplifyqa/executionFailures.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/executionFailures.js +641 -0
- package/dist/adapters/simplifyqa/executionFailures.js.map +1 -0
- package/dist/adapters/simplifyqa/failureCategory.d.ts +26 -0
- package/dist/adapters/simplifyqa/failureCategory.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/failureCategory.js +208 -0
- package/dist/adapters/simplifyqa/failureCategory.js.map +1 -0
- package/dist/adapters/simplifyqa/failureReport.d.ts +50 -0
- package/dist/adapters/simplifyqa/failureReport.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/failureReport.js +383 -0
- package/dist/adapters/simplifyqa/failureReport.js.map +1 -0
- package/dist/adapters/simplifyqa/failureTypes.d.ts +193 -0
- package/dist/adapters/simplifyqa/failureTypes.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/failureTypes.js +8 -0
- package/dist/adapters/simplifyqa/failureTypes.js.map +1 -0
- package/dist/adapters/simplifyqa/flow.d.ts +58 -0
- package/dist/adapters/simplifyqa/flow.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/flow.js +335 -0
- package/dist/adapters/simplifyqa/flow.js.map +1 -0
- package/dist/adapters/simplifyqa/functionMatch.d.ts +53 -0
- package/dist/adapters/simplifyqa/functionMatch.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/functionMatch.js +110 -0
- package/dist/adapters/simplifyqa/functionMatch.js.map +1 -0
- package/dist/adapters/simplifyqa/heal/apply.d.ts +59 -0
- package/dist/adapters/simplifyqa/heal/apply.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/heal/apply.js +213 -0
- package/dist/adapters/simplifyqa/heal/apply.js.map +1 -0
- package/dist/adapters/simplifyqa/heal/diagnose.d.ts +24 -0
- package/dist/adapters/simplifyqa/heal/diagnose.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/heal/diagnose.js +211 -0
- package/dist/adapters/simplifyqa/heal/diagnose.js.map +1 -0
- package/dist/adapters/simplifyqa/heal/index.d.ts +37 -0
- package/dist/adapters/simplifyqa/heal/index.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/heal/index.js +83 -0
- package/dist/adapters/simplifyqa/heal/index.js.map +1 -0
- package/dist/adapters/simplifyqa/heal/plan.d.ts +67 -0
- package/dist/adapters/simplifyqa/heal/plan.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/heal/plan.js +338 -0
- package/dist/adapters/simplifyqa/heal/plan.js.map +1 -0
- package/dist/adapters/simplifyqa/heal/store.d.ts +10 -0
- package/dist/adapters/simplifyqa/heal/store.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/heal/store.js +40 -0
- package/dist/adapters/simplifyqa/heal/store.js.map +1 -0
- package/dist/adapters/simplifyqa/mapLimit.d.ts +3 -0
- package/dist/adapters/simplifyqa/mapLimit.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/mapLimit.js +14 -0
- package/dist/adapters/simplifyqa/mapLimit.js.map +1 -0
- package/dist/adapters/simplifyqa/mapper.d.ts +159 -0
- package/dist/adapters/simplifyqa/mapper.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/mapper.js +1767 -0
- package/dist/adapters/simplifyqa/mapper.js.map +1 -0
- package/dist/adapters/simplifyqa/planTree.d.ts +31 -0
- package/dist/adapters/simplifyqa/planTree.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/planTree.js +110 -0
- package/dist/adapters/simplifyqa/planTree.js.map +1 -0
- package/dist/adapters/simplifyqa/searchEngine.d.ts +254 -0
- package/dist/adapters/simplifyqa/searchEngine.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/searchEngine.js +1248 -0
- package/dist/adapters/simplifyqa/searchEngine.js.map +1 -0
- package/dist/adapters/simplifyqa/searchRegistry.d.ts +117 -0
- package/dist/adapters/simplifyqa/searchRegistry.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/searchRegistry.js +1664 -0
- package/dist/adapters/simplifyqa/searchRegistry.js.map +1 -0
- package/dist/adapters/simplifyqa/searchResolve.d.ts +84 -0
- package/dist/adapters/simplifyqa/searchResolve.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/searchResolve.js +319 -0
- package/dist/adapters/simplifyqa/searchResolve.js.map +1 -0
- package/dist/adapters/simplifyqa/stepDiagnostics.d.ts +25 -0
- package/dist/adapters/simplifyqa/stepDiagnostics.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/stepDiagnostics.js +89 -0
- package/dist/adapters/simplifyqa/stepDiagnostics.js.map +1 -0
- package/dist/adapters/simplifyqa/stepRules.d.ts +91 -0
- package/dist/adapters/simplifyqa/stepRules.d.ts.map +1 -0
- package/dist/adapters/simplifyqa/stepRules.js +228 -0
- package/dist/adapters/simplifyqa/stepRules.js.map +1 -0
- package/dist/adapters/types.d.ts +514 -0
- package/dist/adapters/types.d.ts.map +1 -0
- package/dist/adapters/types.js +2 -0
- package/dist/adapters/types.js.map +1 -0
- package/dist/adapters/walnut/actionTypes.d.ts +16 -0
- package/dist/adapters/walnut/actionTypes.d.ts.map +1 -0
- package/dist/adapters/walnut/actionTypes.js +178 -0
- package/dist/adapters/walnut/actionTypes.js.map +1 -0
- package/dist/adapters/walnut/adapter.d.ts +235 -0
- package/dist/adapters/walnut/adapter.d.ts.map +1 -0
- package/dist/adapters/walnut/adapter.js +1120 -0
- package/dist/adapters/walnut/adapter.js.map +1 -0
- package/dist/adapters/walnut/mapper.d.ts +55 -0
- package/dist/adapters/walnut/mapper.d.ts.map +1 -0
- package/dist/adapters/walnut/mapper.js +364 -0
- package/dist/adapters/walnut/mapper.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +38 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +109 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +272 -0
- package/dist/config.js.map +1 -0
- package/dist/connection.d.ts +105 -0
- package/dist/connection.d.ts.map +1 -0
- package/dist/connection.js +255 -0
- package/dist/connection.js.map +1 -0
- package/dist/domain/heal.d.ts +163 -0
- package/dist/domain/heal.d.ts.map +1 -0
- package/dist/domain/heal.js +55 -0
- package/dist/domain/heal.js.map +1 -0
- package/dist/domain/types.d.ts +1328 -0
- package/dist/domain/types.d.ts.map +1 -0
- package/dist/domain/types.js +8 -0
- package/dist/domain/types.js.map +1 -0
- package/dist/domain/validate.d.ts +3 -0
- package/dist/domain/validate.d.ts.map +1 -0
- package/dist/domain/validate.js +67 -0
- package/dist/domain/validate.js.map +1 -0
- package/dist/drafts/apiPatch.d.ts +9 -0
- package/dist/drafts/apiPatch.d.ts.map +1 -0
- package/dist/drafts/apiPatch.js +27 -0
- package/dist/drafts/apiPatch.js.map +1 -0
- package/dist/drafts/bulk.d.ts +24 -0
- package/dist/drafts/bulk.d.ts.map +1 -0
- package/dist/drafts/bulk.js +44 -0
- package/dist/drafts/bulk.js.map +1 -0
- package/dist/drafts/duplicate.d.ts +12 -0
- package/dist/drafts/duplicate.d.ts.map +1 -0
- package/dist/drafts/duplicate.js +59 -0
- package/dist/drafts/duplicate.js.map +1 -0
- package/dist/drafts/store.d.ts +91 -0
- package/dist/drafts/store.d.ts.map +1 -0
- package/dist/drafts/store.js +244 -0
- package/dist/drafts/store.js.map +1 -0
- package/dist/gateway.d.ts +37 -0
- package/dist/gateway.d.ts.map +1 -0
- package/dist/gateway.js +71 -0
- package/dist/gateway.js.map +1 -0
- package/dist/httpMain.d.ts +3 -0
- package/dist/httpMain.d.ts.map +1 -0
- package/dist/httpMain.js +20 -0
- package/dist/httpMain.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +46 -0
- package/dist/index.js.map +1 -0
- package/dist/initAgents.d.ts +2 -0
- package/dist/initAgents.d.ts.map +1 -0
- package/dist/initAgents.js +508 -0
- package/dist/initAgents.js.map +1 -0
- package/dist/log.d.ts +17 -0
- package/dist/log.d.ts.map +1 -0
- package/dist/log.js +49 -0
- package/dist/log.js.map +1 -0
- package/dist/mcpResult.d.ts +39 -0
- package/dist/mcpResult.d.ts.map +1 -0
- package/dist/mcpResult.js +19 -0
- package/dist/mcpResult.js.map +1 -0
- package/dist/mount.d.ts +33 -0
- package/dist/mount.d.ts.map +1 -0
- package/dist/mount.js +213 -0
- package/dist/mount.js.map +1 -0
- package/dist/paramTokens.d.ts +18 -0
- package/dist/paramTokens.d.ts.map +1 -0
- package/dist/paramTokens.js +50 -0
- package/dist/paramTokens.js.map +1 -0
- package/dist/projectStore.d.ts +5 -0
- package/dist/projectStore.d.ts.map +1 -0
- package/dist/projectStore.js +60 -0
- package/dist/projectStore.js.map +1 -0
- package/dist/requestConnection.d.ts +22 -0
- package/dist/requestConnection.d.ts.map +1 -0
- package/dist/requestConnection.js +50 -0
- package/dist/requestConnection.js.map +1 -0
- package/dist/serve.d.ts +10 -0
- package/dist/serve.d.ts.map +1 -0
- package/dist/serve.js +37 -0
- package/dist/serve.js.map +1 -0
- package/dist/server.d.ts +41 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +370 -0
- package/dist/server.js.map +1 -0
- package/dist/tools/actionCatalog.d.ts +24 -0
- package/dist/tools/actionCatalog.d.ts.map +1 -0
- package/dist/tools/actionCatalog.js +56 -0
- package/dist/tools/actionCatalog.js.map +1 -0
- package/dist/tools/attachment.tools.d.ts +15 -0
- package/dist/tools/attachment.tools.d.ts.map +1 -0
- package/dist/tools/attachment.tools.js +104 -0
- package/dist/tools/attachment.tools.js.map +1 -0
- package/dist/tools/backlog.tools.d.ts +13 -0
- package/dist/tools/backlog.tools.d.ts.map +1 -0
- package/dist/tools/backlog.tools.js +690 -0
- package/dist/tools/backlog.tools.js.map +1 -0
- package/dist/tools/connection.tools.d.ts +16 -0
- package/dist/tools/connection.tools.d.ts.map +1 -0
- package/dist/tools/connection.tools.js +120 -0
- package/dist/tools/connection.tools.js.map +1 -0
- package/dist/tools/defects.tools.d.ts +7 -0
- package/dist/tools/defects.tools.d.ts.map +1 -0
- package/dist/tools/defects.tools.js +108 -0
- package/dist/tools/defects.tools.js.map +1 -0
- package/dist/tools/discovery.tools.d.ts +23 -0
- package/dist/tools/discovery.tools.d.ts.map +1 -0
- package/dist/tools/discovery.tools.js +1746 -0
- package/dist/tools/discovery.tools.js.map +1 -0
- package/dist/tools/executionPlan.tools.d.ts +14 -0
- package/dist/tools/executionPlan.tools.d.ts.map +1 -0
- package/dist/tools/executionPlan.tools.js +184 -0
- package/dist/tools/executionPlan.tools.js.map +1 -0
- package/dist/tools/failure.tools.d.ts +14 -0
- package/dist/tools/failure.tools.d.ts.map +1 -0
- package/dist/tools/failure.tools.js +65 -0
- package/dist/tools/failure.tools.js.map +1 -0
- package/dist/tools/formulas.tools.d.ts +7 -0
- package/dist/tools/formulas.tools.d.ts.map +1 -0
- package/dist/tools/formulas.tools.js +84 -0
- package/dist/tools/formulas.tools.js.map +1 -0
- package/dist/tools/functionReuse.d.ts +77 -0
- package/dist/tools/functionReuse.d.ts.map +1 -0
- package/dist/tools/functionReuse.js +384 -0
- package/dist/tools/functionReuse.js.map +1 -0
- package/dist/tools/gapAnalysis.tools.d.ts +31 -0
- package/dist/tools/gapAnalysis.tools.d.ts.map +1 -0
- package/dist/tools/gapAnalysis.tools.js +287 -0
- package/dist/tools/gapAnalysis.tools.js.map +1 -0
- package/dist/tools/heal.tools.d.ts +20 -0
- package/dist/tools/heal.tools.d.ts.map +1 -0
- package/dist/tools/heal.tools.js +268 -0
- package/dist/tools/heal.tools.js.map +1 -0
- package/dist/tools/impactAnalysis.tools.d.ts +17 -0
- package/dist/tools/impactAnalysis.tools.d.ts.map +1 -0
- package/dist/tools/impactAnalysis.tools.js +352 -0
- package/dist/tools/impactAnalysis.tools.js.map +1 -0
- package/dist/tools/markdown.d.ts +13 -0
- package/dist/tools/markdown.d.ts.map +1 -0
- package/dist/tools/markdown.js +145 -0
- package/dist/tools/markdown.js.map +1 -0
- package/dist/tools/objects.tools.d.ts +7 -0
- package/dist/tools/objects.tools.d.ts.map +1 -0
- package/dist/tools/objects.tools.js +458 -0
- package/dist/tools/objects.tools.js.map +1 -0
- package/dist/tools/pipeline.tools.d.ts +11 -0
- package/dist/tools/pipeline.tools.d.ts.map +1 -0
- package/dist/tools/pipeline.tools.js +100 -0
- package/dist/tools/pipeline.tools.js.map +1 -0
- package/dist/tools/preference.tools.d.ts +15 -0
- package/dist/tools/preference.tools.d.ts.map +1 -0
- package/dist/tools/preference.tools.js +114 -0
- package/dist/tools/preference.tools.js.map +1 -0
- package/dist/tools/privileges.tools.d.ts +65 -0
- package/dist/tools/privileges.tools.d.ts.map +1 -0
- package/dist/tools/privileges.tools.js +186 -0
- package/dist/tools/privileges.tools.js.map +1 -0
- package/dist/tools/project.tools.d.ts +13 -0
- package/dist/tools/project.tools.d.ts.map +1 -0
- package/dist/tools/project.tools.js +199 -0
- package/dist/tools/project.tools.js.map +1 -0
- package/dist/tools/query.tools.d.ts +23 -0
- package/dist/tools/query.tools.d.ts.map +1 -0
- package/dist/tools/query.tools.js +368 -0
- package/dist/tools/query.tools.js.map +1 -0
- package/dist/tools/recording.tools.d.ts +58 -0
- package/dist/tools/recording.tools.d.ts.map +1 -0
- package/dist/tools/recording.tools.js +1050 -0
- package/dist/tools/recording.tools.js.map +1 -0
- package/dist/tools/recordingNames.d.ts +3 -0
- package/dist/tools/recordingNames.d.ts.map +1 -0
- package/dist/tools/recordingNames.js +16 -0
- package/dist/tools/recordingNames.js.map +1 -0
- package/dist/tools/report.tools.d.ts +12 -0
- package/dist/tools/report.tools.d.ts.map +1 -0
- package/dist/tools/report.tools.js +104 -0
- package/dist/tools/report.tools.js.map +1 -0
- package/dist/tools/run.tools.d.ts +25 -0
- package/dist/tools/run.tools.d.ts.map +1 -0
- package/dist/tools/run.tools.js +1295 -0
- package/dist/tools/run.tools.js.map +1 -0
- package/dist/tools/schemas.d.ts +860 -0
- package/dist/tools/schemas.d.ts.map +1 -0
- package/dist/tools/schemas.js +220 -0
- package/dist/tools/schemas.js.map +1 -0
- package/dist/tools/storySync.tools.d.ts +167 -0
- package/dist/tools/storySync.tools.d.ts.map +1 -0
- package/dist/tools/storySync.tools.js +678 -0
- package/dist/tools/storySync.tools.js.map +1 -0
- package/dist/tools/suiteManage.tools.d.ts +14 -0
- package/dist/tools/suiteManage.tools.d.ts.map +1 -0
- package/dist/tools/suiteManage.tools.js +112 -0
- package/dist/tools/suiteManage.tools.js.map +1 -0
- package/dist/tools/tasks.tools.d.ts +7 -0
- package/dist/tools/tasks.tools.d.ts.map +1 -0
- package/dist/tools/tasks.tools.js +101 -0
- package/dist/tools/tasks.tools.js.map +1 -0
- package/dist/tools/tcEditPublisher.d.ts +29 -0
- package/dist/tools/tcEditPublisher.d.ts.map +1 -0
- package/dist/tools/tcEditPublisher.js +61 -0
- package/dist/tools/tcEditPublisher.js.map +1 -0
- package/dist/tools/testCaseLint.d.ts +5 -0
- package/dist/tools/testCaseLint.d.ts.map +1 -0
- package/dist/tools/testCaseLint.js +112 -0
- package/dist/tools/testCaseLint.js.map +1 -0
- package/dist/tools/testPlan.tools.d.ts +12 -0
- package/dist/tools/testPlan.tools.d.ts.map +1 -0
- package/dist/tools/testPlan.tools.js +104 -0
- package/dist/tools/testPlan.tools.js.map +1 -0
- package/dist/tools/testcase.tools.d.ts +86 -0
- package/dist/tools/testcase.tools.d.ts.map +1 -0
- package/dist/tools/testcase.tools.js +1591 -0
- package/dist/tools/testcase.tools.js.map +1 -0
- package/dist/tools/testdata.tools.d.ts +7 -0
- package/dist/tools/testdata.tools.d.ts.map +1 -0
- package/dist/tools/testdata.tools.js +636 -0
- package/dist/tools/testdata.tools.js.map +1 -0
- package/dist/tools/xlsx.d.ts +8 -0
- package/dist/tools/xlsx.d.ts.map +1 -0
- package/dist/tools/xlsx.js +113 -0
- package/dist/tools/xlsx.js.map +1 -0
- package/dist/vendor/actionSignatures.d.ts +117 -0
- package/dist/vendor/actionSignatures.d.ts.map +1 -0
- package/dist/vendor/actionSignatures.js +420 -0
- package/dist/vendor/actionSignatures.js.map +1 -0
- package/dist/vendor/logger.d.ts +43 -0
- package/dist/vendor/logger.d.ts.map +1 -0
- package/dist/vendor/logger.js +184 -0
- package/dist/vendor/logger.js.map +1 -0
- package/dist/version.d.ts +10 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +10 -0
- package/dist/version.js.map +1 -0
- package/dist/versionName.d.ts +21 -0
- package/dist/versionName.d.ts.map +1 -0
- package/dist/versionName.js +48 -0
- package/dist/versionName.js.map +1 -0
- package/package.json +62 -6
|
@@ -0,0 +1,1328 @@
|
|
|
1
|
+
export type Locator = {
|
|
2
|
+
name: string;
|
|
3
|
+
value: string;
|
|
4
|
+
unique?: boolean | undefined;
|
|
5
|
+
};
|
|
6
|
+
export type Condition = {
|
|
7
|
+
type: string;
|
|
8
|
+
selector?: string | undefined;
|
|
9
|
+
objectId?: string | undefined;
|
|
10
|
+
text?: string | undefined;
|
|
11
|
+
variableName?: string | undefined;
|
|
12
|
+
variableValue?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type Step = {
|
|
15
|
+
n: number;
|
|
16
|
+
description: string;
|
|
17
|
+
actionType: string;
|
|
18
|
+
/** Backend technology of THIS step (WEB / API / DATABASE / ANDROID / IOS / MAINFRAME / …).
|
|
19
|
+
* Raw value when the backend supplies it, derived from `stepType` otherwise. Action names are
|
|
20
|
+
* NOT unique across technologies, so every action lookup/validation is scoped by this. */
|
|
21
|
+
technologyType?: string | undefined;
|
|
22
|
+
/** Opaque provider step id (Walnut step `_id`), carried READ→WRITE so an edit's PUT matches kept
|
|
23
|
+
* steps by identity (update in place) and correctly deletes the ones dropped — not fragile
|
|
24
|
+
* slot-by-number matching. Absent on freshly-inserted steps (the backend then creates them). */
|
|
25
|
+
sourceId?: string | undefined;
|
|
26
|
+
stepType: 'manual' | 'web' | 'api' | 'control_flow' | 'function' | 'function_end' | 'database' | 'android' | 'ios' | 'mainframe' | 'desktop' | 'sap' | 'switch' | 'compare';
|
|
27
|
+
/** `missing: true` means `id` was looked up and did NOT resolve to a real object (deleted, or
|
|
28
|
+
* never existed) — distinct from `name` merely being unset. Callers must render this as a broken
|
|
29
|
+
* reference, not silently fall back to showing the bare id as if nothing were wrong. */
|
|
30
|
+
objectRef?: {
|
|
31
|
+
id?: string | undefined;
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
locators?: Locator[] | undefined;
|
|
34
|
+
missing?: boolean | undefined;
|
|
35
|
+
/** Recorder-captured element / page screenshots (base64 PNG, optional `data:` prefix). Only used when a new object is created. */
|
|
36
|
+
thumbnail_url?: string | undefined;
|
|
37
|
+
pageScreenShot_url?: string | undefined;
|
|
38
|
+
/** Read side: absolute loadable image URLs of the stored object (SimplifyQA). */
|
|
39
|
+
thumbnailUrl?: string | undefined;
|
|
40
|
+
pageScreenshotUrl?: string | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
value?: string | undefined;
|
|
43
|
+
expectedResult?: string | undefined;
|
|
44
|
+
/** Control-flow marker. `kind` mirrors SQA's raw `stepType` for control rows (IF/ELSE/ELSE_IF/IF_END,
|
|
45
|
+
* WHILE_START/WHILE/WHILE_END, DO/DO_WHILE, FOR_START/FOR_END, LOOP, ITERATOR_START/END,
|
|
46
|
+
* LOOP_ITERATION_START/END, SWITCH_TO_*). Kept as a wide string so a future backend adds don't need
|
|
47
|
+
* a schema change here — the markdown renderer defaults unknown kinds to their raw uppercase name. */
|
|
48
|
+
controlFlow?: {
|
|
49
|
+
kind: string;
|
|
50
|
+
condition?: Condition | undefined;
|
|
51
|
+
/** Raw ifstring from SQA's `conditions.ifstring` — the human-readable expression as shown in the UI. */
|
|
52
|
+
conditionText?: string | undefined;
|
|
53
|
+
blockId?: string | undefined;
|
|
54
|
+
maxIterations?: number | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
api?: Record<string, unknown> | undefined;
|
|
57
|
+
db?: Record<string, unknown> | undefined;
|
|
58
|
+
/** NESTED test-case call (stepType 'function'): the child TC this step executes. Carried through
|
|
59
|
+
* the mapper so a nested step ROUND-TRIPS (read→edit→save) without losing its child binding —
|
|
60
|
+
* without this, editing any TC containing a nested step silently drops the reference on save. */
|
|
61
|
+
functionCall?: {
|
|
62
|
+
testCaseId: string;
|
|
63
|
+
testCaseName?: string | undefined;
|
|
64
|
+
/** SQA function code (e.g. FN_12). Populated by the adapter's FN-name lookup so the
|
|
65
|
+
* markdown renderer can show a human ref instead of a bare numeric id. */
|
|
66
|
+
testCaseCode?: string | undefined;
|
|
67
|
+
/** SQA `fnVersionId` — the specific version of the referenced function pinned by this call. */
|
|
68
|
+
versionId?: string | undefined;
|
|
69
|
+
versionName?: string | undefined;
|
|
70
|
+
/** SQA `sharedFnProjectId` — non-null when the FN lives in a different project (shared functions). */
|
|
71
|
+
sharedProjectId?: string | undefined;
|
|
72
|
+
inputParams?: Record<string, unknown> | undefined;
|
|
73
|
+
continueOnFailure?: boolean | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
flags?: {
|
|
76
|
+
skip?: boolean | undefined;
|
|
77
|
+
screenshot?: boolean | undefined;
|
|
78
|
+
continueOnFailure?: boolean | undefined;
|
|
79
|
+
optional?: boolean | undefined;
|
|
80
|
+
} | undefined;
|
|
81
|
+
/** WEB automation: browser to target for this step. Defaults to CHROME when absent. */
|
|
82
|
+
browserType?: string | undefined;
|
|
83
|
+
/** SQA automation: recorded values for this step, keyed by ACTION PARAMETER NAME (not id).
|
|
84
|
+
* Example: for a launch action, `{ packageName: 'us.zoom.videomeetings', activity: '...' }`.
|
|
85
|
+
* The mapper resolves each name → paramId via get-or-create, then emits SQA's
|
|
86
|
+
* `parameterIds: [<id>...]` + `recordedParam: { <id>: value }` on the step. Populates the
|
|
87
|
+
* default iteration on save. Manual TCs ignore this field. */
|
|
88
|
+
/** LLM-facing recordedParam patches. NAME-keyed (`{"url": "https://x"}`) — mapper resolves to
|
|
89
|
+
* numeric paramId at save time. An ALL-DIGIT key (`{"7001": "sub_ln"}`) is an already-bound
|
|
90
|
+
* parameter ID and is used as-is (this is what a step read from the backend and re-added carries).
|
|
91
|
+
* Overrides matching keys in `sourceRecordedParam`. */
|
|
92
|
+
recordedParam?: Record<string, string> | undefined;
|
|
93
|
+
/** Formula-driven parameters recorded alongside their concrete values: `{ "<paramName>": "=FIRST_NAME()" }`.
|
|
94
|
+
* A recording stores the entered value AND this expression so the test-data cell can be saved as
|
|
95
|
+
* `{ value, formulaValue }` — the exact shape the executor re-evaluates per run. Absent for ordinary
|
|
96
|
+
* (non-formula) parameters. Used by the journal-fallback save; the recorder-window save gets the same
|
|
97
|
+
* information from the live step payload. */
|
|
98
|
+
recordedParamFormula?: Record<string, string> | undefined;
|
|
99
|
+
/** Provider plugin id of the action (the SQA `@Sync` uniqueId, e.g. "db-2"). Action NAMES are not unique
|
|
100
|
+
* in the backend catalog (executeQuery = db-2 AND db-3), so the save resolver prefers this over
|
|
101
|
+
* `actionType` when the backend exposes it. Set by the recorder journal; absent on hydrated steps. */
|
|
102
|
+
actionUniqueId?: string | undefined;
|
|
103
|
+
/** Names (keys of `recordedParam`) whose access type is Runtime — the store target of an action's
|
|
104
|
+
* Runtime Parameter slot. The save path creates these as `Runtime` parameters, not `Local`. */
|
|
105
|
+
runtimeParameters?: string[] | undefined;
|
|
106
|
+
/** EDIT ONLY: replace a parameter this step uses with another, IN THE SAME SLOT (so the action's argument order is
|
|
107
|
+
* unchanged). `from` / `to` are parameter names (or ids); `value` is the new parameter's test-data value for this step.
|
|
108
|
+
* Applied at save; idempotent (a step that already uses `to` and no longer `from` is left alone). */
|
|
109
|
+
swapParams?: Array<{
|
|
110
|
+
from: string;
|
|
111
|
+
to: string;
|
|
112
|
+
value?: string | undefined;
|
|
113
|
+
}> | undefined;
|
|
114
|
+
/** Backend-side parameterIds preserved from a round-tripped step. Adapters that populate this
|
|
115
|
+
* (SQA's fromSqaStep) let the save mapper emit the same FK linkages the backend had — without
|
|
116
|
+
* this, every save wipes parameterIds to only what description ${tokens} produce, silently
|
|
117
|
+
* dropping params linked via non-token mechanisms. */
|
|
118
|
+
sourceParameterIds?: number[] | undefined;
|
|
119
|
+
sourceObjectParameterIds?: number[] | undefined;
|
|
120
|
+
/** The object (id / display name) this step had when it was LOADED. Lets a save tell "the prompt changed the object"
|
|
121
|
+
* from "nothing changed", so an object swap re-derives the object's parameter ids and by-name swaps are honoured. */
|
|
122
|
+
sourceObjectId?: string | undefined;
|
|
123
|
+
sourceObjectName?: string | undefined;
|
|
124
|
+
/** Backend-side recordedParam preserved as-is (ID-keyed: `{"841": "https://staging.acme.com"}`).
|
|
125
|
+
* Save mapper seeds recordedParamOut with this so a re-save that doesn't touch values keeps
|
|
126
|
+
* them intact. LLM patches via `recordedParam` (name-keyed) override matching entries. */
|
|
127
|
+
sourceRecordedParam?: Record<string, string> | undefined;
|
|
128
|
+
/** Backend-side raw step fields preserved for round-trip: `stepType`, `conditions`, `loop`,
|
|
129
|
+
* `isConditional`, `if`, `else`, `functionId`, `fnVersionId`, `apiData`, `switchToAndroidData`,
|
|
130
|
+
* etc. Save mapper spreads this as the base object so control-flow / function / switch / api
|
|
131
|
+
* step structure survives a save. Restricted to the backend's joi allow-list to avoid junk. */
|
|
132
|
+
sourceRaw?: Record<string, unknown> | undefined;
|
|
133
|
+
/** DESKTOP only (plan.md P9.4): an IF's or ELSE_IF's conditions as the Java recorder journaled them (its
|
|
134
|
+
* `ConditionSpec`s), from `read_journal`. The save turns them into `conditions.children` rows, as the recorder
|
|
135
|
+
* window's own Save writes them. No other technology sets it. */
|
|
136
|
+
desktopConditions?: DesktopConditionSpec[] | undefined;
|
|
137
|
+
};
|
|
138
|
+
/** One journaled DESKTOP condition: an element check, or a comparison of two values (each a runtime value, named by
|
|
139
|
+
* `left` / `right` with its `*ParamUid`, or a literal without one). */
|
|
140
|
+
export type DesktopConditionSpec = {
|
|
141
|
+
type?: string | undefined;
|
|
142
|
+
logical?: string | undefined;
|
|
143
|
+
check?: string | undefined;
|
|
144
|
+
conditionActionUniqueId?: string | undefined;
|
|
145
|
+
conditionObject?: {
|
|
146
|
+
name?: string | null | undefined;
|
|
147
|
+
attributes?: Array<{
|
|
148
|
+
name: string;
|
|
149
|
+
value: string;
|
|
150
|
+
unique?: boolean | undefined;
|
|
151
|
+
}> | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
left?: string | undefined;
|
|
154
|
+
leftParamUid?: string | undefined;
|
|
155
|
+
operator?: string | undefined;
|
|
156
|
+
right?: string | undefined;
|
|
157
|
+
rightParamUid?: string | undefined;
|
|
158
|
+
};
|
|
159
|
+
export type TestCase = {
|
|
160
|
+
id?: string | undefined;
|
|
161
|
+
title: string;
|
|
162
|
+
description?: string | undefined;
|
|
163
|
+
objective?: string | undefined;
|
|
164
|
+
/** Provider-specific. Walnut stores it; SimplifyQA testcase rows have no priority column, so it is absent there. */
|
|
165
|
+
priority?: 'critical' | 'high' | 'medium' | 'low' | undefined;
|
|
166
|
+
status?: string | undefined;
|
|
167
|
+
category: 'automated' | 'manual' | 'playwright';
|
|
168
|
+
/** SQA: kept for history but hidden from normal lists/execution. Set by a story sync when the
|
|
169
|
+
* scenario a TC tested was removed. Reversible (`obsolete:false`); distinct from `tc_delete`. */
|
|
170
|
+
obsolete?: boolean | undefined;
|
|
171
|
+
preconditions?: string | undefined;
|
|
172
|
+
expectedOutcome?: string | undefined;
|
|
173
|
+
folderOrModule?: string | undefined;
|
|
174
|
+
storyRef?: string | undefined;
|
|
175
|
+
tags?: string[] | undefined;
|
|
176
|
+
steps: Step[];
|
|
177
|
+
version?: number | undefined;
|
|
178
|
+
/** Optimistic-lock counter on the tcfn document itself (separate from the version row's).
|
|
179
|
+
* Round-tripped so save payloads pass the same value the UI does — backend's concurrency check
|
|
180
|
+
* compares to the DB value and rejects if stale. */
|
|
181
|
+
updateVersion?: number | undefined;
|
|
182
|
+
/** SQA `tcType` — the automation stack this TC targets: 'WEB' | 'ANDROID' | 'IOS' | 'API' | 'MAINFRAME'
|
|
183
|
+
* | 'SAP' | 'DESKTOP' | 'DATABASE'. Drives the platform-specific inputs `tc_run` collects
|
|
184
|
+
* (browser for WEB; deviceType + deviceId for ANDROID/IOS). Undefined on providers without a
|
|
185
|
+
* tcType concept. */
|
|
186
|
+
technologyType?: string | undefined;
|
|
187
|
+
/** EDIT ONLY: raw test-case-level fields the backend keeps that the neutral model has no field for (tags, custom fields,
|
|
188
|
+
* mailers, linked issues, defects, suites). Carried through a read→edit→save untouched so a re-save never resets them. */
|
|
189
|
+
sourceTc?: Record<string, unknown> | undefined;
|
|
190
|
+
/** All non-deleted versions of this TC — populated by adapters that support versioning (SQA).
|
|
191
|
+
* `id` is the version's opaque id (SQA `tcfn_version.id`, a uuid); `name` is the human label
|
|
192
|
+
* ("v1.0"). Walnut/manual-only adapters leave this undefined. */
|
|
193
|
+
versions?: TcVersion[] | undefined;
|
|
194
|
+
/** The version whose steps are surfaced on `steps[]`. Adapters resolve this: caller-provided
|
|
195
|
+
* `versionId` argument > TC's currently-selected version > first entry in `versions[]`. */
|
|
196
|
+
currentVersionId?: string | undefined;
|
|
197
|
+
/** Default-row test data: param name -> value. Forwarded to the product on save to populate the
|
|
198
|
+
* datarow of the dataset it auto-creates from the `${param}` tokens in step descriptions, so the
|
|
199
|
+
* saved test case is executable with data. Optional -- the product also derives it from each
|
|
200
|
+
* step's single `${param}` + its value. */
|
|
201
|
+
data?: Record<string, string> | undefined;
|
|
202
|
+
/** SQA automation: execution target (device / browser) for the test case.
|
|
203
|
+
* - WEB: OPTIONAL — omit to let the SQA backend default to Chrome.
|
|
204
|
+
* - ANDROID / IOS: REQUIRED — the mapper refuses the save without one.
|
|
205
|
+
* Wire shape mirrors the SQA `executionPlatform` field on the tcfnObj:
|
|
206
|
+
* `{ id: <deviceSerial|'CHROME'>, name, technologyType: 'ANDROID'|'IOS'|'WEB', type:
|
|
207
|
+
* 'REAL_DEVICE'|'CLOUD_DEVICE'|'NONE', cloudDeviceType? }`. */
|
|
208
|
+
executionPlatform?: {
|
|
209
|
+
id: string;
|
|
210
|
+
name: string;
|
|
211
|
+
technologyType: string;
|
|
212
|
+
type: string;
|
|
213
|
+
cloudDeviceType?: string | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
};
|
|
216
|
+
/** One entry in `TestCase.versions[]`. Fields mirror what SQA's `/tm/testcase/getById` projects onto
|
|
217
|
+
* `versions[]` (tcfn.service.js:1489). `updateVersion` is the optimistic-lock counter, useful when
|
|
218
|
+
* the caller wants to display which version is newest. */
|
|
219
|
+
export type TcVersion = {
|
|
220
|
+
id: string;
|
|
221
|
+
name: string;
|
|
222
|
+
updateVersion?: number | undefined;
|
|
223
|
+
reviewApproveStatus?: string | undefined;
|
|
224
|
+
executionType?: string | undefined;
|
|
225
|
+
/** True when this is the TC's currently-selected version (the one the UI opens by default). */
|
|
226
|
+
isCurrent?: boolean | undefined;
|
|
227
|
+
};
|
|
228
|
+
export type TcSummary = {
|
|
229
|
+
id: string;
|
|
230
|
+
code?: string;
|
|
231
|
+
title: string;
|
|
232
|
+
/** Provider-specific. Absent on SimplifyQA (testcase rows have no priority/status columns). */
|
|
233
|
+
priority?: string;
|
|
234
|
+
status?: string;
|
|
235
|
+
stepCount?: number;
|
|
236
|
+
technologyType?: string;
|
|
237
|
+
executionType?: string;
|
|
238
|
+
obsolete?: boolean;
|
|
239
|
+
};
|
|
240
|
+
export type ProjectSummary = {
|
|
241
|
+
id: string;
|
|
242
|
+
code?: string;
|
|
243
|
+
name: string;
|
|
244
|
+
counts?: Record<string, number> | undefined;
|
|
245
|
+
};
|
|
246
|
+
/** One raw backend column filter (searchFields protocol) — see `zRawFilter` in tools/schemas.ts. */
|
|
247
|
+
export type RawSearchFilter = {
|
|
248
|
+
column: string;
|
|
249
|
+
value: string | number | boolean | string[] | number[];
|
|
250
|
+
regEx?: boolean | undefined;
|
|
251
|
+
};
|
|
252
|
+
export type TcQuery = {
|
|
253
|
+
search?: string;
|
|
254
|
+
status?: string;
|
|
255
|
+
limit?: number;
|
|
256
|
+
offset?: number;
|
|
257
|
+
/** Filter by numeric userId of the creator. Pass "me" and the adapter substitutes cfg.userId. */
|
|
258
|
+
createdBy?: string;
|
|
259
|
+
/** Filter by numeric userId of the last updater. Pass "me" and the adapter substitutes cfg.userId. */
|
|
260
|
+
updatedBy?: string;
|
|
261
|
+
storyId?: string;
|
|
262
|
+
/** Filter to test cases filed under this module (id or business key). SimplifyQA only; ignored on providers without a module tree. */
|
|
263
|
+
moduleId?: string;
|
|
264
|
+
/** True → only obsolete TCs; false → only non-obsolete. Omit to include both. SimplifyQA only. */
|
|
265
|
+
obsolete?: boolean;
|
|
266
|
+
filters?: RawSearchFilter[];
|
|
267
|
+
};
|
|
268
|
+
/** A USER STORY (Walnut `user_stories` doc, type 'story'). `key` = the human business key (walnut_key
|
|
269
|
+
* like US_001, or an external Jira/ADO key). `id` = the Mongo _id (what test cases link to via story_id). */
|
|
270
|
+
export type StorySummary = {
|
|
271
|
+
id: string;
|
|
272
|
+
key?: string | undefined;
|
|
273
|
+
title: string;
|
|
274
|
+
status?: string | undefined;
|
|
275
|
+
priority?: string | undefined;
|
|
276
|
+
};
|
|
277
|
+
export type Story = {
|
|
278
|
+
id: string;
|
|
279
|
+
key?: string | undefined;
|
|
280
|
+
title: string;
|
|
281
|
+
description?: string | undefined;
|
|
282
|
+
acceptanceCriteria?: string[] | undefined;
|
|
283
|
+
status?: string | undefined;
|
|
284
|
+
priority?: string | undefined;
|
|
285
|
+
/** Sprint FK — SimplifyQA server-side column is `iterationId`, exposed here under the neutral name.
|
|
286
|
+
* Populated by the SQA mapper when the story doc carries it; undefined on providers with no sprint model. */
|
|
287
|
+
sprintId?: string | undefined;
|
|
288
|
+
/** Release FK. Undefined on providers with no release model (Walnut). */
|
|
289
|
+
releaseId?: string | undefined;
|
|
290
|
+
/** Parent epic id (SQA `epicId`). Undefined when the story is orphan or the provider has no epics. */
|
|
291
|
+
epicId?: string | undefined;
|
|
292
|
+
/** Parent feature id (SQA `featureId`). Used by impact_analysis to guess sibling-story dependencies
|
|
293
|
+
* (stories sharing a feature are likely coupled). */
|
|
294
|
+
featureId?: string | undefined;
|
|
295
|
+
};
|
|
296
|
+
export type StoryQuery = {
|
|
297
|
+
search?: string;
|
|
298
|
+
status?: string;
|
|
299
|
+
limit?: number;
|
|
300
|
+
offset?: number;
|
|
301
|
+
/** Filter stories that belong to this sprint. Neutral name; SimplifyQA maps it to `userstory.iterationId` server-side. */
|
|
302
|
+
sprintId?: string;
|
|
303
|
+
/** Filter stories that belong to this release (SimplifyQA `userstory.releaseId`). */
|
|
304
|
+
releaseId?: string;
|
|
305
|
+
/** Filter by numeric userId of the creator. Pass "me" and the adapter substitutes cfg.userId. */
|
|
306
|
+
createdBy?: string;
|
|
307
|
+
/** Filter by numeric userId of the last updater. Pass "me" and the adapter substitutes cfg.userId. */
|
|
308
|
+
updatedBy?: string;
|
|
309
|
+
/** Filter by numeric userId of the story owner (`userstory.ownerId`). Pass "me" and the adapter
|
|
310
|
+
* substitutes cfg.userId. Testcases have no owner field — this is story-only. */
|
|
311
|
+
ownerId?: string;
|
|
312
|
+
filters?: RawSearchFilter[];
|
|
313
|
+
};
|
|
314
|
+
export type DefectSummary = {
|
|
315
|
+
id: string;
|
|
316
|
+
code?: string | undefined;
|
|
317
|
+
title: string;
|
|
318
|
+
state?: string | undefined;
|
|
319
|
+
severity?: string | undefined;
|
|
320
|
+
priority?: string | undefined;
|
|
321
|
+
assignedTo?: string[] | undefined;
|
|
322
|
+
tcIds?: string[] | undefined;
|
|
323
|
+
};
|
|
324
|
+
export type DefectQuery = {
|
|
325
|
+
search?: string;
|
|
326
|
+
limit?: number;
|
|
327
|
+
offset?: number;
|
|
328
|
+
tcId?: string;
|
|
329
|
+
storyId?: string;
|
|
330
|
+
/** Exact workflow-state key (e.g. "new"), not the capitalized UI label. */
|
|
331
|
+
state?: string;
|
|
332
|
+
/** Numeric userId of the assignee (array field on the defect). Pass "me" for the caller. */
|
|
333
|
+
assignedTo?: string;
|
|
334
|
+
createdBy?: string;
|
|
335
|
+
filters?: RawSearchFilter[];
|
|
336
|
+
};
|
|
337
|
+
/** A TASK (SimplifyQA `pm.task`) — project-management work item, distinct from a test case or defect. */
|
|
338
|
+
export type TaskSummary = {
|
|
339
|
+
id: string;
|
|
340
|
+
code?: string | undefined;
|
|
341
|
+
title: string;
|
|
342
|
+
state?: string | undefined;
|
|
343
|
+
priority?: string | undefined;
|
|
344
|
+
assignedTo?: string[] | undefined;
|
|
345
|
+
/** Linked defect id, when raised against one. */
|
|
346
|
+
defectId?: string | undefined;
|
|
347
|
+
};
|
|
348
|
+
export type TaskQuery = {
|
|
349
|
+
search?: string;
|
|
350
|
+
limit?: number;
|
|
351
|
+
offset?: number;
|
|
352
|
+
/** Filter to tasks linked to this user story (`userstoryId`). */
|
|
353
|
+
storyId?: string;
|
|
354
|
+
state?: string;
|
|
355
|
+
assignedTo?: string;
|
|
356
|
+
createdBy?: string;
|
|
357
|
+
filters?: RawSearchFilter[];
|
|
358
|
+
};
|
|
359
|
+
/** Fields accepted when CREATING a user story (`POST /pm/userstory`). Neutral shape — the SQA adapter
|
|
360
|
+
* maps `moduleId`/`iterationId`/etc to the SQA payload as-is. `projectId` is filled from the connected
|
|
361
|
+
* project when omitted; `state` and `estimatedEffort` are backend-required. */
|
|
362
|
+
export type MailersList = {
|
|
363
|
+
users?: number[] | undefined;
|
|
364
|
+
nonUsers?: number[] | undefined;
|
|
365
|
+
groups?: number[] | undefined;
|
|
366
|
+
};
|
|
367
|
+
export type StoryInput = {
|
|
368
|
+
name: string;
|
|
369
|
+
/** Watch List (the UI's email button): user ids that receive email notifications. */
|
|
370
|
+
mailersList?: MailersList | undefined;
|
|
371
|
+
state?: string | undefined;
|
|
372
|
+
estimatedEffort: number;
|
|
373
|
+
projectId?: number | undefined;
|
|
374
|
+
epicId?: number | undefined;
|
|
375
|
+
featureId?: number | undefined;
|
|
376
|
+
moduleId?: number | undefined;
|
|
377
|
+
releaseId?: number | undefined;
|
|
378
|
+
/** SQA `iterationId` — the sprint. */
|
|
379
|
+
iterationId?: number | undefined;
|
|
380
|
+
acceptanceCriteria?: string | undefined;
|
|
381
|
+
description?: string | undefined;
|
|
382
|
+
priority?: string | undefined;
|
|
383
|
+
/** SQA accepts an array of userIds. */
|
|
384
|
+
ownerId?: number[] | undefined;
|
|
385
|
+
tags?: number[] | undefined;
|
|
386
|
+
teamId?: number[] | undefined;
|
|
387
|
+
type?: string | undefined;
|
|
388
|
+
plannedStartDate?: string | undefined;
|
|
389
|
+
plannedEndDate?: string | undefined;
|
|
390
|
+
customFields?: Record<string, unknown> | undefined;
|
|
391
|
+
};
|
|
392
|
+
/** Partial update body for `PUT /pm/userstory/:id`. `updateVersion` is optimistic-concurrency: the
|
|
393
|
+
* server bumps it on every write and rejects stale writes. Pass it back from the last `getStory`. */
|
|
394
|
+
export type StoryUpdate = {
|
|
395
|
+
name?: string | undefined;
|
|
396
|
+
mailersList?: MailersList | undefined;
|
|
397
|
+
linkedIssues?: Array<Record<string, unknown>> | undefined;
|
|
398
|
+
state?: string | undefined;
|
|
399
|
+
estimatedEffort?: number | undefined;
|
|
400
|
+
projectId?: number | undefined;
|
|
401
|
+
epicId?: number | undefined;
|
|
402
|
+
featureId?: number | undefined;
|
|
403
|
+
moduleId?: number | undefined;
|
|
404
|
+
releaseId?: number | undefined;
|
|
405
|
+
iterationId?: number | undefined;
|
|
406
|
+
acceptanceCriteria?: string | undefined;
|
|
407
|
+
description?: string | undefined;
|
|
408
|
+
priority?: string | undefined;
|
|
409
|
+
ownerId?: number[] | undefined;
|
|
410
|
+
tags?: number[] | undefined;
|
|
411
|
+
teamId?: number[] | undefined;
|
|
412
|
+
type?: string | undefined;
|
|
413
|
+
plannedStartDate?: string | undefined;
|
|
414
|
+
plannedEndDate?: string | undefined;
|
|
415
|
+
customFields?: Record<string, unknown> | undefined;
|
|
416
|
+
updateVersion?: number | undefined;
|
|
417
|
+
};
|
|
418
|
+
/** An EPIC (SimplifyQA `pm.epic`). Top of the backlog hierarchy: epic → feature → story. `key` is the
|
|
419
|
+
* human business key (EP_XXX); `id` is the numeric doc id. */
|
|
420
|
+
export type EpicSummary = {
|
|
421
|
+
id: string;
|
|
422
|
+
key?: string | undefined;
|
|
423
|
+
name: string;
|
|
424
|
+
state?: string | undefined;
|
|
425
|
+
};
|
|
426
|
+
export type Epic = EpicSummary & {
|
|
427
|
+
description?: string | undefined;
|
|
428
|
+
estimatedEffort?: number | undefined;
|
|
429
|
+
ownerId?: number | undefined;
|
|
430
|
+
plannedStartDate?: string | undefined;
|
|
431
|
+
plannedEndDate?: string | undefined;
|
|
432
|
+
};
|
|
433
|
+
export type EpicQuery = {
|
|
434
|
+
search?: string;
|
|
435
|
+
state?: string;
|
|
436
|
+
limit?: number;
|
|
437
|
+
offset?: number;
|
|
438
|
+
/** Numeric userId of the creator. Pass "me" and the adapter substitutes cfg.userId. */
|
|
439
|
+
createdBy?: string;
|
|
440
|
+
/** Numeric userId of the last updater. Pass "me" and the adapter substitutes cfg.userId. */
|
|
441
|
+
updatedBy?: string;
|
|
442
|
+
/** Numeric userId of the epic owner. Pass "me" and the adapter substitutes cfg.userId. */
|
|
443
|
+
ownerId?: string;
|
|
444
|
+
};
|
|
445
|
+
/** Fields accepted when CREATING an epic (`POST /pm/epic`). `projectIds` is filled to `[currentProject]`
|
|
446
|
+
* when omitted; all six required fields (name/state/estimatedEffort/plannedStartDate/plannedEndDate/projectIds)
|
|
447
|
+
* must be present before hitting the backend. */
|
|
448
|
+
export type EpicInput = {
|
|
449
|
+
mailersList?: MailersList | undefined;
|
|
450
|
+
name: string;
|
|
451
|
+
state?: string | undefined;
|
|
452
|
+
estimatedEffort: number;
|
|
453
|
+
plannedStartDate: string;
|
|
454
|
+
plannedEndDate: string;
|
|
455
|
+
projectIds?: number[] | undefined;
|
|
456
|
+
ownerId?: number | undefined;
|
|
457
|
+
description?: string | undefined;
|
|
458
|
+
tags?: string[] | undefined;
|
|
459
|
+
teamId?: number[] | undefined;
|
|
460
|
+
actualStartDate?: string | undefined;
|
|
461
|
+
actualEndDate?: string | undefined;
|
|
462
|
+
actualEffort?: number | undefined;
|
|
463
|
+
remainingEffort?: number | undefined;
|
|
464
|
+
plannedBudget?: number | undefined;
|
|
465
|
+
customFields?: Record<string, unknown> | undefined;
|
|
466
|
+
};
|
|
467
|
+
export type EpicUpdate = {
|
|
468
|
+
mailersList?: MailersList | undefined;
|
|
469
|
+
linkedIssues?: Array<Record<string, unknown>> | undefined;
|
|
470
|
+
name?: string | undefined;
|
|
471
|
+
state?: string | undefined;
|
|
472
|
+
estimatedEffort?: number | undefined;
|
|
473
|
+
plannedStartDate?: string | undefined;
|
|
474
|
+
plannedEndDate?: string | undefined;
|
|
475
|
+
projectIds?: number[] | undefined;
|
|
476
|
+
ownerId?: number | undefined;
|
|
477
|
+
description?: string | undefined;
|
|
478
|
+
tags?: string[] | undefined;
|
|
479
|
+
teamId?: number[] | undefined;
|
|
480
|
+
actualStartDate?: string | undefined;
|
|
481
|
+
actualEndDate?: string | undefined;
|
|
482
|
+
actualEffort?: number | undefined;
|
|
483
|
+
remainingEffort?: number | undefined;
|
|
484
|
+
plannedBudget?: number | undefined;
|
|
485
|
+
customFields?: Record<string, unknown> | undefined;
|
|
486
|
+
updateVersion?: number | undefined;
|
|
487
|
+
};
|
|
488
|
+
/** A FEATURE (SimplifyQA `pm.feature`). Middle of the backlog hierarchy: epic → feature → story.
|
|
489
|
+
* `key` = business key (FT_XXX). `epicId` links to the parent epic. */
|
|
490
|
+
export type FeatureSummary = {
|
|
491
|
+
id: string;
|
|
492
|
+
key?: string | undefined;
|
|
493
|
+
name: string;
|
|
494
|
+
state?: string | undefined;
|
|
495
|
+
priority?: string | undefined;
|
|
496
|
+
epicId?: string | undefined;
|
|
497
|
+
};
|
|
498
|
+
export type Feature = FeatureSummary & {
|
|
499
|
+
description?: string | undefined;
|
|
500
|
+
estimatedEffort?: number | undefined;
|
|
501
|
+
ownerId?: number | undefined;
|
|
502
|
+
plannedStartDate?: string | undefined;
|
|
503
|
+
plannedEndDate?: string | undefined;
|
|
504
|
+
};
|
|
505
|
+
export type FeatureQuery = {
|
|
506
|
+
search?: string;
|
|
507
|
+
state?: string;
|
|
508
|
+
limit?: number;
|
|
509
|
+
offset?: number;
|
|
510
|
+
/** Filter features under a specific parent epic id. */
|
|
511
|
+
epicId?: string;
|
|
512
|
+
/** Numeric userId of the creator. Pass "me" and the adapter substitutes cfg.userId. */
|
|
513
|
+
createdBy?: string;
|
|
514
|
+
/** Numeric userId of the last updater. Pass "me" and the adapter substitutes cfg.userId. */
|
|
515
|
+
updatedBy?: string;
|
|
516
|
+
/** Numeric userId of the feature owner. Pass "me" and the adapter substitutes cfg.userId. */
|
|
517
|
+
ownerId?: string;
|
|
518
|
+
};
|
|
519
|
+
/** Fields accepted when CREATING a feature (`POST /pm/feature`). Same rules as EpicInput plus optional
|
|
520
|
+
* `epicId` (parent). `state` is optional on the backend for features (unlike epic/story). */
|
|
521
|
+
export type FeatureInput = {
|
|
522
|
+
mailersList?: MailersList | undefined;
|
|
523
|
+
name: string;
|
|
524
|
+
estimatedEffort: number;
|
|
525
|
+
plannedStartDate: string;
|
|
526
|
+
plannedEndDate: string;
|
|
527
|
+
projectIds?: number[] | undefined;
|
|
528
|
+
epicId?: number | undefined;
|
|
529
|
+
state?: string | undefined;
|
|
530
|
+
priority?: string | undefined;
|
|
531
|
+
ownerId?: number | undefined;
|
|
532
|
+
description?: string | undefined;
|
|
533
|
+
tags?: number[] | undefined;
|
|
534
|
+
teamId?: number[] | undefined;
|
|
535
|
+
actualStartDate?: string | undefined;
|
|
536
|
+
actualEndDate?: string | undefined;
|
|
537
|
+
actualEffort?: number | undefined;
|
|
538
|
+
remainingEffort?: number | undefined;
|
|
539
|
+
customFields?: Record<string, unknown> | undefined;
|
|
540
|
+
};
|
|
541
|
+
export type FeatureUpdate = {
|
|
542
|
+
mailersList?: MailersList | undefined;
|
|
543
|
+
linkedIssues?: Array<Record<string, unknown>> | undefined;
|
|
544
|
+
name?: string | undefined;
|
|
545
|
+
estimatedEffort?: number | undefined;
|
|
546
|
+
plannedStartDate?: string | undefined;
|
|
547
|
+
plannedEndDate?: string | undefined;
|
|
548
|
+
projectIds?: number[] | undefined;
|
|
549
|
+
epicId?: number | undefined;
|
|
550
|
+
state?: string | undefined;
|
|
551
|
+
priority?: string | undefined;
|
|
552
|
+
ownerId?: number | undefined;
|
|
553
|
+
description?: string | undefined;
|
|
554
|
+
tags?: number[] | undefined;
|
|
555
|
+
teamId?: number[] | undefined;
|
|
556
|
+
actualStartDate?: string | undefined;
|
|
557
|
+
actualEndDate?: string | undefined;
|
|
558
|
+
actualEffort?: number | undefined;
|
|
559
|
+
remainingEffort?: number | undefined;
|
|
560
|
+
customFields?: Record<string, unknown> | undefined;
|
|
561
|
+
updateVersion?: number | undefined;
|
|
562
|
+
};
|
|
563
|
+
/** A RELEASE (SimplifyQA `pm.release`). `state` is the release state ("planned", "in-progress", ...). */
|
|
564
|
+
export type ReleaseSummary = {
|
|
565
|
+
id: string;
|
|
566
|
+
name: string;
|
|
567
|
+
state?: string | undefined;
|
|
568
|
+
plannedStartDate?: string | undefined;
|
|
569
|
+
plannedEndDate?: string | undefined;
|
|
570
|
+
};
|
|
571
|
+
export type ReleaseQuery = {
|
|
572
|
+
scope: 'project' | 'all';
|
|
573
|
+
};
|
|
574
|
+
/** A SPRINT (SimplifyQA `pm.sprint`). `releaseId` links to the parent Release. */
|
|
575
|
+
export type SprintSummary = {
|
|
576
|
+
id: string;
|
|
577
|
+
name: string;
|
|
578
|
+
releaseId?: string | undefined;
|
|
579
|
+
state?: string | undefined;
|
|
580
|
+
plannedStartDate?: string | undefined;
|
|
581
|
+
plannedEndDate?: string | undefined;
|
|
582
|
+
};
|
|
583
|
+
export type SprintQuery = {
|
|
584
|
+
releaseId?: string;
|
|
585
|
+
};
|
|
586
|
+
/** A MODULE / folder in the SimplifyQA test-case tree. `parentId` is absent on root nodes.
|
|
587
|
+
* `isRoot`/`childIds` widen the row so tools can render the tree shape without a `get_module` per row —
|
|
588
|
+
* the UI's tree walker keys off `parent.childIds`, so surfacing it here lets callers verify hierarchy. */
|
|
589
|
+
export type ModuleSummary = {
|
|
590
|
+
id: string;
|
|
591
|
+
name: string;
|
|
592
|
+
parentId?: string | undefined;
|
|
593
|
+
isRoot?: boolean | undefined;
|
|
594
|
+
childIds?: number[] | undefined;
|
|
595
|
+
};
|
|
596
|
+
/** Full MODULE detail — `list_modules` returns only summary rows; `get_module` returns everything the
|
|
597
|
+
* server persists (description, human-readable code, immediate children, project). */
|
|
598
|
+
export type ModuleDetail = ModuleSummary & {
|
|
599
|
+
code?: string | undefined;
|
|
600
|
+
description?: string | undefined;
|
|
601
|
+
childIds?: number[] | undefined;
|
|
602
|
+
projectId?: string | undefined;
|
|
603
|
+
isRoot?: boolean | undefined;
|
|
604
|
+
};
|
|
605
|
+
/** Input to `createModule`. `isRoot:true` files under the project root (server strips `parentId`);
|
|
606
|
+
* otherwise `parentId` must resolve to an existing module in the same project. Optional `children`
|
|
607
|
+
* turns a single-node create into a subtree walk — the adapter POSTs the root, then depth-first
|
|
608
|
+
* posts each child with the freshly-returned parent id (no need for the caller to thread ids). */
|
|
609
|
+
export type ModuleCreateInput = {
|
|
610
|
+
name: string;
|
|
611
|
+
projectId: string;
|
|
612
|
+
isRoot: boolean;
|
|
613
|
+
parentId?: string | undefined;
|
|
614
|
+
description?: string | undefined;
|
|
615
|
+
children?: ModuleTreeInput[] | undefined;
|
|
616
|
+
};
|
|
617
|
+
/** A child node in a `createModule` subtree. `isRoot`/`parentId` are derived by position — never
|
|
618
|
+
* passed by the caller — so a whole hierarchy is described by name+description+children alone. */
|
|
619
|
+
export type ModuleTreeInput = {
|
|
620
|
+
name: string;
|
|
621
|
+
description?: string | undefined;
|
|
622
|
+
children?: ModuleTreeInput[] | undefined;
|
|
623
|
+
};
|
|
624
|
+
/** Enriched result of `createModule`. Extends `SavedRef` with the fields the UI's tree walker relies
|
|
625
|
+
* on (`isRoot`, `parentId`, `childIds`, `code`) so callers can verify the module landed where
|
|
626
|
+
* intended, plus `children` when a subtree was created. On partial subtree failure `failedAt` names
|
|
627
|
+
* the first unfinished node — everything before it did land. */
|
|
628
|
+
export type ModuleSaved = SavedRef & {
|
|
629
|
+
name: string;
|
|
630
|
+
code?: string | undefined;
|
|
631
|
+
isRoot: boolean;
|
|
632
|
+
parentId?: string | undefined;
|
|
633
|
+
childIds?: number[] | undefined;
|
|
634
|
+
children?: ModuleSaved[] | undefined;
|
|
635
|
+
failedAt?: {
|
|
636
|
+
path: string;
|
|
637
|
+
error: string;
|
|
638
|
+
} | undefined;
|
|
639
|
+
linkWarning?: string | undefined;
|
|
640
|
+
};
|
|
641
|
+
/** Input to `updateModule` — partial edit of an existing module. `projectId` is required by the
|
|
642
|
+
* backend for the privilege check; adapter falls back to the connected project when omitted. */
|
|
643
|
+
export type ModuleUpdateInput = {
|
|
644
|
+
name?: string | undefined;
|
|
645
|
+
description?: string | undefined;
|
|
646
|
+
projectId?: string | undefined;
|
|
647
|
+
parentId?: string | undefined;
|
|
648
|
+
};
|
|
649
|
+
/** Report kinds `downloadReports` can produce. `detailed` / `summary` are per test case; `suite` is the
|
|
650
|
+
* suite-overall PDF (suite runs only). */
|
|
651
|
+
export type ReportKind = 'detailed' | 'summary' | 'suite';
|
|
652
|
+
export type ReportFile = {
|
|
653
|
+
kind: ReportKind;
|
|
654
|
+
label: string;
|
|
655
|
+
path: string;
|
|
656
|
+
bytes: number;
|
|
657
|
+
};
|
|
658
|
+
/** Backlog item kinds that can be deleted through `deleteBacklogItem`. */
|
|
659
|
+
export type BacklogKind = 'epic' | 'feature' | 'story' | 'defect' | 'task';
|
|
660
|
+
/** Result of a backlog delete. `dependencies[].counts` maps each blocking relation (e.g. `featureArr`,
|
|
661
|
+
* `usArr`, `tcArr`, `taskArr`) to the ids that still reference the item; any non-empty one blocks delete. */
|
|
662
|
+
export type BacklogDeleteResult = {
|
|
663
|
+
dryRun: boolean;
|
|
664
|
+
deleted: boolean;
|
|
665
|
+
dependencies: Array<{
|
|
666
|
+
id: number;
|
|
667
|
+
counts: Record<string, number[]>;
|
|
668
|
+
}>;
|
|
669
|
+
};
|
|
670
|
+
/** Per-id dependency footprint the PATCH /pm/module dry-run returns. Non-empty arrays block delete
|
|
671
|
+
* until the referring rows are moved or removed. */
|
|
672
|
+
export type ModuleDependency = {
|
|
673
|
+
id: number;
|
|
674
|
+
tcArr: number[];
|
|
675
|
+
fnArr: number[];
|
|
676
|
+
parameterArr: number[];
|
|
677
|
+
objArr: number[];
|
|
678
|
+
defectArr: number[];
|
|
679
|
+
usArr: number[];
|
|
680
|
+
};
|
|
681
|
+
/** Result of `deleteModule`. `dryRun:true` → nothing was deleted; `dependencies` names what still
|
|
682
|
+
* references each id. `dryRun:false` → server actually deleted the ids with empty dependencies and
|
|
683
|
+
* silently skipped the rest; `dependencies` still surfaces the skipped-with-refs list for the caller
|
|
684
|
+
* to act on. */
|
|
685
|
+
export type ModuleDeleteResult = {
|
|
686
|
+
dryRun: boolean;
|
|
687
|
+
dependencies: ModuleDependency[];
|
|
688
|
+
};
|
|
689
|
+
/** Input to `deleteVersion`. `kind` toggles the backend `parentType` ('TC'|'FN'); `versionId` is
|
|
690
|
+
* the tcfn_version uuid (from `TestCase.versions[]` / `QaFunction.versions[]`); `versionName` is
|
|
691
|
+
* required by the backend validator even though the delete match doesn't strictly need it. */
|
|
692
|
+
export type VersionDeleteInput = {
|
|
693
|
+
kind: 'tc' | 'fn';
|
|
694
|
+
parentId: string;
|
|
695
|
+
versionId: string;
|
|
696
|
+
versionName: string;
|
|
697
|
+
confirm?: boolean;
|
|
698
|
+
};
|
|
699
|
+
/** TC-version dependency row — matches the payload SQA's dry-run returns for `parentType==='TC'`
|
|
700
|
+
* (tcfnversion.service.js:219). Each `*Arr` maps projectId (as a string key) → array of referring
|
|
701
|
+
* entity ids in that project. Empty maps mean "no refs of this kind". */
|
|
702
|
+
export type TcVersionDep = {
|
|
703
|
+
id: number;
|
|
704
|
+
versionName?: string | undefined;
|
|
705
|
+
defectArr: Record<string, number[]>;
|
|
706
|
+
suiteArr: Record<string, number[]>;
|
|
707
|
+
epArr: Record<string, number[]>;
|
|
708
|
+
scenarioArr: Record<string, number[]>;
|
|
709
|
+
schedulerArr: Record<string, number[]>;
|
|
710
|
+
pipelineArr: Record<string, number[]>;
|
|
711
|
+
workflowArr: Record<string, number[]>;
|
|
712
|
+
};
|
|
713
|
+
/** FN-version dependency row — matches the payload SQA returns for `parentType==='FN'`
|
|
714
|
+
* (tcfnversion.service.js:267). Same {projectId → ids} shape, narrower key set. */
|
|
715
|
+
export type FnVersionDep = {
|
|
716
|
+
id: number;
|
|
717
|
+
tcArr: Record<string, number[]>;
|
|
718
|
+
fnArr: Record<string, number[]>;
|
|
719
|
+
wfArr: Record<string, number[]>;
|
|
720
|
+
};
|
|
721
|
+
/** Result of `deleteVersion`. Two-phase mirrors the backend contract (tcfnversion.service.js:30):
|
|
722
|
+
* - `confirm:false` → `dryRun:true`, `dependencies` non-empty either way (each ref-array in the
|
|
723
|
+
* dep row may be empty maps — a truly-safe delete is when EVERY *Arr is `{}`).
|
|
724
|
+
* - `confirm:true` with empty deps → `dryRun:false`, `deleted:true`, `dependencies` empty.
|
|
725
|
+
* - `confirm:true` with non-empty deps → SERVER REFUSED: `dryRun:false`, `deleted:false`,
|
|
726
|
+
* `dependencies` populated. Caller must inspect the shape, not assume success from confirm:true. */
|
|
727
|
+
export type VersionDeleteResult = {
|
|
728
|
+
dryRun: boolean;
|
|
729
|
+
deleted: boolean;
|
|
730
|
+
dependencies: Array<TcVersionDep | FnVersionDep>;
|
|
731
|
+
/** True when any dependency row still has a non-empty ref map. When `dryRun:true` this means
|
|
732
|
+
* "delete would be refused"; when `dryRun:false` this means "server refused the delete". */
|
|
733
|
+
hasBlockers: boolean;
|
|
734
|
+
};
|
|
735
|
+
/** A reusable FUNCTION (SimplifyQA `tcfnObj` with type='FN'). Distinct from a TC: intended to be
|
|
736
|
+
* called as a nested step from many test cases. `fnType` is the technology (WEB/API/ANDROID/IOS);
|
|
737
|
+
* `executionType` is MANUAL/AUTOMATION; `status` is the review/approve status. */
|
|
738
|
+
export type FunctionSummary = {
|
|
739
|
+
id: string;
|
|
740
|
+
code?: string;
|
|
741
|
+
name: string;
|
|
742
|
+
description?: string | undefined;
|
|
743
|
+
fnType?: string | undefined;
|
|
744
|
+
executionType?: string | undefined;
|
|
745
|
+
stepCount?: number | undefined;
|
|
746
|
+
status?: string | undefined;
|
|
747
|
+
};
|
|
748
|
+
export type QaFunction = {
|
|
749
|
+
id: string;
|
|
750
|
+
code?: string | undefined;
|
|
751
|
+
name: string;
|
|
752
|
+
description?: string | undefined;
|
|
753
|
+
fnType?: string | undefined;
|
|
754
|
+
executionType?: string | undefined;
|
|
755
|
+
status?: string | undefined;
|
|
756
|
+
stepCount?: number | undefined;
|
|
757
|
+
steps: Step[];
|
|
758
|
+
/** Present when the FN has versions (SQA always does). Newest first — same shape as `TestCase.versions`. */
|
|
759
|
+
versions?: TcVersion[] | undefined;
|
|
760
|
+
};
|
|
761
|
+
export type FunctionQuery = {
|
|
762
|
+
search?: string;
|
|
763
|
+
fnType?: string;
|
|
764
|
+
executionType?: string;
|
|
765
|
+
/** Filter to functions filed under this module (id or business key). */
|
|
766
|
+
moduleId?: string;
|
|
767
|
+
/** Numeric userId of the creator. Pass "me" and the adapter substitutes cfg.userId. */
|
|
768
|
+
createdBy?: string;
|
|
769
|
+
/** Numeric userId of the last updater. Pass "me" and the adapter substitutes cfg.userId. */
|
|
770
|
+
updatedBy?: string;
|
|
771
|
+
limit?: number;
|
|
772
|
+
offset?: number;
|
|
773
|
+
};
|
|
774
|
+
/** A USER row from `/pm/user/search` — the identity behind `createdBy` / `updatedBy` on stories &
|
|
775
|
+
* testcases. Use `list_users` to resolve a name → id, then pass that id to `tc_list({createdBy})`. */
|
|
776
|
+
export type UserSummary = {
|
|
777
|
+
id: string;
|
|
778
|
+
name?: string;
|
|
779
|
+
email?: string;
|
|
780
|
+
username?: string;
|
|
781
|
+
status?: string;
|
|
782
|
+
};
|
|
783
|
+
export type UserQuery = {
|
|
784
|
+
search?: string;
|
|
785
|
+
limit?: number;
|
|
786
|
+
offset?: number;
|
|
787
|
+
/** Restrict to users assigned to this project (via projectuserrole). Non-admin callers are
|
|
788
|
+
* already scoped server-side to their accessible projects. */
|
|
789
|
+
projectId?: string;
|
|
790
|
+
};
|
|
791
|
+
export type QaObject = {
|
|
792
|
+
id?: string;
|
|
793
|
+
name: string;
|
|
794
|
+
pageName?: string;
|
|
795
|
+
objectType?: string;
|
|
796
|
+
locators: Locator[];
|
|
797
|
+
/** Object template (the backend's `objecttemplateId`) — actions are registered per template, so
|
|
798
|
+
* this is the precise scope for an action heal (more specific than the technology label). */
|
|
799
|
+
objectTemplateId?: string | undefined;
|
|
800
|
+
description?: string | undefined;
|
|
801
|
+
moduleId?: string | undefined;
|
|
802
|
+
parameterIds?: string[] | undefined;
|
|
803
|
+
moduleName?: string | undefined;
|
|
804
|
+
parameterNames?: string[] | undefined;
|
|
805
|
+
/** Absolute, directly loadable image URLs (SimplifyQA only; present when the object has them). */
|
|
806
|
+
thumbnailUrl?: string | undefined;
|
|
807
|
+
pageScreenshotUrl?: string | undefined;
|
|
808
|
+
};
|
|
809
|
+
export type ObjectQuery = {
|
|
810
|
+
query?: string;
|
|
811
|
+
pageName?: string;
|
|
812
|
+
limit?: number;
|
|
813
|
+
offset?: number;
|
|
814
|
+
};
|
|
815
|
+
export type Suite = {
|
|
816
|
+
id?: string;
|
|
817
|
+
name: string;
|
|
818
|
+
description?: string;
|
|
819
|
+
members: {
|
|
820
|
+
tcId: string;
|
|
821
|
+
order: number;
|
|
822
|
+
}[];
|
|
823
|
+
/** SimplifyQA Execution Type (LOCAL / REMOTE / CLOUD / STACK) — the suite's own menu value. */
|
|
824
|
+
executionType?: string | undefined;
|
|
825
|
+
};
|
|
826
|
+
/** `suiteType` is SimplifyQA-only ("MANUAL" | "AUTOMATION"); absent on Walnut. */
|
|
827
|
+
export type SuiteSummary = {
|
|
828
|
+
id: string;
|
|
829
|
+
name: string;
|
|
830
|
+
memberCount?: number;
|
|
831
|
+
suiteType?: string | undefined;
|
|
832
|
+
/** SimplifyQA Execution Type (LOCAL / REMOTE / CLOUD / STACK). */
|
|
833
|
+
executionType?: string | undefined;
|
|
834
|
+
};
|
|
835
|
+
export type MemberOp = {
|
|
836
|
+
op: 'add' | 'remove' | 'reorder';
|
|
837
|
+
tcId: string;
|
|
838
|
+
order?: number;
|
|
839
|
+
};
|
|
840
|
+
export type RunTarget = {
|
|
841
|
+
tcId?: string;
|
|
842
|
+
suiteId?: string;
|
|
843
|
+
planId?: string;
|
|
844
|
+
};
|
|
845
|
+
/** A single device entry for multi-device parallel execution. Each entry becomes one executionItem
|
|
846
|
+
* inside a SINGLE execution (one execution ID, multiple parallel runs). */
|
|
847
|
+
export type DeviceSpec = {
|
|
848
|
+
deviceId: string;
|
|
849
|
+
deviceName?: string;
|
|
850
|
+
deviceType?: 'REAL_DEVICE' | 'EMULATOR' | 'SIMULATOR' | 'CLOUD_DEVICE' | 'CLOUD_EMULATOR' | 'CLOUD_SIMULATOR';
|
|
851
|
+
cloudDeviceType?: 'LAMBDA_TEST' | 'BROWSER_STACK' | 'SAUCE_LABS' | 'SIMPLIFY_QA_DEVICE_FORM';
|
|
852
|
+
osVersion?: string;
|
|
853
|
+
};
|
|
854
|
+
export type RunOptions = {
|
|
855
|
+
environment?: string;
|
|
856
|
+
browser?: string;
|
|
857
|
+
headless?: boolean;
|
|
858
|
+
/** Where to run: 'local' = THIS machine's desktop agent; 'remote' = ANOTHER registered agent
|
|
859
|
+
* machine (a teammate's box, from remote_agents); 'cloud' = a cloud runner VM. The client MUST
|
|
860
|
+
* decide this (asking the user when unstated) — there is no safe default. */
|
|
861
|
+
mode?: 'local' | 'remote' | 'cloud';
|
|
862
|
+
/** For mode:'local' — a specific local agent credential_id (from local_agents; must be THIS
|
|
863
|
+
* machine's row). Omit to auto-pick this machine's agent. For mode:'remote' — REQUIRED, a
|
|
864
|
+
* credential_id from remote_agents (a teammate's row; auto-pick is not safe across boxes). */
|
|
865
|
+
agentId?: string;
|
|
866
|
+
/** For mode:'cloud' — the specific online cloud runner to dispatch to (resolved from listCloudRunners). */
|
|
867
|
+
cloudRunnerId?: string;
|
|
868
|
+
/** For mode:'cloud' — the runner's machine type (VM / AZURE / KUBERNETES), read off the chosen
|
|
869
|
+
* cloud runner. Stamped as the execution's `cloudType`; defaults to VM when unknown. */
|
|
870
|
+
cloudType?: string;
|
|
871
|
+
/** REQUIRED for ANDROID/IOS test cases — the target device id (adb serial / emulator name for
|
|
872
|
+
* LOCAL; cloud device name for CLOUD). Enumerate with `mobile_list_devices`. Ignored for
|
|
873
|
+
* non-mobile tcTypes (WEB / API / MAINFRAME / etc.). */
|
|
874
|
+
deviceId?: string;
|
|
875
|
+
/** REQUIRED for ANDROID/IOS test cases — the KIND of device the picked `deviceId` is.
|
|
876
|
+
* Drives the `type` field on the wire execution platform (REAL_DEVICE / EMULATOR / SIMULATOR
|
|
877
|
+
* for LOCAL; CLOUD_* for a farm). */
|
|
878
|
+
deviceType?: 'REAL_DEVICE' | 'EMULATOR' | 'SIMULATOR' | 'CLOUD_DEVICE' | 'CLOUD_EMULATOR' | 'CLOUD_SIMULATOR';
|
|
879
|
+
/** REQUIRED when `deviceType` is CLOUD_* — which cloud farm the device came from. Values mirror
|
|
880
|
+
* the SQA wire schema (note SIMPLIFY_QA_DEVICE_FORM's legacy "FORM" spelling). Read off the
|
|
881
|
+
* `cloudDeviceType` field on the matching row from `mobile_list_devices`. */
|
|
882
|
+
cloudDeviceType?: 'LAMBDA_TEST' | 'BROWSER_STACK' | 'SAUCE_LABS' | 'SIMPLIFY_QA_DEVICE_FORM';
|
|
883
|
+
/** Optional OS version to stamp on the wire platform object for ANDROID/IOS runs. Read off the
|
|
884
|
+
* matching row in `mobile_list_devices`; passed through untouched. */
|
|
885
|
+
osVersion?: string;
|
|
886
|
+
/** Human-readable device name for ANDROID/IOS runs (e.g. "OPPO CPH2375", "Pixel 7"). Read off
|
|
887
|
+
* the matching row's `name` field in `mobile_list_devices`. Used as the display name in
|
|
888
|
+
* execution reports. Falls back to `deviceId` when not provided. */
|
|
889
|
+
deviceName?: string;
|
|
890
|
+
/** For PARALLEL execution on multiple mobile devices — pass an array of device specs. Each entry
|
|
891
|
+
* creates one executionItem inside a SINGLE execution (one execution ID, multiple parallel runs).
|
|
892
|
+
* When provided, the single-device fields (deviceId, deviceName, deviceType, etc.) are ignored. */
|
|
893
|
+
devices?: DeviceSpec[];
|
|
894
|
+
/** Wire values on `/exec/execution` are SERIAL or PARALLEL — the joi validator
|
|
895
|
+
* at executions/src/validators/execution.validator.js:36 rejects anything else. Local is always
|
|
896
|
+
* serial. Default 'serial'. Applies to suite runs and multi-device TC runs. */
|
|
897
|
+
strategy?: 'serial' | 'parallel';
|
|
898
|
+
/** SUITE cloud only — max concurrent runners. Maps to `globalConfiguration.MAXIMUM_CONTAINER_COUNT`
|
|
899
|
+
* on the wire (suite doc's field with the same name is the fallback). */
|
|
900
|
+
maxConcurrent?: number;
|
|
901
|
+
/** SUITE runs only — stop dispatching remaining test cases after the first failure. */
|
|
902
|
+
terminateOnFailure?: boolean;
|
|
903
|
+
/** SimplifyQA project-management tag on the run. Optional — the UI's "Release" picker
|
|
904
|
+
* (from `list_releases`). Sent as numeric `releaseId` on the exec payload; default 0. */
|
|
905
|
+
releaseId?: string;
|
|
906
|
+
/** SimplifyQA project-management tag on the run. Optional — the UI's "Sprint" picker
|
|
907
|
+
* (from `list_sprints`). Sent as numeric `iterationId` on the exec payload; default 0. */
|
|
908
|
+
sprintId?: string;
|
|
909
|
+
/** Override the TC's currently-selected version for this run. Optional — the UI's
|
|
910
|
+
* "Version" chip defaults to the TC's current; pass an id from the TC's `versions[]` to run
|
|
911
|
+
* a different one. Omit to run the current version. */
|
|
912
|
+
versionId?: string;
|
|
913
|
+
};
|
|
914
|
+
/** `reportUrl`: the product's report page for THIS run — hand it to the user as-is instead of composing a link. */
|
|
915
|
+
export type RunRef = {
|
|
916
|
+
runId: string;
|
|
917
|
+
reportUrl?: string;
|
|
918
|
+
};
|
|
919
|
+
/** A cloud runner VM registered to the project. `online` is the single flag the run flow gates on.
|
|
920
|
+
* `id` (compute_configs._id) drives an IMMEDIATE cloud reserve; `credentialId` (the linked
|
|
921
|
+
* test_runner_vm agent credential) is what a SCHEDULE pins as assigned_agent_credential_id —
|
|
922
|
+
* a different id-space from `id`. */
|
|
923
|
+
export type CloudRunner = {
|
|
924
|
+
id: string;
|
|
925
|
+
name: string;
|
|
926
|
+
online: boolean;
|
|
927
|
+
status?: string;
|
|
928
|
+
os?: string;
|
|
929
|
+
credentialId?: string;
|
|
930
|
+
cloudType?: string;
|
|
931
|
+
};
|
|
932
|
+
/** A LOCAL Walnut agent registered to the project. `id` is the agent credential_id (what a LOCAL
|
|
933
|
+
* run/schedule dispatches to). `online` gates whether it can take a run now. `owner` is the person
|
|
934
|
+
* and `host` the machine hostname — shown together (like the product UI) so a user can tell apart
|
|
935
|
+
* several agents owned by the same person (the credential_id alone means nothing to them). */
|
|
936
|
+
export type LocalAgent = {
|
|
937
|
+
id: string;
|
|
938
|
+
name?: string;
|
|
939
|
+
online: boolean;
|
|
940
|
+
status?: string;
|
|
941
|
+
owner?: string;
|
|
942
|
+
host?: string;
|
|
943
|
+
isThisMachine?: boolean;
|
|
944
|
+
};
|
|
945
|
+
/** A mobile device registered to the project OR available on a configured cloud provider. `id`
|
|
946
|
+
* is the wire deviceId the executor takes (adb serial / udid for LOCAL; cloud farm device name
|
|
947
|
+
* for CLOUD). `active` is the last-known connection flag from the backend — stale by design
|
|
948
|
+
* (updated only when the desktop agent or an execution touches it). `agentId` is which
|
|
949
|
+
* registered machine's desktop agent the device is paired with (used to filter for REMOTE
|
|
950
|
+
* runs). `cloudDeviceType` names the cloud farm the device came from — undefined for local
|
|
951
|
+
* devices, one of LAMBDA_TEST / BROWSER_STACK / SAUCE_LABS / SIMPLIFY_QA_DEVICE_FORM for cloud
|
|
952
|
+
* rows (note the FORM/FARM legacy typo — mirrors the SQA wire schema exactly). */
|
|
953
|
+
export type MobileDevice = {
|
|
954
|
+
id: string;
|
|
955
|
+
name: string;
|
|
956
|
+
/** Human-readable display name for reports, e.g. "Oppo-Cph2375-Ab1fe936". Built from
|
|
957
|
+
* manufacturer + model + serial when available; falls back to `name` or `id`. */
|
|
958
|
+
displayName?: string;
|
|
959
|
+
platform: 'ANDROID' | 'IOS';
|
|
960
|
+
deviceType: 'REAL_DEVICE' | 'EMULATOR' | 'SIMULATOR' | 'CLOUD_DEVICE' | 'CLOUD_EMULATOR' | 'CLOUD_SIMULATOR';
|
|
961
|
+
osVersion?: string;
|
|
962
|
+
active?: boolean;
|
|
963
|
+
status?: string;
|
|
964
|
+
agentId?: string;
|
|
965
|
+
cloudDeviceType?: 'LAMBDA_TEST' | 'BROWSER_STACK' | 'SAUCE_LABS' | 'SIMPLIFY_QA_DEVICE_FORM';
|
|
966
|
+
};
|
|
967
|
+
/** Inputs to createSchedule (POST /api/schedules) — mirrors RunOptions' runner-pick fields plus the
|
|
968
|
+
* schedule cadence. `mode` and `scheduledFor` are required (the backend rejects a schedule with no
|
|
969
|
+
* start time). Manual test cases are not schedulable — the backend surfaces that error. */
|
|
970
|
+
/** Schedule recurrence. The first six mirror the SimplifyQA scheduler's Recurrence dropdown
|
|
971
|
+
* (Once, Every 5 Minutes, Hourly, Daily, Weekly, Monthly); `weekdays` is an MCP shortcut
|
|
972
|
+
* (weekly on Mon–Fri) kept for existing callers. */
|
|
973
|
+
export declare const SCHEDULE_TYPES: readonly ["once", "every_5_minutes", "hourly", "daily", "weekly", "monthly", "weekdays"];
|
|
974
|
+
export type ScheduleType = typeof SCHEDULE_TYPES[number];
|
|
975
|
+
export type ScheduleOptions = {
|
|
976
|
+
/** Where the scheduled run executes: 'local' (THIS machine's agent), 'remote' (a teammate's
|
|
977
|
+
* registered agent) or 'cloud' (a cloud runner VM). */
|
|
978
|
+
mode: 'local' | 'remote' | 'cloud';
|
|
979
|
+
/** mode:'local' / 'remote' — REQUIRED: the specific agent credential_id the schedule fires on.
|
|
980
|
+
* A schedule runs detached from any live session (no "caller's own agent" at fire time), so a
|
|
981
|
+
* local/remote schedule must pin an agent — createSchedule sets execution_mode:'manual' so the
|
|
982
|
+
* backend honors it. LOCAL must be THIS machine's row (local_agents); REMOTE must be a
|
|
983
|
+
* teammate's row (remote_agents). */
|
|
984
|
+
agentId?: string;
|
|
985
|
+
/** mode:'cloud' — the specific cloud runner id (compute_configs._id, from listCloudRunners), used
|
|
986
|
+
* only to identify the runner. The actual SCHEDULE pin travels in cloudRunnerCredentialId. */
|
|
987
|
+
cloudRunnerId?: string;
|
|
988
|
+
/** mode:'cloud' — pin a SPECIFIC cloud runner by its agent CREDENTIAL id (CloudRunner.credentialId,
|
|
989
|
+
* NOT cloudRunnerId). The backend validates it as an active test_runner_vm credential and rejects a
|
|
990
|
+
* VM that is offline at create time; omit to let the backend auto-pick a live VM at fire time. */
|
|
991
|
+
cloudRunnerCredentialId?: string;
|
|
992
|
+
browser?: string;
|
|
993
|
+
/** Environment id (Mongo id); only forwarded when it is a 24-hex id, mirroring startRun. */
|
|
994
|
+
environmentId?: string;
|
|
995
|
+
/** Tag the scheduled run with a RELEASE (from list_releases). REQUIRED for suite schedules on
|
|
996
|
+
* SimplifyQA — the UI marks Release with `*` when _parentComponent==='SU'. Sent as numeric
|
|
997
|
+
* releaseId on the schedule payload. */
|
|
998
|
+
releaseId?: string;
|
|
999
|
+
/** Tag the scheduled run with a SPRINT (from list_sprints). REQUIRED for suite schedules on
|
|
1000
|
+
* SimplifyQA — mirrors the UI. SQA's underlying column is `iterationId`. */
|
|
1001
|
+
sprintId?: string;
|
|
1002
|
+
/** REQUIRED — ISO datetime of the first (or only) run. */
|
|
1003
|
+
scheduledFor: string;
|
|
1004
|
+
/** Recurrence cadence (the tools make the user pick it explicitly). */
|
|
1005
|
+
scheduleType?: ScheduleType;
|
|
1006
|
+
/** ISO end date for recurring schedules. */
|
|
1007
|
+
endDate?: string;
|
|
1008
|
+
/** IANA timezone, default 'UTC'. */
|
|
1009
|
+
timezone?: string;
|
|
1010
|
+
};
|
|
1011
|
+
/** Neutral reference to a created schedule (from POST /api/schedules `data`). */
|
|
1012
|
+
export type ScheduleRef = {
|
|
1013
|
+
id: string;
|
|
1014
|
+
status?: string;
|
|
1015
|
+
nextRunAt?: string;
|
|
1016
|
+
productUrl?: string;
|
|
1017
|
+
};
|
|
1018
|
+
/** A schedule as listed for management (GET /api/schedules). `target` names WHAT it runs (a test case
|
|
1019
|
+
* or a suite), `agent` is the pinned agent/runner's human name, and `updateVersion` is the optimistic-
|
|
1020
|
+
* concurrency token an edit must echo back. */
|
|
1021
|
+
export type ScheduleInfo = {
|
|
1022
|
+
id: string;
|
|
1023
|
+
target: string;
|
|
1024
|
+
scheduleType: string;
|
|
1025
|
+
status: string;
|
|
1026
|
+
active?: boolean;
|
|
1027
|
+
executionTarget?: 'local' | 'cloud_runner';
|
|
1028
|
+
agent?: string;
|
|
1029
|
+
browser?: string;
|
|
1030
|
+
nextRunAt?: string;
|
|
1031
|
+
scheduledFor?: string;
|
|
1032
|
+
timezone?: string;
|
|
1033
|
+
updateVersion?: number;
|
|
1034
|
+
};
|
|
1035
|
+
/** Fields an edit may change (schedule_update). Omitted = leave as-is. Mirrors updateScheduleSchema;
|
|
1036
|
+
* `mode:'local'` re-pins via agentId, `mode:'cloud'` via cloudRunnerCredentialId. */
|
|
1037
|
+
export type ScheduleUpdate = {
|
|
1038
|
+
scheduledFor?: string;
|
|
1039
|
+
scheduleType?: ScheduleType;
|
|
1040
|
+
endDate?: string;
|
|
1041
|
+
timezone?: string;
|
|
1042
|
+
browser?: string;
|
|
1043
|
+
environmentId?: string;
|
|
1044
|
+
mode?: 'local' | 'cloud';
|
|
1045
|
+
agentId?: string;
|
|
1046
|
+
cloudRunnerCredentialId?: string;
|
|
1047
|
+
};
|
|
1048
|
+
/** State transitions for schedule_control. pause↔resume are reversible; cancel stops the pending/live
|
|
1049
|
+
* run; delete (a separate tool) removes the row entirely. */
|
|
1050
|
+
export type ScheduleAction = 'pause' | 'resume' | 'cancel';
|
|
1051
|
+
export type RunState = 'queued' | 'running' | 'passed' | 'failed' | 'skipped' | 'notExecuted' | 'stopped' | 'error';
|
|
1052
|
+
export type RunStatus = {
|
|
1053
|
+
runId: string;
|
|
1054
|
+
state: RunState;
|
|
1055
|
+
progress?: {
|
|
1056
|
+
done: number;
|
|
1057
|
+
total: number;
|
|
1058
|
+
};
|
|
1059
|
+
/** `warning`: a step that PASSED but shows evidence of a problem (e.g. an API request that got no response, a read that
|
|
1060
|
+
* matched nothing). Derived from stored data; it never changes `status`. */
|
|
1061
|
+
stepResults?: {
|
|
1062
|
+
n: number;
|
|
1063
|
+
description: string;
|
|
1064
|
+
status: string;
|
|
1065
|
+
error?: string;
|
|
1066
|
+
warning?: string;
|
|
1067
|
+
screenshotUrl?: string;
|
|
1068
|
+
}[];
|
|
1069
|
+
/** SUITE runs only — per-test-case rollup (one row per member). `progress` then counts TEST CASES,
|
|
1070
|
+
* not steps. Absent for a single test-case run. `testcaseId`/`versionId`/`stepId` (when present)
|
|
1071
|
+
* are what a follow-up drill-down (adapter's `getSuiteChildRun`) needs to fetch THIS child's own
|
|
1072
|
+
* step-level results — the rollup alone only carries pass/fail state, not why. */
|
|
1073
|
+
children?: {
|
|
1074
|
+
id: string;
|
|
1075
|
+
title?: string;
|
|
1076
|
+
state: RunState;
|
|
1077
|
+
testcaseId?: string;
|
|
1078
|
+
versionId?: string;
|
|
1079
|
+
stepId?: string;
|
|
1080
|
+
}[];
|
|
1081
|
+
startedAt?: string | undefined;
|
|
1082
|
+
endedAt?: string | undefined;
|
|
1083
|
+
reportUrl?: string;
|
|
1084
|
+
};
|
|
1085
|
+
/** One row in a run-history scoreboard — enough to render a "last N executions" list without
|
|
1086
|
+
* pulling per-step detail. SUITE runs carry the per-test-case tally inline (from the exec doc's
|
|
1087
|
+
* executionItems[]); TC runs omit those counters. */
|
|
1088
|
+
export type RunSummary = {
|
|
1089
|
+
runId: string;
|
|
1090
|
+
state: RunState;
|
|
1091
|
+
startedAt?: string;
|
|
1092
|
+
endedAt?: string;
|
|
1093
|
+
reportUrl?: string;
|
|
1094
|
+
totalTestCases?: number;
|
|
1095
|
+
passed?: number;
|
|
1096
|
+
failed?: number;
|
|
1097
|
+
skipped?: number;
|
|
1098
|
+
notExecuted?: number;
|
|
1099
|
+
};
|
|
1100
|
+
export type SavedRef = {
|
|
1101
|
+
id: string;
|
|
1102
|
+
productUrl?: string;
|
|
1103
|
+
created: boolean;
|
|
1104
|
+
artifacts?: string[];
|
|
1105
|
+
};
|
|
1106
|
+
export type ActionDef = {
|
|
1107
|
+
actionType: string;
|
|
1108
|
+
platform: string;
|
|
1109
|
+
description?: string;
|
|
1110
|
+
/** Backend numeric id, when the provider has one (SimplifyQA). Undefined on offline / walnut. */
|
|
1111
|
+
id?: number | undefined;
|
|
1112
|
+
/** True when the action requires an objectRef on the step (SimplifyQA). Optional. */
|
|
1113
|
+
objectRequired?: boolean | undefined;
|
|
1114
|
+
};
|
|
1115
|
+
export type EnvInfo = {
|
|
1116
|
+
id: string;
|
|
1117
|
+
name: string;
|
|
1118
|
+
key?: string;
|
|
1119
|
+
isDefault?: boolean;
|
|
1120
|
+
};
|
|
1121
|
+
export type DatasetInfo = {
|
|
1122
|
+
id: string;
|
|
1123
|
+
name: string;
|
|
1124
|
+
rowCount?: number;
|
|
1125
|
+
};
|
|
1126
|
+
/** Template row for testdata generation. `parameters[i].paramId` is the backend id used when
|
|
1127
|
+
* posting new rows; `name` is the human-facing token (e.g. `${username}`); `seed` is the current
|
|
1128
|
+
* default value (empty string if unset) — used for regex-based type inference when no override is
|
|
1129
|
+
* supplied. `versionId`/`environmentType` are echoed back from the product so a follow-up
|
|
1130
|
+
* saveGeneratedIterations call targets the same TC context without a second lookup. */
|
|
1131
|
+
export type DefaultIteration = {
|
|
1132
|
+
tcId: string;
|
|
1133
|
+
versionId: string;
|
|
1134
|
+
environmentType: string;
|
|
1135
|
+
/** `seed` is already masked for a protected parameter ("*****" / "(empty)") — the real value
|
|
1136
|
+
* never leaves the adapter. */
|
|
1137
|
+
parameters: Array<{
|
|
1138
|
+
paramId: number;
|
|
1139
|
+
name: string;
|
|
1140
|
+
seed: string;
|
|
1141
|
+
protected?: boolean | undefined;
|
|
1142
|
+
}>;
|
|
1143
|
+
};
|
|
1144
|
+
/** One stored testdata iteration row (TC, FUNCTION or SUITE scope). `data` cells keep the backend
|
|
1145
|
+
* shape; `paramId` (+ optional `name`) identifies the parameter. `isChecked` is the iteration-
|
|
1146
|
+
* selection flag (a SUITE's suite-level testdata keeps exactly one active row per environment). */
|
|
1147
|
+
export type TestdataIterationRow = {
|
|
1148
|
+
id: string;
|
|
1149
|
+
name: string;
|
|
1150
|
+
sequenceNo?: number | undefined;
|
|
1151
|
+
isChecked?: boolean | undefined;
|
|
1152
|
+
type?: string | undefined;
|
|
1153
|
+
environmentType?: string | undefined;
|
|
1154
|
+
data: Array<{
|
|
1155
|
+
paramId: number;
|
|
1156
|
+
name?: string | undefined;
|
|
1157
|
+
value?: string | undefined;
|
|
1158
|
+
formulaValue?: string | undefined;
|
|
1159
|
+
[k: string]: unknown;
|
|
1160
|
+
}>;
|
|
1161
|
+
[k: string]: unknown;
|
|
1162
|
+
};
|
|
1163
|
+
/** Testdata iterations for a TC / FUNCTION / SUITE, with the parameter-id → name map for display. */
|
|
1164
|
+
export type TestdataRows = {
|
|
1165
|
+
entityType: 'TC' | 'FN' | 'SU';
|
|
1166
|
+
id: string;
|
|
1167
|
+
/** The backend `testdata` definition row (NOT the suite/test-case id). */
|
|
1168
|
+
testdataId: string;
|
|
1169
|
+
environmentType: string;
|
|
1170
|
+
defaultIterationId?: string | undefined;
|
|
1171
|
+
iterations: TestdataIterationRow[];
|
|
1172
|
+
parameterNames: Record<string, string>;
|
|
1173
|
+
};
|
|
1174
|
+
/** Request body for `saveGeneratedIterations`. `rows[i]` is a flat `{paramName: value}` map; the
|
|
1175
|
+
* adapter re-keys it to `{paramId: value}` server-side using the template.
|
|
1176
|
+
* `formulas` — optional per-column formula assignments applied to EVERY row: the adapter evaluates
|
|
1177
|
+
* the formula fresh per row via the product's compute endpoint and stamps both `value` (evaluated)
|
|
1178
|
+
* and `formulaValue` (source `=NAME(...)` expression) on the payload cell. A formula wins over an
|
|
1179
|
+
* explicit `rows[i]` value for the same param name. */
|
|
1180
|
+
export type SaveGeneratedIterations = {
|
|
1181
|
+
tcId: string;
|
|
1182
|
+
/** 'FN' saves into a reusable FUNCTION's testdata (`tcId` then carries the function id). Default 'TC'. */
|
|
1183
|
+
entityType?: 'TC' | 'FN' | undefined;
|
|
1184
|
+
versionId: string;
|
|
1185
|
+
environmentType: string;
|
|
1186
|
+
rows: Array<Record<string, string>>;
|
|
1187
|
+
formulas?: Record<string, FormulaCall> | undefined;
|
|
1188
|
+
/** Optional pre-fetched template parameters (from a getDefaultIteration the caller already made).
|
|
1189
|
+
* When present the adapter skips its own re-fetch — avoids paying the template + N parameter-name
|
|
1190
|
+
* lookups twice per save. Safe to omit; adapter falls back to fetching. */
|
|
1191
|
+
parameters?: Array<{
|
|
1192
|
+
paramId: number;
|
|
1193
|
+
name: string;
|
|
1194
|
+
seed: string;
|
|
1195
|
+
}> | undefined;
|
|
1196
|
+
};
|
|
1197
|
+
/** A formula available in the project for testdata generation. `scope` is derived from the formula
|
|
1198
|
+
* document: 'default' = customer-wide prefab (FIRST_NAME, RANDOM_EMAIL, …); 'customer' = user-defined
|
|
1199
|
+
* formula visible across every project in the customer; 'project' = only in the current project.
|
|
1200
|
+
* `signature`/`example` come straight from the formula's stored description. `parameters` names the
|
|
1201
|
+
* argument keys (order matters: the adapter serialises calls positionally as `=NAME("a","b")`). */
|
|
1202
|
+
export type Formula = {
|
|
1203
|
+
name: string;
|
|
1204
|
+
uniqueId: string;
|
|
1205
|
+
type: 'DEFAULT' | 'CUSTOM';
|
|
1206
|
+
scope: 'default' | 'customer' | 'project';
|
|
1207
|
+
signature: string;
|
|
1208
|
+
details?: string | undefined;
|
|
1209
|
+
example?: string | undefined;
|
|
1210
|
+
parameters: Array<{
|
|
1211
|
+
keyName: string;
|
|
1212
|
+
description?: string | undefined;
|
|
1213
|
+
dataType?: string | undefined;
|
|
1214
|
+
}>;
|
|
1215
|
+
};
|
|
1216
|
+
/** A model-supplied call to a formula for one testdata column. `args` is name→value keyed by
|
|
1217
|
+
* `Formula.parameters[].keyName`; the adapter orders them positionally when building the stored
|
|
1218
|
+
* `formulaValue` expression, and passes them as query params to the compute endpoint. */
|
|
1219
|
+
export type FormulaCall = {
|
|
1220
|
+
/** Formula name from tc_list_formulas. Optional when a full `expression` is given. */
|
|
1221
|
+
name?: string | undefined;
|
|
1222
|
+
args?: Record<string, string> | undefined;
|
|
1223
|
+
/** A complete formula expression, used verbatim — nested formulas, custom formulas, `{{param}}` references:
|
|
1224
|
+
* `=UPPER(FIRST_NAME("United States"))`. A leading `=` is added when missing. Wins over name/args. */
|
|
1225
|
+
expression?: string | undefined;
|
|
1226
|
+
};
|
|
1227
|
+
export type SaveGeneratedIterationsResult = {
|
|
1228
|
+
tcId: string;
|
|
1229
|
+
inserted: number;
|
|
1230
|
+
iterationIds?: string[];
|
|
1231
|
+
datasetUrl?: string;
|
|
1232
|
+
};
|
|
1233
|
+
/** Result of copying one TC's default-iteration values onto another TC (tc_automate). */
|
|
1234
|
+
export type CopyTestdataResult = {
|
|
1235
|
+
fromTcId: string;
|
|
1236
|
+
toTcId: string;
|
|
1237
|
+
environmentType: string;
|
|
1238
|
+
/** Number of parameter values written onto the target's default iteration. */
|
|
1239
|
+
copied: number;
|
|
1240
|
+
/** Source parameter names that had no matching target parameter (nothing written for them). */
|
|
1241
|
+
skipped: string[];
|
|
1242
|
+
};
|
|
1243
|
+
export type EntityRef = {
|
|
1244
|
+
kind: 'testcase' | 'suite' | 'run' | 'function';
|
|
1245
|
+
id: string;
|
|
1246
|
+
};
|
|
1247
|
+
/** The recording-JOURNAL view of a test case, for journal-first editing. `source:'journal'` = steps
|
|
1248
|
+
* derived from the stored journal seed (edits stay healer/re-record consistent); `source:'steps'` =
|
|
1249
|
+
* fell back to the persisted test_steps because the TC has no journal seed. */
|
|
1250
|
+
export type JournalView = {
|
|
1251
|
+
tcId: string;
|
|
1252
|
+
source: 'journal' | 'steps';
|
|
1253
|
+
steps: Step[];
|
|
1254
|
+
savedAt?: string | undefined;
|
|
1255
|
+
ageDays?: number | undefined;
|
|
1256
|
+
entryCount?: number | undefined;
|
|
1257
|
+
};
|
|
1258
|
+
/** One API response assertion, as an LLM writes it. `path` is the live-request form
|
|
1259
|
+
* (`statusCode`, `responseTime`, `responseSize`, `$.body.x`, `$.headers.Name`); the mapper
|
|
1260
|
+
* normalizes it to the editor's `response.x` / `responseHeaders.Name` shape on save. */
|
|
1261
|
+
export type ApiAssertionInput = {
|
|
1262
|
+
path: string;
|
|
1263
|
+
condition: string;
|
|
1264
|
+
expectedValue?: string | number | boolean | undefined;
|
|
1265
|
+
key?: string | undefined;
|
|
1266
|
+
[k: string]: unknown;
|
|
1267
|
+
};
|
|
1268
|
+
/** A granular edit op for journal_modify / edit_journal. `n` / `from` / `to` are the CLIENT-VISIBLE
|
|
1269
|
+
* step numbers from journal_grep (1-based). Range ops wrap the inclusive [from,to] span. */
|
|
1270
|
+
export type JournalOp = {
|
|
1271
|
+
op: 'set_meta';
|
|
1272
|
+
patch: Partial<TestCase>;
|
|
1273
|
+
} | {
|
|
1274
|
+
op: 'add_step';
|
|
1275
|
+
at?: number | undefined;
|
|
1276
|
+
seq?: number | undefined;
|
|
1277
|
+
step: Omit<Step, 'n'>;
|
|
1278
|
+
} | {
|
|
1279
|
+
op: 'update_step';
|
|
1280
|
+
n: number;
|
|
1281
|
+
patch: Partial<Step>;
|
|
1282
|
+
} | {
|
|
1283
|
+
op: 'add_assertions';
|
|
1284
|
+
n: number;
|
|
1285
|
+
assertions: ApiAssertionInput[];
|
|
1286
|
+
} | {
|
|
1287
|
+
op: 'remove_step';
|
|
1288
|
+
n: number;
|
|
1289
|
+
} | {
|
|
1290
|
+
op: 'remove_steps';
|
|
1291
|
+
numbers: number[];
|
|
1292
|
+
} | {
|
|
1293
|
+
op: 'move_step';
|
|
1294
|
+
n: number;
|
|
1295
|
+
to: number;
|
|
1296
|
+
} | {
|
|
1297
|
+
op: 'duplicate_step';
|
|
1298
|
+
n: number;
|
|
1299
|
+
through?: number | undefined;
|
|
1300
|
+
at?: number | undefined;
|
|
1301
|
+
seq?: number | undefined;
|
|
1302
|
+
} | {
|
|
1303
|
+
op: 'update_steps';
|
|
1304
|
+
where: import('../drafts/bulk.js').StepWhere;
|
|
1305
|
+
patch: Partial<Step>;
|
|
1306
|
+
} | {
|
|
1307
|
+
op: 'wrap_in_loop';
|
|
1308
|
+
from: number;
|
|
1309
|
+
to: number;
|
|
1310
|
+
condition?: Condition | undefined;
|
|
1311
|
+
maxIterations?: number | undefined;
|
|
1312
|
+
} | {
|
|
1313
|
+
op: 'wrap_in_if';
|
|
1314
|
+
from: number;
|
|
1315
|
+
to: number;
|
|
1316
|
+
condition?: Condition | undefined;
|
|
1317
|
+
} | {
|
|
1318
|
+
op: 'insert_nested';
|
|
1319
|
+
at?: number | undefined;
|
|
1320
|
+
tcId: string;
|
|
1321
|
+
name?: string | undefined;
|
|
1322
|
+
};
|
|
1323
|
+
export type ValidationIssue = {
|
|
1324
|
+
step?: number;
|
|
1325
|
+
field?: string;
|
|
1326
|
+
msg: string;
|
|
1327
|
+
};
|
|
1328
|
+
//# sourceMappingURL=types.d.ts.map
|