@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 CHANGED
@@ -1,4 +1,4 @@
1
- ## 1.0.7
1
+ ## 1.0.8
2
2
 
3
3
  - Implementing DMART apis up to 1.1.12
4
4
 
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, // Replace with actual type if needed
543
- dataAssetType: string, // Replace with actual type if needed
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}.${ext}`.replaceAll("..", ".")
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 // More general than Map<String, dynamic>
703
+ record: any
704
704
  ) {
705
705
  try {
706
706
  const {data} = await axios.post(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edraj/tsdmart",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
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",