@figuredev/orders-sdk
Advanced tools
Comparing version 0.12.55 to 0.12.56
@@ -0,1 +1,2 @@ | ||
import { Maybe } from "fgr-lib-backend/lib/types"; | ||
import { InventoryInfoDTO } from "./inventory"; | ||
@@ -20,2 +21,3 @@ import { OrderDTO } from "./orderV3"; | ||
placeOrder(order: OrderDTO, ctx: UserContext): Promise<import("axios").AxiosResponse<any>>; | ||
getOrderForTable(ctx: UserContext, assignmentId: Maybe<string>): Promise<any>; | ||
getOrder(ctx: UserContext, id: string): Promise<OrderDTO>; | ||
@@ -22,0 +24,0 @@ getOrdersCount(ctx: UserContext, params: { |
@@ -34,2 +34,17 @@ "use strict"; | ||
} | ||
getOrderForTable(ctx, assignmentId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
baseURL: this.config.baseUrl, | ||
method: "POST", | ||
url: "/order/order-lookup", | ||
headers: this.prepareHeaders(ctx), | ||
data: { | ||
assignmentId: assignmentId, | ||
state: "active", | ||
deleted: false, | ||
}, | ||
}).then((r) => r.data); | ||
}); | ||
} | ||
getOrder(ctx, id) { | ||
@@ -36,0 +51,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -111,4 +111,4 @@ import { Maybe } from "./types"; | ||
account_id: string; | ||
fromTimestamp: string; | ||
fromTimestamp: Maybe<string>; | ||
toTimestamp: Maybe<string>; | ||
}; |
{ | ||
"name": "@figuredev/orders-sdk", | ||
"version": "0.12.55", | ||
"version": "0.12.56", | ||
"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
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
54730
1058