@djaouad10/shared-types 1.0.14 → 1.0.17

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 +22 -0
  2. 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;
@@ -1223,6 +1235,16 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1223
1235
  }[];
1224
1236
  meta: object;
1225
1237
  }>;
1238
+ getDeliveryFeesOfWilaya: import("@trpc/server").TRPCQueryProcedure<{
1239
+ input: {
1240
+ wilayaId: number;
1241
+ };
1242
+ output: {
1243
+ homeDeliveryFee: number;
1244
+ stopeDeskFee: number;
1245
+ };
1246
+ meta: object;
1247
+ }>;
1226
1248
  }>>;
1227
1249
  shipments: import("@trpc/server").TRPCBuiltRouter<{
1228
1250
  ctx: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djaouad10/shared-types",
3
- "version": "1.0.14",
3
+ "version": "1.0.17",
4
4
  "types": "./index.d.ts",
5
5
  "publishConfig": {
6
6
  "access": "public"