@zernio/node 0.2.967 → 0.2.969
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 +18 -2
- package/dist/index.d.ts +18 -2
- 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 +18 -2
package/dist/index.d.mts
CHANGED
|
@@ -8854,6 +8854,9 @@ type MetaPageOwnership = {
|
|
|
8854
8854
|
type MetaPagePartner = {
|
|
8855
8855
|
businessId?: string;
|
|
8856
8856
|
name?: string;
|
|
8857
|
+
/**
|
|
8858
|
+
* Tasks the partner holds, in the bare spelling the grant takes (ADVERTISE, ANALYZE, MANAGE, ...). Meta reads them back with a PROFILE_PLUS_ prefix, which is stripped here; partners granted in Business Settings may hold tasks beyond the six the grant accepts, such as MANAGE_LEADS or REVENUE.
|
|
8859
|
+
*/
|
|
8857
8860
|
permittedTasks?: Array<(string)>;
|
|
8858
8861
|
};
|
|
8859
8862
|
/**
|
|
@@ -21902,9 +21905,9 @@ type GrantBusinessPartnerData = {
|
|
|
21902
21905
|
*/
|
|
21903
21906
|
businessId: string;
|
|
21904
21907
|
/**
|
|
21905
|
-
* Tasks granted on the Page. Defaults to ADVERTISE and ANALYZE.
|
|
21908
|
+
* Tasks granted on the Page, Meta's permitted_tasks vocabulary. Defaults to ADVERTISE and ANALYZE. The bare names are what Business Settings shows; the PROFILE_PLUS_ names are the New Pages Experience tasks and the only way to grant FACEBOOK_ACCESS or REVENUE. Granting MANAGE also yields MANAGE_LEADS.
|
|
21906
21909
|
*/
|
|
21907
|
-
permittedTasks?: Array<('MANAGE' | 'CREATE_CONTENT' | 'MODERATE' | 'MESSAGING' | 'ADVERTISE' | 'ANALYZE')>;
|
|
21910
|
+
permittedTasks?: Array<('MANAGE' | 'CREATE_CONTENT' | 'MODERATE' | 'MESSAGING' | 'ADVERTISE' | 'ANALYZE' | 'MODERATE_COMMUNITY' | 'MANAGE_JOBS' | 'PAGES_MESSAGING' | 'PAGES_MESSAGING_SUBSCRIPTIONS' | 'READ_PAGE_MAILBOXES' | 'VIEW_MONETIZATION_INSIGHTS' | 'MANAGE_LEADS' | 'CASHIER_ROLE' | 'GLOBAL_STRUCTURE_MANAGEMENT' | 'PROFILE_PLUS_FULL_CONTROL' | 'PROFILE_PLUS_MANAGE' | 'PROFILE_PLUS_FACEBOOK_ACCESS' | 'PROFILE_PLUS_CREATE_CONTENT' | 'PROFILE_PLUS_MODERATE' | 'PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY' | 'PROFILE_PLUS_MESSAGING' | 'PROFILE_PLUS_ADVERTISE' | 'PROFILE_PLUS_ANALYZE' | 'PROFILE_PLUS_REVENUE' | 'PROFILE_PLUS_MANAGE_LEADS' | 'PROFILE_PLUS_CREATIVE_MANAGEMENT' | 'PROFILE_PLUS_CREATOR_MANAGEMENT' | 'PROFILE_PLUS_GLOBAL_STRUCTURE_MANAGEMENT')>;
|
|
21908
21911
|
};
|
|
21909
21912
|
path: {
|
|
21910
21913
|
/**
|
|
@@ -21914,6 +21917,19 @@ type GrantBusinessPartnerData = {
|
|
|
21914
21917
|
};
|
|
21915
21918
|
};
|
|
21916
21919
|
type GrantBusinessPartnerResponse = ({
|
|
21920
|
+
page?: MetaPageOwnership;
|
|
21921
|
+
partner?: {
|
|
21922
|
+
businessId?: string;
|
|
21923
|
+
/**
|
|
21924
|
+
* Tasks the partner currently holds.
|
|
21925
|
+
*/
|
|
21926
|
+
permittedTasks?: Array<(string)>;
|
|
21927
|
+
};
|
|
21928
|
+
/**
|
|
21929
|
+
* Always true on this response.
|
|
21930
|
+
*/
|
|
21931
|
+
alreadyShared?: boolean;
|
|
21932
|
+
} | {
|
|
21917
21933
|
page?: MetaPageOwnership;
|
|
21918
21934
|
partner?: {
|
|
21919
21935
|
businessId?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -8854,6 +8854,9 @@ type MetaPageOwnership = {
|
|
|
8854
8854
|
type MetaPagePartner = {
|
|
8855
8855
|
businessId?: string;
|
|
8856
8856
|
name?: string;
|
|
8857
|
+
/**
|
|
8858
|
+
* Tasks the partner holds, in the bare spelling the grant takes (ADVERTISE, ANALYZE, MANAGE, ...). Meta reads them back with a PROFILE_PLUS_ prefix, which is stripped here; partners granted in Business Settings may hold tasks beyond the six the grant accepts, such as MANAGE_LEADS or REVENUE.
|
|
8859
|
+
*/
|
|
8857
8860
|
permittedTasks?: Array<(string)>;
|
|
8858
8861
|
};
|
|
8859
8862
|
/**
|
|
@@ -21902,9 +21905,9 @@ type GrantBusinessPartnerData = {
|
|
|
21902
21905
|
*/
|
|
21903
21906
|
businessId: string;
|
|
21904
21907
|
/**
|
|
21905
|
-
* Tasks granted on the Page. Defaults to ADVERTISE and ANALYZE.
|
|
21908
|
+
* Tasks granted on the Page, Meta's permitted_tasks vocabulary. Defaults to ADVERTISE and ANALYZE. The bare names are what Business Settings shows; the PROFILE_PLUS_ names are the New Pages Experience tasks and the only way to grant FACEBOOK_ACCESS or REVENUE. Granting MANAGE also yields MANAGE_LEADS.
|
|
21906
21909
|
*/
|
|
21907
|
-
permittedTasks?: Array<('MANAGE' | 'CREATE_CONTENT' | 'MODERATE' | 'MESSAGING' | 'ADVERTISE' | 'ANALYZE')>;
|
|
21910
|
+
permittedTasks?: Array<('MANAGE' | 'CREATE_CONTENT' | 'MODERATE' | 'MESSAGING' | 'ADVERTISE' | 'ANALYZE' | 'MODERATE_COMMUNITY' | 'MANAGE_JOBS' | 'PAGES_MESSAGING' | 'PAGES_MESSAGING_SUBSCRIPTIONS' | 'READ_PAGE_MAILBOXES' | 'VIEW_MONETIZATION_INSIGHTS' | 'MANAGE_LEADS' | 'CASHIER_ROLE' | 'GLOBAL_STRUCTURE_MANAGEMENT' | 'PROFILE_PLUS_FULL_CONTROL' | 'PROFILE_PLUS_MANAGE' | 'PROFILE_PLUS_FACEBOOK_ACCESS' | 'PROFILE_PLUS_CREATE_CONTENT' | 'PROFILE_PLUS_MODERATE' | 'PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY' | 'PROFILE_PLUS_MESSAGING' | 'PROFILE_PLUS_ADVERTISE' | 'PROFILE_PLUS_ANALYZE' | 'PROFILE_PLUS_REVENUE' | 'PROFILE_PLUS_MANAGE_LEADS' | 'PROFILE_PLUS_CREATIVE_MANAGEMENT' | 'PROFILE_PLUS_CREATOR_MANAGEMENT' | 'PROFILE_PLUS_GLOBAL_STRUCTURE_MANAGEMENT')>;
|
|
21908
21911
|
};
|
|
21909
21912
|
path: {
|
|
21910
21913
|
/**
|
|
@@ -21914,6 +21917,19 @@ type GrantBusinessPartnerData = {
|
|
|
21914
21917
|
};
|
|
21915
21918
|
};
|
|
21916
21919
|
type GrantBusinessPartnerResponse = ({
|
|
21920
|
+
page?: MetaPageOwnership;
|
|
21921
|
+
partner?: {
|
|
21922
|
+
businessId?: string;
|
|
21923
|
+
/**
|
|
21924
|
+
* Tasks the partner currently holds.
|
|
21925
|
+
*/
|
|
21926
|
+
permittedTasks?: Array<(string)>;
|
|
21927
|
+
};
|
|
21928
|
+
/**
|
|
21929
|
+
* Always true on this response.
|
|
21930
|
+
*/
|
|
21931
|
+
alreadyShared?: boolean;
|
|
21932
|
+
} | {
|
|
21917
21933
|
page?: MetaPageOwnership;
|
|
21918
21934
|
partner?: {
|
|
21919
21935
|
businessId?: 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.
|
|
39
|
+
version: "0.2.969",
|
|
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.969",
|
|
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
|
@@ -2632,8 +2632,10 @@ export const listBusinessPartners = <ThrowOnError extends boolean = false>(optio
|
|
|
2632
2632
|
*
|
|
2633
2633
|
* Meta only lets a user token share a Page that a business portfolio owns. A Page
|
|
2634
2634
|
* outside any portfolio must first be claimed into one at business.facebook.com; this
|
|
2635
|
-
* endpoint answers `422` until that is done.
|
|
2636
|
-
* access
|
|
2635
|
+
* endpoint answers `422` until that is done. Meta refuses a second grant to a portfolio
|
|
2636
|
+
* that already has access instead of replacing its tasks, so that case answers `200`
|
|
2637
|
+
* with `alreadyShared: true` and the tasks the partner currently holds. To change a
|
|
2638
|
+
* partner's tasks, revoke and grant again.
|
|
2637
2639
|
*
|
|
2638
2640
|
* After the grant, the partner assigns its own people to the Page with
|
|
2639
2641
|
* `POST /v1/ads/page-users`; Meta does not assign partner admins automatically.
|
|
@@ -7316,6 +7316,9 @@ export type MetaPageOwnership = {
|
|
|
7316
7316
|
export type MetaPagePartner = {
|
|
7317
7317
|
businessId?: string;
|
|
7318
7318
|
name?: string;
|
|
7319
|
+
/**
|
|
7320
|
+
* Tasks the partner holds, in the bare spelling the grant takes (ADVERTISE, ANALYZE, MANAGE, ...). Meta reads them back with a PROFILE_PLUS_ prefix, which is stripped here; partners granted in Business Settings may hold tasks beyond the six the grant accepts, such as MANAGE_LEADS or REVENUE.
|
|
7321
|
+
*/
|
|
7319
7322
|
permittedTasks?: Array<(string)>;
|
|
7320
7323
|
};
|
|
7321
7324
|
|
|
@@ -21058,9 +21061,9 @@ export type GrantBusinessPartnerData = {
|
|
|
21058
21061
|
*/
|
|
21059
21062
|
businessId: string;
|
|
21060
21063
|
/**
|
|
21061
|
-
* Tasks granted on the Page. Defaults to ADVERTISE and ANALYZE.
|
|
21064
|
+
* Tasks granted on the Page, Meta's permitted_tasks vocabulary. Defaults to ADVERTISE and ANALYZE. The bare names are what Business Settings shows; the PROFILE_PLUS_ names are the New Pages Experience tasks and the only way to grant FACEBOOK_ACCESS or REVENUE. Granting MANAGE also yields MANAGE_LEADS.
|
|
21062
21065
|
*/
|
|
21063
|
-
permittedTasks?: Array<('MANAGE' | 'CREATE_CONTENT' | 'MODERATE' | 'MESSAGING' | 'ADVERTISE' | 'ANALYZE')>;
|
|
21066
|
+
permittedTasks?: Array<('MANAGE' | 'CREATE_CONTENT' | 'MODERATE' | 'MESSAGING' | 'ADVERTISE' | 'ANALYZE' | 'MODERATE_COMMUNITY' | 'MANAGE_JOBS' | 'PAGES_MESSAGING' | 'PAGES_MESSAGING_SUBSCRIPTIONS' | 'READ_PAGE_MAILBOXES' | 'VIEW_MONETIZATION_INSIGHTS' | 'MANAGE_LEADS' | 'CASHIER_ROLE' | 'GLOBAL_STRUCTURE_MANAGEMENT' | 'PROFILE_PLUS_FULL_CONTROL' | 'PROFILE_PLUS_MANAGE' | 'PROFILE_PLUS_FACEBOOK_ACCESS' | 'PROFILE_PLUS_CREATE_CONTENT' | 'PROFILE_PLUS_MODERATE' | 'PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY' | 'PROFILE_PLUS_MESSAGING' | 'PROFILE_PLUS_ADVERTISE' | 'PROFILE_PLUS_ANALYZE' | 'PROFILE_PLUS_REVENUE' | 'PROFILE_PLUS_MANAGE_LEADS' | 'PROFILE_PLUS_CREATIVE_MANAGEMENT' | 'PROFILE_PLUS_CREATOR_MANAGEMENT' | 'PROFILE_PLUS_GLOBAL_STRUCTURE_MANAGEMENT')>;
|
|
21064
21067
|
};
|
|
21065
21068
|
path: {
|
|
21066
21069
|
/**
|
|
@@ -21071,6 +21074,19 @@ export type GrantBusinessPartnerData = {
|
|
|
21071
21074
|
};
|
|
21072
21075
|
|
|
21073
21076
|
export type GrantBusinessPartnerResponse = ({
|
|
21077
|
+
page?: MetaPageOwnership;
|
|
21078
|
+
partner?: {
|
|
21079
|
+
businessId?: string;
|
|
21080
|
+
/**
|
|
21081
|
+
* Tasks the partner currently holds.
|
|
21082
|
+
*/
|
|
21083
|
+
permittedTasks?: Array<(string)>;
|
|
21084
|
+
};
|
|
21085
|
+
/**
|
|
21086
|
+
* Always true on this response.
|
|
21087
|
+
*/
|
|
21088
|
+
alreadyShared?: boolean;
|
|
21089
|
+
} | {
|
|
21074
21090
|
page?: MetaPageOwnership;
|
|
21075
21091
|
partner?: {
|
|
21076
21092
|
businessId?: string;
|