Skip to content

Latest commit

 

History

History
465 lines (242 loc) · 9.21 KB

CHANGELOG.md

File metadata and controls

465 lines (242 loc) · 9.21 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased]

[0.30.0] - 2023-02-21

Added

  • Added the email transactional to the organization request and the options for disabling/enabling them.

[0.29.1] - 2023-02-20

Fixed

  • Fixed the adminToken when get the users queries

[0.29.0] - 2023-02-14

Added

  • Added custom fields for organizations and cost centers

[0.28.0] - 2023-02-08

Added

  • added sellers to orgs
  • added ui modal options to settings
  • added sellers to organization request

[0.27.0] - 2023-02-08

Added

  • Added the apiToken apiKey validation

[0.26.1] - 2023-02-03

Added

  • ListOrders policy

[0.26.0] - 2023-02-02

Added

  • Added the field to add multiple cost centers to an organization request
  • Added the paymentTerms, sales channel and price tables do the organization request to add when the organization is created
  • Added the notifyUser flag throughout the organization mutations which implies that the user will be notified when the organization is created or updated by email

[0.25.1] - 2023-01-24

Fixed

  • Removing JWT dependency

[0.25.0] - 2023-01-16

Added

  • Allow users to set auto approval for new organization with a new setting fields

[0.24.0] - 2022-10-25

Changed

  • Cypress improvements

Added

  • Added the state registration number to cost center schema

[0.23.3] - 2022-10-17

Changed

  • Split bindings testcase into two files

Changed

  • Change app settings to store settings in VBase

[0.23.2] - 2022-10-14

Added

  • Added the salesChannel field to Organization type

[0.23.1] - 2022-10-07

Fixed

  • Updated graphql schema and added and fix a bug when the query is called

[0.23.0] - 2022-10-06

Added

  • Added marketing tags to the b2b scope

Updated

  • Update GitHub reusable workflow to version 2

[0.22.2] - 2022-09-21

Fixed

  • Fixed the default accessibility for binding selection setting

[0.22.1] - 2022-09-19

Fixed

  • Added permission to save the app settings

[0.22.0] - 2022-09-16

Added

  • Added sales channels binding selection setting

[0.21.0] - 2022-09-15

Added

  • Added a check verification if the organization is active

[0.20.1] - 2022-09-15

Fixed

  • Bug fixed on impersonation user

[0.20.0] - 2022-09-09

Added

  • Added a graphql query to fetch all organizations from a user by email parameter

[0.19.8] - 2022-08-31

Added

  • Added the cookie header to storefront permissions requests passing the authentication token.

[0.19.7] - 2022-08-23

Fixed

  • If a cost center address is missing an addressId, one will be automatically generated and saved when querying a cost center by ID

[0.19.6] - 2022-08-08

Changed

  • App Review: Added logging, fixed security issues and code cleanup

[0.19.5] - 2022-07-19

Fixed

  • Fixed on update the user data, and it disappeared from the list

[0.19.4] - 2022-07-08

Fixed

  • Allow emails associated with declined requests to request new organization

[0.19.3] - 2022-06-28

Added

  • Add error messages improvement

[0.19.2] - 2022-06-23

Fixed

  • Allow tradeName and phoneNumber fields to be emptied when organization or cost center are updated

[0.19.1] - 2022-06-17

Fixed

  • Add optional tradeName argument to updateOrganization mutation

Added

  • Github Action to trigger manual tests by dispatch

[0.19.0] - 2022-06-09

Added

  • Support for organization tradeName field and cost center phoneNumber field (both optional)

[0.18.0] - 2022-06-03

Added

  • Added the query to get the organizations without a sales manager

[0.17.1] - 2022-05-31

Added

  • Added handling to the addUser mutation by showing the correct message when the user already exists.

[0.17.0] - 2022-05-23

Added

  • Added the pagination to getUsers query

[0.16.2] - 2022-05-12

Added

  • Cancellation request route to support vtex.b2b-orders-history
  • Checkout client
  • Permission check in order route

Changed

  • Use admin OMS API to get order details, to ensure we have the user's email

[0.16.1] - 2022-04-25

Added

  • Added duplicate check for create organization request

[0.16.0] - 2022-04-15

Added

  • the structure of the components has been improved;
  • Added 2 mutations in order to follow the mutations from storefront permissions (updateUser and addUser);

Fixed

  • Remove a couple of conditionals nested;
  • Remove unnecessary variables, some changes to inline returns;

[0.15.0] - 2022-04-08

Added

  • add subfield email of the b2bCustomerAdmin field to check duplicate requests by email

[0.14.0] - 2022-04-04

Added

Added 2 mutations to handle the cost center addresses

  • updateCostCenterAddress
  • createCostCenterAddress see schema/schema.graphql for more details

[0.13.0] - 2022-03-31

Added

  • Optional businessDocument field for cost centers

[0.12.0] - 2022-03-25

Changed

  • Adjust getPaymentTerms query so that it now returns all enabled payment methods, not just promissories

Fixed

  • In the orders route handler, request the user's permissions for vtex.b2b-orders-history instead of vtex.b2b-organizations

[0.11.0] - 2022-03-24

Fixed

  • In impersonateUser resolver, if clId is provided but userId is not, check CL document to see if userId exists there and then update storefront-permissions' user record
  • Similarly, when editing a user, if userId is null, check CL document to see if userId exists there and then sync it with storefront-permissions

Changed

  • Use storefront-permissions' GraphQL interface directly instead of sending requests through vtex.graphql-server

[0.10.0] - 2022-03-08

Added

  • impersonateUser mutation
  • Permission checks related to sales roles

Changed

  • Increase timeout

Fixed

  • checkConfig promise bug that prevented MD schema from being created

[0.9.2] - 2022-01-26

Fixed

  • Correctly handle spaces when searching masterdata
  • Use CL id instead of user id in saveUser and removeUser operations

[0.9.1] - 2022-01-06

Added

  • SonarCloud PR integration

[0.9.0] - 2021-12-23

Added

  • Organization admins will be notified via email if an organization's status changes

Fixed

  • App no longer stores data in AppSettings, to allow app to function without being explicitly installed

[0.8.1] - 2021-12-17

Fixed

  • Enable immediate indexing for MD schemas

Deprecated

  • costCenters property in organization schema (expect this to be an empty array)

[0.8.0] - 2021-12-10

Added

  • Support for enabling/disabling specific payment terms per cost center

[0.7.0] - 2021-12-06

Added

  • When an organization request is approved, the user specified as the organization admin is now created and/or the appropriate permissions and organization / cost center are assigned to them.

Fixed

  • Improved email templates for organization creation / approval / denial
  • Format of creation date MD schema fields to allow for proper date sorting
  • Properly return ID of created MD document in GraphQL mutations that create documents
  • Use returned value DocumentId from MD creation operations instead of Id to eliminate unnecessary replace() functions

[0.6.0] - 2021-11-29

Added

  • Permissions check to getUsers query and saveUser, removeUser mutations

Changed

  • getCostCenterByIdStorefront query ID argument is now optional, will use user's cost center ID as default

Fixed

  • Made storefront queries private

[0.5.0] - 2021-11-09

Added

  • Send email to Sales Admins and Customer Admin on organization and request updates.

[0.4.0] - 2021-11-04

Added

  • /b2b/oms/user/checkout/ route to return paymentTerms and Cost Center addresses

[0.3.2] - 2021-11-03

Changed

  • Create separate queries for storefront users that check user's permissions

[0.3.1] - 2021-11-02

Fixed

  • Initialize B2BUser query field resolvers
  • Don't set sessionToken header in GraphQLServer client if token is null

[0.3.0] - 2021-11-01

Added

  • getUsers query
  • saveUser and removeUser mutations
  • withSession directive
  • getOrganizationById and getCostCenterByOrganizationId queries will now use the user's organization ID if no ID argument is provided

[0.2.3] - 2021-10-29

Fixed

  • Allow organization names to be changed

[0.2.2] - 2021-10-28

Changed

  • App sender from vtex.b2b-organizations@0.x to vtex.b2b-orders-history@0.x

[0.2.1] - 2021-10-21

Added

  • Payment Term support

[0.2.0] - 2021-10-04

Added

  • Orders history support

[0.1.0] - 2021-09-24

Added

  • getCostCenters query

Fixed

  • handle spaces in masterdata search terms

[0.0.3] - 2021-09-10

Fixed

  • Add schema argument to updateCostCenter masterdata call
  • Utilize where argument for masterdata searches (instead of unsupported keyword argument)

[0.0.2] - 2021-09-09

Fixed

  • Correct handling of masterdata document IDs in createOrganization and createCostCenter resolvers

[0.0.1] - 2021-08-31

Added

  • Initial release