@wix/auto_sdk_multilingual_translation-published-contents 1.0.35 → 1.0.37
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 +3 -3
- package/build/cjs/index.js +19 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +8 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +190 -1
- package/build/cjs/meta.js +370 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +15 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +6 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +190 -1
- package/build/es/meta.mjs +328 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.js +19 -9
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +8 -4
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +190 -1
- package/build/internal/cjs/meta.js +370 -4
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.mjs +15 -5
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +6 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +190 -1
- package/build/internal/es/meta.mjs +328 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -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/cjs/index.js
CHANGED
|
@@ -83,10 +83,11 @@ var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
|
83
83
|
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
84
84
|
|
|
85
85
|
// src/multilingual-localization-public-v3-published-content-translation-published-contents.http.ts
|
|
86
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
86
87
|
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
87
88
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
88
89
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
89
|
-
var
|
|
90
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
90
91
|
function resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(opts) {
|
|
91
92
|
const domainToMappings = {
|
|
92
93
|
_: [
|
|
@@ -146,20 +147,23 @@ function resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(op
|
|
|
146
147
|
}
|
|
147
148
|
]
|
|
148
149
|
};
|
|
149
|
-
return (0,
|
|
150
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
150
151
|
}
|
|
151
152
|
var PACKAGE_NAME = "@wix/auto_sdk_multilingual_translation-published-contents";
|
|
152
153
|
function queryPublishedContent(payload) {
|
|
153
154
|
function __queryPublishedContent({ host }) {
|
|
154
155
|
const metadata = {
|
|
155
156
|
entityFqdn: "wix.multilingual.localization_public.v3.published_content",
|
|
156
|
-
method: "
|
|
157
|
+
method: "GET",
|
|
157
158
|
methodFqn: "com.wixpress.localizationpublic.v3.TranslationPublishedContent.QueryPublishedContent",
|
|
158
159
|
packageName: PACKAGE_NAME,
|
|
160
|
+
migrationOptions: {
|
|
161
|
+
optInTransformResponse: true
|
|
162
|
+
},
|
|
159
163
|
url: resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(
|
|
160
164
|
{ protoPath: "/v3/published-contents/query", data: payload, host }
|
|
161
165
|
),
|
|
162
|
-
|
|
166
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload, true),
|
|
163
167
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
164
168
|
{
|
|
165
169
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
@@ -847,12 +851,18 @@ var onPublishedContentUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
847
851
|
)();
|
|
848
852
|
|
|
849
853
|
// src/multilingual-localization-public-v3-published-content-translation-published-contents.context.ts
|
|
850
|
-
var
|
|
854
|
+
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
851
855
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
852
|
-
var queryPublishedContent4 = /* @__PURE__ */ (0,
|
|
853
|
-
var onPublishedContentCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
854
|
-
|
|
855
|
-
|
|
856
|
+
var queryPublishedContent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPublishedContent3);
|
|
857
|
+
var onPublishedContentCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
858
|
+
onPublishedContentCreated
|
|
859
|
+
);
|
|
860
|
+
var onPublishedContentDeleted2 = (0, import_event_definition_modules.createEventModule)(
|
|
861
|
+
onPublishedContentDeleted
|
|
862
|
+
);
|
|
863
|
+
var onPublishedContentUpdated2 = (0, import_event_definition_modules.createEventModule)(
|
|
864
|
+
onPublishedContentUpdated
|
|
865
|
+
);
|
|
856
866
|
// Annotate the CommonJS export names for ESM import in node:
|
|
857
867
|
0 && (module.exports = {
|
|
858
868
|
Alignment,
|