@kl1/contracts 1.0.24 → 1.0.25

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.
@@ -1343,7 +1343,7 @@ export declare const dashboardContract: {
1343
1343
  responses: {
1344
1344
  200: z.ZodObject<{
1345
1345
  requestId: z.ZodString;
1346
- conversationActivity: z.ZodObject<{
1346
+ customerCountStatus: z.ZodObject<{
1347
1347
  newContactCount: z.ZodNullable<z.ZodNumber>;
1348
1348
  oldContactCount: z.ZodNullable<z.ZodNumber>;
1349
1349
  }, "strip", z.ZodTypeAny, {
@@ -1355,13 +1355,13 @@ export declare const dashboardContract: {
1355
1355
  }>;
1356
1356
  }, "strip", z.ZodTypeAny, {
1357
1357
  requestId: string;
1358
- conversationActivity: {
1358
+ customerCountStatus: {
1359
1359
  newContactCount: number | null;
1360
1360
  oldContactCount: number | null;
1361
1361
  };
1362
1362
  }, {
1363
1363
  requestId: string;
1364
- conversationActivity: {
1364
+ customerCountStatus: {
1365
1365
  newContactCount: number | null;
1366
1366
  oldContactCount: number | null;
1367
1367
  };
@@ -1377,7 +1377,7 @@ export declare const dashboardContract: {
1377
1377
  error?: any;
1378
1378
  }>;
1379
1379
  };
1380
- path: "dashboard/message/conversation-activities";
1380
+ path: "dashboard/message/customers";
1381
1381
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1382
1382
  'x-tenant': z.ZodString;
1383
1383
  authorization: z.ZodString;
@@ -1408,7 +1408,7 @@ export declare const dashboardContract: {
1408
1408
  responses: {
1409
1409
  200: z.ZodObject<{
1410
1410
  requestId: z.ZodString;
1411
- roomStatusCountByStatus: z.ZodObject<{
1411
+ messageStatus: z.ZodObject<{
1412
1412
  total: z.ZodNullable<z.ZodNumber>;
1413
1413
  closed: z.ZodNullable<z.ZodNumber>;
1414
1414
  unassignedOpen: z.ZodNullable<z.ZodNumber>;
@@ -1426,7 +1426,7 @@ export declare const dashboardContract: {
1426
1426
  }>;
1427
1427
  }, "strip", z.ZodTypeAny, {
1428
1428
  requestId: string;
1429
- roomStatusCountByStatus: {
1429
+ messageStatus: {
1430
1430
  total: number | null;
1431
1431
  closed: number | null;
1432
1432
  unassignedOpen: number | null;
@@ -1434,7 +1434,7 @@ export declare const dashboardContract: {
1434
1434
  };
1435
1435
  }, {
1436
1436
  requestId: string;
1437
- roomStatusCountByStatus: {
1437
+ messageStatus: {
1438
1438
  total: number | null;
1439
1439
  closed: number | null;
1440
1440
  unassignedOpen: number | null;
@@ -1483,7 +1483,7 @@ export declare const dashboardContract: {
1483
1483
  responses: {
1484
1484
  200: z.ZodObject<{
1485
1485
  requestId: z.ZodString;
1486
- roomStatusAverage: z.ZodObject<{
1486
+ messageAverageData: z.ZodObject<{
1487
1487
  selectedWeekAvgByDay: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1488
1488
  day: z.ZodNullable<z.ZodString>;
1489
1489
  avgResolutionTime: z.ZodNullable<z.ZodString>;
@@ -1548,7 +1548,7 @@ export declare const dashboardContract: {
1548
1548
  }>;
1549
1549
  }, "strip", z.ZodTypeAny, {
1550
1550
  requestId: string;
1551
- roomStatusAverage: {
1551
+ messageAverageData: {
1552
1552
  selectedWeekAvgByDay?: {
1553
1553
  day: string | null;
1554
1554
  avgResolutionTime: string | null;
@@ -1565,7 +1565,7 @@ export declare const dashboardContract: {
1565
1565
  };
1566
1566
  }, {
1567
1567
  requestId: string;
1568
- roomStatusAverage: {
1568
+ messageAverageData: {
1569
1569
  selectedWeekAvgByDay?: {
1570
1570
  day: string | null;
1571
1571
  avgResolutionTime: string | null;
@@ -1754,7 +1754,7 @@ export declare const dashboardContract: {
1754
1754
  responses: {
1755
1755
  200: z.ZodObject<{
1756
1756
  requestId: z.ZodString;
1757
- messageRoomStatusDispositionData: z.ZodObject<{
1757
+ messageDisposition: z.ZodObject<{
1758
1758
  resolvedDispositionCount: z.ZodNullable<z.ZodNumber>;
1759
1759
  prankDispositionCount: z.ZodNullable<z.ZodNumber>;
1760
1760
  followUpDispositionCount: z.ZodNullable<z.ZodNumber>;
@@ -1775,7 +1775,7 @@ export declare const dashboardContract: {
1775
1775
  }>;
1776
1776
  }, "strip", z.ZodTypeAny, {
1777
1777
  requestId: string;
1778
- messageRoomStatusDispositionData: {
1778
+ messageDisposition: {
1779
1779
  resolvedDispositionCount: number | null;
1780
1780
  prankDispositionCount: number | null;
1781
1781
  followUpDispositionCount: number | null;
@@ -1784,7 +1784,7 @@ export declare const dashboardContract: {
1784
1784
  };
1785
1785
  }, {
1786
1786
  requestId: string;
1787
- messageRoomStatusDispositionData: {
1787
+ messageDisposition: {
1788
1788
  resolvedDispositionCount: number | null;
1789
1789
  prankDispositionCount: number | null;
1790
1790
  followUpDispositionCount: number | null;
@@ -1834,7 +1834,7 @@ export declare const dashboardContract: {
1834
1834
  responses: {
1835
1835
  200: z.ZodObject<{
1836
1836
  requestId: z.ZodString;
1837
- incomingMessageByPlatform: z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1837
+ messageIncomingData: z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1838
1838
  platform: z.ZodNullable<z.ZodString>;
1839
1839
  hour: z.ZodNullable<z.ZodString>;
1840
1840
  messageCount: z.ZodNullable<z.ZodString>;
@@ -1849,14 +1849,14 @@ export declare const dashboardContract: {
1849
1849
  }>>>, "many">;
1850
1850
  }, "strip", z.ZodTypeAny, {
1851
1851
  requestId: string;
1852
- incomingMessageByPlatform: ({
1852
+ messageIncomingData: ({
1853
1853
  platform: string | null;
1854
1854
  hour: string | null;
1855
1855
  messageCount: string | null;
1856
1856
  } | null | undefined)[];
1857
1857
  }, {
1858
1858
  requestId: string;
1859
- incomingMessageByPlatform: ({
1859
+ messageIncomingData: ({
1860
1860
  platform: string | null;
1861
1861
  hour: string | null;
1862
1862
  messageCount: string | null;
@@ -1904,7 +1904,7 @@ export declare const dashboardContract: {
1904
1904
  responses: {
1905
1905
  200: z.ZodObject<{
1906
1906
  requestId: z.ZodString;
1907
- totalIncomingMessageData: z.ZodArray<z.ZodNullable<z.ZodObject<{
1907
+ messageTotalIncomingData: z.ZodArray<z.ZodNullable<z.ZodObject<{
1908
1908
  name: z.ZodString;
1909
1909
  data: z.ZodArray<z.ZodNumber, "many">;
1910
1910
  }, "strip", z.ZodTypeAny, {
@@ -1916,13 +1916,13 @@ export declare const dashboardContract: {
1916
1916
  }>>, "many">;
1917
1917
  }, "strip", z.ZodTypeAny, {
1918
1918
  requestId: string;
1919
- totalIncomingMessageData: ({
1919
+ messageTotalIncomingData: ({
1920
1920
  data: number[];
1921
1921
  name: string;
1922
1922
  } | null)[];
1923
1923
  }, {
1924
1924
  requestId: string;
1925
- totalIncomingMessageData: ({
1925
+ messageTotalIncomingData: ({
1926
1926
  data: number[];
1927
1927
  name: string;
1928
1928
  } | null)[];
@@ -0,0 +1,216 @@
1
+ import z from 'zod';
2
+ export declare const serverContract: {
3
+ create: {
4
+ body: null;
5
+ summary: "Register a new mail server";
6
+ method: "POST";
7
+ responses: {
8
+ 401: z.ZodObject<{
9
+ message: z.ZodString;
10
+ error: z.ZodAny;
11
+ }, "strip", z.ZodTypeAny, {
12
+ message: string;
13
+ error?: any;
14
+ }, {
15
+ message: string;
16
+ error?: any;
17
+ }>;
18
+ 404: z.ZodObject<{
19
+ message: z.ZodString;
20
+ error: z.ZodAny;
21
+ }, "strip", z.ZodTypeAny, {
22
+ message: string;
23
+ error?: any;
24
+ }, {
25
+ message: string;
26
+ error?: any;
27
+ }>;
28
+ 422: z.ZodObject<{
29
+ message: z.ZodString;
30
+ error: z.ZodAny;
31
+ }, "strip", z.ZodTypeAny, {
32
+ message: string;
33
+ error?: any;
34
+ }, {
35
+ message: string;
36
+ error?: any;
37
+ }>;
38
+ 200: z.ZodObject<{
39
+ requestId: z.ZodString;
40
+ message: z.ZodString;
41
+ }, "strip", z.ZodTypeAny, {
42
+ message: string;
43
+ requestId: string;
44
+ }, {
45
+ message: string;
46
+ requestId: string;
47
+ }>;
48
+ };
49
+ path: "/server/";
50
+ };
51
+ get: {
52
+ summary: "Get a mail server by id";
53
+ method: "GET";
54
+ pathParams: z.ZodObject<{
55
+ id: z.ZodString;
56
+ }, "strip", z.ZodTypeAny, {
57
+ id: string;
58
+ }, {
59
+ id: string;
60
+ }>;
61
+ responses: {
62
+ 401: z.ZodObject<{
63
+ message: z.ZodString;
64
+ error: z.ZodAny;
65
+ }, "strip", z.ZodTypeAny, {
66
+ message: string;
67
+ error?: any;
68
+ }, {
69
+ message: string;
70
+ error?: any;
71
+ }>;
72
+ 404: z.ZodObject<{
73
+ message: z.ZodString;
74
+ error: z.ZodAny;
75
+ }, "strip", z.ZodTypeAny, {
76
+ message: string;
77
+ error?: any;
78
+ }, {
79
+ message: string;
80
+ error?: any;
81
+ }>;
82
+ 422: z.ZodObject<{
83
+ message: z.ZodString;
84
+ error: z.ZodAny;
85
+ }, "strip", z.ZodTypeAny, {
86
+ message: string;
87
+ error?: any;
88
+ }, {
89
+ message: string;
90
+ error?: any;
91
+ }>;
92
+ 200: z.ZodObject<{
93
+ requestId: z.ZodString;
94
+ message: z.ZodString;
95
+ }, "strip", z.ZodTypeAny, {
96
+ message: string;
97
+ requestId: string;
98
+ }, {
99
+ message: string;
100
+ requestId: string;
101
+ }>;
102
+ };
103
+ path: "/server/:id";
104
+ };
105
+ update: {
106
+ body: null;
107
+ summary: "Update a mail server by id";
108
+ method: "PATCH";
109
+ pathParams: z.ZodObject<{
110
+ id: z.ZodString;
111
+ }, "strip", z.ZodTypeAny, {
112
+ id: string;
113
+ }, {
114
+ id: string;
115
+ }>;
116
+ responses: {
117
+ 401: z.ZodObject<{
118
+ message: z.ZodString;
119
+ error: z.ZodAny;
120
+ }, "strip", z.ZodTypeAny, {
121
+ message: string;
122
+ error?: any;
123
+ }, {
124
+ message: string;
125
+ error?: any;
126
+ }>;
127
+ 404: z.ZodObject<{
128
+ message: z.ZodString;
129
+ error: z.ZodAny;
130
+ }, "strip", z.ZodTypeAny, {
131
+ message: string;
132
+ error?: any;
133
+ }, {
134
+ message: string;
135
+ error?: any;
136
+ }>;
137
+ 422: z.ZodObject<{
138
+ message: z.ZodString;
139
+ error: z.ZodAny;
140
+ }, "strip", z.ZodTypeAny, {
141
+ message: string;
142
+ error?: any;
143
+ }, {
144
+ message: string;
145
+ error?: any;
146
+ }>;
147
+ 200: z.ZodObject<{
148
+ requestId: z.ZodString;
149
+ message: z.ZodString;
150
+ }, "strip", z.ZodTypeAny, {
151
+ message: string;
152
+ requestId: string;
153
+ }, {
154
+ message: string;
155
+ requestId: string;
156
+ }>;
157
+ };
158
+ path: "/server/:id";
159
+ };
160
+ delete: {
161
+ body: null;
162
+ summary: "Delete a mail server by id";
163
+ method: "PATCH";
164
+ pathParams: z.ZodObject<{
165
+ id: z.ZodString;
166
+ }, "strip", z.ZodTypeAny, {
167
+ id: string;
168
+ }, {
169
+ id: string;
170
+ }>;
171
+ responses: {
172
+ 401: z.ZodObject<{
173
+ message: z.ZodString;
174
+ error: z.ZodAny;
175
+ }, "strip", z.ZodTypeAny, {
176
+ message: string;
177
+ error?: any;
178
+ }, {
179
+ message: string;
180
+ error?: any;
181
+ }>;
182
+ 404: z.ZodObject<{
183
+ message: z.ZodString;
184
+ error: z.ZodAny;
185
+ }, "strip", z.ZodTypeAny, {
186
+ message: string;
187
+ error?: any;
188
+ }, {
189
+ message: string;
190
+ error?: any;
191
+ }>;
192
+ 422: z.ZodObject<{
193
+ message: z.ZodString;
194
+ error: z.ZodAny;
195
+ }, "strip", z.ZodTypeAny, {
196
+ message: string;
197
+ error?: any;
198
+ }, {
199
+ message: string;
200
+ error?: any;
201
+ }>;
202
+ 200: z.ZodObject<{
203
+ requestId: z.ZodString;
204
+ message: z.ZodString;
205
+ }, "strip", z.ZodTypeAny, {
206
+ message: string;
207
+ requestId: string;
208
+ }, {
209
+ message: string;
210
+ requestId: string;
211
+ }>;
212
+ };
213
+ path: "/server/:id";
214
+ };
215
+ };
216
+ //# sourceMappingURL=mail-server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail-server.d.ts","sourceRoot":"","sources":["../../../src/mail/mail-server.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+D1B,CAAC"}
@@ -0,0 +1,30 @@
1
+ import z from 'zod';
2
+ export declare const PlatformContactSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ createdAt: z.ZodDate;
5
+ updatedAt: z.ZodDate;
6
+ deletedAt: z.ZodNullable<z.ZodDate>;
7
+ contactId: z.ZodString;
8
+ channelId: z.ZodString;
9
+ config: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
10
+ type: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ type: string;
13
+ id: string;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ deletedAt: Date | null;
17
+ contactId: string;
18
+ channelId: string;
19
+ config: {};
20
+ }, {
21
+ type: string;
22
+ id: string;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ deletedAt: Date | null;
26
+ contactId: string;
27
+ channelId: string;
28
+ config: {};
29
+ }>;
30
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/platform-contact/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKhC,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@kl1/contracts",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/src/index.d.ts",
7
7
  "module": "dist/index.mjs",
8
- "files": ["dist"],
8
+ "files": [
9
+ "dist"
10
+ ],
9
11
  "keywords": [],
10
12
  "author": "",
11
13
  "license": "ISC",
@@ -19,12 +21,16 @@
19
21
  },
20
22
  "watch": {
21
23
  "build": {
22
- "patterns": ["src"],
24
+ "patterns": [
25
+ "src"
26
+ ],
23
27
  "extensions": "ts",
24
28
  "quite": true
25
29
  },
26
30
  "types": {
27
- "patterns": ["src"],
31
+ "patterns": [
32
+ "src"
33
+ ],
28
34
  "extensions": "ts",
29
35
  "quite": true
30
36
  }