Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(correios v2): Create app to integrate Correios new APIs #251

Merged
merged 26 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0649883
feat(correios v2): Create app
wisley7l Oct 6, 2023
d375bb1
chore(correios db): Add database population and main search in database
wisley7l Oct 10, 2023
45b5172
chore(action): add correios app environment variables
wisley7l Oct 10, 2023
e71f884
chore(pnpm lock): update file
wisley7l Oct 10, 2023
4cfe60e
Merge branch 'main' into feat/correios-v2
wisley7l Oct 10, 2023
f5021c2
fix(pnpm lock): Update file
wisley7l Oct 10, 2023
cf7896e
chore(events): Add event functions
wisley7l Oct 10, 2023
df28109
chore(pnpm lock): Update file
wisley7l Oct 10, 2023
7a43081
Merge branch 'main' into feat/correios-v2
wisley7l Oct 16, 2023
ed84dc5
fix(correios db): Fix fill database and write fallback data
wisley7l Oct 16, 2023
ecac717
fix(app correios): Update app package [skip ci]
wisley7l Oct 26, 2023
90a9528
fix(events): Remove app correios v2
wisley7l Oct 26, 2023
a2a6615
fix(firebase config): Remove correiosV2 app and update appId [skip ci]
wisley7l Oct 26, 2023
e323ecf
fix(modules): Remove correios v2 app
wisley7l Oct 26, 2023
a5c3ead
Merge branch 'main' into feat/correios-v2
wisley7l Oct 26, 2023
e2d8975
fix(pnpm lock): Return file to main version
wisley7l Oct 26, 2023
8895563
fix(test correios): Remove debug
wisley7l Oct 26, 2023
f301457
fix(correios): Remove unnecessary comments [skip ci]
wisley7l Oct 26, 2023
8c663fb
fix(correios v2): Add and correct parsers adds declared value check
wisley7l Oct 30, 2023
cf81b85
Merge branch 'main' into feat/correios-v2
wisley7l Oct 30, 2023
d23c19b
Merge branch 'main' into feat/correios-v2
wisley7l Oct 31, 2023
dffc059
Merge branch 'main' into feat/correios-v2
wisley7l Nov 1, 2023
1ed6c31
fix(correios): Add weight check and standardization of parameters
wisley7l Nov 1, 2023
cfb69f6
fix(correios): Remove unnecessary comments
wisley7l Nov 1, 2023
bae8080
fix(correios): Correct conversion of weight to grams
wisley7l Nov 3, 2023
3ab8400
fix(correios): Parameterize weight array to grams
wisley7l Nov 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ inputs:
description: 'App: Webhooks token'
mandae-token:
description: 'App: Mandaê token'
correios-user:
description: 'App: Correios username'
correios-access-code:
description: 'App: Correios access code'
correios-postcard-number:
description: 'App: Optional Correios postcard number'

outputs: {}

Expand Down Expand Up @@ -242,6 +248,9 @@ runs:
FLASHCOURIER_CONTRACT: ${{ inputs.flashcourier-contract }}
WEBHOOKS_TOKEN: ${{ inputs.webhooks-token }}
MANDAE_TOKEN: ${{ inputs.mandae-token }}
CORREIOS_USER: ${{ inputs.correios-user }}
CORREIOS_ACCESS_CODE: ${{ inputs.correios-access-code }}
CORREIOS_POSTCARD: ${{ inputs.correios-postcard-number }}
run: |
export GAC_FILENAME=".gac-$RANDOM.json"
echo $FIREBASE_SERVICE_ACCOUNT > $GAC_FILENAME
Expand Down Expand Up @@ -281,6 +290,10 @@ runs:
FLASHCOURIER_CONTRACT=$FLASHCOURIER_CONTRACT
WEBHOOKS_TOKEN=$WEBHOOKS_TOKEN
MANDAE_TOKEN=$MANDAE_TOKEN
CORREIOS_USER=$CORREIOS_USER
CORREIOS_ACCESS_CODE=$CORREIOS_ACCESS_CODE
CORREIOS_POSTCARD=$CORREIOS_POSTCARD

leomp12 marked this conversation as resolved.
Show resolved Hide resolved
" > functions/.env
if [ -z "$DEPLOY_CODEBASE" ]; then
GOOGLE_APPLICATION_CREDENTIALS=$GAC_FILENAME npm run deploy
Expand Down
Loading
Loading