Skip to content

Commit

Permalink
chore: add events api types
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Sep 13, 2024
1 parent 3923a23 commit b490da7
Show file tree
Hide file tree
Showing 6 changed files with 1,044 additions and 0 deletions.
22 changes: 22 additions & 0 deletions orval.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
import { defineConfig } from 'orval'

export default defineConfig({
events: {
input: {
target: 'https://api.innohassle.ru/events/staging-v0/openapi.json',
},
output: {
mode: 'single',
target: './src/shared/innohassle-api/events/__generated__.ts',
client: 'axios',
override: {
mutator: {
path: './src/shared/innohassle-api/events/axios.ts',
name: 'eventsQueryPromise',
},
},
},
hooks: {
afterAllFilesWrite: {
command: 'pnpm run lint:fix:generated',
injectGeneratedDirsAndFiles: false,
},
},
},
search: {
input: {
target: 'https://api.innohassle.ru/search/staging-v0/openapi.json',
Expand Down
1 change: 1 addition & 0 deletions src/shared/config/innohassle.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const INNOHASSLE_ACCOUNTS_URL = 'https://api.innohassle.ru/accounts/v0'
export const INNOHASSLE_ACCOUNTS_TOKEN_URL = `${INNOHASSLE_ACCOUNTS_URL}/tokens/generate-my-token`
export const INNOHASSLE_SEARCH_URL = 'https://api.innohassle.ru/search/staging-v0'
export const INNOHASSLE_EVENTS_URL = 'https://api.innohassle.ru/events/v0'
Loading

0 comments on commit b490da7

Please sign in to comment.