@oystehr/sdk 3.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.
- package/.eslintrc.js +14 -0
- package/LICENSE.md +9 -0
- package/README.md +339 -0
- package/dist/cjs/client/client.d.ts +49 -0
- package/dist/cjs/config.d.ts +45 -0
- package/dist/cjs/errors/index.d.ts +17 -0
- package/dist/cjs/fhir/fhir-types.d.ts +9 -0
- package/dist/cjs/fhir/index.d.ts +2 -0
- package/dist/cjs/fhir/utils.d.ts +14 -0
- package/dist/cjs/index.cjs +1333 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +16 -0
- package/dist/cjs/index.d.ts +16 -0
- package/dist/cjs/index.min.cjs +2 -0
- package/dist/cjs/index.min.cjs.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/resources/classes/application.d.ts +62 -0
- package/dist/cjs/resources/classes/charge.d.ts +30 -0
- package/dist/cjs/resources/classes/conversation-ext.d.ts +10 -0
- package/dist/cjs/resources/classes/conversation.d.ts +64 -0
- package/dist/cjs/resources/classes/developer.d.ts +50 -0
- package/dist/cjs/resources/classes/erx.d.ts +18 -0
- package/dist/cjs/resources/classes/fhir-ext.d.ts +58 -0
- package/dist/cjs/resources/classes/fhir.d.ts +21 -0
- package/dist/cjs/resources/classes/index.d.ts +44 -0
- package/dist/cjs/resources/classes/m2m.d.ts +57 -0
- package/dist/cjs/resources/classes/messaging.d.ts +10 -0
- package/dist/cjs/resources/classes/paymentMethod.d.ts +70 -0
- package/dist/cjs/resources/classes/project.d.ts +20 -0
- package/dist/cjs/resources/classes/rcm.d.ts +39 -0
- package/dist/cjs/resources/classes/role.d.ts +42 -0
- package/dist/cjs/resources/classes/secret.d.ts +34 -0
- package/dist/cjs/resources/classes/telemed.d.ts +29 -0
- package/dist/cjs/resources/classes/transactionalSMS.d.ts +22 -0
- package/dist/cjs/resources/classes/user.d.ts +56 -0
- package/dist/cjs/resources/classes/version.d.ts +10 -0
- package/dist/cjs/resources/classes/z3-ext.d.ts +10 -0
- package/dist/cjs/resources/classes/z3.d.ts +51 -0
- package/dist/cjs/resources/classes/zambda-ext.d.ts +6 -0
- package/dist/cjs/resources/classes/zambda.d.ts +63 -0
- package/dist/cjs/resources/classes/zambdaLogStream.d.ts +27 -0
- package/dist/cjs/resources/index.d.ts +1 -0
- package/dist/cjs/resources/types/AccessPolicy.d.ts +7 -0
- package/dist/cjs/resources/types/Application.d.ts +59 -0
- package/dist/cjs/resources/types/ApplicationCreateParams.d.ts +59 -0
- package/dist/cjs/resources/types/ApplicationCreateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ApplicationDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/ApplicationGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/ApplicationGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ApplicationListItem.d.ts +15 -0
- package/dist/cjs/resources/types/ApplicationListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ApplicationRevokeAccessTokenParams.d.ts +4 -0
- package/dist/cjs/resources/types/ApplicationRevokeAccessTokenResponse.d.ts +6 -0
- package/dist/cjs/resources/types/ApplicationRevokeRefreshTokenParams.d.ts +4 -0
- package/dist/cjs/resources/types/ApplicationRevokeRefreshTokenResponse.d.ts +6 -0
- package/dist/cjs/resources/types/ApplicationRotateSecretParams.d.ts +3 -0
- package/dist/cjs/resources/types/ApplicationRotateSecretResponse.d.ts +6 -0
- package/dist/cjs/resources/types/ApplicationUpdateParams.d.ts +59 -0
- package/dist/cjs/resources/types/ApplicationUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/Card.d.ts +8 -0
- package/dist/cjs/resources/types/CardIdentifier.d.ts +7 -0
- package/dist/cjs/resources/types/ChargeDetails.d.ts +8 -0
- package/dist/cjs/resources/types/ChargeIssueParams.d.ts +6 -0
- package/dist/cjs/resources/types/ChargeStatusParams.d.ts +6 -0
- package/dist/cjs/resources/types/ChargeStatusResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ClaimAddress.d.ts +7 -0
- package/dist/cjs/resources/types/ClaimCMS1500.d.ts +100 -0
- package/dist/cjs/resources/types/ClaimDate.d.ts +5 -0
- package/dist/cjs/resources/types/ClaimDatePeriod.d.ts +5 -0
- package/dist/cjs/resources/types/ClaimDateWithQualifier.d.ts +5 -0
- package/dist/cjs/resources/types/ClaimId.d.ts +4 -0
- package/dist/cjs/resources/types/ClaimName.d.ts +6 -0
- package/dist/cjs/resources/types/ConversationAddParticipantParams.d.ts +21 -0
- package/dist/cjs/resources/types/ConversationCreateParams.d.ts +7 -0
- package/dist/cjs/resources/types/ConversationCreateResponse.d.ts +10 -0
- package/dist/cjs/resources/types/ConversationGetTokenResponse.d.ts +9 -0
- package/dist/cjs/resources/types/ConversationMessageParams.d.ts +13 -0
- package/dist/cjs/resources/types/ConversationRemoveParticipantParams.d.ts +11 -0
- package/dist/cjs/resources/types/Developer.d.ts +20 -0
- package/dist/cjs/resources/types/DeveloperDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/DeveloperGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/DeveloperGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/DeveloperInviteParams.d.ts +17 -0
- package/dist/cjs/resources/types/DeveloperInviteResponse.d.ts +23 -0
- package/dist/cjs/resources/types/DeveloperListItem.d.ts +7 -0
- package/dist/cjs/resources/types/DeveloperListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/DeveloperListV2Params.d.ts +11 -0
- package/dist/cjs/resources/types/DeveloperListV2Response.d.ts +29 -0
- package/dist/cjs/resources/types/DeveloperUpdateParams.d.ts +9 -0
- package/dist/cjs/resources/types/DeveloperUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ErxAllergySearchParams.d.ts +3 -0
- package/dist/cjs/resources/types/ErxAllergySearchResponse.d.ts +19 -0
- package/dist/cjs/resources/types/ErxMedicationSearchParams.d.ts +6 -0
- package/dist/cjs/resources/types/ErxMedicationSearchResponse.d.ts +38 -0
- package/dist/cjs/resources/types/ErxSyncPatientParams.d.ts +3 -0
- package/dist/cjs/resources/types/ErxSyncPatientResponse.d.ts +9 -0
- package/dist/cjs/resources/types/M2m.d.ts +30 -0
- package/dist/cjs/resources/types/M2mCreateParams.d.ts +20 -0
- package/dist/cjs/resources/types/M2mCreateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/M2mDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/M2mGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/M2mGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/M2mListItem.d.ts +25 -0
- package/dist/cjs/resources/types/M2mListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/M2mListV2Params.d.ts +10 -0
- package/dist/cjs/resources/types/M2mListV2Response.d.ts +16 -0
- package/dist/cjs/resources/types/M2mRotateSecretParams.d.ts +3 -0
- package/dist/cjs/resources/types/M2mRotateSecretResponse.d.ts +6 -0
- package/dist/cjs/resources/types/M2mUpdateParams.d.ts +21 -0
- package/dist/cjs/resources/types/M2mUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/MessagingGetMessagingConfigResponse.d.ts +8 -0
- package/dist/cjs/resources/types/MessagingServiceInfo.d.ts +14 -0
- package/dist/cjs/resources/types/PaymentMethodDeleteParams.d.ts +16 -0
- package/dist/cjs/resources/types/PaymentMethodListParams.d.ts +12 -0
- package/dist/cjs/resources/types/PaymentMethodListResponse.d.ts +8 -0
- package/dist/cjs/resources/types/PaymentMethodSetDefaultParams.d.ts +16 -0
- package/dist/cjs/resources/types/PaymentMethodSetUpParams.d.ts +12 -0
- package/dist/cjs/resources/types/PaymentMethodSetUpResponse.d.ts +9 -0
- package/dist/cjs/resources/types/Project.d.ts +17 -0
- package/dist/cjs/resources/types/ProjectGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ProjectUpdateParams.d.ts +16 -0
- package/dist/cjs/resources/types/ProjectUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RcmEligibilityCheckParams.d.ts +6 -0
- package/dist/cjs/resources/types/RcmEligibilityCheckResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RcmSubmitProfessionalClaimParams.d.ts +10 -0
- package/dist/cjs/resources/types/RcmSubmitProfessionalClaimResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RcmValidateProfessionalClaimParams.d.ts +6 -0
- package/dist/cjs/resources/types/RcmValidateProfessionalClaimResponse.d.ts +21 -0
- package/dist/cjs/resources/types/Role.d.ts +16 -0
- package/dist/cjs/resources/types/RoleCreateParams.d.ts +12 -0
- package/dist/cjs/resources/types/RoleCreateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RoleDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/RoleGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/RoleGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RoleListItem.d.ts +14 -0
- package/dist/cjs/resources/types/RoleListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RoleStub.d.ts +10 -0
- package/dist/cjs/resources/types/RoleUpdateParams.d.ts +17 -0
- package/dist/cjs/resources/types/RoleUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/Secret.d.ts +10 -0
- package/dist/cjs/resources/types/SecretDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/SecretGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/SecretGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/SecretListItem.d.ts +6 -0
- package/dist/cjs/resources/types/SecretListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/SecretSetParams.d.ts +10 -0
- package/dist/cjs/resources/types/SecretSetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/TelemedCreateMeetingParams.d.ts +7 -0
- package/dist/cjs/resources/types/TelemedCreateMeetingResponse.d.ts +10 -0
- package/dist/cjs/resources/types/TelemedJoinMeetingParams.d.ts +4 -0
- package/dist/cjs/resources/types/TelemedJoinMeetingResponse.d.ts +27 -0
- package/dist/cjs/resources/types/TransactionalSMSSendParams.d.ts +10 -0
- package/dist/cjs/resources/types/TransactionalSMSSendResponse.d.ts +9 -0
- package/dist/cjs/resources/types/User.d.ts +36 -0
- package/dist/cjs/resources/types/UserDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/UserGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/UserGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/UserInviteParams.d.ts +35 -0
- package/dist/cjs/resources/types/UserInviteResponse.d.ts +37 -0
- package/dist/cjs/resources/types/UserListItem.d.ts +15 -0
- package/dist/cjs/resources/types/UserListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/UserListV2Params.d.ts +11 -0
- package/dist/cjs/resources/types/UserListV2Response.d.ts +16 -0
- package/dist/cjs/resources/types/UserMeResponse.d.ts +5 -0
- package/dist/cjs/resources/types/UserUpdateParams.d.ts +9 -0
- package/dist/cjs/resources/types/UserUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/VersionGetResponse.d.ts +17 -0
- package/dist/cjs/resources/types/Z3CreateBucketParams.d.ts +3 -0
- package/dist/cjs/resources/types/Z3CreateBucketResponse.d.ts +10 -0
- package/dist/cjs/resources/types/Z3DeleteBucketParams.d.ts +3 -0
- package/dist/cjs/resources/types/Z3DeleteObjectParams.d.ts +8 -0
- package/dist/cjs/resources/types/Z3GetPresignedUrlParams.d.ts +9 -0
- package/dist/cjs/resources/types/Z3GetPresignedUrlResponse.d.ts +9 -0
- package/dist/cjs/resources/types/Z3ListBucketsResponse.d.ts +14 -0
- package/dist/cjs/resources/types/Z3ListObjectsParams.d.ts +4 -0
- package/dist/cjs/resources/types/Z3ListObjectsResponse.d.ts +13 -0
- package/dist/cjs/resources/types/ZambdaCreateParams.d.ts +12 -0
- package/dist/cjs/resources/types/ZambdaCreateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/ZambdaExecuteParams.d.ts +4 -0
- package/dist/cjs/resources/types/ZambdaExecutePublicParams.d.ts +4 -0
- package/dist/cjs/resources/types/ZambdaExecutePublicResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaExecuteResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaExecuteResult.d.ts +10 -0
- package/dist/cjs/resources/types/ZambdaFunction.d.ts +38 -0
- package/dist/cjs/resources/types/ZambdaGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/ZambdaGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaLogStreamGetParams.d.ts +8 -0
- package/dist/cjs/resources/types/ZambdaLogStreamGetResponse.d.ts +27 -0
- package/dist/cjs/resources/types/ZambdaLogStreamListParams.d.ts +4 -0
- package/dist/cjs/resources/types/ZambdaLogStreamListResponse.d.ts +46 -0
- package/dist/cjs/resources/types/ZambdaLogStreamSearchParams.d.ts +19 -0
- package/dist/cjs/resources/types/ZambdaLogStreamSearchResponse.d.ts +23 -0
- package/dist/cjs/resources/types/ZambdaS3UploadParams.d.ts +7 -0
- package/dist/cjs/resources/types/ZambdaS3UploadResponse.d.ts +9 -0
- package/dist/cjs/resources/types/ZambdaSchedule.d.ts +30 -0
- package/dist/cjs/resources/types/ZambdaUpdateParams.d.ts +17 -0
- package/dist/cjs/resources/types/ZambdaUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/fhir.d.ts +46 -0
- package/dist/cjs/resources/types/index.d.ts +158 -0
- package/dist/cjs/tests/common.d.ts +2 -0
- package/dist/cjs/tests/setup/constants.d.ts +12 -0
- package/dist/cjs/tests/setup/global.d.ts +1 -0
- package/dist/cjs/tests/setup/per-test.d.ts +1 -0
- package/dist/esm/client/client.d.ts +49 -0
- package/dist/esm/client/client.js +251 -0
- package/dist/esm/client/client.js.map +1 -0
- package/dist/esm/config.d.ts +45 -0
- package/dist/esm/errors/index.d.ts +17 -0
- package/dist/esm/errors/index.js +38 -0
- package/dist/esm/errors/index.js.map +1 -0
- package/dist/esm/fhir/fhir-types.d.ts +9 -0
- package/dist/esm/fhir/index.d.ts +2 -0
- package/dist/esm/fhir/utils.d.ts +14 -0
- package/dist/esm/index.d.ts +16 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.min.js +2 -0
- package/dist/esm/index.min.js.map +1 -0
- package/dist/esm/node_modules/tslib/package.json +1 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js +34 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/resources/classes/application.d.ts +62 -0
- package/dist/esm/resources/classes/application.js +67 -0
- package/dist/esm/resources/classes/application.js.map +1 -0
- package/dist/esm/resources/classes/charge.d.ts +30 -0
- package/dist/esm/resources/classes/charge.js +35 -0
- package/dist/esm/resources/classes/charge.js.map +1 -0
- package/dist/esm/resources/classes/conversation-ext.d.ts +10 -0
- package/dist/esm/resources/classes/conversation-ext.js +28 -0
- package/dist/esm/resources/classes/conversation-ext.js.map +1 -0
- package/dist/esm/resources/classes/conversation.d.ts +64 -0
- package/dist/esm/resources/classes/conversation.js +69 -0
- package/dist/esm/resources/classes/conversation.js.map +1 -0
- package/dist/esm/resources/classes/developer.d.ts +50 -0
- package/dist/esm/resources/classes/developer.js +55 -0
- package/dist/esm/resources/classes/developer.js.map +1 -0
- package/dist/esm/resources/classes/erx.d.ts +18 -0
- package/dist/esm/resources/classes/erx.js +23 -0
- package/dist/esm/resources/classes/erx.js.map +1 -0
- package/dist/esm/resources/classes/fhir-ext.d.ts +58 -0
- package/dist/esm/resources/classes/fhir-ext.js +130 -0
- package/dist/esm/resources/classes/fhir-ext.js.map +1 -0
- package/dist/esm/resources/classes/fhir.d.ts +21 -0
- package/dist/esm/resources/classes/fhir.js +27 -0
- package/dist/esm/resources/classes/fhir.js.map +1 -0
- package/dist/esm/resources/classes/index.d.ts +44 -0
- package/dist/esm/resources/classes/index.js +49 -0
- package/dist/esm/resources/classes/index.js.map +1 -0
- package/dist/esm/resources/classes/m2m.d.ts +57 -0
- package/dist/esm/resources/classes/m2m.js +62 -0
- package/dist/esm/resources/classes/m2m.js.map +1 -0
- package/dist/esm/resources/classes/messaging.d.ts +10 -0
- package/dist/esm/resources/classes/messaging.js +15 -0
- package/dist/esm/resources/classes/messaging.js.map +1 -0
- package/dist/esm/resources/classes/paymentMethod.d.ts +70 -0
- package/dist/esm/resources/classes/paymentMethod.js +75 -0
- package/dist/esm/resources/classes/paymentMethod.js.map +1 -0
- package/dist/esm/resources/classes/project.d.ts +20 -0
- package/dist/esm/resources/classes/project.js +25 -0
- package/dist/esm/resources/classes/project.js.map +1 -0
- package/dist/esm/resources/classes/rcm.d.ts +39 -0
- package/dist/esm/resources/classes/rcm.js +44 -0
- package/dist/esm/resources/classes/rcm.js.map +1 -0
- package/dist/esm/resources/classes/role.d.ts +42 -0
- package/dist/esm/resources/classes/role.js +47 -0
- package/dist/esm/resources/classes/role.js.map +1 -0
- package/dist/esm/resources/classes/secret.d.ts +34 -0
- package/dist/esm/resources/classes/secret.js +39 -0
- package/dist/esm/resources/classes/secret.js.map +1 -0
- package/dist/esm/resources/classes/telemed.d.ts +29 -0
- package/dist/esm/resources/classes/telemed.js +34 -0
- package/dist/esm/resources/classes/telemed.js.map +1 -0
- package/dist/esm/resources/classes/transactionalSMS.d.ts +22 -0
- package/dist/esm/resources/classes/transactionalSMS.js +27 -0
- package/dist/esm/resources/classes/transactionalSMS.js.map +1 -0
- package/dist/esm/resources/classes/user.d.ts +56 -0
- package/dist/esm/resources/classes/user.js +61 -0
- package/dist/esm/resources/classes/user.js.map +1 -0
- package/dist/esm/resources/classes/version.d.ts +10 -0
- package/dist/esm/resources/classes/version.js +15 -0
- package/dist/esm/resources/classes/version.js.map +1 -0
- package/dist/esm/resources/classes/z3-ext.d.ts +10 -0
- package/dist/esm/resources/classes/z3-ext.js +34 -0
- package/dist/esm/resources/classes/z3-ext.js.map +1 -0
- package/dist/esm/resources/classes/z3.d.ts +51 -0
- package/dist/esm/resources/classes/z3.js +56 -0
- package/dist/esm/resources/classes/z3.js.map +1 -0
- package/dist/esm/resources/classes/zambda-ext.d.ts +6 -0
- package/dist/esm/resources/classes/zambda-ext.js +14 -0
- package/dist/esm/resources/classes/zambda-ext.js.map +1 -0
- package/dist/esm/resources/classes/zambda.d.ts +63 -0
- package/dist/esm/resources/classes/zambda.js +68 -0
- package/dist/esm/resources/classes/zambda.js.map +1 -0
- package/dist/esm/resources/classes/zambdaLogStream.d.ts +27 -0
- package/dist/esm/resources/classes/zambdaLogStream.js +32 -0
- package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -0
- package/dist/esm/resources/index.d.ts +1 -0
- package/dist/esm/resources/types/AccessPolicy.d.ts +7 -0
- package/dist/esm/resources/types/Application.d.ts +59 -0
- package/dist/esm/resources/types/ApplicationCreateParams.d.ts +59 -0
- package/dist/esm/resources/types/ApplicationCreateResponse.d.ts +5 -0
- package/dist/esm/resources/types/ApplicationDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/ApplicationGetParams.d.ts +3 -0
- package/dist/esm/resources/types/ApplicationGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/ApplicationListItem.d.ts +15 -0
- package/dist/esm/resources/types/ApplicationListResponse.d.ts +5 -0
- package/dist/esm/resources/types/ApplicationRevokeAccessTokenParams.d.ts +4 -0
- package/dist/esm/resources/types/ApplicationRevokeAccessTokenResponse.d.ts +6 -0
- package/dist/esm/resources/types/ApplicationRevokeRefreshTokenParams.d.ts +4 -0
- package/dist/esm/resources/types/ApplicationRevokeRefreshTokenResponse.d.ts +6 -0
- package/dist/esm/resources/types/ApplicationRotateSecretParams.d.ts +3 -0
- package/dist/esm/resources/types/ApplicationRotateSecretResponse.d.ts +6 -0
- package/dist/esm/resources/types/ApplicationUpdateParams.d.ts +59 -0
- package/dist/esm/resources/types/ApplicationUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/Card.d.ts +8 -0
- package/dist/esm/resources/types/CardIdentifier.d.ts +7 -0
- package/dist/esm/resources/types/ChargeDetails.d.ts +8 -0
- package/dist/esm/resources/types/ChargeIssueParams.d.ts +6 -0
- package/dist/esm/resources/types/ChargeStatusParams.d.ts +6 -0
- package/dist/esm/resources/types/ChargeStatusResponse.d.ts +5 -0
- package/dist/esm/resources/types/ClaimAddress.d.ts +7 -0
- package/dist/esm/resources/types/ClaimCMS1500.d.ts +100 -0
- package/dist/esm/resources/types/ClaimDate.d.ts +5 -0
- package/dist/esm/resources/types/ClaimDatePeriod.d.ts +5 -0
- package/dist/esm/resources/types/ClaimDateWithQualifier.d.ts +5 -0
- package/dist/esm/resources/types/ClaimId.d.ts +4 -0
- package/dist/esm/resources/types/ClaimName.d.ts +6 -0
- package/dist/esm/resources/types/ConversationAddParticipantParams.d.ts +21 -0
- package/dist/esm/resources/types/ConversationCreateParams.d.ts +7 -0
- package/dist/esm/resources/types/ConversationCreateResponse.d.ts +10 -0
- package/dist/esm/resources/types/ConversationGetTokenResponse.d.ts +9 -0
- package/dist/esm/resources/types/ConversationMessageParams.d.ts +13 -0
- package/dist/esm/resources/types/ConversationRemoveParticipantParams.d.ts +11 -0
- package/dist/esm/resources/types/Developer.d.ts +20 -0
- package/dist/esm/resources/types/DeveloperDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/DeveloperGetParams.d.ts +3 -0
- package/dist/esm/resources/types/DeveloperGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/DeveloperInviteParams.d.ts +17 -0
- package/dist/esm/resources/types/DeveloperInviteResponse.d.ts +23 -0
- package/dist/esm/resources/types/DeveloperListItem.d.ts +7 -0
- package/dist/esm/resources/types/DeveloperListResponse.d.ts +5 -0
- package/dist/esm/resources/types/DeveloperListV2Params.d.ts +11 -0
- package/dist/esm/resources/types/DeveloperListV2Response.d.ts +29 -0
- package/dist/esm/resources/types/DeveloperUpdateParams.d.ts +9 -0
- package/dist/esm/resources/types/DeveloperUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/ErxAllergySearchParams.d.ts +3 -0
- package/dist/esm/resources/types/ErxAllergySearchResponse.d.ts +19 -0
- package/dist/esm/resources/types/ErxMedicationSearchParams.d.ts +6 -0
- package/dist/esm/resources/types/ErxMedicationSearchResponse.d.ts +38 -0
- package/dist/esm/resources/types/ErxSyncPatientParams.d.ts +3 -0
- package/dist/esm/resources/types/ErxSyncPatientResponse.d.ts +9 -0
- package/dist/esm/resources/types/M2m.d.ts +30 -0
- package/dist/esm/resources/types/M2mCreateParams.d.ts +20 -0
- package/dist/esm/resources/types/M2mCreateResponse.d.ts +5 -0
- package/dist/esm/resources/types/M2mDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/M2mGetParams.d.ts +3 -0
- package/dist/esm/resources/types/M2mGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/M2mListItem.d.ts +25 -0
- package/dist/esm/resources/types/M2mListResponse.d.ts +5 -0
- package/dist/esm/resources/types/M2mListV2Params.d.ts +10 -0
- package/dist/esm/resources/types/M2mListV2Response.d.ts +16 -0
- package/dist/esm/resources/types/M2mRotateSecretParams.d.ts +3 -0
- package/dist/esm/resources/types/M2mRotateSecretResponse.d.ts +6 -0
- package/dist/esm/resources/types/M2mUpdateParams.d.ts +21 -0
- package/dist/esm/resources/types/M2mUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/MessagingGetMessagingConfigResponse.d.ts +8 -0
- package/dist/esm/resources/types/MessagingServiceInfo.d.ts +14 -0
- package/dist/esm/resources/types/PaymentMethodDeleteParams.d.ts +16 -0
- package/dist/esm/resources/types/PaymentMethodListParams.d.ts +12 -0
- package/dist/esm/resources/types/PaymentMethodListResponse.d.ts +8 -0
- package/dist/esm/resources/types/PaymentMethodSetDefaultParams.d.ts +16 -0
- package/dist/esm/resources/types/PaymentMethodSetUpParams.d.ts +12 -0
- package/dist/esm/resources/types/PaymentMethodSetUpResponse.d.ts +9 -0
- package/dist/esm/resources/types/Project.d.ts +17 -0
- package/dist/esm/resources/types/ProjectGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/ProjectUpdateParams.d.ts +16 -0
- package/dist/esm/resources/types/ProjectUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/RcmEligibilityCheckParams.d.ts +6 -0
- package/dist/esm/resources/types/RcmEligibilityCheckResponse.d.ts +5 -0
- package/dist/esm/resources/types/RcmSubmitProfessionalClaimParams.d.ts +10 -0
- package/dist/esm/resources/types/RcmSubmitProfessionalClaimResponse.d.ts +5 -0
- package/dist/esm/resources/types/RcmValidateProfessionalClaimParams.d.ts +6 -0
- package/dist/esm/resources/types/RcmValidateProfessionalClaimResponse.d.ts +21 -0
- package/dist/esm/resources/types/Role.d.ts +16 -0
- package/dist/esm/resources/types/RoleCreateParams.d.ts +12 -0
- package/dist/esm/resources/types/RoleCreateResponse.d.ts +5 -0
- package/dist/esm/resources/types/RoleDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/RoleGetParams.d.ts +3 -0
- package/dist/esm/resources/types/RoleGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/RoleListItem.d.ts +14 -0
- package/dist/esm/resources/types/RoleListResponse.d.ts +5 -0
- package/dist/esm/resources/types/RoleStub.d.ts +10 -0
- package/dist/esm/resources/types/RoleUpdateParams.d.ts +17 -0
- package/dist/esm/resources/types/RoleUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/Secret.d.ts +10 -0
- package/dist/esm/resources/types/SecretDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/SecretGetParams.d.ts +3 -0
- package/dist/esm/resources/types/SecretGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/SecretListItem.d.ts +6 -0
- package/dist/esm/resources/types/SecretListResponse.d.ts +5 -0
- package/dist/esm/resources/types/SecretSetParams.d.ts +10 -0
- package/dist/esm/resources/types/SecretSetResponse.d.ts +5 -0
- package/dist/esm/resources/types/TelemedCreateMeetingParams.d.ts +7 -0
- package/dist/esm/resources/types/TelemedCreateMeetingResponse.d.ts +10 -0
- package/dist/esm/resources/types/TelemedJoinMeetingParams.d.ts +4 -0
- package/dist/esm/resources/types/TelemedJoinMeetingResponse.d.ts +27 -0
- package/dist/esm/resources/types/TransactionalSMSSendParams.d.ts +10 -0
- package/dist/esm/resources/types/TransactionalSMSSendResponse.d.ts +9 -0
- package/dist/esm/resources/types/User.d.ts +36 -0
- package/dist/esm/resources/types/UserDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/UserGetParams.d.ts +3 -0
- package/dist/esm/resources/types/UserGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/UserInviteParams.d.ts +35 -0
- package/dist/esm/resources/types/UserInviteResponse.d.ts +37 -0
- package/dist/esm/resources/types/UserListItem.d.ts +15 -0
- package/dist/esm/resources/types/UserListResponse.d.ts +5 -0
- package/dist/esm/resources/types/UserListV2Params.d.ts +11 -0
- package/dist/esm/resources/types/UserListV2Response.d.ts +16 -0
- package/dist/esm/resources/types/UserMeResponse.d.ts +5 -0
- package/dist/esm/resources/types/UserUpdateParams.d.ts +9 -0
- package/dist/esm/resources/types/UserUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/VersionGetResponse.d.ts +17 -0
- package/dist/esm/resources/types/Z3CreateBucketParams.d.ts +3 -0
- package/dist/esm/resources/types/Z3CreateBucketResponse.d.ts +10 -0
- package/dist/esm/resources/types/Z3DeleteBucketParams.d.ts +3 -0
- package/dist/esm/resources/types/Z3DeleteObjectParams.d.ts +8 -0
- package/dist/esm/resources/types/Z3GetPresignedUrlParams.d.ts +9 -0
- package/dist/esm/resources/types/Z3GetPresignedUrlResponse.d.ts +9 -0
- package/dist/esm/resources/types/Z3ListBucketsResponse.d.ts +14 -0
- package/dist/esm/resources/types/Z3ListObjectsParams.d.ts +4 -0
- package/dist/esm/resources/types/Z3ListObjectsResponse.d.ts +13 -0
- package/dist/esm/resources/types/ZambdaCreateParams.d.ts +12 -0
- package/dist/esm/resources/types/ZambdaCreateResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/ZambdaExecuteParams.d.ts +4 -0
- package/dist/esm/resources/types/ZambdaExecutePublicParams.d.ts +4 -0
- package/dist/esm/resources/types/ZambdaExecutePublicResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaExecuteResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaExecuteResult.d.ts +10 -0
- package/dist/esm/resources/types/ZambdaFunction.d.ts +38 -0
- package/dist/esm/resources/types/ZambdaGetParams.d.ts +3 -0
- package/dist/esm/resources/types/ZambdaGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaListResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaLogStreamGetParams.d.ts +8 -0
- package/dist/esm/resources/types/ZambdaLogStreamGetResponse.d.ts +27 -0
- package/dist/esm/resources/types/ZambdaLogStreamListParams.d.ts +4 -0
- package/dist/esm/resources/types/ZambdaLogStreamListResponse.d.ts +46 -0
- package/dist/esm/resources/types/ZambdaLogStreamSearchParams.d.ts +19 -0
- package/dist/esm/resources/types/ZambdaLogStreamSearchResponse.d.ts +23 -0
- package/dist/esm/resources/types/ZambdaS3UploadParams.d.ts +7 -0
- package/dist/esm/resources/types/ZambdaS3UploadResponse.d.ts +9 -0
- package/dist/esm/resources/types/ZambdaSchedule.d.ts +30 -0
- package/dist/esm/resources/types/ZambdaUpdateParams.d.ts +17 -0
- package/dist/esm/resources/types/ZambdaUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/fhir.d.ts +46 -0
- package/dist/esm/resources/types/index.d.ts +158 -0
- package/dist/esm/tests/common.d.ts +2 -0
- package/dist/esm/tests/setup/constants.d.ts +12 -0
- package/dist/esm/tests/setup/global.d.ts +1 -0
- package/dist/esm/tests/setup/per-test.d.ts +1 -0
- package/package.json +59 -0
- package/rollup.config-cjs.mjs +49 -0
- package/rollup.config-mjs.mjs +49 -0
- package/src/client/client.ts +307 -0
- package/src/config.ts +56 -0
- package/src/errors/index.ts +41 -0
- package/src/fhir/fhir-types.ts +15 -0
- package/src/fhir/index.ts +2 -0
- package/src/fhir/utils.ts +68 -0
- package/src/index.cts +22 -0
- package/src/index.ts +27 -0
- package/src/resources/classes/application.ts +100 -0
- package/src/resources/classes/charge.ts +37 -0
- package/src/resources/classes/conversation-ext.ts +31 -0
- package/src/resources/classes/conversation.ts +82 -0
- package/src/resources/classes/developer.ts +72 -0
- package/src/resources/classes/erx.ts +36 -0
- package/src/resources/classes/fhir-ext.ts +214 -0
- package/src/resources/classes/fhir.ts +26 -0
- package/src/resources/classes/index.ts +68 -0
- package/src/resources/classes/m2m.ts +82 -0
- package/src/resources/classes/messaging.ts +16 -0
- package/src/resources/classes/paymentMethod.ts +87 -0
- package/src/resources/classes/project.ts +26 -0
- package/src/resources/classes/rcm.ts +63 -0
- package/src/resources/classes/role.ts +61 -0
- package/src/resources/classes/secret.ts +50 -0
- package/src/resources/classes/telemed.ts +47 -0
- package/src/resources/classes/transactionalSMS.ts +28 -0
- package/src/resources/classes/user.ts +79 -0
- package/src/resources/classes/version.ts +15 -0
- package/src/resources/classes/z3-ext.ts +54 -0
- package/src/resources/classes/z3.ts +74 -0
- package/src/resources/classes/zambda-ext.ts +20 -0
- package/src/resources/classes/zambda.ts +93 -0
- package/src/resources/classes/zambdaLogStream.ts +45 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/types/AccessPolicy.ts +9 -0
- package/src/resources/types/Application.ts +61 -0
- package/src/resources/types/ApplicationCreateParams.ts +61 -0
- package/src/resources/types/ApplicationCreateResponse.ts +7 -0
- package/src/resources/types/ApplicationDeleteParams.ts +5 -0
- package/src/resources/types/ApplicationGetParams.ts +5 -0
- package/src/resources/types/ApplicationGetResponse.ts +7 -0
- package/src/resources/types/ApplicationListItem.ts +17 -0
- package/src/resources/types/ApplicationListResponse.ts +7 -0
- package/src/resources/types/ApplicationRevokeAccessTokenParams.ts +6 -0
- package/src/resources/types/ApplicationRevokeAccessTokenResponse.ts +8 -0
- package/src/resources/types/ApplicationRevokeRefreshTokenParams.ts +6 -0
- package/src/resources/types/ApplicationRevokeRefreshTokenResponse.ts +8 -0
- package/src/resources/types/ApplicationRotateSecretParams.ts +5 -0
- package/src/resources/types/ApplicationRotateSecretResponse.ts +8 -0
- package/src/resources/types/ApplicationUpdateParams.ts +61 -0
- package/src/resources/types/ApplicationUpdateResponse.ts +7 -0
- package/src/resources/types/Card.ts +10 -0
- package/src/resources/types/CardIdentifier.ts +9 -0
- package/src/resources/types/ChargeDetails.ts +11 -0
- package/src/resources/types/ChargeIssueParams.ts +8 -0
- package/src/resources/types/ChargeStatusParams.ts +8 -0
- package/src/resources/types/ChargeStatusResponse.ts +7 -0
- package/src/resources/types/ClaimAddress.ts +9 -0
- package/src/resources/types/ClaimCMS1500.ts +103 -0
- package/src/resources/types/ClaimDate.ts +7 -0
- package/src/resources/types/ClaimDatePeriod.ts +8 -0
- package/src/resources/types/ClaimDateWithQualifier.ts +8 -0
- package/src/resources/types/ClaimId.ts +6 -0
- package/src/resources/types/ClaimName.ts +8 -0
- package/src/resources/types/ConversationAddParticipantParams.ts +23 -0
- package/src/resources/types/ConversationCreateParams.ts +10 -0
- package/src/resources/types/ConversationCreateResponse.ts +12 -0
- package/src/resources/types/ConversationGetTokenResponse.ts +11 -0
- package/src/resources/types/ConversationMessageParams.ts +15 -0
- package/src/resources/types/ConversationRemoveParticipantParams.ts +13 -0
- package/src/resources/types/Developer.ts +23 -0
- package/src/resources/types/DeveloperDeleteParams.ts +5 -0
- package/src/resources/types/DeveloperGetParams.ts +5 -0
- package/src/resources/types/DeveloperGetResponse.ts +7 -0
- package/src/resources/types/DeveloperInviteParams.ts +20 -0
- package/src/resources/types/DeveloperInviteResponse.ts +25 -0
- package/src/resources/types/DeveloperListItem.ts +9 -0
- package/src/resources/types/DeveloperListResponse.ts +7 -0
- package/src/resources/types/DeveloperListV2Params.ts +13 -0
- package/src/resources/types/DeveloperListV2Response.ts +31 -0
- package/src/resources/types/DeveloperUpdateParams.ts +12 -0
- package/src/resources/types/DeveloperUpdateResponse.ts +7 -0
- package/src/resources/types/ErxAllergySearchParams.ts +5 -0
- package/src/resources/types/ErxAllergySearchResponse.ts +21 -0
- package/src/resources/types/ErxMedicationSearchParams.ts +8 -0
- package/src/resources/types/ErxMedicationSearchResponse.ts +40 -0
- package/src/resources/types/ErxSyncPatientParams.ts +5 -0
- package/src/resources/types/ErxSyncPatientResponse.ts +11 -0
- package/src/resources/types/M2m.ts +33 -0
- package/src/resources/types/M2mCreateParams.ts +23 -0
- package/src/resources/types/M2mCreateResponse.ts +7 -0
- package/src/resources/types/M2mDeleteParams.ts +5 -0
- package/src/resources/types/M2mGetParams.ts +5 -0
- package/src/resources/types/M2mGetResponse.ts +7 -0
- package/src/resources/types/M2mListItem.ts +28 -0
- package/src/resources/types/M2mListResponse.ts +7 -0
- package/src/resources/types/M2mListV2Params.ts +12 -0
- package/src/resources/types/M2mListV2Response.ts +18 -0
- package/src/resources/types/M2mRotateSecretParams.ts +5 -0
- package/src/resources/types/M2mRotateSecretResponse.ts +8 -0
- package/src/resources/types/M2mUpdateParams.ts +24 -0
- package/src/resources/types/M2mUpdateResponse.ts +7 -0
- package/src/resources/types/MessagingGetMessagingConfigResponse.ts +10 -0
- package/src/resources/types/MessagingServiceInfo.ts +16 -0
- package/src/resources/types/PaymentMethodDeleteParams.ts +18 -0
- package/src/resources/types/PaymentMethodListParams.ts +14 -0
- package/src/resources/types/PaymentMethodListResponse.ts +10 -0
- package/src/resources/types/PaymentMethodSetDefaultParams.ts +18 -0
- package/src/resources/types/PaymentMethodSetUpParams.ts +14 -0
- package/src/resources/types/PaymentMethodSetUpResponse.ts +11 -0
- package/src/resources/types/Project.ts +20 -0
- package/src/resources/types/ProjectGetResponse.ts +7 -0
- package/src/resources/types/ProjectUpdateParams.ts +18 -0
- package/src/resources/types/ProjectUpdateResponse.ts +7 -0
- package/src/resources/types/RcmEligibilityCheckParams.ts +8 -0
- package/src/resources/types/RcmEligibilityCheckResponse.ts +7 -0
- package/src/resources/types/RcmSubmitProfessionalClaimParams.ts +13 -0
- package/src/resources/types/RcmSubmitProfessionalClaimResponse.ts +7 -0
- package/src/resources/types/RcmValidateProfessionalClaimParams.ts +9 -0
- package/src/resources/types/RcmValidateProfessionalClaimResponse.ts +23 -0
- package/src/resources/types/Role.ts +19 -0
- package/src/resources/types/RoleCreateParams.ts +15 -0
- package/src/resources/types/RoleCreateResponse.ts +7 -0
- package/src/resources/types/RoleDeleteParams.ts +5 -0
- package/src/resources/types/RoleGetParams.ts +5 -0
- package/src/resources/types/RoleGetResponse.ts +7 -0
- package/src/resources/types/RoleListItem.ts +16 -0
- package/src/resources/types/RoleListResponse.ts +7 -0
- package/src/resources/types/RoleStub.ts +12 -0
- package/src/resources/types/RoleUpdateParams.ts +20 -0
- package/src/resources/types/RoleUpdateResponse.ts +7 -0
- package/src/resources/types/Secret.ts +12 -0
- package/src/resources/types/SecretDeleteParams.ts +5 -0
- package/src/resources/types/SecretGetParams.ts +5 -0
- package/src/resources/types/SecretGetResponse.ts +7 -0
- package/src/resources/types/SecretListItem.ts +8 -0
- package/src/resources/types/SecretListResponse.ts +7 -0
- package/src/resources/types/SecretSetParams.ts +12 -0
- package/src/resources/types/SecretSetResponse.ts +7 -0
- package/src/resources/types/TelemedCreateMeetingParams.ts +10 -0
- package/src/resources/types/TelemedCreateMeetingResponse.ts +12 -0
- package/src/resources/types/TelemedJoinMeetingParams.ts +6 -0
- package/src/resources/types/TelemedJoinMeetingResponse.ts +29 -0
- package/src/resources/types/TransactionalSMSSendParams.ts +12 -0
- package/src/resources/types/TransactionalSMSSendResponse.ts +11 -0
- package/src/resources/types/User.ts +39 -0
- package/src/resources/types/UserDeleteParams.ts +5 -0
- package/src/resources/types/UserGetParams.ts +5 -0
- package/src/resources/types/UserGetResponse.ts +7 -0
- package/src/resources/types/UserInviteParams.ts +38 -0
- package/src/resources/types/UserInviteResponse.ts +39 -0
- package/src/resources/types/UserListItem.ts +17 -0
- package/src/resources/types/UserListResponse.ts +7 -0
- package/src/resources/types/UserListV2Params.ts +13 -0
- package/src/resources/types/UserListV2Response.ts +18 -0
- package/src/resources/types/UserMeResponse.ts +7 -0
- package/src/resources/types/UserUpdateParams.ts +12 -0
- package/src/resources/types/UserUpdateResponse.ts +7 -0
- package/src/resources/types/VersionGetResponse.ts +19 -0
- package/src/resources/types/Z3CreateBucketParams.ts +5 -0
- package/src/resources/types/Z3CreateBucketResponse.ts +12 -0
- package/src/resources/types/Z3DeleteBucketParams.ts +5 -0
- package/src/resources/types/Z3DeleteObjectParams.ts +10 -0
- package/src/resources/types/Z3GetPresignedUrlParams.ts +11 -0
- package/src/resources/types/Z3GetPresignedUrlResponse.ts +11 -0
- package/src/resources/types/Z3ListBucketsResponse.ts +16 -0
- package/src/resources/types/Z3ListObjectsParams.ts +6 -0
- package/src/resources/types/Z3ListObjectsResponse.ts +15 -0
- package/src/resources/types/ZambdaCreateParams.ts +15 -0
- package/src/resources/types/ZambdaCreateResponse.ts +7 -0
- package/src/resources/types/ZambdaDeleteParams.ts +5 -0
- package/src/resources/types/ZambdaExecuteParams.ts +6 -0
- package/src/resources/types/ZambdaExecutePublicParams.ts +6 -0
- package/src/resources/types/ZambdaExecutePublicResponse.ts +7 -0
- package/src/resources/types/ZambdaExecuteResponse.ts +7 -0
- package/src/resources/types/ZambdaExecuteResult.ts +12 -0
- package/src/resources/types/ZambdaFunction.ts +41 -0
- package/src/resources/types/ZambdaGetParams.ts +5 -0
- package/src/resources/types/ZambdaGetResponse.ts +7 -0
- package/src/resources/types/ZambdaListResponse.ts +7 -0
- package/src/resources/types/ZambdaLogStreamGetParams.ts +10 -0
- package/src/resources/types/ZambdaLogStreamGetResponse.ts +29 -0
- package/src/resources/types/ZambdaLogStreamListParams.ts +6 -0
- package/src/resources/types/ZambdaLogStreamListResponse.ts +48 -0
- package/src/resources/types/ZambdaLogStreamSearchParams.ts +21 -0
- package/src/resources/types/ZambdaLogStreamSearchResponse.ts +25 -0
- package/src/resources/types/ZambdaS3UploadParams.ts +9 -0
- package/src/resources/types/ZambdaS3UploadResponse.ts +11 -0
- package/src/resources/types/ZambdaSchedule.ts +32 -0
- package/src/resources/types/ZambdaUpdateParams.ts +20 -0
- package/src/resources/types/ZambdaUpdateResponse.ts +7 -0
- package/src/resources/types/fhir.ts +75 -0
- package/src/resources/types/index.ts +160 -0
- package/turbo.json +13 -0
|
@@ -0,0 +1,1333 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var uuid = require('uuid');
|
|
4
|
+
|
|
5
|
+
class OystehrSdkError extends Error {
|
|
6
|
+
constructor({ message, code }) {
|
|
7
|
+
super(message);
|
|
8
|
+
Object.setPrototypeOf(this, OystehrSdkError.prototype);
|
|
9
|
+
this.code = code;
|
|
10
|
+
this.name = 'OystehrSdkError';
|
|
11
|
+
}
|
|
12
|
+
toString() {
|
|
13
|
+
return `${this.name}: ${this.message} (code: ${this.code})`;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function transformOperationOutcomeToErrorMessage(cause) {
|
|
17
|
+
var _a;
|
|
18
|
+
const causes = [];
|
|
19
|
+
for (const issue of (_a = cause.issue) !== null && _a !== void 0 ? _a : []) {
|
|
20
|
+
if (issue.details && issue.details.text) {
|
|
21
|
+
causes.push(issue.details.text);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (!causes.length) {
|
|
25
|
+
causes.push('Unknown FHIR error');
|
|
26
|
+
}
|
|
27
|
+
return causes.join(',');
|
|
28
|
+
}
|
|
29
|
+
class OystehrFHIRError extends OystehrSdkError {
|
|
30
|
+
constructor({ error, code }) {
|
|
31
|
+
super({
|
|
32
|
+
message: transformOperationOutcomeToErrorMessage(error),
|
|
33
|
+
code,
|
|
34
|
+
});
|
|
35
|
+
Object.setPrototypeOf(this, OystehrFHIRError.prototype);
|
|
36
|
+
this.cause = error;
|
|
37
|
+
this.name = 'OystehrFHIRError';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/******************************************************************************
|
|
42
|
+
Copyright (c) Microsoft Corporation.
|
|
43
|
+
|
|
44
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
45
|
+
purpose with or without fee is hereby granted.
|
|
46
|
+
|
|
47
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
48
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
49
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
50
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
51
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
52
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
53
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
54
|
+
***************************************************************************** */
|
|
55
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
59
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
60
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
61
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
62
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
63
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
64
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
69
|
+
var e = new Error(message);
|
|
70
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const defaultProjectApiUrl = 'https://project-api.zapehr.com/v1';
|
|
74
|
+
const defaultFhirApiUrl = 'https://fhir-api.zapehr.com';
|
|
75
|
+
const STATUS_CODES_TO_RETRY = [408, 429, 500, 502, 503, 504];
|
|
76
|
+
const ERROR_CODES_TO_RETRY = [
|
|
77
|
+
'ECONNRESET',
|
|
78
|
+
'ECONNREFUSED',
|
|
79
|
+
'EPIPE',
|
|
80
|
+
'ETIMEDOUT',
|
|
81
|
+
'UND_ERR_CONNECT_TIMEOUT',
|
|
82
|
+
'UND_ERR_HEADERS_TIMEOUT',
|
|
83
|
+
'UND_ERR_HEADERS_TIMEOUT',
|
|
84
|
+
'UND_ERR_SOCKET',
|
|
85
|
+
];
|
|
86
|
+
class SDKResource {
|
|
87
|
+
constructor(config) {
|
|
88
|
+
this.config = config;
|
|
89
|
+
}
|
|
90
|
+
request(path, method) {
|
|
91
|
+
return (params, request) => __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const baseUrlThunk = () => { var _a; return (_a = this.config.projectApiUrl) !== null && _a !== void 0 ? _a : defaultProjectApiUrl; };
|
|
93
|
+
const configThunk = () => this.config;
|
|
94
|
+
try {
|
|
95
|
+
return yield fetcher(baseUrlThunk, configThunk, path, method)(params, request);
|
|
96
|
+
}
|
|
97
|
+
catch (err) {
|
|
98
|
+
const error = err;
|
|
99
|
+
throw new OystehrSdkError({ message: error.message, code: error.code });
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
fhirRequest(path, method) {
|
|
104
|
+
return (params, request) => __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
try {
|
|
106
|
+
const baseUrlThunk = () => { var _a; return (_a = this.config.fhirApiUrl) !== null && _a !== void 0 ? _a : defaultFhirApiUrl; };
|
|
107
|
+
const configThunk = () => this.config;
|
|
108
|
+
// must await here to catch
|
|
109
|
+
return yield fetcher(baseUrlThunk, configThunk, path, method)(params, request);
|
|
110
|
+
}
|
|
111
|
+
catch (err) {
|
|
112
|
+
// FHIR API error messages are JSON strings
|
|
113
|
+
const fullError = err;
|
|
114
|
+
if (typeof fullError.message === 'string') {
|
|
115
|
+
throw new OystehrSdkError({
|
|
116
|
+
message: fullError.message,
|
|
117
|
+
code: fullError.code,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
throw new OystehrFHIRError({
|
|
121
|
+
error: fullError.message,
|
|
122
|
+
code: fullError.code,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function isInternalClientRequest(request) {
|
|
129
|
+
return 'accessToken' in request;
|
|
130
|
+
}
|
|
131
|
+
function fetcher(baseUrlThunk, configThunk, path, methodParam) {
|
|
132
|
+
return (params, request) => __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
134
|
+
// this function supports multiple signatures. fetcher(baseUrl, path, method)(params, request) or fetcher(baseUrl, path, method)(request)
|
|
135
|
+
// or fetcher(baseUrl, path, method)(params) or fetcher(baseUrl, path, method)(). the types for this are handled by Client<Path, Methods>
|
|
136
|
+
// and this is the backend implementation behind it. the heuristic we're using is that if the first param is an object with an accessToken
|
|
137
|
+
// and there is no second param, assume the first one is the request object instead
|
|
138
|
+
const providedParams = !!params && !request && !Array.isArray(params) && isInternalClientRequest(params)
|
|
139
|
+
? {}
|
|
140
|
+
: (_a = params) !== null && _a !== void 0 ? _a : {};
|
|
141
|
+
const requestCtx = !!params && !request && !Array.isArray(params) && isInternalClientRequest(params)
|
|
142
|
+
? params
|
|
143
|
+
: request;
|
|
144
|
+
const method = methodParam.toLowerCase();
|
|
145
|
+
const config = configThunk();
|
|
146
|
+
const fetchImpl = (_b = config.fetch) !== null && _b !== void 0 ? _b : fetch;
|
|
147
|
+
const accessToken = (_c = requestCtx === null || requestCtx === void 0 ? void 0 : requestCtx.accessToken) !== null && _c !== void 0 ? _c : config.accessToken;
|
|
148
|
+
const projectId = (_d = requestCtx === null || requestCtx === void 0 ? void 0 : requestCtx.projectId) !== null && _d !== void 0 ? _d : configThunk().projectId;
|
|
149
|
+
let finalPath = path;
|
|
150
|
+
let finalParams = providedParams;
|
|
151
|
+
if (!Array.isArray(providedParams)) {
|
|
152
|
+
const [subbedPath, addlParams] = subParamsInPath(path, providedParams);
|
|
153
|
+
finalPath = subbedPath;
|
|
154
|
+
finalParams = addlParams;
|
|
155
|
+
}
|
|
156
|
+
finalPath = finalPath.replace(/^\//, ''); // remove leading slash
|
|
157
|
+
const baseUrlEvaluated = baseUrlThunk();
|
|
158
|
+
const fullBaseUrl = baseUrlEvaluated.endsWith('/') ? baseUrlEvaluated : baseUrlEvaluated + '/';
|
|
159
|
+
const url = new URL(finalPath, fullBaseUrl);
|
|
160
|
+
let body;
|
|
161
|
+
if (Array.isArray(finalParams)) {
|
|
162
|
+
body = JSON.stringify(finalParams);
|
|
163
|
+
}
|
|
164
|
+
else if (Object.keys(finalParams).length) {
|
|
165
|
+
if (method === 'get') {
|
|
166
|
+
addParamsToSearch(finalParams, url.searchParams);
|
|
167
|
+
}
|
|
168
|
+
else if ((requestCtx === null || requestCtx === void 0 ? void 0 : requestCtx.contentType) === 'application/x-www-form-urlencoded') {
|
|
169
|
+
const search = new URLSearchParams();
|
|
170
|
+
addParamsToSearch(finalParams, search);
|
|
171
|
+
body = search.toString();
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
body = JSON.stringify(finalParams);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
// override for rpc call
|
|
179
|
+
if ((requestCtx === null || requestCtx === void 0 ? void 0 : requestCtx.contentType) !== 'application/x-www-form-urlencoded' && method === 'post') {
|
|
180
|
+
body = '{}';
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
const headers = Object.assign(projectId
|
|
184
|
+
? {
|
|
185
|
+
'x-zapehr-project-id': projectId,
|
|
186
|
+
'x-oystehr-project-id': projectId,
|
|
187
|
+
}
|
|
188
|
+
: {}, {
|
|
189
|
+
'content-type': (_e = requestCtx === null || requestCtx === void 0 ? void 0 : requestCtx.contentType) !== null && _e !== void 0 ? _e : 'application/json',
|
|
190
|
+
}, accessToken ? { Authorization: `Bearer ${accessToken}` } : {}, (requestCtx === null || requestCtx === void 0 ? void 0 : requestCtx.ifMatch) ? { 'If-Match': requestCtx.ifMatch } : {}, { 'x-oystehr-request-id': (_f = requestCtx === null || requestCtx === void 0 ? void 0 : requestCtx.requestId) !== null && _f !== void 0 ? _f : uuid.v4() });
|
|
191
|
+
const retryConfig = {
|
|
192
|
+
retries: (_h = (_g = config.retry) === null || _g === void 0 ? void 0 : _g.retries) !== null && _h !== void 0 ? _h : 3,
|
|
193
|
+
onRetry: (_j = config.retry) === null || _j === void 0 ? void 0 : _j.onRetry,
|
|
194
|
+
// Using array instead of set because the length is too short for uniqueness to be important
|
|
195
|
+
retryOn: [...((_l = (_k = config.retry) === null || _k === void 0 ? void 0 : _k.retryOn) !== null && _l !== void 0 ? _l : []), ...STATUS_CODES_TO_RETRY],
|
|
196
|
+
};
|
|
197
|
+
retryConfig.retryOn.push(...STATUS_CODES_TO_RETRY);
|
|
198
|
+
return retry((attempt) => __awaiter(this, void 0, void 0, function* () {
|
|
199
|
+
var _m, _o, _p, _q, _r, _s;
|
|
200
|
+
const response = yield fetchImpl(new Request(url, {
|
|
201
|
+
method: method.toUpperCase(),
|
|
202
|
+
body,
|
|
203
|
+
headers,
|
|
204
|
+
}));
|
|
205
|
+
const responseBody = response.body ? yield response.text() : null;
|
|
206
|
+
let responseJson;
|
|
207
|
+
try {
|
|
208
|
+
responseJson =
|
|
209
|
+
responseBody &&
|
|
210
|
+
(((_m = response.headers.get('content-type')) === null || _m === void 0 ? void 0 : _m.includes('application/json')) ||
|
|
211
|
+
((_o = response.headers.get('content-type')) === null || _o === void 0 ? void 0 : _o.includes('application/fhir+json')))
|
|
212
|
+
? JSON.parse(responseBody)
|
|
213
|
+
: null;
|
|
214
|
+
}
|
|
215
|
+
catch (err) {
|
|
216
|
+
// ignore JSON.parse errors
|
|
217
|
+
responseJson = null;
|
|
218
|
+
}
|
|
219
|
+
const isError = !response.ok || response.status >= 400;
|
|
220
|
+
if (isError) {
|
|
221
|
+
headers['x-oystehr-fetch-attempts'] = `${attempt}`;
|
|
222
|
+
const errObj = {
|
|
223
|
+
message: (_r = (_q = (_p = responseJson === null || responseJson === void 0 ? void 0 : responseJson.message) !== null && _p !== void 0 ? _p : responseJson) !== null && _q !== void 0 ? _q : responseBody) !== null && _r !== void 0 ? _r : response.statusText,
|
|
224
|
+
code: (_s = responseJson === null || responseJson === void 0 ? void 0 : responseJson.code) !== null && _s !== void 0 ? _s : response.status,
|
|
225
|
+
response,
|
|
226
|
+
};
|
|
227
|
+
throw errObj;
|
|
228
|
+
}
|
|
229
|
+
return responseJson;
|
|
230
|
+
}), retryConfig);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
function retry(work, config) {
|
|
234
|
+
var _a, _b;
|
|
235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
let lastErr;
|
|
237
|
+
for (const attempt of Array.from({ length: ((_a = config.retries) !== null && _a !== void 0 ? _a : 0) + 1 }, (_, index) => index)) {
|
|
238
|
+
try {
|
|
239
|
+
return yield work(attempt);
|
|
240
|
+
}
|
|
241
|
+
catch (e) {
|
|
242
|
+
let isRetryable = false;
|
|
243
|
+
if ('response' in e) {
|
|
244
|
+
// error from API
|
|
245
|
+
const err = e;
|
|
246
|
+
isRetryable = config.retryOn.includes(err.code);
|
|
247
|
+
// Removes response
|
|
248
|
+
lastErr = { message: e.message, code: e.code };
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
lastErr = e;
|
|
252
|
+
// error from fetch
|
|
253
|
+
if ('code' in e && typeof e.code === 'string') {
|
|
254
|
+
const err = e;
|
|
255
|
+
isRetryable = ERROR_CODES_TO_RETRY.includes(err.code);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
if (!isRetryable) {
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
if (config.onRetry && attempt !== ((_b = config.retries) !== null && _b !== void 0 ? _b : 0)) {
|
|
262
|
+
config.onRetry(attempt + 1);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
throw lastErr;
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Substitutes params in a path and returns the path with params substituted and any unused params.
|
|
271
|
+
*
|
|
272
|
+
* Uses the property names in the params object to determine the param to substitute in the path.
|
|
273
|
+
*
|
|
274
|
+
* @param path JSON API resource URI
|
|
275
|
+
* @param params all params provided to the client method
|
|
276
|
+
* @returns resource URI with params substituted and any unused params
|
|
277
|
+
*/
|
|
278
|
+
function subParamsInPath(path, params) {
|
|
279
|
+
const unusedParams = Object.assign({}, params);
|
|
280
|
+
// capture everything of the form `{paramName}` and replace with the value of `params[paramName]`
|
|
281
|
+
const subbedPath = path.replace(/\{([^}]+)\}/g, (_, paramName) => {
|
|
282
|
+
delete unusedParams[paramName];
|
|
283
|
+
// override for path params that are paths, indicated by a `+` at the end
|
|
284
|
+
if (paramName.match(/^.*\+$/)) {
|
|
285
|
+
return params[paramName] + '';
|
|
286
|
+
}
|
|
287
|
+
// error if param value is empty
|
|
288
|
+
if (!params[paramName] || params[paramName] === '') {
|
|
289
|
+
throw new OystehrSdkError({ message: `Required path parameter is an empty string: ${paramName}`, code: 400 });
|
|
290
|
+
}
|
|
291
|
+
// encode search params
|
|
292
|
+
if (params[paramName]) {
|
|
293
|
+
return encodeURIComponent(params[paramName] + ''); // coerce to string
|
|
294
|
+
}
|
|
295
|
+
return '';
|
|
296
|
+
});
|
|
297
|
+
const unusedKeys = Object.keys(unusedParams);
|
|
298
|
+
const addlParams = unusedKeys.length
|
|
299
|
+
? unusedKeys.reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: unusedParams[key] })), {})
|
|
300
|
+
: {};
|
|
301
|
+
return [subbedPath, addlParams];
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Adds params to a URLSearchParams object in such a way as to preserve array values.
|
|
305
|
+
* @param params params
|
|
306
|
+
* @param search URLSearchParams object
|
|
307
|
+
*/
|
|
308
|
+
function addParamsToSearch(params, search) {
|
|
309
|
+
for (const [key, value] of Object.entries(params)) {
|
|
310
|
+
if (Array.isArray(value)) {
|
|
311
|
+
value.forEach((v) => search.append(key, v));
|
|
312
|
+
continue;
|
|
313
|
+
}
|
|
314
|
+
search.append(key, value);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
319
|
+
class Application extends SDKResource {
|
|
320
|
+
constructor(config) {
|
|
321
|
+
super(config);
|
|
322
|
+
/**
|
|
323
|
+
* Get a list of Applications. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
324
|
+
*
|
|
325
|
+
* Access Policy Action: `App:ListAllApplications`
|
|
326
|
+
* Access Policy Resource: `App:Application`
|
|
327
|
+
*/
|
|
328
|
+
this.list = (request) => this.request('/application', 'get')(request);
|
|
329
|
+
/**
|
|
330
|
+
* Create a new Application. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
331
|
+
*
|
|
332
|
+
* Access Policy Action: `App:CreateApplication`
|
|
333
|
+
* Access Policy Resource: `App:Application`
|
|
334
|
+
*/
|
|
335
|
+
this.create = (params, request) => this.request('/application', 'post')(params, request);
|
|
336
|
+
/**
|
|
337
|
+
* Get the Application with the provided ID. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
338
|
+
*
|
|
339
|
+
* Access Policy Action: `App:GetApplication`
|
|
340
|
+
* Access Policy Resource: `App:Application`
|
|
341
|
+
*/
|
|
342
|
+
this.get = (params, request) => this.request('/application/{id}', 'get')(params, request);
|
|
343
|
+
/**
|
|
344
|
+
* Update the Application with the provided ID. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
345
|
+
*
|
|
346
|
+
* Access Policy Action: `App:UpdateApplication`
|
|
347
|
+
* Access Policy Resource: `App:Application`
|
|
348
|
+
*/
|
|
349
|
+
this.update = (params, request) => this.request('/application/{id}', 'patch')(params, request);
|
|
350
|
+
/**
|
|
351
|
+
* Delete the Application with the provided ID. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
352
|
+
*
|
|
353
|
+
* Access Policy Action: `App:DeleteApplication`
|
|
354
|
+
* Access Policy Resource: `App:Application`
|
|
355
|
+
*/
|
|
356
|
+
this.delete = (params, request) => this.request('/application/{id}', 'delete')(params, request);
|
|
357
|
+
/**
|
|
358
|
+
* Rotate client's secrete associated with an application.
|
|
359
|
+
*
|
|
360
|
+
* Access Policy Action: `App:RotateApplicationSecret`
|
|
361
|
+
* Access Policy Resource: `App:Application`
|
|
362
|
+
*/
|
|
363
|
+
this.rotateSecret = (params, request) => this.request('/application/{id}/rotate-secret', 'post')(params, request);
|
|
364
|
+
/**
|
|
365
|
+
* Revokes user's refresh token issued for the application.
|
|
366
|
+
*
|
|
367
|
+
* Access Policy Action: `App:RevokeRefreshToken`
|
|
368
|
+
* Access Policy Resource: `App:Application`
|
|
369
|
+
*/
|
|
370
|
+
this.revokeRefreshToken = (params, request) => this.request('/application/{id}/revoke-refresh-token', 'post')(params, request);
|
|
371
|
+
/**
|
|
372
|
+
* Revokes user's access token issued for the application.
|
|
373
|
+
*
|
|
374
|
+
* Access Policy Action: `App:RevokeAccessToken`
|
|
375
|
+
* Access Policy Resource: `App:Application`
|
|
376
|
+
*/
|
|
377
|
+
this.revokeAccessToken = (params, request) => this.request('/application/{id}/revoke-access-token', 'post')(params, request);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
382
|
+
class Charge extends SDKResource {
|
|
383
|
+
constructor(config) {
|
|
384
|
+
super(config);
|
|
385
|
+
/**
|
|
386
|
+
* Charge patient's default payment method for a specified encounter or charge item.
|
|
387
|
+
*
|
|
388
|
+
* Access Policy Requirements:
|
|
389
|
+
* Action: `Payment:Issue`
|
|
390
|
+
* Access Policy Resource: `Payment:Charge`
|
|
391
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
392
|
+
* Access Policy Resource: `FHIR:ChargeItem:*,`FHIR:PaymentReconciliation:*`
|
|
393
|
+
* Action: `FHIR:Read`
|
|
394
|
+
* Access Policy Resources: `FHIR:Patient:*,FHIR:Encounter:*,FHIR:Coverage:*`
|
|
395
|
+
*/
|
|
396
|
+
this.issue = (params, request) => this.request('/payment/charge/issue', 'post')(params, request);
|
|
397
|
+
/**
|
|
398
|
+
* Retrieve charge status for a specified encounter or charge item.
|
|
399
|
+
*
|
|
400
|
+
* Access Policy Requirements:
|
|
401
|
+
* Action: `Payment:Status`
|
|
402
|
+
* Access Policy Resource: `Payment:Charge`
|
|
403
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
404
|
+
* Access Policy Resource: `FHIR:ChargeItem:*,`FHIR:PaymentReconciliation:*`
|
|
405
|
+
* Action: `FHIR:Read`
|
|
406
|
+
* Access Policy Resources: `FHIR:Patient:*,FHIR:Encounter:*,FHIR:Coverage:*`
|
|
407
|
+
*/
|
|
408
|
+
this.status = (params, request) => this.request('/payment/charge/status', 'post')(params, request);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
const ENCOUNTER_VS_EXTENSION_URL = 'https://extensions.fhir.zapehr.com/encounter-virtual-service-pre-release';
|
|
413
|
+
const ENCOUNTER_VS_EXTENSION_RELATIVE_URL = 'addressString';
|
|
414
|
+
const ENCOUNTER_VS_CODING_SYSTEM = 'https://fhir.zapehr.com/virtual-service-type';
|
|
415
|
+
function isR5Encounter(encounter) {
|
|
416
|
+
return Object.hasOwn(encounter, 'virtualService');
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Helper function to get a conversationId from an encounter created as an Oystehr Conversation
|
|
420
|
+
* @param encounter well-formed FHIR R4B or R5 Encounter
|
|
421
|
+
* @returns conversationId
|
|
422
|
+
*/
|
|
423
|
+
function getConversationIdFromEncounter(encounter) {
|
|
424
|
+
var _a, _b, _c;
|
|
425
|
+
if (isR5Encounter(encounter)) {
|
|
426
|
+
const virtualService = (_a = encounter.virtualService) === null || _a === void 0 ? void 0 : _a.find((vs) => { var _a; return ((_a = vs.channelType) === null || _a === void 0 ? void 0 : _a.system) === ENCOUNTER_VS_CODING_SYSTEM; });
|
|
427
|
+
return virtualService === null || virtualService === void 0 ? void 0 : virtualService.addressString;
|
|
428
|
+
}
|
|
429
|
+
if (!encounter.extension)
|
|
430
|
+
return;
|
|
431
|
+
const virtualServiceExtension = encounter.extension.find((extension) => extension.url === ENCOUNTER_VS_EXTENSION_URL);
|
|
432
|
+
if (!(virtualServiceExtension === null || virtualServiceExtension === void 0 ? void 0 : virtualServiceExtension.extension))
|
|
433
|
+
return;
|
|
434
|
+
const conversationId = (_c = (_b = virtualServiceExtension.extension) === null || _b === void 0 ? void 0 : _b.find((extension) => extension.url === ENCOUNTER_VS_EXTENSION_RELATIVE_URL)) === null || _c === void 0 ? void 0 : _c.valueString;
|
|
435
|
+
return conversationId;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
439
|
+
class Conversation extends SDKResource {
|
|
440
|
+
constructor(config) {
|
|
441
|
+
super(config);
|
|
442
|
+
this.ENCOUNTER_VS_EXTENSION_URL = ENCOUNTER_VS_EXTENSION_URL;
|
|
443
|
+
this.ENCOUNTER_VS_EXTENSION_RELATIVE_URL = ENCOUNTER_VS_EXTENSION_RELATIVE_URL;
|
|
444
|
+
/**
|
|
445
|
+
* Helper function to get a conversationId from an encounter created as an Oystehr Conversation
|
|
446
|
+
* @param encounter well-formed FHIR R4B or R5 Encounter
|
|
447
|
+
* @returns conversationId
|
|
448
|
+
*/
|
|
449
|
+
this.getConversationIdFromEncounter = getConversationIdFromEncounter;
|
|
450
|
+
/**
|
|
451
|
+
* Create a new Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
452
|
+
*
|
|
453
|
+
* Access Policy Requirements:
|
|
454
|
+
* Action: `Messaging:CreateConversation`
|
|
455
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
456
|
+
* Action: `FHIR:Create`
|
|
457
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
458
|
+
* Action: `FHIR:Update`
|
|
459
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
460
|
+
*/
|
|
461
|
+
this.create = (params, request) => this.request('/messaging/conversation', 'post')(params, request);
|
|
462
|
+
/**
|
|
463
|
+
* Get a Conversation Token. Conversation Tokens are used to join the Conversation with the Twilio Conversations SDKs. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
464
|
+
*
|
|
465
|
+
* Access Policy Action: `Messaging:GetConversationToken`
|
|
466
|
+
* Access Policy Resource: `Messaging:Conversation`.
|
|
467
|
+
*/
|
|
468
|
+
this.getToken = (request) => this.request('/messaging/conversation/token', 'get')(request);
|
|
469
|
+
/**
|
|
470
|
+
* Add a participant to a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
471
|
+
*
|
|
472
|
+
* Access Policy Requirements:
|
|
473
|
+
* Action: `Messaging:ConversationAddParticipant`
|
|
474
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
475
|
+
* Action: `FHIR:Read`
|
|
476
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
477
|
+
* Action: `FHIR:Update`
|
|
478
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
479
|
+
*/
|
|
480
|
+
this.addParticipant = (params, request) => this.request('/messaging/conversation/{conversationId}/participant', 'post')(params, request);
|
|
481
|
+
/**
|
|
482
|
+
* Remove a participant from a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
483
|
+
*
|
|
484
|
+
* Access Policy Requirements:
|
|
485
|
+
* Action: `Messaging:ConversationRemoveParticipant`
|
|
486
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
487
|
+
* Action: `FHIR:Read`
|
|
488
|
+
* Access Policy Resource: `FHIR:Patient`, `FHIR:Practitioner`, or `FHIR:RelatedPerson`
|
|
489
|
+
*/
|
|
490
|
+
this.removeParticipant = (params, request) => this.request('/messaging/conversation/{conversationId}/participant', 'delete')(params, request);
|
|
491
|
+
/**
|
|
492
|
+
* Send a message to a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
493
|
+
*
|
|
494
|
+
* Access Policy Requirements:
|
|
495
|
+
* Action: `Messaging:ConversationSendMessage`
|
|
496
|
+
* Access Policy Resource: `Messaging:Conversation`
|
|
497
|
+
*/
|
|
498
|
+
this.message = (params, request) => this.request('/messaging/conversation/{conversationId}/message', 'post')(params, request);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
503
|
+
class Developer extends SDKResource {
|
|
504
|
+
constructor(config) {
|
|
505
|
+
super(config);
|
|
506
|
+
/**
|
|
507
|
+
* Get the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
508
|
+
*
|
|
509
|
+
* Access Policy Action: `IAM:GetDeveloper`
|
|
510
|
+
* Access Policy Resource: `IAM:Developer`
|
|
511
|
+
*/
|
|
512
|
+
this.get = (params, request) => this.request('/developer/{id}', 'get')(params, request);
|
|
513
|
+
/**
|
|
514
|
+
* Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
515
|
+
*
|
|
516
|
+
* Access Policy Action: `IAM:UpdateDeveloper`
|
|
517
|
+
* Access Policy Resource: `IAM:Developer`
|
|
518
|
+
*/
|
|
519
|
+
this.update = (params, request) => this.request('/developer/{id}', 'patch')(params, request);
|
|
520
|
+
/**
|
|
521
|
+
* Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
522
|
+
*
|
|
523
|
+
* Access Policy Action: `IAM:RemoveDeveloper`
|
|
524
|
+
* Access Policy Resource: `IAM:Developer`
|
|
525
|
+
*/
|
|
526
|
+
this.delete = (params, request) => this.request('/developer/{id}', 'delete')(params, request);
|
|
527
|
+
/**
|
|
528
|
+
* Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
529
|
+
*
|
|
530
|
+
* Access Policy Action: `IAM:InviteDeveloper`
|
|
531
|
+
* Access Policy Resource: `IAM:Developer`
|
|
532
|
+
*/
|
|
533
|
+
this.invite = (params, request) => this.request('/developer/invite', 'post')(params, request);
|
|
534
|
+
/**
|
|
535
|
+
* DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_developer-v2-list) instead.
|
|
536
|
+
*
|
|
537
|
+
* Get a list of all Developers who are part of the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
538
|
+
*
|
|
539
|
+
* Access Policy Action: `IAM:ListAllDevelopers`
|
|
540
|
+
* Access Policy Resource: `IAM:Developer`
|
|
541
|
+
*/
|
|
542
|
+
this.list = (request) => this.request('/developer', 'get')(request);
|
|
543
|
+
/**
|
|
544
|
+
* Get Developers in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
545
|
+
*
|
|
546
|
+
* Access Policy Action: `Project:ListAllUsers`
|
|
547
|
+
* Access Policy Resource: `Project:Settings`
|
|
548
|
+
*/
|
|
549
|
+
this.listV2 = (params, request) => this.request('/developer/v2/list', 'get')(params, request);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
554
|
+
class Erx extends SDKResource {
|
|
555
|
+
constructor(config) {
|
|
556
|
+
super(config);
|
|
557
|
+
/**
|
|
558
|
+
* Retrieve patient properties from FHIR service and sync them with eRx service
|
|
559
|
+
*/
|
|
560
|
+
this.syncPatient = (params, request) => this.request('/erx/sync-patient/{patientId}', 'post')(params, request);
|
|
561
|
+
/**
|
|
562
|
+
* Search for allergies
|
|
563
|
+
*/
|
|
564
|
+
this.allergySearch = (params, request) => this.request('/erx/allergy/search', 'get')(params, request);
|
|
565
|
+
/**
|
|
566
|
+
* Search for medications. Provide at least one of code or name filters
|
|
567
|
+
*/
|
|
568
|
+
this.medicationSearch = (params, request) => this.request('/erx/medication/search', 'get')(params, request);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Performs a FHIR search and returns the results as a Bundle resource
|
|
574
|
+
*
|
|
575
|
+
* @param options FHIR resource type and FHIR search parameters
|
|
576
|
+
* @param request optional OystehrClientRequest object
|
|
577
|
+
* @returns FHIR Bundle resource
|
|
578
|
+
*/
|
|
579
|
+
function search({ resourceType, params }, request) {
|
|
580
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
581
|
+
let paramMap;
|
|
582
|
+
if (params) {
|
|
583
|
+
paramMap = Object.entries(params).reduce((acc, [_, param]) => {
|
|
584
|
+
if (!acc[param.name]) {
|
|
585
|
+
acc[param.name] = [];
|
|
586
|
+
}
|
|
587
|
+
acc[param.name].push(param.value);
|
|
588
|
+
return acc;
|
|
589
|
+
}, {});
|
|
590
|
+
}
|
|
591
|
+
const requestBundle = yield this.fhirRequest(`/${resourceType}/_search`, 'POST')(paramMap, Object.assign(Object.assign({}, request), { contentType: 'application/x-www-form-urlencoded' }));
|
|
592
|
+
const bundle = Object.assign(Object.assign({}, requestBundle), { unbundle: function () {
|
|
593
|
+
var _a, _b;
|
|
594
|
+
return (_b = (_a = this.entry) === null || _a === void 0 ? void 0 : _a.map((entry) => entry.resource).filter((entry) => entry !== undefined)) !== null && _b !== void 0 ? _b : [];
|
|
595
|
+
} });
|
|
596
|
+
return bundle;
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
function create(params, request) {
|
|
600
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
601
|
+
const { resourceType } = params;
|
|
602
|
+
return this.fhirRequest(`/${resourceType}`, 'POST')(params, request);
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
function get({ resourceType, id }, request) {
|
|
606
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
607
|
+
return this.fhirRequest(`/${resourceType}/${id}`, 'GET')({}, request);
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
function update(params, request) {
|
|
611
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
612
|
+
const { id, resourceType } = params;
|
|
613
|
+
return this.fhirRequest(`/${resourceType}/${id}`, 'PUT')(params, Object.assign(Object.assign({}, request), { ifMatch: (request === null || request === void 0 ? void 0 : request.optimisticLockingVersionId) ? `W/"${request.optimisticLockingVersionId}"` : undefined }));
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
function patch({ resourceType, id, operations }, request) {
|
|
617
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
618
|
+
return this.fhirRequest(`/${resourceType}/${id}`, 'PATCH')(operations, Object.assign(Object.assign({}, request), { contentType: 'application/json-patch+json', ifMatch: (request === null || request === void 0 ? void 0 : request.optimisticLockingVersionId) ? `W/"${request.optimisticLockingVersionId}"` : undefined }));
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
function del({ resourceType, id }, request) {
|
|
622
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
623
|
+
return this.fhirRequest(`/${resourceType}/${id}`, 'DELETE')({}, request);
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
function history({ resourceType, id, versionId }, request) {
|
|
627
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
628
|
+
return this.fhirRequest(`/${resourceType}/${id}/_history${versionId ? `/${versionId}` : ''}`, 'GET')({}, request);
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
function batchInputRequestToBundleEntryItem(request) {
|
|
632
|
+
const { method, url } = request;
|
|
633
|
+
const baseRequest = {
|
|
634
|
+
request: {
|
|
635
|
+
method,
|
|
636
|
+
url,
|
|
637
|
+
},
|
|
638
|
+
};
|
|
639
|
+
// Escape query string parameters in entry.request.url
|
|
640
|
+
if (url.split('?').length > 1) {
|
|
641
|
+
const [resource, query] = url.split('?');
|
|
642
|
+
const params = query
|
|
643
|
+
.split('&')
|
|
644
|
+
.map((param) => {
|
|
645
|
+
const [name, value] = param.split('=');
|
|
646
|
+
return { name, value };
|
|
647
|
+
})
|
|
648
|
+
.reduce((acc, { name, value }) => {
|
|
649
|
+
acc[name] = value;
|
|
650
|
+
return acc;
|
|
651
|
+
}, {});
|
|
652
|
+
const search = new URLSearchParams();
|
|
653
|
+
addParamsToSearch(params, search);
|
|
654
|
+
baseRequest.request.url = `${resource}?${search.toString()}`;
|
|
655
|
+
}
|
|
656
|
+
// GET, DELETE, and HEAD require no further parameters
|
|
657
|
+
if (['GET', 'DELETE', 'HEAD'].includes(method)) {
|
|
658
|
+
return baseRequest;
|
|
659
|
+
}
|
|
660
|
+
// PUT updates require a full resource
|
|
661
|
+
if (method === 'PUT') {
|
|
662
|
+
const { resource } = request;
|
|
663
|
+
return Object.assign(Object.assign({}, baseRequest), { resource: resource });
|
|
664
|
+
}
|
|
665
|
+
// PATCH can be Binary resource or JSON patch
|
|
666
|
+
if (method === 'PATCH') {
|
|
667
|
+
if ('resource' in request) {
|
|
668
|
+
return Object.assign(Object.assign({}, baseRequest), { resource: request.resource });
|
|
669
|
+
}
|
|
670
|
+
return Object.assign(Object.assign({}, baseRequest), { resource: {
|
|
671
|
+
resourceType: 'Binary',
|
|
672
|
+
contentType: 'application/json-patch+json',
|
|
673
|
+
data: Buffer.from(JSON.stringify(request.operations), 'utf8').toString('base64'),
|
|
674
|
+
} });
|
|
675
|
+
}
|
|
676
|
+
// POST creates require a full resource
|
|
677
|
+
if (method === 'POST') {
|
|
678
|
+
const { resource, fullUrl } = request;
|
|
679
|
+
return Object.assign(Object.assign({}, baseRequest), { resource: resource, fullUrl });
|
|
680
|
+
}
|
|
681
|
+
throw new Error('Unrecognized method');
|
|
682
|
+
}
|
|
683
|
+
function bundleRequest(type) {
|
|
684
|
+
return function (input, request) {
|
|
685
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
686
|
+
return this.fhirRequest('/', 'POST')({
|
|
687
|
+
resourceType: 'Bundle',
|
|
688
|
+
type,
|
|
689
|
+
entry: input.requests.map(batchInputRequestToBundleEntryItem),
|
|
690
|
+
}, request);
|
|
691
|
+
});
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
const batch = bundleRequest('batch');
|
|
695
|
+
const transaction = bundleRequest('transaction');
|
|
696
|
+
|
|
697
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
698
|
+
class Fhir extends SDKResource {
|
|
699
|
+
constructor(config) {
|
|
700
|
+
super(config);
|
|
701
|
+
/**
|
|
702
|
+
* Performs a FHIR search and returns the results as a Bundle resource
|
|
703
|
+
* @param options FHIR resource type and FHIR search parameters
|
|
704
|
+
* @param request optional OystehrClientRequest object
|
|
705
|
+
* @returns FHIR Bundle resource
|
|
706
|
+
*/
|
|
707
|
+
this.search = search;
|
|
708
|
+
this.create = create;
|
|
709
|
+
this.get = get;
|
|
710
|
+
this.update = update;
|
|
711
|
+
this.patch = patch;
|
|
712
|
+
this.delete = del;
|
|
713
|
+
this.history = history;
|
|
714
|
+
this.batch = batch;
|
|
715
|
+
this.transaction = transaction;
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
720
|
+
class M2m extends SDKResource {
|
|
721
|
+
constructor(config) {
|
|
722
|
+
super(config);
|
|
723
|
+
/**
|
|
724
|
+
* DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_m2m-v2-list) instead.
|
|
725
|
+
*
|
|
726
|
+
* Get a list of all M2M Clients. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
727
|
+
*
|
|
728
|
+
* Access Policy Action: `App:ListAllM2MClients`
|
|
729
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
730
|
+
*/
|
|
731
|
+
this.list = (request) => this.request('/m2m', 'get')(request);
|
|
732
|
+
/**
|
|
733
|
+
* Create a new M2M Client. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
734
|
+
*
|
|
735
|
+
* Access Policy Action: `App:CreateM2MClient`
|
|
736
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
737
|
+
*/
|
|
738
|
+
this.create = (params, request) => this.request('/m2m', 'post')(params, request);
|
|
739
|
+
/**
|
|
740
|
+
* Get the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
741
|
+
*
|
|
742
|
+
* Access Policy Action: `App:GetM2MClient`
|
|
743
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
744
|
+
*/
|
|
745
|
+
this.get = (params, request) => this.request('/m2m/{id}', 'get')(params, request);
|
|
746
|
+
/**
|
|
747
|
+
* Update the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
748
|
+
*
|
|
749
|
+
* Access Policy Action: `App:UpdateM2MClient`
|
|
750
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
751
|
+
*/
|
|
752
|
+
this.update = (params, request) => this.request('/m2m/{id}', 'patch')(params, request);
|
|
753
|
+
/**
|
|
754
|
+
* Delete the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
755
|
+
*
|
|
756
|
+
* Access Policy Action: `App:DeleteM2MClient`
|
|
757
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
758
|
+
*/
|
|
759
|
+
this.delete = (params, request) => this.request('/m2m/{id}', 'delete')(params, request);
|
|
760
|
+
/**
|
|
761
|
+
* Rotate the client secret for the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
762
|
+
*
|
|
763
|
+
* Access Policy Action: `App:RotateM2MClientSecret`
|
|
764
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
765
|
+
*/
|
|
766
|
+
this.rotateSecret = (params, request) => this.request('/m2m/{id}/rotate-secret', 'post')(params, request);
|
|
767
|
+
/**
|
|
768
|
+
* Get M2M clients in the Project with pagination, sort, sort Order and filtering. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
769
|
+
*
|
|
770
|
+
* Access Policy Action: `App:ListAllM2MClients`
|
|
771
|
+
* Access Policy Resource: `IAM:M2MClient`
|
|
772
|
+
*/
|
|
773
|
+
this.listV2 = (params, request) => this.request('/m2m/v2/list', 'get')(params, request);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
778
|
+
class Messaging extends SDKResource {
|
|
779
|
+
constructor(config) {
|
|
780
|
+
super(config);
|
|
781
|
+
/**
|
|
782
|
+
* Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.
|
|
783
|
+
*/
|
|
784
|
+
this.getMessagingConfig = (request) => this.request('/messaging/config', 'get')(request);
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
789
|
+
class PaymentMethod extends SDKResource {
|
|
790
|
+
constructor(config) {
|
|
791
|
+
super(config);
|
|
792
|
+
/**
|
|
793
|
+
* Enter a new credit card or other payment method for the user.
|
|
794
|
+
*
|
|
795
|
+
* Access Policy Requirements:
|
|
796
|
+
* Action: `Payment:Setup`
|
|
797
|
+
* Access Policy Resource: `Payment:PaymentMethod`
|
|
798
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
799
|
+
* Access Policy Resource: `FHIR:Coverage:*`
|
|
800
|
+
* Action: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
801
|
+
* Access Policy Resource: `FHIR:Account:*`
|
|
802
|
+
*
|
|
803
|
+
* Also need to be able to read the patients' details. For example:
|
|
804
|
+
* Action: `FHIR:Read`
|
|
805
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
806
|
+
*/
|
|
807
|
+
this.setUp = (params, request) => this.request('/payment/payment-method/setup', 'post')(params, request);
|
|
808
|
+
/**
|
|
809
|
+
* Set a specified payment method for the user as default.
|
|
810
|
+
*
|
|
811
|
+
* Access Policy Requirements:
|
|
812
|
+
* Action: `Payment:SetDefault`
|
|
813
|
+
* Access Policy Resource: `Payment:PaymentMethod`
|
|
814
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
815
|
+
* Access Policy Resource: `FHIR:Coverage:*`
|
|
816
|
+
* Action: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
817
|
+
* Access Policy Resource: `FHIR:Account:*`
|
|
818
|
+
*
|
|
819
|
+
* Also need to be able to read the patients' details. For example:
|
|
820
|
+
* Action: `FHIR:Read`
|
|
821
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
822
|
+
*/
|
|
823
|
+
this.setDefault = (params, request) => this.request('/payment/payment-method/set-default', 'post')(params, request);
|
|
824
|
+
/**
|
|
825
|
+
* Delete a specified payment method for the beneficiary.
|
|
826
|
+
*
|
|
827
|
+
* Access Policy Requirements:
|
|
828
|
+
* Action: `Payment:Delete`
|
|
829
|
+
* Access Policy Resource: `Payment:PaymentMethod`
|
|
830
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
831
|
+
* Access Policy Resource: `FHIR:Coverage:*`
|
|
832
|
+
* Action: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
833
|
+
* Access Policy Resource: `FHIR:Account:*`
|
|
834
|
+
*
|
|
835
|
+
* Also need to be able to read the patients' details. For example:
|
|
836
|
+
* Action: `FHIR:Read`
|
|
837
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
838
|
+
*/
|
|
839
|
+
this.delete = (params, request) => this.request('/payment/payment-method', 'delete')(params, request);
|
|
840
|
+
/**
|
|
841
|
+
* List all payment methods for the patient.
|
|
842
|
+
*
|
|
843
|
+
* Access Policy Requirements:
|
|
844
|
+
* Action: `Payment:Setup`
|
|
845
|
+
* Access Policy Resource: `Payment:PaymentMethod`
|
|
846
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
847
|
+
* Access Policy Resource: `FHIR:Coverage:*`
|
|
848
|
+
* Action: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
849
|
+
* Access Policy Resource: `FHIR:Account:*`
|
|
850
|
+
*
|
|
851
|
+
* Also need to be able to read the patients' details. For example:
|
|
852
|
+
* Action: `FHIR:Read`
|
|
853
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
854
|
+
*/
|
|
855
|
+
this.list = (params, request) => this.request('/payment/payment-method/list', 'post')(params, request);
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
860
|
+
class Project extends SDKResource {
|
|
861
|
+
constructor(config) {
|
|
862
|
+
super(config);
|
|
863
|
+
/**
|
|
864
|
+
* Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/core-documentation/authenticating-api-requests/#x-zapehr-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/services/project/) are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/services/fhir/basics/), [Applications](https://docs.oystehr.com/services/app/applications/), [Users](https://docs.oystehr.com/services/app/users/), etc .
|
|
865
|
+
*
|
|
866
|
+
* Access Policy Action: `Project:GetProjectInfo`
|
|
867
|
+
* Access Policy Resource: `Project:Settings`
|
|
868
|
+
*/
|
|
869
|
+
this.get = (request) => this.request('/project', 'get')(request);
|
|
870
|
+
/**
|
|
871
|
+
* Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.oystehr.com/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/services/fhir/basics/), [Applications](https://docs.oystehr.com/services/app/applications/), [Users](https://docs.oystehr.com/services/app/users/), etc .
|
|
872
|
+
*
|
|
873
|
+
* Access Policy Action: `Project:UpdateProjectInfo`
|
|
874
|
+
* Access Policy Resource: `Project:Settings`
|
|
875
|
+
*/
|
|
876
|
+
this.update = (params, request) => this.request('/project', 'patch')(params, request);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
881
|
+
class Rcm extends SDKResource {
|
|
882
|
+
constructor(config) {
|
|
883
|
+
super(config);
|
|
884
|
+
/**
|
|
885
|
+
* Check [Insurance Eligibility](https://docs.oystehr.com/services/rcm/eligibility/).
|
|
886
|
+
*
|
|
887
|
+
* Access Policy Action: `RCM:CheckInsuranceEligibility`
|
|
888
|
+
* Access Policy Resource: `RCM:InsuranceEligibility`
|
|
889
|
+
*
|
|
890
|
+
* nAccess Policy Action: `FHIR:Create`
|
|
891
|
+
* Access Policy Resource: `FHIR:CoverageEligibilityResponse`
|
|
892
|
+
*/
|
|
893
|
+
this.eligibilityCheck = (params, request) => this.request('/rcm/eligibility-check', 'post')(params, request);
|
|
894
|
+
/**
|
|
895
|
+
* Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
896
|
+
*
|
|
897
|
+
* Access Policy Action: `RCM:ValidateProfessionalClaim`
|
|
898
|
+
* Access Policy Resource: `RCM:Claim`
|
|
899
|
+
*
|
|
900
|
+
* Access Policy Action: `FHIR:Create`
|
|
901
|
+
* Access Policy Resource: `FHIR:AuditEvent`
|
|
902
|
+
*/
|
|
903
|
+
this.validateProfessionalClaim = (params, request) => this.request('/rcm/professional-claim/validate', 'post')(params, request);
|
|
904
|
+
/**
|
|
905
|
+
* Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
906
|
+
*
|
|
907
|
+
* Access Policy Action: `RCM:SubmitProfessionalClaim`
|
|
908
|
+
* Access Policy Resource: `RCM:Claim`
|
|
909
|
+
*
|
|
910
|
+
* Access Policy Action: `FHIR:Create`
|
|
911
|
+
* Access Policy Resource: `FHIR:AuditEvent`
|
|
912
|
+
*
|
|
913
|
+
* Access Policy Actions: `FHIR:Create, FHIR:Update`
|
|
914
|
+
* Access Policy Resource: `FHIR:Claim`
|
|
915
|
+
*/
|
|
916
|
+
this.submitProfessionalClaim = (params, request) => this.request('/rcm/professional-claim/submit', 'post')(params, request);
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
921
|
+
class Role extends SDKResource {
|
|
922
|
+
constructor(config) {
|
|
923
|
+
super(config);
|
|
924
|
+
/**
|
|
925
|
+
* Get a list of all Roles. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
926
|
+
*
|
|
927
|
+
* Access Policy Action: `IAM:ListAllRoles`
|
|
928
|
+
* Access Policy Resource: `IAM:Role`
|
|
929
|
+
*/
|
|
930
|
+
this.list = (request) => this.request('/iam/role', 'get')(request);
|
|
931
|
+
/**
|
|
932
|
+
* Create a new Role. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
933
|
+
*
|
|
934
|
+
* Access Policy Action: `IAM:CreateRole`
|
|
935
|
+
* Access Policy Resource: `IAM:Role`
|
|
936
|
+
*/
|
|
937
|
+
this.create = (params, request) => this.request('/iam/role', 'post')(params, request);
|
|
938
|
+
/**
|
|
939
|
+
* Get the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
940
|
+
*
|
|
941
|
+
* Access Policy Action: `IAM:GetRole`
|
|
942
|
+
* Access Policy Resource: `IAM:Role`
|
|
943
|
+
*/
|
|
944
|
+
this.get = (params, request) => this.request('/iam/role/{roleId}', 'get')(params, request);
|
|
945
|
+
/**
|
|
946
|
+
* Update the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
947
|
+
*
|
|
948
|
+
* Access Policy Action: `IAM:UpdateRole`
|
|
949
|
+
* Access Policy Resource: `IAM:Role`
|
|
950
|
+
*/
|
|
951
|
+
this.update = (params, request) => this.request('/iam/role/{roleId}', 'patch')(params, request);
|
|
952
|
+
/**
|
|
953
|
+
* Delete the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
954
|
+
*
|
|
955
|
+
* Access Policy Action: `IAM:DeleteRole`
|
|
956
|
+
* Access Policy Resource: `IAM:Role`
|
|
957
|
+
* Will fail if any entities hold the Role or if Role is assigned as the default patient role for the project
|
|
958
|
+
*/
|
|
959
|
+
this.delete = (params, request) => this.request('/iam/role/{roleId}', 'delete')(params, request);
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
964
|
+
class Secret extends SDKResource {
|
|
965
|
+
constructor(config) {
|
|
966
|
+
super(config);
|
|
967
|
+
/**
|
|
968
|
+
* Get a list of all secrets in the Project.
|
|
969
|
+
*
|
|
970
|
+
* Access Policy Action: `Zambda:ListAllSecrets`
|
|
971
|
+
* Access Policy Resource: `Zambda:Secret`
|
|
972
|
+
*/
|
|
973
|
+
this.list = (request) => this.request('/secret', 'get')(request);
|
|
974
|
+
/**
|
|
975
|
+
* Create a secret for a project. If the secret is already defined, update it.
|
|
976
|
+
*
|
|
977
|
+
* Access Policy Action: `Zambda:CreateSecret`
|
|
978
|
+
* Access Policy Resource: `Zambda:Secret`
|
|
979
|
+
*/
|
|
980
|
+
this.set = (params, request) => this.request('/secret', 'post')(params, request);
|
|
981
|
+
/**
|
|
982
|
+
* Get the secret with the provided name.
|
|
983
|
+
*
|
|
984
|
+
* Access Policy Action: `Zambda:GetSecret`
|
|
985
|
+
* Access Policy Resource: `Zambda:Secret`
|
|
986
|
+
*/
|
|
987
|
+
this.get = (params, request) => this.request('/secret/{name}', 'get')(params, request);
|
|
988
|
+
/**
|
|
989
|
+
* Delete the secret with the provided name.
|
|
990
|
+
*
|
|
991
|
+
* Access Policy Action: `Zambda:DeleteSecret`
|
|
992
|
+
* Access Policy Resource: `Zambda:Secret`
|
|
993
|
+
*/
|
|
994
|
+
this.delete = (params, request) => this.request('/secret/{name}', 'delete')(params, request);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
999
|
+
class Telemed extends SDKResource {
|
|
1000
|
+
constructor(config) {
|
|
1001
|
+
super(config);
|
|
1002
|
+
/**
|
|
1003
|
+
* Create a [telemedicine video meeting](https://docs.oystehr.com/services/telemed/).
|
|
1004
|
+
*
|
|
1005
|
+
* Access Policy Requirements:
|
|
1006
|
+
* Action: `Telemed:CreateMeeting`
|
|
1007
|
+
* Access Policy Resource: `Telemed:Meeting`
|
|
1008
|
+
* Action: `FHIR:Create`
|
|
1009
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
1010
|
+
* Action: `FHIR:Update`
|
|
1011
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
1012
|
+
*/
|
|
1013
|
+
this.createMeeting = (params, request) => this.request('/telemed/v2/meeting', 'post')(params, request);
|
|
1014
|
+
/**
|
|
1015
|
+
* Get Meeting and Attendee objects necessary to join a telemedicine video meeting.
|
|
1016
|
+
*
|
|
1017
|
+
* Access Policy Requirements:
|
|
1018
|
+
* Action: `Telemed:JoinMeeting`
|
|
1019
|
+
* Access Policy Resource: `Telemed:Meeting`
|
|
1020
|
+
* To use M2M token to join as anonymous user:
|
|
1021
|
+
* Action: `Telemed:AddAnonymousToMeeting`
|
|
1022
|
+
* Access Policy Resource: `Telemed:Meeting`
|
|
1023
|
+
*/
|
|
1024
|
+
this.joinMeeting = (params, request) => this.request('/telemed/v2/meeting/{encounterId}/join', 'get')(params, request);
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
1029
|
+
class TransactionalSMS extends SDKResource {
|
|
1030
|
+
constructor(config) {
|
|
1031
|
+
super(config);
|
|
1032
|
+
/**
|
|
1033
|
+
* Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more.
|
|
1034
|
+
*
|
|
1035
|
+
* Access Policy Requirements:
|
|
1036
|
+
* Action: `Messaging:SendTransactionalSMS`
|
|
1037
|
+
* Access Policy Resource: `Messaging:TransactionalSMS`
|
|
1038
|
+
* Action: `FHIR:Create`
|
|
1039
|
+
* Access Policy Resource: `FHIR:Communication`
|
|
1040
|
+
* Action: `FHIR:Update`
|
|
1041
|
+
* Access Policy Resource: `FHIR:Communication`
|
|
1042
|
+
*
|
|
1043
|
+
* You also need Read access for the resource to which you are sending a message. For example:
|
|
1044
|
+
* Action: `FHIR:Read`
|
|
1045
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
1046
|
+
*/
|
|
1047
|
+
this.send = (params, request) => this.request('/messaging/transactional-sms/send', 'post')(params, request);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
1052
|
+
class User extends SDKResource {
|
|
1053
|
+
constructor(config) {
|
|
1054
|
+
super(config);
|
|
1055
|
+
/**
|
|
1056
|
+
* Get your own User details. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1057
|
+
*
|
|
1058
|
+
* Fetch details about the calling User. This endpoint has no access policy requirements, it is available to all authenticated Users.
|
|
1059
|
+
*/
|
|
1060
|
+
this.me = (request) => this.request('/user/me', 'get')(request);
|
|
1061
|
+
/**
|
|
1062
|
+
* Get the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1063
|
+
*
|
|
1064
|
+
* Access Policy Action: `App:GetUser`
|
|
1065
|
+
* Access Policy Resource: `App:User`
|
|
1066
|
+
*/
|
|
1067
|
+
this.get = (params, request) => this.request('/user/{id}', 'get')(params, request);
|
|
1068
|
+
/**
|
|
1069
|
+
* Update the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1070
|
+
*
|
|
1071
|
+
* Access Policy Action: `App:UpdateUser`
|
|
1072
|
+
* Access Policy Resource: `App:User`
|
|
1073
|
+
*/
|
|
1074
|
+
this.update = (params, request) => this.request('/user/{id}', 'patch')(params, request);
|
|
1075
|
+
/**
|
|
1076
|
+
* Delete the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1077
|
+
*
|
|
1078
|
+
* Access Policy Action: `App:DeleteUser`
|
|
1079
|
+
* Access Policy Resource: `App:User`
|
|
1080
|
+
*/
|
|
1081
|
+
this.delete = (params, request) => this.request('/user/{id}', 'delete')(params, request);
|
|
1082
|
+
/**
|
|
1083
|
+
* Invite a User to the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1084
|
+
*
|
|
1085
|
+
* Access Policy Action: `App:CreateUser`
|
|
1086
|
+
* Access Policy Resource: `App:User`
|
|
1087
|
+
*/
|
|
1088
|
+
this.invite = (params, request) => this.request('/user/invite', 'post')(params, request);
|
|
1089
|
+
/**
|
|
1090
|
+
* DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_user-v2-list) instead.
|
|
1091
|
+
*
|
|
1092
|
+
* Get all Users in the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1093
|
+
*
|
|
1094
|
+
* Access Policy Action: `App:ListAllUsers`
|
|
1095
|
+
* Access Policy Resource: `App:User`
|
|
1096
|
+
*/
|
|
1097
|
+
this.list = (request) => this.request('/user', 'get')(request);
|
|
1098
|
+
/**
|
|
1099
|
+
* Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1100
|
+
*
|
|
1101
|
+
* Access Policy Action: `Project:ListAllUsers`
|
|
1102
|
+
* Access Policy Resource: `Project:Settings`
|
|
1103
|
+
*/
|
|
1104
|
+
this.listV2 = (params, request) => this.request('/user/v2/list', 'get')(params, request);
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
1109
|
+
class Version extends SDKResource {
|
|
1110
|
+
constructor(config) {
|
|
1111
|
+
super(config);
|
|
1112
|
+
/**
|
|
1113
|
+
* Get project API version. This endpoint is public so there are no access policy requirements.
|
|
1114
|
+
*/
|
|
1115
|
+
this.get = (request) => this.request('/version', 'get')(request);
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
function uploadFile$1({ bucketName, 'objectPath+': key, file, }) {
|
|
1120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1121
|
+
const uploadUrl = yield this.request('/z3/{bucketName}/{objectPath+}', 'post')({
|
|
1122
|
+
action: 'upload',
|
|
1123
|
+
bucketName,
|
|
1124
|
+
'objectPath+': key,
|
|
1125
|
+
});
|
|
1126
|
+
yield fetch(uploadUrl.signedUrl, {
|
|
1127
|
+
method: 'PUT',
|
|
1128
|
+
body: file,
|
|
1129
|
+
});
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
function downloadFile({ bucketName, 'objectPath+': key, }) {
|
|
1133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1134
|
+
const uploadUrl = yield this.request('/z3/{bucketName}/{objectPath+}', 'post')({
|
|
1135
|
+
action: 'download',
|
|
1136
|
+
bucketName,
|
|
1137
|
+
'objectPath+': key,
|
|
1138
|
+
});
|
|
1139
|
+
const resp = yield fetch(uploadUrl.signedUrl, {
|
|
1140
|
+
method: 'GET',
|
|
1141
|
+
});
|
|
1142
|
+
if (!resp.ok) {
|
|
1143
|
+
throw new Error('Failed to download file');
|
|
1144
|
+
}
|
|
1145
|
+
return resp.arrayBuffer();
|
|
1146
|
+
});
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
1150
|
+
class Z3 extends SDKResource {
|
|
1151
|
+
constructor(config) {
|
|
1152
|
+
super(config);
|
|
1153
|
+
this.uploadFile = uploadFile$1;
|
|
1154
|
+
this.downloadFile = downloadFile;
|
|
1155
|
+
/**
|
|
1156
|
+
* List all Z3 Buckets. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1157
|
+
*
|
|
1158
|
+
* Access Policy Action: `Z3:ListBuckets`
|
|
1159
|
+
* Access Policy Resource: `Z3:BucketName`
|
|
1160
|
+
*/
|
|
1161
|
+
this.listBuckets = (request) => this.request('/z3', 'get')(request);
|
|
1162
|
+
/**
|
|
1163
|
+
* Create a Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1164
|
+
*
|
|
1165
|
+
* Access Policy Action: `Z3:CreateBucket`
|
|
1166
|
+
* Access Policy Resource: `Z3:BucketName`
|
|
1167
|
+
*/
|
|
1168
|
+
this.createBucket = (params, request) => this.request('/z3/{bucketName}', 'put')(params, request);
|
|
1169
|
+
/**
|
|
1170
|
+
* Delete the Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1171
|
+
*
|
|
1172
|
+
* Access Policy Action: `Z3:DeleteBucket`
|
|
1173
|
+
* Access Policy Resource: `Z3:BucketName`
|
|
1174
|
+
*/
|
|
1175
|
+
this.deleteBucket = (params, request) => this.request('/z3/{bucketName}', 'delete')(params, request);
|
|
1176
|
+
/**
|
|
1177
|
+
* List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1178
|
+
*
|
|
1179
|
+
* Access Policy Action: `Z3:ListObjects`
|
|
1180
|
+
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
1181
|
+
*/
|
|
1182
|
+
this.listObjects = (params, request) => this.request('/z3/{bucketName}/{objectPath+}', 'get')(params, request);
|
|
1183
|
+
/**
|
|
1184
|
+
* Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1185
|
+
*
|
|
1186
|
+
* Access Policy Action: `Z3:PutObject` or `Z3:GetObject`
|
|
1187
|
+
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
1188
|
+
*/
|
|
1189
|
+
this.getPresignedUrl = (params, request) => this.request('/z3/{bucketName}/{objectPath+}', 'post')(params, request);
|
|
1190
|
+
/**
|
|
1191
|
+
* Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1192
|
+
*
|
|
1193
|
+
* Access Policy Action: `Z3:DeleteObject`
|
|
1194
|
+
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
1195
|
+
*/
|
|
1196
|
+
this.deleteObject = (params, request) => this.request('/z3/{bucketName}/{objectPath+}', 'delete')(params, request);
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
function uploadFile({ id, file, filename, }) {
|
|
1201
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1202
|
+
const uploadUrl = yield this.request('/zambda/{id}/s3-upload', 'post')({ id, filename });
|
|
1203
|
+
yield fetch(uploadUrl.signedUrl, {
|
|
1204
|
+
method: 'PUT',
|
|
1205
|
+
body: file,
|
|
1206
|
+
});
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
1211
|
+
class Zambda extends SDKResource {
|
|
1212
|
+
constructor(config) {
|
|
1213
|
+
super(config);
|
|
1214
|
+
this.uploadFile = uploadFile;
|
|
1215
|
+
/**
|
|
1216
|
+
* Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1217
|
+
*
|
|
1218
|
+
* Access Policy Action: `Zambda:ListAllFunctions`
|
|
1219
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1220
|
+
*/
|
|
1221
|
+
this.list = (request) => this.request('/zambda', 'get')(request);
|
|
1222
|
+
/**
|
|
1223
|
+
* Create a new Zambda Function. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1224
|
+
*
|
|
1225
|
+
* Access Policy Action: `Zambda:CreateFunction`
|
|
1226
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1227
|
+
*/
|
|
1228
|
+
this.create = (params, request) => this.request('/zambda', 'post')(params, request);
|
|
1229
|
+
/**
|
|
1230
|
+
* Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1231
|
+
*
|
|
1232
|
+
* Access Policy Action: `Zambda:GetFunction`
|
|
1233
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1234
|
+
*/
|
|
1235
|
+
this.get = (params, request) => this.request('/zambda/{id}', 'get')(params, request);
|
|
1236
|
+
/**
|
|
1237
|
+
* Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1238
|
+
*
|
|
1239
|
+
* Access Policy Action: `Zambda:UpdateFunction`
|
|
1240
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1241
|
+
*/
|
|
1242
|
+
this.update = (params, request) => this.request('/zambda/{id}', 'patch')(params, request);
|
|
1243
|
+
/**
|
|
1244
|
+
* Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1245
|
+
*
|
|
1246
|
+
* Access Policy Action: `Zambda:DeleteFunction`
|
|
1247
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1248
|
+
*/
|
|
1249
|
+
this.delete = (params, request) => this.request('/zambda/{id}', 'delete')(params, request);
|
|
1250
|
+
/**
|
|
1251
|
+
* Execute the [Authenticated Zambda Function](https://docs.oystehr.com/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1252
|
+
*
|
|
1253
|
+
* Access Policy Action: `Zambda:InvokeFunction`
|
|
1254
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1255
|
+
*/
|
|
1256
|
+
this.execute = (params, request) => this.request('/zambda/{id}/execute', 'post')(params, request);
|
|
1257
|
+
/**
|
|
1258
|
+
* Execute the [Public Zambda Function](https://docs.oystehr.com/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1259
|
+
*
|
|
1260
|
+
* Execute a zambda that has method http_open. This endpoint is public so there are no access policy requirements.
|
|
1261
|
+
*/
|
|
1262
|
+
this.executePublic = (params, request) => this.request('/zambda/{id}/execute-public', 'post')(params, request);
|
|
1263
|
+
/**
|
|
1264
|
+
* Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1265
|
+
*
|
|
1266
|
+
* Access Policy Action: `Zambda:UpdateFunction`
|
|
1267
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1268
|
+
*/
|
|
1269
|
+
this.s3Upload = (params, request) => this.request('/zambda/{id}/s3-upload', 'post')(params, request);
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
1274
|
+
class ZambdaLogStream extends SDKResource {
|
|
1275
|
+
constructor(config) {
|
|
1276
|
+
super(config);
|
|
1277
|
+
/**
|
|
1278
|
+
* Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1279
|
+
*
|
|
1280
|
+
* Access Policy Action: `Zambda:ReadLogs`
|
|
1281
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1282
|
+
*/
|
|
1283
|
+
this.list = (params, request) => this.request('/zambda/{id}/logStream', 'post')(params, request);
|
|
1284
|
+
/**
|
|
1285
|
+
* Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1286
|
+
*
|
|
1287
|
+
* Access Policy Action: `Zambda:ReadLogs`
|
|
1288
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1289
|
+
*/
|
|
1290
|
+
this.search = (params, request) => this.request('/zambda/{id}/logStream/search', 'post')(params, request);
|
|
1291
|
+
/**
|
|
1292
|
+
* Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1293
|
+
*
|
|
1294
|
+
* Access Policy Action: `Zambda:ReadLogs`
|
|
1295
|
+
* Access Policy Resource: `Zambda:Function`
|
|
1296
|
+
*/
|
|
1297
|
+
this.get = (params, request) => this.request('/zambda/{id}/logStream/{logStreamName}', 'post')(params, request);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
1302
|
+
let Oystehr$1 = class Oystehr {
|
|
1303
|
+
constructor(config) {
|
|
1304
|
+
this.application = new Application(config);
|
|
1305
|
+
this.developer = new Developer(config);
|
|
1306
|
+
this.m2m = new M2m(config);
|
|
1307
|
+
this.messaging = new Messaging(config);
|
|
1308
|
+
this.conversation = new Conversation(config);
|
|
1309
|
+
this.transactionalSMS = new TransactionalSMS(config);
|
|
1310
|
+
this.paymentMethod = new PaymentMethod(config);
|
|
1311
|
+
this.charge = new Charge(config);
|
|
1312
|
+
this.project = new Project(config);
|
|
1313
|
+
this.rcm = new Rcm(config);
|
|
1314
|
+
this.erx = new Erx(config);
|
|
1315
|
+
this.role = new Role(config);
|
|
1316
|
+
this.secret = new Secret(config);
|
|
1317
|
+
this.telemed = new Telemed(config);
|
|
1318
|
+
this.user = new User(config);
|
|
1319
|
+
this.version = new Version(config);
|
|
1320
|
+
this.z3 = new Z3(config);
|
|
1321
|
+
this.zambda = new Zambda(config);
|
|
1322
|
+
this.zambdaLogStream = new ZambdaLogStream(config);
|
|
1323
|
+
this.fhir = new Fhir(config);
|
|
1324
|
+
}
|
|
1325
|
+
};
|
|
1326
|
+
|
|
1327
|
+
class Oystehr extends Oystehr$1 {
|
|
1328
|
+
}
|
|
1329
|
+
Oystehr.OystehrFHIRError = OystehrFHIRError;
|
|
1330
|
+
Oystehr.OystehrSdkError = OystehrSdkError;
|
|
1331
|
+
|
|
1332
|
+
module.exports = Oystehr;
|
|
1333
|
+
//# sourceMappingURL=index.cjs.map
|