From 0f2c3c816e713c331684e09c7696267f7b9696a3 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 4 Jul 2024 17:21:19 -0300 Subject: [PATCH] fix: add paymentTerms to create cost mutation --- node/package.json | 4 ++-- node/resolvers/Mutations/CostCenters.ts | 4 ++++ node/yarn.lock | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/node/package.json b/node/package.json index 9a660e0c..1dd1c318 100644 --- a/node/package.json +++ b/node/package.json @@ -3,7 +3,7 @@ "version": "0.51.0", "dependencies": { "@types/lodash": "4.14.74", - "@vtex/api": "6.46.1", + "@vtex/api": "6.47.0", "atob": "^2.1.2", "co-body": "^6.0.0", "graphql": "^14.5.0", @@ -20,7 +20,7 @@ "@types/jsonwebtoken": "^8.5.0", "@types/node": "^12.12.21", "@types/ramda": "types/npm-ramda#dist", - "@vtex/api": "6.46.1", + "@vtex/api": "6.47.0", "@vtex/prettier-config": "^0.3.1", "@vtex/tsconfig": "^0.6.0", "jest": "27.5.1", diff --git a/node/resolvers/Mutations/CostCenters.ts b/node/resolvers/Mutations/CostCenters.ts index 15973218..5d842be4 100644 --- a/node/resolvers/Mutations/CostCenters.ts +++ b/node/resolvers/Mutations/CostCenters.ts @@ -28,6 +28,7 @@ const CostCenters = { customFields, marketingTags, sellers, + paymentTerms, }, }: { organizationId: string; input: CostCenterInput }, ctx: Context @@ -70,6 +71,7 @@ const CostCenters = { phoneNumber, sellers, stateRegistration, + paymentTerms } return await CostCenterRepository.createCostCenter( @@ -101,6 +103,7 @@ const CostCenters = { customFields, marketingTags, sellers, + paymentTerms, }, }: { organizationId: string; input: CostCenterInputWithId }, ctx: Context @@ -145,6 +148,7 @@ const CostCenters = { phoneNumber, sellers, stateRegistration, + paymentTerms, } const { id: costCenterId } = await CostCenterRepository.createCostCenter( diff --git a/node/yarn.lock b/node/yarn.lock index a9d31e0d..3db88f5b 100644 --- a/node/yarn.lock +++ b/node/yarn.lock @@ -836,10 +836,10 @@ dependencies: "@types/yargs-parser" "*" -"@vtex/api@6.46.1": - version "6.46.1" - resolved "https://registry.yarnpkg.com/@vtex/api/-/api-6.46.1.tgz#55a8755ae48f5400e7f1ed1921cd547950bb7a2a" - integrity sha512-geoxVvyWoQpOQ70Zmx3M8SBkRoGOS/bp9Gy26M+iCue63jofVSwmFz1zf66EaHA1PKOJNRgQPFwY+oeDE1U2lQ== +"@vtex/api@6.47.0": + version "6.47.0" + resolved "https://registry.yarnpkg.com/@vtex/api/-/api-6.47.0.tgz#6910455d593d8bb76f1f4f2b7660023853fda35e" + integrity sha512-t9gt7Q89EMbSj3rLhho+49Fv+/lQgiy8EPVRgtmmXFp1J4v8hIAZF7GPjCPie111KVs4eG0gfZFpmhA5dafKNA== dependencies: "@types/koa" "^2.11.0" "@types/koa-compose" "^3.2.3"