@wix/auto_sdk_multilingual_translation-published-contents 1.0.34 → 1.0.36
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/index.d.ts +4 -4
- package/build/cjs/index.js +16 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +5 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +5 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +12 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +0 -1
- package/build/es/index.typings.mjs +3 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +3 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +16 -9
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +5 -4
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js +5 -4
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs +12 -5
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +0 -1
- package/build/internal/es/index.typings.mjs +3 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs +3 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.js
CHANGED
|
@@ -25,10 +25,11 @@ __export(meta_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(meta_exports);
|
|
26
26
|
|
|
27
27
|
// src/multilingual-localization-public-v3-published-content-translation-published-contents.http.ts
|
|
28
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
28
29
|
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
29
30
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
30
31
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
31
|
-
var
|
|
32
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
32
33
|
function resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(opts) {
|
|
33
34
|
const domainToMappings = {
|
|
34
35
|
_: [
|
|
@@ -88,20 +89,20 @@ function resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(op
|
|
|
88
89
|
}
|
|
89
90
|
]
|
|
90
91
|
};
|
|
91
|
-
return (0,
|
|
92
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
92
93
|
}
|
|
93
94
|
var PACKAGE_NAME = "@wix/auto_sdk_multilingual_translation-published-contents";
|
|
94
95
|
function queryPublishedContent(payload) {
|
|
95
96
|
function __queryPublishedContent({ host }) {
|
|
96
97
|
const metadata = {
|
|
97
98
|
entityFqdn: "wix.multilingual.localization_public.v3.published_content",
|
|
98
|
-
method: "
|
|
99
|
+
method: "GET",
|
|
99
100
|
methodFqn: "com.wixpress.localizationpublic.v3.TranslationPublishedContent.QueryPublishedContent",
|
|
100
101
|
packageName: PACKAGE_NAME,
|
|
101
102
|
url: resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(
|
|
102
103
|
{ protoPath: "/v3/published-contents/query", data: payload, host }
|
|
103
104
|
),
|
|
104
|
-
|
|
105
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload, true),
|
|
105
106
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
106
107
|
{
|
|
107
108
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/multilingual-localization-public-v3-published-content-translation-published-contents.http.ts","../../src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.ts"],"sourcesContent":["export * from './src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.js';\n","import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/localization-public',\n destPath: '',\n },\n {\n srcPath: '/translation-published-content/v3',\n destPath: '/v3',\n },\n {\n srcPath: '/_api/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n 'cashier.wixapps.net': [\n {\n srcPath: '/multilingual/v1/public-localized-content',\n destPath: '/v1/public-localized-content',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME =\n '@wix/auto_sdk_multilingual_translation-published-contents';\n\n/**\n * Creates a query to retrieve a list of translation content items.\n *\n * The `queryPublishedContent()` function builds a query to retrieve a list of translation content items and returns a `PublishedContentQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/find) function.\n *\n * You can refine the query by chaining `PublishedContentQueryBuilder` functions onto the query. `PublishedContentQueryBuilder` functions enable you to filter, sort, and control the results that `queryPublishedContent()` returns.\n *\n * `queryPublishedContent()` runs with the following `PublishedContentQueryBuilder` defaults which you can override:\n *\n * + [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/limit)\n * + [`ascending('_id')`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/ascending)\n *\n * The following query filter fields are required:\n *\n * + `schemaKey.appId`\n * + `schemaKey.entityType`\n * + `schemaKey.scope`\n *\n * The following `PublishedContentQueryBuilder` functions are supported for `queryPublishedContent()`. For a full description of the operations object, see the object returned for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-result/items) property in `PublishedContentQueryResult`.\n */\nexport function queryPublishedContent(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryPublishedContent({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.multilingual.localization_public.v3.published_content',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.localizationpublic.v3.TranslationPublishedContent.QueryPublishedContent',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(\n { protoPath: '/v3/published-contents/query', data: payload, host }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'publishedContent.fields.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.galleryData.options.item.ratio',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.imageData.image.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.mapData.mapSettings.lat',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.mapData.mapSettings.lng',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.pollData.poll.image.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.appEmbedData.image.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.videoData.video.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.videoData.thumbnail.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.audioData.audio.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.audioData.coverImage.duration',\n },\n { path: 'publishedContent.fields.image.focalPoint.x' },\n { path: 'publishedContent.fields.image.focalPoint.y' },\n {\n path: 'publishedContent.fields.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'publishedContent.fields.video.resolutions.poster.focalPoint.y',\n },\n { path: 'publishedContent.fields.video.posters.focalPoint.x' },\n { path: 'publishedContent.fields.video.posters.focalPoint.y' },\n {\n path: 'publishedContent.fields.document.thumbnail.focalPoint.x',\n },\n {\n path: 'publishedContent.fields.document.thumbnail.focalPoint.y',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n {\n path: 'publishedContent.fields.richContent.metadata.createdTimestamp',\n },\n {\n path: 'publishedContent.fields.richContent.metadata.updatedTimestamp',\n },\n { path: 'publishedContent.fields.image.urlExpirationDate' },\n { path: 'publishedContent.fields.video.urlExpirationDate' },\n {\n path: 'publishedContent.fields.video.resolutions.urlExpirationDate',\n },\n {\n path: 'publishedContent.fields.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'publishedContent.fields.video.posters.urlExpirationDate',\n },\n { path: 'publishedContent.fields.document.urlExpirationDate' },\n {\n path: 'publishedContent.fields.document.thumbnail.urlExpirationDate',\n },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(\n { protoPath: '/v3/published-contents/query', data: payload, host }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryPublishedContent;\n}\n","import * as ambassadorWixMultilingualLocalizationPublicV3PublishedContent from './multilingual-localization-public-v3-published-content-translation-published-contents.http.js';\nimport * as ambassadorWixMultilingualLocalizationPublicV3PublishedContentTypes from './multilingual-localization-public-v3-published-content-translation-published-contents.types.js';\nimport * as ambassadorWixMultilingualLocalizationPublicV3PublishedContentUniversalTypes from './multilingual-localization-public-v3-published-content-translation-published-contents.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function queryPublishedContent(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixMultilingualLocalizationPublicV3PublishedContentUniversalTypes.QueryPublishedContentRequest,\n ambassadorWixMultilingualLocalizationPublicV3PublishedContentTypes.QueryPublishedContentRequest,\n ambassadorWixMultilingualLocalizationPublicV3PublishedContentUniversalTypes.QueryPublishedContentResponse,\n ambassadorWixMultilingualLocalizationPublicV3PublishedContentTypes.QueryPublishedContentResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMultilingualLocalizationPublicV3PublishedContent.queryPublishedContent(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/published-contents/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as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YACR;AAAA,YACA,EAAE,MAAM,kDAAkD;AAAA,YAC1D,EAAE,MAAM,kDAAkD;AAAA,YAC1D;AAAA,cACE,MAAM;AAAA,YACR;AAAA,YACA;AAAA,cACE,MAAM;AAAA,YACR;AAAA,YACA;AAAA,cACE,MAAM;AAAA,YACR;AAAA,YACA,EAAE,MAAM,qDAAqD;AAAA,YAC7D;AAAA,cACE,MAAM;AAAA,YACR;AAAA,UACF;AAAA,QACF;AAAA,MACF,CAAC;AAAA,MACH,UAAU;AAAA,QACR;AAAA,UACE,QAAQ;AAAA,UACR,KAAK;AAAA,YACH,EAAE,WAAW,gCAAgC,MAAM,SAAS,KAAK;AAAA,UACnE;AAAA,UACA,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;ACvMO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC0D;AAAA,IAC5D;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["queryPublishedContent","payload","queryPublishedContent"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/multilingual-localization-public-v3-published-content-translation-published-contents.http.ts","../../src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.ts"],"sourcesContent":["export * from './src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/localization-public',\n destPath: '',\n },\n {\n srcPath: '/translation-published-content/v3',\n destPath: '/v3',\n },\n {\n srcPath: '/_api/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n 'cashier.wixapps.net': [\n {\n srcPath: '/multilingual/v1/public-localized-content',\n destPath: '/v1/public-localized-content',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/translation-published-content/v3',\n destPath: '/v3',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME =\n '@wix/auto_sdk_multilingual_translation-published-contents';\n\n/**\n * Creates a query to retrieve a list of translation content items.\n *\n * The `queryPublishedContent()` function builds a query to retrieve a list of translation content items and returns a `PublishedContentQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/find) function.\n *\n * You can refine the query by chaining `PublishedContentQueryBuilder` functions onto the query. `PublishedContentQueryBuilder` functions enable you to filter, sort, and control the results that `queryPublishedContent()` returns.\n *\n * `queryPublishedContent()` runs with the following `PublishedContentQueryBuilder` defaults which you can override:\n *\n * + [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/limit)\n * + [`ascending('_id')`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/ascending)\n *\n * The following query filter fields are required:\n *\n * + `schemaKey.appId`\n * + `schemaKey.entityType`\n * + `schemaKey.scope`\n *\n * The following `PublishedContentQueryBuilder` functions are supported for `queryPublishedContent()`. For a full description of the operations object, see the object returned for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-result/items) property in `PublishedContentQueryResult`.\n */\nexport function queryPublishedContent(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryPublishedContent({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.multilingual.localization_public.v3.published_content',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.localizationpublic.v3.TranslationPublishedContent.QueryPublishedContent',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(\n { protoPath: '/v3/published-contents/query', data: payload, host }\n ),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'publishedContent.fields.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.galleryData.options.item.ratio',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.imageData.image.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.mapData.mapSettings.lat',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.mapData.mapSettings.lng',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.pollData.poll.image.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.appEmbedData.image.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.videoData.video.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.videoData.thumbnail.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.audioData.audio.duration',\n },\n {\n path: 'publishedContent.fields.richContent.nodes.audioData.coverImage.duration',\n },\n { path: 'publishedContent.fields.image.focalPoint.x' },\n { path: 'publishedContent.fields.image.focalPoint.y' },\n {\n path: 'publishedContent.fields.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'publishedContent.fields.video.resolutions.poster.focalPoint.y',\n },\n { path: 'publishedContent.fields.video.posters.focalPoint.x' },\n { path: 'publishedContent.fields.video.posters.focalPoint.y' },\n {\n path: 'publishedContent.fields.document.thumbnail.focalPoint.x',\n },\n {\n path: 'publishedContent.fields.document.thumbnail.focalPoint.y',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n {\n path: 'publishedContent.fields.richContent.metadata.createdTimestamp',\n },\n {\n path: 'publishedContent.fields.richContent.metadata.updatedTimestamp',\n },\n { path: 'publishedContent.fields.image.urlExpirationDate' },\n { path: 'publishedContent.fields.video.urlExpirationDate' },\n {\n path: 'publishedContent.fields.video.resolutions.urlExpirationDate',\n },\n {\n path: 'publishedContent.fields.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'publishedContent.fields.video.posters.urlExpirationDate',\n },\n { path: 'publishedContent.fields.document.urlExpirationDate' },\n {\n path: 'publishedContent.fields.document.thumbnail.urlExpirationDate',\n },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(\n { protoPath: '/v3/published-contents/query', data: payload, host }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryPublishedContent;\n}\n","import * as ambassadorWixMultilingualLocalizationPublicV3PublishedContent from './multilingual-localization-public-v3-published-content-translation-published-contents.http.js';\nimport * as ambassadorWixMultilingualLocalizationPublicV3PublishedContentTypes from './multilingual-localization-public-v3-published-content-translation-published-contents.types.js';\nimport * as ambassadorWixMultilingualLocalizationPublicV3PublishedContentUniversalTypes from './multilingual-localization-public-v3-published-content-translation-published-contents.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function queryPublishedContent(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixMultilingualLocalizationPublicV3PublishedContentUniversalTypes.QueryPublishedContentRequest,\n ambassadorWixMultilingualLocalizationPublicV3PublishedContentTypes.QueryPublishedContentRequest,\n ambassadorWixMultilingualLocalizationPublicV3PublishedContentUniversalTypes.QueryPublishedContentResponse,\n ambassadorWixMultilingualLocalizationPublicV3PublishedContentTypes.QueryPublishedContentResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMultilingualLocalizationPublicV3PublishedContent.queryPublishedContent(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/published-contents/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAAA;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,u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MAAM;AAAA,YACR;AAAA,YACA;AAAA,cACE,MAAM;AAAA,YACR;AAAA,YACA,EAAE,MAAM,qDAAqD;AAAA,YAC7D;AAAA,cACE,MAAM;AAAA,YACR;AAAA,UACF;AAAA,QACF;AAAA,MACF,CAAC;AAAA,MACH,UAAU;AAAA,QACR;AAAA,UACE,QAAQ;AAAA,UACR,KAAK;AAAA,YACH,EAAE,WAAW,gCAAgC,MAAM,SAAS,KAAK;AAAA,UACnE;AAAA,UACA,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;ACxMO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC0D;AAAA,IAC5D;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["queryPublishedContent","import_rest_modules","payload","queryPublishedContent"]}
|
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { PublishedContentQueryBuilder, PublishedContentCreatedEnvelope, PublishedContentDeletedEnvelope, PublishedContentUpdatedEnvelope } from './index.typings.mjs';
|
|
3
|
-
export { ActionEvent, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AspectRatio, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulletedListData, ButtonData, ButtonDataType, ButtonStyles, CaptionData, CardStyles, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, Crop, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, Decoration, DecorationDataOneOf, DecorationType, DeletePublishedContentRequest, DeletePublishedContentResponse, Design, Dimensions, Direction, DividerData, DividerDataAlignment, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, ExtendedFields, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontSizeData, FontType, GIF, GIFData, GIFType, GalleryData, GalleryOptions, GalleryOptionsLayout, GetPublishedContentRequest, GetPublishedContentResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InitialExpandedItems, Item, ItemDataOneOf, ItemStyle, Layout, LayoutCellData, LayoutType, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, MapData, MapSettings, MapType, Media, MentionData, MessageEnvelope, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, PDFSettings, ParagraphData, Permissions, Placement, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, Position, PricingData, PublishedContent, PublishedContentField, PublishedContentFieldValueOneOf, PublishedContentQueryResult, QueryPublishedContentRequest, QueryPublishedContentResponse, Rel, Resizing, RestoreInfo, RibbonStyles, RichContent, SchemaKey, SchemaScope, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Styles, StylesBorder, StylesPosition, TableCellData, TableData, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Type, VerticalAlignment, Video, VideoData, VideoResolution, ViewMode, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType } from './index.typings.mjs';
|
|
3
|
+
export { ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BackgroundTypeWithLiterals, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, Crop, CropWithLiterals, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeletePublishedContentRequest, DeletePublishedContentResponse, Design, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, ExtendedFields, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetPublishedContentRequest, GetPublishedContentResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, Item, ItemDataOneOf, ItemStyle, Layout, LayoutCellData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MentionData, MessageEnvelope, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, PDFSettings, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, PublishedContent, PublishedContentField, PublishedContentFieldValueOneOf, PublishedContentQueryResult, QueryPublishedContentRequest, QueryPublishedContentResponse, Rel, Resizing, ResizingWithLiterals, RestoreInfo, RibbonStyles, RichContent, SchemaKey, SchemaScope, SchemaScopeWithLiterals, Settings, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Type, TypeWithLiterals, VerticalAlignment, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function queryPublishedContent$1(httpClient: HttpClient): QueryPublishedContentSignature;
|
|
6
6
|
interface QueryPublishedContentSignature {
|
|
@@ -36,14 +36,14 @@ declare const queryPublishedContent: MaybeContext<BuildRESTFunction<typeof query
|
|
|
36
36
|
/**
|
|
37
37
|
* Triggered when published content is created.
|
|
38
38
|
*/
|
|
39
|
-
declare const onPublishedContentCreated: BuildEventDefinition<typeof onPublishedContentCreated$1
|
|
39
|
+
declare const onPublishedContentCreated: BuildEventDefinition<typeof onPublishedContentCreated$1> & typeof onPublishedContentCreated$1;
|
|
40
40
|
/**
|
|
41
41
|
* Triggered when published content is deleted.
|
|
42
42
|
*/
|
|
43
|
-
declare const onPublishedContentDeleted: BuildEventDefinition<typeof onPublishedContentDeleted$1
|
|
43
|
+
declare const onPublishedContentDeleted: BuildEventDefinition<typeof onPublishedContentDeleted$1> & typeof onPublishedContentDeleted$1;
|
|
44
44
|
/**
|
|
45
45
|
* Triggered when published content is updated.
|
|
46
46
|
*/
|
|
47
|
-
declare const onPublishedContentUpdated: BuildEventDefinition<typeof onPublishedContentUpdated$1
|
|
47
|
+
declare const onPublishedContentUpdated: BuildEventDefinition<typeof onPublishedContentUpdated$1> & typeof onPublishedContentUpdated$1;
|
|
48
48
|
|
|
49
49
|
export { PublishedContentCreatedEnvelope, PublishedContentDeletedEnvelope, PublishedContentQueryBuilder, PublishedContentUpdatedEnvelope, onPublishedContentCreated, onPublishedContentDeleted, onPublishedContentUpdated, queryPublishedContent };
|
package/build/es/index.mjs
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
18
18
|
|
|
19
19
|
// src/multilingual-localization-public-v3-published-content-translation-published-contents.http.ts
|
|
20
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
20
21
|
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
21
22
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
22
23
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
@@ -87,13 +88,13 @@ function queryPublishedContent(payload) {
|
|
|
87
88
|
function __queryPublishedContent({ host }) {
|
|
88
89
|
const metadata = {
|
|
89
90
|
entityFqdn: "wix.multilingual.localization_public.v3.published_content",
|
|
90
|
-
method: "
|
|
91
|
+
method: "GET",
|
|
91
92
|
methodFqn: "com.wixpress.localizationpublic.v3.TranslationPublishedContent.QueryPublishedContent",
|
|
92
93
|
packageName: PACKAGE_NAME,
|
|
93
94
|
url: resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(
|
|
94
95
|
{ protoPath: "/v3/published-contents/query", data: payload, host }
|
|
95
96
|
),
|
|
96
|
-
|
|
97
|
+
params: toURLSearchParams(payload, true),
|
|
97
98
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
98
99
|
{
|
|
99
100
|
transformFn: transformRESTFloatToSDKFloat,
|
|
@@ -784,9 +785,15 @@ var onPublishedContentUpdated = EventDefinition(
|
|
|
784
785
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
785
786
|
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
786
787
|
var queryPublishedContent4 = /* @__PURE__ */ createRESTModule(queryPublishedContent3);
|
|
787
|
-
var onPublishedContentCreated2 = createEventModule(
|
|
788
|
-
|
|
789
|
-
|
|
788
|
+
var onPublishedContentCreated2 = createEventModule(
|
|
789
|
+
onPublishedContentCreated
|
|
790
|
+
);
|
|
791
|
+
var onPublishedContentDeleted2 = createEventModule(
|
|
792
|
+
onPublishedContentDeleted
|
|
793
|
+
);
|
|
794
|
+
var onPublishedContentUpdated2 = createEventModule(
|
|
795
|
+
onPublishedContentUpdated
|
|
796
|
+
);
|
|
790
797
|
export {
|
|
791
798
|
Alignment,
|
|
792
799
|
AppType,
|