@insignia-education/api-sdk-js 0.15.104 → 0.15.105

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insignia-education/api-sdk-js",
3
- "version": "0.15.104",
3
+ "version": "0.15.105",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -5,6 +5,10 @@ export default class Search {
5
5
  this.#client = client;
6
6
  }
7
7
 
8
- /** Sales-and-above global search: users (name/email/dni) and courses (cod/title). */
9
- query(q) { return this.#client.get('/search', { q }); }
8
+ /**
9
+ * Sales-and-above global search: users (name/email/dni) and courses (cod/title).
10
+ * `offset` pages through the user results only (courses are always the first page) —
11
+ * response includes `users_has_more` to know whether another page exists.
12
+ */
13
+ query(q, offset = 0) { return this.#client.get('/search', { q, offset }); }
10
14
  }