Skip to content

Commit

Permalink
Version 8.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Oct 20, 2022
1 parent 59ed1ff commit b648ce1
Show file tree
Hide file tree
Showing 12 changed files with 3,421 additions and 1,042 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
389 changes: 195 additions & 194 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": "8.1.0",
"version": "8.2.0",
"description": "Official Lokalise API 2.0 Node.js client",
"license": "BSD-3-Clause",
"repository": {
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": "9367803563515cbe23fa19.58441884",
"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 14:35:42 (Etc/UTC)",
"created_at_timestamp": 1666276542,
"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 14:35:43 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",
"7c37845d-f6b5-4dd8-b540-26af2ed1fc89",
"Expires",
"Thu, 20 Oct 2022 14:35:43 GMT",
"Set-Cookie",
"PHPSESSID=deleted; expires=Wed, 20-Oct-2021 14:35:42 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/9367803563515cbe23fa19.58441884",
"body": "",
"status": 200,
"response": {
"project_id": "803826145ba90b42d5d860.46800099",
"project_id": "9367803563515cbe23fa19.58441884",
"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 14:35:42 (Etc/UTC)",
"created_at_timestamp": 1666276542,
"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 14:40:15 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",
"fed84795-4631-4c67-aa7f-8ea56fd157ec",
"Expires",
"Thu, 20 Oct 2022 14:40:15 GMT",
"Set-Cookie",
"PHPSESSID=deleted; expires=Wed, 20-Oct-2021 14:40:14 GMT; Max-Age=0; path=/; httponly",
"Access-Control-Allow-Origin",
"*",
"Access-Control-Allow-Headers",
"Content-Type"
]
],
"responseIsBinary": false
}
]
Loading

0 comments on commit b648ce1

Please sign in to comment.