@devrev/typescript-sdk 1.1.31 → 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.WebhookEventType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TicketChannels = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SlaType = exports.SlaSummaryStage = exports.SlaStatus = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgEnvironment = exports.ListMode = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = 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 = 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";
@@ -194,6 +194,12 @@ var ErrorUnauthorizedType;
194
194
  (function (ErrorUnauthorizedType) {
195
195
  ErrorUnauthorizedType["Unauthenticated"] = "unauthenticated";
196
196
  })(ErrorUnauthorizedType = exports.ErrorUnauthorizedType || (exports.ErrorUnauthorizedType = {}));
197
+ var EventFetchedResult;
198
+ (function (EventFetchedResult) {
199
+ EventFetchedResult["Forbidden"] = "forbidden";
200
+ EventFetchedResult["NotFound"] = "not_found";
201
+ EventFetchedResult["Ok"] = "ok";
202
+ })(EventFetchedResult = exports.EventFetchedResult || (exports.EventFetchedResult = {}));
197
203
  /** Priority of the work based upon impact and criticality. */
198
204
  var IssuePriority;
199
205
  (function (IssuePriority) {
@@ -222,6 +228,7 @@ var LinkType;
222
228
  LinkType["IsConvertedTo"] = "is_converted_to";
223
229
  LinkType["IsDependentOn"] = "is_dependent_on";
224
230
  LinkType["IsDuplicateOf"] = "is_duplicate_of";
231
+ LinkType["IsFollowUpOf"] = "is_follow_up_of";
225
232
  LinkType["IsMergedInto"] = "is_merged_into";
226
233
  LinkType["IsParentOf"] = "is_parent_of";
227
234
  LinkType["IsPartOf"] = "is_part_of";
@@ -240,6 +247,34 @@ var ListMode;
240
247
  ListMode["After"] = "after";
241
248
  ListMode["Before"] = "before";
242
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 = {}));
243
278
  /** The environment of the Org. Defaults to 'production' if not specified. */
244
279
  var OrgEnvironment;
245
280
  (function (OrgEnvironment) {
@@ -303,6 +338,54 @@ var SchemaFieldDescriptorFieldType;
303
338
  SchemaFieldDescriptorFieldType["Uenum"] = "uenum";
304
339
  SchemaFieldDescriptorFieldType["Unknown"] = "unknown";
305
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 = {}));
306
389
  /**
307
390
  * Status determines how an item can be used. In 'draft' status an item
308
391
  * can be edited but can't be used. When 'published' the item can longer
@@ -332,6 +415,11 @@ var SlaType;
332
415
  SlaType["External"] = "external";
333
416
  SlaType["Internal"] = "internal";
334
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 = {}));
335
423
  /** Type of stage validation options when creating an object. */
336
424
  var StageValidationOptionForCreate;
337
425
  (function (StageValidationOptionForCreate) {
@@ -374,6 +462,7 @@ var TicketSeverity;
374
462
  /** The type of the body to use for the comment. */
375
463
  var TimelineCommentBodyType;
376
464
  (function (TimelineCommentBodyType) {
465
+ TimelineCommentBodyType["Data"] = "data";
377
466
  TimelineCommentBodyType["SnapKit"] = "snap_kit";
378
467
  TimelineCommentBodyType["SnapWidget"] = "snap_widget";
379
468
  TimelineCommentBodyType["Text"] = "text";
@@ -497,6 +586,7 @@ var WebhookEventType;
497
586
  WebhookEventType["WebhookUpdated"] = "webhook_updated";
498
587
  WebhookEventType["WorkCreated"] = "work_created";
499
588
  WebhookEventType["WorkDeleted"] = "work_deleted";
589
+ WebhookEventType["WorkFetched"] = "work_fetched";
500
590
  WebhookEventType["WorkUpdated"] = "work_updated";
501
591
  })(WebhookEventType = exports.WebhookEventType || (exports.WebhookEventType = {}));
502
592
  /** The status of the webhook. */
@@ -957,6 +1047,24 @@ class Api extends HttpClient {
957
1047
  * @secure
958
1048
  */
959
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));
960
1068
  /**
961
1069
  * @description Creates new [part](https://devrev.ai/docs/product/parts).
962
1070
  *
@@ -1101,6 +1209,96 @@ class Api extends HttpClient {
1101
1209
  * @secure
1102
1210
  */
1103
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));
1104
1302
  /**
1105
1303
  * @description Creates a new tag, which is used to create associations between objects and a logical concept denoted by the tag's name.
1106
1304
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrev/typescript-sdk",
3
- "version": "1.1.31",
3
+ "version": "1.1.33",
4
4
  "description": "## SDK Generation",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {