@edraj/tsdmart 2.6.1 → 2.6.2
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.service.ts +3 -4
- package/package.json +1 -1
package/dmart.service.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {AxiosInstance} from "axios";
|
|
2
2
|
import {
|
|
3
3
|
ActionRequest,
|
|
4
4
|
ActionResponse,
|
|
@@ -299,9 +299,8 @@ export class Dmart {
|
|
|
299
299
|
filter_data_assets?: string[]
|
|
300
300
|
) {
|
|
301
301
|
try {
|
|
302
|
-
const url = `managed/data-asset`;
|
|
303
302
|
const { data } = await Dmart.axiosDmartInstance.post(
|
|
304
|
-
|
|
303
|
+
'managed/data-asset',
|
|
305
304
|
{
|
|
306
305
|
space_name: spaceName,
|
|
307
306
|
resource_type: resourceType,
|
|
@@ -357,7 +356,7 @@ export class Dmart {
|
|
|
357
356
|
ext: string | null = null,
|
|
358
357
|
scope: string = "managed"
|
|
359
358
|
) {
|
|
360
|
-
return `${
|
|
359
|
+
return `${Dmart.axiosDmartInstance.defaults.baseURL}/${scope}/payload/${resource_type}/${space_name}/${subpath.replace(
|
|
361
360
|
/\/+$/,
|
|
362
361
|
""
|
|
363
362
|
)}/${parent_shortname}/${shortname}${ext === null ? "" : `.${ext}`}`;
|