@getlatedev/node 0.2.1243 → 0.2.1245
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 +40 -9
- package/dist/index.d.ts +40 -9
- 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 +40 -8
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.1245",
|
|
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.1245",
|
|
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
|
@@ -1958,7 +1958,7 @@ export const connectShopifyWithToken = <ThrowOnError extends boolean = false>(op
|
|
|
1958
1958
|
* (the portal domain); on failure it carries `error`, `platform=hubspot`
|
|
1959
1959
|
* and `error_message`. Reconnecting the same portal and profile updates
|
|
1960
1960
|
* the stored connection in place and keeps its settings.
|
|
1961
|
-
* Requested scopes: `crm.objects.contacts.read`, `crm.objects.contacts.write`.
|
|
1961
|
+
* Requested scopes: `oauth`, `crm.objects.contacts.read`, `crm.objects.contacts.write`.
|
|
1962
1962
|
*
|
|
1963
1963
|
*/
|
|
1964
1964
|
export const getHubSpotConnectUrl = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetHubSpotConnectUrlData, ThrowOnError>) => {
|
|
@@ -4644,9 +4644,39 @@ export type ConversionEvent = {
|
|
|
4644
4644
|
*/
|
|
4645
4645
|
sourceUrl?: string;
|
|
4646
4646
|
/**
|
|
4647
|
-
* Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
|
|
4647
|
+
* Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting. `business_messaging` (Meta) marks an event from a WhatsApp, Messenger or Instagram Direct conversation and needs `messaging`.
|
|
4648
4648
|
*/
|
|
4649
|
-
actionSource?: 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
|
|
4649
|
+
actionSource?: 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated' | 'business_messaging';
|
|
4650
|
+
/**
|
|
4651
|
+
* Meta only, read when `actionSource` is `business_messaging` (Conversions API
|
|
4652
|
+
* for Business Messaging). `channel` is sent as the event's `messaging_channel`
|
|
4653
|
+
* (`instagram_direct` goes out as `instagram`). Each id lands in Meta's
|
|
4654
|
+
* `user_data` unhashed, and an id that does not belong to `channel` is ignored.
|
|
4655
|
+
*
|
|
4656
|
+
*/
|
|
4657
|
+
messaging?: {
|
|
4658
|
+
channel: 'whatsapp' | 'messenger' | 'instagram_direct';
|
|
4659
|
+
/**
|
|
4660
|
+
* WhatsApp only. WhatsApp Business Account id, sent as `whatsapp_business_account_id`.
|
|
4661
|
+
*/
|
|
4662
|
+
wabaId?: string;
|
|
4663
|
+
/**
|
|
4664
|
+
* WhatsApp only. Click-to-WhatsApp click id from the first inbound message referral, sent as `ctwa_clid`.
|
|
4665
|
+
*/
|
|
4666
|
+
ctwaClid?: string;
|
|
4667
|
+
/**
|
|
4668
|
+
* Messenger and Instagram Direct. Facebook Page id, sent as `page_id`.
|
|
4669
|
+
*/
|
|
4670
|
+
pageId?: string;
|
|
4671
|
+
/**
|
|
4672
|
+
* Messenger only. The page-scoped user id (PSID) your Messenger webhook gives for the person, sent as `page_scoped_user_id` next to `page_id`.
|
|
4673
|
+
*/
|
|
4674
|
+
pageScopedUserId?: string;
|
|
4675
|
+
/**
|
|
4676
|
+
* Instagram Direct only. The Instagram-scoped user id (IGSID) your Instagram messaging webhook gives for the person, sent as `ig_sid`.
|
|
4677
|
+
*/
|
|
4678
|
+
instagramScopedUserId?: string;
|
|
4679
|
+
};
|
|
4650
4680
|
/**
|
|
4651
4681
|
* Escape hatch for platform-specific fields we haven't normalized.
|
|
4652
4682
|
* On Meta, keys are shallow-merged into `custom_data` only: fields
|
|
@@ -4662,9 +4692,11 @@ export type ConversionEvent = {
|
|
|
4662
4692
|
};
|
|
4663
4693
|
|
|
4664
4694
|
/**
|
|
4665
|
-
* Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
|
|
4695
|
+
* Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting. `business_messaging` (Meta) marks an event from a WhatsApp, Messenger or Instagram Direct conversation and needs `messaging`.
|
|
4666
4696
|
*/
|
|
4667
|
-
export type actionSource = 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
|
|
4697
|
+
export type actionSource = 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated' | 'business_messaging';
|
|
4698
|
+
|
|
4699
|
+
export type channel3 = 'whatsapp' | 'messenger' | 'instagram_direct';
|
|
4668
4700
|
|
|
4669
4701
|
export type CreatedGoogleAdAccount = {
|
|
4670
4702
|
platform: 'google';
|
|
@@ -7175,7 +7207,7 @@ export type level = 'LEVEL1' | 'LEVEL2' | 'LEVEL3' | 'LEVEL4' | 'LEVEL5';
|
|
|
7175
7207
|
|
|
7176
7208
|
export type condition = 'NEW' | 'REFURBISHED' | 'USED';
|
|
7177
7209
|
|
|
7178
|
-
export type
|
|
7210
|
+
export type channel4 = 'ONLINE' | 'LOCAL';
|
|
7179
7211
|
|
|
7180
7212
|
export type index = 'INDEX0' | 'INDEX1' | 'INDEX2' | 'INDEX3' | 'INDEX4';
|
|
7181
7213
|
|
|
@@ -7532,7 +7564,7 @@ export type HubSpotSettings = {
|
|
|
7532
7564
|
*/
|
|
7533
7565
|
scopes: Array<(string)>;
|
|
7534
7566
|
/**
|
|
7535
|
-
* Whether Zernio creates
|
|
7567
|
+
* Whether Zernio creates HubSpot contacts for inbox contacts that match none.
|
|
7536
7568
|
*/
|
|
7537
7569
|
syncContacts: boolean;
|
|
7538
7570
|
/**
|
|
@@ -12781,7 +12813,7 @@ export type Verification = {
|
|
|
12781
12813
|
|
|
12782
12814
|
export type status31 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
12783
12815
|
|
|
12784
|
-
export type
|
|
12816
|
+
export type channel5 = 'sms' | 'whatsapp';
|
|
12785
12817
|
|
|
12786
12818
|
/**
|
|
12787
12819
|
* WhatsApp only, returned by GET /v1/verify/verifications/{verificationId} (null on create and check responses): what Meta reported for the latest send, null until it reports. A code that never reached the recipient (for example a number not on WhatsApp) reads failed, with the Meta error in deliveryErrorCode. failed does not settle the verification: Meta can report failed and later deliver the same message. Reported for at least an hour after the send, well past any code's expiry.
|
|
@@ -26775,7 +26807,7 @@ export type GetHubSpotSettingsError = (ErrorResponse | unknown);
|
|
|
26775
26807
|
export type UpdateHubSpotSettingsData = {
|
|
26776
26808
|
body: {
|
|
26777
26809
|
/**
|
|
26778
|
-
* Create
|
|
26810
|
+
* Create a HubSpot contact for an inbox contact that matches none by email or phone. A match is linked as it is and never updated.
|
|
26779
26811
|
*/
|
|
26780
26812
|
syncContacts?: boolean;
|
|
26781
26813
|
/**
|