academe-kit 0.9.0 → 0.9.1

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,14 @@ function createCertificateService(apiClient) {
5566
5565
  params: { path: { id } },
5567
5566
  });
5568
5567
  },
5568
+ /**
5569
+ * Download certificate PDF
5570
+ */
5571
+ download(id) {
5572
+ return apiClient.GET("/certificates/{id}/download", {
5573
+ params: { path: { id } },
5574
+ });
5575
+ },
5569
5576
  /**
5570
5577
  * Create a new certificate
5571
5578
  */
@@ -5574,6 +5581,14 @@ function createCertificateService(apiClient) {
5574
5581
  body: data,
5575
5582
  });
5576
5583
  },
5584
+ /**
5585
+ * Generate a certificate PDF server-side
5586
+ */
5587
+ generate(data) {
5588
+ return apiClient.POST("/certificates/generate", {
5589
+ body: data,
5590
+ });
5591
+ },
5577
5592
  /**
5578
5593
  * Update certificate
5579
5594
  */