Skip to content

Commit 69ca42b

Browse files
committed
V2
Remove rest
1 parent d3e2872 commit 69ca42b

19 files changed

Lines changed: 50 additions & 158 deletions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@countbot/countbot-api-types",
3-
"version": "1.41.0",
3+
"version": "2.0.0",
44
"description": "API types for CountBot",
55
"author": {
66
"name": "CountBot",

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export * from './payloads/index.js';
2-
export * from './rest/index.js';
32
export * from './utils/index.js';

src/payloads/Channel.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
import type { CountingMode } from '../rest/Channel.js';
1+
export const CountingModes = [
2+
'DEFAULT',
3+
'EVEN',
4+
'ODD',
5+
'THREE',
6+
'FOUR',
7+
'FIVE',
8+
'SIX',
9+
'SEVEN',
10+
'EIGHT',
11+
'NINE',
12+
'TEN',
13+
'PRIME',
14+
] as const;
15+
16+
export type CountingMode = (typeof CountingModes)[number];
217

318
export interface CountingChannelGoal {
419
/**

src/payloads/ChannelModifiers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Modifiers } from '../utils/modifiers.js';
1+
import type { Modifiers } from '../utils/BaseModifier.js';
22

33
export interface APICountingChannelModifiers<IDType> {
44
/**

src/payloads/UserModifiers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Modifiers } from '../utils/modifiers.js';
1+
import type { Modifiers } from '../utils/BaseModifier.js';
22

33
export interface APICountingUserModifiers<IDType> {
44
/**

src/rest/Channel.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/rest/ChannelModifiers.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/rest/Guild.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/rest/Status.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/rest/Summary.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)