@roarkanalytics/sdk 5.10.0 → 5.12.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/CHANGELOG.md +24 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/analytics.d.mts +29 -20
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +29 -20
- package/resources/analytics.d.ts.map +1 -1
- package/resources/call.d.mts +110 -7
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +110 -7
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +35 -0
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +35 -0
- package/resources/call.mjs.map +1 -1
- package/resources/config.d.mts +48 -48
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +48 -48
- package/resources/config.d.ts.map +1 -1
- package/resources/dashboard.d.mts +297 -201
- package/resources/dashboard.d.mts.map +1 -1
- package/resources/dashboard.d.ts +297 -201
- package/resources/dashboard.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/metric-collection-job.d.mts +102 -10
- package/resources/metric-collection-job.d.mts.map +1 -1
- package/resources/metric-collection-job.d.ts +102 -10
- package/resources/metric-collection-job.d.ts.map +1 -1
- package/resources/metric-collection-job.js +21 -0
- package/resources/metric-collection-job.js.map +1 -1
- package/resources/metric-collection-job.mjs +21 -0
- package/resources/metric-collection-job.mjs.map +1 -1
- package/src/client.ts +8 -0
- package/src/resources/analytics.ts +41 -22
- package/src/resources/call.ts +125 -6
- package/src/resources/config.ts +120 -72
- package/src/resources/dashboard.ts +411 -233
- package/src/resources/index.ts +4 -0
- package/src/resources/metric-collection-job.ts +118 -9
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -26,6 +26,25 @@ export declare class MetricCollectionJob extends APIResource {
|
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
28
|
list(query?: MetricCollectionJobListParams | null | undefined, options?: RequestOptions): APIPromise<MetricCollectionJobListResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Stops a metric collection job that has not finished. No further conversations
|
|
31
|
+
* are processed and the job ends in CANCELED.
|
|
32
|
+
*
|
|
33
|
+
* Items the job had not reached are marked SKIPPED. Metric values already produced
|
|
34
|
+
* are kept, and items that were mid-computation when the cancel arrived may still
|
|
35
|
+
* complete. Only the items that completed are billed.
|
|
36
|
+
*
|
|
37
|
+
* Safe to call more than once: a job that has already finished (COMPLETED, FAILED,
|
|
38
|
+
* or CANCELED) is returned unchanged.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const response = await client.metricCollectionJob.cancel(
|
|
43
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
cancel(jobID: string, options?: RequestOptions): APIPromise<MetricCollectionJobCancelResponse>;
|
|
29
48
|
/**
|
|
30
49
|
* Returns a specific metric collection job with progress information.
|
|
31
50
|
*
|
|
@@ -58,7 +77,8 @@ export declare namespace MetricCollectionJobCreateResponse {
|
|
|
58
77
|
*/
|
|
59
78
|
completedAt: string | null;
|
|
60
79
|
/**
|
|
61
|
-
* Number of
|
|
80
|
+
* Number of items that finished without failing: a value was written, or the
|
|
81
|
+
* metric did not apply to the conversation
|
|
62
82
|
*/
|
|
63
83
|
completedItems: number;
|
|
64
84
|
/**
|
|
@@ -66,11 +86,13 @@ export declare namespace MetricCollectionJobCreateResponse {
|
|
|
66
86
|
*/
|
|
67
87
|
createdAt: string;
|
|
68
88
|
/**
|
|
69
|
-
*
|
|
89
|
+
* Why the job failed or, on a COMPLETED job with failedItems above 0, why those
|
|
90
|
+
* items failed
|
|
70
91
|
*/
|
|
71
92
|
errorMessage: string | null;
|
|
72
93
|
/**
|
|
73
|
-
* Number of
|
|
94
|
+
* Number of items that could not be computed, for example because an artifact the
|
|
95
|
+
* metric reads (such as diarization) failed to generate
|
|
74
96
|
*/
|
|
75
97
|
failedItems: number;
|
|
76
98
|
/**
|
|
@@ -120,7 +142,8 @@ export declare namespace MetricCollectionJobListResponse {
|
|
|
120
142
|
*/
|
|
121
143
|
completedAt: string | null;
|
|
122
144
|
/**
|
|
123
|
-
* Number of
|
|
145
|
+
* Number of items that finished without failing: a value was written, or the
|
|
146
|
+
* metric did not apply to the conversation
|
|
124
147
|
*/
|
|
125
148
|
completedItems: number;
|
|
126
149
|
/**
|
|
@@ -128,11 +151,13 @@ export declare namespace MetricCollectionJobListResponse {
|
|
|
128
151
|
*/
|
|
129
152
|
createdAt: string;
|
|
130
153
|
/**
|
|
131
|
-
*
|
|
154
|
+
* Why the job failed or, on a COMPLETED job with failedItems above 0, why those
|
|
155
|
+
* items failed
|
|
132
156
|
*/
|
|
133
157
|
errorMessage: string | null;
|
|
134
158
|
/**
|
|
135
|
-
* Number of
|
|
159
|
+
* Number of items that could not be computed, for example because an artifact the
|
|
160
|
+
* metric reads (such as diarization) failed to generate
|
|
136
161
|
*/
|
|
137
162
|
failedItems: number;
|
|
138
163
|
/**
|
|
@@ -175,6 +200,70 @@ export declare namespace MetricCollectionJobListResponse {
|
|
|
175
200
|
total: number;
|
|
176
201
|
}
|
|
177
202
|
}
|
|
203
|
+
export interface MetricCollectionJobCancelResponse {
|
|
204
|
+
/**
|
|
205
|
+
* A metric collection job that processes metrics for calls or chats
|
|
206
|
+
*/
|
|
207
|
+
data: MetricCollectionJobCancelResponse.Data;
|
|
208
|
+
}
|
|
209
|
+
export declare namespace MetricCollectionJobCancelResponse {
|
|
210
|
+
/**
|
|
211
|
+
* A metric collection job that processes metrics for calls or chats
|
|
212
|
+
*/
|
|
213
|
+
interface Data {
|
|
214
|
+
/**
|
|
215
|
+
* Unique identifier of the metric collection job
|
|
216
|
+
*/
|
|
217
|
+
id: string;
|
|
218
|
+
/**
|
|
219
|
+
* When the job completed
|
|
220
|
+
*/
|
|
221
|
+
completedAt: string | null;
|
|
222
|
+
/**
|
|
223
|
+
* Number of items that finished without failing: a value was written, or the
|
|
224
|
+
* metric did not apply to the conversation
|
|
225
|
+
*/
|
|
226
|
+
completedItems: number;
|
|
227
|
+
/**
|
|
228
|
+
* When the job was created
|
|
229
|
+
*/
|
|
230
|
+
createdAt: string;
|
|
231
|
+
/**
|
|
232
|
+
* Why the job failed or, on a COMPLETED job with failedItems above 0, why those
|
|
233
|
+
* items failed
|
|
234
|
+
*/
|
|
235
|
+
errorMessage: string | null;
|
|
236
|
+
/**
|
|
237
|
+
* Number of items that could not be computed, for example because an artifact the
|
|
238
|
+
* metric reads (such as diarization) failed to generate
|
|
239
|
+
*/
|
|
240
|
+
failedItems: number;
|
|
241
|
+
/**
|
|
242
|
+
* IDs of the metric policies that triggered this job
|
|
243
|
+
*/
|
|
244
|
+
policyIds: Array<string>;
|
|
245
|
+
/**
|
|
246
|
+
* When the job started processing
|
|
247
|
+
*/
|
|
248
|
+
startedAt: string | null;
|
|
249
|
+
/**
|
|
250
|
+
* Current status of the job
|
|
251
|
+
*/
|
|
252
|
+
status: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELED';
|
|
253
|
+
/**
|
|
254
|
+
* Total number of call-metric pairs to process
|
|
255
|
+
*/
|
|
256
|
+
totalItems: number;
|
|
257
|
+
/**
|
|
258
|
+
* What triggered this job
|
|
259
|
+
*/
|
|
260
|
+
triggeredBy: 'USER_MANUAL' | 'USER_API' | 'METRIC_POLICY' | 'SIMULATION';
|
|
261
|
+
/**
|
|
262
|
+
* When the job was last updated
|
|
263
|
+
*/
|
|
264
|
+
updatedAt: string;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
178
267
|
export interface MetricCollectionJobGetByIDResponse {
|
|
179
268
|
/**
|
|
180
269
|
* A metric collection job that processes metrics for calls or chats
|
|
@@ -195,7 +284,8 @@ export declare namespace MetricCollectionJobGetByIDResponse {
|
|
|
195
284
|
*/
|
|
196
285
|
completedAt: string | null;
|
|
197
286
|
/**
|
|
198
|
-
* Number of
|
|
287
|
+
* Number of items that finished without failing: a value was written, or the
|
|
288
|
+
* metric did not apply to the conversation
|
|
199
289
|
*/
|
|
200
290
|
completedItems: number;
|
|
201
291
|
/**
|
|
@@ -203,11 +293,13 @@ export declare namespace MetricCollectionJobGetByIDResponse {
|
|
|
203
293
|
*/
|
|
204
294
|
createdAt: string;
|
|
205
295
|
/**
|
|
206
|
-
*
|
|
296
|
+
* Why the job failed or, on a COMPLETED job with failedItems above 0, why those
|
|
297
|
+
* items failed
|
|
207
298
|
*/
|
|
208
299
|
errorMessage: string | null;
|
|
209
300
|
/**
|
|
210
|
-
* Number of
|
|
301
|
+
* Number of items that could not be computed, for example because an artifact the
|
|
302
|
+
* metric reads (such as diarization) failed to generate
|
|
211
303
|
*/
|
|
212
304
|
failedItems: number;
|
|
213
305
|
/**
|
|
@@ -283,6 +375,6 @@ export interface MetricCollectionJobListParams {
|
|
|
283
375
|
status?: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELED';
|
|
284
376
|
}
|
|
285
377
|
export declare namespace MetricCollectionJob {
|
|
286
|
-
export { type MetricCollectionJobCreateResponse as MetricCollectionJobCreateResponse, type MetricCollectionJobListResponse as MetricCollectionJobListResponse, type MetricCollectionJobGetByIDResponse as MetricCollectionJobGetByIDResponse, type MetricCollectionJobCreateParams as MetricCollectionJobCreateParams, type MetricCollectionJobListParams as MetricCollectionJobListParams, };
|
|
378
|
+
export { type MetricCollectionJobCreateResponse as MetricCollectionJobCreateResponse, type MetricCollectionJobListResponse as MetricCollectionJobListResponse, type MetricCollectionJobCancelResponse as MetricCollectionJobCancelResponse, type MetricCollectionJobGetByIDResponse as MetricCollectionJobGetByIDResponse, type MetricCollectionJobCreateParams as MetricCollectionJobCreateParams, type MetricCollectionJobListParams as MetricCollectionJobListParams, };
|
|
287
379
|
}
|
|
288
380
|
//# sourceMappingURL=metric-collection-job.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metric-collection-job.d.ts","sourceRoot":"","sources":["../src/resources/metric-collection-job.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAIhD;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;IAI9C;;;;;;;;;OASG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;CAGjG;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,IAAI,EAAE,iCAAiC,CAAC,IAAI,CAAC;CAC9C;AAED,yBAAiB,iCAAiC,CAAC;IACjD;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B
|
|
1
|
+
{"version":3,"file":"metric-collection-job.d.ts","sourceRoot":"","sources":["../src/resources/metric-collection-job.ts"],"names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EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -33,6 +33,27 @@ class MetricCollectionJob extends resource_1.APIResource {
|
|
|
33
33
|
list(query = {}, options) {
|
|
34
34
|
return this._client.get('/v1/metric/collection-jobs', { query, ...options });
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Stops a metric collection job that has not finished. No further conversations
|
|
38
|
+
* are processed and the job ends in CANCELED.
|
|
39
|
+
*
|
|
40
|
+
* Items the job had not reached are marked SKIPPED. Metric values already produced
|
|
41
|
+
* are kept, and items that were mid-computation when the cancel arrived may still
|
|
42
|
+
* complete. Only the items that completed are billed.
|
|
43
|
+
*
|
|
44
|
+
* Safe to call more than once: a job that has already finished (COMPLETED, FAILED,
|
|
45
|
+
* or CANCELED) is returned unchanged.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const response = await client.metricCollectionJob.cancel(
|
|
50
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
51
|
+
* );
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
cancel(jobID, options) {
|
|
55
|
+
return this._client.post((0, path_1.path) `/v1/metric/collection-jobs/${jobID}/cancel`, options);
|
|
56
|
+
}
|
|
36
57
|
/**
|
|
37
58
|
* Returns a specific metric collection job with progress information.
|
|
38
59
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metric-collection-job.js","sourceRoot":"","sources":["../src/resources/metric-collection-job.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;;;;;;;;;;OAYG;I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B,KAAK,SAAS,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,KAAa,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,8BAA8B,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AAxED,kDAwEC"}
|
|
@@ -30,6 +30,27 @@ export class MetricCollectionJob extends APIResource {
|
|
|
30
30
|
list(query = {}, options) {
|
|
31
31
|
return this._client.get('/v1/metric/collection-jobs', { query, ...options });
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Stops a metric collection job that has not finished. No further conversations
|
|
35
|
+
* are processed and the job ends in CANCELED.
|
|
36
|
+
*
|
|
37
|
+
* Items the job had not reached are marked SKIPPED. Metric values already produced
|
|
38
|
+
* are kept, and items that were mid-computation when the cancel arrived may still
|
|
39
|
+
* complete. Only the items that completed are billed.
|
|
40
|
+
*
|
|
41
|
+
* Safe to call more than once: a job that has already finished (COMPLETED, FAILED,
|
|
42
|
+
* or CANCELED) is returned unchanged.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const response = await client.metricCollectionJob.cancel(
|
|
47
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
cancel(jobID, options) {
|
|
52
|
+
return this._client.post(path `/v1/metric/collection-jobs/${jobID}/cancel`, options);
|
|
53
|
+
}
|
|
33
54
|
/**
|
|
34
55
|
* Returns a specific metric collection job with progress information.
|
|
35
56
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metric-collection-job.mjs","sourceRoot":"","sources":["../src/resources/metric-collection-job.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO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C;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,8BAA8B,KAAK,SAAS,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,KAAa,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,8BAA8B,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -98,8 +98,11 @@ import {
|
|
|
98
98
|
Call,
|
|
99
99
|
CallAppendToolInvocationsParams,
|
|
100
100
|
CallAppendToolInvocationsResponse,
|
|
101
|
+
CallBatchDeleteParams,
|
|
102
|
+
CallBatchDeleteResponse,
|
|
101
103
|
CallCreateParams,
|
|
102
104
|
CallCreateResponse,
|
|
105
|
+
CallDeleteResponse,
|
|
103
106
|
CallGetByIDResponse,
|
|
104
107
|
CallGetCostResponse,
|
|
105
108
|
CallGetTranscriptParams,
|
|
@@ -201,6 +204,7 @@ import {
|
|
|
201
204
|
} from './resources/metric';
|
|
202
205
|
import {
|
|
203
206
|
MetricCollectionJob,
|
|
207
|
+
MetricCollectionJobCancelResponse,
|
|
204
208
|
MetricCollectionJobCreateParams,
|
|
205
209
|
MetricCollectionJobCreateResponse,
|
|
206
210
|
MetricCollectionJobGetByIDResponse,
|
|
@@ -1175,7 +1179,9 @@ export declare namespace Roark {
|
|
|
1175
1179
|
Call as Call,
|
|
1176
1180
|
type CallCreateResponse as CallCreateResponse,
|
|
1177
1181
|
type CallListResponse as CallListResponse,
|
|
1182
|
+
type CallDeleteResponse as CallDeleteResponse,
|
|
1178
1183
|
type CallAppendToolInvocationsResponse as CallAppendToolInvocationsResponse,
|
|
1184
|
+
type CallBatchDeleteResponse as CallBatchDeleteResponse,
|
|
1179
1185
|
type CallGetByIDResponse as CallGetByIDResponse,
|
|
1180
1186
|
type CallGetCostResponse as CallGetCostResponse,
|
|
1181
1187
|
type CallGetTranscriptResponse as CallGetTranscriptResponse,
|
|
@@ -1185,6 +1191,7 @@ export declare namespace Roark {
|
|
|
1185
1191
|
type CallCreateParams as CallCreateParams,
|
|
1186
1192
|
type CallListParams as CallListParams,
|
|
1187
1193
|
type CallAppendToolInvocationsParams as CallAppendToolInvocationsParams,
|
|
1194
|
+
type CallBatchDeleteParams as CallBatchDeleteParams,
|
|
1188
1195
|
type CallGetTranscriptParams as CallGetTranscriptParams,
|
|
1189
1196
|
type CallListMetricsParams as CallListMetricsParams,
|
|
1190
1197
|
type CallUpdatePropertiesParams as CallUpdatePropertiesParams,
|
|
@@ -1244,6 +1251,7 @@ export declare namespace Roark {
|
|
|
1244
1251
|
MetricCollectionJob as MetricCollectionJob,
|
|
1245
1252
|
type MetricCollectionJobCreateResponse as MetricCollectionJobCreateResponse,
|
|
1246
1253
|
type MetricCollectionJobListResponse as MetricCollectionJobListResponse,
|
|
1254
|
+
type MetricCollectionJobCancelResponse as MetricCollectionJobCancelResponse,
|
|
1247
1255
|
type MetricCollectionJobGetByIDResponse as MetricCollectionJobGetByIDResponse,
|
|
1248
1256
|
type MetricCollectionJobCreateParams as MetricCollectionJobCreateParams,
|
|
1249
1257
|
type MetricCollectionJobListParams as MetricCollectionJobListParams,
|
|
@@ -91,6 +91,8 @@ export namespace AnalyticsGetSchemaResponse {
|
|
|
91
91
|
| 'LESS_THAN_OR_EQUAL_TO'
|
|
92
92
|
| 'CONTAINS'
|
|
93
93
|
| 'STARTS_WITH'
|
|
94
|
+
| 'IS_SET'
|
|
95
|
+
| 'IS_NOT_SET'
|
|
94
96
|
>;
|
|
95
97
|
}
|
|
96
98
|
|
|
@@ -353,7 +355,9 @@ export namespace AnalyticsQueryParams {
|
|
|
353
355
|
| 'LESS_THAN'
|
|
354
356
|
| 'LESS_THAN_OR_EQUAL_TO'
|
|
355
357
|
| 'CONTAINS'
|
|
356
|
-
| 'STARTS_WITH'
|
|
358
|
+
| 'STARTS_WITH'
|
|
359
|
+
| 'IS_SET'
|
|
360
|
+
| 'IS_NOT_SET';
|
|
357
361
|
|
|
358
362
|
/**
|
|
359
363
|
* PASS_RATE condition value, e.g. 4 or "resolved".
|
|
@@ -401,12 +405,9 @@ export namespace AnalyticsQueryParams {
|
|
|
401
405
|
| 'METRIC_VALUE';
|
|
402
406
|
|
|
403
407
|
/**
|
|
404
|
-
*
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Defaults to EQUALS.
|
|
408
|
+
* Defaults to EQUALS. IS_SET / IS_NOT_SET (CALL_PROPERTY only) keep conversations
|
|
409
|
+
* where the property is set, whatever the value, or missing (never sent, sent as
|
|
410
|
+
* null, or removed); they take no value.
|
|
410
411
|
*/
|
|
411
412
|
operator?:
|
|
412
413
|
| 'EQUALS'
|
|
@@ -416,13 +417,21 @@ export namespace AnalyticsQueryParams {
|
|
|
416
417
|
| 'LESS_THAN'
|
|
417
418
|
| 'LESS_THAN_OR_EQUAL_TO'
|
|
418
419
|
| 'CONTAINS'
|
|
419
|
-
| 'STARTS_WITH'
|
|
420
|
+
| 'STARTS_WITH'
|
|
421
|
+
| 'IS_SET'
|
|
422
|
+
| 'IS_NOT_SET';
|
|
420
423
|
|
|
421
424
|
/**
|
|
422
425
|
* The property to compare. Required for CALL_PROPERTY and METRIC_PROPERTY; may be
|
|
423
426
|
* omitted for AGENT_PROPERTY, DATASET, MODALITY and CALL_ID.
|
|
424
427
|
*/
|
|
425
428
|
property?: string;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* The value to compare against (an agent id, "call" / "chat", a property value).
|
|
432
|
+
* Required except with IS_SET / IS_NOT_SET.
|
|
433
|
+
*/
|
|
434
|
+
value?: string | number | boolean;
|
|
426
435
|
}
|
|
427
436
|
}
|
|
428
437
|
|
|
@@ -464,12 +473,9 @@ export namespace AnalyticsQueryParams {
|
|
|
464
473
|
| 'METRIC_VALUE';
|
|
465
474
|
|
|
466
475
|
/**
|
|
467
|
-
*
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* Defaults to EQUALS.
|
|
476
|
+
* Defaults to EQUALS. IS_SET / IS_NOT_SET (CALL_PROPERTY only) keep conversations
|
|
477
|
+
* where the property is set, whatever the value, or missing (never sent, sent as
|
|
478
|
+
* null, or removed); they take no value.
|
|
473
479
|
*/
|
|
474
480
|
operator?:
|
|
475
481
|
| 'EQUALS'
|
|
@@ -479,13 +485,21 @@ export namespace AnalyticsQueryParams {
|
|
|
479
485
|
| 'LESS_THAN'
|
|
480
486
|
| 'LESS_THAN_OR_EQUAL_TO'
|
|
481
487
|
| 'CONTAINS'
|
|
482
|
-
| 'STARTS_WITH'
|
|
488
|
+
| 'STARTS_WITH'
|
|
489
|
+
| 'IS_SET'
|
|
490
|
+
| 'IS_NOT_SET';
|
|
483
491
|
|
|
484
492
|
/**
|
|
485
493
|
* The property to compare. Required for CALL_PROPERTY and METRIC_PROPERTY; may be
|
|
486
494
|
* omitted for AGENT_PROPERTY, DATASET, MODALITY and CALL_ID.
|
|
487
495
|
*/
|
|
488
496
|
property?: string;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* The value to compare against (an agent id, "call" / "chat", a property value).
|
|
500
|
+
* Required except with IS_SET / IS_NOT_SET.
|
|
501
|
+
*/
|
|
502
|
+
value?: string | number | boolean;
|
|
489
503
|
}
|
|
490
504
|
}
|
|
491
505
|
|
|
@@ -503,12 +517,9 @@ export namespace AnalyticsQueryParams {
|
|
|
503
517
|
| 'METRIC_VALUE';
|
|
504
518
|
|
|
505
519
|
/**
|
|
506
|
-
*
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* Defaults to EQUALS.
|
|
520
|
+
* Defaults to EQUALS. IS_SET / IS_NOT_SET (CALL_PROPERTY only) keep conversations
|
|
521
|
+
* where the property is set, whatever the value, or missing (never sent, sent as
|
|
522
|
+
* null, or removed); they take no value.
|
|
512
523
|
*/
|
|
513
524
|
operator?:
|
|
514
525
|
| 'EQUALS'
|
|
@@ -518,13 +529,21 @@ export namespace AnalyticsQueryParams {
|
|
|
518
529
|
| 'LESS_THAN'
|
|
519
530
|
| 'LESS_THAN_OR_EQUAL_TO'
|
|
520
531
|
| 'CONTAINS'
|
|
521
|
-
| 'STARTS_WITH'
|
|
532
|
+
| 'STARTS_WITH'
|
|
533
|
+
| 'IS_SET'
|
|
534
|
+
| 'IS_NOT_SET';
|
|
522
535
|
|
|
523
536
|
/**
|
|
524
537
|
* The property to compare. Required for CALL_PROPERTY and METRIC_PROPERTY; may be
|
|
525
538
|
* omitted for AGENT_PROPERTY, DATASET, MODALITY and CALL_ID.
|
|
526
539
|
*/
|
|
527
540
|
property?: string;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* The value to compare against (an agent id, "call" / "chat", a property value).
|
|
544
|
+
* Required except with IS_SET / IS_NOT_SET.
|
|
545
|
+
*/
|
|
546
|
+
value?: string | number | boolean;
|
|
528
547
|
}
|
|
529
548
|
|
|
530
549
|
export interface UnionMember0 {
|