@figuredev/orders-sdk
Advanced tools
Comparing version 0.12.90 to 0.12.91
@@ -6,2 +6,3 @@ import { Maybe } from "fgr-lib-backend/lib/types"; | ||
import { ReportPreparationTimeByItemDTO, ReportPreparationTimeHourlyDTO } from "./report"; | ||
import { TillCountDTO } from "./till"; | ||
import { IsoDate, IsoDateTime } from "./types"; | ||
@@ -53,3 +54,8 @@ import { UserContext } from "./utils"; | ||
}): Promise<ReportPreparationTimeHourlyDTO>; | ||
getTillsCount(ctx: UserContext, params: { | ||
locationId: string; | ||
includeDeleted: boolean; | ||
includeClosed: boolean; | ||
}): Promise<TillCountDTO>; | ||
} | ||
export {}; |
@@ -147,4 +147,25 @@ "use strict"; | ||
} | ||
getTillsCount(ctx, params) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: "/till/count", | ||
headers: this.prepareHeaders(ctx), | ||
params: { | ||
includeDeleted: params.includeDeleted, | ||
includeClosed: params.includeClosed, | ||
}, | ||
}).then((r) => { | ||
var _a; | ||
return (_a = r.data) !== null && _a !== void 0 ? _a : { | ||
count: 0, | ||
includeDeleted: params.includeDeleted, | ||
includeClosed: params.includeClosed, | ||
}; | ||
}); | ||
}); | ||
} | ||
} | ||
exports.OrdersClient = OrdersClient; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@figuredev/orders-sdk", | ||
"version": "0.12.90", | ||
"version": "0.12.91", | ||
"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
72961
45
35
1382