@devrev/typescript-sdk 1.1.30 → 1.1.31
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,9 +33,9 @@ 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.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = void 0;
|
|
36
|
+
exports.MetricDefinitionAppliesTo = exports.MemberType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupType = exports.GroupMemberType = exports.GroupIngestionSource = exports.GenericNotificationEventType = exports.GeneralPreferencesGroupPreferredLocale = exports.FieldValueType = exports.EventSourceStatus = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsListRequestPrune = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CodeChangeSource = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.ArticleType = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
|
|
37
|
+
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.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StockSchemaFragmentsListRequestPrune = exports.StockSchemaFragmentsListRequestFilterPreset = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapWidgetsCreateRequestType = exports.SnapWidgetType = exports.SnapWidgetStatus = exports.SnapWidgetNamespace = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SendNotificationType = exports.SearchSortOrderParam = exports.SearchSortByParam = exports.SearchResultType = exports.SearchNamespace = exports.SearchHybridNamespace = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.QuestionAnswerStatus = exports.PreferencesType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = void 0;
|
|
38
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = void 0;
|
|
39
39
|
var AccessLevel;
|
|
40
40
|
(function (AccessLevel) {
|
|
41
41
|
AccessLevel["External"] = "external";
|
|
@@ -116,6 +116,7 @@ var AtomType;
|
|
|
116
116
|
AtomType["Ticket"] = "ticket";
|
|
117
117
|
AtomType["TimelineChangeEvent"] = "timeline_change_event";
|
|
118
118
|
AtomType["TimelineComment"] = "timeline_comment";
|
|
119
|
+
AtomType["UserPreferences"] = "user_preferences";
|
|
119
120
|
AtomType["Webhook"] = "webhook";
|
|
120
121
|
})(AtomType = exports.AtomType || (exports.AtomType = {}));
|
|
121
122
|
var AuthConnectionToggle;
|
|
@@ -197,6 +198,7 @@ var BooleanExpressionType;
|
|
|
197
198
|
/** Source of the code change object. */
|
|
198
199
|
var CodeChangeSource;
|
|
199
200
|
(function (CodeChangeSource) {
|
|
201
|
+
CodeChangeSource["AzureDevops"] = "azure_devops";
|
|
200
202
|
CodeChangeSource["Bitbucket"] = "bitbucket";
|
|
201
203
|
CodeChangeSource["Github"] = "github";
|
|
202
204
|
})(CodeChangeSource = exports.CodeChangeSource || (exports.CodeChangeSource = {}));
|
|
@@ -387,6 +389,12 @@ var FieldValueType;
|
|
|
387
389
|
FieldValueType["TagSummary"] = "tag_summary";
|
|
388
390
|
FieldValueType["TagSummaryList"] = "tag_summary_list";
|
|
389
391
|
})(FieldValueType = exports.FieldValueType || (exports.FieldValueType = {}));
|
|
392
|
+
/** Preferred locale of the user. */
|
|
393
|
+
var GeneralPreferencesGroupPreferredLocale;
|
|
394
|
+
(function (GeneralPreferencesGroupPreferredLocale) {
|
|
395
|
+
GeneralPreferencesGroupPreferredLocale["EnUs"] = "en_us";
|
|
396
|
+
GeneralPreferencesGroupPreferredLocale["JaJp"] = "ja_jp";
|
|
397
|
+
})(GeneralPreferencesGroupPreferredLocale = exports.GeneralPreferencesGroupPreferredLocale || (exports.GeneralPreferencesGroupPreferredLocale = {}));
|
|
390
398
|
/** Event type of the notification. */
|
|
391
399
|
var GenericNotificationEventType;
|
|
392
400
|
(function (GenericNotificationEventType) {
|
|
@@ -396,6 +404,12 @@ var GenericNotificationEventType;
|
|
|
396
404
|
GenericNotificationEventType["Reminder"] = "reminder";
|
|
397
405
|
GenericNotificationEventType["Update"] = "update";
|
|
398
406
|
})(GenericNotificationEventType = exports.GenericNotificationEventType || (exports.GenericNotificationEventType = {}));
|
|
407
|
+
/** Creation source of the group. */
|
|
408
|
+
var GroupIngestionSource;
|
|
409
|
+
(function (GroupIngestionSource) {
|
|
410
|
+
GroupIngestionSource["Airdrop"] = "airdrop";
|
|
411
|
+
GroupIngestionSource["Scim"] = "scim";
|
|
412
|
+
})(GroupIngestionSource = exports.GroupIngestionSource || (exports.GroupIngestionSource = {}));
|
|
399
413
|
/** Type of the members in the group. */
|
|
400
414
|
var GroupMemberType;
|
|
401
415
|
(function (GroupMemberType) {
|
|
@@ -566,6 +580,10 @@ var PartType;
|
|
|
566
580
|
PartType["Feature"] = "feature";
|
|
567
581
|
PartType["Product"] = "product";
|
|
568
582
|
})(PartType = exports.PartType || (exports.PartType = {}));
|
|
583
|
+
var PreferencesType;
|
|
584
|
+
(function (PreferencesType) {
|
|
585
|
+
PreferencesType["UserPreferences"] = "user_preferences";
|
|
586
|
+
})(PreferencesType = exports.PreferencesType || (exports.PreferencesType = {}));
|
|
569
587
|
/** Status of the question answer. */
|
|
570
588
|
var QuestionAnswerStatus;
|
|
571
589
|
(function (QuestionAnswerStatus) {
|
|
@@ -778,6 +796,7 @@ var SlasFilterAppliesToOperatorType;
|
|
|
778
796
|
/** Logical grouping of snap widgets. Useful for filtering. */
|
|
779
797
|
var SnapWidgetNamespace;
|
|
780
798
|
(function (SnapWidgetNamespace) {
|
|
799
|
+
SnapWidgetNamespace["AiAssistantMessage"] = "ai_assistant_message";
|
|
781
800
|
SnapWidgetNamespace["CommentSuggestionReplies"] = "comment_suggestion_replies";
|
|
782
801
|
SnapWidgetNamespace["EmailPreview"] = "email_preview";
|
|
783
802
|
SnapWidgetNamespace["LinkPreview"] = "link_preview";
|
|
@@ -1017,6 +1036,12 @@ var WebhookEventType;
|
|
|
1017
1036
|
WebhookEventType["SlaTrackerCreated"] = "sla_tracker_created";
|
|
1018
1037
|
WebhookEventType["SlaTrackerDeleted"] = "sla_tracker_deleted";
|
|
1019
1038
|
WebhookEventType["SlaTrackerUpdated"] = "sla_tracker_updated";
|
|
1039
|
+
WebhookEventType["SurveyCreated"] = "survey_created";
|
|
1040
|
+
WebhookEventType["SurveyDeleted"] = "survey_deleted";
|
|
1041
|
+
WebhookEventType["SurveyResponseCreated"] = "survey_response_created";
|
|
1042
|
+
WebhookEventType["SurveyResponseDeleted"] = "survey_response_deleted";
|
|
1043
|
+
WebhookEventType["SurveyResponseUpdated"] = "survey_response_updated";
|
|
1044
|
+
WebhookEventType["SurveyUpdated"] = "survey_updated";
|
|
1020
1045
|
WebhookEventType["TagCreated"] = "tag_created";
|
|
1021
1046
|
WebhookEventType["TagDeleted"] = "tag_deleted";
|
|
1022
1047
|
WebhookEventType["TagUpdated"] = "tag_updated";
|
|
@@ -2355,6 +2380,24 @@ class Api extends HttpClient {
|
|
|
2355
2380
|
* @secure
|
|
2356
2381
|
*/
|
|
2357
2382
|
this.partsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/parts.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2383
|
+
/**
|
|
2384
|
+
* @description Get the preferences object.
|
|
2385
|
+
*
|
|
2386
|
+
* @tags preferences
|
|
2387
|
+
* @name PreferencesGet
|
|
2388
|
+
* @request GET:/preferences.get
|
|
2389
|
+
* @secure
|
|
2390
|
+
*/
|
|
2391
|
+
this.preferencesGet = (query, params = {}) => this.request(Object.assign({ path: `/preferences.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2392
|
+
/**
|
|
2393
|
+
* @description Get the preferences object.
|
|
2394
|
+
*
|
|
2395
|
+
* @tags preferences
|
|
2396
|
+
* @name PreferencesGetPost
|
|
2397
|
+
* @request POST:/preferences.get
|
|
2398
|
+
* @secure
|
|
2399
|
+
*/
|
|
2400
|
+
this.preferencesGetPost = (data, params = {}) => this.request(Object.assign({ path: `/preferences.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2358
2401
|
/**
|
|
2359
2402
|
* @description Creates a question-answer.
|
|
2360
2403
|
*
|