sequenzy 2.1.35 → 2.1.37
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/dist/cjs/api/resources/campaigns/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/client/Client.js +3 -0
- package/dist/cjs/api/resources/campaigns/client/requests/CreateCampaignsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/campaigns/client/requests/UpdateCampaignsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/campaigns/types/CreateCampaignsResponse.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/types/CreateCampaignsResponseCampaign.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/types/DuplicateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/cjs/api/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.d.ts +2 -0
- package/dist/cjs/api/resources/campaigns/types/UpdateCampaignsResponse.d.ts +1 -0
- package/dist/cjs/api/resources/campaigns/types/UpdateCampaignsResponseCampaign.d.ts +1 -0
- package/dist/cjs/api/resources/websites/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/websites/client/Client.js +1 -1
- package/dist/cjs/api/resources/websites/client/requests/AddWebsitesRequest.d.ts +1 -1
- package/dist/cjs/api/types/CampaignAttachmentInput.d.ts +13 -0
- package/dist/cjs/api/types/CampaignAttachmentInput.js +3 -0
- package/dist/cjs/api/types/CampaignDetail.d.ts +2 -0
- package/dist/cjs/api/types/IgnoredFields.d.ts +5 -0
- package/dist/cjs/api/types/IgnoredFields.js +3 -0
- package/dist/cjs/api/types/IgnoredFieldsItem.d.ts +7 -0
- package/dist/cjs/api/types/IgnoredFieldsItem.js +3 -0
- package/dist/cjs/api/types/IgnoredFieldsItemReason.d.ts +6 -0
- package/dist/cjs/api/types/IgnoredFieldsItemReason.js +9 -0
- package/dist/cjs/api/types/StoredCampaignAttachment.d.ts +7 -0
- package/dist/cjs/api/types/StoredCampaignAttachment.js +3 -0
- package/dist/cjs/api/types/index.d.ts +5 -0
- package/dist/cjs/api/types/index.js +5 -0
- package/dist/cjs/serialization/resources/campaigns/client/requests/CreateCampaignsRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/client/requests/CreateCampaignsRequest.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/client/requests/UpdateCampaignsRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/client/requests/UpdateCampaignsRequest.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/CreateCampaignsResponse.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/CreateCampaignsResponse.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/CreateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/CreateCampaignsResponseCampaign.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/DuplicateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/DuplicateCampaignsResponseCampaign.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/UpdateCampaignsResponse.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/UpdateCampaignsResponse.js +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/UpdateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/UpdateCampaignsResponseCampaign.js +2 -0
- package/dist/cjs/serialization/types/CampaignAttachmentInput.d.ts +12 -0
- package/dist/cjs/serialization/types/CampaignAttachmentInput.js +34 -0
- package/dist/cjs/serialization/types/CampaignDetail.d.ts +2 -0
- package/dist/cjs/serialization/types/CampaignDetail.js +2 -0
- package/dist/cjs/serialization/types/IgnoredFields.d.ts +8 -0
- package/dist/cjs/serialization/types/IgnoredFields.js +30 -0
- package/dist/cjs/serialization/types/IgnoredFieldsItem.d.ts +11 -0
- package/dist/cjs/serialization/types/IgnoredFieldsItem.js +33 -0
- package/dist/cjs/serialization/types/IgnoredFieldsItemReason.d.ts +7 -0
- package/dist/cjs/serialization/types/IgnoredFieldsItemReason.js +29 -0
- package/dist/cjs/serialization/types/StoredCampaignAttachment.d.ts +10 -0
- package/dist/cjs/serialization/types/StoredCampaignAttachment.js +32 -0
- package/dist/cjs/serialization/types/index.d.ts +5 -0
- package/dist/cjs/serialization/types/index.js +5 -0
- package/dist/esm/api/resources/campaigns/client/Client.d.ts +1 -0
- package/dist/esm/api/resources/campaigns/client/Client.js +3 -0
- package/dist/esm/api/resources/campaigns/client/requests/CreateCampaignsRequest.d.ts +2 -0
- package/dist/esm/api/resources/campaigns/client/requests/UpdateCampaignsRequest.d.ts +2 -0
- package/dist/esm/api/resources/campaigns/types/CreateCampaignsResponse.d.ts +1 -0
- package/dist/esm/api/resources/campaigns/types/CreateCampaignsResponseCampaign.d.ts +1 -0
- package/dist/esm/api/resources/campaigns/types/DuplicateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/esm/api/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.d.ts +2 -0
- package/dist/esm/api/resources/campaigns/types/UpdateCampaignsResponse.d.ts +1 -0
- package/dist/esm/api/resources/campaigns/types/UpdateCampaignsResponseCampaign.d.ts +1 -0
- package/dist/esm/api/resources/websites/client/Client.d.ts +1 -1
- package/dist/esm/api/resources/websites/client/Client.js +1 -1
- package/dist/esm/api/resources/websites/client/requests/AddWebsitesRequest.d.ts +1 -1
- package/dist/esm/api/types/CampaignAttachmentInput.d.ts +13 -0
- package/dist/esm/api/types/CampaignAttachmentInput.js +2 -0
- package/dist/esm/api/types/CampaignDetail.d.ts +2 -0
- package/dist/esm/api/types/IgnoredFields.d.ts +5 -0
- package/dist/esm/api/types/IgnoredFields.js +2 -0
- package/dist/esm/api/types/IgnoredFieldsItem.d.ts +7 -0
- package/dist/esm/api/types/IgnoredFieldsItem.js +2 -0
- package/dist/esm/api/types/IgnoredFieldsItemReason.d.ts +6 -0
- package/dist/esm/api/types/IgnoredFieldsItemReason.js +6 -0
- package/dist/esm/api/types/StoredCampaignAttachment.d.ts +7 -0
- package/dist/esm/api/types/StoredCampaignAttachment.js +2 -0
- package/dist/esm/api/types/index.d.ts +5 -0
- package/dist/esm/api/types/index.js +5 -0
- package/dist/esm/serialization/resources/campaigns/client/requests/CreateCampaignsRequest.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/client/requests/CreateCampaignsRequest.js +2 -0
- package/dist/esm/serialization/resources/campaigns/client/requests/UpdateCampaignsRequest.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/client/requests/UpdateCampaignsRequest.js +2 -0
- package/dist/esm/serialization/resources/campaigns/types/CreateCampaignsResponse.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/types/CreateCampaignsResponse.js +2 -0
- package/dist/esm/serialization/resources/campaigns/types/CreateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/types/CreateCampaignsResponseCampaign.js +2 -0
- package/dist/esm/serialization/resources/campaigns/types/DuplicateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/types/DuplicateCampaignsResponseCampaign.js +2 -0
- package/dist/esm/serialization/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.js +2 -0
- package/dist/esm/serialization/resources/campaigns/types/UpdateCampaignsResponse.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/types/UpdateCampaignsResponse.js +2 -0
- package/dist/esm/serialization/resources/campaigns/types/UpdateCampaignsResponseCampaign.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/types/UpdateCampaignsResponseCampaign.js +2 -0
- package/dist/esm/serialization/types/CampaignAttachmentInput.d.ts +12 -0
- package/dist/esm/serialization/types/CampaignAttachmentInput.js +8 -0
- package/dist/esm/serialization/types/CampaignDetail.d.ts +2 -0
- package/dist/esm/serialization/types/CampaignDetail.js +2 -0
- package/dist/esm/serialization/types/IgnoredFields.d.ts +8 -0
- package/dist/esm/serialization/types/IgnoredFields.js +4 -0
- package/dist/esm/serialization/types/IgnoredFieldsItem.d.ts +11 -0
- package/dist/esm/serialization/types/IgnoredFieldsItem.js +7 -0
- package/dist/esm/serialization/types/IgnoredFieldsItemReason.d.ts +7 -0
- package/dist/esm/serialization/types/IgnoredFieldsItemReason.js +3 -0
- package/dist/esm/serialization/types/StoredCampaignAttachment.d.ts +10 -0
- package/dist/esm/serialization/types/StoredCampaignAttachment.js +6 -0
- package/dist/esm/serialization/types/index.d.ts +5 -0
- package/dist/esm/serialization/types/index.js +5 -0
- package/package.json +1 -1
|
@@ -62,6 +62,7 @@ export declare class CampaignsClient {
|
|
|
62
62
|
* @throws {@link Sequenzy.BadRequestError}
|
|
63
63
|
* @throws {@link Sequenzy.UnauthorizedError}
|
|
64
64
|
* @throws {@link Sequenzy.InternalServerError}
|
|
65
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
65
66
|
* @throws {@link errors.SequenzyError}
|
|
66
67
|
* @throws {@link errors.SequenzyTimeoutError}
|
|
67
68
|
*
|
|
@@ -200,6 +200,7 @@ class CampaignsClient {
|
|
|
200
200
|
* @throws {@link Sequenzy.BadRequestError}
|
|
201
201
|
* @throws {@link Sequenzy.UnauthorizedError}
|
|
202
202
|
* @throws {@link Sequenzy.InternalServerError}
|
|
203
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
203
204
|
* @throws {@link errors.SequenzyError}
|
|
204
205
|
* @throws {@link errors.SequenzyTimeoutError}
|
|
205
206
|
*
|
|
@@ -276,6 +277,8 @@ class CampaignsClient {
|
|
|
276
277
|
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
277
278
|
case 500:
|
|
278
279
|
throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
|
|
280
|
+
case 503:
|
|
281
|
+
throw new Sequenzy.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
279
282
|
default:
|
|
280
283
|
throw new errors.SequenzyError({
|
|
281
284
|
statusCode: _response.error.statusCode,
|
|
@@ -29,6 +29,8 @@ import type * as Sequenzy from "../../../../index.js";
|
|
|
29
29
|
* }
|
|
30
30
|
*/
|
|
31
31
|
export interface CreateCampaignsRequest {
|
|
32
|
+
/** Files sent with every recipient's email, including CC/BCC copies and test sends. Up to 10 files and 5MB in total. Every entry is validated before any Base64 content is stored. URL files are fetched and size-checked when sending starts; if one cannot be loaded, nothing is sent and the campaign returns to draft. */
|
|
33
|
+
attachments?: Sequenzy.CampaignAttachmentInput[];
|
|
32
34
|
/** Sequenzy email blocks. Mutually exclusive with html. Put visual styling under styles; top-level style keys such as backgroundColor, backgroundOpacity, borderColor, borderWidth, and borderRadius are normalized into styles. */
|
|
33
35
|
blocks?: Record<string, unknown>[];
|
|
34
36
|
campaignData?: Record<string, unknown> | null;
|
|
@@ -92,6 +92,8 @@ import type * as Sequenzy from "../../../../index.js";
|
|
|
92
92
|
export interface UpdateCampaignsRequest {
|
|
93
93
|
/** Campaign ID */
|
|
94
94
|
campaignId: string;
|
|
95
|
+
/** Replaces the files sent with every recipient's email (up to 10 files, 5MB in total). Send an empty array or null to remove them; omit to leave them unchanged. Base64 content is stored only after every other field in the request has been validated; if storing fails, the response is 503 and the campaign is unchanged. */
|
|
96
|
+
attachments?: Sequenzy.CampaignAttachmentInput[] | null;
|
|
95
97
|
/** Addresses BCC'd on every recipient's email for this campaign. Send an empty array or null to clear them. */
|
|
96
98
|
bccEmails?: string[] | null;
|
|
97
99
|
/** Updated Sequenzy email blocks. Mutually exclusive with `html`. Put visual styling under styles; top-level style keys such as backgroundColor, backgroundOpacity, borderColor, borderWidth, and borderRadius are normalized into styles. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../index.js";
|
|
2
2
|
export interface CreateCampaignsResponseCampaign {
|
|
3
|
+
attachments?: Sequenzy.StoredCampaignAttachment[] | null;
|
|
3
4
|
/** The linked email body, reusable as `templateId` when creating later campaigns. */
|
|
4
5
|
emailId?: string;
|
|
5
6
|
emailPreset?: Sequenzy.EmailPreset | null;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../index.js";
|
|
2
2
|
export interface DuplicateCampaignsResponseCampaign {
|
|
3
|
+
/** Files sent with every recipient's email for this campaign, or null when there are none. */
|
|
4
|
+
attachments?: Sequenzy.StoredCampaignAttachment[] | null;
|
|
3
5
|
/** Addresses BCC'd on every recipient's email for this campaign. */
|
|
4
6
|
bccEmails?: string[] | null;
|
|
5
7
|
blocks?: Sequenzy.EmailBlock[];
|
package/dist/cjs/api/resources/campaigns/types/ResendToNonOpenersCampaignsResponseCampaign.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../index.js";
|
|
2
2
|
export interface ResendToNonOpenersCampaignsResponseCampaign {
|
|
3
|
+
/** Files sent with every recipient's email for this campaign, or null when there are none. */
|
|
4
|
+
attachments?: Sequenzy.StoredCampaignAttachment[] | null;
|
|
3
5
|
/** Addresses BCC'd on every recipient's email for this campaign. */
|
|
4
6
|
bccEmails?: string[] | null;
|
|
5
7
|
blocks?: Sequenzy.EmailBlock[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../index.js";
|
|
2
2
|
export interface UpdateCampaignsResponseCampaign {
|
|
3
|
+
attachments?: Sequenzy.StoredCampaignAttachment[] | null;
|
|
3
4
|
bccEmails?: string[] | null;
|
|
4
5
|
ccEmails?: string[] | null;
|
|
5
6
|
/** The linked email body, reusable as `templateId` when creating later campaigns. */
|
|
@@ -11,7 +11,7 @@ export declare class WebsitesClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<WebsitesClient.Options>;
|
|
12
12
|
constructor(options?: WebsitesClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Adds a sending domain to the authenticated company and returns the SPF, DKIM, MAIL FROM, DMARC, and tracking DNS records required for setup. Tracked links use the company tracking domain, shared by every sending domain: the first domain creates it
|
|
14
|
+
* Adds a sending domain to the authenticated company and returns the SPF, DKIM, MAIL FROM, DMARC, and tracking DNS records required for setup. Tracked links use the company tracking domain, shared by every sending domain: the first domain creates it under itself (links.<domain>) and returns its CNAME as dnsRecords.trackingRecord. It is optional and never gates verification or sending. A domain belongs to exactly one company, so confirm the target company before adding it.
|
|
15
15
|
*
|
|
16
16
|
* @param {Sequenzy.AddWebsitesRequest} request
|
|
17
17
|
* @param {WebsitesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -39,7 +39,7 @@ class WebsitesClient {
|
|
|
39
39
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
|
-
* Adds a sending domain to the authenticated company and returns the SPF, DKIM, MAIL FROM, DMARC, and tracking DNS records required for setup. Tracked links use the company tracking domain, shared by every sending domain: the first domain creates it
|
|
42
|
+
* Adds a sending domain to the authenticated company and returns the SPF, DKIM, MAIL FROM, DMARC, and tracking DNS records required for setup. Tracked links use the company tracking domain, shared by every sending domain: the first domain creates it under itself (links.<domain>) and returns its CNAME as dnsRecords.trackingRecord. It is optional and never gates verification or sending. A domain belongs to exactly one company, so confirm the target company before adding it.
|
|
43
43
|
*
|
|
44
44
|
* @param {Sequenzy.AddWebsitesRequest} request
|
|
45
45
|
* @param {WebsitesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -9,6 +9,6 @@ export interface AddWebsitesRequest {
|
|
|
9
9
|
domain: string;
|
|
10
10
|
/** Return-path (MAIL FROM) subdomain label. Defaults to rp. New domains also get a second return path, usually <label>2 (rp2 by default); publish the returned names. One DNS label of 1 to 63 letters, numbers or hyphens; inbound is reserved. Applies only when the domain is created; re-adding an existing domain returns its stored records. */
|
|
11
11
|
mailFromPrefix?: string;
|
|
12
|
-
/** Label of the company tracking domain created
|
|
12
|
+
/** Label of the company tracking domain created under the domain (<label>.<domain>, or <label>.<root> when it equals mailFromPrefix) when the company has none yet; ignored otherwise. Defaults to links. When the hostname is taken, the label followed by 2 to 5 is tried (for example links2); when none is free, the domain is added without a tracking domain. A label that would land on the bounce hostname returns 400. Change the tracking domain later with PUT /tracking-domain. */
|
|
13
13
|
trackingPrefix?: string;
|
|
14
14
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A file sent with every recipient's campaign email. Provide Base64 `content` or a public `path` URL, not both. Base64 content is stored by Sequenzy and returned as a `path`. Inline images (`contentId`) are not supported on campaigns.
|
|
3
|
+
*/
|
|
4
|
+
export interface CampaignAttachmentInput {
|
|
5
|
+
/** Base64-encoded file content (mutually exclusive with path). Counts toward the 5MB campaign total. */
|
|
6
|
+
content?: string;
|
|
7
|
+
/** MIME type for Base64 content. Defaults to the type implied by the filename extension. PDF, Office documents, ZIP, image, audio, video and text files are accepted; HTML and SVG are not. Not accepted with path. */
|
|
8
|
+
contentType?: string;
|
|
9
|
+
/** Filename shown in the recipient's email client, including the extension. Merge tags are not supported. */
|
|
10
|
+
filename: string;
|
|
11
|
+
/** Public HTTP(S) URL fetched when the campaign starts sending (mutually exclusive with content). */
|
|
12
|
+
path?: string;
|
|
13
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type * as Sequenzy from "../index.js";
|
|
2
2
|
export interface CampaignDetail extends Sequenzy.CampaignSummary {
|
|
3
|
+
/** Files sent with every recipient's email for this campaign, or null when there are none. */
|
|
4
|
+
attachments?: Sequenzy.StoredCampaignAttachment[] | null;
|
|
3
5
|
/** Addresses BCC'd on every recipient's email for this campaign. */
|
|
4
6
|
bccEmails?: string[] | null;
|
|
5
7
|
blocks?: Sequenzy.EmailBlock[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as Sequenzy from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Request body fields the endpoint did not recognize and ignored. The request still succeeded; nothing was stored for these fields. Present only when at least one field was ignored, on successful JSON object responses of every v1 endpoint. Lists up to 25 fields.
|
|
4
|
+
*/
|
|
5
|
+
export type IgnoredFields = Sequenzy.IgnoredFieldsItem[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Sequenzy from "../index.js";
|
|
2
|
+
export interface IgnoredFieldsItem {
|
|
3
|
+
/** Dotted path with array indexes, such as `sendAt` or `steps[1].delayDays`. Empty when the whole body was not a JSON object. */
|
|
4
|
+
path: string;
|
|
5
|
+
/** `unknown_field`: the endpoint does not accept this field. `not_an_object`: an object was expected, so the value was replaced with an empty object. */
|
|
6
|
+
reason: Sequenzy.IgnoredFieldsItemReason;
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** `unknown_field`: the endpoint does not accept this field. `not_an_object`: an object was expected, so the value was replaced with an empty object. */
|
|
2
|
+
export declare const IgnoredFieldsItemReason: {
|
|
3
|
+
readonly UnknownField: "unknown_field";
|
|
4
|
+
readonly NotAnObject: "not_an_object";
|
|
5
|
+
};
|
|
6
|
+
export type IgnoredFieldsItemReason = (typeof IgnoredFieldsItemReason)[keyof typeof IgnoredFieldsItemReason];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.IgnoredFieldsItemReason = void 0;
|
|
5
|
+
/** `unknown_field`: the endpoint does not accept this field. `not_an_object`: an object was expected, so the value was replaced with an empty object. */
|
|
6
|
+
exports.IgnoredFieldsItemReason = {
|
|
7
|
+
UnknownField: "unknown_field",
|
|
8
|
+
NotAnObject: "not_an_object",
|
|
9
|
+
};
|
|
@@ -75,6 +75,7 @@ export * from "./BulkSubscriberTagRequest.js";
|
|
|
75
75
|
export * from "./BulkSubscriberTagResponse.js";
|
|
76
76
|
export * from "./BulkSubscriberTagResponseFailuresItem.js";
|
|
77
77
|
export * from "./BulkSubscriberTagResponseNotFound.js";
|
|
78
|
+
export * from "./CampaignAttachmentInput.js";
|
|
78
79
|
export * from "./CampaignChannel.js";
|
|
79
80
|
export * from "./CampaignDetail.js";
|
|
80
81
|
export * from "./CampaignGoal.js";
|
|
@@ -316,6 +317,9 @@ export * from "./GalleryWatchedBrandEmail.js";
|
|
|
316
317
|
export * from "./GalleryWatchedBrandEmailBrand.js";
|
|
317
318
|
export * from "./GalleryWatchedBrandStatus.js";
|
|
318
319
|
export * from "./GalleryWatchResult.js";
|
|
320
|
+
export * from "./IgnoredFields.js";
|
|
321
|
+
export * from "./IgnoredFieldsItem.js";
|
|
322
|
+
export * from "./IgnoredFieldsItemReason.js";
|
|
319
323
|
export * from "./InAppMessage.js";
|
|
320
324
|
export * from "./InAppMessageButtonsItem.js";
|
|
321
325
|
export * from "./InAppMessageButtonsItemAction.js";
|
|
@@ -771,6 +775,7 @@ export * from "./ServiceUnavailableErrorBody.js";
|
|
|
771
775
|
export * from "./ShopifyBrowseAbandonmentSettings.js";
|
|
772
776
|
export * from "./ShopifyCartAbandonmentSettings.js";
|
|
773
777
|
export * from "./ShopifyPriceDropSettings.js";
|
|
778
|
+
export * from "./StoredCampaignAttachment.js";
|
|
774
779
|
export * from "./Subscriber.js";
|
|
775
780
|
export * from "./SubscriberActivityEvent.js";
|
|
776
781
|
export * from "./SubscriberActivityEventEngagementQuality.js";
|
|
@@ -91,6 +91,7 @@ __exportStar(require("./BulkSubscriberTagRequest.js"), exports);
|
|
|
91
91
|
__exportStar(require("./BulkSubscriberTagResponse.js"), exports);
|
|
92
92
|
__exportStar(require("./BulkSubscriberTagResponseFailuresItem.js"), exports);
|
|
93
93
|
__exportStar(require("./BulkSubscriberTagResponseNotFound.js"), exports);
|
|
94
|
+
__exportStar(require("./CampaignAttachmentInput.js"), exports);
|
|
94
95
|
__exportStar(require("./CampaignChannel.js"), exports);
|
|
95
96
|
__exportStar(require("./CampaignDetail.js"), exports);
|
|
96
97
|
__exportStar(require("./CampaignGoal.js"), exports);
|
|
@@ -332,6 +333,9 @@ __exportStar(require("./GalleryWatchedBrandEmail.js"), exports);
|
|
|
332
333
|
__exportStar(require("./GalleryWatchedBrandEmailBrand.js"), exports);
|
|
333
334
|
__exportStar(require("./GalleryWatchedBrandStatus.js"), exports);
|
|
334
335
|
__exportStar(require("./GalleryWatchResult.js"), exports);
|
|
336
|
+
__exportStar(require("./IgnoredFields.js"), exports);
|
|
337
|
+
__exportStar(require("./IgnoredFieldsItem.js"), exports);
|
|
338
|
+
__exportStar(require("./IgnoredFieldsItemReason.js"), exports);
|
|
335
339
|
__exportStar(require("./InAppMessage.js"), exports);
|
|
336
340
|
__exportStar(require("./InAppMessageButtonsItem.js"), exports);
|
|
337
341
|
__exportStar(require("./InAppMessageButtonsItemAction.js"), exports);
|
|
@@ -787,6 +791,7 @@ __exportStar(require("./ServiceUnavailableErrorBody.js"), exports);
|
|
|
787
791
|
__exportStar(require("./ShopifyBrowseAbandonmentSettings.js"), exports);
|
|
788
792
|
__exportStar(require("./ShopifyCartAbandonmentSettings.js"), exports);
|
|
789
793
|
__exportStar(require("./ShopifyPriceDropSettings.js"), exports);
|
|
794
|
+
__exportStar(require("./StoredCampaignAttachment.js"), exports);
|
|
790
795
|
__exportStar(require("./Subscriber.js"), exports);
|
|
791
796
|
__exportStar(require("./SubscriberActivityEvent.js"), exports);
|
|
792
797
|
__exportStar(require("./SubscriberActivityEventEngagementQuality.js"), exports);
|
package/dist/cjs/serialization/resources/campaigns/client/requests/CreateCampaignsRequest.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../../index.js";
|
|
4
|
+
import { CampaignAttachmentInput } from "../../../../types/CampaignAttachmentInput.js";
|
|
4
5
|
import { CreateCampaignsRequestEmailPreset } from "../../types/CreateCampaignsRequestEmailPreset.js";
|
|
5
6
|
import { CreateCampaignsRequestStatus } from "../../types/CreateCampaignsRequestStatus.js";
|
|
6
7
|
export declare const CreateCampaignsRequest: core.serialization.Schema<serializers.CreateCampaignsRequest.Raw, Sequenzy.CreateCampaignsRequest>;
|
|
7
8
|
export declare namespace CreateCampaignsRequest {
|
|
8
9
|
interface Raw {
|
|
10
|
+
attachments?: CampaignAttachmentInput.Raw[] | null;
|
|
9
11
|
blocks?: Record<string, unknown>[] | null;
|
|
10
12
|
campaignData?: (Record<string, unknown> | null | undefined) | null;
|
|
11
13
|
computedLists?: Record<string, unknown>[] | null;
|
package/dist/cjs/serialization/resources/campaigns/client/requests/CreateCampaignsRequest.js
CHANGED
|
@@ -26,9 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.CreateCampaignsRequest = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
29
|
+
const CampaignAttachmentInput_js_1 = require("../../../../types/CampaignAttachmentInput.js");
|
|
29
30
|
const CreateCampaignsRequestEmailPreset_js_1 = require("../../types/CreateCampaignsRequestEmailPreset.js");
|
|
30
31
|
const CreateCampaignsRequestStatus_js_1 = require("../../types/CreateCampaignsRequestStatus.js");
|
|
31
32
|
exports.CreateCampaignsRequest = core.serialization.object({
|
|
33
|
+
attachments: core.serialization.list(CampaignAttachmentInput_js_1.CampaignAttachmentInput).optional(),
|
|
32
34
|
blocks: core.serialization
|
|
33
35
|
.list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
|
|
34
36
|
.optional(),
|
package/dist/cjs/serialization/resources/campaigns/client/requests/UpdateCampaignsRequest.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../../index.js";
|
|
4
|
+
import { CampaignAttachmentInput } from "../../../../types/CampaignAttachmentInput.js";
|
|
4
5
|
import { UpdateCampaignsRequestEmailPreset } from "../../types/UpdateCampaignsRequestEmailPreset.js";
|
|
5
6
|
export declare const UpdateCampaignsRequest: core.serialization.Schema<serializers.UpdateCampaignsRequest.Raw, Omit<Sequenzy.UpdateCampaignsRequest, "campaignId">>;
|
|
6
7
|
export declare namespace UpdateCampaignsRequest {
|
|
7
8
|
interface Raw {
|
|
9
|
+
attachments?: (CampaignAttachmentInput.Raw[] | null | undefined) | null;
|
|
8
10
|
bccEmails?: (string[] | null | undefined) | null;
|
|
9
11
|
blocks?: Record<string, unknown>[] | null;
|
|
10
12
|
campaignData?: (Record<string, unknown> | null | undefined) | null;
|
package/dist/cjs/serialization/resources/campaigns/client/requests/UpdateCampaignsRequest.js
CHANGED
|
@@ -26,8 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.UpdateCampaignsRequest = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
29
|
+
const CampaignAttachmentInput_js_1 = require("../../../../types/CampaignAttachmentInput.js");
|
|
29
30
|
const UpdateCampaignsRequestEmailPreset_js_1 = require("../../types/UpdateCampaignsRequestEmailPreset.js");
|
|
30
31
|
exports.UpdateCampaignsRequest = core.serialization.object({
|
|
32
|
+
attachments: core.serialization.list(CampaignAttachmentInput_js_1.CampaignAttachmentInput).optionalNullable(),
|
|
31
33
|
bccEmails: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
32
34
|
blocks: core.serialization
|
|
33
35
|
.list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
|
|
@@ -2,11 +2,13 @@ import type * as Sequenzy from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { BlockFieldWarnings } from "../../../types/BlockFieldWarnings.js";
|
|
5
|
+
import { IgnoredFields } from "../../../types/IgnoredFields.js";
|
|
5
6
|
import { CreateCampaignsResponseCampaign } from "./CreateCampaignsResponseCampaign.js";
|
|
6
7
|
export declare const CreateCampaignsResponse: core.serialization.ObjectSchema<serializers.CreateCampaignsResponse.Raw, Sequenzy.CreateCampaignsResponse>;
|
|
7
8
|
export declare namespace CreateCampaignsResponse {
|
|
8
9
|
interface Raw {
|
|
9
10
|
campaign?: CreateCampaignsResponseCampaign.Raw | null;
|
|
11
|
+
ignoredFields?: IgnoredFields.Raw | null;
|
|
10
12
|
success?: boolean | null;
|
|
11
13
|
warnings?: BlockFieldWarnings.Raw | null;
|
|
12
14
|
}
|
|
@@ -27,9 +27,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.CreateCampaignsResponse = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../core/index.js"));
|
|
29
29
|
const BlockFieldWarnings_js_1 = require("../../../types/BlockFieldWarnings.js");
|
|
30
|
+
const IgnoredFields_js_1 = require("../../../types/IgnoredFields.js");
|
|
30
31
|
const CreateCampaignsResponseCampaign_js_1 = require("./CreateCampaignsResponseCampaign.js");
|
|
31
32
|
exports.CreateCampaignsResponse = core.serialization.object({
|
|
32
33
|
campaign: CreateCampaignsResponseCampaign_js_1.CreateCampaignsResponseCampaign.optional(),
|
|
34
|
+
ignoredFields: IgnoredFields_js_1.IgnoredFields.optional(),
|
|
33
35
|
success: core.serialization.boolean().optional(),
|
|
34
36
|
warnings: BlockFieldWarnings_js_1.BlockFieldWarnings.optional(),
|
|
35
37
|
});
|
package/dist/cjs/serialization/resources/campaigns/types/CreateCampaignsResponseCampaign.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import type * as Sequenzy from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { EmailPreset } from "../../../types/EmailPreset.js";
|
|
5
|
+
import { StoredCampaignAttachment } from "../../../types/StoredCampaignAttachment.js";
|
|
5
6
|
export declare const CreateCampaignsResponseCampaign: core.serialization.ObjectSchema<serializers.CreateCampaignsResponseCampaign.Raw, Sequenzy.CreateCampaignsResponseCampaign>;
|
|
6
7
|
export declare namespace CreateCampaignsResponseCampaign {
|
|
7
8
|
interface Raw {
|
|
9
|
+
attachments?: (StoredCampaignAttachment.Raw[] | null | undefined) | null;
|
|
8
10
|
emailId?: string | null;
|
|
9
11
|
emailPreset?: (EmailPreset.Raw | null | undefined) | null;
|
|
10
12
|
fromEmail?: string | null;
|
|
@@ -27,7 +27,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.CreateCampaignsResponseCampaign = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../core/index.js"));
|
|
29
29
|
const EmailPreset_js_1 = require("../../../types/EmailPreset.js");
|
|
30
|
+
const StoredCampaignAttachment_js_1 = require("../../../types/StoredCampaignAttachment.js");
|
|
30
31
|
exports.CreateCampaignsResponseCampaign = core.serialization.object({
|
|
32
|
+
attachments: core.serialization.list(StoredCampaignAttachment_js_1.StoredCampaignAttachment).optionalNullable(),
|
|
31
33
|
emailId: core.serialization.string().optional(),
|
|
32
34
|
emailPreset: EmailPreset_js_1.EmailPreset.optionalNullable(),
|
|
33
35
|
fromEmail: core.serialization.string().optional(),
|
package/dist/cjs/serialization/resources/campaigns/types/DuplicateCampaignsResponseCampaign.d.ts
CHANGED
|
@@ -4,9 +4,11 @@ import * as serializers from "../../../index.js";
|
|
|
4
4
|
import { CampaignChannel } from "../../../types/CampaignChannel.js";
|
|
5
5
|
import { CampaignStatus } from "../../../types/CampaignStatus.js";
|
|
6
6
|
import { EmailPreset } from "../../../types/EmailPreset.js";
|
|
7
|
+
import { StoredCampaignAttachment } from "../../../types/StoredCampaignAttachment.js";
|
|
7
8
|
export declare const DuplicateCampaignsResponseCampaign: core.serialization.ObjectSchema<serializers.DuplicateCampaignsResponseCampaign.Raw, Sequenzy.DuplicateCampaignsResponseCampaign>;
|
|
8
9
|
export declare namespace DuplicateCampaignsResponseCampaign {
|
|
9
10
|
interface Raw {
|
|
11
|
+
attachments?: (StoredCampaignAttachment.Raw[] | null | undefined) | null;
|
|
10
12
|
bccEmails?: (string[] | null | undefined) | null;
|
|
11
13
|
blocks?: serializers.EmailBlock.Raw[] | null;
|
|
12
14
|
campaignData?: (Record<string, unknown> | null | undefined) | null;
|
package/dist/cjs/serialization/resources/campaigns/types/DuplicateCampaignsResponseCampaign.js
CHANGED
|
@@ -30,7 +30,9 @@ const serializers = __importStar(require("../../../index.js"));
|
|
|
30
30
|
const CampaignChannel_js_1 = require("../../../types/CampaignChannel.js");
|
|
31
31
|
const CampaignStatus_js_1 = require("../../../types/CampaignStatus.js");
|
|
32
32
|
const EmailPreset_js_1 = require("../../../types/EmailPreset.js");
|
|
33
|
+
const StoredCampaignAttachment_js_1 = require("../../../types/StoredCampaignAttachment.js");
|
|
33
34
|
exports.DuplicateCampaignsResponseCampaign = core.serialization.object({
|
|
35
|
+
attachments: core.serialization.list(StoredCampaignAttachment_js_1.StoredCampaignAttachment).optionalNullable(),
|
|
34
36
|
bccEmails: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
35
37
|
blocks: core.serialization.list(core.serialization.lazyObject(() => serializers.EmailBlock)).optional(),
|
|
36
38
|
campaignData: core.serialization
|
|
@@ -4,9 +4,11 @@ import * as serializers from "../../../index.js";
|
|
|
4
4
|
import { CampaignChannel } from "../../../types/CampaignChannel.js";
|
|
5
5
|
import { CampaignStatus } from "../../../types/CampaignStatus.js";
|
|
6
6
|
import { EmailPreset } from "../../../types/EmailPreset.js";
|
|
7
|
+
import { StoredCampaignAttachment } from "../../../types/StoredCampaignAttachment.js";
|
|
7
8
|
export declare const ResendToNonOpenersCampaignsResponseCampaign: core.serialization.ObjectSchema<serializers.ResendToNonOpenersCampaignsResponseCampaign.Raw, Sequenzy.ResendToNonOpenersCampaignsResponseCampaign>;
|
|
8
9
|
export declare namespace ResendToNonOpenersCampaignsResponseCampaign {
|
|
9
10
|
interface Raw {
|
|
11
|
+
attachments?: (StoredCampaignAttachment.Raw[] | null | undefined) | null;
|
|
10
12
|
bccEmails?: (string[] | null | undefined) | null;
|
|
11
13
|
blocks?: serializers.EmailBlock.Raw[] | null;
|
|
12
14
|
campaignData?: (Record<string, unknown> | null | undefined) | null;
|
|
@@ -30,7 +30,9 @@ const serializers = __importStar(require("../../../index.js"));
|
|
|
30
30
|
const CampaignChannel_js_1 = require("../../../types/CampaignChannel.js");
|
|
31
31
|
const CampaignStatus_js_1 = require("../../../types/CampaignStatus.js");
|
|
32
32
|
const EmailPreset_js_1 = require("../../../types/EmailPreset.js");
|
|
33
|
+
const StoredCampaignAttachment_js_1 = require("../../../types/StoredCampaignAttachment.js");
|
|
33
34
|
exports.ResendToNonOpenersCampaignsResponseCampaign = core.serialization.object({
|
|
35
|
+
attachments: core.serialization.list(StoredCampaignAttachment_js_1.StoredCampaignAttachment).optionalNullable(),
|
|
34
36
|
bccEmails: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
35
37
|
blocks: core.serialization.list(core.serialization.lazyObject(() => serializers.EmailBlock)).optional(),
|
|
36
38
|
campaignData: core.serialization
|
|
@@ -2,11 +2,13 @@ import type * as Sequenzy from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { BlockFieldWarnings } from "../../../types/BlockFieldWarnings.js";
|
|
5
|
+
import { IgnoredFields } from "../../../types/IgnoredFields.js";
|
|
5
6
|
import { UpdateCampaignsResponseCampaign } from "./UpdateCampaignsResponseCampaign.js";
|
|
6
7
|
export declare const UpdateCampaignsResponse: core.serialization.ObjectSchema<serializers.UpdateCampaignsResponse.Raw, Sequenzy.UpdateCampaignsResponse>;
|
|
7
8
|
export declare namespace UpdateCampaignsResponse {
|
|
8
9
|
interface Raw {
|
|
9
10
|
campaign: UpdateCampaignsResponseCampaign.Raw;
|
|
11
|
+
ignoredFields?: IgnoredFields.Raw | null;
|
|
10
12
|
success: boolean;
|
|
11
13
|
warnings?: BlockFieldWarnings.Raw | null;
|
|
12
14
|
}
|
|
@@ -27,9 +27,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.UpdateCampaignsResponse = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../core/index.js"));
|
|
29
29
|
const BlockFieldWarnings_js_1 = require("../../../types/BlockFieldWarnings.js");
|
|
30
|
+
const IgnoredFields_js_1 = require("../../../types/IgnoredFields.js");
|
|
30
31
|
const UpdateCampaignsResponseCampaign_js_1 = require("./UpdateCampaignsResponseCampaign.js");
|
|
31
32
|
exports.UpdateCampaignsResponse = core.serialization.object({
|
|
32
33
|
campaign: UpdateCampaignsResponseCampaign_js_1.UpdateCampaignsResponseCampaign,
|
|
34
|
+
ignoredFields: IgnoredFields_js_1.IgnoredFields.optional(),
|
|
33
35
|
success: core.serialization.boolean(),
|
|
34
36
|
warnings: BlockFieldWarnings_js_1.BlockFieldWarnings.optional(),
|
|
35
37
|
});
|
package/dist/cjs/serialization/resources/campaigns/types/UpdateCampaignsResponseCampaign.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import type * as Sequenzy from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { EmailPreset } from "../../../types/EmailPreset.js";
|
|
5
|
+
import { StoredCampaignAttachment } from "../../../types/StoredCampaignAttachment.js";
|
|
5
6
|
export declare const UpdateCampaignsResponseCampaign: core.serialization.ObjectSchema<serializers.UpdateCampaignsResponseCampaign.Raw, Sequenzy.UpdateCampaignsResponseCampaign>;
|
|
6
7
|
export declare namespace UpdateCampaignsResponseCampaign {
|
|
7
8
|
interface Raw {
|
|
9
|
+
attachments?: (StoredCampaignAttachment.Raw[] | null | undefined) | null;
|
|
8
10
|
bccEmails?: (string[] | null | undefined) | null;
|
|
9
11
|
ccEmails?: (string[] | null | undefined) | null;
|
|
10
12
|
emailId?: string | null;
|
|
@@ -27,7 +27,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.UpdateCampaignsResponseCampaign = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../core/index.js"));
|
|
29
29
|
const EmailPreset_js_1 = require("../../../types/EmailPreset.js");
|
|
30
|
+
const StoredCampaignAttachment_js_1 = require("../../../types/StoredCampaignAttachment.js");
|
|
30
31
|
exports.UpdateCampaignsResponseCampaign = core.serialization.object({
|
|
32
|
+
attachments: core.serialization.list(StoredCampaignAttachment_js_1.StoredCampaignAttachment).optionalNullable(),
|
|
31
33
|
bccEmails: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
32
34
|
ccEmails: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
33
35
|
emailId: core.serialization.string().optional(),
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Sequenzy from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
export declare const CampaignAttachmentInput: core.serialization.ObjectSchema<serializers.CampaignAttachmentInput.Raw, Sequenzy.CampaignAttachmentInput>;
|
|
5
|
+
export declare namespace CampaignAttachmentInput {
|
|
6
|
+
interface Raw {
|
|
7
|
+
content?: string | null;
|
|
8
|
+
contentType?: string | null;
|
|
9
|
+
filename: string;
|
|
10
|
+
path?: string | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.CampaignAttachmentInput = void 0;
|
|
28
|
+
const core = __importStar(require("../../core/index.js"));
|
|
29
|
+
exports.CampaignAttachmentInput = core.serialization.object({
|
|
30
|
+
content: core.serialization.string().optional(),
|
|
31
|
+
contentType: core.serialization.string().optional(),
|
|
32
|
+
filename: core.serialization.string(),
|
|
33
|
+
path: core.serialization.string().optional(),
|
|
34
|
+
});
|
|
@@ -2,9 +2,11 @@ import type * as Sequenzy from "../../api/index.js";
|
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import * as serializers from "../index.js";
|
|
4
4
|
import { CampaignSummary } from "./CampaignSummary.js";
|
|
5
|
+
import { StoredCampaignAttachment } from "./StoredCampaignAttachment.js";
|
|
5
6
|
export declare const CampaignDetail: core.serialization.ObjectSchema<serializers.CampaignDetail.Raw, Sequenzy.CampaignDetail>;
|
|
6
7
|
export declare namespace CampaignDetail {
|
|
7
8
|
interface Raw extends CampaignSummary.Raw {
|
|
9
|
+
attachments?: (StoredCampaignAttachment.Raw[] | null | undefined) | null;
|
|
8
10
|
bccEmails?: (string[] | null | undefined) | null;
|
|
9
11
|
blocks?: serializers.EmailBlock.Raw[] | null;
|
|
10
12
|
campaignData?: (Record<string, unknown> | null | undefined) | null;
|
|
@@ -28,8 +28,10 @@ exports.CampaignDetail = void 0;
|
|
|
28
28
|
const core = __importStar(require("../../core/index.js"));
|
|
29
29
|
const serializers = __importStar(require("../index.js"));
|
|
30
30
|
const CampaignSummary_js_1 = require("./CampaignSummary.js");
|
|
31
|
+
const StoredCampaignAttachment_js_1 = require("./StoredCampaignAttachment.js");
|
|
31
32
|
exports.CampaignDetail = core.serialization
|
|
32
33
|
.object({
|
|
34
|
+
attachments: core.serialization.list(StoredCampaignAttachment_js_1.StoredCampaignAttachment).optionalNullable(),
|
|
33
35
|
bccEmails: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
34
36
|
blocks: core.serialization.list(core.serialization.lazyObject(() => serializers.EmailBlock)).optional(),
|
|
35
37
|
campaignData: core.serialization
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Sequenzy from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
import { IgnoredFieldsItem } from "./IgnoredFieldsItem.js";
|
|
5
|
+
export declare const IgnoredFields: core.serialization.Schema<serializers.IgnoredFields.Raw, Sequenzy.IgnoredFields>;
|
|
6
|
+
export declare namespace IgnoredFields {
|
|
7
|
+
type Raw = IgnoredFieldsItem.Raw[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.IgnoredFields = void 0;
|
|
28
|
+
const core = __importStar(require("../../core/index.js"));
|
|
29
|
+
const IgnoredFieldsItem_js_1 = require("./IgnoredFieldsItem.js");
|
|
30
|
+
exports.IgnoredFields = core.serialization.list(IgnoredFieldsItem_js_1.IgnoredFieldsItem);
|