@djaouad10/shared-types 1.0.3 → 1.0.5
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 +2428 -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,187 +0,0 @@
|
|
|
1
|
-
export declare const orderRouter: 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
|
-
getInfiniteListOfClient: import("@trpc/server").TRPCQueryProcedure<{
|
|
46
|
-
input: {
|
|
47
|
-
limit: number;
|
|
48
|
-
cursor?: string | undefined;
|
|
49
|
-
status?: "PENDING" | "CONFIRMED" | "PRE_TRANSIT" | "SHIPPING" | "DELIVERED" | "RETURNED" | "CANCELLED" | "SUSPENDED" | undefined;
|
|
50
|
-
clientId?: string | undefined;
|
|
51
|
-
};
|
|
52
|
-
output: {
|
|
53
|
-
orders: {
|
|
54
|
-
id: string;
|
|
55
|
-
createdAt: Date;
|
|
56
|
-
userId: string;
|
|
57
|
-
tracking_number: string | null;
|
|
58
|
-
status: import("@prisma/client").$Enums.OrderStatus;
|
|
59
|
-
shipping_status: string | null;
|
|
60
|
-
total_order_price: number;
|
|
61
|
-
shipping_price_at_order_time: number;
|
|
62
|
-
selected_shipping_provider: "WORLD_EXPRESS";
|
|
63
|
-
total_weight: number;
|
|
64
|
-
shipping_details_id: string;
|
|
65
|
-
total_product_price: never;
|
|
66
|
-
delivery_type: never;
|
|
67
|
-
fragile: never;
|
|
68
|
-
}[];
|
|
69
|
-
nextCursor: string | undefined;
|
|
70
|
-
};
|
|
71
|
-
meta: object;
|
|
72
|
-
}>;
|
|
73
|
-
getFullDetails: import("@trpc/server").TRPCQueryProcedure<{
|
|
74
|
-
input: {
|
|
75
|
-
orderId: string;
|
|
76
|
-
};
|
|
77
|
-
output: {
|
|
78
|
-
order: import("../../../data-transfer-objects/order.dto.js").ExtendedOrderDTO & {
|
|
79
|
-
user: {
|
|
80
|
-
role: import("@prisma/client").Role;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
meta: object;
|
|
85
|
-
}>;
|
|
86
|
-
getInfiniteList: import("@trpc/server").TRPCQueryProcedure<{
|
|
87
|
-
input: {
|
|
88
|
-
limit: number;
|
|
89
|
-
cursor?: string | undefined;
|
|
90
|
-
status?: "PENDING" | "CONFIRMED" | "PRE_TRANSIT" | "SHIPPING" | "DELIVERED" | "RETURNED" | "CANCELLED" | "SUSPENDED" | undefined;
|
|
91
|
-
};
|
|
92
|
-
output: {
|
|
93
|
-
orders: (import("../../../data-transfer-objects/order.dto.js").PublicOrderDTO & {
|
|
94
|
-
user: {
|
|
95
|
-
role: import("@prisma/client").Role;
|
|
96
|
-
};
|
|
97
|
-
})[];
|
|
98
|
-
nextCursor: string | undefined;
|
|
99
|
-
};
|
|
100
|
-
meta: object;
|
|
101
|
-
}>;
|
|
102
|
-
findWithTrackingNumber: import("@trpc/server").TRPCQueryProcedure<{
|
|
103
|
-
input: {
|
|
104
|
-
trackingNumber: string;
|
|
105
|
-
};
|
|
106
|
-
output: {
|
|
107
|
-
order: import("../../../data-transfer-objects/order.dto.js").PublicOrderDTO;
|
|
108
|
-
};
|
|
109
|
-
meta: object;
|
|
110
|
-
}>;
|
|
111
|
-
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
112
|
-
input: {
|
|
113
|
-
clientId: string;
|
|
114
|
-
providedShippingPrice: number;
|
|
115
|
-
selectedShippingProvider: "WORLD_EXPRESS";
|
|
116
|
-
shippingDetails: {
|
|
117
|
-
full_name: string;
|
|
118
|
-
first_phone: string;
|
|
119
|
-
code_wilaya: number;
|
|
120
|
-
commune: string;
|
|
121
|
-
code_postal: string;
|
|
122
|
-
address: string;
|
|
123
|
-
delivery_type: "TO_DESK" | "TO_HOME";
|
|
124
|
-
fragile: boolean;
|
|
125
|
-
second_phone?: string | undefined;
|
|
126
|
-
gps_link?: string | undefined;
|
|
127
|
-
client_note?: string | undefined;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
output: {
|
|
131
|
-
order: import("../../../data-transfer-objects/order.dto.js").PublicOrderDTO;
|
|
132
|
-
};
|
|
133
|
-
meta: object;
|
|
134
|
-
}>;
|
|
135
|
-
cancel: import("@trpc/server").TRPCMutationProcedure<{
|
|
136
|
-
input: {
|
|
137
|
-
orderId: string;
|
|
138
|
-
};
|
|
139
|
-
output: {
|
|
140
|
-
order: import("../../../data-transfer-objects/order.dto.js").PublicOrderDTO;
|
|
141
|
-
};
|
|
142
|
-
meta: object;
|
|
143
|
-
}>;
|
|
144
|
-
updateStatus: import("@trpc/server").TRPCMutationProcedure<{
|
|
145
|
-
input: {
|
|
146
|
-
orderId: string;
|
|
147
|
-
newStatus: "PENDING" | "CONFIRMED" | "PRE_TRANSIT" | "SHIPPING" | "DELIVERED" | "RETURNED" | "CANCELLED" | "SUSPENDED";
|
|
148
|
-
};
|
|
149
|
-
output: {
|
|
150
|
-
order: import("../../../data-transfer-objects/order.dto.js").PublicOrderDTO;
|
|
151
|
-
};
|
|
152
|
-
meta: object;
|
|
153
|
-
}>;
|
|
154
|
-
updateDetails: import("@trpc/server").TRPCMutationProcedure<{
|
|
155
|
-
input: {
|
|
156
|
-
trackingNumber: string;
|
|
157
|
-
orderId: string;
|
|
158
|
-
data: {
|
|
159
|
-
reference: string;
|
|
160
|
-
clientName: string;
|
|
161
|
-
phone: string;
|
|
162
|
-
address: string;
|
|
163
|
-
postalCode: string;
|
|
164
|
-
commune: string;
|
|
165
|
-
wilayaCode: number;
|
|
166
|
-
isFragile: boolean;
|
|
167
|
-
phone2?: string | undefined;
|
|
168
|
-
note?: string | undefined;
|
|
169
|
-
gpsLink?: string | undefined;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
output: {
|
|
173
|
-
success: boolean;
|
|
174
|
-
};
|
|
175
|
-
meta: object;
|
|
176
|
-
}>;
|
|
177
|
-
confirmMany: import("@trpc/server").TRPCMutationProcedure<{
|
|
178
|
-
input: {
|
|
179
|
-
orderIds: string[];
|
|
180
|
-
};
|
|
181
|
-
output: {
|
|
182
|
-
success: boolean;
|
|
183
|
-
};
|
|
184
|
-
meta: object;
|
|
185
|
-
}>;
|
|
186
|
-
}>>;
|
|
187
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const getInfiniteProductsListInputSchema: z.ZodObject<{
|
|
3
|
-
limit: z.ZodInt32;
|
|
4
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
5
|
-
categoryId: z.ZodUUID;
|
|
6
|
-
min_price: z.ZodOptional<z.ZodFloat32>;
|
|
7
|
-
max_price: z.ZodOptional<z.ZodFloat32>;
|
|
8
|
-
}, z.z.core.$strip>;
|
|
9
|
-
export declare const getProductStaticDataInputSchema: z.ZodObject<{
|
|
10
|
-
productId: z.ZodUUID;
|
|
11
|
-
}, z.z.core.$strip>;
|
|
12
|
-
export declare const getInfiniteLowStockProductsInputSchema: z.ZodObject<{
|
|
13
|
-
limit: z.ZodInt32;
|
|
14
|
-
cursor: z.ZodOptional<z.ZodUUID>;
|
|
15
|
-
}, z.z.core.$strip>;
|
|
16
|
-
export declare const createProductInputSchema: z.ZodObject<{
|
|
17
|
-
price: z.ZodFloat32;
|
|
18
|
-
name: z.ZodString;
|
|
19
|
-
description: z.ZodNullable<z.ZodString>;
|
|
20
|
-
brand: z.ZodString;
|
|
21
|
-
material: z.ZodString;
|
|
22
|
-
discount_price: z.ZodNullable<z.ZodFloat32>;
|
|
23
|
-
categoryId: z.ZodUUID;
|
|
24
|
-
image: z.ZodObject<{
|
|
25
|
-
name: z.ZodString;
|
|
26
|
-
public_url: z.ZodURL;
|
|
27
|
-
key: z.ZodString;
|
|
28
|
-
color: z.ZodOptional<z.ZodEnum<{
|
|
29
|
-
BLACK: "BLACK";
|
|
30
|
-
WHITE: "WHITE";
|
|
31
|
-
GRAY: "GRAY";
|
|
32
|
-
RED: "RED";
|
|
33
|
-
BLUE: "BLUE";
|
|
34
|
-
GREEN: "GREEN";
|
|
35
|
-
YELLOW: "YELLOW";
|
|
36
|
-
ORANGE: "ORANGE";
|
|
37
|
-
PURPLE: "PURPLE";
|
|
38
|
-
PINK: "PINK";
|
|
39
|
-
BROWN: "BROWN";
|
|
40
|
-
BEIGE: "BEIGE";
|
|
41
|
-
NAVY: "NAVY";
|
|
42
|
-
MAROON: "MAROON";
|
|
43
|
-
TEAL: "TEAL";
|
|
44
|
-
}>>;
|
|
45
|
-
}, z.z.core.$strip>;
|
|
46
|
-
}, z.z.core.$strip>;
|
|
47
|
-
export declare const updateProductStaticDetailsInputSchema: z.ZodObject<{
|
|
48
|
-
productId: z.ZodUUID;
|
|
49
|
-
data: z.ZodObject<{
|
|
50
|
-
price: z.ZodOptional<z.ZodFloat32>;
|
|
51
|
-
name: z.ZodOptional<z.ZodString>;
|
|
52
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
53
|
-
brand: z.ZodOptional<z.ZodString>;
|
|
54
|
-
material: z.ZodOptional<z.ZodString>;
|
|
55
|
-
discount_price: z.ZodNullable<z.ZodOptional<z.ZodFloat32>>;
|
|
56
|
-
categoryId: z.ZodOptional<z.ZodUUID>;
|
|
57
|
-
}, z.z.core.$strip>;
|
|
58
|
-
}, z.z.core.$strip>;
|
|
59
|
-
export declare const deleteProductInputSchema: z.ZodObject<{
|
|
60
|
-
productId: z.ZodUUID;
|
|
61
|
-
}, z.z.core.$strip>;
|
|
62
|
-
export declare const getProductUpdateDataInputSchema: z.ZodObject<{
|
|
63
|
-
productId: z.ZodUUID;
|
|
64
|
-
}, z.z.core.$strip>;
|
|
65
|
-
//# sourceMappingURL=handler-input-schema.d.ts.map
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
export declare const productRouter: 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
|
-
variation: import("@trpc/server").TRPCBuiltRouter<{
|
|
46
|
-
ctx: {
|
|
47
|
-
db: import("@prisma/client").PrismaClient<{
|
|
48
|
-
log: ("error" | "query" | "warn")[];
|
|
49
|
-
}, never, import("@prisma/client/runtime/library").DefaultArgs>;
|
|
50
|
-
session: {
|
|
51
|
-
id: string;
|
|
52
|
-
createdAt: Date;
|
|
53
|
-
updatedAt: Date;
|
|
54
|
-
userId: string;
|
|
55
|
-
expiresAt: Date;
|
|
56
|
-
token: string;
|
|
57
|
-
ipAddress?: string | null | undefined;
|
|
58
|
-
userAgent?: string | null | undefined;
|
|
59
|
-
} | null;
|
|
60
|
-
user: {
|
|
61
|
-
id: string;
|
|
62
|
-
createdAt: Date;
|
|
63
|
-
updatedAt: Date;
|
|
64
|
-
email: string;
|
|
65
|
-
emailVerified: boolean;
|
|
66
|
-
name: string;
|
|
67
|
-
image?: string | null | undefined;
|
|
68
|
-
role?: import("@prisma/client").$Enums.Role;
|
|
69
|
-
banned?: boolean | null;
|
|
70
|
-
} | null;
|
|
71
|
-
headers: Headers;
|
|
72
|
-
};
|
|
73
|
-
meta: object;
|
|
74
|
-
errorShape: {
|
|
75
|
-
data: {
|
|
76
|
-
zodError: {
|
|
77
|
-
errors: string[];
|
|
78
|
-
} | null;
|
|
79
|
-
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
80
|
-
httpStatus: number;
|
|
81
|
-
path?: string;
|
|
82
|
-
stack?: string;
|
|
83
|
-
};
|
|
84
|
-
message: string;
|
|
85
|
-
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
86
|
-
};
|
|
87
|
-
transformer: true;
|
|
88
|
-
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
89
|
-
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
90
|
-
input: {
|
|
91
|
-
productId: string;
|
|
92
|
-
};
|
|
93
|
-
output: {
|
|
94
|
-
variations: import("../../../data-transfer-objects/product.dto.js").PublicVariationDTO[];
|
|
95
|
-
};
|
|
96
|
-
meta: object;
|
|
97
|
-
}>;
|
|
98
|
-
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
99
|
-
input: {
|
|
100
|
-
varaitionId: string;
|
|
101
|
-
data: {
|
|
102
|
-
totalQty?: number | undefined;
|
|
103
|
-
weightInGrams?: number | undefined;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
output: import("../../../data-transfer-objects/product.dto.js").ExtendedVariationDTO;
|
|
107
|
-
meta: object;
|
|
108
|
-
}>;
|
|
109
|
-
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
110
|
-
input: {
|
|
111
|
-
productId: string;
|
|
112
|
-
data: {
|
|
113
|
-
size: "XS" | "S" | "M" | "L" | "XL" | "XXL" | "XXXL" | "EU_36" | "EU_37" | "EU_38" | "EU_39" | "EU_40" | "EU_41" | "EU_42" | "EU_43";
|
|
114
|
-
color: "BLACK" | "WHITE" | "GRAY" | "RED" | "BLUE" | "GREEN" | "YELLOW" | "ORANGE" | "PURPLE" | "PINK" | "BROWN" | "BEIGE" | "NAVY" | "MAROON" | "TEAL";
|
|
115
|
-
totalQty: number;
|
|
116
|
-
weightInGrams: number;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
output: {
|
|
120
|
-
variation: import("../../../data-transfer-objects/product.dto.js").PublicVariationDTO;
|
|
121
|
-
};
|
|
122
|
-
meta: object;
|
|
123
|
-
}>;
|
|
124
|
-
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
125
|
-
input: {
|
|
126
|
-
variationId: string;
|
|
127
|
-
};
|
|
128
|
-
output: {
|
|
129
|
-
variation: import("../../../data-transfer-objects/product.dto.js").PublicVariationDTO;
|
|
130
|
-
};
|
|
131
|
-
meta: object;
|
|
132
|
-
}>;
|
|
133
|
-
}>>;
|
|
134
|
-
getInfiniteList: import("@trpc/server").TRPCQueryProcedure<{
|
|
135
|
-
input: {
|
|
136
|
-
limit: number;
|
|
137
|
-
categoryId: string;
|
|
138
|
-
cursor?: string | undefined;
|
|
139
|
-
min_price?: number | undefined;
|
|
140
|
-
max_price?: number | undefined;
|
|
141
|
-
};
|
|
142
|
-
output: {
|
|
143
|
-
products: import("../../../data-transfer-objects/product.dto.js").PublicProductDTO[];
|
|
144
|
-
nextCursor: string | undefined;
|
|
145
|
-
};
|
|
146
|
-
meta: object;
|
|
147
|
-
}>;
|
|
148
|
-
getStaticData: import("@trpc/server").TRPCQueryProcedure<{
|
|
149
|
-
input: {
|
|
150
|
-
productId: string;
|
|
151
|
-
};
|
|
152
|
-
output: {
|
|
153
|
-
product: import("../../../data-transfer-objects/product.dto.js").PublicProductDTO;
|
|
154
|
-
};
|
|
155
|
-
meta: object;
|
|
156
|
-
}>;
|
|
157
|
-
getUpdateData: import("@trpc/server").TRPCQueryProcedure<{
|
|
158
|
-
input: {
|
|
159
|
-
productId: string;
|
|
160
|
-
};
|
|
161
|
-
output: {
|
|
162
|
-
product: import("../../../data-transfer-objects/product.dto.js").PublicProductDTO;
|
|
163
|
-
variations: import("../../../data-transfer-objects/product.dto.js").ExtendedVariationDTO[];
|
|
164
|
-
images: import("../../../data-transfer-objects/file.dto.js").ExtendedImageDTO[];
|
|
165
|
-
};
|
|
166
|
-
meta: object;
|
|
167
|
-
}>;
|
|
168
|
-
getInfiniteLowStock: import("@trpc/server").TRPCQueryProcedure<{
|
|
169
|
-
input: {
|
|
170
|
-
limit: number;
|
|
171
|
-
cursor?: string | undefined;
|
|
172
|
-
};
|
|
173
|
-
output: {
|
|
174
|
-
products: import("../../../data-transfer-objects/product.dto.js").PublicProductDTO[];
|
|
175
|
-
nextCursor: string | undefined;
|
|
176
|
-
};
|
|
177
|
-
meta: object;
|
|
178
|
-
}>;
|
|
179
|
-
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
180
|
-
input: {
|
|
181
|
-
price: number;
|
|
182
|
-
name: string;
|
|
183
|
-
description: string | null;
|
|
184
|
-
brand: string;
|
|
185
|
-
material: string;
|
|
186
|
-
discount_price: number | null;
|
|
187
|
-
categoryId: string;
|
|
188
|
-
image: {
|
|
189
|
-
name: string;
|
|
190
|
-
public_url: string;
|
|
191
|
-
key: string;
|
|
192
|
-
color?: "BLACK" | "WHITE" | "GRAY" | "RED" | "BLUE" | "GREEN" | "YELLOW" | "ORANGE" | "PURPLE" | "PINK" | "BROWN" | "BEIGE" | "NAVY" | "MAROON" | "TEAL" | undefined;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
output: {
|
|
196
|
-
product: import("../../../data-transfer-objects/product.dto.js").PublicProductDTO;
|
|
197
|
-
};
|
|
198
|
-
meta: object;
|
|
199
|
-
}>;
|
|
200
|
-
updateStaticDetails: import("@trpc/server").TRPCMutationProcedure<{
|
|
201
|
-
input: {
|
|
202
|
-
productId: string;
|
|
203
|
-
data: {
|
|
204
|
-
price?: number | undefined;
|
|
205
|
-
name?: string | undefined;
|
|
206
|
-
description?: string | null | undefined;
|
|
207
|
-
brand?: string | undefined;
|
|
208
|
-
material?: string | undefined;
|
|
209
|
-
discount_price?: number | null | undefined;
|
|
210
|
-
categoryId?: string | undefined;
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
output: {
|
|
214
|
-
product: import("../../../data-transfer-objects/product.dto.js").PublicProductDTO;
|
|
215
|
-
};
|
|
216
|
-
meta: object;
|
|
217
|
-
}>;
|
|
218
|
-
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
219
|
-
input: {
|
|
220
|
-
productId: string;
|
|
221
|
-
};
|
|
222
|
-
output: {
|
|
223
|
-
product: import("../../../data-transfer-objects/product.dto.js").PublicProductDTO;
|
|
224
|
-
};
|
|
225
|
-
meta: object;
|
|
226
|
-
}>;
|
|
227
|
-
}>>;
|
|
228
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const getAllVariationsInputSchema: z.ZodObject<{
|
|
3
|
-
productId: z.ZodUUID;
|
|
4
|
-
}, z.z.core.$strip>;
|
|
5
|
-
export declare const createVariationInputSchema: z.ZodObject<{
|
|
6
|
-
productId: z.ZodUUID;
|
|
7
|
-
data: z.ZodObject<{
|
|
8
|
-
size: z.ZodEnum<{
|
|
9
|
-
XS: "XS";
|
|
10
|
-
S: "S";
|
|
11
|
-
M: "M";
|
|
12
|
-
L: "L";
|
|
13
|
-
XL: "XL";
|
|
14
|
-
XXL: "XXL";
|
|
15
|
-
XXXL: "XXXL";
|
|
16
|
-
EU_36: "EU_36";
|
|
17
|
-
EU_37: "EU_37";
|
|
18
|
-
EU_38: "EU_38";
|
|
19
|
-
EU_39: "EU_39";
|
|
20
|
-
EU_40: "EU_40";
|
|
21
|
-
EU_41: "EU_41";
|
|
22
|
-
EU_42: "EU_42";
|
|
23
|
-
EU_43: "EU_43";
|
|
24
|
-
}>;
|
|
25
|
-
color: z.ZodEnum<{
|
|
26
|
-
BLACK: "BLACK";
|
|
27
|
-
WHITE: "WHITE";
|
|
28
|
-
GRAY: "GRAY";
|
|
29
|
-
RED: "RED";
|
|
30
|
-
BLUE: "BLUE";
|
|
31
|
-
GREEN: "GREEN";
|
|
32
|
-
YELLOW: "YELLOW";
|
|
33
|
-
ORANGE: "ORANGE";
|
|
34
|
-
PURPLE: "PURPLE";
|
|
35
|
-
PINK: "PINK";
|
|
36
|
-
BROWN: "BROWN";
|
|
37
|
-
BEIGE: "BEIGE";
|
|
38
|
-
NAVY: "NAVY";
|
|
39
|
-
MAROON: "MAROON";
|
|
40
|
-
TEAL: "TEAL";
|
|
41
|
-
}>;
|
|
42
|
-
totalQty: z.ZodInt32;
|
|
43
|
-
weightInGrams: z.ZodInt32;
|
|
44
|
-
}, z.z.core.$strip>;
|
|
45
|
-
}, z.z.core.$strip>;
|
|
46
|
-
export declare const deleteVariationInputSchema: z.ZodObject<{
|
|
47
|
-
variationId: z.ZodUUID;
|
|
48
|
-
}, z.z.core.$strip>;
|
|
49
|
-
export declare const updateVariationInputSchema: z.ZodObject<{
|
|
50
|
-
varaitionId: z.ZodUUID;
|
|
51
|
-
data: z.ZodObject<{
|
|
52
|
-
totalQty: z.ZodOptional<z.ZodInt32>;
|
|
53
|
-
weightInGrams: z.ZodOptional<z.ZodInt32>;
|
|
54
|
-
}, z.z.core.$strip>;
|
|
55
|
-
}, z.z.core.$strip>;
|
|
56
|
-
//# sourceMappingURL=handler-input-schema.d.ts.map
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
export declare const variationRouter: 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: {
|
|
47
|
-
productId: string;
|
|
48
|
-
};
|
|
49
|
-
output: {
|
|
50
|
-
variations: import("../../../../data-transfer-objects/product.dto.js").PublicVariationDTO[];
|
|
51
|
-
};
|
|
52
|
-
meta: object;
|
|
53
|
-
}>;
|
|
54
|
-
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
55
|
-
input: {
|
|
56
|
-
varaitionId: string;
|
|
57
|
-
data: {
|
|
58
|
-
totalQty?: number | undefined;
|
|
59
|
-
weightInGrams?: number | undefined;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
output: import("../../../../data-transfer-objects/product.dto.js").ExtendedVariationDTO;
|
|
63
|
-
meta: object;
|
|
64
|
-
}>;
|
|
65
|
-
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
66
|
-
input: {
|
|
67
|
-
productId: string;
|
|
68
|
-
data: {
|
|
69
|
-
size: "XS" | "S" | "M" | "L" | "XL" | "XXL" | "XXXL" | "EU_36" | "EU_37" | "EU_38" | "EU_39" | "EU_40" | "EU_41" | "EU_42" | "EU_43";
|
|
70
|
-
color: "BLACK" | "WHITE" | "GRAY" | "RED" | "BLUE" | "GREEN" | "YELLOW" | "ORANGE" | "PURPLE" | "PINK" | "BROWN" | "BEIGE" | "NAVY" | "MAROON" | "TEAL";
|
|
71
|
-
totalQty: number;
|
|
72
|
-
weightInGrams: number;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
output: {
|
|
76
|
-
variation: import("../../../../data-transfer-objects/product.dto.js").PublicVariationDTO;
|
|
77
|
-
};
|
|
78
|
-
meta: object;
|
|
79
|
-
}>;
|
|
80
|
-
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
81
|
-
input: {
|
|
82
|
-
variationId: string;
|
|
83
|
-
};
|
|
84
|
-
output: {
|
|
85
|
-
variation: import("../../../../data-transfer-objects/product.dto.js").PublicVariationDTO;
|
|
86
|
-
};
|
|
87
|
-
meta: object;
|
|
88
|
-
}>;
|
|
89
|
-
}>>;
|
|
90
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const getInfiniteApprovedRatingsListOfProductInputSchema: z.ZodObject<{
|
|
3
|
-
limit: z.ZodInt32;
|
|
4
|
-
productId: z.ZodUUID;
|
|
5
|
-
cursor: z.ZodOptional<z.ZodObject<{
|
|
6
|
-
userId: z.ZodString;
|
|
7
|
-
productId: z.ZodUUID;
|
|
8
|
-
}, z.z.core.$strip>>;
|
|
9
|
-
}, z.z.core.$strip>;
|
|
10
|
-
export declare const getInfiniteRatingsListOfClientInputSchema: z.ZodObject<{
|
|
11
|
-
limit: z.ZodInt32;
|
|
12
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
13
|
-
cursor: z.ZodOptional<z.ZodObject<{
|
|
14
|
-
userId: z.ZodString;
|
|
15
|
-
productId: z.ZodUUID;
|
|
16
|
-
}, z.z.core.$strip>>;
|
|
17
|
-
}, z.z.core.$strip>;
|
|
18
|
-
export declare const didUserRateProductInputSchema: z.ZodObject<{
|
|
19
|
-
productId: z.ZodUUID;
|
|
20
|
-
}, z.z.core.$strip>;
|
|
21
|
-
export declare const getInfinitePendingRatingsListInputSchema: z.ZodObject<{
|
|
22
|
-
limit: z.ZodInt32;
|
|
23
|
-
cursor: z.ZodOptional<z.ZodObject<{
|
|
24
|
-
userId: z.ZodString;
|
|
25
|
-
productId: z.ZodUUID;
|
|
26
|
-
}, z.z.core.$strip>>;
|
|
27
|
-
}, z.z.core.$strip>;
|
|
28
|
-
export declare const submitRatingInputSchema: z.ZodObject<{
|
|
29
|
-
productId: z.ZodUUID;
|
|
30
|
-
ratingNum: z.ZodInt;
|
|
31
|
-
comment: z.ZodNullable<z.ZodString>;
|
|
32
|
-
}, z.z.core.$strip>;
|
|
33
|
-
export declare const deleteRatingInputSchema: z.ZodObject<{
|
|
34
|
-
productId: z.ZodUUID;
|
|
35
|
-
clientId: z.ZodString;
|
|
36
|
-
}, z.z.core.$strip>;
|
|
37
|
-
export declare const approveRatingInputSchema: z.ZodObject<{
|
|
38
|
-
productId: z.ZodUUID;
|
|
39
|
-
clientId: z.ZodString;
|
|
40
|
-
}, z.z.core.$strip>;
|
|
41
|
-
//# sourceMappingURL=handler-input-schema.d.ts.map
|