@domu-ai/kiban-sdk 1.178.0 → 1.180.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 +74 -0
- package/dashboard/client.js +36 -3
- package/dashboard/schemas.d.ts +18 -0
- package/dashboard/schemas.js +12 -2
- package/internal/client.d.ts +2 -0
- package/internal/schemas.d.ts +3 -0
- package/internal/schemas.js +2 -1
- package/package.json +1 -1
package/dashboard/client.d.ts
CHANGED
|
@@ -77,6 +77,24 @@ export type DashboardCampaignsCampaignIdInputFieldsGet500 = {
|
|
|
77
77
|
code?: string;
|
|
78
78
|
details?: unknown | null;
|
|
79
79
|
};
|
|
80
|
+
export type DashboardCampaignsCampaignIdOutputFieldsGet200 = {
|
|
81
|
+
data: string[];
|
|
82
|
+
};
|
|
83
|
+
export type DashboardCampaignsCampaignIdOutputFieldsGet401 = {
|
|
84
|
+
message: string;
|
|
85
|
+
code?: string;
|
|
86
|
+
details?: unknown | null;
|
|
87
|
+
};
|
|
88
|
+
export type DashboardCampaignsCampaignIdOutputFieldsGet404 = {
|
|
89
|
+
message: string;
|
|
90
|
+
code?: string;
|
|
91
|
+
details?: unknown | null;
|
|
92
|
+
};
|
|
93
|
+
export type DashboardCampaignsCampaignIdOutputFieldsGet500 = {
|
|
94
|
+
message: string;
|
|
95
|
+
code?: string;
|
|
96
|
+
details?: unknown | null;
|
|
97
|
+
};
|
|
80
98
|
export type DashboardCampaignsCampaignIdScheduleConfigGet200DataContactHoursMonday = {
|
|
81
99
|
minHour: number;
|
|
82
100
|
maxHour: number;
|
|
@@ -1381,6 +1399,62 @@ export declare function useDashboardCampaignsCampaignIdInputFieldsGet<TData = Aw
|
|
|
1381
1399
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1382
1400
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1383
1401
|
};
|
|
1402
|
+
/**
|
|
1403
|
+
* Returns output field keys for a campaign. For new-PCA campaigns (kiban_post_analysis_enabled=true) keys are the distinct keys present in analysis_results.output_fields. For legacy campaigns they are the distinct keys present in calls.output_fields (joined to the campaign through targets).
|
|
1404
|
+
* @summary Get campaign output field keys
|
|
1405
|
+
*/
|
|
1406
|
+
export type dashboardCampaignsCampaignIdOutputFieldsGetResponse200 = {
|
|
1407
|
+
data: DashboardCampaignsCampaignIdOutputFieldsGet200;
|
|
1408
|
+
status: 200;
|
|
1409
|
+
};
|
|
1410
|
+
export type dashboardCampaignsCampaignIdOutputFieldsGetResponse401 = {
|
|
1411
|
+
data: DashboardCampaignsCampaignIdOutputFieldsGet401;
|
|
1412
|
+
status: 401;
|
|
1413
|
+
};
|
|
1414
|
+
export type dashboardCampaignsCampaignIdOutputFieldsGetResponse404 = {
|
|
1415
|
+
data: DashboardCampaignsCampaignIdOutputFieldsGet404;
|
|
1416
|
+
status: 404;
|
|
1417
|
+
};
|
|
1418
|
+
export type dashboardCampaignsCampaignIdOutputFieldsGetResponse500 = {
|
|
1419
|
+
data: DashboardCampaignsCampaignIdOutputFieldsGet500;
|
|
1420
|
+
status: 500;
|
|
1421
|
+
};
|
|
1422
|
+
export type dashboardCampaignsCampaignIdOutputFieldsGetResponseSuccess = (dashboardCampaignsCampaignIdOutputFieldsGetResponse200) & {
|
|
1423
|
+
headers: Headers;
|
|
1424
|
+
};
|
|
1425
|
+
export type dashboardCampaignsCampaignIdOutputFieldsGetResponseError = (dashboardCampaignsCampaignIdOutputFieldsGetResponse401 | dashboardCampaignsCampaignIdOutputFieldsGetResponse404 | dashboardCampaignsCampaignIdOutputFieldsGetResponse500) & {
|
|
1426
|
+
headers: Headers;
|
|
1427
|
+
};
|
|
1428
|
+
export type dashboardCampaignsCampaignIdOutputFieldsGetResponse = (dashboardCampaignsCampaignIdOutputFieldsGetResponseSuccess | dashboardCampaignsCampaignIdOutputFieldsGetResponseError);
|
|
1429
|
+
export declare const getDashboardCampaignsCampaignIdOutputFieldsGetUrl: (campaignId: string) => string;
|
|
1430
|
+
export declare const dashboardCampaignsCampaignIdOutputFieldsGet: (campaignId: string, options?: RequestInit) => Promise<dashboardCampaignsCampaignIdOutputFieldsGetResponse>;
|
|
1431
|
+
export declare const getDashboardCampaignsCampaignIdOutputFieldsGetQueryKey: (campaignId: string) => readonly [`/v1/dashboard/campaigns/${string}/output-fields`];
|
|
1432
|
+
export declare const getDashboardCampaignsCampaignIdOutputFieldsGetQueryOptions: <TData = Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>, TError = DashboardCampaignsCampaignIdOutputFieldsGet401 | DashboardCampaignsCampaignIdOutputFieldsGet404 | DashboardCampaignsCampaignIdOutputFieldsGet500>(campaignId: string, options?: {
|
|
1433
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>, TError, TData>>;
|
|
1434
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
1435
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>, TError, TData> & {
|
|
1436
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1437
|
+
};
|
|
1438
|
+
export type DashboardCampaignsCampaignIdOutputFieldsGetQueryResult = NonNullable<Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>>;
|
|
1439
|
+
export type DashboardCampaignsCampaignIdOutputFieldsGetQueryError = DashboardCampaignsCampaignIdOutputFieldsGet401 | DashboardCampaignsCampaignIdOutputFieldsGet404 | DashboardCampaignsCampaignIdOutputFieldsGet500;
|
|
1440
|
+
export declare function useDashboardCampaignsCampaignIdOutputFieldsGet<TData = Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>, TError = DashboardCampaignsCampaignIdOutputFieldsGet401 | DashboardCampaignsCampaignIdOutputFieldsGet404 | DashboardCampaignsCampaignIdOutputFieldsGet500>(campaignId: string, options: {
|
|
1441
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>, TError, Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>>, 'initialData'>;
|
|
1442
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
1443
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
1444
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1445
|
+
};
|
|
1446
|
+
export declare function useDashboardCampaignsCampaignIdOutputFieldsGet<TData = Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>, TError = DashboardCampaignsCampaignIdOutputFieldsGet401 | DashboardCampaignsCampaignIdOutputFieldsGet404 | DashboardCampaignsCampaignIdOutputFieldsGet500>(campaignId: string, options?: {
|
|
1447
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>, TError, Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>>, 'initialData'>;
|
|
1448
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
1449
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1450
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1451
|
+
};
|
|
1452
|
+
export declare function useDashboardCampaignsCampaignIdOutputFieldsGet<TData = Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>, TError = DashboardCampaignsCampaignIdOutputFieldsGet401 | DashboardCampaignsCampaignIdOutputFieldsGet404 | DashboardCampaignsCampaignIdOutputFieldsGet500>(campaignId: string, options?: {
|
|
1453
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardCampaignsCampaignIdOutputFieldsGet>>, TError, TData>>;
|
|
1454
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
1455
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1456
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1457
|
+
};
|
|
1384
1458
|
/**
|
|
1385
1459
|
* Returns campaign configuration needed for the schedule builder: timezone, contact hours, phone columns, and target count.
|
|
1386
1460
|
* @summary Get campaign schedule configuration
|
package/dashboard/client.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
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 = exports.dashboardInovoWindmillSchedulesNamePreviewGet = exports.getDashboardInovoWindmillSchedulesNamePreviewGetUrl = exports.useDashboardInovoWindmillSchedulesNamePresignUploadPost = exports.getDashboardInovoWindmillSchedulesNamePresignUploadPostMutationOptions = exports.dashboardInovoWindmillSchedulesNamePresignUploadPost = exports.getDashboardInovoWindmillSchedulesNamePresignUploadPostUrl = exports.getDashboardInovoWindmillSchedulesNameRunsGetQueryOptions = void 0;
|
|
3
|
+
exports.getDashboardCallsCallIdGetUrl = exports.getDashboardOutputFieldsGetQueryOptions = exports.getDashboardOutputFieldsGetQueryKey = exports.dashboardOutputFieldsGet = exports.getDashboardOutputFieldsGetUrl = exports.getDashboardInputFieldsGetQueryOptions = exports.getDashboardInputFieldsGetQueryKey = 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.DashboardSchedulerCreatePostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerCreatePostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardSchedulerPreviewPost200DataWarningsItemSeverity = exports.DashboardSchedulerPreviewPost200DataWarningsItemType = exports.DashboardSchedulerPreviewPost200DataJourneyStepsItemType = exports.DashboardSchedulerPreviewPostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardCampaignsCampaignIdInputFieldsGet200DataItemType = void 0;
|
|
4
|
+
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.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 = exports.useDashboardAgentSandboxStartPost = exports.getDashboardAgentSandboxStartPostMutationOptions = exports.dashboardAgentSandboxStartPost = exports.getDashboardAgentSandboxStartPostUrl = 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 = void 0;
|
|
5
|
+
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 = exports.dashboardInovoWindmillSchedulesNamePreviewGet = exports.getDashboardInovoWindmillSchedulesNamePreviewGetUrl = exports.useDashboardInovoWindmillSchedulesNamePresignUploadPost = exports.getDashboardInovoWindmillSchedulesNamePresignUploadPostMutationOptions = exports.dashboardInovoWindmillSchedulesNamePresignUploadPost = exports.getDashboardInovoWindmillSchedulesNamePresignUploadPostUrl = exports.getDashboardInovoWindmillSchedulesNameRunsGetQueryOptions = exports.getDashboardInovoWindmillSchedulesNameRunsGetQueryKey = exports.dashboardInovoWindmillSchedulesNameRunsGet = exports.getDashboardInovoWindmillSchedulesNameRunsGetUrl = exports.useDashboardInovoWindmillSchedulesNameTogglePatch = void 0;
|
|
6
6
|
exports.useDashboardCampaignsGet = useDashboardCampaignsGet;
|
|
7
7
|
exports.useDashboardCampaignsCampaignIdInputFieldsGet = useDashboardCampaignsCampaignIdInputFieldsGet;
|
|
8
|
+
exports.useDashboardCampaignsCampaignIdOutputFieldsGet = useDashboardCampaignsCampaignIdOutputFieldsGet;
|
|
8
9
|
exports.useDashboardCampaignsCampaignIdScheduleConfigGet = useDashboardCampaignsCampaignIdScheduleConfigGet;
|
|
9
10
|
exports.useDashboardAgentsGet = useDashboardAgentsGet;
|
|
10
11
|
exports.useDashboardAgentsGroupedGet = useDashboardAgentsGroupedGet;
|
|
@@ -208,6 +209,38 @@ function useDashboardCampaignsCampaignIdInputFieldsGet(campaignId, options, quer
|
|
|
208
209
|
const query = (0, react_query_1.useQuery)(queryOptions, queryClient);
|
|
209
210
|
return { ...query, queryKey: queryOptions.queryKey };
|
|
210
211
|
}
|
|
212
|
+
const getDashboardCampaignsCampaignIdOutputFieldsGetUrl = (campaignId) => {
|
|
213
|
+
return `/v1/dashboard/campaigns/${campaignId}/output-fields`;
|
|
214
|
+
};
|
|
215
|
+
exports.getDashboardCampaignsCampaignIdOutputFieldsGetUrl = getDashboardCampaignsCampaignIdOutputFieldsGetUrl;
|
|
216
|
+
const dashboardCampaignsCampaignIdOutputFieldsGet = async (campaignId, options) => {
|
|
217
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardCampaignsCampaignIdOutputFieldsGetUrl)(campaignId), {
|
|
218
|
+
...options,
|
|
219
|
+
method: 'GET'
|
|
220
|
+
});
|
|
221
|
+
};
|
|
222
|
+
exports.dashboardCampaignsCampaignIdOutputFieldsGet = dashboardCampaignsCampaignIdOutputFieldsGet;
|
|
223
|
+
const getDashboardCampaignsCampaignIdOutputFieldsGetQueryKey = (campaignId) => {
|
|
224
|
+
return [
|
|
225
|
+
`/v1/dashboard/campaigns/${campaignId}/output-fields`
|
|
226
|
+
];
|
|
227
|
+
};
|
|
228
|
+
exports.getDashboardCampaignsCampaignIdOutputFieldsGetQueryKey = getDashboardCampaignsCampaignIdOutputFieldsGetQueryKey;
|
|
229
|
+
const getDashboardCampaignsCampaignIdOutputFieldsGetQueryOptions = (campaignId, options) => {
|
|
230
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
231
|
+
const queryKey = queryOptions?.queryKey ?? (0, exports.getDashboardCampaignsCampaignIdOutputFieldsGetQueryKey)(campaignId);
|
|
232
|
+
const queryFn = () => (0, exports.dashboardCampaignsCampaignIdOutputFieldsGet)(campaignId, requestOptions);
|
|
233
|
+
return { queryKey, queryFn, enabled: !!(campaignId), ...queryOptions };
|
|
234
|
+
};
|
|
235
|
+
exports.getDashboardCampaignsCampaignIdOutputFieldsGetQueryOptions = getDashboardCampaignsCampaignIdOutputFieldsGetQueryOptions;
|
|
236
|
+
/**
|
|
237
|
+
* @summary Get campaign output field keys
|
|
238
|
+
*/
|
|
239
|
+
function useDashboardCampaignsCampaignIdOutputFieldsGet(campaignId, options, queryClient) {
|
|
240
|
+
const queryOptions = (0, exports.getDashboardCampaignsCampaignIdOutputFieldsGetQueryOptions)(campaignId, options);
|
|
241
|
+
const query = (0, react_query_1.useQuery)(queryOptions, queryClient);
|
|
242
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
243
|
+
}
|
|
211
244
|
const getDashboardCampaignsCampaignIdScheduleConfigGetUrl = (campaignId) => {
|
|
212
245
|
return `/v1/dashboard/campaigns/${campaignId}/schedule-config`;
|
|
213
246
|
};
|
package/dashboard/schemas.d.ts
CHANGED
|
@@ -83,6 +83,24 @@ export declare const GetCampaignInputFieldsResponse: zod.ZodObject<{
|
|
|
83
83
|
label: string;
|
|
84
84
|
}[];
|
|
85
85
|
}>;
|
|
86
|
+
/**
|
|
87
|
+
* Returns output field keys for a campaign. For new-PCA campaigns (kiban_post_analysis_enabled=true) keys are the distinct keys present in analysis_results.output_fields. For legacy campaigns they are the distinct keys present in calls.output_fields (joined to the campaign through targets).
|
|
88
|
+
* @summary Get campaign output field keys
|
|
89
|
+
*/
|
|
90
|
+
export declare const GetCampaignOutputFieldsParams: zod.ZodObject<{
|
|
91
|
+
campaignId: zod.ZodString;
|
|
92
|
+
}, "strip", zod.ZodTypeAny, {
|
|
93
|
+
campaignId: string;
|
|
94
|
+
}, {
|
|
95
|
+
campaignId: string;
|
|
96
|
+
}>;
|
|
97
|
+
export declare const GetCampaignOutputFieldsResponse: zod.ZodObject<{
|
|
98
|
+
data: zod.ZodArray<zod.ZodString, "many">;
|
|
99
|
+
}, "strip", zod.ZodTypeAny, {
|
|
100
|
+
data: string[];
|
|
101
|
+
}, {
|
|
102
|
+
data: string[];
|
|
103
|
+
}>;
|
|
86
104
|
/**
|
|
87
105
|
* Returns campaign configuration needed for the schedule builder: timezone, contact hours, phone columns, and target count.
|
|
88
106
|
* @summary Get campaign schedule configuration
|
package/dashboard/schemas.js
CHANGED
|
@@ -33,8 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
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 = void 0;
|
|
36
|
+
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 = exports.GetLatestTargetQueryParams = exports.GetOrgFlagsResponse = exports.CreateBody = exports.createBodyTimeSlotsItemTimeRegExp = exports.PreviewResponse = exports.PreviewBody = exports.previewBodyTimeSlotsItemTimeRegExp = exports.StartCallBody = 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 = void 0;
|
|
38
38
|
/**
|
|
39
39
|
* Generated by orval v8.2.0 🍺
|
|
40
40
|
* Do not edit manually.
|
|
@@ -76,6 +76,16 @@ exports.GetCampaignInputFieldsResponse = zod.object({
|
|
|
76
76
|
"type": zod.enum(['string', 'number', 'debt', 'date'])
|
|
77
77
|
}))
|
|
78
78
|
});
|
|
79
|
+
/**
|
|
80
|
+
* Returns output field keys for a campaign. For new-PCA campaigns (kiban_post_analysis_enabled=true) keys are the distinct keys present in analysis_results.output_fields. For legacy campaigns they are the distinct keys present in calls.output_fields (joined to the campaign through targets).
|
|
81
|
+
* @summary Get campaign output field keys
|
|
82
|
+
*/
|
|
83
|
+
exports.GetCampaignOutputFieldsParams = zod.object({
|
|
84
|
+
"campaignId": zod.string()
|
|
85
|
+
});
|
|
86
|
+
exports.GetCampaignOutputFieldsResponse = zod.object({
|
|
87
|
+
"data": zod.array(zod.string())
|
|
88
|
+
});
|
|
79
89
|
/**
|
|
80
90
|
* Returns campaign configuration needed for the schedule builder: timezone, contact hours, phone columns, and target count.
|
|
81
91
|
* @summary Get campaign schedule configuration
|
package/internal/client.d.ts
CHANGED
|
@@ -3073,6 +3073,8 @@ export type InternalAnalysisRunPostBody = {
|
|
|
3073
3073
|
* @minLength 1
|
|
3074
3074
|
*/
|
|
3075
3075
|
callId: string;
|
|
3076
|
+
/** When true, bypasses the persisted-result idempotency check and re-runs the analysis engine. Set this when the upstream rerun flag has already been cleared by the time this endpoint is called (e.g., recover-calls service clears `calls.rerun` before the analyze-call Lambda forwards to Kiban). */
|
|
3077
|
+
rerun?: boolean;
|
|
3076
3078
|
};
|
|
3077
3079
|
export type InternalAnalysisRunPost202 = {
|
|
3078
3080
|
/** Unique identifier for the queued analysis job */
|
package/internal/schemas.d.ts
CHANGED
|
@@ -14626,10 +14626,13 @@ export declare const MeResponse: zod.ZodObject<{
|
|
|
14626
14626
|
*/
|
|
14627
14627
|
export declare const RunAnalysisBody: zod.ZodObject<{
|
|
14628
14628
|
callId: zod.ZodString;
|
|
14629
|
+
rerun: zod.ZodOptional<zod.ZodBoolean>;
|
|
14629
14630
|
}, "strip", zod.ZodTypeAny, {
|
|
14630
14631
|
callId: string;
|
|
14632
|
+
rerun?: boolean | undefined;
|
|
14631
14633
|
}, {
|
|
14632
14634
|
callId: string;
|
|
14635
|
+
rerun?: boolean | undefined;
|
|
14633
14636
|
}>;
|
|
14634
14637
|
/**
|
|
14635
14638
|
* Returns the active (latest version) analysis config for a campaign. Returns 404 if no config exists.
|
package/internal/schemas.js
CHANGED
|
@@ -2237,7 +2237,8 @@ exports.MeResponse = zod.object({
|
|
|
2237
2237
|
* @summary Queue a call analysis job
|
|
2238
2238
|
*/
|
|
2239
2239
|
exports.RunAnalysisBody = zod.object({
|
|
2240
|
-
"callId": zod.string().min(1).describe('ID of the call to analyze')
|
|
2240
|
+
"callId": zod.string().min(1).describe('ID of the call to analyze'),
|
|
2241
|
+
"rerun": zod.boolean().optional().describe('When true, bypasses the persisted-result idempotency check and re-runs the analysis engine. Set this when the upstream rerun flag has already been cleared by the time this endpoint is called (e.g., recover-calls service clears `calls.rerun` before the analyze-call Lambda forwards to Kiban).')
|
|
2241
2242
|
});
|
|
2242
2243
|
/**
|
|
2243
2244
|
* Returns the active (latest version) analysis config for a campaign. Returns 404 if no config exists.
|