-
Notifications
You must be signed in to change notification settings - Fork 16
Favorites / TS API structures #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: mainline
Are you sure you want to change the base?
Conversation
lib/utils/apis.ts
Outdated
| webhooks : 'webhooks/', | ||
| workspaces : 'workspaces/' | ||
| }; | ||
| export enum ApiSection { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to land these objects in types.ts?
| pageSize?: number; | ||
| }; | ||
|
|
||
| export type PaginationResponse = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How frequently are these types used (everywhere?)
| totalCount: number; | ||
| }; | ||
|
|
||
| export enum FavoritableResource { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a standard set of resources?
| @@ -1,22 +1,41 @@ | |||
| import {ApiUrls} from "../types"; | |||
| export const apiUrls: ApiUrls = { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be a breaking change (conceptually even through deep-imports if not explicitly exported)
| @@ -1,22 +1,41 @@ | |||
| import {ApiUrls} from "../types"; | |||
| export const apiUrls: ApiUrls = { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-export apiUrlByResource as apiUrls with a @depricated tag on it
| type IncludeOptions = string; | ||
|
|
||
| type ListFavoritesParamsNonPaginated = { | ||
| includeAll: true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change this to avoid stronger restrictions than exactly in the api spec.
# Conflicts: # index.ts # lib/events/index.ts # lib/types/ApiUrls.ts # lib/types/CreateOptions.ts # lib/utils/apis.ts
No description provided.