@awell-health/awell-extensions 2.0.256 → 2.0.258

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.
@@ -3,11 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.UserGroupOrderKeys = exports.TransferOrderKeys = exports.TaskOrderKeys = exports.TagOrderKeys = exports.SuperBillOrderKeys = exports.StripeCustomerDetailOrderKeys = exports.SignedStreamName = exports.SentWebhookOrderKeys = exports.SentFaxOrderKeys = exports.SentDirectMessageOrderKeys = exports.RequestedPaymentOrderKeys = exports.ReferringPhysicianOrderKeys = exports.ReceivedFaxOrderKeys = exports.ReceivedDirectMessageOrderKeys = exports.ProductOrderKeys = exports.OrganizationMembershipRole = exports.OrganizationMembershipOrderKeys = exports.OnboardingFlowOrderKeys = exports.OfferingOrderKeys = exports.OfferingCouponOrderKeys = exports.NotificationOrderKeys = exports.NoteOrderKeys = exports.MonographFormat = exports.MfaType = exports.LabOrderOrderKeys = exports.IntakeFlowOrderKeys = exports.InsurancePlanOrderKeys = exports.IndividualClientNoteSorting = exports.IndividualClientNoteOrderKeys = exports.IcdCodeOrderKeys = exports.GoalOrderKeys = exports.FormType = exports.FormStatus = exports.FormHistorySourceable = exports.FormHistoryAction = exports.FormAnswerGroupOrderKeys = exports.FolderOrderKeys = exports.EntryOrderKeys = exports.DrugAllergenTypeEnum = exports.DocumentOrderKeys = exports.CustomModuleFormOrderKeys = exports.ConversationMembershipOrderKeys = exports.Cms1500OrderKeys = exports.ChargeBackOrderKeys = exports.CarePlanOrderKeys = exports.BillingItemOrderKeys = exports.AppointmentTypeOrderKeys = exports.AppointmentOrderKeys = exports.AppliedTagOrderKeys = exports.ApiKeyOrderKeys = void 0;
7
- exports.UpdateTaskDocument = exports.UpdatePatientDocument = exports.UpdateConversationDocument = exports.UpdateAppointmentDocument = exports.SendChatMessageDocument = exports.RemoveTagFromUserDocument = exports.EntriesDocument = exports.GetUserDocument = exports.GetTaskDocument = exports.GetScheduledAppointmentsDocument = exports.GetRequestedFormCompletionDocument = exports.GetMetricEntryDocument = exports.GetMessageDocument = exports.GetLabOrderDocument = exports.GetGoalDocument = exports.GetFormTemplateDocument = exports.GetFormAnswerGroupDocument = exports.GetConversationListDocument = exports.GetConversationDocument = exports.GetAppointmentDocument = exports.GetAppliedTagDocument = exports.DeleteTaskDocument = exports.DeleteAppointmentDocument = exports.CreateTaskDocument = exports.CreatePatientDocument = exports.CreateLocationDocument = exports.CreateJournalEntryDocument = exports.CreateGoalDocument = exports.CreateFormCompletionRequestDocument = exports.CreateFormAnswerGroupDocument = exports.CreateEntryDocument = exports.CreateConversationDocument = exports.CreateAppointmentDocument = exports.ApplyTagsToUserDocument = exports.WebhookOrderKeys = exports.UserOrderKeys = void 0;
6
+ exports.OrganizationMembershipOrderKeys = exports.OnboardingFlowOrderKeys = exports.OfferingOrderKeys = exports.OfferingCouponOrderKeys = exports.NotificationOrderKeys = exports.NoteOrderKeys = exports.MonographFormat = exports.MfaType = exports.LabOrderOrderKeys = exports.LabOrderLabVendor = exports.LabOrderInterpretation = exports.LabOrderBilling = exports.InterventionType = exports.IntakeFlowOrderKeys = exports.InsurancePlanOrderKeys = exports.IndividualClientNoteSorting = exports.IndividualClientNoteOrderKeys = exports.IcdCodeOrderKeys = exports.GoalOrderKeys = exports.FormType = exports.FormStatus = exports.FormHistorySourceable = exports.FormHistoryAction = exports.FormAnswerGroupOrderKeys = exports.FolderOrderKeys = exports.EntryOrderKeys = exports.EligibilityCheckService = exports.DrugAllergenTypeEnum = exports.DocumentOrderKeys = exports.CustomModuleFormOrderKeys = exports.ConversationMembershipOrderKeys = exports.Cms1500Status = exports.Cms1500OrderKeys = exports.ClaimMdRejectionMessagesInfo = exports.ClaimDestinationIntegration = exports.ChartNoteStatus = exports.ChargeDisputeStatus = exports.ChargeBackOrderKeys = exports.CarePlanOrderKeys = exports.BillingItemOrderKeys = exports.AuditEventType = exports.AuditEventResourceName = exports.AuditEventOrderKeys = exports.AppointmentWorkflowChartNoteStatus = exports.AppointmentTypeOrderKeys = exports.AppointmentRequestOrderKeys = exports.AppointmentOrderKeys = exports.AppliedTagOrderKeys = exports.ApiKeyOrderKeys = exports.Action = void 0;
7
+ exports.GetGoalDocument = exports.GetFormTemplateDocument = exports.GetFormAnswerGroupDocument = exports.GetConversationListDocument = exports.GetConversationDocument = exports.GetAppointmentDocument = exports.GetAppliedTagDocument = exports.DeleteTaskDocument = exports.DeleteAppointmentDocument = exports.CreateTaskDocument = exports.CreatePatientDocument = exports.CreateLocationDocument = exports.CreateJournalEntryDocument = exports.CreateGoalDocument = exports.CreateFormCompletionRequestDocument = exports.CreateFormAnswerGroupDocument = exports.CreateEntryDocument = exports.CreateConversationDocument = exports.CreateAppointmentDocument = exports.ApplyTagsToUserDocument = exports.ZoomRecordingTypeEnum = exports.ZoomRecordingStatusEnum = exports.ZoomRecordingFileTypeEnum = exports.WriteOffType = exports.WebhookOrderKeys = exports.UserOrderKeys = exports.UserGroupOrderKeys = exports.TransferOrderKeys = exports.TaskOrderKeys = exports.TagOrderKeys = exports.SuperBillOrderKeys = exports.StripeCustomerDetailOrderKeys = exports.SmartPhraseOrderKeys = exports.SignedStreamName = exports.SentWebhookOrderKeys = exports.SentFaxOrderKeys = exports.SentDirectMessageXml = exports.SentDirectMessageOrderKeys = exports.RequestedPaymentStatus = exports.RequestedPaymentOrderKeys = exports.ReferringPhysicianOrderKeys = exports.ReceivedFaxOrderKeys = exports.ReceivedDirectMessageOrderKeys = exports.ProductOrderKeys = exports.PdfLetterheadTemplateTeamMemberNameSource = exports.PdfLetterheadTemplatePhoneNumberSource = exports.PdfLetterheadTemplateEmailSource = exports.PdfLetterheadTemplateBrandLogoSource = exports.PdfLetterheadTemplateAddressSource = exports.OrganizationMembershipRole = void 0;
8
+ exports.UpdateTaskDocument = exports.UpdatePatientDocument = exports.UpdateConversationDocument = exports.UpdateAppointmentDocument = exports.SendChatMessageDocument = exports.RemoveTagFromUserDocument = exports.LockFormAnswerGroupDocument = exports.EntriesDocument = exports.GetUserDocument = exports.GetTaskDocument = exports.GetScheduledAppointmentsDocument = exports.GetRequestedFormCompletionDocument = exports.GetMetricEntryDocument = exports.GetMessageDocument = exports.GetLabOrderDocument = void 0;
8
9
  exports.getSdk = getSdk;
9
10
  const graphql_1 = require("graphql");
10
11
  const graphql_tag_1 = __importDefault(require("graphql-tag"));
12
+ /** Enum for `FormAnswerGroupAuditEvent#action` */
13
+ var Action;
14
+ (function (Action) {
15
+ Action["AddendumCreated"] = "ADDENDUM_CREATED";
16
+ Action["Locked"] = "LOCKED";
17
+ Action["RemoveSignature"] = "REMOVE_SIGNATURE";
18
+ Action["Signed"] = "SIGNED";
19
+ Action["Unlocked"] = "UNLOCKED";
20
+ })(Action || (exports.Action = Action = {}));
11
21
  /** API Key sorting enum */
12
22
  var ApiKeyOrderKeys;
13
23
  (function (ApiKeyOrderKeys) {
@@ -41,6 +51,17 @@ var AppointmentOrderKeys;
41
51
  AppointmentOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
42
52
  AppointmentOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
43
53
  })(AppointmentOrderKeys || (exports.AppointmentOrderKeys = AppointmentOrderKeys = {}));
54
+ /** Appoinment Request sorting enum */
55
+ var AppointmentRequestOrderKeys;
56
+ (function (AppointmentRequestOrderKeys) {
57
+ AppointmentRequestOrderKeys["ActiveClients"] = "active_clients";
58
+ AppointmentRequestOrderKeys["ApptType"] = "appt_type";
59
+ AppointmentRequestOrderKeys["ClientName"] = "client_name";
60
+ AppointmentRequestOrderKeys["DateAsc"] = "date_asc";
61
+ AppointmentRequestOrderKeys["DateDesc"] = "date_desc";
62
+ AppointmentRequestOrderKeys["NewClients"] = "new_clients";
63
+ AppointmentRequestOrderKeys["ReqProvider"] = "req_provider";
64
+ })(AppointmentRequestOrderKeys || (exports.AppointmentRequestOrderKeys = AppointmentRequestOrderKeys = {}));
44
65
  /** Appointment Type sorting enum */
45
66
  var AppointmentTypeOrderKeys;
46
67
  (function (AppointmentTypeOrderKeys) {
@@ -53,6 +74,51 @@ var AppointmentTypeOrderKeys;
53
74
  AppointmentTypeOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
54
75
  AppointmentTypeOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
55
76
  })(AppointmentTypeOrderKeys || (exports.AppointmentTypeOrderKeys = AppointmentTypeOrderKeys = {}));
77
+ /** Chart note statuses */
78
+ var AppointmentWorkflowChartNoteStatus;
79
+ (function (AppointmentWorkflowChartNoteStatus) {
80
+ AppointmentWorkflowChartNoteStatus["Created"] = "CREATED";
81
+ AppointmentWorkflowChartNoteStatus["Locked"] = "LOCKED";
82
+ AppointmentWorkflowChartNoteStatus["Signed"] = "SIGNED";
83
+ AppointmentWorkflowChartNoteStatus["SignedAndLocked"] = "SIGNED_AND_LOCKED";
84
+ })(AppointmentWorkflowChartNoteStatus || (exports.AppointmentWorkflowChartNoteStatus = AppointmentWorkflowChartNoteStatus = {}));
85
+ /** AuditEvent sorting enum */
86
+ var AuditEventOrderKeys;
87
+ (function (AuditEventOrderKeys) {
88
+ AuditEventOrderKeys["OccurredAtAsc"] = "OCCURRED_AT_ASC";
89
+ AuditEventOrderKeys["OccurredAtDesc"] = "OCCURRED_AT_DESC";
90
+ })(AuditEventOrderKeys || (exports.AuditEventOrderKeys = AuditEventOrderKeys = {}));
91
+ /** The types of resources that audit events can be associated with. */
92
+ var AuditEventResourceName;
93
+ (function (AuditEventResourceName) {
94
+ AuditEventResourceName["ApiKey"] = "API_KEY";
95
+ AuditEventResourceName["Appointment"] = "APPOINTMENT";
96
+ AuditEventResourceName["AppointmentInclusion"] = "APPOINTMENT_INCLUSION";
97
+ AuditEventResourceName["AppointmentLocation"] = "APPOINTMENT_LOCATION";
98
+ AuditEventResourceName["AppointmentSetting"] = "APPOINTMENT_SETTING";
99
+ AuditEventResourceName["Availability"] = "AVAILABILITY";
100
+ AuditEventResourceName["BillingItem"] = "BILLING_ITEM";
101
+ AuditEventResourceName["Cms1500"] = "CMS1500";
102
+ AuditEventResourceName["Cms1500Policy"] = "CMS1500_POLICY";
103
+ AuditEventResourceName["CptCodesCms1500"] = "CPT_CODES_CMS1500";
104
+ AuditEventResourceName["Diagnosis"] = "DIAGNOSIS";
105
+ AuditEventResourceName["FeatureToggle"] = "FEATURE_TOGGLE";
106
+ AuditEventResourceName["FormAnswer"] = "FORM_ANSWER";
107
+ AuditEventResourceName["FormAnswerGroup"] = "FORM_ANSWER_GROUP";
108
+ AuditEventResourceName["Location"] = "LOCATION";
109
+ AuditEventResourceName["Organization"] = "ORGANIZATION";
110
+ AuditEventResourceName["OrganizationInfo"] = "ORGANIZATION_INFO";
111
+ AuditEventResourceName["OrganizationMembership"] = "ORGANIZATION_MEMBERSHIP";
112
+ AuditEventResourceName["Policy"] = "POLICY";
113
+ AuditEventResourceName["User"] = "USER";
114
+ })(AuditEventResourceName || (exports.AuditEventResourceName = AuditEventResourceName = {}));
115
+ /** The different kinds of AuditEvents */
116
+ var AuditEventType;
117
+ (function (AuditEventType) {
118
+ AuditEventType["Create"] = "CREATE";
119
+ AuditEventType["Destroy"] = "DESTROY";
120
+ AuditEventType["Update"] = "UPDATE";
121
+ })(AuditEventType || (exports.AuditEventType = AuditEventType = {}));
56
122
  /** BillingItem sorting enum */
57
123
  var BillingItemOrderKeys;
58
124
  (function (BillingItemOrderKeys) {
@@ -95,6 +161,43 @@ var ChargeBackOrderKeys;
95
161
  ChargeBackOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
96
162
  ChargeBackOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
97
163
  })(ChargeBackOrderKeys || (exports.ChargeBackOrderKeys = ChargeBackOrderKeys = {}));
164
+ /** Charge dispute statuses */
165
+ var ChargeDisputeStatus;
166
+ (function (ChargeDisputeStatus) {
167
+ ChargeDisputeStatus["Lost"] = "LOST";
168
+ ChargeDisputeStatus["NeedsResponse"] = "NEEDS_RESPONSE";
169
+ ChargeDisputeStatus["UnderReview"] = "UNDER_REVIEW";
170
+ ChargeDisputeStatus["WarningClosed"] = "WARNING_CLOSED";
171
+ ChargeDisputeStatus["WarningNeedsResponse"] = "WARNING_NEEDS_RESPONSE";
172
+ ChargeDisputeStatus["WarningUnderReview"] = "WARNING_UNDER_REVIEW";
173
+ ChargeDisputeStatus["Won"] = "WON";
174
+ })(ChargeDisputeStatus || (exports.ChargeDisputeStatus = ChargeDisputeStatus = {}));
175
+ /** Chart note statuses */
176
+ var ChartNoteStatus;
177
+ (function (ChartNoteStatus) {
178
+ ChartNoteStatus["CoSigned"] = "CO_SIGNED";
179
+ ChartNoteStatus["CoSignedAndLocked"] = "CO_SIGNED_AND_LOCKED";
180
+ ChartNoteStatus["Created"] = "CREATED";
181
+ ChartNoteStatus["Locked"] = "LOCKED";
182
+ ChartNoteStatus["Signed"] = "SIGNED";
183
+ ChartNoteStatus["SignedAndLocked"] = "SIGNED_AND_LOCKED";
184
+ })(ChartNoteStatus || (exports.ChartNoteStatus = ChartNoteStatus = {}));
185
+ /** Options for the service to submit a claim to */
186
+ var ClaimDestinationIntegration;
187
+ (function (ClaimDestinationIntegration) {
188
+ ClaimDestinationIntegration["Candid"] = "candid";
189
+ ClaimDestinationIntegration["ChangeHealth"] = "change_health";
190
+ ClaimDestinationIntegration["ClaimMd"] = "claim_md";
191
+ ClaimDestinationIntegration["OfficeAlly"] = "office_ally";
192
+ })(ClaimDestinationIntegration || (exports.ClaimDestinationIntegration = ClaimDestinationIntegration = {}));
193
+ /** The reason why a ClaimMd rejection messages field is empty */
194
+ var ClaimMdRejectionMessagesInfo;
195
+ (function (ClaimMdRejectionMessagesInfo) {
196
+ ClaimMdRejectionMessagesInfo["ClaimMdRejectionMessagesNotAvailable"] = "CLAIM_MD_REJECTION_MESSAGES_NOT_AVAILABLE";
197
+ ClaimMdRejectionMessagesInfo["NotAClaimMdClaim"] = "NOT_A_CLAIM_MD_CLAIM";
198
+ ClaimMdRejectionMessagesInfo["NoRecentClaimSubmission"] = "NO_RECENT_CLAIM_SUBMISSION";
199
+ ClaimMdRejectionMessagesInfo["NoRejectionMessages"] = "NO_REJECTION_MESSAGES";
200
+ })(ClaimMdRejectionMessagesInfo || (exports.ClaimMdRejectionMessagesInfo = ClaimMdRejectionMessagesInfo = {}));
98
201
  /** Cms1500 sorting enum */
99
202
  var Cms1500OrderKeys;
100
203
  (function (Cms1500OrderKeys) {
@@ -111,6 +214,30 @@ var Cms1500OrderKeys;
111
214
  Cms1500OrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
112
215
  Cms1500OrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
113
216
  })(Cms1500OrderKeys || (exports.Cms1500OrderKeys = Cms1500OrderKeys = {}));
217
+ /** Status options for a CMS1500 form */
218
+ var Cms1500Status;
219
+ (function (Cms1500Status) {
220
+ /** Batched */
221
+ Cms1500Status["Batched"] = "BATCHED";
222
+ /** Client's Deductible Applies */
223
+ Cms1500Status["ClientsDeductibleApplies"] = "CLIENTS_DEDUCTIBLE_APPLIES";
224
+ /** Closed */
225
+ Cms1500Status["Closed"] = "CLOSED";
226
+ /** Denied by Insurance */
227
+ Cms1500Status["Denied"] = "DENIED";
228
+ /** Fully Paid */
229
+ Cms1500Status["FullyPaid"] = "FULLY_PAID";
230
+ /** Not Sent */
231
+ Cms1500Status["NotSent"] = "NOT_SENT";
232
+ /** Partially Paid */
233
+ Cms1500Status["PartiallyPaid"] = "PARTIALLY_PAID";
234
+ /** Rejected by Clearinghouse */
235
+ Cms1500Status["Rejected"] = "REJECTED";
236
+ /** Scheduled */
237
+ Cms1500Status["Scheduled"] = "SCHEDULED";
238
+ /** Sent */
239
+ Cms1500Status["Sent"] = "SENT";
240
+ })(Cms1500Status || (exports.Cms1500Status = Cms1500Status = {}));
114
241
  /** Conversation Membership sorting enum */
115
242
  var ConversationMembershipOrderKeys;
116
243
  (function (ConversationMembershipOrderKeys) {
@@ -155,6 +282,12 @@ var DrugAllergenTypeEnum;
155
282
  /** A screenable ingredient */
156
283
  DrugAllergenTypeEnum["Ingredient"] = "INGREDIENT";
157
284
  })(DrugAllergenTypeEnum || (exports.DrugAllergenTypeEnum = DrugAllergenTypeEnum = {}));
285
+ /** Options for the service to run the eligibiliy check with */
286
+ var EligibilityCheckService;
287
+ (function (EligibilityCheckService) {
288
+ EligibilityCheckService["ChangeHealth"] = "change_health";
289
+ EligibilityCheckService["ClaimMd"] = "claim_md";
290
+ })(EligibilityCheckService || (exports.EligibilityCheckService = EligibilityCheckService = {}));
158
291
  /** Entry sorting enum */
159
292
  var EntryOrderKeys;
160
293
  (function (EntryOrderKeys) {
@@ -280,6 +413,50 @@ var IntakeFlowOrderKeys;
280
413
  IntakeFlowOrderKeys["TypeAsc"] = "TYPE_ASC";
281
414
  IntakeFlowOrderKeys["TypeDesc"] = "TYPE_DESC";
282
415
  })(IntakeFlowOrderKeys || (exports.IntakeFlowOrderKeys = IntakeFlowOrderKeys = {}));
416
+ /** The type of intervention for a DSI comment */
417
+ var InterventionType;
418
+ (function (InterventionType) {
419
+ InterventionType["AllergyDrugInteractions"] = "ALLERGY_DRUG_INTERACTIONS";
420
+ InterventionType["BreastCancerProcedureRecommendation"] = "BREAST_CANCER_PROCEDURE_RECOMMENDATION";
421
+ InterventionType["DrugDrugInteractions"] = "DRUG_DRUG_INTERACTIONS";
422
+ InterventionType["GenderMismatchedDiagnosis"] = "GENDER_MISMATCHED_DIAGNOSIS";
423
+ InterventionType["IncompatibleDiabetesDiagnosis"] = "INCOMPATIBLE_DIABETES_DIAGNOSIS";
424
+ InterventionType["LabBasedAssessments"] = "LAB_BASED_ASSESSMENTS";
425
+ InterventionType["UdiNotUnique"] = "UDI_NOT_UNIQUE";
426
+ InterventionType["VitalsOutsideOfRange"] = "VITALS_OUTSIDE_OF_RANGE";
427
+ })(InterventionType || (exports.InterventionType = InterventionType = {}));
428
+ /** The entity that will be billed for the lab order */
429
+ var LabOrderBilling;
430
+ (function (LabOrderBilling) {
431
+ /** Bill to patient insurance */
432
+ LabOrderBilling["Insurance"] = "INSURANCE";
433
+ /** Bill to patient */
434
+ LabOrderBilling["Patient"] = "PATIENT";
435
+ /** Bill to organization */
436
+ LabOrderBilling["Provider"] = "PROVIDER";
437
+ })(LabOrderBilling || (exports.LabOrderBilling = LabOrderBilling = {}));
438
+ /** Interpretations for Lab Orders and related objects */
439
+ var LabOrderInterpretation;
440
+ (function (LabOrderInterpretation) {
441
+ /** Abnormal */
442
+ LabOrderInterpretation["Abnormal"] = "ABNORMAL";
443
+ /** Critical */
444
+ LabOrderInterpretation["Critical"] = "CRITICAL";
445
+ /** Normal */
446
+ LabOrderInterpretation["Normal"] = "NORMAL";
447
+ /** Unknown interpretation */
448
+ LabOrderInterpretation["Unknown"] = "UNKNOWN";
449
+ })(LabOrderInterpretation || (exports.LabOrderInterpretation = LabOrderInterpretation = {}));
450
+ /** Lab vendors that can used to order labs from */
451
+ var LabOrderLabVendor;
452
+ (function (LabOrderLabVendor) {
453
+ /** BioReference */
454
+ LabOrderLabVendor["Bioreference"] = "BIOREFERENCE";
455
+ /** Labcorp */
456
+ LabOrderLabVendor["Labcorp"] = "LABCORP";
457
+ /** Quest */
458
+ LabOrderLabVendor["Quest"] = "QUEST";
459
+ })(LabOrderLabVendor || (exports.LabOrderLabVendor = LabOrderLabVendor = {}));
283
460
  /** LabOrder sorting enum */
284
461
  var LabOrderOrderKeys;
285
462
  (function (LabOrderOrderKeys) {
@@ -380,6 +557,42 @@ var OrganizationMembershipRole;
380
557
  /** The user is a support member of the organization */
381
558
  OrganizationMembershipRole["Support"] = "SUPPORT";
382
559
  })(OrganizationMembershipRole || (exports.OrganizationMembershipRole = OrganizationMembershipRole = {}));
560
+ /** Enum for `PdfLetterheadTemplate#address_source` */
561
+ var PdfLetterheadTemplateAddressSource;
562
+ (function (PdfLetterheadTemplateAddressSource) {
563
+ PdfLetterheadTemplateAddressSource["CurrentUser"] = "CURRENT_USER";
564
+ PdfLetterheadTemplateAddressSource["Organization"] = "ORGANIZATION";
565
+ PdfLetterheadTemplateAddressSource["PrimaryProvider"] = "PRIMARY_PROVIDER";
566
+ })(PdfLetterheadTemplateAddressSource || (exports.PdfLetterheadTemplateAddressSource = PdfLetterheadTemplateAddressSource = {}));
567
+ /** Enum for `PdfLetterheadTemplate#brand_logo_source` */
568
+ var PdfLetterheadTemplateBrandLogoSource;
569
+ (function (PdfLetterheadTemplateBrandLogoSource) {
570
+ PdfLetterheadTemplateBrandLogoSource["CurrentUser"] = "CURRENT_USER";
571
+ PdfLetterheadTemplateBrandLogoSource["Organization"] = "ORGANIZATION";
572
+ PdfLetterheadTemplateBrandLogoSource["PrimaryProvider"] = "PRIMARY_PROVIDER";
573
+ })(PdfLetterheadTemplateBrandLogoSource || (exports.PdfLetterheadTemplateBrandLogoSource = PdfLetterheadTemplateBrandLogoSource = {}));
574
+ /** Enum for `PdfLetterheadTemplate#email_source` */
575
+ var PdfLetterheadTemplateEmailSource;
576
+ (function (PdfLetterheadTemplateEmailSource) {
577
+ PdfLetterheadTemplateEmailSource["CurrentUser"] = "CURRENT_USER";
578
+ PdfLetterheadTemplateEmailSource["Organization"] = "ORGANIZATION";
579
+ PdfLetterheadTemplateEmailSource["Other"] = "OTHER";
580
+ PdfLetterheadTemplateEmailSource["PrimaryProvider"] = "PRIMARY_PROVIDER";
581
+ })(PdfLetterheadTemplateEmailSource || (exports.PdfLetterheadTemplateEmailSource = PdfLetterheadTemplateEmailSource = {}));
582
+ /** Enum for `PdfLetterheadTemplate#phone_number_source` */
583
+ var PdfLetterheadTemplatePhoneNumberSource;
584
+ (function (PdfLetterheadTemplatePhoneNumberSource) {
585
+ PdfLetterheadTemplatePhoneNumberSource["CurrentUser"] = "CURRENT_USER";
586
+ PdfLetterheadTemplatePhoneNumberSource["Organization"] = "ORGANIZATION";
587
+ PdfLetterheadTemplatePhoneNumberSource["Other"] = "OTHER";
588
+ PdfLetterheadTemplatePhoneNumberSource["PrimaryProvider"] = "PRIMARY_PROVIDER";
589
+ })(PdfLetterheadTemplatePhoneNumberSource || (exports.PdfLetterheadTemplatePhoneNumberSource = PdfLetterheadTemplatePhoneNumberSource = {}));
590
+ /** Enum for `PdfLetterheadTemplate#team_member_name_source` */
591
+ var PdfLetterheadTemplateTeamMemberNameSource;
592
+ (function (PdfLetterheadTemplateTeamMemberNameSource) {
593
+ PdfLetterheadTemplateTeamMemberNameSource["CurrentUser"] = "CURRENT_USER";
594
+ PdfLetterheadTemplateTeamMemberNameSource["PrimaryProvider"] = "PRIMARY_PROVIDER";
595
+ })(PdfLetterheadTemplateTeamMemberNameSource || (exports.PdfLetterheadTemplateTeamMemberNameSource = PdfLetterheadTemplateTeamMemberNameSource = {}));
383
596
  /** Product sorting enum */
384
597
  var ProductOrderKeys;
385
598
  (function (ProductOrderKeys) {
@@ -445,7 +658,19 @@ var RequestedPaymentOrderKeys;
445
658
  RequestedPaymentOrderKeys["StatusDesc"] = "STATUS_DESC";
446
659
  RequestedPaymentOrderKeys["TypeAsc"] = "TYPE_ASC";
447
660
  RequestedPaymentOrderKeys["TypeDesc"] = "TYPE_DESC";
661
+ RequestedPaymentOrderKeys["WriteOffAmountAsc"] = "WRITE_OFF_AMOUNT_ASC";
662
+ RequestedPaymentOrderKeys["WriteOffAmountDesc"] = "WRITE_OFF_AMOUNT_DESC";
448
663
  })(RequestedPaymentOrderKeys || (exports.RequestedPaymentOrderKeys = RequestedPaymentOrderKeys = {}));
664
+ /** Requested Payment statuses */
665
+ var RequestedPaymentStatus;
666
+ (function (RequestedPaymentStatus) {
667
+ /** Not_Yet_Paid */
668
+ RequestedPaymentStatus["NotYetPaid"] = "NOT_YET_PAID";
669
+ /** Paid */
670
+ RequestedPaymentStatus["Paid"] = "PAID";
671
+ /** Partial */
672
+ RequestedPaymentStatus["Partial"] = "PARTIAL";
673
+ })(RequestedPaymentStatus || (exports.RequestedPaymentStatus = RequestedPaymentStatus = {}));
449
674
  /** SentDirectMessage sorting enum */
450
675
  var SentDirectMessageOrderKeys;
451
676
  (function (SentDirectMessageOrderKeys) {
@@ -454,6 +679,12 @@ var SentDirectMessageOrderKeys;
454
679
  SentDirectMessageOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
455
680
  SentDirectMessageOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
456
681
  })(SentDirectMessageOrderKeys || (exports.SentDirectMessageOrderKeys = SentDirectMessageOrderKeys = {}));
682
+ /** Options of what patient XML formats to include in the message */
683
+ var SentDirectMessageXml;
684
+ (function (SentDirectMessageXml) {
685
+ SentDirectMessageXml["Cda"] = "cda";
686
+ SentDirectMessageXml["ReferralNote"] = "referral_note";
687
+ })(SentDirectMessageXml || (exports.SentDirectMessageXml = SentDirectMessageXml = {}));
457
688
  /** SentFax sorting enum */
458
689
  var SentFaxOrderKeys;
459
690
  (function (SentFaxOrderKeys) {
@@ -489,6 +720,16 @@ var SignedStreamName;
489
720
  /** For new/updated notes in a conversation */
490
721
  SignedStreamName["Notes"] = "NOTES";
491
722
  })(SignedStreamName || (exports.SignedStreamName = SignedStreamName = {}));
723
+ /** Smart Phrase Order enum */
724
+ var SmartPhraseOrderKeys;
725
+ (function (SmartPhraseOrderKeys) {
726
+ SmartPhraseOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
727
+ SmartPhraseOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
728
+ SmartPhraseOrderKeys["NameAsc"] = "NAME_ASC";
729
+ SmartPhraseOrderKeys["NameDesc"] = "NAME_DESC";
730
+ SmartPhraseOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
731
+ SmartPhraseOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
732
+ })(SmartPhraseOrderKeys || (exports.SmartPhraseOrderKeys = SmartPhraseOrderKeys = {}));
492
733
  /** StripeCustomerDetails sorting enum */
493
734
  var StripeCustomerDetailOrderKeys;
494
735
  (function (StripeCustomerDetailOrderKeys) {
@@ -543,6 +784,7 @@ var TaskOrderKeys;
543
784
  TaskOrderKeys["ClientNameDesc"] = "CLIENT_NAME_DESC";
544
785
  TaskOrderKeys["CompletedAtAsc"] = "COMPLETED_AT_ASC";
545
786
  TaskOrderKeys["CompletedAtDesc"] = "COMPLETED_AT_DESC";
787
+ TaskOrderKeys["CompletedAtDescIncompleteFirst"] = "COMPLETED_AT_DESC_INCOMPLETE_FIRST";
546
788
  TaskOrderKeys["CreatedAsc"] = "CREATED_ASC";
547
789
  TaskOrderKeys["CreatedDesc"] = "CREATED_DESC";
548
790
  TaskOrderKeys["CreatorAsc"] = "CREATOR_ASC";
@@ -612,572 +854,570 @@ var WebhookOrderKeys;
612
854
  WebhookOrderKeys["UrlAsc"] = "URL_ASC";
613
855
  WebhookOrderKeys["UrlDesc"] = "URL_DESC";
614
856
  })(WebhookOrderKeys || (exports.WebhookOrderKeys = WebhookOrderKeys = {}));
857
+ /** Write-off type enum */
858
+ var WriteOffType;
859
+ (function (WriteOffType) {
860
+ WriteOffType["BillingError"] = "BILLING_ERROR";
861
+ WriteOffType["Discount"] = "DISCOUNT";
862
+ WriteOffType["FinancialHardship"] = "FINANCIAL_HARDSHIP";
863
+ WriteOffType["Other"] = "OTHER";
864
+ WriteOffType["Uncollectable"] = "UNCOLLECTABLE";
865
+ })(WriteOffType || (exports.WriteOffType = WriteOffType = {}));
866
+ /** Types of Zoom recording files */
867
+ var ZoomRecordingFileTypeEnum;
868
+ (function (ZoomRecordingFileTypeEnum) {
869
+ /** Closed caption file */
870
+ ZoomRecordingFileTypeEnum["Cc"] = "CC";
871
+ /** Recording chat text file */
872
+ ZoomRecordingFileTypeEnum["Chat"] = "CHAT";
873
+ /** Audio-only recording file */
874
+ ZoomRecordingFileTypeEnum["M4A"] = "M4A";
875
+ /** Video recording file */
876
+ ZoomRecordingFileTypeEnum["Mp4"] = "MP4";
877
+ /** Thumbnail image of the recording */
878
+ ZoomRecordingFileTypeEnum["Thumbnail"] = "THUMBNAIL";
879
+ /** Timeline file for the recording */
880
+ ZoomRecordingFileTypeEnum["Timeline"] = "TIMELINE";
881
+ /** Audio transcript file */
882
+ ZoomRecordingFileTypeEnum["Transcript"] = "TRANSCRIPT";
883
+ })(ZoomRecordingFileTypeEnum || (exports.ZoomRecordingFileTypeEnum = ZoomRecordingFileTypeEnum = {}));
884
+ /** Status of Zoom recording files */
885
+ var ZoomRecordingStatusEnum;
886
+ (function (ZoomRecordingStatusEnum) {
887
+ /** The recording is ready to be viewed */
888
+ ZoomRecordingStatusEnum["Completed"] = "completed";
889
+ /** The recording failed to process */
890
+ ZoomRecordingStatusEnum["Failed"] = "failed";
891
+ /** The recording is still being processed */
892
+ ZoomRecordingStatusEnum["Processing"] = "processing";
893
+ })(ZoomRecordingStatusEnum || (exports.ZoomRecordingStatusEnum = ZoomRecordingStatusEnum = {}));
894
+ /** Types of Zoom recordings */
895
+ var ZoomRecordingTypeEnum;
896
+ (function (ZoomRecordingTypeEnum) {
897
+ /** Recording focused on the active speaker */
898
+ ZoomRecordingTypeEnum["ActiveSpeaker"] = "active_speaker";
899
+ /** Audio-only recording */
900
+ ZoomRecordingTypeEnum["AudioOnly"] = "audio_only";
901
+ /** a transcript-only recording */
902
+ ZoomRecordingTypeEnum["AudioTranscript"] = "audio_transcript";
903
+ /** Recording with only gallery view */
904
+ ZoomRecordingTypeEnum["GalleryView"] = "gallery_view";
905
+ /** Recording with only shared screen */
906
+ ZoomRecordingTypeEnum["SharedScreen"] = "shared_screen";
907
+ /** Recording with shared screen and gallery view */
908
+ ZoomRecordingTypeEnum["SharedScreenWithGalleryView"] = "shared_screen_with_gallery_view";
909
+ /** Recording with shared screen and speaker view */
910
+ ZoomRecordingTypeEnum["SharedScreenWithSpeakerView"] = "shared_screen_with_speaker_view";
911
+ /** Recording with only speaker view */
912
+ ZoomRecordingTypeEnum["SpeakerView"] = "speaker_view";
913
+ /** a timeline with timestamps of the recording */
914
+ ZoomRecordingTypeEnum["Timeline"] = "timeline";
915
+ })(ZoomRecordingTypeEnum || (exports.ZoomRecordingTypeEnum = ZoomRecordingTypeEnum = {}));
615
916
  exports.ApplyTagsToUserDocument = (0, graphql_tag_1.default) `
616
- mutation applyTagsToUser($ids: [ID], $taggable_user_id: ID) {
617
- bulkApply(input: { ids: $ids, taggable_user_id: $taggable_user_id }) {
618
- tags {
619
- id
620
- name
621
- }
622
- messages {
623
- field
624
- message
625
- }
917
+ mutation applyTagsToUser($ids: [ID], $taggable_user_id: ID) {
918
+ bulkApply(input: {ids: $ids, taggable_user_id: $taggable_user_id}) {
919
+ tags {
920
+ id
921
+ name
922
+ }
923
+ messages {
924
+ field
925
+ message
626
926
  }
627
927
  }
628
- `;
928
+ }
929
+ `;
629
930
  exports.CreateAppointmentDocument = (0, graphql_tag_1.default) `
630
- mutation createAppointment(
631
- $user_id: String
632
- $appointment_type_id: String
633
- $contact_type: String
634
- $other_party_id: String
635
- $datetime: String
636
- $metadata: JSON
931
+ mutation createAppointment($user_id: String, $appointment_type_id: String, $contact_type: String, $other_party_id: String, $datetime: String, $metadata: JSON) {
932
+ createAppointment(
933
+ input: {user_id: $user_id, appointment_type_id: $appointment_type_id, contact_type: $contact_type, other_party_id: $other_party_id, datetime: $datetime, metadata: $metadata}
637
934
  ) {
638
- createAppointment(
639
- input: {
640
- user_id: $user_id
641
- appointment_type_id: $appointment_type_id
642
- contact_type: $contact_type
643
- other_party_id: $other_party_id
644
- datetime: $datetime
645
- metadata: $metadata
646
- }
647
- ) {
648
- appointment {
649
- id
650
- }
651
- messages {
652
- field
653
- message
654
- }
935
+ appointment {
936
+ id
937
+ }
938
+ messages {
939
+ field
940
+ message
655
941
  }
656
942
  }
657
- `;
943
+ }
944
+ `;
658
945
  exports.CreateConversationDocument = (0, graphql_tag_1.default) `
659
- mutation createConversation(
660
- $simple_added_users: String
661
- $owner_id: ID
662
- $name: String
946
+ mutation createConversation($simple_added_users: String, $owner_id: ID, $name: String) {
947
+ createConversation(
948
+ input: {simple_added_users: $simple_added_users, owner_id: $owner_id, name: $name}
663
949
  ) {
664
- createConversation(
665
- input: {
666
- simple_added_users: $simple_added_users
667
- owner_id: $owner_id
668
- name: $name
669
- }
670
- ) {
671
- conversation {
672
- id
673
- }
674
- messages {
675
- field
676
- message
677
- }
950
+ conversation {
951
+ id
952
+ }
953
+ messages {
954
+ field
955
+ message
678
956
  }
679
957
  }
680
- `;
958
+ }
959
+ `;
681
960
  exports.CreateEntryDocument = (0, graphql_tag_1.default) `
682
- mutation createEntry(
683
- $metric_stat: String
684
- $category: String
685
- $type: String
686
- $user_id: String
687
- $created_at: String
961
+ mutation createEntry($metric_stat: String, $category: String, $type: String, $user_id: String, $created_at: String) {
962
+ createEntry(
963
+ input: {category: $category, type: $type, metric_stat: $metric_stat, user_id: $user_id, created_at: $created_at}
688
964
  ) {
689
- createEntry(
690
- input: {
691
- category: $category
692
- type: $type
693
- metric_stat: $metric_stat
694
- user_id: $user_id
695
- created_at: $created_at
696
- }
697
- ) {
698
- entry {
699
- id
700
- }
701
- messages {
702
- field
703
- message
704
- }
965
+ entry {
966
+ id
967
+ }
968
+ messages {
969
+ field
970
+ message
705
971
  }
706
972
  }
707
- `;
973
+ }
974
+ `;
708
975
  exports.CreateFormAnswerGroupDocument = (0, graphql_tag_1.default) `
709
- mutation createFormAnswerGroup($input: createFormAnswerGroupInput!) {
710
- createFormAnswerGroup(input: $input) {
711
- form_answer_group {
712
- id
713
- }
714
- messages {
715
- field
716
- message
717
- }
976
+ mutation createFormAnswerGroup($input: createFormAnswerGroupInput!) {
977
+ createFormAnswerGroup(input: $input) {
978
+ form_answer_group {
979
+ id
980
+ }
981
+ messages {
982
+ field
983
+ message
718
984
  }
719
985
  }
720
- `;
986
+ }
987
+ `;
721
988
  exports.CreateFormCompletionRequestDocument = (0, graphql_tag_1.default) `
722
- mutation createFormCompletionRequest($input: createRequestedFormInput!) {
723
- createRequestedFormCompletion(input: $input) {
724
- requestedFormCompletion {
725
- id
726
- }
727
- messages {
728
- field
729
- message
730
- }
989
+ mutation createFormCompletionRequest($input: createRequestedFormInput!) {
990
+ createRequestedFormCompletion(input: $input) {
991
+ requestedFormCompletion {
992
+ id
993
+ }
994
+ messages {
995
+ field
996
+ message
731
997
  }
732
998
  }
733
- `;
999
+ }
1000
+ `;
734
1001
  exports.CreateGoalDocument = (0, graphql_tag_1.default) `
735
- mutation createGoal(
736
- $name: String
737
- $user_id: String
738
- $program_goal: Boolean
739
- $repeat: String
740
- $due_date: String
741
- $start_on: String
742
- $reminder: ReminderInput
743
- $care_plan_id: ID
744
- $title_link: String
1002
+ mutation createGoal($name: String, $user_id: String, $program_goal: Boolean, $repeat: String, $due_date: String, $start_on: String, $reminder: ReminderInput, $care_plan_id: ID, $title_link: String) {
1003
+ createGoal(
1004
+ input: {name: $name, user_id: $user_id, program_goal: $program_goal, repeat: $repeat, due_date: $due_date, start_on: $start_on, reminder: $reminder, care_plan_id: $care_plan_id, title_link: $title_link}
745
1005
  ) {
746
- createGoal(
747
- input: {
748
- name: $name
749
- user_id: $user_id
750
- program_goal: $program_goal
751
- repeat: $repeat
752
- due_date: $due_date
753
- start_on: $start_on
754
- reminder: $reminder
755
- care_plan_id: $care_plan_id
756
- title_link: $title_link
757
- }
758
- ) {
759
- goal {
760
- id
761
- }
762
- messages {
763
- field
764
- message
765
- }
1006
+ goal {
1007
+ id
1008
+ }
1009
+ messages {
1010
+ field
1011
+ message
766
1012
  }
767
1013
  }
768
- `;
1014
+ }
1015
+ `;
769
1016
  exports.CreateJournalEntryDocument = (0, graphql_tag_1.default) `
770
- mutation createJournalEntry($input: createEntryInput!) {
771
- createEntry(input: $input) {
772
- entry {
773
- id
774
- }
775
- messages {
776
- field
777
- message
778
- }
1017
+ mutation createJournalEntry($input: createEntryInput!) {
1018
+ createEntry(input: $input) {
1019
+ entry {
1020
+ id
1021
+ }
1022
+ messages {
1023
+ field
1024
+ message
779
1025
  }
780
1026
  }
781
- `;
1027
+ }
1028
+ `;
782
1029
  exports.CreateLocationDocument = (0, graphql_tag_1.default) `
783
- mutation createLocation($input: createLocationInput!) {
784
- createLocation(input: $input) {
785
- location {
786
- id
787
- name
788
- line1
789
- zip
790
- }
791
- messages {
792
- field
793
- message
794
- }
1030
+ mutation createLocation($input: createLocationInput!) {
1031
+ createLocation(input: $input) {
1032
+ location {
1033
+ id
1034
+ name
1035
+ line1
1036
+ zip
1037
+ }
1038
+ messages {
1039
+ field
1040
+ message
795
1041
  }
796
1042
  }
797
- `;
1043
+ }
1044
+ `;
798
1045
  exports.CreatePatientDocument = (0, graphql_tag_1.default) `
799
- mutation createPatient($input: createClientInput!) {
800
- createClient(input: $input) {
801
- user {
802
- id
803
- }
804
- messages {
805
- field
806
- message
807
- }
1046
+ mutation createPatient($input: createClientInput!) {
1047
+ createClient(input: $input) {
1048
+ user {
1049
+ id
1050
+ }
1051
+ messages {
1052
+ field
1053
+ message
808
1054
  }
809
1055
  }
810
- `;
1056
+ }
1057
+ `;
811
1058
  exports.CreateTaskDocument = (0, graphql_tag_1.default) `
812
- mutation createTask(
813
- $content: String
814
- $user_id: String
815
- $priority: Int
816
- $client_id: String
817
- $due_date: String
818
- $reminder: TaskReminderInput
1059
+ mutation createTask($content: String, $user_id: String, $priority: Int, $client_id: String, $due_date: String, $reminder: TaskReminderInput) {
1060
+ createTask(
1061
+ input: {content: $content, user_id: $user_id, priority: $priority, client_id: $client_id, due_date: $due_date, reminder: $reminder}
819
1062
  ) {
820
- createTask(
821
- input: {
822
- content: $content
823
- user_id: $user_id
824
- priority: $priority
825
- client_id: $client_id
826
- due_date: $due_date
827
- reminder: $reminder
828
- }
829
- ) {
830
- task {
831
- id
832
- }
833
- messages {
834
- field
835
- message
836
- }
1063
+ task {
1064
+ id
1065
+ }
1066
+ messages {
1067
+ field
1068
+ message
837
1069
  }
838
1070
  }
839
- `;
1071
+ }
1072
+ `;
840
1073
  exports.DeleteAppointmentDocument = (0, graphql_tag_1.default) `
841
- mutation deleteAppointment($id: ID, $deleteRecurring: Boolean) {
842
- deleteAppointment(input: { id: $id, deleteRecurring: $deleteRecurring }) {
843
- appointment {
844
- id
845
- }
846
- messages {
847
- field
848
- message
849
- }
1074
+ mutation deleteAppointment($id: ID, $deleteRecurring: Boolean) {
1075
+ deleteAppointment(input: {id: $id, deleteRecurring: $deleteRecurring}) {
1076
+ appointment {
1077
+ id
1078
+ }
1079
+ messages {
1080
+ field
1081
+ message
850
1082
  }
851
1083
  }
852
- `;
1084
+ }
1085
+ `;
853
1086
  exports.DeleteTaskDocument = (0, graphql_tag_1.default) `
854
- mutation deleteTask($id: ID) {
855
- deleteTask(input: { id: $id }) {
856
- task {
857
- id
858
- }
859
- messages {
860
- field
861
- message
862
- }
1087
+ mutation deleteTask($id: ID) {
1088
+ deleteTask(input: {id: $id}) {
1089
+ task {
1090
+ id
1091
+ }
1092
+ messages {
1093
+ field
1094
+ message
863
1095
  }
864
1096
  }
865
- `;
1097
+ }
1098
+ `;
866
1099
  exports.GetAppliedTagDocument = (0, graphql_tag_1.default) `
867
- query getAppliedTag($id: ID!, $include_deleted: Boolean = false) {
868
- appliedTag(id: $id, include_deleted: $include_deleted) {
869
- created_at
870
- id
871
- tag_id
872
- updated_at
873
- user_id
874
- }
1100
+ query getAppliedTag($id: ID!, $include_deleted: Boolean = false) {
1101
+ appliedTag(id: $id, include_deleted: $include_deleted) {
1102
+ created_at
1103
+ id
1104
+ tag_id
1105
+ updated_at
1106
+ user_id
875
1107
  }
876
- `;
1108
+ }
1109
+ `;
877
1110
  exports.GetAppointmentDocument = (0, graphql_tag_1.default) `
878
- query getAppointment($id: ID, $include_deleted: Boolean = false) {
879
- appointment(id: $id, include_deleted: $include_deleted) {
1111
+ query getAppointment($id: ID, $include_deleted: Boolean = false) {
1112
+ appointment(id: $id, include_deleted: $include_deleted) {
1113
+ id
1114
+ date
1115
+ contact_type
1116
+ pm_status
1117
+ provider {
880
1118
  id
881
- date
882
- contact_type
883
- pm_status
884
- provider {
885
- id
886
- full_name
887
- }
888
- user {
889
- id
890
- full_name
891
- }
892
- appointment_type {
893
- id
894
- name
895
- }
1119
+ full_name
896
1120
  }
897
- }
898
- `;
899
- exports.GetConversationDocument = (0, graphql_tag_1.default) `
900
- query getConversation($id: ID) {
901
- conversation(id: $id) {
1121
+ user {
902
1122
  id
903
- patient_id
1123
+ full_name
1124
+ }
1125
+ appointment_type {
1126
+ id
1127
+ name
904
1128
  }
905
1129
  }
906
- `;
1130
+ }
1131
+ `;
1132
+ exports.GetConversationDocument = (0, graphql_tag_1.default) `
1133
+ query getConversation($id: ID) {
1134
+ conversation(id: $id) {
1135
+ id
1136
+ patient_id
1137
+ }
1138
+ }
1139
+ `;
907
1140
  exports.GetConversationListDocument = (0, graphql_tag_1.default) `
908
- query getConversationList(
909
- $offset: Int
910
- $keywords: String
911
- $active_status: String
912
- $client_id: String
913
- $read_status: String
914
- $conversation_type: String
915
- $provider_id: ID
1141
+ query getConversationList($offset: Int, $keywords: String, $active_status: String, $client_id: String, $read_status: String, $conversation_type: String, $provider_id: ID) {
1142
+ conversationMembershipsCount(
1143
+ keywords: $keywords
1144
+ active_status: $active_status
1145
+ client_id: $client_id
1146
+ read_status: $read_status
1147
+ conversation_type: $conversation_type
1148
+ provider_id: $provider_id
1149
+ )
1150
+ conversationMemberships(
1151
+ offset: $offset
1152
+ keywords: $keywords
1153
+ active_status: $active_status
1154
+ client_id: $client_id
1155
+ read_status: $read_status
1156
+ conversation_type: $conversation_type
1157
+ provider_id: $provider_id
916
1158
  ) {
917
- conversationMembershipsCount(
918
- keywords: $keywords
919
- active_status: $active_status
920
- client_id: $client_id
921
- read_status: $read_status
922
- conversation_type: $conversation_type
923
- provider_id: $provider_id
924
- )
925
- conversationMemberships(
926
- offset: $offset
927
- keywords: $keywords
928
- active_status: $active_status
929
- client_id: $client_id
930
- read_status: $read_status
931
- conversation_type: $conversation_type
932
- provider_id: $provider_id
933
- ) {
1159
+ id
1160
+ display_name
1161
+ archived
1162
+ viewed
1163
+ convo {
934
1164
  id
935
- display_name
936
- archived
937
- viewed
938
- convo {
1165
+ conversation_memberships_count
1166
+ owner {
939
1167
  id
940
- conversation_memberships_count
941
- owner {
942
- id
943
- }
944
1168
  }
945
1169
  }
946
1170
  }
947
- `;
1171
+ }
1172
+ `;
948
1173
  exports.GetFormAnswerGroupDocument = (0, graphql_tag_1.default) `
949
- query getFormAnswerGroup($id: ID) {
950
- formAnswerGroup(id: $id) {
1174
+ query getFormAnswerGroup($id: ID) {
1175
+ formAnswerGroup(id: $id) {
1176
+ id
1177
+ finished
1178
+ user {
951
1179
  id
952
- finished
953
- user {
954
- id
955
- dietitian_id
956
- }
957
- custom_module_form {
958
- id
959
- }
960
- form_answers {
961
- id
962
- label
963
- answer
964
- }
1180
+ dietitian_id
965
1181
  }
966
- }
967
- `;
968
- exports.GetFormTemplateDocument = (0, graphql_tag_1.default) `
969
- query getFormTemplate($id: ID) {
970
- customModuleForm(id: $id) {
1182
+ custom_module_form {
971
1183
  id
972
1184
  name
973
- use_for_charting
974
- use_for_program
975
- prefill
976
- has_matrix_field
977
- is_video
978
- has_non_readonly_modules
979
- custom_modules {
980
- id
981
- mod_type
982
- label
983
- }
1185
+ }
1186
+ form_answers {
1187
+ id
1188
+ label
1189
+ answer
984
1190
  }
985
1191
  }
986
- `;
987
- exports.GetGoalDocument = (0, graphql_tag_1.default) `
988
- query getGoal($id: ID!) {
989
- goal(id: $id) {
1192
+ }
1193
+ `;
1194
+ exports.GetFormTemplateDocument = (0, graphql_tag_1.default) `
1195
+ query getFormTemplate($id: ID) {
1196
+ customModuleForm(id: $id) {
1197
+ id
1198
+ name
1199
+ use_for_charting
1200
+ use_for_program
1201
+ prefill
1202
+ has_matrix_field
1203
+ is_video
1204
+ has_non_readonly_modules
1205
+ custom_modules {
990
1206
  id
991
- user_id
1207
+ mod_type
1208
+ label
992
1209
  }
993
1210
  }
994
- `;
1211
+ }
1212
+ `;
1213
+ exports.GetGoalDocument = (0, graphql_tag_1.default) `
1214
+ query getGoal($id: ID!) {
1215
+ goal(id: $id) {
1216
+ id
1217
+ user_id
1218
+ }
1219
+ }
1220
+ `;
995
1221
  exports.GetLabOrderDocument = (0, graphql_tag_1.default) `
996
- query getLabOrder($id: ID!) {
997
- labOrder(id: $id) {
1222
+ query getLabOrder($id: ID!) {
1223
+ labOrder(id: $id) {
1224
+ id
1225
+ created_at
1226
+ patient {
998
1227
  id
999
- created_at
1000
- patient {
1001
- id
1002
- }
1003
1228
  }
1004
1229
  }
1005
- `;
1230
+ }
1231
+ `;
1006
1232
  exports.GetMessageDocument = (0, graphql_tag_1.default) `
1007
- query getMessage($id: ID) {
1008
- note(id: $id) {
1009
- id
1010
- conversation_id
1011
- }
1233
+ query getMessage($id: ID) {
1234
+ note(id: $id) {
1235
+ id
1236
+ conversation_id
1012
1237
  }
1013
- `;
1238
+ }
1239
+ `;
1014
1240
  exports.GetMetricEntryDocument = (0, graphql_tag_1.default) `
1015
- query getMetricEntry($id: ID!) {
1016
- entry(id: $id, type: "MetricEntry") {
1241
+ query getMetricEntry($id: ID!) {
1242
+ entry(id: $id, type: "MetricEntry") {
1243
+ id
1244
+ category
1245
+ poster {
1017
1246
  id
1018
- category
1019
- poster {
1020
- id
1021
- }
1022
1247
  }
1023
1248
  }
1024
- `;
1249
+ }
1250
+ `;
1025
1251
  exports.GetRequestedFormCompletionDocument = (0, graphql_tag_1.default) `
1026
- query getRequestedFormCompletion($id: ID!) {
1027
- requestedFormCompletion(id: $id) {
1028
- id
1029
- recipient_id
1030
- }
1252
+ query getRequestedFormCompletion($id: ID!) {
1253
+ requestedFormCompletion(id: $id) {
1254
+ id
1255
+ recipient_id
1031
1256
  }
1032
- `;
1257
+ }
1258
+ `;
1033
1259
  exports.GetScheduledAppointmentsDocument = (0, graphql_tag_1.default) `
1034
- query getScheduledAppointments($user_id: ID, $appointment_type_id: ID) {
1035
- appointments(
1036
- user_id: $user_id
1037
- filter_by_appointment_type_id: $appointment_type_id
1038
- is_active: true
1039
- should_paginate: false
1040
- filter: "future"
1041
- ) {
1042
- id
1043
- }
1260
+ query getScheduledAppointments($user_id: ID, $appointment_type_id: ID) {
1261
+ appointments(
1262
+ user_id: $user_id
1263
+ filter_by_appointment_type_id: $appointment_type_id
1264
+ is_active: true
1265
+ should_paginate: false
1266
+ filter: "future"
1267
+ ) {
1268
+ id
1044
1269
  }
1045
- `;
1270
+ }
1271
+ `;
1046
1272
  exports.GetTaskDocument = (0, graphql_tag_1.default) `
1047
- query getTask($id: ID!) {
1048
- task(id: $id) {
1049
- id
1050
- created_at
1051
- client_id
1052
- }
1273
+ query getTask($id: ID!) {
1274
+ task(id: $id) {
1275
+ id
1276
+ created_at
1277
+ client_id
1053
1278
  }
1054
- `;
1279
+ }
1280
+ `;
1055
1281
  exports.GetUserDocument = (0, graphql_tag_1.default) `
1056
- query getUser($id: ID) {
1057
- user(id: $id) {
1282
+ query getUser($id: ID) {
1283
+ user(id: $id) {
1284
+ id
1285
+ first_name
1286
+ last_name
1287
+ dob
1288
+ gender
1289
+ email
1290
+ phone_number
1291
+ next_appt_date
1292
+ dietitian_id
1293
+ quick_notes
1294
+ user_group {
1295
+ id
1296
+ name
1297
+ }
1298
+ providers {
1058
1299
  id
1300
+ active
1059
1301
  first_name
1060
1302
  last_name
1061
- dob
1062
- gender
1063
1303
  email
1064
- phone_number
1065
- next_appt_date
1066
- dietitian_id
1067
- quick_notes
1068
- user_group {
1069
- id
1070
- name
1071
- }
1072
- providers {
1073
- id
1074
- active
1075
- first_name
1076
- last_name
1077
- email
1078
- }
1079
- active_tags {
1080
- id
1081
- }
1304
+ }
1305
+ active_tags {
1306
+ id
1082
1307
  }
1083
1308
  }
1084
- `;
1309
+ }
1310
+ `;
1085
1311
  exports.EntriesDocument = (0, graphql_tag_1.default) `
1086
- query entries($category: String, $type: String, $client_id: String) {
1087
- entries(category: $category, type: $type, client_id: $client_id) {
1312
+ query entries($category: String, $type: String, $client_id: String) {
1313
+ entries(category: $category, type: $type, client_id: $client_id) {
1314
+ id
1315
+ metric_stat
1316
+ created_at
1317
+ }
1318
+ }
1319
+ `;
1320
+ exports.LockFormAnswerGroupDocument = (0, graphql_tag_1.default) `
1321
+ mutation lockFormAnswerGroup($input: LockInput!) {
1322
+ lockFormAnswerGroup(input: $input) {
1323
+ form_answer_group {
1088
1324
  id
1089
- metric_stat
1090
- created_at
1325
+ locked_at
1326
+ }
1327
+ messages {
1328
+ field
1329
+ message
1091
1330
  }
1092
1331
  }
1093
- `;
1332
+ }
1333
+ `;
1094
1334
  exports.RemoveTagFromUserDocument = (0, graphql_tag_1.default) `
1095
- mutation removeTagFromUser($id: ID, $taggable_user_id: ID) {
1096
- removeAppliedTag(input: { id: $id, taggable_user_id: $taggable_user_id }) {
1097
- tag {
1098
- id
1099
- name
1100
- }
1101
- messages {
1102
- field
1103
- message
1104
- }
1335
+ mutation removeTagFromUser($id: ID, $taggable_user_id: ID) {
1336
+ removeAppliedTag(input: {id: $id, taggable_user_id: $taggable_user_id}) {
1337
+ tag {
1338
+ id
1339
+ name
1340
+ }
1341
+ messages {
1342
+ field
1343
+ message
1105
1344
  }
1106
1345
  }
1107
- `;
1346
+ }
1347
+ `;
1108
1348
  exports.SendChatMessageDocument = (0, graphql_tag_1.default) `
1109
- mutation sendChatMessage($input: createNoteInput!) {
1110
- createNote(input: $input) {
1111
- messages {
1112
- field
1113
- message
1114
- }
1115
- note {
1116
- id
1117
- user_id
1118
- recipient_id
1119
- }
1349
+ mutation sendChatMessage($input: createNoteInput!) {
1350
+ createNote(input: $input) {
1351
+ messages {
1352
+ field
1353
+ message
1354
+ }
1355
+ note {
1356
+ id
1357
+ user_id
1358
+ recipient_id
1120
1359
  }
1121
1360
  }
1122
- `;
1361
+ }
1362
+ `;
1123
1363
  exports.UpdateAppointmentDocument = (0, graphql_tag_1.default) `
1124
- mutation updateAppointment($input: updateAppointmentInput!) {
1125
- updateAppointment(input: $input) {
1126
- appointment {
1127
- id
1128
- date
1129
- }
1130
- messages {
1131
- field
1132
- message
1133
- }
1364
+ mutation updateAppointment($input: updateAppointmentInput!) {
1365
+ updateAppointment(input: $input) {
1366
+ appointment {
1367
+ id
1368
+ date
1369
+ }
1370
+ messages {
1371
+ field
1372
+ message
1134
1373
  }
1135
1374
  }
1136
- `;
1375
+ }
1376
+ `;
1137
1377
  exports.UpdateConversationDocument = (0, graphql_tag_1.default) `
1138
- mutation updateConversation($input: updateConversationInput!) {
1139
- updateConversation(input: $input) {
1140
- conversation {
1141
- id
1142
- }
1143
- messages {
1144
- field
1145
- message
1146
- }
1378
+ mutation updateConversation($input: updateConversationInput!) {
1379
+ updateConversation(input: $input) {
1380
+ conversation {
1381
+ id
1382
+ }
1383
+ messages {
1384
+ field
1385
+ message
1147
1386
  }
1148
1387
  }
1149
- `;
1388
+ }
1389
+ `;
1150
1390
  exports.UpdatePatientDocument = (0, graphql_tag_1.default) `
1151
- mutation updatePatient($input: updateClientInput!) {
1152
- updateClient(input: $input) {
1153
- user {
1154
- id
1155
- first_name
1156
- last_name
1157
- legal_name
1158
- email
1159
- quick_notes
1160
- }
1161
- messages {
1162
- field
1163
- message
1164
- }
1391
+ mutation updatePatient($input: updateClientInput!) {
1392
+ updateClient(input: $input) {
1393
+ user {
1394
+ id
1395
+ first_name
1396
+ last_name
1397
+ legal_name
1398
+ email
1399
+ quick_notes
1400
+ }
1401
+ messages {
1402
+ field
1403
+ message
1165
1404
  }
1166
1405
  }
1167
- `;
1406
+ }
1407
+ `;
1168
1408
  exports.UpdateTaskDocument = (0, graphql_tag_1.default) `
1169
- mutation updateTask($input: updateTaskInput!) {
1170
- updateTask(input: $input) {
1171
- task {
1172
- id
1173
- }
1174
- messages {
1175
- field
1176
- message
1177
- }
1409
+ mutation updateTask($input: updateTaskInput!) {
1410
+ updateTask(input: $input) {
1411
+ task {
1412
+ id
1413
+ }
1414
+ messages {
1415
+ field
1416
+ message
1178
1417
  }
1179
1418
  }
1180
- `;
1419
+ }
1420
+ `;
1181
1421
  const defaultWrapper = (action, _operationName, _operationType) => action();
1182
1422
  const ApplyTagsToUserDocumentString = (0, graphql_1.print)(exports.ApplyTagsToUserDocument);
1183
1423
  const CreateAppointmentDocumentString = (0, graphql_1.print)(exports.CreateAppointmentDocument);
@@ -1207,16 +1447,13 @@ const GetScheduledAppointmentsDocumentString = (0, graphql_1.print)(exports.GetS
1207
1447
  const GetTaskDocumentString = (0, graphql_1.print)(exports.GetTaskDocument);
1208
1448
  const GetUserDocumentString = (0, graphql_1.print)(exports.GetUserDocument);
1209
1449
  const EntriesDocumentString = (0, graphql_1.print)(exports.EntriesDocument);
1450
+ const LockFormAnswerGroupDocumentString = (0, graphql_1.print)(exports.LockFormAnswerGroupDocument);
1210
1451
  const RemoveTagFromUserDocumentString = (0, graphql_1.print)(exports.RemoveTagFromUserDocument);
1211
1452
  const SendChatMessageDocumentString = (0, graphql_1.print)(exports.SendChatMessageDocument);
1212
1453
  const UpdateAppointmentDocumentString = (0, graphql_1.print)(exports.UpdateAppointmentDocument);
1213
1454
  const UpdateConversationDocumentString = (0, graphql_1.print)(exports.UpdateConversationDocument);
1214
1455
  const UpdatePatientDocumentString = (0, graphql_1.print)(exports.UpdatePatientDocument);
1215
1456
  const UpdateTaskDocumentString = (0, graphql_1.print)(exports.UpdateTaskDocument);
1216
- /**
1217
- * @deprecated DO NOT USE
1218
- * DO NOT USE
1219
- */
1220
1457
  function getSdk(client, withWrapper = defaultWrapper) {
1221
1458
  return {
1222
1459
  applyTagsToUser(variables, requestHeaders) {
@@ -1277,10 +1514,7 @@ function getSdk(client, withWrapper = defaultWrapper) {
1277
1514
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetFormTemplateDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getFormTemplate', 'query');
1278
1515
  },
1279
1516
  getGoal(variables, requestHeaders) {
1280
- return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetGoalDocumentString, variables, {
1281
- ...requestHeaders,
1282
- ...wrappedRequestHeaders,
1283
- }), 'getGoal', 'query');
1517
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetGoalDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getGoal', 'query');
1284
1518
  },
1285
1519
  getLabOrder(variables, requestHeaders) {
1286
1520
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetLabOrderDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getLabOrder', 'query');
@@ -1298,22 +1532,16 @@ function getSdk(client, withWrapper = defaultWrapper) {
1298
1532
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetScheduledAppointmentsDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getScheduledAppointments', 'query');
1299
1533
  },
1300
1534
  getTask(variables, requestHeaders) {
1301
- return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetTaskDocumentString, variables, {
1302
- ...requestHeaders,
1303
- ...wrappedRequestHeaders,
1304
- }), 'getTask', 'query');
1535
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetTaskDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getTask', 'query');
1305
1536
  },
1306
1537
  getUser(variables, requestHeaders) {
1307
- return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetUserDocumentString, variables, {
1308
- ...requestHeaders,
1309
- ...wrappedRequestHeaders,
1310
- }), 'getUser', 'query');
1538
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetUserDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getUser', 'query');
1311
1539
  },
1312
1540
  entries(variables, requestHeaders) {
1313
- return withWrapper((wrappedRequestHeaders) => client.rawRequest(EntriesDocumentString, variables, {
1314
- ...requestHeaders,
1315
- ...wrappedRequestHeaders,
1316
- }), 'entries', 'query');
1541
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(EntriesDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'entries', 'query');
1542
+ },
1543
+ lockFormAnswerGroup(variables, requestHeaders) {
1544
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(LockFormAnswerGroupDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'lockFormAnswerGroup', 'mutation');
1317
1545
  },
1318
1546
  removeTagFromUser(variables, requestHeaders) {
1319
1547
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(RemoveTagFromUserDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'removeTagFromUser', 'mutation');
@@ -1332,7 +1560,7 @@ function getSdk(client, withWrapper = defaultWrapper) {
1332
1560
  },
1333
1561
  updateTask(variables, requestHeaders) {
1334
1562
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(UpdateTaskDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'updateTask', 'mutation');
1335
- },
1563
+ }
1336
1564
  };
1337
1565
  }
1338
1566
  //# sourceMappingURL=sdk.js.map