From d0f134960b3750fe96f8c22bf3a79f62f28198c2 Mon Sep 17 00:00:00 2001 From: gabrielHosino Date: Fri, 25 Feb 2022 12:08:48 -0300 Subject: [PATCH 1/6] Update messages --- messages/en.json | 7 +++++-- messages/pt.json | 7 +++++-- react/utils/messages.ts | 3 +++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/messages/en.json b/messages/en.json index d543a6e..ababc31 100644 --- a/messages/en.json +++ b/messages/en.json @@ -42,9 +42,9 @@ "admin/creationDate.label": "Order date", "admin/export.tab.label": "Registered Commissions", "admin/import.tab.label": "Import Commissions", - "admin/import.file.section.title": "Import by CSV file", + "admin/import.file.section.title": "Import by file", "admin/commissions.page.title": "Commissions Management", - "admin/dropzone.main.message.text": "Drop here your CSV or", + "admin/dropzone.main.message.text": "Drop here your CSV/XLSX or", "admin/click.message.dropzone.text": "choose a file", "admin/edit.commission.title": "Edit commission", "admin/edit.commission.invalid.value.message": "Invalid commission value", @@ -58,6 +58,9 @@ "admin/send.file.label": "Send file", "admin/import.file.success.message": "The file is being proccesed.", "admin/import.file.error.message": "An error occurred while sending the file.", + "admin/import.file.subtitle.1.text": "You can use our", + "admin/import.file.subtitle.model.text": "XLSX template", + "admin/import.file.subtitle.2.text": "to import commissions.", "admin/affiliate.label": "Affiliate", "admin/edit.label": "Edit", "admin/general.info.label": "General Information", diff --git a/messages/pt.json b/messages/pt.json index 1b6040d..35e0ec8 100644 --- a/messages/pt.json +++ b/messages/pt.json @@ -42,9 +42,9 @@ "admin/creationDate.label": "Data do pedido", "admin/export.tab.label": "Comissões Cadastradas", "admin/import.tab.label": "Importação de Comissões", - "admin/import.file.section.title": "Importar por arquivo CSV", + "admin/import.file.section.title": "Importar por arquivo", "admin/commissions.page.title": "Gerenciamento de Comissões", - "admin/dropzone.main.message.text": "Arraste e solte o arquivo CSV aqui ou", + "admin/dropzone.main.message.text": "Arraste e solte o arquivo CSV/XLSX aqui ou", "admin/click.message.dropzone.text": "escolha um arquivo", "admin/edit.commission.title": "Editar comissão", "admin/edit.commission.invalid.value.message": "Valor de comissão inválido", @@ -58,6 +58,9 @@ "admin/send.file.label": "Enviar arquivo", "admin/import.file.success.message": "O arquivo está sendo processado.", "admin/import.file.error.message": "Ocorreu um erro ao enviar o arquivo.", + "admin/import.file.subtitle.1.text": "Utilize o nosso", + "admin/import.file.subtitle.model.text": "template XLSX", + "admin/import.file.subtitle.2.text": "para importar comissões.", "admin/affiliate.label": "Afiliado", "admin/edit.label": "Editar", "admin/general.info.label": "Informações Gerais", diff --git a/react/utils/messages.ts b/react/utils/messages.ts index f905df9..a23865b 100644 --- a/react/utils/messages.ts +++ b/react/utils/messages.ts @@ -131,4 +131,7 @@ export const messages = defineMessages({ addAffiliateTitle: { id: 'admin/add.affiliate.title' }, addAffiliateErrorMessage: { id: 'admin/add.affiliate.error.message' }, exportLabel: { id: 'admin/export.label' }, + importFileSubtitle1: { id: 'admin/import.file.subtitle.1.text' }, + importFileSubtitleModel: { id: 'admin/import.file.subtitle.model.text' }, + importFileSubtitle2: { id: 'admin/import.file.subtitle.2.text' }, }) From 78b295a36e430574041629aca48b3bee37c69e13 Mon Sep 17 00:00:00 2001 From: gabrielHosino Date: Fri, 25 Feb 2022 12:10:44 -0300 Subject: [PATCH 2/6] Add import commissions file model --- .../admin/commissions/ImportDropzone.tsx | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/react/components/admin/commissions/ImportDropzone.tsx b/react/components/admin/commissions/ImportDropzone.tsx index 9eacbc1..dc59efe 100644 --- a/react/components/admin/commissions/ImportDropzone.tsx +++ b/react/components/admin/commissions/ImportDropzone.tsx @@ -1,9 +1,10 @@ import type { FC } from 'react' -import React, { useState, useMemo } from 'react' +import React, { useCallback, useState, useMemo } from 'react' import { useIntl } from 'react-intl' import { Dropzone } from 'vtex.styleguide' import { Text, Box, Button, Flex, useToast } from '@vtex/admin-ui' import { useMutation } from 'react-apollo' +import * as XLSX from 'xlsx' import { messages } from '../../../utils/messages' import IMPORT_COMMISSIONS from '../../../graphql/importCommissionsBySKU.graphql' @@ -51,6 +52,18 @@ const ImportDropzone: FC = () => { }) } + const handleTemplateDownload = useCallback(() => { + const header = ['id', 'refId', 'commission'] + + const ws = XLSX.utils.json_to_sheet([], { header }) + const wb = XLSX.utils.book_new() + + XLSX.utils.book_append_sheet(wb, ws, 'Sheet1') + const exportFileName = `commissions-template.xlsx` + + XLSX.writeFile(wb, exportFileName) + }, []) + return ( <> @@ -58,8 +71,21 @@ const ImportDropzone: FC = () => { {intl.formatMessage(messages.importFileSectionTitle)} + + {intl.formatMessage(messages.importFileSubtitle1)} + + {` ${intl.formatMessage(messages.importFileSubtitleModel)} `} + + {intl.formatMessage(messages.importFileSubtitle2)} + From 169487c6a516d3bcad294c24b5b8ccaead00cff6 Mon Sep 17 00:00:00 2001 From: gabrielHosino Date: Fri, 25 Feb 2022 12:11:10 -0300 Subject: [PATCH 3/6] Update dependencies --- react/package.json | 1 + react/yarn.lock | 79 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/react/package.json b/react/package.json index 2ad733b..82cd8fd 100644 --- a/react/package.json +++ b/react/package.json @@ -14,6 +14,7 @@ "react-dom": "^16.12.0", "react-intl": "^5.24.3", "uuid": "^8.3.2", + "xlsx": "^0.18.2", "yup": "^0.32.11" }, "resolutions": { diff --git a/react/yarn.lock b/react/yarn.lock index 2a2b315..062f2a9 100644 --- a/react/yarn.lock +++ b/react/yarn.lock @@ -1900,6 +1900,13 @@ acorn@^7.1.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== +adler-32@~1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/adler-32/-/adler-32-1.3.0.tgz#3cad1b71cdfa69f6c8a91f3e3615d31a4fdedc72" + integrity sha512-f5nltvjl+PRUh6YNfUstRaXwJxtfnKEWhAWWlmKvh+Y3J2+98a0KKVYDEhz6NdKGqswLhjNGznxfSsZGOvOd9g== + dependencies: + printj "~1.2.2" + ajv@^6.12.3: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" @@ -2356,6 +2363,15 @@ caseless@~0.12.0: resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= +cfb@~1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/cfb/-/cfb-1.2.1.tgz#209429e4c68efd30641f6fc74b2d6028bd202402" + integrity sha512-wT2ScPAFGSVy7CY+aauMezZBnNrfnaLSrxHUHdea+Td/86vrk6ZquggV+ssBR88zNs0OnBkL2+lf9q0K+zVGzQ== + dependencies: + adler-32 "~1.3.0" + crc-32 "~1.2.0" + printj "~1.3.0" + chalk@^2.0.0: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" @@ -2410,6 +2426,11 @@ co@^4.6.0: resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= +codepage@~1.15.0: + version "1.15.0" + resolved "https://registry.yarnpkg.com/codepage/-/codepage-1.15.0.tgz#2e00519024b39424ec66eeb3ec07227e692618ab" + integrity sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA== + collect-v8-coverage@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59" @@ -2510,6 +2531,14 @@ cosmiconfig@^6.0.0: path-type "^4.0.0" yaml "^1.7.2" +crc-32@~1.2.0, crc-32@~1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/crc-32/-/crc-32-1.2.1.tgz#436d2bcaad27bcb6bd073a2587139d3024a16460" + integrity sha512-Dn/xm/1vFFgs3nfrpEVScHoIslO9NZRITWGz/1E/St6u4xw99vfZzVkW0OSnzx2h9egej9xwMCEut6sqwokM/w== + dependencies: + exit-on-epipe "~1.0.1" + printj "~1.3.1" + cross-spawn@^6.0.0: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" @@ -2811,6 +2840,11 @@ execa@^3.2.0: signal-exit "^3.0.2" strip-final-newline "^2.0.0" +exit-on-epipe@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/exit-on-epipe/-/exit-on-epipe-1.0.1.tgz#0bdd92e87d5285d267daa8171d0eb06159689692" + integrity sha512-h2z5mrROTxce56S+pnvAV890uu7ls7f1kEvVGJbw1OlFH3/mlJ5bkXu0KRyW94v37zzHPiUd55iLn3DA7TjWpw== + exit@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" @@ -2974,6 +3008,11 @@ formik@^2.2.9: tiny-warning "^1.0.2" tslib "^1.10.0" +frac@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/frac/-/frac-1.1.2.tgz#3d74f7f6478c88a1b5020306d747dc6313c74d0b" + integrity sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA== + fragment-cache@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" @@ -4582,6 +4621,16 @@ pretty-format@^27.0.0, pretty-format@^27.5.1: ansi-styles "^5.0.0" react-is "^17.0.1" +printj@~1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/printj/-/printj-1.2.3.tgz#2cfb2b192a1e5385dbbe5b46658ac34aa828508a" + integrity sha512-sanczS6xOJOg7IKDvi4sGOUOe7c1tsEzjwlLFH/zgwx/uyImVM9/rgBkc8AfiQa/Vg54nRd8mkm9yI7WV/O+WA== + +printj@~1.3.0, printj@~1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/printj/-/printj-1.3.1.tgz#9af6b1d55647a1587ac44f4c1654a4b95b8e12cb" + integrity sha512-GA3TdL8szPK4AQ2YnOe/b+Y1jUFwmmGMMK/qbY7VcE3Z7FU8JstbKiKRzO6CIiAKPhTO8m01NoQ0V5f3jc4OGg== + prompts@^2.0.1: version "2.4.2" resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069" @@ -5209,6 +5258,13 @@ sprintf-js@~1.0.2: resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= +ssf@~0.11.2: + version "0.11.2" + resolved "https://registry.yarnpkg.com/ssf/-/ssf-0.11.2.tgz#0b99698b237548d088fc43cdf2b70c1a7512c06c" + integrity sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g== + dependencies: + frac "~1.1.2" + sshpk@^1.7.0: version "1.17.0" resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.17.0.tgz#578082d92d4fe612b13007496e543fa0fbcbe4c5" @@ -5755,11 +5811,21 @@ which@^2.0.1, which@^2.0.2: dependencies: isexe "^2.0.0" +wmf@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wmf/-/wmf-1.0.2.tgz#7d19d621071a08c2bdc6b7e688a9c435298cc2da" + integrity sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw== + word-wrap@~1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== +word@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/word/-/word-0.3.0.tgz#8542157e4f8e849f4a363a288992d47612db9961" + integrity sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA== + wrap-ansi@^6.2.0: version "6.2.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" @@ -5789,6 +5855,19 @@ ws@^7.0.0: resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.7.tgz#9e0ac77ee50af70d58326ecff7e85eb3fa375e67" integrity sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A== +xlsx@^0.18.2: + version "0.18.2" + resolved "https://registry.yarnpkg.com/xlsx/-/xlsx-0.18.2.tgz#b30b80659623d0260173b3c96c4ad308e9a5151e" + integrity sha512-BWLS+GO5yg5Hnro8mpbNkZq/a+dZ8689otFuHmb9wgCtiMpL+I9dpc+Sans6K9yYxTLEZ235Kr/JkmoTEMunzQ== + dependencies: + adler-32 "~1.3.0" + cfb "~1.2.1" + codepage "~1.15.0" + crc-32 "~1.2.1" + ssf "~0.11.2" + wmf "~1.0.1" + word "~0.3.0" + xml-name-validator@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" From 6025c99fbad2d186c21dfde0c6433491a31fbe30 Mon Sep 17 00:00:00 2001 From: gabrielHosino Date: Fri, 25 Feb 2022 15:10:12 -0300 Subject: [PATCH 4/6] Update dev dependecies --- node/package.json | 6 +++--- node/yarn.lock | 20 ++++++++++---------- react/package.json | 6 +++--- react/yarn.lock | 18 +++++++++--------- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/node/package.json b/node/package.json index 4aecb75..2a773cd 100644 --- a/node/package.json +++ b/node/package.json @@ -13,8 +13,8 @@ "@vtex/test-tools": "^3.4.1", "@vtex/tsconfig": "^0.5.6", "typescript": "3.9.7", - "vtex.affiliates": "https://gabiru--sandboxbrdev.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.35.0+build1645537229/public/@types/vtex.affiliates", - "vtex.affiliates-commission-service": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-commission-service@0.10.0/public/@types/vtex.affiliates-commission-service", + "vtex.affiliates": "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.36.0+build1645799451/public/@types/vtex.affiliates", + "vtex.affiliates-commission-service": "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates-commission-service@0.15.1+build1645452675/public/@types/vtex.affiliates-commission-service", "vtex.affiliates-order-form-spy": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-order-form-spy@0.0.1/public/@types/vtex.affiliates-order-form-spy", "vtex.breadcrumb": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.breadcrumb@1.9.4/public/@types/vtex.breadcrumb", "vtex.flex-layout": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.flex-layout@0.19.0/public/@types/vtex.flex-layout", @@ -24,7 +24,7 @@ "vtex.rich-text": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.rich-text@0.15.0/public/@types/vtex.rich-text", "vtex.search-result": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.search-result@3.113.4/public/@types/vtex.search-result", "vtex.store": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store@2.122.0/public/@types/vtex.store", - "vtex.store-components": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.155.10/public/@types/vtex.store-components", + "vtex.store-components": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.156.0/public/@types/vtex.store-components", "vtex.store-icons": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-icons@0.18.0/public/@types/vtex.store-icons", "vtex.styleguide": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.styleguide@9.146.0/public/@types/vtex.styleguide" }, diff --git a/node/yarn.lock b/node/yarn.lock index 453ac2c..47a5113 100644 --- a/node/yarn.lock +++ b/node/yarn.lock @@ -5699,7 +5699,7 @@ static-extend@^0.1.1: define-property "^0.2.5" object-copy "^0.1.0" -"stats-lite@github:vtex/node-stats-lite#dist": +stats-lite@vtex/node-stats-lite#dist: version "2.2.0" resolved "https://codeload.github.com/vtex/node-stats-lite/tar.gz/1b0d39cc41ef7aaecfd541191f877887a2044797" dependencies: @@ -6201,17 +6201,17 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -"vtex.affiliates-commission-service@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-commission-service@0.10.0/public/@types/vtex.affiliates-commission-service": - version "0.10.0" - resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-commission-service@0.10.0/public/@types/vtex.affiliates-commission-service#41b2ca61c8a9b22dd89640749bf7d15843579125" +"vtex.affiliates-commission-service@https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates-commission-service@0.15.1+build1645452675/public/@types/vtex.affiliates-commission-service": + version "0.15.1" + resolved "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates-commission-service@0.15.1+build1645452675/public/@types/vtex.affiliates-commission-service#721dc846e5d19dc0f2a579cb413083f620a163ed" "vtex.affiliates-order-form-spy@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-order-form-spy@0.0.1/public/@types/vtex.affiliates-order-form-spy": version "0.0.0" resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-order-form-spy@0.0.1/public/@types/vtex.affiliates-order-form-spy#ced0777e098c53a7dbdb2e1e03c0a03b78bf5edf" -"vtex.affiliates@https://gabiru--sandboxbrdev.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.35.0+build1645537229/public/@types/vtex.affiliates": - version "0.35.0" - resolved "https://gabiru--sandboxbrdev.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.35.0+build1645537229/public/@types/vtex.affiliates#afedcff418a0cf7feefd10e02c078678962d262a" +"vtex.affiliates@https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.36.0+build1645799451/public/@types/vtex.affiliates": + version "0.36.0" + resolved "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.36.0+build1645799451/public/@types/vtex.affiliates#b537288672c4abdaf9f03e133cecffa3b8a11e9d" "vtex.breadcrumb@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.breadcrumb@1.9.4/public/@types/vtex.breadcrumb": version "1.9.4" @@ -6241,9 +6241,9 @@ verror@1.10.0: version "3.113.4" resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.search-result@3.113.4/public/@types/vtex.search-result#495c368fddd230ffb623903b73f08007aeeb440b" -"vtex.store-components@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.155.10/public/@types/vtex.store-components": - version "3.155.10" - resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.155.10/public/@types/vtex.store-components#d3ab18748d1dd7a8b51b7174a3afa8ce0bad880c" +"vtex.store-components@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.156.0/public/@types/vtex.store-components": + version "3.156.0" + resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.156.0/public/@types/vtex.store-components#30c0e1f7ca3b6b0f4f33dce2ad997f7753806e6c" "vtex.store-icons@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-icons@0.18.0/public/@types/vtex.store-icons": version "0.18.0" diff --git a/react/package.json b/react/package.json index 608129e..076f4cd 100644 --- a/react/package.json +++ b/react/package.json @@ -31,8 +31,8 @@ "apollo-cache-inmemory": "^1.6.5", "graphql": "^14.6.0", "typescript": "3.9.7", - "vtex.affiliates": "https://gabiru--sandboxbrdev.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.35.0+build1645537229/public/@types/vtex.affiliates", - "vtex.affiliates-commission-service": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-commission-service@0.10.0/public/@types/vtex.affiliates-commission-service", + "vtex.affiliates": "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.36.0+build1645799451/public/@types/vtex.affiliates", + "vtex.affiliates-commission-service": "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates-commission-service@0.15.1+build1645452675/public/@types/vtex.affiliates-commission-service", "vtex.affiliates-order-form-spy": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-order-form-spy@0.0.1/public/@types/vtex.affiliates-order-form-spy", "vtex.breadcrumb": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.breadcrumb@1.9.4/public/@types/vtex.breadcrumb", "vtex.flex-layout": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.flex-layout@0.19.0/public/@types/vtex.flex-layout", @@ -43,7 +43,7 @@ "vtex.rich-text": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.rich-text@0.15.0/public/@types/vtex.rich-text", "vtex.search-result": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.search-result@3.113.4/public/@types/vtex.search-result", "vtex.store": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store@2.122.0/public/@types/vtex.store", - "vtex.store-components": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.155.10/public/@types/vtex.store-components", + "vtex.store-components": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.156.0/public/@types/vtex.store-components", "vtex.store-icons": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-icons@0.18.0/public/@types/vtex.store-icons", "vtex.styleguide": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.styleguide@9.146.0/public/@types/vtex.styleguide" } diff --git a/react/yarn.lock b/react/yarn.lock index 062f2a9..3619706 100644 --- a/react/yarn.lock +++ b/react/yarn.lock @@ -5683,17 +5683,17 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -"vtex.affiliates-commission-service@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-commission-service@0.10.0/public/@types/vtex.affiliates-commission-service": - version "0.10.0" - resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-commission-service@0.10.0/public/@types/vtex.affiliates-commission-service#41b2ca61c8a9b22dd89640749bf7d15843579125" +"vtex.affiliates-commission-service@https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates-commission-service@0.15.1+build1645452675/public/@types/vtex.affiliates-commission-service": + version "0.15.1" + resolved "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates-commission-service@0.15.1+build1645452675/public/@types/vtex.affiliates-commission-service#721dc846e5d19dc0f2a579cb413083f620a163ed" "vtex.affiliates-order-form-spy@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-order-form-spy@0.0.1/public/@types/vtex.affiliates-order-form-spy": version "0.0.0" resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-order-form-spy@0.0.1/public/@types/vtex.affiliates-order-form-spy#ced0777e098c53a7dbdb2e1e03c0a03b78bf5edf" -"vtex.affiliates@https://gabiru--sandboxbrdev.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.35.0+build1645537229/public/@types/vtex.affiliates": - version "0.35.0" - resolved "https://gabiru--sandboxbrdev.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.35.0+build1645537229/public/@types/vtex.affiliates#afedcff418a0cf7feefd10e02c078678962d262a" +"vtex.affiliates@https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.36.0+build1645799451/public/@types/vtex.affiliates": + version "0.36.0" + resolved "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.36.0+build1645799451/public/@types/vtex.affiliates#b537288672c4abdaf9f03e133cecffa3b8a11e9d" "vtex.breadcrumb@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.breadcrumb@1.9.4/public/@types/vtex.breadcrumb": version "1.9.4" @@ -5727,9 +5727,9 @@ verror@1.10.0: version "3.113.4" resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.search-result@3.113.4/public/@types/vtex.search-result#495c368fddd230ffb623903b73f08007aeeb440b" -"vtex.store-components@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.155.10/public/@types/vtex.store-components": - version "3.155.10" - resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.155.10/public/@types/vtex.store-components#d3ab18748d1dd7a8b51b7174a3afa8ce0bad880c" +"vtex.store-components@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.156.0/public/@types/vtex.store-components": + version "3.156.0" + resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.156.0/public/@types/vtex.store-components#30c0e1f7ca3b6b0f4f33dce2ad997f7753806e6c" "vtex.store-icons@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-icons@0.18.0/public/@types/vtex.store-icons": version "0.18.0" From 2cd6b274ec2ea6868a0b92a8623c8b677dfde31b Mon Sep 17 00:00:00 2001 From: gabrielHosino Date: Fri, 25 Feb 2022 15:22:02 -0300 Subject: [PATCH 5/6] Update dev dependecies --- node/package.json | 2 +- node/yarn.lock | 6 +++--- react/package.json | 2 +- react/yarn.lock | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/node/package.json b/node/package.json index 2a773cd..37112ef 100644 --- a/node/package.json +++ b/node/package.json @@ -14,7 +14,7 @@ "@vtex/tsconfig": "^0.5.6", "typescript": "3.9.7", "vtex.affiliates": "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.36.0+build1645799451/public/@types/vtex.affiliates", - "vtex.affiliates-commission-service": "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates-commission-service@0.15.1+build1645452675/public/@types/vtex.affiliates-commission-service", + "vtex.affiliates-commission-service": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-commission-service@0.10.0/public/@types/vtex.affiliates-commission-service", "vtex.affiliates-order-form-spy": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-order-form-spy@0.0.1/public/@types/vtex.affiliates-order-form-spy", "vtex.breadcrumb": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.breadcrumb@1.9.4/public/@types/vtex.breadcrumb", "vtex.flex-layout": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.flex-layout@0.19.0/public/@types/vtex.flex-layout", diff --git a/node/yarn.lock b/node/yarn.lock index 47a5113..5e1ff2d 100644 --- a/node/yarn.lock +++ b/node/yarn.lock @@ -6201,9 +6201,9 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -"vtex.affiliates-commission-service@https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates-commission-service@0.15.1+build1645452675/public/@types/vtex.affiliates-commission-service": - version "0.15.1" - resolved "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates-commission-service@0.15.1+build1645452675/public/@types/vtex.affiliates-commission-service#721dc846e5d19dc0f2a579cb413083f620a163ed" +"vtex.affiliates-commission-service@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-commission-service@0.10.0/public/@types/vtex.affiliates-commission-service": + version "0.10.0" + resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-commission-service@0.10.0/public/@types/vtex.affiliates-commission-service#41b2ca61c8a9b22dd89640749bf7d15843579125" "vtex.affiliates-order-form-spy@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-order-form-spy@0.0.1/public/@types/vtex.affiliates-order-form-spy": version "0.0.0" diff --git a/react/package.json b/react/package.json index 076f4cd..9e43887 100644 --- a/react/package.json +++ b/react/package.json @@ -32,7 +32,7 @@ "graphql": "^14.6.0", "typescript": "3.9.7", "vtex.affiliates": "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates@0.36.0+build1645799451/public/@types/vtex.affiliates", - "vtex.affiliates-commission-service": "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates-commission-service@0.15.1+build1645452675/public/@types/vtex.affiliates-commission-service", + "vtex.affiliates-commission-service": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-commission-service@0.10.0/public/@types/vtex.affiliates-commission-service", "vtex.affiliates-order-form-spy": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-order-form-spy@0.0.1/public/@types/vtex.affiliates-order-form-spy", "vtex.breadcrumb": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.breadcrumb@1.9.4/public/@types/vtex.breadcrumb", "vtex.flex-layout": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.flex-layout@0.19.0/public/@types/vtex.flex-layout", diff --git a/react/yarn.lock b/react/yarn.lock index 3619706..6aa5edb 100644 --- a/react/yarn.lock +++ b/react/yarn.lock @@ -5683,9 +5683,9 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -"vtex.affiliates-commission-service@https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates-commission-service@0.15.1+build1645452675/public/@types/vtex.affiliates-commission-service": - version "0.15.1" - resolved "https://affiliates--partnerintegrationbra.myvtex.com/_v/private/typings/linked/v1/vtex.affiliates-commission-service@0.15.1+build1645452675/public/@types/vtex.affiliates-commission-service#721dc846e5d19dc0f2a579cb413083f620a163ed" +"vtex.affiliates-commission-service@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-commission-service@0.10.0/public/@types/vtex.affiliates-commission-service": + version "0.10.0" + resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-commission-service@0.10.0/public/@types/vtex.affiliates-commission-service#41b2ca61c8a9b22dd89640749bf7d15843579125" "vtex.affiliates-order-form-spy@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.affiliates-order-form-spy@0.0.1/public/@types/vtex.affiliates-order-form-spy": version "0.0.0" From 137ee3b693c9c6556a0251d4c6065429de0214f1 Mon Sep 17 00:00:00 2001 From: gabrielHosino Date: Fri, 25 Feb 2022 15:25:09 -0300 Subject: [PATCH 6/6] Update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4b181c..e1fe631 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Added + +- File example for the commissions import + ## [0.37.1] - 2022-02-25 ### Changed