@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 +4 -3
- package/dist/index.d.ts +4 -3
- 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 +4 -3
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
|
-
|
|
22840
|
-
|
|
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
|
-
|
|
22840
|
-
|
|
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.
|
|
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.
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -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
|
-
|
|
23068
|
-
|
|
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
|
|