From 8fd21c925d54857a018cfb0689afc0e9a46341eb Mon Sep 17 00:00:00 2001 From: kev Date: Tue, 26 Sep 2023 11:15:19 +0200 Subject: [PATCH] Update prompt type (#76) * Update prompt.ts * Up version to 0.1.76 --- lib/prompt.ts | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/prompt.ts b/lib/prompt.ts index 1317445..0c8f8a9 100644 --- a/lib/prompt.ts +++ b/lib/prompt.ts @@ -34,15 +34,17 @@ export type Prompt = { like?: number; use?: number; tags?: string[]; + user_id?: string; // eslint-disable-line camelcase + public: boolean; }; -export type PromptInsert = Pick; +export type PromptInsert = Pick; export type PromptUpdate = Partial; async function axiosWrapper( method: "get" | "post" | "put" | "delete", url: string, - data?: Record | undefined, + data?: Record | undefined, clientOptions: InputClientOptions = {}, ): Promise { const { token, endpoint } = await defaultOptions(clientOptions); diff --git a/package.json b/package.json index acfce1d..3b31cbf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polyfact", - "version": "0.1.75", + "version": "0.1.76", "main": "index.js", "types": "index.d.ts", "author": "Lancelot Owczarczak ",