Skip to content

Commit

Permalink
Version 9.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Oct 20, 2022
1 parent 4e1cffb commit 4390650
Show file tree
Hide file tree
Showing 14 changed files with 3,384 additions and 1,055 deletions.
1 change: 0 additions & 1 deletion dist/interfaces/project_settings.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export interface ProjectSettings {
per_platform_key_names: boolean;
reviewing: boolean;
upvoting: boolean;
auto_toggle_unverified: boolean;
offline_translation: boolean;
key_editing: boolean;
Expand Down
6 changes: 3 additions & 3 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ GEM
octokit (~> 4.0)
public_suffix (>= 3.0, < 5.0)
typhoeus (~> 1.3)
html-pipeline (2.14.2)
html-pipeline (2.14.3)
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.8.0)
Expand Down Expand Up @@ -211,7 +211,7 @@ GEM
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.16.3)
nokogiri (1.13.8-x64-mingw-ucrt)
nokogiri (1.13.9-x64-mingw-ucrt)
racc (~> 1.4)
octokit (4.25.1)
faraday (>= 1, < 3)
Expand Down Expand Up @@ -268,4 +268,4 @@ DEPENDENCIES
wdm (~> 0.1.0)

BUNDLED WITH
2.3.22
2.3.24
9 changes: 9 additions & 0 deletions docs/additional_info/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 9.2.0 (20-Oct-2022)

* We are sunsetting the Upvoting feature and thus the `upvoting` attribute from the `settings` object was removed from the response body of the following endpoints:
+ List all projects
+ Create a project
+ Retrieve a project
+ Update a project
+ Restore a snapshot

## 9.1.0 (13-Oct-2022)

* Export new interfaces and types, specifically `KeyParamsWithPagination`, `CreateKeyData`, and others.
Expand Down
408 changes: 204 additions & 204 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lokalise/node-api",
"version": "9.1.0",
"version": "9.2.0",
"description": "Official Lokalise API 2.0 Node.js client",
"license": "BSD-3-Clause",
"type": "module",
Expand Down
1 change: 0 additions & 1 deletion src/interfaces/project_settings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export interface ProjectSettings {
per_platform_key_names: boolean;
reviewing: boolean;
upvoting: boolean;
auto_toggle_unverified: boolean;
offline_translation: boolean;
key_editing: boolean;
Expand Down
55 changes: 35 additions & 20 deletions test/cassettes/Projects create.cassette
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
},
"status": 200,
"response": {
"project_id": "580641925d0a726ead2fd7.11048498",
"project_id": "26981059635185cc13e557.06057938",
"project_type": "localization_files",
"name": "Node.js test",
"description": "Test description",
"created_at": "2019-06-19 17:35:42 (Etc/UTC)",
"created_at_timestamp": 1560965742,
"created_at": "2022-10-20 17:30:52 (Etc/UTC)",
"created_at_timestamp": 1666287052,
"created_by": 20181,
"created_by_email": "[email protected]",
"team_id": 176692,
Expand All @@ -23,11 +23,14 @@
"settings": {
"per_platform_key_names": false,
"reviewing": true,
"upvoting": false,
"auto_toggle_unverified": true,
"offline_translation": false,
"key_editing": true,
"inline_machine_translations": true
"inline_machine_translations": true,
"branching": false,
"segmentation": false,
"custom_translation_statuses": false,
"custom_translation_statuses_allow_multiple": false
},
"statistics": {
"progress_total": 0,
Expand All @@ -50,7 +53,8 @@
"different_brackets": 0,
"different_numbers": 0,
"double_space": 0,
"special_placeholder": 0
"special_placeholder": 0,
"unbalanced_brackets": 0
},
"languages": [
{
Expand All @@ -63,34 +67,45 @@
}
},
"rawHeaders": [
"Server",
"nginx",
"Date",
"Wed, 19 Jun 2019 17:35:42 GMT",
"Thu, 20 Oct 2022 17:30:53 GMT",
"Content-Type",
"application/json",
"Transfer-Encoding",
"chunked",
"Connection",
"close",
"Server",
"nginx",
"Vary",
"Accept-Encoding",
"Set-Cookie",
"PHPSESSID=c625272d9614b321e5db30051d1c9d6c; expires=Sun, 18-Aug-2019 17:35:42 GMT; Max-Age=5184000; path=/; secure; HttpOnly",
"Expires",
"Thu, 19 Nov 1981 08:52:00 GMT",
"Cache-Control",
"no-store, no-cache, must-revalidate",
"Pragma",
"no-cache",
"Pragma",
"max-age=0, must-revalidate, no-cache, no-store, private",
"pragma",
"no-cache",
"Cache-Control",
"no-store, no-cache",
"Allow",
"GET",
"X-Content-Type-Options",
"nosniff",
"X-Frame-Options",
"deny",
"X-XSS-Protection",
"1; mode=block",
"Strict-Transport-Security",
"max-age=31536000",
"Referrer-Policy",
"origin",
"X-Lokalise-Process-Id",
"750b96b8-0c6b-4c2a-aaed-1df37e8f6867",
"Expires",
"Thu, 20 Oct 2022 17:30:53 GMT",
"Set-Cookie",
"PHPSESSID=deleted; expires=Wed, 20-Oct-2021 17:30:52 GMT; Max-Age=0; path=/; httponly",
"Access-Control-Allow-Origin",
"*",
"Access-Control-Allow-Headers",
"Content-Type"
]
],
"responseIsBinary": false
}
]
147 changes: 47 additions & 100 deletions test/cassettes/Projects get.cassette
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
{
"scope": "https://api.lokalise.com:443",
"method": "GET",
"path": "/api2/projects/803826145ba90b42d5d860.46800099",
"path": "/api2/projects/26981059635185cc13e557.06057938",
"body": "",
"status": 200,
"response": {
"project_id": "803826145ba90b42d5d860.46800099",
"project_id": "26981059635185cc13e557.06057938",
"project_type": "localization_files",
"name": "demo phoenix",
"description": "",
"created_at": "2018-09-24 16:05:22 (Etc/UTC)",
"created_at_timestamp": 1537805122,
"name": "Node.js test",
"description": "Test description",
"created_at": "2022-10-20 17:30:52 (Etc/UTC)",
"created_at_timestamp": 1666287052,
"created_by": 20181,
"created_by_email": "[email protected]",
"team_id": 176692,
Expand All @@ -20,23 +20,26 @@
"settings": {
"per_platform_key_names": false,
"reviewing": true,
"upvoting": false,
"auto_toggle_unverified": true,
"offline_translation": true,
"offline_translation": false,
"key_editing": true,
"inline_machine_translations": true
"inline_machine_translations": true,
"branching": false,
"segmentation": false,
"custom_translation_statuses": false,
"custom_translation_statuses_allow_multiple": false
},
"statistics": {
"progress_total": 17,
"keys_total": 18,
"team": 8,
"base_words": 39,
"qa_issues_total": 256,
"progress_total": 0,
"keys_total": 0,
"team": 2,
"base_words": 0,
"qa_issues_total": 0,
"qa_issues": {
"not_reviewed": 185,
"unverified": 66,
"spelling_grammar": 4,
"inconsistent_placeholders": 1,
"not_reviewed": 0,
"unverified": 0,
"spelling_grammar": 0,
"inconsistent_placeholders": 0,
"inconsistent_html": 0,
"different_number_of_urls": 0,
"different_urls": 0,
Expand All @@ -47,113 +50,57 @@
"different_brackets": 0,
"different_numbers": 0,
"double_space": 0,
"special_placeholder": 0
"special_placeholder": 0,
"unbalanced_brackets": 0
},
"languages": [
{
"language_id": 640,
"language_iso": "en",
"progress": 100,
"words_to_do": 0
},
{
"language_id": 597,
"language_iso": "ru",
"progress": 66,
"words_to_do": 13
},
{
"language_id": 673,
"language_iso": "f_over",
"progress": 25,
"words_to_do": 29
},
{
"language_id": 1055,
"language_iso": "en-us",
"progress": 0,
"words_to_do": 39
},
{
"language_id": 10111,
"language_iso": "custom_111",
"progress": 0,
"words_to_do": 39
},
{
"language_id": 764,
"language_iso": "ca",
"progress": 2,
"words_to_do": 38
},
{
"language_id": 934,
"language_iso": "bm",
"progress": 0,
"words_to_do": 39
},
{
"language_id": 803,
"language_iso": "sq",
"progress": 0,
"words_to_do": 39
},
{
"language_id": 731,
"language_iso": "ar_001",
"progress": 2,
"words_to_do": 38
},
{
"language_id": 601,
"language_iso": "zh_TW",
"progress": 0,
"words_to_do": 39
},
{
"language_id": 1056,
"language_iso": "es",
"progress": 10,
"words_to_do": 35
},
{
"language_id": 737,
"language_iso": "nl",
"progress": 0,
"words_to_do": 39
"words_to_do": 0
}
]
}
},
"rawHeaders": [
"Server",
"nginx",
"Date",
"Wed, 19 Jun 2019 17:38:48 GMT",
"Thu, 20 Oct 2022 17:32:53 GMT",
"Content-Type",
"application/json",
"Transfer-Encoding",
"chunked",
"Connection",
"close",
"Server",
"nginx",
"Vary",
"Accept-Encoding",
"Set-Cookie",
"PHPSESSID=785b770ea9a6bd1f2c5221a739608395; expires=Sun, 18-Aug-2019 17:38:47 GMT; Max-Age=5184000; path=/; secure; HttpOnly",
"Expires",
"Thu, 19 Nov 1981 08:52:00 GMT",
"Cache-Control",
"no-store, no-cache, must-revalidate",
"Pragma",
"no-cache",
"Pragma",
"max-age=0, must-revalidate, no-cache, no-store, private",
"pragma",
"no-cache",
"Cache-Control",
"no-store, no-cache",
"X-Content-Type-Options",
"nosniff",
"X-Frame-Options",
"deny",
"X-XSS-Protection",
"1; mode=block",
"Strict-Transport-Security",
"max-age=31536000",
"Referrer-Policy",
"origin",
"X-Lokalise-Process-Id",
"eb6dd41a-584d-4bb5-9421-cb65c5025634",
"Expires",
"Thu, 20 Oct 2022 17:32:53 GMT",
"Set-Cookie",
"PHPSESSID=deleted; expires=Wed, 20-Oct-2021 17:32:52 GMT; Max-Age=0; path=/; httponly",
"Access-Control-Allow-Origin",
"*",
"Access-Control-Allow-Headers",
"Content-Type"
]
],
"responseIsBinary": false
}
]
Loading

0 comments on commit 4390650

Please sign in to comment.