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

@figuredev/orders-sdk

Package Overview
Dependencies
Maintainers
9
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.103 to 0.12.104

lib/loyaltyPrograms.d.ts

2

lib/http.d.ts
import { AxiosRequestConfig, AxiosResponse } from "axios";
export declare const createHttpRequest: (config: AxiosRequestConfig) => Promise<AxiosResponse>;
export declare const createHttpRequest: <T = any>(config: AxiosRequestConfig) => Promise<AxiosResponse<T>>;
import { Maybe } from "@figurepos/fgr-lib-backend/lib/types";
import { InventoryInfoDTO } from "./inventory";
import { LoyaltyProgramDTO } from "./loyaltyPrograms";
import { OrderDTO, OrderPreviewDTO } from "./order";

@@ -43,2 +44,3 @@ import { OrderInputDTO } from "./orderInput";

}): Promise<InventoryInfoDTO[]>;
getLoyaltyPrograms(ctx: UserContext): Promise<LoyaltyProgramDTO[]>;
getReportPreparationTimeByItem(ctx: UserContext, params: {

@@ -66,3 +68,4 @@ locationIds: string[];

getPreparedFileUploadUrl(ctx: UserContext, filename: string, fileType: string, fileUploadType: FileUploadTypeDTO): Promise<PreparedFileUploadDTO | null>;
private get;
}
export {};

@@ -24,3 +24,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
return yield http_1.createHttpRequest({
return yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,

@@ -38,3 +38,3 @@ method: "POST",

return __awaiter(this, void 0, void 0, function* () {
return yield http_1.createHttpRequest({
return yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,

@@ -54,3 +54,3 @@ method: "POST",

return __awaiter(this, void 0, void 0, function* () {
return yield http_1.createHttpRequest({
return yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,

@@ -65,3 +65,3 @@ method: "GET",

return __awaiter(this, void 0, void 0, function* () {
return yield http_1.createHttpRequest({
return yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,

@@ -83,3 +83,3 @@ method: "POST",

return __awaiter(this, void 0, void 0, function* () {
return yield http_1.createHttpRequest({
return yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,

@@ -100,3 +100,3 @@ method: "GET",

return __awaiter(this, void 0, void 0, function* () {
return yield http_1.createHttpRequest({
return yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,

@@ -111,3 +111,3 @@ method: "GET",

return __awaiter(this, void 0, void 0, function* () {
return yield http_1.createHttpRequest({
return yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,

@@ -124,5 +124,11 @@ method: "GET",

}
getLoyaltyPrograms(ctx) {
return __awaiter(this, void 0, void 0, function* () {
const { data } = yield this.get(ctx, "/loyalty-programs");
return data;
});
}
getReportPreparationTimeByItem(ctx, params) {
return __awaiter(this, void 0, void 0, function* () {
return yield http_1.createHttpRequest({
return yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,

@@ -142,3 +148,3 @@ method: "GET",

return __awaiter(this, void 0, void 0, function* () {
return yield http_1.createHttpRequest({
return yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,

@@ -158,3 +164,3 @@ method: "GET",

return __awaiter(this, void 0, void 0, function* () {
return yield http_1.createHttpRequest({
return yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,

@@ -182,3 +188,3 @@ method: "GET",

return __awaiter(this, void 0, void 0, function* () {
return yield http_1.createHttpRequest({
return yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,

@@ -199,3 +205,3 @@ method: "GET",

return __awaiter(this, void 0, void 0, function* () {
const response = yield http_1.createHttpRequest({
const response = yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,

@@ -214,4 +220,16 @@ method: "POST",

}
get(ctx, url, params) {
return __awaiter(this, void 0, void 0, function* () {
const r = yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,
method: "GET",
url: url,
headers: this.prepareHeaders(ctx),
params: params,
});
return r.data;
});
}
}
exports.OrdersClient = OrdersClient;
//# sourceMappingURL=index.js.map

@@ -188,3 +188,3 @@ "use strict";

headers: this.prepareHeaders(ctx),
data: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ from: params.from, to: params.to }, (params.locationIds ? { locationIds: params.locationIds } : null)), (params.assigneeIds ? { assigneeIds: params.assigneeIds } : null)), (params.search ? { search: params.search } : null)), (params.source ? { source: params.source } : null)), (!ramda_1.isNil(params.isActive) ? { isActive: params.isActive } : null)), { offset: params.offset, pageSize: params.pageSize }), (params.sort ? { sort: params.sort } : null)), (params.sortOrder ? { sortOrder: params.sortOrder } : null)),
data: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ from: params.from, to: params.to }, (params.locationIds ? { locationIds: params.locationIds } : null)), (params.assigneeIds ? { assigneeIds: params.assigneeIds } : null)), (params.search ? { search: params.search } : null)), (params.source ? { source: params.source } : null)), (!(0, ramda_1.isNil)(params.isActive) ? { isActive: params.isActive } : null)), { offset: params.offset, pageSize: params.pageSize }), (params.sort ? { sort: params.sort } : null)), (params.sortOrder ? { sortOrder: params.sortOrder } : null)),
})

@@ -191,0 +191,0 @@ .then((r) => { var _a; return (_a = r.data) !== null && _a !== void 0 ? _a : []; });

{
"name": "@figuredev/orders-sdk",
"version": "0.12.103",
"version": "0.12.104",
"license": "ISC",

@@ -13,3 +13,3 @@ "files": [

"devDependencies": {
"typescript": "^4.3.5"
"typescript": "4.7.4"
},

@@ -16,0 +16,0 @@ "scripts": {

@@ -7,3 +7,4 @@ ## Order Service SDK

2. Increment version in package.json
3. Run `yarn build`
4. Call `npm publish --access public`
3. Document your changes in `CHANGELOG.md`
4. Run `yarn build`
5. Call `npm publish --access public`

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

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