@getlatedev/node 0.2.1697 → 0.2.1698

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.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.1697",
39
+ version: "0.2.1698",
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.1697",
8
+ version: "0.2.1698",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1697",
3
+ "version": "0.2.1698",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13515,6 +13515,24 @@ export type HubSpotSettings = {
13515
13515
  * Whether Zernio keeps the delivery status (sent, delivered, read, played, failed) of logged outgoing messages up to date on their HubSpot timeline entries. Only applies while `logMessages` is on. Defaults to `true`.
13516
13516
  */
13517
13517
  logDeliveryStatus: boolean;
13518
+ /**
13519
+ * Values Zernio sets on contacts it creates, keyed by HubSpot internal property name, for properties the portal requires on create (for example `lifecyclestage: lead`). The contact's own name, email and phone win. Empty object when none.
13520
+ */
13521
+ contactDefaults: {
13522
+ [key: string]: (string);
13523
+ };
13524
+ /**
13525
+ * Set while the portal refuses to create contacts because it requires properties Zernio does not fill. People already in HubSpot are still matched and their messages logged. Cleared by the next created contact or a change to `contactDefaults`. The account's health shows it too.
13526
+ */
13527
+ syncIssue: {
13528
+ code: 'REQUIRED_CONTACT_PROPERTIES';
13529
+ /**
13530
+ * The required contact properties HubSpot named.
13531
+ */
13532
+ properties: Array<(string)>;
13533
+ message: string;
13534
+ at: string;
13535
+ } | null;
13518
13536
  /**
13519
13537
  * Whether Zernio sends closed-won deals as Purchase events to the profile's event destinations.
13520
13538
  */
@@ -13527,6 +13545,8 @@ export type HubSpotSettings = {
13527
13545
 
13528
13546
  export type platform10 = 'hubspot';
13529
13547
 
13548
+ export type code2 = 'REQUIRED_CONTACT_PROPERTIES';
13549
+
13530
13550
  export type ImapConnectResult = {
13531
13551
  dryRun?: boolean;
13532
13552
  created?: boolean;
@@ -15208,7 +15228,7 @@ export type LinkedInMentionIssue = {
15208
15228
  /**
15209
15229
  * Why it failed.
15210
15230
  */
15211
- export type code2 = 'linkedin_mention_unresolvable' | 'linkedin_mention_requires_page_admin' | 'linkedin_mention_name_unavailable' | 'linkedin_mentions_limit_exceeded' | 'rate_limited' | 'reconnect_required' | 'temporarily_unavailable';
15231
+ export type code3 = 'linkedin_mention_unresolvable' | 'linkedin_mention_requires_page_admin' | 'linkedin_mention_name_unavailable' | 'linkedin_mentions_limit_exceeded' | 'rate_limited' | 'reconnect_required' | 'temporarily_unavailable';
15212
15232
 
15213
15233
  /**
15214
15234
  * LinkedIn post options.
@@ -22818,7 +22838,7 @@ export type event25 = 'balance.empty';
22818
22838
  /**
22819
22839
  * The 402 code pay-per-use calls get until the balance is funded. `usage_limit_reached` when the auto top-up monthly limit is what keeps it at $0.
22820
22840
  */
22821
- export type code3 = 'insufficient_balance' | 'usage_limit_reached';
22841
+ export type code4 = 'insufficient_balance' | 'usage_limit_reached';
22822
22842
 
22823
22843
  export type WebhookPayloadBalanceLow = {
22824
22844
  /**
@@ -27683,7 +27703,7 @@ export type WhatsAppTemplateLookupError = {
27683
27703
 
27684
27704
  export type type39 = 'platform_error';
27685
27705
 
27686
- export type code4 = 'platform_api_error';
27706
+ export type code5 = 'platform_api_error';
27687
27707
 
27688
27708
  export type phase = 'template_lookup';
27689
27709
 
@@ -42211,6 +42231,12 @@ export type UpdateHubSpotSettingsData = {
42211
42231
  * Add the delivery status of each outgoing WhatsApp, SMS or RCS message to its timeline entry and update it as the message is delivered, read or fails. A failure shows the reason and its code. Only applies while `logMessages` is on.
42212
42232
  */
42213
42233
  logDeliveryStatus?: boolean;
42234
+ /**
42235
+ * Values for contact properties your portal requires on create, keyed by HubSpot internal name (lowercase letters, digits, underscores), for example `{"lifecyclestage": "lead"}`. Replaces the whole map; send `{}` to clear it. Clears `syncIssue` until the next contact create tells whether the portal accepts them.
42236
+ */
42237
+ contactDefaults?: {
42238
+ [key: string]: (string);
42239
+ };
42214
42240
  /**
42215
42241
  * Send each deal that becomes closed won as a Purchase to the profile's event destinations, about once an hour. Requires the portal to have granted `crm.objects.deals.read`; otherwise 400. Deals closed before it was turned on are not sent.
42216
42242
  */