controlresell 2.9.4 → 2.9.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.
- package/package.json +2 -2
- package/src/com/controlresell/api/requests/items/cancel/CancelRequest.d.ts +16 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequest.d.ts.map +1 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequest.js +8 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequest.js.map +1 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequest.ts +9 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.d.ts +4 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.d.ts.map +1 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.js +5 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.js.map +1 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.ts +6 -0
- package/src/com/controlresell/api/requests/items/publish/PublishRequest.d.ts +3 -0
- package/src/com/controlresell/api/requests/items/publish/PublishRequest.d.ts.map +1 -1
- package/src/com/controlresell/api/requests/items/publish/PublishRequest.js +1 -0
- package/src/com/controlresell/api/requests/items/publish/PublishRequest.js.map +1 -1
- package/src/com/controlresell/api/requests/items/publish/PublishRequest.ts +1 -0
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.d.ts +3 -0
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.d.ts.map +1 -1
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.js +1 -0
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.js.map +1 -1
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.ts +1 -0
- package/src/com/controlresell/api/responses/items/ItemActions.d.ts +10 -0
- package/src/com/controlresell/api/responses/items/ItemActions.d.ts.map +1 -0
- package/src/com/controlresell/api/responses/items/ItemActions.js +6 -0
- package/src/com/controlresell/api/responses/items/ItemActions.js.map +1 -0
- package/src/com/controlresell/api/responses/items/ItemActions.ts +7 -0
- package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts +68 -5
- package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts.map +1 -1
- package/src/com/controlresell/api/responses/items/ListedItem.d.ts +52 -3
- package/src/com/controlresell/api/responses/items/ListedItem.d.ts.map +1 -1
- package/src/com/controlresell/api/responses/items/ListedItem.js +2 -2
- package/src/com/controlresell/api/responses/items/ListedItem.js.map +1 -1
- package/src/com/controlresell/api/responses/items/ListedItem.ts +2 -2
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts +2 -2
- package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts +2235 -338
- package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts +2250 -353
- package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/Item.d.ts +1701 -142
- package/src/com/controlresell/inventory/models/items/Item.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/Item.js +1 -0
- package/src/com/controlresell/inventory/models/items/Item.js.map +1 -1
- package/src/com/controlresell/inventory/models/items/Item.ts +1 -0
- package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts +2250 -353
- package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts +2250 -353
- package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts +29 -0
- package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts +29 -0
- package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts +40 -0
- package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.js +6 -0
- package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.js.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.ts +8 -0
- package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryPublishedPayload.d.ts +10 -0
- package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryPublishedPayload.d.ts.map +1 -0
- package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryPublishedPayload.js +6 -0
- package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryPublishedPayload.js.map +1 -0
- package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryPublishedPayload.ts +7 -0
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +2766 -531
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +2190 -293
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +7057 -3263
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
- package/src/index.d.ts +4 -0
- package/src/index.d.ts.map +1 -1
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/index.ts +4 -0
|
@@ -1054,6 +1054,25 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
1054
1054
|
accountId: string;
|
|
1055
1055
|
caseId: string;
|
|
1056
1056
|
};
|
|
1057
|
+
}>, z.ZodObject<{
|
|
1058
|
+
data: z.ZodObject<{
|
|
1059
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
1060
|
+
}, "strip", z.ZodTypeAny, {
|
|
1061
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1062
|
+
}, {
|
|
1063
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1064
|
+
}>;
|
|
1065
|
+
type: z.ZodLiteral<"PUBLISHED">;
|
|
1066
|
+
}, "strip", z.ZodTypeAny, {
|
|
1067
|
+
type: "PUBLISHED";
|
|
1068
|
+
data: {
|
|
1069
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1070
|
+
};
|
|
1071
|
+
}, {
|
|
1072
|
+
type: "PUBLISHED";
|
|
1073
|
+
data: {
|
|
1074
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1075
|
+
};
|
|
1057
1076
|
}>, z.ZodObject<{
|
|
1058
1077
|
data: z.ZodObject<{
|
|
1059
1078
|
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
@@ -1453,6 +1472,11 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
1453
1472
|
accountId: string;
|
|
1454
1473
|
caseId: string;
|
|
1455
1474
|
};
|
|
1475
|
+
} | {
|
|
1476
|
+
type: "PUBLISHED";
|
|
1477
|
+
data: {
|
|
1478
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1479
|
+
};
|
|
1456
1480
|
} | {
|
|
1457
1481
|
type: "REPUBLISHING";
|
|
1458
1482
|
data: {
|
|
@@ -1611,6 +1635,11 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
1611
1635
|
accountId: string;
|
|
1612
1636
|
caseId: string;
|
|
1613
1637
|
};
|
|
1638
|
+
} | {
|
|
1639
|
+
type: "PUBLISHED";
|
|
1640
|
+
data: {
|
|
1641
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1642
|
+
};
|
|
1614
1643
|
} | {
|
|
1615
1644
|
type: "REPUBLISHING";
|
|
1616
1645
|
data: {
|
|
@@ -1794,125 +1823,135 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
1794
1823
|
viewsCount?: number | null | undefined;
|
|
1795
1824
|
favoritesCount?: number | null | undefined;
|
|
1796
1825
|
}>, "many">>>;
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
labels?: {
|
|
1812
|
-
itemId: string | number;
|
|
1813
|
-
labelId: string | number;
|
|
1814
|
-
label?: {
|
|
1815
|
-
id: string | number;
|
|
1816
|
-
name: string;
|
|
1817
|
-
createdAt: Date;
|
|
1818
|
-
isUserLabel: boolean;
|
|
1819
|
-
userId?: string | number | null | undefined;
|
|
1820
|
-
itemCount?: number | null | undefined;
|
|
1821
|
-
parentId?: unknown;
|
|
1822
|
-
} | null | undefined;
|
|
1823
|
-
}[] | null | undefined;
|
|
1824
|
-
files?: {
|
|
1825
|
-
itemId: string | number;
|
|
1826
|
-
fileId: string;
|
|
1827
|
-
index?: number | null | undefined;
|
|
1828
|
-
file?: {
|
|
1829
|
-
path: string;
|
|
1830
|
-
userId: string | number;
|
|
1831
|
-
id: string;
|
|
1832
|
-
createdAt: Date;
|
|
1833
|
-
signedUrl: string;
|
|
1834
|
-
} | null | undefined;
|
|
1835
|
-
}[] | null | undefined;
|
|
1836
|
-
fields?: {
|
|
1837
|
-
value: string;
|
|
1838
|
-
itemId: string | number;
|
|
1839
|
-
fieldId: string | number;
|
|
1840
|
-
}[] | null | undefined;
|
|
1841
|
-
sku?: string | null | undefined;
|
|
1842
|
-
categoryId?: number | null | undefined;
|
|
1843
|
-
brandId?: string | number | null | undefined;
|
|
1844
|
-
sex?: string | null | undefined;
|
|
1845
|
-
purchasePrice?: number | null | undefined;
|
|
1846
|
-
purchaseDate?: Date | null | undefined;
|
|
1847
|
-
purchasePlaceId?: string | number | null | undefined;
|
|
1848
|
-
purchased?: boolean | null | undefined;
|
|
1849
|
-
sellingPrice?: number | null | undefined;
|
|
1850
|
-
sellingDate?: Date | null | undefined;
|
|
1851
|
-
sellingPlaceId?: string | number | null | undefined;
|
|
1852
|
-
estimatedPrice?: number | null | undefined;
|
|
1853
|
-
fees?: {
|
|
1854
|
-
value: number;
|
|
1855
|
-
type: string;
|
|
1856
|
-
userId: string | number;
|
|
1857
|
-
id: string | number;
|
|
1858
|
-
updatedAt: Date;
|
|
1859
|
-
name: string;
|
|
1860
|
-
createdAt: Date;
|
|
1861
|
-
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
1862
|
-
startDate: Date;
|
|
1863
|
-
active: boolean;
|
|
1864
|
-
description?: string | null | undefined;
|
|
1865
|
-
itemId?: string | number | null | undefined;
|
|
1866
|
-
endDate?: Date | null | undefined;
|
|
1867
|
-
parentFeeId?: string | number | null | undefined;
|
|
1868
|
-
}[] | null | undefined;
|
|
1869
|
-
feesSum?: number | null | undefined;
|
|
1870
|
-
customerId?: string | number | null | undefined;
|
|
1871
|
-
customer?: {
|
|
1872
|
-
userId: string | number;
|
|
1873
|
-
id: string | number;
|
|
1874
|
-
email: string;
|
|
1875
|
-
firstName: string;
|
|
1876
|
-
lastName: string;
|
|
1877
|
-
birthDate: Date;
|
|
1878
|
-
idNumber: string;
|
|
1879
|
-
phone: string;
|
|
1880
|
-
iban: string;
|
|
1881
|
-
bic: string;
|
|
1882
|
-
phoneVerified: boolean;
|
|
1883
|
-
} | null | undefined;
|
|
1884
|
-
customerType?: string | null | undefined;
|
|
1885
|
-
customerPaid?: boolean | null | undefined;
|
|
1886
|
-
customerPaidDate?: Date | null | undefined;
|
|
1887
|
-
customerPaidType?: string | null | undefined;
|
|
1888
|
-
contractId?: string | number | null | undefined;
|
|
1889
|
-
lastHistory?: {
|
|
1890
|
-
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
1891
|
-
id: string;
|
|
1892
|
-
createdAt: Date;
|
|
1893
|
-
itemId: string | number;
|
|
1894
|
-
data?: {
|
|
1826
|
+
history: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1827
|
+
id: z.ZodString;
|
|
1828
|
+
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1829
|
+
type: z.ZodEnum<["IMPORTED", "ARCHIVED", "UNARCHIVED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED_RETRY", "REPUBLISHING_RETRY", "PUBLISH_CANCELED", "SCHEDULED", "REPUBLISHING", "IMAGE_PROCESSING_DONE", "REPUBLISHED", "REPUBLISH_CANCELED", "UPDATING", "UPDATED", "UPDATE_CANCELED", "CANCELED", "DISPUTE", "DELETING", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND", "LIFECYCLE_STARTED", "LIFECYCLE_COMPLETED", "LIFECYCLE_CANCELED"]>;
|
|
1830
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1831
|
+
data: z.ZodObject<{
|
|
1832
|
+
targetItemHistoryId: z.ZodString;
|
|
1833
|
+
}, "strip", z.ZodTypeAny, {
|
|
1834
|
+
targetItemHistoryId: string;
|
|
1835
|
+
}, {
|
|
1836
|
+
targetItemHistoryId: string;
|
|
1837
|
+
}>;
|
|
1838
|
+
type: z.ZodLiteral<"ACTION_CANCELED">;
|
|
1839
|
+
}, "strip", z.ZodTypeAny, {
|
|
1895
1840
|
type: "ACTION_CANCELED";
|
|
1896
1841
|
data: {
|
|
1897
1842
|
targetItemHistoryId: string;
|
|
1898
1843
|
};
|
|
1899
|
-
}
|
|
1844
|
+
}, {
|
|
1845
|
+
type: "ACTION_CANCELED";
|
|
1846
|
+
data: {
|
|
1847
|
+
targetItemHistoryId: string;
|
|
1848
|
+
};
|
|
1849
|
+
}>, z.ZodObject<{
|
|
1850
|
+
data: z.ZodObject<{
|
|
1851
|
+
soldAccountId: z.ZodString;
|
|
1852
|
+
soldOrderId: z.ZodString;
|
|
1853
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1854
|
+
}, "strip", z.ZodTypeAny, {
|
|
1855
|
+
soldAccountId: string;
|
|
1856
|
+
soldOrderId: string;
|
|
1857
|
+
soldConversationId?: string | null | undefined;
|
|
1858
|
+
}, {
|
|
1859
|
+
soldAccountId: string;
|
|
1860
|
+
soldOrderId: string;
|
|
1861
|
+
soldConversationId?: string | null | undefined;
|
|
1862
|
+
}>;
|
|
1863
|
+
type: z.ZodLiteral<"BUYER_PAID">;
|
|
1864
|
+
}, "strip", z.ZodTypeAny, {
|
|
1900
1865
|
type: "BUYER_PAID";
|
|
1901
1866
|
data: {
|
|
1902
1867
|
soldAccountId: string;
|
|
1903
1868
|
soldOrderId: string;
|
|
1904
1869
|
soldConversationId?: string | null | undefined;
|
|
1905
1870
|
};
|
|
1906
|
-
}
|
|
1871
|
+
}, {
|
|
1872
|
+
type: "BUYER_PAID";
|
|
1873
|
+
data: {
|
|
1874
|
+
soldAccountId: string;
|
|
1875
|
+
soldOrderId: string;
|
|
1876
|
+
soldConversationId?: string | null | undefined;
|
|
1877
|
+
};
|
|
1878
|
+
}>, z.ZodObject<{
|
|
1879
|
+
data: z.ZodObject<{
|
|
1880
|
+
soldAccountId: z.ZodString;
|
|
1881
|
+
soldOrderId: z.ZodString;
|
|
1882
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1883
|
+
}, "strip", z.ZodTypeAny, {
|
|
1884
|
+
soldAccountId: string;
|
|
1885
|
+
soldOrderId: string;
|
|
1886
|
+
soldConversationId?: string | null | undefined;
|
|
1887
|
+
}, {
|
|
1888
|
+
soldAccountId: string;
|
|
1889
|
+
soldOrderId: string;
|
|
1890
|
+
soldConversationId?: string | null | undefined;
|
|
1891
|
+
}>;
|
|
1892
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
1893
|
+
}, "strip", z.ZodTypeAny, {
|
|
1907
1894
|
type: "DELIVERED";
|
|
1908
1895
|
data: {
|
|
1909
1896
|
soldAccountId: string;
|
|
1910
1897
|
soldOrderId: string;
|
|
1911
1898
|
soldConversationId?: string | null | undefined;
|
|
1912
1899
|
};
|
|
1913
|
-
}
|
|
1900
|
+
}, {
|
|
1901
|
+
type: "DELIVERED";
|
|
1902
|
+
data: {
|
|
1903
|
+
soldAccountId: string;
|
|
1904
|
+
soldOrderId: string;
|
|
1905
|
+
soldConversationId?: string | null | undefined;
|
|
1906
|
+
};
|
|
1907
|
+
}>, z.ZodObject<{
|
|
1908
|
+
type: z.ZodLiteral<"EMPTY">;
|
|
1909
|
+
}, "strip", z.ZodTypeAny, {
|
|
1914
1910
|
type: "EMPTY";
|
|
1915
|
-
}
|
|
1911
|
+
}, {
|
|
1912
|
+
type: "EMPTY";
|
|
1913
|
+
}>, z.ZodObject<{
|
|
1914
|
+
data: z.ZodObject<{
|
|
1915
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
1916
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1917
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1918
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1919
|
+
field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
|
|
1920
|
+
autoFixable: z.ZodBoolean;
|
|
1921
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1922
|
+
}, "strip", z.ZodTypeAny, {
|
|
1923
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
1924
|
+
autoFixable: boolean;
|
|
1925
|
+
error?: string | null | undefined;
|
|
1926
|
+
}, {
|
|
1927
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
1928
|
+
autoFixable: boolean;
|
|
1929
|
+
error?: string | null | undefined;
|
|
1930
|
+
}>, "many">>>;
|
|
1931
|
+
itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1932
|
+
}, "strip", z.ZodTypeAny, {
|
|
1933
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1934
|
+
accountId?: string | null | undefined;
|
|
1935
|
+
reason?: string | null | undefined;
|
|
1936
|
+
fields?: {
|
|
1937
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
1938
|
+
autoFixable: boolean;
|
|
1939
|
+
error?: string | null | undefined;
|
|
1940
|
+
}[] | null | undefined;
|
|
1941
|
+
itemHistoryId?: string | null | undefined;
|
|
1942
|
+
}, {
|
|
1943
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1944
|
+
accountId?: string | null | undefined;
|
|
1945
|
+
reason?: string | null | undefined;
|
|
1946
|
+
fields?: {
|
|
1947
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
1948
|
+
autoFixable: boolean;
|
|
1949
|
+
error?: string | null | undefined;
|
|
1950
|
+
}[] | null | undefined;
|
|
1951
|
+
itemHistoryId?: string | null | undefined;
|
|
1952
|
+
}>;
|
|
1953
|
+
type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
|
|
1954
|
+
}, "strip", z.ZodTypeAny, {
|
|
1916
1955
|
type: "FAILED_TO_PUBLISH";
|
|
1917
1956
|
data: {
|
|
1918
1957
|
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
@@ -1925,19 +1964,1843 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
1925
1964
|
}[] | null | undefined;
|
|
1926
1965
|
itemHistoryId?: string | null | undefined;
|
|
1927
1966
|
};
|
|
1928
|
-
}
|
|
1929
|
-
type: "
|
|
1967
|
+
}, {
|
|
1968
|
+
type: "FAILED_TO_PUBLISH";
|
|
1930
1969
|
data: {
|
|
1931
1970
|
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
originalPhash: string;
|
|
1971
|
+
accountId?: string | null | undefined;
|
|
1972
|
+
reason?: string | null | undefined;
|
|
1973
|
+
fields?: {
|
|
1974
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
1975
|
+
autoFixable: boolean;
|
|
1976
|
+
error?: string | null | undefined;
|
|
1939
1977
|
}[] | null | undefined;
|
|
1940
|
-
|
|
1978
|
+
itemHistoryId?: string | null | undefined;
|
|
1979
|
+
};
|
|
1980
|
+
}>, z.ZodObject<{
|
|
1981
|
+
data: z.ZodObject<{
|
|
1982
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
1983
|
+
variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1984
|
+
fileId: z.ZodString;
|
|
1985
|
+
seed: z.ZodNumber;
|
|
1986
|
+
phash: z.ZodString;
|
|
1987
|
+
distanceOriginal: z.ZodNumber;
|
|
1988
|
+
originalImageUrl: z.ZodString;
|
|
1989
|
+
originalPhash: z.ZodString;
|
|
1990
|
+
}, "strip", z.ZodTypeAny, {
|
|
1991
|
+
fileId: string;
|
|
1992
|
+
seed: number;
|
|
1993
|
+
phash: string;
|
|
1994
|
+
distanceOriginal: number;
|
|
1995
|
+
originalImageUrl: string;
|
|
1996
|
+
originalPhash: string;
|
|
1997
|
+
}, {
|
|
1998
|
+
fileId: string;
|
|
1999
|
+
seed: number;
|
|
2000
|
+
phash: string;
|
|
2001
|
+
distanceOriginal: number;
|
|
2002
|
+
originalImageUrl: string;
|
|
2003
|
+
originalPhash: string;
|
|
2004
|
+
}>, "many">>>;
|
|
2005
|
+
originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2006
|
+
}, "strip", z.ZodTypeAny, {
|
|
2007
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2008
|
+
variations?: {
|
|
2009
|
+
fileId: string;
|
|
2010
|
+
seed: number;
|
|
2011
|
+
phash: string;
|
|
2012
|
+
distanceOriginal: number;
|
|
2013
|
+
originalImageUrl: string;
|
|
2014
|
+
originalPhash: string;
|
|
2015
|
+
}[] | null | undefined;
|
|
2016
|
+
originalPhashes?: string[] | null | undefined;
|
|
2017
|
+
}, {
|
|
2018
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2019
|
+
variations?: {
|
|
2020
|
+
fileId: string;
|
|
2021
|
+
seed: number;
|
|
2022
|
+
phash: string;
|
|
2023
|
+
distanceOriginal: number;
|
|
2024
|
+
originalImageUrl: string;
|
|
2025
|
+
originalPhash: string;
|
|
2026
|
+
}[] | null | undefined;
|
|
2027
|
+
originalPhashes?: string[] | null | undefined;
|
|
2028
|
+
}>;
|
|
2029
|
+
type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
|
|
2030
|
+
}, "strip", z.ZodTypeAny, {
|
|
2031
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
2032
|
+
data: {
|
|
2033
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2034
|
+
variations?: {
|
|
2035
|
+
fileId: string;
|
|
2036
|
+
seed: number;
|
|
2037
|
+
phash: string;
|
|
2038
|
+
distanceOriginal: number;
|
|
2039
|
+
originalImageUrl: string;
|
|
2040
|
+
originalPhash: string;
|
|
2041
|
+
}[] | null | undefined;
|
|
2042
|
+
originalPhashes?: string[] | null | undefined;
|
|
2043
|
+
};
|
|
2044
|
+
}, {
|
|
2045
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
2046
|
+
data: {
|
|
2047
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2048
|
+
variations?: {
|
|
2049
|
+
fileId: string;
|
|
2050
|
+
seed: number;
|
|
2051
|
+
phash: string;
|
|
2052
|
+
distanceOriginal: number;
|
|
2053
|
+
originalImageUrl: string;
|
|
2054
|
+
originalPhash: string;
|
|
2055
|
+
}[] | null | undefined;
|
|
2056
|
+
originalPhashes?: string[] | null | undefined;
|
|
2057
|
+
};
|
|
2058
|
+
}>, z.ZodObject<{
|
|
2059
|
+
data: z.ZodObject<{
|
|
2060
|
+
post: z.ZodObject<{
|
|
2061
|
+
platformId: z.ZodString;
|
|
2062
|
+
platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2063
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2064
|
+
post: z.ZodObject<{
|
|
2065
|
+
brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2066
|
+
catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2067
|
+
catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2068
|
+
colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2069
|
+
colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
2070
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2071
|
+
measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2072
|
+
measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2073
|
+
packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2074
|
+
photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2075
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2076
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2077
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2078
|
+
sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2079
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2080
|
+
statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2081
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2082
|
+
isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2083
|
+
isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2084
|
+
availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2085
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
2086
|
+
manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2087
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2088
|
+
}, "strip", z.ZodTypeAny, {
|
|
2089
|
+
status?: string | null | undefined;
|
|
2090
|
+
price?: number | null | undefined;
|
|
2091
|
+
currency?: string | null | undefined;
|
|
2092
|
+
brand?: string | null | undefined;
|
|
2093
|
+
catalog?: string | null | undefined;
|
|
2094
|
+
catalogId?: number | null | undefined;
|
|
2095
|
+
colors?: string[] | null | undefined;
|
|
2096
|
+
colorIds?: number[] | null | undefined;
|
|
2097
|
+
description?: string | null | undefined;
|
|
2098
|
+
measurementLength?: number | null | undefined;
|
|
2099
|
+
measurementWidth?: number | null | undefined;
|
|
2100
|
+
packageSizeId?: number | null | undefined;
|
|
2101
|
+
photoUrls?: string[] | null | undefined;
|
|
2102
|
+
size?: string | null | undefined;
|
|
2103
|
+
sizeId?: number | null | undefined;
|
|
2104
|
+
statusId?: number | null | undefined;
|
|
2105
|
+
title?: string | null | undefined;
|
|
2106
|
+
isDraft?: boolean | null | undefined;
|
|
2107
|
+
isArchived?: boolean | null | undefined;
|
|
2108
|
+
availableQuantity?: number | null | undefined;
|
|
2109
|
+
material?: number[] | null | undefined;
|
|
2110
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2111
|
+
labels?: string[] | null | undefined;
|
|
2112
|
+
}, {
|
|
2113
|
+
status?: string | null | undefined;
|
|
2114
|
+
price?: number | null | undefined;
|
|
2115
|
+
currency?: string | null | undefined;
|
|
2116
|
+
brand?: string | null | undefined;
|
|
2117
|
+
catalog?: string | null | undefined;
|
|
2118
|
+
catalogId?: number | null | undefined;
|
|
2119
|
+
colors?: string[] | null | undefined;
|
|
2120
|
+
colorIds?: number[] | null | undefined;
|
|
2121
|
+
description?: string | null | undefined;
|
|
2122
|
+
measurementLength?: number | null | undefined;
|
|
2123
|
+
measurementWidth?: number | null | undefined;
|
|
2124
|
+
packageSizeId?: number | null | undefined;
|
|
2125
|
+
photoUrls?: string[] | null | undefined;
|
|
2126
|
+
size?: string | null | undefined;
|
|
2127
|
+
sizeId?: number | null | undefined;
|
|
2128
|
+
statusId?: number | null | undefined;
|
|
2129
|
+
title?: string | null | undefined;
|
|
2130
|
+
isDraft?: boolean | null | undefined;
|
|
2131
|
+
isArchived?: boolean | null | undefined;
|
|
2132
|
+
availableQuantity?: number | null | undefined;
|
|
2133
|
+
material?: number[] | null | undefined;
|
|
2134
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2135
|
+
labels?: string[] | null | undefined;
|
|
2136
|
+
}>;
|
|
2137
|
+
}, "strip", z.ZodTypeAny, {
|
|
2138
|
+
platformId: string;
|
|
2139
|
+
post: {
|
|
2140
|
+
status?: string | null | undefined;
|
|
2141
|
+
price?: number | null | undefined;
|
|
2142
|
+
currency?: string | null | undefined;
|
|
2143
|
+
brand?: string | null | undefined;
|
|
2144
|
+
catalog?: string | null | undefined;
|
|
2145
|
+
catalogId?: number | null | undefined;
|
|
2146
|
+
colors?: string[] | null | undefined;
|
|
2147
|
+
colorIds?: number[] | null | undefined;
|
|
2148
|
+
description?: string | null | undefined;
|
|
2149
|
+
measurementLength?: number | null | undefined;
|
|
2150
|
+
measurementWidth?: number | null | undefined;
|
|
2151
|
+
packageSizeId?: number | null | undefined;
|
|
2152
|
+
photoUrls?: string[] | null | undefined;
|
|
2153
|
+
size?: string | null | undefined;
|
|
2154
|
+
sizeId?: number | null | undefined;
|
|
2155
|
+
statusId?: number | null | undefined;
|
|
2156
|
+
title?: string | null | undefined;
|
|
2157
|
+
isDraft?: boolean | null | undefined;
|
|
2158
|
+
isArchived?: boolean | null | undefined;
|
|
2159
|
+
availableQuantity?: number | null | undefined;
|
|
2160
|
+
material?: number[] | null | undefined;
|
|
2161
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2162
|
+
labels?: string[] | null | undefined;
|
|
2163
|
+
};
|
|
2164
|
+
createdAt?: Date | null | undefined;
|
|
2165
|
+
platformUrl?: string | null | undefined;
|
|
2166
|
+
}, {
|
|
2167
|
+
platformId: string;
|
|
2168
|
+
post: {
|
|
2169
|
+
status?: string | null | undefined;
|
|
2170
|
+
price?: number | null | undefined;
|
|
2171
|
+
currency?: string | null | undefined;
|
|
2172
|
+
brand?: string | null | undefined;
|
|
2173
|
+
catalog?: string | null | undefined;
|
|
2174
|
+
catalogId?: number | null | undefined;
|
|
2175
|
+
colors?: string[] | null | undefined;
|
|
2176
|
+
colorIds?: number[] | null | undefined;
|
|
2177
|
+
description?: string | null | undefined;
|
|
2178
|
+
measurementLength?: number | null | undefined;
|
|
2179
|
+
measurementWidth?: number | null | undefined;
|
|
2180
|
+
packageSizeId?: number | null | undefined;
|
|
2181
|
+
photoUrls?: string[] | null | undefined;
|
|
2182
|
+
size?: string | null | undefined;
|
|
2183
|
+
sizeId?: number | null | undefined;
|
|
2184
|
+
statusId?: number | null | undefined;
|
|
2185
|
+
title?: string | null | undefined;
|
|
2186
|
+
isDraft?: boolean | null | undefined;
|
|
2187
|
+
isArchived?: boolean | null | undefined;
|
|
2188
|
+
availableQuantity?: number | null | undefined;
|
|
2189
|
+
material?: number[] | null | undefined;
|
|
2190
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2191
|
+
labels?: string[] | null | undefined;
|
|
2192
|
+
};
|
|
2193
|
+
createdAt?: Date | null | undefined;
|
|
2194
|
+
platformUrl?: string | null | undefined;
|
|
2195
|
+
}>;
|
|
2196
|
+
}, "strip", z.ZodTypeAny, {
|
|
2197
|
+
post: {
|
|
2198
|
+
platformId: string;
|
|
2199
|
+
post: {
|
|
2200
|
+
status?: string | null | undefined;
|
|
2201
|
+
price?: number | null | undefined;
|
|
2202
|
+
currency?: string | null | undefined;
|
|
2203
|
+
brand?: string | null | undefined;
|
|
2204
|
+
catalog?: string | null | undefined;
|
|
2205
|
+
catalogId?: number | null | undefined;
|
|
2206
|
+
colors?: string[] | null | undefined;
|
|
2207
|
+
colorIds?: number[] | null | undefined;
|
|
2208
|
+
description?: string | null | undefined;
|
|
2209
|
+
measurementLength?: number | null | undefined;
|
|
2210
|
+
measurementWidth?: number | null | undefined;
|
|
2211
|
+
packageSizeId?: number | null | undefined;
|
|
2212
|
+
photoUrls?: string[] | null | undefined;
|
|
2213
|
+
size?: string | null | undefined;
|
|
2214
|
+
sizeId?: number | null | undefined;
|
|
2215
|
+
statusId?: number | null | undefined;
|
|
2216
|
+
title?: string | null | undefined;
|
|
2217
|
+
isDraft?: boolean | null | undefined;
|
|
2218
|
+
isArchived?: boolean | null | undefined;
|
|
2219
|
+
availableQuantity?: number | null | undefined;
|
|
2220
|
+
material?: number[] | null | undefined;
|
|
2221
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2222
|
+
labels?: string[] | null | undefined;
|
|
2223
|
+
};
|
|
2224
|
+
createdAt?: Date | null | undefined;
|
|
2225
|
+
platformUrl?: string | null | undefined;
|
|
2226
|
+
};
|
|
2227
|
+
}, {
|
|
2228
|
+
post: {
|
|
2229
|
+
platformId: string;
|
|
2230
|
+
post: {
|
|
2231
|
+
status?: string | null | undefined;
|
|
2232
|
+
price?: number | null | undefined;
|
|
2233
|
+
currency?: string | null | undefined;
|
|
2234
|
+
brand?: string | null | undefined;
|
|
2235
|
+
catalog?: string | null | undefined;
|
|
2236
|
+
catalogId?: number | null | undefined;
|
|
2237
|
+
colors?: string[] | null | undefined;
|
|
2238
|
+
colorIds?: number[] | null | undefined;
|
|
2239
|
+
description?: string | null | undefined;
|
|
2240
|
+
measurementLength?: number | null | undefined;
|
|
2241
|
+
measurementWidth?: number | null | undefined;
|
|
2242
|
+
packageSizeId?: number | null | undefined;
|
|
2243
|
+
photoUrls?: string[] | null | undefined;
|
|
2244
|
+
size?: string | null | undefined;
|
|
2245
|
+
sizeId?: number | null | undefined;
|
|
2246
|
+
statusId?: number | null | undefined;
|
|
2247
|
+
title?: string | null | undefined;
|
|
2248
|
+
isDraft?: boolean | null | undefined;
|
|
2249
|
+
isArchived?: boolean | null | undefined;
|
|
2250
|
+
availableQuantity?: number | null | undefined;
|
|
2251
|
+
material?: number[] | null | undefined;
|
|
2252
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2253
|
+
labels?: string[] | null | undefined;
|
|
2254
|
+
};
|
|
2255
|
+
createdAt?: Date | null | undefined;
|
|
2256
|
+
platformUrl?: string | null | undefined;
|
|
2257
|
+
};
|
|
2258
|
+
}>;
|
|
2259
|
+
type: z.ZodLiteral<"IMPORTED">;
|
|
2260
|
+
}, "strip", z.ZodTypeAny, {
|
|
2261
|
+
type: "IMPORTED";
|
|
2262
|
+
data: {
|
|
2263
|
+
post: {
|
|
2264
|
+
platformId: string;
|
|
2265
|
+
post: {
|
|
2266
|
+
status?: string | null | undefined;
|
|
2267
|
+
price?: number | null | undefined;
|
|
2268
|
+
currency?: string | null | undefined;
|
|
2269
|
+
brand?: string | null | undefined;
|
|
2270
|
+
catalog?: string | null | undefined;
|
|
2271
|
+
catalogId?: number | null | undefined;
|
|
2272
|
+
colors?: string[] | null | undefined;
|
|
2273
|
+
colorIds?: number[] | null | undefined;
|
|
2274
|
+
description?: string | null | undefined;
|
|
2275
|
+
measurementLength?: number | null | undefined;
|
|
2276
|
+
measurementWidth?: number | null | undefined;
|
|
2277
|
+
packageSizeId?: number | null | undefined;
|
|
2278
|
+
photoUrls?: string[] | null | undefined;
|
|
2279
|
+
size?: string | null | undefined;
|
|
2280
|
+
sizeId?: number | null | undefined;
|
|
2281
|
+
statusId?: number | null | undefined;
|
|
2282
|
+
title?: string | null | undefined;
|
|
2283
|
+
isDraft?: boolean | null | undefined;
|
|
2284
|
+
isArchived?: boolean | null | undefined;
|
|
2285
|
+
availableQuantity?: number | null | undefined;
|
|
2286
|
+
material?: number[] | null | undefined;
|
|
2287
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2288
|
+
labels?: string[] | null | undefined;
|
|
2289
|
+
};
|
|
2290
|
+
createdAt?: Date | null | undefined;
|
|
2291
|
+
platformUrl?: string | null | undefined;
|
|
2292
|
+
};
|
|
2293
|
+
};
|
|
2294
|
+
}, {
|
|
2295
|
+
type: "IMPORTED";
|
|
2296
|
+
data: {
|
|
2297
|
+
post: {
|
|
2298
|
+
platformId: string;
|
|
2299
|
+
post: {
|
|
2300
|
+
status?: string | null | undefined;
|
|
2301
|
+
price?: number | null | undefined;
|
|
2302
|
+
currency?: string | null | undefined;
|
|
2303
|
+
brand?: string | null | undefined;
|
|
2304
|
+
catalog?: string | null | undefined;
|
|
2305
|
+
catalogId?: number | null | undefined;
|
|
2306
|
+
colors?: string[] | null | undefined;
|
|
2307
|
+
colorIds?: number[] | null | undefined;
|
|
2308
|
+
description?: string | null | undefined;
|
|
2309
|
+
measurementLength?: number | null | undefined;
|
|
2310
|
+
measurementWidth?: number | null | undefined;
|
|
2311
|
+
packageSizeId?: number | null | undefined;
|
|
2312
|
+
photoUrls?: string[] | null | undefined;
|
|
2313
|
+
size?: string | null | undefined;
|
|
2314
|
+
sizeId?: number | null | undefined;
|
|
2315
|
+
statusId?: number | null | undefined;
|
|
2316
|
+
title?: string | null | undefined;
|
|
2317
|
+
isDraft?: boolean | null | undefined;
|
|
2318
|
+
isArchived?: boolean | null | undefined;
|
|
2319
|
+
availableQuantity?: number | null | undefined;
|
|
2320
|
+
material?: number[] | null | undefined;
|
|
2321
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2322
|
+
labels?: string[] | null | undefined;
|
|
2323
|
+
};
|
|
2324
|
+
createdAt?: Date | null | undefined;
|
|
2325
|
+
platformUrl?: string | null | undefined;
|
|
2326
|
+
};
|
|
2327
|
+
};
|
|
2328
|
+
}>, z.ZodObject<{
|
|
2329
|
+
data: z.ZodObject<{
|
|
2330
|
+
accountId: z.ZodString;
|
|
2331
|
+
}, "strip", z.ZodTypeAny, {
|
|
2332
|
+
accountId: string;
|
|
2333
|
+
}, {
|
|
2334
|
+
accountId: string;
|
|
2335
|
+
}>;
|
|
2336
|
+
type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
|
|
2337
|
+
}, "strip", z.ZodTypeAny, {
|
|
2338
|
+
type: "LIFECYCLE_COMPLETED";
|
|
2339
|
+
data: {
|
|
2340
|
+
accountId: string;
|
|
2341
|
+
};
|
|
2342
|
+
}, {
|
|
2343
|
+
type: "LIFECYCLE_COMPLETED";
|
|
2344
|
+
data: {
|
|
2345
|
+
accountId: string;
|
|
2346
|
+
};
|
|
2347
|
+
}>, z.ZodObject<{
|
|
2348
|
+
data: z.ZodObject<{
|
|
2349
|
+
accountId: z.ZodString;
|
|
2350
|
+
caseId: z.ZodString;
|
|
2351
|
+
}, "strip", z.ZodTypeAny, {
|
|
2352
|
+
accountId: string;
|
|
2353
|
+
caseId: string;
|
|
2354
|
+
}, {
|
|
2355
|
+
accountId: string;
|
|
2356
|
+
caseId: string;
|
|
2357
|
+
}>;
|
|
2358
|
+
type: z.ZodLiteral<"LIFECYCLE_STARTED">;
|
|
2359
|
+
}, "strip", z.ZodTypeAny, {
|
|
2360
|
+
type: "LIFECYCLE_STARTED";
|
|
2361
|
+
data: {
|
|
2362
|
+
accountId: string;
|
|
2363
|
+
caseId: string;
|
|
2364
|
+
};
|
|
2365
|
+
}, {
|
|
2366
|
+
type: "LIFECYCLE_STARTED";
|
|
2367
|
+
data: {
|
|
2368
|
+
accountId: string;
|
|
2369
|
+
caseId: string;
|
|
2370
|
+
};
|
|
2371
|
+
}>, z.ZodObject<{
|
|
2372
|
+
data: z.ZodObject<{
|
|
2373
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2374
|
+
}, "strip", z.ZodTypeAny, {
|
|
2375
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2376
|
+
}, {
|
|
2377
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2378
|
+
}>;
|
|
2379
|
+
type: z.ZodLiteral<"PUBLISHED">;
|
|
2380
|
+
}, "strip", z.ZodTypeAny, {
|
|
2381
|
+
type: "PUBLISHED";
|
|
2382
|
+
data: {
|
|
2383
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2384
|
+
};
|
|
2385
|
+
}, {
|
|
2386
|
+
type: "PUBLISHED";
|
|
2387
|
+
data: {
|
|
2388
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2389
|
+
};
|
|
2390
|
+
}>, z.ZodObject<{
|
|
2391
|
+
data: z.ZodObject<{
|
|
2392
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2393
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2394
|
+
priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2395
|
+
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
2396
|
+
value: z.ZodNumber;
|
|
2397
|
+
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
2398
|
+
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2399
|
+
maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2400
|
+
}, "strip", z.ZodTypeAny, {
|
|
2401
|
+
value: number;
|
|
2402
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2403
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2404
|
+
roundStep?: number | null | undefined;
|
|
2405
|
+
maxRounds?: number | null | undefined;
|
|
2406
|
+
}, {
|
|
2407
|
+
value: number;
|
|
2408
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2409
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2410
|
+
roundStep?: number | null | undefined;
|
|
2411
|
+
maxRounds?: number | null | undefined;
|
|
2412
|
+
}>>>;
|
|
2413
|
+
isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2414
|
+
targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2415
|
+
}, "strip", z.ZodTypeAny, {
|
|
2416
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2417
|
+
publishingDate?: Date | null | undefined;
|
|
2418
|
+
priceDropPayload?: {
|
|
2419
|
+
value: number;
|
|
2420
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2421
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2422
|
+
roundStep?: number | null | undefined;
|
|
2423
|
+
maxRounds?: number | null | undefined;
|
|
2424
|
+
} | null | undefined;
|
|
2425
|
+
isTransfer?: boolean | null | undefined;
|
|
2426
|
+
targetAccountId?: string | null | undefined;
|
|
2427
|
+
}, {
|
|
2428
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2429
|
+
publishingDate?: Date | null | undefined;
|
|
2430
|
+
priceDropPayload?: {
|
|
2431
|
+
value: number;
|
|
2432
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2433
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2434
|
+
roundStep?: number | null | undefined;
|
|
2435
|
+
maxRounds?: number | null | undefined;
|
|
2436
|
+
} | null | undefined;
|
|
2437
|
+
isTransfer?: boolean | null | undefined;
|
|
2438
|
+
targetAccountId?: string | null | undefined;
|
|
2439
|
+
}>;
|
|
2440
|
+
type: z.ZodLiteral<"REPUBLISHING">;
|
|
2441
|
+
}, "strip", z.ZodTypeAny, {
|
|
2442
|
+
type: "REPUBLISHING";
|
|
2443
|
+
data: {
|
|
2444
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2445
|
+
publishingDate?: Date | null | undefined;
|
|
2446
|
+
priceDropPayload?: {
|
|
2447
|
+
value: number;
|
|
2448
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2449
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2450
|
+
roundStep?: number | null | undefined;
|
|
2451
|
+
maxRounds?: number | null | undefined;
|
|
2452
|
+
} | null | undefined;
|
|
2453
|
+
isTransfer?: boolean | null | undefined;
|
|
2454
|
+
targetAccountId?: string | null | undefined;
|
|
2455
|
+
};
|
|
2456
|
+
}, {
|
|
2457
|
+
type: "REPUBLISHING";
|
|
2458
|
+
data: {
|
|
2459
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2460
|
+
publishingDate?: Date | null | undefined;
|
|
2461
|
+
priceDropPayload?: {
|
|
2462
|
+
value: number;
|
|
2463
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2464
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2465
|
+
roundStep?: number | null | undefined;
|
|
2466
|
+
maxRounds?: number | null | undefined;
|
|
2467
|
+
} | null | undefined;
|
|
2468
|
+
isTransfer?: boolean | null | undefined;
|
|
2469
|
+
targetAccountId?: string | null | undefined;
|
|
2470
|
+
};
|
|
2471
|
+
}>, z.ZodObject<{
|
|
2472
|
+
data: z.ZodObject<{
|
|
2473
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2474
|
+
attemptNumber: z.ZodNumber;
|
|
2475
|
+
maxAttempts: z.ZodNumber;
|
|
2476
|
+
previousHistoryId: z.ZodString;
|
|
2477
|
+
originalFailureDate: z.ZodDate;
|
|
2478
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2479
|
+
field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
|
|
2480
|
+
autoFixable: z.ZodBoolean;
|
|
2481
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2482
|
+
}, "strip", z.ZodTypeAny, {
|
|
2483
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2484
|
+
autoFixable: boolean;
|
|
2485
|
+
error?: string | null | undefined;
|
|
2486
|
+
}, {
|
|
2487
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2488
|
+
autoFixable: boolean;
|
|
2489
|
+
error?: string | null | undefined;
|
|
2490
|
+
}>, "many">>>;
|
|
2491
|
+
priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2492
|
+
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
2493
|
+
value: z.ZodNumber;
|
|
2494
|
+
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
2495
|
+
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2496
|
+
maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2497
|
+
}, "strip", z.ZodTypeAny, {
|
|
2498
|
+
value: number;
|
|
2499
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2500
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2501
|
+
roundStep?: number | null | undefined;
|
|
2502
|
+
maxRounds?: number | null | undefined;
|
|
2503
|
+
}, {
|
|
2504
|
+
value: number;
|
|
2505
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2506
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2507
|
+
roundStep?: number | null | undefined;
|
|
2508
|
+
maxRounds?: number | null | undefined;
|
|
2509
|
+
}>>>;
|
|
2510
|
+
}, "strip", z.ZodTypeAny, {
|
|
2511
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2512
|
+
attemptNumber: number;
|
|
2513
|
+
maxAttempts: number;
|
|
2514
|
+
previousHistoryId: string;
|
|
2515
|
+
originalFailureDate: Date;
|
|
2516
|
+
fields?: {
|
|
2517
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2518
|
+
autoFixable: boolean;
|
|
2519
|
+
error?: string | null | undefined;
|
|
2520
|
+
}[] | null | undefined;
|
|
2521
|
+
priceDropPayload?: {
|
|
2522
|
+
value: number;
|
|
2523
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2524
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2525
|
+
roundStep?: number | null | undefined;
|
|
2526
|
+
maxRounds?: number | null | undefined;
|
|
2527
|
+
} | null | undefined;
|
|
2528
|
+
}, {
|
|
2529
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2530
|
+
attemptNumber: number;
|
|
2531
|
+
maxAttempts: number;
|
|
2532
|
+
previousHistoryId: string;
|
|
2533
|
+
originalFailureDate: Date;
|
|
2534
|
+
fields?: {
|
|
2535
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2536
|
+
autoFixable: boolean;
|
|
2537
|
+
error?: string | null | undefined;
|
|
2538
|
+
}[] | null | undefined;
|
|
2539
|
+
priceDropPayload?: {
|
|
2540
|
+
value: number;
|
|
2541
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2542
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2543
|
+
roundStep?: number | null | undefined;
|
|
2544
|
+
maxRounds?: number | null | undefined;
|
|
2545
|
+
} | null | undefined;
|
|
2546
|
+
}>;
|
|
2547
|
+
type: z.ZodLiteral<"REPUBLISHING_RETRY">;
|
|
2548
|
+
}, "strip", z.ZodTypeAny, {
|
|
2549
|
+
type: "REPUBLISHING_RETRY";
|
|
2550
|
+
data: {
|
|
2551
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2552
|
+
attemptNumber: number;
|
|
2553
|
+
maxAttempts: number;
|
|
2554
|
+
previousHistoryId: string;
|
|
2555
|
+
originalFailureDate: Date;
|
|
2556
|
+
fields?: {
|
|
2557
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2558
|
+
autoFixable: boolean;
|
|
2559
|
+
error?: string | null | undefined;
|
|
2560
|
+
}[] | null | undefined;
|
|
2561
|
+
priceDropPayload?: {
|
|
2562
|
+
value: number;
|
|
2563
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2564
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2565
|
+
roundStep?: number | null | undefined;
|
|
2566
|
+
maxRounds?: number | null | undefined;
|
|
2567
|
+
} | null | undefined;
|
|
2568
|
+
};
|
|
2569
|
+
}, {
|
|
2570
|
+
type: "REPUBLISHING_RETRY";
|
|
2571
|
+
data: {
|
|
2572
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2573
|
+
attemptNumber: number;
|
|
2574
|
+
maxAttempts: number;
|
|
2575
|
+
previousHistoryId: string;
|
|
2576
|
+
originalFailureDate: Date;
|
|
2577
|
+
fields?: {
|
|
2578
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2579
|
+
autoFixable: boolean;
|
|
2580
|
+
error?: string | null | undefined;
|
|
2581
|
+
}[] | null | undefined;
|
|
2582
|
+
priceDropPayload?: {
|
|
2583
|
+
value: number;
|
|
2584
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2585
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2586
|
+
roundStep?: number | null | undefined;
|
|
2587
|
+
maxRounds?: number | null | undefined;
|
|
2588
|
+
} | null | undefined;
|
|
2589
|
+
};
|
|
2590
|
+
}>, z.ZodObject<{
|
|
2591
|
+
data: z.ZodObject<{
|
|
2592
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2593
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2594
|
+
}, "strip", z.ZodTypeAny, {
|
|
2595
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2596
|
+
publishingDate?: Date | null | undefined;
|
|
2597
|
+
}, {
|
|
2598
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2599
|
+
publishingDate?: Date | null | undefined;
|
|
2600
|
+
}>;
|
|
2601
|
+
type: z.ZodLiteral<"SCHEDULED">;
|
|
2602
|
+
}, "strip", z.ZodTypeAny, {
|
|
2603
|
+
type: "SCHEDULED";
|
|
2604
|
+
data: {
|
|
2605
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2606
|
+
publishingDate?: Date | null | undefined;
|
|
2607
|
+
};
|
|
2608
|
+
}, {
|
|
2609
|
+
type: "SCHEDULED";
|
|
2610
|
+
data: {
|
|
2611
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2612
|
+
publishingDate?: Date | null | undefined;
|
|
2613
|
+
};
|
|
2614
|
+
}>, z.ZodObject<{
|
|
2615
|
+
data: z.ZodObject<{
|
|
2616
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2617
|
+
attemptNumber: z.ZodNumber;
|
|
2618
|
+
maxAttempts: z.ZodNumber;
|
|
2619
|
+
previousHistoryId: z.ZodString;
|
|
2620
|
+
originalFailureDate: z.ZodDate;
|
|
2621
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2622
|
+
field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
|
|
2623
|
+
autoFixable: z.ZodBoolean;
|
|
2624
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2625
|
+
}, "strip", z.ZodTypeAny, {
|
|
2626
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2627
|
+
autoFixable: boolean;
|
|
2628
|
+
error?: string | null | undefined;
|
|
2629
|
+
}, {
|
|
2630
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2631
|
+
autoFixable: boolean;
|
|
2632
|
+
error?: string | null | undefined;
|
|
2633
|
+
}>, "many">>>;
|
|
2634
|
+
}, "strip", z.ZodTypeAny, {
|
|
2635
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2636
|
+
attemptNumber: number;
|
|
2637
|
+
maxAttempts: number;
|
|
2638
|
+
previousHistoryId: string;
|
|
2639
|
+
originalFailureDate: Date;
|
|
2640
|
+
fields?: {
|
|
2641
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2642
|
+
autoFixable: boolean;
|
|
2643
|
+
error?: string | null | undefined;
|
|
2644
|
+
}[] | null | undefined;
|
|
2645
|
+
}, {
|
|
2646
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2647
|
+
attemptNumber: number;
|
|
2648
|
+
maxAttempts: number;
|
|
2649
|
+
previousHistoryId: string;
|
|
2650
|
+
originalFailureDate: Date;
|
|
2651
|
+
fields?: {
|
|
2652
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2653
|
+
autoFixable: boolean;
|
|
2654
|
+
error?: string | null | undefined;
|
|
2655
|
+
}[] | null | undefined;
|
|
2656
|
+
}>;
|
|
2657
|
+
type: z.ZodLiteral<"SCHEDULED_RETRY">;
|
|
2658
|
+
}, "strip", z.ZodTypeAny, {
|
|
2659
|
+
type: "SCHEDULED_RETRY";
|
|
2660
|
+
data: {
|
|
2661
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2662
|
+
attemptNumber: number;
|
|
2663
|
+
maxAttempts: number;
|
|
2664
|
+
previousHistoryId: string;
|
|
2665
|
+
originalFailureDate: Date;
|
|
2666
|
+
fields?: {
|
|
2667
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2668
|
+
autoFixable: boolean;
|
|
2669
|
+
error?: string | null | undefined;
|
|
2670
|
+
}[] | null | undefined;
|
|
2671
|
+
};
|
|
2672
|
+
}, {
|
|
2673
|
+
type: "SCHEDULED_RETRY";
|
|
2674
|
+
data: {
|
|
2675
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2676
|
+
attemptNumber: number;
|
|
2677
|
+
maxAttempts: number;
|
|
2678
|
+
previousHistoryId: string;
|
|
2679
|
+
originalFailureDate: Date;
|
|
2680
|
+
fields?: {
|
|
2681
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2682
|
+
autoFixable: boolean;
|
|
2683
|
+
error?: string | null | undefined;
|
|
2684
|
+
}[] | null | undefined;
|
|
2685
|
+
};
|
|
2686
|
+
}>]>>>;
|
|
2687
|
+
createdAt: z.ZodDate;
|
|
2688
|
+
targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2689
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2690
|
+
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2691
|
+
}, "strip", z.ZodTypeAny, {
|
|
2692
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
2693
|
+
id: string;
|
|
2694
|
+
createdAt: Date;
|
|
2695
|
+
itemId: string | number;
|
|
2696
|
+
data?: {
|
|
2697
|
+
type: "ACTION_CANCELED";
|
|
2698
|
+
data: {
|
|
2699
|
+
targetItemHistoryId: string;
|
|
2700
|
+
};
|
|
2701
|
+
} | {
|
|
2702
|
+
type: "BUYER_PAID";
|
|
2703
|
+
data: {
|
|
2704
|
+
soldAccountId: string;
|
|
2705
|
+
soldOrderId: string;
|
|
2706
|
+
soldConversationId?: string | null | undefined;
|
|
2707
|
+
};
|
|
2708
|
+
} | {
|
|
2709
|
+
type: "DELIVERED";
|
|
2710
|
+
data: {
|
|
2711
|
+
soldAccountId: string;
|
|
2712
|
+
soldOrderId: string;
|
|
2713
|
+
soldConversationId?: string | null | undefined;
|
|
2714
|
+
};
|
|
2715
|
+
} | {
|
|
2716
|
+
type: "EMPTY";
|
|
2717
|
+
} | {
|
|
2718
|
+
type: "FAILED_TO_PUBLISH";
|
|
2719
|
+
data: {
|
|
2720
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2721
|
+
accountId?: string | null | undefined;
|
|
2722
|
+
reason?: string | null | undefined;
|
|
2723
|
+
fields?: {
|
|
2724
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2725
|
+
autoFixable: boolean;
|
|
2726
|
+
error?: string | null | undefined;
|
|
2727
|
+
}[] | null | undefined;
|
|
2728
|
+
itemHistoryId?: string | null | undefined;
|
|
2729
|
+
};
|
|
2730
|
+
} | {
|
|
2731
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
2732
|
+
data: {
|
|
2733
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2734
|
+
variations?: {
|
|
2735
|
+
fileId: string;
|
|
2736
|
+
seed: number;
|
|
2737
|
+
phash: string;
|
|
2738
|
+
distanceOriginal: number;
|
|
2739
|
+
originalImageUrl: string;
|
|
2740
|
+
originalPhash: string;
|
|
2741
|
+
}[] | null | undefined;
|
|
2742
|
+
originalPhashes?: string[] | null | undefined;
|
|
2743
|
+
};
|
|
2744
|
+
} | {
|
|
2745
|
+
type: "IMPORTED";
|
|
2746
|
+
data: {
|
|
2747
|
+
post: {
|
|
2748
|
+
platformId: string;
|
|
2749
|
+
post: {
|
|
2750
|
+
status?: string | null | undefined;
|
|
2751
|
+
price?: number | null | undefined;
|
|
2752
|
+
currency?: string | null | undefined;
|
|
2753
|
+
brand?: string | null | undefined;
|
|
2754
|
+
catalog?: string | null | undefined;
|
|
2755
|
+
catalogId?: number | null | undefined;
|
|
2756
|
+
colors?: string[] | null | undefined;
|
|
2757
|
+
colorIds?: number[] | null | undefined;
|
|
2758
|
+
description?: string | null | undefined;
|
|
2759
|
+
measurementLength?: number | null | undefined;
|
|
2760
|
+
measurementWidth?: number | null | undefined;
|
|
2761
|
+
packageSizeId?: number | null | undefined;
|
|
2762
|
+
photoUrls?: string[] | null | undefined;
|
|
2763
|
+
size?: string | null | undefined;
|
|
2764
|
+
sizeId?: number | null | undefined;
|
|
2765
|
+
statusId?: number | null | undefined;
|
|
2766
|
+
title?: string | null | undefined;
|
|
2767
|
+
isDraft?: boolean | null | undefined;
|
|
2768
|
+
isArchived?: boolean | null | undefined;
|
|
2769
|
+
availableQuantity?: number | null | undefined;
|
|
2770
|
+
material?: number[] | null | undefined;
|
|
2771
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2772
|
+
labels?: string[] | null | undefined;
|
|
2773
|
+
};
|
|
2774
|
+
createdAt?: Date | null | undefined;
|
|
2775
|
+
platformUrl?: string | null | undefined;
|
|
2776
|
+
};
|
|
2777
|
+
};
|
|
2778
|
+
} | {
|
|
2779
|
+
type: "LIFECYCLE_COMPLETED";
|
|
2780
|
+
data: {
|
|
2781
|
+
accountId: string;
|
|
2782
|
+
};
|
|
2783
|
+
} | {
|
|
2784
|
+
type: "LIFECYCLE_STARTED";
|
|
2785
|
+
data: {
|
|
2786
|
+
accountId: string;
|
|
2787
|
+
caseId: string;
|
|
2788
|
+
};
|
|
2789
|
+
} | {
|
|
2790
|
+
type: "PUBLISHED";
|
|
2791
|
+
data: {
|
|
2792
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2793
|
+
};
|
|
2794
|
+
} | {
|
|
2795
|
+
type: "REPUBLISHING";
|
|
2796
|
+
data: {
|
|
2797
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2798
|
+
publishingDate?: Date | null | undefined;
|
|
2799
|
+
priceDropPayload?: {
|
|
2800
|
+
value: number;
|
|
2801
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2802
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2803
|
+
roundStep?: number | null | undefined;
|
|
2804
|
+
maxRounds?: number | null | undefined;
|
|
2805
|
+
} | null | undefined;
|
|
2806
|
+
isTransfer?: boolean | null | undefined;
|
|
2807
|
+
targetAccountId?: string | null | undefined;
|
|
2808
|
+
};
|
|
2809
|
+
} | {
|
|
2810
|
+
type: "REPUBLISHING_RETRY";
|
|
2811
|
+
data: {
|
|
2812
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2813
|
+
attemptNumber: number;
|
|
2814
|
+
maxAttempts: number;
|
|
2815
|
+
previousHistoryId: string;
|
|
2816
|
+
originalFailureDate: Date;
|
|
2817
|
+
fields?: {
|
|
2818
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2819
|
+
autoFixable: boolean;
|
|
2820
|
+
error?: string | null | undefined;
|
|
2821
|
+
}[] | null | undefined;
|
|
2822
|
+
priceDropPayload?: {
|
|
2823
|
+
value: number;
|
|
2824
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2825
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2826
|
+
roundStep?: number | null | undefined;
|
|
2827
|
+
maxRounds?: number | null | undefined;
|
|
2828
|
+
} | null | undefined;
|
|
2829
|
+
};
|
|
2830
|
+
} | {
|
|
2831
|
+
type: "SCHEDULED";
|
|
2832
|
+
data: {
|
|
2833
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2834
|
+
publishingDate?: Date | null | undefined;
|
|
2835
|
+
};
|
|
2836
|
+
} | {
|
|
2837
|
+
type: "SCHEDULED_RETRY";
|
|
2838
|
+
data: {
|
|
2839
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2840
|
+
attemptNumber: number;
|
|
2841
|
+
maxAttempts: number;
|
|
2842
|
+
previousHistoryId: string;
|
|
2843
|
+
originalFailureDate: Date;
|
|
2844
|
+
fields?: {
|
|
2845
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2846
|
+
autoFixable: boolean;
|
|
2847
|
+
error?: string | null | undefined;
|
|
2848
|
+
}[] | null | undefined;
|
|
2849
|
+
};
|
|
2850
|
+
} | null | undefined;
|
|
2851
|
+
accountId?: string | null | undefined;
|
|
2852
|
+
requestId?: string | null | undefined;
|
|
2853
|
+
targetDate?: Date | null | undefined;
|
|
2854
|
+
}, {
|
|
2855
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
2856
|
+
id: string;
|
|
2857
|
+
createdAt: Date;
|
|
2858
|
+
itemId: string | number;
|
|
2859
|
+
data?: {
|
|
2860
|
+
type: "ACTION_CANCELED";
|
|
2861
|
+
data: {
|
|
2862
|
+
targetItemHistoryId: string;
|
|
2863
|
+
};
|
|
2864
|
+
} | {
|
|
2865
|
+
type: "BUYER_PAID";
|
|
2866
|
+
data: {
|
|
2867
|
+
soldAccountId: string;
|
|
2868
|
+
soldOrderId: string;
|
|
2869
|
+
soldConversationId?: string | null | undefined;
|
|
2870
|
+
};
|
|
2871
|
+
} | {
|
|
2872
|
+
type: "DELIVERED";
|
|
2873
|
+
data: {
|
|
2874
|
+
soldAccountId: string;
|
|
2875
|
+
soldOrderId: string;
|
|
2876
|
+
soldConversationId?: string | null | undefined;
|
|
2877
|
+
};
|
|
2878
|
+
} | {
|
|
2879
|
+
type: "EMPTY";
|
|
2880
|
+
} | {
|
|
2881
|
+
type: "FAILED_TO_PUBLISH";
|
|
2882
|
+
data: {
|
|
2883
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2884
|
+
accountId?: string | null | undefined;
|
|
2885
|
+
reason?: string | null | undefined;
|
|
2886
|
+
fields?: {
|
|
2887
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2888
|
+
autoFixable: boolean;
|
|
2889
|
+
error?: string | null | undefined;
|
|
2890
|
+
}[] | null | undefined;
|
|
2891
|
+
itemHistoryId?: string | null | undefined;
|
|
2892
|
+
};
|
|
2893
|
+
} | {
|
|
2894
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
2895
|
+
data: {
|
|
2896
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2897
|
+
variations?: {
|
|
2898
|
+
fileId: string;
|
|
2899
|
+
seed: number;
|
|
2900
|
+
phash: string;
|
|
2901
|
+
distanceOriginal: number;
|
|
2902
|
+
originalImageUrl: string;
|
|
2903
|
+
originalPhash: string;
|
|
2904
|
+
}[] | null | undefined;
|
|
2905
|
+
originalPhashes?: string[] | null | undefined;
|
|
2906
|
+
};
|
|
2907
|
+
} | {
|
|
2908
|
+
type: "IMPORTED";
|
|
2909
|
+
data: {
|
|
2910
|
+
post: {
|
|
2911
|
+
platformId: string;
|
|
2912
|
+
post: {
|
|
2913
|
+
status?: string | null | undefined;
|
|
2914
|
+
price?: number | null | undefined;
|
|
2915
|
+
currency?: string | null | undefined;
|
|
2916
|
+
brand?: string | null | undefined;
|
|
2917
|
+
catalog?: string | null | undefined;
|
|
2918
|
+
catalogId?: number | null | undefined;
|
|
2919
|
+
colors?: string[] | null | undefined;
|
|
2920
|
+
colorIds?: number[] | null | undefined;
|
|
2921
|
+
description?: string | null | undefined;
|
|
2922
|
+
measurementLength?: number | null | undefined;
|
|
2923
|
+
measurementWidth?: number | null | undefined;
|
|
2924
|
+
packageSizeId?: number | null | undefined;
|
|
2925
|
+
photoUrls?: string[] | null | undefined;
|
|
2926
|
+
size?: string | null | undefined;
|
|
2927
|
+
sizeId?: number | null | undefined;
|
|
2928
|
+
statusId?: number | null | undefined;
|
|
2929
|
+
title?: string | null | undefined;
|
|
2930
|
+
isDraft?: boolean | null | undefined;
|
|
2931
|
+
isArchived?: boolean | null | undefined;
|
|
2932
|
+
availableQuantity?: number | null | undefined;
|
|
2933
|
+
material?: number[] | null | undefined;
|
|
2934
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2935
|
+
labels?: string[] | null | undefined;
|
|
2936
|
+
};
|
|
2937
|
+
createdAt?: Date | null | undefined;
|
|
2938
|
+
platformUrl?: string | null | undefined;
|
|
2939
|
+
};
|
|
2940
|
+
};
|
|
2941
|
+
} | {
|
|
2942
|
+
type: "LIFECYCLE_COMPLETED";
|
|
2943
|
+
data: {
|
|
2944
|
+
accountId: string;
|
|
2945
|
+
};
|
|
2946
|
+
} | {
|
|
2947
|
+
type: "LIFECYCLE_STARTED";
|
|
2948
|
+
data: {
|
|
2949
|
+
accountId: string;
|
|
2950
|
+
caseId: string;
|
|
2951
|
+
};
|
|
2952
|
+
} | {
|
|
2953
|
+
type: "PUBLISHED";
|
|
2954
|
+
data: {
|
|
2955
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2956
|
+
};
|
|
2957
|
+
} | {
|
|
2958
|
+
type: "REPUBLISHING";
|
|
2959
|
+
data: {
|
|
2960
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2961
|
+
publishingDate?: Date | null | undefined;
|
|
2962
|
+
priceDropPayload?: {
|
|
2963
|
+
value: number;
|
|
2964
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2965
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2966
|
+
roundStep?: number | null | undefined;
|
|
2967
|
+
maxRounds?: number | null | undefined;
|
|
2968
|
+
} | null | undefined;
|
|
2969
|
+
isTransfer?: boolean | null | undefined;
|
|
2970
|
+
targetAccountId?: string | null | undefined;
|
|
2971
|
+
};
|
|
2972
|
+
} | {
|
|
2973
|
+
type: "REPUBLISHING_RETRY";
|
|
2974
|
+
data: {
|
|
2975
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2976
|
+
attemptNumber: number;
|
|
2977
|
+
maxAttempts: number;
|
|
2978
|
+
previousHistoryId: string;
|
|
2979
|
+
originalFailureDate: Date;
|
|
2980
|
+
fields?: {
|
|
2981
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2982
|
+
autoFixable: boolean;
|
|
2983
|
+
error?: string | null | undefined;
|
|
2984
|
+
}[] | null | undefined;
|
|
2985
|
+
priceDropPayload?: {
|
|
2986
|
+
value: number;
|
|
2987
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2988
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2989
|
+
roundStep?: number | null | undefined;
|
|
2990
|
+
maxRounds?: number | null | undefined;
|
|
2991
|
+
} | null | undefined;
|
|
2992
|
+
};
|
|
2993
|
+
} | {
|
|
2994
|
+
type: "SCHEDULED";
|
|
2995
|
+
data: {
|
|
2996
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2997
|
+
publishingDate?: Date | null | undefined;
|
|
2998
|
+
};
|
|
2999
|
+
} | {
|
|
3000
|
+
type: "SCHEDULED_RETRY";
|
|
3001
|
+
data: {
|
|
3002
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3003
|
+
attemptNumber: number;
|
|
3004
|
+
maxAttempts: number;
|
|
3005
|
+
previousHistoryId: string;
|
|
3006
|
+
originalFailureDate: Date;
|
|
3007
|
+
fields?: {
|
|
3008
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3009
|
+
autoFixable: boolean;
|
|
3010
|
+
error?: string | null | undefined;
|
|
3011
|
+
}[] | null | undefined;
|
|
3012
|
+
};
|
|
3013
|
+
} | null | undefined;
|
|
3014
|
+
accountId?: string | null | undefined;
|
|
3015
|
+
requestId?: string | null | undefined;
|
|
3016
|
+
targetDate?: Date | null | undefined;
|
|
3017
|
+
}>, "many">>>;
|
|
3018
|
+
createdAt: z.ZodDate;
|
|
3019
|
+
updatedAt: z.ZodDate;
|
|
3020
|
+
}, "strip", z.ZodTypeAny, {
|
|
3021
|
+
userId: string | number;
|
|
3022
|
+
id: string | number;
|
|
3023
|
+
updatedAt: Date;
|
|
3024
|
+
name: string;
|
|
3025
|
+
createdAt: Date;
|
|
3026
|
+
sold: boolean;
|
|
3027
|
+
state?: number | null | undefined;
|
|
3028
|
+
colorIds?: number[] | null | undefined;
|
|
3029
|
+
description?: string | null | undefined;
|
|
3030
|
+
packageSizeId?: number | null | undefined;
|
|
3031
|
+
sizeId?: number | null | undefined;
|
|
3032
|
+
labels?: {
|
|
3033
|
+
itemId: string | number;
|
|
3034
|
+
labelId: string | number;
|
|
3035
|
+
label?: {
|
|
3036
|
+
id: string | number;
|
|
3037
|
+
name: string;
|
|
3038
|
+
createdAt: Date;
|
|
3039
|
+
isUserLabel: boolean;
|
|
3040
|
+
userId?: string | number | null | undefined;
|
|
3041
|
+
itemCount?: number | null | undefined;
|
|
3042
|
+
parentId?: unknown;
|
|
3043
|
+
} | null | undefined;
|
|
3044
|
+
}[] | null | undefined;
|
|
3045
|
+
files?: {
|
|
3046
|
+
itemId: string | number;
|
|
3047
|
+
fileId: string;
|
|
3048
|
+
index?: number | null | undefined;
|
|
3049
|
+
file?: {
|
|
3050
|
+
path: string;
|
|
3051
|
+
userId: string | number;
|
|
3052
|
+
id: string;
|
|
3053
|
+
createdAt: Date;
|
|
3054
|
+
signedUrl: string;
|
|
3055
|
+
} | null | undefined;
|
|
3056
|
+
}[] | null | undefined;
|
|
3057
|
+
fields?: {
|
|
3058
|
+
value: string;
|
|
3059
|
+
itemId: string | number;
|
|
3060
|
+
fieldId: string | number;
|
|
3061
|
+
}[] | null | undefined;
|
|
3062
|
+
sku?: string | null | undefined;
|
|
3063
|
+
categoryId?: number | null | undefined;
|
|
3064
|
+
brandId?: string | number | null | undefined;
|
|
3065
|
+
sex?: string | null | undefined;
|
|
3066
|
+
purchasePrice?: number | null | undefined;
|
|
3067
|
+
purchaseDate?: Date | null | undefined;
|
|
3068
|
+
purchasePlaceId?: string | number | null | undefined;
|
|
3069
|
+
purchased?: boolean | null | undefined;
|
|
3070
|
+
sellingPrice?: number | null | undefined;
|
|
3071
|
+
sellingDate?: Date | null | undefined;
|
|
3072
|
+
sellingPlaceId?: string | number | null | undefined;
|
|
3073
|
+
estimatedPrice?: number | null | undefined;
|
|
3074
|
+
fees?: {
|
|
3075
|
+
value: number;
|
|
3076
|
+
type: string;
|
|
3077
|
+
userId: string | number;
|
|
3078
|
+
id: string | number;
|
|
3079
|
+
updatedAt: Date;
|
|
3080
|
+
name: string;
|
|
3081
|
+
createdAt: Date;
|
|
3082
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
3083
|
+
startDate: Date;
|
|
3084
|
+
active: boolean;
|
|
3085
|
+
description?: string | null | undefined;
|
|
3086
|
+
itemId?: string | number | null | undefined;
|
|
3087
|
+
endDate?: Date | null | undefined;
|
|
3088
|
+
parentFeeId?: string | number | null | undefined;
|
|
3089
|
+
}[] | null | undefined;
|
|
3090
|
+
feesSum?: number | null | undefined;
|
|
3091
|
+
customerId?: string | number | null | undefined;
|
|
3092
|
+
customer?: {
|
|
3093
|
+
userId: string | number;
|
|
3094
|
+
id: string | number;
|
|
3095
|
+
email: string;
|
|
3096
|
+
firstName: string;
|
|
3097
|
+
lastName: string;
|
|
3098
|
+
birthDate: Date;
|
|
3099
|
+
idNumber: string;
|
|
3100
|
+
phone: string;
|
|
3101
|
+
iban: string;
|
|
3102
|
+
bic: string;
|
|
3103
|
+
phoneVerified: boolean;
|
|
3104
|
+
} | null | undefined;
|
|
3105
|
+
customerType?: string | null | undefined;
|
|
3106
|
+
customerPaid?: boolean | null | undefined;
|
|
3107
|
+
customerPaidDate?: Date | null | undefined;
|
|
3108
|
+
customerPaidType?: string | null | undefined;
|
|
3109
|
+
contractId?: string | number | null | undefined;
|
|
3110
|
+
lastHistory?: {
|
|
3111
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
3112
|
+
id: string;
|
|
3113
|
+
createdAt: Date;
|
|
3114
|
+
itemId: string | number;
|
|
3115
|
+
data?: {
|
|
3116
|
+
type: "ACTION_CANCELED";
|
|
3117
|
+
data: {
|
|
3118
|
+
targetItemHistoryId: string;
|
|
3119
|
+
};
|
|
3120
|
+
} | {
|
|
3121
|
+
type: "BUYER_PAID";
|
|
3122
|
+
data: {
|
|
3123
|
+
soldAccountId: string;
|
|
3124
|
+
soldOrderId: string;
|
|
3125
|
+
soldConversationId?: string | null | undefined;
|
|
3126
|
+
};
|
|
3127
|
+
} | {
|
|
3128
|
+
type: "DELIVERED";
|
|
3129
|
+
data: {
|
|
3130
|
+
soldAccountId: string;
|
|
3131
|
+
soldOrderId: string;
|
|
3132
|
+
soldConversationId?: string | null | undefined;
|
|
3133
|
+
};
|
|
3134
|
+
} | {
|
|
3135
|
+
type: "EMPTY";
|
|
3136
|
+
} | {
|
|
3137
|
+
type: "FAILED_TO_PUBLISH";
|
|
3138
|
+
data: {
|
|
3139
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3140
|
+
accountId?: string | null | undefined;
|
|
3141
|
+
reason?: string | null | undefined;
|
|
3142
|
+
fields?: {
|
|
3143
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3144
|
+
autoFixable: boolean;
|
|
3145
|
+
error?: string | null | undefined;
|
|
3146
|
+
}[] | null | undefined;
|
|
3147
|
+
itemHistoryId?: string | null | undefined;
|
|
3148
|
+
};
|
|
3149
|
+
} | {
|
|
3150
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3151
|
+
data: {
|
|
3152
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3153
|
+
variations?: {
|
|
3154
|
+
fileId: string;
|
|
3155
|
+
seed: number;
|
|
3156
|
+
phash: string;
|
|
3157
|
+
distanceOriginal: number;
|
|
3158
|
+
originalImageUrl: string;
|
|
3159
|
+
originalPhash: string;
|
|
3160
|
+
}[] | null | undefined;
|
|
3161
|
+
originalPhashes?: string[] | null | undefined;
|
|
3162
|
+
};
|
|
3163
|
+
} | {
|
|
3164
|
+
type: "IMPORTED";
|
|
3165
|
+
data: {
|
|
3166
|
+
post: {
|
|
3167
|
+
platformId: string;
|
|
3168
|
+
post: {
|
|
3169
|
+
status?: string | null | undefined;
|
|
3170
|
+
price?: number | null | undefined;
|
|
3171
|
+
currency?: string | null | undefined;
|
|
3172
|
+
brand?: string | null | undefined;
|
|
3173
|
+
catalog?: string | null | undefined;
|
|
3174
|
+
catalogId?: number | null | undefined;
|
|
3175
|
+
colors?: string[] | null | undefined;
|
|
3176
|
+
colorIds?: number[] | null | undefined;
|
|
3177
|
+
description?: string | null | undefined;
|
|
3178
|
+
measurementLength?: number | null | undefined;
|
|
3179
|
+
measurementWidth?: number | null | undefined;
|
|
3180
|
+
packageSizeId?: number | null | undefined;
|
|
3181
|
+
photoUrls?: string[] | null | undefined;
|
|
3182
|
+
size?: string | null | undefined;
|
|
3183
|
+
sizeId?: number | null | undefined;
|
|
3184
|
+
statusId?: number | null | undefined;
|
|
3185
|
+
title?: string | null | undefined;
|
|
3186
|
+
isDraft?: boolean | null | undefined;
|
|
3187
|
+
isArchived?: boolean | null | undefined;
|
|
3188
|
+
availableQuantity?: number | null | undefined;
|
|
3189
|
+
material?: number[] | null | undefined;
|
|
3190
|
+
manufacturerLabelling?: string | null | undefined;
|
|
3191
|
+
labels?: string[] | null | undefined;
|
|
3192
|
+
};
|
|
3193
|
+
createdAt?: Date | null | undefined;
|
|
3194
|
+
platformUrl?: string | null | undefined;
|
|
3195
|
+
};
|
|
3196
|
+
};
|
|
3197
|
+
} | {
|
|
3198
|
+
type: "LIFECYCLE_COMPLETED";
|
|
3199
|
+
data: {
|
|
3200
|
+
accountId: string;
|
|
3201
|
+
};
|
|
3202
|
+
} | {
|
|
3203
|
+
type: "LIFECYCLE_STARTED";
|
|
3204
|
+
data: {
|
|
3205
|
+
accountId: string;
|
|
3206
|
+
caseId: string;
|
|
3207
|
+
};
|
|
3208
|
+
} | {
|
|
3209
|
+
type: "PUBLISHED";
|
|
3210
|
+
data: {
|
|
3211
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3212
|
+
};
|
|
3213
|
+
} | {
|
|
3214
|
+
type: "REPUBLISHING";
|
|
3215
|
+
data: {
|
|
3216
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3217
|
+
publishingDate?: Date | null | undefined;
|
|
3218
|
+
priceDropPayload?: {
|
|
3219
|
+
value: number;
|
|
3220
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3221
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3222
|
+
roundStep?: number | null | undefined;
|
|
3223
|
+
maxRounds?: number | null | undefined;
|
|
3224
|
+
} | null | undefined;
|
|
3225
|
+
isTransfer?: boolean | null | undefined;
|
|
3226
|
+
targetAccountId?: string | null | undefined;
|
|
3227
|
+
};
|
|
3228
|
+
} | {
|
|
3229
|
+
type: "REPUBLISHING_RETRY";
|
|
3230
|
+
data: {
|
|
3231
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3232
|
+
attemptNumber: number;
|
|
3233
|
+
maxAttempts: number;
|
|
3234
|
+
previousHistoryId: string;
|
|
3235
|
+
originalFailureDate: Date;
|
|
3236
|
+
fields?: {
|
|
3237
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3238
|
+
autoFixable: boolean;
|
|
3239
|
+
error?: string | null | undefined;
|
|
3240
|
+
}[] | null | undefined;
|
|
3241
|
+
priceDropPayload?: {
|
|
3242
|
+
value: number;
|
|
3243
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3244
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3245
|
+
roundStep?: number | null | undefined;
|
|
3246
|
+
maxRounds?: number | null | undefined;
|
|
3247
|
+
} | null | undefined;
|
|
3248
|
+
};
|
|
3249
|
+
} | {
|
|
3250
|
+
type: "SCHEDULED";
|
|
3251
|
+
data: {
|
|
3252
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3253
|
+
publishingDate?: Date | null | undefined;
|
|
3254
|
+
};
|
|
3255
|
+
} | {
|
|
3256
|
+
type: "SCHEDULED_RETRY";
|
|
3257
|
+
data: {
|
|
3258
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3259
|
+
attemptNumber: number;
|
|
3260
|
+
maxAttempts: number;
|
|
3261
|
+
previousHistoryId: string;
|
|
3262
|
+
originalFailureDate: Date;
|
|
3263
|
+
fields?: {
|
|
3264
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3265
|
+
autoFixable: boolean;
|
|
3266
|
+
error?: string | null | undefined;
|
|
3267
|
+
}[] | null | undefined;
|
|
3268
|
+
};
|
|
3269
|
+
} | null | undefined;
|
|
3270
|
+
accountId?: string | null | undefined;
|
|
3271
|
+
requestId?: string | null | undefined;
|
|
3272
|
+
targetDate?: Date | null | undefined;
|
|
3273
|
+
} | null | undefined;
|
|
3274
|
+
platforms?: {
|
|
3275
|
+
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
3276
|
+
id: string;
|
|
3277
|
+
updatedAt: Date;
|
|
3278
|
+
createdAt: Date;
|
|
3279
|
+
accountId: string;
|
|
3280
|
+
itemId: string | number;
|
|
3281
|
+
platformId: string;
|
|
3282
|
+
platformUrl: string;
|
|
3283
|
+
platformPrice: number;
|
|
3284
|
+
publishedAt: Date;
|
|
3285
|
+
conversationId?: string | null | undefined;
|
|
3286
|
+
account?: {
|
|
3287
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
3288
|
+
userId: string | number;
|
|
3289
|
+
name: string;
|
|
3290
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3291
|
+
accountId: string;
|
|
3292
|
+
locale?: string | null | undefined;
|
|
3293
|
+
night?: {
|
|
3294
|
+
startsAt: Date;
|
|
3295
|
+
endsAt: Date;
|
|
3296
|
+
} | null | undefined;
|
|
3297
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
3298
|
+
ordersMaxDelay?: number | null | undefined;
|
|
3299
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
3300
|
+
} | null | undefined;
|
|
3301
|
+
viewsCount?: number | null | undefined;
|
|
3302
|
+
favoritesCount?: number | null | undefined;
|
|
3303
|
+
}[] | null | undefined;
|
|
3304
|
+
history?: {
|
|
3305
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
3306
|
+
id: string;
|
|
3307
|
+
createdAt: Date;
|
|
3308
|
+
itemId: string | number;
|
|
3309
|
+
data?: {
|
|
3310
|
+
type: "ACTION_CANCELED";
|
|
3311
|
+
data: {
|
|
3312
|
+
targetItemHistoryId: string;
|
|
3313
|
+
};
|
|
3314
|
+
} | {
|
|
3315
|
+
type: "BUYER_PAID";
|
|
3316
|
+
data: {
|
|
3317
|
+
soldAccountId: string;
|
|
3318
|
+
soldOrderId: string;
|
|
3319
|
+
soldConversationId?: string | null | undefined;
|
|
3320
|
+
};
|
|
3321
|
+
} | {
|
|
3322
|
+
type: "DELIVERED";
|
|
3323
|
+
data: {
|
|
3324
|
+
soldAccountId: string;
|
|
3325
|
+
soldOrderId: string;
|
|
3326
|
+
soldConversationId?: string | null | undefined;
|
|
3327
|
+
};
|
|
3328
|
+
} | {
|
|
3329
|
+
type: "EMPTY";
|
|
3330
|
+
} | {
|
|
3331
|
+
type: "FAILED_TO_PUBLISH";
|
|
3332
|
+
data: {
|
|
3333
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3334
|
+
accountId?: string | null | undefined;
|
|
3335
|
+
reason?: string | null | undefined;
|
|
3336
|
+
fields?: {
|
|
3337
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3338
|
+
autoFixable: boolean;
|
|
3339
|
+
error?: string | null | undefined;
|
|
3340
|
+
}[] | null | undefined;
|
|
3341
|
+
itemHistoryId?: string | null | undefined;
|
|
3342
|
+
};
|
|
3343
|
+
} | {
|
|
3344
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3345
|
+
data: {
|
|
3346
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3347
|
+
variations?: {
|
|
3348
|
+
fileId: string;
|
|
3349
|
+
seed: number;
|
|
3350
|
+
phash: string;
|
|
3351
|
+
distanceOriginal: number;
|
|
3352
|
+
originalImageUrl: string;
|
|
3353
|
+
originalPhash: string;
|
|
3354
|
+
}[] | null | undefined;
|
|
3355
|
+
originalPhashes?: string[] | null | undefined;
|
|
3356
|
+
};
|
|
3357
|
+
} | {
|
|
3358
|
+
type: "IMPORTED";
|
|
3359
|
+
data: {
|
|
3360
|
+
post: {
|
|
3361
|
+
platformId: string;
|
|
3362
|
+
post: {
|
|
3363
|
+
status?: string | null | undefined;
|
|
3364
|
+
price?: number | null | undefined;
|
|
3365
|
+
currency?: string | null | undefined;
|
|
3366
|
+
brand?: string | null | undefined;
|
|
3367
|
+
catalog?: string | null | undefined;
|
|
3368
|
+
catalogId?: number | null | undefined;
|
|
3369
|
+
colors?: string[] | null | undefined;
|
|
3370
|
+
colorIds?: number[] | null | undefined;
|
|
3371
|
+
description?: string | null | undefined;
|
|
3372
|
+
measurementLength?: number | null | undefined;
|
|
3373
|
+
measurementWidth?: number | null | undefined;
|
|
3374
|
+
packageSizeId?: number | null | undefined;
|
|
3375
|
+
photoUrls?: string[] | null | undefined;
|
|
3376
|
+
size?: string | null | undefined;
|
|
3377
|
+
sizeId?: number | null | undefined;
|
|
3378
|
+
statusId?: number | null | undefined;
|
|
3379
|
+
title?: string | null | undefined;
|
|
3380
|
+
isDraft?: boolean | null | undefined;
|
|
3381
|
+
isArchived?: boolean | null | undefined;
|
|
3382
|
+
availableQuantity?: number | null | undefined;
|
|
3383
|
+
material?: number[] | null | undefined;
|
|
3384
|
+
manufacturerLabelling?: string | null | undefined;
|
|
3385
|
+
labels?: string[] | null | undefined;
|
|
3386
|
+
};
|
|
3387
|
+
createdAt?: Date | null | undefined;
|
|
3388
|
+
platformUrl?: string | null | undefined;
|
|
3389
|
+
};
|
|
3390
|
+
};
|
|
3391
|
+
} | {
|
|
3392
|
+
type: "LIFECYCLE_COMPLETED";
|
|
3393
|
+
data: {
|
|
3394
|
+
accountId: string;
|
|
3395
|
+
};
|
|
3396
|
+
} | {
|
|
3397
|
+
type: "LIFECYCLE_STARTED";
|
|
3398
|
+
data: {
|
|
3399
|
+
accountId: string;
|
|
3400
|
+
caseId: string;
|
|
3401
|
+
};
|
|
3402
|
+
} | {
|
|
3403
|
+
type: "PUBLISHED";
|
|
3404
|
+
data: {
|
|
3405
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3406
|
+
};
|
|
3407
|
+
} | {
|
|
3408
|
+
type: "REPUBLISHING";
|
|
3409
|
+
data: {
|
|
3410
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3411
|
+
publishingDate?: Date | null | undefined;
|
|
3412
|
+
priceDropPayload?: {
|
|
3413
|
+
value: number;
|
|
3414
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3415
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3416
|
+
roundStep?: number | null | undefined;
|
|
3417
|
+
maxRounds?: number | null | undefined;
|
|
3418
|
+
} | null | undefined;
|
|
3419
|
+
isTransfer?: boolean | null | undefined;
|
|
3420
|
+
targetAccountId?: string | null | undefined;
|
|
3421
|
+
};
|
|
3422
|
+
} | {
|
|
3423
|
+
type: "REPUBLISHING_RETRY";
|
|
3424
|
+
data: {
|
|
3425
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3426
|
+
attemptNumber: number;
|
|
3427
|
+
maxAttempts: number;
|
|
3428
|
+
previousHistoryId: string;
|
|
3429
|
+
originalFailureDate: Date;
|
|
3430
|
+
fields?: {
|
|
3431
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3432
|
+
autoFixable: boolean;
|
|
3433
|
+
error?: string | null | undefined;
|
|
3434
|
+
}[] | null | undefined;
|
|
3435
|
+
priceDropPayload?: {
|
|
3436
|
+
value: number;
|
|
3437
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3438
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3439
|
+
roundStep?: number | null | undefined;
|
|
3440
|
+
maxRounds?: number | null | undefined;
|
|
3441
|
+
} | null | undefined;
|
|
3442
|
+
};
|
|
3443
|
+
} | {
|
|
3444
|
+
type: "SCHEDULED";
|
|
3445
|
+
data: {
|
|
3446
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3447
|
+
publishingDate?: Date | null | undefined;
|
|
3448
|
+
};
|
|
3449
|
+
} | {
|
|
3450
|
+
type: "SCHEDULED_RETRY";
|
|
3451
|
+
data: {
|
|
3452
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3453
|
+
attemptNumber: number;
|
|
3454
|
+
maxAttempts: number;
|
|
3455
|
+
previousHistoryId: string;
|
|
3456
|
+
originalFailureDate: Date;
|
|
3457
|
+
fields?: {
|
|
3458
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3459
|
+
autoFixable: boolean;
|
|
3460
|
+
error?: string | null | undefined;
|
|
3461
|
+
}[] | null | undefined;
|
|
3462
|
+
};
|
|
3463
|
+
} | null | undefined;
|
|
3464
|
+
accountId?: string | null | undefined;
|
|
3465
|
+
requestId?: string | null | undefined;
|
|
3466
|
+
targetDate?: Date | null | undefined;
|
|
3467
|
+
}[] | null | undefined;
|
|
3468
|
+
}, {
|
|
3469
|
+
userId: string | number;
|
|
3470
|
+
id: string | number;
|
|
3471
|
+
updatedAt: Date;
|
|
3472
|
+
name: string;
|
|
3473
|
+
createdAt: Date;
|
|
3474
|
+
sold: boolean;
|
|
3475
|
+
state?: number | null | undefined;
|
|
3476
|
+
colorIds?: number[] | null | undefined;
|
|
3477
|
+
description?: string | null | undefined;
|
|
3478
|
+
packageSizeId?: number | null | undefined;
|
|
3479
|
+
sizeId?: number | null | undefined;
|
|
3480
|
+
labels?: {
|
|
3481
|
+
itemId: string | number;
|
|
3482
|
+
labelId: string | number;
|
|
3483
|
+
label?: {
|
|
3484
|
+
id: string | number;
|
|
3485
|
+
name: string;
|
|
3486
|
+
createdAt: Date;
|
|
3487
|
+
isUserLabel: boolean;
|
|
3488
|
+
userId?: string | number | null | undefined;
|
|
3489
|
+
itemCount?: number | null | undefined;
|
|
3490
|
+
parentId?: unknown;
|
|
3491
|
+
} | null | undefined;
|
|
3492
|
+
}[] | null | undefined;
|
|
3493
|
+
files?: {
|
|
3494
|
+
itemId: string | number;
|
|
3495
|
+
fileId: string;
|
|
3496
|
+
index?: number | null | undefined;
|
|
3497
|
+
file?: {
|
|
3498
|
+
path: string;
|
|
3499
|
+
userId: string | number;
|
|
3500
|
+
id: string;
|
|
3501
|
+
createdAt: Date;
|
|
3502
|
+
signedUrl: string;
|
|
3503
|
+
} | null | undefined;
|
|
3504
|
+
}[] | null | undefined;
|
|
3505
|
+
fields?: {
|
|
3506
|
+
value: string;
|
|
3507
|
+
itemId: string | number;
|
|
3508
|
+
fieldId: string | number;
|
|
3509
|
+
}[] | null | undefined;
|
|
3510
|
+
sku?: string | null | undefined;
|
|
3511
|
+
categoryId?: number | null | undefined;
|
|
3512
|
+
brandId?: string | number | null | undefined;
|
|
3513
|
+
sex?: string | null | undefined;
|
|
3514
|
+
purchasePrice?: number | null | undefined;
|
|
3515
|
+
purchaseDate?: Date | null | undefined;
|
|
3516
|
+
purchasePlaceId?: string | number | null | undefined;
|
|
3517
|
+
purchased?: boolean | null | undefined;
|
|
3518
|
+
sellingPrice?: number | null | undefined;
|
|
3519
|
+
sellingDate?: Date | null | undefined;
|
|
3520
|
+
sellingPlaceId?: string | number | null | undefined;
|
|
3521
|
+
estimatedPrice?: number | null | undefined;
|
|
3522
|
+
fees?: {
|
|
3523
|
+
value: number;
|
|
3524
|
+
type: string;
|
|
3525
|
+
userId: string | number;
|
|
3526
|
+
id: string | number;
|
|
3527
|
+
updatedAt: Date;
|
|
3528
|
+
name: string;
|
|
3529
|
+
createdAt: Date;
|
|
3530
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
3531
|
+
startDate: Date;
|
|
3532
|
+
active: boolean;
|
|
3533
|
+
description?: string | null | undefined;
|
|
3534
|
+
itemId?: string | number | null | undefined;
|
|
3535
|
+
endDate?: Date | null | undefined;
|
|
3536
|
+
parentFeeId?: string | number | null | undefined;
|
|
3537
|
+
}[] | null | undefined;
|
|
3538
|
+
feesSum?: number | null | undefined;
|
|
3539
|
+
customerId?: string | number | null | undefined;
|
|
3540
|
+
customer?: {
|
|
3541
|
+
userId: string | number;
|
|
3542
|
+
id: string | number;
|
|
3543
|
+
email: string;
|
|
3544
|
+
firstName: string;
|
|
3545
|
+
lastName: string;
|
|
3546
|
+
birthDate: Date;
|
|
3547
|
+
idNumber: string;
|
|
3548
|
+
phone: string;
|
|
3549
|
+
iban: string;
|
|
3550
|
+
bic: string;
|
|
3551
|
+
phoneVerified: boolean;
|
|
3552
|
+
} | null | undefined;
|
|
3553
|
+
customerType?: string | null | undefined;
|
|
3554
|
+
customerPaid?: boolean | null | undefined;
|
|
3555
|
+
customerPaidDate?: Date | null | undefined;
|
|
3556
|
+
customerPaidType?: string | null | undefined;
|
|
3557
|
+
contractId?: string | number | null | undefined;
|
|
3558
|
+
lastHistory?: {
|
|
3559
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
3560
|
+
id: string;
|
|
3561
|
+
createdAt: Date;
|
|
3562
|
+
itemId: string | number;
|
|
3563
|
+
data?: {
|
|
3564
|
+
type: "ACTION_CANCELED";
|
|
3565
|
+
data: {
|
|
3566
|
+
targetItemHistoryId: string;
|
|
3567
|
+
};
|
|
3568
|
+
} | {
|
|
3569
|
+
type: "BUYER_PAID";
|
|
3570
|
+
data: {
|
|
3571
|
+
soldAccountId: string;
|
|
3572
|
+
soldOrderId: string;
|
|
3573
|
+
soldConversationId?: string | null | undefined;
|
|
3574
|
+
};
|
|
3575
|
+
} | {
|
|
3576
|
+
type: "DELIVERED";
|
|
3577
|
+
data: {
|
|
3578
|
+
soldAccountId: string;
|
|
3579
|
+
soldOrderId: string;
|
|
3580
|
+
soldConversationId?: string | null | undefined;
|
|
3581
|
+
};
|
|
3582
|
+
} | {
|
|
3583
|
+
type: "EMPTY";
|
|
3584
|
+
} | {
|
|
3585
|
+
type: "FAILED_TO_PUBLISH";
|
|
3586
|
+
data: {
|
|
3587
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3588
|
+
accountId?: string | null | undefined;
|
|
3589
|
+
reason?: string | null | undefined;
|
|
3590
|
+
fields?: {
|
|
3591
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3592
|
+
autoFixable: boolean;
|
|
3593
|
+
error?: string | null | undefined;
|
|
3594
|
+
}[] | null | undefined;
|
|
3595
|
+
itemHistoryId?: string | null | undefined;
|
|
3596
|
+
};
|
|
3597
|
+
} | {
|
|
3598
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3599
|
+
data: {
|
|
3600
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3601
|
+
variations?: {
|
|
3602
|
+
fileId: string;
|
|
3603
|
+
seed: number;
|
|
3604
|
+
phash: string;
|
|
3605
|
+
distanceOriginal: number;
|
|
3606
|
+
originalImageUrl: string;
|
|
3607
|
+
originalPhash: string;
|
|
3608
|
+
}[] | null | undefined;
|
|
3609
|
+
originalPhashes?: string[] | null | undefined;
|
|
3610
|
+
};
|
|
3611
|
+
} | {
|
|
3612
|
+
type: "IMPORTED";
|
|
3613
|
+
data: {
|
|
3614
|
+
post: {
|
|
3615
|
+
platformId: string;
|
|
3616
|
+
post: {
|
|
3617
|
+
status?: string | null | undefined;
|
|
3618
|
+
price?: number | null | undefined;
|
|
3619
|
+
currency?: string | null | undefined;
|
|
3620
|
+
brand?: string | null | undefined;
|
|
3621
|
+
catalog?: string | null | undefined;
|
|
3622
|
+
catalogId?: number | null | undefined;
|
|
3623
|
+
colors?: string[] | null | undefined;
|
|
3624
|
+
colorIds?: number[] | null | undefined;
|
|
3625
|
+
description?: string | null | undefined;
|
|
3626
|
+
measurementLength?: number | null | undefined;
|
|
3627
|
+
measurementWidth?: number | null | undefined;
|
|
3628
|
+
packageSizeId?: number | null | undefined;
|
|
3629
|
+
photoUrls?: string[] | null | undefined;
|
|
3630
|
+
size?: string | null | undefined;
|
|
3631
|
+
sizeId?: number | null | undefined;
|
|
3632
|
+
statusId?: number | null | undefined;
|
|
3633
|
+
title?: string | null | undefined;
|
|
3634
|
+
isDraft?: boolean | null | undefined;
|
|
3635
|
+
isArchived?: boolean | null | undefined;
|
|
3636
|
+
availableQuantity?: number | null | undefined;
|
|
3637
|
+
material?: number[] | null | undefined;
|
|
3638
|
+
manufacturerLabelling?: string | null | undefined;
|
|
3639
|
+
labels?: string[] | null | undefined;
|
|
3640
|
+
};
|
|
3641
|
+
createdAt?: Date | null | undefined;
|
|
3642
|
+
platformUrl?: string | null | undefined;
|
|
3643
|
+
};
|
|
3644
|
+
};
|
|
3645
|
+
} | {
|
|
3646
|
+
type: "LIFECYCLE_COMPLETED";
|
|
3647
|
+
data: {
|
|
3648
|
+
accountId: string;
|
|
3649
|
+
};
|
|
3650
|
+
} | {
|
|
3651
|
+
type: "LIFECYCLE_STARTED";
|
|
3652
|
+
data: {
|
|
3653
|
+
accountId: string;
|
|
3654
|
+
caseId: string;
|
|
3655
|
+
};
|
|
3656
|
+
} | {
|
|
3657
|
+
type: "PUBLISHED";
|
|
3658
|
+
data: {
|
|
3659
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3660
|
+
};
|
|
3661
|
+
} | {
|
|
3662
|
+
type: "REPUBLISHING";
|
|
3663
|
+
data: {
|
|
3664
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3665
|
+
publishingDate?: Date | null | undefined;
|
|
3666
|
+
priceDropPayload?: {
|
|
3667
|
+
value: number;
|
|
3668
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3669
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3670
|
+
roundStep?: number | null | undefined;
|
|
3671
|
+
maxRounds?: number | null | undefined;
|
|
3672
|
+
} | null | undefined;
|
|
3673
|
+
isTransfer?: boolean | null | undefined;
|
|
3674
|
+
targetAccountId?: string | null | undefined;
|
|
3675
|
+
};
|
|
3676
|
+
} | {
|
|
3677
|
+
type: "REPUBLISHING_RETRY";
|
|
3678
|
+
data: {
|
|
3679
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3680
|
+
attemptNumber: number;
|
|
3681
|
+
maxAttempts: number;
|
|
3682
|
+
previousHistoryId: string;
|
|
3683
|
+
originalFailureDate: Date;
|
|
3684
|
+
fields?: {
|
|
3685
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3686
|
+
autoFixable: boolean;
|
|
3687
|
+
error?: string | null | undefined;
|
|
3688
|
+
}[] | null | undefined;
|
|
3689
|
+
priceDropPayload?: {
|
|
3690
|
+
value: number;
|
|
3691
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3692
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3693
|
+
roundStep?: number | null | undefined;
|
|
3694
|
+
maxRounds?: number | null | undefined;
|
|
3695
|
+
} | null | undefined;
|
|
3696
|
+
};
|
|
3697
|
+
} | {
|
|
3698
|
+
type: "SCHEDULED";
|
|
3699
|
+
data: {
|
|
3700
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3701
|
+
publishingDate?: Date | null | undefined;
|
|
3702
|
+
};
|
|
3703
|
+
} | {
|
|
3704
|
+
type: "SCHEDULED_RETRY";
|
|
3705
|
+
data: {
|
|
3706
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3707
|
+
attemptNumber: number;
|
|
3708
|
+
maxAttempts: number;
|
|
3709
|
+
previousHistoryId: string;
|
|
3710
|
+
originalFailureDate: Date;
|
|
3711
|
+
fields?: {
|
|
3712
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3713
|
+
autoFixable: boolean;
|
|
3714
|
+
error?: string | null | undefined;
|
|
3715
|
+
}[] | null | undefined;
|
|
3716
|
+
};
|
|
3717
|
+
} | null | undefined;
|
|
3718
|
+
accountId?: string | null | undefined;
|
|
3719
|
+
requestId?: string | null | undefined;
|
|
3720
|
+
targetDate?: Date | null | undefined;
|
|
3721
|
+
} | null | undefined;
|
|
3722
|
+
platforms?: {
|
|
3723
|
+
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
3724
|
+
id: string;
|
|
3725
|
+
updatedAt: Date;
|
|
3726
|
+
createdAt: Date;
|
|
3727
|
+
accountId: string;
|
|
3728
|
+
itemId: string | number;
|
|
3729
|
+
platformId: string;
|
|
3730
|
+
platformUrl: string;
|
|
3731
|
+
platformPrice: number;
|
|
3732
|
+
publishedAt: Date;
|
|
3733
|
+
conversationId?: string | null | undefined;
|
|
3734
|
+
account?: {
|
|
3735
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
3736
|
+
userId: string | number;
|
|
3737
|
+
name: string;
|
|
3738
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3739
|
+
accountId: string;
|
|
3740
|
+
locale?: string | null | undefined;
|
|
3741
|
+
night?: {
|
|
3742
|
+
startsAt: Date;
|
|
3743
|
+
endsAt: Date;
|
|
3744
|
+
} | null | undefined;
|
|
3745
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
3746
|
+
ordersMaxDelay?: number | null | undefined;
|
|
3747
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
3748
|
+
} | null | undefined;
|
|
3749
|
+
viewsCount?: number | null | undefined;
|
|
3750
|
+
favoritesCount?: number | null | undefined;
|
|
3751
|
+
}[] | null | undefined;
|
|
3752
|
+
history?: {
|
|
3753
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
3754
|
+
id: string;
|
|
3755
|
+
createdAt: Date;
|
|
3756
|
+
itemId: string | number;
|
|
3757
|
+
data?: {
|
|
3758
|
+
type: "ACTION_CANCELED";
|
|
3759
|
+
data: {
|
|
3760
|
+
targetItemHistoryId: string;
|
|
3761
|
+
};
|
|
3762
|
+
} | {
|
|
3763
|
+
type: "BUYER_PAID";
|
|
3764
|
+
data: {
|
|
3765
|
+
soldAccountId: string;
|
|
3766
|
+
soldOrderId: string;
|
|
3767
|
+
soldConversationId?: string | null | undefined;
|
|
3768
|
+
};
|
|
3769
|
+
} | {
|
|
3770
|
+
type: "DELIVERED";
|
|
3771
|
+
data: {
|
|
3772
|
+
soldAccountId: string;
|
|
3773
|
+
soldOrderId: string;
|
|
3774
|
+
soldConversationId?: string | null | undefined;
|
|
3775
|
+
};
|
|
3776
|
+
} | {
|
|
3777
|
+
type: "EMPTY";
|
|
3778
|
+
} | {
|
|
3779
|
+
type: "FAILED_TO_PUBLISH";
|
|
3780
|
+
data: {
|
|
3781
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3782
|
+
accountId?: string | null | undefined;
|
|
3783
|
+
reason?: string | null | undefined;
|
|
3784
|
+
fields?: {
|
|
3785
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3786
|
+
autoFixable: boolean;
|
|
3787
|
+
error?: string | null | undefined;
|
|
3788
|
+
}[] | null | undefined;
|
|
3789
|
+
itemHistoryId?: string | null | undefined;
|
|
3790
|
+
};
|
|
3791
|
+
} | {
|
|
3792
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3793
|
+
data: {
|
|
3794
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3795
|
+
variations?: {
|
|
3796
|
+
fileId: string;
|
|
3797
|
+
seed: number;
|
|
3798
|
+
phash: string;
|
|
3799
|
+
distanceOriginal: number;
|
|
3800
|
+
originalImageUrl: string;
|
|
3801
|
+
originalPhash: string;
|
|
3802
|
+
}[] | null | undefined;
|
|
3803
|
+
originalPhashes?: string[] | null | undefined;
|
|
1941
3804
|
};
|
|
1942
3805
|
} | {
|
|
1943
3806
|
type: "IMPORTED";
|
|
@@ -1984,6 +3847,11 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
1984
3847
|
accountId: string;
|
|
1985
3848
|
caseId: string;
|
|
1986
3849
|
};
|
|
3850
|
+
} | {
|
|
3851
|
+
type: "PUBLISHED";
|
|
3852
|
+
data: {
|
|
3853
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3854
|
+
};
|
|
1987
3855
|
} | {
|
|
1988
3856
|
type: "REPUBLISHING";
|
|
1989
3857
|
data: {
|
|
@@ -2044,38 +3912,10 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
2044
3912
|
accountId?: string | null | undefined;
|
|
2045
3913
|
requestId?: string | null | undefined;
|
|
2046
3914
|
targetDate?: Date | null | undefined;
|
|
2047
|
-
} | null | undefined;
|
|
2048
|
-
platforms?: {
|
|
2049
|
-
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
2050
|
-
id: string;
|
|
2051
|
-
updatedAt: Date;
|
|
2052
|
-
createdAt: Date;
|
|
2053
|
-
accountId: string;
|
|
2054
|
-
itemId: string | number;
|
|
2055
|
-
platformId: string;
|
|
2056
|
-
platformUrl: string;
|
|
2057
|
-
platformPrice: number;
|
|
2058
|
-
publishedAt: Date;
|
|
2059
|
-
conversationId?: string | null | undefined;
|
|
2060
|
-
account?: {
|
|
2061
|
-
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
2062
|
-
userId: string | number;
|
|
2063
|
-
name: string;
|
|
2064
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2065
|
-
accountId: string;
|
|
2066
|
-
locale?: string | null | undefined;
|
|
2067
|
-
night?: {
|
|
2068
|
-
startsAt: Date;
|
|
2069
|
-
endsAt: Date;
|
|
2070
|
-
} | null | undefined;
|
|
2071
|
-
favoritesMaxDelay?: number | null | undefined;
|
|
2072
|
-
ordersMaxDelay?: number | null | undefined;
|
|
2073
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
2074
|
-
} | null | undefined;
|
|
2075
|
-
viewsCount?: number | null | undefined;
|
|
2076
|
-
favoritesCount?: number | null | undefined;
|
|
2077
3915
|
}[] | null | undefined;
|
|
2078
|
-
}
|
|
3916
|
+
}>, "many">;
|
|
3917
|
+
}, "strip", z.ZodTypeAny, {
|
|
3918
|
+
items: {
|
|
2079
3919
|
userId: string | number;
|
|
2080
3920
|
id: string | number;
|
|
2081
3921
|
updatedAt: Date;
|
|
@@ -2263,6 +4103,205 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
2263
4103
|
accountId: string;
|
|
2264
4104
|
caseId: string;
|
|
2265
4105
|
};
|
|
4106
|
+
} | {
|
|
4107
|
+
type: "PUBLISHED";
|
|
4108
|
+
data: {
|
|
4109
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4110
|
+
};
|
|
4111
|
+
} | {
|
|
4112
|
+
type: "REPUBLISHING";
|
|
4113
|
+
data: {
|
|
4114
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4115
|
+
publishingDate?: Date | null | undefined;
|
|
4116
|
+
priceDropPayload?: {
|
|
4117
|
+
value: number;
|
|
4118
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4119
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4120
|
+
roundStep?: number | null | undefined;
|
|
4121
|
+
maxRounds?: number | null | undefined;
|
|
4122
|
+
} | null | undefined;
|
|
4123
|
+
isTransfer?: boolean | null | undefined;
|
|
4124
|
+
targetAccountId?: string | null | undefined;
|
|
4125
|
+
};
|
|
4126
|
+
} | {
|
|
4127
|
+
type: "REPUBLISHING_RETRY";
|
|
4128
|
+
data: {
|
|
4129
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4130
|
+
attemptNumber: number;
|
|
4131
|
+
maxAttempts: number;
|
|
4132
|
+
previousHistoryId: string;
|
|
4133
|
+
originalFailureDate: Date;
|
|
4134
|
+
fields?: {
|
|
4135
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4136
|
+
autoFixable: boolean;
|
|
4137
|
+
error?: string | null | undefined;
|
|
4138
|
+
}[] | null | undefined;
|
|
4139
|
+
priceDropPayload?: {
|
|
4140
|
+
value: number;
|
|
4141
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4142
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4143
|
+
roundStep?: number | null | undefined;
|
|
4144
|
+
maxRounds?: number | null | undefined;
|
|
4145
|
+
} | null | undefined;
|
|
4146
|
+
};
|
|
4147
|
+
} | {
|
|
4148
|
+
type: "SCHEDULED";
|
|
4149
|
+
data: {
|
|
4150
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4151
|
+
publishingDate?: Date | null | undefined;
|
|
4152
|
+
};
|
|
4153
|
+
} | {
|
|
4154
|
+
type: "SCHEDULED_RETRY";
|
|
4155
|
+
data: {
|
|
4156
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4157
|
+
attemptNumber: number;
|
|
4158
|
+
maxAttempts: number;
|
|
4159
|
+
previousHistoryId: string;
|
|
4160
|
+
originalFailureDate: Date;
|
|
4161
|
+
fields?: {
|
|
4162
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4163
|
+
autoFixable: boolean;
|
|
4164
|
+
error?: string | null | undefined;
|
|
4165
|
+
}[] | null | undefined;
|
|
4166
|
+
};
|
|
4167
|
+
} | null | undefined;
|
|
4168
|
+
accountId?: string | null | undefined;
|
|
4169
|
+
requestId?: string | null | undefined;
|
|
4170
|
+
targetDate?: Date | null | undefined;
|
|
4171
|
+
} | null | undefined;
|
|
4172
|
+
platforms?: {
|
|
4173
|
+
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
4174
|
+
id: string;
|
|
4175
|
+
updatedAt: Date;
|
|
4176
|
+
createdAt: Date;
|
|
4177
|
+
accountId: string;
|
|
4178
|
+
itemId: string | number;
|
|
4179
|
+
platformId: string;
|
|
4180
|
+
platformUrl: string;
|
|
4181
|
+
platformPrice: number;
|
|
4182
|
+
publishedAt: Date;
|
|
4183
|
+
conversationId?: string | null | undefined;
|
|
4184
|
+
account?: {
|
|
4185
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
4186
|
+
userId: string | number;
|
|
4187
|
+
name: string;
|
|
4188
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4189
|
+
accountId: string;
|
|
4190
|
+
locale?: string | null | undefined;
|
|
4191
|
+
night?: {
|
|
4192
|
+
startsAt: Date;
|
|
4193
|
+
endsAt: Date;
|
|
4194
|
+
} | null | undefined;
|
|
4195
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
4196
|
+
ordersMaxDelay?: number | null | undefined;
|
|
4197
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
4198
|
+
} | null | undefined;
|
|
4199
|
+
viewsCount?: number | null | undefined;
|
|
4200
|
+
favoritesCount?: number | null | undefined;
|
|
4201
|
+
}[] | null | undefined;
|
|
4202
|
+
history?: {
|
|
4203
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
4204
|
+
id: string;
|
|
4205
|
+
createdAt: Date;
|
|
4206
|
+
itemId: string | number;
|
|
4207
|
+
data?: {
|
|
4208
|
+
type: "ACTION_CANCELED";
|
|
4209
|
+
data: {
|
|
4210
|
+
targetItemHistoryId: string;
|
|
4211
|
+
};
|
|
4212
|
+
} | {
|
|
4213
|
+
type: "BUYER_PAID";
|
|
4214
|
+
data: {
|
|
4215
|
+
soldAccountId: string;
|
|
4216
|
+
soldOrderId: string;
|
|
4217
|
+
soldConversationId?: string | null | undefined;
|
|
4218
|
+
};
|
|
4219
|
+
} | {
|
|
4220
|
+
type: "DELIVERED";
|
|
4221
|
+
data: {
|
|
4222
|
+
soldAccountId: string;
|
|
4223
|
+
soldOrderId: string;
|
|
4224
|
+
soldConversationId?: string | null | undefined;
|
|
4225
|
+
};
|
|
4226
|
+
} | {
|
|
4227
|
+
type: "EMPTY";
|
|
4228
|
+
} | {
|
|
4229
|
+
type: "FAILED_TO_PUBLISH";
|
|
4230
|
+
data: {
|
|
4231
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4232
|
+
accountId?: string | null | undefined;
|
|
4233
|
+
reason?: string | null | undefined;
|
|
4234
|
+
fields?: {
|
|
4235
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4236
|
+
autoFixable: boolean;
|
|
4237
|
+
error?: string | null | undefined;
|
|
4238
|
+
}[] | null | undefined;
|
|
4239
|
+
itemHistoryId?: string | null | undefined;
|
|
4240
|
+
};
|
|
4241
|
+
} | {
|
|
4242
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
4243
|
+
data: {
|
|
4244
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4245
|
+
variations?: {
|
|
4246
|
+
fileId: string;
|
|
4247
|
+
seed: number;
|
|
4248
|
+
phash: string;
|
|
4249
|
+
distanceOriginal: number;
|
|
4250
|
+
originalImageUrl: string;
|
|
4251
|
+
originalPhash: string;
|
|
4252
|
+
}[] | null | undefined;
|
|
4253
|
+
originalPhashes?: string[] | null | undefined;
|
|
4254
|
+
};
|
|
4255
|
+
} | {
|
|
4256
|
+
type: "IMPORTED";
|
|
4257
|
+
data: {
|
|
4258
|
+
post: {
|
|
4259
|
+
platformId: string;
|
|
4260
|
+
post: {
|
|
4261
|
+
status?: string | null | undefined;
|
|
4262
|
+
price?: number | null | undefined;
|
|
4263
|
+
currency?: string | null | undefined;
|
|
4264
|
+
brand?: string | null | undefined;
|
|
4265
|
+
catalog?: string | null | undefined;
|
|
4266
|
+
catalogId?: number | null | undefined;
|
|
4267
|
+
colors?: string[] | null | undefined;
|
|
4268
|
+
colorIds?: number[] | null | undefined;
|
|
4269
|
+
description?: string | null | undefined;
|
|
4270
|
+
measurementLength?: number | null | undefined;
|
|
4271
|
+
measurementWidth?: number | null | undefined;
|
|
4272
|
+
packageSizeId?: number | null | undefined;
|
|
4273
|
+
photoUrls?: string[] | null | undefined;
|
|
4274
|
+
size?: string | null | undefined;
|
|
4275
|
+
sizeId?: number | null | undefined;
|
|
4276
|
+
statusId?: number | null | undefined;
|
|
4277
|
+
title?: string | null | undefined;
|
|
4278
|
+
isDraft?: boolean | null | undefined;
|
|
4279
|
+
isArchived?: boolean | null | undefined;
|
|
4280
|
+
availableQuantity?: number | null | undefined;
|
|
4281
|
+
material?: number[] | null | undefined;
|
|
4282
|
+
manufacturerLabelling?: string | null | undefined;
|
|
4283
|
+
labels?: string[] | null | undefined;
|
|
4284
|
+
};
|
|
4285
|
+
createdAt?: Date | null | undefined;
|
|
4286
|
+
platformUrl?: string | null | undefined;
|
|
4287
|
+
};
|
|
4288
|
+
};
|
|
4289
|
+
} | {
|
|
4290
|
+
type: "LIFECYCLE_COMPLETED";
|
|
4291
|
+
data: {
|
|
4292
|
+
accountId: string;
|
|
4293
|
+
};
|
|
4294
|
+
} | {
|
|
4295
|
+
type: "LIFECYCLE_STARTED";
|
|
4296
|
+
data: {
|
|
4297
|
+
accountId: string;
|
|
4298
|
+
caseId: string;
|
|
4299
|
+
};
|
|
4300
|
+
} | {
|
|
4301
|
+
type: "PUBLISHED";
|
|
4302
|
+
data: {
|
|
4303
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4304
|
+
};
|
|
2266
4305
|
} | {
|
|
2267
4306
|
type: "REPUBLISHING";
|
|
2268
4307
|
data: {
|
|
@@ -2323,39 +4362,52 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
2323
4362
|
accountId?: string | null | undefined;
|
|
2324
4363
|
requestId?: string | null | undefined;
|
|
2325
4364
|
targetDate?: Date | null | undefined;
|
|
2326
|
-
} | null | undefined;
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
status: "
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
4365
|
+
}[] | null | undefined;
|
|
4366
|
+
}[];
|
|
4367
|
+
transaction: {
|
|
4368
|
+
id: string;
|
|
4369
|
+
accountId: string;
|
|
4370
|
+
platformTransactionId: string;
|
|
4371
|
+
conversationId?: string | null | undefined;
|
|
4372
|
+
shipmentId?: string | null | undefined;
|
|
4373
|
+
buyerPlatformId?: string | null | undefined;
|
|
4374
|
+
sellerPlatformId?: string | null | undefined;
|
|
4375
|
+
items?: {
|
|
4376
|
+
transactionId: string;
|
|
4377
|
+
itemOnPlatformId: string;
|
|
4378
|
+
itemOnPlatform?: {
|
|
4379
|
+
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
4380
|
+
id: string;
|
|
4381
|
+
updatedAt: Date;
|
|
4382
|
+
createdAt: Date;
|
|
2344
4383
|
accountId: string;
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
4384
|
+
itemId: string | number;
|
|
4385
|
+
platformId: string;
|
|
4386
|
+
platformUrl: string;
|
|
4387
|
+
platformPrice: number;
|
|
4388
|
+
publishedAt: Date;
|
|
4389
|
+
conversationId?: string | null | undefined;
|
|
4390
|
+
account?: {
|
|
4391
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
4392
|
+
userId: string | number;
|
|
4393
|
+
name: string;
|
|
4394
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4395
|
+
accountId: string;
|
|
4396
|
+
locale?: string | null | undefined;
|
|
4397
|
+
night?: {
|
|
4398
|
+
startsAt: Date;
|
|
4399
|
+
endsAt: Date;
|
|
4400
|
+
} | null | undefined;
|
|
4401
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
4402
|
+
ordersMaxDelay?: number | null | undefined;
|
|
4403
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
2349
4404
|
} | null | undefined;
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
4405
|
+
viewsCount?: number | null | undefined;
|
|
4406
|
+
favoritesCount?: number | null | undefined;
|
|
2353
4407
|
} | null | undefined;
|
|
2354
|
-
viewsCount?: number | null | undefined;
|
|
2355
|
-
favoritesCount?: number | null | undefined;
|
|
2356
4408
|
}[] | null | undefined;
|
|
2357
|
-
}
|
|
2358
|
-
},
|
|
4409
|
+
};
|
|
4410
|
+
}, {
|
|
2359
4411
|
items: {
|
|
2360
4412
|
userId: string | number;
|
|
2361
4413
|
id: string | number;
|
|
@@ -2544,6 +4596,11 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
2544
4596
|
accountId: string;
|
|
2545
4597
|
caseId: string;
|
|
2546
4598
|
};
|
|
4599
|
+
} | {
|
|
4600
|
+
type: "PUBLISHED";
|
|
4601
|
+
data: {
|
|
4602
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4603
|
+
};
|
|
2547
4604
|
} | {
|
|
2548
4605
|
type: "REPUBLISHING";
|
|
2549
4606
|
data: {
|
|
@@ -2635,142 +4692,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
2635
4692
|
viewsCount?: number | null | undefined;
|
|
2636
4693
|
favoritesCount?: number | null | undefined;
|
|
2637
4694
|
}[] | null | undefined;
|
|
2638
|
-
|
|
2639
|
-
transaction: {
|
|
2640
|
-
id: string;
|
|
2641
|
-
accountId: string;
|
|
2642
|
-
platformTransactionId: string;
|
|
2643
|
-
conversationId?: string | null | undefined;
|
|
2644
|
-
shipmentId?: string | null | undefined;
|
|
2645
|
-
buyerPlatformId?: string | null | undefined;
|
|
2646
|
-
sellerPlatformId?: string | null | undefined;
|
|
2647
|
-
items?: {
|
|
2648
|
-
transactionId: string;
|
|
2649
|
-
itemOnPlatformId: string;
|
|
2650
|
-
itemOnPlatform?: {
|
|
2651
|
-
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
2652
|
-
id: string;
|
|
2653
|
-
updatedAt: Date;
|
|
2654
|
-
createdAt: Date;
|
|
2655
|
-
accountId: string;
|
|
2656
|
-
itemId: string | number;
|
|
2657
|
-
platformId: string;
|
|
2658
|
-
platformUrl: string;
|
|
2659
|
-
platformPrice: number;
|
|
2660
|
-
publishedAt: Date;
|
|
2661
|
-
conversationId?: string | null | undefined;
|
|
2662
|
-
account?: {
|
|
2663
|
-
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
2664
|
-
userId: string | number;
|
|
2665
|
-
name: string;
|
|
2666
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2667
|
-
accountId: string;
|
|
2668
|
-
locale?: string | null | undefined;
|
|
2669
|
-
night?: {
|
|
2670
|
-
startsAt: Date;
|
|
2671
|
-
endsAt: Date;
|
|
2672
|
-
} | null | undefined;
|
|
2673
|
-
favoritesMaxDelay?: number | null | undefined;
|
|
2674
|
-
ordersMaxDelay?: number | null | undefined;
|
|
2675
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
2676
|
-
} | null | undefined;
|
|
2677
|
-
viewsCount?: number | null | undefined;
|
|
2678
|
-
favoritesCount?: number | null | undefined;
|
|
2679
|
-
} | null | undefined;
|
|
2680
|
-
}[] | null | undefined;
|
|
2681
|
-
};
|
|
2682
|
-
}, {
|
|
2683
|
-
items: {
|
|
2684
|
-
userId: string | number;
|
|
2685
|
-
id: string | number;
|
|
2686
|
-
updatedAt: Date;
|
|
2687
|
-
name: string;
|
|
2688
|
-
createdAt: Date;
|
|
2689
|
-
sold: boolean;
|
|
2690
|
-
state?: number | null | undefined;
|
|
2691
|
-
colorIds?: number[] | null | undefined;
|
|
2692
|
-
description?: string | null | undefined;
|
|
2693
|
-
packageSizeId?: number | null | undefined;
|
|
2694
|
-
sizeId?: number | null | undefined;
|
|
2695
|
-
labels?: {
|
|
2696
|
-
itemId: string | number;
|
|
2697
|
-
labelId: string | number;
|
|
2698
|
-
label?: {
|
|
2699
|
-
id: string | number;
|
|
2700
|
-
name: string;
|
|
2701
|
-
createdAt: Date;
|
|
2702
|
-
isUserLabel: boolean;
|
|
2703
|
-
userId?: string | number | null | undefined;
|
|
2704
|
-
itemCount?: number | null | undefined;
|
|
2705
|
-
parentId?: unknown;
|
|
2706
|
-
} | null | undefined;
|
|
2707
|
-
}[] | null | undefined;
|
|
2708
|
-
files?: {
|
|
2709
|
-
itemId: string | number;
|
|
2710
|
-
fileId: string;
|
|
2711
|
-
index?: number | null | undefined;
|
|
2712
|
-
file?: {
|
|
2713
|
-
path: string;
|
|
2714
|
-
userId: string | number;
|
|
2715
|
-
id: string;
|
|
2716
|
-
createdAt: Date;
|
|
2717
|
-
signedUrl: string;
|
|
2718
|
-
} | null | undefined;
|
|
2719
|
-
}[] | null | undefined;
|
|
2720
|
-
fields?: {
|
|
2721
|
-
value: string;
|
|
2722
|
-
itemId: string | number;
|
|
2723
|
-
fieldId: string | number;
|
|
2724
|
-
}[] | null | undefined;
|
|
2725
|
-
sku?: string | null | undefined;
|
|
2726
|
-
categoryId?: number | null | undefined;
|
|
2727
|
-
brandId?: string | number | null | undefined;
|
|
2728
|
-
sex?: string | null | undefined;
|
|
2729
|
-
purchasePrice?: number | null | undefined;
|
|
2730
|
-
purchaseDate?: Date | null | undefined;
|
|
2731
|
-
purchasePlaceId?: string | number | null | undefined;
|
|
2732
|
-
purchased?: boolean | null | undefined;
|
|
2733
|
-
sellingPrice?: number | null | undefined;
|
|
2734
|
-
sellingDate?: Date | null | undefined;
|
|
2735
|
-
sellingPlaceId?: string | number | null | undefined;
|
|
2736
|
-
estimatedPrice?: number | null | undefined;
|
|
2737
|
-
fees?: {
|
|
2738
|
-
value: number;
|
|
2739
|
-
type: string;
|
|
2740
|
-
userId: string | number;
|
|
2741
|
-
id: string | number;
|
|
2742
|
-
updatedAt: Date;
|
|
2743
|
-
name: string;
|
|
2744
|
-
createdAt: Date;
|
|
2745
|
-
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
2746
|
-
startDate: Date;
|
|
2747
|
-
active: boolean;
|
|
2748
|
-
description?: string | null | undefined;
|
|
2749
|
-
itemId?: string | number | null | undefined;
|
|
2750
|
-
endDate?: Date | null | undefined;
|
|
2751
|
-
parentFeeId?: string | number | null | undefined;
|
|
2752
|
-
}[] | null | undefined;
|
|
2753
|
-
feesSum?: number | null | undefined;
|
|
2754
|
-
customerId?: string | number | null | undefined;
|
|
2755
|
-
customer?: {
|
|
2756
|
-
userId: string | number;
|
|
2757
|
-
id: string | number;
|
|
2758
|
-
email: string;
|
|
2759
|
-
firstName: string;
|
|
2760
|
-
lastName: string;
|
|
2761
|
-
birthDate: Date;
|
|
2762
|
-
idNumber: string;
|
|
2763
|
-
phone: string;
|
|
2764
|
-
iban: string;
|
|
2765
|
-
bic: string;
|
|
2766
|
-
phoneVerified: boolean;
|
|
2767
|
-
} | null | undefined;
|
|
2768
|
-
customerType?: string | null | undefined;
|
|
2769
|
-
customerPaid?: boolean | null | undefined;
|
|
2770
|
-
customerPaidDate?: Date | null | undefined;
|
|
2771
|
-
customerPaidType?: string | null | undefined;
|
|
2772
|
-
contractId?: string | number | null | undefined;
|
|
2773
|
-
lastHistory?: {
|
|
4695
|
+
history?: {
|
|
2774
4696
|
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
2775
4697
|
id: string;
|
|
2776
4698
|
createdAt: Date;
|
|
@@ -2868,6 +4790,11 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
2868
4790
|
accountId: string;
|
|
2869
4791
|
caseId: string;
|
|
2870
4792
|
};
|
|
4793
|
+
} | {
|
|
4794
|
+
type: "PUBLISHED";
|
|
4795
|
+
data: {
|
|
4796
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4797
|
+
};
|
|
2871
4798
|
} | {
|
|
2872
4799
|
type: "REPUBLISHING";
|
|
2873
4800
|
data: {
|
|
@@ -2928,36 +4855,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
2928
4855
|
accountId?: string | null | undefined;
|
|
2929
4856
|
requestId?: string | null | undefined;
|
|
2930
4857
|
targetDate?: Date | null | undefined;
|
|
2931
|
-
} | null | undefined;
|
|
2932
|
-
platforms?: {
|
|
2933
|
-
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
2934
|
-
id: string;
|
|
2935
|
-
updatedAt: Date;
|
|
2936
|
-
createdAt: Date;
|
|
2937
|
-
accountId: string;
|
|
2938
|
-
itemId: string | number;
|
|
2939
|
-
platformId: string;
|
|
2940
|
-
platformUrl: string;
|
|
2941
|
-
platformPrice: number;
|
|
2942
|
-
publishedAt: Date;
|
|
2943
|
-
conversationId?: string | null | undefined;
|
|
2944
|
-
account?: {
|
|
2945
|
-
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
2946
|
-
userId: string | number;
|
|
2947
|
-
name: string;
|
|
2948
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2949
|
-
accountId: string;
|
|
2950
|
-
locale?: string | null | undefined;
|
|
2951
|
-
night?: {
|
|
2952
|
-
startsAt: Date;
|
|
2953
|
-
endsAt: Date;
|
|
2954
|
-
} | null | undefined;
|
|
2955
|
-
favoritesMaxDelay?: number | null | undefined;
|
|
2956
|
-
ordersMaxDelay?: number | null | undefined;
|
|
2957
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
2958
|
-
} | null | undefined;
|
|
2959
|
-
viewsCount?: number | null | undefined;
|
|
2960
|
-
favoritesCount?: number | null | undefined;
|
|
2961
4858
|
}[] | null | undefined;
|
|
2962
4859
|
}[];
|
|
2963
4860
|
transaction: {
|