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