@medplum/mock 0.4.0 → 0.4.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.
@@ -1,14 +1,64 @@
1
- import { Bundle, SearchParameter, StructureDefinition } from '@medplum/fhirtypes';
1
+ import { Bundle, SearchParameter } from '@medplum/fhirtypes';
2
2
  export declare const EmptySearchBundle: Bundle;
3
- export declare const ObservationStructureDefinition: StructureDefinition;
4
- export declare const PatientStructureDefinition: StructureDefinition;
5
3
  export declare const PatientSearchParameters: SearchParameter[];
6
- export declare const PractitionerStructureDefinition: StructureDefinition;
7
- export declare const QuestionnaireStructureDefinition: StructureDefinition;
8
- export declare const ServiceRequestServiceDefinition: StructureDefinition;
9
4
  export declare const GraphQLSchemaResponse: {
10
5
  data: {
11
- StructureDefinitionList: StructureDefinition[];
6
+ StructureDefinitionList: {
7
+ resourceType: string;
8
+ id: string;
9
+ name: string;
10
+ description: string;
11
+ type: string;
12
+ snapshot: {
13
+ element: ({
14
+ id: string;
15
+ path: string;
16
+ definition: string;
17
+ min: number;
18
+ max: string;
19
+ type?: undefined;
20
+ binding?: undefined;
21
+ } | {
22
+ id: string;
23
+ path: string;
24
+ definition: string;
25
+ min: number;
26
+ max: string;
27
+ type: {
28
+ code: string;
29
+ }[];
30
+ binding?: undefined;
31
+ } | {
32
+ id: string;
33
+ path: string;
34
+ definition: string;
35
+ min: number;
36
+ max: string;
37
+ type: {
38
+ code: string;
39
+ targetProfile: string[];
40
+ }[];
41
+ binding?: undefined;
42
+ } | {
43
+ id: string;
44
+ path: string;
45
+ definition: string;
46
+ min: number;
47
+ max: string;
48
+ type: ({
49
+ code: string;
50
+ targetProfile?: undefined;
51
+ } | {
52
+ code: string;
53
+ targetProfile: string[];
54
+ })[];
55
+ binding: {
56
+ description: string;
57
+ valueSet: string;
58
+ };
59
+ })[];
60
+ };
61
+ }[];
12
62
  SearchParameterList: SearchParameter[];
13
63
  };
14
64
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/mock",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Medplum Mock Client",
5
5
  "author": "Medplum <hello@medplum.com>",
6
6
  "license": "Apache-2.0",
@@ -17,10 +17,10 @@
17
17
  "test": "jest"
18
18
  },
19
19
  "devDependencies": {
20
- "@medplum/core": "0.4.0"
20
+ "@medplum/core": "0.4.1"
21
21
  },
22
22
  "peerDependencies": {
23
- "@medplum/core": "0.4.0"
23
+ "@medplum/core": "0.4.1"
24
24
  },
25
25
  "main": "dist/cjs/index.js",
26
26
  "module": "dist/esm/index.js",
package/rollup.config.js DELETED
@@ -1,43 +0,0 @@
1
- import resolve from '@rollup/plugin-node-resolve';
2
- import typescript from '@rollup/plugin-typescript';
3
- import { terser } from 'rollup-plugin-terser';
4
-
5
- const extensions = ['.ts'];
6
-
7
- export default {
8
- input: 'src/index.ts',
9
- output: [
10
- {
11
- file: 'dist/esm/index.js',
12
- format: 'esm',
13
- sourcemap: true,
14
- },
15
- {
16
- file: 'dist/esm/index.min.js',
17
- format: 'esm',
18
- plugins: [terser()],
19
- sourcemap: true,
20
- },
21
- {
22
- file: 'dist/cjs/index.js',
23
- format: 'umd',
24
- name: 'medplum.mock',
25
- sourcemap: true,
26
- globals: {
27
- '@medplum/core': 'medplum.core',
28
- },
29
- },
30
- {
31
- file: 'dist/cjs/index.min.js',
32
- format: 'umd',
33
- name: 'medplum.mock',
34
- plugins: [terser()],
35
- sourcemap: true,
36
- globals: {
37
- '@medplum/core': 'medplum.core',
38
- },
39
- },
40
- ],
41
- plugins: [resolve({ extensions }), typescript()],
42
- external: ['@medplum/core'],
43
- };