@domu-ai/kiban-sdk 1.187.3 → 1.188.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 +131 -0
- package/dashboard/client.js +49 -4
- package/dashboard/schemas.d.ts +147 -0
- package/dashboard/schemas.js +37 -2
- package/package.json +1 -1
package/dashboard/client.d.ts
CHANGED
|
@@ -453,6 +453,77 @@ export type DashboardExternalCallsUploadsCompletePost500 = {
|
|
|
453
453
|
code?: string;
|
|
454
454
|
details?: unknown | null;
|
|
455
455
|
};
|
|
456
|
+
export type DashboardExternalCallsGetParams = {
|
|
457
|
+
/**
|
|
458
|
+
* @minimum 1
|
|
459
|
+
* @maximum 100
|
|
460
|
+
*/
|
|
461
|
+
limit?: number;
|
|
462
|
+
/**
|
|
463
|
+
* @minimum 0
|
|
464
|
+
* @maximum 10000
|
|
465
|
+
* @nullable
|
|
466
|
+
*/
|
|
467
|
+
offset?: number | null;
|
|
468
|
+
/**
|
|
469
|
+
* @minLength 1
|
|
470
|
+
*/
|
|
471
|
+
campaignId?: string;
|
|
472
|
+
createdFrom?: string;
|
|
473
|
+
createdTo?: string;
|
|
474
|
+
};
|
|
475
|
+
export type DashboardExternalCallsGet200DataCallsItemQaState = typeof DashboardExternalCallsGet200DataCallsItemQaState[keyof typeof DashboardExternalCallsGet200DataCallsItemQaState];
|
|
476
|
+
export declare const DashboardExternalCallsGet200DataCallsItemQaState: {
|
|
477
|
+
readonly uploaded: "uploaded";
|
|
478
|
+
readonly transcribed: "transcribed";
|
|
479
|
+
readonly scored: "scored";
|
|
480
|
+
};
|
|
481
|
+
export type DashboardExternalCallsGet200DataCallsItem = {
|
|
482
|
+
id: string;
|
|
483
|
+
externalCallId: string;
|
|
484
|
+
campaignId: string;
|
|
485
|
+
/** @nullable */
|
|
486
|
+
campaignName: string | null;
|
|
487
|
+
createdAt: string;
|
|
488
|
+
updatedAt: string;
|
|
489
|
+
hasTranscript: boolean;
|
|
490
|
+
hasScoringResults: boolean;
|
|
491
|
+
qaState: DashboardExternalCallsGet200DataCallsItemQaState;
|
|
492
|
+
};
|
|
493
|
+
export type DashboardExternalCallsGet200DataPagination = {
|
|
494
|
+
/** @minimum 1 */
|
|
495
|
+
limit: number;
|
|
496
|
+
/** @minimum 0 */
|
|
497
|
+
offset: number;
|
|
498
|
+
hasMore: boolean;
|
|
499
|
+
};
|
|
500
|
+
export type DashboardExternalCallsGet200Data = {
|
|
501
|
+
calls: DashboardExternalCallsGet200DataCallsItem[];
|
|
502
|
+
pagination: DashboardExternalCallsGet200DataPagination;
|
|
503
|
+
};
|
|
504
|
+
export type DashboardExternalCallsGet200 = {
|
|
505
|
+
data: DashboardExternalCallsGet200Data;
|
|
506
|
+
};
|
|
507
|
+
export type DashboardExternalCallsGet400 = {
|
|
508
|
+
message: string;
|
|
509
|
+
code?: string;
|
|
510
|
+
details?: unknown | null;
|
|
511
|
+
};
|
|
512
|
+
export type DashboardExternalCallsGet401 = {
|
|
513
|
+
message: string;
|
|
514
|
+
code?: string;
|
|
515
|
+
details?: unknown | null;
|
|
516
|
+
};
|
|
517
|
+
export type DashboardExternalCallsGet403 = {
|
|
518
|
+
message: string;
|
|
519
|
+
code?: string;
|
|
520
|
+
details?: unknown | null;
|
|
521
|
+
};
|
|
522
|
+
export type DashboardExternalCallsGet500 = {
|
|
523
|
+
message: string;
|
|
524
|
+
code?: string;
|
|
525
|
+
details?: unknown | null;
|
|
526
|
+
};
|
|
456
527
|
export type DashboardExternalCallsCallIdScoringGetParams = {
|
|
457
528
|
scorecardId?: string;
|
|
458
529
|
};
|
|
@@ -2253,6 +2324,66 @@ export declare const useDashboardExternalCallsUploadsCompletePost: <TError = Das
|
|
|
2253
2324
|
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof dashboardExternalCallsUploadsCompletePost>>, TError, {
|
|
2254
2325
|
data: DashboardExternalCallsUploadsCompletePostBody;
|
|
2255
2326
|
}, TContext>;
|
|
2327
|
+
/**
|
|
2328
|
+
* Returns external call recordings with campaign metadata.
|
|
2329
|
+
* @summary Get external calls
|
|
2330
|
+
*/
|
|
2331
|
+
export type dashboardExternalCallsGetResponse200 = {
|
|
2332
|
+
data: DashboardExternalCallsGet200;
|
|
2333
|
+
status: 200;
|
|
2334
|
+
};
|
|
2335
|
+
export type dashboardExternalCallsGetResponse400 = {
|
|
2336
|
+
data: DashboardExternalCallsGet400;
|
|
2337
|
+
status: 400;
|
|
2338
|
+
};
|
|
2339
|
+
export type dashboardExternalCallsGetResponse401 = {
|
|
2340
|
+
data: DashboardExternalCallsGet401;
|
|
2341
|
+
status: 401;
|
|
2342
|
+
};
|
|
2343
|
+
export type dashboardExternalCallsGetResponse403 = {
|
|
2344
|
+
data: DashboardExternalCallsGet403;
|
|
2345
|
+
status: 403;
|
|
2346
|
+
};
|
|
2347
|
+
export type dashboardExternalCallsGetResponse500 = {
|
|
2348
|
+
data: DashboardExternalCallsGet500;
|
|
2349
|
+
status: 500;
|
|
2350
|
+
};
|
|
2351
|
+
export type dashboardExternalCallsGetResponseSuccess = (dashboardExternalCallsGetResponse200) & {
|
|
2352
|
+
headers: Headers;
|
|
2353
|
+
};
|
|
2354
|
+
export type dashboardExternalCallsGetResponseError = (dashboardExternalCallsGetResponse400 | dashboardExternalCallsGetResponse401 | dashboardExternalCallsGetResponse403 | dashboardExternalCallsGetResponse500) & {
|
|
2355
|
+
headers: Headers;
|
|
2356
|
+
};
|
|
2357
|
+
export type dashboardExternalCallsGetResponse = (dashboardExternalCallsGetResponseSuccess | dashboardExternalCallsGetResponseError);
|
|
2358
|
+
export declare const getDashboardExternalCallsGetUrl: (params?: DashboardExternalCallsGetParams) => string;
|
|
2359
|
+
export declare const dashboardExternalCallsGet: (params?: DashboardExternalCallsGetParams, options?: RequestInit) => Promise<dashboardExternalCallsGetResponse>;
|
|
2360
|
+
export declare const getDashboardExternalCallsGetQueryKey: (params?: DashboardExternalCallsGetParams) => readonly ["/v1/dashboard/external-calls/", ...DashboardExternalCallsGetParams[]];
|
|
2361
|
+
export declare const getDashboardExternalCallsGetQueryOptions: <TData = Awaited<ReturnType<typeof dashboardExternalCallsGet>>, TError = DashboardExternalCallsGet400 | DashboardExternalCallsGet401 | DashboardExternalCallsGet403 | DashboardExternalCallsGet500>(params?: DashboardExternalCallsGetParams, options?: {
|
|
2362
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardExternalCallsGet>>, TError, TData>>;
|
|
2363
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
2364
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof dashboardExternalCallsGet>>, TError, TData> & {
|
|
2365
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2366
|
+
};
|
|
2367
|
+
export type DashboardExternalCallsGetQueryResult = NonNullable<Awaited<ReturnType<typeof dashboardExternalCallsGet>>>;
|
|
2368
|
+
export type DashboardExternalCallsGetQueryError = DashboardExternalCallsGet400 | DashboardExternalCallsGet401 | DashboardExternalCallsGet403 | DashboardExternalCallsGet500;
|
|
2369
|
+
export declare function useDashboardExternalCallsGet<TData = Awaited<ReturnType<typeof dashboardExternalCallsGet>>, TError = DashboardExternalCallsGet400 | DashboardExternalCallsGet401 | DashboardExternalCallsGet403 | DashboardExternalCallsGet500>(params: undefined | DashboardExternalCallsGetParams, options: {
|
|
2370
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardExternalCallsGet>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof dashboardExternalCallsGet>>, TError, Awaited<ReturnType<typeof dashboardExternalCallsGet>>>, 'initialData'>;
|
|
2371
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
2372
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
2373
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2374
|
+
};
|
|
2375
|
+
export declare function useDashboardExternalCallsGet<TData = Awaited<ReturnType<typeof dashboardExternalCallsGet>>, TError = DashboardExternalCallsGet400 | DashboardExternalCallsGet401 | DashboardExternalCallsGet403 | DashboardExternalCallsGet500>(params?: DashboardExternalCallsGetParams, options?: {
|
|
2376
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardExternalCallsGet>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof dashboardExternalCallsGet>>, TError, Awaited<ReturnType<typeof dashboardExternalCallsGet>>>, 'initialData'>;
|
|
2377
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
2378
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2379
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2380
|
+
};
|
|
2381
|
+
export declare function useDashboardExternalCallsGet<TData = Awaited<ReturnType<typeof dashboardExternalCallsGet>>, TError = DashboardExternalCallsGet400 | DashboardExternalCallsGet401 | DashboardExternalCallsGet403 | DashboardExternalCallsGet500>(params?: DashboardExternalCallsGetParams, options?: {
|
|
2382
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardExternalCallsGet>>, TError, TData>>;
|
|
2383
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
2384
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2385
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2386
|
+
};
|
|
2256
2387
|
/**
|
|
2257
2388
|
* Returns latest successful QA scoring results for an uploaded external call recording.
|
|
2258
2389
|
* @summary Get scoring results for an external call
|
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 = void 0;
|
|
3
|
+
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.DashboardExternalCallsCallIdScoringGet200DataResultsItemItemType = exports.DashboardExternalCallsGet200DataCallsItemQaState = exports.DashboardCampaignsCampaignIdInputFieldsGet200DataItemType = void 0;
|
|
4
|
+
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.getDashboardExternalCallsCallIdRecordingUrlGetQueryOptions = exports.getDashboardExternalCallsCallIdRecordingUrlGetQueryKey = exports.dashboardExternalCallsCallIdRecordingUrlGet = exports.getDashboardExternalCallsCallIdRecordingUrlGetUrl = 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 = void 0;
|
|
5
|
+
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 = 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 = 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 = void 0;
|
|
7
7
|
exports.useDashboardCampaignsGet = useDashboardCampaignsGet;
|
|
8
8
|
exports.useDashboardCampaignsCampaignIdInputFieldsGet = useDashboardCampaignsCampaignIdInputFieldsGet;
|
|
9
9
|
exports.useDashboardCampaignsCampaignIdOutputFieldsGet = useDashboardCampaignsCampaignIdOutputFieldsGet;
|
|
@@ -14,6 +14,7 @@ exports.useDashboardInputFieldsGet = useDashboardInputFieldsGet;
|
|
|
14
14
|
exports.useDashboardOutputFieldsGet = useDashboardOutputFieldsGet;
|
|
15
15
|
exports.useDashboardCallsCallIdGet = useDashboardCallsCallIdGet;
|
|
16
16
|
exports.useDashboardCallsCallIdRecordingUrlGet = useDashboardCallsCallIdRecordingUrlGet;
|
|
17
|
+
exports.useDashboardExternalCallsGet = useDashboardExternalCallsGet;
|
|
17
18
|
exports.useDashboardExternalCallsCallIdScoringGet = useDashboardExternalCallsCallIdScoringGet;
|
|
18
19
|
exports.useDashboardExternalCallsCallIdRecordingUrlGet = useDashboardExternalCallsCallIdRecordingUrlGet;
|
|
19
20
|
exports.useDashboardFlagsGet = useDashboardFlagsGet;
|
|
@@ -41,6 +42,11 @@ exports.DashboardCampaignsCampaignIdInputFieldsGet200DataItemType = {
|
|
|
41
42
|
debt: 'debt',
|
|
42
43
|
date: 'date',
|
|
43
44
|
};
|
|
45
|
+
exports.DashboardExternalCallsGet200DataCallsItemQaState = {
|
|
46
|
+
uploaded: 'uploaded',
|
|
47
|
+
transcribed: 'transcribed',
|
|
48
|
+
scored: 'scored',
|
|
49
|
+
};
|
|
44
50
|
exports.DashboardExternalCallsCallIdScoringGet200DataResultsItemItemType = {
|
|
45
51
|
boolean: 'boolean',
|
|
46
52
|
numeric: 'numeric',
|
|
@@ -608,6 +614,45 @@ const useDashboardExternalCallsUploadsCompletePost = (options, queryClient) => {
|
|
|
608
614
|
return (0, react_query_1.useMutation)((0, exports.getDashboardExternalCallsUploadsCompletePostMutationOptions)(options), queryClient);
|
|
609
615
|
};
|
|
610
616
|
exports.useDashboardExternalCallsUploadsCompletePost = useDashboardExternalCallsUploadsCompletePost;
|
|
617
|
+
const getDashboardExternalCallsGetUrl = (params) => {
|
|
618
|
+
const normalizedParams = new URLSearchParams();
|
|
619
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
620
|
+
if (value !== undefined) {
|
|
621
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
const stringifiedParams = normalizedParams.toString();
|
|
625
|
+
return stringifiedParams.length > 0 ? `/v1/dashboard/external-calls/?${stringifiedParams}` : `/v1/dashboard/external-calls/`;
|
|
626
|
+
};
|
|
627
|
+
exports.getDashboardExternalCallsGetUrl = getDashboardExternalCallsGetUrl;
|
|
628
|
+
const dashboardExternalCallsGet = async (params, options) => {
|
|
629
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardExternalCallsGetUrl)(params), {
|
|
630
|
+
...options,
|
|
631
|
+
method: 'GET'
|
|
632
|
+
});
|
|
633
|
+
};
|
|
634
|
+
exports.dashboardExternalCallsGet = dashboardExternalCallsGet;
|
|
635
|
+
const getDashboardExternalCallsGetQueryKey = (params) => {
|
|
636
|
+
return [
|
|
637
|
+
`/v1/dashboard/external-calls/`, ...(params ? [params] : [])
|
|
638
|
+
];
|
|
639
|
+
};
|
|
640
|
+
exports.getDashboardExternalCallsGetQueryKey = getDashboardExternalCallsGetQueryKey;
|
|
641
|
+
const getDashboardExternalCallsGetQueryOptions = (params, options) => {
|
|
642
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
643
|
+
const queryKey = queryOptions?.queryKey ?? (0, exports.getDashboardExternalCallsGetQueryKey)(params);
|
|
644
|
+
const queryFn = () => (0, exports.dashboardExternalCallsGet)(params, requestOptions);
|
|
645
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
646
|
+
};
|
|
647
|
+
exports.getDashboardExternalCallsGetQueryOptions = getDashboardExternalCallsGetQueryOptions;
|
|
648
|
+
/**
|
|
649
|
+
* @summary Get external calls
|
|
650
|
+
*/
|
|
651
|
+
function useDashboardExternalCallsGet(params, options, queryClient) {
|
|
652
|
+
const queryOptions = (0, exports.getDashboardExternalCallsGetQueryOptions)(params, options);
|
|
653
|
+
const query = (0, react_query_1.useQuery)(queryOptions, queryClient);
|
|
654
|
+
return { ...query, queryKey: queryOptions.queryKey };
|
|
655
|
+
}
|
|
611
656
|
const getDashboardExternalCallsCallIdScoringGetUrl = (callId, params) => {
|
|
612
657
|
const normalizedParams = new URLSearchParams();
|
|
613
658
|
Object.entries(params || {}).forEach(([key, value]) => {
|
package/dashboard/schemas.d.ts
CHANGED
|
@@ -759,6 +759,153 @@ export declare const CompleteUploadBody: zod.ZodObject<{
|
|
|
759
759
|
}, {
|
|
760
760
|
callIds: string[];
|
|
761
761
|
}>;
|
|
762
|
+
/**
|
|
763
|
+
* Returns external call recordings with campaign metadata.
|
|
764
|
+
* @summary Get external calls
|
|
765
|
+
*/
|
|
766
|
+
export declare const getExternalCallsQueryLimitMax = 100;
|
|
767
|
+
export declare const getExternalCallsQueryOffsetMin = 0;
|
|
768
|
+
export declare const getExternalCallsQueryOffsetMax = 10000;
|
|
769
|
+
export declare const GetExternalCallsQueryParams: zod.ZodObject<{
|
|
770
|
+
limit: zod.ZodOptional<zod.ZodNumber>;
|
|
771
|
+
offset: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
|
|
772
|
+
campaignId: zod.ZodOptional<zod.ZodString>;
|
|
773
|
+
createdFrom: zod.ZodOptional<zod.ZodString>;
|
|
774
|
+
createdTo: zod.ZodOptional<zod.ZodString>;
|
|
775
|
+
}, "strip", zod.ZodTypeAny, {
|
|
776
|
+
campaignId?: string | undefined;
|
|
777
|
+
limit?: number | undefined;
|
|
778
|
+
offset?: number | null | undefined;
|
|
779
|
+
createdFrom?: string | undefined;
|
|
780
|
+
createdTo?: string | undefined;
|
|
781
|
+
}, {
|
|
782
|
+
campaignId?: string | undefined;
|
|
783
|
+
limit?: number | undefined;
|
|
784
|
+
offset?: number | null | undefined;
|
|
785
|
+
createdFrom?: string | undefined;
|
|
786
|
+
createdTo?: string | undefined;
|
|
787
|
+
}>;
|
|
788
|
+
export declare const getExternalCallsResponseDataPaginationOffsetMin = 0;
|
|
789
|
+
export declare const GetExternalCallsResponse: zod.ZodObject<{
|
|
790
|
+
data: zod.ZodObject<{
|
|
791
|
+
calls: zod.ZodArray<zod.ZodObject<{
|
|
792
|
+
id: zod.ZodString;
|
|
793
|
+
externalCallId: zod.ZodString;
|
|
794
|
+
campaignId: zod.ZodString;
|
|
795
|
+
campaignName: zod.ZodNullable<zod.ZodString>;
|
|
796
|
+
createdAt: zod.ZodString;
|
|
797
|
+
updatedAt: zod.ZodString;
|
|
798
|
+
hasTranscript: zod.ZodBoolean;
|
|
799
|
+
hasScoringResults: zod.ZodBoolean;
|
|
800
|
+
qaState: zod.ZodEnum<["uploaded", "transcribed", "scored"]>;
|
|
801
|
+
}, "strip", zod.ZodTypeAny, {
|
|
802
|
+
campaignId: string;
|
|
803
|
+
id: string;
|
|
804
|
+
createdAt: string;
|
|
805
|
+
updatedAt: string;
|
|
806
|
+
externalCallId: string;
|
|
807
|
+
campaignName: string | null;
|
|
808
|
+
hasTranscript: boolean;
|
|
809
|
+
hasScoringResults: boolean;
|
|
810
|
+
qaState: "uploaded" | "transcribed" | "scored";
|
|
811
|
+
}, {
|
|
812
|
+
campaignId: string;
|
|
813
|
+
id: string;
|
|
814
|
+
createdAt: string;
|
|
815
|
+
updatedAt: string;
|
|
816
|
+
externalCallId: string;
|
|
817
|
+
campaignName: string | null;
|
|
818
|
+
hasTranscript: boolean;
|
|
819
|
+
hasScoringResults: boolean;
|
|
820
|
+
qaState: "uploaded" | "transcribed" | "scored";
|
|
821
|
+
}>, "many">;
|
|
822
|
+
pagination: zod.ZodObject<{
|
|
823
|
+
limit: zod.ZodNumber;
|
|
824
|
+
offset: zod.ZodNumber;
|
|
825
|
+
hasMore: zod.ZodBoolean;
|
|
826
|
+
}, "strip", zod.ZodTypeAny, {
|
|
827
|
+
limit: number;
|
|
828
|
+
offset: number;
|
|
829
|
+
hasMore: boolean;
|
|
830
|
+
}, {
|
|
831
|
+
limit: number;
|
|
832
|
+
offset: number;
|
|
833
|
+
hasMore: boolean;
|
|
834
|
+
}>;
|
|
835
|
+
}, "strip", zod.ZodTypeAny, {
|
|
836
|
+
calls: {
|
|
837
|
+
campaignId: string;
|
|
838
|
+
id: string;
|
|
839
|
+
createdAt: string;
|
|
840
|
+
updatedAt: string;
|
|
841
|
+
externalCallId: string;
|
|
842
|
+
campaignName: string | null;
|
|
843
|
+
hasTranscript: boolean;
|
|
844
|
+
hasScoringResults: boolean;
|
|
845
|
+
qaState: "uploaded" | "transcribed" | "scored";
|
|
846
|
+
}[];
|
|
847
|
+
pagination: {
|
|
848
|
+
limit: number;
|
|
849
|
+
offset: number;
|
|
850
|
+
hasMore: boolean;
|
|
851
|
+
};
|
|
852
|
+
}, {
|
|
853
|
+
calls: {
|
|
854
|
+
campaignId: string;
|
|
855
|
+
id: string;
|
|
856
|
+
createdAt: string;
|
|
857
|
+
updatedAt: string;
|
|
858
|
+
externalCallId: string;
|
|
859
|
+
campaignName: string | null;
|
|
860
|
+
hasTranscript: boolean;
|
|
861
|
+
hasScoringResults: boolean;
|
|
862
|
+
qaState: "uploaded" | "transcribed" | "scored";
|
|
863
|
+
}[];
|
|
864
|
+
pagination: {
|
|
865
|
+
limit: number;
|
|
866
|
+
offset: number;
|
|
867
|
+
hasMore: boolean;
|
|
868
|
+
};
|
|
869
|
+
}>;
|
|
870
|
+
}, "strip", zod.ZodTypeAny, {
|
|
871
|
+
data: {
|
|
872
|
+
calls: {
|
|
873
|
+
campaignId: string;
|
|
874
|
+
id: string;
|
|
875
|
+
createdAt: string;
|
|
876
|
+
updatedAt: string;
|
|
877
|
+
externalCallId: string;
|
|
878
|
+
campaignName: string | null;
|
|
879
|
+
hasTranscript: boolean;
|
|
880
|
+
hasScoringResults: boolean;
|
|
881
|
+
qaState: "uploaded" | "transcribed" | "scored";
|
|
882
|
+
}[];
|
|
883
|
+
pagination: {
|
|
884
|
+
limit: number;
|
|
885
|
+
offset: number;
|
|
886
|
+
hasMore: boolean;
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
}, {
|
|
890
|
+
data: {
|
|
891
|
+
calls: {
|
|
892
|
+
campaignId: string;
|
|
893
|
+
id: string;
|
|
894
|
+
createdAt: string;
|
|
895
|
+
updatedAt: string;
|
|
896
|
+
externalCallId: string;
|
|
897
|
+
campaignName: string | null;
|
|
898
|
+
hasTranscript: boolean;
|
|
899
|
+
hasScoringResults: boolean;
|
|
900
|
+
qaState: "uploaded" | "transcribed" | "scored";
|
|
901
|
+
}[];
|
|
902
|
+
pagination: {
|
|
903
|
+
limit: number;
|
|
904
|
+
offset: number;
|
|
905
|
+
hasMore: boolean;
|
|
906
|
+
};
|
|
907
|
+
};
|
|
908
|
+
}>;
|
|
762
909
|
/**
|
|
763
910
|
* Returns latest successful QA scoring results for an uploaded external call recording.
|
|
764
911
|
* @summary Get scoring results for an external call
|
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 = exports.deployScorecardBodyItemsItemTwoNameMax = exports.deployScorecardBodyItemsItemTwoCategoryMax = exports.deployScorecardBodyNameMax = exports.DeployScorecardParams = exports.WindmillSchedulesPreviewResponse = exports.WindmillSchedulesPreviewParams = exports.WindmillSchedulesPresignUploadResponse = exports.WindmillSchedulesPresignUploadBody = exports.WindmillSchedulesPresignUploadParams = exports.WindmillSchedulesRunsResponse = exports.WindmillSchedulesRunsParams = exports.WindmillSchedulesToggleResponse = void 0;
|
|
36
|
+
exports.WindmillSchedulesGetByNameParams = exports.WindmillSchedulesListResponse = exports.GetLatestTargetResponse = exports.GetLatestTargetQueryParams = exports.GetOrgFlagsResponse = exports.CreateBody = exports.createBodyTimeSlotsItemTimeRegExp = exports.PreviewResponse = exports.PreviewBody = exports.previewBodyTimeSlotsItemTimeRegExp = exports.StartCallBody = exports.GetExternalCallRecordingPresignedUrlResponse = exports.GetExternalCallRecordingPresignedUrlParams = 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 = void 0;
|
|
38
38
|
/**
|
|
39
39
|
* Generated by orval v8.2.0 🍺
|
|
40
40
|
* Do not edit manually.
|
|
@@ -262,6 +262,41 @@ exports.completeUploadBodyCallIdsMax = 50;
|
|
|
262
262
|
exports.CompleteUploadBody = zod.object({
|
|
263
263
|
"callIds": zod.array(zod.string().min(1)).min(1).max(exports.completeUploadBodyCallIdsMax)
|
|
264
264
|
});
|
|
265
|
+
/**
|
|
266
|
+
* Returns external call recordings with campaign metadata.
|
|
267
|
+
* @summary Get external calls
|
|
268
|
+
*/
|
|
269
|
+
exports.getExternalCallsQueryLimitMax = 100;
|
|
270
|
+
exports.getExternalCallsQueryOffsetMin = 0;
|
|
271
|
+
exports.getExternalCallsQueryOffsetMax = 10000;
|
|
272
|
+
exports.GetExternalCallsQueryParams = zod.object({
|
|
273
|
+
"limit": zod.number().min(1).max(exports.getExternalCallsQueryLimitMax).optional(),
|
|
274
|
+
"offset": zod.number().min(exports.getExternalCallsQueryOffsetMin).max(exports.getExternalCallsQueryOffsetMax).nullish(),
|
|
275
|
+
"campaignId": zod.string().min(1).optional(),
|
|
276
|
+
"createdFrom": zod.string().datetime({}).optional(),
|
|
277
|
+
"createdTo": zod.string().datetime({}).optional()
|
|
278
|
+
});
|
|
279
|
+
exports.getExternalCallsResponseDataPaginationOffsetMin = 0;
|
|
280
|
+
exports.GetExternalCallsResponse = zod.object({
|
|
281
|
+
"data": zod.object({
|
|
282
|
+
"calls": zod.array(zod.object({
|
|
283
|
+
"id": zod.string(),
|
|
284
|
+
"externalCallId": zod.string(),
|
|
285
|
+
"campaignId": zod.string(),
|
|
286
|
+
"campaignName": zod.string().nullable(),
|
|
287
|
+
"createdAt": zod.string().datetime({}),
|
|
288
|
+
"updatedAt": zod.string().datetime({}),
|
|
289
|
+
"hasTranscript": zod.boolean(),
|
|
290
|
+
"hasScoringResults": zod.boolean(),
|
|
291
|
+
"qaState": zod.enum(['uploaded', 'transcribed', 'scored'])
|
|
292
|
+
})),
|
|
293
|
+
"pagination": zod.object({
|
|
294
|
+
"limit": zod.number().min(1),
|
|
295
|
+
"offset": zod.number().min(exports.getExternalCallsResponseDataPaginationOffsetMin),
|
|
296
|
+
"hasMore": zod.boolean()
|
|
297
|
+
})
|
|
298
|
+
})
|
|
299
|
+
});
|
|
265
300
|
/**
|
|
266
301
|
* Returns latest successful QA scoring results for an uploaded external call recording.
|
|
267
302
|
* @summary Get scoring results for an external call
|