@oystehr/sdk 4.0.0-alpha.4 → 4.0.0

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.
Files changed (162) hide show
  1. package/dist/cjs/client/client.cjs +259 -0
  2. package/dist/cjs/client/client.cjs.map +1 -0
  3. package/dist/cjs/errors/index.cjs +58 -0
  4. package/dist/cjs/errors/index.cjs.map +1 -0
  5. package/dist/cjs/index.cjs +11 -1980
  6. package/dist/cjs/index.cjs.map +1 -1
  7. package/dist/cjs/index.min.cjs +1 -1
  8. package/dist/cjs/index.min.cjs.map +1 -1
  9. package/dist/cjs/resources/classes/application.cjs +88 -0
  10. package/dist/cjs/resources/classes/application.cjs.map +1 -0
  11. package/dist/cjs/resources/classes/charge.cjs +44 -0
  12. package/dist/cjs/resources/classes/charge.cjs.map +1 -0
  13. package/dist/cjs/resources/classes/conversation-ext.cjs +31 -0
  14. package/dist/cjs/resources/classes/conversation-ext.cjs.map +1 -0
  15. package/dist/cjs/resources/classes/conversation.cjs +84 -0
  16. package/dist/cjs/resources/classes/conversation.cjs.map +1 -0
  17. package/dist/cjs/resources/classes/developer.cjs +72 -0
  18. package/dist/cjs/resources/classes/developer.cjs.map +1 -0
  19. package/dist/cjs/resources/classes/erx.cjs +88 -0
  20. package/dist/cjs/resources/classes/erx.cjs.map +1 -0
  21. package/dist/cjs/resources/classes/erx.d.ts +5 -1
  22. package/dist/cjs/resources/classes/erxV1.cjs +46 -0
  23. package/dist/cjs/resources/classes/erxV1.cjs.map +1 -0
  24. package/dist/cjs/resources/classes/erxV2.cjs +22 -0
  25. package/dist/cjs/resources/classes/erxV2.cjs.map +1 -0
  26. package/dist/cjs/resources/classes/fax.cjs +46 -0
  27. package/dist/cjs/resources/classes/fax.cjs.map +1 -0
  28. package/dist/cjs/resources/classes/fhir-ext.cjs +200 -0
  29. package/dist/cjs/resources/classes/fhir-ext.cjs.map +1 -0
  30. package/dist/cjs/resources/classes/fhir-ext.d.ts +8 -8
  31. package/dist/cjs/resources/classes/fhir.cjs +34 -0
  32. package/dist/cjs/resources/classes/fhir.cjs.map +1 -0
  33. package/dist/cjs/resources/classes/fhir.d.ts +2 -2
  34. package/dist/cjs/resources/classes/index.cjs +88 -0
  35. package/dist/cjs/resources/classes/index.cjs.map +1 -0
  36. package/dist/cjs/resources/classes/lab.cjs +76 -0
  37. package/dist/cjs/resources/classes/lab.cjs.map +1 -0
  38. package/dist/cjs/resources/classes/m2m.cjs +81 -0
  39. package/dist/cjs/resources/classes/m2m.cjs.map +1 -0
  40. package/dist/cjs/resources/classes/messaging.cjs +22 -0
  41. package/dist/cjs/resources/classes/messaging.cjs.map +1 -0
  42. package/dist/cjs/resources/classes/paymentMethod.cjs +88 -0
  43. package/dist/cjs/resources/classes/paymentMethod.cjs.map +1 -0
  44. package/dist/cjs/resources/classes/project.cjs +34 -0
  45. package/dist/cjs/resources/classes/project.cjs.map +1 -0
  46. package/dist/cjs/resources/classes/rcm.cjs +55 -0
  47. package/dist/cjs/resources/classes/rcm.cjs.map +1 -0
  48. package/dist/cjs/resources/classes/role.cjs +62 -0
  49. package/dist/cjs/resources/classes/role.cjs.map +1 -0
  50. package/dist/cjs/resources/classes/secret.cjs +52 -0
  51. package/dist/cjs/resources/classes/secret.cjs.map +1 -0
  52. package/dist/cjs/resources/classes/telemed.cjs +43 -0
  53. package/dist/cjs/resources/classes/telemed.cjs.map +1 -0
  54. package/dist/cjs/resources/classes/transactionalSMS.cjs +34 -0
  55. package/dist/cjs/resources/classes/transactionalSMS.cjs.map +1 -0
  56. package/dist/cjs/resources/classes/user.cjs +80 -0
  57. package/dist/cjs/resources/classes/user.cjs.map +1 -0
  58. package/dist/cjs/resources/classes/version.cjs +22 -0
  59. package/dist/cjs/resources/classes/version.cjs.map +1 -0
  60. package/dist/cjs/resources/classes/z3-ext.cjs +81 -0
  61. package/dist/cjs/resources/classes/z3-ext.cjs.map +1 -0
  62. package/dist/cjs/resources/classes/z3.cjs +88 -0
  63. package/dist/cjs/resources/classes/z3.cjs.map +1 -0
  64. package/dist/cjs/resources/classes/zambda-ext.cjs +15 -0
  65. package/dist/cjs/resources/classes/zambda-ext.cjs.map +1 -0
  66. package/dist/cjs/resources/classes/zambda.cjs +89 -0
  67. package/dist/cjs/resources/classes/zambda.cjs.map +1 -0
  68. package/dist/cjs/resources/classes/zambdaLogStream.cjs +43 -0
  69. package/dist/cjs/resources/classes/zambdaLogStream.cjs.map +1 -0
  70. package/dist/cjs/resources/types/ErxGetConfigurationResponse.d.ts +9 -0
  71. package/dist/cjs/resources/types/ZambdaCreateParams.d.ts +12 -0
  72. package/dist/cjs/resources/types/ZambdaFunction.d.ts +8 -0
  73. package/dist/cjs/resources/types/ZambdaUpdateParams.d.ts +8 -0
  74. package/dist/cjs/resources/types/fhir.d.ts +12 -12
  75. package/dist/cjs/resources/types/index.d.ts +1 -0
  76. package/dist/esm/client/client.js +68 -67
  77. package/dist/esm/client/client.js.map +1 -1
  78. package/dist/esm/errors/index.js +3 -2
  79. package/dist/esm/errors/index.js.map +1 -1
  80. package/dist/esm/index.js +2 -2
  81. package/dist/esm/index.js.map +1 -1
  82. package/dist/esm/index.min.js +1 -1
  83. package/dist/esm/index.min.js.map +1 -1
  84. package/dist/esm/resources/classes/application.js +11 -15
  85. package/dist/esm/resources/classes/application.js.map +1 -1
  86. package/dist/esm/resources/classes/charge.js +5 -9
  87. package/dist/esm/resources/classes/charge.js.map +1 -1
  88. package/dist/esm/resources/classes/conversation-ext.js +4 -5
  89. package/dist/esm/resources/classes/conversation-ext.js.map +1 -1
  90. package/dist/esm/resources/classes/conversation.js +16 -20
  91. package/dist/esm/resources/classes/conversation.js.map +1 -1
  92. package/dist/esm/resources/classes/developer.js +9 -13
  93. package/dist/esm/resources/classes/developer.js.map +1 -1
  94. package/dist/esm/resources/classes/erx.d.ts +5 -1
  95. package/dist/esm/resources/classes/erx.js +20 -18
  96. package/dist/esm/resources/classes/erx.js.map +1 -1
  97. package/dist/esm/resources/classes/erxV1.js +8 -12
  98. package/dist/esm/resources/classes/erxV1.js.map +1 -1
  99. package/dist/esm/resources/classes/erxV2.js +4 -8
  100. package/dist/esm/resources/classes/erxV2.js.map +1 -1
  101. package/dist/esm/resources/classes/fax.js +6 -10
  102. package/dist/esm/resources/classes/fax.js.map +1 -1
  103. package/dist/esm/resources/classes/fhir-ext.d.ts +8 -8
  104. package/dist/esm/resources/classes/fhir-ext.js +71 -62
  105. package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
  106. package/dist/esm/resources/classes/fhir.d.ts +2 -2
  107. package/dist/esm/resources/classes/fhir.js +20 -20
  108. package/dist/esm/resources/classes/fhir.js.map +1 -1
  109. package/dist/esm/resources/classes/index.js +28 -5
  110. package/dist/esm/resources/classes/index.js.map +1 -1
  111. package/dist/esm/resources/classes/lab.js +9 -13
  112. package/dist/esm/resources/classes/lab.js.map +1 -1
  113. package/dist/esm/resources/classes/m2m.js +10 -14
  114. package/dist/esm/resources/classes/m2m.js.map +1 -1
  115. package/dist/esm/resources/classes/messaging.js +4 -8
  116. package/dist/esm/resources/classes/messaging.js.map +1 -1
  117. package/dist/esm/resources/classes/paymentMethod.js +7 -11
  118. package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
  119. package/dist/esm/resources/classes/project.js +5 -9
  120. package/dist/esm/resources/classes/project.js.map +1 -1
  121. package/dist/esm/resources/classes/rcm.js +6 -10
  122. package/dist/esm/resources/classes/rcm.js.map +1 -1
  123. package/dist/esm/resources/classes/role.js +8 -12
  124. package/dist/esm/resources/classes/role.js.map +1 -1
  125. package/dist/esm/resources/classes/secret.js +7 -11
  126. package/dist/esm/resources/classes/secret.js.map +1 -1
  127. package/dist/esm/resources/classes/telemed.js +5 -9
  128. package/dist/esm/resources/classes/telemed.js.map +1 -1
  129. package/dist/esm/resources/classes/transactionalSMS.js +4 -8
  130. package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
  131. package/dist/esm/resources/classes/user.js +10 -14
  132. package/dist/esm/resources/classes/user.js.map +1 -1
  133. package/dist/esm/resources/classes/version.js +4 -8
  134. package/dist/esm/resources/classes/version.js.map +1 -1
  135. package/dist/esm/resources/classes/z3-ext.js +47 -56
  136. package/dist/esm/resources/classes/z3-ext.js.map +1 -1
  137. package/dist/esm/resources/classes/z3.js +26 -30
  138. package/dist/esm/resources/classes/z3.js.map +1 -1
  139. package/dist/esm/resources/classes/zambda-ext.js +6 -11
  140. package/dist/esm/resources/classes/zambda-ext.js.map +1 -1
  141. package/dist/esm/resources/classes/zambda.js +12 -16
  142. package/dist/esm/resources/classes/zambda.js.map +1 -1
  143. package/dist/esm/resources/classes/zambdaLogStream.js +6 -10
  144. package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
  145. package/dist/esm/resources/types/ErxGetConfigurationResponse.d.ts +9 -0
  146. package/dist/esm/resources/types/ZambdaCreateParams.d.ts +12 -0
  147. package/dist/esm/resources/types/ZambdaFunction.d.ts +8 -0
  148. package/dist/esm/resources/types/ZambdaUpdateParams.d.ts +8 -0
  149. package/dist/esm/resources/types/fhir.d.ts +12 -12
  150. package/dist/esm/resources/types/index.d.ts +1 -0
  151. package/package.json +4 -3
  152. package/rollup.config-cjs.mjs +97 -18
  153. package/src/resources/classes/erx.ts +7 -0
  154. package/src/resources/classes/fhir-ext.ts +6 -6
  155. package/src/resources/types/ErxGetConfigurationResponse.ts +11 -0
  156. package/src/resources/types/ZambdaCreateParams.ts +12 -0
  157. package/src/resources/types/ZambdaFunction.ts +8 -0
  158. package/src/resources/types/ZambdaUpdateParams.ts +8 -0
  159. package/src/resources/types/fhir.ts +12 -12
  160. package/src/resources/types/index.ts +1 -0
  161. package/dist/esm/node_modules/tslib/tslib.es6.js +0 -40
  162. package/dist/esm/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -13,5 +13,13 @@ export interface ZambdaUpdateParams {
13
13
  * The runtime to use for the Zambda Function. This property is optional and defaults to "nodejs20.x".
14
14
  */
15
15
  runtime?: 'nodejs18.x' | 'nodejs20.x' | 'nodejs22.x' | 'python3.13' | 'python3.12' | 'java21' | 'dotnet9' | 'ruby3.3';
16
+ /**
17
+ * The amount of memory in MB to allocate to the Zambda Function. If not specified, a system default (1024MB) will be used. Min: 128MB, Max: 10240MB.
18
+ */
19
+ memorySize?: number;
20
+ /**
21
+ * The timeout for the Zambda Function in seconds. If not specified, a system default (27 seconds) will be used. Min: 1s, Max: 900s (15 minutes). Note: For 'http_auth' and 'http_open' trigger methods, the timeout cannot exceed 27 seconds due to API Gateway limitations.
22
+ */
23
+ timeoutInSeconds?: number;
16
24
  id: string;
17
25
  }
@@ -17,31 +17,31 @@ export type SearchParam = {
17
17
  name: string;
18
18
  value: string | number;
19
19
  };
20
- export interface FhirSearchParams {
21
- resourceType: string;
20
+ export interface FhirSearchParams<T extends FhirResource> {
21
+ resourceType: T['resourceType'];
22
22
  params?: SearchParam[];
23
23
  }
24
- export interface FhirGetParams {
25
- resourceType: string;
24
+ export interface FhirGetParams<T extends FhirResource> {
25
+ resourceType: T['resourceType'];
26
26
  id: string;
27
27
  }
28
28
  export type FhirCreateParams<T extends FhirResource> = T;
29
29
  export type FhirUpdateParams<T extends FhirResource> = T;
30
- export interface FhirPatchParams {
31
- resourceType: string;
30
+ export interface FhirPatchParams<T extends FhirResource> {
31
+ resourceType: T['resourceType'];
32
32
  id: string;
33
33
  operations: Operation[];
34
34
  }
35
- export interface FhirDeleteParams {
36
- resourceType: string;
35
+ export interface FhirDeleteParams<T extends FhirResource> {
36
+ resourceType: T['resourceType'];
37
37
  id: string;
38
38
  }
39
- export interface FhirHistorySearchParams {
40
- resourceType: string;
39
+ export interface FhirHistorySearchParams<T extends FhirResource> {
40
+ resourceType: T['resourceType'];
41
41
  id: string;
42
42
  }
43
- export interface FhirHistoryGetParams {
44
- resourceType: string;
43
+ export interface FhirHistoryGetParams<T extends FhirResource> {
44
+ resourceType: T['resourceType'];
45
45
  id: string;
46
46
  versionId: string;
47
47
  }
@@ -176,6 +176,7 @@ export * from './ErxSearchAllergensParams';
176
176
  export * from './ErxSearchAllergensResponse';
177
177
  export * from './ErxSearchMedicationsParams';
178
178
  export * from './ErxSearchMedicationsResponse';
179
+ export * from './ErxGetConfigurationResponse';
179
180
  export * from './ErxCheckAllergyInteractionsParams';
180
181
  export * from './ErxCheckAllergyInteractionsResponse';
181
182
  export * from './ErxCheckMedicationInteractionsParams';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oystehr/sdk",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0",
4
4
  "description": "Oystehr SDK",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -11,10 +11,10 @@
11
11
  "rollup-cjs": "node --max-old-space-size=8192 ../../node_modules/rollup/dist/bin/rollup --config rollup.config-cjs.mjs",
12
12
  "rollup-mjs": "node --max-old-space-size=8192 ../../node_modules/rollup/dist/bin/rollup --config rollup.config-mjs.mjs",
13
13
  "test": "NODE_OPTIONS=--experimental-vm-modules jest --runInBand",
14
- "parser": "ts-node debug-parser.ts",
14
+ "parser": "tsx debug-parser.ts",
15
15
  "publish-to-npmjs": "npm run build && npm publish",
16
16
  "publish-to-npmjs-next": "npm run build && npm publish --tag next",
17
- "generate": "ts-node scripts/generate-sdk-v3 project,fax,lab,erx src/resources"
17
+ "generate": "ts-node --project scripts/tsconfig.json scripts/generate-sdk-v3 project,fax,lab,erx src/resources"
18
18
  },
19
19
  "engines": {
20
20
  "npm": ">=8.0.0",
@@ -38,6 +38,7 @@
38
38
  "@types/fhir": "0.0.41",
39
39
  "@types/node": "20.17.6",
40
40
  "fast-json-patch": "3.1.1",
41
+ "tslib": "2.8.1",
41
42
  "uuid": "11.0.2"
42
43
  },
43
44
  "keywords": [
@@ -1,49 +1,128 @@
1
+ import commonjs from '@rollup/plugin-commonjs';
1
2
  import json from '@rollup/plugin-json';
2
3
  import resolve from '@rollup/plugin-node-resolve';
4
+ import terser from '@rollup/plugin-terser';
3
5
  import typescript from '@rollup/plugin-typescript';
4
6
  import { mkdirSync, writeFileSync } from 'fs';
5
- import terser from '@rollup/plugin-terser';
6
- import commonjs from '@rollup/plugin-commonjs';
7
7
  import externals from 'rollup-plugin-node-externals';
8
8
 
9
9
  const extensions = ['.ts', '.json'];
10
10
 
11
+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
11
12
  const sourcemapPathTransform = (path) => path.replaceAll('\\', '/').replaceAll('../../../src', '../../src');
12
13
 
13
14
  export default [
14
15
  {
15
- // special entrypoint for commonjs default export syntax
16
- input: 'src/index.cts',
16
+ // Use the regular index.ts and transform to CommonJS
17
+ input: 'src/index.ts',
17
18
  output: [
18
19
  {
19
- file: 'dist/cjs/index.cjs',
20
- format: 'cjs',
21
- name: 'osytehr.sdk',
22
- sourcemap: true,
23
- sourcemapPathTransform,
24
- },
25
- {
26
- file: 'dist/cjs/index.min.cjs',
20
+ dir: 'dist/cjs',
27
21
  format: 'cjs',
28
- name: 'osytehr.sdk',
29
- plugins: [terser()],
22
+ preserveModules: true,
23
+ preserveModulesRoot: 'src',
30
24
  sourcemap: true,
31
25
  sourcemapPathTransform,
26
+ exports: 'named',
27
+ interop: 'auto',
28
+ entryFileNames: '[name].cjs',
32
29
  },
33
30
  ],
34
31
  plugins: [
35
32
  json(),
36
- externals(),
37
- typescript({ tsconfig: 'tsconfig.cjs.json', resolveJsonModule: true }),
38
- commonjs(),
39
- resolve({ extensions }),
33
+ externals({
34
+ // Don't externalize tslib so helpers are bundled
35
+ exclude: ['tslib'],
36
+ }),
37
+ resolve({
38
+ extensions,
39
+ preferBuiltins: false,
40
+ }),
41
+ typescript({
42
+ tsconfig: 'tsconfig.cjs.json',
43
+ resolveJsonModule: true,
44
+ outputToFilesystem: false,
45
+ // Ensure TypeScript emits helpers from tslib
46
+ importHelpers: true,
47
+ // Override module settings for CommonJS
48
+ compilerOptions: {
49
+ module: 'ESNext',
50
+ target: 'ES2022',
51
+ },
52
+ }),
53
+ commonjs({
54
+ transformMixedEsModules: true,
55
+ }),
40
56
  {
41
57
  buildEnd: () => {
42
58
  mkdirSync('./dist/cjs', { recursive: true });
43
59
  writeFileSync('./dist/cjs/package.json', '{"type": "commonjs"}');
60
+ // Also create the index.d.cts file for TypeScript consumers
61
+ writeFileSync('./dist/cjs/index.d.cts', 'export * from "./index";\nexport { default } from "./index";\n');
44
62
  },
45
63
  },
46
64
  ],
47
65
  strictDeprecations: true,
48
66
  },
67
+ // Separate configuration for minified bundle
68
+ // as terser is not working with ES2022 (not updated for 2 years...)
69
+ {
70
+ input: 'src/index.ts',
71
+ output: {
72
+ file: 'dist/cjs/index.min.cjs',
73
+ format: 'cjs',
74
+ name: 'osytehr.sdk',
75
+ sourcemap: true,
76
+ sourcemapPathTransform,
77
+ exports: 'named',
78
+ interop: 'auto',
79
+ },
80
+ plugins: [
81
+ json(),
82
+ resolve({
83
+ extensions,
84
+ preferBuiltins: false,
85
+ browser: true,
86
+ }),
87
+ typescript({
88
+ tsconfig: 'tsconfig.cjs.json',
89
+ resolveJsonModule: true,
90
+ outputToFilesystem: false,
91
+ importHelpers: true,
92
+ compilerOptions: {
93
+ module: 'ESNext',
94
+ target: 'ES2015',
95
+ },
96
+ }),
97
+ commonjs({
98
+ transformMixedEsModules: true,
99
+ }),
100
+ // Bundle tslib helpers inline for browser use
101
+ resolve({
102
+ preferBuiltins: false,
103
+ browser: true,
104
+ }),
105
+ // Only externalize non-browser dependencies
106
+ externals({
107
+ exclude: ['tslib', 'uuid', 'fast-json-patch'],
108
+ packagePath: './package.json',
109
+ }),
110
+ terser({
111
+ ecma: 2015,
112
+ module: false,
113
+ compress: {
114
+ ecma: 2015,
115
+ passes: 2,
116
+ },
117
+ mangle: {
118
+ safari10: true,
119
+ },
120
+ format: {
121
+ ecma: 2015,
122
+ safari10: true,
123
+ },
124
+ }),
125
+ ],
126
+ strictDeprecations: true,
127
+ },
49
128
  ];
@@ -13,6 +13,7 @@ import {
13
13
  ErxConnectPractitionerParams,
14
14
  ErxConnectPractitionerResponse,
15
15
  ErxEnrollPractitionerParams,
16
+ ErxGetConfigurationResponse,
16
17
  ErxSearchAllergensParams,
17
18
  ErxSearchAllergensResponse,
18
19
  ErxSearchMedicationsParams,
@@ -49,6 +50,12 @@ export class Erx extends SDKResource {
49
50
  ): Promise<ErxSearchMedicationsResponse> {
50
51
  return this.request('/medication', 'get', this.#baseUrlThunk.bind(this))(params, request);
51
52
  }
53
+ /**
54
+ * Get eRx configuration for project.
55
+ */
56
+ getConfiguration(request?: OystehrClientRequest): Promise<ErxGetConfigurationResponse> {
57
+ return this.request('/config', 'get', this.#baseUrlThunk.bind(this))(request);
58
+ }
52
59
  /**
53
60
  * Checks for drug-allergy interactions for a patient. This endpoint requires the patient's allergies to be synced with the upstream eRx provider.
54
61
  */
@@ -43,7 +43,7 @@ export interface OystehrFHIRUpdateClientRequest extends OystehrClientRequest {
43
43
  */
44
44
  export async function search<T extends FhirResource>(
45
45
  this: SDKResource,
46
- params: FhirSearchParams,
46
+ params: FhirSearchParams<T>,
47
47
  request?: OystehrClientRequest
48
48
  ): Promise<FhirFetcherResponse<Bundle<T>>> {
49
49
  const { resourceType, params: searchParams } = params;
@@ -82,7 +82,7 @@ export async function create<T extends FhirResource>(
82
82
 
83
83
  export async function get<T extends FhirResource>(
84
84
  this: SDKResource,
85
- { resourceType, id }: FhirGetParams,
85
+ { resourceType, id }: FhirGetParams<T>,
86
86
  request?: OystehrClientRequest
87
87
  ): Promise<FhirFetcherResponse<T>> {
88
88
  return this.fhirRequest<T>(`/${resourceType}/${id}`, 'GET')({}, request);
@@ -102,7 +102,7 @@ export async function update<T extends FhirResource>(
102
102
 
103
103
  export async function patch<T extends FhirResource>(
104
104
  this: SDKResource,
105
- { resourceType, id, operations }: FhirPatchParams,
105
+ { resourceType, id, operations }: FhirPatchParams<T>,
106
106
  request?: OystehrFHIRUpdateClientRequest
107
107
  ): Promise<FhirFetcherResponse<T>> {
108
108
  return this.fhirRequest(`/${resourceType}/${id}`, 'PATCH')(operations, {
@@ -114,7 +114,7 @@ export async function patch<T extends FhirResource>(
114
114
 
115
115
  async function del<T extends FhirResource>(
116
116
  this: SDKResource,
117
- { resourceType, id }: FhirDeleteParams,
117
+ { resourceType, id }: FhirDeleteParams<T>,
118
118
  request?: OystehrClientRequest
119
119
  ): Promise<FhirFetcherResponse<T>> {
120
120
  return this.fhirRequest(`/${resourceType}/${id}`, 'DELETE')({}, request);
@@ -123,12 +123,12 @@ export { del as delete };
123
123
 
124
124
  export async function history<T extends FhirResource>(
125
125
  this: SDKResource,
126
- { resourceType, id }: FhirHistorySearchParams,
126
+ { resourceType, id }: FhirHistorySearchParams<T>,
127
127
  request?: OystehrClientRequest
128
128
  ): Promise<FhirFetcherResponse<Bundle<T>>>;
129
129
  export async function history<T extends FhirResource>(
130
130
  this: SDKResource,
131
- { resourceType, id, versionId }: FhirHistoryGetParams,
131
+ { resourceType, id, versionId }: FhirHistoryGetParams<T>,
132
132
  request?: OystehrClientRequest
133
133
  ): Promise<FhirFetcherResponse<T>>;
134
134
  export async function history<T extends FhirResource>(
@@ -0,0 +1,11 @@
1
+ // AUTOGENERATED -- DO NOT EDIT
2
+
3
+ /**
4
+ * Configuration
5
+ */
6
+ export interface ErxGetConfigurationResponse {
7
+ /**
8
+ * True if the project is configured for eRx.
9
+ */
10
+ configured?: boolean;
11
+ }
@@ -12,4 +12,16 @@ export interface ZambdaCreateParams {
12
12
  */
13
13
  triggerMethod?: 'http_auth' | 'http_open' | 'subscription' | 'cron';
14
14
  schedule?: ZambdaSchedule;
15
+ /**
16
+ * The runtime to use for the Zambda Function. This property is optional and defaults to "nodejs20.x".
17
+ */
18
+ runtime?: 'nodejs18.x' | 'nodejs20.x' | 'nodejs22.x' | 'python3.13' | 'python3.12' | 'java21' | 'dotnet9' | 'ruby3.3';
19
+ /**
20
+ * The amount of memory in MB to allocate to the Zambda Function. If not specified, a system default (1024MB) will be used. Min: 128MB, Max: 10240MB.
21
+ */
22
+ memorySize?: number;
23
+ /**
24
+ * The timeout for the Zambda Function in seconds. If not specified, a system default (27 seconds) will be used. Min: 1s, Max: 900s (15 minutes). Note: For 'http_auth' and 'http_open' trigger methods, the timeout cannot exceed 27 seconds due to API Gateway limitations.
25
+ */
26
+ timeoutInSeconds?: number;
15
27
  }
@@ -38,4 +38,12 @@ export interface ZambdaFunction {
38
38
  */
39
39
  lastModified?: string;
40
40
  };
41
+ /**
42
+ * The amount of memory in MB to allocate to the Zambda Function. If not specified, a system default (1024MB) will be used. Min: 128MB, Max: 10240MB.
43
+ */
44
+ memorySize?: number;
45
+ /**
46
+ * The timeout for the Zambda Function in seconds. If not specified, a system default (27 seconds) will be used. Min: 1s, Max: 900s (15 minutes). Note: For 'http_auth' and 'http_open' trigger methods, the timeout cannot exceed 27 seconds due to API Gateway limitations.
47
+ */
48
+ timeoutInSeconds?: number;
41
49
  }
@@ -16,5 +16,13 @@ export interface ZambdaUpdateParams {
16
16
  * The runtime to use for the Zambda Function. This property is optional and defaults to "nodejs20.x".
17
17
  */
18
18
  runtime?: 'nodejs18.x' | 'nodejs20.x' | 'nodejs22.x' | 'python3.13' | 'python3.12' | 'java21' | 'dotnet9' | 'ruby3.3';
19
+ /**
20
+ * The amount of memory in MB to allocate to the Zambda Function. If not specified, a system default (1024MB) will be used. Min: 128MB, Max: 10240MB.
21
+ */
22
+ memorySize?: number;
23
+ /**
24
+ * The timeout for the Zambda Function in seconds. If not specified, a system default (27 seconds) will be used. Min: 1s, Max: 900s (15 minutes). Note: For 'http_auth' and 'http_open' trigger methods, the timeout cannot exceed 27 seconds due to API Gateway limitations.
25
+ */
26
+ timeoutInSeconds?: number;
19
27
  id: string;
20
28
  }
@@ -40,13 +40,13 @@ export type OperationOutcome = OperationOutcomeR4B | OperationOutcomeR5;
40
40
 
41
41
  export type SearchParam = { name: string; value: string | number };
42
42
 
43
- export interface FhirSearchParams {
44
- resourceType: string;
43
+ export interface FhirSearchParams<T extends FhirResource> {
44
+ resourceType: T['resourceType'];
45
45
  params?: SearchParam[];
46
46
  }
47
47
 
48
- export interface FhirGetParams {
49
- resourceType: string;
48
+ export interface FhirGetParams<T extends FhirResource> {
49
+ resourceType: T['resourceType'];
50
50
  id: string;
51
51
  }
52
52
 
@@ -54,24 +54,24 @@ export type FhirCreateParams<T extends FhirResource> = T;
54
54
 
55
55
  export type FhirUpdateParams<T extends FhirResource> = T;
56
56
 
57
- export interface FhirPatchParams {
58
- resourceType: string;
57
+ export interface FhirPatchParams<T extends FhirResource> {
58
+ resourceType: T['resourceType'];
59
59
  id: string;
60
60
  operations: Operation[];
61
61
  }
62
62
 
63
- export interface FhirDeleteParams {
64
- resourceType: string;
63
+ export interface FhirDeleteParams<T extends FhirResource> {
64
+ resourceType: T['resourceType'];
65
65
  id: string;
66
66
  }
67
67
 
68
- export interface FhirHistorySearchParams {
69
- resourceType: string;
68
+ export interface FhirHistorySearchParams<T extends FhirResource> {
69
+ resourceType: T['resourceType'];
70
70
  id: string;
71
71
  }
72
72
 
73
- export interface FhirHistoryGetParams {
74
- resourceType: string;
73
+ export interface FhirHistoryGetParams<T extends FhirResource> {
74
+ resourceType: T['resourceType'];
75
75
  id: string;
76
76
  versionId: string;
77
77
  }
@@ -178,6 +178,7 @@ export * from './ErxSearchAllergensParams';
178
178
  export * from './ErxSearchAllergensResponse';
179
179
  export * from './ErxSearchMedicationsParams';
180
180
  export * from './ErxSearchMedicationsResponse';
181
+ export * from './ErxGetConfigurationResponse';
181
182
  export * from './ErxCheckAllergyInteractionsParams';
182
183
  export * from './ErxCheckAllergyInteractionsResponse';
183
184
  export * from './ErxCheckMedicationInteractionsParams';
@@ -1,40 +0,0 @@
1
- /******************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
15
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
16
-
17
-
18
- function __awaiter(thisArg, _arguments, P, generator) {
19
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20
- return new (P || (P = Promise))(function (resolve, reject) {
21
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
22
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
23
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
24
- step((generator = generator.apply(thisArg, _arguments || [])).next());
25
- });
26
- }
27
-
28
- function __classPrivateFieldGet(receiver, state, kind, f) {
29
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
30
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
31
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
32
- }
33
-
34
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
35
- var e = new Error(message);
36
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
37
- };
38
-
39
- export { __awaiter, __classPrivateFieldGet };
40
- //# sourceMappingURL=tslib.es6.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tslib.es6.js","sources":["../../../../../../node_modules/tslib/tslib.es6.js"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAkGA;AACO,SAAS,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AAC7D,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACnG,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACtG,QAAQ,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE;AACtH,QAAQ,IAAI,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9E,KAAK,CAAC,CAAC;AACP,CAAC;AA0JD;AACO,SAAS,sBAAsB,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAE;AACjE,IAAI,IAAI,IAAI,KAAK,GAAG,IAAI,CAAC,CAAC,EAAE,MAAM,IAAI,SAAS,CAAC,+CAA+C,CAAC,CAAC;AACjG,IAAI,IAAI,OAAO,KAAK,KAAK,UAAU,GAAG,QAAQ,KAAK,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,SAAS,CAAC,0EAA0E,CAAC,CAAC;AACvL,IAAI,OAAO,IAAI,KAAK,GAAG,GAAG,CAAC,GAAG,IAAI,KAAK,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAClG,CAAC;AAqCD;AACuB,OAAO,eAAe,KAAK,UAAU,GAAG,eAAe,GAAG,UAAU,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;AACvH,IAAI,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AAC/B,IAAI,OAAO,CAAC,CAAC,IAAI,GAAG,iBAAiB,EAAE,CAAC,CAAC,KAAK,GAAG,KAAK,EAAE,CAAC,CAAC,UAAU,GAAG,UAAU,EAAE,CAAC,CAAC;AACrF;;;;","x_google_ignoreList":[0]}