serialstation 1.0.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 +21 -0
- package/README.md +272 -0
- package/dist/api/companies/index.d.mts +16 -0
- package/dist/api/companies/index.d.ts +16 -0
- package/dist/api/companies/index.js +41 -0
- package/dist/api/companies/index.js.map +1 -0
- package/dist/api/companies/index.mjs +16 -0
- package/dist/api/companies/index.mjs.map +1 -0
- package/dist/api/content-ids/index.d.mts +20 -0
- package/dist/api/content-ids/index.d.ts +20 -0
- package/dist/api/content-ids/index.js +47 -0
- package/dist/api/content-ids/index.js.map +1 -0
- package/dist/api/content-ids/index.mjs +22 -0
- package/dist/api/content-ids/index.mjs.map +1 -0
- package/dist/api/franchises/index.d.mts +16 -0
- package/dist/api/franchises/index.d.ts +16 -0
- package/dist/api/franchises/index.js +41 -0
- package/dist/api/franchises/index.js.map +1 -0
- package/dist/api/franchises/index.mjs +16 -0
- package/dist/api/franchises/index.mjs.map +1 -0
- package/dist/api/games/index.d.mts +20 -0
- package/dist/api/games/index.d.ts +20 -0
- package/dist/api/games/index.js +47 -0
- package/dist/api/games/index.js.map +1 -0
- package/dist/api/games/index.mjs +22 -0
- package/dist/api/games/index.mjs.map +1 -0
- package/dist/api/title-ids/index.d.mts +32 -0
- package/dist/api/title-ids/index.d.ts +32 -0
- package/dist/api/title-ids/index.js +58 -0
- package/dist/api/title-ids/index.js.map +1 -0
- package/dist/api/title-ids/index.mjs +33 -0
- package/dist/api/title-ids/index.mjs.map +1 -0
- package/dist/client/BaseClient.d.mts +76 -0
- package/dist/client/BaseClient.d.ts +76 -0
- package/dist/client/BaseClient.js +136 -0
- package/dist/client/BaseClient.js.map +1 -0
- package/dist/client/BaseClient.mjs +101 -0
- package/dist/client/BaseClient.mjs.map +1 -0
- package/dist/index.d.mts +44 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +263 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +220 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types/index.d.mts +23 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/index.js +19 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/types-BjzcHkoc.d.mts +25 -0
- package/dist/types-BjzcHkoc.d.ts +25 -0
- package/dist/types-BnaHEIcd.d.mts +41 -0
- package/dist/types-BnaHEIcd.d.ts +41 -0
- package/dist/types-Dv-1DNPu.d.mts +60 -0
- package/dist/types-Dv-1DNPu.d.ts +60 -0
- package/dist/types-KwGU8D6g.d.mts +66 -0
- package/dist/types-KwGU8D6g.d.ts +66 -0
- package/dist/types-axGWx6HR.d.mts +25 -0
- package/dist/types-axGWx6HR.d.ts +25 -0
- package/package.json +103 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tazhys
|
|
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
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
# serialstation
|
|
2
|
+
|
|
3
|
+
A TypeScript/JavaScript client library for interacting with the [SerialStation API](https://api.serialstation.com/v1/openapi.json). This package provides a comprehensive interface for accessing PlayStation title IDs, content IDs, games, franchises, and companies.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- 🎮 **Full API Coverage** - Access to all SerialStation API endpoints
|
|
8
|
+
- 🔄 **Automatic Retries** - Built-in retry logic for failed requests
|
|
9
|
+
- 🚀 **Modern ESM & CJS** - Supports both ES modules and CommonJS
|
|
10
|
+
- 📦 **Tree-shakeable** - Import only the modules you need via sub-path exports
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install serialstation
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
or
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
yarn add serialstation
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
or
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
pnpm add serialstation
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Quick Start
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import { SerialStationAPI } from 'serialstation';
|
|
34
|
+
|
|
35
|
+
// Create an API client instance
|
|
36
|
+
const api = new SerialStationAPI();
|
|
37
|
+
|
|
38
|
+
// List title IDs (Console: PS1, PS2, PS3, PS4, PS5, PSP, PSV, PSM)
|
|
39
|
+
const titleIds = await api.titleIds.listTitleIDs({
|
|
40
|
+
system: 'PS4',
|
|
41
|
+
limit: 10
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
console.log(`Found ${titleIds.count} title IDs`);
|
|
45
|
+
titleIds.items.forEach(item => {
|
|
46
|
+
console.log(`${item.name} (${item.title_id})`);
|
|
47
|
+
});
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Package Exports
|
|
51
|
+
|
|
52
|
+
The package supports sub-path imports for tree-shaking. Import from the main entry or specific modules:
|
|
53
|
+
|
|
54
|
+
| Import Path | Description |
|
|
55
|
+
|-------------|-------------|
|
|
56
|
+
| `serialstation` | Main package – `SerialStationAPI` and all API modules |
|
|
57
|
+
| `serialstation/client` | Base client (`SerialStationClient`) for custom API implementations |
|
|
58
|
+
| `serialstation/title-ids` | Title IDs API |
|
|
59
|
+
| `serialstation/content-ids` | Content IDs API |
|
|
60
|
+
| `serialstation/games` | Games API |
|
|
61
|
+
| `serialstation/franchises` | Franchises API |
|
|
62
|
+
| `serialstation/companies` | Companies API |
|
|
63
|
+
| `serialstation/types` | Shared types and enums |
|
|
64
|
+
|
|
65
|
+
```typescript
|
|
66
|
+
// Full import (recommended for most use cases)
|
|
67
|
+
import { SerialStationAPI } from 'serialstation';
|
|
68
|
+
|
|
69
|
+
// Tree-shaken imports – only include what you need
|
|
70
|
+
import { SerialStationClient } from 'serialstation/client';
|
|
71
|
+
import { TitleIDsAPI } from 'serialstation/title-ids';
|
|
72
|
+
import { GamesAPI } from 'serialstation/games';
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Configuration
|
|
76
|
+
|
|
77
|
+
You can configure the API client with custom options:
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import { SerialStationAPI } from 'serialstation';
|
|
81
|
+
|
|
82
|
+
const api = new SerialStationAPI({
|
|
83
|
+
baseURL: 'https://api.serialstation.com/v1', // Default API URL
|
|
84
|
+
timeout: 10000, // Request timeout in ms (default: 10000)
|
|
85
|
+
retries: 3, // Number of retry attempts (default: 3)
|
|
86
|
+
retryDelay: 1000, // Delay between retries in ms (default: 1000)
|
|
87
|
+
headers: { // Additional HTTP headers
|
|
88
|
+
'Custom-Header': 'value'
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## API Modules
|
|
94
|
+
|
|
95
|
+
The SerialStation API provides the following endpoints (see [OpenAPI spec](https://api.serialstation.com/v1/openapi.json)):
|
|
96
|
+
|
|
97
|
+
- **Title IDs** – PlayStation title ID information
|
|
98
|
+
- **Content IDs** – Content ID lookup
|
|
99
|
+
- **Games** – Game metadata with franchises, developers, publishers
|
|
100
|
+
- **Franchises** – Franchise information
|
|
101
|
+
- **Companies** – Developer and publisher data
|
|
102
|
+
|
|
103
|
+
### Title IDs API
|
|
104
|
+
|
|
105
|
+
Query PlayStation title ID information.
|
|
106
|
+
|
|
107
|
+
```typescript
|
|
108
|
+
import { SerialStationAPI } from 'serialstation';
|
|
109
|
+
|
|
110
|
+
const api = new SerialStationAPI();
|
|
111
|
+
|
|
112
|
+
// List title IDs (system: PS1, PS2, PS3, PS4, PS5, PSP, PSV, PSM)
|
|
113
|
+
const titleIds = await api.titleIds.listTitleIDs({
|
|
114
|
+
name: 'Gran Turismo',
|
|
115
|
+
system: 'PS4',
|
|
116
|
+
limit: 20,
|
|
117
|
+
offset: 0
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
// Get title ID details (9-character ID, e.g. CUSA01234)
|
|
121
|
+
const titleId = await api.titleIds.getTitleID('CUSA01234');
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Content IDs API
|
|
125
|
+
|
|
126
|
+
Query content ID information.
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
import { SerialStationAPI } from 'serialstation';
|
|
130
|
+
|
|
131
|
+
const api = new SerialStationAPI();
|
|
132
|
+
|
|
133
|
+
// List content IDs
|
|
134
|
+
const contentIds = await api.contentIds.listContentIDs({
|
|
135
|
+
title_id: 'CUSA01234',
|
|
136
|
+
name: 'Gran Turismo',
|
|
137
|
+
limit: 20
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
// Get content ID by UUID (36 characters)
|
|
141
|
+
const contentId = await api.contentIds.getContentID('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Games API
|
|
145
|
+
|
|
146
|
+
Query game metadata with franchises, developers, and publishers.
|
|
147
|
+
|
|
148
|
+
```typescript
|
|
149
|
+
import { SerialStationAPI } from 'serialstation';
|
|
150
|
+
|
|
151
|
+
const api = new SerialStationAPI();
|
|
152
|
+
|
|
153
|
+
// List games with filtering
|
|
154
|
+
const games = await api.games.listGames({
|
|
155
|
+
name: 'Gran Turismo',
|
|
156
|
+
franchise: 'franchise-uuid',
|
|
157
|
+
developer: 'company-uuid',
|
|
158
|
+
publisher: 'company-uuid',
|
|
159
|
+
limit: 20
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
// Get game by UUID
|
|
163
|
+
const game = await api.games.getGame('game-uuid-here');
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Franchises API
|
|
167
|
+
|
|
168
|
+
Query franchise information.
|
|
169
|
+
|
|
170
|
+
```typescript
|
|
171
|
+
import { SerialStationAPI } from 'serialstation';
|
|
172
|
+
|
|
173
|
+
const api = new SerialStationAPI();
|
|
174
|
+
|
|
175
|
+
// List franchises
|
|
176
|
+
const franchises = await api.franchises.listFranchises({
|
|
177
|
+
limit: 100,
|
|
178
|
+
offset: 0
|
|
179
|
+
});
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Companies API
|
|
183
|
+
|
|
184
|
+
Query developer and publisher company data.
|
|
185
|
+
|
|
186
|
+
```typescript
|
|
187
|
+
import { SerialStationAPI } from 'serialstation';
|
|
188
|
+
|
|
189
|
+
const api = new SerialStationAPI();
|
|
190
|
+
|
|
191
|
+
// List companies
|
|
192
|
+
const companies = await api.companies.listCompanies({
|
|
193
|
+
limit: 100,
|
|
194
|
+
offset: 0
|
|
195
|
+
});
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
## TypeScript Support
|
|
199
|
+
|
|
200
|
+
This package is written in TypeScript and includes full type definitions. All API methods and responses are fully typed:
|
|
201
|
+
|
|
202
|
+
```typescript
|
|
203
|
+
import {
|
|
204
|
+
SerialStationAPI,
|
|
205
|
+
TitleIDSchema,
|
|
206
|
+
type TitleIDFilterParams
|
|
207
|
+
} from 'serialstation';
|
|
208
|
+
|
|
209
|
+
const api = new SerialStationAPI();
|
|
210
|
+
|
|
211
|
+
const params: TitleIDFilterParams = {
|
|
212
|
+
system: 'PS4',
|
|
213
|
+
limit: 10
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
const result = await api.titleIds.listTitleIDs(params);
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
## Error Handling
|
|
220
|
+
|
|
221
|
+
The client includes automatic retry logic for rate-limited (429) and server error (5xx) responses. Failed requests will be retried up to the configured number of times with exponential backoff.
|
|
222
|
+
|
|
223
|
+
```typescript
|
|
224
|
+
import { SerialStationAPI } from 'serialstation';
|
|
225
|
+
|
|
226
|
+
const api = new SerialStationAPI({
|
|
227
|
+
retries: 5, // Retry up to 5 times
|
|
228
|
+
retryDelay: 2000 // Wait 2 seconds between retries
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
try {
|
|
232
|
+
const titleIds = await api.titleIds.listTitleIDs();
|
|
233
|
+
} catch (error) {
|
|
234
|
+
// Handle errors
|
|
235
|
+
console.error('Failed to fetch title IDs:', error);
|
|
236
|
+
}
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
## Available Enums
|
|
240
|
+
|
|
241
|
+
The API uses the following console values for filtering:
|
|
242
|
+
|
|
243
|
+
```typescript
|
|
244
|
+
// Console values (for system filter)
|
|
245
|
+
type Console = 'PS1' | 'PS2' | 'PS3' | 'PS4' | 'PS5' | 'PSP' | 'PSV' | 'PSM';
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
## Requirements
|
|
249
|
+
|
|
250
|
+
- Node.js >= 16.0.0
|
|
251
|
+
- npm, yarn, or pnpm
|
|
252
|
+
|
|
253
|
+
## Dependencies
|
|
254
|
+
|
|
255
|
+
- [axios](https://github.com/axios/axios) ^1.6.0 – HTTP client
|
|
256
|
+
|
|
257
|
+
## License
|
|
258
|
+
|
|
259
|
+
MIT
|
|
260
|
+
|
|
261
|
+
## Links
|
|
262
|
+
|
|
263
|
+
- [SerialStation API](https://api.serialstation.com/v1/openapi.json)
|
|
264
|
+
- [SerialStation](https://serialstation.com)
|
|
265
|
+
|
|
266
|
+
## Contributing
|
|
267
|
+
|
|
268
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
269
|
+
|
|
270
|
+
## Author
|
|
271
|
+
|
|
272
|
+
Tazhys
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SerialStationClient } from '../../client/BaseClient.mjs';
|
|
2
|
+
import { C as CompanyFilterParams, P as PagedCompanySchema } from '../../types-BjzcHkoc.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* API client for managing company information (developers, publishers).
|
|
6
|
+
*/
|
|
7
|
+
declare class CompaniesAPI {
|
|
8
|
+
private client;
|
|
9
|
+
constructor(client: SerialStationClient);
|
|
10
|
+
/**
|
|
11
|
+
* Lists companies with optional pagination.
|
|
12
|
+
*/
|
|
13
|
+
listCompanies(params?: CompanyFilterParams): Promise<PagedCompanySchema>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { CompaniesAPI };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SerialStationClient } from '../../client/BaseClient.js';
|
|
2
|
+
import { C as CompanyFilterParams, P as PagedCompanySchema } from '../../types-BjzcHkoc.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* API client for managing company information (developers, publishers).
|
|
6
|
+
*/
|
|
7
|
+
declare class CompaniesAPI {
|
|
8
|
+
private client;
|
|
9
|
+
constructor(client: SerialStationClient);
|
|
10
|
+
/**
|
|
11
|
+
* Lists companies with optional pagination.
|
|
12
|
+
*/
|
|
13
|
+
listCompanies(params?: CompanyFilterParams): Promise<PagedCompanySchema>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { CompaniesAPI };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/api/companies/index.ts
|
|
21
|
+
var companies_exports = {};
|
|
22
|
+
__export(companies_exports, {
|
|
23
|
+
CompaniesAPI: () => CompaniesAPI
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(companies_exports);
|
|
26
|
+
var CompaniesAPI = class {
|
|
27
|
+
constructor(client) {
|
|
28
|
+
this.client = client;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Lists companies with optional pagination.
|
|
32
|
+
*/
|
|
33
|
+
async listCompanies(params) {
|
|
34
|
+
return this.client.get("/companies/", params);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
CompaniesAPI
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/api/companies/index.ts"],"sourcesContent":["import { SerialStationClient } from '../../client/BaseClient';\r\nimport { PagedCompanySchema, CompanyFilterParams } from './types';\r\n\r\n/**\r\n * API client for managing company information (developers, publishers).\r\n */\r\nexport class CompaniesAPI {\r\n constructor(private client: SerialStationClient) {}\r\n\r\n /**\r\n * Lists companies with optional pagination.\r\n */\r\n async listCompanies(params?: CompanyFilterParams): Promise<PagedCompanySchema> {\r\n return this.client.get<PagedCompanySchema>('/companies/', params);\r\n }\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,IAAM,eAAN,MAAmB;AAAA,EACxB,YAAoB,QAA6B;AAA7B;AAAA,EAA8B;AAAA;AAAA;AAAA;AAAA,EAKlD,MAAM,cAAc,QAA2D;AAC7E,WAAO,KAAK,OAAO,IAAwB,eAAe,MAAM;AAAA,EAClE;AACF;","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/api/companies/index.ts
|
|
2
|
+
var CompaniesAPI = class {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Lists companies with optional pagination.
|
|
8
|
+
*/
|
|
9
|
+
async listCompanies(params) {
|
|
10
|
+
return this.client.get("/companies/", params);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
CompaniesAPI
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/api/companies/index.ts"],"sourcesContent":["import { SerialStationClient } from '../../client/BaseClient';\r\nimport { PagedCompanySchema, CompanyFilterParams } from './types';\r\n\r\n/**\r\n * API client for managing company information (developers, publishers).\r\n */\r\nexport class CompaniesAPI {\r\n constructor(private client: SerialStationClient) {}\r\n\r\n /**\r\n * Lists companies with optional pagination.\r\n */\r\n async listCompanies(params?: CompanyFilterParams): Promise<PagedCompanySchema> {\r\n return this.client.get<PagedCompanySchema>('/companies/', params);\r\n }\r\n}\r\n"],"mappings":";AAMO,IAAM,eAAN,MAAmB;AAAA,EACxB,YAAoB,QAA6B;AAA7B;AAAA,EAA8B;AAAA;AAAA;AAAA;AAAA,EAKlD,MAAM,cAAc,QAA2D;AAC7E,WAAO,KAAK,OAAO,IAAwB,eAAe,MAAM;AAAA,EAClE;AACF;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SerialStationClient } from '../../client/BaseClient.mjs';
|
|
2
|
+
import { C as ContentIDFilterParams, P as PagedContentIDSchema, b as ContentIDSchema } from '../../types-BnaHEIcd.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* API client for managing content ID information.
|
|
6
|
+
*/
|
|
7
|
+
declare class ContentIDsAPI {
|
|
8
|
+
private client;
|
|
9
|
+
constructor(client: SerialStationClient);
|
|
10
|
+
/**
|
|
11
|
+
* Lists content IDs with optional filtering and pagination.
|
|
12
|
+
*/
|
|
13
|
+
listContentIDs(params?: ContentIDFilterParams): Promise<PagedContentIDSchema>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves content ID information by its unique identifier (36-char UUID).
|
|
16
|
+
*/
|
|
17
|
+
getContentID(contentId: string): Promise<ContentIDSchema>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { ContentIDsAPI };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SerialStationClient } from '../../client/BaseClient.js';
|
|
2
|
+
import { C as ContentIDFilterParams, P as PagedContentIDSchema, b as ContentIDSchema } from '../../types-BnaHEIcd.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* API client for managing content ID information.
|
|
6
|
+
*/
|
|
7
|
+
declare class ContentIDsAPI {
|
|
8
|
+
private client;
|
|
9
|
+
constructor(client: SerialStationClient);
|
|
10
|
+
/**
|
|
11
|
+
* Lists content IDs with optional filtering and pagination.
|
|
12
|
+
*/
|
|
13
|
+
listContentIDs(params?: ContentIDFilterParams): Promise<PagedContentIDSchema>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves content ID information by its unique identifier (36-char UUID).
|
|
16
|
+
*/
|
|
17
|
+
getContentID(contentId: string): Promise<ContentIDSchema>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { ContentIDsAPI };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/api/content-ids/index.ts
|
|
21
|
+
var content_ids_exports = {};
|
|
22
|
+
__export(content_ids_exports, {
|
|
23
|
+
ContentIDsAPI: () => ContentIDsAPI
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(content_ids_exports);
|
|
26
|
+
var ContentIDsAPI = class {
|
|
27
|
+
constructor(client) {
|
|
28
|
+
this.client = client;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Lists content IDs with optional filtering and pagination.
|
|
32
|
+
*/
|
|
33
|
+
async listContentIDs(params) {
|
|
34
|
+
return this.client.get("/content-ids/", params);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves content ID information by its unique identifier (36-char UUID).
|
|
38
|
+
*/
|
|
39
|
+
async getContentID(contentId) {
|
|
40
|
+
return this.client.get(`/content-ids/${contentId}`);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
ContentIDsAPI
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/api/content-ids/index.ts"],"sourcesContent":["import { SerialStationClient } from '../../client/BaseClient';\r\nimport { ContentIDSchema, PagedContentIDSchema, ContentIDFilterParams } from './types';\r\n\r\n/**\r\n * API client for managing content ID information.\r\n */\r\nexport class ContentIDsAPI {\r\n constructor(private client: SerialStationClient) {}\r\n\r\n /**\r\n * Lists content IDs with optional filtering and pagination.\r\n */\r\n async listContentIDs(params?: ContentIDFilterParams): Promise<PagedContentIDSchema> {\r\n return this.client.get<PagedContentIDSchema>('/content-ids/', params);\r\n }\r\n\r\n /**\r\n * Retrieves content ID information by its unique identifier (36-char UUID).\r\n */\r\n async getContentID(contentId: string): Promise<ContentIDSchema> {\r\n return this.client.get<ContentIDSchema>(`/content-ids/${contentId}`);\r\n }\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,IAAM,gBAAN,MAAoB;AAAA,EACzB,YAAoB,QAA6B;AAA7B;AAAA,EAA8B;AAAA;AAAA;AAAA;AAAA,EAKlD,MAAM,eAAe,QAA+D;AAClF,WAAO,KAAK,OAAO,IAA0B,iBAAiB,MAAM;AAAA,EACtE;AAAA;AAAA;AAAA;AAAA,EAKA,MAAM,aAAa,WAA6C;AAC9D,WAAO,KAAK,OAAO,IAAqB,gBAAgB,SAAS,EAAE;AAAA,EACrE;AACF;","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/api/content-ids/index.ts
|
|
2
|
+
var ContentIDsAPI = class {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Lists content IDs with optional filtering and pagination.
|
|
8
|
+
*/
|
|
9
|
+
async listContentIDs(params) {
|
|
10
|
+
return this.client.get("/content-ids/", params);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves content ID information by its unique identifier (36-char UUID).
|
|
14
|
+
*/
|
|
15
|
+
async getContentID(contentId) {
|
|
16
|
+
return this.client.get(`/content-ids/${contentId}`);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
ContentIDsAPI
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/api/content-ids/index.ts"],"sourcesContent":["import { SerialStationClient } from '../../client/BaseClient';\r\nimport { ContentIDSchema, PagedContentIDSchema, ContentIDFilterParams } from './types';\r\n\r\n/**\r\n * API client for managing content ID information.\r\n */\r\nexport class ContentIDsAPI {\r\n constructor(private client: SerialStationClient) {}\r\n\r\n /**\r\n * Lists content IDs with optional filtering and pagination.\r\n */\r\n async listContentIDs(params?: ContentIDFilterParams): Promise<PagedContentIDSchema> {\r\n return this.client.get<PagedContentIDSchema>('/content-ids/', params);\r\n }\r\n\r\n /**\r\n * Retrieves content ID information by its unique identifier (36-char UUID).\r\n */\r\n async getContentID(contentId: string): Promise<ContentIDSchema> {\r\n return this.client.get<ContentIDSchema>(`/content-ids/${contentId}`);\r\n }\r\n}\r\n"],"mappings":";AAMO,IAAM,gBAAN,MAAoB;AAAA,EACzB,YAAoB,QAA6B;AAA7B;AAAA,EAA8B;AAAA;AAAA;AAAA;AAAA,EAKlD,MAAM,eAAe,QAA+D;AAClF,WAAO,KAAK,OAAO,IAA0B,iBAAiB,MAAM;AAAA,EACtE;AAAA;AAAA;AAAA;AAAA,EAKA,MAAM,aAAa,WAA6C;AAC9D,WAAO,KAAK,OAAO,IAAqB,gBAAgB,SAAS,EAAE;AAAA,EACrE;AACF;","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SerialStationClient } from '../../client/BaseClient.mjs';
|
|
2
|
+
import { F as FranchiseFilterParams, P as PagedFranchiseSchema } from '../../types-axGWx6HR.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* API client for managing franchise information.
|
|
6
|
+
*/
|
|
7
|
+
declare class FranchisesAPI {
|
|
8
|
+
private client;
|
|
9
|
+
constructor(client: SerialStationClient);
|
|
10
|
+
/**
|
|
11
|
+
* Lists franchises with optional pagination.
|
|
12
|
+
*/
|
|
13
|
+
listFranchises(params?: FranchiseFilterParams): Promise<PagedFranchiseSchema>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { FranchisesAPI };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SerialStationClient } from '../../client/BaseClient.js';
|
|
2
|
+
import { F as FranchiseFilterParams, P as PagedFranchiseSchema } from '../../types-axGWx6HR.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* API client for managing franchise information.
|
|
6
|
+
*/
|
|
7
|
+
declare class FranchisesAPI {
|
|
8
|
+
private client;
|
|
9
|
+
constructor(client: SerialStationClient);
|
|
10
|
+
/**
|
|
11
|
+
* Lists franchises with optional pagination.
|
|
12
|
+
*/
|
|
13
|
+
listFranchises(params?: FranchiseFilterParams): Promise<PagedFranchiseSchema>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { FranchisesAPI };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/api/franchises/index.ts
|
|
21
|
+
var franchises_exports = {};
|
|
22
|
+
__export(franchises_exports, {
|
|
23
|
+
FranchisesAPI: () => FranchisesAPI
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(franchises_exports);
|
|
26
|
+
var FranchisesAPI = class {
|
|
27
|
+
constructor(client) {
|
|
28
|
+
this.client = client;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Lists franchises with optional pagination.
|
|
32
|
+
*/
|
|
33
|
+
async listFranchises(params) {
|
|
34
|
+
return this.client.get("/franchises/", params);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
FranchisesAPI
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/api/franchises/index.ts"],"sourcesContent":["import { SerialStationClient } from '../../client/BaseClient';\r\nimport { PagedFranchiseSchema, FranchiseFilterParams } from './types';\r\n\r\n/**\r\n * API client for managing franchise information.\r\n */\r\nexport class FranchisesAPI {\r\n constructor(private client: SerialStationClient) {}\r\n\r\n /**\r\n * Lists franchises with optional pagination.\r\n */\r\n async listFranchises(params?: FranchiseFilterParams): Promise<PagedFranchiseSchema> {\r\n return this.client.get<PagedFranchiseSchema>('/franchises/', params);\r\n }\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,IAAM,gBAAN,MAAoB;AAAA,EACzB,YAAoB,QAA6B;AAA7B;AAAA,EAA8B;AAAA;AAAA;AAAA;AAAA,EAKlD,MAAM,eAAe,QAA+D;AAClF,WAAO,KAAK,OAAO,IAA0B,gBAAgB,MAAM;AAAA,EACrE;AACF;","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/api/franchises/index.ts
|
|
2
|
+
var FranchisesAPI = class {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Lists franchises with optional pagination.
|
|
8
|
+
*/
|
|
9
|
+
async listFranchises(params) {
|
|
10
|
+
return this.client.get("/franchises/", params);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
FranchisesAPI
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/api/franchises/index.ts"],"sourcesContent":["import { SerialStationClient } from '../../client/BaseClient';\r\nimport { PagedFranchiseSchema, FranchiseFilterParams } from './types';\r\n\r\n/**\r\n * API client for managing franchise information.\r\n */\r\nexport class FranchisesAPI {\r\n constructor(private client: SerialStationClient) {}\r\n\r\n /**\r\n * Lists franchises with optional pagination.\r\n */\r\n async listFranchises(params?: FranchiseFilterParams): Promise<PagedFranchiseSchema> {\r\n return this.client.get<PagedFranchiseSchema>('/franchises/', params);\r\n }\r\n}\r\n"],"mappings":";AAMO,IAAM,gBAAN,MAAoB;AAAA,EACzB,YAAoB,QAA6B;AAA7B;AAAA,EAA8B;AAAA;AAAA;AAAA;AAAA,EAKlD,MAAM,eAAe,QAA+D;AAClF,WAAO,KAAK,OAAO,IAA0B,gBAAgB,MAAM;AAAA,EACrE;AACF;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SerialStationClient } from '../../client/BaseClient.mjs';
|
|
2
|
+
import { a as GameFilterParams, P as PagedGameSchema, d as GameSchema } from '../../types-Dv-1DNPu.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* API client for managing game information.
|
|
6
|
+
*/
|
|
7
|
+
declare class GamesAPI {
|
|
8
|
+
private client;
|
|
9
|
+
constructor(client: SerialStationClient);
|
|
10
|
+
/**
|
|
11
|
+
* Lists games with optional filtering and pagination.
|
|
12
|
+
*/
|
|
13
|
+
listGames(params?: GameFilterParams): Promise<PagedGameSchema>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves game information by its UUID.
|
|
16
|
+
*/
|
|
17
|
+
getGame(gameId: string): Promise<GameSchema>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { GamesAPI };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SerialStationClient } from '../../client/BaseClient.js';
|
|
2
|
+
import { a as GameFilterParams, P as PagedGameSchema, d as GameSchema } from '../../types-Dv-1DNPu.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* API client for managing game information.
|
|
6
|
+
*/
|
|
7
|
+
declare class GamesAPI {
|
|
8
|
+
private client;
|
|
9
|
+
constructor(client: SerialStationClient);
|
|
10
|
+
/**
|
|
11
|
+
* Lists games with optional filtering and pagination.
|
|
12
|
+
*/
|
|
13
|
+
listGames(params?: GameFilterParams): Promise<PagedGameSchema>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves game information by its UUID.
|
|
16
|
+
*/
|
|
17
|
+
getGame(gameId: string): Promise<GameSchema>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { GamesAPI };
|