@djaouad10/shared-types 1.0.3 → 1.0.6
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 +2414 -0
- package/package.json +4 -4
- package/dist/api/root.d.ts +0 -2442
- package/dist/api/routers/admin/handler-input-schema.d.ts +0 -6
- package/dist/api/routers/admin/index.d.ts +0 -56
- package/dist/api/routers/cart/handler-input-schema.d.ts +0 -17
- package/dist/api/routers/cart/index.d.ts +0 -93
- package/dist/api/routers/category/handler-input-schema.d.ts +0 -12
- package/dist/api/routers/category/index.d.ts +0 -73
- package/dist/api/routers/client/handler-input-schema.d.ts +0 -30
- package/dist/api/routers/client/index.d.ts +0 -102
- package/dist/api/routers/file/handler-input-schema.d.ts +0 -77
- package/dist/api/routers/file/index.d.ts +0 -85
- package/dist/api/routers/order/handler-input-schema.d.ts +0 -96
- package/dist/api/routers/order/index.d.ts +0 -187
- package/dist/api/routers/product/handler-input-schema.d.ts +0 -65
- package/dist/api/routers/product/index.d.ts +0 -228
- package/dist/api/routers/product/variation/handler-input-schema.d.ts +0 -56
- package/dist/api/routers/product/variation/index.d.ts +0 -90
- package/dist/api/routers/rating/handler-input-schema.d.ts +0 -41
- package/dist/api/routers/rating/index.d.ts +0 -128
- package/dist/api/routers/shipping/address/handler-input-schema.d.ts +0 -5
- package/dist/api/routers/shipping/address/index.d.ts +0 -66
- package/dist/api/routers/shipping/handler-input-schema.d.ts +0 -2
- package/dist/api/routers/shipping/index.d.ts +0 -182
- package/dist/api/routers/shipping/shipments/handler-input-schema.d.ts +0 -8
- package/dist/api/routers/shipping/shipments/index.d.ts +0 -72
- package/dist/api/routers/statistics/handler-input-schema.d.ts +0 -2
- package/dist/api/routers/statistics/index.d.ts +0 -51
- package/dist/api/trpc.d.ts +0 -329
- package/dist/data-access-layer/admin.dal.d.ts +0 -12
- package/dist/data-access-layer/cart.dal.d.ts +0 -29
- package/dist/data-access-layer/category.dal.d.ts +0 -11
- package/dist/data-access-layer/client.dal.d.ts +0 -30
- package/dist/data-access-layer/file.dal.d.ts +0 -42
- package/dist/data-access-layer/order.dal.d.ts +0 -133
- package/dist/data-access-layer/product.dal.d.ts +0 -69
- package/dist/data-access-layer/rating.dal.d.ts +0 -40
- package/dist/data-access-layer/shipping/world-express.dal.d.ts +0 -205
- package/dist/data-access-layer/statistic.dal.d.ts +0 -6
- package/dist/data-transfer-objects/cart.dto.d.ts +0 -17
- package/dist/data-transfer-objects/category.dto.d.ts +0 -5
- package/dist/data-transfer-objects/client.dto.d.ts +0 -9
- package/dist/data-transfer-objects/file.dto.d.ts +0 -13
- package/dist/data-transfer-objects/order.dto.d.ts +0 -52
- package/dist/data-transfer-objects/product.dto.d.ts +0 -33
- package/dist/data-transfer-objects/rating.dto.d.ts +0 -9
- package/dist/errors/index.d.ts +0 -32
- package/dist/index.d.ts +0 -2
- package/dist/lib/auth.d.ts +0 -1051
- package/dist/lib/core.d.ts +0 -15
- package/dist/lib/db.d.ts +0 -5
- package/dist/lib/env.d.ts +0 -15
- package/dist/lib/external-shared-types.d.ts +0 -7
- package/dist/lib/static.d.ts +0 -8
- package/dist/lib/validation/shared-schemas.d.ts +0 -173
- package/dist/services/admin.service.d.ts +0 -12
- package/dist/services/cart.service.d.ts +0 -24
- package/dist/services/category.service.d.ts +0 -12
- package/dist/services/client.service.d.ts +0 -25
- package/dist/services/email.service.d.ts +0 -11
- package/dist/services/file.service.d.ts +0 -37
- package/dist/services/index.d.ts +0 -23
- package/dist/services/order.service.d.ts +0 -90
- package/dist/services/product.service.d.ts +0 -47
- package/dist/services/rating.service.d.ts +0 -31
- package/dist/services/shipping/service-definitons.d.ts +0 -122
- package/dist/services/shipping/world-epress.service.d.ts +0 -86
- package/dist/services/statistic.service.d.ts +0 -8
- package/dist/shared-types/admin.shared-types.d.ts +0 -6
- package/dist/shared-types/cart.shared-types.d.ts +0 -19
- package/dist/shared-types/client.shared-types.d.ts +0 -29
- package/dist/shared-types/file.shared-types.d.ts +0 -11
- package/dist/shared-types/order.shared-types.d.ts +0 -30
- package/dist/shared-types/product.shared-types.d.ts +0 -52
- package/dist/shared-types/rating.shared-types.d.ts +0 -40
- package/dist/test/factories/cart-item.factory.d.ts +0 -2
- package/dist/test/factories/category.factory.d.ts +0 -9
- package/dist/test/factories/file.factory.d.ts +0 -21
- package/dist/test/factories/index.d.ts +0 -11
- package/dist/test/factories/order.factory.d.ts +0 -2
- package/dist/test/factories/product.factory.d.ts +0 -48
- package/dist/test/factories/rating.factory.d.ts +0 -2
- package/dist/test/factories/shipping-details.factory.d.ts +0 -2
- package/dist/test/factories/types.d.ts +0 -27
- package/dist/test/factories/user.factory.d.ts +0 -13
- package/dist/test/factories/variation.factory.d.ts +0 -2
- package/dist/test/setup.d.ts +0 -2
- package/dist/test/verify-test-env.d.ts +0 -2
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export declare const adminRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2
|
-
ctx: {
|
|
3
|
-
db: import("@prisma/client").PrismaClient<{
|
|
4
|
-
log: ("error" | "query" | "warn")[];
|
|
5
|
-
}, never, import("@prisma/client/runtime/library").DefaultArgs>;
|
|
6
|
-
session: {
|
|
7
|
-
id: string;
|
|
8
|
-
createdAt: Date;
|
|
9
|
-
updatedAt: Date;
|
|
10
|
-
userId: string;
|
|
11
|
-
expiresAt: Date;
|
|
12
|
-
token: string;
|
|
13
|
-
ipAddress?: string | null | undefined;
|
|
14
|
-
userAgent?: string | null | undefined;
|
|
15
|
-
} | null;
|
|
16
|
-
user: {
|
|
17
|
-
id: string;
|
|
18
|
-
createdAt: Date;
|
|
19
|
-
updatedAt: Date;
|
|
20
|
-
email: string;
|
|
21
|
-
emailVerified: boolean;
|
|
22
|
-
name: string;
|
|
23
|
-
image?: string | null | undefined;
|
|
24
|
-
role?: import("@prisma/client").$Enums.Role;
|
|
25
|
-
banned?: boolean | null;
|
|
26
|
-
} | null;
|
|
27
|
-
headers: Headers;
|
|
28
|
-
};
|
|
29
|
-
meta: object;
|
|
30
|
-
errorShape: {
|
|
31
|
-
data: {
|
|
32
|
-
zodError: {
|
|
33
|
-
errors: string[];
|
|
34
|
-
} | null;
|
|
35
|
-
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
36
|
-
httpStatus: number;
|
|
37
|
-
path?: string;
|
|
38
|
-
stack?: string;
|
|
39
|
-
};
|
|
40
|
-
message: string;
|
|
41
|
-
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
42
|
-
};
|
|
43
|
-
transformer: true;
|
|
44
|
-
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
45
|
-
updatePassword: import("@trpc/server").TRPCMutationProcedure<{
|
|
46
|
-
input: {
|
|
47
|
-
currentPassword: string;
|
|
48
|
-
newPassword: string;
|
|
49
|
-
};
|
|
50
|
-
output: {
|
|
51
|
-
success: boolean;
|
|
52
|
-
};
|
|
53
|
-
meta: object;
|
|
54
|
-
}>;
|
|
55
|
-
}>>;
|
|
56
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const updateCartItemQtyInputSchema: z.ZodObject<{
|
|
3
|
-
variationId: z.ZodUUID;
|
|
4
|
-
data: z.ZodObject<{
|
|
5
|
-
newQty: z.ZodInt32;
|
|
6
|
-
}, z.z.core.$strip>;
|
|
7
|
-
}, z.z.core.$strip>;
|
|
8
|
-
export declare const removeCartItemInputSchema: z.ZodObject<{
|
|
9
|
-
variationId: z.ZodUUID;
|
|
10
|
-
}, z.z.core.$strip>;
|
|
11
|
-
export declare const addVariationToCartInputSchema: z.ZodObject<{
|
|
12
|
-
variationId: z.ZodUUID;
|
|
13
|
-
data: z.ZodObject<{
|
|
14
|
-
selectedQty: z.ZodInt32;
|
|
15
|
-
}, z.z.core.$strip>;
|
|
16
|
-
}, z.z.core.$strip>;
|
|
17
|
-
//# sourceMappingURL=handler-input-schema.d.ts.map
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
export declare const cartRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2
|
-
ctx: {
|
|
3
|
-
db: import("@prisma/client").PrismaClient<{
|
|
4
|
-
log: ("error" | "query" | "warn")[];
|
|
5
|
-
}, never, import("@prisma/client/runtime/library").DefaultArgs>;
|
|
6
|
-
session: {
|
|
7
|
-
id: string;
|
|
8
|
-
createdAt: Date;
|
|
9
|
-
updatedAt: Date;
|
|
10
|
-
userId: string;
|
|
11
|
-
expiresAt: Date;
|
|
12
|
-
token: string;
|
|
13
|
-
ipAddress?: string | null | undefined;
|
|
14
|
-
userAgent?: string | null | undefined;
|
|
15
|
-
} | null;
|
|
16
|
-
user: {
|
|
17
|
-
id: string;
|
|
18
|
-
createdAt: Date;
|
|
19
|
-
updatedAt: Date;
|
|
20
|
-
email: string;
|
|
21
|
-
emailVerified: boolean;
|
|
22
|
-
name: string;
|
|
23
|
-
image?: string | null | undefined;
|
|
24
|
-
role?: import("@prisma/client").$Enums.Role;
|
|
25
|
-
banned?: boolean | null;
|
|
26
|
-
} | null;
|
|
27
|
-
headers: Headers;
|
|
28
|
-
};
|
|
29
|
-
meta: object;
|
|
30
|
-
errorShape: {
|
|
31
|
-
data: {
|
|
32
|
-
zodError: {
|
|
33
|
-
errors: string[];
|
|
34
|
-
} | null;
|
|
35
|
-
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
36
|
-
httpStatus: number;
|
|
37
|
-
path?: string;
|
|
38
|
-
stack?: string;
|
|
39
|
-
};
|
|
40
|
-
message: string;
|
|
41
|
-
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
42
|
-
};
|
|
43
|
-
transformer: true;
|
|
44
|
-
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
45
|
-
getMyItems: import("@trpc/server").TRPCQueryProcedure<{
|
|
46
|
-
input: void;
|
|
47
|
-
output: {
|
|
48
|
-
items: import("../../../data-transfer-objects/cart.dto.js").CartItemWithItsVariation[];
|
|
49
|
-
};
|
|
50
|
-
meta: object;
|
|
51
|
-
}>;
|
|
52
|
-
updateItemQty: import("@trpc/server").TRPCMutationProcedure<{
|
|
53
|
-
input: {
|
|
54
|
-
variationId: string;
|
|
55
|
-
data: {
|
|
56
|
-
newQty: number;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
output: {
|
|
60
|
-
cartItem: import("../../../data-transfer-objects/cart.dto.js").PublicCartItemDTO;
|
|
61
|
-
};
|
|
62
|
-
meta: object;
|
|
63
|
-
}>;
|
|
64
|
-
removeItem: import("@trpc/server").TRPCMutationProcedure<{
|
|
65
|
-
input: {
|
|
66
|
-
variationId: string;
|
|
67
|
-
};
|
|
68
|
-
output: {
|
|
69
|
-
cartItem: import("../../../data-transfer-objects/cart.dto.js").PublicCartItemDTO;
|
|
70
|
-
};
|
|
71
|
-
meta: object;
|
|
72
|
-
}>;
|
|
73
|
-
clear: import("@trpc/server").TRPCMutationProcedure<{
|
|
74
|
-
input: void;
|
|
75
|
-
output: {
|
|
76
|
-
count: number;
|
|
77
|
-
};
|
|
78
|
-
meta: object;
|
|
79
|
-
}>;
|
|
80
|
-
addVariation: import("@trpc/server").TRPCMutationProcedure<{
|
|
81
|
-
input: {
|
|
82
|
-
variationId: string;
|
|
83
|
-
data: {
|
|
84
|
-
selectedQty: number;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
output: {
|
|
88
|
-
cartItem: import("../../../data-transfer-objects/cart.dto.js").PublicCartItemDTO;
|
|
89
|
-
};
|
|
90
|
-
meta: object;
|
|
91
|
-
}>;
|
|
92
|
-
}>>;
|
|
93
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const createCategoryInputSchema: z.ZodObject<{
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
}, z.z.core.$strip>;
|
|
5
|
-
export declare const updateCategoryInputSchema: z.ZodObject<{
|
|
6
|
-
categoryId: z.ZodUUID;
|
|
7
|
-
newName: z.ZodString;
|
|
8
|
-
}, z.z.core.$strip>;
|
|
9
|
-
export declare const deleteCategoryInputSchema: z.ZodObject<{
|
|
10
|
-
categoryId: z.ZodUUID;
|
|
11
|
-
}, z.z.core.$strip>;
|
|
12
|
-
//# sourceMappingURL=handler-input-schema.d.ts.map
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export declare const categoryRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2
|
-
ctx: {
|
|
3
|
-
db: import("@prisma/client").PrismaClient<{
|
|
4
|
-
log: ("error" | "query" | "warn")[];
|
|
5
|
-
}, never, import("@prisma/client/runtime/library").DefaultArgs>;
|
|
6
|
-
session: {
|
|
7
|
-
id: string;
|
|
8
|
-
createdAt: Date;
|
|
9
|
-
updatedAt: Date;
|
|
10
|
-
userId: string;
|
|
11
|
-
expiresAt: Date;
|
|
12
|
-
token: string;
|
|
13
|
-
ipAddress?: string | null | undefined;
|
|
14
|
-
userAgent?: string | null | undefined;
|
|
15
|
-
} | null;
|
|
16
|
-
user: {
|
|
17
|
-
id: string;
|
|
18
|
-
createdAt: Date;
|
|
19
|
-
updatedAt: Date;
|
|
20
|
-
email: string;
|
|
21
|
-
emailVerified: boolean;
|
|
22
|
-
name: string;
|
|
23
|
-
image?: string | null | undefined;
|
|
24
|
-
role?: import("@prisma/client").$Enums.Role;
|
|
25
|
-
banned?: boolean | null;
|
|
26
|
-
} | null;
|
|
27
|
-
headers: Headers;
|
|
28
|
-
};
|
|
29
|
-
meta: object;
|
|
30
|
-
errorShape: {
|
|
31
|
-
data: {
|
|
32
|
-
zodError: {
|
|
33
|
-
errors: string[];
|
|
34
|
-
} | null;
|
|
35
|
-
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
36
|
-
httpStatus: number;
|
|
37
|
-
path?: string;
|
|
38
|
-
stack?: string;
|
|
39
|
-
};
|
|
40
|
-
message: string;
|
|
41
|
-
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
42
|
-
};
|
|
43
|
-
transformer: true;
|
|
44
|
-
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
45
|
-
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
46
|
-
input: void;
|
|
47
|
-
output: import("../../../data-transfer-objects/category.dto.js").PublicCategoryDTO[];
|
|
48
|
-
meta: object;
|
|
49
|
-
}>;
|
|
50
|
-
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
51
|
-
input: {
|
|
52
|
-
name: string;
|
|
53
|
-
};
|
|
54
|
-
output: import("../../../data-transfer-objects/category.dto.js").PublicCategoryDTO;
|
|
55
|
-
meta: object;
|
|
56
|
-
}>;
|
|
57
|
-
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
58
|
-
input: {
|
|
59
|
-
categoryId: string;
|
|
60
|
-
newName: string;
|
|
61
|
-
};
|
|
62
|
-
output: import("../../../data-transfer-objects/category.dto.js").PublicCategoryDTO;
|
|
63
|
-
meta: object;
|
|
64
|
-
}>;
|
|
65
|
-
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
66
|
-
input: {
|
|
67
|
-
categoryId: string;
|
|
68
|
-
};
|
|
69
|
-
output: import("../../../data-transfer-objects/category.dto.js").PublicCategoryDTO;
|
|
70
|
-
meta: object;
|
|
71
|
-
}>;
|
|
72
|
-
}>>;
|
|
73
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const getClientProfileDetailsInputSchema: z.ZodObject<{
|
|
3
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
4
|
-
}, z.z.core.$strip>;
|
|
5
|
-
export declare const getClientsInfiniteListInputSchema: z.ZodObject<{
|
|
6
|
-
limit: z.ZodInt32;
|
|
7
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
8
|
-
criteria: z.ZodOptional<z.ZodEnum<{
|
|
9
|
-
banned: "banned";
|
|
10
|
-
"most-orders": "most-orders";
|
|
11
|
-
}>>;
|
|
12
|
-
}, z.z.core.$strip>;
|
|
13
|
-
export declare const isClientBannedInputSchema: z.ZodObject<{
|
|
14
|
-
clientId: z.ZodString;
|
|
15
|
-
}, z.z.core.$strip>;
|
|
16
|
-
export declare const updateClientProfileInputSchema: z.ZodObject<{
|
|
17
|
-
newName: z.ZodOptional<z.ZodString>;
|
|
18
|
-
currentPassword: z.ZodOptional<z.ZodString>;
|
|
19
|
-
newPassword: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.z.core.$strip>;
|
|
21
|
-
export declare const updateClientBanStatusInputSchema: z.ZodUnion<[z.ZodObject<{
|
|
22
|
-
clientId: z.ZodString;
|
|
23
|
-
banClient: z.ZodLiteral<true>;
|
|
24
|
-
banExpiresInSeconds: z.ZodNullable<z.ZodInt32>;
|
|
25
|
-
reason: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.z.core.$strip>, z.ZodObject<{
|
|
27
|
-
clientId: z.ZodString;
|
|
28
|
-
banClient: z.ZodLiteral<false>;
|
|
29
|
-
}, z.z.core.$strip>]>;
|
|
30
|
-
//# sourceMappingURL=handler-input-schema.d.ts.map
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
export declare const clientRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2
|
-
ctx: {
|
|
3
|
-
db: import("@prisma/client").PrismaClient<{
|
|
4
|
-
log: ("error" | "query" | "warn")[];
|
|
5
|
-
}, never, import("@prisma/client/runtime/library").DefaultArgs>;
|
|
6
|
-
session: {
|
|
7
|
-
id: string;
|
|
8
|
-
createdAt: Date;
|
|
9
|
-
updatedAt: Date;
|
|
10
|
-
userId: string;
|
|
11
|
-
expiresAt: Date;
|
|
12
|
-
token: string;
|
|
13
|
-
ipAddress?: string | null | undefined;
|
|
14
|
-
userAgent?: string | null | undefined;
|
|
15
|
-
} | null;
|
|
16
|
-
user: {
|
|
17
|
-
id: string;
|
|
18
|
-
createdAt: Date;
|
|
19
|
-
updatedAt: Date;
|
|
20
|
-
email: string;
|
|
21
|
-
emailVerified: boolean;
|
|
22
|
-
name: string;
|
|
23
|
-
image?: string | null | undefined;
|
|
24
|
-
role?: import("@prisma/client").$Enums.Role;
|
|
25
|
-
banned?: boolean | null;
|
|
26
|
-
} | null;
|
|
27
|
-
headers: Headers;
|
|
28
|
-
};
|
|
29
|
-
meta: object;
|
|
30
|
-
errorShape: {
|
|
31
|
-
data: {
|
|
32
|
-
zodError: {
|
|
33
|
-
errors: string[];
|
|
34
|
-
} | null;
|
|
35
|
-
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
36
|
-
httpStatus: number;
|
|
37
|
-
path?: string;
|
|
38
|
-
stack?: string;
|
|
39
|
-
};
|
|
40
|
-
message: string;
|
|
41
|
-
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
42
|
-
};
|
|
43
|
-
transformer: true;
|
|
44
|
-
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
45
|
-
getProfileDetails: import("@trpc/server").TRPCQueryProcedure<{
|
|
46
|
-
input: {
|
|
47
|
-
clientId?: string | undefined;
|
|
48
|
-
};
|
|
49
|
-
output: {
|
|
50
|
-
client: import("../../../data-transfer-objects/client.dto.js").PublicClientDTO;
|
|
51
|
-
};
|
|
52
|
-
meta: object;
|
|
53
|
-
}>;
|
|
54
|
-
getInfiniteList: import("@trpc/server").TRPCQueryProcedure<{
|
|
55
|
-
input: {
|
|
56
|
-
limit: number;
|
|
57
|
-
cursor?: string | undefined;
|
|
58
|
-
criteria?: "banned" | "most-orders" | undefined;
|
|
59
|
-
};
|
|
60
|
-
output: {
|
|
61
|
-
clients: import("../../../data-transfer-objects/client.dto.js").PublicClientDTO[];
|
|
62
|
-
nextCursor: string | undefined;
|
|
63
|
-
};
|
|
64
|
-
meta: object;
|
|
65
|
-
}>;
|
|
66
|
-
isBanned: import("@trpc/server").TRPCQueryProcedure<{
|
|
67
|
-
input: {
|
|
68
|
-
clientId: string;
|
|
69
|
-
};
|
|
70
|
-
output: {
|
|
71
|
-
banned: boolean;
|
|
72
|
-
};
|
|
73
|
-
meta: object;
|
|
74
|
-
}>;
|
|
75
|
-
updateProfile: import("@trpc/server").TRPCMutationProcedure<{
|
|
76
|
-
input: {
|
|
77
|
-
newName?: string | undefined;
|
|
78
|
-
currentPassword?: string | undefined;
|
|
79
|
-
newPassword?: string | undefined;
|
|
80
|
-
};
|
|
81
|
-
output: {
|
|
82
|
-
success: boolean;
|
|
83
|
-
};
|
|
84
|
-
meta: object;
|
|
85
|
-
}>;
|
|
86
|
-
updateBanStatus: import("@trpc/server").TRPCMutationProcedure<{
|
|
87
|
-
input: {
|
|
88
|
-
clientId: string;
|
|
89
|
-
banClient: true;
|
|
90
|
-
banExpiresInSeconds: number | null;
|
|
91
|
-
reason: string | null;
|
|
92
|
-
} | {
|
|
93
|
-
clientId: string;
|
|
94
|
-
banClient: false;
|
|
95
|
-
};
|
|
96
|
-
output: {
|
|
97
|
-
success: boolean;
|
|
98
|
-
};
|
|
99
|
-
meta: object;
|
|
100
|
-
}>;
|
|
101
|
-
}>>;
|
|
102
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const productImageSchema: z.ZodObject<{
|
|
3
|
-
key: z.ZodString;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
public_url: z.ZodURL;
|
|
6
|
-
color: z.ZodNullable<z.ZodEnum<{
|
|
7
|
-
BLACK: "BLACK";
|
|
8
|
-
WHITE: "WHITE";
|
|
9
|
-
GRAY: "GRAY";
|
|
10
|
-
RED: "RED";
|
|
11
|
-
BLUE: "BLUE";
|
|
12
|
-
GREEN: "GREEN";
|
|
13
|
-
YELLOW: "YELLOW";
|
|
14
|
-
ORANGE: "ORANGE";
|
|
15
|
-
PURPLE: "PURPLE";
|
|
16
|
-
PINK: "PINK";
|
|
17
|
-
BROWN: "BROWN";
|
|
18
|
-
BEIGE: "BEIGE";
|
|
19
|
-
NAVY: "NAVY";
|
|
20
|
-
MAROON: "MAROON";
|
|
21
|
-
TEAL: "TEAL";
|
|
22
|
-
}>>;
|
|
23
|
-
}, z.z.core.$strip>;
|
|
24
|
-
export declare const updateMainImageOfProductInputSchema: z.ZodObject<{
|
|
25
|
-
productId: z.ZodUUID;
|
|
26
|
-
newImage: z.ZodObject<{
|
|
27
|
-
key: z.ZodString;
|
|
28
|
-
name: z.ZodString;
|
|
29
|
-
public_url: z.ZodURL;
|
|
30
|
-
color: z.ZodNullable<z.ZodEnum<{
|
|
31
|
-
BLACK: "BLACK";
|
|
32
|
-
WHITE: "WHITE";
|
|
33
|
-
GRAY: "GRAY";
|
|
34
|
-
RED: "RED";
|
|
35
|
-
BLUE: "BLUE";
|
|
36
|
-
GREEN: "GREEN";
|
|
37
|
-
YELLOW: "YELLOW";
|
|
38
|
-
ORANGE: "ORANGE";
|
|
39
|
-
PURPLE: "PURPLE";
|
|
40
|
-
PINK: "PINK";
|
|
41
|
-
BROWN: "BROWN";
|
|
42
|
-
BEIGE: "BEIGE";
|
|
43
|
-
NAVY: "NAVY";
|
|
44
|
-
MAROON: "MAROON";
|
|
45
|
-
TEAL: "TEAL";
|
|
46
|
-
}>>;
|
|
47
|
-
}, z.z.core.$strip>;
|
|
48
|
-
}, z.z.core.$strip>;
|
|
49
|
-
export declare const deleteSingleImageOfProductInputSchema: z.ZodObject<{
|
|
50
|
-
imageKey: z.ZodString;
|
|
51
|
-
}, z.z.core.$strip>;
|
|
52
|
-
export declare const addSingleImageOfProductInputSchema: z.ZodObject<{
|
|
53
|
-
productId: z.ZodUUID;
|
|
54
|
-
newImage: z.ZodObject<{
|
|
55
|
-
key: z.ZodString;
|
|
56
|
-
name: z.ZodString;
|
|
57
|
-
public_url: z.ZodURL;
|
|
58
|
-
color: z.ZodNullable<z.ZodEnum<{
|
|
59
|
-
BLACK: "BLACK";
|
|
60
|
-
WHITE: "WHITE";
|
|
61
|
-
GRAY: "GRAY";
|
|
62
|
-
RED: "RED";
|
|
63
|
-
BLUE: "BLUE";
|
|
64
|
-
GREEN: "GREEN";
|
|
65
|
-
YELLOW: "YELLOW";
|
|
66
|
-
ORANGE: "ORANGE";
|
|
67
|
-
PURPLE: "PURPLE";
|
|
68
|
-
PINK: "PINK";
|
|
69
|
-
BROWN: "BROWN";
|
|
70
|
-
BEIGE: "BEIGE";
|
|
71
|
-
NAVY: "NAVY";
|
|
72
|
-
MAROON: "MAROON";
|
|
73
|
-
TEAL: "TEAL";
|
|
74
|
-
}>>;
|
|
75
|
-
}, z.z.core.$strip>;
|
|
76
|
-
}, z.z.core.$strip>;
|
|
77
|
-
//# sourceMappingURL=handler-input-schema.d.ts.map
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
export declare const fileRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2
|
-
ctx: {
|
|
3
|
-
db: import("@prisma/client").PrismaClient<{
|
|
4
|
-
log: ("error" | "query" | "warn")[];
|
|
5
|
-
}, never, import("@prisma/client/runtime/library").DefaultArgs>;
|
|
6
|
-
session: {
|
|
7
|
-
id: string;
|
|
8
|
-
createdAt: Date;
|
|
9
|
-
updatedAt: Date;
|
|
10
|
-
userId: string;
|
|
11
|
-
expiresAt: Date;
|
|
12
|
-
token: string;
|
|
13
|
-
ipAddress?: string | null | undefined;
|
|
14
|
-
userAgent?: string | null | undefined;
|
|
15
|
-
} | null;
|
|
16
|
-
user: {
|
|
17
|
-
id: string;
|
|
18
|
-
createdAt: Date;
|
|
19
|
-
updatedAt: Date;
|
|
20
|
-
email: string;
|
|
21
|
-
emailVerified: boolean;
|
|
22
|
-
name: string;
|
|
23
|
-
image?: string | null | undefined;
|
|
24
|
-
role?: import("@prisma/client").$Enums.Role;
|
|
25
|
-
banned?: boolean | null;
|
|
26
|
-
} | null;
|
|
27
|
-
headers: Headers;
|
|
28
|
-
};
|
|
29
|
-
meta: object;
|
|
30
|
-
errorShape: {
|
|
31
|
-
data: {
|
|
32
|
-
zodError: {
|
|
33
|
-
errors: string[];
|
|
34
|
-
} | null;
|
|
35
|
-
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
36
|
-
httpStatus: number;
|
|
37
|
-
path?: string;
|
|
38
|
-
stack?: string;
|
|
39
|
-
};
|
|
40
|
-
message: string;
|
|
41
|
-
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
42
|
-
};
|
|
43
|
-
transformer: true;
|
|
44
|
-
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
45
|
-
updateMainImageOfProduct: import("@trpc/server").TRPCMutationProcedure<{
|
|
46
|
-
input: {
|
|
47
|
-
productId: string;
|
|
48
|
-
newImage: {
|
|
49
|
-
key: string;
|
|
50
|
-
name: string;
|
|
51
|
-
public_url: string;
|
|
52
|
-
color: "BLACK" | "WHITE" | "GRAY" | "RED" | "BLUE" | "GREEN" | "YELLOW" | "ORANGE" | "PURPLE" | "PINK" | "BROWN" | "BEIGE" | "NAVY" | "MAROON" | "TEAL" | null;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
output: {
|
|
56
|
-
success: boolean;
|
|
57
|
-
};
|
|
58
|
-
meta: object;
|
|
59
|
-
}>;
|
|
60
|
-
deleteSingleImageOfProduct: import("@trpc/server").TRPCMutationProcedure<{
|
|
61
|
-
input: {
|
|
62
|
-
imageKey: string;
|
|
63
|
-
};
|
|
64
|
-
output: {
|
|
65
|
-
success: boolean;
|
|
66
|
-
};
|
|
67
|
-
meta: object;
|
|
68
|
-
}>;
|
|
69
|
-
addSingleImageOfProduct: import("@trpc/server").TRPCMutationProcedure<{
|
|
70
|
-
input: {
|
|
71
|
-
productId: string;
|
|
72
|
-
newImage: {
|
|
73
|
-
key: string;
|
|
74
|
-
name: string;
|
|
75
|
-
public_url: string;
|
|
76
|
-
color: "BLACK" | "WHITE" | "GRAY" | "RED" | "BLUE" | "GREEN" | "YELLOW" | "ORANGE" | "PURPLE" | "PINK" | "BROWN" | "BEIGE" | "NAVY" | "MAROON" | "TEAL" | null;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
output: {
|
|
80
|
-
image: import("../../../data-transfer-objects/file.dto.js").ExtendedImageDTO;
|
|
81
|
-
};
|
|
82
|
-
meta: object;
|
|
83
|
-
}>;
|
|
84
|
-
}>>;
|
|
85
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const getInfiniteOrdersListOfClientInputSchema: z.ZodObject<{
|
|
3
|
-
limit: z.ZodInt32;
|
|
4
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
5
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
6
|
-
PENDING: "PENDING";
|
|
7
|
-
CONFIRMED: "CONFIRMED";
|
|
8
|
-
PRE_TRANSIT: "PRE_TRANSIT";
|
|
9
|
-
SHIPPING: "SHIPPING";
|
|
10
|
-
DELIVERED: "DELIVERED";
|
|
11
|
-
RETURNED: "RETURNED";
|
|
12
|
-
CANCELLED: "CANCELLED";
|
|
13
|
-
SUSPENDED: "SUSPENDED";
|
|
14
|
-
}>>;
|
|
15
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
16
|
-
}, z.z.core.$strip>;
|
|
17
|
-
export declare const getOrderFullDetailsInputSchema: z.ZodObject<{
|
|
18
|
-
orderId: z.ZodUUID;
|
|
19
|
-
}, z.z.core.$strip>;
|
|
20
|
-
export declare const getInfiniteOrdersListInputSchema: z.ZodObject<{
|
|
21
|
-
limit: z.ZodInt32;
|
|
22
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
23
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
24
|
-
PENDING: "PENDING";
|
|
25
|
-
CONFIRMED: "CONFIRMED";
|
|
26
|
-
PRE_TRANSIT: "PRE_TRANSIT";
|
|
27
|
-
SHIPPING: "SHIPPING";
|
|
28
|
-
DELIVERED: "DELIVERED";
|
|
29
|
-
RETURNED: "RETURNED";
|
|
30
|
-
CANCELLED: "CANCELLED";
|
|
31
|
-
SUSPENDED: "SUSPENDED";
|
|
32
|
-
}>>;
|
|
33
|
-
}, z.z.core.$strip>;
|
|
34
|
-
export declare const findOrderWithTrackingNumberInputSchema: z.ZodObject<{
|
|
35
|
-
trackingNumber: z.ZodUUID;
|
|
36
|
-
}, z.z.core.$strip>;
|
|
37
|
-
export declare const createOrderInputSchema: z.ZodObject<{
|
|
38
|
-
clientId: z.ZodString;
|
|
39
|
-
providedShippingPrice: z.ZodFloat32;
|
|
40
|
-
selectedShippingProvider: z.ZodEnum<{
|
|
41
|
-
WORLD_EXPRESS: "WORLD_EXPRESS";
|
|
42
|
-
}>;
|
|
43
|
-
shippingDetails: z.ZodObject<{
|
|
44
|
-
full_name: z.ZodString;
|
|
45
|
-
first_phone: z.ZodString;
|
|
46
|
-
second_phone: z.ZodOptional<z.ZodString>;
|
|
47
|
-
code_wilaya: z.ZodInt32;
|
|
48
|
-
commune: z.ZodString;
|
|
49
|
-
code_postal: z.ZodString;
|
|
50
|
-
address: z.ZodString;
|
|
51
|
-
gps_link: z.ZodOptional<z.ZodURL>;
|
|
52
|
-
client_note: z.ZodOptional<z.ZodString>;
|
|
53
|
-
delivery_type: z.ZodEnum<{
|
|
54
|
-
TO_DESK: "TO_DESK";
|
|
55
|
-
TO_HOME: "TO_HOME";
|
|
56
|
-
}>;
|
|
57
|
-
fragile: z.ZodBoolean;
|
|
58
|
-
}, z.z.core.$strip>;
|
|
59
|
-
}, z.z.core.$strip>;
|
|
60
|
-
export declare const cancelOrderInputSchema: z.ZodObject<{
|
|
61
|
-
orderId: z.ZodUUID;
|
|
62
|
-
}, z.z.core.$strip>;
|
|
63
|
-
export declare const updateOrderStatusInputSchema: z.ZodObject<{
|
|
64
|
-
orderId: z.ZodUUID;
|
|
65
|
-
newStatus: z.ZodEnum<{
|
|
66
|
-
PENDING: "PENDING";
|
|
67
|
-
CONFIRMED: "CONFIRMED";
|
|
68
|
-
PRE_TRANSIT: "PRE_TRANSIT";
|
|
69
|
-
SHIPPING: "SHIPPING";
|
|
70
|
-
DELIVERED: "DELIVERED";
|
|
71
|
-
RETURNED: "RETURNED";
|
|
72
|
-
CANCELLED: "CANCELLED";
|
|
73
|
-
SUSPENDED: "SUSPENDED";
|
|
74
|
-
}>;
|
|
75
|
-
}, z.z.core.$strip>;
|
|
76
|
-
export declare const updateOrderDetailsInputSchema: z.ZodObject<{
|
|
77
|
-
trackingNumber: z.ZodString;
|
|
78
|
-
orderId: z.ZodUUID;
|
|
79
|
-
data: z.ZodObject<{
|
|
80
|
-
reference: z.ZodUUID;
|
|
81
|
-
clientName: z.ZodString;
|
|
82
|
-
phone: z.ZodString;
|
|
83
|
-
phone2: z.ZodOptional<z.ZodString>;
|
|
84
|
-
address: z.ZodString;
|
|
85
|
-
postalCode: z.ZodString;
|
|
86
|
-
commune: z.ZodString;
|
|
87
|
-
wilayaCode: z.ZodInt32;
|
|
88
|
-
note: z.ZodOptional<z.ZodString>;
|
|
89
|
-
isFragile: z.ZodBoolean;
|
|
90
|
-
gpsLink: z.ZodOptional<z.ZodURL>;
|
|
91
|
-
}, z.z.core.$strip>;
|
|
92
|
-
}, z.z.core.$strip>;
|
|
93
|
-
export declare const confirmManyOrdersInputSchema: z.ZodObject<{
|
|
94
|
-
orderIds: z.ZodArray<z.ZodUUID>;
|
|
95
|
-
}, z.z.core.$strip>;
|
|
96
|
-
//# sourceMappingURL=handler-input-schema.d.ts.map
|