@zernio/node 0.2.1048 → 0.2.1050

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
@@ -21019,9 +21019,13 @@ type SelectFacebookPageData = {
21019
21019
  */
21020
21020
  profileId: string;
21021
21021
  /**
21022
- * The Facebook Page ID selected by the user.
21022
+ * The Facebook Page ID selected by the user. Send this or pageIds, not both.
21023
21023
  */
21024
- pageId: string;
21024
+ pageId?: string;
21025
+ /**
21026
+ * Several Page IDs to connect from one sign-in, each as its own account. With two or more distinct IDs the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one Facebook account and on a reconnect or an ads connect, which pick exactly one Page. A single distinct ID behaves exactly like pageId.
21027
+ */
21028
+ pageIds?: Array<(string)>;
21025
21029
  /**
21026
21030
  * Temporary Facebook access token from OAuth.
21027
21031
  */
@@ -21071,6 +21075,23 @@ type SelectFacebookPageResponse = ({
21071
21075
  isActive?: boolean;
21072
21076
  selectedPageName?: string;
21073
21077
  };
21078
+ /**
21079
+ * pageIds only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
21080
+ */
21081
+ accounts?: Array<{
21082
+ [key: string]: unknown;
21083
+ }>;
21084
+ /**
21085
+ * pageIds only. The Pages that could not be connected while the others were.
21086
+ */
21087
+ failed?: Array<{
21088
+ /**
21089
+ * The Page ID.
21090
+ */
21091
+ id?: string;
21092
+ code?: string;
21093
+ message?: string;
21094
+ }>;
21074
21095
  });
21075
21096
  type SelectFacebookPageError = (unknown | {
21076
21097
  error?: string;
@@ -21124,9 +21145,13 @@ type SelectInstagramAccountData = {
21124
21145
  */
21125
21146
  profileId: string;
21126
21147
  /**
21127
- * The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account
21148
+ * The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account. Send this or pageIds, not both.
21128
21149
  */
21129
- pageId: string;
21150
+ pageId?: string;
21151
+ /**
21152
+ * Several Page IDs whose linked Instagram accounts to connect from one sign-in, each as its own account. With two or more distinct IDs the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one Instagram account and on a reconnect or an ads connect. A single distinct ID behaves exactly like pageId.
21153
+ */
21154
+ pageIds?: Array<(string)>;
21130
21155
  /**
21131
21156
  * Long-lived Facebook user access token from the OAuth callback redirect
21132
21157
  */
@@ -21162,6 +21187,23 @@ type SelectInstagramAccountResponse = ({
21162
21187
  isActive?: boolean;
21163
21188
  loginMethod?: 'facebook_login';
21164
21189
  };
21190
+ /**
21191
+ * pageIds only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
21192
+ */
21193
+ accounts?: Array<{
21194
+ [key: string]: unknown;
21195
+ }>;
21196
+ /**
21197
+ * pageIds only. The Pages whose Instagram account could not be connected while the others were.
21198
+ */
21199
+ failed?: Array<{
21200
+ /**
21201
+ * The Page ID.
21202
+ */
21203
+ id?: string;
21204
+ code?: string;
21205
+ message?: string;
21206
+ }>;
21165
21207
  });
21166
21208
  type SelectInstagramAccountError = (unknown | {
21167
21209
  error?: string;
@@ -21220,7 +21262,7 @@ type SelectInstagramAccountError = (unknown | {
21220
21262
  */
21221
21263
  effective_account_limit?: number;
21222
21264
  };
21223
- });
21265
+ } | ErrorResponse);
21224
21266
  type ListGoogleBusinessLocationsData = {
21225
21267
  query?: {
21226
21268
  /**
@@ -22658,7 +22700,22 @@ type SelectLinkedInOrganizationData = {
22658
22700
  userProfile: {
22659
22701
  [key: string]: unknown;
22660
22702
  };
22661
- accountType: 'personal' | 'organization';
22703
+ /**
22704
+ * Send this (with selectedOrganization for an organization) or selections, not both.
22705
+ */
22706
+ accountType?: 'personal' | 'organization';
22707
+ /**
22708
+ * Several accounts to connect from one sign-in (yourself and/or organizations), each as its own account. With two or more entries the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one LinkedIn account and on a reconnect or an ads connect. A single entry behaves exactly like accountType.
22709
+ */
22710
+ selections?: Array<{
22711
+ accountType: 'personal' | 'organization';
22712
+ /**
22713
+ * Same shape as selectedOrganization.
22714
+ */
22715
+ selectedOrganization?: {
22716
+ [key: string]: unknown;
22717
+ };
22718
+ }>;
22662
22719
  selectedOrganization?: {
22663
22720
  id: string;
22664
22721
  urn: string;
@@ -22687,6 +22744,20 @@ type SelectLinkedInOrganizationResponse = ({
22687
22744
  isActive?: boolean;
22688
22745
  accountType?: 'personal' | 'organization';
22689
22746
  };
22747
+ /**
22748
+ * selections only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
22749
+ */
22750
+ accounts?: Array<{
22751
+ [key: string]: unknown;
22752
+ }>;
22753
+ /**
22754
+ * selections only. The accounts that could not be connected while the others were. `id` is the organization URN or the member id, or `selections[i]` for an entry naming neither.
22755
+ */
22756
+ failed?: Array<{
22757
+ id?: string;
22758
+ code?: string;
22759
+ message?: string;
22760
+ }>;
22690
22761
  bulkRefresh?: {
22691
22762
  updatedCount?: number;
22692
22763
  errors?: number;
package/dist/index.d.ts CHANGED
@@ -21019,9 +21019,13 @@ type SelectFacebookPageData = {
21019
21019
  */
21020
21020
  profileId: string;
21021
21021
  /**
21022
- * The Facebook Page ID selected by the user.
21022
+ * The Facebook Page ID selected by the user. Send this or pageIds, not both.
21023
21023
  */
21024
- pageId: string;
21024
+ pageId?: string;
21025
+ /**
21026
+ * Several Page IDs to connect from one sign-in, each as its own account. With two or more distinct IDs the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one Facebook account and on a reconnect or an ads connect, which pick exactly one Page. A single distinct ID behaves exactly like pageId.
21027
+ */
21028
+ pageIds?: Array<(string)>;
21025
21029
  /**
21026
21030
  * Temporary Facebook access token from OAuth.
21027
21031
  */
@@ -21071,6 +21075,23 @@ type SelectFacebookPageResponse = ({
21071
21075
  isActive?: boolean;
21072
21076
  selectedPageName?: string;
21073
21077
  };
21078
+ /**
21079
+ * pageIds only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
21080
+ */
21081
+ accounts?: Array<{
21082
+ [key: string]: unknown;
21083
+ }>;
21084
+ /**
21085
+ * pageIds only. The Pages that could not be connected while the others were.
21086
+ */
21087
+ failed?: Array<{
21088
+ /**
21089
+ * The Page ID.
21090
+ */
21091
+ id?: string;
21092
+ code?: string;
21093
+ message?: string;
21094
+ }>;
21074
21095
  });
21075
21096
  type SelectFacebookPageError = (unknown | {
21076
21097
  error?: string;
@@ -21124,9 +21145,13 @@ type SelectInstagramAccountData = {
21124
21145
  */
21125
21146
  profileId: string;
21126
21147
  /**
21127
- * The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account
21148
+ * The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account. Send this or pageIds, not both.
21128
21149
  */
21129
- pageId: string;
21150
+ pageId?: string;
21151
+ /**
21152
+ * Several Page IDs whose linked Instagram accounts to connect from one sign-in, each as its own account. With two or more distinct IDs the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one Instagram account and on a reconnect or an ads connect. A single distinct ID behaves exactly like pageId.
21153
+ */
21154
+ pageIds?: Array<(string)>;
21130
21155
  /**
21131
21156
  * Long-lived Facebook user access token from the OAuth callback redirect
21132
21157
  */
@@ -21162,6 +21187,23 @@ type SelectInstagramAccountResponse = ({
21162
21187
  isActive?: boolean;
21163
21188
  loginMethod?: 'facebook_login';
21164
21189
  };
21190
+ /**
21191
+ * pageIds only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
21192
+ */
21193
+ accounts?: Array<{
21194
+ [key: string]: unknown;
21195
+ }>;
21196
+ /**
21197
+ * pageIds only. The Pages whose Instagram account could not be connected while the others were.
21198
+ */
21199
+ failed?: Array<{
21200
+ /**
21201
+ * The Page ID.
21202
+ */
21203
+ id?: string;
21204
+ code?: string;
21205
+ message?: string;
21206
+ }>;
21165
21207
  });
21166
21208
  type SelectInstagramAccountError = (unknown | {
21167
21209
  error?: string;
@@ -21220,7 +21262,7 @@ type SelectInstagramAccountError = (unknown | {
21220
21262
  */
21221
21263
  effective_account_limit?: number;
21222
21264
  };
21223
- });
21265
+ } | ErrorResponse);
21224
21266
  type ListGoogleBusinessLocationsData = {
21225
21267
  query?: {
21226
21268
  /**
@@ -22658,7 +22700,22 @@ type SelectLinkedInOrganizationData = {
22658
22700
  userProfile: {
22659
22701
  [key: string]: unknown;
22660
22702
  };
22661
- accountType: 'personal' | 'organization';
22703
+ /**
22704
+ * Send this (with selectedOrganization for an organization) or selections, not both.
22705
+ */
22706
+ accountType?: 'personal' | 'organization';
22707
+ /**
22708
+ * Several accounts to connect from one sign-in (yourself and/or organizations), each as its own account. With two or more entries the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one LinkedIn account and on a reconnect or an ads connect. A single entry behaves exactly like accountType.
22709
+ */
22710
+ selections?: Array<{
22711
+ accountType: 'personal' | 'organization';
22712
+ /**
22713
+ * Same shape as selectedOrganization.
22714
+ */
22715
+ selectedOrganization?: {
22716
+ [key: string]: unknown;
22717
+ };
22718
+ }>;
22662
22719
  selectedOrganization?: {
22663
22720
  id: string;
22664
22721
  urn: string;
@@ -22687,6 +22744,20 @@ type SelectLinkedInOrganizationResponse = ({
22687
22744
  isActive?: boolean;
22688
22745
  accountType?: 'personal' | 'organization';
22689
22746
  };
22747
+ /**
22748
+ * selections only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
22749
+ */
22750
+ accounts?: Array<{
22751
+ [key: string]: unknown;
22752
+ }>;
22753
+ /**
22754
+ * selections only. The accounts that could not be connected while the others were. `id` is the organization URN or the member id, or `selections[i]` for an entry naming neither.
22755
+ */
22756
+ failed?: Array<{
22757
+ id?: string;
22758
+ code?: string;
22759
+ message?: string;
22760
+ }>;
22690
22761
  bulkRefresh?: {
22691
22762
  updatedCount?: number;
22692
22763
  errors?: number;
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.1048",
39
+ version: "0.2.1050",
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.1048",
8
+ version: "0.2.1050",
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.1048",
3
+ "version": "0.2.1050",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -19980,9 +19980,13 @@ export type SelectFacebookPageData = {
19980
19980
  */
19981
19981
  profileId: string;
19982
19982
  /**
19983
- * The Facebook Page ID selected by the user.
19983
+ * The Facebook Page ID selected by the user. Send this or pageIds, not both.
19984
19984
  */
19985
- pageId: string;
19985
+ pageId?: string;
19986
+ /**
19987
+ * Several Page IDs to connect from one sign-in, each as its own account. With two or more distinct IDs the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one Facebook account and on a reconnect or an ads connect, which pick exactly one Page. A single distinct ID behaves exactly like pageId.
19988
+ */
19989
+ pageIds?: Array<(string)>;
19986
19990
  /**
19987
19991
  * Temporary Facebook access token from OAuth.
19988
19992
  */
@@ -20033,6 +20037,23 @@ export type SelectFacebookPageResponse = ({
20033
20037
  isActive?: boolean;
20034
20038
  selectedPageName?: string;
20035
20039
  };
20040
+ /**
20041
+ * pageIds only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
20042
+ */
20043
+ accounts?: Array<{
20044
+ [key: string]: unknown;
20045
+ }>;
20046
+ /**
20047
+ * pageIds only. The Pages that could not be connected while the others were.
20048
+ */
20049
+ failed?: Array<{
20050
+ /**
20051
+ * The Page ID.
20052
+ */
20053
+ id?: string;
20054
+ code?: string;
20055
+ message?: string;
20056
+ }>;
20036
20057
  });
20037
20058
 
20038
20059
  export type SelectFacebookPageError = (unknown | {
@@ -20091,9 +20112,13 @@ export type SelectInstagramAccountData = {
20091
20112
  */
20092
20113
  profileId: string;
20093
20114
  /**
20094
- * The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account
20115
+ * The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account. Send this or pageIds, not both.
20095
20116
  */
20096
- pageId: string;
20117
+ pageId?: string;
20118
+ /**
20119
+ * Several Page IDs whose linked Instagram accounts to connect from one sign-in, each as its own account. With two or more distinct IDs the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one Instagram account and on a reconnect or an ads connect. A single distinct ID behaves exactly like pageId.
20120
+ */
20121
+ pageIds?: Array<(string)>;
20097
20122
  /**
20098
20123
  * Long-lived Facebook user access token from the OAuth callback redirect
20099
20124
  */
@@ -20130,6 +20155,23 @@ export type SelectInstagramAccountResponse = ({
20130
20155
  isActive?: boolean;
20131
20156
  loginMethod?: 'facebook_login';
20132
20157
  };
20158
+ /**
20159
+ * pageIds only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
20160
+ */
20161
+ accounts?: Array<{
20162
+ [key: string]: unknown;
20163
+ }>;
20164
+ /**
20165
+ * pageIds only. The Pages whose Instagram account could not be connected while the others were.
20166
+ */
20167
+ failed?: Array<{
20168
+ /**
20169
+ * The Page ID.
20170
+ */
20171
+ id?: string;
20172
+ code?: string;
20173
+ message?: string;
20174
+ }>;
20133
20175
  });
20134
20176
 
20135
20177
  export type SelectInstagramAccountError = (unknown | {
@@ -20189,7 +20231,7 @@ export type SelectInstagramAccountError = (unknown | {
20189
20231
  */
20190
20232
  effective_account_limit?: number;
20191
20233
  };
20192
- });
20234
+ } | ErrorResponse);
20193
20235
 
20194
20236
  export type ListGoogleBusinessLocationsData = {
20195
20237
  query?: {
@@ -21715,7 +21757,22 @@ export type SelectLinkedInOrganizationData = {
21715
21757
  userProfile: {
21716
21758
  [key: string]: unknown;
21717
21759
  };
21718
- accountType: 'personal' | 'organization';
21760
+ /**
21761
+ * Send this (with selectedOrganization for an organization) or selections, not both.
21762
+ */
21763
+ accountType?: 'personal' | 'organization';
21764
+ /**
21765
+ * Several accounts to connect from one sign-in (yourself and/or organizations), each as its own account. With two or more entries the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one LinkedIn account and on a reconnect or an ads connect. A single entry behaves exactly like accountType.
21766
+ */
21767
+ selections?: Array<{
21768
+ accountType: 'personal' | 'organization';
21769
+ /**
21770
+ * Same shape as selectedOrganization.
21771
+ */
21772
+ selectedOrganization?: {
21773
+ [key: string]: unknown;
21774
+ };
21775
+ }>;
21719
21776
  selectedOrganization?: {
21720
21777
  id: string;
21721
21778
  urn: string;
@@ -21745,6 +21802,20 @@ export type SelectLinkedInOrganizationResponse = ({
21745
21802
  isActive?: boolean;
21746
21803
  accountType?: 'personal' | 'organization';
21747
21804
  };
21805
+ /**
21806
+ * selections only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
21807
+ */
21808
+ accounts?: Array<{
21809
+ [key: string]: unknown;
21810
+ }>;
21811
+ /**
21812
+ * selections only. The accounts that could not be connected while the others were. `id` is the organization URN or the member id, or `selections[i]` for an entry naming neither.
21813
+ */
21814
+ failed?: Array<{
21815
+ id?: string;
21816
+ code?: string;
21817
+ message?: string;
21818
+ }>;
21748
21819
  bulkRefresh?: {
21749
21820
  updatedCount?: number;
21750
21821
  errors?: number;