@crowdin/crowdin-api-client
Advanced tools
Comparing version 1.23.4 to 1.24.0
@@ -71,2 +71,3 @@ import { CrowdinApi, DownloadLink, PaginationOptions, PatchRequest, ResponseList, ResponseObject, Status } from '../core'; | ||
isMultilingual: boolean; | ||
includeProjectSourceLanguage: boolean; | ||
labelIds: number[]; | ||
@@ -83,2 +84,3 @@ createdAt: string; | ||
isMultilingual?: boolean; | ||
includeProjectSourceLanguage?: boolean; | ||
labelIds?: number[]; | ||
@@ -85,0 +87,0 @@ } |
@@ -62,2 +62,3 @@ import { CrowdinApi, PaginationOptions, PatchRequest, ResponseList, ResponseObject } from '../core'; | ||
fileIds: number[]; | ||
bundleIds: number[]; | ||
format: string; | ||
@@ -70,7 +71,17 @@ exportPattern: string; | ||
interface CreateDistributionRequest { | ||
exportMode?: ExportMode; | ||
name: string; | ||
fileIds: number[]; | ||
exportMode?: ExportMode; | ||
fileIds?: number[]; | ||
bundleIds?: number[]; | ||
/** | ||
* @deprecated This property is deprecated. Use bundleIds instead | ||
*/ | ||
format?: string; | ||
/** | ||
* @deprecated This property is deprecated. Use bundleIds instead | ||
*/ | ||
exportPattern?: string; | ||
/** | ||
* @deprecated This property is deprecated. Use bundleIds instead | ||
*/ | ||
labelIds?: number[]; | ||
@@ -77,0 +88,0 @@ } |
@@ -10,2 +10,3 @@ import { Bundles } from './bundles'; | ||
import { MachineTranslation } from './machineTranslation'; | ||
import { Notifications } from './notifications'; | ||
import { OrganizationWebhooks } from './organizationWebhooks'; | ||
@@ -38,2 +39,3 @@ import { ProjectsGroups } from './projectsGroups'; | ||
export * from './machineTranslation'; | ||
export * from './notifications'; | ||
export * from './organizationWebhooks'; | ||
@@ -90,3 +92,4 @@ export * from './projectsGroups'; | ||
readonly bundlesApi: Bundles; | ||
readonly notificationsApi: Notifications; | ||
constructor(credentials: Credentials, config?: ClientConfig); | ||
} |
@@ -26,2 +26,3 @@ "use strict"; | ||
const machineTranslation_1 = require("./machineTranslation"); | ||
const notifications_1 = require("./notifications"); | ||
const organizationWebhooks_1 = require("./organizationWebhooks"); | ||
@@ -54,2 +55,3 @@ const projectsGroups_1 = require("./projectsGroups"); | ||
__exportStar(require("./machineTranslation"), exports); | ||
__exportStar(require("./notifications"), exports); | ||
__exportStar(require("./organizationWebhooks"), exports); | ||
@@ -105,4 +107,5 @@ __exportStar(require("./projectsGroups"), exports); | ||
this.bundlesApi = new bundles_1.Bundles(credentials, config); | ||
this.notificationsApi = new notifications_1.Notifications(credentials, config); | ||
} | ||
} | ||
exports.default = Client; |
{ | ||
"name": "@crowdin/crowdin-api-client", | ||
"version": "1.23.4", | ||
"version": "1.24.0", | ||
"description": "JavaScript library for Crowdin API", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
@@ -145,3 +145,3 @@ [<p align='center'><img src='https://support.crowdin.com/assets/logos/crowdin-dark-symbol.png' data-canonical-src='https://support.crowdin.com/assets/logos/crowdin-dark-symbol.png' width='150' height='150' align='center'/></p>](https://crowdin.com) | ||
```javascript | ||
import crowdin, { SourceFilesModel } from '@crowdin/crowdin-api-client'; | ||
import crowdin from '@crowdin/crowdin-api-client'; | ||
@@ -154,3 +154,3 @@ // initialization of crowdin client | ||
translationsApi | ||
} = new crowdin({ | ||
} = new crowdin.default({ | ||
token: 'personalAccessToken', | ||
@@ -157,0 +157,0 @@ organization: 'organizationName' // optional |
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
381851
43255
71
8706
2