@axiom-lattice/client-sdk 4.5.0 → 4.5.2
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/__tests__/tasks.test.js +41 -0
- package/dist/__tests__/tasks.test.js.map +1 -1
- package/dist/abstract-client.d.ts +2 -1
- package/dist/abstract-client.d.ts.map +1 -1
- package/dist/abstract-client.js +6 -0
- package/dist/abstract-client.js.map +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +11 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3013,6 +3013,12 @@ var AbstractClient = class {
|
|
|
3013
3013
|
throw new ApiError("Failed to complete task", 500);
|
|
3014
3014
|
return response;
|
|
3015
3015
|
},
|
|
3016
|
+
command: async (id, input) => {
|
|
3017
|
+
const response = await this.makeRequest(`/api/tasks/${id}/commands`, { method: "POST", body: input });
|
|
3018
|
+
if (!response.data)
|
|
3019
|
+
throw new ApiError("Failed to run task command", 500);
|
|
3020
|
+
return response;
|
|
3021
|
+
},
|
|
3016
3022
|
workItems: {
|
|
3017
3023
|
list: async (taskId, params) => {
|
|
3018
3024
|
const searchParams = new URLSearchParams();
|