@cakemail-org/ui-components-v2 2.2.55 → 2.2.57
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/components/genericWrapper/index.d.ts +1 -1
- package/dist/cjs/components/genericWrapper/types.d.ts +3 -0
- package/dist/cjs/components/icon/types.d.ts +4 -0
- package/dist/cjs/components/icons/14/DoubleChevron.d.ts +4 -0
- package/dist/cjs/components/icons/44/createContacts.d.ts +4 -0
- package/dist/cjs/components/icons/44/createPages.d.ts +4 -0
- package/dist/cjs/components/icons/44/createPopups.d.ts +4 -0
- package/dist/cjs/components/sideMenu/types.d.ts +17 -10
- package/dist/cjs/data/theme/MuiTableCell.d.ts +1 -0
- package/dist/cjs/factories/index.d.ts +0 -1
- package/dist/cjs/factories/lists/index.d.ts +8 -1
- package/dist/cjs/index.js +17746 -17407
- package/dist/cjs/models/account/index.d.ts +2 -1
- package/dist/cjs/models/contact/index.d.ts +6 -0
- package/dist/cjs/models/contact/types.d.ts +1 -0
- package/dist/cjs/models/list/index.d.ts +34 -1
- package/dist/cjs/models/popups/index.d.ts +1 -0
- package/dist/cjs/models/popups/types.d.ts +1 -0
- package/dist/cjs/models/sender/index.d.ts +4 -1
- package/dist/cjs/models/sender/types.d.ts +5 -0
- package/dist/cjs/models/templates/index.d.ts +1 -1
- package/dist/cjs/models/templates/types.d.ts +1 -0
- package/dist/cjs/services/contacts/index.d.ts +18 -0
- package/dist/cjs/services/hidden/index.d.ts +0 -1
- package/dist/cjs/services/lists/index.d.ts +37 -2
- package/dist/cjs/services/senders/index.d.ts +6 -0
- package/dist/cjs/services/templates/index.d.ts +2 -1
- package/dist/cjs/types/generic.d.ts +5 -1
- package/dist/cjs/utils/data.d.ts +1 -1
- package/dist/cjs/utils/posthog.d.ts +4 -0
- package/dist/esm/components/genericWrapper/index.d.ts +1 -1
- package/dist/esm/components/genericWrapper/types.d.ts +3 -0
- package/dist/esm/components/icon/types.d.ts +4 -0
- package/dist/esm/components/icons/14/DoubleChevron.d.ts +4 -0
- package/dist/esm/components/icons/44/createContacts.d.ts +4 -0
- package/dist/esm/components/icons/44/createPages.d.ts +4 -0
- package/dist/esm/components/icons/44/createPopups.d.ts +4 -0
- package/dist/esm/components/sideMenu/types.d.ts +17 -10
- package/dist/esm/data/theme/MuiTableCell.d.ts +1 -0
- package/dist/esm/factories/index.d.ts +0 -1
- package/dist/esm/factories/lists/index.d.ts +8 -1
- package/dist/esm/index.js +17736 -17407
- package/dist/esm/models/account/index.d.ts +2 -1
- package/dist/esm/models/contact/index.d.ts +6 -0
- package/dist/esm/models/contact/types.d.ts +1 -0
- package/dist/esm/models/list/index.d.ts +34 -1
- package/dist/esm/models/popups/index.d.ts +1 -0
- package/dist/esm/models/popups/types.d.ts +1 -0
- package/dist/esm/models/sender/index.d.ts +4 -1
- package/dist/esm/models/sender/types.d.ts +5 -0
- package/dist/esm/models/templates/index.d.ts +1 -1
- package/dist/esm/models/templates/types.d.ts +1 -0
- package/dist/esm/services/contacts/index.d.ts +18 -0
- package/dist/esm/services/hidden/index.d.ts +0 -1
- package/dist/esm/services/lists/index.d.ts +37 -2
- package/dist/esm/services/senders/index.d.ts +6 -0
- package/dist/esm/services/templates/index.d.ts +2 -1
- package/dist/esm/types/generic.d.ts +5 -1
- package/dist/esm/utils/data.d.ts +1 -1
- package/dist/esm/utils/posthog.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cjs/factories/support/index.d.ts +0 -5
- package/dist/cjs/factories/support/types.d.ts +0 -6
- package/dist/esm/factories/support/index.d.ts +0 -5
- package/dist/esm/factories/support/types.d.ts +0 -6
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TBrand } from "../../factories";
|
|
2
|
+
import { CustomerModel } from "../customer";
|
|
2
3
|
import { TAccountAddress, TAccountDomains, TAccountLimits, TAccountModel, TAccountOwner, TAccountReport, TDeleteAccountResponse, TGetAccountReport } from "./types";
|
|
3
4
|
export declare class AccountModel {
|
|
4
5
|
readonly id: number;
|
|
@@ -30,7 +31,7 @@ export declare class AccountModel {
|
|
|
30
31
|
getReport({ ...options }: TGetAccountReport): Promise<TAccountReport>;
|
|
31
32
|
impersonate(byContext?: boolean): Promise<any>;
|
|
32
33
|
getDomains(): Promise<TAccountDomains>;
|
|
33
|
-
getCustomer(): Promise<
|
|
34
|
+
getCustomer(): Promise<CustomerModel>;
|
|
34
35
|
update(account: Partial<TAccountModel>): Promise<{
|
|
35
36
|
data: AccountModel;
|
|
36
37
|
warning: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TActionApiResource, TDeleteApiResource, TUnsubscribeApiResource } from "../../types";
|
|
1
2
|
import { TContactCustomAttribute, TContactModel } from "./types";
|
|
2
3
|
export declare class ContactModel {
|
|
3
4
|
readonly id: number;
|
|
@@ -9,8 +10,13 @@ export declare class ContactModel {
|
|
|
9
10
|
custom_attributes: TContactCustomAttribute[];
|
|
10
11
|
tags: string[];
|
|
11
12
|
interests: string[];
|
|
13
|
+
private listId;
|
|
12
14
|
constructor(params: TContactModel);
|
|
13
15
|
toJson(): any;
|
|
14
16
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
17
|
+
delete(): Promise<TDeleteApiResource>;
|
|
18
|
+
unsubscribe(): Promise<TUnsubscribeApiResource<TContactModel>>;
|
|
19
|
+
tag(tags: string[]): Promise<TActionApiResource>;
|
|
20
|
+
untag(tags: string[]): Promise<TActionApiResource>;
|
|
15
21
|
}
|
|
16
22
|
export * from "./types";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EApiLanguages, TDeleteApiResource, TGenericListParams, TGenericListReturn } from "../../types";
|
|
1
|
+
import { EApiLanguages, TActionApiResource, TDeleteApiResource, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
2
|
+
import { TTask, TTaskDownload } from "../tasks";
|
|
2
3
|
import { TListCustomAttribute, TListInterest, TListModel, TListPages, TListRedirections, TListReport, TListSender, TListWebhook } from "./types";
|
|
3
4
|
export declare class ListModel {
|
|
4
5
|
readonly id: number;
|
|
@@ -24,5 +25,37 @@ export declare class ListModel {
|
|
|
24
25
|
getAttributes(options?: TGenericListParams): Promise<TGenericListReturn<TListCustomAttribute>>;
|
|
25
26
|
getInterests(options?: TGenericListParams): Promise<TGenericListReturn<TListInterest>>;
|
|
26
27
|
getReport(): Promise<TListReport>;
|
|
28
|
+
addTagsToContacts({ tags, contactIds, json }: {
|
|
29
|
+
tags: string[];
|
|
30
|
+
contactIds?: number[];
|
|
31
|
+
json?: boolean;
|
|
32
|
+
}): Promise<TActionApiResource>;
|
|
33
|
+
removeTagsFromContacts({ tags, contactIds, json }: {
|
|
34
|
+
tags: string[];
|
|
35
|
+
contactIds?: number[];
|
|
36
|
+
json?: boolean;
|
|
37
|
+
}): Promise<TActionApiResource>;
|
|
38
|
+
addInterestsToContacts({ interests, contactIds, json }: {
|
|
39
|
+
interests: string[];
|
|
40
|
+
contactIds?: number[];
|
|
41
|
+
json?: boolean;
|
|
42
|
+
}): Promise<TActionApiResource>;
|
|
43
|
+
removeInterestsFromContacts({ interests, contactIds, json }: {
|
|
44
|
+
interests: string[];
|
|
45
|
+
contactIds?: number[];
|
|
46
|
+
json?: boolean;
|
|
47
|
+
}): Promise<TActionApiResource>;
|
|
48
|
+
exportContacts({ description, json, segmentId, filter }: {
|
|
49
|
+
description?: string;
|
|
50
|
+
json?: boolean;
|
|
51
|
+
segmentId?: number;
|
|
52
|
+
filter?: string;
|
|
53
|
+
}): Promise<TGenericReturn<TTask>>;
|
|
54
|
+
getExport({ exportId }: {
|
|
55
|
+
exportId: string;
|
|
56
|
+
}): Promise<TGenericReturn<TTask>>;
|
|
57
|
+
downloadExport({ exportId }: {
|
|
58
|
+
exportId: string;
|
|
59
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
27
60
|
}
|
|
28
61
|
export * from "./types";
|
|
@@ -21,6 +21,7 @@ export declare class ListPopupModel {
|
|
|
21
21
|
thumbnail_url: string;
|
|
22
22
|
overlay: TPopupOverlay;
|
|
23
23
|
closeButton: TPopupButton;
|
|
24
|
+
published_url: string | null;
|
|
24
25
|
constructor(params: TPopupModel);
|
|
25
26
|
toJson(): any;
|
|
26
27
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { TSenderModel } from "./types";
|
|
1
|
+
import { TSenderModel, TSenderVerificationEmailResponse } from "./types";
|
|
2
|
+
import { TDeleteApiResource } from "../../types";
|
|
2
3
|
export declare class SenderModel {
|
|
3
4
|
readonly id: number;
|
|
4
5
|
name: string;
|
|
@@ -10,5 +11,7 @@ export declare class SenderModel {
|
|
|
10
11
|
constructor({ id, name, email, confirmed, confirmed_on, language, last_confirmation_sent_on }: TSenderModel);
|
|
11
12
|
toJson(): any;
|
|
12
13
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
14
|
+
resendVerificationEmail(): Promise<TSenderVerificationEmailResponse>;
|
|
15
|
+
delete(): Promise<TDeleteApiResource>;
|
|
13
16
|
}
|
|
14
17
|
export * from "./types";
|
|
@@ -20,7 +20,7 @@ export declare class ListTemplateModel {
|
|
|
20
20
|
render({ brandAccountId }: {
|
|
21
21
|
brandAccountId?: TNumStr;
|
|
22
22
|
}): Promise<string>;
|
|
23
|
-
share({ accounts, everyone, automatic }?: TTemplateSharePayload): Promise<void>;
|
|
23
|
+
share({ accounts, everyone, automatic, patch }?: TTemplateSharePayload): Promise<void>;
|
|
24
24
|
unshare(): Promise<void>;
|
|
25
25
|
}
|
|
26
26
|
export declare class TemplateModel extends ListTemplateModel {
|
|
@@ -1,3 +1,21 @@
|
|
|
1
1
|
import { TListContacts } from "./types";
|
|
2
2
|
export declare function listContacts({ listId, useImpersonationTree, ...options }: TListContacts): Promise<any>;
|
|
3
|
+
export declare function deleteContact({ contactId, listId }: {
|
|
4
|
+
contactId: number;
|
|
5
|
+
listId: number;
|
|
6
|
+
}): Promise<any>;
|
|
7
|
+
export declare function unsubscribeContact({ contactId, listId }: {
|
|
8
|
+
contactId: number;
|
|
9
|
+
listId: number;
|
|
10
|
+
}): Promise<any>;
|
|
11
|
+
export declare function tagContact({ contactId, listId, tags }: {
|
|
12
|
+
contactId: number;
|
|
13
|
+
listId: number;
|
|
14
|
+
tags: string[];
|
|
15
|
+
}): Promise<any>;
|
|
16
|
+
export declare function untagContact({ contactId, listId, tags }: {
|
|
17
|
+
contactId: number;
|
|
18
|
+
listId: number;
|
|
19
|
+
tags: string[];
|
|
20
|
+
}): Promise<any>;
|
|
3
21
|
export * from "./types";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EEditorType, TRequestSupportService } from "./types";
|
|
2
2
|
export declare function requestSupportService({ ...requestOptions }: TRequestSupportService): Promise<any>;
|
|
3
|
-
export declare function connectToZendeskSupportService(): Promise<any>;
|
|
4
3
|
export declare function getBeeTokenService({ editorType }: {
|
|
5
4
|
editorType: EEditorType;
|
|
6
5
|
}): Promise<any>;
|
|
@@ -27,11 +27,46 @@ export declare function listListAttributes({ id, ...options }: TGenericListParam
|
|
|
27
27
|
export declare function listListInterests({ id, ...options }: TGenericListParams & {
|
|
28
28
|
id: number;
|
|
29
29
|
}): Promise<any>;
|
|
30
|
-
export declare function
|
|
30
|
+
export declare function downloadListLogExport({ listId, exportId }: {
|
|
31
31
|
listId: number;
|
|
32
32
|
exportId: string;
|
|
33
33
|
}): Promise<any>;
|
|
34
|
-
export declare function
|
|
34
|
+
export declare function tagsContactsOfList({ tags, contactIds, json, listId }: {
|
|
35
|
+
tags: string[];
|
|
36
|
+
contactIds?: number[];
|
|
37
|
+
json?: boolean;
|
|
38
|
+
listId: number;
|
|
39
|
+
}): Promise<any>;
|
|
40
|
+
export declare function untagContactsOfList({ tags, contactIds, json, listId }: {
|
|
41
|
+
tags: string[];
|
|
42
|
+
contactIds?: number[];
|
|
43
|
+
json?: boolean;
|
|
44
|
+
listId: number;
|
|
45
|
+
}): Promise<any>;
|
|
46
|
+
export declare function addInterestsToContactsOfList({ interests, contactIds, json, listId }: {
|
|
47
|
+
interests: string[];
|
|
48
|
+
contactIds?: number[];
|
|
49
|
+
json?: boolean;
|
|
50
|
+
listId: number;
|
|
51
|
+
}): Promise<any>;
|
|
52
|
+
export declare function removeInterestsFromContactsOfList({ interests, contactIds, json, listId }: {
|
|
53
|
+
interests: string[];
|
|
54
|
+
contactIds?: number[];
|
|
55
|
+
json?: boolean;
|
|
56
|
+
listId: number;
|
|
57
|
+
}): Promise<any>;
|
|
58
|
+
export declare function createContactsExport({ listId, description, json, segmentId, filter }: {
|
|
59
|
+
listId: number;
|
|
60
|
+
description?: string;
|
|
61
|
+
json?: boolean;
|
|
62
|
+
segmentId?: number;
|
|
63
|
+
filter?: string;
|
|
64
|
+
}): Promise<any>;
|
|
65
|
+
export declare function getContactsExport({ listId, exportId }: {
|
|
66
|
+
listId: number;
|
|
67
|
+
exportId: string;
|
|
68
|
+
}): Promise<any>;
|
|
69
|
+
export declare function downloadContactsExport({ listId, exportId }: {
|
|
35
70
|
listId: number;
|
|
36
71
|
exportId: string;
|
|
37
72
|
}): Promise<any>;
|
|
@@ -6,4 +6,10 @@ export declare function listSenders({ useImpersonationTree, ...options }: TGener
|
|
|
6
6
|
export declare function getSender({ id }: {
|
|
7
7
|
id: TNumStr;
|
|
8
8
|
}): Promise<any>;
|
|
9
|
+
export declare function resendEmail({ id }: {
|
|
10
|
+
id: TNumStr;
|
|
11
|
+
}): Promise<any>;
|
|
12
|
+
export declare function deleteSender({ id }: {
|
|
13
|
+
id: number;
|
|
14
|
+
}): Promise<any>;
|
|
9
15
|
export * from "./types";
|
|
@@ -19,11 +19,12 @@ export declare function renderTemplate({ id, brandAccountId }: {
|
|
|
19
19
|
id: TNumStr;
|
|
20
20
|
brandAccountId?: TNumStr;
|
|
21
21
|
}): Promise<any>;
|
|
22
|
-
export declare function shareTemplate({ id, accounts, everyone, automatic }: {
|
|
22
|
+
export declare function shareTemplate({ id, accounts, everyone, automatic, patch }: {
|
|
23
23
|
id: TNumStr;
|
|
24
24
|
accounts?: TTemplateShareAccounPayload[];
|
|
25
25
|
everyone?: boolean;
|
|
26
26
|
automatic?: boolean;
|
|
27
|
+
patch?: boolean;
|
|
27
28
|
}): Promise<any>;
|
|
28
29
|
export declare function unshareTemplate({ id }: {
|
|
29
30
|
id: TNumStr;
|
|
@@ -112,6 +112,11 @@ export type TCreateApiResource<T> = {
|
|
|
112
112
|
object: string;
|
|
113
113
|
data: T;
|
|
114
114
|
};
|
|
115
|
+
export type TUnsubscribeApiResource<T> = {
|
|
116
|
+
subscribed: boolean;
|
|
117
|
+
object: string;
|
|
118
|
+
data: T;
|
|
119
|
+
};
|
|
115
120
|
export type TRenderResponse = {
|
|
116
121
|
data: string;
|
|
117
122
|
};
|
|
@@ -133,7 +138,6 @@ export declare enum EApiLanguages {
|
|
|
133
138
|
"en" = "en",
|
|
134
139
|
"en_US" = "en_US",
|
|
135
140
|
"en_GB" = "en_GB",
|
|
136
|
-
"en_UK" = "en_UK",
|
|
137
141
|
"es" = "es",
|
|
138
142
|
"es_US" = "es_US",
|
|
139
143
|
"es_ES" = "es_ES",
|
package/dist/cjs/utils/data.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TGooglePlaceMapperAddress } from "../types";
|
|
2
|
-
export declare function descendingComparator<T>(a: T, b: T, orderBy: keyof T):
|
|
2
|
+
export declare function descendingComparator<T>(a: T, b: T, orderBy: keyof T): 0 | 1 | -1;
|
|
3
3
|
type Order = 'asc' | 'desc';
|
|
4
4
|
export declare function getComparator<Key extends keyof any>(order: Order, orderBy: Key): (a: {
|
|
5
5
|
[key in Key]: number | string;
|
|
@@ -66,9 +66,13 @@ export declare enum EEvents {
|
|
|
66
66
|
CONTACT_EXPORT = "Contact.Export",
|
|
67
67
|
CONTACT_EXPORT_DOWNLOAD = "Contact.Export.Download",
|
|
68
68
|
CONTACT_TAGGED = "Contact.Tagged",
|
|
69
|
+
CONTACTS_TAGGED = "Contacts.Tagged",
|
|
69
70
|
CONTACT_UNTAGGED = "Contact.Untagged",
|
|
71
|
+
CONTACTS_UNTAGGED = "Contacts.Untagged",
|
|
70
72
|
CONTACT_INTERESTED = "Contact.Interested",
|
|
73
|
+
CONTACTS_INTERESTED = "Contacts.Interested",
|
|
71
74
|
CONTACT_UNINTERESTED = "Contact.Uninterested",
|
|
75
|
+
CONTACTS_UNINTERESTED = "Contacts.Uninterested",
|
|
72
76
|
SUPPRESSED_EMAIL_EXPORT_CREATED = "SuppressedEmail.Export.Created",
|
|
73
77
|
SUPPRESSED_EMAIL_EXPORT_DOWNLOAD = "SuppressedEmail.Export.Download",
|
|
74
78
|
SUPPRESSED_EMAIL_DELETED = "SuppressedEmail.Deleted",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TGenericWrapper } from "./types";
|
|
3
|
-
export declare function GenericWrapper({ children, brandObj, userBrandObj, brandId, brandHost, account, user, setPageHead, setPostHog, LocizeInitializer, brandThemeContext, proxyUrl, styleOverride, includeHandlers }: TGenericWrapper): React.JSX.Element;
|
|
3
|
+
export declare function GenericWrapper({ children, brandObj, userBrandObj, brandId, brandHost, account, customer, user, setPageHead, setPostHog, LocizeInitializer, brandThemeContext, proxyUrl, styleOverride, includeHandlers }: TGenericWrapper): React.JSX.Element;
|
|
4
4
|
export default GenericWrapper;
|
|
5
5
|
export * from "./context";
|
|
6
6
|
export * from "./types";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TBrand, TBrandBaseStyles } from "../../factories/brands/types";
|
|
2
|
+
import { CustomerModel } from "../../models";
|
|
2
3
|
import { AccountModel } from "../../models/account";
|
|
3
4
|
import { TAccountModel } from "../../models/account/types";
|
|
4
5
|
import { UserModel } from "../../models/user";
|
|
@@ -10,6 +11,7 @@ export type TGenericWrapper = {
|
|
|
10
11
|
brandHost?: string;
|
|
11
12
|
brandId?: string;
|
|
12
13
|
account?: TAccountModel;
|
|
14
|
+
customer?: CustomerModel | null;
|
|
13
15
|
user?: TUserModel;
|
|
14
16
|
setPageHead?: boolean;
|
|
15
17
|
setPostHog?: boolean;
|
|
@@ -24,4 +26,5 @@ export type TGenericWrapperContext = {
|
|
|
24
26
|
userBrand?: TBrand;
|
|
25
27
|
account: AccountModel;
|
|
26
28
|
user: UserModel;
|
|
29
|
+
customer?: CustomerModel | null;
|
|
27
30
|
};
|
|
@@ -13,6 +13,7 @@ export declare enum EIconName {
|
|
|
13
13
|
"BarChart14" = "BarChart14",
|
|
14
14
|
"Checkmark14" = "Checkmark14",
|
|
15
15
|
"Copy14" = "Copy14",
|
|
16
|
+
"DoubleChevron14" = "DoubleChevron14",
|
|
16
17
|
"Filter14" = "Filter14",
|
|
17
18
|
"Remove14" = "Remove14",
|
|
18
19
|
"X14" = "X14",
|
|
@@ -108,6 +109,9 @@ export declare enum EIconName {
|
|
|
108
109
|
"NonProfits32" = "NonProfits32",
|
|
109
110
|
"Sent32" = "Sent32",
|
|
110
111
|
"Uptime32" = "Uptime32",
|
|
112
|
+
"CreateContacts44" = "CreateContacts44",
|
|
113
|
+
"CreatePages44" = "CreatePages44",
|
|
114
|
+
"CreatePopups44" = "CreatePopups44",
|
|
111
115
|
"CreateWidget44" = "CreateWidget44",
|
|
112
116
|
"EmptyABTest44" = "EmptyABTest44",
|
|
113
117
|
"EmptyFolder44" = "EmptyFolder44",
|
|
@@ -7,17 +7,8 @@ export type TSideMenu = {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
onMouseLeave?: () => void;
|
|
9
9
|
};
|
|
10
|
-
export type TSideMenuContainer = {
|
|
11
|
-
className?: string;
|
|
12
|
-
forcedLocationPath?: string;
|
|
13
|
-
menuItems: (TSideMenuItemItem & {
|
|
14
|
-
subItems?: Omit<TSideMenuItemItem, "subItems">[];
|
|
15
|
-
variant?: TSideMenuItemVariant;
|
|
16
|
-
})[];
|
|
17
|
-
menuItemClick?: TSideMenuItemClick;
|
|
18
|
-
};
|
|
19
10
|
export type TSideMenuItemClick = (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
20
|
-
export type
|
|
11
|
+
export type TSideMenuItemBase = {
|
|
21
12
|
tooltipText?: string;
|
|
22
13
|
icon?: TIconName;
|
|
23
14
|
defaultItemIcon?: TIconName | false;
|
|
@@ -28,6 +19,22 @@ export type TSideMenuItemItem = {
|
|
|
28
19
|
prefix?: any;
|
|
29
20
|
support?: any;
|
|
30
21
|
};
|
|
22
|
+
export type TSideMenuDivider = {
|
|
23
|
+
divider: true;
|
|
24
|
+
className?: string;
|
|
25
|
+
};
|
|
26
|
+
export type TSideMenuItemWithSubItems = TSideMenuItemBase & {
|
|
27
|
+
subItems?: TSideMenuItemBase[];
|
|
28
|
+
variant?: TSideMenuItemVariant;
|
|
29
|
+
};
|
|
30
|
+
export type TSideMenuItemItem = TSideMenuItemBase | TSideMenuDivider;
|
|
31
|
+
export type TSideMenuContainerItem = TSideMenuItemWithSubItems | TSideMenuDivider;
|
|
32
|
+
export type TSideMenuContainer = {
|
|
33
|
+
className?: string;
|
|
34
|
+
forcedLocationPath?: string;
|
|
35
|
+
menuItems: TSideMenuContainerItem[];
|
|
36
|
+
menuItemClick?: TSideMenuItemClick;
|
|
37
|
+
};
|
|
31
38
|
export type TSideMenuItem = {
|
|
32
39
|
menuItemClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
33
40
|
item: TSideMenuItemItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TTaskDownload } from "../../models";
|
|
1
|
+
import { TTask, TTaskDownload } from "../../models";
|
|
2
2
|
import { ListModel, TListLog, TListReport } from "../../models/list";
|
|
3
3
|
import { TGenericListLogsParams, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
4
4
|
export declare class ListsFactory {
|
|
@@ -20,5 +20,12 @@ export declare class ListsFactory {
|
|
|
20
20
|
listId: number;
|
|
21
21
|
exportId: string;
|
|
22
22
|
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
23
|
+
static exportContacts({ description, json, segmentId, filter, listId }: {
|
|
24
|
+
description?: string;
|
|
25
|
+
json?: boolean;
|
|
26
|
+
segmentId?: number;
|
|
27
|
+
filter?: string;
|
|
28
|
+
listId: number;
|
|
29
|
+
}): Promise<TGenericReturn<TTask>>;
|
|
23
30
|
}
|
|
24
31
|
export * from "./types";
|