aivilife-contracts 5.2.0 → 5.4.0

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.
@@ -36,6 +36,11 @@ declare enum OrderStockAvailability {
36
36
  OUT_OF_STOCK = "OUT_OF_STOCK",
37
37
  INSUFFICIENT_STOCK = "INSUFFICIENT_STOCK"
38
38
  }
39
+ declare enum OrderReservationStatus {
40
+ ACTIVE = "ACTIVE",
41
+ RELEASED = "RELEASED",
42
+ FULFILLED = "FULFILLED"
43
+ }
39
44
  declare enum OrderEventType {
40
45
  CREATED = "CREATED",
41
46
  WALLET_DEBITED = "WALLET_DEBITED",
@@ -43,14 +48,20 @@ declare enum OrderEventType {
43
48
  PAYMENT_APPROVED = "PAYMENT_APPROVED",
44
49
  PAYMENT_REJECTED = "PAYMENT_REJECTED",
45
50
  CANCELLED_TIMEOUT = "CANCELLED_TIMEOUT",
46
- WALLET_REFUNDED = "WALLET_REFUNDED"
51
+ WALLET_REFUNDED = "WALLET_REFUNDED",
52
+ READY_FOR_PICKUP = "READY_FOR_PICKUP",
53
+ PICKUP_CODE_FAILED = "PICKUP_CODE_FAILED",
54
+ COMPLETED = "COMPLETED",
55
+ CASHBACK_CREDITED = "CASHBACK_CREDITED"
47
56
  }
48
57
  declare enum OrderNotificationType {
49
58
  ORDER_CREATED = "ORDER_CREATED",
50
59
  RECEIPT_RECEIVED = "RECEIPT_RECEIVED",
51
60
  PAYMENT_APPROVED = "PAYMENT_APPROVED",
52
61
  PAYMENT_REJECTED = "PAYMENT_REJECTED",
53
- ORDER_CANCELLED = "ORDER_CANCELLED"
62
+ ORDER_CANCELLED = "ORDER_CANCELLED",
63
+ ORDER_READY_FOR_PICKUP = "ORDER_READY_FOR_PICKUP",
64
+ ORDER_COMPLETED = "ORDER_COMPLETED"
54
65
  }
55
66
 
56
67
  declare const CheckoutWarehouseQuerySchema: z.ZodObject<{
@@ -192,6 +203,12 @@ declare const CreateOrderRequestSchema: z.ZodObject<{
192
203
  declare const OrderPublicIdParamSchema: z.ZodObject<{
193
204
  publicId: z.ZodUUID;
194
205
  }, z.core.$strip>;
206
+ declare const MarkOrderReadyRequestSchema: z.ZodObject<{
207
+ version: z.ZodNumber;
208
+ }, z.core.$strip>;
209
+ declare const CompleteOrderPickupRequestSchema: z.ZodObject<{
210
+ code: z.ZodString;
211
+ }, z.core.$strip>;
195
212
  declare const OrderReceiptParamSchema: z.ZodObject<{
196
213
  publicId: z.ZodUUID;
197
214
  receiptPublicId: z.ZodUUID;
@@ -262,6 +279,7 @@ declare const OrderEventSchema: z.ZodObject<{
262
279
  }, z.core.$strip>;
263
280
  declare const OrderSchema: z.ZodObject<{
264
281
  publicId: z.ZodUUID;
282
+ version: z.ZodNumber;
265
283
  number: z.ZodString;
266
284
  status: z.ZodEnum<typeof OrderStatus>;
267
285
  paymentStatus: z.ZodEnum<typeof OrderPaymentStatus>;
@@ -278,6 +296,8 @@ declare const OrderSchema: z.ZodObject<{
278
296
  cashDueUsd: z.ZodString;
279
297
  reserveExpiresAt: z.ZodNullable<z.ZodISODateTime>;
280
298
  paidAt: z.ZodNullable<z.ZodISODateTime>;
299
+ readyForPickupAt: z.ZodNullable<z.ZodISODateTime>;
300
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
281
301
  cancelledAt: z.ZodNullable<z.ZodISODateTime>;
282
302
  cancellationReason: z.ZodNullable<z.ZodString>;
283
303
  warehouse: z.ZodObject<{
@@ -344,6 +364,13 @@ declare const OrderSchema: z.ZodObject<{
344
364
  comment: z.ZodNullable<z.ZodString>;
345
365
  createdAt: z.ZodISODateTime;
346
366
  }, z.core.$strip>>;
367
+ pickupCode: z.ZodNullable<z.ZodString>;
368
+ cashbackCredit: z.ZodNullable<z.ZodObject<{
369
+ amountPv: z.ZodString;
370
+ balanceBeforePv: z.ZodString;
371
+ balanceAfterPv: z.ZodString;
372
+ creditedAt: z.ZodISODateTime;
373
+ }, z.core.$strip>>;
347
374
  createdAt: z.ZodISODateTime;
348
375
  updatedAt: z.ZodISODateTime;
349
376
  }, z.core.$strip>;
@@ -353,6 +380,7 @@ declare const OrderListItemSchema: z.ZodObject<{
353
380
  updatedAt: z.ZodISODateTime;
354
381
  locale: z.ZodString;
355
382
  status: z.ZodEnum<typeof OrderStatus>;
383
+ version: z.ZodNumber;
356
384
  publicId: z.ZodUUID;
357
385
  subtotalUsd: z.ZodString;
358
386
  totalPv: z.ZodString;
@@ -376,6 +404,7 @@ declare const OrderListItemSchema: z.ZodObject<{
376
404
  lineTotalPv: z.ZodString;
377
405
  coverContentUrl: z.ZodNullable<z.ZodString>;
378
406
  }, z.core.$strip>>;
407
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
379
408
  warehouse: z.ZodObject<{
380
409
  publicId: z.ZodUUID;
381
410
  code: z.ZodString;
@@ -412,6 +441,7 @@ declare const OrderListItemSchema: z.ZodObject<{
412
441
  displayRate: z.ZodString;
413
442
  reserveExpiresAt: z.ZodNullable<z.ZodISODateTime>;
414
443
  paidAt: z.ZodNullable<z.ZodISODateTime>;
444
+ readyForPickupAt: z.ZodNullable<z.ZodISODateTime>;
415
445
  cancelledAt: z.ZodNullable<z.ZodISODateTime>;
416
446
  cancellationReason: z.ZodNullable<z.ZodString>;
417
447
  }, z.core.$strip>;
@@ -435,6 +465,7 @@ declare const OrderListResponseSchema: z.ZodObject<{
435
465
  updatedAt: z.ZodISODateTime;
436
466
  locale: z.ZodString;
437
467
  status: z.ZodEnum<typeof OrderStatus>;
468
+ version: z.ZodNumber;
438
469
  publicId: z.ZodUUID;
439
470
  subtotalUsd: z.ZodString;
440
471
  totalPv: z.ZodString;
@@ -458,6 +489,7 @@ declare const OrderListResponseSchema: z.ZodObject<{
458
489
  lineTotalPv: z.ZodString;
459
490
  coverContentUrl: z.ZodNullable<z.ZodString>;
460
491
  }, z.core.$strip>>;
492
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
461
493
  warehouse: z.ZodObject<{
462
494
  publicId: z.ZodUUID;
463
495
  code: z.ZodString;
@@ -494,6 +526,7 @@ declare const OrderListResponseSchema: z.ZodObject<{
494
526
  displayRate: z.ZodString;
495
527
  reserveExpiresAt: z.ZodNullable<z.ZodISODateTime>;
496
528
  paidAt: z.ZodNullable<z.ZodISODateTime>;
529
+ readyForPickupAt: z.ZodNullable<z.ZodISODateTime>;
497
530
  cancelledAt: z.ZodNullable<z.ZodISODateTime>;
498
531
  cancellationReason: z.ZodNullable<z.ZodString>;
499
532
  }, z.core.$strip>>;
@@ -504,6 +537,106 @@ declare const OrderListResponseSchema: z.ZodObject<{
504
537
  pageCount: z.ZodNumber;
505
538
  }, z.core.$strip>;
506
539
  }, z.core.$strip>;
540
+ declare const WarehouseOrderReservationListQuerySchema: z.ZodObject<{
541
+ page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
542
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
543
+ search: z.ZodOptional<z.ZodString>;
544
+ dateFrom: z.ZodOptional<z.ZodString>;
545
+ dateTo: z.ZodOptional<z.ZodString>;
546
+ sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
547
+ asc: "asc";
548
+ desc: "desc";
549
+ }>>>;
550
+ warehousePublicId: z.ZodUUID;
551
+ reservationStatus: z.ZodOptional<z.ZodEnum<typeof OrderReservationStatus>>;
552
+ }, z.core.$strip>;
553
+ declare const WarehousePickupOrderListQuerySchema: z.ZodObject<{
554
+ page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
555
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
556
+ search: z.ZodOptional<z.ZodString>;
557
+ dateFrom: z.ZodOptional<z.ZodString>;
558
+ dateTo: z.ZodOptional<z.ZodString>;
559
+ sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
560
+ asc: "asc";
561
+ desc: "desc";
562
+ }>>>;
563
+ warehousePublicId: z.ZodUUID;
564
+ status: z.ZodOptional<z.ZodEnum<{
565
+ PROCESSING: OrderStatus.PROCESSING;
566
+ READY_FOR_PICKUP: OrderStatus.READY_FOR_PICKUP;
567
+ }>>;
568
+ }, z.core.$strip>;
569
+ declare const WarehouseOrderReservationSchema: z.ZodObject<{
570
+ publicId: z.ZodUUID;
571
+ status: z.ZodEnum<typeof OrderReservationStatus>;
572
+ quantity: z.ZodNumber;
573
+ createdAt: z.ZodISODateTime;
574
+ releasedAt: z.ZodNullable<z.ZodISODateTime>;
575
+ fulfilledAt: z.ZodNullable<z.ZodISODateTime>;
576
+ reserveExpiresAt: z.ZodNullable<z.ZodISODateTime>;
577
+ releaseReason: z.ZodNullable<z.ZodString>;
578
+ order: z.ZodObject<{
579
+ publicId: z.ZodUUID;
580
+ number: z.ZodString;
581
+ status: z.ZodEnum<typeof OrderStatus>;
582
+ paymentStatus: z.ZodEnum<typeof OrderPaymentStatus>;
583
+ }, z.core.$strip>;
584
+ item: z.ZodObject<{
585
+ publicId: z.ZodUUID;
586
+ productPublicId: z.ZodUUID;
587
+ variantPublicId: z.ZodUUID;
588
+ productName: z.ZodString;
589
+ sku: z.ZodString;
590
+ coverContentUrl: z.ZodNullable<z.ZodString>;
591
+ }, z.core.$strip>;
592
+ batch: z.ZodObject<{
593
+ publicId: z.ZodUUID;
594
+ batchNumber: z.ZodNullable<z.ZodString>;
595
+ expiresAt: z.ZodISODate;
596
+ }, z.core.$strip>;
597
+ }, z.core.$strip>;
598
+ declare const WarehouseOrderReservationListResponseSchema: z.ZodObject<{
599
+ items: z.ZodArray<z.ZodObject<{
600
+ publicId: z.ZodUUID;
601
+ status: z.ZodEnum<typeof OrderReservationStatus>;
602
+ quantity: z.ZodNumber;
603
+ createdAt: z.ZodISODateTime;
604
+ releasedAt: z.ZodNullable<z.ZodISODateTime>;
605
+ fulfilledAt: z.ZodNullable<z.ZodISODateTime>;
606
+ reserveExpiresAt: z.ZodNullable<z.ZodISODateTime>;
607
+ releaseReason: z.ZodNullable<z.ZodString>;
608
+ order: z.ZodObject<{
609
+ publicId: z.ZodUUID;
610
+ number: z.ZodString;
611
+ status: z.ZodEnum<typeof OrderStatus>;
612
+ paymentStatus: z.ZodEnum<typeof OrderPaymentStatus>;
613
+ }, z.core.$strip>;
614
+ item: z.ZodObject<{
615
+ publicId: z.ZodUUID;
616
+ productPublicId: z.ZodUUID;
617
+ variantPublicId: z.ZodUUID;
618
+ productName: z.ZodString;
619
+ sku: z.ZodString;
620
+ coverContentUrl: z.ZodNullable<z.ZodString>;
621
+ }, z.core.$strip>;
622
+ batch: z.ZodObject<{
623
+ publicId: z.ZodUUID;
624
+ batchNumber: z.ZodNullable<z.ZodString>;
625
+ expiresAt: z.ZodISODate;
626
+ }, z.core.$strip>;
627
+ }, z.core.$strip>>;
628
+ meta: z.ZodObject<{
629
+ page: z.ZodNumber;
630
+ limit: z.ZodNumber;
631
+ total: z.ZodNumber;
632
+ pageCount: z.ZodNumber;
633
+ }, z.core.$strip>;
634
+ summary: z.ZodObject<{
635
+ activeQuantity: z.ZodNumber;
636
+ activeReservations: z.ZodNumber;
637
+ releasedReservations: z.ZodNumber;
638
+ }, z.core.$strip>;
639
+ }, z.core.$strip>;
507
640
  declare const ReviewOrderReceiptRequestSchema: z.ZodObject<{
508
641
  decision: z.ZodEnum<typeof OrderReceiptDecision>;
509
642
  version: z.ZodNumber;
@@ -514,6 +647,7 @@ declare const OrderNotificationSchema: z.ZodObject<{
514
647
  orderPublicId: z.ZodUUID;
515
648
  orderNumber: z.ZodString;
516
649
  type: z.ZodEnum<typeof OrderNotificationType>;
650
+ pickupCode: z.ZodNullable<z.ZodString>;
517
651
  isRead: z.ZodBoolean;
518
652
  createdAt: z.ZodISODateTime;
519
653
  }, z.core.$strip>;
@@ -522,6 +656,7 @@ declare const OrderNotificationListSchema: z.ZodArray<z.ZodObject<{
522
656
  orderPublicId: z.ZodUUID;
523
657
  orderNumber: z.ZodString;
524
658
  type: z.ZodEnum<typeof OrderNotificationType>;
659
+ pickupCode: z.ZodNullable<z.ZodString>;
525
660
  isRead: z.ZodBoolean;
526
661
  createdAt: z.ZodISODateTime;
527
662
  }, z.core.$strip>>;
@@ -531,6 +666,8 @@ type CheckoutSnapshotResponse = z.infer<typeof CheckoutSnapshotSchema>;
531
666
  type CheckoutWarehouseQuery = z.infer<typeof CheckoutWarehouseQuerySchema>;
532
667
  type CheckoutWarehouseListResponse = z.infer<typeof CheckoutWarehouseListSchema>;
533
668
  type CreateOrderRequest = z.infer<typeof CreateOrderRequestSchema>;
669
+ type MarkOrderReadyRequest = z.infer<typeof MarkOrderReadyRequestSchema>;
670
+ type CompleteOrderPickupRequest = z.infer<typeof CompleteOrderPickupRequestSchema>;
534
671
  type OrderResponse = z.infer<typeof OrderSchema>;
535
672
  type OrderListItemResponse = z.infer<typeof OrderListItemSchema>;
536
673
  type OrderListQuery = z.infer<typeof OrderListQuerySchema>;
@@ -538,5 +675,9 @@ type OrderListResponse = z.infer<typeof OrderListResponseSchema>;
538
675
  type ReviewOrderReceiptRequest = z.infer<typeof ReviewOrderReceiptRequestSchema>;
539
676
  type OrderNotificationResponse = z.infer<typeof OrderNotificationSchema>;
540
677
  type OrderNotificationListResponse = z.infer<typeof OrderNotificationListSchema>;
678
+ type WarehouseOrderReservationListQuery = z.infer<typeof WarehouseOrderReservationListQuerySchema>;
679
+ type WarehousePickupOrderListQuery = z.infer<typeof WarehousePickupOrderListQuerySchema>;
680
+ type WarehouseOrderReservationResponse = z.infer<typeof WarehouseOrderReservationSchema>;
681
+ type WarehouseOrderReservationListResponse = z.infer<typeof WarehouseOrderReservationListResponseSchema>;
541
682
 
542
- export { type CheckoutLocationResponse, CheckoutLocationSchema, type CheckoutSnapshotResponse, CheckoutSnapshotSchema, CheckoutWarehouseAvailabilitySchema, type CheckoutWarehouseListResponse, CheckoutWarehouseListSchema, type CheckoutWarehouseQuery, CheckoutWarehouseQuerySchema, CheckoutWarehouseSchema, type CreateOrderRequest, CreateOrderRequestSchema, OrderDeliveryMethod, OrderEventSchema, OrderEventType, OrderItemSchema, type OrderListItemResponse, OrderListItemSchema, type OrderListQuery, OrderListQuerySchema, type OrderListResponse, OrderListResponseSchema, type OrderNotificationListResponse, OrderNotificationListSchema, type OrderNotificationResponse, OrderNotificationSchema, OrderNotificationType, OrderPaymentMethod, OrderPaymentStatus, OrderPublicIdParamSchema, OrderReceiptDecision, OrderReceiptParamSchema, OrderReceiptSchema, OrderReceiptStatus, type OrderResponse, OrderSchema, OrderStatus, OrderStockAvailability, OrderWarehouseSchema, type ReviewOrderReceiptRequest, ReviewOrderReceiptRequestSchema };
683
+ export { type CheckoutLocationResponse, CheckoutLocationSchema, type CheckoutSnapshotResponse, CheckoutSnapshotSchema, CheckoutWarehouseAvailabilitySchema, type CheckoutWarehouseListResponse, CheckoutWarehouseListSchema, type CheckoutWarehouseQuery, CheckoutWarehouseQuerySchema, CheckoutWarehouseSchema, type CompleteOrderPickupRequest, CompleteOrderPickupRequestSchema, type CreateOrderRequest, CreateOrderRequestSchema, type MarkOrderReadyRequest, MarkOrderReadyRequestSchema, OrderDeliveryMethod, OrderEventSchema, OrderEventType, OrderItemSchema, type OrderListItemResponse, OrderListItemSchema, type OrderListQuery, OrderListQuerySchema, type OrderListResponse, OrderListResponseSchema, type OrderNotificationListResponse, OrderNotificationListSchema, type OrderNotificationResponse, OrderNotificationSchema, OrderNotificationType, OrderPaymentMethod, OrderPaymentStatus, OrderPublicIdParamSchema, OrderReceiptDecision, OrderReceiptParamSchema, OrderReceiptSchema, OrderReceiptStatus, OrderReservationStatus, type OrderResponse, OrderSchema, OrderStatus, OrderStockAvailability, OrderWarehouseSchema, type ReviewOrderReceiptRequest, ReviewOrderReceiptRequestSchema, type WarehouseOrderReservationListQuery, WarehouseOrderReservationListQuerySchema, type WarehouseOrderReservationListResponse, WarehouseOrderReservationListResponseSchema, type WarehouseOrderReservationResponse, WarehouseOrderReservationSchema, type WarehousePickupOrderListQuery, WarehousePickupOrderListQuerySchema };
@@ -36,6 +36,11 @@ declare enum OrderStockAvailability {
36
36
  OUT_OF_STOCK = "OUT_OF_STOCK",
37
37
  INSUFFICIENT_STOCK = "INSUFFICIENT_STOCK"
38
38
  }
39
+ declare enum OrderReservationStatus {
40
+ ACTIVE = "ACTIVE",
41
+ RELEASED = "RELEASED",
42
+ FULFILLED = "FULFILLED"
43
+ }
39
44
  declare enum OrderEventType {
40
45
  CREATED = "CREATED",
41
46
  WALLET_DEBITED = "WALLET_DEBITED",
@@ -43,14 +48,20 @@ declare enum OrderEventType {
43
48
  PAYMENT_APPROVED = "PAYMENT_APPROVED",
44
49
  PAYMENT_REJECTED = "PAYMENT_REJECTED",
45
50
  CANCELLED_TIMEOUT = "CANCELLED_TIMEOUT",
46
- WALLET_REFUNDED = "WALLET_REFUNDED"
51
+ WALLET_REFUNDED = "WALLET_REFUNDED",
52
+ READY_FOR_PICKUP = "READY_FOR_PICKUP",
53
+ PICKUP_CODE_FAILED = "PICKUP_CODE_FAILED",
54
+ COMPLETED = "COMPLETED",
55
+ CASHBACK_CREDITED = "CASHBACK_CREDITED"
47
56
  }
48
57
  declare enum OrderNotificationType {
49
58
  ORDER_CREATED = "ORDER_CREATED",
50
59
  RECEIPT_RECEIVED = "RECEIPT_RECEIVED",
51
60
  PAYMENT_APPROVED = "PAYMENT_APPROVED",
52
61
  PAYMENT_REJECTED = "PAYMENT_REJECTED",
53
- ORDER_CANCELLED = "ORDER_CANCELLED"
62
+ ORDER_CANCELLED = "ORDER_CANCELLED",
63
+ ORDER_READY_FOR_PICKUP = "ORDER_READY_FOR_PICKUP",
64
+ ORDER_COMPLETED = "ORDER_COMPLETED"
54
65
  }
55
66
 
56
67
  declare const CheckoutWarehouseQuerySchema: z.ZodObject<{
@@ -192,6 +203,12 @@ declare const CreateOrderRequestSchema: z.ZodObject<{
192
203
  declare const OrderPublicIdParamSchema: z.ZodObject<{
193
204
  publicId: z.ZodUUID;
194
205
  }, z.core.$strip>;
206
+ declare const MarkOrderReadyRequestSchema: z.ZodObject<{
207
+ version: z.ZodNumber;
208
+ }, z.core.$strip>;
209
+ declare const CompleteOrderPickupRequestSchema: z.ZodObject<{
210
+ code: z.ZodString;
211
+ }, z.core.$strip>;
195
212
  declare const OrderReceiptParamSchema: z.ZodObject<{
196
213
  publicId: z.ZodUUID;
197
214
  receiptPublicId: z.ZodUUID;
@@ -262,6 +279,7 @@ declare const OrderEventSchema: z.ZodObject<{
262
279
  }, z.core.$strip>;
263
280
  declare const OrderSchema: z.ZodObject<{
264
281
  publicId: z.ZodUUID;
282
+ version: z.ZodNumber;
265
283
  number: z.ZodString;
266
284
  status: z.ZodEnum<typeof OrderStatus>;
267
285
  paymentStatus: z.ZodEnum<typeof OrderPaymentStatus>;
@@ -278,6 +296,8 @@ declare const OrderSchema: z.ZodObject<{
278
296
  cashDueUsd: z.ZodString;
279
297
  reserveExpiresAt: z.ZodNullable<z.ZodISODateTime>;
280
298
  paidAt: z.ZodNullable<z.ZodISODateTime>;
299
+ readyForPickupAt: z.ZodNullable<z.ZodISODateTime>;
300
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
281
301
  cancelledAt: z.ZodNullable<z.ZodISODateTime>;
282
302
  cancellationReason: z.ZodNullable<z.ZodString>;
283
303
  warehouse: z.ZodObject<{
@@ -344,6 +364,13 @@ declare const OrderSchema: z.ZodObject<{
344
364
  comment: z.ZodNullable<z.ZodString>;
345
365
  createdAt: z.ZodISODateTime;
346
366
  }, z.core.$strip>>;
367
+ pickupCode: z.ZodNullable<z.ZodString>;
368
+ cashbackCredit: z.ZodNullable<z.ZodObject<{
369
+ amountPv: z.ZodString;
370
+ balanceBeforePv: z.ZodString;
371
+ balanceAfterPv: z.ZodString;
372
+ creditedAt: z.ZodISODateTime;
373
+ }, z.core.$strip>>;
347
374
  createdAt: z.ZodISODateTime;
348
375
  updatedAt: z.ZodISODateTime;
349
376
  }, z.core.$strip>;
@@ -353,6 +380,7 @@ declare const OrderListItemSchema: z.ZodObject<{
353
380
  updatedAt: z.ZodISODateTime;
354
381
  locale: z.ZodString;
355
382
  status: z.ZodEnum<typeof OrderStatus>;
383
+ version: z.ZodNumber;
356
384
  publicId: z.ZodUUID;
357
385
  subtotalUsd: z.ZodString;
358
386
  totalPv: z.ZodString;
@@ -376,6 +404,7 @@ declare const OrderListItemSchema: z.ZodObject<{
376
404
  lineTotalPv: z.ZodString;
377
405
  coverContentUrl: z.ZodNullable<z.ZodString>;
378
406
  }, z.core.$strip>>;
407
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
379
408
  warehouse: z.ZodObject<{
380
409
  publicId: z.ZodUUID;
381
410
  code: z.ZodString;
@@ -412,6 +441,7 @@ declare const OrderListItemSchema: z.ZodObject<{
412
441
  displayRate: z.ZodString;
413
442
  reserveExpiresAt: z.ZodNullable<z.ZodISODateTime>;
414
443
  paidAt: z.ZodNullable<z.ZodISODateTime>;
444
+ readyForPickupAt: z.ZodNullable<z.ZodISODateTime>;
415
445
  cancelledAt: z.ZodNullable<z.ZodISODateTime>;
416
446
  cancellationReason: z.ZodNullable<z.ZodString>;
417
447
  }, z.core.$strip>;
@@ -435,6 +465,7 @@ declare const OrderListResponseSchema: z.ZodObject<{
435
465
  updatedAt: z.ZodISODateTime;
436
466
  locale: z.ZodString;
437
467
  status: z.ZodEnum<typeof OrderStatus>;
468
+ version: z.ZodNumber;
438
469
  publicId: z.ZodUUID;
439
470
  subtotalUsd: z.ZodString;
440
471
  totalPv: z.ZodString;
@@ -458,6 +489,7 @@ declare const OrderListResponseSchema: z.ZodObject<{
458
489
  lineTotalPv: z.ZodString;
459
490
  coverContentUrl: z.ZodNullable<z.ZodString>;
460
491
  }, z.core.$strip>>;
492
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
461
493
  warehouse: z.ZodObject<{
462
494
  publicId: z.ZodUUID;
463
495
  code: z.ZodString;
@@ -494,6 +526,7 @@ declare const OrderListResponseSchema: z.ZodObject<{
494
526
  displayRate: z.ZodString;
495
527
  reserveExpiresAt: z.ZodNullable<z.ZodISODateTime>;
496
528
  paidAt: z.ZodNullable<z.ZodISODateTime>;
529
+ readyForPickupAt: z.ZodNullable<z.ZodISODateTime>;
497
530
  cancelledAt: z.ZodNullable<z.ZodISODateTime>;
498
531
  cancellationReason: z.ZodNullable<z.ZodString>;
499
532
  }, z.core.$strip>>;
@@ -504,6 +537,106 @@ declare const OrderListResponseSchema: z.ZodObject<{
504
537
  pageCount: z.ZodNumber;
505
538
  }, z.core.$strip>;
506
539
  }, z.core.$strip>;
540
+ declare const WarehouseOrderReservationListQuerySchema: z.ZodObject<{
541
+ page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
542
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
543
+ search: z.ZodOptional<z.ZodString>;
544
+ dateFrom: z.ZodOptional<z.ZodString>;
545
+ dateTo: z.ZodOptional<z.ZodString>;
546
+ sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
547
+ asc: "asc";
548
+ desc: "desc";
549
+ }>>>;
550
+ warehousePublicId: z.ZodUUID;
551
+ reservationStatus: z.ZodOptional<z.ZodEnum<typeof OrderReservationStatus>>;
552
+ }, z.core.$strip>;
553
+ declare const WarehousePickupOrderListQuerySchema: z.ZodObject<{
554
+ page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
555
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
556
+ search: z.ZodOptional<z.ZodString>;
557
+ dateFrom: z.ZodOptional<z.ZodString>;
558
+ dateTo: z.ZodOptional<z.ZodString>;
559
+ sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
560
+ asc: "asc";
561
+ desc: "desc";
562
+ }>>>;
563
+ warehousePublicId: z.ZodUUID;
564
+ status: z.ZodOptional<z.ZodEnum<{
565
+ PROCESSING: OrderStatus.PROCESSING;
566
+ READY_FOR_PICKUP: OrderStatus.READY_FOR_PICKUP;
567
+ }>>;
568
+ }, z.core.$strip>;
569
+ declare const WarehouseOrderReservationSchema: z.ZodObject<{
570
+ publicId: z.ZodUUID;
571
+ status: z.ZodEnum<typeof OrderReservationStatus>;
572
+ quantity: z.ZodNumber;
573
+ createdAt: z.ZodISODateTime;
574
+ releasedAt: z.ZodNullable<z.ZodISODateTime>;
575
+ fulfilledAt: z.ZodNullable<z.ZodISODateTime>;
576
+ reserveExpiresAt: z.ZodNullable<z.ZodISODateTime>;
577
+ releaseReason: z.ZodNullable<z.ZodString>;
578
+ order: z.ZodObject<{
579
+ publicId: z.ZodUUID;
580
+ number: z.ZodString;
581
+ status: z.ZodEnum<typeof OrderStatus>;
582
+ paymentStatus: z.ZodEnum<typeof OrderPaymentStatus>;
583
+ }, z.core.$strip>;
584
+ item: z.ZodObject<{
585
+ publicId: z.ZodUUID;
586
+ productPublicId: z.ZodUUID;
587
+ variantPublicId: z.ZodUUID;
588
+ productName: z.ZodString;
589
+ sku: z.ZodString;
590
+ coverContentUrl: z.ZodNullable<z.ZodString>;
591
+ }, z.core.$strip>;
592
+ batch: z.ZodObject<{
593
+ publicId: z.ZodUUID;
594
+ batchNumber: z.ZodNullable<z.ZodString>;
595
+ expiresAt: z.ZodISODate;
596
+ }, z.core.$strip>;
597
+ }, z.core.$strip>;
598
+ declare const WarehouseOrderReservationListResponseSchema: z.ZodObject<{
599
+ items: z.ZodArray<z.ZodObject<{
600
+ publicId: z.ZodUUID;
601
+ status: z.ZodEnum<typeof OrderReservationStatus>;
602
+ quantity: z.ZodNumber;
603
+ createdAt: z.ZodISODateTime;
604
+ releasedAt: z.ZodNullable<z.ZodISODateTime>;
605
+ fulfilledAt: z.ZodNullable<z.ZodISODateTime>;
606
+ reserveExpiresAt: z.ZodNullable<z.ZodISODateTime>;
607
+ releaseReason: z.ZodNullable<z.ZodString>;
608
+ order: z.ZodObject<{
609
+ publicId: z.ZodUUID;
610
+ number: z.ZodString;
611
+ status: z.ZodEnum<typeof OrderStatus>;
612
+ paymentStatus: z.ZodEnum<typeof OrderPaymentStatus>;
613
+ }, z.core.$strip>;
614
+ item: z.ZodObject<{
615
+ publicId: z.ZodUUID;
616
+ productPublicId: z.ZodUUID;
617
+ variantPublicId: z.ZodUUID;
618
+ productName: z.ZodString;
619
+ sku: z.ZodString;
620
+ coverContentUrl: z.ZodNullable<z.ZodString>;
621
+ }, z.core.$strip>;
622
+ batch: z.ZodObject<{
623
+ publicId: z.ZodUUID;
624
+ batchNumber: z.ZodNullable<z.ZodString>;
625
+ expiresAt: z.ZodISODate;
626
+ }, z.core.$strip>;
627
+ }, z.core.$strip>>;
628
+ meta: z.ZodObject<{
629
+ page: z.ZodNumber;
630
+ limit: z.ZodNumber;
631
+ total: z.ZodNumber;
632
+ pageCount: z.ZodNumber;
633
+ }, z.core.$strip>;
634
+ summary: z.ZodObject<{
635
+ activeQuantity: z.ZodNumber;
636
+ activeReservations: z.ZodNumber;
637
+ releasedReservations: z.ZodNumber;
638
+ }, z.core.$strip>;
639
+ }, z.core.$strip>;
507
640
  declare const ReviewOrderReceiptRequestSchema: z.ZodObject<{
508
641
  decision: z.ZodEnum<typeof OrderReceiptDecision>;
509
642
  version: z.ZodNumber;
@@ -514,6 +647,7 @@ declare const OrderNotificationSchema: z.ZodObject<{
514
647
  orderPublicId: z.ZodUUID;
515
648
  orderNumber: z.ZodString;
516
649
  type: z.ZodEnum<typeof OrderNotificationType>;
650
+ pickupCode: z.ZodNullable<z.ZodString>;
517
651
  isRead: z.ZodBoolean;
518
652
  createdAt: z.ZodISODateTime;
519
653
  }, z.core.$strip>;
@@ -522,6 +656,7 @@ declare const OrderNotificationListSchema: z.ZodArray<z.ZodObject<{
522
656
  orderPublicId: z.ZodUUID;
523
657
  orderNumber: z.ZodString;
524
658
  type: z.ZodEnum<typeof OrderNotificationType>;
659
+ pickupCode: z.ZodNullable<z.ZodString>;
525
660
  isRead: z.ZodBoolean;
526
661
  createdAt: z.ZodISODateTime;
527
662
  }, z.core.$strip>>;
@@ -531,6 +666,8 @@ type CheckoutSnapshotResponse = z.infer<typeof CheckoutSnapshotSchema>;
531
666
  type CheckoutWarehouseQuery = z.infer<typeof CheckoutWarehouseQuerySchema>;
532
667
  type CheckoutWarehouseListResponse = z.infer<typeof CheckoutWarehouseListSchema>;
533
668
  type CreateOrderRequest = z.infer<typeof CreateOrderRequestSchema>;
669
+ type MarkOrderReadyRequest = z.infer<typeof MarkOrderReadyRequestSchema>;
670
+ type CompleteOrderPickupRequest = z.infer<typeof CompleteOrderPickupRequestSchema>;
534
671
  type OrderResponse = z.infer<typeof OrderSchema>;
535
672
  type OrderListItemResponse = z.infer<typeof OrderListItemSchema>;
536
673
  type OrderListQuery = z.infer<typeof OrderListQuerySchema>;
@@ -538,5 +675,9 @@ type OrderListResponse = z.infer<typeof OrderListResponseSchema>;
538
675
  type ReviewOrderReceiptRequest = z.infer<typeof ReviewOrderReceiptRequestSchema>;
539
676
  type OrderNotificationResponse = z.infer<typeof OrderNotificationSchema>;
540
677
  type OrderNotificationListResponse = z.infer<typeof OrderNotificationListSchema>;
678
+ type WarehouseOrderReservationListQuery = z.infer<typeof WarehouseOrderReservationListQuerySchema>;
679
+ type WarehousePickupOrderListQuery = z.infer<typeof WarehousePickupOrderListQuerySchema>;
680
+ type WarehouseOrderReservationResponse = z.infer<typeof WarehouseOrderReservationSchema>;
681
+ type WarehouseOrderReservationListResponse = z.infer<typeof WarehouseOrderReservationListResponseSchema>;
541
682
 
542
- export { type CheckoutLocationResponse, CheckoutLocationSchema, type CheckoutSnapshotResponse, CheckoutSnapshotSchema, CheckoutWarehouseAvailabilitySchema, type CheckoutWarehouseListResponse, CheckoutWarehouseListSchema, type CheckoutWarehouseQuery, CheckoutWarehouseQuerySchema, CheckoutWarehouseSchema, type CreateOrderRequest, CreateOrderRequestSchema, OrderDeliveryMethod, OrderEventSchema, OrderEventType, OrderItemSchema, type OrderListItemResponse, OrderListItemSchema, type OrderListQuery, OrderListQuerySchema, type OrderListResponse, OrderListResponseSchema, type OrderNotificationListResponse, OrderNotificationListSchema, type OrderNotificationResponse, OrderNotificationSchema, OrderNotificationType, OrderPaymentMethod, OrderPaymentStatus, OrderPublicIdParamSchema, OrderReceiptDecision, OrderReceiptParamSchema, OrderReceiptSchema, OrderReceiptStatus, type OrderResponse, OrderSchema, OrderStatus, OrderStockAvailability, OrderWarehouseSchema, type ReviewOrderReceiptRequest, ReviewOrderReceiptRequestSchema };
683
+ export { type CheckoutLocationResponse, CheckoutLocationSchema, type CheckoutSnapshotResponse, CheckoutSnapshotSchema, CheckoutWarehouseAvailabilitySchema, type CheckoutWarehouseListResponse, CheckoutWarehouseListSchema, type CheckoutWarehouseQuery, CheckoutWarehouseQuerySchema, CheckoutWarehouseSchema, type CompleteOrderPickupRequest, CompleteOrderPickupRequestSchema, type CreateOrderRequest, CreateOrderRequestSchema, type MarkOrderReadyRequest, MarkOrderReadyRequestSchema, OrderDeliveryMethod, OrderEventSchema, OrderEventType, OrderItemSchema, type OrderListItemResponse, OrderListItemSchema, type OrderListQuery, OrderListQuerySchema, type OrderListResponse, OrderListResponseSchema, type OrderNotificationListResponse, OrderNotificationListSchema, type OrderNotificationResponse, OrderNotificationSchema, OrderNotificationType, OrderPaymentMethod, OrderPaymentStatus, OrderPublicIdParamSchema, OrderReceiptDecision, OrderReceiptParamSchema, OrderReceiptSchema, OrderReceiptStatus, OrderReservationStatus, type OrderResponse, OrderSchema, OrderStatus, OrderStockAvailability, OrderWarehouseSchema, type ReviewOrderReceiptRequest, ReviewOrderReceiptRequestSchema, type WarehouseOrderReservationListQuery, WarehouseOrderReservationListQuerySchema, type WarehouseOrderReservationListResponse, WarehouseOrderReservationListResponseSchema, type WarehouseOrderReservationResponse, WarehouseOrderReservationSchema, type WarehousePickupOrderListQuery, WarehousePickupOrderListQuerySchema };