@droz-js/sdk 0.18.5 → 0.18.6
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/package.json +1 -1
- package/src/drozanalytics.d.ts +4 -0
- package/src/sdks/drozanalytics.d.ts +21 -2
- package/src/sdks/drozanalytics.js +13 -1
- package/src/sdks/drozbot.d.ts +6 -4
- package/src/sdks/drozbot.js +1 -0
- package/src/sdks/drozchat.d.ts +28 -7
- package/src/sdks/drozchat.js +22 -0
package/package.json
CHANGED
package/src/drozanalytics.d.ts
CHANGED
|
@@ -72,6 +72,10 @@ declare const Drozanalytics_base: new (options?: import("./client/http").HttpCli
|
|
|
72
72
|
endDate: import("./sdks/drozanalytics").Scalars["Date"]["input"];
|
|
73
73
|
type?: import("./sdks/drozanalytics").InputMaybe<import("./sdks/drozanalytics").AnalyticsType>;
|
|
74
74
|
}>, options?: unknown): Promise<import("./sdks/drozanalytics").GetAgentsDailySummaryQuery>;
|
|
75
|
+
getClosedCountByChannel(variables: import("./sdks/drozanalytics").Exact<{
|
|
76
|
+
startDate: import("./sdks/drozanalytics").Scalars["Date"]["input"];
|
|
77
|
+
endDate: import("./sdks/drozanalytics").Scalars["Date"]["input"];
|
|
78
|
+
}>, options?: unknown): Promise<import("./sdks/drozanalytics").GetClosedCountByChannelQuery>;
|
|
75
79
|
};
|
|
76
80
|
export declare class Drozanalytics extends Drozanalytics_base {
|
|
77
81
|
constructor();
|
|
@@ -125,6 +125,7 @@ export type Scalars = {
|
|
|
125
125
|
export type AgentDailySummary = {
|
|
126
126
|
agentId: Scalars['ID']['output'];
|
|
127
127
|
closed: Scalars['Int']['output'];
|
|
128
|
+
firstResponseAvgMs?: Maybe<Scalars['Float']['output']>;
|
|
128
129
|
reviewAverage?: Maybe<Scalars['Float']['output']>;
|
|
129
130
|
reviewCount: Scalars['Int']['output'];
|
|
130
131
|
reviewType?: Maybe<AnalyticsType>;
|
|
@@ -183,6 +184,10 @@ export declare enum Can {
|
|
|
183
184
|
Remove = "remove",
|
|
184
185
|
Write = "write"
|
|
185
186
|
}
|
|
187
|
+
export type ChannelClosedCount = {
|
|
188
|
+
channelId?: Maybe<Scalars['ID']['output']>;
|
|
189
|
+
count: Scalars['Int']['output'];
|
|
190
|
+
};
|
|
186
191
|
export type FlowTaxonomy = {
|
|
187
192
|
auditedAt?: Maybe<Scalars['Date']['output']>;
|
|
188
193
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -267,6 +272,7 @@ export type Query = {
|
|
|
267
272
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
268
273
|
getAgentsDailySummary: Array<AgentDailySummary>;
|
|
269
274
|
getAttendanceTime?: Maybe<AnalyticsAverage>;
|
|
275
|
+
getClosedCountByChannel: Array<ChannelClosedCount>;
|
|
270
276
|
getFacets?: Maybe<AnalyticsFacets>;
|
|
271
277
|
getFirstResponseTime?: Maybe<AnalyticsAverage>;
|
|
272
278
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
@@ -290,6 +296,10 @@ export type QueryGetAttendanceTimeArgs = {
|
|
|
290
296
|
filters?: InputMaybe<Array<TicketAnalyticsFilterInput>>;
|
|
291
297
|
startDate: Scalars['Date']['input'];
|
|
292
298
|
};
|
|
299
|
+
export type QueryGetClosedCountByChannelArgs = {
|
|
300
|
+
endDate: Scalars['Date']['input'];
|
|
301
|
+
startDate: Scalars['Date']['input'];
|
|
302
|
+
};
|
|
293
303
|
export type QueryGetFacetsArgs = {
|
|
294
304
|
endDate: Scalars['Date']['input'];
|
|
295
305
|
filters?: InputMaybe<Array<TicketAnalyticsFilterInput>>;
|
|
@@ -530,7 +540,14 @@ export type GetAgentsDailySummaryQueryVariables = Exact<{
|
|
|
530
540
|
type?: InputMaybe<AnalyticsType>;
|
|
531
541
|
}>;
|
|
532
542
|
export type GetAgentsDailySummaryQuery = {
|
|
533
|
-
getAgentsDailySummary: Array<Pick<AgentDailySummary, 'agentId' | 'closed' | 'reviewType' | 'reviewAverage' | 'reviewCount'>>;
|
|
543
|
+
getAgentsDailySummary: Array<Pick<AgentDailySummary, 'agentId' | 'closed' | 'reviewType' | 'reviewAverage' | 'reviewCount' | 'firstResponseAvgMs'>>;
|
|
544
|
+
};
|
|
545
|
+
export type GetClosedCountByChannelQueryVariables = Exact<{
|
|
546
|
+
startDate: Scalars['Date']['input'];
|
|
547
|
+
endDate: Scalars['Date']['input'];
|
|
548
|
+
}>;
|
|
549
|
+
export type GetClosedCountByChannelQuery = {
|
|
550
|
+
getClosedCountByChannel: Array<Pick<ChannelClosedCount, 'channelId' | 'count'>>;
|
|
534
551
|
};
|
|
535
552
|
export declare const FlowTaxonomyFragmentDoc = "\n fragment flowTaxonomy on FlowTaxonomy {\n tenant\n instanceId\n flowName\n flowType\n description\n keyTasks\n humanComment\n auditedAt\n isReviewed\n createdAt\n updatedAt\n}\n ";
|
|
536
553
|
export declare const AverageFragmentDoc = "\n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n ";
|
|
@@ -552,7 +569,8 @@ export declare const GetTicketsByTriggerAppDocument = "\n query getTicketsByT
|
|
|
552
569
|
export declare const GetTicketsReviewsDocument = "\n query getTicketsReviews($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!], $type: AnalyticsType!) {\n getTicketsReviews(\n startDate: $startDate\n endDate: $endDate\n filters: $filters\n type: $type\n ) {\n ...average\n }\n}\n \n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n ";
|
|
553
570
|
export declare const GetFacetsDocument = "\n query getFacets($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!]) {\n getFacets(startDate: $startDate, endDate: $endDate, filters: $filters) {\n ...queryFacets\n }\n}\n \n fragment queryFacets on AnalyticsFacets {\n channelId {\n ...facetValue\n }\n customerId {\n ...facetValue\n }\n assigneeId {\n ...facetValue\n }\n status {\n ...facetValue\n }\n tags {\n ...facetValue\n }\n triggerApp {\n ...facetValue\n }\n}\n \n\n fragment facetValue on AnalyticsFacetValue {\n value\n display\n count\n}\n ";
|
|
554
571
|
export declare const GetTicketsReviewsSurveyRatingVolumeDocument = "\n query getTicketsReviewsSurveyRatingVolume($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!], $type: AnalyticsType!) {\n getTicketsReviewsSurveyRatingVolume(\n startDate: $startDate\n endDate: $endDate\n filters: $filters\n type: $type\n ) {\n name\n value\n }\n}\n ";
|
|
555
|
-
export declare const GetAgentsDailySummaryDocument = "\n query getAgentsDailySummary($startDate: Date!, $endDate: Date!, $type: AnalyticsType) {\n getAgentsDailySummary(startDate: $startDate, endDate: $endDate, type: $type) {\n agentId\n closed\n reviewType\n reviewAverage\n reviewCount\n }\n}\n ";
|
|
572
|
+
export declare const GetAgentsDailySummaryDocument = "\n query getAgentsDailySummary($startDate: Date!, $endDate: Date!, $type: AnalyticsType) {\n getAgentsDailySummary(startDate: $startDate, endDate: $endDate, type: $type) {\n agentId\n closed\n reviewType\n reviewAverage\n reviewCount\n firstResponseAvgMs\n }\n}\n ";
|
|
573
|
+
export declare const GetClosedCountByChannelDocument = "\n query getClosedCountByChannel($startDate: Date!, $endDate: Date!) {\n getClosedCountByChannel(startDate: $startDate, endDate: $endDate) {\n channelId\n count\n }\n}\n ";
|
|
556
574
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
557
575
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
558
576
|
listFlowTaxonomy(variables: ListFlowTaxonomyQueryVariables, options?: C): Promise<ListFlowTaxonomyQuery>;
|
|
@@ -569,6 +587,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
569
587
|
getFacets(variables: GetFacetsQueryVariables, options?: C): Promise<GetFacetsQuery>;
|
|
570
588
|
getTicketsReviewsSurveyRatingVolume(variables: GetTicketsReviewsSurveyRatingVolumeQueryVariables, options?: C): Promise<GetTicketsReviewsSurveyRatingVolumeQuery>;
|
|
571
589
|
getAgentsDailySummary(variables: GetAgentsDailySummaryQueryVariables, options?: C): Promise<GetAgentsDailySummaryQuery>;
|
|
590
|
+
getClosedCountByChannel(variables: GetClosedCountByChannelQueryVariables, options?: C): Promise<GetClosedCountByChannelQuery>;
|
|
572
591
|
};
|
|
573
592
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
574
593
|
export declare const serviceName = "@droz/drozanalytics";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.GetAgentsDailySummaryDocument = exports.GetTicketsReviewsSurveyRatingVolumeDocument = exports.GetFacetsDocument = exports.GetTicketsReviewsDocument = exports.GetTicketsByTriggerAppDocument = exports.GetVolumeOfTicketsReviewsDocument = exports.GetVolumeOfTicketsPerHourDocument = exports.GetVolumeOfTicketsPerDayDocument = exports.GetTicketsByStatusDocument = exports.GetAttendanceTimeDocument = exports.GetFirstResponseTimeDocument = exports.MarkFlowReviewedDocument = exports.UpsertFlowTaxonomyDocument = exports.ListFlowTaxonomyDocument = exports.QueryFacetsFragmentDoc = exports.FacetValueFragmentDoc = exports.MultiValueFragmentDoc = exports.ChartFragmentDoc = exports.VolumeFragmentDoc = exports.AverageFragmentDoc = exports.FlowTaxonomyFragmentDoc = exports.Typenames = exports.FlowTaxonomyType = exports.Can = exports.AppInstanceStatus = exports.AnalyticsType = void 0;
|
|
4
|
+
exports.serviceName = exports.GetClosedCountByChannelDocument = exports.GetAgentsDailySummaryDocument = exports.GetTicketsReviewsSurveyRatingVolumeDocument = exports.GetFacetsDocument = exports.GetTicketsReviewsDocument = exports.GetTicketsByTriggerAppDocument = exports.GetVolumeOfTicketsReviewsDocument = exports.GetVolumeOfTicketsPerHourDocument = exports.GetVolumeOfTicketsPerDayDocument = exports.GetTicketsByStatusDocument = exports.GetAttendanceTimeDocument = exports.GetFirstResponseTimeDocument = exports.MarkFlowReviewedDocument = exports.UpsertFlowTaxonomyDocument = exports.ListFlowTaxonomyDocument = exports.QueryFacetsFragmentDoc = exports.FacetValueFragmentDoc = exports.MultiValueFragmentDoc = exports.ChartFragmentDoc = exports.VolumeFragmentDoc = exports.AverageFragmentDoc = exports.FlowTaxonomyFragmentDoc = exports.Typenames = exports.FlowTaxonomyType = exports.Can = exports.AppInstanceStatus = exports.AnalyticsType = void 0;
|
|
5
5
|
exports.getSdk = getSdk;
|
|
6
6
|
var AnalyticsType;
|
|
7
7
|
(function (AnalyticsType) {
|
|
@@ -250,6 +250,15 @@ exports.GetAgentsDailySummaryDocument = `
|
|
|
250
250
|
reviewType
|
|
251
251
|
reviewAverage
|
|
252
252
|
reviewCount
|
|
253
|
+
firstResponseAvgMs
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
`;
|
|
257
|
+
exports.GetClosedCountByChannelDocument = `
|
|
258
|
+
query getClosedCountByChannel($startDate: Date!, $endDate: Date!) {
|
|
259
|
+
getClosedCountByChannel(startDate: $startDate, endDate: $endDate) {
|
|
260
|
+
channelId
|
|
261
|
+
count
|
|
253
262
|
}
|
|
254
263
|
}
|
|
255
264
|
`;
|
|
@@ -296,6 +305,9 @@ function getSdk(requester) {
|
|
|
296
305
|
},
|
|
297
306
|
getAgentsDailySummary(variables, options) {
|
|
298
307
|
return requester(exports.GetAgentsDailySummaryDocument, variables, options);
|
|
308
|
+
},
|
|
309
|
+
getClosedCountByChannel(variables, options) {
|
|
310
|
+
return requester(exports.GetClosedCountByChannelDocument, variables, options);
|
|
299
311
|
}
|
|
300
312
|
};
|
|
301
313
|
}
|
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -278,6 +278,7 @@ export declare enum DrozBotTicketMessageSender {
|
|
|
278
278
|
export type DrozBotWhatsAppBot = {
|
|
279
279
|
channel: Scalars['String']['output'];
|
|
280
280
|
deleted: Scalars['Boolean']['output'];
|
|
281
|
+
drozchatInstanceId?: Maybe<Scalars['ID']['output']>;
|
|
281
282
|
enabled: Scalars['Boolean']['output'];
|
|
282
283
|
id: Scalars['ID']['output'];
|
|
283
284
|
language: Scalars['String']['output'];
|
|
@@ -517,6 +518,7 @@ export type InternalWhatsAppActiveDispatchInput = {
|
|
|
517
518
|
botId: Scalars['ID']['input'];
|
|
518
519
|
customerId?: InputMaybe<Scalars['ID']['input']>;
|
|
519
520
|
externalId: Scalars['ID']['input'];
|
|
521
|
+
instanceId?: InputMaybe<Scalars['ID']['input']>;
|
|
520
522
|
phone: Scalars['String']['input'];
|
|
521
523
|
sessionId: Scalars['ID']['input'];
|
|
522
524
|
templateContent: Scalars['String']['input'];
|
|
@@ -994,7 +996,7 @@ export type EvaluateDrozbotTalkAnalysisOutputMutationVariables = Exact<{
|
|
|
994
996
|
export type EvaluateDrozbotTalkAnalysisOutputMutation = {
|
|
995
997
|
evaluateDrozbotTalkAnalysisOutput: DrozbotTalkAnalysisEvaluationFragment;
|
|
996
998
|
};
|
|
997
|
-
export type DrozBotWhatsAppBotFragment = Pick<DrozBotWhatsAppBot, 'id' | 'name' | 'enabled' | 'deleted' | 'channel' | 'providerChannel' | 'language' | 'phone'>;
|
|
999
|
+
export type DrozBotWhatsAppBotFragment = Pick<DrozBotWhatsAppBot, 'id' | 'name' | 'enabled' | 'deleted' | 'channel' | 'providerChannel' | 'language' | 'phone' | 'drozchatInstanceId'>;
|
|
998
1000
|
export type DrozBotWhatsAppTemplateFragment = Pick<DrozBotWhatsAppTemplate, 'id' | 'templateName' | 'content' | 'contentButton' | 'language' | 'deleted' | 'approved' | 'type'>;
|
|
999
1001
|
export type ListWhatsAppBotsQueryVariables = Exact<{
|
|
1000
1002
|
[key: string]: never;
|
|
@@ -1031,7 +1033,7 @@ export declare const IntentFragmentDoc = "\n fragment intent on Intent {\n l
|
|
|
1031
1033
|
export declare const DrozbotTalkAnalysisInputFragmentDoc = "\n fragment drozbotTalkAnalysisInput on DrozbotAiTalkAnalysisInput {\n talkId\n botId\n processingStatus\n batchJobId\n submittedAt\n errorMessage\n retryCount\n attempts {\n errorMessage\n failedAt\n batchJobId\n batchCustomId\n }\n}\n ";
|
|
1032
1034
|
export declare const DrozbotTalkAnalysisEvaluationFragmentDoc = "\n fragment drozbotTalkAnalysisEvaluation on DrozbotTalkAnalysisEvaluation {\n model\n evaluatedAt\n confidenceScore\n threshold\n passed\n grounded\n coherent\n reasoning\n criticalIssues\n}\n ";
|
|
1033
1035
|
export declare const DrozbotTalkAnalysisFragmentDoc = "\n fragment drozbotTalkAnalysis on DrozbotTalkAnalysis {\n talkId\n botId\n status\n createdDate\n modelUsed\n analysis {\n conversation {\n aggregates {\n csatFinal\n csatStatus\n initialSentiment\n finalSentiment\n topIntents\n }\n serviceQuality {\n status\n csatFinal\n reason\n breakdown {\n clarityPrecision\n cesScore\n cesLabel\n csatScale\n abandonmentType\n notEvaluable\n }\n }\n sentiment {\n initialSentiment\n averageSentiment\n finalSentiment\n observation\n }\n intent {\n dominantIntent\n globalConfidence\n justification\n secondaryIntents\n }\n }\n }\n evaluation {\n ...drozbotTalkAnalysisEvaluation\n }\n}\n ";
|
|
1034
|
-
export declare const DrozBotWhatsAppBotFragmentDoc = "\n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n}\n ";
|
|
1036
|
+
export declare const DrozBotWhatsAppBotFragmentDoc = "\n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n drozchatInstanceId\n}\n ";
|
|
1035
1037
|
export declare const DrozBotWhatsAppTemplateFragmentDoc = "\n fragment drozBotWhatsAppTemplate on DrozBotWhatsAppTemplate {\n id\n templateName\n content\n contentButton\n language\n deleted\n approved\n type\n}\n ";
|
|
1036
1038
|
export declare const RunDrozbotAiActionDocument = "\n mutation runDrozbotAiAction($input: RunAiActionInput!) {\n runDrozbotAiAction(input: $input) {\n actions\n setVariables {\n ...aiActionVariableValue\n }\n missingVariables\n message_to_user\n context\n }\n}\n \n fragment aiActionVariableValue on AiActionVariableValue {\n key\n value\n}\n ";
|
|
1037
1039
|
export declare const RunDrozbotAiActionHumanizedAnswerDocument = "\n mutation runDrozbotAiActionHumanizedAnswer($input: RunAiActionHumanizedAnswerInput!) {\n runDrozbotAiActionHumanizedAnswer(input: $input) {\n actions\n message_to_user\n }\n}\n ";
|
|
@@ -1063,8 +1065,8 @@ export declare const DrozbotTalkConversationDocument = "\n query drozbotTalkC
|
|
|
1063
1065
|
export declare const GetDrozbotTalkAnalysisEmbedUrlDocument = "\n query getDrozbotTalkAnalysisEmbedUrl {\n getDrozbotTalkAnalysisEmbedUrl\n}\n ";
|
|
1064
1066
|
export declare const AnalyzeDrozbotTalkDocument = "\n mutation analyzeDrozbotTalk($input: AnalyzeDrozbotTalkInput!) {\n analyzeDrozbotTalk(input: $input) {\n ...drozbotTalkAnalysis\n }\n}\n \n fragment drozbotTalkAnalysis on DrozbotTalkAnalysis {\n talkId\n botId\n status\n createdDate\n modelUsed\n analysis {\n conversation {\n aggregates {\n csatFinal\n csatStatus\n initialSentiment\n finalSentiment\n topIntents\n }\n serviceQuality {\n status\n csatFinal\n reason\n breakdown {\n clarityPrecision\n cesScore\n cesLabel\n csatScale\n abandonmentType\n notEvaluable\n }\n }\n sentiment {\n initialSentiment\n averageSentiment\n finalSentiment\n observation\n }\n intent {\n dominantIntent\n globalConfidence\n justification\n secondaryIntents\n }\n }\n }\n evaluation {\n ...drozbotTalkAnalysisEvaluation\n }\n}\n \n\n fragment drozbotTalkAnalysisEvaluation on DrozbotTalkAnalysisEvaluation {\n model\n evaluatedAt\n confidenceScore\n threshold\n passed\n grounded\n coherent\n reasoning\n criticalIssues\n}\n ";
|
|
1065
1067
|
export declare const EvaluateDrozbotTalkAnalysisOutputDocument = "\n mutation evaluateDrozbotTalkAnalysisOutput($input: EvaluateDrozbotTalkAnalysisOutputInput!) {\n evaluateDrozbotTalkAnalysisOutput(input: $input) {\n ...drozbotTalkAnalysisEvaluation\n }\n}\n \n fragment drozbotTalkAnalysisEvaluation on DrozbotTalkAnalysisEvaluation {\n model\n evaluatedAt\n confidenceScore\n threshold\n passed\n grounded\n coherent\n reasoning\n criticalIssues\n}\n ";
|
|
1066
|
-
export declare const ListWhatsAppBotsDocument = "\n query listWhatsAppBots {\n listWhatsAppBots {\n ...drozBotWhatsAppBot\n }\n}\n \n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n}\n ";
|
|
1067
|
-
export declare const GetWhatsAppBotDetailsDocument = "\n query getWhatsAppBotDetails($id: ID!) {\n getWhatsAppBotDetails(id: $id) {\n ...drozBotWhatsAppBot\n }\n}\n \n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n}\n ";
|
|
1068
|
+
export declare const ListWhatsAppBotsDocument = "\n query listWhatsAppBots {\n listWhatsAppBots {\n ...drozBotWhatsAppBot\n }\n}\n \n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n drozchatInstanceId\n}\n ";
|
|
1069
|
+
export declare const GetWhatsAppBotDetailsDocument = "\n query getWhatsAppBotDetails($id: ID!) {\n getWhatsAppBotDetails(id: $id) {\n ...drozBotWhatsAppBot\n }\n}\n \n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n drozchatInstanceId\n}\n ";
|
|
1068
1070
|
export declare const ListWhatsAppBotTemplatesDocument = "\n query listWhatsAppBotTemplates($id: ID!) {\n listWhatsAppBotTemplates(id: $id) {\n ...drozBotWhatsAppTemplate\n }\n}\n \n fragment drozBotWhatsAppTemplate on DrozBotWhatsAppTemplate {\n id\n templateName\n content\n contentButton\n language\n deleted\n approved\n type\n}\n ";
|
|
1069
1071
|
export declare const RegisterRootCredentialDocument = "\n mutation registerRootCredential($input: DrozBotRootCredentialInput!) {\n registerRootCredential(input: $input)\n}\n ";
|
|
1070
1072
|
export declare const InternalWhatsAppActiveDispatchDocument = "\n mutation internalWhatsAppActiveDispatch($input: InternalWhatsAppActiveDispatchInput!) {\n internalWhatsAppActiveDispatch(input: $input)\n}\n ";
|
package/src/sdks/drozbot.js
CHANGED
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -457,28 +457,47 @@ export type LiveAgentLoad = {
|
|
|
457
457
|
agentId: Scalars['ID']['output'];
|
|
458
458
|
capacity: Scalars['Int']['output'];
|
|
459
459
|
closedToday: Scalars['Int']['output'];
|
|
460
|
+
firstResponseAvgMs?: Maybe<Scalars['Float']['output']>;
|
|
460
461
|
inProgress: Scalars['Int']['output'];
|
|
462
|
+
queues: Array<LiveAgentQueue>;
|
|
461
463
|
satisfaction?: Maybe<AgentDailySatisfaction>;
|
|
462
464
|
status: LiveAgentStatus;
|
|
463
465
|
statusSince?: Maybe<Scalars['DateTime']['output']>;
|
|
464
466
|
};
|
|
467
|
+
export type LiveAgentQueue = {
|
|
468
|
+
id: Scalars['ID']['output'];
|
|
469
|
+
name: Scalars['String']['output'];
|
|
470
|
+
};
|
|
465
471
|
export declare enum LiveAgentStatus {
|
|
466
472
|
Off = "OFF",
|
|
467
473
|
On = "ON"
|
|
468
474
|
}
|
|
469
475
|
export type LiveQueueSummary = {
|
|
476
|
+
avgWaitingMs?: Maybe<Scalars['Float']['output']>;
|
|
470
477
|
channel?: Maybe<DrozChatChannel>;
|
|
471
478
|
channelId: Scalars['ID']['output'];
|
|
479
|
+
closedToday: Scalars['Int']['output'];
|
|
472
480
|
oldestWaitingMs?: Maybe<Scalars['Float']['output']>;
|
|
473
481
|
oldestWaitingSince?: Maybe<Scalars['DateTime']['output']>;
|
|
482
|
+
onlineAgents: Scalars['Int']['output'];
|
|
483
|
+
unassigned: Scalars['Int']['output'];
|
|
474
484
|
waiting: Scalars['Int']['output'];
|
|
475
485
|
};
|
|
476
486
|
export type LiveSummary = {
|
|
477
487
|
agents: Array<LiveAgentLoad>;
|
|
488
|
+
agentsOffline: Scalars['Int']['output'];
|
|
489
|
+
agentsOnline: Scalars['Int']['output'];
|
|
490
|
+
avgWaitingMs?: Maybe<Scalars['Float']['output']>;
|
|
491
|
+
closedTodayTotal: Scalars['Int']['output'];
|
|
478
492
|
generatedAt: Scalars['DateTime']['output'];
|
|
493
|
+
overallSatisfaction?: Maybe<AgentDailySatisfaction>;
|
|
479
494
|
queues: Array<LiveQueueSummary>;
|
|
495
|
+
queuesCount: Scalars['Int']['output'];
|
|
480
496
|
surveyConfigured: Scalars['Boolean']['output'];
|
|
481
497
|
surveyType?: Maybe<SurveyTypes>;
|
|
498
|
+
ticketsInProgressTotal: Scalars['Int']['output'];
|
|
499
|
+
ticketsWaitingTotal: Scalars['Int']['output'];
|
|
500
|
+
unassignedTotal: Scalars['Int']['output'];
|
|
482
501
|
};
|
|
483
502
|
export type MarkTicketMessagesAsReadInput = {
|
|
484
503
|
channelId: Scalars['ID']['input'];
|
|
@@ -1607,16 +1626,18 @@ export type RemoveDrozChatAgentGroupMutationVariables = Exact<{
|
|
|
1607
1626
|
export type RemoveDrozChatAgentGroupMutation = {
|
|
1608
1627
|
removeDrozChatAgentGroup?: Maybe<DrozChatAgentGroupFragment>;
|
|
1609
1628
|
};
|
|
1610
|
-
export type LiveQueueSummaryFragment = (Pick<LiveQueueSummary, 'channelId' | 'waiting' | 'oldestWaitingSince' | 'oldestWaitingMs'> & {
|
|
1629
|
+
export type LiveQueueSummaryFragment = (Pick<LiveQueueSummary, 'channelId' | 'waiting' | 'oldestWaitingSince' | 'oldestWaitingMs' | 'unassigned' | 'avgWaitingMs' | 'closedToday' | 'onlineAgents'> & {
|
|
1611
1630
|
channel?: Maybe<DrozChatChannelFragment>;
|
|
1612
1631
|
});
|
|
1613
|
-
export type LiveAgentLoadFragment = (Pick<LiveAgentLoad, 'agentId' | 'status' | 'statusSince' | 'inProgress' | 'capacity' | 'closedToday'> & {
|
|
1632
|
+
export type LiveAgentLoadFragment = (Pick<LiveAgentLoad, 'agentId' | 'status' | 'statusSince' | 'inProgress' | 'capacity' | 'closedToday' | 'firstResponseAvgMs'> & {
|
|
1614
1633
|
agent?: Maybe<DrozChatAgentFragment>;
|
|
1615
1634
|
satisfaction?: Maybe<Pick<AgentDailySatisfaction, 'type' | 'average' | 'count'>>;
|
|
1635
|
+
queues: Array<Pick<LiveAgentQueue, 'id' | 'name'>>;
|
|
1616
1636
|
});
|
|
1617
|
-
export type LiveSummaryFragment = (Pick<LiveSummary, 'generatedAt' | 'surveyType' | 'surveyConfigured'> & {
|
|
1637
|
+
export type LiveSummaryFragment = (Pick<LiveSummary, 'generatedAt' | 'surveyType' | 'surveyConfigured' | 'agentsOnline' | 'agentsOffline' | 'ticketsInProgressTotal' | 'queuesCount' | 'ticketsWaitingTotal' | 'unassignedTotal' | 'avgWaitingMs' | 'closedTodayTotal'> & {
|
|
1618
1638
|
queues: Array<LiveQueueSummaryFragment>;
|
|
1619
1639
|
agents: Array<LiveAgentLoadFragment>;
|
|
1640
|
+
overallSatisfaction?: Maybe<Pick<AgentDailySatisfaction, 'type' | 'average' | 'count'>>;
|
|
1620
1641
|
});
|
|
1621
1642
|
export type LiveSummaryQueryVariables = Exact<{
|
|
1622
1643
|
[key: string]: never;
|
|
@@ -2136,9 +2157,9 @@ export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on C
|
|
|
2136
2157
|
export declare const GlobalConfigurationFragmentDoc = "\n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
2137
2158
|
export declare const DrozChatAgentGroupFragmentDoc = "\n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
2138
2159
|
export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n maxSimultaneousAttendances\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
2139
|
-
export declare const LiveQueueSummaryFragmentDoc = "\n fragment liveQueueSummary on LiveQueueSummary {\n channelId\n channel {\n ...drozChatChannel\n }\n waiting\n oldestWaitingSince\n oldestWaitingMs\n}\n ";
|
|
2140
|
-
export declare const LiveAgentLoadFragmentDoc = "\n fragment liveAgentLoad on LiveAgentLoad {\n agentId\n agent {\n ...drozChatAgent\n }\n status\n statusSince\n inProgress\n capacity\n closedToday\n satisfaction {\n type\n average\n count\n }\n}\n ";
|
|
2141
|
-
export declare const LiveSummaryFragmentDoc = "\n fragment liveSummary on LiveSummary {\n generatedAt\n queues {\n ...liveQueueSummary\n }\n agents {\n ...liveAgentLoad\n }\n surveyType\n surveyConfigured\n}\n ";
|
|
2160
|
+
export declare const LiveQueueSummaryFragmentDoc = "\n fragment liveQueueSummary on LiveQueueSummary {\n channelId\n channel {\n ...drozChatChannel\n }\n waiting\n oldestWaitingSince\n oldestWaitingMs\n unassigned\n avgWaitingMs\n closedToday\n onlineAgents\n}\n ";
|
|
2161
|
+
export declare const LiveAgentLoadFragmentDoc = "\n fragment liveAgentLoad on LiveAgentLoad {\n agentId\n agent {\n ...drozChatAgent\n }\n status\n statusSince\n inProgress\n capacity\n closedToday\n satisfaction {\n type\n average\n count\n }\n firstResponseAvgMs\n queues {\n id\n name\n }\n}\n ";
|
|
2162
|
+
export declare const LiveSummaryFragmentDoc = "\n fragment liveSummary on LiveSummary {\n generatedAt\n queues {\n ...liveQueueSummary\n }\n agents {\n ...liveAgentLoad\n }\n surveyType\n surveyConfigured\n agentsOnline\n agentsOffline\n ticketsInProgressTotal\n overallSatisfaction {\n type\n average\n count\n }\n queuesCount\n ticketsWaitingTotal\n unassignedTotal\n avgWaitingMs\n closedTodayTotal\n}\n ";
|
|
2142
2163
|
export declare const SurveyFragmentDoc = "\n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
2143
2164
|
export declare const TicketPresenceFragmentDoc = "\n fragment ticketPresence on TicketPresence {\n ticketId\n agents {\n agentId\n agentName\n }\n}\n ";
|
|
2144
2165
|
export declare const QuickAnswerFragmentDoc = "\n fragment quickAnswer on QuickAnswer {\n id\n name\n message\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
@@ -2185,7 +2206,7 @@ export declare const DisableDrozChatAgentGroupDocument = "\n mutation disable
|
|
|
2185
2206
|
export declare const EnableDrozChatAgentGroupDocument = "\n mutation enableDrozChatAgentGroup($input: EnableDrozChatAgentGroupInput!) {\n enableDrozChatAgentGroup(input: $input) {\n ...drozChatAgentGroup\n }\n}\n \n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
2186
2207
|
export declare const AddDrozChatAgentGroupDocument = "\n mutation addDrozChatAgentGroup($input: AddDrozChatAgentGroupInput!) {\n addDrozChatAgentGroup(input: $input) {\n ...drozChatAgentGroup\n }\n}\n \n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
2187
2208
|
export declare const RemoveDrozChatAgentGroupDocument = "\n mutation removeDrozChatAgentGroup($input: RemoveDrozChatAgentGroupInput!) {\n removeDrozChatAgentGroup(input: $input) {\n ...drozChatAgentGroup\n }\n}\n \n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
2188
|
-
export declare const LiveSummaryDocument = "\n query liveSummary {\n liveSummary {\n ...liveSummary\n }\n}\n \n fragment liveSummary on LiveSummary {\n generatedAt\n queues {\n ...liveQueueSummary\n }\n agents {\n ...liveAgentLoad\n }\n surveyType\n surveyConfigured\n}\n \n\n fragment liveQueueSummary on LiveQueueSummary {\n channelId\n channel {\n ...drozChatChannel\n }\n waiting\n oldestWaitingSince\n oldestWaitingMs\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n maxSimultaneousAttendances\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment liveAgentLoad on LiveAgentLoad {\n agentId\n agent {\n ...drozChatAgent\n }\n status\n statusSince\n inProgress\n capacity\n closedToday\n satisfaction {\n type\n average\n count\n }\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
2209
|
+
export declare const LiveSummaryDocument = "\n query liveSummary {\n liveSummary {\n ...liveSummary\n }\n}\n \n fragment liveSummary on LiveSummary {\n generatedAt\n queues {\n ...liveQueueSummary\n }\n agents {\n ...liveAgentLoad\n }\n surveyType\n surveyConfigured\n agentsOnline\n agentsOffline\n ticketsInProgressTotal\n overallSatisfaction {\n type\n average\n count\n }\n queuesCount\n ticketsWaitingTotal\n unassignedTotal\n avgWaitingMs\n closedTodayTotal\n}\n \n\n fragment liveQueueSummary on LiveQueueSummary {\n channelId\n channel {\n ...drozChatChannel\n }\n waiting\n oldestWaitingSince\n oldestWaitingMs\n unassigned\n avgWaitingMs\n closedToday\n onlineAgents\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n maxSimultaneousAttendances\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment liveAgentLoad on LiveAgentLoad {\n agentId\n agent {\n ...drozChatAgent\n }\n status\n statusSince\n inProgress\n capacity\n closedToday\n satisfaction {\n type\n average\n count\n }\n firstResponseAvgMs\n queues {\n id\n name\n }\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
2189
2210
|
export declare const GetSurveyDocument = "\n query getSurvey {\n getSurvey {\n ...survey\n }\n}\n \n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
2190
2211
|
export declare const UpsertSurveyDocument = "\n mutation upsertSurvey($input: UpsertSurveyInput!) {\n upsertSurvey(input: $input) {\n ...survey\n }\n}\n \n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
2191
2212
|
export declare const DisableSurveyDocument = "\n mutation disableSurvey {\n disableSurvey {\n ...survey\n }\n}\n \n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -234,6 +234,10 @@ exports.LiveQueueSummaryFragmentDoc = `
|
|
|
234
234
|
waiting
|
|
235
235
|
oldestWaitingSince
|
|
236
236
|
oldestWaitingMs
|
|
237
|
+
unassigned
|
|
238
|
+
avgWaitingMs
|
|
239
|
+
closedToday
|
|
240
|
+
onlineAgents
|
|
237
241
|
}
|
|
238
242
|
`;
|
|
239
243
|
exports.LiveAgentLoadFragmentDoc = `
|
|
@@ -252,6 +256,11 @@ exports.LiveAgentLoadFragmentDoc = `
|
|
|
252
256
|
average
|
|
253
257
|
count
|
|
254
258
|
}
|
|
259
|
+
firstResponseAvgMs
|
|
260
|
+
queues {
|
|
261
|
+
id
|
|
262
|
+
name
|
|
263
|
+
}
|
|
255
264
|
}
|
|
256
265
|
`;
|
|
257
266
|
exports.LiveSummaryFragmentDoc = `
|
|
@@ -265,6 +274,19 @@ exports.LiveSummaryFragmentDoc = `
|
|
|
265
274
|
}
|
|
266
275
|
surveyType
|
|
267
276
|
surveyConfigured
|
|
277
|
+
agentsOnline
|
|
278
|
+
agentsOffline
|
|
279
|
+
ticketsInProgressTotal
|
|
280
|
+
overallSatisfaction {
|
|
281
|
+
type
|
|
282
|
+
average
|
|
283
|
+
count
|
|
284
|
+
}
|
|
285
|
+
queuesCount
|
|
286
|
+
ticketsWaitingTotal
|
|
287
|
+
unassignedTotal
|
|
288
|
+
avgWaitingMs
|
|
289
|
+
closedTodayTotal
|
|
268
290
|
}
|
|
269
291
|
`;
|
|
270
292
|
exports.SurveyFragmentDoc = `
|