Skip to content

Commit 13f1f4b

Browse files
authored
feat(api): customer list search by partial key (#3263)
1 parent e728f3a commit 13f1f4b

File tree

8 files changed

+2205
-2205
lines changed

8 files changed

+2205
-2205
lines changed

api/api.gen.go

Lines changed: 1116 additions & 1116 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/client/go/client.gen.go

Lines changed: 1082 additions & 1082 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/client/javascript/src/client/schemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10677,7 +10677,7 @@ export interface components {
1067710677
/** @description Include deleted customers. */
1067810678
'queryCustomerList.includeDeleted': boolean
1067910679
/** @description Filter customers by key.
10680-
* Case-sensitive exact match. */
10680+
* Case-insensitive partial match. */
1068110681
'queryCustomerList.key': string
1068210682
/** @description Filter customers by name.
1068310683
* Case-insensitive partial match. */
@@ -15077,7 +15077,7 @@ export interface operations {
1507715077
/** @description Include deleted customers. */
1507815078
includeDeleted?: components['parameters']['queryCustomerList.includeDeleted']
1507915079
/** @description Filter customers by key.
15080-
* Case-sensitive exact match. */
15080+
* Case-insensitive partial match. */
1508115081
key?: components['parameters']['queryCustomerList.key']
1508215082
/** @description Filter customers by name.
1508315083
* Case-insensitive partial match. */

api/client/javascript/src/zod/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6741,7 +6741,7 @@ export const listCustomersQueryParams = zod.object({
67416741
key: zod.coerce
67426742
.string()
67436743
.optional()
6744-
.describe('Filter customers by key.\nCase-sensitive exact match.'),
6744+
.describe('Filter customers by key.\nCase-insensitive partial match.'),
67456745
name: zod.coerce
67466746
.string()
67476747
.optional()

api/openapi.cloud.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12179,7 +12179,7 @@ components:
1217912179
required: false
1218012180
description: |-
1218112181
Filter customers by key.
12182-
Case-sensitive exact match.
12182+
Case-insensitive partial match.
1218312183
schema:
1218412184
type: string
1218512185
explode: false

api/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12177,7 +12177,7 @@ components:
1217712177
required: false
1217812178
description: |-
1217912179
Filter customers by key.
12180-
Case-sensitive exact match.
12180+
Case-insensitive partial match.
1218112181
schema:
1218212182
type: string
1218312183
explode: false

api/spec/src/customer/customer.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ model ListCustomersParams {
121121

122122
/**
123123
* Filter customers by key.
124-
* Case-sensitive exact match.
124+
* Case-insensitive partial match.
125125
*/
126126
@query
127127
key?: string;

openmeter/customer/adapter/customer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (a *adapter) ListCustomers(ctx context.Context, input customer.ListCustomer
4848

4949
// Filters
5050
if input.Key != nil {
51-
query = query.Where(customerdb.KeyEQ(*input.Key))
51+
query = query.Where(customerdb.KeyContainsFold(*input.Key))
5252
}
5353

5454
if input.Name != nil {

0 commit comments

Comments
 (0)