@contrail/flexplm 1.8.2-alpha.c2565cf → 2.0.0-alpha.222a247

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.
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.CompileCommand = void 0;
27
37
  const fs = __importStar(require("fs"));
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  const fs = __importStar(require("fs"));
27
37
  const os = __importStar(require("os"));
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.CreateCommand = void 0;
27
37
  const fs = __importStar(require("fs"));
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  const fs = __importStar(require("fs"));
27
37
  const os = __importStar(require("os"));
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.UploadCommand = void 0;
27
37
  const child_process_1 = require("child_process");
package/lib/cli/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.main = exports.Cli = void 0;
4
+ exports.Cli = void 0;
5
+ exports.main = main;
5
6
  const create_1 = require("./commands/create");
6
7
  const compile_1 = require("./commands/compile");
7
8
  const upload_1 = require("./commands/upload");
@@ -62,7 +63,6 @@ exports.Cli = Cli;
62
63
  function main() {
63
64
  return new Cli().main();
64
65
  }
65
- exports.main = main;
66
66
  if (require.main === module) {
67
67
  main().catch((err) => {
68
68
  console.error(err && err.message ? err.message : err);
@@ -21,4 +21,4 @@ var EventShortMessageStatus;
21
21
  EventShortMessageStatus["NO_FEDERATION_INFO"] = "No_Federation_Information";
22
22
  EventShortMessageStatus["NO_EVENTS_TO_SEND"] = "No_Events_to_Send";
23
23
  EventShortMessageStatus["SENDING_EVENTS"] = "Sending_Events";
24
- })(EventShortMessageStatus = exports.EventShortMessageStatus || (exports.EventShortMessageStatus = {}));
24
+ })(EventShortMessageStatus || (exports.EventShortMessageStatus = EventShortMessageStatus = {}));
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  const flexplm_connect_1 = require("./flexplm-connect");
27
37
  const app_framework_1 = require("@contrail/app-framework");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setLoggerConfig = void 0;
3
+ exports.setLoggerConfig = setLoggerConfig;
4
4
  const app_framework_1 = require("@contrail/app-framework");
5
5
  async function setLoggerConfig(appConfig) {
6
6
  let logLevel = app_framework_1.LogLevel.INFO;
@@ -24,4 +24,3 @@ async function setLoggerConfig(appConfig) {
24
24
  }
25
25
  app_framework_1.Logger.setConfig({ logLevel: logLevel });
26
26
  }
27
- exports.setLoggerConfig = setLoggerConfig;
@@ -189,7 +189,7 @@ class ThumbnailUtil {
189
189
  const urlPath = '/servlet/rest' + imageEndpoint + '?path=' + encodeURIComponent(thumbnailUrl);
190
190
  response = await flexPLMConnect.getRequest({
191
191
  urlPath,
192
- includeUrlContext: true,
192
+ includeUrlContext: true, // apiHost + /Windchill + /servlet/rest/rfa/vibeiq/image?path=...
193
193
  returnFullResponse: true,
194
194
  });
195
195
  }
@@ -1,10 +1,10 @@
1
1
  import { TypeClientOptions } from '@contrail/sdk';
2
- import { TypeProperty } from '@contrail/types';
2
+ import { Type, TypeProperty } from '@contrail/types';
3
3
  export declare class TypeUtils {
4
4
  private typesObj;
5
5
  constructor();
6
- getTypeById(id: any): Promise<import("@contrail/types").Type>;
7
- getByRootAndPath(options: TypeClientOptions): Promise<import("@contrail/types").Type>;
6
+ getTypeById(id: any): Promise<Type>;
7
+ getByRootAndPath(options: TypeClientOptions): Promise<Type>;
8
8
  /** Deprecated: use TypeConversionUtils.getObjectTypePath() */
9
9
  static getFlexPLMTypePath(entity: any): any;
10
10
  /** Deprecated: use TypeConversionUtils.getObjectClass()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/flexplm",
3
- "version": "1.8.2-alpha.c2565cf",
3
+ "version": "2.0.0-alpha.222a247",
4
4
  "description": "Library used for integration with flexplm.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -25,15 +25,18 @@
25
25
  "author": "VibeIQ",
26
26
  "license": "ISC",
27
27
  "devDependencies": {
28
+ "@contrail/app-framework": "^3.0.0",
28
29
  "@types/jest": "^29.5.2",
30
+ "@types/node": "^24.0.0",
29
31
  "jest": "^29.5.0",
30
32
  "prettier": "^1.19.1",
31
33
  "ts-jest": "^29.1.1",
32
34
  "tslint": "^5.11.0",
33
35
  "tslint-config-prettier": "^1.18.0",
34
- "typescript": "^4.0.0"
36
+ "typescript": "^5.9.3"
35
37
  },
36
38
  "peerDependencies": {
39
+ "@contrail/app-framework": "^3.0.0",
37
40
  "typescript": ">=4.0.0"
38
41
  },
39
42
  "peerDependenciesMeta": {
@@ -56,11 +59,14 @@
56
59
  "testEnvironment": "node"
57
60
  },
58
61
  "dependencies": {
59
- "@contrail/app-framework": "^1.4.3",
60
62
  "@contrail/sdk": "^1.6.1",
61
- "@contrail/transform-data": "^1.3.2",
62
- "@contrail/util": "^1.3.1",
63
+ "@contrail/transform-data": "^2.0.0",
64
+ "@contrail/types": "^4.0.1",
65
+ "@contrail/util": "^2.2.1",
63
66
  "axios": "^1.4.0",
64
67
  "p-limit": "^3.1.0"
68
+ },
69
+ "engines": {
70
+ "node": ">=24"
65
71
  }
66
72
  }