Skip to content

Commit ab99958

Browse files
Add org name to org query fetch (#38)
1 parent 5637920 commit ab99958

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "git",
55
"url": "https://github.com/PropelAuth/node"
66
},
7-
"version": "2.1.11",
7+
"version": "2.1.12",
88
"license": "MIT",
99
"keywords": [
1010
"auth",

src/api/org.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export type OrgQuery = {
3939
pageSize?: number
4040
pageNumber?: number
4141
orderBy?: "CREATED_AT_ASC" | "CREATED_AT_DESC" | "NAME"
42+
name?: string
4243
}
4344

4445
export type OrgQueryResponse = {
@@ -54,6 +55,7 @@ export function fetchOrgByQuery(authUrl: URL, integrationApiKey: string, query:
5455
page_size: query.pageSize,
5556
page_number: query.pageNumber,
5657
order_by: query.orderBy,
58+
name: query.name,
5759
}
5860
return httpRequest(authUrl, integrationApiKey, `${ENDPOINT_PATH}/query`, "POST", JSON.stringify(request)).then(
5961
(httpResponse) => {

0 commit comments

Comments
 (0)