-
Notifications
You must be signed in to change notification settings - Fork 69
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
Showing
13 changed files
with
1,047 additions
and
708 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 |
---|---|---|
|
@@ -64,11 +64,51 @@ interface Customers { | |
*/ | ||
@friendlyName("queryCustomerList") | ||
model ListCustomersParams extends PaginatedQuery { | ||
/** | ||
* Order customers by. | ||
* @TODO: set default value to CustomerOrderBy.name | ||
*/ | ||
...OpenMeter.QueryOrdering<CustomerOrderBy>; | ||
|
||
/** | ||
* Include deleted customers. | ||
*/ | ||
@query | ||
includeDeleted?: boolean = false; | ||
|
||
/** | ||
* Filter customers by name. | ||
* Case-insensitive partial match. | ||
*/ | ||
@query | ||
@example("ACME") | ||
name?: string; | ||
|
||
/** | ||
* Filter customers by primary email. | ||
* Case-insensitive partial match. | ||
*/ | ||
@query | ||
@example("[email protected]") | ||
primaryEmail?: string; | ||
|
||
/** | ||
* Filter customers by usage attribution subject. | ||
* Case-insensitive partial match. | ||
*/ | ||
@query | ||
@example("my_subject_key") | ||
subject?: string; | ||
} | ||
|
||
/** | ||
* Order by options for customers. | ||
*/ | ||
@friendlyName("CustomerOrderBy") | ||
enum CustomerOrderBy { | ||
id: "id", | ||
name: "name", | ||
createdAt: "createdAt", | ||
} | ||
|
||
/** | ||
|
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
Oops, something went wrong.