This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f9475c
commit 2254367
Showing
32 changed files
with
2,461 additions
and
51 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
34 changes: 34 additions & 0 deletions
34
docs/parser-guide/commands-api/info/enums/ServerDelineationTypes.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[@redeye/parser-core](../index.md) / ServerDelineationTypes | ||
|
||
# Enumeration: ServerDelineationTypes | ||
|
||
## Table of contents | ||
|
||
### Enumeration Members | ||
|
||
- [Database](ServerDelineationTypes.md#database) | ||
- [Folder](ServerDelineationTypes.md#folder) | ||
|
||
## Enumeration Members | ||
|
||
### Database | ||
|
||
• **Database** = ``"Database"`` | ||
|
||
server data not in any particular file/folder structure | ||
|
||
#### Defined in | ||
|
||
[upload-form.ts:54](https://github.com/cisagov/RedEye/blob/9f9475cf/parsers/parser-core/src/parser-info/upload-form.ts#L54) | ||
|
||
___ | ||
|
||
### Folder | ||
|
||
• **Folder** = ``"Folder"`` | ||
|
||
server data seperated into distinct folders | ||
|
||
#### Defined in | ||
|
||
[upload-form.ts:52](https://github.com/cisagov/RedEye/blob/9f9475cf/parsers/parser-core/src/parser-info/upload-form.ts#L52) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[@redeye/parser-core](../index.md) / UploadType | ||
|
||
# Enumeration: UploadType | ||
|
||
## Table of contents | ||
|
||
### Enumeration Members | ||
|
||
- [Directory](UploadType.md#directory) | ||
- [File](UploadType.md#file) | ||
|
||
## Enumeration Members | ||
|
||
### Directory | ||
|
||
• **Directory** = ``"Directory"`` | ||
|
||
upload a directory | ||
|
||
#### Defined in | ||
|
||
[file-upload.ts:30](https://github.com/cisagov/RedEye/blob/9f9475cf/parsers/parser-core/src/parser-info/file-upload.ts#L30) | ||
|
||
___ | ||
|
||
### File | ||
|
||
• **File** = ``"File"`` | ||
|
||
upload a single file or a selection of multiple files | ||
Use this if data is in a single file like a json or csv or a selection of files like .pcap files | ||
|
||
#### Defined in | ||
|
||
[file-upload.ts:28](https://github.com/cisagov/RedEye/blob/9f9475cf/parsers/parser-core/src/parser-info/file-upload.ts#L28) |
47 changes: 47 additions & 0 deletions
47
docs/parser-guide/commands-api/info/enums/ValidationMode.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[@redeye/parser-core](../index.md) / ValidationMode | ||
|
||
# Enumeration: ValidationMode | ||
|
||
## Table of contents | ||
|
||
### Enumeration Members | ||
|
||
- [FileExtensions](ValidationMode.md#fileextensions) | ||
- [None](ValidationMode.md#none) | ||
- [Parser](ValidationMode.md#parser) | ||
|
||
## Enumeration Members | ||
|
||
### FileExtensions | ||
|
||
• **FileExtensions** = ``"FileExtensions"`` | ||
|
||
validate uploaded files in client by file extensions | ||
|
||
#### Defined in | ||
|
||
[upload-form.ts:61](https://github.com/cisagov/RedEye/blob/9f9475cf/parsers/parser-core/src/parser-info/upload-form.ts#L61) | ||
|
||
___ | ||
|
||
### None | ||
|
||
• **None** = ``"None"`` | ||
|
||
no validation | ||
|
||
#### Defined in | ||
|
||
[upload-form.ts:59](https://github.com/cisagov/RedEye/blob/9f9475cf/parsers/parser-core/src/parser-info/upload-form.ts#L59) | ||
|
||
___ | ||
|
||
### Parser | ||
|
||
• **Parser** = ``"Parser"`` | ||
|
||
validate uploaded files in server with parser, parser must implement "validate-files" command | ||
|
||
#### Defined in | ||
|
||
[upload-form.ts:63](https://github.com/cisagov/RedEye/blob/9f9475cf/parsers/parser-core/src/parser-info/upload-form.ts#L63) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@redeye/parser-core | ||
|
||
# @redeye/parser-core | ||
|
||
## Table of contents | ||
|
||
### Enumerations | ||
|
||
- [ServerDelineationTypes](enums/ServerDelineationTypes.md) | ||
- [UploadType](enums/UploadType.md) | ||
- [ValidationMode](enums/ValidationMode.md) | ||
|
||
### Interfaces | ||
|
||
- [FileDisplay](interfaces/FileDisplay.md) | ||
- [FileUpload](interfaces/FileUpload.md) | ||
- [ParserInfo](interfaces/ParserInfo.md) | ||
- [UploadForm](interfaces/UploadForm.md) | ||
|
||
### Type Aliases | ||
|
||
- [UploadValidation](index.md#uploadvalidation) | ||
|
||
## Type Aliases | ||
|
||
### UploadValidation | ||
|
||
Ƭ **UploadValidation**: { `validate`: [`None`](enums/ValidationMode.md#none) \| [`Parser`](enums/ValidationMode.md#parser) } \| { `acceptedExtensions`: `string`[] ; `validate`: [`FileExtensions`](enums/ValidationMode.md#fileextensions) } | ||
|
||
The validation mode for the upload form | ||
|
||
**`Example`** | ||
|
||
```ts | ||
// No validation, allow uploading any folder or files | ||
validate = { validate: ValidationMode.None } | ||
// Only allow files with specific file extensions | ||
validate = { validate: ValidationMode.FileExtensions, acceptedExtensions: ['txt', 'png', 'jpg'] } | ||
// The parser has implemented the 'validate-files' command and will validate the folder of files | ||
validate = { validate: ValidationMode.Parser } | ||
``` | ||
|
||
#### Defined in | ||
|
||
[upload-form.ts:76](https://github.com/cisagov/RedEye/blob/9f9475cf/parsers/parser-core/src/parser-info/upload-form.ts#L76) |
22 changes: 22 additions & 0 deletions
22
docs/parser-guide/commands-api/info/interfaces/FileDisplay.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[@redeye/parser-core](../index.md) / FileDisplay | ||
|
||
# Interface: FileDisplay | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [editable](FileDisplay.md#editable) | ||
|
||
## Properties | ||
|
||
### editable | ||
|
||
• **editable**: `boolean` | ||
|
||
Whether the names of the servers inferred from the uploaded files are editable | ||
A user may want to change the name of a server to something more descriptive | ||
|
||
#### Defined in | ||
|
||
[upload-form.ts:85](https://github.com/cisagov/RedEye/blob/9f9475cf/parsers/parser-core/src/parser-info/upload-form.ts#L85) |
Oops, something went wrong.