@ph-cms/client-sdk 0.1.19 → 0.1.21

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.
@@ -22,7 +22,7 @@ class ContentModule {
22
22
  async incrementView(uid) {
23
23
  if (!uid)
24
24
  throw new errors_1.ValidationError("UID is required", []);
25
- await this.client.post(`/api/contents/${uid}/view`);
25
+ await this.client.patch(`/api/contents/${uid}/view`);
26
26
  }
27
27
  async create(data) {
28
28
  const validation = api_contract_1.CreateContentSchema.safeParse(data);
@@ -83,7 +83,7 @@ class ContentModule {
83
83
  async toggleLike(uid) {
84
84
  if (!uid)
85
85
  throw new errors_1.ValidationError("UID is required", []);
86
- return this.client.post(`/api/contents/${uid}/like`);
86
+ return this.client.post(`/api/contents/${uid}/like`, {});
87
87
  }
88
88
  async getLikeStatus(uid) {
89
89
  if (!uid)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ph-cms/client-sdk",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Unified PH-CMS Client SDK (React + Core)",
5
5
  "keywords": [],
6
6
  "license": "MIT",