Skip to content
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
75062ef
fix drf errors
RuthTurk Dec 8, 2025
0b6e61d
fix biome formatting
RuthTurk Dec 9, 2025
d11c59e
fix(openAPI): make supplement detail action use "root_uuid" as unique…
noliveleger Dec 10, 2025
0ac5a40
fix(auditLogs): support "root_uuid" lookup in supplement endpoint
noliveleger Dec 10, 2025
54ebe8e
docs: update OpenAPI schemas and Orval query helpers
noliveleger Dec 10, 2025
2d0f13e
style: linter
noliveleger Dec 10, 2025
260ef3c
Merge branch 'refactor-subsequences-2025' into ruthturk/dev-1431
RuthTurk Dec 10, 2025
01632e4
add parameter for root_uuid
RuthTurk Dec 10, 2025
7689302
docs(openAPI): update schemas
noliveleger Dec 10, 2025
bc2192e
fix: add `qual` result schema to OpenAPI response schema
noliveleger Dec 10, 2025
96b31aa
fix(openAPI): add schema and example for qualitative analysis for sup…
noliveleger Dec 10, 2025
12d104b
fix(openAPI): generate schemas and Orval helpers
noliveleger Dec 10, 2025
992bbb7
add schema for NLP for supplement endpoint
RuthTurk Dec 11, 2025
d000584
fix biome and orval styling issues
RuthTurk Dec 11, 2025
c53b774
fix imports
RuthTurk Dec 11, 2025
8b66a63
fix: improve OpenAPI examples for supplement endpoint
noliveleger Dec 11, 2025
5cf1bc8
fix: automated actions
noliveleger Dec 11, 2025
dee3638
style: linter
noliveleger Dec 11, 2025
b4ab39f
fixing schema errors
RuthTurk Dec 11, 2025
2892293
Merge branch 'ruthturk/dev-1431' of https://github.com/kobotoolbox/kp…
RuthTurk Dec 11, 2025
24f4262
fix quotes
RuthTurk Dec 11, 2025
db6301c
Merge branch 'refactor-subsequences-2025' into ruthturk/dev-1431
noliveleger Dec 11, 2025
c04c8b9
fix: make OpenAPI examples accurate
noliveleger Dec 11, 2025
3a5e5b9
Merge branch 'ruthturk/dev-1431' of github.com:kobotoolbox/kpi into r…
noliveleger Dec 11, 2025
f7f3d83
fix: use different timestamp in examples
noliveleger Dec 11, 2025
538ee20
fix: update OpenAPI schemas and Orval helpers
noliveleger Dec 12, 2025
3ee2476
fix schema errors and biome formatting
RuthTurk Dec 12, 2025
30de9bf
Merge branch 'refactor-subsequences-2025' of https://github.com/kobot…
RuthTurk Dec 12, 2025
72fac69
fix imports sorting causing biome failures
RuthTurk Dec 12, 2025
8a3dd45
Merge branch 'refactor-subsequences-2025' into ruthturk/dev-1431
noliveleger Dec 12, 2025
d95f369
Merge branch 'ruthturk/dev-1431' of github.com:kobotoolbox/kpi into r…
noliveleger Dec 12, 2025
7f58262
fix: update schema to support dynamic question names
noliveleger Dec 12, 2025
abc568a
docs: update markdowns
noliveleger Dec 12, 2025
5149035
style: linter
noliveleger Dec 12, 2025
c5f8e2f
fix: update OpenAPI schemas and Orval helpers
noliveleger Dec 12, 2025
7878f9b
fix: remove debug comment
noliveleger Dec 13, 2025
5996714
fix: fix Orval TS generation for dynamic keys
noliveleger Dec 13, 2025
e3d9a94
fix: only register new components
noliveleger Dec 13, 2025
895246c
fix: use hook to add missing imports for Orval
noliveleger Dec 13, 2025
c42961d
fix: cleanup
noliveleger Dec 13, 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
18 changes: 18 additions & 0 deletions jsapp/js/api/models/advancedFeaturePostRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* 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 { AdvancedFeaturePostRequestParamsItem } from './advancedFeaturePostRequestParamsItem'

export interface AdvancedFeaturePostRequest {
question_xpath: string
action: string
params: AdvancedFeaturePostRequestParamsItem[]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ The endpoints are grouped by area of intended use. Each category contains relate
* OpenAPI spec version: 2.0.0 (api_v2)
*/

export type AssetAdvancedSubmissionSchema = {
readonly type?: string
readonly $description?: string
}
export type AdvancedFeaturePostRequestParamsItem = { [key: string]: unknown }
20 changes: 20 additions & 0 deletions jsapp/js/api/models/advancedFeatureResponse.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)
*/
import type { AdvancedFeatureResponseParamsItem } from './advancedFeatureResponseParamsItem'

export interface AdvancedFeatureResponse {
question_xpath: string
action: string
params: AdvancedFeatureResponseParamsItem[]
asset: string
uid: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ The endpoints are grouped by area of intended use. Each category contains relate
* OpenAPI spec version: 2.0.0 (api_v2)
*/

export type AssetAnalysisFormJsonEngines = { [key: string]: unknown }
export type AdvancedFeatureResponseParamsItem = { [key: string]: unknown }
4 changes: 1 addition & 3 deletions jsapp/js/api/models/asset.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { AssetAdvancedFeatures } from './assetAdvancedFeatures'
import type { AssetAdvancedSubmissionSchema } from './assetAdvancedSubmissionSchema'
import type { AssetAnalysisFormJson } from './assetAnalysisFormJson'
import type { AssetAssignablePermissionsItem } from './assetAssignablePermissionsItem'
import type { AssetChildren } from './assetChildren'
Expand Down Expand Up @@ -64,13 +63,12 @@ export interface Asset {
report_styles?: AssetReportStyles
report_custom?: AssetReportCustom
advanced_features?: AssetAdvancedFeatures
readonly advanced_submission_schema: AssetAdvancedSubmissionSchema
readonly analysis_form_json: AssetAnalysisFormJson
map_styles?: AssetMapStyles
map_custom?: AssetMapCustom
content?: AssetContent
readonly downloads: readonly AssetDownloadsItem[]
readonly embeds: readonly AssetEmbedsItem[]
readonly analysis_form_json: AssetAnalysisFormJson
readonly xform_link: string
readonly hooks_link: string
tag_string?: string
Expand Down
2 changes: 0 additions & 2 deletions jsapp/js/api/models/assetAnalysisFormJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +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 { AssetAnalysisFormJsonEngines } from './assetAnalysisFormJsonEngines'

export type AssetAnalysisFormJson = {
readonly engines?: AssetAnalysisFormJsonEngines
readonly additional_fields?: string[]
}
51 changes: 51 additions & 0 deletions jsapp/js/api/models/dataSupplementResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**
* 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 interface DataSupplementResponse {
_version: string

Check failure on line 14 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (22)

Property '_version' of type 'string' is not assignable to 'string' index type '{ manual_transcription?: any; manual_translation?: any; automated_google_transcription?: any; automated_google_translation?: any; qual?: any; } | { manual_transcription?: any; manual_translation?: any; automated_google_transcription?: any; automated_google_translation?: any; qual?: any; } | { ...; } | { ...; } | { ....'.

Check failure on line 14 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (20.18.1)

Property '_version' of type 'string' is not assignable to 'string' index type '{ manual_transcription?: any; manual_translation?: any; automated_google_transcription?: any; automated_google_translation?: any; qual?: any; } | { manual_transcription?: any; manual_translation?: any; automated_google_transcription?: any; automated_google_translation?: any; qual?: any; } | { ...; } | { ...; } | { ....'.
[key: string]:
| (unknown & {
manual_transcription?: DataSupplementResponseManualTranscription

Check failure on line 17 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (22)

Cannot find name 'DataSupplementResponseManualTranscription'.

Check failure on line 17 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (20.18.1)

Cannot find name 'DataSupplementResponseManualTranscription'.
manual_translation?: DataSupplementResponseManualTranslation

Check failure on line 18 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (22)

Cannot find name 'DataSupplementResponseManualTranslation'.

Check failure on line 18 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (20.18.1)

Cannot find name 'DataSupplementResponseManualTranslation'.
automated_google_transcription?: DataSupplementResponseAutomatedGoogleTranscription

Check failure on line 19 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (22)

Cannot find name 'DataSupplementResponseAutomatedGoogleTranscription'.

Check failure on line 19 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (20.18.1)

Cannot find name 'DataSupplementResponseAutomatedGoogleTranscription'.
automated_google_translation?: DataSupplementResponseAutomatedGoogleTranslation

Check failure on line 20 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (22)

Cannot find name 'DataSupplementResponseAutomatedGoogleTranslation'.

Check failure on line 20 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (20.18.1)

Cannot find name 'DataSupplementResponseAutomatedGoogleTranslation'.
qual?: DataSupplementResponseQual

Check failure on line 21 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (22)

Cannot find name 'DataSupplementResponseQual'.

Check failure on line 21 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (20.18.1)

Cannot find name 'DataSupplementResponseQual'.
})
| (unknown & {
manual_transcription?: DataSupplementResponseManualTranscription

Check failure on line 24 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (22)

Cannot find name 'DataSupplementResponseManualTranscription'.

Check failure on line 24 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (20.18.1)

Cannot find name 'DataSupplementResponseManualTranscription'.
manual_translation?: DataSupplementResponseManualTranslation

Check failure on line 25 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (22)

Cannot find name 'DataSupplementResponseManualTranslation'.

Check failure on line 25 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (20.18.1)

Cannot find name 'DataSupplementResponseManualTranslation'.
automated_google_transcription?: DataSupplementResponseAutomatedGoogleTranscription

Check failure on line 26 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (22)

Cannot find name 'DataSupplementResponseAutomatedGoogleTranscription'.

Check failure on line 26 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (20.18.1)

Cannot find name 'DataSupplementResponseAutomatedGoogleTranscription'.
automated_google_translation?: DataSupplementResponseAutomatedGoogleTranslation

Check failure on line 27 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (22)

Cannot find name 'DataSupplementResponseAutomatedGoogleTranslation'.

Check failure on line 27 in jsapp/js/api/models/dataSupplementResponse.ts

View workflow job for this annotation

GitHub Actions / npm-test / build (20.18.1)

Cannot find name 'DataSupplementResponseAutomatedGoogleTranslation'.
qual?: DataSupplementResponseQual
})
| (unknown & {
manual_transcription?: DataSupplementResponseManualTranscription
manual_translation?: DataSupplementResponseManualTranslation
automated_google_transcription?: DataSupplementResponseAutomatedGoogleTranscription
automated_google_translation?: DataSupplementResponseAutomatedGoogleTranslation
qual?: DataSupplementResponseQual
})
| (unknown & {
manual_transcription?: DataSupplementResponseManualTranscription
manual_translation?: DataSupplementResponseManualTranslation
automated_google_transcription?: DataSupplementResponseAutomatedGoogleTranscription
automated_google_translation?: DataSupplementResponseAutomatedGoogleTranslation
qual?: DataSupplementResponseQual
})
| (unknown & {
manual_transcription?: DataSupplementResponseManualTranscription
manual_translation?: DataSupplementResponseManualTranslation
automated_google_transcription?: DataSupplementResponseAutomatedGoogleTranscription
automated_google_translation?: DataSupplementResponseAutomatedGoogleTranslation
qual?: DataSupplementResponseQual
})
}
16 changes: 16 additions & 0 deletions jsapp/js/api/models/patchedAdvancedFeaturePatchRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* 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 { PatchedAdvancedFeaturePatchRequestParamsItem } from './patchedAdvancedFeaturePatchRequestParamsItem'

export interface PatchedAdvancedFeaturePatchRequest {
params?: PatchedAdvancedFeaturePatchRequestParamsItem[]
}
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 PatchedAdvancedFeaturePatchRequestParamsItem = { [key: string]: unknown }
51 changes: 51 additions & 0 deletions jsapp/js/api/models/patchedDataSupplementPayload.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**
* 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 interface PatchedDataSupplementPayload {
_version: string
[key: string]:
| (unknown & {
manual_transcription?: PatchedDataSupplementPayloadManualTranscription
manual_translation?: PatchedDataSupplementPayloadManualTranslation
automatic_google_transcription?: PatchedDataSupplementPayloadAutomaticGoogleTranscription
automatic_google_translation?: PatchedDataSupplementPayloadAutomaticGoogleTranslation
qual?: PatchedDataSupplementPayloadQual
})
| (unknown & {
manual_transcription?: PatchedDataSupplementPayloadManualTranscription
manual_translation?: PatchedDataSupplementPayloadManualTranslation
automatic_google_transcription?: PatchedDataSupplementPayloadAutomaticGoogleTranscription
automatic_google_translation?: PatchedDataSupplementPayloadAutomaticGoogleTranslation
qual?: PatchedDataSupplementPayloadQual
})
| (unknown & {
manual_transcription?: PatchedDataSupplementPayloadManualTranscription
manual_translation?: PatchedDataSupplementPayloadManualTranslation
automatic_google_transcription?: PatchedDataSupplementPayloadAutomaticGoogleTranscription
automatic_google_translation?: PatchedDataSupplementPayloadAutomaticGoogleTranslation
qual?: PatchedDataSupplementPayloadQual
})
| (unknown & {
manual_transcription?: PatchedDataSupplementPayloadManualTranscription
manual_translation?: PatchedDataSupplementPayloadManualTranslation
automatic_google_transcription?: PatchedDataSupplementPayloadAutomaticGoogleTranscription
automatic_google_translation?: PatchedDataSupplementPayloadAutomaticGoogleTranslation
qual?: PatchedDataSupplementPayloadQual
})
| (unknown & {
manual_transcription?: PatchedDataSupplementPayloadManualTranscription
manual_translation?: PatchedDataSupplementPayloadManualTranslation
automatic_google_transcription?: PatchedDataSupplementPayloadAutomaticGoogleTranscription
automatic_google_translation?: PatchedDataSupplementPayloadAutomaticGoogleTranslation
qual?: PatchedDataSupplementPayloadQual
})
}
Loading