@wix/multilingual 1.0.1 → 1.0.3
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/build/cjs/context.d.ts +1 -1
- package/build/cjs/context.js +1 -1
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +1 -1
- package/build/es/context.js +1 -1
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +1 -1
- package/build/es/index.js +1 -1
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -1
- package/build/es/meta.js +1 -1
- package/build/es/meta.js.map +1 -1
- package/package.json +11 -9
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -28
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/multilingual-machine-v3-translatable-content.context.d.ts +0 -4
- package/build/cjs/src/multilingual-machine-v3-translatable-content.context.js +0 -39
- package/build/cjs/src/multilingual-machine-v3-translatable-content.context.js.map +0 -1
- package/build/cjs/src/multilingual-machine-v3-translatable-content.http.d.ts +0 -5
- package/build/cjs/src/multilingual-machine-v3-translatable-content.http.js +0 -323
- package/build/cjs/src/multilingual-machine-v3-translatable-content.http.js.map +0 -1
- package/build/cjs/src/multilingual-machine-v3-translatable-content.meta.d.ts +0 -14
- package/build/cjs/src/multilingual-machine-v3-translatable-content.meta.js +0 -66
- package/build/cjs/src/multilingual-machine-v3-translatable-content.meta.js.map +0 -1
- package/build/cjs/src/multilingual-machine-v3-translatable-content.public.d.ts +0 -9
- package/build/cjs/src/multilingual-machine-v3-translatable-content.public.js +0 -49
- package/build/cjs/src/multilingual-machine-v3-translatable-content.public.js.map +0 -1
- package/build/cjs/src/multilingual-machine-v3-translatable-content.types.d.ts +0 -2529
- package/build/cjs/src/multilingual-machine-v3-translatable-content.types.js +0 -577
- package/build/cjs/src/multilingual-machine-v3-translatable-content.types.js.map +0 -1
- package/build/cjs/src/multilingual-machine-v3-translatable-content.universal.d.ts +0 -2563
- package/build/cjs/src/multilingual-machine-v3-translatable-content.universal.js +0 -755
- package/build/cjs/src/multilingual-machine-v3-translatable-content.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/multilingual-machine-v3-translatable-content.context.d.ts +0 -4
- package/build/es/src/multilingual-machine-v3-translatable-content.context.js +0 -34
- package/build/es/src/multilingual-machine-v3-translatable-content.context.js.map +0 -1
- package/build/es/src/multilingual-machine-v3-translatable-content.http.d.ts +0 -5
- package/build/es/src/multilingual-machine-v3-translatable-content.http.js +0 -318
- package/build/es/src/multilingual-machine-v3-translatable-content.http.js.map +0 -1
- package/build/es/src/multilingual-machine-v3-translatable-content.meta.d.ts +0 -14
- package/build/es/src/multilingual-machine-v3-translatable-content.meta.js +0 -38
- package/build/es/src/multilingual-machine-v3-translatable-content.meta.js.map +0 -1
- package/build/es/src/multilingual-machine-v3-translatable-content.public.d.ts +0 -9
- package/build/es/src/multilingual-machine-v3-translatable-content.public.js +0 -14
- package/build/es/src/multilingual-machine-v3-translatable-content.public.js.map +0 -1
- package/build/es/src/multilingual-machine-v3-translatable-content.types.d.ts +0 -2529
- package/build/es/src/multilingual-machine-v3-translatable-content.types.js +0 -574
- package/build/es/src/multilingual-machine-v3-translatable-content.types.js.map +0 -1
- package/build/es/src/multilingual-machine-v3-translatable-content.universal.d.ts +0 -2563
- package/build/es/src/multilingual-machine-v3-translatable-content.universal.js +0 -727
- package/build/es/src/multilingual-machine-v3-translatable-content.universal.js.map +0 -1
package/build/cjs/context.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as machineTranslation from '
|
|
1
|
+
export * as machineTranslation from '@wix/multilingual_machine-translation/context';
|
package/build/cjs/context.js
CHANGED
|
@@ -24,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.machineTranslation = void 0;
|
|
27
|
-
exports.machineTranslation = __importStar(require("
|
|
27
|
+
exports.machineTranslation = __importStar(require("@wix/multilingual_machine-translation/context"));
|
|
28
28
|
//# sourceMappingURL=context.js.map
|
package/build/cjs/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oGAAoF"}
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as machineTranslation from '
|
|
1
|
+
export * as machineTranslation from '@wix/multilingual_machine-translation';
|
package/build/cjs/index.js
CHANGED
|
@@ -24,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.machineTranslation = void 0;
|
|
27
|
-
exports.machineTranslation = __importStar(require("
|
|
27
|
+
exports.machineTranslation = __importStar(require("@wix/multilingual_machine-translation"));
|
|
28
28
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4FAA4E"}
|
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as machineTranslation from '
|
|
1
|
+
export * as machineTranslation from '@wix/multilingual_machine-translation/meta';
|
package/build/cjs/meta.js
CHANGED
|
@@ -24,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.machineTranslation = void 0;
|
|
27
|
-
exports.machineTranslation = __importStar(require("
|
|
27
|
+
exports.machineTranslation = __importStar(require("@wix/multilingual_machine-translation/meta"));
|
|
28
28
|
//# sourceMappingURL=meta.js.map
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iGAAiF"}
|
package/build/es/context.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as machineTranslation from '
|
|
1
|
+
export * as machineTranslation from '@wix/multilingual_machine-translation/context';
|
package/build/es/context.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as machineTranslation from '
|
|
1
|
+
export * as machineTranslation from '@wix/multilingual_machine-translation/context';
|
|
2
2
|
//# sourceMappingURL=context.js.map
|
package/build/es/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,+CAA+C,CAAC"}
|
package/build/es/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as machineTranslation from '
|
|
1
|
+
export * as machineTranslation from '@wix/multilingual_machine-translation';
|
package/build/es/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as machineTranslation from '
|
|
1
|
+
export * as machineTranslation from '@wix/multilingual_machine-translation';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/build/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,uCAAuC,CAAC"}
|
package/build/es/meta.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as machineTranslation from '
|
|
1
|
+
export * as machineTranslation from '@wix/multilingual_machine-translation/meta';
|
package/build/es/meta.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as machineTranslation from '
|
|
1
|
+
export * as machineTranslation from '@wix/multilingual_machine-translation/meta';
|
|
2
2
|
//# sourceMappingURL=meta.js.map
|
package/build/es/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,4CAA4C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/multilingual",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -16,14 +16,11 @@
|
|
|
16
16
|
"context"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@wix/
|
|
20
|
-
"@wix/sdk-types": "^1.5.9",
|
|
21
|
-
"@wix/sdk-runtime": "^0.2.7",
|
|
22
|
-
"@wix/motion-edm-autogen-query-wrapper": "^1.0.37"
|
|
19
|
+
"@wix/multilingual_machine-translation": "1.0.6"
|
|
23
20
|
},
|
|
24
21
|
"devDependencies": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
22
|
+
"@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
|
|
23
|
+
"typescript": "^5.3.2"
|
|
27
24
|
},
|
|
28
25
|
"scripts": {
|
|
29
26
|
"build": "tsc -b tsconfig.json tsconfig.esm.json",
|
|
@@ -31,9 +28,14 @@
|
|
|
31
28
|
},
|
|
32
29
|
"wix": {
|
|
33
30
|
"artifact": {
|
|
31
|
+
"groupId": "com.wixpress.public-sdk-autogen",
|
|
34
32
|
"artifactId": "multilingual-public-sdk-autogen",
|
|
35
|
-
"
|
|
33
|
+
"isRootPublicSdk": true
|
|
34
|
+
},
|
|
35
|
+
"sdkDependency": {
|
|
36
|
+
"fqdnNamespace": "",
|
|
37
|
+
"fqdn": ""
|
|
36
38
|
}
|
|
37
39
|
},
|
|
38
|
-
"falconPackageHash": "
|
|
40
|
+
"falconPackageHash": "aaa911bf524d29112ef2cda9e748a6ce9db13a7082f1ad5a4688c910"
|
|
39
41
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as machineTranslation from './src/multilingual-machine-v3-translatable-content.universal';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.machineTranslation = void 0;
|
|
27
|
-
exports.machineTranslation = __importStar(require("./src/multilingual-machine-v3-translatable-content.universal"));
|
|
28
|
-
//# sourceMappingURL=index.typings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mHAAmG"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { machineTranslate as publicMachineTranslate, bulkMachineTranslate as publicBulkMachineTranslate } from './multilingual-machine-v3-translatable-content.public';
|
|
2
|
-
import { BuildRESTFunction } from '@wix/sdk-types';
|
|
3
|
-
export declare const machineTranslate: BuildRESTFunction<typeof publicMachineTranslate>;
|
|
4
|
-
export declare const bulkMachineTranslate: BuildRESTFunction<typeof publicBulkMachineTranslate>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bulkMachineTranslate = exports.machineTranslate = void 0;
|
|
4
|
-
const multilingual_machine_v3_translatable_content_public_1 = require("./multilingual-machine-v3-translatable-content.public");
|
|
5
|
-
const machineTranslate = (...args) => {
|
|
6
|
-
var _a;
|
|
7
|
-
const context =
|
|
8
|
-
// @ts-expect-error
|
|
9
|
-
typeof $wixContext !== 'undefined'
|
|
10
|
-
? // @ts-expect-error
|
|
11
|
-
$wixContext
|
|
12
|
-
: // @ts-expect-error
|
|
13
|
-
globalThis.__wix_context__;
|
|
14
|
-
if (!context) {
|
|
15
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
16
|
-
}
|
|
17
|
-
return context
|
|
18
|
-
.initWixModules(multilingual_machine_v3_translatable_content_public_1.machineTranslate, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
19
|
-
.apply(undefined, args);
|
|
20
|
-
};
|
|
21
|
-
exports.machineTranslate = machineTranslate;
|
|
22
|
-
const bulkMachineTranslate = (...args) => {
|
|
23
|
-
var _a;
|
|
24
|
-
const context =
|
|
25
|
-
// @ts-expect-error
|
|
26
|
-
typeof $wixContext !== 'undefined'
|
|
27
|
-
? // @ts-expect-error
|
|
28
|
-
$wixContext
|
|
29
|
-
: // @ts-expect-error
|
|
30
|
-
globalThis.__wix_context__;
|
|
31
|
-
if (!context) {
|
|
32
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
33
|
-
}
|
|
34
|
-
return context
|
|
35
|
-
.initWixModules(multilingual_machine_v3_translatable_content_public_1.bulkMachineTranslate, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
36
|
-
.apply(undefined, args);
|
|
37
|
-
};
|
|
38
|
-
exports.bulkMachineTranslate = bulkMachineTranslate;
|
|
39
|
-
//# sourceMappingURL=multilingual-machine-v3-translatable-content.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multilingual-machine-v3-translatable-content.context.js","sourceRoot":"","sources":["../../../src/multilingual-machine-v3-translatable-content.context.ts"],"names":[],"mappings":";;;AAAA,+HAG+D;AAGxD,MAAM,gBAAgB,GAEzB,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CAAC,sEAAsB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SAC3E,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAlBW,QAAA,gBAAgB,oBAkB3B;AACK,MAAM,oBAAoB,GAE7B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CACb,0EAA0B,EAC1B,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AArBW,QAAA,oBAAoB,wBAqB/B"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/** Translates a single content item from one supported language to another. */
|
|
3
|
-
export declare function machineTranslate(payload: object): RequestOptionsFactory<any>;
|
|
4
|
-
/** Translates a collection of content items from one supported language to another. */
|
|
5
|
-
export declare function bulkMachineTranslate(payload: object): RequestOptionsFactory<any>;
|
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bulkMachineTranslate = exports.machineTranslate = void 0;
|
|
4
|
-
const float_1 = require("@wix/sdk-runtime/transformations/float");
|
|
5
|
-
const float_2 = require("@wix/sdk-runtime/transformations/float");
|
|
6
|
-
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
7
|
-
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
8
|
-
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
9
|
-
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
10
|
-
function resolveWixMultilingualMachineV3MachineTranslationUrl(opts) {
|
|
11
|
-
const domainToMappings = {
|
|
12
|
-
'manage._base_domain_': [
|
|
13
|
-
{
|
|
14
|
-
srcPath: '/_api/machine-translation/v3',
|
|
15
|
-
destPath: '/v3',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
'api._api_base_domain_': [
|
|
19
|
-
{
|
|
20
|
-
srcPath: '/machine-translation/v3',
|
|
21
|
-
destPath: '/v3',
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
'*.dev.wix-code.com': [
|
|
25
|
-
{
|
|
26
|
-
srcPath: '/_api/machine-translation/v3',
|
|
27
|
-
destPath: '/v3',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
'www.wixapis.com': [
|
|
31
|
-
{
|
|
32
|
-
srcPath: '/machine-translation/v3',
|
|
33
|
-
destPath: '/v3',
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
_: [
|
|
37
|
-
{
|
|
38
|
-
srcPath: '/_api/machine-translation/v3',
|
|
39
|
-
destPath: '/v3',
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
};
|
|
43
|
-
return (0, metro_runtime_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
44
|
-
}
|
|
45
|
-
/** Translates a single content item from one supported language to another. */
|
|
46
|
-
function machineTranslate(payload) {
|
|
47
|
-
function __machineTranslate({ host }) {
|
|
48
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
49
|
-
{
|
|
50
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
51
|
-
paths: [
|
|
52
|
-
{
|
|
53
|
-
path: 'contentToTranslate.richContent.nodes.galleryData.items.image.media.duration',
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
path: 'contentToTranslate.richContent.nodes.galleryData.items.video.media.duration',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
path: 'contentToTranslate.richContent.nodes.galleryData.items.video.thumbnail.duration',
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
path: 'contentToTranslate.richContent.nodes.galleryData.options.item.ratio',
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
path: 'contentToTranslate.richContent.nodes.imageData.image.duration',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
path: 'contentToTranslate.richContent.nodes.mapData.mapSettings.lat',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
path: 'contentToTranslate.richContent.nodes.mapData.mapSettings.lng',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
path: 'contentToTranslate.richContent.nodes.pollData.poll.image.duration',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
path: 'contentToTranslate.richContent.nodes.pollData.poll.options.image.duration',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
path: 'contentToTranslate.richContent.nodes.pollData.design.poll.background.image.duration',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
path: 'contentToTranslate.richContent.nodes.appEmbedData.image.duration',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
path: 'contentToTranslate.richContent.nodes.videoData.video.duration',
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
path: 'contentToTranslate.richContent.nodes.videoData.thumbnail.duration',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
path: 'contentToTranslate.richContent.nodes.audioData.audio.duration',
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
path: 'contentToTranslate.richContent.nodes.audioData.coverImage.duration',
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
101
|
-
paths: [
|
|
102
|
-
{ path: 'contentToTranslate.richContent.metadata.createdTimestamp' },
|
|
103
|
-
{ path: 'contentToTranslate.richContent.metadata.updatedTimestamp' },
|
|
104
|
-
],
|
|
105
|
-
},
|
|
106
|
-
]);
|
|
107
|
-
const metadata = {
|
|
108
|
-
entityFqdn: 'wix.multilingual.machine.v3.translatable_content',
|
|
109
|
-
method: 'POST',
|
|
110
|
-
methodFqn: 'wix.multilingual.machine.v3.MachineTranslation.MachineTranslate',
|
|
111
|
-
url: resolveWixMultilingualMachineV3MachineTranslationUrl({
|
|
112
|
-
protoPath: '/v3/machine-translate',
|
|
113
|
-
data: serializedData,
|
|
114
|
-
host,
|
|
115
|
-
}),
|
|
116
|
-
data: serializedData,
|
|
117
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
118
|
-
{
|
|
119
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
120
|
-
paths: [
|
|
121
|
-
{
|
|
122
|
-
path: 'translatedContent.richContent.nodes.galleryData.items.image.media.duration',
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
path: 'translatedContent.richContent.nodes.galleryData.items.video.media.duration',
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
path: 'translatedContent.richContent.nodes.galleryData.items.video.thumbnail.duration',
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
path: 'translatedContent.richContent.nodes.galleryData.options.item.ratio',
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
path: 'translatedContent.richContent.nodes.imageData.image.duration',
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
path: 'translatedContent.richContent.nodes.mapData.mapSettings.lat',
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
path: 'translatedContent.richContent.nodes.mapData.mapSettings.lng',
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
path: 'translatedContent.richContent.nodes.pollData.poll.image.duration',
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
path: 'translatedContent.richContent.nodes.pollData.poll.options.image.duration',
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
path: 'translatedContent.richContent.nodes.pollData.design.poll.background.image.duration',
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
path: 'translatedContent.richContent.nodes.appEmbedData.image.duration',
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
path: 'translatedContent.richContent.nodes.videoData.video.duration',
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
path: 'translatedContent.richContent.nodes.videoData.thumbnail.duration',
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
path: 'translatedContent.richContent.nodes.audioData.audio.duration',
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
path: 'translatedContent.richContent.nodes.audioData.coverImage.duration',
|
|
165
|
-
},
|
|
166
|
-
],
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
170
|
-
paths: [
|
|
171
|
-
{
|
|
172
|
-
path: 'translatedContent.richContent.metadata.createdTimestamp',
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
path: 'translatedContent.richContent.metadata.updatedTimestamp',
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
},
|
|
179
|
-
]),
|
|
180
|
-
};
|
|
181
|
-
return metadata;
|
|
182
|
-
}
|
|
183
|
-
return __machineTranslate;
|
|
184
|
-
}
|
|
185
|
-
exports.machineTranslate = machineTranslate;
|
|
186
|
-
/** Translates a collection of content items from one supported language to another. */
|
|
187
|
-
function bulkMachineTranslate(payload) {
|
|
188
|
-
function __bulkMachineTranslate({ host }) {
|
|
189
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
190
|
-
{
|
|
191
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
192
|
-
paths: [
|
|
193
|
-
{
|
|
194
|
-
path: 'contentToTranslate.richContent.nodes.galleryData.items.image.media.duration',
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
path: 'contentToTranslate.richContent.nodes.galleryData.items.video.media.duration',
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
path: 'contentToTranslate.richContent.nodes.galleryData.items.video.thumbnail.duration',
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
path: 'contentToTranslate.richContent.nodes.galleryData.options.item.ratio',
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
path: 'contentToTranslate.richContent.nodes.imageData.image.duration',
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
path: 'contentToTranslate.richContent.nodes.mapData.mapSettings.lat',
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
path: 'contentToTranslate.richContent.nodes.mapData.mapSettings.lng',
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
path: 'contentToTranslate.richContent.nodes.pollData.poll.image.duration',
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
path: 'contentToTranslate.richContent.nodes.pollData.poll.options.image.duration',
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
path: 'contentToTranslate.richContent.nodes.pollData.design.poll.background.image.duration',
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
path: 'contentToTranslate.richContent.nodes.appEmbedData.image.duration',
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
path: 'contentToTranslate.richContent.nodes.videoData.video.duration',
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
path: 'contentToTranslate.richContent.nodes.videoData.thumbnail.duration',
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
path: 'contentToTranslate.richContent.nodes.audioData.audio.duration',
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
path: 'contentToTranslate.richContent.nodes.audioData.coverImage.duration',
|
|
237
|
-
},
|
|
238
|
-
],
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
242
|
-
paths: [
|
|
243
|
-
{ path: 'contentToTranslate.richContent.metadata.createdTimestamp' },
|
|
244
|
-
{ path: 'contentToTranslate.richContent.metadata.updatedTimestamp' },
|
|
245
|
-
],
|
|
246
|
-
},
|
|
247
|
-
]);
|
|
248
|
-
const metadata = {
|
|
249
|
-
entityFqdn: 'wix.multilingual.machine.v3.translatable_content',
|
|
250
|
-
method: 'POST',
|
|
251
|
-
methodFqn: 'wix.multilingual.machine.v3.MachineTranslation.BulkMachineTranslate',
|
|
252
|
-
url: resolveWixMultilingualMachineV3MachineTranslationUrl({
|
|
253
|
-
protoPath: '/v3/bulk-machine-translate',
|
|
254
|
-
data: serializedData,
|
|
255
|
-
host,
|
|
256
|
-
}),
|
|
257
|
-
data: serializedData,
|
|
258
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
259
|
-
{
|
|
260
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
261
|
-
paths: [
|
|
262
|
-
{
|
|
263
|
-
path: 'results.item.richContent.nodes.galleryData.items.image.media.duration',
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
path: 'results.item.richContent.nodes.galleryData.items.video.media.duration',
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
path: 'results.item.richContent.nodes.galleryData.items.video.thumbnail.duration',
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
path: 'results.item.richContent.nodes.galleryData.options.item.ratio',
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
path: 'results.item.richContent.nodes.imageData.image.duration',
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
path: 'results.item.richContent.nodes.mapData.mapSettings.lat',
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
path: 'results.item.richContent.nodes.mapData.mapSettings.lng',
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
path: 'results.item.richContent.nodes.pollData.poll.image.duration',
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
path: 'results.item.richContent.nodes.pollData.poll.options.image.duration',
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
path: 'results.item.richContent.nodes.pollData.design.poll.background.image.duration',
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
path: 'results.item.richContent.nodes.appEmbedData.image.duration',
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
path: 'results.item.richContent.nodes.videoData.video.duration',
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
path: 'results.item.richContent.nodes.videoData.thumbnail.duration',
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
path: 'results.item.richContent.nodes.audioData.audio.duration',
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
path: 'results.item.richContent.nodes.audioData.coverImage.duration',
|
|
306
|
-
},
|
|
307
|
-
],
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
311
|
-
paths: [
|
|
312
|
-
{ path: 'results.item.richContent.metadata.createdTimestamp' },
|
|
313
|
-
{ path: 'results.item.richContent.metadata.updatedTimestamp' },
|
|
314
|
-
],
|
|
315
|
-
},
|
|
316
|
-
]),
|
|
317
|
-
};
|
|
318
|
-
return metadata;
|
|
319
|
-
}
|
|
320
|
-
return __bulkMachineTranslate;
|
|
321
|
-
}
|
|
322
|
-
exports.bulkMachineTranslate = bulkMachineTranslate;
|
|
323
|
-
//# sourceMappingURL=multilingual-machine-v3-translatable-content.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multilingual-machine-v3-translatable-content.http.js","sourceRoot":"","sources":["../../../src/multilingual-machine-v3-translatable-content.http.ts"],"names":[],"mappings":";;;AAAA,kEAAsF;AACtF,kEAAsF;AACtF,0EAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,sDAAgD;AAIhD,SAAS,oDAAoD,CAC3D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,yBAAyB;gBAClC,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,yBAAyB;gBAClC,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,KAAK;aAChB;SACF;KACF,CAAC;IAEF,OAAO,IAAA,0BAAU,EAAC,MAAM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AuE;yBAC9E;wBACD;4BACE,IAAI,EAAE,2EAA2E;yBAClF;wBACD;4BACE,IAAI,EAAE,+DAA+D;yBACtE;wBACD;4BACE,IAAI,EAAE,yDAAyD;yBAChE;wBACD;4BACE,IAAI,EAAE,wDAAwD;yBAC/D;wBACD;4BACE,IAAI,EAAE,wDAAwD;yBAC/D;wBACD;4BACE,IAAI,EAAE,6DAA6D;yBACpE;wBACD;4BACE,IAAI,EAAE,qEAAqE;yBAC5E;wBACD;4BACE,IAAI,EAAE,+EAA+E;yBACtF;wBACD;4BACE,IAAI,EAAE,4DAA4D;yBACnE;wBACD;4BACE,IAAI,EAAE,yDAAyD;yBAChE;wBACD;4BACE,IAAI,EAAE,6DAA6D;yBACpE;wBACD;4BACE,IAAI,EAAE,yDAAyD;yBAChE;wBACD;4BACE,IAAI,EAAE,8DAA8D;yBACrE;qBACF;iBACF;gBACD;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,oDAAoD,EAAE;wBAC9D,EAAE,IAAI,EAAE,oDAAoD,EAAE;qBAC/D;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,sBAAsB,CAAC;AAChC,CAAC;AA5ID,oDA4IC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixMultilingualMachineV3TranslatableContentTypes from './multilingual-machine-v3-translatable-content.types';
|
|
2
|
-
import * as ambassadorWixMultilingualMachineV3TranslatableContentUniversalTypes from './multilingual-machine-v3-translatable-content.universal';
|
|
3
|
-
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
-
getUrl: (context: any) => string;
|
|
5
|
-
httpMethod: K;
|
|
6
|
-
path: string;
|
|
7
|
-
pathParams: M;
|
|
8
|
-
__requestType: T;
|
|
9
|
-
__originalRequestType: S;
|
|
10
|
-
__responseType: Q;
|
|
11
|
-
__originalResponseType: R;
|
|
12
|
-
};
|
|
13
|
-
export declare function machineTranslate(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixMultilingualMachineV3TranslatableContentUniversalTypes.MachineTranslateRequest, ambassadorWixMultilingualMachineV3TranslatableContentTypes.MachineTranslateRequest, ambassadorWixMultilingualMachineV3TranslatableContentUniversalTypes.MachineTranslateResponse & ambassadorWixMultilingualMachineV3TranslatableContentUniversalTypes.MachineTranslateResponseNonNullableFields, ambassadorWixMultilingualMachineV3TranslatableContentTypes.MachineTranslateResponse & ambassadorWixMultilingualMachineV3TranslatableContentTypes.MachineTranslateResponseNonNullableFields>;
|
|
14
|
-
export declare function bulkMachineTranslate(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixMultilingualMachineV3TranslatableContentUniversalTypes.BulkMachineTranslateRequest, ambassadorWixMultilingualMachineV3TranslatableContentTypes.BulkMachineTranslateRequest, ambassadorWixMultilingualMachineV3TranslatableContentUniversalTypes.BulkMachineTranslateResponse & ambassadorWixMultilingualMachineV3TranslatableContentUniversalTypes.BulkMachineTranslateResponseNonNullableFields, ambassadorWixMultilingualMachineV3TranslatableContentTypes.BulkMachineTranslateResponse & ambassadorWixMultilingualMachineV3TranslatableContentTypes.BulkMachineTranslateResponseNonNullableFields>;
|