@kl1/contracts 1.2.84-uat → 1.2.85-uat
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/api-contracts/src/contract.d.ts +54 -8
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/index.d.ts +56 -9
- package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/validation.d.ts +13 -0
- package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
- package/dist/index.js +24 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CallCountsQuerySchema, GetDashboardInOutQueryParamsSchema, GetDashboardQueryDetailParamsSchema, GetDashboardQueryParamsSchema, GetMessageChannelQueryParamsSchema, DashboardQueryParamsSchema } from './validation';
|
|
1
|
+
import { CallCountsQuerySchema, GetDashboardInOutQueryParamsSchema, GetDashboardQueryDetailParamsSchema, GetDashboardQueryParamsSchema, GetMessageChannelQueryParamsSchema, DashboardQueryParamsSchema, DashboardGlobalFiltersSchema } from './validation';
|
|
2
2
|
import z from 'zod';
|
|
3
3
|
import { DashboardDataSchema, ExpiredTicketSchema, TicketCountByStatusSchema, MessageCountsByChannelObjSchema, queueCallDashboardDataSchema, queueLiveCallCountListSchema, TagCountObjSchema, CallEndResultSchema, ConversationCountStatusSchema, MessageStatusSchema, MessageAverageSchema, ChannelIncomingMessageSchema, MessageDispositionSchema, MessageIncomingDataSchema, MessageTotalIncomingDataSchema, TelephonyQueueCallCountListSchema, TotalTelephonyQueueCallCountListSchema, TelephonyQueueCallCountListByQueueNumberSchema, TotalQueueLiveCallStatusSchema, QueueLiveCallListByQueueSchema, DashboardDataWithCallSchema, ReceivedTicketCountDataSchema, ResolvedTicketCountDataSchema, TagCountSchema, AgentMessageStatisticsSchema, UserCheckInLogSchema, UserCheckInLogsWithDaySchema } from './schema';
|
|
4
4
|
export type DashBoardData = z.infer<typeof DashboardDataSchema>;
|
|
@@ -29,6 +29,7 @@ export type MessageTotalIncomingDataType = z.infer<typeof MessageTotalIncomingDa
|
|
|
29
29
|
export type AgentMessageStatistics = z.infer<typeof AgentMessageStatisticsSchema>;
|
|
30
30
|
export type UserCheckInLogsWithDay = z.infer<typeof UserCheckInLogsWithDaySchema>;
|
|
31
31
|
export type FormattedUserCheckInLog = z.infer<typeof UserCheckInLogSchema>;
|
|
32
|
+
export type DashboardGlobalFilters = z.infer<typeof DashboardGlobalFiltersSchema>;
|
|
32
33
|
export type GetDashboardRequest = z.infer<typeof GetDashboardQueryParamsSchema>;
|
|
33
34
|
export type GetDashboardInOutQuery = z.infer<typeof GetDashboardInOutQueryParamsSchema>;
|
|
34
35
|
export type GetDashboardDetailRequest = z.infer<typeof GetDashboardQueryDetailParamsSchema>;
|
|
@@ -1748,20 +1749,17 @@ export declare const dashboardContract: {
|
|
|
1748
1749
|
summary: "Get message platform data";
|
|
1749
1750
|
method: "GET";
|
|
1750
1751
|
query: z.ZodObject<{
|
|
1751
|
-
selectedDate: z.ZodString;
|
|
1752
1752
|
automationQueueId: z.ZodOptional<z.ZodString>;
|
|
1753
|
+
selectedDate: z.ZodString;
|
|
1753
1754
|
channelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1754
|
-
agentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1755
1755
|
}, "strip", z.ZodTypeAny, {
|
|
1756
1756
|
selectedDate: string;
|
|
1757
1757
|
automationQueueId?: string | undefined;
|
|
1758
1758
|
channelIds?: string[] | undefined;
|
|
1759
|
-
agentIds?: string[] | undefined;
|
|
1760
1759
|
}, {
|
|
1761
1760
|
selectedDate: string;
|
|
1762
1761
|
automationQueueId?: string | undefined;
|
|
1763
1762
|
channelIds?: string[] | undefined;
|
|
1764
|
-
agentIds?: string[] | undefined;
|
|
1765
1763
|
}>;
|
|
1766
1764
|
responses: {
|
|
1767
1765
|
200: z.ZodObject<{
|
|
@@ -1818,6 +1816,32 @@ export declare const dashboardContract: {
|
|
|
1818
1816
|
'x-client-timezone'?: string | undefined;
|
|
1819
1817
|
}>>>;
|
|
1820
1818
|
};
|
|
1819
|
+
exportRoomChannelCounts: {
|
|
1820
|
+
method: "GET";
|
|
1821
|
+
query: z.ZodObject<{
|
|
1822
|
+
automationQueueId: z.ZodOptional<z.ZodString>;
|
|
1823
|
+
selectedDate: z.ZodString;
|
|
1824
|
+
channelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1825
|
+
}, "strip", z.ZodTypeAny, {
|
|
1826
|
+
selectedDate: string;
|
|
1827
|
+
automationQueueId?: string | undefined;
|
|
1828
|
+
channelIds?: string[] | undefined;
|
|
1829
|
+
}, {
|
|
1830
|
+
selectedDate: string;
|
|
1831
|
+
automationQueueId?: string | undefined;
|
|
1832
|
+
channelIds?: string[] | undefined;
|
|
1833
|
+
}>;
|
|
1834
|
+
responses: {
|
|
1835
|
+
200: z.ZodObject<{
|
|
1836
|
+
requestId: z.ZodString;
|
|
1837
|
+
}, "strip", z.ZodTypeAny, {
|
|
1838
|
+
requestId: string;
|
|
1839
|
+
}, {
|
|
1840
|
+
requestId: string;
|
|
1841
|
+
}>;
|
|
1842
|
+
};
|
|
1843
|
+
path: "ms/dashboard/export-room-channel-counts";
|
|
1844
|
+
};
|
|
1821
1845
|
getMessageRoomStatusDispositionData: {
|
|
1822
1846
|
summary: "Get message room status disposition data";
|
|
1823
1847
|
method: "GET";
|
|
@@ -1972,20 +1996,17 @@ export declare const dashboardContract: {
|
|
|
1972
1996
|
summary: "Get total incoming message data";
|
|
1973
1997
|
method: "GET";
|
|
1974
1998
|
query: z.ZodObject<{
|
|
1975
|
-
selectedDate: z.ZodString;
|
|
1976
1999
|
automationQueueId: z.ZodOptional<z.ZodString>;
|
|
2000
|
+
selectedDate: z.ZodString;
|
|
1977
2001
|
channelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1978
|
-
agentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1979
2002
|
}, "strip", z.ZodTypeAny, {
|
|
1980
2003
|
selectedDate: string;
|
|
1981
2004
|
automationQueueId?: string | undefined;
|
|
1982
2005
|
channelIds?: string[] | undefined;
|
|
1983
|
-
agentIds?: string[] | undefined;
|
|
1984
2006
|
}, {
|
|
1985
2007
|
selectedDate: string;
|
|
1986
2008
|
automationQueueId?: string | undefined;
|
|
1987
2009
|
channelIds?: string[] | undefined;
|
|
1988
|
-
agentIds?: string[] | undefined;
|
|
1989
2010
|
}>;
|
|
1990
2011
|
responses: {
|
|
1991
2012
|
200: z.ZodObject<{
|
|
@@ -2042,6 +2063,32 @@ export declare const dashboardContract: {
|
|
|
2042
2063
|
'x-client-timezone'?: string | undefined;
|
|
2043
2064
|
}>>>;
|
|
2044
2065
|
};
|
|
2066
|
+
exportIncomingMessageCounts: {
|
|
2067
|
+
method: "GET";
|
|
2068
|
+
query: z.ZodObject<{
|
|
2069
|
+
automationQueueId: z.ZodOptional<z.ZodString>;
|
|
2070
|
+
selectedDate: z.ZodString;
|
|
2071
|
+
channelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2072
|
+
}, "strip", z.ZodTypeAny, {
|
|
2073
|
+
selectedDate: string;
|
|
2074
|
+
automationQueueId?: string | undefined;
|
|
2075
|
+
channelIds?: string[] | undefined;
|
|
2076
|
+
}, {
|
|
2077
|
+
selectedDate: string;
|
|
2078
|
+
automationQueueId?: string | undefined;
|
|
2079
|
+
channelIds?: string[] | undefined;
|
|
2080
|
+
}>;
|
|
2081
|
+
responses: {
|
|
2082
|
+
200: z.ZodObject<{
|
|
2083
|
+
requestId: z.ZodString;
|
|
2084
|
+
}, "strip", z.ZodTypeAny, {
|
|
2085
|
+
requestId: string;
|
|
2086
|
+
}, {
|
|
2087
|
+
requestId: string;
|
|
2088
|
+
}>;
|
|
2089
|
+
};
|
|
2090
|
+
path: "ms/dashboard/export-incoming-message-counts";
|
|
2091
|
+
};
|
|
2045
2092
|
getCallCounts: {
|
|
2046
2093
|
method: "GET";
|
|
2047
2094
|
query: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,kCAAkC,EAClC,mCAAmC,EACnC,6BAA6B,EAC7B,kCAAkC,EAClC,0BAA0B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,kCAAkC,EAClC,mCAAmC,EACnC,6BAA6B,EAC7B,kCAAkC,EAClC,0BAA0B,EAE1B,4BAA4B,EAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,+BAA+B,EAC/B,4BAA4B,EAC5B,4BAA4B,EAC5B,iBAAiB,EACjB,mBAAmB,EACnB,6BAA6B,EAC7B,mBAAmB,EACnB,oBAAoB,EACpB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,8BAA8B,EAC9B,iCAAiC,EACjC,sCAAsC,EACtC,8CAA8C,EAC9C,8BAA8B,EAC9B,8BAA8B,EAC9B,2BAA2B,EAC3B,6BAA6B,EAC7B,6BAA6B,EAC7B,cAAc,EAGd,4BAA4B,EAC5B,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAGlB,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,0BAA0B,GAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwb7B,CAAC"}
|
|
@@ -22,6 +22,19 @@ export declare const GetMessageChannelQueryParamsSchema: z.ZodObject<{
|
|
|
22
22
|
selectedDate: string;
|
|
23
23
|
channelIds?: string[] | undefined;
|
|
24
24
|
}>;
|
|
25
|
+
export declare const DashboardGlobalFiltersSchema: z.ZodObject<{
|
|
26
|
+
automationQueueId: z.ZodOptional<z.ZodString>;
|
|
27
|
+
selectedDate: z.ZodString;
|
|
28
|
+
channelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
selectedDate: string;
|
|
31
|
+
automationQueueId?: string | undefined;
|
|
32
|
+
channelIds?: string[] | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
selectedDate: string;
|
|
35
|
+
automationQueueId?: string | undefined;
|
|
36
|
+
channelIds?: string[] | undefined;
|
|
37
|
+
}>;
|
|
25
38
|
export declare const DashboardQueryParamsSchema: z.ZodObject<{
|
|
26
39
|
selectedDate: z.ZodString;
|
|
27
40
|
automationQueueId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,6BAA6B;;;;;;;;;EAGxC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;EAI3C,CAAC;
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,6BAA6B;;;;;;;;;EAGxC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;EAI3C,CAAC;AAEL,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAIvC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAIrC,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;GAKlC,CAAC;AAEf,eAAO,MAAM,kCAAkC;;;;;;;;;;;;EAK5C,CAAC;AAEJ,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAKhC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;EAI7C,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4271,12 +4271,17 @@ var import_core13 = require("@ts-rest/core");
|
|
|
4271
4271
|
var import_zod53 = __toESM(require("zod"));
|
|
4272
4272
|
var GetDashboardQueryParamsSchema = import_zod53.default.object({
|
|
4273
4273
|
channelIds: import_zod53.default.array(import_zod53.default.string().uuid()).optional(),
|
|
4274
|
-
selectedDate: import_zod53.default.string()
|
|
4274
|
+
selectedDate: import_zod53.default.string().min(1)
|
|
4275
4275
|
});
|
|
4276
4276
|
var GetMessageChannelQueryParamsSchema = GetDashboardQueryParamsSchema.extend({
|
|
4277
4277
|
time: import_zod53.default.enum(["byDay", "byMonth", "byHour"]),
|
|
4278
4278
|
channelIds: import_zod53.default.array(import_zod53.default.string()).optional()
|
|
4279
4279
|
});
|
|
4280
|
+
var DashboardGlobalFiltersSchema = import_zod53.default.object({
|
|
4281
|
+
automationQueueId: import_zod53.default.string().uuid().optional(),
|
|
4282
|
+
selectedDate: import_zod53.default.string().min(1),
|
|
4283
|
+
channelIds: import_zod53.default.array(import_zod53.default.string().uuid()).optional()
|
|
4284
|
+
});
|
|
4280
4285
|
var DashboardQueryParamsSchema = GetDashboardQueryParamsSchema.extend({
|
|
4281
4286
|
automationQueueId: import_zod53.default.string().uuid().optional(),
|
|
4282
4287
|
channelIds: import_zod53.default.array(import_zod53.default.string().uuid()).optional(),
|
|
@@ -4761,7 +4766,7 @@ var dashboardContract = (0, import_core13.initContract)().router(
|
|
|
4761
4766
|
method: "GET",
|
|
4762
4767
|
path: "/message/platform",
|
|
4763
4768
|
summary: "Get message platform data",
|
|
4764
|
-
query:
|
|
4769
|
+
query: DashboardGlobalFiltersSchema,
|
|
4765
4770
|
headers: DefaultHeaderSchema,
|
|
4766
4771
|
responses: {
|
|
4767
4772
|
200: DefaultSuccessResponseSchema.extend({
|
|
@@ -4770,6 +4775,14 @@ var dashboardContract = (0, import_core13.initContract)().router(
|
|
|
4770
4775
|
401: DefaultUnauthorizedSchema
|
|
4771
4776
|
}
|
|
4772
4777
|
},
|
|
4778
|
+
exportRoomChannelCounts: {
|
|
4779
|
+
method: "GET",
|
|
4780
|
+
path: "/export-room-channel-counts",
|
|
4781
|
+
query: DashboardGlobalFiltersSchema,
|
|
4782
|
+
responses: {
|
|
4783
|
+
200: DefaultSuccessResponseSchema
|
|
4784
|
+
}
|
|
4785
|
+
},
|
|
4773
4786
|
getMessageRoomStatusDispositionData: {
|
|
4774
4787
|
method: "GET",
|
|
4775
4788
|
path: "/message/disposition",
|
|
@@ -4804,7 +4817,7 @@ var dashboardContract = (0, import_core13.initContract)().router(
|
|
|
4804
4817
|
method: "GET",
|
|
4805
4818
|
path: "/message/total-incoming",
|
|
4806
4819
|
summary: "Get total incoming message data",
|
|
4807
|
-
query:
|
|
4820
|
+
query: DashboardGlobalFiltersSchema,
|
|
4808
4821
|
headers: DefaultHeaderSchema,
|
|
4809
4822
|
responses: {
|
|
4810
4823
|
200: DefaultSuccessResponseSchema.extend({
|
|
@@ -4813,6 +4826,14 @@ var dashboardContract = (0, import_core13.initContract)().router(
|
|
|
4813
4826
|
401: DefaultUnauthorizedSchema
|
|
4814
4827
|
}
|
|
4815
4828
|
},
|
|
4829
|
+
exportIncomingMessageCounts: {
|
|
4830
|
+
method: "GET",
|
|
4831
|
+
path: "/export-incoming-message-counts",
|
|
4832
|
+
query: DashboardGlobalFiltersSchema,
|
|
4833
|
+
responses: {
|
|
4834
|
+
200: DefaultSuccessResponseSchema
|
|
4835
|
+
}
|
|
4836
|
+
},
|
|
4816
4837
|
getCallCounts: {
|
|
4817
4838
|
method: "GET",
|
|
4818
4839
|
path: "/call-counts",
|