@getlatedev/node 0.2.1378 → 0.2.1380
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 +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +22 -1
package/dist/index.d.mts
CHANGED
|
@@ -4253,6 +4253,27 @@ type AdTreeAdSet = {
|
|
|
4253
4253
|
pixel_id?: string;
|
|
4254
4254
|
page_id?: string;
|
|
4255
4255
|
} | null;
|
|
4256
|
+
/**
|
|
4257
|
+
* Meta only. Where the ad set sends people (Meta `destination_type`), e.g. WEBSITE, MESSENGER, WHATSAPP, INSTAGRAM_DIRECT, ON_AD. Meta answers UNDEFINED for an ad set with no explicit destination. As of the last sync; null on other platforms and for ad sets not yet synced.
|
|
4258
|
+
*/
|
|
4259
|
+
destinationType?: (string) | null;
|
|
4260
|
+
/**
|
|
4261
|
+
* Meta only. The ad set's conversion attribution windows (Meta `attribution_spec`), in the same shape `attributionSpec` takes on ad creation so a clone can send it back unchanged. As of the last sync; null on other platforms, for ad sets not yet synced and when Meta reports none.
|
|
4262
|
+
*/
|
|
4263
|
+
attributionSpec?: Array<{
|
|
4264
|
+
eventType?: 'CLICK_THROUGH' | 'VIEW_THROUGH' | 'ENGAGED_VIDEO_VIEW';
|
|
4265
|
+
windowDays?: 1 | 7 | 28;
|
|
4266
|
+
}> | null;
|
|
4267
|
+
/**
|
|
4268
|
+
* Meta only. Regional regulated categories declared on the ad set (Meta `regional_regulated_categories`), e.g. AUSTRALIA_FINSERV, TAIWAN_UNIVERSAL, SINGAPORE_UNIVERSAL or VOLUNTARY_VERIFICATION. As of the last sync; null on other platforms, for ad sets not yet synced and when Meta reports none.
|
|
4269
|
+
*/
|
|
4270
|
+
regionalRegulatedCategories?: Array<(string)> | null;
|
|
4271
|
+
/**
|
|
4272
|
+
* Meta only. Verified identity IDs per regional regulation role (Meta `regional_regulation_identities`), keyed by Meta's role name. IDs are strings because they can exceed a JSON number's precision. As of the last sync; null on other platforms, for ad sets not yet synced and when Meta reports none.
|
|
4273
|
+
*/
|
|
4274
|
+
regionalRegulationIdentities?: {
|
|
4275
|
+
[key: string]: (string);
|
|
4276
|
+
} | null;
|
|
4256
4277
|
/**
|
|
4257
4278
|
* Individual ads within this ad set (capped at 100). When the ad set has more than 100 ads these are the 100 highest-spending over the requested date range, so this array depends on `fromDate`/`toDate`; `adCount` is always the true ad set size. Returns a subset of Ad fields from the aggregation: `_id`, `name`, `platform`, `status`, `configuredStatus`, `reviewStatus`, `budget`, `metrics`, `creative`, `goal` and the `platform*` ids are always included; `targeting` and `schedule` may be absent. `configuredStatus` (the ad's own on/off toggle) and `reviewStatus` (the platform's review verdict) are part of this contract, not incidental: a rejected ad is only distinguishable from a healthy one through `reviewStatus`. When `timeIncrement=1&dailyLevel=ad`, each entry also carries a `daily[]` array of `AdDailyMetrics`.
|
|
4258
4279
|
*/
|
|
@@ -27652,7 +27673,7 @@ type GetConnectUrlData = {
|
|
|
27652
27673
|
*/
|
|
27653
27674
|
logoUrl?: string;
|
|
27654
27675
|
/**
|
|
27655
|
-
* Connect through one of your own OAuth apps (see /v1/connect/oauth-apps), so the consent screen shows your app and the platform's limits are your app's. Without it the connect runs on Zernio's app, whatever apps the workspace has saved. Only platforms listed in `platforms` of GET /v1/connect/oauth-apps accept an app; any other, and connects that end on a destination picker
|
|
27676
|
+
* Connect through one of your own OAuth apps (see /v1/connect/oauth-apps), so the consent screen shows your app and the platform's limits are your app's. Without it the connect runs on Zernio's app, whatever apps the workspace has saved. Only platforms listed in `platforms` of GET /v1/connect/oauth-apps accept an app; any other returns 400, and so do ads connects (`adsConnect=true` in the redirect URL) and connects that end on a destination picker other than Facebook Pages (Instagram through Facebook Login, for example). A LinkedIn connect through an app saves the member's own profile: organization pages, and mention lookups, stay on Zernio's app. The connect requests the app's `scopeAreas`; `scopes` may narrow them but not add an area the app does not enable (400). If the user does not grant every requested area, the account still connects and the redirect carries `missing_permissions=<areas>` (the headless POST returns `missingPermissions`). If the platform refuses a permission your app is not approved for, the redirect carries `error=oauth_app_scope_not_allowed`. The account remembers the app, and token refresh, publishing and inbox run on it; reconnecting through another app, or without one, moves the account to that app.
|
|
27656
27677
|
*/
|
|
27657
27678
|
oauthAppId?: string;
|
|
27658
27679
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -4253,6 +4253,27 @@ type AdTreeAdSet = {
|
|
|
4253
4253
|
pixel_id?: string;
|
|
4254
4254
|
page_id?: string;
|
|
4255
4255
|
} | null;
|
|
4256
|
+
/**
|
|
4257
|
+
* Meta only. Where the ad set sends people (Meta `destination_type`), e.g. WEBSITE, MESSENGER, WHATSAPP, INSTAGRAM_DIRECT, ON_AD. Meta answers UNDEFINED for an ad set with no explicit destination. As of the last sync; null on other platforms and for ad sets not yet synced.
|
|
4258
|
+
*/
|
|
4259
|
+
destinationType?: (string) | null;
|
|
4260
|
+
/**
|
|
4261
|
+
* Meta only. The ad set's conversion attribution windows (Meta `attribution_spec`), in the same shape `attributionSpec` takes on ad creation so a clone can send it back unchanged. As of the last sync; null on other platforms, for ad sets not yet synced and when Meta reports none.
|
|
4262
|
+
*/
|
|
4263
|
+
attributionSpec?: Array<{
|
|
4264
|
+
eventType?: 'CLICK_THROUGH' | 'VIEW_THROUGH' | 'ENGAGED_VIDEO_VIEW';
|
|
4265
|
+
windowDays?: 1 | 7 | 28;
|
|
4266
|
+
}> | null;
|
|
4267
|
+
/**
|
|
4268
|
+
* Meta only. Regional regulated categories declared on the ad set (Meta `regional_regulated_categories`), e.g. AUSTRALIA_FINSERV, TAIWAN_UNIVERSAL, SINGAPORE_UNIVERSAL or VOLUNTARY_VERIFICATION. As of the last sync; null on other platforms, for ad sets not yet synced and when Meta reports none.
|
|
4269
|
+
*/
|
|
4270
|
+
regionalRegulatedCategories?: Array<(string)> | null;
|
|
4271
|
+
/**
|
|
4272
|
+
* Meta only. Verified identity IDs per regional regulation role (Meta `regional_regulation_identities`), keyed by Meta's role name. IDs are strings because they can exceed a JSON number's precision. As of the last sync; null on other platforms, for ad sets not yet synced and when Meta reports none.
|
|
4273
|
+
*/
|
|
4274
|
+
regionalRegulationIdentities?: {
|
|
4275
|
+
[key: string]: (string);
|
|
4276
|
+
} | null;
|
|
4256
4277
|
/**
|
|
4257
4278
|
* Individual ads within this ad set (capped at 100). When the ad set has more than 100 ads these are the 100 highest-spending over the requested date range, so this array depends on `fromDate`/`toDate`; `adCount` is always the true ad set size. Returns a subset of Ad fields from the aggregation: `_id`, `name`, `platform`, `status`, `configuredStatus`, `reviewStatus`, `budget`, `metrics`, `creative`, `goal` and the `platform*` ids are always included; `targeting` and `schedule` may be absent. `configuredStatus` (the ad's own on/off toggle) and `reviewStatus` (the platform's review verdict) are part of this contract, not incidental: a rejected ad is only distinguishable from a healthy one through `reviewStatus`. When `timeIncrement=1&dailyLevel=ad`, each entry also carries a `daily[]` array of `AdDailyMetrics`.
|
|
4258
4279
|
*/
|
|
@@ -27652,7 +27673,7 @@ type GetConnectUrlData = {
|
|
|
27652
27673
|
*/
|
|
27653
27674
|
logoUrl?: string;
|
|
27654
27675
|
/**
|
|
27655
|
-
* Connect through one of your own OAuth apps (see /v1/connect/oauth-apps), so the consent screen shows your app and the platform's limits are your app's. Without it the connect runs on Zernio's app, whatever apps the workspace has saved. Only platforms listed in `platforms` of GET /v1/connect/oauth-apps accept an app; any other, and connects that end on a destination picker
|
|
27676
|
+
* Connect through one of your own OAuth apps (see /v1/connect/oauth-apps), so the consent screen shows your app and the platform's limits are your app's. Without it the connect runs on Zernio's app, whatever apps the workspace has saved. Only platforms listed in `platforms` of GET /v1/connect/oauth-apps accept an app; any other returns 400, and so do ads connects (`adsConnect=true` in the redirect URL) and connects that end on a destination picker other than Facebook Pages (Instagram through Facebook Login, for example). A LinkedIn connect through an app saves the member's own profile: organization pages, and mention lookups, stay on Zernio's app. The connect requests the app's `scopeAreas`; `scopes` may narrow them but not add an area the app does not enable (400). If the user does not grant every requested area, the account still connects and the redirect carries `missing_permissions=<areas>` (the headless POST returns `missingPermissions`). If the platform refuses a permission your app is not approved for, the redirect carries `error=oauth_app_scope_not_allowed`. The account remembers the app, and token refresh, publishing and inbox run on it; reconnecting through another app, or without one, moves the account to that app.
|
|
27656
27677
|
*/
|
|
27657
27678
|
oauthAppId?: string;
|
|
27658
27679
|
/**
|
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.1380",
|
|
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.1380",
|
|
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
|
@@ -2078,6 +2078,27 @@ export type AdTreeAdSet = {
|
|
|
2078
2078
|
pixel_id?: string;
|
|
2079
2079
|
page_id?: string;
|
|
2080
2080
|
} | null;
|
|
2081
|
+
/**
|
|
2082
|
+
* Meta only. Where the ad set sends people (Meta `destination_type`), e.g. WEBSITE, MESSENGER, WHATSAPP, INSTAGRAM_DIRECT, ON_AD. Meta answers UNDEFINED for an ad set with no explicit destination. As of the last sync; null on other platforms and for ad sets not yet synced.
|
|
2083
|
+
*/
|
|
2084
|
+
destinationType?: (string) | null;
|
|
2085
|
+
/**
|
|
2086
|
+
* Meta only. The ad set's conversion attribution windows (Meta `attribution_spec`), in the same shape `attributionSpec` takes on ad creation so a clone can send it back unchanged. As of the last sync; null on other platforms, for ad sets not yet synced and when Meta reports none.
|
|
2087
|
+
*/
|
|
2088
|
+
attributionSpec?: Array<{
|
|
2089
|
+
eventType?: 'CLICK_THROUGH' | 'VIEW_THROUGH' | 'ENGAGED_VIDEO_VIEW';
|
|
2090
|
+
windowDays?: 1 | 7 | 28;
|
|
2091
|
+
}> | null;
|
|
2092
|
+
/**
|
|
2093
|
+
* Meta only. Regional regulated categories declared on the ad set (Meta `regional_regulated_categories`), e.g. AUSTRALIA_FINSERV, TAIWAN_UNIVERSAL, SINGAPORE_UNIVERSAL or VOLUNTARY_VERIFICATION. As of the last sync; null on other platforms, for ad sets not yet synced and when Meta reports none.
|
|
2094
|
+
*/
|
|
2095
|
+
regionalRegulatedCategories?: Array<(string)> | null;
|
|
2096
|
+
/**
|
|
2097
|
+
* Meta only. Verified identity IDs per regional regulation role (Meta `regional_regulation_identities`), keyed by Meta's role name. IDs are strings because they can exceed a JSON number's precision. As of the last sync; null on other platforms, for ad sets not yet synced and when Meta reports none.
|
|
2098
|
+
*/
|
|
2099
|
+
regionalRegulationIdentities?: {
|
|
2100
|
+
[key: string]: (string);
|
|
2101
|
+
} | null;
|
|
2081
2102
|
/**
|
|
2082
2103
|
* Individual ads within this ad set (capped at 100). When the ad set has more than 100 ads these are the 100 highest-spending over the requested date range, so this array depends on `fromDate`/`toDate`; `adCount` is always the true ad set size. Returns a subset of Ad fields from the aggregation: `_id`, `name`, `platform`, `status`, `configuredStatus`, `reviewStatus`, `budget`, `metrics`, `creative`, `goal` and the `platform*` ids are always included; `targeting` and `schedule` may be absent. `configuredStatus` (the ad's own on/off toggle) and `reviewStatus` (the platform's review verdict) are part of this contract, not incidental: a rejected ad is only distinguishable from a healthy one through `reviewStatus`. When `timeIncrement=1&dailyLevel=ad`, each entry also carries a `daily[]` array of `AdDailyMetrics`.
|
|
2083
2104
|
*/
|
|
@@ -26698,7 +26719,7 @@ export type GetConnectUrlData = {
|
|
|
26698
26719
|
*/
|
|
26699
26720
|
logoUrl?: string;
|
|
26700
26721
|
/**
|
|
26701
|
-
* Connect through one of your own OAuth apps (see /v1/connect/oauth-apps), so the consent screen shows your app and the platform's limits are your app's. Without it the connect runs on Zernio's app, whatever apps the workspace has saved. Only platforms listed in `platforms` of GET /v1/connect/oauth-apps accept an app; any other, and connects that end on a destination picker
|
|
26722
|
+
* Connect through one of your own OAuth apps (see /v1/connect/oauth-apps), so the consent screen shows your app and the platform's limits are your app's. Without it the connect runs on Zernio's app, whatever apps the workspace has saved. Only platforms listed in `platforms` of GET /v1/connect/oauth-apps accept an app; any other returns 400, and so do ads connects (`adsConnect=true` in the redirect URL) and connects that end on a destination picker other than Facebook Pages (Instagram through Facebook Login, for example). A LinkedIn connect through an app saves the member's own profile: organization pages, and mention lookups, stay on Zernio's app. The connect requests the app's `scopeAreas`; `scopes` may narrow them but not add an area the app does not enable (400). If the user does not grant every requested area, the account still connects and the redirect carries `missing_permissions=<areas>` (the headless POST returns `missingPermissions`). If the platform refuses a permission your app is not approved for, the redirect carries `error=oauth_app_scope_not_allowed`. The account remembers the app, and token refresh, publishing and inbox run on it; reconnecting through another app, or without one, moves the account to that app.
|
|
26702
26723
|
*/
|
|
26703
26724
|
oauthAppId?: string;
|
|
26704
26725
|
/**
|