@clxmedia/types 1.0.0 → 1.0.1
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/emailhub/index.d.ts +65 -0
- package/dist/emailhub/index.js +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/mediahub/index.d.ts +98 -0
- package/dist/mediahub/index.js +2 -0
- package/package.json +7 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare enum EmailHubPriorityLevel {
|
|
2
|
+
NORMAL = "normal",
|
|
3
|
+
BULK = "bulk"
|
|
4
|
+
}
|
|
5
|
+
export declare enum EmailHubEnvironment {
|
|
6
|
+
emailhub = "emailhub",
|
|
7
|
+
localhost = "localhost"
|
|
8
|
+
}
|
|
9
|
+
export interface EmailHubAttachment {
|
|
10
|
+
ContentType: string;
|
|
11
|
+
Filename: string;
|
|
12
|
+
Base64Content: string;
|
|
13
|
+
}
|
|
14
|
+
export interface EmailHubInlineAttachment extends EmailHubAttachment {
|
|
15
|
+
ContentID: string;
|
|
16
|
+
}
|
|
17
|
+
export interface EmailHubRecipient {
|
|
18
|
+
Email: string;
|
|
19
|
+
Name?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface EmailHubMessage {
|
|
22
|
+
From: {
|
|
23
|
+
Email: string;
|
|
24
|
+
Name: string;
|
|
25
|
+
};
|
|
26
|
+
To: EmailHubRecipient[];
|
|
27
|
+
Cc?: EmailHubRecipient[];
|
|
28
|
+
Bcc?: EmailHubRecipient[];
|
|
29
|
+
ReplyTo?: EmailHubRecipient | undefined;
|
|
30
|
+
Subject: string;
|
|
31
|
+
TextPart?: string;
|
|
32
|
+
HTMLPart?: string;
|
|
33
|
+
CustomID?: string;
|
|
34
|
+
Attachments?: EmailHubAttachment[];
|
|
35
|
+
InlinedAttachments?: EmailHubInlineAttachment[];
|
|
36
|
+
}
|
|
37
|
+
export interface EmailHubSender {
|
|
38
|
+
guid: string;
|
|
39
|
+
secret: string;
|
|
40
|
+
}
|
|
41
|
+
export interface EmailHubConfig {
|
|
42
|
+
sender: EmailHubSender;
|
|
43
|
+
server?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface CredentialBody {
|
|
46
|
+
client_email?: string;
|
|
47
|
+
private_key?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface EmailHubSenderProfile {
|
|
50
|
+
id: number;
|
|
51
|
+
guid: string;
|
|
52
|
+
domain_name: string;
|
|
53
|
+
domain_id: string;
|
|
54
|
+
mailjet_sender_id: string;
|
|
55
|
+
dkim_txt_name: string;
|
|
56
|
+
dkim_txt_value: string;
|
|
57
|
+
dkim_status: string;
|
|
58
|
+
token_txt_name: string;
|
|
59
|
+
token_txt_value: string;
|
|
60
|
+
spf_txt_value: string;
|
|
61
|
+
spf_status: string;
|
|
62
|
+
created_at: string;
|
|
63
|
+
updated_at?: string;
|
|
64
|
+
verified_at?: string;
|
|
65
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EmailHubEnvironment = exports.EmailHubPriorityLevel = void 0;
|
|
4
|
+
var EmailHubPriorityLevel;
|
|
5
|
+
(function (EmailHubPriorityLevel) {
|
|
6
|
+
EmailHubPriorityLevel["NORMAL"] = "normal";
|
|
7
|
+
EmailHubPriorityLevel["BULK"] = "bulk";
|
|
8
|
+
})(EmailHubPriorityLevel || (exports.EmailHubPriorityLevel = EmailHubPriorityLevel = {}));
|
|
9
|
+
var EmailHubEnvironment;
|
|
10
|
+
(function (EmailHubEnvironment) {
|
|
11
|
+
EmailHubEnvironment["emailhub"] = "emailhub";
|
|
12
|
+
EmailHubEnvironment["localhost"] = "localhost";
|
|
13
|
+
})(EmailHubEnvironment || (exports.EmailHubEnvironment = EmailHubEnvironment = {}));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.clxforms = exports.credstore = void 0;
|
|
3
|
+
exports.emailhub = exports.mediahub = exports.clxforms = exports.credstore = void 0;
|
|
4
4
|
exports.credstore = require("./credstore");
|
|
5
5
|
exports.clxforms = require("./clxforms");
|
|
6
|
+
exports.mediahub = require("./mediahub");
|
|
7
|
+
exports.emailhub = require("./emailhub");
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export interface MediaHubConfig {
|
|
2
|
+
origin: string;
|
|
3
|
+
server: string;
|
|
4
|
+
key: string;
|
|
5
|
+
}
|
|
6
|
+
export interface MediaHubPutAsset {
|
|
7
|
+
guid: string;
|
|
8
|
+
url: string;
|
|
9
|
+
signedPutUrl: string;
|
|
10
|
+
}
|
|
11
|
+
export interface MediaHubAssetTag {
|
|
12
|
+
id: number;
|
|
13
|
+
name: string;
|
|
14
|
+
confidence?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface MediaHubAssetLabel {
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
20
|
+
export interface MediaHubAssetVersion {
|
|
21
|
+
id: number;
|
|
22
|
+
asset_id: number;
|
|
23
|
+
url: string;
|
|
24
|
+
cdn_url?: string;
|
|
25
|
+
cdn_thumbnail_url?: string;
|
|
26
|
+
file_type?: string;
|
|
27
|
+
filename?: string;
|
|
28
|
+
img_width?: number;
|
|
29
|
+
img_height?: number;
|
|
30
|
+
created_at: Date;
|
|
31
|
+
labels?: MediaHubAssetLabel[];
|
|
32
|
+
}
|
|
33
|
+
export interface MediaHubAsset {
|
|
34
|
+
guid: string;
|
|
35
|
+
url: string;
|
|
36
|
+
cdn_thumbnail_url: string;
|
|
37
|
+
master_id: number;
|
|
38
|
+
origin_slug: string;
|
|
39
|
+
filename: string;
|
|
40
|
+
description: string | null;
|
|
41
|
+
mime_type: string;
|
|
42
|
+
tags: MediaHubAssetTag[];
|
|
43
|
+
versions: MediaHubAssetVersion[];
|
|
44
|
+
img_width: number | null;
|
|
45
|
+
img_height: number | null;
|
|
46
|
+
created_at: Date;
|
|
47
|
+
uploaded_at: Date | null;
|
|
48
|
+
updated_at: Date | null;
|
|
49
|
+
ai_tagged_at: Date | null;
|
|
50
|
+
archived_at: Date | null;
|
|
51
|
+
deleted_at: Date | null;
|
|
52
|
+
}
|
|
53
|
+
export interface MediaHubDimensions {
|
|
54
|
+
width?: number;
|
|
55
|
+
height?: number;
|
|
56
|
+
}
|
|
57
|
+
export interface MediaHubAssetFilters {
|
|
58
|
+
master_id: number;
|
|
59
|
+
guid?: string;
|
|
60
|
+
filename?: string;
|
|
61
|
+
description?: string;
|
|
62
|
+
tag?: MediaHubAssetTag;
|
|
63
|
+
mime_type?: string;
|
|
64
|
+
uploaded_before?: Date;
|
|
65
|
+
uploaded_after?: Date;
|
|
66
|
+
dimensions_min?: MediaHubDimensions;
|
|
67
|
+
dimensions_max?: MediaHubDimensions;
|
|
68
|
+
origin?: string;
|
|
69
|
+
include_archived?: boolean;
|
|
70
|
+
}
|
|
71
|
+
export type AssetOverlayPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
72
|
+
export type AssetOverlaySize = 'small' | 'medium' | 'large';
|
|
73
|
+
export interface AssetOverlayConfig {
|
|
74
|
+
position: AssetOverlayPosition;
|
|
75
|
+
size: AssetOverlaySize;
|
|
76
|
+
}
|
|
77
|
+
export interface AssetOverlay {
|
|
78
|
+
sourceUrl: string;
|
|
79
|
+
label: string;
|
|
80
|
+
}
|
|
81
|
+
export interface AssetCrop {
|
|
82
|
+
width: number;
|
|
83
|
+
height: number;
|
|
84
|
+
}
|
|
85
|
+
export interface AssetTemplate {
|
|
86
|
+
id: string;
|
|
87
|
+
name: string;
|
|
88
|
+
crop?: AssetCrop;
|
|
89
|
+
overlays?: AssetOverlay[];
|
|
90
|
+
overlayConfig?: AssetOverlayConfig;
|
|
91
|
+
minImageDimensions?: {
|
|
92
|
+
width?: number;
|
|
93
|
+
height?: number;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
export interface AssetMagicSettings {
|
|
97
|
+
templates?: AssetTemplate[];
|
|
98
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clxmedia/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Conversion Logix TypeScript type definitions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
],
|
|
12
12
|
"clxforms": [
|
|
13
13
|
"dist/clxforms/index.d.ts"
|
|
14
|
+
],
|
|
15
|
+
"clxmedia": [
|
|
16
|
+
"dist/mediahub/index.d.ts"
|
|
17
|
+
],
|
|
18
|
+
"clxmedia-legacy": [
|
|
19
|
+
"dist/emailhub/index.d.ts"
|
|
14
20
|
]
|
|
15
21
|
}
|
|
16
22
|
},
|