@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.
@@ -2946,6 +2946,11 @@ interface GetPostBySlugRequest {
2946
2946
  * @maxSize 20
2947
2947
  */
2948
2948
  fieldsets?: PostFieldFieldWithLiterals[];
2949
+ /**
2950
+ * Language of the post.
2951
+ * @format LANGUAGE_TAG
2952
+ */
2953
+ language?: string | null;
2949
2954
  }
2950
2955
  interface GetPostBySlugResponse {
2951
2956
  /** Retrieved post info. */
@@ -3719,6 +3724,11 @@ interface GetPostBySlugOptions {
3719
3724
  * @maxSize 20
3720
3725
  */
3721
3726
  fieldsets?: PostFieldFieldWithLiterals[];
3727
+ /**
3728
+ * Language of the post.
3729
+ * @format LANGUAGE_TAG
3730
+ */
3731
+ language?: string | null;
3722
3732
  }
3723
3733
  /**
3724
3734
  * 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"]