@marcohefti/request-network-api-client 0.5.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/LICENSE +22 -0
- package/README.md +97 -0
- package/dist/cjs/domains/client-ids/index.js +309 -0
- package/dist/cjs/domains/client-ids/index.js.map +1 -0
- package/dist/cjs/domains/currencies/index.js +347 -0
- package/dist/cjs/domains/currencies/index.js.map +1 -0
- package/dist/cjs/domains/payer/index.js +450 -0
- package/dist/cjs/domains/payer/index.js.map +1 -0
- package/dist/cjs/domains/payouts/index.js +304 -0
- package/dist/cjs/domains/payouts/index.js.map +1 -0
- package/dist/cjs/domains/requests/index.js +544 -0
- package/dist/cjs/domains/requests/index.js.map +1 -0
- package/dist/cjs/index.js +3466 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/domains/client-ids/index.d.mts +2 -0
- package/dist/esm/domains/client-ids/index.js +307 -0
- package/dist/esm/domains/client-ids/index.js.map +1 -0
- package/dist/esm/domains/currencies/index.d.mts +3 -0
- package/dist/esm/domains/currencies/index.js +344 -0
- package/dist/esm/domains/currencies/index.js.map +1 -0
- package/dist/esm/domains/payer/index.d.mts +2 -0
- package/dist/esm/domains/payer/index.js +446 -0
- package/dist/esm/domains/payer/index.js.map +1 -0
- package/dist/esm/domains/payouts/index.d.mts +2 -0
- package/dist/esm/domains/payouts/index.js +302 -0
- package/dist/esm/domains/payouts/index.js.map +1 -0
- package/dist/esm/domains/requests/index.d.mts +2 -0
- package/dist/esm/domains/requests/index.js +542 -0
- package/dist/esm/domains/requests/index.js.map +1 -0
- package/dist/esm/index-BmWmfcnn.d.mts +113 -0
- package/dist/esm/index-CNK36ZX5.d.mts +26 -0
- package/dist/esm/index-Cd7x0Hv-.d.mts +39 -0
- package/dist/esm/index-Q2g0D7V8.d.mts +79 -0
- package/dist/esm/index-ziziGrHN.d.mts +220 -0
- package/dist/esm/index.d.mts +5478 -0
- package/dist/esm/index.js +3435 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/openapi-types-CtUFCrk4.d.mts +3368 -0
- package/package.json +168 -0
package/package.json
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@marcohefti/request-network-api-client",
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Request Network API client for Node and Browser.",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+ssh://git@github.com/marcohefti/request-network-api-client-ts.git"
|
|
13
|
+
},
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=20"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"request-network",
|
|
19
|
+
"payments",
|
|
20
|
+
"rest",
|
|
21
|
+
"client",
|
|
22
|
+
"typescript",
|
|
23
|
+
"web3"
|
|
24
|
+
],
|
|
25
|
+
"main": "./dist/cjs/index.js",
|
|
26
|
+
"module": "./dist/esm/index.js",
|
|
27
|
+
"types": "./dist/esm/index.d.mts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/esm/index.d.mts",
|
|
31
|
+
"import": "./dist/esm/index.js",
|
|
32
|
+
"require": "./dist/cjs/index.js",
|
|
33
|
+
"default": "./dist/esm/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./currencies": {
|
|
36
|
+
"types": "./dist/esm/domains/currencies/index.d.mts",
|
|
37
|
+
"import": "./dist/esm/domains/currencies/index.js",
|
|
38
|
+
"require": "./dist/cjs/domains/currencies/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./v1/currencies": {
|
|
41
|
+
"types": "./dist/esm/domains/currencies/v1/index.d.mts",
|
|
42
|
+
"import": "./dist/esm/domains/currencies/v1/index.js",
|
|
43
|
+
"require": "./dist/cjs/domains/currencies/v1/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./client-ids": {
|
|
46
|
+
"types": "./dist/esm/domains/client-ids/index.d.mts",
|
|
47
|
+
"import": "./dist/esm/domains/client-ids/index.js",
|
|
48
|
+
"require": "./dist/cjs/domains/client-ids/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./requests": {
|
|
51
|
+
"types": "./dist/esm/domains/requests/index.d.mts",
|
|
52
|
+
"import": "./dist/esm/domains/requests/index.js",
|
|
53
|
+
"require": "./dist/cjs/domains/requests/index.js"
|
|
54
|
+
},
|
|
55
|
+
"./v1/requests": {
|
|
56
|
+
"types": "./dist/esm/domains/requests/v1/index.d.mts",
|
|
57
|
+
"import": "./dist/esm/domains/requests/v1/index.js",
|
|
58
|
+
"require": "./dist/cjs/domains/requests/v1/index.js"
|
|
59
|
+
},
|
|
60
|
+
"./payouts": {
|
|
61
|
+
"types": "./dist/esm/domains/payouts/index.d.mts",
|
|
62
|
+
"import": "./dist/esm/domains/payouts/index.js",
|
|
63
|
+
"require": "./dist/cjs/domains/payouts/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./payments": {
|
|
66
|
+
"types": "./dist/esm/domains/payments/index.d.mts",
|
|
67
|
+
"import": "./dist/esm/domains/payments/index.js",
|
|
68
|
+
"require": "./dist/cjs/domains/payments/index.js"
|
|
69
|
+
},
|
|
70
|
+
"./pay": {
|
|
71
|
+
"types": "./dist/esm/domains/pay/index.d.mts",
|
|
72
|
+
"import": "./dist/esm/domains/pay/index.js",
|
|
73
|
+
"require": "./dist/cjs/domains/pay/index.js"
|
|
74
|
+
},
|
|
75
|
+
"./payer": {
|
|
76
|
+
"types": "./dist/esm/domains/payer/index.d.mts",
|
|
77
|
+
"import": "./dist/esm/domains/payer/index.js",
|
|
78
|
+
"require": "./dist/cjs/domains/payer/index.js"
|
|
79
|
+
},
|
|
80
|
+
"./v1/payer": {
|
|
81
|
+
"types": "./dist/esm/domains/payer/v1/index.d.mts",
|
|
82
|
+
"import": "./dist/esm/domains/payer/v1/index.js",
|
|
83
|
+
"require": "./dist/cjs/domains/payer/v1/index.js"
|
|
84
|
+
},
|
|
85
|
+
"./v2/payer": {
|
|
86
|
+
"types": "./dist/esm/domains/payer/v2/index.d.mts",
|
|
87
|
+
"import": "./dist/esm/domains/payer/v2/index.js",
|
|
88
|
+
"require": "./dist/cjs/domains/payer/v2/index.js"
|
|
89
|
+
},
|
|
90
|
+
"./v1/pay": {
|
|
91
|
+
"types": "./dist/esm/domains/pay/v1/index.d.mts",
|
|
92
|
+
"import": "./dist/esm/domains/pay/v1/index.js",
|
|
93
|
+
"require": "./dist/cjs/domains/pay/v1/index.js"
|
|
94
|
+
},
|
|
95
|
+
"./errors": {
|
|
96
|
+
"types": "./dist/esm/index.d.mts",
|
|
97
|
+
"import": "./dist/esm/index.js",
|
|
98
|
+
"require": "./dist/cjs/index.js"
|
|
99
|
+
},
|
|
100
|
+
"./http": {
|
|
101
|
+
"types": "./dist/esm/index.d.mts",
|
|
102
|
+
"import": "./dist/esm/index.js",
|
|
103
|
+
"require": "./dist/cjs/index.js"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"files": [
|
|
107
|
+
"dist"
|
|
108
|
+
],
|
|
109
|
+
"dependencies": {
|
|
110
|
+
"zod": "^3.23.8"
|
|
111
|
+
},
|
|
112
|
+
"sideEffects": [
|
|
113
|
+
"./src/validation/generated/**",
|
|
114
|
+
"./src/validation/overrides/**"
|
|
115
|
+
],
|
|
116
|
+
"devDependencies": {
|
|
117
|
+
"@marcohefti/request-network-api-contracts": "^0.5.0",
|
|
118
|
+
"@eslint/js": "^9.38.0",
|
|
119
|
+
"@types/express": "^4.17.25",
|
|
120
|
+
"@types/express-serve-static-core": "^4.19.7",
|
|
121
|
+
"@types/node": "^24.9.2",
|
|
122
|
+
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
123
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
124
|
+
"@vitest/coverage-v8": "^4.0.5",
|
|
125
|
+
"eslint": "^9.38.0",
|
|
126
|
+
"eslint-config-prettier": "^10.1.8",
|
|
127
|
+
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
128
|
+
"eslint-plugin-import": "^2.32.0",
|
|
129
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
130
|
+
"eslint-plugin-sonarjs": "^3.0.5",
|
|
131
|
+
"concurrently": "^9.1.0",
|
|
132
|
+
"express": "^4.19.2",
|
|
133
|
+
"msw": "^2.11.6",
|
|
134
|
+
"openapi-typescript": "^7.10.1",
|
|
135
|
+
"prettier": "^3.6.2",
|
|
136
|
+
"tsup": "^8.5.0",
|
|
137
|
+
"typescript": "^5.9.3",
|
|
138
|
+
"typescript-eslint": "^8.46.2",
|
|
139
|
+
"vitepress": "^1.6.4",
|
|
140
|
+
"vitest": "^4.0.5",
|
|
141
|
+
"tsx": "^4.19.2"
|
|
142
|
+
},
|
|
143
|
+
"scripts": {
|
|
144
|
+
"build": "tsup",
|
|
145
|
+
"build:watch": "tsup --watch",
|
|
146
|
+
"dev": "pnpm run build:watch",
|
|
147
|
+
"dev:webhook": "tsx examples/webhooks/local-listener.ts",
|
|
148
|
+
"tunnel:webhook": "tsx scripts/run-cloudflared.ts",
|
|
149
|
+
"webhook:dev:all": "concurrently -k -n listener,tunnel \"pnpm run dev:webhook\" \"pnpm run tunnel:webhook\"",
|
|
150
|
+
"lint": "eslint ./src ./tests --ext .ts",
|
|
151
|
+
"lint:fix": "eslint ./src ./tests --ext .ts --fix",
|
|
152
|
+
"test": "vitest run --passWithNoTests",
|
|
153
|
+
"coverage": "vitest run --coverage --passWithNoTests",
|
|
154
|
+
"test:matrix": "bash scripts/test-matrix.sh test",
|
|
155
|
+
"coverage:matrix": "bash scripts/test-matrix.sh coverage",
|
|
156
|
+
"test:watch": "vitest --passWithNoTests",
|
|
157
|
+
"test:live": "node scripts/run-integration-suite.mjs live",
|
|
158
|
+
"tsc": "tsc --project tsconfig.build.json --noEmit && tsc --project tsconfig.vitest.json --noEmit && tsc --project tsconfig.configs.json --noEmit",
|
|
159
|
+
"typecheck": "pnpm run tsc",
|
|
160
|
+
"fetch:openapi": "node scripts/fetch-openapi.mjs",
|
|
161
|
+
"generate:types": "node scripts/generate-types.mjs",
|
|
162
|
+
"generate:zod": "node scripts/generate-zod.mjs",
|
|
163
|
+
"prepare:spec": "pnpm run fetch:openapi && pnpm run generate:types && pnpm run generate:zod",
|
|
164
|
+
"docs:dev": "vitepress dev docs-site",
|
|
165
|
+
"docs:build": "vitepress build docs-site",
|
|
166
|
+
"docs:preview": "vitepress preview docs-site"
|
|
167
|
+
}
|
|
168
|
+
}
|