@insignia-education/api-sdk-js 0.15.66 → 0.15.68

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 (70) hide show
  1. package/.env +1 -0
  2. package/.env.test +5 -0
  3. package/.github/workflows/npm-publish-github-packages.yml +41 -3
  4. package/coverage/clover.xml +1568 -0
  5. package/coverage/coverage-final.json +46 -0
  6. package/coverage/lcov-report/Client.js.html +463 -0
  7. package/coverage/lcov-report/base.css +224 -0
  8. package/coverage/lcov-report/block-navigation.js +87 -0
  9. package/coverage/lcov-report/favicon.png +0 -0
  10. package/coverage/lcov-report/index.html +161 -0
  11. package/coverage/lcov-report/prettify.css +1 -0
  12. package/coverage/lcov-report/prettify.js +2 -0
  13. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  14. package/coverage/lcov-report/sorter.js +210 -0
  15. package/coverage/lcov-report/src/Client.js.html +463 -0
  16. package/coverage/lcov-report/src/api/index.html +116 -0
  17. package/coverage/lcov-report/src/api/index.js.html +127 -0
  18. package/coverage/lcov-report/src/api/v1/Accounts.js.html +151 -0
  19. package/coverage/lcov-report/src/api/v1/Admin.js.html +121 -0
  20. package/coverage/lcov-report/src/api/v1/Auth.js.html +157 -0
  21. package/coverage/lcov-report/src/api/v1/Categories.js.html +121 -0
  22. package/coverage/lcov-report/src/api/v1/Changelogs.js.html +118 -0
  23. package/coverage/lcov-report/src/api/v1/Configs.js.html +121 -0
  24. package/coverage/lcov-report/src/api/v1/ContactForms.js.html +121 -0
  25. package/coverage/lcov-report/src/api/v1/ConversationalTopics.js.html +121 -0
  26. package/coverage/lcov-report/src/api/v1/Countries.js.html +112 -0
  27. package/coverage/lcov-report/src/api/v1/Coupons.js.html +175 -0
  28. package/coverage/lcov-report/src/api/v1/Courses.js.html +442 -0
  29. package/coverage/lcov-report/src/api/v1/Currencies.js.html +118 -0
  30. package/coverage/lcov-report/src/api/v1/Dashboard.js.html +115 -0
  31. package/coverage/lcov-report/src/api/v1/EducationCenter.js.html +115 -0
  32. package/coverage/lcov-report/src/api/v1/Employee.js.html +169 -0
  33. package/coverage/lcov-report/src/api/v1/Files.js.html +160 -0
  34. package/coverage/lcov-report/src/api/v1/Forums.js.html +175 -0
  35. package/coverage/lcov-report/src/api/v1/Hashes.js.html +121 -0
  36. package/coverage/lcov-report/src/api/v1/Insignias.js.html +121 -0
  37. package/coverage/lcov-report/src/api/v1/Languages.js.html +121 -0
  38. package/coverage/lcov-report/src/api/v1/MailBlacklist.js.html +118 -0
  39. package/coverage/lcov-report/src/api/v1/MailingLists.js.html +127 -0
  40. package/coverage/lcov-report/src/api/v1/Offers.js.html +142 -0
  41. package/coverage/lcov-report/src/api/v1/Organizations.js.html +199 -0
  42. package/coverage/lcov-report/src/api/v1/PaymentMethods.js.html +121 -0
  43. package/coverage/lcov-report/src/api/v1/Payments.js.html +310 -0
  44. package/coverage/lcov-report/src/api/v1/Premiums.js.html +121 -0
  45. package/coverage/lcov-report/src/api/v1/Quizzes.js.html +214 -0
  46. package/coverage/lcov-report/src/api/v1/Sales.js.html +148 -0
  47. package/coverage/lcov-report/src/api/v1/Search.js.html +115 -0
  48. package/coverage/lcov-report/src/api/v1/ShortLinks.js.html +127 -0
  49. package/coverage/lcov-report/src/api/v1/Surveys.js.html +181 -0
  50. package/coverage/lcov-report/src/api/v1/Taxes.js.html +121 -0
  51. package/coverage/lcov-report/src/api/v1/Teacher.js.html +322 -0
  52. package/coverage/lcov-report/src/api/v1/Telegram.js.html +142 -0
  53. package/coverage/lcov-report/src/api/v1/TwoFactor.js.html +145 -0
  54. package/coverage/lcov-report/src/api/v1/UserSessionTypes.js.html +112 -0
  55. package/coverage/lcov-report/src/api/v1/UserTypes.js.html +121 -0
  56. package/coverage/lcov-report/src/api/v1/Users.js.html +766 -0
  57. package/coverage/lcov-report/src/api/v1/Utm.js.html +151 -0
  58. package/coverage/lcov-report/src/api/v1/Webauthn.js.html +190 -0
  59. package/coverage/lcov-report/src/api/v1/Zoom.js.html +124 -0
  60. package/coverage/lcov-report/src/api/v1/index.html +716 -0
  61. package/coverage/lcov-report/src/api/v1/index.js.html +373 -0
  62. package/coverage/lcov-report/src/index.html +131 -0
  63. package/coverage/lcov-report/src/index.js.html +109 -0
  64. package/coverage/lcov-report/tests/helpers.js.html +145 -0
  65. package/coverage/lcov-report/tests/index.html +116 -0
  66. package/coverage/lcov.info +2541 -0
  67. package/coverage/test-report.html +427 -0
  68. package/package.json +1 -1
  69. package/src/api/v1/Courses.js +6 -0
  70. package/src/api/v1/Sales.js +3 -0
package/.env ADDED
@@ -0,0 +1 @@
1
+ INSIGNIA_EDUCATION_API_BASE_URL=http://localhost:8000
package/.env.test ADDED
@@ -0,0 +1,5 @@
1
+ INSIGNIA_EDUCATION_API_BASE_URL=http://localhost:8001
2
+ TEST_EMAIL=roquendo@insigniaeducation.com
3
+ TEST_PASSWORD=12345678
4
+ TEST_EMAIL_ADMIN=rodolfoquendo@gmail.com
5
+ TEST_PASSWORD_ADMIN=12345678
@@ -12,6 +12,8 @@ permissions:
12
12
  jobs:
13
13
  publish:
14
14
  runs-on: ubuntu-latest
15
+ outputs:
16
+ version: ${{ steps.bump.outputs.version }}
15
17
  steps:
16
18
  - uses: actions/checkout@v6
17
19
 
@@ -24,7 +26,11 @@ jobs:
24
26
  - run: npm run build --if-present
25
27
  # npm test disabled: integration suite needs a live api backend, no CI service for it yet
26
28
 
27
- - run: npm version patch --no-git-tag-version
29
+ - name: Bump patch version
30
+ id: bump
31
+ run: |
32
+ npm version patch --no-git-tag-version
33
+ echo "version=$(node -p "require('./package.json').version")" >> "$GITHUB_OUTPUT"
28
34
 
29
35
  # Pushing with GITHUB_TOKEN doesn't retrigger this workflow, so no [skip ci] loop risk.
30
36
  - name: Commit version bump
@@ -32,7 +38,39 @@ jobs:
32
38
  git config user.name "github-actions[bot]"
33
39
  git config user.email "github-actions[bot]@users.noreply.github.com"
34
40
  git add package.json package-lock.json
35
- git commit -m "chore: bump version to $(node -p "require('./package.json').version")"
41
+ git commit -m "chore: bump version to ${{ steps.bump.outputs.version }}"
36
42
  git push
37
43
 
38
- - run: npm publish # Or: npm stage publish
44
+ - run: npm publish # Or: npm stage publish
45
+
46
+ sync-front:
47
+ needs: publish
48
+ runs-on: ubuntu-latest
49
+ strategy:
50
+ matrix:
51
+ branch: [master, beta]
52
+ steps:
53
+ - uses: actions/checkout@v6
54
+ with:
55
+ repository: insignia-education/front
56
+ ref: ${{ matrix.branch }}
57
+ token: ${{ secrets.FRONT_REPO_PAT }}
58
+
59
+ - uses: actions/setup-node@v6
60
+ with:
61
+ node-version: '24'
62
+
63
+ - name: Bump api-sdk-js dependency
64
+ run: npm install @insignia-education/api-sdk-js@${{ needs.publish.outputs.version }} --package-lock-only --no-audit --no-fund
65
+
66
+ - name: Commit and push
67
+ run: |
68
+ git config user.name "github-actions[bot]"
69
+ git config user.email "github-actions[bot]@users.noreply.github.com"
70
+ git add package.json package-lock.json
71
+ if git diff --cached --quiet; then
72
+ echo "front@${{ matrix.branch }} already on ${{ needs.publish.outputs.version }}"
73
+ exit 0
74
+ fi
75
+ git commit -m "chore: bump @insignia-education/api-sdk-js to ${{ needs.publish.outputs.version }}"
76
+ git push origin ${{ matrix.branch }}