@axiom-lattice/client-sdk 2.1.61 → 2.1.63
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/abstract-client.d.ts +8 -1
- package/dist/abstract-client.d.ts.map +1 -1
- package/dist/abstract-client.js +14 -0
- package/dist/abstract-client.js.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2616,6 +2616,22 @@ var AbstractClient = class {
|
|
|
2616
2616
|
if (!response.data)
|
|
2617
2617
|
throw new ApiError("Failed to complete task", 500);
|
|
2618
2618
|
return response.data;
|
|
2619
|
+
},
|
|
2620
|
+
workItems: {
|
|
2621
|
+
list: async (taskId, params) => {
|
|
2622
|
+
const searchParams = new URLSearchParams();
|
|
2623
|
+
if (params?.action)
|
|
2624
|
+
searchParams.set("action", params.action);
|
|
2625
|
+
if (params?.limit)
|
|
2626
|
+
searchParams.set("limit", String(params.limit));
|
|
2627
|
+
if (params?.offset)
|
|
2628
|
+
searchParams.set("offset", String(params.offset));
|
|
2629
|
+
const qs = searchParams.toString();
|
|
2630
|
+
const response = await this.makeRequest(
|
|
2631
|
+
`/api/tasks/${taskId}/work-items${qs ? `?${qs}` : ""}`
|
|
2632
|
+
);
|
|
2633
|
+
return response.data;
|
|
2634
|
+
}
|
|
2619
2635
|
}
|
|
2620
2636
|
};
|
|
2621
2637
|
this.menu = {
|