ixc-orm 1.5.1 → 1.7.0
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.
- package/CHANGELOG.md +16 -1
- package/README.md +79 -13
- package/dist/IxcOrm.d.ts +81 -0
- package/dist/IxcOrm.js +186 -0
- package/dist/IxcResponse.d.ts +44 -0
- package/dist/IxcResponse.js +95 -0
- package/dist/api/Environment.d.ts +11 -0
- package/dist/api/Environment.js +34 -0
- package/dist/api/Operators.d.ts +9 -0
- package/dist/api/Operators.js +13 -0
- package/dist/api/Ordering.d.ts +13 -0
- package/dist/api/Ordering.js +40 -0
- package/dist/api/Pagination.d.ts +8 -0
- package/dist/api/Pagination.js +22 -0
- package/dist/api/Parameter.d.ts +18 -0
- package/dist/api/Parameter.js +41 -0
- package/dist/api/RequestEmitter.d.ts +84 -0
- package/dist/api/RequestEmitter.js +193 -0
- package/dist/api/Utils.d.ts +7 -0
- package/dist/api/Utils.js +11 -0
- package/dist/index.d.ts +12 -2
- package/dist/index.js +54 -5
- package/dist/recursos/index.d.ts +44 -7
- package/dist/recursos/index.js +44 -5
- package/dist/types.d.ts +1 -0
- package/jest.config.ts +33 -0
- package/package.json +14 -6
- package/tsconfig.json +11 -3
- package/tsconfig.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +0 -1
package/jest.config.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type {Config} from 'jest';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const config: Config = {
|
|
5
|
+
|
|
6
|
+
clearMocks: true,
|
|
7
|
+
collectCoverage: true,
|
|
8
|
+
coverageDirectory: 'coverage',
|
|
9
|
+
coverageProvider: 'v8',
|
|
10
|
+
|
|
11
|
+
transform: {
|
|
12
|
+
'^.+\\.(ts|tsx)$': 'ts-jest'
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
coverageReporters: [
|
|
16
|
+
'json'
|
|
17
|
+
],
|
|
18
|
+
|
|
19
|
+
setupFiles: [
|
|
20
|
+
"dotenv/config"
|
|
21
|
+
],
|
|
22
|
+
|
|
23
|
+
setupFilesAfterEnv: [
|
|
24
|
+
'./tests/jest.setup.ts'
|
|
25
|
+
],
|
|
26
|
+
|
|
27
|
+
testMatch: [
|
|
28
|
+
'<rootDir>/tests/**/*.test.ts'
|
|
29
|
+
]
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
export default config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ixc-orm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"declare": "tsc --declaration",
|
|
10
10
|
"build": "tsc --build",
|
|
11
|
-
"dev": "nodemon --watch \"src//\" --exec \"ts-node src/index.ts\" -e ts"
|
|
11
|
+
"dev": "nodemon --watch \"src//\" --exec \"ts-node src/index.ts\" -e ts",
|
|
12
|
+
"test": "jest"
|
|
12
13
|
},
|
|
13
14
|
"repository": {
|
|
14
15
|
"type": "git",
|
|
@@ -17,11 +18,12 @@
|
|
|
17
18
|
"keywords": [
|
|
18
19
|
"IXCSoft API",
|
|
19
20
|
"IXCsoft",
|
|
20
|
-
"IXC API"
|
|
21
|
+
"IXC API",
|
|
22
|
+
"IXC Provedor"
|
|
21
23
|
],
|
|
22
24
|
"author": {
|
|
23
25
|
"name": "Felipe Sousa",
|
|
24
|
-
"email": "
|
|
26
|
+
"email": "fscarmo@proton.me",
|
|
25
27
|
"url": "https://github.com/SousaFelipe"
|
|
26
28
|
},
|
|
27
29
|
"bugs": {
|
|
@@ -29,11 +31,17 @@
|
|
|
29
31
|
},
|
|
30
32
|
"dependencies": {
|
|
31
33
|
"axios": "^1.12.2",
|
|
32
|
-
"dotenv": "^17.2.2"
|
|
34
|
+
"dotenv": "^17.2.2",
|
|
35
|
+
"jsdom": "^27.0.0"
|
|
33
36
|
},
|
|
34
37
|
"devDependencies": {
|
|
35
|
-
"@
|
|
38
|
+
"@jest/globals": "^30.2.0",
|
|
39
|
+
"@types/jest": "^30.0.0",
|
|
40
|
+
"@types/jsdom": "^27.0.0",
|
|
41
|
+
"@types/node": "^24.5.2",
|
|
42
|
+
"jest": "^30.2.0",
|
|
36
43
|
"nodemon": "^3.1.10",
|
|
44
|
+
"ts-jest": "^29.4.5",
|
|
37
45
|
"ts-node": "^10.9.2",
|
|
38
46
|
"typescript": "^5.9.2"
|
|
39
47
|
}
|
package/tsconfig.json
CHANGED
|
@@ -3,14 +3,22 @@
|
|
|
3
3
|
"target": "es6",
|
|
4
4
|
"module": "commonjs",
|
|
5
5
|
"outDir": "./dist",
|
|
6
|
+
"rootDir": "./src",
|
|
6
7
|
"strict": true,
|
|
7
8
|
"declaration": true,
|
|
8
9
|
"noUnusedLocals": true,
|
|
9
10
|
"noUnusedParameters": true,
|
|
10
11
|
"noImplicitReturns": true,
|
|
11
12
|
"noFallthroughCasesInSwitch": true,
|
|
12
|
-
"esModuleInterop": true
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"skipLibCheck": true
|
|
13
15
|
},
|
|
14
|
-
"include": [
|
|
15
|
-
|
|
16
|
+
"include": [
|
|
17
|
+
"src/**/*"
|
|
18
|
+
],
|
|
19
|
+
"exclude": [
|
|
20
|
+
"node_modules",
|
|
21
|
+
"**/*.test.ts",
|
|
22
|
+
"jest.config.ts"
|
|
23
|
+
]
|
|
16
24
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["./src/ixcclient.ts","./src/ixcorm.ts","./src/ixcresponse.ts","./src/index.ts","./src/request.ts","./src/response.ts","./src/types.ts","./src/api/environment.ts","./src/api/operators.ts","./src/api/ordering.ts","./src/api/pagination.ts","./src/api/parameter.ts","./src/api/requestemitter.ts","./src/api/utils.ts","./src/recursos/cliente_contrato_btn_lib_temp_24722.ts","./src/recursos/desbloqueio_confianca.ts","./src/recursos/get_boleto.ts","./src/recursos/index.ts","./src/recursos/recurso.ts"],"version":"5.9.2"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["../src/ixcclient.ts","../src/index.ts","../src/request.ts","../src/response.ts","../src/types.ts","../src/recursos/cliente_contrato_btn_lib_temp_24722.ts","../src/recursos/desbloqueio_confianca.ts","../src/recursos/get_boleto.ts","../src/recursos/index.ts","../src/recursos/recurso.ts"],"version":"5.9.2"}
|