| 1 |
import type { SnippetScope } from '../Snippet' |
| 2 |
|
| 3 |
export interface WritableSnippetSchema { |
| 4 |
name?: string |
| 5 |
desc?: string |
| 6 |
code?: string |
| 7 |
tags?: string[] |
| 8 |
scope?: SnippetScope |
| 9 |
condition_id?: number |
| 10 |
active?: boolean |
| 11 |
locked?: boolean |
| 12 |
trashed?: boolean |
| 13 |
priority?: number |
| 14 |
shared_network?: boolean | null |
| 15 |
} |
| 16 |
|
| 17 |
export interface SnippetIdentifierSchema { |
| 18 |
readonly id: number |
| 19 |
readonly network?: boolean | null |
| 20 |
} |
| 21 |
|
| 22 |
export interface SnippetSchema extends Readonly<Required<WritableSnippetSchema>>, SnippetIdentifierSchema { |
| 23 |
readonly id: number |
| 24 |
readonly modified: string |
| 25 |
readonly last_active?: number |
| 26 |
readonly trashed: boolean |
| 27 |
readonly code_error?: readonly [string, number] | null |
| 28 |
readonly code_error_trace?: string | null |
| 29 |
readonly revision: string |
| 30 |
readonly cloud_id: number |
| 31 |
readonly is_cloud_owner: boolean |
| 32 |
} |
| 33 |
|