From bb3b4ab7d29c41331abf53d8dbdaf5827acf603a Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Mon, 13 Nov 2023 04:50:03 +0000 Subject: [PATCH] Remove chat and party services --- src/config.ts | 2 -- src/utils/api.ts | 4 +--- src/utils/global.ts | 10 ---------- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/config.ts b/src/config.ts index 646a28d7..933cde6c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -22,10 +22,8 @@ const config = { API_PORTAL_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'portal.', '/v1'), API_IDENTITY_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'identity.', '/v1'), API_GROUP_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'group.', '/v1'), - API_CHAT_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'chat.', '/v1'), API_CLOUD_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'cloud.', '/v1'), API_KV_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'kv.', '/v1'), - API_PARTY_URL: modifyBaseUrl(RIVET_API_ENDPOINT, 'party.', '/v1'), COMMUNITY_URL: 'https://discord.com/invite/aXYfyNxYVn', DOCUMENTATION_URL: 'https://rivet.gg/docs', diff --git a/src/utils/api.ts b/src/utils/api.ts index 4569a2ba..722f90f5 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -5,11 +5,9 @@ import * as portal from '@rivet-gg/portal'; import * as identity from '@rivet-gg/identity'; import * as group from '@rivet-gg/group'; -import * as chat from '@rivet-gg/chat'; import * as kv from '@rivet-gg/kv'; import * as auth from '@rivet-gg/auth'; -import * as party from '@rivet-gg/party'; export const requestHandlerMiddleware = portal.common.middleware.requestHandlerMiddleware; -export { portal, identity, group, auth, chat, kv, party }; +export { portal, identity, group, auth, kv }; diff --git a/src/utils/global.ts b/src/utils/global.ts index 3a715ea6..1681312d 100644 --- a/src/utils/global.ts +++ b/src/utils/global.ts @@ -58,9 +58,7 @@ export class GlobalState { portal: api.portal.PortalService; identity: api.identity.IdentityService; group: api.group.GroupService; - chat: api.chat.ChatService; kv: api.kv.KvService; - party: api.party.PartyService; }; auth: api.auth.AuthService; cloud: cloud.CloudService; @@ -182,18 +180,10 @@ export class GlobalState { endpoint: config.ORIGIN_API + '/group', requestHandler: refreshMiddleware() }), - chat: new api.chat.ChatService({ - endpoint: config.ORIGIN_API + '/chat', - requestHandler: refreshMiddleware() - }), kv: new api.kv.KvService({ endpoint: config.ORIGIN_API + '/kv', requestHandler: refreshMiddleware() }), - party: new api.party.PartyService({ - endpoint: config.ORIGIN_API + '/party', - requestHandler: refreshMiddleware() - }) }; this.auth = new api.auth.AuthService({