@getlatedev/node 0.2.1262 → 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 +4 -2
- package/dist/index.d.mts +141 -13
- package/dist/index.d.ts +141 -13
- 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 +50 -7
- package/src/generated/types.gen.ts +140 -12
|
@@ -11453,14 +11453,14 @@ export type platform13 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'link
|
|
|
11453
11453
|
export type tiktokAccountType = 'business' | 'personal' | 'unknown';
|
|
11454
11454
|
|
|
11455
11455
|
/**
|
|
11456
|
-
* A tracking tag's install on a connected store: a Shopify web pixel,
|
|
11456
|
+
* A tracking tag's install on a connected store: a Shopify web pixel, a Custom HTML widget on a WordPress site, or the Zernio embedded script on a Wix site. Fields marked Shopify, WordPress or Wix are present only for that platform.
|
|
11457
11457
|
*/
|
|
11458
11458
|
export type StorePixelInstall = {
|
|
11459
11459
|
storeAccountId?: string;
|
|
11460
11460
|
/**
|
|
11461
11461
|
* The store platform.
|
|
11462
11462
|
*/
|
|
11463
|
-
platform?: 'shopify' | 'wordpress';
|
|
11463
|
+
platform?: 'shopify' | 'wordpress' | 'wix';
|
|
11464
11464
|
/**
|
|
11465
11465
|
* Platform of the tag this install is about (e.g. `metaads`).
|
|
11466
11466
|
*/
|
|
@@ -11470,7 +11470,7 @@ export type StorePixelInstall = {
|
|
|
11470
11470
|
*/
|
|
11471
11471
|
siteTagId?: string;
|
|
11472
11472
|
/**
|
|
11473
|
-
* Shopify: this tag is the one the store fires for its platform. WordPress: the Zernio widget for this tag is in an active widget area with its script intact.
|
|
11473
|
+
* Shopify and Wix: this tag is the one the store fires for its platform. WordPress: the Zernio widget for this tag is in an active widget area with its script intact.
|
|
11474
11474
|
*/
|
|
11475
11475
|
installed?: boolean;
|
|
11476
11476
|
/**
|
|
@@ -11478,11 +11478,11 @@ export type StorePixelInstall = {
|
|
|
11478
11478
|
*/
|
|
11479
11479
|
shopDomain?: string;
|
|
11480
11480
|
/**
|
|
11481
|
-
* Shopify only: the tag of the same platform the store fires now (may be a different tag), or null.
|
|
11481
|
+
* Shopify and Wix only: the tag of the same platform the store fires now (may be a different tag), or null.
|
|
11482
11482
|
*/
|
|
11483
11483
|
installedTagId?: (string) | null;
|
|
11484
11484
|
/**
|
|
11485
|
-
* GET only on WordPress, always on Shopify: every Zernio tag on the store, all platforms.
|
|
11485
|
+
* GET only on WordPress, always on Shopify and Wix: every Zernio tag on the store, all platforms.
|
|
11486
11486
|
*/
|
|
11487
11487
|
tags?: Array<{
|
|
11488
11488
|
platform?: string;
|
|
@@ -11505,9 +11505,9 @@ export type StorePixelInstall = {
|
|
|
11505
11505
|
*/
|
|
11506
11506
|
webPixelId?: (string) | null;
|
|
11507
11507
|
/**
|
|
11508
|
-
* WordPress only.
|
|
11508
|
+
* WordPress and Wix only. Null on a Wix site that was never published.
|
|
11509
11509
|
*/
|
|
11510
|
-
siteUrl?: string;
|
|
11510
|
+
siteUrl?: (string) | null;
|
|
11511
11511
|
/**
|
|
11512
11512
|
* WordPress only.
|
|
11513
11513
|
*/
|
|
@@ -11525,7 +11525,7 @@ export type StorePixelInstall = {
|
|
|
11525
11525
|
/**
|
|
11526
11526
|
* The store platform.
|
|
11527
11527
|
*/
|
|
11528
|
-
export type platform14 = 'shopify' | 'wordpress';
|
|
11528
|
+
export type platform14 = 'shopify' | 'wordpress' | 'wix';
|
|
11529
11529
|
|
|
11530
11530
|
/**
|
|
11531
11531
|
* WordPress only.
|
|
@@ -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
|
/**
|
|
@@ -55431,7 +55559,7 @@ export type RemoveTrackingTagSharedAccountError = (unknown | ErrorResponse);
|
|
|
55431
55559
|
export type InstallTrackingTagOnStoreData = {
|
|
55432
55560
|
body: {
|
|
55433
55561
|
/**
|
|
55434
|
-
* The connected Shopify (`shopify`)
|
|
55562
|
+
* The connected Shopify (`shopify`), WordPress (`wordpress`) or Wix (`wix`) account id.
|
|
55435
55563
|
*/
|
|
55436
55564
|
storeAccountId: string;
|
|
55437
55565
|
/**
|
|
@@ -55460,7 +55588,7 @@ export type InstallTrackingTagOnStoreResponse = ({
|
|
|
55460
55588
|
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads' | 'whopads';
|
|
55461
55589
|
install?: (StorePixelInstall & {
|
|
55462
55590
|
/**
|
|
55463
|
-
* Shopify only: the pixel this install replaced on the store, if any.
|
|
55591
|
+
* Shopify and Wix only: the pixel this install replaced on the store, if any.
|
|
55464
55592
|
*/
|
|
55465
55593
|
replacedTagId?: (string) | null;
|
|
55466
55594
|
/**
|
|
@@ -55503,7 +55631,7 @@ export type GetTrackingTagStoreInstallData = {
|
|
|
55503
55631
|
*/
|
|
55504
55632
|
adAccountId?: string;
|
|
55505
55633
|
/**
|
|
55506
|
-
* The connected Shopify or
|
|
55634
|
+
* The connected Shopify, WordPress or Wix account id.
|
|
55507
55635
|
*/
|
|
55508
55636
|
storeAccountId: string;
|
|
55509
55637
|
};
|
|
@@ -55551,7 +55679,7 @@ export type RemoveTrackingTagFromStoreData = {
|
|
|
55551
55679
|
*/
|
|
55552
55680
|
adAccountId?: string;
|
|
55553
55681
|
/**
|
|
55554
|
-
* The connected Shopify or
|
|
55682
|
+
* The connected Shopify, WordPress or Wix account id.
|
|
55555
55683
|
*/
|
|
55556
55684
|
storeAccountId: string;
|
|
55557
55685
|
};
|