@devrev/typescript-sdk 1.1.52 → 1.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,9 +33,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
33
33
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
34
|
};
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = 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.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 = void 0;
|
|
36
|
+
exports.GenericNotificationEventType = exports.FieldValueType = exports.ExternalSystemType = exports.EventTimelineEntryUpdatedReactionAction = 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.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.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.AggregationDetailAggregationType = exports.AccessLevel = void 0;
|
|
37
|
+
exports.SnapWidgetInteractionType = exports.SnapWidgetClickInteractionClickAction = exports.SnapKitActionRequestElementTypeValue = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaTrackerAppliesToType = 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.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.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupType = exports.GroupMemberType = exports.GroupIngestionSource = 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.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.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 = void 0;
|
|
39
39
|
var AccessLevel;
|
|
40
40
|
(function (AccessLevel) {
|
|
41
41
|
AccessLevel["External"] = "external";
|
|
@@ -241,6 +241,7 @@ var CommandSurfaceObjectTypes;
|
|
|
241
241
|
CommandSurfaceObjectTypes["Account"] = "account";
|
|
242
242
|
CommandSurfaceObjectTypes["Article"] = "article";
|
|
243
243
|
CommandSurfaceObjectTypes["Conversation"] = "conversation";
|
|
244
|
+
CommandSurfaceObjectTypes["CustomObject"] = "custom_object";
|
|
244
245
|
CommandSurfaceObjectTypes["Engagement"] = "engagement";
|
|
245
246
|
CommandSurfaceObjectTypes["Flow"] = "flow";
|
|
246
247
|
CommandSurfaceObjectTypes["Incident"] = "incident";
|
|
@@ -442,6 +443,11 @@ var EventSourceStatus;
|
|
|
442
443
|
EventSourceStatus["Blocked"] = "blocked";
|
|
443
444
|
EventSourceStatus["Paused"] = "paused";
|
|
444
445
|
})(EventSourceStatus = exports.EventSourceStatus || (exports.EventSourceStatus = {}));
|
|
446
|
+
var EventTimelineEntryUpdatedReactionAction;
|
|
447
|
+
(function (EventTimelineEntryUpdatedReactionAction) {
|
|
448
|
+
EventTimelineEntryUpdatedReactionAction["Added"] = "added";
|
|
449
|
+
EventTimelineEntryUpdatedReactionAction["Removed"] = "removed";
|
|
450
|
+
})(EventTimelineEntryUpdatedReactionAction = exports.EventTimelineEntryUpdatedReactionAction || (exports.EventTimelineEntryUpdatedReactionAction = {}));
|
|
445
451
|
var ExternalSystemType;
|
|
446
452
|
(function (ExternalSystemType) {
|
|
447
453
|
ExternalSystemType["Adaas"] = "adaas";
|
|
@@ -755,6 +761,7 @@ var SchemaFieldDescriptorArrayTypeBaseType;
|
|
|
755
761
|
SchemaFieldDescriptorArrayTypeBaseType["Enum"] = "enum";
|
|
756
762
|
SchemaFieldDescriptorArrayTypeBaseType["Id"] = "id";
|
|
757
763
|
SchemaFieldDescriptorArrayTypeBaseType["Int"] = "int";
|
|
764
|
+
SchemaFieldDescriptorArrayTypeBaseType["JsonValue"] = "json_value";
|
|
758
765
|
SchemaFieldDescriptorArrayTypeBaseType["RichText"] = "rich_text";
|
|
759
766
|
SchemaFieldDescriptorArrayTypeBaseType["Struct"] = "struct";
|
|
760
767
|
SchemaFieldDescriptorArrayTypeBaseType["Text"] = "text";
|
|
@@ -772,6 +779,7 @@ var SchemaFieldDescriptorFieldType;
|
|
|
772
779
|
SchemaFieldDescriptorFieldType["Enum"] = "enum";
|
|
773
780
|
SchemaFieldDescriptorFieldType["Id"] = "id";
|
|
774
781
|
SchemaFieldDescriptorFieldType["Int"] = "int";
|
|
782
|
+
SchemaFieldDescriptorFieldType["JsonValue"] = "json_value";
|
|
775
783
|
SchemaFieldDescriptorFieldType["RichText"] = "rich_text";
|
|
776
784
|
SchemaFieldDescriptorFieldType["Struct"] = "struct";
|
|
777
785
|
SchemaFieldDescriptorFieldType["Text"] = "text";
|
|
@@ -984,6 +992,11 @@ var SlasFilterAppliesToOperatorType;
|
|
|
984
992
|
SlasFilterAppliesToOperatorType["All"] = "all";
|
|
985
993
|
SlasFilterAppliesToOperatorType["Any"] = "any";
|
|
986
994
|
})(SlasFilterAppliesToOperatorType = exports.SlasFilterAppliesToOperatorType || (exports.SlasFilterAppliesToOperatorType = {}));
|
|
995
|
+
var SnapKitActionRequestElementTypeValue;
|
|
996
|
+
(function (SnapKitActionRequestElementTypeValue) {
|
|
997
|
+
SnapKitActionRequestElementTypeValue["Button"] = "button";
|
|
998
|
+
SnapKitActionRequestElementTypeValue["Form"] = "form";
|
|
999
|
+
})(SnapKitActionRequestElementTypeValue = exports.SnapKitActionRequestElementTypeValue || (exports.SnapKitActionRequestElementTypeValue = {}));
|
|
987
1000
|
var SnapWidgetClickInteractionClickAction;
|
|
988
1001
|
(function (SnapWidgetClickInteractionClickAction) {
|
|
989
1002
|
SnapWidgetClickInteractionClickAction["OpenPlugWidget"] = "open_plug_widget";
|
|
@@ -1014,10 +1027,12 @@ var SnapWidgetStatus;
|
|
|
1014
1027
|
var SnapWidgetType;
|
|
1015
1028
|
(function (SnapWidgetType) {
|
|
1016
1029
|
SnapWidgetType["EmailPreview"] = "email_preview";
|
|
1030
|
+
SnapWidgetType["StarterMessageNudge"] = "starter_message_nudge";
|
|
1017
1031
|
})(SnapWidgetType = exports.SnapWidgetType || (exports.SnapWidgetType = {}));
|
|
1018
1032
|
var SnapWidgetsCreateRequestType;
|
|
1019
1033
|
(function (SnapWidgetsCreateRequestType) {
|
|
1020
1034
|
SnapWidgetsCreateRequestType["EmailPreview"] = "email_preview";
|
|
1035
|
+
SnapWidgetsCreateRequestType["StarterMessageNudge"] = "starter_message_nudge";
|
|
1021
1036
|
})(SnapWidgetsCreateRequestType = exports.SnapWidgetsCreateRequestType || (exports.SnapWidgetsCreateRequestType = {}));
|
|
1022
1037
|
/** Type of stage validation options when creating an object. */
|
|
1023
1038
|
var StageValidationOptionForCreate;
|
|
@@ -1543,6 +1558,16 @@ class Api extends HttpClient {
|
|
|
1543
1558
|
* @secure
|
|
1544
1559
|
*/
|
|
1545
1560
|
this.accountsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/accounts.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1561
|
+
/**
|
|
1562
|
+
* @description Execute an AI agent input event asynchronously.
|
|
1563
|
+
*
|
|
1564
|
+
* @tags ai-agents
|
|
1565
|
+
* @name AiAgentEventsExecuteAsync
|
|
1566
|
+
* @summary Execute-Async Ai Agents Events
|
|
1567
|
+
* @request POST:/ai-agents.events.execute-async
|
|
1568
|
+
* @secure
|
|
1569
|
+
*/
|
|
1570
|
+
this.aiAgentEventsExecuteAsync = (data, params = {}) => this.request(Object.assign({ path: `/ai-agents.events.execute-async`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1546
1571
|
/**
|
|
1547
1572
|
* @description Gets a single sync unit's information.
|
|
1548
1573
|
*
|
|
@@ -3642,6 +3667,16 @@ class Api extends HttpClient {
|
|
|
3642
3667
|
* @secure
|
|
3643
3668
|
*/
|
|
3644
3669
|
this.revOrgsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
3670
|
+
/**
|
|
3671
|
+
* @description Adds an association to a Rev user. This API is only available when the multi-association contact feature is enabled.
|
|
3672
|
+
*
|
|
3673
|
+
* @tags rev-users
|
|
3674
|
+
* @name RevUsersAssociationsAdd
|
|
3675
|
+
* @summary Add Rev Users Associations
|
|
3676
|
+
* @request POST:/rev-users.associations.add
|
|
3677
|
+
* @secure
|
|
3678
|
+
*/
|
|
3679
|
+
this.revUsersAssociationsAdd = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.associations.add`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
3645
3680
|
/**
|
|
3646
3681
|
* @description Returns a list of associations on a Rev user.
|
|
3647
3682
|
*
|
|
@@ -3662,6 +3697,16 @@ class Api extends HttpClient {
|
|
|
3662
3697
|
* @secure
|
|
3663
3698
|
*/
|
|
3664
3699
|
this.revUsersAssociationsListPost = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.associations.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
3700
|
+
/**
|
|
3701
|
+
* @description Removes an association from a Rev user. This API is only available when the multi-association contact feature is enabled.
|
|
3702
|
+
*
|
|
3703
|
+
* @tags rev-users
|
|
3704
|
+
* @name RevUsersAssociationsRemove
|
|
3705
|
+
* @summary Remove Rev Users Associations
|
|
3706
|
+
* @request POST:/rev-users.associations.remove
|
|
3707
|
+
* @secure
|
|
3708
|
+
*/
|
|
3709
|
+
this.revUsersAssociationsRemove = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.associations.remove`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
3665
3710
|
/**
|
|
3666
3711
|
* @description Creates a Rev user for a Rev organization. Rev user can be a customer or a lead of an organization.
|
|
3667
3712
|
*
|
|
@@ -4172,6 +4217,16 @@ class Api extends HttpClient {
|
|
|
4172
4217
|
* @secure
|
|
4173
4218
|
*/
|
|
4174
4219
|
this.snapInsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/snap-ins.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
4220
|
+
/**
|
|
4221
|
+
* @description Executes deferred snap-kit actions.
|
|
4222
|
+
*
|
|
4223
|
+
* @tags snap-kit-execution
|
|
4224
|
+
* @name SnapKitActionExecuteDeferred
|
|
4225
|
+
* @summary Deferred Snap Kit Action Execute
|
|
4226
|
+
* @request POST:/snap-kit-action.execute.deferred
|
|
4227
|
+
* @secure
|
|
4228
|
+
*/
|
|
4229
|
+
this.snapKitActionExecuteDeferred = (data, params = {}) => this.request(Object.assign({ path: `/snap-kit-action.execute.deferred`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
4175
4230
|
/**
|
|
4176
4231
|
* @description Create a snap widget object.
|
|
4177
4232
|
*
|
|
@@ -4422,6 +4477,16 @@ class Api extends HttpClient {
|
|
|
4422
4477
|
* @secure
|
|
4423
4478
|
*/
|
|
4424
4479
|
this.surveysResponsesListPost = (data, params = {}) => this.request(Object.assign({ path: `/surveys.responses.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
4480
|
+
/**
|
|
4481
|
+
* @description Updates a user's survey response for the provided dispatch ID.
|
|
4482
|
+
*
|
|
4483
|
+
* @tags surveys
|
|
4484
|
+
* @name SurveysResponsesUpdate
|
|
4485
|
+
* @summary Update Surveys Response
|
|
4486
|
+
* @request POST:/surveys.responses.update
|
|
4487
|
+
* @secure
|
|
4488
|
+
*/
|
|
4489
|
+
this.surveysResponsesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/surveys.responses.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
4425
4490
|
/**
|
|
4426
4491
|
* @description Sends a survey on the specified channels.
|
|
4427
4492
|
*
|