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
@@ -130,7 +130,7 @@ Get another page of paginated results
130
130
-`response` <code>[Cloudnode.ApiResponse](#class-cloudnodeapiresponset)<[Cloudnode.PaginatedData](#interface-cloudnodepaginateddatat)<T>></code> Response to get a different page of.
131
131
-`page` <code>[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)</code> Page to get.
132
132
- 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
133
-
133
+
- Throws: <code>[Cloudnode.Error](#interface-cloudnodeerror)</code> Error returned by the API
134
134
135
135
<aname="cloudnodegetnextpagetresponse"></a>
136
136
@@ -140,7 +140,7 @@ Get next page of paginated results
140
140
141
141
-`response` <code>[Cloudnode.ApiResponse](#class-cloudnodeapiresponset)<[Cloudnode.PaginatedData](#interface-cloudnodepaginateddatat)<T>></code> Response to get the next page of.
142
142
- 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
143
-
143
+
- Throws: <code>[Cloudnode.Error](#interface-cloudnodeerror)</code> Error returned by the API
144
144
145
145
<aname="cloudnodegetpreviouspagetresponse"></a>
146
146
@@ -150,7 +150,7 @@ Get previous page of paginated results
150
150
151
151
-`response` <code>[Cloudnode.ApiResponse](#class-cloudnodeapiresponset)<[Cloudnode.PaginatedData](#interface-cloudnodepaginateddatat)<T>></code> Response to get the previous page of.
152
152
- 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
153
-
153
+
- Throws: <code>[Cloudnode.Error](#interface-cloudnodeerror)</code> Error returned by the API
154
154
155
155
<aname="cloudnodegetallpagestresponse"></a>
156
156
@@ -161,7 +161,7 @@ Get all other pages of paginated results and return the complete data
161
161
162
162
-`response` <code>[Cloudnode.ApiResponse](#class-cloudnodeapiresponset)<[Cloudnode.PaginatedData](#interface-cloudnodepaginateddatat)<T>></code> Response to get all pages of.
163
163
- 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
164
-
164
+
- Throws: <code>[Cloudnode.Error](#interface-cloudnodeerror)</code> Error returned by the API
description: "The previous page or null if this is the first page"
99
-
},[]));
99
+
},[{type: `${config.name}.Error`,description: "Error returned by the API"}]));
100
100
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.",[
101
101
newDocSchema.Parameter("response",`${config.name}.ApiResponse<${config.name}.PaginatedData<T>>`,"Response to get all pages of",true)
102
102
],{
103
103
type: `Promise<${config.name}.PaginatedData<T>>`,
104
104
description: "All of the data in 1 page"
105
-
},[]));
105
+
},[{type: `${config.name}.Error`,description: "Error returned by the API"}]));
0 commit comments