@hautechai/sdk 0.3.37 → 0.3.39
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.
|
@@ -3855,6 +3855,18 @@ export interface PipelineDto {
|
|
|
3855
3855
|
'state': {
|
|
3856
3856
|
[key: string]: PipelineDtoStateValue;
|
|
3857
3857
|
};
|
|
3858
|
+
/**
|
|
3859
|
+
* Total price of all tasks in the pipeline as a decimal string
|
|
3860
|
+
* @type {string}
|
|
3861
|
+
* @memberof PipelineDto
|
|
3862
|
+
*/
|
|
3863
|
+
'totalExecutionPrice': string;
|
|
3864
|
+
/**
|
|
3865
|
+
* Total price of all successfully completed tasks in the pipeline as a decimal string
|
|
3866
|
+
* @type {string}
|
|
3867
|
+
* @memberof PipelineDto
|
|
3868
|
+
*/
|
|
3869
|
+
'currentExecutionPrice': string;
|
|
3858
3870
|
/**
|
|
3859
3871
|
*
|
|
3860
3872
|
* @type {object}
|
|
@@ -3879,12 +3891,6 @@ export interface PipelineDto {
|
|
|
3879
3891
|
* @memberof PipelineDto
|
|
3880
3892
|
*/
|
|
3881
3893
|
'creatorId': string;
|
|
3882
|
-
/**
|
|
3883
|
-
*
|
|
3884
|
-
* @type {number}
|
|
3885
|
-
* @memberof PipelineDto
|
|
3886
|
-
*/
|
|
3887
|
-
'tasksAmount': number;
|
|
3888
3894
|
/**
|
|
3889
3895
|
*
|
|
3890
3896
|
* @type {object}
|
|
@@ -3969,12 +3975,6 @@ export interface PipelinePreviewDto {
|
|
|
3969
3975
|
* @memberof PipelinePreviewDto
|
|
3970
3976
|
*/
|
|
3971
3977
|
'creatorId': string;
|
|
3972
|
-
/**
|
|
3973
|
-
*
|
|
3974
|
-
* @type {number}
|
|
3975
|
-
* @memberof PipelinePreviewDto
|
|
3976
|
-
*/
|
|
3977
|
-
'tasksAmount': number;
|
|
3978
3978
|
/**
|
|
3979
3979
|
*
|
|
3980
3980
|
* @type {object}
|
|
@@ -5077,6 +5077,12 @@ export interface TaskDto {
|
|
|
5077
5077
|
* @memberof TaskDto
|
|
5078
5078
|
*/
|
|
5079
5079
|
'dependencies': Array<string>;
|
|
5080
|
+
/**
|
|
5081
|
+
*
|
|
5082
|
+
* @type {string}
|
|
5083
|
+
* @memberof TaskDto
|
|
5084
|
+
*/
|
|
5085
|
+
'price': string;
|
|
5080
5086
|
}
|
|
5081
5087
|
/**
|
|
5082
5088
|
*
|
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
|
}),
|