@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/runtime.js
CHANGED
|
@@ -1494,6 +1494,15 @@ var PostgresTaskAttemptStore = class {
|
|
|
1494
1494
|
client.release();
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
|
+
async readTaskAgentMessage(tenant, input) {
|
|
1498
|
+
const result = await this.#pool.query(
|
|
1499
|
+
`SELECT ${AGENT_MESSAGE_ADMISSION_SELECT_COLUMNS}
|
|
1500
|
+
FROM agent_message_admission
|
|
1501
|
+
WHERE tenant_id = $1 AND device_id = $2 AND task_id = $3`,
|
|
1502
|
+
[tenant, input.deviceId, input.taskId]
|
|
1503
|
+
);
|
|
1504
|
+
return result.rows[0] === void 0 ? void 0 : admissionRowToRecord(result.rows[0]);
|
|
1505
|
+
}
|
|
1497
1506
|
async readAgentMessage(tenant, input) {
|
|
1498
1507
|
const result = await this.#pool.query(
|
|
1499
1508
|
`SELECT ${AGENT_MESSAGE_ADMISSION_SELECT_COLUMNS}
|