@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,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 = void 0;
|
|
36
|
+
exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupedVistaFilterType = exports.GroupType = exports.GroupMemberType = exports.GroupItemType = exports.GroupIngestionSource = exports.EventTimelineEntryUpdatedReactionAction = exports.EventFetchedResult = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.ErrorBadRequestCustomizationValidationErrorSubtype = exports.DynamicVistaFilterType = exports.DevUsersCreateRequestStateEnumValue = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.Definedness = exports.DateTimePresetType = exports.DateFilterType = exports.ConversationsVistaGroupItemType = exports.ConversationsCreateRequestTypeValue = exports.CommandSurfaceSurface = exports.CommandSurfaceObjectTypes = exports.CommandStatus = exports.CommandActionTemplateType = exports.CommandActionExecutorType = exports.CodeChangeSource = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.ArtifactConfigurationSet = exports.ArticleType = exports.ArticleStatus = exports.ArticleContentFormat = exports.AccessLevel = void 0;
|
|
37
|
+
exports.VistaGroupItemGroupObjectType = exports.VistaFlavor = exports.UserType = exports.UserState = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TicketChannels = exports.SyncRunMode = exports.SyncProgressState = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapKitActionRequestElementTypeValue = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaTrackerAppliesToType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.ReactionsUpdateRequestAction = exports.QuestionAnswerStatus = exports.PartsVistaGroupItemType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MetricActionExecuteRequestAction = exports.MemberType = exports.MeetingState = exports.MeetingChannel = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = void 0;
|
|
38
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.WorksVistaGroupItemType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.WebCrawlerJobsControlRequestAction = exports.WebCrawlerJobState = exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = void 0;
|
|
39
39
|
var AccessLevel;
|
|
40
40
|
(function (AccessLevel) {
|
|
41
41
|
AccessLevel["External"] = "external";
|
|
@@ -239,6 +239,12 @@ var ConversationsCreateRequestTypeValue;
|
|
|
239
239
|
(function (ConversationsCreateRequestTypeValue) {
|
|
240
240
|
ConversationsCreateRequestTypeValue["Support"] = "support";
|
|
241
241
|
})(ConversationsCreateRequestTypeValue = exports.ConversationsCreateRequestTypeValue || (exports.ConversationsCreateRequestTypeValue = {}));
|
|
242
|
+
/** Type of conversations vista group item. */
|
|
243
|
+
var ConversationsVistaGroupItemType;
|
|
244
|
+
(function (ConversationsVistaGroupItemType) {
|
|
245
|
+
ConversationsVistaGroupItemType["Curated"] = "curated";
|
|
246
|
+
ConversationsVistaGroupItemType["Dynamic"] = "dynamic";
|
|
247
|
+
})(ConversationsVistaGroupItemType = exports.ConversationsVistaGroupItemType || (exports.ConversationsVistaGroupItemType = {}));
|
|
242
248
|
/** Type of date filter. */
|
|
243
249
|
var DateFilterType;
|
|
244
250
|
(function (DateFilterType) {
|
|
@@ -304,6 +310,24 @@ var DevUsersCreateRequestStateEnumValue;
|
|
|
304
310
|
(function (DevUsersCreateRequestStateEnumValue) {
|
|
305
311
|
DevUsersCreateRequestStateEnumValue["Shadow"] = "shadow";
|
|
306
312
|
})(DevUsersCreateRequestStateEnumValue = exports.DevUsersCreateRequestStateEnumValue || (exports.DevUsersCreateRequestStateEnumValue = {}));
|
|
313
|
+
/** Type of DevRev object for which the vista is applicable. */
|
|
314
|
+
var DynamicVistaFilterType;
|
|
315
|
+
(function (DynamicVistaFilterType) {
|
|
316
|
+
DynamicVistaFilterType["Accounts"] = "accounts";
|
|
317
|
+
DynamicVistaFilterType["Articles"] = "articles";
|
|
318
|
+
DynamicVistaFilterType["Conversations"] = "conversations";
|
|
319
|
+
DynamicVistaFilterType["Credits"] = "credits";
|
|
320
|
+
DynamicVistaFilterType["CustomObjects"] = "custom_objects";
|
|
321
|
+
DynamicVistaFilterType["DevUsers"] = "dev_users";
|
|
322
|
+
DynamicVistaFilterType["Incidents"] = "incidents";
|
|
323
|
+
DynamicVistaFilterType["Invoices"] = "invoices";
|
|
324
|
+
DynamicVistaFilterType["Meetings"] = "meetings";
|
|
325
|
+
DynamicVistaFilterType["Parts"] = "parts";
|
|
326
|
+
DynamicVistaFilterType["Quotes"] = "quotes";
|
|
327
|
+
DynamicVistaFilterType["RevOrgs"] = "rev_orgs";
|
|
328
|
+
DynamicVistaFilterType["RevUsers"] = "rev_users";
|
|
329
|
+
DynamicVistaFilterType["Works"] = "works";
|
|
330
|
+
})(DynamicVistaFilterType = exports.DynamicVistaFilterType || (exports.DynamicVistaFilterType = {}));
|
|
307
331
|
var ErrorBadRequestCustomizationValidationErrorSubtype;
|
|
308
332
|
(function (ErrorBadRequestCustomizationValidationErrorSubtype) {
|
|
309
333
|
ErrorBadRequestCustomizationValidationErrorSubtype["BadIdType"] = "bad_id_type";
|
|
@@ -403,6 +427,12 @@ var GroupIngestionSource;
|
|
|
403
427
|
GroupIngestionSource["Airdrop"] = "airdrop";
|
|
404
428
|
GroupIngestionSource["Scim"] = "scim";
|
|
405
429
|
})(GroupIngestionSource = exports.GroupIngestionSource || (exports.GroupIngestionSource = {}));
|
|
430
|
+
/** Type of the vista group item object. */
|
|
431
|
+
var GroupItemType;
|
|
432
|
+
(function (GroupItemType) {
|
|
433
|
+
GroupItemType["Curated"] = "curated";
|
|
434
|
+
GroupItemType["Dynamic"] = "dynamic";
|
|
435
|
+
})(GroupItemType = exports.GroupItemType || (exports.GroupItemType = {}));
|
|
406
436
|
/** Type of the members in the group. */
|
|
407
437
|
var GroupMemberType;
|
|
408
438
|
(function (GroupMemberType) {
|
|
@@ -415,6 +445,20 @@ var GroupType;
|
|
|
415
445
|
GroupType["Dynamic"] = "dynamic";
|
|
416
446
|
GroupType["Static"] = "static";
|
|
417
447
|
})(GroupType = exports.GroupType || (exports.GroupType = {}));
|
|
448
|
+
/** Type of DevRev object for which the grouped vista is applicable. */
|
|
449
|
+
var GroupedVistaFilterType;
|
|
450
|
+
(function (GroupedVistaFilterType) {
|
|
451
|
+
GroupedVistaFilterType["Conversations"] = "conversations";
|
|
452
|
+
GroupedVistaFilterType["Parts"] = "parts";
|
|
453
|
+
GroupedVistaFilterType["Works"] = "works";
|
|
454
|
+
})(GroupedVistaFilterType = exports.GroupedVistaFilterType || (exports.GroupedVistaFilterType = {}));
|
|
455
|
+
/** Denotes the use case of the grouped vista. */
|
|
456
|
+
var GroupedVistaFlavor;
|
|
457
|
+
(function (GroupedVistaFlavor) {
|
|
458
|
+
GroupedVistaFlavor["Nnl"] = "nnl";
|
|
459
|
+
GroupedVistaFlavor["SprintBoard"] = "sprint_board";
|
|
460
|
+
GroupedVistaFlavor["SupportInbox"] = "support_inbox";
|
|
461
|
+
})(GroupedVistaFlavor = exports.GroupedVistaFlavor || (exports.GroupedVistaFlavor = {}));
|
|
418
462
|
/** Priority of the work based upon impact and criticality. */
|
|
419
463
|
var IssuePriority;
|
|
420
464
|
(function (IssuePriority) {
|
|
@@ -580,6 +624,12 @@ var PartType;
|
|
|
580
624
|
PartType["Feature"] = "feature";
|
|
581
625
|
PartType["Product"] = "product";
|
|
582
626
|
})(PartType = exports.PartType || (exports.PartType = {}));
|
|
627
|
+
/** Type of parts vista group item. */
|
|
628
|
+
var PartsVistaGroupItemType;
|
|
629
|
+
(function (PartsVistaGroupItemType) {
|
|
630
|
+
PartsVistaGroupItemType["Curated"] = "curated";
|
|
631
|
+
PartsVistaGroupItemType["Dynamic"] = "dynamic";
|
|
632
|
+
})(PartsVistaGroupItemType = exports.PartsVistaGroupItemType || (exports.PartsVistaGroupItemType = {}));
|
|
583
633
|
/** Status of the question answer. */
|
|
584
634
|
var QuestionAnswerStatus;
|
|
585
635
|
(function (QuestionAnswerStatus) {
|
|
@@ -858,6 +908,20 @@ var UserType;
|
|
|
858
908
|
UserType["ServiceAccount"] = "service_account";
|
|
859
909
|
UserType["SysUser"] = "sys_user";
|
|
860
910
|
})(UserType = exports.UserType || (exports.UserType = {}));
|
|
911
|
+
/** Denotes the use case of the vista. */
|
|
912
|
+
var VistaFlavor;
|
|
913
|
+
(function (VistaFlavor) {
|
|
914
|
+
VistaFlavor["Nnl"] = "nnl";
|
|
915
|
+
VistaFlavor["SprintBoard"] = "sprint_board";
|
|
916
|
+
VistaFlavor["SupportInbox"] = "support_inbox";
|
|
917
|
+
})(VistaFlavor = exports.VistaFlavor || (exports.VistaFlavor = {}));
|
|
918
|
+
/** Type of DevRev object for which the vista group item is applicable. */
|
|
919
|
+
var VistaGroupItemGroupObjectType;
|
|
920
|
+
(function (VistaGroupItemGroupObjectType) {
|
|
921
|
+
VistaGroupItemGroupObjectType["Conversation"] = "conversation";
|
|
922
|
+
VistaGroupItemGroupObjectType["Part"] = "part";
|
|
923
|
+
VistaGroupItemGroupObjectType["Work"] = "work";
|
|
924
|
+
})(VistaGroupItemGroupObjectType = exports.VistaGroupItemGroupObjectType || (exports.VistaGroupItemGroupObjectType = {}));
|
|
861
925
|
/** Defines the state of the group item. */
|
|
862
926
|
var VistaGroupItemState;
|
|
863
927
|
(function (VistaGroupItemState) {
|
|
@@ -871,6 +935,13 @@ var VistaGroupItemType;
|
|
|
871
935
|
VistaGroupItemType["Curated"] = "curated";
|
|
872
936
|
VistaGroupItemType["Dynamic"] = "dynamic";
|
|
873
937
|
})(VistaGroupItemType = exports.VistaGroupItemType || (exports.VistaGroupItemType = {}));
|
|
938
|
+
/** Type of vista object. */
|
|
939
|
+
var VistaType;
|
|
940
|
+
(function (VistaType) {
|
|
941
|
+
VistaType["Curated"] = "curated";
|
|
942
|
+
VistaType["Dynamic"] = "dynamic";
|
|
943
|
+
VistaType["Grouped"] = "grouped";
|
|
944
|
+
})(VistaType = exports.VistaType || (exports.VistaType = {}));
|
|
874
945
|
/** State of the web crawler job. */
|
|
875
946
|
var WebCrawlerJobState;
|
|
876
947
|
(function (WebCrawlerJobState) {
|
|
@@ -978,6 +1049,12 @@ var WorkType;
|
|
|
978
1049
|
WorkType["Issue"] = "issue";
|
|
979
1050
|
WorkType["Ticket"] = "ticket";
|
|
980
1051
|
})(WorkType = exports.WorkType || (exports.WorkType = {}));
|
|
1052
|
+
/** Type of works vista group item. */
|
|
1053
|
+
var WorksVistaGroupItemType;
|
|
1054
|
+
(function (WorksVistaGroupItemType) {
|
|
1055
|
+
WorksVistaGroupItemType["Curated"] = "curated";
|
|
1056
|
+
WorksVistaGroupItemType["Dynamic"] = "dynamic";
|
|
1057
|
+
})(WorksVistaGroupItemType = exports.WorksVistaGroupItemType || (exports.WorksVistaGroupItemType = {}));
|
|
981
1058
|
const axios_1 = __importDefault(require("axios"));
|
|
982
1059
|
var ContentType;
|
|
983
1060
|
(function (ContentType) {
|
|
@@ -3258,6 +3335,106 @@ class Api extends HttpClient {
|
|
|
3258
3335
|
* @secure
|
|
3259
3336
|
*/
|
|
3260
3337
|
this.timelineEntriesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
3338
|
+
/**
|
|
3339
|
+
* @description Deletes the requested vista.
|
|
3340
|
+
*
|
|
3341
|
+
* @tags vistas
|
|
3342
|
+
* @name VistasDelete
|
|
3343
|
+
* @summary Delete Vista
|
|
3344
|
+
* @request POST:/vistas.delete
|
|
3345
|
+
* @secure
|
|
3346
|
+
*/
|
|
3347
|
+
this.vistasDelete = (data, params = {}) => this.request(Object.assign({ path: `/vistas.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
3348
|
+
/**
|
|
3349
|
+
* @description Gets the requested vistas's information.
|
|
3350
|
+
*
|
|
3351
|
+
* @tags vistas
|
|
3352
|
+
* @name VistasGet
|
|
3353
|
+
* @summary Get Vista
|
|
3354
|
+
* @request GET:/vistas.get
|
|
3355
|
+
* @secure
|
|
3356
|
+
*/
|
|
3357
|
+
this.vistasGet = (query, params = {}) => this.request(Object.assign({ path: `/vistas.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
3358
|
+
/**
|
|
3359
|
+
* @description Gets the requested vistas's information.
|
|
3360
|
+
*
|
|
3361
|
+
* @tags vistas
|
|
3362
|
+
* @name VistasGetPost
|
|
3363
|
+
* @summary Get Vista (POST)
|
|
3364
|
+
* @request POST:/vistas.get
|
|
3365
|
+
* @secure
|
|
3366
|
+
*/
|
|
3367
|
+
this.vistasGetPost = (data, params = {}) => this.request(Object.assign({ path: `/vistas.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
3368
|
+
/**
|
|
3369
|
+
* @description Deletes the requested vista group item
|
|
3370
|
+
*
|
|
3371
|
+
* @tags vistas
|
|
3372
|
+
* @name VistasGroupsDelete
|
|
3373
|
+
* @summary Delete Vistas Group
|
|
3374
|
+
* @request POST:/vistas.groups.delete
|
|
3375
|
+
* @secure
|
|
3376
|
+
*/
|
|
3377
|
+
this.vistasGroupsDelete = (data, params = {}) => this.request(Object.assign({ path: `/vistas.groups.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
3378
|
+
/**
|
|
3379
|
+
* @description Gets the requested vista group item's information.
|
|
3380
|
+
*
|
|
3381
|
+
* @tags vistas
|
|
3382
|
+
* @name VistasGroupsGet
|
|
3383
|
+
* @summary Get Vistas Group
|
|
3384
|
+
* @request GET:/vistas.groups.get
|
|
3385
|
+
* @secure
|
|
3386
|
+
*/
|
|
3387
|
+
this.vistasGroupsGet = (query, params = {}) => this.request(Object.assign({ path: `/vistas.groups.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
3388
|
+
/**
|
|
3389
|
+
* @description Gets the requested vista group item's information.
|
|
3390
|
+
*
|
|
3391
|
+
* @tags vistas
|
|
3392
|
+
* @name VistasGroupsGetPost
|
|
3393
|
+
* @summary Get Vistas Group (POST)
|
|
3394
|
+
* @request POST:/vistas.groups.get
|
|
3395
|
+
* @secure
|
|
3396
|
+
*/
|
|
3397
|
+
this.vistasGroupsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/vistas.groups.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
3398
|
+
/**
|
|
3399
|
+
* @description Lists the available vista group items.
|
|
3400
|
+
*
|
|
3401
|
+
* @tags vistas
|
|
3402
|
+
* @name VistasGroupsList
|
|
3403
|
+
* @summary List Vistas Groups
|
|
3404
|
+
* @request GET:/vistas.groups.list
|
|
3405
|
+
* @secure
|
|
3406
|
+
*/
|
|
3407
|
+
this.vistasGroupsList = (query, params = {}) => this.request(Object.assign({ path: `/vistas.groups.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
3408
|
+
/**
|
|
3409
|
+
* @description Lists the available vista group items.
|
|
3410
|
+
*
|
|
3411
|
+
* @tags vistas
|
|
3412
|
+
* @name VistasGroupsListPost
|
|
3413
|
+
* @summary List Vistas Groups (POST)
|
|
3414
|
+
* @request POST:/vistas.groups.list
|
|
3415
|
+
* @secure
|
|
3416
|
+
*/
|
|
3417
|
+
this.vistasGroupsListPost = (data, params = {}) => this.request(Object.assign({ path: `/vistas.groups.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
3418
|
+
/**
|
|
3419
|
+
* @description Lists the available vistas.
|
|
3420
|
+
*
|
|
3421
|
+
* @tags vistas
|
|
3422
|
+
* @name VistasList
|
|
3423
|
+
* @summary List Vistas
|
|
3424
|
+
* @request GET:/vistas.list
|
|
3425
|
+
* @secure
|
|
3426
|
+
*/
|
|
3427
|
+
this.vistasList = (query, params = {}) => this.request(Object.assign({ path: `/vistas.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
3428
|
+
/**
|
|
3429
|
+
* @description Lists the available vistas.
|
|
3430
|
+
*
|
|
3431
|
+
* @tags vistas
|
|
3432
|
+
* @name VistasListPost
|
|
3433
|
+
* @summary List Vistas (POST)
|
|
3434
|
+
* @request POST:/vistas.list
|
|
3435
|
+
* @secure
|
|
3436
|
+
*/
|
|
3437
|
+
this.vistasListPost = (data, params = {}) => this.request(Object.assign({ path: `/vistas.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
3261
3438
|
/**
|
|
3262
3439
|
* @description Change state of a web crawler job to pause or resume it back to running.
|
|
3263
3440
|
*
|