@getlatedev/node 0.2.1763 → 0.2.1765
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 +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -1
- package/src/generated/types.gen.ts +21 -0
package/dist/index.d.mts
CHANGED
|
@@ -56776,6 +56776,10 @@ type TransferVoiceCallData = {
|
|
|
56776
56776
|
* +E164 phone number (tel: prefix optional) or a sip: URI. wss:// is not a valid transfer target.
|
|
56777
56777
|
*/
|
|
56778
56778
|
to: string;
|
|
56779
|
+
/**
|
|
56780
|
+
* Caller ID shown on the transfer leg. `business` is your own number. `caller` is the original caller's number, for inbound calls only. The carrier may refuse `caller` on some routes: you get a 422, then retry with `business`.
|
|
56781
|
+
*/
|
|
56782
|
+
callerId?: 'business' | 'caller';
|
|
56779
56783
|
};
|
|
56780
56784
|
path: {
|
|
56781
56785
|
id: string;
|
|
@@ -69796,6 +69800,15 @@ type UpdateAdData = {
|
|
|
69796
69800
|
* Meta only. The display link shown on link (image) ads, Meta link_data.caption. Returns 422 on video creatives and on asset feeds without a link.
|
|
69797
69801
|
*/
|
|
69798
69802
|
caption?: string;
|
|
69803
|
+
/**
|
|
69804
|
+
* Meta only. The map location the `GET_DIRECTIONS` button opens, while the ad link stays as it is. Send it with `callToAction: GET_DIRECTIONS`.
|
|
69805
|
+
*
|
|
69806
|
+
* - 400 with any other `callToAction`, with a value that is not an `fbgeo://` location, and on other networks.
|
|
69807
|
+
* - 422 on video ads (their only link is the button, so change `linkUrl`), on lead ads, and on asset feed creatives that list their calls to action in the feed.
|
|
69808
|
+
* - Required with `callToAction: GET_DIRECTIONS` on a full image creative (headline, body, callToAction, linkUrl, imageUrl), and on a partial edit of an image ad whose button has no location yet. Without it the request is a 400, and no other field of it reaches Meta.
|
|
69809
|
+
*
|
|
69810
|
+
*/
|
|
69811
|
+
callToActionLink?: MetaCallToActionLink;
|
|
69799
69812
|
};
|
|
69800
69813
|
/**
|
|
69801
69814
|
* Rename the ad. Now propagated to Meta (POST /{ad-id}); non-Meta platforms return 501.
|
|
@@ -71026,6 +71039,10 @@ type UpdateAdTrackingTagsData = {
|
|
|
71026
71039
|
linkUrl: string;
|
|
71027
71040
|
imageUrl: string;
|
|
71028
71041
|
videoUrl?: string;
|
|
71042
|
+
/**
|
|
71043
|
+
* The Get Directions button location, required to rebuild a `GET_DIRECTIONS` image creative (400 without it). Only with `callToAction: GET_DIRECTIONS`.
|
|
71044
|
+
*/
|
|
71045
|
+
callToActionLink?: MetaCallToActionLink;
|
|
71029
71046
|
};
|
|
71030
71047
|
/**
|
|
71031
71048
|
* Google only. Full tracking template (must contain {lpurl}).
|
|
@@ -74907,6 +74924,10 @@ type BoostPostData = {
|
|
|
74907
74924
|
* and `INSTAGRAM_MESSAGE`. VIEW_INSTAGRAM_PROFILE requires linkUrl;
|
|
74908
74925
|
* the messaging CTAs select their destination automatically.
|
|
74909
74926
|
*
|
|
74927
|
+
* **Meta** `GET_DIRECTIONS` is a 400: Meta opens that button on a map location,
|
|
74928
|
+
* and a boost's only button link is `linkUrl`, a website. Create the ad
|
|
74929
|
+
* with POST /v1/ads/create and `callToActionLink` instead.
|
|
74930
|
+
*
|
|
74910
74931
|
* **TikTok**: pass-through to `call_to_action` on the Spark Ad creative; the
|
|
74911
74932
|
* platform validates the value. See TikTok's "Enumeration - Call-to-Action".
|
|
74912
74933
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -56776,6 +56776,10 @@ type TransferVoiceCallData = {
|
|
|
56776
56776
|
* +E164 phone number (tel: prefix optional) or a sip: URI. wss:// is not a valid transfer target.
|
|
56777
56777
|
*/
|
|
56778
56778
|
to: string;
|
|
56779
|
+
/**
|
|
56780
|
+
* Caller ID shown on the transfer leg. `business` is your own number. `caller` is the original caller's number, for inbound calls only. The carrier may refuse `caller` on some routes: you get a 422, then retry with `business`.
|
|
56781
|
+
*/
|
|
56782
|
+
callerId?: 'business' | 'caller';
|
|
56779
56783
|
};
|
|
56780
56784
|
path: {
|
|
56781
56785
|
id: string;
|
|
@@ -69796,6 +69800,15 @@ type UpdateAdData = {
|
|
|
69796
69800
|
* Meta only. The display link shown on link (image) ads, Meta link_data.caption. Returns 422 on video creatives and on asset feeds without a link.
|
|
69797
69801
|
*/
|
|
69798
69802
|
caption?: string;
|
|
69803
|
+
/**
|
|
69804
|
+
* Meta only. The map location the `GET_DIRECTIONS` button opens, while the ad link stays as it is. Send it with `callToAction: GET_DIRECTIONS`.
|
|
69805
|
+
*
|
|
69806
|
+
* - 400 with any other `callToAction`, with a value that is not an `fbgeo://` location, and on other networks.
|
|
69807
|
+
* - 422 on video ads (their only link is the button, so change `linkUrl`), on lead ads, and on asset feed creatives that list their calls to action in the feed.
|
|
69808
|
+
* - Required with `callToAction: GET_DIRECTIONS` on a full image creative (headline, body, callToAction, linkUrl, imageUrl), and on a partial edit of an image ad whose button has no location yet. Without it the request is a 400, and no other field of it reaches Meta.
|
|
69809
|
+
*
|
|
69810
|
+
*/
|
|
69811
|
+
callToActionLink?: MetaCallToActionLink;
|
|
69799
69812
|
};
|
|
69800
69813
|
/**
|
|
69801
69814
|
* Rename the ad. Now propagated to Meta (POST /{ad-id}); non-Meta platforms return 501.
|
|
@@ -71026,6 +71039,10 @@ type UpdateAdTrackingTagsData = {
|
|
|
71026
71039
|
linkUrl: string;
|
|
71027
71040
|
imageUrl: string;
|
|
71028
71041
|
videoUrl?: string;
|
|
71042
|
+
/**
|
|
71043
|
+
* The Get Directions button location, required to rebuild a `GET_DIRECTIONS` image creative (400 without it). Only with `callToAction: GET_DIRECTIONS`.
|
|
71044
|
+
*/
|
|
71045
|
+
callToActionLink?: MetaCallToActionLink;
|
|
71029
71046
|
};
|
|
71030
71047
|
/**
|
|
71031
71048
|
* Google only. Full tracking template (must contain {lpurl}).
|
|
@@ -74907,6 +74924,10 @@ type BoostPostData = {
|
|
|
74907
74924
|
* and `INSTAGRAM_MESSAGE`. VIEW_INSTAGRAM_PROFILE requires linkUrl;
|
|
74908
74925
|
* the messaging CTAs select their destination automatically.
|
|
74909
74926
|
*
|
|
74927
|
+
* **Meta** `GET_DIRECTIONS` is a 400: Meta opens that button on a map location,
|
|
74928
|
+
* and a boost's only button link is `linkUrl`, a website. Create the ad
|
|
74929
|
+
* with POST /v1/ads/create and `callToActionLink` instead.
|
|
74930
|
+
*
|
|
74910
74931
|
* **TikTok**: pass-through to `call_to_action` on the Spark Ad creative; the
|
|
74911
74932
|
* platform validates the value. See TikTok's "Enumeration - Call-to-Action".
|
|
74912
74933
|
*
|
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.1765",
|
|
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.1765",
|
|
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
|
@@ -10308,7 +10308,7 @@ export const getVoiceCallRecording = <ThrowOnError extends boolean = false>(opti
|
|
|
10308
10308
|
* Blind-transfer a live call
|
|
10309
10309
|
* Moves the call's current leg to a new destination (a phone number or a SIP endpoint).
|
|
10310
10310
|
*
|
|
10311
|
-
* This is a BLIND transfer: control of the leg is handed off and the call ends normally when the transferred leg hangs up. The caller ID presented on the transfer leg is
|
|
10311
|
+
* This is a BLIND transfer: control of the leg is handed off and the call ends normally when the transferred leg hangs up. The caller ID presented on the transfer leg is your own number unless you pass `callerId: "caller"` on an inbound call, which presents the original caller's number.
|
|
10312
10312
|
*
|
|
10313
10313
|
*/
|
|
10314
10314
|
export const transferVoiceCall = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<TransferVoiceCallData, ThrowOnError>) => {
|
|
@@ -57149,6 +57149,10 @@ export type TransferVoiceCallData = {
|
|
|
57149
57149
|
* +E164 phone number (tel: prefix optional) or a sip: URI. wss:// is not a valid transfer target.
|
|
57150
57150
|
*/
|
|
57151
57151
|
to: string;
|
|
57152
|
+
/**
|
|
57153
|
+
* Caller ID shown on the transfer leg. `business` is your own number. `caller` is the original caller's number, for inbound calls only. The carrier may refuse `caller` on some routes: you get a 422, then retry with `business`.
|
|
57154
|
+
*/
|
|
57155
|
+
callerId?: 'business' | 'caller';
|
|
57152
57156
|
};
|
|
57153
57157
|
path: {
|
|
57154
57158
|
id: string;
|
|
@@ -71227,6 +71231,15 @@ export type UpdateAdData = {
|
|
|
71227
71231
|
* Meta only. The display link shown on link (image) ads, Meta link_data.caption. Returns 422 on video creatives and on asset feeds without a link.
|
|
71228
71232
|
*/
|
|
71229
71233
|
caption?: string;
|
|
71234
|
+
/**
|
|
71235
|
+
* Meta only. The map location the `GET_DIRECTIONS` button opens, while the ad link stays as it is. Send it with `callToAction: GET_DIRECTIONS`.
|
|
71236
|
+
*
|
|
71237
|
+
* - 400 with any other `callToAction`, with a value that is not an `fbgeo://` location, and on other networks.
|
|
71238
|
+
* - 422 on video ads (their only link is the button, so change `linkUrl`), on lead ads, and on asset feed creatives that list their calls to action in the feed.
|
|
71239
|
+
* - Required with `callToAction: GET_DIRECTIONS` on a full image creative (headline, body, callToAction, linkUrl, imageUrl), and on a partial edit of an image ad whose button has no location yet. Without it the request is a 400, and no other field of it reaches Meta.
|
|
71240
|
+
*
|
|
71241
|
+
*/
|
|
71242
|
+
callToActionLink?: MetaCallToActionLink;
|
|
71230
71243
|
};
|
|
71231
71244
|
/**
|
|
71232
71245
|
* Rename the ad. Now propagated to Meta (POST /{ad-id}); non-Meta platforms return 501.
|
|
@@ -72529,6 +72542,10 @@ export type UpdateAdTrackingTagsData = {
|
|
|
72529
72542
|
linkUrl: string;
|
|
72530
72543
|
imageUrl: string;
|
|
72531
72544
|
videoUrl?: string;
|
|
72545
|
+
/**
|
|
72546
|
+
* The Get Directions button location, required to rebuild a `GET_DIRECTIONS` image creative (400 without it). Only with `callToAction: GET_DIRECTIONS`.
|
|
72547
|
+
*/
|
|
72548
|
+
callToActionLink?: MetaCallToActionLink;
|
|
72532
72549
|
};
|
|
72533
72550
|
/**
|
|
72534
72551
|
* Google only. Full tracking template (must contain {lpurl}).
|
|
@@ -76671,6 +76688,10 @@ export type BoostPostData = {
|
|
|
76671
76688
|
* and `INSTAGRAM_MESSAGE`. VIEW_INSTAGRAM_PROFILE requires linkUrl;
|
|
76672
76689
|
* the messaging CTAs select their destination automatically.
|
|
76673
76690
|
*
|
|
76691
|
+
* **Meta** `GET_DIRECTIONS` is a 400: Meta opens that button on a map location,
|
|
76692
|
+
* and a boost's only button link is `linkUrl`, a website. Create the ad
|
|
76693
|
+
* with POST /v1/ads/create and `callToActionLink` instead.
|
|
76694
|
+
*
|
|
76674
76695
|
* **TikTok**: pass-through to `call_to_action` on the Spark Ad creative; the
|
|
76675
76696
|
* platform validates the value. See TikTok's "Enumeration - Call-to-Action".
|
|
76676
76697
|
*
|