@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.
@@ -2953,6 +2953,11 @@ interface GetPostBySlugRequest {
2953
2953
  * @maxSize 20
2954
2954
  */
2955
2955
  fieldsets?: PostFieldFieldWithLiterals[];
2956
+ /**
2957
+ * Language of the post.
2958
+ * @format LANGUAGE_TAG
2959
+ */
2960
+ language?: string | null;
2956
2961
  }
2957
2962
  interface GetPostBySlugResponse {
2958
2963
  /** Retrieved post info. */
@@ -3726,6 +3731,11 @@ interface GetPostBySlugOptions {
3726
3731
  * @maxSize 20
3727
3732
  */
3728
3733
  fieldsets?: PostFieldFieldWithLiterals[];
3734
+ /**
3735
+ * Language of the post.
3736
+ * @format LANGUAGE_TAG
3737
+ */
3738
+ language?: string | null;
3729
3739
  }
3730
3740
  /**
3731
3741
  * Retrieves a list of up to 100 published posts per request.
@@ -1335,7 +1335,7 @@ async function getPost2(postId, options) {
1335
1335
  async function getPostBySlug2(slug, options) {
1336
1336
  const { httpClient, sideEffects } = arguments[2];
1337
1337
  const payload = renameKeysFromSDKRequestToRESTRequest(
1338
- { slug, fieldsets: options?.fieldsets },
1338
+ { slug, fieldsets: options?.fieldsets, language: options?.language },
1339
1339
  []
1340
1340
  );
1341
1341
  const reqOpts = getPostBySlug(payload);
@@ -1373,7 +1373,11 @@ async function getPostBySlug2(slug, options) {
1373
1373
  err,
1374
1374
  {
1375
1375
  spreadPathsToArguments: {},
1376
- explicitPathsToArguments: { slug: "$[0]", fieldsets: "$[1].fieldsets" },
1376
+ explicitPathsToArguments: {
1377
+ slug: "$[0]",
1378
+ fieldsets: "$[1].fieldsets",
1379
+ language: "$[1].language"
1380
+ },
1377
1381
  singleArgumentUnchanged: false
1378
1382
  },
1379
1383
  ["slug", "options"]