@edraj/tsdmart 1.0.7 → 1.0.8
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/CHANGELOG.md +1 -1
- package/index.ts +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/index.ts
CHANGED
|
@@ -539,8 +539,8 @@ export default class Dmart {
|
|
|
539
539
|
|
|
540
540
|
|
|
541
541
|
public static async fetchDataAsset(
|
|
542
|
-
resourceType: string,
|
|
543
|
-
dataAssetType: string,
|
|
542
|
+
resourceType: string,
|
|
543
|
+
dataAssetType: string,
|
|
544
544
|
spaceName: string,
|
|
545
545
|
subpath: string,
|
|
546
546
|
shortname: string,
|
|
@@ -605,14 +605,14 @@ export default class Dmart {
|
|
|
605
605
|
subpath: string,
|
|
606
606
|
parent_shortname: string,
|
|
607
607
|
shortname: string,
|
|
608
|
-
ext: string,
|
|
608
|
+
ext: string|null = null,
|
|
609
609
|
scope: string = "managed"
|
|
610
610
|
) {
|
|
611
611
|
return (
|
|
612
612
|
`${this.baseURL}/${scope}/payload/${resource_type}/${space_name}/${subpath.replace(
|
|
613
613
|
/\/+$/,
|
|
614
614
|
""
|
|
615
|
-
)}/${parent_shortname}/${shortname}
|
|
615
|
+
)}/${parent_shortname}/${shortname}${ext===null?"":ext}`
|
|
616
616
|
);
|
|
617
617
|
}
|
|
618
618
|
|
|
@@ -700,7 +700,7 @@ export default class Dmart {
|
|
|
700
700
|
spaceName: string,
|
|
701
701
|
schemaShortname: string,
|
|
702
702
|
subpath: string,
|
|
703
|
-
record: any
|
|
703
|
+
record: any
|
|
704
704
|
) {
|
|
705
705
|
try {
|
|
706
706
|
const {data} = await axios.post(
|