@droz-js/sdk 0.15.7 → 0.16.1
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 +10 -0
- package/src/email.d.ts +6 -0
- package/src/sdks/callwe.d.ts +60 -0
- package/src/sdks/callwe.js +13 -1
- package/src/sdks/drozanalytics.d.ts +70 -0
- package/src/sdks/drozanalytics.js +56 -1
- package/src/sdks/drozchat.d.ts +78 -31
- package/src/sdks/drozchat.js +36 -3
- package/src/sdks/email.d.ts +33 -7
- package/src/sdks/email.js +23 -1
- package/src/sdks/nucleus.d.ts +26 -20
- package/src/sdks/nucleus.js +2 -0
package/package.json
CHANGED
package/src/drozanalytics.d.ts
CHANGED
|
@@ -6,6 +6,16 @@ declare const Drozanalytics_base: new (options?: import("./client/http").HttpCli
|
|
|
6
6
|
withCustomHeaders(headers: () => Record<string, string>): /*elided*/ any;
|
|
7
7
|
withHttpRequestExecutor(httpRequestExecutor: import("./client/http").HttpRequestExecutor): /*elided*/ any;
|
|
8
8
|
} & {
|
|
9
|
+
listFlowTaxonomy(variables: import("./sdks/drozanalytics").Exact<{
|
|
10
|
+
instanceId: import("./sdks/drozanalytics").Scalars["ID"]["input"];
|
|
11
|
+
}>, options?: unknown): Promise<import("./sdks/drozanalytics").ListFlowTaxonomyQuery>;
|
|
12
|
+
upsertFlowTaxonomy(variables: import("./sdks/drozanalytics").Exact<{
|
|
13
|
+
input: import("./sdks/drozanalytics").FlowTaxonomyInput;
|
|
14
|
+
}>, options?: unknown): Promise<import("./sdks/drozanalytics").UpsertFlowTaxonomyMutation>;
|
|
15
|
+
markFlowReviewed(variables: import("./sdks/drozanalytics").Exact<{
|
|
16
|
+
instanceId: import("./sdks/drozanalytics").Scalars["ID"]["input"];
|
|
17
|
+
flowName: import("./sdks/drozanalytics").Scalars["String"]["input"];
|
|
18
|
+
}>, options?: unknown): Promise<import("./sdks/drozanalytics").MarkFlowReviewedMutation>;
|
|
9
19
|
getFirstResponseTime(variables: import("./sdks/drozanalytics").Exact<{
|
|
10
20
|
startDate: import("./sdks/drozanalytics").Scalars["Date"]["input"];
|
|
11
21
|
endDate: import("./sdks/drozanalytics").Scalars["Date"]["input"];
|
package/src/email.d.ts
CHANGED
|
@@ -21,6 +21,12 @@ declare const Email_base: new (options?: import("./client/http").HttpClientOptio
|
|
|
21
21
|
setEmailInstanceSignature(variables: import("./sdks/email").Exact<{
|
|
22
22
|
input: import("./sdks/email").SetEmailInstanceSignatureInput;
|
|
23
23
|
}>, options?: unknown): Promise<import("./sdks/email").SetEmailInstanceSignatureMutation>;
|
|
24
|
+
removeEmailInstanceSignature(variables: import("./sdks/email").Exact<{
|
|
25
|
+
input: import("./sdks/email").RemoveEmailInstanceSignatureInput;
|
|
26
|
+
}>, options?: unknown): Promise<import("./sdks/email").RemoveEmailInstanceSignatureMutation>;
|
|
27
|
+
enableEmailInstanceSignature(variables: import("./sdks/email").Exact<{
|
|
28
|
+
input: import("./sdks/email").EnableEmailInstanceSignatureInput;
|
|
29
|
+
}>, options?: unknown): Promise<import("./sdks/email").EnableEmailInstanceSignatureMutation>;
|
|
24
30
|
removeEmailInstance(variables: import("./sdks/email").Exact<{
|
|
25
31
|
input: import("./sdks/email").RemoveEmailInstanceInput;
|
|
26
32
|
}>, options?: unknown): Promise<import("./sdks/email").RemoveEmailInstanceMutation>;
|
package/src/sdks/callwe.d.ts
CHANGED
|
@@ -134,18 +134,33 @@ export declare enum AppInstanceStatus {
|
|
|
134
134
|
}
|
|
135
135
|
export type CallweCall = {
|
|
136
136
|
agentId?: Maybe<Scalars['String']['output']>;
|
|
137
|
+
agentLogin?: Maybe<Scalars['String']['output']>;
|
|
138
|
+
agentName?: Maybe<Scalars['String']['output']>;
|
|
139
|
+
callType?: Maybe<Scalars['String']['output']>;
|
|
140
|
+
callerNumber?: Maybe<Scalars['String']['output']>;
|
|
137
141
|
channel?: Maybe<Scalars['String']['output']>;
|
|
138
142
|
createdAt: Scalars['DateTime']['output'];
|
|
139
143
|
csatScore?: Maybe<Scalars['Float']['output']>;
|
|
144
|
+
didNumber?: Maybe<Scalars['String']['output']>;
|
|
145
|
+
endByOriginal?: Maybe<Scalars['String']['output']>;
|
|
140
146
|
endedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
147
|
+
exitReason?: Maybe<Scalars['String']['output']>;
|
|
148
|
+
exitTransferDestination?: Maybe<Scalars['String']['output']>;
|
|
141
149
|
firstResponseSecs?: Maybe<Scalars['Int']['output']>;
|
|
150
|
+
hasRecording?: Maybe<Scalars['Boolean']['output']>;
|
|
142
151
|
id: Scalars['ID']['output'];
|
|
143
152
|
npsScore?: Maybe<Scalars['Int']['output']>;
|
|
144
153
|
phone?: Maybe<Scalars['String']['output']>;
|
|
154
|
+
queueId?: Maybe<Scalars['String']['output']>;
|
|
155
|
+
queueName?: Maybe<Scalars['String']['output']>;
|
|
145
156
|
resolutionSecs?: Maybe<Scalars['Int']['output']>;
|
|
157
|
+
sessionUuid?: Maybe<Scalars['String']['output']>;
|
|
146
158
|
startedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
147
159
|
status: Scalars['String']['output'];
|
|
160
|
+
systemHangupReason?: Maybe<Scalars['String']['output']>;
|
|
161
|
+
timeConnect?: Maybe<Scalars['DateTime']['output']>;
|
|
148
162
|
updatedAt: Scalars['DateTime']['output'];
|
|
163
|
+
whoHangup?: Maybe<Scalars['String']['output']>;
|
|
149
164
|
};
|
|
150
165
|
export type CallweInstance = {
|
|
151
166
|
baseUrl: Scalars['String']['output'];
|
|
@@ -155,6 +170,29 @@ export type CallweInstance = {
|
|
|
155
170
|
name: Scalars['String']['output'];
|
|
156
171
|
updatedAt: Scalars['DateTime']['output'];
|
|
157
172
|
};
|
|
173
|
+
export type CallweUraStep = {
|
|
174
|
+
callFlowId?: Maybe<Scalars['String']['output']>;
|
|
175
|
+
callFlowName?: Maybe<Scalars['String']['output']>;
|
|
176
|
+
callFlowVersion?: Maybe<Scalars['String']['output']>;
|
|
177
|
+
callerNumber?: Maybe<Scalars['String']['output']>;
|
|
178
|
+
createdAt: Scalars['DateTime']['output'];
|
|
179
|
+
didNumber?: Maybe<Scalars['String']['output']>;
|
|
180
|
+
durationSecs?: Maybe<Scalars['Int']['output']>;
|
|
181
|
+
endTime?: Maybe<Scalars['DateTime']['output']>;
|
|
182
|
+
exitReason?: Maybe<Scalars['String']['output']>;
|
|
183
|
+
exitTransferDestination?: Maybe<Scalars['String']['output']>;
|
|
184
|
+
id: Scalars['ID']['output'];
|
|
185
|
+
instanceId: Scalars['String']['output'];
|
|
186
|
+
position: Scalars['Int']['output'];
|
|
187
|
+
projectId?: Maybe<Scalars['String']['output']>;
|
|
188
|
+
projectName?: Maybe<Scalars['String']['output']>;
|
|
189
|
+
sessionUuid: Scalars['String']['output'];
|
|
190
|
+
startTime?: Maybe<Scalars['DateTime']['output']>;
|
|
191
|
+
systemHangupReason?: Maybe<Scalars['String']['output']>;
|
|
192
|
+
taskName?: Maybe<Scalars['String']['output']>;
|
|
193
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
194
|
+
whoHangup?: Maybe<Scalars['String']['output']>;
|
|
195
|
+
};
|
|
158
196
|
export declare enum Can {
|
|
159
197
|
Manage = "manage",
|
|
160
198
|
Read = "read",
|
|
@@ -178,6 +216,7 @@ export type Mutation = {
|
|
|
178
216
|
createCallweInstance: CallweInstance;
|
|
179
217
|
removeCallweInstance: CallweInstance;
|
|
180
218
|
syncCallweCalls: SyncCallweCallsResult;
|
|
219
|
+
syncCallweUraSteps: SyncCallweUraStepsResult;
|
|
181
220
|
updateCallweInstance: CallweInstance;
|
|
182
221
|
version?: Maybe<Scalars['String']['output']>;
|
|
183
222
|
};
|
|
@@ -190,6 +229,9 @@ export type MutationRemoveCallweInstanceArgs = {
|
|
|
190
229
|
export type MutationSyncCallweCallsArgs = {
|
|
191
230
|
input: SyncCallweCallsInput;
|
|
192
231
|
};
|
|
232
|
+
export type MutationSyncCallweUraStepsArgs = {
|
|
233
|
+
input: SyncCallweUraStepsInput;
|
|
234
|
+
};
|
|
193
235
|
export type MutationUpdateCallweInstanceArgs = {
|
|
194
236
|
input: UpdateCallweInstanceInput;
|
|
195
237
|
};
|
|
@@ -283,11 +325,21 @@ export type SyncCallweCallsInput = {
|
|
|
283
325
|
export type SyncCallweCallsResult = {
|
|
284
326
|
synced: Scalars['Int']['output'];
|
|
285
327
|
};
|
|
328
|
+
export type SyncCallweUraStepsInput = {
|
|
329
|
+
endDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
330
|
+
instanceId?: InputMaybe<Scalars['ID']['input']>;
|
|
331
|
+
startDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
332
|
+
};
|
|
333
|
+
export type SyncCallweUraStepsResult = {
|
|
334
|
+
synced: Scalars['Int']['output'];
|
|
335
|
+
};
|
|
286
336
|
export declare enum Typenames {
|
|
287
337
|
Any = "Any",
|
|
288
338
|
CallweCall = "CallweCall",
|
|
289
339
|
CallweInstance = "CallweInstance",
|
|
290
340
|
CallweSyncCursor = "CallweSyncCursor",
|
|
341
|
+
CallweUraStep = "CallweUraStep",
|
|
342
|
+
CallweUraSyncCursor = "CallweUraSyncCursor",
|
|
291
343
|
GraphqlConnections = "GraphqlConnections",
|
|
292
344
|
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
293
345
|
}
|
|
@@ -303,10 +355,18 @@ export type SyncCallweCallsMutationVariables = Exact<{
|
|
|
303
355
|
export type SyncCallweCallsMutation = {
|
|
304
356
|
syncCallweCalls: Pick<SyncCallweCallsResult, 'synced'>;
|
|
305
357
|
};
|
|
358
|
+
export type SyncCallweUraStepsMutationVariables = Exact<{
|
|
359
|
+
input: SyncCallweUraStepsInput;
|
|
360
|
+
}>;
|
|
361
|
+
export type SyncCallweUraStepsMutation = {
|
|
362
|
+
syncCallweUraSteps: Pick<SyncCallweUraStepsResult, 'synced'>;
|
|
363
|
+
};
|
|
306
364
|
export declare const SyncCallweCallsDocument = "\n mutation syncCallweCalls($input: SyncCallweCallsInput!) {\n syncCallweCalls(input: $input) {\n synced\n }\n}\n ";
|
|
365
|
+
export declare const SyncCallweUraStepsDocument = "\n mutation syncCallweUraSteps($input: SyncCallweUraStepsInput!) {\n syncCallweUraSteps(input: $input) {\n synced\n }\n}\n ";
|
|
307
366
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
308
367
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
309
368
|
syncCallweCalls(variables: SyncCallweCallsMutationVariables, options?: C): Promise<SyncCallweCallsMutation>;
|
|
369
|
+
syncCallweUraSteps(variables: SyncCallweUraStepsMutationVariables, options?: C): Promise<SyncCallweUraStepsMutation>;
|
|
310
370
|
};
|
|
311
371
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
312
372
|
export declare const serviceName = "@droz/callwe";
|
package/src/sdks/callwe.js
CHANGED
|
@@ -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.SyncCallweCallsDocument = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.SyncCallweUraStepsDocument = exports.SyncCallweCallsDocument = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
exports.getSdk = getSdk;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
@@ -22,6 +22,8 @@ var Typenames;
|
|
|
22
22
|
Typenames["CallweCall"] = "CallweCall";
|
|
23
23
|
Typenames["CallweInstance"] = "CallweInstance";
|
|
24
24
|
Typenames["CallweSyncCursor"] = "CallweSyncCursor";
|
|
25
|
+
Typenames["CallweUraStep"] = "CallweUraStep";
|
|
26
|
+
Typenames["CallweUraSyncCursor"] = "CallweUraSyncCursor";
|
|
25
27
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
26
28
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
27
29
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
@@ -32,10 +34,20 @@ exports.SyncCallweCallsDocument = `
|
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
`;
|
|
37
|
+
exports.SyncCallweUraStepsDocument = `
|
|
38
|
+
mutation syncCallweUraSteps($input: SyncCallweUraStepsInput!) {
|
|
39
|
+
syncCallweUraSteps(input: $input) {
|
|
40
|
+
synced
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
35
44
|
function getSdk(requester) {
|
|
36
45
|
return {
|
|
37
46
|
syncCallweCalls(variables, options) {
|
|
38
47
|
return requester(exports.SyncCallweCallsDocument, variables, options);
|
|
48
|
+
},
|
|
49
|
+
syncCallweUraSteps(variables, options) {
|
|
50
|
+
return requester(exports.SyncCallweUraStepsDocument, variables, options);
|
|
39
51
|
}
|
|
40
52
|
};
|
|
41
53
|
}
|
|
@@ -176,6 +176,36 @@ export declare enum Can {
|
|
|
176
176
|
Remove = "remove",
|
|
177
177
|
Write = "write"
|
|
178
178
|
}
|
|
179
|
+
export type FlowTaxonomy = {
|
|
180
|
+
auditedAt?: Maybe<Scalars['Date']['output']>;
|
|
181
|
+
createdAt: Scalars['DateTime']['output'];
|
|
182
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
183
|
+
flowName: Scalars['String']['output'];
|
|
184
|
+
flowType: Scalars['String']['output'];
|
|
185
|
+
humanComment?: Maybe<Scalars['String']['output']>;
|
|
186
|
+
instanceId: Scalars['ID']['output'];
|
|
187
|
+
isReviewed: Scalars['Boolean']['output'];
|
|
188
|
+
keyTasks?: Maybe<Scalars['String']['output']>;
|
|
189
|
+
tenant: Scalars['ID']['output'];
|
|
190
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
191
|
+
};
|
|
192
|
+
export type FlowTaxonomyInput = {
|
|
193
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
194
|
+
flowName: Scalars['String']['input'];
|
|
195
|
+
flowType: Scalars['String']['input'];
|
|
196
|
+
humanComment?: InputMaybe<Scalars['String']['input']>;
|
|
197
|
+
instanceId: Scalars['ID']['input'];
|
|
198
|
+
keyTasks?: InputMaybe<Scalars['String']['input']>;
|
|
199
|
+
};
|
|
200
|
+
export declare enum FlowTaxonomyType {
|
|
201
|
+
Informativo = "INFORMATIVO",
|
|
202
|
+
InformativoHumano = "INFORMATIVO_HUMANO",
|
|
203
|
+
Menu = "MENU",
|
|
204
|
+
MenuHumano = "MENU_HUMANO",
|
|
205
|
+
Resolutivo = "RESOLUTIVO",
|
|
206
|
+
Triagem = "TRIAGEM",
|
|
207
|
+
Unknown = "UNKNOWN"
|
|
208
|
+
}
|
|
179
209
|
export type Grouped = {
|
|
180
210
|
name: Scalars['String']['output'];
|
|
181
211
|
value: Scalars['Float']['output'];
|
|
@@ -193,8 +223,17 @@ export type MultiGrouped = {
|
|
|
193
223
|
values: Array<Grouped>;
|
|
194
224
|
};
|
|
195
225
|
export type Mutation = {
|
|
226
|
+
markFlowReviewed: FlowTaxonomy;
|
|
227
|
+
upsertFlowTaxonomy: FlowTaxonomy;
|
|
196
228
|
version?: Maybe<Scalars['String']['output']>;
|
|
197
229
|
};
|
|
230
|
+
export type MutationMarkFlowReviewedArgs = {
|
|
231
|
+
flowName: Scalars['String']['input'];
|
|
232
|
+
instanceId: Scalars['ID']['input'];
|
|
233
|
+
};
|
|
234
|
+
export type MutationUpsertFlowTaxonomyArgs = {
|
|
235
|
+
input: FlowTaxonomyInput;
|
|
236
|
+
};
|
|
198
237
|
export type NumberMatcher = {
|
|
199
238
|
btw?: Maybe<Array<Scalars['Number']['output']>>;
|
|
200
239
|
eq?: Maybe<Scalars['Number']['output']>;
|
|
@@ -230,6 +269,7 @@ export type Query = {
|
|
|
230
269
|
getVolumeOfTicketsPerDay?: Maybe<AnalyticsVolume>;
|
|
231
270
|
getVolumeOfTicketsPerHour?: Maybe<Array<Maybe<Grouped>>>;
|
|
232
271
|
getVolumeOfTicketsReviews?: Maybe<AnalyticsVolume>;
|
|
272
|
+
listFlowTaxonomy: Array<FlowTaxonomy>;
|
|
233
273
|
version?: Maybe<Scalars['String']['output']>;
|
|
234
274
|
};
|
|
235
275
|
export type QueryGetAttendanceTimeArgs = {
|
|
@@ -283,6 +323,9 @@ export type QueryGetVolumeOfTicketsReviewsArgs = {
|
|
|
283
323
|
filters?: InputMaybe<Array<TicketAnalyticsFilterInput>>;
|
|
284
324
|
startDate: Scalars['Date']['input'];
|
|
285
325
|
};
|
|
326
|
+
export type QueryListFlowTaxonomyArgs = {
|
|
327
|
+
instanceId: Scalars['ID']['input'];
|
|
328
|
+
};
|
|
286
329
|
export type SearchResultsFacet = {
|
|
287
330
|
name: Scalars['String']['output'];
|
|
288
331
|
stats?: Maybe<SearchResultsFacetStats>;
|
|
@@ -347,6 +390,26 @@ export declare enum Typenames {
|
|
|
347
390
|
GraphqlConnections = "GraphqlConnections",
|
|
348
391
|
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
349
392
|
}
|
|
393
|
+
export type FlowTaxonomyFragment = Pick<FlowTaxonomy, 'tenant' | 'instanceId' | 'flowName' | 'flowType' | 'description' | 'keyTasks' | 'humanComment' | 'auditedAt' | 'isReviewed' | 'createdAt' | 'updatedAt'>;
|
|
394
|
+
export type ListFlowTaxonomyQueryVariables = Exact<{
|
|
395
|
+
instanceId: Scalars['ID']['input'];
|
|
396
|
+
}>;
|
|
397
|
+
export type ListFlowTaxonomyQuery = {
|
|
398
|
+
listFlowTaxonomy: Array<FlowTaxonomyFragment>;
|
|
399
|
+
};
|
|
400
|
+
export type UpsertFlowTaxonomyMutationVariables = Exact<{
|
|
401
|
+
input: FlowTaxonomyInput;
|
|
402
|
+
}>;
|
|
403
|
+
export type UpsertFlowTaxonomyMutation = {
|
|
404
|
+
upsertFlowTaxonomy: FlowTaxonomyFragment;
|
|
405
|
+
};
|
|
406
|
+
export type MarkFlowReviewedMutationVariables = Exact<{
|
|
407
|
+
instanceId: Scalars['ID']['input'];
|
|
408
|
+
flowName: Scalars['String']['input'];
|
|
409
|
+
}>;
|
|
410
|
+
export type MarkFlowReviewedMutation = {
|
|
411
|
+
markFlowReviewed: FlowTaxonomyFragment;
|
|
412
|
+
};
|
|
350
413
|
export type AverageFragment = Pick<AnalyticsAverage, 'delta' | 'current' | 'previous'>;
|
|
351
414
|
export type VolumeFragment = (Pick<AnalyticsVolume, 'delta' | 'total' | 'prevTotal'> & {
|
|
352
415
|
data?: Maybe<Array<Maybe<Pick<Grouped, 'name' | 'value'>>>>;
|
|
@@ -448,12 +511,16 @@ export type GetTicketsReviewsSurveyRatingVolumeQueryVariables = Exact<{
|
|
|
448
511
|
export type GetTicketsReviewsSurveyRatingVolumeQuery = {
|
|
449
512
|
getTicketsReviewsSurveyRatingVolume?: Maybe<Array<Maybe<Pick<Grouped, 'name' | 'value'>>>>;
|
|
450
513
|
};
|
|
514
|
+
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 ";
|
|
451
515
|
export declare const AverageFragmentDoc = "\n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n ";
|
|
452
516
|
export declare const VolumeFragmentDoc = "\n fragment volume on AnalyticsVolume {\n delta\n total\n prevTotal\n data {\n name\n value\n }\n}\n ";
|
|
453
517
|
export declare const ChartFragmentDoc = "\n fragment chart on AnalyticsChart {\n delta\n current\n previous\n name\n}\n ";
|
|
454
518
|
export declare const MultiValueFragmentDoc = "\n fragment multiValue on AnalyticsMultiValue {\n results {\n name\n values {\n name\n value\n }\n }\n summary {\n ...chart\n }\n}\n ";
|
|
455
519
|
export declare const FacetValueFragmentDoc = "\n fragment facetValue on AnalyticsFacetValue {\n value\n display\n count\n}\n ";
|
|
456
520
|
export declare const QueryFacetsFragmentDoc = "\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 ";
|
|
521
|
+
export declare const ListFlowTaxonomyDocument = "\n query listFlowTaxonomy($instanceId: ID!) {\n listFlowTaxonomy(instanceId: $instanceId) {\n ...flowTaxonomy\n }\n}\n \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 ";
|
|
522
|
+
export declare const UpsertFlowTaxonomyDocument = "\n mutation upsertFlowTaxonomy($input: FlowTaxonomyInput!) {\n upsertFlowTaxonomy(input: $input) {\n ...flowTaxonomy\n }\n}\n \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 ";
|
|
523
|
+
export declare const MarkFlowReviewedDocument = "\n mutation markFlowReviewed($instanceId: ID!, $flowName: String!) {\n markFlowReviewed(instanceId: $instanceId, flowName: $flowName) {\n ...flowTaxonomy\n }\n}\n \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 ";
|
|
457
524
|
export declare const GetFirstResponseTimeDocument = "\n query getFirstResponseTime($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!]) {\n getFirstResponseTime(\n startDate: $startDate\n endDate: $endDate\n filters: $filters\n ) {\n ...average\n }\n}\n \n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n ";
|
|
458
525
|
export declare const GetAttendanceTimeDocument = "\n query getAttendanceTime($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!]) {\n getAttendanceTime(startDate: $startDate, endDate: $endDate, filters: $filters) {\n ...average\n }\n}\n \n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n ";
|
|
459
526
|
export declare const GetTicketsByStatusDocument = "\n query getTicketsByStatus($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!]) {\n getTicketsByStatus(startDate: $startDate, endDate: $endDate, filters: $filters) {\n ...multiValue\n }\n}\n \n fragment multiValue on AnalyticsMultiValue {\n results {\n name\n values {\n name\n value\n }\n }\n summary {\n ...chart\n }\n}\n \n\n fragment chart on AnalyticsChart {\n delta\n current\n previous\n name\n}\n ";
|
|
@@ -466,6 +533,9 @@ export declare const GetFacetsDocument = "\n query getFacets($startDate: Date
|
|
|
466
533
|
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 ";
|
|
467
534
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
468
535
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
536
|
+
listFlowTaxonomy(variables: ListFlowTaxonomyQueryVariables, options?: C): Promise<ListFlowTaxonomyQuery>;
|
|
537
|
+
upsertFlowTaxonomy(variables: UpsertFlowTaxonomyMutationVariables, options?: C): Promise<UpsertFlowTaxonomyMutation>;
|
|
538
|
+
markFlowReviewed(variables: MarkFlowReviewedMutationVariables, options?: C): Promise<MarkFlowReviewedMutation>;
|
|
469
539
|
getFirstResponseTime(variables: GetFirstResponseTimeQueryVariables, options?: C): Promise<GetFirstResponseTimeQuery>;
|
|
470
540
|
getAttendanceTime(variables: GetAttendanceTimeQueryVariables, options?: C): Promise<GetAttendanceTimeQuery>;
|
|
471
541
|
getTicketsByStatus(variables: GetTicketsByStatusQueryVariables, options?: C): Promise<GetTicketsByStatusQuery>;
|
|
@@ -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.GetTicketsReviewsSurveyRatingVolumeDocument = exports.GetFacetsDocument = exports.GetTicketsReviewsDocument = exports.GetTicketsByTriggerAppDocument = exports.GetVolumeOfTicketsReviewsDocument = exports.GetVolumeOfTicketsPerHourDocument = exports.GetVolumeOfTicketsPerDayDocument = exports.GetTicketsByStatusDocument = exports.GetAttendanceTimeDocument = exports.GetFirstResponseTimeDocument = exports.QueryFacetsFragmentDoc = exports.FacetValueFragmentDoc = exports.MultiValueFragmentDoc = exports.ChartFragmentDoc = exports.VolumeFragmentDoc = exports.AverageFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = exports.AnalyticsType = void 0;
|
|
4
|
+
exports.serviceName = 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) {
|
|
@@ -21,12 +21,37 @@ var Can;
|
|
|
21
21
|
Can["Remove"] = "remove";
|
|
22
22
|
Can["Write"] = "write";
|
|
23
23
|
})(Can || (exports.Can = Can = {}));
|
|
24
|
+
var FlowTaxonomyType;
|
|
25
|
+
(function (FlowTaxonomyType) {
|
|
26
|
+
FlowTaxonomyType["Informativo"] = "INFORMATIVO";
|
|
27
|
+
FlowTaxonomyType["InformativoHumano"] = "INFORMATIVO_HUMANO";
|
|
28
|
+
FlowTaxonomyType["Menu"] = "MENU";
|
|
29
|
+
FlowTaxonomyType["MenuHumano"] = "MENU_HUMANO";
|
|
30
|
+
FlowTaxonomyType["Resolutivo"] = "RESOLUTIVO";
|
|
31
|
+
FlowTaxonomyType["Triagem"] = "TRIAGEM";
|
|
32
|
+
FlowTaxonomyType["Unknown"] = "UNKNOWN";
|
|
33
|
+
})(FlowTaxonomyType || (exports.FlowTaxonomyType = FlowTaxonomyType = {}));
|
|
24
34
|
var Typenames;
|
|
25
35
|
(function (Typenames) {
|
|
26
36
|
Typenames["Any"] = "Any";
|
|
27
37
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
28
38
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
29
39
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
40
|
+
exports.FlowTaxonomyFragmentDoc = `
|
|
41
|
+
fragment flowTaxonomy on FlowTaxonomy {
|
|
42
|
+
tenant
|
|
43
|
+
instanceId
|
|
44
|
+
flowName
|
|
45
|
+
flowType
|
|
46
|
+
description
|
|
47
|
+
keyTasks
|
|
48
|
+
humanComment
|
|
49
|
+
auditedAt
|
|
50
|
+
isReviewed
|
|
51
|
+
createdAt
|
|
52
|
+
updatedAt
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
30
55
|
exports.AverageFragmentDoc = `
|
|
31
56
|
fragment average on AnalyticsAverage {
|
|
32
57
|
delta
|
|
@@ -96,6 +121,27 @@ exports.QueryFacetsFragmentDoc = `
|
|
|
96
121
|
}
|
|
97
122
|
}
|
|
98
123
|
`;
|
|
124
|
+
exports.ListFlowTaxonomyDocument = `
|
|
125
|
+
query listFlowTaxonomy($instanceId: ID!) {
|
|
126
|
+
listFlowTaxonomy(instanceId: $instanceId) {
|
|
127
|
+
...flowTaxonomy
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
${exports.FlowTaxonomyFragmentDoc}`;
|
|
131
|
+
exports.UpsertFlowTaxonomyDocument = `
|
|
132
|
+
mutation upsertFlowTaxonomy($input: FlowTaxonomyInput!) {
|
|
133
|
+
upsertFlowTaxonomy(input: $input) {
|
|
134
|
+
...flowTaxonomy
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
${exports.FlowTaxonomyFragmentDoc}`;
|
|
138
|
+
exports.MarkFlowReviewedDocument = `
|
|
139
|
+
mutation markFlowReviewed($instanceId: ID!, $flowName: String!) {
|
|
140
|
+
markFlowReviewed(instanceId: $instanceId, flowName: $flowName) {
|
|
141
|
+
...flowTaxonomy
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
${exports.FlowTaxonomyFragmentDoc}`;
|
|
99
145
|
exports.GetFirstResponseTimeDocument = `
|
|
100
146
|
query getFirstResponseTime($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!]) {
|
|
101
147
|
getFirstResponseTime(
|
|
@@ -198,6 +244,15 @@ exports.GetTicketsReviewsSurveyRatingVolumeDocument = `
|
|
|
198
244
|
`;
|
|
199
245
|
function getSdk(requester) {
|
|
200
246
|
return {
|
|
247
|
+
listFlowTaxonomy(variables, options) {
|
|
248
|
+
return requester(exports.ListFlowTaxonomyDocument, variables, options);
|
|
249
|
+
},
|
|
250
|
+
upsertFlowTaxonomy(variables, options) {
|
|
251
|
+
return requester(exports.UpsertFlowTaxonomyDocument, variables, options);
|
|
252
|
+
},
|
|
253
|
+
markFlowReviewed(variables, options) {
|
|
254
|
+
return requester(exports.MarkFlowReviewedDocument, variables, options);
|
|
255
|
+
},
|
|
201
256
|
getFirstResponseTime(variables, options) {
|
|
202
257
|
return requester(exports.GetFirstResponseTimeDocument, variables, options);
|
|
203
258
|
},
|