@getlatedev/node 0.2.940 → 0.2.941
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 +3 -0
- package/dist/index.d.mts +164 -15
- package/dist/index.d.ts +164 -15
- package/dist/index.js +28 -1
- package/dist/index.mjs +28 -1
- package/package.json +1 -1
- package/src/client.ts +12 -0
- package/src/generated/sdk.gen.ts +34 -1
- package/src/generated/types.gen.ts +167 -14
|
@@ -5190,6 +5190,62 @@ export type GooglePmaxAssetGroupUpdate = {
|
|
|
5190
5190
|
youtubeVideoIds?: Array<(string)>;
|
|
5191
5191
|
};
|
|
5192
5192
|
|
|
5193
|
+
export type GoogleRecommendation = {
|
|
5194
|
+
/**
|
|
5195
|
+
* customers/{customerId}/recommendations/{id}. Pass it to apply or dismiss.
|
|
5196
|
+
*/
|
|
5197
|
+
resourceName: string;
|
|
5198
|
+
id: string;
|
|
5199
|
+
/**
|
|
5200
|
+
* Google RecommendationType, such as CAMPAIGN_BUDGET, KEYWORD or SET_TARGET_CPA.
|
|
5201
|
+
*/
|
|
5202
|
+
type: string;
|
|
5203
|
+
dismissed: boolean;
|
|
5204
|
+
campaignId: (string) | null;
|
|
5205
|
+
/**
|
|
5206
|
+
* Every campaign the recommendation targets (several for account-level types).
|
|
5207
|
+
*/
|
|
5208
|
+
campaignIds: Array<(string)>;
|
|
5209
|
+
adGroupId: (string) | null;
|
|
5210
|
+
campaignBudgetId: (string) | null;
|
|
5211
|
+
/**
|
|
5212
|
+
* Google's estimate over its own window. Null when Google gives none for the type.
|
|
5213
|
+
*/
|
|
5214
|
+
impact: {
|
|
5215
|
+
base?: GoogleRecommendationMetrics;
|
|
5216
|
+
potential?: GoogleRecommendationMetrics;
|
|
5217
|
+
} | null;
|
|
5218
|
+
/**
|
|
5219
|
+
* The type-specific recommendation payload exactly as Google returns it (camelCase, amounts in micros), for example recommendedTargetCpaMicros or budgetOptions.
|
|
5220
|
+
*/
|
|
5221
|
+
details: {
|
|
5222
|
+
[key: string]: unknown;
|
|
5223
|
+
} | null;
|
|
5224
|
+
};
|
|
5225
|
+
|
|
5226
|
+
export type GoogleRecommendationMetrics = {
|
|
5227
|
+
impressions?: number;
|
|
5228
|
+
clicks?: number;
|
|
5229
|
+
/**
|
|
5230
|
+
* Account currency units.
|
|
5231
|
+
*/
|
|
5232
|
+
cost?: number;
|
|
5233
|
+
conversions?: number;
|
|
5234
|
+
conversionsValue?: number;
|
|
5235
|
+
videoViews?: number;
|
|
5236
|
+
};
|
|
5237
|
+
|
|
5238
|
+
export type GoogleRecommendationResult = {
|
|
5239
|
+
resourceName: string;
|
|
5240
|
+
status: 'applied' | 'dismissed' | 'failed';
|
|
5241
|
+
/**
|
|
5242
|
+
* Google's message when status is failed.
|
|
5243
|
+
*/
|
|
5244
|
+
error?: string;
|
|
5245
|
+
};
|
|
5246
|
+
|
|
5247
|
+
export type status12 = 'applied' | 'dismissed' | 'failed';
|
|
5248
|
+
|
|
5193
5249
|
export type GoogleRsaDescription = {
|
|
5194
5250
|
text: string;
|
|
5195
5251
|
/**
|
|
@@ -5320,7 +5376,7 @@ export type kind = 'phone' | 'email';
|
|
|
5320
5376
|
|
|
5321
5377
|
export type region = 'US' | 'GB';
|
|
5322
5378
|
|
|
5323
|
-
export type
|
|
5379
|
+
export type status13 = 'ordering' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
|
|
5324
5380
|
|
|
5325
5381
|
/**
|
|
5326
5382
|
* Attachment snapshot inside an edit-history entry.
|
|
@@ -5392,7 +5448,7 @@ export type InboxWebhookConversation = {
|
|
|
5392
5448
|
contactId?: string;
|
|
5393
5449
|
};
|
|
5394
5450
|
|
|
5395
|
-
export type
|
|
5451
|
+
export type status14 = 'active' | 'archived';
|
|
5396
5452
|
|
|
5397
5453
|
/**
|
|
5398
5454
|
* The conversation object included in conversation lifecycle webhook payloads (conversation.started, conversation.control_changed).
|
|
@@ -6979,7 +7035,7 @@ export type OwnedPhoneNumber = {
|
|
|
6979
7035
|
}>;
|
|
6980
7036
|
};
|
|
6981
7037
|
|
|
6982
|
-
export type
|
|
7038
|
+
export type status15 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
6983
7039
|
|
|
6984
7040
|
export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
|
|
6985
7041
|
|
|
@@ -7104,7 +7160,7 @@ export type PlatformAnalytics = {
|
|
|
7104
7160
|
errorMessage?: (string) | null;
|
|
7105
7161
|
};
|
|
7106
7162
|
|
|
7107
|
-
export type
|
|
7163
|
+
export type status16 = 'published' | 'failed';
|
|
7108
7164
|
|
|
7109
7165
|
/**
|
|
7110
7166
|
* Sync state of analytics for this platform
|
|
@@ -7506,7 +7562,7 @@ export type Product = {
|
|
|
7506
7562
|
|
|
7507
7563
|
export type platform8 = 'shopify';
|
|
7508
7564
|
|
|
7509
|
-
export type
|
|
7565
|
+
export type status17 = 'active' | 'draft' | 'archived';
|
|
7510
7566
|
|
|
7511
7567
|
export type ProductImage = {
|
|
7512
7568
|
url?: string;
|
|
@@ -8782,7 +8838,7 @@ export type UploadTokenResponse = {
|
|
|
8782
8838
|
status?: 'pending' | 'completed' | 'expired';
|
|
8783
8839
|
};
|
|
8784
8840
|
|
|
8785
|
-
export type
|
|
8841
|
+
export type status18 = 'pending' | 'completed' | 'expired';
|
|
8786
8842
|
|
|
8787
8843
|
export type UploadTokenStatusResponse = {
|
|
8788
8844
|
token?: string;
|
|
@@ -9281,7 +9337,7 @@ export type Verification = {
|
|
|
9281
9337
|
resend?: boolean;
|
|
9282
9338
|
};
|
|
9283
9339
|
|
|
9284
|
-
export type
|
|
9340
|
+
export type status19 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
9285
9341
|
|
|
9286
9342
|
export type channel4 = 'sms';
|
|
9287
9343
|
|
|
@@ -9408,7 +9464,7 @@ export type WebhookLog = {
|
|
|
9408
9464
|
/**
|
|
9409
9465
|
* Delivery outcome
|
|
9410
9466
|
*/
|
|
9411
|
-
export type
|
|
9467
|
+
export type status20 = 'success' | 'failed';
|
|
9412
9468
|
|
|
9413
9469
|
/**
|
|
9414
9470
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -9520,7 +9576,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
9520
9576
|
/**
|
|
9521
9577
|
* Overall outcome of the initial sync.
|
|
9522
9578
|
*/
|
|
9523
|
-
export type
|
|
9579
|
+
export type status21 = 'success' | 'failure';
|
|
9524
9580
|
|
|
9525
9581
|
/**
|
|
9526
9582
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -11473,7 +11529,7 @@ export type event22 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
11473
11529
|
/**
|
|
11474
11530
|
* Terminal status this event fires on. Matches the event suffix.
|
|
11475
11531
|
*/
|
|
11476
|
-
export type
|
|
11532
|
+
export type status22 = 'published' | 'failed' | 'deleted';
|
|
11477
11533
|
|
|
11478
11534
|
/**
|
|
11479
11535
|
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
|
|
@@ -11739,7 +11795,7 @@ export type platform15 = 'whatsapp';
|
|
|
11739
11795
|
/**
|
|
11740
11796
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
11741
11797
|
*/
|
|
11742
|
-
export type
|
|
11798
|
+
export type status23 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
11743
11799
|
|
|
11744
11800
|
/**
|
|
11745
11801
|
* Webhook payload for the `whatsapp.template.category_updated` event.
|
|
@@ -11888,7 +11944,7 @@ export type event30 = 'whatsapp.template.status_updated';
|
|
|
11888
11944
|
* request before the template is actually removed.
|
|
11889
11945
|
*
|
|
11890
11946
|
*/
|
|
11891
|
-
export type
|
|
11947
|
+
export type status24 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
11892
11948
|
|
|
11893
11949
|
export type WhatsAppBodyComponent = {
|
|
11894
11950
|
type: 'body';
|
|
@@ -12042,7 +12098,7 @@ export type WhatsAppSandboxSession = {
|
|
|
12042
12098
|
* list responses.
|
|
12043
12099
|
*
|
|
12044
12100
|
*/
|
|
12045
|
-
export type
|
|
12101
|
+
export type status25 = 'pending' | 'active';
|
|
12046
12102
|
|
|
12047
12103
|
export type WhatsAppTemplateButton = {
|
|
12048
12104
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
@@ -12200,7 +12256,7 @@ export type WorkflowExecutionEvent = {
|
|
|
12200
12256
|
|
|
12201
12257
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
12202
12258
|
|
|
12203
|
-
export type
|
|
12259
|
+
export type status26 = 'success' | 'failed' | 'pending';
|
|
12204
12260
|
|
|
12205
12261
|
/**
|
|
12206
12262
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -35291,6 +35347,103 @@ export type GetAdsSearchTermsError = (ErrorResponse | {
|
|
|
35291
35347
|
error?: string;
|
|
35292
35348
|
} | unknown);
|
|
35293
35349
|
|
|
35350
|
+
export type ListGoogleRecommendationsData = {
|
|
35351
|
+
query: {
|
|
35352
|
+
/**
|
|
35353
|
+
* Google ads SocialAccount id.
|
|
35354
|
+
*/
|
|
35355
|
+
accountId: string;
|
|
35356
|
+
/**
|
|
35357
|
+
* Google customer id, digits only. Defaults to the connection's only customer.
|
|
35358
|
+
*/
|
|
35359
|
+
adAccountId?: string;
|
|
35360
|
+
/**
|
|
35361
|
+
* Only recommendations targeting this campaign.
|
|
35362
|
+
*/
|
|
35363
|
+
campaignId?: string;
|
|
35364
|
+
/**
|
|
35365
|
+
* Alias of adAccountId, kept for consistency with other Google endpoints.
|
|
35366
|
+
* @deprecated
|
|
35367
|
+
*/
|
|
35368
|
+
customerId?: string;
|
|
35369
|
+
/**
|
|
35370
|
+
* Comma-separated Google RecommendationType values, for example CAMPAIGN_BUDGET,KEYWORD,SET_TARGET_CPA.
|
|
35371
|
+
*/
|
|
35372
|
+
types?: string;
|
|
35373
|
+
};
|
|
35374
|
+
};
|
|
35375
|
+
|
|
35376
|
+
export type ListGoogleRecommendationsResponse = ({
|
|
35377
|
+
adAccountId: string;
|
|
35378
|
+
recommendations: Array<GoogleRecommendation>;
|
|
35379
|
+
cachedAt: (string) | null;
|
|
35380
|
+
stale: boolean;
|
|
35381
|
+
});
|
|
35382
|
+
|
|
35383
|
+
export type ListGoogleRecommendationsError = (ErrorResponse | {
|
|
35384
|
+
error?: string;
|
|
35385
|
+
} | unknown);
|
|
35386
|
+
|
|
35387
|
+
export type ApplyGoogleRecommendationsData = {
|
|
35388
|
+
body: {
|
|
35389
|
+
/**
|
|
35390
|
+
* Google ads SocialAccount id.
|
|
35391
|
+
*/
|
|
35392
|
+
accountId: string;
|
|
35393
|
+
/**
|
|
35394
|
+
* Google customer id, digits only. Required when the connection has several customers.
|
|
35395
|
+
*/
|
|
35396
|
+
adAccountId?: string;
|
|
35397
|
+
recommendations: Array<{
|
|
35398
|
+
/**
|
|
35399
|
+
* Recommendation resource name from the list, or its id.
|
|
35400
|
+
*/
|
|
35401
|
+
resourceName: string;
|
|
35402
|
+
/**
|
|
35403
|
+
* One key, such as campaignBudget, keyword, textAd, targetCpaOptIn, targetRoasOptIn, callAsset, calloutAsset, sitelinkAsset, moveUnusedBudget, responsiveSearchAd, responsiveSearchAdAsset, responsiveSearchAdImproveAdStrength, useBroadMatchKeyword, raiseTargetCpa, lowerTargetRoas, setTargetCpa, setTargetRoas, forecastingSetTargetCpa, forecastingSetTargetRoas, leadFormAsset, raiseTargetCpaBidTooLow, raiseTargetCpaPerformanceBidTooLow, lowerTargetRoasPerformanceBidTooLow, calloutExtension, callExtension or sitelinkExtension.
|
|
35404
|
+
*/
|
|
35405
|
+
parameters?: {
|
|
35406
|
+
[key: string]: unknown;
|
|
35407
|
+
};
|
|
35408
|
+
}>;
|
|
35409
|
+
};
|
|
35410
|
+
};
|
|
35411
|
+
|
|
35412
|
+
export type ApplyGoogleRecommendationsResponse = ({
|
|
35413
|
+
adAccountId: string;
|
|
35414
|
+
results: Array<GoogleRecommendationResult>;
|
|
35415
|
+
});
|
|
35416
|
+
|
|
35417
|
+
export type ApplyGoogleRecommendationsError = (ErrorResponse | {
|
|
35418
|
+
error?: string;
|
|
35419
|
+
} | unknown);
|
|
35420
|
+
|
|
35421
|
+
export type DismissGoogleRecommendationsData = {
|
|
35422
|
+
body: {
|
|
35423
|
+
/**
|
|
35424
|
+
* Google ads SocialAccount id.
|
|
35425
|
+
*/
|
|
35426
|
+
accountId: string;
|
|
35427
|
+
/**
|
|
35428
|
+
* Google customer id, digits only. Required when the connection has several customers.
|
|
35429
|
+
*/
|
|
35430
|
+
adAccountId?: string;
|
|
35431
|
+
/**
|
|
35432
|
+
* Recommendation resource names from the list, or their ids.
|
|
35433
|
+
*/
|
|
35434
|
+
resourceNames: Array<(string)>;
|
|
35435
|
+
};
|
|
35436
|
+
};
|
|
35437
|
+
|
|
35438
|
+
export type DismissGoogleRecommendationsResponse = ({
|
|
35439
|
+
adAccountId: string;
|
|
35440
|
+
results: Array<GoogleRecommendationResult>;
|
|
35441
|
+
});
|
|
35442
|
+
|
|
35443
|
+
export type DismissGoogleRecommendationsError = (ErrorResponse | {
|
|
35444
|
+
error?: string;
|
|
35445
|
+
} | unknown);
|
|
35446
|
+
|
|
35294
35447
|
export type ListBidStrategiesData = {
|
|
35295
35448
|
query: {
|
|
35296
35449
|
/**
|