@medusajs/types
Advanced tools
Comparing version 1.8.7-snapshot-20230516144557 to 1.8.7-snapshot-20230522200557
@@ -1,3 +0,3 @@ | ||
import { DomainKey, HookPointKey, LoadedWidget, PageKey, PagePointKey, StumbDomainKey, WidgetsConfig } from "./widget"; | ||
export declare type InjectionZone = `${DomainKey}.${HookPointKey}` | `${PageKey}.${PagePointKey}` | `${StumbDomainKey}`; | ||
import { DomainKey, HookPointKey, LoadedWidget, WidgetsConfig } from "./widget"; | ||
export declare type InjectionZone = `${DomainKey}.${HookPointKey}`; | ||
export declare type InjectionZones = Map<InjectionZone, LoadedWidget[]>; | ||
@@ -4,0 +4,0 @@ export interface Application { |
@@ -5,20 +5,9 @@ import { IBaseExtension, IBaseLoadedExtension } from "./common"; | ||
} | ||
export declare type DomainKey = "product" | "product_collection" | "order" | "draft_order" | "customer" | "customer_group" | "discount" | "price_list" | "gift_card"; | ||
export declare type StumbDomainKey = "custom_gift_card"; | ||
export declare type PageKey = "login"; | ||
export declare type HookPointKey = "details" | "list"; | ||
export declare type PagePointKey = "before" | "after"; | ||
export declare type HookPoint = { | ||
export declare type DomainKey = "product" | "product_collection" | "order" | "customer"; | ||
export declare type HookPointKey = "details"; | ||
declare type HookPoint = { | ||
[key in HookPointKey]?: Widget[]; | ||
}; | ||
export declare type PagePoint = { | ||
[key in PagePointKey]?: Widget[]; | ||
}; | ||
export declare type WidgetConfigKey = DomainKey | StumbDomainKey | PageKey; | ||
export declare type WidgetsConfig = { | ||
[key in DomainKey]?: HookPoint; | ||
} & { | ||
[key in StumbDomainKey]?: Widget[]; | ||
} & { | ||
[key in PageKey]?: PagePoint; | ||
}; | ||
@@ -32,1 +21,2 @@ export interface LoadedWidget extends Widget, IBaseLoadedExtension { | ||
} | ||
export {}; |
@@ -5,2 +5,3 @@ export * as CacheTypes from "./cache"; | ||
export * as InventoryTypes from "./inventory"; | ||
export * as ProductTypes from "./product"; | ||
export * as ModulesSdkTypes from "./modules-sdk"; | ||
@@ -10,1 +11,2 @@ export * as SearchTypes from "./search"; | ||
export * as TransactionBaseTypes from "./transaction-base"; | ||
export * as DAL from "./dal"; |
@@ -26,3 +26,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TransactionBaseTypes = exports.StockLocationTypes = exports.SearchTypes = exports.ModulesSdkTypes = exports.InventoryTypes = exports.EventBusTypes = exports.CommonTypes = exports.CacheTypes = void 0; | ||
exports.DAL = exports.TransactionBaseTypes = exports.StockLocationTypes = exports.SearchTypes = exports.ModulesSdkTypes = exports.ProductTypes = exports.InventoryTypes = exports.EventBusTypes = exports.CommonTypes = exports.CacheTypes = void 0; | ||
exports.CacheTypes = __importStar(require("./cache")); | ||
@@ -32,2 +32,3 @@ exports.CommonTypes = __importStar(require("./common")); | ||
exports.InventoryTypes = __importStar(require("./inventory")); | ||
exports.ProductTypes = __importStar(require("./product")); | ||
exports.ModulesSdkTypes = __importStar(require("./modules-sdk")); | ||
@@ -37,2 +38,3 @@ exports.SearchTypes = __importStar(require("./search")); | ||
exports.TransactionBaseTypes = __importStar(require("./transaction-base")); | ||
exports.DAL = __importStar(require("./dal")); | ||
//# sourceMappingURL=bundles.js.map |
@@ -25,6 +25,6 @@ import { RedisOptions } from "ioredis"; | ||
database_url?: string; | ||
database_type: string; | ||
database_database?: string; | ||
database_schema?: string; | ||
database_logging: LoggerOptions; | ||
database_type?: string; | ||
http_compression?: HttpCompressionOptions; | ||
@@ -31,0 +31,0 @@ database_extra?: Record<string, unknown> & { |
@@ -1,2 +0,1 @@ | ||
export * from "./admin"; | ||
export * from "./bundles"; | ||
@@ -8,2 +7,3 @@ export * from "./cache"; | ||
export * from "./modules-sdk"; | ||
export * from "./product"; | ||
export * from "./search"; | ||
@@ -13,1 +13,2 @@ export * from "./shared-context"; | ||
export * from "./transaction-base"; | ||
export * from "./dal"; |
@@ -17,3 +17,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./admin"), exports); | ||
__exportStar(require("./bundles"), exports); | ||
@@ -25,2 +24,3 @@ __exportStar(require("./cache"), exports); | ||
__exportStar(require("./modules-sdk"), exports); | ||
__exportStar(require("./product"), exports); | ||
__exportStar(require("./search"), exports); | ||
@@ -30,2 +30,3 @@ __exportStar(require("./shared-context"), exports); | ||
__exportStar(require("./transaction-base"), exports); | ||
__exportStar(require("./dal"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -29,3 +29,3 @@ import { Logger as _Logger } from "winston"; | ||
scope: MODULE_SCOPE.EXTERNAL; | ||
server: { | ||
server?: { | ||
type: "http"; | ||
@@ -32,0 +32,0 @@ url: string; |
{ | ||
"name": "@medusajs/types", | ||
"version": "1.8.7-snapshot-20230516144557", | ||
"version": "1.8.7-snapshot-20230522200557", | ||
"description": "Medusa Types definition", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"repository": { | ||
@@ -23,3 +22,2 @@ "type": "git", | ||
"cross-env": "^5.2.1", | ||
"react-router-dom": "6.8.0", | ||
"typeorm": "^0.3.16", | ||
@@ -26,0 +24,0 @@ "typescript": "^4.4.4", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72879
5
124
1703