@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,12 +29,24 @@ 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.UserType = exports.UserState = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TaskPriority = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupMemberType = exports.EventSourceStatus = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentType = exports.ConversationsCreateRequestTypeValue = exports.ArticleStatus = exports.AccessLevel = void 0;
37
- exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhookStatus = exports.WebhookEventType = void 0;
48
+ exports.UnitType = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TaskPriority = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupMemberType = exports.EventSourceStatus = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentType = exports.ConversationsCreateRequestTypeValue = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
49
+ exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhookStatus = exports.WebhookEventType = exports.UserType = exports.UserState = exports.UomMetricScope = void 0;
38
50
  var AccessLevel;
39
51
  (function (AccessLevel) {
40
52
  AccessLevel["External"] = "external";
@@ -43,6 +55,39 @@ var AccessLevel;
43
55
  AccessLevel["Public"] = "public";
44
56
  AccessLevel["Restricted"] = "restricted";
45
57
  })(AccessLevel = exports.AccessLevel || (exports.AccessLevel = {}));
58
+ /**
59
+ * Aggregation type to be used while aggregating the metering data for the
60
+ * UOM. 1] Sum - sum of all the values for the meter in a given period Ex.
61
+ * { M1:2, M1:4 } => {M1:6} 2] Minimum - min of all the values for the
62
+ * meter in a given period Ex. { M1:2, M1:4 } => {M1:2} 3] Maximum - max
63
+ * of all the values for the meter in a given period Ex. { M1:2, M1:4 } =>
64
+ * {M1:4} 4] Unique Count - Sum of distinct unique dimension observed for
65
+ * the meter in the given period (not considering the data from the
66
+ * previous billing period) Ex. January {M1:{VM:VM0}}, February
67
+ * {M1:{VM:VM1}, M1:{VM:VM2}, M1:{VM:VM1}} => {M1:2} 5] Running Total -
68
+ * Sum of distinct active unique dimension observed for a meter in the
69
+ * given period, taking into consideration the active data from the
70
+ * previous billing cycle Ex. January {M1:{VM:VM0,on}, {M1:{VM:VM1,off}
71
+ * February {M1:{VM:VM2, on}, M1:{VM:VM2, off}, M1:{VM:VM3, on}} => {M1:3}
72
+ * 6] Duration - Sum of distinct active unique dimension duration for a
73
+ * meter in the given period, taking into consideration the active data
74
+ * from the previous month Ex. January15 {M1:{VM:VM0,on, 4}} February15
75
+ * {M1:{VM:VM0,off}, February18 {M1:{VM:VM1,on,5} => M1->
76
+ * 30*4*charge_per_day + 10*5*charge_per_day 7] Latest - consider the
77
+ * latest/last meter in the given period 8] Oldest - consider the
78
+ * oldest/first record in the given period.
79
+ */
80
+ var AggregationDetailAggregationType;
81
+ (function (AggregationDetailAggregationType) {
82
+ AggregationDetailAggregationType["Duration"] = "duration";
83
+ AggregationDetailAggregationType["Latest"] = "latest";
84
+ AggregationDetailAggregationType["Maximum"] = "maximum";
85
+ AggregationDetailAggregationType["Minimum"] = "minimum";
86
+ AggregationDetailAggregationType["Oldest"] = "oldest";
87
+ AggregationDetailAggregationType["RunningTotal"] = "running_total";
88
+ AggregationDetailAggregationType["Sum"] = "sum";
89
+ AggregationDetailAggregationType["UniqueCount"] = "unique_count";
90
+ })(AggregationDetailAggregationType = exports.AggregationDetailAggregationType || (exports.AggregationDetailAggregationType = {}));
46
91
  /** Status of the article. */
47
92
  var ArticleStatus;
48
93
  (function (ArticleStatus) {
@@ -104,6 +149,7 @@ var ErrorBadRequestType;
104
149
  ErrorBadRequestType["BadRequest"] = "bad_request";
105
150
  ErrorBadRequestType["InvalidEnumValue"] = "invalid_enum_value";
106
151
  ErrorBadRequestType["InvalidField"] = "invalid_field";
152
+ ErrorBadRequestType["MissingDependency"] = "missing_dependency";
107
153
  ErrorBadRequestType["MissingRequiredField"] = "missing_required_field";
108
154
  ErrorBadRequestType["ParseError"] = "parse_error";
109
155
  ErrorBadRequestType["ValueNotPermitted"] = "value_not_permitted";
@@ -429,6 +475,24 @@ var TimelineEntryVisibility;
429
475
  TimelineEntryVisibility["Private"] = "private";
430
476
  TimelineEntryVisibility["Public"] = "public";
431
477
  })(TimelineEntryVisibility = exports.TimelineEntryVisibility || (exports.TimelineEntryVisibility = {}));
478
+ /**
479
+ * This defines the UOM unit type. For example, for 'number of video
480
+ * calls', unit type will be a number.
481
+ */
482
+ var UnitType;
483
+ (function (UnitType) {
484
+ UnitType["Boolean"] = "boolean";
485
+ UnitType["Number"] = "number";
486
+ })(UnitType = exports.UnitType || (exports.UnitType = {}));
487
+ /**
488
+ * The granularity at which the metrics ingestion data is to be emitted
489
+ * for the UOM.
490
+ */
491
+ var UomMetricScope;
492
+ (function (UomMetricScope) {
493
+ UomMetricScope["Org"] = "org";
494
+ UomMetricScope["User"] = "user";
495
+ })(UomMetricScope = exports.UomMetricScope || (exports.UomMetricScope = {}));
432
496
  /** State of the user. */
433
497
  var UserState;
434
498
  (function (UserState) {
@@ -1620,6 +1684,69 @@ class Api extends HttpClient {
1620
1684
  * @secure
1621
1685
  */
1622
1686
  this.timelineEntriesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1687
+ /**
1688
+ * @description Creates a Unit of Measurement on a part.
1689
+ *
1690
+ * @tags commerce
1691
+ * @name UomsCreate
1692
+ * @request POST:/uoms.create
1693
+ * @secure
1694
+ */
1695
+ this.uomsCreate = (data, params = {}) => this.request(Object.assign({ path: `/uoms.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1696
+ /**
1697
+ * @description Deletes a Unit of Measurement.
1698
+ *
1699
+ * @tags commerce
1700
+ * @name UomsDelete
1701
+ * @request POST:/uoms.delete
1702
+ * @secure
1703
+ */
1704
+ this.uomsDelete = (data, params = {}) => this.request(Object.assign({ path: `/uoms.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1705
+ /**
1706
+ * @description Gets a Unit of Measurement.
1707
+ *
1708
+ * @tags commerce
1709
+ * @name UomsGet
1710
+ * @request GET:/uoms.get
1711
+ * @secure
1712
+ */
1713
+ this.uomsGet = (query, params = {}) => this.request(Object.assign({ path: `/uoms.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1714
+ /**
1715
+ * @description Gets a Unit of Measurement.
1716
+ *
1717
+ * @tags commerce
1718
+ * @name UomsGetPost
1719
+ * @request POST:/uoms.get
1720
+ * @secure
1721
+ */
1722
+ this.uomsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/uoms.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1723
+ /**
1724
+ * @description Gets the Unit of Measurements based on the given filters.
1725
+ *
1726
+ * @tags commerce
1727
+ * @name UomsList
1728
+ * @request GET:/uoms.list
1729
+ * @secure
1730
+ */
1731
+ this.uomsList = (query, params = {}) => this.request(Object.assign({ path: `/uoms.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1732
+ /**
1733
+ * @description Gets the Unit of Measurements based on the given filters.
1734
+ *
1735
+ * @tags commerce
1736
+ * @name UomsListPost
1737
+ * @request POST:/uoms.list
1738
+ * @secure
1739
+ */
1740
+ this.uomsListPost = (data, params = {}) => this.request(Object.assign({ path: `/uoms.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1741
+ /**
1742
+ * @description Updates a Unit of Measurement.
1743
+ *
1744
+ * @tags commerce
1745
+ * @name UomsUpdate
1746
+ * @request POST:/uoms.update
1747
+ * @secure
1748
+ */
1749
+ this.uomsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/uoms.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1623
1750
  /**
1624
1751
  * @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.
1625
1752
  *
@@ -1702,5 +1829,379 @@ class Api extends HttpClient {
1702
1829
  */
1703
1830
  this.worksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/works.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1704
1831
  }
1832
+ /**
1833
+ * @description Gets a list of accounts.
1834
+ *
1835
+ * @tags accounts
1836
+ * @name AccountsList
1837
+ * @request GET:/accounts.list
1838
+ * @secure */
1839
+ accountsListPaginator(query, params = {}) {
1840
+ return __asyncGenerator(this, arguments, function* accountsListPaginator_1() {
1841
+ let response, cursor;
1842
+ // shallow cloning the query object once here to avoid mutating the user provided object
1843
+ query = Object.assign({}, query);
1844
+ do {
1845
+ response = yield __await(this.accountsList(query, params));
1846
+ yield yield __await(response.data);
1847
+ cursor = response.data.next_cursor;
1848
+ if (cursor) {
1849
+ query.cursor = cursor;
1850
+ }
1851
+ } while (cursor);
1852
+ });
1853
+ }
1854
+ /**
1855
+ * @description Lists a collection of articles.
1856
+ *
1857
+ * @tags articles
1858
+ * @name ListArticles
1859
+ * @request GET:/articles.list
1860
+ * @secure */
1861
+ listArticlesPaginator(query, params = {}) {
1862
+ return __asyncGenerator(this, arguments, function* listArticlesPaginator_1() {
1863
+ let response, cursor;
1864
+ // shallow cloning the query object once here to avoid mutating the user provided object
1865
+ query = Object.assign({}, query);
1866
+ do {
1867
+ response = yield __await(this.listArticles(query, params));
1868
+ yield yield __await(response.data);
1869
+ cursor = response.data.next_cursor;
1870
+ if (cursor) {
1871
+ query.cursor = cursor;
1872
+ }
1873
+ } while (cursor);
1874
+ });
1875
+ }
1876
+ /**
1877
+ * @description Lists the available conversations.
1878
+ *
1879
+ * @tags conversations
1880
+ * @name ConversationsList
1881
+ * @request GET:/conversations.list
1882
+ * @secure */
1883
+ conversationsListPaginator(query, params = {}) {
1884
+ return __asyncGenerator(this, arguments, function* conversationsListPaginator_1() {
1885
+ let response, cursor;
1886
+ // shallow cloning the query object once here to avoid mutating the user provided object
1887
+ query = Object.assign({}, query);
1888
+ do {
1889
+ response = yield __await(this.conversationsList(query, params));
1890
+ yield yield __await(response.data);
1891
+ cursor = response.data.next_cursor;
1892
+ if (cursor) {
1893
+ query.cursor = cursor;
1894
+ }
1895
+ } while (cursor);
1896
+ });
1897
+ }
1898
+ /**
1899
+ * @description Lists the engagement records.
1900
+ *
1901
+ * @tags engagements
1902
+ * @name EngagementsList
1903
+ * @request GET:/engagements.list
1904
+ * @secure */
1905
+ engagementsListPaginator(query, params = {}) {
1906
+ return __asyncGenerator(this, arguments, function* engagementsListPaginator_1() {
1907
+ let response, cursor;
1908
+ // shallow cloning the query object once here to avoid mutating the user provided object
1909
+ query = Object.assign({}, query);
1910
+ do {
1911
+ response = yield __await(this.engagementsList(query, params));
1912
+ yield yield __await(response.data);
1913
+ cursor = response.data.next_cursor;
1914
+ if (cursor) {
1915
+ query.cursor = cursor;
1916
+ }
1917
+ } while (cursor);
1918
+ });
1919
+ }
1920
+ /**
1921
+ * @description Lists the available groups.
1922
+ *
1923
+ * @tags groups
1924
+ * @name GroupsList
1925
+ * @request GET:/groups.list
1926
+ * @secure */
1927
+ groupsListPaginator(query, params = {}) {
1928
+ return __asyncGenerator(this, arguments, function* groupsListPaginator_1() {
1929
+ let response, cursor;
1930
+ // shallow cloning the query object once here to avoid mutating the user provided object
1931
+ query = Object.assign({}, query);
1932
+ do {
1933
+ response = yield __await(this.groupsList(query, params));
1934
+ yield yield __await(response.data);
1935
+ cursor = response.data.next_cursor;
1936
+ if (cursor) {
1937
+ query.cursor = cursor;
1938
+ }
1939
+ } while (cursor);
1940
+ });
1941
+ }
1942
+ /**
1943
+ * @description Lists the available links.
1944
+ *
1945
+ * @tags links
1946
+ * @name LinksList
1947
+ * @request GET:/links.list
1948
+ * @secure */
1949
+ linksListPaginator(query, params = {}) {
1950
+ return __asyncGenerator(this, arguments, function* linksListPaginator_1() {
1951
+ let response, cursor;
1952
+ // shallow cloning the query object once here to avoid mutating the user provided object
1953
+ query = Object.assign({}, query);
1954
+ do {
1955
+ response = yield __await(this.linksList(query, params));
1956
+ yield yield __await(response.data);
1957
+ cursor = response.data.next_cursor;
1958
+ if (cursor) {
1959
+ query.cursor = cursor;
1960
+ }
1961
+ } while (cursor);
1962
+ });
1963
+ }
1964
+ /**
1965
+ * @description Lists metric definitions matching a filter.
1966
+ *
1967
+ * @tags slas
1968
+ * @name MetricDefinitionsList
1969
+ * @request GET:/metric-definitions.list
1970
+ * @secure */
1971
+ metricDefinitionsListPaginator(query, params = {}) {
1972
+ return __asyncGenerator(this, arguments, function* metricDefinitionsListPaginator_1() {
1973
+ let response, cursor;
1974
+ // shallow cloning the query object once here to avoid mutating the user provided object
1975
+ query = Object.assign({}, query);
1976
+ do {
1977
+ response = yield __await(this.metricDefinitionsList(query, params));
1978
+ yield yield __await(response.data);
1979
+ cursor = response.data.next_cursor;
1980
+ if (cursor) {
1981
+ query.cursor = cursor;
1982
+ }
1983
+ } while (cursor);
1984
+ });
1985
+ }
1986
+ /**
1987
+ * @description Gets list of organization schedules.
1988
+ *
1989
+ * @tags schedules
1990
+ * @name OrgSchedulesList
1991
+ * @request GET:/org-schedules.list
1992
+ * @secure */
1993
+ orgSchedulesListPaginator(query, params = {}) {
1994
+ return __asyncGenerator(this, arguments, function* orgSchedulesListPaginator_1() {
1995
+ let response, cursor;
1996
+ // shallow cloning the query object once here to avoid mutating the user provided object
1997
+ query = Object.assign({}, query);
1998
+ do {
1999
+ response = yield __await(this.orgSchedulesList(query, params));
2000
+ yield yield __await(response.data);
2001
+ cursor = response.data.next_cursor;
2002
+ if (cursor) {
2003
+ query.cursor = cursor;
2004
+ }
2005
+ } while (cursor);
2006
+ });
2007
+ }
2008
+ /**
2009
+ * @description Lists a collection of [parts](https://devrev.ai/docs/product/parts).
2010
+ *
2011
+ * @tags parts
2012
+ * @name PartsList
2013
+ * @request GET:/parts.list
2014
+ * @secure */
2015
+ partsListPaginator(query, params = {}) {
2016
+ return __asyncGenerator(this, arguments, function* partsListPaginator_1() {
2017
+ let response, cursor;
2018
+ // shallow cloning the query object once here to avoid mutating the user provided object
2019
+ query = Object.assign({}, query);
2020
+ do {
2021
+ response = yield __await(this.partsList(query, params));
2022
+ yield yield __await(response.data);
2023
+ cursor = response.data.next_cursor;
2024
+ if (cursor) {
2025
+ query.cursor = cursor;
2026
+ }
2027
+ } while (cursor);
2028
+ });
2029
+ }
2030
+ /**
2031
+ * @description Gets the list of Rev organizations' information belonging to the authenticated user's Dev Organization which the user is also authorized to access.
2032
+ *
2033
+ * @tags rev-orgs
2034
+ * @name RevOrgsList
2035
+ * @request GET:/rev-orgs.list
2036
+ * @secure */
2037
+ revOrgsListPaginator(query, params = {}) {
2038
+ return __asyncGenerator(this, arguments, function* revOrgsListPaginator_1() {
2039
+ let response, cursor;
2040
+ // shallow cloning the query object once here to avoid mutating the user provided object
2041
+ query = Object.assign({}, query);
2042
+ do {
2043
+ response = yield __await(this.revOrgsList(query, params));
2044
+ yield yield __await(response.data);
2045
+ cursor = response.data.next_cursor;
2046
+ if (cursor) {
2047
+ query.cursor = cursor;
2048
+ }
2049
+ } while (cursor);
2050
+ });
2051
+ }
2052
+ /**
2053
+ * @description Returns a list of all Rev Users belonging to the authenticated user's Dev Organization.
2054
+ *
2055
+ * @tags rev-users
2056
+ * @name RevUsersList
2057
+ * @request GET:/rev-users.list
2058
+ * @secure */
2059
+ revUsersListPaginator(query, params = {}) {
2060
+ return __asyncGenerator(this, arguments, function* revUsersListPaginator_1() {
2061
+ let response, cursor;
2062
+ // shallow cloning the query object once here to avoid mutating the user provided object
2063
+ query = Object.assign({}, query);
2064
+ do {
2065
+ response = yield __await(this.revUsersList(query, params));
2066
+ yield yield __await(response.data);
2067
+ cursor = response.data.next_cursor;
2068
+ if (cursor) {
2069
+ query.cursor = cursor;
2070
+ }
2071
+ } while (cursor);
2072
+ });
2073
+ }
2074
+ /**
2075
+ * @description Lists custom schema fragments.
2076
+ *
2077
+ * @tags customization
2078
+ * @name CustomSchemaFragmentsList
2079
+ * @request GET:/schemas.custom.list
2080
+ * @secure */
2081
+ customSchemaFragmentsListPaginator(query, params = {}) {
2082
+ return __asyncGenerator(this, arguments, function* customSchemaFragmentsListPaginator_1() {
2083
+ let response, cursor;
2084
+ // shallow cloning the query object once here to avoid mutating the user provided object
2085
+ query = Object.assign({}, query);
2086
+ do {
2087
+ response = yield __await(this.customSchemaFragmentsList(query, params));
2088
+ yield yield __await(response.data);
2089
+ cursor = response.data.cursor;
2090
+ if (cursor) {
2091
+ query.cursor = cursor;
2092
+ }
2093
+ } while (cursor);
2094
+ });
2095
+ }
2096
+ /**
2097
+ * @description Lists SLAs matching a filter.
2098
+ *
2099
+ * @tags slas
2100
+ * @name SlasList
2101
+ * @request GET:/slas.list
2102
+ * @secure */
2103
+ slasListPaginator(query, params = {}) {
2104
+ return __asyncGenerator(this, arguments, function* slasListPaginator_1() {
2105
+ let response, cursor;
2106
+ // shallow cloning the query object once here to avoid mutating the user provided object
2107
+ query = Object.assign({}, query);
2108
+ do {
2109
+ response = yield __await(this.slasList(query, params));
2110
+ yield yield __await(response.data);
2111
+ cursor = response.data.next_cursor;
2112
+ if (cursor) {
2113
+ query.cursor = cursor;
2114
+ }
2115
+ } while (cursor);
2116
+ });
2117
+ }
2118
+ /**
2119
+ * @description Lists system users within your organization.
2120
+ *
2121
+ * @tags sys-users
2122
+ * @name SysUsersList
2123
+ * @request GET:/sys-users.list
2124
+ * @secure */
2125
+ sysUsersListPaginator(query, params = {}) {
2126
+ return __asyncGenerator(this, arguments, function* sysUsersListPaginator_1() {
2127
+ let response, cursor;
2128
+ // shallow cloning the query object once here to avoid mutating the user provided object
2129
+ query = Object.assign({}, query);
2130
+ do {
2131
+ response = yield __await(this.sysUsersList(query, params));
2132
+ yield yield __await(response.data);
2133
+ cursor = response.data.next_cursor;
2134
+ if (cursor) {
2135
+ query.cursor = cursor;
2136
+ }
2137
+ } while (cursor);
2138
+ });
2139
+ }
2140
+ /**
2141
+ * @description Lists the timeline entries for an object.
2142
+ *
2143
+ * @tags timeline-entries
2144
+ * @name TimelineEntriesList
2145
+ * @request GET:/timeline-entries.list
2146
+ * @secure */
2147
+ timelineEntriesListPaginator(query, params = {}) {
2148
+ return __asyncGenerator(this, arguments, function* timelineEntriesListPaginator_1() {
2149
+ let response, cursor;
2150
+ // shallow cloning the query object once here to avoid mutating the user provided object
2151
+ query = Object.assign({}, query);
2152
+ do {
2153
+ response = yield __await(this.timelineEntriesList(query, params));
2154
+ yield yield __await(response.data);
2155
+ cursor = response.data.next_cursor;
2156
+ if (cursor) {
2157
+ query.cursor = cursor;
2158
+ }
2159
+ } while (cursor);
2160
+ });
2161
+ }
2162
+ /**
2163
+ * @description Gets the Unit of Measurements based on the given filters.
2164
+ *
2165
+ * @tags commerce
2166
+ * @name UomsList
2167
+ * @request GET:/uoms.list
2168
+ * @secure */
2169
+ uomsListPaginator(query, params = {}) {
2170
+ return __asyncGenerator(this, arguments, function* uomsListPaginator_1() {
2171
+ let response, cursor;
2172
+ // shallow cloning the query object once here to avoid mutating the user provided object
2173
+ query = Object.assign({}, query);
2174
+ do {
2175
+ response = yield __await(this.uomsList(query, params));
2176
+ yield yield __await(response.data);
2177
+ cursor = response.data.next_cursor;
2178
+ if (cursor) {
2179
+ query.cursor = cursor;
2180
+ }
2181
+ } while (cursor);
2182
+ });
2183
+ }
2184
+ /**
2185
+ * @description Lists a collection of work items.
2186
+ *
2187
+ * @tags works
2188
+ * @name WorksList
2189
+ * @request GET:/works.list
2190
+ * @secure */
2191
+ worksListPaginator(query, params = {}) {
2192
+ return __asyncGenerator(this, arguments, function* worksListPaginator_1() {
2193
+ let response, cursor;
2194
+ // shallow cloning the query object once here to avoid mutating the user provided object
2195
+ query = Object.assign({}, query);
2196
+ do {
2197
+ response = yield __await(this.worksList(query, params));
2198
+ yield yield __await(response.data);
2199
+ cursor = response.data.next_cursor;
2200
+ if (cursor) {
2201
+ query.cursor = cursor;
2202
+ }
2203
+ } while (cursor);
2204
+ });
2205
+ }
1705
2206
  }
1706
2207
  exports.Api = Api;