@levr-one/cli 0.6.9 → 0.6.11
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 +7 -7
- package/dist/{importHandler-fkKFmJxK.js → importHandler-C8egfsZc.js} +2 -2
- package/dist/{listHandler-COahy7f2.js → listHandler-BtzZD16V.js} +1 -1
- package/dist/{loginHandler-DXgJwlCG.js → loginHandler-D56sEnhy.js} +2 -2
- package/dist/{pushHandler-BDvJCrRm.js → pushHandler-C0p7-lEN.js} +2 -2
- package/dist/{resolve-workspace-BXir_3CF.js → resolve-workspace-DzHM22K6.js} +1 -1
- package/dist/{sdk-client-D36jMSeM.js → sdk-client-PqFsqPIp.js} +123 -4
- package/dist/{selectHandler-DGU1gl3-.js → selectHandler-C5fOwJXj.js} +1 -1
- package/dist/{statusHandler-B3NDSm__.js → statusHandler-CRmMO6Xa.js} +1 -1
- package/package.json +1 -1
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-
|
|
183
|
+
const { loginHandler } = await import("./loginHandler-D56sEnhy.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-
|
|
222
|
+
const { statusHandler } = await import("./statusHandler-CRmMO6Xa.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-
|
|
334
|
+
const { pushHandler } = await import("./pushHandler-C0p7-lEN.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-
|
|
446
|
+
const { importHandler } = await import("./importHandler-C8egfsZc.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-
|
|
467
|
+
const { listHandler } = await import("./listHandler-BtzZD16V.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-
|
|
500
|
+
const { selectHandler } = await import("./selectHandler-C5fOwJXj.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.
|
|
524
|
+
var version = "0.6.11";
|
|
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-
|
|
2
|
+
import { configureClient, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-PqFsqPIp.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-DzHM22K6.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-
|
|
2
|
+
import { authGetSitesV1, configureClient } from "./sdk-client-PqFsqPIp.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-
|
|
2
|
+
import { configureClient } from "./sdk-client-PqFsqPIp.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { autoSelectWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { autoSelectWorkspace } from "./resolve-workspace-DzHM22K6.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-
|
|
2
|
+
import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-PqFsqPIp.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-DzHM22K6.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";
|
|
@@ -13285,7 +13285,8 @@ const zBulkFolderOperationDto = z.object({
|
|
|
13285
13285
|
sequence: z.string().optional(),
|
|
13286
13286
|
labels: z.array(z.string()).optional(),
|
|
13287
13287
|
origin: z.enum(["authored", "automation"]).optional(),
|
|
13288
|
-
entity_type: z.enum(["test", "run"]).optional()
|
|
13288
|
+
entity_type: z.enum(["test", "run"]).optional(),
|
|
13289
|
+
is_root: z.unknown()
|
|
13289
13290
|
}), z.object({
|
|
13290
13291
|
name: z.string().optional(),
|
|
13291
13292
|
description: z.string().optional(),
|
|
@@ -13294,7 +13295,8 @@ const zBulkFolderOperationDto = z.object({
|
|
|
13294
13295
|
parent_id: z.string().nullable().optional(),
|
|
13295
13296
|
sequence: z.string().optional(),
|
|
13296
13297
|
add_labels: z.array(z.string()).optional(),
|
|
13297
|
-
remove_labels: z.array(z.string()).optional()
|
|
13298
|
+
remove_labels: z.array(z.string()).optional(),
|
|
13299
|
+
is_root: z.unknown()
|
|
13298
13300
|
})]).optional().describe(""),
|
|
13299
13301
|
tx_id: z.string().describe("")
|
|
13300
13302
|
});
|
|
@@ -13337,7 +13339,8 @@ const zCreateFolderDto = z.object({
|
|
|
13337
13339
|
sequence: z.string().optional(),
|
|
13338
13340
|
labels: z.array(z.string()).optional(),
|
|
13339
13341
|
origin: z.enum(["authored", "automation"]).optional(),
|
|
13340
|
-
entity_type: z.enum(["test", "run"]).optional()
|
|
13342
|
+
entity_type: z.enum(["test", "run"]).optional(),
|
|
13343
|
+
is_root: z.unknown()
|
|
13341
13344
|
});
|
|
13342
13345
|
const zUpdateFolderDto = z.object({
|
|
13343
13346
|
name: z.string().optional(),
|
|
@@ -13347,7 +13350,8 @@ const zUpdateFolderDto = z.object({
|
|
|
13347
13350
|
parent_id: z.string().nullable().optional(),
|
|
13348
13351
|
sequence: z.string().optional(),
|
|
13349
13352
|
add_labels: z.array(z.string()).optional(),
|
|
13350
|
-
remove_labels: z.array(z.string()).optional()
|
|
13353
|
+
remove_labels: z.array(z.string()).optional(),
|
|
13354
|
+
is_root: z.unknown()
|
|
13351
13355
|
});
|
|
13352
13356
|
const zFolderFindAllV1Data = z.object({
|
|
13353
13357
|
query: z.object({
|
|
@@ -14404,6 +14408,7 @@ const zGitHubAppClientAssociateInstallationV1Data = z.object({
|
|
|
14404
14408
|
path: z.object({ "installationId": z.number() }),
|
|
14405
14409
|
url: z.literal("/v1/github-app/installations/{installationId}/associate")
|
|
14406
14410
|
});
|
|
14411
|
+
const zGitHubAppClientListAvailableInstallationsV1Data = z.object({ url: z.literal("/v1/github-app/available-installations") });
|
|
14407
14412
|
const zGitHubAppClientDisassociateInstallationV1Data = z.object({
|
|
14408
14413
|
path: z.object({ "installationId": z.number() }),
|
|
14409
14414
|
url: z.literal("/v1/github-app/installations/{installationId}/disassociate")
|
|
@@ -15552,6 +15557,7 @@ const zInitiativeProjectBulkOperationV1Data = z.object({
|
|
|
15552
15557
|
const zIntegrationTokenGetStatusV1Data = z.object({ url: z.literal("/v1/integrations/status") });
|
|
15553
15558
|
const zIntegrationTokenDisconnectGithubV1Data = z.object({ url: z.literal("/v1/integrations/github") });
|
|
15554
15559
|
const zIntegrationTokenDisconnectGithubUserV1Data = z.object({ url: z.literal("/v1/integrations/github/disconnect_user") });
|
|
15560
|
+
const zIntegrationTokenIssueConnectIntentV1Data = z.object({ url: z.literal("/v1/integrations/github/connect-intent") });
|
|
15555
15561
|
|
|
15556
15562
|
//#endregion
|
|
15557
15563
|
//#region ../sdk/dist/gen/issue/zod.js
|
|
@@ -29962,6 +29968,119 @@ const zUserAccountRestoreV1Data = z.object({
|
|
|
29962
29968
|
url: z.literal("/v1/user-account/{id}/restore")
|
|
29963
29969
|
});
|
|
29964
29970
|
|
|
29971
|
+
//#endregion
|
|
29972
|
+
//#region ../sdk/dist/gen/user-preference/zod.js
|
|
29973
|
+
const zCreateUserPreferenceDto = z.object({
|
|
29974
|
+
id: z.string().optional().describe(""),
|
|
29975
|
+
auto_assign_on_start: z.boolean().nullable().optional().describe(""),
|
|
29976
|
+
auto_assign_on_result: z.boolean().nullable().optional().describe(""),
|
|
29977
|
+
user_id: z.string()
|
|
29978
|
+
});
|
|
29979
|
+
const zResponseUserPreferenceDto = z.object({
|
|
29980
|
+
id: z.string().describe(""),
|
|
29981
|
+
auto_assign_on_start: z.boolean().nullable().optional().describe(""),
|
|
29982
|
+
auto_assign_on_result: z.boolean().nullable().optional().describe(""),
|
|
29983
|
+
user_id: z.string(),
|
|
29984
|
+
created_at: z.unknown().describe(""),
|
|
29985
|
+
updated_at: z.unknown().describe(""),
|
|
29986
|
+
epoch: z.number().describe(""),
|
|
29987
|
+
created_by: z.string().describe(""),
|
|
29988
|
+
updated_by: z.string().describe(""),
|
|
29989
|
+
workspace_id: z.string().describe(""),
|
|
29990
|
+
deleted_at: z.unknown().describe(""),
|
|
29991
|
+
deleted_by: z.string().nullable().describe("")
|
|
29992
|
+
});
|
|
29993
|
+
const zUpdateUserPreferenceDto = z.object({
|
|
29994
|
+
id: z.string().optional().describe(""),
|
|
29995
|
+
auto_assign_on_start: z.boolean().nullable().optional().describe(""),
|
|
29996
|
+
auto_assign_on_result: z.boolean().nullable().optional().describe(""),
|
|
29997
|
+
user_id: z.string().optional()
|
|
29998
|
+
});
|
|
29999
|
+
const zUserPreferenceBulkOperationDto = z.object({
|
|
30000
|
+
op: z.enum([
|
|
30001
|
+
"create",
|
|
30002
|
+
"update",
|
|
30003
|
+
"delete"
|
|
30004
|
+
]).describe(""),
|
|
30005
|
+
id: z.string().optional().describe(""),
|
|
30006
|
+
data: z.union([zCreateUserPreferenceDto, zUpdateUserPreferenceDto]).optional().describe(""),
|
|
30007
|
+
tx_id: z.string().describe("")
|
|
30008
|
+
});
|
|
30009
|
+
const zBulkUserPreferenceRequestDto = z.object({ operations: z.array(zUserPreferenceBulkOperationDto).describe("") });
|
|
30010
|
+
const zBulkUserPreferenceOperationResultDto = z.object({
|
|
30011
|
+
index: z.number().describe(""),
|
|
30012
|
+
tx_id: z.string().describe(""),
|
|
30013
|
+
status: z.number().describe(""),
|
|
30014
|
+
error: z.object({
|
|
30015
|
+
message: z.string().optional(),
|
|
30016
|
+
code: z.string().optional(),
|
|
30017
|
+
details: z.unknown().optional()
|
|
30018
|
+
}).optional().describe(""),
|
|
30019
|
+
response: zResponseUserPreferenceDto.optional().describe("")
|
|
30020
|
+
});
|
|
30021
|
+
const zBulkUserPreferenceResponseDto = z.object({
|
|
30022
|
+
results: z.array(zBulkUserPreferenceOperationResultDto).describe(""),
|
|
30023
|
+
summary: z.object({
|
|
30024
|
+
total: z.number().describe(""),
|
|
30025
|
+
successful: z.number().describe(""),
|
|
30026
|
+
failed: z.number().describe(""),
|
|
30027
|
+
savepoints_used: z.number().describe("")
|
|
30028
|
+
}).describe("")
|
|
30029
|
+
});
|
|
30030
|
+
const zUserPreferenceCreateV1Data = z.object({
|
|
30031
|
+
body: zCreateUserPreferenceDto,
|
|
30032
|
+
url: z.literal("/v1/user-preference")
|
|
30033
|
+
});
|
|
30034
|
+
const zUserPreferenceFindAllV1Data = z.object({
|
|
30035
|
+
query: z.object({
|
|
30036
|
+
"_with": z.string().optional(),
|
|
30037
|
+
"page": z.number().optional(),
|
|
30038
|
+
"limit": z.number().optional(),
|
|
30039
|
+
"filter.id": z.array(z.string()).optional(),
|
|
30040
|
+
"filter.auto_assign_on_start": z.array(z.string()).optional(),
|
|
30041
|
+
"filter.auto_assign_on_result": z.array(z.string()).optional(),
|
|
30042
|
+
"filter.user_id": z.array(z.string()).optional(),
|
|
30043
|
+
"filter.created_at": z.array(z.string()).optional(),
|
|
30044
|
+
"filter.updated_at": z.array(z.string()).optional(),
|
|
30045
|
+
"filter.deleted_at": z.array(z.string()).optional(),
|
|
30046
|
+
"sortBy": z.array(z.enum([
|
|
30047
|
+
"id:ASC",
|
|
30048
|
+
"id:DESC",
|
|
30049
|
+
"created_at:ASC",
|
|
30050
|
+
"created_at:DESC",
|
|
30051
|
+
"updated_at:ASC",
|
|
30052
|
+
"updated_at:DESC",
|
|
30053
|
+
"deleted_at:ASC",
|
|
30054
|
+
"deleted_at:DESC"
|
|
30055
|
+
])).optional(),
|
|
30056
|
+
"search": z.string().optional(),
|
|
30057
|
+
"searchBy": z.array(z.string()).optional()
|
|
30058
|
+
}).optional(),
|
|
30059
|
+
url: z.literal("/v1/user-preference")
|
|
30060
|
+
});
|
|
30061
|
+
const zUserPreferenceFindRecentlyDeletedV1Data = z.object({ url: z.literal("/v1/user-preference/recently-deleted") });
|
|
30062
|
+
const zUserPreferenceFindOneV1Data = z.object({
|
|
30063
|
+
path: z.object({ "id": z.string() }),
|
|
30064
|
+
url: z.literal("/v1/user-preference/{id}")
|
|
30065
|
+
});
|
|
30066
|
+
const zUserPreferenceUpdateV1Data = z.object({
|
|
30067
|
+
body: zUpdateUserPreferenceDto,
|
|
30068
|
+
path: z.object({ "id": z.string() }),
|
|
30069
|
+
url: z.literal("/v1/user-preference/{id}")
|
|
30070
|
+
});
|
|
30071
|
+
const zUserPreferenceRemoveV1Data = z.object({
|
|
30072
|
+
path: z.object({ "id": z.string() }),
|
|
30073
|
+
url: z.literal("/v1/user-preference/{id}")
|
|
30074
|
+
});
|
|
30075
|
+
const zUserPreferenceBulkOperationV1Data = z.object({
|
|
30076
|
+
body: zBulkUserPreferenceRequestDto,
|
|
30077
|
+
url: z.literal("/v1/user-preference/bulk")
|
|
30078
|
+
});
|
|
30079
|
+
const zUserPreferenceRestoreV1Data = z.object({
|
|
30080
|
+
path: z.object({ "id": z.string() }),
|
|
30081
|
+
url: z.literal("/v1/user-preference/{id}/restore")
|
|
30082
|
+
});
|
|
30083
|
+
|
|
29965
30084
|
//#endregion
|
|
29966
30085
|
//#region ../sdk/dist/gen/virtual/zod.js
|
|
29967
30086
|
const zCreateVirtualDto = z.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./env-CHeKHu5S.js";
|
|
2
|
-
import { authGetSitesV1, configureClient } from "./sdk-client-
|
|
2
|
+
import { authGetSitesV1, configureClient } from "./sdk-client-PqFsqPIp.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-PqFsqPIp.js";
|
|
3
3
|
import { isTokenExpired } from "./token-refresh-Cu5RpkLJ.js";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
|