@oystehr/sdk
Version:
Oystehr SDK
1 lines • 1.21 kB
Source Map (JSON)
{"version":3,"file":"index.cjs","sources":["../../src/index.ts"],"sourcesContent":["import type { OystehrClientRequest } from './client/client';\nimport { OystehrConfig } from './config';\nimport * as errors from './errors';\nimport { Oystehr as OystehrBase } from './resources/classes';\n\nexport * from './resources';\n\nexport type { OystehrClientRequest };\nexport type { OystehrConfig };\n\n// HACK: ideally we would only have to do this for CommonJS\n// where default + named exports are not allowed; however,\n// our ancient tsc settings are somehow grabbing js from\n// dist/esm and types from dist/cjs\n\nclass Oystehr extends OystehrBase {\n static OystehrFHIRError = errors.OystehrFHIRError;\n static OystehrSdkError = errors.OystehrSdkError;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-namespace\nnamespace Oystehr {\n export type OystehrFHIRError = errors.OystehrFHIRError;\n export type OystehrSdkError = errors.OystehrSdkError;\n}\n\nexport default Oystehr;\n"],"names":["OystehrBase","errors.OystehrFHIRError","errors.OystehrSdkError"],"mappings":";;;;;;;AAUA;AACA;AACA;AACA;AAEA,MAAM,OAAQ,SAAQA,aAAW,CAAA;AAC/B,IAAA,OAAO,gBAAgB,GAAGC,wBAAuB;AACjD,IAAA,OAAO,eAAe,GAAGC,uBAAsB;;;;;"}