UNPKG

@oystehr/sdk

Version:

Oystehr SDK

29 lines (28 loc) 2.73 kB
import { OystehrClientRequest, ProjectGetResponse, ProjectUpdateParams, ProjectUpdateResponse } from '../..'; import { SDKResource } from '../../client/client'; import { OystehrConfig } from '../../config'; export declare class Project extends SDKResource { #private; constructor(config: OystehrConfig); /** * Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/oystehr/core-documentation/authenticating-api-requests/#x-oystehr-project-id-header) in the header. A Project is the logically-isolated instance of Oystehr that segments your data from other Projects. [Projects](https://docs.oystehr.com/oystehr/services/project/) are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc . * * Access Policy Action: `Project:GetProjectInfo` * Access Policy Resource: `Project:Settings` */ get(request?: OystehrClientRequest): Promise<ProjectGetResponse>; /** * Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.oystehr.com/oystehr/services/project/) is the logically-isolated instance of Oystehr that segments your data from other Projects. Projects are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc . * * Access Policy Action: `Project:UpdateProjectInfo` * Access Policy Resource: `Project:Settings` */ update(params: ProjectUpdateParams, request?: OystehrClientRequest): Promise<ProjectUpdateResponse>; /** * Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.oystehr.com/oystehr/services/project/) is the logically-isolated instance of Oystehr that segments your data from other Projects. Projects are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc . * * Access Policy Action: `Project:UpdateProjectInfo` * Access Policy Resource: `Project:Settings` */ update(request?: OystehrClientRequest): Promise<ProjectUpdateResponse>; }