-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LOC-1114 - Figma Fixes and Improvements (#22)
* ✨ feat(Import): add upload status endpoint * ✨ feat(Key): add deprecate endpoint * 🐛 fix:(screenshots): fix `removeMetadata` data type * 🐛 fix(screenshots): fix `addMetadata` and `removeMetadata` params casing * ✨ feat(`listKeys`): add support for `metadata` parameter * 🚨 lint: fix --------- Co-authored-by: david-vaclavek <[email protected]>
- Loading branch information
1 parent
cf94fbe
commit 7335902
Showing
9 changed files
with
112 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export enum UploadStatus { | ||
NOT_FOUND = 'not_found', | ||
SCHEDULED = 'scheduled', | ||
IN_PROGRESS = 'in_progress', | ||
DONE = 'done', | ||
INVALID_ID = 'invalid_id', | ||
ERROR = 'error', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Project } from '@/types/project'; | ||
|
||
export type ImportProgressRequest = { | ||
/** | ||
* Project object or Project ID. | ||
*/ | ||
project: Project | string; | ||
|
||
/** | ||
* Import session identifier. | ||
*/ | ||
importBatch: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Project } from '@/types/project'; | ||
import { Key } from '@/types/key'; | ||
|
||
export type KeyDeprecateRequest = { | ||
/** | ||
* Project object or Project ID. | ||
*/ | ||
project: Project | string; | ||
|
||
/** | ||
* List of keys identifiers to deprecate. | ||
*/ | ||
phrases: Key[] | Pick<Key, 'id'>[] | string[]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { UploadStatus } from '@/enums/upload-status'; | ||
|
||
export type UploadSessionStatus = { | ||
/** | ||
* Possible status of the upload session. | ||
*/ | ||
status: UploadStatus; | ||
|
||
/** | ||
* Number of keys added in the upload session. | ||
*/ | ||
added?: number; | ||
|
||
/** | ||
* Number of keys updated in the upload session. | ||
*/ | ||
updated?: number; | ||
|
||
/** | ||
* Number of keys deprecated in the upload session. | ||
*/ | ||
deprecated?: number; | ||
}; |