@budibase/types 3.24.5 → 3.24.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Optional } from "../../../shared";
|
|
1
2
|
import { Agent, AgentFile, ChatApp, ChatConversation, ChatConversationRequest, CreateChatConversationRequest } from "../../../documents";
|
|
2
3
|
export type ChatAgentRequest = ChatConversationRequest;
|
|
3
4
|
export type FetchAgentHistoryResponse = ChatConversation[];
|
|
@@ -7,7 +8,7 @@ export type UpdateChatAppRequest = Omit<ChatApp, "createdAt" | "updatedAt">;
|
|
|
7
8
|
export interface FetchAgentsResponse {
|
|
8
9
|
agents: Agent[];
|
|
9
10
|
}
|
|
10
|
-
export type CreateAgentRequest = Omit<Agent, "_id" | "_rev" | "createdAt" | "updatedAt">;
|
|
11
|
+
export type CreateAgentRequest = Optional<Omit<Agent, "_id" | "_rev" | "createdAt" | "updatedAt">, "aiconfig">;
|
|
11
12
|
export type CreateAgentResponse = Agent;
|
|
12
13
|
export type UpdateAgentRequest = Omit<Agent, "createdAt" | "updatedAt">;
|
|
13
14
|
export type UpdateAgentResponse = Agent;
|
|
@@ -30,6 +30,7 @@ export type RequiredKeys<T> = {
|
|
|
30
30
|
[K in keyof Required<T>]: T[K];
|
|
31
31
|
};
|
|
32
32
|
export type WithRequired<T, K extends keyof T> = T & Required<Pick<T, K>>;
|
|
33
|
+
export type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
33
34
|
export type WithoutDocMetadata<T extends Document> = Omit<T, "_id" | "_rev" | "createdAt" | "updatedAt">;
|
|
34
35
|
export type WithDocMetadata<T extends Document> = WithRequired<T, "_id" | "_rev" | "createdAt" | "updatedAt">;
|
|
35
36
|
export type ToDocCreateMetadata<T extends Document> = Omit<WithRequired<T, "_id">, "_rev" | "_deleted" | "createdAt" | "updatedAt">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/types",
|
|
3
|
-
"version": "3.24.
|
|
3
|
+
"version": "3.24.6",
|
|
4
4
|
"description": "Budibase types",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"scim-patch": "^0.8.1"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "e346f36cee24c74adbfeb31800d5b9f3ebe692c0"
|
|
31
31
|
}
|