@secrecy/lib 1.7.0-integration-trpc-client.28 → 1.7.0-integration-trpc-client.30
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.
|
@@ -19,7 +19,7 @@ export interface HashInfos {
|
|
|
19
19
|
export type UseSecrecyParams = Omit<HashInfos, 'appUrl'> & {
|
|
20
20
|
session?: boolean | undefined;
|
|
21
21
|
};
|
|
22
|
-
export declare function getSecrecyClient<Schema extends DatabaseSchema = DatabaseSchema>(session?: boolean
|
|
22
|
+
export declare function getSecrecyClient<Schema extends DatabaseSchema = DatabaseSchema>(session?: boolean): SecrecyClient<Schema> | null;
|
|
23
23
|
type LoginResponse<Params extends UseSecrecyParams, Schema extends DatabaseSchema> = Params extends {
|
|
24
24
|
redirect: true;
|
|
25
25
|
} ? SecrecyClient<Schema> | null : SecrecyClient<Schema>;
|
|
@@ -10,10 +10,13 @@ export interface DatabaseCountResponse {
|
|
|
10
10
|
export type DatabasePrimitiveFieldType = 'string' | 'number' | 'boolean';
|
|
11
11
|
export type DatabaseFieldType = DatabasePrimitiveFieldType | 'object';
|
|
12
12
|
export interface DatabaseFieldSchema {
|
|
13
|
+
uuid?: string;
|
|
13
14
|
type: DatabaseFieldType;
|
|
14
|
-
isArray?: boolean;
|
|
15
15
|
isKey?: boolean;
|
|
16
|
+
isEditable?: boolean;
|
|
17
|
+
isArray?: boolean;
|
|
16
18
|
isNullable?: boolean;
|
|
19
|
+
default?: unknown;
|
|
17
20
|
}
|
|
18
21
|
export type DatabaseTableSchema = Record<string, DatabaseFieldSchema>;
|
|
19
22
|
export type DatabaseEnvironmentSchema = Record<string, DatabaseTableSchema>;
|
package/dist/types/client.d.ts
CHANGED
|
@@ -5638,7 +5638,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
5638
5638
|
};
|
|
5639
5639
|
event: "update";
|
|
5640
5640
|
details: {
|
|
5641
|
-
key: "name" | "type" | "isArray" | "
|
|
5641
|
+
key: "name" | "type" | "isArray" | "uuid" | "isKey" | "isEditable" | "isNullable" | "default";
|
|
5642
5642
|
event: "update";
|
|
5643
5643
|
current?: unknown;
|
|
5644
5644
|
next?: unknown;
|
|
@@ -5848,7 +5848,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
|
|
|
5848
5848
|
};
|
|
5849
5849
|
event: "update";
|
|
5850
5850
|
details: {
|
|
5851
|
-
key: "name" | "type" | "isArray" | "
|
|
5851
|
+
key: "name" | "type" | "isArray" | "uuid" | "isKey" | "isEditable" | "isNullable" | "default";
|
|
5852
5852
|
event: "update";
|
|
5853
5853
|
current?: unknown;
|
|
5854
5854
|
next?: unknown;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@secrecy/lib",
|
|
3
3
|
"author": "Anonymize <anonymize@gmail.com>",
|
|
4
4
|
"description": "Anonymize Secrecy Library",
|
|
5
|
-
"version": "1.7.0-integration-trpc-client.
|
|
5
|
+
"version": "1.7.0-integration-trpc-client.30",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|