@devrev/typescript-sdk 1.1.55 → 1.1.59
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,8 +33,8 @@ 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.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaGroupItemType = exports.VistaGroupItemState = 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 = void 0;
|
|
36
|
+
exports.SchemaFieldDescriptorArrayTypeBaseType = exports.QuestionAnswerStatus = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgEnvironment = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MemberType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupType = exports.GroupMemberType = 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.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.ConversationsCreateRequestTypeValue = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.ArticleType = exports.ArticleStatus = exports.ArticleContentFormat = exports.AccessLevel = void 0;
|
|
37
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaGroupItemType = exports.VistaGroupItemState = 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 = void 0;
|
|
38
38
|
var AccessLevel;
|
|
39
39
|
(function (AccessLevel) {
|
|
40
40
|
AccessLevel["External"] = "external";
|
|
@@ -43,6 +43,12 @@ var AccessLevel;
|
|
|
43
43
|
AccessLevel["Public"] = "public";
|
|
44
44
|
AccessLevel["Restricted"] = "restricted";
|
|
45
45
|
})(AccessLevel = exports.AccessLevel || (exports.AccessLevel = {}));
|
|
46
|
+
/** Content format of the article. */
|
|
47
|
+
var ArticleContentFormat;
|
|
48
|
+
(function (ArticleContentFormat) {
|
|
49
|
+
ArticleContentFormat["Drdfv2"] = "drdfv2";
|
|
50
|
+
ArticleContentFormat["Rt"] = "rt";
|
|
51
|
+
})(ArticleContentFormat = exports.ArticleContentFormat || (exports.ArticleContentFormat = {}));
|
|
46
52
|
/** Status of the article. */
|
|
47
53
|
var ArticleStatus;
|
|
48
54
|
(function (ArticleStatus) {
|
|
@@ -780,6 +786,7 @@ var WebhookEventType;
|
|
|
780
786
|
WebhookEventType["RevUserUpdated"] = "rev_user_updated";
|
|
781
787
|
WebhookEventType["SlaTrackerCreated"] = "sla_tracker_created";
|
|
782
788
|
WebhookEventType["SlaTrackerDeleted"] = "sla_tracker_deleted";
|
|
789
|
+
WebhookEventType["SlaTrackerFetched"] = "sla_tracker_fetched";
|
|
783
790
|
WebhookEventType["SlaTrackerUpdated"] = "sla_tracker_updated";
|
|
784
791
|
WebhookEventType["SurveyCreated"] = "survey_created";
|
|
785
792
|
WebhookEventType["SurveyDeleted"] = "survey_deleted";
|
|
@@ -1138,6 +1145,26 @@ class Api extends HttpClient {
|
|
|
1138
1145
|
* @secure
|
|
1139
1146
|
*/
|
|
1140
1147
|
this.artifactsPrepare = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.prepare`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1148
|
+
/**
|
|
1149
|
+
* @description Permanently deletes a version of an artifact.
|
|
1150
|
+
*
|
|
1151
|
+
* @tags artifacts
|
|
1152
|
+
* @name ArtifactsHardDeleteVersion
|
|
1153
|
+
* @summary Delete Artifacts Version
|
|
1154
|
+
* @request POST:/artifacts.versions.delete
|
|
1155
|
+
* @secure
|
|
1156
|
+
*/
|
|
1157
|
+
this.artifactsHardDeleteVersion = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.versions.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1158
|
+
/**
|
|
1159
|
+
* @description Prepares a new version for an artifact, returning the URL and form data to upload the updated file.
|
|
1160
|
+
*
|
|
1161
|
+
* @tags artifacts
|
|
1162
|
+
* @name ArtifactsVersionsPrepare
|
|
1163
|
+
* @summary Prepare Artifacts Versions
|
|
1164
|
+
* @request POST:/artifacts.versions.prepare
|
|
1165
|
+
* @secure
|
|
1166
|
+
*/
|
|
1167
|
+
this.artifactsVersionsPrepare = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.versions.prepare`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1141
1168
|
/**
|
|
1142
1169
|
* @description Gets the specified object.
|
|
1143
1170
|
*
|
|
@@ -1647,6 +1674,16 @@ class Api extends HttpClient {
|
|
|
1647
1674
|
* @secure
|
|
1648
1675
|
*/
|
|
1649
1676
|
this.linksListPost = (data, params = {}) => this.request(Object.assign({ path: `/links.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1677
|
+
/**
|
|
1678
|
+
* @description Replaces a link.
|
|
1679
|
+
*
|
|
1680
|
+
* @tags links
|
|
1681
|
+
* @name LinksReplace
|
|
1682
|
+
* @summary Replace Links
|
|
1683
|
+
* @request POST:/links.replace
|
|
1684
|
+
* @secure
|
|
1685
|
+
*/
|
|
1686
|
+
this.linksReplace = (data, params = {}) => this.request(Object.assign({ path: `/links.replace`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1650
1687
|
/**
|
|
1651
1688
|
* @description Lists metric definitions matching a filter.
|
|
1652
1689
|
*
|
|
@@ -1667,6 +1704,26 @@ class Api extends HttpClient {
|
|
|
1667
1704
|
* @secure
|
|
1668
1705
|
*/
|
|
1669
1706
|
this.metricDefinitionsListPost = (data, params = {}) => this.request(Object.assign({ path: `/metric-definitions.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1707
|
+
/**
|
|
1708
|
+
* @description Gets a metric tracker.
|
|
1709
|
+
*
|
|
1710
|
+
* @tags slas
|
|
1711
|
+
* @name MetricTrackersGet
|
|
1712
|
+
* @summary Get Metric Tracker
|
|
1713
|
+
* @request GET:/metric-trackers.get
|
|
1714
|
+
* @secure
|
|
1715
|
+
*/
|
|
1716
|
+
this.metricTrackersGet = (query, params = {}) => this.request(Object.assign({ path: `/metric-trackers.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1717
|
+
/**
|
|
1718
|
+
* @description Gets a metric tracker.
|
|
1719
|
+
*
|
|
1720
|
+
* @tags slas
|
|
1721
|
+
* @name MetricTrackersGetPost
|
|
1722
|
+
* @summary Get Metric Tracker (POST)
|
|
1723
|
+
* @request POST:/metric-trackers.get
|
|
1724
|
+
* @secure
|
|
1725
|
+
*/
|
|
1726
|
+
this.metricTrackersGetPost = (data, params = {}) => this.request(Object.assign({ path: `/metric-trackers.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1670
1727
|
/**
|
|
1671
1728
|
* @description Creates new [part](https://devrev.ai/docs/product/parts).
|
|
1672
1729
|
*
|
|
@@ -1877,6 +1934,16 @@ class Api extends HttpClient {
|
|
|
1877
1934
|
* @secure
|
|
1878
1935
|
*/
|
|
1879
1936
|
this.revUsersUpdate = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1937
|
+
/**
|
|
1938
|
+
* @description Creates a service account.
|
|
1939
|
+
*
|
|
1940
|
+
* @tags service-accounts
|
|
1941
|
+
* @name ServiceAccountsCreate
|
|
1942
|
+
* @summary Create Service Account
|
|
1943
|
+
* @request POST:/service-accounts.create
|
|
1944
|
+
* @secure
|
|
1945
|
+
*/
|
|
1946
|
+
this.serviceAccountsCreate = (data, params = {}) => this.request(Object.assign({ path: `/service-accounts.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1880
1947
|
/**
|
|
1881
1948
|
* @description Gets a service account.
|
|
1882
1949
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devrev/typescript-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.59",
|
|
4
4
|
"description": "## SDK Generation",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"eslint-plugin-import": "^2.27.5",
|
|
34
34
|
"eslint-plugin-prettier": "^4.2.1",
|
|
35
35
|
"jest": "^29.6.1",
|
|
36
|
-
"nodemon": "^
|
|
36
|
+
"nodemon": "^3.1.10",
|
|
37
37
|
"prettier": "^2.8.8",
|
|
38
38
|
"prettier-plugin-organize-imports": "^3.2.2",
|
|
39
39
|
"rimraf": "^4.1.2",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@types/yargs": "^17.0.22",
|
|
47
|
-
"axios": "^1.
|
|
47
|
+
"axios": "^1.9.0",
|
|
48
48
|
"dotenv": "^16.0.3",
|
|
49
49
|
"protobufjs": "^7.3.0",
|
|
50
50
|
"yargs": "^17.6.2"
|