@in.pulse-crm/sdk 2.11.3 → 2.11.5

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,49 +1,49 @@
1
- export type ReportType = "chats";
2
- export type ChatsReportFormat = "txt" | "csv" | "pdf";
3
- export type ChatsReportStatus = "pending" | "completed" | "failed";
4
-
5
- export interface ChatsReport {
6
- id: number;
7
- userId: string;
8
- fileId: number;
9
- instance: string;
10
- startDate: string;
11
- endDate: string;
12
- exportDate: string;
13
- chats: number;
14
- messages: number;
15
- format: ChatsReportFormat;
16
- status: ChatsReportStatus;
17
- }
18
-
19
- export interface GenerateChatsReportOptions {
20
- userId: string;
21
- format: ChatsReportFormat;
22
- startDate: string;
23
- endDate: string;
24
- }
25
-
26
- export interface SQLReportColumn {
27
- name: string;
28
- type: string;
29
- }
30
-
31
- export type SQLReportRow = Record<string, any>;
32
-
33
- export interface SqlReport {
34
- id: string;
35
- description: string;
36
- sql: string;
37
- createdAt: string;
38
- status: "pending" | "completed" | "failed";
39
- resultUrl?: string;
40
- }
41
-
42
- export interface ExecuteSqlReportOptions {
43
- sql: string;
44
- description?: string;
45
- }
46
-
47
- export interface ExportSqlReportOptions extends ExecuteSqlReportOptions {
48
- format: ChatsReportFormat;
49
- }
1
+ export type ReportType = "chats";
2
+ export type ChatsReportFormat = "txt" | "csv" | "pdf";
3
+ export type ChatsReportStatus = "pending" | "completed" | "failed";
4
+
5
+ export interface ChatsReport {
6
+ id: number;
7
+ userId: string;
8
+ fileId: number;
9
+ instance: string;
10
+ startDate: string;
11
+ endDate: string;
12
+ exportDate: string;
13
+ chats: number;
14
+ messages: number;
15
+ format: ChatsReportFormat;
16
+ status: ChatsReportStatus;
17
+ }
18
+
19
+ export interface GenerateChatsReportOptions {
20
+ userId: string;
21
+ format: ChatsReportFormat;
22
+ startDate: string;
23
+ endDate: string;
24
+ }
25
+
26
+ export interface SQLReportColumn {
27
+ name: string;
28
+ type: string;
29
+ }
30
+
31
+ export type SQLReportRow = Record<string, any>;
32
+
33
+ export interface SqlReport {
34
+ id: string;
35
+ description: string;
36
+ sql: string;
37
+ createdAt: string;
38
+ status: "pending" | "completed" | "failed";
39
+ resultUrl?: string;
40
+ }
41
+
42
+ export interface ExecuteSqlReportOptions {
43
+ sql: string;
44
+ description?: string;
45
+ }
46
+
47
+ export interface ExportSqlReportOptions extends ExecuteSqlReportOptions {
48
+ format: ChatsReportFormat;
49
+ }
@@ -1,5 +1,5 @@
1
- export type RequestFilters<T> = {
2
- page?: string;
3
- perPage?: string;
4
- sortBy?: keyof T;
5
- } & Partial<Record<keyof T, string>>;
1
+ export type RequestFilters<T> = {
2
+ page?: string;
3
+ perPage?: string;
4
+ sortBy?: keyof T;
5
+ } & Partial<Record<keyof T, string>>;
@@ -1,26 +1,26 @@
1
- export interface DataResponse<T> {
2
- message: string;
3
- data: T;
4
- }
5
-
6
- export interface MessageResponse {
7
- message: string;
8
- }
9
-
10
- export interface ErrorResponse {
11
- message: string;
12
- cause?: any;
13
- }
14
-
15
- export interface PaginatedResponse<T> {
16
- message: string;
17
- data: Array<T>;
18
- page: {
19
- current: number;
20
- totalRows: number;
21
- };
22
- }
23
-
24
- export interface QueryResponse<T> {
25
- result: T;
26
- }
1
+ export interface DataResponse<T> {
2
+ message: string;
3
+ data: T;
4
+ }
5
+
6
+ export interface MessageResponse {
7
+ message: string;
8
+ }
9
+
10
+ export interface ErrorResponse {
11
+ message: string;
12
+ cause?: any;
13
+ }
14
+
15
+ export interface PaginatedResponse<T> {
16
+ message: string;
17
+ data: Array<T>;
18
+ page: {
19
+ current: number;
20
+ totalRows: number;
21
+ };
22
+ }
23
+
24
+ export interface QueryResponse<T> {
25
+ result: T;
26
+ }