@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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +3 -0
- package/src/generated/types.gen.ts +1 -0
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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.
|
|
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.
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -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>({
|