@droz-js/sdk 0.9.5 → 0.9.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/sdks/drozanalytics.d.ts +18 -3
- package/src/sdks/drozanalytics.js +18 -3
package/package.json
CHANGED
|
@@ -138,6 +138,10 @@ export type AnalyticsChart = {
|
|
|
138
138
|
name: Scalars['String']['output'];
|
|
139
139
|
previous: Scalars['Float']['output'];
|
|
140
140
|
};
|
|
141
|
+
export type AnalyticsMultiValue = {
|
|
142
|
+
results: Array<MultiGrouped>;
|
|
143
|
+
summary: Array<AnalyticsChart>;
|
|
144
|
+
};
|
|
141
145
|
export type AnalyticsVolume = {
|
|
142
146
|
data?: Maybe<Array<Maybe<Grouped>>>;
|
|
143
147
|
delta?: Maybe<Scalars['Float']['output']>;
|
|
@@ -167,6 +171,10 @@ export type I18nTextInput = {
|
|
|
167
171
|
lang: Scalars['Locale']['input'];
|
|
168
172
|
value: Scalars['String']['input'];
|
|
169
173
|
};
|
|
174
|
+
export type MultiGrouped = {
|
|
175
|
+
name: Scalars['String']['output'];
|
|
176
|
+
values: Array<Grouped>;
|
|
177
|
+
};
|
|
170
178
|
export type Mutation = {
|
|
171
179
|
version?: Maybe<Scalars['String']['output']>;
|
|
172
180
|
};
|
|
@@ -197,7 +205,7 @@ export type Query = {
|
|
|
197
205
|
getAttendanceTime?: Maybe<AnalyticsAverage>;
|
|
198
206
|
getFirstResponseTime?: Maybe<AnalyticsAverage>;
|
|
199
207
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
200
|
-
getTicketsByStatus?: Maybe<
|
|
208
|
+
getTicketsByStatus?: Maybe<AnalyticsMultiValue>;
|
|
201
209
|
getTicketsByTriggerApp?: Maybe<Array<Maybe<AnalyticsChart>>>;
|
|
202
210
|
getVolumeOfTicketsPerDay?: Maybe<AnalyticsVolume>;
|
|
203
211
|
getVolumeOfTicketsPerHour?: Maybe<Array<Maybe<Grouped>>>;
|
|
@@ -300,6 +308,12 @@ export type VolumeFragment = (Pick<AnalyticsVolume, 'delta' | 'total' | 'prevTot
|
|
|
300
308
|
data?: Maybe<Array<Maybe<Pick<Grouped, 'name' | 'value'>>>>;
|
|
301
309
|
});
|
|
302
310
|
export type ChartFragment = Pick<AnalyticsChart, 'delta' | 'current' | 'previous' | 'name'>;
|
|
311
|
+
export type MultiValueFragment = {
|
|
312
|
+
results: Array<(Pick<MultiGrouped, 'name'> & {
|
|
313
|
+
values: Array<Pick<Grouped, 'name' | 'value'>>;
|
|
314
|
+
})>;
|
|
315
|
+
summary: Array<ChartFragment>;
|
|
316
|
+
};
|
|
303
317
|
export type GetFirstResponseTimeQueryVariables = Exact<{
|
|
304
318
|
startDate: Scalars['Date']['input'];
|
|
305
319
|
endDate: Scalars['Date']['input'];
|
|
@@ -319,7 +333,7 @@ export type GetTicketsByStatusQueryVariables = Exact<{
|
|
|
319
333
|
endDate: Scalars['Date']['input'];
|
|
320
334
|
}>;
|
|
321
335
|
export type GetTicketsByStatusQuery = {
|
|
322
|
-
getTicketsByStatus?: Maybe<
|
|
336
|
+
getTicketsByStatus?: Maybe<MultiValueFragment>;
|
|
323
337
|
};
|
|
324
338
|
export type GetVolumeOfTicketsPerDayQueryVariables = Exact<{
|
|
325
339
|
startDate: Scalars['Date']['input'];
|
|
@@ -344,9 +358,10 @@ export type GetTicketsByTriggerAppQuery = {
|
|
|
344
358
|
export declare const AverageFragmentDoc = "\n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n ";
|
|
345
359
|
export declare const VolumeFragmentDoc = "\n fragment volume on AnalyticsVolume {\n delta\n total\n prevTotal\n data {\n name\n value\n }\n}\n ";
|
|
346
360
|
export declare const ChartFragmentDoc = "\n fragment chart on AnalyticsChart {\n delta\n current\n previous\n name\n}\n ";
|
|
361
|
+
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 ";
|
|
347
362
|
export declare const GetFirstResponseTimeDocument = "\n query getFirstResponseTime($startDate: Date!, $endDate: Date!) {\n getFirstResponseTime(startDate: $startDate, endDate: $endDate) {\n ...average\n }\n}\n \n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n ";
|
|
348
363
|
export declare const GetAttendanceTimeDocument = "\n query getAttendanceTime($startDate: Date!, $endDate: Date!) {\n getAttendanceTime(startDate: $startDate, endDate: $endDate) {\n ...average\n }\n}\n \n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n ";
|
|
349
|
-
export declare const GetTicketsByStatusDocument = "\n query getTicketsByStatus($startDate: Date!, $endDate: Date!) {\n getTicketsByStatus(startDate: $startDate, endDate: $endDate) {\n ...chart\n }\n}\n \n fragment chart on AnalyticsChart {\n delta\n current\n previous\n name\n}\n ";
|
|
364
|
+
export declare const GetTicketsByStatusDocument = "\n query getTicketsByStatus($startDate: Date!, $endDate: Date!) {\n getTicketsByStatus(startDate: $startDate, endDate: $endDate) {\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 ";
|
|
350
365
|
export declare const GetVolumeOfTicketsPerDayDocument = "\n query getVolumeOfTicketsPerDay($startDate: Date!, $endDate: Date!) {\n getVolumeOfTicketsPerDay(startDate: $startDate, endDate: $endDate) {\n ...volume\n }\n}\n \n fragment volume on AnalyticsVolume {\n delta\n total\n prevTotal\n data {\n name\n value\n }\n}\n ";
|
|
351
366
|
export declare const GetVolumeOfTicketsPerHourDocument = "\n query getVolumeOfTicketsPerHour($date: Date!) {\n getVolumeOfTicketsPerHour(date: $date) {\n name\n value\n }\n}\n ";
|
|
352
367
|
export declare const GetTicketsByTriggerAppDocument = "\n query getTicketsByTriggerApp($startDate: Date!, $endDate: Date!) {\n getTicketsByTriggerApp(startDate: $startDate, endDate: $endDate) {\n ...chart\n }\n}\n \n fragment chart on AnalyticsChart {\n delta\n current\n previous\n name\n}\n ";
|
|
@@ -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.GetTicketsByTriggerAppDocument = exports.GetVolumeOfTicketsPerHourDocument = exports.GetVolumeOfTicketsPerDayDocument = exports.GetTicketsByStatusDocument = exports.GetAttendanceTimeDocument = exports.GetFirstResponseTimeDocument = exports.ChartFragmentDoc = exports.VolumeFragmentDoc = exports.AverageFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.GetTicketsByTriggerAppDocument = exports.GetVolumeOfTicketsPerHourDocument = exports.GetVolumeOfTicketsPerDayDocument = exports.GetTicketsByStatusDocument = exports.GetAttendanceTimeDocument = exports.GetFirstResponseTimeDocument = exports.MultiValueFragmentDoc = exports.ChartFragmentDoc = exports.VolumeFragmentDoc = exports.AverageFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
exports.getSdk = getSdk;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
@@ -48,6 +48,20 @@ exports.ChartFragmentDoc = `
|
|
|
48
48
|
name
|
|
49
49
|
}
|
|
50
50
|
`;
|
|
51
|
+
exports.MultiValueFragmentDoc = `
|
|
52
|
+
fragment multiValue on AnalyticsMultiValue {
|
|
53
|
+
results {
|
|
54
|
+
name
|
|
55
|
+
values {
|
|
56
|
+
name
|
|
57
|
+
value
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
summary {
|
|
61
|
+
...chart
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
51
65
|
exports.GetFirstResponseTimeDocument = `
|
|
52
66
|
query getFirstResponseTime($startDate: Date!, $endDate: Date!) {
|
|
53
67
|
getFirstResponseTime(startDate: $startDate, endDate: $endDate) {
|
|
@@ -65,10 +79,11 @@ exports.GetAttendanceTimeDocument = `
|
|
|
65
79
|
exports.GetTicketsByStatusDocument = `
|
|
66
80
|
query getTicketsByStatus($startDate: Date!, $endDate: Date!) {
|
|
67
81
|
getTicketsByStatus(startDate: $startDate, endDate: $endDate) {
|
|
68
|
-
...
|
|
82
|
+
...multiValue
|
|
69
83
|
}
|
|
70
84
|
}
|
|
71
|
-
${exports.
|
|
85
|
+
${exports.MultiValueFragmentDoc}
|
|
86
|
+
${exports.ChartFragmentDoc}`;
|
|
72
87
|
exports.GetVolumeOfTicketsPerDayDocument = `
|
|
73
88
|
query getVolumeOfTicketsPerDay($startDate: Date!, $endDate: Date!) {
|
|
74
89
|
getVolumeOfTicketsPerDay(startDate: $startDate, endDate: $endDate) {
|