@devrev/typescript-sdk 1.1.16 → 1.1.17
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.
|
@@ -29,11 +29,23 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
29
29
|
}
|
|
30
30
|
return t;
|
|
31
31
|
};
|
|
32
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
33
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
34
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
35
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
36
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
37
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
38
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
39
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
40
|
+
function fulfill(value) { resume("next", value); }
|
|
41
|
+
function reject(value) { resume("throw", value); }
|
|
42
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
43
|
+
};
|
|
32
44
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
33
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
46
|
};
|
|
35
47
|
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.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;
|
|
48
|
+
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.DateTimePresetType = exports.DateFilterType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = void 0;
|
|
37
49
|
var AuthConnectionToggle;
|
|
38
50
|
(function (AuthConnectionToggle) {
|
|
39
51
|
AuthConnectionToggle["Disable"] = "disable";
|
|
@@ -95,6 +107,18 @@ var AuthTokenTokenType;
|
|
|
95
107
|
(function (AuthTokenTokenType) {
|
|
96
108
|
AuthTokenTokenType["Bearer"] = "bearer";
|
|
97
109
|
})(AuthTokenTokenType = exports.AuthTokenTokenType || (exports.AuthTokenTokenType = {}));
|
|
110
|
+
/** Type of date filter. */
|
|
111
|
+
var DateFilterType;
|
|
112
|
+
(function (DateFilterType) {
|
|
113
|
+
DateFilterType["Preset"] = "preset";
|
|
114
|
+
DateFilterType["Range"] = "range";
|
|
115
|
+
})(DateFilterType = exports.DateFilterType || (exports.DateFilterType = {}));
|
|
116
|
+
/** Type of date preset. */
|
|
117
|
+
var DateTimePresetType;
|
|
118
|
+
(function (DateTimePresetType) {
|
|
119
|
+
DateTimePresetType["LastNDays"] = "last_n_days";
|
|
120
|
+
DateTimePresetType["NextNDays"] = "next_n_days";
|
|
121
|
+
})(DateTimePresetType = exports.DateTimePresetType || (exports.DateTimePresetType = {}));
|
|
98
122
|
/**
|
|
99
123
|
* Defines the type for the authentication connection. Different types of
|
|
100
124
|
* authentication connections have different configuration parameters.
|
|
@@ -124,6 +148,7 @@ var ErrorBadRequestType;
|
|
|
124
148
|
ErrorBadRequestType["BadRequest"] = "bad_request";
|
|
125
149
|
ErrorBadRequestType["InvalidEnumValue"] = "invalid_enum_value";
|
|
126
150
|
ErrorBadRequestType["InvalidField"] = "invalid_field";
|
|
151
|
+
ErrorBadRequestType["MissingDependency"] = "missing_dependency";
|
|
127
152
|
ErrorBadRequestType["MissingRequiredField"] = "missing_required_field";
|
|
128
153
|
ErrorBadRequestType["ParseError"] = "parse_error";
|
|
129
154
|
ErrorBadRequestType["ValueNotPermitted"] = "value_not_permitted";
|
|
@@ -394,6 +419,15 @@ class Api extends HttpClient {
|
|
|
394
419
|
* @secure
|
|
395
420
|
*/
|
|
396
421
|
this.artifactsLocate = (query, params = {}) => this.request(Object.assign({ path: `/artifacts.locate`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
422
|
+
/**
|
|
423
|
+
* @description Gets the download URL for the artifact.
|
|
424
|
+
*
|
|
425
|
+
* @tags artifacts
|
|
426
|
+
* @name ArtifactsLocatePost
|
|
427
|
+
* @request POST:/artifacts.locate
|
|
428
|
+
* @secure
|
|
429
|
+
*/
|
|
430
|
+
this.artifactsLocatePost = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.locate`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
397
431
|
/**
|
|
398
432
|
* @description Creates an artifact and generates an upload URL for its data.
|
|
399
433
|
*
|
|
@@ -430,6 +464,15 @@ class Api extends HttpClient {
|
|
|
430
464
|
* @secure
|
|
431
465
|
*/
|
|
432
466
|
this.authTokensGet = (query, params = {}) => this.request(Object.assign({ path: `/auth-tokens.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
467
|
+
/**
|
|
468
|
+
* @description Gets the token metadata corresponding to the given token ID under the given Dev organization.
|
|
469
|
+
*
|
|
470
|
+
* @tags auth-tokens
|
|
471
|
+
* @name AuthTokensGetPost
|
|
472
|
+
* @request POST:/auth-tokens.get
|
|
473
|
+
* @secure
|
|
474
|
+
*/
|
|
475
|
+
this.authTokensGetPost = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
433
476
|
/**
|
|
434
477
|
* @description Gets the token metadata for all the tokens corresponding to the given token type issued for a given subject.
|
|
435
478
|
*
|
|
@@ -439,6 +482,15 @@ class Api extends HttpClient {
|
|
|
439
482
|
* @secure
|
|
440
483
|
*/
|
|
441
484
|
this.authTokensList = (query, params = {}) => this.request(Object.assign({ path: `/auth-tokens.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
485
|
+
/**
|
|
486
|
+
* @description Gets the token metadata for all the tokens corresponding to the given token type issued for a given subject.
|
|
487
|
+
*
|
|
488
|
+
* @tags auth-tokens
|
|
489
|
+
* @name AuthTokensListPost
|
|
490
|
+
* @request POST:/auth-tokens.list
|
|
491
|
+
* @secure
|
|
492
|
+
*/
|
|
493
|
+
this.authTokensListPost = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
442
494
|
/**
|
|
443
495
|
* @description Revokes all the tokens that matches the given token type created by the authenticated user.
|
|
444
496
|
*
|
|
@@ -484,6 +536,15 @@ class Api extends HttpClient {
|
|
|
484
536
|
* @secure
|
|
485
537
|
*/
|
|
486
538
|
this.devOrgAuthConnectionsGet = (query, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
539
|
+
/**
|
|
540
|
+
* @description Retrieves the details for an authentication connection.
|
|
541
|
+
*
|
|
542
|
+
* @tags auth-connection, dev-orgs
|
|
543
|
+
* @name DevOrgAuthConnectionsGetPost
|
|
544
|
+
* @request POST:/dev-orgs.auth-connections.get
|
|
545
|
+
* @secure
|
|
546
|
+
*/
|
|
547
|
+
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));
|
|
487
548
|
/**
|
|
488
549
|
* @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.
|
|
489
550
|
*
|
|
@@ -493,6 +554,15 @@ class Api extends HttpClient {
|
|
|
493
554
|
* @secure
|
|
494
555
|
*/
|
|
495
556
|
this.devOrgAuthConnectionsList = (params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.list`, method: 'GET', secure: true, format: 'json' }, params));
|
|
557
|
+
/**
|
|
558
|
+
* @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.
|
|
559
|
+
*
|
|
560
|
+
* @tags auth-connection, dev-orgs
|
|
561
|
+
* @name DevOrgAuthConnectionsListPost
|
|
562
|
+
* @request POST:/dev-orgs.auth-connections.list
|
|
563
|
+
* @secure
|
|
564
|
+
*/
|
|
565
|
+
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));
|
|
496
566
|
/**
|
|
497
567
|
* @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.
|
|
498
568
|
*
|
|
@@ -520,6 +590,15 @@ class Api extends HttpClient {
|
|
|
520
590
|
* @secure
|
|
521
591
|
*/
|
|
522
592
|
this.devUsersGet = (query, params = {}) => this.request(Object.assign({ path: `/dev-users.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
593
|
+
/**
|
|
594
|
+
* @description Gets the requested user's information.
|
|
595
|
+
*
|
|
596
|
+
* @tags dev-users
|
|
597
|
+
* @name DevUsersGetPost
|
|
598
|
+
* @request POST:/dev-users.get
|
|
599
|
+
* @secure
|
|
600
|
+
*/
|
|
601
|
+
this.devUsersGetPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
523
602
|
/**
|
|
524
603
|
* @description Lists users within your organization.
|
|
525
604
|
*
|
|
@@ -529,6 +608,15 @@ class Api extends HttpClient {
|
|
|
529
608
|
* @secure
|
|
530
609
|
*/
|
|
531
610
|
this.devUsersList = (query, params = {}) => this.request(Object.assign({ path: `/dev-users.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
611
|
+
/**
|
|
612
|
+
* @description Lists users within your organization.
|
|
613
|
+
*
|
|
614
|
+
* @tags dev-users
|
|
615
|
+
* @name DevUsersListPost
|
|
616
|
+
* @request POST:/dev-users.list
|
|
617
|
+
* @secure
|
|
618
|
+
*/
|
|
619
|
+
this.devUsersListPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
532
620
|
/**
|
|
533
621
|
* @description Gets the authenticated user's information.
|
|
534
622
|
*
|
|
@@ -538,6 +626,15 @@ class Api extends HttpClient {
|
|
|
538
626
|
* @secure
|
|
539
627
|
*/
|
|
540
628
|
this.devUsersSelf = (params = {}) => this.request(Object.assign({ path: `/dev-users.self`, method: 'GET', secure: true, format: 'json' }, params));
|
|
629
|
+
/**
|
|
630
|
+
* @description Gets the authenticated user's information.
|
|
631
|
+
*
|
|
632
|
+
* @tags dev-users
|
|
633
|
+
* @name DevUsersSelfPost
|
|
634
|
+
* @request POST:/dev-users.self
|
|
635
|
+
* @secure
|
|
636
|
+
*/
|
|
637
|
+
this.devUsersSelfPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.self`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
541
638
|
/**
|
|
542
639
|
* @description Creates new [part](https://devrev.ai/docs/product/parts).
|
|
543
640
|
*
|
|
@@ -565,6 +662,15 @@ class Api extends HttpClient {
|
|
|
565
662
|
* @secure
|
|
566
663
|
*/
|
|
567
664
|
this.partsGet = (query, params = {}) => this.request(Object.assign({ path: `/parts.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
665
|
+
/**
|
|
666
|
+
* @description Gets a [part's](https://devrev.ai/docs/product/parts) information.
|
|
667
|
+
*
|
|
668
|
+
* @tags parts
|
|
669
|
+
* @name PartsGetPost
|
|
670
|
+
* @request POST:/parts.get
|
|
671
|
+
* @secure
|
|
672
|
+
*/
|
|
673
|
+
this.partsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/parts.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
568
674
|
/**
|
|
569
675
|
* @description Lists a collection of [parts](https://devrev.ai/docs/product/parts).
|
|
570
676
|
*
|
|
@@ -574,6 +680,15 @@ class Api extends HttpClient {
|
|
|
574
680
|
* @secure
|
|
575
681
|
*/
|
|
576
682
|
this.partsList = (query, params = {}) => this.request(Object.assign({ path: `/parts.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
683
|
+
/**
|
|
684
|
+
* @description Lists a collection of [parts](https://devrev.ai/docs/product/parts).
|
|
685
|
+
*
|
|
686
|
+
* @tags parts
|
|
687
|
+
* @name PartsListPost
|
|
688
|
+
* @request POST:/parts.list
|
|
689
|
+
* @secure
|
|
690
|
+
*/
|
|
691
|
+
this.partsListPost = (data, params = {}) => this.request(Object.assign({ path: `/parts.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
577
692
|
/**
|
|
578
693
|
* @description Updates a [part's](https://devrev.ai/docs/product/parts) information.
|
|
579
694
|
*
|
|
@@ -610,6 +725,15 @@ class Api extends HttpClient {
|
|
|
610
725
|
* @secure
|
|
611
726
|
*/
|
|
612
727
|
this.revOrgsGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
728
|
+
/**
|
|
729
|
+
* @description Retrieves the Rev organization's information.
|
|
730
|
+
*
|
|
731
|
+
* @tags rev-orgs
|
|
732
|
+
* @name RevOrgsGetPost
|
|
733
|
+
* @request POST:/rev-orgs.get
|
|
734
|
+
* @secure
|
|
735
|
+
*/
|
|
736
|
+
this.revOrgsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
613
737
|
/**
|
|
614
738
|
* @description Gets the list of Rev organizations' information belonging to the authenticated user's Dev Organization which the user is also authorized to access.
|
|
615
739
|
*
|
|
@@ -619,6 +743,15 @@ class Api extends HttpClient {
|
|
|
619
743
|
* @secure
|
|
620
744
|
*/
|
|
621
745
|
this.revOrgsList = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
746
|
+
/**
|
|
747
|
+
* @description Gets the list of Rev organizations' information belonging to the authenticated user's Dev Organization which the user is also authorized to access.
|
|
748
|
+
*
|
|
749
|
+
* @tags rev-orgs
|
|
750
|
+
* @name RevOrgsListPost
|
|
751
|
+
* @request POST:/rev-orgs.list
|
|
752
|
+
* @secure
|
|
753
|
+
*/
|
|
754
|
+
this.revOrgsListPost = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
622
755
|
/**
|
|
623
756
|
* @description Updates the Rev organization's information.
|
|
624
757
|
*
|
|
@@ -655,6 +788,15 @@ class Api extends HttpClient {
|
|
|
655
788
|
* @secure
|
|
656
789
|
*/
|
|
657
790
|
this.tagsGet = (query, params = {}) => this.request(Object.assign({ path: `/tags.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
791
|
+
/**
|
|
792
|
+
* @description Gets a tag's information.
|
|
793
|
+
*
|
|
794
|
+
* @tags tags
|
|
795
|
+
* @name TagsGetPost
|
|
796
|
+
* @request POST:/tags.get
|
|
797
|
+
* @secure
|
|
798
|
+
*/
|
|
799
|
+
this.tagsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/tags.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
658
800
|
/**
|
|
659
801
|
* @description Lists the available tags.
|
|
660
802
|
*
|
|
@@ -664,6 +806,15 @@ class Api extends HttpClient {
|
|
|
664
806
|
* @secure
|
|
665
807
|
*/
|
|
666
808
|
this.tagsList = (query, params = {}) => this.request(Object.assign({ path: `/tags.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
809
|
+
/**
|
|
810
|
+
* @description Lists the available tags.
|
|
811
|
+
*
|
|
812
|
+
* @tags tags
|
|
813
|
+
* @name TagsListPost
|
|
814
|
+
* @request POST:/tags.list
|
|
815
|
+
* @secure
|
|
816
|
+
*/
|
|
817
|
+
this.tagsListPost = (data, params = {}) => this.request(Object.assign({ path: `/tags.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
667
818
|
/**
|
|
668
819
|
* @description Updates a tag's information.
|
|
669
820
|
*
|
|
@@ -700,6 +851,15 @@ class Api extends HttpClient {
|
|
|
700
851
|
* @secure
|
|
701
852
|
*/
|
|
702
853
|
this.timelineEntriesGet = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
854
|
+
/**
|
|
855
|
+
* @description Gets an entry on an object's timeline.
|
|
856
|
+
*
|
|
857
|
+
* @tags timeline-entries
|
|
858
|
+
* @name TimelineEntriesGetPost
|
|
859
|
+
* @request POST:/timeline-entries.get
|
|
860
|
+
* @secure
|
|
861
|
+
*/
|
|
862
|
+
this.timelineEntriesGetPost = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
703
863
|
/**
|
|
704
864
|
* @description Lists the timeline entries for an object.
|
|
705
865
|
*
|
|
@@ -709,6 +869,15 @@ class Api extends HttpClient {
|
|
|
709
869
|
* @secure
|
|
710
870
|
*/
|
|
711
871
|
this.timelineEntriesList = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
872
|
+
/**
|
|
873
|
+
* @description Lists the timeline entries for an object.
|
|
874
|
+
*
|
|
875
|
+
* @tags timeline-entries
|
|
876
|
+
* @name TimelineEntriesListPost
|
|
877
|
+
* @request POST:/timeline-entries.list
|
|
878
|
+
* @secure
|
|
879
|
+
*/
|
|
880
|
+
this.timelineEntriesListPost = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
712
881
|
/**
|
|
713
882
|
* @description Updates an entry on an object's timeline.
|
|
714
883
|
*
|
|
@@ -745,6 +914,15 @@ class Api extends HttpClient {
|
|
|
745
914
|
* @secure
|
|
746
915
|
*/
|
|
747
916
|
this.webhooksGet = (query, params = {}) => this.request(Object.assign({ path: `/webhooks.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
917
|
+
/**
|
|
918
|
+
* @description Gets the requested webhook's information.
|
|
919
|
+
*
|
|
920
|
+
* @tags webhooks
|
|
921
|
+
* @name WebhooksGetPost
|
|
922
|
+
* @request POST:/webhooks.get
|
|
923
|
+
* @secure
|
|
924
|
+
*/
|
|
925
|
+
this.webhooksGetPost = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
748
926
|
/**
|
|
749
927
|
* @description Lists the webhooks.
|
|
750
928
|
*
|
|
@@ -754,6 +932,15 @@ class Api extends HttpClient {
|
|
|
754
932
|
* @secure
|
|
755
933
|
*/
|
|
756
934
|
this.webhooksList = (params = {}) => this.request(Object.assign({ path: `/webhooks.list`, method: 'GET', secure: true, format: 'json' }, params));
|
|
935
|
+
/**
|
|
936
|
+
* @description Lists the webhooks.
|
|
937
|
+
*
|
|
938
|
+
* @tags webhooks
|
|
939
|
+
* @name WebhooksListPost
|
|
940
|
+
* @request POST:/webhooks.list
|
|
941
|
+
* @secure
|
|
942
|
+
*/
|
|
943
|
+
this.webhooksListPost = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
757
944
|
/**
|
|
758
945
|
* @description Updates the requested webhook.
|
|
759
946
|
*
|
|
@@ -790,6 +977,15 @@ class Api extends HttpClient {
|
|
|
790
977
|
* @secure
|
|
791
978
|
*/
|
|
792
979
|
this.worksExport = (query, params = {}) => this.request(Object.assign({ path: `/works.export`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
980
|
+
/**
|
|
981
|
+
* @description Exports a collection of work items.
|
|
982
|
+
*
|
|
983
|
+
* @tags works
|
|
984
|
+
* @name WorksExportPost
|
|
985
|
+
* @request POST:/works.export
|
|
986
|
+
* @secure
|
|
987
|
+
*/
|
|
988
|
+
this.worksExportPost = (data, params = {}) => this.request(Object.assign({ path: `/works.export`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
793
989
|
/**
|
|
794
990
|
* @description Gets a work item's information.
|
|
795
991
|
*
|
|
@@ -799,6 +995,15 @@ class Api extends HttpClient {
|
|
|
799
995
|
* @secure
|
|
800
996
|
*/
|
|
801
997
|
this.worksGet = (query, params = {}) => this.request(Object.assign({ path: `/works.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
998
|
+
/**
|
|
999
|
+
* @description Gets a work item's information.
|
|
1000
|
+
*
|
|
1001
|
+
* @tags works
|
|
1002
|
+
* @name WorksGetPost
|
|
1003
|
+
* @request POST:/works.get
|
|
1004
|
+
* @secure
|
|
1005
|
+
*/
|
|
1006
|
+
this.worksGetPost = (data, params = {}) => this.request(Object.assign({ path: `/works.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
802
1007
|
/**
|
|
803
1008
|
* @description Lists a collection of work items.
|
|
804
1009
|
*
|
|
@@ -808,6 +1013,15 @@ class Api extends HttpClient {
|
|
|
808
1013
|
* @secure
|
|
809
1014
|
*/
|
|
810
1015
|
this.worksList = (query, params = {}) => this.request(Object.assign({ path: `/works.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1016
|
+
/**
|
|
1017
|
+
* @description Lists a collection of work items.
|
|
1018
|
+
*
|
|
1019
|
+
* @tags works
|
|
1020
|
+
* @name WorksListPost
|
|
1021
|
+
* @request POST:/works.list
|
|
1022
|
+
* @secure
|
|
1023
|
+
*/
|
|
1024
|
+
this.worksListPost = (data, params = {}) => this.request(Object.assign({ path: `/works.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
811
1025
|
/**
|
|
812
1026
|
* @description Updates a work item's information.
|
|
813
1027
|
*
|
|
@@ -818,5 +1032,137 @@ class Api extends HttpClient {
|
|
|
818
1032
|
*/
|
|
819
1033
|
this.worksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/works.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
820
1034
|
}
|
|
1035
|
+
/**
|
|
1036
|
+
* @description Lists users within your organization.
|
|
1037
|
+
*
|
|
1038
|
+
* @tags dev-users
|
|
1039
|
+
* @name DevUsersList
|
|
1040
|
+
* @request GET:/dev-users.list
|
|
1041
|
+
* @secure */
|
|
1042
|
+
devUsersListPaginator(query, params = {}) {
|
|
1043
|
+
return __asyncGenerator(this, arguments, function* devUsersListPaginator_1() {
|
|
1044
|
+
let response, cursor;
|
|
1045
|
+
// shallow cloning the query object once here to avoid mutating the user provided object
|
|
1046
|
+
query = Object.assign({}, query);
|
|
1047
|
+
do {
|
|
1048
|
+
response = yield __await(this.devUsersList(query, params));
|
|
1049
|
+
yield yield __await(response.data);
|
|
1050
|
+
cursor = response.data.next_cursor;
|
|
1051
|
+
if (cursor) {
|
|
1052
|
+
query.cursor = cursor;
|
|
1053
|
+
}
|
|
1054
|
+
} while (cursor);
|
|
1055
|
+
});
|
|
1056
|
+
}
|
|
1057
|
+
/**
|
|
1058
|
+
* @description Lists a collection of [parts](https://devrev.ai/docs/product/parts).
|
|
1059
|
+
*
|
|
1060
|
+
* @tags parts
|
|
1061
|
+
* @name PartsList
|
|
1062
|
+
* @request GET:/parts.list
|
|
1063
|
+
* @secure */
|
|
1064
|
+
partsListPaginator(query, params = {}) {
|
|
1065
|
+
return __asyncGenerator(this, arguments, function* partsListPaginator_1() {
|
|
1066
|
+
let response, cursor;
|
|
1067
|
+
// shallow cloning the query object once here to avoid mutating the user provided object
|
|
1068
|
+
query = Object.assign({}, query);
|
|
1069
|
+
do {
|
|
1070
|
+
response = yield __await(this.partsList(query, params));
|
|
1071
|
+
yield yield __await(response.data);
|
|
1072
|
+
cursor = response.data.next_cursor;
|
|
1073
|
+
if (cursor) {
|
|
1074
|
+
query.cursor = cursor;
|
|
1075
|
+
}
|
|
1076
|
+
} while (cursor);
|
|
1077
|
+
});
|
|
1078
|
+
}
|
|
1079
|
+
/**
|
|
1080
|
+
* @description Gets the list of Rev organizations' information belonging to the authenticated user's Dev Organization which the user is also authorized to access.
|
|
1081
|
+
*
|
|
1082
|
+
* @tags rev-orgs
|
|
1083
|
+
* @name RevOrgsList
|
|
1084
|
+
* @request GET:/rev-orgs.list
|
|
1085
|
+
* @secure */
|
|
1086
|
+
revOrgsListPaginator(query, params = {}) {
|
|
1087
|
+
return __asyncGenerator(this, arguments, function* revOrgsListPaginator_1() {
|
|
1088
|
+
let response, cursor;
|
|
1089
|
+
// shallow cloning the query object once here to avoid mutating the user provided object
|
|
1090
|
+
query = Object.assign({}, query);
|
|
1091
|
+
do {
|
|
1092
|
+
response = yield __await(this.revOrgsList(query, params));
|
|
1093
|
+
yield yield __await(response.data);
|
|
1094
|
+
cursor = response.data.next_cursor;
|
|
1095
|
+
if (cursor) {
|
|
1096
|
+
query.cursor = cursor;
|
|
1097
|
+
}
|
|
1098
|
+
} while (cursor);
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
/**
|
|
1102
|
+
* @description Lists the available tags.
|
|
1103
|
+
*
|
|
1104
|
+
* @tags tags
|
|
1105
|
+
* @name TagsList
|
|
1106
|
+
* @request GET:/tags.list
|
|
1107
|
+
* @secure */
|
|
1108
|
+
tagsListPaginator(query, params = {}) {
|
|
1109
|
+
return __asyncGenerator(this, arguments, function* tagsListPaginator_1() {
|
|
1110
|
+
let response, cursor;
|
|
1111
|
+
// shallow cloning the query object once here to avoid mutating the user provided object
|
|
1112
|
+
query = Object.assign({}, query);
|
|
1113
|
+
do {
|
|
1114
|
+
response = yield __await(this.tagsList(query, params));
|
|
1115
|
+
yield yield __await(response.data);
|
|
1116
|
+
cursor = response.data.next_cursor;
|
|
1117
|
+
if (cursor) {
|
|
1118
|
+
query.cursor = cursor;
|
|
1119
|
+
}
|
|
1120
|
+
} while (cursor);
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
/**
|
|
1124
|
+
* @description Lists the timeline entries for an object.
|
|
1125
|
+
*
|
|
1126
|
+
* @tags timeline-entries
|
|
1127
|
+
* @name TimelineEntriesList
|
|
1128
|
+
* @request GET:/timeline-entries.list
|
|
1129
|
+
* @secure */
|
|
1130
|
+
timelineEntriesListPaginator(query, params = {}) {
|
|
1131
|
+
return __asyncGenerator(this, arguments, function* timelineEntriesListPaginator_1() {
|
|
1132
|
+
let response, cursor;
|
|
1133
|
+
// shallow cloning the query object once here to avoid mutating the user provided object
|
|
1134
|
+
query = Object.assign({}, query);
|
|
1135
|
+
do {
|
|
1136
|
+
response = yield __await(this.timelineEntriesList(query, params));
|
|
1137
|
+
yield yield __await(response.data);
|
|
1138
|
+
cursor = response.data.next_cursor;
|
|
1139
|
+
if (cursor) {
|
|
1140
|
+
query.cursor = cursor;
|
|
1141
|
+
}
|
|
1142
|
+
} while (cursor);
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* @description Lists a collection of work items.
|
|
1147
|
+
*
|
|
1148
|
+
* @tags works
|
|
1149
|
+
* @name WorksList
|
|
1150
|
+
* @request GET:/works.list
|
|
1151
|
+
* @secure */
|
|
1152
|
+
worksListPaginator(query, params = {}) {
|
|
1153
|
+
return __asyncGenerator(this, arguments, function* worksListPaginator_1() {
|
|
1154
|
+
let response, cursor;
|
|
1155
|
+
// shallow cloning the query object once here to avoid mutating the user provided object
|
|
1156
|
+
query = Object.assign({}, query);
|
|
1157
|
+
do {
|
|
1158
|
+
response = yield __await(this.worksList(query, params));
|
|
1159
|
+
yield yield __await(response.data);
|
|
1160
|
+
cursor = response.data.next_cursor;
|
|
1161
|
+
if (cursor) {
|
|
1162
|
+
query.cursor = cursor;
|
|
1163
|
+
}
|
|
1164
|
+
} while (cursor);
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
821
1167
|
}
|
|
822
1168
|
exports.Api = Api;
|