@getlatedev/node 0.2.922 → 0.2.924
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 +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +9 -2
- package/src/generated/types.gen.ts +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -25094,7 +25094,7 @@ type ListInboxCommentsData = {
|
|
|
25094
25094
|
cursor?: string;
|
|
25095
25095
|
limit?: number;
|
|
25096
25096
|
/**
|
|
25097
|
-
* Minimum comment count
|
|
25097
|
+
* Minimum comment count, applied to each page after pagination
|
|
25098
25098
|
*/
|
|
25099
25099
|
minComments?: number;
|
|
25100
25100
|
/**
|
|
@@ -35459,7 +35459,7 @@ type UpdateAdCampaignData = {
|
|
|
35459
35459
|
*/
|
|
35460
35460
|
allowSharedBudgetUpdate?: boolean;
|
|
35461
35461
|
/**
|
|
35462
|
-
* Meta CBO or
|
|
35462
|
+
* Meta CBO, Google daily, or OpenAI Ads daily or lifetime campaign budget, in whole currency units.
|
|
35463
35463
|
*/
|
|
35464
35464
|
budget?: {
|
|
35465
35465
|
/**
|
|
@@ -36498,7 +36498,7 @@ type UpdateAdData = {
|
|
|
36498
36498
|
*/
|
|
36499
36499
|
amount?: number;
|
|
36500
36500
|
/**
|
|
36501
|
-
* OpenAI Ads accepts
|
|
36501
|
+
* OpenAI Ads accepts both and sets the campaign's single spend cap, replacing the previous daily or lifetime cap.
|
|
36502
36502
|
*/
|
|
36503
36503
|
type?: 'daily' | 'lifetime';
|
|
36504
36504
|
};
|
|
@@ -40377,7 +40377,7 @@ type CreateStandaloneAdData = {
|
|
|
40377
40377
|
*/
|
|
40378
40378
|
budgetAmount?: number;
|
|
40379
40379
|
/**
|
|
40380
|
-
* Required on legacy, multi-creative and Performance Max shapes. Inherited on attach. OpenAI Ads accepts lifetime only
|
|
40380
|
+
* Required on legacy, multi-creative and Performance Max shapes. Inherited on attach. OpenAI Ads creation accepts lifetime only; sending daily returns 422 (daily caps can be set afterwards with PUT /v1/ads/campaigns/{campaignId}). OpenAI Ads lifetime budgets require `endDate` to give the lifetime cap a spend window.
|
|
40381
40381
|
*/
|
|
40382
40382
|
budgetType?: 'daily' | 'lifetime';
|
|
40383
40383
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -25094,7 +25094,7 @@ type ListInboxCommentsData = {
|
|
|
25094
25094
|
cursor?: string;
|
|
25095
25095
|
limit?: number;
|
|
25096
25096
|
/**
|
|
25097
|
-
* Minimum comment count
|
|
25097
|
+
* Minimum comment count, applied to each page after pagination
|
|
25098
25098
|
*/
|
|
25099
25099
|
minComments?: number;
|
|
25100
25100
|
/**
|
|
@@ -35459,7 +35459,7 @@ type UpdateAdCampaignData = {
|
|
|
35459
35459
|
*/
|
|
35460
35460
|
allowSharedBudgetUpdate?: boolean;
|
|
35461
35461
|
/**
|
|
35462
|
-
* Meta CBO or
|
|
35462
|
+
* Meta CBO, Google daily, or OpenAI Ads daily or lifetime campaign budget, in whole currency units.
|
|
35463
35463
|
*/
|
|
35464
35464
|
budget?: {
|
|
35465
35465
|
/**
|
|
@@ -36498,7 +36498,7 @@ type UpdateAdData = {
|
|
|
36498
36498
|
*/
|
|
36499
36499
|
amount?: number;
|
|
36500
36500
|
/**
|
|
36501
|
-
* OpenAI Ads accepts
|
|
36501
|
+
* OpenAI Ads accepts both and sets the campaign's single spend cap, replacing the previous daily or lifetime cap.
|
|
36502
36502
|
*/
|
|
36503
36503
|
type?: 'daily' | 'lifetime';
|
|
36504
36504
|
};
|
|
@@ -40377,7 +40377,7 @@ type CreateStandaloneAdData = {
|
|
|
40377
40377
|
*/
|
|
40378
40378
|
budgetAmount?: number;
|
|
40379
40379
|
/**
|
|
40380
|
-
* Required on legacy, multi-creative and Performance Max shapes. Inherited on attach. OpenAI Ads accepts lifetime only
|
|
40380
|
+
* Required on legacy, multi-creative and Performance Max shapes. Inherited on attach. OpenAI Ads creation accepts lifetime only; sending daily returns 422 (daily caps can be set afterwards with PUT /v1/ads/campaigns/{campaignId}). OpenAI Ads lifetime budgets require `endDate` to give the lifetime cap a spend window.
|
|
40381
40381
|
*/
|
|
40382
40382
|
budgetType?: 'daily' | 'lifetime';
|
|
40383
40383
|
/**
|
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.924",
|
|
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.924",
|
|
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
|
@@ -4296,6 +4296,9 @@ export const getMessageAttachment = <ThrowOnError extends boolean = false>(optio
|
|
|
4296
4296
|
* (`sortBy=date`, `sortOrder=desc`): with `sortOrder=asc`, or with `sortBy=comments`,
|
|
4297
4297
|
* the cursor filter does not match the sort order and the second page is unreliable.
|
|
4298
4298
|
*
|
|
4299
|
+
* `minComments` is applied to each page after pagination: a page can hold fewer than
|
|
4300
|
+
* `limit` posts, even none, while `hasMore` is true; keep following `nextCursor`.
|
|
4301
|
+
*
|
|
4299
4302
|
* `nextCursor` is opaque: pass it back verbatim, never construct or parse it, its
|
|
4300
4303
|
* composition may change without notice. Because each page re-queries a live window,
|
|
4301
4304
|
* results can still shift between requests, so dedupe by `id` on the client.
|
|
@@ -8866,7 +8869,7 @@ export const getAdCampaignDetails = <ThrowOnError extends boolean = false>(optio
|
|
|
8866
8869
|
* | `bidStrategy` | Yes | Yes | 501 |
|
|
8867
8870
|
* | `bidAmount`, `roasAverageFloor` | 400 (ad-set level) | Yes | 400 |
|
|
8868
8871
|
* | `portfolioBidStrategyId` | 400 | Yes | 400 |
|
|
8869
|
-
* | `budget` (CBO; ABO returns 409) | Yes | Daily only | 501 |
|
|
8872
|
+
* | `budget` (CBO; ABO returns 409) | Yes | Daily only | OpenAI: daily or lifetime; others 501 |
|
|
8870
8873
|
* | `name` | Yes | 501 | 501 |
|
|
8871
8874
|
* | `platformSpecificData.spendCap` | Yes | 400 | 400 |
|
|
8872
8875
|
* | `accountId` (empty campaigns) | Yes | - | - |
|
|
@@ -8887,6 +8890,10 @@ export const getAdCampaignDetails = <ThrowOnError extends boolean = false>(optio
|
|
|
8887
8890
|
* 409 unless allowSharedBudgetUpdate=true is explicitly supplied, because the change
|
|
8888
8891
|
* affects every campaign using that budget. Unknown sharing state also returns 409.
|
|
8889
8892
|
*
|
|
8893
|
+
* OpenAI Ads campaigns carry exactly one spend cap: `budget.type` daily or lifetime
|
|
8894
|
+
* replaces whichever cap the campaign had, with a minimum of 1 in the ad account's
|
|
8895
|
+
* currency (422 below it).
|
|
8896
|
+
*
|
|
8890
8897
|
* `accountId` forwards the update straight to Meta for a campaign with zero ads,
|
|
8891
8898
|
* which would otherwise 404; the response then carries `updated: 0`.
|
|
8892
8899
|
*
|
|
@@ -9392,7 +9399,7 @@ export const getAd = <ThrowOnError extends boolean = false>(options: OptionsLega
|
|
|
9392
9399
|
* campaign, pauses the old one).
|
|
9393
9400
|
* - **Pinterest / X / OpenAI Ads**: status + budget only. Sending
|
|
9394
9401
|
* `targeting` or `creative` returns 501 with code `unsupported_platform_operation`.
|
|
9395
|
-
* OpenAI Ads budget is lifetime
|
|
9402
|
+
* OpenAI Ads budget is the campaign's spend cap, daily or lifetime (see `budget.type` below).
|
|
9396
9403
|
*
|
|
9397
9404
|
* **Google location and language replacement:** locations, languages and devices are
|
|
9398
9405
|
* campaign-level criteria on Google, so these edits apply to every ad group and ad in
|
|
@@ -24618,7 +24618,7 @@ export type ListInboxCommentsData = {
|
|
|
24618
24618
|
cursor?: string;
|
|
24619
24619
|
limit?: number;
|
|
24620
24620
|
/**
|
|
24621
|
-
* Minimum comment count
|
|
24621
|
+
* Minimum comment count, applied to each page after pagination
|
|
24622
24622
|
*/
|
|
24623
24623
|
minComments?: number;
|
|
24624
24624
|
/**
|
|
@@ -35814,7 +35814,7 @@ export type UpdateAdCampaignData = {
|
|
|
35814
35814
|
*/
|
|
35815
35815
|
allowSharedBudgetUpdate?: boolean;
|
|
35816
35816
|
/**
|
|
35817
|
-
* Meta CBO or
|
|
35817
|
+
* Meta CBO, Google daily, or OpenAI Ads daily or lifetime campaign budget, in whole currency units.
|
|
35818
35818
|
*/
|
|
35819
35819
|
budget?: {
|
|
35820
35820
|
/**
|
|
@@ -36910,7 +36910,7 @@ export type UpdateAdData = {
|
|
|
36910
36910
|
*/
|
|
36911
36911
|
amount?: number;
|
|
36912
36912
|
/**
|
|
36913
|
-
* OpenAI Ads accepts
|
|
36913
|
+
* OpenAI Ads accepts both and sets the campaign's single spend cap, replacing the previous daily or lifetime cap.
|
|
36914
36914
|
*/
|
|
36915
36915
|
type?: 'daily' | 'lifetime';
|
|
36916
36916
|
};
|
|
@@ -41035,7 +41035,7 @@ export type CreateStandaloneAdData = {
|
|
|
41035
41035
|
*/
|
|
41036
41036
|
budgetAmount?: number;
|
|
41037
41037
|
/**
|
|
41038
|
-
* Required on legacy, multi-creative and Performance Max shapes. Inherited on attach. OpenAI Ads accepts lifetime only
|
|
41038
|
+
* Required on legacy, multi-creative and Performance Max shapes. Inherited on attach. OpenAI Ads creation accepts lifetime only; sending daily returns 422 (daily caps can be set afterwards with PUT /v1/ads/campaigns/{campaignId}). OpenAI Ads lifetime budgets require `endDate` to give the lifetime cap a spend window.
|
|
41039
41039
|
*/
|
|
41040
41040
|
budgetType?: 'daily' | 'lifetime';
|
|
41041
41041
|
/**
|