From e42c92f124840eeec2b016274d86a71ca1e93be1 Mon Sep 17 00:00:00 2001 From: Fufeck Date: Mon, 13 Nov 2023 13:46:02 +0400 Subject: [PATCH 01/20] update route api-bal --- lib/bal-api/index.js | 38 +++++++++++++------------------------- 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/lib/bal-api/index.js b/lib/bal-api/index.js index 02781b4cb..397b60277 100644 --- a/lib/bal-api/index.js +++ b/lib/bal-api/index.js @@ -1,7 +1,7 @@ import {trimStart, trimEnd} from 'lodash' import {toaster} from 'evergreen-ui' -const BAL_API_URL = process.env.NEXT_PUBLIC_BAL_API_URL || 'https://api-bal.adresse.data.gouv.fr/v1' +const BAL_API_URL = process.env.NEXT_PUBLIC_BAL_API_URL || 'https://api-bal.adresse.data.gouv.fr/v2' async function request(url, opts = {}) { const {json, ...options} = opts @@ -193,18 +193,6 @@ export async function resumeSync(balId, token) { } } -export async function listBALByCodeDepartement(codeDepartement) { - return request(`/stats/departements/${codeDepartement}`) -} - -export async function getBasesLocalesStats() { - return request('/stats') -} - -export async function getBasesLocalesCreationStats() { - return request('/stats/creations') -} - export async function getBaseLocale(balId, token) { const headers = token ? { authorization: `Token ${token}` @@ -314,17 +302,6 @@ export function getListVoiesCsvUrl(balId) { return `${BAL_API_URL}/bases-locales/${balId}/voies/csv` } -export function certifyBAL(balId, token, changes) { - return request(`/bases-locales/${balId}/batch`, { - method: 'POST', - headers: { - 'content-type': 'application/json', - authorization: `Token ${token}` - }, - body: JSON.stringify(changes) - }) -} - export function getParcelles(balId) { return request(`/bases-locales/${balId}/parcelles`) } @@ -578,10 +555,21 @@ export async function editNumero(idNumero, body, token) { ) } +export function certifyBAL(balId, token, changes) { + return request(`/bases-locales/${balId}/numeros/batch`, { + method: 'PUT', + headers: { + 'content-type': 'application/json', + authorization: `Token ${token}` + }, + body: JSON.stringify(changes) + }) +} + export function batchNumeros(balId, body, token) { try { const response = request(`/bases-locales/${balId}/numeros/batch`, { - method: 'POST', + method: 'PUT', headers: { 'content-type': 'application/json', authorization: `Token ${token}` From 42c4b0242640d94d89da6b303c2267552c596540 Mon Sep 17 00:00:00 2001 From: Fufeck Date: Mon, 13 Nov 2023 14:46:01 +0400 Subject: [PATCH 02/20] update get voies/toponymes deleted --- hooks/trash.js | 6 +++--- lib/bal-api/index.js | 16 ++++------------ 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/hooks/trash.js b/hooks/trash.js index 18913a6ca..2dc89a068 100644 --- a/hooks/trash.js +++ b/hooks/trash.js @@ -1,7 +1,7 @@ import {useCallback, useContext, useState} from 'react' -import {getVoiesDeleted, getToponymesDeleted, restoreToponyme, removeToponyme, removeVoie, restoreVoie, removeMultipleNumeros} from '@/lib/bal-api' +import {getVoies, getToponymes, restoreToponyme, removeToponyme, removeVoie, restoreVoie, removeMultipleNumeros} from '@/lib/bal-api' import BalDataContext from '@/contexts/bal-data' import MapContext from '@/contexts/map' @@ -22,12 +22,12 @@ function useTrash() { const [toponymesDeleted, setToponymesDeleted] = useState([]) const reloadVoiesDeleted = useCallback(async () => { - const res = await getVoiesDeleted(baseLocale._id) + const res = await getVoies(baseLocale._id, true) setVoiesDeleted(res) }, [baseLocale._id, setVoiesDeleted]) const reloadToponymesDelete = useCallback(async () => { - const res = await getToponymesDeleted(baseLocale._id) + const res = await getToponymes(baseLocale._id, true) setToponymesDeleted(res) }, [baseLocale._id, setToponymesDeleted]) diff --git a/lib/bal-api/index.js b/lib/bal-api/index.js index 397b60277..18b1050db 100644 --- a/lib/bal-api/index.js +++ b/lib/bal-api/index.js @@ -319,18 +319,14 @@ export function populateCommune(balId, token) { }) } -export function getVoies(balId) { - return request(`/bases-locales/${balId}/voies`) +export function getVoies(balId, isDeleted = false) { + return request(`/bases-locales/${balId}/voies?isDelete=${isDeleted}`) } export function getVoie(idVoie) { return request(`/voies/${idVoie}`) } -export function getVoiesDeleted(balId) { - return request(`/bases-locales/${balId}/voies-deleted`) -} - export async function addVoie(balId, body, token) { return editRequest(`/bases-locales/${balId}/voies`, { method: 'POST', @@ -426,18 +422,14 @@ export async function convertVoieToToponyme(idVoie, token) { } } -export function getToponymes(balId) { - return request(`/bases-locales/${balId}/toponymes`) +export function getToponymes(balId, isDeleted = false) { + return request(`/bases-locales/${balId}/toponymes?isDelete=${isDeleted}`) } export function getToponyme(idToponyme) { return request(`/toponymes/${idToponyme}`) } -export function getToponymesDeleted(balId) { - return request(`/bases-locales/${balId}/toponymes-deleted`) -} - export async function addToponyme(balId, body, token) { return editRequest(`/bases-locales/${balId}/toponymes`, { method: 'POST', From 2e45ec059c266c718863a5bf5ef33710c0b2774f Mon Sep 17 00:00:00 2001 From: Fufeck Date: Mon, 13 Nov 2023 15:18:50 +0400 Subject: [PATCH 03/20] correct route voies/toponymes isDeleted --- lib/bal-api/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bal-api/index.js b/lib/bal-api/index.js index 18b1050db..77fd313d2 100644 --- a/lib/bal-api/index.js +++ b/lib/bal-api/index.js @@ -320,7 +320,7 @@ export function populateCommune(balId, token) { } export function getVoies(balId, isDeleted = false) { - return request(`/bases-locales/${balId}/voies?isDelete=${isDeleted}`) + return request(`/bases-locales/${balId}/voies?isdeleted=${isDeleted}`) } export function getVoie(idVoie) { @@ -423,7 +423,7 @@ export async function convertVoieToToponyme(idVoie, token) { } export function getToponymes(balId, isDeleted = false) { - return request(`/bases-locales/${balId}/toponymes?isDelete=${isDeleted}`) + return request(`/bases-locales/${balId}/toponymes?isdeleted=${isDeleted}`) } export function getToponyme(idToponyme) { From 26d4151da03377ef57d53c6b9e7ecb56091ed85c Mon Sep 17 00:00:00 2001 From: Fufeck Date: Mon, 13 Nov 2023 16:45:06 +0400 Subject: [PATCH 04/20] correct trash --- hooks/trash.js | 22 ++++++++++++++++++---- lib/bal-api/index.js | 38 ++++++++++++++++++++++++++++++++------ 2 files changed, 50 insertions(+), 10 deletions(-) diff --git a/hooks/trash.js b/hooks/trash.js index 2dc89a068..183aa8eb8 100644 --- a/hooks/trash.js +++ b/hooks/trash.js @@ -1,7 +1,8 @@ import {useCallback, useContext, useState} from 'react' +import {groupBy} from 'lodash' -import {getVoies, getToponymes, restoreToponyme, removeToponyme, removeVoie, restoreVoie, removeMultipleNumeros} from '@/lib/bal-api' +import {getVoies, getNumerosByBal, getToponymes, restoreToponyme, removeToponyme, removeVoie, restoreVoie, removeMultipleNumeros} from '@/lib/bal-api' import BalDataContext from '@/contexts/bal-data' import MapContext from '@/contexts/map' @@ -22,9 +23,22 @@ function useTrash() { const [toponymesDeleted, setToponymesDeleted] = useState([]) const reloadVoiesDeleted = useCallback(async () => { - const res = await getVoies(baseLocale._id, true) - setVoiesDeleted(res) - }, [baseLocale._id, setVoiesDeleted]) + const numerosDeleted = await getNumerosByBal(baseLocale._id, token, true) + const voies = await getVoies(baseLocale._id) + const numerosDeletedByVoie = groupBy(numerosDeleted, 'voie') + + const result = [] + for (const voieId in numerosDeletedByVoie) { + if (Object.hasOwnProperty.call(numerosDeletedByVoie, voieId)) { + const voieNumerosDeleted = numerosDeletedByVoie[voieId] + const voie = voies.find(({_id}) => _id === voieId) + voie.numeros = voieNumerosDeleted + result.push(voie) + } + } + + setVoiesDeleted(result) + }, [baseLocale._id, token, setVoiesDeleted]) const reloadToponymesDelete = useCallback(async () => { const res = await getToponymes(baseLocale._id, true) diff --git a/lib/bal-api/index.js b/lib/bal-api/index.js index 77fd313d2..d3a901631 100644 --- a/lib/bal-api/index.js +++ b/lib/bal-api/index.js @@ -319,8 +319,13 @@ export function populateCommune(balId, token) { }) } -export function getVoies(balId, isDeleted = false) { - return request(`/bases-locales/${balId}/voies?isdeleted=${isDeleted}`) +export function getVoies(balId, isDeleted = undefined) { + let url = `/bases-locales/${balId}/voies` + if (isDeleted === true || isDeleted === false) { + url += `?isdeleted=${isDeleted}` + } + + return request(url) } export function getVoie(idVoie) { @@ -422,8 +427,13 @@ export async function convertVoieToToponyme(idVoie, token) { } } -export function getToponymes(balId, isDeleted = false) { - return request(`/bases-locales/${balId}/toponymes?isdeleted=${isDeleted}`) +export function getToponymes(balId, isDeleted = undefined) { + let url = `/bases-locales/${balId}/toponymes` + if (isDeleted === true || isDeleted === false) { + url += `?isdeleted=${isDeleted}` + } + + return request(url) } export function getToponyme(idToponyme) { @@ -511,12 +521,28 @@ export function getNumerosToponyme(idToponyme, token) { return request(`/toponymes/${idToponyme}/numeros`, {headers}) } -export function getNumeros(idVoie, token) { +export function getNumerosByBal(idBal, token, isDeleted = undefined) { + const headers = token ? { + authorization: `Token ${token}` + } : {} + let url = `/bases-locales/${idBal}/numeros` + if (isDeleted === true || isDeleted === false) { + url += `?isdeleted=${isDeleted}` + } + + return request(url, {headers}) +} + +export function getNumeros(idVoie, token, isDeleted = undefined) { const headers = token ? { authorization: `Token ${token}` } : {} + let url = `/voies/${idVoie}/numeros` + if (isDeleted === true || isDeleted === false) { + url += `?isdeleted=${isDeleted}` + } - return request(`/voies/${idVoie}/numeros`, {headers}) + return request(url, {headers}) } export async function addNumero(idVoie, body, token) { From e9769a20927a627b71ace7b2c7533f568ef8e1b2 Mon Sep 17 00:00:00 2001 From: Fufeck Date: Wed, 15 Nov 2023 15:14:53 +0400 Subject: [PATCH 05/20] correct trash --- components/trash/index.js | 8 +++--- hooks/trash.js | 54 ++++++++++++--------------------------- lib/bal-api/index.js | 43 ++++++++----------------------- 3 files changed, 30 insertions(+), 75 deletions(-) diff --git a/components/trash/index.js b/components/trash/index.js index 201bdb915..a372010bf 100644 --- a/components/trash/index.js +++ b/components/trash/index.js @@ -17,16 +17,14 @@ function Trash() { onRemoveToponyme, onRestoreToponyme, onRestoreVoie, - reloadVoiesDeleted, - reloadToponymesDelete + reloadAllDeleted, } = useTrash() const [selectedTabIndex, setSelectedTabIndex] = useState(0) const [restoreVoie, setRestoreVoie] = useState(null) useEffect(() => { - reloadVoiesDeleted() - reloadToponymesDelete() - }, [reloadVoiesDeleted, reloadToponymesDelete]) + reloadAllDeleted() + }, [reloadAllDeleted]) const propsDeletedList = useMemo(() => { if (selectedTabIndex === 0) { diff --git a/hooks/trash.js b/hooks/trash.js index 183aa8eb8..11d811064 100644 --- a/hooks/trash.js +++ b/hooks/trash.js @@ -1,8 +1,7 @@ import {useCallback, useContext, useState} from 'react' -import {groupBy} from 'lodash' -import {getVoies, getNumerosByBal, getToponymes, restoreToponyme, removeToponyme, removeVoie, restoreVoie, removeMultipleNumeros} from '@/lib/bal-api' +import {getAllDeleted, restoreToponyme, removeToponyme, removeVoie, restoreVoie, removeMultipleNumeros} from '@/lib/bal-api' import BalDataContext from '@/contexts/bal-data' import MapContext from '@/contexts/map' @@ -22,62 +21,44 @@ function useTrash() { const [voiesDeleted, setVoiesDeleted] = useState([]) const [toponymesDeleted, setToponymesDeleted] = useState([]) - const reloadVoiesDeleted = useCallback(async () => { - const numerosDeleted = await getNumerosByBal(baseLocale._id, token, true) - const voies = await getVoies(baseLocale._id) - const numerosDeletedByVoie = groupBy(numerosDeleted, 'voie') - - const result = [] - for (const voieId in numerosDeletedByVoie) { - if (Object.hasOwnProperty.call(numerosDeletedByVoie, voieId)) { - const voieNumerosDeleted = numerosDeletedByVoie[voieId] - const voie = voies.find(({_id}) => _id === voieId) - voie.numeros = voieNumerosDeleted - result.push(voie) - } - } - - setVoiesDeleted(result) - }, [baseLocale._id, token, setVoiesDeleted]) - - const reloadToponymesDelete = useCallback(async () => { - const res = await getToponymes(baseLocale._id, true) - setToponymesDeleted(res) - }, [baseLocale._id, setToponymesDeleted]) + const reloadAllDeleted = useCallback(async () => { + const res = await getAllDeleted(baseLocale._id) + setToponymesDeleted(res.toponymes) + setVoiesDeleted(res.voies) + }, [baseLocale._id]) const onRemoveVoie = useCallback(async voie => { const res = await removeVoie(voie._id, token) if (res) { - await reloadVoiesDeleted() + await reloadAllDeleted() } - }, [token, reloadVoiesDeleted]) + }, [token, reloadAllDeleted]) const onRestoreVoie = useCallback(async (voie, selectedNumerosIds) => { const res = await restoreVoie(voie._id, {numerosIds: selectedNumerosIds}, token) - if (res) { await reloadVoies() await reloadNumeros() await reloadParcelles() reloadTiles() - await reloadVoiesDeleted() + await reloadAllDeleted() await refreshBALSync() } - }, [token, reloadNumeros, reloadParcelles, reloadVoies, reloadTiles, refreshBALSync, reloadVoiesDeleted]) + }, [token, reloadNumeros, reloadParcelles, reloadVoies, reloadTiles, refreshBALSync, reloadAllDeleted]) const onRemoveNumeros = useCallback(async voie => { const res = await removeMultipleNumeros(baseLocale._id, {numerosIds: voie.numeros.map(n => n._id)}, token) if (res) { - await reloadVoiesDeleted() + await reloadAllDeleted() } - }, [token, reloadVoiesDeleted, removeMultipleNumeros]) + }, [baseLocale._id, token, reloadAllDeleted]) const onRemoveToponyme = useCallback(async toponyme => { const res = await removeToponyme(toponyme._id, token) if (res) { - await reloadToponymesDelete() + await reloadAllDeleted() } - }, [token, reloadToponymesDelete]) + }, [token, reloadAllDeleted]) const onRestoreToponyme = useCallback(async toponyme => { const res = await restoreToponyme(toponyme._id, token) @@ -87,9 +68,9 @@ function useTrash() { await reloadToponymes() reloadTiles() await refreshBALSync() - await reloadToponymesDelete() + await reloadAllDeleted() } - }, [token, reloadParcelles, reloadToponymes, reloadTiles, refreshBALSync, reloadToponymesDelete]) + }, [token, reloadParcelles, reloadToponymes, reloadTiles, refreshBALSync, reloadAllDeleted]) return { voiesDeleted, @@ -99,8 +80,7 @@ function useTrash() { onRemoveNumeros, onRemoveToponyme, onRestoreToponyme, - reloadVoiesDeleted, - reloadToponymesDelete, + reloadAllDeleted, } } diff --git a/lib/bal-api/index.js b/lib/bal-api/index.js index d3a901631..dc5fb6e29 100644 --- a/lib/bal-api/index.js +++ b/lib/bal-api/index.js @@ -319,13 +319,8 @@ export function populateCommune(balId, token) { }) } -export function getVoies(balId, isDeleted = undefined) { - let url = `/bases-locales/${balId}/voies` - if (isDeleted === true || isDeleted === false) { - url += `?isdeleted=${isDeleted}` - } - - return request(url) +export function getVoies(balId) { + return request(`/bases-locales/${balId}/voies`) } export function getVoie(idVoie) { @@ -427,13 +422,8 @@ export async function convertVoieToToponyme(idVoie, token) { } } -export function getToponymes(balId, isDeleted = undefined) { - let url = `/bases-locales/${balId}/toponymes` - if (isDeleted === true || isDeleted === false) { - url += `?isdeleted=${isDeleted}` - } - - return request(url) +export function getToponymes(balId) { + return request(`/bases-locales/${balId}/toponymes`) } export function getToponyme(idToponyme) { @@ -521,28 +511,11 @@ export function getNumerosToponyme(idToponyme, token) { return request(`/toponymes/${idToponyme}/numeros`, {headers}) } -export function getNumerosByBal(idBal, token, isDeleted = undefined) { +export function getNumeros(idVoie, token) { const headers = token ? { authorization: `Token ${token}` } : {} - let url = `/bases-locales/${idBal}/numeros` - if (isDeleted === true || isDeleted === false) { - url += `?isdeleted=${isDeleted}` - } - - return request(url, {headers}) -} - -export function getNumeros(idVoie, token, isDeleted = undefined) { - const headers = token ? { - authorization: `Token ${token}` - } : {} - let url = `/voies/${idVoie}/numeros` - if (isDeleted === true || isDeleted === false) { - url += `?isdeleted=${isDeleted}` - } - - return request(url, {headers}) + return request(`/voies/${idVoie}/numeros`, {headers}) } export async function addNumero(idVoie, body, token) { @@ -694,3 +667,7 @@ export function getContoursCommunes() { export async function getCommuneExtras(codeCommune) { return request(`/commune/${codeCommune}`) } + +export function getAllDeleted(balId) { + return request(`/bases-locales/${balId}/all/deleted`) +} From 05aa8a8190c41da1fc91057028fa71f41e5926fa Mon Sep 17 00:00:00 2001 From: Fufeck Date: Wed, 15 Nov 2023 15:50:23 +0400 Subject: [PATCH 06/20] correct remove error --- lib/bal-api/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/bal-api/index.js b/lib/bal-api/index.js index dc5fb6e29..3a2461d5b 100644 --- a/lib/bal-api/index.js +++ b/lib/bal-api/index.js @@ -601,7 +601,6 @@ export async function removeNumero(idNumero, token) { authorization: `Token ${token}` } }) - toaster.success('Le numéro a bien été supprimé') return response @@ -617,6 +616,7 @@ export async function removeNumero(idNumero, token) { export async function removeMultipleNumeros(balId, body, token) { try { const response = await request(`/bases-locales/${balId}/numeros/batch`, { + json: false, method: 'DELETE', headers: { 'content-type': 'application/json', @@ -624,7 +624,6 @@ export async function removeMultipleNumeros(balId, body, token) { }, body: JSON.stringify(body) }) - toaster.success('Les numéros ont bien été archivés') return response } catch (error) { From 8c3fa312962c1e9bbf3a0b836b6e2b30750bd973 Mon Sep 17 00:00:00 2001 From: Fufeck Date: Wed, 15 Nov 2023 17:44:44 +0400 Subject: [PATCH 07/20] add openapi-codegen --- lib/openapi/core/ApiError.ts | 25 + lib/openapi/core/ApiRequestOptions.ts | 17 + lib/openapi/core/ApiResult.ts | 11 + lib/openapi/core/CancelablePromise.ts | 131 +++++ lib/openapi/core/OpenAPI.ts | 32 ++ lib/openapi/core/request.ts | 320 ++++++++++++ lib/openapi/index.ts | 55 ++ lib/openapi/models/AllDeletedInBalDTO.ts | 13 + lib/openapi/models/BaseLocale.ts | 14 + lib/openapi/models/BasesLocalesCreationDto.ts | 10 + lib/openapi/models/BasesLocalesStatusDto.ts | 12 + lib/openapi/models/CodeCommuneDTO.ts | 9 + lib/openapi/models/CreateBaseLocaleDTO.ts | 11 + lib/openapi/models/CreateDemoBaseLocaleDTO.ts | 10 + lib/openapi/models/CreateNumeroDto.ts | 18 + lib/openapi/models/CreateToponymeDto.ts | 14 + lib/openapi/models/CreateVoieDto.ts | 14 + lib/openapi/models/DeleteBatchNumeroDto.ts | 9 + lib/openapi/models/ExtendedBaseLocale.ts | 18 + lib/openapi/models/ExtendedVoie.ts | 30 ++ lib/openapi/models/ExtentedToponyme.ts | 19 + lib/openapi/models/FeaturePoint.ts | 13 + lib/openapi/models/ImportFileBaseLocaleDTO.ts | 14 + lib/openapi/models/LineString.ts | 10 + lib/openapi/models/Numero.ts | 26 + lib/openapi/models/NumeroPopulate.ts | 27 + lib/openapi/models/ObjectId.ts | 8 + lib/openapi/models/PageBaseLocaleDTO.ts | 14 + lib/openapi/models/Point.ts | 10 + lib/openapi/models/PopulateVoie.ts | 27 + lib/openapi/models/Position.ts | 13 + lib/openapi/models/RecoverBaseLocaleDTO.ts | 10 + lib/openapi/models/RestoreVoieDto.ts | 9 + lib/openapi/models/Toponyme.ts | 14 + lib/openapi/models/UpdateBaseLocaleDTO.ts | 11 + lib/openapi/models/UpdateBaseLocaleDemoDTO.ts | 10 + .../models/UpdateBatchNumeroChnageDto.ts | 15 + lib/openapi/models/UpdateBatchNumeroDto.ts | 12 + lib/openapi/models/UpdateNumeroDto.ts | 19 + lib/openapi/models/UpdateToponymeDto.ts | 14 + lib/openapi/models/UpdateVoieDto.ts | 14 + lib/openapi/models/ValidatePinCodeDTO.ts | 9 + lib/openapi/models/Voie.ts | 25 + lib/openapi/services/BasesLocalesService.ts | 492 ++++++++++++++++++ lib/openapi/services/CommuneService.ts | 29 ++ lib/openapi/services/ExportCsvService.ts | 47 ++ lib/openapi/services/HabilitationService.ts | 109 ++++ lib/openapi/services/NumerosService.ts | 90 ++++ lib/openapi/services/StatsService.ts | 71 +++ lib/openapi/services/TilesService.ts | 48 ++ lib/openapi/services/ToponymesService.ts | 128 +++++ lib/openapi/services/VoiesService.ts | 180 +++++++ package.json | 4 +- yarn.lock | 91 +++- 54 files changed, 2402 insertions(+), 3 deletions(-) create mode 100644 lib/openapi/core/ApiError.ts create mode 100644 lib/openapi/core/ApiRequestOptions.ts create mode 100644 lib/openapi/core/ApiResult.ts create mode 100644 lib/openapi/core/CancelablePromise.ts create mode 100644 lib/openapi/core/OpenAPI.ts create mode 100644 lib/openapi/core/request.ts create mode 100644 lib/openapi/index.ts create mode 100644 lib/openapi/models/AllDeletedInBalDTO.ts create mode 100644 lib/openapi/models/BaseLocale.ts create mode 100644 lib/openapi/models/BasesLocalesCreationDto.ts create mode 100644 lib/openapi/models/BasesLocalesStatusDto.ts create mode 100644 lib/openapi/models/CodeCommuneDTO.ts create mode 100644 lib/openapi/models/CreateBaseLocaleDTO.ts create mode 100644 lib/openapi/models/CreateDemoBaseLocaleDTO.ts create mode 100644 lib/openapi/models/CreateNumeroDto.ts create mode 100644 lib/openapi/models/CreateToponymeDto.ts create mode 100644 lib/openapi/models/CreateVoieDto.ts create mode 100644 lib/openapi/models/DeleteBatchNumeroDto.ts create mode 100644 lib/openapi/models/ExtendedBaseLocale.ts create mode 100644 lib/openapi/models/ExtendedVoie.ts create mode 100644 lib/openapi/models/ExtentedToponyme.ts create mode 100644 lib/openapi/models/FeaturePoint.ts create mode 100644 lib/openapi/models/ImportFileBaseLocaleDTO.ts create mode 100644 lib/openapi/models/LineString.ts create mode 100644 lib/openapi/models/Numero.ts create mode 100644 lib/openapi/models/NumeroPopulate.ts create mode 100644 lib/openapi/models/ObjectId.ts create mode 100644 lib/openapi/models/PageBaseLocaleDTO.ts create mode 100644 lib/openapi/models/Point.ts create mode 100644 lib/openapi/models/PopulateVoie.ts create mode 100644 lib/openapi/models/Position.ts create mode 100644 lib/openapi/models/RecoverBaseLocaleDTO.ts create mode 100644 lib/openapi/models/RestoreVoieDto.ts create mode 100644 lib/openapi/models/Toponyme.ts create mode 100644 lib/openapi/models/UpdateBaseLocaleDTO.ts create mode 100644 lib/openapi/models/UpdateBaseLocaleDemoDTO.ts create mode 100644 lib/openapi/models/UpdateBatchNumeroChnageDto.ts create mode 100644 lib/openapi/models/UpdateBatchNumeroDto.ts create mode 100644 lib/openapi/models/UpdateNumeroDto.ts create mode 100644 lib/openapi/models/UpdateToponymeDto.ts create mode 100644 lib/openapi/models/UpdateVoieDto.ts create mode 100644 lib/openapi/models/ValidatePinCodeDTO.ts create mode 100644 lib/openapi/models/Voie.ts create mode 100644 lib/openapi/services/BasesLocalesService.ts create mode 100644 lib/openapi/services/CommuneService.ts create mode 100644 lib/openapi/services/ExportCsvService.ts create mode 100644 lib/openapi/services/HabilitationService.ts create mode 100644 lib/openapi/services/NumerosService.ts create mode 100644 lib/openapi/services/StatsService.ts create mode 100644 lib/openapi/services/TilesService.ts create mode 100644 lib/openapi/services/ToponymesService.ts create mode 100644 lib/openapi/services/VoiesService.ts diff --git a/lib/openapi/core/ApiError.ts b/lib/openapi/core/ApiError.ts new file mode 100644 index 000000000..d6b8fcc3a --- /dev/null +++ b/lib/openapi/core/ApiError.ts @@ -0,0 +1,25 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { ApiRequestOptions } from './ApiRequestOptions'; +import type { ApiResult } from './ApiResult'; + +export class ApiError extends Error { + public readonly url: string; + public readonly status: number; + public readonly statusText: string; + public readonly body: any; + public readonly request: ApiRequestOptions; + + constructor(request: ApiRequestOptions, response: ApiResult, message: string) { + super(message); + + this.name = 'ApiError'; + this.url = response.url; + this.status = response.status; + this.statusText = response.statusText; + this.body = response.body; + this.request = request; + } +} diff --git a/lib/openapi/core/ApiRequestOptions.ts b/lib/openapi/core/ApiRequestOptions.ts new file mode 100644 index 000000000..c19adcc94 --- /dev/null +++ b/lib/openapi/core/ApiRequestOptions.ts @@ -0,0 +1,17 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type ApiRequestOptions = { + readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH'; + readonly url: string; + readonly path?: Record; + readonly cookies?: Record; + readonly headers?: Record; + readonly query?: Record; + readonly formData?: Record; + readonly body?: any; + readonly mediaType?: string; + readonly responseHeader?: string; + readonly errors?: Record; +}; diff --git a/lib/openapi/core/ApiResult.ts b/lib/openapi/core/ApiResult.ts new file mode 100644 index 000000000..ad8fef2bc --- /dev/null +++ b/lib/openapi/core/ApiResult.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type ApiResult = { + readonly url: string; + readonly ok: boolean; + readonly status: number; + readonly statusText: string; + readonly body: any; +}; diff --git a/lib/openapi/core/CancelablePromise.ts b/lib/openapi/core/CancelablePromise.ts new file mode 100644 index 000000000..55fef8517 --- /dev/null +++ b/lib/openapi/core/CancelablePromise.ts @@ -0,0 +1,131 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export class CancelError extends Error { + + constructor(message: string) { + super(message); + this.name = 'CancelError'; + } + + public get isCancelled(): boolean { + return true; + } +} + +export interface OnCancel { + readonly isResolved: boolean; + readonly isRejected: boolean; + readonly isCancelled: boolean; + + (cancelHandler: () => void): void; +} + +export class CancelablePromise implements Promise { + #isResolved: boolean; + #isRejected: boolean; + #isCancelled: boolean; + readonly #cancelHandlers: (() => void)[]; + readonly #promise: Promise; + #resolve?: (value: T | PromiseLike) => void; + #reject?: (reason?: any) => void; + + constructor( + executor: ( + resolve: (value: T | PromiseLike) => void, + reject: (reason?: any) => void, + onCancel: OnCancel + ) => void + ) { + this.#isResolved = false; + this.#isRejected = false; + this.#isCancelled = false; + this.#cancelHandlers = []; + this.#promise = new Promise((resolve, reject) => { + this.#resolve = resolve; + this.#reject = reject; + + const onResolve = (value: T | PromiseLike): void => { + if (this.#isResolved || this.#isRejected || this.#isCancelled) { + return; + } + this.#isResolved = true; + this.#resolve?.(value); + }; + + const onReject = (reason?: any): void => { + if (this.#isResolved || this.#isRejected || this.#isCancelled) { + return; + } + this.#isRejected = true; + this.#reject?.(reason); + }; + + const onCancel = (cancelHandler: () => void): void => { + if (this.#isResolved || this.#isRejected || this.#isCancelled) { + return; + } + this.#cancelHandlers.push(cancelHandler); + }; + + Object.defineProperty(onCancel, 'isResolved', { + get: (): boolean => this.#isResolved, + }); + + Object.defineProperty(onCancel, 'isRejected', { + get: (): boolean => this.#isRejected, + }); + + Object.defineProperty(onCancel, 'isCancelled', { + get: (): boolean => this.#isCancelled, + }); + + return executor(onResolve, onReject, onCancel as OnCancel); + }); + } + + get [Symbol.toStringTag]() { + return "Cancellable Promise"; + } + + public then( + onFulfilled?: ((value: T) => TResult1 | PromiseLike) | null, + onRejected?: ((reason: any) => TResult2 | PromiseLike) | null + ): Promise { + return this.#promise.then(onFulfilled, onRejected); + } + + public catch( + onRejected?: ((reason: any) => TResult | PromiseLike) | null + ): Promise { + return this.#promise.catch(onRejected); + } + + public finally(onFinally?: (() => void) | null): Promise { + return this.#promise.finally(onFinally); + } + + public cancel(): void { + if (this.#isResolved || this.#isRejected || this.#isCancelled) { + return; + } + this.#isCancelled = true; + if (this.#cancelHandlers.length) { + try { + for (const cancelHandler of this.#cancelHandlers) { + cancelHandler(); + } + } catch (error) { + console.warn('Cancellation threw an error', error); + return; + } + } + this.#cancelHandlers.length = 0; + this.#reject?.(new CancelError('Request aborted')); + } + + public get isCancelled(): boolean { + return this.#isCancelled; + } +} diff --git a/lib/openapi/core/OpenAPI.ts b/lib/openapi/core/OpenAPI.ts new file mode 100644 index 000000000..342170aa8 --- /dev/null +++ b/lib/openapi/core/OpenAPI.ts @@ -0,0 +1,32 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { ApiRequestOptions } from './ApiRequestOptions'; + +type Resolver = (options: ApiRequestOptions) => Promise; +type Headers = Record; + +export type OpenAPIConfig = { + BASE: string; + VERSION: string; + WITH_CREDENTIALS: boolean; + CREDENTIALS: 'include' | 'omit' | 'same-origin'; + TOKEN?: string | Resolver | undefined; + USERNAME?: string | Resolver | undefined; + PASSWORD?: string | Resolver | undefined; + HEADERS?: Headers | Resolver | undefined; + ENCODE_PATH?: ((path: string) => string) | undefined; +}; + +export const OpenAPI: OpenAPIConfig = { + BASE: '', + VERSION: '2.0', + WITH_CREDENTIALS: false, + CREDENTIALS: 'include', + TOKEN: undefined, + USERNAME: undefined, + PASSWORD: undefined, + HEADERS: undefined, + ENCODE_PATH: undefined, +}; diff --git a/lib/openapi/core/request.ts b/lib/openapi/core/request.ts new file mode 100644 index 000000000..b018a07ca --- /dev/null +++ b/lib/openapi/core/request.ts @@ -0,0 +1,320 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import { ApiError } from './ApiError'; +import type { ApiRequestOptions } from './ApiRequestOptions'; +import type { ApiResult } from './ApiResult'; +import { CancelablePromise } from './CancelablePromise'; +import type { OnCancel } from './CancelablePromise'; +import type { OpenAPIConfig } from './OpenAPI'; + +export const isDefined = (value: T | null | undefined): value is Exclude => { + return value !== undefined && value !== null; +}; + +export const isString = (value: any): value is string => { + return typeof value === 'string'; +}; + +export const isStringWithValue = (value: any): value is string => { + return isString(value) && value !== ''; +}; + +export const isBlob = (value: any): value is Blob => { + return ( + typeof value === 'object' && + typeof value.type === 'string' && + typeof value.stream === 'function' && + typeof value.arrayBuffer === 'function' && + typeof value.constructor === 'function' && + typeof value.constructor.name === 'string' && + /^(Blob|File)$/.test(value.constructor.name) && + /^(Blob|File)$/.test(value[Symbol.toStringTag]) + ); +}; + +export const isFormData = (value: any): value is FormData => { + return value instanceof FormData; +}; + +export const base64 = (str: string): string => { + try { + return btoa(str); + } catch (err) { + // @ts-ignore + return Buffer.from(str).toString('base64'); + } +}; + +export const getQueryString = (params: Record): string => { + const qs: string[] = []; + + const append = (key: string, value: any) => { + qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`); + }; + + const process = (key: string, value: any) => { + if (isDefined(value)) { + if (Array.isArray(value)) { + value.forEach(v => { + process(key, v); + }); + } else if (typeof value === 'object') { + Object.entries(value).forEach(([k, v]) => { + process(`${key}[${k}]`, v); + }); + } else { + append(key, value); + } + } + }; + + Object.entries(params).forEach(([key, value]) => { + process(key, value); + }); + + if (qs.length > 0) { + return `?${qs.join('&')}`; + } + + return ''; +}; + +const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => { + const encoder = config.ENCODE_PATH || encodeURI; + + const path = options.url + .replace('{api-version}', config.VERSION) + .replace(/{(.*?)}/g, (substring: string, group: string) => { + if (options.path?.hasOwnProperty(group)) { + return encoder(String(options.path[group])); + } + return substring; + }); + + const url = `${config.BASE}${path}`; + if (options.query) { + return `${url}${getQueryString(options.query)}`; + } + return url; +}; + +export const getFormData = (options: ApiRequestOptions): FormData | undefined => { + if (options.formData) { + const formData = new FormData(); + + const process = (key: string, value: any) => { + if (isString(value) || isBlob(value)) { + formData.append(key, value); + } else { + formData.append(key, JSON.stringify(value)); + } + }; + + Object.entries(options.formData) + .filter(([_, value]) => isDefined(value)) + .forEach(([key, value]) => { + if (Array.isArray(value)) { + value.forEach(v => process(key, v)); + } else { + process(key, value); + } + }); + + return formData; + } + return undefined; +}; + +type Resolver = (options: ApiRequestOptions) => Promise; + +export const resolve = async (options: ApiRequestOptions, resolver?: T | Resolver): Promise => { + if (typeof resolver === 'function') { + return (resolver as Resolver)(options); + } + return resolver; +}; + +export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise => { + const token = await resolve(options, config.TOKEN); + const username = await resolve(options, config.USERNAME); + const password = await resolve(options, config.PASSWORD); + const additionalHeaders = await resolve(options, config.HEADERS); + + const headers = Object.entries({ + Accept: 'application/json', + ...additionalHeaders, + ...options.headers, + }) + .filter(([_, value]) => isDefined(value)) + .reduce((headers, [key, value]) => ({ + ...headers, + [key]: String(value), + }), {} as Record); + + if (isStringWithValue(token)) { + headers['Authorization'] = `Bearer ${token}`; + } + + if (isStringWithValue(username) && isStringWithValue(password)) { + const credentials = base64(`${username}:${password}`); + headers['Authorization'] = `Basic ${credentials}`; + } + + if (options.body) { + if (options.mediaType) { + headers['Content-Type'] = options.mediaType; + } else if (isBlob(options.body)) { + headers['Content-Type'] = options.body.type || 'application/octet-stream'; + } else if (isString(options.body)) { + headers['Content-Type'] = 'text/plain'; + } else if (!isFormData(options.body)) { + headers['Content-Type'] = 'application/json'; + } + } + + return new Headers(headers); +}; + +export const getRequestBody = (options: ApiRequestOptions): any => { + if (options.body !== undefined) { + if (options.mediaType?.includes('/json')) { + return JSON.stringify(options.body) + } else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) { + return options.body; + } else { + return JSON.stringify(options.body); + } + } + return undefined; +}; + +export const sendRequest = async ( + config: OpenAPIConfig, + options: ApiRequestOptions, + url: string, + body: any, + formData: FormData | undefined, + headers: Headers, + onCancel: OnCancel +): Promise => { + const controller = new AbortController(); + + const request: RequestInit = { + headers, + body: body ?? formData, + method: options.method, + signal: controller.signal, + }; + + if (config.WITH_CREDENTIALS) { + request.credentials = config.CREDENTIALS; + } + + onCancel(() => controller.abort()); + + return await fetch(url, request); +}; + +export const getResponseHeader = (response: Response, responseHeader?: string): string | undefined => { + if (responseHeader) { + const content = response.headers.get(responseHeader); + if (isString(content)) { + return content; + } + } + return undefined; +}; + +export const getResponseBody = async (response: Response): Promise => { + if (response.status !== 204) { + try { + const contentType = response.headers.get('Content-Type'); + if (contentType) { + const jsonTypes = ['application/json', 'application/problem+json'] + const isJSON = jsonTypes.some(type => contentType.toLowerCase().startsWith(type)); + if (isJSON) { + return await response.json(); + } else { + return await response.text(); + } + } + } catch (error) { + console.error(error); + } + } + return undefined; +}; + +export const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => { + const errors: Record = { + 400: 'Bad Request', + 401: 'Unauthorized', + 403: 'Forbidden', + 404: 'Not Found', + 500: 'Internal Server Error', + 502: 'Bad Gateway', + 503: 'Service Unavailable', + ...options.errors, + } + + const error = errors[result.status]; + if (error) { + throw new ApiError(options, result, error); + } + + if (!result.ok) { + const errorStatus = result.status ?? 'unknown'; + const errorStatusText = result.statusText ?? 'unknown'; + const errorBody = (() => { + try { + return JSON.stringify(result.body, null, 2); + } catch (e) { + return undefined; + } + })(); + + throw new ApiError(options, result, + `Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}` + ); + } +}; + +/** + * Request method + * @param config The OpenAPI configuration object + * @param options The request options from the service + * @returns CancelablePromise + * @throws ApiError + */ +export const request = (config: OpenAPIConfig, options: ApiRequestOptions): CancelablePromise => { + return new CancelablePromise(async (resolve, reject, onCancel) => { + try { + const url = getUrl(config, options); + const formData = getFormData(options); + const body = getRequestBody(options); + const headers = await getHeaders(config, options); + + if (!onCancel.isCancelled) { + const response = await sendRequest(config, options, url, body, formData, headers, onCancel); + const responseBody = await getResponseBody(response); + const responseHeader = getResponseHeader(response, options.responseHeader); + + const result: ApiResult = { + url, + ok: response.ok, + status: response.status, + statusText: response.statusText, + body: responseHeader ?? responseBody, + }; + + catchErrorCodes(options, result); + + resolve(result.body); + } + } catch (error) { + reject(error); + } + }); +}; diff --git a/lib/openapi/index.ts b/lib/openapi/index.ts new file mode 100644 index 000000000..e01611cbf --- /dev/null +++ b/lib/openapi/index.ts @@ -0,0 +1,55 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export { ApiError } from './core/ApiError'; +export { CancelablePromise, CancelError } from './core/CancelablePromise'; +export { OpenAPI } from './core/OpenAPI'; +export type { OpenAPIConfig } from './core/OpenAPI'; + +export type { AllDeletedInBalDTO } from './models/AllDeletedInBalDTO'; +export type { BaseLocale } from './models/BaseLocale'; +export type { BasesLocalesCreationDto } from './models/BasesLocalesCreationDto'; +export type { BasesLocalesStatusDto } from './models/BasesLocalesStatusDto'; +export type { CodeCommuneDTO } from './models/CodeCommuneDTO'; +export type { CreateBaseLocaleDTO } from './models/CreateBaseLocaleDTO'; +export type { CreateDemoBaseLocaleDTO } from './models/CreateDemoBaseLocaleDTO'; +export type { CreateNumeroDto } from './models/CreateNumeroDto'; +export type { CreateToponymeDto } from './models/CreateToponymeDto'; +export type { CreateVoieDto } from './models/CreateVoieDto'; +export type { DeleteBatchNumeroDto } from './models/DeleteBatchNumeroDto'; +export type { ExtendedBaseLocale } from './models/ExtendedBaseLocale'; +export type { ExtendedVoie } from './models/ExtendedVoie'; +export type { ExtentedToponyme } from './models/ExtentedToponyme'; +export type { FeaturePoint } from './models/FeaturePoint'; +export type { ImportFileBaseLocaleDTO } from './models/ImportFileBaseLocaleDTO'; +export type { LineString } from './models/LineString'; +export type { Numero } from './models/Numero'; +export type { NumeroPopulate } from './models/NumeroPopulate'; +export type { ObjectId } from './models/ObjectId'; +export type { PageBaseLocaleDTO } from './models/PageBaseLocaleDTO'; +export type { Point } from './models/Point'; +export type { PopulateVoie } from './models/PopulateVoie'; +export type { Position } from './models/Position'; +export type { RecoverBaseLocaleDTO } from './models/RecoverBaseLocaleDTO'; +export type { RestoreVoieDto } from './models/RestoreVoieDto'; +export type { Toponyme } from './models/Toponyme'; +export type { UpdateBaseLocaleDemoDTO } from './models/UpdateBaseLocaleDemoDTO'; +export type { UpdateBaseLocaleDTO } from './models/UpdateBaseLocaleDTO'; +export type { UpdateBatchNumeroChnageDto } from './models/UpdateBatchNumeroChnageDto'; +export type { UpdateBatchNumeroDto } from './models/UpdateBatchNumeroDto'; +export type { UpdateNumeroDto } from './models/UpdateNumeroDto'; +export type { UpdateToponymeDto } from './models/UpdateToponymeDto'; +export type { UpdateVoieDto } from './models/UpdateVoieDto'; +export type { ValidatePinCodeDTO } from './models/ValidatePinCodeDTO'; +export type { Voie } from './models/Voie'; + +export { BasesLocalesService } from './services/BasesLocalesService'; +export { CommuneService } from './services/CommuneService'; +export { ExportCsvService } from './services/ExportCsvService'; +export { HabilitationService } from './services/HabilitationService'; +export { NumerosService } from './services/NumerosService'; +export { StatsService } from './services/StatsService'; +export { TilesService } from './services/TilesService'; +export { ToponymesService } from './services/ToponymesService'; +export { VoiesService } from './services/VoiesService'; diff --git a/lib/openapi/models/AllDeletedInBalDTO.ts b/lib/openapi/models/AllDeletedInBalDTO.ts new file mode 100644 index 000000000..de5340db0 --- /dev/null +++ b/lib/openapi/models/AllDeletedInBalDTO.ts @@ -0,0 +1,13 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { PopulateVoie } from './PopulateVoie'; +import type { Toponyme } from './Toponyme'; + +export type AllDeletedInBalDTO = { + voies: Array; + toponymes: Array; +}; + diff --git a/lib/openapi/models/BaseLocale.ts b/lib/openapi/models/BaseLocale.ts new file mode 100644 index 000000000..aed0348f2 --- /dev/null +++ b/lib/openapi/models/BaseLocale.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; + +export type BaseLocale = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; +}; + diff --git a/lib/openapi/models/BasesLocalesCreationDto.ts b/lib/openapi/models/BasesLocalesCreationDto.ts new file mode 100644 index 000000000..6f2276260 --- /dev/null +++ b/lib/openapi/models/BasesLocalesCreationDto.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type BasesLocalesCreationDto = { + date: string; + createdBAL: Record; +}; + diff --git a/lib/openapi/models/BasesLocalesStatusDto.ts b/lib/openapi/models/BasesLocalesStatusDto.ts new file mode 100644 index 000000000..6fce481da --- /dev/null +++ b/lib/openapi/models/BasesLocalesStatusDto.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; + +export type BasesLocalesStatusDto = { + status: ObjectId; + count: number; +}; + diff --git a/lib/openapi/models/CodeCommuneDTO.ts b/lib/openapi/models/CodeCommuneDTO.ts new file mode 100644 index 000000000..d67d85723 --- /dev/null +++ b/lib/openapi/models/CodeCommuneDTO.ts @@ -0,0 +1,9 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type CodeCommuneDTO = { + codeCommunes: Array; +}; + diff --git a/lib/openapi/models/CreateBaseLocaleDTO.ts b/lib/openapi/models/CreateBaseLocaleDTO.ts new file mode 100644 index 000000000..71b0e29ac --- /dev/null +++ b/lib/openapi/models/CreateBaseLocaleDTO.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type CreateBaseLocaleDTO = { + nom: string; + emails: Array; + commune: string; +}; + diff --git a/lib/openapi/models/CreateDemoBaseLocaleDTO.ts b/lib/openapi/models/CreateDemoBaseLocaleDTO.ts new file mode 100644 index 000000000..182855b04 --- /dev/null +++ b/lib/openapi/models/CreateDemoBaseLocaleDTO.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type CreateDemoBaseLocaleDTO = { + commune: string; + populate?: boolean | null; +}; + diff --git a/lib/openapi/models/CreateNumeroDto.ts b/lib/openapi/models/CreateNumeroDto.ts new file mode 100644 index 000000000..59141f8f2 --- /dev/null +++ b/lib/openapi/models/CreateNumeroDto.ts @@ -0,0 +1,18 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; +import type { Position } from './Position'; + +export type CreateNumeroDto = { + numero: number; + suffixe?: string | null; + comment?: string | null; + toponyme?: ObjectId | null; + parcelles?: Array; + certifie?: boolean; + positions: Array; +}; + diff --git a/lib/openapi/models/CreateToponymeDto.ts b/lib/openapi/models/CreateToponymeDto.ts new file mode 100644 index 000000000..bdba1ad36 --- /dev/null +++ b/lib/openapi/models/CreateToponymeDto.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Position } from './Position'; + +export type CreateToponymeDto = { + nom: string; + nomAlt?: Record | null; + parcelles?: Array | null; + positions?: Array; +}; + diff --git a/lib/openapi/models/CreateVoieDto.ts b/lib/openapi/models/CreateVoieDto.ts new file mode 100644 index 000000000..4bfec1666 --- /dev/null +++ b/lib/openapi/models/CreateVoieDto.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { LineString } from './LineString'; + +export type CreateVoieDto = { + nom: string; + nomAlt?: Record | null; + typeNumerotation?: Record; + trace?: LineString; +}; + diff --git a/lib/openapi/models/DeleteBatchNumeroDto.ts b/lib/openapi/models/DeleteBatchNumeroDto.ts new file mode 100644 index 000000000..943c06bdf --- /dev/null +++ b/lib/openapi/models/DeleteBatchNumeroDto.ts @@ -0,0 +1,9 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type DeleteBatchNumeroDto = { + numerosIds: Array; +}; + diff --git a/lib/openapi/models/ExtendedBaseLocale.ts b/lib/openapi/models/ExtendedBaseLocale.ts new file mode 100644 index 000000000..21d8e560a --- /dev/null +++ b/lib/openapi/models/ExtendedBaseLocale.ts @@ -0,0 +1,18 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; + +export type ExtendedBaseLocale = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + nbNumeros: number; + nbNumerosCertifies: number; + isAllCertified: boolean; + commentedNumeros: Array; +}; + diff --git a/lib/openapi/models/ExtendedVoie.ts b/lib/openapi/models/ExtendedVoie.ts new file mode 100644 index 000000000..2906309eb --- /dev/null +++ b/lib/openapi/models/ExtendedVoie.ts @@ -0,0 +1,30 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { FeaturePoint } from './FeaturePoint'; +import type { LineString } from './LineString'; +import type { ObjectId } from './ObjectId'; + +export type ExtendedVoie = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + _bal: ObjectId; + nom: string; + commune: string; + nomAlt: Record; + centroid: FeaturePoint; + centroidTiles: Array; + typeNumerotation: Record; + trace: LineString; + traceTiles: Array; + nbNumeros: number; + nbNumerosCertifies: number; + isAllCertified: boolean; + commentedNumeros: Array; + bbox: Record; +}; + diff --git a/lib/openapi/models/ExtentedToponyme.ts b/lib/openapi/models/ExtentedToponyme.ts new file mode 100644 index 000000000..765bd5348 --- /dev/null +++ b/lib/openapi/models/ExtentedToponyme.ts @@ -0,0 +1,19 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; + +export type ExtentedToponyme = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + nbNumeros: number; + nbNumerosCertifies: number; + isAllCertified: boolean; + commentedNumeros: Array; + bbox: Record; +}; + diff --git a/lib/openapi/models/FeaturePoint.ts b/lib/openapi/models/FeaturePoint.ts new file mode 100644 index 000000000..99af09511 --- /dev/null +++ b/lib/openapi/models/FeaturePoint.ts @@ -0,0 +1,13 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Point } from './Point'; + +export type FeaturePoint = { + type: string; + properties: Record; + geometry: Point; +}; + diff --git a/lib/openapi/models/ImportFileBaseLocaleDTO.ts b/lib/openapi/models/ImportFileBaseLocaleDTO.ts new file mode 100644 index 000000000..063615d9b --- /dev/null +++ b/lib/openapi/models/ImportFileBaseLocaleDTO.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type ImportFileBaseLocaleDTO = { + isValid: boolean; + accepted: number; + rejected: number; + commune: string; + voies: number; + numeros: number; +}; + diff --git a/lib/openapi/models/LineString.ts b/lib/openapi/models/LineString.ts new file mode 100644 index 000000000..44be19b24 --- /dev/null +++ b/lib/openapi/models/LineString.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type LineString = { + type: string; + coordinates: Array; +}; + diff --git a/lib/openapi/models/Numero.ts b/lib/openapi/models/Numero.ts new file mode 100644 index 000000000..88e9b3f57 --- /dev/null +++ b/lib/openapi/models/Numero.ts @@ -0,0 +1,26 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; +import type { Position } from './Position'; + +export type Numero = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + _bal: ObjectId; + numero: number; + commune: string; + suffixe: string; + comment: string; + toponyme: ObjectId; + voie: ObjectId; + parcelles: Array; + certifie: boolean; + positions: Array; + tiles: Array; +}; + diff --git a/lib/openapi/models/NumeroPopulate.ts b/lib/openapi/models/NumeroPopulate.ts new file mode 100644 index 000000000..1357e1a77 --- /dev/null +++ b/lib/openapi/models/NumeroPopulate.ts @@ -0,0 +1,27 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; +import type { Position } from './Position'; +import type { Voie } from './Voie'; + +export type NumeroPopulate = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + _bal: ObjectId; + numero: number; + commune: string; + suffixe: string; + comment: string; + toponyme: ObjectId; + voie: Voie; + parcelles: Array; + certifie: boolean; + positions: Array; + tiles: Array; +}; + diff --git a/lib/openapi/models/ObjectId.ts b/lib/openapi/models/ObjectId.ts new file mode 100644 index 000000000..4515196d8 --- /dev/null +++ b/lib/openapi/models/ObjectId.ts @@ -0,0 +1,8 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type ObjectId = { +}; + diff --git a/lib/openapi/models/PageBaseLocaleDTO.ts b/lib/openapi/models/PageBaseLocaleDTO.ts new file mode 100644 index 000000000..f53aa3534 --- /dev/null +++ b/lib/openapi/models/PageBaseLocaleDTO.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ExtendedBaseLocale } from './ExtendedBaseLocale'; + +export type PageBaseLocaleDTO = { + offset: number; + limit: number; + count: number; + results: Array; +}; + diff --git a/lib/openapi/models/Point.ts b/lib/openapi/models/Point.ts new file mode 100644 index 000000000..403e8f1f7 --- /dev/null +++ b/lib/openapi/models/Point.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type Point = { + type: string; + coordinates: Record; +}; + diff --git a/lib/openapi/models/PopulateVoie.ts b/lib/openapi/models/PopulateVoie.ts new file mode 100644 index 000000000..8d5932a11 --- /dev/null +++ b/lib/openapi/models/PopulateVoie.ts @@ -0,0 +1,27 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { FeaturePoint } from './FeaturePoint'; +import type { LineString } from './LineString'; +import type { Numero } from './Numero'; +import type { ObjectId } from './ObjectId'; + +export type PopulateVoie = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + _bal: ObjectId; + nom: string; + commune: string; + nomAlt: Record; + centroid: FeaturePoint; + centroidTiles: Array; + typeNumerotation: Record; + trace: LineString; + traceTiles: Array; + numeros: Array; +}; + diff --git a/lib/openapi/models/Position.ts b/lib/openapi/models/Position.ts new file mode 100644 index 000000000..a870e390a --- /dev/null +++ b/lib/openapi/models/Position.ts @@ -0,0 +1,13 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Point } from './Point'; + +export type Position = { + type: Record; + source: string; + point: Point; +}; + diff --git a/lib/openapi/models/RecoverBaseLocaleDTO.ts b/lib/openapi/models/RecoverBaseLocaleDTO.ts new file mode 100644 index 000000000..57fd5c3b1 --- /dev/null +++ b/lib/openapi/models/RecoverBaseLocaleDTO.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type RecoverBaseLocaleDTO = { + id?: string | null; + email: string; +}; + diff --git a/lib/openapi/models/RestoreVoieDto.ts b/lib/openapi/models/RestoreVoieDto.ts new file mode 100644 index 000000000..e8c581cbf --- /dev/null +++ b/lib/openapi/models/RestoreVoieDto.ts @@ -0,0 +1,9 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type RestoreVoieDto = { + numerosIds: Array | null; +}; + diff --git a/lib/openapi/models/Toponyme.ts b/lib/openapi/models/Toponyme.ts new file mode 100644 index 000000000..a1415e1bc --- /dev/null +++ b/lib/openapi/models/Toponyme.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; + +export type Toponyme = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; +}; + diff --git a/lib/openapi/models/UpdateBaseLocaleDTO.ts b/lib/openapi/models/UpdateBaseLocaleDTO.ts new file mode 100644 index 000000000..6334c60b0 --- /dev/null +++ b/lib/openapi/models/UpdateBaseLocaleDTO.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type UpdateBaseLocaleDTO = { + nom: string; + status: Record; + emails: Array; +}; + diff --git a/lib/openapi/models/UpdateBaseLocaleDemoDTO.ts b/lib/openapi/models/UpdateBaseLocaleDemoDTO.ts new file mode 100644 index 000000000..cea42f844 --- /dev/null +++ b/lib/openapi/models/UpdateBaseLocaleDemoDTO.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type UpdateBaseLocaleDemoDTO = { + nom: string; + email: string; +}; + diff --git a/lib/openapi/models/UpdateBatchNumeroChnageDto.ts b/lib/openapi/models/UpdateBatchNumeroChnageDto.ts new file mode 100644 index 000000000..e5f1b90d2 --- /dev/null +++ b/lib/openapi/models/UpdateBatchNumeroChnageDto.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; + +export type UpdateBatchNumeroChnageDto = { + comment?: string | null; + toponyme?: ObjectId | null; + voie?: ObjectId; + positionType?: Record; + certifie?: boolean; +}; + diff --git a/lib/openapi/models/UpdateBatchNumeroDto.ts b/lib/openapi/models/UpdateBatchNumeroDto.ts new file mode 100644 index 000000000..0d884780f --- /dev/null +++ b/lib/openapi/models/UpdateBatchNumeroDto.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { UpdateBatchNumeroChnageDto } from './UpdateBatchNumeroChnageDto'; + +export type UpdateBatchNumeroDto = { + numerosIds: Array; + changes: UpdateBatchNumeroChnageDto; +}; + diff --git a/lib/openapi/models/UpdateNumeroDto.ts b/lib/openapi/models/UpdateNumeroDto.ts new file mode 100644 index 000000000..5ce164d1c --- /dev/null +++ b/lib/openapi/models/UpdateNumeroDto.ts @@ -0,0 +1,19 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; +import type { Position } from './Position'; + +export type UpdateNumeroDto = { + numero?: number; + suffixe?: string | null; + comment?: string | null; + toponyme?: ObjectId | null; + voie?: ObjectId; + parcelles?: Array; + certifie?: boolean; + positions?: Array; +}; + diff --git a/lib/openapi/models/UpdateToponymeDto.ts b/lib/openapi/models/UpdateToponymeDto.ts new file mode 100644 index 000000000..2e47bacbc --- /dev/null +++ b/lib/openapi/models/UpdateToponymeDto.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Position } from './Position'; + +export type UpdateToponymeDto = { + nom?: string; + nomAlt?: Record | null; + parcelles?: Array | null; + positions?: Array; +}; + diff --git a/lib/openapi/models/UpdateVoieDto.ts b/lib/openapi/models/UpdateVoieDto.ts new file mode 100644 index 000000000..28c6fd47c --- /dev/null +++ b/lib/openapi/models/UpdateVoieDto.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { LineString } from './LineString'; + +export type UpdateVoieDto = { + nom?: string; + nomAlt?: Record | null; + typeNumerotation?: Record; + trace?: LineString; +}; + diff --git a/lib/openapi/models/ValidatePinCodeDTO.ts b/lib/openapi/models/ValidatePinCodeDTO.ts new file mode 100644 index 000000000..007f0abe7 --- /dev/null +++ b/lib/openapi/models/ValidatePinCodeDTO.ts @@ -0,0 +1,9 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type ValidatePinCodeDTO = { + code: number; +}; + diff --git a/lib/openapi/models/Voie.ts b/lib/openapi/models/Voie.ts new file mode 100644 index 000000000..61c560b39 --- /dev/null +++ b/lib/openapi/models/Voie.ts @@ -0,0 +1,25 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { FeaturePoint } from './FeaturePoint'; +import type { LineString } from './LineString'; +import type { ObjectId } from './ObjectId'; + +export type Voie = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + _bal: ObjectId; + nom: string; + commune: string; + nomAlt: Record; + centroid: FeaturePoint; + centroidTiles: Array; + typeNumerotation: Record; + trace: LineString; + traceTiles: Array; +}; + diff --git a/lib/openapi/services/BasesLocalesService.ts b/lib/openapi/services/BasesLocalesService.ts new file mode 100644 index 000000000..059092cce --- /dev/null +++ b/lib/openapi/services/BasesLocalesService.ts @@ -0,0 +1,492 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { AllDeletedInBalDTO } from '../models/AllDeletedInBalDTO'; +import type { BaseLocale } from '../models/BaseLocale'; +import type { CreateBaseLocaleDTO } from '../models/CreateBaseLocaleDTO'; +import type { CreateDemoBaseLocaleDTO } from '../models/CreateDemoBaseLocaleDTO'; +import type { CreateToponymeDto } from '../models/CreateToponymeDto'; +import type { CreateVoieDto } from '../models/CreateVoieDto'; +import type { DeleteBatchNumeroDto } from '../models/DeleteBatchNumeroDto'; +import type { ExtendedBaseLocale } from '../models/ExtendedBaseLocale'; +import type { ExtentedToponyme } from '../models/ExtentedToponyme'; +import type { ImportFileBaseLocaleDTO } from '../models/ImportFileBaseLocaleDTO'; +import type { PageBaseLocaleDTO } from '../models/PageBaseLocaleDTO'; +import type { RecoverBaseLocaleDTO } from '../models/RecoverBaseLocaleDTO'; +import type { Toponyme } from '../models/Toponyme'; +import type { UpdateBaseLocaleDemoDTO } from '../models/UpdateBaseLocaleDemoDTO'; +import type { UpdateBaseLocaleDTO } from '../models/UpdateBaseLocaleDTO'; +import type { UpdateBatchNumeroDto } from '../models/UpdateBatchNumeroDto'; +import type { Voie } from '../models/Voie'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class BasesLocalesService { + + /** + * Create a base locale + * @param requestBody + * @returns BaseLocale + * @throws ApiError + */ + public static createBaseLocale( + requestBody: CreateBaseLocaleDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales', + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Create a base locale + * @param requestBody + * @returns BaseLocale + * @throws ApiError + */ + public static createBaseLocaleDemo( + requestBody: CreateDemoBaseLocaleDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/create-demo', + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Search BAL by filters + * @param limit + * @param offset + * @param deleted + * @param commune + * @param email + * @param status + * @returns PageBaseLocaleDTO + * @throws ApiError + */ + public static searchBaseLocale( + limit?: number, + offset?: number, + deleted?: boolean, + commune?: string, + email?: string, + status?: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/search', + query: { + 'limit': limit, + 'offset': offset, + 'deleted': deleted, + 'commune': commune, + 'email': email, + 'status': status, + }, + }); + } + + /** + * Find Base_Locale by id + * @param baseLocaleId + * @returns ExtendedBaseLocale + * @throws ApiError + */ + public static findBaseLocale( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Update one base locale + * @param baseLocaleId + * @param requestBody + * @returns BaseLocale + * @throws ApiError + */ + public static updateBaseLocale( + baseLocaleId: string, + requestBody: UpdateBaseLocaleDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/bases-locales/{baseLocaleId}', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Delete one base locale + * @param baseLocaleId + * @returns void + * @throws ApiError + */ + public static deleteBaseLocale( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/v2/bases-locales/{baseLocaleId}', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Update one base locale status to draft + * @param baseLocaleId + * @param requestBody + * @returns BaseLocale + * @throws ApiError + */ + public static updateBaseLocaleDemoToDraft( + baseLocaleId: string, + requestBody: UpdateBaseLocaleDemoDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/bases-locales/{baseLocaleId}/transform-to-draft', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Upload a CSV BAL file + * @param baseLocaleId + * @param formData + * @returns ImportFileBaseLocaleDTO + * @throws ApiError + */ + public static uploadCsvBalFile( + baseLocaleId: string, + formData: { + file?: Blob; + }, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/upload', + path: { + 'baseLocaleId': baseLocaleId, + }, + formData: formData, + mediaType: 'multipart/form-data', + }); + } + + /** + * Recover BAL access + * @param requestBody + * @returns void + * @throws ApiError + */ + public static recoveryBasesLocales( + requestBody: RecoverBaseLocaleDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/recovery', + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Restore deleted BAL + * @param token + * @param baseLocaleId + * @returns void + * @throws ApiError + */ + public static recoveryBaseLocale( + token: string, + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/{token}/recovery', + path: { + 'token': token, + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Populate Base Locale + * @param baseLocaleId + * @returns BaseLocale + * @throws ApiError + */ + public static populateBaseLocale( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/populate', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Renew Base Locale token + * @param baseLocaleId + * @returns BaseLocale + * @throws ApiError + */ + public static renewTokenBaseLocale( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/token/renew', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Find Base_Locale parcelles + * @param baseLocaleId + * @returns any + * @throws ApiError + */ + public static findBaseLocaleParcelles( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/parcelles', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Publish base locale + * @returns BaseLocale + * @throws ApiError + */ + public static publishBaseLocale(): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/sync/exec', + }); + } + + /** + * Update isPaused sync BAL to true + * @returns BaseLocale + * @throws ApiError + */ + public static pauseBaseLocale(): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/sync/pause', + }); + } + + /** + * Update isPaused sync BAL to false + * @returns BaseLocale + * @throws ApiError + */ + public static resumeBaseLocale(): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/sync/resume', + }); + } + + /** + * Find all model deleted in Bal + * @param baseLocaleId + * @returns AllDeletedInBalDTO + * @throws ApiError + */ + public static findAllDeleted( + baseLocaleId: string, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/all/deleted', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Multi update numeros + * @param baseLocaleId + * @param requestBody + * @returns any + * @throws ApiError + */ + public static updateNumeros( + baseLocaleId: string, + requestBody: UpdateBatchNumeroDto, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/bases-locales/{baseLocaleId}/numeros/batch', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Multi delete numeros + * @param baseLocaleId + * @param requestBody + * @returns void + * @throws ApiError + */ + public static deleteNumeros( + baseLocaleId: string, + requestBody: DeleteBatchNumeroDto, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/v2/bases-locales/{baseLocaleId}/numeros/batch', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Multi soft delete numeros + * @param baseLocaleId + * @param requestBody + * @returns any + * @throws ApiError + */ + public static softDeleteNumeros( + baseLocaleId: string, + requestBody: DeleteBatchNumeroDto, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/bases-locales/{baseLocaleId}/numeros/batch/soft-delete', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Find all Voie in Bal + * @param baseLocaleId + * @returns any + * @throws ApiError + */ + public static findBaseLocaleVoies( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/voies', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Create Voie in Bal + * @param baseLocaleId + * @param requestBody + * @returns Voie + * @throws ApiError + */ + public static createVoie( + baseLocaleId: string, + requestBody: CreateVoieDto, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/voies', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Find all Toponymes in Bal + * @param baseLocaleId + * @returns ExtentedToponyme + * @throws ApiError + */ + public static findBaseLocaleToponymes( + baseLocaleId: string, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/toponymes', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Create Toponyme in Bal + * @param baseLocaleId + * @param requestBody + * @returns Toponyme + * @throws ApiError + */ + public static createToponyme( + baseLocaleId: string, + requestBody: CreateToponymeDto, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/toponymes', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + +} diff --git a/lib/openapi/services/CommuneService.ts b/lib/openapi/services/CommuneService.ts new file mode 100644 index 000000000..5c273fe3f --- /dev/null +++ b/lib/openapi/services/CommuneService.ts @@ -0,0 +1,29 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class CommuneService { + + /** + * Find info commune + * @param codeCommune + * @returns any + * @throws ApiError + */ + public static findCommune( + codeCommune: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/commune/{codeCommune}', + path: { + 'codeCommune': codeCommune, + }, + }); + } + +} diff --git a/lib/openapi/services/ExportCsvService.ts b/lib/openapi/services/ExportCsvService.ts new file mode 100644 index 000000000..1b500af92 --- /dev/null +++ b/lib/openapi/services/ExportCsvService.ts @@ -0,0 +1,47 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class ExportCsvService { + + /** + * Get Bal csv file + * @param baseLocaleId + * @returns any + * @throws ApiError + */ + public static getCsvBal( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/csv', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Get voies csv file + * @param baseLocaleId + * @returns any + * @throws ApiError + */ + public static getCsvVoies( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/voies/csv', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + +} diff --git a/lib/openapi/services/HabilitationService.ts b/lib/openapi/services/HabilitationService.ts new file mode 100644 index 000000000..916de6498 --- /dev/null +++ b/lib/openapi/services/HabilitationService.ts @@ -0,0 +1,109 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { ValidatePinCodeDTO } from '../models/ValidatePinCodeDTO'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class HabilitationService { + + /** + * Find habiliation + * @param baseLocaleId + * @param token + * @returns any + * @throws ApiError + */ + public static findHabilitation( + baseLocaleId: string, + token?: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/habilitation', + path: { + 'baseLocaleId': baseLocaleId, + }, + headers: { + 'Token': token, + }, + }); + } + + /** + * Create habiliation + * @param baseLocaleId + * @param token + * @returns any + * @throws ApiError + */ + public static createHabilitation( + baseLocaleId: string, + token?: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/habilitation', + path: { + 'baseLocaleId': baseLocaleId, + }, + headers: { + 'Token': token, + }, + }); + } + + /** + * Send pin code of habilitation + * @param baseLocaleId + * @param token + * @returns any + * @throws ApiError + */ + public static sendPinCodeHabilitation( + baseLocaleId: string, + token?: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/habilitation/email/send-pin-code', + path: { + 'baseLocaleId': baseLocaleId, + }, + headers: { + 'Token': token, + }, + }); + } + + /** + * Valide pin code of habiliation + * @param baseLocaleId + * @param requestBody + * @param token + * @returns any + * @throws ApiError + */ + public static validePinCodeHabilitation( + baseLocaleId: string, + requestBody: ValidatePinCodeDTO, + token?: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/habilitation/email/validate-pin-code', + path: { + 'baseLocaleId': baseLocaleId, + }, + headers: { + 'Token': token, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + +} diff --git a/lib/openapi/services/NumerosService.ts b/lib/openapi/services/NumerosService.ts new file mode 100644 index 000000000..f0b7aeb48 --- /dev/null +++ b/lib/openapi/services/NumerosService.ts @@ -0,0 +1,90 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { Numero } from '../models/Numero'; +import type { UpdateNumeroDto } from '../models/UpdateNumeroDto'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class NumerosService { + + /** + * Find the numero by id + * @param numeroId + * @returns Numero + * @throws ApiError + */ + public static findNumero( + numeroId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/numeros/{numeroId}', + path: { + 'numeroId': numeroId, + }, + }); + } + + /** + * Update the numero by id + * @param numeroId + * @param requestBody + * @returns Numero + * @throws ApiError + */ + public static updateNumero( + numeroId: string, + requestBody: UpdateNumeroDto, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/numeros/{numeroId}', + path: { + 'numeroId': numeroId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Delete the numero by id + * @param numeroId + * @returns void + * @throws ApiError + */ + public static deleteNumero( + numeroId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/v2/numeros/{numeroId}', + path: { + 'numeroId': numeroId, + }, + }); + } + + /** + * Soft delete the numero by id + * @param numeroId + * @returns Numero + * @throws ApiError + */ + public static softDeleteNumero( + numeroId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/numeros/{numeroId}/soft-delete', + path: { + 'numeroId': numeroId, + }, + }); + } + +} diff --git a/lib/openapi/services/StatsService.ts b/lib/openapi/services/StatsService.ts new file mode 100644 index 000000000..18148aff0 --- /dev/null +++ b/lib/openapi/services/StatsService.ts @@ -0,0 +1,71 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { BaseLocale } from '../models/BaseLocale'; +import type { BasesLocalesCreationDto } from '../models/BasesLocalesCreationDto'; +import type { BasesLocalesStatusDto } from '../models/BasesLocalesStatusDto'; +import type { CodeCommuneDTO } from '../models/CodeCommuneDTO'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class StatsService { + + /** + * Find all Bals (filtered by codeCommune) + * @param requestBody + * @param fields + * @returns BaseLocale + * @throws ApiError + */ + public static findBalsStats( + requestBody: CodeCommuneDTO, + fields?: Array, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/stats/bals', + query: { + 'fields': fields, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Find all Bals status + * @returns BasesLocalesStatusDto + * @throws ApiError + */ + public static findBalsStatusStats(): CancelablePromise> { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/stats/bals/status', + }); + } + + /** + * Find all created Bals between date + * @param from + * @param to + * @returns BasesLocalesCreationDto + * @throws ApiError + */ + public static findBalsCreationStats( + from: string, + to: string, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/stats/bals/creations', + query: { + 'from': from, + 'to': to, + }, + }); + } + +} diff --git a/lib/openapi/services/TilesService.ts b/lib/openapi/services/TilesService.ts new file mode 100644 index 000000000..5bb629df8 --- /dev/null +++ b/lib/openapi/services/TilesService.ts @@ -0,0 +1,48 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class TilesService { + + /** + * Get tile (with voies and numeros features) + * @param z + * @param x + * @param y + * @param colorblindMode + * @param baseLocaleId + * @param token + * @returns any + * @throws ApiError + */ + public static getBaseLocaleTile( + z: string, + x: string, + y: string, + colorblindMode: boolean, + baseLocaleId: string, + token?: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/tiles/{z}/{x}/{y}.pbf', + path: { + 'z': z, + 'x': x, + 'y': y, + 'baseLocaleId': baseLocaleId, + }, + headers: { + 'Token': token, + }, + query: { + 'colorblindMode': colorblindMode, + }, + }); + } + +} diff --git a/lib/openapi/services/ToponymesService.ts b/lib/openapi/services/ToponymesService.ts new file mode 100644 index 000000000..acc1e41dd --- /dev/null +++ b/lib/openapi/services/ToponymesService.ts @@ -0,0 +1,128 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { ExtentedToponyme } from '../models/ExtentedToponyme'; +import type { NumeroPopulate } from '../models/NumeroPopulate'; +import type { Toponyme } from '../models/Toponyme'; +import type { UpdateToponymeDto } from '../models/UpdateToponymeDto'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class ToponymesService { + + /** + * Find Toponyme by id + * @param toponymeId + * @returns ExtentedToponyme + * @throws ApiError + */ + public static findToponyme( + toponymeId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/toponymes/{toponymeId}', + path: { + 'toponymeId': toponymeId, + }, + }); + } + + /** + * Update Toponyme by id + * @param toponymeId + * @param requestBody + * @returns Toponyme + * @throws ApiError + */ + public static updateToponyme( + toponymeId: string, + requestBody: UpdateToponymeDto, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/toponymes/{toponymeId}', + path: { + 'toponymeId': toponymeId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Delete Toponyme by id + * @param toponymeId + * @returns void + * @throws ApiError + */ + public static deleteToponyme( + toponymeId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/v2/toponymes/{toponymeId}', + path: { + 'toponymeId': toponymeId, + }, + }); + } + + /** + * Soft delete Tpponyme by id + * @param toponymeId + * @returns Toponyme + * @throws ApiError + */ + public static softDeleteToponyme( + toponymeId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/toponymes/{toponymeId}/soft-delete', + path: { + 'toponymeId': toponymeId, + }, + }); + } + + /** + * Restore Toponyme by id + * @param toponymeId + * @returns Toponyme + * @throws ApiError + */ + public static restoreToponyme( + toponymeId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/toponymes/{toponymeId}/restore', + path: { + 'toponymeId': toponymeId, + }, + }); + } + + /** + * Find all numeros which belong to the toponyme + * @param toponymeId + * @returns NumeroPopulate + * @throws ApiError + */ + public static findToponymeNumeros( + toponymeId: string, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/toponymes/{toponymeId}/numeros', + path: { + 'toponymeId': toponymeId, + }, + }); + } + +} diff --git a/lib/openapi/services/VoiesService.ts b/lib/openapi/services/VoiesService.ts new file mode 100644 index 000000000..01d2fcb08 --- /dev/null +++ b/lib/openapi/services/VoiesService.ts @@ -0,0 +1,180 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { CreateNumeroDto } from '../models/CreateNumeroDto'; +import type { ExtendedVoie } from '../models/ExtendedVoie'; +import type { Numero } from '../models/Numero'; +import type { RestoreVoieDto } from '../models/RestoreVoieDto'; +import type { Toponyme } from '../models/Toponyme'; +import type { UpdateVoieDto } from '../models/UpdateVoieDto'; +import type { Voie } from '../models/Voie'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class VoiesService { + + /** + * Find Voie by id + * @param voieId + * @returns ExtendedVoie + * @throws ApiError + */ + public static findVoie( + voieId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/voies/{voieId}', + path: { + 'voieId': voieId, + }, + }); + } + + /** + * Update Voie by id + * @param voieId + * @param requestBody + * @returns Voie + * @throws ApiError + */ + public static updateVoie( + voieId: string, + requestBody: UpdateVoieDto, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/voies/{voieId}', + path: { + 'voieId': voieId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Delete Voie by id + * @param voieId + * @returns void + * @throws ApiError + */ + public static deleteVoie( + voieId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/v2/voies/{voieId}', + path: { + 'voieId': voieId, + }, + }); + } + + /** + * Soft delete Voie by id + * @param voieId + * @returns Voie + * @throws ApiError + */ + public static softDeleteVoie( + voieId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/voies/{voieId}/soft-delete', + path: { + 'voieId': voieId, + }, + }); + } + + /** + * Restore Voie by id + * @param voieId + * @param requestBody + * @returns Voie + * @throws ApiError + */ + public static restoreVoie( + voieId: string, + requestBody: RestoreVoieDto, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/voies/{voieId}/restore', + path: { + 'voieId': voieId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Find all numeros which belong to the voie + * @param voieId + * @param isdeleted + * @returns Numero + * @throws ApiError + */ + public static findVoieNumeros( + voieId: string, + isdeleted?: boolean, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/voies/{voieId}/numeros', + path: { + 'voieId': voieId, + }, + query: { + 'isdeleted': isdeleted, + }, + }); + } + + /** + * Create numero on the voie + * @param voieId + * @param requestBody + * @returns Numero + * @throws ApiError + */ + public static createNumero( + voieId: string, + requestBody: CreateNumeroDto, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/voies/{voieId}/numeros', + path: { + 'voieId': voieId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Convert Voie (without numeros) to Toponyme + * @param voieId + * @returns Toponyme + * @throws ApiError + */ + public static convertToToponyme( + voieId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/voies/{voieId}/convert-to-toponyme', + path: { + 'voieId': voieId, + }, + }); + } + +} diff --git a/package.json b/package.json index 5bb3e0f9e..08a173942 100644 --- a/package.json +++ b/package.json @@ -9,14 +9,15 @@ "build": "yarn build-available-flags && next build", "analyze": "ANALYZE=true next build", "build-available-flags": "node scripts/build-available-flags", + "generate:openapi": "openapi --input http://localhost:5000/api-json --output ./lib/openapi", "push-staging": "./scripts/push-staging.sh" }, "dependencies": { "@babel/runtime": "^7.21.0", - "@next/bundle-analyzer": "^13.5.3", "@ban-team/shared-data": "^1.2.0", "@ban-team/validateur-bal": "^2.16.0", "@mapbox/mapbox-gl-draw": "^1.4.3", + "@next/bundle-analyzer": "^13.5.3", "@turf/bbox": "^6.5.0", "@turf/buffer": "^6.5.0", "@turf/center": "^6.5.0", @@ -62,6 +63,7 @@ "eslint": "^7.32.0", "eslint-config-next": "^13.5.3", "eslint-config-xo-nextjs": "^3.2.0", + "openapi-typescript-codegen": "^0.25.0", "xo": "^0.39.1" }, "xo": { diff --git a/yarn.lock b/yarn.lock index b8136f12d..35c14ce90 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,6 +10,16 @@ "@jridgewell/gen-mapping" "^0.1.0" "@jridgewell/trace-mapping" "^0.3.9" +"@apidevtools/json-schema-ref-parser@9.0.9": + version "9.0.9" + resolved "https://registry.yarnpkg.com/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.9.tgz#d720f9256e3609621280584f2b47ae165359268b" + integrity sha512-GBD2Le9w2+lVFoc4vswGI/TjkNIZSVp7+9xPf+X3uidBfWnAeUWmquteSyt0+VCrhNMWj/FTABISQrD3Z/YA+w== + dependencies: + "@jsdevtools/ono" "^7.1.3" + "@types/json-schema" "^7.0.6" + call-me-maybe "^1.0.1" + js-yaml "^4.1.0" + "@babel/code-frame@7.12.11": version "7.12.11" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" @@ -633,6 +643,11 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" +"@jsdevtools/ono@^7.1.3": + version "7.1.3" + resolved "https://registry.yarnpkg.com/@jsdevtools/ono/-/ono-7.1.3.tgz#9df03bbd7c696a5c58885c34aa06da41c8543796" + integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== + "@kurkle/color@^0.3.0": version "0.3.2" resolved "https://registry.yarnpkg.com/@kurkle/color/-/color-0.3.2.tgz#5acd38242e8bde4f9986e7913c8fdf49d3aa199f" @@ -1347,6 +1362,11 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== +"@types/json-schema@^7.0.6": + version "7.0.15" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" + integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== + "@types/json5@^0.0.29": version "0.0.29" resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" @@ -1691,6 +1711,11 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + aria-query@^5.1.3: version "5.3.0" resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.3.0.tgz#650c569e41ad90b51b3d7df5e5eed1c7549c103e" @@ -2178,7 +2203,7 @@ camelcase@^5.3.1: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== -camelcase@^6.2.0: +camelcase@^6.2.0, camelcase@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== @@ -2338,6 +2363,11 @@ color@^4.0.1: color-convert "^2.0.1" color-string "^1.9.0" +commander@^11.0.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-11.1.0.tgz#62fdce76006a68e5c1ab3314dc92e800eb83d906" + integrity sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ== + commander@^7.2.0: version "7.2.0" resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" @@ -4092,6 +4122,18 @@ hammerjs@^2.0.8: resolved "https://registry.yarnpkg.com/hammerjs/-/hammerjs-2.0.8.tgz#04ef77862cff2bb79d30f7692095930222bf60f1" integrity sha512-tSQXBXS/MWQOn/RKckawJ61vvsDpCom87JgxiYdGwHdOa0ht0vzUWDlfioofFCRU0L+6NGDt6XzbgoJvZkMeRQ== +handlebars@^4.7.7: + version "4.7.8" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.8.tgz#41c42c18b1be2365439188c77c6afae71c0cd9e9" + integrity sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ== + dependencies: + minimist "^1.2.5" + neo-async "^2.6.2" + source-map "^0.6.1" + wordwrap "^1.0.0" + optionalDependencies: + uglify-js "^3.1.4" + hard-rejection@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/hard-rejection/-/hard-rejection-2.1.0.tgz#1c6eda5c1685c63942766d79bb40ae773cecd883" @@ -4839,6 +4881,13 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" +js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + jsesc@^2.5.1: version "2.5.2" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" @@ -4859,6 +4908,13 @@ json-parse-even-better-errors@^2.3.0: resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== +json-schema-ref-parser@^9.0.9: + version "9.0.9" + resolved "https://registry.yarnpkg.com/json-schema-ref-parser/-/json-schema-ref-parser-9.0.9.tgz#66ea538e7450b12af342fa3d5b8458bc1e1e013f" + integrity sha512-qcP2lmGy+JUoQJ4DOQeLaZDqH9qSkeGCK3suKWxJXS82dg728Mn3j97azDMaOUmJAN4uCq91LdPx4K7E8F1a7Q== + dependencies: + "@apidevtools/json-schema-ref-parser" "9.0.9" + json-schema-traverse@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" @@ -5312,7 +5368,7 @@ minimist-options@4.1.0: is-plain-obj "^1.1.0" kind-of "^6.0.3" -minimist@^1.2.0, minimist@^1.2.8: +minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.8: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== @@ -5410,6 +5466,11 @@ negotiator@0.6.3: resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== +neo-async@^2.6.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" + integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== + next@^13.4.19: version "13.4.19" resolved "https://registry.yarnpkg.com/next/-/next-13.4.19.tgz#2326e02aeedee2c693d4f37b90e4f0ed6882b35f" @@ -5673,6 +5734,17 @@ open@^7.3.0: is-docker "^2.0.0" is-wsl "^2.1.1" +openapi-typescript-codegen@^0.25.0: + version "0.25.0" + resolved "https://registry.yarnpkg.com/openapi-typescript-codegen/-/openapi-typescript-codegen-0.25.0.tgz#0cb028f54b33b0a63bd9da3756c1c41b4e1a70e2" + integrity sha512-nN/TnIcGbP58qYgwEEy5FrAAjePcYgfMaCe3tsmYyTgI3v4RR9v8os14L+LEWDvV50+CmqiyTzRkKKtJeb6Ybg== + dependencies: + camelcase "^6.3.0" + commander "^11.0.0" + fs-extra "^11.1.1" + handlebars "^4.7.7" + json-schema-ref-parser "^9.0.9" + opener@^1.5.2: version "1.5.2" resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598" @@ -6716,6 +6788,11 @@ source-map@^0.5.6: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== +source-map@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + spdx-correct@^3.0.0: version "3.1.1" resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9" @@ -7218,6 +7295,11 @@ ua-parser-js@^0.7.30: resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.31.tgz#649a656b191dffab4f21d5e053e27ca17cbff5c6" integrity sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ== +uglify-js@^3.1.4: + version "3.17.4" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c" + integrity sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g== + ui-box@^5.4.1: version "5.4.1" resolved "https://registry.yarnpkg.com/ui-box/-/ui-box-5.4.1.tgz#34f497a143783a3513e850bd58379ac583e3f2fb" @@ -7505,6 +7587,11 @@ word-wrap@^1.2.3: resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== +wordwrap@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== + wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" From 1a89846b90c69d45e980f54e59ea4613dfb2d749 Mon Sep 17 00:00:00 2001 From: Fufeck Date: Wed, 15 Nov 2023 18:06:01 +0400 Subject: [PATCH 08/20] improve model openapi --- lib/openapi/index.ts | 11 ++++++----- lib/openapi/models/BaseLocale.ts | 22 +++++++++++++++++++++ lib/openapi/models/ExtendedBaseLocale.ts | 22 +++++++++++++++++++++ lib/openapi/models/ExtendedVoie.ts | 12 +++++++++++- lib/openapi/models/ExtentedToponyme.ts | 7 +++++++ lib/openapi/models/LineString.ts | 2 +- lib/openapi/models/Point.ts | 2 +- lib/openapi/models/PopulateVoie.ts | 12 +++++++++++- lib/openapi/models/Sync.ts | 25 ++++++++++++++++++++++++ lib/openapi/models/Toponyme.ts | 7 +++++++ lib/openapi/models/Voie.ts | 12 +++++++++++- 11 files changed, 124 insertions(+), 10 deletions(-) create mode 100644 lib/openapi/models/Sync.ts diff --git a/lib/openapi/index.ts b/lib/openapi/index.ts index e01611cbf..4254fc31c 100644 --- a/lib/openapi/index.ts +++ b/lib/openapi/index.ts @@ -8,7 +8,7 @@ export { OpenAPI } from './core/OpenAPI'; export type { OpenAPIConfig } from './core/OpenAPI'; export type { AllDeletedInBalDTO } from './models/AllDeletedInBalDTO'; -export type { BaseLocale } from './models/BaseLocale'; +export { BaseLocale } from './models/BaseLocale'; export type { BasesLocalesCreationDto } from './models/BasesLocalesCreationDto'; export type { BasesLocalesStatusDto } from './models/BasesLocalesStatusDto'; export type { CodeCommuneDTO } from './models/CodeCommuneDTO'; @@ -18,8 +18,8 @@ export type { CreateNumeroDto } from './models/CreateNumeroDto'; export type { CreateToponymeDto } from './models/CreateToponymeDto'; export type { CreateVoieDto } from './models/CreateVoieDto'; export type { DeleteBatchNumeroDto } from './models/DeleteBatchNumeroDto'; -export type { ExtendedBaseLocale } from './models/ExtendedBaseLocale'; -export type { ExtendedVoie } from './models/ExtendedVoie'; +export { ExtendedBaseLocale } from './models/ExtendedBaseLocale'; +export { ExtendedVoie } from './models/ExtendedVoie'; export type { ExtentedToponyme } from './models/ExtentedToponyme'; export type { FeaturePoint } from './models/FeaturePoint'; export type { ImportFileBaseLocaleDTO } from './models/ImportFileBaseLocaleDTO'; @@ -29,10 +29,11 @@ export type { NumeroPopulate } from './models/NumeroPopulate'; export type { ObjectId } from './models/ObjectId'; export type { PageBaseLocaleDTO } from './models/PageBaseLocaleDTO'; export type { Point } from './models/Point'; -export type { PopulateVoie } from './models/PopulateVoie'; +export { PopulateVoie } from './models/PopulateVoie'; export type { Position } from './models/Position'; export type { RecoverBaseLocaleDTO } from './models/RecoverBaseLocaleDTO'; export type { RestoreVoieDto } from './models/RestoreVoieDto'; +export { Sync } from './models/Sync'; export type { Toponyme } from './models/Toponyme'; export type { UpdateBaseLocaleDemoDTO } from './models/UpdateBaseLocaleDemoDTO'; export type { UpdateBaseLocaleDTO } from './models/UpdateBaseLocaleDTO'; @@ -42,7 +43,7 @@ export type { UpdateNumeroDto } from './models/UpdateNumeroDto'; export type { UpdateToponymeDto } from './models/UpdateToponymeDto'; export type { UpdateVoieDto } from './models/UpdateVoieDto'; export type { ValidatePinCodeDTO } from './models/ValidatePinCodeDTO'; -export type { Voie } from './models/Voie'; +export { Voie } from './models/Voie'; export { BasesLocalesService } from './services/BasesLocalesService'; export { CommuneService } from './services/CommuneService'; diff --git a/lib/openapi/models/BaseLocale.ts b/lib/openapi/models/BaseLocale.ts index aed0348f2..c27b7aabd 100644 --- a/lib/openapi/models/BaseLocale.ts +++ b/lib/openapi/models/BaseLocale.ts @@ -4,11 +4,33 @@ /* eslint-disable */ import type { ObjectId } from './ObjectId'; +import type { Sync } from './Sync'; export type BaseLocale = { _id: ObjectId; _created: string; _updated: string; _deleted: string; + nom: string; + emails: Array; + token: string; + status: BaseLocale.status; + _habilitation: string; + commune: string; + enableComplement: boolean; + sync: Sync; }; +export namespace BaseLocale { + + export enum status { + DRAFT = 'draft', + READY_TO_PUBLISH = 'ready-to-publish', + PUBLISHED = 'published', + DEMO = 'demo', + REPLACED = 'replaced', + } + + +} + diff --git a/lib/openapi/models/ExtendedBaseLocale.ts b/lib/openapi/models/ExtendedBaseLocale.ts index 21d8e560a..b1607e085 100644 --- a/lib/openapi/models/ExtendedBaseLocale.ts +++ b/lib/openapi/models/ExtendedBaseLocale.ts @@ -4,15 +4,37 @@ /* eslint-disable */ import type { ObjectId } from './ObjectId'; +import type { Sync } from './Sync'; export type ExtendedBaseLocale = { _id: ObjectId; _created: string; _updated: string; _deleted: string; + nom: string; + emails: Array; + token: string; + status: ExtendedBaseLocale.status; + _habilitation: string; + commune: string; + enableComplement: boolean; + sync: Sync; nbNumeros: number; nbNumerosCertifies: number; isAllCertified: boolean; commentedNumeros: Array; }; +export namespace ExtendedBaseLocale { + + export enum status { + DRAFT = 'draft', + READY_TO_PUBLISH = 'ready-to-publish', + PUBLISHED = 'published', + DEMO = 'demo', + REPLACED = 'replaced', + } + + +} + diff --git a/lib/openapi/models/ExtendedVoie.ts b/lib/openapi/models/ExtendedVoie.ts index 2906309eb..4284e77f9 100644 --- a/lib/openapi/models/ExtendedVoie.ts +++ b/lib/openapi/models/ExtendedVoie.ts @@ -18,7 +18,7 @@ export type ExtendedVoie = { nomAlt: Record; centroid: FeaturePoint; centroidTiles: Array; - typeNumerotation: Record; + typeNumerotation: ExtendedVoie.typeNumerotation; trace: LineString; traceTiles: Array; nbNumeros: number; @@ -28,3 +28,13 @@ export type ExtendedVoie = { bbox: Record; }; +export namespace ExtendedVoie { + + export enum typeNumerotation { + NUMERIQUE = 'numerique', + METRIQUE = 'metrique', + } + + +} + diff --git a/lib/openapi/models/ExtentedToponyme.ts b/lib/openapi/models/ExtentedToponyme.ts index 765bd5348..555b306fc 100644 --- a/lib/openapi/models/ExtentedToponyme.ts +++ b/lib/openapi/models/ExtentedToponyme.ts @@ -4,12 +4,19 @@ /* eslint-disable */ import type { ObjectId } from './ObjectId'; +import type { Position } from './Position'; export type ExtentedToponyme = { _id: ObjectId; _created: string; _updated: string; _deleted: string; + _bal: ObjectId; + nom: string; + commune: string; + nomAlt: Record; + parcelles: Array; + positions: Array; nbNumeros: number; nbNumerosCertifies: number; isAllCertified: boolean; diff --git a/lib/openapi/models/LineString.ts b/lib/openapi/models/LineString.ts index 44be19b24..9c1e311a6 100644 --- a/lib/openapi/models/LineString.ts +++ b/lib/openapi/models/LineString.ts @@ -5,6 +5,6 @@ export type LineString = { type: string; - coordinates: Array; + coordinates: Array; }; diff --git a/lib/openapi/models/Point.ts b/lib/openapi/models/Point.ts index 403e8f1f7..0494dfccc 100644 --- a/lib/openapi/models/Point.ts +++ b/lib/openapi/models/Point.ts @@ -5,6 +5,6 @@ export type Point = { type: string; - coordinates: Record; + coordinates: Array; }; diff --git a/lib/openapi/models/PopulateVoie.ts b/lib/openapi/models/PopulateVoie.ts index 8d5932a11..b0d78940d 100644 --- a/lib/openapi/models/PopulateVoie.ts +++ b/lib/openapi/models/PopulateVoie.ts @@ -19,9 +19,19 @@ export type PopulateVoie = { nomAlt: Record; centroid: FeaturePoint; centroidTiles: Array; - typeNumerotation: Record; + typeNumerotation: PopulateVoie.typeNumerotation; trace: LineString; traceTiles: Array; numeros: Array; }; +export namespace PopulateVoie { + + export enum typeNumerotation { + NUMERIQUE = 'numerique', + METRIQUE = 'metrique', + } + + +} + diff --git a/lib/openapi/models/Sync.ts b/lib/openapi/models/Sync.ts new file mode 100644 index 000000000..19c25e11e --- /dev/null +++ b/lib/openapi/models/Sync.ts @@ -0,0 +1,25 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; + +export type Sync = { + status: Sync.status; + isPaused: boolean; + lastUploadedRevisionId: ObjectId; + currentUpdated: string; +}; + +export namespace Sync { + + export enum status { + OUTDATED = 'outdated', + SYNCED = 'synced', + CONFLICT = 'conflict', + } + + +} + diff --git a/lib/openapi/models/Toponyme.ts b/lib/openapi/models/Toponyme.ts index a1415e1bc..54df94415 100644 --- a/lib/openapi/models/Toponyme.ts +++ b/lib/openapi/models/Toponyme.ts @@ -4,11 +4,18 @@ /* eslint-disable */ import type { ObjectId } from './ObjectId'; +import type { Position } from './Position'; export type Toponyme = { _id: ObjectId; _created: string; _updated: string; _deleted: string; + _bal: ObjectId; + nom: string; + commune: string; + nomAlt: Record; + parcelles: Array; + positions: Array; }; diff --git a/lib/openapi/models/Voie.ts b/lib/openapi/models/Voie.ts index 61c560b39..a9d5aab88 100644 --- a/lib/openapi/models/Voie.ts +++ b/lib/openapi/models/Voie.ts @@ -18,8 +18,18 @@ export type Voie = { nomAlt: Record; centroid: FeaturePoint; centroidTiles: Array; - typeNumerotation: Record; + typeNumerotation: Voie.typeNumerotation; trace: LineString; traceTiles: Array; }; +export namespace Voie { + + export enum typeNumerotation { + NUMERIQUE = 'numerique', + METRIQUE = 'metrique', + } + + +} + From 15b56468aaba93c09d3017462461f78783f7dd4c Mon Sep 17 00:00:00 2001 From: Fufeck Date: Wed, 15 Nov 2023 18:24:17 +0400 Subject: [PATCH 09/20] exemple with openapi --- .env.sample | 1 + contexts/token.js | 3 +++ hooks/trash.js | 5 +++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.env.sample b/.env.sample index 07ec50290..9a9d17006 100644 --- a/.env.sample +++ b/.env.sample @@ -1,5 +1,6 @@ NEXT_PUBLIC_EDITEUR_URL=https://mes-adresses.data.gouv.fr NEXT_PUBLIC_BAL_API_URL=https://api-bal.adresse.data.gouv.fr/v1 +NEXT_PUBLIC_MES_ADRESSES_API_URL=https://api-bal.adresse.data.gouv.fr/ NEXT_PUBLIC_GEO_API_URL=https://geo.api.gouv.fr NEXT_PUBLIC_ADRESSE_URL=https://adresse.data.gouv.fr NEXT_PUBLIC_API_BAN_URL=https://plateforme.adresse.data.gouv.fr diff --git a/contexts/token.js b/contexts/token.js index f13f55037..21c1f5892 100644 --- a/contexts/token.js +++ b/contexts/token.js @@ -3,9 +3,12 @@ import PropTypes from 'prop-types' import Router from 'next/router' import {getBaseLocale} from '@/lib/bal-api' +import {OpenAPI} from '@/lib/openapi' import LocalStorageContext from '@/contexts/local-storage' +OpenAPI.BASE = process.env.NEXT_PUBLIC_MES_ADRESSES_API_URL + const TokenContext = React.createContext() export function TokenContextProvider({balId, _token, ...props}) { diff --git a/hooks/trash.js b/hooks/trash.js index 11d811064..be78129fb 100644 --- a/hooks/trash.js +++ b/hooks/trash.js @@ -1,7 +1,8 @@ import {useCallback, useContext, useState} from 'react' -import {getAllDeleted, restoreToponyme, removeToponyme, removeVoie, restoreVoie, removeMultipleNumeros} from '@/lib/bal-api' +import {restoreToponyme, removeToponyme, removeVoie, restoreVoie, removeMultipleNumeros} from '@/lib/bal-api' +import {BasesLocalesService} from '@/lib/openapi' import BalDataContext from '@/contexts/bal-data' import MapContext from '@/contexts/map' @@ -22,7 +23,7 @@ function useTrash() { const [toponymesDeleted, setToponymesDeleted] = useState([]) const reloadAllDeleted = useCallback(async () => { - const res = await getAllDeleted(baseLocale._id) + const res = await BasesLocalesService.findAllDeleted(baseLocale._id) setToponymesDeleted(res.toponymes) setVoiesDeleted(res.voies) }, [baseLocale._id]) From 72cf4caedcf1ac1b32cfb3af0f8f6dccce3fd601 Mon Sep 17 00:00:00 2001 From: Guillaume Fay Date: Thu, 16 Nov 2023 17:56:34 +0100 Subject: [PATCH 10/20] open api config context --- .../{demo-warning.js => demo-warning.tsx} | 48 +++--- contexts/bal-data.js | 1 + contexts/open-api-config.tsx | 25 +++ contexts/token.js | 8 +- hooks/focus.js | 16 -- hooks/focus.ts | 16 ++ layouts/editor.tsx | 146 ++++++++---------- lib/bal-api/index.js | 72 ++++----- pages/_app.tsx | 28 +++- tsconfig.json | 121 ++++++++------- 10 files changed, 258 insertions(+), 223 deletions(-) rename components/{demo-warning.js => demo-warning.tsx} (76%) create mode 100644 contexts/open-api-config.tsx delete mode 100644 hooks/focus.js create mode 100644 hooks/focus.ts diff --git a/components/demo-warning.js b/components/demo-warning.tsx similarity index 76% rename from components/demo-warning.js rename to components/demo-warning.tsx index 0604f0c91..fc5668ff3 100644 --- a/components/demo-warning.js +++ b/components/demo-warning.tsx @@ -1,16 +1,20 @@ import {useState, useCallback, useContext} from 'react' -import PropTypes from 'prop-types' import {Pane, Text, Button, Dialog, TextInputField, WarningSignIcon, toaster} from 'evergreen-ui' -import {transformToDraft} from '@/lib/bal-api' +import {BasesLocalesService} from '@/lib/openapi/services/BasesLocalesService' -import TokenContext from '@/contexts/token' import BalDataContext from '@/contexts/bal-data' import {useInput} from '@/hooks/input' import useFocus from '@/hooks/focus' +import {BaseLocaleType} from '@/types/base-locale' -function DemoWarning({baseLocale, communeName}) { +interface DemoWarningProps { + baseLocale: BaseLocaleType; + communeName: string; +} + +function DemoWarning({baseLocale, communeName}: DemoWarningProps) { const [isShown, setIsShown] = useState(false) const [isLoading, setIsLoading] = useState(false) const [nom, setNom] = useState(`Adresses de ${communeName}`) @@ -18,31 +22,29 @@ function DemoWarning({baseLocale, communeName}) { const [ref, setIsFocus] = useFocus() const {reloadBaseLocale} = useContext(BalDataContext) - const {token} = useContext(TokenContext) const onSubmit = useCallback(async e => { e.preventDefault() setIsLoading(true) try { - await transformToDraft( + await BasesLocalesService.updateBaseLocaleDemoToDraft( baseLocale._id, { nom: nom ? nom.trim() : null, email - }, - token + } ) await reloadBaseLocale() - } catch (error) { + } catch (error: unknown) { toaster.danger('Impossible de conserver cette Base Adresse Locale', { - description: error.message + description: (error as any).message }) } setIsShown(false) setIsLoading(false) - }, [baseLocale._id, token, email, nom, reloadBaseLocale]) + }, [baseLocale._id, email, nom, reloadBaseLocale]) return ( setIsShown(false)} - onOpenComplete={() => setIsFocus(true)} + onCloseComplete={() => { + setIsShown(false) + }} + onOpenComplete={() => { + setIsFocus(true) + }} >
@@ -84,7 +90,9 @@ function DemoWarning({baseLocale, communeName}) { value={nom} label='Nom de la Base Adresse Locale' placeholder={communeName} - onChange={e => setNom(e.target.value)} + onChange={e => { + setNom(e.target.value) + }} /> - + ) } -DemoWarning.propTypes = { - baseLocale: PropTypes.shape({ - _id: PropTypes.string.isRequired, - }).isRequired, - communeName: PropTypes.string.isRequired -} - export default DemoWarning diff --git a/contexts/bal-data.js b/contexts/bal-data.js index f22c44de6..ae06d6fdd 100644 --- a/contexts/bal-data.js +++ b/contexts/bal-data.js @@ -67,6 +67,7 @@ export function BalDataContextProvider({ const reloadBaseLocale = useCallback(async () => { const bal = await getBaseLocale(baseLocale._id) + console.log('bal', bal) setBaseLocale(bal) }, [baseLocale._id]) diff --git a/contexts/open-api-config.tsx b/contexts/open-api-config.tsx new file mode 100644 index 000000000..c619ef518 --- /dev/null +++ b/contexts/open-api-config.tsx @@ -0,0 +1,25 @@ +import {OpenAPI, OpenAPIConfig} from '@/lib/openapi' +import React, {useCallback} from 'react' + +const OpenAPIConfigContext = React.createContext<(config: Partial) => void | null>(null) + +interface OpenAPIConfigProviderProps { + baseConfig?: Partial; + children: React.ReactNode; +} + +export function OpenAPIConfigProvider({baseConfig, ...props}: OpenAPIConfigProviderProps) { + if (baseConfig) { + Object.assign(OpenAPI, baseConfig) + } + + const setOpenAPIConfig = useCallback((config: Partial) => { + Object.assign(OpenAPI, config) + }, []) + + return +} + +export const OpenAPIConfigConsumer = OpenAPIConfigContext.Consumer + +export default OpenAPIConfigContext diff --git a/contexts/token.js b/contexts/token.js index 21c1f5892..a8012ffbe 100644 --- a/contexts/token.js +++ b/contexts/token.js @@ -3,16 +3,15 @@ import PropTypes from 'prop-types' import Router from 'next/router' import {getBaseLocale} from '@/lib/bal-api' -import {OpenAPI} from '@/lib/openapi' import LocalStorageContext from '@/contexts/local-storage' - -OpenAPI.BASE = process.env.NEXT_PUBLIC_MES_ADRESSES_API_URL +import OpenAPIConfigContext from '@/contexts/open-api-config' const TokenContext = React.createContext() export function TokenContextProvider({balId, _token, ...props}) { const {getBalToken, addBalAccess} = useContext(LocalStorageContext) + const setOpenAPIConfig = useContext(OpenAPIConfigContext) const [tokenIsChecking, setTokenIsChecking] = useState(false) const [token, setToken] = useState(null) @@ -24,12 +23,13 @@ export function TokenContextProvider({balId, _token, ...props}) { if (baseLocale.token) { setToken(baseLocale.token) setEmails(baseLocale.emails) + setOpenAPIConfig({TOKEN: baseLocale.token}) } else { setToken(null) } setTokenIsChecking(false) - }, [balId]) + }, [balId, setOpenAPIConfig]) useEffect(() => { if (balId) { diff --git a/hooks/focus.js b/hooks/focus.js deleted file mode 100644 index 3377f8fbe..000000000 --- a/hooks/focus.js +++ /dev/null @@ -1,16 +0,0 @@ -import {useState, useRef, useEffect} from 'react' - -function useFocus(autofocus = false) { - const ref = useRef() - const [isFocus, setIsFocus] = useState(autofocus) - - useEffect(() => { - if (ref?.current && isFocus) { - ref.current.focus() - } - }, [ref, isFocus]) - - return [ref, setIsFocus] -} - -export default useFocus diff --git a/hooks/focus.ts b/hooks/focus.ts new file mode 100644 index 000000000..680991003 --- /dev/null +++ b/hooks/focus.ts @@ -0,0 +1,16 @@ +import {useState, useRef, useEffect} from 'react' + +function useFocus(autofocus = false): [React.RefObject, React.Dispatch>] { + const ref = useRef() + const [isFocus, setIsFocus] = useState(autofocus) + + useEffect(() => { + if (ref?.current && isFocus) { + ref.current.focus() + } + }, [ref, isFocus]) + + return [ref, setIsFocus] +} + +export default useFocus diff --git a/layouts/editor.tsx b/layouts/editor.tsx index a83183be2..eb23dae70 100644 --- a/layouts/editor.tsx +++ b/layouts/editor.tsx @@ -5,7 +5,7 @@ import {DrawContextProvider} from '@/contexts/draw' import {MarkersContextProvider} from '@/contexts/markers' import {MapContextProvider} from '@/contexts/map' import TokenContext from '@/contexts/token' -import BalDataContext, {BalDataContextProvider} from '@/contexts/bal-data' +import BalDataContext from '@/contexts/bal-data' import {ParcellesContextProvider} from '@/contexts/parcelles' import Sidebar from '@/layouts/sidebar' @@ -18,103 +18,89 @@ import DrawerContent from '@/components/drawer-content' import AddressEditor from '@/components/bal/address-editor' import DemoWarning from '@/components/demo-warning' import Overlay from '@/components/overlay' -import {BaseLocaleType} from 'types/base-locale' -import {CommmuneType} from 'types/commune' +import {BaseLocaleStatus} from 'types/base-locale' import {getBaseLocale, getCommuneExtras, getToponymes, getVoies} from '@/lib/bal-api' import {getCommune} from '@/lib/geo-api' +import {CommmuneType} from '@/types/commune' interface EditorProps { - baseLocale: BaseLocaleType; - commune: CommmuneType; - voie: any; - toponyme: any; - voies: any[]; - toponymes: any[]; - numeros: any[]; children: React.ReactNode; + commune: CommmuneType; } -function Editor({baseLocale, commune, voie, toponyme, voies, toponymes, numeros, children}: EditorProps) { +function Editor({children, commune}: EditorProps) { const [isHidden, setIsHidden] = useState(false) const [isAddressFormOpen, setIsAddressFormOpen] = useState(false) const {tokenIsChecking} = useContext(TokenContext) + const {baseLocale} = useContext(BalDataContext) - const isDemo = baseLocale.status === 'demo' + const isDemo = baseLocale.status === BaseLocaleStatus.DEMO const leftOffset = useMemo(() => { return isHidden ? 0 : 500 }, [isHidden]) return ( - - - - - - - {({habilitationIsLoading}) => ( - (tokenIsChecking || habilitationIsLoading) && ( - - ) + + + + + + {({habilitationIsLoading}) => ( + (tokenIsChecking || habilitationIsLoading) && ( + + ) + )} + + + + + + + + + + + <> + {isDemo && ( + + )} + + + {baseLocale.status === 'published' && ( + + )} + + {isAddressFormOpen ? ( + { + setIsAddressFormOpen(false) + }} /> + ) : ( + children )} - - - - - - - - - - - <> - {isDemo && ( - - )} - - - {baseLocale.status === 'published' && ( - - )} - - {isAddressFormOpen ? ( - { - setIsAddressFormOpen(false) - }} /> - ) : ( - children - )} - - - - - - - + + + + + + ) } diff --git a/lib/bal-api/index.js b/lib/bal-api/index.js index 3a2461d5b..342473c2d 100644 --- a/lib/bal-api/index.js +++ b/lib/bal-api/index.js @@ -46,7 +46,7 @@ export async function getHabilitation(token, baseLocaleId) { return request(`/bases-locales/${baseLocaleId}/habilitation`, { method: 'GET', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' } }) @@ -57,7 +57,7 @@ export async function createHabilitation(token, baseLocaleId) { const response = await request(`/bases-locales/${baseLocaleId}/habilitation`, { method: 'POST', headers: { - authorization: `Token ${token}`, + authorization: `Bearerr ${token}`, 'content-type': 'application/json' } }) @@ -75,7 +75,7 @@ export async function sendAuthenticationCode(token, baseLocale, communeEmail) { method: 'POST', json: false, headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' } }) @@ -99,7 +99,7 @@ export async function validateAuthenticationCode(token, baseLocaleId, code) { const response = await request(`/bases-locales/${baseLocaleId}/habilitation/email/validate-pin-code`, { method: 'POST', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, body: JSON.stringify({code}) @@ -143,7 +143,7 @@ export async function sync(balId, token) { const response = await request(`/bases-locales/${balId}/sync/exec`, { method: 'POST', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' } }) @@ -162,7 +162,7 @@ export async function pauseSync(balId, token) { const response = await request(`/bases-locales/${balId}/sync/pause`, { method: 'POST', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' } }) @@ -180,7 +180,7 @@ export async function resumeSync(balId, token) { const response = await request(`/bases-locales/${balId}/sync/resume`, { method: 'POST', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' } }) @@ -195,7 +195,7 @@ export async function resumeSync(balId, token) { export async function getBaseLocale(balId, token) { const headers = token ? { - authorization: `Token ${token}` + authorization: `Bearer ${token}` } : {} const bal = await request(`/bases-locales/${balId}`, {headers}) @@ -228,7 +228,7 @@ export async function updateBaseLocale(balId, body, token) { const response = await request(`/bases-locales/${balId}`, { method: 'PUT', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, body: JSON.stringify(body) @@ -244,9 +244,9 @@ export async function updateBaseLocale(balId, body, token) { export async function transformToDraft(balId, body, token) { return request(`/bases-locales/${balId}/transform-to-draft`, { - method: 'POST', + method: 'PUT', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, body: JSON.stringify(body) @@ -259,7 +259,7 @@ export async function removeBaseLocale(balId, token) { json: false, method: 'DELETE', headers: { - authorization: `Token ${token}` + authorization: `Bearer ${token}` } }) @@ -276,7 +276,7 @@ export function uploadBaseLocaleCsv(balId, file, token) { return request(`/bases-locales/${balId}/upload`, { method: 'POST', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'text/csv' }, body: file @@ -314,7 +314,7 @@ export function populateCommune(balId, token) { return request(`/bases-locales/${balId}/populate`, { method: 'POST', headers: { - authorization: `Token ${token}` + authorization: `Bearer ${token}` } }) } @@ -331,7 +331,7 @@ export async function addVoie(balId, body, token) { return editRequest(`/bases-locales/${balId}/voies`, { method: 'POST', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, body: JSON.stringify({ @@ -348,7 +348,7 @@ export async function editVoie(idVoie, body, token) { return editRequest(`/voies/${idVoie}`, { method: 'PUT', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, body: JSON.stringify(body) @@ -362,7 +362,7 @@ export async function softRemoveVoie(idVoie, token) { return editRequest(`/voies/${idVoie}/soft-delete`, { method: 'PUT', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, }, @@ -377,7 +377,7 @@ export async function removeVoie(idVoie, token) { json: false, method: 'DELETE', headers: { - authorization: `Token ${token}` + authorization: `Bearer ${token}` } }) toaster.success('La voie a bien été supprimée') @@ -393,7 +393,7 @@ export async function restoreVoie(idVoie, body, token) { return editRequest(`/voies/${idVoie}/restore`, { method: 'PUT', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, body: JSON.stringify(body) @@ -408,7 +408,7 @@ export async function convertVoieToToponyme(idVoie, token) { const response = await request(`/voies/${idVoie}/convert-to-toponyme`, { method: 'PUT', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, }) @@ -434,7 +434,7 @@ export async function addToponyme(balId, body, token) { return editRequest(`/bases-locales/${balId}/toponymes`, { method: 'POST', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, body: JSON.stringify(body) @@ -448,7 +448,7 @@ export async function editToponyme(idToponyme, body, token) { return editRequest(`/toponymes/${idToponyme}`, { method: 'PUT', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, body: JSON.stringify(body) @@ -462,7 +462,7 @@ export async function softRemoveToponyme(idToponyme, token) { return editRequest(`/toponymes/${idToponyme}/soft-delete`, { method: 'PUT', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, }, @@ -477,7 +477,7 @@ export async function removeToponyme(idToponyme, token) { json: false, method: 'DELETE', headers: { - authorization: `Token ${token}` + authorization: `Bearer ${token}` } }) @@ -494,7 +494,7 @@ export async function restoreToponyme(idVoie, token) { return editRequest(`/toponymes/${idVoie}/restore`, { method: 'PUT', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, }, @@ -505,7 +505,7 @@ export async function restoreToponyme(idVoie, token) { export function getNumerosToponyme(idToponyme, token) { const headers = token ? { - authorization: `Token ${token}` + authorization: `Bearer ${token}` } : {} return request(`/toponymes/${idToponyme}/numeros`, {headers}) @@ -513,7 +513,7 @@ export function getNumerosToponyme(idToponyme, token) { export function getNumeros(idVoie, token) { const headers = token ? { - authorization: `Token ${token}` + authorization: `Bearer ${token}` } : {} return request(`/voies/${idVoie}/numeros`, {headers}) } @@ -522,7 +522,7 @@ export async function addNumero(idVoie, body, token) { return editRequest(`/voies/${idVoie}/numeros`, { method: 'POST', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, body: JSON.stringify(body) @@ -536,7 +536,7 @@ export async function editNumero(idNumero, body, token) { return editRequest(`/numeros/${idNumero}`, { method: 'PUT', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, body: JSON.stringify(body) @@ -551,7 +551,7 @@ export function certifyBAL(balId, token, changes) { method: 'PUT', headers: { 'content-type': 'application/json', - authorization: `Token ${token}` + authorization: `Bearer ${token}` }, body: JSON.stringify(changes) }) @@ -563,7 +563,7 @@ export function batchNumeros(balId, body, token) { method: 'PUT', headers: { 'content-type': 'application/json', - authorization: `Token ${token}` + authorization: `Bearer ${token}` }, body: JSON.stringify(body) }) @@ -583,7 +583,7 @@ export async function softRemoveNumero(idNumero, token) { return editRequest(`/numeros/${idNumero}/soft-delete`, { method: 'PUT', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, }, @@ -598,7 +598,7 @@ export async function removeNumero(idNumero, token) { json: false, method: 'DELETE', headers: { - authorization: `Token ${token}` + authorization: `Bearer ${token}` } }) toaster.success('Le numéro a bien été supprimé') @@ -620,7 +620,7 @@ export async function removeMultipleNumeros(balId, body, token) { method: 'DELETE', headers: { 'content-type': 'application/json', - authorization: `Token ${token}` + authorization: `Bearer ${token}` }, body: JSON.stringify(body) }) @@ -639,7 +639,7 @@ export async function softRemoveMultipleNumero(balId, body, token) { return editRequest(`/bases-locales/${balId}/numeros/batch/soft-delete`, { method: 'PUT', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' }, body: JSON.stringify(body) @@ -653,7 +653,7 @@ export function renewToken(balId, token) { return request(`/bases-locales/${balId}/token/renew`, { method: 'POST', headers: { - authorization: `Token ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' } }) diff --git a/pages/_app.tsx b/pages/_app.tsx index 33e7ec871..2031f5ecf 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -16,6 +16,8 @@ import Help from '@/components/help' import useMatomoTracker from '@/hooks/matomo-tracker' import Editor from '@/layouts/editor' import {BALRecoveryProvider} from '@/contexts/bal-recovery' +import {OpenAPIConfigProvider} from '@/contexts/open-api-config' +import {BalDataContextProvider} from '@/contexts/bal-data' interface _AppProps { Component: any; @@ -36,8 +38,14 @@ function App(props: _AppProps) { trackerUrl: process.env.NEXT_PUBLIC_MATOMO_TRACKER_URL }, pageProps) + // Temporary fix to remove the prefix "v2" from the base url + const openAPIBase = process.env.NEXT_PUBLIC_BAL_API_URL.split('/').slice(0, -1).join('/') + return ( - <> + mes-adresses.data.gouv.fr @@ -80,9 +88,19 @@ function App(props: _AppProps) { <> {query.balId ? ( - - - + + + + + + ) : ( )} @@ -100,7 +118,7 @@ function App(props: _AppProps) { max-width: fit-content; } `} - + ) } diff --git a/tsconfig.json b/tsconfig.json index f6180b963..485fa4d23 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,62 +1,63 @@ { - "compilerOptions": { - "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], - "moduleResolution": "NodeNext", - "allowJs": true, - "skipLibCheck": true, - "strict": false, - "forceConsistentCasingInFileNames": false, - "noEmit": true, - "incremental": true, - "esModuleInterop": true, - "module": "NodeNext", - "isolatedModules": true, - "jsx": "preserve", - "resolveJsonModule": true, - "baseUrl": ".", - "paths": { - "@/components/*": [ - "components/*" - ], - "@/lib/*": [ - "lib/*" - ], - "@/layouts/*": [ - "layouts/*" - ], - "@/styles/*": [ - "styles/*" - ], - "@/contexts/*": [ - "contexts/*" - ], - "@/hooks/*": [ - "hooks/*" - ], - "@/server/*": [ - "server/*" - ], - "@/pages/*": [ - "pages/*" - ], - "@/types/*": [ - "types/*" - ], - "react": [ "./node_modules/@types/react" ] - } - }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx" + "compilerOptions": { + "target": "ES6", + "lib": [ + "dom", + "dom.iterable", + "esnext" ], - "exclude": [ - "node_modules" - ] - } - \ No newline at end of file + "allowJs": true, + "skipLibCheck": true, + "strict": false, + "forceConsistentCasingInFileNames": false, + "noEmit": true, + "incremental": true, + "esModuleInterop": true, + "module": "CommonJS", + "isolatedModules": true, + "jsx": "preserve", + "resolveJsonModule": true, + "baseUrl": ".", + "paths": { + "@/components/*": [ + "components/*" + ], + "@/lib/*": [ + "lib/*" + ], + "@/layouts/*": [ + "layouts/*" + ], + "@/styles/*": [ + "styles/*" + ], + "@/contexts/*": [ + "contexts/*" + ], + "@/hooks/*": [ + "hooks/*" + ], + "@/server/*": [ + "server/*" + ], + "@/pages/*": [ + "pages/*" + ], + "@/types/*": [ + "types/*" + ], + "react": [ + "./node_modules/@types/react" + ] + }, + "moduleResolution": "node" + }, + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx" + ], + "exclude": [ + "node_modules" + ] +} From 9c3906292ee95cd17523f1d69ff74f0b434691c1 Mon Sep 17 00:00:00 2001 From: Guillaume Fay Date: Fri, 17 Nov 2023 19:11:01 +0100 Subject: [PATCH 11/20] fix create habilitation --- lib/bal-api/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bal-api/index.js b/lib/bal-api/index.js index 342473c2d..b1e1ea987 100644 --- a/lib/bal-api/index.js +++ b/lib/bal-api/index.js @@ -57,7 +57,7 @@ export async function createHabilitation(token, baseLocaleId) { const response = await request(`/bases-locales/${baseLocaleId}/habilitation`, { method: 'POST', headers: { - authorization: `Bearerr ${token}`, + authorization: `Bearer ${token}`, 'content-type': 'application/json' } }) @@ -553,7 +553,7 @@ export function certifyBAL(balId, token, changes) { 'content-type': 'application/json', authorization: `Bearer ${token}` }, - body: JSON.stringify(changes) + body: JSON.stringify({changes}) }) } From 9dafb1214b5b725a692e34983ade28cf27c73ddf Mon Sep 17 00:00:00 2001 From: Fufeck Date: Mon, 20 Nov 2023 10:59:42 +0400 Subject: [PATCH 12/20] delete console.log --- contexts/bal-data.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/contexts/bal-data.js b/contexts/bal-data.js index ae06d6fdd..32be4f114 100644 --- a/contexts/bal-data.js +++ b/contexts/bal-data.js @@ -67,8 +67,6 @@ export function BalDataContextProvider({ const reloadBaseLocale = useCallback(async () => { const bal = await getBaseLocale(baseLocale._id) - console.log('bal', bal) - setBaseLocale(bal) }, [baseLocale._id]) From 2ba481d9ce125266455005b61ba786c0c3f77381 Mon Sep 17 00:00:00 2001 From: Fufeck Date: Mon, 20 Nov 2023 11:22:44 +0400 Subject: [PATCH 13/20] correct eslint --- components/demo-warning.tsx | 2 +- package.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/demo-warning.tsx b/components/demo-warning.tsx index fc5668ff3..4e3f1e4fd 100644 --- a/components/demo-warning.tsx +++ b/components/demo-warning.tsx @@ -91,7 +91,7 @@ function DemoWarning({baseLocale, communeName}: DemoWarningProps) { label='Nom de la Base Adresse Locale' placeholder={communeName} onChange={e => { - setNom(e.target.value) + setNom(e.target.value as string) }} /> diff --git a/package.json b/package.json index 08a173942..f49882976 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,10 @@ "unicorn/no-array-for-each": "off", "unicorn/prefer-switch": "off", "unicorn/filename-case": "off", - "node/no-unsupported-features/es-syntax": "off" + "node/no-unsupported-features/es-syntax": "off", + "capitalized-comments": "off", + "@typescript-eslint/ban-tslint-comment": "off", + "unicorn/no-abusive-eslint-disable": "off" } }, "engines": { From d9dfad6822512a9dc01e97d17cb119d3eae46cce Mon Sep 17 00:00:00 2001 From: Fufeck Date: Mon, 20 Nov 2023 11:35:29 +0400 Subject: [PATCH 14/20] update openapi lib --- lib/openapi/index.ts | 30 +++++++++---------- lib/openapi/models/BasesLocalesCreationDto.ts | 2 +- lib/openapi/models/BasesLocalesStatusDto.ts | 2 +- lib/openapi/models/CreateNumeroDto.ts | 2 +- lib/openapi/models/CreateToponymeDto.ts | 2 +- lib/openapi/models/CreateVoieDto.ts | 2 +- lib/openapi/models/DeleteBatchNumeroDto.ts | 2 +- ...BaseLocale.ts => ExtendedBaseLocaleDTO.ts} | 6 ++-- .../{ExtendedVoie.ts => ExtendedVoieDTO.ts} | 6 ++-- ...ntedToponyme.ts => ExtentedToponymeDTO.ts} | 2 +- lib/openapi/models/PageBaseLocaleDTO.ts | 4 +-- lib/openapi/models/RestoreVoieDto.ts | 2 +- ...geDto.ts => UpdateBatchNumeroChangeDTO.ts} | 2 +- lib/openapi/models/UpdateBatchNumeroDto.ts | 8 ++--- lib/openapi/models/UpdateNumeroDto.ts | 2 +- lib/openapi/models/UpdateToponymeDto.ts | 2 +- lib/openapi/models/UpdateVoieDto.ts | 2 +- lib/openapi/services/BasesLocalesService.ts | 30 +++++++++---------- lib/openapi/services/HabilitationService.ts | 20 ------------- lib/openapi/services/NumerosService.ts | 4 +-- lib/openapi/services/StatsService.ts | 12 ++++---- lib/openapi/services/TilesService.ts | 5 ---- lib/openapi/services/ToponymesService.ts | 10 +++---- lib/openapi/services/VoiesService.ts | 18 +++++------ 24 files changed, 76 insertions(+), 101 deletions(-) rename lib/openapi/models/{ExtendedBaseLocale.ts => ExtendedBaseLocaleDTO.ts} (86%) rename lib/openapi/models/{ExtendedVoie.ts => ExtendedVoieDTO.ts} (87%) rename lib/openapi/models/{ExtentedToponyme.ts => ExtentedToponymeDTO.ts} (94%) rename lib/openapi/models/{UpdateBatchNumeroChnageDto.ts => UpdateBatchNumeroChangeDTO.ts} (88%) diff --git a/lib/openapi/index.ts b/lib/openapi/index.ts index 4254fc31c..d198d84fc 100644 --- a/lib/openapi/index.ts +++ b/lib/openapi/index.ts @@ -9,18 +9,18 @@ export type { OpenAPIConfig } from './core/OpenAPI'; export type { AllDeletedInBalDTO } from './models/AllDeletedInBalDTO'; export { BaseLocale } from './models/BaseLocale'; -export type { BasesLocalesCreationDto } from './models/BasesLocalesCreationDto'; -export type { BasesLocalesStatusDto } from './models/BasesLocalesStatusDto'; +export type { BasesLocalesCreationDTO } from './models/BasesLocalesCreationDTO'; +export type { BasesLocalesStatusDTO } from './models/BasesLocalesStatusDTO'; export type { CodeCommuneDTO } from './models/CodeCommuneDTO'; export type { CreateBaseLocaleDTO } from './models/CreateBaseLocaleDTO'; export type { CreateDemoBaseLocaleDTO } from './models/CreateDemoBaseLocaleDTO'; -export type { CreateNumeroDto } from './models/CreateNumeroDto'; -export type { CreateToponymeDto } from './models/CreateToponymeDto'; -export type { CreateVoieDto } from './models/CreateVoieDto'; -export type { DeleteBatchNumeroDto } from './models/DeleteBatchNumeroDto'; -export { ExtendedBaseLocale } from './models/ExtendedBaseLocale'; -export { ExtendedVoie } from './models/ExtendedVoie'; -export type { ExtentedToponyme } from './models/ExtentedToponyme'; +export type { CreateNumeroDTO } from './models/CreateNumeroDTO'; +export type { CreateToponymeDTO } from './models/CreateToponymeDTO'; +export type { CreateVoieDTO } from './models/CreateVoieDTO'; +export type { DeleteBatchNumeroDTO } from './models/DeleteBatchNumeroDTO'; +export { ExtendedBaseLocaleDTO } from './models/ExtendedBaseLocaleDTO'; +export { ExtendedVoieDTO } from './models/ExtendedVoieDTO'; +export type { ExtentedToponymeDTO } from './models/ExtentedToponymeDTO'; export type { FeaturePoint } from './models/FeaturePoint'; export type { ImportFileBaseLocaleDTO } from './models/ImportFileBaseLocaleDTO'; export type { LineString } from './models/LineString'; @@ -32,16 +32,16 @@ export type { Point } from './models/Point'; export { PopulateVoie } from './models/PopulateVoie'; export type { Position } from './models/Position'; export type { RecoverBaseLocaleDTO } from './models/RecoverBaseLocaleDTO'; -export type { RestoreVoieDto } from './models/RestoreVoieDto'; +export type { RestoreVoieDTO } from './models/RestoreVoieDTO'; export { Sync } from './models/Sync'; export type { Toponyme } from './models/Toponyme'; export type { UpdateBaseLocaleDemoDTO } from './models/UpdateBaseLocaleDemoDTO'; export type { UpdateBaseLocaleDTO } from './models/UpdateBaseLocaleDTO'; -export type { UpdateBatchNumeroChnageDto } from './models/UpdateBatchNumeroChnageDto'; -export type { UpdateBatchNumeroDto } from './models/UpdateBatchNumeroDto'; -export type { UpdateNumeroDto } from './models/UpdateNumeroDto'; -export type { UpdateToponymeDto } from './models/UpdateToponymeDto'; -export type { UpdateVoieDto } from './models/UpdateVoieDto'; +export type { UpdateBatchNumeroChangeDTO } from './models/UpdateBatchNumeroChangeDTO'; +export type { UpdateBatchNumeroDTO } from './models/UpdateBatchNumeroDTO'; +export type { UpdateNumeroDTO } from './models/UpdateNumeroDTO'; +export type { UpdateToponymeDTO } from './models/UpdateToponymeDTO'; +export type { UpdateVoieDTO } from './models/UpdateVoieDTO'; export type { ValidatePinCodeDTO } from './models/ValidatePinCodeDTO'; export { Voie } from './models/Voie'; diff --git a/lib/openapi/models/BasesLocalesCreationDto.ts b/lib/openapi/models/BasesLocalesCreationDto.ts index 6f2276260..73f3cef68 100644 --- a/lib/openapi/models/BasesLocalesCreationDto.ts +++ b/lib/openapi/models/BasesLocalesCreationDto.ts @@ -3,7 +3,7 @@ /* tslint:disable */ /* eslint-disable */ -export type BasesLocalesCreationDto = { +export type BasesLocalesCreationDTO = { date: string; createdBAL: Record; }; diff --git a/lib/openapi/models/BasesLocalesStatusDto.ts b/lib/openapi/models/BasesLocalesStatusDto.ts index 6fce481da..94ea13b98 100644 --- a/lib/openapi/models/BasesLocalesStatusDto.ts +++ b/lib/openapi/models/BasesLocalesStatusDto.ts @@ -5,7 +5,7 @@ import type { ObjectId } from './ObjectId'; -export type BasesLocalesStatusDto = { +export type BasesLocalesStatusDTO = { status: ObjectId; count: number; }; diff --git a/lib/openapi/models/CreateNumeroDto.ts b/lib/openapi/models/CreateNumeroDto.ts index 59141f8f2..e9483864d 100644 --- a/lib/openapi/models/CreateNumeroDto.ts +++ b/lib/openapi/models/CreateNumeroDto.ts @@ -6,7 +6,7 @@ import type { ObjectId } from './ObjectId'; import type { Position } from './Position'; -export type CreateNumeroDto = { +export type CreateNumeroDTO = { numero: number; suffixe?: string | null; comment?: string | null; diff --git a/lib/openapi/models/CreateToponymeDto.ts b/lib/openapi/models/CreateToponymeDto.ts index bdba1ad36..0edaabf7a 100644 --- a/lib/openapi/models/CreateToponymeDto.ts +++ b/lib/openapi/models/CreateToponymeDto.ts @@ -5,7 +5,7 @@ import type { Position } from './Position'; -export type CreateToponymeDto = { +export type CreateToponymeDTO = { nom: string; nomAlt?: Record | null; parcelles?: Array | null; diff --git a/lib/openapi/models/CreateVoieDto.ts b/lib/openapi/models/CreateVoieDto.ts index 4bfec1666..aa487f41e 100644 --- a/lib/openapi/models/CreateVoieDto.ts +++ b/lib/openapi/models/CreateVoieDto.ts @@ -5,7 +5,7 @@ import type { LineString } from './LineString'; -export type CreateVoieDto = { +export type CreateVoieDTO = { nom: string; nomAlt?: Record | null; typeNumerotation?: Record; diff --git a/lib/openapi/models/DeleteBatchNumeroDto.ts b/lib/openapi/models/DeleteBatchNumeroDto.ts index 943c06bdf..ab95eea12 100644 --- a/lib/openapi/models/DeleteBatchNumeroDto.ts +++ b/lib/openapi/models/DeleteBatchNumeroDto.ts @@ -3,7 +3,7 @@ /* tslint:disable */ /* eslint-disable */ -export type DeleteBatchNumeroDto = { +export type DeleteBatchNumeroDTO = { numerosIds: Array; }; diff --git a/lib/openapi/models/ExtendedBaseLocale.ts b/lib/openapi/models/ExtendedBaseLocaleDTO.ts similarity index 86% rename from lib/openapi/models/ExtendedBaseLocale.ts rename to lib/openapi/models/ExtendedBaseLocaleDTO.ts index b1607e085..9c14dec6a 100644 --- a/lib/openapi/models/ExtendedBaseLocale.ts +++ b/lib/openapi/models/ExtendedBaseLocaleDTO.ts @@ -6,7 +6,7 @@ import type { ObjectId } from './ObjectId'; import type { Sync } from './Sync'; -export type ExtendedBaseLocale = { +export type ExtendedBaseLocaleDTO = { _id: ObjectId; _created: string; _updated: string; @@ -14,7 +14,7 @@ export type ExtendedBaseLocale = { nom: string; emails: Array; token: string; - status: ExtendedBaseLocale.status; + status: ExtendedBaseLocaleDTO.status; _habilitation: string; commune: string; enableComplement: boolean; @@ -25,7 +25,7 @@ export type ExtendedBaseLocale = { commentedNumeros: Array; }; -export namespace ExtendedBaseLocale { +export namespace ExtendedBaseLocaleDTO { export enum status { DRAFT = 'draft', diff --git a/lib/openapi/models/ExtendedVoie.ts b/lib/openapi/models/ExtendedVoieDTO.ts similarity index 87% rename from lib/openapi/models/ExtendedVoie.ts rename to lib/openapi/models/ExtendedVoieDTO.ts index 4284e77f9..df544bd83 100644 --- a/lib/openapi/models/ExtendedVoie.ts +++ b/lib/openapi/models/ExtendedVoieDTO.ts @@ -7,7 +7,7 @@ import type { FeaturePoint } from './FeaturePoint'; import type { LineString } from './LineString'; import type { ObjectId } from './ObjectId'; -export type ExtendedVoie = { +export type ExtendedVoieDTO = { _id: ObjectId; _created: string; _updated: string; @@ -18,7 +18,7 @@ export type ExtendedVoie = { nomAlt: Record; centroid: FeaturePoint; centroidTiles: Array; - typeNumerotation: ExtendedVoie.typeNumerotation; + typeNumerotation: ExtendedVoieDTO.typeNumerotation; trace: LineString; traceTiles: Array; nbNumeros: number; @@ -28,7 +28,7 @@ export type ExtendedVoie = { bbox: Record; }; -export namespace ExtendedVoie { +export namespace ExtendedVoieDTO { export enum typeNumerotation { NUMERIQUE = 'numerique', diff --git a/lib/openapi/models/ExtentedToponyme.ts b/lib/openapi/models/ExtentedToponymeDTO.ts similarity index 94% rename from lib/openapi/models/ExtentedToponyme.ts rename to lib/openapi/models/ExtentedToponymeDTO.ts index 555b306fc..552579a2b 100644 --- a/lib/openapi/models/ExtentedToponyme.ts +++ b/lib/openapi/models/ExtentedToponymeDTO.ts @@ -6,7 +6,7 @@ import type { ObjectId } from './ObjectId'; import type { Position } from './Position'; -export type ExtentedToponyme = { +export type ExtentedToponymeDTO = { _id: ObjectId; _created: string; _updated: string; diff --git a/lib/openapi/models/PageBaseLocaleDTO.ts b/lib/openapi/models/PageBaseLocaleDTO.ts index f53aa3534..bc89a8764 100644 --- a/lib/openapi/models/PageBaseLocaleDTO.ts +++ b/lib/openapi/models/PageBaseLocaleDTO.ts @@ -3,12 +3,12 @@ /* tslint:disable */ /* eslint-disable */ -import type { ExtendedBaseLocale } from './ExtendedBaseLocale'; +import type { ExtendedBaseLocaleDTO } from './ExtendedBaseLocaleDTO'; export type PageBaseLocaleDTO = { offset: number; limit: number; count: number; - results: Array; + results: Array; }; diff --git a/lib/openapi/models/RestoreVoieDto.ts b/lib/openapi/models/RestoreVoieDto.ts index e8c581cbf..8e3386d3c 100644 --- a/lib/openapi/models/RestoreVoieDto.ts +++ b/lib/openapi/models/RestoreVoieDto.ts @@ -3,7 +3,7 @@ /* tslint:disable */ /* eslint-disable */ -export type RestoreVoieDto = { +export type RestoreVoieDTO = { numerosIds: Array | null; }; diff --git a/lib/openapi/models/UpdateBatchNumeroChnageDto.ts b/lib/openapi/models/UpdateBatchNumeroChangeDTO.ts similarity index 88% rename from lib/openapi/models/UpdateBatchNumeroChnageDto.ts rename to lib/openapi/models/UpdateBatchNumeroChangeDTO.ts index e5f1b90d2..4ec8d4e3c 100644 --- a/lib/openapi/models/UpdateBatchNumeroChnageDto.ts +++ b/lib/openapi/models/UpdateBatchNumeroChangeDTO.ts @@ -5,7 +5,7 @@ import type { ObjectId } from './ObjectId'; -export type UpdateBatchNumeroChnageDto = { +export type UpdateBatchNumeroChangeDTO = { comment?: string | null; toponyme?: ObjectId | null; voie?: ObjectId; diff --git a/lib/openapi/models/UpdateBatchNumeroDto.ts b/lib/openapi/models/UpdateBatchNumeroDto.ts index 0d884780f..dbad5a705 100644 --- a/lib/openapi/models/UpdateBatchNumeroDto.ts +++ b/lib/openapi/models/UpdateBatchNumeroDto.ts @@ -3,10 +3,10 @@ /* tslint:disable */ /* eslint-disable */ -import type { UpdateBatchNumeroChnageDto } from './UpdateBatchNumeroChnageDto'; +import type { UpdateBatchNumeroChangeDTO } from './UpdateBatchNumeroChangeDTO'; -export type UpdateBatchNumeroDto = { - numerosIds: Array; - changes: UpdateBatchNumeroChnageDto; +export type UpdateBatchNumeroDTO = { + numerosIds?: Array | null; + changes: UpdateBatchNumeroChangeDTO; }; diff --git a/lib/openapi/models/UpdateNumeroDto.ts b/lib/openapi/models/UpdateNumeroDto.ts index 5ce164d1c..a2bb2a34b 100644 --- a/lib/openapi/models/UpdateNumeroDto.ts +++ b/lib/openapi/models/UpdateNumeroDto.ts @@ -6,7 +6,7 @@ import type { ObjectId } from './ObjectId'; import type { Position } from './Position'; -export type UpdateNumeroDto = { +export type UpdateNumeroDTO = { numero?: number; suffixe?: string | null; comment?: string | null; diff --git a/lib/openapi/models/UpdateToponymeDto.ts b/lib/openapi/models/UpdateToponymeDto.ts index 2e47bacbc..d20b27310 100644 --- a/lib/openapi/models/UpdateToponymeDto.ts +++ b/lib/openapi/models/UpdateToponymeDto.ts @@ -5,7 +5,7 @@ import type { Position } from './Position'; -export type UpdateToponymeDto = { +export type UpdateToponymeDTO = { nom?: string; nomAlt?: Record | null; parcelles?: Array | null; diff --git a/lib/openapi/models/UpdateVoieDto.ts b/lib/openapi/models/UpdateVoieDto.ts index 28c6fd47c..06336e8cd 100644 --- a/lib/openapi/models/UpdateVoieDto.ts +++ b/lib/openapi/models/UpdateVoieDto.ts @@ -5,7 +5,7 @@ import type { LineString } from './LineString'; -export type UpdateVoieDto = { +export type UpdateVoieDTO = { nom?: string; nomAlt?: Record | null; typeNumerotation?: Record; diff --git a/lib/openapi/services/BasesLocalesService.ts b/lib/openapi/services/BasesLocalesService.ts index 059092cce..b7701853f 100644 --- a/lib/openapi/services/BasesLocalesService.ts +++ b/lib/openapi/services/BasesLocalesService.ts @@ -6,18 +6,18 @@ import type { AllDeletedInBalDTO } from '../models/AllDeletedInBalDTO'; import type { BaseLocale } from '../models/BaseLocale'; import type { CreateBaseLocaleDTO } from '../models/CreateBaseLocaleDTO'; import type { CreateDemoBaseLocaleDTO } from '../models/CreateDemoBaseLocaleDTO'; -import type { CreateToponymeDto } from '../models/CreateToponymeDto'; -import type { CreateVoieDto } from '../models/CreateVoieDto'; -import type { DeleteBatchNumeroDto } from '../models/DeleteBatchNumeroDto'; -import type { ExtendedBaseLocale } from '../models/ExtendedBaseLocale'; -import type { ExtentedToponyme } from '../models/ExtentedToponyme'; +import type { CreateToponymeDTO } from '../models/CreateToponymeDTO'; +import type { CreateVoieDTO } from '../models/CreateVoieDTO'; +import type { DeleteBatchNumeroDTO } from '../models/DeleteBatchNumeroDTO'; +import type { ExtendedBaseLocaleDTO } from '../models/ExtendedBaseLocaleDTO'; +import type { ExtentedToponymeDTO } from '../models/ExtentedToponymeDTO'; import type { ImportFileBaseLocaleDTO } from '../models/ImportFileBaseLocaleDTO'; import type { PageBaseLocaleDTO } from '../models/PageBaseLocaleDTO'; import type { RecoverBaseLocaleDTO } from '../models/RecoverBaseLocaleDTO'; import type { Toponyme } from '../models/Toponyme'; import type { UpdateBaseLocaleDemoDTO } from '../models/UpdateBaseLocaleDemoDTO'; import type { UpdateBaseLocaleDTO } from '../models/UpdateBaseLocaleDTO'; -import type { UpdateBatchNumeroDto } from '../models/UpdateBatchNumeroDto'; +import type { UpdateBatchNumeroDTO } from '../models/UpdateBatchNumeroDTO'; import type { Voie } from '../models/Voie'; import type { CancelablePromise } from '../core/CancelablePromise'; @@ -96,12 +96,12 @@ export class BasesLocalesService { /** * Find Base_Locale by id * @param baseLocaleId - * @returns ExtendedBaseLocale + * @returns ExtendedBaseLocaleDTO * @throws ApiError */ public static findBaseLocale( baseLocaleId: string, - ): CancelablePromise { + ): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/v2/bases-locales/{baseLocaleId}', @@ -352,7 +352,7 @@ export class BasesLocalesService { */ public static updateNumeros( baseLocaleId: string, - requestBody: UpdateBatchNumeroDto, + requestBody: UpdateBatchNumeroDTO, ): CancelablePromise { return __request(OpenAPI, { method: 'PUT', @@ -374,7 +374,7 @@ export class BasesLocalesService { */ public static deleteNumeros( baseLocaleId: string, - requestBody: DeleteBatchNumeroDto, + requestBody: DeleteBatchNumeroDTO, ): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', @@ -396,7 +396,7 @@ export class BasesLocalesService { */ public static softDeleteNumeros( baseLocaleId: string, - requestBody: DeleteBatchNumeroDto, + requestBody: DeleteBatchNumeroDTO, ): CancelablePromise { return __request(OpenAPI, { method: 'PUT', @@ -436,7 +436,7 @@ export class BasesLocalesService { */ public static createVoie( baseLocaleId: string, - requestBody: CreateVoieDto, + requestBody: CreateVoieDTO, ): CancelablePromise> { return __request(OpenAPI, { method: 'POST', @@ -452,12 +452,12 @@ export class BasesLocalesService { /** * Find all Toponymes in Bal * @param baseLocaleId - * @returns ExtentedToponyme + * @returns ExtentedToponymeDTO * @throws ApiError */ public static findBaseLocaleToponymes( baseLocaleId: string, - ): CancelablePromise> { + ): CancelablePromise> { return __request(OpenAPI, { method: 'GET', url: '/v2/bases-locales/{baseLocaleId}/toponymes', @@ -476,7 +476,7 @@ export class BasesLocalesService { */ public static createToponyme( baseLocaleId: string, - requestBody: CreateToponymeDto, + requestBody: CreateToponymeDTO, ): CancelablePromise> { return __request(OpenAPI, { method: 'POST', diff --git a/lib/openapi/services/HabilitationService.ts b/lib/openapi/services/HabilitationService.ts index 916de6498..7aae06094 100644 --- a/lib/openapi/services/HabilitationService.ts +++ b/lib/openapi/services/HabilitationService.ts @@ -13,13 +13,11 @@ export class HabilitationService { /** * Find habiliation * @param baseLocaleId - * @param token * @returns any * @throws ApiError */ public static findHabilitation( baseLocaleId: string, - token?: string, ): CancelablePromise { return __request(OpenAPI, { method: 'GET', @@ -27,22 +25,17 @@ export class HabilitationService { path: { 'baseLocaleId': baseLocaleId, }, - headers: { - 'Token': token, - }, }); } /** * Create habiliation * @param baseLocaleId - * @param token * @returns any * @throws ApiError */ public static createHabilitation( baseLocaleId: string, - token?: string, ): CancelablePromise { return __request(OpenAPI, { method: 'POST', @@ -50,22 +43,17 @@ export class HabilitationService { path: { 'baseLocaleId': baseLocaleId, }, - headers: { - 'Token': token, - }, }); } /** * Send pin code of habilitation * @param baseLocaleId - * @param token * @returns any * @throws ApiError */ public static sendPinCodeHabilitation( baseLocaleId: string, - token?: string, ): CancelablePromise { return __request(OpenAPI, { method: 'POST', @@ -73,9 +61,6 @@ export class HabilitationService { path: { 'baseLocaleId': baseLocaleId, }, - headers: { - 'Token': token, - }, }); } @@ -83,14 +68,12 @@ export class HabilitationService { * Valide pin code of habiliation * @param baseLocaleId * @param requestBody - * @param token * @returns any * @throws ApiError */ public static validePinCodeHabilitation( baseLocaleId: string, requestBody: ValidatePinCodeDTO, - token?: string, ): CancelablePromise { return __request(OpenAPI, { method: 'POST', @@ -98,9 +81,6 @@ export class HabilitationService { path: { 'baseLocaleId': baseLocaleId, }, - headers: { - 'Token': token, - }, body: requestBody, mediaType: 'application/json', }); diff --git a/lib/openapi/services/NumerosService.ts b/lib/openapi/services/NumerosService.ts index f0b7aeb48..7832191d6 100644 --- a/lib/openapi/services/NumerosService.ts +++ b/lib/openapi/services/NumerosService.ts @@ -3,7 +3,7 @@ /* tslint:disable */ /* eslint-disable */ import type { Numero } from '../models/Numero'; -import type { UpdateNumeroDto } from '../models/UpdateNumeroDto'; +import type { UpdateNumeroDTO } from '../models/UpdateNumeroDTO'; import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; @@ -38,7 +38,7 @@ export class NumerosService { */ public static updateNumero( numeroId: string, - requestBody: UpdateNumeroDto, + requestBody: UpdateNumeroDTO, ): CancelablePromise { return __request(OpenAPI, { method: 'PUT', diff --git a/lib/openapi/services/StatsService.ts b/lib/openapi/services/StatsService.ts index 18148aff0..91f00d745 100644 --- a/lib/openapi/services/StatsService.ts +++ b/lib/openapi/services/StatsService.ts @@ -3,8 +3,8 @@ /* tslint:disable */ /* eslint-disable */ import type { BaseLocale } from '../models/BaseLocale'; -import type { BasesLocalesCreationDto } from '../models/BasesLocalesCreationDto'; -import type { BasesLocalesStatusDto } from '../models/BasesLocalesStatusDto'; +import type { BasesLocalesCreationDTO } from '../models/BasesLocalesCreationDTO'; +import type { BasesLocalesStatusDTO } from '../models/BasesLocalesStatusDTO'; import type { CodeCommuneDTO } from '../models/CodeCommuneDTO'; import type { CancelablePromise } from '../core/CancelablePromise'; @@ -37,10 +37,10 @@ export class StatsService { /** * Find all Bals status - * @returns BasesLocalesStatusDto + * @returns BasesLocalesStatusDTO * @throws ApiError */ - public static findBalsStatusStats(): CancelablePromise> { + public static findBalsStatusStats(): CancelablePromise> { return __request(OpenAPI, { method: 'GET', url: '/v2/stats/bals/status', @@ -51,13 +51,13 @@ export class StatsService { * Find all created Bals between date * @param from * @param to - * @returns BasesLocalesCreationDto + * @returns BasesLocalesCreationDTO * @throws ApiError */ public static findBalsCreationStats( from: string, to: string, - ): CancelablePromise> { + ): CancelablePromise> { return __request(OpenAPI, { method: 'GET', url: '/v2/stats/bals/creations', diff --git a/lib/openapi/services/TilesService.ts b/lib/openapi/services/TilesService.ts index 5bb629df8..4f0ec1ed3 100644 --- a/lib/openapi/services/TilesService.ts +++ b/lib/openapi/services/TilesService.ts @@ -15,7 +15,6 @@ export class TilesService { * @param y * @param colorblindMode * @param baseLocaleId - * @param token * @returns any * @throws ApiError */ @@ -25,7 +24,6 @@ export class TilesService { y: string, colorblindMode: boolean, baseLocaleId: string, - token?: string, ): CancelablePromise { return __request(OpenAPI, { method: 'GET', @@ -36,9 +34,6 @@ export class TilesService { 'y': y, 'baseLocaleId': baseLocaleId, }, - headers: { - 'Token': token, - }, query: { 'colorblindMode': colorblindMode, }, diff --git a/lib/openapi/services/ToponymesService.ts b/lib/openapi/services/ToponymesService.ts index acc1e41dd..245d7fb32 100644 --- a/lib/openapi/services/ToponymesService.ts +++ b/lib/openapi/services/ToponymesService.ts @@ -2,10 +2,10 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { ExtentedToponyme } from '../models/ExtentedToponyme'; +import type { ExtentedToponymeDTO } from '../models/ExtentedToponymeDTO'; import type { NumeroPopulate } from '../models/NumeroPopulate'; import type { Toponyme } from '../models/Toponyme'; -import type { UpdateToponymeDto } from '../models/UpdateToponymeDto'; +import type { UpdateToponymeDTO } from '../models/UpdateToponymeDTO'; import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; @@ -16,12 +16,12 @@ export class ToponymesService { /** * Find Toponyme by id * @param toponymeId - * @returns ExtentedToponyme + * @returns ExtentedToponymeDTO * @throws ApiError */ public static findToponyme( toponymeId: string, - ): CancelablePromise { + ): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/v2/toponymes/{toponymeId}', @@ -40,7 +40,7 @@ export class ToponymesService { */ public static updateToponyme( toponymeId: string, - requestBody: UpdateToponymeDto, + requestBody: UpdateToponymeDTO, ): CancelablePromise { return __request(OpenAPI, { method: 'PUT', diff --git a/lib/openapi/services/VoiesService.ts b/lib/openapi/services/VoiesService.ts index 01d2fcb08..2d5201e75 100644 --- a/lib/openapi/services/VoiesService.ts +++ b/lib/openapi/services/VoiesService.ts @@ -2,12 +2,12 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { CreateNumeroDto } from '../models/CreateNumeroDto'; -import type { ExtendedVoie } from '../models/ExtendedVoie'; +import type { CreateNumeroDTO } from '../models/CreateNumeroDTO'; +import type { ExtendedVoieDTO } from '../models/ExtendedVoieDTO'; import type { Numero } from '../models/Numero'; -import type { RestoreVoieDto } from '../models/RestoreVoieDto'; +import type { RestoreVoieDTO } from '../models/RestoreVoieDTO'; import type { Toponyme } from '../models/Toponyme'; -import type { UpdateVoieDto } from '../models/UpdateVoieDto'; +import type { UpdateVoieDTO } from '../models/UpdateVoieDTO'; import type { Voie } from '../models/Voie'; import type { CancelablePromise } from '../core/CancelablePromise'; @@ -19,12 +19,12 @@ export class VoiesService { /** * Find Voie by id * @param voieId - * @returns ExtendedVoie + * @returns ExtendedVoieDTO * @throws ApiError */ public static findVoie( voieId: string, - ): CancelablePromise { + ): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/v2/voies/{voieId}', @@ -43,7 +43,7 @@ export class VoiesService { */ public static updateVoie( voieId: string, - requestBody: UpdateVoieDto, + requestBody: UpdateVoieDTO, ): CancelablePromise { return __request(OpenAPI, { method: 'PUT', @@ -101,7 +101,7 @@ export class VoiesService { */ public static restoreVoie( voieId: string, - requestBody: RestoreVoieDto, + requestBody: RestoreVoieDTO, ): CancelablePromise { return __request(OpenAPI, { method: 'PUT', @@ -146,7 +146,7 @@ export class VoiesService { */ public static createNumero( voieId: string, - requestBody: CreateNumeroDto, + requestBody: CreateNumeroDTO, ): CancelablePromise { return __request(OpenAPI, { method: 'POST', From f1915a8e073bd5f53ab028cfba475b14595791e0 Mon Sep 17 00:00:00 2001 From: Fufeck Date: Mon, 20 Nov 2023 15:54:03 +0400 Subject: [PATCH 15/20] delete lib openapi --- lib/openapi/core/ApiError.ts | 25 - lib/openapi/core/ApiRequestOptions.ts | 17 - lib/openapi/core/ApiResult.ts | 11 - lib/openapi/core/CancelablePromise.ts | 131 ----- lib/openapi/core/OpenAPI.ts | 32 -- lib/openapi/core/request.ts | 320 ------------ lib/openapi/index.ts | 56 -- lib/openapi/models/AllDeletedInBalDTO.ts | 13 - lib/openapi/models/BaseLocale.ts | 36 -- lib/openapi/models/BasesLocalesCreationDto.ts | 10 - lib/openapi/models/BasesLocalesStatusDto.ts | 12 - lib/openapi/models/CodeCommuneDTO.ts | 9 - lib/openapi/models/CreateBaseLocaleDTO.ts | 11 - lib/openapi/models/CreateDemoBaseLocaleDTO.ts | 10 - lib/openapi/models/CreateNumeroDto.ts | 18 - lib/openapi/models/CreateToponymeDto.ts | 14 - lib/openapi/models/CreateVoieDto.ts | 14 - lib/openapi/models/DeleteBatchNumeroDto.ts | 9 - lib/openapi/models/ExtendedBaseLocaleDTO.ts | 40 -- lib/openapi/models/ExtendedVoieDTO.ts | 40 -- lib/openapi/models/ExtentedToponymeDTO.ts | 26 - lib/openapi/models/FeaturePoint.ts | 13 - lib/openapi/models/ImportFileBaseLocaleDTO.ts | 14 - lib/openapi/models/LineString.ts | 10 - lib/openapi/models/Numero.ts | 26 - lib/openapi/models/NumeroPopulate.ts | 27 - lib/openapi/models/ObjectId.ts | 8 - lib/openapi/models/PageBaseLocaleDTO.ts | 14 - lib/openapi/models/Point.ts | 10 - lib/openapi/models/PopulateVoie.ts | 37 -- lib/openapi/models/Position.ts | 13 - lib/openapi/models/RecoverBaseLocaleDTO.ts | 10 - lib/openapi/models/RestoreVoieDto.ts | 9 - lib/openapi/models/Sync.ts | 25 - lib/openapi/models/Toponyme.ts | 21 - lib/openapi/models/UpdateBaseLocaleDTO.ts | 11 - lib/openapi/models/UpdateBaseLocaleDemoDTO.ts | 10 - .../models/UpdateBatchNumeroChangeDTO.ts | 15 - lib/openapi/models/UpdateBatchNumeroDto.ts | 12 - lib/openapi/models/UpdateNumeroDto.ts | 19 - lib/openapi/models/UpdateToponymeDto.ts | 14 - lib/openapi/models/UpdateVoieDto.ts | 14 - lib/openapi/models/ValidatePinCodeDTO.ts | 9 - lib/openapi/models/Voie.ts | 35 -- lib/openapi/services/BasesLocalesService.ts | 492 ------------------ lib/openapi/services/CommuneService.ts | 29 -- lib/openapi/services/ExportCsvService.ts | 47 -- lib/openapi/services/HabilitationService.ts | 89 ---- lib/openapi/services/NumerosService.ts | 90 ---- lib/openapi/services/StatsService.ts | 71 --- lib/openapi/services/TilesService.ts | 43 -- lib/openapi/services/ToponymesService.ts | 128 ----- lib/openapi/services/VoiesService.ts | 180 ------- 53 files changed, 2399 deletions(-) delete mode 100644 lib/openapi/core/ApiError.ts delete mode 100644 lib/openapi/core/ApiRequestOptions.ts delete mode 100644 lib/openapi/core/ApiResult.ts delete mode 100644 lib/openapi/core/CancelablePromise.ts delete mode 100644 lib/openapi/core/OpenAPI.ts delete mode 100644 lib/openapi/core/request.ts delete mode 100644 lib/openapi/index.ts delete mode 100644 lib/openapi/models/AllDeletedInBalDTO.ts delete mode 100644 lib/openapi/models/BaseLocale.ts delete mode 100644 lib/openapi/models/BasesLocalesCreationDto.ts delete mode 100644 lib/openapi/models/BasesLocalesStatusDto.ts delete mode 100644 lib/openapi/models/CodeCommuneDTO.ts delete mode 100644 lib/openapi/models/CreateBaseLocaleDTO.ts delete mode 100644 lib/openapi/models/CreateDemoBaseLocaleDTO.ts delete mode 100644 lib/openapi/models/CreateNumeroDto.ts delete mode 100644 lib/openapi/models/CreateToponymeDto.ts delete mode 100644 lib/openapi/models/CreateVoieDto.ts delete mode 100644 lib/openapi/models/DeleteBatchNumeroDto.ts delete mode 100644 lib/openapi/models/ExtendedBaseLocaleDTO.ts delete mode 100644 lib/openapi/models/ExtendedVoieDTO.ts delete mode 100644 lib/openapi/models/ExtentedToponymeDTO.ts delete mode 100644 lib/openapi/models/FeaturePoint.ts delete mode 100644 lib/openapi/models/ImportFileBaseLocaleDTO.ts delete mode 100644 lib/openapi/models/LineString.ts delete mode 100644 lib/openapi/models/Numero.ts delete mode 100644 lib/openapi/models/NumeroPopulate.ts delete mode 100644 lib/openapi/models/ObjectId.ts delete mode 100644 lib/openapi/models/PageBaseLocaleDTO.ts delete mode 100644 lib/openapi/models/Point.ts delete mode 100644 lib/openapi/models/PopulateVoie.ts delete mode 100644 lib/openapi/models/Position.ts delete mode 100644 lib/openapi/models/RecoverBaseLocaleDTO.ts delete mode 100644 lib/openapi/models/RestoreVoieDto.ts delete mode 100644 lib/openapi/models/Sync.ts delete mode 100644 lib/openapi/models/Toponyme.ts delete mode 100644 lib/openapi/models/UpdateBaseLocaleDTO.ts delete mode 100644 lib/openapi/models/UpdateBaseLocaleDemoDTO.ts delete mode 100644 lib/openapi/models/UpdateBatchNumeroChangeDTO.ts delete mode 100644 lib/openapi/models/UpdateBatchNumeroDto.ts delete mode 100644 lib/openapi/models/UpdateNumeroDto.ts delete mode 100644 lib/openapi/models/UpdateToponymeDto.ts delete mode 100644 lib/openapi/models/UpdateVoieDto.ts delete mode 100644 lib/openapi/models/ValidatePinCodeDTO.ts delete mode 100644 lib/openapi/models/Voie.ts delete mode 100644 lib/openapi/services/BasesLocalesService.ts delete mode 100644 lib/openapi/services/CommuneService.ts delete mode 100644 lib/openapi/services/ExportCsvService.ts delete mode 100644 lib/openapi/services/HabilitationService.ts delete mode 100644 lib/openapi/services/NumerosService.ts delete mode 100644 lib/openapi/services/StatsService.ts delete mode 100644 lib/openapi/services/TilesService.ts delete mode 100644 lib/openapi/services/ToponymesService.ts delete mode 100644 lib/openapi/services/VoiesService.ts diff --git a/lib/openapi/core/ApiError.ts b/lib/openapi/core/ApiError.ts deleted file mode 100644 index d6b8fcc3a..000000000 --- a/lib/openapi/core/ApiError.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ApiRequestOptions } from './ApiRequestOptions'; -import type { ApiResult } from './ApiResult'; - -export class ApiError extends Error { - public readonly url: string; - public readonly status: number; - public readonly statusText: string; - public readonly body: any; - public readonly request: ApiRequestOptions; - - constructor(request: ApiRequestOptions, response: ApiResult, message: string) { - super(message); - - this.name = 'ApiError'; - this.url = response.url; - this.status = response.status; - this.statusText = response.statusText; - this.body = response.body; - this.request = request; - } -} diff --git a/lib/openapi/core/ApiRequestOptions.ts b/lib/openapi/core/ApiRequestOptions.ts deleted file mode 100644 index c19adcc94..000000000 --- a/lib/openapi/core/ApiRequestOptions.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type ApiRequestOptions = { - readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH'; - readonly url: string; - readonly path?: Record; - readonly cookies?: Record; - readonly headers?: Record; - readonly query?: Record; - readonly formData?: Record; - readonly body?: any; - readonly mediaType?: string; - readonly responseHeader?: string; - readonly errors?: Record; -}; diff --git a/lib/openapi/core/ApiResult.ts b/lib/openapi/core/ApiResult.ts deleted file mode 100644 index ad8fef2bc..000000000 --- a/lib/openapi/core/ApiResult.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export type ApiResult = { - readonly url: string; - readonly ok: boolean; - readonly status: number; - readonly statusText: string; - readonly body: any; -}; diff --git a/lib/openapi/core/CancelablePromise.ts b/lib/openapi/core/CancelablePromise.ts deleted file mode 100644 index 55fef8517..000000000 --- a/lib/openapi/core/CancelablePromise.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export class CancelError extends Error { - - constructor(message: string) { - super(message); - this.name = 'CancelError'; - } - - public get isCancelled(): boolean { - return true; - } -} - -export interface OnCancel { - readonly isResolved: boolean; - readonly isRejected: boolean; - readonly isCancelled: boolean; - - (cancelHandler: () => void): void; -} - -export class CancelablePromise implements Promise { - #isResolved: boolean; - #isRejected: boolean; - #isCancelled: boolean; - readonly #cancelHandlers: (() => void)[]; - readonly #promise: Promise; - #resolve?: (value: T | PromiseLike) => void; - #reject?: (reason?: any) => void; - - constructor( - executor: ( - resolve: (value: T | PromiseLike) => void, - reject: (reason?: any) => void, - onCancel: OnCancel - ) => void - ) { - this.#isResolved = false; - this.#isRejected = false; - this.#isCancelled = false; - this.#cancelHandlers = []; - this.#promise = new Promise((resolve, reject) => { - this.#resolve = resolve; - this.#reject = reject; - - const onResolve = (value: T | PromiseLike): void => { - if (this.#isResolved || this.#isRejected || this.#isCancelled) { - return; - } - this.#isResolved = true; - this.#resolve?.(value); - }; - - const onReject = (reason?: any): void => { - if (this.#isResolved || this.#isRejected || this.#isCancelled) { - return; - } - this.#isRejected = true; - this.#reject?.(reason); - }; - - const onCancel = (cancelHandler: () => void): void => { - if (this.#isResolved || this.#isRejected || this.#isCancelled) { - return; - } - this.#cancelHandlers.push(cancelHandler); - }; - - Object.defineProperty(onCancel, 'isResolved', { - get: (): boolean => this.#isResolved, - }); - - Object.defineProperty(onCancel, 'isRejected', { - get: (): boolean => this.#isRejected, - }); - - Object.defineProperty(onCancel, 'isCancelled', { - get: (): boolean => this.#isCancelled, - }); - - return executor(onResolve, onReject, onCancel as OnCancel); - }); - } - - get [Symbol.toStringTag]() { - return "Cancellable Promise"; - } - - public then( - onFulfilled?: ((value: T) => TResult1 | PromiseLike) | null, - onRejected?: ((reason: any) => TResult2 | PromiseLike) | null - ): Promise { - return this.#promise.then(onFulfilled, onRejected); - } - - public catch( - onRejected?: ((reason: any) => TResult | PromiseLike) | null - ): Promise { - return this.#promise.catch(onRejected); - } - - public finally(onFinally?: (() => void) | null): Promise { - return this.#promise.finally(onFinally); - } - - public cancel(): void { - if (this.#isResolved || this.#isRejected || this.#isCancelled) { - return; - } - this.#isCancelled = true; - if (this.#cancelHandlers.length) { - try { - for (const cancelHandler of this.#cancelHandlers) { - cancelHandler(); - } - } catch (error) { - console.warn('Cancellation threw an error', error); - return; - } - } - this.#cancelHandlers.length = 0; - this.#reject?.(new CancelError('Request aborted')); - } - - public get isCancelled(): boolean { - return this.#isCancelled; - } -} diff --git a/lib/openapi/core/OpenAPI.ts b/lib/openapi/core/OpenAPI.ts deleted file mode 100644 index 342170aa8..000000000 --- a/lib/openapi/core/OpenAPI.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ApiRequestOptions } from './ApiRequestOptions'; - -type Resolver = (options: ApiRequestOptions) => Promise; -type Headers = Record; - -export type OpenAPIConfig = { - BASE: string; - VERSION: string; - WITH_CREDENTIALS: boolean; - CREDENTIALS: 'include' | 'omit' | 'same-origin'; - TOKEN?: string | Resolver | undefined; - USERNAME?: string | Resolver | undefined; - PASSWORD?: string | Resolver | undefined; - HEADERS?: Headers | Resolver | undefined; - ENCODE_PATH?: ((path: string) => string) | undefined; -}; - -export const OpenAPI: OpenAPIConfig = { - BASE: '', - VERSION: '2.0', - WITH_CREDENTIALS: false, - CREDENTIALS: 'include', - TOKEN: undefined, - USERNAME: undefined, - PASSWORD: undefined, - HEADERS: undefined, - ENCODE_PATH: undefined, -}; diff --git a/lib/openapi/core/request.ts b/lib/openapi/core/request.ts deleted file mode 100644 index b018a07ca..000000000 --- a/lib/openapi/core/request.ts +++ /dev/null @@ -1,320 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import { ApiError } from './ApiError'; -import type { ApiRequestOptions } from './ApiRequestOptions'; -import type { ApiResult } from './ApiResult'; -import { CancelablePromise } from './CancelablePromise'; -import type { OnCancel } from './CancelablePromise'; -import type { OpenAPIConfig } from './OpenAPI'; - -export const isDefined = (value: T | null | undefined): value is Exclude => { - return value !== undefined && value !== null; -}; - -export const isString = (value: any): value is string => { - return typeof value === 'string'; -}; - -export const isStringWithValue = (value: any): value is string => { - return isString(value) && value !== ''; -}; - -export const isBlob = (value: any): value is Blob => { - return ( - typeof value === 'object' && - typeof value.type === 'string' && - typeof value.stream === 'function' && - typeof value.arrayBuffer === 'function' && - typeof value.constructor === 'function' && - typeof value.constructor.name === 'string' && - /^(Blob|File)$/.test(value.constructor.name) && - /^(Blob|File)$/.test(value[Symbol.toStringTag]) - ); -}; - -export const isFormData = (value: any): value is FormData => { - return value instanceof FormData; -}; - -export const base64 = (str: string): string => { - try { - return btoa(str); - } catch (err) { - // @ts-ignore - return Buffer.from(str).toString('base64'); - } -}; - -export const getQueryString = (params: Record): string => { - const qs: string[] = []; - - const append = (key: string, value: any) => { - qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`); - }; - - const process = (key: string, value: any) => { - if (isDefined(value)) { - if (Array.isArray(value)) { - value.forEach(v => { - process(key, v); - }); - } else if (typeof value === 'object') { - Object.entries(value).forEach(([k, v]) => { - process(`${key}[${k}]`, v); - }); - } else { - append(key, value); - } - } - }; - - Object.entries(params).forEach(([key, value]) => { - process(key, value); - }); - - if (qs.length > 0) { - return `?${qs.join('&')}`; - } - - return ''; -}; - -const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => { - const encoder = config.ENCODE_PATH || encodeURI; - - const path = options.url - .replace('{api-version}', config.VERSION) - .replace(/{(.*?)}/g, (substring: string, group: string) => { - if (options.path?.hasOwnProperty(group)) { - return encoder(String(options.path[group])); - } - return substring; - }); - - const url = `${config.BASE}${path}`; - if (options.query) { - return `${url}${getQueryString(options.query)}`; - } - return url; -}; - -export const getFormData = (options: ApiRequestOptions): FormData | undefined => { - if (options.formData) { - const formData = new FormData(); - - const process = (key: string, value: any) => { - if (isString(value) || isBlob(value)) { - formData.append(key, value); - } else { - formData.append(key, JSON.stringify(value)); - } - }; - - Object.entries(options.formData) - .filter(([_, value]) => isDefined(value)) - .forEach(([key, value]) => { - if (Array.isArray(value)) { - value.forEach(v => process(key, v)); - } else { - process(key, value); - } - }); - - return formData; - } - return undefined; -}; - -type Resolver = (options: ApiRequestOptions) => Promise; - -export const resolve = async (options: ApiRequestOptions, resolver?: T | Resolver): Promise => { - if (typeof resolver === 'function') { - return (resolver as Resolver)(options); - } - return resolver; -}; - -export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise => { - const token = await resolve(options, config.TOKEN); - const username = await resolve(options, config.USERNAME); - const password = await resolve(options, config.PASSWORD); - const additionalHeaders = await resolve(options, config.HEADERS); - - const headers = Object.entries({ - Accept: 'application/json', - ...additionalHeaders, - ...options.headers, - }) - .filter(([_, value]) => isDefined(value)) - .reduce((headers, [key, value]) => ({ - ...headers, - [key]: String(value), - }), {} as Record); - - if (isStringWithValue(token)) { - headers['Authorization'] = `Bearer ${token}`; - } - - if (isStringWithValue(username) && isStringWithValue(password)) { - const credentials = base64(`${username}:${password}`); - headers['Authorization'] = `Basic ${credentials}`; - } - - if (options.body) { - if (options.mediaType) { - headers['Content-Type'] = options.mediaType; - } else if (isBlob(options.body)) { - headers['Content-Type'] = options.body.type || 'application/octet-stream'; - } else if (isString(options.body)) { - headers['Content-Type'] = 'text/plain'; - } else if (!isFormData(options.body)) { - headers['Content-Type'] = 'application/json'; - } - } - - return new Headers(headers); -}; - -export const getRequestBody = (options: ApiRequestOptions): any => { - if (options.body !== undefined) { - if (options.mediaType?.includes('/json')) { - return JSON.stringify(options.body) - } else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) { - return options.body; - } else { - return JSON.stringify(options.body); - } - } - return undefined; -}; - -export const sendRequest = async ( - config: OpenAPIConfig, - options: ApiRequestOptions, - url: string, - body: any, - formData: FormData | undefined, - headers: Headers, - onCancel: OnCancel -): Promise => { - const controller = new AbortController(); - - const request: RequestInit = { - headers, - body: body ?? formData, - method: options.method, - signal: controller.signal, - }; - - if (config.WITH_CREDENTIALS) { - request.credentials = config.CREDENTIALS; - } - - onCancel(() => controller.abort()); - - return await fetch(url, request); -}; - -export const getResponseHeader = (response: Response, responseHeader?: string): string | undefined => { - if (responseHeader) { - const content = response.headers.get(responseHeader); - if (isString(content)) { - return content; - } - } - return undefined; -}; - -export const getResponseBody = async (response: Response): Promise => { - if (response.status !== 204) { - try { - const contentType = response.headers.get('Content-Type'); - if (contentType) { - const jsonTypes = ['application/json', 'application/problem+json'] - const isJSON = jsonTypes.some(type => contentType.toLowerCase().startsWith(type)); - if (isJSON) { - return await response.json(); - } else { - return await response.text(); - } - } - } catch (error) { - console.error(error); - } - } - return undefined; -}; - -export const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => { - const errors: Record = { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 404: 'Not Found', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - 503: 'Service Unavailable', - ...options.errors, - } - - const error = errors[result.status]; - if (error) { - throw new ApiError(options, result, error); - } - - if (!result.ok) { - const errorStatus = result.status ?? 'unknown'; - const errorStatusText = result.statusText ?? 'unknown'; - const errorBody = (() => { - try { - return JSON.stringify(result.body, null, 2); - } catch (e) { - return undefined; - } - })(); - - throw new ApiError(options, result, - `Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}` - ); - } -}; - -/** - * Request method - * @param config The OpenAPI configuration object - * @param options The request options from the service - * @returns CancelablePromise - * @throws ApiError - */ -export const request = (config: OpenAPIConfig, options: ApiRequestOptions): CancelablePromise => { - return new CancelablePromise(async (resolve, reject, onCancel) => { - try { - const url = getUrl(config, options); - const formData = getFormData(options); - const body = getRequestBody(options); - const headers = await getHeaders(config, options); - - if (!onCancel.isCancelled) { - const response = await sendRequest(config, options, url, body, formData, headers, onCancel); - const responseBody = await getResponseBody(response); - const responseHeader = getResponseHeader(response, options.responseHeader); - - const result: ApiResult = { - url, - ok: response.ok, - status: response.status, - statusText: response.statusText, - body: responseHeader ?? responseBody, - }; - - catchErrorCodes(options, result); - - resolve(result.body); - } - } catch (error) { - reject(error); - } - }); -}; diff --git a/lib/openapi/index.ts b/lib/openapi/index.ts deleted file mode 100644 index d198d84fc..000000000 --- a/lib/openapi/index.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -export { ApiError } from './core/ApiError'; -export { CancelablePromise, CancelError } from './core/CancelablePromise'; -export { OpenAPI } from './core/OpenAPI'; -export type { OpenAPIConfig } from './core/OpenAPI'; - -export type { AllDeletedInBalDTO } from './models/AllDeletedInBalDTO'; -export { BaseLocale } from './models/BaseLocale'; -export type { BasesLocalesCreationDTO } from './models/BasesLocalesCreationDTO'; -export type { BasesLocalesStatusDTO } from './models/BasesLocalesStatusDTO'; -export type { CodeCommuneDTO } from './models/CodeCommuneDTO'; -export type { CreateBaseLocaleDTO } from './models/CreateBaseLocaleDTO'; -export type { CreateDemoBaseLocaleDTO } from './models/CreateDemoBaseLocaleDTO'; -export type { CreateNumeroDTO } from './models/CreateNumeroDTO'; -export type { CreateToponymeDTO } from './models/CreateToponymeDTO'; -export type { CreateVoieDTO } from './models/CreateVoieDTO'; -export type { DeleteBatchNumeroDTO } from './models/DeleteBatchNumeroDTO'; -export { ExtendedBaseLocaleDTO } from './models/ExtendedBaseLocaleDTO'; -export { ExtendedVoieDTO } from './models/ExtendedVoieDTO'; -export type { ExtentedToponymeDTO } from './models/ExtentedToponymeDTO'; -export type { FeaturePoint } from './models/FeaturePoint'; -export type { ImportFileBaseLocaleDTO } from './models/ImportFileBaseLocaleDTO'; -export type { LineString } from './models/LineString'; -export type { Numero } from './models/Numero'; -export type { NumeroPopulate } from './models/NumeroPopulate'; -export type { ObjectId } from './models/ObjectId'; -export type { PageBaseLocaleDTO } from './models/PageBaseLocaleDTO'; -export type { Point } from './models/Point'; -export { PopulateVoie } from './models/PopulateVoie'; -export type { Position } from './models/Position'; -export type { RecoverBaseLocaleDTO } from './models/RecoverBaseLocaleDTO'; -export type { RestoreVoieDTO } from './models/RestoreVoieDTO'; -export { Sync } from './models/Sync'; -export type { Toponyme } from './models/Toponyme'; -export type { UpdateBaseLocaleDemoDTO } from './models/UpdateBaseLocaleDemoDTO'; -export type { UpdateBaseLocaleDTO } from './models/UpdateBaseLocaleDTO'; -export type { UpdateBatchNumeroChangeDTO } from './models/UpdateBatchNumeroChangeDTO'; -export type { UpdateBatchNumeroDTO } from './models/UpdateBatchNumeroDTO'; -export type { UpdateNumeroDTO } from './models/UpdateNumeroDTO'; -export type { UpdateToponymeDTO } from './models/UpdateToponymeDTO'; -export type { UpdateVoieDTO } from './models/UpdateVoieDTO'; -export type { ValidatePinCodeDTO } from './models/ValidatePinCodeDTO'; -export { Voie } from './models/Voie'; - -export { BasesLocalesService } from './services/BasesLocalesService'; -export { CommuneService } from './services/CommuneService'; -export { ExportCsvService } from './services/ExportCsvService'; -export { HabilitationService } from './services/HabilitationService'; -export { NumerosService } from './services/NumerosService'; -export { StatsService } from './services/StatsService'; -export { TilesService } from './services/TilesService'; -export { ToponymesService } from './services/ToponymesService'; -export { VoiesService } from './services/VoiesService'; diff --git a/lib/openapi/models/AllDeletedInBalDTO.ts b/lib/openapi/models/AllDeletedInBalDTO.ts deleted file mode 100644 index de5340db0..000000000 --- a/lib/openapi/models/AllDeletedInBalDTO.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { PopulateVoie } from './PopulateVoie'; -import type { Toponyme } from './Toponyme'; - -export type AllDeletedInBalDTO = { - voies: Array; - toponymes: Array; -}; - diff --git a/lib/openapi/models/BaseLocale.ts b/lib/openapi/models/BaseLocale.ts deleted file mode 100644 index c27b7aabd..000000000 --- a/lib/openapi/models/BaseLocale.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { ObjectId } from './ObjectId'; -import type { Sync } from './Sync'; - -export type BaseLocale = { - _id: ObjectId; - _created: string; - _updated: string; - _deleted: string; - nom: string; - emails: Array; - token: string; - status: BaseLocale.status; - _habilitation: string; - commune: string; - enableComplement: boolean; - sync: Sync; -}; - -export namespace BaseLocale { - - export enum status { - DRAFT = 'draft', - READY_TO_PUBLISH = 'ready-to-publish', - PUBLISHED = 'published', - DEMO = 'demo', - REPLACED = 'replaced', - } - - -} - diff --git a/lib/openapi/models/BasesLocalesCreationDto.ts b/lib/openapi/models/BasesLocalesCreationDto.ts deleted file mode 100644 index 73f3cef68..000000000 --- a/lib/openapi/models/BasesLocalesCreationDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type BasesLocalesCreationDTO = { - date: string; - createdBAL: Record; -}; - diff --git a/lib/openapi/models/BasesLocalesStatusDto.ts b/lib/openapi/models/BasesLocalesStatusDto.ts deleted file mode 100644 index 94ea13b98..000000000 --- a/lib/openapi/models/BasesLocalesStatusDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { ObjectId } from './ObjectId'; - -export type BasesLocalesStatusDTO = { - status: ObjectId; - count: number; -}; - diff --git a/lib/openapi/models/CodeCommuneDTO.ts b/lib/openapi/models/CodeCommuneDTO.ts deleted file mode 100644 index d67d85723..000000000 --- a/lib/openapi/models/CodeCommuneDTO.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type CodeCommuneDTO = { - codeCommunes: Array; -}; - diff --git a/lib/openapi/models/CreateBaseLocaleDTO.ts b/lib/openapi/models/CreateBaseLocaleDTO.ts deleted file mode 100644 index 71b0e29ac..000000000 --- a/lib/openapi/models/CreateBaseLocaleDTO.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type CreateBaseLocaleDTO = { - nom: string; - emails: Array; - commune: string; -}; - diff --git a/lib/openapi/models/CreateDemoBaseLocaleDTO.ts b/lib/openapi/models/CreateDemoBaseLocaleDTO.ts deleted file mode 100644 index 182855b04..000000000 --- a/lib/openapi/models/CreateDemoBaseLocaleDTO.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type CreateDemoBaseLocaleDTO = { - commune: string; - populate?: boolean | null; -}; - diff --git a/lib/openapi/models/CreateNumeroDto.ts b/lib/openapi/models/CreateNumeroDto.ts deleted file mode 100644 index e9483864d..000000000 --- a/lib/openapi/models/CreateNumeroDto.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { ObjectId } from './ObjectId'; -import type { Position } from './Position'; - -export type CreateNumeroDTO = { - numero: number; - suffixe?: string | null; - comment?: string | null; - toponyme?: ObjectId | null; - parcelles?: Array; - certifie?: boolean; - positions: Array; -}; - diff --git a/lib/openapi/models/CreateToponymeDto.ts b/lib/openapi/models/CreateToponymeDto.ts deleted file mode 100644 index 0edaabf7a..000000000 --- a/lib/openapi/models/CreateToponymeDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { Position } from './Position'; - -export type CreateToponymeDTO = { - nom: string; - nomAlt?: Record | null; - parcelles?: Array | null; - positions?: Array; -}; - diff --git a/lib/openapi/models/CreateVoieDto.ts b/lib/openapi/models/CreateVoieDto.ts deleted file mode 100644 index aa487f41e..000000000 --- a/lib/openapi/models/CreateVoieDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { LineString } from './LineString'; - -export type CreateVoieDTO = { - nom: string; - nomAlt?: Record | null; - typeNumerotation?: Record; - trace?: LineString; -}; - diff --git a/lib/openapi/models/DeleteBatchNumeroDto.ts b/lib/openapi/models/DeleteBatchNumeroDto.ts deleted file mode 100644 index ab95eea12..000000000 --- a/lib/openapi/models/DeleteBatchNumeroDto.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type DeleteBatchNumeroDTO = { - numerosIds: Array; -}; - diff --git a/lib/openapi/models/ExtendedBaseLocaleDTO.ts b/lib/openapi/models/ExtendedBaseLocaleDTO.ts deleted file mode 100644 index 9c14dec6a..000000000 --- a/lib/openapi/models/ExtendedBaseLocaleDTO.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { ObjectId } from './ObjectId'; -import type { Sync } from './Sync'; - -export type ExtendedBaseLocaleDTO = { - _id: ObjectId; - _created: string; - _updated: string; - _deleted: string; - nom: string; - emails: Array; - token: string; - status: ExtendedBaseLocaleDTO.status; - _habilitation: string; - commune: string; - enableComplement: boolean; - sync: Sync; - nbNumeros: number; - nbNumerosCertifies: number; - isAllCertified: boolean; - commentedNumeros: Array; -}; - -export namespace ExtendedBaseLocaleDTO { - - export enum status { - DRAFT = 'draft', - READY_TO_PUBLISH = 'ready-to-publish', - PUBLISHED = 'published', - DEMO = 'demo', - REPLACED = 'replaced', - } - - -} - diff --git a/lib/openapi/models/ExtendedVoieDTO.ts b/lib/openapi/models/ExtendedVoieDTO.ts deleted file mode 100644 index df544bd83..000000000 --- a/lib/openapi/models/ExtendedVoieDTO.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { FeaturePoint } from './FeaturePoint'; -import type { LineString } from './LineString'; -import type { ObjectId } from './ObjectId'; - -export type ExtendedVoieDTO = { - _id: ObjectId; - _created: string; - _updated: string; - _deleted: string; - _bal: ObjectId; - nom: string; - commune: string; - nomAlt: Record; - centroid: FeaturePoint; - centroidTiles: Array; - typeNumerotation: ExtendedVoieDTO.typeNumerotation; - trace: LineString; - traceTiles: Array; - nbNumeros: number; - nbNumerosCertifies: number; - isAllCertified: boolean; - commentedNumeros: Array; - bbox: Record; -}; - -export namespace ExtendedVoieDTO { - - export enum typeNumerotation { - NUMERIQUE = 'numerique', - METRIQUE = 'metrique', - } - - -} - diff --git a/lib/openapi/models/ExtentedToponymeDTO.ts b/lib/openapi/models/ExtentedToponymeDTO.ts deleted file mode 100644 index 552579a2b..000000000 --- a/lib/openapi/models/ExtentedToponymeDTO.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { ObjectId } from './ObjectId'; -import type { Position } from './Position'; - -export type ExtentedToponymeDTO = { - _id: ObjectId; - _created: string; - _updated: string; - _deleted: string; - _bal: ObjectId; - nom: string; - commune: string; - nomAlt: Record; - parcelles: Array; - positions: Array; - nbNumeros: number; - nbNumerosCertifies: number; - isAllCertified: boolean; - commentedNumeros: Array; - bbox: Record; -}; - diff --git a/lib/openapi/models/FeaturePoint.ts b/lib/openapi/models/FeaturePoint.ts deleted file mode 100644 index 99af09511..000000000 --- a/lib/openapi/models/FeaturePoint.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { Point } from './Point'; - -export type FeaturePoint = { - type: string; - properties: Record; - geometry: Point; -}; - diff --git a/lib/openapi/models/ImportFileBaseLocaleDTO.ts b/lib/openapi/models/ImportFileBaseLocaleDTO.ts deleted file mode 100644 index 063615d9b..000000000 --- a/lib/openapi/models/ImportFileBaseLocaleDTO.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type ImportFileBaseLocaleDTO = { - isValid: boolean; - accepted: number; - rejected: number; - commune: string; - voies: number; - numeros: number; -}; - diff --git a/lib/openapi/models/LineString.ts b/lib/openapi/models/LineString.ts deleted file mode 100644 index 9c1e311a6..000000000 --- a/lib/openapi/models/LineString.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type LineString = { - type: string; - coordinates: Array; -}; - diff --git a/lib/openapi/models/Numero.ts b/lib/openapi/models/Numero.ts deleted file mode 100644 index 88e9b3f57..000000000 --- a/lib/openapi/models/Numero.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { ObjectId } from './ObjectId'; -import type { Position } from './Position'; - -export type Numero = { - _id: ObjectId; - _created: string; - _updated: string; - _deleted: string; - _bal: ObjectId; - numero: number; - commune: string; - suffixe: string; - comment: string; - toponyme: ObjectId; - voie: ObjectId; - parcelles: Array; - certifie: boolean; - positions: Array; - tiles: Array; -}; - diff --git a/lib/openapi/models/NumeroPopulate.ts b/lib/openapi/models/NumeroPopulate.ts deleted file mode 100644 index 1357e1a77..000000000 --- a/lib/openapi/models/NumeroPopulate.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { ObjectId } from './ObjectId'; -import type { Position } from './Position'; -import type { Voie } from './Voie'; - -export type NumeroPopulate = { - _id: ObjectId; - _created: string; - _updated: string; - _deleted: string; - _bal: ObjectId; - numero: number; - commune: string; - suffixe: string; - comment: string; - toponyme: ObjectId; - voie: Voie; - parcelles: Array; - certifie: boolean; - positions: Array; - tiles: Array; -}; - diff --git a/lib/openapi/models/ObjectId.ts b/lib/openapi/models/ObjectId.ts deleted file mode 100644 index 4515196d8..000000000 --- a/lib/openapi/models/ObjectId.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type ObjectId = { -}; - diff --git a/lib/openapi/models/PageBaseLocaleDTO.ts b/lib/openapi/models/PageBaseLocaleDTO.ts deleted file mode 100644 index bc89a8764..000000000 --- a/lib/openapi/models/PageBaseLocaleDTO.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { ExtendedBaseLocaleDTO } from './ExtendedBaseLocaleDTO'; - -export type PageBaseLocaleDTO = { - offset: number; - limit: number; - count: number; - results: Array; -}; - diff --git a/lib/openapi/models/Point.ts b/lib/openapi/models/Point.ts deleted file mode 100644 index 0494dfccc..000000000 --- a/lib/openapi/models/Point.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type Point = { - type: string; - coordinates: Array; -}; - diff --git a/lib/openapi/models/PopulateVoie.ts b/lib/openapi/models/PopulateVoie.ts deleted file mode 100644 index b0d78940d..000000000 --- a/lib/openapi/models/PopulateVoie.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { FeaturePoint } from './FeaturePoint'; -import type { LineString } from './LineString'; -import type { Numero } from './Numero'; -import type { ObjectId } from './ObjectId'; - -export type PopulateVoie = { - _id: ObjectId; - _created: string; - _updated: string; - _deleted: string; - _bal: ObjectId; - nom: string; - commune: string; - nomAlt: Record; - centroid: FeaturePoint; - centroidTiles: Array; - typeNumerotation: PopulateVoie.typeNumerotation; - trace: LineString; - traceTiles: Array; - numeros: Array; -}; - -export namespace PopulateVoie { - - export enum typeNumerotation { - NUMERIQUE = 'numerique', - METRIQUE = 'metrique', - } - - -} - diff --git a/lib/openapi/models/Position.ts b/lib/openapi/models/Position.ts deleted file mode 100644 index a870e390a..000000000 --- a/lib/openapi/models/Position.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { Point } from './Point'; - -export type Position = { - type: Record; - source: string; - point: Point; -}; - diff --git a/lib/openapi/models/RecoverBaseLocaleDTO.ts b/lib/openapi/models/RecoverBaseLocaleDTO.ts deleted file mode 100644 index 57fd5c3b1..000000000 --- a/lib/openapi/models/RecoverBaseLocaleDTO.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type RecoverBaseLocaleDTO = { - id?: string | null; - email: string; -}; - diff --git a/lib/openapi/models/RestoreVoieDto.ts b/lib/openapi/models/RestoreVoieDto.ts deleted file mode 100644 index 8e3386d3c..000000000 --- a/lib/openapi/models/RestoreVoieDto.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type RestoreVoieDTO = { - numerosIds: Array | null; -}; - diff --git a/lib/openapi/models/Sync.ts b/lib/openapi/models/Sync.ts deleted file mode 100644 index 19c25e11e..000000000 --- a/lib/openapi/models/Sync.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { ObjectId } from './ObjectId'; - -export type Sync = { - status: Sync.status; - isPaused: boolean; - lastUploadedRevisionId: ObjectId; - currentUpdated: string; -}; - -export namespace Sync { - - export enum status { - OUTDATED = 'outdated', - SYNCED = 'synced', - CONFLICT = 'conflict', - } - - -} - diff --git a/lib/openapi/models/Toponyme.ts b/lib/openapi/models/Toponyme.ts deleted file mode 100644 index 54df94415..000000000 --- a/lib/openapi/models/Toponyme.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { ObjectId } from './ObjectId'; -import type { Position } from './Position'; - -export type Toponyme = { - _id: ObjectId; - _created: string; - _updated: string; - _deleted: string; - _bal: ObjectId; - nom: string; - commune: string; - nomAlt: Record; - parcelles: Array; - positions: Array; -}; - diff --git a/lib/openapi/models/UpdateBaseLocaleDTO.ts b/lib/openapi/models/UpdateBaseLocaleDTO.ts deleted file mode 100644 index 6334c60b0..000000000 --- a/lib/openapi/models/UpdateBaseLocaleDTO.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type UpdateBaseLocaleDTO = { - nom: string; - status: Record; - emails: Array; -}; - diff --git a/lib/openapi/models/UpdateBaseLocaleDemoDTO.ts b/lib/openapi/models/UpdateBaseLocaleDemoDTO.ts deleted file mode 100644 index cea42f844..000000000 --- a/lib/openapi/models/UpdateBaseLocaleDemoDTO.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type UpdateBaseLocaleDemoDTO = { - nom: string; - email: string; -}; - diff --git a/lib/openapi/models/UpdateBatchNumeroChangeDTO.ts b/lib/openapi/models/UpdateBatchNumeroChangeDTO.ts deleted file mode 100644 index 4ec8d4e3c..000000000 --- a/lib/openapi/models/UpdateBatchNumeroChangeDTO.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { ObjectId } from './ObjectId'; - -export type UpdateBatchNumeroChangeDTO = { - comment?: string | null; - toponyme?: ObjectId | null; - voie?: ObjectId; - positionType?: Record; - certifie?: boolean; -}; - diff --git a/lib/openapi/models/UpdateBatchNumeroDto.ts b/lib/openapi/models/UpdateBatchNumeroDto.ts deleted file mode 100644 index dbad5a705..000000000 --- a/lib/openapi/models/UpdateBatchNumeroDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { UpdateBatchNumeroChangeDTO } from './UpdateBatchNumeroChangeDTO'; - -export type UpdateBatchNumeroDTO = { - numerosIds?: Array | null; - changes: UpdateBatchNumeroChangeDTO; -}; - diff --git a/lib/openapi/models/UpdateNumeroDto.ts b/lib/openapi/models/UpdateNumeroDto.ts deleted file mode 100644 index a2bb2a34b..000000000 --- a/lib/openapi/models/UpdateNumeroDto.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { ObjectId } from './ObjectId'; -import type { Position } from './Position'; - -export type UpdateNumeroDTO = { - numero?: number; - suffixe?: string | null; - comment?: string | null; - toponyme?: ObjectId | null; - voie?: ObjectId; - parcelles?: Array; - certifie?: boolean; - positions?: Array; -}; - diff --git a/lib/openapi/models/UpdateToponymeDto.ts b/lib/openapi/models/UpdateToponymeDto.ts deleted file mode 100644 index d20b27310..000000000 --- a/lib/openapi/models/UpdateToponymeDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { Position } from './Position'; - -export type UpdateToponymeDTO = { - nom?: string; - nomAlt?: Record | null; - parcelles?: Array | null; - positions?: Array; -}; - diff --git a/lib/openapi/models/UpdateVoieDto.ts b/lib/openapi/models/UpdateVoieDto.ts deleted file mode 100644 index 06336e8cd..000000000 --- a/lib/openapi/models/UpdateVoieDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { LineString } from './LineString'; - -export type UpdateVoieDTO = { - nom?: string; - nomAlt?: Record | null; - typeNumerotation?: Record; - trace?: LineString; -}; - diff --git a/lib/openapi/models/ValidatePinCodeDTO.ts b/lib/openapi/models/ValidatePinCodeDTO.ts deleted file mode 100644 index 007f0abe7..000000000 --- a/lib/openapi/models/ValidatePinCodeDTO.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type ValidatePinCodeDTO = { - code: number; -}; - diff --git a/lib/openapi/models/Voie.ts b/lib/openapi/models/Voie.ts deleted file mode 100644 index a9d5aab88..000000000 --- a/lib/openapi/models/Voie.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { FeaturePoint } from './FeaturePoint'; -import type { LineString } from './LineString'; -import type { ObjectId } from './ObjectId'; - -export type Voie = { - _id: ObjectId; - _created: string; - _updated: string; - _deleted: string; - _bal: ObjectId; - nom: string; - commune: string; - nomAlt: Record; - centroid: FeaturePoint; - centroidTiles: Array; - typeNumerotation: Voie.typeNumerotation; - trace: LineString; - traceTiles: Array; -}; - -export namespace Voie { - - export enum typeNumerotation { - NUMERIQUE = 'numerique', - METRIQUE = 'metrique', - } - - -} - diff --git a/lib/openapi/services/BasesLocalesService.ts b/lib/openapi/services/BasesLocalesService.ts deleted file mode 100644 index b7701853f..000000000 --- a/lib/openapi/services/BasesLocalesService.ts +++ /dev/null @@ -1,492 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { AllDeletedInBalDTO } from '../models/AllDeletedInBalDTO'; -import type { BaseLocale } from '../models/BaseLocale'; -import type { CreateBaseLocaleDTO } from '../models/CreateBaseLocaleDTO'; -import type { CreateDemoBaseLocaleDTO } from '../models/CreateDemoBaseLocaleDTO'; -import type { CreateToponymeDTO } from '../models/CreateToponymeDTO'; -import type { CreateVoieDTO } from '../models/CreateVoieDTO'; -import type { DeleteBatchNumeroDTO } from '../models/DeleteBatchNumeroDTO'; -import type { ExtendedBaseLocaleDTO } from '../models/ExtendedBaseLocaleDTO'; -import type { ExtentedToponymeDTO } from '../models/ExtentedToponymeDTO'; -import type { ImportFileBaseLocaleDTO } from '../models/ImportFileBaseLocaleDTO'; -import type { PageBaseLocaleDTO } from '../models/PageBaseLocaleDTO'; -import type { RecoverBaseLocaleDTO } from '../models/RecoverBaseLocaleDTO'; -import type { Toponyme } from '../models/Toponyme'; -import type { UpdateBaseLocaleDemoDTO } from '../models/UpdateBaseLocaleDemoDTO'; -import type { UpdateBaseLocaleDTO } from '../models/UpdateBaseLocaleDTO'; -import type { UpdateBatchNumeroDTO } from '../models/UpdateBatchNumeroDTO'; -import type { Voie } from '../models/Voie'; - -import type { CancelablePromise } from '../core/CancelablePromise'; -import { OpenAPI } from '../core/OpenAPI'; -import { request as __request } from '../core/request'; - -export class BasesLocalesService { - - /** - * Create a base locale - * @param requestBody - * @returns BaseLocale - * @throws ApiError - */ - public static createBaseLocale( - requestBody: CreateBaseLocaleDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales', - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Create a base locale - * @param requestBody - * @returns BaseLocale - * @throws ApiError - */ - public static createBaseLocaleDemo( - requestBody: CreateDemoBaseLocaleDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales/create-demo', - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Search BAL by filters - * @param limit - * @param offset - * @param deleted - * @param commune - * @param email - * @param status - * @returns PageBaseLocaleDTO - * @throws ApiError - */ - public static searchBaseLocale( - limit?: number, - offset?: number, - deleted?: boolean, - commune?: string, - email?: string, - status?: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/bases-locales/search', - query: { - 'limit': limit, - 'offset': offset, - 'deleted': deleted, - 'commune': commune, - 'email': email, - 'status': status, - }, - }); - } - - /** - * Find Base_Locale by id - * @param baseLocaleId - * @returns ExtendedBaseLocaleDTO - * @throws ApiError - */ - public static findBaseLocale( - baseLocaleId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/bases-locales/{baseLocaleId}', - path: { - 'baseLocaleId': baseLocaleId, - }, - }); - } - - /** - * Update one base locale - * @param baseLocaleId - * @param requestBody - * @returns BaseLocale - * @throws ApiError - */ - public static updateBaseLocale( - baseLocaleId: string, - requestBody: UpdateBaseLocaleDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/v2/bases-locales/{baseLocaleId}', - path: { - 'baseLocaleId': baseLocaleId, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Delete one base locale - * @param baseLocaleId - * @returns void - * @throws ApiError - */ - public static deleteBaseLocale( - baseLocaleId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'DELETE', - url: '/v2/bases-locales/{baseLocaleId}', - path: { - 'baseLocaleId': baseLocaleId, - }, - }); - } - - /** - * Update one base locale status to draft - * @param baseLocaleId - * @param requestBody - * @returns BaseLocale - * @throws ApiError - */ - public static updateBaseLocaleDemoToDraft( - baseLocaleId: string, - requestBody: UpdateBaseLocaleDemoDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/v2/bases-locales/{baseLocaleId}/transform-to-draft', - path: { - 'baseLocaleId': baseLocaleId, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Upload a CSV BAL file - * @param baseLocaleId - * @param formData - * @returns ImportFileBaseLocaleDTO - * @throws ApiError - */ - public static uploadCsvBalFile( - baseLocaleId: string, - formData: { - file?: Blob; - }, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales/{baseLocaleId}/upload', - path: { - 'baseLocaleId': baseLocaleId, - }, - formData: formData, - mediaType: 'multipart/form-data', - }); - } - - /** - * Recover BAL access - * @param requestBody - * @returns void - * @throws ApiError - */ - public static recoveryBasesLocales( - requestBody: RecoverBaseLocaleDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales/recovery', - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Restore deleted BAL - * @param token - * @param baseLocaleId - * @returns void - * @throws ApiError - */ - public static recoveryBaseLocale( - token: string, - baseLocaleId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/bases-locales/{baseLocaleId}/{token}/recovery', - path: { - 'token': token, - 'baseLocaleId': baseLocaleId, - }, - }); - } - - /** - * Populate Base Locale - * @param baseLocaleId - * @returns BaseLocale - * @throws ApiError - */ - public static populateBaseLocale( - baseLocaleId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales/{baseLocaleId}/populate', - path: { - 'baseLocaleId': baseLocaleId, - }, - }); - } - - /** - * Renew Base Locale token - * @param baseLocaleId - * @returns BaseLocale - * @throws ApiError - */ - public static renewTokenBaseLocale( - baseLocaleId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales/{baseLocaleId}/token/renew', - path: { - 'baseLocaleId': baseLocaleId, - }, - }); - } - - /** - * Find Base_Locale parcelles - * @param baseLocaleId - * @returns any - * @throws ApiError - */ - public static findBaseLocaleParcelles( - baseLocaleId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/bases-locales/{baseLocaleId}/parcelles', - path: { - 'baseLocaleId': baseLocaleId, - }, - }); - } - - /** - * Publish base locale - * @returns BaseLocale - * @throws ApiError - */ - public static publishBaseLocale(): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales/{baseLocaleId}/sync/exec', - }); - } - - /** - * Update isPaused sync BAL to true - * @returns BaseLocale - * @throws ApiError - */ - public static pauseBaseLocale(): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales/{baseLocaleId}/sync/pause', - }); - } - - /** - * Update isPaused sync BAL to false - * @returns BaseLocale - * @throws ApiError - */ - public static resumeBaseLocale(): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales/{baseLocaleId}/sync/resume', - }); - } - - /** - * Find all model deleted in Bal - * @param baseLocaleId - * @returns AllDeletedInBalDTO - * @throws ApiError - */ - public static findAllDeleted( - baseLocaleId: string, - ): CancelablePromise> { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/bases-locales/{baseLocaleId}/all/deleted', - path: { - 'baseLocaleId': baseLocaleId, - }, - }); - } - - /** - * Multi update numeros - * @param baseLocaleId - * @param requestBody - * @returns any - * @throws ApiError - */ - public static updateNumeros( - baseLocaleId: string, - requestBody: UpdateBatchNumeroDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/v2/bases-locales/{baseLocaleId}/numeros/batch', - path: { - 'baseLocaleId': baseLocaleId, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Multi delete numeros - * @param baseLocaleId - * @param requestBody - * @returns void - * @throws ApiError - */ - public static deleteNumeros( - baseLocaleId: string, - requestBody: DeleteBatchNumeroDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'DELETE', - url: '/v2/bases-locales/{baseLocaleId}/numeros/batch', - path: { - 'baseLocaleId': baseLocaleId, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Multi soft delete numeros - * @param baseLocaleId - * @param requestBody - * @returns any - * @throws ApiError - */ - public static softDeleteNumeros( - baseLocaleId: string, - requestBody: DeleteBatchNumeroDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/v2/bases-locales/{baseLocaleId}/numeros/batch/soft-delete', - path: { - 'baseLocaleId': baseLocaleId, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Find all Voie in Bal - * @param baseLocaleId - * @returns any - * @throws ApiError - */ - public static findBaseLocaleVoies( - baseLocaleId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/bases-locales/{baseLocaleId}/voies', - path: { - 'baseLocaleId': baseLocaleId, - }, - }); - } - - /** - * Create Voie in Bal - * @param baseLocaleId - * @param requestBody - * @returns Voie - * @throws ApiError - */ - public static createVoie( - baseLocaleId: string, - requestBody: CreateVoieDTO, - ): CancelablePromise> { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales/{baseLocaleId}/voies', - path: { - 'baseLocaleId': baseLocaleId, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Find all Toponymes in Bal - * @param baseLocaleId - * @returns ExtentedToponymeDTO - * @throws ApiError - */ - public static findBaseLocaleToponymes( - baseLocaleId: string, - ): CancelablePromise> { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/bases-locales/{baseLocaleId}/toponymes', - path: { - 'baseLocaleId': baseLocaleId, - }, - }); - } - - /** - * Create Toponyme in Bal - * @param baseLocaleId - * @param requestBody - * @returns Toponyme - * @throws ApiError - */ - public static createToponyme( - baseLocaleId: string, - requestBody: CreateToponymeDTO, - ): CancelablePromise> { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales/{baseLocaleId}/toponymes', - path: { - 'baseLocaleId': baseLocaleId, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - -} diff --git a/lib/openapi/services/CommuneService.ts b/lib/openapi/services/CommuneService.ts deleted file mode 100644 index 5c273fe3f..000000000 --- a/lib/openapi/services/CommuneService.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { CancelablePromise } from '../core/CancelablePromise'; -import { OpenAPI } from '../core/OpenAPI'; -import { request as __request } from '../core/request'; - -export class CommuneService { - - /** - * Find info commune - * @param codeCommune - * @returns any - * @throws ApiError - */ - public static findCommune( - codeCommune: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/commune/{codeCommune}', - path: { - 'codeCommune': codeCommune, - }, - }); - } - -} diff --git a/lib/openapi/services/ExportCsvService.ts b/lib/openapi/services/ExportCsvService.ts deleted file mode 100644 index 1b500af92..000000000 --- a/lib/openapi/services/ExportCsvService.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { CancelablePromise } from '../core/CancelablePromise'; -import { OpenAPI } from '../core/OpenAPI'; -import { request as __request } from '../core/request'; - -export class ExportCsvService { - - /** - * Get Bal csv file - * @param baseLocaleId - * @returns any - * @throws ApiError - */ - public static getCsvBal( - baseLocaleId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/bases-locales/{baseLocaleId}/csv', - path: { - 'baseLocaleId': baseLocaleId, - }, - }); - } - - /** - * Get voies csv file - * @param baseLocaleId - * @returns any - * @throws ApiError - */ - public static getCsvVoies( - baseLocaleId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/bases-locales/{baseLocaleId}/voies/csv', - path: { - 'baseLocaleId': baseLocaleId, - }, - }); - } - -} diff --git a/lib/openapi/services/HabilitationService.ts b/lib/openapi/services/HabilitationService.ts deleted file mode 100644 index 7aae06094..000000000 --- a/lib/openapi/services/HabilitationService.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ValidatePinCodeDTO } from '../models/ValidatePinCodeDTO'; - -import type { CancelablePromise } from '../core/CancelablePromise'; -import { OpenAPI } from '../core/OpenAPI'; -import { request as __request } from '../core/request'; - -export class HabilitationService { - - /** - * Find habiliation - * @param baseLocaleId - * @returns any - * @throws ApiError - */ - public static findHabilitation( - baseLocaleId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/bases-locales/{baseLocaleId}/habilitation', - path: { - 'baseLocaleId': baseLocaleId, - }, - }); - } - - /** - * Create habiliation - * @param baseLocaleId - * @returns any - * @throws ApiError - */ - public static createHabilitation( - baseLocaleId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales/{baseLocaleId}/habilitation', - path: { - 'baseLocaleId': baseLocaleId, - }, - }); - } - - /** - * Send pin code of habilitation - * @param baseLocaleId - * @returns any - * @throws ApiError - */ - public static sendPinCodeHabilitation( - baseLocaleId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales/{baseLocaleId}/habilitation/email/send-pin-code', - path: { - 'baseLocaleId': baseLocaleId, - }, - }); - } - - /** - * Valide pin code of habiliation - * @param baseLocaleId - * @param requestBody - * @returns any - * @throws ApiError - */ - public static validePinCodeHabilitation( - baseLocaleId: string, - requestBody: ValidatePinCodeDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/bases-locales/{baseLocaleId}/habilitation/email/validate-pin-code', - path: { - 'baseLocaleId': baseLocaleId, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - -} diff --git a/lib/openapi/services/NumerosService.ts b/lib/openapi/services/NumerosService.ts deleted file mode 100644 index 7832191d6..000000000 --- a/lib/openapi/services/NumerosService.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { Numero } from '../models/Numero'; -import type { UpdateNumeroDTO } from '../models/UpdateNumeroDTO'; - -import type { CancelablePromise } from '../core/CancelablePromise'; -import { OpenAPI } from '../core/OpenAPI'; -import { request as __request } from '../core/request'; - -export class NumerosService { - - /** - * Find the numero by id - * @param numeroId - * @returns Numero - * @throws ApiError - */ - public static findNumero( - numeroId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/numeros/{numeroId}', - path: { - 'numeroId': numeroId, - }, - }); - } - - /** - * Update the numero by id - * @param numeroId - * @param requestBody - * @returns Numero - * @throws ApiError - */ - public static updateNumero( - numeroId: string, - requestBody: UpdateNumeroDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/v2/numeros/{numeroId}', - path: { - 'numeroId': numeroId, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Delete the numero by id - * @param numeroId - * @returns void - * @throws ApiError - */ - public static deleteNumero( - numeroId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'DELETE', - url: '/v2/numeros/{numeroId}', - path: { - 'numeroId': numeroId, - }, - }); - } - - /** - * Soft delete the numero by id - * @param numeroId - * @returns Numero - * @throws ApiError - */ - public static softDeleteNumero( - numeroId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/v2/numeros/{numeroId}/soft-delete', - path: { - 'numeroId': numeroId, - }, - }); - } - -} diff --git a/lib/openapi/services/StatsService.ts b/lib/openapi/services/StatsService.ts deleted file mode 100644 index 91f00d745..000000000 --- a/lib/openapi/services/StatsService.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { BaseLocale } from '../models/BaseLocale'; -import type { BasesLocalesCreationDTO } from '../models/BasesLocalesCreationDTO'; -import type { BasesLocalesStatusDTO } from '../models/BasesLocalesStatusDTO'; -import type { CodeCommuneDTO } from '../models/CodeCommuneDTO'; - -import type { CancelablePromise } from '../core/CancelablePromise'; -import { OpenAPI } from '../core/OpenAPI'; -import { request as __request } from '../core/request'; - -export class StatsService { - - /** - * Find all Bals (filtered by codeCommune) - * @param requestBody - * @param fields - * @returns BaseLocale - * @throws ApiError - */ - public static findBalsStats( - requestBody: CodeCommuneDTO, - fields?: Array, - ): CancelablePromise> { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/stats/bals', - query: { - 'fields': fields, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Find all Bals status - * @returns BasesLocalesStatusDTO - * @throws ApiError - */ - public static findBalsStatusStats(): CancelablePromise> { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/stats/bals/status', - }); - } - - /** - * Find all created Bals between date - * @param from - * @param to - * @returns BasesLocalesCreationDTO - * @throws ApiError - */ - public static findBalsCreationStats( - from: string, - to: string, - ): CancelablePromise> { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/stats/bals/creations', - query: { - 'from': from, - 'to': to, - }, - }); - } - -} diff --git a/lib/openapi/services/TilesService.ts b/lib/openapi/services/TilesService.ts deleted file mode 100644 index 4f0ec1ed3..000000000 --- a/lib/openapi/services/TilesService.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { CancelablePromise } from '../core/CancelablePromise'; -import { OpenAPI } from '../core/OpenAPI'; -import { request as __request } from '../core/request'; - -export class TilesService { - - /** - * Get tile (with voies and numeros features) - * @param z - * @param x - * @param y - * @param colorblindMode - * @param baseLocaleId - * @returns any - * @throws ApiError - */ - public static getBaseLocaleTile( - z: string, - x: string, - y: string, - colorblindMode: boolean, - baseLocaleId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/bases-locales/{baseLocaleId}/tiles/{z}/{x}/{y}.pbf', - path: { - 'z': z, - 'x': x, - 'y': y, - 'baseLocaleId': baseLocaleId, - }, - query: { - 'colorblindMode': colorblindMode, - }, - }); - } - -} diff --git a/lib/openapi/services/ToponymesService.ts b/lib/openapi/services/ToponymesService.ts deleted file mode 100644 index 245d7fb32..000000000 --- a/lib/openapi/services/ToponymesService.ts +++ /dev/null @@ -1,128 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { ExtentedToponymeDTO } from '../models/ExtentedToponymeDTO'; -import type { NumeroPopulate } from '../models/NumeroPopulate'; -import type { Toponyme } from '../models/Toponyme'; -import type { UpdateToponymeDTO } from '../models/UpdateToponymeDTO'; - -import type { CancelablePromise } from '../core/CancelablePromise'; -import { OpenAPI } from '../core/OpenAPI'; -import { request as __request } from '../core/request'; - -export class ToponymesService { - - /** - * Find Toponyme by id - * @param toponymeId - * @returns ExtentedToponymeDTO - * @throws ApiError - */ - public static findToponyme( - toponymeId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/toponymes/{toponymeId}', - path: { - 'toponymeId': toponymeId, - }, - }); - } - - /** - * Update Toponyme by id - * @param toponymeId - * @param requestBody - * @returns Toponyme - * @throws ApiError - */ - public static updateToponyme( - toponymeId: string, - requestBody: UpdateToponymeDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/v2/toponymes/{toponymeId}', - path: { - 'toponymeId': toponymeId, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Delete Toponyme by id - * @param toponymeId - * @returns void - * @throws ApiError - */ - public static deleteToponyme( - toponymeId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'DELETE', - url: '/v2/toponymes/{toponymeId}', - path: { - 'toponymeId': toponymeId, - }, - }); - } - - /** - * Soft delete Tpponyme by id - * @param toponymeId - * @returns Toponyme - * @throws ApiError - */ - public static softDeleteToponyme( - toponymeId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/v2/toponymes/{toponymeId}/soft-delete', - path: { - 'toponymeId': toponymeId, - }, - }); - } - - /** - * Restore Toponyme by id - * @param toponymeId - * @returns Toponyme - * @throws ApiError - */ - public static restoreToponyme( - toponymeId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/v2/toponymes/{toponymeId}/restore', - path: { - 'toponymeId': toponymeId, - }, - }); - } - - /** - * Find all numeros which belong to the toponyme - * @param toponymeId - * @returns NumeroPopulate - * @throws ApiError - */ - public static findToponymeNumeros( - toponymeId: string, - ): CancelablePromise> { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/toponymes/{toponymeId}/numeros', - path: { - 'toponymeId': toponymeId, - }, - }); - } - -} diff --git a/lib/openapi/services/VoiesService.ts b/lib/openapi/services/VoiesService.ts deleted file mode 100644 index 2d5201e75..000000000 --- a/lib/openapi/services/VoiesService.ts +++ /dev/null @@ -1,180 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { CreateNumeroDTO } from '../models/CreateNumeroDTO'; -import type { ExtendedVoieDTO } from '../models/ExtendedVoieDTO'; -import type { Numero } from '../models/Numero'; -import type { RestoreVoieDTO } from '../models/RestoreVoieDTO'; -import type { Toponyme } from '../models/Toponyme'; -import type { UpdateVoieDTO } from '../models/UpdateVoieDTO'; -import type { Voie } from '../models/Voie'; - -import type { CancelablePromise } from '../core/CancelablePromise'; -import { OpenAPI } from '../core/OpenAPI'; -import { request as __request } from '../core/request'; - -export class VoiesService { - - /** - * Find Voie by id - * @param voieId - * @returns ExtendedVoieDTO - * @throws ApiError - */ - public static findVoie( - voieId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/voies/{voieId}', - path: { - 'voieId': voieId, - }, - }); - } - - /** - * Update Voie by id - * @param voieId - * @param requestBody - * @returns Voie - * @throws ApiError - */ - public static updateVoie( - voieId: string, - requestBody: UpdateVoieDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/v2/voies/{voieId}', - path: { - 'voieId': voieId, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Delete Voie by id - * @param voieId - * @returns void - * @throws ApiError - */ - public static deleteVoie( - voieId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'DELETE', - url: '/v2/voies/{voieId}', - path: { - 'voieId': voieId, - }, - }); - } - - /** - * Soft delete Voie by id - * @param voieId - * @returns Voie - * @throws ApiError - */ - public static softDeleteVoie( - voieId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/v2/voies/{voieId}/soft-delete', - path: { - 'voieId': voieId, - }, - }); - } - - /** - * Restore Voie by id - * @param voieId - * @param requestBody - * @returns Voie - * @throws ApiError - */ - public static restoreVoie( - voieId: string, - requestBody: RestoreVoieDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/v2/voies/{voieId}/restore', - path: { - 'voieId': voieId, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Find all numeros which belong to the voie - * @param voieId - * @param isdeleted - * @returns Numero - * @throws ApiError - */ - public static findVoieNumeros( - voieId: string, - isdeleted?: boolean, - ): CancelablePromise> { - return __request(OpenAPI, { - method: 'GET', - url: '/v2/voies/{voieId}/numeros', - path: { - 'voieId': voieId, - }, - query: { - 'isdeleted': isdeleted, - }, - }); - } - - /** - * Create numero on the voie - * @param voieId - * @param requestBody - * @returns Numero - * @throws ApiError - */ - public static createNumero( - voieId: string, - requestBody: CreateNumeroDTO, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/v2/voies/{voieId}/numeros', - path: { - 'voieId': voieId, - }, - body: requestBody, - mediaType: 'application/json', - }); - } - - /** - * Convert Voie (without numeros) to Toponyme - * @param voieId - * @returns Toponyme - * @throws ApiError - */ - public static convertToToponyme( - voieId: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/v2/voies/{voieId}/convert-to-toponyme', - path: { - 'voieId': voieId, - }, - }); - } - -} From 8cea6a73f7d2bd35c73dcacd03a665879b120395 Mon Sep 17 00:00:00 2001 From: Fufeck Date: Mon, 20 Nov 2023 15:54:23 +0400 Subject: [PATCH 16/20] add lin openapi --- lib/openapi/core/ApiError.ts | 25 + lib/openapi/core/ApiRequestOptions.ts | 17 + lib/openapi/core/ApiResult.ts | 11 + lib/openapi/core/CancelablePromise.ts | 131 +++++ lib/openapi/core/OpenAPI.ts | 32 ++ lib/openapi/core/request.ts | 320 ++++++++++++ lib/openapi/index.ts | 56 ++ lib/openapi/models/AllDeletedInBalDTO.ts | 13 + lib/openapi/models/BaseLocale.ts | 36 ++ lib/openapi/models/BasesLocalesCreationDTO.ts | 10 + lib/openapi/models/BasesLocalesStatusDTO.ts | 12 + lib/openapi/models/CodeCommuneDTO.ts | 9 + lib/openapi/models/CreateBaseLocaleDTO.ts | 11 + lib/openapi/models/CreateDemoBaseLocaleDTO.ts | 10 + lib/openapi/models/CreateNumeroDTO.ts | 18 + lib/openapi/models/CreateToponymeDTO.ts | 14 + lib/openapi/models/CreateVoieDTO.ts | 14 + lib/openapi/models/DeleteBatchNumeroDTO.ts | 9 + lib/openapi/models/ExtendedBaseLocaleDTO.ts | 40 ++ lib/openapi/models/ExtendedVoieDTO.ts | 40 ++ lib/openapi/models/ExtentedToponymeDTO.ts | 26 + lib/openapi/models/FeaturePoint.ts | 13 + lib/openapi/models/ImportFileBaseLocaleDTO.ts | 14 + lib/openapi/models/LineString.ts | 10 + lib/openapi/models/Numero.ts | 26 + lib/openapi/models/NumeroPopulate.ts | 27 + lib/openapi/models/ObjectId.ts | 8 + lib/openapi/models/PageBaseLocaleDTO.ts | 14 + lib/openapi/models/Point.ts | 10 + lib/openapi/models/PopulateVoie.ts | 37 ++ lib/openapi/models/Position.ts | 13 + lib/openapi/models/RecoverBaseLocaleDTO.ts | 10 + lib/openapi/models/RestoreVoieDTO.ts | 9 + lib/openapi/models/Sync.ts | 25 + lib/openapi/models/Toponyme.ts | 21 + lib/openapi/models/UpdateBaseLocaleDTO.ts | 11 + lib/openapi/models/UpdateBaseLocaleDemoDTO.ts | 10 + .../models/UpdateBatchNumeroChangeDTO.ts | 15 + lib/openapi/models/UpdateBatchNumeroDTO.ts | 12 + lib/openapi/models/UpdateNumeroDTO.ts | 19 + lib/openapi/models/UpdateToponymeDTO.ts | 14 + lib/openapi/models/UpdateVoieDTO.ts | 14 + lib/openapi/models/ValidatePinCodeDTO.ts | 9 + lib/openapi/models/Voie.ts | 35 ++ lib/openapi/services/BasesLocalesService.ts | 492 ++++++++++++++++++ lib/openapi/services/CommuneService.ts | 29 ++ lib/openapi/services/ExportCsvService.ts | 47 ++ lib/openapi/services/HabilitationService.ts | 89 ++++ lib/openapi/services/NumerosService.ts | 90 ++++ lib/openapi/services/StatsService.ts | 71 +++ lib/openapi/services/TilesService.ts | 43 ++ lib/openapi/services/ToponymesService.ts | 128 +++++ lib/openapi/services/VoiesService.ts | 180 +++++++ 53 files changed, 2399 insertions(+) create mode 100644 lib/openapi/core/ApiError.ts create mode 100644 lib/openapi/core/ApiRequestOptions.ts create mode 100644 lib/openapi/core/ApiResult.ts create mode 100644 lib/openapi/core/CancelablePromise.ts create mode 100644 lib/openapi/core/OpenAPI.ts create mode 100644 lib/openapi/core/request.ts create mode 100644 lib/openapi/index.ts create mode 100644 lib/openapi/models/AllDeletedInBalDTO.ts create mode 100644 lib/openapi/models/BaseLocale.ts create mode 100644 lib/openapi/models/BasesLocalesCreationDTO.ts create mode 100644 lib/openapi/models/BasesLocalesStatusDTO.ts create mode 100644 lib/openapi/models/CodeCommuneDTO.ts create mode 100644 lib/openapi/models/CreateBaseLocaleDTO.ts create mode 100644 lib/openapi/models/CreateDemoBaseLocaleDTO.ts create mode 100644 lib/openapi/models/CreateNumeroDTO.ts create mode 100644 lib/openapi/models/CreateToponymeDTO.ts create mode 100644 lib/openapi/models/CreateVoieDTO.ts create mode 100644 lib/openapi/models/DeleteBatchNumeroDTO.ts create mode 100644 lib/openapi/models/ExtendedBaseLocaleDTO.ts create mode 100644 lib/openapi/models/ExtendedVoieDTO.ts create mode 100644 lib/openapi/models/ExtentedToponymeDTO.ts create mode 100644 lib/openapi/models/FeaturePoint.ts create mode 100644 lib/openapi/models/ImportFileBaseLocaleDTO.ts create mode 100644 lib/openapi/models/LineString.ts create mode 100644 lib/openapi/models/Numero.ts create mode 100644 lib/openapi/models/NumeroPopulate.ts create mode 100644 lib/openapi/models/ObjectId.ts create mode 100644 lib/openapi/models/PageBaseLocaleDTO.ts create mode 100644 lib/openapi/models/Point.ts create mode 100644 lib/openapi/models/PopulateVoie.ts create mode 100644 lib/openapi/models/Position.ts create mode 100644 lib/openapi/models/RecoverBaseLocaleDTO.ts create mode 100644 lib/openapi/models/RestoreVoieDTO.ts create mode 100644 lib/openapi/models/Sync.ts create mode 100644 lib/openapi/models/Toponyme.ts create mode 100644 lib/openapi/models/UpdateBaseLocaleDTO.ts create mode 100644 lib/openapi/models/UpdateBaseLocaleDemoDTO.ts create mode 100644 lib/openapi/models/UpdateBatchNumeroChangeDTO.ts create mode 100644 lib/openapi/models/UpdateBatchNumeroDTO.ts create mode 100644 lib/openapi/models/UpdateNumeroDTO.ts create mode 100644 lib/openapi/models/UpdateToponymeDTO.ts create mode 100644 lib/openapi/models/UpdateVoieDTO.ts create mode 100644 lib/openapi/models/ValidatePinCodeDTO.ts create mode 100644 lib/openapi/models/Voie.ts create mode 100644 lib/openapi/services/BasesLocalesService.ts create mode 100644 lib/openapi/services/CommuneService.ts create mode 100644 lib/openapi/services/ExportCsvService.ts create mode 100644 lib/openapi/services/HabilitationService.ts create mode 100644 lib/openapi/services/NumerosService.ts create mode 100644 lib/openapi/services/StatsService.ts create mode 100644 lib/openapi/services/TilesService.ts create mode 100644 lib/openapi/services/ToponymesService.ts create mode 100644 lib/openapi/services/VoiesService.ts diff --git a/lib/openapi/core/ApiError.ts b/lib/openapi/core/ApiError.ts new file mode 100644 index 000000000..d6b8fcc3a --- /dev/null +++ b/lib/openapi/core/ApiError.ts @@ -0,0 +1,25 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { ApiRequestOptions } from './ApiRequestOptions'; +import type { ApiResult } from './ApiResult'; + +export class ApiError extends Error { + public readonly url: string; + public readonly status: number; + public readonly statusText: string; + public readonly body: any; + public readonly request: ApiRequestOptions; + + constructor(request: ApiRequestOptions, response: ApiResult, message: string) { + super(message); + + this.name = 'ApiError'; + this.url = response.url; + this.status = response.status; + this.statusText = response.statusText; + this.body = response.body; + this.request = request; + } +} diff --git a/lib/openapi/core/ApiRequestOptions.ts b/lib/openapi/core/ApiRequestOptions.ts new file mode 100644 index 000000000..c19adcc94 --- /dev/null +++ b/lib/openapi/core/ApiRequestOptions.ts @@ -0,0 +1,17 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type ApiRequestOptions = { + readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH'; + readonly url: string; + readonly path?: Record; + readonly cookies?: Record; + readonly headers?: Record; + readonly query?: Record; + readonly formData?: Record; + readonly body?: any; + readonly mediaType?: string; + readonly responseHeader?: string; + readonly errors?: Record; +}; diff --git a/lib/openapi/core/ApiResult.ts b/lib/openapi/core/ApiResult.ts new file mode 100644 index 000000000..ad8fef2bc --- /dev/null +++ b/lib/openapi/core/ApiResult.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type ApiResult = { + readonly url: string; + readonly ok: boolean; + readonly status: number; + readonly statusText: string; + readonly body: any; +}; diff --git a/lib/openapi/core/CancelablePromise.ts b/lib/openapi/core/CancelablePromise.ts new file mode 100644 index 000000000..55fef8517 --- /dev/null +++ b/lib/openapi/core/CancelablePromise.ts @@ -0,0 +1,131 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export class CancelError extends Error { + + constructor(message: string) { + super(message); + this.name = 'CancelError'; + } + + public get isCancelled(): boolean { + return true; + } +} + +export interface OnCancel { + readonly isResolved: boolean; + readonly isRejected: boolean; + readonly isCancelled: boolean; + + (cancelHandler: () => void): void; +} + +export class CancelablePromise implements Promise { + #isResolved: boolean; + #isRejected: boolean; + #isCancelled: boolean; + readonly #cancelHandlers: (() => void)[]; + readonly #promise: Promise; + #resolve?: (value: T | PromiseLike) => void; + #reject?: (reason?: any) => void; + + constructor( + executor: ( + resolve: (value: T | PromiseLike) => void, + reject: (reason?: any) => void, + onCancel: OnCancel + ) => void + ) { + this.#isResolved = false; + this.#isRejected = false; + this.#isCancelled = false; + this.#cancelHandlers = []; + this.#promise = new Promise((resolve, reject) => { + this.#resolve = resolve; + this.#reject = reject; + + const onResolve = (value: T | PromiseLike): void => { + if (this.#isResolved || this.#isRejected || this.#isCancelled) { + return; + } + this.#isResolved = true; + this.#resolve?.(value); + }; + + const onReject = (reason?: any): void => { + if (this.#isResolved || this.#isRejected || this.#isCancelled) { + return; + } + this.#isRejected = true; + this.#reject?.(reason); + }; + + const onCancel = (cancelHandler: () => void): void => { + if (this.#isResolved || this.#isRejected || this.#isCancelled) { + return; + } + this.#cancelHandlers.push(cancelHandler); + }; + + Object.defineProperty(onCancel, 'isResolved', { + get: (): boolean => this.#isResolved, + }); + + Object.defineProperty(onCancel, 'isRejected', { + get: (): boolean => this.#isRejected, + }); + + Object.defineProperty(onCancel, 'isCancelled', { + get: (): boolean => this.#isCancelled, + }); + + return executor(onResolve, onReject, onCancel as OnCancel); + }); + } + + get [Symbol.toStringTag]() { + return "Cancellable Promise"; + } + + public then( + onFulfilled?: ((value: T) => TResult1 | PromiseLike) | null, + onRejected?: ((reason: any) => TResult2 | PromiseLike) | null + ): Promise { + return this.#promise.then(onFulfilled, onRejected); + } + + public catch( + onRejected?: ((reason: any) => TResult | PromiseLike) | null + ): Promise { + return this.#promise.catch(onRejected); + } + + public finally(onFinally?: (() => void) | null): Promise { + return this.#promise.finally(onFinally); + } + + public cancel(): void { + if (this.#isResolved || this.#isRejected || this.#isCancelled) { + return; + } + this.#isCancelled = true; + if (this.#cancelHandlers.length) { + try { + for (const cancelHandler of this.#cancelHandlers) { + cancelHandler(); + } + } catch (error) { + console.warn('Cancellation threw an error', error); + return; + } + } + this.#cancelHandlers.length = 0; + this.#reject?.(new CancelError('Request aborted')); + } + + public get isCancelled(): boolean { + return this.#isCancelled; + } +} diff --git a/lib/openapi/core/OpenAPI.ts b/lib/openapi/core/OpenAPI.ts new file mode 100644 index 000000000..342170aa8 --- /dev/null +++ b/lib/openapi/core/OpenAPI.ts @@ -0,0 +1,32 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { ApiRequestOptions } from './ApiRequestOptions'; + +type Resolver = (options: ApiRequestOptions) => Promise; +type Headers = Record; + +export type OpenAPIConfig = { + BASE: string; + VERSION: string; + WITH_CREDENTIALS: boolean; + CREDENTIALS: 'include' | 'omit' | 'same-origin'; + TOKEN?: string | Resolver | undefined; + USERNAME?: string | Resolver | undefined; + PASSWORD?: string | Resolver | undefined; + HEADERS?: Headers | Resolver | undefined; + ENCODE_PATH?: ((path: string) => string) | undefined; +}; + +export const OpenAPI: OpenAPIConfig = { + BASE: '', + VERSION: '2.0', + WITH_CREDENTIALS: false, + CREDENTIALS: 'include', + TOKEN: undefined, + USERNAME: undefined, + PASSWORD: undefined, + HEADERS: undefined, + ENCODE_PATH: undefined, +}; diff --git a/lib/openapi/core/request.ts b/lib/openapi/core/request.ts new file mode 100644 index 000000000..b018a07ca --- /dev/null +++ b/lib/openapi/core/request.ts @@ -0,0 +1,320 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import { ApiError } from './ApiError'; +import type { ApiRequestOptions } from './ApiRequestOptions'; +import type { ApiResult } from './ApiResult'; +import { CancelablePromise } from './CancelablePromise'; +import type { OnCancel } from './CancelablePromise'; +import type { OpenAPIConfig } from './OpenAPI'; + +export const isDefined = (value: T | null | undefined): value is Exclude => { + return value !== undefined && value !== null; +}; + +export const isString = (value: any): value is string => { + return typeof value === 'string'; +}; + +export const isStringWithValue = (value: any): value is string => { + return isString(value) && value !== ''; +}; + +export const isBlob = (value: any): value is Blob => { + return ( + typeof value === 'object' && + typeof value.type === 'string' && + typeof value.stream === 'function' && + typeof value.arrayBuffer === 'function' && + typeof value.constructor === 'function' && + typeof value.constructor.name === 'string' && + /^(Blob|File)$/.test(value.constructor.name) && + /^(Blob|File)$/.test(value[Symbol.toStringTag]) + ); +}; + +export const isFormData = (value: any): value is FormData => { + return value instanceof FormData; +}; + +export const base64 = (str: string): string => { + try { + return btoa(str); + } catch (err) { + // @ts-ignore + return Buffer.from(str).toString('base64'); + } +}; + +export const getQueryString = (params: Record): string => { + const qs: string[] = []; + + const append = (key: string, value: any) => { + qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`); + }; + + const process = (key: string, value: any) => { + if (isDefined(value)) { + if (Array.isArray(value)) { + value.forEach(v => { + process(key, v); + }); + } else if (typeof value === 'object') { + Object.entries(value).forEach(([k, v]) => { + process(`${key}[${k}]`, v); + }); + } else { + append(key, value); + } + } + }; + + Object.entries(params).forEach(([key, value]) => { + process(key, value); + }); + + if (qs.length > 0) { + return `?${qs.join('&')}`; + } + + return ''; +}; + +const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => { + const encoder = config.ENCODE_PATH || encodeURI; + + const path = options.url + .replace('{api-version}', config.VERSION) + .replace(/{(.*?)}/g, (substring: string, group: string) => { + if (options.path?.hasOwnProperty(group)) { + return encoder(String(options.path[group])); + } + return substring; + }); + + const url = `${config.BASE}${path}`; + if (options.query) { + return `${url}${getQueryString(options.query)}`; + } + return url; +}; + +export const getFormData = (options: ApiRequestOptions): FormData | undefined => { + if (options.formData) { + const formData = new FormData(); + + const process = (key: string, value: any) => { + if (isString(value) || isBlob(value)) { + formData.append(key, value); + } else { + formData.append(key, JSON.stringify(value)); + } + }; + + Object.entries(options.formData) + .filter(([_, value]) => isDefined(value)) + .forEach(([key, value]) => { + if (Array.isArray(value)) { + value.forEach(v => process(key, v)); + } else { + process(key, value); + } + }); + + return formData; + } + return undefined; +}; + +type Resolver = (options: ApiRequestOptions) => Promise; + +export const resolve = async (options: ApiRequestOptions, resolver?: T | Resolver): Promise => { + if (typeof resolver === 'function') { + return (resolver as Resolver)(options); + } + return resolver; +}; + +export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise => { + const token = await resolve(options, config.TOKEN); + const username = await resolve(options, config.USERNAME); + const password = await resolve(options, config.PASSWORD); + const additionalHeaders = await resolve(options, config.HEADERS); + + const headers = Object.entries({ + Accept: 'application/json', + ...additionalHeaders, + ...options.headers, + }) + .filter(([_, value]) => isDefined(value)) + .reduce((headers, [key, value]) => ({ + ...headers, + [key]: String(value), + }), {} as Record); + + if (isStringWithValue(token)) { + headers['Authorization'] = `Bearer ${token}`; + } + + if (isStringWithValue(username) && isStringWithValue(password)) { + const credentials = base64(`${username}:${password}`); + headers['Authorization'] = `Basic ${credentials}`; + } + + if (options.body) { + if (options.mediaType) { + headers['Content-Type'] = options.mediaType; + } else if (isBlob(options.body)) { + headers['Content-Type'] = options.body.type || 'application/octet-stream'; + } else if (isString(options.body)) { + headers['Content-Type'] = 'text/plain'; + } else if (!isFormData(options.body)) { + headers['Content-Type'] = 'application/json'; + } + } + + return new Headers(headers); +}; + +export const getRequestBody = (options: ApiRequestOptions): any => { + if (options.body !== undefined) { + if (options.mediaType?.includes('/json')) { + return JSON.stringify(options.body) + } else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) { + return options.body; + } else { + return JSON.stringify(options.body); + } + } + return undefined; +}; + +export const sendRequest = async ( + config: OpenAPIConfig, + options: ApiRequestOptions, + url: string, + body: any, + formData: FormData | undefined, + headers: Headers, + onCancel: OnCancel +): Promise => { + const controller = new AbortController(); + + const request: RequestInit = { + headers, + body: body ?? formData, + method: options.method, + signal: controller.signal, + }; + + if (config.WITH_CREDENTIALS) { + request.credentials = config.CREDENTIALS; + } + + onCancel(() => controller.abort()); + + return await fetch(url, request); +}; + +export const getResponseHeader = (response: Response, responseHeader?: string): string | undefined => { + if (responseHeader) { + const content = response.headers.get(responseHeader); + if (isString(content)) { + return content; + } + } + return undefined; +}; + +export const getResponseBody = async (response: Response): Promise => { + if (response.status !== 204) { + try { + const contentType = response.headers.get('Content-Type'); + if (contentType) { + const jsonTypes = ['application/json', 'application/problem+json'] + const isJSON = jsonTypes.some(type => contentType.toLowerCase().startsWith(type)); + if (isJSON) { + return await response.json(); + } else { + return await response.text(); + } + } + } catch (error) { + console.error(error); + } + } + return undefined; +}; + +export const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => { + const errors: Record = { + 400: 'Bad Request', + 401: 'Unauthorized', + 403: 'Forbidden', + 404: 'Not Found', + 500: 'Internal Server Error', + 502: 'Bad Gateway', + 503: 'Service Unavailable', + ...options.errors, + } + + const error = errors[result.status]; + if (error) { + throw new ApiError(options, result, error); + } + + if (!result.ok) { + const errorStatus = result.status ?? 'unknown'; + const errorStatusText = result.statusText ?? 'unknown'; + const errorBody = (() => { + try { + return JSON.stringify(result.body, null, 2); + } catch (e) { + return undefined; + } + })(); + + throw new ApiError(options, result, + `Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}` + ); + } +}; + +/** + * Request method + * @param config The OpenAPI configuration object + * @param options The request options from the service + * @returns CancelablePromise + * @throws ApiError + */ +export const request = (config: OpenAPIConfig, options: ApiRequestOptions): CancelablePromise => { + return new CancelablePromise(async (resolve, reject, onCancel) => { + try { + const url = getUrl(config, options); + const formData = getFormData(options); + const body = getRequestBody(options); + const headers = await getHeaders(config, options); + + if (!onCancel.isCancelled) { + const response = await sendRequest(config, options, url, body, formData, headers, onCancel); + const responseBody = await getResponseBody(response); + const responseHeader = getResponseHeader(response, options.responseHeader); + + const result: ApiResult = { + url, + ok: response.ok, + status: response.status, + statusText: response.statusText, + body: responseHeader ?? responseBody, + }; + + catchErrorCodes(options, result); + + resolve(result.body); + } + } catch (error) { + reject(error); + } + }); +}; diff --git a/lib/openapi/index.ts b/lib/openapi/index.ts new file mode 100644 index 000000000..d198d84fc --- /dev/null +++ b/lib/openapi/index.ts @@ -0,0 +1,56 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export { ApiError } from './core/ApiError'; +export { CancelablePromise, CancelError } from './core/CancelablePromise'; +export { OpenAPI } from './core/OpenAPI'; +export type { OpenAPIConfig } from './core/OpenAPI'; + +export type { AllDeletedInBalDTO } from './models/AllDeletedInBalDTO'; +export { BaseLocale } from './models/BaseLocale'; +export type { BasesLocalesCreationDTO } from './models/BasesLocalesCreationDTO'; +export type { BasesLocalesStatusDTO } from './models/BasesLocalesStatusDTO'; +export type { CodeCommuneDTO } from './models/CodeCommuneDTO'; +export type { CreateBaseLocaleDTO } from './models/CreateBaseLocaleDTO'; +export type { CreateDemoBaseLocaleDTO } from './models/CreateDemoBaseLocaleDTO'; +export type { CreateNumeroDTO } from './models/CreateNumeroDTO'; +export type { CreateToponymeDTO } from './models/CreateToponymeDTO'; +export type { CreateVoieDTO } from './models/CreateVoieDTO'; +export type { DeleteBatchNumeroDTO } from './models/DeleteBatchNumeroDTO'; +export { ExtendedBaseLocaleDTO } from './models/ExtendedBaseLocaleDTO'; +export { ExtendedVoieDTO } from './models/ExtendedVoieDTO'; +export type { ExtentedToponymeDTO } from './models/ExtentedToponymeDTO'; +export type { FeaturePoint } from './models/FeaturePoint'; +export type { ImportFileBaseLocaleDTO } from './models/ImportFileBaseLocaleDTO'; +export type { LineString } from './models/LineString'; +export type { Numero } from './models/Numero'; +export type { NumeroPopulate } from './models/NumeroPopulate'; +export type { ObjectId } from './models/ObjectId'; +export type { PageBaseLocaleDTO } from './models/PageBaseLocaleDTO'; +export type { Point } from './models/Point'; +export { PopulateVoie } from './models/PopulateVoie'; +export type { Position } from './models/Position'; +export type { RecoverBaseLocaleDTO } from './models/RecoverBaseLocaleDTO'; +export type { RestoreVoieDTO } from './models/RestoreVoieDTO'; +export { Sync } from './models/Sync'; +export type { Toponyme } from './models/Toponyme'; +export type { UpdateBaseLocaleDemoDTO } from './models/UpdateBaseLocaleDemoDTO'; +export type { UpdateBaseLocaleDTO } from './models/UpdateBaseLocaleDTO'; +export type { UpdateBatchNumeroChangeDTO } from './models/UpdateBatchNumeroChangeDTO'; +export type { UpdateBatchNumeroDTO } from './models/UpdateBatchNumeroDTO'; +export type { UpdateNumeroDTO } from './models/UpdateNumeroDTO'; +export type { UpdateToponymeDTO } from './models/UpdateToponymeDTO'; +export type { UpdateVoieDTO } from './models/UpdateVoieDTO'; +export type { ValidatePinCodeDTO } from './models/ValidatePinCodeDTO'; +export { Voie } from './models/Voie'; + +export { BasesLocalesService } from './services/BasesLocalesService'; +export { CommuneService } from './services/CommuneService'; +export { ExportCsvService } from './services/ExportCsvService'; +export { HabilitationService } from './services/HabilitationService'; +export { NumerosService } from './services/NumerosService'; +export { StatsService } from './services/StatsService'; +export { TilesService } from './services/TilesService'; +export { ToponymesService } from './services/ToponymesService'; +export { VoiesService } from './services/VoiesService'; diff --git a/lib/openapi/models/AllDeletedInBalDTO.ts b/lib/openapi/models/AllDeletedInBalDTO.ts new file mode 100644 index 000000000..de5340db0 --- /dev/null +++ b/lib/openapi/models/AllDeletedInBalDTO.ts @@ -0,0 +1,13 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { PopulateVoie } from './PopulateVoie'; +import type { Toponyme } from './Toponyme'; + +export type AllDeletedInBalDTO = { + voies: Array; + toponymes: Array; +}; + diff --git a/lib/openapi/models/BaseLocale.ts b/lib/openapi/models/BaseLocale.ts new file mode 100644 index 000000000..c27b7aabd --- /dev/null +++ b/lib/openapi/models/BaseLocale.ts @@ -0,0 +1,36 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; +import type { Sync } from './Sync'; + +export type BaseLocale = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + nom: string; + emails: Array; + token: string; + status: BaseLocale.status; + _habilitation: string; + commune: string; + enableComplement: boolean; + sync: Sync; +}; + +export namespace BaseLocale { + + export enum status { + DRAFT = 'draft', + READY_TO_PUBLISH = 'ready-to-publish', + PUBLISHED = 'published', + DEMO = 'demo', + REPLACED = 'replaced', + } + + +} + diff --git a/lib/openapi/models/BasesLocalesCreationDTO.ts b/lib/openapi/models/BasesLocalesCreationDTO.ts new file mode 100644 index 000000000..73f3cef68 --- /dev/null +++ b/lib/openapi/models/BasesLocalesCreationDTO.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type BasesLocalesCreationDTO = { + date: string; + createdBAL: Record; +}; + diff --git a/lib/openapi/models/BasesLocalesStatusDTO.ts b/lib/openapi/models/BasesLocalesStatusDTO.ts new file mode 100644 index 000000000..94ea13b98 --- /dev/null +++ b/lib/openapi/models/BasesLocalesStatusDTO.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; + +export type BasesLocalesStatusDTO = { + status: ObjectId; + count: number; +}; + diff --git a/lib/openapi/models/CodeCommuneDTO.ts b/lib/openapi/models/CodeCommuneDTO.ts new file mode 100644 index 000000000..d67d85723 --- /dev/null +++ b/lib/openapi/models/CodeCommuneDTO.ts @@ -0,0 +1,9 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type CodeCommuneDTO = { + codeCommunes: Array; +}; + diff --git a/lib/openapi/models/CreateBaseLocaleDTO.ts b/lib/openapi/models/CreateBaseLocaleDTO.ts new file mode 100644 index 000000000..71b0e29ac --- /dev/null +++ b/lib/openapi/models/CreateBaseLocaleDTO.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type CreateBaseLocaleDTO = { + nom: string; + emails: Array; + commune: string; +}; + diff --git a/lib/openapi/models/CreateDemoBaseLocaleDTO.ts b/lib/openapi/models/CreateDemoBaseLocaleDTO.ts new file mode 100644 index 000000000..182855b04 --- /dev/null +++ b/lib/openapi/models/CreateDemoBaseLocaleDTO.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type CreateDemoBaseLocaleDTO = { + commune: string; + populate?: boolean | null; +}; + diff --git a/lib/openapi/models/CreateNumeroDTO.ts b/lib/openapi/models/CreateNumeroDTO.ts new file mode 100644 index 000000000..e9483864d --- /dev/null +++ b/lib/openapi/models/CreateNumeroDTO.ts @@ -0,0 +1,18 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; +import type { Position } from './Position'; + +export type CreateNumeroDTO = { + numero: number; + suffixe?: string | null; + comment?: string | null; + toponyme?: ObjectId | null; + parcelles?: Array; + certifie?: boolean; + positions: Array; +}; + diff --git a/lib/openapi/models/CreateToponymeDTO.ts b/lib/openapi/models/CreateToponymeDTO.ts new file mode 100644 index 000000000..0edaabf7a --- /dev/null +++ b/lib/openapi/models/CreateToponymeDTO.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Position } from './Position'; + +export type CreateToponymeDTO = { + nom: string; + nomAlt?: Record | null; + parcelles?: Array | null; + positions?: Array; +}; + diff --git a/lib/openapi/models/CreateVoieDTO.ts b/lib/openapi/models/CreateVoieDTO.ts new file mode 100644 index 000000000..aa487f41e --- /dev/null +++ b/lib/openapi/models/CreateVoieDTO.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { LineString } from './LineString'; + +export type CreateVoieDTO = { + nom: string; + nomAlt?: Record | null; + typeNumerotation?: Record; + trace?: LineString; +}; + diff --git a/lib/openapi/models/DeleteBatchNumeroDTO.ts b/lib/openapi/models/DeleteBatchNumeroDTO.ts new file mode 100644 index 000000000..ab95eea12 --- /dev/null +++ b/lib/openapi/models/DeleteBatchNumeroDTO.ts @@ -0,0 +1,9 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type DeleteBatchNumeroDTO = { + numerosIds: Array; +}; + diff --git a/lib/openapi/models/ExtendedBaseLocaleDTO.ts b/lib/openapi/models/ExtendedBaseLocaleDTO.ts new file mode 100644 index 000000000..9c14dec6a --- /dev/null +++ b/lib/openapi/models/ExtendedBaseLocaleDTO.ts @@ -0,0 +1,40 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; +import type { Sync } from './Sync'; + +export type ExtendedBaseLocaleDTO = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + nom: string; + emails: Array; + token: string; + status: ExtendedBaseLocaleDTO.status; + _habilitation: string; + commune: string; + enableComplement: boolean; + sync: Sync; + nbNumeros: number; + nbNumerosCertifies: number; + isAllCertified: boolean; + commentedNumeros: Array; +}; + +export namespace ExtendedBaseLocaleDTO { + + export enum status { + DRAFT = 'draft', + READY_TO_PUBLISH = 'ready-to-publish', + PUBLISHED = 'published', + DEMO = 'demo', + REPLACED = 'replaced', + } + + +} + diff --git a/lib/openapi/models/ExtendedVoieDTO.ts b/lib/openapi/models/ExtendedVoieDTO.ts new file mode 100644 index 000000000..df544bd83 --- /dev/null +++ b/lib/openapi/models/ExtendedVoieDTO.ts @@ -0,0 +1,40 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { FeaturePoint } from './FeaturePoint'; +import type { LineString } from './LineString'; +import type { ObjectId } from './ObjectId'; + +export type ExtendedVoieDTO = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + _bal: ObjectId; + nom: string; + commune: string; + nomAlt: Record; + centroid: FeaturePoint; + centroidTiles: Array; + typeNumerotation: ExtendedVoieDTO.typeNumerotation; + trace: LineString; + traceTiles: Array; + nbNumeros: number; + nbNumerosCertifies: number; + isAllCertified: boolean; + commentedNumeros: Array; + bbox: Record; +}; + +export namespace ExtendedVoieDTO { + + export enum typeNumerotation { + NUMERIQUE = 'numerique', + METRIQUE = 'metrique', + } + + +} + diff --git a/lib/openapi/models/ExtentedToponymeDTO.ts b/lib/openapi/models/ExtentedToponymeDTO.ts new file mode 100644 index 000000000..552579a2b --- /dev/null +++ b/lib/openapi/models/ExtentedToponymeDTO.ts @@ -0,0 +1,26 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; +import type { Position } from './Position'; + +export type ExtentedToponymeDTO = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + _bal: ObjectId; + nom: string; + commune: string; + nomAlt: Record; + parcelles: Array; + positions: Array; + nbNumeros: number; + nbNumerosCertifies: number; + isAllCertified: boolean; + commentedNumeros: Array; + bbox: Record; +}; + diff --git a/lib/openapi/models/FeaturePoint.ts b/lib/openapi/models/FeaturePoint.ts new file mode 100644 index 000000000..99af09511 --- /dev/null +++ b/lib/openapi/models/FeaturePoint.ts @@ -0,0 +1,13 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Point } from './Point'; + +export type FeaturePoint = { + type: string; + properties: Record; + geometry: Point; +}; + diff --git a/lib/openapi/models/ImportFileBaseLocaleDTO.ts b/lib/openapi/models/ImportFileBaseLocaleDTO.ts new file mode 100644 index 000000000..063615d9b --- /dev/null +++ b/lib/openapi/models/ImportFileBaseLocaleDTO.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type ImportFileBaseLocaleDTO = { + isValid: boolean; + accepted: number; + rejected: number; + commune: string; + voies: number; + numeros: number; +}; + diff --git a/lib/openapi/models/LineString.ts b/lib/openapi/models/LineString.ts new file mode 100644 index 000000000..9c1e311a6 --- /dev/null +++ b/lib/openapi/models/LineString.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type LineString = { + type: string; + coordinates: Array; +}; + diff --git a/lib/openapi/models/Numero.ts b/lib/openapi/models/Numero.ts new file mode 100644 index 000000000..88e9b3f57 --- /dev/null +++ b/lib/openapi/models/Numero.ts @@ -0,0 +1,26 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; +import type { Position } from './Position'; + +export type Numero = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + _bal: ObjectId; + numero: number; + commune: string; + suffixe: string; + comment: string; + toponyme: ObjectId; + voie: ObjectId; + parcelles: Array; + certifie: boolean; + positions: Array; + tiles: Array; +}; + diff --git a/lib/openapi/models/NumeroPopulate.ts b/lib/openapi/models/NumeroPopulate.ts new file mode 100644 index 000000000..1357e1a77 --- /dev/null +++ b/lib/openapi/models/NumeroPopulate.ts @@ -0,0 +1,27 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; +import type { Position } from './Position'; +import type { Voie } from './Voie'; + +export type NumeroPopulate = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + _bal: ObjectId; + numero: number; + commune: string; + suffixe: string; + comment: string; + toponyme: ObjectId; + voie: Voie; + parcelles: Array; + certifie: boolean; + positions: Array; + tiles: Array; +}; + diff --git a/lib/openapi/models/ObjectId.ts b/lib/openapi/models/ObjectId.ts new file mode 100644 index 000000000..4515196d8 --- /dev/null +++ b/lib/openapi/models/ObjectId.ts @@ -0,0 +1,8 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type ObjectId = { +}; + diff --git a/lib/openapi/models/PageBaseLocaleDTO.ts b/lib/openapi/models/PageBaseLocaleDTO.ts new file mode 100644 index 000000000..bc89a8764 --- /dev/null +++ b/lib/openapi/models/PageBaseLocaleDTO.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ExtendedBaseLocaleDTO } from './ExtendedBaseLocaleDTO'; + +export type PageBaseLocaleDTO = { + offset: number; + limit: number; + count: number; + results: Array; +}; + diff --git a/lib/openapi/models/Point.ts b/lib/openapi/models/Point.ts new file mode 100644 index 000000000..0494dfccc --- /dev/null +++ b/lib/openapi/models/Point.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type Point = { + type: string; + coordinates: Array; +}; + diff --git a/lib/openapi/models/PopulateVoie.ts b/lib/openapi/models/PopulateVoie.ts new file mode 100644 index 000000000..b0d78940d --- /dev/null +++ b/lib/openapi/models/PopulateVoie.ts @@ -0,0 +1,37 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { FeaturePoint } from './FeaturePoint'; +import type { LineString } from './LineString'; +import type { Numero } from './Numero'; +import type { ObjectId } from './ObjectId'; + +export type PopulateVoie = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + _bal: ObjectId; + nom: string; + commune: string; + nomAlt: Record; + centroid: FeaturePoint; + centroidTiles: Array; + typeNumerotation: PopulateVoie.typeNumerotation; + trace: LineString; + traceTiles: Array; + numeros: Array; +}; + +export namespace PopulateVoie { + + export enum typeNumerotation { + NUMERIQUE = 'numerique', + METRIQUE = 'metrique', + } + + +} + diff --git a/lib/openapi/models/Position.ts b/lib/openapi/models/Position.ts new file mode 100644 index 000000000..a870e390a --- /dev/null +++ b/lib/openapi/models/Position.ts @@ -0,0 +1,13 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Point } from './Point'; + +export type Position = { + type: Record; + source: string; + point: Point; +}; + diff --git a/lib/openapi/models/RecoverBaseLocaleDTO.ts b/lib/openapi/models/RecoverBaseLocaleDTO.ts new file mode 100644 index 000000000..57fd5c3b1 --- /dev/null +++ b/lib/openapi/models/RecoverBaseLocaleDTO.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type RecoverBaseLocaleDTO = { + id?: string | null; + email: string; +}; + diff --git a/lib/openapi/models/RestoreVoieDTO.ts b/lib/openapi/models/RestoreVoieDTO.ts new file mode 100644 index 000000000..8e3386d3c --- /dev/null +++ b/lib/openapi/models/RestoreVoieDTO.ts @@ -0,0 +1,9 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type RestoreVoieDTO = { + numerosIds: Array | null; +}; + diff --git a/lib/openapi/models/Sync.ts b/lib/openapi/models/Sync.ts new file mode 100644 index 000000000..19c25e11e --- /dev/null +++ b/lib/openapi/models/Sync.ts @@ -0,0 +1,25 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; + +export type Sync = { + status: Sync.status; + isPaused: boolean; + lastUploadedRevisionId: ObjectId; + currentUpdated: string; +}; + +export namespace Sync { + + export enum status { + OUTDATED = 'outdated', + SYNCED = 'synced', + CONFLICT = 'conflict', + } + + +} + diff --git a/lib/openapi/models/Toponyme.ts b/lib/openapi/models/Toponyme.ts new file mode 100644 index 000000000..54df94415 --- /dev/null +++ b/lib/openapi/models/Toponyme.ts @@ -0,0 +1,21 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; +import type { Position } from './Position'; + +export type Toponyme = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + _bal: ObjectId; + nom: string; + commune: string; + nomAlt: Record; + parcelles: Array; + positions: Array; +}; + diff --git a/lib/openapi/models/UpdateBaseLocaleDTO.ts b/lib/openapi/models/UpdateBaseLocaleDTO.ts new file mode 100644 index 000000000..6334c60b0 --- /dev/null +++ b/lib/openapi/models/UpdateBaseLocaleDTO.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type UpdateBaseLocaleDTO = { + nom: string; + status: Record; + emails: Array; +}; + diff --git a/lib/openapi/models/UpdateBaseLocaleDemoDTO.ts b/lib/openapi/models/UpdateBaseLocaleDemoDTO.ts new file mode 100644 index 000000000..cea42f844 --- /dev/null +++ b/lib/openapi/models/UpdateBaseLocaleDemoDTO.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type UpdateBaseLocaleDemoDTO = { + nom: string; + email: string; +}; + diff --git a/lib/openapi/models/UpdateBatchNumeroChangeDTO.ts b/lib/openapi/models/UpdateBatchNumeroChangeDTO.ts new file mode 100644 index 000000000..4ec8d4e3c --- /dev/null +++ b/lib/openapi/models/UpdateBatchNumeroChangeDTO.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; + +export type UpdateBatchNumeroChangeDTO = { + comment?: string | null; + toponyme?: ObjectId | null; + voie?: ObjectId; + positionType?: Record; + certifie?: boolean; +}; + diff --git a/lib/openapi/models/UpdateBatchNumeroDTO.ts b/lib/openapi/models/UpdateBatchNumeroDTO.ts new file mode 100644 index 000000000..dbad5a705 --- /dev/null +++ b/lib/openapi/models/UpdateBatchNumeroDTO.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { UpdateBatchNumeroChangeDTO } from './UpdateBatchNumeroChangeDTO'; + +export type UpdateBatchNumeroDTO = { + numerosIds?: Array | null; + changes: UpdateBatchNumeroChangeDTO; +}; + diff --git a/lib/openapi/models/UpdateNumeroDTO.ts b/lib/openapi/models/UpdateNumeroDTO.ts new file mode 100644 index 000000000..a2bb2a34b --- /dev/null +++ b/lib/openapi/models/UpdateNumeroDTO.ts @@ -0,0 +1,19 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ObjectId } from './ObjectId'; +import type { Position } from './Position'; + +export type UpdateNumeroDTO = { + numero?: number; + suffixe?: string | null; + comment?: string | null; + toponyme?: ObjectId | null; + voie?: ObjectId; + parcelles?: Array; + certifie?: boolean; + positions?: Array; +}; + diff --git a/lib/openapi/models/UpdateToponymeDTO.ts b/lib/openapi/models/UpdateToponymeDTO.ts new file mode 100644 index 000000000..d20b27310 --- /dev/null +++ b/lib/openapi/models/UpdateToponymeDTO.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Position } from './Position'; + +export type UpdateToponymeDTO = { + nom?: string; + nomAlt?: Record | null; + parcelles?: Array | null; + positions?: Array; +}; + diff --git a/lib/openapi/models/UpdateVoieDTO.ts b/lib/openapi/models/UpdateVoieDTO.ts new file mode 100644 index 000000000..06336e8cd --- /dev/null +++ b/lib/openapi/models/UpdateVoieDTO.ts @@ -0,0 +1,14 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { LineString } from './LineString'; + +export type UpdateVoieDTO = { + nom?: string; + nomAlt?: Record | null; + typeNumerotation?: Record; + trace?: LineString; +}; + diff --git a/lib/openapi/models/ValidatePinCodeDTO.ts b/lib/openapi/models/ValidatePinCodeDTO.ts new file mode 100644 index 000000000..007f0abe7 --- /dev/null +++ b/lib/openapi/models/ValidatePinCodeDTO.ts @@ -0,0 +1,9 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type ValidatePinCodeDTO = { + code: number; +}; + diff --git a/lib/openapi/models/Voie.ts b/lib/openapi/models/Voie.ts new file mode 100644 index 000000000..a9d5aab88 --- /dev/null +++ b/lib/openapi/models/Voie.ts @@ -0,0 +1,35 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { FeaturePoint } from './FeaturePoint'; +import type { LineString } from './LineString'; +import type { ObjectId } from './ObjectId'; + +export type Voie = { + _id: ObjectId; + _created: string; + _updated: string; + _deleted: string; + _bal: ObjectId; + nom: string; + commune: string; + nomAlt: Record; + centroid: FeaturePoint; + centroidTiles: Array; + typeNumerotation: Voie.typeNumerotation; + trace: LineString; + traceTiles: Array; +}; + +export namespace Voie { + + export enum typeNumerotation { + NUMERIQUE = 'numerique', + METRIQUE = 'metrique', + } + + +} + diff --git a/lib/openapi/services/BasesLocalesService.ts b/lib/openapi/services/BasesLocalesService.ts new file mode 100644 index 000000000..b7701853f --- /dev/null +++ b/lib/openapi/services/BasesLocalesService.ts @@ -0,0 +1,492 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { AllDeletedInBalDTO } from '../models/AllDeletedInBalDTO'; +import type { BaseLocale } from '../models/BaseLocale'; +import type { CreateBaseLocaleDTO } from '../models/CreateBaseLocaleDTO'; +import type { CreateDemoBaseLocaleDTO } from '../models/CreateDemoBaseLocaleDTO'; +import type { CreateToponymeDTO } from '../models/CreateToponymeDTO'; +import type { CreateVoieDTO } from '../models/CreateVoieDTO'; +import type { DeleteBatchNumeroDTO } from '../models/DeleteBatchNumeroDTO'; +import type { ExtendedBaseLocaleDTO } from '../models/ExtendedBaseLocaleDTO'; +import type { ExtentedToponymeDTO } from '../models/ExtentedToponymeDTO'; +import type { ImportFileBaseLocaleDTO } from '../models/ImportFileBaseLocaleDTO'; +import type { PageBaseLocaleDTO } from '../models/PageBaseLocaleDTO'; +import type { RecoverBaseLocaleDTO } from '../models/RecoverBaseLocaleDTO'; +import type { Toponyme } from '../models/Toponyme'; +import type { UpdateBaseLocaleDemoDTO } from '../models/UpdateBaseLocaleDemoDTO'; +import type { UpdateBaseLocaleDTO } from '../models/UpdateBaseLocaleDTO'; +import type { UpdateBatchNumeroDTO } from '../models/UpdateBatchNumeroDTO'; +import type { Voie } from '../models/Voie'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class BasesLocalesService { + + /** + * Create a base locale + * @param requestBody + * @returns BaseLocale + * @throws ApiError + */ + public static createBaseLocale( + requestBody: CreateBaseLocaleDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales', + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Create a base locale + * @param requestBody + * @returns BaseLocale + * @throws ApiError + */ + public static createBaseLocaleDemo( + requestBody: CreateDemoBaseLocaleDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/create-demo', + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Search BAL by filters + * @param limit + * @param offset + * @param deleted + * @param commune + * @param email + * @param status + * @returns PageBaseLocaleDTO + * @throws ApiError + */ + public static searchBaseLocale( + limit?: number, + offset?: number, + deleted?: boolean, + commune?: string, + email?: string, + status?: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/search', + query: { + 'limit': limit, + 'offset': offset, + 'deleted': deleted, + 'commune': commune, + 'email': email, + 'status': status, + }, + }); + } + + /** + * Find Base_Locale by id + * @param baseLocaleId + * @returns ExtendedBaseLocaleDTO + * @throws ApiError + */ + public static findBaseLocale( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Update one base locale + * @param baseLocaleId + * @param requestBody + * @returns BaseLocale + * @throws ApiError + */ + public static updateBaseLocale( + baseLocaleId: string, + requestBody: UpdateBaseLocaleDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/bases-locales/{baseLocaleId}', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Delete one base locale + * @param baseLocaleId + * @returns void + * @throws ApiError + */ + public static deleteBaseLocale( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/v2/bases-locales/{baseLocaleId}', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Update one base locale status to draft + * @param baseLocaleId + * @param requestBody + * @returns BaseLocale + * @throws ApiError + */ + public static updateBaseLocaleDemoToDraft( + baseLocaleId: string, + requestBody: UpdateBaseLocaleDemoDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/bases-locales/{baseLocaleId}/transform-to-draft', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Upload a CSV BAL file + * @param baseLocaleId + * @param formData + * @returns ImportFileBaseLocaleDTO + * @throws ApiError + */ + public static uploadCsvBalFile( + baseLocaleId: string, + formData: { + file?: Blob; + }, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/upload', + path: { + 'baseLocaleId': baseLocaleId, + }, + formData: formData, + mediaType: 'multipart/form-data', + }); + } + + /** + * Recover BAL access + * @param requestBody + * @returns void + * @throws ApiError + */ + public static recoveryBasesLocales( + requestBody: RecoverBaseLocaleDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/recovery', + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Restore deleted BAL + * @param token + * @param baseLocaleId + * @returns void + * @throws ApiError + */ + public static recoveryBaseLocale( + token: string, + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/{token}/recovery', + path: { + 'token': token, + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Populate Base Locale + * @param baseLocaleId + * @returns BaseLocale + * @throws ApiError + */ + public static populateBaseLocale( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/populate', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Renew Base Locale token + * @param baseLocaleId + * @returns BaseLocale + * @throws ApiError + */ + public static renewTokenBaseLocale( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/token/renew', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Find Base_Locale parcelles + * @param baseLocaleId + * @returns any + * @throws ApiError + */ + public static findBaseLocaleParcelles( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/parcelles', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Publish base locale + * @returns BaseLocale + * @throws ApiError + */ + public static publishBaseLocale(): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/sync/exec', + }); + } + + /** + * Update isPaused sync BAL to true + * @returns BaseLocale + * @throws ApiError + */ + public static pauseBaseLocale(): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/sync/pause', + }); + } + + /** + * Update isPaused sync BAL to false + * @returns BaseLocale + * @throws ApiError + */ + public static resumeBaseLocale(): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/sync/resume', + }); + } + + /** + * Find all model deleted in Bal + * @param baseLocaleId + * @returns AllDeletedInBalDTO + * @throws ApiError + */ + public static findAllDeleted( + baseLocaleId: string, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/all/deleted', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Multi update numeros + * @param baseLocaleId + * @param requestBody + * @returns any + * @throws ApiError + */ + public static updateNumeros( + baseLocaleId: string, + requestBody: UpdateBatchNumeroDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/bases-locales/{baseLocaleId}/numeros/batch', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Multi delete numeros + * @param baseLocaleId + * @param requestBody + * @returns void + * @throws ApiError + */ + public static deleteNumeros( + baseLocaleId: string, + requestBody: DeleteBatchNumeroDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/v2/bases-locales/{baseLocaleId}/numeros/batch', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Multi soft delete numeros + * @param baseLocaleId + * @param requestBody + * @returns any + * @throws ApiError + */ + public static softDeleteNumeros( + baseLocaleId: string, + requestBody: DeleteBatchNumeroDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/bases-locales/{baseLocaleId}/numeros/batch/soft-delete', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Find all Voie in Bal + * @param baseLocaleId + * @returns any + * @throws ApiError + */ + public static findBaseLocaleVoies( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/voies', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Create Voie in Bal + * @param baseLocaleId + * @param requestBody + * @returns Voie + * @throws ApiError + */ + public static createVoie( + baseLocaleId: string, + requestBody: CreateVoieDTO, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/voies', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Find all Toponymes in Bal + * @param baseLocaleId + * @returns ExtentedToponymeDTO + * @throws ApiError + */ + public static findBaseLocaleToponymes( + baseLocaleId: string, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/toponymes', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Create Toponyme in Bal + * @param baseLocaleId + * @param requestBody + * @returns Toponyme + * @throws ApiError + */ + public static createToponyme( + baseLocaleId: string, + requestBody: CreateToponymeDTO, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/toponymes', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + +} diff --git a/lib/openapi/services/CommuneService.ts b/lib/openapi/services/CommuneService.ts new file mode 100644 index 000000000..5c273fe3f --- /dev/null +++ b/lib/openapi/services/CommuneService.ts @@ -0,0 +1,29 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class CommuneService { + + /** + * Find info commune + * @param codeCommune + * @returns any + * @throws ApiError + */ + public static findCommune( + codeCommune: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/commune/{codeCommune}', + path: { + 'codeCommune': codeCommune, + }, + }); + } + +} diff --git a/lib/openapi/services/ExportCsvService.ts b/lib/openapi/services/ExportCsvService.ts new file mode 100644 index 000000000..1b500af92 --- /dev/null +++ b/lib/openapi/services/ExportCsvService.ts @@ -0,0 +1,47 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class ExportCsvService { + + /** + * Get Bal csv file + * @param baseLocaleId + * @returns any + * @throws ApiError + */ + public static getCsvBal( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/csv', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Get voies csv file + * @param baseLocaleId + * @returns any + * @throws ApiError + */ + public static getCsvVoies( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/voies/csv', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + +} diff --git a/lib/openapi/services/HabilitationService.ts b/lib/openapi/services/HabilitationService.ts new file mode 100644 index 000000000..7aae06094 --- /dev/null +++ b/lib/openapi/services/HabilitationService.ts @@ -0,0 +1,89 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { ValidatePinCodeDTO } from '../models/ValidatePinCodeDTO'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class HabilitationService { + + /** + * Find habiliation + * @param baseLocaleId + * @returns any + * @throws ApiError + */ + public static findHabilitation( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/habilitation', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Create habiliation + * @param baseLocaleId + * @returns any + * @throws ApiError + */ + public static createHabilitation( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/habilitation', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Send pin code of habilitation + * @param baseLocaleId + * @returns any + * @throws ApiError + */ + public static sendPinCodeHabilitation( + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/habilitation/email/send-pin-code', + path: { + 'baseLocaleId': baseLocaleId, + }, + }); + } + + /** + * Valide pin code of habiliation + * @param baseLocaleId + * @param requestBody + * @returns any + * @throws ApiError + */ + public static validePinCodeHabilitation( + baseLocaleId: string, + requestBody: ValidatePinCodeDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/bases-locales/{baseLocaleId}/habilitation/email/validate-pin-code', + path: { + 'baseLocaleId': baseLocaleId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + +} diff --git a/lib/openapi/services/NumerosService.ts b/lib/openapi/services/NumerosService.ts new file mode 100644 index 000000000..7832191d6 --- /dev/null +++ b/lib/openapi/services/NumerosService.ts @@ -0,0 +1,90 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { Numero } from '../models/Numero'; +import type { UpdateNumeroDTO } from '../models/UpdateNumeroDTO'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class NumerosService { + + /** + * Find the numero by id + * @param numeroId + * @returns Numero + * @throws ApiError + */ + public static findNumero( + numeroId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/numeros/{numeroId}', + path: { + 'numeroId': numeroId, + }, + }); + } + + /** + * Update the numero by id + * @param numeroId + * @param requestBody + * @returns Numero + * @throws ApiError + */ + public static updateNumero( + numeroId: string, + requestBody: UpdateNumeroDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/numeros/{numeroId}', + path: { + 'numeroId': numeroId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Delete the numero by id + * @param numeroId + * @returns void + * @throws ApiError + */ + public static deleteNumero( + numeroId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/v2/numeros/{numeroId}', + path: { + 'numeroId': numeroId, + }, + }); + } + + /** + * Soft delete the numero by id + * @param numeroId + * @returns Numero + * @throws ApiError + */ + public static softDeleteNumero( + numeroId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/numeros/{numeroId}/soft-delete', + path: { + 'numeroId': numeroId, + }, + }); + } + +} diff --git a/lib/openapi/services/StatsService.ts b/lib/openapi/services/StatsService.ts new file mode 100644 index 000000000..91f00d745 --- /dev/null +++ b/lib/openapi/services/StatsService.ts @@ -0,0 +1,71 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { BaseLocale } from '../models/BaseLocale'; +import type { BasesLocalesCreationDTO } from '../models/BasesLocalesCreationDTO'; +import type { BasesLocalesStatusDTO } from '../models/BasesLocalesStatusDTO'; +import type { CodeCommuneDTO } from '../models/CodeCommuneDTO'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class StatsService { + + /** + * Find all Bals (filtered by codeCommune) + * @param requestBody + * @param fields + * @returns BaseLocale + * @throws ApiError + */ + public static findBalsStats( + requestBody: CodeCommuneDTO, + fields?: Array, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/stats/bals', + query: { + 'fields': fields, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Find all Bals status + * @returns BasesLocalesStatusDTO + * @throws ApiError + */ + public static findBalsStatusStats(): CancelablePromise> { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/stats/bals/status', + }); + } + + /** + * Find all created Bals between date + * @param from + * @param to + * @returns BasesLocalesCreationDTO + * @throws ApiError + */ + public static findBalsCreationStats( + from: string, + to: string, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/stats/bals/creations', + query: { + 'from': from, + 'to': to, + }, + }); + } + +} diff --git a/lib/openapi/services/TilesService.ts b/lib/openapi/services/TilesService.ts new file mode 100644 index 000000000..4f0ec1ed3 --- /dev/null +++ b/lib/openapi/services/TilesService.ts @@ -0,0 +1,43 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class TilesService { + + /** + * Get tile (with voies and numeros features) + * @param z + * @param x + * @param y + * @param colorblindMode + * @param baseLocaleId + * @returns any + * @throws ApiError + */ + public static getBaseLocaleTile( + z: string, + x: string, + y: string, + colorblindMode: boolean, + baseLocaleId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/bases-locales/{baseLocaleId}/tiles/{z}/{x}/{y}.pbf', + path: { + 'z': z, + 'x': x, + 'y': y, + 'baseLocaleId': baseLocaleId, + }, + query: { + 'colorblindMode': colorblindMode, + }, + }); + } + +} diff --git a/lib/openapi/services/ToponymesService.ts b/lib/openapi/services/ToponymesService.ts new file mode 100644 index 000000000..245d7fb32 --- /dev/null +++ b/lib/openapi/services/ToponymesService.ts @@ -0,0 +1,128 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { ExtentedToponymeDTO } from '../models/ExtentedToponymeDTO'; +import type { NumeroPopulate } from '../models/NumeroPopulate'; +import type { Toponyme } from '../models/Toponyme'; +import type { UpdateToponymeDTO } from '../models/UpdateToponymeDTO'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class ToponymesService { + + /** + * Find Toponyme by id + * @param toponymeId + * @returns ExtentedToponymeDTO + * @throws ApiError + */ + public static findToponyme( + toponymeId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/toponymes/{toponymeId}', + path: { + 'toponymeId': toponymeId, + }, + }); + } + + /** + * Update Toponyme by id + * @param toponymeId + * @param requestBody + * @returns Toponyme + * @throws ApiError + */ + public static updateToponyme( + toponymeId: string, + requestBody: UpdateToponymeDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/toponymes/{toponymeId}', + path: { + 'toponymeId': toponymeId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Delete Toponyme by id + * @param toponymeId + * @returns void + * @throws ApiError + */ + public static deleteToponyme( + toponymeId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/v2/toponymes/{toponymeId}', + path: { + 'toponymeId': toponymeId, + }, + }); + } + + /** + * Soft delete Tpponyme by id + * @param toponymeId + * @returns Toponyme + * @throws ApiError + */ + public static softDeleteToponyme( + toponymeId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/toponymes/{toponymeId}/soft-delete', + path: { + 'toponymeId': toponymeId, + }, + }); + } + + /** + * Restore Toponyme by id + * @param toponymeId + * @returns Toponyme + * @throws ApiError + */ + public static restoreToponyme( + toponymeId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/toponymes/{toponymeId}/restore', + path: { + 'toponymeId': toponymeId, + }, + }); + } + + /** + * Find all numeros which belong to the toponyme + * @param toponymeId + * @returns NumeroPopulate + * @throws ApiError + */ + public static findToponymeNumeros( + toponymeId: string, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/toponymes/{toponymeId}/numeros', + path: { + 'toponymeId': toponymeId, + }, + }); + } + +} diff --git a/lib/openapi/services/VoiesService.ts b/lib/openapi/services/VoiesService.ts new file mode 100644 index 000000000..2d5201e75 --- /dev/null +++ b/lib/openapi/services/VoiesService.ts @@ -0,0 +1,180 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { CreateNumeroDTO } from '../models/CreateNumeroDTO'; +import type { ExtendedVoieDTO } from '../models/ExtendedVoieDTO'; +import type { Numero } from '../models/Numero'; +import type { RestoreVoieDTO } from '../models/RestoreVoieDTO'; +import type { Toponyme } from '../models/Toponyme'; +import type { UpdateVoieDTO } from '../models/UpdateVoieDTO'; +import type { Voie } from '../models/Voie'; + +import type { CancelablePromise } from '../core/CancelablePromise'; +import { OpenAPI } from '../core/OpenAPI'; +import { request as __request } from '../core/request'; + +export class VoiesService { + + /** + * Find Voie by id + * @param voieId + * @returns ExtendedVoieDTO + * @throws ApiError + */ + public static findVoie( + voieId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/voies/{voieId}', + path: { + 'voieId': voieId, + }, + }); + } + + /** + * Update Voie by id + * @param voieId + * @param requestBody + * @returns Voie + * @throws ApiError + */ + public static updateVoie( + voieId: string, + requestBody: UpdateVoieDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/voies/{voieId}', + path: { + 'voieId': voieId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Delete Voie by id + * @param voieId + * @returns void + * @throws ApiError + */ + public static deleteVoie( + voieId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/v2/voies/{voieId}', + path: { + 'voieId': voieId, + }, + }); + } + + /** + * Soft delete Voie by id + * @param voieId + * @returns Voie + * @throws ApiError + */ + public static softDeleteVoie( + voieId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/voies/{voieId}/soft-delete', + path: { + 'voieId': voieId, + }, + }); + } + + /** + * Restore Voie by id + * @param voieId + * @param requestBody + * @returns Voie + * @throws ApiError + */ + public static restoreVoie( + voieId: string, + requestBody: RestoreVoieDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/voies/{voieId}/restore', + path: { + 'voieId': voieId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Find all numeros which belong to the voie + * @param voieId + * @param isdeleted + * @returns Numero + * @throws ApiError + */ + public static findVoieNumeros( + voieId: string, + isdeleted?: boolean, + ): CancelablePromise> { + return __request(OpenAPI, { + method: 'GET', + url: '/v2/voies/{voieId}/numeros', + path: { + 'voieId': voieId, + }, + query: { + 'isdeleted': isdeleted, + }, + }); + } + + /** + * Create numero on the voie + * @param voieId + * @param requestBody + * @returns Numero + * @throws ApiError + */ + public static createNumero( + voieId: string, + requestBody: CreateNumeroDTO, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'POST', + url: '/v2/voies/{voieId}/numeros', + path: { + 'voieId': voieId, + }, + body: requestBody, + mediaType: 'application/json', + }); + } + + /** + * Convert Voie (without numeros) to Toponyme + * @param voieId + * @returns Toponyme + * @throws ApiError + */ + public static convertToToponyme( + voieId: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/v2/voies/{voieId}/convert-to-toponyme', + path: { + 'voieId': voieId, + }, + }); + } + +} From 6e5983a4b0fc93da13ec7d384700e9532c3b01e9 Mon Sep 17 00:00:00 2001 From: Guillaume Fay Date: Tue, 21 Nov 2023 14:15:27 +0100 Subject: [PATCH 17/20] fix: replace xo by eslint --- .eslintrc.json | 3 + .github/workflows/node.js.yml | 2 +- README.md | 2 - contexts/bal-recovery.tsx | 42 +- package.json | 32 +- types/api-geo.ts | 2 +- yarn.lock | 2536 +-------------------------------- 7 files changed, 109 insertions(+), 2510 deletions(-) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 000000000..1a1e8cd30 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": ["next", "prettier"] +} \ No newline at end of file diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index acdd1e0a2..506a680cb 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -22,5 +22,5 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: yarn - - run: yarn xo + - run: yarn lint - run: yarn build diff --git a/README.md b/README.md index 6d098ef8d..02b3954ce 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,6 @@ Il est disponible en ligne à l'adresse [mes-adresses.data.gouv.fr](https://mes-adresses.data.gouv.fr). -[![XO code style](https://badgen.net/badge/code%20style/XO/cyan)](https://github.com/xojs/xo) - ## Guide https://adresse.data.gouv.fr/data/docs/guide-mes-adresses-v4.0.pdf diff --git a/contexts/bal-recovery.tsx b/contexts/bal-recovery.tsx index 583e485d1..5fa20b465 100644 --- a/contexts/bal-recovery.tsx +++ b/contexts/bal-recovery.tsx @@ -1,36 +1,48 @@ -import RecoverBALAlert from '@/components/bal-recovery/recover-bal-alert' -import React, {useState, useMemo} from 'react' +import RecoverBALAlert from "@/components/bal-recovery/recover-bal-alert"; +import React, { useState, useMemo } from "react"; interface BALRecoveryContextType { isRecoveryDisplayed: boolean; setIsRecoveryDisplayed: (value: boolean) => void; } -const BALRecoveryContext = React.createContext(null) +const BALRecoveryContext = React.createContext( + null +); interface BALRecoveryProviderProps { balId: string; children: React.ReactNode; } -export function BALRecoveryProvider({balId, ...props}: BALRecoveryProviderProps) { - const [isRecoveryDisplayed, setIsRecoveryDisplayed] = useState(false) +export function BALRecoveryProvider({ + balId, + ...props +}: BALRecoveryProviderProps) { + const [isRecoveryDisplayed, setIsRecoveryDisplayed] = useState(false); - const value = useMemo(() => ({ - isRecoveryDisplayed, - setIsRecoveryDisplayed - }), [isRecoveryDisplayed]) + const value = useMemo( + () => ({ + isRecoveryDisplayed, + setIsRecoveryDisplayed, + }), + [isRecoveryDisplayed] + ); return ( <> - { - setIsRecoveryDisplayed(false) - }} baseLocaleId={balId} /> + { + setIsRecoveryDisplayed(false); + }} + baseLocaleId={balId} + /> - ) + ); } -export const BALRecoveryConsumer = BALRecoveryContext.Consumer +export const BALRecoveryConsumer = BALRecoveryContext.Consumer; -export default BALRecoveryContext +export default BALRecoveryContext; diff --git a/package.json b/package.json index f49882976..8e6286616 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "dev": "next dev", "start": "next start", + "lint": "eslint --ext .ts,.tsx .", "build": "yarn build-available-flags && next build", "analyze": "ANALYZE=true next build", "build-available-flags": "node scripts/build-available-flags", @@ -62,35 +63,10 @@ "dotenv": "^16.0.3", "eslint": "^7.32.0", "eslint-config-next": "^13.5.3", - "eslint-config-xo-nextjs": "^3.2.0", + "eslint-config-prettier": "^9.0.0", "openapi-typescript-codegen": "^0.25.0", - "xo": "^0.39.1" - }, - "xo": { - "extends": "xo-nextjs", - "semicolon": false, - "space": 2, - "envs": [ - "browser", - "es2021" - ], - "rules": { - "camelcase": "warn", - "unicorn/catch-error-name": "off", - "react/jsx-sort-props": "off", - "import/no-anonymous-default-export": "off", - "unicorn/prevent-abbreviations": "off", - "comma-dangle": "off", - "import/extensions": "off", - "node/prefer-global/process": "off", - "unicorn/no-array-for-each": "off", - "unicorn/prefer-switch": "off", - "unicorn/filename-case": "off", - "node/no-unsupported-features/es-syntax": "off", - "capitalized-comments": "off", - "@typescript-eslint/ban-tslint-comment": "off", - "unicorn/no-abusive-eslint-disable": "off" - } + "prettier": "^3.1.0", + "typescript": "5.2.2" }, "engines": { "node": ">=14 <17" diff --git a/types/api-geo.ts b/types/api-geo.ts index 73009f4b9..18f400f2f 100644 --- a/types/api-geo.ts +++ b/types/api-geo.ts @@ -7,4 +7,4 @@ export type APIGeoCommuneType = { nom: string; population: number; siren: string; -} +}; diff --git a/yarn.lock b/yarn.lock index 35c14ce90..72413498a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,7 +2,7 @@ # yarn lockfile v1 -"@ampproject/remapping@^2.1.0", "@ampproject/remapping@^2.2.0": +"@ampproject/remapping@^2.2.0": version "2.2.0" resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== @@ -27,7 +27,7 @@ dependencies: "@babel/highlight" "^7.10.4" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.18.6": +"@babel/code-frame@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== @@ -41,37 +41,11 @@ dependencies: "@babel/highlight" "^7.18.6" -"@babel/compat-data@^7.18.8": - version "7.18.13" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.18.13.tgz#6aff7b350a1e8c3e40b029e46cbe78e24a913483" - integrity sha512-5yUzC5LqyTFp2HLmDoxGQelcdYgSpP9xsnMWBphAscOdFrHSAVbLNzWiy32sVNDqJRDiJK6klfDnAgu6PAGSHw== - "@babel/compat-data@^7.21.4": version "7.21.4" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.21.4.tgz#457ffe647c480dff59c2be092fc3acf71195c87f" integrity sha512-/DYyDpeCfaVinT40FPGdkkb+lYSKvsVuMjDAG7jPOWWiM1ibOaB9CXJAlc4d1QpP/U2q2P9jbrSlClKSErd55g== -"@babel/core@^7.12.16": - version "7.18.13" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.18.13.tgz#9be8c44512751b05094a4d3ab05fc53a47ce00ac" - integrity sha512-ZisbOvRRusFktksHSG6pjj1CSvkPkcZq/KHD45LAkVP/oiHJkNBZWfpvlLmX8OtHDG8IuzsFlVRWo08w7Qxn0A== - dependencies: - "@ampproject/remapping" "^2.1.0" - "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.18.13" - "@babel/helper-compilation-targets" "^7.18.9" - "@babel/helper-module-transforms" "^7.18.9" - "@babel/helpers" "^7.18.9" - "@babel/parser" "^7.18.13" - "@babel/template" "^7.18.10" - "@babel/traverse" "^7.18.13" - "@babel/types" "^7.18.13" - convert-source-map "^1.7.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.2.1" - semver "^6.3.0" - "@babel/core@^7.21.4": version "7.21.4" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.21.4.tgz#c6dc73242507b8e2a27fd13a9c1814f9fa34a659" @@ -93,15 +67,6 @@ json5 "^2.2.2" semver "^6.3.0" -"@babel/eslint-parser@^7.12.16": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.18.9.tgz#255a63796819a97b7578751bb08ab9f2a375a031" - integrity sha512-KzSGpMBggz4fKbRbWLNyPVTuQr6cmCcBhOyXTw/fieOVaw5oYAwcAj4a7UKcDYCPxQq+CG1NCDZH9e2JTXquiQ== - dependencies: - eslint-scope "^5.1.1" - eslint-visitor-keys "^2.1.0" - semver "^6.3.0" - "@babel/eslint-parser@^7.21.3": version "7.21.3" resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.21.3.tgz#d79e822050f2de65d7f368a076846e7184234af7" @@ -147,16 +112,6 @@ dependencies: "@babel/types" "^7.18.6" -"@babel/helper-compilation-targets@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.9.tgz#69e64f57b524cde3e5ff6cc5a9f4a387ee5563bf" - integrity sha512-tzLCyVmqUiFlcFoAPLA/gL9TeYrF61VLNtb+hvkuVaB5SUjW7jcfrglBIX1vUIoT7CLP3bBlIMeyEsIl2eFQNg== - dependencies: - "@babel/compat-data" "^7.18.8" - "@babel/helper-validator-option" "^7.18.6" - browserslist "^4.20.2" - semver "^6.3.0" - "@babel/helper-compilation-targets@^7.21.4": version "7.21.4" resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.21.4.tgz#770cd1ce0889097ceacb99418ee6934ef0572656" @@ -230,20 +185,6 @@ dependencies: "@babel/types" "^7.18.6" -"@babel/helper-module-transforms@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.18.9.tgz#5a1079c005135ed627442df31a42887e80fcb712" - integrity sha512-KYNqY0ICwfv19b31XzvmI/mfcylOzbLtowkw+mfvGPAQ3kfCnMLYbED3YecL5tPd8nAYFQFAd6JHp2LxZk/J1g== - dependencies: - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-module-imports" "^7.18.6" - "@babel/helper-simple-access" "^7.18.6" - "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/helper-validator-identifier" "^7.18.6" - "@babel/template" "^7.18.6" - "@babel/traverse" "^7.18.9" - "@babel/types" "^7.18.9" - "@babel/helper-module-transforms@^7.21.2": version "7.21.2" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.21.2.tgz#160caafa4978ac8c00ac66636cb0fa37b024e2d2" @@ -281,13 +222,6 @@ "@babel/traverse" "^7.18.9" "@babel/types" "^7.18.9" -"@babel/helper-simple-access@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz#d6d8f51f4ac2978068df934b569f08f29788c7ea" - integrity sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g== - dependencies: - "@babel/types" "^7.18.6" - "@babel/helper-simple-access@^7.20.2": version "7.20.2" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz#0ab452687fe0c2cfb1e2b9e0015de07fc2d62dd9" @@ -332,25 +266,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0" integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A== -"@babel/helper-validator-option@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" - integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== - "@babel/helper-validator-option@^7.21.0": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz#8224c7e13ace4bafdc4004da2cf064ef42673180" integrity sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ== -"@babel/helpers@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.18.9.tgz#4bef3b893f253a1eced04516824ede94dcfe7ff9" - integrity sha512-Jf5a+rbrLoR4eNdUmnFu8cN5eNJT6qdTdOg5IHIzq87WwyRw9PwguLFOWYgktN/60IP4fgDUawJvs7PjQIzELQ== - dependencies: - "@babel/template" "^7.18.6" - "@babel/traverse" "^7.18.9" - "@babel/types" "^7.18.9" - "@babel/helpers@^7.21.0": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.21.0.tgz#9dd184fb5599862037917cdc9eecb84577dc4e7e" @@ -429,7 +349,7 @@ dependencies: regenerator-runtime "^0.13.11" -"@babel/template@^7.18.10", "@babel/template@^7.18.6": +"@babel/template@^7.18.6": version "7.18.10" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA== @@ -447,7 +367,7 @@ "@babel/parser" "^7.20.7" "@babel/types" "^7.20.7" -"@babel/traverse@^7.18.13", "@babel/traverse@^7.18.9": +"@babel/traverse@^7.18.9": version "7.18.13" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.18.13.tgz#5ab59ef51a997b3f10c4587d648b9696b6cb1a68" integrity sha512-N6kt9X1jRMLPxxxPYWi7tgvJRH/rtoU+dbKAPDM44RFHiMH8igdsaSBgFeskhSl/kLWLDUvIh1RXCrTmg0/zvA== @@ -769,14 +689,6 @@ "@babel/runtime" "^7.12.0" gl-matrix "^3.4.0" -"@mrmlnc/readdir-enhanced@^2.2.1": - version "2.2.1" - resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" - integrity sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g== - dependencies: - call-me-maybe "^1.0.1" - glob-to-regexp "^0.3.0" - "@nebula.gl/edit-modes@1.0.4": version "1.0.4" resolved "https://registry.yarnpkg.com/@nebula.gl/edit-modes/-/edit-modes-1.0.4.tgz#df37751768239fb37dfcb697b0b90e11371a47a3" @@ -831,13 +743,6 @@ dependencies: glob "7.1.7" -"@next/eslint-plugin-next@^11.0.0": - version "11.1.4" - resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-11.1.4.tgz#032f89b11d5a0b91748209a137e4e46294d269c2" - integrity sha512-E0iM++lWF2uOEBSRWSIg9sl3xXWvYSGP6tvUVKdeNNIiEAWwcZzs0OqxeO7Xq3BZ5XkQREEGiAUkzfCqDze5TQ== - dependencies: - glob "7.1.7" - "@next/swc-darwin-arm64@13.4.19": version "13.4.19" resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.19.tgz#77ad462b5ced4efdc26cb5a0053968d2c7dac1b6" @@ -903,11 +808,6 @@ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== -"@nodelib/fs.stat@^1.1.2": - version "1.1.3" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" - integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== - "@nodelib/fs.walk@^1.2.3": version "1.2.8" resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" @@ -933,11 +833,6 @@ dependencies: prop-types "^15.5.7" -"@sindresorhus/is@^0.14.0": - version "0.14.0" - resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" - integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ== - "@sindresorhus/is@^4.0.0": version "4.6.0" resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-4.6.0.tgz#3c7c9c46e678feefe7a2e5bb609d3dbd665ffb3f" @@ -950,13 +845,6 @@ dependencies: tslib "^2.4.0" -"@szmarczak/http-timer@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421" - integrity sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA== - dependencies: - defer-to-connect "^1.0.1" - "@szmarczak/http-timer@^4.0.5": version "4.0.6" resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-4.0.6.tgz#b4a914bb62e7c272d4e5989fe4440f812ab1d807" @@ -1316,19 +1204,6 @@ "@types/node" "*" "@types/responselike" "*" -"@types/eslint@^7.2.13": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-7.29.0.tgz#e56ddc8e542815272720bb0b4ccc2aff9c3e1c78" - integrity sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng== - dependencies: - "@types/estree" "*" - "@types/json-schema" "*" - -"@types/estree@*": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.0.tgz#5fb2e536c1ae9bf35366eed879e827fa59ca41c2" - integrity sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ== - "@types/geojson@*", "@types/geojson@^7946.0.10": version "7946.0.10" resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.10.tgz#6dfbf5ea17142f7f9a043809f1cd4c448cb68249" @@ -1339,14 +1214,6 @@ resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.8.tgz#30744afdb385e2945e22f3b033f897f76b1f12ca" integrity sha512-1rkryxURpr6aWP7R786/UQOkJ3PcpQiWkAXBmdWc7ryFWqN6a4xfK7BtjXvFBKO9LjQ+MWQSWxYeZX1OApnArA== -"@types/glob@^7.1.1": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.2.0.tgz#bc1b5bf3aa92f25bd5dd39f35c57361bdce5b2eb" - integrity sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA== - dependencies: - "@types/minimatch" "*" - "@types/node" "*" - "@types/http-cache-semantics@*": version "4.0.1" resolved "https://registry.yarnpkg.com/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz#0ea7b61496902b95890dc4c3a116b60cb8dae812" @@ -1357,11 +1224,6 @@ resolved "https://registry.yarnpkg.com/@types/json-buffer/-/json-buffer-3.0.0.tgz#85c1ff0f0948fc159810d4b5be35bf8c20875f64" integrity sha512-3YP80IxxFJB4b5tYC2SUPwkg0XQLiu0nWvhRgEatgjf+29IcWO9X1k8xRv5DGssJ/lCrjYTjQPcobJr2yWIVuQ== -"@types/json-schema@*", "@types/json-schema@^7.0.7": - version "7.0.11" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" - integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== - "@types/json-schema@^7.0.6": version "7.0.15" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" @@ -1407,31 +1269,11 @@ "@types/mapbox__point-geometry" "*" "@types/pbf" "*" -"@types/minimatch@*": - version "5.1.1" - resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-5.1.1.tgz#b1429c0c016cd50e105f3166bf179f6918b7365f" - integrity sha512-v55NF6Dz0wrj14Rn8iEABTWrhYRmgkJYuokduunSiq++t3hZ9VZ6dvcDt+850Pm5sGJZk8RaHzkFCXPxVINZ+g== - -"@types/minimist@^1.2.0": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.2.tgz#ee771e2ba4b3dc5b372935d549fd9617bf345b8c" - integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ== - "@types/node@*": version "20.6.1" resolved "https://registry.yarnpkg.com/@types/node/-/node-20.6.1.tgz#8b589bba9b2af0128796461a0979764562687e6f" integrity sha512-4LcJvuXQlv4lTHnxwyHQZ3uR9Zw2j7m1C9DfuwoTFQQP4Pmu04O6IfLYgMmHoOCt0nosItLLZAH+sOrRE0Bo8g== -"@types/normalize-package-data@^2.4.0": - version "2.4.1" - resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301" - integrity sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw== - -"@types/parse-json@^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" - integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== - "@types/pbf@*", "@types/pbf@^3.0.2": version "3.0.2" resolved "https://registry.yarnpkg.com/@types/pbf/-/pbf-3.0.2.tgz#8d291ad68b4b8c533e96c174a2e3e6399a59ed61" @@ -1503,42 +1345,6 @@ dependencies: gl-matrix "^3.2.0" -"@typescript-eslint/eslint-plugin@^4.22.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.33.0.tgz#c24dc7c8069c7706bc40d99f6fa87edcb2005276" - integrity sha512-aINiAxGVdOl1eJyVjaWn/YcVAq4Gi/Yo35qHGCnqbWVz61g39D0h23veY/MA0rFFGfxK7TySg2uwDeNv+JgVpg== - dependencies: - "@typescript-eslint/experimental-utils" "4.33.0" - "@typescript-eslint/scope-manager" "4.33.0" - debug "^4.3.1" - functional-red-black-tree "^1.0.1" - ignore "^5.1.8" - regexpp "^3.1.0" - semver "^7.3.5" - tsutils "^3.21.0" - -"@typescript-eslint/experimental-utils@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.33.0.tgz#6f2a786a4209fa2222989e9380b5331b2810f7fd" - integrity sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj5gdNxW5j1EvAyYg6Q== - dependencies: - "@types/json-schema" "^7.0.7" - "@typescript-eslint/scope-manager" "4.33.0" - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/typescript-estree" "4.33.0" - eslint-scope "^5.1.1" - eslint-utils "^3.0.0" - -"@typescript-eslint/parser@^4.22.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.33.0.tgz#dfe797570d9694e560528d18eecad86c8c744899" - integrity sha512-ZohdsbXadjGBSK0/r+d87X0SBmKzOq4/S5nzK6SBgJspFo9/CUDJ7hjayuze+JK7CZQLDMroqytp7pOcFKTxZA== - dependencies: - "@typescript-eslint/scope-manager" "4.33.0" - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/typescript-estree" "4.33.0" - debug "^4.3.1" - "@typescript-eslint/parser@^5.4.2 || ^6.0.0": version "6.7.3" resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.7.3.tgz#aaf40092a32877439e5957e18f2d6a91c82cc2fd" @@ -1550,14 +1356,6 @@ "@typescript-eslint/visitor-keys" "6.7.3" debug "^4.3.4" -"@typescript-eslint/scope-manager@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.33.0.tgz#d38e49280d983e8772e29121cf8c6e9221f280a3" - integrity sha512-5IfJHpgTsTZuONKbODctL4kKuQje/bzBRkwHE8UOZ4f89Zeddg+EGZs8PD8NcN4LdM3ygHWYB3ukPAYjvl/qbQ== - dependencies: - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/visitor-keys" "4.33.0" - "@typescript-eslint/scope-manager@6.7.3": version "6.7.3" resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.7.3.tgz#07e5709c9bdae3eaf216947433ef97b3b8b7d755" @@ -1566,29 +1364,11 @@ "@typescript-eslint/types" "6.7.3" "@typescript-eslint/visitor-keys" "6.7.3" -"@typescript-eslint/types@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.33.0.tgz#a1e59036a3b53ae8430ceebf2a919dc7f9af6d72" - integrity sha512-zKp7CjQzLQImXEpLt2BUw1tvOMPfNoTAfb8l51evhYbOEEzdWyQNmHWWGPR6hwKJDAi+1VXSBmnhL9kyVTTOuQ== - "@typescript-eslint/types@6.7.3": version "6.7.3" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.7.3.tgz#0402b5628a63f24f2dc9d4a678e9a92cc50ea3e9" integrity sha512-4g+de6roB2NFcfkZb439tigpAMnvEIg3rIjWQ+EM7IBaYt/CdJt6em9BJ4h4UpdgaBWdmx2iWsafHTrqmgIPNw== -"@typescript-eslint/typescript-estree@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.33.0.tgz#0dfb51c2908f68c5c08d82aefeaf166a17c24609" - integrity sha512-rkWRY1MPFzjwnEVHsxGemDzqqddw2QbTJlICPD9p9I9LfsO8fdmfQPOX3uKfUaGRDFJbfrtm/sXhVXN4E+bzCA== - dependencies: - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/visitor-keys" "4.33.0" - debug "^4.3.1" - globby "^11.0.3" - is-glob "^4.0.1" - semver "^7.3.5" - tsutils "^3.21.0" - "@typescript-eslint/typescript-estree@6.7.3": version "6.7.3" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.3.tgz#ec5bb7ab4d3566818abaf0e4a8fa1958561b7279" @@ -1602,14 +1382,6 @@ semver "^7.5.4" ts-api-utils "^1.0.1" -"@typescript-eslint/visitor-keys@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.33.0.tgz#2a22f77a41604289b7a186586e9ec48ca92ef1dd" - integrity sha512-uqi/2aSz9g2ftcHWf8uLPJA70rUv6yuMW5Bohw+bwcuzaxQIHaKFZCKGoGXIrc9vkTJ3+0txM73K0Hq3d5wgIg== - dependencies: - "@typescript-eslint/types" "4.33.0" - eslint-visitor-keys "^2.0.0" - "@typescript-eslint/visitor-keys@6.7.3": version "6.7.3" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.3.tgz#83809631ca12909bd2083558d2f93f5747deebb2" @@ -1666,25 +1438,11 @@ ajv@^8.0.1: require-from-string "^2.0.2" uri-js "^4.2.2" -ansi-align@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.1.tgz#0cdf12e111ace773a86e9a1fad1225c43cb19a59" - integrity sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w== - dependencies: - string-width "^4.1.0" - ansi-colors@^4.1.1: version "4.1.3" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== -ansi-escapes@^4.2.1: - version "4.3.2" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" - integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== - dependencies: - type-fest "^0.21.3" - ansi-regex@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" @@ -1723,16 +1481,6 @@ aria-query@^5.1.3: dependencies: dequal "^2.0.3" -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - integrity sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA== - -arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== - arr-union@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" @@ -1746,17 +1494,12 @@ array-buffer-byte-length@^1.0.0: call-bind "^1.0.2" is-array-buffer "^3.0.1" -array-find@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/array-find/-/array-find-1.0.0.tgz#6c8e286d11ed768327f8e62ecee87353ca3e78b8" - integrity sha512-kO/vVCacW9mnpn3WPWbTVlEnOabK2L7LWi2HViURtCM46y1zb6I8UMjx4LgbiqadTgHnLInUronwn3ampNTJtQ== - array-flatten@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== -array-includes@^3.1.4, array-includes@^3.1.5: +array-includes@^3.1.5: version "3.1.5" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.5.tgz#2c320010db8d31031fd2a5f6b3bbd4b1aad31bdb" integrity sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ== @@ -1778,28 +1521,11 @@ array-includes@^3.1.6: get-intrinsic "^1.2.1" is-string "^1.0.7" -array-union@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" - integrity sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng== - dependencies: - array-uniq "^1.0.1" - array-union@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== -array-uniq@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" - integrity sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q== - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - integrity sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ== - array.prototype.findlastindex@^1.2.2: version "1.2.3" resolved "https://registry.yarnpkg.com/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz#b37598438f97b579166940814e2c0493a4f50207" @@ -1811,16 +1537,6 @@ array.prototype.findlastindex@^1.2.2: es-shim-unscopables "^1.0.0" get-intrinsic "^1.2.1" -array.prototype.flat@^1.2.5: - version "1.3.0" - resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.0.tgz#0b0c1567bf57b38b56b4c97b8aa72ab45e4adc7b" - integrity sha512-12IUEkHsAhA4DY5s0FPgNXIdc8VRSqD9Zp78a5au9abH/SOBrsp082JOWFNTjkMozh8mqcdiKuaLGhPeYztxSw== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.2" - es-shim-unscopables "^1.0.0" - array.prototype.flat@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz#1476217df8cff17d72ee8f3ba06738db5b387d18" @@ -1831,16 +1547,6 @@ array.prototype.flat@^1.3.1: es-abstract "^1.22.1" es-shim-unscopables "^1.0.0" -array.prototype.flatmap@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.0.tgz#a7e8ed4225f4788a70cd910abcf0791e76a5534f" - integrity sha512-PZC9/8TKAIxcWKdyeb77EzULHPrIX/tIZebLJUQOMR1OwYosT8yggdfWScfTBCDj5utONvOuPQQumYsU2ULbkg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.2" - es-shim-unscopables "^1.0.0" - array.prototype.flatmap@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz#c9a7c6831db8e719d6ce639190146c24bbd3e527" @@ -1880,11 +1586,6 @@ arrify@^1.0.1: resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA== -arrify@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/arrify/-/arrify-2.0.1.tgz#c9655e9331e0abcd588d2a7cad7e9956f66701fa" - integrity sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug== - asap@~2.0.3: version "2.0.6" resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" @@ -1912,16 +1613,6 @@ asynciterator.prototype@^1.0.0: dependencies: has-symbols "^1.0.3" -at-least-node@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" - integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== - -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - attr-accept@^2.2.2: version "2.2.2" resolved "https://registry.yarnpkg.com/attr-accept/-/attr-accept-2.2.2.tgz#646613809660110749e92f2c10833b70968d929b" @@ -1965,19 +1656,6 @@ base64-js@^1.3.1: resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - bl@^4.0.3: version "4.1.0" resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" @@ -2020,20 +1698,6 @@ bowser@^1.7.3: resolved "https://registry.yarnpkg.com/bowser/-/bowser-1.9.4.tgz#890c58a2813a9d3243704334fa81b96a5c150c9a" integrity sha512-9IdMmj2KjigRq6oWhmwv1W36pDuA4STQZ8q6YO9um+x07xgYNCD3Oou+WP/3L1HNz7iqythGet3/p4wvc8AAwQ== -boxen@^5.0.0: - version "5.1.2" - resolved "https://registry.yarnpkg.com/boxen/-/boxen-5.1.2.tgz#788cb686fc83c1f486dfa8a40c68fc2b831d2b50" - integrity sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ== - dependencies: - ansi-align "^3.0.0" - camelcase "^6.2.0" - chalk "^4.1.0" - cli-boxes "^2.2.1" - string-width "^4.2.2" - type-fest "^0.20.2" - widest-line "^3.1.0" - wrap-ansi "^7.0.0" - brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" @@ -2042,22 +1706,6 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" -braces@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" - integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - braces@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" @@ -2065,16 +1713,6 @@ braces@^3.0.2: dependencies: fill-range "^7.0.1" -browserslist@^4.20.2: - version "4.21.3" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.3.tgz#5df277694eb3c48bc5c4b05af3e8b7e09c5a6d1a" - integrity sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ== - dependencies: - caniuse-lite "^1.0.30001370" - electron-to-chromium "^1.4.202" - node-releases "^2.0.6" - update-browserslist-db "^1.0.5" - browserslist@^4.21.3: version "4.21.5" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.5.tgz#75c5dae60063ee641f977e00edd3cfb2fb7af6a7" @@ -2085,11 +1723,6 @@ browserslist@^4.21.3: node-releases "^2.0.8" update-browserslist-db "^1.0.10" -buf-compare@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/buf-compare/-/buf-compare-1.0.1.tgz#fef28da8b8113a0a0db4430b0b6467b69730b34a" - integrity sha512-Bvx4xH00qweepGc43xFvMs5BKASXTbHaHm6+kDYIK9p/4iFwjATQkmPKHQSgJZzKbAymhztRbXUf1Nqhzl73/Q== - buffer@^5.5.0: version "5.7.1" resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" @@ -2125,39 +1758,11 @@ bytewise@^1.1.0: bytewise-core "^1.2.2" typewise "^1.0.3" -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - cacheable-lookup@^5.0.3: version "5.0.4" resolved "https://registry.yarnpkg.com/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz#5a6b865b2c44357be3d5ebc2a467b032719a7005" integrity sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA== -cacheable-request@^6.0.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-6.1.0.tgz#20ffb8bd162ba4be11e9567d823db651052ca912" - integrity sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg== - dependencies: - clone-response "^1.0.2" - get-stream "^5.1.0" - http-cache-semantics "^4.0.0" - keyv "^3.0.0" - lowercase-keys "^2.0.0" - normalize-url "^4.1.0" - responselike "^1.0.2" - cacheable-request@^7.0.2: version "7.0.2" resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-7.0.2.tgz#ea0d0b889364a25854757301ca12b2da77f91d27" @@ -2189,30 +1794,11 @@ callsites@^3.0.0: resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== -camelcase-keys@^6.2.2: - version "6.2.2" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-6.2.2.tgz#5e755d6ba51aa223ec7d3d52f25778210f9dc3c0" - integrity sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg== - dependencies: - camelcase "^5.3.1" - map-obj "^4.0.0" - quick-lru "^4.0.1" - -camelcase@^5.3.1: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -camelcase@^6.2.0, camelcase@^6.3.0: +camelcase@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001370: - version "1.0.30001387" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001387.tgz#90d2b9bdfcc3ab9a5b9addee00a25ef86c9e2e1e" - integrity sha512-fKDH0F1KOJvR+mWSOvhj8lVRr/Q/mc5u5nabU2vi1/sgvlSqEsE8dOq0Hy/BqVbDkCYQPRRHB1WRjW6PGB/7PA== - caniuse-lite@^1.0.30001406: version "1.0.30001534" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001534.tgz#f24a9b2a6d39630bac5c132b5dff89b39a12e7dd" @@ -2262,38 +1848,6 @@ chownr@^1.1.1: resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b" integrity sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg== -ci-info@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" - integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== - -ci-info@^3.1.1: - version "3.3.2" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.3.2.tgz#6d2967ffa407466481c6c90b6e16b3098f080128" - integrity sha512-xmDt/QIAdeZ9+nfdPsaBCpMvHNLFiLdjj59qjqn+6iPe6YmHGQ35sBnQ8uslRBXFmXkiZQOJRjvQeoGppoTjjg== - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -clean-regexp@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/clean-regexp/-/clean-regexp-1.0.0.tgz#8df7c7aae51fd36874e8f8d05b9180bc11a3fed7" - integrity sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw== - dependencies: - escape-string-regexp "^1.0.5" - -cli-boxes@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-2.2.1.tgz#ddd5035d25094fce220e9cab40a45840a440318f" - integrity sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw== - client-only@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1" @@ -2315,14 +1869,6 @@ clone-response@^1.0.2: dependencies: mimic-response "^1.0.0" -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - integrity sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw== - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - color-convert@^1.9.0: version "1.9.3" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" @@ -2373,16 +1919,6 @@ commander@^7.2.0: resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== -commondir@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" - integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== - -component-emitter@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" - integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== - compress-brotli@^1.3.8: version "1.3.8" resolved "https://registry.yarnpkg.com/compress-brotli/-/compress-brotli-1.3.8.tgz#0c0a60c97a989145314ec381e84e26682e7b38db" @@ -2401,23 +1937,6 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== -configstore@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/configstore/-/configstore-5.0.1.tgz#d365021b5df4b98cdd187d6a3b0e3f6a7cc5ed96" - integrity sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA== - dependencies: - dot-prop "^5.2.0" - graceful-fs "^4.1.2" - make-dir "^3.0.0" - unique-string "^2.0.0" - write-file-atomic "^3.0.0" - xdg-basedir "^4.0.0" - -confusing-browser-globals@1.0.10: - version "1.0.10" - resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.10.tgz#30d1e7f3d1b882b25ec4933d1d1adac353d20a59" - integrity sha512-gNld/3lySHwuhaVluJUKLePYirM3QNCKzVxqAdhJII9/WXKVX5PURzMVJspS1jTslSqjeuG4KMVTSouit5YPHA== - content-disposition@0.5.4: version "0.5.4" resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" @@ -2447,36 +1966,12 @@ cookie@0.5.0: resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b" integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - integrity sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw== - -core-assert@^0.2.0: - version "0.2.1" - resolved "https://registry.yarnpkg.com/core-assert/-/core-assert-0.2.1.tgz#f85e2cf9bfed28f773cc8b3fa5c5b69bdc02fe3f" - integrity sha512-IG97qShIP+nrJCXMCgkNZgH7jZQ4n8RpPyPeXX++T6avR/KhLhgLiHKoEn5Rc1KjfycSfA9DMa6m+4C4eguHhw== - dependencies: - buf-compare "^1.0.0" - is-error "^2.2.0" - core-js@^1.0.0: version "1.2.7" resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" integrity sha512-ZiPp9pZlgxpWRu0M+YWbm6+aQ84XEfH1JRXvfOc/fILWI0VKhLC2LX13X1NYq4fULzLMq7Hfh43CSo2/aIaUPA== -cosmiconfig@^7.0.0: - version "7.0.1" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.1.tgz#714d756522cace867867ccb4474c5d01bbae5d6d" - integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ== - dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.2.1" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.10.0" - -cross-spawn@^7.0.2, cross-spawn@^7.0.3: +cross-spawn@^7.0.2: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -2485,11 +1980,6 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -crypto-random-string@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" - integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA== - css-in-js-utils@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/css-in-js-utils/-/css-in-js-utils-2.0.1.tgz#3b472b398787291b47cfe3e44fecfdd9e914ba99" @@ -2525,7 +2015,7 @@ date-fns@2.29.3, date-fns@^2.29.3: resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.29.3.tgz#27402d2fc67eb442b511b70bbdf98e6411cd68a8" integrity sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA== -debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.9: +debug@2.6.9: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== @@ -2539,38 +2029,13 @@ debug@^3.2.7: dependencies: ms "^2.1.1" -debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.4: +debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== dependencies: ms "2.1.2" -decamelize-keys@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.0.tgz#d171a87933252807eb3cb61dc1c1445d078df2d9" - integrity sha512-ocLWuYzRPoS9bfiSdDd3cxvrzovVMZnRDVEzAs+hWIVXGDbHxWMECij2OBuyB/An0FFW/nLuq6Kv1i/YC5Qfzg== - dependencies: - decamelize "^1.1.0" - map-obj "^1.0.0" - -decamelize@^1.1.0, decamelize@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== - -decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og== - -decompress-response@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3" - integrity sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA== - dependencies: - mimic-response "^1.0.0" - decompress-response@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-6.0.0.tgz#ca387612ddb7e104bd16d85aab00d5ecf09c66fc" @@ -2588,18 +2053,6 @@ deep-is@^0.1.3: resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== -deep-strict-equal@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/deep-strict-equal/-/deep-strict-equal-0.2.0.tgz#4a078147a8ab57f6a0d4f5547243cd22f44eb4e4" - integrity sha512-3daSWyvZ/zwJvuMGlzG1O+Ow0YSadGfb3jsh9xoCutv2tWyB9dA4YvR9L9/fSdDZa2dByYQe+TqapSGUrjnkoA== - dependencies: - core-assert "^0.2.0" - -defer-to-connect@^1.0.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591" - integrity sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ== - defer-to-connect@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-2.0.1.tgz#8016bdb4143e4632b77a3449c6236277de520587" @@ -2623,28 +2076,6 @@ define-properties@^1.1.3, define-properties@^1.1.4, define-properties@^1.2.0, de has-property-descriptors "^1.0.0" object-keys "^1.1.1" -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - integrity sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA== - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - integrity sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA== - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - depd@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" @@ -2670,13 +2101,6 @@ detect-libc@^2.0.0: resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.0.1.tgz#e1897aa88fa6ad197862937fbc0441ef352ee0cd" integrity sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w== -dir-glob@^2.2.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.2.2.tgz#fa09f0694153c8918b18ba0deafae94769fc50c4" - integrity sha512-f9LBi5QWzIW3I6e//uxZoLBlUt9kcp66qo0sSCxL6YZKc75R1c4MFCoe/LaZiBGmgujvQdxc5Bn3QhfyvK5Hsw== - dependencies: - path-type "^3.0.0" - dir-glob@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" @@ -2706,13 +2130,6 @@ dom-helpers@^5.0.1: "@babel/runtime" "^7.8.7" csstype "^3.0.2" -dot-prop@^5.2.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88" - integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q== - dependencies: - is-obj "^2.0.0" - dotenv@^16.0.3: version "16.0.3" resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07" @@ -2728,11 +2145,6 @@ downshift@^5.2.0: prop-types "^15.7.2" react-is "^16.13.1" -duplexer3@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.5.tgz#0b5e4d7bad5de8901ea4440624c8e1d20099217e" - integrity sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA== - duplexer@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" @@ -2748,11 +2160,6 @@ ee-first@1.1.1: resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== -electron-to-chromium@^1.4.202: - version "1.4.237" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.237.tgz#c695c5fedc3bb48f04ba1b39470c5aef2aaafd84" - integrity sha512-vxVyGJcsgArNOVUJcXm+7iY3PJAfmSapEszQD1HbyPLl0qoCmNQ1o/EX3RI7Et5/88In9oLxX3SGF8J3orkUgA== - electron-to-chromium@^1.4.284: version "1.4.345" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.345.tgz#c90b7183b39245cddf0e990337469063bfced6f0" @@ -2787,22 +2194,6 @@ end-of-stream@^1.1.0, end-of-stream@^1.4.1: dependencies: once "^1.4.0" -enhance-visitors@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/enhance-visitors/-/enhance-visitors-1.0.0.tgz#aa945d05da465672a1ebd38fee2ed3da8518e95a" - integrity sha512-+29eJLiUixTEDRaZ35Vu8jP3gPLNcQQkQkOQjLp2X+6cZGGPDD/uasbFzvLsJKnGZnvmyZ0srxudwOtskHeIDA== - dependencies: - lodash "^4.13.1" - -enhanced-resolve@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz#4d6e689b3725f86090927ccc86cd9f1635b89e2e" - integrity sha512-kxpoMgrdtkXZ5h0SeraBS1iRntpTpQ3R8ussdb38+UAFnMGX5DDyJXePm+OCHOcoXvHDw7mc2erbJBpDnl7TPw== - dependencies: - graceful-fs "^4.1.2" - memory-fs "^0.2.0" - tapable "^0.1.8" - enhanced-resolve@^5.12.0: version "5.15.0" resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz#1af946c7d93603eb88e9896cee4904dc012e9c35" @@ -2818,57 +2209,16 @@ enquirer@^2.3.5: dependencies: ansi-colors "^4.1.1" -env-editor@^0.4.1: - version "0.4.2" - resolved "https://registry.yarnpkg.com/env-editor/-/env-editor-0.4.2.tgz#4e76568d0bd8f5c2b6d314a9412c8fe9aa3ae861" - integrity sha512-ObFo8v4rQJAE59M69QzwloxPZtd33TpYEIjtKD1rrFDcM1Gd7IkDxEBU+HriziN6HSHQnBJi8Dmy+JWkav5HKA== - -error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== - dependencies: - is-arrayish "^0.2.1" - -es-abstract@^1.19.1, es-abstract@^1.19.2: - version "1.20.1" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.20.1.tgz#027292cd6ef44bd12b1913b828116f54787d1814" - integrity sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA== +es-abstract@^1.19.5, es-abstract@^1.22.1: + version "1.22.2" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.22.2.tgz#90f7282d91d0ad577f505e423e52d4c1d93c1b8a" + integrity sha512-YoxfFcDmhjOgWPWsV13+2RNjq1F6UQnfs+8TftwNqtzlmFzEXvlUwdrNrYeaizfjQzRMxkZ6ElWMOJIFKdVqwA== dependencies: + array-buffer-byte-length "^1.0.0" + arraybuffer.prototype.slice "^1.0.2" + available-typed-arrays "^1.0.5" call-bind "^1.0.2" - es-to-primitive "^1.2.1" - function-bind "^1.1.1" - function.prototype.name "^1.1.5" - get-intrinsic "^1.1.1" - get-symbol-description "^1.0.0" - has "^1.0.3" - has-property-descriptors "^1.0.0" - has-symbols "^1.0.3" - internal-slot "^1.0.3" - is-callable "^1.2.4" - is-negative-zero "^2.0.2" - is-regex "^1.1.4" - is-shared-array-buffer "^1.0.2" - is-string "^1.0.7" - is-weakref "^1.0.2" - object-inspect "^1.12.0" - object-keys "^1.1.1" - object.assign "^4.1.2" - regexp.prototype.flags "^1.4.3" - string.prototype.trimend "^1.0.5" - string.prototype.trimstart "^1.0.5" - unbox-primitive "^1.0.2" - -es-abstract@^1.19.5, es-abstract@^1.22.1: - version "1.22.2" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.22.2.tgz#90f7282d91d0ad577f505e423e52d4c1d93c1b8a" - integrity sha512-YoxfFcDmhjOgWPWsV13+2RNjq1F6UQnfs+8TftwNqtzlmFzEXvlUwdrNrYeaizfjQzRMxkZ6ElWMOJIFKdVqwA== - dependencies: - array-buffer-byte-length "^1.0.0" - arraybuffer.prototype.slice "^1.0.2" - available-typed-arrays "^1.0.5" - call-bind "^1.0.2" - es-set-tostringtag "^2.0.1" + es-set-tostringtag "^2.0.1" es-to-primitive "^1.2.1" function.prototype.name "^1.1.6" get-intrinsic "^1.2.1" @@ -2954,11 +2304,6 @@ escalade@^3.1.1: resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== -escape-goat@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/escape-goat/-/escape-goat-2.1.1.tgz#1b2dc77003676c457ec760b2dc68edb648188675" - integrity sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q== - escape-html@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" @@ -2989,51 +2334,10 @@ eslint-config-next@^13.5.3: eslint-plugin-react "^7.33.2" eslint-plugin-react-hooks "^4.5.0 || 5.0.0-canary-7118f5dd7-20230705" -eslint-config-prettier@^8.2.0: - version "8.5.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz#5a81680ec934beca02c7b1a61cf8ca34b66feab1" - integrity sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q== - -eslint-config-xo-nextjs@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/eslint-config-xo-nextjs/-/eslint-config-xo-nextjs-3.2.0.tgz#0fd1ed3a642b8ea3dc293ad729a0b8fc1adc6cf9" - integrity sha512-DvEbXvQOFRK1XUstkyhSl57+TrFBSWnlwvag9xDxKFntUdPw9yhKu1gbMzbVyNnNHqvysNDuAnTY1fy4PdlJpQ== - dependencies: - "@next/eslint-plugin-next" "^11.0.0" - eslint-config-xo-react "^0.25.0" - eslint-plugin-react "^7.24.0" - eslint-plugin-react-hooks "^4.0.8" - -eslint-config-xo-react@^0.25.0: - version "0.25.0" - resolved "https://registry.yarnpkg.com/eslint-config-xo-react/-/eslint-config-xo-react-0.25.0.tgz#fd9fc77365b5c85de14e287f86ec579a1599aed5" - integrity sha512-YpABFxnoATAYtxsZQChZEbOkWqzCtcQDRdiUqHhLgG7hzbAEzPDmsRUWnTP8oTVLVFWrbgdf913b8kQJaR1cBA== - -eslint-config-xo-typescript@^0.39.0: - version "0.39.0" - resolved "https://registry.yarnpkg.com/eslint-config-xo-typescript/-/eslint-config-xo-typescript-0.39.0.tgz#63577ea61879e794913af5796ceaa28baf826fd6" - integrity sha512-UP4WqkmAKerYAhJTLdfrjBhD/nM1ePEugQNBJjzFfZv/lJ4yQjTzDBjfjsgluX1kz9PajRMaaipiWloJEODdGg== - -eslint-config-xo@^0.36.0: - version "0.36.0" - resolved "https://registry.yarnpkg.com/eslint-config-xo/-/eslint-config-xo-0.36.0.tgz#64994cf68e1d5baec86f60e064f9ae4d540624c9" - integrity sha512-RCaqCyI38awe3qgiO0Z8CqHs9yw7dMKdV6ZRTFSR7lm0//370tbDEZaQBXnztgpwe5m6D+VvFWc3vLMP/W6EAg== - dependencies: - confusing-browser-globals "1.0.10" - -eslint-formatter-pretty@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/eslint-formatter-pretty/-/eslint-formatter-pretty-4.1.0.tgz#7a6877c14ffe2672066c853587d89603e97c7708" - integrity sha512-IsUTtGxF1hrH6lMWiSl1WbGaiP01eT6kzywdY1U+zLc0MP+nwEnUiS9UI8IaOTUhTeQJLlCEWIbXINBH4YJbBQ== - dependencies: - "@types/eslint" "^7.2.13" - ansi-escapes "^4.2.1" - chalk "^4.1.0" - eslint-rule-docs "^1.1.5" - log-symbols "^4.0.0" - plur "^4.0.0" - string-width "^4.2.0" - supports-hyperlinks "^2.0.0" +eslint-config-prettier@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz#eb25485946dd0c66cd216a46232dc05451518d1f" + integrity sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw== eslint-import-resolver-node@^0.3.6: version "0.3.6" @@ -3065,30 +2369,6 @@ eslint-import-resolver-typescript@^3.5.2: is-core-module "^2.11.0" is-glob "^4.0.3" -eslint-import-resolver-webpack@^0.13.0: - version "0.13.2" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.13.2.tgz#fc813df0d08b9265cc7072d22393bda5198bdc1e" - integrity sha512-XodIPyg1OgE2h5BDErz3WJoK7lawxKTJNhgPNafRST6csC/MZC+L5P6kKqsZGRInpbgc02s/WZMrb4uGJzcuRg== - dependencies: - array-find "^1.0.0" - debug "^3.2.7" - enhanced-resolve "^0.9.1" - find-root "^1.1.0" - has "^1.0.3" - interpret "^1.4.0" - is-core-module "^2.7.0" - is-regex "^1.1.4" - lodash "^4.17.21" - resolve "^1.20.0" - semver "^5.7.1" - -eslint-module-utils@^2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz#4f3e41116aaf13a20792261e61d3a2e7e0583974" - integrity sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA== - dependencies: - debug "^3.2.7" - eslint-module-utils@^2.7.4, eslint-module-utils@^2.8.0: version "2.8.0" resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz#e439fee65fc33f6bba630ff621efc38ec0375c49" @@ -3096,56 +2376,6 @@ eslint-module-utils@^2.7.4, eslint-module-utils@^2.8.0: dependencies: debug "^3.2.7" -eslint-plugin-ava@^12.0.0: - version "12.0.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-ava/-/eslint-plugin-ava-12.0.0.tgz#451f0fe4a86db3b43e017db83401ea9de4221e52" - integrity sha512-v8/GY1IWQn2nOBdVtD/6e0Y6A9PRFjY86a1m5r5FUel+C7iyoQVt7gKqaAc1iRXcQkZq2DDG0aTiQptgnq51cA== - dependencies: - deep-strict-equal "^0.2.0" - enhance-visitors "^1.0.0" - eslint-utils "^2.1.0" - espree "^7.3.1" - espurify "^2.0.1" - import-modules "^2.1.0" - micro-spelling-correcter "^1.1.1" - pkg-dir "^5.0.0" - resolve-from "^5.0.0" - -eslint-plugin-es@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz#75a7cdfdccddc0589934aeeb384175f221c57893" - integrity sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ== - dependencies: - eslint-utils "^2.0.0" - regexpp "^3.0.0" - -eslint-plugin-eslint-comments@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz#9e1cd7b4413526abb313933071d7aba05ca12ffa" - integrity sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ== - dependencies: - escape-string-regexp "^1.0.5" - ignore "^5.0.5" - -eslint-plugin-import@^2.22.1: - version "2.26.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz#f812dc47be4f2b72b478a021605a59fc6fe8b88b" - integrity sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA== - dependencies: - array-includes "^3.1.4" - array.prototype.flat "^1.2.5" - debug "^2.6.9" - doctrine "^2.1.0" - eslint-import-resolver-node "^0.3.6" - eslint-module-utils "^2.7.3" - has "^1.0.3" - is-core-module "^2.8.1" - is-glob "^4.0.3" - minimatch "^3.1.2" - object.values "^1.1.5" - resolve "^1.22.0" - tsconfig-paths "^3.14.1" - eslint-plugin-import@^2.28.1: version "2.28.1" resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.28.1.tgz#63b8b5b3c409bfc75ebaf8fb206b07ab435482c4" @@ -3191,65 +2421,11 @@ eslint-plugin-jsx-a11y@^6.7.1: object.fromentries "^2.0.6" semver "^6.3.0" -eslint-plugin-no-use-extend-native@^0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-no-use-extend-native/-/eslint-plugin-no-use-extend-native-0.5.0.tgz#d6855e3a823a819b467cf7df56adca57de741bf9" - integrity sha512-dBNjs8hor8rJgeXLH4HTut5eD3RGWf9JUsadIfuL7UosVQ/dnvOKwxEcRrXrFxrMZ8llUVWT+hOimxJABsAUzQ== - dependencies: - is-get-set-prop "^1.0.0" - is-js-type "^2.0.0" - is-obj-prop "^1.0.0" - is-proto-prop "^2.0.0" - -eslint-plugin-node@^11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz#c95544416ee4ada26740a30474eefc5402dc671d" - integrity sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g== - dependencies: - eslint-plugin-es "^3.0.0" - eslint-utils "^2.0.0" - ignore "^5.1.1" - minimatch "^3.0.4" - resolve "^1.10.1" - semver "^6.1.0" - -eslint-plugin-prettier@^3.4.0: - version "3.4.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz#e9ddb200efb6f3d05ffe83b1665a716af4a387e5" - integrity sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g== - dependencies: - prettier-linter-helpers "^1.0.0" - -eslint-plugin-promise@^5.1.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-5.2.0.tgz#a596acc32981627eb36d9d75f9666ac1a4564971" - integrity sha512-SftLb1pUG01QYq2A/hGAWfDRXqYD82zE7j7TopDOyNdU+7SvvoXREls/+PRTY17vUXzXnZA/zfnyKgRH6x4JJw== - -eslint-plugin-react-hooks@^4.0.8, "eslint-plugin-react-hooks@^4.5.0 || 5.0.0-canary-7118f5dd7-20230705": +"eslint-plugin-react-hooks@^4.5.0 || 5.0.0-canary-7118f5dd7-20230705": version "4.6.0" resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3" integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g== -eslint-plugin-react@^7.24.0: - version "7.31.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.31.1.tgz#d29793ed27743f3ed8a473c347b1bf5a0a8fb9af" - integrity sha512-j4/2xWqt/R7AZzG8CakGHA6Xa/u7iR8Q3xCxY+AUghdT92bnIDOBEefV456OeH0QvBcroVc0eyvrrLSyQGYIfg== - dependencies: - array-includes "^3.1.5" - array.prototype.flatmap "^1.3.0" - doctrine "^2.1.0" - estraverse "^5.3.0" - jsx-ast-utils "^2.4.1 || ^3.0.0" - minimatch "^3.1.2" - object.entries "^1.1.5" - object.fromentries "^2.0.5" - object.hasown "^1.1.1" - object.values "^1.1.5" - prop-types "^15.8.1" - resolve "^2.0.0-next.3" - semver "^6.3.0" - string.prototype.matchall "^4.0.7" - eslint-plugin-react@^7.33.2: version "7.33.2" resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz#69ee09443ffc583927eafe86ffebb470ee737608" @@ -3272,30 +2448,6 @@ eslint-plugin-react@^7.33.2: semver "^6.3.1" string.prototype.matchall "^4.0.8" -eslint-plugin-unicorn@^30.0.0: - version "30.0.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-30.0.0.tgz#45d3d138f444eff527e8c00f7a9299bcfcb5051b" - integrity sha512-ZKbE48Ep99z/3geLpkBfv+jNrzr2k7bLqCC/RfZOekZzAvn2/ECDE/d8zGdW1YxHmIC9pevQvm8Pl89v9GEIVw== - dependencies: - ci-info "^3.1.1" - clean-regexp "^1.0.0" - eslint-template-visitor "^2.3.2" - eslint-utils "^2.1.0" - eslint-visitor-keys "^2.0.0" - import-modules "^2.1.0" - lodash "^4.17.21" - pluralize "^8.0.0" - read-pkg-up "^7.0.1" - regexp-tree "^0.1.23" - reserved-words "^0.1.2" - safe-regex "^2.1.1" - semver "^7.3.5" - -eslint-rule-docs@^1.1.5: - version "1.1.235" - resolved "https://registry.yarnpkg.com/eslint-rule-docs/-/eslint-rule-docs-1.1.235.tgz#be6ef1fc3525f17b3c859ae2997fedadc89bfb9b" - integrity sha512-+TQ+x4JdTnDoFEXXb3fDvfGOwnyNV7duH8fXWTPD1ieaBmB8omj7Gw/pMBBu4uI2uJCCU8APDaQJzWuXnTsH4A== - eslint-scope@5.1.1, eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" @@ -3304,31 +2456,13 @@ eslint-scope@5.1.1, eslint-scope@^5.1.1: esrecurse "^4.3.0" estraverse "^4.1.1" -eslint-template-visitor@^2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/eslint-template-visitor/-/eslint-template-visitor-2.3.2.tgz#b52f96ff311e773a345d79053ccc78275bbc463d" - integrity sha512-3ydhqFpuV7x1M9EK52BPNj6V0Kwu0KKkcIAfpUhwHbR8ocRln/oUHgfxQupY8O1h4Qv/POHDumb/BwwNfxbtnA== - dependencies: - "@babel/core" "^7.12.16" - "@babel/eslint-parser" "^7.12.16" - eslint-visitor-keys "^2.0.0" - esquery "^1.3.1" - multimap "^1.1.0" - -eslint-utils@^2.0.0, eslint-utils@^2.1.0: +eslint-utils@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== dependencies: eslint-visitor-keys "^1.1.0" -eslint-utils@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" - integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== - dependencies: - eslint-visitor-keys "^2.0.0" - eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" @@ -3344,7 +2478,7 @@ eslint-visitor-keys@^3.4.1: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== -eslint@^7.24.0, eslint@^7.32.0: +eslint@^7.32.0: version "7.32.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== @@ -3404,12 +2538,7 @@ esprima@^4.0.0: resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -espurify@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/espurify/-/espurify-2.1.1.tgz#afb043f22fac908d991dd25f7bf40bcf03935b9c" - integrity sha512-zttWvnkhcDyGOhSH4vO2qCBILpdCMv/MX8lp4cqgRkQoDRGK2oZxi2GfWhlP2dIXmk7BaKeOTuzbHhyC68o8XQ== - -esquery@^1.3.1, esquery@^1.4.0: +esquery@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== @@ -3466,34 +2595,6 @@ evergreen-ui@^7.1.9: react-transition-group "^4.4.1" ui-box "^5.4.1" -execa@^5.0.0: - version "5.1.1" - resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" - integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== - dependencies: - cross-spawn "^7.0.3" - get-stream "^6.0.0" - human-signals "^2.1.0" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.1" - onetime "^5.1.2" - signal-exit "^3.0.3" - strip-final-newline "^2.0.0" - -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - integrity sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA== - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - expand-template@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/expand-template/-/expand-template-2.0.3.tgz#6e14b3fcee0f3a6340ecb57d2e8918692052a47c" @@ -3543,7 +2644,7 @@ extend-shallow@^2.0.1: dependencies: is-extendable "^0.1.0" -extend-shallow@^3.0.0, extend-shallow@^3.0.2: +extend-shallow@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" integrity sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q== @@ -3551,42 +2652,11 @@ extend-shallow@^3.0.0, extend-shallow@^3.0.2: assign-symbols "^1.0.0" is-extendable "^1.0.1" -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== -fast-diff@^1.1.2: - version "1.2.0" - resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" - integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== - -fast-glob@^2.2.6: - version "2.2.7" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-2.2.7.tgz#6953857c3afa475fff92ee6015d52da70a4cd39d" - integrity sha512-g1KuQwHOZAmOZMuBtHdxDtju+T2RT8jgCC9aANsbpdiDDTSnjgfuVsIBNKbUeJI3oKMRExcfNDtJl4OhbffMsw== - dependencies: - "@mrmlnc/readdir-enhanced" "^2.2.1" - "@nodelib/fs.stat" "^1.1.2" - glob-parent "^3.1.0" - is-glob "^4.0.0" - merge2 "^1.2.3" - micromatch "^3.1.10" - fast-glob@^3.2.9: version "3.2.11" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9" @@ -3658,16 +2728,6 @@ file-type@^12.4.2: resolved "https://registry.yarnpkg.com/file-type/-/file-type-12.4.2.tgz#a344ea5664a1d01447ee7fb1b635f72feb6169d9" integrity sha512-UssQP5ZgIOKelfsaB5CuGAL+Y+q7EmONuiwF3N5HAH0t27rvrttgi6Ra9k/+DVaY9UF6+ybxu5pOXLUdA8N7Vg== -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - integrity sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ== - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - fill-range@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" @@ -3688,36 +2748,6 @@ finalhandler@1.2.0: statuses "2.0.1" unpipe "~1.0.0" -find-cache-dir@^3.3.1: - version "3.3.2" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.2.tgz#b30c5b6eff0730731aea9bbd9dbecbd80256d64b" - integrity sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig== - dependencies: - commondir "^1.0.1" - make-dir "^3.0.2" - pkg-dir "^4.1.0" - -find-root@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.1.0.tgz#abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4" - integrity sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng== - -find-up@^4.0.0, find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - flat-cache@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" @@ -3738,23 +2768,11 @@ for-each@^0.3.3: dependencies: is-callable "^1.1.3" -for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - integrity sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ== - forwarded@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - integrity sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA== - dependencies: - map-cache "^0.2.2" - fresh@0.5.2: version "0.5.2" resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" @@ -3774,16 +2792,6 @@ fs-extra@^11.1.1: jsonfile "^6.0.1" universalify "^2.0.0" -fs-extra@^9.1.0: - version "9.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d" - integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== - dependencies: - at-least-node "^1.0.0" - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" @@ -3809,7 +2817,7 @@ functional-red-black-tree@^1.0.1: resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g== -functions-have-names@^1.2.2, functions-have-names@^1.2.3: +functions-have-names@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== @@ -3879,23 +2887,6 @@ get-intrinsic@^1.1.3, get-intrinsic@^1.2.0: has "^1.0.3" has-symbols "^1.0.3" -get-set-props@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/get-set-props/-/get-set-props-0.1.0.tgz#998475c178445686d0b32246da5df8dbcfbe8ea3" - integrity sha512-7oKuKzAGKj0ag+eWZwcGw2fjiZ78tXnXQoBgY0aU7ZOxTu4bB7hSuQSDgtKy978EDH062P5FmD2EWiDpQS9K9Q== - -get-stdin@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-8.0.0.tgz#cbad6a73feb75f6eeb22ba9e01f89aa28aa97a53" - integrity sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg== - -get-stream@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" - integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== - dependencies: - pump "^3.0.0" - get-stream@^5.1.0: version "5.2.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" @@ -3903,7 +2894,7 @@ get-stream@^5.1.0: dependencies: pump "^3.0.0" -get-stream@^6.0.0, get-stream@^6.0.1: +get-stream@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== @@ -3923,7 +2914,7 @@ get-tsconfig@^4.5.0: dependencies: resolve-pkg-maps "^1.0.0" -get-value@^2.0.2, get-value@^2.0.3, get-value@^2.0.6: +get-value@^2.0.2, get-value@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" integrity sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA== @@ -3949,14 +2940,6 @@ glamor@^2.20.40: prop-types "^15.5.10" through "^2.3.8" -glob-parent@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" - integrity sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA== - dependencies: - is-glob "^3.1.0" - path-dirname "^1.0.0" - glob-parent@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" @@ -3964,11 +2947,6 @@ glob-parent@^5.1.2: dependencies: is-glob "^4.0.1" -glob-to-regexp@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" - integrity sha512-Iozmtbqv0noj0uDDqoL0zNq0VBEfK2YFoMAZoxJe4cwphvLR+JskfF30QhXHOR4m3KrE6NLRYw+U9MRXvifyig== - glob-to-regexp@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e" @@ -3998,13 +2976,6 @@ glob@^7.1.1, glob@^7.1.3: once "^1.3.0" path-is-absolute "^1.0.0" -global-dirs@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-3.0.0.tgz#70a76fe84ea315ab37b1f5576cbde7d48ef72686" - integrity sha512-v8ho2DS5RiCjftj1nD9NmnfaOzTdud7RRnVd9kFNOjqZbISlx5DQ+OrTkywgd0dIt7oFCvKetZSHoHcP3sDdiA== - dependencies: - ini "2.0.0" - global-prefix@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-3.0.0.tgz#fc85f73064df69f50421f47f883fe5b913ba9b97" @@ -4033,7 +3004,7 @@ globalthis@^1.0.3: dependencies: define-properties "^1.1.3" -globby@^11.0.3, globby@^11.1.0: +globby@^11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== @@ -4045,20 +3016,6 @@ globby@^11.0.3, globby@^11.1.0: merge2 "^1.4.1" slash "^3.0.0" -globby@^9.2.0: - version "9.2.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-9.2.0.tgz#fd029a706c703d29bdd170f4b6db3a3f7a7cb63d" - integrity sha512-ollPHROa5mcxDEkwg6bPt3QbEf4pDQSNtd6JPL1YvOvAo/7/0VAm9TccUeoTmarjPw4pfUthSCqcyfNB1I3ZSg== - dependencies: - "@types/glob" "^7.1.1" - array-union "^1.0.2" - dir-glob "^2.2.2" - fast-glob "^2.2.6" - glob "^7.1.3" - ignore "^4.0.3" - pify "^4.0.1" - slash "^2.0.0" - gopd@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" @@ -4083,23 +3040,6 @@ got@11.8.6: p-cancelable "^2.0.0" responselike "^2.0.0" -got@^9.6.0: - version "9.6.0" - resolved "https://registry.yarnpkg.com/got/-/got-9.6.0.tgz#edf45e7d67f99545705de1f7bbeeeb121765ed85" - integrity sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q== - dependencies: - "@sindresorhus/is" "^0.14.0" - "@szmarczak/http-timer" "^1.1.2" - cacheable-request "^6.0.0" - decompress-response "^3.3.0" - duplexer3 "^0.1.4" - get-stream "^4.1.0" - lowercase-keys "^1.0.1" - mimic-response "^1.0.1" - p-cancelable "^1.0.0" - to-readable-stream "^1.0.0" - url-parse-lax "^3.0.0" - graceful-fs@^4.1.2, graceful-fs@^4.2.4: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" @@ -4134,11 +3074,6 @@ handlebars@^4.7.7: optionalDependencies: uglify-js "^3.1.4" -hard-rejection@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/hard-rejection/-/hard-rejection-2.1.0.tgz#1c6eda5c1685c63942766d79bb40ae773cecd883" - integrity sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA== - has-bigints@^1.0.1, has-bigints@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" @@ -4178,42 +3113,6 @@ has-tostringtag@^1.0.0: dependencies: has-symbols "^1.0.2" -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - integrity sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q== - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - integrity sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw== - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - integrity sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ== - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - integrity sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ== - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -has-yarn@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/has-yarn/-/has-yarn-2.1.0.tgz#137e11354a7b5bf11aa5cb649cf0c6f3ff2b2e77" - integrity sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw== - has@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" @@ -4226,18 +3125,6 @@ hat@0.0.3: resolved "https://registry.yarnpkg.com/hat/-/hat-0.0.3.tgz#bb014a9e64b3788aed8005917413d4ff3d502d8a" integrity sha512-zpImx2GoKXy42fVDSEad2BPKuSQdLcqsCYa48K3zHSzM/ugWuYjLDr8IXxpVuL7uCLHw56eaiLxCRthhOzf5ug== -hosted-git-info@^2.1.4: - version "2.8.9" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" - integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== - -hosted-git-info@^4.0.1: - version "4.1.0" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.1.0.tgz#827b82867e9ff1c8d0c4d9d53880397d2c86d224" - integrity sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA== - dependencies: - lru-cache "^6.0.0" - http-cache-semantics@^4.0.0: version "4.1.0" resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390" @@ -4262,11 +3149,6 @@ http2-wrapper@^1.0.0-beta.5.2: quick-lru "^5.1.1" resolve-alpn "^1.0.0" -human-signals@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" - integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== - humanize-plus@^1.8.2: version "1.8.2" resolved "https://registry.yarnpkg.com/humanize-plus/-/humanize-plus-1.8.2.tgz#a65b34459ad6367adbb3707a82a3c9f916167030" @@ -4296,12 +3178,12 @@ ieee754@^1.1.12, ieee754@^1.1.13: resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== -ignore@^4.0.3, ignore@^4.0.6: +ignore@^4.0.6: version "4.0.6" resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== -ignore@^5.0.5, ignore@^5.1.1, ignore@^5.1.8, ignore@^5.2.0: +ignore@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== @@ -4319,26 +3201,11 @@ import-fresh@^3.0.0, import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" -import-lazy@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" - integrity sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A== - -import-modules@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/import-modules/-/import-modules-2.1.0.tgz#abe7df297cb6c1f19b57246eb8b8bd9664b6d8c2" - integrity sha512-8HEWcnkbGpovH9yInoisxaSoIg9Brbul+Ju3Kqe2UsYDUBJD/iQjSgEj0zPcTDPKfPp2fs5xlv1i+JSye/m1/A== - imurmurhash@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== -indent-string@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" - integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== - inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" @@ -4352,11 +3219,6 @@ inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@^2.0.4: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== -ini@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ini/-/ini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5" - integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA== - ini@^1.3.5, ini@~1.3.0: version "1.3.8" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" @@ -4377,7 +3239,7 @@ inline-style-prefixer@^5.0.4: dependencies: css-in-js-utils "^2.0.0" -internal-slot@^1.0.3, internal-slot@^1.0.5: +internal-slot@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.5.tgz#f2a2ee21f668f8627a4667f309dc0f4fb6674986" integrity sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ== @@ -4386,43 +3248,11 @@ internal-slot@^1.0.3, internal-slot@^1.0.5: has "^1.0.3" side-channel "^1.0.4" -interpret@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" - integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== - ipaddr.js@1.9.1: version "1.9.1" resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== -irregular-plurals@^3.2.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/irregular-plurals/-/irregular-plurals-3.3.0.tgz#67d0715d4361a60d9fd9ee80af3881c631a31ee2" - integrity sha512-MVBLKUTangM3EfRPFROhmWQQKRDsrgI83J8GS3jXy+OwYqiR2/aoWndYQ5416jLE3uaGgLH7ncme3X9y09gZ3g== - -is-absolute@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-absolute/-/is-absolute-1.0.0.tgz#395e1ae84b11f26ad1795e73c17378e48a301576" - integrity sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA== - dependencies: - is-relative "^1.0.0" - is-windows "^1.0.1" - -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - integrity sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A== - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== - dependencies: - kind-of "^6.0.0" - is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.2.tgz#f2653ced8412081638ecb0ebbd0c41c6e0aecbbe" @@ -4432,11 +3262,6 @@ is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: get-intrinsic "^1.2.0" is-typed-array "^1.1.10" -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== - is-arrayish@^0.3.1: version "0.3.2" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03" @@ -4464,23 +3289,11 @@ is-boolean-object@^1.1.0: call-bind "^1.0.2" has-tostringtag "^1.0.0" -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== - -is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.4, is-callable@^1.2.7: +is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: version "1.2.7" resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== -is-ci@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" - integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== - dependencies: - ci-info "^2.0.0" - is-core-module@^2.11.0, is-core-module@^2.13.0: version "2.13.0" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.0.tgz#bb52aa6e2cbd49a30c2ba68c42bf3435ba6072db" @@ -4488,27 +3301,13 @@ is-core-module@^2.11.0, is-core-module@^2.13.0: dependencies: has "^1.0.3" -is-core-module@^2.5.0, is-core-module@^2.7.0, is-core-module@^2.8.1, is-core-module@^2.9.0: +is-core-module@^2.9.0: version "2.10.0" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.10.0.tgz#9012ede0a91c69587e647514e1d5277019e728ed" integrity sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg== dependencies: has "^1.0.3" -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - integrity sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg== - dependencies: - kind-of "^3.0.2" - -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== - dependencies: - kind-of "^6.0.0" - is-date-object@^1.0.1, is-date-object@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" @@ -4516,34 +3315,6 @@ is-date-object@^1.0.1, is-date-object@^1.0.5: dependencies: has-tostringtag "^1.0.0" -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-docker@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" - integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== - -is-error@^2.2.0: - version "2.2.2" - resolved "https://registry.yarnpkg.com/is-error/-/is-error-2.2.2.tgz#c10ade187b3c93510c5470a5567833ee25649843" - integrity sha512-IOQqts/aHWbiisY5DuPJQ0gcbvaLFCa7fBa9xoLfxBZvQ+ZI/Zh9xoI7Gk+G64N0FdK4AbibytHht2tWgpJWLg== - is-extendable@^0.1.0, is-extendable@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" @@ -4556,7 +3327,7 @@ is-extendable@^1.0.1: dependencies: is-plain-object "^2.0.4" -is-extglob@^2.1.0, is-extglob@^2.1.1: +is-extglob@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== @@ -4580,21 +3351,6 @@ is-generator-function@^1.0.10: dependencies: has-tostringtag "^1.0.0" -is-get-set-prop@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-get-set-prop/-/is-get-set-prop-1.0.0.tgz#2731877e4d78a6a69edcce6bb9d68b0779e76312" - integrity sha512-DvAYZ1ZgGUz4lzxKMPYlt08qAUqyG9ckSg2pIjfvcQ7+pkVNUHk8yVLXOnCLe5WKXhLop8oorWFBJHpwWQpszQ== - dependencies: - get-set-props "^0.1.0" - lowercase-keys "^1.0.0" - -is-glob@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" - integrity sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw== - dependencies: - is-extglob "^2.1.0" - is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" @@ -4602,41 +3358,16 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3: dependencies: is-extglob "^2.1.1" -is-installed-globally@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.4.0.tgz#9a0fd407949c30f86eb6959ef1b7994ed0b7b520" - integrity sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ== - dependencies: - global-dirs "^3.0.0" - is-path-inside "^3.0.2" - -is-js-type@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-js-type/-/is-js-type-2.0.0.tgz#73617006d659b4eb4729bba747d28782df0f7e22" - integrity sha512-Aj13l47+uyTjlQNHtXBV8Cji3jb037vxwMWCgopRR8h6xocgBGW3qG8qGlIOEmbXQtkKShKuBM9e8AA1OeQ+xw== - dependencies: - js-types "^1.0.0" - is-map@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.2.tgz#00922db8c9bf73e81b7a335827bc2a43f2b91127" integrity sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg== -is-negated-glob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-negated-glob/-/is-negated-glob-1.0.0.tgz#6910bca5da8c95e784b5751b976cf5a10fee36d2" - integrity sha512-czXVVn/QEmgvej1f50BZ648vUI+em0xqMq2Sn+QncCLN4zj1UAxlT+kw/6ggQTOaZPd1HqKQGEqbpQVtJucWug== - is-negative-zero@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== -is-npm@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-5.0.0.tgz#43e8d65cc56e1b67f8d47262cf667099193f45a8" - integrity sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA== - is-number-object@^1.0.4: version "1.0.7" resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.7.tgz#59d50ada4c45251784e9904f5246c742f07a42fc" @@ -4644,41 +3375,11 @@ is-number-object@^1.0.4: dependencies: has-tostringtag "^1.0.0" -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - integrity sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg== - dependencies: - kind-of "^3.0.2" - is-number@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== -is-obj-prop@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-obj-prop/-/is-obj-prop-1.0.0.tgz#b34de79c450b8d7c73ab2cdf67dc875adb85f80e" - integrity sha512-5Idb61slRlJlsAzi0Wsfwbp+zZY+9LXKUAZpvT/1ySw+NxKLRWfa0Bzj+wXI3fX5O9hiddm5c3DAaRSNP/yl2w== - dependencies: - lowercase-keys "^1.0.0" - obj-props "^1.0.0" - -is-obj@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" - integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== - -is-path-inside@^3.0.2, is-path-inside@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" - integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== - -is-plain-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" - integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== - is-plain-object@^2.0.3, is-plain-object@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" @@ -4686,14 +3387,6 @@ is-plain-object@^2.0.3, is-plain-object@^2.0.4: dependencies: isobject "^3.0.1" -is-proto-prop@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-proto-prop/-/is-proto-prop-2.0.0.tgz#99ab2863462e44090fd083efd1929058f9d935e1" - integrity sha512-jl3NbQ/fGLv5Jhan4uX+Ge9ohnemqyblWVVCpAvtTQzNFvV2xhJq+esnkIbYQ9F1nITXoLfDDQLp7LBw/zzncg== - dependencies: - lowercase-keys "^1.0.0" - proto-props "^2.0.0" - is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" @@ -4702,13 +3395,6 @@ is-regex@^1.1.4: call-bind "^1.0.2" has-tostringtag "^1.0.0" -is-relative@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d" - integrity sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA== - dependencies: - is-unc-path "^1.0.0" - is-set@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/is-set/-/is-set-2.0.2.tgz#90755fa4c2562dc1c5d4024760d6119b94ca18ec" @@ -4726,11 +3412,6 @@ is-stream@^1.0.1: resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== -is-stream@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" - integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== - is-string@^1.0.5, is-string@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" @@ -4763,23 +3444,6 @@ is-typed-array@^1.1.12, is-typed-array@^1.1.9: dependencies: which-typed-array "^1.1.11" -is-typedarray@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== - -is-unc-path@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-unc-path/-/is-unc-path-1.0.0.tgz#d731e8898ed090a12c352ad2eaed5095ad322c9d" - integrity sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ== - dependencies: - unc-path-regex "^0.1.2" - -is-unicode-supported@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" - integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== - is-weakmap@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/is-weakmap/-/is-weakmap-2.0.1.tgz#5008b59bdc43b698201d18f62b37b2ca243e8cf2" @@ -4800,28 +3464,6 @@ is-weakset@^2.0.1: call-bind "^1.0.2" get-intrinsic "^1.1.1" -is-windows@^1.0.1, is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -is-wsl@^2.1.1: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" - integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== - dependencies: - is-docker "^2.0.0" - -is-yarn-global@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/is-yarn-global/-/is-yarn-global-0.3.0.tgz#d502d3382590ea3004893746754c89139973e232" - integrity sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw== - -isarray@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== - isarray@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" @@ -4832,14 +3474,7 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - integrity sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA== - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: +isobject@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== @@ -4868,11 +3503,6 @@ iterator.prototype@^1.1.2: resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -js-types@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/js-types/-/js-types-1.0.0.tgz#d242e6494ed572ad3c92809fc8bed7f7687cbf03" - integrity sha512-bfwqBW9cC/Lp7xcRpug7YrXm0IVw+T9e3g4mCYnv0Pjr3zIzU9PCQElYU9oSGAWzXlbdl9X5SAMPejO9sxkeUw== - js-yaml@^3.13.1: version "3.14.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" @@ -4893,21 +3523,11 @@ jsesc@^2.5.1: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== -json-buffer@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898" - integrity sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ== - json-buffer@3.0.1, json-buffer@~3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== -json-parse-even-better-errors@^2.3.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" - integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== - json-schema-ref-parser@^9.0.9: version "9.0.9" resolved "https://registry.yarnpkg.com/json-schema-ref-parser/-/json-schema-ref-parser-9.0.9.tgz#66ea538e7450b12af342fa3d5b8458bc1e1e013f" @@ -4935,18 +3555,13 @@ json-stringify-pretty-compact@^3.0.0: resolved "https://registry.yarnpkg.com/json-stringify-pretty-compact/-/json-stringify-pretty-compact-3.0.0.tgz#f71ef9d82ef16483a407869556588e91b681d9ab" integrity sha512-Rc2suX5meI0S3bfdZuA7JMFBGkJ875ApfVyq2WHELjBiiG22My/l7/8zPpH/CfFVQHuVLd8NLR0nv6vi0BYYKA== -json5@^1.0.1, json5@^1.0.2: +json5@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593" integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== dependencies: minimist "^1.2.0" -json5@^2.2.0, json5@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" - integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== - json5@^2.2.2: version "2.2.3" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" @@ -4984,13 +3599,6 @@ kdbush@^4.0.2: resolved "https://registry.yarnpkg.com/kdbush/-/kdbush-4.0.2.tgz#2f7b7246328b4657dd122b6c7f025fbc2c868e39" integrity sha512-WbCVYJ27Sz8zi9Q7Q0xHC+05iwkm3Znipc2XTlrnJbsHMYktW4hPhXUE8Ys1engBrvffoSCqbil1JQAa7clRpA== -keyv@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.1.0.tgz#ecc228486f69991e49e9476485a5be1e8fc5c4d9" - integrity sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA== - dependencies: - json-buffer "3.0.0" - keyv@^4.0.0: version "4.4.1" resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.4.1.tgz#5d97bae8dfbb6788ebc9330daf5eb6582e2d3d1c" @@ -4999,26 +3607,7 @@ keyv@^4.0.0: compress-brotli "^1.3.8" json-buffer "3.0.1" -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - integrity sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ== - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - integrity sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw== - dependencies: - is-buffer "^1.1.5" - -kind-of@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== - -kind-of@^6.0.0, kind-of@^6.0.2, kind-of@^6.0.3: +kind-of@^6.0.2: version "6.0.3" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== @@ -5035,13 +3624,6 @@ language-tags@=1.0.5: dependencies: language-subtag-registry "~0.3.2" -latest-version@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face" - integrity sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA== - dependencies: - package-json "^6.3.0" - levn@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" @@ -5050,32 +3632,6 @@ levn@^0.4.1: prelude-ls "^1.2.1" type-check "~0.4.0" -line-column-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/line-column-path/-/line-column-path-2.0.0.tgz#439aff48ef80d74c475801a25b560d021acf1288" - integrity sha512-nz3A+vi4bElhwd62E9+Qk/f9BDYLSzD/4Hy1rir0I4GnMxSTezSymzANyph5N1PgRZ3sSbA+yR5hOuXxc71a0Q== - dependencies: - type-fest "^0.4.1" - -lines-and-columns@^1.1.6: - version "1.2.4" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" - integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== - -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - dependencies: - p-locate "^4.1.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - lodash.debounce@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" @@ -5121,19 +3677,11 @@ lodash.uniqby@^4.7.0: resolved "https://registry.yarnpkg.com/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz#d99c07a669e9e6d24e1362dfe266c67616af1302" integrity sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww== -lodash@^4.13.1, lodash@^4.17.10, lodash@^4.17.20, lodash@^4.17.21: +lodash@^4.17.10, lodash@^4.17.20, lodash@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== -log-symbols@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" - integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== - dependencies: - chalk "^4.1.0" - is-unicode-supported "^0.1.0" - loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" @@ -5141,11 +3689,6 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: dependencies: js-tokens "^3.0.0 || ^4.0.0" -lowercase-keys@^1.0.0, lowercase-keys@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" - integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA== - lowercase-keys@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" @@ -5165,35 +3708,6 @@ lru-cache@^6.0.0: dependencies: yallist "^4.0.0" -make-dir@^3.0.0, make-dir@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" - -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - integrity sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg== - -map-obj@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" - integrity sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg== - -map-obj@^4.0.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a" - integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ== - -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - integrity sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w== - dependencies: - object-visit "^1.0.0" - "mapbox-gl@npm:empty-npm-package@1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/empty-npm-package/-/empty-npm-package-1.0.0.tgz#fda29eb6de5efa391f73d578697853af55f6793a" @@ -5235,40 +3749,12 @@ media-typer@0.3.0: resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== -memory-fs@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.2.0.tgz#f2bb25368bc121e391c2520de92969caee0a0290" - integrity sha512-+y4mDxU4rvXXu5UDSGCGNiesFmwCHuefGMoPCO1WYucNYj7DsLqrFaa2fXVI0H+NNiPTwwzKwspn9yTZqUGqng== - -meow@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/meow/-/meow-9.0.0.tgz#cd9510bc5cac9dee7d03c73ee1f9ad959f4ea364" - integrity sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ== - dependencies: - "@types/minimist" "^1.2.0" - camelcase-keys "^6.2.2" - decamelize "^1.2.0" - decamelize-keys "^1.1.0" - hard-rejection "^2.1.0" - minimist-options "4.1.0" - normalize-package-data "^3.0.0" - read-pkg-up "^7.0.1" - redent "^3.0.0" - trim-newlines "^3.0.0" - type-fest "^0.18.0" - yargs-parser "^20.2.3" - merge-descriptors@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" integrity sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w== -merge-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" - integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== - -merge2@^1.2.3, merge2@^1.3.0, merge2@^1.4.1: +merge2@^1.3.0, merge2@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== @@ -5283,30 +3769,6 @@ mgrs@1.0.0: resolved "https://registry.yarnpkg.com/mgrs/-/mgrs-1.0.0.tgz#fb91588e78c90025672395cb40b25f7cd6ad1829" integrity sha512-awNbTOqCxK1DBGjalK3xqWIstBZgN6fxsMSiXLs9/spqWkF2pAhb2rrYCFSsr1/tT7PhcDGjZndG8SWYn0byYA== -micro-spelling-correcter@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/micro-spelling-correcter/-/micro-spelling-correcter-1.1.1.tgz#805a06a26ccfcad8f3e5c6a1ac5ff29d4530166e" - integrity sha512-lkJ3Rj/mtjlRcHk6YyCbvZhyWTOzdBvTHsxMmZSk5jxN1YyVSQ+JETAom55mdzfcyDrY/49Z7UCW760BK30crg== - -micromatch@^3.1.10: - version "3.1.10" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" - integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.2" - micromatch@^4.0.4: version "4.0.5" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" @@ -5332,12 +3794,7 @@ mime@1.6.0: resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== -mimic-fn@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" - integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== - -mimic-response@^1.0.0, mimic-response@^1.0.1: +mimic-response@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== @@ -5347,11 +3804,6 @@ mimic-response@^3.1.0: resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9" integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== -min-indent@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" - integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== - minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" @@ -5359,15 +3811,6 @@ minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: dependencies: brace-expansion "^1.1.7" -minimist-options@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619" - integrity sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A== - dependencies: - arrify "^1.0.1" - is-plain-obj "^1.1.0" - kind-of "^6.0.3" - minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.8: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" @@ -5378,14 +3821,6 @@ minimist@^1.2.3, minimist@^1.2.6: resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== -mixin-deep@^1.2.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" - integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - mjolnir.js@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/mjolnir.js/-/mjolnir.js-2.4.1.tgz#63cc66b7d1a52490904103cc1becc597be60c6cf" @@ -5419,11 +3854,6 @@ ms@2.1.3, ms@^2.1.1: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== -multimap@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/multimap/-/multimap-1.1.0.tgz#5263febc085a1791c33b59bb3afc6a76a2a10ca8" - integrity sha512-0ZIR9PasPxGXmRsEF8jsDzndzHDj7tIav+JUmvIFB/WHswliFnquxECT/De7GR4yg99ky/NlRKJT82G1y271bw== - murmurhash-js@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/murmurhash-js/-/murmurhash-js-1.0.0.tgz#b06278e21fc6c37fa5313732b0412bcb6ae15f51" @@ -5434,23 +3864,6 @@ nanoid@^3.3.4: resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.6.tgz#443380c856d6e9f9824267d960b4236ad583ea4c" integrity sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA== -nanomatch@^1.2.9: - version "1.2.13" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" - integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - napi-build-utils@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/napi-build-utils/-/napi-build-utils-1.0.2.tgz#b1fddc0b2c46e380a0b7a76f984dd47c41a13806" @@ -5515,73 +3928,22 @@ node-fetch@^1.0.1: encoding "^0.1.11" is-stream "^1.0.1" -node-releases@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.6.tgz#8a7088c63a55e493845683ebf3c828d8c51c5503" - integrity sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg== - node-releases@^2.0.8: version "2.0.10" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.10.tgz#c311ebae3b6a148c89b1813fd7c4d3c024ef537f" integrity sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w== -normalize-package-data@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" - integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== - dependencies: - hosted-git-info "^2.1.4" - resolve "^1.10.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -normalize-package-data@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-3.0.3.tgz#dbcc3e2da59509a0983422884cd172eefdfa525e" - integrity sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA== - dependencies: - hosted-git-info "^4.0.1" - is-core-module "^2.5.0" - semver "^7.3.4" - validate-npm-package-license "^3.0.1" - -normalize-url@^4.1.0: - version "4.5.1" - resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a" - integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA== - normalize-url@^6.0.1: version "6.1.0" resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== -npm-run-path@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" - integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== - dependencies: - path-key "^3.0.0" - -obj-props@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/obj-props/-/obj-props-1.4.0.tgz#9a9beebb6faf8b287ff7dc1cd133a4247dc85641" - integrity sha512-p7p/7ltzPDiBs6DqxOrIbtRdwxxVRBj5ROukeNb9RgA+fawhrz5n2hpNz8DDmYR//tviJSj7nUnlppGmONkjiQ== - object-assign@^4.1.0, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - integrity sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ== - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-inspect@^1.12.0, object-inspect@^1.12.3, object-inspect@^1.9.0: +object-inspect@^1.12.3, object-inspect@^1.9.0: version "1.12.3" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.3.tgz#ba62dffd67ee256c8c086dfae69e016cd1f198b9" integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g== @@ -5591,14 +3953,7 @@ object-keys@^1.1.1: resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - integrity sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA== - dependencies: - isobject "^3.0.0" - -object.assign@^4.1.2, object.assign@^4.1.3, object.assign@^4.1.4: +object.assign@^4.1.3, object.assign@^4.1.4: version "4.1.4" resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f" integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ== @@ -5608,15 +3963,6 @@ object.assign@^4.1.2, object.assign@^4.1.3, object.assign@^4.1.4: has-symbols "^1.0.3" object-keys "^1.1.1" -object.entries@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861" - integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - object.entries@^1.1.6: version "1.1.7" resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.7.tgz#2b47760e2a2e3a752f39dd874655c61a7f03c131" @@ -5626,15 +3972,6 @@ object.entries@^1.1.6: define-properties "^1.2.0" es-abstract "^1.22.1" -object.fromentries@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251" - integrity sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - object.fromentries@^2.0.6: version "2.0.7" resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.7.tgz#71e95f441e9a0ea6baf682ecaaf37fa2a8d7e616" @@ -5654,37 +3991,13 @@ object.groupby@^1.0.0: es-abstract "^1.22.1" get-intrinsic "^1.2.1" -object.hasown@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.1.tgz#ad1eecc60d03f49460600430d97f23882cf592a3" - integrity sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A== - dependencies: - define-properties "^1.1.4" - es-abstract "^1.19.5" - object.hasown@^1.1.2: version "1.1.3" resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.3.tgz#6a5f2897bb4d3668b8e79364f98ccf971bda55ae" integrity sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA== dependencies: - define-properties "^1.2.0" - es-abstract "^1.22.1" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - integrity sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ== - dependencies: - isobject "^3.0.1" - -object.values@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac" - integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" + define-properties "^1.2.0" + es-abstract "^1.22.1" object.values@^1.1.6: version "1.1.7" @@ -5709,31 +4022,6 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" -onetime@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" - integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== - dependencies: - mimic-fn "^2.1.0" - -open-editor@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/open-editor/-/open-editor-3.0.0.tgz#2c9bfa013c0518601f0c321d89b68ff2bb6851ab" - integrity sha512-00Nqoa7k8F4AK1oSFMIIhYku+essXiCljR2L2kV+bl5j90ANgbQgzEeTdZu23LsikDoz+KfhyRHpGLAwpQhugA== - dependencies: - env-editor "^0.4.1" - execa "^5.0.0" - line-column-path "^2.0.0" - open "^7.3.0" - -open@^7.3.0: - version "7.4.2" - resolved "https://registry.yarnpkg.com/open/-/open-7.4.2.tgz#b8147e26dcf3e426316c730089fd71edd29c2321" - integrity sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q== - dependencies: - is-docker "^2.0.0" - is-wsl "^2.1.1" - openapi-typescript-codegen@^0.25.0: version "0.25.0" resolved "https://registry.yarnpkg.com/openapi-typescript-codegen/-/openapi-typescript-codegen-0.25.0.tgz#0cb028f54b33b0a63bd9da3756c1c41b4e1a70e2" @@ -5762,64 +4050,11 @@ optionator@^0.9.1: type-check "^0.4.0" word-wrap "^1.2.3" -p-cancelable@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-1.1.0.tgz#d078d15a3af409220c886f1d9a0ca2e441ab26cc" - integrity sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw== - p-cancelable@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-2.1.1.tgz#aab7fbd416582fa32a3db49859c122487c5ed2cf" integrity sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg== -p-limit@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== - dependencies: - p-limit "^2.2.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -p-reduce@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/p-reduce/-/p-reduce-2.1.0.tgz#09408da49507c6c274faa31f28df334bc712b64a" - integrity sha512-2USApvnsutq8uoxZBGbbWM0JIYLiEMJ9RlaN7fAzVNb9OZN0SHjjTTfIcb667XynS5Y1VhwDJVDa72TnPzAYWw== - -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - -package-json@^6.3.0: - version "6.5.0" - resolved "https://registry.yarnpkg.com/package-json/-/package-json-6.5.0.tgz#6feedaca35e75725876d0b0e64974697fed145b0" - integrity sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ== - dependencies: - got "^9.6.0" - registry-auth-token "^4.0.0" - registry-url "^5.0.0" - semver "^6.2.0" - papaparse@^5.3.2: version "5.3.2" resolved "https://registry.yarnpkg.com/papaparse/-/papaparse-5.3.2.tgz#d1abed498a0ee299f103130a6109720404fbd467" @@ -5832,42 +4067,17 @@ parent-module@^1.0.0: dependencies: callsites "^3.0.0" -parse-json@^5.0.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" - integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== - dependencies: - "@babel/code-frame" "^7.0.0" - error-ex "^1.3.1" - json-parse-even-better-errors "^2.3.0" - lines-and-columns "^1.1.6" - parseurl@~1.3.3: version "1.3.3" resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - integrity sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw== - -path-dirname@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" - integrity sha512-ALzNPpyNq9AqXMBjeymIjFDAkAFH06mHJH/cSBHAgU0s4vfpBn6b2nf8tiRLvagKD8RbTpq2FKTBg7cl9l3c7Q== - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - path-is-absolute@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== -path-key@^3.0.0, path-key@^3.1.0: +path-key@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== @@ -5882,13 +4092,6 @@ path-to-regexp@0.1.7: resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" integrity sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ== -path-type@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" - integrity sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg== - dependencies: - pify "^3.0.0" - path-type@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" @@ -5912,42 +4115,6 @@ picomatch@^2.3.1: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== -pify@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" - integrity sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg== - -pify@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" - integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== - -pkg-dir@^4.1.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" - integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== - dependencies: - find-up "^4.0.0" - -pkg-dir@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-5.0.0.tgz#a02d6aebe6ba133a928f74aec20bafdfe6b8e760" - integrity sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA== - dependencies: - find-up "^5.0.0" - -plur@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/plur/-/plur-4.0.0.tgz#729aedb08f452645fe8c58ef115bf16b0a73ef84" - integrity sha512-4UGewrYgqDFw9vV6zNV+ADmPAUAfJPKtGvb/VdpQAx25X5f3xXdGdyOEVFwkl8Hl/tl7+xbeHqSEM+D5/TirUg== - dependencies: - irregular-plurals "^3.2.0" - -pluralize@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-8.0.0.tgz#1a6fa16a38d12a1901e0320fa017051c539ce3b1" - integrity sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA== - polygon-clipping@^0.15.3: version "0.15.3" resolved "https://registry.yarnpkg.com/polygon-clipping/-/polygon-clipping-0.15.3.tgz#0215840438470ba2e9e6593625e4ea5c1087b4b7" @@ -5955,11 +4122,6 @@ polygon-clipping@^0.15.3: dependencies: splaytree "^3.1.0" -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - integrity sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg== - postcss@8.4.14: version "8.4.14" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.14.tgz#ee9274d5622b4858c1007a74d76e42e56fd21caf" @@ -5997,22 +4159,10 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prepend-http@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" - integrity sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA== - -prettier-linter-helpers@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" - integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== - dependencies: - fast-diff "^1.1.2" - -prettier@^2.2.1: - version "2.7.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" - integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== +prettier@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.0.tgz#c6d16474a5f764ea1a4a373c593b779697744d5e" + integrity sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw== progress@^2.0.0: version "2.0.3" @@ -6043,11 +4193,6 @@ prop-types@^15.5.10, prop-types@^15.5.7, prop-types@^15.6.2, prop-types@^15.7.2, object-assign "^4.1.1" react-is "^16.13.1" -proto-props@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/proto-props/-/proto-props-2.0.0.tgz#8ac6e6dec658545815c623a3bc81580deda9a181" - integrity sha512-2yma2tog9VaRZY2mn3Wq51uiSW4NcPYT1cQdBagwyrznrilKSZwIZ0UG3ZPL/mx+axEns0hE35T5ufOYZXEnBQ== - protocol-buffers-schema@^3.3.1: version "3.6.0" resolved "https://registry.yarnpkg.com/protocol-buffers-schema/-/protocol-buffers-schema-3.6.0.tgz#77bc75a48b2ff142c1ad5b5b90c94cd0fa2efd03" @@ -6074,13 +4219,6 @@ punycode@^2.1.0: resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.0.tgz#f67fa67c94da8f4d0cfff981aee4118064199b8f" integrity sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA== -pupa@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/pupa/-/pupa-2.1.1.tgz#f5e8fd4afc2c5d97828faa523549ed8744a20d62" - integrity sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A== - dependencies: - escape-goat "^2.0.0" - qs@6.11.0: version "6.11.0" resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a" @@ -6093,11 +4231,6 @@ queue-microtask@^1.2.2: resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== -quick-lru@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" - integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== - quick-lru@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932" @@ -6135,7 +4268,7 @@ rbush@^3.0.1: dependencies: quickselect "^2.0.0" -rc@1.2.8, rc@^1.2.7, rc@^1.2.8: +rc@^1.2.7: version "1.2.8" resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== @@ -6220,25 +4353,6 @@ react@^18.2.0: dependencies: loose-envify "^1.1.0" -read-pkg-up@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-7.0.1.tgz#f3a6135758459733ae2b95638056e1854e7ef507" - integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg== - dependencies: - find-up "^4.1.0" - read-pkg "^5.2.0" - type-fest "^0.8.1" - -read-pkg@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.2.0.tgz#7bf295438ca5a33e56cd30e053b34ee7250c93cc" - integrity sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg== - dependencies: - "@types/normalize-package-data" "^2.4.0" - normalize-package-data "^2.5.0" - parse-json "^5.0.0" - type-fest "^0.6.0" - readable-stream@^3.1.1, readable-stream@^3.4.0: version "3.6.0" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" @@ -6248,14 +4362,6 @@ readable-stream@^3.1.1, readable-stream@^3.4.0: string_decoder "^1.1.1" util-deprecate "^1.0.1" -redent@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/redent/-/redent-3.0.0.tgz#e557b7998316bb53c9f1f56fa626352c6963059f" - integrity sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg== - dependencies: - indent-string "^4.0.0" - strip-indent "^3.0.0" - reflect.getprototypeof@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/reflect.getprototypeof/-/reflect.getprototypeof-1.0.4.tgz#aaccbf41aca3821b87bb71d9dcbc7ad0ba50a3f3" @@ -6278,29 +4384,7 @@ regenerator-runtime@^0.14.0: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz#5e19d68eb12d486f797e15a3c6a918f7cec5eb45" integrity sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA== -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - -regexp-tree@^0.1.23, regexp-tree@~0.1.1: - version "0.1.24" - resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.24.tgz#3d6fa238450a4d66e5bc9c4c14bb720e2196829d" - integrity sha512-s2aEVuLhvnVJW6s/iPgEGK6R+/xngd2jNQ+xy4bXNDKxZKJH6jpPHY6kVeVv1IeLCHgswRj+Kl3ELaDjG6V1iw== - -regexp.prototype.flags@^1.4.1: - version "1.4.3" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" - integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - functions-have-names "^1.2.2" - -regexp.prototype.flags@^1.4.3, regexp.prototype.flags@^1.5.0, regexp.prototype.flags@^1.5.1: +regexp.prototype.flags@^1.5.0, regexp.prototype.flags@^1.5.1: version "1.5.1" resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz#90ce989138db209f81492edd734183ce99f9677e" integrity sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg== @@ -6309,35 +4393,11 @@ regexp.prototype.flags@^1.4.3, regexp.prototype.flags@^1.5.0, regexp.prototype.f define-properties "^1.2.0" set-function-name "^2.0.0" -regexpp@^3.0.0, regexpp@^3.1.0: +regexpp@^3.1.0: version "3.2.0" resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== -registry-auth-token@^4.0.0: - version "4.2.2" - resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-4.2.2.tgz#f02d49c3668884612ca031419491a13539e21fac" - integrity sha512-PC5ZysNb42zpFME6D/XlIgtNGdTl8bBOCw90xQLVMpzuuubJKYDWFAEuUNc+Cn8Z8724tg2SDhDRrkVEsqfDMg== - dependencies: - rc "1.2.8" - -registry-url@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-5.1.0.tgz#e98334b50d5434b81136b44ec638d9c2009c5009" - integrity sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw== - dependencies: - rc "^1.2.8" - -repeat-element@^1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.4.tgz#be681520847ab58c7568ac75fbfad28ed42d39e9" - integrity sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ== - -repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - integrity sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w== - require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" @@ -6353,33 +4413,16 @@ require-package-name@^2.0.1: resolved "https://registry.yarnpkg.com/require-package-name/-/require-package-name-2.0.1.tgz#c11e97276b65b8e2923f75dabf5fb2ef0c3841b9" integrity sha512-uuoJ1hU/k6M0779t3VMVIYpb2VMJk05cehCaABFhXaibcbvfgR8wKiozLjVFSzJPmQMRqIcO0HMyTFqfV09V6Q== -reserved-words@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/reserved-words/-/reserved-words-0.1.2.tgz#00a0940f98cd501aeaaac316411d9adc52b31ab1" - integrity sha512-0S5SrIUJ9LfpbVl4Yzij6VipUdafHrOTzvmfazSw/jeZrZtQK303OPZW+obtkaw7jQlTQppy0UvZWm9872PbRw== - resolve-alpn@^1.0.0: version "1.2.1" resolved "https://registry.yarnpkg.com/resolve-alpn/-/resolve-alpn-1.2.1.tgz#b7adbdac3546aaaec20b45e7d8265927072726f9" integrity sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g== -resolve-cwd@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" - integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== - dependencies: - resolve-from "^5.0.0" - resolve-from@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== -resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - resolve-pkg-maps@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz#616b3dc2c57056b5588c31cdf4b3d64db133720f" @@ -6392,12 +4435,7 @@ resolve-protobuf-schema@^2.1.0: dependencies: protocol-buffers-schema "^3.3.1" -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg== - -resolve@^1.10.0, resolve@^1.10.1, resolve@^1.20.0, resolve@^1.22.0: +resolve@^1.20.0: version "1.22.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== @@ -6415,7 +4453,7 @@ resolve@^1.22.4: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -resolve@^2.0.0-next.3, resolve@^2.0.0-next.4: +resolve@^2.0.0-next.4: version "2.0.0-next.4" resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.4.tgz#3d37a113d6429f496ec4752d2a2e58efb1fd4660" integrity sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ== @@ -6424,13 +4462,6 @@ resolve@^2.0.0-next.3, resolve@^2.0.0-next.4: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -responselike@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" - integrity sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ== - dependencies: - lowercase-keys "^1.0.0" - responselike@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/responselike/-/responselike-2.0.1.tgz#9a0bc8fdc252f3fb1cca68b016591059ba1422bc" @@ -6438,11 +4469,6 @@ responselike@^2.0.0: dependencies: lowercase-keys "^2.0.0" -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== - reusify@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" @@ -6501,20 +4527,6 @@ safe-regex-test@^1.0.0: get-intrinsic "^1.1.3" is-regex "^1.1.4" -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - integrity sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg== - dependencies: - ret "~0.1.10" - -safe-regex@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-2.1.1.tgz#f7128f00d056e2fe5c11e81a1324dd974aadced2" - integrity sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A== - dependencies: - regexp-tree "~0.1.1" - "safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0": version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" @@ -6527,29 +4539,17 @@ scheduler@^0.23.0: dependencies: loose-envify "^1.1.0" -semver-diff@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-3.1.1.tgz#05f77ce59f325e00e2706afd67bb506ddb1ca32b" - integrity sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg== - dependencies: - semver "^6.3.0" - -"semver@2 || 3 || 4 || 5", semver@^5.7.1: - version "5.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" - integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== +semver@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -semver@^6.0.0, semver@^6.3.1: +semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^6.1.0, semver@^6.2.0, semver@^6.3.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== - -semver@^7.2.1, semver@^7.3.4, semver@^7.3.5: +semver@^7.2.1, semver@^7.3.5: version "7.3.7" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f" integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g== @@ -6601,7 +4601,7 @@ set-function-name@^2.0.0, set-function-name@^2.0.1: functions-have-names "^1.2.3" has-property-descriptors "^1.0.0" -set-value@^2.0.0, set-value@^2.0.1: +set-value@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== @@ -6656,11 +4656,6 @@ side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -signal-exit@^3.0.2, signal-exit@^3.0.3: - version "3.0.7" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" - integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== - simple-concat@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.1.tgz#f46976082ba35c2263f1c8ab5edfe26c41c9552f" @@ -6691,11 +4686,6 @@ sirv@^1.0.7: mrmime "^1.0.0" totalist "^1.0.0" -slash@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" - integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== - slash@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" @@ -6710,36 +4700,6 @@ slice-ansi@^4.0.0: astral-regex "^2.0.0" is-fullwidth-code-point "^3.0.0" -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" - integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^3.1.0" - sort-asc@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/sort-asc/-/sort-asc-0.2.0.tgz#00a49e947bc25d510bfde2cbb8dffda9f50eb2fc" @@ -6767,64 +4727,17 @@ source-map-js@^1.0.2: resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== -source-map-resolve@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-url@^0.4.0: - version "0.4.1" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.1.tgz#0af66605a745a5a2f91cf1bbf8a7afbc283dec56" - integrity sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw== - -source-map@^0.5.6: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== - source-map@^0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== -spdx-correct@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9" - integrity sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w== - dependencies: - spdx-expression-parse "^3.0.0" - spdx-license-ids "^3.0.0" - -spdx-exceptions@^2.1.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d" - integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A== - -spdx-expression-parse@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679" - integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== - dependencies: - spdx-exceptions "^2.1.0" - spdx-license-ids "^3.0.0" - -spdx-license-ids@^3.0.0: - version "3.0.12" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz#69077835abe2710b65f03969898b6637b505a779" - integrity sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA== - splaytree@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/splaytree/-/splaytree-3.1.1.tgz#e1bc8e68e64ef5a9d5f09d36e6d9f3621795a438" integrity sha512-9FaQ18FF0+sZc/ieEeXHt+Jw2eSpUgUtTLDYB/HXKWvhYVyOc7h1hzkn5MMO3GPib9MmXG1go8+OsBBzs/NMww== -split-string@^3.0.1, split-string@^3.0.2: +split-string@^3.0.1: version "3.1.0" resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== @@ -6836,14 +4749,6 @@ sprintf-js@~1.0.2: resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - integrity sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g== - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - statuses@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" @@ -6854,7 +4759,7 @@ streamsearch@^1.1.0: resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== -string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: +string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -6863,20 +4768,6 @@ string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2 is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" -string.prototype.matchall@^4.0.7: - version "4.0.7" - resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz#8e6ecb0d8a1fb1fda470d81acecb2dba057a481d" - integrity sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - get-intrinsic "^1.1.1" - has-symbols "^1.0.3" - internal-slot "^1.0.3" - regexp.prototype.flags "^1.4.1" - side-channel "^1.0.4" - string.prototype.matchall@^4.0.8: version "4.0.10" resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.10.tgz#a1553eb532221d4180c51581d6072cd65d1ee100" @@ -6901,7 +4792,7 @@ string.prototype.trim@^1.2.8: define-properties "^1.2.0" es-abstract "^1.22.1" -string.prototype.trimend@^1.0.5, string.prototype.trimend@^1.0.7: +string.prototype.trimend@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz#1bb3afc5008661d73e2dc015cd4853732d6c471e" integrity sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA== @@ -6910,7 +4801,7 @@ string.prototype.trimend@^1.0.5, string.prototype.trimend@^1.0.7: define-properties "^1.2.0" es-abstract "^1.22.1" -string.prototype.trimstart@^1.0.5, string.prototype.trimstart@^1.0.7: +string.prototype.trimstart@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz#d4cdb44b83a4737ffbac2d406e405d43d0184298" integrity sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg== @@ -6938,18 +4829,6 @@ strip-bom@^3.0.0: resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== -strip-final-newline@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" - integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== - -strip-indent@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" - integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== - dependencies: - min-indent "^1.0.0" - strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" @@ -6981,21 +4860,13 @@ supports-color@^5.3.0: dependencies: has-flag "^3.0.0" -supports-color@^7.0.0, supports-color@^7.1.0: +supports-color@^7.1.0: version "7.2.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== dependencies: has-flag "^4.0.0" -supports-hyperlinks@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz#4f77b42488765891774b70c79babd87f9bd594bb" - integrity sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ== - dependencies: - has-flag "^4.0.0" - supports-color "^7.0.0" - supports-preserve-symlinks-flag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" @@ -7012,11 +4883,6 @@ table@^6.0.9: string-width "^4.2.3" strip-ansi "^6.0.1" -tapable@^0.1.8: - version "0.1.10" - resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.1.10.tgz#29c35707c2b70e50d07482b5d202e8ed446dafd4" - integrity sha512-jX8Et4hHg57mug1/079yitEKWGB3LCwoxByLsNim89LABq8NqgiX+6iYVOsq0vX8uJHkU+DZ5fnq95f800bEsQ== - tapable@^2.2.0: version "2.2.1" resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" @@ -7058,39 +4924,11 @@ tinyqueue@^2.0.3: resolved "https://registry.yarnpkg.com/tinyqueue/-/tinyqueue-2.0.3.tgz#64d8492ebf39e7801d7bd34062e29b45b2035f08" integrity sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA== -to-absolute-glob@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz#1865f43d9e74b0822db9f145b78cff7d0f7c849b" - integrity sha512-rtwLUQEwT8ZeKQbyFJyomBRYXyE16U5VKuy0ftxLMK/PZb2fkOsg5r9kHdauuVDbsNdIBoC/HCthpidamQFXYA== - dependencies: - is-absolute "^1.0.0" - is-negated-glob "^1.0.0" - to-fast-properties@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - integrity sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg== - dependencies: - kind-of "^3.0.2" - -to-readable-stream@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/to-readable-stream/-/to-readable-stream-1.0.0.tgz#ce0aa0c2f3df6adf852efb404a783e77c0475771" - integrity sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q== - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - integrity sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg== - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" @@ -7098,16 +4936,6 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -to-regex@^3.0.1, to-regex@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" - integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - toidentifier@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" @@ -7123,26 +4951,11 @@ traverse@~0.6.6: resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.7.tgz#46961cd2d57dd8706c36664acde06a248f1173fe" integrity sha512-/y956gpUo9ZNCb99YjxG7OaslxZWHfCHAUUfshwqOXmxUIvqLjVO581BT+gM59+QV9tFe6/CGG53tsA1Y7RSdg== -trim-newlines@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144" - integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== - ts-api-utils@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331" integrity sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg== -tsconfig-paths@^3.14.1: - version "3.14.1" - resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz#ba0734599e8ea36c862798e920bcf163277b137a" - integrity sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ== - dependencies: - "@types/json5" "^0.0.29" - json5 "^1.0.1" - minimist "^1.2.6" - strip-bom "^3.0.0" - tsconfig-paths@^3.14.2: version "3.14.2" resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz#6e32f1f79412decd261f92d633a9dc1cfa99f088" @@ -7153,23 +4966,11 @@ tsconfig-paths@^3.14.2: minimist "^1.2.6" strip-bom "^3.0.0" -tslib@^1.8.1: - version "1.14.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== - tslib@^2.4.0: version "2.5.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== -tsutils@^3.21.0: - version "3.21.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" - integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== - dependencies: - tslib "^1.8.1" - tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" @@ -7189,36 +4990,11 @@ type-check@^0.4.0, type-check@~0.4.0: dependencies: prelude-ls "^1.2.1" -type-fest@^0.18.0: - version "0.18.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.18.1.tgz#db4bc151a4a2cf4eebf9add5db75508db6cc841f" - integrity sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw== - type-fest@^0.20.2: version "0.20.2" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== -type-fest@^0.21.3: - version "0.21.3" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" - integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== - -type-fest@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.4.1.tgz#8bdf77743385d8a4f13ba95f610f5ccd68c728f8" - integrity sha512-IwzA/LSfD2vC1/YDYMv/zHP4rDF1usCwllsDpbolT3D4fUepIO7f9K70jjmUewU/LmGUKJcwcVtDCpnKk4BPMw== - -type-fest@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" - integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== - -type-fest@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" - integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== - type-is@~1.6.18: version "1.6.18" resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" @@ -7266,17 +5042,10 @@ typed-array-length@^1.0.4: for-each "^0.3.3" is-typed-array "^1.1.9" -typedarray-to-buffer@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" - integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== - dependencies: - is-typedarray "^1.0.0" - -typescript@^4.2.4: - version "4.8.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.2.tgz#e3b33d5ccfb5914e4eeab6699cf208adee3fd790" - integrity sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw== +typescript@5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78" + integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w== typewise-core@^1.2, typewise-core@^1.2.0: version "1.2.0" @@ -7319,12 +5088,7 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" -unc-path-regex@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" - integrity sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg== - -union-value@^1.0.0, union-value@^1.0.1: +union-value@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== @@ -7334,13 +5098,6 @@ union-value@^1.0.0, union-value@^1.0.1: is-extendable "^0.1.1" set-value "^2.0.1" -unique-string@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d" - integrity sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg== - dependencies: - crypto-random-string "^2.0.0" - universalify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" @@ -7351,14 +5108,6 @@ unpipe@1.0.0, unpipe@~1.0.0: resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - integrity sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ== - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - update-browserslist-db@^1.0.10: version "1.0.10" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz#0f54b876545726f17d00cd9a2561e6dade943ff3" @@ -7367,34 +5116,6 @@ update-browserslist-db@^1.0.10: escalade "^3.1.1" picocolors "^1.0.0" -update-browserslist-db@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.5.tgz#be06a5eedd62f107b7c19eb5bcefb194411abf38" - integrity sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q== - dependencies: - escalade "^3.1.1" - picocolors "^1.0.0" - -update-notifier@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-5.1.0.tgz#4ab0d7c7f36a231dd7316cf7729313f0214d9ad9" - integrity sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw== - dependencies: - boxen "^5.0.0" - chalk "^4.1.0" - configstore "^5.0.1" - has-yarn "^2.1.0" - import-lazy "^2.1.0" - is-ci "^2.0.0" - is-installed-globally "^0.4.0" - is-npm "^5.0.0" - is-yarn-global "^0.3.0" - latest-version "^5.1.0" - pupa "^2.1.1" - semver "^7.3.4" - semver-diff "^3.1.1" - xdg-basedir "^4.0.0" - uri-js@^4.2.2: version "4.4.1" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" @@ -7402,28 +5123,11 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg== - -url-parse-lax@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c" - integrity sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ== - dependencies: - prepend-http "^2.0.0" - use-debounce@^9.0.4: version "9.0.4" resolved "https://registry.yarnpkg.com/use-debounce/-/use-debounce-9.0.4.tgz#51d25d856fbdfeb537553972ce3943b897f1ac85" integrity sha512-6X8H/mikbrt0XE8e+JXRtZ8yYVvKkdYRfmIhWZYsP8rcNs9hk3APV8Ua2mFkKRLcJKVdnX2/Vwrmg2GWKUQEaQ== -use@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" - integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== - util-deprecate@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" @@ -7444,14 +5148,6 @@ v8-compile-cache@^2.0.3: resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== -validate-npm-package-license@^3.0.1: - version "3.0.4" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" - integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== - dependencies: - spdx-correct "^3.0.0" - spdx-expression-parse "^3.0.0" - vary@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" @@ -7570,13 +5266,6 @@ which@^2.0.1: dependencies: isexe "^2.0.0" -widest-line@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca" - integrity sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg== - dependencies: - string-width "^4.0.0" - wkt-parser@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/wkt-parser/-/wkt-parser-1.3.2.tgz#deeff04a21edc5b170a60da418e9ed1d1ab0e219" @@ -7606,75 +5295,11 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== -write-file-atomic@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" - integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== - dependencies: - imurmurhash "^0.1.4" - is-typedarray "^1.0.0" - signal-exit "^3.0.2" - typedarray-to-buffer "^3.1.5" - ws@^7.3.1: version "7.5.9" resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591" integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== -xdg-basedir@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13" - integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q== - -xo@^0.39.1: - version "0.39.1" - resolved "https://registry.yarnpkg.com/xo/-/xo-0.39.1.tgz#02cda4d77651548edcc27f1aa6c929c7390132be" - integrity sha512-7OXtjkIfCMw3XfUPGInnUhxb/w/IHqATQM7XHOxwiJqbsQ44OYcLkTZb7mA35tDtqflnvWk88wD+IxiR/XJ5gQ== - dependencies: - "@typescript-eslint/eslint-plugin" "^4.22.0" - "@typescript-eslint/parser" "^4.22.0" - arrify "^2.0.1" - cosmiconfig "^7.0.0" - debug "^4.3.1" - eslint "^7.24.0" - eslint-config-prettier "^8.2.0" - eslint-config-xo "^0.36.0" - eslint-config-xo-typescript "^0.39.0" - eslint-formatter-pretty "^4.0.0" - eslint-import-resolver-webpack "^0.13.0" - eslint-plugin-ava "^12.0.0" - eslint-plugin-eslint-comments "^3.2.0" - eslint-plugin-import "^2.22.1" - eslint-plugin-no-use-extend-native "^0.5.0" - eslint-plugin-node "^11.1.0" - eslint-plugin-prettier "^3.4.0" - eslint-plugin-promise "^5.1.0" - eslint-plugin-unicorn "^30.0.0" - find-cache-dir "^3.3.1" - find-up "^5.0.0" - fs-extra "^9.1.0" - get-stdin "^8.0.0" - globby "^9.2.0" - has-flag "^4.0.0" - imurmurhash "^0.1.4" - is-path-inside "^3.0.3" - json-stable-stringify-without-jsonify "^1.0.1" - json5 "^2.2.0" - lodash "^4.17.21" - meow "^9.0.0" - micromatch "^4.0.4" - open-editor "^3.0.0" - p-reduce "^2.1.0" - path-exists "^4.0.0" - prettier "^2.2.1" - resolve-cwd "^3.0.0" - resolve-from "^5.0.0" - semver "^7.3.5" - slash "^3.0.0" - to-absolute-glob "^2.0.2" - typescript "^4.2.4" - update-notifier "^5.1.0" - xtend@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" @@ -7695,16 +5320,6 @@ yallist@^4.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yaml@^1.10.0: - version "1.10.2" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" - integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== - -yargs-parser@^20.2.3: - version "20.2.9" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" - integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== - yargs-parser@^21.0.0: version "21.1.1" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" @@ -7723,11 +5338,6 @@ yargs@^17.5.1: y18n "^5.0.5" yargs-parser "^21.0.0" -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== - zod@3.21.4: version "3.21.4" resolved "https://registry.yarnpkg.com/zod/-/zod-3.21.4.tgz#10882231d992519f0a10b5dd58a38c9dabbb64db" From 5e5324e6a3f729f6e4074574231c6a25a82d20b6 Mon Sep 17 00:00:00 2001 From: Guillaume Fay Date: Tue, 21 Nov 2023 14:20:51 +0100 Subject: [PATCH 18/20] fix linter errors --- .../habilitation-process/strategy-selection/code-email.js | 4 ++-- components/habilitation-process/strategy-selection/index.js | 2 +- components/settings/bal-settings-form.js | 2 +- components/table-row/table-row-actions.js | 2 +- .../trash/table-row-deleted/table-row-action-deleted.js | 2 +- package.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/habilitation-process/strategy-selection/code-email.js b/components/habilitation-process/strategy-selection/code-email.js index 5b46c9f1a..8bcaf7c86 100644 --- a/components/habilitation-process/strategy-selection/code-email.js +++ b/components/habilitation-process/strategy-selection/code-email.js @@ -9,13 +9,13 @@ function isEmail(email) { return regexp.test(String(email).toLowerCase()) } -const AnnuaireServicePublic = React.memo(() => ( +const AnnuaireServicePublic = React.memo(function AnnuaireServicePublic () { Rendez vous sur lannuaire.service-public.fr Consultez la fiche annuaire de votre commune Cliquer sur le lien «Demander une mise à jour de cette page», visible en bas de page -)) +}) function CodeEmail({emailCommune, handleStrategy}) { const isValidEmail = isEmail(emailCommune) diff --git a/components/habilitation-process/strategy-selection/index.js b/components/habilitation-process/strategy-selection/index.js index 6fe025f89..11412f280 100644 --- a/components/habilitation-process/strategy-selection/index.js +++ b/components/habilitation-process/strategy-selection/index.js @@ -5,7 +5,7 @@ import {Pane, Strong, Alert, Text, Heading, PeopleIcon, TimeIcon, LogInIcon, Uno import FranceConnect from '@/components/habilitation-process/strategy-selection/france-connect' import CodeEmail from '@/components/habilitation-process/strategy-selection/code-email' -const StrategySelection = React.memo(({franceconnectAuthenticationUrl, emailCommune, handleStrategy}) => { +const StrategySelection = React.memo(function StrategySelection({franceconnectAuthenticationUrl, emailCommune, handleStrategy}) { const [hovered, setHovered] = useState() return ( diff --git a/components/settings/bal-settings-form.js b/components/settings/bal-settings-form.js index 8c050b957..3f66dd3aa 100644 --- a/components/settings/bal-settings-form.js +++ b/components/settings/bal-settings-form.js @@ -30,7 +30,7 @@ const mailHasChanged = (listA, listB) => { return !isEqual([...listA].sort(), [...listB].sort()) } -const BALSettingsForm = React.memo(({baseLocale}) => { +const BALSettingsForm = React.memo(function BALSettingsForm({baseLocale}) { const {token, emails, reloadEmails} = useContext(TokenContext) const {reloadBaseLocale} = useContext(BalDataContext) diff --git a/components/table-row/table-row-actions.js b/components/table-row/table-row-actions.js index 39a795e91..6d70d26de 100644 --- a/components/table-row/table-row-actions.js +++ b/components/table-row/table-row-actions.js @@ -2,7 +2,7 @@ import React from 'react' import PropTypes from 'prop-types' import {Table, Popover, Menu, Position, IconButton, EditIcon, MoreIcon, SendToMapIcon, TrashIcon} from 'evergreen-ui' -const TableRowActions = React.memo(({onSelect, onEdit, onRemove, extra}) => { +const TableRowActions = React.memo(function TableRowActions({onSelect, onEdit, onRemove, extra}) { return ( { +const TableRowActions = React.memo(function TableRowActions({actions}) { return ( Date: Tue, 21 Nov 2023 14:31:21 +0100 Subject: [PATCH 19/20] fix add public env var to CI --- .github/workflows/node.js.yml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 506a680cb..a495c3bc9 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -2,13 +2,21 @@ name: Node.js CI on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] + +env: + NEXT_PUBLIC_EDITEUR_URL: https://mes-adresses.data.gouv.fr + NEXT_PUBLIC_BAL_API_URL: https://api-bal.adresse.data.gouv.fr/v1 + NEXT_PUBLIC_MES_ADRESSES_API_URL: https://api-bal.adresse.data.gouv.fr/ + NEXT_PUBLIC_GEO_API_URL: https://geo.api.gouv.fr + NEXT_PUBLIC_ADRESSE_URL: https://adresse.data.gouv.fr + NEXT_PUBLIC_API_BAN_URL: https://plateforme.adresse.data.gouv.fr + NEXT_PUBLIC_BAN_API_DEPOT: https://plateforme-bal.adresse.data.gouv.fr/api-depot jobs: build: - runs-on: ubuntu-latest strategy: @@ -16,11 +24,11 @@ jobs: node-version: [16.x] steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: yarn - - run: yarn lint - - run: yarn build + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: yarn + - run: yarn lint + - run: yarn build From 56d638b01ce1d29c26dd32508fe43fe12b0c6162 Mon Sep 17 00:00:00 2001 From: Guillaume Fay Date: Fri, 24 Nov 2023 17:12:26 +0100 Subject: [PATCH 20/20] fix css index page --- components/user-bases-locales.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/user-bases-locales.js b/components/user-bases-locales.js index 507942008..602f4b445 100644 --- a/components/user-bases-locales.js +++ b/components/user-bases-locales.js @@ -53,7 +53,7 @@ function UserBasesLocales() { } return ( - + {basesLocales.length > 0 ? ( ) : (