academe-kit 0.9.0 → 0.9.2

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/dist/index.esm.js CHANGED
@@ -5539,15 +5539,6 @@ function createQuizService(apiClient) {
5539
5539
 
5540
5540
  function createCertificateService(apiClient) {
5541
5541
  return {
5542
- /**
5543
- * List all certificates
5544
- */
5545
- getMe() {
5546
- return apiClient.GET("/certificates/me");
5547
- },
5548
- getAll() {
5549
- return apiClient.GET("/certificates");
5550
- },
5551
5542
  /**
5552
5543
  * Get current user's certificates
5553
5544
  */
@@ -5556,6 +5547,14 @@ function createCertificateService(apiClient) {
5556
5547
  params: { query },
5557
5548
  });
5558
5549
  },
5550
+ /**
5551
+ * List all certificates
5552
+ */
5553
+ getAll(query) {
5554
+ return apiClient.GET("/certificates", {
5555
+ params: { query },
5556
+ });
5557
+ },
5559
5558
  /**
5560
5559
  * Get certificate by ID
5561
5560
  */
@@ -5564,6 +5563,23 @@ function createCertificateService(apiClient) {
5564
5563
  params: { path: { id } },
5565
5564
  });
5566
5565
  },
5566
+ /**
5567
+ * Download all certificates of a given user as a single merged PDF
5568
+ */
5569
+ downloadAll(userId) {
5570
+ return apiClient.GET("/certificates/{userId}/download-all", {
5571
+ params: { path: { userId } },
5572
+ parseAs: 'blob',
5573
+ });
5574
+ },
5575
+ /**
5576
+ * Download certificate PDF
5577
+ */
5578
+ download(id) {
5579
+ return apiClient.GET("/certificates/{id}/download", {
5580
+ params: { path: { id } },
5581
+ });
5582
+ },
5567
5583
  /**
5568
5584
  * Create a new certificate
5569
5585
  */
@@ -5572,6 +5588,14 @@ function createCertificateService(apiClient) {
5572
5588
  body: data,
5573
5589
  });
5574
5590
  },
5591
+ /**
5592
+ * Generate a certificate PDF server-side
5593
+ */
5594
+ generate(data) {
5595
+ return apiClient.POST("/certificates/generate", {
5596
+ body: data,
5597
+ });
5598
+ },
5575
5599
  /**
5576
5600
  * Update certificate
5577
5601
  */