@tellescope/constants 1.256.16 → 2.0.0-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tellescope/constants",
3
- "version": "1.256.16",
3
+ "version": "2.0.0-beta.1",
4
4
  "description": "Constants used across server and client",
5
5
  "main": "./lib/cjs/constants.js",
6
6
  "module": "./lib/esm/constants.js",
@@ -9,8 +9,8 @@
9
9
  "test": "echo \"Error: no test specified\" && exit 1",
10
10
  "build": "npm run-script build:esm && npm run-script build:cjs",
11
11
  "build:esm": "tsc",
12
- "build:cjs": "tsc --module commonjs --outDir lib/cjs",
13
- "watch:cjs": "tsc --module commonjs --outDir lib/cjs --watch"
12
+ "build:cjs": "tsc -b tsconfig.cjs.json",
13
+ "watch:cjs": "tsc -b -w --preserveWatchOutput tsconfig.cjs.json"
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "homepage": "https://github.com/tellescope-os/tellescope#readme",
25
25
  "dependencies": {
26
- "@tellescope/types-models": "1.256.16",
27
- "@tellescope/types-utilities": "1.256.16"
26
+ "@tellescope/types-models": "2.0.0-beta.1",
27
+ "@tellescope/types-utilities": "2.0.0-beta.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@typescript-eslint/eslint-plugin": "4.33.0",
@@ -32,7 +32,7 @@
32
32
  "eslint": "7.32.0",
33
33
  "typescript": "4.9.3"
34
34
  },
35
- "gitHead": "5874f0e4ca75d8ce70768a5933cd5bb5b3b15c58",
35
+ "gitHead": "20732ce4e382a7d81dde795ce9c7194c2aca1ce6",
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  }
package/src/constants.ts CHANGED
@@ -163,7 +163,6 @@ export const OPENAI_TITLE = "OpenAI"
163
163
  export const HEALTHIE_TITLE = "Healthie"
164
164
  export const ITERABLE_TITLE = "Iterable"
165
165
  export const MEDPLUM_TITLE = "Medplum"
166
- export const PHASE_ZERO_TITLE = "Phase Zero"
167
166
  export const PHOTON_TITLE = "Photon Health"
168
167
  export const VITAL_TITLE = "Vital"
169
168
  export const ELATION_TITLE = "Elation"
@@ -606,6 +605,9 @@ export const AUTOMATED_ACTION_CANCEL_REASONS = [
606
605
  'Incoming Communication',
607
606
  'Removed by Automation',
608
607
  'Journey Deleted',
608
+ // APPEND ONLY: AutomatedAction.cancelReason is a numeric index into this array,
609
+ // so inserting or reordering would silently relabel every historical cancelled action.
610
+ 'Restored from Deletion',
609
611
  ] as const
610
612
 
611
613
  export const RELATIONSHIP_TYPES = [
@@ -0,0 +1,17 @@
1
+ {
2
+ // CommonJS build of this package (lib/cjs, consumed by the API, worker and tests at runtime).
3
+ // Own build-info file: the esm build writes lib/tsconfig.tsbuildinfo, and sharing it made the two
4
+ // builds invalidate each other. `references` are not inherited through `extends`, so they are
5
+ // restated here against the dependencies' cjs projects (build order). Built by
6
+ // `tsc -b packages/tsconfig.cjs.json` (./build_cjs.sh) or `npm run build:cjs` here.
7
+ "extends": "./tsconfig.json",
8
+ "compilerOptions": {
9
+ "module": "commonjs",
10
+ "outDir": "lib/cjs",
11
+ "tsBuildInfoFile": "lib/cjs/tsconfig.cjs.tsbuildinfo"
12
+ },
13
+ "references": [
14
+ { "path": "../types-utilities/tsconfig.cjs.json" },
15
+ { "path": "../types-models/tsconfig.cjs.json" }
16
+ ]
17
+ }