@devrev/typescript-sdk 1.1.30 → 1.1.32
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.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.EventFetchedResult = 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.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 = exports.MetricDefinitionAppliesTo = 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 = exports.TimelineEntryVisibility = 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 = {}));
|
|
@@ -355,6 +357,12 @@ var ErrorUnauthorizedType;
|
|
|
355
357
|
(function (ErrorUnauthorizedType) {
|
|
356
358
|
ErrorUnauthorizedType["Unauthenticated"] = "unauthenticated";
|
|
357
359
|
})(ErrorUnauthorizedType = exports.ErrorUnauthorizedType || (exports.ErrorUnauthorizedType = {}));
|
|
360
|
+
var EventFetchedResult;
|
|
361
|
+
(function (EventFetchedResult) {
|
|
362
|
+
EventFetchedResult["Forbidden"] = "forbidden";
|
|
363
|
+
EventFetchedResult["NotFound"] = "not_found";
|
|
364
|
+
EventFetchedResult["Ok"] = "ok";
|
|
365
|
+
})(EventFetchedResult = exports.EventFetchedResult || (exports.EventFetchedResult = {}));
|
|
358
366
|
/**
|
|
359
367
|
* Status of the event source. Note that paused/blocked event sources
|
|
360
368
|
* return NotFound error on triggering.
|
|
@@ -387,6 +395,12 @@ var FieldValueType;
|
|
|
387
395
|
FieldValueType["TagSummary"] = "tag_summary";
|
|
388
396
|
FieldValueType["TagSummaryList"] = "tag_summary_list";
|
|
389
397
|
})(FieldValueType = exports.FieldValueType || (exports.FieldValueType = {}));
|
|
398
|
+
/** Preferred locale of the user. */
|
|
399
|
+
var GeneralPreferencesGroupPreferredLocale;
|
|
400
|
+
(function (GeneralPreferencesGroupPreferredLocale) {
|
|
401
|
+
GeneralPreferencesGroupPreferredLocale["EnUs"] = "en_us";
|
|
402
|
+
GeneralPreferencesGroupPreferredLocale["JaJp"] = "ja_jp";
|
|
403
|
+
})(GeneralPreferencesGroupPreferredLocale = exports.GeneralPreferencesGroupPreferredLocale || (exports.GeneralPreferencesGroupPreferredLocale = {}));
|
|
390
404
|
/** Event type of the notification. */
|
|
391
405
|
var GenericNotificationEventType;
|
|
392
406
|
(function (GenericNotificationEventType) {
|
|
@@ -396,6 +410,12 @@ var GenericNotificationEventType;
|
|
|
396
410
|
GenericNotificationEventType["Reminder"] = "reminder";
|
|
397
411
|
GenericNotificationEventType["Update"] = "update";
|
|
398
412
|
})(GenericNotificationEventType = exports.GenericNotificationEventType || (exports.GenericNotificationEventType = {}));
|
|
413
|
+
/** Creation source of the group. */
|
|
414
|
+
var GroupIngestionSource;
|
|
415
|
+
(function (GroupIngestionSource) {
|
|
416
|
+
GroupIngestionSource["Airdrop"] = "airdrop";
|
|
417
|
+
GroupIngestionSource["Scim"] = "scim";
|
|
418
|
+
})(GroupIngestionSource = exports.GroupIngestionSource || (exports.GroupIngestionSource = {}));
|
|
399
419
|
/** Type of the members in the group. */
|
|
400
420
|
var GroupMemberType;
|
|
401
421
|
(function (GroupMemberType) {
|
|
@@ -566,6 +586,10 @@ var PartType;
|
|
|
566
586
|
PartType["Feature"] = "feature";
|
|
567
587
|
PartType["Product"] = "product";
|
|
568
588
|
})(PartType = exports.PartType || (exports.PartType = {}));
|
|
589
|
+
var PreferencesType;
|
|
590
|
+
(function (PreferencesType) {
|
|
591
|
+
PreferencesType["UserPreferences"] = "user_preferences";
|
|
592
|
+
})(PreferencesType = exports.PreferencesType || (exports.PreferencesType = {}));
|
|
569
593
|
/** Status of the question answer. */
|
|
570
594
|
var QuestionAnswerStatus;
|
|
571
595
|
(function (QuestionAnswerStatus) {
|
|
@@ -778,6 +802,7 @@ var SlasFilterAppliesToOperatorType;
|
|
|
778
802
|
/** Logical grouping of snap widgets. Useful for filtering. */
|
|
779
803
|
var SnapWidgetNamespace;
|
|
780
804
|
(function (SnapWidgetNamespace) {
|
|
805
|
+
SnapWidgetNamespace["AiAssistantMessage"] = "ai_assistant_message";
|
|
781
806
|
SnapWidgetNamespace["CommentSuggestionReplies"] = "comment_suggestion_replies";
|
|
782
807
|
SnapWidgetNamespace["EmailPreview"] = "email_preview";
|
|
783
808
|
SnapWidgetNamespace["LinkPreview"] = "link_preview";
|
|
@@ -866,6 +891,7 @@ var TimelineChangeEventEventType;
|
|
|
866
891
|
/** The type of the body to use for the comment. */
|
|
867
892
|
var TimelineCommentBodyType;
|
|
868
893
|
(function (TimelineCommentBodyType) {
|
|
894
|
+
TimelineCommentBodyType["Data"] = "data";
|
|
869
895
|
TimelineCommentBodyType["SnapKit"] = "snap_kit";
|
|
870
896
|
TimelineCommentBodyType["SnapWidget"] = "snap_widget";
|
|
871
897
|
TimelineCommentBodyType["Text"] = "text";
|
|
@@ -907,6 +933,8 @@ var TimelineEntryObjectType;
|
|
|
907
933
|
/** Display panels for the Timeline entry. */
|
|
908
934
|
var TimelineEntryPanel;
|
|
909
935
|
(function (TimelineEntryPanel) {
|
|
936
|
+
TimelineEntryPanel["Alerts"] = "alerts";
|
|
937
|
+
TimelineEntryPanel["Broadcasts"] = "broadcasts";
|
|
910
938
|
TimelineEntryPanel["CustomerChat"] = "customer_chat";
|
|
911
939
|
TimelineEntryPanel["Discussions"] = "discussions";
|
|
912
940
|
TimelineEntryPanel["Events"] = "events";
|
|
@@ -1017,6 +1045,12 @@ var WebhookEventType;
|
|
|
1017
1045
|
WebhookEventType["SlaTrackerCreated"] = "sla_tracker_created";
|
|
1018
1046
|
WebhookEventType["SlaTrackerDeleted"] = "sla_tracker_deleted";
|
|
1019
1047
|
WebhookEventType["SlaTrackerUpdated"] = "sla_tracker_updated";
|
|
1048
|
+
WebhookEventType["SurveyCreated"] = "survey_created";
|
|
1049
|
+
WebhookEventType["SurveyDeleted"] = "survey_deleted";
|
|
1050
|
+
WebhookEventType["SurveyResponseCreated"] = "survey_response_created";
|
|
1051
|
+
WebhookEventType["SurveyResponseDeleted"] = "survey_response_deleted";
|
|
1052
|
+
WebhookEventType["SurveyResponseUpdated"] = "survey_response_updated";
|
|
1053
|
+
WebhookEventType["SurveyUpdated"] = "survey_updated";
|
|
1020
1054
|
WebhookEventType["TagCreated"] = "tag_created";
|
|
1021
1055
|
WebhookEventType["TagDeleted"] = "tag_deleted";
|
|
1022
1056
|
WebhookEventType["TagUpdated"] = "tag_updated";
|
|
@@ -1029,6 +1063,7 @@ var WebhookEventType;
|
|
|
1029
1063
|
WebhookEventType["WebhookUpdated"] = "webhook_updated";
|
|
1030
1064
|
WebhookEventType["WorkCreated"] = "work_created";
|
|
1031
1065
|
WebhookEventType["WorkDeleted"] = "work_deleted";
|
|
1066
|
+
WebhookEventType["WorkFetched"] = "work_fetched";
|
|
1032
1067
|
WebhookEventType["WorkUpdated"] = "work_updated";
|
|
1033
1068
|
})(WebhookEventType = exports.WebhookEventType || (exports.WebhookEventType = {}));
|
|
1034
1069
|
/** The status of the webhook. */
|
|
@@ -2094,6 +2129,60 @@ class Api extends HttpClient {
|
|
|
2094
2129
|
* @secure
|
|
2095
2130
|
*/
|
|
2096
2131
|
this.keyringsCreateCallbackPost = (data, params = {}) => this.request(Object.assign({ path: `/keyrings.authorize`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
2132
|
+
/**
|
|
2133
|
+
* @description Creates a custom link type.
|
|
2134
|
+
*
|
|
2135
|
+
* @tags customization
|
|
2136
|
+
* @name CustomLinkTypeCreate
|
|
2137
|
+
* @request POST:/link-types.custom.create
|
|
2138
|
+
* @secure
|
|
2139
|
+
*/
|
|
2140
|
+
this.customLinkTypeCreate = (data, params = {}) => this.request(Object.assign({ path: `/link-types.custom.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2141
|
+
/**
|
|
2142
|
+
* @description Gets a custom link type.
|
|
2143
|
+
*
|
|
2144
|
+
* @tags customization
|
|
2145
|
+
* @name CustomLinkTypeGet
|
|
2146
|
+
* @request GET:/link-types.custom.get
|
|
2147
|
+
* @secure
|
|
2148
|
+
*/
|
|
2149
|
+
this.customLinkTypeGet = (query, params = {}) => this.request(Object.assign({ path: `/link-types.custom.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2150
|
+
/**
|
|
2151
|
+
* @description Gets a custom link type.
|
|
2152
|
+
*
|
|
2153
|
+
* @tags customization
|
|
2154
|
+
* @name CustomLinkTypeGetPost
|
|
2155
|
+
* @request POST:/link-types.custom.get
|
|
2156
|
+
* @secure
|
|
2157
|
+
*/
|
|
2158
|
+
this.customLinkTypeGetPost = (data, params = {}) => this.request(Object.assign({ path: `/link-types.custom.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2159
|
+
/**
|
|
2160
|
+
* @description Lists custom link types.
|
|
2161
|
+
*
|
|
2162
|
+
* @tags customization
|
|
2163
|
+
* @name CustomLinkTypeList
|
|
2164
|
+
* @request GET:/link-types.custom.list
|
|
2165
|
+
* @secure
|
|
2166
|
+
*/
|
|
2167
|
+
this.customLinkTypeList = (query, params = {}) => this.request(Object.assign({ path: `/link-types.custom.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2168
|
+
/**
|
|
2169
|
+
* @description Lists custom link types.
|
|
2170
|
+
*
|
|
2171
|
+
* @tags customization
|
|
2172
|
+
* @name CustomLinkTypeListPost
|
|
2173
|
+
* @request POST:/link-types.custom.list
|
|
2174
|
+
* @secure
|
|
2175
|
+
*/
|
|
2176
|
+
this.customLinkTypeListPost = (data, params = {}) => this.request(Object.assign({ path: `/link-types.custom.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2177
|
+
/**
|
|
2178
|
+
* @description Updates a custom link type.
|
|
2179
|
+
*
|
|
2180
|
+
* @tags customization
|
|
2181
|
+
* @name CustomLinkTypeUpdate
|
|
2182
|
+
* @request POST:/link-types.custom.update
|
|
2183
|
+
* @secure
|
|
2184
|
+
*/
|
|
2185
|
+
this.customLinkTypeUpdate = (data, params = {}) => this.request(Object.assign({ path: `/link-types.custom.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2097
2186
|
/**
|
|
2098
2187
|
* @description Creates a link between two objects to indicate a relationship.
|
|
2099
2188
|
*
|
|
@@ -2355,6 +2444,24 @@ class Api extends HttpClient {
|
|
|
2355
2444
|
* @secure
|
|
2356
2445
|
*/
|
|
2357
2446
|
this.partsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/parts.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2447
|
+
/**
|
|
2448
|
+
* @description Get the preferences object.
|
|
2449
|
+
*
|
|
2450
|
+
* @tags preferences
|
|
2451
|
+
* @name PreferencesGet
|
|
2452
|
+
* @request GET:/preferences.get
|
|
2453
|
+
* @secure
|
|
2454
|
+
*/
|
|
2455
|
+
this.preferencesGet = (query, params = {}) => this.request(Object.assign({ path: `/preferences.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2456
|
+
/**
|
|
2457
|
+
* @description Get the preferences object.
|
|
2458
|
+
*
|
|
2459
|
+
* @tags preferences
|
|
2460
|
+
* @name PreferencesGetPost
|
|
2461
|
+
* @request POST:/preferences.get
|
|
2462
|
+
* @secure
|
|
2463
|
+
*/
|
|
2464
|
+
this.preferencesGetPost = (data, params = {}) => this.request(Object.assign({ path: `/preferences.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2358
2465
|
/**
|
|
2359
2466
|
* @description Creates a question-answer.
|
|
2360
2467
|
*
|
|
@@ -3318,6 +3425,15 @@ class Api extends HttpClient {
|
|
|
3318
3425
|
* @secure
|
|
3319
3426
|
*/
|
|
3320
3427
|
this.webhooksDelete = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
3428
|
+
/**
|
|
3429
|
+
* @description Fetches an object via webhook.
|
|
3430
|
+
*
|
|
3431
|
+
* @tags webhooks
|
|
3432
|
+
* @name WebhooksFetch
|
|
3433
|
+
* @request POST:/webhooks.fetch
|
|
3434
|
+
* @secure
|
|
3435
|
+
*/
|
|
3436
|
+
this.webhooksFetch = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.fetch`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
3321
3437
|
/**
|
|
3322
3438
|
* @description Gets the requested webhook's information.
|
|
3323
3439
|
*
|