@edraj/tsdmart 5.0.2 → 5.0.4

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/dmart.model.ts CHANGED
@@ -190,7 +190,7 @@ export type QueryRequest = {
190
190
  export enum RequestType {
191
191
  create = "create",
192
192
  update = "update",
193
- replace = "replace",
193
+ progress_ticket = "progress_ticket",
194
194
  delete = "delete",
195
195
  move = "move",
196
196
  updateACL = "update_acl",
package/dmart.service.ts CHANGED
@@ -422,13 +422,13 @@ export class Dmart {
422
422
  form_data.append("request_record", request_record);
423
423
  form_data.append("payload_file", request.payload_file);
424
424
 
425
- const headers = {"Content-Type": "multipart/form-data"};
425
+ const _headers = {...headers, "Content-Type": "multipart/form-data"};
426
426
 
427
427
  try {
428
428
  const {data} = await Dmart.axiosDmartInstance.post<ApiResponse>(
429
429
  `${scope}/resource_with_payload`,
430
430
  form_data,
431
- {headers}
431
+ {headers: _headers}
432
432
  );
433
433
 
434
434
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edraj/tsdmart",
3
- "version": "5.0.2",
3
+ "version": "5.0.4",
4
4
  "description": "A TypeScript implementation of the Dmart that depends on axios.",
5
5
  "author": "Kefah T. Issa",
6
6
  "email": "kefah.issa@gmail.com",