Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
27f76ef
wip orval msw generate
magicznyleszek Jul 6, 2026
6c5b738
fix date_created and date_modified mismatch
magicznyleszek Jul 6, 2026
c16f357
fix asset content choices and summary name quality schemas missing
magicznyleszek Jul 6, 2026
963f6a9
drop some type casting
magicznyleszek Jul 6, 2026
96c1b54
fix missing kuid in mock data
magicznyleszek Jul 6, 2026
6d5cf3b
fix schema for translation so null is possible
magicznyleszek Jul 6, 2026
9bfc3b1
fix date_deployed in legacy type
magicznyleszek Jul 6, 2026
e6d79f8
make settings sector nullable in schema
magicznyleszek Jul 6, 2026
4049e3f
fix sector more
magicznyleszek Jul 6, 2026
4eb52af
fix asset settings country schema
magicznyleszek Jul 6, 2026
290ce65
make country nullable in schema
magicznyleszek Jul 6, 2026
2bca9f5
fix legacy type
magicznyleszek Jul 6, 2026
c86a4f5
fix more schema for asset settings
magicznyleszek Jul 6, 2026
4263484
improve asset files schema
magicznyleszek Jul 6, 2026
97b4051
fix languages
magicznyleszek Jul 6, 2026
f52da48
more schema improvements
magicznyleszek Jul 6, 2026
5f1f9a0
simplify mock data in tests
magicznyleszek Jul 6, 2026
f121456
make previous and next nullable
magicznyleszek Jul 6, 2026
e8d3805
few more improvements
magicznyleszek Jul 6, 2026
560c360
improve additional_fields schema
magicznyleszek Jul 6, 2026
a90d18b
fix deployment__data_download_links type
magicznyleszek Jul 6, 2026
8e5638e
improve types further
magicznyleszek Jul 6, 2026
380fce6
schema improvement
magicznyleszek Jul 6, 2026
0eef9ff
improve additional_fields schema
magicznyleszek Jul 6, 2026
747af78
fix naming_conflicts schema
magicznyleszek Jul 6, 2026
6367536
improve additional fields schem
magicznyleszek Jul 6, 2026
6eadb73
improve schema
magicznyleszek Jul 6, 2026
052d825
improve schema for deployment__uuid
magicznyleszek Jul 6, 2026
3b84fe3
fix schema for asset deployed version results item
magicznyleszek Jul 6, 2026
ed700e1
fix legacy deployment__uuid type
magicznyleszek Jul 6, 2026
f1462c5
fix deployment__data_download_links schema
magicznyleszek Jul 6, 2026
7f550ff
improve legacy deployment_status types
magicznyleszek Jul 6, 2026
d564284
improve downloads schema
magicznyleszek Jul 6, 2026
69d7279
improve report styles schema
magicznyleszek Jul 6, 2026
cbe5e18
improved advanced features schema
magicznyleszek Jul 6, 2026
a5ef70f
qual schema improvement
magicznyleszek Jul 6, 2026
be4985d
map styles schema
magicznyleszek Jul 6, 2026
2f44032
survey row and choice schema
magicznyleszek Jul 6, 2026
1c73d49
post schema fixes
magicznyleszek Jul 6, 2026
d9e66a3
assignable permissions schema
magicznyleszek Jul 6, 2026
9424c42
asset permissions schema
magicznyleszek Jul 6, 2026
7e37f13
make access type nullable in schema
magicznyleszek Jul 6, 2026
d89a7a7
fix legacy paired_data type
magicznyleszek Jul 6, 2026
e84ac8b
fix project transfer asset detail type
magicznyleszek Jul 6, 2026
c52d0b9
safecheck date
magicznyleszek Jul 6, 2026
1457bd5
simplify and orvalify lockingUtils mock data
magicznyleszek Jul 6, 2026
e8bfc75
orvalify AttachmentActionsDropdown mocks
magicznyleszek Jul 6, 2026
23af0b5
fix more errors
magicznyleszek Jul 6, 2026
5ed8cd0
fix orval mock generated code
magicznyleszek Jul 6, 2026
7553830
fix errors in msw mocks
magicznyleszek Jul 6, 2026
a0259b6
almost final fixes
magicznyleszek Jul 6, 2026
a4d6d12
last error fix
magicznyleszek Jul 6, 2026
7a9cc19
fix unit tests
magicznyleszek Jul 6, 2026
90d0262
fix tests
magicznyleszek Jul 7, 2026
f2e21f3
cleanups
magicznyleszek Jul 7, 2026
e884977
cleanup todo comments
magicznyleszek Jul 7, 2026
e20aa1d
biome fixes
magicznyleszek Jul 7, 2026
a2c827e
biome fix
magicznyleszek Jul 7, 2026
451b6f9
fix darker
magicznyleszek Jul 7, 2026
30722de
improve tests
magicznyleszek Jul 7, 2026
a17c13d
bring back comments, simplify tests
magicznyleszek Jul 7, 2026
fba24fa
biome fix
magicznyleszek Jul 7, 2026
b64ea10
fix darker
magicznyleszek Jul 7, 2026
a97ccb2
Update jsapp/js/components/modalForms/LibraryAssetForm.tsx
magicznyleszek Jul 7, 2026
ec0673d
cr fixes
magicznyleszek Jul 7, 2026
2d27395
Merge branch 'leszek/dev-2232-orval-msw-gen' of github.com:kobotoolbo…
magicznyleszek Jul 7, 2026
c4d2eae
cr fix
magicznyleszek Jul 7, 2026
5febed4
darker fix
magicznyleszek Jul 7, 2026
79710f4
cr fix
magicznyleszek Jul 7, 2026
f02ae85
comment
magicznyleszek Jul 7, 2026
c9c6e54
improve be schemas
magicznyleszek Jul 7, 2026
33ad561
fix darker
magicznyleszek Jul 7, 2026
c22fa78
cr fix
magicznyleszek Jul 7, 2026
749e318
separate mocks
magicznyleszek Jul 7, 2026
3b9c8ea
fix imports
magicznyleszek Jul 7, 2026
e6b1562
fix filenames
magicznyleszek Jul 7, 2026
9671349
run biome on generated orval files
magicznyleszek Jul 7, 2026
a2aeea9
fix tests
magicznyleszek Jul 7, 2026
07e0e08
Merge branch 'main' into leszek/dev-2232-orval-msw-gen
magicznyleszek Jul 7, 2026
9e85079
fix tests (more)
magicznyleszek Jul 7, 2026
1e34e0e
Merge branch 'leszek/dev-2232-orval-msw-gen' of github.com:kobotoolbo…
magicznyleszek Jul 7, 2026
d63d251
cr fix
magicznyleszek Jul 7, 2026
ffe1034
regenerate orval
magicznyleszek Jul 7, 2026
81b479c
fix test
magicznyleszek Jul 7, 2026
4b4c970
fix failing storybook test
magicznyleszek Jul 7, 2026
e44f0c6
Merge remote-tracking branch 'origin/main' into leszek/dev-2232-orval…
Copilot Jul 13, 2026
9a4ad80
add missing factory fn
magicznyleszek Jul 13, 2026
6dae720
rebuild orval
magicznyleszek Jul 13, 2026
c644709
Merge remote-tracking branch 'origin/main' into leszek/dev-2232-orval…
Copilot Jul 13, 2026
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
12 changes: 12 additions & 0 deletions jsapp/jest/setupUnitTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ import $ from 'jquery'
Object.defineProperty(globalThis, 'TextEncoder', { value: TextEncoder, configurable: true })
Object.defineProperty(globalThis, 'TextDecoder', { value: TextDecoder, configurable: true })

// MSW needs BroadcastChannel for WebSocket mocking
if (typeof globalThis.BroadcastChannel === 'undefined') {
// @ts-expect-error: Minimal polyfill for test environment
globalThis.BroadcastChannel = class BroadcastChannel {
constructor(public name: string) {}
postMessage() {}
close() {}
addEventListener() {}
removeEventListener() {}
}
}

// Add global t() mock (see /static/js/global_t.js)
global.t = (str: string) => str

Expand Down
3 changes: 3 additions & 0 deletions jsapp/jest/unit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ const config: Config = {
...defaults.testPathIgnorePatterns, // 📦 exclude '/node_modules/'
],

// Transform ESM modules from node_modules (MSW and its dependencies)
transformIgnorePatterns: ['node_modules/(?!(msw|@mswjs|@bundled-es-modules|statuses|until-async)/)'],

// Set up test environment
testEnvironment: 'jsdom',

Expand Down
13 changes: 3 additions & 10 deletions jsapp/js/account/DeleteAccountBanner.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const meta: Meta<typeof DeleteAccountBanner> = {
argTypes: {},
parameters: {
msw: {
handlers: {
organization: organizationMock(),
assets: assetsMock(),
},
handlers: [organizationMock(), assetsMock()],
},
a11y: { test: 'todo' },
},
Expand Down Expand Up @@ -61,9 +58,7 @@ export const UserHasAssets: Story = {
export const UserHasNoAssets: Story = {
parameters: {
msw: {
handlers: {
assets: assetsMock({ count: 0 }),
},
handlers: [organizationMock(), assetsMock({ count: 0 })],
},
},
play: async ({ canvasElement }) => {
Expand All @@ -80,9 +75,7 @@ export const UserHasNoAssets: Story = {
export const UserOwnsMMO: Story = {
parameters: {
msw: {
handlers: {
organization: organizationMock({ is_mmo: true }),
},
handlers: [organizationMock({ is_mmo: true }), assetsMock()],
},
},
play: async ({ canvasElement }) => {
Expand Down
24 changes: 12 additions & 12 deletions jsapp/js/api/models/_dataResponseSupplementalDetails.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import type { SupplementalDetailsAutomaticQual } from './supplementalDetailsAutomaticQual'
import type { SupplementalDetailsAutomaticTranscription } from './supplementalDetailsAutomaticTranscription'
import type { SupplementalDetailsAutomaticTranslation } from './supplementalDetailsAutomaticTranslation'
import type { SupplementalDetailsManualQual } from './supplementalDetailsManualQual'
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
Expand All @@ -13,18 +9,22 @@ 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 { SupplementalDetailsManualTranscription } from './supplementalDetailsManualTranscription'
import type { SupplementalDetailsManualTranslation } from './supplementalDetailsManualTranslation'
import type { _DataResponseSupplementalDetailsOneOf } from './_dataResponseSupplementalDetailsOneOf'
import type { _DataResponseSupplementalDetailsOneOfFive } from './_dataResponseSupplementalDetailsOneOfFive'
import type { _DataResponseSupplementalDetailsOneOfFour } from './_dataResponseSupplementalDetailsOneOfFour'
import type { _DataResponseSupplementalDetailsOneOfSix } from './_dataResponseSupplementalDetailsOneOfSix'
import type { _DataResponseSupplementalDetailsOneOfThree } from './_dataResponseSupplementalDetailsOneOfThree'
import type { _DataResponseSupplementalDetailsOneOfTwo } from './_dataResponseSupplementalDetailsOneOfTwo'

/**
* Action-specific supplemental data attached to this submission. Structure varies by action type (transcription, translation, qual). Top-level keys are question XPaths, values are action objects.
* @nullable
*/
export type _DataResponseSupplementalDetails =
| SupplementalDetailsManualTranscription
| SupplementalDetailsManualTranslation
| SupplementalDetailsAutomaticTranscription
| SupplementalDetailsAutomaticTranslation
| SupplementalDetailsManualQual
| SupplementalDetailsAutomaticQual
| _DataResponseSupplementalDetailsOneOf
| _DataResponseSupplementalDetailsOneOfTwo
| _DataResponseSupplementalDetailsOneOfThree
| _DataResponseSupplementalDetailsOneOfFour
| _DataResponseSupplementalDetailsOneOfFive
| _DataResponseSupplementalDetailsOneOfSix
| null
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { SupplementalDataManualTranscription } from './supplementalDataManu
/**
* Manual transcription supplemental details
*/
export interface SupplementalDetailsManualTranscription {
export type _DataResponseSupplementalDetailsOneOf = {
[key: string]: {
manual_transcription: SupplementalDataManualTranscription
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { SupplementalDataManualQual } from './supplementalDataManualQual'
/**
* Manual qualitative supplemental details
*/
export interface SupplementalDetailsManualQual {
export type _DataResponseSupplementalDetailsOneOfFive = {
[key: string]: {
manual_qual: SupplementalDataManualQual
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { SupplementalDataAutomaticTranslation } from './supplementalDataAut
/**
* Automatic translation supplemental details
*/
export interface SupplementalDetailsAutomaticTranslation {
export type _DataResponseSupplementalDetailsOneOfFour = {
[key: string]: {
automatic_google_translation: SupplementalDataAutomaticTranslation
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { SupplementalDataAutomaticQual } from './supplementalDataAutomaticQ
/**
* Automatic qualitative supplemental details
*/
export interface SupplementalDetailsAutomaticQual {
export type _DataResponseSupplementalDetailsOneOfSix = {
[key: string]: {
automatic_bedrock_qual: SupplementalDataAutomaticQual
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { SupplementalDataAutomaticTranscription } from './supplementalDataA
/**
* Automatic transcription supplemental details
*/
export interface SupplementalDetailsAutomaticTranscription {
export type _DataResponseSupplementalDetailsOneOfThree = {
[key: string]: {
automatic_google_transcription: SupplementalDataAutomaticTranscription
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { SupplementalDataManualTranslation } from './supplementalDataManual
/**
* Manual translation supplemental details
*/
export interface SupplementalDetailsManualTranslation {
export type _DataResponseSupplementalDetailsOneOfTwo = {
[key: string]: {
manual_translation: SupplementalDataManualTranslation
}
Expand Down
25 changes: 17 additions & 8 deletions jsapp/js/api/models/asset.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { AssetAccessTypes } from './assetAccessTypes'
import type { AssetAdvancedFeatures } from './assetAdvancedFeatures'
import type { AssetAnalysisFormJson } from './assetAnalysisFormJson'
import type { AssetAssignablePermissionsItem } from './assetAssignablePermissionsItem'
Expand All @@ -12,8 +13,10 @@ import type { AssetDownloadsItem } from './assetDownloadsItem'
import type { AssetEffectivePermissionsItem } from './assetEffectivePermissionsItem'
import type { AssetEmbedsItem } from './assetEmbedsItem'
import type { AssetExportSettings } from './assetExportSettings'
import type { AssetFilesItem } from './assetFilesItem'
import type { AssetMapCustom } from './assetMapCustom'
import type { AssetMapStyles } from './assetMapStyles'
import type { AssetPermissionsItem } from './assetPermissionsItem'
import type { AssetProjectOwnership } from './assetProjectOwnership'
import type { AssetReportCustom } from './assetReportCustom'
import type { AssetReportStyles } from './assetReportStyles'
Expand Down Expand Up @@ -41,25 +44,30 @@ export interface Asset {
parent?: string | null
settings?: AssetSettings
asset_type: AssetTypeEnum
readonly files: readonly string[]
readonly files: readonly AssetFilesItem[]
readonly summary: AssetSummary
date_created?: string
date_modified?: string
/** @nullable */
date_deployed?: string | null
readonly version_id: string
readonly version__content_hash: string
/** @nullable */
readonly version_id: string | null
/** @nullable */
readonly version__content_hash: string | null
readonly version_count: number
readonly has_deployment: boolean
readonly deployed_version_id: string
/** @nullable */
readonly deployed_version_id: string | null
readonly deployed_versions: AssetDeployedVersions
readonly deployment__links: AssetDeploymentLinks
readonly deployment__active: boolean
readonly deployment__data_download_links: AssetDeploymentDataDownloadLinks
readonly deployment__submission_count: number
readonly deployment__last_submission_time: string
/** @nullable */
readonly deployment__last_submission_time: string | null
readonly deployment__encrypted: boolean
readonly deployment__uuid: string
/** @nullable */
readonly deployment__uuid: string | null
readonly deployment_status: AssetDeploymentStatusEnum
report_styles?: AssetReportStyles
report_custom?: AssetReportCustom
Expand All @@ -79,15 +87,16 @@ export interface Asset {
/** @maxLength 255 */
name?: string
readonly assignable_permissions: readonly AssetAssignablePermissionsItem[]
readonly permissions: readonly string[]
readonly permissions: readonly AssetPermissionsItem[]
readonly effective_permissions: readonly AssetEffectivePermissionsItem[]
readonly exports: string
readonly export_settings: readonly AssetExportSettings[]
readonly data: string
readonly children: AssetChildren
readonly subscribers_count: number
readonly status: string
readonly access_types: readonly string[]
/** @nullable */
readonly access_types: AssetAccessTypes
data_sharing?: AssetDataSharing
readonly paired_data: string
/** @nullable */
Expand Down
16 changes: 16 additions & 0 deletions jsapp/js/api/models/assetAccessTypes.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)
*/

/**
* @nullable
*/
export type AssetAccessTypes = readonly string[] | null | null | null
10 changes: 9 additions & 1 deletion jsapp/js/api/models/assetAdvancedFeatures.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { AssetAdvancedFeaturesQual } from './assetAdvancedFeaturesQual'
/**
* Generated by orval v7.10.0 🍺
* Do not edit manually.
Expand All @@ -9,5 +10,12 @@ 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 { AssetAdvancedFeaturesTranscript } from './assetAdvancedFeaturesTranscript'
import type { AssetAdvancedFeaturesTranslation } from './assetAdvancedFeaturesTranslation'

export type AssetAdvancedFeatures = { [key: string]: unknown }
export type AssetAdvancedFeatures = {
transcript?: AssetAdvancedFeaturesTranscript
translation?: AssetAdvancedFeaturesTranslation
qual?: AssetAdvancedFeaturesQual
_version?: string
}
16 changes: 16 additions & 0 deletions jsapp/js/api/models/assetAdvancedFeaturesQual.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 { AssetAdvancedFeaturesQualQualSurveyItem } from './assetAdvancedFeaturesQualQualSurveyItem'

export type AssetAdvancedFeaturesQual = {
qual_survey?: AssetAdvancedFeaturesQualQualSurveyItem[]
}
24 changes: 24 additions & 0 deletions jsapp/js/api/models/assetAdvancedFeaturesQualQualSurveyItem.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import type { AssetAdvancedFeaturesQualQualSurveyItemChoicesItem } from './assetAdvancedFeaturesQualQualSurveyItemChoicesItem'
/**
* 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 { AssetAdvancedFeaturesQualQualSurveyItemLabels } from './assetAdvancedFeaturesQualQualSurveyItemLabels'
import type { AssetAdvancedFeaturesQualQualSurveyItemOptions } from './assetAdvancedFeaturesQualQualSurveyItemOptions'

export type AssetAdvancedFeaturesQualQualSurveyItem = {
type: string
labels: AssetAdvancedFeaturesQualQualSurveyItemLabels
uuid?: string
options?: AssetAdvancedFeaturesQualQualSurveyItemOptions
xpath: string
scope: string
choices?: AssetAdvancedFeaturesQualQualSurveyItemChoicesItem[]
}
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 { AssetAdvancedFeaturesQualQualSurveyItemChoicesItemLabels } from './assetAdvancedFeaturesQualQualSurveyItemChoicesItemLabels'
import type { AssetAdvancedFeaturesQualQualSurveyItemChoicesItemOptions } from './assetAdvancedFeaturesQualQualSurveyItemChoicesItemOptions'

export type AssetAdvancedFeaturesQualQualSurveyItemChoicesItem = {
labels: AssetAdvancedFeaturesQualQualSurveyItemChoicesItemLabels
uuid: string
options?: AssetAdvancedFeaturesQualQualSurveyItemChoicesItemOptions
}
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)
*/

export type AssetAdvancedFeaturesQualQualSurveyItemChoicesItemLabels = {
_default: string
[key: string]: string
}
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 AssetAdvancedFeaturesQualQualSurveyItemChoicesItemOptions = {
deleted?: boolean
}
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)
*/

export type AssetAdvancedFeaturesQualQualSurveyItemLabels = {
_default: string
[key: string]: string
}
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 AssetAdvancedFeaturesQualQualSurveyItemOptions = {
deleted?: boolean
}
Loading