@oystehr/sdk 3.0.0 → 3.0.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.
Files changed (54) hide show
  1. package/dist/cjs/client/client.d.ts +2 -2
  2. package/dist/cjs/index.cjs +5 -3
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/cjs/index.min.cjs +1 -1
  5. package/dist/cjs/index.min.cjs.map +1 -1
  6. package/dist/cjs/resources/classes/fhir-ext.d.ts +9 -33
  7. package/dist/cjs/resources/classes/index.d.ts +1 -0
  8. package/dist/cjs/resources/types/AccessPolicy.d.ts +1 -1
  9. package/dist/cjs/resources/types/ClaimCMS1500.d.ts +5 -5
  10. package/dist/cjs/resources/types/ConversationAddParticipantParams.d.ts +1 -1
  11. package/dist/cjs/resources/types/ErxMedicationSearchResponse.d.ts +3 -3
  12. package/dist/cjs/resources/types/Project.d.ts +1 -1
  13. package/dist/cjs/resources/types/VersionGetResponse.d.ts +2 -2
  14. package/dist/cjs/resources/types/Z3GetPresignedUrlParams.d.ts +1 -1
  15. package/dist/cjs/resources/types/ZambdaCreateParams.d.ts +1 -1
  16. package/dist/cjs/resources/types/ZambdaFunction.d.ts +2 -2
  17. package/dist/cjs/resources/types/ZambdaUpdateParams.d.ts +2 -2
  18. package/dist/cjs/resources/types/fhir.d.ts +34 -1
  19. package/dist/esm/client/client.d.ts +2 -2
  20. package/dist/esm/client/client.js.map +1 -1
  21. package/dist/esm/index.min.js +1 -1
  22. package/dist/esm/index.min.js.map +1 -1
  23. package/dist/esm/resources/classes/fhir-ext.d.ts +9 -33
  24. package/dist/esm/resources/classes/fhir-ext.js +4 -3
  25. package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
  26. package/dist/esm/resources/classes/index.d.ts +1 -0
  27. package/dist/esm/resources/classes/index.js +1 -0
  28. package/dist/esm/resources/classes/index.js.map +1 -1
  29. package/dist/esm/resources/types/AccessPolicy.d.ts +1 -1
  30. package/dist/esm/resources/types/ClaimCMS1500.d.ts +5 -5
  31. package/dist/esm/resources/types/ConversationAddParticipantParams.d.ts +1 -1
  32. package/dist/esm/resources/types/ErxMedicationSearchResponse.d.ts +3 -3
  33. package/dist/esm/resources/types/Project.d.ts +1 -1
  34. package/dist/esm/resources/types/VersionGetResponse.d.ts +2 -2
  35. package/dist/esm/resources/types/Z3GetPresignedUrlParams.d.ts +1 -1
  36. package/dist/esm/resources/types/ZambdaCreateParams.d.ts +1 -1
  37. package/dist/esm/resources/types/ZambdaFunction.d.ts +2 -2
  38. package/dist/esm/resources/types/ZambdaUpdateParams.d.ts +2 -2
  39. package/dist/esm/resources/types/fhir.d.ts +34 -1
  40. package/package.json +1 -1
  41. package/src/client/client.ts +2 -2
  42. package/src/resources/classes/fhir-ext.ts +28 -12
  43. package/src/resources/classes/index.ts +2 -0
  44. package/src/resources/types/AccessPolicy.ts +1 -1
  45. package/src/resources/types/ClaimCMS1500.ts +12 -5
  46. package/src/resources/types/ConversationAddParticipantParams.ts +1 -1
  47. package/src/resources/types/ErxMedicationSearchResponse.ts +3 -3
  48. package/src/resources/types/Project.ts +1 -1
  49. package/src/resources/types/VersionGetResponse.ts +2 -2
  50. package/src/resources/types/Z3GetPresignedUrlParams.ts +1 -1
  51. package/src/resources/types/ZambdaCreateParams.ts +1 -1
  52. package/src/resources/types/ZambdaFunction.ts +2 -2
  53. package/src/resources/types/ZambdaUpdateParams.ts +2 -2
  54. package/src/resources/types/fhir.ts +56 -2
@@ -31,8 +31,8 @@ export type FhirFetcherResponse<T extends FhirData<FhirResource> = any> = T;
31
31
  export declare class SDKResource {
32
32
  private readonly config;
33
33
  constructor(config: OystehrConfig);
34
- request(path: string, method: string): FetcherFunction;
35
- fhirRequest<T extends FhirResource = any>(path: string, method: string): (params: any, request?: InternalClientRequest) => Promise<FhirFetcherResponse<T>>;
34
+ protected request(path: string, method: string): FetcherFunction;
35
+ protected fhirRequest<T extends FhirResource = any>(path: string, method: string): (params: any, request?: InternalClientRequest) => Promise<FhirFetcherResponse<T>>;
36
36
  }
37
37
  export type FetcherError = {
38
38
  message: string;
@@ -576,11 +576,12 @@ class Erx extends SDKResource {
576
576
  * @param request optional OystehrClientRequest object
577
577
  * @returns FHIR Bundle resource
578
578
  */
579
- function search({ resourceType, params }, request) {
579
+ function search(params, request) {
580
580
  return __awaiter(this, void 0, void 0, function* () {
581
+ const { resourceType, params: searchParams } = params;
581
582
  let paramMap;
582
- if (params) {
583
- paramMap = Object.entries(params).reduce((acc, [_, param]) => {
583
+ if (searchParams) {
584
+ paramMap = Object.entries(searchParams).reduce((acc, [_, param]) => {
584
585
  if (!acc[param.name]) {
585
586
  acc[param.name] = [];
586
587
  }
@@ -1301,6 +1302,7 @@ class ZambdaLogStream extends SDKResource {
1301
1302
  // AUTOGENERATED -- DO NOT EDIT
1302
1303
  let Oystehr$1 = class Oystehr {
1303
1304
  constructor(config) {
1305
+ this.config = config;
1304
1306
  this.application = new Application(config);
1305
1307
  this.developer = new Developer(config);
1306
1308
  this.m2m = new M2m(config);