Skip to content

Commit

Permalink
Parse data in client side
Browse files Browse the repository at this point in the history
  • Loading branch information
peraltafederico committed Aug 28, 2024
1 parent ff0abfd commit 690cce4
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 201 deletions.
200 changes: 40 additions & 160 deletions src/extension/__generated-platform__/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,47 +191,6 @@ export type CellAttachment = {
updateTime: Scalars['DateTime']['output'];
};

export type CellExecution = {
__typename?: 'CellExecution';
archivedTime?: Maybe<Scalars['DateTime']['output']>;
autoSave: Scalars['Boolean']['output'];
createTime: Scalars['DateTime']['output'];
exitCode: Scalars['Int']['output'];
history?: Maybe<Array<Maybe<CellExecution>>>;
htmlUrl?: Maybe<Scalars['String']['output']>;
id: Scalars['String']['output'];
input?: Maybe<Scalars['String']['output']>;
inputData?: Maybe<Scalars['Bytes']['output']>;
isOwner?: Maybe<Scalars['Boolean']['output']>;
isSlackReady: Scalars['Boolean']['output'];
languageId?: Maybe<Scalars['String']['output']>;
lifecycleIdentityId?: Maybe<Scalars['String']['output']>;
maskedInput?: Maybe<Scalars['String']['output']>;
maskedStderr?: Maybe<Scalars['Bytes']['output']>;
maskedStdout?: Maybe<Scalars['Bytes']['output']>;
metadata?: Maybe<Metadata>;
notebook?: Maybe<Notebook>;
notebookId?: Maybe<Scalars['String']['output']>;
organizationId?: Maybe<Scalars['String']['output']>;
owner?: Maybe<Owner>;
pid?: Maybe<Scalars['Int']['output']>;
shareType?: Maybe<ShareType>;
stderr?: Maybe<Scalars['Bytes']['output']>;
stderrData?: Maybe<Scalars['Bytes']['output']>;
stdout?: Maybe<Scalars['Bytes']['output']>;
stdoutData?: Maybe<Scalars['Bytes']['output']>;
unmaskable: Scalars['Boolean']['output'];
updateTime?: Maybe<Scalars['DateTime']['output']>;
user?: Maybe<User>;
userId: Scalars['String']['output'];
};


export type CellExecutionHistoryArgs = {
archived?: InputMaybe<Scalars['Boolean']['input']>;
autoSave?: InputMaybe<Scalars['Boolean']['input']>;
};

export type CellInput = {
__typename?: 'CellInput';
cellNotebookMetadataList?: Maybe<Array<Maybe<CellNotebookMetadata>>>;
Expand Down Expand Up @@ -365,6 +324,7 @@ export type Conversation = {
createTime: Scalars['DateTime']['output'];
description?: Maybe<Scalars['String']['output']>;
id: Scalars['String']['output'];
isResourceOwner?: Maybe<Scalars['Boolean']['output']>;
messages?: Maybe<Array<Maybe<Message>>>;
name?: Maybe<Scalars['String']['output']>;
notebookMetadataOutput?: Maybe<NotebookMetadataOutput>;
Expand Down Expand Up @@ -397,55 +357,6 @@ export type CreateCellAttachmentInput = {
type: Scalars['String']['input'];
};

export type CreateCellExecutionInput = {
archivedTime?: InputMaybe<Scalars['DateTime']['input']>;
autoSave?: InputMaybe<Scalars['Boolean']['input']>;
branch?: InputMaybe<Scalars['String']['input']>;
commit?: InputMaybe<Scalars['String']['input']>;
createTime?: InputMaybe<Scalars['DateTime']['input']>;
exitCode?: InputMaybe<Scalars['Int']['input']>;
fileContent?: InputMaybe<Scalars['Bytes']['input']>;
filePath?: InputMaybe<Scalars['String']['input']>;
id?: InputMaybe<Scalars['String']['input']>;
input: Scalars['Bytes']['input'];
languageId?: InputMaybe<Scalars['String']['input']>;
maskedSessionOutput?: InputMaybe<Scalars['Bytes']['input']>;
metadata: MetadataInput;
notebook?: InputMaybe<CreateNotebookInput>;
pid: Scalars['Int']['input'];
plainSessionOutput?: InputMaybe<Scalars['Bytes']['input']>;
repository?: InputMaybe<Scalars['String']['input']>;
sessionId?: InputMaybe<Scalars['String']['input']>;
shareType?: InputMaybe<ShareType>;
stderr: Scalars['Bytes']['input'];
stdout: Scalars['Bytes']['input'];
updateTime?: InputMaybe<Scalars['DateTime']['input']>;
};

export type CreateCellOutputInput = {
autoSave?: InputMaybe<Scalars['Boolean']['input']>;
branch?: InputMaybe<Scalars['String']['input']>;
commit?: InputMaybe<Scalars['String']['input']>;
exitCode: Scalars['Int']['input'];
extensionVersion?: InputMaybe<Scalars['String']['input']>;
fileContent: Scalars['Bytes']['input'];
fileName?: InputMaybe<Scalars['String']['input']>;
filePath?: InputMaybe<Scalars['String']['input']>;
inputData: Scalars['Bytes']['input'];
languageId?: InputMaybe<Scalars['String']['input']>;
lifecycleIdentityId: Scalars['String']['input'];
maskedSessionOutput?: InputMaybe<Scalars['Bytes']['input']>;
metadata: MetadataInput;
notebookLifecycleIdentityId: Scalars['String']['input'];
pid: Scalars['Int']['input'];
plainSessionOutput?: InputMaybe<Scalars['Bytes']['input']>;
repository?: InputMaybe<Scalars['String']['input']>;
sessionId?: InputMaybe<Scalars['String']['input']>;
shareType?: InputMaybe<ShareType>;
stderrData: Scalars['Bytes']['input'];
stdoutData: Scalars['Bytes']['input'];
};

export type CreateEnvironmentInput = {
description?: InputMaybe<Scalars['String']['input']>;
name: Scalars['String']['input'];
Expand Down Expand Up @@ -497,12 +408,6 @@ export type CreateMessageInput = {
referenceTable: Scalars['String']['input'];
};

export type CreateNotebookInput = {
fileName?: InputMaybe<Scalars['String']['input']>;
id?: InputMaybe<Scalars['String']['input']>;
runmeVersion?: InputMaybe<Scalars['String']['input']>;
};

export type CreateNotebookSessionInput = {
environmentId?: InputMaybe<Scalars['String']['input']>;
notebookId: Scalars['String']['input'];
Expand Down Expand Up @@ -836,10 +741,8 @@ export type Mutation = {
acceptAccessRequest: AccessRequest;
acceptInvitation: Invitation;
activeOrganization: Organization;
archiveCellExecution?: Maybe<CellExecution>;
archiveCellOutput: CellOutput;
createAccessRequest: AccessRequest;
createCellExecution: CellExecution;
createCellOutput: CellOutput;
createCellOutputBookmark: Bookmark;
createConversationBookmark: Bookmark;
Expand All @@ -863,14 +766,15 @@ export type Mutation = {
shareCellOutputToSlack: CellOutput;
shareNotebookMetadataOutputToSlack: Notebook;
syncGithubInstallation: GithubInstallation;
unArchiveCellExecution?: Maybe<CellExecution>;
unArchiveCellOutput: CellOutput;
updateCellExecution: CellExecution;
updateCellOutput: CellOutput;
updateCellOutputTags?: Maybe<Array<Maybe<Tag>>>;
updateConversation: Conversation;
updateEntityTags?: Maybe<Array<Maybe<Tag>>>;
updateConversationTags?: Maybe<Array<Maybe<Tag>>>;
updateGroup: Group;
updateMarkdownTags?: Maybe<Array<Maybe<Tag>>>;
updateNotebookMetadataOutput?: Maybe<Notebook>;
updateNotebookOutputTags?: Maybe<Array<Maybe<Tag>>>;
updateOrganization: Organization;
updateOrganizationUser: Organization;
updateSlackInstallation: SlackInstallation;
Expand All @@ -894,12 +798,6 @@ export type MutationActiveOrganizationArgs = {
};


export type MutationArchiveCellExecutionArgs = {
all?: InputMaybe<Scalars['Boolean']['input']>;
id: Scalars['String']['input'];
};


export type MutationArchiveCellOutputArgs = {
all?: InputMaybe<Scalars['Boolean']['input']>;
id: Scalars['String']['input'];
Expand All @@ -911,11 +809,6 @@ export type MutationCreateAccessRequestArgs = {
};


export type MutationCreateCellExecutionArgs = {
input: CreateCellExecutionInput;
};


export type MutationCreateCellOutputArgs = {
input: ReporterInput;
};
Expand Down Expand Up @@ -1021,28 +914,20 @@ export type MutationShareNotebookMetadataOutputToSlackArgs = {
};


export type MutationUnArchiveCellExecutionArgs = {
all?: InputMaybe<Scalars['Boolean']['input']>;
id: Scalars['String']['input'];
};


export type MutationUnArchiveCellOutputArgs = {
all?: InputMaybe<Scalars['Boolean']['input']>;
id: Scalars['String']['input'];
};


export type MutationUpdateCellExecutionArgs = {
export type MutationUpdateCellOutputArgs = {
id: Scalars['String']['input'];
input: UpdateCellExecutionInput;
notifySlack?: InputMaybe<Scalars['Boolean']['input']>;
input: UpdateCellOutputInput;
};


export type MutationUpdateCellOutputArgs = {
id: Scalars['String']['input'];
input: UpdateCellOutputInput;
export type MutationUpdateCellOutputTagsArgs = {
input: UpdateEntityTagsInput;
};


Expand All @@ -1052,7 +937,7 @@ export type MutationUpdateConversationArgs = {
};


export type MutationUpdateEntityTagsArgs = {
export type MutationUpdateConversationTagsArgs = {
input: UpdateEntityTagsInput;
};

Expand All @@ -1063,12 +948,22 @@ export type MutationUpdateGroupArgs = {
};


export type MutationUpdateMarkdownTagsArgs = {
input: UpdateEntityTagsInput;
};


export type MutationUpdateNotebookMetadataOutputArgs = {
id: Scalars['String']['input'];
input?: InputMaybe<UpdateNotebookMetadataOutputInput>;
};


export type MutationUpdateNotebookOutputTagsArgs = {
input: UpdateEntityTagsInput;
};


export type MutationUpdateOrganizationArgs = {
id: Scalars['String']['input'];
input: UpdateOrganizationInput;
Expand Down Expand Up @@ -1296,18 +1191,6 @@ export type OrganizationUser = {
userId: Scalars['String']['output'];
};

export type Owner = {
__typename?: 'Owner';
bio?: Maybe<Scalars['String']['output']>;
company?: Maybe<Scalars['String']['output']>;
displayName?: Maybe<Scalars['String']['output']>;
githubUsername?: Maybe<Scalars['String']['output']>;
linkedin?: Maybe<Scalars['String']['output']>;
photoUrl?: Maybe<Scalars['String']['output']>;
siteUrl?: Maybe<Scalars['String']['output']>;
twitter?: Maybe<Scalars['String']['output']>;
};

export type PaginatedLogs = {
__typename?: 'PaginatedLogs';
data: Array<Log>;
Expand Down Expand Up @@ -1359,6 +1242,7 @@ export enum PermissionEnum {
UpdateGithubInstallation = 'update_github_installation',
UpdateGroup = 'update_group',
UpdateInvitation = 'update_invitation',
UpdateMarkdownTags = 'update_markdown_tags',
UpdateNotebookMetadataOutput = 'update_notebook_metadata_output',
UpdateNotification = 'update_notification',
UpdateOrganization = 'update_organization',
Expand Down Expand Up @@ -1636,9 +1520,9 @@ export type ReporterCellInput = {
kind?: InputMaybe<Scalars['Int']['input']>;
languageId?: InputMaybe<Scalars['String']['input']>;
metadata?: InputMaybe<ReporterCellMetadataInput>;
outputs?: InputMaybe<Array<InputMaybe<ReporterCellOutputInput>>>;
outputs: Array<ReporterCellOutputInput>;
textRange?: InputMaybe<ReporterTextRangeInput>;
value?: InputMaybe<Scalars['String']['input']>;
value: Scalars['String']['input'];
};

export type ReporterCellMetadataInput = {
Expand All @@ -1649,13 +1533,13 @@ export type ReporterCellMetadataInput = {
};

export type ReporterCellOutputInput = {
items?: InputMaybe<Array<InputMaybe<ReporterCellOutputItemInput>>>;
items: Array<ReporterCellOutputItemInput>;
metadata?: InputMaybe<Scalars['JSON']['input']>;
processInfo?: InputMaybe<ReporterCellOutputProcessInfoInput>;
};

export type ReporterCellOutputItemInput = {
data?: InputMaybe<Scalars['Bytes']['input']>;
data: Scalars['Bytes']['input'];
mime?: InputMaybe<Scalars['String']['input']>;
type?: InputMaybe<Scalars['String']['input']>;
};
Expand All @@ -1677,6 +1561,7 @@ export type ReporterDeviceInput = {
vsAppName?: InputMaybe<Scalars['String']['input']>;
vsAppSessionId?: InputMaybe<Scalars['String']['input']>;
vsMachineId?: InputMaybe<Scalars['String']['input']>;
vsMetadata?: InputMaybe<Scalars['JSON']['input']>;
};

export type ReporterExecutionSummaryTimingInput = {
Expand All @@ -1689,7 +1574,7 @@ export type ReporterExtensionInput = {
device?: InputMaybe<ReporterDeviceInput>;
file?: InputMaybe<ReporterFileInput>;
git?: InputMaybe<ReporterGitInput>;
session?: InputMaybe<ReporterSessionInput>;
session: ReporterSessionInput;
};

export type ReporterFileInput = {
Expand All @@ -1700,15 +1585,15 @@ export type ReporterFileInput = {
export type ReporterFrontmatterInput = {
category?: InputMaybe<Scalars['String']['input']>;
cwd?: InputMaybe<Scalars['String']['input']>;
runme?: InputMaybe<ReporterFrontmatterRunmeInput>;
runme: ReporterFrontmatterRunmeInput;
shell?: InputMaybe<Scalars['String']['input']>;
skipPrompts?: InputMaybe<Scalars['Boolean']['input']>;
terminalRows?: InputMaybe<Scalars['String']['input']>;
};

export type ReporterFrontmatterRunmeInput = {
id?: InputMaybe<Scalars['String']['input']>;
session?: InputMaybe<ReporterRunmeSessionInput>;
id: Scalars['String']['input'];
session: ReporterRunmeSessionInput;
version?: InputMaybe<Scalars['String']['input']>;
};

Expand All @@ -1719,13 +1604,13 @@ export type ReporterGitInput = {
};

export type ReporterInput = {
extension?: InputMaybe<ReporterExtensionInput>;
notebook?: InputMaybe<ReporterNotebookInput>;
extension: ReporterExtensionInput;
notebook: ReporterNotebookInput;
};

export type ReporterNotebookInput = {
cells?: InputMaybe<Array<InputMaybe<ReporterCellInput>>>;
frontmatter?: InputMaybe<ReporterFrontmatterInput>;
cells: Array<ReporterCellInput>;
frontmatter: ReporterFrontmatterInput;
metadata?: InputMaybe<Scalars['JSON']['input']>;
};

Expand All @@ -1747,17 +1632,17 @@ export type ReporterRunmeSessionDocumentInput = {

export type ReporterRunmeSessionInput = {
document?: InputMaybe<ReporterRunmeSessionDocumentInput>;
id?: InputMaybe<Scalars['String']['input']>;
id: Scalars['String']['input'];
};

export type ReporterSessionInput = {
maskedOutput?: InputMaybe<Scalars['Bytes']['input']>;
plainOutput?: InputMaybe<Scalars['Bytes']['input']>;
maskedOutput: Scalars['Bytes']['input'];
plainOutput: Scalars['Bytes']['input'];
};

export type ReporterTextRangeInput = {
end?: InputMaybe<UInt32>;
start?: InputMaybe<UInt32>;
end?: InputMaybe<Scalars['Int']['input']>;
start?: InputMaybe<Scalars['Int']['input']>;
};

export type ResourceAccess = {
Expand Down Expand Up @@ -1903,10 +1788,6 @@ export type UpdateCellAttachmentInput = {
type?: InputMaybe<Scalars['String']['input']>;
};

export type UpdateCellExecutionInput = {
isPrivate?: InputMaybe<Scalars['Boolean']['input']>;
};

export type UpdateCellOutputInput = {
description?: InputMaybe<Scalars['String']['input']>;
groupIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
Expand All @@ -1922,8 +1803,7 @@ export type UpdateConversationInput = {
};

export type UpdateEntityTagsInput = {
referenceId: Scalars['String']['input'];
referenceTable: Scalars['String']['input'];
id: Scalars['String']['input'];
tagNames?: InputMaybe<Array<Scalars['String']['input']>>;
};

Expand Down
Loading

0 comments on commit 690cce4

Please sign in to comment.