sequenzy 2.1.88 → 2.1.91
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/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/analytics/client/Client.js +5 -3
- package/dist/cjs/api/resources/analytics/client/requests/ListCampaignPollResponsesLegacyRequest.d.ts +2 -0
- package/dist/cjs/api/resources/analytics/client/requests/ListCampaignPollResponsesRequest.d.ts +2 -0
- package/dist/cjs/api/resources/companies/client/Client.d.ts +22 -0
- package/dist/cjs/api/resources/companies/client/Client.js +80 -0
- package/dist/cjs/api/resources/companies/client/requests/UpdateCompaniesRequest.d.ts +4 -0
- package/dist/cjs/api/resources/companies/client/requests/UploadFounderPhotoCompaniesRequest.d.ts +13 -0
- package/dist/cjs/api/resources/companies/client/requests/UploadFounderPhotoCompaniesRequest.js +3 -0
- package/dist/cjs/api/resources/companies/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/companies/types/UpdateCompaniesRequestFooterMode.d.ts +6 -0
- package/dist/cjs/api/resources/companies/types/UpdateCompaniesRequestFooterMode.js +9 -0
- package/dist/cjs/api/resources/companies/types/UpdateCompaniesRequestFooterTheme.d.ts +2 -0
- package/dist/cjs/api/resources/companies/types/UpdateCompaniesRequestFooterThemeMode.d.ts +7 -0
- package/dist/cjs/api/resources/companies/types/UpdateCompaniesRequestFooterThemeMode.js +10 -0
- package/dist/cjs/api/resources/companies/types/UploadFounderPhotoCompaniesResponse.d.ts +5 -0
- package/dist/cjs/api/resources/companies/types/UploadFounderPhotoCompaniesResponse.js +3 -0
- package/dist/cjs/api/resources/companies/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/companies/types/index.js +3 -0
- package/dist/cjs/api/types/Company.d.ts +4 -0
- package/dist/cjs/api/types/CompanyFooterMode.d.ts +6 -0
- package/dist/cjs/api/types/CompanyFooterMode.js +9 -0
- package/dist/cjs/api/types/CompanyFooterTheme.d.ts +1 -0
- package/dist/cjs/api/types/CompanyFooterThemeMode.d.ts +5 -0
- package/dist/cjs/api/types/CompanyFooterThemeMode.js +8 -0
- package/dist/cjs/api/types/OutboundWebhookEventType.d.ts +1 -0
- package/dist/cjs/api/types/OutboundWebhookEventType.js +1 -0
- package/dist/cjs/api/types/PollResponse.d.ts +6 -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/companies/client/requests/UpdateCompaniesRequest.d.ts +3 -0
- package/dist/cjs/serialization/resources/companies/client/requests/UpdateCompaniesRequest.js +3 -0
- package/dist/cjs/serialization/resources/companies/client/requests/UploadFounderPhotoCompaniesRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/companies/client/requests/UploadFounderPhotoCompaniesRequest.js +31 -0
- package/dist/cjs/serialization/resources/companies/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/companies/client/requests/index.js +3 -1
- package/dist/cjs/serialization/resources/companies/types/UpdateCompaniesRequestFooterMode.d.ts +7 -0
- package/dist/cjs/serialization/resources/companies/types/UpdateCompaniesRequestFooterMode.js +29 -0
- package/dist/cjs/serialization/resources/companies/types/UpdateCompaniesRequestFooterTheme.d.ts +2 -0
- package/dist/cjs/serialization/resources/companies/types/UpdateCompaniesRequestFooterTheme.js +2 -0
- package/dist/cjs/serialization/resources/companies/types/UpdateCompaniesRequestFooterThemeMode.d.ts +7 -0
- package/dist/cjs/serialization/resources/companies/types/UpdateCompaniesRequestFooterThemeMode.js +29 -0
- package/dist/cjs/serialization/resources/companies/types/UploadFounderPhotoCompaniesResponse.d.ts +11 -0
- package/dist/cjs/serialization/resources/companies/types/UploadFounderPhotoCompaniesResponse.js +33 -0
- package/dist/cjs/serialization/resources/companies/types/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/companies/types/index.js +3 -0
- package/dist/cjs/serialization/types/Company.d.ts +3 -0
- package/dist/cjs/serialization/types/Company.js +3 -0
- package/dist/cjs/serialization/types/CompanyFooterMode.d.ts +7 -0
- package/dist/cjs/serialization/types/CompanyFooterMode.js +29 -0
- package/dist/cjs/serialization/types/CompanyFooterTheme.d.ts +2 -0
- package/dist/cjs/serialization/types/CompanyFooterTheme.js +2 -0
- package/dist/cjs/serialization/types/CompanyFooterThemeMode.d.ts +7 -0
- package/dist/cjs/serialization/types/CompanyFooterThemeMode.js +29 -0
- package/dist/cjs/serialization/types/OutboundWebhookEventType.d.ts +1 -1
- package/dist/cjs/serialization/types/OutboundWebhookEventType.js +1 -0
- package/dist/cjs/serialization/types/PollResponse.d.ts +3 -0
- package/dist/cjs/serialization/types/PollResponse.js +3 -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/client/Client.d.ts +1 -1
- package/dist/esm/api/resources/analytics/client/Client.js +5 -3
- package/dist/esm/api/resources/analytics/client/requests/ListCampaignPollResponsesLegacyRequest.d.ts +2 -0
- package/dist/esm/api/resources/analytics/client/requests/ListCampaignPollResponsesRequest.d.ts +2 -0
- package/dist/esm/api/resources/companies/client/Client.d.ts +22 -0
- package/dist/esm/api/resources/companies/client/Client.js +80 -0
- package/dist/esm/api/resources/companies/client/requests/UpdateCompaniesRequest.d.ts +4 -0
- package/dist/esm/api/resources/companies/client/requests/UploadFounderPhotoCompaniesRequest.d.ts +13 -0
- package/dist/esm/api/resources/companies/client/requests/UploadFounderPhotoCompaniesRequest.js +2 -0
- package/dist/esm/api/resources/companies/client/requests/index.d.ts +1 -0
- package/dist/esm/api/resources/companies/types/UpdateCompaniesRequestFooterMode.d.ts +6 -0
- package/dist/esm/api/resources/companies/types/UpdateCompaniesRequestFooterMode.js +6 -0
- package/dist/esm/api/resources/companies/types/UpdateCompaniesRequestFooterTheme.d.ts +2 -0
- package/dist/esm/api/resources/companies/types/UpdateCompaniesRequestFooterThemeMode.d.ts +7 -0
- package/dist/esm/api/resources/companies/types/UpdateCompaniesRequestFooterThemeMode.js +7 -0
- package/dist/esm/api/resources/companies/types/UploadFounderPhotoCompaniesResponse.d.ts +5 -0
- package/dist/esm/api/resources/companies/types/UploadFounderPhotoCompaniesResponse.js +2 -0
- package/dist/esm/api/resources/companies/types/index.d.ts +3 -0
- package/dist/esm/api/resources/companies/types/index.js +3 -0
- package/dist/esm/api/types/Company.d.ts +4 -0
- package/dist/esm/api/types/CompanyFooterMode.d.ts +6 -0
- package/dist/esm/api/types/CompanyFooterMode.js +6 -0
- package/dist/esm/api/types/CompanyFooterTheme.d.ts +1 -0
- package/dist/esm/api/types/CompanyFooterThemeMode.d.ts +5 -0
- package/dist/esm/api/types/CompanyFooterThemeMode.js +5 -0
- package/dist/esm/api/types/OutboundWebhookEventType.d.ts +1 -0
- package/dist/esm/api/types/OutboundWebhookEventType.js +1 -0
- package/dist/esm/api/types/PollResponse.d.ts +6 -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/companies/client/requests/UpdateCompaniesRequest.d.ts +3 -0
- package/dist/esm/serialization/resources/companies/client/requests/UpdateCompaniesRequest.js +3 -0
- package/dist/esm/serialization/resources/companies/client/requests/UploadFounderPhotoCompaniesRequest.d.ts +9 -0
- package/dist/esm/serialization/resources/companies/client/requests/UploadFounderPhotoCompaniesRequest.js +5 -0
- package/dist/esm/serialization/resources/companies/client/requests/index.d.ts +1 -0
- package/dist/esm/serialization/resources/companies/client/requests/index.js +1 -0
- package/dist/esm/serialization/resources/companies/types/UpdateCompaniesRequestFooterMode.d.ts +7 -0
- package/dist/esm/serialization/resources/companies/types/UpdateCompaniesRequestFooterMode.js +3 -0
- package/dist/esm/serialization/resources/companies/types/UpdateCompaniesRequestFooterTheme.d.ts +2 -0
- package/dist/esm/serialization/resources/companies/types/UpdateCompaniesRequestFooterTheme.js +2 -0
- package/dist/esm/serialization/resources/companies/types/UpdateCompaniesRequestFooterThemeMode.d.ts +7 -0
- package/dist/esm/serialization/resources/companies/types/UpdateCompaniesRequestFooterThemeMode.js +3 -0
- package/dist/esm/serialization/resources/companies/types/UploadFounderPhotoCompaniesResponse.d.ts +11 -0
- package/dist/esm/serialization/resources/companies/types/UploadFounderPhotoCompaniesResponse.js +7 -0
- package/dist/esm/serialization/resources/companies/types/index.d.ts +3 -0
- package/dist/esm/serialization/resources/companies/types/index.js +3 -0
- package/dist/esm/serialization/types/Company.d.ts +3 -0
- package/dist/esm/serialization/types/Company.js +3 -0
- package/dist/esm/serialization/types/CompanyFooterMode.d.ts +7 -0
- package/dist/esm/serialization/types/CompanyFooterMode.js +3 -0
- package/dist/esm/serialization/types/CompanyFooterTheme.d.ts +2 -0
- package/dist/esm/serialization/types/CompanyFooterTheme.js +2 -0
- package/dist/esm/serialization/types/CompanyFooterThemeMode.d.ts +7 -0
- package/dist/esm/serialization/types/CompanyFooterThemeMode.js +3 -0
- package/dist/esm/serialization/types/OutboundWebhookEventType.d.ts +1 -1
- package/dist/esm/serialization/types/OutboundWebhookEventType.js +1 -0
- package/dist/esm/serialization/types/PollResponse.d.ts +3 -0
- package/dist/esm/serialization/types/PollResponse.js +3 -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
package/dist/cjs/serialization/resources/companies/types/UpdateCompaniesRequestFooterThemeMode.d.ts
ADDED
|
@@ -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 UpdateCompaniesRequestFooterThemeMode: core.serialization.Schema<serializers.UpdateCompaniesRequestFooterThemeMode.Raw, Sequenzy.UpdateCompaniesRequestFooterThemeMode>;
|
|
5
|
+
export declare namespace UpdateCompaniesRequestFooterThemeMode {
|
|
6
|
+
type Raw = "branded" | "personal" | "";
|
|
7
|
+
}
|
package/dist/cjs/serialization/resources/companies/types/UpdateCompaniesRequestFooterThemeMode.js
ADDED
|
@@ -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.UpdateCompaniesRequestFooterThemeMode = void 0;
|
|
28
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
29
|
+
exports.UpdateCompaniesRequestFooterThemeMode = core.serialization.enum_(["branded", "personal", ""]);
|
package/dist/cjs/serialization/resources/companies/types/UploadFounderPhotoCompaniesResponse.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 { Company } from "../../../types/Company.js";
|
|
5
|
+
export declare const UploadFounderPhotoCompaniesResponse: core.serialization.ObjectSchema<serializers.UploadFounderPhotoCompaniesResponse.Raw, Sequenzy.UploadFounderPhotoCompaniesResponse>;
|
|
6
|
+
export declare namespace UploadFounderPhotoCompaniesResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
company?: Company.Raw | null;
|
|
9
|
+
success?: boolean | null;
|
|
10
|
+
}
|
|
11
|
+
}
|
package/dist/cjs/serialization/resources/companies/types/UploadFounderPhotoCompaniesResponse.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.UploadFounderPhotoCompaniesResponse = void 0;
|
|
28
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
29
|
+
const Company_js_1 = require("../../../types/Company.js");
|
|
30
|
+
exports.UploadFounderPhotoCompaniesResponse = core.serialization.object({
|
|
31
|
+
company: Company_js_1.Company.optional(),
|
|
32
|
+
success: core.serialization.boolean().optional(),
|
|
33
|
+
});
|
|
@@ -14,9 +14,12 @@ export * from "./UpdateCompaniesRequestEmailThemeLayout.js";
|
|
|
14
14
|
export * from "./UpdateCompaniesRequestEmailThemeLayoutContentAlign.js";
|
|
15
15
|
export * from "./UpdateCompaniesRequestEmailThemePresetId.js";
|
|
16
16
|
export * from "./UpdateCompaniesRequestEmailThemeTypography.js";
|
|
17
|
+
export * from "./UpdateCompaniesRequestFooterMode.js";
|
|
17
18
|
export * from "./UpdateCompaniesRequestFooterStyle.js";
|
|
18
19
|
export * from "./UpdateCompaniesRequestFooterTheme.js";
|
|
20
|
+
export * from "./UpdateCompaniesRequestFooterThemeMode.js";
|
|
19
21
|
export * from "./UpdateCompaniesRequestFooterThemeStyle.js";
|
|
20
22
|
export * from "./UpdateCompaniesRequestReplyTrackingDomainMode.js";
|
|
21
23
|
export * from "./UpdateCompaniesRequestWebsiteType.js";
|
|
22
24
|
export * from "./UpdateCompaniesResponse.js";
|
|
25
|
+
export * from "./UploadFounderPhotoCompaniesResponse.js";
|
|
@@ -30,9 +30,12 @@ __exportStar(require("./UpdateCompaniesRequestEmailThemeLayout.js"), exports);
|
|
|
30
30
|
__exportStar(require("./UpdateCompaniesRequestEmailThemeLayoutContentAlign.js"), exports);
|
|
31
31
|
__exportStar(require("./UpdateCompaniesRequestEmailThemePresetId.js"), exports);
|
|
32
32
|
__exportStar(require("./UpdateCompaniesRequestEmailThemeTypography.js"), exports);
|
|
33
|
+
__exportStar(require("./UpdateCompaniesRequestFooterMode.js"), exports);
|
|
33
34
|
__exportStar(require("./UpdateCompaniesRequestFooterStyle.js"), exports);
|
|
34
35
|
__exportStar(require("./UpdateCompaniesRequestFooterTheme.js"), exports);
|
|
36
|
+
__exportStar(require("./UpdateCompaniesRequestFooterThemeMode.js"), exports);
|
|
35
37
|
__exportStar(require("./UpdateCompaniesRequestFooterThemeStyle.js"), exports);
|
|
36
38
|
__exportStar(require("./UpdateCompaniesRequestReplyTrackingDomainMode.js"), exports);
|
|
37
39
|
__exportStar(require("./UpdateCompaniesRequestWebsiteType.js"), exports);
|
|
38
40
|
__exportStar(require("./UpdateCompaniesResponse.js"), exports);
|
|
41
|
+
__exportStar(require("./UploadFounderPhotoCompaniesResponse.js"), exports);
|
|
@@ -6,6 +6,7 @@ import { CompanyEmailBranding } from "./CompanyEmailBranding.js";
|
|
|
6
6
|
import { CompanyEmailLengthPreference } from "./CompanyEmailLengthPreference.js";
|
|
7
7
|
import { CompanyEmailPreset } from "./CompanyEmailPreset.js";
|
|
8
8
|
import { CompanyEmailStylePreference } from "./CompanyEmailStylePreference.js";
|
|
9
|
+
import { CompanyFooterMode } from "./CompanyFooterMode.js";
|
|
9
10
|
import { CompanyFooterStyle } from "./CompanyFooterStyle.js";
|
|
10
11
|
import { CompanyFooterTheme } from "./CompanyFooterTheme.js";
|
|
11
12
|
import { CompanyReplyTrackingDomainMode } from "./CompanyReplyTrackingDomainMode.js";
|
|
@@ -37,10 +38,12 @@ export declare namespace Company {
|
|
|
37
38
|
emailStylePreference?: (CompanyEmailStylePreference.Raw | null | undefined) | null;
|
|
38
39
|
emailTheme?: (Record<string, unknown> | null | undefined) | null;
|
|
39
40
|
fontFamily?: (string | null | undefined) | null;
|
|
41
|
+
footerMode?: CompanyFooterMode.Raw | null;
|
|
40
42
|
footerStyle?: CompanyFooterStyle.Raw | null;
|
|
41
43
|
footerTheme?: CompanyFooterTheme.Raw | null;
|
|
42
44
|
forwardReplies?: boolean | null;
|
|
43
45
|
founderName?: (string | null | undefined) | null;
|
|
46
|
+
founderPhotoUrl?: (string | null | undefined) | null;
|
|
44
47
|
id?: string | null;
|
|
45
48
|
language?: string | null;
|
|
46
49
|
logoUrl?: (string | null | undefined) | null;
|
|
@@ -31,6 +31,7 @@ const CompanyEmailBranding_js_1 = require("./CompanyEmailBranding.js");
|
|
|
31
31
|
const CompanyEmailLengthPreference_js_1 = require("./CompanyEmailLengthPreference.js");
|
|
32
32
|
const CompanyEmailPreset_js_1 = require("./CompanyEmailPreset.js");
|
|
33
33
|
const CompanyEmailStylePreference_js_1 = require("./CompanyEmailStylePreference.js");
|
|
34
|
+
const CompanyFooterMode_js_1 = require("./CompanyFooterMode.js");
|
|
34
35
|
const CompanyFooterStyle_js_1 = require("./CompanyFooterStyle.js");
|
|
35
36
|
const CompanyFooterTheme_js_1 = require("./CompanyFooterTheme.js");
|
|
36
37
|
const CompanyReplyTrackingDomainMode_js_1 = require("./CompanyReplyTrackingDomainMode.js");
|
|
@@ -66,10 +67,12 @@ exports.Company = core.serialization.object({
|
|
|
66
67
|
.record(core.serialization.string(), core.serialization.unknown())
|
|
67
68
|
.optionalNullable(),
|
|
68
69
|
fontFamily: core.serialization.string().optionalNullable(),
|
|
70
|
+
footerMode: CompanyFooterMode_js_1.CompanyFooterMode.optional(),
|
|
69
71
|
footerStyle: CompanyFooterStyle_js_1.CompanyFooterStyle.optional(),
|
|
70
72
|
footerTheme: CompanyFooterTheme_js_1.CompanyFooterTheme.optional(),
|
|
71
73
|
forwardReplies: core.serialization.boolean().optional(),
|
|
72
74
|
founderName: core.serialization.string().optionalNullable(),
|
|
75
|
+
founderPhotoUrl: core.serialization.string().optionalNullable(),
|
|
73
76
|
id: core.serialization.string().optional(),
|
|
74
77
|
language: core.serialization.string().optional(),
|
|
75
78
|
logoUrl: core.serialization.string().optionalNullable(),
|
|
@@ -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 CompanyFooterMode: core.serialization.Schema<serializers.CompanyFooterMode.Raw, Sequenzy.CompanyFooterMode>;
|
|
5
|
+
export declare namespace CompanyFooterMode {
|
|
6
|
+
type Raw = "branded" | "personal";
|
|
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.CompanyFooterMode = void 0;
|
|
28
|
+
const core = __importStar(require("../../core/index.js"));
|
|
29
|
+
exports.CompanyFooterMode = core.serialization.enum_(["branded", "personal"]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
|
+
import { CompanyFooterThemeMode } from "./CompanyFooterThemeMode.js";
|
|
4
5
|
import { CompanyFooterThemeStyle } from "./CompanyFooterThemeStyle.js";
|
|
5
6
|
export declare const CompanyFooterTheme: core.serialization.ObjectSchema<serializers.CompanyFooterTheme.Raw, Sequenzy.CompanyFooterTheme>;
|
|
6
7
|
export declare namespace CompanyFooterTheme {
|
|
@@ -10,6 +11,7 @@ export declare namespace CompanyFooterTheme {
|
|
|
10
11
|
companyTextColor?: string | null;
|
|
11
12
|
linkColor?: string | null;
|
|
12
13
|
metaTextColor?: string | null;
|
|
14
|
+
mode?: CompanyFooterThemeMode.Raw | null;
|
|
13
15
|
privacyPolicyText?: string | null;
|
|
14
16
|
reasonText?: string | null;
|
|
15
17
|
showCompanyLine?: boolean | null;
|
|
@@ -26,6 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.CompanyFooterTheme = void 0;
|
|
28
28
|
const core = __importStar(require("../../core/index.js"));
|
|
29
|
+
const CompanyFooterThemeMode_js_1 = require("./CompanyFooterThemeMode.js");
|
|
29
30
|
const CompanyFooterThemeStyle_js_1 = require("./CompanyFooterThemeStyle.js");
|
|
30
31
|
exports.CompanyFooterTheme = core.serialization.object({
|
|
31
32
|
backgroundColor: core.serialization.string().optional(),
|
|
@@ -33,6 +34,7 @@ exports.CompanyFooterTheme = core.serialization.object({
|
|
|
33
34
|
companyTextColor: core.serialization.string().optional(),
|
|
34
35
|
linkColor: core.serialization.string().optional(),
|
|
35
36
|
metaTextColor: core.serialization.string().optional(),
|
|
37
|
+
mode: CompanyFooterThemeMode_js_1.CompanyFooterThemeMode.optional(),
|
|
36
38
|
privacyPolicyText: core.serialization.string().optional(),
|
|
37
39
|
reasonText: core.serialization.string().optional(),
|
|
38
40
|
showCompanyLine: core.serialization.boolean().optional(),
|
|
@@ -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 CompanyFooterThemeMode: core.serialization.Schema<serializers.CompanyFooterThemeMode.Raw, Sequenzy.CompanyFooterThemeMode>;
|
|
5
|
+
export declare namespace CompanyFooterThemeMode {
|
|
6
|
+
type Raw = "branded" | "personal";
|
|
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.CompanyFooterThemeMode = void 0;
|
|
28
|
+
const core = __importStar(require("../../core/index.js"));
|
|
29
|
+
exports.CompanyFooterThemeMode = core.serialization.enum_(["branded", "personal"]);
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
export declare const OutboundWebhookEventType: core.serialization.Schema<serializers.OutboundWebhookEventType.Raw, Sequenzy.OutboundWebhookEventType>;
|
|
5
5
|
export declare namespace OutboundWebhookEventType {
|
|
6
|
-
type Raw = "email.sent" | "email.delivered" | "email.delivery_delayed" | "email.bounced" | "email.failed" | "email.complained" | "email.opened" | "email.clicked" | "email.replied" | "email.received" | "email.unsubscribed" | "campaign.sent" | "sms.sent" | "sms.delivered" | "sms.failed" | "sms.opted_out" | "subscriber.invalid" | "subscriber.created" | "subscriber.updated" | "subscriber.unsubscribed" | "subscriber.list_subscribed" | "subscriber.list_unsubscribed" | "subscriber_import.completed" | "sequence.finished" | "sequence.failed" | "poll.answered";
|
|
6
|
+
type Raw = "email.sent" | "email.delivered" | "email.delivery_delayed" | "email.bounced" | "email.failed" | "email.complained" | "email.opened" | "email.clicked" | "email.replied" | "email.received" | "email.unsubscribed" | "campaign.sent" | "sms.sent" | "sms.delivered" | "sms.failed" | "sms.opted_out" | "subscriber.invalid" | "subscriber.created" | "subscriber.updated" | "subscriber.unsubscribed" | "subscriber.list_subscribed" | "subscriber.list_unsubscribed" | "subscriber_import.completed" | "sequence.finished" | "sequence.failed" | "poll.answered" | "poll.commented";
|
|
7
7
|
}
|
|
@@ -9,6 +9,9 @@ export declare namespace PollResponse {
|
|
|
9
9
|
answers?: string[] | null;
|
|
10
10
|
attributeKey?: (string | null | undefined) | null;
|
|
11
11
|
blockId?: string | null;
|
|
12
|
+
comment?: (string | null | undefined) | null;
|
|
13
|
+
commentAnswer?: (string | null | undefined) | null;
|
|
14
|
+
commentedAt?: (string | null | undefined) | null;
|
|
12
15
|
email?: (string | null | undefined) | null;
|
|
13
16
|
externalId?: (string | null | undefined) | null;
|
|
14
17
|
firstName?: (string | null | undefined) | null;
|
|
@@ -32,6 +32,9 @@ exports.PollResponse = core.serialization.object({
|
|
|
32
32
|
answers: core.serialization.list(core.serialization.string()).optional(),
|
|
33
33
|
attributeKey: core.serialization.string().optionalNullable(),
|
|
34
34
|
blockId: core.serialization.string().optional(),
|
|
35
|
+
comment: core.serialization.string().optionalNullable(),
|
|
36
|
+
commentAnswer: core.serialization.string().optionalNullable(),
|
|
37
|
+
commentedAt: core.serialization.date().optionalNullable(),
|
|
35
38
|
email: core.serialization.string().optionalNullable(),
|
|
36
39
|
externalId: core.serialization.string().optionalNullable(),
|
|
37
40
|
firstName: core.serialization.string().optionalNullable(),
|
|
@@ -150,8 +150,10 @@ export * from "./CompanyEmailBrandingSubscriptionTier.js";
|
|
|
150
150
|
export * from "./CompanyEmailLengthPreference.js";
|
|
151
151
|
export * from "./CompanyEmailPreset.js";
|
|
152
152
|
export * from "./CompanyEmailStylePreference.js";
|
|
153
|
+
export * from "./CompanyFooterMode.js";
|
|
153
154
|
export * from "./CompanyFooterStyle.js";
|
|
154
155
|
export * from "./CompanyFooterTheme.js";
|
|
156
|
+
export * from "./CompanyFooterThemeMode.js";
|
|
155
157
|
export * from "./CompanyFooterThemeStyle.js";
|
|
156
158
|
export * from "./CompanyGoal.js";
|
|
157
159
|
export * from "./CompanyGoalAttributeCondition.js";
|
|
@@ -166,8 +166,10 @@ __exportStar(require("./CompanyEmailBrandingSubscriptionTier.js"), exports);
|
|
|
166
166
|
__exportStar(require("./CompanyEmailLengthPreference.js"), exports);
|
|
167
167
|
__exportStar(require("./CompanyEmailPreset.js"), exports);
|
|
168
168
|
__exportStar(require("./CompanyEmailStylePreference.js"), exports);
|
|
169
|
+
__exportStar(require("./CompanyFooterMode.js"), exports);
|
|
169
170
|
__exportStar(require("./CompanyFooterStyle.js"), exports);
|
|
170
171
|
__exportStar(require("./CompanyFooterTheme.js"), exports);
|
|
172
|
+
__exportStar(require("./CompanyFooterThemeMode.js"), exports);
|
|
171
173
|
__exportStar(require("./CompanyFooterThemeStyle.js"), exports);
|
|
172
174
|
__exportStar(require("./CompanyGoal.js"), exports);
|
|
173
175
|
__exportStar(require("./CompanyGoalAttributeCondition.js"), exports);
|
|
@@ -258,7 +258,7 @@ export declare class AnalyticsClient {
|
|
|
258
258
|
listCampaignEvents(request: Sequenzy.ListCampaignEventsRequest, requestOptions?: AnalyticsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.ListCampaignEventsResponse>;
|
|
259
259
|
private __listCampaignEvents;
|
|
260
260
|
/**
|
|
261
|
-
* Returns one row per respondent per Poll or NPS block in a campaign, newest answer first, with the answer, its stored value, the subscriber attribute the answer was saved to, and the response time. Only each subscriber's latest answer per block is returned, so counts match the `polls` summaries from the campaign metrics endpoint. Multi-select answers list every selected option in `answers` and `values`. For a sequence email step, pass the step's automation node ID as `campaignId`. Also available at `GET /campaigns/{campaignId}/poll-responses`.
|
|
261
|
+
* Returns one row per respondent per Poll or NPS block in a campaign, newest answer first, with the answer, its stored value, the subscriber attribute the answer was saved to, and the response time. Only each subscriber's latest answer per block is returned, so counts match the `polls` summaries from the campaign metrics endpoint. Multi-select answers list every selected option in `answers` and `values`. Each row also carries the respondent's latest comment from the poll's confirmation page; pass `hasComment=true` to list only respondents who commented, newest comment first. For a sequence email step, pass the step's automation node ID as `campaignId`. Also available at `GET /campaigns/{campaignId}/poll-responses`.
|
|
262
262
|
*
|
|
263
263
|
* @param {Sequenzy.ListCampaignPollResponsesRequest} request
|
|
264
264
|
* @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1162,7 +1162,7 @@ export class AnalyticsClient {
|
|
|
1162
1162
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/metrics/campaigns/{campaignId}/events");
|
|
1163
1163
|
}
|
|
1164
1164
|
/**
|
|
1165
|
-
* Returns one row per respondent per Poll or NPS block in a campaign, newest answer first, with the answer, its stored value, the subscriber attribute the answer was saved to, and the response time. Only each subscriber's latest answer per block is returned, so counts match the `polls` summaries from the campaign metrics endpoint. Multi-select answers list every selected option in `answers` and `values`. For a sequence email step, pass the step's automation node ID as `campaignId`. Also available at `GET /campaigns/{campaignId}/poll-responses`.
|
|
1165
|
+
* Returns one row per respondent per Poll or NPS block in a campaign, newest answer first, with the answer, its stored value, the subscriber attribute the answer was saved to, and the response time. Only each subscriber's latest answer per block is returned, so counts match the `polls` summaries from the campaign metrics endpoint. Multi-select answers list every selected option in `answers` and `values`. Each row also carries the respondent's latest comment from the poll's confirmation page; pass `hasComment=true` to list only respondents who commented, newest comment first. For a sequence email step, pass the step's automation node ID as `campaignId`. Also available at `GET /campaigns/{campaignId}/poll-responses`.
|
|
1166
1166
|
*
|
|
1167
1167
|
* @param {Sequenzy.ListCampaignPollResponsesRequest} request
|
|
1168
1168
|
* @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1183,9 +1183,10 @@ export class AnalyticsClient {
|
|
|
1183
1183
|
return core.HttpResponsePromise.fromPromise(this.__listCampaignPollResponses(request, requestOptions));
|
|
1184
1184
|
}
|
|
1185
1185
|
async __listCampaignPollResponses(request, requestOptions) {
|
|
1186
|
-
const { campaignId, blockId, limit, page } = request;
|
|
1186
|
+
const { campaignId, blockId, hasComment, limit, page } = request;
|
|
1187
1187
|
const _queryParams = {
|
|
1188
1188
|
blockId,
|
|
1189
|
+
hasComment,
|
|
1189
1190
|
limit,
|
|
1190
1191
|
page,
|
|
1191
1192
|
};
|
|
@@ -1262,9 +1263,10 @@ export class AnalyticsClient {
|
|
|
1262
1263
|
return core.HttpResponsePromise.fromPromise(this.__listCampaignPollResponsesLegacy(request, requestOptions));
|
|
1263
1264
|
}
|
|
1264
1265
|
async __listCampaignPollResponsesLegacy(request, requestOptions) {
|
|
1265
|
-
const { campaignId, blockId, limit, page } = request;
|
|
1266
|
+
const { campaignId, blockId, hasComment, limit, page } = request;
|
|
1266
1267
|
const _queryParams = {
|
|
1267
1268
|
blockId,
|
|
1269
|
+
hasComment,
|
|
1268
1270
|
limit,
|
|
1269
1271
|
page,
|
|
1270
1272
|
};
|
package/dist/esm/api/resources/analytics/client/requests/ListCampaignPollResponsesLegacyRequest.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export interface ListCampaignPollResponsesLegacyRequest {
|
|
|
9
9
|
campaignId: string;
|
|
10
10
|
/** Restrict results to one poll block. */
|
|
11
11
|
blockId?: string;
|
|
12
|
+
/** Pass `true` to list only respondents who left a comment, newest comment first. */
|
|
13
|
+
hasComment?: boolean;
|
|
12
14
|
/** Responses per page (max 500) */
|
|
13
15
|
limit?: number;
|
|
14
16
|
/** Page number */
|
package/dist/esm/api/resources/analytics/client/requests/ListCampaignPollResponsesRequest.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export interface ListCampaignPollResponsesRequest {
|
|
|
9
9
|
campaignId: string;
|
|
10
10
|
/** Restrict results to one poll block. Block IDs come from the `polls` array of the campaign metrics endpoint. */
|
|
11
11
|
blockId?: string;
|
|
12
|
+
/** Pass `true` to list only respondents who left a comment, newest comment first. */
|
|
13
|
+
hasComment?: boolean;
|
|
12
14
|
/** Responses per page (max 500) */
|
|
13
15
|
limit?: number;
|
|
14
16
|
/** Page number */
|
|
@@ -84,4 +84,26 @@ export declare class CompaniesClient {
|
|
|
84
84
|
*/
|
|
85
85
|
update(request: Sequenzy.UpdateCompaniesRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.UpdateCompaniesResponse>;
|
|
86
86
|
private __update;
|
|
87
|
+
/**
|
|
88
|
+
* Uploads the founder photo personal footers sign off with. The image is cropped to a 192px square JPEG around its most interesting area (the face, on a portrait), hosted by Sequenzy and saved as the company's founderPhotoUrl, replacing any photo already set. New personal footers copy it; existing footers keep their own photo. To remove the photo, update the company with founderPhotoUrl null. Requires the company_profile:manage scope.
|
|
89
|
+
*
|
|
90
|
+
* @param {Sequenzy.UploadFounderPhotoCompaniesRequest} request
|
|
91
|
+
* @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
94
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
95
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
96
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
97
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
98
|
+
* @throws {@link errors.SequenzyError}
|
|
99
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* await client.companies.uploadFounderPhoto({
|
|
103
|
+
* companyId: "companyId",
|
|
104
|
+
* imageBase64: "imageBase64"
|
|
105
|
+
* })
|
|
106
|
+
*/
|
|
107
|
+
uploadFounderPhoto(request: Sequenzy.UploadFounderPhotoCompaniesRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.UploadFounderPhotoCompaniesResponse>;
|
|
108
|
+
private __uploadFounderPhoto;
|
|
87
109
|
}
|
|
@@ -294,4 +294,84 @@ export class CompaniesClient {
|
|
|
294
294
|
}
|
|
295
295
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/companies/{companyId}");
|
|
296
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* Uploads the founder photo personal footers sign off with. The image is cropped to a 192px square JPEG around its most interesting area (the face, on a portrait), hosted by Sequenzy and saved as the company's founderPhotoUrl, replacing any photo already set. New personal footers copy it; existing footers keep their own photo. To remove the photo, update the company with founderPhotoUrl null. Requires the company_profile:manage scope.
|
|
299
|
+
*
|
|
300
|
+
* @param {Sequenzy.UploadFounderPhotoCompaniesRequest} request
|
|
301
|
+
* @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
302
|
+
*
|
|
303
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
304
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
305
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
306
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
307
|
+
* @throws {@link Sequenzy.ServiceUnavailableError}
|
|
308
|
+
* @throws {@link errors.SequenzyError}
|
|
309
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
310
|
+
*
|
|
311
|
+
* @example
|
|
312
|
+
* await client.companies.uploadFounderPhoto({
|
|
313
|
+
* companyId: "companyId",
|
|
314
|
+
* imageBase64: "imageBase64"
|
|
315
|
+
* })
|
|
316
|
+
*/
|
|
317
|
+
uploadFounderPhoto(request, requestOptions) {
|
|
318
|
+
return core.HttpResponsePromise.fromPromise(this.__uploadFounderPhoto(request, requestOptions));
|
|
319
|
+
}
|
|
320
|
+
async __uploadFounderPhoto(request, requestOptions) {
|
|
321
|
+
const { companyId, ..._body } = request;
|
|
322
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
323
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
324
|
+
const _response = await core.fetcher({
|
|
325
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
326
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
327
|
+
environments.SequenzyEnvironment.Default, `companies/${core.url.encodePathParam(companyId)}/founder-photo`),
|
|
328
|
+
method: "PUT",
|
|
329
|
+
headers: _headers,
|
|
330
|
+
contentType: "application/json",
|
|
331
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
332
|
+
requestType: "json",
|
|
333
|
+
body: mergeAdditionalBodyParameters(serializers.UploadFounderPhotoCompaniesRequest.jsonOrThrow(_body, {
|
|
334
|
+
unrecognizedObjectKeys: "strip",
|
|
335
|
+
omitUndefined: true,
|
|
336
|
+
}), requestOptions?.additionalBodyParameters),
|
|
337
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
338
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
339
|
+
abortSignal: requestOptions?.abortSignal,
|
|
340
|
+
fetchFn: this._options?.fetch,
|
|
341
|
+
logging: this._options.logging,
|
|
342
|
+
});
|
|
343
|
+
if (_response.ok) {
|
|
344
|
+
return {
|
|
345
|
+
data: serializers.UploadFounderPhotoCompaniesResponse.parseOrThrow(_response.body, {
|
|
346
|
+
unrecognizedObjectKeys: "passthrough",
|
|
347
|
+
allowUnrecognizedUnionMembers: true,
|
|
348
|
+
allowUnrecognizedEnumValues: true,
|
|
349
|
+
skipValidation: true,
|
|
350
|
+
breadcrumbsPrefix: ["response"],
|
|
351
|
+
}),
|
|
352
|
+
rawResponse: _response.rawResponse,
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
if (_response.error.reason === "status-code") {
|
|
356
|
+
switch (_response.error.statusCode) {
|
|
357
|
+
case 400:
|
|
358
|
+
throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
|
|
359
|
+
case 401:
|
|
360
|
+
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
361
|
+
case 403:
|
|
362
|
+
throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
363
|
+
case 404:
|
|
364
|
+
throw new Sequenzy.NotFoundError(_response.error.body, _response.rawResponse);
|
|
365
|
+
case 503:
|
|
366
|
+
throw new Sequenzy.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
367
|
+
default:
|
|
368
|
+
throw new errors.SequenzyError({
|
|
369
|
+
statusCode: _response.error.statusCode,
|
|
370
|
+
body: _response.error.body,
|
|
371
|
+
rawResponse: _response.rawResponse,
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/companies/{companyId}/founder-photo");
|
|
376
|
+
}
|
|
297
377
|
}
|
|
@@ -28,6 +28,8 @@ export interface UpdateCompaniesRequest {
|
|
|
28
28
|
/** Default email theme. Partial update - omitted fields keep their current value (or the preset default) and numeric values are clamped to supported ranges. Pass null to reset to the platform default theme. */
|
|
29
29
|
emailTheme?: Sequenzy.UpdateCompaniesRequestEmailTheme | null;
|
|
30
30
|
fontFamily?: string | null;
|
|
31
|
+
/** Footer type for new AI-designed emails, in whichever `footerStyle`: `branded` (the default) or `personal`, which opens the footer with the founder's sign-off (photo, name and title, from `founderPhotoUrl` and `founderName`). Without a founder name, footers stay branded. Existing emails keep their footers. Other values return 400, as does a `footerTheme.mode` that differs in the same request. */
|
|
32
|
+
footerMode?: Sequenzy.UpdateCompaniesRequestFooterMode;
|
|
31
33
|
/** Footer style for new AI-designed emails: `auto` (fits the brand), `classic`, `mono`, `band` or `editorial`. Kept in the stored footer theme, alongside its other settings. Existing emails keep their footers. Other values return 400. */
|
|
32
34
|
footerStyle?: Sequenzy.UpdateCompaniesRequestFooterStyle;
|
|
33
35
|
/** Colors and copy of the auto-added footer, the compliance footer Sequenzy appends when an email has no footer block. Merged into the stored theme: omitted fields keep their value, `null` (or `""`, and `"transparent"` for `backgroundColor`, the values get returns for defaults) resets one field to its default, and `footerTheme: null` resets them all. Other brandColors keys are kept. Malformed values and unknown fields return 400, as does a `style` that differs from `footerStyle` in the same request; a value that is not an object or null returns 422. Footer font, size and line height are set in `emailTheme.typography`. */
|
|
@@ -35,6 +37,8 @@ export interface UpdateCompaniesRequest {
|
|
|
35
37
|
/** Enable or disable forwarding captured replies to the configured mailbox. */
|
|
36
38
|
forwardReplies?: boolean;
|
|
37
39
|
founderName?: string | null;
|
|
40
|
+
/** Square founder photo (public http(s) image URL) personal footers sign off with. New personal footers copy it; existing footers keep their own photo. Send null or `""` to remove it. Other URLs return 400. */
|
|
41
|
+
founderPhotoUrl?: string | null;
|
|
38
42
|
/** Account-wide default From address. The domain must be configured and verified. */
|
|
39
43
|
fromEmail?: string;
|
|
40
44
|
/** Display name of the default From profile. Sent on its own it renames the current default profile; with senderProfileId it renames that profile; with fromEmail it names the profile for that address. If the address already carries several display names, the request is rejected - pass senderProfileId to say which one to rename. */
|
package/dist/esm/api/resources/companies/client/requests/UploadFounderPhotoCompaniesRequest.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* companyId: "companyId",
|
|
5
|
+
* imageBase64: "imageBase64"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface UploadFounderPhotoCompaniesRequest {
|
|
9
|
+
/** Company ID */
|
|
10
|
+
companyId: string;
|
|
11
|
+
/** The photo as raw base64 bytes or a base64 data URL. PNG, JPEG, GIF or WebP, up to 10MB, at least 96px on each side. */
|
|
12
|
+
imageBase64: string;
|
|
13
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export type { CreateCompaniesRequest } from "./CreateCompaniesRequest.js";
|
|
2
2
|
export type { GetCompaniesRequest } from "./GetCompaniesRequest.js";
|
|
3
3
|
export type { UpdateCompaniesRequest } from "./UpdateCompaniesRequest.js";
|
|
4
|
+
export type { UploadFounderPhotoCompaniesRequest } from "./UploadFounderPhotoCompaniesRequest.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Footer type for new AI-designed emails, in whichever `footerStyle`: `branded` (the default) or `personal`, which opens the footer with the founder's sign-off (photo, name and title, from `founderPhotoUrl` and `founderName`). Without a founder name, footers stay branded. Existing emails keep their footers. Other values return 400, as does a `footerTheme.mode` that differs in the same request. */
|
|
2
|
+
export declare const UpdateCompaniesRequestFooterMode: {
|
|
3
|
+
readonly Branded: "branded";
|
|
4
|
+
readonly Personal: "personal";
|
|
5
|
+
};
|
|
6
|
+
export type UpdateCompaniesRequestFooterMode = (typeof UpdateCompaniesRequestFooterMode)[keyof typeof UpdateCompaniesRequestFooterMode];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Footer type for new AI-designed emails, in whichever `footerStyle`: `branded` (the default) or `personal`, which opens the footer with the founder's sign-off (photo, name and title, from `founderPhotoUrl` and `founderName`). Without a founder name, footers stay branded. Existing emails keep their footers. Other values return 400, as does a `footerTheme.mode` that differs in the same request. */
|
|
3
|
+
export const UpdateCompaniesRequestFooterMode = {
|
|
4
|
+
Branded: "branded",
|
|
5
|
+
Personal: "personal",
|
|
6
|
+
};
|
|
@@ -13,6 +13,8 @@ export interface UpdateCompaniesRequestFooterTheme {
|
|
|
13
13
|
linkColor?: string | null;
|
|
14
14
|
/** 6-digit hex for the reason and address text. */
|
|
15
15
|
metaTextColor?: string | null;
|
|
16
|
+
/** Same setting as `footerMode`; `""` or `null` resets it to `branded`. */
|
|
17
|
+
mode?: Sequenzy.UpdateCompaniesRequestFooterThemeMode | null;
|
|
16
18
|
/** Privacy link label. Empty or null uses the localized default. */
|
|
17
19
|
privacyPolicyText?: string | null;
|
|
18
20
|
/** Why the recipient gets the email. Empty or null uses the localized default. */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Same setting as `footerMode`; `""` or `null` resets it to `branded`. */
|
|
2
|
+
export declare const UpdateCompaniesRequestFooterThemeMode: {
|
|
3
|
+
readonly Branded: "branded";
|
|
4
|
+
readonly Personal: "personal";
|
|
5
|
+
readonly Empty: "";
|
|
6
|
+
};
|
|
7
|
+
export type UpdateCompaniesRequestFooterThemeMode = (typeof UpdateCompaniesRequestFooterThemeMode)[keyof typeof UpdateCompaniesRequestFooterThemeMode];
|