@levr-one/cli 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +178 -59
- package/dist/cli.js +121 -8
- package/dist/importHandler-ChywPYeL.js +285 -0
- package/dist/{listHandler-EsB3AeOB.js → listHandler-fK9Mapr3.js} +2 -2
- package/dist/{loginHandler-BfIUQJrC.js → loginHandler-D9k-tQLX.js} +2 -2
- package/dist/{pushHandler-DBBa6hKz.js → pushHandler-COg5WbGS.js} +3 -3
- package/dist/{resolve-workspace-Dj7jgtE3.js → resolve-workspace-CO8d3IBz.js} +1 -1
- package/dist/{sdk-client-BeE6mXns.js → sdk-client-DyRTezC5.js} +344 -25
- package/dist/{selectHandler-XOUHdyea.js → selectHandler-BzQRF8E7.js} +2 -2
- package/dist/{statusHandler-BaQB40t7.js → statusHandler-DuVZJMtw.js} +1 -1
- package/package.json +1 -1
- /package/dist/{addHandler-boWTd9yY.js → addHandler-DFtvzTci.js} +0 -0
- /package/dist/{currentHandler-Bm7GFMkj.js → currentHandler-BD-h0j-S.js} +0 -0
- /package/dist/{resolve-token-BRPrqdG-.js → resolve-token-Dq8cAuiu.js} +0 -0
|
@@ -11504,7 +11504,6 @@ const zExplorationFindAllV1Data = z.object({
|
|
|
11504
11504
|
"filter.name": z.array(z.string()).optional(),
|
|
11505
11505
|
"filter.key": z.array(z.string()).optional(),
|
|
11506
11506
|
"filter.is_complete": z.array(z.string()).optional(),
|
|
11507
|
-
"filter.milestone_id": z.array(z.string()).optional(),
|
|
11508
11507
|
"filter.status_id": z.array(z.string()).optional(),
|
|
11509
11508
|
"filter.project_id": z.array(z.string()).optional(),
|
|
11510
11509
|
"filter.team_id": z.array(z.string()).optional(),
|
|
@@ -12757,7 +12756,7 @@ const zFolderWithChildrenDto = z.object({
|
|
|
12757
12756
|
epoch: z.number(),
|
|
12758
12757
|
virtual: z.unknown().optional(),
|
|
12759
12758
|
is_root: z.boolean().optional(),
|
|
12760
|
-
|
|
12759
|
+
assignee_id: z.string().optional(),
|
|
12761
12760
|
folder_path: z.string().optional(),
|
|
12762
12761
|
children: z.array(z.union([
|
|
12763
12762
|
z.object({
|
|
@@ -12774,7 +12773,7 @@ const zFolderWithChildrenDto = z.object({
|
|
|
12774
12773
|
epoch: z.number(),
|
|
12775
12774
|
virtual: z.unknown().optional(),
|
|
12776
12775
|
is_root: z.boolean().optional(),
|
|
12777
|
-
|
|
12776
|
+
assignee_id: z.string().optional(),
|
|
12778
12777
|
folder_path: z.string().optional()
|
|
12779
12778
|
}),
|
|
12780
12779
|
z.object({
|
|
@@ -12793,7 +12792,7 @@ const zFolderWithChildrenDto = z.object({
|
|
|
12793
12792
|
updated_by: z.string(),
|
|
12794
12793
|
epoch: z.number(),
|
|
12795
12794
|
key: z.number(),
|
|
12796
|
-
|
|
12795
|
+
assignee_id: z.string().optional(),
|
|
12797
12796
|
estimate: z.number().optional(),
|
|
12798
12797
|
test_type: z.enum([
|
|
12799
12798
|
"manual",
|
|
@@ -12853,7 +12852,7 @@ const zFolderNodeDto = z.object({
|
|
|
12853
12852
|
epoch: z.number(),
|
|
12854
12853
|
virtual: z.unknown(),
|
|
12855
12854
|
is_root: z.boolean().nullable(),
|
|
12856
|
-
|
|
12855
|
+
assignee_id: z.string().nullable(),
|
|
12857
12856
|
folder_path: z.string().optional()
|
|
12858
12857
|
});
|
|
12859
12858
|
const zFolderChildrenResponseDto = z.object({
|
|
@@ -12872,7 +12871,7 @@ const zFolderChildrenResponseDto = z.object({
|
|
|
12872
12871
|
epoch: z.number(),
|
|
12873
12872
|
virtual: z.unknown(),
|
|
12874
12873
|
is_root: z.boolean().nullable(),
|
|
12875
|
-
|
|
12874
|
+
assignee_id: z.string().nullable(),
|
|
12876
12875
|
folder_path: z.string().optional()
|
|
12877
12876
|
}),
|
|
12878
12877
|
z.object({
|
|
@@ -12891,7 +12890,7 @@ const zFolderChildrenResponseDto = z.object({
|
|
|
12891
12890
|
updated_by: z.string(),
|
|
12892
12891
|
epoch: z.number(),
|
|
12893
12892
|
key: z.number(),
|
|
12894
|
-
|
|
12893
|
+
assignee_id: z.string().optional(),
|
|
12895
12894
|
estimate: z.number().optional(),
|
|
12896
12895
|
test_type: z.enum([
|
|
12897
12896
|
"manual",
|
|
@@ -12959,7 +12958,7 @@ const zBulkFolderOperationDto = z.object({
|
|
|
12959
12958
|
name: z.string(),
|
|
12960
12959
|
description: z.string().optional(),
|
|
12961
12960
|
virtual: z.unknown().optional(),
|
|
12962
|
-
|
|
12961
|
+
assignee_id: z.string().optional(),
|
|
12963
12962
|
parent_id: z.string().optional(),
|
|
12964
12963
|
sequence: z.string().optional(),
|
|
12965
12964
|
labels: z.array(z.string()).optional(),
|
|
@@ -12969,7 +12968,7 @@ const zBulkFolderOperationDto = z.object({
|
|
|
12969
12968
|
name: z.string().optional(),
|
|
12970
12969
|
description: z.string().optional(),
|
|
12971
12970
|
virtual: z.unknown().optional(),
|
|
12972
|
-
|
|
12971
|
+
assignee_id: z.string().optional(),
|
|
12973
12972
|
parent_id: z.string().optional(),
|
|
12974
12973
|
sequence: z.string().optional(),
|
|
12975
12974
|
add_labels: z.array(z.string()).optional(),
|
|
@@ -12995,7 +12994,7 @@ const zBulkFolderResponseDto = z.object({
|
|
|
12995
12994
|
epoch: z.number(),
|
|
12996
12995
|
virtual: z.unknown(),
|
|
12997
12996
|
is_root: z.boolean().nullable(),
|
|
12998
|
-
|
|
12997
|
+
assignee_id: z.string().nullable(),
|
|
12999
12998
|
folder_path: z.string().optional()
|
|
13000
12999
|
}).optional(),
|
|
13001
13000
|
error: z.string().optional(),
|
|
@@ -13012,7 +13011,7 @@ const zCreateFolderDto = z.object({
|
|
|
13012
13011
|
name: z.string(),
|
|
13013
13012
|
description: z.string().optional(),
|
|
13014
13013
|
virtual: z.unknown().optional(),
|
|
13015
|
-
|
|
13014
|
+
assignee_id: z.string().optional(),
|
|
13016
13015
|
parent_id: z.string().optional(),
|
|
13017
13016
|
sequence: z.string().optional(),
|
|
13018
13017
|
labels: z.array(z.string()).optional(),
|
|
@@ -13023,7 +13022,7 @@ const zUpdateFolderDto = z.object({
|
|
|
13023
13022
|
name: z.string().optional(),
|
|
13024
13023
|
description: z.string().optional(),
|
|
13025
13024
|
virtual: z.unknown().optional(),
|
|
13026
|
-
|
|
13025
|
+
assignee_id: z.string().optional(),
|
|
13027
13026
|
parent_id: z.string().optional(),
|
|
13028
13027
|
sequence: z.string().optional(),
|
|
13029
13028
|
add_labels: z.array(z.string()).optional(),
|
|
@@ -13042,7 +13041,7 @@ const zFolderFindAllV1Data = z.object({
|
|
|
13042
13041
|
"filter.updated_at": z.array(z.string()).optional(),
|
|
13043
13042
|
"filter.updated_by": z.array(z.string()).optional(),
|
|
13044
13043
|
"filter.is_root": z.array(z.string()).optional(),
|
|
13045
|
-
"filter.
|
|
13044
|
+
"filter.assignee_id": z.array(z.string()).optional(),
|
|
13046
13045
|
"filter.folder_path": z.array(z.string()).optional(),
|
|
13047
13046
|
"sortBy": z.array(z.enum([
|
|
13048
13047
|
"id:ASC",
|
|
@@ -13918,6 +13917,7 @@ const zGitHubAppClientCreateTeamAndMapV1Data = z.object({
|
|
|
13918
13917
|
|
|
13919
13918
|
//#endregion
|
|
13920
13919
|
//#region ../sdk/dist/gen/git-hub-sync-bridge/zod.js
|
|
13920
|
+
const zGitHubSyncBridgeOutboundAckV1Data = z.object({ url: z.literal("/v1/internal/github/outbound-ack") });
|
|
13921
13921
|
const zGitHubSyncBridgeTransitionIssueV1Data = z.object({ url: z.literal("/v1/internal/github/issue/transition") });
|
|
13922
13922
|
const zGitHubSyncBridgeSyncIssueV1Data = z.object({ url: z.literal("/v1/internal/github/issue/sync") });
|
|
13923
13923
|
const zGitHubSyncBridgeSyncIssueCommentV1Data = z.object({ url: z.literal("/v1/internal/github/issue-comment/sync") });
|
|
@@ -14071,6 +14071,11 @@ const zResponseGithubIssueLinkDto = z.object({
|
|
|
14071
14071
|
sync_direction: z.string().optional().describe(""),
|
|
14072
14072
|
origin: z.string().optional().describe(""),
|
|
14073
14073
|
role: z.string().optional().describe(""),
|
|
14074
|
+
last_synced_fingerprint: z.string().nullable().optional().describe(""),
|
|
14075
|
+
last_synced_origin: z.string().nullable().optional().describe(""),
|
|
14076
|
+
last_synced_snapshot: z.unknown().optional().describe(""),
|
|
14077
|
+
sync_status: z.string().optional().describe(""),
|
|
14078
|
+
conflict_id: z.string().nullable().optional().describe(""),
|
|
14074
14079
|
tq_issue_id: z.string(),
|
|
14075
14080
|
github_repository_id: z.string(),
|
|
14076
14081
|
team_id: z.string(),
|
|
@@ -14140,6 +14145,7 @@ const zGithubIssueLinkFindAllV1Data = z.object({
|
|
|
14140
14145
|
"filter.sync_direction": z.array(z.string()).optional(),
|
|
14141
14146
|
"filter.origin": z.array(z.string()).optional(),
|
|
14142
14147
|
"filter.role": z.array(z.string()).optional(),
|
|
14148
|
+
"filter.sync_status": z.array(z.string()).optional(),
|
|
14143
14149
|
"filter.tq_issue_id": z.array(z.string()).optional(),
|
|
14144
14150
|
"filter.github_repository_id": z.array(z.string()).optional(),
|
|
14145
14151
|
"filter.team_id": z.array(z.string()).optional(),
|
|
@@ -14159,6 +14165,8 @@ const zGithubIssueLinkFindAllV1Data = z.object({
|
|
|
14159
14165
|
"origin:DESC",
|
|
14160
14166
|
"role:ASC",
|
|
14161
14167
|
"role:DESC",
|
|
14168
|
+
"sync_status:ASC",
|
|
14169
|
+
"sync_status:DESC",
|
|
14162
14170
|
"created_at:ASC",
|
|
14163
14171
|
"created_at:DESC",
|
|
14164
14172
|
"updated_at:ASC",
|
|
@@ -17174,6 +17182,7 @@ const zIssueViewRestoreV1Data = z.object({
|
|
|
17174
17182
|
|
|
17175
17183
|
//#endregion
|
|
17176
17184
|
//#region ../sdk/dist/gen/jira/zod.js
|
|
17185
|
+
const zJiraStatusV1Data = z.object({ url: z.literal("/v1/jira/status") });
|
|
17177
17186
|
const zJiraLinkV1Data = z.object({ url: z.literal("/v1/jira/link") });
|
|
17178
17187
|
const zJiraInstallationsV1Data = z.object({
|
|
17179
17188
|
query: z.object({ "panelNonce": z.string().optional() }).optional(),
|
|
@@ -23844,6 +23853,7 @@ const zRunNodeDto = z.object({
|
|
|
23844
23853
|
test_scope_id: z.string().nullable(),
|
|
23845
23854
|
cycle_id: z.string().nullable(),
|
|
23846
23855
|
parent_run_id: z.string().nullable(),
|
|
23856
|
+
original_parent_run_id: z.string().nullable(),
|
|
23847
23857
|
name: z.string(),
|
|
23848
23858
|
key: z.number().optional(),
|
|
23849
23859
|
run_type: z.enum([
|
|
@@ -23953,6 +23963,7 @@ const zRunWithContentDto = z.object({
|
|
|
23953
23963
|
test_scope_id: z.string().nullable(),
|
|
23954
23964
|
cycle_id: z.string().nullable(),
|
|
23955
23965
|
parent_run_id: z.string().nullable(),
|
|
23966
|
+
original_parent_run_id: z.string().nullable(),
|
|
23956
23967
|
name: z.string(),
|
|
23957
23968
|
key: z.number().optional(),
|
|
23958
23969
|
run_type: z.enum([
|
|
@@ -27227,7 +27238,6 @@ const zIngestRequestDto = z.object({
|
|
|
27227
27238
|
force_upsert: z.boolean().optional()
|
|
27228
27239
|
});
|
|
27229
27240
|
const zSyncGetLastSyncIdV1Data = z.object({ url: z.literal("/v1/sync/last-sync-id") });
|
|
27230
|
-
const zSyncResetSyncV1Data = z.object({ url: z.literal("/v1/sync/reset") });
|
|
27231
27241
|
const zSyncBootstrapV1Data = z.object({
|
|
27232
27242
|
body: zBootstrapRequestDto,
|
|
27233
27243
|
url: z.literal("/v1/sync/bootstrap")
|
|
@@ -27604,7 +27614,7 @@ const zTestResponseDto = z.object({
|
|
|
27604
27614
|
priority: z.number().optional(),
|
|
27605
27615
|
estimate: z.number().nullable().optional().describe(""),
|
|
27606
27616
|
data: z.unknown().optional().describe(""),
|
|
27607
|
-
|
|
27617
|
+
assignee_id: z.string().nullable().optional().describe(""),
|
|
27608
27618
|
is_automated: z.boolean().optional().describe(""),
|
|
27609
27619
|
key: z.number().optional().describe(""),
|
|
27610
27620
|
identifier: z.string().optional().describe(""),
|
|
@@ -27673,7 +27683,7 @@ const zCreateTestDto = z.object({
|
|
|
27673
27683
|
priority: z.number().optional().describe(""),
|
|
27674
27684
|
estimate: z.number().nullable().optional().describe(""),
|
|
27675
27685
|
data: z.unknown().optional().describe(""),
|
|
27676
|
-
|
|
27686
|
+
assignee_id: z.string().nullable().optional().describe(""),
|
|
27677
27687
|
is_automated: z.boolean().optional().describe(""),
|
|
27678
27688
|
key: z.number().optional().describe(""),
|
|
27679
27689
|
identifier: z.string().optional().describe(""),
|
|
@@ -27710,7 +27720,7 @@ const zUpdateTestDto = z.object({
|
|
|
27710
27720
|
is_automated: z.boolean().optional(),
|
|
27711
27721
|
to_automate: z.boolean().optional(),
|
|
27712
27722
|
state_mask: z.number().optional(),
|
|
27713
|
-
|
|
27723
|
+
assignee_id: z.string().optional(),
|
|
27714
27724
|
data: z.object({
|
|
27715
27725
|
description: z.string().optional(),
|
|
27716
27726
|
shared_precondition_id: z.string().nullable().optional(),
|
|
@@ -27770,7 +27780,6 @@ const zUpdateTestDto = z.object({
|
|
|
27770
27780
|
add_labels: z.array(z.string()).optional(),
|
|
27771
27781
|
remove_labels: z.array(z.string()).optional()
|
|
27772
27782
|
});
|
|
27773
|
-
const zExportTestsDto = z.object({ ids: z.array(z.string()).describe("") });
|
|
27774
27783
|
const zTestBulkOperationDto = z.object({
|
|
27775
27784
|
op: z.enum([
|
|
27776
27785
|
"create",
|
|
@@ -27801,6 +27810,7 @@ const zBulkTestResponseDto = z.object({
|
|
|
27801
27810
|
savepoints_used: z.number().describe("")
|
|
27802
27811
|
}).describe("")
|
|
27803
27812
|
});
|
|
27813
|
+
const zExportTestsDto = z.object({ ids: z.array(z.string()).describe("") });
|
|
27804
27814
|
const zTestFindAllV1Data = z.object({
|
|
27805
27815
|
query: z.object({
|
|
27806
27816
|
"page": z.number().optional(),
|
|
@@ -27810,10 +27820,11 @@ const zTestFindAllV1Data = z.object({
|
|
|
27810
27820
|
"filter.name": z.array(z.string()).optional(),
|
|
27811
27821
|
"filter.priority": z.array(z.string()).optional(),
|
|
27812
27822
|
"filter.test_type": z.array(z.string()).optional(),
|
|
27823
|
+
"filter.case_type_id": z.array(z.string()).optional(),
|
|
27813
27824
|
"filter.is_automated": z.array(z.string()).optional(),
|
|
27814
27825
|
"filter.to_automate": z.array(z.string()).optional(),
|
|
27815
27826
|
"filter.state_mask": z.array(z.string()).optional(),
|
|
27816
|
-
"filter.
|
|
27827
|
+
"filter.assignee_id": z.array(z.string()).optional(),
|
|
27817
27828
|
"filter.estimate": z.array(z.string()).optional(),
|
|
27818
27829
|
"filter.created_at": z.array(z.string()).optional(),
|
|
27819
27830
|
"filter.created_by": z.array(z.string()).optional(),
|
|
@@ -27870,14 +27881,14 @@ const zTestRemoveV1Data = z.object({
|
|
|
27870
27881
|
path: z.object({ "testId": z.string() }),
|
|
27871
27882
|
url: z.literal("/v1/test/{testId}")
|
|
27872
27883
|
});
|
|
27873
|
-
const zTestExportTestsV1Data = z.object({
|
|
27874
|
-
body: zExportTestsDto,
|
|
27875
|
-
url: z.literal("/v1/test/export")
|
|
27876
|
-
});
|
|
27877
27884
|
const zTestBulkOperationV1Data = z.object({
|
|
27878
27885
|
body: zBulkTestRequestDto,
|
|
27879
27886
|
url: z.literal("/v1/test/bulk")
|
|
27880
27887
|
});
|
|
27888
|
+
const zTestExportTestsV1Data = z.object({
|
|
27889
|
+
body: zExportTestsDto,
|
|
27890
|
+
url: z.literal("/v1/test/export")
|
|
27891
|
+
});
|
|
27881
27892
|
|
|
27882
27893
|
//#endregion
|
|
27883
27894
|
//#region ../sdk/dist/gen/test-attachment/zod.js
|
|
@@ -27986,6 +27997,311 @@ const zTestAttachmentRemoveV1Data = z.object({
|
|
|
27986
27997
|
url: z.literal("/v1/test/{testId}/attachment/{attachmentId}")
|
|
27987
27998
|
});
|
|
27988
27999
|
|
|
28000
|
+
//#endregion
|
|
28001
|
+
//#region ../sdk/dist/gen/test-case-import/functions.js
|
|
28002
|
+
/**
|
|
28003
|
+
* Uploads (or references) a CSV/Excel/JSON file or a public Google Sheets URL, proposes a column mapping to the test-case schema with per-column confidence, and stages the source for a later commit. Writes NO tests/folders — the returned token is presented to POST /v1/test-case-import/commit after the user reviews and confirms the mapping. Sample rows are capped at 20; row_count reports the full source total. Staged previews expire after 1 hour.
|
|
28004
|
+
*/
|
|
28005
|
+
const testCaseImportPreviewV1 = (options) => {
|
|
28006
|
+
return (options?.client ?? client).post({
|
|
28007
|
+
security: [{
|
|
28008
|
+
scheme: "bearer",
|
|
28009
|
+
type: "http"
|
|
28010
|
+
}],
|
|
28011
|
+
url: "/v1/test-case-import/preview",
|
|
28012
|
+
bodySerializer: (body) => {
|
|
28013
|
+
const fd = new FormData();
|
|
28014
|
+
if (body && typeof body === "object") for (const [k, v] of Object.entries(body)) {
|
|
28015
|
+
if (v == null) continue;
|
|
28016
|
+
fd.append(k, v instanceof Blob ? v : String(v));
|
|
28017
|
+
}
|
|
28018
|
+
return fd;
|
|
28019
|
+
},
|
|
28020
|
+
...options
|
|
28021
|
+
});
|
|
28022
|
+
};
|
|
28023
|
+
/**
|
|
28024
|
+
* Re-parses the staged source through the user-confirmed column mapping and writes folders (auto-created as needed), tests, steps, and preconditions in bulk chunks. Malformed rows are reported as warnings/errors — the batch never aborts. Rejects: 403 cross-workspace token, 409 concurrent or repeated commit / expired preview, 422 when a required target field is unmapped.
|
|
28025
|
+
*/
|
|
28026
|
+
const testCaseImportCommitV1 = (options) => {
|
|
28027
|
+
return (options?.client ?? client).post({
|
|
28028
|
+
security: [{
|
|
28029
|
+
scheme: "bearer",
|
|
28030
|
+
type: "http"
|
|
28031
|
+
}],
|
|
28032
|
+
url: "/v1/test-case-import/commit",
|
|
28033
|
+
...options
|
|
28034
|
+
});
|
|
28035
|
+
};
|
|
28036
|
+
|
|
28037
|
+
//#endregion
|
|
28038
|
+
//#region ../sdk/dist/gen/test-case-import/zod.js
|
|
28039
|
+
const zPreviewImportDto = z.object({
|
|
28040
|
+
team_id: z.string().describe(""),
|
|
28041
|
+
format: z.enum([
|
|
28042
|
+
"csv",
|
|
28043
|
+
"xlsx",
|
|
28044
|
+
"sheets",
|
|
28045
|
+
"json"
|
|
28046
|
+
]).optional().describe(""),
|
|
28047
|
+
file_id: z.string().optional().describe(""),
|
|
28048
|
+
sheets_url: z.string().optional().describe("")
|
|
28049
|
+
});
|
|
28050
|
+
const zPreviewImportResponseDto = z.object({
|
|
28051
|
+
token: z.string(),
|
|
28052
|
+
filename: z.string(),
|
|
28053
|
+
format: z.enum([
|
|
28054
|
+
"csv",
|
|
28055
|
+
"xlsx",
|
|
28056
|
+
"sheets",
|
|
28057
|
+
"json"
|
|
28058
|
+
]),
|
|
28059
|
+
proposed_mapping: z.array(z.object({
|
|
28060
|
+
originalName: z.string(),
|
|
28061
|
+
targetProperty: z.enum([
|
|
28062
|
+
"row_type",
|
|
28063
|
+
"test_id",
|
|
28064
|
+
"test_key",
|
|
28065
|
+
"folder_id",
|
|
28066
|
+
"folder_path",
|
|
28067
|
+
"folder_name",
|
|
28068
|
+
"test_name",
|
|
28069
|
+
"test_description",
|
|
28070
|
+
"test_type",
|
|
28071
|
+
"case_type_id",
|
|
28072
|
+
"case_type_name",
|
|
28073
|
+
"test_priority",
|
|
28074
|
+
"estimate",
|
|
28075
|
+
"is_automated",
|
|
28076
|
+
"assignee_email",
|
|
28077
|
+
"labels",
|
|
28078
|
+
"attachment_filenames",
|
|
28079
|
+
"data_set_names",
|
|
28080
|
+
"sequence",
|
|
28081
|
+
"item_id",
|
|
28082
|
+
"method",
|
|
28083
|
+
"expected_result",
|
|
28084
|
+
"keyword",
|
|
28085
|
+
"shared_step_id",
|
|
28086
|
+
"shared_precondition_id",
|
|
28087
|
+
"data_table",
|
|
28088
|
+
"steps",
|
|
28089
|
+
"preconditions"
|
|
28090
|
+
]).nullable(),
|
|
28091
|
+
matchType: z.enum([
|
|
28092
|
+
"exact",
|
|
28093
|
+
"prefix",
|
|
28094
|
+
"fuzzy",
|
|
28095
|
+
"llm",
|
|
28096
|
+
"unmapped",
|
|
28097
|
+
"manual",
|
|
28098
|
+
"preset"
|
|
28099
|
+
]),
|
|
28100
|
+
confidence: z.number(),
|
|
28101
|
+
fieldType: z.enum([
|
|
28102
|
+
"string",
|
|
28103
|
+
"number",
|
|
28104
|
+
"boolean",
|
|
28105
|
+
"unknown"
|
|
28106
|
+
]).optional(),
|
|
28107
|
+
labelPrefix: z.string().optional().describe(""),
|
|
28108
|
+
descriptionHeading: z.string().optional().describe("")
|
|
28109
|
+
})),
|
|
28110
|
+
missing_required: z.array(z.string()),
|
|
28111
|
+
sample_rows: z.array(z.record(z.string(), z.unknown())),
|
|
28112
|
+
row_count: z.number(),
|
|
28113
|
+
expires_at: z.unknown(),
|
|
28114
|
+
advisories: z.array(z.object({
|
|
28115
|
+
column: z.string(),
|
|
28116
|
+
target: z.enum([
|
|
28117
|
+
"row_type",
|
|
28118
|
+
"test_id",
|
|
28119
|
+
"test_key",
|
|
28120
|
+
"folder_id",
|
|
28121
|
+
"folder_path",
|
|
28122
|
+
"folder_name",
|
|
28123
|
+
"test_name",
|
|
28124
|
+
"test_description",
|
|
28125
|
+
"test_type",
|
|
28126
|
+
"case_type_id",
|
|
28127
|
+
"case_type_name",
|
|
28128
|
+
"test_priority",
|
|
28129
|
+
"estimate",
|
|
28130
|
+
"is_automated",
|
|
28131
|
+
"assignee_email",
|
|
28132
|
+
"labels",
|
|
28133
|
+
"attachment_filenames",
|
|
28134
|
+
"data_set_names",
|
|
28135
|
+
"sequence",
|
|
28136
|
+
"item_id",
|
|
28137
|
+
"method",
|
|
28138
|
+
"expected_result",
|
|
28139
|
+
"keyword",
|
|
28140
|
+
"shared_step_id",
|
|
28141
|
+
"shared_precondition_id",
|
|
28142
|
+
"data_table",
|
|
28143
|
+
"steps",
|
|
28144
|
+
"preconditions"
|
|
28145
|
+
]),
|
|
28146
|
+
message: z.string(),
|
|
28147
|
+
count: z.number(),
|
|
28148
|
+
values: z.array(z.object({
|
|
28149
|
+
value: z.string(),
|
|
28150
|
+
count: z.number()
|
|
28151
|
+
}))
|
|
28152
|
+
})),
|
|
28153
|
+
detected_vendor: z.string().nullable(),
|
|
28154
|
+
assignee_resolution: z.object({
|
|
28155
|
+
column: z.string(),
|
|
28156
|
+
entries: z.array(z.object({
|
|
28157
|
+
sourceValue: z.string(),
|
|
28158
|
+
count: z.number(),
|
|
28159
|
+
kind: z.enum([
|
|
28160
|
+
"existing",
|
|
28161
|
+
"new_email",
|
|
28162
|
+
"unresolved"
|
|
28163
|
+
]),
|
|
28164
|
+
userId: z.string().optional(),
|
|
28165
|
+
userName: z.string().optional(),
|
|
28166
|
+
suggestedEmail: z.string().optional()
|
|
28167
|
+
}))
|
|
28168
|
+
}).nullable()
|
|
28169
|
+
});
|
|
28170
|
+
const zCommitImportDto = z.object({
|
|
28171
|
+
token: z.string().describe(""),
|
|
28172
|
+
confirmed_mapping: z.array(z.object({
|
|
28173
|
+
originalName: z.string(),
|
|
28174
|
+
targetProperty: z.enum([
|
|
28175
|
+
"row_type",
|
|
28176
|
+
"test_id",
|
|
28177
|
+
"test_key",
|
|
28178
|
+
"folder_id",
|
|
28179
|
+
"folder_path",
|
|
28180
|
+
"folder_name",
|
|
28181
|
+
"test_name",
|
|
28182
|
+
"test_description",
|
|
28183
|
+
"test_type",
|
|
28184
|
+
"case_type_id",
|
|
28185
|
+
"case_type_name",
|
|
28186
|
+
"test_priority",
|
|
28187
|
+
"estimate",
|
|
28188
|
+
"is_automated",
|
|
28189
|
+
"assignee_email",
|
|
28190
|
+
"labels",
|
|
28191
|
+
"attachment_filenames",
|
|
28192
|
+
"data_set_names",
|
|
28193
|
+
"sequence",
|
|
28194
|
+
"item_id",
|
|
28195
|
+
"method",
|
|
28196
|
+
"expected_result",
|
|
28197
|
+
"keyword",
|
|
28198
|
+
"shared_step_id",
|
|
28199
|
+
"shared_precondition_id",
|
|
28200
|
+
"data_table",
|
|
28201
|
+
"steps",
|
|
28202
|
+
"preconditions"
|
|
28203
|
+
]).nullable(),
|
|
28204
|
+
matchType: z.enum([
|
|
28205
|
+
"exact",
|
|
28206
|
+
"prefix",
|
|
28207
|
+
"fuzzy",
|
|
28208
|
+
"llm",
|
|
28209
|
+
"unmapped",
|
|
28210
|
+
"manual",
|
|
28211
|
+
"preset"
|
|
28212
|
+
]),
|
|
28213
|
+
confidence: z.number(),
|
|
28214
|
+
fieldType: z.enum([
|
|
28215
|
+
"string",
|
|
28216
|
+
"number",
|
|
28217
|
+
"boolean",
|
|
28218
|
+
"unknown"
|
|
28219
|
+
]).optional(),
|
|
28220
|
+
labelPrefix: z.string().optional().describe(""),
|
|
28221
|
+
descriptionHeading: z.string().optional().describe("")
|
|
28222
|
+
})).optional().describe(""),
|
|
28223
|
+
assignee_plan: z.object({
|
|
28224
|
+
role: z.enum([
|
|
28225
|
+
"owner",
|
|
28226
|
+
"admin",
|
|
28227
|
+
"member",
|
|
28228
|
+
"guest"
|
|
28229
|
+
]).optional(),
|
|
28230
|
+
teamIds: z.array(z.string()).optional(),
|
|
28231
|
+
entries: z.array(z.object({
|
|
28232
|
+
sourceValue: z.string(),
|
|
28233
|
+
action: z.enum([
|
|
28234
|
+
"assign",
|
|
28235
|
+
"create",
|
|
28236
|
+
"skip"
|
|
28237
|
+
]),
|
|
28238
|
+
userId: z.string().optional(),
|
|
28239
|
+
email: z.string().optional()
|
|
28240
|
+
}))
|
|
28241
|
+
}).optional().describe(""),
|
|
28242
|
+
team_ids: z.array(z.string()).optional()
|
|
28243
|
+
});
|
|
28244
|
+
const zTestCaseImportResultDto = z.object({
|
|
28245
|
+
status: z.enum([
|
|
28246
|
+
"completed",
|
|
28247
|
+
"completed_with_warnings",
|
|
28248
|
+
"failed"
|
|
28249
|
+
]),
|
|
28250
|
+
created_tests: z.array(z.object({
|
|
28251
|
+
id: z.string(),
|
|
28252
|
+
name: z.string()
|
|
28253
|
+
})),
|
|
28254
|
+
stats: z.object({
|
|
28255
|
+
rows_processed: z.number(),
|
|
28256
|
+
tests_created: z.number(),
|
|
28257
|
+
folders_created: z.number(),
|
|
28258
|
+
steps_created: z.number(),
|
|
28259
|
+
preconditions_created: z.number(),
|
|
28260
|
+
rows_failed: z.number(),
|
|
28261
|
+
members_provisioned: z.number().optional()
|
|
28262
|
+
}),
|
|
28263
|
+
warnings: z.array(z.object({
|
|
28264
|
+
type: z.enum([
|
|
28265
|
+
"skipped",
|
|
28266
|
+
"invalid",
|
|
28267
|
+
"unresolved",
|
|
28268
|
+
"write_failed"
|
|
28269
|
+
]),
|
|
28270
|
+
message: z.string(),
|
|
28271
|
+
row_index: z.number().optional(),
|
|
28272
|
+
column: z.string().optional(),
|
|
28273
|
+
count: z.number().optional(),
|
|
28274
|
+
values: z.array(z.object({
|
|
28275
|
+
value: z.string(),
|
|
28276
|
+
count: z.number()
|
|
28277
|
+
})).optional()
|
|
28278
|
+
})),
|
|
28279
|
+
errors: z.array(z.object({
|
|
28280
|
+
type: z.enum([
|
|
28281
|
+
"skipped",
|
|
28282
|
+
"invalid",
|
|
28283
|
+
"unresolved",
|
|
28284
|
+
"write_failed"
|
|
28285
|
+
]),
|
|
28286
|
+
message: z.string(),
|
|
28287
|
+
row_index: z.number().optional(),
|
|
28288
|
+
column: z.string().optional(),
|
|
28289
|
+
count: z.number().optional(),
|
|
28290
|
+
values: z.array(z.object({
|
|
28291
|
+
value: z.string(),
|
|
28292
|
+
count: z.number()
|
|
28293
|
+
})).optional()
|
|
28294
|
+
}))
|
|
28295
|
+
});
|
|
28296
|
+
const zTestCaseImportPreviewV1Data = z.object({
|
|
28297
|
+
body: zPreviewImportDto,
|
|
28298
|
+
url: z.literal("/v1/test-case-import/preview")
|
|
28299
|
+
});
|
|
28300
|
+
const zTestCaseImportCommitV1Data = z.object({
|
|
28301
|
+
body: zCommitImportDto,
|
|
28302
|
+
url: z.literal("/v1/test-case-import/commit")
|
|
28303
|
+
});
|
|
28304
|
+
|
|
27989
28305
|
//#endregion
|
|
27990
28306
|
//#region ../sdk/dist/gen/test-comment/zod.js
|
|
27991
28307
|
const zTestCommentFindAllV1Data = z.object({
|
|
@@ -30298,7 +30614,10 @@ const zInviteMultiUserDto = z.object({
|
|
|
30298
30614
|
workspace_ids: z.array(z.string()).describe(""),
|
|
30299
30615
|
team_ids_by_workspace: z.record(z.string(), z.array(z.string())).optional().describe("")
|
|
30300
30616
|
});
|
|
30301
|
-
const zAcceptByTokenDto = z.object({
|
|
30617
|
+
const zAcceptByTokenDto = z.object({
|
|
30618
|
+
token: z.string().describe(""),
|
|
30619
|
+
password: z.string().optional().describe("")
|
|
30620
|
+
});
|
|
30302
30621
|
const zAcceptByTokenResponseDto = z.object({
|
|
30303
30622
|
access_token: z.string().describe(""),
|
|
30304
30623
|
user: z.object({
|
|
@@ -30732,4 +31051,4 @@ function tryReadMessage(err) {
|
|
|
30732
31051
|
}
|
|
30733
31052
|
|
|
30734
31053
|
//#endregion
|
|
30735
|
-
export { authGetProfileV1, authGetSitesV1, client, configureClient, uploadAutomationIngest, uploadImport };
|
|
31054
|
+
export { authGetProfileV1, authGetSitesV1, client, configureClient, testCaseImportCommitV1, testCaseImportPreviewV1, uploadAutomationIngest, uploadImport };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./env-NxtzJJPk.js";
|
|
2
|
-
import { authGetSitesV1, configureClient } from "./sdk-client-
|
|
2
|
+
import { authGetSitesV1, configureClient } from "./sdk-client-DyRTezC5.js";
|
|
3
3
|
import { saveWorkspace } from "./workspace-store-4hfvsEHS.js";
|
|
4
4
|
import "./token-refresh-Cz-FqDtC.js";
|
|
5
|
-
import { resolveToken } from "./resolve-token-
|
|
5
|
+
import { resolveToken } from "./resolve-token-Dq8cAuiu.js";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/workspace/selectHandler.ts
|
|
8
8
|
async function selectHandler(_flags, workspaceId) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getApiUrl, getPatToken, readCredentials } from "./env-NxtzJJPk.js";
|
|
2
|
-
import { authGetProfileV1, configureClient } from "./sdk-client-
|
|
2
|
+
import { authGetProfileV1, configureClient } from "./sdk-client-DyRTezC5.js";
|
|
3
3
|
import { isTokenExpired } from "./token-refresh-Cz-FqDtC.js";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|