@hautechai/sdk 2.37.0 → 2.38.0
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -16624,7 +16624,7 @@ declare const apiDefinitions: {
|
|
|
16624
16624
|
getStatus: (id: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<PipelineStatusDto | null, any>>;
|
|
16625
16625
|
count: (params?: PipelinesControllerCountPipelinesV1Params, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<CountPipelinesResultDto, any>>;
|
|
16626
16626
|
list: (params?: PipelinesControllerListPipelinesV1Params, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<ListPipelinesDto, any>>;
|
|
16627
|
-
constructTemplate: <TSdk extends PipelineSDK, O = any, I = any>(this: any, builder
|
|
16627
|
+
constructTemplate: <TSdk extends PipelineSDK, O = any, I = any>(this: any, builder?: (pipeline: PipelineTyped<TSdk>) => PipelineTyped<TSdk>) => PipelineTyped<TSdk>;
|
|
16628
16628
|
wait: <T extends PipelineDto>(this: any, pipeline: T, timeoutMs?: number, delay?: number) => Promise<T>;
|
|
16629
16629
|
}>;
|
|
16630
16630
|
pricing: ApiDefinitionTree<{
|
package/dist/index.d.ts
CHANGED
|
@@ -16624,7 +16624,7 @@ declare const apiDefinitions: {
|
|
|
16624
16624
|
getStatus: (id: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<PipelineStatusDto | null, any>>;
|
|
16625
16625
|
count: (params?: PipelinesControllerCountPipelinesV1Params, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<CountPipelinesResultDto, any>>;
|
|
16626
16626
|
list: (params?: PipelinesControllerListPipelinesV1Params, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<ListPipelinesDto, any>>;
|
|
16627
|
-
constructTemplate: <TSdk extends PipelineSDK, O = any, I = any>(this: any, builder
|
|
16627
|
+
constructTemplate: <TSdk extends PipelineSDK, O = any, I = any>(this: any, builder?: (pipeline: PipelineTyped<TSdk>) => PipelineTyped<TSdk>) => PipelineTyped<TSdk>;
|
|
16628
16628
|
wait: <T extends PipelineDto>(this: any, pipeline: T, timeoutMs?: number, delay?: number) => Promise<T>;
|
|
16629
16629
|
}>;
|
|
16630
16630
|
pricing: ApiDefinitionTree<{
|
package/dist/index.js
CHANGED
|
@@ -17438,7 +17438,11 @@ var usePipelinesApi = () => {
|
|
|
17438
17438
|
list: hautechApi.pipelinesControllerListPipelinesV1,
|
|
17439
17439
|
constructTemplate: wrapCustomMethod(function(builder) {
|
|
17440
17440
|
const sdk = this;
|
|
17441
|
-
|
|
17441
|
+
const pipeline = buildPipeline(sdk);
|
|
17442
|
+
if (builder) {
|
|
17443
|
+
return builder(pipeline);
|
|
17444
|
+
}
|
|
17445
|
+
return pipeline;
|
|
17442
17446
|
}),
|
|
17443
17447
|
wait: wrapCustomMethod(async function(pipeline, timeoutMs = 6e4, delay2 = 3e3) {
|
|
17444
17448
|
const sdk = this;
|