@getlatedev/node 0.2.1263 → 0.2.1264
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 +129 -1
- package/dist/index.d.ts +129 -1
- 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 +31 -1
- package/src/generated/types.gen.ts +128 -0
|
@@ -48169,6 +48169,134 @@ export type UpdateAdAccountManagerLinkResponse = (GoogleAdsManagerLink);
|
|
|
48169
48169
|
|
|
48170
48170
|
export type UpdateAdAccountManagerLinkError = (ErrorResponse | unknown);
|
|
48171
48171
|
|
|
48172
|
+
export type GetAdAccountBillingData = {
|
|
48173
|
+
query: {
|
|
48174
|
+
/**
|
|
48175
|
+
* Google ads SocialAccount id.
|
|
48176
|
+
*/
|
|
48177
|
+
accountId: string;
|
|
48178
|
+
/**
|
|
48179
|
+
* Google Ads customer id, digits only. Defaults to the connection's selected customer.
|
|
48180
|
+
*/
|
|
48181
|
+
adAccountId?: string;
|
|
48182
|
+
};
|
|
48183
|
+
};
|
|
48184
|
+
|
|
48185
|
+
export type GetAdAccountBillingResponse = ({
|
|
48186
|
+
customerId?: string;
|
|
48187
|
+
paymentsAccounts?: Array<{
|
|
48188
|
+
/**
|
|
48189
|
+
* Format 1234-5678-9012-3456. Pass it to POST /v1/ads/accounts/billing.
|
|
48190
|
+
*/
|
|
48191
|
+
paymentsAccountId?: string;
|
|
48192
|
+
name?: (string) | null;
|
|
48193
|
+
currency?: (string) | null;
|
|
48194
|
+
paymentsProfileId?: (string) | null;
|
|
48195
|
+
/**
|
|
48196
|
+
* Manager whose monthly invoice pays this account.
|
|
48197
|
+
*/
|
|
48198
|
+
payingManagerCustomerId?: (string) | null;
|
|
48199
|
+
}>;
|
|
48200
|
+
billingSetups?: Array<{
|
|
48201
|
+
billingSetupId?: string;
|
|
48202
|
+
/**
|
|
48203
|
+
* APPROVED_HELD means approved but waiting for its first account budget to be approved.
|
|
48204
|
+
*/
|
|
48205
|
+
status?: 'PENDING' | 'APPROVED_HELD' | 'APPROVED' | 'CANCELLED' | 'UNKNOWN';
|
|
48206
|
+
paymentsAccountId?: (string) | null;
|
|
48207
|
+
/**
|
|
48208
|
+
* In the account time zone, as Google returns it.
|
|
48209
|
+
*/
|
|
48210
|
+
startDateTime?: (string) | null;
|
|
48211
|
+
endDateTime?: (string) | null;
|
|
48212
|
+
}>;
|
|
48213
|
+
accountBudgets?: Array<{
|
|
48214
|
+
accountBudgetId?: string;
|
|
48215
|
+
status?: 'PENDING' | 'APPROVED' | 'CANCELLED' | 'UNKNOWN';
|
|
48216
|
+
billingSetupId?: (string) | null;
|
|
48217
|
+
approvedSpendingLimitMicros?: (string) | null;
|
|
48218
|
+
/**
|
|
48219
|
+
* INFINITE for an unlimited budget.
|
|
48220
|
+
*/
|
|
48221
|
+
approvedSpendingLimitType?: (string) | null;
|
|
48222
|
+
/**
|
|
48223
|
+
* Account budget proposal still waiting for Google's review.
|
|
48224
|
+
*/
|
|
48225
|
+
pendingProposalId?: (string) | null;
|
|
48226
|
+
}>;
|
|
48227
|
+
/**
|
|
48228
|
+
* New account budgets proposed but not yet approved by Google. A setup with one is not reused by the POST.
|
|
48229
|
+
*/
|
|
48230
|
+
pendingBudgetProposals?: Array<{
|
|
48231
|
+
accountBudgetProposalId?: string;
|
|
48232
|
+
billingSetupId?: (string) | null;
|
|
48233
|
+
}>;
|
|
48234
|
+
/**
|
|
48235
|
+
* When this data was fetched from Google. Null when the cache is unavailable.
|
|
48236
|
+
*/
|
|
48237
|
+
cachedAt?: (string) | null;
|
|
48238
|
+
/**
|
|
48239
|
+
* True when Google's quota was exhausted and this is the last successful fetch.
|
|
48240
|
+
*/
|
|
48241
|
+
stale?: boolean;
|
|
48242
|
+
});
|
|
48243
|
+
|
|
48244
|
+
export type GetAdAccountBillingError = (ErrorResponse | unknown);
|
|
48245
|
+
|
|
48246
|
+
export type SetUpAdAccountBillingData = {
|
|
48247
|
+
body: {
|
|
48248
|
+
/**
|
|
48249
|
+
* Google ads SocialAccount id.
|
|
48250
|
+
*/
|
|
48251
|
+
accountId: string;
|
|
48252
|
+
/**
|
|
48253
|
+
* Google Ads customer id to bill, digits only.
|
|
48254
|
+
*/
|
|
48255
|
+
adAccountId: string;
|
|
48256
|
+
/**
|
|
48257
|
+
* Monthly invoicing payments account from GET /v1/ads/accounts/billing.
|
|
48258
|
+
*/
|
|
48259
|
+
paymentsAccountId: string;
|
|
48260
|
+
/**
|
|
48261
|
+
* Account budget cap in the account currency. Omit for an unlimited budget.
|
|
48262
|
+
*/
|
|
48263
|
+
spendingLimit?: number;
|
|
48264
|
+
budgetName?: string;
|
|
48265
|
+
/**
|
|
48266
|
+
* Printed on the invoice. No effect on delivery.
|
|
48267
|
+
*/
|
|
48268
|
+
purchaseOrderNumber?: string;
|
|
48269
|
+
validateOnly?: boolean;
|
|
48270
|
+
};
|
|
48271
|
+
};
|
|
48272
|
+
|
|
48273
|
+
export type SetUpAdAccountBillingResponse = ({
|
|
48274
|
+
customerId?: string;
|
|
48275
|
+
paymentsAccountId?: string;
|
|
48276
|
+
paymentsAccountName?: (string) | null;
|
|
48277
|
+
billingSetupId?: (string) | null;
|
|
48278
|
+
reusedBillingSetup?: boolean;
|
|
48279
|
+
/**
|
|
48280
|
+
* Always null for validateOnly.
|
|
48281
|
+
*/
|
|
48282
|
+
accountBudgetProposalId?: (string) | null;
|
|
48283
|
+
validateOnly?: boolean;
|
|
48284
|
+
} | {
|
|
48285
|
+
customerId?: string;
|
|
48286
|
+
paymentsAccountId?: string;
|
|
48287
|
+
paymentsAccountName?: (string) | null;
|
|
48288
|
+
billingSetupId?: string;
|
|
48289
|
+
/**
|
|
48290
|
+
* True when an existing setup on the same payments account without a budget was completed.
|
|
48291
|
+
*/
|
|
48292
|
+
reusedBillingSetup?: boolean;
|
|
48293
|
+
accountBudgetProposalId?: (string) | null;
|
|
48294
|
+
validateOnly?: boolean;
|
|
48295
|
+
nextSteps?: string;
|
|
48296
|
+
});
|
|
48297
|
+
|
|
48298
|
+
export type SetUpAdAccountBillingError = (ErrorResponse | unknown);
|
|
48299
|
+
|
|
48172
48300
|
export type ListAdAccountUserInvitationsData = {
|
|
48173
48301
|
query: {
|
|
48174
48302
|
/**
|