diff --git a/packages/api/src/generated/graphql.ts b/packages/api/src/generated/graphql.ts index 7cff57dde..a98854237 100644 --- a/packages/api/src/generated/graphql.ts +++ b/packages/api/src/generated/graphql.ts @@ -883,6 +883,7 @@ export type Mutation = { setDeviceToken: SetDeviceTokenResult; setFollow: SetFollowResult; setLabels: SetLabelsResult; + setLabelsForHighlight: SetLabelsResult; setLinkArchived: ArchiveLinkResult; setShareArticle: SetShareArticleResult; setShareHighlight: SetShareHighlightResult; @@ -1054,6 +1055,11 @@ export type MutationSetLabelsArgs = { }; +export type MutationSetLabelsForHighlightArgs = { + input: SetLabelsForHighlightInput; +}; + + export type MutationSetLinkArchivedArgs = { input: ArchiveLinkInput; }; @@ -1618,6 +1624,11 @@ export enum SetLabelsErrorCode { Unauthorized = 'UNAUTHORIZED' } +export type SetLabelsForHighlightInput = { + highlightId: Scalars['ID']; + labelIds: Array; +}; + export type SetLabelsInput = { labelIds: Array; pageId: Scalars['ID']; @@ -2544,6 +2555,7 @@ export type ResolversTypes = { SetFollowSuccess: ResolverTypeWrapper; SetLabelsError: ResolverTypeWrapper; SetLabelsErrorCode: SetLabelsErrorCode; + SetLabelsForHighlightInput: SetLabelsForHighlightInput; SetLabelsInput: SetLabelsInput; SetLabelsResult: ResolversTypes['SetLabelsError'] | ResolversTypes['SetLabelsSuccess']; SetLabelsSuccess: ResolverTypeWrapper; @@ -2845,6 +2857,7 @@ export type ResolversParentTypes = { SetFollowResult: ResolversParentTypes['SetFollowError'] | ResolversParentTypes['SetFollowSuccess']; SetFollowSuccess: SetFollowSuccess; SetLabelsError: SetLabelsError; + SetLabelsForHighlightInput: SetLabelsForHighlightInput; SetLabelsInput: SetLabelsInput; SetLabelsResult: ResolversParentTypes['SetLabelsError'] | ResolversParentTypes['SetLabelsSuccess']; SetLabelsSuccess: SetLabelsSuccess; @@ -3588,6 +3601,7 @@ export type MutationResolvers>; setFollow?: Resolver>; setLabels?: Resolver>; + setLabelsForHighlight?: Resolver>; setLinkArchived?: Resolver>; setShareArticle?: Resolver>; setShareHighlight?: Resolver>; diff --git a/packages/api/src/generated/schema.graphql b/packages/api/src/generated/schema.graphql index 53b41e78a..1a4f4da94 100644 --- a/packages/api/src/generated/schema.graphql +++ b/packages/api/src/generated/schema.graphql @@ -786,6 +786,7 @@ type Mutation { setDeviceToken(input: SetDeviceTokenInput!): SetDeviceTokenResult! setFollow(input: SetFollowInput!): SetFollowResult! setLabels(input: SetLabelsInput!): SetLabelsResult! + setLabelsForHighlight(input: SetLabelsForHighlightInput!): SetLabelsResult! setLinkArchived(input: ArchiveLinkInput!): ArchiveLinkResult! setShareArticle(input: SetShareArticleInput!): SetShareArticleResult! setShareHighlight(input: SetShareHighlightInput!): SetShareHighlightResult! @@ -1172,6 +1173,11 @@ enum SetLabelsErrorCode { UNAUTHORIZED } +input SetLabelsForHighlightInput { + highlightId: ID! + labelIds: [ID!]! +} + input SetLabelsInput { labelIds: [ID!]! pageId: ID! diff --git a/packages/api/src/schema.ts b/packages/api/src/schema.ts index 236056d1f..e2fc974f9 100755 --- a/packages/api/src/schema.ts +++ b/packages/api/src/schema.ts @@ -1714,6 +1714,11 @@ const schema = gql` NOT_FOUND } + input SetLabelsForHighlightInput { + highlightId: ID! + labelIds: [ID!]! + } + # Mutations type Mutation { googleLogin(input: GoogleLoginInput!): LoginResult! @@ -1782,6 +1787,7 @@ const schema = gql` setWebhook(input: SetWebhookInput!): SetWebhookResult! deleteWebhook(id: ID!): DeleteWebhookResult! revokeApiKey(id: ID!): RevokeApiKeyResult! + setLabelsForHighlight(input: SetLabelsForHighlightInput!): SetLabelsResult! } # FIXME: remove sort from feedArticles after all cached tabs are closed