@getlatedev/node 0.2.1756 → 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 CHANGED
@@ -79105,11 +79105,11 @@ type SendConversionsError = (unknown | ErrorResponse);
79105
79105
  type AdjustConversionsData = {
79106
79106
  body: {
79107
79107
  /**
79108
- * SocialAccount ID. Must be a `googleads` account.
79108
+ * SocialAccount ID. Must be a `googleads` or `impact` account.
79109
79109
  */
79110
79110
  accountId: string;
79111
79111
  /**
79112
- * 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.
79113
79113
  */
79114
79114
  destinationId: string;
79115
79115
  adjustments: Array<{
@@ -79153,9 +79153,9 @@ type AdjustConversionsData = {
79153
79153
  };
79154
79154
  };
79155
79155
  type AdjustConversionsResponse = ({
79156
- platform?: 'googleads';
79156
+ platform?: 'googleads' | 'impact';
79157
79157
  /**
79158
- * Adjustments accepted by Google.
79158
+ * Adjustments accepted by the platform.
79159
79159
  */
79160
79160
  adjustmentsReceived?: number;
79161
79161
  /**
package/dist/index.d.ts CHANGED
@@ -79105,11 +79105,11 @@ type SendConversionsError = (unknown | ErrorResponse);
79105
79105
  type AdjustConversionsData = {
79106
79106
  body: {
79107
79107
  /**
79108
- * SocialAccount ID. Must be a `googleads` account.
79108
+ * SocialAccount ID. Must be a `googleads` or `impact` account.
79109
79109
  */
79110
79110
  accountId: string;
79111
79111
  /**
79112
- * 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.
79113
79113
  */
79114
79114
  destinationId: string;
79115
79115
  adjustments: Array<{
@@ -79153,9 +79153,9 @@ type AdjustConversionsData = {
79153
79153
  };
79154
79154
  };
79155
79155
  type AdjustConversionsResponse = ({
79156
- platform?: 'googleads';
79156
+ platform?: 'googleads' | 'impact';
79157
79157
  /**
79158
- * Adjustments accepted by Google.
79158
+ * Adjustments accepted by the platform.
79159
79159
  */
79160
79160
  adjustmentsReceived?: number;
79161
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.1756",
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.1756",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1756",
3
+ "version": "0.2.1757",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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. Meta and LinkedIn have no equivalent, so this endpoint returns `405` for those platforms.
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` (same value you send to `POST /v1/ads/conversions`).
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
  *
@@ -81047,11 +81047,11 @@ export type SendConversionsError = (unknown | ErrorResponse);
81047
81047
  export type AdjustConversionsData = {
81048
81048
  body: {
81049
81049
  /**
81050
- * SocialAccount ID. Must be a `googleads` account.
81050
+ * SocialAccount ID. Must be a `googleads` or `impact` account.
81051
81051
  */
81052
81052
  accountId: string;
81053
81053
  /**
81054
- * 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.
81055
81055
  */
81056
81056
  destinationId: string;
81057
81057
  adjustments: Array<{
@@ -81096,9 +81096,9 @@ export type AdjustConversionsData = {
81096
81096
  };
81097
81097
 
81098
81098
  export type AdjustConversionsResponse = ({
81099
- platform?: 'googleads';
81099
+ platform?: 'googleads' | 'impact';
81100
81100
  /**
81101
- * Adjustments accepted by Google.
81101
+ * Adjustments accepted by the platform.
81102
81102
  */
81103
81103
  adjustmentsReceived?: number;
81104
81104
  /**