@getlatedev/node 0.2.1407 → 0.2.1409
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 +28 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +28 -0
package/dist/index.d.mts
CHANGED
|
@@ -29139,6 +29139,10 @@ type ConnectAdsData = {
|
|
|
29139
29139
|
*
|
|
29140
29140
|
*/
|
|
29141
29141
|
adAccountIds?: Array<(string)>;
|
|
29142
|
+
/**
|
|
29143
|
+
* Welcome screen only: your product name in its heading. Same rules as on GET /v1/connect/{platform}.
|
|
29144
|
+
*/
|
|
29145
|
+
brandName?: string;
|
|
29142
29146
|
/**
|
|
29143
29147
|
* Force a fresh OAuth even when an account already exists.
|
|
29144
29148
|
*
|
|
@@ -29158,6 +29162,10 @@ type ConnectAdsData = {
|
|
|
29158
29162
|
* Meta ads authorization mode. Business login is opt-in for Facebook and Instagram; classic preserves the posting-account flow.
|
|
29159
29163
|
*/
|
|
29160
29164
|
loginMode?: 'classic' | 'business';
|
|
29165
|
+
/**
|
|
29166
|
+
* Welcome screen only: https URL of your square logo. Rejected with 400 `INVALID_FIELD_VALUE` when the welcome screen is not shown.
|
|
29167
|
+
*/
|
|
29168
|
+
logoUrl?: string;
|
|
29161
29169
|
/**
|
|
29162
29170
|
* Business login only. Facebook Page ID to select from the token grants for ad creatives and lead forms.
|
|
29163
29171
|
*/
|
|
@@ -29172,6 +29180,10 @@ type ConnectAdsData = {
|
|
|
29172
29180
|
*
|
|
29173
29181
|
*/
|
|
29174
29182
|
permissionLevel?: 'full' | 'advertise';
|
|
29183
|
+
/**
|
|
29184
|
+
* Welcome screen only: hex colour (`#RRGGBB`) of its button.
|
|
29185
|
+
*/
|
|
29186
|
+
primaryColor?: string;
|
|
29175
29187
|
/**
|
|
29176
29188
|
* Your Zernio profile ID
|
|
29177
29189
|
*/
|
|
@@ -29193,6 +29205,22 @@ type ConnectAdsData = {
|
|
|
29193
29205
|
*
|
|
29194
29206
|
*/
|
|
29195
29207
|
redirect_url?: string;
|
|
29208
|
+
/**
|
|
29209
|
+
* When `true`, `authUrl` opens on the Zernio-hosted welcome screen with your brand, as on GET /v1/connect/{platform}, naming the ads platform ("<brandName> wants to connect to your Meta Ads").
|
|
29210
|
+
*
|
|
29211
|
+
* - With no `redirect_url`, the flow ends on the branded result page instead of the Zernio dashboard.
|
|
29212
|
+
* - Shown only with `welcome=true`: the workspace's saved "on by default" (`PUT /v1/connect/welcome-screen`) applies to GET /v1/connect/{platform} only, so ads links behave as before unless you opt in. The saved brand still fills in what the call leaves out.
|
|
29213
|
+
* - Without `adAccountId` or `adAccountIds`, on Meta, Google, LinkedIn, X, Reddit and Microsoft, the user then picks the ad accounts to connect on a branded Zernio-hosted page (skipped when the login reaches only one).
|
|
29214
|
+
* - After that page the flow ends on your `redirect_url` with `connected` set to the ads platform and `accountId` to the ads connection.
|
|
29215
|
+
* - Cannot be combined with `headless=true` (400 `INVALID_FIELD_VALUE`).
|
|
29216
|
+
* - Responses with `alreadyConnected: true` carry no `authUrl`, so they show no screen.
|
|
29217
|
+
*
|
|
29218
|
+
*/
|
|
29219
|
+
welcome?: boolean;
|
|
29220
|
+
/**
|
|
29221
|
+
* Welcome screen only: a URL-encoded JSON object restyling and rewording the welcome screen and the result page, with the keys documented on GET /v1/connect/{platform}. Rejected when the welcome screen is not shown.
|
|
29222
|
+
*/
|
|
29223
|
+
welcomeTheme?: string;
|
|
29196
29224
|
};
|
|
29197
29225
|
};
|
|
29198
29226
|
type ConnectAdsResponse = (({
|
package/dist/index.d.ts
CHANGED
|
@@ -29139,6 +29139,10 @@ type ConnectAdsData = {
|
|
|
29139
29139
|
*
|
|
29140
29140
|
*/
|
|
29141
29141
|
adAccountIds?: Array<(string)>;
|
|
29142
|
+
/**
|
|
29143
|
+
* Welcome screen only: your product name in its heading. Same rules as on GET /v1/connect/{platform}.
|
|
29144
|
+
*/
|
|
29145
|
+
brandName?: string;
|
|
29142
29146
|
/**
|
|
29143
29147
|
* Force a fresh OAuth even when an account already exists.
|
|
29144
29148
|
*
|
|
@@ -29158,6 +29162,10 @@ type ConnectAdsData = {
|
|
|
29158
29162
|
* Meta ads authorization mode. Business login is opt-in for Facebook and Instagram; classic preserves the posting-account flow.
|
|
29159
29163
|
*/
|
|
29160
29164
|
loginMode?: 'classic' | 'business';
|
|
29165
|
+
/**
|
|
29166
|
+
* Welcome screen only: https URL of your square logo. Rejected with 400 `INVALID_FIELD_VALUE` when the welcome screen is not shown.
|
|
29167
|
+
*/
|
|
29168
|
+
logoUrl?: string;
|
|
29161
29169
|
/**
|
|
29162
29170
|
* Business login only. Facebook Page ID to select from the token grants for ad creatives and lead forms.
|
|
29163
29171
|
*/
|
|
@@ -29172,6 +29180,10 @@ type ConnectAdsData = {
|
|
|
29172
29180
|
*
|
|
29173
29181
|
*/
|
|
29174
29182
|
permissionLevel?: 'full' | 'advertise';
|
|
29183
|
+
/**
|
|
29184
|
+
* Welcome screen only: hex colour (`#RRGGBB`) of its button.
|
|
29185
|
+
*/
|
|
29186
|
+
primaryColor?: string;
|
|
29175
29187
|
/**
|
|
29176
29188
|
* Your Zernio profile ID
|
|
29177
29189
|
*/
|
|
@@ -29193,6 +29205,22 @@ type ConnectAdsData = {
|
|
|
29193
29205
|
*
|
|
29194
29206
|
*/
|
|
29195
29207
|
redirect_url?: string;
|
|
29208
|
+
/**
|
|
29209
|
+
* When `true`, `authUrl` opens on the Zernio-hosted welcome screen with your brand, as on GET /v1/connect/{platform}, naming the ads platform ("<brandName> wants to connect to your Meta Ads").
|
|
29210
|
+
*
|
|
29211
|
+
* - With no `redirect_url`, the flow ends on the branded result page instead of the Zernio dashboard.
|
|
29212
|
+
* - Shown only with `welcome=true`: the workspace's saved "on by default" (`PUT /v1/connect/welcome-screen`) applies to GET /v1/connect/{platform} only, so ads links behave as before unless you opt in. The saved brand still fills in what the call leaves out.
|
|
29213
|
+
* - Without `adAccountId` or `adAccountIds`, on Meta, Google, LinkedIn, X, Reddit and Microsoft, the user then picks the ad accounts to connect on a branded Zernio-hosted page (skipped when the login reaches only one).
|
|
29214
|
+
* - After that page the flow ends on your `redirect_url` with `connected` set to the ads platform and `accountId` to the ads connection.
|
|
29215
|
+
* - Cannot be combined with `headless=true` (400 `INVALID_FIELD_VALUE`).
|
|
29216
|
+
* - Responses with `alreadyConnected: true` carry no `authUrl`, so they show no screen.
|
|
29217
|
+
*
|
|
29218
|
+
*/
|
|
29219
|
+
welcome?: boolean;
|
|
29220
|
+
/**
|
|
29221
|
+
* Welcome screen only: a URL-encoded JSON object restyling and rewording the welcome screen and the result page, with the keys documented on GET /v1/connect/{platform}. Rejected when the welcome screen is not shown.
|
|
29222
|
+
*/
|
|
29223
|
+
welcomeTheme?: string;
|
|
29196
29224
|
};
|
|
29197
29225
|
};
|
|
29198
29226
|
type ConnectAdsResponse = (({
|
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: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1409",
|
|
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: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1409",
|
|
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
|
@@ -28200,6 +28200,10 @@ export type ConnectAdsData = {
|
|
|
28200
28200
|
*
|
|
28201
28201
|
*/
|
|
28202
28202
|
adAccountIds?: Array<(string)>;
|
|
28203
|
+
/**
|
|
28204
|
+
* Welcome screen only: your product name in its heading. Same rules as on GET /v1/connect/{platform}.
|
|
28205
|
+
*/
|
|
28206
|
+
brandName?: string;
|
|
28203
28207
|
/**
|
|
28204
28208
|
* Force a fresh OAuth even when an account already exists.
|
|
28205
28209
|
*
|
|
@@ -28219,6 +28223,10 @@ export type ConnectAdsData = {
|
|
|
28219
28223
|
* Meta ads authorization mode. Business login is opt-in for Facebook and Instagram; classic preserves the posting-account flow.
|
|
28220
28224
|
*/
|
|
28221
28225
|
loginMode?: 'classic' | 'business';
|
|
28226
|
+
/**
|
|
28227
|
+
* Welcome screen only: https URL of your square logo. Rejected with 400 `INVALID_FIELD_VALUE` when the welcome screen is not shown.
|
|
28228
|
+
*/
|
|
28229
|
+
logoUrl?: string;
|
|
28222
28230
|
/**
|
|
28223
28231
|
* Business login only. Facebook Page ID to select from the token grants for ad creatives and lead forms.
|
|
28224
28232
|
*/
|
|
@@ -28233,6 +28241,10 @@ export type ConnectAdsData = {
|
|
|
28233
28241
|
*
|
|
28234
28242
|
*/
|
|
28235
28243
|
permissionLevel?: 'full' | 'advertise';
|
|
28244
|
+
/**
|
|
28245
|
+
* Welcome screen only: hex colour (`#RRGGBB`) of its button.
|
|
28246
|
+
*/
|
|
28247
|
+
primaryColor?: string;
|
|
28236
28248
|
/**
|
|
28237
28249
|
* Your Zernio profile ID
|
|
28238
28250
|
*/
|
|
@@ -28254,6 +28266,22 @@ export type ConnectAdsData = {
|
|
|
28254
28266
|
*
|
|
28255
28267
|
*/
|
|
28256
28268
|
redirect_url?: string;
|
|
28269
|
+
/**
|
|
28270
|
+
* When `true`, `authUrl` opens on the Zernio-hosted welcome screen with your brand, as on GET /v1/connect/{platform}, naming the ads platform ("<brandName> wants to connect to your Meta Ads").
|
|
28271
|
+
*
|
|
28272
|
+
* - With no `redirect_url`, the flow ends on the branded result page instead of the Zernio dashboard.
|
|
28273
|
+
* - Shown only with `welcome=true`: the workspace's saved "on by default" (`PUT /v1/connect/welcome-screen`) applies to GET /v1/connect/{platform} only, so ads links behave as before unless you opt in. The saved brand still fills in what the call leaves out.
|
|
28274
|
+
* - Without `adAccountId` or `adAccountIds`, on Meta, Google, LinkedIn, X, Reddit and Microsoft, the user then picks the ad accounts to connect on a branded Zernio-hosted page (skipped when the login reaches only one).
|
|
28275
|
+
* - After that page the flow ends on your `redirect_url` with `connected` set to the ads platform and `accountId` to the ads connection.
|
|
28276
|
+
* - Cannot be combined with `headless=true` (400 `INVALID_FIELD_VALUE`).
|
|
28277
|
+
* - Responses with `alreadyConnected: true` carry no `authUrl`, so they show no screen.
|
|
28278
|
+
*
|
|
28279
|
+
*/
|
|
28280
|
+
welcome?: boolean;
|
|
28281
|
+
/**
|
|
28282
|
+
* Welcome screen only: a URL-encoded JSON object restyling and rewording the welcome screen and the result page, with the keys documented on GET /v1/connect/{platform}. Rejected when the welcome screen is not shown.
|
|
28283
|
+
*/
|
|
28284
|
+
welcomeTheme?: string;
|
|
28257
28285
|
};
|
|
28258
28286
|
};
|
|
28259
28287
|
|