From 0f2c3c816e713c331684e09c7696267f7b9696a3 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 4 Jul 2024 17:21:19 -0300 Subject: [PATCH 1/5] 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" From 28d5ad6a78c252face8bb6a4d9f88cd03443e90b Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 4 Jul 2024 17:30:42 -0300 Subject: [PATCH 2/5] fix: changes vtex/api version --- node/package.json | 4 ++-- node/yarn.lock | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/node/package.json b/node/package.json index 1dd1c318..9a660e0c 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.47.0", + "@vtex/api": "6.46.1", "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.47.0", + "@vtex/api": "6.46.1", "@vtex/prettier-config": "^0.3.1", "@vtex/tsconfig": "^0.6.0", "jest": "27.5.1", diff --git a/node/yarn.lock b/node/yarn.lock index 3db88f5b..5c5c915e 100644 --- a/node/yarn.lock +++ b/node/yarn.lock @@ -836,11 +836,10 @@ dependencies: "@types/yargs-parser" "*" -"@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: +"@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==dependencies: "@types/koa" "^2.11.0" "@types/koa-compose" "^3.2.3" "@vtex/node-error-report" "^0.0.3" From 88bd78909a2cf8a8b18809f2313e93d4e0104b11 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 10 Jul 2024 08:40:16 -0300 Subject: [PATCH 3/5] adjust changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ce5d9ad..e2ecc171 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed +- Add paymentTerms field on create organization mutation + ## [0.51.0] - 2024-06-04 ### Fixed From 4897827dd4d3926781ff8a810980cfabe0d5f81d Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 10 Jul 2024 08:43:51 -0300 Subject: [PATCH 4/5] undone yarn.lock modification --- node/yarn.lock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/yarn.lock b/node/yarn.lock index 5c5c915e..a9d31e0d 100644 --- a/node/yarn.lock +++ b/node/yarn.lock @@ -839,7 +839,8 @@ "@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==dependencies: + integrity sha512-geoxVvyWoQpOQ70Zmx3M8SBkRoGOS/bp9Gy26M+iCue63jofVSwmFz1zf66EaHA1PKOJNRgQPFwY+oeDE1U2lQ== + dependencies: "@types/koa" "^2.11.0" "@types/koa-compose" "^3.2.3" "@vtex/node-error-report" "^0.0.3" From bbda154116989d2c09b51e44162586645be22556 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 12 Jul 2024 15:24:54 -0300 Subject: [PATCH 5/5] adjust llint error --- node/resolvers/Mutations/CostCenters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/resolvers/Mutations/CostCenters.ts b/node/resolvers/Mutations/CostCenters.ts index 5d842be4..2fec8610 100644 --- a/node/resolvers/Mutations/CostCenters.ts +++ b/node/resolvers/Mutations/CostCenters.ts @@ -71,7 +71,7 @@ const CostCenters = { phoneNumber, sellers, stateRegistration, - paymentTerms + paymentTerms, } return await CostCenterRepository.createCostCenter(