dataverse-utils 2.7.3 → 2.7.5

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.
@@ -64,8 +64,8 @@ async function updateApi(id, api, apiConfig) {
64
64
  name: api.name,
65
65
  executeprivilegename: api.executeprivilegename
66
66
  };
67
- if (api['PluginTypeId@odata.bind']) {
68
- record['PluginTypeId@odata.bind'] = api['PluginTypeId@odata.bind'];
67
+ if (api.plugintypeid) {
68
+ record['PluginTypeId@odata.bind'] = `plugintypes(${api.plugintypeid})`;
69
69
  }
70
70
  else {
71
71
  record['PluginTypeId@odata.bind'] = null;
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.retrieveAssembly = exports.deployAssembly = void 0;
7
+ /* eslint-disable @typescript-eslint/no-explicit-any */
7
8
  const fs_1 = __importDefault(require("fs"));
8
9
  const glob_1 = __importDefault(require("glob"));
9
10
  const node_1 = require("dataverse-webapi/lib/node");
@@ -9,7 +9,7 @@ async function deployType(config, assemblyId, apiConfig, solution) {
9
9
  name: config.name,
10
10
  friendlyname: config.friendlyname,
11
11
  typename: config.typename,
12
- 'pluginassemblyid@odata.bind': config['pluginassemblyid@odata.bind'],
12
+ 'pluginassemblyid@odata.bind': `pluginassemblies(${assemblyId})`,
13
13
  workflowactivitygroupname: config.workflowactivitygroupname
14
14
  };
15
15
  if (!config.plugintypeid) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dataverse-utils",
3
- "version": "2.7.3",
3
+ "version": "2.7.5",
4
4
  "license": "MIT",
5
5
  "description": "Utilities for interacting with Dataverse environments",
6
6
  "main": "lib/index.js",