Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@figuredev/orders-sdk

Package Overview
Dependencies
Maintainers
6
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figuredev/orders-sdk - npm Package Compare versions

Comparing version 0.12.23 to 0.12.25

lib/report.d.ts

8

lib/index.d.ts
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

3

lib/inventory.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc