@ivfuture/ecomm-types
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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,3 @@ export * as SearchTypes from "./search"; | ||
export * as TransactionBaseTypes from "./transaction-base"; | ||
export * as DAL from "./dal"; | ||
export * as LoggerTypes from "./logger"; |
@@ -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.LoggerTypes = 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,4 @@ exports.SearchTypes = __importStar(require("./search")); | ||
exports.TransactionBaseTypes = __importStar(require("./transaction-base")); | ||
exports.DAL = __importStar(require("./dal")); | ||
exports.LoggerTypes = __importStar(require("./logger")); | ||
//# sourceMappingURL=bundles.js.map |
@@ -87,2 +87,4 @@ import { FindManyOptions, FindOneOptions, FindOperator, FindOptionsSelect, FindOptionsWhere, OrderByCondition } from "typeorm"; | ||
} | ||
export interface RepositoryTransformOptions { | ||
} | ||
export interface DateComparisonOperator { | ||
@@ -99,2 +101,5 @@ lt?: Date; | ||
lte?: string; | ||
contains?: string; | ||
starts_with?: string; | ||
ends_with?: string; | ||
} | ||
@@ -101,0 +106,0 @@ export interface NumericalComparisonOperator { |
@@ -0,1 +1,2 @@ | ||
import { RedisOptions } from "ioredis"; | ||
import { LoggerOptions } from "typeorm"; | ||
@@ -11,21 +12,31 @@ import { ExternalModuleDeclaration, InternalModuleDeclaration } from "../modules-sdk"; | ||
}; | ||
export declare type ConfigModule = { | ||
projectConfig: { | ||
redis_url?: string; | ||
session_options?: SessionOptions; | ||
jwt_secret?: string; | ||
cookie_secret?: string; | ||
database_url?: string; | ||
database_type: string; | ||
database_database?: string; | ||
database_schema?: string; | ||
database_logging: LoggerOptions; | ||
database_extra?: Record<string, unknown> & { | ||
ssl: { | ||
rejectUnauthorized: false; | ||
}; | ||
export declare type HttpCompressionOptions = { | ||
enabled?: boolean; | ||
level?: number; | ||
memLevel?: number; | ||
threshold?: number | string; | ||
}; | ||
export declare type ProjectConfigOptions = { | ||
redis_url?: string; | ||
redis_prefix?: string; | ||
redis_options?: RedisOptions; | ||
session_options?: SessionOptions; | ||
jwt_secret?: string; | ||
cookie_secret?: string; | ||
database_url?: string; | ||
database_database?: string; | ||
database_schema?: string; | ||
database_logging: LoggerOptions; | ||
database_type?: string; | ||
http_compression?: HttpCompressionOptions; | ||
database_extra?: Record<string, unknown> & { | ||
ssl: { | ||
rejectUnauthorized: false; | ||
}; | ||
store_cors?: string; | ||
admin_cors?: string; | ||
}; | ||
store_cors?: string; | ||
admin_cors?: string; | ||
}; | ||
export declare type ConfigModule = { | ||
projectConfig: ProjectConfigOptions; | ||
featureFlags: Record<string, boolean | string>; | ||
@@ -32,0 +43,0 @@ modules?: Record<string, false | string | Partial<InternalModuleDeclaration | ExternalModuleDeclaration>>; |
@@ -6,3 +6,6 @@ export * from "./bundles"; | ||
export * from "./inventory"; | ||
export * from "./joiner"; | ||
export * from "./modules-sdk"; | ||
export * from "./product"; | ||
export * from "./product-category"; | ||
export * from "./search"; | ||
@@ -12,1 +15,3 @@ export * from "./shared-context"; | ||
export * from "./transaction-base"; | ||
export * from "./dal"; | ||
export * from "./logger"; |
@@ -22,3 +22,6 @@ "use strict"; | ||
__exportStar(require("./inventory"), exports); | ||
__exportStar(require("./joiner"), exports); | ||
__exportStar(require("./modules-sdk"), exports); | ||
__exportStar(require("./product"), exports); | ||
__exportStar(require("./product-category"), exports); | ||
__exportStar(require("./search"), exports); | ||
@@ -28,2 +31,4 @@ __exportStar(require("./shared-context"), exports); | ||
__exportStar(require("./transaction-base"), exports); | ||
__exportStar(require("./dal"), exports); | ||
__exportStar(require("./logger"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -20,2 +20,11 @@ import { NumericalComparisonOperator, StringComparisonOperator } from "../common"; | ||
* type: string | ||
* title: | ||
* description: "Title of the inventory item" | ||
* type: string | ||
* description: | ||
* description: "Description of the inventory item" | ||
* type: string | ||
* thumbnail: | ||
* description: "Thumbnail for the inventory item" | ||
* type: string | ||
* material: | ||
@@ -68,2 +77,5 @@ * description: The material and composition that the Inventory Item is made of, May be used by Fulfillment Providers to pass customs information to shipping carriers. | ||
width?: number | null; | ||
title?: string | null; | ||
description?: string | null; | ||
thumbnail?: string | null; | ||
metadata?: Record<string, unknown> | null; | ||
@@ -94,2 +106,8 @@ created_at: string | Date; | ||
* type: string | ||
* description: | ||
* description: "Description of the reservation item" | ||
* type: string | ||
* created_by: | ||
* description: "UserId of user who created the reservation item" | ||
* type: string | ||
* quantity: | ||
@@ -121,2 +139,4 @@ * description: "The id of the reservation item" | ||
line_item_id?: string | null; | ||
description?: string | null; | ||
created_by?: string | null; | ||
metadata: Record<string, unknown> | null; | ||
@@ -184,2 +204,4 @@ created_at: string | Date; | ||
location_id?: string | string[]; | ||
description?: string | StringComparisonOperator; | ||
created_by?: string | string[]; | ||
quantity?: number | NumericalComparisonOperator; | ||
@@ -205,2 +227,5 @@ }; | ||
width?: number; | ||
title?: string; | ||
description?: string; | ||
thumbnail?: string; | ||
metadata?: Record<string, unknown> | null; | ||
@@ -215,2 +240,5 @@ hs_code?: string; | ||
quantity: number; | ||
description?: string; | ||
created_by?: string; | ||
external_id?: string; | ||
metadata?: Record<string, unknown> | null; | ||
@@ -239,2 +267,3 @@ }; | ||
location_id?: string; | ||
description?: string; | ||
metadata?: Record<string, unknown> | null; | ||
@@ -241,0 +270,0 @@ }; |
@@ -17,3 +17,3 @@ import { CreateInventoryItemInput, CreateInventoryLevelInput, CreateReservationItemInput, FilterableInventoryItemProps, FilterableInventoryLevelProps, FilterableReservationItemProps, InventoryItemDTO, InventoryLevelDTO, ReservationItemDTO, UpdateInventoryLevelInput, UpdateReservationItemInput } from "./common"; | ||
updateReservationItem(reservationItemId: string, input: UpdateReservationItemInput, context?: SharedContext): Promise<ReservationItemDTO>; | ||
deleteReservationItemsByLineItem(lineItemId: string, context?: SharedContext): Promise<void>; | ||
deleteReservationItemsByLineItem(lineItemId: string | string[], context?: SharedContext): Promise<void>; | ||
deleteReservationItem(reservationItemId: string | string[], context?: SharedContext): Promise<void>; | ||
@@ -20,0 +20,0 @@ deleteInventoryItem(inventoryItemId: string, context?: SharedContext): Promise<void>; |
@@ -1,3 +0,3 @@ | ||
import { Logger as _Logger } from "winston"; | ||
import { MedusaContainer } from "../common/medusa-container"; | ||
import { MedusaContainer } from "../common"; | ||
import { Logger } from "../logger"; | ||
export declare type Constructor<T> = new (...args: any[]) => T; | ||
@@ -7,7 +7,2 @@ export * from "../common/medusa-container"; | ||
export declare type LoggerOptions = boolean | "all" | LogLevel[]; | ||
export declare type Logger = _Logger & { | ||
progress: (activityId: string, msg: string) => void; | ||
info: (msg: string) => void; | ||
warn: (msg: string) => void; | ||
}; | ||
export declare enum MODULE_SCOPE { | ||
@@ -30,3 +25,3 @@ INTERNAL = "internal", | ||
scope: MODULE_SCOPE.EXTERNAL; | ||
server: { | ||
server?: { | ||
type: "http"; | ||
@@ -43,2 +38,3 @@ url: string; | ||
moduleDeclaration?: InternalModuleDeclaration | ExternalModuleDeclaration; | ||
moduleExports?: ModuleExports; | ||
}; | ||
@@ -45,0 +41,0 @@ export declare type ModuleDefinition = { |
{ | ||
"name": "@ivfuture/ecomm-types", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Medusa Types definition", | ||
@@ -22,3 +22,4 @@ "main": "dist/index.js", | ||
"cross-env": "^5.2.1", | ||
"typeorm": "^0.3.11", | ||
"ioredis": "^5.2.5", | ||
"typeorm": "^0.3.16", | ||
"typescript": "^4.4.4", | ||
@@ -25,0 +26,0 @@ "winston": "^3.8.2" |
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
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
70641
112
1666
6