chore: added deprecated label to all queries,mutations and subscriptions in the shortcode module
This commit is contained in:
@@ -37,6 +37,7 @@ export class ShortcodeResolver {
|
|||||||
@Query(() => Shortcode, {
|
@Query(() => Shortcode, {
|
||||||
description: 'Resolves and returns a shortcode data',
|
description: 'Resolves and returns a shortcode data',
|
||||||
nullable: true,
|
nullable: true,
|
||||||
|
deprecationReason: 'Use SharedRequests instead',
|
||||||
})
|
})
|
||||||
async shortcode(
|
async shortcode(
|
||||||
@Args({
|
@Args({
|
||||||
@@ -54,6 +55,7 @@ export class ShortcodeResolver {
|
|||||||
|
|
||||||
@Query(() => [Shortcode], {
|
@Query(() => [Shortcode], {
|
||||||
description: 'List all shortcodes the current user has generated',
|
description: 'List all shortcodes the current user has generated',
|
||||||
|
deprecationReason: 'Use SharedRequests instead',
|
||||||
})
|
})
|
||||||
@UseGuards(GqlAuthGuard)
|
@UseGuards(GqlAuthGuard)
|
||||||
async myShortcodes(@GqlUser() user: AuthUser, @Args() args: PaginationArgs) {
|
async myShortcodes(@GqlUser() user: AuthUser, @Args() args: PaginationArgs) {
|
||||||
@@ -63,6 +65,7 @@ export class ShortcodeResolver {
|
|||||||
/* Mutations */
|
/* Mutations */
|
||||||
@Mutation(() => Shortcode, {
|
@Mutation(() => Shortcode, {
|
||||||
description: 'Create a shortcode for the given request.',
|
description: 'Create a shortcode for the given request.',
|
||||||
|
deprecationReason: 'Use SharedRequests instead',
|
||||||
})
|
})
|
||||||
async createShortcode(
|
async createShortcode(
|
||||||
@Args({
|
@Args({
|
||||||
@@ -86,6 +89,7 @@ export class ShortcodeResolver {
|
|||||||
|
|
||||||
@Mutation(() => Boolean, {
|
@Mutation(() => Boolean, {
|
||||||
description: 'Revoke a user generated shortcode',
|
description: 'Revoke a user generated shortcode',
|
||||||
|
deprecationReason: 'Use SharedRequests instead',
|
||||||
})
|
})
|
||||||
@UseGuards(GqlAuthGuard)
|
@UseGuards(GqlAuthGuard)
|
||||||
async revokeShortcode(
|
async revokeShortcode(
|
||||||
@@ -107,6 +111,7 @@ export class ShortcodeResolver {
|
|||||||
@Subscription(() => Shortcode, {
|
@Subscription(() => Shortcode, {
|
||||||
description: 'Listen for shortcode creation',
|
description: 'Listen for shortcode creation',
|
||||||
resolve: (value) => value,
|
resolve: (value) => value,
|
||||||
|
deprecationReason: 'Use SharedRequests instead',
|
||||||
})
|
})
|
||||||
@SkipThrottle()
|
@SkipThrottle()
|
||||||
@UseGuards(GqlAuthGuard)
|
@UseGuards(GqlAuthGuard)
|
||||||
@@ -117,6 +122,7 @@ export class ShortcodeResolver {
|
|||||||
@Subscription(() => Shortcode, {
|
@Subscription(() => Shortcode, {
|
||||||
description: 'Listen for shortcode deletion',
|
description: 'Listen for shortcode deletion',
|
||||||
resolve: (value) => value,
|
resolve: (value) => value,
|
||||||
|
deprecationReason: 'Use SharedRequests instead',
|
||||||
})
|
})
|
||||||
@SkipThrottle()
|
@SkipThrottle()
|
||||||
@UseGuards(GqlAuthGuard)
|
@UseGuards(GqlAuthGuard)
|
||||||
|
|||||||
Reference in New Issue
Block a user