Backend- Free refill QR code OLD

***WIP***

 

Intl-packages

Alterar a interface do IPartnerOrder adicionando o campo XPTO como string

https://github.com/rbilabs/intl-packages/blob/master/packages/orders/src/types/partner-order.ts

 

 

intl-partner-API

O campo XPTO adicionado no OrderService

https://github.com/rbilabs/intl-partners-api/blob/main/src/modules/orders/orders.service.ts#L42

 

 

 

 

 

 

Add o campo novo hash nesse arquivo

https://github.com/rbilabs/intl-partners-api/blob/main/src/modules/orders/dto/order-event.dto.ts#29

 

 

Intl-partners-service

 

Adicionar o campo XPTO na orders do partners service

https://github.com/rbilabs/intl-partners-service/blob/main/src/modules/orders/orders.service.ts#L176

 

 

Add tbm no campo XPTO na interface do webhook order.

https://github.com/rbilabs/intl-partners-service/blob/main/src/modules/webhooks/interfaces/webhook-order.interface.ts#L26

 

 

 

 

 

Intl-fulfillment-service

Alterar o order-graphql adicionando o campo xpto do tipo string

Após add o novo campo devemos rodar o script "yarn generate-typings" e assim atualiza o graphql

 

https://github.com/rbilabs/intl-fulfillment-service/blob/main/src/modules/legacy/schemas/orders.graphql#L507

 

 

 

Intl-withelabel-graphql

 

Alterar o arquivo orders.gql, adicionando o campo XPTO

 

https://github.com/rbilabs/intl-whitelabel-graphql/blob/master/src/functions/graphql/schemas/orders.gql#L508

 

 

Depois de add precisamos roldar o comando "yarn graphql:types", com isso ele vai add o novo campo na interface rbiOrder

 

 

 

Intl-whitelabel-app

 

Com o grahql rodando localmente, nós devemos alterar o schemas o arquivo codegen.yml, para pegar nosso graphql local, mas se o graphql já foi implementado e esta no ambiente de DEV, não precisamos fazer esses passos de configuração do codegen.

 

 

Após isso configurado, ou implantado em DEV, vamos rodar o comando "yarn apollo:generate", e ele vai add o novo campo em alguns arquivos.

 

Adicionar o campo XPTO nos arquivos e linhas abaixo:

https://github.com/rbilabs/intl-whitelabel-app/blob/master/workspaces/frontend/src/queries/fragments/user-order-fragment.graphql#L148

https://github.com/rbilabs/intl-whitelabel-app/blob/master/workspaces/frontend/src/queries/gateway/fragments/orders.graphql#L130

https://github.com/rbilabs/intl-whitelabel-app/blob/master/workspaces/frontend/src/remote/queries/fragments/order.ts#L136