@devrev/typescript-sdk 1.1.21 → 1.1.23
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.WebhookStatus = exports.WebhookEventType = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TimelineEntryVisibility = exports.TimelineEntryType = void 0;
|
|
36
|
+
exports.SlaEvaluationPeriod = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MemberType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupType = exports.GroupMemberType = exports.EventSourceStatus = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CodeChangeSource = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
|
|
37
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TicketChannels = exports.TaskPriority = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = void 0;
|
|
38
38
|
var AccessLevel;
|
|
39
39
|
(function (AccessLevel) {
|
|
40
40
|
AccessLevel["External"] = "external";
|
|
@@ -84,6 +84,98 @@ var ArticleStatus;
|
|
|
84
84
|
ArticleStatus["Published"] = "published";
|
|
85
85
|
ArticleStatus["ReviewNeeded"] = "review_needed";
|
|
86
86
|
})(ArticleStatus = exports.ArticleStatus || (exports.ArticleStatus = {}));
|
|
87
|
+
var AtomType;
|
|
88
|
+
(function (AtomType) {
|
|
89
|
+
AtomType["Account"] = "account";
|
|
90
|
+
AtomType["AppFragment"] = "app_fragment";
|
|
91
|
+
AtomType["Capability"] = "capability";
|
|
92
|
+
AtomType["Conversation"] = "conversation";
|
|
93
|
+
AtomType["CustomTypeFragment"] = "custom_type_fragment";
|
|
94
|
+
AtomType["DevUser"] = "dev_user";
|
|
95
|
+
AtomType["Engagement"] = "engagement";
|
|
96
|
+
AtomType["Enhancement"] = "enhancement";
|
|
97
|
+
AtomType["Feature"] = "feature";
|
|
98
|
+
AtomType["Issue"] = "issue";
|
|
99
|
+
AtomType["Meeting"] = "meeting";
|
|
100
|
+
AtomType["Opportunity"] = "opportunity";
|
|
101
|
+
AtomType["Product"] = "product";
|
|
102
|
+
AtomType["RevOrg"] = "rev_org";
|
|
103
|
+
AtomType["RevUser"] = "rev_user";
|
|
104
|
+
AtomType["ServiceAccount"] = "service_account";
|
|
105
|
+
AtomType["SysUser"] = "sys_user";
|
|
106
|
+
AtomType["Tag"] = "tag";
|
|
107
|
+
AtomType["Task"] = "task";
|
|
108
|
+
AtomType["TenantFragment"] = "tenant_fragment";
|
|
109
|
+
AtomType["Ticket"] = "ticket";
|
|
110
|
+
AtomType["TimelineComment"] = "timeline_comment";
|
|
111
|
+
AtomType["Webhook"] = "webhook";
|
|
112
|
+
})(AtomType = exports.AtomType || (exports.AtomType = {}));
|
|
113
|
+
var AuthConnectionToggle;
|
|
114
|
+
(function (AuthConnectionToggle) {
|
|
115
|
+
AuthConnectionToggle["Disable"] = "disable";
|
|
116
|
+
AuthConnectionToggle["Enable"] = "enable";
|
|
117
|
+
})(AuthConnectionToggle = exports.AuthConnectionToggle || (exports.AuthConnectionToggle = {}));
|
|
118
|
+
/**
|
|
119
|
+
* Defines the type for the authentication connection. The configuration
|
|
120
|
+
* for each authentication connection will depend on the type value.
|
|
121
|
+
*/
|
|
122
|
+
var AuthConnectionType;
|
|
123
|
+
(function (AuthConnectionType) {
|
|
124
|
+
AuthConnectionType["GoogleApps"] = "google_apps";
|
|
125
|
+
AuthConnectionType["Oidc"] = "oidc";
|
|
126
|
+
AuthConnectionType["Samlp"] = "samlp";
|
|
127
|
+
AuthConnectionType["Social"] = "social";
|
|
128
|
+
AuthConnectionType["Waad"] = "waad";
|
|
129
|
+
})(AuthConnectionType = exports.AuthConnectionType || (exports.AuthConnectionType = {}));
|
|
130
|
+
/** Specifies the process of obtaining a token. */
|
|
131
|
+
var AuthTokenGrantType;
|
|
132
|
+
(function (AuthTokenGrantType) {
|
|
133
|
+
AuthTokenGrantType["UrnDevrevParamsOauthGrantTypeTokenIssue"] = "urn:devrev:params:oauth:grant-type:token-issue";
|
|
134
|
+
AuthTokenGrantType["UrnIetfParamsOauthGrantTypeTokenExchange"] = "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
135
|
+
})(AuthTokenGrantType = exports.AuthTokenGrantType || (exports.AuthTokenGrantType = {}));
|
|
136
|
+
/** The type of the requested token. */
|
|
137
|
+
var AuthTokenRequestedTokenType;
|
|
138
|
+
(function (AuthTokenRequestedTokenType) {
|
|
139
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeAat"] = "urn:devrev:params:oauth:token-type:aat";
|
|
140
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeAatPublic"] = "urn:devrev:params:oauth:token-type:aat:public";
|
|
141
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeDev"] = "urn:devrev:params:oauth:token-type:dev";
|
|
142
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeGat"] = "urn:devrev:params:oauth:token-type:gat";
|
|
143
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypePat"] = "urn:devrev:params:oauth:token-type:pat";
|
|
144
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypePatActAs"] = "urn:devrev:params:oauth:token-type:pat:act-as";
|
|
145
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeRat"] = "urn:devrev:params:oauth:token-type:rat";
|
|
146
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeRev"] = "urn:devrev:params:oauth:token-type:rev";
|
|
147
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeSession"] = "urn:devrev:params:oauth:token-type:session";
|
|
148
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeSessionDev0"] = "urn:devrev:params:oauth:token-type:session:dev0";
|
|
149
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeSessionOnetime"] = "urn:devrev:params:oauth:token-type:session:onetime";
|
|
150
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeSuper"] = "urn:devrev:params:oauth:token-type:super";
|
|
151
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeSys"] = "urn:devrev:params:oauth:token-type:sys";
|
|
152
|
+
AuthTokenRequestedTokenType["UrnIetfParamsOauthTokenTypeJwt"] = "urn:ietf:params:oauth:token-type:jwt";
|
|
153
|
+
})(AuthTokenRequestedTokenType = exports.AuthTokenRequestedTokenType || (exports.AuthTokenRequestedTokenType = {}));
|
|
154
|
+
/** The status of the token. */
|
|
155
|
+
var AuthTokenStatus;
|
|
156
|
+
(function (AuthTokenStatus) {
|
|
157
|
+
AuthTokenStatus["Active"] = "active";
|
|
158
|
+
AuthTokenStatus["Expired"] = "expired";
|
|
159
|
+
AuthTokenStatus["Revoked"] = "revoked";
|
|
160
|
+
})(AuthTokenStatus = exports.AuthTokenStatus || (exports.AuthTokenStatus = {}));
|
|
161
|
+
/** The type of the subject token. */
|
|
162
|
+
var AuthTokenSubjectTokenType;
|
|
163
|
+
(function (AuthTokenSubjectTokenType) {
|
|
164
|
+
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeJwtAuth0"] = "urn:devrev:params:oauth:token-type:jwt:auth0";
|
|
165
|
+
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeJwtDev"] = "urn:devrev:params:oauth:token-type:jwt:dev";
|
|
166
|
+
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeRat"] = "urn:devrev:params:oauth:token-type:rat";
|
|
167
|
+
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeRevinfo"] = "urn:devrev:params:oauth:token-type:revinfo";
|
|
168
|
+
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeSession"] = "urn:devrev:params:oauth:token-type:session";
|
|
169
|
+
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeSysu"] = "urn:devrev:params:oauth:token-type:sysu";
|
|
170
|
+
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeUserinfo"] = "urn:devrev:params:oauth:token-type:userinfo";
|
|
171
|
+
AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeUserinfoProfile"] = "urn:devrev:params:oauth:token-type:userinfo:profile";
|
|
172
|
+
AuthTokenSubjectTokenType["UrnIetfParamsOauthTokenTypeJwt"] = "urn:ietf:params:oauth:token-type:jwt";
|
|
173
|
+
})(AuthTokenSubjectTokenType = exports.AuthTokenSubjectTokenType || (exports.AuthTokenSubjectTokenType = {}));
|
|
174
|
+
/** The type of the issued token. Bearer is the only supported token type. */
|
|
175
|
+
var AuthTokenTokenType;
|
|
176
|
+
(function (AuthTokenTokenType) {
|
|
177
|
+
AuthTokenTokenType["Bearer"] = "bearer";
|
|
178
|
+
})(AuthTokenTokenType = exports.AuthTokenTokenType || (exports.AuthTokenTokenType = {}));
|
|
87
179
|
/** Source of the code change object. */
|
|
88
180
|
var CodeChangeSource;
|
|
89
181
|
(function (CodeChangeSource) {
|
|
@@ -93,6 +185,13 @@ var ConversationsCreateRequestTypeValue;
|
|
|
93
185
|
(function (ConversationsCreateRequestTypeValue) {
|
|
94
186
|
ConversationsCreateRequestTypeValue["Support"] = "support";
|
|
95
187
|
})(ConversationsCreateRequestTypeValue = exports.ConversationsCreateRequestTypeValue || (exports.ConversationsCreateRequestTypeValue = {}));
|
|
188
|
+
/** Type of the custom schema fragment. */
|
|
189
|
+
var CustomSchemaFragmentFragmentType;
|
|
190
|
+
(function (CustomSchemaFragmentFragmentType) {
|
|
191
|
+
CustomSchemaFragmentFragmentType["App"] = "app";
|
|
192
|
+
CustomSchemaFragmentFragmentType["CustomType"] = "custom_type";
|
|
193
|
+
CustomSchemaFragmentFragmentType["Tenant"] = "tenant";
|
|
194
|
+
})(CustomSchemaFragmentFragmentType = exports.CustomSchemaFragmentFragmentType || (exports.CustomSchemaFragmentFragmentType = {}));
|
|
96
195
|
var CustomSchemaFragmentType;
|
|
97
196
|
(function (CustomSchemaFragmentType) {
|
|
98
197
|
CustomSchemaFragmentType["AppFragment"] = "app_fragment";
|
|
@@ -117,6 +216,30 @@ var DateTimePresetType;
|
|
|
117
216
|
DateTimePresetType["LastNDays"] = "last_n_days";
|
|
118
217
|
DateTimePresetType["NextNDays"] = "next_n_days";
|
|
119
218
|
})(DateTimePresetType = exports.DateTimePresetType || (exports.DateTimePresetType = {}));
|
|
219
|
+
/**
|
|
220
|
+
* Defines the type for the authentication connection. Different types of
|
|
221
|
+
* authentication connections have different configuration parameters.
|
|
222
|
+
*/
|
|
223
|
+
var DevOrgAuthConnectionsCreateRequestType;
|
|
224
|
+
(function (DevOrgAuthConnectionsCreateRequestType) {
|
|
225
|
+
DevOrgAuthConnectionsCreateRequestType["GoogleApps"] = "google_apps";
|
|
226
|
+
DevOrgAuthConnectionsCreateRequestType["Oidc"] = "oidc";
|
|
227
|
+
DevOrgAuthConnectionsCreateRequestType["Samlp"] = "samlp";
|
|
228
|
+
DevOrgAuthConnectionsCreateRequestType["Waad"] = "waad";
|
|
229
|
+
})(DevOrgAuthConnectionsCreateRequestType = exports.DevOrgAuthConnectionsCreateRequestType || (exports.DevOrgAuthConnectionsCreateRequestType = {}));
|
|
230
|
+
/**
|
|
231
|
+
* Specifies the type for the authentication connection. Different types
|
|
232
|
+
* of authentication connections have different configuration parameters
|
|
233
|
+
* that can be updated.
|
|
234
|
+
*/
|
|
235
|
+
var DevOrgAuthConnectionsUpdateRequestType;
|
|
236
|
+
(function (DevOrgAuthConnectionsUpdateRequestType) {
|
|
237
|
+
DevOrgAuthConnectionsUpdateRequestType["GoogleApps"] = "google_apps";
|
|
238
|
+
DevOrgAuthConnectionsUpdateRequestType["None"] = "none";
|
|
239
|
+
DevOrgAuthConnectionsUpdateRequestType["Oidc"] = "oidc";
|
|
240
|
+
DevOrgAuthConnectionsUpdateRequestType["Samlp"] = "samlp";
|
|
241
|
+
DevOrgAuthConnectionsUpdateRequestType["Waad"] = "waad";
|
|
242
|
+
})(DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsUpdateRequestType || (exports.DevOrgAuthConnectionsUpdateRequestType = {}));
|
|
120
243
|
/** Type of engagement. */
|
|
121
244
|
var EngagementType;
|
|
122
245
|
(function (EngagementType) {
|
|
@@ -140,11 +263,13 @@ var EngagementsCreateRequestEngagementType;
|
|
|
140
263
|
var ErrorBadRequestType;
|
|
141
264
|
(function (ErrorBadRequestType) {
|
|
142
265
|
ErrorBadRequestType["BadRequest"] = "bad_request";
|
|
266
|
+
ErrorBadRequestType["InvalidApiVersion"] = "invalid_api_version";
|
|
143
267
|
ErrorBadRequestType["InvalidEnumValue"] = "invalid_enum_value";
|
|
144
268
|
ErrorBadRequestType["InvalidField"] = "invalid_field";
|
|
145
269
|
ErrorBadRequestType["MissingDependency"] = "missing_dependency";
|
|
146
270
|
ErrorBadRequestType["MissingRequiredField"] = "missing_required_field";
|
|
147
271
|
ErrorBadRequestType["ParseError"] = "parse_error";
|
|
272
|
+
ErrorBadRequestType["StaleSchemaFragments"] = "stale_schema_fragments";
|
|
148
273
|
ErrorBadRequestType["ValueNotPermitted"] = "value_not_permitted";
|
|
149
274
|
})(ErrorBadRequestType = exports.ErrorBadRequestType || (exports.ErrorBadRequestType = {}));
|
|
150
275
|
var ErrorForbiddenType;
|
|
@@ -187,6 +312,12 @@ var GroupMemberType;
|
|
|
187
312
|
GroupMemberType["DevUser"] = "dev_user";
|
|
188
313
|
GroupMemberType["RevUser"] = "rev_user";
|
|
189
314
|
})(GroupMemberType = exports.GroupMemberType || (exports.GroupMemberType = {}));
|
|
315
|
+
/** Type of the group. */
|
|
316
|
+
var GroupType;
|
|
317
|
+
(function (GroupType) {
|
|
318
|
+
GroupType["Dynamic"] = "dynamic";
|
|
319
|
+
GroupType["Static"] = "static";
|
|
320
|
+
})(GroupType = exports.GroupType || (exports.GroupType = {}));
|
|
190
321
|
/** Priority of the work based upon impact and criticality. */
|
|
191
322
|
var IssuePriority;
|
|
192
323
|
(function (IssuePriority) {
|
|
@@ -251,8 +382,6 @@ var MemberType;
|
|
|
251
382
|
var MetricDefinitionAppliesTo;
|
|
252
383
|
(function (MetricDefinitionAppliesTo) {
|
|
253
384
|
MetricDefinitionAppliesTo["Conversation"] = "conversation";
|
|
254
|
-
MetricDefinitionAppliesTo["Issue"] = "issue";
|
|
255
|
-
MetricDefinitionAppliesTo["Task"] = "task";
|
|
256
385
|
MetricDefinitionAppliesTo["Ticket"] = "ticket";
|
|
257
386
|
})(MetricDefinitionAppliesTo = exports.MetricDefinitionAppliesTo || (exports.MetricDefinitionAppliesTo = {}));
|
|
258
387
|
/**
|
|
@@ -424,6 +553,13 @@ var TaskPriority;
|
|
|
424
553
|
TaskPriority["P2"] = "p2";
|
|
425
554
|
TaskPriority["P3"] = "p3";
|
|
426
555
|
})(TaskPriority = exports.TaskPriority || (exports.TaskPriority = {}));
|
|
556
|
+
/** Channels of the ticket. */
|
|
557
|
+
var TicketChannels;
|
|
558
|
+
(function (TicketChannels) {
|
|
559
|
+
TicketChannels["Email"] = "email";
|
|
560
|
+
TicketChannels["Plug"] = "plug";
|
|
561
|
+
TicketChannels["Slack"] = "slack";
|
|
562
|
+
})(TicketChannels = exports.TicketChannels || (exports.TicketChannels = {}));
|
|
427
563
|
/** Severity of the ticket. */
|
|
428
564
|
var TicketSeverity;
|
|
429
565
|
(function (TicketSeverity) {
|
|
@@ -436,6 +572,7 @@ var TicketSeverity;
|
|
|
436
572
|
var TimelineCommentBodyType;
|
|
437
573
|
(function (TimelineCommentBodyType) {
|
|
438
574
|
TimelineCommentBodyType["SnapKit"] = "snap_kit";
|
|
575
|
+
TimelineCommentBodyType["SnapWidget"] = "snap_widget";
|
|
439
576
|
TimelineCommentBodyType["Text"] = "text";
|
|
440
577
|
})(TimelineCommentBodyType = exports.TimelineCommentBodyType || (exports.TimelineCommentBodyType = {}));
|
|
441
578
|
/** Describes collections of timeline entries. */
|
|
@@ -527,6 +664,15 @@ var UserType;
|
|
|
527
664
|
/** The event types that the webhook will receive. */
|
|
528
665
|
var WebhookEventType;
|
|
529
666
|
(function (WebhookEventType) {
|
|
667
|
+
WebhookEventType["AccountCreated"] = "account_created";
|
|
668
|
+
WebhookEventType["AccountDeleted"] = "account_deleted";
|
|
669
|
+
WebhookEventType["AccountUpdated"] = "account_updated";
|
|
670
|
+
WebhookEventType["ConversationCreated"] = "conversation_created";
|
|
671
|
+
WebhookEventType["ConversationDeleted"] = "conversation_deleted";
|
|
672
|
+
WebhookEventType["ConversationUpdated"] = "conversation_updated";
|
|
673
|
+
WebhookEventType["DevUserCreated"] = "dev_user_created";
|
|
674
|
+
WebhookEventType["DevUserDeleted"] = "dev_user_deleted";
|
|
675
|
+
WebhookEventType["DevUserUpdated"] = "dev_user_updated";
|
|
530
676
|
WebhookEventType["PartCreated"] = "part_created";
|
|
531
677
|
WebhookEventType["PartDeleted"] = "part_deleted";
|
|
532
678
|
WebhookEventType["PartUpdated"] = "part_updated";
|
|
@@ -557,6 +703,12 @@ var WebhookStatus;
|
|
|
557
703
|
WebhookStatus["Inactive"] = "inactive";
|
|
558
704
|
WebhookStatus["Unverified"] = "unverified";
|
|
559
705
|
})(WebhookStatus = exports.WebhookStatus || (exports.WebhookStatus = {}));
|
|
706
|
+
/** The action to update the webhook's status. */
|
|
707
|
+
var WebhooksUpdateAction;
|
|
708
|
+
(function (WebhooksUpdateAction) {
|
|
709
|
+
WebhooksUpdateAction["Activate"] = "activate";
|
|
710
|
+
WebhooksUpdateAction["Deactivate"] = "deactivate";
|
|
711
|
+
})(WebhooksUpdateAction = exports.WebhooksUpdateAction || (exports.WebhooksUpdateAction = {}));
|
|
560
712
|
var WorkType;
|
|
561
713
|
(function (WorkType) {
|
|
562
714
|
WorkType["Issue"] = "issue";
|
|
@@ -636,11 +788,11 @@ class HttpClient {
|
|
|
636
788
|
}
|
|
637
789
|
exports.HttpClient = HttpClient;
|
|
638
790
|
/**
|
|
639
|
-
* @title DevRev
|
|
640
|
-
* @version
|
|
791
|
+
* @title DevRev REST API
|
|
792
|
+
* @version 2022-10-20
|
|
641
793
|
* @baseUrl {protocol}://{hostname}
|
|
642
794
|
*
|
|
643
|
-
* DevRev's
|
|
795
|
+
* DevRev's REST API.
|
|
644
796
|
*/
|
|
645
797
|
class Api extends HttpClient {
|
|
646
798
|
constructor() {
|
|
@@ -807,6 +959,60 @@ class Api extends HttpClient {
|
|
|
807
959
|
* @secure
|
|
808
960
|
*/
|
|
809
961
|
this.updateArticle = (data, params = {}) => this.request(Object.assign({ path: `/articles.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
962
|
+
/**
|
|
963
|
+
* @description Gets the requested artifact's information.
|
|
964
|
+
*
|
|
965
|
+
* @tags artifacts
|
|
966
|
+
* @name ArtifactsGet
|
|
967
|
+
* @request GET:/artifacts.get
|
|
968
|
+
* @secure
|
|
969
|
+
*/
|
|
970
|
+
this.artifactsGet = (query, params = {}) => this.request(Object.assign({ path: `/artifacts.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
971
|
+
/**
|
|
972
|
+
* @description Gets the requested artifact's information.
|
|
973
|
+
*
|
|
974
|
+
* @tags artifacts
|
|
975
|
+
* @name ArtifactsGetPost
|
|
976
|
+
* @request POST:/artifacts.get
|
|
977
|
+
* @secure
|
|
978
|
+
*/
|
|
979
|
+
this.artifactsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
980
|
+
/**
|
|
981
|
+
* @description List the artifacts attached to an object.
|
|
982
|
+
*
|
|
983
|
+
* @tags artifacts
|
|
984
|
+
* @name ArtifactsList
|
|
985
|
+
* @request GET:/artifacts.list
|
|
986
|
+
* @secure
|
|
987
|
+
*/
|
|
988
|
+
this.artifactsList = (query, params = {}) => this.request(Object.assign({ path: `/artifacts.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
989
|
+
/**
|
|
990
|
+
* @description List the artifacts attached to an object.
|
|
991
|
+
*
|
|
992
|
+
* @tags artifacts
|
|
993
|
+
* @name ArtifactsListPost
|
|
994
|
+
* @request POST:/artifacts.list
|
|
995
|
+
* @secure
|
|
996
|
+
*/
|
|
997
|
+
this.artifactsListPost = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
998
|
+
/**
|
|
999
|
+
* @description Gets the download URL for the artifact.
|
|
1000
|
+
*
|
|
1001
|
+
* @tags artifacts
|
|
1002
|
+
* @name ArtifactsLocate
|
|
1003
|
+
* @request GET:/artifacts.locate
|
|
1004
|
+
* @secure
|
|
1005
|
+
*/
|
|
1006
|
+
this.artifactsLocate = (query, params = {}) => this.request(Object.assign({ path: `/artifacts.locate`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1007
|
+
/**
|
|
1008
|
+
* @description Gets the download URL for the artifact.
|
|
1009
|
+
*
|
|
1010
|
+
* @tags artifacts
|
|
1011
|
+
* @name ArtifactsLocatePost
|
|
1012
|
+
* @request POST:/artifacts.locate
|
|
1013
|
+
* @secure
|
|
1014
|
+
*/
|
|
1015
|
+
this.artifactsLocatePost = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.locate`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
810
1016
|
/**
|
|
811
1017
|
* @description Creates an artifact and generates an upload URL for its data.
|
|
812
1018
|
*
|
|
@@ -825,6 +1031,78 @@ class Api extends HttpClient {
|
|
|
825
1031
|
* @secure
|
|
826
1032
|
*/
|
|
827
1033
|
this.artifactsVersionsPrepare = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.versions.prepare`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1034
|
+
/**
|
|
1035
|
+
* @description Creates a JWT corresponding to the requested token type for the authenticated user.
|
|
1036
|
+
*
|
|
1037
|
+
* @tags auth-tokens
|
|
1038
|
+
* @name AuthTokensCreate
|
|
1039
|
+
* @request POST:/auth-tokens.create
|
|
1040
|
+
* @secure
|
|
1041
|
+
*/
|
|
1042
|
+
this.authTokensCreate = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1043
|
+
/**
|
|
1044
|
+
* @description Revokes the token that matches the given token ID issued under the given Dev organization.
|
|
1045
|
+
*
|
|
1046
|
+
* @tags auth-tokens
|
|
1047
|
+
* @name AuthTokensDelete
|
|
1048
|
+
* @request POST:/auth-tokens.delete
|
|
1049
|
+
* @secure
|
|
1050
|
+
*/
|
|
1051
|
+
this.authTokensDelete = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
1052
|
+
/**
|
|
1053
|
+
* @description Gets the token metadata corresponding to the given token ID under the given Dev organization.
|
|
1054
|
+
*
|
|
1055
|
+
* @tags auth-tokens
|
|
1056
|
+
* @name AuthTokensGet
|
|
1057
|
+
* @request GET:/auth-tokens.get
|
|
1058
|
+
* @secure
|
|
1059
|
+
*/
|
|
1060
|
+
this.authTokensGet = (query, params = {}) => this.request(Object.assign({ path: `/auth-tokens.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1061
|
+
/**
|
|
1062
|
+
* @description Gets the token metadata corresponding to the given token ID under the given Dev organization.
|
|
1063
|
+
*
|
|
1064
|
+
* @tags auth-tokens
|
|
1065
|
+
* @name AuthTokensGetPost
|
|
1066
|
+
* @request POST:/auth-tokens.get
|
|
1067
|
+
* @secure
|
|
1068
|
+
*/
|
|
1069
|
+
this.authTokensGetPost = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1070
|
+
/**
|
|
1071
|
+
* @description Gets the token metadata for all the tokens corresponding to the given token type issued for a given subject.
|
|
1072
|
+
*
|
|
1073
|
+
* @tags auth-tokens
|
|
1074
|
+
* @name AuthTokensList
|
|
1075
|
+
* @request GET:/auth-tokens.list
|
|
1076
|
+
* @secure
|
|
1077
|
+
*/
|
|
1078
|
+
this.authTokensList = (query, params = {}) => this.request(Object.assign({ path: `/auth-tokens.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1079
|
+
/**
|
|
1080
|
+
* @description Gets the token metadata for all the tokens corresponding to the given token type issued for a given subject.
|
|
1081
|
+
*
|
|
1082
|
+
* @tags auth-tokens
|
|
1083
|
+
* @name AuthTokensListPost
|
|
1084
|
+
* @request POST:/auth-tokens.list
|
|
1085
|
+
* @secure
|
|
1086
|
+
*/
|
|
1087
|
+
this.authTokensListPost = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1088
|
+
/**
|
|
1089
|
+
* @description Revokes all the tokens that matches the given token type created by the authenticated user.
|
|
1090
|
+
*
|
|
1091
|
+
* @tags auth-tokens
|
|
1092
|
+
* @name AuthTokensSelfDelete
|
|
1093
|
+
* @request POST:/auth-tokens.self.delete
|
|
1094
|
+
* @secure
|
|
1095
|
+
*/
|
|
1096
|
+
this.authTokensSelfDelete = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.self.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
1097
|
+
/**
|
|
1098
|
+
* @description Updates token metadata of a token issued under a given Dev organization.
|
|
1099
|
+
*
|
|
1100
|
+
* @tags auth-tokens
|
|
1101
|
+
* @name AuthTokensUpdate
|
|
1102
|
+
* @request POST:/auth-tokens.update
|
|
1103
|
+
* @secure
|
|
1104
|
+
*/
|
|
1105
|
+
this.authTokensUpdate = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
828
1106
|
/**
|
|
829
1107
|
* @description Create CodeChange object.
|
|
830
1108
|
*
|
|
@@ -969,6 +1247,132 @@ class Api extends HttpClient {
|
|
|
969
1247
|
* @secure
|
|
970
1248
|
*/
|
|
971
1249
|
this.conversationsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1250
|
+
/**
|
|
1251
|
+
* @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.
|
|
1252
|
+
*
|
|
1253
|
+
* @tags auth-connection, dev-orgs
|
|
1254
|
+
* @name DevOrgAuthConnectionsCreate
|
|
1255
|
+
* @request POST:/dev-orgs.auth-connections.create
|
|
1256
|
+
* @secure
|
|
1257
|
+
*/
|
|
1258
|
+
this.devOrgAuthConnectionsCreate = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1259
|
+
/**
|
|
1260
|
+
* @description Deletes an authentication connection. Only enterprise connections which are explicitly set up for a Dev organization can be deleted. Default connections can not be deleted using this method.
|
|
1261
|
+
*
|
|
1262
|
+
* @tags auth-connection, dev-orgs
|
|
1263
|
+
* @name DevOrgAuthConnectionsDelete
|
|
1264
|
+
* @request POST:/dev-orgs.auth-connections.delete
|
|
1265
|
+
* @secure
|
|
1266
|
+
*/
|
|
1267
|
+
this.devOrgAuthConnectionsDelete = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
1268
|
+
/**
|
|
1269
|
+
* @description Retrieves the details for an authentication connection.
|
|
1270
|
+
*
|
|
1271
|
+
* @tags auth-connection, dev-orgs
|
|
1272
|
+
* @name DevOrgAuthConnectionsGet
|
|
1273
|
+
* @request GET:/dev-orgs.auth-connections.get
|
|
1274
|
+
* @secure
|
|
1275
|
+
*/
|
|
1276
|
+
this.devOrgAuthConnectionsGet = (query, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1277
|
+
/**
|
|
1278
|
+
* @description Retrieves the details for an authentication connection.
|
|
1279
|
+
*
|
|
1280
|
+
* @tags auth-connection, dev-orgs
|
|
1281
|
+
* @name DevOrgAuthConnectionsGetPost
|
|
1282
|
+
* @request POST:/dev-orgs.auth-connections.get
|
|
1283
|
+
* @secure
|
|
1284
|
+
*/
|
|
1285
|
+
this.devOrgAuthConnectionsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1286
|
+
/**
|
|
1287
|
+
* @description Lists all the authentication connections available for a Dev organization. This list will include both social and enterprise connections which are either available by default or are explicitly created by the user.
|
|
1288
|
+
*
|
|
1289
|
+
* @tags auth-connection, dev-orgs
|
|
1290
|
+
* @name DevOrgAuthConnectionsList
|
|
1291
|
+
* @request GET:/dev-orgs.auth-connections.list
|
|
1292
|
+
* @secure
|
|
1293
|
+
*/
|
|
1294
|
+
this.devOrgAuthConnectionsList = (params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.list`, method: 'GET', secure: true, format: 'json' }, params));
|
|
1295
|
+
/**
|
|
1296
|
+
* @description Lists all the authentication connections available for a Dev organization. This list will include both social and enterprise connections which are either available by default or are explicitly created by the user.
|
|
1297
|
+
*
|
|
1298
|
+
* @tags auth-connection, dev-orgs
|
|
1299
|
+
* @name DevOrgAuthConnectionsListPost
|
|
1300
|
+
* @request POST:/dev-orgs.auth-connections.list
|
|
1301
|
+
* @secure
|
|
1302
|
+
*/
|
|
1303
|
+
this.devOrgAuthConnectionsListPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1304
|
+
/**
|
|
1305
|
+
* @description Enable or disable an authentication connection for a Dev organization. Currently, only 1 authentication connection can be enabled at a time. When a new authentication connection is enabled, the connection which is currently enabled for the Dev organization is automatically disabled.
|
|
1306
|
+
*
|
|
1307
|
+
* @tags auth-connection, dev-orgs
|
|
1308
|
+
* @name DevOrgAuthConnectionsToggle
|
|
1309
|
+
* @request POST:/dev-orgs.auth-connections.toggle
|
|
1310
|
+
* @secure
|
|
1311
|
+
*/
|
|
1312
|
+
this.devOrgAuthConnectionsToggle = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.toggle`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
1313
|
+
/**
|
|
1314
|
+
* @description Updates an authentication connection.
|
|
1315
|
+
*
|
|
1316
|
+
* @tags auth-connection, dev-orgs
|
|
1317
|
+
* @name DevOrgAuthConnectionsUpdate
|
|
1318
|
+
* @request POST:/dev-orgs.auth-connections.update
|
|
1319
|
+
* @secure
|
|
1320
|
+
*/
|
|
1321
|
+
this.devOrgAuthConnectionsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1322
|
+
/**
|
|
1323
|
+
* @description Gets the requested user's information.
|
|
1324
|
+
*
|
|
1325
|
+
* @tags dev-users
|
|
1326
|
+
* @name DevUsersGet
|
|
1327
|
+
* @request GET:/dev-users.get
|
|
1328
|
+
* @secure
|
|
1329
|
+
*/
|
|
1330
|
+
this.devUsersGet = (query, params = {}) => this.request(Object.assign({ path: `/dev-users.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1331
|
+
/**
|
|
1332
|
+
* @description Gets the requested user's information.
|
|
1333
|
+
*
|
|
1334
|
+
* @tags dev-users
|
|
1335
|
+
* @name DevUsersGetPost
|
|
1336
|
+
* @request POST:/dev-users.get
|
|
1337
|
+
* @secure
|
|
1338
|
+
*/
|
|
1339
|
+
this.devUsersGetPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1340
|
+
/**
|
|
1341
|
+
* @description Lists users within your organization.
|
|
1342
|
+
*
|
|
1343
|
+
* @tags dev-users
|
|
1344
|
+
* @name DevUsersList
|
|
1345
|
+
* @request GET:/dev-users.list
|
|
1346
|
+
* @secure
|
|
1347
|
+
*/
|
|
1348
|
+
this.devUsersList = (query, params = {}) => this.request(Object.assign({ path: `/dev-users.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1349
|
+
/**
|
|
1350
|
+
* @description Lists users within your organization.
|
|
1351
|
+
*
|
|
1352
|
+
* @tags dev-users
|
|
1353
|
+
* @name DevUsersListPost
|
|
1354
|
+
* @request POST:/dev-users.list
|
|
1355
|
+
* @secure
|
|
1356
|
+
*/
|
|
1357
|
+
this.devUsersListPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1358
|
+
/**
|
|
1359
|
+
* @description Gets the authenticated user's information.
|
|
1360
|
+
*
|
|
1361
|
+
* @tags dev-users
|
|
1362
|
+
* @name DevUsersSelf
|
|
1363
|
+
* @request GET:/dev-users.self
|
|
1364
|
+
* @secure
|
|
1365
|
+
*/
|
|
1366
|
+
this.devUsersSelf = (params = {}) => this.request(Object.assign({ path: `/dev-users.self`, method: 'GET', secure: true, format: 'json' }, params));
|
|
1367
|
+
/**
|
|
1368
|
+
* @description Gets the authenticated user's information.
|
|
1369
|
+
*
|
|
1370
|
+
* @tags dev-users
|
|
1371
|
+
* @name DevUsersSelfPost
|
|
1372
|
+
* @request POST:/dev-users.self
|
|
1373
|
+
* @secure
|
|
1374
|
+
*/
|
|
1375
|
+
this.devUsersSelfPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.self`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
972
1376
|
/**
|
|
973
1377
|
* @description Counts the engagement records.
|
|
974
1378
|
*
|
|
@@ -1437,6 +1841,15 @@ class Api extends HttpClient {
|
|
|
1437
1841
|
* @secure
|
|
1438
1842
|
*/
|
|
1439
1843
|
this.revOrgsCreate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1844
|
+
/**
|
|
1845
|
+
* @description Deletes the Rev organization.
|
|
1846
|
+
*
|
|
1847
|
+
* @tags rev-orgs
|
|
1848
|
+
* @name RevOrgsDelete
|
|
1849
|
+
* @request POST:/rev-orgs.delete
|
|
1850
|
+
* @secure
|
|
1851
|
+
*/
|
|
1852
|
+
this.revOrgsDelete = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1440
1853
|
/**
|
|
1441
1854
|
* @description Retrieves the Rev organization's information.
|
|
1442
1855
|
*
|
|
@@ -1626,6 +2039,42 @@ class Api extends HttpClient {
|
|
|
1626
2039
|
* @secure
|
|
1627
2040
|
*/
|
|
1628
2041
|
this.customSchemaFragmentsSet = (data, params = {}) => this.request(Object.assign({ path: `/schemas.custom.set`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2042
|
+
/**
|
|
2043
|
+
* @description Gets a stock schema fragment.
|
|
2044
|
+
*
|
|
2045
|
+
* @tags customization
|
|
2046
|
+
* @name StockSchemaFragmentsGet
|
|
2047
|
+
* @request GET:/schemas.stock.get
|
|
2048
|
+
* @secure
|
|
2049
|
+
*/
|
|
2050
|
+
this.stockSchemaFragmentsGet = (query, params = {}) => this.request(Object.assign({ path: `/schemas.stock.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2051
|
+
/**
|
|
2052
|
+
* @description Gets a stock schema fragment.
|
|
2053
|
+
*
|
|
2054
|
+
* @tags customization
|
|
2055
|
+
* @name StockSchemaFragmentsGetPost
|
|
2056
|
+
* @request POST:/schemas.stock.get
|
|
2057
|
+
* @secure
|
|
2058
|
+
*/
|
|
2059
|
+
this.stockSchemaFragmentsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/schemas.stock.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2060
|
+
/**
|
|
2061
|
+
* @description Lists stock schema fragments.
|
|
2062
|
+
*
|
|
2063
|
+
* @tags customization
|
|
2064
|
+
* @name StockSchemaFragmentsList
|
|
2065
|
+
* @request GET:/schemas.stock.list
|
|
2066
|
+
* @secure
|
|
2067
|
+
*/
|
|
2068
|
+
this.stockSchemaFragmentsList = (query, params = {}) => this.request(Object.assign({ path: `/schemas.stock.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2069
|
+
/**
|
|
2070
|
+
* @description Lists stock schema fragments.
|
|
2071
|
+
*
|
|
2072
|
+
* @tags customization
|
|
2073
|
+
* @name StockSchemaFragmentsListPost
|
|
2074
|
+
* @request POST:/schemas.stock.list
|
|
2075
|
+
* @secure
|
|
2076
|
+
*/
|
|
2077
|
+
this.stockSchemaFragmentsListPost = (data, params = {}) => this.request(Object.assign({ path: `/schemas.stock.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1629
2078
|
/**
|
|
1630
2079
|
* @description Lists subtypes.
|
|
1631
2080
|
*
|
|
@@ -1734,6 +2183,24 @@ class Api extends HttpClient {
|
|
|
1734
2183
|
* @secure
|
|
1735
2184
|
*/
|
|
1736
2185
|
this.slasUpdate = (data, params = {}) => this.request(Object.assign({ path: `/slas.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2186
|
+
/**
|
|
2187
|
+
* @description Gets snap-in resources for a user in a snap-in.
|
|
2188
|
+
*
|
|
2189
|
+
* @tags snap-ins
|
|
2190
|
+
* @name SnapInsResources
|
|
2191
|
+
* @request GET:/snap-ins.resources
|
|
2192
|
+
* @secure
|
|
2193
|
+
*/
|
|
2194
|
+
this.snapInsResources = (query, params = {}) => this.request(Object.assign({ path: `/snap-ins.resources`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2195
|
+
/**
|
|
2196
|
+
* @description Gets snap-in resources for a user in a snap-in.
|
|
2197
|
+
*
|
|
2198
|
+
* @tags snap-ins
|
|
2199
|
+
* @name SnapInsResourcesPost
|
|
2200
|
+
* @request POST:/snap-ins.resources
|
|
2201
|
+
* @secure
|
|
2202
|
+
*/
|
|
2203
|
+
this.snapInsResourcesPost = (data, params = {}) => this.request(Object.assign({ path: `/snap-ins.resources`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1737
2204
|
/**
|
|
1738
2205
|
* @description Lists system users within your organization.
|
|
1739
2206
|
*
|
|
@@ -1761,6 +2228,69 @@ class Api extends HttpClient {
|
|
|
1761
2228
|
* @secure
|
|
1762
2229
|
*/
|
|
1763
2230
|
this.sysUsersUpdate = (data, params = {}) => this.request(Object.assign({ path: `/sys-users.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2231
|
+
/**
|
|
2232
|
+
* @description Creates a new tag, which is used to create associations between objects and a logical concept denoted by the tag's name.
|
|
2233
|
+
*
|
|
2234
|
+
* @tags tags
|
|
2235
|
+
* @name TagsCreate
|
|
2236
|
+
* @request POST:/tags.create
|
|
2237
|
+
* @secure
|
|
2238
|
+
*/
|
|
2239
|
+
this.tagsCreate = (data, params = {}) => this.request(Object.assign({ path: `/tags.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2240
|
+
/**
|
|
2241
|
+
* @description Deletes a tag.
|
|
2242
|
+
*
|
|
2243
|
+
* @tags tags
|
|
2244
|
+
* @name TagsDelete
|
|
2245
|
+
* @request POST:/tags.delete
|
|
2246
|
+
* @secure
|
|
2247
|
+
*/
|
|
2248
|
+
this.tagsDelete = (data, params = {}) => this.request(Object.assign({ path: `/tags.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2249
|
+
/**
|
|
2250
|
+
* @description Gets a tag's information.
|
|
2251
|
+
*
|
|
2252
|
+
* @tags tags
|
|
2253
|
+
* @name TagsGet
|
|
2254
|
+
* @request GET:/tags.get
|
|
2255
|
+
* @secure
|
|
2256
|
+
*/
|
|
2257
|
+
this.tagsGet = (query, params = {}) => this.request(Object.assign({ path: `/tags.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2258
|
+
/**
|
|
2259
|
+
* @description Gets a tag's information.
|
|
2260
|
+
*
|
|
2261
|
+
* @tags tags
|
|
2262
|
+
* @name TagsGetPost
|
|
2263
|
+
* @request POST:/tags.get
|
|
2264
|
+
* @secure
|
|
2265
|
+
*/
|
|
2266
|
+
this.tagsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/tags.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2267
|
+
/**
|
|
2268
|
+
* @description Lists the available tags.
|
|
2269
|
+
*
|
|
2270
|
+
* @tags tags
|
|
2271
|
+
* @name TagsList
|
|
2272
|
+
* @request GET:/tags.list
|
|
2273
|
+
* @secure
|
|
2274
|
+
*/
|
|
2275
|
+
this.tagsList = (query, params = {}) => this.request(Object.assign({ path: `/tags.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2276
|
+
/**
|
|
2277
|
+
* @description Lists the available tags.
|
|
2278
|
+
*
|
|
2279
|
+
* @tags tags
|
|
2280
|
+
* @name TagsListPost
|
|
2281
|
+
* @request POST:/tags.list
|
|
2282
|
+
* @secure
|
|
2283
|
+
*/
|
|
2284
|
+
this.tagsListPost = (data, params = {}) => this.request(Object.assign({ path: `/tags.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2285
|
+
/**
|
|
2286
|
+
* @description Updates a tag's information.
|
|
2287
|
+
*
|
|
2288
|
+
* @tags tags
|
|
2289
|
+
* @name TagsUpdate
|
|
2290
|
+
* @request POST:/tags.update
|
|
2291
|
+
* @secure
|
|
2292
|
+
*/
|
|
2293
|
+
this.tagsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/tags.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1764
2294
|
/**
|
|
1765
2295
|
* @description Creates a new entry on an object's timeline.
|
|
1766
2296
|
*
|
|
@@ -1770,6 +2300,33 @@ class Api extends HttpClient {
|
|
|
1770
2300
|
* @secure
|
|
1771
2301
|
*/
|
|
1772
2302
|
this.timelineEntriesCreate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2303
|
+
/**
|
|
2304
|
+
* @description Deletes an entry from an object's timeline.
|
|
2305
|
+
*
|
|
2306
|
+
* @tags timeline-entries
|
|
2307
|
+
* @name TimelineEntriesDelete
|
|
2308
|
+
* @request POST:/timeline-entries.delete
|
|
2309
|
+
* @secure
|
|
2310
|
+
*/
|
|
2311
|
+
this.timelineEntriesDelete = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2312
|
+
/**
|
|
2313
|
+
* @description Gets an entry on an object's timeline.
|
|
2314
|
+
*
|
|
2315
|
+
* @tags timeline-entries
|
|
2316
|
+
* @name TimelineEntriesGet
|
|
2317
|
+
* @request GET:/timeline-entries.get
|
|
2318
|
+
* @secure
|
|
2319
|
+
*/
|
|
2320
|
+
this.timelineEntriesGet = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2321
|
+
/**
|
|
2322
|
+
* @description Gets an entry on an object's timeline.
|
|
2323
|
+
*
|
|
2324
|
+
* @tags timeline-entries
|
|
2325
|
+
* @name TimelineEntriesGetPost
|
|
2326
|
+
* @request POST:/timeline-entries.get
|
|
2327
|
+
* @secure
|
|
2328
|
+
*/
|
|
2329
|
+
this.timelineEntriesGetPost = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1773
2330
|
/**
|
|
1774
2331
|
* @description Lists the timeline entries for an object.
|
|
1775
2332
|
*
|
|
@@ -1860,6 +2417,69 @@ class Api extends HttpClient {
|
|
|
1860
2417
|
* @secure
|
|
1861
2418
|
*/
|
|
1862
2419
|
this.uomsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/uoms.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2420
|
+
/**
|
|
2421
|
+
* @description Creates a new webhook target.
|
|
2422
|
+
*
|
|
2423
|
+
* @tags webhooks
|
|
2424
|
+
* @name WebhooksCreate
|
|
2425
|
+
* @request POST:/webhooks.create
|
|
2426
|
+
* @secure
|
|
2427
|
+
*/
|
|
2428
|
+
this.webhooksCreate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2429
|
+
/**
|
|
2430
|
+
* @description Deletes the requested webhook.
|
|
2431
|
+
*
|
|
2432
|
+
* @tags webhooks
|
|
2433
|
+
* @name WebhooksDelete
|
|
2434
|
+
* @request POST:/webhooks.delete
|
|
2435
|
+
* @secure
|
|
2436
|
+
*/
|
|
2437
|
+
this.webhooksDelete = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2438
|
+
/**
|
|
2439
|
+
* @description Gets the requested webhook's information.
|
|
2440
|
+
*
|
|
2441
|
+
* @tags webhooks
|
|
2442
|
+
* @name WebhooksGet
|
|
2443
|
+
* @request GET:/webhooks.get
|
|
2444
|
+
* @secure
|
|
2445
|
+
*/
|
|
2446
|
+
this.webhooksGet = (query, params = {}) => this.request(Object.assign({ path: `/webhooks.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
2447
|
+
/**
|
|
2448
|
+
* @description Gets the requested webhook's information.
|
|
2449
|
+
*
|
|
2450
|
+
* @tags webhooks
|
|
2451
|
+
* @name WebhooksGetPost
|
|
2452
|
+
* @request POST:/webhooks.get
|
|
2453
|
+
* @secure
|
|
2454
|
+
*/
|
|
2455
|
+
this.webhooksGetPost = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2456
|
+
/**
|
|
2457
|
+
* @description Lists the webhooks.
|
|
2458
|
+
*
|
|
2459
|
+
* @tags webhooks
|
|
2460
|
+
* @name WebhooksList
|
|
2461
|
+
* @request GET:/webhooks.list
|
|
2462
|
+
* @secure
|
|
2463
|
+
*/
|
|
2464
|
+
this.webhooksList = (params = {}) => this.request(Object.assign({ path: `/webhooks.list`, method: 'GET', secure: true, format: 'json' }, params));
|
|
2465
|
+
/**
|
|
2466
|
+
* @description Lists the webhooks.
|
|
2467
|
+
*
|
|
2468
|
+
* @tags webhooks
|
|
2469
|
+
* @name WebhooksListPost
|
|
2470
|
+
* @request POST:/webhooks.list
|
|
2471
|
+
* @secure
|
|
2472
|
+
*/
|
|
2473
|
+
this.webhooksListPost = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
2474
|
+
/**
|
|
2475
|
+
* @description Updates the requested webhook.
|
|
2476
|
+
*
|
|
2477
|
+
* @tags webhooks
|
|
2478
|
+
* @name WebhooksUpdate
|
|
2479
|
+
* @request POST:/webhooks.update
|
|
2480
|
+
* @secure
|
|
2481
|
+
*/
|
|
2482
|
+
this.webhooksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1863
2483
|
/**
|
|
1864
2484
|
* @description Creates new work ([issue](https://devrev.ai/docs/product/build), [ticket](https://devrev.ai/docs/product/support)) item. [task](https://docs.devrev.ai/product/tasks) and opportunity work types are supported in the beta version.
|
|
1865
2485
|
*
|