Skip to content

Commit de1823a

Browse files
ARIC LASRYARIC LASRY
ARIC LASRY
authored and
ARIC LASRY
committed
Moving KeyType for POC
1 parent 6c7fad5 commit de1823a

File tree

8 files changed

+28
-9
lines changed

8 files changed

+28
-9
lines changed

front/package-lock.json

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"dependencies": {
1616
"@dust-tt/sparkle": "^0.2.45",
17+
"@dust-tt/types": "file:../types",
1718
"@emoji-mart/data": "^1.1.2",
1819
"@emoji-mart/react": "^1.1.1",
1920
"@headlessui/react": "^1.7.7",

front/pages/api/w/[wId]/keys/[secret]/disable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { KeyType } from "@dust-tt/types";
12
import { NextApiRequest, NextApiResponse } from "next";
23

34
import { Authenticator, getSession } from "@app/lib/auth";
45
import { Key } from "@app/lib/models";
56
import { withLogging } from "@app/logger/withlogging";
6-
import { KeyType } from "@app/types/key";
77

88
export type PostKeysResponseBody = {
99
key: KeyType;

front/pages/api/w/[wId]/keys/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { KeyType } from "@dust-tt/types";
12
import { NextApiRequest, NextApiResponse } from "next";
23

34
import { Authenticator, getSession } from "@app/lib/auth";
45
import { Key } from "@app/lib/models";
56
import { new_id } from "@app/lib/utils";
67
import { withLogging } from "@app/logger/withlogging";
7-
import { KeyType } from "@app/types/key";
88

99
export type GetKeysResponseBody = {
1010
keys: KeyType[];

front/pages/w/[wId]/a/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Button, CommandLineIcon, Page, PlusIcon } from "@dust-tt/sparkle";
2+
import { KeyType } from "@dust-tt/types";
23
import { EyeIcon, EyeSlashIcon } from "@heroicons/react/24/outline";
34
import { GetServerSideProps, InferGetServerSidePropsType } from "next";
45
import Link from "next/link";
@@ -25,7 +26,6 @@ import { modelProviders, serviceProviders } from "@app/lib/providers";
2526
import { useKeys, useProviders } from "@app/lib/swr";
2627
import { classNames } from "@app/lib/utils";
2728
import { AppType } from "@app/types/app";
28-
import { KeyType } from "@app/types/key";
2929
import { UserType, WorkspaceType } from "@app/types/user";
3030

3131
const { GA_TRACKING_ID = "" } = process.env;

types/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18.15.0
File renamed without changes.

types/src/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
export const sum = (a: number, b: number) => {
2-
if ('development' === process.env.NODE_ENV) {
3-
console.log('dev only output');
4-
}
5-
return a + b;
6-
};
1+
import { KeyType } from "./front/types/key";
2+
export {KeyType};

0 commit comments

Comments
 (0)