@zernio/node 0.2.1012 → 0.2.1014
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 +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +4 -2
- package/src/generated/types.gen.ts +13 -1
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: {
|
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: {
|
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.1014",
|
|
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.1014",
|
|
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>({
|
|
@@ -1700,7 +1701,8 @@ export const handleOAuthCallback = <ThrowOnError extends boolean = false>(option
|
|
|
1700
1701
|
* Business login reports metadata.tokenType=system-user in GET /v1/accounts. An absent
|
|
1701
1702
|
* Meta expires_in leaves tokenExpiresAt absent; no personal-token re-exchange occurs.
|
|
1702
1703
|
* Subsequent classic requests can change the ad-account scope using the business token;
|
|
1703
|
-
* force=true
|
|
1704
|
+
* force=true (or disconnecting the business connection first) switches the profile to the
|
|
1705
|
+
* standard Facebook login; the ads account is then held by the user token.
|
|
1704
1706
|
*
|
|
1705
1707
|
* **Same-token platforms (facebook, instagram, linkedin, pinterest).** The ads SocialAccount
|
|
1706
1708
|
* (metaads, linkedinads, pinterestads) reuses the OAuth token of the parent posting account,
|
|
@@ -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: {
|