@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.
Files changed (2) hide show
  1. package/dmart.service.ts +12 -2
  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
- `public/submit/${spaceName}/${schemaShortname}/${subpath}`,
464
+ url,
455
465
  record,
456
466
  { headers }
457
467
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edraj/tsdmart",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
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",