Skip to content

Commit

Permalink
chore: generate SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-nguyen-cs committed Mar 21, 2024
1 parent 004cb15 commit 7b4bf9d
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
42 changes: 40 additions & 2 deletions backend/openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,8 @@
{ "$ref": "#/components/schemas/ParentFilterSearchTerm" },
{ "$ref": "#/components/schemas/ChildFilterSearchTerm" },
{ "$ref": "#/components/schemas/AncestorFilterSearchTerm" },
{ "$ref": "#/components/schemas/DescendantFilterSearchTerm" }
{ "$ref": "#/components/schemas/DescendantFilterSearchTerm" },
{ "$ref": "#/components/schemas/PropertyFilterSearchTerm" }
],
"discriminator": {
"propertyName": "filterType",
Expand All @@ -1271,7 +1272,8 @@
"descendant": "#/components/schemas/DescendantFilterSearchTerm",
"is": "#/components/schemas/IsFilterSearchTerm",
"language": "#/components/schemas/LanguageFilterSearchTerm",
"parent": "#/components/schemas/ParentFilterSearchTerm"
"parent": "#/components/schemas/ParentFilterSearchTerm",
"property": "#/components/schemas/PropertyFilterSearchTerm"
}
}
},
Expand Down Expand Up @@ -1434,6 +1436,42 @@
"enum": ["OPEN", "EXPORTED", "LOADING", "FAILED"],
"title": "ProjectStatus"
},
"PropertyFilterSearchTerm": {
"properties": {
"filterType": { "const": "property", "title": "Filtertype" },
"filterValue": { "type": "string", "title": "Filtervalue" },
"negated": {
"type": "boolean",
"title": "Negated",
"readOnly": true
},
"inherited": {
"type": "boolean",
"title": "Inherited",
"readOnly": true
},
"propertyName": {
"type": "string",
"title": "Propertyname",
"readOnly": true
},
"propertyValue": {
"anyOf": [{ "type": "string" }, { "type": "null" }],
"title": "Propertyvalue",
"readOnly": true
}
},
"type": "object",
"required": [
"filterType",
"filterValue",
"negated",
"inherited",
"propertyName",
"propertyValue"
],
"title": "PropertyFilterSearchTerm"
},
"ValidationError": {
"properties": {
"loc": {
Expand Down
1 change: 1 addition & 0 deletions taxonomy-editor-frontend/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export type { LanguageFilterSearchTerm } from "./models/LanguageFilterSearchTerm
export type { ParentFilterSearchTerm } from "./models/ParentFilterSearchTerm";
export type { Project } from "./models/Project";
export { ProjectStatus } from "./models/ProjectStatus";
export type { PropertyFilterSearchTerm } from "./models/PropertyFilterSearchTerm";
export type { ValidationError } from "./models/ValidationError";

export { DefaultService } from "./services/DefaultService";
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { EntryNode } from "./EntryNode";
import type { IsFilterSearchTerm } from "./IsFilterSearchTerm";
import type { LanguageFilterSearchTerm } from "./LanguageFilterSearchTerm";
import type { ParentFilterSearchTerm } from "./ParentFilterSearchTerm";
import type { PropertyFilterSearchTerm } from "./PropertyFilterSearchTerm";
export type EntryNodeSearchResult = {
q: string;
nodeCount: number;
Expand All @@ -20,6 +21,7 @@ export type EntryNodeSearchResult = {
| ChildFilterSearchTerm
| AncestorFilterSearchTerm
| DescendantFilterSearchTerm
| PropertyFilterSearchTerm
>;
nodes: Array<EntryNode>;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type PropertyFilterSearchTerm = {
filterType: "property";
filterValue: string;
readonly negated: boolean;
readonly inherited: boolean;
readonly propertyName: string;
readonly propertyValue: string | null;
};

0 comments on commit 7b4bf9d

Please sign in to comment.