@devrev/typescript-sdk 1.1.4 → 1.1.5
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,7 +33,7 @@ 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.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.UserType = exports.UserState = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.PartType = exports.OrgType = exports.OrgEnvironment = exports.ListMode = exports.IssuePriority = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorBadRequestType = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = void 0;
|
|
36
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.UserType = exports.UserState = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.PartType = exports.OrgType = exports.OrgEnvironment = exports.ListMode = exports.IssuePriority = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorBadRequestType = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = void 0;
|
|
37
37
|
var AuthConnectionToggle;
|
|
38
38
|
(function (AuthConnectionToggle) {
|
|
39
39
|
AuthConnectionToggle["Disable"] = "disable";
|
|
@@ -210,6 +210,20 @@ var TimelineEntriesUpdateRequestType;
|
|
|
210
210
|
(function (TimelineEntriesUpdateRequestType) {
|
|
211
211
|
TimelineEntriesUpdateRequestType["TimelineComment"] = "timeline_comment";
|
|
212
212
|
})(TimelineEntriesUpdateRequestType = exports.TimelineEntriesUpdateRequestType || (exports.TimelineEntriesUpdateRequestType = {}));
|
|
213
|
+
/** The type of object that the Timeline entry belongs to. */
|
|
214
|
+
var TimelineEntryObjectType;
|
|
215
|
+
(function (TimelineEntryObjectType) {
|
|
216
|
+
TimelineEntryObjectType["Capability"] = "capability";
|
|
217
|
+
TimelineEntryObjectType["Conversation"] = "conversation";
|
|
218
|
+
TimelineEntryObjectType["Enhancement"] = "enhancement";
|
|
219
|
+
TimelineEntryObjectType["Feature"] = "feature";
|
|
220
|
+
TimelineEntryObjectType["Issue"] = "issue";
|
|
221
|
+
TimelineEntryObjectType["Product"] = "product";
|
|
222
|
+
TimelineEntryObjectType["RevOrg"] = "rev_org";
|
|
223
|
+
TimelineEntryObjectType["RevUser"] = "rev_user";
|
|
224
|
+
TimelineEntryObjectType["Ticket"] = "ticket";
|
|
225
|
+
TimelineEntryObjectType["TimelineComment"] = "timeline_comment";
|
|
226
|
+
})(TimelineEntryObjectType = exports.TimelineEntryObjectType || (exports.TimelineEntryObjectType = {}));
|
|
213
227
|
var TimelineEntryType;
|
|
214
228
|
(function (TimelineEntryType) {
|
|
215
229
|
TimelineEntryType["TimelineComment"] = "timeline_comment";
|
|
@@ -252,6 +266,9 @@ var WebhookEventType;
|
|
|
252
266
|
WebhookEventType["RevOrgCreated"] = "rev_org_created";
|
|
253
267
|
WebhookEventType["RevOrgDeleted"] = "rev_org_deleted";
|
|
254
268
|
WebhookEventType["RevOrgUpdated"] = "rev_org_updated";
|
|
269
|
+
WebhookEventType["RevUserCreated"] = "rev_user_created";
|
|
270
|
+
WebhookEventType["RevUserDeleted"] = "rev_user_deleted";
|
|
271
|
+
WebhookEventType["RevUserUpdated"] = "rev_user_updated";
|
|
255
272
|
WebhookEventType["TagCreated"] = "tag_created";
|
|
256
273
|
WebhookEventType["TagDeleted"] = "tag_deleted";
|
|
257
274
|
WebhookEventType["TagUpdated"] = "tag_updated";
|
|
@@ -301,7 +318,7 @@ class HttpClient {
|
|
|
301
318
|
};
|
|
302
319
|
this.request = (_b) => __awaiter(this, void 0, void 0, function* () {
|
|
303
320
|
var { secure, path, type, query, format, body } = _b, params = __rest(_b, ["secure", "path", "type", "query", "format", "body"]);
|
|
304
|
-
const secureParams = ((typeof secure ===
|
|
321
|
+
const secureParams = ((typeof secure === 'boolean' ? secure : this.secure) &&
|
|
305
322
|
this.securityWorker &&
|
|
306
323
|
(yield this.securityWorker(this.securityData))) ||
|
|
307
324
|
{};
|
|
@@ -310,20 +327,20 @@ class HttpClient {
|
|
|
310
327
|
if (type === ContentType.FormData &&
|
|
311
328
|
body &&
|
|
312
329
|
body !== null &&
|
|
313
|
-
typeof body ===
|
|
330
|
+
typeof body === 'object') {
|
|
314
331
|
body = this.createFormData(body);
|
|
315
332
|
}
|
|
316
333
|
if (type === ContentType.Text &&
|
|
317
334
|
body &&
|
|
318
335
|
body !== null &&
|
|
319
|
-
typeof body !==
|
|
336
|
+
typeof body !== 'string') {
|
|
320
337
|
body = JSON.stringify(body);
|
|
321
338
|
}
|
|
322
339
|
return this.instance.request(Object.assign(Object.assign({}, requestParams), { headers: Object.assign(Object.assign({}, (requestParams.headers || {})), (type && type !== ContentType.FormData
|
|
323
|
-
? {
|
|
340
|
+
? { 'Content-Type': type }
|
|
324
341
|
: {})), params: query, responseType: responseFormat, data: body, url: path }));
|
|
325
342
|
});
|
|
326
|
-
this.instance = axios_1.default.create(Object.assign(Object.assign({}, axiosConfig), { baseURL: axiosConfig.baseURL ||
|
|
343
|
+
this.instance = axios_1.default.create(Object.assign(Object.assign({}, axiosConfig), { baseURL: axiosConfig.baseURL || '{protocol}://{hostname}' }));
|
|
327
344
|
this.secure = secure;
|
|
328
345
|
this.format = format;
|
|
329
346
|
this.securityWorker = securityWorker;
|
|
@@ -335,7 +352,7 @@ class HttpClient {
|
|
|
335
352
|
{})), (params1.headers || {})), ((params2 && params2.headers) || {})) });
|
|
336
353
|
}
|
|
337
354
|
stringifyFormItem(formItem) {
|
|
338
|
-
if (typeof formItem ===
|
|
355
|
+
if (typeof formItem === 'object' && formItem !== null) {
|
|
339
356
|
return JSON.stringify(formItem);
|
|
340
357
|
}
|
|
341
358
|
else {
|
|
@@ -373,7 +390,7 @@ class Api extends HttpClient {
|
|
|
373
390
|
* @request GET:/artifacts.locate
|
|
374
391
|
* @secure
|
|
375
392
|
*/
|
|
376
|
-
this.artifactsLocate = (query, params = {}) => this.request(Object.assign({ path: `/artifacts.locate`, method:
|
|
393
|
+
this.artifactsLocate = (query, params = {}) => this.request(Object.assign({ path: `/artifacts.locate`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
377
394
|
/**
|
|
378
395
|
* @description Creates an artifact and generates an upload URL for its data.
|
|
379
396
|
*
|
|
@@ -382,7 +399,7 @@ class Api extends HttpClient {
|
|
|
382
399
|
* @request POST:/artifacts.prepare
|
|
383
400
|
* @secure
|
|
384
401
|
*/
|
|
385
|
-
this.artifactsPrepare = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.prepare`, method:
|
|
402
|
+
this.artifactsPrepare = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.prepare`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
386
403
|
/**
|
|
387
404
|
* @description Creates a JWT corresponding to the requested token type for the authenticated user.
|
|
388
405
|
*
|
|
@@ -391,7 +408,7 @@ class Api extends HttpClient {
|
|
|
391
408
|
* @request POST:/auth-tokens.create
|
|
392
409
|
* @secure
|
|
393
410
|
*/
|
|
394
|
-
this.authTokensCreate = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.create`, method:
|
|
411
|
+
this.authTokensCreate = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
395
412
|
/**
|
|
396
413
|
* @description Revokes the token that matches the given token ID issued under the given Dev organization.
|
|
397
414
|
*
|
|
@@ -400,7 +417,7 @@ class Api extends HttpClient {
|
|
|
400
417
|
* @request POST:/auth-tokens.delete
|
|
401
418
|
* @secure
|
|
402
419
|
*/
|
|
403
|
-
this.authTokensDelete = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.delete`, method:
|
|
420
|
+
this.authTokensDelete = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
404
421
|
/**
|
|
405
422
|
* @description Gets the token metadata corresponding to the given token ID under the given Dev organization.
|
|
406
423
|
*
|
|
@@ -409,7 +426,7 @@ class Api extends HttpClient {
|
|
|
409
426
|
* @request GET:/auth-tokens.get
|
|
410
427
|
* @secure
|
|
411
428
|
*/
|
|
412
|
-
this.authTokensGet = (query, params = {}) => this.request(Object.assign({ path: `/auth-tokens.get`, method:
|
|
429
|
+
this.authTokensGet = (query, params = {}) => this.request(Object.assign({ path: `/auth-tokens.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
413
430
|
/**
|
|
414
431
|
* @description Gets the token metadata for all the tokens corresponding to the given token type issued for a given subject.
|
|
415
432
|
*
|
|
@@ -418,7 +435,7 @@ class Api extends HttpClient {
|
|
|
418
435
|
* @request GET:/auth-tokens.list
|
|
419
436
|
* @secure
|
|
420
437
|
*/
|
|
421
|
-
this.authTokensList = (query, params = {}) => this.request(Object.assign({ path: `/auth-tokens.list`, method:
|
|
438
|
+
this.authTokensList = (query, params = {}) => this.request(Object.assign({ path: `/auth-tokens.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
422
439
|
/**
|
|
423
440
|
* @description Revokes all the tokens that matches the given token type created by the authenticated user.
|
|
424
441
|
*
|
|
@@ -427,7 +444,7 @@ class Api extends HttpClient {
|
|
|
427
444
|
* @request POST:/auth-tokens.self.delete
|
|
428
445
|
* @secure
|
|
429
446
|
*/
|
|
430
|
-
this.authTokensSelfDelete = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.self.delete`, method:
|
|
447
|
+
this.authTokensSelfDelete = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.self.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
431
448
|
/**
|
|
432
449
|
* @description Updates token metadata of a token issued under a given Dev organization.
|
|
433
450
|
*
|
|
@@ -436,7 +453,7 @@ class Api extends HttpClient {
|
|
|
436
453
|
* @request POST:/auth-tokens.update
|
|
437
454
|
* @secure
|
|
438
455
|
*/
|
|
439
|
-
this.authTokensUpdate = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.update`, method:
|
|
456
|
+
this.authTokensUpdate = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
440
457
|
/**
|
|
441
458
|
* @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.
|
|
442
459
|
*
|
|
@@ -445,7 +462,7 @@ class Api extends HttpClient {
|
|
|
445
462
|
* @request POST:/dev-orgs.auth-connections.create
|
|
446
463
|
* @secure
|
|
447
464
|
*/
|
|
448
|
-
this.devOrgAuthConnectionsCreate = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.create`, method:
|
|
465
|
+
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));
|
|
449
466
|
/**
|
|
450
467
|
* @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.
|
|
451
468
|
*
|
|
@@ -454,7 +471,7 @@ class Api extends HttpClient {
|
|
|
454
471
|
* @request POST:/dev-orgs.auth-connections.delete
|
|
455
472
|
* @secure
|
|
456
473
|
*/
|
|
457
|
-
this.devOrgAuthConnectionsDelete = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.delete`, method:
|
|
474
|
+
this.devOrgAuthConnectionsDelete = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
458
475
|
/**
|
|
459
476
|
* @description Retrieves the details for an authentication connection.
|
|
460
477
|
*
|
|
@@ -463,7 +480,7 @@ class Api extends HttpClient {
|
|
|
463
480
|
* @request GET:/dev-orgs.auth-connections.get
|
|
464
481
|
* @secure
|
|
465
482
|
*/
|
|
466
|
-
this.devOrgAuthConnectionsGet = (query, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.get`, method:
|
|
483
|
+
this.devOrgAuthConnectionsGet = (query, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
467
484
|
/**
|
|
468
485
|
* @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.
|
|
469
486
|
*
|
|
@@ -472,7 +489,7 @@ class Api extends HttpClient {
|
|
|
472
489
|
* @request GET:/dev-orgs.auth-connections.list
|
|
473
490
|
* @secure
|
|
474
491
|
*/
|
|
475
|
-
this.devOrgAuthConnectionsList = (params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.list`, method:
|
|
492
|
+
this.devOrgAuthConnectionsList = (params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.list`, method: 'GET', secure: true, format: 'json' }, params));
|
|
476
493
|
/**
|
|
477
494
|
* @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.
|
|
478
495
|
*
|
|
@@ -481,7 +498,7 @@ class Api extends HttpClient {
|
|
|
481
498
|
* @request POST:/dev-orgs.auth-connections.toggle
|
|
482
499
|
* @secure
|
|
483
500
|
*/
|
|
484
|
-
this.devOrgAuthConnectionsToggle = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.toggle`, method:
|
|
501
|
+
this.devOrgAuthConnectionsToggle = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.toggle`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
485
502
|
/**
|
|
486
503
|
* @description Updates an authentication connection.
|
|
487
504
|
*
|
|
@@ -490,7 +507,7 @@ class Api extends HttpClient {
|
|
|
490
507
|
* @request POST:/dev-orgs.auth-connections.update
|
|
491
508
|
* @secure
|
|
492
509
|
*/
|
|
493
|
-
this.devOrgAuthConnectionsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.update`, method:
|
|
510
|
+
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));
|
|
494
511
|
/**
|
|
495
512
|
* @description Lists users within your organization.
|
|
496
513
|
*
|
|
@@ -499,7 +516,7 @@ class Api extends HttpClient {
|
|
|
499
516
|
* @request GET:/dev-users.list
|
|
500
517
|
* @secure
|
|
501
518
|
*/
|
|
502
|
-
this.devUsersList = (query, params = {}) => this.request(Object.assign({ path: `/dev-users.list`, method:
|
|
519
|
+
this.devUsersList = (query, params = {}) => this.request(Object.assign({ path: `/dev-users.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
503
520
|
/**
|
|
504
521
|
* @description Gets the authenticated user's information.
|
|
505
522
|
*
|
|
@@ -508,7 +525,7 @@ class Api extends HttpClient {
|
|
|
508
525
|
* @request GET:/dev-users.self
|
|
509
526
|
* @secure
|
|
510
527
|
*/
|
|
511
|
-
this.devUsersSelf = (params = {}) => this.request(Object.assign({ path: `/dev-users.self`, method:
|
|
528
|
+
this.devUsersSelf = (params = {}) => this.request(Object.assign({ path: `/dev-users.self`, method: 'GET', secure: true, format: 'json' }, params));
|
|
512
529
|
/**
|
|
513
530
|
* @description Creates new [part](https://devrev.ai/docs/product/parts).
|
|
514
531
|
*
|
|
@@ -517,7 +534,7 @@ class Api extends HttpClient {
|
|
|
517
534
|
* @request POST:/parts.create
|
|
518
535
|
* @secure
|
|
519
536
|
*/
|
|
520
|
-
this.partsCreate = (data, params = {}) => this.request(Object.assign({ path: `/parts.create`, method:
|
|
537
|
+
this.partsCreate = (data, params = {}) => this.request(Object.assign({ path: `/parts.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
521
538
|
/**
|
|
522
539
|
* @description Deletes a [part](https://devrev.ai/docs/product/parts).
|
|
523
540
|
*
|
|
@@ -526,7 +543,7 @@ class Api extends HttpClient {
|
|
|
526
543
|
* @request POST:/parts.delete
|
|
527
544
|
* @secure
|
|
528
545
|
*/
|
|
529
|
-
this.partsDelete = (data, params = {}) => this.request(Object.assign({ path: `/parts.delete`, method:
|
|
546
|
+
this.partsDelete = (data, params = {}) => this.request(Object.assign({ path: `/parts.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
530
547
|
/**
|
|
531
548
|
* @description Gets a [part's](https://devrev.ai/docs/product/parts) information.
|
|
532
549
|
*
|
|
@@ -535,7 +552,7 @@ class Api extends HttpClient {
|
|
|
535
552
|
* @request GET:/parts.get
|
|
536
553
|
* @secure
|
|
537
554
|
*/
|
|
538
|
-
this.partsGet = (query, params = {}) => this.request(Object.assign({ path: `/parts.get`, method:
|
|
555
|
+
this.partsGet = (query, params = {}) => this.request(Object.assign({ path: `/parts.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
539
556
|
/**
|
|
540
557
|
* @description Lists a collection of [parts](https://devrev.ai/docs/product/parts).
|
|
541
558
|
*
|
|
@@ -544,7 +561,7 @@ class Api extends HttpClient {
|
|
|
544
561
|
* @request GET:/parts.list
|
|
545
562
|
* @secure
|
|
546
563
|
*/
|
|
547
|
-
this.partsList = (query, params = {}) => this.request(Object.assign({ path: `/parts.list`, method:
|
|
564
|
+
this.partsList = (query, params = {}) => this.request(Object.assign({ path: `/parts.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
548
565
|
/**
|
|
549
566
|
* @description Updates a [part's](https://devrev.ai/docs/product/parts) information.
|
|
550
567
|
*
|
|
@@ -553,7 +570,7 @@ class Api extends HttpClient {
|
|
|
553
570
|
* @request POST:/parts.update
|
|
554
571
|
* @secure
|
|
555
572
|
*/
|
|
556
|
-
this.partsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/parts.update`, method:
|
|
573
|
+
this.partsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/parts.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
557
574
|
/**
|
|
558
575
|
* @description Creates a Rev organization in the authenticated user's Dev organization.
|
|
559
576
|
*
|
|
@@ -562,7 +579,7 @@ class Api extends HttpClient {
|
|
|
562
579
|
* @request POST:/rev-orgs.create
|
|
563
580
|
* @secure
|
|
564
581
|
*/
|
|
565
|
-
this.revOrgsCreate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.create`, method:
|
|
582
|
+
this.revOrgsCreate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
566
583
|
/**
|
|
567
584
|
* @description Deletes the Rev organization.
|
|
568
585
|
*
|
|
@@ -571,7 +588,7 @@ class Api extends HttpClient {
|
|
|
571
588
|
* @request POST:/rev-orgs.delete
|
|
572
589
|
* @secure
|
|
573
590
|
*/
|
|
574
|
-
this.revOrgsDelete = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.delete`, method:
|
|
591
|
+
this.revOrgsDelete = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
575
592
|
/**
|
|
576
593
|
* @description Retrieves the Rev organization's information.
|
|
577
594
|
*
|
|
@@ -580,7 +597,7 @@ class Api extends HttpClient {
|
|
|
580
597
|
* @request GET:/rev-orgs.get
|
|
581
598
|
* @secure
|
|
582
599
|
*/
|
|
583
|
-
this.revOrgsGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.get`, method:
|
|
600
|
+
this.revOrgsGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
584
601
|
/**
|
|
585
602
|
* @description Gets the list of Rev organizations' information belonging to the authenticated user's Dev Organization which the user is also authorized to access.
|
|
586
603
|
*
|
|
@@ -589,7 +606,7 @@ class Api extends HttpClient {
|
|
|
589
606
|
* @request GET:/rev-orgs.list
|
|
590
607
|
* @secure
|
|
591
608
|
*/
|
|
592
|
-
this.revOrgsList = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.list`, method:
|
|
609
|
+
this.revOrgsList = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
593
610
|
/**
|
|
594
611
|
* @description Updates the Rev organization's information.
|
|
595
612
|
*
|
|
@@ -598,7 +615,7 @@ class Api extends HttpClient {
|
|
|
598
615
|
* @request POST:/rev-orgs.update
|
|
599
616
|
* @secure
|
|
600
617
|
*/
|
|
601
|
-
this.revOrgsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.update`, method:
|
|
618
|
+
this.revOrgsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
602
619
|
/**
|
|
603
620
|
* @description Creates a new tag, which is used to create associations between objects and a logical concept denoted by the tag's name.
|
|
604
621
|
*
|
|
@@ -607,7 +624,7 @@ class Api extends HttpClient {
|
|
|
607
624
|
* @request POST:/tags.create
|
|
608
625
|
* @secure
|
|
609
626
|
*/
|
|
610
|
-
this.tagsCreate = (data, params = {}) => this.request(Object.assign({ path: `/tags.create`, method:
|
|
627
|
+
this.tagsCreate = (data, params = {}) => this.request(Object.assign({ path: `/tags.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
611
628
|
/**
|
|
612
629
|
* @description Deletes a tag.
|
|
613
630
|
*
|
|
@@ -616,7 +633,7 @@ class Api extends HttpClient {
|
|
|
616
633
|
* @request POST:/tags.delete
|
|
617
634
|
* @secure
|
|
618
635
|
*/
|
|
619
|
-
this.tagsDelete = (data, params = {}) => this.request(Object.assign({ path: `/tags.delete`, method:
|
|
636
|
+
this.tagsDelete = (data, params = {}) => this.request(Object.assign({ path: `/tags.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
620
637
|
/**
|
|
621
638
|
* @description Gets a tag's information.
|
|
622
639
|
*
|
|
@@ -625,7 +642,7 @@ class Api extends HttpClient {
|
|
|
625
642
|
* @request GET:/tags.get
|
|
626
643
|
* @secure
|
|
627
644
|
*/
|
|
628
|
-
this.tagsGet = (query, params = {}) => this.request(Object.assign({ path: `/tags.get`, method:
|
|
645
|
+
this.tagsGet = (query, params = {}) => this.request(Object.assign({ path: `/tags.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
629
646
|
/**
|
|
630
647
|
* @description Lists the available tags.
|
|
631
648
|
*
|
|
@@ -634,7 +651,7 @@ class Api extends HttpClient {
|
|
|
634
651
|
* @request GET:/tags.list
|
|
635
652
|
* @secure
|
|
636
653
|
*/
|
|
637
|
-
this.tagsList = (query, params = {}) => this.request(Object.assign({ path: `/tags.list`, method:
|
|
654
|
+
this.tagsList = (query, params = {}) => this.request(Object.assign({ path: `/tags.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
638
655
|
/**
|
|
639
656
|
* @description Updates a tag's information.
|
|
640
657
|
*
|
|
@@ -643,7 +660,7 @@ class Api extends HttpClient {
|
|
|
643
660
|
* @request POST:/tags.update
|
|
644
661
|
* @secure
|
|
645
662
|
*/
|
|
646
|
-
this.tagsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/tags.update`, method:
|
|
663
|
+
this.tagsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/tags.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
647
664
|
/**
|
|
648
665
|
* @description Creates a new entry on an object's timeline.
|
|
649
666
|
*
|
|
@@ -652,7 +669,16 @@ class Api extends HttpClient {
|
|
|
652
669
|
* @request POST:/timeline-entries.create
|
|
653
670
|
* @secure
|
|
654
671
|
*/
|
|
655
|
-
this.timelineEntriesCreate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.create`, method:
|
|
672
|
+
this.timelineEntriesCreate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
673
|
+
/**
|
|
674
|
+
* @description Deletes an entry from an object's timeline.
|
|
675
|
+
*
|
|
676
|
+
* @tags timeline-entries
|
|
677
|
+
* @name TimelineEntriesDelete
|
|
678
|
+
* @request POST:/timeline-entries.delete
|
|
679
|
+
* @secure
|
|
680
|
+
*/
|
|
681
|
+
this.timelineEntriesDelete = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
656
682
|
/**
|
|
657
683
|
* @description Gets an entry on an object's timeline.
|
|
658
684
|
*
|
|
@@ -661,7 +687,7 @@ class Api extends HttpClient {
|
|
|
661
687
|
* @request GET:/timeline-entries.get
|
|
662
688
|
* @secure
|
|
663
689
|
*/
|
|
664
|
-
this.timelineEntriesGet = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.get`, method:
|
|
690
|
+
this.timelineEntriesGet = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
665
691
|
/**
|
|
666
692
|
* @description Lists the timeline entries for an object.
|
|
667
693
|
*
|
|
@@ -670,7 +696,7 @@ class Api extends HttpClient {
|
|
|
670
696
|
* @request GET:/timeline-entries.list
|
|
671
697
|
* @secure
|
|
672
698
|
*/
|
|
673
|
-
this.timelineEntriesList = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.list`, method:
|
|
699
|
+
this.timelineEntriesList = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
674
700
|
/**
|
|
675
701
|
* @description Updates an entry on an object's timeline.
|
|
676
702
|
*
|
|
@@ -679,7 +705,7 @@ class Api extends HttpClient {
|
|
|
679
705
|
* @request POST:/timeline-entries.update
|
|
680
706
|
* @secure
|
|
681
707
|
*/
|
|
682
|
-
this.timelineEntriesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.update`, method:
|
|
708
|
+
this.timelineEntriesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
683
709
|
/**
|
|
684
710
|
* @description Creates a new webhook target.
|
|
685
711
|
*
|
|
@@ -688,7 +714,7 @@ class Api extends HttpClient {
|
|
|
688
714
|
* @request POST:/webhooks.create
|
|
689
715
|
* @secure
|
|
690
716
|
*/
|
|
691
|
-
this.webhooksCreate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.create`, method:
|
|
717
|
+
this.webhooksCreate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
692
718
|
/**
|
|
693
719
|
* @description Deletes the requested webhook.
|
|
694
720
|
*
|
|
@@ -697,7 +723,7 @@ class Api extends HttpClient {
|
|
|
697
723
|
* @request POST:/webhooks.delete
|
|
698
724
|
* @secure
|
|
699
725
|
*/
|
|
700
|
-
this.webhooksDelete = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.delete`, method:
|
|
726
|
+
this.webhooksDelete = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
701
727
|
/**
|
|
702
728
|
* @description Gets the requested webhook's information.
|
|
703
729
|
*
|
|
@@ -706,7 +732,7 @@ class Api extends HttpClient {
|
|
|
706
732
|
* @request GET:/webhooks.get
|
|
707
733
|
* @secure
|
|
708
734
|
*/
|
|
709
|
-
this.webhooksGet = (query, params = {}) => this.request(Object.assign({ path: `/webhooks.get`, method:
|
|
735
|
+
this.webhooksGet = (query, params = {}) => this.request(Object.assign({ path: `/webhooks.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
710
736
|
/**
|
|
711
737
|
* @description Lists the webhooks.
|
|
712
738
|
*
|
|
@@ -715,7 +741,7 @@ class Api extends HttpClient {
|
|
|
715
741
|
* @request GET:/webhooks.list
|
|
716
742
|
* @secure
|
|
717
743
|
*/
|
|
718
|
-
this.webhooksList = (params = {}) => this.request(Object.assign({ path: `/webhooks.list`, method:
|
|
744
|
+
this.webhooksList = (params = {}) => this.request(Object.assign({ path: `/webhooks.list`, method: 'GET', secure: true, format: 'json' }, params));
|
|
719
745
|
/**
|
|
720
746
|
* @description Updates the requested webhook.
|
|
721
747
|
*
|
|
@@ -724,7 +750,7 @@ class Api extends HttpClient {
|
|
|
724
750
|
* @request POST:/webhooks.update
|
|
725
751
|
* @secure
|
|
726
752
|
*/
|
|
727
|
-
this.webhooksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.update`, method:
|
|
753
|
+
this.webhooksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
728
754
|
/**
|
|
729
755
|
* @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.
|
|
730
756
|
*
|
|
@@ -733,7 +759,7 @@ class Api extends HttpClient {
|
|
|
733
759
|
* @request POST:/works.create
|
|
734
760
|
* @secure
|
|
735
761
|
*/
|
|
736
|
-
this.worksCreate = (data, params = {}) => this.request(Object.assign({ path: `/works.create`, method:
|
|
762
|
+
this.worksCreate = (data, params = {}) => this.request(Object.assign({ path: `/works.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
737
763
|
/**
|
|
738
764
|
* @description Deletes a work item.
|
|
739
765
|
*
|
|
@@ -742,7 +768,7 @@ class Api extends HttpClient {
|
|
|
742
768
|
* @request POST:/works.delete
|
|
743
769
|
* @secure
|
|
744
770
|
*/
|
|
745
|
-
this.worksDelete = (data, params = {}) => this.request(Object.assign({ path: `/works.delete`, method:
|
|
771
|
+
this.worksDelete = (data, params = {}) => this.request(Object.assign({ path: `/works.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
746
772
|
/**
|
|
747
773
|
* @description Exports a collection of work items.
|
|
748
774
|
*
|
|
@@ -751,7 +777,7 @@ class Api extends HttpClient {
|
|
|
751
777
|
* @request GET:/works.export
|
|
752
778
|
* @secure
|
|
753
779
|
*/
|
|
754
|
-
this.worksExport = (query, params = {}) => this.request(Object.assign({ path: `/works.export`, method:
|
|
780
|
+
this.worksExport = (query, params = {}) => this.request(Object.assign({ path: `/works.export`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
755
781
|
/**
|
|
756
782
|
* @description Gets a work item's information.
|
|
757
783
|
*
|
|
@@ -760,7 +786,7 @@ class Api extends HttpClient {
|
|
|
760
786
|
* @request GET:/works.get
|
|
761
787
|
* @secure
|
|
762
788
|
*/
|
|
763
|
-
this.worksGet = (query, params = {}) => this.request(Object.assign({ path: `/works.get`, method:
|
|
789
|
+
this.worksGet = (query, params = {}) => this.request(Object.assign({ path: `/works.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
764
790
|
/**
|
|
765
791
|
* @description Lists a collection of work items.
|
|
766
792
|
*
|
|
@@ -769,7 +795,7 @@ class Api extends HttpClient {
|
|
|
769
795
|
* @request GET:/works.list
|
|
770
796
|
* @secure
|
|
771
797
|
*/
|
|
772
|
-
this.worksList = (query, params = {}) => this.request(Object.assign({ path: `/works.list`, method:
|
|
798
|
+
this.worksList = (query, params = {}) => this.request(Object.assign({ path: `/works.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
773
799
|
/**
|
|
774
800
|
* @description Updates a work item's information.
|
|
775
801
|
*
|
|
@@ -778,7 +804,7 @@ class Api extends HttpClient {
|
|
|
778
804
|
* @request POST:/works.update
|
|
779
805
|
* @secure
|
|
780
806
|
*/
|
|
781
|
-
this.worksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/works.update`, method:
|
|
807
|
+
this.worksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/works.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
782
808
|
}
|
|
783
809
|
}
|
|
784
810
|
exports.Api = Api;
|