@getlatedev/node 0.2.285 → 0.2.287
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 +48 -6
- package/dist/index.d.ts +48 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +48 -6
package/dist/index.d.mts
CHANGED
|
@@ -2213,7 +2213,7 @@ type source = 'external';
|
|
|
2213
2213
|
*/
|
|
2214
2214
|
type FacebookPlatformData = {
|
|
2215
2215
|
/**
|
|
2216
|
-
* When true, creates the post as
|
|
2216
|
+
* When true, creates the post as a draft in Facebook Publishing Tools instead of publishing immediately. Supported for feed posts (text, link, image, video) and reels. Not supported for stories. Drafts expire after ~30 days.
|
|
2217
2217
|
*/
|
|
2218
2218
|
draft?: boolean;
|
|
2219
2219
|
/**
|
|
@@ -3630,19 +3630,19 @@ type TargetingSpec = {
|
|
|
3630
3630
|
name?: string;
|
|
3631
3631
|
}>;
|
|
3632
3632
|
/**
|
|
3633
|
-
* City targeting. Optional `radius` + `
|
|
3633
|
+
* City targeting. Optional `radius` + `distance_unit` extend beyond the city limits; both must be set together or both omitted. `radius` is only honoured on platforms whose capability map allows city radius (Meta).
|
|
3634
3634
|
*/
|
|
3635
3635
|
cities?: Array<{
|
|
3636
3636
|
key: string;
|
|
3637
3637
|
name?: string;
|
|
3638
3638
|
/**
|
|
3639
|
-
* Radius around the city. Requires
|
|
3639
|
+
* Radius around the city. Requires distance_unit.
|
|
3640
3640
|
*/
|
|
3641
3641
|
radius?: number;
|
|
3642
3642
|
/**
|
|
3643
3643
|
* Required if radius is set.
|
|
3644
3644
|
*/
|
|
3645
|
-
|
|
3645
|
+
distance_unit?: 'mile' | 'kilometer';
|
|
3646
3646
|
}>;
|
|
3647
3647
|
/**
|
|
3648
3648
|
* Postal/ZIP targeting. `key` is the platform's postal location ID (e.g. Meta `US:94304`). Supported on Meta, Google, TikTok, Pinterest, X.
|
|
@@ -3670,10 +3670,13 @@ type TargetingSpec = {
|
|
|
3670
3670
|
radius: number;
|
|
3671
3671
|
distanceUnit: 'mile' | 'kilometer';
|
|
3672
3672
|
name?: string;
|
|
3673
|
+
/**
|
|
3674
|
+
* Optional label, sent to Meta as `address_string`. latitude/longitude take precedence for the pin location.
|
|
3675
|
+
*/
|
|
3673
3676
|
address?: string;
|
|
3674
3677
|
}>;
|
|
3675
3678
|
/**
|
|
3676
|
-
* Geo to exclude from the audience.
|
|
3679
|
+
* Geo to exclude from the audience. Mirrors the inclusion geo shape: excluded cities can carry a radius catchment and excluded custom (lat/lng) pins are supported, both on Meta (excluded_geo_locations).
|
|
3677
3680
|
*/
|
|
3678
3681
|
excludedLocations?: {
|
|
3679
3682
|
countries?: Array<(string)>;
|
|
@@ -3681,14 +3684,53 @@ type TargetingSpec = {
|
|
|
3681
3684
|
key: string;
|
|
3682
3685
|
name?: string;
|
|
3683
3686
|
}>;
|
|
3687
|
+
/**
|
|
3688
|
+
* Cities to exclude. Optional `radius` + `distance_unit` exclude a catchment around the city (both must be set together or both omitted); Meta honours the radius on excluded cities.
|
|
3689
|
+
*/
|
|
3684
3690
|
cities?: Array<{
|
|
3685
3691
|
key: string;
|
|
3686
|
-
|
|
3692
|
+
/**
|
|
3693
|
+
* Radius around the excluded city. Requires distance_unit.
|
|
3694
|
+
*/
|
|
3695
|
+
radius?: number;
|
|
3696
|
+
/**
|
|
3697
|
+
* Required if radius is set.
|
|
3698
|
+
*/
|
|
3699
|
+
distance_unit?: 'mile' | 'kilometer';
|
|
3687
3700
|
}>;
|
|
3688
3701
|
zips?: Array<{
|
|
3689
3702
|
key: string;
|
|
3690
3703
|
name?: string;
|
|
3691
3704
|
}>;
|
|
3705
|
+
/**
|
|
3706
|
+
* Named points of interest to exclude. `key` from /v1/ads/targeting/search.
|
|
3707
|
+
*/
|
|
3708
|
+
places?: Array<{
|
|
3709
|
+
key: string;
|
|
3710
|
+
}>;
|
|
3711
|
+
/**
|
|
3712
|
+
* Named neighbourhood areas to exclude. `key` from /v1/ads/targeting/search.
|
|
3713
|
+
*/
|
|
3714
|
+
neighborhoods?: Array<{
|
|
3715
|
+
key: string;
|
|
3716
|
+
}>;
|
|
3717
|
+
/**
|
|
3718
|
+
* Point-radius (lat/lng) pins to exclude (Meta excluded_geo_locations.custom_locations). Mirrors the inclusion customLocations shape.
|
|
3719
|
+
*/
|
|
3720
|
+
customLocations?: Array<{
|
|
3721
|
+
latitude: number;
|
|
3722
|
+
longitude: number;
|
|
3723
|
+
/**
|
|
3724
|
+
* Positive radius around the point.
|
|
3725
|
+
*/
|
|
3726
|
+
radius: number;
|
|
3727
|
+
distanceUnit: 'mile' | 'kilometer';
|
|
3728
|
+
name?: string;
|
|
3729
|
+
/**
|
|
3730
|
+
* Optional label, sent to Meta as `address_string`. latitude/longitude take precedence for the pin location.
|
|
3731
|
+
*/
|
|
3732
|
+
address?: string;
|
|
3733
|
+
}>;
|
|
3692
3734
|
};
|
|
3693
3735
|
ageMin?: number;
|
|
3694
3736
|
ageMax?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -2213,7 +2213,7 @@ type source = 'external';
|
|
|
2213
2213
|
*/
|
|
2214
2214
|
type FacebookPlatformData = {
|
|
2215
2215
|
/**
|
|
2216
|
-
* When true, creates the post as
|
|
2216
|
+
* When true, creates the post as a draft in Facebook Publishing Tools instead of publishing immediately. Supported for feed posts (text, link, image, video) and reels. Not supported for stories. Drafts expire after ~30 days.
|
|
2217
2217
|
*/
|
|
2218
2218
|
draft?: boolean;
|
|
2219
2219
|
/**
|
|
@@ -3630,19 +3630,19 @@ type TargetingSpec = {
|
|
|
3630
3630
|
name?: string;
|
|
3631
3631
|
}>;
|
|
3632
3632
|
/**
|
|
3633
|
-
* City targeting. Optional `radius` + `
|
|
3633
|
+
* City targeting. Optional `radius` + `distance_unit` extend beyond the city limits; both must be set together or both omitted. `radius` is only honoured on platforms whose capability map allows city radius (Meta).
|
|
3634
3634
|
*/
|
|
3635
3635
|
cities?: Array<{
|
|
3636
3636
|
key: string;
|
|
3637
3637
|
name?: string;
|
|
3638
3638
|
/**
|
|
3639
|
-
* Radius around the city. Requires
|
|
3639
|
+
* Radius around the city. Requires distance_unit.
|
|
3640
3640
|
*/
|
|
3641
3641
|
radius?: number;
|
|
3642
3642
|
/**
|
|
3643
3643
|
* Required if radius is set.
|
|
3644
3644
|
*/
|
|
3645
|
-
|
|
3645
|
+
distance_unit?: 'mile' | 'kilometer';
|
|
3646
3646
|
}>;
|
|
3647
3647
|
/**
|
|
3648
3648
|
* Postal/ZIP targeting. `key` is the platform's postal location ID (e.g. Meta `US:94304`). Supported on Meta, Google, TikTok, Pinterest, X.
|
|
@@ -3670,10 +3670,13 @@ type TargetingSpec = {
|
|
|
3670
3670
|
radius: number;
|
|
3671
3671
|
distanceUnit: 'mile' | 'kilometer';
|
|
3672
3672
|
name?: string;
|
|
3673
|
+
/**
|
|
3674
|
+
* Optional label, sent to Meta as `address_string`. latitude/longitude take precedence for the pin location.
|
|
3675
|
+
*/
|
|
3673
3676
|
address?: string;
|
|
3674
3677
|
}>;
|
|
3675
3678
|
/**
|
|
3676
|
-
* Geo to exclude from the audience.
|
|
3679
|
+
* Geo to exclude from the audience. Mirrors the inclusion geo shape: excluded cities can carry a radius catchment and excluded custom (lat/lng) pins are supported, both on Meta (excluded_geo_locations).
|
|
3677
3680
|
*/
|
|
3678
3681
|
excludedLocations?: {
|
|
3679
3682
|
countries?: Array<(string)>;
|
|
@@ -3681,14 +3684,53 @@ type TargetingSpec = {
|
|
|
3681
3684
|
key: string;
|
|
3682
3685
|
name?: string;
|
|
3683
3686
|
}>;
|
|
3687
|
+
/**
|
|
3688
|
+
* Cities to exclude. Optional `radius` + `distance_unit` exclude a catchment around the city (both must be set together or both omitted); Meta honours the radius on excluded cities.
|
|
3689
|
+
*/
|
|
3684
3690
|
cities?: Array<{
|
|
3685
3691
|
key: string;
|
|
3686
|
-
|
|
3692
|
+
/**
|
|
3693
|
+
* Radius around the excluded city. Requires distance_unit.
|
|
3694
|
+
*/
|
|
3695
|
+
radius?: number;
|
|
3696
|
+
/**
|
|
3697
|
+
* Required if radius is set.
|
|
3698
|
+
*/
|
|
3699
|
+
distance_unit?: 'mile' | 'kilometer';
|
|
3687
3700
|
}>;
|
|
3688
3701
|
zips?: Array<{
|
|
3689
3702
|
key: string;
|
|
3690
3703
|
name?: string;
|
|
3691
3704
|
}>;
|
|
3705
|
+
/**
|
|
3706
|
+
* Named points of interest to exclude. `key` from /v1/ads/targeting/search.
|
|
3707
|
+
*/
|
|
3708
|
+
places?: Array<{
|
|
3709
|
+
key: string;
|
|
3710
|
+
}>;
|
|
3711
|
+
/**
|
|
3712
|
+
* Named neighbourhood areas to exclude. `key` from /v1/ads/targeting/search.
|
|
3713
|
+
*/
|
|
3714
|
+
neighborhoods?: Array<{
|
|
3715
|
+
key: string;
|
|
3716
|
+
}>;
|
|
3717
|
+
/**
|
|
3718
|
+
* Point-radius (lat/lng) pins to exclude (Meta excluded_geo_locations.custom_locations). Mirrors the inclusion customLocations shape.
|
|
3719
|
+
*/
|
|
3720
|
+
customLocations?: Array<{
|
|
3721
|
+
latitude: number;
|
|
3722
|
+
longitude: number;
|
|
3723
|
+
/**
|
|
3724
|
+
* Positive radius around the point.
|
|
3725
|
+
*/
|
|
3726
|
+
radius: number;
|
|
3727
|
+
distanceUnit: 'mile' | 'kilometer';
|
|
3728
|
+
name?: string;
|
|
3729
|
+
/**
|
|
3730
|
+
* Optional label, sent to Meta as `address_string`. latitude/longitude take precedence for the pin location.
|
|
3731
|
+
*/
|
|
3732
|
+
address?: string;
|
|
3733
|
+
}>;
|
|
3692
3734
|
};
|
|
3693
3735
|
ageMin?: number;
|
|
3694
3736
|
ageMax?: 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: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.287",
|
|
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.287",
|
|
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
|
@@ -1500,7 +1500,7 @@ export type source = 'external';
|
|
|
1500
1500
|
*/
|
|
1501
1501
|
export type FacebookPlatformData = {
|
|
1502
1502
|
/**
|
|
1503
|
-
* When true, creates the post as
|
|
1503
|
+
* When true, creates the post as a draft in Facebook Publishing Tools instead of publishing immediately. Supported for feed posts (text, link, image, video) and reels. Not supported for stories. Drafts expire after ~30 days.
|
|
1504
1504
|
*/
|
|
1505
1505
|
draft?: boolean;
|
|
1506
1506
|
/**
|
|
@@ -2999,19 +2999,19 @@ export type TargetingSpec = {
|
|
|
2999
2999
|
name?: string;
|
|
3000
3000
|
}>;
|
|
3001
3001
|
/**
|
|
3002
|
-
* City targeting. Optional `radius` + `
|
|
3002
|
+
* City targeting. Optional `radius` + `distance_unit` extend beyond the city limits; both must be set together or both omitted. `radius` is only honoured on platforms whose capability map allows city radius (Meta).
|
|
3003
3003
|
*/
|
|
3004
3004
|
cities?: Array<{
|
|
3005
3005
|
key: string;
|
|
3006
3006
|
name?: string;
|
|
3007
3007
|
/**
|
|
3008
|
-
* Radius around the city. Requires
|
|
3008
|
+
* Radius around the city. Requires distance_unit.
|
|
3009
3009
|
*/
|
|
3010
3010
|
radius?: number;
|
|
3011
3011
|
/**
|
|
3012
3012
|
* Required if radius is set.
|
|
3013
3013
|
*/
|
|
3014
|
-
|
|
3014
|
+
distance_unit?: 'mile' | 'kilometer';
|
|
3015
3015
|
}>;
|
|
3016
3016
|
/**
|
|
3017
3017
|
* Postal/ZIP targeting. `key` is the platform's postal location ID (e.g. Meta `US:94304`). Supported on Meta, Google, TikTok, Pinterest, X.
|
|
@@ -3039,10 +3039,13 @@ export type TargetingSpec = {
|
|
|
3039
3039
|
radius: number;
|
|
3040
3040
|
distanceUnit: 'mile' | 'kilometer';
|
|
3041
3041
|
name?: string;
|
|
3042
|
+
/**
|
|
3043
|
+
* Optional label, sent to Meta as `address_string`. latitude/longitude take precedence for the pin location.
|
|
3044
|
+
*/
|
|
3042
3045
|
address?: string;
|
|
3043
3046
|
}>;
|
|
3044
3047
|
/**
|
|
3045
|
-
* Geo to exclude from the audience.
|
|
3048
|
+
* Geo to exclude from the audience. Mirrors the inclusion geo shape: excluded cities can carry a radius catchment and excluded custom (lat/lng) pins are supported, both on Meta (excluded_geo_locations).
|
|
3046
3049
|
*/
|
|
3047
3050
|
excludedLocations?: {
|
|
3048
3051
|
countries?: Array<(string)>;
|
|
@@ -3050,14 +3053,53 @@ export type TargetingSpec = {
|
|
|
3050
3053
|
key: string;
|
|
3051
3054
|
name?: string;
|
|
3052
3055
|
}>;
|
|
3056
|
+
/**
|
|
3057
|
+
* Cities to exclude. Optional `radius` + `distance_unit` exclude a catchment around the city (both must be set together or both omitted); Meta honours the radius on excluded cities.
|
|
3058
|
+
*/
|
|
3053
3059
|
cities?: Array<{
|
|
3054
3060
|
key: string;
|
|
3055
|
-
|
|
3061
|
+
/**
|
|
3062
|
+
* Radius around the excluded city. Requires distance_unit.
|
|
3063
|
+
*/
|
|
3064
|
+
radius?: number;
|
|
3065
|
+
/**
|
|
3066
|
+
* Required if radius is set.
|
|
3067
|
+
*/
|
|
3068
|
+
distance_unit?: 'mile' | 'kilometer';
|
|
3056
3069
|
}>;
|
|
3057
3070
|
zips?: Array<{
|
|
3058
3071
|
key: string;
|
|
3059
3072
|
name?: string;
|
|
3060
3073
|
}>;
|
|
3074
|
+
/**
|
|
3075
|
+
* Named points of interest to exclude. `key` from /v1/ads/targeting/search.
|
|
3076
|
+
*/
|
|
3077
|
+
places?: Array<{
|
|
3078
|
+
key: string;
|
|
3079
|
+
}>;
|
|
3080
|
+
/**
|
|
3081
|
+
* Named neighbourhood areas to exclude. `key` from /v1/ads/targeting/search.
|
|
3082
|
+
*/
|
|
3083
|
+
neighborhoods?: Array<{
|
|
3084
|
+
key: string;
|
|
3085
|
+
}>;
|
|
3086
|
+
/**
|
|
3087
|
+
* Point-radius (lat/lng) pins to exclude (Meta excluded_geo_locations.custom_locations). Mirrors the inclusion customLocations shape.
|
|
3088
|
+
*/
|
|
3089
|
+
customLocations?: Array<{
|
|
3090
|
+
latitude: number;
|
|
3091
|
+
longitude: number;
|
|
3092
|
+
/**
|
|
3093
|
+
* Positive radius around the point.
|
|
3094
|
+
*/
|
|
3095
|
+
radius: number;
|
|
3096
|
+
distanceUnit: 'mile' | 'kilometer';
|
|
3097
|
+
name?: string;
|
|
3098
|
+
/**
|
|
3099
|
+
* Optional label, sent to Meta as `address_string`. latitude/longitude take precedence for the pin location.
|
|
3100
|
+
*/
|
|
3101
|
+
address?: string;
|
|
3102
|
+
}>;
|
|
3061
3103
|
};
|
|
3062
3104
|
ageMin?: number;
|
|
3063
3105
|
ageMax?: number;
|