@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/cjs/meta.d.ts
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. */
|
package/build/es/index.mjs
CHANGED
@@ -1347,7 +1347,7 @@ async function getPost2(postId, options) {
|
|
1347
1347
|
async function getPostBySlug2(slug, options) {
|
1348
1348
|
const { httpClient, sideEffects } = arguments[2];
|
1349
1349
|
const payload = renameKeysFromSDKRequestToRESTRequest(
|
1350
|
-
{ slug, fieldsets: options?.fieldsets },
|
1350
|
+
{ slug, fieldsets: options?.fieldsets, language: options?.language },
|
1351
1351
|
[]
|
1352
1352
|
);
|
1353
1353
|
const reqOpts = getPostBySlug(payload);
|
@@ -1385,7 +1385,11 @@ async function getPostBySlug2(slug, options) {
|
|
1385
1385
|
err,
|
1386
1386
|
{
|
1387
1387
|
spreadPathsToArguments: {},
|
1388
|
-
explicitPathsToArguments: {
|
1388
|
+
explicitPathsToArguments: {
|
1389
|
+
slug: "$[0]",
|
1390
|
+
fieldsets: "$[1].fieldsets",
|
1391
|
+
language: "$[1].language"
|
1392
|
+
},
|
1389
1393
|
singleArgumentUnchanged: false
|
1390
1394
|
},
|
1391
1395
|
["slug", "options"]
|