@fayz-ai/plugin-inventory 0.12.10 → 0.13.1
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/components/InventoryGeneralSettings.d.ts +15 -1
- package/dist/components/InventoryGeneralSettings.d.ts.map +1 -1
- package/dist/data/supabase.d.ts.map +1 -1
- package/dist/data/types.d.ts +10 -1
- package/dist/data/types.d.ts.map +1 -1
- package/dist/index.js +4027 -114
- package/dist/index.js.map +1 -1
- package/dist/locales/en.d.ts.map +1 -1
- package/dist/locales/pt-BR.d.ts.map +1 -1
- package/dist/migrations/index.d.ts +14 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/store.d.ts +8 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/types.d.ts +33 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/views/InventoryPage.d.ts +1 -1
- package/dist/views/InventoryPage.d.ts.map +1 -1
- package/dist/views/UsageAuditView.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,3 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import type { ResolvedInventoryConfig } from '../context';
|
|
3
|
+
/**
|
|
4
|
+
* Os módulos do Estoque que a CASA liga e desliga — não o pacote.
|
|
5
|
+
*
|
|
6
|
+
* `modules.recipes` na fábrica diz se este aplicativo OFERECE ficha técnica;
|
|
7
|
+
* isto diz se esta conta a usa. Uma cozinha vive dela e um salão não tem
|
|
8
|
+
* nenhuma — e os dois rodam o mesmo pacote central. Ver
|
|
9
|
+
* FINANCIAL_MODULE_DEFAULTS, que é a mesma decisão no Financeiro.
|
|
10
|
+
*/
|
|
11
|
+
export declare const INVENTORY_MODULE_DEFAULTS: {
|
|
12
|
+
recipes: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function InventoryGeneralSettings({ config }: {
|
|
15
|
+
config?: ResolvedInventoryConfig;
|
|
16
|
+
}): React.JSX.Element;
|
|
3
17
|
//# sourceMappingURL=InventoryGeneralSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InventoryGeneralSettings.d.ts","sourceRoot":"","sources":["../../src/components/InventoryGeneralSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"InventoryGeneralSettings.d.ts","sourceRoot":"","sources":["../../src/components/InventoryGeneralSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AAEzD;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB;;CAErC,CAAA;AAcD,wBAAgB,wBAAwB,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,uBAAuB,CAAA;CAAE,qBAkCxF"}
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"supabase.d.ts","sourceRoot":"","sources":["../../src/data/supabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAmapD,wBAAgB,+BAA+B,IAAI,qBAAqB,CA2lCvE"}
|
package/dist/data/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Product, StockMovement, StockPosition, StockLocation, Supplier, Recipe, RecipeIngredient, RecipeGroup, StockCountSession, StockCountItem, ProductCategory, CreateProductInput, CreateStockMovementInput, CreateRecipeInput, CreateRecipeIngredientInput, OpenStockCountInput, CloseStockCountResult, ProductQuery, MovementQuery, UsageAuditQuery, UsageAuditEntry, UsageAuditCorrection, UsageAuditBatchResult, PaginatedResult, InventorySummary, RestockLine, CategoryCount, ConsumeRecipeForSourceInput, ReverseRecipeConsumptionInput, InventoryConsumptionResult } from '../types';
|
|
1
|
+
import type { Product, StockMovement, StockPosition, StockLocation, Supplier, Recipe, RecipeIngredient, RecipeGroup, StockCountSession, StockCountItem, ProductCategory, CreateProductInput, CreateStockMovementInput, CreateRecipeInput, CreateRecipeIngredientInput, OpenStockCountInput, CloseStockCountResult, ProductQuery, MovementQuery, UsageAuditQuery, UsageAuditEntry, UsageAuditCorrection, UsageAuditBatchResult, UsageAuditApproval, UsageAuditApproveResult, PaginatedResult, InventorySummary, RestockLine, CategoryCount, ConsumeRecipeForSourceInput, ReverseRecipeConsumptionInput, InventoryConsumptionResult } from '../types';
|
|
2
2
|
export interface InventoryDataProvider {
|
|
3
3
|
/**
|
|
4
4
|
* Ensure the tenant has the reference rows the inventory UI depends on.
|
|
@@ -37,6 +37,15 @@ export interface InventoryDataProvider {
|
|
|
37
37
|
reason: string;
|
|
38
38
|
lines: UsageAuditCorrection[];
|
|
39
39
|
}): Promise<UsageAuditBatchResult>;
|
|
40
|
+
/**
|
|
41
|
+
* Aceitar o consumo. `post: true` é "Baixar no estoque" — aceita E desconta;
|
|
42
|
+
* `false` é "Aprovar" — aceita sem mexer no saldo.
|
|
43
|
+
*/
|
|
44
|
+
approveUsageBatch?(input: {
|
|
45
|
+
post: boolean;
|
|
46
|
+
lines: UsageAuditApproval[];
|
|
47
|
+
reason?: string;
|
|
48
|
+
}): Promise<UsageAuditApproveResult>;
|
|
40
49
|
/** Positions of one product, with the location name resolved. */
|
|
41
50
|
getPositions(productId: string): Promise<StockPosition[]>;
|
|
42
51
|
getLocations(): Promise<StockLocation[]>;
|
package/dist/data/types.d.ts.map
CHANGED
|
@@ -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,EAAE,QAAQ,EAC9D,MAAM,EA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