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
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
-
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.",[
100
+
always.push(newDocSchema.Method(`${config.instanceName}.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"}]));
106
+
always.push(newDocSchema.Method(`${config.instanceName}.checkCompatibility`,"Check compatibility with the API",[],{
description: "`compatible` - versions are fully compatible (only patch version may differ), `outdated` - compatible, but new features unavailable (minor version differs), `incompatible` - breaking changes (major version differs)"
* @returns `compatible` - versions are fully compatible (only patch version may differ), `outdated` - compatible, but new features unavailable (minor version differs), `incompatible` - breaking changes (major version differs)
172
+
*/
173
+
public async checkCompatibility() {
174
+
const data: any = await (await fetch(new URL("../", this.#options.baseUrl).toString(), {
0 commit comments