@getlatedev/node 0.2.476 → 0.2.477

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 CHANGED
@@ -22973,7 +22973,10 @@ type BulkCreateContactsData = {
22973
22973
  platform?: string;
22974
22974
  contacts: Array<{
22975
22975
  name: string;
22976
- platformIdentifier: string;
22976
+ /**
22977
+ * Required when the top-level accountId is set (channel mode). A row missing it in that mode is rejected individually and reported in errors[], not a 400 for the whole import.
22978
+ */
22979
+ platformIdentifier?: string;
22977
22980
  displayIdentifier?: string;
22978
22981
  email?: string;
22979
22982
  company?: string;
package/dist/index.d.ts CHANGED
@@ -22973,7 +22973,10 @@ type BulkCreateContactsData = {
22973
22973
  platform?: string;
22974
22974
  contacts: Array<{
22975
22975
  name: string;
22976
- platformIdentifier: string;
22976
+ /**
22977
+ * Required when the top-level accountId is set (channel mode). A row missing it in that mode is rejected individually and reported in errors[], not a 400 for the whole import.
22978
+ */
22979
+ platformIdentifier?: string;
22977
22980
  displayIdentifier?: string;
22978
22981
  email?: string;
22979
22982
  company?: string;
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.476",
39
+ version: "0.2.477",
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.476",
8
+ version: "0.2.477",
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.476",
3
+ "version": "0.2.477",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -6062,7 +6062,7 @@ export const getContactChannels = <ThrowOnError extends boolean = false>(options
6062
6062
 
6063
6063
  /**
6064
6064
  * Bulk create contacts
6065
- * Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
6065
+ * Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. When accountId is set, each contact must carry a platformIdentifier; a row missing it is rejected individually (reported in errors[], HTTP 200), not a 400 for the whole import. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
6066
6066
  */
6067
6067
  export const bulkCreateContacts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => {
6068
6068
  return (options?.client ?? client).post<BulkCreateContactsResponse, BulkCreateContactsError, ThrowOnError>({
@@ -23202,7 +23202,10 @@ export type BulkCreateContactsData = {
23202
23202
  platform?: string;
23203
23203
  contacts: Array<{
23204
23204
  name: string;
23205
- platformIdentifier: string;
23205
+ /**
23206
+ * Required when the top-level accountId is set (channel mode). A row missing it in that mode is rejected individually and reported in errors[], not a 400 for the whole import.
23207
+ */
23208
+ platformIdentifier?: string;
23206
23209
  displayIdentifier?: string;
23207
23210
  email?: string;
23208
23211
  company?: string;