washday-sdk 1.6.18 → 1.6.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api/reports/get.js
CHANGED
|
@@ -208,7 +208,11 @@ export const exportSupplyCostReport = function (params) {
|
|
|
208
208
|
return __awaiter(this, void 0, void 0, function* () {
|
|
209
209
|
try {
|
|
210
210
|
const config = {
|
|
211
|
-
headers: {
|
|
211
|
+
headers: {
|
|
212
|
+
Authorization: `Bearer ${this.apiToken}`,
|
|
213
|
+
'Content-Type': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
214
|
+
'Content-disposition': 'attachment; filename="supply-cost.xlsx"'
|
|
215
|
+
},
|
|
212
216
|
responseType: 'blob'
|
|
213
217
|
};
|
|
214
218
|
const queryParams = generateQueryParamsStr([
|
package/package.json
CHANGED
package/src/api/reports/get.ts
CHANGED
|
@@ -230,7 +230,11 @@ export const exportSupplyCostReport = async function (this: WashdayClientInstanc
|
|
|
230
230
|
}): Promise<any> {
|
|
231
231
|
try {
|
|
232
232
|
const config = {
|
|
233
|
-
headers: {
|
|
233
|
+
headers: {
|
|
234
|
+
Authorization: `Bearer ${this.apiToken}`,
|
|
235
|
+
'Content-Type': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
236
|
+
'Content-disposition': 'attachment; filename="supply-cost.xlsx"'
|
|
237
|
+
},
|
|
234
238
|
responseType: 'blob' as const
|
|
235
239
|
};
|
|
236
240
|
const queryParams = generateQueryParamsStr([
|