"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
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;
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;
exports.getSdk = getSdk;
const graphql_1 = require("graphql");
const graphql_tag_1 = __importDefault(require("graphql-tag"));
/** API Key sorting enum */
var ApiKeyOrderKeys;
(function (ApiKeyOrderKeys) {
    ApiKeyOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    ApiKeyOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    ApiKeyOrderKeys["NameAsc"] = "NAME_ASC";
    ApiKeyOrderKeys["NameDesc"] = "NAME_DESC";
})(ApiKeyOrderKeys || (exports.ApiKeyOrderKeys = ApiKeyOrderKeys = {}));
/** AppliedTag sorting enum */
var AppliedTagOrderKeys;
(function (AppliedTagOrderKeys) {
    /** Sort by created at in ascending order */
    AppliedTagOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    /** Sort by created at in descending order */
    AppliedTagOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    /** Do not sort records */
    AppliedTagOrderKeys["Unsorted"] = "UNSORTED";
    /** Sort by updated at in ascending order */
    AppliedTagOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    /** Sort by updated at in descending order */
    AppliedTagOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(AppliedTagOrderKeys || (exports.AppliedTagOrderKeys = AppliedTagOrderKeys = {}));
/** Appointment sorting enum */
var AppointmentOrderKeys;
(function (AppointmentOrderKeys) {
    AppointmentOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    AppointmentOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    AppointmentOrderKeys["DateAsc"] = "DATE_ASC";
    AppointmentOrderKeys["DateDesc"] = "DATE_DESC";
    AppointmentOrderKeys["Unsorted"] = "UNSORTED";
    AppointmentOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    AppointmentOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(AppointmentOrderKeys || (exports.AppointmentOrderKeys = AppointmentOrderKeys = {}));
/** Appointment Type sorting enum */
var AppointmentTypeOrderKeys;
(function (AppointmentTypeOrderKeys) {
    AppointmentTypeOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    AppointmentTypeOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    /** Sort ascending by the manual order set for Appointment Types on the list */
    AppointmentTypeOrderKeys["PositionAsc"] = "POSITION_ASC";
    /** Sort descending by the manual order set for Appointment Types on the list */
    AppointmentTypeOrderKeys["PositionDesc"] = "POSITION_DESC";
    AppointmentTypeOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    AppointmentTypeOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(AppointmentTypeOrderKeys || (exports.AppointmentTypeOrderKeys = AppointmentTypeOrderKeys = {}));
/** BillingItem sorting enum */
var BillingItemOrderKeys;
(function (BillingItemOrderKeys) {
    BillingItemOrderKeys["AmountPaidAsc"] = "AMOUNT_PAID_ASC";
    BillingItemOrderKeys["AmountPaidDesc"] = "AMOUNT_PAID_DESC";
    BillingItemOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    BillingItemOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    /** Sort by the payment medium ascending */
    BillingItemOrderKeys["MethodAsc"] = "METHOD_ASC";
    /** Sort by the payment medium descending */
    BillingItemOrderKeys["MethodDesc"] = "METHOD_DESC";
    BillingItemOrderKeys["PatientFirstNameAsc"] = "PATIENT_FIRST_NAME_ASC";
    BillingItemOrderKeys["PatientFirstNameDesc"] = "PATIENT_FIRST_NAME_DESC";
    BillingItemOrderKeys["ProviderFirstNameAsc"] = "PROVIDER_FIRST_NAME_ASC";
    BillingItemOrderKeys["ProviderFirstNameDesc"] = "PROVIDER_FIRST_NAME_DESC";
    BillingItemOrderKeys["StateAsc"] = "STATE_ASC";
    BillingItemOrderKeys["StateDesc"] = "STATE_DESC";
    BillingItemOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    BillingItemOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(BillingItemOrderKeys || (exports.BillingItemOrderKeys = BillingItemOrderKeys = {}));
/** CarePlan sorting enum */
var CarePlanOrderKeys;
(function (CarePlanOrderKeys) {
    CarePlanOrderKeys["ClientFirstNameAsc"] = "CLIENT_FIRST_NAME_ASC";
    CarePlanOrderKeys["ClientFirstNameDesc"] = "CLIENT_FIRST_NAME_DESC";
    CarePlanOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    CarePlanOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    CarePlanOrderKeys["DeactivatedAsc"] = "DEACTIVATED_ASC";
    CarePlanOrderKeys["DeactivatedDesc"] = "DEACTIVATED_DESC";
    CarePlanOrderKeys["NameAsc"] = "NAME_ASC";
    CarePlanOrderKeys["NameDesc"] = "NAME_DESC";
    CarePlanOrderKeys["StatusAsc"] = "STATUS_ASC";
    CarePlanOrderKeys["StatusDesc"] = "STATUS_DESC";
})(CarePlanOrderKeys || (exports.CarePlanOrderKeys = CarePlanOrderKeys = {}));
/** Charge back sorting enum */
var ChargeBackOrderKeys;
(function (ChargeBackOrderKeys) {
    ChargeBackOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    ChargeBackOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    ChargeBackOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    ChargeBackOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(ChargeBackOrderKeys || (exports.ChargeBackOrderKeys = ChargeBackOrderKeys = {}));
/** Cms1500 sorting enum */
var Cms1500OrderKeys;
(function (Cms1500OrderKeys) {
    Cms1500OrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    Cms1500OrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    Cms1500OrderKeys["PatientLastNameAsc"] = "PATIENT_LAST_NAME_ASC";
    Cms1500OrderKeys["PatientLastNameDesc"] = "PATIENT_LAST_NAME_DESC";
    Cms1500OrderKeys["PrimaryPlanNameAsc"] = "PRIMARY_PLAN_NAME_ASC";
    Cms1500OrderKeys["PrimaryPlanNameDesc"] = "PRIMARY_PLAN_NAME_DESC";
    Cms1500OrderKeys["ServiceDateAsc"] = "SERVICE_DATE_ASC";
    Cms1500OrderKeys["ServiceDateDesc"] = "SERVICE_DATE_DESC";
    Cms1500OrderKeys["StatusAsc"] = "STATUS_ASC";
    Cms1500OrderKeys["StatusDesc"] = "STATUS_DESC";
    Cms1500OrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    Cms1500OrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(Cms1500OrderKeys || (exports.Cms1500OrderKeys = Cms1500OrderKeys = {}));
/** Conversation Membership sorting enum */
var ConversationMembershipOrderKeys;
(function (ConversationMembershipOrderKeys) {
    ConversationMembershipOrderKeys["ConversationCreatedAtAsc"] = "CONVERSATION_CREATED_AT_ASC";
    ConversationMembershipOrderKeys["ConversationCreatedAtDesc"] = "CONVERSATION_CREATED_AT_DESC";
    ConversationMembershipOrderKeys["ConversationUpdatedAtAsc"] = "CONVERSATION_UPDATED_AT_ASC";
    ConversationMembershipOrderKeys["ConversationUpdatedAtDesc"] = "CONVERSATION_UPDATED_AT_DESC";
    ConversationMembershipOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    ConversationMembershipOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    ConversationMembershipOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    ConversationMembershipOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(ConversationMembershipOrderKeys || (exports.ConversationMembershipOrderKeys = ConversationMembershipOrderKeys = {}));
/** CustomModuleForm sorting enum */
var CustomModuleFormOrderKeys;
(function (CustomModuleFormOrderKeys) {
    CustomModuleFormOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    CustomModuleFormOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    CustomModuleFormOrderKeys["NameAsc"] = "NAME_ASC";
    CustomModuleFormOrderKeys["NameDesc"] = "NAME_DESC";
    CustomModuleFormOrderKeys["TypeAsc"] = "TYPE_ASC";
    CustomModuleFormOrderKeys["TypeDesc"] = "TYPE_DESC";
    CustomModuleFormOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    CustomModuleFormOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
    /** Sort by owner last name ascending */
    CustomModuleFormOrderKeys["UserLastNameAsc"] = "USER_LAST_NAME_ASC";
    /** Sort by owner last name descending */
    CustomModuleFormOrderKeys["UserLastNameDesc"] = "USER_LAST_NAME_DESC";
})(CustomModuleFormOrderKeys || (exports.CustomModuleFormOrderKeys = CustomModuleFormOrderKeys = {}));
/** Document sorting enum */
var DocumentOrderKeys;
(function (DocumentOrderKeys) {
    DocumentOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    DocumentOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    DocumentOrderKeys["NameAsc"] = "NAME_ASC";
    DocumentOrderKeys["NameDesc"] = "NAME_DESC";
})(DocumentOrderKeys || (exports.DocumentOrderKeys = DocumentOrderKeys = {}));
/** DrugAllergen class enum */
var DrugAllergenTypeEnum;
(function (DrugAllergenTypeEnum) {
    /** A class of allergens */
    DrugAllergenTypeEnum["Class"] = "CLASS";
    /** A screenable ingredient */
    DrugAllergenTypeEnum["Ingredient"] = "INGREDIENT";
})(DrugAllergenTypeEnum || (exports.DrugAllergenTypeEnum = DrugAllergenTypeEnum = {}));
/** Entry sorting enum */
var EntryOrderKeys;
(function (EntryOrderKeys) {
    EntryOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    EntryOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    EntryOrderKeys["MetricStatAsc"] = "METRIC_STAT_ASC";
    EntryOrderKeys["MetricStatDesc"] = "METRIC_STAT_DESC";
    EntryOrderKeys["ThirdPartySourceAsc"] = "THIRD_PARTY_SOURCE_ASC";
    EntryOrderKeys["ThirdPartySourceDesc"] = "THIRD_PARTY_SOURCE_DESC";
    EntryOrderKeys["Unsorted"] = "UNSORTED";
    EntryOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    EntryOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(EntryOrderKeys || (exports.EntryOrderKeys = EntryOrderKeys = {}));
/** Folder sorting enum */
var FolderOrderKeys;
(function (FolderOrderKeys) {
    FolderOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    FolderOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    FolderOrderKeys["NameAsc"] = "NAME_ASC";
    FolderOrderKeys["NameDesc"] = "NAME_DESC";
})(FolderOrderKeys || (exports.FolderOrderKeys = FolderOrderKeys = {}));
/** FormAnswerGroup sorting enum */
var FormAnswerGroupOrderKeys;
(function (FormAnswerGroupOrderKeys) {
    FormAnswerGroupOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    FormAnswerGroupOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    FormAnswerGroupOrderKeys["RecordCreatedAtAsc"] = "RECORD_CREATED_AT_ASC";
    FormAnswerGroupOrderKeys["RecordCreatedAtDesc"] = "RECORD_CREATED_AT_DESC";
    FormAnswerGroupOrderKeys["Unsorted"] = "UNSORTED";
    FormAnswerGroupOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    FormAnswerGroupOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(FormAnswerGroupOrderKeys || (exports.FormAnswerGroupOrderKeys = FormAnswerGroupOrderKeys = {}));
/** Form History action enum */
var FormHistoryAction;
(function (FormHistoryAction) {
    FormHistoryAction["Completed"] = "completed";
    FormHistoryAction["Created"] = "created";
    FormHistoryAction["Edited"] = "edited";
    FormHistoryAction["Opened"] = "opened";
    FormHistoryAction["Skipped"] = "skipped";
})(FormHistoryAction || (exports.FormHistoryAction = FormHistoryAction = {}));
/** Form History sourceable_type enum */
var FormHistorySourceable;
(function (FormHistorySourceable) {
    FormHistorySourceable["OnboardingItem"] = "OnboardingItem";
    FormHistorySourceable["RequestedFormCompletion"] = "RequestedFormCompletion";
})(FormHistorySourceable || (exports.FormHistorySourceable = FormHistorySourceable = {}));
/** Forms status filter enum */
var FormStatus;
(function (FormStatus) {
    FormStatus["Completed"] = "completed";
    FormStatus["Incomplete"] = "incomplete";
    FormStatus["NotStarted"] = "not_started";
})(FormStatus || (exports.FormStatus = FormStatus = {}));
/** Forms form type filter enum */
var FormType;
(function (FormType) {
    FormType["IntakeForms"] = "intake_forms";
    FormType["RecurringForms"] = "recurring_forms";
    FormType["RequestedForms"] = "requested_forms";
})(FormType || (exports.FormType = FormType = {}));
/** Goal sorting enum */
var GoalOrderKeys;
(function (GoalOrderKeys) {
    GoalOrderKeys["DueDateAsc"] = "DUE_DATE_ASC";
    GoalOrderKeys["DueDateDesc"] = "DUE_DATE_DESC";
    /** Order by due date and start date descending */
    GoalOrderKeys["DueDateStartDateDesc"] = "DUE_DATE_START_DATE_DESC";
    GoalOrderKeys["FrequencyAsc"] = "FREQUENCY_ASC";
    GoalOrderKeys["FrequencyDesc"] = "FREQUENCY_DESC";
    GoalOrderKeys["NameAsc"] = "NAME_ASC";
    GoalOrderKeys["NameDesc"] = "NAME_DESC";
    GoalOrderKeys["StartDateAsc"] = "START_DATE_ASC";
    GoalOrderKeys["StartDateDesc"] = "START_DATE_DESC";
    GoalOrderKeys["StatusAsc"] = "STATUS_ASC";
    GoalOrderKeys["StatusDesc"] = "STATUS_DESC";
})(GoalOrderKeys || (exports.GoalOrderKeys = GoalOrderKeys = {}));
/** ICD Code sorting enum */
var IcdCodeOrderKeys;
(function (IcdCodeOrderKeys) {
    IcdCodeOrderKeys["CodeAsc"] = "CODE_ASC";
    IcdCodeOrderKeys["CodeDesc"] = "CODE_DESC";
    IcdCodeOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    IcdCodeOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    IcdCodeOrderKeys["FavoritesAsc"] = "FAVORITES_ASC";
    IcdCodeOrderKeys["FavoritesDesc"] = "FAVORITES_DESC";
    IcdCodeOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    IcdCodeOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(IcdCodeOrderKeys || (exports.IcdCodeOrderKeys = IcdCodeOrderKeys = {}));
/** Individual client note sorting enum */
var IndividualClientNoteOrderKeys;
(function (IndividualClientNoteOrderKeys) {
    IndividualClientNoteOrderKeys["AttendedDesc"] = "ATTENDED_DESC";
    IndividualClientNoteOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
})(IndividualClientNoteOrderKeys || (exports.IndividualClientNoteOrderKeys = IndividualClientNoteOrderKeys = {}));
/** Individual client note sorting enum */
var IndividualClientNoteSorting;
(function (IndividualClientNoteSorting) {
    /** @deprecated Use `IndividualClientNoteOrderKeys` and `order_by` instead */
    IndividualClientNoteSorting["AttendedDesc"] = "ATTENDED_DESC";
    /** @deprecated Use `IndividualClientNoteOrderKeys` and `order_by` instead */
    IndividualClientNoteSorting["CreatedAtDesc"] = "CREATED_AT_DESC";
})(IndividualClientNoteSorting || (exports.IndividualClientNoteSorting = IndividualClientNoteSorting = {}));
/** InsurancePlan sorting enum */
var InsurancePlanOrderKeys;
(function (InsurancePlanOrderKeys) {
    InsurancePlanOrderKeys["Accepted"] = "ACCEPTED";
    InsurancePlanOrderKeys["PayerNameAsc"] = "PAYER_NAME_ASC";
})(InsurancePlanOrderKeys || (exports.InsurancePlanOrderKeys = InsurancePlanOrderKeys = {}));
/** IntakeFlow sorting enum */
var IntakeFlowOrderKeys;
(function (IntakeFlowOrderKeys) {
    IntakeFlowOrderKeys["CompleteDateAsc"] = "COMPLETE_DATE_ASC";
    IntakeFlowOrderKeys["CompleteDateDesc"] = "COMPLETE_DATE_DESC";
    IntakeFlowOrderKeys["DateAsc"] = "DATE_ASC";
    IntakeFlowOrderKeys["DateDesc"] = "DATE_DESC";
    IntakeFlowOrderKeys["NameAsc"] = "NAME_ASC";
    IntakeFlowOrderKeys["NameDesc"] = "NAME_DESC";
    IntakeFlowOrderKeys["RequestDateAsc"] = "REQUEST_DATE_ASC";
    IntakeFlowOrderKeys["RequestDateDesc"] = "REQUEST_DATE_DESC";
    IntakeFlowOrderKeys["StatusAsc"] = "STATUS_ASC";
    IntakeFlowOrderKeys["StatusDesc"] = "STATUS_DESC";
    IntakeFlowOrderKeys["TypeAsc"] = "TYPE_ASC";
    IntakeFlowOrderKeys["TypeDesc"] = "TYPE_DESC";
})(IntakeFlowOrderKeys || (exports.IntakeFlowOrderKeys = IntakeFlowOrderKeys = {}));
/** LabOrder sorting enum */
var LabOrderOrderKeys;
(function (LabOrderOrderKeys) {
    LabOrderOrderKeys["ApptAsc"] = "APPT_ASC";
    LabOrderOrderKeys["ApptDesc"] = "APPT_DESC";
    LabOrderOrderKeys["ClientLastNameAsc"] = "CLIENT_LAST_NAME_ASC";
    LabOrderOrderKeys["ClientLastNameDesc"] = "CLIENT_LAST_NAME_DESC";
    LabOrderOrderKeys["LabAsc"] = "LAB_ASC";
    LabOrderOrderKeys["LabDesc"] = "LAB_DESC";
    LabOrderOrderKeys["NameAsc"] = "NAME_ASC";
    LabOrderOrderKeys["NameDesc"] = "NAME_DESC";
    LabOrderOrderKeys["ProviderLastNameAsc"] = "PROVIDER_LAST_NAME_ASC";
    LabOrderOrderKeys["ProviderLastNameDesc"] = "PROVIDER_LAST_NAME_DESC";
    LabOrderOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    LabOrderOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(LabOrderOrderKeys || (exports.LabOrderOrderKeys = LabOrderOrderKeys = {}));
/** Type of multi-factor authentication used */
var MfaType;
(function (MfaType) {
    MfaType["Email"] = "EMAIL";
    MfaType["Sms"] = "SMS";
})(MfaType || (exports.MfaType = MfaType = {}));
/** The format of a monograph */
var MonographFormat;
(function (MonographFormat) {
    /** The monograph is in HTML format */
    MonographFormat["Html"] = "HTML";
    /** The monograph is in XML format */
    MonographFormat["Xml"] = "XML";
})(MonographFormat || (exports.MonographFormat = MonographFormat = {}));
/** Note sorting enum */
var NoteOrderKeys;
(function (NoteOrderKeys) {
    NoteOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    NoteOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
})(NoteOrderKeys || (exports.NoteOrderKeys = NoteOrderKeys = {}));
/** Notification sorting enum */
var NotificationOrderKeys;
(function (NotificationOrderKeys) {
    NotificationOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    NotificationOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
})(NotificationOrderKeys || (exports.NotificationOrderKeys = NotificationOrderKeys = {}));
/** OfferingCoupon sorting enum */
var OfferingCouponOrderKeys;
(function (OfferingCouponOrderKeys) {
    OfferingCouponOrderKeys["AmountAsc"] = "AMOUNT_ASC";
    OfferingCouponOrderKeys["AmountDesc"] = "AMOUNT_DESC";
    OfferingCouponOrderKeys["AppliesToAsc"] = "APPLIES_TO_ASC";
    OfferingCouponOrderKeys["AppliesToDesc"] = "APPLIES_TO_DESC";
    OfferingCouponOrderKeys["CodeAsc"] = "CODE_ASC";
    OfferingCouponOrderKeys["CodeDesc"] = "CODE_DESC";
    OfferingCouponOrderKeys["ExpiresAtAsc"] = "EXPIRES_AT_ASC";
    OfferingCouponOrderKeys["ExpiresAtDesc"] = "EXPIRES_AT_DESC";
    OfferingCouponOrderKeys["TotalUsageAsc"] = "TOTAL_USAGE_ASC";
    OfferingCouponOrderKeys["TotalUsageDesc"] = "TOTAL_USAGE_DESC";
    OfferingCouponOrderKeys["TypeAsc"] = "TYPE_ASC";
    OfferingCouponOrderKeys["TypeDesc"] = "TYPE_DESC";
})(OfferingCouponOrderKeys || (exports.OfferingCouponOrderKeys = OfferingCouponOrderKeys = {}));
/** Offering sorting enum */
var OfferingOrderKeys;
(function (OfferingOrderKeys) {
    /** Sort by billing items count descending */
    OfferingOrderKeys["BestSeller"] = "BEST_SELLER";
    OfferingOrderKeys["NameAsc"] = "NAME_ASC";
    OfferingOrderKeys["NameDesc"] = "NAME_DESC";
    OfferingOrderKeys["PriceAsc"] = "PRICE_ASC";
    OfferingOrderKeys["PriceDesc"] = "PRICE_DESC";
    OfferingOrderKeys["SetOrder"] = "SET_ORDER";
})(OfferingOrderKeys || (exports.OfferingOrderKeys = OfferingOrderKeys = {}));
/** OnboardingFlow sorting enum */
var OnboardingFlowOrderKeys;
(function (OnboardingFlowOrderKeys) {
    OnboardingFlowOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    OnboardingFlowOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    OnboardingFlowOrderKeys["FormsCountAsc"] = "FORMS_COUNT_ASC";
    OnboardingFlowOrderKeys["FormsCountDesc"] = "FORMS_COUNT_DESC";
    OnboardingFlowOrderKeys["NameAsc"] = "NAME_ASC";
    OnboardingFlowOrderKeys["NameDesc"] = "NAME_DESC";
})(OnboardingFlowOrderKeys || (exports.OnboardingFlowOrderKeys = OnboardingFlowOrderKeys = {}));
/** OrganizationMembership sorting enum */
var OrganizationMembershipOrderKeys;
(function (OrganizationMembershipOrderKeys) {
    OrganizationMembershipOrderKeys["FirstNameAsc"] = "FIRST_NAME_ASC";
    OrganizationMembershipOrderKeys["FirstNameDesc"] = "FIRST_NAME_DESC";
    OrganizationMembershipOrderKeys["LastNameAsc"] = "LAST_NAME_ASC";
    OrganizationMembershipOrderKeys["LastNameDesc"] = "LAST_NAME_DESC";
    OrganizationMembershipOrderKeys["PositionAsc"] = "POSITION_ASC";
    OrganizationMembershipOrderKeys["StatusAsc"] = "STATUS_ASC";
    OrganizationMembershipOrderKeys["StatusDesc"] = "STATUS_DESC";
    OrganizationMembershipOrderKeys["TypeAsc"] = "TYPE_ASC";
    OrganizationMembershipOrderKeys["TypeDesc"] = "TYPE_DESC";
})(OrganizationMembershipOrderKeys || (exports.OrganizationMembershipOrderKeys = OrganizationMembershipOrderKeys = {}));
/** Roles that a user can have in an organization */
var OrganizationMembershipRole;
(function (OrganizationMembershipRole) {
    /** The user is a standard member of the organization (includes providers) */
    OrganizationMembershipRole["Standard"] = "STANDARD";
    /** The user is a support member of the organization */
    OrganizationMembershipRole["Support"] = "SUPPORT";
})(OrganizationMembershipRole || (exports.OrganizationMembershipRole = OrganizationMembershipRole = {}));
/** Product sorting enum */
var ProductOrderKeys;
(function (ProductOrderKeys) {
    ProductOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    ProductOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    ProductOrderKeys["NameAsc"] = "NAME_ASC";
    ProductOrderKeys["NameDesc"] = "NAME_DESC";
    ProductOrderKeys["PriceAsc"] = "PRICE_ASC";
    ProductOrderKeys["PriceDesc"] = "PRICE_DESC";
    ProductOrderKeys["QuantityAsc"] = "QUANTITY_ASC";
    ProductOrderKeys["QuantityDesc"] = "QUANTITY_DESC";
})(ProductOrderKeys || (exports.ProductOrderKeys = ProductOrderKeys = {}));
/** ReceivedDirectMessage sorting enum */
var ReceivedDirectMessageOrderKeys;
(function (ReceivedDirectMessageOrderKeys) {
    ReceivedDirectMessageOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    ReceivedDirectMessageOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    ReceivedDirectMessageOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    ReceivedDirectMessageOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(ReceivedDirectMessageOrderKeys || (exports.ReceivedDirectMessageOrderKeys = ReceivedDirectMessageOrderKeys = {}));
/** ReceivedFax sorting enum */
var ReceivedFaxOrderKeys;
(function (ReceivedFaxOrderKeys) {
    ReceivedFaxOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    ReceivedFaxOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    ReceivedFaxOrderKeys["NumberAsc"] = "NUMBER_ASC";
    ReceivedFaxOrderKeys["NumberDesc"] = "NUMBER_DESC";
    ReceivedFaxOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    ReceivedFaxOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(ReceivedFaxOrderKeys || (exports.ReceivedFaxOrderKeys = ReceivedFaxOrderKeys = {}));
/** ReferringPhysician sorting enum */
var ReferringPhysicianOrderKeys;
(function (ReferringPhysicianOrderKeys) {
    ReferringPhysicianOrderKeys["BusinessNameAsc"] = "BUSINESS_NAME_ASC";
    ReferringPhysicianOrderKeys["BusinessNameDesc"] = "BUSINESS_NAME_DESC";
    ReferringPhysicianOrderKeys["CityAsc"] = "CITY_ASC";
    ReferringPhysicianOrderKeys["CityDesc"] = "CITY_DESC";
    ReferringPhysicianOrderKeys["ClientsReferredAsc"] = "CLIENTS_REFERRED_ASC";
    ReferringPhysicianOrderKeys["ClientsReferredDesc"] = "CLIENTS_REFERRED_DESC";
    ReferringPhysicianOrderKeys["NameAsc"] = "NAME_ASC";
    ReferringPhysicianOrderKeys["NameDesc"] = "NAME_DESC";
    ReferringPhysicianOrderKeys["SpecialityAsc"] = "SPECIALITY_ASC";
    ReferringPhysicianOrderKeys["SpecialityDesc"] = "SPECIALITY_DESC";
})(ReferringPhysicianOrderKeys || (exports.ReferringPhysicianOrderKeys = ReferringPhysicianOrderKeys = {}));
/** RequestedPayment sorting enum */
var RequestedPaymentOrderKeys;
(function (RequestedPaymentOrderKeys) {
    /** Sort by client last name and first name ascending */
    RequestedPaymentOrderKeys["ClientNameAsc"] = "CLIENT_NAME_ASC";
    /** Sort by client last name and first name descending */
    RequestedPaymentOrderKeys["ClientNameDesc"] = "CLIENT_NAME_DESC";
    RequestedPaymentOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    RequestedPaymentOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    RequestedPaymentOrderKeys["InvoiceIdAsc"] = "INVOICE_ID_ASC";
    RequestedPaymentOrderKeys["InvoiceIdDesc"] = "INVOICE_ID_DESC";
    RequestedPaymentOrderKeys["PriceAsc"] = "PRICE_ASC";
    RequestedPaymentOrderKeys["PriceDesc"] = "PRICE_DESC";
    /** Sort by provider last name and first name ascending */
    RequestedPaymentOrderKeys["ProviderNameAsc"] = "PROVIDER_NAME_ASC";
    /** Sort by provider last name and first name descending */
    RequestedPaymentOrderKeys["ProviderNameDesc"] = "PROVIDER_NAME_DESC";
    RequestedPaymentOrderKeys["StatusAsc"] = "STATUS_ASC";
    RequestedPaymentOrderKeys["StatusDesc"] = "STATUS_DESC";
    RequestedPaymentOrderKeys["TypeAsc"] = "TYPE_ASC";
    RequestedPaymentOrderKeys["TypeDesc"] = "TYPE_DESC";
})(RequestedPaymentOrderKeys || (exports.RequestedPaymentOrderKeys = RequestedPaymentOrderKeys = {}));
/** SentDirectMessage sorting enum */
var SentDirectMessageOrderKeys;
(function (SentDirectMessageOrderKeys) {
    SentDirectMessageOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    SentDirectMessageOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    SentDirectMessageOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    SentDirectMessageOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(SentDirectMessageOrderKeys || (exports.SentDirectMessageOrderKeys = SentDirectMessageOrderKeys = {}));
/** SentFax sorting enum */
var SentFaxOrderKeys;
(function (SentFaxOrderKeys) {
    SentFaxOrderKeys["ClientLastNameAsc"] = "CLIENT_LAST_NAME_ASC";
    SentFaxOrderKeys["ClientLastNameDesc"] = "CLIENT_LAST_NAME_DESC";
    SentFaxOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    SentFaxOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    SentFaxOrderKeys["NumberAsc"] = "NUMBER_ASC";
    SentFaxOrderKeys["NumberDesc"] = "NUMBER_DESC";
    SentFaxOrderKeys["SenderLastNameAsc"] = "SENDER_LAST_NAME_ASC";
    SentFaxOrderKeys["SenderLastNameDesc"] = "SENDER_LAST_NAME_DESC";
    SentFaxOrderKeys["Status"] = "STATUS";
    SentFaxOrderKeys["StatusAsc"] = "STATUS_ASC";
    SentFaxOrderKeys["StatusDesc"] = "STATUS_DESC";
    SentFaxOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    SentFaxOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(SentFaxOrderKeys || (exports.SentFaxOrderKeys = SentFaxOrderKeys = {}));
/** SentWebhook sorting enum */
var SentWebhookOrderKeys;
(function (SentWebhookOrderKeys) {
    SentWebhookOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    SentWebhookOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    SentWebhookOrderKeys["EventTypeAsc"] = "EVENT_TYPE_ASC";
    SentWebhookOrderKeys["EventTypeDesc"] = "EVENT_TYPE_DESC";
    SentWebhookOrderKeys["UrlAsc"] = "URL_ASC";
    SentWebhookOrderKeys["UrlDesc"] = "URL_DESC";
})(SentWebhookOrderKeys || (exports.SentWebhookOrderKeys = SentWebhookOrderKeys = {}));
/** The type of offered signed stream names */
var SignedStreamName;
(function (SignedStreamName) {
    /** For a user's conversation membership updates */
    SignedStreamName["ConversationMemberships"] = "CONVERSATION_MEMBERSHIPS";
    /** For new/updated notes in a conversation */
    SignedStreamName["Notes"] = "NOTES";
})(SignedStreamName || (exports.SignedStreamName = SignedStreamName = {}));
/** StripeCustomerDetails sorting enum */
var StripeCustomerDetailOrderKeys;
(function (StripeCustomerDetailOrderKeys) {
    StripeCustomerDetailOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    StripeCustomerDetailOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    StripeCustomerDetailOrderKeys["ExpirationDateAsc"] = "EXPIRATION_DATE_ASC";
    StripeCustomerDetailOrderKeys["ExpirationDateDesc"] = "EXPIRATION_DATE_DESC";
    StripeCustomerDetailOrderKeys["PatientFirstNameAsc"] = "PATIENT_FIRST_NAME_ASC";
    StripeCustomerDetailOrderKeys["PatientFirstNameDesc"] = "PATIENT_FIRST_NAME_DESC";
})(StripeCustomerDetailOrderKeys || (exports.StripeCustomerDetailOrderKeys = StripeCustomerDetailOrderKeys = {}));
/** SuperBill sorting enum */
var SuperBillOrderKeys;
(function (SuperBillOrderKeys) {
    SuperBillOrderKeys["AmountBilledAsc"] = "AMOUNT_BILLED_ASC";
    SuperBillOrderKeys["AmountBilledDesc"] = "AMOUNT_BILLED_DESC";
    SuperBillOrderKeys["AmountPaidAsc"] = "AMOUNT_PAID_ASC";
    SuperBillOrderKeys["AmountPaidDesc"] = "AMOUNT_PAID_DESC";
    SuperBillOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    SuperBillOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    SuperBillOrderKeys["NameAsc"] = "NAME_ASC";
    SuperBillOrderKeys["NameDesc"] = "NAME_DESC";
    SuperBillOrderKeys["ServiceDateAsc"] = "SERVICE_DATE_ASC";
    SuperBillOrderKeys["ServiceDateDesc"] = "SERVICE_DATE_DESC";
    SuperBillOrderKeys["Status"] = "STATUS";
})(SuperBillOrderKeys || (exports.SuperBillOrderKeys = SuperBillOrderKeys = {}));
/** Tag sorting enum */
var TagOrderKeys;
(function (TagOrderKeys) {
    /** Sort by amount of patients applied to this Tag ascending */
    TagOrderKeys["ActiveUsersAsc"] = "ACTIVE_USERS_ASC";
    /** Sort by amount of patients applied to this Tag descending */
    TagOrderKeys["ActiveUsersDesc"] = "ACTIVE_USERS_DESC";
    /** Sort by the first name of the user who added the Tag ascending */
    TagOrderKeys["AddedByAsc"] = "ADDED_BY_ASC";
    /** Sort by the first name of the user who added the Tag descending */
    TagOrderKeys["AddedByDesc"] = "ADDED_BY_DESC";
    TagOrderKeys["NameAsc"] = "NAME_ASC";
    TagOrderKeys["NameDesc"] = "NAME_DESC";
    /** Sort by amount of organization members applied to this Tag ascending */
    TagOrderKeys["OrgMembersAsc"] = "ORG_MEMBERS_ASC";
    /** Sort by amount of organization members applied to this Tag descending */
    TagOrderKeys["OrgMembersDesc"] = "ORG_MEMBERS_DESC";
})(TagOrderKeys || (exports.TagOrderKeys = TagOrderKeys = {}));
/** Task sorting enum */
var TaskOrderKeys;
(function (TaskOrderKeys) {
    TaskOrderKeys["AssigneeAsc"] = "ASSIGNEE_ASC";
    TaskOrderKeys["AssigneeDesc"] = "ASSIGNEE_DESC";
    /** Order by client first name and last name ascending */
    TaskOrderKeys["ClientNameAsc"] = "CLIENT_NAME_ASC";
    /** Order by client first name and last name descending */
    TaskOrderKeys["ClientNameDesc"] = "CLIENT_NAME_DESC";
    TaskOrderKeys["CompletedAtAsc"] = "COMPLETED_AT_ASC";
    TaskOrderKeys["CompletedAtDesc"] = "COMPLETED_AT_DESC";
    TaskOrderKeys["CreatedAsc"] = "CREATED_ASC";
    TaskOrderKeys["CreatedDesc"] = "CREATED_DESC";
    TaskOrderKeys["CreatorAsc"] = "CREATOR_ASC";
    TaskOrderKeys["CreatorDesc"] = "CREATOR_DESC";
    TaskOrderKeys["DueDateAsc"] = "DUE_DATE_ASC";
    TaskOrderKeys["DueDateDesc"] = "DUE_DATE_DESC";
    TaskOrderKeys["PriorityAsc"] = "PRIORITY_ASC";
    TaskOrderKeys["PriorityDesc"] = "PRIORITY_DESC";
    TaskOrderKeys["TaskAsc"] = "TASK_ASC";
    TaskOrderKeys["TaskDesc"] = "TASK_DESC";
    TaskOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    TaskOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(TaskOrderKeys || (exports.TaskOrderKeys = TaskOrderKeys = {}));
/** Transfer sorting enum */
var TransferOrderKeys;
(function (TransferOrderKeys) {
    TransferOrderKeys["AmountAsc"] = "AMOUNT_ASC";
    TransferOrderKeys["AmountDesc"] = "AMOUNT_DESC";
    TransferOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    TransferOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    TransferOrderKeys["ExpectedToHappenAsc"] = "EXPECTED_TO_HAPPEN_ASC";
    TransferOrderKeys["ExpectedToHappenDesc"] = "EXPECTED_TO_HAPPEN_DESC";
    TransferOrderKeys["StatusAsc"] = "STATUS_ASC";
    TransferOrderKeys["StatusDesc"] = "STATUS_DESC";
    TransferOrderKeys["TransactionsCountAsc"] = "TRANSACTIONS_COUNT_ASC";
    TransferOrderKeys["TransactionsCountDesc"] = "TRANSACTIONS_COUNT_DESC";
})(TransferOrderKeys || (exports.TransferOrderKeys = TransferOrderKeys = {}));
/** UserGroup sorting enum */
var UserGroupOrderKeys;
(function (UserGroupOrderKeys) {
    UserGroupOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    UserGroupOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    UserGroupOrderKeys["InviteCodeAsc"] = "INVITE_CODE_ASC";
    UserGroupOrderKeys["InviteCodeDesc"] = "INVITE_CODE_DESC";
    UserGroupOrderKeys["NameAsc"] = "NAME_ASC";
    UserGroupOrderKeys["NameDesc"] = "NAME_DESC";
    UserGroupOrderKeys["UsersCountAsc"] = "USERS_COUNT_ASC";
    UserGroupOrderKeys["UsersCountDesc"] = "USERS_COUNT_DESC";
})(UserGroupOrderKeys || (exports.UserGroupOrderKeys = UserGroupOrderKeys = {}));
/** User sorting enum */
var UserOrderKeys;
(function (UserOrderKeys) {
    UserOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    UserOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    UserOrderKeys["EmailAsc"] = "EMAIL_ASC";
    UserOrderKeys["EmailDesc"] = "EMAIL_DESC";
    UserOrderKeys["FirstNameAsc"] = "FIRST_NAME_ASC";
    UserOrderKeys["FirstNameDesc"] = "FIRST_NAME_DESC";
    UserOrderKeys["GroupNameAsc"] = "GROUP_NAME_ASC";
    UserOrderKeys["GroupNameDesc"] = "GROUP_NAME_DESC";
    UserOrderKeys["LastNameAsc"] = "LAST_NAME_ASC";
    UserOrderKeys["LastNameDesc"] = "LAST_NAME_DESC";
    UserOrderKeys["NextApptDateAsc"] = "NEXT_APPT_DATE_ASC";
    UserOrderKeys["NextApptDateDesc"] = "NEXT_APPT_DATE_DESC";
    UserOrderKeys["ProviderNameAsc"] = "PROVIDER_NAME_ASC";
    UserOrderKeys["ProviderNameDesc"] = "PROVIDER_NAME_DESC";
    UserOrderKeys["UpdatedAtAsc"] = "UPDATED_AT_ASC";
    UserOrderKeys["UpdatedAtDesc"] = "UPDATED_AT_DESC";
})(UserOrderKeys || (exports.UserOrderKeys = UserOrderKeys = {}));
/** Webhook sorting enum */
var WebhookOrderKeys;
(function (WebhookOrderKeys) {
    WebhookOrderKeys["CreatedAtAsc"] = "CREATED_AT_ASC";
    WebhookOrderKeys["CreatedAtDesc"] = "CREATED_AT_DESC";
    WebhookOrderKeys["EventTypeAsc"] = "EVENT_TYPE_ASC";
    WebhookOrderKeys["EventTypeDesc"] = "EVENT_TYPE_DESC";
    WebhookOrderKeys["UrlAsc"] = "URL_ASC";
    WebhookOrderKeys["UrlDesc"] = "URL_DESC";
})(WebhookOrderKeys || (exports.WebhookOrderKeys = WebhookOrderKeys = {}));
exports.ApplyTagsToUserDocument = (0, graphql_tag_1.default) `
  mutation applyTagsToUser($ids: [ID], $taggable_user_id: ID) {
    bulkApply(input: { ids: $ids, taggable_user_id: $taggable_user_id }) {
      tags {
        id
        name
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.CreateAppointmentDocument = (0, graphql_tag_1.default) `
  mutation createAppointment(
    $user_id: String
    $appointment_type_id: String
    $contact_type: String
    $other_party_id: String
    $datetime: String
    $metadata: JSON
  ) {
    createAppointment(
      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
      }
    ) {
      appointment {
        id
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.CreateConversationDocument = (0, graphql_tag_1.default) `
  mutation createConversation(
    $simple_added_users: String
    $owner_id: ID
    $name: String
  ) {
    createConversation(
      input: {
        simple_added_users: $simple_added_users
        owner_id: $owner_id
        name: $name
      }
    ) {
      conversation {
        id
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.CreateEntryDocument = (0, graphql_tag_1.default) `
  mutation createEntry(
    $metric_stat: String
    $category: String
    $type: String
    $user_id: String
    $created_at: String
  ) {
    createEntry(
      input: {
        category: $category
        type: $type
        metric_stat: $metric_stat
        user_id: $user_id
        created_at: $created_at
      }
    ) {
      entry {
        id
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.CreateFormAnswerGroupDocument = (0, graphql_tag_1.default) `
  mutation createFormAnswerGroup($input: createFormAnswerGroupInput!) {
    createFormAnswerGroup(input: $input) {
      form_answer_group {
        id
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.CreateFormCompletionRequestDocument = (0, graphql_tag_1.default) `
  mutation createFormCompletionRequest($input: createRequestedFormInput!) {
    createRequestedFormCompletion(input: $input) {
      requestedFormCompletion {
        id
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.CreateGoalDocument = (0, graphql_tag_1.default) `
  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
  ) {
    createGoal(
      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
      }
    ) {
      goal {
        id
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.CreateJournalEntryDocument = (0, graphql_tag_1.default) `
  mutation createJournalEntry($input: createEntryInput!) {
    createEntry(input: $input) {
      entry {
        id
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.CreateLocationDocument = (0, graphql_tag_1.default) `
  mutation createLocation($input: createLocationInput!) {
    createLocation(input: $input) {
      location {
        id
        name
        line1
        zip
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.CreatePatientDocument = (0, graphql_tag_1.default) `
  mutation createPatient($input: createClientInput!) {
    createClient(input: $input) {
      user {
        id
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.CreateTaskDocument = (0, graphql_tag_1.default) `
  mutation createTask(
    $content: String
    $user_id: String
    $priority: Int
    $client_id: String
    $due_date: String
    $reminder: TaskReminderInput
  ) {
    createTask(
      input: {
        content: $content
        user_id: $user_id
        priority: $priority
        client_id: $client_id
        due_date: $due_date
        reminder: $reminder
      }
    ) {
      task {
        id
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.DeleteAppointmentDocument = (0, graphql_tag_1.default) `
  mutation deleteAppointment($id: ID, $deleteRecurring: Boolean) {
    deleteAppointment(input: { id: $id, deleteRecurring: $deleteRecurring }) {
      appointment {
        id
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.DeleteTaskDocument = (0, graphql_tag_1.default) `
  mutation deleteTask($id: ID) {
    deleteTask(input: { id: $id }) {
      task {
        id
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.GetAppliedTagDocument = (0, graphql_tag_1.default) `
  query getAppliedTag($id: ID!, $include_deleted: Boolean = false) {
    appliedTag(id: $id, include_deleted: $include_deleted) {
      created_at
      id
      tag_id
      updated_at
      user_id
    }
  }
`;
exports.GetAppointmentDocument = (0, graphql_tag_1.default) `
  query getAppointment($id: ID, $include_deleted: Boolean = false) {
    appointment(id: $id, include_deleted: $include_deleted) {
      id
      date
      contact_type
      pm_status
      provider {
        id
        full_name
      }
      user {
        id
        full_name
      }
      appointment_type {
        id
        name
      }
    }
  }
`;
exports.GetConversationDocument = (0, graphql_tag_1.default) `
  query getConversation($id: ID) {
    conversation(id: $id) {
      id
      patient_id
    }
  }
`;
exports.GetConversationListDocument = (0, graphql_tag_1.default) `
  query getConversationList(
    $offset: Int
    $keywords: String
    $active_status: String
    $client_id: String
    $read_status: String
    $conversation_type: String
    $provider_id: ID
  ) {
    conversationMembershipsCount(
      keywords: $keywords
      active_status: $active_status
      client_id: $client_id
      read_status: $read_status
      conversation_type: $conversation_type
      provider_id: $provider_id
    )
    conversationMemberships(
      offset: $offset
      keywords: $keywords
      active_status: $active_status
      client_id: $client_id
      read_status: $read_status
      conversation_type: $conversation_type
      provider_id: $provider_id
    ) {
      id
      display_name
      archived
      viewed
      convo {
        id
        conversation_memberships_count
        owner {
          id
        }
      }
    }
  }
`;
exports.GetFormAnswerGroupDocument = (0, graphql_tag_1.default) `
  query getFormAnswerGroup($id: ID) {
    formAnswerGroup(id: $id) {
      id
      finished
      user {
        id
        dietitian_id
      }
      custom_module_form {
        id
      }
      form_answers {
        id
        label
        answer
      }
    }
  }
`;
exports.GetFormTemplateDocument = (0, graphql_tag_1.default) `
  query getFormTemplate($id: ID) {
    customModuleForm(id: $id) {
      id
      name
      use_for_charting
      use_for_program
      prefill
      has_matrix_field
      is_video
      has_non_readonly_modules
      custom_modules {
        id
        mod_type
        label
      }
    }
  }
`;
exports.GetGoalDocument = (0, graphql_tag_1.default) `
  query getGoal($id: ID!) {
    goal(id: $id) {
      id
      user_id
    }
  }
`;
exports.GetLabOrderDocument = (0, graphql_tag_1.default) `
  query getLabOrder($id: ID!) {
    labOrder(id: $id) {
      id
      created_at
      patient {
        id
      }
    }
  }
`;
exports.GetMessageDocument = (0, graphql_tag_1.default) `
  query getMessage($id: ID) {
    note(id: $id) {
      id
      conversation_id
    }
  }
`;
exports.GetMetricEntryDocument = (0, graphql_tag_1.default) `
  query getMetricEntry($id: ID!) {
    entry(id: $id, type: "MetricEntry") {
      id
      category
      poster {
        id
      }
    }
  }
`;
exports.GetRequestedFormCompletionDocument = (0, graphql_tag_1.default) `
  query getRequestedFormCompletion($id: ID!) {
    requestedFormCompletion(id: $id) {
      id
      recipient_id
    }
  }
`;
exports.GetScheduledAppointmentsDocument = (0, graphql_tag_1.default) `
  query getScheduledAppointments($user_id: ID, $appointment_type_id: ID) {
    appointments(
      user_id: $user_id
      filter_by_appointment_type_id: $appointment_type_id
      is_active: true
      should_paginate: false
      filter: "future"
    ) {
      id
    }
  }
`;
exports.GetTaskDocument = (0, graphql_tag_1.default) `
  query getTask($id: ID!) {
    task(id: $id) {
      id
      created_at
      client_id
    }
  }
`;
exports.GetUserDocument = (0, graphql_tag_1.default) `
  query getUser($id: ID) {
    user(id: $id) {
      id
      first_name
      last_name
      dob
      gender
      email
      phone_number
      next_appt_date
      dietitian_id
      quick_notes
      user_group {
        id
        name
      }
      providers {
        id
        active
        first_name
        last_name
        email
      }
      active_tags {
        id
      }
    }
  }
`;
exports.EntriesDocument = (0, graphql_tag_1.default) `
  query entries($category: String, $type: String, $client_id: String) {
    entries(category: $category, type: $type, client_id: $client_id) {
      id
      metric_stat
      created_at
    }
  }
`;
exports.RemoveTagFromUserDocument = (0, graphql_tag_1.default) `
  mutation removeTagFromUser($id: ID, $taggable_user_id: ID) {
    removeAppliedTag(input: { id: $id, taggable_user_id: $taggable_user_id }) {
      tag {
        id
        name
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.SendChatMessageDocument = (0, graphql_tag_1.default) `
  mutation sendChatMessage($input: createNoteInput!) {
    createNote(input: $input) {
      messages {
        field
        message
      }
      note {
        id
        user_id
        recipient_id
      }
    }
  }
`;
exports.UpdateAppointmentDocument = (0, graphql_tag_1.default) `
  mutation updateAppointment($input: updateAppointmentInput!) {
    updateAppointment(input: $input) {
      appointment {
        id
        date
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.UpdateConversationDocument = (0, graphql_tag_1.default) `
  mutation updateConversation($input: updateConversationInput!) {
    updateConversation(input: $input) {
      conversation {
        id
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.UpdatePatientDocument = (0, graphql_tag_1.default) `
  mutation updatePatient($input: updateClientInput!) {
    updateClient(input: $input) {
      user {
        id
        first_name
        last_name
        legal_name
        email
        quick_notes
      }
      messages {
        field
        message
      }
    }
  }
`;
exports.UpdateTaskDocument = (0, graphql_tag_1.default) `
  mutation updateTask($input: updateTaskInput!) {
    updateTask(input: $input) {
      task {
        id
      }
      messages {
        field
        message
      }
    }
  }
`;
const defaultWrapper = (action, _operationName, _operationType) => action();
const ApplyTagsToUserDocumentString = (0, graphql_1.print)(exports.ApplyTagsToUserDocument);
const CreateAppointmentDocumentString = (0, graphql_1.print)(exports.CreateAppointmentDocument);
const CreateConversationDocumentString = (0, graphql_1.print)(exports.CreateConversationDocument);
const CreateEntryDocumentString = (0, graphql_1.print)(exports.CreateEntryDocument);
const CreateFormAnswerGroupDocumentString = (0, graphql_1.print)(exports.CreateFormAnswerGroupDocument);
const CreateFormCompletionRequestDocumentString = (0, graphql_1.print)(exports.CreateFormCompletionRequestDocument);
const CreateGoalDocumentString = (0, graphql_1.print)(exports.CreateGoalDocument);
const CreateJournalEntryDocumentString = (0, graphql_1.print)(exports.CreateJournalEntryDocument);
const CreateLocationDocumentString = (0, graphql_1.print)(exports.CreateLocationDocument);
const CreatePatientDocumentString = (0, graphql_1.print)(exports.CreatePatientDocument);
const CreateTaskDocumentString = (0, graphql_1.print)(exports.CreateTaskDocument);
const DeleteAppointmentDocumentString = (0, graphql_1.print)(exports.DeleteAppointmentDocument);
const DeleteTaskDocumentString = (0, graphql_1.print)(exports.DeleteTaskDocument);
const GetAppliedTagDocumentString = (0, graphql_1.print)(exports.GetAppliedTagDocument);
const GetAppointmentDocumentString = (0, graphql_1.print)(exports.GetAppointmentDocument);
const GetConversationDocumentString = (0, graphql_1.print)(exports.GetConversationDocument);
const GetConversationListDocumentString = (0, graphql_1.print)(exports.GetConversationListDocument);
const GetFormAnswerGroupDocumentString = (0, graphql_1.print)(exports.GetFormAnswerGroupDocument);
const GetFormTemplateDocumentString = (0, graphql_1.print)(exports.GetFormTemplateDocument);
const GetGoalDocumentString = (0, graphql_1.print)(exports.GetGoalDocument);
const GetLabOrderDocumentString = (0, graphql_1.print)(exports.GetLabOrderDocument);
const GetMessageDocumentString = (0, graphql_1.print)(exports.GetMessageDocument);
const GetMetricEntryDocumentString = (0, graphql_1.print)(exports.GetMetricEntryDocument);
const GetRequestedFormCompletionDocumentString = (0, graphql_1.print)(exports.GetRequestedFormCompletionDocument);
const GetScheduledAppointmentsDocumentString = (0, graphql_1.print)(exports.GetScheduledAppointmentsDocument);
const GetTaskDocumentString = (0, graphql_1.print)(exports.GetTaskDocument);
const GetUserDocumentString = (0, graphql_1.print)(exports.GetUserDocument);
const EntriesDocumentString = (0, graphql_1.print)(exports.EntriesDocument);
const RemoveTagFromUserDocumentString = (0, graphql_1.print)(exports.RemoveTagFromUserDocument);
const SendChatMessageDocumentString = (0, graphql_1.print)(exports.SendChatMessageDocument);
const UpdateAppointmentDocumentString = (0, graphql_1.print)(exports.UpdateAppointmentDocument);
const UpdateConversationDocumentString = (0, graphql_1.print)(exports.UpdateConversationDocument);
const UpdatePatientDocumentString = (0, graphql_1.print)(exports.UpdatePatientDocument);
const UpdateTaskDocumentString = (0, graphql_1.print)(exports.UpdateTaskDocument);
/**
 * @deprecated DO NOT USE
 * DO NOT USE
 */
function getSdk(client, withWrapper = defaultWrapper) {
    return {
        applyTagsToUser(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(ApplyTagsToUserDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'applyTagsToUser', 'mutation');
        },
        createAppointment(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateAppointmentDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'createAppointment', 'mutation');
        },
        createConversation(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateConversationDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'createConversation', 'mutation');
        },
        createEntry(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateEntryDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'createEntry', 'mutation');
        },
        createFormAnswerGroup(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateFormAnswerGroupDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'createFormAnswerGroup', 'mutation');
        },
        createFormCompletionRequest(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateFormCompletionRequestDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'createFormCompletionRequest', 'mutation');
        },
        createGoal(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateGoalDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'createGoal', 'mutation');
        },
        createJournalEntry(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateJournalEntryDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'createJournalEntry', 'mutation');
        },
        createLocation(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateLocationDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'createLocation', 'mutation');
        },
        createPatient(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreatePatientDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'createPatient', 'mutation');
        },
        createTask(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateTaskDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'createTask', 'mutation');
        },
        deleteAppointment(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(DeleteAppointmentDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'deleteAppointment', 'mutation');
        },
        deleteTask(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(DeleteTaskDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'deleteTask', 'mutation');
        },
        getAppliedTag(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetAppliedTagDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getAppliedTag', 'query');
        },
        getAppointment(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetAppointmentDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getAppointment', 'query');
        },
        getConversation(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetConversationDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getConversation', 'query');
        },
        getConversationList(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetConversationListDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getConversationList', 'query');
        },
        getFormAnswerGroup(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetFormAnswerGroupDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getFormAnswerGroup', 'query');
        },
        getFormTemplate(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetFormTemplateDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getFormTemplate', 'query');
        },
        getGoal(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetGoalDocumentString, variables, {
                ...requestHeaders,
                ...wrappedRequestHeaders,
            }), 'getGoal', 'query');
        },
        getLabOrder(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetLabOrderDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getLabOrder', 'query');
        },
        getMessage(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMessageDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getMessage', 'query');
        },
        getMetricEntry(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMetricEntryDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getMetricEntry', 'query');
        },
        getRequestedFormCompletion(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetRequestedFormCompletionDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getRequestedFormCompletion', 'query');
        },
        getScheduledAppointments(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetScheduledAppointmentsDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getScheduledAppointments', 'query');
        },
        getTask(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetTaskDocumentString, variables, {
                ...requestHeaders,
                ...wrappedRequestHeaders,
            }), 'getTask', 'query');
        },
        getUser(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetUserDocumentString, variables, {
                ...requestHeaders,
                ...wrappedRequestHeaders,
            }), 'getUser', 'query');
        },
        entries(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(EntriesDocumentString, variables, {
                ...requestHeaders,
                ...wrappedRequestHeaders,
            }), 'entries', 'query');
        },
        removeTagFromUser(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(RemoveTagFromUserDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'removeTagFromUser', 'mutation');
        },
        sendChatMessage(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(SendChatMessageDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'sendChatMessage', 'mutation');
        },
        updateAppointment(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(UpdateAppointmentDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'updateAppointment', 'mutation');
        },
        updateConversation(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(UpdateConversationDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'updateConversation', 'mutation');
        },
        updatePatient(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(UpdatePatientDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'updatePatient', 'mutation');
        },
        updateTask(variables, requestHeaders) {
            return withWrapper((wrappedRequestHeaders) => client.rawRequest(UpdateTaskDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'updateTask', 'mutation');
        },
    };
}
//# sourceMappingURL=sdk.js.map