@agentforge-io/sdk-server 4.37.0 → 4.38.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +10 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -1298,6 +1298,8 @@ export interface CatalogFileMapping {
1298
1298
  image?: string;
1299
1299
  /** The template's "tipo" column (product | service). */
1300
1300
  kind?: string;
1301
+ /** AGF-UNITS — the unit of measure column («unidad»: kg, libra, caja, canasta…). Blank cells = unidades. */
1302
+ unit?: string;
1301
1303
  }
1302
1304
  export interface CatalogFilePlan {
1303
1305
  willCreate: number;
@@ -1305,6 +1307,8 @@ export interface CatalogFilePlan {
1305
1307
  unchanged: number;
1306
1308
  skipped: number;
1307
1309
  categoriesToCreate: string[];
1310
+ /** AGF-UNITS — units the file writes that the business does not have yet: the import creates them as its own. */
1311
+ unitsToCreate?: string[];
1308
1312
  }
1309
1313
  export interface CatalogFilePreview {
1310
1314
  headers: string[];
@@ -1323,6 +1327,8 @@ export interface CatalogFileApplyResult {
1323
1327
  skipped: number;
1324
1328
  unchanged: number;
1325
1329
  categoriesCreated: string[];
1330
+ /** AGF-UNITS — the business's own units the import created. */
1331
+ unitsCreated?: string[];
1326
1332
  photosImported: number;
1327
1333
  warnings: string[];
1328
1334
  }
@@ -1347,6 +1353,8 @@ export interface CatalogMenuItem {
1347
1353
  priceDeltaCents: number;
1348
1354
  }>;
1349
1355
  }>;
1356
+ /** AGF-UNITS — what the price is per, when the menu says it («libra», «kg»); absent = unidad. */
1357
+ unit?: string;
1350
1358
  }
1351
1359
  export interface CatalogMenuReadInput {
1352
1360
  /** The pasted menu, or a note to go with the file. */
@@ -1413,6 +1421,8 @@ export interface CatalogImportColumnMapping {
1413
1421
  * other value → product with a warning. Optional; omit for sources
1414
1422
  * without such a column. */
1415
1423
  kind?: string;
1424
+ /** AGF-UNITS — the unit of measure column («unidad»). Optional; blank cells = unidades. */
1425
+ unit?: string;
1416
1426
  }
1417
1427
  export interface CatalogImportRunResult {
1418
1428
  created: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentforge-io/sdk-server",
3
- "version": "4.37.0",
3
+ "version": "4.38.0",
4
4
  "description": "Server-side SDK for backend apps integrating with AgentForge platform. Auth via ChatToken, ak_live_ API key or App secret (sk_live_), with App installations across tenants.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",