Skip to content

Commit

Permalink
Regenerate types and schemas
Browse files Browse the repository at this point in the history
- Add 'order' to capital project responses
- Add oxford comma to capital project category type
- Add integer specifier to zod schemas

closes #130
  • Loading branch information
TangoYankee committed Jan 13, 2025
1 parent f54376e commit 35c5731
Show file tree
Hide file tree
Showing 57 changed files with 165 additions and 65 deletions.
2 changes: 1 addition & 1 deletion app/gen/mocks/createCapitalProjectCategory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export function createCapitalProjectCategory(): NonNullable<CapitalProjectCatego
return faker.helpers.arrayElement<any>([
"Fixed Asset",
"Lump Sum",
"ITT, Vehicles and Equipment",
"ITT, Vehicles, and Equipment",
]);
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export function createFindCapitalCommitmentsByManagingCodeCapitalProjectId200():
capitalCommitments: faker.helpers.arrayElements([
createCapitalCommitment(),
]) as any,
order: faker.string.alpha(),
};
}

Expand Down Expand Up @@ -61,5 +62,6 @@ export function createFindCapitalCommitmentsByManagingCodeCapitalProjectIdQueryR
capitalCommitments: faker.helpers.arrayElements([
createCapitalCommitment(),
]) as any,
order: faker.string.alpha(),
};
}
2 changes: 2 additions & 0 deletions app/gen/mocks/createFindCityCouncilDistricts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export function createFindCityCouncilDistricts200(): NonNullable<FindCityCouncil
cityCouncilDistricts: faker.helpers.arrayElements([
createCityCouncilDistrict(),
]) as any,
order: faker.string.alpha(),
};
}

Expand All @@ -42,5 +43,6 @@ export function createFindCityCouncilDistrictsQueryResponse(): NonNullable<FindC
cityCouncilDistricts: faker.helpers.arrayElements([
createCityCouncilDistrict(),
]) as any,
order: faker.string.alpha(),
};
}
2 changes: 2 additions & 0 deletions app/gen/mocks/createFindCommunityDistrictsByBoroughId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function createFindCommunityDistrictsByBoroughId200(): NonNullable<FindCo
communityDistricts: faker.helpers.arrayElements([
createCommunityDistrict(),
]) as any,
order: faker.string.alpha(),
};
}

Expand Down Expand Up @@ -60,5 +61,6 @@ export function createFindCommunityDistrictsByBoroughIdQueryResponse(): NonNulla
communityDistricts: faker.helpers.arrayElements([
createCommunityDistrict(),
]) as any,
order: faker.string.alpha(),
};
}
2 changes: 1 addition & 1 deletion app/gen/types/BadRequest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { Error } from "./Error";
import type { Error } from "./Error";

export type BadRequest = Error;
5 changes: 4 additions & 1 deletion app/gen/types/CapitalProject.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CapitalProjectCategory } from "./CapitalProjectCategory";
import type { CapitalProjectCategory } from "./CapitalProjectCategory";

export type CapitalProject = {
/**
Expand Down Expand Up @@ -31,5 +31,8 @@ export type CapitalProject = {
* @type string, date
*/
maxDate: string;
/**
* @type string
*/
category: CapitalProjectCategory | null;
};
2 changes: 1 addition & 1 deletion app/gen/types/CapitalProjectBudgeted.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CapitalProject } from "./CapitalProject";
import type { CapitalProject } from "./CapitalProject";

export type CapitalProjectBudgeted = CapitalProject & {
/**
Expand Down
6 changes: 3 additions & 3 deletions app/gen/types/CapitalProjectBudgetedGeoJson.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MultiPoint } from "./MultiPoint";
import { MultiPolygon } from "./MultiPolygon";
import { CapitalProjectBudgeted } from "./CapitalProjectBudgeted";
import type { MultiPoint } from "./MultiPoint";
import type { MultiPolygon } from "./MultiPolygon";
import type { CapitalProjectBudgeted } from "./CapitalProjectBudgeted";

export const capitalProjectBudgetedGeoJsonType = {
Feature: "Feature",
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/CapitalProjectCategory.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const capitalProjectCategory = {
"Fixed Asset": "Fixed Asset",
"Lump Sum": "Lump Sum",
"ITT, Vehicles and Equipment": "ITT, Vehicles and Equipment",
"ITT, Vehicles, and Equipment": "ITT, Vehicles, and Equipment",
} as const;
export type CapitalProjectCategory =
(typeof capitalProjectCategory)[keyof typeof capitalProjectCategory];
4 changes: 2 additions & 2 deletions app/gen/types/CapitalProjectPage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Page } from "./Page";
import { CapitalProject } from "./CapitalProject";
import type { Page } from "./Page";
import type { CapitalProject } from "./CapitalProject";

export type CapitalProjectPage = Page & {
/**
Expand Down
10 changes: 8 additions & 2 deletions app/gen/types/CityCouncilDistrictGeoJson.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CityCouncilDistrict } from "./CityCouncilDistrict";
import { MultiPolygon } from "./MultiPolygon";
import type { CityCouncilDistrict } from "./CityCouncilDistrict";
import type { MultiPolygon } from "./MultiPolygon";

export const cityCouncilDistrictGeoJsonType = {
Feature: "Feature",
Expand All @@ -16,6 +16,12 @@ export type CityCouncilDistrictGeoJson = {
* @type string
*/
type: CityCouncilDistrictGeoJsonType;
/**
* @type object
*/
properties: CityCouncilDistrict;
/**
* @type object
*/
geometry: MultiPolygon;
};
10 changes: 8 additions & 2 deletions app/gen/types/CommunityDistrictGeoJson.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommunityDistrict } from "./CommunityDistrict";
import { MultiPolygon } from "./MultiPolygon";
import type { CommunityDistrict } from "./CommunityDistrict";
import type { MultiPolygon } from "./MultiPolygon";

export const communityDistrictGeoJsonType = {
Feature: "Feature",
Expand All @@ -16,6 +16,12 @@ export type CommunityDistrictGeoJson = {
* @type string
*/
type: CommunityDistrictGeoJsonType;
/**
* @type object
*/
properties: CommunityDistrict;
/**
* @type object
*/
geometry: MultiPolygon;
};
2 changes: 1 addition & 1 deletion app/gen/types/FindAgencies.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { Agency } from "./Agency";
import type { Error } from "./Error";

/**
* @description An object containing all agencies.
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/FindBoroughs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { Borough } from "./Borough";
import type { Error } from "./Error";

/**
* @description An object containing all boroughs.
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/FindCapitalCommitmentTypes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { CapitalCommitmentType } from "./CapitalCommitmentType";
import type { Error } from "./Error";

/**
* @description An object containing all capital commitment types.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { CapitalCommitment } from "./CapitalCommitment";
import type { Error } from "./Error";

export type FindCapitalCommitmentsByManagingCodeCapitalProjectIdPathParams = {
/**
Expand All @@ -21,6 +21,11 @@ export type FindCapitalCommitmentsByManagingCodeCapitalProjectId200 = {
* @type array
*/
capitalCommitments: CapitalCommitment[];
/**
* @description Capital commitment dates are sorted in ascending order
* @type string
*/
order: string;
};
/**
* @description Invalid client request
Expand All @@ -43,6 +48,11 @@ export type FindCapitalCommitmentsByManagingCodeCapitalProjectIdQueryResponse =
* @type array
*/
capitalCommitments: CapitalCommitment[];
/**
* @description Capital commitment dates are sorted in ascending order
* @type string
*/
order: string;
};
export type FindCapitalCommitmentsByManagingCodeCapitalProjectIdQuery = {
Response: FindCapitalCommitmentsByManagingCodeCapitalProjectIdQueryResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { CapitalProjectBudgeted } from "./CapitalProjectBudgeted";
import type { Error } from "./Error";

export type FindCapitalProjectByManagingCodeCapitalProjectIdPathParams = {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { CapitalProjectBudgetedGeoJson } from "./CapitalProjectBudgetedGeoJson";
import type { Error } from "./Error";

export type FindCapitalProjectGeoJsonByManagingCodeCapitalProjectIdPathParams =
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { CapitalProjectPage } from "./CapitalProjectPage";
import type { Error } from "./Error";

export type FindCapitalProjectsByBoroughIdCommunityDistrictIdPathParams = {
/**
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/FindCapitalProjectsByCityCouncilId.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { CapitalProjectPage } from "./CapitalProjectPage";
import type { Error } from "./Error";

export type FindCapitalProjectsByCityCouncilIdPathParams = {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { CityCouncilDistrictGeoJson } from "./CityCouncilDistrictGeoJson";
import type { Error } from "./Error";

export type FindCityCouncilDistrictGeoJsonByCityCouncilDistrictIdPathParams = {
/**
Expand Down
12 changes: 11 additions & 1 deletion app/gen/types/FindCityCouncilDistricts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { CityCouncilDistrict } from "./CityCouncilDistrict";
import type { Error } from "./Error";

/**
* @description an object of city council districts
Expand All @@ -9,6 +9,11 @@ export type FindCityCouncilDistricts200 = {
* @type array
*/
cityCouncilDistricts: CityCouncilDistrict[];
/**
* @description City council districts ids are sorted as if numbers in ascending order
* @type string
*/
order: string;
};
/**
* @description Invalid client request
Expand All @@ -26,6 +31,11 @@ export type FindCityCouncilDistrictsQueryResponse = {
* @type array
*/
cityCouncilDistricts: CityCouncilDistrict[];
/**
* @description City council districts ids are sorted as if numbers in ascending order
* @type string
*/
order: string;
};
export type FindCityCouncilDistrictsQuery = {
Response: FindCityCouncilDistrictsQueryResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { CommunityDistrictGeoJson } from "./CommunityDistrictGeoJson";
import type { Error } from "./Error";

export type FindCommunityDistrictGeoJsonByBoroughIdCommunityDistrictIdPathParams =
{
Expand Down
12 changes: 11 additions & 1 deletion app/gen/types/FindCommunityDistrictsByBoroughId.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { CommunityDistrict } from "./CommunityDistrict";
import type { Error } from "./Error";

export type FindCommunityDistrictsByBoroughIdPathParams = {
/**
Expand All @@ -16,6 +16,11 @@ export type FindCommunityDistrictsByBoroughId200 = {
* @type array
*/
communityDistricts: CommunityDistrict[];
/**
* @description Community district numbers are sorted in ascending order
* @type string
*/
order: string;
};
/**
* @description Invalid client request
Expand All @@ -37,6 +42,11 @@ export type FindCommunityDistrictsByBoroughIdQueryResponse = {
* @type array
*/
communityDistricts: CommunityDistrict[];
/**
* @description Community district numbers are sorted in ascending order
* @type string
*/
order: string;
};
export type FindCommunityDistrictsByBoroughIdQuery = {
Response: FindCommunityDistrictsByBoroughIdQueryResponse;
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/FindLandUses.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { LandUse } from "./LandUse";
import type { Error } from "./Error";

/**
* @description An object containing all land uses.
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/FindTaxLotByBbl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { TaxLot } from "./TaxLot";
import type { Error } from "./Error";

export type FindTaxLotByBblPathParams = {
/**
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/FindTaxLotGeoJsonByBbl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { TaxLotGeoJson } from "./TaxLotGeoJson";
import type { Error } from "./Error";

export type FindTaxLotGeoJsonByBblPathParams = {
/**
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/FindTaxLots.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { TaxLotBasicPage } from "./TaxLotBasicPage";
import type { Error } from "./Error";

export const findTaxLotsQueryParamsGeometry = {
Point: "Point",
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/FindZoningDistrictByZoningDistrictId.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { ZoningDistrict } from "./ZoningDistrict";
import type { Error } from "./Error";

export type FindZoningDistrictByZoningDistrictIdPathParams = {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { ZoningDistrictClass } from "./ZoningDistrictClass";
import type { Error } from "./Error";

export type FindZoningDistrictClassByZoningDistrictClassIdPathParams = {
/**
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/FindZoningDistrictClassCategoryColors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { ZoningDistrictClassCategoryColor } from "./ZoningDistrictClassCategoryColor";
import type { Error } from "./Error";

/**
* @description An object containing all zoning district category colors.
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/FindZoningDistrictClasses.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { ZoningDistrictClass } from "./ZoningDistrictClass";
import type { Error } from "./Error";

/**
* @description An object containing all zoning district class schemas.
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/FindZoningDistrictClassesByTaxLotBbl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { ZoningDistrictClass } from "./ZoningDistrictClass";
import type { Error } from "./Error";

export type FindZoningDistrictClassesByTaxLotBblPathParams = {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { ZoningDistrictClass } from "./ZoningDistrictClass";
import type { Error } from "./Error";

export type FindZoningDistrictClassesByZoningDistrictIdPathParams = {
/**
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/FindZoningDistrictsByTaxLotBbl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Error } from "./Error";
import type { ZoningDistrict } from "./ZoningDistrict";
import type { Error } from "./Error";

export type FindZoningDistrictsByTaxLotBblPathParams = {
/**
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/InternalServerError.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { Error } from "./Error";
import type { Error } from "./Error";

export type InternalServerError = Error;
2 changes: 1 addition & 1 deletion app/gen/types/MultiPoint.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Position } from "./Position";
import type { Position } from "./Position";

export const multiPointType = {
MultiPoint: "MultiPoint",
Expand Down
2 changes: 1 addition & 1 deletion app/gen/types/MultiPolygon.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Position } from "./Position";
import type { Position } from "./Position";

export const multiPolygonType = {
MultiPolygon: "MultiPolygon",
Expand Down
Loading

0 comments on commit 35c5731

Please sign in to comment.