@djaouad10/shared-types 1.0.22 → 1.0.24
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 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -18,6 +18,11 @@ export interface PublicImageDTO {
|
|
|
18
18
|
public_url: string;
|
|
19
19
|
name: string;
|
|
20
20
|
}
|
|
21
|
+
export interface PublicImageDTOWithMainFlag {
|
|
22
|
+
public_url: string;
|
|
23
|
+
name: string;
|
|
24
|
+
is_main: boolean;
|
|
25
|
+
}
|
|
21
26
|
export interface PublicProductDTO {
|
|
22
27
|
id: string;
|
|
23
28
|
category: PublicCategoryDTO | null;
|
|
@@ -30,6 +35,9 @@ export interface PublicProductDTO {
|
|
|
30
35
|
description: string | null;
|
|
31
36
|
images: PublicImageDTO[];
|
|
32
37
|
}
|
|
38
|
+
export type ProductWithMainImage = Omit<PublicProductDTO, "images"> & {
|
|
39
|
+
images: PublicImageDTOWithMainFlag[];
|
|
40
|
+
};
|
|
33
41
|
export interface PublicVariationDTO {
|
|
34
42
|
id: string;
|
|
35
43
|
size: Size;
|
|
@@ -744,9 +752,9 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
744
752
|
phone: string;
|
|
745
753
|
address: string;
|
|
746
754
|
isFragile: boolean;
|
|
747
|
-
phone2?: string | undefined;
|
|
748
|
-
note?: string | undefined;
|
|
749
|
-
gpsLink?: string | undefined;
|
|
755
|
+
phone2?: string | null | undefined;
|
|
756
|
+
note?: string | null | undefined;
|
|
757
|
+
gpsLink?: string | null | undefined;
|
|
750
758
|
};
|
|
751
759
|
};
|
|
752
760
|
output: {
|
|
@@ -925,7 +933,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
925
933
|
productId: string;
|
|
926
934
|
};
|
|
927
935
|
output: {
|
|
928
|
-
product:
|
|
936
|
+
product: ProductWithMainImage;
|
|
929
937
|
};
|
|
930
938
|
meta: object;
|
|
931
939
|
}>;
|
|
@@ -934,7 +942,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
934
942
|
productId: string;
|
|
935
943
|
};
|
|
936
944
|
output: {
|
|
937
|
-
product:
|
|
945
|
+
product: ProductWithMainImage;
|
|
938
946
|
variations: ExtendedVariationDTO[];
|
|
939
947
|
images: ExtendedImageDTO[];
|
|
940
948
|
};
|
|
@@ -1294,7 +1302,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1294
1302
|
input: {
|
|
1295
1303
|
trackingNumber: string;
|
|
1296
1304
|
};
|
|
1297
|
-
output:
|
|
1305
|
+
output: Response;
|
|
1298
1306
|
meta: object;
|
|
1299
1307
|
}>;
|
|
1300
1308
|
getManyLabelsPdfUrl: import("@trpc/server").TRPCQueryProcedure<{
|