@postrun/js 2.23.0 → 2.24.0

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/query.d.cts CHANGED
@@ -1525,13 +1525,13 @@ type GoogleAdsConversionUserIdentifier = {
1525
1525
  */
1526
1526
  phone_number?: string;
1527
1527
  /**
1528
- * A plaintext postal address. Name fields are hashed; region/postal code are sent in the clear.
1528
+ * A plaintext postal address — all four parts are required. Name fields are hashed; region/postal code are sent in the clear.
1529
1529
  */
1530
1530
  address?: {
1531
- given_name?: string;
1532
- family_name?: string;
1533
- region_code?: string;
1534
- postal_code?: string;
1531
+ given_name: string;
1532
+ family_name: string;
1533
+ region_code: string;
1534
+ postal_code: string;
1535
1535
  };
1536
1536
  };
1537
1537
  /**
@@ -1539,9 +1539,13 @@ type GoogleAdsConversionUserIdentifier = {
1539
1539
  */
1540
1540
  type GoogleAdsConversionEvent = {
1541
1541
  /**
1542
- * When the conversion happened, as an RFC 3339 timestamp (required).
1542
+ * When the conversion happened, as an RFC 3339 timestamp (required). A UTC `Z` or an explicit timezone offset (e.g. +05:30) is accepted.
1543
1543
  */
1544
1544
  event_timestamp: string;
1545
+ /**
1546
+ * Where the conversion happened (required by Google): WEB for a gclid web conversion, or APP / IN_STORE / PHONE / MESSAGE / OTHER.
1547
+ */
1548
+ event_source: 'WEB' | 'APP' | 'IN_STORE' | 'PHONE' | 'MESSAGE' | 'OTHER';
1545
1549
  /**
1546
1550
  * Your unique transaction id for this conversion (Google’s transaction_id). Used to de-duplicate.
1547
1551
  */
@@ -1627,7 +1631,7 @@ type GoogleAdsConversionStatus = {
1627
1631
  */
1628
1632
  request_id: string;
1629
1633
  /**
1630
- * One entry per destination, ordered to match the request’s destinations.
1634
+ * One entry per destination, ordered to match the request’s destinations. EMPTY for the first ~minute after a send, while Google registers the request — poll again until it populates.
1631
1635
  */
1632
1636
  destinations: Array<{
1633
1637
  /**
@@ -34471,7 +34475,7 @@ declare const googleGetConversionStatusQueryKey: (options: Options<GoogleGetConv
34471
34475
  *
34472
34476
  * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
34473
34477
  *
34474
- * Returns the per-destination, count-by-reason processing status for a prior conversion send (by its `request_id`) — the total events submitted, the error breakdown (with typed codes), and informational warnings.
34478
+ * Returns the per-destination, count-by-reason processing status for a prior conversion send (by its `request_id`) — the total events submitted, the error breakdown (with typed codes), and informational warnings. `destinations` is EMPTY for the first ~minute after a send (Google registers the request asynchronously) — poll until it populates.
34475
34479
  */
34476
34480
  declare const googleGetConversionStatusOptions: (options: Options<GoogleGetConversionStatusData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GoogleAdsConversionStatus, GoogleGetConversionStatusError, GoogleAdsConversionStatus, [Pick<Options<GoogleGetConversionStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
34477
34481
  _id: string;
package/dist/query.d.ts CHANGED
@@ -1525,13 +1525,13 @@ type GoogleAdsConversionUserIdentifier = {
1525
1525
  */
1526
1526
  phone_number?: string;
1527
1527
  /**
1528
- * A plaintext postal address. Name fields are hashed; region/postal code are sent in the clear.
1528
+ * A plaintext postal address — all four parts are required. Name fields are hashed; region/postal code are sent in the clear.
1529
1529
  */
1530
1530
  address?: {
1531
- given_name?: string;
1532
- family_name?: string;
1533
- region_code?: string;
1534
- postal_code?: string;
1531
+ given_name: string;
1532
+ family_name: string;
1533
+ region_code: string;
1534
+ postal_code: string;
1535
1535
  };
1536
1536
  };
1537
1537
  /**
@@ -1539,9 +1539,13 @@ type GoogleAdsConversionUserIdentifier = {
1539
1539
  */
1540
1540
  type GoogleAdsConversionEvent = {
1541
1541
  /**
1542
- * When the conversion happened, as an RFC 3339 timestamp (required).
1542
+ * When the conversion happened, as an RFC 3339 timestamp (required). A UTC `Z` or an explicit timezone offset (e.g. +05:30) is accepted.
1543
1543
  */
1544
1544
  event_timestamp: string;
1545
+ /**
1546
+ * Where the conversion happened (required by Google): WEB for a gclid web conversion, or APP / IN_STORE / PHONE / MESSAGE / OTHER.
1547
+ */
1548
+ event_source: 'WEB' | 'APP' | 'IN_STORE' | 'PHONE' | 'MESSAGE' | 'OTHER';
1545
1549
  /**
1546
1550
  * Your unique transaction id for this conversion (Google’s transaction_id). Used to de-duplicate.
1547
1551
  */
@@ -1627,7 +1631,7 @@ type GoogleAdsConversionStatus = {
1627
1631
  */
1628
1632
  request_id: string;
1629
1633
  /**
1630
- * One entry per destination, ordered to match the request’s destinations.
1634
+ * One entry per destination, ordered to match the request’s destinations. EMPTY for the first ~minute after a send, while Google registers the request — poll again until it populates.
1631
1635
  */
1632
1636
  destinations: Array<{
1633
1637
  /**
@@ -34471,7 +34475,7 @@ declare const googleGetConversionStatusQueryKey: (options: Options<GoogleGetConv
34471
34475
  *
34472
34476
  * **Authentication.** Secret `pr_` API key, or a browser-safe frontend token granting `ads:read` scoped to the profile that owns the connection.
34473
34477
  *
34474
- * Returns the per-destination, count-by-reason processing status for a prior conversion send (by its `request_id`) — the total events submitted, the error breakdown (with typed codes), and informational warnings.
34478
+ * Returns the per-destination, count-by-reason processing status for a prior conversion send (by its `request_id`) — the total events submitted, the error breakdown (with typed codes), and informational warnings. `destinations` is EMPTY for the first ~minute after a send (Google registers the request asynchronously) — poll until it populates.
34475
34479
  */
34476
34480
  declare const googleGetConversionStatusOptions: (options: Options<GoogleGetConversionStatusData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GoogleAdsConversionStatus, GoogleGetConversionStatusError, GoogleAdsConversionStatus, [Pick<Options<GoogleGetConversionStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
34477
34481
  _id: string;