@lucidtech/las-sdk-core
Advanced tools
Comparing version 9.1.5 to 10.0.0
@@ -20,2 +20,3 @@ /// <reference types="node" /> | ||
content: string; | ||
contentMD5: string | null; | ||
contentType: ContentType; | ||
@@ -273,7 +274,8 @@ datasetId?: string; | ||
createdBy: string | null; | ||
createdTime: string; | ||
createdTime: string | null; | ||
datasetId: string; | ||
description: string; | ||
description: string | null; | ||
groundTruthSummary: Record<string, number>; | ||
name: string; | ||
metadata: Record<string, JSONValue> | null; | ||
name: string | null; | ||
numberOfDocuments: number; | ||
@@ -283,5 +285,4 @@ retentionInDays: number; | ||
updatedBy: string | null; | ||
updatedTime: string; | ||
updatedTime: string | null; | ||
version: number; | ||
metadata: Record<string, JSONValue> | null; | ||
}; | ||
@@ -317,2 +318,3 @@ export declare type CreateDatasetOptions = RequestConfig & { | ||
name: string | null; | ||
retentionInDays: number; | ||
status: 'succeeded' | 'running' | 'failed'; | ||
@@ -471,2 +473,9 @@ summary: Record<string, any>; | ||
content: string; | ||
contentMD5: string | null; | ||
createdBy: string | null; | ||
createdTime: string | null; | ||
description: string | null; | ||
name: string | null; | ||
updatedBy: string | null; | ||
updatedTime: string | null; | ||
}; | ||
@@ -488,3 +497,3 @@ export declare type AssetWithoutContent = Omit<Asset, 'content'>; | ||
maxLength?: number; | ||
type: 'all' | 'alphanum' | 'alphanumext' | 'amount' | 'date' | 'digits' | 'enum' | 'letter' | 'lines' | 'number' | 'phone' | 'string'; | ||
type: 'amount' | 'date' | 'digits' | 'enum' | 'lines' | 'numeric' | 'string'; | ||
}; | ||
@@ -539,2 +548,3 @@ export declare type FieldConfig = Record<string, Field>; | ||
dataBundleIds: Array<string>; | ||
dataScientistAssistance: boolean; | ||
description: string | null; | ||
@@ -544,2 +554,3 @@ evaluation: Record<string, any>; | ||
instanceType: TrainingInstanceType; | ||
metadata: Record<string, JSONValue> | null; | ||
modelId: string; | ||
@@ -551,3 +562,2 @@ name: string | null; | ||
updatedTime: string | null; | ||
metadata: Record<string, JSONValue> | null; | ||
}; | ||
@@ -554,0 +564,0 @@ export declare type TrainingList = { |
@@ -5,3 +5,3 @@ "use strict"; | ||
function buildURL(url, params) { | ||
if (!params) { | ||
if (!params || Object.keys(params).length === 0) { | ||
return url; | ||
@@ -29,2 +29,6 @@ } | ||
}); | ||
// Input contained keys, but all were undefined | ||
if (searchParams.entries().next().done) { | ||
return url; | ||
} | ||
return `${url}?${searchParams}`; | ||
@@ -31,0 +35,0 @@ } |
{ | ||
"name": "@lucidtech/las-sdk-core", | ||
"version": "9.1.5", | ||
"version": "10.0.0", | ||
"author": "Lucidtech AS <hello@lucidtech.ai>", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
123351
2606