Skip to content

Commit

Permalink
Merge branch 'release-2.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
CalumW1 committed Aug 25, 2024
2 parents 87e93e8 + 39de855 commit cd572ad
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: NPM Install
run: npm install
- name: NPM Build
run: npm run build
- name: Publish package on NPM 📦
Expand Down
16 changes: 8 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Auth } from './methods/Auth';
import { GetUserByUsername, User } from './methods/GetUserByUsername';
import { GetUserByUserId } from './methods/GetUserByUserId';
import { GetUserProgression, Progression } from './methods/GetUserProgression';
import { GetServerStatus, ServerStatus } from './methods/GetServerStatus';
import { GetUserRank, UserRank } from './methods/GetUserRank';
import { GetOperator, GameModes } from './methods/GetOperator';
import { GetUserStats, UserStats } from './methods/GetUserStats';
import { Auth } from './methods/auth';
import { GetUserByUsername, User } from './methods/getUserByUsername';
import { GetUserByUserId } from './methods/getUserByUserId';
import { GetUserProgression, Progression } from './methods/getUserProgression.js';
import { GetServerStatus, ServerStatus } from './methods/getServerStatus';
import { GetUserRank, UserRank } from './methods/getUserRank.js';
import { GetOperator, GameModes } from './methods/getOperator';
// import { GetUserStats, UserStats } from './methods/GetUserStats';

export class R6StatAPI {
public async login(email: string, password: string): Promise<string> {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/methods/auth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fetch from 'node-fetch';
import { UBI_APPID, BASE_UBI_URI, UBI_AUTH_URI } from '../constants';
import { writeFile } from 'fs';
import { ApiClient } from './ApiClient';
import { ApiClient } from './apiClient';

export interface Authorise {
platformType: string;
Expand Down
4 changes: 2 additions & 2 deletions src/methods/GetOperator.ts → src/methods/getOperator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApiClient } from './ApiClient';
import { CheckToken, GetExperation } from './Auth';
import { ApiClient } from './apiClient';
import { CheckToken, GetExperation } from './auth';
import {
UBI_RANKED_SESSIONID,
UBI_DATADEV_APPID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
UBI_SERVER_STATUS_URI,
UBI_GETSERVERSTATUS,
} from '../constants';
import { CheckToken } from './Auth';
import { ApiClient } from './ApiClient';
import { CheckToken } from './auth';
import { ApiClient } from './apiClient';

export interface ServerStatus {
MDM: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CheckToken } from './Auth';
import { CheckToken } from './auth';
import { UBI_APPID, BASE_UBI_URI, UBI_GETUSERBYID_URI, AvatarImages } from '../constants';
import { ApiClient } from './ApiClient';
import { ApiClient } from './apiClient';

interface Profiles {
profiles: User[];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { UBI_APPID, BASE_UBI_URI, UBI_GETUSERBYUSERNAME_URI, AvatarImages } from '../constants';
import { CheckToken } from './Auth';
import { ApiClient } from './ApiClient';
import { CheckToken } from './auth';
import { ApiClient } from './apiClient';

interface Profiles {
profiles: User[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
UBI_PROGRESSION_SPACEID,
UBI_SESSIONID,
} from '../constants';
import { CheckToken } from './Auth';
import { ApiClient } from './ApiClient';
import { CheckToken } from './auth';
import { ApiClient } from './apiClient';

export interface Progression {
level: number;
Expand Down
4 changes: 2 additions & 2 deletions src/methods/GetUserRank.ts → src/methods/getUserRank.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApiClient } from './ApiClient';
import { CheckToken } from './Auth';
import { ApiClient } from './apiClient';
import { CheckToken } from './auth';
import { UBI_APPID, UBI_SESSIONID, BASE_UBI_URI, UBI_RANKED_URI_V2 } from '../constants';

export interface UserRank {
Expand Down
6 changes: 3 additions & 3 deletions src/methods/GetUserStats.ts → src/methods/getUserStats.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ApiClient } from './ApiClient';
import { CheckToken, GetExperation } from './Auth';
import { ApiClient } from './apiClient';
import { CheckToken, GetExperation } from './auth';
import {
RANKED_UBI_SPACEIDS,
UBI_DATADEV_SESSIONID,
UBI_DATADEV_URI,
UBI_GETSTATS,
} from '../constants';
import { GetUserByUserId, User } from './GetUserByUserId';
import { GetUserByUserId, User } from './getUserByUserId';

export interface UserStats {
all: Role;
Expand Down

0 comments on commit cd572ad

Please sign in to comment.