Skip to content

Commit

Permalink
api upgrade schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Jun 7, 2024
1 parent 3b4dd7a commit dc6091c
Show file tree
Hide file tree
Showing 74 changed files with 87 additions and 76 deletions.
9 changes: 7 additions & 2 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.4-SNAPSHOT"
"version": "4.3.6-SNAPSHOT"
},
"servers": [
{
Expand Down Expand Up @@ -883,7 +883,12 @@
}
},
"content": {
"application/pdf": {}
"application/pdf": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
}
}
Expand Down
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type {
MutationFunction,
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type {
MutationFunction,
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type {
MutationFunction,
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type {
QueryFunction,
Expand Down
11 changes: 8 additions & 3 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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type {
MutationFunction,
Expand Down Expand Up @@ -1456,8 +1456,13 @@ export const generateDepositProof = (
options?: SecondParameter<typeof depositProofInstance>,
signal?: AbortSignal
) => {
return depositProofInstance<unknown>(
{ url: `/api/survey-unit/${id}/deposit-proof`, method: 'GET', signal },
return depositProofInstance<Blob>(
{
url: `/api/survey-unit/${id}/deposit-proof`,
method: 'GET',
responseType: 'blob',
signal,
},
options
)
}
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type {
MutationFunction,
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type {
QueryFunction,
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type {
MutationFunction,
Expand Down
1 change: 1 addition & 0 deletions src/api/axiosInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const getAccessToken = async () => {
return oidc.getTokens().accessToken
}

// Type issue https://github.com/axios/axios/issues/5494
const onRequest = async (config: any) => ({
...config,
headers: {
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

export type AddParadataBody = { [key: string]: any }
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

export type ArrayNodeItem = { [key: string]: any }
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type { MetadataCreation } from './metadataCreation'

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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

export type GetCommentBySurveyUnit200 = { [key: string]: any }
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

export type GetQuestionnaireData200 = { [key: string]: any }
2 changes: 1 addition & 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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

export * from './addParadataBody'
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type { IntegrationResultUnit } from './integrationResultUnit'

Expand Down
2 changes: 1 addition & 1 deletion src/model/api/metadataCreation.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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type { SchemaMetadata } from './schema.metadata/schemaMetadata'

Expand Down
2 changes: 1 addition & 1 deletion src/model/api/nomenclatureCreation.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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type { SchemaNomenclature } from './schema.nomenclature/schemaNomenclature'

Expand Down
2 changes: 1 addition & 1 deletion src/model/api/objectNode.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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

export interface ObjectNode {
Expand Down
2 changes: 1 addition & 1 deletion src/model/api/questionnaireModelCreation.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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type { QuestionnaireModelCreationValue } from './questionnaireModelCreationValue'

Expand Down
2 changes: 1 addition & 1 deletion src/model/api/questionnaireModelCreationValue.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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

export type QuestionnaireModelCreationValue = { [key: string]: any }
2 changes: 1 addition & 1 deletion src/model/api/questionnaireModelId.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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

export interface QuestionnaireModelId {
Expand Down
2 changes: 1 addition & 1 deletion src/model/api/questionnaireModelValue.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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type { QuestionnaireModelValueValue } from './questionnaireModelValueValue'

Expand Down
2 changes: 1 addition & 1 deletion src/model/api/questionnaireModelValueValue.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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

export type QuestionnaireModelValueValue = { [key: string]: any }
2 changes: 1 addition & 1 deletion src/model/api/schema.collected-data/_.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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type { CollectedValues } from './collectedValues'

Expand Down
2 changes: 1 addition & 1 deletion src/model/api/schema.collected-data/collectedValues.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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type { SchemaVariableType } from '../schema.variable-type/schemaVariableType'

Expand Down
2 changes: 1 addition & 1 deletion src/model/api/schema.collected-data/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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

export * from './_'
Expand Down
2 changes: 1 addition & 1 deletion src/model/api/schema.collected-data/schemaCollectedData.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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/api/schema.data/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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

export * from './schemaData'
2 changes: 1 addition & 1 deletion src/model/api/schema.data/schemaData.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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/
import type { SchemaCollectedData } from '../schema.collected-data/schemaCollectedData'

Expand Down
2 changes: 1 addition & 1 deletion src/model/api/schema.metadata/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.4-SNAPSHOT
* OpenAPI spec version: 4.3.6-SNAPSHOT
*/

export * from './schemaMetadata'
Expand Down
Loading

0 comments on commit dc6091c

Please sign in to comment.