@paynow-gg/typescript-sdk 1.0.22 → 1.0.23

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 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/client.js CHANGED
@@ -41,7 +41,7 @@ function createClient(operationMappings, defaultHeaders, pathReplacements, optio
41
41
  ...config,
42
42
  url,
43
43
  method: mapping.method,
44
- data: config.data ?? {},
44
+ data: config?.data ?? {},
45
45
  });
46
46
  };
47
47
  },
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;AAyFA,oCAmEC;AA5JD,kDAIe;AAqFf,SAAgB,YAAY,CAC1B,iBAAmE,EACnE,cAAuC,EACvC,gBAAyC,EACzC,OAA6B;IAE7B,MAAM,MAAM,GAAG,eAAK,CAAC,MAAM,CAAC;QAC1B,OAAO,EAAE,uBAAuB;QAChC,GAAG,OAAO;QACV,OAAO,EAAE;YACP,cAAc,EAAE,kBAAkB;YAClC,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,EAAE,OAAO;YACnB,GAAG,cAAc;SAClB;KACF,CAAC,CAAC;IAEH,OAAO,IAAI,KAAK,CAAC,EAA0B,EAAE;QAC3C,GAAG,EAAE,CAAC,CAAC,EAAE,IAAY,EAAE,EAAE;YACvB,OAAO,IAAI,KAAK,CACd,EAAE,EACF;gBACE,GAAG,EAAE,CAAC,CAAC,EAAE,UAAkB,EAAE,EAAE;oBAC7B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;oBAE5D,MAAM,MAAM,GACV,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;oBA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C,IAAI,MAAM,CAAC,IAAI,GAAG,GAAG,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;4BACxD,CAAC;wBACH,CAAC;wBAED,IAAI,MAAM,EAAE,IAAI,EAAE,CAAC;4BACjB,GAAG,GAAG,GAAG,CAAC,OAAO,CACf,UAAU,EACV,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,GAAG,CAC3C,CAAC;wBACJ,CAAC;wBAED,OAAO,MAAM,CAAC,OAAO,CAAC;4BACpB,GAAG,MAAM;4BACT,GAAG;4BACH,MAAM,EAAE,OAAO,CAAC,MAAM;4BACtB,IAAI,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE;yBACzB,CAAC,CAAC;oBACL,CAAC,CAAC;gBACJ,CAAC;aACF,CACF,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
- {
2
- "name": "@paynow-gg/typescript-sdk",
3
- "version": "1.0.22",
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
- "packageManager": "pnpm@10.20.0"
29
- }
1
+ {
2
+ "name": "@paynow-gg/typescript-sdk",
3
+ "version": "1.0.23",
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
+ "packageManager": "pnpm@10.20.0"
29
+ }