sequenzy 2.1.6 → 2.1.10
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/analytics/types/GetSequenceMetricsResponseStepsItem.d.ts +2 -0
- package/dist/cjs/api/resources/emailComponents/client/Client.d.ts +21 -0
- package/dist/cjs/api/resources/emailComponents/client/Client.js +79 -0
- package/dist/cjs/api/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.js +3 -0
- package/dist/cjs/api/resources/emailComponents/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/emailComponents/types/DuplicateEmailComponentsResponse.d.ts +5 -0
- package/dist/cjs/api/resources/emailComponents/types/DuplicateEmailComponentsResponse.js +3 -0
- package/dist/cjs/api/resources/emailComponents/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/emailComponents/types/index.js +1 -0
- package/dist/cjs/api/resources/integrations/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/integrations/client/Client.js +3 -3
- package/dist/cjs/api/resources/integrations/client/requests/ConnectIntegrationsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/integrations/client/requests/UpdateAttioSettingsRequest.d.ts +9 -1
- package/dist/cjs/api/resources/sequences/types/GetStatsSequencesResponseStepsItem.d.ts +2 -0
- package/dist/cjs/api/types/IntegrationAttioMapping.d.ts +18 -4
- package/dist/cjs/api/types/IntegrationAttioMappingInbound.d.ts +14 -0
- package/dist/cjs/api/types/IntegrationAttioMappingInbound.js +3 -0
- package/dist/cjs/api/types/IntegrationAttioMappingInboundStatus.d.ts +7 -0
- package/dist/cjs/api/types/IntegrationAttioMappingInboundStatus.js +10 -0
- package/dist/cjs/api/types/IntegrationDetailIntegration.d.ts +1 -1
- package/dist/cjs/api/types/IntegrationSummary.d.ts +1 -1
- package/dist/cjs/api/types/SequenceAudience.d.ts +3 -0
- package/dist/cjs/api/types/SequenceAudienceEnrollment.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/serialization/resources/analytics/types/GetSequenceMetricsResponseStepsItem.d.ts +2 -0
- package/dist/cjs/serialization/resources/analytics/types/GetSequenceMetricsResponseStepsItem.js +2 -0
- package/dist/cjs/serialization/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.js +31 -0
- package/dist/cjs/serialization/resources/emailComponents/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/emailComponents/client/requests/index.js +3 -1
- package/dist/cjs/serialization/resources/emailComponents/types/DuplicateEmailComponentsResponse.d.ts +11 -0
- package/dist/cjs/serialization/resources/emailComponents/types/DuplicateEmailComponentsResponse.js +33 -0
- package/dist/cjs/serialization/resources/emailComponents/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/emailComponents/types/index.js +1 -0
- package/dist/cjs/serialization/resources/integrations/client/requests/UpdateAttioSettingsRequest.d.ts +4 -0
- package/dist/cjs/serialization/resources/integrations/client/requests/UpdateAttioSettingsRequest.js +4 -0
- package/dist/cjs/serialization/resources/sequences/types/GetStatsSequencesResponseStepsItem.d.ts +2 -0
- package/dist/cjs/serialization/resources/sequences/types/GetStatsSequencesResponseStepsItem.js +2 -0
- package/dist/cjs/serialization/types/IntegrationAttioMapping.d.ts +8 -0
- package/dist/cjs/serialization/types/IntegrationAttioMapping.js +8 -0
- package/dist/cjs/serialization/types/IntegrationAttioMappingInbound.d.ts +13 -0
- package/dist/cjs/serialization/types/IntegrationAttioMappingInbound.js +35 -0
- package/dist/cjs/serialization/types/IntegrationAttioMappingInboundStatus.d.ts +7 -0
- package/dist/cjs/serialization/types/IntegrationAttioMappingInboundStatus.js +29 -0
- package/dist/cjs/serialization/types/SequenceAudience.d.ts +1 -0
- package/dist/cjs/serialization/types/SequenceAudience.js +1 -0
- package/dist/cjs/serialization/types/SequenceAudienceEnrollment.d.ts +1 -0
- package/dist/cjs/serialization/types/SequenceAudienceEnrollment.js +1 -0
- package/dist/cjs/serialization/types/index.d.ts +2 -0
- package/dist/cjs/serialization/types/index.js +2 -0
- package/dist/esm/api/resources/analytics/types/GetSequenceMetricsResponseStepsItem.d.ts +2 -0
- package/dist/esm/api/resources/emailComponents/client/Client.d.ts +21 -0
- package/dist/esm/api/resources/emailComponents/client/Client.js +79 -0
- package/dist/esm/api/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.d.ts +12 -0
- package/dist/esm/api/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.js +2 -0
- package/dist/esm/api/resources/emailComponents/client/requests/index.d.ts +1 -0
- package/dist/esm/api/resources/emailComponents/types/DuplicateEmailComponentsResponse.d.ts +5 -0
- package/dist/esm/api/resources/emailComponents/types/DuplicateEmailComponentsResponse.js +2 -0
- package/dist/esm/api/resources/emailComponents/types/index.d.ts +1 -0
- package/dist/esm/api/resources/emailComponents/types/index.js +1 -0
- package/dist/esm/api/resources/integrations/client/Client.d.ts +3 -3
- package/dist/esm/api/resources/integrations/client/Client.js +3 -3
- package/dist/esm/api/resources/integrations/client/requests/ConnectIntegrationsRequest.d.ts +1 -1
- package/dist/esm/api/resources/integrations/client/requests/UpdateAttioSettingsRequest.d.ts +9 -1
- package/dist/esm/api/resources/sequences/types/GetStatsSequencesResponseStepsItem.d.ts +2 -0
- package/dist/esm/api/types/IntegrationAttioMapping.d.ts +18 -4
- package/dist/esm/api/types/IntegrationAttioMappingInbound.d.ts +14 -0
- package/dist/esm/api/types/IntegrationAttioMappingInbound.js +2 -0
- package/dist/esm/api/types/IntegrationAttioMappingInboundStatus.d.ts +7 -0
- package/dist/esm/api/types/IntegrationAttioMappingInboundStatus.js +7 -0
- package/dist/esm/api/types/IntegrationDetailIntegration.d.ts +1 -1
- package/dist/esm/api/types/IntegrationSummary.d.ts +1 -1
- package/dist/esm/api/types/SequenceAudience.d.ts +3 -0
- package/dist/esm/api/types/SequenceAudienceEnrollment.d.ts +2 -0
- package/dist/esm/api/types/index.d.ts +2 -0
- package/dist/esm/api/types/index.js +2 -0
- package/dist/esm/serialization/resources/analytics/types/GetSequenceMetricsResponseStepsItem.d.ts +2 -0
- package/dist/esm/serialization/resources/analytics/types/GetSequenceMetricsResponseStepsItem.js +2 -0
- package/dist/esm/serialization/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.d.ts +9 -0
- package/dist/esm/serialization/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.js +5 -0
- package/dist/esm/serialization/resources/emailComponents/client/requests/index.d.ts +1 -0
- package/dist/esm/serialization/resources/emailComponents/client/requests/index.js +1 -0
- package/dist/esm/serialization/resources/emailComponents/types/DuplicateEmailComponentsResponse.d.ts +11 -0
- package/dist/esm/serialization/resources/emailComponents/types/DuplicateEmailComponentsResponse.js +7 -0
- package/dist/esm/serialization/resources/emailComponents/types/index.d.ts +1 -0
- package/dist/esm/serialization/resources/emailComponents/types/index.js +1 -0
- package/dist/esm/serialization/resources/integrations/client/requests/UpdateAttioSettingsRequest.d.ts +4 -0
- package/dist/esm/serialization/resources/integrations/client/requests/UpdateAttioSettingsRequest.js +4 -0
- package/dist/esm/serialization/resources/sequences/types/GetStatsSequencesResponseStepsItem.d.ts +2 -0
- package/dist/esm/serialization/resources/sequences/types/GetStatsSequencesResponseStepsItem.js +2 -0
- package/dist/esm/serialization/types/IntegrationAttioMapping.d.ts +8 -0
- package/dist/esm/serialization/types/IntegrationAttioMapping.js +8 -0
- package/dist/esm/serialization/types/IntegrationAttioMappingInbound.d.ts +13 -0
- package/dist/esm/serialization/types/IntegrationAttioMappingInbound.js +9 -0
- package/dist/esm/serialization/types/IntegrationAttioMappingInboundStatus.d.ts +7 -0
- package/dist/esm/serialization/types/IntegrationAttioMappingInboundStatus.js +3 -0
- package/dist/esm/serialization/types/SequenceAudience.d.ts +1 -0
- package/dist/esm/serialization/types/SequenceAudience.js +1 -0
- package/dist/esm/serialization/types/SequenceAudienceEnrollment.d.ts +1 -0
- package/dist/esm/serialization/types/SequenceAudienceEnrollment.js +1 -0
- package/dist/esm/serialization/types/index.d.ts +2 -0
- package/dist/esm/serialization/types/index.js +2 -0
- package/package.json +1 -1
|
@@ -6,6 +6,8 @@ export interface GetSequenceMetricsResponseStepsItem {
|
|
|
6
6
|
failedSubscribers?: Sequenzy.GetSequenceMetricsResponseStepsItemFailedSubscribersItem[];
|
|
7
7
|
/** Node ID for this email step */
|
|
8
8
|
nodeId?: string;
|
|
9
|
+
/** Lifetime Poll and NPS summaries for this step, in the same shape as the campaign stats polls. Each subscriber counts once per poll block with their latest answer. Not limited by period, start or end. Omitted when the step has no responses. Pass nodeId as the campaign ID to the poll-responses endpoint to list the individual respondents. */
|
|
10
|
+
polls?: Sequenzy.PollResultsSummary[];
|
|
9
11
|
stats?: Sequenzy.EngagementStats;
|
|
10
12
|
/** Step number (1-indexed) */
|
|
11
13
|
step?: number;
|
|
@@ -54,6 +54,27 @@ export declare class EmailComponentsClient {
|
|
|
54
54
|
*/
|
|
55
55
|
delete(request: Sequenzy.DeleteEmailComponentsRequest, requestOptions?: EmailComponentsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.DeleteEmailComponentsResponse>;
|
|
56
56
|
private __delete;
|
|
57
|
+
/**
|
|
58
|
+
* Creates a new component with the same description, type and blocks as an existing one. Without a name, the copy is called "<name> (Copy)", or "<name> (Copy 2)" and so on when that name is taken. Duplicating a copy keeps a single "(Copy N)" suffix. The copy is never pinned as a default, so duplicating the default footer gives a regular component.
|
|
59
|
+
*
|
|
60
|
+
* @param {Sequenzy.DuplicateEmailComponentsRequest} request
|
|
61
|
+
* @param {EmailComponentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
64
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
65
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
66
|
+
* @throws {@link Sequenzy.ConflictError}
|
|
67
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
68
|
+
* @throws {@link errors.SequenzyError}
|
|
69
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* await client.emailComponents.duplicate({
|
|
73
|
+
* componentId: "componentId"
|
|
74
|
+
* })
|
|
75
|
+
*/
|
|
76
|
+
duplicate(request: Sequenzy.DuplicateEmailComponentsRequest, requestOptions?: EmailComponentsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.DuplicateEmailComponentsResponse>;
|
|
77
|
+
private __duplicate;
|
|
57
78
|
/**
|
|
58
79
|
* Returns a single email component by id.
|
|
59
80
|
*
|
|
@@ -183,6 +183,85 @@ class EmailComponentsClient {
|
|
|
183
183
|
}
|
|
184
184
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/email-components/{componentId}");
|
|
185
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Creates a new component with the same description, type and blocks as an existing one. Without a name, the copy is called "<name> (Copy)", or "<name> (Copy 2)" and so on when that name is taken. Duplicating a copy keeps a single "(Copy N)" suffix. The copy is never pinned as a default, so duplicating the default footer gives a regular component.
|
|
188
|
+
*
|
|
189
|
+
* @param {Sequenzy.DuplicateEmailComponentsRequest} request
|
|
190
|
+
* @param {EmailComponentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
|
+
*
|
|
192
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
193
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
194
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
195
|
+
* @throws {@link Sequenzy.ConflictError}
|
|
196
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
197
|
+
* @throws {@link errors.SequenzyError}
|
|
198
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* await client.emailComponents.duplicate({
|
|
202
|
+
* componentId: "componentId"
|
|
203
|
+
* })
|
|
204
|
+
*/
|
|
205
|
+
duplicate(request, requestOptions) {
|
|
206
|
+
return core.HttpResponsePromise.fromPromise(this.__duplicate(request, requestOptions));
|
|
207
|
+
}
|
|
208
|
+
async __duplicate(request, requestOptions) {
|
|
209
|
+
const { componentId, ..._body } = request;
|
|
210
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
211
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
212
|
+
const _response = await core.fetcher({
|
|
213
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
214
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
215
|
+
environments.SequenzyEnvironment.Default, `email-components/${core.url.encodePathParam(componentId)}/duplicate`),
|
|
216
|
+
method: "POST",
|
|
217
|
+
headers: _headers,
|
|
218
|
+
contentType: "application/json",
|
|
219
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
220
|
+
requestType: "json",
|
|
221
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.DuplicateEmailComponentsRequest.jsonOrThrow(_body, {
|
|
222
|
+
unrecognizedObjectKeys: "strip",
|
|
223
|
+
omitUndefined: true,
|
|
224
|
+
}), requestOptions?.additionalBodyParameters),
|
|
225
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
226
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
227
|
+
abortSignal: requestOptions?.abortSignal,
|
|
228
|
+
fetchFn: this._options?.fetch,
|
|
229
|
+
logging: this._options.logging,
|
|
230
|
+
});
|
|
231
|
+
if (_response.ok) {
|
|
232
|
+
return {
|
|
233
|
+
data: serializers.DuplicateEmailComponentsResponse.parseOrThrow(_response.body, {
|
|
234
|
+
unrecognizedObjectKeys: "passthrough",
|
|
235
|
+
allowUnrecognizedUnionMembers: true,
|
|
236
|
+
allowUnrecognizedEnumValues: true,
|
|
237
|
+
skipValidation: true,
|
|
238
|
+
breadcrumbsPrefix: ["response"],
|
|
239
|
+
}),
|
|
240
|
+
rawResponse: _response.rawResponse,
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
if (_response.error.reason === "status-code") {
|
|
244
|
+
switch (_response.error.statusCode) {
|
|
245
|
+
case 400:
|
|
246
|
+
throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
|
|
247
|
+
case 401:
|
|
248
|
+
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
249
|
+
case 404:
|
|
250
|
+
throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
|
|
251
|
+
case 409:
|
|
252
|
+
throw new Sequenzy.ConflictError(_response.error.body, _response.rawResponse);
|
|
253
|
+
case 503:
|
|
254
|
+
throw new Sequenzy.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
255
|
+
default:
|
|
256
|
+
throw new errors.SequenzyError({
|
|
257
|
+
statusCode: _response.error.statusCode,
|
|
258
|
+
body: _response.error.body,
|
|
259
|
+
rawResponse: _response.rawResponse,
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/email-components/{componentId}/duplicate");
|
|
264
|
+
}
|
|
186
265
|
/**
|
|
187
266
|
* Returns a single email component by id.
|
|
188
267
|
*
|
package/dist/cjs/api/resources/emailComponents/client/requests/DuplicateEmailComponentsRequest.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* componentId: "componentId"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface DuplicateEmailComponentsRequest {
|
|
8
|
+
/** ID of the component to copy. */
|
|
9
|
+
componentId: string;
|
|
10
|
+
/** Name for the copy, unique within the company. Omit it to use the default copy name. */
|
|
11
|
+
name?: string;
|
|
12
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { CreateEmailComponentsRequest } from "./CreateEmailComponentsRequest.js";
|
|
2
2
|
export type { DeleteEmailComponentsRequest } from "./DeleteEmailComponentsRequest.js";
|
|
3
|
+
export type { DuplicateEmailComponentsRequest } from "./DuplicateEmailComponentsRequest.js";
|
|
3
4
|
export type { GetDefaultEmailComponentsRequest } from "./GetDefaultEmailComponentsRequest.js";
|
|
4
5
|
export type { GetEmailComponentsRequest } from "./GetEmailComponentsRequest.js";
|
|
5
6
|
export type { ListEmailComponentsRequest } from "./ListEmailComponentsRequest.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CreateEmailComponentsRequestComponentType.js";
|
|
2
2
|
export * from "./CreateEmailComponentsResponse.js";
|
|
3
3
|
export * from "./DeleteEmailComponentsResponse.js";
|
|
4
|
+
export * from "./DuplicateEmailComponentsResponse.js";
|
|
4
5
|
export * from "./GetDefaultEmailComponentsRequestSlot.js";
|
|
5
6
|
export * from "./GetDefaultEmailComponentsResponse.js";
|
|
6
7
|
export * from "./GetEmailComponentsResponse.js";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./CreateEmailComponentsRequestComponentType.js"), exports);
|
|
18
18
|
__exportStar(require("./CreateEmailComponentsResponse.js"), exports);
|
|
19
19
|
__exportStar(require("./DeleteEmailComponentsResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./DuplicateEmailComponentsResponse.js"), exports);
|
|
20
21
|
__exportStar(require("./GetDefaultEmailComponentsRequestSlot.js"), exports);
|
|
21
22
|
__exportStar(require("./GetDefaultEmailComponentsResponse.js"), exports);
|
|
22
23
|
__exportStar(require("./GetEmailComponentsResponse.js"), exports);
|
|
@@ -30,7 +30,7 @@ export declare class IntegrationsClient {
|
|
|
30
30
|
activatePixel(request: Sequenzy.ActivatePixelIntegrationsRequest, requestOptions?: IntegrationsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.ActivatePixelIntegrationsResponse>;
|
|
31
31
|
private __activatePixel;
|
|
32
32
|
/**
|
|
33
|
-
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, or attio. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and Superwall, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio
|
|
33
|
+
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, or attio. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and Superwall, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio registers its own webhook when inbound mappings are saved, so it takes no webhookSecret. Reconnecting replaces stored credentials. OAuth and app-install providers require the dashboard. Requires the integrations:manage scope.
|
|
34
34
|
*
|
|
35
35
|
* @param {Sequenzy.ConnectIntegrationsRequest} request
|
|
36
36
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -92,7 +92,7 @@ export declare class IntegrationsClient {
|
|
|
92
92
|
get(request: Sequenzy.GetIntegrationsRequest, requestOptions?: IntegrationsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.IntegrationDetail>;
|
|
93
93
|
private __get;
|
|
94
94
|
/**
|
|
95
|
-
* Reads a connected Attio integration's saved
|
|
95
|
+
* Reads a connected Attio integration's two-way sync settings (every saved map in both directions, syncRemovals, inbound sync health), this company's Sequenzy lists, and live Attio people-lists using the stored access token. Tag names are not included; use the tags API. Call this before updating mappings so you have Attio list ids or slugs. Attio only. Requires the account:read and lists:read scopes.
|
|
96
96
|
*
|
|
97
97
|
* @param {Sequenzy.GetAttioMappingRequest} request
|
|
98
98
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -202,7 +202,7 @@ export declare class IntegrationsClient {
|
|
|
202
202
|
sync(request: Sequenzy.SyncIntegrationsRequest, requestOptions?: IntegrationsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.SyncIntegrationsResponse>;
|
|
203
203
|
private __sync;
|
|
204
204
|
/**
|
|
205
|
-
* Saves
|
|
205
|
+
* Saves the two-way sync of an already-connected Attio integration using the stored access token. listMap and tagMap push Sequenzy lists and tags to Attio lists; inboundListMap and inboundTagMap pull Attio lists into Sequenzy lists and tags, which creates or updates subscribers and triggers list and tag automations. Saving an inbound map registers an Attio webhook with the stored token and needs the webhook:read-write scope; without it the request fails and nothing is saved. syncRemovals mirrors removals in every mapped direction. Each map is a full replacement when provided; an empty object clears it. Does not require the secret again. Provide at least one field. Idempotent. Attio only. Requires the integrations:manage scope.
|
|
206
206
|
*
|
|
207
207
|
* @param {Sequenzy.UpdateAttioSettingsRequest} request
|
|
208
208
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -106,7 +106,7 @@ class IntegrationsClient {
|
|
|
106
106
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/integrations/{id}/pixel");
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, or attio. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and Superwall, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio
|
|
109
|
+
* Connects an API-key / webhook-secret integration: polar, paddle, dodo, lemon_squeezy, whop, revenuecat, superwall, creem, chargebee, clerk, posthog, segment, affonso, or attio. Credentials are validated, stored encrypted, and never returned. Lemon Squeezy creates a managed signed webhook when webhookSecret is omitted, or uses a caller-managed secret as fallback. Payment providers queue their initial revenue backfill, except RevenueCat and Superwall, which are webhook-only; Affonso queues its affiliate backfill; PostHog and Segment can optionally import event history. Attio registers its own webhook when inbound mappings are saved, so it takes no webhookSecret. Reconnecting replaces stored credentials. OAuth and app-install providers require the dashboard. Requires the integrations:manage scope.
|
|
110
110
|
*
|
|
111
111
|
* @param {Sequenzy.ConnectIntegrationsRequest} request
|
|
112
112
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -327,7 +327,7 @@ class IntegrationsClient {
|
|
|
327
327
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/integrations/{id}");
|
|
328
328
|
}
|
|
329
329
|
/**
|
|
330
|
-
* Reads a connected Attio integration's saved
|
|
330
|
+
* Reads a connected Attio integration's two-way sync settings (every saved map in both directions, syncRemovals, inbound sync health), this company's Sequenzy lists, and live Attio people-lists using the stored access token. Tag names are not included; use the tags API. Call this before updating mappings so you have Attio list ids or slugs. Attio only. Requires the account:read and lists:read scopes.
|
|
331
331
|
*
|
|
332
332
|
* @param {Sequenzy.GetAttioMappingRequest} request
|
|
333
333
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -759,7 +759,7 @@ class IntegrationsClient {
|
|
|
759
759
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/integrations/{id}/sync");
|
|
760
760
|
}
|
|
761
761
|
/**
|
|
762
|
-
* Saves
|
|
762
|
+
* Saves the two-way sync of an already-connected Attio integration using the stored access token. listMap and tagMap push Sequenzy lists and tags to Attio lists; inboundListMap and inboundTagMap pull Attio lists into Sequenzy lists and tags, which creates or updates subscribers and triggers list and tag automations. Saving an inbound map registers an Attio webhook with the stored token and needs the webhook:read-write scope; without it the request fails and nothing is saved. syncRemovals mirrors removals in every mapped direction. Each map is a full replacement when provided; an empty object clears it. Does not require the secret again. Provide at least one field. Idempotent. Attio only. Requires the integrations:manage scope.
|
|
763
763
|
*
|
|
764
764
|
* @param {Sequenzy.UpdateAttioSettingsRequest} request
|
|
765
765
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -16,6 +16,6 @@ export interface ConnectIntegrationsRequest {
|
|
|
16
16
|
providerAccountId?: string;
|
|
17
17
|
/** PostHog and Segment: event delivery scope. Attio: listMap (Sequenzy list id to Attio list id or slug) and syncCompanyFromDomain. */
|
|
18
18
|
settings?: Sequenzy.ConnectIntegrationsRequestSettings;
|
|
19
|
-
/** Signing secret of the provider webhook. Optional for lemon_squeezy managed provisioning and
|
|
19
|
+
/** Signing secret of the provider webhook. Optional for lemon_squeezy managed provisioning and not used by attio; required for other providers. Lemon Squeezy manual secrets use 16-40 characters. For Chargebee, pass username:password. For RevenueCat, pass at least 16 characters: the authorization header value set on the RevenueCat webhook, or its HMAC signing secret. For Superwall, pass the webhook's whsec_ signing secret, the only credential it needs. For Segment, use 16-153 UTF-8 bytes. */
|
|
20
20
|
webhookSecret?: string;
|
|
21
21
|
}
|
|
@@ -7,8 +7,16 @@
|
|
|
7
7
|
export interface UpdateAttioSettingsRequest {
|
|
8
8
|
/** Attio integration ID. */
|
|
9
9
|
id: string;
|
|
10
|
-
/**
|
|
10
|
+
/** Attio to Sequenzy. Complete Attio list UUID or api slug to Sequenzy list id map. Saved with Attio list UUIDs. Needs webhook:read-write on the Attio token. */
|
|
11
|
+
inboundListMap?: Record<string, string>;
|
|
12
|
+
/** Attio to Sequenzy. Complete Attio list UUID or api slug to Sequenzy tag name map. Needs webhook:read-write on the Attio token. */
|
|
13
|
+
inboundTagMap?: Record<string, string>;
|
|
14
|
+
/** Sequenzy to Attio. Complete Sequenzy list id to Attio list UUID or api slug map. Replaces the saved map. Pass {} to clear every mapping. */
|
|
11
15
|
listMap?: Record<string, string>;
|
|
12
16
|
/** When true, upsert a company from the person's non-free-mail email domain. */
|
|
13
17
|
syncCompanyFromDomain?: boolean;
|
|
18
|
+
/** Mirror removals in every mapped direction. Defaults to false (add-only). */
|
|
19
|
+
syncRemovals?: boolean;
|
|
20
|
+
/** Sequenzy to Attio. Complete Sequenzy tag name to Attio list UUID or api slug map. Tag names are normalized (lowercase, spaces become dashes), at most 255 characters. */
|
|
21
|
+
tagMap?: Record<string, string>;
|
|
14
22
|
}
|
|
@@ -6,6 +6,8 @@ export interface GetStatsSequencesResponseStepsItem {
|
|
|
6
6
|
failedSubscribers?: Sequenzy.GetStatsSequencesResponseStepsItemFailedSubscribersItem[];
|
|
7
7
|
/** Node ID for this email step. */
|
|
8
8
|
nodeId?: string;
|
|
9
|
+
/** Lifetime Poll and NPS summaries for this step, in the same shape as the campaign stats polls. Each subscriber counts once per poll block with their latest answer. Not limited by period, start or end. Omitted when the step has no responses. */
|
|
10
|
+
polls?: Sequenzy.PollResultsSummary[];
|
|
9
11
|
stats?: Sequenzy.EngagementStats;
|
|
10
12
|
/** Step number. */
|
|
11
13
|
step?: number;
|
|
@@ -1,23 +1,37 @@
|
|
|
1
1
|
import type * as Sequenzy from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Attio
|
|
3
|
+
* Two-way Attio sync settings for a connected integration: saved maps in both directions, removal mirroring, inbound sync health, live people-lists from Attio, and this company's Sequenzy lists.
|
|
4
4
|
*/
|
|
5
5
|
export interface IntegrationAttioMapping {
|
|
6
6
|
/** Attio people-lists the stored token can write, read live. */
|
|
7
7
|
attioLists?: Sequenzy.IntegrationAttioMappingAttioListsItem[];
|
|
8
8
|
/** Present on PATCH. False when already in the requested state. */
|
|
9
9
|
changed?: boolean;
|
|
10
|
-
/** Present on PATCH. Which settings actually moved. */
|
|
10
|
+
/** Present on PATCH. Which settings actually moved (listMap, tagMap, inboundListMap, inboundTagMap, syncRemovals, syncCompanyFromDomain), plus inboundWebhook when the save set up, repaired or removed the Attio webhook. */
|
|
11
11
|
changedFields?: string[];
|
|
12
|
+
/** Inbound sync health. */
|
|
13
|
+
inbound?: Sequenzy.IntegrationAttioMappingInbound;
|
|
14
|
+
/** Attio to Sequenzy. Attio list UUID to Sequenzy list id. */
|
|
15
|
+
inboundListMap?: Record<string, string>;
|
|
16
|
+
/** Number of saved Attio to Sequenzy mappings whose Attio source and Sequenzy target both still exist. */
|
|
17
|
+
inboundMappingCount?: number;
|
|
18
|
+
/** Attio to Sequenzy. Attio list UUID to Sequenzy tag name. */
|
|
19
|
+
inboundTagMap?: Record<string, string>;
|
|
12
20
|
integrationId?: string;
|
|
13
|
-
/** Sequenzy list id to Attio list UUID or api slug. */
|
|
21
|
+
/** Sequenzy to Attio. Sequenzy list id to Attio list UUID or api slug. */
|
|
14
22
|
listMap?: Record<string, string>;
|
|
15
|
-
/** Number of saved
|
|
23
|
+
/** Number of saved listMap entries whose Sequenzy source and Attio target lists both still exist. Stale saved entries remain in listMap but are not counted. */
|
|
16
24
|
mappedListCount?: number;
|
|
25
|
+
/** Number of saved tagMap entries whose Attio target list still exists. */
|
|
26
|
+
mappedTagCount?: number;
|
|
17
27
|
message?: string;
|
|
18
28
|
provider?: string;
|
|
19
29
|
sequenzyLists?: Sequenzy.IntegrationAttioMappingSequenzyListsItem[];
|
|
20
30
|
success?: boolean;
|
|
21
31
|
/** When true, upsert a company from the person's non-free-mail email domain. */
|
|
22
32
|
syncCompanyFromDomain?: boolean;
|
|
33
|
+
/** Whether removals are mirrored in every mapped direction. False means the sync only adds people. */
|
|
34
|
+
syncRemovals?: boolean;
|
|
35
|
+
/** Sequenzy to Attio. Sequenzy tag name to Attio list UUID or api slug. */
|
|
36
|
+
tagMap?: Record<string, string>;
|
|
23
37
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Sequenzy from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Inbound sync health.
|
|
4
|
+
*/
|
|
5
|
+
export interface IntegrationAttioMappingInbound {
|
|
6
|
+
/** True when at least one Attio list pulls into Sequenzy. */
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
/** What to fix when status is error. */
|
|
9
|
+
error?: string | null;
|
|
10
|
+
/** off without inbound mappings, active when the Attio webhook is set up, error otherwise. */
|
|
11
|
+
status?: Sequenzy.IntegrationAttioMappingInboundStatus;
|
|
12
|
+
/** URL Sequenzy registers in Attio. Never needs manual configuration. */
|
|
13
|
+
webhookUrl?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** off without inbound mappings, active when the Attio webhook is set up, error otherwise. */
|
|
2
|
+
export declare const IntegrationAttioMappingInboundStatus: {
|
|
3
|
+
readonly Off: "off";
|
|
4
|
+
readonly Active: "active";
|
|
5
|
+
readonly Error: "error";
|
|
6
|
+
};
|
|
7
|
+
export type IntegrationAttioMappingInboundStatus = (typeof IntegrationAttioMappingInboundStatus)[keyof typeof IntegrationAttioMappingInboundStatus];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.IntegrationAttioMappingInboundStatus = void 0;
|
|
5
|
+
/** off without inbound mappings, active when the Attio webhook is set up, error otherwise. */
|
|
6
|
+
exports.IntegrationAttioMappingInboundStatus = {
|
|
7
|
+
Off: "off",
|
|
8
|
+
Active: "active",
|
|
9
|
+
Error: "error",
|
|
10
|
+
};
|
|
@@ -3,7 +3,7 @@ export interface IntegrationDetailIntegration {
|
|
|
3
3
|
/** Provider category, or null for a provider with no catalog entry. */
|
|
4
4
|
category?: Sequenzy.IntegrationDetailIntegrationCategory | null;
|
|
5
5
|
connectedAt?: Date;
|
|
6
|
-
/** Allowlisted non-secret metadata. Never contains credentials. Attio includes listMap, mappedListCount, and
|
|
6
|
+
/** Allowlisted non-secret metadata. Never contains credentials. Attio includes listMap, mappedListCount, syncCompanyFromDomain, tagMap, inboundListMap, inboundTagMap, syncRemovals, and inboundSyncStatus (off, active, or error) for configuration diagnostics. */
|
|
7
7
|
details?: Record<string, unknown>;
|
|
8
8
|
disconnectedAt?: Date | null;
|
|
9
9
|
id?: string;
|
|
@@ -3,7 +3,7 @@ export interface IntegrationSummary {
|
|
|
3
3
|
/** Provider category, or null for a provider with no catalog entry. */
|
|
4
4
|
category?: Sequenzy.IntegrationSummaryCategory | null;
|
|
5
5
|
connectedAt?: Date;
|
|
6
|
-
/** Allowlisted non-secret metadata. Never contains credentials. Attio includes listMap, mappedListCount, and
|
|
6
|
+
/** Allowlisted non-secret metadata. Never contains credentials. Attio includes listMap, mappedListCount, syncCompanyFromDomain, tagMap, inboundListMap, inboundTagMap, syncRemovals, and inboundSyncStatus (off, active, or error) for configuration diagnostics. */
|
|
7
7
|
details?: Record<string, unknown>;
|
|
8
8
|
disconnectedAt?: Date | null;
|
|
9
9
|
id?: string;
|
|
@@ -5,12 +5,15 @@ import type * as Sequenzy from "../index.js";
|
|
|
5
5
|
export interface SequenceAudience {
|
|
6
6
|
/** For type rules; exclude rules. */
|
|
7
7
|
exclude?: Record<string, unknown>[];
|
|
8
|
+
/** Contacts removed from the include rules. Does not remove contacts listed in includedSubscriberIds. */
|
|
8
9
|
excludedSubscriberIds?: string[];
|
|
9
10
|
filterJoinOperator?: Sequenzy.SequenceAudienceFilterJoinOperator;
|
|
10
11
|
/** For type filtered; subscriber filters. */
|
|
11
12
|
filters?: Record<string, unknown>[];
|
|
12
13
|
/** For type rules; include rules of type all, lists, segments, or filtered. */
|
|
13
14
|
include?: Record<string, unknown>[];
|
|
15
|
+
/** Specific contacts to enroll in addition to the include rules. Use type rules with an empty include array to enroll only these contacts, with no per-request cap. IDs that belong to another company, or to contacts who are unsubscribed, bounced or without an email, are skipped. */
|
|
16
|
+
includedSubscriberIds?: string[];
|
|
14
17
|
/** For type lists. */
|
|
15
18
|
listIds?: string[];
|
|
16
19
|
/** For type segment. */
|
|
@@ -14,6 +14,8 @@ export interface SequenceAudienceEnrollment {
|
|
|
14
14
|
/** Audience size estimated when the run started. */
|
|
15
15
|
estimatedCount?: number;
|
|
16
16
|
id?: string;
|
|
17
|
+
/** Number of hand-picked contacts in `audience.includedSubscriberIds`, 0 when none. */
|
|
18
|
+
includedSubscriberCount?: number;
|
|
17
19
|
/** Subscribers scanned so far. */
|
|
18
20
|
processedCount?: number;
|
|
19
21
|
/** Delayed start. While set and in the future the run stays queued; cancel it before then to prevent the enrollment. */
|
|
@@ -324,6 +324,8 @@ export * from "./IntegrationActivityEntry.js";
|
|
|
324
324
|
export * from "./IntegrationActivityEntryStatus.js";
|
|
325
325
|
export * from "./IntegrationAttioMapping.js";
|
|
326
326
|
export * from "./IntegrationAttioMappingAttioListsItem.js";
|
|
327
|
+
export * from "./IntegrationAttioMappingInbound.js";
|
|
328
|
+
export * from "./IntegrationAttioMappingInboundStatus.js";
|
|
327
329
|
export * from "./IntegrationAttioMappingSequenzyListsItem.js";
|
|
328
330
|
export * from "./IntegrationDetail.js";
|
|
329
331
|
export * from "./IntegrationDetailActivity.js";
|
|
@@ -340,6 +340,8 @@ __exportStar(require("./IntegrationActivityEntry.js"), exports);
|
|
|
340
340
|
__exportStar(require("./IntegrationActivityEntryStatus.js"), exports);
|
|
341
341
|
__exportStar(require("./IntegrationAttioMapping.js"), exports);
|
|
342
342
|
__exportStar(require("./IntegrationAttioMappingAttioListsItem.js"), exports);
|
|
343
|
+
__exportStar(require("./IntegrationAttioMappingInbound.js"), exports);
|
|
344
|
+
__exportStar(require("./IntegrationAttioMappingInboundStatus.js"), exports);
|
|
343
345
|
__exportStar(require("./IntegrationAttioMappingSequenzyListsItem.js"), exports);
|
|
344
346
|
__exportStar(require("./IntegrationDetail.js"), exports);
|
|
345
347
|
__exportStar(require("./IntegrationDetailActivity.js"), exports);
|
package/dist/cjs/serialization/resources/analytics/types/GetSequenceMetricsResponseStepsItem.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ 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 { EngagementStats } from "../../../types/EngagementStats.js";
|
|
5
|
+
import { PollResultsSummary } from "../../../types/PollResultsSummary.js";
|
|
5
6
|
import { GetSequenceMetricsResponseStepsItemFailedSubscribersItem } from "./GetSequenceMetricsResponseStepsItemFailedSubscribersItem.js";
|
|
6
7
|
export declare const GetSequenceMetricsResponseStepsItem: core.serialization.ObjectSchema<serializers.GetSequenceMetricsResponseStepsItem.Raw, Sequenzy.GetSequenceMetricsResponseStepsItem>;
|
|
7
8
|
export declare namespace GetSequenceMetricsResponseStepsItem {
|
|
@@ -9,6 +10,7 @@ export declare namespace GetSequenceMetricsResponseStepsItem {
|
|
|
9
10
|
failedCount?: number | null;
|
|
10
11
|
failedSubscribers?: GetSequenceMetricsResponseStepsItemFailedSubscribersItem.Raw[] | null;
|
|
11
12
|
nodeId?: string | null;
|
|
13
|
+
polls?: PollResultsSummary.Raw[] | null;
|
|
12
14
|
stats?: EngagementStats.Raw | null;
|
|
13
15
|
step?: number | null;
|
|
14
16
|
subject?: (string | null | undefined) | null;
|
package/dist/cjs/serialization/resources/analytics/types/GetSequenceMetricsResponseStepsItem.js
CHANGED
|
@@ -27,11 +27,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.GetSequenceMetricsResponseStepsItem = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../core/index.js"));
|
|
29
29
|
const EngagementStats_js_1 = require("../../../types/EngagementStats.js");
|
|
30
|
+
const PollResultsSummary_js_1 = require("../../../types/PollResultsSummary.js");
|
|
30
31
|
const GetSequenceMetricsResponseStepsItemFailedSubscribersItem_js_1 = require("./GetSequenceMetricsResponseStepsItemFailedSubscribersItem.js");
|
|
31
32
|
exports.GetSequenceMetricsResponseStepsItem = core.serialization.object({
|
|
32
33
|
failedCount: core.serialization.number().optional(),
|
|
33
34
|
failedSubscribers: core.serialization.list(GetSequenceMetricsResponseStepsItemFailedSubscribersItem_js_1.GetSequenceMetricsResponseStepsItemFailedSubscribersItem).optional(),
|
|
34
35
|
nodeId: core.serialization.string().optional(),
|
|
36
|
+
polls: core.serialization.list(PollResultsSummary_js_1.PollResultsSummary).optional(),
|
|
35
37
|
stats: EngagementStats_js_1.EngagementStats.optional(),
|
|
36
38
|
step: core.serialization.number().optional(),
|
|
37
39
|
subject: core.serialization.string().optionalNullable(),
|
|
@@ -0,0 +1,9 @@
|
|
|
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 DuplicateEmailComponentsRequest: core.serialization.Schema<serializers.DuplicateEmailComponentsRequest.Raw, Omit<Sequenzy.DuplicateEmailComponentsRequest, "componentId">>;
|
|
5
|
+
export declare namespace DuplicateEmailComponentsRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
name?: string | null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.DuplicateEmailComponentsRequest = void 0;
|
|
28
|
+
const core = __importStar(require("../../../../../core/index.js"));
|
|
29
|
+
exports.DuplicateEmailComponentsRequest = core.serialization.object({
|
|
30
|
+
name: core.serialization.string().optional(),
|
|
31
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { CreateEmailComponentsRequest } from "./CreateEmailComponentsRequest.js";
|
|
2
|
+
export { DuplicateEmailComponentsRequest } from "./DuplicateEmailComponentsRequest.js";
|
|
2
3
|
export { PreviewDefaultEmailComponentsRequest } from "./PreviewDefaultEmailComponentsRequest.js";
|
|
3
4
|
export { SetDefaultEmailComponentsRequest } from "./SetDefaultEmailComponentsRequest.js";
|
|
4
5
|
export { UpdateEmailComponentsRequest } from "./UpdateEmailComponentsRequest.js";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateEmailComponentsRequest = exports.SetDefaultEmailComponentsRequest = exports.PreviewDefaultEmailComponentsRequest = exports.CreateEmailComponentsRequest = void 0;
|
|
3
|
+
exports.UpdateEmailComponentsRequest = exports.SetDefaultEmailComponentsRequest = exports.PreviewDefaultEmailComponentsRequest = exports.DuplicateEmailComponentsRequest = exports.CreateEmailComponentsRequest = void 0;
|
|
4
4
|
var CreateEmailComponentsRequest_js_1 = require("./CreateEmailComponentsRequest.js");
|
|
5
5
|
Object.defineProperty(exports, "CreateEmailComponentsRequest", { enumerable: true, get: function () { return CreateEmailComponentsRequest_js_1.CreateEmailComponentsRequest; } });
|
|
6
|
+
var DuplicateEmailComponentsRequest_js_1 = require("./DuplicateEmailComponentsRequest.js");
|
|
7
|
+
Object.defineProperty(exports, "DuplicateEmailComponentsRequest", { enumerable: true, get: function () { return DuplicateEmailComponentsRequest_js_1.DuplicateEmailComponentsRequest; } });
|
|
6
8
|
var PreviewDefaultEmailComponentsRequest_js_1 = require("./PreviewDefaultEmailComponentsRequest.js");
|
|
7
9
|
Object.defineProperty(exports, "PreviewDefaultEmailComponentsRequest", { enumerable: true, get: function () { return PreviewDefaultEmailComponentsRequest_js_1.PreviewDefaultEmailComponentsRequest; } });
|
|
8
10
|
var SetDefaultEmailComponentsRequest_js_1 = require("./SetDefaultEmailComponentsRequest.js");
|
package/dist/cjs/serialization/resources/emailComponents/types/DuplicateEmailComponentsResponse.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
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 { EmailComponent } from "../../../types/EmailComponent.js";
|
|
5
|
+
export declare const DuplicateEmailComponentsResponse: core.serialization.ObjectSchema<serializers.DuplicateEmailComponentsResponse.Raw, Sequenzy.DuplicateEmailComponentsResponse>;
|
|
6
|
+
export declare namespace DuplicateEmailComponentsResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
component?: EmailComponent.Raw | null;
|
|
9
|
+
success?: boolean | null;
|
|
10
|
+
}
|
|
11
|
+
}
|
package/dist/cjs/serialization/resources/emailComponents/types/DuplicateEmailComponentsResponse.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
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.DuplicateEmailComponentsResponse = void 0;
|
|
28
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
29
|
+
const EmailComponent_js_1 = require("../../../types/EmailComponent.js");
|
|
30
|
+
exports.DuplicateEmailComponentsResponse = core.serialization.object({
|
|
31
|
+
component: EmailComponent_js_1.EmailComponent.optional(),
|
|
32
|
+
success: core.serialization.boolean().optional(),
|
|
33
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CreateEmailComponentsRequestComponentType.js";
|
|
2
2
|
export * from "./CreateEmailComponentsResponse.js";
|
|
3
3
|
export * from "./DeleteEmailComponentsResponse.js";
|
|
4
|
+
export * from "./DuplicateEmailComponentsResponse.js";
|
|
4
5
|
export * from "./GetDefaultEmailComponentsRequestSlot.js";
|
|
5
6
|
export * from "./GetDefaultEmailComponentsResponse.js";
|
|
6
7
|
export * from "./GetEmailComponentsResponse.js";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./CreateEmailComponentsRequestComponentType.js"), exports);
|
|
18
18
|
__exportStar(require("./CreateEmailComponentsResponse.js"), exports);
|
|
19
19
|
__exportStar(require("./DeleteEmailComponentsResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./DuplicateEmailComponentsResponse.js"), exports);
|
|
20
21
|
__exportStar(require("./GetDefaultEmailComponentsRequestSlot.js"), exports);
|
|
21
22
|
__exportStar(require("./GetDefaultEmailComponentsResponse.js"), exports);
|
|
22
23
|
__exportStar(require("./GetEmailComponentsResponse.js"), exports);
|