@autifyhq/aximo-cli 0.2.0 → 0.3.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/index.js CHANGED
@@ -1,17 +1,22 @@
1
- export { request, getApiKey, getBaseUrl } from "./client.js";
2
- export { formatSuccess, formatError, printResult, validationError } from "./output.js";
3
- export { handleApiError } from "./errors.js";
1
+ export { getApiKey, getBaseUrl, request } from "./client.js";
2
+ export { runCaseCreate } from "./commands/case/create.js";
3
+ export { runDeviceList } from "./commands/device/list.js";
4
4
  export { runHealthCheck } from "./commands/health/check.js";
5
+ export { runPlanAddCase } from "./commands/plan/add-case.js";
6
+ export { runPlanCreate } from "./commands/plan/create.js";
7
+ export { runPlanRemoveCase } from "./commands/plan/remove-case.js";
5
8
  export { runProjectList } from "./commands/project/list.js";
6
- export { runDeviceList } from "./commands/device/list.js";
7
9
  export { runSessionCreate } from "./commands/session/create.js";
8
10
  export { runSessionGet } from "./commands/session/get.js";
9
- export { runTriggerCaseRun } from "./commands/trigger/case/run.js";
11
+ export { runSessionSaveAsCase } from "./commands/session/save-as-case.js";
10
12
  export { runTriggerCaseGet } from "./commands/trigger/case/get.js";
11
- export { runTriggerPlanRun } from "./commands/trigger/plan/run.js";
13
+ export { runTriggerCaseRun } from "./commands/trigger/case/run.js";
12
14
  export { runTriggerPlanGet } from "./commands/trigger/plan/get.js";
15
+ export { runTriggerPlanRun } from "./commands/trigger/plan/run.js";
13
16
  export { runUploadCreate } from "./commands/upload/create.js";
14
- export { runUploadList } from "./commands/upload/list.js";
15
17
  export { runUploadGet } from "./commands/upload/get.js";
18
+ export { runUploadList } from "./commands/upload/list.js";
16
19
  export { runUploadPut } from "./commands/upload/put.js";
17
20
  export { runUploadSubmit } from "./commands/upload/submit.js";
21
+ export { handleApiError } from "./errors.js";
22
+ export { formatError, formatSuccess, printResult, validationError } from "./output.js";
package/dist/types.d.ts CHANGED
@@ -119,6 +119,43 @@ export interface Project {
119
119
  name?: string | undefined;
120
120
  [key: string]: unknown;
121
121
  }
122
+ export interface CreateCaseInput {
123
+ projectId: string;
124
+ scenario: string;
125
+ type?: string | undefined;
126
+ title?: string | undefined;
127
+ description?: string | undefined;
128
+ format?: string | undefined;
129
+ startUrl?: string | undefined;
130
+ directoryId?: string | undefined;
131
+ }
132
+ export interface CreateCaseResult {
133
+ success: boolean;
134
+ caseId: string;
135
+ }
136
+ export interface CreatePlanInput {
137
+ projectId: string;
138
+ title: string;
139
+ description?: string | undefined;
140
+ }
141
+ export interface CreatePlanResult {
142
+ success: boolean;
143
+ planId: string;
144
+ }
145
+ export interface PlanCaseResult {
146
+ success: boolean;
147
+ }
148
+ export interface SaveSessionAsCaseInput {
149
+ title?: string | undefined;
150
+ type?: string | undefined;
151
+ scenario?: string | undefined;
152
+ format?: string | undefined;
153
+ }
154
+ export interface SaveSessionAsCaseResult {
155
+ success: boolean;
156
+ caseId: string;
157
+ projectId: string;
158
+ }
122
159
  export interface PaginatedList<T> {
123
160
  items: T[];
124
161
  totalCount: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autifyhq/aximo-cli",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Autify Aximo Command Line Interface (CLI)",
5
5
  "keywords": [
6
6
  "autify",