pkg-sdk-test 0.0.14 → 0.0.15
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/README.md +295 -0
- package/dist/cjs/BaseClient.js +3 -3
- package/dist/cjs/Client.d.ts +4 -4
- package/dist/cjs/Client.js +3 -3
- package/dist/cjs/api/errors/BadRequestError.d.ts +3 -3
- package/dist/cjs/api/errors/BadRequestError.js +1 -1
- package/dist/cjs/api/errors/InternalServerError.d.ts +3 -3
- package/dist/cjs/api/errors/InternalServerError.js +1 -1
- package/dist/cjs/api/errors/NotFoundError.d.ts +3 -3
- package/dist/cjs/api/errors/NotFoundError.js +1 -1
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +3 -3
- package/dist/cjs/api/errors/UnauthorizedError.js +1 -1
- package/dist/cjs/api/resources/payments/client/Client.d.ts +23 -23
- package/dist/cjs/api/resources/payments/client/Client.js +37 -37
- package/dist/cjs/api/resources/payments/client/requests/CryptopayCreatePaymentRequest.d.ts +2 -2
- package/dist/cjs/api/resources/payments/client/requests/CryptopaySimulatePaymentRequest.d.ts +2 -2
- package/dist/cjs/api/resources/payments/client/requests/GetV1PaymentsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/payments/types/GetV1PaymentsPaymentIdResponse.d.ts +2 -2
- package/dist/cjs/api/resources/staticWallets/client/Client.d.ts +23 -23
- package/dist/cjs/api/resources/staticWallets/client/Client.js +32 -32
- package/dist/cjs/api/types/CryptopayListPaymentsResponse.d.ts +2 -2
- package/dist/cjs/api/types/CryptopayListStaticDepositsResponse.d.ts +2 -2
- package/dist/cjs/api/types/CryptopayListStaticWalletsResponse.d.ts +2 -2
- package/dist/cjs/api/types/CryptopayPaymentResponse.d.ts +5 -5
- package/dist/cjs/api/types/CryptopayPublicPaymentResponse.d.ts +4 -4
- package/dist/cjs/auth/HeaderAuthProvider.js +1 -1
- package/dist/cjs/errors/{SuwardApiError.d.ts → SuwardSDKError.d.ts} +1 -1
- package/dist/cjs/errors/{SuwardApiError.js → SuwardSDKError.js} +4 -4
- package/dist/{esm/errors/SuwardApiTimeoutError.d.mts → cjs/errors/SuwardSDKTimeoutError.d.ts} +1 -1
- package/dist/cjs/errors/{SuwardApiTimeoutError.js → SuwardSDKTimeoutError.js} +4 -4
- package/dist/cjs/errors/handleNonStatusCodeError.js +5 -5
- package/dist/cjs/errors/index.d.ts +2 -2
- package/dist/cjs/errors/index.js +5 -5
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +3 -3
- package/dist/esm/Client.d.mts +4 -4
- package/dist/esm/Client.mjs +1 -1
- package/dist/esm/api/errors/BadRequestError.d.mts +3 -3
- package/dist/esm/api/errors/BadRequestError.mjs +1 -1
- package/dist/esm/api/errors/InternalServerError.d.mts +3 -3
- package/dist/esm/api/errors/InternalServerError.mjs +1 -1
- package/dist/esm/api/errors/NotFoundError.d.mts +3 -3
- package/dist/esm/api/errors/NotFoundError.mjs +1 -1
- package/dist/esm/api/errors/UnauthorizedError.d.mts +3 -3
- package/dist/esm/api/errors/UnauthorizedError.mjs +1 -1
- package/dist/esm/api/resources/payments/client/Client.d.mts +23 -23
- package/dist/esm/api/resources/payments/client/Client.mjs +37 -37
- package/dist/esm/api/resources/payments/client/requests/CryptopayCreatePaymentRequest.d.mts +2 -2
- package/dist/esm/api/resources/payments/client/requests/CryptopaySimulatePaymentRequest.d.mts +2 -2
- package/dist/esm/api/resources/payments/client/requests/GetV1PaymentsRequest.d.mts +1 -1
- package/dist/esm/api/resources/payments/types/GetV1PaymentsPaymentIdResponse.d.mts +2 -2
- package/dist/esm/api/resources/staticWallets/client/Client.d.mts +23 -23
- package/dist/esm/api/resources/staticWallets/client/Client.mjs +32 -32
- package/dist/esm/api/types/CryptopayListPaymentsResponse.d.mts +2 -2
- package/dist/esm/api/types/CryptopayListStaticDepositsResponse.d.mts +2 -2
- package/dist/esm/api/types/CryptopayListStaticWalletsResponse.d.mts +2 -2
- package/dist/esm/api/types/CryptopayPaymentResponse.d.mts +5 -5
- package/dist/esm/api/types/CryptopayPublicPaymentResponse.d.mts +4 -4
- package/dist/esm/auth/HeaderAuthProvider.mjs +1 -1
- package/dist/esm/errors/{SuwardApiError.d.mts → SuwardSDKError.d.mts} +1 -1
- package/dist/esm/errors/{SuwardApiError.mjs → SuwardSDKError.mjs} +2 -2
- package/dist/{cjs/errors/SuwardApiTimeoutError.d.ts → esm/errors/SuwardSDKTimeoutError.d.mts} +1 -1
- package/dist/esm/errors/{SuwardApiTimeoutError.mjs → SuwardSDKTimeoutError.mjs} +2 -2
- package/dist/esm/errors/handleNonStatusCodeError.mjs +5 -5
- package/dist/esm/errors/index.d.mts +2 -2
- package/dist/esm/errors/index.mjs +2 -2
- package/dist/esm/index.d.mts +3 -3
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +86 -82
- package/reference.md +698 -0
package/package.json
CHANGED
|
@@ -1,87 +1,91 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": {
|
|
11
|
-
"types": "./dist/esm/index.d.mts",
|
|
12
|
-
"default": "./dist/esm/index.mjs"
|
|
13
|
-
},
|
|
14
|
-
"require": {
|
|
15
|
-
"types": "./dist/cjs/index.d.ts",
|
|
16
|
-
"default": "./dist/cjs/index.js"
|
|
17
|
-
},
|
|
18
|
-
"default": "./dist/cjs/index.js"
|
|
2
|
+
"name": "pkg-sdk-test",
|
|
3
|
+
"version": "0.0.15",
|
|
4
|
+
"private": false,
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/crylabsorg/suward-sdk-ts.git"
|
|
19
8
|
},
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
9
|
+
"type": "commonjs",
|
|
10
|
+
"main": "./dist/cjs/index.js",
|
|
11
|
+
"module": "./dist/esm/index.mjs",
|
|
12
|
+
"types": "./dist/cjs/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": {
|
|
16
|
+
"types": "./dist/esm/index.d.mts",
|
|
17
|
+
"default": "./dist/esm/index.mjs"
|
|
18
|
+
},
|
|
19
|
+
"require": {
|
|
20
|
+
"types": "./dist/cjs/index.d.ts",
|
|
21
|
+
"default": "./dist/cjs/index.js"
|
|
22
|
+
},
|
|
23
|
+
"default": "./dist/cjs/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./payments": {
|
|
26
|
+
"import": {
|
|
27
|
+
"types": "./dist/esm/api/resources/payments/exports.d.mts",
|
|
28
|
+
"default": "./dist/esm/api/resources/payments/exports.mjs"
|
|
29
|
+
},
|
|
30
|
+
"require": {
|
|
31
|
+
"types": "./dist/cjs/api/resources/payments/exports.d.ts",
|
|
32
|
+
"default": "./dist/cjs/api/resources/payments/exports.js"
|
|
33
|
+
},
|
|
34
|
+
"default": "./dist/cjs/api/resources/payments/exports.js"
|
|
35
|
+
},
|
|
36
|
+
"./staticWallets": {
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./dist/esm/api/resources/staticWallets/exports.d.mts",
|
|
39
|
+
"default": "./dist/esm/api/resources/staticWallets/exports.mjs"
|
|
40
|
+
},
|
|
41
|
+
"require": {
|
|
42
|
+
"types": "./dist/cjs/api/resources/staticWallets/exports.d.ts",
|
|
43
|
+
"default": "./dist/cjs/api/resources/staticWallets/exports.js"
|
|
44
|
+
},
|
|
45
|
+
"default": "./dist/cjs/api/resources/staticWallets/exports.js"
|
|
46
|
+
},
|
|
47
|
+
"./package.json": "./package.json"
|
|
30
48
|
},
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
49
|
+
"files": [
|
|
50
|
+
"dist",
|
|
51
|
+
"reference.md",
|
|
52
|
+
"README.md",
|
|
53
|
+
"LICENSE"
|
|
54
|
+
],
|
|
55
|
+
"scripts": {
|
|
56
|
+
"format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
57
|
+
"format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
58
|
+
"lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
59
|
+
"lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
60
|
+
"check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
61
|
+
"check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
62
|
+
"build": "pnpm build:cjs && pnpm build:esm",
|
|
63
|
+
"build:cjs": "tsc --project ./tsconfig.cjs.json",
|
|
64
|
+
"build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
|
|
65
|
+
"test": "vitest",
|
|
66
|
+
"test:unit": "vitest --project unit",
|
|
67
|
+
"test:wire": "vitest --project wire"
|
|
41
68
|
},
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"dependencies": {},
|
|
65
|
-
"devDependencies": {
|
|
66
|
-
"webpack": "^5.105.4",
|
|
67
|
-
"ts-loader": "^9.5.4",
|
|
68
|
-
"vitest": "^4.1.1",
|
|
69
|
-
"msw": "2.11.2",
|
|
70
|
-
"@types/node": "^20.0.0",
|
|
71
|
-
"typescript": "~5.9.3",
|
|
72
|
-
"@biomejs/biome": "2.4.10"
|
|
73
|
-
},
|
|
74
|
-
"browser": {
|
|
75
|
-
"fs": false,
|
|
76
|
-
"os": false,
|
|
77
|
-
"path": false,
|
|
78
|
-
"stream": false,
|
|
79
|
-
"crypto": false
|
|
80
|
-
},
|
|
81
|
-
"packageManager": "pnpm@10.33.0",
|
|
82
|
-
"engines": {
|
|
83
|
-
"node": ">=18.0.0"
|
|
84
|
-
},
|
|
85
|
-
"sideEffects": false,
|
|
86
|
-
"name": "pkg-sdk-test"
|
|
69
|
+
"dependencies": {},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"webpack": "^5.105.4",
|
|
72
|
+
"ts-loader": "^9.5.4",
|
|
73
|
+
"vitest": "^4.1.1",
|
|
74
|
+
"msw": "2.11.2",
|
|
75
|
+
"@types/node": "^20.0.0",
|
|
76
|
+
"typescript": "~5.9.3",
|
|
77
|
+
"@biomejs/biome": "2.4.10"
|
|
78
|
+
},
|
|
79
|
+
"browser": {
|
|
80
|
+
"fs": false,
|
|
81
|
+
"os": false,
|
|
82
|
+
"path": false,
|
|
83
|
+
"stream": false,
|
|
84
|
+
"crypto": false
|
|
85
|
+
},
|
|
86
|
+
"packageManager": "pnpm@10.33.0",
|
|
87
|
+
"engines": {
|
|
88
|
+
"node": ">=18.0.0"
|
|
89
|
+
},
|
|
90
|
+
"sideEffects": false
|
|
87
91
|
}
|