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
|
@@ -4,7 +4,11 @@ import type * as serializers from "../../../../index.js";
|
|
|
4
4
|
export declare const UpdateAttioSettingsRequest: core.serialization.Schema<serializers.UpdateAttioSettingsRequest.Raw, Omit<Sequenzy.UpdateAttioSettingsRequest, "id">>;
|
|
5
5
|
export declare namespace UpdateAttioSettingsRequest {
|
|
6
6
|
interface Raw {
|
|
7
|
+
inboundListMap?: Record<string, string> | null;
|
|
8
|
+
inboundTagMap?: Record<string, string> | null;
|
|
7
9
|
listMap?: Record<string, string> | null;
|
|
8
10
|
syncCompanyFromDomain?: boolean | null;
|
|
11
|
+
syncRemovals?: boolean | null;
|
|
12
|
+
tagMap?: Record<string, string> | null;
|
|
9
13
|
}
|
|
10
14
|
}
|
package/dist/cjs/serialization/resources/integrations/client/requests/UpdateAttioSettingsRequest.js
CHANGED
|
@@ -27,6 +27,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.UpdateAttioSettingsRequest = void 0;
|
|
28
28
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
29
29
|
exports.UpdateAttioSettingsRequest = core.serialization.object({
|
|
30
|
+
inboundListMap: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
31
|
+
inboundTagMap: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
30
32
|
listMap: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
31
33
|
syncCompanyFromDomain: core.serialization.boolean().optional(),
|
|
34
|
+
syncRemovals: core.serialization.boolean().optional(),
|
|
35
|
+
tagMap: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
32
36
|
});
|
package/dist/cjs/serialization/resources/sequences/types/GetStatsSequencesResponseStepsItem.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 { GetStatsSequencesResponseStepsItemFailedSubscribersItem } from "./GetStatsSequencesResponseStepsItemFailedSubscribersItem.js";
|
|
6
7
|
export declare const GetStatsSequencesResponseStepsItem: core.serialization.ObjectSchema<serializers.GetStatsSequencesResponseStepsItem.Raw, Sequenzy.GetStatsSequencesResponseStepsItem>;
|
|
7
8
|
export declare namespace GetStatsSequencesResponseStepsItem {
|
|
@@ -9,6 +10,7 @@ export declare namespace GetStatsSequencesResponseStepsItem {
|
|
|
9
10
|
failedCount?: number | null;
|
|
10
11
|
failedSubscribers?: GetStatsSequencesResponseStepsItemFailedSubscribersItem.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/sequences/types/GetStatsSequencesResponseStepsItem.js
CHANGED
|
@@ -27,11 +27,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.GetStatsSequencesResponseStepsItem = 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 GetStatsSequencesResponseStepsItemFailedSubscribersItem_js_1 = require("./GetStatsSequencesResponseStepsItemFailedSubscribersItem.js");
|
|
31
32
|
exports.GetStatsSequencesResponseStepsItem = core.serialization.object({
|
|
32
33
|
failedCount: core.serialization.number().optional(),
|
|
33
34
|
failedSubscribers: core.serialization.list(GetStatsSequencesResponseStepsItemFailedSubscribersItem_js_1.GetStatsSequencesResponseStepsItemFailedSubscribersItem).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(),
|
|
@@ -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 { IntegrationAttioMappingAttioListsItem } from "./IntegrationAttioMappingAttioListsItem.js";
|
|
5
|
+
import { IntegrationAttioMappingInbound } from "./IntegrationAttioMappingInbound.js";
|
|
5
6
|
import { IntegrationAttioMappingSequenzyListsItem } from "./IntegrationAttioMappingSequenzyListsItem.js";
|
|
6
7
|
export declare const IntegrationAttioMapping: core.serialization.ObjectSchema<serializers.IntegrationAttioMapping.Raw, Sequenzy.IntegrationAttioMapping>;
|
|
7
8
|
export declare namespace IntegrationAttioMapping {
|
|
@@ -9,13 +10,20 @@ export declare namespace IntegrationAttioMapping {
|
|
|
9
10
|
attioLists?: IntegrationAttioMappingAttioListsItem.Raw[] | null;
|
|
10
11
|
changed?: boolean | null;
|
|
11
12
|
changedFields?: string[] | null;
|
|
13
|
+
inbound?: IntegrationAttioMappingInbound.Raw | null;
|
|
14
|
+
inboundListMap?: Record<string, string> | null;
|
|
15
|
+
inboundMappingCount?: number | null;
|
|
16
|
+
inboundTagMap?: Record<string, string> | null;
|
|
12
17
|
integrationId?: string | null;
|
|
13
18
|
listMap?: Record<string, string> | null;
|
|
14
19
|
mappedListCount?: number | null;
|
|
20
|
+
mappedTagCount?: number | null;
|
|
15
21
|
message?: string | null;
|
|
16
22
|
provider?: string | null;
|
|
17
23
|
sequenzyLists?: IntegrationAttioMappingSequenzyListsItem.Raw[] | null;
|
|
18
24
|
success?: boolean | null;
|
|
19
25
|
syncCompanyFromDomain?: boolean | null;
|
|
26
|
+
syncRemovals?: boolean | null;
|
|
27
|
+
tagMap?: Record<string, string> | null;
|
|
20
28
|
}
|
|
21
29
|
}
|
|
@@ -27,17 +27,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.IntegrationAttioMapping = void 0;
|
|
28
28
|
const core = __importStar(require("../../core/index.js"));
|
|
29
29
|
const IntegrationAttioMappingAttioListsItem_js_1 = require("./IntegrationAttioMappingAttioListsItem.js");
|
|
30
|
+
const IntegrationAttioMappingInbound_js_1 = require("./IntegrationAttioMappingInbound.js");
|
|
30
31
|
const IntegrationAttioMappingSequenzyListsItem_js_1 = require("./IntegrationAttioMappingSequenzyListsItem.js");
|
|
31
32
|
exports.IntegrationAttioMapping = core.serialization.object({
|
|
32
33
|
attioLists: core.serialization.list(IntegrationAttioMappingAttioListsItem_js_1.IntegrationAttioMappingAttioListsItem).optional(),
|
|
33
34
|
changed: core.serialization.boolean().optional(),
|
|
34
35
|
changedFields: core.serialization.list(core.serialization.string()).optional(),
|
|
36
|
+
inbound: IntegrationAttioMappingInbound_js_1.IntegrationAttioMappingInbound.optional(),
|
|
37
|
+
inboundListMap: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
38
|
+
inboundMappingCount: core.serialization.number().optional(),
|
|
39
|
+
inboundTagMap: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
35
40
|
integrationId: core.serialization.string().optional(),
|
|
36
41
|
listMap: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
37
42
|
mappedListCount: core.serialization.number().optional(),
|
|
43
|
+
mappedTagCount: core.serialization.number().optional(),
|
|
38
44
|
message: core.serialization.string().optional(),
|
|
39
45
|
provider: core.serialization.string().optional(),
|
|
40
46
|
sequenzyLists: core.serialization.list(IntegrationAttioMappingSequenzyListsItem_js_1.IntegrationAttioMappingSequenzyListsItem).optional(),
|
|
41
47
|
success: core.serialization.boolean().optional(),
|
|
42
48
|
syncCompanyFromDomain: core.serialization.boolean().optional(),
|
|
49
|
+
syncRemovals: core.serialization.boolean().optional(),
|
|
50
|
+
tagMap: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
43
51
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { IntegrationAttioMappingInboundStatus } from "./IntegrationAttioMappingInboundStatus.js";
|
|
5
|
+
export declare const IntegrationAttioMappingInbound: core.serialization.ObjectSchema<serializers.IntegrationAttioMappingInbound.Raw, Sequenzy.IntegrationAttioMappingInbound>;
|
|
6
|
+
export declare namespace IntegrationAttioMappingInbound {
|
|
7
|
+
interface Raw {
|
|
8
|
+
enabled?: boolean | null;
|
|
9
|
+
error?: (string | null | undefined) | null;
|
|
10
|
+
status?: IntegrationAttioMappingInboundStatus.Raw | null;
|
|
11
|
+
webhookUrl?: string | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.IntegrationAttioMappingInbound = void 0;
|
|
28
|
+
const core = __importStar(require("../../core/index.js"));
|
|
29
|
+
const IntegrationAttioMappingInboundStatus_js_1 = require("./IntegrationAttioMappingInboundStatus.js");
|
|
30
|
+
exports.IntegrationAttioMappingInbound = core.serialization.object({
|
|
31
|
+
enabled: core.serialization.boolean().optional(),
|
|
32
|
+
error: core.serialization.string().optionalNullable(),
|
|
33
|
+
status: IntegrationAttioMappingInboundStatus_js_1.IntegrationAttioMappingInboundStatus.optional(),
|
|
34
|
+
webhookUrl: core.serialization.string().optional(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
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 IntegrationAttioMappingInboundStatus: core.serialization.Schema<serializers.IntegrationAttioMappingInboundStatus.Raw, Sequenzy.IntegrationAttioMappingInboundStatus>;
|
|
5
|
+
export declare namespace IntegrationAttioMappingInboundStatus {
|
|
6
|
+
type Raw = "off" | "active" | "error";
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.IntegrationAttioMappingInboundStatus = void 0;
|
|
28
|
+
const core = __importStar(require("../../core/index.js"));
|
|
29
|
+
exports.IntegrationAttioMappingInboundStatus = core.serialization.enum_(["off", "active", "error"]);
|
|
@@ -11,6 +11,7 @@ export declare namespace SequenceAudience {
|
|
|
11
11
|
filterJoinOperator?: SequenceAudienceFilterJoinOperator.Raw | null;
|
|
12
12
|
filters?: Record<string, unknown>[] | null;
|
|
13
13
|
include?: Record<string, unknown>[] | null;
|
|
14
|
+
includedSubscriberIds?: string[] | null;
|
|
14
15
|
listIds?: string[] | null;
|
|
15
16
|
segmentId?: string | null;
|
|
16
17
|
type: SequenceAudienceType.Raw;
|
|
@@ -40,6 +40,7 @@ exports.SequenceAudience = core.serialization.object({
|
|
|
40
40
|
include: core.serialization
|
|
41
41
|
.list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
|
|
42
42
|
.optional(),
|
|
43
|
+
includedSubscriberIds: core.serialization.list(core.serialization.string()).optional(),
|
|
43
44
|
listIds: core.serialization.list(core.serialization.string()).optional(),
|
|
44
45
|
segmentId: core.serialization.string().optional(),
|
|
45
46
|
type: SequenceAudienceType_js_1.SequenceAudienceType,
|
|
@@ -15,6 +15,7 @@ export declare namespace SequenceAudienceEnrollment {
|
|
|
15
15
|
error?: (string | null | undefined) | null;
|
|
16
16
|
estimatedCount?: number | null;
|
|
17
17
|
id?: string | null;
|
|
18
|
+
includedSubscriberCount?: number | null;
|
|
18
19
|
processedCount?: number | null;
|
|
19
20
|
scheduledFor?: (string | null | undefined) | null;
|
|
20
21
|
sequenceId?: string | null;
|
|
@@ -38,6 +38,7 @@ exports.SequenceAudienceEnrollment = core.serialization.object({
|
|
|
38
38
|
error: core.serialization.string().optionalNullable(),
|
|
39
39
|
estimatedCount: core.serialization.number().optional(),
|
|
40
40
|
id: core.serialization.string().optional(),
|
|
41
|
+
includedSubscriberCount: core.serialization.number().optional(),
|
|
41
42
|
processedCount: core.serialization.number().optional(),
|
|
42
43
|
scheduledFor: core.serialization.date().optionalNullable(),
|
|
43
44
|
sequenceId: core.serialization.string().optional(),
|
|
@@ -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);
|
|
@@ -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
|
*
|
|
@@ -157,6 +157,85 @@ export class EmailComponentsClient {
|
|
|
157
157
|
}
|
|
158
158
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/email-components/{componentId}");
|
|
159
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* 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.
|
|
162
|
+
*
|
|
163
|
+
* @param {Sequenzy.DuplicateEmailComponentsRequest} request
|
|
164
|
+
* @param {EmailComponentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
165
|
+
*
|
|
166
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
167
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
168
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
169
|
+
* @throws {@link Sequenzy.ConflictError}
|
|
170
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
171
|
+
* @throws {@link errors.SequenzyError}
|
|
172
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
* await client.emailComponents.duplicate({
|
|
176
|
+
* componentId: "componentId"
|
|
177
|
+
* })
|
|
178
|
+
*/
|
|
179
|
+
duplicate(request, requestOptions) {
|
|
180
|
+
return core.HttpResponsePromise.fromPromise(this.__duplicate(request, requestOptions));
|
|
181
|
+
}
|
|
182
|
+
async __duplicate(request, requestOptions) {
|
|
183
|
+
const { componentId, ..._body } = request;
|
|
184
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
185
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
186
|
+
const _response = await core.fetcher({
|
|
187
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
188
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
189
|
+
environments.SequenzyEnvironment.Default, `email-components/${core.url.encodePathParam(componentId)}/duplicate`),
|
|
190
|
+
method: "POST",
|
|
191
|
+
headers: _headers,
|
|
192
|
+
contentType: "application/json",
|
|
193
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
194
|
+
requestType: "json",
|
|
195
|
+
body: mergeAdditionalBodyParameters(serializers.DuplicateEmailComponentsRequest.jsonOrThrow(_body, {
|
|
196
|
+
unrecognizedObjectKeys: "strip",
|
|
197
|
+
omitUndefined: true,
|
|
198
|
+
}), requestOptions?.additionalBodyParameters),
|
|
199
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
200
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
201
|
+
abortSignal: requestOptions?.abortSignal,
|
|
202
|
+
fetchFn: this._options?.fetch,
|
|
203
|
+
logging: this._options.logging,
|
|
204
|
+
});
|
|
205
|
+
if (_response.ok) {
|
|
206
|
+
return {
|
|
207
|
+
data: serializers.DuplicateEmailComponentsResponse.parseOrThrow(_response.body, {
|
|
208
|
+
unrecognizedObjectKeys: "passthrough",
|
|
209
|
+
allowUnrecognizedUnionMembers: true,
|
|
210
|
+
allowUnrecognizedEnumValues: true,
|
|
211
|
+
skipValidation: true,
|
|
212
|
+
breadcrumbsPrefix: ["response"],
|
|
213
|
+
}),
|
|
214
|
+
rawResponse: _response.rawResponse,
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
if (_response.error.reason === "status-code") {
|
|
218
|
+
switch (_response.error.statusCode) {
|
|
219
|
+
case 400:
|
|
220
|
+
throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
|
|
221
|
+
case 401:
|
|
222
|
+
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
223
|
+
case 404:
|
|
224
|
+
throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
|
|
225
|
+
case 409:
|
|
226
|
+
throw new Sequenzy.ConflictError(_response.error.body, _response.rawResponse);
|
|
227
|
+
case 503:
|
|
228
|
+
throw new Sequenzy.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
229
|
+
default:
|
|
230
|
+
throw new errors.SequenzyError({
|
|
231
|
+
statusCode: _response.error.statusCode,
|
|
232
|
+
body: _response.error.body,
|
|
233
|
+
rawResponse: _response.rawResponse,
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/email-components/{componentId}/duplicate");
|
|
238
|
+
}
|
|
160
239
|
/**
|
|
161
240
|
* Returns a single email component by id.
|
|
162
241
|
*
|
package/dist/esm/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";
|
|
@@ -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";
|
|
@@ -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.
|
|
@@ -80,7 +80,7 @@ export class IntegrationsClient {
|
|
|
80
80
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/integrations/{id}/pixel");
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* 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
|
|
83
|
+
* 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.
|
|
84
84
|
*
|
|
85
85
|
* @param {Sequenzy.ConnectIntegrationsRequest} request
|
|
86
86
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -301,7 +301,7 @@ export class IntegrationsClient {
|
|
|
301
301
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/integrations/{id}");
|
|
302
302
|
}
|
|
303
303
|
/**
|
|
304
|
-
* Reads a connected Attio integration's saved
|
|
304
|
+
* 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.
|
|
305
305
|
*
|
|
306
306
|
* @param {Sequenzy.GetAttioMappingRequest} request
|
|
307
307
|
* @param {IntegrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -733,7 +733,7 @@ export class IntegrationsClient {
|
|
|
733
733
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/integrations/{id}/sync");
|
|
734
734
|
}
|
|
735
735
|
/**
|
|
736
|
-
* Saves
|
|
736
|
+
* 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.
|
|
737
737
|
*
|
|
738
738
|
* @param {Sequenzy.UpdateAttioSettingsRequest} request
|
|
739
739
|
* @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];
|