@retaila/shared-types 1.1.21 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +318 -117
- package/dist/index.d.ts +318 -117
- package/dist/index.js +88 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +79 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -356,6 +356,111 @@ interface CustomerUpsertDto {
|
|
|
356
356
|
phone?: Phone;
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
+
/**
|
|
360
|
+
* Entidad Product
|
|
361
|
+
* Representa un producto vendible en la tienda. Es la entidad base que puede tener múltiples variantes.
|
|
362
|
+
*/
|
|
363
|
+
interface Product {
|
|
364
|
+
id: string;
|
|
365
|
+
accountId: string;
|
|
366
|
+
code: string;
|
|
367
|
+
brandId?: string | null;
|
|
368
|
+
supplierId?: string | null;
|
|
369
|
+
productType: ProductType;
|
|
370
|
+
sku?: string | null;
|
|
371
|
+
barcode?: string | null;
|
|
372
|
+
name: string;
|
|
373
|
+
slug: string;
|
|
374
|
+
description?: string | null;
|
|
375
|
+
isFeatured: boolean;
|
|
376
|
+
allowBackorder: boolean;
|
|
377
|
+
weight?: number | null;
|
|
378
|
+
weightUnit?: string | null;
|
|
379
|
+
height?: number | null;
|
|
380
|
+
width?: number | null;
|
|
381
|
+
depth?: number | null;
|
|
382
|
+
dimensionUnit?: string | null;
|
|
383
|
+
shippingLeadTime?: string | null;
|
|
384
|
+
status: ProductStatus;
|
|
385
|
+
createdAt: Date;
|
|
386
|
+
updatedAt: Date;
|
|
387
|
+
deletedAt?: Date | null;
|
|
388
|
+
media?: Media[];
|
|
389
|
+
}
|
|
390
|
+
declare enum ProductStatus {
|
|
391
|
+
ACTIVE = "ACTIVE",// Available for sale
|
|
392
|
+
INACTIVE = "INACTIVE",// Not visible/purchasable
|
|
393
|
+
ARCHIVED = "ARCHIVED",// Not visible, kept for records
|
|
394
|
+
DRAFT = "DRAFT"
|
|
395
|
+
}
|
|
396
|
+
declare enum ProductType {
|
|
397
|
+
SIMPLE = "SIMPLE",// Product without variants (may have a default hidden variant)
|
|
398
|
+
VARIABLE = "VARIABLE",// Product with distinct variants (color, size, etc.)
|
|
399
|
+
BUNDLE = "BUNDLE",// A package of other products/variants
|
|
400
|
+
GIFT_CARD = "GIFT_CARD"
|
|
401
|
+
}
|
|
402
|
+
interface ProductVariant {
|
|
403
|
+
id: string;
|
|
404
|
+
accountId: string;
|
|
405
|
+
productId: string;
|
|
406
|
+
sku?: string | null;
|
|
407
|
+
barcode?: string | null;
|
|
408
|
+
currency: string;
|
|
409
|
+
price: number;
|
|
410
|
+
compareAtPrice?: number;
|
|
411
|
+
allowBackorder?: boolean;
|
|
412
|
+
stock: number;
|
|
413
|
+
weight?: number | null;
|
|
414
|
+
weightUnit?: string | null;
|
|
415
|
+
height?: number | null;
|
|
416
|
+
width?: number | null;
|
|
417
|
+
depth?: number | null;
|
|
418
|
+
dimensionUnit?: string | null;
|
|
419
|
+
shippingLeadTime?: string | null;
|
|
420
|
+
order: number;
|
|
421
|
+
createdAt: Date;
|
|
422
|
+
updatedAt: Date;
|
|
423
|
+
deletedAt?: Date;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
type FulfillmentItem = {
|
|
427
|
+
id: string;
|
|
428
|
+
fulfillmentId: string;
|
|
429
|
+
orderItemId: string;
|
|
430
|
+
quantity: number;
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
type CreateFulfillmentItemDto = {
|
|
434
|
+
orderItemId: string;
|
|
435
|
+
quantity: string;
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
declare enum FulfillmentStatus {
|
|
439
|
+
PENDING = "pending",
|
|
440
|
+
PACKED = "packed",
|
|
441
|
+
SHIPPED = "shipped",
|
|
442
|
+
DELIVERED = "delivered",
|
|
443
|
+
CANCELLED = "cancelled"
|
|
444
|
+
}
|
|
445
|
+
type Fulfillment = {
|
|
446
|
+
id: string;
|
|
447
|
+
accountId: string;
|
|
448
|
+
orderId: string;
|
|
449
|
+
accountBranchId: string;
|
|
450
|
+
carrier: string;
|
|
451
|
+
trackingNumber: string | null;
|
|
452
|
+
items: FulfillmentItem[];
|
|
453
|
+
status: FulfillmentStatus;
|
|
454
|
+
data: Record<string, unknown> | null;
|
|
455
|
+
packedAt: Date | null;
|
|
456
|
+
shippedAt: Date | null;
|
|
457
|
+
deliveredAt: Date | null;
|
|
458
|
+
cancelledAt: Date | null;
|
|
459
|
+
createdAt: Date;
|
|
460
|
+
updatedAt: Date;
|
|
461
|
+
deletedAt?: Date;
|
|
462
|
+
};
|
|
463
|
+
|
|
359
464
|
/**
|
|
360
465
|
* Entidad Order
|
|
361
466
|
* Define la orden de compra de un cliente en el sitio web.
|
|
@@ -385,7 +490,7 @@ interface Order {
|
|
|
385
490
|
totalRefunded: number;
|
|
386
491
|
status: OrderStatus;
|
|
387
492
|
paymentStatus: OrderPaymentStatus;
|
|
388
|
-
fulfillmentStatus:
|
|
493
|
+
fulfillmentStatus: FulfillmentStatus;
|
|
389
494
|
statusHistory?: StatusChangeHistory[];
|
|
390
495
|
customerNote?: string;
|
|
391
496
|
internalNote?: string;
|
|
@@ -423,6 +528,7 @@ interface OrderItem {
|
|
|
423
528
|
taxName?: string;
|
|
424
529
|
createdAt: Date;
|
|
425
530
|
updatedAt: Date;
|
|
531
|
+
product?: Product;
|
|
426
532
|
}
|
|
427
533
|
declare enum OrderStatus {
|
|
428
534
|
PENDING = "PENDING",// Order placed, awaiting payment confirmation
|
|
@@ -442,11 +548,6 @@ declare enum OrderPaymentStatus {
|
|
|
442
548
|
REFUNDED = "REFUNDED",
|
|
443
549
|
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED"
|
|
444
550
|
}
|
|
445
|
-
declare enum OrderFulfillmentStatus {
|
|
446
|
-
PENDING = "PENDING",
|
|
447
|
-
PARTIAL = "PARTIAL",
|
|
448
|
-
FULFILLED = "FULFILLED"
|
|
449
|
-
}
|
|
450
551
|
declare enum OrderSource {
|
|
451
552
|
WEB = "WEB",
|
|
452
553
|
POS = "POS",
|
|
@@ -586,6 +687,8 @@ interface Cart {
|
|
|
586
687
|
subtotal: number;
|
|
587
688
|
total: number;
|
|
588
689
|
deliveryType: CartDeliveryType;
|
|
690
|
+
deliveryOptionId?: string;
|
|
691
|
+
pickupBranchId?: string;
|
|
589
692
|
itemCount: number;
|
|
590
693
|
createdAt: Date;
|
|
591
694
|
updatedAt: Date;
|
|
@@ -602,8 +705,8 @@ interface Cart {
|
|
|
602
705
|
totalTax?: number;
|
|
603
706
|
totalPrice?: number;
|
|
604
707
|
taxDetails?: any;
|
|
605
|
-
customer?: Customer | null;
|
|
606
|
-
accountDomain?: AccountDomain;
|
|
708
|
+
customer?: Partial<Customer> | null;
|
|
709
|
+
accountDomain?: Partial<AccountDomain> | null;
|
|
607
710
|
}
|
|
608
711
|
interface CartItem {
|
|
609
712
|
id: string;
|
|
@@ -637,7 +740,7 @@ declare enum CartSource {
|
|
|
637
740
|
API = "API"
|
|
638
741
|
}
|
|
639
742
|
declare enum CartDeliveryType {
|
|
640
|
-
|
|
743
|
+
SHIPPING = "shipping",
|
|
641
744
|
PICKUP = "pickup"
|
|
642
745
|
}
|
|
643
746
|
|
|
@@ -649,7 +752,8 @@ declare enum PaymentStatus {
|
|
|
649
752
|
REJECTED = "REJECTED",// Pago rechazado
|
|
650
753
|
REFUND_IN_PROCESS = "REFUND_IN_PROCESS",// En proceso de reembolso con la plataforma de pagos
|
|
651
754
|
PARTIAL_REFUND = "PARTIAL_REFUND",// Pago parcialmente reembolsado
|
|
652
|
-
REFUNDED = "REFUNDED"
|
|
755
|
+
REFUNDED = "REFUNDED",// Pago reembolsado
|
|
756
|
+
ERROR = "ERROR"
|
|
653
757
|
}
|
|
654
758
|
declare enum PaymentMethodType {
|
|
655
759
|
BANK_TRANSFER = "BANK_TRANSFER",
|
|
@@ -679,125 +783,54 @@ interface Payment {
|
|
|
679
783
|
status: PaymentStatus;
|
|
680
784
|
cardBrand?: string;
|
|
681
785
|
cardLast4?: string;
|
|
786
|
+
data?: Record<string, unknown>;
|
|
682
787
|
metadata?: Record<string, any>;
|
|
683
788
|
demo: boolean;
|
|
684
789
|
createdAt: string | Date;
|
|
685
790
|
updatedAt: string | Date;
|
|
686
791
|
deletedAt?: string | Date;
|
|
687
792
|
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
accountId: string;
|
|
696
|
-
code: string;
|
|
697
|
-
brandId?: string | null;
|
|
698
|
-
supplierId?: string | null;
|
|
699
|
-
productType: ProductType;
|
|
700
|
-
sku?: string | null;
|
|
701
|
-
barcode?: string | null;
|
|
702
|
-
name: string;
|
|
703
|
-
slug: string;
|
|
704
|
-
description?: string | null;
|
|
705
|
-
isFeatured: boolean;
|
|
706
|
-
allowBackorder: boolean;
|
|
707
|
-
weight?: number | null;
|
|
708
|
-
weightUnit?: string | null;
|
|
709
|
-
height?: number | null;
|
|
710
|
-
width?: number | null;
|
|
711
|
-
depth?: number | null;
|
|
712
|
-
dimensionUnit?: string | null;
|
|
713
|
-
shippingLeadTime?: string | null;
|
|
714
|
-
status: ProductStatus;
|
|
715
|
-
createdAt: Date;
|
|
716
|
-
updatedAt: Date;
|
|
717
|
-
deletedAt?: Date | null;
|
|
718
|
-
}
|
|
719
|
-
declare enum ProductStatus {
|
|
720
|
-
ACTIVE = "ACTIVE",// Available for sale
|
|
721
|
-
INACTIVE = "INACTIVE",// Not visible/purchasable
|
|
722
|
-
ARCHIVED = "ARCHIVED",// Not visible, kept for records
|
|
723
|
-
DRAFT = "DRAFT"
|
|
793
|
+
type PaymentProviderKey = 'MERCADOPAGO';
|
|
794
|
+
interface PaymentProviderContext {
|
|
795
|
+
db: unknown;
|
|
796
|
+
accountIntegrationId: string;
|
|
797
|
+
providerKey: PaymentProviderKey;
|
|
798
|
+
environment: 'PRODUCTION' | 'DEVELOPMENT';
|
|
799
|
+
credentials: Record<string, any>;
|
|
724
800
|
}
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
VARIABLE = "VARIABLE",// Product with distinct variants (color, size, etc.)
|
|
728
|
-
BUNDLE = "BUNDLE",// A package of other products/variants
|
|
729
|
-
GIFT_CARD = "GIFT_CARD"
|
|
801
|
+
interface PaymentProviderInitInput {
|
|
802
|
+
data: Record<string, any>;
|
|
730
803
|
}
|
|
731
|
-
interface
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
productId: string;
|
|
735
|
-
sku?: string | null;
|
|
736
|
-
barcode?: string | null;
|
|
737
|
-
currency: string;
|
|
738
|
-
price: number;
|
|
739
|
-
compareAtPrice?: number;
|
|
740
|
-
allowBackorder?: boolean;
|
|
741
|
-
stock: number;
|
|
742
|
-
weight?: number | null;
|
|
743
|
-
weightUnit?: string | null;
|
|
744
|
-
height?: number | null;
|
|
745
|
-
width?: number | null;
|
|
746
|
-
depth?: number | null;
|
|
747
|
-
dimensionUnit?: string | null;
|
|
748
|
-
shippingLeadTime?: string | null;
|
|
749
|
-
order: number;
|
|
750
|
-
createdAt: Date;
|
|
751
|
-
updatedAt: Date;
|
|
752
|
-
deletedAt?: Date;
|
|
804
|
+
interface PaymentProviderInitOutput {
|
|
805
|
+
data: Record<string, any>;
|
|
806
|
+
status: PaymentStatus;
|
|
753
807
|
}
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
* Define los atributos disponibles que se pueden asignar a las variantes de producto (ej. Color, Talla).
|
|
758
|
-
* Especifica el nombre y tipo del atributo para ayudar en la representación y filtrado.
|
|
759
|
-
*/
|
|
760
|
-
interface ProductAttribute {
|
|
761
|
-
id: string;
|
|
762
|
-
accountId: string;
|
|
763
|
-
name: string;
|
|
764
|
-
alias: string;
|
|
765
|
-
slug: string;
|
|
766
|
-
type: ProductAttributeType;
|
|
767
|
-
isRequired: boolean;
|
|
768
|
-
suffix: string;
|
|
769
|
-
status: ProductAttributeStatus;
|
|
770
|
-
createdAt: Date;
|
|
771
|
-
updatedAt: Date;
|
|
772
|
-
deletedAt?: Date | null;
|
|
773
|
-
options: ProductAttributeOption[];
|
|
774
|
-
displayOrder: number;
|
|
808
|
+
interface PaymentProviderRefundInput {
|
|
809
|
+
amount: number;
|
|
810
|
+
data: Record<string, any>;
|
|
775
811
|
}
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
INACTIVE = "INACTIVE"
|
|
812
|
+
interface PaymentProviderRefundOutput {
|
|
813
|
+
data: Record<string, any>;
|
|
779
814
|
}
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
SELECT = "SELECT",// Dropdown list
|
|
785
|
-
BOOLEAN = "BOOLEAN"
|
|
815
|
+
interface PaymentProviderWebhookResult {
|
|
816
|
+
order_code: string | null;
|
|
817
|
+
status: PaymentStatus;
|
|
818
|
+
data: Record<string, unknown>;
|
|
786
819
|
}
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
*/
|
|
790
|
-
interface ProductAttributeOption {
|
|
791
|
-
id: string;
|
|
820
|
+
interface WebhookPayload {
|
|
821
|
+
provider: string;
|
|
792
822
|
accountId: string;
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
823
|
+
payload: {
|
|
824
|
+
query: Record<string, unknown>;
|
|
825
|
+
body: Record<string, unknown>;
|
|
826
|
+
headers: Record<string, unknown>;
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
interface PaymentProviderAdapter {
|
|
830
|
+
readonly key: PaymentProviderKey;
|
|
831
|
+
initPayment(input: PaymentProviderInitInput): Promise<PaymentProviderInitOutput>;
|
|
832
|
+
refund(input: PaymentProviderRefundInput): Promise<PaymentProviderRefundOutput>;
|
|
833
|
+
processWebhook(input: WebhookPayload['payload']): Promise<PaymentProviderWebhookResult>;
|
|
801
834
|
}
|
|
802
835
|
|
|
803
836
|
/**
|
|
@@ -862,6 +895,61 @@ declare enum ProductCategoryStatus {
|
|
|
862
895
|
INACTIVE = "INACTIVE"
|
|
863
896
|
}
|
|
864
897
|
|
|
898
|
+
/**
|
|
899
|
+
* Entidad ProductAttribute
|
|
900
|
+
* Define los atributos disponibles que se pueden asignar a las variantes de producto (ej. Color, Talla).
|
|
901
|
+
* Especifica el nombre y tipo del atributo para ayudar en la representación y filtrado.
|
|
902
|
+
*/
|
|
903
|
+
|
|
904
|
+
interface ProductAttribute {
|
|
905
|
+
id: string;
|
|
906
|
+
accountId: string;
|
|
907
|
+
name: string;
|
|
908
|
+
alias: string;
|
|
909
|
+
slug: string;
|
|
910
|
+
type: ProductAttributeType;
|
|
911
|
+
isRequired: boolean;
|
|
912
|
+
suffix: string;
|
|
913
|
+
status: ProductAttributeStatus;
|
|
914
|
+
createdAt: Date;
|
|
915
|
+
updatedAt: Date;
|
|
916
|
+
deletedAt?: Date | null;
|
|
917
|
+
productCategories: ProductCategory[];
|
|
918
|
+
productCategoryLinks: Array<{
|
|
919
|
+
categoryId: string;
|
|
920
|
+
isRequired: boolean;
|
|
921
|
+
displayOrder: number;
|
|
922
|
+
}>;
|
|
923
|
+
options: ProductAttributeOption[];
|
|
924
|
+
displayOrder: number;
|
|
925
|
+
}
|
|
926
|
+
declare enum ProductAttributeStatus {
|
|
927
|
+
ACTIVE = "ACTIVE",
|
|
928
|
+
INACTIVE = "INACTIVE"
|
|
929
|
+
}
|
|
930
|
+
declare enum ProductAttributeType {
|
|
931
|
+
TEXT = "TEXT",// text input
|
|
932
|
+
NUMBER = "NUMBER",// number input
|
|
933
|
+
COLOR = "COLOR",// Special type for color swatches
|
|
934
|
+
SELECT = "SELECT",// Dropdown list
|
|
935
|
+
BOOLEAN = "BOOLEAN"
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* Una opción específica para un atributo (ej. "Talle 42" para el atributo "Talle").
|
|
939
|
+
*/
|
|
940
|
+
interface ProductAttributeOption {
|
|
941
|
+
id: string;
|
|
942
|
+
accountId: string;
|
|
943
|
+
productAttributeId: string;
|
|
944
|
+
value: string;
|
|
945
|
+
imageId?: string | null;
|
|
946
|
+
order: number;
|
|
947
|
+
createdAt: Date;
|
|
948
|
+
updatedAt: Date;
|
|
949
|
+
deletedAt?: Date | null;
|
|
950
|
+
count: number;
|
|
951
|
+
}
|
|
952
|
+
|
|
865
953
|
/**
|
|
866
954
|
* Entidad StoreBanner
|
|
867
955
|
* Banners para la portada de la web de la tienda
|
|
@@ -929,8 +1017,121 @@ declare enum StorePageType {
|
|
|
929
1017
|
|
|
930
1018
|
declare enum PubSubTopics {
|
|
931
1019
|
ORDER_PLACED = "order-placed",
|
|
1020
|
+
ORDER_CONFIRMED = "order-confirmed",
|
|
1021
|
+
ORDER_PROCESSING = "order-processing",
|
|
1022
|
+
ORDER_PROCESSED = "order-processed",
|
|
1023
|
+
ORDER_COMPLETED = "order-completed",
|
|
932
1024
|
PAYMENT_PAID = "payment-paid",
|
|
933
1025
|
NOTIFICATION_CREATED = "notification-created"
|
|
934
1026
|
}
|
|
935
1027
|
|
|
936
|
-
|
|
1028
|
+
declare enum SupportConversationChannel {
|
|
1029
|
+
WEB = "WEB",
|
|
1030
|
+
EMAIL = "EMAIL",
|
|
1031
|
+
WHATSAPP = "WHATSAPP"
|
|
1032
|
+
}
|
|
1033
|
+
declare enum SupportConversationVisibility {
|
|
1034
|
+
INTERNAL = "INTERNAL",
|
|
1035
|
+
MERCHANT = "MERCHANT"
|
|
1036
|
+
}
|
|
1037
|
+
declare enum SupportConversationPriority {
|
|
1038
|
+
LOW = "LOW",
|
|
1039
|
+
MEDIUM = "MEDIUM",
|
|
1040
|
+
HIGH = "HIGH",
|
|
1041
|
+
URGENT = "URGENT"
|
|
1042
|
+
}
|
|
1043
|
+
declare enum SupportConversationStatus {
|
|
1044
|
+
OPEN = "OPEN",
|
|
1045
|
+
CLOSED = "CLOSED",
|
|
1046
|
+
PENDING = "PENDING"
|
|
1047
|
+
}
|
|
1048
|
+
declare enum SupportConversationMessageDeliveryStatus {
|
|
1049
|
+
QUEUED = "QUEUED",
|
|
1050
|
+
SENT = "SENT",
|
|
1051
|
+
DELIVERED = "DELIVERED",
|
|
1052
|
+
READ = "READ",
|
|
1053
|
+
FAILED = "FAILED"
|
|
1054
|
+
}
|
|
1055
|
+
declare enum SupportConversationMessageAiAnalysisStatus {
|
|
1056
|
+
PENDING = "PENDING",
|
|
1057
|
+
PROCESSING = "PROCESSING",
|
|
1058
|
+
COMPLETED = "COMPLETED",
|
|
1059
|
+
FAILED = "FAILED"
|
|
1060
|
+
}
|
|
1061
|
+
declare enum SupportConversationMessageDirection {
|
|
1062
|
+
INBOUND = "INBOUND",
|
|
1063
|
+
OUTBOUND = "OUTBOUND"
|
|
1064
|
+
}
|
|
1065
|
+
declare enum SupportConversationMessageSenderType {
|
|
1066
|
+
CUSTOMER = "CUSTOMER",
|
|
1067
|
+
ACCOUNT_USER = "ACCOUNT_USER",
|
|
1068
|
+
ANONYMOUS = "ANONYMOUS",
|
|
1069
|
+
SYSTEM = "SYSTEM",
|
|
1070
|
+
AI = "AI"
|
|
1071
|
+
}
|
|
1072
|
+
interface SupportConversation {
|
|
1073
|
+
id: string;
|
|
1074
|
+
accountId: string;
|
|
1075
|
+
subject?: string | null;
|
|
1076
|
+
channel: SupportConversationChannel;
|
|
1077
|
+
assigneeId?: string | null;
|
|
1078
|
+
visibility: SupportConversationVisibility;
|
|
1079
|
+
priority: SupportConversationPriority;
|
|
1080
|
+
requiresMerchantAction: boolean;
|
|
1081
|
+
requiresInternalAction: boolean;
|
|
1082
|
+
customerId?: string | null;
|
|
1083
|
+
customerName?: string | null;
|
|
1084
|
+
customerLastname?: string | null;
|
|
1085
|
+
customerEmail?: string | null;
|
|
1086
|
+
customerPhone?: string | null;
|
|
1087
|
+
status: SupportConversationStatus;
|
|
1088
|
+
lastMessageAt?: Date | null;
|
|
1089
|
+
unreadForAgent: number;
|
|
1090
|
+
unreadForCustomer: number;
|
|
1091
|
+
metadata?: Object | null;
|
|
1092
|
+
aiSuggestion?: Object | null;
|
|
1093
|
+
createdAt: Date;
|
|
1094
|
+
updatedAt: Date;
|
|
1095
|
+
deletedAt?: Date | null;
|
|
1096
|
+
account: Account;
|
|
1097
|
+
customer: Customer | null;
|
|
1098
|
+
messages: SupportConversationMessage[];
|
|
1099
|
+
}
|
|
1100
|
+
interface SupportConversationMessage {
|
|
1101
|
+
id: string;
|
|
1102
|
+
accountId: string;
|
|
1103
|
+
conversationId: string;
|
|
1104
|
+
direction: SupportConversationMessageDirection;
|
|
1105
|
+
senderType: SupportConversationMessageSenderType;
|
|
1106
|
+
senderId?: string | null;
|
|
1107
|
+
body: string;
|
|
1108
|
+
isAiGenerated: boolean;
|
|
1109
|
+
isSystem: boolean;
|
|
1110
|
+
deliveryStatus: SupportConversationMessageDeliveryStatus;
|
|
1111
|
+
requiresAiAnalysis: boolean;
|
|
1112
|
+
aiAnalysisStatus: SupportConversationMessageAiAnalysisStatus;
|
|
1113
|
+
aiAnalyzedAt?: Date | null;
|
|
1114
|
+
externalMessageId?: string | null;
|
|
1115
|
+
externalThreadId?: string | null;
|
|
1116
|
+
attachments?: Array<{
|
|
1117
|
+
url: string;
|
|
1118
|
+
type?: string;
|
|
1119
|
+
name?: string;
|
|
1120
|
+
sizeBytes?: number;
|
|
1121
|
+
}>;
|
|
1122
|
+
metadata?: Object | null;
|
|
1123
|
+
createdAt: Date;
|
|
1124
|
+
updatedAt: Date;
|
|
1125
|
+
deletedAt?: Date | null;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
type CreateFulfillmentDto = {
|
|
1129
|
+
accountId: string;
|
|
1130
|
+
orderId: string;
|
|
1131
|
+
accountBranchId: string;
|
|
1132
|
+
carrier: string;
|
|
1133
|
+
items: CreateFulfillmentItemDto[];
|
|
1134
|
+
data?: Record<string, unknown>;
|
|
1135
|
+
};
|
|
1136
|
+
|
|
1137
|
+
export { type Account, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, AccountStatus, type Address, type AdminOrderStatusChangeDto, type BaseEntity, type BaseEntityWithAccount, type BaseEntityWithAccountAndUser, type BaseEntityWithUser, type Cart, type CartConfirmDto, CartDeliveryType, type CartItem, type CartItemAddDto, type CartItemAttributeDetail, CartItemErrorCode, type CartItemRemoveDto, type CartItemUpdateDto, type CartItemValidation, CartSource, CartStatus, type CartUpdateDto, type CreateFulfillmentDto, Currency, type Customer, CustomerStatus, type CustomerUpsertDto, type Fulfillment, FulfillmentStatus, type Integration, IntegrationCategory, IntegrationStatus, type MapPosition, type Media, MediaType, type Order, type OrderCreateFromCartDto, OrderDeliveryType, type OrderItem, OrderPaymentStatus, OrderSource, OrderStatus, type Payment, PaymentMethodType, type PaymentProviderAdapter, type PaymentProviderContext, type PaymentProviderInitInput, type PaymentProviderInitOutput, type PaymentProviderKey, type PaymentProviderRefundInput, type PaymentProviderRefundOutput, type PaymentProviderWebhookResult, PaymentStatus, type Phone, type Product, type ProductAttribute, type ProductAttributeOption, ProductAttributeStatus, ProductAttributeType, type ProductCategory, ProductCategoryStatus, ProductStatus, ProductType, type ProductVariant, PubSubTopics, type StandardCategory, StandardCategoryStatus, type StatusChangeHistory, type StoreBanner, StoreBannerStatus, type StorePage, StorePageStatus, StorePageType, type SupportConversation, SupportConversationChannel, type SupportConversationMessage, SupportConversationMessageAiAnalysisStatus, SupportConversationMessageDeliveryStatus, SupportConversationMessageDirection, SupportConversationMessageSenderType, SupportConversationPriority, SupportConversationStatus, SupportConversationVisibility, type ThemeConfig, type WebhookPayload, getCurrencySymbol };
|