@lucidtech/las-sdk-core
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -5,2 +5,3 @@ import { Token } from './credentials'; | ||
setPersistentToken: (value: T) => void; | ||
hasActiveToken: () => boolean; | ||
} |
{ | ||
"name": "@lucidtech/las-sdk-core", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"author": "Lucidtech AS <hello@lucidtech.ai>", | ||
@@ -23,3 +23,3 @@ "maintainers": [ | ||
}, | ||
"gitHead": "abe6b2e25892faae9bde7de348134868c3cf6c54" | ||
"gitHead": "7220ca3a313ed6abbddb831d211910331bffe141" | ||
} |
@@ -92,2 +92,16 @@ import { default as uuidv4 } from 'uuid/v4'; | ||
test('Testing patchTask with a non-empty taskError', async () => { | ||
const client = getTestClient(); | ||
const testTaskId = uuidv4(); | ||
const testTaskError = { | ||
code: 'error code', | ||
message: 'error message', | ||
} | ||
const patchTaskPromise = client.patchTasks(testTaskId, {}, { testTaskError }); | ||
await expect(patchTaskPromise).resolves.toHaveProperty('taskId'); | ||
await expect(patchTaskPromise).resolves.toHaveProperty('taskData'); | ||
await expect(patchTaskPromise).resolves.toHaveProperty('taskError'); | ||
await expect(patchTaskPromise).resolves.toHaveProperty('taskResult'); | ||
}) | ||
test('Testing successful getDocument', async () => { | ||
@@ -94,0 +108,0 @@ const client = getTestClient(); |
@@ -64,5 +64,6 @@ import axios, { AxiosRequestConfig } from 'axios'; | ||
patchTasks(taskId: string, taskResult: any) { | ||
patchTasks(taskId: string, taskResult: any = {}, taskError: any = {}) { | ||
const body = { | ||
taskResult, | ||
taskError, | ||
}; | ||
@@ -69,0 +70,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34294
579