@aloma.io/integration-sdk 3.4.0 → 3.4.2
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.
@@ -32,6 +32,6 @@ export declare abstract class AbstractController {
|
|
32
32
|
__endpoint(arg: any): Promise<any | null>;
|
33
33
|
__configQuery(arg: any): Promise<any | null>;
|
34
34
|
__default(arg: any): Promise<any | null>;
|
35
|
-
_doStart(config: any, client: any, newTask: any, updateTask: any,
|
35
|
+
_doStart(config: any, client: any, newTask: any, updateTask: any, getClient: any, getBlob: any, getBlobContent: any, putBlob: any): Promise<void>;
|
36
36
|
_doStop(isShutdown?: boolean): Promise<void>;
|
37
37
|
}
|
@@ -39,7 +39,7 @@ export class AbstractController {
|
|
39
39
|
async __default(arg) {
|
40
40
|
return this.fallback(arg);
|
41
41
|
}
|
42
|
-
async _doStart(config, client, newTask, updateTask, getBlob, getBlobContent, putBlob
|
42
|
+
async _doStart(config, client, newTask, updateTask, getClient, getBlob, getBlobContent, putBlob) {
|
43
43
|
this.config = config;
|
44
44
|
this.client = client;
|
45
45
|
this.newTask = newTask;
|
package/build/internal/index.mjs
CHANGED
@@ -530,7 +530,7 @@ ${text}
|
|
530
530
|
};
|
531
531
|
const putBlob = (args = {}) => {
|
532
532
|
return new Promise((resolve, reject) => {
|
533
|
-
const packet = transport.newPacket({}, (ret) => (ret?.error ? reject(ret.error) : resolve(ret)), `_req-${cuid()}`);
|
533
|
+
const packet = transport.newPacket({}, (ret) => (ret?.error ? reject(ret.error) : resolve(ret?.id)), `_req-${cuid()}`);
|
534
534
|
packet.method("connector.blob.put");
|
535
535
|
packet.args(args);
|
536
536
|
transport.send(packet);
|
package/package.json
CHANGED
package/src/controller/index.mts
CHANGED
@@ -87,10 +87,10 @@ export abstract class AbstractController {
|
|
87
87
|
client: any,
|
88
88
|
newTask: any,
|
89
89
|
updateTask: any,
|
90
|
+
getClient: any,
|
90
91
|
getBlob: any,
|
91
92
|
getBlobContent: any,
|
92
93
|
putBlob: any,
|
93
|
-
getClient: any,
|
94
94
|
): Promise<void> {
|
95
95
|
this.config = config;
|
96
96
|
this.client = client;
|
package/src/internal/index.mjs
CHANGED
@@ -675,7 +675,7 @@ ${text}
|
|
675
675
|
return new Promise((resolve, reject) => {
|
676
676
|
const packet = transport.newPacket(
|
677
677
|
{},
|
678
|
-
(ret) => (ret?.error ? reject(ret.error) : resolve(ret)),
|
678
|
+
(ret) => (ret?.error ? reject(ret.error) : resolve(ret?.id)),
|
679
679
|
`_req-${cuid()}`,
|
680
680
|
);
|
681
681
|
|