@instockng/api-client 1.0.4 → 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.
Files changed (186) hide show
  1. package/dist/enum-types.d.ts +8 -0
  2. package/dist/enum-types.js +5 -0
  3. package/dist/fetchers/carts.js +5 -0
  4. package/dist/hooks/admin/abandoned-carts.js +12 -8
  5. package/dist/hooks/admin/brands.js +15 -10
  6. package/dist/hooks/admin/customers.js +3 -2
  7. package/dist/hooks/admin/delivery-zones.js +24 -16
  8. package/dist/hooks/admin/discount-codes.js +24 -16
  9. package/dist/hooks/admin/inventory.js +15 -10
  10. package/dist/hooks/admin/orders.js +18 -12
  11. package/dist/hooks/admin/products.js +15 -10
  12. package/dist/hooks/admin/stats.js +3 -2
  13. package/dist/hooks/admin/variants.js +18 -12
  14. package/dist/hooks/admin/warehouses.js +15 -10
  15. package/dist/hooks/useApiConfig.d.ts +2 -1
  16. package/dist/hooks/useApiConfig.js +2 -2
  17. package/dist/provider.d.ts +7 -4
  18. package/dist/provider.js +5 -3
  19. package/dist/types.d.ts +1 -0
  20. package/package.json +1 -1
  21. package/dist/apps/backend/src/generated/zod/index.d.ts +0 -1114
  22. package/dist/apps/backend/src/generated/zod/index.js +0 -670
  23. package/dist/apps/backend/src/http-app.d.ts +0 -40
  24. package/dist/apps/backend/src/http-app.js +0 -106
  25. package/dist/apps/backend/src/lib/brand-response.d.ts +0 -14
  26. package/dist/apps/backend/src/lib/brand-response.js +0 -8
  27. package/dist/apps/backend/src/lib/cart-helpers.d.ts +0 -280
  28. package/dist/apps/backend/src/lib/cart-helpers.js +0 -93
  29. package/dist/apps/backend/src/lib/cart-recovery.d.ts +0 -30
  30. package/dist/apps/backend/src/lib/cart-recovery.js +0 -147
  31. package/dist/apps/backend/src/lib/cart-response.d.ts +0 -121
  32. package/dist/apps/backend/src/lib/cart-response.js +0 -150
  33. package/dist/apps/backend/src/lib/clerk.d.ts +0 -18
  34. package/dist/apps/backend/src/lib/clerk.js +0 -167
  35. package/dist/apps/backend/src/lib/delivery-zone-response.d.ts +0 -62
  36. package/dist/apps/backend/src/lib/delivery-zone-response.js +0 -24
  37. package/dist/apps/backend/src/lib/discount-code-response.d.ts +0 -42
  38. package/dist/apps/backend/src/lib/discount-code-response.js +0 -19
  39. package/dist/apps/backend/src/lib/discount.d.ts +0 -20
  40. package/dist/apps/backend/src/lib/discount.js +0 -35
  41. package/dist/apps/backend/src/lib/inventory.d.ts +0 -26
  42. package/dist/apps/backend/src/lib/inventory.js +0 -160
  43. package/dist/apps/backend/src/lib/meta-capi.d.ts +0 -48
  44. package/dist/apps/backend/src/lib/meta-capi.js +0 -120
  45. package/dist/apps/backend/src/lib/openapi.d.ts +0 -36
  46. package/dist/apps/backend/src/lib/openapi.js +0 -69
  47. package/dist/apps/backend/src/lib/order-recovery.d.ts +0 -367
  48. package/dist/apps/backend/src/lib/order-recovery.js +0 -373
  49. package/dist/apps/backend/src/lib/order-response.d.ts +0 -136
  50. package/dist/apps/backend/src/lib/order-response.js +0 -61
  51. package/dist/apps/backend/src/lib/pricing.d.ts +0 -39
  52. package/dist/apps/backend/src/lib/pricing.js +0 -62
  53. package/dist/apps/backend/src/lib/prisma.d.ts +0 -9
  54. package/dist/apps/backend/src/lib/prisma.js +0 -30
  55. package/dist/apps/backend/src/lib/product-response.d.ts +0 -82
  56. package/dist/apps/backend/src/lib/product-response.js +0 -29
  57. package/dist/apps/backend/src/lib/utils.d.ts +0 -32
  58. package/dist/apps/backend/src/lib/utils.js +0 -63
  59. package/dist/apps/backend/src/middleware/clerk-auth.d.ts +0 -8
  60. package/dist/apps/backend/src/middleware/clerk-auth.js +0 -89
  61. package/dist/apps/backend/src/middleware/cors.d.ts +0 -8
  62. package/dist/apps/backend/src/middleware/cors.js +0 -11
  63. package/dist/apps/backend/src/notifications/producers/meta-capi-producer.d.ts +0 -55
  64. package/dist/apps/backend/src/notifications/producers/meta-capi-producer.js +0 -125
  65. package/dist/apps/backend/src/notifications/producers/order-notification.d.ts +0 -9
  66. package/dist/apps/backend/src/notifications/producers/order-notification.js +0 -18
  67. package/dist/apps/backend/src/notifications/producers/prospect-recovery-notification.d.ts +0 -10
  68. package/dist/apps/backend/src/notifications/producers/prospect-recovery-notification.js +0 -11
  69. package/dist/apps/backend/src/routes/admin/abandoned-carts.d.ts +0 -605
  70. package/dist/apps/backend/src/routes/admin/abandoned-carts.js +0 -194
  71. package/dist/apps/backend/src/routes/admin/brands.d.ts +0 -175
  72. package/dist/apps/backend/src/routes/admin/brands.js +0 -118
  73. package/dist/apps/backend/src/routes/admin/customers.d.ts +0 -306
  74. package/dist/apps/backend/src/routes/admin/customers.js +0 -39
  75. package/dist/apps/backend/src/routes/admin/delivery-zones.d.ts +0 -438
  76. package/dist/apps/backend/src/routes/admin/delivery-zones.js +0 -300
  77. package/dist/apps/backend/src/routes/admin/discount-codes.d.ts +0 -478
  78. package/dist/apps/backend/src/routes/admin/discount-codes.js +0 -418
  79. package/dist/apps/backend/src/routes/admin/inventory.d.ts +0 -273
  80. package/dist/apps/backend/src/routes/admin/inventory.js +0 -189
  81. package/dist/apps/backend/src/routes/admin/orders.d.ts +0 -1478
  82. package/dist/apps/backend/src/routes/admin/orders.js +0 -503
  83. package/dist/apps/backend/src/routes/admin/products.d.ts +0 -860
  84. package/dist/apps/backend/src/routes/admin/products.js +0 -107
  85. package/dist/apps/backend/src/routes/admin/stats.d.ts +0 -288
  86. package/dist/apps/backend/src/routes/admin/stats.js +0 -55
  87. package/dist/apps/backend/src/routes/admin/variants.d.ts +0 -239
  88. package/dist/apps/backend/src/routes/admin/variants.js +0 -173
  89. package/dist/apps/backend/src/routes/admin/warehouses.d.ts +0 -373
  90. package/dist/apps/backend/src/routes/admin/warehouses.js +0 -123
  91. package/dist/apps/backend/src/routes/public/brands.d.ts +0 -40
  92. package/dist/apps/backend/src/routes/public/brands.js +0 -38
  93. package/dist/apps/backend/src/routes/public/carts.d.ts +0 -2655
  94. package/dist/apps/backend/src/routes/public/carts.js +0 -631
  95. package/dist/apps/backend/src/routes/public/delivery-zones.d.ts +0 -35
  96. package/dist/apps/backend/src/routes/public/delivery-zones.js +0 -62
  97. package/dist/apps/backend/src/routes/public/orders.d.ts +0 -323
  98. package/dist/apps/backend/src/routes/public/orders.js +0 -160
  99. package/dist/apps/backend/src/routes/public/products.d.ts +0 -449
  100. package/dist/apps/backend/src/routes/public/products.js +0 -133
  101. package/dist/apps/backend/src/types/index.d.ts +0 -42
  102. package/dist/apps/backend/src/types/index.js +0 -2
  103. package/dist/apps/backend/src/validators/brand.d.ts +0 -17
  104. package/dist/apps/backend/src/validators/brand.js +0 -15
  105. package/dist/apps/backend/src/validators/delivery-zone.d.ts +0 -31
  106. package/dist/apps/backend/src/validators/delivery-zone.js +0 -51
  107. package/dist/apps/backend/src/validators/discount-code.d.ts +0 -74
  108. package/dist/apps/backend/src/validators/discount-code.js +0 -50
  109. package/dist/apps/backend/src/validators/inventory.d.ts +0 -20
  110. package/dist/apps/backend/src/validators/inventory.js +0 -15
  111. package/dist/apps/backend/src/validators/order.d.ts +0 -87
  112. package/dist/apps/backend/src/validators/order.js +0 -61
  113. package/dist/apps/backend/src/validators/product.d.ts +0 -18
  114. package/dist/apps/backend/src/validators/product.js +0 -19
  115. package/dist/apps/backend/src/validators/variant.d.ts +0 -19
  116. package/dist/apps/backend/src/validators/variant.js +0 -19
  117. package/dist/apps/backend/src/validators/warehouse.d.ts +0 -15
  118. package/dist/apps/backend/src/validators/warehouse.js +0 -15
  119. package/dist/packages/api-client/src/backend-types.d.ts +0 -10
  120. package/dist/packages/api-client/src/backend-types.js +0 -10
  121. package/dist/packages/api-client/src/client.d.ts +0 -20
  122. package/dist/packages/api-client/src/client.js +0 -40
  123. package/dist/packages/api-client/src/fetchers/brands.d.ts +0 -25
  124. package/dist/packages/api-client/src/fetchers/brands.js +0 -26
  125. package/dist/packages/api-client/src/fetchers/carts.d.ts +0 -2335
  126. package/dist/packages/api-client/src/fetchers/carts.js +0 -169
  127. package/dist/packages/api-client/src/fetchers/delivery-zones.d.ts +0 -28
  128. package/dist/packages/api-client/src/fetchers/delivery-zones.js +0 -26
  129. package/dist/packages/api-client/src/fetchers/index.d.ts +0 -22
  130. package/dist/packages/api-client/src/fetchers/index.js +0 -22
  131. package/dist/packages/api-client/src/fetchers/orders.d.ts +0 -283
  132. package/dist/packages/api-client/src/fetchers/orders.js +0 -44
  133. package/dist/packages/api-client/src/fetchers/products.d.ts +0 -386
  134. package/dist/packages/api-client/src/fetchers/products.js +0 -42
  135. package/dist/packages/api-client/src/hooks/admin/abandoned-carts.d.ts +0 -535
  136. package/dist/packages/api-client/src/hooks/admin/abandoned-carts.js +0 -79
  137. package/dist/packages/api-client/src/hooks/admin/brands.d.ts +0 -79
  138. package/dist/packages/api-client/src/hooks/admin/brands.js +0 -103
  139. package/dist/packages/api-client/src/hooks/admin/customers.d.ts +0 -278
  140. package/dist/packages/api-client/src/hooks/admin/customers.js +0 -25
  141. package/dist/packages/api-client/src/hooks/admin/delivery-zones.d.ts +0 -270
  142. package/dist/packages/api-client/src/hooks/admin/delivery-zones.js +0 -168
  143. package/dist/packages/api-client/src/hooks/admin/discount-codes.d.ts +0 -299
  144. package/dist/packages/api-client/src/hooks/admin/discount-codes.js +0 -157
  145. package/dist/packages/api-client/src/hooks/admin/index.d.ts +0 -16
  146. package/dist/packages/api-client/src/hooks/admin/index.js +0 -16
  147. package/dist/packages/api-client/src/hooks/admin/inventory.d.ts +0 -224
  148. package/dist/packages/api-client/src/hooks/admin/inventory.js +0 -102
  149. package/dist/packages/api-client/src/hooks/admin/orders.d.ts +0 -1380
  150. package/dist/packages/api-client/src/hooks/admin/orders.js +0 -169
  151. package/dist/packages/api-client/src/hooks/admin/products.d.ts +0 -374
  152. package/dist/packages/api-client/src/hooks/admin/products.js +0 -84
  153. package/dist/packages/api-client/src/hooks/admin/stats.d.ts +0 -277
  154. package/dist/packages/api-client/src/hooks/admin/stats.js +0 -24
  155. package/dist/packages/api-client/src/hooks/admin/variants.d.ts +0 -115
  156. package/dist/packages/api-client/src/hooks/admin/variants.js +0 -121
  157. package/dist/packages/api-client/src/hooks/admin/warehouses.d.ts +0 -277
  158. package/dist/packages/api-client/src/hooks/admin/warehouses.js +0 -103
  159. package/dist/packages/api-client/src/hooks/public/brands.d.ts +0 -33
  160. package/dist/packages/api-client/src/hooks/public/brands.js +0 -30
  161. package/dist/packages/api-client/src/hooks/public/carts.d.ts +0 -2405
  162. package/dist/packages/api-client/src/hooks/public/carts.js +0 -213
  163. package/dist/packages/api-client/src/hooks/public/delivery-zones.d.ts +0 -34
  164. package/dist/packages/api-client/src/hooks/public/delivery-zones.js +0 -28
  165. package/dist/packages/api-client/src/hooks/public/index.d.ts +0 -10
  166. package/dist/packages/api-client/src/hooks/public/index.js +0 -10
  167. package/dist/packages/api-client/src/hooks/public/orders.d.ts +0 -302
  168. package/dist/packages/api-client/src/hooks/public/orders.js +0 -50
  169. package/dist/packages/api-client/src/hooks/public/products.d.ts +0 -398
  170. package/dist/packages/api-client/src/hooks/public/products.js +0 -47
  171. package/dist/packages/api-client/src/hooks/use-query-unwrapped.d.ts +0 -20
  172. package/dist/packages/api-client/src/hooks/use-query-unwrapped.js +0 -22
  173. package/dist/packages/api-client/src/hooks/useApiConfig.d.ts +0 -11
  174. package/dist/packages/api-client/src/hooks/useApiConfig.js +0 -14
  175. package/dist/packages/api-client/src/index.d.ts +0 -20
  176. package/dist/packages/api-client/src/index.js +0 -25
  177. package/dist/packages/api-client/src/provider.d.ts +0 -33
  178. package/dist/packages/api-client/src/provider.js +0 -52
  179. package/dist/packages/api-client/src/rpc-client.d.ts +0 -9035
  180. package/dist/packages/api-client/src/rpc-client.js +0 -78
  181. package/dist/packages/api-client/src/rpc-types.d.ts +0 -76
  182. package/dist/packages/api-client/src/rpc-types.js +0 -7
  183. package/dist/packages/api-client/src/types.d.ts +0 -33
  184. package/dist/packages/api-client/src/types.js +0 -16
  185. package/dist/packages/api-client/src/utils/query-keys.d.ts +0 -106
  186. package/dist/packages/api-client/src/utils/query-keys.js +0 -108
@@ -1,1114 +0,0 @@
1
- import { z } from 'zod';
2
- import { Prisma } from '@prisma/client';
3
- export type NullableJsonInput = Prisma.JsonValue | null | 'JsonNull' | 'DbNull' | Prisma.NullTypes.DbNull | Prisma.NullTypes.JsonNull;
4
- export declare const transformJsonNull: (v?: NullableJsonInput) => string | number | true | Prisma.JsonObject | Prisma.JsonArray | Prisma.NullTypes.DbNull | Prisma.NullTypes.JsonNull | typeof Prisma.NullTypes.DbNull | typeof Prisma.NullTypes.JsonNull;
5
- export declare const JsonValueSchema: z.ZodType<Prisma.JsonValue>;
6
- export type JsonValueType = z.infer<typeof JsonValueSchema>;
7
- export declare const NullableJsonValue: z.ZodPipe<z.ZodNullable<z.ZodUnion<readonly [z.ZodType<Prisma.JsonValue, unknown, z.core.$ZodTypeInternals<Prisma.JsonValue, unknown>>, z.ZodLiteral<"DbNull">, z.ZodLiteral<"JsonNull">]>>, z.ZodTransform<string | number | true | Prisma.JsonObject | Prisma.JsonArray | Prisma.NullTypes.DbNull | Prisma.NullTypes.JsonNull | typeof Prisma.NullTypes.DbNull | typeof Prisma.NullTypes.JsonNull, Prisma.JsonValue>>;
8
- export type NullableJsonValueType = z.infer<typeof NullableJsonValue>;
9
- export declare const InputJsonValueSchema: z.ZodType<Prisma.InputJsonValue>;
10
- export type InputJsonValueType = z.infer<typeof InputJsonValueSchema>;
11
- export declare const DecimalJsLikeSchema: z.ZodType<Prisma.DecimalJsLike>;
12
- export declare const DECIMAL_STRING_REGEX: RegExp;
13
- export declare const isValidDecimalInput: (v?: null | string | number | Prisma.DecimalJsLike) => v is string | number | Prisma.DecimalJsLike;
14
- export declare const TransactionIsolationLevelSchema: z.ZodEnum<{
15
- ReadUncommitted: "ReadUncommitted";
16
- ReadCommitted: "ReadCommitted";
17
- RepeatableRead: "RepeatableRead";
18
- Serializable: "Serializable";
19
- }>;
20
- export declare const BrandScalarFieldEnumSchema: z.ZodEnum<{
21
- name: "name";
22
- id: "id";
23
- slug: "slug";
24
- logoUrl: "logoUrl";
25
- siteUrl: "siteUrl";
26
- domain: "domain";
27
- metaPixelId: "metaPixelId";
28
- createdAt: "createdAt";
29
- updatedAt: "updatedAt";
30
- deletedAt: "deletedAt";
31
- }>;
32
- export declare const StateScalarFieldEnumSchema: z.ZodEnum<{
33
- name: "name";
34
- id: "id";
35
- createdAt: "createdAt";
36
- updatedAt: "updatedAt";
37
- deletedAt: "deletedAt";
38
- isActive: "isActive";
39
- }>;
40
- export declare const DeliveryZoneScalarFieldEnumSchema: z.ZodEnum<{
41
- name: "name";
42
- id: "id";
43
- createdAt: "createdAt";
44
- updatedAt: "updatedAt";
45
- deletedAt: "deletedAt";
46
- brandId: "brandId";
47
- stateId: "stateId";
48
- deliveryCost: "deliveryCost";
49
- freeShippingThreshold: "freeShippingThreshold";
50
- allowCOD: "allowCOD";
51
- allowOnline: "allowOnline";
52
- waybillOnly: "waybillOnly";
53
- estimatedDays: "estimatedDays";
54
- isActive: "isActive";
55
- }>;
56
- export declare const DiscountCodeScalarFieldEnumSchema: z.ZodEnum<{
57
- id: "id";
58
- createdAt: "createdAt";
59
- updatedAt: "updatedAt";
60
- deletedAt: "deletedAt";
61
- brandId: "brandId";
62
- isActive: "isActive";
63
- code: "code";
64
- type: "type";
65
- value: "value";
66
- minPurchase: "minPurchase";
67
- maxDiscount: "maxDiscount";
68
- usageLimit: "usageLimit";
69
- usageCount: "usageCount";
70
- perCustomerLimit: "perCustomerLimit";
71
- validFrom: "validFrom";
72
- validUntil: "validUntil";
73
- isAutoApply: "isAutoApply";
74
- description: "description";
75
- category: "category";
76
- createdBy: "createdBy";
77
- }>;
78
- export declare const DiscountCodeUsageScalarFieldEnumSchema: z.ZodEnum<{
79
- id: "id";
80
- createdAt: "createdAt";
81
- customerPhone: "customerPhone";
82
- discountCodeId: "discountCodeId";
83
- discountAmount: "discountAmount";
84
- orderId: "orderId";
85
- originalAmount: "originalAmount";
86
- }>;
87
- export declare const CartScalarFieldEnumSchema: z.ZodEnum<{
88
- id: "id";
89
- createdAt: "createdAt";
90
- updatedAt: "updatedAt";
91
- brandId: "brandId";
92
- customerPhone: "customerPhone";
93
- customerFirstName: "customerFirstName";
94
- customerLastName: "customerLastName";
95
- expiresAt: "expiresAt";
96
- deliveryZoneId: "deliveryZoneId";
97
- deliveryZoneLockedAt: "deliveryZoneLockedAt";
98
- availablePaymentMethods: "availablePaymentMethods";
99
- recoveryAttempts: "recoveryAttempts";
100
- lastRecoveryAttemptAt: "lastRecoveryAttemptAt";
101
- recoveryDiscountCodeId: "recoveryDiscountCodeId";
102
- convertedToOrderId: "convertedToOrderId";
103
- wasRecovered: "wasRecovered";
104
- appliedDiscountCodeId: "appliedDiscountCodeId";
105
- customerEmail: "customerEmail";
106
- }>;
107
- export declare const CartItemScalarFieldEnumSchema: z.ZodEnum<{
108
- id: "id";
109
- createdAt: "createdAt";
110
- updatedAt: "updatedAt";
111
- variantId: "variantId";
112
- quantity: "quantity";
113
- cartId: "cartId";
114
- }>;
115
- export declare const ProductScalarFieldEnumSchema: z.ZodEnum<{
116
- name: "name";
117
- id: "id";
118
- slug: "slug";
119
- createdAt: "createdAt";
120
- updatedAt: "updatedAt";
121
- deletedAt: "deletedAt";
122
- brandId: "brandId";
123
- isActive: "isActive";
124
- description: "description";
125
- thumbnailUrl: "thumbnailUrl";
126
- quantityDiscounts: "quantityDiscounts";
127
- }>;
128
- export declare const ProductVariantScalarFieldEnumSchema: z.ZodEnum<{
129
- name: "name";
130
- id: "id";
131
- createdAt: "createdAt";
132
- updatedAt: "updatedAt";
133
- deletedAt: "deletedAt";
134
- isActive: "isActive";
135
- thumbnailUrl: "thumbnailUrl";
136
- productId: "productId";
137
- sku: "sku";
138
- price: "price";
139
- trackInventory: "trackInventory";
140
- lowStockThreshold: "lowStockThreshold";
141
- }>;
142
- export declare const WarehouseScalarFieldEnumSchema: z.ZodEnum<{
143
- name: "name";
144
- id: "id";
145
- createdAt: "createdAt";
146
- updatedAt: "updatedAt";
147
- deletedAt: "deletedAt";
148
- isActive: "isActive";
149
- address: "address";
150
- city: "city";
151
- state: "state";
152
- }>;
153
- export declare const WarehouseInventoryScalarFieldEnumSchema: z.ZodEnum<{
154
- id: "id";
155
- updatedAt: "updatedAt";
156
- variantId: "variantId";
157
- warehouseId: "warehouseId";
158
- inventoryCount: "inventoryCount";
159
- }>;
160
- export declare const InventoryTransactionScalarFieldEnumSchema: z.ZodEnum<{
161
- id: "id";
162
- createdAt: "createdAt";
163
- type: "type";
164
- orderId: "orderId";
165
- variantId: "variantId";
166
- warehouseId: "warehouseId";
167
- quantity: "quantity";
168
- balanceAfter: "balanceAfter";
169
- reason: "reason";
170
- userId: "userId";
171
- metadata: "metadata";
172
- }>;
173
- export declare const OrderScalarFieldEnumSchema: z.ZodEnum<{
174
- id: "id";
175
- email: "email";
176
- createdAt: "createdAt";
177
- updatedAt: "updatedAt";
178
- deletedAt: "deletedAt";
179
- brandId: "brandId";
180
- deliveryZoneId: "deliveryZoneId";
181
- recoveryAttempts: "recoveryAttempts";
182
- lastRecoveryAttemptAt: "lastRecoveryAttemptAt";
183
- recoveryDiscountCodeId: "recoveryDiscountCodeId";
184
- wasRecovered: "wasRecovered";
185
- estimatedDays: "estimatedDays";
186
- orderNumber: "orderNumber";
187
- firstName: "firstName";
188
- lastName: "lastName";
189
- phone: "phone";
190
- address: "address";
191
- city: "city";
192
- deliveryCharge: "deliveryCharge";
193
- totalPrice: "totalPrice";
194
- discountCodeId: "discountCodeId";
195
- discountAmount: "discountAmount";
196
- paymentMethod: "paymentMethod";
197
- paystackReference: "paystackReference";
198
- status: "status";
199
- cancellationReason: "cancellationReason";
200
- prospectReason: "prospectReason";
201
- prospectSince: "prospectSince";
202
- userActionToken: "userActionToken";
203
- }>;
204
- export declare const OrderItemScalarFieldEnumSchema: z.ZodEnum<{
205
- id: "id";
206
- orderId: "orderId";
207
- variantId: "variantId";
208
- warehouseId: "warehouseId";
209
- quantity: "quantity";
210
- priceAtPurchase: "priceAtPurchase";
211
- }>;
212
- export declare const UserScalarFieldEnumSchema: z.ZodEnum<{
213
- name: "name";
214
- id: "id";
215
- email: "email";
216
- createdAt: "createdAt";
217
- deletedAt: "deletedAt";
218
- clerkId: "clerkId";
219
- role: "role";
220
- }>;
221
- export declare const OrderNoteScalarFieldEnumSchema: z.ZodEnum<{
222
- id: "id";
223
- createdAt: "createdAt";
224
- type: "type";
225
- createdBy: "createdBy";
226
- orderId: "orderId";
227
- metadata: "metadata";
228
- note: "note";
229
- }>;
230
- export declare const SortOrderSchema: z.ZodEnum<{
231
- asc: "asc";
232
- desc: "desc";
233
- }>;
234
- export declare const NullableJsonNullValueInputSchema: z.ZodPipe<z.ZodEnum<{
235
- DbNull: "DbNull";
236
- JsonNull: "JsonNull";
237
- }>, z.ZodTransform<Prisma.NullTypes.DbNull | Prisma.NullTypes.JsonNull, "DbNull" | "JsonNull">>;
238
- export declare const QueryModeSchema: z.ZodEnum<{
239
- default: "default";
240
- insensitive: "insensitive";
241
- }>;
242
- export declare const NullsOrderSchema: z.ZodEnum<{
243
- first: "first";
244
- last: "last";
245
- }>;
246
- export declare const JsonNullValueFilterSchema: z.ZodPipe<z.ZodEnum<{
247
- DbNull: "DbNull";
248
- JsonNull: "JsonNull";
249
- AnyNull: "AnyNull";
250
- }>, z.ZodTransform<Prisma.NullTypes.DbNull | Prisma.NullTypes.JsonNull | Prisma.NullTypes.AnyNull, "DbNull" | "JsonNull" | "AnyNull">>;
251
- export declare const InventoryTransactionTypeSchema: z.ZodEnum<{
252
- sale: "sale";
253
- restock: "restock";
254
- adjustment: "adjustment";
255
- return: "return";
256
- transfer_in: "transfer_in";
257
- transfer_out: "transfer_out";
258
- damaged: "damaged";
259
- initial: "initial";
260
- }>;
261
- export type InventoryTransactionTypeType = `${z.infer<typeof InventoryTransactionTypeSchema>}`;
262
- export declare const PaymentMethodSchema: z.ZodEnum<{
263
- cod: "cod";
264
- online: "online";
265
- }>;
266
- export type PaymentMethodType = `${z.infer<typeof PaymentMethodSchema>}`;
267
- export declare const OrderStatusSchema: z.ZodEnum<{
268
- pending: "pending";
269
- shipped: "shipped";
270
- delivered: "delivered";
271
- cancelled: "cancelled";
272
- returned: "returned";
273
- prospect: "prospect";
274
- }>;
275
- export type OrderStatusType = `${z.infer<typeof OrderStatusSchema>}`;
276
- export declare const NoteTypeSchema: z.ZodEnum<{
277
- general: "general";
278
- status_change: "status_change";
279
- prospect_reason: "prospect_reason";
280
- delivery_attempt: "delivery_attempt";
281
- customer_communication: "customer_communication";
282
- internal: "internal";
283
- }>;
284
- export type NoteTypeType = `${z.infer<typeof NoteTypeSchema>}`;
285
- export declare const ProspectReasonSchema: z.ZodEnum<{
286
- other: "other";
287
- no_answer: "no_answer";
288
- thinking: "thinking";
289
- price_concern: "price_concern";
290
- will_call_back: "will_call_back";
291
- unclear_commitment: "unclear_commitment";
292
- payment_issue: "payment_issue";
293
- }>;
294
- export type ProspectReasonType = `${z.infer<typeof ProspectReasonSchema>}`;
295
- export declare const BrandSchema: z.ZodObject<{
296
- id: z.ZodUUID;
297
- name: z.ZodString;
298
- slug: z.ZodString;
299
- logoUrl: z.ZodNullable<z.ZodString>;
300
- siteUrl: z.ZodString;
301
- domain: z.ZodString;
302
- metaPixelId: z.ZodNullable<z.ZodString>;
303
- createdAt: z.ZodCoercedDate<unknown>;
304
- updatedAt: z.ZodCoercedDate<unknown>;
305
- deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
306
- }, z.core.$strip>;
307
- export type Brand = z.infer<typeof BrandSchema>;
308
- export declare const BrandPartialSchema: z.ZodObject<{
309
- id: z.ZodOptional<z.ZodUUID>;
310
- name: z.ZodOptional<z.ZodString>;
311
- slug: z.ZodOptional<z.ZodString>;
312
- logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
- siteUrl: z.ZodOptional<z.ZodString>;
314
- domain: z.ZodOptional<z.ZodString>;
315
- metaPixelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
316
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
317
- updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
318
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
319
- }, z.core.$strip>;
320
- export type BrandPartial = z.infer<typeof BrandPartialSchema>;
321
- export type BrandRelations = {
322
- carts: CartWithRelations[];
323
- deliveryZones: DeliveryZoneWithRelations[];
324
- discountCodes: DiscountCodeWithRelations[];
325
- orders: OrderWithRelations[];
326
- products: ProductWithRelations[];
327
- };
328
- export type BrandWithRelations = z.infer<typeof BrandSchema> & BrandRelations;
329
- export declare const BrandWithRelationsSchema: z.ZodType<BrandWithRelations>;
330
- export type BrandPartialRelations = {
331
- carts?: CartPartialWithRelations[];
332
- deliveryZones?: DeliveryZonePartialWithRelations[];
333
- discountCodes?: DiscountCodePartialWithRelations[];
334
- orders?: OrderPartialWithRelations[];
335
- products?: ProductPartialWithRelations[];
336
- };
337
- export type BrandPartialWithRelations = z.infer<typeof BrandPartialSchema> & BrandPartialRelations;
338
- export declare const BrandPartialWithRelationsSchema: z.ZodType<BrandPartialWithRelations>;
339
- export type BrandWithPartialRelations = z.infer<typeof BrandSchema> & BrandPartialRelations;
340
- export declare const BrandWithPartialRelationsSchema: z.ZodType<BrandWithPartialRelations>;
341
- export declare const StateSchema: z.ZodObject<{
342
- id: z.ZodUUID;
343
- name: z.ZodString;
344
- isActive: z.ZodBoolean;
345
- createdAt: z.ZodCoercedDate<unknown>;
346
- updatedAt: z.ZodCoercedDate<unknown>;
347
- deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
348
- }, z.core.$strip>;
349
- export type State = z.infer<typeof StateSchema>;
350
- export declare const StatePartialSchema: z.ZodObject<{
351
- id: z.ZodOptional<z.ZodUUID>;
352
- name: z.ZodOptional<z.ZodString>;
353
- isActive: z.ZodOptional<z.ZodBoolean>;
354
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
355
- updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
356
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
357
- }, z.core.$strip>;
358
- export type StatePartial = z.infer<typeof StatePartialSchema>;
359
- export type StateRelations = {
360
- deliveryZones: DeliveryZoneWithRelations[];
361
- };
362
- export type StateWithRelations = z.infer<typeof StateSchema> & StateRelations;
363
- export declare const StateWithRelationsSchema: z.ZodType<StateWithRelations>;
364
- export type StatePartialRelations = {
365
- deliveryZones?: DeliveryZonePartialWithRelations[];
366
- };
367
- export type StatePartialWithRelations = z.infer<typeof StatePartialSchema> & StatePartialRelations;
368
- export declare const StatePartialWithRelationsSchema: z.ZodType<StatePartialWithRelations>;
369
- export type StateWithPartialRelations = z.infer<typeof StateSchema> & StatePartialRelations;
370
- export declare const StateWithPartialRelationsSchema: z.ZodType<StateWithPartialRelations>;
371
- export declare const DeliveryZoneSchema: z.ZodObject<{
372
- id: z.ZodUUID;
373
- stateId: z.ZodString;
374
- brandId: z.ZodNullable<z.ZodString>;
375
- name: z.ZodString;
376
- deliveryCost: z.ZodCustom<Prisma.Decimal, Prisma.Decimal>;
377
- freeShippingThreshold: z.ZodNullable<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
378
- allowCOD: z.ZodBoolean;
379
- allowOnline: z.ZodBoolean;
380
- waybillOnly: z.ZodBoolean;
381
- estimatedDays: z.ZodNullable<z.ZodNumber>;
382
- isActive: z.ZodBoolean;
383
- createdAt: z.ZodCoercedDate<unknown>;
384
- updatedAt: z.ZodCoercedDate<unknown>;
385
- deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
386
- }, z.core.$strip>;
387
- export type DeliveryZone = z.infer<typeof DeliveryZoneSchema>;
388
- export declare const DeliveryZonePartialSchema: z.ZodObject<{
389
- id: z.ZodOptional<z.ZodUUID>;
390
- stateId: z.ZodOptional<z.ZodString>;
391
- brandId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
392
- name: z.ZodOptional<z.ZodString>;
393
- deliveryCost: z.ZodOptional<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
394
- freeShippingThreshold: z.ZodOptional<z.ZodNullable<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>>;
395
- allowCOD: z.ZodOptional<z.ZodBoolean>;
396
- allowOnline: z.ZodOptional<z.ZodBoolean>;
397
- waybillOnly: z.ZodOptional<z.ZodBoolean>;
398
- estimatedDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
399
- isActive: z.ZodOptional<z.ZodBoolean>;
400
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
401
- updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
402
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
403
- }, z.core.$strip>;
404
- export type DeliveryZonePartial = z.infer<typeof DeliveryZonePartialSchema>;
405
- export type DeliveryZoneRelations = {
406
- carts: CartWithRelations[];
407
- brand?: BrandWithRelations | null;
408
- state: StateWithRelations;
409
- orders: OrderWithRelations[];
410
- };
411
- export type DeliveryZoneWithRelations = z.infer<typeof DeliveryZoneSchema> & DeliveryZoneRelations;
412
- export declare const DeliveryZoneWithRelationsSchema: z.ZodType<DeliveryZoneWithRelations>;
413
- export type DeliveryZonePartialRelations = {
414
- carts?: CartPartialWithRelations[];
415
- brand?: BrandPartialWithRelations | null;
416
- state?: StatePartialWithRelations;
417
- orders?: OrderPartialWithRelations[];
418
- };
419
- export type DeliveryZonePartialWithRelations = z.infer<typeof DeliveryZonePartialSchema> & DeliveryZonePartialRelations;
420
- export declare const DeliveryZonePartialWithRelationsSchema: z.ZodType<DeliveryZonePartialWithRelations>;
421
- export type DeliveryZoneWithPartialRelations = z.infer<typeof DeliveryZoneSchema> & DeliveryZonePartialRelations;
422
- export declare const DeliveryZoneWithPartialRelationsSchema: z.ZodType<DeliveryZoneWithPartialRelations>;
423
- export declare const DiscountCodeSchema: z.ZodObject<{
424
- id: z.ZodUUID;
425
- code: z.ZodString;
426
- brandId: z.ZodNullable<z.ZodString>;
427
- type: z.ZodString;
428
- value: z.ZodCustom<Prisma.Decimal, Prisma.Decimal>;
429
- minPurchase: z.ZodNullable<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
430
- maxDiscount: z.ZodNullable<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
431
- usageLimit: z.ZodNullable<z.ZodNumber>;
432
- usageCount: z.ZodNumber;
433
- perCustomerLimit: z.ZodNullable<z.ZodNumber>;
434
- validFrom: z.ZodCoercedDate<unknown>;
435
- validUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
436
- isActive: z.ZodBoolean;
437
- isAutoApply: z.ZodBoolean;
438
- description: z.ZodNullable<z.ZodString>;
439
- category: z.ZodString;
440
- createdAt: z.ZodCoercedDate<unknown>;
441
- updatedAt: z.ZodCoercedDate<unknown>;
442
- createdBy: z.ZodNullable<z.ZodString>;
443
- deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
444
- }, z.core.$strip>;
445
- export type DiscountCode = z.infer<typeof DiscountCodeSchema>;
446
- export declare const DiscountCodePartialSchema: z.ZodObject<{
447
- id: z.ZodOptional<z.ZodUUID>;
448
- code: z.ZodOptional<z.ZodString>;
449
- brandId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
450
- type: z.ZodOptional<z.ZodString>;
451
- value: z.ZodOptional<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
452
- minPurchase: z.ZodOptional<z.ZodNullable<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>>;
453
- maxDiscount: z.ZodOptional<z.ZodNullable<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>>;
454
- usageLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
455
- usageCount: z.ZodOptional<z.ZodNumber>;
456
- perCustomerLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
457
- validFrom: z.ZodOptional<z.ZodCoercedDate<unknown>>;
458
- validUntil: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
459
- isActive: z.ZodOptional<z.ZodBoolean>;
460
- isAutoApply: z.ZodOptional<z.ZodBoolean>;
461
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
462
- category: z.ZodOptional<z.ZodString>;
463
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
464
- updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
465
- createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
466
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
467
- }, z.core.$strip>;
468
- export type DiscountCodePartial = z.infer<typeof DiscountCodePartialSchema>;
469
- export type DiscountCodeRelations = {
470
- appliedToCarts: CartWithRelations[];
471
- carts: CartWithRelations[];
472
- brand?: BrandWithRelations | null;
473
- usageLog: DiscountCodeUsageWithRelations[];
474
- orders: OrderWithRelations[];
475
- Order_Order_recoveryDiscountCodeIdToDiscountCode?: OrderWithRelations | null;
476
- };
477
- export type DiscountCodeWithRelations = z.infer<typeof DiscountCodeSchema> & DiscountCodeRelations;
478
- export declare const DiscountCodeWithRelationsSchema: z.ZodType<DiscountCodeWithRelations>;
479
- export type DiscountCodePartialRelations = {
480
- appliedToCarts?: CartPartialWithRelations[];
481
- carts?: CartPartialWithRelations[];
482
- brand?: BrandPartialWithRelations | null;
483
- usageLog?: DiscountCodeUsagePartialWithRelations[];
484
- orders?: OrderPartialWithRelations[];
485
- Order_Order_recoveryDiscountCodeIdToDiscountCode?: OrderPartialWithRelations | null;
486
- };
487
- export type DiscountCodePartialWithRelations = z.infer<typeof DiscountCodePartialSchema> & DiscountCodePartialRelations;
488
- export declare const DiscountCodePartialWithRelationsSchema: z.ZodType<DiscountCodePartialWithRelations>;
489
- export type DiscountCodeWithPartialRelations = z.infer<typeof DiscountCodeSchema> & DiscountCodePartialRelations;
490
- export declare const DiscountCodeWithPartialRelationsSchema: z.ZodType<DiscountCodeWithPartialRelations>;
491
- export declare const DiscountCodeUsageSchema: z.ZodObject<{
492
- id: z.ZodUUID;
493
- discountCodeId: z.ZodString;
494
- orderId: z.ZodString;
495
- customerPhone: z.ZodString;
496
- discountAmount: z.ZodCustom<Prisma.Decimal, Prisma.Decimal>;
497
- originalAmount: z.ZodCustom<Prisma.Decimal, Prisma.Decimal>;
498
- createdAt: z.ZodCoercedDate<unknown>;
499
- }, z.core.$strip>;
500
- export type DiscountCodeUsage = z.infer<typeof DiscountCodeUsageSchema>;
501
- export declare const DiscountCodeUsagePartialSchema: z.ZodObject<{
502
- id: z.ZodOptional<z.ZodUUID>;
503
- discountCodeId: z.ZodOptional<z.ZodString>;
504
- orderId: z.ZodOptional<z.ZodString>;
505
- customerPhone: z.ZodOptional<z.ZodString>;
506
- discountAmount: z.ZodOptional<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
507
- originalAmount: z.ZodOptional<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
508
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
509
- }, z.core.$strip>;
510
- export type DiscountCodeUsagePartial = z.infer<typeof DiscountCodeUsagePartialSchema>;
511
- export type DiscountCodeUsageRelations = {
512
- discountCode: DiscountCodeWithRelations;
513
- order: OrderWithRelations;
514
- };
515
- export type DiscountCodeUsageWithRelations = z.infer<typeof DiscountCodeUsageSchema> & DiscountCodeUsageRelations;
516
- export declare const DiscountCodeUsageWithRelationsSchema: z.ZodType<DiscountCodeUsageWithRelations>;
517
- export type DiscountCodeUsagePartialRelations = {
518
- discountCode?: DiscountCodePartialWithRelations;
519
- order?: OrderPartialWithRelations;
520
- };
521
- export type DiscountCodeUsagePartialWithRelations = z.infer<typeof DiscountCodeUsagePartialSchema> & DiscountCodeUsagePartialRelations;
522
- export declare const DiscountCodeUsagePartialWithRelationsSchema: z.ZodType<DiscountCodeUsagePartialWithRelations>;
523
- export type DiscountCodeUsageWithPartialRelations = z.infer<typeof DiscountCodeUsageSchema> & DiscountCodeUsagePartialRelations;
524
- export declare const DiscountCodeUsageWithPartialRelationsSchema: z.ZodType<DiscountCodeUsageWithPartialRelations>;
525
- export declare const CartSchema: z.ZodObject<{
526
- availablePaymentMethods: z.ZodArray<z.ZodEnum<{
527
- cod: "cod";
528
- online: "online";
529
- }>>;
530
- id: z.ZodUUID;
531
- brandId: z.ZodString;
532
- customerPhone: z.ZodNullable<z.ZodString>;
533
- customerFirstName: z.ZodNullable<z.ZodString>;
534
- customerLastName: z.ZodNullable<z.ZodString>;
535
- expiresAt: z.ZodCoercedDate<unknown>;
536
- createdAt: z.ZodCoercedDate<unknown>;
537
- updatedAt: z.ZodCoercedDate<unknown>;
538
- deliveryZoneId: z.ZodNullable<z.ZodString>;
539
- deliveryZoneLockedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
540
- recoveryAttempts: z.ZodNumber;
541
- lastRecoveryAttemptAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
542
- recoveryDiscountCodeId: z.ZodNullable<z.ZodString>;
543
- convertedToOrderId: z.ZodNullable<z.ZodString>;
544
- wasRecovered: z.ZodBoolean;
545
- appliedDiscountCodeId: z.ZodNullable<z.ZodString>;
546
- customerEmail: z.ZodNullable<z.ZodString>;
547
- }, z.core.$strip>;
548
- export type Cart = z.infer<typeof CartSchema>;
549
- export declare const CartPartialSchema: z.ZodObject<{
550
- availablePaymentMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
551
- cod: "cod";
552
- online: "online";
553
- }>>>;
554
- id: z.ZodOptional<z.ZodUUID>;
555
- brandId: z.ZodOptional<z.ZodString>;
556
- customerPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
557
- customerFirstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
558
- customerLastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
559
- expiresAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
560
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
561
- updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
562
- deliveryZoneId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
563
- deliveryZoneLockedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
564
- recoveryAttempts: z.ZodOptional<z.ZodNumber>;
565
- lastRecoveryAttemptAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
566
- recoveryDiscountCodeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
567
- convertedToOrderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
568
- wasRecovered: z.ZodOptional<z.ZodBoolean>;
569
- appliedDiscountCodeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
570
- customerEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
- }, z.core.$strip>;
572
- export type CartPartial = z.infer<typeof CartPartialSchema>;
573
- export type CartRelations = {
574
- appliedDiscountCode?: DiscountCodeWithRelations | null;
575
- brand: BrandWithRelations;
576
- convertedOrder?: OrderWithRelations | null;
577
- deliveryZone?: DeliveryZoneWithRelations | null;
578
- recoveryDiscountCode?: DiscountCodeWithRelations | null;
579
- items: CartItemWithRelations[];
580
- };
581
- export type CartWithRelations = z.infer<typeof CartSchema> & CartRelations;
582
- export declare const CartWithRelationsSchema: z.ZodType<CartWithRelations>;
583
- export type CartPartialRelations = {
584
- appliedDiscountCode?: DiscountCodePartialWithRelations | null;
585
- brand?: BrandPartialWithRelations;
586
- convertedOrder?: OrderPartialWithRelations | null;
587
- deliveryZone?: DeliveryZonePartialWithRelations | null;
588
- recoveryDiscountCode?: DiscountCodePartialWithRelations | null;
589
- items?: CartItemPartialWithRelations[];
590
- };
591
- export type CartPartialWithRelations = z.infer<typeof CartPartialSchema> & CartPartialRelations;
592
- export declare const CartPartialWithRelationsSchema: z.ZodType<CartPartialWithRelations>;
593
- export type CartWithPartialRelations = z.infer<typeof CartSchema> & CartPartialRelations;
594
- export declare const CartWithPartialRelationsSchema: z.ZodType<CartWithPartialRelations>;
595
- export declare const CartItemSchema: z.ZodObject<{
596
- id: z.ZodUUID;
597
- cartId: z.ZodString;
598
- variantId: z.ZodString;
599
- quantity: z.ZodNumber;
600
- createdAt: z.ZodCoercedDate<unknown>;
601
- updatedAt: z.ZodCoercedDate<unknown>;
602
- }, z.core.$strip>;
603
- export type CartItem = z.infer<typeof CartItemSchema>;
604
- export declare const CartItemPartialSchema: z.ZodObject<{
605
- id: z.ZodOptional<z.ZodUUID>;
606
- cartId: z.ZodOptional<z.ZodString>;
607
- variantId: z.ZodOptional<z.ZodString>;
608
- quantity: z.ZodOptional<z.ZodNumber>;
609
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
610
- updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
611
- }, z.core.$strip>;
612
- export type CartItemPartial = z.infer<typeof CartItemPartialSchema>;
613
- export type CartItemRelations = {
614
- cart: CartWithRelations;
615
- variant: ProductVariantWithRelations;
616
- };
617
- export type CartItemWithRelations = z.infer<typeof CartItemSchema> & CartItemRelations;
618
- export declare const CartItemWithRelationsSchema: z.ZodType<CartItemWithRelations>;
619
- export type CartItemPartialRelations = {
620
- cart?: CartPartialWithRelations;
621
- variant?: ProductVariantPartialWithRelations;
622
- };
623
- export type CartItemPartialWithRelations = z.infer<typeof CartItemPartialSchema> & CartItemPartialRelations;
624
- export declare const CartItemPartialWithRelationsSchema: z.ZodType<CartItemPartialWithRelations>;
625
- export type CartItemWithPartialRelations = z.infer<typeof CartItemSchema> & CartItemPartialRelations;
626
- export declare const CartItemWithPartialRelationsSchema: z.ZodType<CartItemWithPartialRelations>;
627
- export declare const ProductSchema: z.ZodObject<{
628
- id: z.ZodUUID;
629
- brandId: z.ZodString;
630
- name: z.ZodString;
631
- slug: z.ZodString;
632
- description: z.ZodNullable<z.ZodString>;
633
- thumbnailUrl: z.ZodNullable<z.ZodString>;
634
- quantityDiscounts: z.ZodNullable<z.ZodType<Prisma.JsonValue, unknown, z.core.$ZodTypeInternals<Prisma.JsonValue, unknown>>>;
635
- isActive: z.ZodBoolean;
636
- createdAt: z.ZodCoercedDate<unknown>;
637
- updatedAt: z.ZodCoercedDate<unknown>;
638
- deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
639
- }, z.core.$strip>;
640
- export type Product = z.infer<typeof ProductSchema>;
641
- export declare const ProductPartialSchema: z.ZodObject<{
642
- id: z.ZodOptional<z.ZodUUID>;
643
- brandId: z.ZodOptional<z.ZodString>;
644
- name: z.ZodOptional<z.ZodString>;
645
- slug: z.ZodOptional<z.ZodString>;
646
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
647
- thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
648
- quantityDiscounts: z.ZodOptional<z.ZodNullable<z.ZodType<Prisma.JsonValue, unknown, z.core.$ZodTypeInternals<Prisma.JsonValue, unknown>>>>;
649
- isActive: z.ZodOptional<z.ZodBoolean>;
650
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
651
- updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
652
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
653
- }, z.core.$strip>;
654
- export type ProductPartial = z.infer<typeof ProductPartialSchema>;
655
- export type ProductRelations = {
656
- brand: BrandWithRelations;
657
- variants: ProductVariantWithRelations[];
658
- };
659
- export type ProductWithRelations = Omit<z.infer<typeof ProductSchema>, "quantityDiscounts"> & {
660
- quantityDiscounts?: JsonValueType | null;
661
- } & ProductRelations;
662
- export declare const ProductWithRelationsSchema: z.ZodType<ProductWithRelations>;
663
- export type ProductPartialRelations = {
664
- brand?: BrandPartialWithRelations;
665
- variants?: ProductVariantPartialWithRelations[];
666
- };
667
- export type ProductPartialWithRelations = Omit<z.infer<typeof ProductPartialSchema>, "quantityDiscounts"> & {
668
- quantityDiscounts?: JsonValueType | null;
669
- } & ProductPartialRelations;
670
- export declare const ProductPartialWithRelationsSchema: z.ZodType<ProductPartialWithRelations>;
671
- export type ProductWithPartialRelations = Omit<z.infer<typeof ProductSchema>, "quantityDiscounts"> & {
672
- quantityDiscounts?: JsonValueType | null;
673
- } & ProductPartialRelations;
674
- export declare const ProductWithPartialRelationsSchema: z.ZodType<ProductWithPartialRelations>;
675
- export declare const ProductVariantSchema: z.ZodObject<{
676
- id: z.ZodUUID;
677
- productId: z.ZodString;
678
- sku: z.ZodString;
679
- name: z.ZodNullable<z.ZodString>;
680
- thumbnailUrl: z.ZodNullable<z.ZodString>;
681
- price: z.ZodCustom<Prisma.Decimal, Prisma.Decimal>;
682
- trackInventory: z.ZodBoolean;
683
- lowStockThreshold: z.ZodNullable<z.ZodNumber>;
684
- isActive: z.ZodBoolean;
685
- createdAt: z.ZodCoercedDate<unknown>;
686
- updatedAt: z.ZodCoercedDate<unknown>;
687
- deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
688
- }, z.core.$strip>;
689
- export type ProductVariant = z.infer<typeof ProductVariantSchema>;
690
- export declare const ProductVariantPartialSchema: z.ZodObject<{
691
- id: z.ZodOptional<z.ZodUUID>;
692
- productId: z.ZodOptional<z.ZodString>;
693
- sku: z.ZodOptional<z.ZodString>;
694
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
695
- thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
- price: z.ZodOptional<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
697
- trackInventory: z.ZodOptional<z.ZodBoolean>;
698
- lowStockThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
699
- isActive: z.ZodOptional<z.ZodBoolean>;
700
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
701
- updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
702
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
703
- }, z.core.$strip>;
704
- export type ProductVariantPartial = z.infer<typeof ProductVariantPartialSchema>;
705
- export type ProductVariantRelations = {
706
- cartItems: CartItemWithRelations[];
707
- inventoryTransactions: InventoryTransactionWithRelations[];
708
- orderItems: OrderItemWithRelations[];
709
- product: ProductWithRelations;
710
- warehouseInventories: WarehouseInventoryWithRelations[];
711
- };
712
- export type ProductVariantWithRelations = z.infer<typeof ProductVariantSchema> & ProductVariantRelations;
713
- export declare const ProductVariantWithRelationsSchema: z.ZodType<ProductVariantWithRelations>;
714
- export type ProductVariantPartialRelations = {
715
- cartItems?: CartItemPartialWithRelations[];
716
- inventoryTransactions?: InventoryTransactionPartialWithRelations[];
717
- orderItems?: OrderItemPartialWithRelations[];
718
- product?: ProductPartialWithRelations;
719
- warehouseInventories?: WarehouseInventoryPartialWithRelations[];
720
- };
721
- export type ProductVariantPartialWithRelations = z.infer<typeof ProductVariantPartialSchema> & ProductVariantPartialRelations;
722
- export declare const ProductVariantPartialWithRelationsSchema: z.ZodType<ProductVariantPartialWithRelations>;
723
- export type ProductVariantWithPartialRelations = z.infer<typeof ProductVariantSchema> & ProductVariantPartialRelations;
724
- export declare const ProductVariantWithPartialRelationsSchema: z.ZodType<ProductVariantWithPartialRelations>;
725
- export declare const WarehouseSchema: z.ZodObject<{
726
- id: z.ZodUUID;
727
- name: z.ZodString;
728
- address: z.ZodNullable<z.ZodString>;
729
- city: z.ZodNullable<z.ZodString>;
730
- state: z.ZodNullable<z.ZodString>;
731
- isActive: z.ZodBoolean;
732
- createdAt: z.ZodCoercedDate<unknown>;
733
- updatedAt: z.ZodCoercedDate<unknown>;
734
- deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
735
- }, z.core.$strip>;
736
- export type Warehouse = z.infer<typeof WarehouseSchema>;
737
- export declare const WarehousePartialSchema: z.ZodObject<{
738
- id: z.ZodOptional<z.ZodUUID>;
739
- name: z.ZodOptional<z.ZodString>;
740
- address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
741
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
742
- state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
743
- isActive: z.ZodOptional<z.ZodBoolean>;
744
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
745
- updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
746
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
747
- }, z.core.$strip>;
748
- export type WarehousePartial = z.infer<typeof WarehousePartialSchema>;
749
- export type WarehouseRelations = {
750
- inventoryTransactions: InventoryTransactionWithRelations[];
751
- orderItems: OrderItemWithRelations[];
752
- inventories: WarehouseInventoryWithRelations[];
753
- };
754
- export type WarehouseWithRelations = z.infer<typeof WarehouseSchema> & WarehouseRelations;
755
- export declare const WarehouseWithRelationsSchema: z.ZodType<WarehouseWithRelations>;
756
- export type WarehousePartialRelations = {
757
- inventoryTransactions?: InventoryTransactionPartialWithRelations[];
758
- orderItems?: OrderItemPartialWithRelations[];
759
- inventories?: WarehouseInventoryPartialWithRelations[];
760
- };
761
- export type WarehousePartialWithRelations = z.infer<typeof WarehousePartialSchema> & WarehousePartialRelations;
762
- export declare const WarehousePartialWithRelationsSchema: z.ZodType<WarehousePartialWithRelations>;
763
- export type WarehouseWithPartialRelations = z.infer<typeof WarehouseSchema> & WarehousePartialRelations;
764
- export declare const WarehouseWithPartialRelationsSchema: z.ZodType<WarehouseWithPartialRelations>;
765
- export declare const WarehouseInventorySchema: z.ZodObject<{
766
- id: z.ZodUUID;
767
- variantId: z.ZodString;
768
- warehouseId: z.ZodString;
769
- inventoryCount: z.ZodNumber;
770
- updatedAt: z.ZodCoercedDate<unknown>;
771
- }, z.core.$strip>;
772
- export type WarehouseInventory = z.infer<typeof WarehouseInventorySchema>;
773
- export declare const WarehouseInventoryPartialSchema: z.ZodObject<{
774
- id: z.ZodOptional<z.ZodUUID>;
775
- variantId: z.ZodOptional<z.ZodString>;
776
- warehouseId: z.ZodOptional<z.ZodString>;
777
- inventoryCount: z.ZodOptional<z.ZodNumber>;
778
- updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
779
- }, z.core.$strip>;
780
- export type WarehouseInventoryPartial = z.infer<typeof WarehouseInventoryPartialSchema>;
781
- export type WarehouseInventoryRelations = {
782
- variant: ProductVariantWithRelations;
783
- warehouse: WarehouseWithRelations;
784
- };
785
- export type WarehouseInventoryWithRelations = z.infer<typeof WarehouseInventorySchema> & WarehouseInventoryRelations;
786
- export declare const WarehouseInventoryWithRelationsSchema: z.ZodType<WarehouseInventoryWithRelations>;
787
- export type WarehouseInventoryPartialRelations = {
788
- variant?: ProductVariantPartialWithRelations;
789
- warehouse?: WarehousePartialWithRelations;
790
- };
791
- export type WarehouseInventoryPartialWithRelations = z.infer<typeof WarehouseInventoryPartialSchema> & WarehouseInventoryPartialRelations;
792
- export declare const WarehouseInventoryPartialWithRelationsSchema: z.ZodType<WarehouseInventoryPartialWithRelations>;
793
- export type WarehouseInventoryWithPartialRelations = z.infer<typeof WarehouseInventorySchema> & WarehouseInventoryPartialRelations;
794
- export declare const WarehouseInventoryWithPartialRelationsSchema: z.ZodType<WarehouseInventoryWithPartialRelations>;
795
- export declare const InventoryTransactionSchema: z.ZodObject<{
796
- type: z.ZodEnum<{
797
- sale: "sale";
798
- restock: "restock";
799
- adjustment: "adjustment";
800
- return: "return";
801
- transfer_in: "transfer_in";
802
- transfer_out: "transfer_out";
803
- damaged: "damaged";
804
- initial: "initial";
805
- }>;
806
- id: z.ZodUUID;
807
- variantId: z.ZodString;
808
- warehouseId: z.ZodString;
809
- quantity: z.ZodNumber;
810
- balanceAfter: z.ZodNumber;
811
- reason: z.ZodNullable<z.ZodString>;
812
- orderId: z.ZodNullable<z.ZodString>;
813
- userId: z.ZodNullable<z.ZodString>;
814
- metadata: z.ZodNullable<z.ZodType<Prisma.JsonValue, unknown, z.core.$ZodTypeInternals<Prisma.JsonValue, unknown>>>;
815
- createdAt: z.ZodCoercedDate<unknown>;
816
- }, z.core.$strip>;
817
- export type InventoryTransaction = z.infer<typeof InventoryTransactionSchema>;
818
- export declare const InventoryTransactionPartialSchema: z.ZodObject<{
819
- type: z.ZodOptional<z.ZodEnum<{
820
- sale: "sale";
821
- restock: "restock";
822
- adjustment: "adjustment";
823
- return: "return";
824
- transfer_in: "transfer_in";
825
- transfer_out: "transfer_out";
826
- damaged: "damaged";
827
- initial: "initial";
828
- }>>;
829
- id: z.ZodOptional<z.ZodUUID>;
830
- variantId: z.ZodOptional<z.ZodString>;
831
- warehouseId: z.ZodOptional<z.ZodString>;
832
- quantity: z.ZodOptional<z.ZodNumber>;
833
- balanceAfter: z.ZodOptional<z.ZodNumber>;
834
- reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
835
- orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
836
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
837
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<Prisma.JsonValue, unknown, z.core.$ZodTypeInternals<Prisma.JsonValue, unknown>>>>;
838
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
839
- }, z.core.$strip>;
840
- export type InventoryTransactionPartial = z.infer<typeof InventoryTransactionPartialSchema>;
841
- export type InventoryTransactionRelations = {
842
- order?: OrderWithRelations | null;
843
- user?: UserWithRelations | null;
844
- variant: ProductVariantWithRelations;
845
- warehouse: WarehouseWithRelations;
846
- };
847
- export type InventoryTransactionWithRelations = Omit<z.infer<typeof InventoryTransactionSchema>, "metadata"> & {
848
- metadata?: JsonValueType | null;
849
- } & InventoryTransactionRelations;
850
- export declare const InventoryTransactionWithRelationsSchema: z.ZodType<InventoryTransactionWithRelations>;
851
- export type InventoryTransactionPartialRelations = {
852
- order?: OrderPartialWithRelations | null;
853
- user?: UserPartialWithRelations | null;
854
- variant?: ProductVariantPartialWithRelations;
855
- warehouse?: WarehousePartialWithRelations;
856
- };
857
- export type InventoryTransactionPartialWithRelations = Omit<z.infer<typeof InventoryTransactionPartialSchema>, "metadata"> & {
858
- metadata?: JsonValueType | null;
859
- } & InventoryTransactionPartialRelations;
860
- export declare const InventoryTransactionPartialWithRelationsSchema: z.ZodType<InventoryTransactionPartialWithRelations>;
861
- export type InventoryTransactionWithPartialRelations = Omit<z.infer<typeof InventoryTransactionSchema>, "metadata"> & {
862
- metadata?: JsonValueType | null;
863
- } & InventoryTransactionPartialRelations;
864
- export declare const InventoryTransactionWithPartialRelationsSchema: z.ZodType<InventoryTransactionWithPartialRelations>;
865
- export declare const OrderSchema: z.ZodObject<{
866
- paymentMethod: z.ZodEnum<{
867
- cod: "cod";
868
- online: "online";
869
- }>;
870
- status: z.ZodEnum<{
871
- pending: "pending";
872
- shipped: "shipped";
873
- delivered: "delivered";
874
- cancelled: "cancelled";
875
- returned: "returned";
876
- prospect: "prospect";
877
- }>;
878
- prospectReason: z.ZodNullable<z.ZodEnum<{
879
- other: "other";
880
- no_answer: "no_answer";
881
- thinking: "thinking";
882
- price_concern: "price_concern";
883
- will_call_back: "will_call_back";
884
- unclear_commitment: "unclear_commitment";
885
- payment_issue: "payment_issue";
886
- }>>;
887
- id: z.ZodUUID;
888
- brandId: z.ZodString;
889
- orderNumber: z.ZodNumber;
890
- firstName: z.ZodString;
891
- lastName: z.ZodString;
892
- phone: z.ZodString;
893
- address: z.ZodString;
894
- city: z.ZodString;
895
- deliveryZoneId: z.ZodString;
896
- deliveryCharge: z.ZodCustom<Prisma.Decimal, Prisma.Decimal>;
897
- estimatedDays: z.ZodNullable<z.ZodNumber>;
898
- totalPrice: z.ZodCustom<Prisma.Decimal, Prisma.Decimal>;
899
- discountCodeId: z.ZodNullable<z.ZodString>;
900
- discountAmount: z.ZodNullable<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
901
- paystackReference: z.ZodNullable<z.ZodString>;
902
- cancellationReason: z.ZodNullable<z.ZodString>;
903
- createdAt: z.ZodCoercedDate<unknown>;
904
- updatedAt: z.ZodCoercedDate<unknown>;
905
- deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
906
- email: z.ZodNullable<z.ZodString>;
907
- lastRecoveryAttemptAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
908
- prospectSince: z.ZodNullable<z.ZodCoercedDate<unknown>>;
909
- recoveryAttempts: z.ZodNumber;
910
- recoveryDiscountCodeId: z.ZodNullable<z.ZodString>;
911
- userActionToken: z.ZodUUID;
912
- wasRecovered: z.ZodBoolean;
913
- }, z.core.$strip>;
914
- export type Order = z.infer<typeof OrderSchema>;
915
- export declare const OrderPartialSchema: z.ZodObject<{
916
- paymentMethod: z.ZodOptional<z.ZodEnum<{
917
- cod: "cod";
918
- online: "online";
919
- }>>;
920
- status: z.ZodOptional<z.ZodEnum<{
921
- pending: "pending";
922
- shipped: "shipped";
923
- delivered: "delivered";
924
- cancelled: "cancelled";
925
- returned: "returned";
926
- prospect: "prospect";
927
- }>>;
928
- prospectReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
929
- other: "other";
930
- no_answer: "no_answer";
931
- thinking: "thinking";
932
- price_concern: "price_concern";
933
- will_call_back: "will_call_back";
934
- unclear_commitment: "unclear_commitment";
935
- payment_issue: "payment_issue";
936
- }>>>;
937
- id: z.ZodOptional<z.ZodUUID>;
938
- brandId: z.ZodOptional<z.ZodString>;
939
- orderNumber: z.ZodOptional<z.ZodNumber>;
940
- firstName: z.ZodOptional<z.ZodString>;
941
- lastName: z.ZodOptional<z.ZodString>;
942
- phone: z.ZodOptional<z.ZodString>;
943
- address: z.ZodOptional<z.ZodString>;
944
- city: z.ZodOptional<z.ZodString>;
945
- deliveryZoneId: z.ZodOptional<z.ZodString>;
946
- deliveryCharge: z.ZodOptional<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
947
- estimatedDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
948
- totalPrice: z.ZodOptional<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
949
- discountCodeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
950
- discountAmount: z.ZodOptional<z.ZodNullable<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>>;
951
- paystackReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
952
- cancellationReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
953
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
954
- updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
955
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
956
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
957
- lastRecoveryAttemptAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
958
- prospectSince: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
959
- recoveryAttempts: z.ZodOptional<z.ZodNumber>;
960
- recoveryDiscountCodeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
961
- userActionToken: z.ZodOptional<z.ZodUUID>;
962
- wasRecovered: z.ZodOptional<z.ZodBoolean>;
963
- }, z.core.$strip>;
964
- export type OrderPartial = z.infer<typeof OrderPartialSchema>;
965
- export type OrderRelations = {
966
- recoveredFromCart?: CartWithRelations | null;
967
- discountUsage: DiscountCodeUsageWithRelations[];
968
- inventoryTransactions: InventoryTransactionWithRelations[];
969
- brand: BrandWithRelations;
970
- deliveryZone: DeliveryZoneWithRelations;
971
- discountCode?: DiscountCodeWithRelations | null;
972
- recoveryDiscountCode?: DiscountCodeWithRelations | null;
973
- items: OrderItemWithRelations[];
974
- notes: OrderNoteWithRelations[];
975
- };
976
- export type OrderWithRelations = z.infer<typeof OrderSchema> & OrderRelations;
977
- export declare const OrderWithRelationsSchema: z.ZodType<OrderWithRelations>;
978
- export type OrderPartialRelations = {
979
- recoveredFromCart?: CartPartialWithRelations | null;
980
- discountUsage?: DiscountCodeUsagePartialWithRelations[];
981
- inventoryTransactions?: InventoryTransactionPartialWithRelations[];
982
- brand?: BrandPartialWithRelations;
983
- deliveryZone?: DeliveryZonePartialWithRelations;
984
- discountCode?: DiscountCodePartialWithRelations | null;
985
- recoveryDiscountCode?: DiscountCodePartialWithRelations | null;
986
- items?: OrderItemPartialWithRelations[];
987
- notes?: OrderNotePartialWithRelations[];
988
- };
989
- export type OrderPartialWithRelations = z.infer<typeof OrderPartialSchema> & OrderPartialRelations;
990
- export declare const OrderPartialWithRelationsSchema: z.ZodType<OrderPartialWithRelations>;
991
- export type OrderWithPartialRelations = z.infer<typeof OrderSchema> & OrderPartialRelations;
992
- export declare const OrderWithPartialRelationsSchema: z.ZodType<OrderWithPartialRelations>;
993
- export declare const OrderItemSchema: z.ZodObject<{
994
- id: z.ZodUUID;
995
- orderId: z.ZodString;
996
- variantId: z.ZodString;
997
- warehouseId: z.ZodNullable<z.ZodString>;
998
- priceAtPurchase: z.ZodCustom<Prisma.Decimal, Prisma.Decimal>;
999
- quantity: z.ZodNumber;
1000
- }, z.core.$strip>;
1001
- export type OrderItem = z.infer<typeof OrderItemSchema>;
1002
- export declare const OrderItemPartialSchema: z.ZodObject<{
1003
- id: z.ZodOptional<z.ZodUUID>;
1004
- orderId: z.ZodOptional<z.ZodString>;
1005
- variantId: z.ZodOptional<z.ZodString>;
1006
- warehouseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1007
- priceAtPurchase: z.ZodOptional<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
1008
- quantity: z.ZodOptional<z.ZodNumber>;
1009
- }, z.core.$strip>;
1010
- export type OrderItemPartial = z.infer<typeof OrderItemPartialSchema>;
1011
- export type OrderItemRelations = {
1012
- order: OrderWithRelations;
1013
- variant: ProductVariantWithRelations;
1014
- warehouse?: WarehouseWithRelations | null;
1015
- };
1016
- export type OrderItemWithRelations = z.infer<typeof OrderItemSchema> & OrderItemRelations;
1017
- export declare const OrderItemWithRelationsSchema: z.ZodType<OrderItemWithRelations>;
1018
- export type OrderItemPartialRelations = {
1019
- order?: OrderPartialWithRelations;
1020
- variant?: ProductVariantPartialWithRelations;
1021
- warehouse?: WarehousePartialWithRelations | null;
1022
- };
1023
- export type OrderItemPartialWithRelations = z.infer<typeof OrderItemPartialSchema> & OrderItemPartialRelations;
1024
- export declare const OrderItemPartialWithRelationsSchema: z.ZodType<OrderItemPartialWithRelations>;
1025
- export type OrderItemWithPartialRelations = z.infer<typeof OrderItemSchema> & OrderItemPartialRelations;
1026
- export declare const OrderItemWithPartialRelationsSchema: z.ZodType<OrderItemWithPartialRelations>;
1027
- export declare const UserSchema: z.ZodObject<{
1028
- id: z.ZodUUID;
1029
- clerkId: z.ZodString;
1030
- email: z.ZodString;
1031
- name: z.ZodNullable<z.ZodString>;
1032
- role: z.ZodString;
1033
- createdAt: z.ZodCoercedDate<unknown>;
1034
- deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1035
- }, z.core.$strip>;
1036
- export type User = z.infer<typeof UserSchema>;
1037
- export declare const UserPartialSchema: z.ZodObject<{
1038
- id: z.ZodOptional<z.ZodUUID>;
1039
- clerkId: z.ZodOptional<z.ZodString>;
1040
- email: z.ZodOptional<z.ZodString>;
1041
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1042
- role: z.ZodOptional<z.ZodString>;
1043
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1044
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
1045
- }, z.core.$strip>;
1046
- export type UserPartial = z.infer<typeof UserPartialSchema>;
1047
- export type UserRelations = {
1048
- inventoryTransactions: InventoryTransactionWithRelations[];
1049
- OrderNote: OrderNoteWithRelations[];
1050
- };
1051
- export type UserWithRelations = z.infer<typeof UserSchema> & UserRelations;
1052
- export declare const UserWithRelationsSchema: z.ZodType<UserWithRelations>;
1053
- export type UserPartialRelations = {
1054
- inventoryTransactions?: InventoryTransactionPartialWithRelations[];
1055
- OrderNote?: OrderNotePartialWithRelations[];
1056
- };
1057
- export type UserPartialWithRelations = z.infer<typeof UserPartialSchema> & UserPartialRelations;
1058
- export declare const UserPartialWithRelationsSchema: z.ZodType<UserPartialWithRelations>;
1059
- export type UserWithPartialRelations = z.infer<typeof UserSchema> & UserPartialRelations;
1060
- export declare const UserWithPartialRelationsSchema: z.ZodType<UserWithPartialRelations>;
1061
- export declare const OrderNoteSchema: z.ZodObject<{
1062
- type: z.ZodEnum<{
1063
- general: "general";
1064
- status_change: "status_change";
1065
- prospect_reason: "prospect_reason";
1066
- delivery_attempt: "delivery_attempt";
1067
- customer_communication: "customer_communication";
1068
- internal: "internal";
1069
- }>;
1070
- id: z.ZodUUID;
1071
- orderId: z.ZodString;
1072
- note: z.ZodString;
1073
- createdAt: z.ZodCoercedDate<unknown>;
1074
- createdBy: z.ZodNullable<z.ZodString>;
1075
- metadata: z.ZodNullable<z.ZodType<Prisma.JsonValue, unknown, z.core.$ZodTypeInternals<Prisma.JsonValue, unknown>>>;
1076
- }, z.core.$strip>;
1077
- export type OrderNote = z.infer<typeof OrderNoteSchema>;
1078
- export declare const OrderNotePartialSchema: z.ZodObject<{
1079
- type: z.ZodOptional<z.ZodEnum<{
1080
- general: "general";
1081
- status_change: "status_change";
1082
- prospect_reason: "prospect_reason";
1083
- delivery_attempt: "delivery_attempt";
1084
- customer_communication: "customer_communication";
1085
- internal: "internal";
1086
- }>>;
1087
- id: z.ZodOptional<z.ZodUUID>;
1088
- orderId: z.ZodOptional<z.ZodString>;
1089
- note: z.ZodOptional<z.ZodString>;
1090
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1091
- createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1092
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<Prisma.JsonValue, unknown, z.core.$ZodTypeInternals<Prisma.JsonValue, unknown>>>>;
1093
- }, z.core.$strip>;
1094
- export type OrderNotePartial = z.infer<typeof OrderNotePartialSchema>;
1095
- export type OrderNoteRelations = {
1096
- User?: UserWithRelations | null;
1097
- Order: OrderWithRelations;
1098
- };
1099
- export type OrderNoteWithRelations = Omit<z.infer<typeof OrderNoteSchema>, "metadata"> & {
1100
- metadata?: JsonValueType | null;
1101
- } & OrderNoteRelations;
1102
- export declare const OrderNoteWithRelationsSchema: z.ZodType<OrderNoteWithRelations>;
1103
- export type OrderNotePartialRelations = {
1104
- User?: UserPartialWithRelations | null;
1105
- Order?: OrderPartialWithRelations;
1106
- };
1107
- export type OrderNotePartialWithRelations = Omit<z.infer<typeof OrderNotePartialSchema>, "metadata"> & {
1108
- metadata?: JsonValueType | null;
1109
- } & OrderNotePartialRelations;
1110
- export declare const OrderNotePartialWithRelationsSchema: z.ZodType<OrderNotePartialWithRelations>;
1111
- export type OrderNoteWithPartialRelations = Omit<z.infer<typeof OrderNoteSchema>, "metadata"> & {
1112
- metadata?: JsonValueType | null;
1113
- } & OrderNotePartialRelations;
1114
- export declare const OrderNoteWithPartialRelationsSchema: z.ZodType<OrderNoteWithPartialRelations>;