@insignia-education/api-sdk-js 0.15.120 → 0.15.121
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 +1 -1
- package/src/api/v1/ContactTypes.js +9 -0
- package/src/api/v1/Users.js +3 -0
- package/src/api/v1/index.js +2 -0
package/package.json
CHANGED
package/src/api/v1/Users.js
CHANGED
|
@@ -66,6 +66,9 @@ export default class Users {
|
|
|
66
66
|
|
|
67
67
|
courseNotes(userId) { return this.#nested(userId, 'course-notes'); }
|
|
68
68
|
|
|
69
|
+
/** Additional social/contact links (Facebook, WhatsApp, YouTube, etc.) — each row's contact_id points at a ContactTypes.get() entry. */
|
|
70
|
+
contacts(userId) { return this.#nested(userId, 'contacts'); }
|
|
71
|
+
|
|
69
72
|
/** get() accepts optional { courseId, withTrashed } filters — withTrashed also returns soft-deleted attempts. */
|
|
70
73
|
quizzes(userId) {
|
|
71
74
|
const base = `/users/${userId}/quizzes`;
|
package/src/api/v1/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import Certificates from './Certificates.js';
|
|
|
6
6
|
import Changelogs from './Changelogs.js';
|
|
7
7
|
import CompanySettings from './CompanySettings.js';
|
|
8
8
|
import ContactForms from './ContactForms.js';
|
|
9
|
+
import ContactTypes from './ContactTypes.js';
|
|
9
10
|
import ConversationalTopics from './ConversationalTopics.js';
|
|
10
11
|
import Countries from './Countries.js';
|
|
11
12
|
import Coupons from './Coupons.js';
|
|
@@ -62,6 +63,7 @@ export default class InsigniaApiV1 extends InsigniaApi {
|
|
|
62
63
|
this.changelogs = new Changelogs(this);
|
|
63
64
|
this.companySettings = new CompanySettings(this);
|
|
64
65
|
this.contactForms = new ContactForms(this);
|
|
66
|
+
this.contactTypes = new ContactTypes(this);
|
|
65
67
|
this.conversationalTopics = new ConversationalTopics(this);
|
|
66
68
|
this.countries = new Countries(this);
|
|
67
69
|
this.coupons = new Coupons(this);
|