@insignia-education/api-sdk-js 0.15.72 → 0.15.75

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.
Files changed (127) hide show
  1. package/package.json +7 -2
  2. package/src/api/v1/Courses.js +4 -4
  3. package/src/api/v1/Employee.js +2 -0
  4. package/src/api/v1/Teacher.js +6 -0
  5. package/src/api/v1/Users.js +7 -0
  6. package/.ai/guidelines/research-order.md +0 -29
  7. package/.claude/agents/product-spec-architect.md +0 -163
  8. package/.claude/agents/senior-code-reviewer.md +0 -109
  9. package/.claude/agents/senior-software-developer.md +0 -90
  10. package/.claude/agents/senior-software-maintainer.md +0 -121
  11. package/.claude/skills/general/documentation/SKILL.md +0 -49
  12. package/.claude/skills/general/handoff/SKILL.md +0 -15
  13. package/.claude/skills/general/investigation/SKILL.md +0 -53
  14. package/.claude/skills/general/performance/SKILL.md +0 -31
  15. package/.claude/skills/git/pull-request/SKILL.md +0 -47
  16. package/.claude/skills/how-to-create-skills/SKILL.md +0 -82
  17. package/.env +0 -1
  18. package/.env.test +0 -5
  19. package/.github/hooks/pre-commit +0 -22
  20. package/.github/workflows/npm-publish-github-packages.yml +0 -29
  21. package/.nvmrc +0 -1
  22. package/AGENTS.md +0 -140
  23. package/CLAUDE.md +0 -51
  24. package/babel.config.cjs +0 -1
  25. package/coverage/clover.xml +0 -380
  26. package/coverage/coverage-final.json +0 -3
  27. package/coverage/lcov-report/Client.js.html +0 -463
  28. package/coverage/lcov-report/base.css +0 -224
  29. package/coverage/lcov-report/block-navigation.js +0 -87
  30. package/coverage/lcov-report/favicon.png +0 -0
  31. package/coverage/lcov-report/index.html +0 -131
  32. package/coverage/lcov-report/prettify.css +0 -1
  33. package/coverage/lcov-report/prettify.js +0 -2
  34. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  35. package/coverage/lcov-report/sorter.js +0 -210
  36. package/coverage/lcov-report/src/Client.js.html +0 -478
  37. package/coverage/lcov-report/src/api/index.html +0 -116
  38. package/coverage/lcov-report/src/api/index.js.html +0 -127
  39. package/coverage/lcov-report/src/api/v1/Accounts.js.html +0 -151
  40. package/coverage/lcov-report/src/api/v1/Admin.js.html +0 -121
  41. package/coverage/lcov-report/src/api/v1/Auth.js.html +0 -157
  42. package/coverage/lcov-report/src/api/v1/Categories.js.html +0 -121
  43. package/coverage/lcov-report/src/api/v1/Changelogs.js.html +0 -118
  44. package/coverage/lcov-report/src/api/v1/Configs.js.html +0 -121
  45. package/coverage/lcov-report/src/api/v1/ContactForms.js.html +0 -121
  46. package/coverage/lcov-report/src/api/v1/ConversationalTopics.js.html +0 -121
  47. package/coverage/lcov-report/src/api/v1/Countries.js.html +0 -112
  48. package/coverage/lcov-report/src/api/v1/Coupons.js.html +0 -175
  49. package/coverage/lcov-report/src/api/v1/Courses.js.html +0 -460
  50. package/coverage/lcov-report/src/api/v1/Currencies.js.html +0 -118
  51. package/coverage/lcov-report/src/api/v1/Dashboard.js.html +0 -115
  52. package/coverage/lcov-report/src/api/v1/EducationCenter.js.html +0 -115
  53. package/coverage/lcov-report/src/api/v1/Employee.js.html +0 -169
  54. package/coverage/lcov-report/src/api/v1/Files.js.html +0 -160
  55. package/coverage/lcov-report/src/api/v1/Forums.js.html +0 -175
  56. package/coverage/lcov-report/src/api/v1/Hashes.js.html +0 -121
  57. package/coverage/lcov-report/src/api/v1/Insignias.js.html +0 -121
  58. package/coverage/lcov-report/src/api/v1/Languages.js.html +0 -121
  59. package/coverage/lcov-report/src/api/v1/MailBlacklist.js.html +0 -118
  60. package/coverage/lcov-report/src/api/v1/MailingLists.js.html +0 -127
  61. package/coverage/lcov-report/src/api/v1/Offers.js.html +0 -142
  62. package/coverage/lcov-report/src/api/v1/Organizations.js.html +0 -199
  63. package/coverage/lcov-report/src/api/v1/PaymentMethods.js.html +0 -121
  64. package/coverage/lcov-report/src/api/v1/Payments.js.html +0 -310
  65. package/coverage/lcov-report/src/api/v1/Premiums.js.html +0 -121
  66. package/coverage/lcov-report/src/api/v1/Quizzes.js.html +0 -214
  67. package/coverage/lcov-report/src/api/v1/Sales.js.html +0 -157
  68. package/coverage/lcov-report/src/api/v1/Search.js.html +0 -115
  69. package/coverage/lcov-report/src/api/v1/ShortLinks.js.html +0 -127
  70. package/coverage/lcov-report/src/api/v1/Surveys.js.html +0 -181
  71. package/coverage/lcov-report/src/api/v1/Taxes.js.html +0 -121
  72. package/coverage/lcov-report/src/api/v1/Teacher.js.html +0 -322
  73. package/coverage/lcov-report/src/api/v1/Telegram.js.html +0 -142
  74. package/coverage/lcov-report/src/api/v1/TwoFactor.js.html +0 -145
  75. package/coverage/lcov-report/src/api/v1/UserSessionTypes.js.html +0 -112
  76. package/coverage/lcov-report/src/api/v1/UserTypes.js.html +0 -121
  77. package/coverage/lcov-report/src/api/v1/Users.js.html +0 -778
  78. package/coverage/lcov-report/src/api/v1/Utm.js.html +0 -151
  79. package/coverage/lcov-report/src/api/v1/Webauthn.js.html +0 -190
  80. package/coverage/lcov-report/src/api/v1/Zoom.js.html +0 -124
  81. package/coverage/lcov-report/src/api/v1/index.html +0 -116
  82. package/coverage/lcov-report/src/api/v1/index.js.html +0 -373
  83. package/coverage/lcov-report/src/index.html +0 -116
  84. package/coverage/lcov-report/src/index.js.html +0 -109
  85. package/coverage/lcov-report/tests/helpers.js.html +0 -145
  86. package/coverage/lcov-report/tests/index.html +0 -116
  87. package/coverage/lcov.info +0 -553
  88. package/coverage/test-report.html +0 -277
  89. package/eslint.config.mjs +0 -29
  90. package/jest.config.mjs +0 -47
  91. package/scss/Services/_notification.scss +0 -0
  92. package/scss/index.scss +0 -2
  93. package/tests/client.test.js +0 -265
  94. package/tests/helpers.js +0 -21
  95. package/tests/integration/api/v1/accounts.test.js +0 -31
  96. package/tests/integration/api/v1/auth/login.test.js +0 -44
  97. package/tests/integration/api/v1/changelogs.test.js +0 -21
  98. package/tests/integration/api/v1/contact-forms.test.js +0 -24
  99. package/tests/integration/api/v1/conversational-topics.test.js +0 -17
  100. package/tests/integration/api/v1/countries.test.js +0 -20
  101. package/tests/integration/api/v1/coupons.test.js +0 -19
  102. package/tests/integration/api/v1/courses/by-cod.test.js +0 -19
  103. package/tests/integration/api/v1/courses/index.test.js +0 -46
  104. package/tests/integration/api/v1/currencies/history.test.js +0 -23
  105. package/tests/integration/api/v1/currencies/index.test.js +0 -24
  106. package/tests/integration/api/v1/currencies/values.test.js +0 -24
  107. package/tests/integration/api/v1/files.test.js +0 -42
  108. package/tests/integration/api/v1/forums/index.test.js +0 -23
  109. package/tests/integration/api/v1/hashes.test.js +0 -18
  110. package/tests/integration/api/v1/insignias.test.js +0 -19
  111. package/tests/integration/api/v1/languages.test.js +0 -28
  112. package/tests/integration/api/v1/mail-blacklist.test.js +0 -19
  113. package/tests/integration/api/v1/offers.test.js +0 -20
  114. package/tests/integration/api/v1/organizations.test.js +0 -89
  115. package/tests/integration/api/v1/payment-methods/by-currencies.test.js +0 -51
  116. package/tests/integration/api/v1/quizzes/index.test.js +0 -37
  117. package/tests/integration/api/v1/short-links.test.js +0 -20
  118. package/tests/integration/api/v1/surveys/index.test.js +0 -40
  119. package/tests/integration/api/v1/taxes.test.js +0 -19
  120. package/tests/integration/api/v1/teacher/index.test.js +0 -53
  121. package/tests/integration/api/v1/telegram.test.js +0 -33
  122. package/tests/integration/api/v1/user-types.test.js +0 -17
  123. package/tests/integration/api/v1/users/cash-receivers.test.js +0 -19
  124. package/tests/integration/api/v1/users/index.test.js +0 -32
  125. package/tests/integration/api/v1/users/telegram.test.js +0 -36
  126. package/tests/integration/api/v1/zoom.test.js +0 -17
  127. package/tests/integration/loadEnv.js +0 -16
@@ -1,210 +0,0 @@
1
- /* eslint-disable */
2
- var addSorting = (function() {
3
- 'use strict';
4
- var cols,
5
- currentSort = {
6
- index: 0,
7
- desc: false
8
- };
9
-
10
- // returns the summary table element
11
- function getTable() {
12
- return document.querySelector('.coverage-summary');
13
- }
14
- // returns the thead element of the summary table
15
- function getTableHeader() {
16
- return getTable().querySelector('thead tr');
17
- }
18
- // returns the tbody element of the summary table
19
- function getTableBody() {
20
- return getTable().querySelector('tbody');
21
- }
22
- // returns the th element for nth column
23
- function getNthColumn(n) {
24
- return getTableHeader().querySelectorAll('th')[n];
25
- }
26
-
27
- function onFilterInput() {
28
- const searchValue = document.getElementById('fileSearch').value;
29
- const rows = document.getElementsByTagName('tbody')[0].children;
30
-
31
- // Try to create a RegExp from the searchValue. If it fails (invalid regex),
32
- // it will be treated as a plain text search
33
- let searchRegex;
34
- try {
35
- searchRegex = new RegExp(searchValue, 'i'); // 'i' for case-insensitive
36
- } catch (error) {
37
- searchRegex = null;
38
- }
39
-
40
- for (let i = 0; i < rows.length; i++) {
41
- const row = rows[i];
42
- let isMatch = false;
43
-
44
- if (searchRegex) {
45
- // If a valid regex was created, use it for matching
46
- isMatch = searchRegex.test(row.textContent);
47
- } else {
48
- // Otherwise, fall back to the original plain text search
49
- isMatch = row.textContent
50
- .toLowerCase()
51
- .includes(searchValue.toLowerCase());
52
- }
53
-
54
- row.style.display = isMatch ? '' : 'none';
55
- }
56
- }
57
-
58
- // loads the search box
59
- function addSearchBox() {
60
- var template = document.getElementById('filterTemplate');
61
- var templateClone = template.content.cloneNode(true);
62
- templateClone.getElementById('fileSearch').oninput = onFilterInput;
63
- template.parentElement.appendChild(templateClone);
64
- }
65
-
66
- // loads all columns
67
- function loadColumns() {
68
- var colNodes = getTableHeader().querySelectorAll('th'),
69
- colNode,
70
- cols = [],
71
- col,
72
- i;
73
-
74
- for (i = 0; i < colNodes.length; i += 1) {
75
- colNode = colNodes[i];
76
- col = {
77
- key: colNode.getAttribute('data-col'),
78
- sortable: !colNode.getAttribute('data-nosort'),
79
- type: colNode.getAttribute('data-type') || 'string'
80
- };
81
- cols.push(col);
82
- if (col.sortable) {
83
- col.defaultDescSort = col.type === 'number';
84
- colNode.innerHTML =
85
- colNode.innerHTML + '<span class="sorter"></span>';
86
- }
87
- }
88
- return cols;
89
- }
90
- // attaches a data attribute to every tr element with an object
91
- // of data values keyed by column name
92
- function loadRowData(tableRow) {
93
- var tableCols = tableRow.querySelectorAll('td'),
94
- colNode,
95
- col,
96
- data = {},
97
- i,
98
- val;
99
- for (i = 0; i < tableCols.length; i += 1) {
100
- colNode = tableCols[i];
101
- col = cols[i];
102
- val = colNode.getAttribute('data-value');
103
- if (col.type === 'number') {
104
- val = Number(val);
105
- }
106
- data[col.key] = val;
107
- }
108
- return data;
109
- }
110
- // loads all row data
111
- function loadData() {
112
- var rows = getTableBody().querySelectorAll('tr'),
113
- i;
114
-
115
- for (i = 0; i < rows.length; i += 1) {
116
- rows[i].data = loadRowData(rows[i]);
117
- }
118
- }
119
- // sorts the table using the data for the ith column
120
- function sortByIndex(index, desc) {
121
- var key = cols[index].key,
122
- sorter = function(a, b) {
123
- a = a.data[key];
124
- b = b.data[key];
125
- return a < b ? -1 : a > b ? 1 : 0;
126
- },
127
- finalSorter = sorter,
128
- tableBody = document.querySelector('.coverage-summary tbody'),
129
- rowNodes = tableBody.querySelectorAll('tr'),
130
- rows = [],
131
- i;
132
-
133
- if (desc) {
134
- finalSorter = function(a, b) {
135
- return -1 * sorter(a, b);
136
- };
137
- }
138
-
139
- for (i = 0; i < rowNodes.length; i += 1) {
140
- rows.push(rowNodes[i]);
141
- tableBody.removeChild(rowNodes[i]);
142
- }
143
-
144
- rows.sort(finalSorter);
145
-
146
- for (i = 0; i < rows.length; i += 1) {
147
- tableBody.appendChild(rows[i]);
148
- }
149
- }
150
- // removes sort indicators for current column being sorted
151
- function removeSortIndicators() {
152
- var col = getNthColumn(currentSort.index),
153
- cls = col.className;
154
-
155
- cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
156
- col.className = cls;
157
- }
158
- // adds sort indicators for current column being sorted
159
- function addSortIndicators() {
160
- getNthColumn(currentSort.index).className += currentSort.desc
161
- ? ' sorted-desc'
162
- : ' sorted';
163
- }
164
- // adds event listeners for all sorter widgets
165
- function enableUI() {
166
- var i,
167
- el,
168
- ithSorter = function ithSorter(i) {
169
- var col = cols[i];
170
-
171
- return function() {
172
- var desc = col.defaultDescSort;
173
-
174
- if (currentSort.index === i) {
175
- desc = !currentSort.desc;
176
- }
177
- sortByIndex(i, desc);
178
- removeSortIndicators();
179
- currentSort.index = i;
180
- currentSort.desc = desc;
181
- addSortIndicators();
182
- };
183
- };
184
- for (i = 0; i < cols.length; i += 1) {
185
- if (cols[i].sortable) {
186
- // add the click event handler on the th so users
187
- // dont have to click on those tiny arrows
188
- el = getNthColumn(i).querySelector('.sorter').parentElement;
189
- if (el.addEventListener) {
190
- el.addEventListener('click', ithSorter(i));
191
- } else {
192
- el.attachEvent('onclick', ithSorter(i));
193
- }
194
- }
195
- }
196
- }
197
- // adds sorting functionality to the UI
198
- return function() {
199
- if (!getTable()) {
200
- return;
201
- }
202
- cols = loadColumns();
203
- loadData();
204
- addSearchBox();
205
- addSortIndicators();
206
- enableUI();
207
- };
208
- })();
209
-
210
- window.addEventListener('load', addSorting);