@cakemail-org/ui-components-v2 2.0.58 → 2.0.59
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Email } from "../../models/emailAPI";
|
|
2
2
|
import { TGetEmailActivitySummary, TGetEmailReport, TListEmailLogs } from "../../services/emailAPI";
|
|
3
|
-
import {
|
|
4
|
-
import { TEmailActivitySummary, TEmailLog, TEmailReport } from "./types";
|
|
3
|
+
import { TGenericListReturn } from "../../types";
|
|
4
|
+
import { TEmailActivitySummary, TEmailLog, TEmailReport, TListEmailTagsParams } from "./types";
|
|
5
5
|
export declare class EmailAPIFactory {
|
|
6
|
-
static listTags({ ...options }:
|
|
6
|
+
static listTags({ ...options }: TListEmailTagsParams): Promise<TGenericListReturn<string>>;
|
|
7
7
|
static listLogs({ ...options }: TListEmailLogs): Promise<TGenericListReturn<TEmailLog>>;
|
|
8
8
|
static getReport({ ...options }: TGetEmailReport): Promise<TEmailReport[]>;
|
|
9
9
|
static getEmail({ id }: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EEmailProviders } from "../../services";
|
|
2
|
+
import { TGenericListParams } from "../../types";
|
|
2
3
|
export type TEmailLog = {
|
|
3
4
|
id: string;
|
|
4
5
|
type: EEmailLogType;
|
|
@@ -77,3 +78,6 @@ export type TEmailActivitySummary = {
|
|
|
77
78
|
open: number;
|
|
78
79
|
click: number;
|
|
79
80
|
};
|
|
81
|
+
export type TListEmailTagsParams = Omit<TGenericListParams, "filter" | "sort"> & {
|
|
82
|
+
name?: string;
|
|
83
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Email } from "../../models/emailAPI";
|
|
2
2
|
import { TGetEmailActivitySummary, TGetEmailReport, TListEmailLogs } from "../../services/emailAPI";
|
|
3
|
-
import {
|
|
4
|
-
import { TEmailActivitySummary, TEmailLog, TEmailReport } from "./types";
|
|
3
|
+
import { TGenericListReturn } from "../../types";
|
|
4
|
+
import { TEmailActivitySummary, TEmailLog, TEmailReport, TListEmailTagsParams } from "./types";
|
|
5
5
|
export declare class EmailAPIFactory {
|
|
6
|
-
static listTags({ ...options }:
|
|
6
|
+
static listTags({ ...options }: TListEmailTagsParams): Promise<TGenericListReturn<string>>;
|
|
7
7
|
static listLogs({ ...options }: TListEmailLogs): Promise<TGenericListReturn<TEmailLog>>;
|
|
8
8
|
static getReport({ ...options }: TGetEmailReport): Promise<TEmailReport[]>;
|
|
9
9
|
static getEmail({ id }: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EEmailProviders } from "../../services";
|
|
2
|
+
import { TGenericListParams } from "../../types";
|
|
2
3
|
export type TEmailLog = {
|
|
3
4
|
id: string;
|
|
4
5
|
type: EEmailLogType;
|
|
@@ -77,3 +78,6 @@ export type TEmailActivitySummary = {
|
|
|
77
78
|
open: number;
|
|
78
79
|
click: number;
|
|
79
80
|
};
|
|
81
|
+
export type TListEmailTagsParams = Omit<TGenericListParams, "filter" | "sort"> & {
|
|
82
|
+
name?: string;
|
|
83
|
+
};
|