@rovela-ai/sdk 0.1.17 → 0.1.18
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.
|
@@ -371,17 +371,17 @@ export declare function getRecentOrders(limit?: number): Promise<{
|
|
|
371
371
|
* Create a new order
|
|
372
372
|
*/
|
|
373
373
|
export declare function createOrder(data: Omit<schema.NewOrder, 'tenantId'>): Promise<{
|
|
374
|
+
status: "pending" | "paid" | "shipped" | "delivered" | "cancelled" | "refunded";
|
|
375
|
+
email: string;
|
|
374
376
|
id: string;
|
|
377
|
+
total: string;
|
|
375
378
|
tenantId: string;
|
|
376
|
-
status: "pending" | "paid" | "shipped" | "delivered" | "cancelled" | "refunded";
|
|
377
379
|
createdAt: Date;
|
|
378
380
|
updatedAt: Date;
|
|
379
381
|
customerId: string | null;
|
|
380
|
-
email: string;
|
|
381
382
|
subtotal: string;
|
|
382
383
|
tax: string;
|
|
383
384
|
shipping: string;
|
|
384
|
-
total: string;
|
|
385
385
|
shippingAddress: {
|
|
386
386
|
firstName: string;
|
|
387
387
|
lastName: string;
|
|
@@ -410,15 +410,15 @@ export declare function createOrder(data: Omit<schema.NewOrder, 'tenantId'>): Pr
|
|
|
410
410
|
* Create order items for an order
|
|
411
411
|
*/
|
|
412
412
|
export declare function createOrderItems(items: schema.NewOrderItem[]): Promise<{
|
|
413
|
-
id: string;
|
|
414
413
|
name: string;
|
|
414
|
+
id: string;
|
|
415
|
+
attributes: Record<string, string> | null;
|
|
416
|
+
quantity: number;
|
|
415
417
|
price: string;
|
|
416
418
|
createdAt: Date;
|
|
417
419
|
productId: string;
|
|
418
|
-
attributes: Record<string, string> | null;
|
|
419
420
|
orderId: string;
|
|
420
421
|
variantId: string | null;
|
|
421
|
-
quantity: number;
|
|
422
422
|
}[]>;
|
|
423
423
|
/**
|
|
424
424
|
* Update order status
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rovela-ai/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Rovela SDK - Pre-built e-commerce components for AI-powered store generation",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Rovela AI",
|
|
@@ -154,14 +154,14 @@
|
|
|
154
154
|
"db:studio": "drizzle-kit studio"
|
|
155
155
|
},
|
|
156
156
|
"dependencies": {
|
|
157
|
-
"@neondatabase/serverless": "^0.
|
|
158
|
-
"@stripe/stripe-js": "^
|
|
159
|
-
"bcryptjs": "^
|
|
157
|
+
"@neondatabase/serverless": "^1.0.0",
|
|
158
|
+
"@stripe/stripe-js": "^8.0.0",
|
|
159
|
+
"bcryptjs": "^3.0.0",
|
|
160
160
|
"clsx": "^2.1.1",
|
|
161
161
|
"drizzle-orm": "^0.44.3",
|
|
162
162
|
"nanoid": "^5.0.9",
|
|
163
163
|
"next-auth": "^4.24.11",
|
|
164
|
-
"resend": "^
|
|
164
|
+
"resend": "^6.0.0",
|
|
165
165
|
"stripe": "^20.0.0",
|
|
166
166
|
"tailwind-merge": "^3.3.1",
|
|
167
167
|
"zustand": "^5.0.0"
|