@medusajs/types
Advanced tools
Comparing version 1.8.11 to 1.8.12-canary-20230724132815
export * from "./common"; | ||
export * from "./inventory"; | ||
export * from "./service"; |
@@ -18,3 +18,3 @@ "use strict"; | ||
__exportStar(require("./common"), exports); | ||
__exportStar(require("./inventory"), exports); | ||
__exportStar(require("./service"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -7,5 +7,12 @@ export declare type JoinerRelationship = { | ||
inverse?: boolean; | ||
isList?: boolean; | ||
args?: Record<string, any>; | ||
}; | ||
export interface JoinerServiceConfigAlias { | ||
name: string; | ||
args?: Record<string, any>; | ||
} | ||
export interface JoinerServiceConfig { | ||
serviceName: string; | ||
alias?: JoinerServiceConfigAlias | JoinerServiceConfigAlias[]; | ||
primaryKeys: string[]; | ||
@@ -15,4 +22,5 @@ relationships?: JoinerRelationship[]; | ||
serviceName: string; | ||
resolve: JoinerRelationship; | ||
relationship: JoinerRelationship; | ||
}[]; | ||
args?: Record<string, any>; | ||
} | ||
@@ -25,3 +33,4 @@ export interface JoinerArgument { | ||
export interface RemoteJoinerQuery { | ||
service: string; | ||
service?: string; | ||
alias?: string; | ||
expands?: Array<{ | ||
@@ -28,0 +37,0 @@ property: string; |
@@ -0,3 +1,4 @@ | ||
import { JoinerServiceConfig } from "../joiner"; | ||
import { Logger } from "../logger"; | ||
import { MedusaContainer } from "../common"; | ||
import { Logger } from "../logger"; | ||
import { RepositoryService } from "../dal"; | ||
@@ -22,2 +23,4 @@ export declare type Constructor<T> = new (...args: any[]) => T; | ||
options?: Record<string, unknown>; | ||
alias?: string; | ||
main?: boolean; | ||
}; | ||
@@ -31,2 +34,4 @@ export declare type ExternalModuleDeclaration = { | ||
}; | ||
alias?: string; | ||
main?: boolean; | ||
}; | ||
@@ -48,5 +53,10 @@ export declare type ModuleResolution = { | ||
isRequired?: boolean; | ||
isQueryable?: boolean; | ||
dependencies?: string[]; | ||
defaultModuleDeclaration: InternalModuleDeclaration | ExternalModuleDeclaration; | ||
}; | ||
export declare type LoadedModule = unknown & { | ||
__joinerConfig: JoinerServiceConfig; | ||
__definition: ModuleDefinition; | ||
}; | ||
export declare type LoaderOptions<TOptions = Record<string, unknown>> = { | ||
@@ -53,0 +63,0 @@ container: MedusaContainer; |
@@ -62,2 +62,3 @@ import { BaseFilterable } from "../dal"; | ||
product: ProductDTO; | ||
product_id: string; | ||
variant_rank?: number | null; | ||
@@ -64,0 +65,0 @@ created_at: string | Date; |
@@ -0,2 +1,2 @@ | ||
export * from "./common"; | ||
export * from "./service"; | ||
export * from "./common"; |
@@ -17,4 +17,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./common"), exports); | ||
__exportStar(require("./service"), exports); | ||
__exportStar(require("./common"), exports); | ||
//# sourceMappingURL=index.js.map |
import { CreateProductDTO, FilterableProductCategoryProps, FilterableProductCollectionProps, FilterableProductProps, FilterableProductTagProps, FilterableProductVariantProps, ProductCategoryDTO, ProductCollectionDTO, ProductDTO, ProductTagDTO, ProductVariantDTO } from "./common"; | ||
import { Context } from "../shared-context"; | ||
import { FindConfig } from "../common"; | ||
import { Context } from "../shared-context"; | ||
import { JoinerServiceConfig } from "../joiner"; | ||
export interface IProductModuleService { | ||
__joinerConfig(): JoinerServiceConfig; | ||
retrieve(productId: string, sharedContext?: Context): Promise<ProductDTO>; | ||
@@ -6,0 +8,0 @@ list(filters?: FilterableProductProps, config?: FindConfig<ProductDTO>, sharedContext?: Context): Promise<ProductDTO[]>; |
@@ -9,2 +9,3 @@ import { EntityManager } from "typeorm"; | ||
enableNestedTransactions?: boolean; | ||
transactionId?: string; | ||
}; |
export * from "./common"; | ||
export * from "./stock-location"; | ||
export * from "./service"; |
@@ -18,3 +18,3 @@ "use strict"; | ||
__exportStar(require("./common"), exports); | ||
__exportStar(require("./stock-location"), exports); | ||
__exportStar(require("./service"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@medusajs/types", | ||
"version": "1.8.11", | ||
"version": "1.8.12-canary-20230724132815", | ||
"description": "Medusa Types definition", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
79718
115
1906
2