@edraj/tsdmart 2.1.0 → 2.1.1
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 +4 -5
- package/package.json +1 -1
package/dmart.service.ts
CHANGED
|
@@ -232,7 +232,8 @@ export class Dmart {
|
|
|
232
232
|
resource_type: ResourceType,
|
|
233
233
|
payload_file: File,
|
|
234
234
|
content_type?: ContentType,
|
|
235
|
-
schema_shortname?: string
|
|
235
|
+
schema_shortname?: string,
|
|
236
|
+
scope: string = "managed"
|
|
236
237
|
): Promise<ApiResponse> {
|
|
237
238
|
const request_record_body: any = {
|
|
238
239
|
resource_type,
|
|
@@ -261,7 +262,7 @@ export class Dmart {
|
|
|
261
262
|
|
|
262
263
|
try {
|
|
263
264
|
const { data } = await axios.post<ApiResponse>(
|
|
264
|
-
|
|
265
|
+
`${scope}/resource_with_payload`,
|
|
265
266
|
form_data,
|
|
266
267
|
{ headers }
|
|
267
268
|
);
|
|
@@ -279,8 +280,7 @@ export class Dmart {
|
|
|
279
280
|
subpath: string,
|
|
280
281
|
shortname: string,
|
|
281
282
|
query_string?: string,
|
|
282
|
-
filter_data_assets?: string[]
|
|
283
|
-
branch_name?: string
|
|
283
|
+
filter_data_assets?: string[]
|
|
284
284
|
) {
|
|
285
285
|
try {
|
|
286
286
|
const url = `managed/data-asset`;
|
|
@@ -294,7 +294,6 @@ export class Dmart {
|
|
|
294
294
|
shortname,
|
|
295
295
|
query_string: query_string ?? "SELECT * FROM file",
|
|
296
296
|
filter_data_assets,
|
|
297
|
-
branch_name,
|
|
298
297
|
},
|
|
299
298
|
{ headers }
|
|
300
299
|
);
|