@hautechai/sdk 0.0.27 → 0.0.28
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/sdk/index.d.ts
CHANGED
|
@@ -192,10 +192,9 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
192
192
|
id: string;
|
|
193
193
|
metadata?: any;
|
|
194
194
|
}) => Promise<void>;
|
|
195
|
-
wait: (
|
|
195
|
+
wait: <T extends import("../types").OperationEntity | {
|
|
196
196
|
id: string;
|
|
197
|
-
|
|
198
|
-
}) => Promise<import("../types").OperationEntity>;
|
|
197
|
+
}>(props: T) => Promise<T extends import("../types").OperationEntity ? T : import("../types").OperationEntity>;
|
|
199
198
|
};
|
|
200
199
|
pipelines: {
|
|
201
200
|
constructTemplate: (consructPipeline: (pipeline: import("@hautechai/pipelines").Pipeline<{
|
|
@@ -100,9 +100,8 @@ declare const operations: (options: SDKOptions) => {
|
|
|
100
100
|
id: string;
|
|
101
101
|
metadata?: any;
|
|
102
102
|
}) => Promise<void>;
|
|
103
|
-
wait:
|
|
103
|
+
wait: <T extends OperationEntity | {
|
|
104
104
|
id: string;
|
|
105
|
-
|
|
106
|
-
}) => Promise<OperationEntity>;
|
|
105
|
+
}>(props: T) => Promise<T extends OperationEntity ? T : OperationEntity>;
|
|
107
106
|
};
|
|
108
107
|
export default operations;
|