@zernio/node 0.2.473 → 0.2.474

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
@@ -22963,8 +22963,14 @@ type GetContactChannelsError = (unknown | {
22963
22963
  type BulkCreateContactsData = {
22964
22964
  body: {
22965
22965
  profileId: string;
22966
- accountId: string;
22967
- platform: string;
22966
+ /**
22967
+ * Required when contacts carry channel data (platformIdentifier or a row-level accountId). Omit for a plain CRM import with no channels.
22968
+ */
22969
+ accountId?: string;
22970
+ /**
22971
+ * Ignored when accountId is set: the platform is derived from the resolved account. Only relevant to disambiguate accountId lookup; a mismatch 404s.
22972
+ */
22973
+ platform?: string;
22968
22974
  contacts: Array<{
22969
22975
  name: string;
22970
22976
  platformIdentifier: string;
package/dist/index.d.ts CHANGED
@@ -22963,8 +22963,14 @@ type GetContactChannelsError = (unknown | {
22963
22963
  type BulkCreateContactsData = {
22964
22964
  body: {
22965
22965
  profileId: string;
22966
- accountId: string;
22967
- platform: string;
22966
+ /**
22967
+ * Required when contacts carry channel data (platformIdentifier or a row-level accountId). Omit for a plain CRM import with no channels.
22968
+ */
22969
+ accountId?: string;
22970
+ /**
22971
+ * Ignored when accountId is set: the platform is derived from the resolved account. Only relevant to disambiguate accountId lookup; a mismatch 404s.
22972
+ */
22973
+ platform?: string;
22968
22974
  contacts: Array<{
22969
22975
  name: string;
22970
22976
  platformIdentifier: 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: "@zernio/node",
39
- version: "0.2.473",
39
+ version: "0.2.474",
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: "@zernio/node",
8
- version: "0.2.473",
8
+ version: "0.2.474",
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": "@zernio/node",
3
- "version": "0.2.473",
3
+ "version": "0.2.474",
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. 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. 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>({
@@ -23192,8 +23192,14 @@ export type GetContactChannelsError = (unknown | {
23192
23192
  export type BulkCreateContactsData = {
23193
23193
  body: {
23194
23194
  profileId: string;
23195
- accountId: string;
23196
- platform: string;
23195
+ /**
23196
+ * Required when contacts carry channel data (platformIdentifier or a row-level accountId). Omit for a plain CRM import with no channels.
23197
+ */
23198
+ accountId?: string;
23199
+ /**
23200
+ * Ignored when accountId is set: the platform is derived from the resolved account. Only relevant to disambiguate accountId lookup; a mismatch 404s.
23201
+ */
23202
+ platform?: string;
23197
23203
  contacts: Array<{
23198
23204
  name: string;
23199
23205
  platformIdentifier: string;