removed files

This commit is contained in:
2026-08-28 11:03:56 +05:30
parent bf4dc4e888
commit 9f64b42f8a
13 changed files with 291 additions and 76 deletions

View File

@@ -224,10 +224,23 @@ export interface ProductCategory {
categoryname: string;
}
/**
* `GET /web/products/getproductsubcategories`.
*
* The wire names are `subcatid` and `subcatname` — ABBREVIATED, unlike
* `ProductCategory` next door, which spells `categoryid`/`categoryname` in
* full. This interface claimed the long forms, so every field read off it was
* `undefined` and TypeScript had no way to know: the rows arrive typed by this
* declaration, not by what the server sent. `scripts/appgap.mjs` built its
* subcategory map from them and got a map of `undefined → undefined`, then
* reported "(none returned)" for a category that has six.
*/
export interface ProductSubCategory {
subcategoryid: number;
subcategoryname: string;
subcatid: number;
subcatname: string;
categoryid?: number;
image?: string;
status?: string;
}
/** Body of POST /web/products/importcatalogueproduct — send an ARRAY of these. */