@devrev/typescript-sdk 1.1.28 → 1.1.30
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 = void 0;
|
|
36
|
+
exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MemberType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupType = exports.GroupMemberType = exports.GenericNotificationEventType = 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.UserState = exports.UomMetricScope = exports.UnitType = 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.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = 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 = void 0;
|
|
39
39
|
var AccessLevel;
|
|
40
40
|
(function (AccessLevel) {
|
|
41
41
|
AccessLevel["External"] = "external";
|
|
@@ -85,6 +85,12 @@ var ArticleStatus;
|
|
|
85
85
|
ArticleStatus["Published"] = "published";
|
|
86
86
|
ArticleStatus["ReviewNeeded"] = "review_needed";
|
|
87
87
|
})(ArticleStatus = exports.ArticleStatus || (exports.ArticleStatus = {}));
|
|
88
|
+
/** Type of the article. */
|
|
89
|
+
var ArticleType;
|
|
90
|
+
(function (ArticleType) {
|
|
91
|
+
ArticleType["Article"] = "article";
|
|
92
|
+
ArticleType["ContentBlock"] = "content_block";
|
|
93
|
+
})(ArticleType = exports.ArticleType || (exports.ArticleType = {}));
|
|
88
94
|
var AtomType;
|
|
89
95
|
(function (AtomType) {
|
|
90
96
|
AtomType["Account"] = "account";
|
|
@@ -108,6 +114,7 @@ var AtomType;
|
|
|
108
114
|
AtomType["Task"] = "task";
|
|
109
115
|
AtomType["TenantFragment"] = "tenant_fragment";
|
|
110
116
|
AtomType["Ticket"] = "ticket";
|
|
117
|
+
AtomType["TimelineChangeEvent"] = "timeline_change_event";
|
|
111
118
|
AtomType["TimelineComment"] = "timeline_comment";
|
|
112
119
|
AtomType["Webhook"] = "webhook";
|
|
113
120
|
})(AtomType = exports.AtomType || (exports.AtomType = {}));
|
|
@@ -168,11 +175,11 @@ var AuthTokenSubjectTokenType;
|
|
|
168
175
|
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeJwtAuth0"] = "urn:devrev:params:oauth:token-type:jwt:auth0";
|
|
169
176
|
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeJwtDev"] = "urn:devrev:params:oauth:token-type:jwt:dev";
|
|
170
177
|
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeRat"] = "urn:devrev:params:oauth:token-type:rat";
|
|
178
|
+
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeRev"] = "urn:devrev:params:oauth:token-type:rev";
|
|
171
179
|
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeRevinfo"] = "urn:devrev:params:oauth:token-type:revinfo";
|
|
172
180
|
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeSession"] = "urn:devrev:params:oauth:token-type:session";
|
|
173
181
|
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeSysu"] = "urn:devrev:params:oauth:token-type:sysu";
|
|
174
182
|
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeUserinfo"] = "urn:devrev:params:oauth:token-type:userinfo";
|
|
175
|
-
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeUserinfoProfile"] = "urn:devrev:params:oauth:token-type:userinfo:profile";
|
|
176
183
|
AuthTokenSubjectTokenType["UrnIetfParamsOauthTokenTypeJwt"] = "urn:ietf:params:oauth:token-type:jwt";
|
|
177
184
|
})(AuthTokenSubjectTokenType = exports.AuthTokenSubjectTokenType || (exports.AuthTokenSubjectTokenType = {}));
|
|
178
185
|
/** The type of the issued token. Bearer is the only supported token type. */
|
|
@@ -276,6 +283,8 @@ var DevUserJobTitle;
|
|
|
276
283
|
var EngagementType;
|
|
277
284
|
(function (EngagementType) {
|
|
278
285
|
EngagementType["Call"] = "call";
|
|
286
|
+
EngagementType["Conversation"] = "conversation";
|
|
287
|
+
EngagementType["Custom"] = "custom";
|
|
279
288
|
EngagementType["Default"] = "default";
|
|
280
289
|
EngagementType["Email"] = "email";
|
|
281
290
|
EngagementType["LinkedIn"] = "linked_in";
|
|
@@ -300,6 +309,7 @@ var ErrorBadRequestType;
|
|
|
300
309
|
ErrorBadRequestType["InvalidEnumValue"] = "invalid_enum_value";
|
|
301
310
|
ErrorBadRequestType["InvalidField"] = "invalid_field";
|
|
302
311
|
ErrorBadRequestType["InvalidId"] = "invalid_id";
|
|
312
|
+
ErrorBadRequestType["MergeWorksError"] = "merge_works_error";
|
|
303
313
|
ErrorBadRequestType["MissingDependency"] = "missing_dependency";
|
|
304
314
|
ErrorBadRequestType["MissingRequiredField"] = "missing_required_field";
|
|
305
315
|
ErrorBadRequestType["ParseError"] = "parse_error";
|
|
@@ -355,6 +365,37 @@ var EventSourceStatus;
|
|
|
355
365
|
EventSourceStatus["Blocked"] = "blocked";
|
|
356
366
|
EventSourceStatus["Paused"] = "paused";
|
|
357
367
|
})(EventSourceStatus = exports.EventSourceStatus || (exports.EventSourceStatus = {}));
|
|
368
|
+
var FieldValueType;
|
|
369
|
+
(function (FieldValueType) {
|
|
370
|
+
FieldValueType["Bool"] = "bool";
|
|
371
|
+
FieldValueType["BoolList"] = "bool_list";
|
|
372
|
+
FieldValueType["Composite"] = "composite";
|
|
373
|
+
FieldValueType["CompositeList"] = "composite_list";
|
|
374
|
+
FieldValueType["Date"] = "date";
|
|
375
|
+
FieldValueType["DateList"] = "date_list";
|
|
376
|
+
FieldValueType["DateTime"] = "date_time";
|
|
377
|
+
FieldValueType["DateTimeList"] = "date_time_list";
|
|
378
|
+
FieldValueType["Double"] = "double";
|
|
379
|
+
FieldValueType["DoubleList"] = "double_list";
|
|
380
|
+
FieldValueType["Id"] = "id";
|
|
381
|
+
FieldValueType["IdList"] = "id_list";
|
|
382
|
+
FieldValueType["Int"] = "int";
|
|
383
|
+
FieldValueType["IntList"] = "int_list";
|
|
384
|
+
FieldValueType["Stage"] = "stage";
|
|
385
|
+
FieldValueType["String"] = "string";
|
|
386
|
+
FieldValueType["StringList"] = "string_list";
|
|
387
|
+
FieldValueType["TagSummary"] = "tag_summary";
|
|
388
|
+
FieldValueType["TagSummaryList"] = "tag_summary_list";
|
|
389
|
+
})(FieldValueType = exports.FieldValueType || (exports.FieldValueType = {}));
|
|
390
|
+
/** Event type of the notification. */
|
|
391
|
+
var GenericNotificationEventType;
|
|
392
|
+
(function (GenericNotificationEventType) {
|
|
393
|
+
GenericNotificationEventType["Alert"] = "alert";
|
|
394
|
+
GenericNotificationEventType["Assignment"] = "assignment";
|
|
395
|
+
GenericNotificationEventType["Mention"] = "mention";
|
|
396
|
+
GenericNotificationEventType["Reminder"] = "reminder";
|
|
397
|
+
GenericNotificationEventType["Update"] = "update";
|
|
398
|
+
})(GenericNotificationEventType = exports.GenericNotificationEventType || (exports.GenericNotificationEventType = {}));
|
|
358
399
|
/** Type of the members in the group. */
|
|
359
400
|
var GroupMemberType;
|
|
360
401
|
(function (GroupMemberType) {
|
|
@@ -397,10 +438,14 @@ var LinkEndpointType;
|
|
|
397
438
|
/** Type of link used to define the relationship. */
|
|
398
439
|
var LinkType;
|
|
399
440
|
(function (LinkType) {
|
|
441
|
+
LinkType["CustomLink"] = "custom_link";
|
|
400
442
|
LinkType["DevelopedWith"] = "developed_with";
|
|
401
443
|
LinkType["Imports"] = "imports";
|
|
444
|
+
LinkType["IsAnalyzedBy"] = "is_analyzed_by";
|
|
445
|
+
LinkType["IsConvertedTo"] = "is_converted_to";
|
|
402
446
|
LinkType["IsDependentOn"] = "is_dependent_on";
|
|
403
447
|
LinkType["IsDuplicateOf"] = "is_duplicate_of";
|
|
448
|
+
LinkType["IsMergedInto"] = "is_merged_into";
|
|
404
449
|
LinkType["IsParentOf"] = "is_parent_of";
|
|
405
450
|
LinkType["IsPartOf"] = "is_part_of";
|
|
406
451
|
LinkType["IsRelatedTo"] = "is_related_to";
|
|
@@ -540,6 +585,7 @@ var SchemaFieldDescriptorArrayTypeBaseType;
|
|
|
540
585
|
SchemaFieldDescriptorArrayTypeBaseType["Id"] = "id";
|
|
541
586
|
SchemaFieldDescriptorArrayTypeBaseType["Int"] = "int";
|
|
542
587
|
SchemaFieldDescriptorArrayTypeBaseType["RichText"] = "rich_text";
|
|
588
|
+
SchemaFieldDescriptorArrayTypeBaseType["Struct"] = "struct";
|
|
543
589
|
SchemaFieldDescriptorArrayTypeBaseType["Text"] = "text";
|
|
544
590
|
SchemaFieldDescriptorArrayTypeBaseType["Timestamp"] = "timestamp";
|
|
545
591
|
SchemaFieldDescriptorArrayTypeBaseType["Tokens"] = "tokens";
|
|
@@ -556,6 +602,7 @@ var SchemaFieldDescriptorFieldType;
|
|
|
556
602
|
SchemaFieldDescriptorFieldType["Id"] = "id";
|
|
557
603
|
SchemaFieldDescriptorFieldType["Int"] = "int";
|
|
558
604
|
SchemaFieldDescriptorFieldType["RichText"] = "rich_text";
|
|
605
|
+
SchemaFieldDescriptorFieldType["Struct"] = "struct";
|
|
559
606
|
SchemaFieldDescriptorFieldType["Text"] = "text";
|
|
560
607
|
SchemaFieldDescriptorFieldType["Timestamp"] = "timestamp";
|
|
561
608
|
SchemaFieldDescriptorFieldType["Tokens"] = "tokens";
|
|
@@ -567,10 +614,13 @@ var SearchHybridNamespace;
|
|
|
567
614
|
(function (SearchHybridNamespace) {
|
|
568
615
|
SearchHybridNamespace["Article"] = "article";
|
|
569
616
|
SearchHybridNamespace["Conversation"] = "conversation";
|
|
617
|
+
SearchHybridNamespace["Dataset"] = "dataset";
|
|
618
|
+
SearchHybridNamespace["Incident"] = "incident";
|
|
570
619
|
SearchHybridNamespace["Issue"] = "issue";
|
|
571
620
|
SearchHybridNamespace["Part"] = "part";
|
|
572
621
|
SearchHybridNamespace["QuestionAnswer"] = "question_answer";
|
|
573
622
|
SearchHybridNamespace["Ticket"] = "ticket";
|
|
623
|
+
SearchHybridNamespace["Widget"] = "widget";
|
|
574
624
|
SearchHybridNamespace["Work"] = "work";
|
|
575
625
|
})(SearchHybridNamespace = exports.SearchHybridNamespace || (exports.SearchHybridNamespace = {}));
|
|
576
626
|
/** The namespaces to search in. */
|
|
@@ -639,6 +689,10 @@ var SearchSortOrderParam;
|
|
|
639
689
|
SearchSortOrderParam["Asc"] = "asc";
|
|
640
690
|
SearchSortOrderParam["Desc"] = "desc";
|
|
641
691
|
})(SearchSortOrderParam = exports.SearchSortOrderParam || (exports.SearchSortOrderParam = {}));
|
|
692
|
+
var SendNotificationType;
|
|
693
|
+
(function (SendNotificationType) {
|
|
694
|
+
SendNotificationType["GenericNotification"] = "generic_notification";
|
|
695
|
+
})(SendNotificationType = exports.SendNotificationType || (exports.SendNotificationType = {}));
|
|
642
696
|
/**
|
|
643
697
|
* The object types on which the SLA applies. An external SLA can apply to
|
|
644
698
|
* multiple object types, but an internal SLA can apply to only one object
|
|
@@ -790,6 +844,7 @@ var TicketChannels;
|
|
|
790
844
|
TicketChannels["Plug"] = "plug";
|
|
791
845
|
TicketChannels["Slack"] = "slack";
|
|
792
846
|
TicketChannels["Twilio"] = "twilio";
|
|
847
|
+
TicketChannels["TwilioSms"] = "twilio_sms";
|
|
793
848
|
})(TicketChannels = exports.TicketChannels || (exports.TicketChannels = {}));
|
|
794
849
|
/** Severity of the ticket. */
|
|
795
850
|
var TicketSeverity;
|
|
@@ -799,6 +854,15 @@ var TicketSeverity;
|
|
|
799
854
|
TicketSeverity["Low"] = "low";
|
|
800
855
|
TicketSeverity["Medium"] = "medium";
|
|
801
856
|
})(TicketSeverity = exports.TicketSeverity || (exports.TicketSeverity = {}));
|
|
857
|
+
/** The type of the event. */
|
|
858
|
+
var TimelineChangeEventEventType;
|
|
859
|
+
(function (TimelineChangeEventEventType) {
|
|
860
|
+
TimelineChangeEventEventType["Annotated"] = "annotated";
|
|
861
|
+
TimelineChangeEventEventType["Created"] = "created";
|
|
862
|
+
TimelineChangeEventEventType["Deleted"] = "deleted";
|
|
863
|
+
TimelineChangeEventEventType["Linked"] = "linked";
|
|
864
|
+
TimelineChangeEventEventType["Updated"] = "updated";
|
|
865
|
+
})(TimelineChangeEventEventType = exports.TimelineChangeEventEventType || (exports.TimelineChangeEventEventType = {}));
|
|
802
866
|
/** The type of the body to use for the comment. */
|
|
803
867
|
var TimelineCommentBodyType;
|
|
804
868
|
(function (TimelineCommentBodyType) {
|
|
@@ -837,10 +901,19 @@ var TimelineEntryObjectType;
|
|
|
837
901
|
TimelineEntryObjectType["RevUser"] = "rev_user";
|
|
838
902
|
TimelineEntryObjectType["Task"] = "task";
|
|
839
903
|
TimelineEntryObjectType["Ticket"] = "ticket";
|
|
904
|
+
TimelineEntryObjectType["TimelineChangeEvent"] = "timeline_change_event";
|
|
840
905
|
TimelineEntryObjectType["TimelineComment"] = "timeline_comment";
|
|
841
906
|
})(TimelineEntryObjectType = exports.TimelineEntryObjectType || (exports.TimelineEntryObjectType = {}));
|
|
907
|
+
/** Display panels for the Timeline entry. */
|
|
908
|
+
var TimelineEntryPanel;
|
|
909
|
+
(function (TimelineEntryPanel) {
|
|
910
|
+
TimelineEntryPanel["CustomerChat"] = "customer_chat";
|
|
911
|
+
TimelineEntryPanel["Discussions"] = "discussions";
|
|
912
|
+
TimelineEntryPanel["Events"] = "events";
|
|
913
|
+
})(TimelineEntryPanel = exports.TimelineEntryPanel || (exports.TimelineEntryPanel = {}));
|
|
842
914
|
var TimelineEntryType;
|
|
843
915
|
(function (TimelineEntryType) {
|
|
916
|
+
TimelineEntryType["TimelineChangeEvent"] = "timeline_change_event";
|
|
844
917
|
TimelineEntryType["TimelineComment"] = "timeline_comment";
|
|
845
918
|
})(TimelineEntryType = exports.TimelineEntryType || (exports.TimelineEntryType = {}));
|
|
846
919
|
/**
|
|
@@ -924,6 +997,14 @@ var WebhookEventType;
|
|
|
924
997
|
WebhookEventType["DevUserCreated"] = "dev_user_created";
|
|
925
998
|
WebhookEventType["DevUserDeleted"] = "dev_user_deleted";
|
|
926
999
|
WebhookEventType["DevUserUpdated"] = "dev_user_updated";
|
|
1000
|
+
WebhookEventType["GroupCreated"] = "group_created";
|
|
1001
|
+
WebhookEventType["GroupDeleted"] = "group_deleted";
|
|
1002
|
+
WebhookEventType["GroupMemberAdded"] = "group_member_added";
|
|
1003
|
+
WebhookEventType["GroupMemberRemoved"] = "group_member_removed";
|
|
1004
|
+
WebhookEventType["GroupUpdated"] = "group_updated";
|
|
1005
|
+
WebhookEventType["LinkCreated"] = "link_created";
|
|
1006
|
+
WebhookEventType["LinkDeleted"] = "link_deleted";
|
|
1007
|
+
WebhookEventType["LinkUpdated"] = "link_updated";
|
|
927
1008
|
WebhookEventType["PartCreated"] = "part_created";
|
|
928
1009
|
WebhookEventType["PartDeleted"] = "part_deleted";
|
|
929
1010
|
WebhookEventType["PartUpdated"] = "part_updated";
|
|
@@ -1420,6 +1501,51 @@ class Api extends HttpClient {
|
|
|
1420
1501
|
* @secure
|
|
1421
1502
|
*/
|
|
1422
1503
|
this.codeChangesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/code-changes.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1504
|
+
/**
|
|
1505
|
+
* @description Create the content template.
|
|
1506
|
+
*
|
|
1507
|
+
* @tags notifications
|
|
1508
|
+
* @name ContentTemplateCreate
|
|
1509
|
+
* @request POST:/content-template.create
|
|
1510
|
+
* @secure
|
|
1511
|
+
*/
|
|
1512
|
+
this.contentTemplateCreate = (data, params = {}) => this.request(Object.assign({ path: `/content-template.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1513
|
+
/**
|
|
1514
|
+
* @description Get the content template.
|
|
1515
|
+
*
|
|
1516
|
+
* @tags notifications
|
|
1517
|
+
* @name ContentTemplateGet
|
|
1518
|
+
* @request GET:/content-template.get
|
|
1519
|
+
* @secure
|
|
1520
|
+
*/
|
|
1521
|
+
this.contentTemplateGet = (query, params = {}) => this.request(Object.assign({ path: `/content-template.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1522
|
+
/**
|
|
1523
|
+
* @description Get the content template.
|
|
1524
|
+
*
|
|
1525
|
+
* @tags notifications
|
|
1526
|
+
* @name ContentTemplateGetPost
|
|
1527
|
+
* @request POST:/content-template.get
|
|
1528
|
+
* @secure
|
|
1529
|
+
*/
|
|
1530
|
+
this.contentTemplateGetPost = (data, params = {}) => this.request(Object.assign({ path: `/content-template.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1531
|
+
/**
|
|
1532
|
+
* @description Lists the content templates.
|
|
1533
|
+
*
|
|
1534
|
+
* @tags notifications
|
|
1535
|
+
* @name ContentTemplateList
|
|
1536
|
+
* @request GET:/content-template.list
|
|
1537
|
+
* @secure
|
|
1538
|
+
*/
|
|
1539
|
+
this.contentTemplateList = (query, params = {}) => this.request(Object.assign({ path: `/content-template.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1540
|
+
/**
|
|
1541
|
+
* @description Lists the content templates.
|
|
1542
|
+
*
|
|
1543
|
+
* @tags notifications
|
|
1544
|
+
* @name ContentTemplateListPost
|
|
1545
|
+
* @request POST:/content-template.list
|
|
1546
|
+
* @secure
|
|
1547
|
+
*/
|
|
1548
|
+
this.contentTemplateListPost = (data, params = {}) => this.request(Object.assign({ path: `/content-template.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1423
1549
|
/**
|
|
1424
1550
|
* @description Creates a conversation.
|
|
1425
1551
|
*
|
|
@@ -1870,6 +1996,104 @@ class Api extends HttpClient {
|
|
|
1870
1996
|
* @secure
|
|
1871
1997
|
*/
|
|
1872
1998
|
this.groupsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/groups.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1999
|
+
/**
|
|
2000
|
+
* @description Creates an incident.
|
|
2001
|
+
*
|
|
2002
|
+
* @tags operate
|
|
2003
|
+
* @name IncidentsCreate
|
|
2004
|
+
* @request POST:/incidents.create
|
|
2005
|
+
* @secure
|
|
2006
|
+
*/
|
|
2007
|
+
this.incidentsCreate = (data, params = {}) => this.request(Object.assign({ path: `/incidents.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2008
|
+
/**
|
|
2009
|
+
* @description Deletes an incident.
|
|
2010
|
+
*
|
|
2011
|
+
* @tags operate
|
|
2012
|
+
* @name IncidentsDelete
|
|
2013
|
+
* @request POST:/incidents.delete
|
|
2014
|
+
* @secure
|
|
2015
|
+
*/
|
|
2016
|
+
this.incidentsDelete = (data, params = {}) => this.request(Object.assign({ path: `/incidents.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2017
|
+
/**
|
|
2018
|
+
* @description Gets an incident.
|
|
2019
|
+
*
|
|
2020
|
+
* @tags operate
|
|
2021
|
+
* @name IncidentsGet
|
|
2022
|
+
* @request GET:/incidents.get
|
|
2023
|
+
* @secure
|
|
2024
|
+
*/
|
|
2025
|
+
this.incidentsGet = (query, params = {}) => this.request(Object.assign({ path: `/incidents.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2026
|
+
/**
|
|
2027
|
+
* @description Gets an incident.
|
|
2028
|
+
*
|
|
2029
|
+
* @tags operate
|
|
2030
|
+
* @name IncidentsGetPost
|
|
2031
|
+
* @request POST:/incidents.get
|
|
2032
|
+
* @secure
|
|
2033
|
+
*/
|
|
2034
|
+
this.incidentsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/incidents.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2035
|
+
/**
|
|
2036
|
+
* @description Lists collections of incidents by groups.
|
|
2037
|
+
*
|
|
2038
|
+
* @tags operate
|
|
2039
|
+
* @name IncidentsGroup
|
|
2040
|
+
* @request GET:/incidents.group
|
|
2041
|
+
* @secure
|
|
2042
|
+
*/
|
|
2043
|
+
this.incidentsGroup = (query, params = {}) => this.request(Object.assign({ path: `/incidents.group`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2044
|
+
/**
|
|
2045
|
+
* @description Lists collections of incidents by groups.
|
|
2046
|
+
*
|
|
2047
|
+
* @tags operate
|
|
2048
|
+
* @name IncidentsGroupPost
|
|
2049
|
+
* @request POST:/incidents.group
|
|
2050
|
+
* @secure
|
|
2051
|
+
*/
|
|
2052
|
+
this.incidentsGroupPost = (data, params = {}) => this.request(Object.assign({ path: `/incidents.group`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2053
|
+
/**
|
|
2054
|
+
* @description Lists incidents.
|
|
2055
|
+
*
|
|
2056
|
+
* @tags operate
|
|
2057
|
+
* @name IncidentsList
|
|
2058
|
+
* @request GET:/incidents.list
|
|
2059
|
+
* @secure
|
|
2060
|
+
*/
|
|
2061
|
+
this.incidentsList = (query, params = {}) => this.request(Object.assign({ path: `/incidents.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2062
|
+
/**
|
|
2063
|
+
* @description Lists incidents.
|
|
2064
|
+
*
|
|
2065
|
+
* @tags operate
|
|
2066
|
+
* @name IncidentsListPost
|
|
2067
|
+
* @request POST:/incidents.list
|
|
2068
|
+
* @secure
|
|
2069
|
+
*/
|
|
2070
|
+
this.incidentsListPost = (data, params = {}) => this.request(Object.assign({ path: `/incidents.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2071
|
+
/**
|
|
2072
|
+
* @description Updates an incident.
|
|
2073
|
+
*
|
|
2074
|
+
* @tags operate
|
|
2075
|
+
* @name IncidentsUpdate
|
|
2076
|
+
* @request POST:/incidents.update
|
|
2077
|
+
* @secure
|
|
2078
|
+
*/
|
|
2079
|
+
this.incidentsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/incidents.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2080
|
+
/**
|
|
2081
|
+
* @description OAuth2 authorization callback.
|
|
2082
|
+
*
|
|
2083
|
+
* @tags keyring
|
|
2084
|
+
* @name KeyringsCreateCallback
|
|
2085
|
+
* @request GET:/keyrings.authorize
|
|
2086
|
+
*/
|
|
2087
|
+
this.keyringsCreateCallback = (query, params = {}) => this.request(Object.assign({ path: `/keyrings.authorize`, method: 'GET', query: query }, params));
|
|
2088
|
+
/**
|
|
2089
|
+
* @description OAuth2 authorization callback.
|
|
2090
|
+
*
|
|
2091
|
+
* @tags keyring
|
|
2092
|
+
* @name KeyringsCreateCallbackPost
|
|
2093
|
+
* @request POST:/keyrings.authorize
|
|
2094
|
+
* @secure
|
|
2095
|
+
*/
|
|
2096
|
+
this.keyringsCreateCallbackPost = (data, params = {}) => this.request(Object.assign({ path: `/keyrings.authorize`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
1873
2097
|
/**
|
|
1874
2098
|
* @description Creates a link between two objects to indicate a relationship.
|
|
1875
2099
|
*
|
|
@@ -1951,6 +2175,15 @@ class Api extends HttpClient {
|
|
|
1951
2175
|
* @secure
|
|
1952
2176
|
*/
|
|
1953
2177
|
this.metricsDevrevIngest = (data, params = {}) => this.request(Object.assign({ path: `/metrics.devrev.ingest`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
2178
|
+
/**
|
|
2179
|
+
* @description Generate a notification.
|
|
2180
|
+
*
|
|
2181
|
+
* @tags notifications
|
|
2182
|
+
* @name NotificationsSend
|
|
2183
|
+
* @request POST:/notifications.send
|
|
2184
|
+
* @secure
|
|
2185
|
+
*/
|
|
2186
|
+
this.notificationsSend = (data, params = {}) => this.request(Object.assign({ path: `/notifications.send`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1954
2187
|
/**
|
|
1955
2188
|
* @description Creates an organization schedule fragment.
|
|
1956
2189
|
*
|
|
@@ -2311,6 +2544,24 @@ class Api extends HttpClient {
|
|
|
2311
2544
|
* @secure
|
|
2312
2545
|
*/
|
|
2313
2546
|
this.revUsersListPost = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2547
|
+
/**
|
|
2548
|
+
* @description Scans through all Rev users.
|
|
2549
|
+
*
|
|
2550
|
+
* @tags rev-users
|
|
2551
|
+
* @name RevUsersScan
|
|
2552
|
+
* @request GET:/rev-users.scan
|
|
2553
|
+
* @secure
|
|
2554
|
+
*/
|
|
2555
|
+
this.revUsersScan = (query, params = {}) => this.request(Object.assign({ path: `/rev-users.scan`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2556
|
+
/**
|
|
2557
|
+
* @description Scans through all Rev users.
|
|
2558
|
+
*
|
|
2559
|
+
* @tags rev-users
|
|
2560
|
+
* @name RevUsersScanPost
|
|
2561
|
+
* @request POST:/rev-users.scan
|
|
2562
|
+
* @secure
|
|
2563
|
+
*/
|
|
2564
|
+
this.revUsersScanPost = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.scan`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2314
2565
|
/**
|
|
2315
2566
|
* @description Unlinks a rev user from a rev org.
|
|
2316
2567
|
*
|
|
@@ -2608,6 +2859,15 @@ class Api extends HttpClient {
|
|
|
2608
2859
|
* @secure
|
|
2609
2860
|
*/
|
|
2610
2861
|
this.snapInsResourcesPost = (data, params = {}) => this.request(Object.assign({ path: `/snap-ins.resources`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2862
|
+
/**
|
|
2863
|
+
* @description Updates a snap-in.
|
|
2864
|
+
*
|
|
2865
|
+
* @tags snap-ins
|
|
2866
|
+
* @name SnapInsUpdate
|
|
2867
|
+
* @request POST:/snap-ins.update
|
|
2868
|
+
* @secure
|
|
2869
|
+
*/
|
|
2870
|
+
this.snapInsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/snap-ins.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2611
2871
|
/**
|
|
2612
2872
|
* @description Create a snap widget object.
|
|
2613
2873
|
*
|