Skip to content

Commit

Permalink
Deploying from phrase/openapi@9c9c9598
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Oct 2, 2024
1 parent 39c1077 commit da2059c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/apis/LocalesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export interface LocaleDownloadRequest {
useLastReviewedVersion?: boolean;
fallbackLocaleId?: string;
sourceLocaleId?: string;
translationKeyPrefix?: string;
filterByPrefix?: boolean;
customMetadataFilters?: object;
}

Expand Down Expand Up @@ -335,6 +337,14 @@ export class LocalesApi extends runtime.BaseAPI {
queryParameters['source_locale_id'] = requestParameters.sourceLocaleId;
}

if (requestParameters.translationKeyPrefix !== undefined) {
queryParameters['translation_key_prefix'] = requestParameters.translationKeyPrefix;
}

if (requestParameters.filterByPrefix !== undefined) {
queryParameters['filter_by_prefix'] = requestParameters.filterByPrefix;
}

if (requestParameters.customMetadataFilters !== undefined) {
queryParameters['custom_metadata_filters'] = requestParameters.customMetadataFilters;
}
Expand Down
5 changes: 5 additions & 0 deletions src/apis/UploadsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface UploadCreateRequest {
autotranslate?: boolean;
markReviewed?: boolean;
tagOnlyAffectedKeys?: boolean;
translationKeyPrefix?: string;
}

export interface UploadShowRequest {
Expand Down Expand Up @@ -194,6 +195,10 @@ export class UploadsApi extends runtime.BaseAPI {
formParams.append('tag_only_affected_keys', requestParameters.tagOnlyAffectedKeys as any);
}

if (requestParameters.translationKeyPrefix !== undefined) {
formParams.append('translation_key_prefix', requestParameters.translationKeyPrefix as any);
}

const response = await this.request({
path: `/projects/{project_id}/uploads`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters.projectId))),
method: 'POST',
Expand Down

0 comments on commit da2059c

Please sign in to comment.