@djaouad10/shared-types 1.0.18 → 1.0.20

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.
Files changed (2) hide show
  1. package/index.d.ts +7 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -95,7 +95,7 @@ export interface PublicOrderDTO {
95
95
  shipping_details_id: string | null;
96
96
  delivery_type: DeliveryType;
97
97
  fragile: boolean;
98
- total_weight: number;
98
+ total_weight_in_kg: number;
99
99
  }
100
100
  export interface PublicShippingDetailsDTO {
101
101
  id: string;
@@ -130,6 +130,9 @@ export interface PublicRatingDTO {
130
130
  comment: string | null;
131
131
  isApproved: boolean;
132
132
  createdAt: Date;
133
+ user: {
134
+ name: string;
135
+ };
133
136
  }
134
137
  export interface RatingCursor {
135
138
  userId: string;
@@ -645,7 +648,7 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
645
648
  total_order_price: number;
646
649
  shipping_price_at_order_time: number;
647
650
  selected_shipping_provider: "WORLD_EXPRESS";
648
- total_weight: number;
651
+ total_weight_in_kg: number;
649
652
  shipping_details_id: string;
650
653
  total_product_price: never;
651
654
  delivery_type: never;
@@ -2197,7 +2200,7 @@ declare const auth: import("better-auth").Auth<{
2197
2200
  $Infer: {
2198
2201
  body: {
2199
2202
  permissions: {
2200
- readonly user?: ("set-role" | "create" | "update" | "delete" | "get" | "list" | "ban" | "impersonate" | "impersonate-admins" | "set-password")[] | undefined;
2203
+ readonly user?: ("delete" | "get" | "set-role" | "create" | "update" | "list" | "ban" | "impersonate" | "impersonate-admins" | "set-password")[] | undefined;
2201
2204
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
2202
2205
  };
2203
2206
  } & {
@@ -2412,6 +2415,7 @@ declare const auth: import("better-auth").Auth<{
2412
2415
  token: string;
2413
2416
  }, request: Request | undefined) => Promise<void>;
2414
2417
  };
2418
+ trustedOrigins: string[];
2415
2419
  }>;
2416
2420
  export type Auth = typeof auth;
2417
2421
  declare const ourFileRouter: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djaouad10/shared-types",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "types": "./index.d.ts",
5
5
  "publishConfig": {
6
6
  "access": "public"