diff --git a/README.md b/README.md index 265f1db..026a20b 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Our services have a general quota of 4000 requests per minute. Should you hit th This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v3.0 -- Package version: 0.6.3 +- Package version: v3.0 - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen ## Installation @@ -171,7 +171,7 @@ Class | Method | HTTP request | Description *LiltNode.JobsApi* | [**createJob**](docs/JobsApi.md#createJob) | **POST** /v2/jobs | Create a Job *LiltNode.JobsApi* | [**deleteJob**](docs/JobsApi.md#deleteJob) | **DELETE** /v2/jobs/{jobId} | Delete a Job *LiltNode.JobsApi* | [**deliverJob**](docs/JobsApi.md#deliverJob) | **POST** /v2/jobs/{jobId}/deliver | Deliver a Job -*LiltNode.JobsApi* | [**downloadJob**](docs/JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/downlod | Download a Job +*LiltNode.JobsApi* | [**downloadJob**](docs/JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/download | Download a Job *LiltNode.JobsApi* | [**exportJob**](docs/JobsApi.md#exportJob) | **GET** /v2/jobs/{jobId}/export | Export a Job *LiltNode.JobsApi* | [**getJob**](docs/JobsApi.md#getJob) | **GET** /v2/jobs/{jobId} | Retrieve a Job *LiltNode.JobsApi* | [**getJobLeverageStats**](docs/JobsApi.md#getJobLeverageStats) | **POST** /v2/jobs/{jobId}/stats | Retrieve Job Leverage Stats @@ -222,6 +222,7 @@ Class | Method | HTTP request | Description - [LiltNode.LanguagesResponse](docs/LanguagesResponse.md) - [LiltNode.LiltCreateContent](docs/LiltCreateContent.md) - [LiltNode.LiltCreateContentPreferences](docs/LiltCreateContentPreferences.md) + - [LiltNode.LiltCreateContentRequest](docs/LiltCreateContentRequest.md) - [LiltNode.LiltCreateContentTemplateParams](docs/LiltCreateContentTemplateParams.md) - [LiltNode.Memory](docs/Memory.md) - [LiltNode.MemoryCreateParameters](docs/MemoryCreateParameters.md) diff --git a/docs/CreateApi.md b/docs/CreateApi.md index 620cc8e..b98cb8a 100644 --- a/docs/CreateApi.md +++ b/docs/CreateApi.md @@ -67,7 +67,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## generateLiltCreateContent @@ -94,7 +94,7 @@ BasicAuth.username = 'YOUR USERNAME'; BasicAuth.password = 'YOUR PASSWORD'; let apiInstance = new LiltNode.CreateApi(); -let templateParams = new LiltNode.LiltCreateContent(); // LiltCreateContent | Input parameters that determine what content will be generated. +let templateParams = new LiltNode.LiltCreateContentRequest(); // LiltCreateContentRequest | Input parameters that determine what content will be generated. apiInstance.generateLiltCreateContent(templateParams).then(() => { console.log('API called successfully.'); }, (error) => { @@ -108,7 +108,7 @@ apiInstance.generateLiltCreateContent(templateParams).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **templateParams** | [**LiltCreateContent**](LiltCreateContent.md)| Input parameters that determine what content will be generated. | + **templateParams** | [**LiltCreateContentRequest**](LiltCreateContentRequest.md)| Input parameters that determine what content will be generated. | ### Return type @@ -121,7 +121,7 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/octet-stream, text/plain, application/json ## getLiltCreateById @@ -175,7 +175,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## getLiltCreateContent @@ -225,7 +225,7 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## getLiltCreatePreferences @@ -275,7 +275,7 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/octet-stream, text/plain, application/json ## regenerateLiltCreateContent @@ -329,7 +329,7 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/octet-stream, text/plain, application/json ## signLiltCreateTerms @@ -383,7 +383,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## updateLiltCreateContent @@ -441,7 +441,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## updateLiltCreatePreferences @@ -497,5 +497,5 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/octet-stream, text/plain, application/json diff --git a/docs/DocumentsApi.md b/docs/DocumentsApi.md index 6b05680..f96ce0c 100644 --- a/docs/DocumentsApi.md +++ b/docs/DocumentsApi.md @@ -64,7 +64,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/octet-stream +- **Accept**: application/octet-stream, text/plain, ## uploadDocument @@ -134,5 +134,5 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/octet-stream -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain diff --git a/docs/Error.md b/docs/Error.md index a52b9b2..d1f719f 100644 --- a/docs/Error.md +++ b/docs/Error.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**message** | [**Object**](.md) | A human-readable message describing the error. | [optional] +**message** | **String** | A human-readable message describing the error. | [optional] diff --git a/docs/FilesApi.md b/docs/FilesApi.md index 65104a3..08c252c 100644 --- a/docs/FilesApi.md +++ b/docs/FilesApi.md @@ -66,7 +66,7 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/octet-stream, text/plain, application/json ## deleteFile @@ -120,7 +120,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## download @@ -174,7 +174,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/octet-stream +- **Accept**: application/octet-stream, text/plain, application/json ## getFiles @@ -232,7 +232,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## removeLabel @@ -288,7 +288,7 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/octet-stream, text/plain, application/json ## uploadFile @@ -356,5 +356,5 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/octet-stream -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain diff --git a/docs/JobsApi.md b/docs/JobsApi.md index 4f92189..e5f532c 100644 --- a/docs/JobsApi.md +++ b/docs/JobsApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description [**createJob**](JobsApi.md#createJob) | **POST** /v2/jobs | Create a Job [**deleteJob**](JobsApi.md#deleteJob) | **DELETE** /v2/jobs/{jobId} | Delete a Job [**deliverJob**](JobsApi.md#deliverJob) | **POST** /v2/jobs/{jobId}/deliver | Deliver a Job -[**downloadJob**](JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/downlod | Download a Job +[**downloadJob**](JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/download | Download a Job [**exportJob**](JobsApi.md#exportJob) | **GET** /v2/jobs/{jobId}/export | Export a Job [**getJob**](JobsApi.md#getJob) | **GET** /v2/jobs/{jobId} | Retrieve a Job [**getJobLeverageStats**](JobsApi.md#getJobLeverageStats) | **POST** /v2/jobs/{jobId}/stats | Retrieve Job Leverage Stats @@ -70,7 +70,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## createJob @@ -124,7 +124,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## deleteJob @@ -178,7 +178,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## deliverJob @@ -232,7 +232,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## downloadJob @@ -286,7 +286,7 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/octet-stream, text/plain, application/json ## exportJob @@ -342,7 +342,7 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/octet-stream, text/plain, application/json ## getJob @@ -396,7 +396,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## getJobLeverageStats @@ -450,7 +450,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## reactivateJob @@ -504,7 +504,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## retrieveAllJobs @@ -566,7 +566,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## unarchiveJob @@ -620,7 +620,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## updateJob @@ -678,5 +678,5 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain diff --git a/docs/LanguagesApi.md b/docs/LanguagesApi.md index 0963235..5407c82 100644 --- a/docs/LanguagesApi.md +++ b/docs/LanguagesApi.md @@ -55,5 +55,5 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain diff --git a/docs/LiltCreateContent.md b/docs/LiltCreateContent.md index 84b5da0..cf95507 100644 --- a/docs/LiltCreateContent.md +++ b/docs/LiltCreateContent.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **String** | A name for the request content. | [optional] +**id** | **Number** | A unique identifier for the generated content. | [optional] **language** | **String** | The language of the content. | **template** | **String** | The template of the content. | **templateParams** | [**LiltCreateContentTemplateParams**](LiltCreateContentTemplateParams.md) | | diff --git a/docs/LiltCreateContentRequest.md b/docs/LiltCreateContentRequest.md new file mode 100644 index 0000000..c6f0608 --- /dev/null +++ b/docs/LiltCreateContentRequest.md @@ -0,0 +1,13 @@ +# LiltNode.LiltCreateContentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | A name for the request content. | [optional] +**language** | **String** | The language of the content. | +**template** | **String** | The template of the content. | +**templateParams** | [**LiltCreateContentTemplateParams**](LiltCreateContentTemplateParams.md) | | +**preferences** | [**LiltCreateContentPreferences**](LiltCreateContentPreferences.md) | | [optional] + + diff --git a/docs/MemoriesApi.md b/docs/MemoriesApi.md index 237bde1..4e3a593 100644 --- a/docs/MemoriesApi.md +++ b/docs/MemoriesApi.md @@ -67,7 +67,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## deleteMemory @@ -121,7 +121,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## deleteSegmentFromMemory @@ -177,7 +177,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## downloadTermbase @@ -231,7 +231,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## exportTermbase @@ -285,7 +285,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## getMemory @@ -341,7 +341,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## importMemoryFile @@ -407,7 +407,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/octet-stream -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## queryMemory @@ -416,7 +416,7 @@ Name | Type | Description | Notes Query a Memory -Perform a translation memory query. +Perform a translation memory query. ### Example @@ -467,7 +467,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## updateMemory @@ -521,5 +521,5 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain diff --git a/docs/ProjectsApi.md b/docs/ProjectsApi.md index 859d859..ae82578 100644 --- a/docs/ProjectsApi.md +++ b/docs/ProjectsApi.md @@ -61,7 +61,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## deleteProject @@ -117,7 +117,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## getProjects @@ -187,5 +187,5 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain diff --git a/docs/TranslateApi.md b/docs/TranslateApi.md index 0350671..1be8544 100644 --- a/docs/TranslateApi.md +++ b/docs/TranslateApi.md @@ -70,7 +70,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## downloadFile @@ -124,7 +124,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/octet-stream +- **Accept**: application/octet-stream, text/plain, application/json ## monitorFileTranslation @@ -186,7 +186,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain ## translateSegmentPost @@ -242,5 +242,5 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain diff --git a/docs/WorkflowsApi.md b/docs/WorkflowsApi.md index fe5d3e4..a04567e 100644 --- a/docs/WorkflowsApi.md +++ b/docs/WorkflowsApi.md @@ -55,5 +55,5 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, application/octet-stream, text/plain diff --git a/package.json b/package.json index 38dd29b..a0c697a 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,8 @@ { "name": "lilt-node", - "version": "0.6.5", - "repository": { - "type": "git", - "url": "git+https://github.com/lilt/lilt-node.git" - }, - "description": "The_Lilt_REST_API_enables_programmatic_access_to_the_full_range_of_Lilt_backend_services_including___Training_of_and_translating_with_interactive_adaptive_machine_translation___Large_scale_translation_memory___The_Lexicon__a_large_scale_termbase___Programmatic_control_of_the_Lilt_CAT_environment___Translation_memory_synchronizationRequests_and_responses_are_in_JSON_format__The_REST_API_only_responds_to_HTTPS___SSL_requests__AuthenticationRequests_are_authenticated_via_REST_API_key_which_requires_the_Business_plan_Requests_are_authenticated_using__HTTP_Basic_Auth_https__en_wikipedia_org_wiki_Basic_access_authentication__Add_your_REST_API_key_as_both_the_username_and_password_For_development_you_may_also_pass_the_REST_API_key_via_the_key_query_parameter__This_is_less_secure_than_HTTP_Basic_Auth_and_is_not_recommended_for_production_use__QuotasOur_services_have_a_general_quota_of_4000_requests_per_minute__Should_you_hit_the_maximum_requests_per_minute_you_will_need_to_wait_60_seconds_before_you_can_send_another_request_", - "license": "Unlicense", + "version": "v3.0", + "description": "Lilt_REST_API_Support_https__lilt_atlassian_net_servicedesk_customer_portals___The_Lilt_REST_API_enables_programmatic_access_to_the_full_range_of_Lilt_backend_services_including___Training_of_and_translating_with_interactive_adaptive_machine_translation___Large_scale_translation_memory___The_Lexicon__a_large_scale_termbase___Programmatic_control_of_the_Lilt_CAT_environment___Translation_memory_synchronizationRequests_and_responses_are_in_JSON_format__The_REST_API_only_responds_to_HTTPS___SSL_requests__The_base_url_for_this_REST_API_is_https__api_lilt_com___AuthenticationRequests_are_authenticated_via_REST_API_key_which_requires_the_Business_plan_Requests_are_authenticated_using__HTTP_Basic_Auth_https__en_wikipedia_org_wiki_Basic_access_authentication__Add_your_REST_API_key_as_both_the_username_and_password_For_development_you_may_also_pass_the_REST_API_key_via_the_key_query_parameter__This_is_less_secure_than_HTTP_Basic_Auth_and_is_not_recommended_for_production_use__QuotasOur_services_have_a_general_quota_of_4000_requests_per_minute__Should_you_hit_the_maximum_requests_per_minute_you_will_need_to_wait_60_seconds_before_you_can_send_another_request_", + "license": "Lilt Platform Terms and Conditions", "main": "dist/index.js", "scripts": { "build": "babel src -d dist", diff --git a/src/ApiClient.js b/src/ApiClient.js index 48c6516..cb6d6d1 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -17,7 +17,7 @@ import querystring from "querystring"; /** * @module ApiClient -* @version 0.6.3 +* @version v3.0 */ /** diff --git a/src/api/CreateApi.js b/src/api/CreateApi.js index 529e6c0..492e9f4 100644 --- a/src/api/CreateApi.js +++ b/src/api/CreateApi.js @@ -14,15 +14,17 @@ import ApiClient from "../ApiClient"; import CreateConverterConfigParameters from '../model/CreateConverterConfigParameters'; +import Error from '../model/Error'; import GetLiltCreateContentResponse from '../model/GetLiltCreateContentResponse'; import InlineResponse200 from '../model/InlineResponse200'; import LiltCreateContent from '../model/LiltCreateContent'; +import LiltCreateContentRequest from '../model/LiltCreateContentRequest'; import SignLiltCreateTermsResponse from '../model/SignLiltCreateTermsResponse'; /** * Create service. * @module api/CreateApi -* @version 0.6.3 +* @version v3.0 */ export default class CreateApi { @@ -64,7 +66,7 @@ export default class CreateApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = InlineResponse200; return this.apiClient.callApi( '/v2/create/{contentId}', 'DELETE', @@ -90,7 +92,7 @@ export default class CreateApi { /** * Generate new Lilt Create content * Generate new Lilt Create content with the given parameters. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/create?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"language\":\"en-US\", \"template\":\"blog-post\", \"templateParams\":{ \"contentLength\":\"100\", \"language\":\"en-US\", \"sections\":[], \"summary\":\"a blog post about hiking\" }, \"preferences\":{\"tone\":\"formal\",\"styleguide\":\"\"} }' ``` - * @param {module:model/LiltCreateContent} templateParams Input parameters that determine what content will be generated. + * @param {module:model/LiltCreateContentRequest} templateParams Input parameters that determine what content will be generated. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ generateLiltCreateContentWithHttpInfo(templateParams) { @@ -111,7 +113,7 @@ export default class CreateApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/json']; - let accepts = []; + let accepts = ['application/octet-stream', 'text/plain', 'application/json']; let returnType = null; return this.apiClient.callApi( '/v2/create', 'POST', @@ -123,7 +125,7 @@ export default class CreateApi { /** * Generate new Lilt Create content * Generate new Lilt Create content with the given parameters. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/create?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"language\":\"en-US\", \"template\":\"blog-post\", \"templateParams\":{ \"contentLength\":\"100\", \"language\":\"en-US\", \"sections\":[], \"summary\":\"a blog post about hiking\" }, \"preferences\":{\"tone\":\"formal\",\"styleguide\":\"\"} }' ``` - * @param {module:model/LiltCreateContent} templateParams Input parameters that determine what content will be generated. + * @param {module:model/LiltCreateContentRequest} templateParams Input parameters that determine what content will be generated. * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ generateLiltCreateContent(templateParams) { @@ -159,7 +161,7 @@ export default class CreateApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = LiltCreateContent; return this.apiClient.callApi( '/v2/create/{contentId}', 'GET', @@ -201,7 +203,7 @@ export default class CreateApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = GetLiltCreateContentResponse; return this.apiClient.callApi( '/v2/create', 'GET', @@ -242,7 +244,7 @@ export default class CreateApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = []; + let accepts = ['application/octet-stream', 'text/plain', 'application/json']; let returnType = null; return this.apiClient.callApi( '/v2/create/preferences', 'GET', @@ -289,7 +291,7 @@ export default class CreateApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = []; + let accepts = ['application/octet-stream', 'text/plain', 'application/json']; let returnType = null; return this.apiClient.callApi( '/v2/create/{contentId}/create', 'GET', @@ -336,7 +338,7 @@ export default class CreateApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/json']; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = SignLiltCreateTermsResponse; return this.apiClient.callApi( '/v2/create/terms-and-conditions', 'POST', @@ -387,7 +389,7 @@ export default class CreateApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/json']; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = LiltCreateContent; return this.apiClient.callApi( '/v2/create/{contentId}', 'PUT', @@ -434,7 +436,7 @@ export default class CreateApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/json']; - let accepts = []; + let accepts = ['application/octet-stream', 'text/plain', 'application/json']; let returnType = null; return this.apiClient.callApi( '/v2/create/preferences', 'PUT', diff --git a/src/api/DocumentsApi.js b/src/api/DocumentsApi.js index deb2cea..455be24 100644 --- a/src/api/DocumentsApi.js +++ b/src/api/DocumentsApi.js @@ -19,7 +19,7 @@ import Error from '../model/Error'; /** * Documents service. * @module api/DocumentsApi -* @version 0.6.3 +* @version v3.0 */ export default class DocumentsApi { @@ -65,7 +65,7 @@ export default class DocumentsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/octet-stream']; + let accepts = ['application/octet-stream', 'text/plain', ]; let returnType = 'Blob'; return this.apiClient.callApi( '/v2/documents/files', 'GET', @@ -138,7 +138,7 @@ export default class DocumentsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/octet-stream']; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = DocumentWithSegments; return this.apiClient.callApi( '/v2/documents/files', 'POST', diff --git a/src/api/FilesApi.js b/src/api/FilesApi.js index a7b2a46..c3a7790 100644 --- a/src/api/FilesApi.js +++ b/src/api/FilesApi.js @@ -21,7 +21,7 @@ import SourceFile from '../model/SourceFile'; /** * Files service. * @module api/FilesApi -* @version 0.6.3 +* @version v3.0 */ export default class FilesApi { @@ -68,7 +68,7 @@ export default class FilesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/json']; - let accepts = []; + let accepts = ['application/octet-stream', 'text/plain', 'application/json']; let returnType = null; return this.apiClient.callApi( '/v2/files/labels', 'POST', @@ -117,7 +117,7 @@ export default class FilesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = FileDeleteResponse; return this.apiClient.callApi( '/v2/files', 'DELETE', @@ -165,7 +165,7 @@ export default class FilesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/octet-stream']; + let accepts = ['application/octet-stream', 'text/plain', 'application/json']; let returnType = 'Blob'; return this.apiClient.callApi( '/v2/files/download', 'GET', @@ -213,7 +213,7 @@ export default class FilesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = [SourceFile]; return this.apiClient.callApi( '/v2/files', 'GET', @@ -269,7 +269,7 @@ export default class FilesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = []; + let accepts = ['application/octet-stream', 'text/plain', 'application/json']; let returnType = null; return this.apiClient.callApi( '/v2/files/labels', 'DELETE', @@ -335,7 +335,7 @@ export default class FilesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/octet-stream']; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = SourceFile; return this.apiClient.callApi( '/v2/files', 'POST', diff --git a/src/api/JobsApi.js b/src/api/JobsApi.js index d7c573e..6699cb6 100644 --- a/src/api/JobsApi.js +++ b/src/api/JobsApi.js @@ -23,7 +23,7 @@ import JobUpdateParameters from '../model/JobUpdateParameters'; /** * Jobs service. * @module api/JobsApi -* @version 0.6.3 +* @version v3.0 */ export default class JobsApi { @@ -65,7 +65,7 @@ export default class JobsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = Job; return this.apiClient.callApi( '/v2/jobs/{jobId}/archive', 'POST', @@ -112,7 +112,7 @@ export default class JobsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/json']; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = Job; return this.apiClient.callApi( '/v2/jobs', 'POST', @@ -160,7 +160,7 @@ export default class JobsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = JobDeleteResponse; return this.apiClient.callApi( '/v2/jobs/{jobId}', 'DELETE', @@ -208,7 +208,7 @@ export default class JobsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = Job; return this.apiClient.callApi( '/v2/jobs/{jobId}/deliver', 'POST', @@ -256,10 +256,10 @@ export default class JobsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/octet-stream', 'text/plain', 'application/json']; let returnType = null; return this.apiClient.callApi( - '/v2/jobs/{jobId}/downlod', 'GET', + '/v2/jobs/{jobId}/download', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -310,7 +310,7 @@ export default class JobsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/octet-stream', 'text/plain', 'application/json']; let returnType = null; return this.apiClient.callApi( '/v2/jobs/{jobId}/export', 'GET', @@ -359,7 +359,7 @@ export default class JobsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = Job; return this.apiClient.callApi( '/v2/jobs/{jobId}', 'GET', @@ -407,7 +407,7 @@ export default class JobsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = JobLeverageStats; return this.apiClient.callApi( '/v2/jobs/{jobId}/stats', 'POST', @@ -455,7 +455,7 @@ export default class JobsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = Job; return this.apiClient.callApi( '/v2/jobs/{jobId}/reactivate', 'POST', @@ -507,7 +507,7 @@ export default class JobsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = [Job]; return this.apiClient.callApi( '/v2/jobs', 'GET', @@ -559,7 +559,7 @@ export default class JobsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = Job; return this.apiClient.callApi( '/v2/jobs/{jobId}/unarchive', 'POST', @@ -610,7 +610,7 @@ export default class JobsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/json']; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = Job; return this.apiClient.callApi( '/v2/jobs/{jobId}', 'PUT', diff --git a/src/api/LanguagesApi.js b/src/api/LanguagesApi.js index 98ba11e..db72ae6 100644 --- a/src/api/LanguagesApi.js +++ b/src/api/LanguagesApi.js @@ -19,7 +19,7 @@ import LanguagesResponse from '../model/LanguagesResponse'; /** * Languages service. * @module api/LanguagesApi -* @version 0.6.3 +* @version v3.0 */ export default class LanguagesApi { @@ -55,7 +55,7 @@ export default class LanguagesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = LanguagesResponse; return this.apiClient.callApi( '/v2/languages', 'GET', diff --git a/src/api/MemoriesApi.js b/src/api/MemoriesApi.js index 14f9fad..ad087a3 100644 --- a/src/api/MemoriesApi.js +++ b/src/api/MemoriesApi.js @@ -27,7 +27,7 @@ import TranslationMemoryEntry from '../model/TranslationMemoryEntry'; /** * Memories service. * @module api/MemoriesApi -* @version 0.6.3 +* @version v3.0 */ export default class MemoriesApi { @@ -68,7 +68,7 @@ export default class MemoriesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/json']; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = Memory; return this.apiClient.callApi( '/v2/memories', 'POST', @@ -116,7 +116,7 @@ export default class MemoriesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = MemoryDeleteResponse; return this.apiClient.callApi( '/v2/memories', 'DELETE', @@ -170,7 +170,7 @@ export default class MemoriesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = DeleteSegmentFromMemoryResponse; return this.apiClient.callApi( '/v2/memories/segment', 'DELETE', @@ -219,7 +219,7 @@ export default class MemoriesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = 'Blob'; return this.apiClient.callApi( '/v2/memories/termbase/download', 'GET', @@ -267,7 +267,7 @@ export default class MemoriesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = TermbaseExportResponse; return this.apiClient.callApi( '/v2/memories/termbase/export', 'POST', @@ -313,7 +313,7 @@ export default class MemoriesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = [Memory]; return this.apiClient.callApi( '/v2/memories', 'GET', @@ -381,7 +381,7 @@ export default class MemoriesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/octet-stream']; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = MemoryImportResponse; return this.apiClient.callApi( '/v2/memories/import', 'POST', @@ -412,7 +412,7 @@ export default class MemoriesApi { /** * Query a Memory - * Perform a translation memory query. + * Perform a translation memory query. * @param {Number} id A unique Memory identifier. * @param {String} query A source query. * @param {Object} opts Optional parameters @@ -445,7 +445,7 @@ export default class MemoriesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = [TranslationMemoryEntry]; return this.apiClient.callApi( '/v2/memories/query', 'GET', @@ -456,7 +456,7 @@ export default class MemoriesApi { /** * Query a Memory - * Perform a translation memory query. + * Perform a translation memory query. * @param {Number} id A unique Memory identifier. * @param {String} query A source query. * @param {Object} opts Optional parameters @@ -495,7 +495,7 @@ export default class MemoriesApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/json']; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = Memory; return this.apiClient.callApi( '/v2/memories', 'PUT', diff --git a/src/api/ProjectsApi.js b/src/api/ProjectsApi.js index 956bbcb..3ec7930 100644 --- a/src/api/ProjectsApi.js +++ b/src/api/ProjectsApi.js @@ -21,7 +21,7 @@ import ProjectDeleteResponse from '../model/ProjectDeleteResponse'; /** * Projects service. * @module api/ProjectsApi -* @version 0.6.3 +* @version v3.0 */ export default class ProjectsApi { @@ -62,7 +62,7 @@ export default class ProjectsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/json']; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = Project; return this.apiClient.callApi( '/v2/projects', 'POST', @@ -108,7 +108,7 @@ export default class ProjectsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = ProjectDeleteResponse; return this.apiClient.callApi( '/v2/projects', 'DELETE', @@ -169,7 +169,7 @@ export default class ProjectsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = [Project]; return this.apiClient.callApi( '/v2/projects', 'GET', diff --git a/src/api/TranslateApi.js b/src/api/TranslateApi.js index 313cfd9..b361810 100644 --- a/src/api/TranslateApi.js +++ b/src/api/TranslateApi.js @@ -21,7 +21,7 @@ import TranslationList from '../model/TranslationList'; /** * Translate service. * @module api/TranslateApi -* @version 0.6.3 +* @version v3.0 */ export default class TranslateApi { @@ -75,7 +75,7 @@ export default class TranslateApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = [TranslationInfo]; return this.apiClient.callApi( '/v2/translate/file', 'POST', @@ -127,7 +127,7 @@ export default class TranslateApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/octet-stream']; + let accepts = ['application/octet-stream', 'text/plain', 'application/json']; let returnType = 'Blob'; return this.apiClient.callApi( '/v2/translate/files', 'GET', @@ -179,7 +179,7 @@ export default class TranslateApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = [TranslationInfo]; return this.apiClient.callApi( '/v2/translate/file', 'GET', @@ -228,7 +228,7 @@ export default class TranslateApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = ['application/json']; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = TranslationList; return this.apiClient.callApi( '/v2/translate', 'POST', diff --git a/src/api/WorkflowsApi.js b/src/api/WorkflowsApi.js index cdd882b..f24f10e 100644 --- a/src/api/WorkflowsApi.js +++ b/src/api/WorkflowsApi.js @@ -13,12 +13,13 @@ import ApiClient from "../ApiClient"; +import Error from '../model/Error'; import WorkflowTemplate from '../model/WorkflowTemplate'; /** * Workflows service. * @module api/WorkflowsApi -* @version 0.6.3 +* @version v3.0 */ export default class WorkflowsApi { @@ -54,7 +55,7 @@ export default class WorkflowsApi { let authNames = ['ApiKeyAuth', 'BasicAuth']; let contentTypes = []; - let accepts = ['application/json']; + let accepts = ['application/json', 'application/octet-stream', 'text/plain']; let returnType = [WorkflowTemplate]; return this.apiClient.callApi( '/v2/workflows/templates', 'GET', diff --git a/src/index.js b/src/index.js index 6438a0d..a0c3a3d 100644 --- a/src/index.js +++ b/src/index.js @@ -34,6 +34,7 @@ import LanguagePair from './model/LanguagePair'; import LanguagesResponse from './model/LanguagesResponse'; import LiltCreateContent from './model/LiltCreateContent'; import LiltCreateContentPreferences from './model/LiltCreateContentPreferences'; +import LiltCreateContentRequest from './model/LiltCreateContentRequest'; import LiltCreateContentTemplateParams from './model/LiltCreateContentTemplateParams'; import Memory from './model/Memory'; import MemoryCreateParameters from './model/MemoryCreateParameters'; @@ -97,7 +98,7 @@ import WorkflowsApi from './api/WorkflowsApi'; * *

* @module index -* @version 0.6.3 +* @version v3.0 */ export { /** @@ -232,6 +233,12 @@ export { */ LiltCreateContentPreferences, + /** + * The LiltCreateContentRequest model constructor. + * @property {module:model/LiltCreateContentRequest} + */ + LiltCreateContentRequest, + /** * The LiltCreateContentTemplateParams model constructor. * @property {module:model/LiltCreateContentTemplateParams} diff --git a/src/model/AddFileLabelRequest.js b/src/model/AddFileLabelRequest.js index b67ca26..3731609 100644 --- a/src/model/AddFileLabelRequest.js +++ b/src/model/AddFileLabelRequest.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AddFileLabelRequest model module. * @module model/AddFileLabelRequest - * @version 0.6.3 + * @version v3.0 */ class AddFileLabelRequest { /** diff --git a/src/model/CreateConverterConfigParameters.js b/src/model/CreateConverterConfigParameters.js index 0c9c123..3076c54 100644 --- a/src/model/CreateConverterConfigParameters.js +++ b/src/model/CreateConverterConfigParameters.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CreateConverterConfigParameters model module. * @module model/CreateConverterConfigParameters - * @version 0.6.3 + * @version v3.0 */ class CreateConverterConfigParameters { /** diff --git a/src/model/DeleteSegmentFromMemoryResponse.js b/src/model/DeleteSegmentFromMemoryResponse.js index 68bb8d2..28a7e7d 100644 --- a/src/model/DeleteSegmentFromMemoryResponse.js +++ b/src/model/DeleteSegmentFromMemoryResponse.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The DeleteSegmentFromMemoryResponse model module. * @module model/DeleteSegmentFromMemoryResponse - * @version 0.6.3 + * @version v3.0 */ class DeleteSegmentFromMemoryResponse { /** diff --git a/src/model/DocumentWithSegments.js b/src/model/DocumentWithSegments.js index 3d5fc66..80ee133 100644 --- a/src/model/DocumentWithSegments.js +++ b/src/model/DocumentWithSegments.js @@ -18,7 +18,7 @@ import Segment from './Segment'; /** * The DocumentWithSegments model module. * @module model/DocumentWithSegments - * @version 0.6.3 + * @version v3.0 */ class DocumentWithSegments { /** diff --git a/src/model/DocumentWithoutSegments.js b/src/model/DocumentWithoutSegments.js index f9de196..63dc66a 100644 --- a/src/model/DocumentWithoutSegments.js +++ b/src/model/DocumentWithoutSegments.js @@ -17,7 +17,7 @@ import DocumentWithoutSegmentsStatus from './DocumentWithoutSegmentsStatus'; /** * The DocumentWithoutSegments model module. * @module model/DocumentWithoutSegments - * @version 0.6.3 + * @version v3.0 */ class DocumentWithoutSegments { /** diff --git a/src/model/DocumentWithoutSegmentsStatus.js b/src/model/DocumentWithoutSegmentsStatus.js index 75a6edc..5266bf2 100644 --- a/src/model/DocumentWithoutSegmentsStatus.js +++ b/src/model/DocumentWithoutSegmentsStatus.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The DocumentWithoutSegmentsStatus model module. * @module model/DocumentWithoutSegmentsStatus - * @version 0.6.3 + * @version v3.0 */ class DocumentWithoutSegmentsStatus { /** diff --git a/src/model/Error.js b/src/model/Error.js index 924e564..5cfc215 100644 --- a/src/model/Error.js +++ b/src/model/Error.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Error model module. * @module model/Error - * @version 0.6.3 + * @version v3.0 */ class Error { /** @@ -49,7 +49,7 @@ class Error { obj = obj || new Error(); if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], Object); + obj['message'] = ApiClient.convertToType(data['message'], 'String'); } } return obj; @@ -60,7 +60,7 @@ class Error { /** * A human-readable message describing the error. - * @member {Object} message + * @member {String} message */ Error.prototype['message'] = undefined; diff --git a/src/model/FileDeleteResponse.js b/src/model/FileDeleteResponse.js index e038891..207a502 100644 --- a/src/model/FileDeleteResponse.js +++ b/src/model/FileDeleteResponse.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The FileDeleteResponse model module. * @module model/FileDeleteResponse - * @version 0.6.3 + * @version v3.0 */ class FileDeleteResponse { /** diff --git a/src/model/GetLiltCreateContentResponse.js b/src/model/GetLiltCreateContentResponse.js index ee28ce2..08dfc07 100644 --- a/src/model/GetLiltCreateContentResponse.js +++ b/src/model/GetLiltCreateContentResponse.js @@ -17,7 +17,7 @@ import LiltCreateContent from './LiltCreateContent'; /** * The GetLiltCreateContentResponse model module. * @module model/GetLiltCreateContentResponse - * @version 0.6.3 + * @version v3.0 */ class GetLiltCreateContentResponse { /** diff --git a/src/model/InlineResponse200.js b/src/model/InlineResponse200.js index 2bbfdf9..07c4627 100644 --- a/src/model/InlineResponse200.js +++ b/src/model/InlineResponse200.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InlineResponse200 model module. * @module model/InlineResponse200 - * @version 0.6.3 + * @version v3.0 */ class InlineResponse200 { /** diff --git a/src/model/Job.js b/src/model/Job.js index d05b69c..69f707b 100644 --- a/src/model/Job.js +++ b/src/model/Job.js @@ -17,7 +17,7 @@ import JobStats from './JobStats'; /** * The Job model module. * @module model/Job - * @version 0.6.3 + * @version v3.0 */ class Job { /** diff --git a/src/model/JobCreateParameters.js b/src/model/JobCreateParameters.js index 0060bbb..0b0415d 100644 --- a/src/model/JobCreateParameters.js +++ b/src/model/JobCreateParameters.js @@ -17,7 +17,7 @@ import LanguagePair from './LanguagePair'; /** * The JobCreateParameters model module. * @module model/JobCreateParameters - * @version 0.6.3 + * @version v3.0 */ class JobCreateParameters { /** diff --git a/src/model/JobDeleteResponse.js b/src/model/JobDeleteResponse.js index 038b61b..38ca9ef 100644 --- a/src/model/JobDeleteResponse.js +++ b/src/model/JobDeleteResponse.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The JobDeleteResponse model module. * @module model/JobDeleteResponse - * @version 0.6.3 + * @version v3.0 */ class JobDeleteResponse { /** diff --git a/src/model/JobLeverageStats.js b/src/model/JobLeverageStats.js index 71e8cc1..92d7019 100644 --- a/src/model/JobLeverageStats.js +++ b/src/model/JobLeverageStats.js @@ -17,7 +17,7 @@ import ProjectStats from './ProjectStats'; /** * The JobLeverageStats model module. * @module model/JobLeverageStats - * @version 0.6.3 + * @version v3.0 */ class JobLeverageStats { /** diff --git a/src/model/JobProject.js b/src/model/JobProject.js index 566ebd8..7317522 100644 --- a/src/model/JobProject.js +++ b/src/model/JobProject.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The JobProject model module. * @module model/JobProject - * @version 0.6.3 + * @version v3.0 */ class JobProject { /** diff --git a/src/model/JobStats.js b/src/model/JobStats.js index dd02428..b380952 100644 --- a/src/model/JobStats.js +++ b/src/model/JobStats.js @@ -17,7 +17,7 @@ import JobProject from './JobProject'; /** * The JobStats model module. * @module model/JobStats - * @version 0.6.3 + * @version v3.0 */ class JobStats { /** diff --git a/src/model/JobUpdateParameters.js b/src/model/JobUpdateParameters.js index b2ae29d..e86d255 100644 --- a/src/model/JobUpdateParameters.js +++ b/src/model/JobUpdateParameters.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The JobUpdateParameters model module. * @module model/JobUpdateParameters - * @version 0.6.3 + * @version v3.0 */ class JobUpdateParameters { /** diff --git a/src/model/LanguagePair.js b/src/model/LanguagePair.js index 3eba549..1d8600c 100644 --- a/src/model/LanguagePair.js +++ b/src/model/LanguagePair.js @@ -17,7 +17,7 @@ import WorkflowStageAssignment from './WorkflowStageAssignment'; /** * The LanguagePair model module. * @module model/LanguagePair - * @version 0.6.3 + * @version v3.0 */ class LanguagePair { /** diff --git a/src/model/LanguagesResponse.js b/src/model/LanguagesResponse.js index 3448776..e59b6e9 100644 --- a/src/model/LanguagesResponse.js +++ b/src/model/LanguagesResponse.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The LanguagesResponse model module. * @module model/LanguagesResponse - * @version 0.6.3 + * @version v3.0 */ class LanguagesResponse { /** diff --git a/src/model/LiltCreateContent.js b/src/model/LiltCreateContent.js index 2295072..a4b837c 100644 --- a/src/model/LiltCreateContent.js +++ b/src/model/LiltCreateContent.js @@ -18,7 +18,7 @@ import LiltCreateContentTemplateParams from './LiltCreateContentTemplateParams'; /** * The LiltCreateContent model module. * @module model/LiltCreateContent - * @version 0.6.3 + * @version v3.0 */ class LiltCreateContent { /** @@ -56,6 +56,12 @@ class LiltCreateContent { if (data) { obj = obj || new LiltCreateContent(); + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } if (data.hasOwnProperty('language')) { obj['language'] = ApiClient.convertToType(data['language'], 'String'); } @@ -75,6 +81,18 @@ class LiltCreateContent { } +/** + * A name for the request content. + * @member {String} name + */ +LiltCreateContent.prototype['name'] = undefined; + +/** + * A unique identifier for the generated content. + * @member {Number} id + */ +LiltCreateContent.prototype['id'] = undefined; + /** * The language of the content. * @member {String} language diff --git a/src/model/LiltCreateContentPreferences.js b/src/model/LiltCreateContentPreferences.js index 5775d6c..c8424fb 100644 --- a/src/model/LiltCreateContentPreferences.js +++ b/src/model/LiltCreateContentPreferences.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The LiltCreateContentPreferences model module. * @module model/LiltCreateContentPreferences - * @version 0.6.3 + * @version v3.0 */ class LiltCreateContentPreferences { /** diff --git a/src/model/LiltCreateContentRequest.js b/src/model/LiltCreateContentRequest.js new file mode 100644 index 0000000..74976a8 --- /dev/null +++ b/src/model/LiltCreateContentRequest.js @@ -0,0 +1,115 @@ +/** + * Lilt REST API + * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. + * + * The version of the OpenAPI document: v3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import LiltCreateContentPreferences from './LiltCreateContentPreferences'; +import LiltCreateContentTemplateParams from './LiltCreateContentTemplateParams'; + +/** + * The LiltCreateContentRequest model module. + * @module model/LiltCreateContentRequest + * @version v3.0 + */ +class LiltCreateContentRequest { + /** + * Constructs a new LiltCreateContentRequest. + * Content Parameters for LiltCreate. + * @alias module:model/LiltCreateContentRequest + * @param language {String} The language of the content. + * @param template {String} The template of the content. + * @param templateParams {module:model/LiltCreateContentTemplateParams} + */ + constructor(language, template, templateParams) { + + LiltCreateContentRequest.initialize(this, language, template, templateParams); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, language, template, templateParams) { + obj['language'] = language; + obj['template'] = template; + obj['templateParams'] = templateParams; + } + + /** + * Constructs a LiltCreateContentRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LiltCreateContentRequest} obj Optional instance to populate. + * @return {module:model/LiltCreateContentRequest} The populated LiltCreateContentRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LiltCreateContentRequest(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('language')) { + obj['language'] = ApiClient.convertToType(data['language'], 'String'); + } + if (data.hasOwnProperty('template')) { + obj['template'] = ApiClient.convertToType(data['template'], 'String'); + } + if (data.hasOwnProperty('templateParams')) { + obj['templateParams'] = LiltCreateContentTemplateParams.constructFromObject(data['templateParams']); + } + if (data.hasOwnProperty('preferences')) { + obj['preferences'] = LiltCreateContentPreferences.constructFromObject(data['preferences']); + } + } + return obj; + } + + +} + +/** + * A name for the request content. + * @member {String} name + */ +LiltCreateContentRequest.prototype['name'] = undefined; + +/** + * The language of the content. + * @member {String} language + */ +LiltCreateContentRequest.prototype['language'] = undefined; + +/** + * The template of the content. + * @member {String} template + */ +LiltCreateContentRequest.prototype['template'] = undefined; + +/** + * @member {module:model/LiltCreateContentTemplateParams} templateParams + */ +LiltCreateContentRequest.prototype['templateParams'] = undefined; + +/** + * @member {module:model/LiltCreateContentPreferences} preferences + */ +LiltCreateContentRequest.prototype['preferences'] = undefined; + + + + + + +export default LiltCreateContentRequest; + diff --git a/src/model/LiltCreateContentTemplateParams.js b/src/model/LiltCreateContentTemplateParams.js index c513595..4ddcd9e 100644 --- a/src/model/LiltCreateContentTemplateParams.js +++ b/src/model/LiltCreateContentTemplateParams.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The LiltCreateContentTemplateParams model module. * @module model/LiltCreateContentTemplateParams - * @version 0.6.3 + * @version v3.0 */ class LiltCreateContentTemplateParams { /** diff --git a/src/model/Memory.js b/src/model/Memory.js index 47b99f7..08d760d 100644 --- a/src/model/Memory.js +++ b/src/model/Memory.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Memory model module. * @module model/Memory - * @version 0.6.3 + * @version v3.0 */ class Memory { /** diff --git a/src/model/MemoryCreateParameters.js b/src/model/MemoryCreateParameters.js index a868a02..d74af6d 100644 --- a/src/model/MemoryCreateParameters.js +++ b/src/model/MemoryCreateParameters.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The MemoryCreateParameters model module. * @module model/MemoryCreateParameters - * @version 0.6.3 + * @version v3.0 */ class MemoryCreateParameters { /** diff --git a/src/model/MemoryDeleteResponse.js b/src/model/MemoryDeleteResponse.js index 8a6dbed..d39b95a 100644 --- a/src/model/MemoryDeleteResponse.js +++ b/src/model/MemoryDeleteResponse.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The MemoryDeleteResponse model module. * @module model/MemoryDeleteResponse - * @version 0.6.3 + * @version v3.0 */ class MemoryDeleteResponse { /** diff --git a/src/model/MemoryImportResponse.js b/src/model/MemoryImportResponse.js index 2a5544b..86499ec 100644 --- a/src/model/MemoryImportResponse.js +++ b/src/model/MemoryImportResponse.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The MemoryImportResponse model module. * @module model/MemoryImportResponse - * @version 0.6.3 + * @version v3.0 */ class MemoryImportResponse { /** diff --git a/src/model/MemoryUpdateParameters.js b/src/model/MemoryUpdateParameters.js index 12ff0bd..14eb78d 100644 --- a/src/model/MemoryUpdateParameters.js +++ b/src/model/MemoryUpdateParameters.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The MemoryUpdateParameters model module. * @module model/MemoryUpdateParameters - * @version 0.6.3 + * @version v3.0 */ class MemoryUpdateParameters { /** diff --git a/src/model/Project.js b/src/model/Project.js index 8b6e493..79641b3 100644 --- a/src/model/Project.js +++ b/src/model/Project.js @@ -17,7 +17,7 @@ import DocumentWithoutSegments from './DocumentWithoutSegments'; /** * The Project model module. * @module model/Project - * @version 0.6.3 + * @version v3.0 */ class Project { /** diff --git a/src/model/ProjectCreateParameters.js b/src/model/ProjectCreateParameters.js index 255d415..c88506a 100644 --- a/src/model/ProjectCreateParameters.js +++ b/src/model/ProjectCreateParameters.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ProjectCreateParameters model module. * @module model/ProjectCreateParameters - * @version 0.6.3 + * @version v3.0 */ class ProjectCreateParameters { /** diff --git a/src/model/ProjectDeleteResponse.js b/src/model/ProjectDeleteResponse.js index 6ea5080..e6b8289 100644 --- a/src/model/ProjectDeleteResponse.js +++ b/src/model/ProjectDeleteResponse.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ProjectDeleteResponse model module. * @module model/ProjectDeleteResponse - * @version 0.6.3 + * @version v3.0 */ class ProjectDeleteResponse { /** diff --git a/src/model/ProjectStats.js b/src/model/ProjectStats.js index 0d15e47..7dba4d1 100644 --- a/src/model/ProjectStats.js +++ b/src/model/ProjectStats.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ProjectStats model module. * @module model/ProjectStats - * @version 0.6.3 + * @version v3.0 */ class ProjectStats { /** diff --git a/src/model/SDLXLIFFFilter.js b/src/model/SDLXLIFFFilter.js index 106676b..cb07d8c 100644 --- a/src/model/SDLXLIFFFilter.js +++ b/src/model/SDLXLIFFFilter.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SDLXLIFFFilter model module. * @module model/SDLXLIFFFilter - * @version 0.6.3 + * @version v3.0 */ class SDLXLIFFFilter { /** diff --git a/src/model/Segment.js b/src/model/Segment.js index aee1e96..0796034 100644 --- a/src/model/Segment.js +++ b/src/model/Segment.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Segment model module. * @module model/Segment - * @version 0.6.3 + * @version v3.0 */ class Segment { /** diff --git a/src/model/SignLiltCreateTermsResponse.js b/src/model/SignLiltCreateTermsResponse.js index 69129d7..1c5664d 100644 --- a/src/model/SignLiltCreateTermsResponse.js +++ b/src/model/SignLiltCreateTermsResponse.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SignLiltCreateTermsResponse model module. * @module model/SignLiltCreateTermsResponse - * @version 0.6.3 + * @version v3.0 */ class SignLiltCreateTermsResponse { /** diff --git a/src/model/SourceFile.js b/src/model/SourceFile.js index b92075c..27d98bf 100644 --- a/src/model/SourceFile.js +++ b/src/model/SourceFile.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SourceFile model module. * @module model/SourceFile - * @version 0.6.3 + * @version v3.0 */ class SourceFile { /** diff --git a/src/model/TermbaseExportResponse.js b/src/model/TermbaseExportResponse.js index 2c4bb7b..22f4247 100644 --- a/src/model/TermbaseExportResponse.js +++ b/src/model/TermbaseExportResponse.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The TermbaseExportResponse model module. * @module model/TermbaseExportResponse - * @version 0.6.3 + * @version v3.0 */ class TermbaseExportResponse { /** diff --git a/src/model/TranslateSegmentBody.js b/src/model/TranslateSegmentBody.js index f238b7f..86cc0c5 100644 --- a/src/model/TranslateSegmentBody.js +++ b/src/model/TranslateSegmentBody.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The TranslateSegmentBody model module. * @module model/TranslateSegmentBody - * @version 0.6.3 + * @version v3.0 */ class TranslateSegmentBody { /** diff --git a/src/model/Translation.js b/src/model/Translation.js index 9a47671..3d0a96b 100644 --- a/src/model/Translation.js +++ b/src/model/Translation.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Translation model module. * @module model/Translation - * @version 0.6.3 + * @version v3.0 */ class Translation { /** diff --git a/src/model/TranslationInfo.js b/src/model/TranslationInfo.js index 79798c7..3241f3e 100644 --- a/src/model/TranslationInfo.js +++ b/src/model/TranslationInfo.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The TranslationInfo model module. * @module model/TranslationInfo - * @version 0.6.3 + * @version v3.0 */ class TranslationInfo { /** diff --git a/src/model/TranslationList.js b/src/model/TranslationList.js index 0199b56..23dfde1 100644 --- a/src/model/TranslationList.js +++ b/src/model/TranslationList.js @@ -17,7 +17,7 @@ import Translation from './Translation'; /** * The TranslationList model module. * @module model/TranslationList - * @version 0.6.3 + * @version v3.0 */ class TranslationList { /** diff --git a/src/model/TranslationMemoryEntry.js b/src/model/TranslationMemoryEntry.js index 9d134cf..5d67048 100644 --- a/src/model/TranslationMemoryEntry.js +++ b/src/model/TranslationMemoryEntry.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The TranslationMemoryEntry model module. * @module model/TranslationMemoryEntry - * @version 0.6.3 + * @version v3.0 */ class TranslationMemoryEntry { /** diff --git a/src/model/WorkflowStageAssignment.js b/src/model/WorkflowStageAssignment.js index da7610e..1fa8892 100644 --- a/src/model/WorkflowStageAssignment.js +++ b/src/model/WorkflowStageAssignment.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The WorkflowStageAssignment model module. * @module model/WorkflowStageAssignment - * @version 0.6.3 + * @version v3.0 */ class WorkflowStageAssignment { /** diff --git a/src/model/WorkflowStageTemplate.js b/src/model/WorkflowStageTemplate.js index 430ab1e..1884be0 100644 --- a/src/model/WorkflowStageTemplate.js +++ b/src/model/WorkflowStageTemplate.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The WorkflowStageTemplate model module. * @module model/WorkflowStageTemplate - * @version 0.6.3 + * @version v3.0 */ class WorkflowStageTemplate { /** diff --git a/src/model/WorkflowTemplate.js b/src/model/WorkflowTemplate.js index 3538fda..71bf13a 100644 --- a/src/model/WorkflowTemplate.js +++ b/src/model/WorkflowTemplate.js @@ -17,7 +17,7 @@ import WorkflowStageTemplate from './WorkflowStageTemplate'; /** * The WorkflowTemplate model module. * @module model/WorkflowTemplate - * @version 0.6.3 + * @version v3.0 */ class WorkflowTemplate { /** diff --git a/test/model/LiltCreateContentRequest.spec.js b/test/model/LiltCreateContentRequest.spec.js new file mode 100644 index 0000000..87a1cca --- /dev/null +++ b/test/model/LiltCreateContentRequest.spec.js @@ -0,0 +1,89 @@ +/** + * Lilt REST API + * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. + * + * The version of the OpenAPI document: v3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.LiltNode); + } +}(this, function(expect, LiltNode) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new LiltNode.LiltCreateContentRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LiltCreateContentRequest', function() { + it('should create an instance of LiltCreateContentRequest', function() { + // uncomment below and update the code to test LiltCreateContentRequest + //var instane = new LiltNode.LiltCreateContentRequest(); + //expect(instance).to.be.a(LiltNode.LiltCreateContentRequest); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instane = new LiltNode.LiltCreateContentRequest(); + //expect(instance).to.be(); + }); + + it('should have the property language (base name: "language")', function() { + // uncomment below and update the code to test the property language + //var instane = new LiltNode.LiltCreateContentRequest(); + //expect(instance).to.be(); + }); + + it('should have the property template (base name: "template")', function() { + // uncomment below and update the code to test the property template + //var instane = new LiltNode.LiltCreateContentRequest(); + //expect(instance).to.be(); + }); + + it('should have the property templateParams (base name: "templateParams")', function() { + // uncomment below and update the code to test the property templateParams + //var instane = new LiltNode.LiltCreateContentRequest(); + //expect(instance).to.be(); + }); + + it('should have the property preferences (base name: "preferences")', function() { + // uncomment below and update the code to test the property preferences + //var instane = new LiltNode.LiltCreateContentRequest(); + //expect(instance).to.be(); + }); + + }); + +}));