@getlatedev/node 0.2.1247 → 0.2.1249

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.
@@ -564,7 +564,7 @@ export type AdActivationStatus = 'ACTIVE' | 'PAUSED';
564
564
 
565
565
  export type AdAnalyticsResponse = {
566
566
  /**
567
- * Present and true while historical data is being backfilled.
567
+ * Meta only. Present and true while historical data is being backfilled.
568
568
  */
569
569
  backfillPending?: boolean;
570
570
  ad?: {
@@ -1424,7 +1424,7 @@ export type AdsListResponse = {
1424
1424
  ads?: Array<Ad>;
1425
1425
  pagination?: Pagination;
1426
1426
  /**
1427
- * Present and true while historical data is being backfilled.
1427
+ * Meta only. Present and true while historical data is being backfilled.
1428
1428
  */
1429
1429
  backfillPending?: boolean;
1430
1430
  };
@@ -1433,7 +1433,7 @@ export type AdStatus = 'active' | 'paused' | 'pending_review' | 'rejected' | 'co
1433
1433
 
1434
1434
  export type AdsTimelineResponse = {
1435
1435
  /**
1436
- * Present and true while historical data is being backfilled.
1436
+ * Meta only. Present and true while historical data is being backfilled.
1437
1437
  */
1438
1438
  backfillPending?: boolean;
1439
1439
  rows?: Array<{
@@ -1734,7 +1734,7 @@ export type AdTreeResponse = {
1734
1734
  campaigns?: Array<AdTreeCampaign>;
1735
1735
  pagination?: Pagination;
1736
1736
  /**
1737
- * Present and true while historical data is being backfilled.
1737
+ * Meta only. Present and true while historical data is being backfilled.
1738
1738
  */
1739
1739
  backfillPending?: boolean;
1740
1740
  };
@@ -3206,7 +3206,7 @@ export type endReason = 'hangup' | 'no_answer' | 'rejected' | 'error';
3206
3206
 
3207
3207
  export type CampaignAnalyticsResponse = {
3208
3208
  /**
3209
- * Present and true while historical data is being backfilled.
3209
+ * Meta only. Present and true while historical data is being backfilled.
3210
3210
  */
3211
3211
  backfillPending?: boolean;
3212
3212
  campaign?: {
@@ -4343,6 +4343,18 @@ export type ConnectedApp = {
4343
4343
  tokenCount?: number;
4344
4344
  };
4345
4345
 
4346
+ export type ConnectWelcomeScreen = {
4347
+ showByDefault?: boolean;
4348
+ brandName?: (string) | null;
4349
+ logoUrl?: (string) | null;
4350
+ /**
4351
+ * Same keys as the `welcomeTheme` parameter of `GET /v1/connect/{platform}`.
4352
+ */
4353
+ theme?: {
4354
+ [key: string]: unknown;
4355
+ } | null;
4356
+ };
4357
+
4346
4358
  /**
4347
4359
  * A Google Ads conversion action, e.g. a WEBPAGE conversion created via
4348
4360
  * `createConversionAction`. Returned by `listConversionActions` and
@@ -21460,7 +21472,7 @@ export type GetConnectUrlData = {
21460
21472
  */
21461
21473
  loginMethod?: 'instagram_login' | 'facebook_login';
21462
21474
  /**
21463
- * Welcome screen only (`welcome=true`): https URL of your logo, shown in a square tile, so use a square image. Without it the tile shows the first letter of `brandName`, or the Zernio mark when there is no `brandName` either. Rejected with 400 `INVALID_FIELD_VALUE` without `welcome=true`.
21475
+ * Welcome screen only (`welcome=true`): https URL of your logo, shown in a square tile, so use a square image. Without it the tile shows the first letter of `brandName`, or the Zernio mark when there is no `brandName` either. Rejected with 400 `INVALID_FIELD_VALUE` when the welcome screen is not shown.
21464
21476
  */
21465
21477
  logoUrl?: string;
21466
21478
  /**
@@ -21661,11 +21673,11 @@ export type GetConnectUrlData = {
21661
21673
  */
21662
21674
  signup?: 'hosted';
21663
21675
  /**
21664
- * Any platform. When `true`, `authUrl` points to a Zernio-hosted welcome screen that shows your brand next to the platform ("<brandName> wants to connect to your <platform>") with a Continue button; Continue sends the user to the platform's own authorization screen and the rest of the flow is unchanged. `brandName`, `logoUrl`, `primaryColor` and `welcomeTheme` are optional and default to Zernio's own name, mark and look. The link is valid for 30 minutes, after which the page asks the user to start again. The brand also carries to the account and channel pickers Zernio shows after authorization, and when you pass no `redirect_url` the flow ends on a branded Zernio-hosted page saying whether the account connected, instead of the Zernio dashboard. Cannot be combined with `headless=true` or `signup=hosted` (400 `INVALID_FIELD_VALUE`). The platform's authorization screen still names the Zernio app.
21676
+ * Any platform. When `true`, `authUrl` points to a Zernio-hosted welcome screen that shows your brand next to the platform ("<brandName> wants to connect to your <platform>") whose button fills for about a second and then sends the user on to the platform's own authorization screen, with no click; the rest of the flow is unchanged. `brandName`, `logoUrl`, `primaryColor` and `welcomeTheme` are optional and default to Zernio's own name, mark and look. The link is valid for 30 minutes, after which the page asks the user to start again. The brand also carries to the account and channel pickers Zernio shows after authorization, and when you pass no `redirect_url` the flow ends on a branded Zernio-hosted page saying whether the account connected, instead of the Zernio dashboard. Cannot be combined with `headless=true` or `signup=hosted` (400 `INVALID_FIELD_VALUE`). The platform's authorization screen still names the Zernio app. Recommended. When left out, the screen is shown if the workspace saved it as on by default (`PUT /v1/connect/welcome-screen`), except with `headless=true` or `signup=hosted`; pass `false` to skip it. Branding you leave out of the call comes from those saved settings, and a `welcomeTheme` you send is merged key by key over the saved theme.
21665
21677
  */
21666
21678
  welcome?: boolean;
21667
21679
  /**
21668
- * Welcome screen only (`welcome=true`): a URL-encoded JSON object that restyles and rewords the screen. All keys are optional. Copy: `heading` (up to 120 characters), `trustLine` and `consentLine` (up to 200 each), `buttonLabel` (up to 30); each may contain the placeholders `{brand}` and `{platform}`. Style: `primaryColor`, `pageColor`, `cardColor` and `textColor` as `#RRGGBB`, `cornerRadius` as an integer from 0 to 24 (pixels), `font` as `sans`, `serif` or `mono`. A `primaryColor` here wins over the `primaryColor` parameter. Unknown keys, invalid JSON or an invalid value are a 400 `INVALID_FIELD_VALUE`. Rejected without `welcome=true`. Example: `{"heading":"Link your {platform} to {brand}","cardColor":"#FFF7ED","cornerRadius":12}`.
21680
+ * Welcome screen only (`welcome=true`): a URL-encoded JSON object that restyles and rewords the screen. All keys are optional. Copy: `heading` (up to 120 characters), `trustLine` and `consentLine` (up to 200 each), `buttonLabel` (up to 30, the label on that button); each may contain the placeholders `{brand}` and `{platform}`. Style: `primaryColor`, `pageColor`, `cardColor` and `textColor` as `#RRGGBB`, `cornerRadius` as an integer from 0 to 24 (pixels), `font` as `sans`, `serif` or `mono`. A `primaryColor` here wins over the `primaryColor` parameter. Unknown keys, invalid JSON or an invalid value are a 400 `INVALID_FIELD_VALUE`. Rejected when the welcome screen is not shown. Example: `{"heading":"Link your {platform} to {brand}","cardColor":"#FFF7ED","cornerRadius":12}`.
21669
21681
  */
21670
21682
  welcomeTheme?: string;
21671
21683
  };
@@ -24305,6 +24317,34 @@ export type DeleteGoogleBusinessReviewReplyError = (ErrorResponse | {
24305
24317
  error?: string;
24306
24318
  });
24307
24319
 
24320
+ export type GetConnectWelcomeScreenResponse = (ConnectWelcomeScreen);
24321
+
24322
+ export type GetConnectWelcomeScreenError = (ErrorResponse);
24323
+
24324
+ export type UpdateConnectWelcomeScreenData = {
24325
+ body: {
24326
+ /**
24327
+ * Show the welcome screen on connect calls that do not pass `welcome`.
24328
+ */
24329
+ showByDefault: boolean;
24330
+ brandName?: string;
24331
+ /**
24332
+ * https URL of a square logo.
24333
+ */
24334
+ logoUrl?: string;
24335
+ /**
24336
+ * Same keys as the `welcomeTheme` parameter of `GET /v1/connect/{platform}`, as a JSON object.
24337
+ */
24338
+ theme?: {
24339
+ [key: string]: unknown;
24340
+ };
24341
+ };
24342
+ };
24343
+
24344
+ export type UpdateConnectWelcomeScreenResponse = (ConnectWelcomeScreen);
24345
+
24346
+ export type UpdateConnectWelcomeScreenError = (ErrorResponse | unknown);
24347
+
24308
24348
  export type GetPendingOAuthDataData = {
24309
24349
  query: {
24310
24350
  /**