chore: move types to @roleypoly/types package

This commit is contained in:
41666 2021-03-12 16:22:56 -05:00
parent 38ee680a33
commit a374030438
46 changed files with 244 additions and 59 deletions

View file

@ -1,9 +1,5 @@
import { CategoryType, Features, GuildData as GuildDataT } from '@roleypoly/types';
import KSUID from 'ksuid';
import {
CategoryType,
Features,
GuildData as GuildDataT,
} from '../../../src/common/types';
import { onlyRootUsers, respond } from '../utils/api-tools';
import { GuildData } from '../utils/kv';

View file

@ -1,9 +1,4 @@
import {
DiscordUser,
GuildSlug,
PresentableGuild,
SessionData,
} from '../../../src/common/types';
import { DiscordUser, GuildSlug, PresentableGuild, SessionData } from '@roleypoly/types';
import { respond, withSession } from '../utils/api-tools';
import { getGuild, getGuildData, getGuildMemberRoles } from '../utils/guild';

View file

@ -1,4 +1,4 @@
import { SessionData } from '../../../src/common/types';
import { SessionData } from '@roleypoly/types';
import { respond, withSession } from '../utils/api-tools';
export const GetSession = withSession((session?: SessionData) => (): Response => {

View file

@ -1,4 +1,4 @@
import { GuildSlug } from '../../../src/common/types';
import { GuildSlug } from '@roleypoly/types';
import { respond } from '../utils/api-tools';
import { getGuild } from '../utils/guild';

View file

@ -1,10 +1,5 @@
import { AuthTokenResponse, DiscordUser, GuildSlug, SessionData } from '@roleypoly/types';
import KSUID from 'ksuid';
import {
AuthTokenResponse,
DiscordUser,
GuildSlug,
SessionData,
} from '../../../src/common/types';
import {
AuthType,
discordFetch,

View file

@ -1,4 +1,4 @@
import { SessionData } from '../../../src/common/types';
import { SessionData } from '@roleypoly/types';
import { formData, respond, userAgent, withSession } from '../utils/api-tools';
import { botClientID, botClientSecret } from '../utils/config';
import { Sessions } from '../utils/kv';

View file

@ -1,4 +1,3 @@
import { difference, groupBy, keyBy, union } from 'lodash';
import {
GuildData,
Member,
@ -8,7 +7,8 @@ import {
RoleUpdate,
SessionData,
TransactionType,
} from '../../../src/common/types';
} from '@roleypoly/types';
import { difference, groupBy, keyBy, union } from 'lodash';
import { AuthType, discordFetch, respond, withSession } from '../utils/api-tools';
import { botToken } from '../utils/config';
import {