You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ Get another page of paginated results
129
129
-`response` <code>[Cloudnode.ApiResponse](#class-cloudnodeapiresponset)<[Cloudnode.PaginatedData](#interface-cloudnodepaginateddatat)<T>></code> Response to get a different page of.
130
130
-`page` <code>[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)</code> Page to get.
131
131
- Returns: <code>[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Cloudnode.ApiResponse](#class-cloudnodeapiresponset)<[Cloudnode.PaginatedData](#interface-cloudnodepaginateddatat)<T>> | [null](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/null)></code> The new page or null if the page is out of bounds
132
-
132
+
- Throws: <code>[Cloudnode.Error](#interface-cloudnodeerror)</code> Error returned by the API
133
133
134
134
<aname="cloudnodegetnextpagetresponse"></a>
135
135
@@ -139,7 +139,7 @@ Get next page of paginated results
139
139
140
140
-`response` <code>[Cloudnode.ApiResponse](#class-cloudnodeapiresponset)<[Cloudnode.PaginatedData](#interface-cloudnodepaginateddatat)<T>></code> Response to get the next page of.
141
141
- Returns: <code>[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Cloudnode.ApiResponse](#class-cloudnodeapiresponset)<[Cloudnode.PaginatedData](#interface-cloudnodepaginateddatat)<T>> | [null](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/null)></code> The next page or null if this is the last page
142
-
142
+
- Throws: <code>[Cloudnode.Error](#interface-cloudnodeerror)</code> Error returned by the API
143
143
144
144
<aname="cloudnodegetpreviouspagetresponse"></a>
145
145
@@ -149,7 +149,7 @@ Get previous page of paginated results
149
149
150
150
-`response` <code>[Cloudnode.ApiResponse](#class-cloudnodeapiresponset)<[Cloudnode.PaginatedData](#interface-cloudnodepaginateddatat)<T>></code> Response to get the previous page of.
151
151
- Returns: <code>[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Cloudnode.ApiResponse](#class-cloudnodeapiresponset)<[Cloudnode.PaginatedData](#interface-cloudnodepaginateddatat)<T>> | [null](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/null)></code> The previous page or null if this is the first page
152
-
152
+
- Throws: <code>[Cloudnode.Error](#interface-cloudnodeerror)</code> Error returned by the API
153
153
154
154
<aname="cloudnodegetallpagestresponse"></a>
155
155
@@ -160,7 +160,7 @@ Get all other pages of paginated results and return the complete data
160
160
161
161
-`response` <code>[Cloudnode.ApiResponse](#class-cloudnodeapiresponset)<[Cloudnode.PaginatedData](#interface-cloudnodepaginateddatat)<T>></code> Response to get all pages of.
162
162
- Returns: <code>[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Cloudnode.PaginatedData](#interface-cloudnodepaginateddatat)<T>></code> All of the data in 1 page
163
-
163
+
- Throws: <code>[Cloudnode.Error](#interface-cloudnodeerror)</code> Error returned by the API
description: "The previous page or null if this is the first page"
92
-
},[]));
92
+
},[{type: `${config.name}.Error`,description: "Error returned by the API"}]));
93
93
always.push(newDocSchema.Method(`${config.name}.getAllPages<T>`,"Get all other pages of paginated results and return the complete data\n> **Warning:** Depending on the amount of data, this can take a long time and use a lot of memory.",[
94
94
newDocSchema.Parameter("response",`${config.name}.ApiResponse<${config.name}.PaginatedData<T>>`,"Response to get all pages of",true)
95
95
],{
96
96
type: `Promise<${config.name}.PaginatedData<T>>`,
97
97
description: "All of the data in 1 page"
98
-
},[]));
98
+
},[{type: `${config.name}.Error`,description: "Error returned by the API"}]));
0 commit comments