@zennify/sdk-js 1.42.2 → 1.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
name: Publish to npm (Stable)
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
+
workflow_dispatch:
|
|
4
5
|
push:
|
|
5
6
|
branches:
|
|
6
7
|
- main
|
|
7
8
|
paths:
|
|
8
9
|
- "package.json"
|
|
9
10
|
|
|
10
|
-
permissions:
|
|
11
|
-
contents: write
|
|
12
|
-
|
|
13
11
|
jobs:
|
|
14
12
|
create-release:
|
|
13
|
+
if: "${{ startsWith(github.event.head_commit.message, 'chore: new version') }}"
|
|
15
14
|
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
16
17
|
steps:
|
|
17
18
|
- uses: actions/checkout@v4
|
|
18
19
|
|
|
@@ -34,16 +35,13 @@ jobs:
|
|
|
34
35
|
if: "${{ startsWith(github.event.head_commit.message, 'chore: new version') }}"
|
|
35
36
|
runs-on: ubuntu-latest
|
|
36
37
|
permissions:
|
|
37
|
-
|
|
38
|
-
packages: write
|
|
38
|
+
id-token: write
|
|
39
39
|
steps:
|
|
40
40
|
- uses: actions/checkout@v4
|
|
41
|
-
- uses: actions/setup-node@
|
|
41
|
+
- uses: actions/setup-node@v4
|
|
42
42
|
with:
|
|
43
|
-
node-version:
|
|
43
|
+
node-version: 24
|
|
44
44
|
registry-url: https://registry.npmjs.org/
|
|
45
45
|
- run: npm ci
|
|
46
46
|
- run: npm run build
|
|
47
|
-
- run: npm publish --access public
|
|
48
|
-
env:
|
|
49
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
47
|
+
- run: npm publish --access public
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zennify/sdk-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.43.1",
|
|
4
4
|
"description": "A simple package to work with https://api.zennify.app",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"keywords": [],
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
},
|
|
15
15
|
"types": "./types/main.d.ts",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@types/node": "^20.19.
|
|
18
|
-
"discord.js": "^14.
|
|
19
|
-
"typescript": "^5.
|
|
17
|
+
"@types/node": "^20.19.30",
|
|
18
|
+
"discord.js": "^14.25.1",
|
|
19
|
+
"typescript": "^5.9.3"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "tsc"
|
package/src/errors.ts
CHANGED
|
@@ -130,6 +130,8 @@ export interface APIErrors {
|
|
|
130
130
|
'EFIBANK_BLOCKED_ACCOUNT': {};
|
|
131
131
|
'EFIBANK_UNKNOWN_TRANSACTION': {};
|
|
132
132
|
'EFIBANK_RATE_LIMIT': {};
|
|
133
|
+
// Pagbank errors
|
|
134
|
+
'PAGBANK_INVALID_TOKEN': {};
|
|
133
135
|
/// bad preference configuration
|
|
134
136
|
'THIS_SELLER_HAS_NOT_YET_CONFIGURED_RECEIPT_VIA_PIX': {};
|
|
135
137
|
'THIS_SELLER_HAS_NOT_YET_CONFIGURED_RECEIPT_VIA_BOLETO': {};
|
package/translations/en_US.json
CHANGED
|
@@ -347,6 +347,10 @@
|
|
|
347
347
|
"name": "Action limit reached, please try again.",
|
|
348
348
|
"message": "Note that this limit is imposed by Banco Efí, not by Zennify."
|
|
349
349
|
},
|
|
350
|
+
"PAGBANK_INVALID_TOKEN": {
|
|
351
|
+
"name": "The PagBank token is invalid or has expired.",
|
|
352
|
+
"message": "Access the dashboard and reconnect to fix it."
|
|
353
|
+
},
|
|
350
354
|
"EFIBANK_UNKNOWN_TRANSACTION": {
|
|
351
355
|
"name": "This transaction could not be found.",
|
|
352
356
|
"message": "Maybe it does not exist or belongs to another account."
|
package/translations/pt_BR.json
CHANGED
|
@@ -343,6 +343,10 @@
|
|
|
343
343
|
"name": "O limite de ações foi atingido, tente novamente.",
|
|
344
344
|
"message": "Note que esse limite é imposto pelo Banco Efí, não pelo Zennify."
|
|
345
345
|
},
|
|
346
|
+
"PAGBANK_INVALID_TOKEN": {
|
|
347
|
+
"name": "O token do PagBank está inválido ou expirou.",
|
|
348
|
+
"message": "Acesse a dashboard e re-conecte para corrigir."
|
|
349
|
+
},
|
|
346
350
|
"EFIBANK_UNKNOWN_TRANSACTION": {
|
|
347
351
|
"name": "Não foi possível encontrar essa transação.",
|
|
348
352
|
"message": "Talvez ela não existe ou seja pertencente a outra conta."
|
package/types/errors.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export interface APIErrors {
|
|
|
126
126
|
'EFIBANK_BLOCKED_ACCOUNT': {};
|
|
127
127
|
'EFIBANK_UNKNOWN_TRANSACTION': {};
|
|
128
128
|
'EFIBANK_RATE_LIMIT': {};
|
|
129
|
+
'PAGBANK_INVALID_TOKEN': {};
|
|
129
130
|
'THIS_SELLER_HAS_NOT_YET_CONFIGURED_RECEIPT_VIA_PIX': {};
|
|
130
131
|
'THIS_SELLER_HAS_NOT_YET_CONFIGURED_RECEIPT_VIA_BOLETO': {};
|
|
131
132
|
'THIS_SELLER_HAS_NOT_YET_CONFIGURED_RECEIPT_VIA_CRYPTO': {};
|