@tulip-systems/core 0.8.1 → 0.8.2
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.
- package/dist/modules/auth/handler/create-client.client.d.mts +10 -10
- package/dist/modules/auth/hooks/use-session.d.mts +2 -2
- package/dist/modules/inline-edit/lib/variants.d.mts +1 -1
- package/dist/modules/storage/components/dropzone.client.d.mts +2 -2
- package/dist/modules/storage/components/dropzone.client.d.mts.map +1 -1
- package/dist/modules/storage/lib/procedures.server.d.mts +8 -8
- package/dist/modules/storage/lib/schema.d.mts +1 -1
- package/dist/modules/storage/lib/service.server.d.mts +30 -30
- package/dist/modules/storage/lib/validators.d.mts +4 -4
- package/package.json +2 -1
|
@@ -172,7 +172,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
172
172
|
admin: {
|
|
173
173
|
listUsers: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
|
|
174
174
|
searchValue?: string | undefined;
|
|
175
|
-
searchField?: "
|
|
175
|
+
searchField?: "name" | "email" | undefined;
|
|
176
176
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
177
177
|
limit?: string | number | undefined;
|
|
178
178
|
offset?: string | number | undefined;
|
|
@@ -180,11 +180,11 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
180
180
|
sortDirection?: "asc" | "desc" | undefined;
|
|
181
181
|
filterField?: string | undefined;
|
|
182
182
|
filterValue?: string | number | boolean | string[] | number[] | undefined;
|
|
183
|
-
filterOperator?: "
|
|
183
|
+
filterOperator?: "in" | "contains" | "starts_with" | "ends_with" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "not_in" | undefined;
|
|
184
184
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
185
185
|
query: {
|
|
186
186
|
searchValue?: string | undefined;
|
|
187
|
-
searchField?: "
|
|
187
|
+
searchField?: "name" | "email" | undefined;
|
|
188
188
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
189
189
|
limit?: string | number | undefined;
|
|
190
190
|
offset?: string | number | undefined;
|
|
@@ -192,7 +192,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
192
192
|
sortDirection?: "asc" | "desc" | undefined;
|
|
193
193
|
filterField?: string | undefined;
|
|
194
194
|
filterValue?: string | number | boolean | string[] | number[] | undefined;
|
|
195
|
-
filterOperator?: "
|
|
195
|
+
filterOperator?: "in" | "contains" | "starts_with" | "ends_with" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "not_in" | undefined;
|
|
196
196
|
};
|
|
197
197
|
fetchOptions?: FetchOptions | undefined;
|
|
198
198
|
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
@@ -5834,9 +5834,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5834
5834
|
token: string;
|
|
5835
5835
|
ipAddress?: string | null | undefined;
|
|
5836
5836
|
userAgent?: string | null | undefined;
|
|
5837
|
-
} & {} & {
|
|
5837
|
+
} & {} & {} & {} & {
|
|
5838
5838
|
impersonatedBy?: string | null | undefined;
|
|
5839
|
-
}
|
|
5839
|
+
}>;
|
|
5840
5840
|
} | null, {
|
|
5841
5841
|
code?: string | undefined;
|
|
5842
5842
|
message?: string | undefined;
|
|
@@ -5945,9 +5945,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5945
5945
|
token: string;
|
|
5946
5946
|
ipAddress?: string | null | undefined;
|
|
5947
5947
|
userAgent?: string | null | undefined;
|
|
5948
|
-
} & {} & {
|
|
5948
|
+
} & {} & {} & {} & {
|
|
5949
5949
|
impersonatedBy?: string | null | undefined;
|
|
5950
|
-
}
|
|
5950
|
+
}>;
|
|
5951
5951
|
} | null;
|
|
5952
5952
|
isPending: boolean;
|
|
5953
5953
|
isRefetching: boolean;
|
|
@@ -5985,9 +5985,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5985
5985
|
token: string;
|
|
5986
5986
|
ipAddress?: string | null | undefined;
|
|
5987
5987
|
userAgent?: string | null | undefined;
|
|
5988
|
-
} & {} & {
|
|
5988
|
+
} & {} & {} & {} & {
|
|
5989
5989
|
impersonatedBy?: string | null | undefined;
|
|
5990
|
-
}
|
|
5990
|
+
}>;
|
|
5991
5991
|
};
|
|
5992
5992
|
};
|
|
5993
5993
|
$fetch: better_auth_client0.BetterFetch<{
|
|
@@ -32,9 +32,9 @@ declare function useSession(authClient: ClientAuth<never, never>): _tanstack_rea
|
|
|
32
32
|
token: string;
|
|
33
33
|
ipAddress?: string | null | undefined;
|
|
34
34
|
userAgent?: string | null | undefined;
|
|
35
|
-
} & {} & {
|
|
35
|
+
} & {} & {} & {} & {
|
|
36
36
|
impersonatedBy?: string | null | undefined;
|
|
37
|
-
}
|
|
37
|
+
}>;
|
|
38
38
|
} | null, Error>;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { useSession };
|
|
@@ -4,7 +4,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
4
4
|
//#region src/modules/inline-edit/lib/variants.d.ts
|
|
5
5
|
declare const inlineEditVariants: (props?: ({
|
|
6
6
|
variant?: "default" | "table" | null | undefined;
|
|
7
|
-
status?: "
|
|
7
|
+
status?: "idle" | "pending" | "success" | "error" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
9
9
|
type InlineEditVariantsProps = VariantProps<typeof inlineEditVariants>;
|
|
10
10
|
//#endregion
|
|
@@ -36,7 +36,7 @@ type DropzoneContentProps = {
|
|
|
36
36
|
declare function DropzoneContent({
|
|
37
37
|
children,
|
|
38
38
|
className
|
|
39
|
-
}: DropzoneContentProps): string | number | bigint | true |
|
|
39
|
+
}: DropzoneContentProps): string | number | bigint | true | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime0.JSX.Element | null;
|
|
40
40
|
/**
|
|
41
41
|
* DropzoneEmptyState
|
|
42
42
|
*/
|
|
@@ -47,7 +47,7 @@ type DropzoneEmptyStateProps = {
|
|
|
47
47
|
declare function DropzoneEmptyState({
|
|
48
48
|
children,
|
|
49
49
|
className
|
|
50
|
-
}: DropzoneEmptyStateProps): string | number | bigint | true |
|
|
50
|
+
}: DropzoneEmptyStateProps): string | number | bigint | true | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime0.JSX.Element | null;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { Dropzone, DropzoneContent, DropzoneContentProps, DropzoneEmptyState, DropzoneEmptyStateProps, DropzoneProps };
|
|
53
53
|
//# sourceMappingURL=dropzone.client.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropzone.client.d.mts","names":[],"sources":["../../../../src/modules/storage/components/dropzone.client.tsx"],"mappings":";;;;;;;;;KAcY,aAAA,GAAgB,IAAA,CAAK,eAAA;EAC/B,GAAA,GAAM,IAAA;EACN,SAAA;EACA,MAAA,IAAU,aAAA,EAAe,IAAA,IAAQ,cAAA,EAAgB,aAAA,IAAiB,KAAA,EAAO,SAAA;EACzE,QAAA,GAAW,SAAA;AAAA;AAAA,iBAGG,QAAA,CAAA;EACd,MAAA;EACA,QAAA;EACA,OAAA;EACA,OAAA;EACA,MAAA;EACA,OAAA;EACA,QAAA;EACA,GAAA;EACA,SAAA;EACA,QAAA;EAAA,GACG;AAAA,GACF,aAAA,GAAa,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;KA0CJ,oBAAA;EACV,QAAA,GAAW,SAAA;EACX,SAAA;AAAA;AAAA,iBAKc,eAAA,CAAA;EAAkB,QAAA;EAAU;AAAA,GAAa,oBAAA,qCAAoB,
|
|
1
|
+
{"version":3,"file":"dropzone.client.d.mts","names":[],"sources":["../../../../src/modules/storage/components/dropzone.client.tsx"],"mappings":";;;;;;;;;KAcY,aAAA,GAAgB,IAAA,CAAK,eAAA;EAC/B,GAAA,GAAM,IAAA;EACN,SAAA;EACA,MAAA,IAAU,aAAA,EAAe,IAAA,IAAQ,cAAA,EAAgB,aAAA,IAAiB,KAAA,EAAO,SAAA;EACzE,QAAA,GAAW,SAAA;AAAA;AAAA,iBAGG,QAAA,CAAA;EACd,MAAA;EACA,QAAA;EACA,OAAA;EACA,OAAA;EACA,MAAA;EACA,OAAA;EACA,QAAA;EACA,GAAA;EACA,SAAA;EACA,QAAA;EAAA,GACG;AAAA,GACF,aAAA,GAAa,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;KA0CJ,oBAAA;EACV,QAAA,GAAW,SAAA;EACX,SAAA;AAAA;AAAA,iBAKc,eAAA,CAAA;EAAkB,QAAA;EAAU;AAAA,GAAa,oBAAA,qCAAoB,QAAA,CAAA,SAAA,IAAA,OAAA,sCAAA,KAAA,CAAA,WAAA,GAAA,KAAA,CAAA,YAAA,mBAAA,KAAA,CAAA,qBAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;KA8BjE,uBAAA;EACV,QAAA,GAAW,SAAA;EACX,SAAA;AAAA;AAAA,iBAGc,kBAAA,CAAA;EAAqB,QAAA;EAAU;AAAA,GAAa,uBAAA,qCAAuB,QAAA,CAAA,SAAA,IAAA,OAAA,sCAAA,KAAA,CAAA,WAAA,GAAA,KAAA,CAAA,YAAA,mBAAA,KAAA,CAAA,qBAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -26,8 +26,8 @@ declare function createStorageProcedures<TSchema extends TDatabaseSchema>(): {
|
|
|
26
26
|
bucket: z$1.ZodString;
|
|
27
27
|
key: z$1.ZodString;
|
|
28
28
|
status: z$1.ZodEnum<{
|
|
29
|
-
error: "error";
|
|
30
29
|
pending: "pending";
|
|
30
|
+
error: "error";
|
|
31
31
|
ready: "ready";
|
|
32
32
|
}>;
|
|
33
33
|
visibility: z$1.ZodEnum<{
|
|
@@ -107,7 +107,7 @@ declare function createStorageProcedures<TSchema extends TDatabaseSchema>(): {
|
|
|
107
107
|
tableName: "storage_assets";
|
|
108
108
|
dataType: "string";
|
|
109
109
|
columnType: "PgEnumColumn";
|
|
110
|
-
data: "
|
|
110
|
+
data: "pending" | "error" | "ready";
|
|
111
111
|
driverParam: string;
|
|
112
112
|
notNull: true;
|
|
113
113
|
hasDefault: false;
|
|
@@ -383,7 +383,7 @@ declare function createStorageProcedures<TSchema extends TDatabaseSchema>(): {
|
|
|
383
383
|
tableName: "storage_assets";
|
|
384
384
|
dataType: "string";
|
|
385
385
|
columnType: "PgEnumColumn";
|
|
386
|
-
data: "
|
|
386
|
+
data: "pending" | "error" | "ready";
|
|
387
387
|
driverParam: string;
|
|
388
388
|
notNull: true;
|
|
389
389
|
hasDefault: false;
|
|
@@ -659,7 +659,7 @@ declare function createStorageProcedures<TSchema extends TDatabaseSchema>(): {
|
|
|
659
659
|
tableName: "storage_assets";
|
|
660
660
|
dataType: "string";
|
|
661
661
|
columnType: "PgEnumColumn";
|
|
662
|
-
data: "
|
|
662
|
+
data: "pending" | "error" | "ready";
|
|
663
663
|
driverParam: string;
|
|
664
664
|
notNull: true;
|
|
665
665
|
hasDefault: false;
|
|
@@ -935,7 +935,7 @@ declare function createStorageProcedures<TSchema extends TDatabaseSchema>(): {
|
|
|
935
935
|
tableName: "storage_assets";
|
|
936
936
|
dataType: "string";
|
|
937
937
|
columnType: "PgEnumColumn";
|
|
938
|
-
data: "
|
|
938
|
+
data: "pending" | "error" | "ready";
|
|
939
939
|
driverParam: string;
|
|
940
940
|
notNull: true;
|
|
941
941
|
hasDefault: false;
|
|
@@ -1211,7 +1211,7 @@ declare function createStorageProcedures<TSchema extends TDatabaseSchema>(): {
|
|
|
1211
1211
|
tableName: "storage_assets";
|
|
1212
1212
|
dataType: "string";
|
|
1213
1213
|
columnType: "PgEnumColumn";
|
|
1214
|
-
data: "
|
|
1214
|
+
data: "pending" | "error" | "ready";
|
|
1215
1215
|
driverParam: string;
|
|
1216
1216
|
notNull: true;
|
|
1217
1217
|
hasDefault: false;
|
|
@@ -1487,7 +1487,7 @@ declare function createStorageProcedures<TSchema extends TDatabaseSchema>(): {
|
|
|
1487
1487
|
tableName: "storage_assets";
|
|
1488
1488
|
dataType: "string";
|
|
1489
1489
|
columnType: "PgEnumColumn";
|
|
1490
|
-
data: "
|
|
1490
|
+
data: "pending" | "error" | "ready";
|
|
1491
1491
|
driverParam: string;
|
|
1492
1492
|
notNull: true;
|
|
1493
1493
|
hasDefault: false;
|
|
@@ -1763,7 +1763,7 @@ declare function createStorageProcedures<TSchema extends TDatabaseSchema>(): {
|
|
|
1763
1763
|
tableName: "storage_assets";
|
|
1764
1764
|
dataType: "string";
|
|
1765
1765
|
columnType: "PgEnumColumn";
|
|
1766
|
-
data: "
|
|
1766
|
+
data: "pending" | "error" | "ready";
|
|
1767
1767
|
driverParam: string;
|
|
1768
1768
|
notNull: true;
|
|
1769
1769
|
hasDefault: false;
|
|
@@ -66,7 +66,7 @@ declare const storageAssets: drizzle_orm_pg_core0.PgTableWithColumns<{
|
|
|
66
66
|
tableName: "storage_assets";
|
|
67
67
|
dataType: "string";
|
|
68
68
|
columnType: "PgEnumColumn";
|
|
69
|
-
data: "
|
|
69
|
+
data: "pending" | "error" | "ready";
|
|
70
70
|
driverParam: string;
|
|
71
71
|
notNull: true;
|
|
72
72
|
hasDefault: false;
|
|
@@ -124,7 +124,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
124
124
|
tableName: "storage_assets";
|
|
125
125
|
dataType: "string";
|
|
126
126
|
columnType: "PgEnumColumn";
|
|
127
|
-
data: "
|
|
127
|
+
data: "pending" | "error" | "ready";
|
|
128
128
|
driverParam: string;
|
|
129
129
|
notNull: true;
|
|
130
130
|
hasDefault: false;
|
|
@@ -346,7 +346,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
346
346
|
provider: "s3";
|
|
347
347
|
bucket: string;
|
|
348
348
|
key: string;
|
|
349
|
-
status: "
|
|
349
|
+
status: "pending" | "error" | "ready";
|
|
350
350
|
visibility: "private" | "public";
|
|
351
351
|
size: number | null;
|
|
352
352
|
contentType: string | null;
|
|
@@ -416,7 +416,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
416
416
|
tableName: "storage_assets";
|
|
417
417
|
dataType: "string";
|
|
418
418
|
columnType: "PgEnumColumn";
|
|
419
|
-
data: "
|
|
419
|
+
data: "pending" | "error" | "ready";
|
|
420
420
|
driverParam: string;
|
|
421
421
|
notNull: true;
|
|
422
422
|
hasDefault: false;
|
|
@@ -649,7 +649,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
649
649
|
provider: "s3";
|
|
650
650
|
bucket: string;
|
|
651
651
|
key: string;
|
|
652
|
-
status: "
|
|
652
|
+
status: "pending" | "error" | "ready";
|
|
653
653
|
visibility: "private" | "public";
|
|
654
654
|
size: number | null;
|
|
655
655
|
contentType: string | null;
|
|
@@ -736,7 +736,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
736
736
|
tableName: "storage_assets";
|
|
737
737
|
dataType: "string";
|
|
738
738
|
columnType: "PgEnumColumn";
|
|
739
|
-
data: "
|
|
739
|
+
data: "pending" | "error" | "ready";
|
|
740
740
|
driverParam: string;
|
|
741
741
|
notNull: true;
|
|
742
742
|
hasDefault: false;
|
|
@@ -958,7 +958,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
958
958
|
provider: "s3";
|
|
959
959
|
bucket: string;
|
|
960
960
|
key: string;
|
|
961
|
-
status: "
|
|
961
|
+
status: "pending" | "error" | "ready";
|
|
962
962
|
visibility: "private" | "public";
|
|
963
963
|
size: number | null;
|
|
964
964
|
contentType: string | null;
|
|
@@ -1028,7 +1028,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
1028
1028
|
tableName: "storage_assets";
|
|
1029
1029
|
dataType: "string";
|
|
1030
1030
|
columnType: "PgEnumColumn";
|
|
1031
|
-
data: "
|
|
1031
|
+
data: "pending" | "error" | "ready";
|
|
1032
1032
|
driverParam: string;
|
|
1033
1033
|
notNull: true;
|
|
1034
1034
|
hasDefault: false;
|
|
@@ -1263,7 +1263,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
1263
1263
|
provider: "s3";
|
|
1264
1264
|
bucket: string;
|
|
1265
1265
|
key: string;
|
|
1266
|
-
status: "
|
|
1266
|
+
status: "pending" | "error" | "ready";
|
|
1267
1267
|
visibility: "private" | "public";
|
|
1268
1268
|
size: number | null;
|
|
1269
1269
|
contentType: string | null;
|
|
@@ -1351,7 +1351,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
1351
1351
|
tableName: "storage_assets";
|
|
1352
1352
|
dataType: "string";
|
|
1353
1353
|
columnType: "PgEnumColumn";
|
|
1354
|
-
data: "
|
|
1354
|
+
data: "pending" | "error" | "ready";
|
|
1355
1355
|
driverParam: string;
|
|
1356
1356
|
notNull: true;
|
|
1357
1357
|
hasDefault: false;
|
|
@@ -1573,7 +1573,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
1573
1573
|
provider: "s3";
|
|
1574
1574
|
bucket: string;
|
|
1575
1575
|
key: string;
|
|
1576
|
-
status: "
|
|
1576
|
+
status: "pending" | "error" | "ready";
|
|
1577
1577
|
visibility: "private" | "public";
|
|
1578
1578
|
size: number | null;
|
|
1579
1579
|
contentType: string | null;
|
|
@@ -1643,7 +1643,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
1643
1643
|
tableName: "storage_assets";
|
|
1644
1644
|
dataType: "string";
|
|
1645
1645
|
columnType: "PgEnumColumn";
|
|
1646
|
-
data: "
|
|
1646
|
+
data: "pending" | "error" | "ready";
|
|
1647
1647
|
driverParam: string;
|
|
1648
1648
|
notNull: true;
|
|
1649
1649
|
hasDefault: false;
|
|
@@ -1876,7 +1876,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
1876
1876
|
provider: "s3";
|
|
1877
1877
|
bucket: string;
|
|
1878
1878
|
key: string;
|
|
1879
|
-
status: "
|
|
1879
|
+
status: "pending" | "error" | "ready";
|
|
1880
1880
|
visibility: "private" | "public";
|
|
1881
1881
|
size: number | null;
|
|
1882
1882
|
contentType: string | null;
|
|
@@ -1915,14 +1915,14 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
1915
1915
|
*/
|
|
1916
1916
|
presignUpload(props: PresignUploadInput): Promise<{
|
|
1917
1917
|
presignedUrl: string;
|
|
1918
|
-
|
|
1918
|
+
name: string | null;
|
|
1919
|
+
status: "pending" | "error" | "ready";
|
|
1920
|
+
metadata: unknown;
|
|
1919
1921
|
id: string;
|
|
1920
1922
|
createdAt: Date;
|
|
1921
1923
|
updatedAt: Date;
|
|
1922
|
-
|
|
1923
|
-
metadata: unknown;
|
|
1924
|
+
key: string;
|
|
1924
1925
|
provider: "s3";
|
|
1925
|
-
status: "error" | "pending" | "ready";
|
|
1926
1926
|
size: number | null;
|
|
1927
1927
|
uploadId: string;
|
|
1928
1928
|
visibility: "private" | "public";
|
|
@@ -1955,7 +1955,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
1955
1955
|
provider: "s3";
|
|
1956
1956
|
bucket: string;
|
|
1957
1957
|
key: string;
|
|
1958
|
-
status: "
|
|
1958
|
+
status: "pending" | "error" | "ready";
|
|
1959
1959
|
visibility: "private" | "public";
|
|
1960
1960
|
size: number | null;
|
|
1961
1961
|
contentType: string | null;
|
|
@@ -1996,7 +1996,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
1996
1996
|
provider: "s3";
|
|
1997
1997
|
bucket: string;
|
|
1998
1998
|
key: string;
|
|
1999
|
-
status: "
|
|
1999
|
+
status: "pending" | "error" | "ready";
|
|
2000
2000
|
visibility: "private" | "public";
|
|
2001
2001
|
size: number | null;
|
|
2002
2002
|
contentType: string | null;
|
|
@@ -2062,7 +2062,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
2062
2062
|
provider: "s3";
|
|
2063
2063
|
bucket: string;
|
|
2064
2064
|
key: string;
|
|
2065
|
-
status: "
|
|
2065
|
+
status: "pending" | "error" | "ready";
|
|
2066
2066
|
visibility: "private" | "public";
|
|
2067
2067
|
size: number | null;
|
|
2068
2068
|
contentType: string | null;
|
|
@@ -2091,7 +2091,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
2091
2091
|
provider: "s3";
|
|
2092
2092
|
bucket: string;
|
|
2093
2093
|
key: string;
|
|
2094
|
-
status: "
|
|
2094
|
+
status: "pending" | "error" | "ready";
|
|
2095
2095
|
visibility: "private" | "public";
|
|
2096
2096
|
size: number | null;
|
|
2097
2097
|
contentType: string | null;
|
|
@@ -2117,7 +2117,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
2117
2117
|
provider: "s3";
|
|
2118
2118
|
bucket: string;
|
|
2119
2119
|
key: string;
|
|
2120
|
-
status: "
|
|
2120
|
+
status: "pending" | "error" | "ready";
|
|
2121
2121
|
visibility: "private" | "public";
|
|
2122
2122
|
size: number | null;
|
|
2123
2123
|
contentType: string | null;
|
|
@@ -2141,7 +2141,7 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
2141
2141
|
provider: "s3";
|
|
2142
2142
|
bucket: string;
|
|
2143
2143
|
key: string;
|
|
2144
|
-
status: "
|
|
2144
|
+
status: "pending" | "error" | "ready";
|
|
2145
2145
|
visibility: "private" | "public";
|
|
2146
2146
|
size: number | null;
|
|
2147
2147
|
contentType: string | null;
|
|
@@ -2164,14 +2164,14 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
2164
2164
|
* @returns The purged asset record, or null if not found
|
|
2165
2165
|
*/
|
|
2166
2166
|
purgeAsset(input: string): Promise<{
|
|
2167
|
-
|
|
2167
|
+
name: string | null;
|
|
2168
|
+
status: "pending" | "error" | "ready";
|
|
2169
|
+
metadata: unknown;
|
|
2168
2170
|
id: string;
|
|
2169
2171
|
createdAt: Date;
|
|
2170
2172
|
updatedAt: Date;
|
|
2171
|
-
|
|
2172
|
-
metadata: unknown;
|
|
2173
|
+
key: string;
|
|
2173
2174
|
provider: "s3";
|
|
2174
|
-
status: "error" | "pending" | "ready";
|
|
2175
2175
|
size: number | null;
|
|
2176
2176
|
uploadId: string;
|
|
2177
2177
|
visibility: "private" | "public";
|
|
@@ -2195,14 +2195,14 @@ declare class Storage<TSchema extends TDatabaseSchema> {
|
|
|
2195
2195
|
* @throws {ServerError} If provider deletion fails
|
|
2196
2196
|
*/
|
|
2197
2197
|
purgeAssets(input: string[]): Promise<{
|
|
2198
|
-
|
|
2198
|
+
name: string | null;
|
|
2199
|
+
status: "pending" | "error" | "ready";
|
|
2200
|
+
metadata: unknown;
|
|
2199
2201
|
id: string;
|
|
2200
2202
|
createdAt: Date;
|
|
2201
2203
|
updatedAt: Date;
|
|
2202
|
-
|
|
2203
|
-
metadata: unknown;
|
|
2204
|
+
key: string;
|
|
2204
2205
|
provider: "s3";
|
|
2205
|
-
status: "error" | "pending" | "ready";
|
|
2206
2206
|
size: number | null;
|
|
2207
2207
|
uploadId: string;
|
|
2208
2208
|
visibility: "private" | "public";
|
|
@@ -77,7 +77,7 @@ declare const createStorageAssetSchema: drizzle_zod0.BuildSchema<"insert", {
|
|
|
77
77
|
tableName: "storage_assets";
|
|
78
78
|
dataType: "string";
|
|
79
79
|
columnType: "PgEnumColumn";
|
|
80
|
-
data: "
|
|
80
|
+
data: "pending" | "error" | "ready";
|
|
81
81
|
driverParam: string;
|
|
82
82
|
notNull: true;
|
|
83
83
|
hasDefault: false;
|
|
@@ -358,7 +358,7 @@ declare const updateStorageAssetSchema: drizzle_zod0.BuildSchema<"update", {
|
|
|
358
358
|
tableName: "storage_assets";
|
|
359
359
|
dataType: "string";
|
|
360
360
|
columnType: "PgEnumColumn";
|
|
361
|
-
data: "
|
|
361
|
+
data: "pending" | "error" | "ready";
|
|
362
362
|
driverParam: string;
|
|
363
363
|
notNull: true;
|
|
364
364
|
hasDefault: false;
|
|
@@ -639,7 +639,7 @@ declare const selectStorageAssetSchema: drizzle_zod0.BuildSchema<"select", {
|
|
|
639
639
|
tableName: "storage_assets";
|
|
640
640
|
dataType: "string";
|
|
641
641
|
columnType: "PgEnumColumn";
|
|
642
|
-
data: "
|
|
642
|
+
data: "pending" | "error" | "ready";
|
|
643
643
|
driverParam: string;
|
|
644
644
|
notNull: true;
|
|
645
645
|
hasDefault: false;
|
|
@@ -891,8 +891,8 @@ declare const presignUploadOutputSchema: z$1.ZodObject<{
|
|
|
891
891
|
bucket: z$1.ZodString;
|
|
892
892
|
key: z$1.ZodString;
|
|
893
893
|
status: z$1.ZodEnum<{
|
|
894
|
-
error: "error";
|
|
895
894
|
pending: "pending";
|
|
895
|
+
error: "error";
|
|
896
896
|
ready: "ready";
|
|
897
897
|
}>;
|
|
898
898
|
visibility: z$1.ZodEnum<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tulip-systems/core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -154,6 +154,7 @@
|
|
|
154
154
|
"scripts": {
|
|
155
155
|
"dev": "tsdown --config-loader tsdown.config.ts --watch",
|
|
156
156
|
"build": "tsdown --config-loader tsdown.config.ts",
|
|
157
|
+
"release:build": "pnpm run build",
|
|
157
158
|
"lint": "biome check",
|
|
158
159
|
"format": "biome format --write",
|
|
159
160
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|