@awell-health/awell-extensions 2.0.6 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.js +3 -3
- package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.js.map +1 -1
- package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.test.js +4 -4
- package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.test.js.map +1 -1
- package/dist/extensions/healthie/actions/archivePatient/archivePatient.js +3 -3
- package/dist/extensions/healthie/actions/archivePatient/archivePatient.js.map +1 -1
- package/dist/extensions/healthie/actions/archivePatient/archivePatient.test.js +4 -4
- package/dist/extensions/healthie/actions/archivePatient/archivePatient.test.js.map +1 -1
- package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.js +3 -3
- package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.js.map +1 -1
- package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.test.js +4 -4
- package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.test.js.map +1 -1
- package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.js +3 -3
- package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.js.map +1 -1
- package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.test.js +4 -4
- package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.test.js.map +1 -1
- package/dist/extensions/healthie/actions/checkPatientTag/checkPatientTag.js +3 -3
- package/dist/extensions/healthie/actions/checkPatientTag/checkPatientTag.js.map +1 -1
- package/dist/extensions/healthie/actions/checkPatientTag/checkPatientTag.test.js +4 -4
- package/dist/extensions/healthie/actions/checkPatientTag/checkPatientTag.test.js.map +1 -1
- package/dist/extensions/healthie/actions/checkScheduledAppointments/checkScheduledAppointments.js +3 -3
- package/dist/extensions/healthie/actions/checkScheduledAppointments/checkScheduledAppointments.js.map +1 -1
- package/dist/extensions/healthie/actions/checkScheduledAppointments/checkScheduledAppointments.test.js +4 -4
- package/dist/extensions/healthie/actions/checkScheduledAppointments/checkScheduledAppointments.test.js.map +1 -1
- package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.js +3 -3
- package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.js.map +1 -1
- package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.test.js +4 -4
- package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.test.js.map +1 -1
- package/dist/extensions/healthie/actions/completeTask/completeTask.js +3 -3
- package/dist/extensions/healthie/actions/completeTask/completeTask.js.map +1 -1
- package/dist/extensions/healthie/actions/completeTask/completeTask.test.js +4 -4
- package/dist/extensions/healthie/actions/completeTask/completeTask.test.js.map +1 -1
- package/dist/extensions/healthie/actions/createAppointment/createAppointment.test.js +4 -4
- package/dist/extensions/healthie/actions/createAppointment/createAppointment.test.js.map +1 -1
- package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.js +3 -3
- package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.js.map +1 -1
- package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.test.js +4 -4
- package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.test.js.map +1 -1
- package/dist/extensions/healthie/actions/createGoal/config/datapoints.d.ts +6 -0
- package/dist/extensions/healthie/actions/createGoal/config/datapoints.js +10 -0
- package/dist/extensions/healthie/actions/createGoal/config/datapoints.js.map +1 -0
- package/dist/extensions/healthie/actions/createGoal/config/fields.d.ts +58 -0
- package/dist/extensions/healthie/actions/createGoal/config/fields.js +70 -0
- package/dist/extensions/healthie/actions/createGoal/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/createGoal/config/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/createGoal/config/index.js +9 -0
- package/dist/extensions/healthie/actions/createGoal/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/createGoal/createGoal.d.ts +4 -0
- package/dist/extensions/healthie/actions/createGoal/createGoal.js +45 -0
- package/dist/extensions/healthie/actions/createGoal/createGoal.js.map +1 -0
- package/dist/extensions/healthie/actions/createGoal/createGoal.test.js +76 -0
- package/dist/extensions/healthie/actions/createGoal/createGoal.test.js.map +1 -0
- package/dist/extensions/healthie/actions/createGoal/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/createGoal/index.js +18 -0
- package/dist/extensions/healthie/actions/createGoal/index.js.map +1 -0
- package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.js +3 -3
- package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.js.map +1 -1
- package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.test.js +4 -4
- package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.test.js.map +1 -1
- package/dist/extensions/healthie/actions/createLocation/createLocation.js +3 -3
- package/dist/extensions/healthie/actions/createLocation/createLocation.js.map +1 -1
- package/dist/extensions/healthie/actions/createLocation/createLocation.test.js +4 -4
- package/dist/extensions/healthie/actions/createLocation/createLocation.test.js.map +1 -1
- package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.js +3 -3
- package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.js.map +1 -1
- package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.test.js +4 -4
- package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.test.js.map +1 -1
- package/dist/extensions/healthie/actions/createPatient/createPatient.js +3 -3
- package/dist/extensions/healthie/actions/createPatient/createPatient.js.map +1 -1
- package/dist/extensions/healthie/actions/createPatient/createPatient.test.js +4 -4
- package/dist/extensions/healthie/actions/createPatient/createPatient.test.js.map +1 -1
- package/dist/extensions/healthie/actions/createTask/createTask.js +3 -3
- package/dist/extensions/healthie/actions/createTask/createTask.js.map +1 -1
- package/dist/extensions/healthie/actions/createTask/createTask.test.js +4 -4
- package/dist/extensions/healthie/actions/createTask/createTask.test.js.map +1 -1
- package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.js +3 -3
- package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.js.map +1 -1
- package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.test.js +4 -4
- package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.test.js.map +1 -1
- package/dist/extensions/healthie/actions/deleteGoal/config/datapoints.d.ts +1 -0
- package/dist/extensions/healthie/actions/deleteGoal/config/datapoints.js +5 -0
- package/dist/extensions/healthie/actions/deleteGoal/config/datapoints.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteGoal/config/fields.d.ts +18 -0
- package/dist/extensions/healthie/actions/deleteGoal/config/fields.js +21 -0
- package/dist/extensions/healthie/actions/deleteGoal/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteGoal/config/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/deleteGoal/config/index.js +9 -0
- package/dist/extensions/healthie/actions/deleteGoal/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteGoal/deleteGoal.d.ts +4 -0
- package/dist/extensions/healthie/actions/deleteGoal/deleteGoal.js +35 -0
- package/dist/extensions/healthie/actions/deleteGoal/deleteGoal.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteGoal/deleteGoal.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/deleteGoal/deleteGoal.test.js +42 -0
- package/dist/extensions/healthie/actions/deleteGoal/deleteGoal.test.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteGoal/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/deleteGoal/index.js +18 -0
- package/dist/extensions/healthie/actions/deleteGoal/index.js.map +1 -0
- package/dist/extensions/healthie/actions/deleteTask/deleteTask.js +3 -3
- package/dist/extensions/healthie/actions/deleteTask/deleteTask.js.map +1 -1
- package/dist/extensions/healthie/actions/deleteTask/deleteTask.test.js +4 -4
- package/dist/extensions/healthie/actions/deleteTask/deleteTask.test.js.map +1 -1
- package/dist/extensions/healthie/actions/getAppointment/getAppointment.js +3 -3
- package/dist/extensions/healthie/actions/getAppointment/getAppointment.js.map +1 -1
- package/dist/extensions/healthie/actions/getAppointment/getAppointment.test.js +4 -4
- package/dist/extensions/healthie/actions/getAppointment/getAppointment.test.js.map +1 -1
- package/dist/extensions/healthie/actions/getFormAnswers/getFormAnswers.test.js +2 -2
- package/dist/extensions/healthie/actions/getFormAnswers/getFormAnswers.test.js.map +1 -1
- package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.js +3 -3
- package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.js.map +1 -1
- package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.test.js +4 -4
- package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.test.js.map +1 -1
- package/dist/extensions/healthie/actions/getPatient/getPatient.js +3 -3
- package/dist/extensions/healthie/actions/getPatient/getPatient.js.map +1 -1
- package/dist/extensions/healthie/actions/getPatient/getPatient.test.js +4 -4
- package/dist/extensions/healthie/actions/getPatient/getPatient.test.js.map +1 -1
- package/dist/extensions/healthie/actions/getSetPasswordLink/config/datapoints.d.ts +6 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/config/datapoints.js +10 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/config/datapoints.js.map +1 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/config/fields.d.ts +18 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/config/fields.js +21 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/config/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/config/index.js +9 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/getSetPasswordLink.d.ts +4 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/getSetPasswordLink.js +39 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/getSetPasswordLink.js.map +1 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/getSetPasswordLink.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/getSetPasswordLink.test.js +48 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/getSetPasswordLink.test.js.map +1 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/index.js +18 -0
- package/dist/extensions/healthie/actions/getSetPasswordLink/index.js.map +1 -0
- package/dist/extensions/healthie/actions/index.d.ts +100 -0
- package/dist/extensions/healthie/actions/index.js +6 -0
- package/dist/extensions/healthie/actions/index.js.map +1 -1
- package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.js +3 -3
- package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.js.map +1 -1
- package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.test.js +4 -4
- package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.test.js.map +1 -1
- package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.js +3 -3
- package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.js.map +1 -1
- package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.test.js +4 -4
- package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.test.js.map +1 -1
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.js +3 -3
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.js.map +1 -1
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.test.js +4 -4
- package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.test.js.map +1 -1
- package/dist/extensions/healthie/actions/updatePatient/updatePatient.js +3 -3
- package/dist/extensions/healthie/actions/updatePatient/updatePatient.js.map +1 -1
- package/dist/extensions/healthie/actions/updatePatient/updatePatient.test.js +4 -4
- package/dist/extensions/healthie/actions/updatePatient/updatePatient.test.js.map +1 -1
- package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.js +3 -3
- package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.js.map +1 -1
- package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.js +4 -4
- package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.js.map +1 -1
- package/dist/extensions/healthie/index.js +1 -1
- package/dist/extensions/healthie/index.js.map +1 -1
- package/dist/extensions/healthie/lib/sdk/genql/HealthieSdk.d.ts +29 -0
- package/dist/extensions/healthie/lib/sdk/genql/HealthieSdk.js +30 -0
- package/dist/extensions/healthie/lib/sdk/genql/HealthieSdk.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generateSdk.d.ts +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generateSdk.js +21 -0
- package/dist/extensions/healthie/lib/sdk/genql/generateSdk.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/index.d.ts +29 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/index.js +51 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/index.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/batcher.d.ts +105 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/batcher.js +205 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/batcher.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/createClient.d.ts +23 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/createClient.js +29 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/createClient.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/error.d.ts +18 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/error.js +20 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/error.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/fetcher.d.ts +10 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/fetcher.js +72 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/fetcher.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/generateGraphqlOperation.d.ts +30 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/generateGraphqlOperation.js +134 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/generateGraphqlOperation.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/index.d.ts +11 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/index.js +19 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/index.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/linkTypeMap.d.ts +9 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/linkTypeMap.js +102 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/linkTypeMap.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/typeSelection.d.ts +28 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/typeSelection.js +5 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/typeSelection.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/types.d.ts +55 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/types.js +4 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/types.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/schema.d.ts +42906 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/schema.js +5072 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/schema.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/types.d.ts +14934 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/types.js +39502 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/types.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/index.d.ts +2 -0
- package/dist/extensions/healthie/lib/sdk/genql/index.js +21 -0
- package/dist/extensions/healthie/lib/sdk/genql/index.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/graphql-codegen/codegen.d.ts +7 -0
- package/dist/extensions/healthie/lib/sdk/{codegen.js → graphql-codegen/codegen.js} +6 -2
- package/dist/extensions/healthie/lib/sdk/graphql-codegen/codegen.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/{createSdk.d.ts → graphql-codegen/createSdk.d.ts} +5 -1
- package/dist/extensions/healthie/lib/sdk/{createSdk.js → graphql-codegen/createSdk.js} +4 -1
- package/dist/extensions/healthie/lib/sdk/graphql-codegen/createSdk.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/graphql-codegen/errors.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/{generated → graphql-codegen/generated}/sdk.d.ts +510 -84
- package/dist/extensions/healthie/lib/sdk/{generated → graphql-codegen/generated}/sdk.js +534 -373
- package/dist/extensions/healthie/lib/sdk/graphql-codegen/generated/sdk.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/{graphqlClient.d.ts → graphql-codegen/graphqlClient.d.ts} +5 -1
- package/dist/extensions/healthie/lib/sdk/{graphqlClient.js → graphql-codegen/graphqlClient.js} +4 -0
- package/dist/extensions/healthie/lib/sdk/graphql-codegen/graphqlClient.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/graphql-codegen/graphqlClient.test.d.ts +1 -0
- package/dist/extensions/healthie/lib/sdk/graphql-codegen/graphqlClient.test.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.d.ts +7 -1
- package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.js +12 -4
- package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.js.map +1 -1
- package/dist/extensions/healthie/lib/types.d.ts +1 -1
- package/dist/extensions/healthie/lib/validation/getPatient.zod.d.ts +1 -1
- package/dist/extensions/healthie/webhooks/appliedTagCreated.js +2 -2
- package/dist/extensions/healthie/webhooks/appliedTagCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appliedTagDeleted.js +6 -3
- package/dist/extensions/healthie/webhooks/appliedTagDeleted.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appointmentCreated.js +2 -2
- package/dist/extensions/healthie/webhooks/appointmentCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appointmentDeleted.js +2 -2
- package/dist/extensions/healthie/webhooks/appointmentDeleted.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appointmentUpdated.js +2 -2
- package/dist/extensions/healthie/webhooks/appointmentUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.js +3 -3
- package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.js +2 -2
- package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.js.map +1 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.js +2 -2
- package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.js.map +1 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.js +2 -2
- package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.js.map +1 -1
- package/dist/extensions/healthie/webhooks/goalCreated.js +3 -3
- package/dist/extensions/healthie/webhooks/goalCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/goalUpdated.js +3 -3
- package/dist/extensions/healthie/webhooks/goalUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/labOrderCreated.js +2 -2
- package/dist/extensions/healthie/webhooks/labOrderCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/labOrderUpdated.js +2 -2
- package/dist/extensions/healthie/webhooks/labOrderUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/messageCreated.js +7 -5
- package/dist/extensions/healthie/webhooks/messageCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/messageDeleted.js +6 -4
- package/dist/extensions/healthie/webhooks/messageDeleted.js.map +1 -1
- package/dist/extensions/healthie/webhooks/metricEntryCreated.js +2 -2
- package/dist/extensions/healthie/webhooks/metricEntryCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/metricEntryUpdated.js +2 -2
- package/dist/extensions/healthie/webhooks/metricEntryUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/requestedFormCompletionCreated.js +5 -3
- package/dist/extensions/healthie/webhooks/requestedFormCompletionCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/requestedFormCompletionUpdated.js +5 -3
- package/dist/extensions/healthie/webhooks/requestedFormCompletionUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/taskCreated.js +2 -2
- package/dist/extensions/healthie/webhooks/taskCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/taskUpdated.js +3 -3
- package/dist/extensions/healthie/webhooks/taskUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/webhooks.test.js +4 -4
- package/dist/extensions/healthie/webhooks/webhooks.test.js.map +1 -1
- package/dist/extensions/stripe/actions/embeddedCheckout/config/fields.d.ts +1 -1
- package/package.json +7 -3
- package/dist/extensions/healthie/lib/sdk/codegen.d.ts +0 -3
- package/dist/extensions/healthie/lib/sdk/codegen.js.map +0 -1
- package/dist/extensions/healthie/lib/sdk/createSdk.js.map +0 -1
- package/dist/extensions/healthie/lib/sdk/errors.js.map +0 -1
- package/dist/extensions/healthie/lib/sdk/generated/sdk.js.map +0 -1
- package/dist/extensions/healthie/lib/sdk/graphqlClient.js.map +0 -1
- package/dist/extensions/healthie/lib/sdk/graphqlClient.test.js.map +0 -1
- /package/dist/extensions/healthie/{lib/sdk/graphqlClient.test.d.ts → actions/createGoal/createGoal.test.d.ts} +0 -0
- /package/dist/extensions/healthie/lib/sdk/{errors.d.ts → graphql-codegen/errors.d.ts} +0 -0
- /package/dist/extensions/healthie/lib/sdk/{errors.js → graphql-codegen/errors.js} +0 -0
- /package/dist/extensions/healthie/lib/sdk/{graphqlClient.test.js → graphql-codegen/graphqlClient.test.js} +0 -0
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updatePatientQuickNote = void 0;
|
4
4
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
5
|
const extensions_core_2 = require("@awell-health/extensions-core");
|
6
|
-
const graphqlClient_1 = require("../../lib/sdk/graphqlClient");
|
6
|
+
const graphqlClient_1 = require("../../lib/sdk/graphql-codegen/graphqlClient");
|
7
7
|
const settings_1 = require("../../settings");
|
8
|
-
const errors_1 = require("../../lib/sdk/errors");
|
8
|
+
const errors_1 = require("../../lib/sdk/graphql-codegen/errors");
|
9
9
|
const zod_1 = require("zod");
|
10
10
|
const zod_validation_error_1 = require("zod-validation-error");
|
11
11
|
const config_1 = require("./config");
|
12
|
-
const sdk_1 = require("../../lib/sdk/generated/sdk");
|
12
|
+
const sdk_1 = require("../../lib/sdk/graphql-codegen/generated/sdk");
|
13
13
|
exports.updatePatientQuickNote = {
|
14
14
|
key: 'updatePatientQuickNote',
|
15
15
|
category: extensions_core_2.Category.EHR_INTEGRATIONS,
|
package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"updatePatientQuickNote.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,mEAAwD;AACxD,+
|
1
|
+
{"version":3,"file":"updatePatientQuickNote.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,mEAAwD;AACxD,+EAA8E;AAC9E,6CAAwE;AACxE,iEAG6C;AAC7C,6BAAiC;AACjC,+DAAmD;AACnD,qCAAyD;AACzD,qEAAoE;AAEvD,QAAA,sBAAsB,GAA2C;IAC5E,GAAG,EAAE,wBAAwB;IAC7B,QAAQ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C,CAAA;aACrB;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,GAAG,YAAY,cAAQ,EAAE;gBAC3B,MAAM,KAAK,GAAG,IAAA,mCAAY,EAAC,GAAG,CAAC,CAAA;gBAC/B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,EAAE;4BAC3B,KAAK,EAAE;gCACL,QAAQ,EAAE,aAAa;gCACvB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;iBAAM,IAAI,GAAG,YAAY,sBAAa,EAAE;gBACvC,MAAM,MAAM,GAAG,IAAA,mCAA0B,EAAC,GAAG,CAAC,MAAM,CAAC,CAAA;gBACrD,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE,MAAM;iBACf,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAY,CAAA;gBAC1B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,gCAAgC,EAAE;4BAC9C,KAAK,EAAE;gCACL,QAAQ,EAAE,cAAc;gCACxB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tests_1 = require("../../../../src/tests");
|
4
|
-
const sdk_1 = require("../../lib/sdk/generated/sdk");
|
5
|
-
const sdk_2 = require("../../lib/sdk/generated/__mocks__/sdk");
|
4
|
+
const sdk_1 = require("../../lib/sdk/graphql-codegen/generated/sdk");
|
5
|
+
const sdk_2 = require("../../lib/sdk/graphql-codegen/generated/__mocks__/sdk");
|
6
6
|
const updatePatientQuickNote_1 = require("../updatePatientQuickNote");
|
7
|
-
jest.mock('../../lib/sdk/generated/sdk');
|
8
|
-
jest.mock('../../lib/sdk/graphqlClient');
|
7
|
+
jest.mock('../../lib/sdk/graphql-codegen/generated/sdk');
|
8
|
+
jest.mock('../../lib/sdk/graphql-codegen/graphqlClient');
|
9
9
|
describe('createMetricEntry action', () => {
|
10
10
|
const onComplete = jest.fn();
|
11
11
|
const onError = jest.fn();
|
package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"updatePatientQuickNote.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,
|
1
|
+
{"version":3,"file":"updatePatientQuickNote.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,qEAAoE;AACpE,+EAAkF;AAClF,sEAAkE;AAElE,IAAI,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAA;AACxD,IAAI,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAA;AAExD,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAEzB,SAAS,CAAC,GAAG,EAAE;QACb,CAAC;QAAC,YAAoB,CAAC,kBAAkB,CAAC,gBAAU,CAAC,CAAA;IACvD,CAAC,CAAC,CAAA;IAEF,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,kCAAkC,EAAE,KAAK,IAAI,EAAE;QAClD,MAAM,+CAAsB,CAAC,iBAAkB,CAC7C,IAAA,2BAAmB,EAAC;YAClB,MAAM,EAAE;gBACN,SAAS,EAAE,YAAY;gBACvB,SAAS,EAAE,YAAY;gBACvB,SAAS,EAAE,IAAI;aAChB;YACD,QAAQ,EAAE;gBACR,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE,UAAU;aACnB;SACF,CAAC,EACF,UAAU,EACV,OAAO,CACR,CAAA;QACD,MAAM,CAAC,UAAU,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;QACrC,MAAM,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;IACpC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -10,7 +10,7 @@ exports.Healthie = {
|
|
10
10
|
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
11
11
|
title: 'Healthie',
|
12
12
|
description: 'Easily orchestrate actions in Healthie and receive webhooks events.',
|
13
|
-
icon_url: 'https://res.cloudinary.com/da7x4rzl4/image/upload/
|
13
|
+
icon_url: 'https://res.cloudinary.com/da7x4rzl4/image/upload/v1726074872/Awell%20Extensions/get_healthie_logo.jpg',
|
14
14
|
author: {
|
15
15
|
authorType: extensions_core_1.AuthorType.AWELL,
|
16
16
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/healthie/index.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AAEnC,yCAAqC;AACrC,yCAAqC;AACrC,mEAAoE;AAEvD,QAAA,QAAQ,GAAc;IACjC,GAAG,EAAE,UAAU;IACf,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,qEAAqE;IACvE,QAAQ,EACN,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/healthie/index.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AAEnC,yCAAqC;AACrC,yCAAqC;AACrC,mEAAoE;AAEvD,QAAA,QAAQ,GAAc;IACjC,GAAG,EAAE,UAAU;IACf,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,qEAAqE;IACvE,QAAQ,EACN,wGAAwG;IAC1G,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,QAAQ,EAAR,mBAAQ;IACR,OAAO,EAAP,iBAAO;IACP,QAAQ,EAAR,mBAAQ;CACT,CAAA"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { type Client } from './generated';
|
2
|
+
/**
|
3
|
+
* A class representing the Healthie SDK.
|
4
|
+
*/
|
5
|
+
export declare class HealthieSdk {
|
6
|
+
/**
|
7
|
+
* The API key used to authenticate API requests.
|
8
|
+
*/
|
9
|
+
readonly apiKey: string;
|
10
|
+
/**
|
11
|
+
* The client that calls the Healthie API.
|
12
|
+
*/
|
13
|
+
readonly client: Client;
|
14
|
+
/**
|
15
|
+
* The custom API URL to be used if provided.
|
16
|
+
*/
|
17
|
+
readonly apiUrl: string;
|
18
|
+
/**
|
19
|
+
* Creates an instance of the Healthie SDK.
|
20
|
+
*
|
21
|
+
* @param {Object} opts - The options for configuring the SDK.
|
22
|
+
* @param {string} [opts.apiUrl] - The API URL.
|
23
|
+
* @param {string} opts.apiKey - The API key to use for authentication.
|
24
|
+
*/
|
25
|
+
constructor(opts: {
|
26
|
+
apiKey: string;
|
27
|
+
apiUrl: string;
|
28
|
+
});
|
29
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.HealthieSdk = void 0;
|
4
|
+
const generated_1 = require("./generated");
|
5
|
+
/**
|
6
|
+
* A class representing the Healthie SDK.
|
7
|
+
*/
|
8
|
+
class HealthieSdk {
|
9
|
+
/**
|
10
|
+
* Creates an instance of the Healthie SDK.
|
11
|
+
*
|
12
|
+
* @param {Object} opts - The options for configuring the SDK.
|
13
|
+
* @param {string} [opts.apiUrl] - The API URL.
|
14
|
+
* @param {string} opts.apiKey - The API key to use for authentication.
|
15
|
+
*/
|
16
|
+
constructor(opts) {
|
17
|
+
this.apiKey = opts.apiKey;
|
18
|
+
this.apiUrl = opts.apiUrl;
|
19
|
+
const client = (0, generated_1.createClient)({
|
20
|
+
url: this.apiUrl,
|
21
|
+
headers: {
|
22
|
+
Authorization: `Basic ${this.apiKey}`,
|
23
|
+
AuthorizationSource: 'API',
|
24
|
+
},
|
25
|
+
});
|
26
|
+
this.client = client;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
exports.HealthieSdk = HealthieSdk;
|
30
|
+
//# sourceMappingURL=HealthieSdk.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HealthieSdk.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/lib/sdk/genql/HealthieSdk.ts"],"names":[],"mappings":";;;AAAA,2CAAuD;AAEvD;;GAEG;AACH,MAAa,WAAW;IAgBtB;;;;;;OAMG;IACH,YAAY,IAAwC;QAClD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;QACzB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;QAEzB,MAAM,MAAM,GAAG,IAAA,wBAAY,EAAC;YAC1B,GAAG,EAAE,IAAI,CAAC,MAAM;YAChB,OAAO,EAAE;gBACP,aAAa,EAAE,SAAS,IAAI,CAAC,MAAM,EAAE;gBACrC,mBAAmB,EAAE,KAAK;aAC3B;SACF,CAAC,CAAA;QAEF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CACF;AArCD,kCAqCC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
import 'dotenv/config';
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const cli_1 = require("@genql/cli");
|
7
|
+
require("dotenv/config");
|
8
|
+
const path_1 = __importDefault(require("path"));
|
9
|
+
/**
|
10
|
+
* Run with the below command:
|
11
|
+
* yarn generate-healthie-sdk
|
12
|
+
*/
|
13
|
+
(0, cli_1.generate)({
|
14
|
+
endpoint: process.env.HEALTHIE_API_URL,
|
15
|
+
output: path_1.default.join(__dirname, 'generated'),
|
16
|
+
// headers: {
|
17
|
+
// Authorization: `Basic ${process.env.HEALTHIE_API_KEY ?? ''}`,
|
18
|
+
// AuthorizationSource: 'API',
|
19
|
+
// },
|
20
|
+
}).catch(console.error);
|
21
|
+
//# sourceMappingURL=generateSdk.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generateSdk.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/lib/sdk/genql/generateSdk.ts"],"names":[],"mappings":";;;;;AAAA,oCAAqC;AACrC,yBAAsB;AACtB,gDAAuB;AAEvB;;;GAGG;AACH,IAAA,cAAQ,EAAC;IACP,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;IACtC,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC;IACzC,aAAa;IACb,kEAAkE;IAClE,gCAAgC;IAChC,KAAK;CACN,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import type { QueryGenqlSelection, Query, MutationGenqlSelection, Mutation, SubscriptionGenqlSelection, Subscription } from './schema';
|
2
|
+
import { type FieldsSelection, type GraphqlOperation, type ClientOptions, GenqlError } from './runtime';
|
3
|
+
export type { FieldsSelection } from './runtime';
|
4
|
+
export { GenqlError };
|
5
|
+
export * from './schema';
|
6
|
+
export interface Client {
|
7
|
+
query<R extends QueryGenqlSelection>(request: R & {
|
8
|
+
__name?: string;
|
9
|
+
}): Promise<FieldsSelection<Query, R>>;
|
10
|
+
mutation<R extends MutationGenqlSelection>(request: R & {
|
11
|
+
__name?: string;
|
12
|
+
}): Promise<FieldsSelection<Mutation, R>>;
|
13
|
+
}
|
14
|
+
export declare const createClient: (options?: ClientOptions) => Client;
|
15
|
+
export declare const everything: {
|
16
|
+
__scalar: boolean;
|
17
|
+
};
|
18
|
+
export type QueryResult<fields extends QueryGenqlSelection> = FieldsSelection<Query, fields>;
|
19
|
+
export declare const generateQueryOp: (fields: QueryGenqlSelection & {
|
20
|
+
__name?: string;
|
21
|
+
}) => GraphqlOperation;
|
22
|
+
export type MutationResult<fields extends MutationGenqlSelection> = FieldsSelection<Mutation, fields>;
|
23
|
+
export declare const generateMutationOp: (fields: MutationGenqlSelection & {
|
24
|
+
__name?: string;
|
25
|
+
}) => GraphqlOperation;
|
26
|
+
export type SubscriptionResult<fields extends SubscriptionGenqlSelection> = FieldsSelection<Subscription, fields>;
|
27
|
+
export declare const generateSubscriptionOp: (fields: SubscriptionGenqlSelection & {
|
28
|
+
__name?: string;
|
29
|
+
}) => GraphqlOperation;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
18
|
+
};
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
+
exports.generateSubscriptionOp = exports.generateMutationOp = exports.generateQueryOp = exports.everything = exports.createClient = exports.GenqlError = void 0;
|
21
|
+
const runtime_1 = require("./runtime");
|
22
|
+
Object.defineProperty(exports, "GenqlError", { enumerable: true, get: function () { return runtime_1.GenqlError; } });
|
23
|
+
const types_1 = __importDefault(require("./types"));
|
24
|
+
__exportStar(require("./schema"), exports);
|
25
|
+
const typeMap = (0, runtime_1.linkTypeMap)(types_1.default);
|
26
|
+
const createClient = function (options) {
|
27
|
+
return (0, runtime_1.createClient)({
|
28
|
+
url: 'https://staging-api.gethealthie.com/graphql',
|
29
|
+
...options,
|
30
|
+
queryRoot: typeMap.Query,
|
31
|
+
mutationRoot: typeMap.Mutation,
|
32
|
+
subscriptionRoot: typeMap.Subscription,
|
33
|
+
});
|
34
|
+
};
|
35
|
+
exports.createClient = createClient;
|
36
|
+
exports.everything = {
|
37
|
+
__scalar: true,
|
38
|
+
};
|
39
|
+
const generateQueryOp = function (fields) {
|
40
|
+
return (0, runtime_1.generateGraphqlOperation)('query', typeMap.Query, fields);
|
41
|
+
};
|
42
|
+
exports.generateQueryOp = generateQueryOp;
|
43
|
+
const generateMutationOp = function (fields) {
|
44
|
+
return (0, runtime_1.generateGraphqlOperation)('mutation', typeMap.Mutation, fields);
|
45
|
+
};
|
46
|
+
exports.generateMutationOp = generateMutationOp;
|
47
|
+
const generateSubscriptionOp = function (fields) {
|
48
|
+
return (0, runtime_1.generateGraphqlOperation)('subscription', typeMap.Subscription, fields);
|
49
|
+
};
|
50
|
+
exports.generateSubscriptionOp = generateSubscriptionOp;
|
51
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../extensions/healthie/lib/sdk/genql/generated/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AASA,uCAQkB;AAET,2FAHP,oBAAU,OAGO;AAEnB,oDAA2B;AAC3B,2CAAwB;AACxB,MAAM,OAAO,GAAG,IAAA,qBAAW,EAAC,eAAY,CAAC,CAAA;AAYlC,MAAM,YAAY,GAAG,UAAU,OAAuB;IAC3D,OAAO,IAAA,sBAAoB,EAAC;QAC1B,GAAG,EAAE,6CAA6C;QAElD,GAAG,OAAO;QACV,SAAS,EAAE,OAAO,CAAC,KAAM;QACzB,YAAY,EAAE,OAAO,CAAC,QAAS;QAC/B,gBAAgB,EAAE,OAAO,CAAC,YAAa;KACxC,CAAQ,CAAA;AACX,CAAC,CAAA;AATY,QAAA,YAAY,gBASxB;AAEY,QAAA,UAAU,GAAG;IACxB,QAAQ,EAAE,IAAI;CACf,CAAA;AAMM,MAAM,eAAe,GAEJ,UAAU,MAAM;IACtC,OAAO,IAAA,kCAAwB,EAAC,OAAO,EAAE,OAAO,CAAC,KAAM,EAAE,MAAa,CAAC,CAAA;AACzE,CAAC,CAAA;AAJY,QAAA,eAAe,mBAI3B;AAIM,MAAM,kBAAkB,GAEP,UAAU,MAAM;IACtC,OAAO,IAAA,kCAAwB,EAAC,UAAU,EAAE,OAAO,CAAC,QAAS,EAAE,MAAa,CAAC,CAAA;AAC/E,CAAC,CAAA;AAJY,QAAA,kBAAkB,sBAI9B;AAIM,MAAM,sBAAsB,GAEX,UAAU,MAAM;IACtC,OAAO,IAAA,kCAAwB,EAC7B,cAAc,EACd,OAAO,CAAC,YAAa,EACrB,MAAa,CACd,CAAA;AACH,CAAC,CAAA;AARY,QAAA,sBAAsB,0BAQlC"}
|
@@ -0,0 +1,105 @@
|
|
1
|
+
import type { GraphqlOperation } from './generateGraphqlOperation';
|
2
|
+
type Variables = Record<string, any>;
|
3
|
+
type QueryError = Error & {
|
4
|
+
message: string;
|
5
|
+
locations?: Array<{
|
6
|
+
line: number;
|
7
|
+
column: number;
|
8
|
+
}>;
|
9
|
+
path?: any;
|
10
|
+
rid: string;
|
11
|
+
details?: Record<string, any>;
|
12
|
+
};
|
13
|
+
type Result = {
|
14
|
+
data: Record<string, any>;
|
15
|
+
errors: Array<QueryError>;
|
16
|
+
};
|
17
|
+
type Fetcher = (batchedQuery: GraphqlOperation | Array<GraphqlOperation>) => Promise<Array<Result>>;
|
18
|
+
type Options = {
|
19
|
+
batchInterval?: number;
|
20
|
+
shouldBatch?: boolean;
|
21
|
+
maxBatchSize?: number;
|
22
|
+
};
|
23
|
+
type Queue = Array<{
|
24
|
+
request: GraphqlOperation;
|
25
|
+
resolve: (...args: Array<any>) => any;
|
26
|
+
reject: (...args: Array<any>) => any;
|
27
|
+
}>;
|
28
|
+
/**
|
29
|
+
* Create a batcher client.
|
30
|
+
* @param {Fetcher} fetcher - A function that can handle the network requests to graphql endpoint
|
31
|
+
* @param {Options} options - the options to be used by client
|
32
|
+
* @param {boolean} options.shouldBatch - should the client batch requests. (default true)
|
33
|
+
* @param {integer} options.batchInterval - duration (in MS) of each batch window. (default 6)
|
34
|
+
* @param {integer} options.maxBatchSize - max number of requests in a batch. (default 0)
|
35
|
+
* @param {boolean} options.defaultHeaders - default headers to include with every request
|
36
|
+
*
|
37
|
+
* @example
|
38
|
+
* const fetcher = batchedQuery => fetch('path/to/graphql', {
|
39
|
+
* method: 'post',
|
40
|
+
* headers: {
|
41
|
+
* Accept: 'application/json',
|
42
|
+
* 'Content-Type': 'application/json',
|
43
|
+
* },
|
44
|
+
* body: JSON.stringify(batchedQuery),
|
45
|
+
* credentials: 'include',
|
46
|
+
* })
|
47
|
+
* .then(response => response.json())
|
48
|
+
*
|
49
|
+
* const client = new QueryBatcher(fetcher, { maxBatchSize: 10 })
|
50
|
+
*/
|
51
|
+
export declare class QueryBatcher {
|
52
|
+
fetcher: Fetcher;
|
53
|
+
_options: Options;
|
54
|
+
_queue: Queue;
|
55
|
+
constructor(fetcher: Fetcher, { batchInterval, shouldBatch, maxBatchSize, }?: Options);
|
56
|
+
/**
|
57
|
+
* Fetch will send a graphql request and return the parsed json.
|
58
|
+
* @param {string} query - the graphql query.
|
59
|
+
* @param {Variables} variables - any variables you wish to inject as key/value pairs.
|
60
|
+
* @param {[string]} operationName - the graphql operationName.
|
61
|
+
* @param {Options} overrides - the client options overrides.
|
62
|
+
*
|
63
|
+
* @return {promise} resolves to parsed json of server response
|
64
|
+
*
|
65
|
+
* @example
|
66
|
+
* client.fetch(`
|
67
|
+
* query getHuman($id: ID!) {
|
68
|
+
* human(id: $id) {
|
69
|
+
* name
|
70
|
+
* height
|
71
|
+
* }
|
72
|
+
* }
|
73
|
+
* `, { id: "1001" }, 'getHuman')
|
74
|
+
* .then(human => {
|
75
|
+
* // do something with human
|
76
|
+
* console.log(human);
|
77
|
+
* });
|
78
|
+
*/
|
79
|
+
fetch(query: string, variables?: Variables, operationName?: string, overrides?: Options): Promise<Result>;
|
80
|
+
/**
|
81
|
+
* Fetch will send a graphql request and return the parsed json.
|
82
|
+
* @param {string} query - the graphql query.
|
83
|
+
* @param {Variables} variables - any variables you wish to inject as key/value pairs.
|
84
|
+
* @param {[string]} operationName - the graphql operationName.
|
85
|
+
* @param {Options} overrides - the client options overrides.
|
86
|
+
*
|
87
|
+
* @return {Promise<Array<Result>>} resolves to parsed json of server response
|
88
|
+
*
|
89
|
+
* @example
|
90
|
+
* client.forceFetch(`
|
91
|
+
* query getHuman($id: ID!) {
|
92
|
+
* human(id: $id) {
|
93
|
+
* name
|
94
|
+
* height
|
95
|
+
* }
|
96
|
+
* }
|
97
|
+
* `, { id: "1001" }, 'getHuman')
|
98
|
+
* .then(human => {
|
99
|
+
* // do something with human
|
100
|
+
* console.log(human);
|
101
|
+
* });
|
102
|
+
*/
|
103
|
+
forceFetch(query: string, variables?: Variables, operationName?: string, overrides?: Options): Promise<Result>;
|
104
|
+
}
|
105
|
+
export {};
|
@@ -0,0 +1,205 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.QueryBatcher = void 0;
|
4
|
+
const error_1 = require("./error");
|
5
|
+
/**
|
6
|
+
* takes a list of requests (queue) and batches them into a single server request.
|
7
|
+
* It will then resolve each individual requests promise with the appropriate data.
|
8
|
+
* @private
|
9
|
+
* @param {QueryBatcher} client - the client to use
|
10
|
+
* @param {Queue} queue - the list of requests to batch
|
11
|
+
*/
|
12
|
+
function dispatchQueueBatch(client, queue) {
|
13
|
+
let batchedQuery = queue.map((item) => item.request);
|
14
|
+
if (batchedQuery.length === 1) {
|
15
|
+
batchedQuery = batchedQuery[0];
|
16
|
+
}
|
17
|
+
(() => {
|
18
|
+
try {
|
19
|
+
return client.fetcher(batchedQuery);
|
20
|
+
}
|
21
|
+
catch (e) {
|
22
|
+
return Promise.reject(e);
|
23
|
+
}
|
24
|
+
})().then((responses) => {
|
25
|
+
if (queue.length === 1 && !Array.isArray(responses)) {
|
26
|
+
if (responses.errors && responses.errors.length) {
|
27
|
+
queue[0].reject(new error_1.GenqlError(responses.errors, responses.data));
|
28
|
+
return;
|
29
|
+
}
|
30
|
+
queue[0].resolve(responses);
|
31
|
+
return;
|
32
|
+
}
|
33
|
+
else if (responses.length !== queue.length) {
|
34
|
+
throw new Error('response length did not match query length');
|
35
|
+
}
|
36
|
+
for (let i = 0; i < queue.length; i++) {
|
37
|
+
if (responses[i].errors && responses[i].errors.length) {
|
38
|
+
queue[i].reject(new error_1.GenqlError(responses[i].errors, responses[i].data));
|
39
|
+
}
|
40
|
+
else {
|
41
|
+
queue[i].resolve(responses[i]);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
})
|
45
|
+
.catch((e) => {
|
46
|
+
for (let i = 0; i < queue.length; i++) {
|
47
|
+
queue[i].reject(e);
|
48
|
+
}
|
49
|
+
});
|
50
|
+
}
|
51
|
+
/**
|
52
|
+
* creates a list of requests to batch according to max batch size.
|
53
|
+
* @private
|
54
|
+
* @param {QueryBatcher} client - the client to create list of requests from from
|
55
|
+
* @param {Options} options - the options for the batch
|
56
|
+
*/
|
57
|
+
function dispatchQueue(client, options) {
|
58
|
+
const queue = client._queue;
|
59
|
+
const maxBatchSize = options.maxBatchSize || 0;
|
60
|
+
client._queue = [];
|
61
|
+
if (maxBatchSize > 0 && maxBatchSize < queue.length) {
|
62
|
+
for (let i = 0; i < queue.length / maxBatchSize; i++) {
|
63
|
+
dispatchQueueBatch(client, queue.slice(i * maxBatchSize, (i + 1) * maxBatchSize));
|
64
|
+
}
|
65
|
+
}
|
66
|
+
else {
|
67
|
+
dispatchQueueBatch(client, queue);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
/**
|
71
|
+
* Create a batcher client.
|
72
|
+
* @param {Fetcher} fetcher - A function that can handle the network requests to graphql endpoint
|
73
|
+
* @param {Options} options - the options to be used by client
|
74
|
+
* @param {boolean} options.shouldBatch - should the client batch requests. (default true)
|
75
|
+
* @param {integer} options.batchInterval - duration (in MS) of each batch window. (default 6)
|
76
|
+
* @param {integer} options.maxBatchSize - max number of requests in a batch. (default 0)
|
77
|
+
* @param {boolean} options.defaultHeaders - default headers to include with every request
|
78
|
+
*
|
79
|
+
* @example
|
80
|
+
* const fetcher = batchedQuery => fetch('path/to/graphql', {
|
81
|
+
* method: 'post',
|
82
|
+
* headers: {
|
83
|
+
* Accept: 'application/json',
|
84
|
+
* 'Content-Type': 'application/json',
|
85
|
+
* },
|
86
|
+
* body: JSON.stringify(batchedQuery),
|
87
|
+
* credentials: 'include',
|
88
|
+
* })
|
89
|
+
* .then(response => response.json())
|
90
|
+
*
|
91
|
+
* const client = new QueryBatcher(fetcher, { maxBatchSize: 10 })
|
92
|
+
*/
|
93
|
+
class QueryBatcher {
|
94
|
+
constructor(fetcher, { batchInterval = 6, shouldBatch = true, maxBatchSize = 0, } = {}) {
|
95
|
+
this.fetcher = fetcher;
|
96
|
+
this._options = {
|
97
|
+
batchInterval,
|
98
|
+
shouldBatch,
|
99
|
+
maxBatchSize,
|
100
|
+
};
|
101
|
+
this._queue = [];
|
102
|
+
}
|
103
|
+
/**
|
104
|
+
* Fetch will send a graphql request and return the parsed json.
|
105
|
+
* @param {string} query - the graphql query.
|
106
|
+
* @param {Variables} variables - any variables you wish to inject as key/value pairs.
|
107
|
+
* @param {[string]} operationName - the graphql operationName.
|
108
|
+
* @param {Options} overrides - the client options overrides.
|
109
|
+
*
|
110
|
+
* @return {promise} resolves to parsed json of server response
|
111
|
+
*
|
112
|
+
* @example
|
113
|
+
* client.fetch(`
|
114
|
+
* query getHuman($id: ID!) {
|
115
|
+
* human(id: $id) {
|
116
|
+
* name
|
117
|
+
* height
|
118
|
+
* }
|
119
|
+
* }
|
120
|
+
* `, { id: "1001" }, 'getHuman')
|
121
|
+
* .then(human => {
|
122
|
+
* // do something with human
|
123
|
+
* console.log(human);
|
124
|
+
* });
|
125
|
+
*/
|
126
|
+
fetch(query, variables, operationName, overrides = {}) {
|
127
|
+
const request = {
|
128
|
+
query,
|
129
|
+
};
|
130
|
+
const options = Object.assign({}, this._options, overrides);
|
131
|
+
if (variables) {
|
132
|
+
request.variables = variables;
|
133
|
+
}
|
134
|
+
if (operationName) {
|
135
|
+
request.operationName = operationName;
|
136
|
+
}
|
137
|
+
const promise = new Promise((resolve, reject) => {
|
138
|
+
this._queue.push({
|
139
|
+
request,
|
140
|
+
resolve,
|
141
|
+
reject,
|
142
|
+
});
|
143
|
+
if (this._queue.length === 1) {
|
144
|
+
if (options.shouldBatch) {
|
145
|
+
setTimeout(() => dispatchQueue(this, options), options.batchInterval);
|
146
|
+
}
|
147
|
+
else {
|
148
|
+
dispatchQueue(this, options);
|
149
|
+
}
|
150
|
+
}
|
151
|
+
});
|
152
|
+
return promise;
|
153
|
+
}
|
154
|
+
/**
|
155
|
+
* Fetch will send a graphql request and return the parsed json.
|
156
|
+
* @param {string} query - the graphql query.
|
157
|
+
* @param {Variables} variables - any variables you wish to inject as key/value pairs.
|
158
|
+
* @param {[string]} operationName - the graphql operationName.
|
159
|
+
* @param {Options} overrides - the client options overrides.
|
160
|
+
*
|
161
|
+
* @return {Promise<Array<Result>>} resolves to parsed json of server response
|
162
|
+
*
|
163
|
+
* @example
|
164
|
+
* client.forceFetch(`
|
165
|
+
* query getHuman($id: ID!) {
|
166
|
+
* human(id: $id) {
|
167
|
+
* name
|
168
|
+
* height
|
169
|
+
* }
|
170
|
+
* }
|
171
|
+
* `, { id: "1001" }, 'getHuman')
|
172
|
+
* .then(human => {
|
173
|
+
* // do something with human
|
174
|
+
* console.log(human);
|
175
|
+
* });
|
176
|
+
*/
|
177
|
+
forceFetch(query, variables, operationName, overrides = {}) {
|
178
|
+
const request = {
|
179
|
+
query,
|
180
|
+
};
|
181
|
+
const options = Object.assign({}, this._options, overrides, {
|
182
|
+
shouldBatch: false,
|
183
|
+
});
|
184
|
+
if (variables) {
|
185
|
+
request.variables = variables;
|
186
|
+
}
|
187
|
+
if (operationName) {
|
188
|
+
request.operationName = operationName;
|
189
|
+
}
|
190
|
+
const promise = new Promise((resolve, reject) => {
|
191
|
+
const client = new QueryBatcher(this.fetcher, this._options);
|
192
|
+
client._queue = [
|
193
|
+
{
|
194
|
+
request,
|
195
|
+
resolve,
|
196
|
+
reject,
|
197
|
+
},
|
198
|
+
];
|
199
|
+
dispatchQueue(client, options);
|
200
|
+
});
|
201
|
+
return promise;
|
202
|
+
}
|
203
|
+
}
|
204
|
+
exports.QueryBatcher = QueryBatcher;
|
205
|
+
//# sourceMappingURL=batcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"batcher.js","sourceRoot":"","sources":["../../../../../../../../extensions/healthie/lib/sdk/genql/generated/runtime/batcher.ts"],"names":[],"mappings":";;;AAEA,mCAAoC;AAiCpC;;;;;;GAMG;AACH,SAAS,kBAAkB,CAAC,MAAoB,EAAE,KAAY;IAC1D,IAAI,YAAY,GAA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A;QACD,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE;YACxD,WAAW,EAAE,KAAK;SACrB,CAAC,CAAA;QAEF,IAAI,SAAS,EAAE;YACX,OAAO,CAAC,SAAS,GAAG,SAAS,CAAA;SAChC;QAED,IAAI,aAAa,EAAE;YACf,OAAO,CAAC,aAAa,GAAG,aAAa,CAAA;SACxC;QAED,MAAM,OAAO,GAAG,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACpD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;YAC5D,MAAM,CAAC,MAAM,GAAG;gBACZ;oBACI,OAAO;oBACP,OAAO;oBACP,MAAM;iBACT;aACJ,CAAA;YACD,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;QAClC,CAAC,CAAC,CAAA;QACF,OAAO,OAAO,CAAA;IAClB,CAAC;CACJ;AA9ID,oCA8IC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { type BatchOptions } from './fetcher';
|
2
|
+
import type { ExecutionResult, LinkedType } from './types';
|
3
|
+
import { type GraphqlOperation } from './generateGraphqlOperation';
|
4
|
+
export type Headers = HeadersInit | (() => HeadersInit) | (() => Promise<HeadersInit>);
|
5
|
+
export type BaseFetcher = (operation: GraphqlOperation | GraphqlOperation[]) => Promise<ExecutionResult | ExecutionResult[]>;
|
6
|
+
export type ClientOptions = Omit<RequestInit, 'body' | 'headers'> & {
|
7
|
+
url?: string;
|
8
|
+
batch?: BatchOptions | boolean;
|
9
|
+
fetcher?: BaseFetcher;
|
10
|
+
fetch?: Function;
|
11
|
+
headers?: Headers;
|
12
|
+
};
|
13
|
+
export declare const createClient: ({ queryRoot, mutationRoot, subscriptionRoot, ...options }: Omit<RequestInit, "headers" | "body"> & {
|
14
|
+
url?: string | undefined;
|
15
|
+
batch?: boolean | BatchOptions | undefined;
|
16
|
+
fetcher?: BaseFetcher | undefined;
|
17
|
+
fetch?: Function | undefined;
|
18
|
+
headers?: Headers | undefined;
|
19
|
+
} & {
|
20
|
+
queryRoot?: LinkedType | undefined;
|
21
|
+
mutationRoot?: LinkedType | undefined;
|
22
|
+
subscriptionRoot?: LinkedType | undefined;
|
23
|
+
}) => any;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
// @ts-nocheck
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.createClient = void 0;
|
5
|
+
const fetcher_1 = require("./fetcher");
|
6
|
+
const generateGraphqlOperation_1 = require("./generateGraphqlOperation");
|
7
|
+
const createClient = ({ queryRoot, mutationRoot, subscriptionRoot, ...options }) => {
|
8
|
+
const fetcher = (0, fetcher_1.createFetcher)(options);
|
9
|
+
const client = {};
|
10
|
+
if (queryRoot) {
|
11
|
+
client.query = (request) => {
|
12
|
+
if (!queryRoot)
|
13
|
+
throw new Error('queryRoot argument is missing');
|
14
|
+
const resultPromise = fetcher((0, generateGraphqlOperation_1.generateGraphqlOperation)('query', queryRoot, request));
|
15
|
+
return resultPromise;
|
16
|
+
};
|
17
|
+
}
|
18
|
+
if (mutationRoot) {
|
19
|
+
client.mutation = (request) => {
|
20
|
+
if (!mutationRoot)
|
21
|
+
throw new Error('mutationRoot argument is missing');
|
22
|
+
const resultPromise = fetcher((0, generateGraphqlOperation_1.generateGraphqlOperation)('mutation', mutationRoot, request));
|
23
|
+
return resultPromise;
|
24
|
+
};
|
25
|
+
}
|
26
|
+
return client;
|
27
|
+
};
|
28
|
+
exports.createClient = createClient;
|
29
|
+
//# sourceMappingURL=createClient.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createClient.js","sourceRoot":"","sources":["../../../../../../../../extensions/healthie/lib/sdk/genql/generated/runtime/createClient.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,uCAA6D;AAE7D,yEAGmC;AAmB5B,MAAM,YAAY,GAAG,CAAC,EACzB,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,GAAG,OAAO,EAKb,EAAE,EAAE;IACD,MAAM,OAAO,GAAG,IAAA,uBAAa,EAAC,OAAO,CAAC,CAAA;IACtC,MAAM,MAAM,GAGR,EAAE,CAAA;IAEN,IAAI,SAAS,EAAE;QACX,MAAM,CAAC,KAAK,GAAG,CAAC,OAAY,EAAE,EAAE;YAC5B,IAAI,CAAC,SAAS;gBAAE,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAA;YAEhE,MAAM,aAAa,GAAG,OAAO,CACzB,IAAA,mDAAwB,EAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,CACxD,CAAA;YAED,OAAO,aAAa,CAAA;QACxB,CAAC,CAAA;KACJ;IACD,IAAI,YAAY,EAAE;QACd,MAAM,CAAC,QAAQ,GAAG,CAAC,OAAY,EAAE,EAAE;YAC/B,IAAI,CAAC,YAAY;gBACb,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAA;YAEvD,MAAM,aAAa,GAAG,OAAO,CACzB,IAAA,mDAAwB,EAAC,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC,CAC9D,CAAA;YAED,OAAO,aAAa,CAAA;QACxB,CAAC,CAAA;KACJ;IAED,OAAO,MAAa,CAAA;AACxB,CAAC,CAAA;AAzCY,QAAA,YAAY,gBAyCxB"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare class GenqlError extends Error {
|
2
|
+
errors: Array<GraphqlError>;
|
3
|
+
/**
|
4
|
+
* Partial data returned by the server
|
5
|
+
*/
|
6
|
+
data?: any;
|
7
|
+
constructor(errors: any[], data: any);
|
8
|
+
}
|
9
|
+
interface GraphqlError {
|
10
|
+
message: string;
|
11
|
+
locations?: Array<{
|
12
|
+
line: number;
|
13
|
+
column: number;
|
14
|
+
}>;
|
15
|
+
path?: string[];
|
16
|
+
extensions?: Record<string, any>;
|
17
|
+
}
|
18
|
+
export {};
|