@insignia-education/api-sdk-js 0.15.85 → 0.15.87
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
package/src/api/v1/Currencies.js
CHANGED
|
@@ -8,4 +8,5 @@ export default class Currencies {
|
|
|
8
8
|
get(id = null) { return id ? this.#client.get(`/currencies/${id}`) : this.#client.get('/currencies'); }
|
|
9
9
|
getValues() { return this.#client.get('/currencies/values'); }
|
|
10
10
|
getHistory(id) { return this.#client.get(`/currencies/${id}/history`); }
|
|
11
|
+
setManualValue(id, value) { return this.#client.patch(`/currencies/${id}/value`, { value }); }
|
|
11
12
|
}
|
package/src/api/v1/Telegram.js
CHANGED
|
@@ -8,9 +8,12 @@ export default class Telegram {
|
|
|
8
8
|
/** Admin-only: whether the shared Telegram account used for group creation is logged in. */
|
|
9
9
|
status() { return this.#client.get('/telegram/status'); }
|
|
10
10
|
|
|
11
|
-
/** Admin-only: starts (or continues) a QR-code login. */
|
|
11
|
+
/** Admin-only: starts (or continues) a QR-code login. May return { needs_password: true } if the account has 2FA — call password() next. */
|
|
12
12
|
qrLogin() { return this.#client.post('/telegram/qr-login'); }
|
|
13
13
|
|
|
14
|
+
/** Admin-only: completes a QR login that's waiting on the account's cloud (2FA) password. */
|
|
15
|
+
password(password) { return this.#client.post('/telegram/password', { password }); }
|
|
16
|
+
|
|
14
17
|
/** Admin-only: current webhook registration for the main bot (account linking + notifications). */
|
|
15
18
|
webhookStatus() { return this.#client.get('/telegram/webhook'); }
|
|
16
19
|
|