@zernio/node 0.2.856 → 0.2.857

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
@@ -15108,18 +15108,28 @@ type ListPostsData = {
15108
15108
  */
15109
15109
  createdBy?: string;
15110
15110
  /**
15111
- * Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400.
15111
+ * Alias of fromDate, kept for existing callers
15112
+ * @deprecated
15112
15113
  */
15113
15114
  dateFrom?: string;
15114
15115
  /**
15115
- * Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400.
15116
+ * Alias of toDate, kept for existing callers
15117
+ * @deprecated
15116
15118
  */
15117
15119
  dateTo?: string;
15120
+ /**
15121
+ * Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400. The same name the other date-window filters use (ads, analytics).
15122
+ */
15123
+ fromDate?: string;
15118
15124
  includeHidden?: boolean;
15119
15125
  /**
15120
15126
  * Page size. Values above the maximum return 400 rather than being clamped.
15121
15127
  */
15122
15128
  limit?: number;
15129
+ /**
15130
+ * Row offset. Takes precedence over page when both are sent; the response pagination.page is derived from it.
15131
+ */
15132
+ offset?: number;
15123
15133
  /**
15124
15134
  * Page number (1-based)
15125
15135
  */
@@ -15142,6 +15152,10 @@ type ListPostsData = {
15142
15152
  */
15143
15153
  source?: 'zernio' | 'external';
15144
15154
  status?: 'draft' | 'scheduled' | 'publishing' | 'published' | 'partial' | 'failed' | 'cancelled';
15155
+ /**
15156
+ * Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400. The same name the other date-window filters use (ads, analytics).
15157
+ */
15158
+ toDate?: string;
15145
15159
  };
15146
15160
  };
15147
15161
  type ListPostsResponse = (PostsListResponse);
package/dist/index.d.ts CHANGED
@@ -15108,18 +15108,28 @@ type ListPostsData = {
15108
15108
  */
15109
15109
  createdBy?: string;
15110
15110
  /**
15111
- * Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400.
15111
+ * Alias of fromDate, kept for existing callers
15112
+ * @deprecated
15112
15113
  */
15113
15114
  dateFrom?: string;
15114
15115
  /**
15115
- * Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400.
15116
+ * Alias of toDate, kept for existing callers
15117
+ * @deprecated
15116
15118
  */
15117
15119
  dateTo?: string;
15120
+ /**
15121
+ * Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400. The same name the other date-window filters use (ads, analytics).
15122
+ */
15123
+ fromDate?: string;
15118
15124
  includeHidden?: boolean;
15119
15125
  /**
15120
15126
  * Page size. Values above the maximum return 400 rather than being clamped.
15121
15127
  */
15122
15128
  limit?: number;
15129
+ /**
15130
+ * Row offset. Takes precedence over page when both are sent; the response pagination.page is derived from it.
15131
+ */
15132
+ offset?: number;
15123
15133
  /**
15124
15134
  * Page number (1-based)
15125
15135
  */
@@ -15142,6 +15152,10 @@ type ListPostsData = {
15142
15152
  */
15143
15153
  source?: 'zernio' | 'external';
15144
15154
  status?: 'draft' | 'scheduled' | 'publishing' | 'published' | 'partial' | 'failed' | 'cancelled';
15155
+ /**
15156
+ * Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400. The same name the other date-window filters use (ads, analytics).
15157
+ */
15158
+ toDate?: string;
15145
15159
  };
15146
15160
  };
15147
15161
  type ListPostsResponse = (PostsListResponse);
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.856",
39
+ version: "0.2.857",
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.856",
8
+ version: "0.2.857",
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.856",
3
+ "version": "0.2.857",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -870,7 +870,7 @@ export const getSmsUsage = <ThrowOnError extends boolean = false>(options?: Opti
870
870
 
871
871
  /**
872
872
  * List posts
873
- * Returns a paginated list of posts. Published posts include platformPostUrl with the public URL on each platform.
873
+ * Returns a paginated list of posts. Published posts include platformPostUrl with the public URL on each platform. A query parameter that is not listed here returns 400 naming it and the accepted parameters, so a misspelled filter never silently returns the unfiltered list.
874
874
  */
875
875
  export const listPosts = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListPostsData, ThrowOnError>) => {
876
876
  return (options?.client ?? client).get<ListPostsResponse, ListPostsError, ThrowOnError>({
@@ -14038,18 +14038,28 @@ export type ListPostsData = {
14038
14038
  */
14039
14039
  createdBy?: string;
14040
14040
  /**
14041
- * Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400.
14041
+ * Alias of fromDate, kept for existing callers
14042
+ * @deprecated
14042
14043
  */
14043
14044
  dateFrom?: string;
14044
14045
  /**
14045
- * Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400.
14046
+ * Alias of toDate, kept for existing callers
14047
+ * @deprecated
14046
14048
  */
14047
14049
  dateTo?: string;
14050
+ /**
14051
+ * Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400. The same name the other date-window filters use (ads, analytics).
14052
+ */
14053
+ fromDate?: string;
14048
14054
  includeHidden?: boolean;
14049
14055
  /**
14050
14056
  * Page size. Values above the maximum return 400 rather than being clamped.
14051
14057
  */
14052
14058
  limit?: number;
14059
+ /**
14060
+ * Row offset. Takes precedence over page when both are sent; the response pagination.page is derived from it.
14061
+ */
14062
+ offset?: number;
14053
14063
  /**
14054
14064
  * Page number (1-based)
14055
14065
  */
@@ -14072,6 +14082,10 @@ export type ListPostsData = {
14072
14082
  */
14073
14083
  source?: 'zernio' | 'external';
14074
14084
  status?: 'draft' | 'scheduled' | 'publishing' | 'published' | 'partial' | 'failed' | 'cancelled';
14085
+ /**
14086
+ * Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400. The same name the other date-window filters use (ads, analytics).
14087
+ */
14088
+ toDate?: string;
14075
14089
  };
14076
14090
  };
14077
14091