@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.
@@ -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. */
@@ -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: { slug: "$[0]", fieldsets: "$[1].fieldsets" },
1388
+ explicitPathsToArguments: {
1389
+ slug: "$[0]",
1390
+ fieldsets: "$[1].fieldsets",
1391
+ language: "$[1].language"
1392
+ },
1389
1393
  singleArgumentUnchanged: false
1390
1394
  },
1391
1395
  ["slug", "options"]