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.
@@ -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: { Authorization: `Bearer ${this.apiToken}` },
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "1.6.18",
3
+ "version": "1.6.19",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -230,7 +230,11 @@ export const exportSupplyCostReport = async function (this: WashdayClientInstanc
230
230
  }): Promise<any> {
231
231
  try {
232
232
  const config = {
233
- headers: { Authorization: `Bearer ${this.apiToken}` },
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([