@getlatedev/node 0.2.1412 → 0.2.1413

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.
@@ -4455,6 +4455,15 @@ export type CampaignReport = {
4455
4455
  }>;
4456
4456
  };
4457
4457
 
4458
+ export type CampaignResultMetric = {
4459
+ key: string;
4460
+ label: string;
4461
+ kind: 'count' | 'money';
4462
+ currency: (string) | null;
4463
+ };
4464
+
4465
+ export type kind4 = 'count' | 'money';
4466
+
4458
4467
  export type CampaignSettlement = {
4459
4468
  /**
4460
4469
  * The ledger settlement entry.
@@ -6594,7 +6603,7 @@ export type CreatorPortalInvite = {
6594
6603
  campaign: CreatorPortalCampaign;
6595
6604
  };
6596
6605
 
6597
- export type kind4 = 'invite';
6606
+ export type kind5 = 'invite';
6598
6607
 
6599
6608
  export type CreatorPortalParticipant = {
6600
6609
  kind: 'participant';
@@ -6640,7 +6649,7 @@ export type CreatorPortalParticipant = {
6640
6649
  payouts: CreatorPortalPayoutSetup;
6641
6650
  };
6642
6651
 
6643
- export type kind5 = 'participant';
6652
+ export type kind6 = 'participant';
6644
6653
 
6645
6654
  export type CreatorPortalPayoutEntry = {
6646
6655
  id: string;
@@ -8665,7 +8674,7 @@ export type FileItem = {
8665
8674
  trashed: boolean;
8666
8675
  };
8667
8676
 
8668
- export type kind6 = 'file' | 'folder';
8677
+ export type kind7 = 'file' | 'folder';
8669
8678
 
8670
8679
  export type FilePickerSession = {
8671
8680
  /**
@@ -10015,7 +10024,7 @@ export type ImessageSenderLifecycle = {
10015
10024
  createdAt?: string;
10016
10025
  };
10017
10026
 
10018
- export type kind7 = 'phone' | 'email';
10027
+ export type kind8 = 'phone' | 'email';
10019
10028
 
10020
10029
  export type region = 'US' | 'GB';
10021
10030
 
@@ -10969,7 +10978,7 @@ export type InstagramVideoFallback = {
10969
10978
  };
10970
10979
  };
10971
10980
 
10972
- export type kind8 = 'instagram_video_reuploaded' | 'instagram_video_rehosted_copy';
10981
+ export type kind9 = 'instagram_video_reuploaded' | 'instagram_video_rehosted_copy';
10973
10982
 
10974
10983
  /**
10975
10984
  * A Google Search keyword: a bare string (BROAD match), or an object naming the match type.
@@ -15477,7 +15486,7 @@ export type platform15 = 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | '
15477
15486
  /**
15478
15487
  * Platform-native flavor of the tag (Meta: `pixel`).
15479
15488
  */
15480
- export type kind9 = 'pixel' | 'tag' | 'insight_tag';
15489
+ export type kind10 = 'pixel' | 'tag' | 'insight_tag';
15481
15490
 
15482
15491
  /**
15483
15492
  * One health check the platform runs on a tracking tag.
@@ -50652,6 +50661,149 @@ export type ListAdRuleRunsError = (ErrorResponse | {
50652
50661
  error?: string;
50653
50662
  });
50654
50663
 
50664
+ export type UploadCampaignResultsData = {
50665
+ body: {
50666
+ rows: Array<{
50667
+ /**
50668
+ * The day, at most 400 days ago.
50669
+ */
50670
+ date: string;
50671
+ /**
50672
+ * The platform campaign id.
50673
+ */
50674
+ campaignId?: string;
50675
+ /**
50676
+ * The `utm_campaign` value on the campaign's ads.
50677
+ */
50678
+ utmCampaign?: string;
50679
+ /**
50680
+ * The campaign's name, matched case-insensitively.
50681
+ */
50682
+ campaignName?: string;
50683
+ /**
50684
+ * Platform ad account id. Narrows matching to one ad account.
50685
+ */
50686
+ adAccountId?: string;
50687
+ /**
50688
+ * Metric key (snake_case, up to 40 characters) to a non-negative number. 1 to 20 per row.
50689
+ */
50690
+ values: {
50691
+ [key: string]: (number);
50692
+ };
50693
+ }>;
50694
+ };
50695
+ headers?: {
50696
+ /**
50697
+ * A retry with the same key and body replays the first response instead of uploading twice.
50698
+ */
50699
+ 'Idempotency-Key'?: string;
50700
+ };
50701
+ };
50702
+
50703
+ export type UploadCampaignResultsResponse = ({
50704
+ uploadId: string;
50705
+ rows: number;
50706
+ status: 'queued';
50707
+ });
50708
+
50709
+ export type UploadCampaignResultsError = (ErrorResponse | unknown);
50710
+
50711
+ export type ListCampaignResultsData = {
50712
+ query: {
50713
+ /**
50714
+ * Comma-separated platform campaign ids, at most 500. Omit for all campaigns.
50715
+ */
50716
+ campaignIds?: string;
50717
+ /**
50718
+ * `nextCursor` from the previous page.
50719
+ */
50720
+ cursor?: string;
50721
+ fromDate: string;
50722
+ /**
50723
+ * Campaigns per page.
50724
+ */
50725
+ limit?: number;
50726
+ /**
50727
+ * Inclusive. At most 400 days after `fromDate`.
50728
+ */
50729
+ toDate: string;
50730
+ };
50731
+ };
50732
+
50733
+ export type ListCampaignResultsResponse = ({
50734
+ fromDate: string;
50735
+ toDate: string;
50736
+ campaigns: Array<{
50737
+ platform: string;
50738
+ adAccountId: string;
50739
+ campaignId: string;
50740
+ values: {
50741
+ [key: string]: (number);
50742
+ };
50743
+ }>;
50744
+ nextCursor: (string) | null;
50745
+ });
50746
+
50747
+ export type ListCampaignResultsError = (ErrorResponse);
50748
+
50749
+ export type GetCampaignResultsUploadData = {
50750
+ path: {
50751
+ uploadId: string;
50752
+ };
50753
+ };
50754
+
50755
+ export type GetCampaignResultsUploadResponse = ({
50756
+ uploadId: string;
50757
+ status: 'queued' | 'done' | 'failed';
50758
+ source: 'api' | 'csv' | 'hubspot';
50759
+ rowsReceived: number;
50760
+ rowsMatched: number;
50761
+ rowsUnmatched: number;
50762
+ unmatched: Array<{
50763
+ /**
50764
+ * The row's position in the request.
50765
+ */
50766
+ index?: number;
50767
+ /**
50768
+ * The campaign id, UTM or name the row gave.
50769
+ */
50770
+ campaign?: string;
50771
+ reason?: 'no_campaign' | 'ambiguous';
50772
+ }>;
50773
+ createdAt: string;
50774
+ completedAt: (string) | null;
50775
+ });
50776
+
50777
+ export type GetCampaignResultsUploadError = (ErrorResponse | {
50778
+ error?: string;
50779
+ });
50780
+
50781
+ export type ListCampaignResultMetricsResponse = ({
50782
+ metrics: Array<CampaignResultMetric>;
50783
+ });
50784
+
50785
+ export type ListCampaignResultMetricsError = (ErrorResponse);
50786
+
50787
+ export type SetCampaignResultMetricData = {
50788
+ body: {
50789
+ label: string;
50790
+ kind: 'count' | 'money';
50791
+ /**
50792
+ * ISO 4217, money metrics only.
50793
+ */
50794
+ currency?: (string) | null;
50795
+ };
50796
+ path: {
50797
+ key: string;
50798
+ };
50799
+ };
50800
+
50801
+ export type SetCampaignResultMetricResponse = ({
50802
+ metric: CampaignResultMetric;
50803
+ });
50804
+
50805
+ export type SetCampaignResultMetricError = (ErrorResponse);
50806
+
50655
50807
  export type ListAdCampaignsData = {
50656
50808
  query?: {
50657
50809
  /**