@levr-one/cli 0.7.7 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +102 -12
- package/dist/{importHandler-B2zyKkUX.js → importHandler-zfgrGCyh.js} +184 -6
- package/dist/{listHandler-BaXnaQkv.js → listHandler-B5KqRcYG.js} +1 -1
- package/dist/loginHandler-BE9JX12M.js +388 -0
- package/dist/{pushHandler-DD18UAh3.js → pushHandler-BukCooiv.js} +2 -2
- package/dist/{resolve-workspace-anULXxRH.js → resolve-workspace-NupdkCvd.js} +1 -1
- package/dist/{sdk-client-BLUjDoCb.js → sdk-client-CATjlmyX.js} +44 -23
- package/dist/{selectHandler-CH0fcc2P.js → selectHandler-CXwxIKL9.js} +1 -1
- package/dist/{statusHandler-DBC29FE4.js → statusHandler-CyhoTEEI.js} +1 -1
- package/package.json +2 -1
- package/dist/loginHandler-swasPGVn.js +0 -388
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getApiUrl, getAutomationSourceIdOverride, getSourceOverride, getTeamId } from "./env-CHeKHu5S.js";
|
|
2
|
-
import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-
|
|
2
|
+
import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-CATjlmyX.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-NupdkCvd.js";
|
|
5
5
|
import "./token-refresh-Cu5RpkLJ.js";
|
|
6
6
|
import { resolveToken } from "./resolve-token-DbQsmn03.js";
|
|
7
7
|
import { readFileSync, statSync } from "node:fs";
|
|
@@ -100,19 +100,6 @@ const zResponseLabelDto = z.object({
|
|
|
100
100
|
archived_at: z.unknown().describe(""),
|
|
101
101
|
archived_by: z.string().nullable().describe("")
|
|
102
102
|
});
|
|
103
|
-
const zProfileResponseDto = z.object({
|
|
104
|
-
id: z.string(),
|
|
105
|
-
profileName: z.string(),
|
|
106
|
-
providerType: z.number(),
|
|
107
|
-
providerName: z.string(),
|
|
108
|
-
modelName: z.string(),
|
|
109
|
-
temperature: z.number().optional(),
|
|
110
|
-
baseUrl: z.string().optional(),
|
|
111
|
-
isSystem: z.boolean(),
|
|
112
|
-
llmProviderId: z.string(),
|
|
113
|
-
createdAt: z.unknown(),
|
|
114
|
-
updatedAt: z.unknown()
|
|
115
|
-
});
|
|
116
103
|
const zUpdateProfileDto = z.object({
|
|
117
104
|
profileName: z.string().optional(),
|
|
118
105
|
providerType: z.number().optional(),
|
|
@@ -2616,6 +2603,17 @@ const zAuthClientWorkspaceResponseDto = z.object({
|
|
|
2616
2603
|
user: zLoginUserDto.describe(""),
|
|
2617
2604
|
invitation_accepted: z.boolean().optional()
|
|
2618
2605
|
});
|
|
2606
|
+
const zUserProfileResponseDto = z.object({
|
|
2607
|
+
id: z.string(),
|
|
2608
|
+
user_account_id: z.string().optional(),
|
|
2609
|
+
email: z.string().optional(),
|
|
2610
|
+
name: z.string().optional(),
|
|
2611
|
+
avatar_url: z.string().optional(),
|
|
2612
|
+
color: z.string().optional(),
|
|
2613
|
+
verified: z.boolean().optional(),
|
|
2614
|
+
workspace_id: z.string().optional(),
|
|
2615
|
+
active_team_id: z.string().nullable().optional()
|
|
2616
|
+
});
|
|
2619
2617
|
const zSitesResponseDto = z.object({
|
|
2620
2618
|
sites: z.array(z.object({
|
|
2621
2619
|
workspace_id: z.string().describe(""),
|
|
@@ -13125,7 +13123,6 @@ const zFolderWithChildrenDto = z.object({
|
|
|
13125
13123
|
epoch: z.number(),
|
|
13126
13124
|
key: z.number(),
|
|
13127
13125
|
assignee_id: z.string().optional(),
|
|
13128
|
-
estimate: z.number().optional(),
|
|
13129
13126
|
test_type: z.enum([
|
|
13130
13127
|
"manual",
|
|
13131
13128
|
"text",
|
|
@@ -13206,7 +13203,6 @@ const zRootLevelResponseDto = z.object({
|
|
|
13206
13203
|
epoch: z.number(),
|
|
13207
13204
|
key: z.number(),
|
|
13208
13205
|
assignee_id: z.string().optional(),
|
|
13209
|
-
estimate: z.number().optional(),
|
|
13210
13206
|
test_type: z.enum([
|
|
13211
13207
|
"manual",
|
|
13212
13208
|
"text",
|
|
@@ -13306,7 +13302,6 @@ const zFolderChildrenResponseDto = z.object({
|
|
|
13306
13302
|
epoch: z.number(),
|
|
13307
13303
|
key: z.number(),
|
|
13308
13304
|
assignee_id: z.string().optional(),
|
|
13309
|
-
estimate: z.number().optional(),
|
|
13310
13305
|
test_type: z.enum([
|
|
13311
13306
|
"manual",
|
|
13312
13307
|
"text",
|
|
@@ -21207,6 +21202,19 @@ const zProfileListResponseDto = z.array(z.object({
|
|
|
21207
21202
|
createdAt: z.unknown(),
|
|
21208
21203
|
updatedAt: z.unknown()
|
|
21209
21204
|
}));
|
|
21205
|
+
const zProfileResponseDto = z.object({
|
|
21206
|
+
id: z.string(),
|
|
21207
|
+
profileName: z.string(),
|
|
21208
|
+
providerType: z.number(),
|
|
21209
|
+
providerName: z.string(),
|
|
21210
|
+
modelName: z.string(),
|
|
21211
|
+
temperature: z.number().optional(),
|
|
21212
|
+
baseUrl: z.string().optional(),
|
|
21213
|
+
isSystem: z.boolean(),
|
|
21214
|
+
llmProviderId: z.string(),
|
|
21215
|
+
createdAt: z.unknown(),
|
|
21216
|
+
updatedAt: z.unknown()
|
|
21217
|
+
});
|
|
21210
21218
|
const zUpdateProfileResponseDto = z.object({
|
|
21211
21219
|
profile: z.object({
|
|
21212
21220
|
id: z.string(),
|
|
@@ -27581,6 +27589,22 @@ const zSyncPullCursorV1Data = z.object({ url: z.literal("/v1/sync/pull-cursor")
|
|
|
27581
27589
|
const zSyncSnapshotV1Data = z.object({ url: z.literal("/v1/sync/snapshot") });
|
|
27582
27590
|
const zSyncMigrationsAppliedV1Data = z.object({ url: z.literal("/v1/sync/migrations-applied") });
|
|
27583
27591
|
|
|
27592
|
+
//#endregion
|
|
27593
|
+
//#region ../sdk/dist/gen/team/functions.js
|
|
27594
|
+
/**
|
|
27595
|
+
* Retrieve a paginated list of teams with optional filtering, sorting, and searching capabilities.
|
|
27596
|
+
*/
|
|
27597
|
+
const teamFindAllV1 = (options) => {
|
|
27598
|
+
return (options?.client ?? client).get({
|
|
27599
|
+
security: [{
|
|
27600
|
+
scheme: "bearer",
|
|
27601
|
+
type: "http"
|
|
27602
|
+
}],
|
|
27603
|
+
url: "/v1/team",
|
|
27604
|
+
...options
|
|
27605
|
+
});
|
|
27606
|
+
};
|
|
27607
|
+
|
|
27584
27608
|
//#endregion
|
|
27585
27609
|
//#region ../sdk/dist/gen/team/zod.js
|
|
27586
27610
|
const zCreateTeamDto = z.object({
|
|
@@ -27904,7 +27928,6 @@ const zTestResponseDto = z.object({
|
|
|
27904
27928
|
id: z.string().describe(""),
|
|
27905
27929
|
name: z.string().describe(""),
|
|
27906
27930
|
priority: z.number().optional(),
|
|
27907
|
-
estimate: z.number().nullable().optional().describe(""),
|
|
27908
27931
|
data: z.unknown().optional().describe(""),
|
|
27909
27932
|
assignee_id: z.string().nullable().optional().describe(""),
|
|
27910
27933
|
is_automated: z.boolean().optional().describe(""),
|
|
@@ -27977,7 +28000,6 @@ const zCreateTestDto = z.object({
|
|
|
27977
28000
|
id: z.string().optional().describe(""),
|
|
27978
28001
|
name: z.string().describe(""),
|
|
27979
28002
|
priority: z.number().optional().describe(""),
|
|
27980
|
-
estimate: z.number().nullable().optional().describe(""),
|
|
27981
28003
|
data: z.unknown().optional().describe(""),
|
|
27982
28004
|
assignee_id: z.string().nullable().optional().describe(""),
|
|
27983
28005
|
is_automated: z.boolean().optional().describe(""),
|
|
@@ -28013,7 +28035,6 @@ const zCreateTestDto = z.object({
|
|
|
28013
28035
|
});
|
|
28014
28036
|
const zUpdateTestDto = z.object({
|
|
28015
28037
|
name: z.string().optional(),
|
|
28016
|
-
estimate: z.number().optional(),
|
|
28017
28038
|
is_automated: z.boolean().optional(),
|
|
28018
28039
|
to_automate: z.boolean().optional(),
|
|
28019
28040
|
state_mask: z.number().optional(),
|
|
@@ -28122,7 +28143,6 @@ const zTestFindAllV1Data = z.object({
|
|
|
28122
28143
|
"filter.to_automate": z.array(z.string()).optional(),
|
|
28123
28144
|
"filter.state_mask": z.array(z.string()).optional(),
|
|
28124
28145
|
"filter.assignee_id": z.array(z.string()).optional(),
|
|
28125
|
-
"filter.estimate": z.array(z.string()).optional(),
|
|
28126
28146
|
"filter.created_at": z.array(z.string()).optional(),
|
|
28127
28147
|
"filter.created_by": z.array(z.string()).optional(),
|
|
28128
28148
|
"filter.updated_at": z.array(z.string()).optional(),
|
|
@@ -28145,8 +28165,6 @@ const zTestFindAllV1Data = z.object({
|
|
|
28145
28165
|
"updated_by:DESC",
|
|
28146
28166
|
"priority:ASC",
|
|
28147
28167
|
"priority:DESC",
|
|
28148
|
-
"estimate:ASC",
|
|
28149
|
-
"estimate:DESC",
|
|
28150
28168
|
"is_automated:ASC",
|
|
28151
28169
|
"is_automated:DESC",
|
|
28152
28170
|
"to_automate:ASC",
|
|
@@ -28372,6 +28390,7 @@ const zPreviewImportResponseDto = z.object({
|
|
|
28372
28390
|
"is_automated",
|
|
28373
28391
|
"assignee_email",
|
|
28374
28392
|
"labels",
|
|
28393
|
+
"teams",
|
|
28375
28394
|
"attachment_filenames",
|
|
28376
28395
|
"data_set_names",
|
|
28377
28396
|
"sequence",
|
|
@@ -28429,6 +28448,7 @@ const zPreviewImportResponseDto = z.object({
|
|
|
28429
28448
|
"is_automated",
|
|
28430
28449
|
"assignee_email",
|
|
28431
28450
|
"labels",
|
|
28451
|
+
"teams",
|
|
28432
28452
|
"attachment_filenames",
|
|
28433
28453
|
"data_set_names",
|
|
28434
28454
|
"sequence",
|
|
@@ -28487,6 +28507,7 @@ const zCommitImportDto = z.object({
|
|
|
28487
28507
|
"is_automated",
|
|
28488
28508
|
"assignee_email",
|
|
28489
28509
|
"labels",
|
|
28510
|
+
"teams",
|
|
28490
28511
|
"attachment_filenames",
|
|
28491
28512
|
"data_set_names",
|
|
28492
28513
|
"sequence",
|
|
@@ -31482,4 +31503,4 @@ function tryReadMessage(err) {
|
|
|
31482
31503
|
}
|
|
31483
31504
|
|
|
31484
31505
|
//#endregion
|
|
31485
|
-
export { authGetProfileV1, authGetSitesV1, client, configureClient, testCaseImportCommitV1, testCaseImportPreviewV1, uploadAutomationIngest, uploadImport };
|
|
31506
|
+
export { authGetProfileV1, authGetSitesV1, client, configureClient, teamFindAllV1, testCaseImportCommitV1, testCaseImportPreviewV1, uploadAutomationIngest, uploadImport };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./env-CHeKHu5S.js";
|
|
2
|
-
import { authGetSitesV1, configureClient } from "./sdk-client-
|
|
2
|
+
import { authGetSitesV1, configureClient } from "./sdk-client-CATjlmyX.js";
|
|
3
3
|
import { saveWorkspace } from "./workspace-store-DDOxnut1.js";
|
|
4
4
|
import "./token-refresh-Cu5RpkLJ.js";
|
|
5
5
|
import { resolveToken } from "./resolve-token-DbQsmn03.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getApiUrl, getPatToken, readCredentials } from "./env-CHeKHu5S.js";
|
|
2
|
-
import { authGetProfileV1, configureClient } from "./sdk-client-
|
|
2
|
+
import { authGetProfileV1, configureClient } from "./sdk-client-CATjlmyX.js";
|
|
3
3
|
import { isTokenExpired } from "./token-refresh-Cu5RpkLJ.js";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levr-one/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "The command-line interface for Levr",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@clack/prompts": "^1.7.0",
|
|
28
28
|
"@stricli/core": "^1.2.0",
|
|
29
29
|
"chalk": "^5.6.2",
|
|
30
|
+
"dotenv": "^17.4.2",
|
|
30
31
|
"jsonc-parser": "^3.3.1",
|
|
31
32
|
"open": "^10.1.0",
|
|
32
33
|
"ora": "^9.0.0",
|