Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
6bfe0ef
Adding advanced features viewset to the v2 api version
Guitlle Dec 11, 2025
785e37b
Merge remote-tracking branch 'origin/refactor-subsequences-2025' into…
Guitlle Dec 11, 2025
1fd581e
fix drf warnings for subsequences
Guitlle Dec 11, 2025
a20d5d1
add subsequences action params schemas to api docs
Guitlle Dec 12, 2025
40e8f25
format python code
Guitlle Dec 12, 2025
dcd24ea
Merge remote-tracking branch 'origin/refactor-subsequences-2025' into…
Guitlle Dec 12, 2025
ef21718
add examples for the advanced features endpoint
Guitlle Dec 12, 2025
f2bab57
add fixme comment for default versioning
Guitlle Dec 12, 2025
ba93833
update schema outputs
Guitlle Dec 12, 2025
1945b5f
fix params schemas for advanced features API docs
Guitlle Dec 13, 2025
0927690
update schema outputs and fix qual component name
Guitlle Dec 13, 2025
d921800
Merge branch 'refactor-subsequences-2025' into dev-1230-openapi-schem…
noliveleger Dec 14, 2025
8a3477d
fix lookup field kwarg name for advanced features API
Guitlle Dec 15, 2025
9fe4d98
fix details about required params for choice select questions
Guitlle Dec 15, 2025
7dc77fb
update examples and descriptions for advanced features openapi docs
Guitlle Dec 15, 2025
9b43dbe
generate schema output files
Guitlle Dec 15, 2025
2132cd6
not using cls methods anymore, due to use of auto_schema, keeping con…
Guitlle Dec 15, 2025
451a6fa
fix(subsequences): wrong url paramters in unit tests
noliveleger Dec 15, 2025
79fc8c1
fix: use only application/json
noliveleger Dec 15, 2025
58431aa
add examples for the retrieve action
Guitlle Dec 15, 2025
e1a16fb
update schema output files
Guitlle Dec 15, 2025
086a62e
reuse examples from create and list for the patch examples
Guitlle Dec 15, 2025
715ab5c
fix example, set request_only for example case
Guitlle Dec 15, 2025
e4d003a
update docs and output schema files
Guitlle Dec 15, 2025
ee583ec
remove from examples the translated labels because it's not supported…
Guitlle Dec 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ The endpoints are grouped by area of intended use. Each category contains relate
**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/
import type { NLPActionParams } from './nLPActionParams'
import type { QualActionParams } from './qualActionParams'

export type AdvancedFeaturePostRequestParamsItem = { [key: string]: unknown }
export type AdvancedFeaturePostRequestParamsItem = NLPActionParams | QualActionParams
4 changes: 3 additions & 1 deletion jsapp/js/api/models/advancedFeatureResponseParamsItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ The endpoints are grouped by area of intended use. Each category contains relate
**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/
import type { NLPActionParams } from './nLPActionParams'
import type { QualActionParams } from './qualActionParams'

export type AdvancedFeatureResponseParamsItem = { [key: string]: unknown }
export type AdvancedFeatureResponseParamsItem = NLPActionParams | QualActionParams
14 changes: 14 additions & 0 deletions jsapp/js/api/models/nLPActionParams.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).
The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.
**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/
import type { NLPActionParamsItem } from './nLPActionParamsItem'

export type NLPActionParams = NLPActionParamsItem[]
15 changes: 15 additions & 0 deletions jsapp/js/api/models/nLPActionParamsItem.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).

The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.

**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/

export type NLPActionParamsItem = {
language: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ The endpoints are grouped by area of intended use. Each category contains relate
**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/
import type { NLPActionParams } from './nLPActionParams'
import type { QualActionParams } from './qualActionParams'

export type PatchedAdvancedFeaturePatchRequestParamsItem = { [key: string]: unknown }
export type PatchedAdvancedFeaturePatchRequestParamsItem = NLPActionParams | QualActionParams
14 changes: 14 additions & 0 deletions jsapp/js/api/models/qualActionParams.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).
The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.
**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/
import type { QualActionParamsItem } from './qualActionParamsItem'

export type QualActionParams = QualActionParamsItem[]
15 changes: 15 additions & 0 deletions jsapp/js/api/models/qualActionParamsItem.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { QualSelectQuestionParams } from './qualSelectQuestionParams'
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).

The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.

**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/
import type { QualSimpleQuestionParams } from './qualSimpleQuestionParams'

export type QualActionParamsItem = QualSimpleQuestionParams | QualSelectQuestionParams
23 changes: 23 additions & 0 deletions jsapp/js/api/models/qualSelectQuestionParams.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import type { QualSelectQuestionParamsChoicesItem } from './qualSelectQuestionParamsChoicesItem'
import type { QualSelectQuestionParamsLabels } from './qualSelectQuestionParamsLabels'
import type { QualSelectQuestionParamsOptions } from './qualSelectQuestionParamsOptions'
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).

The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.

**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/
import type { QualSelectQuestionParamsTypeEnum } from './qualSelectQuestionParamsTypeEnum'

export interface QualSelectQuestionParams {
uuid: string
type: QualSelectQuestionParamsTypeEnum
labels: QualSelectQuestionParamsLabels
choices: QualSelectQuestionParamsChoicesItem[]
options?: QualSelectQuestionParamsOptions
}
19 changes: 19 additions & 0 deletions jsapp/js/api/models/qualSelectQuestionParamsChoicesItem.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).

The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.

**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/
import type { QualSelectQuestionParamsChoicesItemLabels } from './qualSelectQuestionParamsChoicesItemLabels'
import type { QualSelectQuestionParamsChoicesItemOptions } from './qualSelectQuestionParamsChoicesItemOptions'

export type QualSelectQuestionParamsChoicesItem = {
labels: QualSelectQuestionParamsChoicesItemLabels
uuid: string
options?: QualSelectQuestionParamsChoicesItemOptions
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).
The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.
**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/

export type QualSelectQuestionParamsChoicesItemLabels = { [key: string]: string }
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).

The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.

**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/

export type QualSelectQuestionParamsChoicesItemOptions = { [key: string]: unknown }
13 changes: 13 additions & 0 deletions jsapp/js/api/models/qualSelectQuestionParamsLabels.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).
The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.
**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/

export type QualSelectQuestionParamsLabels = { [key: string]: string }
13 changes: 13 additions & 0 deletions jsapp/js/api/models/qualSelectQuestionParamsOptions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).
The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.
**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/

export type QualSelectQuestionParamsOptions = { [key: string]: unknown }
20 changes: 20 additions & 0 deletions jsapp/js/api/models/qualSelectQuestionParamsTypeEnum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).
The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.
**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/

export type QualSelectQuestionParamsTypeEnum =
(typeof QualSelectQuestionParamsTypeEnum)[keyof typeof QualSelectQuestionParamsTypeEnum]

// eslint-disable-next-line @typescript-eslint/no-redeclare
export const QualSelectQuestionParamsTypeEnum = {
qualSelectMultiple: 'qualSelectMultiple',
qualSelectOne: 'qualSelectOne',
} as const
21 changes: 21 additions & 0 deletions jsapp/js/api/models/qualSimpleQuestionParams.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { QualSimpleQuestionParamsLabels } from './qualSimpleQuestionParamsLabels'
import type { QualSimpleQuestionParamsOptions } from './qualSimpleQuestionParamsOptions'
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).

The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.

**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/
import type { QualSimpleQuestionParamsTypeEnum } from './qualSimpleQuestionParamsTypeEnum'

export interface QualSimpleQuestionParams {
uuid: string
type: QualSimpleQuestionParamsTypeEnum
labels: QualSimpleQuestionParamsLabels
options?: QualSimpleQuestionParamsOptions
}
13 changes: 13 additions & 0 deletions jsapp/js/api/models/qualSimpleQuestionParamsLabels.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).

The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.

**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/

export type QualSimpleQuestionParamsLabels = { [key: string]: string }
13 changes: 13 additions & 0 deletions jsapp/js/api/models/qualSimpleQuestionParamsOptions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).
The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.
**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/

export type QualSimpleQuestionParamsOptions = { [key: string]: unknown }
22 changes: 22 additions & 0 deletions jsapp/js/api/models/qualSimpleQuestionParamsTypeEnum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
* KoboToolbox Primary API
* This page documents all KoboToolbox API endpoints, except for those implementing the OpenRosa protocol, which are [documented separately](/api/openrosa/docs/).

The endpoints are grouped by area of intended use. Each category contains related endpoints, with detailed documentation on usage and configuration. Use this as a reference to quickly find the right endpoint for managing projects, forms, data, permissions, integrations, logs, and organizational resources.

**General note**: All projects (whether deployed or draft), as well as all library content (questions, blocks, templates, and collections) in the user-facing application are represented in the API as "assets".
* OpenAPI spec version: 2.0.0 (api_v2)
*/

export type QualSimpleQuestionParamsTypeEnum =
(typeof QualSimpleQuestionParamsTypeEnum)[keyof typeof QualSimpleQuestionParamsTypeEnum]

// eslint-disable-next-line @typescript-eslint/no-redeclare
export const QualSimpleQuestionParamsTypeEnum = {
qualInteger: 'qualInteger',
qualTags: 'qualTags',
qualText: 'qualText',
qualNote: 'qualNote',
} as const
Loading