@getlatedev/node 0.2.1755 → 0.2.1757
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 +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +12 -4
- package/src/generated/types.gen.ts +8 -4
package/dist/index.d.mts
CHANGED
|
@@ -21936,6 +21936,10 @@ type PostMetricsResponse = {
|
|
|
21936
21936
|
* With include=total: the posts the list holds, counted on the first page and carried by the cursor.
|
|
21937
21937
|
*/
|
|
21938
21938
|
total: (number | null);
|
|
21939
|
+
/**
|
|
21940
|
+
* On a list of posts: the accounts this read queued for a fresh sync, because they were never synced or their stored numbers are over 90 minutes old. The answer holds the stored numbers; the synced ones arrive within minutes.
|
|
21941
|
+
*/
|
|
21942
|
+
syncRequestedAccountIds?: Array<(string)>;
|
|
21939
21943
|
/**
|
|
21940
21944
|
* With groupBy=format: how many of the newest posts the metrics sum, and the most it reads. Below limit, every post of the range is counted.
|
|
21941
21945
|
*/
|
|
@@ -79101,11 +79105,11 @@ type SendConversionsError = (unknown | ErrorResponse);
|
|
|
79101
79105
|
type AdjustConversionsData = {
|
|
79102
79106
|
body: {
|
|
79103
79107
|
/**
|
|
79104
|
-
* SocialAccount ID. Must be a `googleads` account.
|
|
79108
|
+
* SocialAccount ID. Must be a `googleads` or `impact` account.
|
|
79105
79109
|
*/
|
|
79106
79110
|
accountId: string;
|
|
79107
79111
|
/**
|
|
79108
|
-
* Conversion action resource name, e.g. `customers/1234567890/conversionActions/987654321
|
|
79112
|
+
* Conversion action resource name on Google, e.g. `customers/1234567890/conversionActions/987654321`; `<program id>:<event type id>` on Impact.
|
|
79109
79113
|
*/
|
|
79110
79114
|
destinationId: string;
|
|
79111
79115
|
adjustments: Array<{
|
|
@@ -79149,9 +79153,9 @@ type AdjustConversionsData = {
|
|
|
79149
79153
|
};
|
|
79150
79154
|
};
|
|
79151
79155
|
type AdjustConversionsResponse = ({
|
|
79152
|
-
platform?: 'googleads';
|
|
79156
|
+
platform?: 'googleads' | 'impact';
|
|
79153
79157
|
/**
|
|
79154
|
-
* Adjustments accepted by
|
|
79158
|
+
* Adjustments accepted by the platform.
|
|
79155
79159
|
*/
|
|
79156
79160
|
adjustmentsReceived?: number;
|
|
79157
79161
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -21936,6 +21936,10 @@ type PostMetricsResponse = {
|
|
|
21936
21936
|
* With include=total: the posts the list holds, counted on the first page and carried by the cursor.
|
|
21937
21937
|
*/
|
|
21938
21938
|
total: (number | null);
|
|
21939
|
+
/**
|
|
21940
|
+
* On a list of posts: the accounts this read queued for a fresh sync, because they were never synced or their stored numbers are over 90 minutes old. The answer holds the stored numbers; the synced ones arrive within minutes.
|
|
21941
|
+
*/
|
|
21942
|
+
syncRequestedAccountIds?: Array<(string)>;
|
|
21939
21943
|
/**
|
|
21940
21944
|
* With groupBy=format: how many of the newest posts the metrics sum, and the most it reads. Below limit, every post of the range is counted.
|
|
21941
21945
|
*/
|
|
@@ -79101,11 +79105,11 @@ type SendConversionsError = (unknown | ErrorResponse);
|
|
|
79101
79105
|
type AdjustConversionsData = {
|
|
79102
79106
|
body: {
|
|
79103
79107
|
/**
|
|
79104
|
-
* SocialAccount ID. Must be a `googleads` account.
|
|
79108
|
+
* SocialAccount ID. Must be a `googleads` or `impact` account.
|
|
79105
79109
|
*/
|
|
79106
79110
|
accountId: string;
|
|
79107
79111
|
/**
|
|
79108
|
-
* Conversion action resource name, e.g. `customers/1234567890/conversionActions/987654321
|
|
79112
|
+
* Conversion action resource name on Google, e.g. `customers/1234567890/conversionActions/987654321`; `<program id>:<event type id>` on Impact.
|
|
79109
79113
|
*/
|
|
79110
79114
|
destinationId: string;
|
|
79111
79115
|
adjustments: Array<{
|
|
@@ -79149,9 +79153,9 @@ type AdjustConversionsData = {
|
|
|
79149
79153
|
};
|
|
79150
79154
|
};
|
|
79151
79155
|
type AdjustConversionsResponse = ({
|
|
79152
|
-
platform?: 'googleads';
|
|
79156
|
+
platform?: 'googleads' | 'impact';
|
|
79153
79157
|
/**
|
|
79154
|
-
* Adjustments accepted by
|
|
79158
|
+
* Adjustments accepted by the platform.
|
|
79155
79159
|
*/
|
|
79156
79160
|
adjustmentsReceived?: number;
|
|
79157
79161
|
/**
|
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.1757",
|
|
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.1757",
|
|
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
|
@@ -21193,13 +21193,21 @@ export const sendConversions = <ThrowOnError extends boolean = false>(options: O
|
|
|
21193
21193
|
|
|
21194
21194
|
/**
|
|
21195
21195
|
* Adjust uploaded conversions
|
|
21196
|
-
* Retracts, restates the value of, or enhances conversions you already sent to Google Ads, for refunds or late customer data. To change Zernio's stored event too, and every platform at once, use `PATCH` or `DELETE /v1/events/{eventId}`.
|
|
21196
|
+
* Retracts, restates the value of, or enhances conversions you already sent to Google Ads or Impact, for refunds or late customer data. To change Zernio's stored event too, and every platform at once, use `PATCH` or `DELETE /v1/events/{eventId}`.
|
|
21197
21197
|
*
|
|
21198
21198
|
* It adjusts conversions previously uploaded via `POST /v1/ads/conversions`: retract them, restate their value, or enhance them with first-party data. Requires the Ads add-on.
|
|
21199
21199
|
*
|
|
21200
|
-
* ### Google Ads only
|
|
21200
|
+
* ### Google Ads and Impact only
|
|
21201
21201
|
*
|
|
21202
|
-
* Google handles adjustments through the classic Google Ads API (`ConversionAdjustmentUploadService`). The Data Manager `ingestEvents` path used for sending conversions is ingest-only.
|
|
21202
|
+
* Google handles adjustments through the classic Google Ads API (`ConversionAdjustmentUploadService`). The Data Manager `ingestEvents` path used for sending conversions is ingest-only.
|
|
21203
|
+
*
|
|
21204
|
+
* On Impact, the partner's commission follows the refund:
|
|
21205
|
+
*
|
|
21206
|
+
* - `RETRACTION` reverses the action and `RESTATEMENT` sets its sale amount. Impact has no `ENHANCEMENT`.
|
|
21207
|
+
* - The action is found by the `destinationId` event type and `orderId`: the `platformData.order_id` the conversion was sent with, or its `eventId` when it had none.
|
|
21208
|
+
* - Impact applies changes asynchronously and refuses them on its side past the action's locking date.
|
|
21209
|
+
*
|
|
21210
|
+
* Other platforms have no equivalent, so this endpoint returns `405` for them.
|
|
21203
21211
|
*
|
|
21204
21212
|
* ### Adjustment types
|
|
21205
21213
|
*
|
|
@@ -21216,7 +21224,7 @@ export const sendConversions = <ThrowOnError extends boolean = false>(options: O
|
|
|
21216
21224
|
*
|
|
21217
21225
|
* ### Other fields
|
|
21218
21226
|
*
|
|
21219
|
-
* - `destinationId` is the conversion action resource name, e.g. `customers/1234567890/conversionActions/987654321
|
|
21227
|
+
* - `destinationId` is the same value you send to `POST /v1/ads/conversions`: the conversion action resource name on Google, e.g. `customers/1234567890/conversionActions/987654321`, and `<program id>:<event type id>` on Impact.
|
|
21220
21228
|
* - PII in `user` is hashed with SHA-256 server-side (Gmail-specific normalization included). Send plaintext.
|
|
21221
21229
|
* - Times are unix seconds; we convert to Google's required `yyyy-MM-dd HH:mm:ss+00:00` format.
|
|
21222
21230
|
*
|
|
@@ -20172,6 +20172,10 @@ export type PostMetricsResponse = {
|
|
|
20172
20172
|
* With include=total: the posts the list holds, counted on the first page and carried by the cursor.
|
|
20173
20173
|
*/
|
|
20174
20174
|
total: (number | null);
|
|
20175
|
+
/**
|
|
20176
|
+
* On a list of posts: the accounts this read queued for a fresh sync, because they were never synced or their stored numbers are over 90 minutes old. The answer holds the stored numbers; the synced ones arrive within minutes.
|
|
20177
|
+
*/
|
|
20178
|
+
syncRequestedAccountIds?: Array<(string)>;
|
|
20175
20179
|
/**
|
|
20176
20180
|
* With groupBy=format: how many of the newest posts the metrics sum, and the most it reads. Below limit, every post of the range is counted.
|
|
20177
20181
|
*/
|
|
@@ -81043,11 +81047,11 @@ export type SendConversionsError = (unknown | ErrorResponse);
|
|
|
81043
81047
|
export type AdjustConversionsData = {
|
|
81044
81048
|
body: {
|
|
81045
81049
|
/**
|
|
81046
|
-
* SocialAccount ID. Must be a `googleads` account.
|
|
81050
|
+
* SocialAccount ID. Must be a `googleads` or `impact` account.
|
|
81047
81051
|
*/
|
|
81048
81052
|
accountId: string;
|
|
81049
81053
|
/**
|
|
81050
|
-
* Conversion action resource name, e.g. `customers/1234567890/conversionActions/987654321
|
|
81054
|
+
* Conversion action resource name on Google, e.g. `customers/1234567890/conversionActions/987654321`; `<program id>:<event type id>` on Impact.
|
|
81051
81055
|
*/
|
|
81052
81056
|
destinationId: string;
|
|
81053
81057
|
adjustments: Array<{
|
|
@@ -81092,9 +81096,9 @@ export type AdjustConversionsData = {
|
|
|
81092
81096
|
};
|
|
81093
81097
|
|
|
81094
81098
|
export type AdjustConversionsResponse = ({
|
|
81095
|
-
platform?: 'googleads';
|
|
81099
|
+
platform?: 'googleads' | 'impact';
|
|
81096
81100
|
/**
|
|
81097
|
-
* Adjustments accepted by
|
|
81101
|
+
* Adjustments accepted by the platform.
|
|
81098
81102
|
*/
|
|
81099
81103
|
adjustmentsReceived?: number;
|
|
81100
81104
|
/**
|