@byok-sdk/cloud-dataplane 0.16.0 → 0.18.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 +9 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime.js +9 -0
- package/dist/runtime.js.map +1 -1
- package/dist/stores/task-attempts.d.ts +4 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1498,6 +1498,15 @@ var PostgresTaskAttemptStore = class {
|
|
|
1498
1498
|
client.release();
|
|
1499
1499
|
}
|
|
1500
1500
|
}
|
|
1501
|
+
async readTaskAgentMessage(tenant, input) {
|
|
1502
|
+
const result = await this.#pool.query(
|
|
1503
|
+
`SELECT ${AGENT_MESSAGE_ADMISSION_SELECT_COLUMNS}
|
|
1504
|
+
FROM agent_message_admission
|
|
1505
|
+
WHERE tenant_id = $1 AND device_id = $2 AND task_id = $3`,
|
|
1506
|
+
[tenant, input.deviceId, input.taskId]
|
|
1507
|
+
);
|
|
1508
|
+
return result.rows[0] === void 0 ? void 0 : admissionRowToRecord(result.rows[0]);
|
|
1509
|
+
}
|
|
1501
1510
|
async readAgentMessage(tenant, input) {
|
|
1502
1511
|
const result = await this.#pool.query(
|
|
1503
1512
|
`SELECT ${AGENT_MESSAGE_ADMISSION_SELECT_COLUMNS}
|