@wix/auto_sdk_blog_posts 1.0.46 → 1.0.47
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.js +6 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +10 -0
- package/build/cjs/index.typings.js +6 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -0
- package/build/es/index.mjs +6 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +10 -0
- package/build/es/index.typings.mjs +6 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -0
- package/build/internal/cjs/index.js +6 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +10 -0
- package/build/internal/cjs/index.typings.js +6 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +5 -0
- package/build/internal/es/index.mjs +6 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +10 -0
- 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 +5 -0
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
@@ -1919,6 +1919,11 @@ interface GetPostBySlugRequest {
|
|
1919
1919
|
* @maxSize 20
|
1920
1920
|
*/
|
1921
1921
|
fieldsets?: PostFieldFieldWithLiterals[];
|
1922
|
+
/**
|
1923
|
+
* Language of the post.
|
1924
|
+
* @format LANGUAGE_TAG
|
1925
|
+
*/
|
1926
|
+
language?: string | null;
|
1922
1927
|
}
|
1923
1928
|
interface GetPostBySlugResponse {
|
1924
1929
|
/** Retrieved post info. */
|
@@ -1429,7 +1429,7 @@ async function getPost2(postId, options) {
|
|
1429
1429
|
async function getPostBySlug2(slug, options) {
|
1430
1430
|
const { httpClient, sideEffects } = arguments[2];
|
1431
1431
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
1432
|
-
{ slug, fieldsets: options?.fieldsets },
|
1432
|
+
{ slug, fieldsets: options?.fieldsets, language: options?.language },
|
1433
1433
|
[]
|
1434
1434
|
);
|
1435
1435
|
const reqOpts = getPostBySlug(payload);
|
@@ -1467,7 +1467,11 @@ async function getPostBySlug2(slug, options) {
|
|
1467
1467
|
err,
|
1468
1468
|
{
|
1469
1469
|
spreadPathsToArguments: {},
|
1470
|
-
explicitPathsToArguments: {
|
1470
|
+
explicitPathsToArguments: {
|
1471
|
+
slug: "$[0]",
|
1472
|
+
fieldsets: "$[1].fieldsets",
|
1473
|
+
language: "$[1].language"
|
1474
|
+
},
|
1471
1475
|
singleArgumentUnchanged: false
|
1472
1476
|
},
|
1473
1477
|
["slug", "options"]
|