Skip to content

Commit ac61fce

Browse files
committed
fix search tags v2 params
1 parent 5540d91 commit ac61fce

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @code.store/arcxp-sdk-ts
22

3+
## 4.42.1
4+
5+
### Patch Changes
6+
7+
- fix searchtagsv2 params
8+
39
## 4.42.0
410

511
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code.store/arcxp-sdk-ts",
3-
"version": "4.42.0",
3+
"version": "4.42.1",
44
"description": "A strongly typed set of ArcXP API's and utilities reduce the amount of work required to develop with ArcXP, starting with reducing the boilerplate code you have to write.",
55
"type": "commonjs",
66
"main": "./dist/index.js",

src/api/tags/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type {
77
GetAllTagsParams,
88
GetTagsResponse,
99
SearchTagsParams,
10+
SearchTagsV2Params,
1011
} from './types';
1112

1213
export class ArcTags extends ArcAbstractAPI {
@@ -29,7 +30,7 @@ export class ArcTags extends ArcAbstractAPI {
2930
return data;
3031
}
3132

32-
async searchTagsV2(params: SearchTagsParams) {
33+
async searchTagsV2(params: SearchTagsV2Params) {
3334
const { data } = await this.client.get<GetTagsResponse>('/v2/search', { params });
3435
return data;
3536
}

src/api/tags/types.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ export type Tag = {
1010
path: string;
1111
};
1212

13+
export type SearchTagsV2Params = {
14+
prefix?: string;
15+
size?: number;
16+
from?: string;
17+
before?: string;
18+
order?: string;
19+
};
20+
1321
export type SearchTagsParams = {
1422
term?: string;
1523
/**

0 commit comments

Comments
 (0)