@cakemail-org/ui-components-v2 2.2.89 → 2.2.90
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/factories/automations/index.d.ts +1 -1
- package/dist/cjs/factories/automations/types.d.ts +1 -1
- package/dist/cjs/index.js +6 -5
- package/dist/cjs/models/automation/index.d.ts +2 -2
- package/dist/cjs/services/automations/index.d.ts +9 -9
- package/dist/cjs/services/domains/index.d.ts +2 -1
- package/dist/esm/factories/automations/index.d.ts +1 -1
- package/dist/esm/factories/automations/types.d.ts +1 -1
- package/dist/esm/index.js +6 -5
- package/dist/esm/models/automation/index.d.ts +2 -2
- package/dist/esm/services/automations/index.d.ts +9 -9
- package/dist/esm/services/domains/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { TAutomationStats, TAutomationStatsParam } from "./types";
|
|
|
3
3
|
import { AutomationModel } from "../../models/automation";
|
|
4
4
|
export declare class AutomationsFactory {
|
|
5
5
|
static get({ id }: {
|
|
6
|
-
id:
|
|
6
|
+
id: string;
|
|
7
7
|
}): Promise<AutomationModel>;
|
|
8
8
|
static getAutomationStats({ ...options }: TAutomationStatsParam): Promise<TAutomationStats>;
|
|
9
9
|
static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<AutomationModel>>;
|
package/dist/cjs/index.js
CHANGED
|
@@ -922,7 +922,7 @@ function deepMergeObject(source, target) {
|
|
|
922
922
|
target[key] !== null &&
|
|
923
923
|
!Array.isArray(target[key])) {
|
|
924
924
|
// Recursively merge objects
|
|
925
|
-
target[key] = deepMergeObject(
|
|
925
|
+
target[key] = deepMergeObject(source[key], target[key]);
|
|
926
926
|
}
|
|
927
927
|
else {
|
|
928
928
|
// Otherwise, assign the property directly
|
|
@@ -9817,13 +9817,14 @@ function isDomainValidService(_a) {
|
|
|
9817
9817
|
});
|
|
9818
9818
|
}
|
|
9819
9819
|
function listDkimService(_a) {
|
|
9820
|
-
var _b = _a === void 0 ? {} : _a, id = _b.id;
|
|
9820
|
+
var _b = _a === void 0 ? {} : _a, id = _b.id, useImpersonationTree = _b.useImpersonationTree;
|
|
9821
9821
|
return callApi({
|
|
9822
9822
|
url: uiKitConfig.GATEWAY_PROXY + "/brands/default/dkim",
|
|
9823
9823
|
query: id ? { account_id: id } : undefined,
|
|
9824
9824
|
fetchOptions: {
|
|
9825
9825
|
method: exports.EMethods.get
|
|
9826
|
-
}
|
|
9826
|
+
},
|
|
9827
|
+
useImpersonationTree: useImpersonationTree
|
|
9827
9828
|
});
|
|
9828
9829
|
}
|
|
9829
9830
|
|
|
@@ -9912,7 +9913,7 @@ var AccountModel = /** @class */ (function () {
|
|
|
9912
9913
|
if (!this.id) {
|
|
9913
9914
|
throw new Error("Account was not initialized");
|
|
9914
9915
|
}
|
|
9915
|
-
return [2 /*return*/, listDkimService({ id: this.id }).then(function (data) { return data.data; })];
|
|
9916
|
+
return [2 /*return*/, listDkimService({ id: this.id, useImpersonationTree: false }).then(function (data) { return data.data; })];
|
|
9916
9917
|
});
|
|
9917
9918
|
});
|
|
9918
9919
|
};
|
|
@@ -10177,7 +10178,7 @@ function updateAnyAutomation(_a) {
|
|
|
10177
10178
|
|
|
10178
10179
|
var AutomationModel = /** @class */ (function () {
|
|
10179
10180
|
function AutomationModel(automation) {
|
|
10180
|
-
this.id = automation.id ||
|
|
10181
|
+
this.id = automation.id || "";
|
|
10181
10182
|
this.name = automation.name || "";
|
|
10182
10183
|
this.description = automation.description || "";
|
|
10183
10184
|
this.status = automation.status || "inactive";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TAutomation } from "../../factories/automations/types";
|
|
2
|
-
import { TAutomationEmailContent, TSingleAutomationStats } from "./types";
|
|
3
2
|
import { TDeleteApiResource } from "../../types";
|
|
3
|
+
import { TAutomationEmailContent, TSingleAutomationStats } from "./types";
|
|
4
4
|
export declare class AutomationModel {
|
|
5
|
-
readonly id:
|
|
5
|
+
readonly id: string;
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|
|
8
8
|
status: "active" | "inactive" | "deleted";
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TAutomation, TAutomationStatsParam } from "../../factories/automations/types";
|
|
2
2
|
import { TGenericListParams } from "../../types";
|
|
3
3
|
export declare function getAllAutomationStats({ ...options }: TAutomationStatsParam): Promise<any>;
|
|
4
4
|
export declare function listAutomations({ ...options }: TGenericListParams): Promise<any>;
|
|
5
5
|
export declare function listWorkflows({ ...options }: TGenericListParams): Promise<any>;
|
|
6
6
|
export declare function getAutomation({ id }: {
|
|
7
|
-
id:
|
|
7
|
+
id: string;
|
|
8
8
|
}): Promise<any>;
|
|
9
9
|
export declare function deleteAutomation({ id }: {
|
|
10
|
-
id:
|
|
10
|
+
id: string;
|
|
11
11
|
}): Promise<any>;
|
|
12
12
|
export declare function getAutomationExecutionsCount({ id }: {
|
|
13
13
|
id: string;
|
|
14
14
|
}): Promise<any>;
|
|
15
15
|
export declare function updateAutomation({ id, data }: {
|
|
16
|
-
id:
|
|
16
|
+
id: string;
|
|
17
17
|
data: Partial<TAutomation>;
|
|
18
18
|
}): Promise<any>;
|
|
19
19
|
export declare function deleteWorkflow({ id }: {
|
|
20
|
-
id:
|
|
20
|
+
id: string;
|
|
21
21
|
}): Promise<any>;
|
|
22
22
|
export declare function updateWorkflow({ id, data }: {
|
|
23
|
-
id:
|
|
23
|
+
id: string;
|
|
24
24
|
data: Partial<TAutomation>;
|
|
25
25
|
}): Promise<any>;
|
|
26
26
|
export declare function getAutomationStats({ id, path }: {
|
|
27
|
-
id:
|
|
27
|
+
id: string;
|
|
28
28
|
path: string;
|
|
29
29
|
}): Promise<any>;
|
|
30
30
|
export declare function getAutomationEmailContent({ contentId }: {
|
|
31
31
|
contentId: string;
|
|
32
32
|
}): Promise<any>;
|
|
33
33
|
export declare function deleteAnyAutomation({ id, v1 }: {
|
|
34
|
-
id:
|
|
34
|
+
id: string;
|
|
35
35
|
v1?: boolean;
|
|
36
36
|
}): Promise<any>;
|
|
37
37
|
export declare function updateAnyAutomation({ id, data, v1 }: {
|
|
38
|
-
id:
|
|
38
|
+
id: string;
|
|
39
39
|
data: Partial<TAutomation>;
|
|
40
40
|
v1?: boolean;
|
|
41
41
|
}): Promise<any>;
|
|
@@ -8,7 +8,8 @@ export declare function isDomainValidService({ domain, useImpersonationTree, que
|
|
|
8
8
|
useImpersonationTree?: boolean;
|
|
9
9
|
query?: any;
|
|
10
10
|
}): Promise<any>;
|
|
11
|
-
export declare function listDkimService({ id }?: {
|
|
11
|
+
export declare function listDkimService({ id, useImpersonationTree }?: {
|
|
12
12
|
id?: TNumStr;
|
|
13
|
+
useImpersonationTree?: boolean;
|
|
13
14
|
}): Promise<TGenericListReturn<TDkimKey>>;
|
|
14
15
|
export * from "./types";
|
|
@@ -3,7 +3,7 @@ import { TAutomationStats, TAutomationStatsParam } from "./types";
|
|
|
3
3
|
import { AutomationModel } from "../../models/automation";
|
|
4
4
|
export declare class AutomationsFactory {
|
|
5
5
|
static get({ id }: {
|
|
6
|
-
id:
|
|
6
|
+
id: string;
|
|
7
7
|
}): Promise<AutomationModel>;
|
|
8
8
|
static getAutomationStats({ ...options }: TAutomationStatsParam): Promise<TAutomationStats>;
|
|
9
9
|
static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<AutomationModel>>;
|
package/dist/esm/index.js
CHANGED
|
@@ -902,7 +902,7 @@ function deepMergeObject(source, target) {
|
|
|
902
902
|
target[key] !== null &&
|
|
903
903
|
!Array.isArray(target[key])) {
|
|
904
904
|
// Recursively merge objects
|
|
905
|
-
target[key] = deepMergeObject(
|
|
905
|
+
target[key] = deepMergeObject(source[key], target[key]);
|
|
906
906
|
}
|
|
907
907
|
else {
|
|
908
908
|
// Otherwise, assign the property directly
|
|
@@ -9797,13 +9797,14 @@ function isDomainValidService(_a) {
|
|
|
9797
9797
|
});
|
|
9798
9798
|
}
|
|
9799
9799
|
function listDkimService(_a) {
|
|
9800
|
-
var _b = _a === void 0 ? {} : _a, id = _b.id;
|
|
9800
|
+
var _b = _a === void 0 ? {} : _a, id = _b.id, useImpersonationTree = _b.useImpersonationTree;
|
|
9801
9801
|
return callApi({
|
|
9802
9802
|
url: uiKitConfig.GATEWAY_PROXY + "/brands/default/dkim",
|
|
9803
9803
|
query: id ? { account_id: id } : undefined,
|
|
9804
9804
|
fetchOptions: {
|
|
9805
9805
|
method: EMethods.get
|
|
9806
|
-
}
|
|
9806
|
+
},
|
|
9807
|
+
useImpersonationTree: useImpersonationTree
|
|
9807
9808
|
});
|
|
9808
9809
|
}
|
|
9809
9810
|
|
|
@@ -9892,7 +9893,7 @@ var AccountModel = /** @class */ (function () {
|
|
|
9892
9893
|
if (!this.id) {
|
|
9893
9894
|
throw new Error("Account was not initialized");
|
|
9894
9895
|
}
|
|
9895
|
-
return [2 /*return*/, listDkimService({ id: this.id }).then(function (data) { return data.data; })];
|
|
9896
|
+
return [2 /*return*/, listDkimService({ id: this.id, useImpersonationTree: false }).then(function (data) { return data.data; })];
|
|
9896
9897
|
});
|
|
9897
9898
|
});
|
|
9898
9899
|
};
|
|
@@ -10157,7 +10158,7 @@ function updateAnyAutomation(_a) {
|
|
|
10157
10158
|
|
|
10158
10159
|
var AutomationModel = /** @class */ (function () {
|
|
10159
10160
|
function AutomationModel(automation) {
|
|
10160
|
-
this.id = automation.id ||
|
|
10161
|
+
this.id = automation.id || "";
|
|
10161
10162
|
this.name = automation.name || "";
|
|
10162
10163
|
this.description = automation.description || "";
|
|
10163
10164
|
this.status = automation.status || "inactive";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TAutomation } from "../../factories/automations/types";
|
|
2
|
-
import { TAutomationEmailContent, TSingleAutomationStats } from "./types";
|
|
3
2
|
import { TDeleteApiResource } from "../../types";
|
|
3
|
+
import { TAutomationEmailContent, TSingleAutomationStats } from "./types";
|
|
4
4
|
export declare class AutomationModel {
|
|
5
|
-
readonly id:
|
|
5
|
+
readonly id: string;
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|
|
8
8
|
status: "active" | "inactive" | "deleted";
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TAutomation, TAutomationStatsParam } from "../../factories/automations/types";
|
|
2
2
|
import { TGenericListParams } from "../../types";
|
|
3
3
|
export declare function getAllAutomationStats({ ...options }: TAutomationStatsParam): Promise<any>;
|
|
4
4
|
export declare function listAutomations({ ...options }: TGenericListParams): Promise<any>;
|
|
5
5
|
export declare function listWorkflows({ ...options }: TGenericListParams): Promise<any>;
|
|
6
6
|
export declare function getAutomation({ id }: {
|
|
7
|
-
id:
|
|
7
|
+
id: string;
|
|
8
8
|
}): Promise<any>;
|
|
9
9
|
export declare function deleteAutomation({ id }: {
|
|
10
|
-
id:
|
|
10
|
+
id: string;
|
|
11
11
|
}): Promise<any>;
|
|
12
12
|
export declare function getAutomationExecutionsCount({ id }: {
|
|
13
13
|
id: string;
|
|
14
14
|
}): Promise<any>;
|
|
15
15
|
export declare function updateAutomation({ id, data }: {
|
|
16
|
-
id:
|
|
16
|
+
id: string;
|
|
17
17
|
data: Partial<TAutomation>;
|
|
18
18
|
}): Promise<any>;
|
|
19
19
|
export declare function deleteWorkflow({ id }: {
|
|
20
|
-
id:
|
|
20
|
+
id: string;
|
|
21
21
|
}): Promise<any>;
|
|
22
22
|
export declare function updateWorkflow({ id, data }: {
|
|
23
|
-
id:
|
|
23
|
+
id: string;
|
|
24
24
|
data: Partial<TAutomation>;
|
|
25
25
|
}): Promise<any>;
|
|
26
26
|
export declare function getAutomationStats({ id, path }: {
|
|
27
|
-
id:
|
|
27
|
+
id: string;
|
|
28
28
|
path: string;
|
|
29
29
|
}): Promise<any>;
|
|
30
30
|
export declare function getAutomationEmailContent({ contentId }: {
|
|
31
31
|
contentId: string;
|
|
32
32
|
}): Promise<any>;
|
|
33
33
|
export declare function deleteAnyAutomation({ id, v1 }: {
|
|
34
|
-
id:
|
|
34
|
+
id: string;
|
|
35
35
|
v1?: boolean;
|
|
36
36
|
}): Promise<any>;
|
|
37
37
|
export declare function updateAnyAutomation({ id, data, v1 }: {
|
|
38
|
-
id:
|
|
38
|
+
id: string;
|
|
39
39
|
data: Partial<TAutomation>;
|
|
40
40
|
v1?: boolean;
|
|
41
41
|
}): Promise<any>;
|
|
@@ -8,7 +8,8 @@ export declare function isDomainValidService({ domain, useImpersonationTree, que
|
|
|
8
8
|
useImpersonationTree?: boolean;
|
|
9
9
|
query?: any;
|
|
10
10
|
}): Promise<any>;
|
|
11
|
-
export declare function listDkimService({ id }?: {
|
|
11
|
+
export declare function listDkimService({ id, useImpersonationTree }?: {
|
|
12
12
|
id?: TNumStr;
|
|
13
|
+
useImpersonationTree?: boolean;
|
|
13
14
|
}): Promise<TGenericListReturn<TDkimKey>>;
|
|
14
15
|
export * from "./types";
|