@getlatedev/node 0.2.1715 → 0.2.1717
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 +30 -3
- package/dist/index.d.ts +30 -3
- package/dist/index.js +15 -1
- package/dist/index.mjs +15 -1
- package/package.json +1 -1
- package/src/client.ts +4 -0
- package/src/generated/sdk.gen.ts +29 -1
- package/src/generated/types.gen.ts +32 -2
|
@@ -8824,7 +8824,7 @@ export type CreateEmailDraftRequest = {
|
|
|
8824
8824
|
html?: string;
|
|
8825
8825
|
attachments?: Array<EmailAttachmentInput>;
|
|
8826
8826
|
/**
|
|
8827
|
-
*
|
|
8827
|
+
* Same headers as on `POST /v1/email/messages`: `X-` names plus `List-Unsubscribe`, `List-Unsubscribe-Post`, `List-Id`, `Precedence` and `Auto-Submitted`. Outlook drafts leave out all but `X-` headers.
|
|
8828
8828
|
*/
|
|
8829
8829
|
headers?: {
|
|
8830
8830
|
[key: string]: (string);
|
|
@@ -18746,7 +18746,11 @@ export type SendEmailRequest = {
|
|
|
18746
18746
|
contentId?: string;
|
|
18747
18747
|
}>;
|
|
18748
18748
|
/**
|
|
18749
|
-
* Custom `X-`
|
|
18749
|
+
* Custom headers: `X-` names, plus `List-Unsubscribe`, `List-Unsubscribe-Post`, `List-Id`, `Precedence` and `Auto-Submitted`. Other names, values with line breaks and header lines over 998 characters answer 400.
|
|
18750
|
+
*
|
|
18751
|
+
* `List-Unsubscribe` takes one or more `<https://...>` or `<mailto:...>` URIs separated by commas. `List-Unsubscribe-Post` must be exactly `List-Unsubscribe=One-Click` and needs an https URI in `List-Unsubscribe` (RFC 8058).
|
|
18752
|
+
*
|
|
18753
|
+
* Gmail and IMAP send them all. Outlook sends only `X-` headers: the others are left out and named in `metadata.droppedHeaders` on the sent message.
|
|
18750
18754
|
*/
|
|
18751
18755
|
headers?: {
|
|
18752
18756
|
[key: string]: (string);
|
|
@@ -62352,6 +62356,24 @@ export type GetCampaignResultsTotalsResponse = ({
|
|
|
62352
62356
|
|
|
62353
62357
|
export type GetCampaignResultsTotalsError = (ErrorResponse);
|
|
62354
62358
|
|
|
62359
|
+
export type GetCampaignResultEventsResponse = ({
|
|
62360
|
+
eventNames: Array<(string)>;
|
|
62361
|
+
});
|
|
62362
|
+
|
|
62363
|
+
export type GetCampaignResultEventsError = (ErrorResponse);
|
|
62364
|
+
|
|
62365
|
+
export type SetCampaignResultEventsData = {
|
|
62366
|
+
body: {
|
|
62367
|
+
eventNames: Array<(string)> | null;
|
|
62368
|
+
};
|
|
62369
|
+
};
|
|
62370
|
+
|
|
62371
|
+
export type SetCampaignResultEventsResponse = ({
|
|
62372
|
+
eventNames: Array<(string)>;
|
|
62373
|
+
});
|
|
62374
|
+
|
|
62375
|
+
export type SetCampaignResultEventsError = (ErrorResponse);
|
|
62376
|
+
|
|
62355
62377
|
export type ListCampaignResultMetricsResponse = ({
|
|
62356
62378
|
metrics: Array<CampaignResultMetric>;
|
|
62357
62379
|
});
|
|
@@ -75157,6 +75179,10 @@ export type GetEventsOverviewResponse = ({
|
|
|
75157
75179
|
* Today's events matched to an ad campaign.
|
|
75158
75180
|
*/
|
|
75159
75181
|
matched?: number;
|
|
75182
|
+
/**
|
|
75183
|
+
* Today's events that count as campaign results (see `GET /v1/ads/campaign-results/events`), the ones looked up for a campaign.
|
|
75184
|
+
*/
|
|
75185
|
+
counted?: number;
|
|
75160
75186
|
};
|
|
75161
75187
|
/**
|
|
75162
75188
|
* One entry per forwarding rule of the profiles covered.
|
|
@@ -75339,6 +75365,10 @@ export type GetEventsOverviewDailyResponse = ({
|
|
|
75339
75365
|
* The period's events matched to an ad campaign.
|
|
75340
75366
|
*/
|
|
75341
75367
|
matched?: number;
|
|
75368
|
+
/**
|
|
75369
|
+
* The period's events that count as campaign results, the ones looked up for a campaign.
|
|
75370
|
+
*/
|
|
75371
|
+
counted?: number;
|
|
75342
75372
|
};
|
|
75343
75373
|
/**
|
|
75344
75374
|
* Every day of the period, oldest first, zero where nothing happened.
|