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.
@@ -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
@@ -313,7 +313,7 @@ declare global {
313
313
  pointOfSale?: number;
314
314
  activitiesStartedAt?: number;
315
315
  invoiceNote?: string;
316
- showInvoiceLogo?: string;
316
+ showInvoiceLogo?: boolean;
317
317
  currency: CatalogId;
318
318
  cert?: string;
319
319
  csr?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.6.44",
3
+ "version": "1.6.45",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",