@zernio/node 0.2.298 → 0.2.300
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/README.md +1 -1
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/generated/types.gen.ts +4 -0
package/README.md
CHANGED
|
@@ -178,7 +178,6 @@ try {
|
|
|
178
178
|
| `posts.deletePost()` | Delete post |
|
|
179
179
|
| `posts.editPost()` | Edit published post |
|
|
180
180
|
| `posts.retryPost()` | Retry failed post |
|
|
181
|
-
| `posts.syncExternalPosts()` | Sync an external post |
|
|
182
181
|
| `posts.unpublishPost()` | Unpublish post |
|
|
183
182
|
|
|
184
183
|
### Accounts
|
|
@@ -231,6 +230,7 @@ try {
|
|
|
231
230
|
| `analytics.getYouTubeDailyViews()` | Get YouTube daily views |
|
|
232
231
|
| `analytics.getYouTubeDemographics()` | Get YouTube demographics |
|
|
233
232
|
| `analytics.getYouTubeVideoRetention()` | Get YouTube video retention curve |
|
|
233
|
+
| `analytics.syncExternalPosts()` | Sync an external post |
|
|
234
234
|
|
|
235
235
|
### Account Groups
|
|
236
236
|
| Method | Description |
|
package/dist/index.d.mts
CHANGED
|
@@ -86,6 +86,7 @@ declare class Zernio {
|
|
|
86
86
|
getPostTimeline: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetPostTimelineData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetPostTimelineResponse, GetPostTimelineError, ThrowOnError>;
|
|
87
87
|
getGoogleBusinessPerformance: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetGoogleBusinessPerformanceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetGoogleBusinessPerformanceResponse, GetGoogleBusinessPerformanceError, ThrowOnError>;
|
|
88
88
|
getGoogleBusinessSearchKeywords: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetGoogleBusinessSearchKeywordsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetGoogleBusinessSearchKeywordsResponse, GetGoogleBusinessSearchKeywordsError, ThrowOnError>;
|
|
89
|
+
syncExternalPosts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SyncExternalPostsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SyncExternalPostsResponse, ErrorResponse, ThrowOnError>;
|
|
89
90
|
getLinkedInAggregateAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInAggregateAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInAggregateAnalyticsResponse, unknown, ThrowOnError>;
|
|
90
91
|
getLinkedInPostAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInPostAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInPostAnalyticsResponse, unknown, ThrowOnError>;
|
|
91
92
|
getLinkedInPostReactions: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInPostReactionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInPostReactionsResponse, unknown, ThrowOnError>;
|
|
@@ -137,7 +138,6 @@ declare class Zernio {
|
|
|
137
138
|
posts: {
|
|
138
139
|
listPosts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListPostsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PostsListResponse, ListPostsError, ThrowOnError>;
|
|
139
140
|
createPost: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreatePostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PostCreateResponse, CreatePostError, ThrowOnError>;
|
|
140
|
-
syncExternalPosts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SyncExternalPostsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SyncExternalPostsResponse, ErrorResponse, ThrowOnError>;
|
|
141
141
|
getPost: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetPostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PostGetResponse, unknown, ThrowOnError>;
|
|
142
142
|
updatePost: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdatePostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
143
143
|
deletePost: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeletePostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PostDeleteResponse, unknown, ThrowOnError>;
|
|
@@ -13033,6 +13033,10 @@ type SendInboxMessageData = {
|
|
|
13033
13033
|
* Type of attachment. Defaults to file if not specified.
|
|
13034
13034
|
*/
|
|
13035
13035
|
attachmentType?: 'image' | 'video' | 'audio' | 'file';
|
|
13036
|
+
/**
|
|
13037
|
+
* WhatsApp only. Display name for a document sent via attachmentUrl with attachmentType: file (e.g. "Report.pdf"). Maps to the recipient's file name; without it WhatsApp derives the name from the URL and shows "Untitled". Ignored for image/video/audio and for binary uploads (which use the uploaded file's name).
|
|
13038
|
+
*/
|
|
13039
|
+
attachmentName?: string;
|
|
13036
13040
|
/**
|
|
13037
13041
|
* WhatsApp only. When `true` on an audio attachment, the message is sent
|
|
13038
13042
|
* as a voice message (PTT) — the recipient sees the waveform + voice-note
|
package/dist/index.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ declare class Zernio {
|
|
|
86
86
|
getPostTimeline: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetPostTimelineData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetPostTimelineResponse, GetPostTimelineError, ThrowOnError>;
|
|
87
87
|
getGoogleBusinessPerformance: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetGoogleBusinessPerformanceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetGoogleBusinessPerformanceResponse, GetGoogleBusinessPerformanceError, ThrowOnError>;
|
|
88
88
|
getGoogleBusinessSearchKeywords: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetGoogleBusinessSearchKeywordsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetGoogleBusinessSearchKeywordsResponse, GetGoogleBusinessSearchKeywordsError, ThrowOnError>;
|
|
89
|
+
syncExternalPosts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SyncExternalPostsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SyncExternalPostsResponse, ErrorResponse, ThrowOnError>;
|
|
89
90
|
getLinkedInAggregateAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInAggregateAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInAggregateAnalyticsResponse, unknown, ThrowOnError>;
|
|
90
91
|
getLinkedInPostAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInPostAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInPostAnalyticsResponse, unknown, ThrowOnError>;
|
|
91
92
|
getLinkedInPostReactions: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInPostReactionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInPostReactionsResponse, unknown, ThrowOnError>;
|
|
@@ -137,7 +138,6 @@ declare class Zernio {
|
|
|
137
138
|
posts: {
|
|
138
139
|
listPosts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListPostsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PostsListResponse, ListPostsError, ThrowOnError>;
|
|
139
140
|
createPost: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreatePostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PostCreateResponse, CreatePostError, ThrowOnError>;
|
|
140
|
-
syncExternalPosts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SyncExternalPostsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SyncExternalPostsResponse, ErrorResponse, ThrowOnError>;
|
|
141
141
|
getPost: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetPostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PostGetResponse, unknown, ThrowOnError>;
|
|
142
142
|
updatePost: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdatePostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
143
143
|
deletePost: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeletePostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PostDeleteResponse, unknown, ThrowOnError>;
|
|
@@ -13033,6 +13033,10 @@ type SendInboxMessageData = {
|
|
|
13033
13033
|
* Type of attachment. Defaults to file if not specified.
|
|
13034
13034
|
*/
|
|
13035
13035
|
attachmentType?: 'image' | 'video' | 'audio' | 'file';
|
|
13036
|
+
/**
|
|
13037
|
+
* WhatsApp only. Display name for a document sent via attachmentUrl with attachmentType: file (e.g. "Report.pdf"). Maps to the recipient's file name; without it WhatsApp derives the name from the URL and shows "Untitled". Ignored for image/video/audio and for binary uploads (which use the uploaded file's name).
|
|
13038
|
+
*/
|
|
13039
|
+
attachmentName?: string;
|
|
13036
13040
|
/**
|
|
13037
13041
|
* WhatsApp only. When `true` on an audio attachment, the message is sent
|
|
13038
13042
|
* as a voice message (PTT) — the recipient sees the waveform + voice-note
|
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.300",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -2855,6 +2855,7 @@ var Zernio = class {
|
|
|
2855
2855
|
getPostTimeline,
|
|
2856
2856
|
getGoogleBusinessPerformance,
|
|
2857
2857
|
getGoogleBusinessSearchKeywords,
|
|
2858
|
+
syncExternalPosts,
|
|
2858
2859
|
getLinkedInAggregateAnalytics,
|
|
2859
2860
|
getLinkedInPostAnalytics,
|
|
2860
2861
|
getLinkedInPostReactions
|
|
@@ -2906,7 +2907,6 @@ var Zernio = class {
|
|
|
2906
2907
|
this.posts = {
|
|
2907
2908
|
listPosts,
|
|
2908
2909
|
createPost,
|
|
2909
|
-
syncExternalPosts,
|
|
2910
2910
|
getPost,
|
|
2911
2911
|
updatePost,
|
|
2912
2912
|
deletePost,
|
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.300",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -2824,6 +2824,7 @@ var Zernio = class {
|
|
|
2824
2824
|
getPostTimeline,
|
|
2825
2825
|
getGoogleBusinessPerformance,
|
|
2826
2826
|
getGoogleBusinessSearchKeywords,
|
|
2827
|
+
syncExternalPosts,
|
|
2827
2828
|
getLinkedInAggregateAnalytics,
|
|
2828
2829
|
getLinkedInPostAnalytics,
|
|
2829
2830
|
getLinkedInPostReactions
|
|
@@ -2875,7 +2876,6 @@ var Zernio = class {
|
|
|
2875
2876
|
this.posts = {
|
|
2876
2877
|
listPosts,
|
|
2877
2878
|
createPost,
|
|
2878
|
-
syncExternalPosts,
|
|
2879
2879
|
getPost,
|
|
2880
2880
|
updatePost,
|
|
2881
2881
|
deletePost,
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -488,6 +488,7 @@ export class Zernio {
|
|
|
488
488
|
getPostTimeline: getPostTimeline,
|
|
489
489
|
getGoogleBusinessPerformance: getGoogleBusinessPerformance,
|
|
490
490
|
getGoogleBusinessSearchKeywords: getGoogleBusinessSearchKeywords,
|
|
491
|
+
syncExternalPosts: syncExternalPosts,
|
|
491
492
|
getLinkedInAggregateAnalytics: getLinkedInAggregateAnalytics,
|
|
492
493
|
getLinkedInPostAnalytics: getLinkedInPostAnalytics,
|
|
493
494
|
getLinkedInPostReactions: getLinkedInPostReactions,
|
|
@@ -545,7 +546,6 @@ export class Zernio {
|
|
|
545
546
|
posts = {
|
|
546
547
|
listPosts: listPosts,
|
|
547
548
|
createPost: createPost,
|
|
548
|
-
syncExternalPosts: syncExternalPosts,
|
|
549
549
|
getPost: getPost,
|
|
550
550
|
updatePost: updatePost,
|
|
551
551
|
deletePost: deletePost,
|
|
@@ -13003,6 +13003,10 @@ export type SendInboxMessageData = {
|
|
|
13003
13003
|
* Type of attachment. Defaults to file if not specified.
|
|
13004
13004
|
*/
|
|
13005
13005
|
attachmentType?: 'image' | 'video' | 'audio' | 'file';
|
|
13006
|
+
/**
|
|
13007
|
+
* WhatsApp only. Display name for a document sent via attachmentUrl with attachmentType: file (e.g. "Report.pdf"). Maps to the recipient's file name; without it WhatsApp derives the name from the URL and shows "Untitled". Ignored for image/video/audio and for binary uploads (which use the uploaded file's name).
|
|
13008
|
+
*/
|
|
13009
|
+
attachmentName?: string;
|
|
13006
13010
|
/**
|
|
13007
13011
|
* WhatsApp only. When `true` on an audio attachment, the message is sent
|
|
13008
13012
|
* as a voice message (PTT) — the recipient sees the waveform + voice-note
|