@getlatedev/node 0.2.1249 → 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.
- package/README.md +2 -0
- package/dist/index.d.mts +79 -3
- package/dist/index.d.ts +79 -3
- package/dist/index.js +19 -1
- package/dist/index.mjs +19 -1
- package/package.json +1 -1
- package/src/client.ts +8 -0
- package/src/generated/sdk.gen.ts +29 -3
- package/src/generated/types.gen.ts +79 -2
|
@@ -918,7 +918,11 @@ export type AdFunnelCounts = {
|
|
|
918
918
|
*/
|
|
919
919
|
paymentInfoAdds?: number;
|
|
920
920
|
/**
|
|
921
|
-
* Purchases
|
|
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
|
/**
|
|
@@ -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
|
|
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
|
/**
|