Skip to content

Commit

Permalink
v13.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Feb 8, 2025
1 parent 6d8de6e commit 43dba4e
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 119 deletions.
10 changes: 8 additions & 2 deletions dist/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,13 @@ declare abstract class BaseCollection<ElementType, SecondaryType = ElementType>
* @throws Error if the expected secondary element name is missing.
*/
protected populateSecondaryObjectFromJsonRoot(json: Keyable, headers: Headers): SecondaryType;
/**
* Parse a JSON response that contains a secondary item.
* @param json The raw JSON object returned by the API.
* @param headers The response headers.
* @returns The parsed SecondaryType instance.
*/
protected populateSecondaryObjectFromJson(json: Keyable, headers: Headers): SecondaryType;
/**
* Parse a JSON response that contains an array of items along with bulk result details.
* @param json The raw JSON object returned by the API.
Expand Down Expand Up @@ -613,7 +620,6 @@ declare class File extends BaseModel implements File$1 {
}

type ProcessDetails$1 = {
files: Keyable[];
[key: string]: any;
};
interface QueuedProcess$1 {
Expand All @@ -629,7 +635,6 @@ interface QueuedProcess$1 {
}

type ProcessDetails = {
files: Keyable[];
[key: string]: any;
};
declare class QueuedProcess extends BaseModel implements QueuedProcess$1 {
Expand Down Expand Up @@ -745,6 +750,7 @@ declare class Files extends BaseCollection<File, QueuedProcess> {
list(request_params: ListFileParams): Promise<PaginatedResult$1<File>>;
upload(project_id: string, upload: UploadFileParams): Promise<QueuedProcess>;
download(project_id: string, download: DownloadFileParams): Promise<DownloadBundle>;
async_download(project_id: string, download: DownloadFileParams): Promise<QueuedProcess>;
delete(file_id: string | number, request_params: ProjectOnly): Promise<FileDeleted>;
}

Expand Down
18 changes: 18 additions & 0 deletions dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/_data/api_items.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
path: fetch-translation-files
- title: Download translation files
path: download-translation-files
- title: Download translation files (async)
path: download-translation-files-async
- title: Upload translation file
path: upload-translation-file
- title: Delete translation file
Expand Down
2 changes: 1 addition & 1 deletion docs/additional_info/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 13.1.0 (07-Feb-2025)
## 13.1.0 (08-Feb-2025)

* Added support for [async file downloads](https://developers.lokalise.com/reference/download-files-async):

Expand Down
Loading

0 comments on commit 43dba4e

Please sign in to comment.