@paynow-gg/typescript-sdk 1.0.16 → 1.0.17
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 +21 -21
- package/README.md +31 -31
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +28 -28
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 PayNow Services Inc
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 PayNow Services Inc
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
# PayNow TypeScript SDK
|
|
2
|
-
|
|
3
|
-
A TypeScript/JavaScript SDK for the [PayNow.gg API](https://paynow.gitbook.io/paynow-api)
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @paynow-gg/typescript-sdk
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Quick Start
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { createStorefrontClient } from "@paynow-gg/typescript-sdk";
|
|
15
|
-
|
|
16
|
-
const storefront = createStorefrontClient("411486491630370816");
|
|
17
|
-
|
|
18
|
-
storefront.store.getStorefrontStore().then((res) => console.log(res.data));
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
For issues with the SDK, please open an issue on GitHub.
|
|
22
|
-
For PayNow API documentation and support, visit the PayNow developer portal.
|
|
23
|
-
|
|
24
|
-
## PayNow.gg Support
|
|
25
|
-
|
|
26
|
-
For support, questions, or more information, join our Discord community:
|
|
27
|
-
|
|
28
|
-
- [Discord](https://discord.com/invite/paynow)
|
|
29
|
-
|
|
30
|
-
## Contributing
|
|
31
|
-
|
|
1
|
+
# PayNow TypeScript SDK
|
|
2
|
+
|
|
3
|
+
A TypeScript/JavaScript SDK for the [PayNow.gg API](https://paynow.gitbook.io/paynow-api)
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @paynow-gg/typescript-sdk
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { createStorefrontClient } from "@paynow-gg/typescript-sdk";
|
|
15
|
+
|
|
16
|
+
const storefront = createStorefrontClient("411486491630370816");
|
|
17
|
+
|
|
18
|
+
storefront.store.getStorefrontStore().then((res) => console.log(res.data));
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
For issues with the SDK, please open an issue on GitHub.
|
|
22
|
+
For PayNow API documentation and support, visit the PayNow developer portal.
|
|
23
|
+
|
|
24
|
+
## PayNow.gg Support
|
|
25
|
+
|
|
26
|
+
For support, questions, or more information, join our Discord community:
|
|
27
|
+
|
|
28
|
+
- [Discord](https://discord.com/invite/paynow)
|
|
29
|
+
|
|
30
|
+
## Contributing
|
|
31
|
+
|
|
32
32
|
Contributions are welcome! If you'd like to improve the SDK or suggest new features, please fork the repository, make your changes, and submit a pull request.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { isPayNowError } from "./errors";
|
|
2
2
|
import { createManagementClient } from "./management";
|
|
3
3
|
import { createStorefrontClient } from "./storefront";
|
|
4
|
+
import type { components as ManagementComponents } from "./generated/management";
|
|
5
|
+
import type { components as StorefrontComponents } from "./generated/storefront";
|
|
6
|
+
export type ManagementSchemas = ManagementComponents["schemas"];
|
|
7
|
+
export type StorefrontSchemas = StorefrontComponents["schemas"];
|
|
4
8
|
export { createManagementClient, createStorefrontClient, isPayNowError };
|
|
5
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,aAAa,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,KAAK,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEjF,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qCAAyC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qCAAyC;AAWgB,8FAXhD,sBAAa,OAWgD;AATtE,6CAAsD;AAS7C,uGATA,mCAAsB,OASA;AAR/B,6CAAsD;AAQrB,uGARxB,mCAAsB,OAQwB"}
|
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@paynow-gg/typescript-sdk",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"files": [
|
|
5
|
-
"dist"
|
|
6
|
-
],
|
|
7
|
-
"main": "dist/index.js",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "tsc",
|
|
11
|
-
"lint": "biome lint --write --unsafe ./src/",
|
|
12
|
-
"format": "biome format --write ./src/",
|
|
13
|
-
"check": "biome check --write --unsafe ./src/",
|
|
14
|
-
"generate": "npx tsx src/generate.ts"
|
|
15
|
-
},
|
|
16
|
-
"author": "PayNow Services Inc",
|
|
17
|
-
"license": "MIT",
|
|
18
|
-
"description": "Official TypeScript SDK for the PayNow API - providing type-safe access to storefront and management endpoints",
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@biomejs/biome": "2.1.1",
|
|
21
|
-
"@types/node": "^24.5.2",
|
|
22
|
-
"openapi-typescript": "^7.9.1",
|
|
23
|
-
"typescript": "^5.8.3"
|
|
24
|
-
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"axios": "^1.12.2"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@paynow-gg/typescript-sdk",
|
|
3
|
+
"version": "1.0.17",
|
|
4
|
+
"files": [
|
|
5
|
+
"dist"
|
|
6
|
+
],
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc",
|
|
11
|
+
"lint": "biome lint --write --unsafe ./src/",
|
|
12
|
+
"format": "biome format --write ./src/",
|
|
13
|
+
"check": "biome check --write --unsafe ./src/",
|
|
14
|
+
"generate": "npx tsx src/generate.ts"
|
|
15
|
+
},
|
|
16
|
+
"author": "PayNow Services Inc",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"description": "Official TypeScript SDK for the PayNow API - providing type-safe access to storefront and management endpoints",
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@biomejs/biome": "2.1.1",
|
|
21
|
+
"@types/node": "^24.5.2",
|
|
22
|
+
"openapi-typescript": "^7.9.1",
|
|
23
|
+
"typescript": "^5.8.3"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"axios": "^1.12.2"
|
|
27
|
+
}
|
|
28
|
+
}
|