@lucidtech/las-sdk-core
Advanced tools
Comparing version 3.6.0 to 3.6.1
/// <reference types="node" /> | ||
import { AxiosRequestConfig, AxiosResponse } from 'axios'; | ||
export declare type ContentType = 'application/pdf' | 'image/jpeg'; | ||
export declare type ContentType = 'application/pdf' | 'image/jpeg' | 'image/png' | 'image/tiff'; | ||
export interface CreatePredictionsOptions { | ||
@@ -5,0 +5,0 @@ maxPages?: number; |
{ | ||
"name": "@lucidtech/las-sdk-core", | ||
"version": "3.6.0", | ||
"version": "3.6.1", | ||
"author": "Lucidtech AS <hello@lucidtech.ai>", | ||
@@ -32,3 +32,3 @@ "maintainers": [ | ||
}, | ||
"gitHead": "29e841340d74a3d6793fe0588ca5a254e64d8bfa" | ||
"gitHead": "96bc35fa56b242a860fb7de39a607934de797b0f" | ||
} |
@@ -48,2 +48,9 @@ /** | ||
test.each<ContentType>(['image/jpeg', 'application/pdf', 'image/png', 'image/tiff'])('allows content type: %s', async (contentType) => { | ||
const testContent = uuidv4(); | ||
const createDocumentPromise = client.createDocument(testContent, contentType); | ||
await expect(createDocumentPromise).resolves.toHaveProperty('contentType'); | ||
await expect(createDocumentPromise).resolves.toHaveProperty('documentId'); | ||
}); | ||
test('invalid Content-Type', async () => { | ||
@@ -50,0 +57,0 @@ const testContent = uuidv4(); |
@@ -5,3 +5,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
export type ContentType = 'application/pdf' | 'image/jpeg'; | ||
export type ContentType = 'application/pdf' | 'image/jpeg' | 'image/png' | 'image/tiff'; | ||
@@ -8,0 +8,0 @@ export interface CreatePredictionsOptions { |
139756
3134