@lucidtech/las-sdk-core
Advanced tools
Comparing version 4.3.0 to 4.3.1
/// <reference types="node" /> | ||
import { Credentials } from './credentials'; | ||
import { AppClient, AppClientList, Asset, AssetList, Batch, BatchList, ContentType, CreateAppClientOptions, CreateBatchOptions, CreateDocumentOptions, CreateModelOptions, CreatePredictionsOptions, CreateSecretOptions, CreateTransitionOptions, CreateUserOptions, CreateWorkflowOptions, DeleteDocumentOptions, FieldConfig, LasDocument, LasDocumentList, ListAppClientsOptions, ListAssetsOptions, ListBatchesOptions, ListDocumentsOptions, ListModelsOptions, ListPredictionsOptions, ListSecretsOptions, ListTransitionOptions, ListUsersOptions, ListWorkflowExecutionsOptions, ListWorkflowOptions, Log, Model, ModelList, Organization, PredictionList, PredictionResponse, Secret, SecretList, Transition, TransitionExecution, TransitionExecutionList, TransitionExecutionListOptions, TransitionList, TransitionType, UpdateAppClientOptions, UpdateAssetOptions, UpdateBatchOptions, UpdateDocumentOptions, UpdateModelOptions, UpdateOrganizationOptions, UpdateSecretOptions, UpdateTransitionExecution, UpdateTransitionOptions, UpdateUserOptions, UpdateWorkflowExecutionOptions, UpdateWorkflowOptions, User, UserList, Workflow, WorkflowExecution, WorkflowExecutionList, WorkflowList, WorkflowSpecification } from './types'; | ||
import { AppClient, AppClientList, Asset, AssetList, Batch, BatchList, ContentType, CreateAppClientOptions, CreateBatchOptions, CreateDocumentOptions, CreateModelOptions, CreatePredictionsOptions, CreateSecretOptions, CreateTransitionOptions, CreateUserOptions, CreateWorkflowOptions, DeleteDocumentOptions, FieldConfig, LasDocument, LasDocumentList, LasDocumentWithoutContent, ListAppClientsOptions, ListAssetsOptions, ListBatchesOptions, ListDocumentsOptions, ListModelsOptions, ListPredictionsOptions, ListSecretsOptions, ListTransitionOptions, ListUsersOptions, ListWorkflowExecutionsOptions, ListWorkflowOptions, Log, Model, ModelList, Organization, PredictionList, PredictionResponse, Secret, SecretList, Transition, TransitionExecution, TransitionExecutionList, TransitionExecutionListOptions, TransitionList, TransitionType, UpdateAppClientOptions, UpdateAssetOptions, UpdateBatchOptions, UpdateDocumentOptions, UpdateModelOptions, UpdateOrganizationOptions, UpdateSecretOptions, UpdateTransitionExecution, UpdateTransitionOptions, UpdateUserOptions, UpdateWorkflowExecutionOptions, UpdateWorkflowOptions, User, UserList, Workflow, WorkflowExecution, WorkflowExecutionList, WorkflowList, WorkflowSpecification } from './types'; | ||
/** | ||
@@ -71,3 +71,3 @@ * A high-level http client for communicating with the Lucidtech REST API | ||
*/ | ||
createDocument(content: string | Buffer, contentType: ContentType, options?: CreateDocumentOptions): Promise<LasDocument>; | ||
createDocument(content: string | Buffer, contentType: ContentType, options?: CreateDocumentOptions): Promise<LasDocumentWithoutContent>; | ||
/** | ||
@@ -74,0 +74,0 @@ * Get document from the REST API, calls the GET /documents/{documentId} endpoint. |
{ | ||
"name": "@lucidtech/las-sdk-core", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"author": "Lucidtech AS <hello@lucidtech.ai>", | ||
@@ -33,3 +33,3 @@ "maintainers": [ | ||
}, | ||
"gitHead": "fc1550533f021b0c703ee1511e5ec7fd1dec6bf1" | ||
"gitHead": "9557f3d4ebb92f04c442edf5dc0d24334d5ffd8b" | ||
} |
@@ -28,2 +28,3 @@ import axios, { AxiosRequestConfig, AxiosResponse } from 'axios'; | ||
LasDocumentList, | ||
LasDocumentWithoutContent, | ||
ListAppClientsOptions, | ||
@@ -170,3 +171,3 @@ ListAssetsOptions, | ||
options?: CreateDocumentOptions, | ||
): Promise<LasDocument> { | ||
): Promise<LasDocumentWithoutContent> { | ||
const encodedContent = typeof content === 'string' ? content : Buffer.from(content).toString('base64'); | ||
@@ -182,3 +183,3 @@ let body = { | ||
return this.makePostRequest<LasDocument>('/documents', body); | ||
return this.makePostRequest<LasDocumentWithoutContent>('/documents', body); | ||
} | ||
@@ -185,0 +186,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
201281
4441