CloudSnippetSchema.ts in Code Snippets 3.10.2, at js/types/schema/CloudSnippetSchema.ts
| 1 | import type { SnippetScope } from '../Snippet' |
| 2 | |
| 3 | export interface CloudSnippetSchema { |
| 4 | id: number |
| 5 | slug: string |
| 6 | name: string |
| 7 | description: string |
| 8 | code: string |
| 9 | tags: string[] |
| 10 | scope: SnippetScope |
| 11 | codevault: string |
| 12 | total_votes: number |
| 13 | vote_count: number |
| 14 | wp_tested: string |
| 15 | status: CloudStatus |
| 16 | created: string |
| 17 | updated: string |
| 18 | revision: number |
| 19 | is_owner: boolean |
| 20 | local_id?: number | null |
| 21 | update_available?: boolean | null |
| 22 | } |
| 23 | |
| 24 | export enum CloudStatus { |
| 25 | Private = 3, |
| 26 | Public = 4, |
| 27 | Unverified = 5, |
| 28 | AI_Verified = 6, |
| 29 | Pro_Verified = 8 |
| 30 | } |
| 31 |