Skip to content

Commit

Permalink
chore: upgrade api schema and generated files from with api version 4…
Browse files Browse the repository at this point in the history
….5.15
  • Loading branch information
ddecrulle committed Aug 13, 2024
1 parent f8c3712 commit 5deddd0
Show file tree
Hide file tree
Showing 83 changed files with 171 additions and 92 deletions.
32 changes: 24 additions & 8 deletions openapi/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "queen-api",
"description": "API for Queen/Stromae",
"version": "4.3.10-SNAPSHOT"
"version": "4.3.15"
},
"servers": [
{
Expand Down Expand Up @@ -82,7 +82,7 @@
"put": {
"tags": ["06. Survey units"],
"summary": "Update survey-unit",
"description": "Authorized roles: ADMIN / WEBCLIENT / REVIEWER / REVIEWER_ALTERNATIVE / INTERVIEWER / SURVEY_UNIT / ",
"description": "Authorized roles: ADMIN / WEBCLIENT / INTERVIEWER / ",
"operationId": "updateSurveyUnitById",
"parameters": [
{
Expand Down Expand Up @@ -134,7 +134,7 @@
"patch": {
"tags": ["06. Survey units"],
"summary": "Update survey-unit updated data/state-data",
"description": "Authorized roles: ADMIN / WEBCLIENT / REVIEWER / REVIEWER_ALTERNATIVE / INTERVIEWER / SURVEY_UNIT / ",
"description": "Authorized roles: ADMIN / WEBCLIENT / INTERVIEWER / SURVEY_UNIT / ",
"operationId": "updateSurveyUnitDataStateDataById",
"parameters": [
{
Expand Down Expand Up @@ -195,7 +195,7 @@
"put": {
"tags": ["06. Survey units"],
"summary": "Update state-data for a survey unit",
"description": "Authorized roles: ADMIN / WEBCLIENT / REVIEWER / REVIEWER_ALTERNATIVE / INTERVIEWER / SURVEY_UNIT / ",
"description": "Authorized roles: ADMIN / WEBCLIENT / INTERVIEWER / SURVEY_UNIT / ",
"operationId": "setStateData",
"parameters": [
{
Expand Down Expand Up @@ -317,7 +317,7 @@
"put": {
"tags": ["06. Survey units"],
"summary": "Update data for a survey unit",
"description": "Authorized roles: ADMIN / WEBCLIENT / REVIEWER / REVIEWER_ALTERNATIVE / INTERVIEWER / SURVEY_UNIT / ",
"description": "Authorized roles: ADMIN / WEBCLIENT / INTERVIEWER / SURVEY_UNIT / ",
"operationId": "updateData",
"parameters": [
{
Expand Down Expand Up @@ -1300,7 +1300,7 @@
},
"components": {
"schemas": {
"StateDataUpdate": {
"StateDataForSurveyUnitUpdate": {
"properties": {
"state": {
"type": "string",
Expand All @@ -1314,7 +1314,7 @@
"type": "string"
}
},
"required": ["currentPage", "date", "state"]
"required": ["currentPage", "date"]
},
"SurveyUnitUpdate": {
"properties": {
Expand All @@ -1329,10 +1329,26 @@
"type": "object"
},
"stateData": {
"$ref": "#/components/schemas/StateDataUpdate"
"$ref": "#/components/schemas/StateDataForSurveyUnitUpdate"
}
}
},
"StateDataUpdate": {
"properties": {
"state": {
"type": "string",
"enum": ["INIT", "COMPLETED", "VALIDATED", "TOEXTRACT", "EXTRACTED"]
},
"date": {
"type": "integer",
"format": "int64"
},
"currentPage": {
"type": "string"
}
},
"required": ["currentPage", "date", "state"]
},
"StateData": {
"properties": {
"state": {
Expand Down
16 changes: 16 additions & 0 deletions openapi/schema.variable-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@
}
]
}
},
{
"type": "array",
"items": {
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
}
}
]
}
2 changes: 1 addition & 1 deletion src/api/01-integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type {
MutationFunction,
Expand Down
2 changes: 1 addition & 1 deletion src/api/02-campaigns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type {
DefinedInitialDataOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/api/03-questionnaires.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type {
DefinedInitialDataOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/api/04-nomenclatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type {
DefinedInitialDataOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/api/05-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type {
DefinedInitialDataOptions,
Expand Down
10 changes: 5 additions & 5 deletions src/api/06-survey-units.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type {
DefinedInitialDataOptions,
Expand Down Expand Up @@ -193,7 +193,7 @@ export function useGetSurveyUnitById<
}

/**
* Authorized roles: ADMIN / WEBCLIENT / REVIEWER / REVIEWER_ALTERNATIVE / INTERVIEWER / SURVEY_UNIT /
* Authorized roles: ADMIN / WEBCLIENT / INTERVIEWER /
* @summary Update survey-unit
*/
export const updateSurveyUnitById = (
Expand Down Expand Up @@ -349,7 +349,7 @@ export const useDeleteSurveyUnit = <
return useMutation(mutationOptions)
}
/**
* Authorized roles: ADMIN / WEBCLIENT / REVIEWER / REVIEWER_ALTERNATIVE / INTERVIEWER / SURVEY_UNIT /
* Authorized roles: ADMIN / WEBCLIENT / INTERVIEWER / SURVEY_UNIT /
* @summary Update survey-unit updated data/state-data
*/
export const updateSurveyUnitDataStateDataById = (
Expand Down Expand Up @@ -588,7 +588,7 @@ export function useGetStateDataBySurveyUnit<
}

/**
* Authorized roles: ADMIN / WEBCLIENT / REVIEWER / REVIEWER_ALTERNATIVE / INTERVIEWER / SURVEY_UNIT /
* Authorized roles: ADMIN / WEBCLIENT / INTERVIEWER / SURVEY_UNIT /
* @summary Update state-data for a survey unit
*/
export const setStateData = (
Expand Down Expand Up @@ -1064,7 +1064,7 @@ export function useGetDataBySurveyUnit<
}

/**
* Authorized roles: ADMIN / WEBCLIENT / REVIEWER / REVIEWER_ALTERNATIVE / INTERVIEWER / SURVEY_UNIT /
* Authorized roles: ADMIN / WEBCLIENT / INTERVIEWER / SURVEY_UNIT /
* @summary Update data for a survey unit
*/
export const updateData = (
Expand Down
2 changes: 1 addition & 1 deletion src/api/07-paradata-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type {
MutationFunction,
Expand Down
2 changes: 1 addition & 1 deletion src/api/08-survey-units-in-temp-zone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type {
DefinedInitialDataOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/api/09-healthcheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type {
DefinedInitialDataOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/api/10-create-data-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type {
MutationFunction,
Expand Down
2 changes: 1 addition & 1 deletion src/model/api/addParadataBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/

export type AddParadataBody = { [key: string]: unknown }
2 changes: 1 addition & 1 deletion src/model/api/arrayNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type { ArrayNodeItem } from './arrayNodeItem'

Expand Down
2 changes: 1 addition & 1 deletion src/model/api/arrayNodeItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/

export type ArrayNodeItem = { [key: string]: unknown }
2 changes: 1 addition & 1 deletion src/model/api/campaignCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type { MetadataCreation } from './metadataCreation'

Expand Down
2 changes: 1 addition & 1 deletion src/model/api/campaignCreationV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type { SchemaMetadata } from './schema.metadata/schemaMetadata'

Expand Down
2 changes: 1 addition & 1 deletion src/model/api/campaignSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/

export interface CampaignSummary {
Expand Down
2 changes: 1 addition & 1 deletion src/model/api/deleteCampaignByIdParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/

export type DeleteCampaignByIdParams = {
Expand Down
2 changes: 1 addition & 1 deletion src/model/api/getCommentBySurveyUnit200.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/

export type GetCommentBySurveyUnit200 = { [key: string]: unknown }
2 changes: 1 addition & 1 deletion src/model/api/getQuestionnaireData200.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/

export type GetQuestionnaireData200 = { [key: string]: unknown }
4 changes: 3 additions & 1 deletion src/model/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/

export * from './addParadataBody'
Expand Down Expand Up @@ -33,6 +33,8 @@ export * from './questionnaireModelValue'
export * from './questionnaireModelValueValue'
export * from './setCommentBody'
export * from './stateData'
export * from './stateDataForSurveyUnitUpdate'
export * from './stateDataForSurveyUnitUpdateState'
export * from './stateDataState'
export * from './stateDataUpdate'
export * from './stateDataUpdateState'
Expand Down
2 changes: 1 addition & 1 deletion src/model/api/integrateContextBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/

export type IntegrateContextBody = {
Expand Down
2 changes: 1 addition & 1 deletion src/model/api/integrateXmlContextBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/

export type IntegrateXmlContextBody = {
Expand Down
2 changes: 1 addition & 1 deletion src/model/api/integrationResultUnit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type { IntegrationResultUnitStatus } from './integrationResultUnitStatus'

Expand Down
2 changes: 1 addition & 1 deletion src/model/api/integrationResultUnitStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/

export type IntegrationResultUnitStatus =
Expand Down
2 changes: 1 addition & 1 deletion src/model/api/integrationResults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/
import type { IntegrationResultUnit } from './integrationResultUnit'

Expand Down
2 changes: 1 addition & 1 deletion src/model/api/logo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* queen-api
* API for Queen/Stromae
* OpenAPI spec version: 4.3.10-SNAPSHOT
* OpenAPI spec version: 4.3.15
*/

export interface Logo {
Expand Down
Loading

0 comments on commit 5deddd0

Please sign in to comment.