-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c73a71a
commit 83bdbd5
Showing
6 changed files
with
2,348 additions
and
824 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
import "@typespec/openapi3"; | ||
|
||
using TypeSpec.OpenAPI; | ||
|
||
namespace OpenMeter; | ||
|
||
/** | ||
* A filter for a string field. | ||
*/ | ||
@friendlyName("FilterString") | ||
model FilterString { | ||
/** | ||
* The field must be equal to the provided value. | ||
*/ | ||
$eq?: string | null; | ||
|
||
/** | ||
* The field must not be equal to the provided value. | ||
*/ | ||
$ne?: string | null; | ||
|
||
/** | ||
* The field must be in the provided list of values. | ||
*/ | ||
$in?: string[] | null; | ||
|
||
/** | ||
* The field must not be in the provided list of values. | ||
*/ | ||
$nin?: string[] | null; | ||
|
||
/** | ||
* The field must match the provided value. | ||
*/ | ||
$like?: string | null; | ||
|
||
/** | ||
* The field must not match the provided value. | ||
*/ | ||
$nlike?: string | null; | ||
|
||
/** | ||
* The field must match the provided value, ignoring case. | ||
*/ | ||
$ilike?: string | null; | ||
|
||
/** | ||
* The field must not match the provided value, ignoring case. | ||
*/ | ||
$nilike?: string | null; | ||
|
||
/** | ||
* The field must be greater than the provided value. | ||
*/ | ||
$gt?: string | null; | ||
|
||
/** | ||
* The field must be greater than or equal to the provided value. | ||
*/ | ||
$gte?: string | null; | ||
|
||
/** | ||
* The field must be less than the provided value. | ||
*/ | ||
$lt?: string | null; | ||
|
||
/** | ||
* The field must be less than or equal to the provided value. | ||
*/ | ||
$lte?: string | null; | ||
|
||
/** | ||
* Provide a list of filters to be combined with a logical AND. | ||
*/ | ||
$and?: FilterString[] | null; | ||
|
||
/** | ||
* Provide a list of filters to be combined with a logical OR. | ||
*/ | ||
$or?: FilterString[] | null; | ||
} | ||
|
||
/** | ||
* A filter for an integer field. | ||
*/ | ||
@friendlyName("FilterInteger") | ||
model FilterInteger { | ||
/** | ||
* The field must be equal to the provided value. | ||
*/ | ||
$eq?: integer | null; | ||
|
||
/** | ||
* The field must not be equal to the provided value. | ||
*/ | ||
$ne?: integer | null; | ||
|
||
/** | ||
* The field must be greater than the provided value. | ||
*/ | ||
$gt?: integer | null; | ||
|
||
/** | ||
* The field must be greater than or equal to the provided value. | ||
*/ | ||
$gte?: integer | null; | ||
|
||
/** | ||
* The field must be less than the provided value. | ||
*/ | ||
$lt?: integer | null; | ||
|
||
/** | ||
* The field must be less than or equal to the provided value. | ||
*/ | ||
$lte?: integer | null; | ||
|
||
/** | ||
* Provide a list of filters to be combined with a logical AND. | ||
*/ | ||
$and?: FilterInteger[] | null; | ||
|
||
/** | ||
* Provide a list of filters to be combined with a logical OR. | ||
*/ | ||
$or?: FilterInteger[] | null; | ||
} | ||
|
||
/** | ||
* A filter for a float field. | ||
*/ | ||
@friendlyName("FilterFloat") | ||
model FilterFloat { | ||
/** | ||
* The field must be equal to the provided value. | ||
*/ | ||
$eq?: float64 | null; | ||
|
||
/** | ||
* The field must not be equal to the provided value. | ||
*/ | ||
$ne?: float64 | null; | ||
|
||
/** | ||
* The field must be greater than the provided value. | ||
*/ | ||
$gt?: float64 | null; | ||
|
||
/** | ||
* The field must be greater than or equal to the provided value. | ||
*/ | ||
$gte?: float64 | null; | ||
|
||
/** | ||
* The field must be less than the provided value. | ||
*/ | ||
$lt?: float64 | null; | ||
|
||
/** | ||
* The field must be less than or equal to the provided value. | ||
*/ | ||
$lte?: float64 | null; | ||
|
||
/** | ||
* Provide a list of filters to be combined with a logical AND. | ||
*/ | ||
$and?: FilterFloat[] | null; | ||
|
||
/** | ||
* Provide a list of filters to be combined with a logical OR. | ||
*/ | ||
$or?: FilterFloat[] | null; | ||
} | ||
|
||
/** | ||
* A filter for a boolean field. | ||
*/ | ||
@friendlyName("FilterBoolean") | ||
model FilterBoolean { | ||
/** | ||
* The field must be equal to the provided value. | ||
*/ | ||
$eq?: boolean | null; | ||
} |
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.