@getlatedev/node 0.2.1248 → 0.2.1250

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.
@@ -564,7 +564,7 @@ export type AdActivationStatus = 'ACTIVE' | 'PAUSED';
564
564
 
565
565
  export type AdAnalyticsResponse = {
566
566
  /**
567
- * Present and true while historical data is being backfilled.
567
+ * Meta only. Present and true while historical data is being backfilled.
568
568
  */
569
569
  backfillPending?: boolean;
570
570
  ad?: {
@@ -918,7 +918,11 @@ export type AdFunnelCounts = {
918
918
  */
919
919
  paymentInfoAdds?: number;
920
920
  /**
921
- * Purchases (Meta `Purchase` pixel event). Pair with `purchaseValue` for revenue.
921
+ * Purchases. Meta reports one purchase under several action types at once, so this takes the FIRST one present, in this order, never a sum: `offsite_conversion.fb_pixel_purchase`, `omni_purchase`, `app_custom_event.fb_mobile_purchase`, `onsite_conversion.purchase`, `purchase`.
922
+ * It always counts purchases, whatever the ad set optimizes for. `conversions` instead follows the ad set's optimization event (PURCHASE when the ad set names none), so the two can differ on any other goal.
923
+ * TikTok: app purchases (`purchase`), else website complete payments (`complete_payment`), else Place an Order (`place_order`).
924
+ * Pair with `purchaseValue` for revenue.
925
+ *
922
926
  */
923
927
  purchases?: number;
924
928
  /**
@@ -1424,7 +1428,7 @@ export type AdsListResponse = {
1424
1428
  ads?: Array<Ad>;
1425
1429
  pagination?: Pagination;
1426
1430
  /**
1427
- * Present and true while historical data is being backfilled.
1431
+ * Meta only. Present and true while historical data is being backfilled.
1428
1432
  */
1429
1433
  backfillPending?: boolean;
1430
1434
  };
@@ -1433,7 +1437,7 @@ export type AdStatus = 'active' | 'paused' | 'pending_review' | 'rejected' | 'co
1433
1437
 
1434
1438
  export type AdsTimelineResponse = {
1435
1439
  /**
1436
- * Present and true while historical data is being backfilled.
1440
+ * Meta only. Present and true while historical data is being backfilled.
1437
1441
  */
1438
1442
  backfillPending?: boolean;
1439
1443
  rows?: Array<{
@@ -1734,7 +1738,7 @@ export type AdTreeResponse = {
1734
1738
  campaigns?: Array<AdTreeCampaign>;
1735
1739
  pagination?: Pagination;
1736
1740
  /**
1737
- * Present and true while historical data is being backfilled.
1741
+ * Meta only. Present and true while historical data is being backfilled.
1738
1742
  */
1739
1743
  backfillPending?: boolean;
1740
1744
  };
@@ -3206,7 +3210,7 @@ export type endReason = 'hangup' | 'no_answer' | 'rejected' | 'error';
3206
3210
 
3207
3211
  export type CampaignAnalyticsResponse = {
3208
3212
  /**
3209
- * Present and true while historical data is being backfilled.
3213
+ * Meta only. Present and true while historical data is being backfilled.
3210
3214
  */
3211
3215
  backfillPending?: boolean;
3212
3216
  campaign?: {
@@ -6799,6 +6803,26 @@ export type GoogleAdsUserAccessInvitationResult = {
6799
6803
  */
6800
6804
  export type status20 = 'PENDING' | 'PENDING_APPROVAL';
6801
6805
 
6806
+ export type GoogleAdsUserInvitationApproval = {
6807
+ /**
6808
+ * Pass to DELETE /v1/ads/accounts/user-invitations/pending-approvals to withdraw the request.
6809
+ */
6810
+ multiPartyAuthReviewId?: string;
6811
+ /**
6812
+ * Invited email address.
6813
+ */
6814
+ emailAddress?: (string) | null;
6815
+ accessRole?: 'ADMIN' | 'STANDARD' | 'READ_ONLY' | 'EMAIL_ONLY' | 'UNKNOWN';
6816
+ /**
6817
+ * Google user who sent the invitation. Only this user can withdraw it.
6818
+ */
6819
+ requestUserEmail?: (string) | null;
6820
+ /**
6821
+ * Google's creation time, yyyy-MM-dd HH:mm:ss.ssssss in the account's time zone.
6822
+ */
6823
+ createdAt?: (string) | null;
6824
+ };
6825
+
6802
6826
  /**
6803
6827
  * Link one asset to the asset group. Send exactly one of asset (an existing asset), text, imageUrl or youtubeVideoId (new content, created in the same request).
6804
6828
  */
@@ -47835,7 +47859,7 @@ export type ListAdAccountUserInvitationsResponse = ({
47835
47859
  customerId?: string;
47836
47860
  invitations?: Array<GoogleAdsUserAccessInvitation>;
47837
47861
  /**
47838
- * When this data was fetched from Google. Null on a live read.
47862
+ * When this data was fetched from Google. Null when the cache is unavailable.
47839
47863
  */
47840
47864
  cachedAt?: (string) | null;
47841
47865
  /**
@@ -47894,6 +47918,59 @@ export type RevokeAdAccountUserInvitationResponse = ({
47894
47918
 
47895
47919
  export type RevokeAdAccountUserInvitationError = (ErrorResponse | unknown);
47896
47920
 
47921
+ export type ListAdAccountUserInvitationApprovalsData = {
47922
+ query: {
47923
+ /**
47924
+ * Google ads SocialAccount id.
47925
+ */
47926
+ accountId: string;
47927
+ /**
47928
+ * Google Ads customer id, digits only. Defaults to the connection's selected customer.
47929
+ */
47930
+ adAccountId?: string;
47931
+ };
47932
+ };
47933
+
47934
+ export type ListAdAccountUserInvitationApprovalsResponse = ({
47935
+ customerId?: string;
47936
+ approvals?: Array<GoogleAdsUserInvitationApproval>;
47937
+ /**
47938
+ * When this data was fetched from Google. Null when the cache is unavailable.
47939
+ */
47940
+ cachedAt?: (string) | null;
47941
+ /**
47942
+ * True when Google's quota was exhausted and this is the last successful fetch.
47943
+ */
47944
+ stale?: boolean;
47945
+ });
47946
+
47947
+ export type ListAdAccountUserInvitationApprovalsError = (ErrorResponse | unknown);
47948
+
47949
+ export type WithdrawAdAccountUserInvitationApprovalData = {
47950
+ query: {
47951
+ /**
47952
+ * Google ads SocialAccount id.
47953
+ */
47954
+ accountId: string;
47955
+ /**
47956
+ * Google Ads customer id, digits only.
47957
+ */
47958
+ adAccountId: string;
47959
+ /**
47960
+ * Numeric review id from POST /v1/ads/accounts/user-invitations or GET /v1/ads/accounts/user-invitations/pending-approvals.
47961
+ */
47962
+ multiPartyAuthReviewId: string;
47963
+ };
47964
+ };
47965
+
47966
+ export type WithdrawAdAccountUserInvitationApprovalResponse = ({
47967
+ customerId?: string;
47968
+ multiPartyAuthReviewId?: string;
47969
+ status?: 'REVOKED';
47970
+ });
47971
+
47972
+ export type WithdrawAdAccountUserInvitationApprovalError = (ErrorResponse | unknown);
47973
+
47897
47974
  export type ListAdAccountUsersData = {
47898
47975
  query: {
47899
47976
  /**