@clxmedia/types 1.0.3 → 1.0.4
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/package.json +15 -9
- package/dist/clxforms/index.d.ts +0 -206
- package/dist/clxforms/index.js +0 -2
- package/dist/core/index.d.ts +0 -62
- package/dist/core/index.js +0 -2
- package/dist/credstore/index.d.ts +0 -99
- package/dist/credstore/index.js +0 -15
- package/dist/emailhub/index.d.ts +0 -65
- package/dist/emailhub/index.js +0 -13
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -8
- package/dist/mediahub/index.d.ts +0 -98
- package/dist/mediahub/index.js +0 -2
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clxmedia/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Conversion Logix TypeScript type definitions",
|
|
5
|
-
"main": "
|
|
6
|
-
"types": "
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
7
|
"typesVersions": {
|
|
8
8
|
"*": {
|
|
9
9
|
"credstore": [
|
|
10
|
-
"
|
|
10
|
+
"credstore/index.d.ts"
|
|
11
11
|
],
|
|
12
12
|
"clxforms": [
|
|
13
|
-
"
|
|
13
|
+
"clxforms/index.d.ts"
|
|
14
14
|
],
|
|
15
15
|
"mediahub": [
|
|
16
|
-
"
|
|
16
|
+
"mediahub/index.d.ts"
|
|
17
17
|
],
|
|
18
18
|
"emailhub": [
|
|
19
|
-
"
|
|
19
|
+
"emailhub/index.d.ts"
|
|
20
20
|
],
|
|
21
21
|
"core": [
|
|
22
|
-
"
|
|
22
|
+
"core/index.d.ts"
|
|
23
23
|
]
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -27,7 +27,13 @@
|
|
|
27
27
|
"build": "tsc"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
|
-
"
|
|
30
|
+
"*.js",
|
|
31
|
+
"*.d.ts",
|
|
32
|
+
"credstore",
|
|
33
|
+
"clxforms",
|
|
34
|
+
"mediahub",
|
|
35
|
+
"emailhub",
|
|
36
|
+
"core"
|
|
31
37
|
],
|
|
32
38
|
"devDependencies": {
|
|
33
39
|
"typescript": "^5.2.2"
|
package/dist/clxforms/index.d.ts
DELETED
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
export type CLXFormSelectOption = {
|
|
2
|
-
value: string;
|
|
3
|
-
label: string;
|
|
4
|
-
};
|
|
5
|
-
export type CLXFormSelectOptions = CLXFormSelectOption[];
|
|
6
|
-
export type CLXFormMode = 'edit' | 'preview' | 'live';
|
|
7
|
-
export type CLXFormErrorMsg = string | null;
|
|
8
|
-
export type CLXFormFormattingResponse = {
|
|
9
|
-
errorMsg: CLXFormErrorMsg[];
|
|
10
|
-
formattedValue: any | undefined;
|
|
11
|
-
};
|
|
12
|
-
export type CLXFormQuestionLocator = {
|
|
13
|
-
stepPosition: number;
|
|
14
|
-
sectionPosition: number;
|
|
15
|
-
questionSlug?: string;
|
|
16
|
-
};
|
|
17
|
-
export type CLXForm = {
|
|
18
|
-
id: number;
|
|
19
|
-
slug: string;
|
|
20
|
-
name: string;
|
|
21
|
-
description?: string;
|
|
22
|
-
};
|
|
23
|
-
export type CLXFormResponseType = 'STRING' | 'NUMBER' | 'STRING_ARRAY' | 'BOOLEAN' | 'ANY';
|
|
24
|
-
export type CLXFormFieldType = 'text' | 'textarea' | 'boolean' | 'select' | 'multiselect';
|
|
25
|
-
export type CLXFormSelectType = 'select' | 'radio' | 'checkbox' | 'freeform';
|
|
26
|
-
export type CLXFormConditionSubjectEntry = {
|
|
27
|
-
value: string;
|
|
28
|
-
label: string;
|
|
29
|
-
responseType: CLXFormResponseType;
|
|
30
|
-
picklist?: CLXFormSelectOptions;
|
|
31
|
-
};
|
|
32
|
-
export type CLXFormResponseValueBase = {
|
|
33
|
-
type: CLXFormResponseType;
|
|
34
|
-
errorMsg?: CLXFormErrorMsg[];
|
|
35
|
-
};
|
|
36
|
-
export type CLXFormResponseStringValue = CLXFormResponseValueBase & {
|
|
37
|
-
type: 'STRING';
|
|
38
|
-
value: string;
|
|
39
|
-
};
|
|
40
|
-
export type CLXFormResponseNumberValue = CLXFormResponseValueBase & {
|
|
41
|
-
type: 'NUMBER';
|
|
42
|
-
value: number;
|
|
43
|
-
};
|
|
44
|
-
export type CLXFormResponseBooleanValue = CLXFormResponseValueBase & {
|
|
45
|
-
type: 'BOOLEAN';
|
|
46
|
-
value: boolean;
|
|
47
|
-
};
|
|
48
|
-
export type CLXFormResponseStringArrayValue = CLXFormResponseValueBase & {
|
|
49
|
-
type: 'STRING_ARRAY';
|
|
50
|
-
value: string[];
|
|
51
|
-
};
|
|
52
|
-
export type CLXFormResponseAnyValue = CLXFormResponseValueBase & {
|
|
53
|
-
type: 'ANY';
|
|
54
|
-
value: any;
|
|
55
|
-
};
|
|
56
|
-
export type CLXFormResponseValue = CLXFormResponseStringValue | CLXFormResponseStringArrayValue | CLXFormResponseNumberValue | CLXFormResponseBooleanValue | CLXFormResponseAnyValue;
|
|
57
|
-
export type CLXFormResponses = {
|
|
58
|
-
[questionSlug: string]: CLXFormResponseValue;
|
|
59
|
-
};
|
|
60
|
-
export type CLXFormField = {
|
|
61
|
-
type: CLXFormFieldType;
|
|
62
|
-
response_type: CLXFormResponseType;
|
|
63
|
-
};
|
|
64
|
-
export type CLXFieldMasks = 'phone' | 'email' | 'name' | 'number' | 'none' | 'url';
|
|
65
|
-
export type CLXPlainFormFieldBase = CLXFormField & {
|
|
66
|
-
type: 'text';
|
|
67
|
-
mask: CLXFieldMasks;
|
|
68
|
-
};
|
|
69
|
-
export type CLXTextFormFieldBase = CLXPlainFormFieldBase & {
|
|
70
|
-
type: 'text';
|
|
71
|
-
mask: 'phone' | 'email' | 'name' | 'url' | 'none';
|
|
72
|
-
response_type: 'STRING' | 'STRING_ARRAY';
|
|
73
|
-
multiple: boolean;
|
|
74
|
-
};
|
|
75
|
-
export type CLXTextFormField = CLXTextFormFieldBase & {
|
|
76
|
-
response_type: 'STRING';
|
|
77
|
-
multiple: false;
|
|
78
|
-
};
|
|
79
|
-
export type CLXMultipleTextFormField = CLXTextFormFieldBase & {
|
|
80
|
-
response_type: 'STRING_ARRAY';
|
|
81
|
-
multiple: true;
|
|
82
|
-
};
|
|
83
|
-
export type CLXNumberFormField = CLXPlainFormFieldBase & {
|
|
84
|
-
type: 'text';
|
|
85
|
-
mask: 'number';
|
|
86
|
-
response_type: 'NUMBER';
|
|
87
|
-
rounding?: number;
|
|
88
|
-
};
|
|
89
|
-
export type CLXTextAreaFormField = CLXFormField & {
|
|
90
|
-
type: 'textarea';
|
|
91
|
-
response_type: 'STRING';
|
|
92
|
-
};
|
|
93
|
-
export type CLXSelectableFormField = CLXFormField & {
|
|
94
|
-
select_type: CLXFormSelectType;
|
|
95
|
-
};
|
|
96
|
-
export type CLXBooleanFormField = CLXSelectableFormField & {
|
|
97
|
-
type: 'boolean';
|
|
98
|
-
select_type: 'select' | 'radio';
|
|
99
|
-
response_type: 'BOOLEAN';
|
|
100
|
-
};
|
|
101
|
-
export type CLXSelectFormField = CLXSelectableFormField & {
|
|
102
|
-
type: 'select';
|
|
103
|
-
response_type: 'STRING';
|
|
104
|
-
select_type: 'select' | 'radio';
|
|
105
|
-
options: CLXFormSelectOptions;
|
|
106
|
-
};
|
|
107
|
-
export type CLXMultiSelectFormField = CLXSelectableFormField & {
|
|
108
|
-
type: 'multiselect';
|
|
109
|
-
response_type: 'STRING_ARRAY';
|
|
110
|
-
select_type: 'checkbox' | 'freeform';
|
|
111
|
-
options: CLXFormSelectOptions;
|
|
112
|
-
max_select?: number;
|
|
113
|
-
};
|
|
114
|
-
export type CLXFormQuestionResponseOptions = {
|
|
115
|
-
field: CLXTextFormField | CLXNumberFormField | CLXTextAreaFormField | CLXBooleanFormField | CLXSelectFormField | CLXMultiSelectFormField | CLXMultipleTextFormField;
|
|
116
|
-
has_parent?: boolean;
|
|
117
|
-
};
|
|
118
|
-
export type CLXFormQuestion = {
|
|
119
|
-
slug: string;
|
|
120
|
-
question_text: string;
|
|
121
|
-
help_text?: string;
|
|
122
|
-
response_options: CLXFormQuestionResponseOptions;
|
|
123
|
-
};
|
|
124
|
-
export type CLXFormQuestions = {
|
|
125
|
-
[questionSlug: string]: CLXFormQuestion;
|
|
126
|
-
};
|
|
127
|
-
export type CLXRuleComparison = 'stringEquals' | 'stringInList' | 'stringListContains' | 'booleanEquals' | 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
128
|
-
export type CLXFormRuleDefinition = {
|
|
129
|
-
subject: string;
|
|
130
|
-
predicate: CLXFormResponseValue;
|
|
131
|
-
comparison: CLXRuleComparison;
|
|
132
|
-
};
|
|
133
|
-
export type CLXConditionalOverride = {
|
|
134
|
-
rule: CLXFormRuleDefinition;
|
|
135
|
-
override: any;
|
|
136
|
-
};
|
|
137
|
-
export type CLXFormRuleInstanceBase = {
|
|
138
|
-
subject: CLXFormResponseValue;
|
|
139
|
-
predicate: CLXFormResponseValue;
|
|
140
|
-
comparisonType: CLXRuleComparison;
|
|
141
|
-
};
|
|
142
|
-
export type CLXFormRuleStringEqualsInstance = CLXFormRuleInstanceBase & {
|
|
143
|
-
subject: CLXFormResponseStringValue;
|
|
144
|
-
predicate: CLXFormResponseStringValue;
|
|
145
|
-
comparisonType: 'stringEquals';
|
|
146
|
-
};
|
|
147
|
-
export type CLXFormRuleStringInListInstance = CLXFormRuleInstanceBase & {
|
|
148
|
-
subject: CLXFormResponseStringValue;
|
|
149
|
-
predicate: CLXFormResponseStringArrayValue;
|
|
150
|
-
comparisonType: 'stringInList';
|
|
151
|
-
};
|
|
152
|
-
export type CLXFormRuleStringListContainsInstance = CLXFormRuleInstanceBase & {
|
|
153
|
-
subject: CLXFormResponseStringArrayValue;
|
|
154
|
-
predicate: CLXFormResponseStringValue;
|
|
155
|
-
comparisonType: 'stringListContains';
|
|
156
|
-
};
|
|
157
|
-
export type CLXFormRuleBooleanEqualsInstance = CLXFormRuleInstanceBase & {
|
|
158
|
-
subject: CLXFormResponseBooleanValue;
|
|
159
|
-
predicate: CLXFormResponseBooleanValue;
|
|
160
|
-
comparisonType: 'booleanEquals';
|
|
161
|
-
};
|
|
162
|
-
export type CLXFormRuleNumberComparisonInstance = CLXFormRuleInstanceBase & {
|
|
163
|
-
subject: CLXFormResponseNumberValue;
|
|
164
|
-
predicate: CLXFormResponseNumberValue;
|
|
165
|
-
comparisonType: 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
166
|
-
};
|
|
167
|
-
export type CLXFormRuleInstance = CLXFormRuleStringEqualsInstance | CLXFormRuleStringInListInstance | CLXFormRuleStringListContainsInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
|
|
168
|
-
export type CLXFormQuestionLayout = {
|
|
169
|
-
id: number;
|
|
170
|
-
form_question_slug: string;
|
|
171
|
-
is_required: boolean;
|
|
172
|
-
is_enabled: boolean;
|
|
173
|
-
conditions: {
|
|
174
|
-
max_select_override?: CLXConditionalOverride[];
|
|
175
|
-
rules: CLXFormRuleDefinition[];
|
|
176
|
-
combinator: 'and' | 'or';
|
|
177
|
-
};
|
|
178
|
-
is_complete?: boolean;
|
|
179
|
-
};
|
|
180
|
-
export type CLXFormSection = {
|
|
181
|
-
id: number;
|
|
182
|
-
name: string;
|
|
183
|
-
question_layouts: CLXFormQuestionLayout[];
|
|
184
|
-
has_alert?: boolean;
|
|
185
|
-
};
|
|
186
|
-
export type CLXFormQuestionBundle = {
|
|
187
|
-
question: CLXFormQuestion;
|
|
188
|
-
layout: CLXFormQuestionLayout;
|
|
189
|
-
};
|
|
190
|
-
export type CLXFormStep = {
|
|
191
|
-
id: number;
|
|
192
|
-
name: string;
|
|
193
|
-
description: string;
|
|
194
|
-
sections: CLXFormSection[];
|
|
195
|
-
};
|
|
196
|
-
export type CLXFormLayout = {
|
|
197
|
-
form: {
|
|
198
|
-
slug: string;
|
|
199
|
-
name: string;
|
|
200
|
-
description?: string;
|
|
201
|
-
};
|
|
202
|
-
steps: CLXFormStep[];
|
|
203
|
-
completedCount?: number;
|
|
204
|
-
totalCount?: number;
|
|
205
|
-
updated_at?: number;
|
|
206
|
-
};
|
package/dist/clxforms/index.js
DELETED
package/dist/core/index.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
type ConditionalEnterpriseEventLog<T = {}> = T extends {
|
|
2
|
-
event_item_id: any;
|
|
3
|
-
} ? {
|
|
4
|
-
application_source: string;
|
|
5
|
-
event_item_type: string;
|
|
6
|
-
} : T extends {
|
|
7
|
-
event_item_type: any;
|
|
8
|
-
} ? {
|
|
9
|
-
application_source: string;
|
|
10
|
-
} : {};
|
|
11
|
-
export type EnterpriseEventLog = {
|
|
12
|
-
user_email: string;
|
|
13
|
-
description: string;
|
|
14
|
-
application_source?: string;
|
|
15
|
-
event_action: string;
|
|
16
|
-
event_unix_time_ms: number;
|
|
17
|
-
master_id?: number;
|
|
18
|
-
event_item_id?: string;
|
|
19
|
-
event_item_type?: string;
|
|
20
|
-
event_item_name?: string;
|
|
21
|
-
} & ConditionalEnterpriseEventLog;
|
|
22
|
-
type BaseEnterpriseEventLogQuery = {
|
|
23
|
-
master_id?: string;
|
|
24
|
-
user_email?: string;
|
|
25
|
-
limit?: string;
|
|
26
|
-
offset?: string;
|
|
27
|
-
order?: 'ASC' | 'DESC';
|
|
28
|
-
};
|
|
29
|
-
export type EnterpriseEventItemIdExists = BaseEnterpriseEventLogQuery & {
|
|
30
|
-
event_item_id: string;
|
|
31
|
-
application_source: string;
|
|
32
|
-
event_item_type: string;
|
|
33
|
-
};
|
|
34
|
-
export type EnterpriseEventItemTypeIdExists = BaseEnterpriseEventLogQuery & {
|
|
35
|
-
event_item_id?: string;
|
|
36
|
-
application_source: string;
|
|
37
|
-
event_item_type: string;
|
|
38
|
-
};
|
|
39
|
-
export type EnterpriseEventNoSpecialRequirements = BaseEnterpriseEventLogQuery & {
|
|
40
|
-
event_item_id?: never;
|
|
41
|
-
event_item_type?: never;
|
|
42
|
-
application_source?: string;
|
|
43
|
-
};
|
|
44
|
-
export type EnterpriseEventLogQuery = EnterpriseEventItemIdExists | EnterpriseEventItemTypeIdExists | EnterpriseEventNoSpecialRequirements;
|
|
45
|
-
export type ServiceKeys = 'accessToken' | 'jwtConfig';
|
|
46
|
-
export type AccessConfigs = {
|
|
47
|
-
accessToken?: string;
|
|
48
|
-
jwtConfig?: {
|
|
49
|
-
jwtEmail: string;
|
|
50
|
-
jwtSecret: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export type AccessConfig = {
|
|
54
|
-
[K in ServiceKeys]: {
|
|
55
|
-
[P in K]: AccessConfigs[K];
|
|
56
|
-
};
|
|
57
|
-
}[ServiceKeys];
|
|
58
|
-
export interface XperienceCoreClientConfig {
|
|
59
|
-
server: string;
|
|
60
|
-
accessConfig: AccessConfig;
|
|
61
|
-
}
|
|
62
|
-
export {};
|
package/dist/core/index.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
export type CredStoreConfig = {
|
|
2
|
-
api_server: string;
|
|
3
|
-
api_key?: string;
|
|
4
|
-
};
|
|
5
|
-
export declare enum CredentialProvider {
|
|
6
|
-
generic = "generic",
|
|
7
|
-
entrata = "entrata",
|
|
8
|
-
realpage = "realpage",
|
|
9
|
-
yardi = "yardi",
|
|
10
|
-
mailjet = "mailjet",
|
|
11
|
-
reba = "reba",
|
|
12
|
-
rentcafe_v2 = "rentcafe_v2",
|
|
13
|
-
welcome_home = "welcome_home"
|
|
14
|
-
}
|
|
15
|
-
export type RebaCredStoreBundle = CredStoreBundle & {
|
|
16
|
-
data: RebaCredential;
|
|
17
|
-
};
|
|
18
|
-
export type EntrataCredStoreBundle = CredStoreBundle & {
|
|
19
|
-
data: EntrataCredential;
|
|
20
|
-
};
|
|
21
|
-
export type YardiCredStoreBundle = CredStoreBundle & {
|
|
22
|
-
data: YardiCredential;
|
|
23
|
-
};
|
|
24
|
-
export type RealPageCredStoreBundle = CredStoreBundle & {
|
|
25
|
-
data: RealPageCredential;
|
|
26
|
-
};
|
|
27
|
-
export type MailJetCredStoreBundle = CredStoreBundle & {
|
|
28
|
-
data: MailJetCredential;
|
|
29
|
-
};
|
|
30
|
-
export type RentCafeV2CredStoreBundle = CredStoreBundle & {
|
|
31
|
-
data: RentCafeV2Credential;
|
|
32
|
-
};
|
|
33
|
-
export type WelcomeHomeCredStoreBundle = CredStoreBundle & {
|
|
34
|
-
data: WelcomeHomeCredential;
|
|
35
|
-
};
|
|
36
|
-
export type LinkedCompany = {
|
|
37
|
-
master_id: number;
|
|
38
|
-
name: string;
|
|
39
|
-
};
|
|
40
|
-
export type CredStoreBundle = {
|
|
41
|
-
id: number;
|
|
42
|
-
description?: string;
|
|
43
|
-
guid: string;
|
|
44
|
-
secret?: string;
|
|
45
|
-
linkedCompanies?: LinkedCompany[];
|
|
46
|
-
provider: CredentialProvider;
|
|
47
|
-
data: GenericCredential | EntrataCredential | RealPageCredential | YardiCredential | RentCafeV2Credential | MailJetCredential | RebaCredential | WelcomeHomeCredential;
|
|
48
|
-
updated_at: string;
|
|
49
|
-
created_at: string;
|
|
50
|
-
};
|
|
51
|
-
export type CredentialAttribute = {
|
|
52
|
-
[x: string]: any;
|
|
53
|
-
};
|
|
54
|
-
export type BaseCredential = {
|
|
55
|
-
attributes?: Array<CredentialAttribute>;
|
|
56
|
-
};
|
|
57
|
-
export type RebaCredential = BaseCredential & {
|
|
58
|
-
[x: string]: any;
|
|
59
|
-
};
|
|
60
|
-
export type GenericCredential = BaseCredential & {
|
|
61
|
-
[x: string]: any;
|
|
62
|
-
};
|
|
63
|
-
export type MailJetCredential = BaseCredential & {
|
|
64
|
-
username: string;
|
|
65
|
-
password: string;
|
|
66
|
-
};
|
|
67
|
-
export type EntrataCredential = BaseCredential & {
|
|
68
|
-
domain: string;
|
|
69
|
-
username: string;
|
|
70
|
-
password: string;
|
|
71
|
-
property_id: string;
|
|
72
|
-
};
|
|
73
|
-
export type RealPageCredential = BaseCredential & {
|
|
74
|
-
pmcid: string;
|
|
75
|
-
siteid: string;
|
|
76
|
-
username: string;
|
|
77
|
-
password: string;
|
|
78
|
-
licenseKey: string;
|
|
79
|
-
};
|
|
80
|
-
export type RentCafeV2Credential = BaseCredential & {
|
|
81
|
-
company_api_key: string;
|
|
82
|
-
company_code: string;
|
|
83
|
-
};
|
|
84
|
-
export type YardiCredential = BaseCredential & {
|
|
85
|
-
endpoint: string;
|
|
86
|
-
userName: string;
|
|
87
|
-
password: string;
|
|
88
|
-
serverName: string;
|
|
89
|
-
database: string;
|
|
90
|
-
platform: string;
|
|
91
|
-
yardiPropertyId: string;
|
|
92
|
-
interfaceEntity: string;
|
|
93
|
-
interfaceLicense: string;
|
|
94
|
-
};
|
|
95
|
-
export type WelcomeHomeCredential = BaseCredential & {
|
|
96
|
-
api_key: string;
|
|
97
|
-
community_id: string;
|
|
98
|
-
lead_source_id: string;
|
|
99
|
-
};
|
package/dist/credstore/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CredentialProvider = void 0;
|
|
4
|
-
var CredentialProvider;
|
|
5
|
-
(function (CredentialProvider) {
|
|
6
|
-
CredentialProvider["generic"] = "generic";
|
|
7
|
-
CredentialProvider["entrata"] = "entrata";
|
|
8
|
-
CredentialProvider["realpage"] = "realpage";
|
|
9
|
-
CredentialProvider["yardi"] = "yardi";
|
|
10
|
-
CredentialProvider["mailjet"] = "mailjet";
|
|
11
|
-
CredentialProvider["reba"] = "reba";
|
|
12
|
-
CredentialProvider["rentcafe_v2"] = "rentcafe_v2";
|
|
13
|
-
CredentialProvider["welcome_home"] = "welcome_home";
|
|
14
|
-
})(CredentialProvider || (exports.CredentialProvider = CredentialProvider = {}));
|
|
15
|
-
;
|
package/dist/emailhub/index.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
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
|
-
}
|
package/dist/emailhub/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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
DELETED
package/dist/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.core = exports.emailhub = exports.mediahub = exports.clxforms = exports.credstore = void 0;
|
|
4
|
-
exports.credstore = require("./credstore");
|
|
5
|
-
exports.clxforms = require("./clxforms");
|
|
6
|
-
exports.mediahub = require("./mediahub");
|
|
7
|
-
exports.emailhub = require("./emailhub");
|
|
8
|
-
exports.core = require("./core");
|
package/dist/mediahub/index.d.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
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/dist/mediahub/index.js
DELETED