-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore!: make integrations stop to use query param (#33558)
Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
- Loading branch information
1 parent
f4ea653
commit 4ae1773
Showing
6 changed files
with
60 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
packages/rest-typings/src/v1/integrations/IntegrationsListProps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import Ajv from 'ajv'; | ||
|
||
import type { PaginatedRequest } from '../../helpers/PaginatedRequest'; | ||
|
||
const ajv = new Ajv(); | ||
|
||
export type IntegrationsListProps = PaginatedRequest<{ name?: string; type?: string; query?: string }>; | ||
|
||
const integrationsListSchema = { | ||
type: 'object', | ||
properties: { | ||
count: { | ||
type: ['number', 'string'], | ||
nullable: true, | ||
}, | ||
offset: { | ||
type: ['number', 'string'], | ||
nullable: true, | ||
}, | ||
sort: { | ||
type: 'string', | ||
nullable: true, | ||
}, | ||
name: { | ||
type: 'string', | ||
nullable: true, | ||
}, | ||
type: { | ||
type: 'string', | ||
nullable: true, | ||
}, | ||
query: { | ||
type: 'string', | ||
nullable: true, | ||
}, | ||
}, | ||
required: [], | ||
additionalProperties: false, | ||
}; | ||
|
||
export const isIntegrationsListProps = ajv.compile<IntegrationsListProps>(integrationsListSchema); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters