@porulle/plugin-channel-connector 0.64.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.
- package/dist/service.d.ts +0 -1
- package/dist/service.js +0 -7
- package/package.json +2 -2
- package/src/service.ts +0 -8
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porulle/plugin-channel-connector",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.65.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@hono/zod-openapi": "^1.2.2",
|
|
21
21
|
"hono": "^4.12.5",
|
|
22
|
-
"@porulle/core": "0.
|
|
22
|
+
"@porulle/core": "0.65.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/node": "^24.5.2",
|
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[]> {
|