@wix/auto_sdk_multilingual_translation-published-contents 1.0.21 → 1.0.22
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/index.d.mts +49 -0
- package/build/index.d.ts +49 -0
- package/build/index.js +850 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +790 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +49 -0
- package/build/internal/index.d.ts +49 -0
- package/build/internal/index.js +850 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +790 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.types.d.ts → internal/meta.d.mts} +187 -360
- package/build/{es/src/multilingual-localization-public-v3-published-content-translation-published-contents.types.d.ts → internal/meta.d.ts} +187 -360
- package/build/internal/meta.js +239 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +212 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/internal/{cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.d.ts → multilingual-localization-public-v3-published-content-translation-published-contents.universal-CZFjMeB8.d.mts} +197 -266
- package/build/{cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.d.ts → internal/multilingual-localization-public-v3-published-content-translation-published-contents.universal-CZFjMeB8.d.ts} +197 -266
- package/build/{internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.types.d.ts → meta.d.mts} +187 -360
- package/build/{internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.types.d.ts → meta.d.ts} +187 -360
- package/build/meta.js +239 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +212 -0
- package/build/meta.mjs.map +1 -0
- package/build/{internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.d.ts → multilingual-localization-public-v3-published-content-translation-published-contents.universal-CZFjMeB8.d.mts} +197 -266
- package/build/{es/src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.d.ts → multilingual-localization-public-v3-published-content-translation-published-contents.universal-CZFjMeB8.d.ts} +197 -266
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.context.d.ts +0 -21
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.context.js +0 -57
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.context.js.map +0 -1
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.http.d.ts +0 -24
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.http.js +0 -208
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.http.js.map +0 -1
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.d.ts +0 -13
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.js +0 -47
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.js.map +0 -1
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.public.d.ts +0 -35
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.public.js +0 -258
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.public.js.map +0 -1
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.types.js +0 -333
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.types.js.map +0 -1
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.js +0 -450
- package/build/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.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/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.context.d.ts +0 -21
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.context.js +0 -21
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.context.js.map +0 -1
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.http.d.ts +0 -24
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.http.js +0 -204
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.http.js.map +0 -1
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.d.ts +0 -13
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.js +0 -20
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.js.map +0 -1
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.public.d.ts +0 -35
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.public.js +0 -221
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.public.js.map +0 -1
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.types.js +0 -330
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.types.js.map +0 -1
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.js +0 -423
- package/build/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.context.d.ts +0 -21
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.context.js +0 -57
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.context.js.map +0 -1
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.http.d.ts +0 -24
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.http.js +0 -208
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.http.js.map +0 -1
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.d.ts +0 -13
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.js +0 -47
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.js.map +0 -1
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.public.d.ts +0 -35
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.public.js +0 -258
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.public.js.map +0 -1
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.types.js +0 -333
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.types.js.map +0 -1
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.js +0 -450
- package/build/internal/cjs/src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.context.d.ts +0 -21
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.context.js +0 -21
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.context.js.map +0 -1
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.http.d.ts +0 -24
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.http.js +0 -204
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.http.js.map +0 -1
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.d.ts +0 -13
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.js +0 -20
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.meta.js.map +0 -1
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.public.d.ts +0 -35
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.public.js +0 -221
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.public.js.map +0 -1
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.types.js +0 -330
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.types.js.map +0 -1
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.js +0 -423
- package/build/internal/es/src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.js.map +0 -1
package/build/index.mjs
ADDED
|
@@ -0,0 +1,790 @@
|
|
|
1
|
+
// src/multilingual-localization-public-v3-published-content-translation-published-contents.public.ts
|
|
2
|
+
import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
3
|
+
import { transformRESTDocumentToSDKDocument as transformRESTDocumentToSDKDocument2 } from "@wix/sdk-runtime/transformations/document";
|
|
4
|
+
import { transformRESTFloatToSDKFloat as transformRESTFloatToSDKFloat2 } from "@wix/sdk-runtime/transformations/float";
|
|
5
|
+
import { transformRESTImageToSDKImage as transformRESTImageToSDKImage2 } from "@wix/sdk-runtime/transformations/image";
|
|
6
|
+
import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
|
|
7
|
+
import { transformPaths as transformPaths3 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
8
|
+
import { transformRESTVideoV2ToSDKVideoV2 as transformRESTVideoV2ToSDKVideoV22 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
9
|
+
import { EventDefinition } from "@wix/sdk-types";
|
|
10
|
+
|
|
11
|
+
// src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.ts
|
|
12
|
+
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
13
|
+
import { queryBuilder } from "@wix/sdk-runtime/query-builder";
|
|
14
|
+
import {
|
|
15
|
+
renameKeysFromSDKRequestToRESTRequest,
|
|
16
|
+
renameKeysFromRESTResponseToSDKResponse
|
|
17
|
+
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
18
|
+
|
|
19
|
+
// src/multilingual-localization-public-v3-published-content-translation-published-contents.http.ts
|
|
20
|
+
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
21
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
22
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
23
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
24
|
+
function resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(opts) {
|
|
25
|
+
const domainToMappings = {
|
|
26
|
+
_: [
|
|
27
|
+
{
|
|
28
|
+
srcPath: "/localization-public",
|
|
29
|
+
destPath: ""
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
srcPath: "/translation-published-content/v3",
|
|
33
|
+
destPath: "/v3"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
srcPath: "/_api/translation-published-content/v3",
|
|
37
|
+
destPath: "/v3"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"cashier.wixapps.net": [
|
|
41
|
+
{
|
|
42
|
+
srcPath: "/multilingual/v1/public-localized-content",
|
|
43
|
+
destPath: "/v1/public-localized-content"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"*.dev.wix-code.com": [
|
|
47
|
+
{
|
|
48
|
+
srcPath: "/_api/translation-published-content/v3",
|
|
49
|
+
destPath: "/v3"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"manage._base_domain_": [
|
|
53
|
+
{
|
|
54
|
+
srcPath: "/_api/translation-published-content/v3",
|
|
55
|
+
destPath: "/v3"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"editor._base_domain_": [
|
|
59
|
+
{
|
|
60
|
+
srcPath: "/_api/translation-published-content/v3",
|
|
61
|
+
destPath: "/v3"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"blocks._base_domain_": [
|
|
65
|
+
{
|
|
66
|
+
srcPath: "/_api/translation-published-content/v3",
|
|
67
|
+
destPath: "/v3"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"create.editorx": [
|
|
71
|
+
{
|
|
72
|
+
srcPath: "/_api/translation-published-content/v3",
|
|
73
|
+
destPath: "/v3"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"www.wixapis.com": [
|
|
77
|
+
{
|
|
78
|
+
srcPath: "/translation-published-content/v3",
|
|
79
|
+
destPath: "/v3"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
};
|
|
83
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
84
|
+
}
|
|
85
|
+
var PACKAGE_NAME = "@wix/auto_sdk_multilingual_translation-published-contents";
|
|
86
|
+
function queryPublishedContent(payload) {
|
|
87
|
+
function __queryPublishedContent({ host }) {
|
|
88
|
+
const metadata = {
|
|
89
|
+
entityFqdn: "wix.multilingual.localization_public.v3.published_content",
|
|
90
|
+
method: "POST",
|
|
91
|
+
methodFqn: "com.wixpress.localizationpublic.v3.TranslationPublishedContent.QueryPublishedContent",
|
|
92
|
+
packageName: PACKAGE_NAME,
|
|
93
|
+
url: resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(
|
|
94
|
+
{ protoPath: "/v3/published-contents/query", data: payload, host }
|
|
95
|
+
),
|
|
96
|
+
data: payload,
|
|
97
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
98
|
+
{
|
|
99
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
100
|
+
paths: [
|
|
101
|
+
{
|
|
102
|
+
path: "publishedContent.fields.richContent.nodes.galleryData.items.image.media.duration"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
path: "publishedContent.fields.richContent.nodes.galleryData.items.video.media.duration"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
path: "publishedContent.fields.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
path: "publishedContent.fields.richContent.nodes.galleryData.options.item.ratio"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
path: "publishedContent.fields.richContent.nodes.imageData.image.duration"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
path: "publishedContent.fields.richContent.nodes.mapData.mapSettings.lat"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
path: "publishedContent.fields.richContent.nodes.mapData.mapSettings.lng"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
path: "publishedContent.fields.richContent.nodes.pollData.poll.image.duration"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
path: "publishedContent.fields.richContent.nodes.pollData.poll.options.image.duration"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
path: "publishedContent.fields.richContent.nodes.pollData.design.poll.background.image.duration"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
path: "publishedContent.fields.richContent.nodes.appEmbedData.image.duration"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
path: "publishedContent.fields.richContent.nodes.videoData.video.duration"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
path: "publishedContent.fields.richContent.nodes.videoData.thumbnail.duration"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
path: "publishedContent.fields.richContent.nodes.audioData.audio.duration"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
path: "publishedContent.fields.richContent.nodes.audioData.coverImage.duration"
|
|
145
|
+
},
|
|
146
|
+
{ path: "publishedContent.fields.image.focalPoint.x" },
|
|
147
|
+
{ path: "publishedContent.fields.image.focalPoint.y" },
|
|
148
|
+
{
|
|
149
|
+
path: "publishedContent.fields.video.resolutions.poster.focalPoint.x"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
path: "publishedContent.fields.video.resolutions.poster.focalPoint.y"
|
|
153
|
+
},
|
|
154
|
+
{ path: "publishedContent.fields.video.posters.focalPoint.x" },
|
|
155
|
+
{ path: "publishedContent.fields.video.posters.focalPoint.y" },
|
|
156
|
+
{
|
|
157
|
+
path: "publishedContent.fields.document.thumbnail.focalPoint.x"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
path: "publishedContent.fields.document.thumbnail.focalPoint.y"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
166
|
+
paths: [
|
|
167
|
+
{
|
|
168
|
+
path: "publishedContent.fields.richContent.metadata.createdTimestamp"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
path: "publishedContent.fields.richContent.metadata.updatedTimestamp"
|
|
172
|
+
},
|
|
173
|
+
{ path: "publishedContent.fields.image.urlExpirationDate" },
|
|
174
|
+
{ path: "publishedContent.fields.video.urlExpirationDate" },
|
|
175
|
+
{
|
|
176
|
+
path: "publishedContent.fields.video.resolutions.urlExpirationDate"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
path: "publishedContent.fields.video.resolutions.poster.urlExpirationDate"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
path: "publishedContent.fields.video.posters.urlExpirationDate"
|
|
183
|
+
},
|
|
184
|
+
{ path: "publishedContent.fields.document.urlExpirationDate" },
|
|
185
|
+
{
|
|
186
|
+
path: "publishedContent.fields.document.thumbnail.urlExpirationDate"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
]),
|
|
191
|
+
fallback: [
|
|
192
|
+
{
|
|
193
|
+
method: "POST",
|
|
194
|
+
url: resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(
|
|
195
|
+
{ protoPath: "/v3/published-contents/query", data: payload, host }
|
|
196
|
+
),
|
|
197
|
+
data: payload
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
};
|
|
201
|
+
return metadata;
|
|
202
|
+
}
|
|
203
|
+
return __queryPublishedContent;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// src/multilingual-localization-public-v3-published-content-translation-published-contents.universal.ts
|
|
207
|
+
import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
|
|
208
|
+
import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
209
|
+
import { transformRESTDocumentToSDKDocument } from "@wix/sdk-runtime/transformations/document";
|
|
210
|
+
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
211
|
+
var SchemaScope = /* @__PURE__ */ ((SchemaScope2) => {
|
|
212
|
+
SchemaScope2["UNKNOWN_SCOPE"] = "UNKNOWN_SCOPE";
|
|
213
|
+
SchemaScope2["GLOBAL"] = "GLOBAL";
|
|
214
|
+
SchemaScope2["SITE"] = "SITE";
|
|
215
|
+
return SchemaScope2;
|
|
216
|
+
})(SchemaScope || {});
|
|
217
|
+
var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
218
|
+
NodeType2["PARAGRAPH"] = "PARAGRAPH";
|
|
219
|
+
NodeType2["TEXT"] = "TEXT";
|
|
220
|
+
NodeType2["HEADING"] = "HEADING";
|
|
221
|
+
NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
|
|
222
|
+
NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
|
|
223
|
+
NodeType2["LIST_ITEM"] = "LIST_ITEM";
|
|
224
|
+
NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
|
|
225
|
+
NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
|
|
226
|
+
NodeType2["VIDEO"] = "VIDEO";
|
|
227
|
+
NodeType2["DIVIDER"] = "DIVIDER";
|
|
228
|
+
NodeType2["FILE"] = "FILE";
|
|
229
|
+
NodeType2["GALLERY"] = "GALLERY";
|
|
230
|
+
NodeType2["GIF"] = "GIF";
|
|
231
|
+
NodeType2["HTML"] = "HTML";
|
|
232
|
+
NodeType2["IMAGE"] = "IMAGE";
|
|
233
|
+
NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
|
|
234
|
+
NodeType2["MAP"] = "MAP";
|
|
235
|
+
NodeType2["POLL"] = "POLL";
|
|
236
|
+
NodeType2["APP_EMBED"] = "APP_EMBED";
|
|
237
|
+
NodeType2["BUTTON"] = "BUTTON";
|
|
238
|
+
NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
|
|
239
|
+
NodeType2["TABLE"] = "TABLE";
|
|
240
|
+
NodeType2["EMBED"] = "EMBED";
|
|
241
|
+
NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
|
|
242
|
+
NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
|
|
243
|
+
NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
|
|
244
|
+
NodeType2["TABLE_CELL"] = "TABLE_CELL";
|
|
245
|
+
NodeType2["TABLE_ROW"] = "TABLE_ROW";
|
|
246
|
+
NodeType2["EXTERNAL"] = "EXTERNAL";
|
|
247
|
+
NodeType2["AUDIO"] = "AUDIO";
|
|
248
|
+
NodeType2["CAPTION"] = "CAPTION";
|
|
249
|
+
NodeType2["LAYOUT"] = "LAYOUT";
|
|
250
|
+
NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
|
|
251
|
+
return NodeType2;
|
|
252
|
+
})(NodeType || {});
|
|
253
|
+
var WidthType = /* @__PURE__ */ ((WidthType2) => {
|
|
254
|
+
WidthType2["CONTENT"] = "CONTENT";
|
|
255
|
+
WidthType2["SMALL"] = "SMALL";
|
|
256
|
+
WidthType2["ORIGINAL"] = "ORIGINAL";
|
|
257
|
+
WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
|
|
258
|
+
return WidthType2;
|
|
259
|
+
})(WidthType || {});
|
|
260
|
+
var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
|
|
261
|
+
PluginContainerDataAlignment2["CENTER"] = "CENTER";
|
|
262
|
+
PluginContainerDataAlignment2["LEFT"] = "LEFT";
|
|
263
|
+
PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
|
|
264
|
+
return PluginContainerDataAlignment2;
|
|
265
|
+
})(PluginContainerDataAlignment || {});
|
|
266
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
267
|
+
Type2["LINK"] = "LINK";
|
|
268
|
+
Type2["ACTION"] = "ACTION";
|
|
269
|
+
return Type2;
|
|
270
|
+
})(Type || {});
|
|
271
|
+
var Target = /* @__PURE__ */ ((Target2) => {
|
|
272
|
+
Target2["SELF"] = "SELF";
|
|
273
|
+
Target2["BLANK"] = "BLANK";
|
|
274
|
+
Target2["PARENT"] = "PARENT";
|
|
275
|
+
Target2["TOP"] = "TOP";
|
|
276
|
+
return Target2;
|
|
277
|
+
})(Target || {});
|
|
278
|
+
var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
279
|
+
TextAlignment2["AUTO"] = "AUTO";
|
|
280
|
+
TextAlignment2["LEFT"] = "LEFT";
|
|
281
|
+
TextAlignment2["RIGHT"] = "RIGHT";
|
|
282
|
+
TextAlignment2["CENTER"] = "CENTER";
|
|
283
|
+
TextAlignment2["JUSTIFY"] = "JUSTIFY";
|
|
284
|
+
return TextAlignment2;
|
|
285
|
+
})(TextAlignment || {});
|
|
286
|
+
var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
|
|
287
|
+
LineStyle2["SINGLE"] = "SINGLE";
|
|
288
|
+
LineStyle2["DOUBLE"] = "DOUBLE";
|
|
289
|
+
LineStyle2["DASHED"] = "DASHED";
|
|
290
|
+
LineStyle2["DOTTED"] = "DOTTED";
|
|
291
|
+
return LineStyle2;
|
|
292
|
+
})(LineStyle || {});
|
|
293
|
+
var Width = /* @__PURE__ */ ((Width2) => {
|
|
294
|
+
Width2["LARGE"] = "LARGE";
|
|
295
|
+
Width2["MEDIUM"] = "MEDIUM";
|
|
296
|
+
Width2["SMALL"] = "SMALL";
|
|
297
|
+
return Width2;
|
|
298
|
+
})(Width || {});
|
|
299
|
+
var Alignment = /* @__PURE__ */ ((Alignment2) => {
|
|
300
|
+
Alignment2["CENTER"] = "CENTER";
|
|
301
|
+
Alignment2["LEFT"] = "LEFT";
|
|
302
|
+
Alignment2["RIGHT"] = "RIGHT";
|
|
303
|
+
return Alignment2;
|
|
304
|
+
})(Alignment || {});
|
|
305
|
+
var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
|
|
306
|
+
ViewMode2["NONE"] = "NONE";
|
|
307
|
+
ViewMode2["FULL"] = "FULL";
|
|
308
|
+
ViewMode2["MINI"] = "MINI";
|
|
309
|
+
return ViewMode2;
|
|
310
|
+
})(ViewMode || {});
|
|
311
|
+
var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
|
|
312
|
+
LayoutType2["COLLAGE"] = "COLLAGE";
|
|
313
|
+
LayoutType2["MASONRY"] = "MASONRY";
|
|
314
|
+
LayoutType2["GRID"] = "GRID";
|
|
315
|
+
LayoutType2["THUMBNAIL"] = "THUMBNAIL";
|
|
316
|
+
LayoutType2["SLIDER"] = "SLIDER";
|
|
317
|
+
LayoutType2["SLIDESHOW"] = "SLIDESHOW";
|
|
318
|
+
LayoutType2["PANORAMA"] = "PANORAMA";
|
|
319
|
+
LayoutType2["COLUMN"] = "COLUMN";
|
|
320
|
+
LayoutType2["MAGIC"] = "MAGIC";
|
|
321
|
+
LayoutType2["FULLSIZE"] = "FULLSIZE";
|
|
322
|
+
return LayoutType2;
|
|
323
|
+
})(LayoutType || {});
|
|
324
|
+
var Orientation = /* @__PURE__ */ ((Orientation2) => {
|
|
325
|
+
Orientation2["ROWS"] = "ROWS";
|
|
326
|
+
Orientation2["COLUMNS"] = "COLUMNS";
|
|
327
|
+
return Orientation2;
|
|
328
|
+
})(Orientation || {});
|
|
329
|
+
var Crop = /* @__PURE__ */ ((Crop2) => {
|
|
330
|
+
Crop2["FILL"] = "FILL";
|
|
331
|
+
Crop2["FIT"] = "FIT";
|
|
332
|
+
return Crop2;
|
|
333
|
+
})(Crop || {});
|
|
334
|
+
var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
|
|
335
|
+
ThumbnailsAlignment2["TOP"] = "TOP";
|
|
336
|
+
ThumbnailsAlignment2["RIGHT"] = "RIGHT";
|
|
337
|
+
ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
|
|
338
|
+
ThumbnailsAlignment2["LEFT"] = "LEFT";
|
|
339
|
+
ThumbnailsAlignment2["NONE"] = "NONE";
|
|
340
|
+
return ThumbnailsAlignment2;
|
|
341
|
+
})(ThumbnailsAlignment || {});
|
|
342
|
+
var GIFType = /* @__PURE__ */ ((GIFType2) => {
|
|
343
|
+
GIFType2["NORMAL"] = "NORMAL";
|
|
344
|
+
GIFType2["STICKER"] = "STICKER";
|
|
345
|
+
return GIFType2;
|
|
346
|
+
})(GIFType || {});
|
|
347
|
+
var Source = /* @__PURE__ */ ((Source2) => {
|
|
348
|
+
Source2["HTML"] = "HTML";
|
|
349
|
+
Source2["ADSENSE"] = "ADSENSE";
|
|
350
|
+
return Source2;
|
|
351
|
+
})(Source || {});
|
|
352
|
+
var Position = /* @__PURE__ */ ((Position2) => {
|
|
353
|
+
Position2["START"] = "START";
|
|
354
|
+
Position2["END"] = "END";
|
|
355
|
+
Position2["TOP"] = "TOP";
|
|
356
|
+
Position2["HIDDEN"] = "HIDDEN";
|
|
357
|
+
return Position2;
|
|
358
|
+
})(Position || {});
|
|
359
|
+
var MapType = /* @__PURE__ */ ((MapType2) => {
|
|
360
|
+
MapType2["ROADMAP"] = "ROADMAP";
|
|
361
|
+
MapType2["SATELITE"] = "SATELITE";
|
|
362
|
+
MapType2["HYBRID"] = "HYBRID";
|
|
363
|
+
MapType2["TERRAIN"] = "TERRAIN";
|
|
364
|
+
return MapType2;
|
|
365
|
+
})(MapType || {});
|
|
366
|
+
var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
|
|
367
|
+
ViewRole2["CREATOR"] = "CREATOR";
|
|
368
|
+
ViewRole2["VOTERS"] = "VOTERS";
|
|
369
|
+
ViewRole2["EVERYONE"] = "EVERYONE";
|
|
370
|
+
return ViewRole2;
|
|
371
|
+
})(ViewRole || {});
|
|
372
|
+
var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
|
|
373
|
+
VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
|
|
374
|
+
VoteRole2["ALL"] = "ALL";
|
|
375
|
+
return VoteRole2;
|
|
376
|
+
})(VoteRole || {});
|
|
377
|
+
var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
|
|
378
|
+
PollLayoutType2["LIST"] = "LIST";
|
|
379
|
+
PollLayoutType2["GRID"] = "GRID";
|
|
380
|
+
return PollLayoutType2;
|
|
381
|
+
})(PollLayoutType || {});
|
|
382
|
+
var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
|
|
383
|
+
PollLayoutDirection2["LTR"] = "LTR";
|
|
384
|
+
PollLayoutDirection2["RTL"] = "RTL";
|
|
385
|
+
return PollLayoutDirection2;
|
|
386
|
+
})(PollLayoutDirection || {});
|
|
387
|
+
var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
|
|
388
|
+
BackgroundType2["COLOR"] = "COLOR";
|
|
389
|
+
BackgroundType2["IMAGE"] = "IMAGE";
|
|
390
|
+
BackgroundType2["GRADIENT"] = "GRADIENT";
|
|
391
|
+
return BackgroundType2;
|
|
392
|
+
})(BackgroundType || {});
|
|
393
|
+
var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
|
|
394
|
+
DecorationType2["BOLD"] = "BOLD";
|
|
395
|
+
DecorationType2["ITALIC"] = "ITALIC";
|
|
396
|
+
DecorationType2["UNDERLINE"] = "UNDERLINE";
|
|
397
|
+
DecorationType2["SPOILER"] = "SPOILER";
|
|
398
|
+
DecorationType2["ANCHOR"] = "ANCHOR";
|
|
399
|
+
DecorationType2["MENTION"] = "MENTION";
|
|
400
|
+
DecorationType2["LINK"] = "LINK";
|
|
401
|
+
DecorationType2["COLOR"] = "COLOR";
|
|
402
|
+
DecorationType2["FONT_SIZE"] = "FONT_SIZE";
|
|
403
|
+
DecorationType2["EXTERNAL"] = "EXTERNAL";
|
|
404
|
+
DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
405
|
+
return DecorationType2;
|
|
406
|
+
})(DecorationType || {});
|
|
407
|
+
var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
408
|
+
FontType2["PX"] = "PX";
|
|
409
|
+
FontType2["EM"] = "EM";
|
|
410
|
+
return FontType2;
|
|
411
|
+
})(FontType || {});
|
|
412
|
+
var AppType = /* @__PURE__ */ ((AppType2) => {
|
|
413
|
+
AppType2["PRODUCT"] = "PRODUCT";
|
|
414
|
+
AppType2["EVENT"] = "EVENT";
|
|
415
|
+
AppType2["BOOKING"] = "BOOKING";
|
|
416
|
+
return AppType2;
|
|
417
|
+
})(AppType || {});
|
|
418
|
+
var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
|
|
419
|
+
InitialExpandedItems2["FIRST"] = "FIRST";
|
|
420
|
+
InitialExpandedItems2["ALL"] = "ALL";
|
|
421
|
+
InitialExpandedItems2["NONE"] = "NONE";
|
|
422
|
+
return InitialExpandedItems2;
|
|
423
|
+
})(InitialExpandedItems || {});
|
|
424
|
+
var Direction = /* @__PURE__ */ ((Direction2) => {
|
|
425
|
+
Direction2["LTR"] = "LTR";
|
|
426
|
+
Direction2["RTL"] = "RTL";
|
|
427
|
+
return Direction2;
|
|
428
|
+
})(Direction || {});
|
|
429
|
+
var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
|
|
430
|
+
VerticalAlignment2["TOP"] = "TOP";
|
|
431
|
+
VerticalAlignment2["MIDDLE"] = "MIDDLE";
|
|
432
|
+
VerticalAlignment2["BOTTOM"] = "BOTTOM";
|
|
433
|
+
return VerticalAlignment2;
|
|
434
|
+
})(VerticalAlignment || {});
|
|
435
|
+
var NullValue = /* @__PURE__ */ ((NullValue2) => {
|
|
436
|
+
NullValue2["NULL_VALUE"] = "NULL_VALUE";
|
|
437
|
+
return NullValue2;
|
|
438
|
+
})(NullValue || {});
|
|
439
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
440
|
+
SortOrder2["ASC"] = "ASC";
|
|
441
|
+
SortOrder2["DESC"] = "DESC";
|
|
442
|
+
return SortOrder2;
|
|
443
|
+
})(SortOrder || {});
|
|
444
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
445
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
446
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
447
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
448
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
449
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
450
|
+
return WebhookIdentityType2;
|
|
451
|
+
})(WebhookIdentityType || {});
|
|
452
|
+
function queryPublishedContent2() {
|
|
453
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
454
|
+
return queryBuilder({
|
|
455
|
+
func: async (payload) => {
|
|
456
|
+
const reqOpts = queryPublishedContent(
|
|
457
|
+
payload
|
|
458
|
+
);
|
|
459
|
+
sideEffects?.onSiteCall?.();
|
|
460
|
+
try {
|
|
461
|
+
const result = await httpClient.request(reqOpts);
|
|
462
|
+
sideEffects?.onSuccess?.(result);
|
|
463
|
+
return result;
|
|
464
|
+
} catch (err) {
|
|
465
|
+
sideEffects?.onError?.(err);
|
|
466
|
+
throw err;
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
requestTransformer: (query) => {
|
|
470
|
+
const args = [query, {}];
|
|
471
|
+
return renameKeysFromSDKRequestToRESTRequest(
|
|
472
|
+
{ ...args?.[1], query: args?.[0] },
|
|
473
|
+
[]
|
|
474
|
+
);
|
|
475
|
+
},
|
|
476
|
+
responseTransformer: ({
|
|
477
|
+
data
|
|
478
|
+
}) => {
|
|
479
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(
|
|
480
|
+
transformPaths2(data, [
|
|
481
|
+
{
|
|
482
|
+
transformFn: transformRESTImageToSDKImage,
|
|
483
|
+
paths: [{ path: "publishedContent.fields.image" }]
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
487
|
+
paths: [{ path: "publishedContent.fields.video" }]
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
transformFn: transformRESTDocumentToSDKDocument,
|
|
491
|
+
paths: [{ path: "publishedContent.fields.document" }]
|
|
492
|
+
}
|
|
493
|
+
]),
|
|
494
|
+
["publishedContent.fields.richContent"]
|
|
495
|
+
);
|
|
496
|
+
return {
|
|
497
|
+
items: transformedData?.publishedContent,
|
|
498
|
+
pagingMetadata: transformedData?.pagingMetadata
|
|
499
|
+
};
|
|
500
|
+
},
|
|
501
|
+
errorTransformer: (err) => {
|
|
502
|
+
const transformedError = sdkTransformError(err, {
|
|
503
|
+
spreadPathsToArguments: {},
|
|
504
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
505
|
+
singleArgumentUnchanged: false
|
|
506
|
+
});
|
|
507
|
+
throw transformedError;
|
|
508
|
+
},
|
|
509
|
+
pagingMethod: "CURSOR",
|
|
510
|
+
transformationPaths: {}
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
// src/multilingual-localization-public-v3-published-content-translation-published-contents.public.ts
|
|
515
|
+
function queryPublishedContent3(httpClient) {
|
|
516
|
+
return () => queryPublishedContent2(
|
|
517
|
+
// @ts-ignore
|
|
518
|
+
{ httpClient }
|
|
519
|
+
);
|
|
520
|
+
}
|
|
521
|
+
var onPublishedContentCreated = EventDefinition(
|
|
522
|
+
"wix.multilingual.localization_public.v3.published_content_created",
|
|
523
|
+
true,
|
|
524
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
525
|
+
transformPaths3(event, [
|
|
526
|
+
{
|
|
527
|
+
transformFn: transformRESTImageToSDKImage2,
|
|
528
|
+
paths: [{ path: "entity.fields.image" }]
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
532
|
+
paths: [{ path: "entity.fields.video" }]
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
transformFn: transformRESTDocumentToSDKDocument2,
|
|
536
|
+
paths: [{ path: "entity.fields.document" }]
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
transformFn: transformRESTFloatToSDKFloat2,
|
|
540
|
+
paths: [
|
|
541
|
+
{
|
|
542
|
+
path: "entity.fields.richContent.nodes.galleryData.items.image.media.duration"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
path: "entity.fields.richContent.nodes.galleryData.items.video.media.duration"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
path: "entity.fields.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
path: "entity.fields.richContent.nodes.galleryData.options.item.ratio"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
path: "entity.fields.richContent.nodes.imageData.image.duration"
|
|
555
|
+
},
|
|
556
|
+
{ path: "entity.fields.richContent.nodes.mapData.mapSettings.lat" },
|
|
557
|
+
{ path: "entity.fields.richContent.nodes.mapData.mapSettings.lng" },
|
|
558
|
+
{
|
|
559
|
+
path: "entity.fields.richContent.nodes.pollData.poll.image.duration"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
path: "entity.fields.richContent.nodes.pollData.poll.options.image.duration"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
path: "entity.fields.richContent.nodes.pollData.design.poll.background.image.duration"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
path: "entity.fields.richContent.nodes.appEmbedData.image.duration"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
path: "entity.fields.richContent.nodes.videoData.video.duration"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
path: "entity.fields.richContent.nodes.videoData.thumbnail.duration"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
path: "entity.fields.richContent.nodes.audioData.audio.duration"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
path: "entity.fields.richContent.nodes.audioData.coverImage.duration"
|
|
581
|
+
}
|
|
582
|
+
]
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
586
|
+
paths: [
|
|
587
|
+
{ path: "entity.fields.richContent.metadata.createdTimestamp" },
|
|
588
|
+
{ path: "entity.fields.richContent.metadata.updatedTimestamp" },
|
|
589
|
+
{ path: "metadata.eventTime" }
|
|
590
|
+
]
|
|
591
|
+
}
|
|
592
|
+
])
|
|
593
|
+
)
|
|
594
|
+
)();
|
|
595
|
+
var onPublishedContentDeleted = EventDefinition(
|
|
596
|
+
"wix.multilingual.localization_public.v3.published_content_deleted",
|
|
597
|
+
true,
|
|
598
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
599
|
+
transformPaths3(event, [
|
|
600
|
+
{
|
|
601
|
+
transformFn: transformRESTImageToSDKImage2,
|
|
602
|
+
paths: [{ path: "entity.fields.image" }]
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
606
|
+
paths: [{ path: "entity.fields.video" }]
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
transformFn: transformRESTDocumentToSDKDocument2,
|
|
610
|
+
paths: [{ path: "entity.fields.document" }]
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
transformFn: transformRESTFloatToSDKFloat2,
|
|
614
|
+
paths: [
|
|
615
|
+
{
|
|
616
|
+
path: "entity.fields.richContent.nodes.galleryData.items.image.media.duration"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
path: "entity.fields.richContent.nodes.galleryData.items.video.media.duration"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
path: "entity.fields.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
path: "entity.fields.richContent.nodes.galleryData.options.item.ratio"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
path: "entity.fields.richContent.nodes.imageData.image.duration"
|
|
629
|
+
},
|
|
630
|
+
{ path: "entity.fields.richContent.nodes.mapData.mapSettings.lat" },
|
|
631
|
+
{ path: "entity.fields.richContent.nodes.mapData.mapSettings.lng" },
|
|
632
|
+
{
|
|
633
|
+
path: "entity.fields.richContent.nodes.pollData.poll.image.duration"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
path: "entity.fields.richContent.nodes.pollData.poll.options.image.duration"
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
path: "entity.fields.richContent.nodes.pollData.design.poll.background.image.duration"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
path: "entity.fields.richContent.nodes.appEmbedData.image.duration"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
path: "entity.fields.richContent.nodes.videoData.video.duration"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
path: "entity.fields.richContent.nodes.videoData.thumbnail.duration"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
path: "entity.fields.richContent.nodes.audioData.audio.duration"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
path: "entity.fields.richContent.nodes.audioData.coverImage.duration"
|
|
655
|
+
}
|
|
656
|
+
]
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
660
|
+
paths: [
|
|
661
|
+
{ path: "entity.fields.richContent.metadata.createdTimestamp" },
|
|
662
|
+
{ path: "entity.fields.richContent.metadata.updatedTimestamp" },
|
|
663
|
+
{ path: "metadata.eventTime" }
|
|
664
|
+
]
|
|
665
|
+
}
|
|
666
|
+
])
|
|
667
|
+
)
|
|
668
|
+
)();
|
|
669
|
+
var onPublishedContentUpdated = EventDefinition(
|
|
670
|
+
"wix.multilingual.localization_public.v3.published_content_updated",
|
|
671
|
+
true,
|
|
672
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
673
|
+
transformPaths3(event, [
|
|
674
|
+
{
|
|
675
|
+
transformFn: transformRESTImageToSDKImage2,
|
|
676
|
+
paths: [{ path: "entity.fields.image" }]
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
680
|
+
paths: [{ path: "entity.fields.video" }]
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
transformFn: transformRESTDocumentToSDKDocument2,
|
|
684
|
+
paths: [{ path: "entity.fields.document" }]
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
transformFn: transformRESTFloatToSDKFloat2,
|
|
688
|
+
paths: [
|
|
689
|
+
{
|
|
690
|
+
path: "entity.fields.richContent.nodes.galleryData.items.image.media.duration"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
path: "entity.fields.richContent.nodes.galleryData.items.video.media.duration"
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
path: "entity.fields.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
path: "entity.fields.richContent.nodes.galleryData.options.item.ratio"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
path: "entity.fields.richContent.nodes.imageData.image.duration"
|
|
703
|
+
},
|
|
704
|
+
{ path: "entity.fields.richContent.nodes.mapData.mapSettings.lat" },
|
|
705
|
+
{ path: "entity.fields.richContent.nodes.mapData.mapSettings.lng" },
|
|
706
|
+
{
|
|
707
|
+
path: "entity.fields.richContent.nodes.pollData.poll.image.duration"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
path: "entity.fields.richContent.nodes.pollData.poll.options.image.duration"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
path: "entity.fields.richContent.nodes.pollData.design.poll.background.image.duration"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
path: "entity.fields.richContent.nodes.appEmbedData.image.duration"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
path: "entity.fields.richContent.nodes.videoData.video.duration"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
path: "entity.fields.richContent.nodes.videoData.thumbnail.duration"
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
path: "entity.fields.richContent.nodes.audioData.audio.duration"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
path: "entity.fields.richContent.nodes.audioData.coverImage.duration"
|
|
729
|
+
}
|
|
730
|
+
]
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
734
|
+
paths: [
|
|
735
|
+
{ path: "entity.fields.richContent.metadata.createdTimestamp" },
|
|
736
|
+
{ path: "entity.fields.richContent.metadata.updatedTimestamp" },
|
|
737
|
+
{ path: "metadata.eventTime" }
|
|
738
|
+
]
|
|
739
|
+
}
|
|
740
|
+
])
|
|
741
|
+
)
|
|
742
|
+
)();
|
|
743
|
+
|
|
744
|
+
// src/multilingual-localization-public-v3-published-content-translation-published-contents.context.ts
|
|
745
|
+
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
746
|
+
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
747
|
+
var queryPublishedContent4 = /* @__PURE__ */ createRESTModule(queryPublishedContent3);
|
|
748
|
+
var onPublishedContentCreated2 = createEventModule(onPublishedContentCreated);
|
|
749
|
+
var onPublishedContentDeleted2 = createEventModule(onPublishedContentDeleted);
|
|
750
|
+
var onPublishedContentUpdated2 = createEventModule(onPublishedContentUpdated);
|
|
751
|
+
export {
|
|
752
|
+
Alignment,
|
|
753
|
+
AppType,
|
|
754
|
+
BackgroundType,
|
|
755
|
+
Crop,
|
|
756
|
+
DecorationType,
|
|
757
|
+
Direction,
|
|
758
|
+
FontType,
|
|
759
|
+
GIFType,
|
|
760
|
+
InitialExpandedItems,
|
|
761
|
+
LayoutType,
|
|
762
|
+
LineStyle,
|
|
763
|
+
MapType,
|
|
764
|
+
NodeType,
|
|
765
|
+
NullValue,
|
|
766
|
+
Orientation,
|
|
767
|
+
PluginContainerDataAlignment,
|
|
768
|
+
PollLayoutDirection,
|
|
769
|
+
PollLayoutType,
|
|
770
|
+
Position,
|
|
771
|
+
SchemaScope,
|
|
772
|
+
SortOrder,
|
|
773
|
+
Source,
|
|
774
|
+
Target,
|
|
775
|
+
TextAlignment,
|
|
776
|
+
ThumbnailsAlignment,
|
|
777
|
+
Type,
|
|
778
|
+
VerticalAlignment,
|
|
779
|
+
ViewMode,
|
|
780
|
+
ViewRole,
|
|
781
|
+
VoteRole,
|
|
782
|
+
WebhookIdentityType,
|
|
783
|
+
Width,
|
|
784
|
+
WidthType,
|
|
785
|
+
onPublishedContentCreated2 as onPublishedContentCreated,
|
|
786
|
+
onPublishedContentDeleted2 as onPublishedContentDeleted,
|
|
787
|
+
onPublishedContentUpdated2 as onPublishedContentUpdated,
|
|
788
|
+
queryPublishedContent4 as queryPublishedContent
|
|
789
|
+
};
|
|
790
|
+
//# sourceMappingURL=index.mjs.map
|