@zernio/node 0.2.505 → 0.2.506

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/dist/index.d.mts CHANGED
@@ -4951,6 +4951,7 @@ type PostsListResponse = {
4951
4951
  type PostUpdateResponse = {
4952
4952
  message?: string;
4953
4953
  post?: Post;
4954
+ warnings?: Array<(string)>;
4954
4955
  };
4955
4956
  type Profile = {
4956
4957
  _id?: string;
package/dist/index.d.ts CHANGED
@@ -4951,6 +4951,7 @@ type PostsListResponse = {
4951
4951
  type PostUpdateResponse = {
4952
4952
  message?: string;
4953
4953
  post?: Post;
4954
+ warnings?: Array<(string)>;
4954
4955
  };
4955
4956
  type Profile = {
4956
4957
  _id?: string;
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@zernio/node",
39
- version: "0.2.505",
39
+ version: "0.2.506",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@zernio/node",
8
- version: "0.2.505",
8
+ version: "0.2.506",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.505",
3
+ "version": "0.2.506",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -865,6 +865,9 @@ export const getPost = <ThrowOnError extends boolean = false>(options: OptionsLe
865
865
  * or `queuedFromProfile`). If `isDraft` is omitted the post keeps its current draft status, so sending only
866
866
  * `scheduledFor` to a draft returns 200 but the post remains a draft.
867
867
  *
868
+ * Non-draft updates run the same per-platform validation as post creation (media requirements, platform-specific
869
+ * field rules, etc.) against the resulting platforms, returning 400 on failure.
870
+ *
868
871
  */
869
872
  export const updatePost = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdatePostData, ThrowOnError>) => {
870
873
  return (options?.client ?? client).put<UpdatePostResponse, UpdatePostError, ThrowOnError>({
@@ -3878,6 +3878,7 @@ export type PostsListResponse = {
3878
3878
  export type PostUpdateResponse = {
3879
3879
  message?: string;
3880
3880
  post?: Post;
3881
+ warnings?: Array<(string)>;
3881
3882
  };
3882
3883
 
3883
3884
  export type Profile = {