@hautechai/sdk 0.3.37 → 0.3.38
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
|
@@ -1156,7 +1156,7 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
1156
1156
|
}, any>;
|
|
1157
1157
|
create: (props: {
|
|
1158
1158
|
metadata?: PipelineMetadata;
|
|
1159
|
-
template
|
|
1159
|
+
template?: import("@hautechai/pipelines").Pipeline<{
|
|
1160
1160
|
access: {
|
|
1161
1161
|
attach: (params: import("../autogenerated").AttachAccessParamsDto & {
|
|
1162
1162
|
__taskOutput__?: never;
|
|
@@ -1439,6 +1439,7 @@ export declare const createSDK: (options: SDKOptions) => {
|
|
|
1439
1439
|
}) => Promise<import("../types").StorageEntity>;
|
|
1440
1440
|
};
|
|
1441
1441
|
}, any>;
|
|
1442
|
+
tasks?: any[];
|
|
1442
1443
|
state?: Record<string, any>;
|
|
1443
1444
|
}) => Promise<Omit<import("../types").PipelineDto, "metadata"> & {
|
|
1444
1445
|
metadata: PipelineMetadata;
|
|
@@ -855,7 +855,7 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
855
855
|
}, any>;
|
|
856
856
|
create: (props: {
|
|
857
857
|
metadata?: PipelineMetadata;
|
|
858
|
-
template
|
|
858
|
+
template?: Pipeline<{
|
|
859
859
|
access: {
|
|
860
860
|
attach: (params: import("../../autogenerated").AttachAccessParamsDto & {
|
|
861
861
|
__taskOutput__?: never;
|
|
@@ -1138,6 +1138,7 @@ declare const pipelines: (options: SDKOptions) => {
|
|
|
1138
1138
|
}) => Promise<import("../../autogenerated").StorageEntity>;
|
|
1139
1139
|
};
|
|
1140
1140
|
}, any>;
|
|
1141
|
+
tasks?: any[];
|
|
1141
1142
|
state?: Record<string, any>;
|
|
1142
1143
|
}) => Promise<PipelineDtoWithMetadata>;
|
|
1143
1144
|
get: (props: {
|
|
@@ -172,7 +172,7 @@ const pipelines = (options) => {
|
|
|
172
172
|
create: async (props) => api.call({
|
|
173
173
|
run: (methods) => methods.pipelinesControllerCreatePipelineV1({
|
|
174
174
|
metadata: props.metadata,
|
|
175
|
-
tasks: props.template.tasks,
|
|
175
|
+
tasks: (props.template?.tasks ?? props.tasks),
|
|
176
176
|
state: props.state,
|
|
177
177
|
}),
|
|
178
178
|
}),
|