@medplum/mock 2.0.3 → 2.0.4

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,81 +0,0 @@
1
- export declare const GraphQLSchemaResponse: {
2
- data: {
3
- StructureDefinitionList: ({
4
- resourceType: string;
5
- id: string;
6
- name: string;
7
- type: string;
8
- snapshot: {
9
- element: ({
10
- id: string;
11
- path: string;
12
- min: number;
13
- max: string;
14
- base: {
15
- path: string;
16
- min: number;
17
- max: string;
18
- };
19
- type?: undefined;
20
- } | {
21
- id: string;
22
- path: string;
23
- min: number;
24
- max: string;
25
- base: {
26
- path: string;
27
- min: number;
28
- max: string;
29
- };
30
- type: ({
31
- code: string;
32
- targetProfile?: undefined;
33
- } | {
34
- code: string;
35
- targetProfile: string[];
36
- })[];
37
- })[];
38
- };
39
- } | {
40
- resourceType: string;
41
- id: string;
42
- name: string;
43
- type: string;
44
- snapshot: {
45
- element: ({
46
- id: string;
47
- path: string;
48
- min: number;
49
- max: string;
50
- type?: undefined;
51
- } | {
52
- id: string;
53
- path: string;
54
- min: number;
55
- max: string;
56
- type: {
57
- code: string;
58
- }[];
59
- } | {
60
- id: string;
61
- path: string;
62
- min: number;
63
- max: string;
64
- type: {
65
- code: string;
66
- targetProfile: string[];
67
- }[];
68
- })[];
69
- };
70
- })[];
71
- SearchParameterList: {
72
- resourceType: string;
73
- id: string;
74
- name: string;
75
- code: string;
76
- base: string[];
77
- type: string;
78
- expression: string;
79
- }[];
80
- };
81
- };
@@ -1,16 +0,0 @@
1
- import { SearchRequest } from '@medplum/core';
2
- import { Bundle, Resource } from '@medplum/fhirtypes';
3
- import { Operation } from 'rfc6902';
4
- export declare class MemoryRepository {
5
- #private;
6
- constructor();
7
- createResource<T extends Resource>(resource: T): T;
8
- updateResource<T extends Resource>(resource: T): T;
9
- patchResource(resourceType: string, id: string, patch: Operation[]): Promise<Resource>;
10
- readResource<T extends Resource>(resourceType: string, id: string): T;
11
- readHistory<T extends Resource>(resourceType: string, id: string): Bundle<T>;
12
- readVersion<T extends Resource>(resourceType: string, id: string, versionId: string): T;
13
- search<T extends Resource>(searchRequest: SearchRequest): Bundle<T>;
14
- deleteResource(resourceType: string, id: string): void;
15
- private generateId;
16
- }
@@ -1,81 +0,0 @@
1
- export declare const GraphQLSchemaResponse: {
2
- data: {
3
- StructureDefinitionList: ({
4
- resourceType: string;
5
- id: string;
6
- name: string;
7
- type: string;
8
- snapshot: {
9
- element: ({
10
- id: string;
11
- path: string;
12
- min: number;
13
- max: string;
14
- base: {
15
- path: string;
16
- min: number;
17
- max: string;
18
- };
19
- type?: undefined;
20
- } | {
21
- id: string;
22
- path: string;
23
- min: number;
24
- max: string;
25
- base: {
26
- path: string;
27
- min: number;
28
- max: string;
29
- };
30
- type: ({
31
- code: string;
32
- targetProfile?: undefined;
33
- } | {
34
- code: string;
35
- targetProfile: string[];
36
- })[];
37
- })[];
38
- };
39
- } | {
40
- resourceType: string;
41
- id: string;
42
- name: string;
43
- type: string;
44
- snapshot: {
45
- element: ({
46
- id: string;
47
- path: string;
48
- min: number;
49
- max: string;
50
- type?: undefined;
51
- } | {
52
- id: string;
53
- path: string;
54
- min: number;
55
- max: string;
56
- type: {
57
- code: string;
58
- }[];
59
- } | {
60
- id: string;
61
- path: string;
62
- min: number;
63
- max: string;
64
- type: {
65
- code: string;
66
- targetProfile: string[];
67
- }[];
68
- })[];
69
- };
70
- })[];
71
- SearchParameterList: {
72
- resourceType: string;
73
- id: string;
74
- name: string;
75
- code: string;
76
- base: string[];
77
- type: string;
78
- expression: string;
79
- }[];
80
- };
81
- };
@@ -1,16 +0,0 @@
1
- import { SearchRequest } from '@medplum/core';
2
- import { Bundle, Resource } from '@medplum/fhirtypes';
3
- import { Operation } from 'rfc6902';
4
- export declare class MemoryRepository {
5
- #private;
6
- constructor();
7
- createResource<T extends Resource>(resource: T): T;
8
- updateResource<T extends Resource>(resource: T): T;
9
- patchResource(resourceType: string, id: string, patch: Operation[]): Promise<Resource>;
10
- readResource<T extends Resource>(resourceType: string, id: string): T;
11
- readHistory<T extends Resource>(resourceType: string, id: string): Bundle<T>;
12
- readVersion<T extends Resource>(resourceType: string, id: string, versionId: string): T;
13
- search<T extends Resource>(searchRequest: SearchRequest): Bundle<T>;
14
- deleteResource(resourceType: string, id: string): void;
15
- private generateId;
16
- }
@@ -1,81 +0,0 @@
1
- export declare const GraphQLSchemaResponse: {
2
- data: {
3
- StructureDefinitionList: ({
4
- resourceType: string;
5
- id: string;
6
- name: string;
7
- type: string;
8
- snapshot: {
9
- element: ({
10
- id: string;
11
- path: string;
12
- min: number;
13
- max: string;
14
- base: {
15
- path: string;
16
- min: number;
17
- max: string;
18
- };
19
- type?: undefined;
20
- } | {
21
- id: string;
22
- path: string;
23
- min: number;
24
- max: string;
25
- base: {
26
- path: string;
27
- min: number;
28
- max: string;
29
- };
30
- type: ({
31
- code: string;
32
- targetProfile?: undefined;
33
- } | {
34
- code: string;
35
- targetProfile: string[];
36
- })[];
37
- })[];
38
- };
39
- } | {
40
- resourceType: string;
41
- id: string;
42
- name: string;
43
- type: string;
44
- snapshot: {
45
- element: ({
46
- id: string;
47
- path: string;
48
- min: number;
49
- max: string;
50
- type?: undefined;
51
- } | {
52
- id: string;
53
- path: string;
54
- min: number;
55
- max: string;
56
- type: {
57
- code: string;
58
- }[];
59
- } | {
60
- id: string;
61
- path: string;
62
- min: number;
63
- max: string;
64
- type: {
65
- code: string;
66
- targetProfile: string[];
67
- }[];
68
- })[];
69
- };
70
- })[];
71
- SearchParameterList: {
72
- resourceType: string;
73
- id: string;
74
- name: string;
75
- code: string;
76
- base: string[];
77
- type: string;
78
- expression: string;
79
- }[];
80
- };
81
- };
@@ -1,16 +0,0 @@
1
- import { SearchRequest } from '@medplum/core';
2
- import { Bundle, Resource } from '@medplum/fhirtypes';
3
- import { Operation } from 'rfc6902';
4
- export declare class MemoryRepository {
5
- #private;
6
- constructor();
7
- createResource<T extends Resource>(resource: T): T;
8
- updateResource<T extends Resource>(resource: T): T;
9
- patchResource(resourceType: string, id: string, patch: Operation[]): Promise<Resource>;
10
- readResource<T extends Resource>(resourceType: string, id: string): T;
11
- readHistory<T extends Resource>(resourceType: string, id: string): Bundle<T>;
12
- readVersion<T extends Resource>(resourceType: string, id: string, versionId: string): T;
13
- search<T extends Resource>(searchRequest: SearchRequest): Bundle<T>;
14
- deleteResource(resourceType: string, id: string): void;
15
- private generateId;
16
- }