@domu-ai/kiban-sdk 1.204.0 → 1.205.0
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/dashboard/client.d.ts +242 -0
- package/dashboard/client.js +106 -4
- package/dashboard/schemas.d.ts +243 -0
- package/dashboard/schemas.js +56 -1
- package/internal/client.d.ts +20 -0
- package/internal/schemas.d.ts +92 -0
- package/internal/schemas.js +12 -0
- package/package.json +1 -1
package/dashboard/client.d.ts
CHANGED
|
@@ -1009,6 +1009,132 @@ export type DashboardTargetsLatestGet500 = {
|
|
|
1009
1009
|
code?: string;
|
|
1010
1010
|
details?: unknown | null;
|
|
1011
1011
|
};
|
|
1012
|
+
export type DashboardMetricsCallPerformanceGetParams = {
|
|
1013
|
+
/**
|
|
1014
|
+
* @minLength 1
|
|
1015
|
+
*/
|
|
1016
|
+
fromDate: string;
|
|
1017
|
+
/**
|
|
1018
|
+
* @minLength 1
|
|
1019
|
+
*/
|
|
1020
|
+
toDate: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* @minLength 1
|
|
1023
|
+
*/
|
|
1024
|
+
timeZone: string;
|
|
1025
|
+
campaignId?: string;
|
|
1026
|
+
filter?: string;
|
|
1027
|
+
granularity?: DashboardMetricsCallPerformanceGetGranularity;
|
|
1028
|
+
};
|
|
1029
|
+
export type DashboardMetricsCallPerformanceGetGranularity = typeof DashboardMetricsCallPerformanceGetGranularity[keyof typeof DashboardMetricsCallPerformanceGetGranularity];
|
|
1030
|
+
export declare const DashboardMetricsCallPerformanceGetGranularity: {
|
|
1031
|
+
readonly daily: "daily";
|
|
1032
|
+
readonly weekly: "weekly";
|
|
1033
|
+
readonly monthly: "monthly";
|
|
1034
|
+
};
|
|
1035
|
+
/**
|
|
1036
|
+
* @nullable
|
|
1037
|
+
*/
|
|
1038
|
+
export type DashboardMetricsCallPerformanceGet200DataPrimaryOutcome = {
|
|
1039
|
+
key: string;
|
|
1040
|
+
label: string;
|
|
1041
|
+
categories: string[];
|
|
1042
|
+
} | null;
|
|
1043
|
+
export type DashboardMetricsCallPerformanceGet200DataStagesItemKey = typeof DashboardMetricsCallPerformanceGet200DataStagesItemKey[keyof typeof DashboardMetricsCallPerformanceGet200DataStagesItemKey];
|
|
1044
|
+
export declare const DashboardMetricsCallPerformanceGet200DataStagesItemKey: {
|
|
1045
|
+
readonly totalDialed: "totalDialed";
|
|
1046
|
+
readonly answered: "answered";
|
|
1047
|
+
readonly rpc: "rpc";
|
|
1048
|
+
readonly primaryOutcome: "primaryOutcome";
|
|
1049
|
+
};
|
|
1050
|
+
export type DashboardMetricsCallPerformanceGet200DataStagesItemColor = typeof DashboardMetricsCallPerformanceGet200DataStagesItemColor[keyof typeof DashboardMetricsCallPerformanceGet200DataStagesItemColor];
|
|
1051
|
+
export declare const DashboardMetricsCallPerformanceGet200DataStagesItemColor: {
|
|
1052
|
+
readonly slate: "slate";
|
|
1053
|
+
readonly blue: "blue";
|
|
1054
|
+
readonly violet: "violet";
|
|
1055
|
+
readonly emerald: "emerald";
|
|
1056
|
+
};
|
|
1057
|
+
export type DashboardMetricsCallPerformanceGet200DataStagesItem = {
|
|
1058
|
+
key: DashboardMetricsCallPerformanceGet200DataStagesItemKey;
|
|
1059
|
+
label: string;
|
|
1060
|
+
color: DashboardMetricsCallPerformanceGet200DataStagesItemColor;
|
|
1061
|
+
count: number;
|
|
1062
|
+
percentage: number;
|
|
1063
|
+
toggleable: boolean;
|
|
1064
|
+
};
|
|
1065
|
+
export type DashboardMetricsCallPerformanceGet200DataTrendGranularity = typeof DashboardMetricsCallPerformanceGet200DataTrendGranularity[keyof typeof DashboardMetricsCallPerformanceGet200DataTrendGranularity];
|
|
1066
|
+
export declare const DashboardMetricsCallPerformanceGet200DataTrendGranularity: {
|
|
1067
|
+
readonly daily: "daily";
|
|
1068
|
+
readonly weekly: "weekly";
|
|
1069
|
+
readonly monthly: "monthly";
|
|
1070
|
+
};
|
|
1071
|
+
export type DashboardMetricsCallPerformanceGet200DataTrendPointsItem = {
|
|
1072
|
+
bucket: string;
|
|
1073
|
+
totalDialed: number;
|
|
1074
|
+
answeredRate: number;
|
|
1075
|
+
rpcRate: number;
|
|
1076
|
+
/** @nullable */
|
|
1077
|
+
primaryOutcomeRate: number | null;
|
|
1078
|
+
};
|
|
1079
|
+
export type DashboardMetricsCallPerformanceGet200DataTrend = {
|
|
1080
|
+
granularity?: DashboardMetricsCallPerformanceGet200DataTrendGranularity;
|
|
1081
|
+
points: DashboardMetricsCallPerformanceGet200DataTrendPointsItem[];
|
|
1082
|
+
};
|
|
1083
|
+
export type DashboardMetricsCallPerformanceGet200Data = {
|
|
1084
|
+
/** @nullable */
|
|
1085
|
+
primaryOutcome: DashboardMetricsCallPerformanceGet200DataPrimaryOutcome;
|
|
1086
|
+
stages: DashboardMetricsCallPerformanceGet200DataStagesItem[];
|
|
1087
|
+
trend: DashboardMetricsCallPerformanceGet200DataTrend;
|
|
1088
|
+
};
|
|
1089
|
+
export type DashboardMetricsCallPerformanceGet200 = {
|
|
1090
|
+
data: DashboardMetricsCallPerformanceGet200Data;
|
|
1091
|
+
};
|
|
1092
|
+
export type DashboardMetricsCallPerformanceGet400 = {
|
|
1093
|
+
message: string;
|
|
1094
|
+
code?: string;
|
|
1095
|
+
details?: unknown | null;
|
|
1096
|
+
};
|
|
1097
|
+
export type DashboardMetricsCallPerformanceGet401 = {
|
|
1098
|
+
message: string;
|
|
1099
|
+
code?: string;
|
|
1100
|
+
details?: unknown | null;
|
|
1101
|
+
};
|
|
1102
|
+
export type DashboardMetricsCallPerformanceGet404 = {
|
|
1103
|
+
message: string;
|
|
1104
|
+
code?: string;
|
|
1105
|
+
details?: unknown | null;
|
|
1106
|
+
};
|
|
1107
|
+
export type DashboardMetricsCallPerformanceGet500 = {
|
|
1108
|
+
message: string;
|
|
1109
|
+
code?: string;
|
|
1110
|
+
details?: unknown | null;
|
|
1111
|
+
};
|
|
1112
|
+
export type DashboardMetricsOnAirGetParams = {
|
|
1113
|
+
campaignId?: string;
|
|
1114
|
+
filter?: string;
|
|
1115
|
+
};
|
|
1116
|
+
export type DashboardMetricsOnAirGet200Data = {
|
|
1117
|
+
inProgress: number;
|
|
1118
|
+
flags: number;
|
|
1119
|
+
};
|
|
1120
|
+
export type DashboardMetricsOnAirGet200 = {
|
|
1121
|
+
data: DashboardMetricsOnAirGet200Data;
|
|
1122
|
+
};
|
|
1123
|
+
export type DashboardMetricsOnAirGet401 = {
|
|
1124
|
+
message: string;
|
|
1125
|
+
code?: string;
|
|
1126
|
+
details?: unknown | null;
|
|
1127
|
+
};
|
|
1128
|
+
export type DashboardMetricsOnAirGet404 = {
|
|
1129
|
+
message: string;
|
|
1130
|
+
code?: string;
|
|
1131
|
+
details?: unknown | null;
|
|
1132
|
+
};
|
|
1133
|
+
export type DashboardMetricsOnAirGet500 = {
|
|
1134
|
+
message: string;
|
|
1135
|
+
code?: string;
|
|
1136
|
+
details?: unknown | null;
|
|
1137
|
+
};
|
|
1012
1138
|
export type DashboardInovoWindmillSchedulesGet200DataItem = {
|
|
1013
1139
|
name: string;
|
|
1014
1140
|
campaignId: string;
|
|
@@ -2895,6 +3021,122 @@ export declare function useDashboardTargetsLatestGet<TData = Awaited<ReturnType<
|
|
|
2895
3021
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2896
3022
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2897
3023
|
};
|
|
3024
|
+
/**
|
|
3025
|
+
* Returns funnel counts and trend rates for the Dashboard Call Performance Indicators section.
|
|
3026
|
+
* @summary Get dashboard call performance metrics
|
|
3027
|
+
*/
|
|
3028
|
+
export type dashboardMetricsCallPerformanceGetResponse200 = {
|
|
3029
|
+
data: DashboardMetricsCallPerformanceGet200;
|
|
3030
|
+
status: 200;
|
|
3031
|
+
};
|
|
3032
|
+
export type dashboardMetricsCallPerformanceGetResponse400 = {
|
|
3033
|
+
data: DashboardMetricsCallPerformanceGet400;
|
|
3034
|
+
status: 400;
|
|
3035
|
+
};
|
|
3036
|
+
export type dashboardMetricsCallPerformanceGetResponse401 = {
|
|
3037
|
+
data: DashboardMetricsCallPerformanceGet401;
|
|
3038
|
+
status: 401;
|
|
3039
|
+
};
|
|
3040
|
+
export type dashboardMetricsCallPerformanceGetResponse404 = {
|
|
3041
|
+
data: DashboardMetricsCallPerformanceGet404;
|
|
3042
|
+
status: 404;
|
|
3043
|
+
};
|
|
3044
|
+
export type dashboardMetricsCallPerformanceGetResponse500 = {
|
|
3045
|
+
data: DashboardMetricsCallPerformanceGet500;
|
|
3046
|
+
status: 500;
|
|
3047
|
+
};
|
|
3048
|
+
export type dashboardMetricsCallPerformanceGetResponseSuccess = (dashboardMetricsCallPerformanceGetResponse200) & {
|
|
3049
|
+
headers: Headers;
|
|
3050
|
+
};
|
|
3051
|
+
export type dashboardMetricsCallPerformanceGetResponseError = (dashboardMetricsCallPerformanceGetResponse400 | dashboardMetricsCallPerformanceGetResponse401 | dashboardMetricsCallPerformanceGetResponse404 | dashboardMetricsCallPerformanceGetResponse500) & {
|
|
3052
|
+
headers: Headers;
|
|
3053
|
+
};
|
|
3054
|
+
export type dashboardMetricsCallPerformanceGetResponse = (dashboardMetricsCallPerformanceGetResponseSuccess | dashboardMetricsCallPerformanceGetResponseError);
|
|
3055
|
+
export declare const getDashboardMetricsCallPerformanceGetUrl: (params: DashboardMetricsCallPerformanceGetParams) => string;
|
|
3056
|
+
export declare const dashboardMetricsCallPerformanceGet: (params: DashboardMetricsCallPerformanceGetParams, options?: RequestInit) => Promise<dashboardMetricsCallPerformanceGetResponse>;
|
|
3057
|
+
export declare const getDashboardMetricsCallPerformanceGetQueryKey: (params?: DashboardMetricsCallPerformanceGetParams) => readonly ["/v1/dashboard/metrics/call-performance", ...DashboardMetricsCallPerformanceGetParams[]];
|
|
3058
|
+
export declare const getDashboardMetricsCallPerformanceGetQueryOptions: <TData = Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>, TError = DashboardMetricsCallPerformanceGet400 | DashboardMetricsCallPerformanceGet401 | DashboardMetricsCallPerformanceGet404 | DashboardMetricsCallPerformanceGet500>(params: DashboardMetricsCallPerformanceGetParams, options?: {
|
|
3059
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>, TError, TData>>;
|
|
3060
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
3061
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>, TError, TData> & {
|
|
3062
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
3063
|
+
};
|
|
3064
|
+
export type DashboardMetricsCallPerformanceGetQueryResult = NonNullable<Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>>;
|
|
3065
|
+
export type DashboardMetricsCallPerformanceGetQueryError = DashboardMetricsCallPerformanceGet400 | DashboardMetricsCallPerformanceGet401 | DashboardMetricsCallPerformanceGet404 | DashboardMetricsCallPerformanceGet500;
|
|
3066
|
+
export declare function useDashboardMetricsCallPerformanceGet<TData = Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>, TError = DashboardMetricsCallPerformanceGet400 | DashboardMetricsCallPerformanceGet401 | DashboardMetricsCallPerformanceGet404 | DashboardMetricsCallPerformanceGet500>(params: DashboardMetricsCallPerformanceGetParams, options: {
|
|
3067
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>, TError, Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>>, 'initialData'>;
|
|
3068
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
3069
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
3070
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
3071
|
+
};
|
|
3072
|
+
export declare function useDashboardMetricsCallPerformanceGet<TData = Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>, TError = DashboardMetricsCallPerformanceGet400 | DashboardMetricsCallPerformanceGet401 | DashboardMetricsCallPerformanceGet404 | DashboardMetricsCallPerformanceGet500>(params: DashboardMetricsCallPerformanceGetParams, options?: {
|
|
3073
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>, TError, Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>>, 'initialData'>;
|
|
3074
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
3075
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
3076
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
3077
|
+
};
|
|
3078
|
+
export declare function useDashboardMetricsCallPerformanceGet<TData = Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>, TError = DashboardMetricsCallPerformanceGet400 | DashboardMetricsCallPerformanceGet401 | DashboardMetricsCallPerformanceGet404 | DashboardMetricsCallPerformanceGet500>(params: DashboardMetricsCallPerformanceGetParams, options?: {
|
|
3079
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardMetricsCallPerformanceGet>>, TError, TData>>;
|
|
3080
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
3081
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
3082
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
3083
|
+
};
|
|
3084
|
+
/**
|
|
3085
|
+
* Returns real-time in-progress call count and recent critical/high flag count for the Dashboard On Air panel.
|
|
3086
|
+
* @summary Get dashboard on-air metrics
|
|
3087
|
+
*/
|
|
3088
|
+
export type dashboardMetricsOnAirGetResponse200 = {
|
|
3089
|
+
data: DashboardMetricsOnAirGet200;
|
|
3090
|
+
status: 200;
|
|
3091
|
+
};
|
|
3092
|
+
export type dashboardMetricsOnAirGetResponse401 = {
|
|
3093
|
+
data: DashboardMetricsOnAirGet401;
|
|
3094
|
+
status: 401;
|
|
3095
|
+
};
|
|
3096
|
+
export type dashboardMetricsOnAirGetResponse404 = {
|
|
3097
|
+
data: DashboardMetricsOnAirGet404;
|
|
3098
|
+
status: 404;
|
|
3099
|
+
};
|
|
3100
|
+
export type dashboardMetricsOnAirGetResponse500 = {
|
|
3101
|
+
data: DashboardMetricsOnAirGet500;
|
|
3102
|
+
status: 500;
|
|
3103
|
+
};
|
|
3104
|
+
export type dashboardMetricsOnAirGetResponseSuccess = (dashboardMetricsOnAirGetResponse200) & {
|
|
3105
|
+
headers: Headers;
|
|
3106
|
+
};
|
|
3107
|
+
export type dashboardMetricsOnAirGetResponseError = (dashboardMetricsOnAirGetResponse401 | dashboardMetricsOnAirGetResponse404 | dashboardMetricsOnAirGetResponse500) & {
|
|
3108
|
+
headers: Headers;
|
|
3109
|
+
};
|
|
3110
|
+
export type dashboardMetricsOnAirGetResponse = (dashboardMetricsOnAirGetResponseSuccess | dashboardMetricsOnAirGetResponseError);
|
|
3111
|
+
export declare const getDashboardMetricsOnAirGetUrl: (params?: DashboardMetricsOnAirGetParams) => string;
|
|
3112
|
+
export declare const dashboardMetricsOnAirGet: (params?: DashboardMetricsOnAirGetParams, options?: RequestInit) => Promise<dashboardMetricsOnAirGetResponse>;
|
|
3113
|
+
export declare const getDashboardMetricsOnAirGetQueryKey: (params?: DashboardMetricsOnAirGetParams) => readonly ["/v1/dashboard/metrics/on-air", ...DashboardMetricsOnAirGetParams[]];
|
|
3114
|
+
export declare const getDashboardMetricsOnAirGetQueryOptions: <TData = Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>, TError = DashboardMetricsOnAirGet401 | DashboardMetricsOnAirGet404 | DashboardMetricsOnAirGet500>(params?: DashboardMetricsOnAirGetParams, options?: {
|
|
3115
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>, TError, TData>>;
|
|
3116
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
3117
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>, TError, TData> & {
|
|
3118
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
3119
|
+
};
|
|
3120
|
+
export type DashboardMetricsOnAirGetQueryResult = NonNullable<Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>>;
|
|
3121
|
+
export type DashboardMetricsOnAirGetQueryError = DashboardMetricsOnAirGet401 | DashboardMetricsOnAirGet404 | DashboardMetricsOnAirGet500;
|
|
3122
|
+
export declare function useDashboardMetricsOnAirGet<TData = Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>, TError = DashboardMetricsOnAirGet401 | DashboardMetricsOnAirGet404 | DashboardMetricsOnAirGet500>(params: undefined | DashboardMetricsOnAirGetParams, options: {
|
|
3123
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>, TError, Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>>, 'initialData'>;
|
|
3124
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
3125
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
3126
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
3127
|
+
};
|
|
3128
|
+
export declare function useDashboardMetricsOnAirGet<TData = Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>, TError = DashboardMetricsOnAirGet401 | DashboardMetricsOnAirGet404 | DashboardMetricsOnAirGet500>(params?: DashboardMetricsOnAirGetParams, options?: {
|
|
3129
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>, TError, Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>>, 'initialData'>;
|
|
3130
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
3131
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
3132
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
3133
|
+
};
|
|
3134
|
+
export declare function useDashboardMetricsOnAirGet<TData = Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>, TError = DashboardMetricsOnAirGet401 | DashboardMetricsOnAirGet404 | DashboardMetricsOnAirGet500>(params?: DashboardMetricsOnAirGetParams, options?: {
|
|
3135
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardMetricsOnAirGet>>, TError, TData>>;
|
|
3136
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
3137
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
3138
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
3139
|
+
};
|
|
2898
3140
|
/**
|
|
2899
3141
|
* @summary List Windmill schedules for the authenticated client
|
|
2900
3142
|
*/
|
package/dashboard/client.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.useDashboardCallsCallIdScoringRerunsPost = exports.getDashboardCallsCallIdScoringRerunsPostMutationOptions = exports.dashboardCallsCallIdScoringRerunsPost = exports.getDashboardCallsCallIdScoringRerunsPostUrl = exports.getDashboardCallsCallIdScoringGetQueryOptions = exports.getDashboardCallsCallIdScoringGetQueryKey = exports.dashboardCallsCallIdScoringGet = exports.getDashboardCallsCallIdScoringGetUrl = exports.useDashboardScorecardsScorecardIdActivatePost = exports.getDashboardScorecardsScorecardIdActivatePostMutationOptions = exports.dashboardScorecardsScorecardIdActivatePost = exports.getDashboardScorecardsScorecardIdActivatePostUrl = exports.getDashboardScorecardsScorecardIdGetQueryOptions = exports.getDashboardScorecardsScorecardIdGetQueryKey = exports.dashboardScorecardsScorecardIdGet = exports.getDashboardScorecardsScorecardIdGetUrl = exports.getDashboardCampaignsCampaignIdScorecardsActiveGetQueryOptions = exports.getDashboardCampaignsCampaignIdScorecardsActiveGetQueryKey = void 0;
|
|
3
|
+
exports.dashboardInputFieldsGet = exports.getDashboardInputFieldsGetUrl = exports.getDashboardAgentsGroupedGetQueryOptions = exports.getDashboardAgentsGroupedGetQueryKey = exports.dashboardAgentsGroupedGet = exports.getDashboardAgentsGroupedGetUrl = exports.getDashboardAgentsGetQueryOptions = exports.getDashboardAgentsGetQueryKey = exports.dashboardAgentsGet = exports.getDashboardAgentsGetUrl = exports.getDashboardCampaignsCampaignIdScheduleConfigGetQueryOptions = exports.getDashboardCampaignsCampaignIdScheduleConfigGetQueryKey = exports.dashboardCampaignsCampaignIdScheduleConfigGet = exports.getDashboardCampaignsCampaignIdScheduleConfigGetUrl = exports.getDashboardCampaignsCampaignIdOutputFieldsGetQueryOptions = exports.getDashboardCampaignsCampaignIdOutputFieldsGetQueryKey = exports.dashboardCampaignsCampaignIdOutputFieldsGet = exports.getDashboardCampaignsCampaignIdOutputFieldsGetUrl = exports.getDashboardCampaignsCampaignIdInputFieldsGetQueryOptions = exports.getDashboardCampaignsCampaignIdInputFieldsGetQueryKey = exports.dashboardCampaignsCampaignIdInputFieldsGet = exports.getDashboardCampaignsCampaignIdInputFieldsGetUrl = exports.getDashboardCampaignsGetQueryOptions = exports.getDashboardCampaignsGetQueryKey = exports.dashboardCampaignsGet = exports.getDashboardCampaignsGetUrl = exports.useDashboardCampaignsNamesPost = exports.getDashboardCampaignsNamesPostMutationOptions = exports.dashboardCampaignsNamesPost = exports.getDashboardCampaignsNamesPostUrl = exports.DashboardCallsCallIdScoringRerunsPost200DataResultsItemItemType = exports.DashboardCallsCallIdScoringGet200DataResultsItemItemType = exports.DashboardScorecardsScorecardIdGet200DataItemsItemType = exports.DashboardCampaignsCampaignIdScorecardsActiveGet200DataItemsItemType = exports.DashboardCampaignsCampaignIdScorecardsPost201DataItemsItemType = exports.DashboardMetricsCallPerformanceGet200DataTrendGranularity = exports.DashboardMetricsCallPerformanceGet200DataStagesItemColor = exports.DashboardMetricsCallPerformanceGet200DataStagesItemKey = exports.DashboardMetricsCallPerformanceGetGranularity = exports.DashboardSchedulerCreatePostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerCreatePostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardSchedulerPreviewPost200DataWarningsItemSeverity = exports.DashboardSchedulerPreviewPost200DataWarningsItemType = exports.DashboardSchedulerPreviewPost200DataJourneyStepsItemType = exports.DashboardSchedulerPreviewPostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardExternalCallsCallIdScoringRerunsPost200DataResultsItemItemType = exports.DashboardExternalCallsCallIdScoringGet200DataResultsItemItemType = exports.DashboardExternalCallsGet200DataCallsItemQaState = exports.DashboardCampaignsCampaignIdInputFieldsGet200DataItemType = void 0;
|
|
4
|
+
exports.useDashboardAgentSandboxStartPost = exports.getDashboardAgentSandboxStartPostMutationOptions = exports.dashboardAgentSandboxStartPost = exports.getDashboardAgentSandboxStartPostUrl = exports.getDashboardExternalCallsCallIdRecordingUrlGetQueryOptions = exports.getDashboardExternalCallsCallIdRecordingUrlGetQueryKey = exports.dashboardExternalCallsCallIdRecordingUrlGet = exports.getDashboardExternalCallsCallIdRecordingUrlGetUrl = exports.useDashboardExternalCallsCallIdScoringRerunsPost = exports.getDashboardExternalCallsCallIdScoringRerunsPostMutationOptions = exports.dashboardExternalCallsCallIdScoringRerunsPost = exports.getDashboardExternalCallsCallIdScoringRerunsPostUrl = exports.getDashboardExternalCallsCallIdScoringGetQueryOptions = exports.getDashboardExternalCallsCallIdScoringGetQueryKey = exports.dashboardExternalCallsCallIdScoringGet = exports.getDashboardExternalCallsCallIdScoringGetUrl = exports.getDashboardExternalCallsGetQueryOptions = exports.getDashboardExternalCallsGetQueryKey = exports.dashboardExternalCallsGet = exports.getDashboardExternalCallsGetUrl = exports.useDashboardExternalCallsUploadsCompletePost = exports.getDashboardExternalCallsUploadsCompletePostMutationOptions = exports.dashboardExternalCallsUploadsCompletePost = exports.getDashboardExternalCallsUploadsCompletePostUrl = exports.useDashboardExternalCallsUploadsPresignPost = exports.getDashboardExternalCallsUploadsPresignPostMutationOptions = exports.dashboardExternalCallsUploadsPresignPost = exports.getDashboardExternalCallsUploadsPresignPostUrl = exports.getDashboardCallsCallIdRecordingUrlGetQueryOptions = exports.getDashboardCallsCallIdRecordingUrlGetQueryKey = exports.dashboardCallsCallIdRecordingUrlGet = exports.getDashboardCallsCallIdRecordingUrlGetUrl = exports.useDashboardCallsCallIdReviewPatch = exports.getDashboardCallsCallIdReviewPatchMutationOptions = exports.dashboardCallsCallIdReviewPatch = exports.getDashboardCallsCallIdReviewPatchUrl = exports.useDashboardCallsReviewStatusPost = exports.getDashboardCallsReviewStatusPostMutationOptions = exports.dashboardCallsReviewStatusPost = exports.getDashboardCallsReviewStatusPostUrl = exports.getDashboardCallsCallIdGetQueryOptions = exports.getDashboardCallsCallIdGetQueryKey = exports.dashboardCallsCallIdGet = exports.getDashboardCallsCallIdGetUrl = exports.getDashboardOutputFieldsGetQueryOptions = exports.getDashboardOutputFieldsGetQueryKey = exports.dashboardOutputFieldsGet = exports.getDashboardOutputFieldsGetUrl = exports.getDashboardInputFieldsGetQueryOptions = exports.getDashboardInputFieldsGetQueryKey = void 0;
|
|
5
|
+
exports.dashboardInovoWindmillSchedulesNamePreviewGet = exports.getDashboardInovoWindmillSchedulesNamePreviewGetUrl = exports.useDashboardInovoWindmillSchedulesNamePresignUploadPost = exports.getDashboardInovoWindmillSchedulesNamePresignUploadPostMutationOptions = exports.dashboardInovoWindmillSchedulesNamePresignUploadPost = exports.getDashboardInovoWindmillSchedulesNamePresignUploadPostUrl = exports.getDashboardInovoWindmillSchedulesNameRunsGetQueryOptions = exports.getDashboardInovoWindmillSchedulesNameRunsGetQueryKey = exports.dashboardInovoWindmillSchedulesNameRunsGet = exports.getDashboardInovoWindmillSchedulesNameRunsGetUrl = exports.useDashboardInovoWindmillSchedulesNameTogglePatch = exports.getDashboardInovoWindmillSchedulesNameTogglePatchMutationOptions = exports.dashboardInovoWindmillSchedulesNameTogglePatch = exports.getDashboardInovoWindmillSchedulesNameTogglePatchUrl = exports.useDashboardInovoWindmillSchedulesNamePut = exports.getDashboardInovoWindmillSchedulesNamePutMutationOptions = exports.dashboardInovoWindmillSchedulesNamePut = exports.getDashboardInovoWindmillSchedulesNamePutUrl = exports.getDashboardInovoWindmillSchedulesNameGetQueryOptions = exports.getDashboardInovoWindmillSchedulesNameGetQueryKey = exports.dashboardInovoWindmillSchedulesNameGet = exports.getDashboardInovoWindmillSchedulesNameGetUrl = exports.getDashboardInovoWindmillSchedulesGetQueryOptions = exports.getDashboardInovoWindmillSchedulesGetQueryKey = exports.dashboardInovoWindmillSchedulesGet = exports.getDashboardInovoWindmillSchedulesGetUrl = exports.getDashboardMetricsOnAirGetQueryOptions = exports.getDashboardMetricsOnAirGetQueryKey = exports.dashboardMetricsOnAirGet = exports.getDashboardMetricsOnAirGetUrl = exports.getDashboardMetricsCallPerformanceGetQueryOptions = exports.getDashboardMetricsCallPerformanceGetQueryKey = exports.dashboardMetricsCallPerformanceGet = exports.getDashboardMetricsCallPerformanceGetUrl = exports.getDashboardTargetsLatestGetQueryOptions = exports.getDashboardTargetsLatestGetQueryKey = exports.dashboardTargetsLatestGet = exports.getDashboardTargetsLatestGetUrl = exports.getDashboardFlagsGetQueryOptions = exports.getDashboardFlagsGetQueryKey = exports.dashboardFlagsGet = exports.getDashboardFlagsGetUrl = exports.useDashboardSchedulerCreatePost = exports.getDashboardSchedulerCreatePostMutationOptions = exports.dashboardSchedulerCreatePost = exports.getDashboardSchedulerCreatePostUrl = exports.useDashboardSchedulerPreviewPost = exports.getDashboardSchedulerPreviewPostMutationOptions = exports.dashboardSchedulerPreviewPost = exports.getDashboardSchedulerPreviewPostUrl = void 0;
|
|
6
|
+
exports.useDashboardCallsCallIdScoringRerunsPost = exports.getDashboardCallsCallIdScoringRerunsPostMutationOptions = exports.dashboardCallsCallIdScoringRerunsPost = exports.getDashboardCallsCallIdScoringRerunsPostUrl = exports.getDashboardCallsCallIdScoringGetQueryOptions = exports.getDashboardCallsCallIdScoringGetQueryKey = exports.dashboardCallsCallIdScoringGet = exports.getDashboardCallsCallIdScoringGetUrl = exports.useDashboardScorecardsScorecardIdActivatePost = exports.getDashboardScorecardsScorecardIdActivatePostMutationOptions = exports.dashboardScorecardsScorecardIdActivatePost = exports.getDashboardScorecardsScorecardIdActivatePostUrl = exports.getDashboardScorecardsScorecardIdGetQueryOptions = exports.getDashboardScorecardsScorecardIdGetQueryKey = exports.dashboardScorecardsScorecardIdGet = exports.getDashboardScorecardsScorecardIdGetUrl = exports.getDashboardCampaignsCampaignIdScorecardsActiveGetQueryOptions = exports.getDashboardCampaignsCampaignIdScorecardsActiveGetQueryKey = exports.dashboardCampaignsCampaignIdScorecardsActiveGet = exports.getDashboardCampaignsCampaignIdScorecardsActiveGetUrl = exports.getDashboardCampaignsCampaignIdScorecardsGetQueryOptions = exports.getDashboardCampaignsCampaignIdScorecardsGetQueryKey = exports.dashboardCampaignsCampaignIdScorecardsGet = exports.getDashboardCampaignsCampaignIdScorecardsGetUrl = exports.useDashboardCampaignsCampaignIdScorecardsPost = exports.getDashboardCampaignsCampaignIdScorecardsPostMutationOptions = exports.dashboardCampaignsCampaignIdScorecardsPost = exports.getDashboardCampaignsCampaignIdScorecardsPostUrl = exports.getDashboardInovoWindmillSchedulesNamePreviewGetQueryOptions = exports.getDashboardInovoWindmillSchedulesNamePreviewGetQueryKey = void 0;
|
|
7
7
|
exports.useDashboardCampaignsGet = useDashboardCampaignsGet;
|
|
8
8
|
exports.useDashboardCampaignsCampaignIdInputFieldsGet = useDashboardCampaignsCampaignIdInputFieldsGet;
|
|
9
9
|
exports.useDashboardCampaignsCampaignIdOutputFieldsGet = useDashboardCampaignsCampaignIdOutputFieldsGet;
|
|
@@ -19,6 +19,8 @@ exports.useDashboardExternalCallsCallIdScoringGet = useDashboardExternalCallsCal
|
|
|
19
19
|
exports.useDashboardExternalCallsCallIdRecordingUrlGet = useDashboardExternalCallsCallIdRecordingUrlGet;
|
|
20
20
|
exports.useDashboardFlagsGet = useDashboardFlagsGet;
|
|
21
21
|
exports.useDashboardTargetsLatestGet = useDashboardTargetsLatestGet;
|
|
22
|
+
exports.useDashboardMetricsCallPerformanceGet = useDashboardMetricsCallPerformanceGet;
|
|
23
|
+
exports.useDashboardMetricsOnAirGet = useDashboardMetricsOnAirGet;
|
|
22
24
|
exports.useDashboardInovoWindmillSchedulesGet = useDashboardInovoWindmillSchedulesGet;
|
|
23
25
|
exports.useDashboardInovoWindmillSchedulesNameGet = useDashboardInovoWindmillSchedulesNameGet;
|
|
24
26
|
exports.useDashboardInovoWindmillSchedulesNameRunsGet = useDashboardInovoWindmillSchedulesNameRunsGet;
|
|
@@ -108,6 +110,28 @@ exports.DashboardSchedulerCreatePostBodyPhoneRotationStatusesItem = {
|
|
|
108
110
|
senary: 'senary',
|
|
109
111
|
septenary: 'septenary',
|
|
110
112
|
};
|
|
113
|
+
exports.DashboardMetricsCallPerformanceGetGranularity = {
|
|
114
|
+
daily: 'daily',
|
|
115
|
+
weekly: 'weekly',
|
|
116
|
+
monthly: 'monthly',
|
|
117
|
+
};
|
|
118
|
+
exports.DashboardMetricsCallPerformanceGet200DataStagesItemKey = {
|
|
119
|
+
totalDialed: 'totalDialed',
|
|
120
|
+
answered: 'answered',
|
|
121
|
+
rpc: 'rpc',
|
|
122
|
+
primaryOutcome: 'primaryOutcome',
|
|
123
|
+
};
|
|
124
|
+
exports.DashboardMetricsCallPerformanceGet200DataStagesItemColor = {
|
|
125
|
+
slate: 'slate',
|
|
126
|
+
blue: 'blue',
|
|
127
|
+
violet: 'violet',
|
|
128
|
+
emerald: 'emerald',
|
|
129
|
+
};
|
|
130
|
+
exports.DashboardMetricsCallPerformanceGet200DataTrendGranularity = {
|
|
131
|
+
daily: 'daily',
|
|
132
|
+
weekly: 'weekly',
|
|
133
|
+
monthly: 'monthly',
|
|
134
|
+
};
|
|
111
135
|
exports.DashboardCampaignsCampaignIdScorecardsPost201DataItemsItemType = {
|
|
112
136
|
boolean: 'boolean',
|
|
113
137
|
numeric: 'numeric',
|
|
@@ -935,6 +959,84 @@ function useDashboardTargetsLatestGet(params, options, queryClient) {
|
|
|
935
959
|
const query = (0, react_query_1.useQuery)(queryOptions, queryClient);
|
|
936
960
|
return { ...query, queryKey: queryOptions.queryKey };
|
|
937
961
|
}
|
|
962
|
+
const getDashboardMetricsCallPerformanceGetUrl = (params) => {
|
|
963
|
+
const normalizedParams = new URLSearchParams();
|
|
964
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
965
|
+
if (value !== undefined) {
|
|
966
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
const stringifiedParams = normalizedParams.toString();
|
|
970
|
+
return stringifiedParams.length > 0 ? `/v1/dashboard/metrics/call-performance?${stringifiedParams}` : `/v1/dashboard/metrics/call-performance`;
|
|
971
|
+
};
|
|
972
|
+
exports.getDashboardMetricsCallPerformanceGetUrl = getDashboardMetricsCallPerformanceGetUrl;
|
|
973
|
+
const dashboardMetricsCallPerformanceGet = async (params, options) => {
|
|
974
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardMetricsCallPerformanceGetUrl)(params), {
|
|
975
|
+
...options,
|
|
976
|
+
method: 'GET'
|
|
977
|
+
});
|
|
978
|
+
};
|
|
979
|
+
exports.dashboardMetricsCallPerformanceGet = dashboardMetricsCallPerformanceGet;
|
|
980
|
+
const getDashboardMetricsCallPerformanceGetQueryKey = (params) => {
|
|
981
|
+
return [
|
|
982
|
+
`/v1/dashboard/metrics/call-performance`, ...(params ? [params] : [])
|
|
983
|
+
];
|
|
984
|
+
};
|
|
985
|
+
exports.getDashboardMetricsCallPerformanceGetQueryKey = getDashboardMetricsCallPerformanceGetQueryKey;
|
|
986
|
+
const getDashboardMetricsCallPerformanceGetQueryOptions = (params, options) => {
|
|
987
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
988
|
+
const queryKey = queryOptions?.queryKey ?? (0, exports.getDashboardMetricsCallPerformanceGetQueryKey)(params);
|
|
989
|
+
const queryFn = () => (0, exports.dashboardMetricsCallPerformanceGet)(params, requestOptions);
|
|
990
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
991
|
+
};
|
|
992
|
+
exports.getDashboardMetricsCallPerformanceGetQueryOptions = getDashboardMetricsCallPerformanceGetQueryOptions;
|
|
993
|
+
/**
|
|
994
|
+
* @summary Get dashboard call performance metrics
|
|
995
|
+
*/
|
|
996
|
+
function useDashboardMetricsCallPerformanceGet(params, options, queryClient) {
|
|
997
|
+
const queryOptions = (0, exports.getDashboardMetricsCallPerformanceGetQueryOptions)(params, options);
|
|
998
|
+
const query = (0, react_query_1.useQuery)(queryOptions, queryClient);
|
|
999
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1000
|
+
}
|
|
1001
|
+
const getDashboardMetricsOnAirGetUrl = (params) => {
|
|
1002
|
+
const normalizedParams = new URLSearchParams();
|
|
1003
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1004
|
+
if (value !== undefined) {
|
|
1005
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
1006
|
+
}
|
|
1007
|
+
});
|
|
1008
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1009
|
+
return stringifiedParams.length > 0 ? `/v1/dashboard/metrics/on-air?${stringifiedParams}` : `/v1/dashboard/metrics/on-air`;
|
|
1010
|
+
};
|
|
1011
|
+
exports.getDashboardMetricsOnAirGetUrl = getDashboardMetricsOnAirGetUrl;
|
|
1012
|
+
const dashboardMetricsOnAirGet = async (params, options) => {
|
|
1013
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardMetricsOnAirGetUrl)(params), {
|
|
1014
|
+
...options,
|
|
1015
|
+
method: 'GET'
|
|
1016
|
+
});
|
|
1017
|
+
};
|
|
1018
|
+
exports.dashboardMetricsOnAirGet = dashboardMetricsOnAirGet;
|
|
1019
|
+
const getDashboardMetricsOnAirGetQueryKey = (params) => {
|
|
1020
|
+
return [
|
|
1021
|
+
`/v1/dashboard/metrics/on-air`, ...(params ? [params] : [])
|
|
1022
|
+
];
|
|
1023
|
+
};
|
|
1024
|
+
exports.getDashboardMetricsOnAirGetQueryKey = getDashboardMetricsOnAirGetQueryKey;
|
|
1025
|
+
const getDashboardMetricsOnAirGetQueryOptions = (params, options) => {
|
|
1026
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1027
|
+
const queryKey = queryOptions?.queryKey ?? (0, exports.getDashboardMetricsOnAirGetQueryKey)(params);
|
|
1028
|
+
const queryFn = () => (0, exports.dashboardMetricsOnAirGet)(params, requestOptions);
|
|
1029
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
1030
|
+
};
|
|
1031
|
+
exports.getDashboardMetricsOnAirGetQueryOptions = getDashboardMetricsOnAirGetQueryOptions;
|
|
1032
|
+
/**
|
|
1033
|
+
* @summary Get dashboard on-air metrics
|
|
1034
|
+
*/
|
|
1035
|
+
function useDashboardMetricsOnAirGet(params, options, queryClient) {
|
|
1036
|
+
const queryOptions = (0, exports.getDashboardMetricsOnAirGetQueryOptions)(params, options);
|
|
1037
|
+
const query = (0, react_query_1.useQuery)(queryOptions, queryClient);
|
|
1038
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
1039
|
+
}
|
|
938
1040
|
const getDashboardInovoWindmillSchedulesGetUrl = () => {
|
|
939
1041
|
return `/v1/dashboard/inovo/windmill-schedules`;
|
|
940
1042
|
};
|
package/dashboard/schemas.d.ts
CHANGED
|
@@ -2107,6 +2107,249 @@ export declare const GetLatestTargetResponse: zod.ZodObject<{
|
|
|
2107
2107
|
input_fields?: unknown;
|
|
2108
2108
|
};
|
|
2109
2109
|
}>;
|
|
2110
|
+
/**
|
|
2111
|
+
* Returns funnel counts and trend rates for the Dashboard Call Performance Indicators section.
|
|
2112
|
+
* @summary Get dashboard call performance metrics
|
|
2113
|
+
*/
|
|
2114
|
+
export declare const getCallPerformanceQueryGranularityDefault = "daily";
|
|
2115
|
+
export declare const GetCallPerformanceQueryParams: zod.ZodObject<{
|
|
2116
|
+
fromDate: zod.ZodString;
|
|
2117
|
+
toDate: zod.ZodString;
|
|
2118
|
+
timeZone: zod.ZodString;
|
|
2119
|
+
campaignId: zod.ZodOptional<zod.ZodString>;
|
|
2120
|
+
filter: zod.ZodOptional<zod.ZodString>;
|
|
2121
|
+
granularity: zod.ZodDefault<zod.ZodEnum<["daily", "weekly", "monthly"]>>;
|
|
2122
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2123
|
+
fromDate: string;
|
|
2124
|
+
toDate: string;
|
|
2125
|
+
timeZone: string;
|
|
2126
|
+
granularity: "daily" | "weekly" | "monthly";
|
|
2127
|
+
filter?: string | undefined;
|
|
2128
|
+
campaignId?: string | undefined;
|
|
2129
|
+
}, {
|
|
2130
|
+
fromDate: string;
|
|
2131
|
+
toDate: string;
|
|
2132
|
+
timeZone: string;
|
|
2133
|
+
filter?: string | undefined;
|
|
2134
|
+
campaignId?: string | undefined;
|
|
2135
|
+
granularity?: "daily" | "weekly" | "monthly" | undefined;
|
|
2136
|
+
}>;
|
|
2137
|
+
export declare const getCallPerformanceResponseDataTrendGranularityDefault = "daily";
|
|
2138
|
+
export declare const GetCallPerformanceResponse: zod.ZodObject<{
|
|
2139
|
+
data: zod.ZodObject<{
|
|
2140
|
+
primaryOutcome: zod.ZodNullable<zod.ZodObject<{
|
|
2141
|
+
key: zod.ZodString;
|
|
2142
|
+
label: zod.ZodString;
|
|
2143
|
+
categories: zod.ZodArray<zod.ZodString, "many">;
|
|
2144
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2145
|
+
key: string;
|
|
2146
|
+
label: string;
|
|
2147
|
+
categories: string[];
|
|
2148
|
+
}, {
|
|
2149
|
+
key: string;
|
|
2150
|
+
label: string;
|
|
2151
|
+
categories: string[];
|
|
2152
|
+
}>>;
|
|
2153
|
+
stages: zod.ZodArray<zod.ZodObject<{
|
|
2154
|
+
key: zod.ZodEnum<["totalDialed", "answered", "rpc", "primaryOutcome"]>;
|
|
2155
|
+
label: zod.ZodString;
|
|
2156
|
+
color: zod.ZodEnum<["slate", "blue", "violet", "emerald"]>;
|
|
2157
|
+
count: zod.ZodNumber;
|
|
2158
|
+
percentage: zod.ZodNumber;
|
|
2159
|
+
toggleable: zod.ZodBoolean;
|
|
2160
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2161
|
+
key: "primaryOutcome" | "totalDialed" | "answered" | "rpc";
|
|
2162
|
+
label: string;
|
|
2163
|
+
color: "slate" | "blue" | "violet" | "emerald";
|
|
2164
|
+
count: number;
|
|
2165
|
+
percentage: number;
|
|
2166
|
+
toggleable: boolean;
|
|
2167
|
+
}, {
|
|
2168
|
+
key: "primaryOutcome" | "totalDialed" | "answered" | "rpc";
|
|
2169
|
+
label: string;
|
|
2170
|
+
color: "slate" | "blue" | "violet" | "emerald";
|
|
2171
|
+
count: number;
|
|
2172
|
+
percentage: number;
|
|
2173
|
+
toggleable: boolean;
|
|
2174
|
+
}>, "many">;
|
|
2175
|
+
trend: zod.ZodObject<{
|
|
2176
|
+
granularity: zod.ZodDefault<zod.ZodEnum<["daily", "weekly", "monthly"]>>;
|
|
2177
|
+
points: zod.ZodArray<zod.ZodObject<{
|
|
2178
|
+
bucket: zod.ZodString;
|
|
2179
|
+
totalDialed: zod.ZodNumber;
|
|
2180
|
+
answeredRate: zod.ZodNumber;
|
|
2181
|
+
rpcRate: zod.ZodNumber;
|
|
2182
|
+
primaryOutcomeRate: zod.ZodNullable<zod.ZodNumber>;
|
|
2183
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2184
|
+
bucket: string;
|
|
2185
|
+
totalDialed: number;
|
|
2186
|
+
answeredRate: number;
|
|
2187
|
+
rpcRate: number;
|
|
2188
|
+
primaryOutcomeRate: number | null;
|
|
2189
|
+
}, {
|
|
2190
|
+
bucket: string;
|
|
2191
|
+
totalDialed: number;
|
|
2192
|
+
answeredRate: number;
|
|
2193
|
+
rpcRate: number;
|
|
2194
|
+
primaryOutcomeRate: number | null;
|
|
2195
|
+
}>, "many">;
|
|
2196
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2197
|
+
granularity: "daily" | "weekly" | "monthly";
|
|
2198
|
+
points: {
|
|
2199
|
+
bucket: string;
|
|
2200
|
+
totalDialed: number;
|
|
2201
|
+
answeredRate: number;
|
|
2202
|
+
rpcRate: number;
|
|
2203
|
+
primaryOutcomeRate: number | null;
|
|
2204
|
+
}[];
|
|
2205
|
+
}, {
|
|
2206
|
+
points: {
|
|
2207
|
+
bucket: string;
|
|
2208
|
+
totalDialed: number;
|
|
2209
|
+
answeredRate: number;
|
|
2210
|
+
rpcRate: number;
|
|
2211
|
+
primaryOutcomeRate: number | null;
|
|
2212
|
+
}[];
|
|
2213
|
+
granularity?: "daily" | "weekly" | "monthly" | undefined;
|
|
2214
|
+
}>;
|
|
2215
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2216
|
+
primaryOutcome: {
|
|
2217
|
+
key: string;
|
|
2218
|
+
label: string;
|
|
2219
|
+
categories: string[];
|
|
2220
|
+
} | null;
|
|
2221
|
+
stages: {
|
|
2222
|
+
key: "primaryOutcome" | "totalDialed" | "answered" | "rpc";
|
|
2223
|
+
label: string;
|
|
2224
|
+
color: "slate" | "blue" | "violet" | "emerald";
|
|
2225
|
+
count: number;
|
|
2226
|
+
percentage: number;
|
|
2227
|
+
toggleable: boolean;
|
|
2228
|
+
}[];
|
|
2229
|
+
trend: {
|
|
2230
|
+
granularity: "daily" | "weekly" | "monthly";
|
|
2231
|
+
points: {
|
|
2232
|
+
bucket: string;
|
|
2233
|
+
totalDialed: number;
|
|
2234
|
+
answeredRate: number;
|
|
2235
|
+
rpcRate: number;
|
|
2236
|
+
primaryOutcomeRate: number | null;
|
|
2237
|
+
}[];
|
|
2238
|
+
};
|
|
2239
|
+
}, {
|
|
2240
|
+
primaryOutcome: {
|
|
2241
|
+
key: string;
|
|
2242
|
+
label: string;
|
|
2243
|
+
categories: string[];
|
|
2244
|
+
} | null;
|
|
2245
|
+
stages: {
|
|
2246
|
+
key: "primaryOutcome" | "totalDialed" | "answered" | "rpc";
|
|
2247
|
+
label: string;
|
|
2248
|
+
color: "slate" | "blue" | "violet" | "emerald";
|
|
2249
|
+
count: number;
|
|
2250
|
+
percentage: number;
|
|
2251
|
+
toggleable: boolean;
|
|
2252
|
+
}[];
|
|
2253
|
+
trend: {
|
|
2254
|
+
points: {
|
|
2255
|
+
bucket: string;
|
|
2256
|
+
totalDialed: number;
|
|
2257
|
+
answeredRate: number;
|
|
2258
|
+
rpcRate: number;
|
|
2259
|
+
primaryOutcomeRate: number | null;
|
|
2260
|
+
}[];
|
|
2261
|
+
granularity?: "daily" | "weekly" | "monthly" | undefined;
|
|
2262
|
+
};
|
|
2263
|
+
}>;
|
|
2264
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2265
|
+
data: {
|
|
2266
|
+
primaryOutcome: {
|
|
2267
|
+
key: string;
|
|
2268
|
+
label: string;
|
|
2269
|
+
categories: string[];
|
|
2270
|
+
} | null;
|
|
2271
|
+
stages: {
|
|
2272
|
+
key: "primaryOutcome" | "totalDialed" | "answered" | "rpc";
|
|
2273
|
+
label: string;
|
|
2274
|
+
color: "slate" | "blue" | "violet" | "emerald";
|
|
2275
|
+
count: number;
|
|
2276
|
+
percentage: number;
|
|
2277
|
+
toggleable: boolean;
|
|
2278
|
+
}[];
|
|
2279
|
+
trend: {
|
|
2280
|
+
granularity: "daily" | "weekly" | "monthly";
|
|
2281
|
+
points: {
|
|
2282
|
+
bucket: string;
|
|
2283
|
+
totalDialed: number;
|
|
2284
|
+
answeredRate: number;
|
|
2285
|
+
rpcRate: number;
|
|
2286
|
+
primaryOutcomeRate: number | null;
|
|
2287
|
+
}[];
|
|
2288
|
+
};
|
|
2289
|
+
};
|
|
2290
|
+
}, {
|
|
2291
|
+
data: {
|
|
2292
|
+
primaryOutcome: {
|
|
2293
|
+
key: string;
|
|
2294
|
+
label: string;
|
|
2295
|
+
categories: string[];
|
|
2296
|
+
} | null;
|
|
2297
|
+
stages: {
|
|
2298
|
+
key: "primaryOutcome" | "totalDialed" | "answered" | "rpc";
|
|
2299
|
+
label: string;
|
|
2300
|
+
color: "slate" | "blue" | "violet" | "emerald";
|
|
2301
|
+
count: number;
|
|
2302
|
+
percentage: number;
|
|
2303
|
+
toggleable: boolean;
|
|
2304
|
+
}[];
|
|
2305
|
+
trend: {
|
|
2306
|
+
points: {
|
|
2307
|
+
bucket: string;
|
|
2308
|
+
totalDialed: number;
|
|
2309
|
+
answeredRate: number;
|
|
2310
|
+
rpcRate: number;
|
|
2311
|
+
primaryOutcomeRate: number | null;
|
|
2312
|
+
}[];
|
|
2313
|
+
granularity?: "daily" | "weekly" | "monthly" | undefined;
|
|
2314
|
+
};
|
|
2315
|
+
};
|
|
2316
|
+
}>;
|
|
2317
|
+
/**
|
|
2318
|
+
* Returns real-time in-progress call count and recent critical/high flag count for the Dashboard On Air panel.
|
|
2319
|
+
* @summary Get dashboard on-air metrics
|
|
2320
|
+
*/
|
|
2321
|
+
export declare const GetOnAirQueryParams: zod.ZodObject<{
|
|
2322
|
+
campaignId: zod.ZodOptional<zod.ZodString>;
|
|
2323
|
+
filter: zod.ZodOptional<zod.ZodString>;
|
|
2324
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2325
|
+
filter?: string | undefined;
|
|
2326
|
+
campaignId?: string | undefined;
|
|
2327
|
+
}, {
|
|
2328
|
+
filter?: string | undefined;
|
|
2329
|
+
campaignId?: string | undefined;
|
|
2330
|
+
}>;
|
|
2331
|
+
export declare const GetOnAirResponse: zod.ZodObject<{
|
|
2332
|
+
data: zod.ZodObject<{
|
|
2333
|
+
inProgress: zod.ZodNumber;
|
|
2334
|
+
flags: zod.ZodNumber;
|
|
2335
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2336
|
+
flags: number;
|
|
2337
|
+
inProgress: number;
|
|
2338
|
+
}, {
|
|
2339
|
+
flags: number;
|
|
2340
|
+
inProgress: number;
|
|
2341
|
+
}>;
|
|
2342
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2343
|
+
data: {
|
|
2344
|
+
flags: number;
|
|
2345
|
+
inProgress: number;
|
|
2346
|
+
};
|
|
2347
|
+
}, {
|
|
2348
|
+
data: {
|
|
2349
|
+
flags: number;
|
|
2350
|
+
inProgress: number;
|
|
2351
|
+
};
|
|
2352
|
+
}>;
|
|
2110
2353
|
/**
|
|
2111
2354
|
* @summary List Windmill schedules for the authenticated client
|
|
2112
2355
|
*/
|
package/dashboard/schemas.js
CHANGED
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.GetLatestTargetQueryParams = exports.GetOrgFlagsResponse = exports.CreateBody = exports.createBodyTimeSlotsItemTimeRegExp = exports.PreviewResponse = exports.PreviewBody = exports.previewBodyTimeSlotsItemTimeRegExp = exports.StartCallBody = exports.GetExternalCallRecordingPresignedUrlResponse = exports.GetExternalCallRecordingPresignedUrlParams = exports.RerunScoringResponse = exports.RerunScoringBody = exports.RerunScoringParams = exports.GetScoringResponse = exports.GetScoringQueryParams = exports.GetScoringParams = exports.GetExternalCallsResponse = exports.getExternalCallsResponseDataPaginationOffsetMin = exports.GetExternalCallsQueryParams = exports.getExternalCallsQueryOffsetMax = exports.getExternalCallsQueryOffsetMin = exports.getExternalCallsQueryLimitMax = exports.CompleteUploadBody = exports.completeUploadBodyCallIdsMax = exports.PresignUploadResponse = exports.PresignUploadBody = exports.presignUploadBodyFilesMax = exports.GetRecordingPresignedUrlResponse = exports.GetRecordingPresignedUrlParams = exports.UpdateReviewResponse = exports.UpdateReviewBody = exports.updateReviewBodyNotesMax = exports.UpdateReviewParams = exports.GetReviewStatusResponse = exports.GetReviewStatusBody = exports.GetCallResponse = exports.GetCallParams = exports.GetOutputFieldsResponse = exports.GetInputFieldsResponse = exports.GetAgentsGroupedResponse = exports.GetAgentsResponse = exports.GetScheduleConfigResponse = exports.GetScheduleConfigParams = exports.GetCampaignOutputFieldsResponse = exports.GetCampaignOutputFieldsParams = exports.GetCampaignInputFieldsResponse = exports.GetCampaignInputFieldsParams = exports.GetCampaignsResponse = exports.GetCampaignNamesResponse = exports.GetCampaignNamesBody = void 0;
|
|
37
|
-
exports.RerunCallScoringResponse = exports.RerunCallScoringBody = exports.RerunCallScoringParams = exports.GetCallScoringResponse = exports.GetCallScoringQueryParams = exports.GetCallScoringParams = exports.ActivateScorecardResponse = exports.ActivateScorecardParams = exports.GetScorecardResponse = exports.GetScorecardParams = exports.GetActiveScorecardResponse = exports.GetActiveScorecardParams = exports.GetScorecardVersionsResponse = exports.GetScorecardVersionsParams = exports.DeployScorecardBody = exports.deployScorecardBodyItemsItemTwoInstructionMax = exports.deployScorecardBodyItemsItemTwoNameMax = exports.deployScorecardBodyItemsItemTwoCategoryMax = exports.deployScorecardBodyNameMax = exports.DeployScorecardParams = exports.WindmillSchedulesPreviewResponse = exports.WindmillSchedulesPreviewParams = exports.WindmillSchedulesPresignUploadResponse = exports.WindmillSchedulesPresignUploadBody = exports.WindmillSchedulesPresignUploadParams = exports.WindmillSchedulesRunsResponse = exports.WindmillSchedulesRunsParams = exports.WindmillSchedulesToggleResponse = exports.WindmillSchedulesToggleBody = exports.WindmillSchedulesToggleParams = exports.WindmillSchedulesUpdateResponse = exports.WindmillSchedulesUpdateBody = exports.WindmillSchedulesUpdateParams = exports.WindmillSchedulesGetByNameResponse = exports.WindmillSchedulesGetByNameParams = exports.WindmillSchedulesListResponse = exports.GetLatestTargetResponse = void 0;
|
|
37
|
+
exports.RerunCallScoringResponse = exports.RerunCallScoringBody = exports.RerunCallScoringParams = exports.GetCallScoringResponse = exports.GetCallScoringQueryParams = exports.GetCallScoringParams = exports.ActivateScorecardResponse = exports.ActivateScorecardParams = exports.GetScorecardResponse = exports.GetScorecardParams = exports.GetActiveScorecardResponse = exports.GetActiveScorecardParams = exports.GetScorecardVersionsResponse = exports.GetScorecardVersionsParams = exports.DeployScorecardBody = exports.deployScorecardBodyItemsItemTwoInstructionMax = exports.deployScorecardBodyItemsItemTwoNameMax = exports.deployScorecardBodyItemsItemTwoCategoryMax = exports.deployScorecardBodyNameMax = exports.DeployScorecardParams = exports.WindmillSchedulesPreviewResponse = exports.WindmillSchedulesPreviewParams = exports.WindmillSchedulesPresignUploadResponse = exports.WindmillSchedulesPresignUploadBody = exports.WindmillSchedulesPresignUploadParams = exports.WindmillSchedulesRunsResponse = exports.WindmillSchedulesRunsParams = exports.WindmillSchedulesToggleResponse = exports.WindmillSchedulesToggleBody = exports.WindmillSchedulesToggleParams = exports.WindmillSchedulesUpdateResponse = exports.WindmillSchedulesUpdateBody = exports.WindmillSchedulesUpdateParams = exports.WindmillSchedulesGetByNameResponse = exports.WindmillSchedulesGetByNameParams = exports.WindmillSchedulesListResponse = exports.GetOnAirResponse = exports.GetOnAirQueryParams = exports.GetCallPerformanceResponse = exports.getCallPerformanceResponseDataTrendGranularityDefault = exports.GetCallPerformanceQueryParams = exports.getCallPerformanceQueryGranularityDefault = exports.GetLatestTargetResponse = void 0;
|
|
38
38
|
/**
|
|
39
39
|
* Generated by orval v8.2.0 🍺
|
|
40
40
|
* Do not edit manually.
|
|
@@ -522,6 +522,61 @@ exports.GetLatestTargetResponse = zod.object({
|
|
|
522
522
|
"input_fields": zod.unknown().nullish()
|
|
523
523
|
})
|
|
524
524
|
});
|
|
525
|
+
/**
|
|
526
|
+
* Returns funnel counts and trend rates for the Dashboard Call Performance Indicators section.
|
|
527
|
+
* @summary Get dashboard call performance metrics
|
|
528
|
+
*/
|
|
529
|
+
exports.getCallPerformanceQueryGranularityDefault = `daily`;
|
|
530
|
+
exports.GetCallPerformanceQueryParams = zod.object({
|
|
531
|
+
"fromDate": zod.string().min(1),
|
|
532
|
+
"toDate": zod.string().min(1),
|
|
533
|
+
"timeZone": zod.string().min(1),
|
|
534
|
+
"campaignId": zod.string().optional(),
|
|
535
|
+
"filter": zod.string().optional(),
|
|
536
|
+
"granularity": zod.enum(['daily', 'weekly', 'monthly']).default(exports.getCallPerformanceQueryGranularityDefault)
|
|
537
|
+
});
|
|
538
|
+
exports.getCallPerformanceResponseDataTrendGranularityDefault = `daily`;
|
|
539
|
+
exports.GetCallPerformanceResponse = zod.object({
|
|
540
|
+
"data": zod.object({
|
|
541
|
+
"primaryOutcome": zod.object({
|
|
542
|
+
"key": zod.string(),
|
|
543
|
+
"label": zod.string(),
|
|
544
|
+
"categories": zod.array(zod.string())
|
|
545
|
+
}).nullable(),
|
|
546
|
+
"stages": zod.array(zod.object({
|
|
547
|
+
"key": zod.enum(['totalDialed', 'answered', 'rpc', 'primaryOutcome']),
|
|
548
|
+
"label": zod.string(),
|
|
549
|
+
"color": zod.enum(['slate', 'blue', 'violet', 'emerald']),
|
|
550
|
+
"count": zod.number(),
|
|
551
|
+
"percentage": zod.number(),
|
|
552
|
+
"toggleable": zod.boolean()
|
|
553
|
+
})),
|
|
554
|
+
"trend": zod.object({
|
|
555
|
+
"granularity": zod.enum(['daily', 'weekly', 'monthly']).default(exports.getCallPerformanceResponseDataTrendGranularityDefault),
|
|
556
|
+
"points": zod.array(zod.object({
|
|
557
|
+
"bucket": zod.string(),
|
|
558
|
+
"totalDialed": zod.number(),
|
|
559
|
+
"answeredRate": zod.number(),
|
|
560
|
+
"rpcRate": zod.number(),
|
|
561
|
+
"primaryOutcomeRate": zod.number().nullable()
|
|
562
|
+
}))
|
|
563
|
+
})
|
|
564
|
+
})
|
|
565
|
+
});
|
|
566
|
+
/**
|
|
567
|
+
* Returns real-time in-progress call count and recent critical/high flag count for the Dashboard On Air panel.
|
|
568
|
+
* @summary Get dashboard on-air metrics
|
|
569
|
+
*/
|
|
570
|
+
exports.GetOnAirQueryParams = zod.object({
|
|
571
|
+
"campaignId": zod.string().optional(),
|
|
572
|
+
"filter": zod.string().optional()
|
|
573
|
+
});
|
|
574
|
+
exports.GetOnAirResponse = zod.object({
|
|
575
|
+
"data": zod.object({
|
|
576
|
+
"inProgress": zod.number(),
|
|
577
|
+
"flags": zod.number()
|
|
578
|
+
})
|
|
579
|
+
});
|
|
525
580
|
/**
|
|
526
581
|
* @summary List Windmill schedules for the authenticated client
|
|
527
582
|
*/
|
package/internal/client.d.ts
CHANGED
|
@@ -3240,6 +3240,15 @@ export type InternalAnalysisConfigsPostBodyCoreConfigModelConfig = {
|
|
|
3240
3240
|
export type InternalAnalysisConfigsPostBodyCoreConfigDefaultCategoriesByStatus = {
|
|
3241
3241
|
[key: string]: string;
|
|
3242
3242
|
};
|
|
3243
|
+
export type InternalAnalysisConfigsPostBodyCoreConfigDashboardMetricsPrimaryOutcome = {
|
|
3244
|
+
/** @minLength 1 */
|
|
3245
|
+
label?: string;
|
|
3246
|
+
/** @minItems 1 */
|
|
3247
|
+
categories: string[];
|
|
3248
|
+
};
|
|
3249
|
+
export type InternalAnalysisConfigsPostBodyCoreConfigDashboardMetrics = {
|
|
3250
|
+
primaryOutcome?: InternalAnalysisConfigsPostBodyCoreConfigDashboardMetricsPrimaryOutcome;
|
|
3251
|
+
};
|
|
3243
3252
|
export type InternalAnalysisConfigsPostBodyCoreConfigEvalsFlags = {
|
|
3244
3253
|
critical: string[];
|
|
3245
3254
|
high: string[];
|
|
@@ -3258,6 +3267,7 @@ export type InternalAnalysisConfigsPostBodyCoreConfig = {
|
|
|
3258
3267
|
/** @minItems 1 */
|
|
3259
3268
|
categories: string[];
|
|
3260
3269
|
defaultCategoriesByStatus?: InternalAnalysisConfigsPostBodyCoreConfigDefaultCategoriesByStatus;
|
|
3270
|
+
dashboardMetrics?: InternalAnalysisConfigsPostBodyCoreConfigDashboardMetrics;
|
|
3261
3271
|
evals?: InternalAnalysisConfigsPostBodyCoreConfigEvals;
|
|
3262
3272
|
};
|
|
3263
3273
|
/**
|
|
@@ -3402,6 +3412,15 @@ export type InternalAnalysisConfigsIdPutBodyCoreConfigModelConfig = {
|
|
|
3402
3412
|
export type InternalAnalysisConfigsIdPutBodyCoreConfigDefaultCategoriesByStatus = {
|
|
3403
3413
|
[key: string]: string;
|
|
3404
3414
|
};
|
|
3415
|
+
export type InternalAnalysisConfigsIdPutBodyCoreConfigDashboardMetricsPrimaryOutcome = {
|
|
3416
|
+
/** @minLength 1 */
|
|
3417
|
+
label?: string;
|
|
3418
|
+
/** @minItems 1 */
|
|
3419
|
+
categories: string[];
|
|
3420
|
+
};
|
|
3421
|
+
export type InternalAnalysisConfigsIdPutBodyCoreConfigDashboardMetrics = {
|
|
3422
|
+
primaryOutcome?: InternalAnalysisConfigsIdPutBodyCoreConfigDashboardMetricsPrimaryOutcome;
|
|
3423
|
+
};
|
|
3405
3424
|
export type InternalAnalysisConfigsIdPutBodyCoreConfigEvalsFlags = {
|
|
3406
3425
|
critical: string[];
|
|
3407
3426
|
high: string[];
|
|
@@ -3420,6 +3439,7 @@ export type InternalAnalysisConfigsIdPutBodyCoreConfig = {
|
|
|
3420
3439
|
/** @minItems 1 */
|
|
3421
3440
|
categories: string[];
|
|
3422
3441
|
defaultCategoriesByStatus?: InternalAnalysisConfigsIdPutBodyCoreConfigDefaultCategoriesByStatus;
|
|
3442
|
+
dashboardMetrics?: InternalAnalysisConfigsIdPutBodyCoreConfigDashboardMetrics;
|
|
3423
3443
|
evals?: InternalAnalysisConfigsIdPutBodyCoreConfigEvals;
|
|
3424
3444
|
};
|
|
3425
3445
|
/**
|
package/internal/schemas.d.ts
CHANGED
|
@@ -14914,6 +14914,28 @@ export declare const CreateAnalysisConfigBody: zod.ZodObject<{
|
|
|
14914
14914
|
categoryPrompt: zod.ZodString;
|
|
14915
14915
|
categories: zod.ZodArray<zod.ZodString, "many">;
|
|
14916
14916
|
defaultCategoriesByStatus: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
14917
|
+
dashboardMetrics: zod.ZodOptional<zod.ZodObject<{
|
|
14918
|
+
primaryOutcome: zod.ZodOptional<zod.ZodObject<{
|
|
14919
|
+
label: zod.ZodOptional<zod.ZodString>;
|
|
14920
|
+
categories: zod.ZodArray<zod.ZodString, "many">;
|
|
14921
|
+
}, "strip", zod.ZodTypeAny, {
|
|
14922
|
+
categories: string[];
|
|
14923
|
+
label?: string | undefined;
|
|
14924
|
+
}, {
|
|
14925
|
+
categories: string[];
|
|
14926
|
+
label?: string | undefined;
|
|
14927
|
+
}>>;
|
|
14928
|
+
}, "strip", zod.ZodTypeAny, {
|
|
14929
|
+
primaryOutcome?: {
|
|
14930
|
+
categories: string[];
|
|
14931
|
+
label?: string | undefined;
|
|
14932
|
+
} | undefined;
|
|
14933
|
+
}, {
|
|
14934
|
+
primaryOutcome?: {
|
|
14935
|
+
categories: string[];
|
|
14936
|
+
label?: string | undefined;
|
|
14937
|
+
} | undefined;
|
|
14938
|
+
}>>;
|
|
14917
14939
|
evals: zod.ZodOptional<zod.ZodObject<{
|
|
14918
14940
|
prompt: zod.ZodString;
|
|
14919
14941
|
flags: zod.ZodObject<{
|
|
@@ -14962,6 +14984,12 @@ export declare const CreateAnalysisConfigBody: zod.ZodObject<{
|
|
|
14962
14984
|
maxOutputTokens?: number | undefined;
|
|
14963
14985
|
} | undefined;
|
|
14964
14986
|
defaultCategoriesByStatus?: Record<string, string> | undefined;
|
|
14987
|
+
dashboardMetrics?: {
|
|
14988
|
+
primaryOutcome?: {
|
|
14989
|
+
categories: string[];
|
|
14990
|
+
label?: string | undefined;
|
|
14991
|
+
} | undefined;
|
|
14992
|
+
} | undefined;
|
|
14965
14993
|
evals?: {
|
|
14966
14994
|
prompt: string;
|
|
14967
14995
|
flags: {
|
|
@@ -14984,6 +15012,12 @@ export declare const CreateAnalysisConfigBody: zod.ZodObject<{
|
|
|
14984
15012
|
maxOutputTokens?: number | undefined;
|
|
14985
15013
|
} | undefined;
|
|
14986
15014
|
defaultCategoriesByStatus?: Record<string, string> | undefined;
|
|
15015
|
+
dashboardMetrics?: {
|
|
15016
|
+
primaryOutcome?: {
|
|
15017
|
+
categories: string[];
|
|
15018
|
+
label?: string | undefined;
|
|
15019
|
+
} | undefined;
|
|
15020
|
+
} | undefined;
|
|
14987
15021
|
evals?: {
|
|
14988
15022
|
prompt: string;
|
|
14989
15023
|
flags: {
|
|
@@ -15145,6 +15179,12 @@ export declare const CreateAnalysisConfigBody: zod.ZodObject<{
|
|
|
15145
15179
|
maxOutputTokens?: number | undefined;
|
|
15146
15180
|
} | undefined;
|
|
15147
15181
|
defaultCategoriesByStatus?: Record<string, string> | undefined;
|
|
15182
|
+
dashboardMetrics?: {
|
|
15183
|
+
primaryOutcome?: {
|
|
15184
|
+
categories: string[];
|
|
15185
|
+
label?: string | undefined;
|
|
15186
|
+
} | undefined;
|
|
15187
|
+
} | undefined;
|
|
15148
15188
|
evals?: {
|
|
15149
15189
|
prompt: string;
|
|
15150
15190
|
flags: {
|
|
@@ -15204,6 +15244,12 @@ export declare const CreateAnalysisConfigBody: zod.ZodObject<{
|
|
|
15204
15244
|
maxOutputTokens?: number | undefined;
|
|
15205
15245
|
} | undefined;
|
|
15206
15246
|
defaultCategoriesByStatus?: Record<string, string> | undefined;
|
|
15247
|
+
dashboardMetrics?: {
|
|
15248
|
+
primaryOutcome?: {
|
|
15249
|
+
categories: string[];
|
|
15250
|
+
label?: string | undefined;
|
|
15251
|
+
} | undefined;
|
|
15252
|
+
} | undefined;
|
|
15207
15253
|
evals?: {
|
|
15208
15254
|
prompt: string;
|
|
15209
15255
|
flags: {
|
|
@@ -15291,6 +15337,28 @@ export declare const UpdateAnalysisConfigBody: zod.ZodObject<{
|
|
|
15291
15337
|
categoryPrompt: zod.ZodString;
|
|
15292
15338
|
categories: zod.ZodArray<zod.ZodString, "many">;
|
|
15293
15339
|
defaultCategoriesByStatus: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
15340
|
+
dashboardMetrics: zod.ZodOptional<zod.ZodObject<{
|
|
15341
|
+
primaryOutcome: zod.ZodOptional<zod.ZodObject<{
|
|
15342
|
+
label: zod.ZodOptional<zod.ZodString>;
|
|
15343
|
+
categories: zod.ZodArray<zod.ZodString, "many">;
|
|
15344
|
+
}, "strip", zod.ZodTypeAny, {
|
|
15345
|
+
categories: string[];
|
|
15346
|
+
label?: string | undefined;
|
|
15347
|
+
}, {
|
|
15348
|
+
categories: string[];
|
|
15349
|
+
label?: string | undefined;
|
|
15350
|
+
}>>;
|
|
15351
|
+
}, "strip", zod.ZodTypeAny, {
|
|
15352
|
+
primaryOutcome?: {
|
|
15353
|
+
categories: string[];
|
|
15354
|
+
label?: string | undefined;
|
|
15355
|
+
} | undefined;
|
|
15356
|
+
}, {
|
|
15357
|
+
primaryOutcome?: {
|
|
15358
|
+
categories: string[];
|
|
15359
|
+
label?: string | undefined;
|
|
15360
|
+
} | undefined;
|
|
15361
|
+
}>>;
|
|
15294
15362
|
evals: zod.ZodOptional<zod.ZodObject<{
|
|
15295
15363
|
prompt: zod.ZodString;
|
|
15296
15364
|
flags: zod.ZodObject<{
|
|
@@ -15339,6 +15407,12 @@ export declare const UpdateAnalysisConfigBody: zod.ZodObject<{
|
|
|
15339
15407
|
maxOutputTokens?: number | undefined;
|
|
15340
15408
|
} | undefined;
|
|
15341
15409
|
defaultCategoriesByStatus?: Record<string, string> | undefined;
|
|
15410
|
+
dashboardMetrics?: {
|
|
15411
|
+
primaryOutcome?: {
|
|
15412
|
+
categories: string[];
|
|
15413
|
+
label?: string | undefined;
|
|
15414
|
+
} | undefined;
|
|
15415
|
+
} | undefined;
|
|
15342
15416
|
evals?: {
|
|
15343
15417
|
prompt: string;
|
|
15344
15418
|
flags: {
|
|
@@ -15361,6 +15435,12 @@ export declare const UpdateAnalysisConfigBody: zod.ZodObject<{
|
|
|
15361
15435
|
maxOutputTokens?: number | undefined;
|
|
15362
15436
|
} | undefined;
|
|
15363
15437
|
defaultCategoriesByStatus?: Record<string, string> | undefined;
|
|
15438
|
+
dashboardMetrics?: {
|
|
15439
|
+
primaryOutcome?: {
|
|
15440
|
+
categories: string[];
|
|
15441
|
+
label?: string | undefined;
|
|
15442
|
+
} | undefined;
|
|
15443
|
+
} | undefined;
|
|
15364
15444
|
evals?: {
|
|
15365
15445
|
prompt: string;
|
|
15366
15446
|
flags: {
|
|
@@ -15521,6 +15601,12 @@ export declare const UpdateAnalysisConfigBody: zod.ZodObject<{
|
|
|
15521
15601
|
maxOutputTokens?: number | undefined;
|
|
15522
15602
|
} | undefined;
|
|
15523
15603
|
defaultCategoriesByStatus?: Record<string, string> | undefined;
|
|
15604
|
+
dashboardMetrics?: {
|
|
15605
|
+
primaryOutcome?: {
|
|
15606
|
+
categories: string[];
|
|
15607
|
+
label?: string | undefined;
|
|
15608
|
+
} | undefined;
|
|
15609
|
+
} | undefined;
|
|
15524
15610
|
evals?: {
|
|
15525
15611
|
prompt: string;
|
|
15526
15612
|
flags: {
|
|
@@ -15579,6 +15665,12 @@ export declare const UpdateAnalysisConfigBody: zod.ZodObject<{
|
|
|
15579
15665
|
maxOutputTokens?: number | undefined;
|
|
15580
15666
|
} | undefined;
|
|
15581
15667
|
defaultCategoriesByStatus?: Record<string, string> | undefined;
|
|
15668
|
+
dashboardMetrics?: {
|
|
15669
|
+
primaryOutcome?: {
|
|
15670
|
+
categories: string[];
|
|
15671
|
+
label?: string | undefined;
|
|
15672
|
+
} | undefined;
|
|
15673
|
+
} | undefined;
|
|
15582
15674
|
evals?: {
|
|
15583
15675
|
prompt: string;
|
|
15584
15676
|
flags: {
|
package/internal/schemas.js
CHANGED
|
@@ -2323,6 +2323,12 @@ exports.CreateAnalysisConfigBody = zod.object({
|
|
|
2323
2323
|
"categoryPrompt": zod.string().min(1),
|
|
2324
2324
|
"categories": zod.array(zod.string()).min(1),
|
|
2325
2325
|
"defaultCategoriesByStatus": zod.record(zod.string(), zod.string()).optional(),
|
|
2326
|
+
"dashboardMetrics": zod.object({
|
|
2327
|
+
"primaryOutcome": zod.object({
|
|
2328
|
+
"label": zod.string().min(1).optional(),
|
|
2329
|
+
"categories": zod.array(zod.string().min(1)).min(1)
|
|
2330
|
+
}).optional()
|
|
2331
|
+
}).optional(),
|
|
2326
2332
|
"evals": zod.object({
|
|
2327
2333
|
"prompt": zod.string().min(1),
|
|
2328
2334
|
"flags": zod.object({
|
|
@@ -2390,6 +2396,12 @@ exports.UpdateAnalysisConfigBody = zod.object({
|
|
|
2390
2396
|
"categoryPrompt": zod.string().min(1),
|
|
2391
2397
|
"categories": zod.array(zod.string()).min(1),
|
|
2392
2398
|
"defaultCategoriesByStatus": zod.record(zod.string(), zod.string()).optional(),
|
|
2399
|
+
"dashboardMetrics": zod.object({
|
|
2400
|
+
"primaryOutcome": zod.object({
|
|
2401
|
+
"label": zod.string().min(1).optional(),
|
|
2402
|
+
"categories": zod.array(zod.string().min(1)).min(1)
|
|
2403
|
+
}).optional()
|
|
2404
|
+
}).optional(),
|
|
2393
2405
|
"evals": zod.object({
|
|
2394
2406
|
"prompt": zod.string().min(1),
|
|
2395
2407
|
"flags": zod.object({
|