@zernio/node 0.2.1011 → 0.2.1013
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 +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -1
- package/src/generated/types.gen.ts +15 -3
package/dist/index.d.mts
CHANGED
|
@@ -10454,6 +10454,10 @@ type Profile = {
|
|
|
10454
10454
|
name?: string;
|
|
10455
10455
|
description?: string;
|
|
10456
10456
|
color?: string;
|
|
10457
|
+
/**
|
|
10458
|
+
* IANA timezone new posts on this profile use when the request names no `timezone`. Null means UTC.
|
|
10459
|
+
*/
|
|
10460
|
+
timezone?: (string) | null;
|
|
10457
10461
|
isDefault?: boolean;
|
|
10458
10462
|
/**
|
|
10459
10463
|
* Only present when includeOverLimit=true. Indicates if this profile exceeds the plan limit.
|
|
@@ -18079,7 +18083,7 @@ type CreatePostData = {
|
|
|
18079
18083
|
*/
|
|
18080
18084
|
dryRun?: boolean;
|
|
18081
18085
|
/**
|
|
18082
|
-
* IANA timezone (`Europe/Madrid`, `America/New_York`) used to interpret a `scheduledFor` (root or per-platform) that carries no `Z` or offset. Has no effect on values that already carry one. An unknown name returns 400 when `scheduledFor` is set.
|
|
18086
|
+
* IANA timezone (`Europe/Madrid`, `America/New_York`) used to interpret a `scheduledFor` (root or per-platform) that carries no `Z` or offset, and stored on the post. Has no effect on values that already carry one. When omitted, the post takes its profile's `timezone` (the queue's profile for a queued post, else the profile its accounts share), and UTC when there is none or the accounts sit on profiles with different timezones. An unknown name returns 400 when `scheduledFor` is set.
|
|
18083
18087
|
*/
|
|
18084
18088
|
timezone?: string;
|
|
18085
18089
|
/**
|
|
@@ -18529,6 +18533,10 @@ type CreateProfileData = {
|
|
|
18529
18533
|
name: string;
|
|
18530
18534
|
description?: string;
|
|
18531
18535
|
color?: string;
|
|
18536
|
+
/**
|
|
18537
|
+
* IANA timezone new posts on this profile use when they name no `timezone`. Omit to keep UTC. An unknown name returns 400.
|
|
18538
|
+
*/
|
|
18539
|
+
timezone?: string;
|
|
18532
18540
|
};
|
|
18533
18541
|
headers?: {
|
|
18534
18542
|
/**
|
|
@@ -18613,6 +18621,10 @@ type UpdateProfileData = {
|
|
|
18613
18621
|
*/
|
|
18614
18622
|
description?: (string) | null;
|
|
18615
18623
|
color?: string;
|
|
18624
|
+
/**
|
|
18625
|
+
* IANA timezone new posts on this profile use when they name no `timezone`. Set to null to go back to UTC. An unknown name returns 400.
|
|
18626
|
+
*/
|
|
18627
|
+
timezone?: (string) | null;
|
|
18616
18628
|
isDefault?: boolean;
|
|
18617
18629
|
};
|
|
18618
18630
|
path: {
|
|
@@ -32626,7 +32638,7 @@ type SearchAvailablePhoneNumbersData = {
|
|
|
32626
32638
|
country?: string;
|
|
32627
32639
|
limit?: number;
|
|
32628
32640
|
/**
|
|
32629
|
-
*
|
|
32641
|
+
* A city name, matched against the numbering plan (accents and common aliases allowed) and searched by that city's area codes; a name no city of the plan matches returns no numbers. `areaCode` takes a city name too.
|
|
32630
32642
|
*/
|
|
32631
32643
|
locality?: string;
|
|
32632
32644
|
/**
|
|
@@ -33009,7 +33021,7 @@ type SearchAvailableWhatsAppNumbersData = {
|
|
|
33009
33021
|
country?: string;
|
|
33010
33022
|
limit?: number;
|
|
33011
33023
|
/**
|
|
33012
|
-
*
|
|
33024
|
+
* A city name, matched against the numbering plan (accents and common aliases allowed) and searched by that city's area codes; a name no city of the plan matches returns no numbers. `areaCode` takes a city name too.
|
|
33013
33025
|
*/
|
|
33014
33026
|
locality?: string;
|
|
33015
33027
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -10454,6 +10454,10 @@ type Profile = {
|
|
|
10454
10454
|
name?: string;
|
|
10455
10455
|
description?: string;
|
|
10456
10456
|
color?: string;
|
|
10457
|
+
/**
|
|
10458
|
+
* IANA timezone new posts on this profile use when the request names no `timezone`. Null means UTC.
|
|
10459
|
+
*/
|
|
10460
|
+
timezone?: (string) | null;
|
|
10457
10461
|
isDefault?: boolean;
|
|
10458
10462
|
/**
|
|
10459
10463
|
* Only present when includeOverLimit=true. Indicates if this profile exceeds the plan limit.
|
|
@@ -18079,7 +18083,7 @@ type CreatePostData = {
|
|
|
18079
18083
|
*/
|
|
18080
18084
|
dryRun?: boolean;
|
|
18081
18085
|
/**
|
|
18082
|
-
* IANA timezone (`Europe/Madrid`, `America/New_York`) used to interpret a `scheduledFor` (root or per-platform) that carries no `Z` or offset. Has no effect on values that already carry one. An unknown name returns 400 when `scheduledFor` is set.
|
|
18086
|
+
* IANA timezone (`Europe/Madrid`, `America/New_York`) used to interpret a `scheduledFor` (root or per-platform) that carries no `Z` or offset, and stored on the post. Has no effect on values that already carry one. When omitted, the post takes its profile's `timezone` (the queue's profile for a queued post, else the profile its accounts share), and UTC when there is none or the accounts sit on profiles with different timezones. An unknown name returns 400 when `scheduledFor` is set.
|
|
18083
18087
|
*/
|
|
18084
18088
|
timezone?: string;
|
|
18085
18089
|
/**
|
|
@@ -18529,6 +18533,10 @@ type CreateProfileData = {
|
|
|
18529
18533
|
name: string;
|
|
18530
18534
|
description?: string;
|
|
18531
18535
|
color?: string;
|
|
18536
|
+
/**
|
|
18537
|
+
* IANA timezone new posts on this profile use when they name no `timezone`. Omit to keep UTC. An unknown name returns 400.
|
|
18538
|
+
*/
|
|
18539
|
+
timezone?: string;
|
|
18532
18540
|
};
|
|
18533
18541
|
headers?: {
|
|
18534
18542
|
/**
|
|
@@ -18613,6 +18621,10 @@ type UpdateProfileData = {
|
|
|
18613
18621
|
*/
|
|
18614
18622
|
description?: (string) | null;
|
|
18615
18623
|
color?: string;
|
|
18624
|
+
/**
|
|
18625
|
+
* IANA timezone new posts on this profile use when they name no `timezone`. Set to null to go back to UTC. An unknown name returns 400.
|
|
18626
|
+
*/
|
|
18627
|
+
timezone?: (string) | null;
|
|
18616
18628
|
isDefault?: boolean;
|
|
18617
18629
|
};
|
|
18618
18630
|
path: {
|
|
@@ -32626,7 +32638,7 @@ type SearchAvailablePhoneNumbersData = {
|
|
|
32626
32638
|
country?: string;
|
|
32627
32639
|
limit?: number;
|
|
32628
32640
|
/**
|
|
32629
|
-
*
|
|
32641
|
+
* A city name, matched against the numbering plan (accents and common aliases allowed) and searched by that city's area codes; a name no city of the plan matches returns no numbers. `areaCode` takes a city name too.
|
|
32630
32642
|
*/
|
|
32631
32643
|
locality?: string;
|
|
32632
32644
|
/**
|
|
@@ -33009,7 +33021,7 @@ type SearchAvailableWhatsAppNumbersData = {
|
|
|
33009
33021
|
country?: string;
|
|
33010
33022
|
limit?: number;
|
|
33011
33023
|
/**
|
|
33012
|
-
*
|
|
33024
|
+
* A city name, matched against the numbering plan (accents and common aliases allowed) and searched by that city's area codes; a name no city of the plan matches returns no numbers. `areaCode` takes a city name too.
|
|
33013
33025
|
*/
|
|
33014
33026
|
locality?: string;
|
|
33015
33027
|
/**
|
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.1013",
|
|
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.1013",
|
|
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
|
@@ -1027,6 +1027,7 @@ export const deletePost = <ThrowOnError extends boolean = false>(options: Option
|
|
|
1027
1027
|
* - `mediaUrls` aliases `media_urls`
|
|
1028
1028
|
* - Per-platform overrides use three dynamic column prefixes, one column per platform (e.g. `schedule_time_instagram`, `custom_content_tiktok`, `custom_media_youtube`): `schedule_time_<platform>`, `custom_content_<platform>`, `custom_media_<platform>`.
|
|
1029
1029
|
* - Any other column is not read. It does not error, but it is reported in the response's `warnings` array as `unknown_columns:<a,b,c>` (see BulkUploadResult), so a misnamed or unsupported column is never silently dropped.
|
|
1030
|
+
* - Timezone: `tz` sets the zone `schedule_time` is read in. A row without `tz` uses its profile's `timezone` (when all its target profiles share one), else UTC.
|
|
1030
1031
|
* - Row limits: 5000 rows is a hard cap that returns 400 above it. 500 rows is only an advisory threshold, it adds `rows_exceed_advisory_limit:500` to `warnings` and the request still processes.
|
|
1031
1032
|
*
|
|
1032
1033
|
* Example row (header + one data row):
|
|
@@ -1234,7 +1235,7 @@ export const getProfile = <ThrowOnError extends boolean = false>(options: Option
|
|
|
1234
1235
|
|
|
1235
1236
|
/**
|
|
1236
1237
|
* Update profile
|
|
1237
|
-
* Updates a profile's name, description, color, or default status.
|
|
1238
|
+
* Updates a profile's name, description, color, default timezone, or default status.
|
|
1238
1239
|
*/
|
|
1239
1240
|
export const updateProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateProfileData, ThrowOnError>) => {
|
|
1240
1241
|
return (options?.client ?? client).put<UpdateProfileResponse, UpdateProfileError, ThrowOnError>({
|
|
@@ -8872,6 +8872,10 @@ export type Profile = {
|
|
|
8872
8872
|
name?: string;
|
|
8873
8873
|
description?: string;
|
|
8874
8874
|
color?: string;
|
|
8875
|
+
/**
|
|
8876
|
+
* IANA timezone new posts on this profile use when the request names no `timezone`. Null means UTC.
|
|
8877
|
+
*/
|
|
8878
|
+
timezone?: (string) | null;
|
|
8875
8879
|
isDefault?: boolean;
|
|
8876
8880
|
/**
|
|
8877
8881
|
* Only present when includeOverLimit=true. Indicates if this profile exceeds the plan limit.
|
|
@@ -16875,7 +16879,7 @@ export type CreatePostData = {
|
|
|
16875
16879
|
*/
|
|
16876
16880
|
dryRun?: boolean;
|
|
16877
16881
|
/**
|
|
16878
|
-
* IANA timezone (`Europe/Madrid`, `America/New_York`) used to interpret a `scheduledFor` (root or per-platform) that carries no `Z` or offset. Has no effect on values that already carry one. An unknown name returns 400 when `scheduledFor` is set.
|
|
16882
|
+
* IANA timezone (`Europe/Madrid`, `America/New_York`) used to interpret a `scheduledFor` (root or per-platform) that carries no `Z` or offset, and stored on the post. Has no effect on values that already carry one. When omitted, the post takes its profile's `timezone` (the queue's profile for a queued post, else the profile its accounts share), and UTC when there is none or the accounts sit on profiles with different timezones. An unknown name returns 400 when `scheduledFor` is set.
|
|
16879
16883
|
*/
|
|
16880
16884
|
timezone?: string;
|
|
16881
16885
|
/**
|
|
@@ -17363,6 +17367,10 @@ export type CreateProfileData = {
|
|
|
17363
17367
|
name: string;
|
|
17364
17368
|
description?: string;
|
|
17365
17369
|
color?: string;
|
|
17370
|
+
/**
|
|
17371
|
+
* IANA timezone new posts on this profile use when they name no `timezone`. Omit to keep UTC. An unknown name returns 400.
|
|
17372
|
+
*/
|
|
17373
|
+
timezone?: string;
|
|
17366
17374
|
};
|
|
17367
17375
|
headers?: {
|
|
17368
17376
|
/**
|
|
@@ -17453,6 +17461,10 @@ export type UpdateProfileData = {
|
|
|
17453
17461
|
*/
|
|
17454
17462
|
description?: (string) | null;
|
|
17455
17463
|
color?: string;
|
|
17464
|
+
/**
|
|
17465
|
+
* IANA timezone new posts on this profile use when they name no `timezone`. Set to null to go back to UTC. An unknown name returns 400.
|
|
17466
|
+
*/
|
|
17467
|
+
timezone?: (string) | null;
|
|
17456
17468
|
isDefault?: boolean;
|
|
17457
17469
|
};
|
|
17458
17470
|
path: {
|
|
@@ -32495,7 +32507,7 @@ export type SearchAvailablePhoneNumbersData = {
|
|
|
32495
32507
|
country?: string;
|
|
32496
32508
|
limit?: number;
|
|
32497
32509
|
/**
|
|
32498
|
-
*
|
|
32510
|
+
* A city name, matched against the numbering plan (accents and common aliases allowed) and searched by that city's area codes; a name no city of the plan matches returns no numbers. `areaCode` takes a city name too.
|
|
32499
32511
|
*/
|
|
32500
32512
|
locality?: string;
|
|
32501
32513
|
/**
|
|
@@ -32892,7 +32904,7 @@ export type SearchAvailableWhatsAppNumbersData = {
|
|
|
32892
32904
|
country?: string;
|
|
32893
32905
|
limit?: number;
|
|
32894
32906
|
/**
|
|
32895
|
-
*
|
|
32907
|
+
* A city name, matched against the numbering plan (accents and common aliases allowed) and searched by that city's area codes; a name no city of the plan matches returns no numbers. `areaCode` takes a city name too.
|
|
32896
32908
|
*/
|
|
32897
32909
|
locality?: string;
|
|
32898
32910
|
/**
|