@lunnoa/client 0.0.0-development → 1.0.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/LICENSE +202 -202
- package/README.md +372 -338
- package/dist/cli.js +31 -1
- package/dist/index.cjs +31 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +703 -585
- package/dist/index.d.ts +703 -585
- package/dist/index.js +31 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +31 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +780 -719
- package/dist/react.d.ts +780 -719
- package/dist/react.js +31 -1
- package/dist/react.js.map +1 -1
- package/package.json +7 -5
- package/skills/lunnoa-client/SKILL.md +517 -0
- package/skills/lunnoa-solution-design/SKILL.md +190 -0
package/dist/index.js
CHANGED
|
@@ -1533,12 +1533,42 @@ var QueueItemsResource = class {
|
|
|
1533
1533
|
`/api/queues/${queueId}/items/${itemId}`
|
|
1534
1534
|
);
|
|
1535
1535
|
}
|
|
1536
|
-
/** Adds an item to a queue. */
|
|
1536
|
+
/** Adds an item to a queue. Pass `objectId` to link the item to an entity. */
|
|
1537
1537
|
create(queueId, data) {
|
|
1538
1538
|
return this.http.post(`/api/queues/${queueId}/items`, {
|
|
1539
1539
|
body: data
|
|
1540
1540
|
});
|
|
1541
1541
|
}
|
|
1542
|
+
/**
|
|
1543
|
+
* Lists queue items linked to an Object across all queues in the workspace.
|
|
1544
|
+
* Use for Object detail "Work" panels.
|
|
1545
|
+
*/
|
|
1546
|
+
listByObject(objectId, options = {}) {
|
|
1547
|
+
return this.http.get(
|
|
1548
|
+
`/api/objects/${objectId}/queue-items`,
|
|
1549
|
+
{
|
|
1550
|
+
query: {
|
|
1551
|
+
status: options.status,
|
|
1552
|
+
limit: options.limit,
|
|
1553
|
+
offset: options.offset,
|
|
1554
|
+
expansion: serializeCsv(options.expansion)
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
);
|
|
1558
|
+
}
|
|
1559
|
+
/** Async-iterates every queue item linked to an Object. */
|
|
1560
|
+
iterateByObject(objectId, options = {}) {
|
|
1561
|
+
return iterateOffset(async (offset) => {
|
|
1562
|
+
const result = await this.listByObject(objectId, {
|
|
1563
|
+
...options,
|
|
1564
|
+
offset
|
|
1565
|
+
});
|
|
1566
|
+
return {
|
|
1567
|
+
items: result.items ?? [],
|
|
1568
|
+
pagination: result.pagination
|
|
1569
|
+
};
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1542
1572
|
/** Adds many items to a queue in one call. */
|
|
1543
1573
|
bulkCreate(queueId, data) {
|
|
1544
1574
|
return this.http.post(
|