@cakemail-org/ui-components-v2 2.1.32 → 2.1.33

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,4 +1,4 @@
1
- import { TExports, TExportsDownload } from "../../models";
1
+ import { TTask, TTaskDownload } from "../../models";
2
2
  import { CampaignModel, ListCampaignModel } from "../../models/campaign";
3
3
  import { TCampaignUpdate } from "../../models/campaign/types";
4
4
  import { TDeleteApiResource, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
@@ -10,18 +10,18 @@ export declare class CampaignsFactory {
10
10
  static create({ campaign }: {
11
11
  campaign: Partial<TCampaignUpdate>;
12
12
  }): Promise<CampaignModel>;
13
- static listReportsExports({ ...options }: TGenericListParams): Promise<TGenericListReturn<TExports>>;
13
+ static listReportsExports({ ...options }: TGenericListParams): Promise<TGenericListReturn<TTask>>;
14
14
  static createReportsExport({ description }: {
15
15
  description?: string;
16
- }): Promise<TGenericReturn<TExports>>;
16
+ }): Promise<TGenericReturn<TTask>>;
17
17
  static getReportExport({ exportId }: {
18
18
  exportId: string;
19
- }): Promise<TGenericReturn<TExports>>;
19
+ }): Promise<TGenericReturn<TTask>>;
20
20
  static deleteReportExport({ exportId }: {
21
21
  exportId: string;
22
22
  }): Promise<TDeleteApiResource>;
23
23
  static downloadReportExport({ exportId }: {
24
24
  exportId: string;
25
- }): Promise<TGenericReturn<TExportsDownload>>;
25
+ }): Promise<TGenericReturn<TTaskDownload>>;
26
26
  }
27
27
  export * from "./types";
@@ -11,5 +11,6 @@ export * from "./senders";
11
11
  export * from "./support";
12
12
  export * from "./systemEmails";
13
13
  export * from "./tags";
14
+ export * from "./tasks";
14
15
  export * from "./templates";
15
16
  export * from "./users";
@@ -0,0 +1,13 @@
1
+ import { TTask } from "../../models";
2
+ import { TDeleteApiResource } from "../../types";
3
+ import { TGenericListParams, TGenericListReturn } from "../../types/services";
4
+ export declare class TasksFactory {
5
+ static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<TTask>>;
6
+ static get({ id }: {
7
+ id: string;
8
+ }): Promise<TTask>;
9
+ static delete({ id }: {
10
+ id: string;
11
+ }): Promise<TDeleteApiResource>;
12
+ }
13
+ export * from "./types";
@@ -0,0 +1 @@
1
+ export {};
package/dist/cjs/index.js CHANGED
@@ -10429,6 +10429,35 @@ function updateSystemEmails(_a) {
10429
10429
  });
10430
10430
  }
10431
10431
 
10432
+ function getTaskService(_a) {
10433
+ var taskId = _a.taskId;
10434
+ return callApi({
10435
+ url: uiKitConfig.GATEWAY_PROXY + "/tasks/" + taskId,
10436
+ fetchOptions: {
10437
+ method: exports.EMethods.get
10438
+ }
10439
+ });
10440
+ }
10441
+ function listTasksService(_a) {
10442
+ var options = __rest(_a, []);
10443
+ return callApi({
10444
+ url: uiKitConfig.GATEWAY_PROXY + "/tasks/",
10445
+ query: camelCase(options),
10446
+ fetchOptions: {
10447
+ method: exports.EMethods.get
10448
+ }
10449
+ });
10450
+ }
10451
+ function deleteTaskService(_a) {
10452
+ var taskId = _a.taskId;
10453
+ return callApi({
10454
+ url: uiKitConfig.GATEWAY_PROXY + "/tasks/" + taskId,
10455
+ fetchOptions: {
10456
+ method: exports.EMethods.delete
10457
+ }
10458
+ });
10459
+ }
10460
+
10432
10461
  function listTemplates(_a) {
10433
10462
  var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
10434
10463
  return callApi({
@@ -17437,6 +17466,15 @@ var SystemEmailsModel = /** @class */ (function () {
17437
17466
  return SystemEmailsModel;
17438
17467
  }());
17439
17468
 
17469
+ exports.ETaskType = void 0;
17470
+ (function (ETaskType) {
17471
+ ETaskType["contacts_export"] = "contactsexport";
17472
+ ETaskType["campaign_logs_export"] = "campaignlogexport";
17473
+ ETaskType["campaigns_reports_export"] = "campaignsreportsexport";
17474
+ ETaskType["suppressed_emails_export"] = "suppressedemailsexport";
17475
+ ETaskType["list_logs_export"] = "listlogsexport";
17476
+ })(exports.ETaskType || (exports.ETaskType = {}));
17477
+
17440
17478
  var ListTemplateModel = /** @class */ (function () {
17441
17479
  function ListTemplateModel(params) {
17442
17480
  var _a;
@@ -17826,6 +17864,40 @@ var TagsFactory = /** @class */ (function () {
17826
17864
  return TagsFactory;
17827
17865
  }());
17828
17866
 
17867
+ var TasksFactory = /** @class */ (function () {
17868
+ function TasksFactory() {
17869
+ }
17870
+ TasksFactory.list = function (_a) {
17871
+ return __awaiter(this, void 0, void 0, function () {
17872
+ var options = __rest(_a, []);
17873
+ return __generator(this, function (_b) {
17874
+ return [2 /*return*/, listTasksService(options)];
17875
+ });
17876
+ });
17877
+ };
17878
+ TasksFactory.get = function (_a) {
17879
+ return __awaiter(this, arguments, void 0, function (_b) {
17880
+ var id = _b.id;
17881
+ return __generator(this, function (_c) {
17882
+ return [2 /*return*/, getTaskService({ taskId: id }).then(function (data) {
17883
+ return data.data;
17884
+ })];
17885
+ });
17886
+ });
17887
+ };
17888
+ TasksFactory.delete = function (_a) {
17889
+ return __awaiter(this, arguments, void 0, function (_b) {
17890
+ var id = _b.id;
17891
+ return __generator(this, function (_c) {
17892
+ return [2 /*return*/, deleteTaskService({ taskId: id }).then(function (data) {
17893
+ return data.data;
17894
+ })];
17895
+ });
17896
+ });
17897
+ };
17898
+ return TasksFactory;
17899
+ }());
17900
+
17829
17901
  var TemplatesFactory = /** @class */ (function () {
17830
17902
  function TemplatesFactory() {
17831
17903
  }
@@ -18030,6 +18102,7 @@ exports.SupportFactory = SupportFactory;
18030
18102
  exports.SystemEmailsFactory = SystemEmailsFactory;
18031
18103
  exports.SystemEmailsModel = SystemEmailsModel;
18032
18104
  exports.TagsFactory = TagsFactory;
18105
+ exports.TasksFactory = TasksFactory;
18033
18106
  exports.TemplateModel = TemplateModel;
18034
18107
  exports.TemplatesFactory = TemplatesFactory;
18035
18108
  exports.TextField = TextField;
@@ -18070,6 +18143,7 @@ exports.deleteCampaignsReportsExport = deleteCampaignsReportsExport;
18070
18143
  exports.deleteForm = deleteForm;
18071
18144
  exports.deletePartialInformation = deletePartialInformation;
18072
18145
  exports.deleteStorageItem = deleteStorageItem;
18146
+ exports.deleteTaskService = deleteTaskService;
18073
18147
  exports.deleteTemplate = deleteTemplate;
18074
18148
  exports.descendingComparator = descendingComparator;
18075
18149
  exports.disableForm = disableForm;
@@ -18127,6 +18201,7 @@ exports.getSender = getSender;
18127
18201
  exports.getStartOfDate = getStartOfDate;
18128
18202
  exports.getStorage = getStorage;
18129
18203
  exports.getTColor = getTColor;
18204
+ exports.getTaskService = getTaskService;
18130
18205
  exports.getTemplate = getTemplate;
18131
18206
  exports.getUnixTime = getUnixTime;
18132
18207
  exports.getUrlQueryParam = getUrlQueryParam;
@@ -18155,6 +18230,7 @@ exports.listListAttributes = listListAttributes;
18155
18230
  exports.listListInterests = listListInterests;
18156
18231
  exports.listSenders = listSenders;
18157
18232
  exports.listSystemEmails = listSystemEmails;
18233
+ exports.listTasksService = listTasksService;
18158
18234
  exports.listTemplates = listTemplates;
18159
18235
  exports.listUsers = listUsers;
18160
18236
  exports.logOutService = logOutService;
@@ -1,5 +1,5 @@
1
1
  import { TActionApiResource, TDeleteApiResource, TGenericListLogsParams, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
2
- import { TExportsDownload } from "../exports";
2
+ import { TTaskDownload } from "../tasks";
3
3
  import { ECampaignStatuses, TCampaignAudience, TCampaignContent, TCampaignLinkReport, TCampaignLinks, TCampaignLogs, TCampaignLogsExport, TCampaignModel, TCampaignReport, TCampaignSendTestReturn, TCampaignSendTestType, TCampaignTracking, TCampaignUpdate, TListCampaignModel } from "./types";
4
4
  export declare class ListCampaignModel {
5
5
  readonly id: number;
@@ -57,7 +57,7 @@ export declare class ListCampaignModel {
57
57
  }): Promise<TGenericListReturn<TCampaignLogsExport>>;
58
58
  downloadLogExport({ exportId }: {
59
59
  exportId: string;
60
- }): Promise<TExportsDownload>;
60
+ }): Promise<TTaskDownload>;
61
61
  getReport(): Promise<TGenericReturn<TCampaignReport>>;
62
62
  getLinkReport({ ...options }: TGenericListLogsParams): Promise<TGenericReturn<TCampaignLinkReport>>;
63
63
  }
@@ -1,5 +1,5 @@
1
1
  import { TApiV2LogType, TApiV2LogUserAgent } from "../../types";
2
- import { TExport } from "../exports/types";
2
+ import { TExport } from "../tasks/types";
3
3
  export declare enum ECampaignStatuses {
4
4
  "active" = "active",
5
5
  "delivering" = "delivering",
@@ -3,10 +3,10 @@ export * from "./campaign";
3
3
  export * from "./contact";
4
4
  export * from "./customer";
5
5
  export * from "./emailAPI";
6
- export * from "./exports";
7
6
  export * from "./form";
8
7
  export * from "./list";
9
8
  export * from "./sender";
10
9
  export * from "./systemEmails";
10
+ export * from "./tasks";
11
11
  export * from "./templates";
12
12
  export * from "./user";
@@ -0,0 +1,25 @@
1
+ export type TTask = {
2
+ id: string;
3
+ status: "pending" | "ready" | "deleted" | "failed";
4
+ description: string;
5
+ requested_by: {
6
+ id: number;
7
+ email: string;
8
+ };
9
+ created_on: number;
10
+ expires_on: number;
11
+ progress: number;
12
+ type: ETaskType;
13
+ payload: any;
14
+ };
15
+ export declare enum ETaskType {
16
+ contacts_export = "contactsexport",
17
+ campaign_logs_export = "campaignlogexport",
18
+ campaigns_reports_export = "campaignsreportsexport",
19
+ suppressed_emails_export = "suppressedemailsexport",
20
+ list_logs_export = "listlogsexport"
21
+ }
22
+ export type TTaskDownload = {
23
+ expires_on: number;
24
+ url: string;
25
+ };
@@ -11,5 +11,6 @@ export * from "./hidden";
11
11
  export * from "./lists";
12
12
  export * from "./senders";
13
13
  export * from "./systemEmails";
14
+ export * from "./tasks";
14
15
  export * from "./templates";
15
16
  export * from "./users";
@@ -0,0 +1,8 @@
1
+ import { TGenericListParams } from "../../types";
2
+ export declare function getTaskService({ taskId }: {
3
+ taskId: string;
4
+ }): Promise<any>;
5
+ export declare function listTasksService({ ...options }: TGenericListParams): Promise<any>;
6
+ export declare function deleteTaskService({ taskId }: {
7
+ taskId: string;
8
+ }): Promise<any>;
@@ -1,4 +1,4 @@
1
- import { TExports, TExportsDownload } from "../../models";
1
+ import { TTask, TTaskDownload } from "../../models";
2
2
  import { CampaignModel, ListCampaignModel } from "../../models/campaign";
3
3
  import { TCampaignUpdate } from "../../models/campaign/types";
4
4
  import { TDeleteApiResource, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
@@ -10,18 +10,18 @@ export declare class CampaignsFactory {
10
10
  static create({ campaign }: {
11
11
  campaign: Partial<TCampaignUpdate>;
12
12
  }): Promise<CampaignModel>;
13
- static listReportsExports({ ...options }: TGenericListParams): Promise<TGenericListReturn<TExports>>;
13
+ static listReportsExports({ ...options }: TGenericListParams): Promise<TGenericListReturn<TTask>>;
14
14
  static createReportsExport({ description }: {
15
15
  description?: string;
16
- }): Promise<TGenericReturn<TExports>>;
16
+ }): Promise<TGenericReturn<TTask>>;
17
17
  static getReportExport({ exportId }: {
18
18
  exportId: string;
19
- }): Promise<TGenericReturn<TExports>>;
19
+ }): Promise<TGenericReturn<TTask>>;
20
20
  static deleteReportExport({ exportId }: {
21
21
  exportId: string;
22
22
  }): Promise<TDeleteApiResource>;
23
23
  static downloadReportExport({ exportId }: {
24
24
  exportId: string;
25
- }): Promise<TGenericReturn<TExportsDownload>>;
25
+ }): Promise<TGenericReturn<TTaskDownload>>;
26
26
  }
27
27
  export * from "./types";
@@ -11,5 +11,6 @@ export * from "./senders";
11
11
  export * from "./support";
12
12
  export * from "./systemEmails";
13
13
  export * from "./tags";
14
+ export * from "./tasks";
14
15
  export * from "./templates";
15
16
  export * from "./users";
@@ -0,0 +1,13 @@
1
+ import { TTask } from "../../models";
2
+ import { TDeleteApiResource } from "../../types";
3
+ import { TGenericListParams, TGenericListReturn } from "../../types/services";
4
+ export declare class TasksFactory {
5
+ static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<TTask>>;
6
+ static get({ id }: {
7
+ id: string;
8
+ }): Promise<TTask>;
9
+ static delete({ id }: {
10
+ id: string;
11
+ }): Promise<TDeleteApiResource>;
12
+ }
13
+ export * from "./types";
@@ -0,0 +1 @@
1
+ export {};
package/dist/esm/index.js CHANGED
@@ -10409,6 +10409,35 @@ function updateSystemEmails(_a) {
10409
10409
  });
10410
10410
  }
10411
10411
 
10412
+ function getTaskService(_a) {
10413
+ var taskId = _a.taskId;
10414
+ return callApi({
10415
+ url: uiKitConfig.GATEWAY_PROXY + "/tasks/" + taskId,
10416
+ fetchOptions: {
10417
+ method: EMethods.get
10418
+ }
10419
+ });
10420
+ }
10421
+ function listTasksService(_a) {
10422
+ var options = __rest(_a, []);
10423
+ return callApi({
10424
+ url: uiKitConfig.GATEWAY_PROXY + "/tasks/",
10425
+ query: camelCase(options),
10426
+ fetchOptions: {
10427
+ method: EMethods.get
10428
+ }
10429
+ });
10430
+ }
10431
+ function deleteTaskService(_a) {
10432
+ var taskId = _a.taskId;
10433
+ return callApi({
10434
+ url: uiKitConfig.GATEWAY_PROXY + "/tasks/" + taskId,
10435
+ fetchOptions: {
10436
+ method: EMethods.delete
10437
+ }
10438
+ });
10439
+ }
10440
+
10412
10441
  function listTemplates(_a) {
10413
10442
  var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
10414
10443
  return callApi({
@@ -17417,6 +17446,15 @@ var SystemEmailsModel = /** @class */ (function () {
17417
17446
  return SystemEmailsModel;
17418
17447
  }());
17419
17448
 
17449
+ var ETaskType;
17450
+ (function (ETaskType) {
17451
+ ETaskType["contacts_export"] = "contactsexport";
17452
+ ETaskType["campaign_logs_export"] = "campaignlogexport";
17453
+ ETaskType["campaigns_reports_export"] = "campaignsreportsexport";
17454
+ ETaskType["suppressed_emails_export"] = "suppressedemailsexport";
17455
+ ETaskType["list_logs_export"] = "listlogsexport";
17456
+ })(ETaskType || (ETaskType = {}));
17457
+
17420
17458
  var ListTemplateModel = /** @class */ (function () {
17421
17459
  function ListTemplateModel(params) {
17422
17460
  var _a;
@@ -17806,6 +17844,40 @@ var TagsFactory = /** @class */ (function () {
17806
17844
  return TagsFactory;
17807
17845
  }());
17808
17846
 
17847
+ var TasksFactory = /** @class */ (function () {
17848
+ function TasksFactory() {
17849
+ }
17850
+ TasksFactory.list = function (_a) {
17851
+ return __awaiter(this, void 0, void 0, function () {
17852
+ var options = __rest(_a, []);
17853
+ return __generator(this, function (_b) {
17854
+ return [2 /*return*/, listTasksService(options)];
17855
+ });
17856
+ });
17857
+ };
17858
+ TasksFactory.get = function (_a) {
17859
+ return __awaiter(this, arguments, void 0, function (_b) {
17860
+ var id = _b.id;
17861
+ return __generator(this, function (_c) {
17862
+ return [2 /*return*/, getTaskService({ taskId: id }).then(function (data) {
17863
+ return data.data;
17864
+ })];
17865
+ });
17866
+ });
17867
+ };
17868
+ TasksFactory.delete = function (_a) {
17869
+ return __awaiter(this, arguments, void 0, function (_b) {
17870
+ var id = _b.id;
17871
+ return __generator(this, function (_c) {
17872
+ return [2 /*return*/, deleteTaskService({ taskId: id }).then(function (data) {
17873
+ return data.data;
17874
+ })];
17875
+ });
17876
+ });
17877
+ };
17878
+ return TasksFactory;
17879
+ }());
17880
+
17809
17881
  var TemplatesFactory = /** @class */ (function () {
17810
17882
  function TemplatesFactory() {
17811
17883
  }
@@ -17919,4 +17991,4 @@ var UsersFactory = /** @class */ (function () {
17919
17991
  return UsersFactory;
17920
17992
  }());
17921
17993
 
17922
- export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler, AssetManager, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, CommonFormModel, ContactModel, ContactsFactory, ContentSectionContainer, CopyToClipboard, CountryDropdown, CustomerModel, DataTable, DataTableHead, DataTableRow, DateCalendar, DatePicker, DateTimeCalendar, DateTimePicker, Dialog, DialogActions, DialogHandler, DialogTitle, Divider, Drawer, DrawerHandler, DropMenu, Dropdown, EApiLanguages, EAssetManagerMatchType, ECampaignStatuses, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailSummaryEngagement, EEvents, EListAttributeType, EMethods, EOperatorTypes, EPartialInfoPool, EStorageType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, Link, ListCampaignModel, ListModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, OverlayHandler, PhoneTextField, Radio, ResourceEdit, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SummaryEnhancedFormModel, SupportFactory, SystemEmailsFactory, SystemEmailsModel, TagsFactory, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopMenu, Typography, UserModel, UsersFactory, acceptListPolicy, addPartialInformation, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, connectToZendeskSupportService, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createForm, createTemplate, deepMergeObject, deleteCampaign, deleteCampaignsReportsExport, deleteForm, deletePartialInformation, deleteStorageItem, deleteTemplate, descendingComparator, disableForm, downloadCampaignLogExport, downloadCampaignsReportsExport, emptyAccountAddress, emptyAccountLimits, enableForm, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountReport, getAdjustedBillingCycle, getBeeTokenService, getBestLocalMatch, getBrand, getBrandService, getBrandUrl, getCalendarFormat, getCampaign, getCampaignLinks, getCampaignLinksReport, getCampaignLogs, getCampaignLogsExports, getCampaignReport, getCampaignRevisions, getCampaignsReportsExport, getComparator, getCustomerProfile, getDate, getDomainFromEmail, getDomainsFromEmails, getDomainsService, getEmail, getEmailActivitySummary, getEmailReport, getEndOfDate, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, getPropertyValue, getSender, getStartOfDate, getStorage, getTColor, getTemplate, getUnixTime, getUrlQueryParam, getUser, getUtmCookies, googlePlacesMapper, hasDecimal, impersonateService, initFieldValidation, initPostHog, isColorLight, isDomainValidService, isSimpleType, isValidEmail, isValidString, isValidUrl, lisTEmailTags, listAccounts, listCampaigns, listCampaignsReportsExports, listContacts, listEmailLogs, listForms, listList, listListAttributes, listListInterests, listSenders, listSystemEmails, listTemplates, listUsers, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, reScheduleCampaign, removeEmptyProperties, removeQueryParams, removeTrailingChar, renderCampaign, renderForm, renderPublicHtmlForm, renderTemplate, requestSupportService, resumeCampaign, scheduleCampaign, searchCustomerProfiles, sendCampaignTest, setBrandHeadElements, setStorage, shareTemplate, splitArray, splitObject, stableSort, startPromisePool, suspendCampaign, trackEvent, truncateEmail, truncateText, uiKitConfig, unArchiveCampaign, unScheduleCampaign, unshareTemplate, updateAccount, updateAndClearUrlParams, updateCampaign, updateSystemEmails, updateTemplate, updateUser, validateColor, validateEmail, validateGenericInput, validateUrl, wait, whiteLabelBrand, whoAmi };
17994
+ export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler, AssetManager, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, CommonFormModel, ContactModel, ContactsFactory, ContentSectionContainer, CopyToClipboard, CountryDropdown, CustomerModel, DataTable, DataTableHead, DataTableRow, DateCalendar, DatePicker, DateTimeCalendar, DateTimePicker, Dialog, DialogActions, DialogHandler, DialogTitle, Divider, Drawer, DrawerHandler, DropMenu, Dropdown, EApiLanguages, EAssetManagerMatchType, ECampaignStatuses, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailSummaryEngagement, EEvents, EListAttributeType, EMethods, EOperatorTypes, EPartialInfoPool, EStorageType, ETaskType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, Link, ListCampaignModel, ListModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, OverlayHandler, PhoneTextField, Radio, ResourceEdit, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SummaryEnhancedFormModel, SupportFactory, SystemEmailsFactory, SystemEmailsModel, TagsFactory, TasksFactory, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopMenu, Typography, UserModel, UsersFactory, acceptListPolicy, addPartialInformation, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, connectToZendeskSupportService, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createForm, createTemplate, deepMergeObject, deleteCampaign, deleteCampaignsReportsExport, deleteForm, deletePartialInformation, deleteStorageItem, deleteTaskService, deleteTemplate, descendingComparator, disableForm, downloadCampaignLogExport, downloadCampaignsReportsExport, emptyAccountAddress, emptyAccountLimits, enableForm, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountReport, getAdjustedBillingCycle, getBeeTokenService, getBestLocalMatch, getBrand, getBrandService, getBrandUrl, getCalendarFormat, getCampaign, getCampaignLinks, getCampaignLinksReport, getCampaignLogs, getCampaignLogsExports, getCampaignReport, getCampaignRevisions, getCampaignsReportsExport, getComparator, getCustomerProfile, getDate, getDomainFromEmail, getDomainsFromEmails, getDomainsService, getEmail, getEmailActivitySummary, getEmailReport, getEndOfDate, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, getPropertyValue, getSender, getStartOfDate, getStorage, getTColor, getTaskService, getTemplate, getUnixTime, getUrlQueryParam, getUser, getUtmCookies, googlePlacesMapper, hasDecimal, impersonateService, initFieldValidation, initPostHog, isColorLight, isDomainValidService, isSimpleType, isValidEmail, isValidString, isValidUrl, lisTEmailTags, listAccounts, listCampaigns, listCampaignsReportsExports, listContacts, listEmailLogs, listForms, listList, listListAttributes, listListInterests, listSenders, listSystemEmails, listTasksService, listTemplates, listUsers, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, reScheduleCampaign, removeEmptyProperties, removeQueryParams, removeTrailingChar, renderCampaign, renderForm, renderPublicHtmlForm, renderTemplate, requestSupportService, resumeCampaign, scheduleCampaign, searchCustomerProfiles, sendCampaignTest, setBrandHeadElements, setStorage, shareTemplate, splitArray, splitObject, stableSort, startPromisePool, suspendCampaign, trackEvent, truncateEmail, truncateText, uiKitConfig, unArchiveCampaign, unScheduleCampaign, unshareTemplate, updateAccount, updateAndClearUrlParams, updateCampaign, updateSystemEmails, updateTemplate, updateUser, validateColor, validateEmail, validateGenericInput, validateUrl, wait, whiteLabelBrand, whoAmi };
@@ -1,5 +1,5 @@
1
1
  import { TActionApiResource, TDeleteApiResource, TGenericListLogsParams, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
2
- import { TExportsDownload } from "../exports";
2
+ import { TTaskDownload } from "../tasks";
3
3
  import { ECampaignStatuses, TCampaignAudience, TCampaignContent, TCampaignLinkReport, TCampaignLinks, TCampaignLogs, TCampaignLogsExport, TCampaignModel, TCampaignReport, TCampaignSendTestReturn, TCampaignSendTestType, TCampaignTracking, TCampaignUpdate, TListCampaignModel } from "./types";
4
4
  export declare class ListCampaignModel {
5
5
  readonly id: number;
@@ -57,7 +57,7 @@ export declare class ListCampaignModel {
57
57
  }): Promise<TGenericListReturn<TCampaignLogsExport>>;
58
58
  downloadLogExport({ exportId }: {
59
59
  exportId: string;
60
- }): Promise<TExportsDownload>;
60
+ }): Promise<TTaskDownload>;
61
61
  getReport(): Promise<TGenericReturn<TCampaignReport>>;
62
62
  getLinkReport({ ...options }: TGenericListLogsParams): Promise<TGenericReturn<TCampaignLinkReport>>;
63
63
  }
@@ -1,5 +1,5 @@
1
1
  import { TApiV2LogType, TApiV2LogUserAgent } from "../../types";
2
- import { TExport } from "../exports/types";
2
+ import { TExport } from "../tasks/types";
3
3
  export declare enum ECampaignStatuses {
4
4
  "active" = "active",
5
5
  "delivering" = "delivering",
@@ -3,10 +3,10 @@ export * from "./campaign";
3
3
  export * from "./contact";
4
4
  export * from "./customer";
5
5
  export * from "./emailAPI";
6
- export * from "./exports";
7
6
  export * from "./form";
8
7
  export * from "./list";
9
8
  export * from "./sender";
10
9
  export * from "./systemEmails";
10
+ export * from "./tasks";
11
11
  export * from "./templates";
12
12
  export * from "./user";
@@ -0,0 +1,25 @@
1
+ export type TTask = {
2
+ id: string;
3
+ status: "pending" | "ready" | "deleted" | "failed";
4
+ description: string;
5
+ requested_by: {
6
+ id: number;
7
+ email: string;
8
+ };
9
+ created_on: number;
10
+ expires_on: number;
11
+ progress: number;
12
+ type: ETaskType;
13
+ payload: any;
14
+ };
15
+ export declare enum ETaskType {
16
+ contacts_export = "contactsexport",
17
+ campaign_logs_export = "campaignlogexport",
18
+ campaigns_reports_export = "campaignsreportsexport",
19
+ suppressed_emails_export = "suppressedemailsexport",
20
+ list_logs_export = "listlogsexport"
21
+ }
22
+ export type TTaskDownload = {
23
+ expires_on: number;
24
+ url: string;
25
+ };
@@ -11,5 +11,6 @@ export * from "./hidden";
11
11
  export * from "./lists";
12
12
  export * from "./senders";
13
13
  export * from "./systemEmails";
14
+ export * from "./tasks";
14
15
  export * from "./templates";
15
16
  export * from "./users";
@@ -0,0 +1,8 @@
1
+ import { TGenericListParams } from "../../types";
2
+ export declare function getTaskService({ taskId }: {
3
+ taskId: string;
4
+ }): Promise<any>;
5
+ export declare function listTasksService({ ...options }: TGenericListParams): Promise<any>;
6
+ export declare function deleteTaskService({ taskId }: {
7
+ taskId: string;
8
+ }): Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.1.32",
3
+ "version": "2.1.33",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,20 +0,0 @@
1
- export type TExport = {
2
- id: string;
3
- status: "pending" | "ready" | "deleted" | "failed";
4
- description: string;
5
- requested_by: {
6
- id: number;
7
- email: string;
8
- };
9
- created_on: number;
10
- expires_on: number;
11
- progress: number;
12
- };
13
- export type TExportsDownload = {
14
- expires_on: number;
15
- url: string;
16
- };
17
- export interface TExports extends TExport {
18
- type: "contactsexport" | "campaignlogexport" | "campaignsreportsexport" | "suppressedemailsexport" | "listlogsexport" | "unknown";
19
- payload: any;
20
- }
@@ -1,20 +0,0 @@
1
- export type TExport = {
2
- id: string;
3
- status: "pending" | "ready" | "deleted" | "failed";
4
- description: string;
5
- requested_by: {
6
- id: number;
7
- email: string;
8
- };
9
- created_on: number;
10
- expires_on: number;
11
- progress: number;
12
- };
13
- export type TExportsDownload = {
14
- expires_on: number;
15
- url: string;
16
- };
17
- export interface TExports extends TExport {
18
- type: "contactsexport" | "campaignlogexport" | "campaignsreportsexport" | "suppressedemailsexport" | "listlogsexport" | "unknown";
19
- payload: any;
20
- }
File without changes
File without changes