wwf
2025-05-20 938c3e5a587ce950a94964ea509b9e7f8834dfae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import type { Plugin } from '../types'
 
export type SearchParamsFromCollection = {
  query?: string
  sort_by?: string
  sort_order?: string
}
 
export type MarketplaceCollection = {
  name: string
  label: Record<string, string>
  description: Record<string, string>
  rule: string
  created_at: string
  updated_at: string
  searchable?: boolean
  search_params?: SearchParamsFromCollection
}
 
export type MarketplaceCollectionsResponse = {
  collections: MarketplaceCollection[]
  total: number
}
 
export type MarketplaceCollectionPluginsResponse = {
  plugins: Plugin[]
  total: number
}
 
export type PluginsSearchParams = {
  query: string
  page?: number
  pageSize?: number
  sortBy?: string
  sortOrder?: string
  category?: string
  tags?: string[]
  exclude?: string[]
  type?: 'plugin' | 'bundle'
}
 
export type PluginsSort = {
  sortBy: string
  sortOrder: string
}
 
export type CollectionsAndPluginsSearchParams = {
  category?: string
  condition?: string
  exclude?: string[]
  type?: 'plugin' | 'bundle'
}
 
export type SearchParams = {
  language?: string
  q?: string
  tags?: string
  category?: string
}