@djaouad10/shared-types 1.0.25 → 1.0.27
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 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -130,6 +130,8 @@ 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";
|
|
133
135
|
export interface PublicRatingDTO {
|
|
134
136
|
rating: number;
|
|
135
137
|
userId: string;
|
|
@@ -701,6 +703,13 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
701
703
|
};
|
|
702
704
|
meta: object;
|
|
703
705
|
}>;
|
|
706
|
+
getOrderSubStatus: import("@trpc/server").TRPCQueryProcedure<{
|
|
707
|
+
input: {
|
|
708
|
+
trackingNumber: string;
|
|
709
|
+
};
|
|
710
|
+
output: DeliveredOrderSubStatus | ReturnedOrderSubStatus;
|
|
711
|
+
meta: object;
|
|
712
|
+
}>;
|
|
704
713
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
705
714
|
input: {
|
|
706
715
|
clientId: string;
|
|
@@ -1488,7 +1497,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1488
1497
|
count: number;
|
|
1489
1498
|
}[];
|
|
1490
1499
|
};
|
|
1491
|
-
|
|
1500
|
+
reservedAndAvailableStockQtyNumber: {
|
|
1492
1501
|
data: {
|
|
1493
1502
|
reservedQty: number;
|
|
1494
1503
|
availableQty: number;
|
|
@@ -2583,14 +2592,35 @@ declare const auth: import("better-auth").Auth<{
|
|
|
2583
2592
|
token: string;
|
|
2584
2593
|
}, request: Request | undefined) => Promise<void>;
|
|
2585
2594
|
};
|
|
2595
|
+
socialProviders: {
|
|
2596
|
+
google: {
|
|
2597
|
+
clientId: string;
|
|
2598
|
+
clientSecret: string;
|
|
2599
|
+
prompt: "select_account";
|
|
2600
|
+
};
|
|
2601
|
+
};
|
|
2602
|
+
baseURL: string;
|
|
2586
2603
|
trustedOrigins: string[];
|
|
2587
2604
|
}>;
|
|
2588
2605
|
export type Auth = typeof auth;
|
|
2589
2606
|
declare const ourFileRouter: {
|
|
2590
|
-
productImage: import("
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2607
|
+
productImage: import("uploadthing/internal/types").Uploader<{
|
|
2608
|
+
_input: "unsetMarker" & {
|
|
2609
|
+
__brand: "unsetMarker";
|
|
2610
|
+
};
|
|
2611
|
+
_metadata: {
|
|
2612
|
+
userId: string;
|
|
2613
|
+
};
|
|
2614
|
+
_middlewareArgs: {
|
|
2615
|
+
req: import("express").Request;
|
|
2616
|
+
res: import("express").Response;
|
|
2617
|
+
event: undefined;
|
|
2618
|
+
};
|
|
2619
|
+
_errorShape: import("@uploadthing/shared").Json;
|
|
2620
|
+
_errorFn: "unsetMarker" & {
|
|
2621
|
+
__brand: "unsetMarker";
|
|
2622
|
+
};
|
|
2623
|
+
_output: void;
|
|
2594
2624
|
}>;
|
|
2595
2625
|
};
|
|
2596
2626
|
export type OurFileRouter = typeof ourFileRouter;
|