@edraj/tsdmart 2.2.0 → 2.3.0
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 +12 -2
- package/package.json +1 -1
package/dmart.service.ts
CHANGED
|
@@ -447,11 +447,21 @@ export class Dmart {
|
|
|
447
447
|
spaceName: string,
|
|
448
448
|
schemaShortname: string,
|
|
449
449
|
subpath: string,
|
|
450
|
-
record: any
|
|
450
|
+
record: any,
|
|
451
|
+
resourceType?: string,
|
|
452
|
+
workflowShortname?: string,
|
|
451
453
|
) {
|
|
452
454
|
try {
|
|
455
|
+
var url = `public/submit/${spaceName}`;
|
|
456
|
+
if (resourceType) {
|
|
457
|
+
url += `/${resourceType}`;
|
|
458
|
+
}
|
|
459
|
+
if (workflowShortname) {
|
|
460
|
+
url += `/${workflowShortname}`;
|
|
461
|
+
}
|
|
462
|
+
url += `/${schemaShortname}/${subpath}`;
|
|
453
463
|
const { data } = await axios.post(
|
|
454
|
-
|
|
464
|
+
url,
|
|
455
465
|
record,
|
|
456
466
|
{ headers }
|
|
457
467
|
);
|