diff --git a/src/apis/LocalesApi.ts b/src/apis/LocalesApi.ts index faa937b..7b2e495 100644 --- a/src/apis/LocalesApi.ts +++ b/src/apis/LocalesApi.ts @@ -73,6 +73,8 @@ export interface LocaleDownloadRequest { useLastReviewedVersion?: boolean; fallbackLocaleId?: string; sourceLocaleId?: string; + translationKeyPrefix?: string; + filterByPrefix?: boolean; customMetadataFilters?: object; } @@ -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; } diff --git a/src/apis/UploadsApi.ts b/src/apis/UploadsApi.ts index 8e9605a..5bf6bc0 100644 --- a/src/apis/UploadsApi.ts +++ b/src/apis/UploadsApi.ts @@ -40,6 +40,7 @@ export interface UploadCreateRequest { autotranslate?: boolean; markReviewed?: boolean; tagOnlyAffectedKeys?: boolean; + translationKeyPrefix?: string; } export interface UploadShowRequest { @@ -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',