@zernio/node 0.2.464 → 0.2.465

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
@@ -22836,9 +22836,10 @@ type BulkCreateContactsResponse = ({
22836
22836
  success?: boolean;
22837
22837
  created?: number;
22838
22838
  skipped?: number;
22839
- errors?: Array<{
22840
- [key: string]: unknown;
22841
- }>;
22839
+ /**
22840
+ * Per-contact failures, e.g. an identifier that is not a valid phone number
22841
+ */
22842
+ errors?: Array<(string)>;
22842
22843
  total?: number;
22843
22844
  });
22844
22845
  type BulkCreateContactsError = (unknown | {
package/dist/index.d.ts CHANGED
@@ -22836,9 +22836,10 @@ type BulkCreateContactsResponse = ({
22836
22836
  success?: boolean;
22837
22837
  created?: number;
22838
22838
  skipped?: number;
22839
- errors?: Array<{
22840
- [key: string]: unknown;
22841
- }>;
22839
+ /**
22840
+ * Per-contact failures, e.g. an identifier that is not a valid phone number
22841
+ */
22842
+ errors?: Array<(string)>;
22842
22843
  total?: number;
22843
22844
  });
22844
22845
  type BulkCreateContactsError = (unknown | {
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.464",
39
+ version: "0.2.465",
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.464",
8
+ version: "0.2.465",
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.464",
3
+ "version": "0.2.465",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -6012,7 +6012,7 @@ export const getContactChannels = <ThrowOnError extends boolean = false>(options
6012
6012
 
6013
6013
  /**
6014
6014
  * Bulk create contacts
6015
- * Import up to 1000 contacts at a time. Skips duplicates.
6015
+ * 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.
6016
6016
  */
6017
6017
  export const bulkCreateContacts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => {
6018
6018
  return (options?.client ?? client).post<BulkCreateContactsResponse, BulkCreateContactsError, ThrowOnError>({
@@ -23064,9 +23064,10 @@ export type BulkCreateContactsResponse = ({
23064
23064
  success?: boolean;
23065
23065
  created?: number;
23066
23066
  skipped?: number;
23067
- errors?: Array<{
23068
- [key: string]: unknown;
23069
- }>;
23067
+ /**
23068
+ * Per-contact failures, e.g. an identifier that is not a valid phone number
23069
+ */
23070
+ errors?: Array<(string)>;
23070
23071
  total?: number;
23071
23072
  });
23072
23073