@elaraai/e3-api-client 1.0.72 → 1.0.73

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.
@@ -30,16 +30,21 @@ export declare function taskList(url: string, repo: string, workspace: string, o
30
30
  */
31
31
  export declare function taskGet(url: string, repo: string, workspace: string, name: string, options: RequestOptions): Promise<TaskDetails>;
32
32
  /**
33
- * List execution history for a task.
33
+ * List execution history for a task: by default the latest attempt per
34
+ * distinct inputs hash; with `query.all`, every attempt (a forced re-run
35
+ * or a retry after a failure adds one under the same inputs hash).
34
36
  *
35
37
  * @param url - Base URL of the e3 API server
36
38
  * @param repo - Repository name
37
39
  * @param workspace - Workspace name
38
40
  * @param taskName - Task name
39
41
  * @param options - Request options including auth token
40
- * @returns Array of execution history items
42
+ * @param query - `all: true` lists every attempt
43
+ * @returns Array of execution history items (unordered)
41
44
  * @throws {ApiError} On application-level errors
42
45
  * @throws {AuthError} On 401 Unauthorized
43
46
  */
44
- export declare function taskExecutionList(url: string, repo: string, workspace: string, taskName: string, options: RequestOptions): Promise<ExecutionListItem[]>;
47
+ export declare function taskExecutionList(url: string, repo: string, workspace: string, taskName: string, options: RequestOptions, query?: {
48
+ all?: boolean;
49
+ }): Promise<ExecutionListItem[]>;
45
50
  //# sourceMappingURL=tasks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/tasks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/E,OAAO,EAAO,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAErD;;;;;;;;;;GAUG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,EAAE,CA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EAAE,OAAO,CAAA;CAAO,GAC5B,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAQ9B"}
package/dist/src/tasks.js CHANGED
@@ -35,18 +35,22 @@ export async function taskGet(url, repo, workspace, name, options) {
35
35
  return get(url, `/repos/${encodeURIComponent(repo)}/workspaces/${encodeURIComponent(workspace)}/tasks/${encodeURIComponent(name)}`, TaskDetailsType, options);
36
36
  }
37
37
  /**
38
- * List execution history for a task.
38
+ * List execution history for a task: by default the latest attempt per
39
+ * distinct inputs hash; with `query.all`, every attempt (a forced re-run
40
+ * or a retry after a failure adds one under the same inputs hash).
39
41
  *
40
42
  * @param url - Base URL of the e3 API server
41
43
  * @param repo - Repository name
42
44
  * @param workspace - Workspace name
43
45
  * @param taskName - Task name
44
46
  * @param options - Request options including auth token
45
- * @returns Array of execution history items
47
+ * @param query - `all: true` lists every attempt
48
+ * @returns Array of execution history items (unordered)
46
49
  * @throws {ApiError} On application-level errors
47
50
  * @throws {AuthError} On 401 Unauthorized
48
51
  */
49
- export async function taskExecutionList(url, repo, workspace, taskName, options) {
50
- return get(url, `/repos/${encodeURIComponent(repo)}/workspaces/${encodeURIComponent(workspace)}/tasks/${encodeURIComponent(taskName)}/executions`, ArrayType(ExecutionListItemType), options);
52
+ export async function taskExecutionList(url, repo, workspace, taskName, options, query = {}) {
53
+ const suffix = query.all === true ? '?all=true' : '';
54
+ return get(url, `/repos/${encodeURIComponent(repo)}/workspaces/${encodeURIComponent(workspace)}/tasks/${encodeURIComponent(taskName)}/executions${suffix}`, ArrayType(ExecutionListItemType), options);
51
55
  }
52
56
  //# sourceMappingURL=tasks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../src/tasks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACtF,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;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,GAAW,EAAE,IAAY,EAAE,SAAiB,EAAE,OAAuB;IAClG,OAAO,GAAG,CACR,GAAG,EACH,UAAU,kBAAkB,CAAC,IAAI,CAAC,eAAe,kBAAkB,CAAC,SAAS,CAAC,QAAQ,EACtF,SAAS,CAAC,gBAAgB,CAAC,EAC3B,OAAO,CACR,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,GAAW,EACX,IAAY,EACZ,SAAiB,EACjB,IAAY,EACZ,OAAuB;IAEvB,OAAO,GAAG,CACR,GAAG,EACH,UAAU,kBAAkB,CAAC,IAAI,CAAC,eAAe,kBAAkB,CAAC,SAAS,CAAC,UAAU,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAClH,eAAe,EACf,OAAO,CACR,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,GAAW,EACX,IAAY,EACZ,SAAiB,EACjB,QAAgB,EAChB,OAAuB,EACvB,QAA2B,EAAE;IAE7B,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;IACrD,OAAO,GAAG,CACR,GAAG,EACH,UAAU,kBAAkB,CAAC,IAAI,CAAC,eAAe,kBAAkB,CAAC,SAAS,CAAC,UAAU,kBAAkB,CAAC,QAAQ,CAAC,cAAc,MAAM,EAAE,EAC1I,SAAS,CAAC,qBAAqB,CAAC,EAChC,OAAO,CACR,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elaraai/e3-api-client",
3
- "version": "1.0.72",
3
+ "version": "1.0.73",
4
4
  "type": "module",
5
5
  "description": "East Execution Engine API Client - TypeScript client library for e3 API server",
6
6
  "main": "dist/src/index.js",
@@ -30,10 +30,10 @@
30
30
  "directory": "libs/e3/packages/e3-api-client"
31
31
  },
32
32
  "dependencies": {
33
- "@elaraai/e3-types": "1.0.72"
33
+ "@elaraai/e3-types": "1.0.73"
34
34
  },
35
35
  "peerDependencies": {
36
- "@elaraai/east": "1.0.72"
36
+ "@elaraai/east": "1.0.73"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^22.0.0",
@@ -42,7 +42,7 @@
42
42
  "eslint": "^9.0.0",
43
43
  "eslint-plugin-headers": "^1.3.3",
44
44
  "typescript": "^5.6.0",
45
- "@elaraai/east-node-std": "1.0.72"
45
+ "@elaraai/east-node-std": "1.0.73"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsc",