@getlatedev/node 0.2.1081 → 0.2.1083
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 +15 -5
- package/dist/index.d.ts +15 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +9 -7
- package/src/generated/types.gen.ts +15 -5
package/dist/index.d.mts
CHANGED
|
@@ -18166,7 +18166,7 @@ type GetInboxTopAccountsData = {
|
|
|
18166
18166
|
query: {
|
|
18167
18167
|
fromDate: string;
|
|
18168
18168
|
/**
|
|
18169
|
-
* Cap on returned rows. Lower than the posting listing's 100 because each row triggers a
|
|
18169
|
+
* Cap on returned rows. Lower than the posting listing's 100 because each row triggers a social account lookup.
|
|
18170
18170
|
*/
|
|
18171
18171
|
limit?: number;
|
|
18172
18172
|
platform?: string;
|
|
@@ -18228,7 +18228,7 @@ type ListInboxConversationAnalyticsResponse = ({
|
|
|
18228
18228
|
*/
|
|
18229
18229
|
conversationId?: string;
|
|
18230
18230
|
/**
|
|
18231
|
-
* The
|
|
18231
|
+
* The Zernio conversation id, when a matching conversation exists
|
|
18232
18232
|
*/
|
|
18233
18233
|
mongoId?: (string) | null;
|
|
18234
18234
|
accountId?: string;
|
|
@@ -18265,7 +18265,7 @@ type ListInboxConversationAnalyticsError = ({
|
|
|
18265
18265
|
type GetInboxConversationAnalyticsData = {
|
|
18266
18266
|
path: {
|
|
18267
18267
|
/**
|
|
18268
|
-
*
|
|
18268
|
+
* Zernio conversation id or platformConversationId.
|
|
18269
18269
|
*/
|
|
18270
18270
|
conversationId: string;
|
|
18271
18271
|
};
|
|
@@ -24010,8 +24010,18 @@ type GetFacebookPagesResponse = ({
|
|
|
24010
24010
|
username?: string;
|
|
24011
24011
|
category?: string;
|
|
24012
24012
|
fan_count?: number;
|
|
24013
|
+
/**
|
|
24014
|
+
* The Instagram professional account linked to the Page (Meta instagram_business_account), or null when none is linked or the list was served from a cache stored before this field existed (pass refresh=true to re-read it).
|
|
24015
|
+
*/
|
|
24016
|
+
instagramAccount?: {
|
|
24017
|
+
/**
|
|
24018
|
+
* Instagram professional account id, usable as instagramAccountId on POST /v1/ads/create
|
|
24019
|
+
*/
|
|
24020
|
+
id?: string;
|
|
24021
|
+
username?: (string) | null;
|
|
24022
|
+
} | null;
|
|
24013
24023
|
}>;
|
|
24014
|
-
selectedPageId?: string;
|
|
24024
|
+
selectedPageId?: (string) | null;
|
|
24015
24025
|
/**
|
|
24016
24026
|
* false when this response was just read from Meta (cold cache or a refresh that ran), true when served from the stored list (including a debounced refresh or an empty Meta answer)
|
|
24017
24027
|
*/
|
|
@@ -29982,7 +29992,7 @@ type EnableWhatsAppCallingLegacyData = {
|
|
|
29982
29992
|
};
|
|
29983
29993
|
path: {
|
|
29984
29994
|
/**
|
|
29985
|
-
*
|
|
29995
|
+
* WhatsApp phone number id
|
|
29986
29996
|
*/
|
|
29987
29997
|
id: string;
|
|
29988
29998
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -18166,7 +18166,7 @@ type GetInboxTopAccountsData = {
|
|
|
18166
18166
|
query: {
|
|
18167
18167
|
fromDate: string;
|
|
18168
18168
|
/**
|
|
18169
|
-
* Cap on returned rows. Lower than the posting listing's 100 because each row triggers a
|
|
18169
|
+
* Cap on returned rows. Lower than the posting listing's 100 because each row triggers a social account lookup.
|
|
18170
18170
|
*/
|
|
18171
18171
|
limit?: number;
|
|
18172
18172
|
platform?: string;
|
|
@@ -18228,7 +18228,7 @@ type ListInboxConversationAnalyticsResponse = ({
|
|
|
18228
18228
|
*/
|
|
18229
18229
|
conversationId?: string;
|
|
18230
18230
|
/**
|
|
18231
|
-
* The
|
|
18231
|
+
* The Zernio conversation id, when a matching conversation exists
|
|
18232
18232
|
*/
|
|
18233
18233
|
mongoId?: (string) | null;
|
|
18234
18234
|
accountId?: string;
|
|
@@ -18265,7 +18265,7 @@ type ListInboxConversationAnalyticsError = ({
|
|
|
18265
18265
|
type GetInboxConversationAnalyticsData = {
|
|
18266
18266
|
path: {
|
|
18267
18267
|
/**
|
|
18268
|
-
*
|
|
18268
|
+
* Zernio conversation id or platformConversationId.
|
|
18269
18269
|
*/
|
|
18270
18270
|
conversationId: string;
|
|
18271
18271
|
};
|
|
@@ -24010,8 +24010,18 @@ type GetFacebookPagesResponse = ({
|
|
|
24010
24010
|
username?: string;
|
|
24011
24011
|
category?: string;
|
|
24012
24012
|
fan_count?: number;
|
|
24013
|
+
/**
|
|
24014
|
+
* The Instagram professional account linked to the Page (Meta instagram_business_account), or null when none is linked or the list was served from a cache stored before this field existed (pass refresh=true to re-read it).
|
|
24015
|
+
*/
|
|
24016
|
+
instagramAccount?: {
|
|
24017
|
+
/**
|
|
24018
|
+
* Instagram professional account id, usable as instagramAccountId on POST /v1/ads/create
|
|
24019
|
+
*/
|
|
24020
|
+
id?: string;
|
|
24021
|
+
username?: (string) | null;
|
|
24022
|
+
} | null;
|
|
24013
24023
|
}>;
|
|
24014
|
-
selectedPageId?: string;
|
|
24024
|
+
selectedPageId?: (string) | null;
|
|
24015
24025
|
/**
|
|
24016
24026
|
* false when this response was just read from Meta (cold cache or a refresh that ran), true when served from the stored list (including a debounced refresh or an empty Meta answer)
|
|
24017
24027
|
*/
|
|
@@ -29982,7 +29992,7 @@ type EnableWhatsAppCallingLegacyData = {
|
|
|
29982
29992
|
};
|
|
29983
29993
|
path: {
|
|
29984
29994
|
/**
|
|
29985
|
-
*
|
|
29995
|
+
* WhatsApp phone number id
|
|
29986
29996
|
*/
|
|
29987
29997
|
id: string;
|
|
29988
29998
|
};
|
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: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1083",
|
|
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: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1083",
|
|
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
|
@@ -645,11 +645,11 @@ export const listInboxConversationAnalytics = <ThrowOnError extends boolean = fa
|
|
|
645
645
|
* /v1/analytics/post-timeline: one conversation, daily totals,
|
|
646
646
|
* source mix.
|
|
647
647
|
*
|
|
648
|
-
* The {conversationId} path param accepts EITHER the
|
|
649
|
-
*
|
|
650
|
-
*
|
|
651
|
-
* Ownership is verified
|
|
652
|
-
*
|
|
648
|
+
* The {conversationId} path param accepts EITHER the Zernio
|
|
649
|
+
* conversation id OR its `platformConversationId` (the same
|
|
650
|
+
* identity used by metadata.conversationId at ingest time).
|
|
651
|
+
* Ownership is verified against the caller's team before the
|
|
652
|
+
* Tinybird query fires.
|
|
653
653
|
*
|
|
654
654
|
* Max date range is 365 days.
|
|
655
655
|
*
|
|
@@ -2696,7 +2696,8 @@ export const revokeBusinessPartner = <ThrowOnError extends boolean = false>(opti
|
|
|
2696
2696
|
|
|
2697
2697
|
/**
|
|
2698
2698
|
* List Facebook pages
|
|
2699
|
-
* Returns all Facebook
|
|
2699
|
+
* Returns all Facebook Pages the connected account has access to, including the currently selected Page and the Instagram professional account linked to each Page. Works on `facebook` accounts and on `metaads` accounts (classic and Facebook Login for Business connections). On a business-login `metaads` connection `selectedPageId` is the default Page ads run as, and every listed Page can be passed as `pageId` on POST /v1/ads/create. A classic `metaads` connection has no default Page, so `selectedPageId` is null there.
|
|
2700
|
+
*
|
|
2700
2701
|
*/
|
|
2701
2702
|
export const getFacebookPages = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetFacebookPagesData, ThrowOnError>) => {
|
|
2702
2703
|
return (options?.client ?? client).get<GetFacebookPagesResponse, GetFacebookPagesError, ThrowOnError>({
|
|
@@ -2707,7 +2708,8 @@ export const getFacebookPages = <ThrowOnError extends boolean = false>(options:
|
|
|
2707
2708
|
|
|
2708
2709
|
/**
|
|
2709
2710
|
* Update Facebook page
|
|
2710
|
-
* Switch which Facebook Page is active for a connected account.
|
|
2711
|
+
* Switch which Facebook Page is active for a connected account. On a `facebook` account this changes the Page posts publish to. On a Facebook Login for Business `metaads` connection it changes the default Page ads run as (and the Page whose leads are ingested). A classic `metaads` connection has no default Page and answers 400; pass `pageId` per ad on POST /v1/ads/create instead. The Page must be in the list returned by GET (use refresh=true to pick up newly granted Pages).
|
|
2712
|
+
*
|
|
2711
2713
|
*/
|
|
2712
2714
|
export const updateFacebookPage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateFacebookPageData, ThrowOnError>) => {
|
|
2713
2715
|
return (options?.client ?? client).put<UpdateFacebookPageResponse, UpdateFacebookPageError, ThrowOnError>({
|
|
@@ -16932,7 +16932,7 @@ export type GetInboxTopAccountsData = {
|
|
|
16932
16932
|
query: {
|
|
16933
16933
|
fromDate: string;
|
|
16934
16934
|
/**
|
|
16935
|
-
* Cap on returned rows. Lower than the posting listing's 100 because each row triggers a
|
|
16935
|
+
* Cap on returned rows. Lower than the posting listing's 100 because each row triggers a social account lookup.
|
|
16936
16936
|
*/
|
|
16937
16937
|
limit?: number;
|
|
16938
16938
|
platform?: string;
|
|
@@ -16998,7 +16998,7 @@ export type ListInboxConversationAnalyticsResponse = ({
|
|
|
16998
16998
|
*/
|
|
16999
16999
|
conversationId?: string;
|
|
17000
17000
|
/**
|
|
17001
|
-
* The
|
|
17001
|
+
* The Zernio conversation id, when a matching conversation exists
|
|
17002
17002
|
*/
|
|
17003
17003
|
mongoId?: (string) | null;
|
|
17004
17004
|
accountId?: string;
|
|
@@ -17037,7 +17037,7 @@ export type ListInboxConversationAnalyticsError = ({
|
|
|
17037
17037
|
export type GetInboxConversationAnalyticsData = {
|
|
17038
17038
|
path: {
|
|
17039
17039
|
/**
|
|
17040
|
-
*
|
|
17040
|
+
* Zernio conversation id or platformConversationId.
|
|
17041
17041
|
*/
|
|
17042
17042
|
conversationId: string;
|
|
17043
17043
|
};
|
|
@@ -23134,8 +23134,18 @@ export type GetFacebookPagesResponse = ({
|
|
|
23134
23134
|
username?: string;
|
|
23135
23135
|
category?: string;
|
|
23136
23136
|
fan_count?: number;
|
|
23137
|
+
/**
|
|
23138
|
+
* The Instagram professional account linked to the Page (Meta instagram_business_account), or null when none is linked or the list was served from a cache stored before this field existed (pass refresh=true to re-read it).
|
|
23139
|
+
*/
|
|
23140
|
+
instagramAccount?: {
|
|
23141
|
+
/**
|
|
23142
|
+
* Instagram professional account id, usable as instagramAccountId on POST /v1/ads/create
|
|
23143
|
+
*/
|
|
23144
|
+
id?: string;
|
|
23145
|
+
username?: (string) | null;
|
|
23146
|
+
} | null;
|
|
23137
23147
|
}>;
|
|
23138
|
-
selectedPageId?: string;
|
|
23148
|
+
selectedPageId?: (string) | null;
|
|
23139
23149
|
/**
|
|
23140
23150
|
* false when this response was just read from Meta (cold cache or a refresh that ran), true when served from the stored list (including a debounced refresh or an empty Meta answer)
|
|
23141
23151
|
*/
|
|
@@ -29524,7 +29534,7 @@ export type EnableWhatsAppCallingLegacyData = {
|
|
|
29524
29534
|
};
|
|
29525
29535
|
path: {
|
|
29526
29536
|
/**
|
|
29527
|
-
*
|
|
29537
|
+
* WhatsApp phone number id
|
|
29528
29538
|
*/
|
|
29529
29539
|
id: string;
|
|
29530
29540
|
};
|