feat(modules-sdk): Remote Query (#4463)

* feat: Remote Query
This commit is contained in:
Carlos R. L. Rodrigues
2023-07-19 15:35:36 -03:00
committed by GitHub
parent 95c538c675
commit 5a8a889c6d
57 changed files with 1286 additions and 423 deletions
@@ -4,6 +4,7 @@ import {
FilterableStockLocationProps,
FindConfig,
IEventBusService,
JoinerServiceConfig,
MODULE_RESOURCE_TYPE,
SharedContext,
StockLocationAddressInput,
@@ -11,13 +12,13 @@ import {
} from "@medusajs/types"
import {
InjectEntityManager,
isDefined,
MedusaContext,
MedusaError,
isDefined,
setMetadata,
} from "@medusajs/utils"
import { EntityManager } from "typeorm"
import { joinerConfig } from "../joiner-config"
import { StockLocation, StockLocationAddress } from "../models"
import { buildQuery } from "../utils/build-query"
@@ -49,6 +50,10 @@ export default class StockLocationService {
this.eventBusService_ = eventBusService
}
__joinerConfig(): JoinerServiceConfig {
return joinerConfig
}
/**
* Lists all stock locations that match the given selector.
* @param selector - Properties to filter by.