@zernio/node 0.2.306 → 0.2.308
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 +32 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +32 -0
package/dist/index.d.mts
CHANGED
|
@@ -2574,6 +2574,10 @@ type InboxWebhookAccount = {
|
|
|
2574
2574
|
* Social account ID
|
|
2575
2575
|
*/
|
|
2576
2576
|
id: string;
|
|
2577
|
+
/**
|
|
2578
|
+
* Social account ID (same value as id). Canonical field so consumers can filter every webhook event on one field (e.g. route staging vs production by account). id is kept for backward compatibility.
|
|
2579
|
+
*/
|
|
2580
|
+
accountId?: string;
|
|
2577
2581
|
platform: string;
|
|
2578
2582
|
username: string;
|
|
2579
2583
|
displayName?: string;
|
|
@@ -5040,6 +5044,10 @@ type WebhookPayloadComment = {
|
|
|
5040
5044
|
* Social account ID
|
|
5041
5045
|
*/
|
|
5042
5046
|
id: string;
|
|
5047
|
+
/**
|
|
5048
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
5049
|
+
*/
|
|
5050
|
+
accountId?: string;
|
|
5043
5051
|
platform: string;
|
|
5044
5052
|
username: string;
|
|
5045
5053
|
};
|
|
@@ -5115,6 +5123,10 @@ type WebhookPayloadExternalPost = {
|
|
|
5115
5123
|
post: ExternalPostWebhookPost;
|
|
5116
5124
|
account: {
|
|
5117
5125
|
id: string;
|
|
5126
|
+
/**
|
|
5127
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
5128
|
+
*/
|
|
5129
|
+
accountId?: string;
|
|
5118
5130
|
platform: string;
|
|
5119
5131
|
username: string;
|
|
5120
5132
|
};
|
|
@@ -5174,6 +5186,10 @@ type WebhookPayloadLead = {
|
|
|
5174
5186
|
* Social account ID (the facebook account owning the Page)
|
|
5175
5187
|
*/
|
|
5176
5188
|
id: string;
|
|
5189
|
+
/**
|
|
5190
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
5191
|
+
*/
|
|
5192
|
+
accountId?: string;
|
|
5177
5193
|
platform: 'facebook';
|
|
5178
5194
|
};
|
|
5179
5195
|
timestamp: string;
|
|
@@ -5642,6 +5658,10 @@ type WebhookPayloadPost = {
|
|
|
5642
5658
|
platforms: Array<{
|
|
5643
5659
|
platform: string;
|
|
5644
5660
|
status: string;
|
|
5661
|
+
/**
|
|
5662
|
+
* SocialAccount id this platform target published through. Use it to route events by connected account (e.g. separate staging vs production endpoints). A post can span multiple accounts.
|
|
5663
|
+
*/
|
|
5664
|
+
accountId?: string;
|
|
5645
5665
|
platformPostId?: string;
|
|
5646
5666
|
publishedUrl?: string;
|
|
5647
5667
|
error?: string;
|
|
@@ -5682,6 +5702,10 @@ type WebhookPayloadPostPlatform = {
|
|
|
5682
5702
|
platforms: Array<{
|
|
5683
5703
|
platform: string;
|
|
5684
5704
|
status: string;
|
|
5705
|
+
/**
|
|
5706
|
+
* SocialAccount id this platform target published through. On post.platform.* events see also the top-level `account` block.
|
|
5707
|
+
*/
|
|
5708
|
+
accountId?: string;
|
|
5685
5709
|
platformPostId?: string;
|
|
5686
5710
|
publishedUrl?: string;
|
|
5687
5711
|
error?: string;
|
|
@@ -5786,6 +5810,10 @@ type WebhookPayloadReviewNew = {
|
|
|
5786
5810
|
review: ReviewWebhookReview;
|
|
5787
5811
|
account: {
|
|
5788
5812
|
id: string;
|
|
5813
|
+
/**
|
|
5814
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
5815
|
+
*/
|
|
5816
|
+
accountId?: string;
|
|
5789
5817
|
platform: string;
|
|
5790
5818
|
username: string;
|
|
5791
5819
|
};
|
|
@@ -5808,6 +5836,10 @@ type WebhookPayloadReviewUpdated = {
|
|
|
5808
5836
|
review: ReviewWebhookReview;
|
|
5809
5837
|
account: {
|
|
5810
5838
|
id: string;
|
|
5839
|
+
/**
|
|
5840
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
5841
|
+
*/
|
|
5842
|
+
accountId?: string;
|
|
5811
5843
|
platform: string;
|
|
5812
5844
|
username: string;
|
|
5813
5845
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2574,6 +2574,10 @@ type InboxWebhookAccount = {
|
|
|
2574
2574
|
* Social account ID
|
|
2575
2575
|
*/
|
|
2576
2576
|
id: string;
|
|
2577
|
+
/**
|
|
2578
|
+
* Social account ID (same value as id). Canonical field so consumers can filter every webhook event on one field (e.g. route staging vs production by account). id is kept for backward compatibility.
|
|
2579
|
+
*/
|
|
2580
|
+
accountId?: string;
|
|
2577
2581
|
platform: string;
|
|
2578
2582
|
username: string;
|
|
2579
2583
|
displayName?: string;
|
|
@@ -5040,6 +5044,10 @@ type WebhookPayloadComment = {
|
|
|
5040
5044
|
* Social account ID
|
|
5041
5045
|
*/
|
|
5042
5046
|
id: string;
|
|
5047
|
+
/**
|
|
5048
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
5049
|
+
*/
|
|
5050
|
+
accountId?: string;
|
|
5043
5051
|
platform: string;
|
|
5044
5052
|
username: string;
|
|
5045
5053
|
};
|
|
@@ -5115,6 +5123,10 @@ type WebhookPayloadExternalPost = {
|
|
|
5115
5123
|
post: ExternalPostWebhookPost;
|
|
5116
5124
|
account: {
|
|
5117
5125
|
id: string;
|
|
5126
|
+
/**
|
|
5127
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
5128
|
+
*/
|
|
5129
|
+
accountId?: string;
|
|
5118
5130
|
platform: string;
|
|
5119
5131
|
username: string;
|
|
5120
5132
|
};
|
|
@@ -5174,6 +5186,10 @@ type WebhookPayloadLead = {
|
|
|
5174
5186
|
* Social account ID (the facebook account owning the Page)
|
|
5175
5187
|
*/
|
|
5176
5188
|
id: string;
|
|
5189
|
+
/**
|
|
5190
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
5191
|
+
*/
|
|
5192
|
+
accountId?: string;
|
|
5177
5193
|
platform: 'facebook';
|
|
5178
5194
|
};
|
|
5179
5195
|
timestamp: string;
|
|
@@ -5642,6 +5658,10 @@ type WebhookPayloadPost = {
|
|
|
5642
5658
|
platforms: Array<{
|
|
5643
5659
|
platform: string;
|
|
5644
5660
|
status: string;
|
|
5661
|
+
/**
|
|
5662
|
+
* SocialAccount id this platform target published through. Use it to route events by connected account (e.g. separate staging vs production endpoints). A post can span multiple accounts.
|
|
5663
|
+
*/
|
|
5664
|
+
accountId?: string;
|
|
5645
5665
|
platformPostId?: string;
|
|
5646
5666
|
publishedUrl?: string;
|
|
5647
5667
|
error?: string;
|
|
@@ -5682,6 +5702,10 @@ type WebhookPayloadPostPlatform = {
|
|
|
5682
5702
|
platforms: Array<{
|
|
5683
5703
|
platform: string;
|
|
5684
5704
|
status: string;
|
|
5705
|
+
/**
|
|
5706
|
+
* SocialAccount id this platform target published through. On post.platform.* events see also the top-level `account` block.
|
|
5707
|
+
*/
|
|
5708
|
+
accountId?: string;
|
|
5685
5709
|
platformPostId?: string;
|
|
5686
5710
|
publishedUrl?: string;
|
|
5687
5711
|
error?: string;
|
|
@@ -5786,6 +5810,10 @@ type WebhookPayloadReviewNew = {
|
|
|
5786
5810
|
review: ReviewWebhookReview;
|
|
5787
5811
|
account: {
|
|
5788
5812
|
id: string;
|
|
5813
|
+
/**
|
|
5814
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
5815
|
+
*/
|
|
5816
|
+
accountId?: string;
|
|
5789
5817
|
platform: string;
|
|
5790
5818
|
username: string;
|
|
5791
5819
|
};
|
|
@@ -5808,6 +5836,10 @@ type WebhookPayloadReviewUpdated = {
|
|
|
5808
5836
|
review: ReviewWebhookReview;
|
|
5809
5837
|
account: {
|
|
5810
5838
|
id: string;
|
|
5839
|
+
/**
|
|
5840
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
5841
|
+
*/
|
|
5842
|
+
accountId?: string;
|
|
5811
5843
|
platform: string;
|
|
5812
5844
|
username: string;
|
|
5813
5845
|
};
|
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.308",
|
|
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.308",
|
|
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
|
@@ -1864,6 +1864,10 @@ export type InboxWebhookAccount = {
|
|
|
1864
1864
|
* Social account ID
|
|
1865
1865
|
*/
|
|
1866
1866
|
id: string;
|
|
1867
|
+
/**
|
|
1868
|
+
* Social account ID (same value as id). Canonical field so consumers can filter every webhook event on one field (e.g. route staging vs production by account). id is kept for backward compatibility.
|
|
1869
|
+
*/
|
|
1870
|
+
accountId?: string;
|
|
1867
1871
|
platform: string;
|
|
1868
1872
|
username: string;
|
|
1869
1873
|
displayName?: string;
|
|
@@ -4451,6 +4455,10 @@ export type WebhookPayloadComment = {
|
|
|
4451
4455
|
* Social account ID
|
|
4452
4456
|
*/
|
|
4453
4457
|
id: string;
|
|
4458
|
+
/**
|
|
4459
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
4460
|
+
*/
|
|
4461
|
+
accountId?: string;
|
|
4454
4462
|
platform: string;
|
|
4455
4463
|
username: string;
|
|
4456
4464
|
};
|
|
@@ -4532,6 +4540,10 @@ export type WebhookPayloadExternalPost = {
|
|
|
4532
4540
|
post: ExternalPostWebhookPost;
|
|
4533
4541
|
account: {
|
|
4534
4542
|
id: string;
|
|
4543
|
+
/**
|
|
4544
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
4545
|
+
*/
|
|
4546
|
+
accountId?: string;
|
|
4535
4547
|
platform: string;
|
|
4536
4548
|
username: string;
|
|
4537
4549
|
};
|
|
@@ -4593,6 +4605,10 @@ export type WebhookPayloadLead = {
|
|
|
4593
4605
|
* Social account ID (the facebook account owning the Page)
|
|
4594
4606
|
*/
|
|
4595
4607
|
id: string;
|
|
4608
|
+
/**
|
|
4609
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
4610
|
+
*/
|
|
4611
|
+
accountId?: string;
|
|
4596
4612
|
platform: 'facebook';
|
|
4597
4613
|
};
|
|
4598
4614
|
timestamp: string;
|
|
@@ -5075,6 +5091,10 @@ export type WebhookPayloadPost = {
|
|
|
5075
5091
|
platforms: Array<{
|
|
5076
5092
|
platform: string;
|
|
5077
5093
|
status: string;
|
|
5094
|
+
/**
|
|
5095
|
+
* SocialAccount id this platform target published through. Use it to route events by connected account (e.g. separate staging vs production endpoints). A post can span multiple accounts.
|
|
5096
|
+
*/
|
|
5097
|
+
accountId?: string;
|
|
5078
5098
|
platformPostId?: string;
|
|
5079
5099
|
publishedUrl?: string;
|
|
5080
5100
|
error?: string;
|
|
@@ -5117,6 +5137,10 @@ export type WebhookPayloadPostPlatform = {
|
|
|
5117
5137
|
platforms: Array<{
|
|
5118
5138
|
platform: string;
|
|
5119
5139
|
status: string;
|
|
5140
|
+
/**
|
|
5141
|
+
* SocialAccount id this platform target published through. On post.platform.* events see also the top-level `account` block.
|
|
5142
|
+
*/
|
|
5143
|
+
accountId?: string;
|
|
5120
5144
|
platformPostId?: string;
|
|
5121
5145
|
publishedUrl?: string;
|
|
5122
5146
|
error?: string;
|
|
@@ -5226,6 +5250,10 @@ export type WebhookPayloadReviewNew = {
|
|
|
5226
5250
|
review: ReviewWebhookReview;
|
|
5227
5251
|
account: {
|
|
5228
5252
|
id: string;
|
|
5253
|
+
/**
|
|
5254
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
5255
|
+
*/
|
|
5256
|
+
accountId?: string;
|
|
5229
5257
|
platform: string;
|
|
5230
5258
|
username: string;
|
|
5231
5259
|
};
|
|
@@ -5250,6 +5278,10 @@ export type WebhookPayloadReviewUpdated = {
|
|
|
5250
5278
|
review: ReviewWebhookReview;
|
|
5251
5279
|
account: {
|
|
5252
5280
|
id: string;
|
|
5281
|
+
/**
|
|
5282
|
+
* Social account ID (same as id); canonical field for account filtering.
|
|
5283
|
+
*/
|
|
5284
|
+
accountId?: string;
|
|
5253
5285
|
platform: string;
|
|
5254
5286
|
username: string;
|
|
5255
5287
|
};
|