@levr-one/cli 0.6.6 → 0.6.7

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 CHANGED
@@ -180,7 +180,7 @@ Examples:
180
180
  aliases: { d: "device-code" }
181
181
  },
182
182
  loader: async () => {
183
- const { loginHandler } = await import("./loginHandler-CSWf1qIz.js");
183
+ const { loginHandler } = await import("./loginHandler-CkUP5sOk.js");
184
184
  return loginHandler;
185
185
  }
186
186
  });
@@ -219,7 +219,7 @@ Examples:
219
219
  },
220
220
  parameters: {},
221
221
  loader: async () => {
222
- const { statusHandler } = await import("./statusHandler-qJAwarJj.js");
222
+ const { statusHandler } = await import("./statusHandler-D03y2BFG.js");
223
223
  return statusHandler;
224
224
  }
225
225
  });
@@ -331,7 +331,7 @@ Examples:
331
331
  }
332
332
  },
333
333
  loader: async () => {
334
- const { pushHandler } = await import("./pushHandler-BUm8W-10.js");
334
+ const { pushHandler } = await import("./pushHandler-qGFFvwES.js");
335
335
  return pushHandler;
336
336
  }
337
337
  });
@@ -443,7 +443,7 @@ Examples:
443
443
  }
444
444
  },
445
445
  loader: async () => {
446
- const { importHandler } = await import("./importHandler-ClNFk6YZ.js");
446
+ const { importHandler } = await import("./importHandler-C4YBIWPX.js");
447
447
  return importHandler;
448
448
  }
449
449
  });
@@ -464,7 +464,7 @@ Examples:
464
464
  },
465
465
  parameters: {},
466
466
  loader: async () => {
467
- const { listHandler } = await import("./listHandler-H0U8GXmX.js");
467
+ const { listHandler } = await import("./listHandler-XOpg2k7v.js");
468
468
  return listHandler;
469
469
  }
470
470
  });
@@ -497,7 +497,7 @@ Examples:
497
497
  flags: {}
498
498
  },
499
499
  loader: async () => {
500
- const { selectHandler } = await import("./selectHandler-B82VXtDN.js");
500
+ const { selectHandler } = await import("./selectHandler-DNyNNQ_L.js");
501
501
  return selectHandler;
502
502
  }
503
503
  });
@@ -521,7 +521,7 @@ Examples:
521
521
 
522
522
  //#endregion
523
523
  //#region package.json
524
- var version = "0.6.6";
524
+ var version = "0.6.7";
525
525
 
526
526
  //#endregion
527
527
  //#region src/app.ts
@@ -1,7 +1,7 @@
1
1
  import { getApiUrl } from "./env-CHeKHu5S.js";
2
- import { configureClient, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-BEKRw7tC.js";
2
+ import { configureClient, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-BBDpZjho.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-D95CN6FK.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-BE_PrDxy.js";
5
5
  import "./token-refresh-Cu5RpkLJ.js";
6
6
  import { resolveToken } from "./resolve-token-DbQsmn03.js";
7
7
  import chalk from "chalk";
@@ -1,5 +1,5 @@
1
1
  import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-BEKRw7tC.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-BBDpZjho.js";
3
3
  import { loadWorkspace } from "./workspace-store-DDOxnut1.js";
4
4
  import "./token-refresh-Cu5RpkLJ.js";
5
5
  import { resolveToken } from "./resolve-token-DbQsmn03.js";
@@ -1,7 +1,7 @@
1
1
  import { CLI_CLIENT_ID, getApiUrl, getAuthUrl, setSessionApiUrl, writeCredentials } from "./env-CHeKHu5S.js";
2
- import { configureClient } from "./sdk-client-BEKRw7tC.js";
2
+ import { configureClient } from "./sdk-client-BBDpZjho.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { autoSelectWorkspace } from "./resolve-workspace-D95CN6FK.js";
4
+ import { autoSelectWorkspace } from "./resolve-workspace-BE_PrDxy.js";
5
5
  import chalk from "chalk";
6
6
  import { createHash, randomBytes } from "node:crypto";
7
7
  import { createServer } from "node:http";
@@ -1,7 +1,7 @@
1
1
  import { getApiUrl, getAutomationSourceIdOverride, getSourceOverride, getTeamId } from "./env-CHeKHu5S.js";
2
- import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-BEKRw7tC.js";
2
+ import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-BBDpZjho.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-D95CN6FK.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-BE_PrDxy.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";
@@ -1,4 +1,4 @@
1
- import { authGetSitesV1 } from "./sdk-client-BEKRw7tC.js";
1
+ import { authGetSitesV1 } from "./sdk-client-BBDpZjho.js";
2
2
  import { clearWorkspace, loadWorkspace, saveWorkspace } from "./workspace-store-DDOxnut1.js";
3
3
 
4
4
  //#region src/workspace/resolve-workspace.ts
@@ -12995,7 +12995,6 @@ const zFolderWithChildrenDto = z.object({
12995
12995
  updated_by: z.string(),
12996
12996
  epoch: z.number(),
12997
12997
  virtual: z.unknown().optional(),
12998
- is_root: z.boolean().optional(),
12999
12998
  assignee_id: z.string().optional(),
13000
12999
  folder_path: z.string().optional(),
13001
13000
  children: z.array(z.union([
@@ -13012,7 +13011,6 @@ const zFolderWithChildrenDto = z.object({
13012
13011
  updated_by: z.string(),
13013
13012
  epoch: z.number(),
13014
13013
  virtual: z.unknown().optional(),
13015
- is_root: z.boolean().optional(),
13016
13014
  assignee_id: z.string().optional(),
13017
13015
  folder_path: z.string().optional()
13018
13016
  }),
@@ -13078,6 +13076,91 @@ const zFolderWithChildrenDto = z.object({
13078
13076
  })
13079
13077
  ]))
13080
13078
  });
13079
+ const zRootLevelResponseDto = z.object({
13080
+ type: z.enum(["root"]),
13081
+ entity_type: z.enum(["test", "run"]),
13082
+ folders: z.array(z.object({
13083
+ type: z.enum(["folder"]),
13084
+ id: z.string(),
13085
+ name: z.string(),
13086
+ description: z.string().optional(),
13087
+ sequence: z.string().optional(),
13088
+ labels: z.array(z.string()),
13089
+ created_at: z.unknown(),
13090
+ updated_at: z.unknown(),
13091
+ created_by: z.string(),
13092
+ updated_by: z.string(),
13093
+ epoch: z.number(),
13094
+ virtual: z.unknown().optional(),
13095
+ assignee_id: z.string().optional(),
13096
+ folder_path: z.string().optional()
13097
+ })),
13098
+ entities: z.array(z.union([z.object({
13099
+ type: z.enum(["test"]),
13100
+ id: z.string(),
13101
+ folder_id: z.string().nullable(),
13102
+ name: z.string(),
13103
+ data: z.record(z.string(), z.unknown()).optional(),
13104
+ sequence: z.string(),
13105
+ labels: z.array(z.string()),
13106
+ is_automated: z.boolean(),
13107
+ priority: z.number(),
13108
+ created_at: z.unknown(),
13109
+ updated_at: z.unknown(),
13110
+ created_by: z.string(),
13111
+ updated_by: z.string(),
13112
+ epoch: z.number(),
13113
+ key: z.number(),
13114
+ assignee_id: z.string().optional(),
13115
+ estimate: z.number().optional(),
13116
+ test_type: z.enum([
13117
+ "manual",
13118
+ "text",
13119
+ "prometheus",
13120
+ "gherkin",
13121
+ "generic_automation",
13122
+ "yaml"
13123
+ ]).nullable(),
13124
+ to_automate: z.boolean()
13125
+ }), z.object({
13126
+ type: z.enum(["run"]),
13127
+ id: z.string(),
13128
+ folder_id: z.string().nullable(),
13129
+ name: z.string(),
13130
+ sequence: z.string(),
13131
+ labels: z.array(z.string()),
13132
+ key: z.number(),
13133
+ run_type: z.string(),
13134
+ triggered_by: z.string(),
13135
+ status_type: z.enum([
13136
+ "Unstarted",
13137
+ "Pass",
13138
+ "Fail",
13139
+ "Cancelled"
13140
+ ]),
13141
+ total_results: z.number(),
13142
+ pass_count: z.number(),
13143
+ fail_count: z.number(),
13144
+ unstarted_count: z.number(),
13145
+ cancelled_count: z.number(),
13146
+ is_complete: z.boolean(),
13147
+ is_automated: z.boolean(),
13148
+ started_at: z.unknown(),
13149
+ ended_at: z.unknown(),
13150
+ total_duration_ms: z.number().nullable(),
13151
+ created_at: z.unknown(),
13152
+ updated_at: z.unknown(),
13153
+ created_by: z.string(),
13154
+ updated_by: z.string(),
13155
+ epoch: z.number()
13156
+ })])),
13157
+ meta: z.object({
13158
+ total_entities: z.number(),
13159
+ page: z.number(),
13160
+ limit: z.number(),
13161
+ total_pages: z.number()
13162
+ })
13163
+ });
13081
13164
  const zFolderNodeDto = z.object({
13082
13165
  type: z.enum(["folder"]),
13083
13166
  id: z.string(),
@@ -13091,7 +13174,6 @@ const zFolderNodeDto = z.object({
13091
13174
  updated_by: z.string(),
13092
13175
  epoch: z.number(),
13093
13176
  virtual: z.unknown(),
13094
- is_root: z.boolean().nullable(),
13095
13177
  assignee_id: z.string().nullable(),
13096
13178
  folder_path: z.string().optional()
13097
13179
  });
@@ -13110,7 +13192,6 @@ const zFolderChildrenResponseDto = z.object({
13110
13192
  updated_by: z.string(),
13111
13193
  epoch: z.number(),
13112
13194
  virtual: z.unknown(),
13113
- is_root: z.boolean().nullable(),
13114
13195
  assignee_id: z.string().nullable(),
13115
13196
  folder_path: z.string().optional()
13116
13197
  }),
@@ -13233,7 +13314,6 @@ const zBulkFolderResponseDto = z.object({
13233
13314
  updated_by: z.string(),
13234
13315
  epoch: z.number(),
13235
13316
  virtual: z.unknown(),
13236
- is_root: z.boolean().nullable(),
13237
13317
  assignee_id: z.string().nullable(),
13238
13318
  folder_path: z.string().optional()
13239
13319
  }).optional(),
@@ -13280,7 +13360,7 @@ const zFolderFindAllV1Data = z.object({
13280
13360
  "filter.created_by": z.array(z.string()).optional(),
13281
13361
  "filter.updated_at": z.array(z.string()).optional(),
13282
13362
  "filter.updated_by": z.array(z.string()).optional(),
13283
- "filter.is_root": z.array(z.string()).optional(),
13363
+ "filter.parent_id": z.array(z.string()).optional(),
13284
13364
  "filter.assignee_id": z.array(z.string()).optional(),
13285
13365
  "filter.folder_path": z.array(z.string()).optional(),
13286
13366
  "sortBy": z.array(z.enum([
@@ -13304,8 +13384,12 @@ const zFolderFindAllV1Data = z.object({
13304
13384
  }).optional(),
13305
13385
  url: z.literal("/v1/folder")
13306
13386
  });
13307
- const zFolderFindRootFolderV1Data = z.object({
13308
- query: z.object({ "entity_type": z.enum(["test", "run"]).optional() }).optional(),
13387
+ const zFolderGetRootLevelV1Data = z.object({
13388
+ query: z.object({
13389
+ "entity_type": z.enum(["test", "run"]).optional(),
13390
+ "page": z.string().optional(),
13391
+ "limit": z.string().optional()
13392
+ }).optional(),
13309
13393
  url: z.literal("/v1/folder/root")
13310
13394
  });
13311
13395
  const zFolderFindFolderByIdV1Data = z.object({
@@ -23952,7 +24036,7 @@ const zUpdateRunDto = z.object({
23952
24036
  is_complete: z.boolean().optional(),
23953
24037
  project_id: z.string().nullable(),
23954
24038
  cycle_id: z.string().nullable(),
23955
- folder_id: z.string().nullable(),
24039
+ folder_id: z.string().nullable().optional(),
23956
24040
  sequence: z.string().optional(),
23957
24041
  parent_run_id: z.unknown().optional()
23958
24042
  });
@@ -27763,7 +27847,7 @@ const zUpdateTestDto = z.object({
27763
27847
  }).optional(),
27764
27848
  priority: z.number().optional(),
27765
27849
  case_type_id: z.string().nullable().optional(),
27766
- folder_id: z.string().optional(),
27850
+ folder_id: z.string().nullable().optional(),
27767
27851
  shared_precondition: z.object({
27768
27852
  create: z.object({
27769
27853
  precondition: z.string().optional(),
@@ -1,5 +1,5 @@
1
1
  import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-BEKRw7tC.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-BBDpZjho.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-BEKRw7tC.js";
2
+ import { authGetProfileV1, configureClient } from "./sdk-client-BBDpZjho.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.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "The command-line interface for Levr",
5
5
  "type": "module",
6
6
  "license": "MIT",