@devrev/typescript-sdk 1.1.61 → 1.1.63
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,10 +33,10 @@ 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.
|
|
38
|
-
exports.
|
|
39
|
-
exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WidgetVisualizationType = exports.WidgetQueryOrderByDirection = exports.WidgetDataSourceType = exports.WidgetColumnProjectionType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.WebCrawlerJobsControlRequestAction = exports.WebCrawlerJobState = exports.VisualizationAxisColorType = void 0;
|
|
36
|
+
exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.ErrorBadRequestCustomizationValidationErrorSubtype = exports.EnhancementRevScoreTier = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DynamicVistaFilterType = exports.DevUsersCreateRequestStateEnumValue = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.Definedness = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsListRequestPrune = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsVistaGroupItemType = exports.ConversationsCreateRequestTypeValue = exports.CommandSurfaceSurface = exports.CommandSurfaceObjectTypes = exports.CommandStatus = exports.CommandActionTemplateType = exports.CommandActionExecutorType = exports.CodeChangeSource = exports.ChatType = exports.ChatCompletionsRequestMessageRole = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.AssociatedToType = exports.ArtifactConfigurationSet = exports.ArticleType = exports.ArticleStatus = exports.ArticleContentFormat = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
|
|
37
|
+
exports.SearchResultType = exports.SearchNamespace = exports.SearchHybridNamespace = exports.SchemasSubtypePrepareUpdateGetResponseConflictType = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.RoleTarget = exports.RolePrivileges = exports.RecordTemplateState = exports.ReactionsUpdateRequestAction = exports.QuestionAnswerStatus = exports.PreferencesType = exports.PartsVistaGroupItemType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MetricActionExecuteRequestAction = exports.MemberType = exports.MeetingState = exports.MeetingChannel = exports.MeerkatWidgetColumnProjectionType = exports.MeerkatWidgetColumnProjectionTimestampRollup = exports.MeerkatWidgetColumnFunctionType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.KanbanVisualizationCardAttributePosition = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupedVistaFilterType = exports.GroupType = exports.GroupMemberType = exports.GroupItemType = exports.GroupIngestionSource = exports.GenericNotificationEventType = exports.FieldValueType = exports.ExternalSystemType = exports.EventTimelineEntryUpdatedReactionAction = exports.EventSourceStatus = exports.EventFetchedResult = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = void 0;
|
|
38
|
+
exports.UomMetricScope = exports.UnitType = exports.TuringSourcesType = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryPanel = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TimelineChangeEventEventType = exports.TicketSeverity = exports.TicketChannels = exports.TaskPriority = exports.TableVisualizationColumnPinPosition = exports.TableVisualizationColumnLockPosition = exports.SyncUnitSyncType = exports.SyncRunStartedBy = exports.SyncRunProgressState = exports.SyncRunMode = exports.SyncProgressState = exports.SyncOutStatus = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.SyncInStatus = exports.StockSchemaFragmentsListRequestPrune = exports.StockSchemaFragmentsListRequestFilterPreset = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapWidgetsCreateRequestType = exports.SnapWidgetType = exports.SnapWidgetStatus = exports.SnapWidgetNamespace = exports.SnapWidgetInteractionType = exports.SnapWidgetClickInteractionClickAction = exports.SnapKitActionRequestElementTypeValue = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaTrackerAppliesToType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SendNotificationType = exports.SearchSortOrderParam = exports.SearchSortByParam = void 0;
|
|
39
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.WorksVistaGroupItemType = exports.WorkType = exports.WidgetVisualizationType = exports.WidgetQueryOrderByDirection = exports.WidgetDataSourceType = exports.WidgetColumnProjectionType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.WebCrawlerJobsControlRequestAction = exports.WebCrawlerJobState = exports.VisualizationAxisColorType = exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.VistaGroupItemGroupObjectType = exports.VistaFlavor = exports.UserType = exports.UserState = void 0;
|
|
40
40
|
var AccessLevel;
|
|
41
41
|
(function (AccessLevel) {
|
|
42
42
|
AccessLevel["External"] = "external";
|
|
@@ -313,6 +313,12 @@ var ConversationsCreateRequestTypeValue;
|
|
|
313
313
|
(function (ConversationsCreateRequestTypeValue) {
|
|
314
314
|
ConversationsCreateRequestTypeValue["Support"] = "support";
|
|
315
315
|
})(ConversationsCreateRequestTypeValue = exports.ConversationsCreateRequestTypeValue || (exports.ConversationsCreateRequestTypeValue = {}));
|
|
316
|
+
/** Type of conversations vista group item. */
|
|
317
|
+
var ConversationsVistaGroupItemType;
|
|
318
|
+
(function (ConversationsVistaGroupItemType) {
|
|
319
|
+
ConversationsVistaGroupItemType["Curated"] = "curated";
|
|
320
|
+
ConversationsVistaGroupItemType["Dynamic"] = "dynamic";
|
|
321
|
+
})(ConversationsVistaGroupItemType = exports.ConversationsVistaGroupItemType || (exports.ConversationsVistaGroupItemType = {}));
|
|
316
322
|
/** Type of the custom schema fragment. */
|
|
317
323
|
var CustomSchemaFragmentFragmentType;
|
|
318
324
|
(function (CustomSchemaFragmentFragmentType) {
|
|
@@ -401,6 +407,24 @@ var DevUsersCreateRequestStateEnumValue;
|
|
|
401
407
|
(function (DevUsersCreateRequestStateEnumValue) {
|
|
402
408
|
DevUsersCreateRequestStateEnumValue["Shadow"] = "shadow";
|
|
403
409
|
})(DevUsersCreateRequestStateEnumValue = exports.DevUsersCreateRequestStateEnumValue || (exports.DevUsersCreateRequestStateEnumValue = {}));
|
|
410
|
+
/** Type of DevRev object for which the vista is applicable. */
|
|
411
|
+
var DynamicVistaFilterType;
|
|
412
|
+
(function (DynamicVistaFilterType) {
|
|
413
|
+
DynamicVistaFilterType["Accounts"] = "accounts";
|
|
414
|
+
DynamicVistaFilterType["Articles"] = "articles";
|
|
415
|
+
DynamicVistaFilterType["Conversations"] = "conversations";
|
|
416
|
+
DynamicVistaFilterType["Credits"] = "credits";
|
|
417
|
+
DynamicVistaFilterType["CustomObjects"] = "custom_objects";
|
|
418
|
+
DynamicVistaFilterType["DevUsers"] = "dev_users";
|
|
419
|
+
DynamicVistaFilterType["Incidents"] = "incidents";
|
|
420
|
+
DynamicVistaFilterType["Invoices"] = "invoices";
|
|
421
|
+
DynamicVistaFilterType["Meetings"] = "meetings";
|
|
422
|
+
DynamicVistaFilterType["Parts"] = "parts";
|
|
423
|
+
DynamicVistaFilterType["Quotes"] = "quotes";
|
|
424
|
+
DynamicVistaFilterType["RevOrgs"] = "rev_orgs";
|
|
425
|
+
DynamicVistaFilterType["RevUsers"] = "rev_users";
|
|
426
|
+
DynamicVistaFilterType["Works"] = "works";
|
|
427
|
+
})(DynamicVistaFilterType = exports.DynamicVistaFilterType || (exports.DynamicVistaFilterType = {}));
|
|
404
428
|
/** Type of engagement. */
|
|
405
429
|
var EngagementType;
|
|
406
430
|
(function (EngagementType) {
|
|
@@ -584,6 +608,12 @@ var GroupIngestionSource;
|
|
|
584
608
|
GroupIngestionSource["Airdrop"] = "airdrop";
|
|
585
609
|
GroupIngestionSource["Scim"] = "scim";
|
|
586
610
|
})(GroupIngestionSource = exports.GroupIngestionSource || (exports.GroupIngestionSource = {}));
|
|
611
|
+
/** Type of the vista group item object. */
|
|
612
|
+
var GroupItemType;
|
|
613
|
+
(function (GroupItemType) {
|
|
614
|
+
GroupItemType["Curated"] = "curated";
|
|
615
|
+
GroupItemType["Dynamic"] = "dynamic";
|
|
616
|
+
})(GroupItemType = exports.GroupItemType || (exports.GroupItemType = {}));
|
|
587
617
|
/** Type of the members in the group. */
|
|
588
618
|
var GroupMemberType;
|
|
589
619
|
(function (GroupMemberType) {
|
|
@@ -596,6 +626,13 @@ var GroupType;
|
|
|
596
626
|
GroupType["Dynamic"] = "dynamic";
|
|
597
627
|
GroupType["Static"] = "static";
|
|
598
628
|
})(GroupType = exports.GroupType || (exports.GroupType = {}));
|
|
629
|
+
/** Type of DevRev object for which the grouped vista is applicable. */
|
|
630
|
+
var GroupedVistaFilterType;
|
|
631
|
+
(function (GroupedVistaFilterType) {
|
|
632
|
+
GroupedVistaFilterType["Conversations"] = "conversations";
|
|
633
|
+
GroupedVistaFilterType["Parts"] = "parts";
|
|
634
|
+
GroupedVistaFilterType["Works"] = "works";
|
|
635
|
+
})(GroupedVistaFilterType = exports.GroupedVistaFilterType || (exports.GroupedVistaFilterType = {}));
|
|
599
636
|
/** Denotes the use case of the grouped vista. */
|
|
600
637
|
var GroupedVistaFlavor;
|
|
601
638
|
(function (GroupedVistaFlavor) {
|
|
@@ -839,6 +876,12 @@ var PartType;
|
|
|
839
876
|
PartType["Product"] = "product";
|
|
840
877
|
PartType["Runnable"] = "runnable";
|
|
841
878
|
})(PartType = exports.PartType || (exports.PartType = {}));
|
|
879
|
+
/** Type of parts vista group item. */
|
|
880
|
+
var PartsVistaGroupItemType;
|
|
881
|
+
(function (PartsVistaGroupItemType) {
|
|
882
|
+
PartsVistaGroupItemType["Curated"] = "curated";
|
|
883
|
+
PartsVistaGroupItemType["Dynamic"] = "dynamic";
|
|
884
|
+
})(PartsVistaGroupItemType = exports.PartsVistaGroupItemType || (exports.PartsVistaGroupItemType = {}));
|
|
842
885
|
var PreferencesType;
|
|
843
886
|
(function (PreferencesType) {
|
|
844
887
|
PreferencesType["UserPreferences"] = "user_preferences";
|
|
@@ -1443,6 +1486,20 @@ var UserType;
|
|
|
1443
1486
|
UserType["ServiceAccount"] = "service_account";
|
|
1444
1487
|
UserType["SysUser"] = "sys_user";
|
|
1445
1488
|
})(UserType = exports.UserType || (exports.UserType = {}));
|
|
1489
|
+
/** Denotes the use case of the vista. */
|
|
1490
|
+
var VistaFlavor;
|
|
1491
|
+
(function (VistaFlavor) {
|
|
1492
|
+
VistaFlavor["Nnl"] = "nnl";
|
|
1493
|
+
VistaFlavor["SprintBoard"] = "sprint_board";
|
|
1494
|
+
VistaFlavor["SupportInbox"] = "support_inbox";
|
|
1495
|
+
})(VistaFlavor = exports.VistaFlavor || (exports.VistaFlavor = {}));
|
|
1496
|
+
/** Type of DevRev object for which the vista group item is applicable. */
|
|
1497
|
+
var VistaGroupItemGroupObjectType;
|
|
1498
|
+
(function (VistaGroupItemGroupObjectType) {
|
|
1499
|
+
VistaGroupItemGroupObjectType["Conversation"] = "conversation";
|
|
1500
|
+
VistaGroupItemGroupObjectType["Part"] = "part";
|
|
1501
|
+
VistaGroupItemGroupObjectType["Work"] = "work";
|
|
1502
|
+
})(VistaGroupItemGroupObjectType = exports.VistaGroupItemGroupObjectType || (exports.VistaGroupItemGroupObjectType = {}));
|
|
1446
1503
|
/** Defines the state of the group item. */
|
|
1447
1504
|
var VistaGroupItemState;
|
|
1448
1505
|
(function (VistaGroupItemState) {
|
|
@@ -1616,6 +1673,12 @@ var WorkType;
|
|
|
1616
1673
|
WorkType["Task"] = "task";
|
|
1617
1674
|
WorkType["Ticket"] = "ticket";
|
|
1618
1675
|
})(WorkType = exports.WorkType || (exports.WorkType = {}));
|
|
1676
|
+
/** Type of works vista group item. */
|
|
1677
|
+
var WorksVistaGroupItemType;
|
|
1678
|
+
(function (WorksVistaGroupItemType) {
|
|
1679
|
+
WorksVistaGroupItemType["Curated"] = "curated";
|
|
1680
|
+
WorksVistaGroupItemType["Dynamic"] = "dynamic";
|
|
1681
|
+
})(WorksVistaGroupItemType = exports.WorksVistaGroupItemType || (exports.WorksVistaGroupItemType = {}));
|
|
1619
1682
|
const axios_1 = __importDefault(require("axios"));
|
|
1620
1683
|
var ContentType;
|
|
1621
1684
|
(function (ContentType) {
|
|
@@ -5288,6 +5351,106 @@ class Api extends HttpClient {
|
|
|
5288
5351
|
* @secure
|
|
5289
5352
|
*/
|
|
5290
5353
|
this.uomsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/uoms.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
5354
|
+
/**
|
|
5355
|
+
* @description Deletes the requested vista.
|
|
5356
|
+
*
|
|
5357
|
+
* @tags vistas
|
|
5358
|
+
* @name VistasDelete
|
|
5359
|
+
* @summary Delete Vista
|
|
5360
|
+
* @request POST:/vistas.delete
|
|
5361
|
+
* @secure
|
|
5362
|
+
*/
|
|
5363
|
+
this.vistasDelete = (data, params = {}) => this.request(Object.assign({ path: `/vistas.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
5364
|
+
/**
|
|
5365
|
+
* @description Gets the requested vistas's information.
|
|
5366
|
+
*
|
|
5367
|
+
* @tags vistas
|
|
5368
|
+
* @name VistasGet
|
|
5369
|
+
* @summary Get Vista
|
|
5370
|
+
* @request GET:/vistas.get
|
|
5371
|
+
* @secure
|
|
5372
|
+
*/
|
|
5373
|
+
this.vistasGet = (query, params = {}) => this.request(Object.assign({ path: `/vistas.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
5374
|
+
/**
|
|
5375
|
+
* @description Gets the requested vistas's information.
|
|
5376
|
+
*
|
|
5377
|
+
* @tags vistas
|
|
5378
|
+
* @name VistasGetPost
|
|
5379
|
+
* @summary Get Vista (POST)
|
|
5380
|
+
* @request POST:/vistas.get
|
|
5381
|
+
* @secure
|
|
5382
|
+
*/
|
|
5383
|
+
this.vistasGetPost = (data, params = {}) => this.request(Object.assign({ path: `/vistas.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
5384
|
+
/**
|
|
5385
|
+
* @description Deletes the requested vista group item
|
|
5386
|
+
*
|
|
5387
|
+
* @tags vistas
|
|
5388
|
+
* @name VistasGroupsDelete
|
|
5389
|
+
* @summary Delete Vistas Group
|
|
5390
|
+
* @request POST:/vistas.groups.delete
|
|
5391
|
+
* @secure
|
|
5392
|
+
*/
|
|
5393
|
+
this.vistasGroupsDelete = (data, params = {}) => this.request(Object.assign({ path: `/vistas.groups.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
5394
|
+
/**
|
|
5395
|
+
* @description Gets the requested vista group item's information.
|
|
5396
|
+
*
|
|
5397
|
+
* @tags vistas
|
|
5398
|
+
* @name VistasGroupsGet
|
|
5399
|
+
* @summary Get Vistas Group
|
|
5400
|
+
* @request GET:/vistas.groups.get
|
|
5401
|
+
* @secure
|
|
5402
|
+
*/
|
|
5403
|
+
this.vistasGroupsGet = (query, params = {}) => this.request(Object.assign({ path: `/vistas.groups.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
5404
|
+
/**
|
|
5405
|
+
* @description Gets the requested vista group item's information.
|
|
5406
|
+
*
|
|
5407
|
+
* @tags vistas
|
|
5408
|
+
* @name VistasGroupsGetPost
|
|
5409
|
+
* @summary Get Vistas Group (POST)
|
|
5410
|
+
* @request POST:/vistas.groups.get
|
|
5411
|
+
* @secure
|
|
5412
|
+
*/
|
|
5413
|
+
this.vistasGroupsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/vistas.groups.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
5414
|
+
/**
|
|
5415
|
+
* @description Lists the available vista group items.
|
|
5416
|
+
*
|
|
5417
|
+
* @tags vistas
|
|
5418
|
+
* @name VistasGroupsList
|
|
5419
|
+
* @summary List Vistas Groups
|
|
5420
|
+
* @request GET:/vistas.groups.list
|
|
5421
|
+
* @secure
|
|
5422
|
+
*/
|
|
5423
|
+
this.vistasGroupsList = (query, params = {}) => this.request(Object.assign({ path: `/vistas.groups.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
5424
|
+
/**
|
|
5425
|
+
* @description Lists the available vista group items.
|
|
5426
|
+
*
|
|
5427
|
+
* @tags vistas
|
|
5428
|
+
* @name VistasGroupsListPost
|
|
5429
|
+
* @summary List Vistas Groups (POST)
|
|
5430
|
+
* @request POST:/vistas.groups.list
|
|
5431
|
+
* @secure
|
|
5432
|
+
*/
|
|
5433
|
+
this.vistasGroupsListPost = (data, params = {}) => this.request(Object.assign({ path: `/vistas.groups.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
5434
|
+
/**
|
|
5435
|
+
* @description Lists the available vistas.
|
|
5436
|
+
*
|
|
5437
|
+
* @tags vistas
|
|
5438
|
+
* @name VistasList
|
|
5439
|
+
* @summary List Vistas
|
|
5440
|
+
* @request GET:/vistas.list
|
|
5441
|
+
* @secure
|
|
5442
|
+
*/
|
|
5443
|
+
this.vistasList = (query, params = {}) => this.request(Object.assign({ path: `/vistas.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
5444
|
+
/**
|
|
5445
|
+
* @description Lists the available vistas.
|
|
5446
|
+
*
|
|
5447
|
+
* @tags vistas
|
|
5448
|
+
* @name VistasListPost
|
|
5449
|
+
* @summary List Vistas (POST)
|
|
5450
|
+
* @request POST:/vistas.list
|
|
5451
|
+
* @secure
|
|
5452
|
+
*/
|
|
5453
|
+
this.vistasListPost = (data, params = {}) => this.request(Object.assign({ path: `/vistas.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
5291
5454
|
/**
|
|
5292
5455
|
* @description Change state of a web crawler job to pause or resume it back to running.
|
|
5293
5456
|
*
|