@devrev/typescript-sdk 1.1.32 → 1.1.34

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.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;
36
+ exports.MetricActionExecuteRequestAction = exports.MemberType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupType = exports.GroupMemberType = exports.GroupIngestionSource = exports.GenericNotificationEventType = 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.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TimelineChangeEventEventType = exports.TicketSeverity = exports.TicketChannels = exports.TaskPriority = 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.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 = exports.TimelineEntryType = exports.TimelineEntryPanel = void 0;
39
39
  var AccessLevel;
40
40
  (function (AccessLevel) {
41
41
  AccessLevel["External"] = "external";
@@ -395,12 +395,6 @@ var FieldValueType;
395
395
  FieldValueType["TagSummary"] = "tag_summary";
396
396
  FieldValueType["TagSummaryList"] = "tag_summary_list";
397
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 = {}));
404
398
  /** Event type of the notification. */
405
399
  var GenericNotificationEventType;
406
400
  (function (GenericNotificationEventType) {
@@ -445,13 +439,17 @@ var IssuePriority;
445
439
  })(IssuePriority = exports.IssuePriority || (exports.IssuePriority = {}));
446
440
  var LinkEndpointType;
447
441
  (function (LinkEndpointType) {
442
+ LinkEndpointType["Account"] = "account";
448
443
  LinkEndpointType["Capability"] = "capability";
449
444
  LinkEndpointType["Conversation"] = "conversation";
445
+ LinkEndpointType["DevUser"] = "dev_user";
450
446
  LinkEndpointType["Enhancement"] = "enhancement";
451
447
  LinkEndpointType["Feature"] = "feature";
452
448
  LinkEndpointType["Issue"] = "issue";
453
449
  LinkEndpointType["Opportunity"] = "opportunity";
454
450
  LinkEndpointType["Product"] = "product";
451
+ LinkEndpointType["RevOrg"] = "rev_org";
452
+ LinkEndpointType["RevUser"] = "rev_user";
455
453
  LinkEndpointType["Task"] = "task";
456
454
  LinkEndpointType["Ticket"] = "ticket";
457
455
  })(LinkEndpointType = exports.LinkEndpointType || (exports.LinkEndpointType = {}));
@@ -465,6 +463,7 @@ var LinkType;
465
463
  LinkType["IsConvertedTo"] = "is_converted_to";
466
464
  LinkType["IsDependentOn"] = "is_dependent_on";
467
465
  LinkType["IsDuplicateOf"] = "is_duplicate_of";
466
+ LinkType["IsFollowUpOf"] = "is_follow_up_of";
468
467
  LinkType["IsMergedInto"] = "is_merged_into";
469
468
  LinkType["IsParentOf"] = "is_parent_of";
470
469
  LinkType["IsPartOf"] = "is_part_of";
@@ -499,6 +498,14 @@ var MemberType;
499
498
  MemberType["RevUser"] = "rev_user";
500
499
  MemberType["SysUser"] = "sys_user";
501
500
  })(MemberType = exports.MemberType || (exports.MemberType = {}));
501
+ var MetricActionExecuteRequestAction;
502
+ (function (MetricActionExecuteRequestAction) {
503
+ MetricActionExecuteRequestAction["Complete"] = "complete";
504
+ MetricActionExecuteRequestAction["Pause"] = "pause";
505
+ MetricActionExecuteRequestAction["Restart"] = "restart";
506
+ MetricActionExecuteRequestAction["Resume"] = "resume";
507
+ MetricActionExecuteRequestAction["Start"] = "start";
508
+ })(MetricActionExecuteRequestAction = exports.MetricActionExecuteRequestAction || (exports.MetricActionExecuteRequestAction = {}));
502
509
  /** The list of item types on which the metric might be applied. */
503
510
  var MetricDefinitionAppliesTo;
504
511
  (function (MetricDefinitionAppliesTo) {
@@ -842,6 +849,14 @@ var StockSchemaFragmentsListRequestPrune;
842
849
  StockSchemaFragmentsListRequestPrune["CompositeSchemas"] = "composite_schemas";
843
850
  StockSchemaFragmentsListRequestPrune["Fields"] = "fields";
844
851
  })(StockSchemaFragmentsListRequestPrune = exports.StockSchemaFragmentsListRequestPrune || (exports.StockSchemaFragmentsListRequestPrune = {}));
852
+ /** Status of the sync for the object. */
853
+ var SyncInStatus;
854
+ (function (SyncInStatus) {
855
+ SyncInStatus["Failed"] = "failed";
856
+ SyncInStatus["Modified"] = "modified";
857
+ SyncInStatus["Staged"] = "staged";
858
+ SyncInStatus["Succeeded"] = "succeeded";
859
+ })(SyncInStatus = exports.SyncInStatus || (exports.SyncInStatus = {}));
845
860
  var SyncMetadataFilterSyncInFilterStatus;
846
861
  (function (SyncMetadataFilterSyncInFilterStatus) {
847
862
  SyncMetadataFilterSyncInFilterStatus["Failed"] = "failed";
@@ -852,8 +867,16 @@ var SyncMetadataFilterSyncInFilterStatus;
852
867
  var SyncMetadataFilterSyncOutFilterStatus;
853
868
  (function (SyncMetadataFilterSyncOutFilterStatus) {
854
869
  SyncMetadataFilterSyncOutFilterStatus["Failed"] = "failed";
870
+ SyncMetadataFilterSyncOutFilterStatus["Modified"] = "modified";
855
871
  SyncMetadataFilterSyncOutFilterStatus["Succeeded"] = "succeeded";
856
872
  })(SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncOutFilterStatus || (exports.SyncMetadataFilterSyncOutFilterStatus = {}));
873
+ /** Status of the sync for the object. */
874
+ var SyncOutStatus;
875
+ (function (SyncOutStatus) {
876
+ SyncOutStatus["Failed"] = "failed";
877
+ SyncOutStatus["Modified"] = "modified";
878
+ SyncOutStatus["Succeeded"] = "succeeded";
879
+ })(SyncOutStatus = exports.SyncOutStatus || (exports.SyncOutStatus = {}));
857
880
  /** Priority of the work based upon impact and criticality. */
858
881
  var TaskPriority;
859
882
  (function (TaskPriority) {
@@ -1401,6 +1424,15 @@ class Api extends HttpClient {
1401
1424
  * @secure
1402
1425
  */
1403
1426
  this.artifactsVersionsPrepare = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.versions.prepare`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1427
+ /**
1428
+ * @description Retrieves audit logs.
1429
+ *
1430
+ * @tags compliance
1431
+ * @name ExportAuditLogs
1432
+ * @request POST:/audit-logs.fetch
1433
+ * @secure
1434
+ */
1435
+ this.exportAuditLogs = (data, params = {}) => this.request(Object.assign({ path: `/audit-logs.fetch`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1404
1436
  /**
1405
1437
  * @description Creates a JWT corresponding to the requested token type for the authenticated user.
1406
1438
  *
@@ -1437,6 +1469,24 @@ class Api extends HttpClient {
1437
1469
  * @secure
1438
1470
  */
1439
1471
  this.authTokensGetPost = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1472
+ /**
1473
+ * @description Returns the Dev organization, user and token attributes extracted from the auth token.
1474
+ *
1475
+ * @tags auth-tokens
1476
+ * @name AuthTokensInfo
1477
+ * @request GET:/auth-tokens.info
1478
+ * @secure
1479
+ */
1480
+ this.authTokensInfo = (params = {}) => this.request(Object.assign({ path: `/auth-tokens.info`, method: 'GET', secure: true, format: 'json' }, params));
1481
+ /**
1482
+ * @description Returns the Dev organization, user and token attributes extracted from the auth token.
1483
+ *
1484
+ * @tags auth-tokens
1485
+ * @name AuthTokensInfoPost
1486
+ * @request POST:/auth-tokens.info
1487
+ * @secure
1488
+ */
1489
+ this.authTokensInfoPost = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.info`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1440
1490
  /**
1441
1491
  * @description Gets the token metadata for all the tokens corresponding to the given token type issued for a given subject.
1442
1492
  *
@@ -1662,6 +1712,87 @@ class Api extends HttpClient {
1662
1712
  * @secure
1663
1713
  */
1664
1714
  this.conversationsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1715
+ /**
1716
+ * @description Counts custom objects.
1717
+ *
1718
+ * @tags customization
1719
+ * @name CustomObjectsCount
1720
+ * @request GET:/custom-objects.count
1721
+ * @secure
1722
+ */
1723
+ this.customObjectsCount = (query, params = {}) => this.request(Object.assign({ path: `/custom-objects.count`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1724
+ /**
1725
+ * @description Counts custom objects.
1726
+ *
1727
+ * @tags customization
1728
+ * @name CustomObjectsCountPost
1729
+ * @request POST:/custom-objects.count
1730
+ * @secure
1731
+ */
1732
+ this.customObjectsCountPost = (data, params = {}) => this.request(Object.assign({ path: `/custom-objects.count`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1733
+ /**
1734
+ * @description Creates a custom object.
1735
+ *
1736
+ * @tags customization
1737
+ * @name CustomObjectsCreate
1738
+ * @request POST:/custom-objects.create
1739
+ * @secure
1740
+ */
1741
+ this.customObjectsCreate = (data, params = {}) => this.request(Object.assign({ path: `/custom-objects.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1742
+ /**
1743
+ * @description Deletes a custom object.
1744
+ *
1745
+ * @tags customization
1746
+ * @name CustomObjectsDelete
1747
+ * @request POST:/custom-objects.delete
1748
+ * @secure
1749
+ */
1750
+ this.customObjectsDelete = (data, params = {}) => this.request(Object.assign({ path: `/custom-objects.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1751
+ /**
1752
+ * @description Gets a custom object.
1753
+ *
1754
+ * @tags customization
1755
+ * @name CustomObjectsGet
1756
+ * @request GET:/custom-objects.get
1757
+ * @secure
1758
+ */
1759
+ this.customObjectsGet = (query, params = {}) => this.request(Object.assign({ path: `/custom-objects.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1760
+ /**
1761
+ * @description Gets a custom object.
1762
+ *
1763
+ * @tags customization
1764
+ * @name CustomObjectsGetPost
1765
+ * @request POST:/custom-objects.get
1766
+ * @secure
1767
+ */
1768
+ this.customObjectsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/custom-objects.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1769
+ /**
1770
+ * @description Lists custom objects.
1771
+ *
1772
+ * @tags customization
1773
+ * @name CustomObjectsList
1774
+ * @request GET:/custom-objects.list
1775
+ * @secure
1776
+ */
1777
+ this.customObjectsList = (query, params = {}) => this.request(Object.assign({ path: `/custom-objects.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1778
+ /**
1779
+ * @description Lists custom objects.
1780
+ *
1781
+ * @tags customization
1782
+ * @name CustomObjectsListPost
1783
+ * @request POST:/custom-objects.list
1784
+ * @secure
1785
+ */
1786
+ this.customObjectsListPost = (data, params = {}) => this.request(Object.assign({ path: `/custom-objects.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1787
+ /**
1788
+ * @description Updates a custom object.
1789
+ *
1790
+ * @tags customization
1791
+ * @name CustomObjectsUpdate
1792
+ * @request POST:/custom-objects.update
1793
+ * @secure
1794
+ */
1795
+ this.customObjectsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/custom-objects.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1665
1796
  /**
1666
1797
  * @description Creates a new enterprise authentication connection for a Dev organization. This authentication connection will not be enabled by default for the organization and the user will need to explicitly enable this. Keep in mind that at a time, only one authentication connection can be enabled for a Dev organization. At present, only 5 enterprise connections can be created by an organization.
1667
1798
  *
@@ -1824,6 +1955,87 @@ class Api extends HttpClient {
1824
1955
  * @secure
1825
1956
  */
1826
1957
  this.devUsersUpdate = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1958
+ /**
1959
+ * @description Get count of directories matching given filter.
1960
+ *
1961
+ * @tags directory
1962
+ * @name DirectoriesCount
1963
+ * @request GET:/directories.count
1964
+ * @secure
1965
+ */
1966
+ this.directoriesCount = (query, params = {}) => this.request(Object.assign({ path: `/directories.count`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1967
+ /**
1968
+ * @description Get count of directories matching given filter.
1969
+ *
1970
+ * @tags directory
1971
+ * @name DirectoriesCountPost
1972
+ * @request POST:/directories.count
1973
+ * @secure
1974
+ */
1975
+ this.directoriesCountPost = (data, params = {}) => this.request(Object.assign({ path: `/directories.count`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1976
+ /**
1977
+ * @description Creates a directory for the specified inputs.
1978
+ *
1979
+ * @tags directory
1980
+ * @name DirectoriesCreate
1981
+ * @request POST:/directories.create
1982
+ * @secure
1983
+ */
1984
+ this.directoriesCreate = (data, params = {}) => this.request(Object.assign({ path: `/directories.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1985
+ /**
1986
+ * @description Delete the specified directory.
1987
+ *
1988
+ * @tags directory
1989
+ * @name DirectoriesDelete
1990
+ * @request POST:/directories.delete
1991
+ * @secure
1992
+ */
1993
+ this.directoriesDelete = (data, params = {}) => this.request(Object.assign({ path: `/directories.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1994
+ /**
1995
+ * @description Gets the specified directory.
1996
+ *
1997
+ * @tags directory
1998
+ * @name DirectoriesGet
1999
+ * @request GET:/directories.get
2000
+ * @secure
2001
+ */
2002
+ this.directoriesGet = (query, params = {}) => this.request(Object.assign({ path: `/directories.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
2003
+ /**
2004
+ * @description Gets the specified directory.
2005
+ *
2006
+ * @tags directory
2007
+ * @name DirectoriesGetPost
2008
+ * @request POST:/directories.get
2009
+ * @secure
2010
+ */
2011
+ this.directoriesGetPost = (data, params = {}) => this.request(Object.assign({ path: `/directories.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2012
+ /**
2013
+ * @description Lists directories matching the request.
2014
+ *
2015
+ * @tags directory
2016
+ * @name DirectoriesList
2017
+ * @request GET:/directories.list
2018
+ * @secure
2019
+ */
2020
+ this.directoriesList = (query, params = {}) => this.request(Object.assign({ path: `/directories.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
2021
+ /**
2022
+ * @description Lists directories matching the request.
2023
+ *
2024
+ * @tags directory
2025
+ * @name DirectoriesListPost
2026
+ * @request POST:/directories.list
2027
+ * @secure
2028
+ */
2029
+ this.directoriesListPost = (data, params = {}) => this.request(Object.assign({ path: `/directories.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2030
+ /**
2031
+ * @description Updates the specified directory.
2032
+ *
2033
+ * @tags directory
2034
+ * @name DirectoriesUpdate
2035
+ * @request POST:/directories.update
2036
+ * @secure
2037
+ */
2038
+ this.directoriesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/directories.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1827
2039
  /**
1828
2040
  * @description Counts the engagement records.
1829
2041
  *
@@ -2237,6 +2449,51 @@ class Api extends HttpClient {
2237
2449
  * @secure
2238
2450
  */
2239
2451
  this.linksListPost = (data, params = {}) => this.request(Object.assign({ path: `/links.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2452
+ /**
2453
+ * @description Executes the metric action on the given object.
2454
+ *
2455
+ * @tags slas
2456
+ * @name MetricActionExecute
2457
+ * @request POST:/metric-action.execute
2458
+ * @secure
2459
+ */
2460
+ this.metricActionExecute = (data, params = {}) => this.request(Object.assign({ path: `/metric-action.execute`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2461
+ /**
2462
+ * @description Creates a custom metric definition
2463
+ *
2464
+ * @tags slas
2465
+ * @name MetricDefinitionsCreate
2466
+ * @request POST:/metric-definitions.create
2467
+ * @secure
2468
+ */
2469
+ this.metricDefinitionsCreate = (data, params = {}) => this.request(Object.assign({ path: `/metric-definitions.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2470
+ /**
2471
+ * @description Deletes a custom metric definition
2472
+ *
2473
+ * @tags slas
2474
+ * @name MetricDefinitionsDelete
2475
+ * @request POST:/metric-definitions.delete
2476
+ * @secure
2477
+ */
2478
+ this.metricDefinitionsDelete = (data, params = {}) => this.request(Object.assign({ path: `/metric-definitions.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2479
+ /**
2480
+ * @description Gets a custom metric definition
2481
+ *
2482
+ * @tags slas
2483
+ * @name MetricDefinitionsGet
2484
+ * @request GET:/metric-definitions.get
2485
+ * @secure
2486
+ */
2487
+ this.metricDefinitionsGet = (query, params = {}) => this.request(Object.assign({ path: `/metric-definitions.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
2488
+ /**
2489
+ * @description Gets a custom metric definition
2490
+ *
2491
+ * @tags slas
2492
+ * @name MetricDefinitionsGetPost
2493
+ * @request POST:/metric-definitions.get
2494
+ * @secure
2495
+ */
2496
+ this.metricDefinitionsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/metric-definitions.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2240
2497
  /**
2241
2498
  * @description Lists metric definitions matching a filter.
2242
2499
  *
@@ -2255,6 +2512,15 @@ class Api extends HttpClient {
2255
2512
  * @secure
2256
2513
  */
2257
2514
  this.metricDefinitionsListPost = (data, params = {}) => this.request(Object.assign({ path: `/metric-definitions.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2515
+ /**
2516
+ * @description Updates a custom metric definition
2517
+ *
2518
+ * @tags slas
2519
+ * @name MetricDefinitionsUpdate
2520
+ * @request POST:/metric-definitions.update
2521
+ * @secure
2522
+ */
2523
+ this.metricDefinitionsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/metric-definitions.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2258
2524
  /**
2259
2525
  * @description Ingest endpoint for DevRev metrics data from clients.
2260
2526
  *
@@ -2606,6 +2872,15 @@ class Api extends HttpClient {
2606
2872
  * @secure
2607
2873
  */
2608
2874
  this.revUsersDelete = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2875
+ /**
2876
+ * @description Deletes data of a contact.
2877
+ *
2878
+ * @tags compliance
2879
+ * @name DeleteRevUsersPersonalData
2880
+ * @request POST:/rev-users.delete-personal-data
2881
+ * @secure
2882
+ */
2883
+ this.deleteRevUsersPersonalData = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.delete-personal-data`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2609
2884
  /**
2610
2885
  * @description Returns the Rev user of a Rev organization by its ID.
2611
2886
  *
@@ -2651,6 +2926,24 @@ class Api extends HttpClient {
2651
2926
  * @secure
2652
2927
  */
2653
2928
  this.revUsersListPost = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2929
+ /**
2930
+ * @description Merges the secondary Rev user into the primary Rev user.
2931
+ *
2932
+ * @tags rev-users
2933
+ * @name RevUsersMerge
2934
+ * @request POST:/rev-users.merge
2935
+ * @secure
2936
+ */
2937
+ this.revUsersMerge = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.merge`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2938
+ /**
2939
+ * @description Retrieves data of a contact.
2940
+ *
2941
+ * @tags compliance
2942
+ * @name GetRevUsersPersonalData
2943
+ * @request POST:/rev-users.personal-data
2944
+ * @secure
2945
+ */
2946
+ this.getRevUsersPersonalData = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.personal-data`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2654
2947
  /**
2655
2948
  * @description Scans through all Rev users.
2656
2949
  *
@@ -2876,6 +3169,24 @@ class Api extends HttpClient {
2876
3169
  * @secure
2877
3170
  */
2878
3171
  this.slaTrackersGetPost = (data, params = {}) => this.request(Object.assign({ path: `/sla-trackers.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
3172
+ /**
3173
+ * @description Lists SLA trackers matching a filter.
3174
+ *
3175
+ * @tags slas
3176
+ * @name SlaTrackersList
3177
+ * @request GET:/sla-trackers.list
3178
+ * @secure
3179
+ */
3180
+ this.slaTrackersList = (query, params = {}) => this.request(Object.assign({ path: `/sla-trackers.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
3181
+ /**
3182
+ * @description Lists SLA trackers matching a filter.
3183
+ *
3184
+ * @tags slas
3185
+ * @name SlaTrackersListPost
3186
+ * @request POST:/sla-trackers.list
3187
+ * @secure
3188
+ */
3189
+ this.slaTrackersListPost = (data, params = {}) => this.request(Object.assign({ path: `/sla-trackers.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2879
3190
  /**
2880
3191
  * @description Assigns the SLA to a set of Rev organizations.
2881
3192
  *