@porulle/plugin-wishlist 0.63.0 → 0.65.0

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.
@@ -11,8 +11,5 @@ export declare class WishlistService {
11
11
  remove(orgId: string, userId: string, itemId: string): Promise<PluginResult<{
12
12
  deleted: boolean;
13
13
  }>>;
14
- removeByEntity(orgId: string, userId: string, entityId: string): Promise<PluginResult<{
15
- deleted: boolean;
16
- }>>;
17
14
  }
18
15
  //# sourceMappingURL=wishlist-service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wishlist-service.d.ts","sourceRoot":"","sources":["../../src/services/wishlist-service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEpD,qBAAa,eAAe;IACd,OAAO,CAAC,EAAE;gBAAF,EAAE,EAAE,EAAE;IAEpB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC,CAAC;IAM1E,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE;QAC9C,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;KACjC,GAAG,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAgBjC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAWlG,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAUnH"}
1
+ {"version":3,"file":"wishlist-service.d.ts","sourceRoot":"","sources":["../../src/services/wishlist-service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEpD,qBAAa,eAAe;IACd,OAAO,CAAC,EAAE;gBAAF,EAAE,EAAE,EAAE;IAEpB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC,CAAC;IAM1E,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE;QAC9C,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;KACjC,GAAG,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAgBjC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAWzG"}
@@ -29,11 +29,4 @@ export class WishlistService {
29
29
  return Err("Item not found");
30
30
  return Ok({ deleted: true });
31
31
  }
32
- async removeByEntity(orgId, userId, entityId) {
33
- const rows = await this.db.delete(wishlistItems)
34
- .where(and(eq(wishlistItems.organizationId, orgId), eq(wishlistItems.userId, userId), eq(wishlistItems.entityId, entityId))).returning();
35
- if (rows.length === 0)
36
- return Err("Item not found");
37
- return Ok({ deleted: true });
38
- }
39
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porulle/plugin-wishlist",
3
- "version": "0.63.0",
3
+ "version": "0.65.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -19,14 +19,14 @@
19
19
  "dependencies": {
20
20
  "@hono/zod-openapi": "^1.2.2",
21
21
  "hono": "^4.12.5",
22
- "@porulle/core": "0.63.0"
22
+ "@porulle/core": "0.65.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^24.5.2",
26
26
  "typescript": "5.9.2",
27
27
  "vitest": "^3.2.4",
28
- "@porulle/typescript-config": "0.1.0",
29
- "@porulle/eslint-config": "0.1.0"
28
+ "@porulle/eslint-config": "0.1.0",
29
+ "@porulle/typescript-config": "0.1.0"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"
@@ -42,14 +42,4 @@ export class WishlistService {
42
42
  return Ok({ deleted: true });
43
43
  }
44
44
 
45
- async removeByEntity(orgId: string, userId: string, entityId: string): Promise<PluginResult<{ deleted: boolean }>> {
46
- const rows = await this.db.delete(wishlistItems)
47
- .where(and(
48
- eq(wishlistItems.organizationId, orgId),
49
- eq(wishlistItems.userId, userId),
50
- eq(wishlistItems.entityId, entityId),
51
- )).returning();
52
- if (rows.length === 0) return Err("Item not found");
53
- return Ok({ deleted: true });
54
- }
55
45
  }