@devrev/typescript-sdk 1.1.32 → 1.1.33
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.
|
@@ -33,8 +33,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
33
33
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
34
|
};
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = void 0;
|
|
36
|
+
exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TicketChannels = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgEnvironment = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.ListMode = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.EventFetchedResult = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = void 0;
|
|
37
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = void 0;
|
|
38
38
|
var AuthConnectionToggle;
|
|
39
39
|
(function (AuthConnectionToggle) {
|
|
40
40
|
AuthConnectionToggle["Disable"] = "disable";
|
|
@@ -228,6 +228,7 @@ var LinkType;
|
|
|
228
228
|
LinkType["IsConvertedTo"] = "is_converted_to";
|
|
229
229
|
LinkType["IsDependentOn"] = "is_dependent_on";
|
|
230
230
|
LinkType["IsDuplicateOf"] = "is_duplicate_of";
|
|
231
|
+
LinkType["IsFollowUpOf"] = "is_follow_up_of";
|
|
231
232
|
LinkType["IsMergedInto"] = "is_merged_into";
|
|
232
233
|
LinkType["IsParentOf"] = "is_parent_of";
|
|
233
234
|
LinkType["IsPartOf"] = "is_part_of";
|
|
@@ -246,6 +247,34 @@ var ListMode;
|
|
|
246
247
|
ListMode["After"] = "after";
|
|
247
248
|
ListMode["Before"] = "before";
|
|
248
249
|
})(ListMode = exports.ListMode || (exports.ListMode = {}));
|
|
250
|
+
/** The list of item types on which the metric might be applied. */
|
|
251
|
+
var MetricDefinitionAppliesTo;
|
|
252
|
+
(function (MetricDefinitionAppliesTo) {
|
|
253
|
+
MetricDefinitionAppliesTo["Conversation"] = "conversation";
|
|
254
|
+
MetricDefinitionAppliesTo["Issue"] = "issue";
|
|
255
|
+
MetricDefinitionAppliesTo["Ticket"] = "ticket";
|
|
256
|
+
})(MetricDefinitionAppliesTo = exports.MetricDefinitionAppliesTo || (exports.MetricDefinitionAppliesTo = {}));
|
|
257
|
+
/**
|
|
258
|
+
* The type of the metric. 'time' metrics track the time spent in some
|
|
259
|
+
* state, supporting operations like 'start', 'stop', 'pause', 'resume'.
|
|
260
|
+
* 'value' metrics track a value, supporting operations like 'set',
|
|
261
|
+
* 'increment', 'decrement'.
|
|
262
|
+
*/
|
|
263
|
+
var MetricDefinitionMetricType;
|
|
264
|
+
(function (MetricDefinitionMetricType) {
|
|
265
|
+
MetricDefinitionMetricType["Time"] = "time";
|
|
266
|
+
MetricDefinitionMetricType["Value"] = "value";
|
|
267
|
+
})(MetricDefinitionMetricType = exports.MetricDefinitionMetricType || (exports.MetricDefinitionMetricType = {}));
|
|
268
|
+
/**
|
|
269
|
+
* The status of the metric. 'active' metrics can be used to create new
|
|
270
|
+
* SLAs, while 'inactive' metrics can not be used in new SLAs. Metrics can
|
|
271
|
+
* be updated between 'active' and 'inactive' states.
|
|
272
|
+
*/
|
|
273
|
+
var MetricDefinitionStatus;
|
|
274
|
+
(function (MetricDefinitionStatus) {
|
|
275
|
+
MetricDefinitionStatus["Active"] = "active";
|
|
276
|
+
MetricDefinitionStatus["Inactive"] = "inactive";
|
|
277
|
+
})(MetricDefinitionStatus = exports.MetricDefinitionStatus || (exports.MetricDefinitionStatus = {}));
|
|
249
278
|
/** The environment of the Org. Defaults to 'production' if not specified. */
|
|
250
279
|
var OrgEnvironment;
|
|
251
280
|
(function (OrgEnvironment) {
|
|
@@ -309,6 +338,54 @@ var SchemaFieldDescriptorFieldType;
|
|
|
309
338
|
SchemaFieldDescriptorFieldType["Uenum"] = "uenum";
|
|
310
339
|
SchemaFieldDescriptorFieldType["Unknown"] = "unknown";
|
|
311
340
|
})(SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorFieldType || (exports.SchemaFieldDescriptorFieldType = {}));
|
|
341
|
+
/**
|
|
342
|
+
* The object types on which the SLA applies. An external SLA can apply to
|
|
343
|
+
* multiple object types, but an internal SLA can apply to only one object
|
|
344
|
+
* type.
|
|
345
|
+
*/
|
|
346
|
+
var SlaAppliesTo;
|
|
347
|
+
(function (SlaAppliesTo) {
|
|
348
|
+
SlaAppliesTo["Conversation"] = "conversation";
|
|
349
|
+
SlaAppliesTo["Issue"] = "issue";
|
|
350
|
+
SlaAppliesTo["Ticket"] = "ticket";
|
|
351
|
+
})(SlaAppliesTo = exports.SlaAppliesTo || (exports.SlaAppliesTo = {}));
|
|
352
|
+
/**
|
|
353
|
+
* Specifies the frequency of when the contractually-meaningful evaluation
|
|
354
|
+
* of the SLA happens. The organization for their own information might
|
|
355
|
+
* evaluate the various metrics contained in the policy as often as we can
|
|
356
|
+
* make it feasible for them, but only the evaluation at the end of the
|
|
357
|
+
* evaluation period triggers a compensation and needs to be shared with
|
|
358
|
+
* the customer.
|
|
359
|
+
*/
|
|
360
|
+
var SlaEvaluationPeriod;
|
|
361
|
+
(function (SlaEvaluationPeriod) {
|
|
362
|
+
SlaEvaluationPeriod["Monthly"] = "monthly";
|
|
363
|
+
SlaEvaluationPeriod["Quarterly"] = "quarterly";
|
|
364
|
+
SlaEvaluationPeriod["Weekly"] = "weekly";
|
|
365
|
+
SlaEvaluationPeriod["Yearly"] = "yearly";
|
|
366
|
+
})(SlaEvaluationPeriod = exports.SlaEvaluationPeriod || (exports.SlaEvaluationPeriod = {}));
|
|
367
|
+
/** The item type for which the SLA policy applies. */
|
|
368
|
+
var SlaSelectorAppliesTo;
|
|
369
|
+
(function (SlaSelectorAppliesTo) {
|
|
370
|
+
SlaSelectorAppliesTo["Conversation"] = "conversation";
|
|
371
|
+
SlaSelectorAppliesTo["Issue"] = "issue";
|
|
372
|
+
SlaSelectorAppliesTo["Ticket"] = "ticket";
|
|
373
|
+
})(SlaSelectorAppliesTo = exports.SlaSelectorAppliesTo || (exports.SlaSelectorAppliesTo = {}));
|
|
374
|
+
/** The SLA policy applies to conversations with these priorities. */
|
|
375
|
+
var SlaSelectorPriority;
|
|
376
|
+
(function (SlaSelectorPriority) {
|
|
377
|
+
SlaSelectorPriority["P0"] = "p0";
|
|
378
|
+
SlaSelectorPriority["P1"] = "p1";
|
|
379
|
+
SlaSelectorPriority["P2"] = "p2";
|
|
380
|
+
})(SlaSelectorPriority = exports.SlaSelectorPriority || (exports.SlaSelectorPriority = {}));
|
|
381
|
+
/** The SLA policy applies to tickets with these severities. */
|
|
382
|
+
var SlaSelectorSeverity;
|
|
383
|
+
(function (SlaSelectorSeverity) {
|
|
384
|
+
SlaSelectorSeverity["Blocker"] = "blocker";
|
|
385
|
+
SlaSelectorSeverity["High"] = "high";
|
|
386
|
+
SlaSelectorSeverity["Low"] = "low";
|
|
387
|
+
SlaSelectorSeverity["Medium"] = "medium";
|
|
388
|
+
})(SlaSelectorSeverity = exports.SlaSelectorSeverity || (exports.SlaSelectorSeverity = {}));
|
|
312
389
|
/**
|
|
313
390
|
* Status determines how an item can be used. In 'draft' status an item
|
|
314
391
|
* can be edited but can't be used. When 'published' the item can longer
|
|
@@ -338,6 +415,11 @@ var SlaType;
|
|
|
338
415
|
SlaType["External"] = "external";
|
|
339
416
|
SlaType["Internal"] = "internal";
|
|
340
417
|
})(SlaType = exports.SlaType || (exports.SlaType = {}));
|
|
418
|
+
var SlasFilterAppliesToOperatorType;
|
|
419
|
+
(function (SlasFilterAppliesToOperatorType) {
|
|
420
|
+
SlasFilterAppliesToOperatorType["All"] = "all";
|
|
421
|
+
SlasFilterAppliesToOperatorType["Any"] = "any";
|
|
422
|
+
})(SlasFilterAppliesToOperatorType = exports.SlasFilterAppliesToOperatorType || (exports.SlasFilterAppliesToOperatorType = {}));
|
|
341
423
|
/** Type of stage validation options when creating an object. */
|
|
342
424
|
var StageValidationOptionForCreate;
|
|
343
425
|
(function (StageValidationOptionForCreate) {
|
|
@@ -965,6 +1047,24 @@ class Api extends HttpClient {
|
|
|
965
1047
|
* @secure
|
|
966
1048
|
*/
|
|
967
1049
|
this.keyringsCreateCallbackPost = (data, params = {}) => this.request(Object.assign({ path: `/keyrings.authorize`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
1050
|
+
/**
|
|
1051
|
+
* @description Lists metric definitions matching a filter.
|
|
1052
|
+
*
|
|
1053
|
+
* @tags slas
|
|
1054
|
+
* @name MetricDefinitionsList
|
|
1055
|
+
* @request GET:/metric-definitions.list
|
|
1056
|
+
* @secure
|
|
1057
|
+
*/
|
|
1058
|
+
this.metricDefinitionsList = (query, params = {}) => this.request(Object.assign({ path: `/metric-definitions.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1059
|
+
/**
|
|
1060
|
+
* @description Lists metric definitions matching a filter.
|
|
1061
|
+
*
|
|
1062
|
+
* @tags slas
|
|
1063
|
+
* @name MetricDefinitionsListPost
|
|
1064
|
+
* @request POST:/metric-definitions.list
|
|
1065
|
+
* @secure
|
|
1066
|
+
*/
|
|
1067
|
+
this.metricDefinitionsListPost = (data, params = {}) => this.request(Object.assign({ path: `/metric-definitions.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
968
1068
|
/**
|
|
969
1069
|
* @description Creates new [part](https://devrev.ai/docs/product/parts).
|
|
970
1070
|
*
|
|
@@ -1109,6 +1209,96 @@ class Api extends HttpClient {
|
|
|
1109
1209
|
* @secure
|
|
1110
1210
|
*/
|
|
1111
1211
|
this.slaTrackersGetPost = (data, params = {}) => this.request(Object.assign({ path: `/sla-trackers.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1212
|
+
/**
|
|
1213
|
+
* @description Lists SLA trackers matching a filter.
|
|
1214
|
+
*
|
|
1215
|
+
* @tags slas
|
|
1216
|
+
* @name SlaTrackersList
|
|
1217
|
+
* @request GET:/sla-trackers.list
|
|
1218
|
+
* @secure
|
|
1219
|
+
*/
|
|
1220
|
+
this.slaTrackersList = (query, params = {}) => this.request(Object.assign({ path: `/sla-trackers.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1221
|
+
/**
|
|
1222
|
+
* @description Lists SLA trackers matching a filter.
|
|
1223
|
+
*
|
|
1224
|
+
* @tags slas
|
|
1225
|
+
* @name SlaTrackersListPost
|
|
1226
|
+
* @request POST:/sla-trackers.list
|
|
1227
|
+
* @secure
|
|
1228
|
+
*/
|
|
1229
|
+
this.slaTrackersListPost = (data, params = {}) => this.request(Object.assign({ path: `/sla-trackers.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1230
|
+
/**
|
|
1231
|
+
* @description Assigns the SLA to a set of Rev organizations.
|
|
1232
|
+
*
|
|
1233
|
+
* @tags slas
|
|
1234
|
+
* @name SlasAssign
|
|
1235
|
+
* @request POST:/slas.assign
|
|
1236
|
+
* @secure
|
|
1237
|
+
*/
|
|
1238
|
+
this.slasAssign = (data, params = {}) => this.request(Object.assign({ path: `/slas.assign`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1239
|
+
/**
|
|
1240
|
+
* @description Creates an SLA in draft status.
|
|
1241
|
+
*
|
|
1242
|
+
* @tags slas
|
|
1243
|
+
* @name SlasCreate
|
|
1244
|
+
* @request POST:/slas.create
|
|
1245
|
+
* @secure
|
|
1246
|
+
*/
|
|
1247
|
+
this.slasCreate = (data, params = {}) => this.request(Object.assign({ path: `/slas.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1248
|
+
/**
|
|
1249
|
+
* @description Gets an SLA.
|
|
1250
|
+
*
|
|
1251
|
+
* @tags slas
|
|
1252
|
+
* @name SlasGet
|
|
1253
|
+
* @request GET:/slas.get
|
|
1254
|
+
* @secure
|
|
1255
|
+
*/
|
|
1256
|
+
this.slasGet = (query, params = {}) => this.request(Object.assign({ path: `/slas.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1257
|
+
/**
|
|
1258
|
+
* @description Gets an SLA.
|
|
1259
|
+
*
|
|
1260
|
+
* @tags slas
|
|
1261
|
+
* @name SlasGetPost
|
|
1262
|
+
* @request POST:/slas.get
|
|
1263
|
+
* @secure
|
|
1264
|
+
*/
|
|
1265
|
+
this.slasGetPost = (data, params = {}) => this.request(Object.assign({ path: `/slas.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1266
|
+
/**
|
|
1267
|
+
* @description Lists SLAs matching a filter.
|
|
1268
|
+
*
|
|
1269
|
+
* @tags slas
|
|
1270
|
+
* @name SlasList
|
|
1271
|
+
* @request GET:/slas.list
|
|
1272
|
+
* @secure
|
|
1273
|
+
*/
|
|
1274
|
+
this.slasList = (query, params = {}) => this.request(Object.assign({ path: `/slas.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1275
|
+
/**
|
|
1276
|
+
* @description Lists SLAs matching a filter.
|
|
1277
|
+
*
|
|
1278
|
+
* @tags slas
|
|
1279
|
+
* @name SlasListPost
|
|
1280
|
+
* @request POST:/slas.list
|
|
1281
|
+
* @secure
|
|
1282
|
+
*/
|
|
1283
|
+
this.slasListPost = (data, params = {}) => this.request(Object.assign({ path: `/slas.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1284
|
+
/**
|
|
1285
|
+
* @description Changes the status of an SLA.
|
|
1286
|
+
*
|
|
1287
|
+
* @tags slas
|
|
1288
|
+
* @name SlasTransition
|
|
1289
|
+
* @request POST:/slas.transition
|
|
1290
|
+
* @secure
|
|
1291
|
+
*/
|
|
1292
|
+
this.slasTransition = (data, params = {}) => this.request(Object.assign({ path: `/slas.transition`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1293
|
+
/**
|
|
1294
|
+
* @description Updates a draft SLA.
|
|
1295
|
+
*
|
|
1296
|
+
* @tags slas
|
|
1297
|
+
* @name SlasUpdate
|
|
1298
|
+
* @request POST:/slas.update
|
|
1299
|
+
* @secure
|
|
1300
|
+
*/
|
|
1301
|
+
this.slasUpdate = (data, params = {}) => this.request(Object.assign({ path: `/slas.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1112
1302
|
/**
|
|
1113
1303
|
* @description Creates a new tag, which is used to create associations between objects and a logical concept denoted by the tag's name.
|
|
1114
1304
|
*
|