@devrev/typescript-sdk 1.1.4 → 1.1.6

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 === "boolean" ? secure : this.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 === "object") {
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 !== "string") {
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
- ? { "Content-Type": type }
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 || "{protocol}://{hostname}" }));
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 === "object" && formItem !== null) {
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: "GET", query: query, secure: true, format: "json" }, params));
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: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
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: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
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: "POST", body: data, secure: true, type: ContentType.Json }, params));
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: "GET", query: query, secure: true, format: "json" }, params));
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: "GET", query: query, secure: true, format: "json" }, params));
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: "POST", body: data, secure: true, type: ContentType.Json }, params));
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: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
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: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
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: "POST", body: data, secure: true, type: ContentType.Json }, params));
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: "GET", query: query, secure: true, format: "json" }, params));
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: "GET", secure: true, format: "json" }, params));
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: "POST", body: data, secure: true, type: ContentType.Json }, params));
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,16 @@ 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: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
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));
511
+ /**
512
+ * @description Gets the requested user's information.
513
+ *
514
+ * @tags dev-users
515
+ * @name DevUsersGet
516
+ * @request GET:/dev-users.get
517
+ * @secure
518
+ */
519
+ this.devUsersGet = (query, params = {}) => this.request(Object.assign({ path: `/dev-users.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
494
520
  /**
495
521
  * @description Lists users within your organization.
496
522
  *
@@ -499,7 +525,7 @@ class Api extends HttpClient {
499
525
  * @request GET:/dev-users.list
500
526
  * @secure
501
527
  */
502
- this.devUsersList = (query, params = {}) => this.request(Object.assign({ path: `/dev-users.list`, method: "GET", query: query, secure: true, format: "json" }, params));
528
+ this.devUsersList = (query, params = {}) => this.request(Object.assign({ path: `/dev-users.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
503
529
  /**
504
530
  * @description Gets the authenticated user's information.
505
531
  *
@@ -508,7 +534,7 @@ class Api extends HttpClient {
508
534
  * @request GET:/dev-users.self
509
535
  * @secure
510
536
  */
511
- this.devUsersSelf = (params = {}) => this.request(Object.assign({ path: `/dev-users.self`, method: "GET", secure: true, format: "json" }, params));
537
+ this.devUsersSelf = (params = {}) => this.request(Object.assign({ path: `/dev-users.self`, method: 'GET', secure: true, format: 'json' }, params));
512
538
  /**
513
539
  * @description Creates new [part](https://devrev.ai/docs/product/parts).
514
540
  *
@@ -517,7 +543,7 @@ class Api extends HttpClient {
517
543
  * @request POST:/parts.create
518
544
  * @secure
519
545
  */
520
- this.partsCreate = (data, params = {}) => this.request(Object.assign({ path: `/parts.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
546
+ this.partsCreate = (data, params = {}) => this.request(Object.assign({ path: `/parts.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
521
547
  /**
522
548
  * @description Deletes a [part](https://devrev.ai/docs/product/parts).
523
549
  *
@@ -526,7 +552,7 @@ class Api extends HttpClient {
526
552
  * @request POST:/parts.delete
527
553
  * @secure
528
554
  */
529
- this.partsDelete = (data, params = {}) => this.request(Object.assign({ path: `/parts.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
555
+ this.partsDelete = (data, params = {}) => this.request(Object.assign({ path: `/parts.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
530
556
  /**
531
557
  * @description Gets a [part's](https://devrev.ai/docs/product/parts) information.
532
558
  *
@@ -535,7 +561,7 @@ class Api extends HttpClient {
535
561
  * @request GET:/parts.get
536
562
  * @secure
537
563
  */
538
- this.partsGet = (query, params = {}) => this.request(Object.assign({ path: `/parts.get`, method: "GET", query: query, secure: true, format: "json" }, params));
564
+ this.partsGet = (query, params = {}) => this.request(Object.assign({ path: `/parts.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
539
565
  /**
540
566
  * @description Lists a collection of [parts](https://devrev.ai/docs/product/parts).
541
567
  *
@@ -544,7 +570,7 @@ class Api extends HttpClient {
544
570
  * @request GET:/parts.list
545
571
  * @secure
546
572
  */
547
- this.partsList = (query, params = {}) => this.request(Object.assign({ path: `/parts.list`, method: "GET", query: query, secure: true, format: "json" }, params));
573
+ this.partsList = (query, params = {}) => this.request(Object.assign({ path: `/parts.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
548
574
  /**
549
575
  * @description Updates a [part's](https://devrev.ai/docs/product/parts) information.
550
576
  *
@@ -553,7 +579,7 @@ class Api extends HttpClient {
553
579
  * @request POST:/parts.update
554
580
  * @secure
555
581
  */
556
- this.partsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/parts.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
582
+ this.partsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/parts.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
557
583
  /**
558
584
  * @description Creates a Rev organization in the authenticated user's Dev organization.
559
585
  *
@@ -562,7 +588,7 @@ class Api extends HttpClient {
562
588
  * @request POST:/rev-orgs.create
563
589
  * @secure
564
590
  */
565
- this.revOrgsCreate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
591
+ 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
592
  /**
567
593
  * @description Deletes the Rev organization.
568
594
  *
@@ -571,7 +597,7 @@ class Api extends HttpClient {
571
597
  * @request POST:/rev-orgs.delete
572
598
  * @secure
573
599
  */
574
- this.revOrgsDelete = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
600
+ 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
601
  /**
576
602
  * @description Retrieves the Rev organization's information.
577
603
  *
@@ -580,7 +606,7 @@ class Api extends HttpClient {
580
606
  * @request GET:/rev-orgs.get
581
607
  * @secure
582
608
  */
583
- this.revOrgsGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.get`, method: "GET", query: query, secure: true, format: "json" }, params));
609
+ this.revOrgsGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
584
610
  /**
585
611
  * @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
612
  *
@@ -589,7 +615,7 @@ class Api extends HttpClient {
589
615
  * @request GET:/rev-orgs.list
590
616
  * @secure
591
617
  */
592
- this.revOrgsList = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.list`, method: "GET", query: query, secure: true, format: "json" }, params));
618
+ this.revOrgsList = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
593
619
  /**
594
620
  * @description Updates the Rev organization's information.
595
621
  *
@@ -598,7 +624,7 @@ class Api extends HttpClient {
598
624
  * @request POST:/rev-orgs.update
599
625
  * @secure
600
626
  */
601
- this.revOrgsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
627
+ 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
628
  /**
603
629
  * @description Creates a new tag, which is used to create associations between objects and a logical concept denoted by the tag's name.
604
630
  *
@@ -607,7 +633,7 @@ class Api extends HttpClient {
607
633
  * @request POST:/tags.create
608
634
  * @secure
609
635
  */
610
- this.tagsCreate = (data, params = {}) => this.request(Object.assign({ path: `/tags.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
636
+ this.tagsCreate = (data, params = {}) => this.request(Object.assign({ path: `/tags.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
611
637
  /**
612
638
  * @description Deletes a tag.
613
639
  *
@@ -616,7 +642,7 @@ class Api extends HttpClient {
616
642
  * @request POST:/tags.delete
617
643
  * @secure
618
644
  */
619
- this.tagsDelete = (data, params = {}) => this.request(Object.assign({ path: `/tags.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
645
+ this.tagsDelete = (data, params = {}) => this.request(Object.assign({ path: `/tags.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
620
646
  /**
621
647
  * @description Gets a tag's information.
622
648
  *
@@ -625,7 +651,7 @@ class Api extends HttpClient {
625
651
  * @request GET:/tags.get
626
652
  * @secure
627
653
  */
628
- this.tagsGet = (query, params = {}) => this.request(Object.assign({ path: `/tags.get`, method: "GET", query: query, secure: true, format: "json" }, params));
654
+ this.tagsGet = (query, params = {}) => this.request(Object.assign({ path: `/tags.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
629
655
  /**
630
656
  * @description Lists the available tags.
631
657
  *
@@ -634,7 +660,7 @@ class Api extends HttpClient {
634
660
  * @request GET:/tags.list
635
661
  * @secure
636
662
  */
637
- this.tagsList = (query, params = {}) => this.request(Object.assign({ path: `/tags.list`, method: "GET", query: query, secure: true, format: "json" }, params));
663
+ this.tagsList = (query, params = {}) => this.request(Object.assign({ path: `/tags.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
638
664
  /**
639
665
  * @description Updates a tag's information.
640
666
  *
@@ -643,7 +669,7 @@ class Api extends HttpClient {
643
669
  * @request POST:/tags.update
644
670
  * @secure
645
671
  */
646
- this.tagsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/tags.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
672
+ this.tagsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/tags.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
647
673
  /**
648
674
  * @description Creates a new entry on an object's timeline.
649
675
  *
@@ -652,7 +678,16 @@ class Api extends HttpClient {
652
678
  * @request POST:/timeline-entries.create
653
679
  * @secure
654
680
  */
655
- this.timelineEntriesCreate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
681
+ this.timelineEntriesCreate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
682
+ /**
683
+ * @description Deletes an entry from an object's timeline.
684
+ *
685
+ * @tags timeline-entries
686
+ * @name TimelineEntriesDelete
687
+ * @request POST:/timeline-entries.delete
688
+ * @secure
689
+ */
690
+ 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
691
  /**
657
692
  * @description Gets an entry on an object's timeline.
658
693
  *
@@ -661,7 +696,7 @@ class Api extends HttpClient {
661
696
  * @request GET:/timeline-entries.get
662
697
  * @secure
663
698
  */
664
- this.timelineEntriesGet = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.get`, method: "GET", query: query, secure: true, format: "json" }, params));
699
+ this.timelineEntriesGet = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
665
700
  /**
666
701
  * @description Lists the timeline entries for an object.
667
702
  *
@@ -670,7 +705,7 @@ class Api extends HttpClient {
670
705
  * @request GET:/timeline-entries.list
671
706
  * @secure
672
707
  */
673
- this.timelineEntriesList = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.list`, method: "GET", query: query, secure: true, format: "json" }, params));
708
+ this.timelineEntriesList = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
674
709
  /**
675
710
  * @description Updates an entry on an object's timeline.
676
711
  *
@@ -679,7 +714,7 @@ class Api extends HttpClient {
679
714
  * @request POST:/timeline-entries.update
680
715
  * @secure
681
716
  */
682
- this.timelineEntriesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
717
+ 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
718
  /**
684
719
  * @description Creates a new webhook target.
685
720
  *
@@ -688,7 +723,7 @@ class Api extends HttpClient {
688
723
  * @request POST:/webhooks.create
689
724
  * @secure
690
725
  */
691
- this.webhooksCreate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
726
+ this.webhooksCreate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
692
727
  /**
693
728
  * @description Deletes the requested webhook.
694
729
  *
@@ -697,7 +732,7 @@ class Api extends HttpClient {
697
732
  * @request POST:/webhooks.delete
698
733
  * @secure
699
734
  */
700
- this.webhooksDelete = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
735
+ this.webhooksDelete = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
701
736
  /**
702
737
  * @description Gets the requested webhook's information.
703
738
  *
@@ -706,7 +741,7 @@ class Api extends HttpClient {
706
741
  * @request GET:/webhooks.get
707
742
  * @secure
708
743
  */
709
- this.webhooksGet = (query, params = {}) => this.request(Object.assign({ path: `/webhooks.get`, method: "GET", query: query, secure: true, format: "json" }, params));
744
+ this.webhooksGet = (query, params = {}) => this.request(Object.assign({ path: `/webhooks.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
710
745
  /**
711
746
  * @description Lists the webhooks.
712
747
  *
@@ -715,7 +750,7 @@ class Api extends HttpClient {
715
750
  * @request GET:/webhooks.list
716
751
  * @secure
717
752
  */
718
- this.webhooksList = (params = {}) => this.request(Object.assign({ path: `/webhooks.list`, method: "GET", secure: true, format: "json" }, params));
753
+ this.webhooksList = (params = {}) => this.request(Object.assign({ path: `/webhooks.list`, method: 'GET', secure: true, format: 'json' }, params));
719
754
  /**
720
755
  * @description Updates the requested webhook.
721
756
  *
@@ -724,7 +759,7 @@ class Api extends HttpClient {
724
759
  * @request POST:/webhooks.update
725
760
  * @secure
726
761
  */
727
- this.webhooksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
762
+ this.webhooksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
728
763
  /**
729
764
  * @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
765
  *
@@ -733,7 +768,7 @@ class Api extends HttpClient {
733
768
  * @request POST:/works.create
734
769
  * @secure
735
770
  */
736
- this.worksCreate = (data, params = {}) => this.request(Object.assign({ path: `/works.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
771
+ this.worksCreate = (data, params = {}) => this.request(Object.assign({ path: `/works.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
737
772
  /**
738
773
  * @description Deletes a work item.
739
774
  *
@@ -742,7 +777,7 @@ class Api extends HttpClient {
742
777
  * @request POST:/works.delete
743
778
  * @secure
744
779
  */
745
- this.worksDelete = (data, params = {}) => this.request(Object.assign({ path: `/works.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
780
+ this.worksDelete = (data, params = {}) => this.request(Object.assign({ path: `/works.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
746
781
  /**
747
782
  * @description Exports a collection of work items.
748
783
  *
@@ -751,7 +786,7 @@ class Api extends HttpClient {
751
786
  * @request GET:/works.export
752
787
  * @secure
753
788
  */
754
- this.worksExport = (query, params = {}) => this.request(Object.assign({ path: `/works.export`, method: "GET", query: query, secure: true, format: "json" }, params));
789
+ this.worksExport = (query, params = {}) => this.request(Object.assign({ path: `/works.export`, method: 'GET', query: query, secure: true, format: 'json' }, params));
755
790
  /**
756
791
  * @description Gets a work item's information.
757
792
  *
@@ -760,7 +795,7 @@ class Api extends HttpClient {
760
795
  * @request GET:/works.get
761
796
  * @secure
762
797
  */
763
- this.worksGet = (query, params = {}) => this.request(Object.assign({ path: `/works.get`, method: "GET", query: query, secure: true, format: "json" }, params));
798
+ this.worksGet = (query, params = {}) => this.request(Object.assign({ path: `/works.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
764
799
  /**
765
800
  * @description Lists a collection of work items.
766
801
  *
@@ -769,7 +804,7 @@ class Api extends HttpClient {
769
804
  * @request GET:/works.list
770
805
  * @secure
771
806
  */
772
- this.worksList = (query, params = {}) => this.request(Object.assign({ path: `/works.list`, method: "GET", query: query, secure: true, format: "json" }, params));
807
+ this.worksList = (query, params = {}) => this.request(Object.assign({ path: `/works.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
773
808
  /**
774
809
  * @description Updates a work item's information.
775
810
  *
@@ -778,7 +813,7 @@ class Api extends HttpClient {
778
813
  * @request POST:/works.update
779
814
  * @secure
780
815
  */
781
- this.worksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/works.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
816
+ this.worksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/works.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
782
817
  }
783
818
  }
784
819
  exports.Api = Api;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrev/typescript-sdk",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "## SDK Generation",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {