Skip to content

Commit

Permalink
update schema for string type options (#122)
Browse files Browse the repository at this point in the history
* update schema for string type options

* update package.json version
  • Loading branch information
namdar12 authored Jan 25, 2024
1 parent d63e4a2 commit dba6ac9
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@awell-health/ui-library",
"version": "0.1.41",
"version": "0.1.42",
"private": false,
"description": "UI components to integrate with Awell Health",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useForm/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export enum DataPointValueType {
Date = 'DATE',
Number = 'NUMBER',
NumbersArray = 'NUMBERS_ARRAY',
StringsArray = 'STRINGS_ARRAY',
String = 'STRING',
}

Expand Down
59 changes: 56 additions & 3 deletions src/types/generated/types-orchestration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export type Scalars = {
Boolean: boolean;
Int: number;
Float: number;
/** Safe date scalar that can serialize string or date */
SafeDate: any;
};

Expand Down Expand Up @@ -81,6 +80,7 @@ export enum ActivityAction {
Delegated = 'DELEGATED',
Deliver = 'DELIVER',
Discarded = 'DISCARDED',
Expired = 'EXPIRED',
Failed = 'FAILED',
FailedToSend = 'FAILED_TO_SEND',
Generated = 'GENERATED',
Expand Down Expand Up @@ -141,6 +141,7 @@ export enum ActivityObjectType {
}

export enum ActivityResolution {
Expired = 'EXPIRED',
Failure = 'FAILURE',
Success = 'SUCCESS'
}
Expand All @@ -149,6 +150,7 @@ export enum ActivityStatus {
Active = 'ACTIVE',
Canceled = 'CANCELED',
Done = 'DONE',
Expired = 'EXPIRED',
Failed = 'FAILED'
}

Expand Down Expand Up @@ -386,7 +388,8 @@ export enum ConditionOperandType {
DataSource = 'DATA_SOURCE',
Number = 'NUMBER',
NumbersArray = 'NUMBERS_ARRAY',
String = 'STRING'
String = 'STRING',
StringsArray = 'STRINGS_ARRAY'
}

export enum ConditionOperator {
Expand Down Expand Up @@ -487,6 +490,7 @@ export enum DataPointValueType {
Number = 'NUMBER',
NumbersArray = 'NUMBERS_ARRAY',
String = 'STRING',
StringsArray = 'STRINGS_ARRAY',
Telephone = 'TELEPHONE'
}

Expand Down Expand Up @@ -682,12 +686,18 @@ export type Form = {
id: Scalars['ID'];
key: Scalars['String'];
metadata?: Maybe<Scalars['String']>;
previous_answers?: Maybe<Array<PreviousAnswers>>;
questions: Array<Question>;
release_id: Scalars['String'];
title: Scalars['String'];
trademark?: Maybe<Scalars['String']>;
};


export type FormPrevious_AnswersArgs = {
pathway_id: Scalars['String'];
};

export enum FormDisplayMode {
Conversational = 'CONVERSATIONAL',
Regular = 'REGULAR'
Expand Down Expand Up @@ -746,6 +756,22 @@ export type GeneratedClinicalNoteNarrative = {
title: Scalars['String'];
};

export type HostedPagesLink = {
__typename?: 'HostedPagesLink';
id: Scalars['ID'];
pathway_id: Scalars['String'];
stakeholder_id?: Maybe<Scalars['String']>;
url?: Maybe<Scalars['String']>;
};

export type HostedPagesLinkPayload = Payload & {
__typename?: 'HostedPagesLinkPayload';
code: Scalars['String'];
/** The hosted pages link for the stakeholder. If there is no activity for the stakeholder in the care flow, this link will be null. */
hosted_pages_link?: Maybe<HostedPagesLink>;
success: Scalars['Boolean'];
};

export type HostedSession = {
__typename?: 'HostedSession';
cancel_url?: Maybe<Scalars['String']>;
Expand Down Expand Up @@ -1062,7 +1088,7 @@ export type Option = {
__typename?: 'Option';
id: Scalars['ID'];
label: Scalars['String'];
value: Scalars['Float'];
value: Scalars['String'];
};

export type OrchestrationFact = {
Expand Down Expand Up @@ -1296,6 +1322,13 @@ export type PluginActionSettingsProperty = {
value: Scalars['String'];
};

export type PreviousAnswers = {
__typename?: 'PreviousAnswers';
activity_id: Scalars['ID'];
answers: Array<Answer>;
date: Scalars['String'];
};

export type PublishedPathwayDefinition = {
__typename?: 'PublishedPathwayDefinition';
active_activities?: Maybe<Scalars['Float']>;
Expand Down Expand Up @@ -1357,6 +1390,7 @@ export type Query = {
forms: FormsPayload;
getOrchestrationFactsFromPrompt: OrchestrationFactsPromptPayload;
getStatusForPublishedPathwayDefinitions: PublishedPathwayDefinitionsPayload;
hostedPagesLink: HostedPagesLinkPayload;
hostedSession: HostedSessionPayload;
hostedSessionActivities: HostedSessionActivitiesPayload;
message: MessagePayload;
Expand Down Expand Up @@ -1484,6 +1518,12 @@ export type QueryGetOrchestrationFactsFromPromptArgs = {
};


export type QueryHostedPagesLinkArgs = {
pathway_id: Scalars['String'];
stakeholder_id: Scalars['String'];
};


export type QueryHostedSessionActivitiesArgs = {
only_stakeholder_activities?: InputMaybe<Scalars['Boolean']>;
};
Expand Down Expand Up @@ -1969,6 +2009,7 @@ export type Subscription = {
__typename?: 'Subscription';
activityCompleted: Activity;
activityCreated: Activity;
activityExpired: Activity;
activityUpdated: Activity;
apiCallCreated: ApiCall;
apiCallUpdated: ApiCall;
Expand All @@ -1978,6 +2019,7 @@ export type Subscription = {
pathwayUpdated: Pathway;
sessionActivityCompleted: Activity;
sessionActivityCreated: Activity;
sessionActivityExpired: Activity;
sessionActivityUpdated: Activity;
sessionCompleted: HostedSession;
sessionExpired: HostedSession;
Expand All @@ -1998,6 +2040,12 @@ export type SubscriptionActivityCreatedArgs = {
};


export type SubscriptionActivityExpiredArgs = {
only_patient_activities?: InputMaybe<Scalars['Boolean']>;
pathway_id?: InputMaybe<Scalars['String']>;
};


export type SubscriptionActivityUpdatedArgs = {
only_patient_activities?: InputMaybe<Scalars['Boolean']>;
pathway_id?: InputMaybe<Scalars['String']>;
Expand Down Expand Up @@ -2047,6 +2095,11 @@ export type SubscriptionSessionActivityCreatedArgs = {
};


export type SubscriptionSessionActivityExpiredArgs = {
only_stakeholder_activities?: InputMaybe<Scalars['Boolean']>;
};


export type SubscriptionSessionActivityUpdatedArgs = {
only_stakeholder_activities?: InputMaybe<Scalars['Boolean']>;
};
Expand Down

0 comments on commit dba6ac9

Please # to comment.