@fayz-ai/plugin-inventory 0.9.4 → 0.11.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 (56) hide show
  1. package/dist/components/InventoryOnboarding.d.ts +1 -1
  2. package/dist/components/InventoryOnboarding.d.ts.map +1 -1
  3. package/dist/components/RecipeGapsPanel.d.ts +14 -0
  4. package/dist/components/RecipeGapsPanel.d.ts.map +1 -0
  5. package/dist/data/mock.d.ts.map +1 -1
  6. package/dist/data/reference-data.d.ts +37 -0
  7. package/dist/data/reference-data.d.ts.map +1 -0
  8. package/dist/data/registries.d.ts.map +1 -1
  9. package/dist/data/supabase.d.ts.map +1 -1
  10. package/dist/data/tables.d.ts +6 -0
  11. package/dist/data/tables.d.ts.map +1 -1
  12. package/dist/data/types.d.ts +31 -1
  13. package/dist/data/types.d.ts.map +1 -1
  14. package/dist/index.d.ts +3 -0
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +6919 -316
  17. package/dist/index.js.map +1 -1
  18. package/dist/lib/agent-tools.d.ts +4 -0
  19. package/dist/lib/agent-tools.d.ts.map +1 -0
  20. package/dist/lib/movement-vocabulary.d.ts +30 -0
  21. package/dist/lib/movement-vocabulary.d.ts.map +1 -0
  22. package/dist/lib/recipe-cost.d.ts +22 -0
  23. package/dist/lib/recipe-cost.d.ts.map +1 -0
  24. package/dist/lib/stock-count.d.ts +19 -0
  25. package/dist/lib/stock-count.d.ts.map +1 -0
  26. package/dist/locales/en.d.ts.map +1 -1
  27. package/dist/locales/pt-BR.d.ts.map +1 -1
  28. package/dist/migrations/index.d.ts +21 -0
  29. package/dist/migrations/index.d.ts.map +1 -1
  30. package/dist/types.d.ts +114 -0
  31. package/dist/types.d.ts.map +1 -1
  32. package/dist/views/InventoryPage.d.ts.map +1 -1
  33. package/dist/views/MovementHistoryView.d.ts +4 -1
  34. package/dist/views/MovementHistoryView.d.ts.map +1 -1
  35. package/dist/views/ProductCrudForm.d.ts.map +1 -1
  36. package/dist/views/ProductDetailView.d.ts +9 -0
  37. package/dist/views/ProductDetailView.d.ts.map +1 -0
  38. package/dist/views/ProductListView.d.ts +3 -2
  39. package/dist/views/ProductListView.d.ts.map +1 -1
  40. package/dist/views/ProductStockTab.d.ts +11 -0
  41. package/dist/views/ProductStockTab.d.ts.map +1 -0
  42. package/dist/views/RecipeDetailView.d.ts.map +1 -1
  43. package/dist/views/RecipeFormView.d.ts +3 -1
  44. package/dist/views/RecipeFormView.d.ts.map +1 -1
  45. package/dist/views/RecipesView.d.ts +3 -1
  46. package/dist/views/RecipesView.d.ts.map +1 -1
  47. package/dist/views/StockCountFormView.d.ts +7 -0
  48. package/dist/views/StockCountFormView.d.ts.map +1 -0
  49. package/dist/views/StockCountSessionView.d.ts +15 -0
  50. package/dist/views/StockCountSessionView.d.ts.map +1 -0
  51. package/dist/views/StockCountsView.d.ts +7 -0
  52. package/dist/views/StockCountsView.d.ts.map +1 -0
  53. package/dist/views/StockMovementView.d.ts.map +1 -1
  54. package/dist/views/productEntity.d.ts +7 -1
  55. package/dist/views/productEntity.d.ts.map +1 -1
  56. package/package.json +7 -5
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  export declare function InventoryOnboarding({ onComplete }: {
3
- onComplete: () => void;
3
+ onComplete: () => void | Promise<void>;
4
4
  }): React.JSX.Element;
5
5
  //# sourceMappingURL=InventoryOnboarding.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InventoryOnboarding.d.ts","sourceRoot":"","sources":["../../src/components/InventoryOnboarding.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAWvC,wBAAgB,mBAAmB,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,IAAI,CAAA;CAAE,qBAgD7E"}
1
+ {"version":3,"file":"InventoryOnboarding.d.ts","sourceRoot":"","sources":["../../src/components/InventoryOnboarding.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAWvC,wBAAgB,mBAAmB,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,qBAiE7F"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import type { Recipe, RecipeGaps } from '../types';
3
+ /**
4
+ * What the assistant proposed and could not match to the catalogue, offered
5
+ * back for the user to pick or create. Without this the AI path dead-ends on
6
+ * "she mentioned bacon and it is not in the recipe" — the recovery loop is what
7
+ * made the legacy feature usable.
8
+ */
9
+ export declare function RecipeGapsPanel({ recipe, gaps, onResolved }: {
10
+ recipe: Recipe;
11
+ gaps: RecipeGaps;
12
+ onResolved: () => void | Promise<void>;
13
+ }): React.JSX.Element | null;
14
+ //# sourceMappingURL=RecipeGapsPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecipeGapsPanel.d.ts","sourceRoot":"","sources":["../../src/components/RecipeGapsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAKvC,OAAO,KAAK,EAAW,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE3D;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE;IAC5D,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,UAAU,CAAA;IAChB,UAAU,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACvC,4BAiHA"}
@@ -1 +1 @@
1
- {"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/data/mock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AA2CpD,wBAAgB,2BAA2B,IAAI,qBAAqB,CA8NnE"}
1
+ {"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/data/mock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAwDpD,wBAAgB,2BAA2B,IAAI,qBAAqB,CAmjBnE"}
@@ -0,0 +1,37 @@
1
+ export declare const DEFAULT_MEASUREMENT_UNITS: readonly [{
2
+ readonly name: "Unit";
3
+ readonly abbreviation: "un";
4
+ }, {
5
+ readonly name: "Box";
6
+ readonly abbreviation: "box";
7
+ }, {
8
+ readonly name: "Kilogram";
9
+ readonly abbreviation: "kg";
10
+ }, {
11
+ readonly name: "Gram";
12
+ readonly abbreviation: "g";
13
+ }, {
14
+ readonly name: "Liter";
15
+ readonly abbreviation: "L";
16
+ }, {
17
+ readonly name: "Milliliter";
18
+ readonly abbreviation: "mL";
19
+ }];
20
+ export declare const DEFAULT_STOCK_LOCATION: {
21
+ readonly name: "Main Storage";
22
+ readonly description: "Primary storage area";
23
+ };
24
+ export declare function getMissingMeasurementUnits(rows: Array<{
25
+ abbreviation?: string | null;
26
+ }>): typeof DEFAULT_MEASUREMENT_UNITS[number][];
27
+ export declare function getDuplicateDefaultUnitIds(rows: Array<{
28
+ id: string;
29
+ abbreviation?: string | null;
30
+ created_at?: string | null;
31
+ }>): string[];
32
+ export declare function getDuplicateAutoCreatedLocationIds(rows: Array<{
33
+ id: string;
34
+ name?: string | null;
35
+ created_at?: string | null;
36
+ }>): string[];
37
+ //# sourceMappingURL=reference-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reference-data.d.ts","sourceRoot":"","sources":["../../src/data/reference-data.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;EAO5B,CAAA;AAEV,eAAO,MAAM,sBAAsB;;;CAGzB,CAAA;AAEV,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,KAAK,CAAC;IAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,GAC5C,OAAO,yBAAyB,CAAC,MAAM,CAAC,EAAE,CAO5C;AAED,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,GACpF,MAAM,EAAE,CAwBV;AAED,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,GAC5E,MAAM,EAAE,CAaV"}
@@ -1 +1 @@
1
- {"version":3,"file":"registries.d.ts","sourceRoot":"","sources":["../../src/data/registries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAyEtD,eAAO,MAAM,mBAAmB,EAAE,iBAAiB,EAwClD,CAAA"}
1
+ {"version":3,"file":"registries.d.ts","sourceRoot":"","sources":["../../src/data/registries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAyEtD,eAAO,MAAM,mBAAmB,EAAE,iBAAiB,EAuClD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"supabase.d.ts","sourceRoot":"","sources":["../../src/data/supabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AA6DpD,wBAAgB,+BAA+B,IAAI,qBAAqB,CA2SvE"}
1
+ {"version":3,"file":"supabase.d.ts","sourceRoot":"","sources":["../../src/data/supabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAyUpD,wBAAgB,+BAA+B,IAAI,qBAAqB,CAkrBvE"}
@@ -6,5 +6,11 @@ export declare const T: {
6
6
  readonly recipeIngredients: "plg_inventory_recipe_ingredients";
7
7
  readonly measurementUnits: "plg_inventory_measurement_units";
8
8
  readonly productCategories: "plg_inventory_product_categories";
9
+ readonly productDetails: "plg_inventory_product_details";
10
+ readonly recipeGroups: "plg_inventory_recipe_groups";
11
+ readonly countSessions: "plg_inventory_count_sessions";
12
+ readonly countItems: "plg_inventory_count_items";
9
13
  };
14
+ /** Slot key of plg_inventory_stock_positions — matches uq_..._slot (006). */
15
+ export declare const STOCK_POSITION_SLOT = "tenant_id,product_id,stock_location_id,batch_number,expiration_date";
10
16
  //# sourceMappingURL=tables.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../src/data/tables.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,CAAC;;;;;;;;CAQJ,CAAA"}
1
+ {"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../src/data/tables.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,CAAC;;;;;;;;;;;;CAYJ,CAAA;AAEV,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB,wEAAwE,CAAA"}
@@ -1,11 +1,22 @@
1
- import type { Product, StockMovement, StockPosition, StockLocation, Recipe, RecipeIngredient, CreateProductInput, CreateStockMovementInput, CreateRecipeInput, ProductQuery, MovementQuery, PaginatedResult, InventorySummary } from '../types';
1
+ import type { Product, StockMovement, StockPosition, StockLocation, Supplier, Recipe, RecipeIngredient, RecipeGroup, StockCountSession, StockCountItem, ProductCategory, CreateProductInput, CreateStockMovementInput, CreateRecipeInput, CreateRecipeIngredientInput, OpenStockCountInput, CloseStockCountResult, ProductQuery, MovementQuery, PaginatedResult, InventorySummary } from '../types';
2
2
  export interface InventoryDataProvider {
3
+ /**
4
+ * Ensure the tenant has the reference rows the inventory UI depends on.
5
+ * Implementations must be idempotent because forms may call this on every
6
+ * fresh mount (for example after the active tenant changes).
7
+ */
8
+ ensureReferenceData?(): Promise<void>;
3
9
  getProducts(query: ProductQuery): Promise<PaginatedResult<Product>>;
4
10
  getProductById(id: string): Promise<Product | null>;
5
11
  createProduct(input: CreateProductInput): Promise<Product>;
6
12
  updateProduct(id: string, data: Partial<Product>): Promise<Product>;
13
+ /** Stores a product photo in the tenant-scoped media bucket and persists its URL. */
14
+ uploadProductImage?(productId: string, file: File): Promise<string>;
7
15
  getMovements(query: MovementQuery): Promise<PaginatedResult<StockMovement>>;
8
16
  createMovement(input: CreateStockMovementInput): Promise<StockMovement>;
17
+ /** Drops a movement and unwinds what it did to the position and to on-hand. */
18
+ reverseMovement(movementId: string): Promise<void>;
19
+ /** Positions of one product, with the location name resolved. */
9
20
  getPositions(productId: string): Promise<StockPosition[]>;
10
21
  getLocations(): Promise<StockLocation[]>;
11
22
  createLocation(data: {
@@ -13,10 +24,29 @@ export interface InventoryDataProvider {
13
24
  description?: string;
14
25
  unitId?: string;
15
26
  }): Promise<StockLocation>;
27
+ getSuppliers(): Promise<Supplier[]>;
28
+ getCategories(): Promise<ProductCategory[]>;
29
+ getCountSessions(): Promise<StockCountSession[]>;
30
+ getCountSession(id: string): Promise<StockCountSession | null>;
31
+ getCountItems(sessionId: string): Promise<StockCountItem[]>;
32
+ /** Creates the session AND snapshots what the system believes right now. */
33
+ openCountSession(input: OpenStockCountInput): Promise<StockCountSession>;
34
+ /** `quantity` null clears the entry back to uncounted — which is not zero. */
35
+ saveCountEntry(itemId: string, quantity: number | null, notes?: string): Promise<StockCountItem>;
36
+ /** Atomic and idempotent: re-closing emits no second round of adjustments. */
37
+ closeCountSession(sessionId: string, reason?: string): Promise<CloseStockCountResult>;
38
+ cancelCountSession(sessionId: string): Promise<StockCountSession>;
16
39
  getRecipes(): Promise<Recipe[]>;
17
40
  getRecipeById(id: string): Promise<Recipe | null>;
18
41
  getRecipeIngredients(recipeId: string): Promise<RecipeIngredient[]>;
42
+ /** Every recipe's lines in one round trip — the list costs rows without an
43
+ * N+1. Each line carries the ingredient's cost basis. */
44
+ getAllRecipeIngredients(): Promise<RecipeIngredient[]>;
45
+ getRecipeGroups(recipeId: string): Promise<RecipeGroup[]>;
19
46
  createRecipe(input: CreateRecipeInput): Promise<Recipe>;
47
+ /** Partial update — how the screen closes the gaps the assistant left. */
48
+ updateRecipe(id: string, patch: Partial<Recipe>): Promise<Recipe>;
49
+ addRecipeIngredient(recipeId: string, input: CreateRecipeIngredientInput): Promise<RecipeIngredient>;
20
50
  getSummary(): Promise<InventorySummary>;
21
51
  }
22
52
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/data/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EACpD,MAAM,EAAE,gBAAgB,EACxB,kBAAkB,EAAE,wBAAwB,EAAE,iBAAiB,EAC/D,YAAY,EAAE,aAAa,EAC3B,eAAe,EAAE,gBAAgB,EAClC,MAAM,UAAU,CAAA;AAEjB,MAAM,WAAW,qBAAqB;IAEpC,WAAW,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAA;IACnE,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAA;IACnD,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC1D,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAGnE,YAAY,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAA;IAC3E,cAAc,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;IAGvE,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAA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dist/index.d.ts CHANGED
@@ -53,4 +53,7 @@ export interface InventoryPluginOptions {
53
53
  export declare function createInventoryPlugin(options?: InventoryPluginOptions): PluginManifest;
54
54
  export type { InventoryDataProvider } from './data/types';
55
55
  export type { ResolvedInventoryConfig } from './context';
56
+ export { MOVEMENT_TYPES, MOVEMENT_TYPE_VALUES, LEGACY_PT_MOVEMENT_TYPE, movementTypeSpec, normalizeMovementType, } from './lib/movement-vocabulary';
57
+ export type { MovementTypeSpec } from './lib/movement-vocabulary';
58
+ export type { MovementType } from './types';
56
59
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAI5E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAazD,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,cAAc,CAAC,EAAE,OAAO,CAAA;QACxB,aAAa,CAAC,EAAE,OAAO,CAAA;QACvB;;;;;;WAMG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAA;KACnB,CAAA;IACD,MA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