@figuredev/orders-sdk
Advanced tools
Comparing version 0.12.23 to 0.12.25
import { InventoryInfoDTO } from "./inventory"; | ||
import { OrderDTO } from "./orderV3"; | ||
import { IsoDateTime } from "./types"; | ||
import { ReportPreparationTimeByItemDTO } from "./report"; | ||
import { IsoDate, IsoDateTime } from "./types"; | ||
import { UserContext } from "./utils"; | ||
@@ -31,3 +32,8 @@ declare type OrdersClientConfig = { | ||
}): Promise<InventoryInfoDTO[]>; | ||
getReportPreparationTimeByItem(ctx: UserContext, params: { | ||
locationIds: string[]; | ||
from: IsoDate; | ||
to: IsoDate; | ||
}): Promise<ReportPreparationTimeByItemDTO>; | ||
} | ||
export {}; |
@@ -92,4 +92,21 @@ "use strict"; | ||
} | ||
getReportPreparationTimeByItem(ctx, params) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield axios_1.default | ||
.request({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: `/report/preparation/item`, | ||
headers: this.prepareHeaders(ctx), | ||
params: { | ||
locationIds: params.locationIds, | ||
from: params.from, | ||
to: params.to, | ||
}, | ||
}) | ||
.then((r) => { var _a; return (_a = r.data) !== null && _a !== void 0 ? _a : { items: [] }; }); | ||
}); | ||
} | ||
} | ||
exports.OrdersClient = OrdersClient; | ||
//# sourceMappingURL=index.js.map |
@@ -0,1 +1,2 @@ | ||
import { Maybe } from "./types"; | ||
export declare type InventoryInfoDTO = { | ||
@@ -5,4 +6,4 @@ id: string; | ||
quantity: number; | ||
threshold: number; | ||
threshold?: Maybe<number>; | ||
productId: string; | ||
}; |
@@ -263,2 +263,4 @@ import { AddressDTO, IsoDateTime, Maybe, RecipientDTO } from "./types"; | ||
pieces?: Maybe<number>; | ||
orderedTimestamp?: Maybe<IsoDateTime>; | ||
readyTimestamp?: Maybe<IsoDateTime>; | ||
audit?: OrderItemAuditDTO[]; | ||
@@ -265,0 +267,0 @@ metadata?: Maybe<{ |
export declare type Maybe<T> = T | null | undefined; | ||
export declare type IsoDateTime = string; | ||
export declare type IsoDate = string; | ||
export declare type RecipientDTO = { | ||
@@ -4,0 +5,0 @@ customerId?: Maybe<string>; |
{ | ||
"name": "@figuredev/orders-sdk", | ||
"version": "0.12.23", | ||
"version": "0.12.25", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "files": [ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
30602
20
662
1