Skip to content

Commit

Permalink
New version of SDKapa
Browse files Browse the repository at this point in the history
  • Loading branch information
augustovicente committed Apr 10, 2024
1 parent 572ba30 commit bfb22ff
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "issuu-sdk",
"version": "1.0.0",
"name": "@issuu/issuu-api-sdk",
"version": "0.0.1",
"type": "module",
"license": "MIT",
"scripts": {
"test": "jest user.test.ts; jest draft.test.ts; jest publication.test.ts; jest stack.test.ts"
"test": "jest user.test.ts; sleep 10s; jest draft.test.ts; sleep 10s; jest publication.test.ts; sleep 10s; jest stack.test.ts"
},
"dependencies": {
"axios": "^1.6.8",
Expand Down
14 changes: 12 additions & 2 deletions types/stack.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
type StackAccessTypes = 'PUBLIC' | 'UNLISTED';

type Link = {
href: string,
};

type CreateNewStackRequest = {
accessType: StackAccessTypes,
description: string,
Expand Down Expand Up @@ -39,8 +43,14 @@ type GetStackItemsRequest = {
page?: number,
};
type GetStackItemsResponse = {
publications: string[],
count: number
results: string[],
count?: number,
pageSize: number,
links: {
next?: Link,
previous?: Link,
self?: Link,
},
};

export type {
Expand Down

0 comments on commit bfb22ff

Please sign in to comment.