@contrail/entity-types 1.2.0 → 1.4.0-alpha

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.
@@ -11,6 +11,11 @@ export declare enum AppVersionStatus {
11
11
  FAILED_ARCHIVING = "FAILED_ARCHIVING",
12
12
  ARCHIVED = "ARCHIVED"
13
13
  }
14
+ export declare enum NodeRuntime {
15
+ NODEJS_18_X = "nodejs18.x",
16
+ NODEJS_22_X = "nodejs22.x"
17
+ }
18
+ export declare function isValidNodeRuntime(runtime: string): runtime is NodeRuntime;
14
19
  export interface AppVersion extends BaseManagedEntity {
15
20
  orgId?: string;
16
21
  appId?: string;
@@ -25,6 +30,7 @@ export interface AppVersion extends BaseManagedEntity {
25
30
  appCodePackageId?: string;
26
31
  appCodePackage?: AppCodePackage;
27
32
  frameworkVersion?: number;
33
+ nodeRuntime?: NodeRuntime;
28
34
  }
29
35
  export interface ConfigProperty {
30
36
  slug: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppVersionStatus = void 0;
3
+ exports.isValidNodeRuntime = exports.NodeRuntime = exports.AppVersionStatus = void 0;
4
4
  var AppVersionStatus;
5
5
  (function (AppVersionStatus) {
6
6
  AppVersionStatus["PUBLISHING"] = "PUBLISHING";
@@ -10,3 +10,12 @@ var AppVersionStatus;
10
10
  AppVersionStatus["FAILED_ARCHIVING"] = "FAILED_ARCHIVING";
11
11
  AppVersionStatus["ARCHIVED"] = "ARCHIVED";
12
12
  })(AppVersionStatus = exports.AppVersionStatus || (exports.AppVersionStatus = {}));
13
+ var NodeRuntime;
14
+ (function (NodeRuntime) {
15
+ NodeRuntime["NODEJS_18_X"] = "nodejs18.x";
16
+ NodeRuntime["NODEJS_22_X"] = "nodejs22.x";
17
+ })(NodeRuntime = exports.NodeRuntime || (exports.NodeRuntime = {}));
18
+ function isValidNodeRuntime(runtime) {
19
+ return Object.values(NodeRuntime).includes(runtime);
20
+ }
21
+ exports.isValidNodeRuntime = isValidNodeRuntime;
package/lib/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export * from './assortment';
11
11
  export * from './assortment-item';
12
12
  export * from './assortment-summary';
13
13
  export * from './base-managed-entity';
14
+ export * from './batch-fetch-response';
14
15
  export * from './client';
15
16
  export * from './color';
16
17
  export * from './composite-plans-summary';
package/lib/index.js CHANGED
@@ -27,6 +27,7 @@ __exportStar(require("./assortment"), exports);
27
27
  __exportStar(require("./assortment-item"), exports);
28
28
  __exportStar(require("./assortment-summary"), exports);
29
29
  __exportStar(require("./base-managed-entity"), exports);
30
+ __exportStar(require("./batch-fetch-response"), exports);
30
31
  __exportStar(require("./client"), exports);
31
32
  __exportStar(require("./color"), exports);
32
33
  __exportStar(require("./composite-plans-summary"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/entity-types",
3
- "version": "1.2.0",
3
+ "version": "1.4.0-alpha",
4
4
  "description": "A types library for Vibeiq entities.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -8,7 +8,10 @@
8
8
  "build": "tsc",
9
9
  "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
10
10
  "generate-docs": "npx typedoc src/index.ts --disableSources --excludeInternal --plugin typedoc-plugin-extras --favicon home-hero.svg",
11
- "lint": "tslint -p tsconfig.json"
11
+ "lint": "tslint -p tsconfig.json",
12
+ "test": "jest",
13
+ "test:watch": "jest --watch",
14
+ "test:coverage": "jest --coverage"
12
15
  },
13
16
  "keywords": [
14
17
  "VibeIQ",
@@ -17,10 +20,37 @@
17
20
  "author": "",
18
21
  "license": "ISC",
19
22
  "devDependencies": {
23
+ "@types/jest": "^30.0.0",
20
24
  "@types/node": "^18.15.11",
25
+ "jest": "^30.1.3",
21
26
  "js-yaml": "^4.1.0",
27
+ "ts-jest": "^29.4.1",
22
28
  "typedoc": "^0.25.7",
23
29
  "typedoc-plugin-extras": "^3.0.0",
24
30
  "typescript": "^4.2"
31
+ },
32
+ "jest": {
33
+ "preset": "ts-jest",
34
+ "testEnvironment": "node",
35
+ "roots": [
36
+ "<rootDir>/src"
37
+ ],
38
+ "testMatch": [
39
+ "**/__tests__/**/*.ts",
40
+ "**/?(*.)+(spec|test).ts"
41
+ ],
42
+ "transform": {
43
+ "^.+\\.ts$": "ts-jest"
44
+ },
45
+ "collectCoverageFrom": [
46
+ "src/**/*.ts",
47
+ "!src/**/*.d.ts"
48
+ ],
49
+ "coverageDirectory": "coverage",
50
+ "coverageReporters": [
51
+ "text",
52
+ "lcov",
53
+ "html"
54
+ ]
25
55
  }
26
56
  }