fusio-sdk 7.0.3 → 7.0.4
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.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -708,7 +708,7 @@ declare class BackendAgentMessageTag extends TagAbstract {
|
|
|
708
708
|
* @throws {CommonMessageException}
|
|
709
709
|
* @throws {ClientException}
|
|
710
710
|
*/
|
|
711
|
-
submit(agentId: string, payload: BackendAgentInput): Promise<BackendAgentOutput>;
|
|
711
|
+
submit(agentId: string, payload: BackendAgentInput, parent?: number): Promise<BackendAgentOutput>;
|
|
712
712
|
}
|
|
713
713
|
|
|
714
714
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -708,7 +708,7 @@ declare class BackendAgentMessageTag extends TagAbstract {
|
|
|
708
708
|
* @throws {CommonMessageException}
|
|
709
709
|
* @throws {ClientException}
|
|
710
710
|
*/
|
|
711
|
-
submit(agentId: string, payload: BackendAgentInput): Promise<BackendAgentOutput>;
|
|
711
|
+
submit(agentId: string, payload: BackendAgentInput, parent?: number): Promise<BackendAgentOutput>;
|
|
712
712
|
}
|
|
713
713
|
|
|
714
714
|
/**
|
package/dist/index.js
CHANGED
|
@@ -455,7 +455,7 @@ var BackendAgentMessageTag = class extends TagAbstract4 {
|
|
|
455
455
|
* @throws {CommonMessageException}
|
|
456
456
|
* @throws {ClientException}
|
|
457
457
|
*/
|
|
458
|
-
async submit(agentId, payload) {
|
|
458
|
+
async submit(agentId, payload, parent) {
|
|
459
459
|
const url = this.parser.url("/backend/agent/$agent_id<[0-9]+|^~>/message", {
|
|
460
460
|
"agent_id": agentId
|
|
461
461
|
});
|
|
@@ -465,7 +465,9 @@ var BackendAgentMessageTag = class extends TagAbstract4 {
|
|
|
465
465
|
headers: {
|
|
466
466
|
"Content-Type": "application/json"
|
|
467
467
|
},
|
|
468
|
-
params: this.parser.query({
|
|
468
|
+
params: this.parser.query({
|
|
469
|
+
"parent": parent
|
|
470
|
+
}, []),
|
|
469
471
|
data: payload
|
|
470
472
|
};
|
|
471
473
|
const response = await this.httpClient.request(request);
|