@cakemail-org/ui-components-v2 2.2.86 → 2.2.87

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.
@@ -39,7 +39,7 @@ export type TAutomationSubAutomation = {
39
39
  steps: TAutomationStep[];
40
40
  };
41
41
  export type TAutomation = {
42
- id: number;
42
+ id: string;
43
43
  name: string;
44
44
  description: string;
45
45
  status: "active" | "inactive" | "deleted";
package/dist/cjs/index.js CHANGED
@@ -10177,7 +10177,7 @@ function updateAnyAutomation(_a) {
10177
10177
 
10178
10178
  var AutomationModel = /** @class */ (function () {
10179
10179
  function AutomationModel(automation) {
10180
- this.id = automation.id || 0;
10180
+ this.id = automation.id || "";
10181
10181
  this.name = automation.name || "";
10182
10182
  this.description = automation.description || "";
10183
10183
  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: number;
5
+ readonly id: string;
6
6
  name: string;
7
7
  description: string;
8
8
  status: "active" | "inactive" | "deleted";
@@ -7,35 +7,35 @@ export declare function getAutomation({ id }: {
7
7
  id: string;
8
8
  }): Promise<any>;
9
9
  export declare function deleteAutomation({ id }: {
10
- id: number;
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: number;
16
+ id: string;
17
17
  data: Partial<TAutomation>;
18
18
  }): Promise<any>;
19
19
  export declare function deleteWorkflow({ id }: {
20
- id: number;
20
+ id: string;
21
21
  }): Promise<any>;
22
22
  export declare function updateWorkflow({ id, data }: {
23
- id: number;
23
+ id: string;
24
24
  data: Partial<TAutomation>;
25
25
  }): Promise<any>;
26
26
  export declare function getAutomationStats({ id, path }: {
27
- id: number;
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: number;
34
+ id: string;
35
35
  v1?: boolean;
36
36
  }): Promise<any>;
37
37
  export declare function updateAnyAutomation({ id, data, v1 }: {
38
- id: number;
38
+ id: string;
39
39
  data: Partial<TAutomation>;
40
40
  v1?: boolean;
41
41
  }): Promise<any>;
@@ -39,7 +39,7 @@ export type TAutomationSubAutomation = {
39
39
  steps: TAutomationStep[];
40
40
  };
41
41
  export type TAutomation = {
42
- id: number;
42
+ id: string;
43
43
  name: string;
44
44
  description: string;
45
45
  status: "active" | "inactive" | "deleted";
package/dist/esm/index.js CHANGED
@@ -10157,7 +10157,7 @@ function updateAnyAutomation(_a) {
10157
10157
 
10158
10158
  var AutomationModel = /** @class */ (function () {
10159
10159
  function AutomationModel(automation) {
10160
- this.id = automation.id || 0;
10160
+ this.id = automation.id || "";
10161
10161
  this.name = automation.name || "";
10162
10162
  this.description = automation.description || "";
10163
10163
  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: number;
5
+ readonly id: string;
6
6
  name: string;
7
7
  description: string;
8
8
  status: "active" | "inactive" | "deleted";
@@ -7,35 +7,35 @@ export declare function getAutomation({ id }: {
7
7
  id: string;
8
8
  }): Promise<any>;
9
9
  export declare function deleteAutomation({ id }: {
10
- id: number;
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: number;
16
+ id: string;
17
17
  data: Partial<TAutomation>;
18
18
  }): Promise<any>;
19
19
  export declare function deleteWorkflow({ id }: {
20
- id: number;
20
+ id: string;
21
21
  }): Promise<any>;
22
22
  export declare function updateWorkflow({ id, data }: {
23
- id: number;
23
+ id: string;
24
24
  data: Partial<TAutomation>;
25
25
  }): Promise<any>;
26
26
  export declare function getAutomationStats({ id, path }: {
27
- id: number;
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: number;
34
+ id: string;
35
35
  v1?: boolean;
36
36
  }): Promise<any>;
37
37
  export declare function updateAnyAutomation({ id, data, v1 }: {
38
- id: number;
38
+ id: string;
39
39
  data: Partial<TAutomation>;
40
40
  v1?: boolean;
41
41
  }): Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.2.86",
3
+ "version": "2.2.87",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",