-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenAPI Implementation: CommunityDisctrict schema
- update the pattern for the CD schema - regenerate src/gen files Closes #307
- Loading branch information
1 parent
8ca1900
commit 0a545f1
Showing
20 changed files
with
332 additions
and
4 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
34 changes: 34 additions & 0 deletions
34
src/gen/types/FindCapitalCommitmentsByManagingCodeCapitalProjectId.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,34 @@ | ||
import type { Error } from "./Error"; | ||
import type { CapitalCommitment } from "./CapitalCommitment"; | ||
|
||
export type FindCapitalCommitmentsByManagingCodeCapitalProjectIdPathParams = { | ||
/** | ||
* @description Three character string of numbers representing managing agency | ||
* @type string | ||
* @example 801 | ||
*/ | ||
managingCode: string; | ||
/** | ||
* @description The id for the project, which combines with the managing code to make a unique id | ||
* @type string | ||
* @example HWPEDSF5 | ||
*/ | ||
capitalProjectId: string; | ||
}; | ||
|
||
export type FindCapitalCommitmentsByManagingCodeCapitalProjectId400 = Error; | ||
|
||
export type FindCapitalCommitmentsByManagingCodeCapitalProjectId404 = Error; | ||
|
||
export type FindCapitalCommitmentsByManagingCodeCapitalProjectId500 = Error; | ||
|
||
/** | ||
* @description an object of capital commitments for the capital project | ||
*/ | ||
export type FindCapitalCommitmentsByManagingCodeCapitalProjectIdQueryResponse = | ||
{ | ||
/** | ||
* @type array | ||
*/ | ||
capitalCommitments: CapitalCommitment[]; | ||
}; |
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,28 @@ | ||
import type { Error } from "./Error"; | ||
|
||
export type FindCapitalProjectTilesPathParams = { | ||
/** | ||
* @description viewport zoom component | ||
* @type integer | ||
* @example 7 | ||
*/ | ||
z: number; | ||
/** | ||
* @description viewport x component | ||
* @type integer | ||
* @example 1000 | ||
*/ | ||
x: number; | ||
/** | ||
* @description viewport y component | ||
* @type integer | ||
* @example 1000 | ||
*/ | ||
y: number; | ||
}; | ||
|
||
export type FindCapitalProjectTilesQueryResponse = any | null; | ||
|
||
export type FindCapitalProjectTiles400 = Error; | ||
|
||
export type FindCapitalProjectTiles500 = Error; |
29 changes: 29 additions & 0 deletions
29
src/gen/types/FindCapitalProjectsByBoroughIdCommunityDistrictId.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,29 @@ | ||
import type { Error } from "./Error"; | ||
import type { CapitalProjectPage } from "./CapitalProjectPage"; | ||
|
||
export type FindCapitalProjectsByBoroughIdCommunityDistrictIdPathParams = { | ||
/** | ||
* @description A single character numeric string containing the common number used to refer to the borough. Possible values are 1-5. | ||
* @type string | ||
* @example 1 | ||
*/ | ||
boroughId: string; | ||
/** | ||
* @description The two character numeric string containing the number used to refer to the community district. | ||
* @type string | ||
* @example 01 | ||
*/ | ||
communityDistrictId: string; | ||
}; | ||
|
||
export type FindCapitalProjectsByBoroughIdCommunityDistrictId400 = Error; | ||
|
||
export type FindCapitalProjectsByBoroughIdCommunityDistrictId404 = Error; | ||
|
||
export type FindCapitalProjectsByBoroughIdCommunityDistrictId500 = Error; | ||
|
||
/** | ||
* @description An object containing pagination metadata and an array of capital projects for the community district | ||
*/ | ||
export type FindCapitalProjectsByBoroughIdCommunityDistrictIdQueryResponse = | ||
CapitalProjectPage; |
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,23 @@ | ||
import type { Error } from "./Error"; | ||
import type { CapitalProjectPage } from "./CapitalProjectPage"; | ||
|
||
export type FindCapitalProjectsByCityCouncilIdPathParams = { | ||
/** | ||
* @description One or two character code to represent city council districts. | ||
* @type string | ||
* @example 25 | ||
*/ | ||
cityCouncilDistrictId: string; | ||
}; | ||
|
||
export type FindCapitalProjectsByCityCouncilId400 = Error; | ||
|
||
export type FindCapitalProjectsByCityCouncilId404 = Error; | ||
|
||
export type FindCapitalProjectsByCityCouncilId500 = Error; | ||
|
||
/** | ||
* @description An object containing pagination metadata and an array of capital projects for the city council district | ||
*/ | ||
export type FindCapitalProjectsByCityCouncilIdQueryResponse = | ||
CapitalProjectPage; |
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,28 @@ | ||
import type { Error } from "./Error"; | ||
|
||
export type FindCityCouncilDistrictTilesPathParams = { | ||
/** | ||
* @description viewport zoom component | ||
* @type integer | ||
* @example 7 | ||
*/ | ||
z: number; | ||
/** | ||
* @description viewport x component | ||
* @type integer | ||
* @example 1000 | ||
*/ | ||
x: number; | ||
/** | ||
* @description viewport y component | ||
* @type integer | ||
* @example 1000 | ||
*/ | ||
y: number; | ||
}; | ||
|
||
export type FindCityCouncilDistrictTilesQueryResponse = any | null; | ||
|
||
export type FindCityCouncilDistrictTiles400 = Error; | ||
|
||
export type FindCityCouncilDistrictTiles500 = Error; |
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,28 @@ | ||
import type { Error } from "./Error"; | ||
|
||
export type FindCommunityDistrictTilesPathParams = { | ||
/** | ||
* @description viewport zoom component | ||
* @type integer | ||
* @example 7 | ||
*/ | ||
z: number; | ||
/** | ||
* @description viewport x component | ||
* @type integer | ||
* @example 1000 | ||
*/ | ||
x: number; | ||
/** | ||
* @description viewport y component | ||
* @type integer | ||
* @example 1000 | ||
*/ | ||
y: number; | ||
}; | ||
|
||
export type FindCommunityDistrictTilesQueryResponse = any | null; | ||
|
||
export type FindCommunityDistrictTiles400 = Error; | ||
|
||
export type FindCommunityDistrictTiles500 = Error; |
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 @@ | ||
export type Mvt = string; |
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
33 changes: 33 additions & 0 deletions
33
src/gen/zod/findCapitalCommitmentsByManagingCodeCapitalProjectIdSchema.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,33 @@ | ||
import { z } from "zod"; | ||
|
||
import { errorSchema } from "./errorSchema"; | ||
import { capitalCommitmentSchema } from "./capitalCommitmentSchema"; | ||
|
||
export const findCapitalCommitmentsByManagingCodeCapitalProjectIdPathParamsSchema = | ||
z.object({ | ||
managingCode: z | ||
.string() | ||
.describe( | ||
`Three character string of numbers representing managing agency`, | ||
) | ||
.regex(new RegExp("^([0-9]{3})$")), | ||
capitalProjectId: z | ||
.string() | ||
.describe( | ||
`The id for the project, which combines with the managing code to make a unique id`, | ||
), | ||
}); | ||
export const findCapitalCommitmentsByManagingCodeCapitalProjectId400Schema = | ||
z.lazy(() => errorSchema).schema; | ||
export const findCapitalCommitmentsByManagingCodeCapitalProjectId404Schema = | ||
z.lazy(() => errorSchema).schema; | ||
export const findCapitalCommitmentsByManagingCodeCapitalProjectId500Schema = | ||
z.lazy(() => errorSchema).schema; | ||
|
||
/** | ||
* @description an object of capital commitments for the capital project | ||
*/ | ||
export const findCapitalCommitmentsByManagingCodeCapitalProjectIdQueryResponseSchema = | ||
z.object({ | ||
capitalCommitments: z.array(z.lazy(() => capitalCommitmentSchema).schema), | ||
}); |
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,16 @@ | ||
import { z } from "zod"; | ||
|
||
import { errorSchema } from "./errorSchema"; | ||
|
||
export const findCapitalProjectTilesPathParamsSchema = z.object({ | ||
z: z.number().describe(`viewport zoom component`), | ||
x: z.number().describe(`viewport x component`), | ||
y: z.number().describe(`viewport y component`), | ||
}); | ||
export const findCapitalProjectTilesQueryResponseSchema = z.any(); | ||
export const findCapitalProjectTiles400Schema = z.lazy( | ||
() => errorSchema, | ||
).schema; | ||
export const findCapitalProjectTiles500Schema = z.lazy( | ||
() => errorSchema, | ||
).schema; |
32 changes: 32 additions & 0 deletions
32
src/gen/zod/findCapitalProjectsByBoroughIdCommunityDistrictIdSchema.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,32 @@ | ||
import { z } from "zod"; | ||
|
||
import { errorSchema } from "./errorSchema"; | ||
import { capitalProjectPageSchema } from "./capitalProjectPageSchema"; | ||
|
||
export const findCapitalProjectsByBoroughIdCommunityDistrictIdPathParamsSchema = | ||
z.object({ | ||
boroughId: z | ||
.string() | ||
.describe( | ||
`A single character numeric string containing the common number used to refer to the borough. Possible values are 1-5.`, | ||
) | ||
.regex(new RegExp("^([0-9]{1})$")), | ||
communityDistrictId: z | ||
.string() | ||
.describe( | ||
`The two character numeric string containing the number used to refer to the community district.`, | ||
) | ||
.regex(new RegExp("^([0-9]{2})$")), | ||
}); | ||
export const findCapitalProjectsByBoroughIdCommunityDistrictId400Schema = | ||
z.lazy(() => errorSchema).schema; | ||
export const findCapitalProjectsByBoroughIdCommunityDistrictId404Schema = | ||
z.lazy(() => errorSchema).schema; | ||
export const findCapitalProjectsByBoroughIdCommunityDistrictId500Schema = | ||
z.lazy(() => errorSchema).schema; | ||
|
||
/** | ||
* @description An object containing pagination metadata and an array of capital projects for the community district | ||
*/ | ||
export const findCapitalProjectsByBoroughIdCommunityDistrictIdQueryResponseSchema = | ||
z.lazy(() => capitalProjectPageSchema).schema; |
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,27 @@ | ||
import { z } from "zod"; | ||
|
||
import { errorSchema } from "./errorSchema"; | ||
import { capitalProjectPageSchema } from "./capitalProjectPageSchema"; | ||
|
||
export const findCapitalProjectsByCityCouncilIdPathParamsSchema = z.object({ | ||
cityCouncilDistrictId: z | ||
.string() | ||
.describe(`One or two character code to represent city council districts.`) | ||
.regex(new RegExp("^([0-9]{1,2})$")), | ||
}); | ||
export const findCapitalProjectsByCityCouncilId400Schema = z.lazy( | ||
() => errorSchema, | ||
).schema; | ||
export const findCapitalProjectsByCityCouncilId404Schema = z.lazy( | ||
() => errorSchema, | ||
).schema; | ||
export const findCapitalProjectsByCityCouncilId500Schema = z.lazy( | ||
() => errorSchema, | ||
).schema; | ||
|
||
/** | ||
* @description An object containing pagination metadata and an array of capital projects for the city council district | ||
*/ | ||
export const findCapitalProjectsByCityCouncilIdQueryResponseSchema = z.lazy( | ||
() => capitalProjectPageSchema, | ||
).schema; |
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,16 @@ | ||
import { z } from "zod"; | ||
|
||
import { errorSchema } from "./errorSchema"; | ||
|
||
export const findCityCouncilDistrictTilesPathParamsSchema = z.object({ | ||
z: z.number().describe(`viewport zoom component`), | ||
x: z.number().describe(`viewport x component`), | ||
y: z.number().describe(`viewport y component`), | ||
}); | ||
export const findCityCouncilDistrictTilesQueryResponseSchema = z.any(); | ||
export const findCityCouncilDistrictTiles400Schema = z.lazy( | ||
() => errorSchema, | ||
).schema; | ||
export const findCityCouncilDistrictTiles500Schema = z.lazy( | ||
() => errorSchema, | ||
).schema; |
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,16 @@ | ||
import { z } from "zod"; | ||
|
||
import { errorSchema } from "./errorSchema"; | ||
|
||
export const findCommunityDistrictTilesPathParamsSchema = z.object({ | ||
z: z.number().describe(`viewport zoom component`), | ||
x: z.number().describe(`viewport x component`), | ||
y: z.number().describe(`viewport y component`), | ||
}); | ||
export const findCommunityDistrictTilesQueryResponseSchema = z.any(); | ||
export const findCommunityDistrictTiles400Schema = z.lazy( | ||
() => errorSchema, | ||
).schema; | ||
export const findCommunityDistrictTiles500Schema = z.lazy( | ||
() => errorSchema, | ||
).schema; |
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
Oops, something went wrong.