@devrev/typescript-sdk 1.1.17 → 1.1.19

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,24 +29,12 @@ 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
- };
44
32
  var __importDefault = (this && this.__importDefault) || function (mod) {
45
33
  return (mod && mod.__esModule) ? mod : { "default": mod };
46
34
  };
47
35
  Object.defineProperty(exports, "__esModule", { value: true });
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;
36
+ exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TaskPriority = exports.SlaSummaryStage = 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;
37
+ exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhookStatus = exports.WebhookEventType = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = void 0;
50
38
  var AccessLevel;
51
39
  (function (AccessLevel) {
52
40
  AccessLevel["External"] = "external";
@@ -339,6 +327,7 @@ var SchemaFieldDescriptorArrayTypeBaseType;
339
327
  SchemaFieldDescriptorArrayTypeBaseType["Text"] = "text";
340
328
  SchemaFieldDescriptorArrayTypeBaseType["Timestamp"] = "timestamp";
341
329
  SchemaFieldDescriptorArrayTypeBaseType["Tokens"] = "tokens";
330
+ SchemaFieldDescriptorArrayTypeBaseType["Uenum"] = "uenum";
342
331
  })(SchemaFieldDescriptorArrayTypeBaseType = exports.SchemaFieldDescriptorArrayTypeBaseType || (exports.SchemaFieldDescriptorArrayTypeBaseType = {}));
343
332
  var SchemaFieldDescriptorFieldType;
344
333
  (function (SchemaFieldDescriptorFieldType) {
@@ -354,6 +343,8 @@ var SchemaFieldDescriptorFieldType;
354
343
  SchemaFieldDescriptorFieldType["Text"] = "text";
355
344
  SchemaFieldDescriptorFieldType["Timestamp"] = "timestamp";
356
345
  SchemaFieldDescriptorFieldType["Tokens"] = "tokens";
346
+ SchemaFieldDescriptorFieldType["Uenum"] = "uenum";
347
+ SchemaFieldDescriptorFieldType["Unknown"] = "unknown";
357
348
  })(SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorFieldType || (exports.SchemaFieldDescriptorFieldType = {}));
358
349
  /**
359
350
  * Specifies the frequency of when the contractually-meaningful evaluation
@@ -402,6 +393,18 @@ var SlaStatus;
402
393
  SlaStatus["Draft"] = "draft";
403
394
  SlaStatus["Published"] = "published";
404
395
  })(SlaStatus = exports.SlaStatus || (exports.SlaStatus = {}));
396
+ /**
397
+ * The stage of the SLA. This is the metric stage which is closest to
398
+ * breach.
399
+ */
400
+ var SlaSummaryStage;
401
+ (function (SlaSummaryStage) {
402
+ SlaSummaryStage["Breached"] = "breached";
403
+ SlaSummaryStage["Completed"] = "completed";
404
+ SlaSummaryStage["Paused"] = "paused";
405
+ SlaSummaryStage["Running"] = "running";
406
+ SlaSummaryStage["Warning"] = "warning";
407
+ })(SlaSummaryStage = exports.SlaSummaryStage || (exports.SlaSummaryStage = {}));
405
408
  /** Priority of the work based upon impact and criticality. */
406
409
  var TaskPriority;
407
410
  (function (TaskPriority) {
@@ -1138,7 +1141,7 @@ class Api extends HttpClient {
1138
1141
  /**
1139
1142
  * @description Ingest endpoint for DevRev metrics data from clients.
1140
1143
  *
1141
- * @tags telemetry
1144
+ * @tags product-usage
1142
1145
  * @name MetricsDevrevIngest
1143
1146
  * @request POST:/metrics.devrev.ingest
1144
1147
  * @secure
@@ -1687,7 +1690,7 @@ class Api extends HttpClient {
1687
1690
  /**
1688
1691
  * @description Creates a Unit of Measurement on a part.
1689
1692
  *
1690
- * @tags commerce
1693
+ * @tags product-usage
1691
1694
  * @name UomsCreate
1692
1695
  * @request POST:/uoms.create
1693
1696
  * @secure
@@ -1696,7 +1699,7 @@ class Api extends HttpClient {
1696
1699
  /**
1697
1700
  * @description Deletes a Unit of Measurement.
1698
1701
  *
1699
- * @tags commerce
1702
+ * @tags product-usage
1700
1703
  * @name UomsDelete
1701
1704
  * @request POST:/uoms.delete
1702
1705
  * @secure
@@ -1705,7 +1708,7 @@ class Api extends HttpClient {
1705
1708
  /**
1706
1709
  * @description Gets a Unit of Measurement.
1707
1710
  *
1708
- * @tags commerce
1711
+ * @tags product-usage
1709
1712
  * @name UomsGet
1710
1713
  * @request GET:/uoms.get
1711
1714
  * @secure
@@ -1714,7 +1717,7 @@ class Api extends HttpClient {
1714
1717
  /**
1715
1718
  * @description Gets a Unit of Measurement.
1716
1719
  *
1717
- * @tags commerce
1720
+ * @tags product-usage
1718
1721
  * @name UomsGetPost
1719
1722
  * @request POST:/uoms.get
1720
1723
  * @secure
@@ -1723,7 +1726,7 @@ class Api extends HttpClient {
1723
1726
  /**
1724
1727
  * @description Gets the Unit of Measurements based on the given filters.
1725
1728
  *
1726
- * @tags commerce
1729
+ * @tags product-usage
1727
1730
  * @name UomsList
1728
1731
  * @request GET:/uoms.list
1729
1732
  * @secure
@@ -1732,7 +1735,7 @@ class Api extends HttpClient {
1732
1735
  /**
1733
1736
  * @description Gets the Unit of Measurements based on the given filters.
1734
1737
  *
1735
- * @tags commerce
1738
+ * @tags product-usage
1736
1739
  * @name UomsListPost
1737
1740
  * @request POST:/uoms.list
1738
1741
  * @secure
@@ -1741,7 +1744,7 @@ class Api extends HttpClient {
1741
1744
  /**
1742
1745
  * @description Updates a Unit of Measurement.
1743
1746
  *
1744
- * @tags commerce
1747
+ * @tags product-usage
1745
1748
  * @name UomsUpdate
1746
1749
  * @request POST:/uoms.update
1747
1750
  * @secure
@@ -1829,379 +1832,5 @@ class Api extends HttpClient {
1829
1832
  */
1830
1833
  this.worksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/works.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1831
1834
  }
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
- }
2206
1835
  }
2207
1836
  exports.Api = Api;