sinfactura-types 1.6.44 → 1.6.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mercadolibre.d.ts +53 -0
- package/dist/store.d.ts +1 -1
- package/package.json +1 -1
package/dist/mercadolibre.d.ts
CHANGED
|
@@ -61,5 +61,58 @@ declare global {
|
|
|
61
61
|
currency: string;
|
|
62
62
|
paidAt?: number;
|
|
63
63
|
}
|
|
64
|
+
type GtinRequirementTag = "not_required" | "conditional_required" | "new_required";
|
|
65
|
+
interface MlAttribute {
|
|
66
|
+
id: string;
|
|
67
|
+
name?: string;
|
|
68
|
+
value_id?: string;
|
|
69
|
+
value_name?: string;
|
|
70
|
+
attribute_group_id?: string;
|
|
71
|
+
attribute_group_name?: string;
|
|
72
|
+
}
|
|
73
|
+
interface MlRequiredAttribute {
|
|
74
|
+
id: string;
|
|
75
|
+
name?: string;
|
|
76
|
+
required: boolean;
|
|
77
|
+
tags?: string[];
|
|
78
|
+
}
|
|
79
|
+
interface MlCategoryPrediction {
|
|
80
|
+
domainName: string;
|
|
81
|
+
categoryId: string;
|
|
82
|
+
categoryName: string;
|
|
83
|
+
attributes: MlAttribute[];
|
|
84
|
+
requiredAttributes: MlRequiredAttribute[];
|
|
85
|
+
immediatePayment?: "required" | "optional";
|
|
86
|
+
maxTitleLength?: number;
|
|
87
|
+
gtinRequirement: GtinRequirementTag;
|
|
88
|
+
}
|
|
89
|
+
interface PublishPrediction extends MlCategoryPrediction {
|
|
90
|
+
isUpMigrated: boolean;
|
|
91
|
+
}
|
|
92
|
+
interface MlPublishRequest {
|
|
93
|
+
productId: string;
|
|
94
|
+
categoryId: string;
|
|
95
|
+
attributes: MlAttribute[];
|
|
96
|
+
listingTypeId: string;
|
|
97
|
+
saleTerms?: Record<string, unknown>[];
|
|
98
|
+
pictures?: {
|
|
99
|
+
url: string;
|
|
100
|
+
}[];
|
|
101
|
+
description?: string;
|
|
102
|
+
}
|
|
103
|
+
interface MlPublishResponse {
|
|
104
|
+
productId: string;
|
|
105
|
+
itemId: string;
|
|
106
|
+
userProductId?: string;
|
|
107
|
+
isUpMigrated: boolean;
|
|
108
|
+
status: "linked";
|
|
109
|
+
}
|
|
110
|
+
interface MlFieldError {
|
|
111
|
+
field: string;
|
|
112
|
+
code?: string;
|
|
113
|
+
message: string;
|
|
114
|
+
type?: "warning" | "error";
|
|
115
|
+
causeId?: number;
|
|
116
|
+
}
|
|
64
117
|
}
|
|
65
118
|
export {};
|
package/dist/store.d.ts
CHANGED