libertyts 1.0.1

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.
@@ -0,0 +1,6 @@
1
+ {
2
+ "BaseURLs": {
3
+ "v1": "https://api.policeroleplay.community/v1",
4
+ "v2": "https://api.policeroleplay.community/v2"
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ import { ClientOptions } from "./utils/types.js";
2
+ export declare class Client {
3
+ private apikey;
4
+ constructor(options: ClientOptions);
5
+ }
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAkB,MAAM,kBAAkB,CAAA;AAGhE,qBAAa,MAAM;IACf,OAAO,CAAC,MAAM,CAAQ;gBAEV,OAAO,EAAE,aAAa;CAWrC"}
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ export class Client {
2
+ constructor(options) {
3
+ if (!options?.apiKey) {
4
+ throw new Error('apiKey is required');
5
+ }
6
+ this.apikey = options.apiKey;
7
+ }
8
+ }
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,MAAM;IAGf,YAAY,OAAsB;QAC9B,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAA;QACzC,CAAC;QAED,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;IAChC,CAAC;CAKJ"}
@@ -0,0 +1,19 @@
1
+ export interface ClientOptions {
2
+ apiKey: string;
3
+ }
4
+ export type apiKey = string;
5
+ export type Player = {
6
+ Team: string;
7
+ Callsign: string | null;
8
+ Location: {
9
+ LocationX: number;
10
+ LocationZ: number;
11
+ PostalCode: string;
12
+ StreetName: string;
13
+ BuildingNumber: string;
14
+ };
15
+ Permission: string;
16
+ WantedStars: number;
17
+ };
18
+ export type Request = {};
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,MAAM,GAAG,MAAM,CAAA;AAE3B,MAAM,MAAM,MAAM,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE;QACN,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,cAAc,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG,EAErB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/utils/validators/commands.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/utils/validators/commands.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "libertyts",
3
+ "version": "1.0.1",
4
+ "description": "Official TypeScript Wrapper for Libery Tools (ERLC API Toolkit)",
5
+ "license": "ISC",
6
+ "author": "Liberty Tools",
7
+ "type": "module",
8
+ "main": "dist/index.js",
9
+ "types": "dist/index.d.ts",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "prepublishOnly": "npm run build",
16
+ "test": "echo \"Error: no test specified\" && exit 1"
17
+ },
18
+ "dependencies": {
19
+ "axios": "^1.13.6"
20
+ },
21
+ "devDependencies": {
22
+ "typescript": "^6.0.2"
23
+ }
24
+ }