@getlatedev/node 0.2.1118 → 0.2.1120
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 +87 -4
- package/dist/index.d.ts +87 -4
- 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 +44 -3
- package/src/generated/types.gen.ts +86 -3
|
@@ -6995,7 +6995,10 @@ export type ImessageSenderLifecycle = {
|
|
|
6995
6995
|
* imessage:// deep link that opens Messages on this sender with a prefilled text. Share it so contacts message you first (Apple only lets a sender reach contacts who wrote to it first); null until the handle is assigned.
|
|
6996
6996
|
*/
|
|
6997
6997
|
optInLink?: (string) | null;
|
|
6998
|
-
|
|
6998
|
+
/**
|
|
6999
|
+
* `awaiting_payment`: the first-month charge is still being confirmed by the card; the number is ordered automatically once it is paid (usually under 5 minutes), or the order fails with `failureReason` when the card declines or nothing confirms within 30 minutes.
|
|
7000
|
+
*/
|
|
7001
|
+
status?: 'ordering' | 'awaiting_payment' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
|
|
6999
7002
|
/**
|
|
7000
7003
|
* Monthly price billed while the sender is active
|
|
7001
7004
|
*/
|
|
@@ -7015,7 +7018,10 @@ export type kind = 'phone' | 'email';
|
|
|
7015
7018
|
|
|
7016
7019
|
export type region = 'US' | 'GB';
|
|
7017
7020
|
|
|
7018
|
-
|
|
7021
|
+
/**
|
|
7022
|
+
* `awaiting_payment`: the first-month charge is still being confirmed by the card; the number is ordered automatically once it is paid (usually under 5 minutes), or the order fails with `failureReason` when the card declines or nothing confirms within 30 minutes.
|
|
7023
|
+
*/
|
|
7024
|
+
export type status21 = 'ordering' | 'awaiting_payment' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
|
|
7019
7025
|
|
|
7020
7026
|
/**
|
|
7021
7027
|
* Attachment snapshot inside an edit-history entry.
|
|
@@ -39941,6 +39947,75 @@ export type UpdateBidStrategyResponse = ({
|
|
|
39941
39947
|
|
|
39942
39948
|
export type UpdateBidStrategyError = (ErrorResponse | unknown);
|
|
39943
39949
|
|
|
39950
|
+
export type ListSharedBudgetsData = {
|
|
39951
|
+
query: {
|
|
39952
|
+
/**
|
|
39953
|
+
* Google ads SocialAccount id.
|
|
39954
|
+
*/
|
|
39955
|
+
accountId: string;
|
|
39956
|
+
/**
|
|
39957
|
+
* Platform ad account ID (Google customer ID, digits only). Defaults to the account's connected customer.
|
|
39958
|
+
*/
|
|
39959
|
+
adAccountId?: string;
|
|
39960
|
+
};
|
|
39961
|
+
};
|
|
39962
|
+
|
|
39963
|
+
export type ListSharedBudgetsResponse = ({
|
|
39964
|
+
customerId?: string;
|
|
39965
|
+
budgets?: Array<{
|
|
39966
|
+
/**
|
|
39967
|
+
* Numeric budget id; pass as sharedBudgetId.
|
|
39968
|
+
*/
|
|
39969
|
+
id?: string;
|
|
39970
|
+
name?: string;
|
|
39971
|
+
/**
|
|
39972
|
+
* In the account's currency units.
|
|
39973
|
+
*/
|
|
39974
|
+
amount?: (number) | null;
|
|
39975
|
+
type?: ('daily' | 'lifetime') | null;
|
|
39976
|
+
deliveryMethod?: (string) | null;
|
|
39977
|
+
status?: (string) | null;
|
|
39978
|
+
/**
|
|
39979
|
+
* campaign_budget.reference_count
|
|
39980
|
+
*/
|
|
39981
|
+
campaignCount?: number;
|
|
39982
|
+
}>;
|
|
39983
|
+
});
|
|
39984
|
+
|
|
39985
|
+
export type ListSharedBudgetsError = (ErrorResponse | unknown);
|
|
39986
|
+
|
|
39987
|
+
export type CreateSharedBudgetData = {
|
|
39988
|
+
body: {
|
|
39989
|
+
/**
|
|
39990
|
+
* Google ads SocialAccount id.
|
|
39991
|
+
*/
|
|
39992
|
+
accountId: string;
|
|
39993
|
+
/**
|
|
39994
|
+
* Platform ad account ID (Google customer ID, digits only). Defaults to the account's connected customer.
|
|
39995
|
+
*/
|
|
39996
|
+
adAccountId?: string;
|
|
39997
|
+
name: string;
|
|
39998
|
+
/**
|
|
39999
|
+
* Daily amount in the account's currency units.
|
|
40000
|
+
*/
|
|
40001
|
+
amount: number;
|
|
40002
|
+
/**
|
|
40003
|
+
* Only daily is accepted (lifetime returns 422).
|
|
40004
|
+
*/
|
|
40005
|
+
type?: 'daily' | 'lifetime';
|
|
40006
|
+
};
|
|
40007
|
+
};
|
|
40008
|
+
|
|
40009
|
+
export type CreateSharedBudgetResponse = ({
|
|
40010
|
+
budget?: {
|
|
40011
|
+
customerId?: string;
|
|
40012
|
+
id?: string;
|
|
40013
|
+
resourceName?: string;
|
|
40014
|
+
};
|
|
40015
|
+
});
|
|
40016
|
+
|
|
40017
|
+
export type CreateSharedBudgetError = (ErrorResponse | unknown);
|
|
40018
|
+
|
|
39944
40019
|
export type ListLocalServicesLeadsData = {
|
|
39945
40020
|
query: {
|
|
39946
40021
|
/**
|
|
@@ -40650,7 +40725,7 @@ export type UpdateAdCampaignData = {
|
|
|
40650
40725
|
*/
|
|
40651
40726
|
portfolioBidStrategyId?: string;
|
|
40652
40727
|
/**
|
|
40653
|
-
* Google only. Explicitly allow changing a shared campaign budget, affecting every campaign that uses it. Does not bypass an unknown sharing state.
|
|
40728
|
+
* Google only. Explicitly allow changing a shared campaign budget, affecting every campaign that uses it. Does not bypass an unknown sharing state. Also required to move a campaign onto a shared budget with sharedBudgetId.
|
|
40654
40729
|
*/
|
|
40655
40730
|
allowSharedBudgetUpdate?: boolean;
|
|
40656
40731
|
/**
|
|
@@ -40667,6 +40742,10 @@ export type UpdateAdCampaignData = {
|
|
|
40667
40742
|
* **Google only.** campaign.final_url_suffix; an empty string clears it.
|
|
40668
40743
|
*/
|
|
40669
40744
|
finalUrlSuffix?: string;
|
|
40745
|
+
/**
|
|
40746
|
+
* **Google only.** Move the campaign onto this shared budget (id from GET /v1/ads/shared-budgets), or null to move it back onto a budget of its own sized by `budget`.
|
|
40747
|
+
*/
|
|
40748
|
+
sharedBudgetId?: (string) | null;
|
|
40670
40749
|
/**
|
|
40671
40750
|
* Meta CBO, Google daily, or OpenAI Ads daily or lifetime campaign budget, in whole currency units.
|
|
40672
40751
|
*/
|
|
@@ -40718,6 +40797,10 @@ export type UpdateAdCampaignResponse = ({
|
|
|
40718
40797
|
networkSettings?: GoogleNetworkSettings;
|
|
40719
40798
|
trackingUrlTemplate?: string;
|
|
40720
40799
|
finalUrlSuffix?: string;
|
|
40800
|
+
/**
|
|
40801
|
+
* Google only. Echoed back when the campaign moved budgets; `budget` is then the budget it now uses.
|
|
40802
|
+
*/
|
|
40803
|
+
sharedBudgetId?: (string) | null;
|
|
40721
40804
|
platformSpecificData?: {
|
|
40722
40805
|
[key: string]: unknown;
|
|
40723
40806
|
};
|