Skip to content
Merged
2 changes: 1 addition & 1 deletion oclif.manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.21.0",
"version": "5.21.1",
"commands": {
"authCommand": {
"id": "authCommand",
Expand Down
14 changes: 12 additions & 2 deletions src/api/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,21 @@ export const fetchFeatures = async (
token: string,
project_id: string,
queries: {
feature?: string
page?: number
perPage?: number
sortBy?:
| 'createdAt'
| 'updatedAt'
| 'name'
| 'key'
| 'createdBy'
| 'propertyKey'
sortOrder?: 'asc' | 'desc'
search?: string
staleness?: string
staleness?: 'all' | 'unused' | 'released' | 'unmodified' | 'notStale'
createdBy?: string
type?: 'release' | 'experiment' | 'permission' | 'ops'
status?: 'active' | 'complete' | 'archived'
} = {},
): Promise<Feature[]> => {
const response = await apiClient.get(FEATURE_URL, {
Expand Down
12 changes: 11 additions & 1 deletion src/api/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,20 @@ export const fetchVariables = async (
token: string,
project_id: string,
queries: {
feature?: string
page?: number
perPage?: number
sortBy?:
| 'createdAt'
| 'updatedAt'
| 'name'
| 'key'
| 'createdBy'
| 'propertyKey'
sortOrder?: 'asc' | 'desc'
search?: string
feature?: string
type?: 'String' | 'Boolean' | 'Number' | 'JSON'
status?: 'active' | 'archived'
} = {},
) => {
return await apiClient.get('/v1/projects/:project/variables', {
Expand Down
Loading