Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f03a08a

Browse files
committed
make gen
1 parent 0ae8805 commit f03a08a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

codersdk/organizations.go

+7-3
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,10 @@ func (c *Client) TemplatesByOrganization(ctx context.Context, organizationID uui
405405
}
406406

407407
type TemplateFilter struct {
408-
OrganizationID uuid.UUID
409-
ExactName string
410-
FuzzyName string
408+
OrganizationID uuid.UUID `typescript:"-"`
409+
ExactName string `typescript:"-"`
410+
FuzzyName string `typescript:"-"`
411+
SearchQuery string `json:"q,omitempty"`
411412
}
412413

413414
// asRequestOption returns a function that can be used in (*Client).Request.
@@ -428,6 +429,9 @@ func (f TemplateFilter) asRequestOption() RequestOption {
428429
if f.FuzzyName != "" {
429430
params = append(params, fmt.Sprintf("name:%q", f.FuzzyName))
430431
}
432+
if f.SearchQuery != "" {
433+
params = append(params, f.SearchQuery)
434+
}
431435

432436
q := r.URL.Query()
433437
q.Set("q", strings.Join(params, " "))

site/src/api/typesGenerated.ts

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)