From 3cf1aa62caa34bb1187c5f663f404ff8ed231313 Mon Sep 17 00:00:00 2001 From: Gabriel Barros Date: Wed, 25 Oct 2023 13:55:25 -0300 Subject: [PATCH] AddAffiliates query authentication fix --- graphql/schema.graphql | 4 ++-- node/package.json | 2 +- node/yarn.lock | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/graphql/schema.graphql b/graphql/schema.graphql index 156ddbb..021435a 100644 --- a/graphql/schema.graphql +++ b/graphql/schema.graphql @@ -7,7 +7,7 @@ type Query { filter: AffiliatesFilterInput sorting: AffliatesSortingInput ): AffiliatesPage! @checkAdminAccess - getAffiliate(affiliateId: ID!): Affiliate @checkAdminAccess + getAffiliate(affiliateId: ID!): Affiliate @checkUserAccess getAffiliateByEmail(email: String!): Affiliate getAffiliatesScroll( filter: AffiliatesFilterInput @@ -16,7 +16,7 @@ type Query { } type Mutation { - addAffiliate(newAffiliate: NewAffiliateInput!): Affiliate! @checkAdminAccess + addAffiliate(newAffiliate: NewAffiliateInput!): Affiliate! updateAffiliate( affiliateId: String! updateAffiliate: UpdateAffiliateInput! diff --git a/node/package.json b/node/package.json index d256a35..5bc038f 100644 --- a/node/package.json +++ b/node/package.json @@ -9,7 +9,7 @@ "@types/jest": "^27.0.2", "@types/node": "^12.0.0", "@types/ramda": "types/npm-ramda#dist", - "@vtex/api": "6.45.22", + "@vtex/api": "6.45.24", "@vtex/test-tools": "^3.4.1", "@vtex/tsconfig": "^0.5.6", "typescript": "3.9.7" diff --git a/node/yarn.lock b/node/yarn.lock index 1538fe0..5cf909b 100644 --- a/node/yarn.lock +++ b/node/yarn.lock @@ -1658,10 +1658,10 @@ resolved "https://registry.yarnpkg.com/@types/zen-observable/-/zen-observable-0.8.3.tgz#781d360c282436494b32fe7d9f7f8e64b3118aa3" integrity sha512-fbF6oTd4sGGy0xjHPKAt+eS2CrxJ3+6gQ3FGcBoIJR2TLAyCkCyI8JqZNy+FeON0AhVgNJoUumVoZQjBFUqHkw== -"@vtex/api@6.45.22": - version "6.45.22" - resolved "https://registry.yarnpkg.com/@vtex/api/-/api-6.45.22.tgz#fa9bbfde1a4d4fbbaf6cce9f6dbc9bb9ee929ba3" - integrity sha512-g5cGUDhF4FADgSMpQmce/bnIZumwGlPG2cabwbQKIQ+cCFMZqOEM/n+YQb1+S8bCyHkzW3u/ZABoyCKi5/nxxg== +"@vtex/api@6.45.24": + version "6.45.24" + resolved "https://registry.yarnpkg.com/@vtex/api/-/api-6.45.24.tgz#5643d80de9b5ac9491c03a47be0329872896a6eb" + integrity sha512-BaNdncM2Jfqdu/DikxrDVH7fdek5vH02nvH4RCyNcZ3KSSYZaKk4QGr2EjEHI/rhkOIbJOlOAW5ol4uDcGbQjQ== dependencies: "@types/koa" "^2.11.0" "@types/koa-compose" "^3.2.3"