@devrev/typescript-sdk 1.1.57 → 1.1.60

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,10 +33,10 @@ 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.EventFetchedResult = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.ErrorBadRequestCustomizationValidationErrorSubtype = exports.EnhancementRevScoreTier = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DevUsersCreateRequestStateEnumValue = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.Definedness = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsListRequestPrune = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CommandSurfaceSurface = exports.CommandSurfaceObjectTypes = exports.CommandStatus = exports.CommandActionTemplateType = exports.CommandActionExecutorType = exports.CodeChangeSource = exports.ChatType = exports.ChatCompletionsRequestMessageRole = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.AssociatedToType = exports.ArticleType = exports.ArticleStatus = exports.ArticleContentFormat = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
- exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SendNotificationType = exports.SearchSortOrderParam = exports.SearchSortByParam = exports.SearchResultType = exports.SearchNamespace = exports.SearchHybridNamespace = exports.SchemasSubtypePrepareUpdateGetResponseConflictType = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.RoleTarget = exports.RolePrivileges = exports.ReactionsUpdateRequestAction = exports.QuestionAnswerStatus = exports.PreferencesType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MetricActionExecuteRequestAction = exports.MemberType = exports.MeetingState = exports.MeetingChannel = exports.MeerkatWidgetColumnProjectionType = exports.MeerkatWidgetColumnProjectionTimestampRollup = exports.MeerkatWidgetColumnFunctionType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.KanbanVisualizationCardAttributePosition = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupType = exports.GroupMemberType = exports.GroupIngestionSource = exports.GenericNotificationEventType = exports.FieldValueType = exports.ExternalSystemType = exports.EventTimelineEntryUpdatedReactionAction = exports.EventSourceStatus = void 0;
38
- exports.WebCrawlerJobState = exports.VisualizationAxisColorType = exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TuringSourcesType = 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.TableVisualizationColumnPinPosition = exports.TableVisualizationColumnLockPosition = exports.SyncUnitSyncType = exports.SyncRunStartedBy = exports.SyncRunProgressState = exports.SyncRunMode = exports.SyncProgressState = 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.SnapWidgetInteractionType = exports.SnapWidgetClickInteractionClickAction = exports.SnapKitActionRequestElementTypeValue = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaTrackerAppliesToType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = void 0;
39
- exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WidgetVisualizationType = exports.WidgetQueryOrderByDirection = exports.WidgetDataSourceType = exports.WidgetColumnProjectionType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.WebCrawlerJobsControlRequestAction = void 0;
36
+ exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.ErrorBadRequestCustomizationValidationErrorSubtype = exports.EnhancementRevScoreTier = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DevUsersCreateRequestStateEnumValue = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.Definedness = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsListRequestPrune = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CommandSurfaceSurface = exports.CommandSurfaceObjectTypes = exports.CommandStatus = exports.CommandActionTemplateType = exports.CommandActionExecutorType = exports.CodeChangeSource = exports.ChatType = exports.ChatCompletionsRequestMessageRole = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.AssociatedToType = exports.ArtifactConfigurationSet = exports.ArticleType = exports.ArticleStatus = exports.ArticleContentFormat = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
+ exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SendNotificationType = exports.SearchSortOrderParam = exports.SearchSortByParam = exports.SearchResultType = exports.SearchNamespace = exports.SearchHybridNamespace = exports.SchemasSubtypePrepareUpdateGetResponseConflictType = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.RoleTarget = exports.RolePrivileges = exports.RecordTemplateState = exports.ReactionsUpdateRequestAction = exports.QuestionAnswerStatus = exports.PreferencesType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MetricActionExecuteRequestAction = exports.MemberType = exports.MeetingState = exports.MeetingChannel = exports.MeerkatWidgetColumnProjectionType = exports.MeerkatWidgetColumnProjectionTimestampRollup = exports.MeerkatWidgetColumnFunctionType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.KanbanVisualizationCardAttributePosition = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupType = exports.GroupMemberType = exports.GroupIngestionSource = exports.GenericNotificationEventType = exports.FieldValueType = exports.ExternalSystemType = exports.EventTimelineEntryUpdatedReactionAction = exports.EventSourceStatus = exports.EventFetchedResult = void 0;
38
+ exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TuringSourcesType = 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.TableVisualizationColumnPinPosition = exports.TableVisualizationColumnLockPosition = exports.SyncUnitSyncType = exports.SyncRunStartedBy = exports.SyncRunProgressState = exports.SyncRunMode = exports.SyncProgressState = 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.SnapWidgetInteractionType = exports.SnapWidgetClickInteractionClickAction = exports.SnapKitActionRequestElementTypeValue = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaTrackerAppliesToType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = void 0;
39
+ exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WidgetVisualizationType = exports.WidgetQueryOrderByDirection = exports.WidgetDataSourceType = exports.WidgetColumnProjectionType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.WebCrawlerJobsControlRequestAction = exports.WebCrawlerJobState = exports.VisualizationAxisColorType = void 0;
40
40
  var AccessLevel;
41
41
  (function (AccessLevel) {
42
42
  AccessLevel["External"] = "external";
@@ -97,7 +97,26 @@ var ArticleType;
97
97
  (function (ArticleType) {
98
98
  ArticleType["Article"] = "article";
99
99
  ArticleType["ContentBlock"] = "content_block";
100
+ ArticleType["Page"] = "page";
100
101
  })(ArticleType = exports.ArticleType || (exports.ArticleType = {}));
102
+ /** Represents a set of configuration to be used with the artifacts object. */
103
+ var ArtifactConfigurationSet;
104
+ (function (ArtifactConfigurationSet) {
105
+ ArtifactConfigurationSet["ArticleMedia"] = "article_media";
106
+ ArtifactConfigurationSet["Default"] = "default";
107
+ ArtifactConfigurationSet["EmailMedia"] = "email_media";
108
+ ArtifactConfigurationSet["JobData"] = "job_data";
109
+ ArtifactConfigurationSet["MarketplaceListingIcon"] = "marketplace_listing_icon";
110
+ ArtifactConfigurationSet["MarketplaceMedia"] = "marketplace_media";
111
+ ArtifactConfigurationSet["OrgLogo"] = "org_logo";
112
+ ArtifactConfigurationSet["PlugSetting"] = "plug_setting";
113
+ ArtifactConfigurationSet["PlugSettingBannerCard"] = "plug_setting_banner_card";
114
+ ArtifactConfigurationSet["PortalCss"] = "portal_css";
115
+ ArtifactConfigurationSet["SnapInFunctionsCode"] = "snap_in_functions_code";
116
+ ArtifactConfigurationSet["SnapWidget"] = "snap_widget";
117
+ ArtifactConfigurationSet["UserProfilePicture"] = "user_profile_picture";
118
+ ArtifactConfigurationSet["Work"] = "work";
119
+ })(ArtifactConfigurationSet = exports.ArtifactConfigurationSet || (exports.ArtifactConfigurationSet = {}));
101
120
  var AssociatedToType;
102
121
  (function (AssociatedToType) {
103
122
  AssociatedToType["Account"] = "account";
@@ -838,6 +857,14 @@ var ReactionsUpdateRequestAction;
838
857
  ReactionsUpdateRequestAction["Add"] = "add";
839
858
  ReactionsUpdateRequestAction["Remove"] = "remove";
840
859
  })(ReactionsUpdateRequestAction = exports.ReactionsUpdateRequestAction || (exports.ReactionsUpdateRequestAction = {}));
860
+ /** State of the record template. */
861
+ var RecordTemplateState;
862
+ (function (RecordTemplateState) {
863
+ RecordTemplateState["Active"] = "active";
864
+ RecordTemplateState["Draft"] = "draft";
865
+ RecordTemplateState["Inactive"] = "inactive";
866
+ RecordTemplateState["NeedsAttention"] = "needs_attention";
867
+ })(RecordTemplateState = exports.RecordTemplateState || (exports.RecordTemplateState = {}));
841
868
  /** Privileges the role provides. */
842
869
  var RolePrivileges;
843
870
  (function (RolePrivileges) {
@@ -2230,6 +2257,16 @@ class Api extends HttpClient {
2230
2257
  * @secure
2231
2258
  */
2232
2259
  this.chatsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/chats.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2260
+ /**
2261
+ * @description Updates a chat's information.
2262
+ *
2263
+ * @tags chats
2264
+ * @name ChatsUpdate
2265
+ * @summary Update Chat
2266
+ * @request POST:/chats.update
2267
+ * @secure
2268
+ */
2269
+ this.chatsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/chats.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2233
2270
  /**
2234
2271
  * @description Creates a code change object.
2235
2272
  *
@@ -3959,6 +3996,26 @@ class Api extends HttpClient {
3959
3996
  * @secure
3960
3997
  */
3961
3998
  this.getReply = (data, params = {}) => this.request(Object.assign({ path: `/recommendations.get-reply`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
3999
+ /**
4000
+ * @description Gets a record template object.
4001
+ *
4002
+ * @tags record-templates
4003
+ * @name RecordTemplateGet
4004
+ * @summary Get Record Template
4005
+ * @request GET:/record-templates.get
4006
+ * @secure
4007
+ */
4008
+ this.recordTemplateGet = (query, params = {}) => this.request(Object.assign({ path: `/record-templates.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
4009
+ /**
4010
+ * @description Gets a record template object.
4011
+ *
4012
+ * @tags record-templates
4013
+ * @name RecordTemplateGetPost
4014
+ * @summary Get Record Template (POST)
4015
+ * @request POST:/record-templates.get
4016
+ * @secure
4017
+ */
4018
+ this.recordTemplateGetPost = (data, params = {}) => this.request(Object.assign({ path: `/record-templates.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
3962
4019
  /**
3963
4020
  * @description Creates a Rev organization in the authenticated user's Dev organization.
3964
4021
  *
@@ -4441,6 +4498,16 @@ class Api extends HttpClient {
4441
4498
  * @secure
4442
4499
  */
4443
4500
  this.serviceAccountsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/service-accounts.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
4501
+ /**
4502
+ * @description Updates a service account.
4503
+ *
4504
+ * @tags service-accounts
4505
+ * @name ServiceAccountsUpdate
4506
+ * @summary Update Service Account
4507
+ * @request POST:/service-accounts.update
4508
+ * @secure
4509
+ */
4510
+ this.serviceAccountsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/service-accounts.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
4444
4511
  /**
4445
4512
  * @description Gets an SLA tracker.
4446
4513
  *
@@ -4801,6 +4868,36 @@ class Api extends HttpClient {
4801
4868
  * @secure
4802
4869
  */
4803
4870
  this.customStatesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/states.custom.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
4871
+ /**
4872
+ * @description Lists subscribers of an object.
4873
+ *
4874
+ * @tags subscribers
4875
+ * @name SubscribersList
4876
+ * @summary List Subscribers
4877
+ * @request GET:/subscribers.list
4878
+ * @secure
4879
+ */
4880
+ this.subscribersList = (query, params = {}) => this.request(Object.assign({ path: `/subscribers.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
4881
+ /**
4882
+ * @description Lists subscribers of an object.
4883
+ *
4884
+ * @tags subscribers
4885
+ * @name SubscribersListPost
4886
+ * @summary List Subscribers (POST)
4887
+ * @request POST:/subscribers.list
4888
+ * @secure
4889
+ */
4890
+ this.subscribersListPost = (data, params = {}) => this.request(Object.assign({ path: `/subscribers.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
4891
+ /**
4892
+ * @description Updates subscribers on the object.
4893
+ *
4894
+ * @tags subscribers
4895
+ * @name SubscribersUpdate
4896
+ * @summary Update Subscriber
4897
+ * @request POST:/subscribers.update
4898
+ * @secure
4899
+ */
4900
+ this.subscribersUpdate = (data, params = {}) => this.request(Object.assign({ path: `/subscribers.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
4804
4901
  /**
4805
4902
  * @description Creates a schema for survey, which includes name and description of schema.
4806
4903
  *
@@ -4821,6 +4918,26 @@ class Api extends HttpClient {
4821
4918
  * @secure
4822
4919
  */
4823
4920
  this.surveysDelete = (data, params = {}) => this.request(Object.assign({ path: `/surveys.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
4921
+ /**
4922
+ * @description Gets a survey given the ID.
4923
+ *
4924
+ * @tags surveys
4925
+ * @name SurveysGet
4926
+ * @summary Get Survey
4927
+ * @request GET:/surveys.get
4928
+ * @secure
4929
+ */
4930
+ this.surveysGet = (query, params = {}) => this.request(Object.assign({ path: `/surveys.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
4931
+ /**
4932
+ * @description Gets a survey given the ID.
4933
+ *
4934
+ * @tags surveys
4935
+ * @name SurveysGetPost
4936
+ * @summary Get Survey (POST)
4937
+ * @request POST:/surveys.get
4938
+ * @secure
4939
+ */
4940
+ this.surveysGetPost = (data, params = {}) => this.request(Object.assign({ path: `/surveys.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
4824
4941
  /**
4825
4942
  * @description List surveys requested by the user.
4826
4943
  *