@djaouad10/shared-types 1.0.26 → 1.0.28
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 +35 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -130,6 +130,9 @@ export type ExtendedOrderDTO = PublicOrderDTO & {
|
|
|
130
130
|
shipping_details: PublicShippingDetailsDTO;
|
|
131
131
|
order_items: ExtendedOrderItemDTO[];
|
|
132
132
|
};
|
|
133
|
+
export type DeliveredOrderSubStatus = "DRIVER_COLLECTED_CASH" | "STATION_COLLECTED_CASH" | "CASH_READY_FOR_COLLECTION_BY_SHIPPER" | "CASH_COLLECTED_BY_SHIPPER";
|
|
134
|
+
export type ReturnedOrderSubStatus = "RETURN_REQUEST_RECEIVED" | "RETURN_BEING_PROCESSED" | "RETURN_WITH_DRIVER" | "WILL_BE_RETURNED_TO_WAREHOUSE" | "RETURN_IN_TRANSIT" | "RETURNED_TO_WAREHOUSE" | "RETURN_DONE";
|
|
135
|
+
export type OrderSubStatusReturn = DeliveredOrderSubStatus | ReturnedOrderSubStatus | "UNKNOWN";
|
|
133
136
|
export interface PublicRatingDTO {
|
|
134
137
|
rating: number;
|
|
135
138
|
userId: string;
|
|
@@ -701,6 +704,13 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
701
704
|
};
|
|
702
705
|
meta: object;
|
|
703
706
|
}>;
|
|
707
|
+
getOrderSubStatus: import("@trpc/server").TRPCQueryProcedure<{
|
|
708
|
+
input: {
|
|
709
|
+
trackingNumber: string;
|
|
710
|
+
};
|
|
711
|
+
output: OrderSubStatusReturn;
|
|
712
|
+
meta: object;
|
|
713
|
+
}>;
|
|
704
714
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
705
715
|
input: {
|
|
706
716
|
clientId: string;
|
|
@@ -2583,14 +2593,35 @@ declare const auth: import("better-auth").Auth<{
|
|
|
2583
2593
|
token: string;
|
|
2584
2594
|
}, request: Request | undefined) => Promise<void>;
|
|
2585
2595
|
};
|
|
2596
|
+
socialProviders: {
|
|
2597
|
+
google: {
|
|
2598
|
+
clientId: string;
|
|
2599
|
+
clientSecret: string;
|
|
2600
|
+
prompt: "select_account";
|
|
2601
|
+
};
|
|
2602
|
+
};
|
|
2603
|
+
baseURL: string;
|
|
2586
2604
|
trustedOrigins: string[];
|
|
2587
2605
|
}>;
|
|
2588
2606
|
export type Auth = typeof auth;
|
|
2589
2607
|
declare const ourFileRouter: {
|
|
2590
|
-
productImage: import("
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2608
|
+
productImage: import("uploadthing/internal/types").Uploader<{
|
|
2609
|
+
_input: "unsetMarker" & {
|
|
2610
|
+
__brand: "unsetMarker";
|
|
2611
|
+
};
|
|
2612
|
+
_metadata: {
|
|
2613
|
+
userId: string;
|
|
2614
|
+
};
|
|
2615
|
+
_middlewareArgs: {
|
|
2616
|
+
req: import("express").Request;
|
|
2617
|
+
res: import("express").Response;
|
|
2618
|
+
event: undefined;
|
|
2619
|
+
};
|
|
2620
|
+
_errorShape: import("@uploadthing/shared").Json;
|
|
2621
|
+
_errorFn: "unsetMarker" & {
|
|
2622
|
+
__brand: "unsetMarker";
|
|
2623
|
+
};
|
|
2624
|
+
_output: void;
|
|
2594
2625
|
}>;
|
|
2595
2626
|
};
|
|
2596
2627
|
export type OurFileRouter = typeof ourFileRouter;
|