@emilgroup/translation-sdk 1.0.1-beta.4 → 1.1.1-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/base.ts +4 -0
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/translation-api.d.ts +8 -8
- package/dist/base.js +3 -1
- package/dist/common.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/translation-sdk@1.
|
|
20
|
+
npm install @emilgroup/translation-sdk@1.1.1-beta.10 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/translation-sdk@1.
|
|
24
|
+
yarn add @emilgroup/translation-sdk@1.1.1-beta.10
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `TranslationApi`.
|
package/base.ts
CHANGED
|
@@ -66,5 +66,5 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
* @memberof DefaultApi
|
|
68
68
|
*/
|
|
69
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
70
70
|
}
|
|
@@ -556,7 +556,7 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
556
556
|
* @throws {RequiredError}
|
|
557
557
|
* @memberof TranslationApi
|
|
558
558
|
*/
|
|
559
|
-
createProductLanguage(requestParameters: TranslationApiCreateProductLanguageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateProductLanguageResponseClass, any>>;
|
|
559
|
+
createProductLanguage(requestParameters: TranslationApiCreateProductLanguageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateProductLanguageResponseClass, any, {}>>;
|
|
560
560
|
/**
|
|
561
561
|
* Permanently deletes the product language. Supply the unique id that was returned when you created the product language and this will delete it. **Required Permissions** \"translation-management.translations.delete\"
|
|
562
562
|
* @summary Delete the product language
|
|
@@ -565,7 +565,7 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
565
565
|
* @throws {RequiredError}
|
|
566
566
|
* @memberof TranslationApi
|
|
567
567
|
*/
|
|
568
|
-
deleteProductLanguage(requestParameters: TranslationApiDeleteProductLanguageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
568
|
+
deleteProductLanguage(requestParameters: TranslationApiDeleteProductLanguageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
569
569
|
/**
|
|
570
570
|
* This downloads the list of translatable fields for a given product. **Required Permissions** \"translation-management.translations.view\"
|
|
571
571
|
* @summary Retrieve the product translations
|
|
@@ -574,7 +574,7 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
574
574
|
* @throws {RequiredError}
|
|
575
575
|
* @memberof TranslationApi
|
|
576
576
|
*/
|
|
577
|
-
downloadProductTranslations(requestParameters: TranslationApiDownloadProductTranslationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
577
|
+
downloadProductTranslations(requestParameters: TranslationApiDownloadProductTranslationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
578
578
|
/**
|
|
579
579
|
* This gets a product language. **Required Permissions** \"translation-management.translations.view\"
|
|
580
580
|
* @summary Retrieve the product language
|
|
@@ -583,7 +583,7 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
583
583
|
* @throws {RequiredError}
|
|
584
584
|
* @memberof TranslationApi
|
|
585
585
|
*/
|
|
586
|
-
getProductLanguage(requestParameters: TranslationApiGetProductLanguageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductLanguageResponseClass, any>>;
|
|
586
|
+
getProductLanguage(requestParameters: TranslationApiGetProductLanguageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductLanguageResponseClass, any, {}>>;
|
|
587
587
|
/**
|
|
588
588
|
* Returns a list of product languages you have previously created. The product languages are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"translation-management.translations.view\"
|
|
589
589
|
* @summary List product languages
|
|
@@ -592,7 +592,7 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
592
592
|
* @throws {RequiredError}
|
|
593
593
|
* @memberof TranslationApi
|
|
594
594
|
*/
|
|
595
|
-
listProductLanguages(requestParameters?: TranslationApiListProductLanguagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductLanguagesResponseClass, any>>;
|
|
595
|
+
listProductLanguages(requestParameters?: TranslationApiListProductLanguagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductLanguagesResponseClass, any, {}>>;
|
|
596
596
|
/**
|
|
597
597
|
* Returns a list of translations you have previously created. The translations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"translation-management.translations.view\"
|
|
598
598
|
* @summary List translations
|
|
@@ -601,7 +601,7 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
601
601
|
* @throws {RequiredError}
|
|
602
602
|
* @memberof TranslationApi
|
|
603
603
|
*/
|
|
604
|
-
listTranslations(requestParameters?: TranslationApiListTranslationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTranslationsResponseClass, any>>;
|
|
604
|
+
listTranslations(requestParameters?: TranslationApiListTranslationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTranslationsResponseClass, any, {}>>;
|
|
605
605
|
/**
|
|
606
606
|
* This updates the product language with the specified id. **Required Permissions** \"translation-management.translations.update\"
|
|
607
607
|
* @summary Update the product language
|
|
@@ -610,7 +610,7 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
610
610
|
* @throws {RequiredError}
|
|
611
611
|
* @memberof TranslationApi
|
|
612
612
|
*/
|
|
613
|
-
updateProductLanguage(requestParameters: TranslationApiUpdateProductLanguageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateProductLanguageResponseClass, any>>;
|
|
613
|
+
updateProductLanguage(requestParameters: TranslationApiUpdateProductLanguageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateProductLanguageResponseClass, any, {}>>;
|
|
614
614
|
/**
|
|
615
615
|
* This uploads the translations for a given product. **Required Permissions** \"translation-management.translations.create\"
|
|
616
616
|
* @summary Create the product translations
|
|
@@ -619,5 +619,5 @@ export declare class TranslationApi extends BaseAPI {
|
|
|
619
619
|
* @throws {RequiredError}
|
|
620
620
|
* @memberof TranslationApi
|
|
621
621
|
*/
|
|
622
|
-
uploadProductTranslations(requestParameters: TranslationApiUploadProductTranslationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadProductTranslationsResponseClass, any>>;
|
|
622
|
+
uploadProductTranslations(requestParameters: TranslationApiUploadProductTranslationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadProductTranslationsResponseClass, any, {}>>;
|
|
623
623
|
}
|
package/dist/base.js
CHANGED
|
@@ -189,7 +189,9 @@ var BaseAPI = /** @class */ (function () {
|
|
|
189
189
|
// Only store if no workspace switch (since switchWorkspace will store after switching)
|
|
190
190
|
this.storeTokenData(__assign({}, this.tokenData));
|
|
191
191
|
_b.label = 4;
|
|
192
|
-
case 4:
|
|
192
|
+
case 4:
|
|
193
|
+
this.storeTokenData(__assign({}, this.tokenData));
|
|
194
|
+
return [2 /*return*/];
|
|
193
195
|
}
|
|
194
196
|
});
|
|
195
197
|
});
|
package/dist/common.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
66
66
|
/**
|
|
67
67
|
* EMIL TranslationService
|
|
68
68
|
* The EMIL TranslationService API description
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/translation-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1-beta.10",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/translation-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "^
|
|
21
|
+
"axios": "^1.12.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"typescript": "^4.0"
|