@djaouad10/shared-types 1.0.13 → 1.0.15
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/index.d.ts +14 -8
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -47,6 +47,9 @@ export interface ExtendedVariationDTO {
|
|
|
47
47
|
available_qty: number;
|
|
48
48
|
weight_in_grams: number;
|
|
49
49
|
}
|
|
50
|
+
export type PublicVariationWithCartFlagDTO = PublicVariationDTO & {
|
|
51
|
+
isInCart: boolean;
|
|
52
|
+
};
|
|
50
53
|
export interface PublicCartItemDTO {
|
|
51
54
|
id: string;
|
|
52
55
|
userId: string;
|
|
@@ -858,6 +861,15 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
858
861
|
};
|
|
859
862
|
meta: object;
|
|
860
863
|
}>;
|
|
864
|
+
getAllWithCartFlag: import("@trpc/server").TRPCQueryProcedure<{
|
|
865
|
+
input: {
|
|
866
|
+
productId: string;
|
|
867
|
+
};
|
|
868
|
+
output: {
|
|
869
|
+
variations: PublicVariationWithCartFlagDTO[];
|
|
870
|
+
};
|
|
871
|
+
meta: object;
|
|
872
|
+
}>;
|
|
861
873
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
862
874
|
input: {
|
|
863
875
|
varaitionId: string;
|
|
@@ -2393,15 +2405,9 @@ declare const auth: import("better-auth").Auth<{
|
|
|
2393
2405
|
}>;
|
|
2394
2406
|
export type Auth = typeof auth;
|
|
2395
2407
|
declare const ourFileRouter: {
|
|
2396
|
-
|
|
2408
|
+
productImage: import("node_modules/uploadthing/dist/types-Bs3w2d_3.js").FileRoute<{
|
|
2397
2409
|
input: undefined;
|
|
2398
|
-
output:
|
|
2399
|
-
uploadedBy: string;
|
|
2400
|
-
publicUrl: string;
|
|
2401
|
-
name: string;
|
|
2402
|
-
key: string;
|
|
2403
|
-
type: string;
|
|
2404
|
-
};
|
|
2410
|
+
output: null;
|
|
2405
2411
|
errorShape: import("@uploadthing/shared").Json;
|
|
2406
2412
|
}>;
|
|
2407
2413
|
};
|