@tolinax/ayoune-interfaces 2026.30.0 → 2026.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,6 +33,27 @@ export interface ISupplierAgreementPrice {
33
33
  answerer?: ObjectId;
34
34
  };
35
35
  }
36
+ /**
37
+ * Marketplace metadata for SupplierAgreements that originated from an
38
+ * external commerce platform (Amazon, AliExpress, eBay, Etsy, Otto, etc.).
39
+ * Set by the aYOUne Companion extension and per-marketplace sync workers.
40
+ */
41
+ export interface ISupplierAgreementMarketplace {
42
+ /** Provider key — 'amazon' | 'aliexpress' | 'ebay' | 'etsy' | 'otto' | 'bol' | 'kaufland' | 'tiktokshop' | 'shein' */
43
+ provider?: string;
44
+ /** Direct URL to the product listing on the marketplace */
45
+ productUrl?: string;
46
+ /** External seller/store identifier on the marketplace (e.g. Amazon seller ID) */
47
+ sellerExternalId?: string;
48
+ /** Human-readable seller/store name as shown on the marketplace */
49
+ sellerName?: string;
50
+ /** Public URL to the seller/store profile */
51
+ sellerStoreUrl?: string;
52
+ /** Source of the data: 'plugin-scrape' | 'provider-api' | 'provider-webhook' | 'manual' */
53
+ source?: string;
54
+ /** When this SupplierAgreement was last synced from the marketplace */
55
+ lastSyncedAt?: Date;
56
+ }
36
57
  export interface ISupplierAgreement extends IDefaultFields {
37
58
  _customerID: ObjectId;
38
59
  _clientID?: ObjectId[];
@@ -53,4 +74,6 @@ export interface ISupplierAgreement extends IDefaultFields {
53
74
  avgPrice?: number;
54
75
  comments?: IComment[];
55
76
  watchers?: any[];
77
+ /** Marketplace metadata if the agreement was created from an external commerce platform */
78
+ marketplace?: ISupplierAgreementMarketplace;
56
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolinax/ayoune-interfaces",
3
- "version": "2026.30.0",
3
+ "version": "2026.31.0",
4
4
  "description": "Houses TypeScript interfaces for aYOUne",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",