add folder to the updates api params
This commit is contained in:
@ -1867,6 +1867,7 @@ export type QueryTypeaheadSearchArgs = {
|
||||
export type QueryUpdatesSinceArgs = {
|
||||
after?: InputMaybe<Scalars['String']>;
|
||||
first?: InputMaybe<Scalars['Int']>;
|
||||
folder?: InputMaybe<Scalars['String']>;
|
||||
since: Scalars['Date'];
|
||||
sort?: InputMaybe<SortParams>;
|
||||
};
|
||||
|
||||
@ -1368,7 +1368,7 @@ type Query {
|
||||
sendInstallInstructions: SendInstallInstructionsResult!
|
||||
subscriptions(sort: SortParams, type: SubscriptionType): SubscriptionsResult!
|
||||
typeaheadSearch(first: Int, query: String!): TypeaheadSearchResult!
|
||||
updatesSince(after: String, first: Int, since: Date!, sort: SortParams): UpdatesSinceResult!
|
||||
updatesSince(after: String, first: Int, folder: String, since: Date!, sort: SortParams): UpdatesSinceResult!
|
||||
user(userId: ID, username: String): UserResult!
|
||||
users: UsersResult!
|
||||
validateUsername(username: String!): Boolean!
|
||||
|
||||
@ -737,7 +737,7 @@ export const updatesSinceResolver = authorized<
|
||||
UpdatesSinceSuccess,
|
||||
UpdatesSinceError,
|
||||
QueryUpdatesSinceArgs
|
||||
>(async (_obj, { since, first, after, sort: sortParams }, { uid }) => {
|
||||
>(async (_obj, { since, first, after, sort: sortParams, folder }, { uid }) => {
|
||||
const sort = sortParamsToSort(sortParams)
|
||||
|
||||
const startCursor = after || ''
|
||||
@ -755,7 +755,7 @@ export const updatesSinceResolver = authorized<
|
||||
includeDeleted: true,
|
||||
dateFilters: [{ field: 'updatedAt', startDate }],
|
||||
sort,
|
||||
inFilter: InFilter.ALL,
|
||||
inFilter: (folder as InFilter) || InFilter.ALL,
|
||||
},
|
||||
uid
|
||||
)
|
||||
|
||||
@ -2826,6 +2826,7 @@ const schema = gql`
|
||||
first: Int
|
||||
since: Date!
|
||||
sort: SortParams
|
||||
folder: String
|
||||
): UpdatesSinceResult!
|
||||
integrations: IntegrationsResult!
|
||||
recentSearches: RecentSearchesResult!
|
||||
|
||||
Reference in New Issue
Block a user