@porulle/plugin-channel-connector 0.64.0 → 0.65.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/service.d.ts CHANGED
@@ -410,7 +410,6 @@ export declare class ChannelConnectorService {
410
410
  /** The slug an existing product converges to: its current one while that is still in the family
411
411
  * of the handle the store sends, so a slug is never recomputed out from under a shared link. */
412
412
  private slugToKeep;
413
- getStoreByDomain(shopDomain: string): Promise<ConnectedStore | undefined>;
414
413
  getStoresByDomain(shopDomain: string): Promise<ConnectedStore[]>;
415
414
  resolveCatalogFieldMapping(store: Pick<ConnectedStore, "provider" | "catalogFieldMapping">, filterableCustomFields?: ReadonlySet<string> | Readonly<Record<string, boolean>>, warnings?: string[]): CatalogFieldMapping;
416
415
  buildCatalogPushItems(orgId: string, storeId: string, entityIds: string[], options?: BuildCatalogPushItemsOptions): Promise<PluginResult<BuildCatalogPushItemsResult>>;
package/dist/service.js CHANGED
@@ -1749,13 +1749,6 @@ export class ChannelConnectorService {
1749
1749
  slugToKeep(currentSlug, resolved) {
1750
1750
  return resolved.family.includes(currentSlug) ? currentSlug : resolved.slug;
1751
1751
  }
1752
- async getStoreByDomain(shopDomain) {
1753
- const rows = await this.db
1754
- .select()
1755
- .from(connectedStores)
1756
- .where(eq(connectedStores.storeDomain, shopDomain));
1757
- return rows[0];
1758
- }
1759
1752
  // A shop_domain can map to more than one connected store (reconnect, or the same
1760
1753
  // shop under two orgs). Compliance webhooks must fan out to all of them.
1761
1754
  async getStoresByDomain(shopDomain) {
package/package.json CHANGED
@@ -1,33 +1,36 @@
1
1
  {
2
2
  "name": "@porulle/plugin-channel-connector",
3
- "version": "0.64.0",
3
+ "version": "0.65.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
8
- "bun": "./src/index.ts",
9
- "import": "./dist/index.js",
10
- "types": "./src/index.ts"
8
+ "@porulle/source": "./src/index.ts",
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
11
  },
12
12
  "./schema": {
13
- "bun": "./src/schema.ts",
14
- "import": "./dist/schema.js",
15
- "require": "./dist/schema.js",
16
- "types": "./src/schema.ts"
17
- }
13
+ "@porulle/source": "./src/schema.ts",
14
+ "types": "./dist/schema.d.ts",
15
+ "default": "./dist/schema.js"
16
+ },
17
+ "./package.json": "./package.json"
18
+ },
19
+ "engines": {
20
+ "node": ">=20.19.0"
18
21
  },
19
22
  "dependencies": {
20
23
  "@hono/zod-openapi": "^1.2.2",
21
24
  "hono": "^4.12.5",
22
- "@porulle/core": "0.64.0"
25
+ "@porulle/core": "0.65.1"
23
26
  },
24
27
  "devDependencies": {
25
28
  "@types/node": "^24.5.2",
26
29
  "eslint": "^9.39.1",
27
30
  "typescript": "5.9.2",
28
31
  "vitest": "^3.2.4",
29
- "@porulle/typescript-config": "0.1.0",
30
- "@porulle/eslint-config": "0.1.0"
32
+ "@porulle/eslint-config": "0.1.0",
33
+ "@porulle/typescript-config": "0.1.0"
31
34
  },
32
35
  "publishConfig": {
33
36
  "access": "public"
package/src/service.ts CHANGED
@@ -2530,14 +2530,6 @@ export class ChannelConnectorService {
2530
2530
  return resolved.family.includes(currentSlug) ? currentSlug : resolved.slug;
2531
2531
  }
2532
2532
 
2533
- async getStoreByDomain(shopDomain: string): Promise<ConnectedStore | undefined> {
2534
- const rows = await this.db
2535
- .select()
2536
- .from(connectedStores)
2537
- .where(eq(connectedStores.storeDomain, shopDomain));
2538
- return rows[0] as ConnectedStore | undefined;
2539
- }
2540
-
2541
2533
  // A shop_domain can map to more than one connected store (reconnect, or the same
2542
2534
  // shop under two orgs). Compliance webhooks must fan out to all of them.
2543
2535
  async getStoresByDomain(shopDomain: string): Promise<ConnectedStore[]> {