@djaouad10/shared-types 1.0.14 → 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 +12 -0
- 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;
|