@zernio/node 0.2.504 → 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 +7 -0
- package/dist/index.d.ts +7 -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 +7 -0
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;
|
|
@@ -10364,7 +10365,13 @@ type ListPostsData = {
|
|
|
10364
10365
|
* Filter posts to those created by a specific team user (24-char hex ObjectId).
|
|
10365
10366
|
*/
|
|
10366
10367
|
createdBy?: string;
|
|
10368
|
+
/**
|
|
10369
|
+
* Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400.
|
|
10370
|
+
*/
|
|
10367
10371
|
dateFrom?: string;
|
|
10372
|
+
/**
|
|
10373
|
+
* Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400.
|
|
10374
|
+
*/
|
|
10368
10375
|
dateTo?: string;
|
|
10369
10376
|
includeHidden?: boolean;
|
|
10370
10377
|
/**
|
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;
|
|
@@ -10364,7 +10365,13 @@ type ListPostsData = {
|
|
|
10364
10365
|
* Filter posts to those created by a specific team user (24-char hex ObjectId).
|
|
10365
10366
|
*/
|
|
10366
10367
|
createdBy?: string;
|
|
10368
|
+
/**
|
|
10369
|
+
* Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400.
|
|
10370
|
+
*/
|
|
10367
10371
|
dateFrom?: string;
|
|
10372
|
+
/**
|
|
10373
|
+
* Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400.
|
|
10374
|
+
*/
|
|
10368
10375
|
dateTo?: string;
|
|
10369
10376
|
includeHidden?: boolean;
|
|
10370
10377
|
/**
|
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>({
|
|
@@ -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 = {
|
|
@@ -9575,7 +9576,13 @@ export type ListPostsData = {
|
|
|
9575
9576
|
* Filter posts to those created by a specific team user (24-char hex ObjectId).
|
|
9576
9577
|
*/
|
|
9577
9578
|
createdBy?: string;
|
|
9579
|
+
/**
|
|
9580
|
+
* Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400.
|
|
9581
|
+
*/
|
|
9578
9582
|
dateFrom?: string;
|
|
9583
|
+
/**
|
|
9584
|
+
* Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400.
|
|
9585
|
+
*/
|
|
9579
9586
|
dateTo?: string;
|
|
9580
9587
|
includeHidden?: boolean;
|
|
9581
9588
|
/**
|