@devrev/typescript-sdk 1.1.68 → 1.1.70
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.
- package/dist/auto-generated/beta/beta-devrev-sdk.d.ts +1066 -411
- package/dist/auto-generated/beta/beta-devrev-sdk.js +123 -4
- package/dist/auto-generated/public-devrev-sdk.d.ts +958 -305
- package/dist/auto-generated/public-devrev-sdk.js +82 -3
- package/dist/tests/beta-devrev-sdk-util.test.js +12 -4
- package/dist/tests/error.test.js +7 -0
- package/package.json +2 -2
|
@@ -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.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.Api = exports.HttpClient = exports.ContentType = exports.WorksVistaGroupItemType = exports.WorkType = exports.WidgetVisualizationType = exports.WidgetQueryOrderByDirection = exports.WidgetDataSourceType = exports.WidgetColumnProjectionType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.WebCrawlerJobsControlRequestAction = exports.WebCrawlerJobState = exports.VisualizationAxisColorType = exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.VistaGroupItemGroupObjectType = exports.VistaFlavor = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TuringSourcesType = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryPanel = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = void 0;
|
|
36
|
+
exports.ErrorConflictType = exports.ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.ErrorBadRequestCustomizationValidationErrorSubtype = exports.EnhancementRevScoreTier = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DynamicVistaFilterType = exports.DevUsersCreateRequestStateEnumValue = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.Definedness = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsListRequestPrune = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsVistaGroupItemType = exports.ConversationsCreateRequestTypeValue = exports.ContentTemplateType = exports.ConfigurationProrationBehavior = exports.ConfigurationCollectionMethod = exports.CommandSurfaceSurface = exports.CommandSurfaceObjectTypes = exports.CommandStatus = exports.CommandActionTemplateType = exports.CommandActionExecutorType = exports.CodeChangeSource = exports.ChatType = exports.ChatCompletionsRequestMessageRole = exports.CaveatOperator = 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.PrimitiveValueType = exports.PricingBillingCycle = exports.PreferencesType = exports.PartsVistaGroupItemType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.NotificationPriority = exports.MetricTrackerType = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MetricActionExecuteRequestAction = exports.MemberType = exports.MeetingState = exports.MeetingDirection = exports.MeetingChannel = exports.MeerkatWidgetColumnProjectionType = exports.MeerkatWidgetColumnProjectionTimestampRollup = exports.MeerkatWidgetColumnFunctionType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.KanbanVisualizationCardAttributePosition = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupedVistaFilterType = exports.GroupType = exports.GroupMemberType = exports.GroupItemType = exports.GroupIngestionSource = exports.GenericNotificationEventType = exports.FieldValueType = exports.ExternalSystemType = exports.ExportAuditLogsRequestOperationType = exports.EventTimelineEntryUpdatedReactionAction = exports.EventSourceStatus = exports.EventFetchedResult = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorSeeOtherType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = void 0;
|
|
38
|
+
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 = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SkuType = exports.SkuState = exports.ServicePlanStatus = exports.ServicePlanBillingCycle = exports.SendNotificationType = exports.SelectorObject = 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 = void 0;
|
|
39
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.WorksVistaGroupItemType = exports.WorkType = exports.WidgetVisualizationType = exports.WidgetQueryOrderByDirection = exports.WidgetDataSourceType = exports.WidgetColumnProjectionType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.WebCrawlerJobsControlRequestAction = exports.WebCrawlerJobState = exports.VisualizationAxisColorType = exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.VistaGroupItemGroupObjectType = exports.VistaFlavor = 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.TimeMetricTrackerStatus = exports.TicketSeverity = exports.TicketChannels = exports.TaskPriority = exports.TableVisualizationColumnPinPosition = void 0;
|
|
40
40
|
var AccessLevel;
|
|
41
41
|
(function (AccessLevel) {
|
|
42
42
|
AccessLevel["External"] = "external";
|
|
@@ -320,6 +320,25 @@ var CommandSurfaceSurface;
|
|
|
320
320
|
CommandSurfaceSurface["CustomerChat"] = "customer_chat";
|
|
321
321
|
CommandSurfaceSurface["Discussions"] = "discussions";
|
|
322
322
|
})(CommandSurfaceSurface = exports.CommandSurfaceSurface || (exports.CommandSurfaceSurface = {}));
|
|
323
|
+
/**
|
|
324
|
+
* Charge collection strategy for the service plan. Defaults to
|
|
325
|
+
* charge_automatically.
|
|
326
|
+
*/
|
|
327
|
+
var ConfigurationCollectionMethod;
|
|
328
|
+
(function (ConfigurationCollectionMethod) {
|
|
329
|
+
ConfigurationCollectionMethod["ChargeAutomatically"] = "charge_automatically";
|
|
330
|
+
ConfigurationCollectionMethod["SendInvoice"] = "send_invoice";
|
|
331
|
+
})(ConfigurationCollectionMethod = exports.ConfigurationCollectionMethod || (exports.ConfigurationCollectionMethod = {}));
|
|
332
|
+
/**
|
|
333
|
+
* Determines how to handle prorations resulting from the billing_date. If
|
|
334
|
+
* no value is passed, the default is create_prorations.
|
|
335
|
+
*/
|
|
336
|
+
var ConfigurationProrationBehavior;
|
|
337
|
+
(function (ConfigurationProrationBehavior) {
|
|
338
|
+
ConfigurationProrationBehavior["AlwaysInvoice"] = "always_invoice";
|
|
339
|
+
ConfigurationProrationBehavior["CreateProrations"] = "create_prorations";
|
|
340
|
+
ConfigurationProrationBehavior["None"] = "none";
|
|
341
|
+
})(ConfigurationProrationBehavior = exports.ConfigurationProrationBehavior || (exports.ConfigurationProrationBehavior = {}));
|
|
323
342
|
var ContentTemplateType;
|
|
324
343
|
(function (ContentTemplateType) {
|
|
325
344
|
ContentTemplateType["NotificationContentTemplate"] = "notification_content_template";
|
|
@@ -539,6 +558,10 @@ var ErrorNotFoundType;
|
|
|
539
558
|
(function (ErrorNotFoundType) {
|
|
540
559
|
ErrorNotFoundType["NotFound"] = "not_found";
|
|
541
560
|
})(ErrorNotFoundType = exports.ErrorNotFoundType || (exports.ErrorNotFoundType = {}));
|
|
561
|
+
var ErrorSeeOtherType;
|
|
562
|
+
(function (ErrorSeeOtherType) {
|
|
563
|
+
ErrorSeeOtherType["SeeOther"] = "see_other";
|
|
564
|
+
})(ErrorSeeOtherType = exports.ErrorSeeOtherType || (exports.ErrorSeeOtherType = {}));
|
|
542
565
|
var ErrorServiceUnavailableType;
|
|
543
566
|
(function (ErrorServiceUnavailableType) {
|
|
544
567
|
ErrorServiceUnavailableType["ServiceUnavailable"] = "service_unavailable";
|
|
@@ -590,6 +613,7 @@ var ExternalSystemType;
|
|
|
590
613
|
ExternalSystemType["JiraDataCenter"] = "jira_data_center";
|
|
591
614
|
ExternalSystemType["Linear"] = "linear";
|
|
592
615
|
ExternalSystemType["Rocketlane"] = "rocketlane";
|
|
616
|
+
ExternalSystemType["S3"] = "s3";
|
|
593
617
|
ExternalSystemType["SalesforceSales"] = "salesforce_sales";
|
|
594
618
|
ExternalSystemType["SalesforceService"] = "salesforce_service";
|
|
595
619
|
ExternalSystemType["Servicenow"] = "servicenow";
|
|
@@ -934,6 +958,13 @@ var PreferencesType;
|
|
|
934
958
|
(function (PreferencesType) {
|
|
935
959
|
PreferencesType["UserPreferences"] = "user_preferences";
|
|
936
960
|
})(PreferencesType = exports.PreferencesType || (exports.PreferencesType = {}));
|
|
961
|
+
/** Billing frequency of the SKU. */
|
|
962
|
+
var PricingBillingCycle;
|
|
963
|
+
(function (PricingBillingCycle) {
|
|
964
|
+
PricingBillingCycle["Monthly"] = "monthly";
|
|
965
|
+
PricingBillingCycle["OneTime"] = "one_time";
|
|
966
|
+
PricingBillingCycle["Yearly"] = "yearly";
|
|
967
|
+
})(PricingBillingCycle = exports.PricingBillingCycle || (exports.PricingBillingCycle = {}));
|
|
937
968
|
/** Type of the value. */
|
|
938
969
|
var PrimitiveValueType;
|
|
939
970
|
(function (PrimitiveValueType) {
|
|
@@ -1159,6 +1190,46 @@ var SendNotificationType;
|
|
|
1159
1190
|
(function (SendNotificationType) {
|
|
1160
1191
|
SendNotificationType["GenericNotification"] = "generic_notification";
|
|
1161
1192
|
})(SendNotificationType = exports.SendNotificationType || (exports.SendNotificationType = {}));
|
|
1193
|
+
/** The billing frequency of the service plan. */
|
|
1194
|
+
var ServicePlanBillingCycle;
|
|
1195
|
+
(function (ServicePlanBillingCycle) {
|
|
1196
|
+
ServicePlanBillingCycle["Monthly"] = "monthly";
|
|
1197
|
+
})(ServicePlanBillingCycle = exports.ServicePlanBillingCycle || (exports.ServicePlanBillingCycle = {}));
|
|
1198
|
+
/**
|
|
1199
|
+
* The status of the service plan indicates its current state. If the
|
|
1200
|
+
* status is 'active,' it means the service plan items are in use and
|
|
1201
|
+
* billed every cycle. If the status is 'cancelled,' it signifies that the
|
|
1202
|
+
* service plan has been terminated and is no longer active or considered
|
|
1203
|
+
* for billing.
|
|
1204
|
+
*/
|
|
1205
|
+
var ServicePlanStatus;
|
|
1206
|
+
(function (ServicePlanStatus) {
|
|
1207
|
+
ServicePlanStatus["Active"] = "active";
|
|
1208
|
+
ServicePlanStatus["Cancelled"] = "cancelled";
|
|
1209
|
+
ServicePlanStatus["Paused"] = "paused";
|
|
1210
|
+
})(ServicePlanStatus = exports.ServicePlanStatus || (exports.ServicePlanStatus = {}));
|
|
1211
|
+
/**
|
|
1212
|
+
* Current state of the SKU. A SKU is visible to RevOs only when it is
|
|
1213
|
+
* released.
|
|
1214
|
+
*/
|
|
1215
|
+
var SkuState;
|
|
1216
|
+
(function (SkuState) {
|
|
1217
|
+
SkuState["Approved"] = "approved";
|
|
1218
|
+
SkuState["Draft"] = "draft";
|
|
1219
|
+
SkuState["EndOfLife"] = "end_of_life";
|
|
1220
|
+
SkuState["EndOfSale"] = "end_of_sale";
|
|
1221
|
+
SkuState["Released"] = "released";
|
|
1222
|
+
})(SkuState = exports.SkuState || (exports.SkuState = {}));
|
|
1223
|
+
/** It defines the type of SKU. */
|
|
1224
|
+
var SkuType;
|
|
1225
|
+
(function (SkuType) {
|
|
1226
|
+
SkuType["Consumption"] = "consumption";
|
|
1227
|
+
SkuType["ConsumptionAddon"] = "consumption_addon";
|
|
1228
|
+
SkuType["OneOffAddon"] = "one_off_addon";
|
|
1229
|
+
SkuType["OneOffCharge"] = "one_off_charge";
|
|
1230
|
+
SkuType["Subscription"] = "subscription";
|
|
1231
|
+
SkuType["SubscriptionAddon"] = "subscription_addon";
|
|
1232
|
+
})(SkuType = exports.SkuType || (exports.SkuType = {}));
|
|
1162
1233
|
/**
|
|
1163
1234
|
* The object types on which the SLA applies. An external SLA can apply to
|
|
1164
1235
|
* multiple object types, but an internal SLA can apply to only one object
|
|
@@ -1276,6 +1347,7 @@ var SnapWidgetNamespace;
|
|
|
1276
1347
|
SnapWidgetNamespace["LinkPreview"] = "link_preview";
|
|
1277
1348
|
SnapWidgetNamespace["MeetingPreview"] = "meeting_preview";
|
|
1278
1349
|
SnapWidgetNamespace["PlugNudge"] = "plug_nudge";
|
|
1350
|
+
SnapWidgetNamespace["SideThread"] = "side_thread";
|
|
1279
1351
|
})(SnapWidgetNamespace = exports.SnapWidgetNamespace || (exports.SnapWidgetNamespace = {}));
|
|
1280
1352
|
/** The status of the snap widget. */
|
|
1281
1353
|
var SnapWidgetStatus;
|
|
@@ -1431,6 +1503,13 @@ var TicketSeverity;
|
|
|
1431
1503
|
TicketSeverity["Low"] = "low";
|
|
1432
1504
|
TicketSeverity["Medium"] = "medium";
|
|
1433
1505
|
})(TicketSeverity = exports.TicketSeverity || (exports.TicketSeverity = {}));
|
|
1506
|
+
/** The current status of the metric. */
|
|
1507
|
+
var TimeMetricTrackerStatus;
|
|
1508
|
+
(function (TimeMetricTrackerStatus) {
|
|
1509
|
+
TimeMetricTrackerStatus["Completed"] = "completed";
|
|
1510
|
+
TimeMetricTrackerStatus["Paused"] = "paused";
|
|
1511
|
+
TimeMetricTrackerStatus["Running"] = "running";
|
|
1512
|
+
})(TimeMetricTrackerStatus = exports.TimeMetricTrackerStatus || (exports.TimeMetricTrackerStatus = {}));
|
|
1434
1513
|
/** The type of the event. */
|
|
1435
1514
|
var TimelineChangeEventEventType;
|
|
1436
1515
|
(function (TimelineChangeEventEventType) {
|
|
@@ -2076,6 +2155,26 @@ class Api extends HttpClient {
|
|
|
2076
2155
|
* @secure
|
|
2077
2156
|
*/
|
|
2078
2157
|
this.updateArticle = (data, params = {}) => this.request(Object.assign({ path: `/articles.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2158
|
+
/**
|
|
2159
|
+
* @description Redirects to the artifact's download URL.
|
|
2160
|
+
*
|
|
2161
|
+
* @tags artifacts
|
|
2162
|
+
* @name ArtifactsDownload
|
|
2163
|
+
* @summary Download Artifacts
|
|
2164
|
+
* @request GET:/artifacts.download
|
|
2165
|
+
* @secure
|
|
2166
|
+
*/
|
|
2167
|
+
this.artifactsDownload = (query, params = {}) => this.request(Object.assign({ path: `/artifacts.download`, method: 'GET', query: query, secure: true }, params));
|
|
2168
|
+
/**
|
|
2169
|
+
* @description Redirects to the artifact's download URL.
|
|
2170
|
+
*
|
|
2171
|
+
* @tags artifacts
|
|
2172
|
+
* @name ArtifactsDownloadPost
|
|
2173
|
+
* @summary Download Artifacts (POST)
|
|
2174
|
+
* @request POST:/artifacts.download
|
|
2175
|
+
* @secure
|
|
2176
|
+
*/
|
|
2177
|
+
this.artifactsDownloadPost = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.download`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
2079
2178
|
/**
|
|
2080
2179
|
* @description Gets the requested artifact's information.
|
|
2081
2180
|
*
|
|
@@ -5007,6 +5106,26 @@ class Api extends HttpClient {
|
|
|
5007
5106
|
* @secure
|
|
5008
5107
|
*/
|
|
5009
5108
|
this.customStatesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/states.custom.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
5109
|
+
/**
|
|
5110
|
+
* @description Gets the requesting user's subscriber status for an object.
|
|
5111
|
+
*
|
|
5112
|
+
* @tags subscribers
|
|
5113
|
+
* @name SubscribersGet
|
|
5114
|
+
* @summary Get Subscriber
|
|
5115
|
+
* @request GET:/subscribers.get
|
|
5116
|
+
* @secure
|
|
5117
|
+
*/
|
|
5118
|
+
this.subscribersGet = (query, params = {}) => this.request(Object.assign({ path: `/subscribers.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
5119
|
+
/**
|
|
5120
|
+
* @description Gets the requesting user's subscriber status for an object.
|
|
5121
|
+
*
|
|
5122
|
+
* @tags subscribers
|
|
5123
|
+
* @name SubscribersGetPost
|
|
5124
|
+
* @summary Get Subscriber (POST)
|
|
5125
|
+
* @request POST:/subscribers.get
|
|
5126
|
+
* @secure
|
|
5127
|
+
*/
|
|
5128
|
+
this.subscribersGetPost = (data, params = {}) => this.request(Object.assign({ path: `/subscribers.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
5010
5129
|
/**
|
|
5011
5130
|
* @description Lists subscribers of an object.
|
|
5012
5131
|
*
|