Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 9b75cb2

Browse files
authored
feat(application keys): adds offset and limit to Application Keys endpoint (#733)
* feat(application keys): adds CrudQueryResource to Application Keys endpoint Extends CrudQueryResource to get the Offset and Limit functionality. * Fixed import for CrudQueryableResource
1 parent 68da83b commit 9b75cb2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/types/application-keys.d.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Identifiable, Resource, ResourcePage } from './core'
1+
import { Identifiable, Resource, ResourcePage, CrudQueryableResource } from './core'
22

33
export interface ApplicationKeyBase {
44
name: string
@@ -22,7 +22,14 @@ export interface ApplicationKeyResponse extends Resource<ApplicationKey> {
2222
}
2323
}
2424

25-
export interface ApplicationKeysEndpoint {
25+
export interface ApplicationKeysEndpoint extends CrudQueryableResource<
26+
ApplicationKey,
27+
ApplicationKeyBase,
28+
Partial<ApplicationKeyBase>,
29+
never,
30+
never,
31+
never
32+
> {
2633
All(): Promise<ResourcePage<ApplicationKey>>
2734
Create(body: ApplicationKeyBase): Promise<ApplicationKeyResponse>
2835
Delete(id: string): Promise<{}>

0 commit comments

Comments
 (0)