-
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.
implement endpoint for project tiles in comm district
implement findCapitalProjectTilesByBoroughIdCommunityDistrictId closes #364
- Loading branch information
1 parent
259e199
commit 20050c2
Showing
13 changed files
with
374 additions
and
3 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
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
53 changes: 53 additions & 0 deletions
53
src/gen/types/FindCapitalProjectTilesByBoroughIdCommunityDistrictId.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,53 @@ | ||
import type { Error } from "./Error"; | ||
|
||
export type FindCapitalProjectTilesByBoroughIdCommunityDistrictIdPathParams = { | ||
/** | ||
* @description A single character numeric string containing the common number used to refer to the borough. Possible values are 1-5. | ||
* @type string | ||
*/ | ||
boroughId: string; | ||
/** | ||
* @description The two character numeric string containing the number used to refer to the community district. | ||
* @type string | ||
*/ | ||
communityDistrictId: string; | ||
/** | ||
* @description viewport zoom component | ||
* @type integer | ||
*/ | ||
z: number; | ||
/** | ||
* @description viewport x component | ||
* @type integer | ||
*/ | ||
x: number; | ||
/** | ||
* @description viewport y component | ||
* @type integer | ||
*/ | ||
y: number; | ||
}; | ||
/** | ||
* @description A protobuf file formatted as Mapbox Vector Tile | ||
*/ | ||
export type FindCapitalProjectTilesByBoroughIdCommunityDistrictId200 = string; | ||
/** | ||
* @description Invalid client request | ||
*/ | ||
export type FindCapitalProjectTilesByBoroughIdCommunityDistrictId400 = Error; | ||
/** | ||
* @description Server side error | ||
*/ | ||
export type FindCapitalProjectTilesByBoroughIdCommunityDistrictId500 = Error; | ||
/** | ||
* @description A protobuf file formatted as Mapbox Vector Tile | ||
*/ | ||
export type FindCapitalProjectTilesByBoroughIdCommunityDistrictIdQueryResponse = | ||
string; | ||
export type FindCapitalProjectTilesByBoroughIdCommunityDistrictIdQuery = { | ||
Response: FindCapitalProjectTilesByBoroughIdCommunityDistrictIdQueryResponse; | ||
PathParams: FindCapitalProjectTilesByBoroughIdCommunityDistrictIdPathParams; | ||
Errors: | ||
| FindCapitalProjectTilesByBoroughIdCommunityDistrictId400 | ||
| FindCapitalProjectTilesByBoroughIdCommunityDistrictId500; | ||
}; |
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
src/gen/zod/findCapitalProjectTilesByBoroughIdCommunityDistrictIdSchema.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 { z } from "zod"; | ||
import { errorSchema } from "./errorSchema"; | ||
|
||
export const findCapitalProjectTilesByBoroughIdCommunityDistrictIdPathParamsSchema = | ||
z.object({ | ||
boroughId: z.coerce | ||
.string() | ||
.regex(new RegExp("^([0-9]{1})$")) | ||
.describe( | ||
"A single character numeric string containing the common number used to refer to the borough. Possible values are 1-5.", | ||
), | ||
communityDistrictId: z.coerce | ||
.string() | ||
.regex(new RegExp("^([0-9]{2})$")) | ||
.describe( | ||
"The two character numeric string containing the number used to refer to the community district.", | ||
), | ||
z: z.coerce.number().describe("viewport zoom component"), | ||
x: z.coerce.number().describe("viewport x component"), | ||
y: z.coerce.number().describe("viewport y component"), | ||
}); | ||
/** | ||
* @description A protobuf file formatted as Mapbox Vector Tile | ||
*/ | ||
export const findCapitalProjectTilesByBoroughIdCommunityDistrictId200Schema = | ||
z.coerce.string(); | ||
/** | ||
* @description Invalid client request | ||
*/ | ||
export const findCapitalProjectTilesByBoroughIdCommunityDistrictId400Schema = | ||
z.lazy(() => errorSchema); | ||
/** | ||
* @description Server side error | ||
*/ | ||
export const findCapitalProjectTilesByBoroughIdCommunityDistrictId500Schema = | ||
z.lazy(() => errorSchema); | ||
/** | ||
* @description A protobuf file formatted as Mapbox Vector Tile | ||
*/ | ||
export const findCapitalProjectTilesByBoroughIdCommunityDistrictIdQueryResponseSchema = | ||
z.coerce.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
Oops, something went wrong.