@swipegames/public-api 1.2.5 → 1.2.10

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 CHANGED
@@ -2,18 +2,16 @@
2
2
 
3
3
  TypeScript types and Zod schemas for the Swipe Games Public API.
4
4
 
5
+ This package is meant to be used as part of the [Swipe Games Integration SDK](https://www.npmjs.com/package/@swipegames/integration-sdk).
6
+
7
+ For more information check the full [Swipe Games Public API Documentation](https://swipegames.github.io/public-api/).
8
+
5
9
  ## Installation
6
10
 
7
11
  ```bash
8
12
  npm install @swipegames/public-api
9
13
  ```
10
14
 
11
- > **Note:** This package is published to GitHub Packages. You need to configure your `.npmrc` to use the GitHub registry for the `@swipegames` scope:
12
- >
13
- > ```
14
- > @swipegames:registry=https://npm.pkg.github.com
15
- > ```
16
-
17
15
  ## Usage
18
16
 
19
17
  ```typescript
@@ -21,13 +19,13 @@ import { CoreTypes, CoreSchemas, IntegrationTypes, IntegrationSchemas } from "@s
21
19
 
22
20
  // Use TypeScript types
23
21
  const request: CoreTypes.CreateNewGameRequest = {
24
- cID: "...",
25
- extCID: "...",
26
- gameID: "...",
27
- currency: "USD",
28
- locale: "en",
29
- platform: "desktop",
30
- demo: false,
22
+ cID: "...",
23
+ extCID: "...",
24
+ gameID: "...",
25
+ currency: "USD",
26
+ locale: "en",
27
+ platform: "desktop",
28
+ demo: false,
31
29
  };
32
30
 
33
31
  // Validate with Zod schemas
@@ -4,7 +4,7 @@
4
4
  * Swipe Games Core Public API
5
5
  * This is the Core API for Swipe Games Public API. It provides endpoints to create new games, manage free rounds campaigns, and more.
6
6
 
7
- * OpenAPI spec version: 1.2.5
7
+ * OpenAPI spec version: 1.2.10
8
8
  */
9
9
  /**
10
10
  * Platform type where the game can be launched
@@ -4,7 +4,7 @@
4
4
  * Swipe Games Core Public API
5
5
  * This is the Core API for Swipe Games Public API. It provides endpoints to create new games, manage free rounds campaigns, and more.
6
6
 
7
- * OpenAPI spec version: 1.2.5
7
+ * OpenAPI spec version: 1.2.10
8
8
  */
9
9
  import * as zod from 'zod';
10
10
  /**
@@ -4,7 +4,7 @@
4
4
  * Swipe Games Core Public API
5
5
  * This is the Core API for Swipe Games Public API. It provides endpoints to create new games, manage free rounds campaigns, and more.
6
6
 
7
- * OpenAPI spec version: 1.2.5
7
+ * OpenAPI spec version: 1.2.10
8
8
  */
9
9
  import * as zod from 'zod';
10
10
  /**
@@ -6,7 +6,7 @@
6
6
  It is used to make reverse calls to integrations working through Public API.
7
7
  Please implement this API on your side to support Swipe Games Public API.
8
8
 
9
- * OpenAPI spec version: 1.2.5
9
+ * OpenAPI spec version: 1.2.10
10
10
  */
11
11
  /**
12
12
  * Error code. Could be handled by client accordingly (with localized message and related action).
@@ -6,7 +6,7 @@
6
6
  It is used to make reverse calls to integrations working through Public API.
7
7
  Please implement this API on your side to support Swipe Games Public API.
8
8
 
9
- * OpenAPI spec version: 1.2.5
9
+ * OpenAPI spec version: 1.2.10
10
10
  */
11
11
  import * as zod from 'zod';
12
12
  /**
@@ -6,7 +6,7 @@
6
6
  It is used to make reverse calls to integrations working through Public API.
7
7
  Please implement this API on your side to support Swipe Games Public API.
8
8
 
9
- * OpenAPI spec version: 1.2.5
9
+ * OpenAPI spec version: 1.2.10
10
10
  */
11
11
  import * as zod from 'zod';
12
12
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swipegames/public-api",
3
- "version": "1.2.5",
3
+ "version": "1.2.10",
4
4
  "type": "module",
5
5
  "main": "./dist/packages/types/index.js",
6
6
  "types": "./dist/packages/types/index.d.ts",
@@ -10,6 +10,10 @@
10
10
  "import": "./dist/packages/types/index.js"
11
11
  }
12
12
  },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/SwipeGames/public-api.git"
16
+ },
13
17
  "license": "UNLICENSED",
14
18
  "files": [
15
19
  "dist"