@devrev/typescript-sdk 1.1.32 → 1.1.34
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";
|
|
@@ -212,10 +212,13 @@ var LinkEndpointType;
|
|
|
212
212
|
(function (LinkEndpointType) {
|
|
213
213
|
LinkEndpointType["Capability"] = "capability";
|
|
214
214
|
LinkEndpointType["Conversation"] = "conversation";
|
|
215
|
+
LinkEndpointType["DevUser"] = "dev_user";
|
|
215
216
|
LinkEndpointType["Enhancement"] = "enhancement";
|
|
216
217
|
LinkEndpointType["Feature"] = "feature";
|
|
217
218
|
LinkEndpointType["Issue"] = "issue";
|
|
218
219
|
LinkEndpointType["Product"] = "product";
|
|
220
|
+
LinkEndpointType["RevOrg"] = "rev_org";
|
|
221
|
+
LinkEndpointType["RevUser"] = "rev_user";
|
|
219
222
|
LinkEndpointType["Ticket"] = "ticket";
|
|
220
223
|
})(LinkEndpointType = exports.LinkEndpointType || (exports.LinkEndpointType = {}));
|
|
221
224
|
/** Type of link used to define the relationship. */
|
|
@@ -228,6 +231,7 @@ var LinkType;
|
|
|
228
231
|
LinkType["IsConvertedTo"] = "is_converted_to";
|
|
229
232
|
LinkType["IsDependentOn"] = "is_dependent_on";
|
|
230
233
|
LinkType["IsDuplicateOf"] = "is_duplicate_of";
|
|
234
|
+
LinkType["IsFollowUpOf"] = "is_follow_up_of";
|
|
231
235
|
LinkType["IsMergedInto"] = "is_merged_into";
|
|
232
236
|
LinkType["IsParentOf"] = "is_parent_of";
|
|
233
237
|
LinkType["IsPartOf"] = "is_part_of";
|
|
@@ -246,6 +250,34 @@ var ListMode;
|
|
|
246
250
|
ListMode["After"] = "after";
|
|
247
251
|
ListMode["Before"] = "before";
|
|
248
252
|
})(ListMode = exports.ListMode || (exports.ListMode = {}));
|
|
253
|
+
/** The list of item types on which the metric might be applied. */
|
|
254
|
+
var MetricDefinitionAppliesTo;
|
|
255
|
+
(function (MetricDefinitionAppliesTo) {
|
|
256
|
+
MetricDefinitionAppliesTo["Conversation"] = "conversation";
|
|
257
|
+
MetricDefinitionAppliesTo["Issue"] = "issue";
|
|
258
|
+
MetricDefinitionAppliesTo["Ticket"] = "ticket";
|
|
259
|
+
})(MetricDefinitionAppliesTo = exports.MetricDefinitionAppliesTo || (exports.MetricDefinitionAppliesTo = {}));
|
|
260
|
+
/**
|
|
261
|
+
* The type of the metric. 'time' metrics track the time spent in some
|
|
262
|
+
* state, supporting operations like 'start', 'stop', 'pause', 'resume'.
|
|
263
|
+
* 'value' metrics track a value, supporting operations like 'set',
|
|
264
|
+
* 'increment', 'decrement'.
|
|
265
|
+
*/
|
|
266
|
+
var MetricDefinitionMetricType;
|
|
267
|
+
(function (MetricDefinitionMetricType) {
|
|
268
|
+
MetricDefinitionMetricType["Time"] = "time";
|
|
269
|
+
MetricDefinitionMetricType["Value"] = "value";
|
|
270
|
+
})(MetricDefinitionMetricType = exports.MetricDefinitionMetricType || (exports.MetricDefinitionMetricType = {}));
|
|
271
|
+
/**
|
|
272
|
+
* The status of the metric. 'active' metrics can be used to create new
|
|
273
|
+
* SLAs, while 'inactive' metrics can not be used in new SLAs. Metrics can
|
|
274
|
+
* be updated between 'active' and 'inactive' states.
|
|
275
|
+
*/
|
|
276
|
+
var MetricDefinitionStatus;
|
|
277
|
+
(function (MetricDefinitionStatus) {
|
|
278
|
+
MetricDefinitionStatus["Active"] = "active";
|
|
279
|
+
MetricDefinitionStatus["Inactive"] = "inactive";
|
|
280
|
+
})(MetricDefinitionStatus = exports.MetricDefinitionStatus || (exports.MetricDefinitionStatus = {}));
|
|
249
281
|
/** The environment of the Org. Defaults to 'production' if not specified. */
|
|
250
282
|
var OrgEnvironment;
|
|
251
283
|
(function (OrgEnvironment) {
|
|
@@ -309,6 +341,54 @@ var SchemaFieldDescriptorFieldType;
|
|
|
309
341
|
SchemaFieldDescriptorFieldType["Uenum"] = "uenum";
|
|
310
342
|
SchemaFieldDescriptorFieldType["Unknown"] = "unknown";
|
|
311
343
|
})(SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorFieldType || (exports.SchemaFieldDescriptorFieldType = {}));
|
|
344
|
+
/**
|
|
345
|
+
* The object types on which the SLA applies. An external SLA can apply to
|
|
346
|
+
* multiple object types, but an internal SLA can apply to only one object
|
|
347
|
+
* type.
|
|
348
|
+
*/
|
|
349
|
+
var SlaAppliesTo;
|
|
350
|
+
(function (SlaAppliesTo) {
|
|
351
|
+
SlaAppliesTo["Conversation"] = "conversation";
|
|
352
|
+
SlaAppliesTo["Issue"] = "issue";
|
|
353
|
+
SlaAppliesTo["Ticket"] = "ticket";
|
|
354
|
+
})(SlaAppliesTo = exports.SlaAppliesTo || (exports.SlaAppliesTo = {}));
|
|
355
|
+
/**
|
|
356
|
+
* Specifies the frequency of when the contractually-meaningful evaluation
|
|
357
|
+
* of the SLA happens. The organization for their own information might
|
|
358
|
+
* evaluate the various metrics contained in the policy as often as we can
|
|
359
|
+
* make it feasible for them, but only the evaluation at the end of the
|
|
360
|
+
* evaluation period triggers a compensation and needs to be shared with
|
|
361
|
+
* the customer.
|
|
362
|
+
*/
|
|
363
|
+
var SlaEvaluationPeriod;
|
|
364
|
+
(function (SlaEvaluationPeriod) {
|
|
365
|
+
SlaEvaluationPeriod["Monthly"] = "monthly";
|
|
366
|
+
SlaEvaluationPeriod["Quarterly"] = "quarterly";
|
|
367
|
+
SlaEvaluationPeriod["Weekly"] = "weekly";
|
|
368
|
+
SlaEvaluationPeriod["Yearly"] = "yearly";
|
|
369
|
+
})(SlaEvaluationPeriod = exports.SlaEvaluationPeriod || (exports.SlaEvaluationPeriod = {}));
|
|
370
|
+
/** The item type for which the SLA policy applies. */
|
|
371
|
+
var SlaSelectorAppliesTo;
|
|
372
|
+
(function (SlaSelectorAppliesTo) {
|
|
373
|
+
SlaSelectorAppliesTo["Conversation"] = "conversation";
|
|
374
|
+
SlaSelectorAppliesTo["Issue"] = "issue";
|
|
375
|
+
SlaSelectorAppliesTo["Ticket"] = "ticket";
|
|
376
|
+
})(SlaSelectorAppliesTo = exports.SlaSelectorAppliesTo || (exports.SlaSelectorAppliesTo = {}));
|
|
377
|
+
/** The SLA policy applies to conversations with these priorities. */
|
|
378
|
+
var SlaSelectorPriority;
|
|
379
|
+
(function (SlaSelectorPriority) {
|
|
380
|
+
SlaSelectorPriority["P0"] = "p0";
|
|
381
|
+
SlaSelectorPriority["P1"] = "p1";
|
|
382
|
+
SlaSelectorPriority["P2"] = "p2";
|
|
383
|
+
})(SlaSelectorPriority = exports.SlaSelectorPriority || (exports.SlaSelectorPriority = {}));
|
|
384
|
+
/** The SLA policy applies to tickets with these severities. */
|
|
385
|
+
var SlaSelectorSeverity;
|
|
386
|
+
(function (SlaSelectorSeverity) {
|
|
387
|
+
SlaSelectorSeverity["Blocker"] = "blocker";
|
|
388
|
+
SlaSelectorSeverity["High"] = "high";
|
|
389
|
+
SlaSelectorSeverity["Low"] = "low";
|
|
390
|
+
SlaSelectorSeverity["Medium"] = "medium";
|
|
391
|
+
})(SlaSelectorSeverity = exports.SlaSelectorSeverity || (exports.SlaSelectorSeverity = {}));
|
|
312
392
|
/**
|
|
313
393
|
* Status determines how an item can be used. In 'draft' status an item
|
|
314
394
|
* can be edited but can't be used. When 'published' the item can longer
|
|
@@ -338,6 +418,11 @@ var SlaType;
|
|
|
338
418
|
SlaType["External"] = "external";
|
|
339
419
|
SlaType["Internal"] = "internal";
|
|
340
420
|
})(SlaType = exports.SlaType || (exports.SlaType = {}));
|
|
421
|
+
var SlasFilterAppliesToOperatorType;
|
|
422
|
+
(function (SlasFilterAppliesToOperatorType) {
|
|
423
|
+
SlasFilterAppliesToOperatorType["All"] = "all";
|
|
424
|
+
SlasFilterAppliesToOperatorType["Any"] = "any";
|
|
425
|
+
})(SlasFilterAppliesToOperatorType = exports.SlasFilterAppliesToOperatorType || (exports.SlasFilterAppliesToOperatorType = {}));
|
|
341
426
|
/** Type of stage validation options when creating an object. */
|
|
342
427
|
var StageValidationOptionForCreate;
|
|
343
428
|
(function (StageValidationOptionForCreate) {
|
|
@@ -358,6 +443,7 @@ var SyncMetadataFilterSyncInFilterStatus;
|
|
|
358
443
|
var SyncMetadataFilterSyncOutFilterStatus;
|
|
359
444
|
(function (SyncMetadataFilterSyncOutFilterStatus) {
|
|
360
445
|
SyncMetadataFilterSyncOutFilterStatus["Failed"] = "failed";
|
|
446
|
+
SyncMetadataFilterSyncOutFilterStatus["Modified"] = "modified";
|
|
361
447
|
SyncMetadataFilterSyncOutFilterStatus["Succeeded"] = "succeeded";
|
|
362
448
|
})(SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncOutFilterStatus || (exports.SyncMetadataFilterSyncOutFilterStatus = {}));
|
|
363
449
|
/** Channels of the ticket. */
|
|
@@ -965,6 +1051,24 @@ class Api extends HttpClient {
|
|
|
965
1051
|
* @secure
|
|
966
1052
|
*/
|
|
967
1053
|
this.keyringsCreateCallbackPost = (data, params = {}) => this.request(Object.assign({ path: `/keyrings.authorize`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
1054
|
+
/**
|
|
1055
|
+
* @description Lists metric definitions matching a filter.
|
|
1056
|
+
*
|
|
1057
|
+
* @tags slas
|
|
1058
|
+
* @name MetricDefinitionsList
|
|
1059
|
+
* @request GET:/metric-definitions.list
|
|
1060
|
+
* @secure
|
|
1061
|
+
*/
|
|
1062
|
+
this.metricDefinitionsList = (query, params = {}) => this.request(Object.assign({ path: `/metric-definitions.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1063
|
+
/**
|
|
1064
|
+
* @description Lists metric definitions matching a filter.
|
|
1065
|
+
*
|
|
1066
|
+
* @tags slas
|
|
1067
|
+
* @name MetricDefinitionsListPost
|
|
1068
|
+
* @request POST:/metric-definitions.list
|
|
1069
|
+
* @secure
|
|
1070
|
+
*/
|
|
1071
|
+
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
1072
|
/**
|
|
969
1073
|
* @description Creates new [part](https://devrev.ai/docs/product/parts).
|
|
970
1074
|
*
|
|
@@ -1109,6 +1213,96 @@ class Api extends HttpClient {
|
|
|
1109
1213
|
* @secure
|
|
1110
1214
|
*/
|
|
1111
1215
|
this.slaTrackersGetPost = (data, params = {}) => this.request(Object.assign({ path: `/sla-trackers.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1216
|
+
/**
|
|
1217
|
+
* @description Lists SLA trackers matching a filter.
|
|
1218
|
+
*
|
|
1219
|
+
* @tags slas
|
|
1220
|
+
* @name SlaTrackersList
|
|
1221
|
+
* @request GET:/sla-trackers.list
|
|
1222
|
+
* @secure
|
|
1223
|
+
*/
|
|
1224
|
+
this.slaTrackersList = (query, params = {}) => this.request(Object.assign({ path: `/sla-trackers.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1225
|
+
/**
|
|
1226
|
+
* @description Lists SLA trackers matching a filter.
|
|
1227
|
+
*
|
|
1228
|
+
* @tags slas
|
|
1229
|
+
* @name SlaTrackersListPost
|
|
1230
|
+
* @request POST:/sla-trackers.list
|
|
1231
|
+
* @secure
|
|
1232
|
+
*/
|
|
1233
|
+
this.slaTrackersListPost = (data, params = {}) => this.request(Object.assign({ path: `/sla-trackers.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1234
|
+
/**
|
|
1235
|
+
* @description Assigns the SLA to a set of Rev organizations.
|
|
1236
|
+
*
|
|
1237
|
+
* @tags slas
|
|
1238
|
+
* @name SlasAssign
|
|
1239
|
+
* @request POST:/slas.assign
|
|
1240
|
+
* @secure
|
|
1241
|
+
*/
|
|
1242
|
+
this.slasAssign = (data, params = {}) => this.request(Object.assign({ path: `/slas.assign`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1243
|
+
/**
|
|
1244
|
+
* @description Creates an SLA in draft status.
|
|
1245
|
+
*
|
|
1246
|
+
* @tags slas
|
|
1247
|
+
* @name SlasCreate
|
|
1248
|
+
* @request POST:/slas.create
|
|
1249
|
+
* @secure
|
|
1250
|
+
*/
|
|
1251
|
+
this.slasCreate = (data, params = {}) => this.request(Object.assign({ path: `/slas.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1252
|
+
/**
|
|
1253
|
+
* @description Gets an SLA.
|
|
1254
|
+
*
|
|
1255
|
+
* @tags slas
|
|
1256
|
+
* @name SlasGet
|
|
1257
|
+
* @request GET:/slas.get
|
|
1258
|
+
* @secure
|
|
1259
|
+
*/
|
|
1260
|
+
this.slasGet = (query, params = {}) => this.request(Object.assign({ path: `/slas.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1261
|
+
/**
|
|
1262
|
+
* @description Gets an SLA.
|
|
1263
|
+
*
|
|
1264
|
+
* @tags slas
|
|
1265
|
+
* @name SlasGetPost
|
|
1266
|
+
* @request POST:/slas.get
|
|
1267
|
+
* @secure
|
|
1268
|
+
*/
|
|
1269
|
+
this.slasGetPost = (data, params = {}) => this.request(Object.assign({ path: `/slas.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1270
|
+
/**
|
|
1271
|
+
* @description Lists SLAs matching a filter.
|
|
1272
|
+
*
|
|
1273
|
+
* @tags slas
|
|
1274
|
+
* @name SlasList
|
|
1275
|
+
* @request GET:/slas.list
|
|
1276
|
+
* @secure
|
|
1277
|
+
*/
|
|
1278
|
+
this.slasList = (query, params = {}) => this.request(Object.assign({ path: `/slas.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1279
|
+
/**
|
|
1280
|
+
* @description Lists SLAs matching a filter.
|
|
1281
|
+
*
|
|
1282
|
+
* @tags slas
|
|
1283
|
+
* @name SlasListPost
|
|
1284
|
+
* @request POST:/slas.list
|
|
1285
|
+
* @secure
|
|
1286
|
+
*/
|
|
1287
|
+
this.slasListPost = (data, params = {}) => this.request(Object.assign({ path: `/slas.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1288
|
+
/**
|
|
1289
|
+
* @description Changes the status of an SLA.
|
|
1290
|
+
*
|
|
1291
|
+
* @tags slas
|
|
1292
|
+
* @name SlasTransition
|
|
1293
|
+
* @request POST:/slas.transition
|
|
1294
|
+
* @secure
|
|
1295
|
+
*/
|
|
1296
|
+
this.slasTransition = (data, params = {}) => this.request(Object.assign({ path: `/slas.transition`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1297
|
+
/**
|
|
1298
|
+
* @description Updates a draft SLA.
|
|
1299
|
+
*
|
|
1300
|
+
* @tags slas
|
|
1301
|
+
* @name SlasUpdate
|
|
1302
|
+
* @request POST:/slas.update
|
|
1303
|
+
* @secure
|
|
1304
|
+
*/
|
|
1305
|
+
this.slasUpdate = (data, params = {}) => this.request(Object.assign({ path: `/slas.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1112
1306
|
/**
|
|
1113
1307
|
* @description Creates a new tag, which is used to create associations between objects and a logical concept denoted by the tag's name.
|
|
1114
1308
|
*
|