Skip to content

Commit

Permalink
(chore) Add capturedFromWebcam property to UploadedFile interface
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Jan 8, 2025
1 parent 594b411 commit 4b828fa
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 13 deletions.
1 change: 1 addition & 0 deletions packages/framework/esm-api/src/types/attachments-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export interface UploadedFile {
fileType: string;
fileDescription: string;
status?: 'uploading' | 'complete';
capturedFromWebcam?: boolean;
}

export interface Attachment {
Expand Down
14 changes: 7 additions & 7 deletions packages/framework/esm-framework/docs/interfaces/Attachment.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L16)
[packages/framework/esm-api/src/types/attachments-types.ts:17](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L17)

___

Expand All @@ -32,7 +32,7 @@ ___

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:15](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L15)
[packages/framework/esm-api/src/types/attachments-types.ts:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L16)

___

Expand All @@ -42,7 +42,7 @@ ___

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:14](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L14)
[packages/framework/esm-api/src/types/attachments-types.ts:15](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L15)

___

Expand All @@ -52,7 +52,7 @@ ___

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:17](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L17)
[packages/framework/esm-api/src/types/attachments-types.ts:18](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L18)

___

Expand All @@ -62,7 +62,7 @@ ___

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:13](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L13)
[packages/framework/esm-api/src/types/attachments-types.ts:14](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L14)

___

Expand All @@ -72,7 +72,7 @@ ___

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:11](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L11)
[packages/framework/esm-api/src/types/attachments-types.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L12)

___

Expand All @@ -82,4 +82,4 @@ ___

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L12)
[packages/framework/esm-api/src/types/attachments-types.ts:13](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L13)
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:21](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L21)
[packages/framework/esm-api/src/types/attachments-types.ts:22](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L22)

___

Expand All @@ -31,7 +31,7 @@ ___

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:22](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L22)
[packages/framework/esm-api/src/types/attachments-types.ts:23](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L23)

___

Expand All @@ -41,7 +41,7 @@ ___

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:23](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L23)
[packages/framework/esm-api/src/types/attachments-types.ts:24](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L24)

___

Expand All @@ -51,7 +51,7 @@ ___

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:24](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L24)
[packages/framework/esm-api/src/types/attachments-types.ts:25](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L25)

___

Expand All @@ -61,7 +61,7 @@ ___

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:26](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L26)
[packages/framework/esm-api/src/types/attachments-types.ts:27](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L27)

___

Expand All @@ -71,4 +71,4 @@ ___

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:25](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L25)
[packages/framework/esm-api/src/types/attachments-types.ts:26](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L26)
11 changes: 11 additions & 0 deletions packages/framework/esm-framework/docs/interfaces/UploadedFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### Properties

- [base64Content](UploadedFile.md#base64content)
- [capturedFromWebcam](UploadedFile.md#capturedfromwebcam)
- [file](UploadedFile.md#file)
- [fileDescription](UploadedFile.md#filedescription)
- [fileName](UploadedFile.md#filename)
Expand All @@ -25,6 +26,16 @@

___

### capturedFromWebcam

`Optional` **capturedFromWebcam**: `boolean`

#### Defined in

[packages/framework/esm-api/src/types/attachments-types.ts:8](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L8)

___

### file

`Optional` **file**: `File`
Expand Down

0 comments on commit 4b828fa

Please sign in to comment.