Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

refactor: regenerate types

Brad Barbin1839dc77e83e
diff --git a/apps/erp/app/modules/items/ui/Parts/PartForm.tsx b/apps/erp/app/modules/items/ui/Parts/PartForm.tsx
index c777bf0c27..ae92ce362a 100644
--- a/apps/erp/app/modules/items/ui/Parts/PartForm.tsx
+++ b/apps/erp/app/modules/items/ui/Parts/PartForm.tsx
@@ -36,7 +36,6 @@ import {
Number,
Select,
Submit,
- TextArea,
UnitOfMeasure,
} from "~/components/Form";
import { ReplenishmentSystemIcon } from "~/components/Icons";
@@ -247,9 +246,7 @@ const PartForm = ({ initialValues, type = "card", onClose }: PartFormProps) => {
)}
<Input name="name" label="Short Description" />
- <div className="md:col-span-full">
- <TextArea name="description" label="Long Description" />
- </div>
+
<Select
name="itemTrackingType"
label="Tracking Type"
diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.ts
index 837a82202e..928a84bf9c 100644
--- a/packages/database/src/swagger-docs-schema.ts
+++ b/packages/database/src/swagger-docs-schema.ts
@@ -56031,6 +56031,63 @@ export default {
tags: ["(rpc) get_company_id_from_api_key"],
},
},
+ "/rpc/uuid_to_base58": {
+ get: {
+ parameters: [
+ {
+ format: "uuid",
+ in: "query",
+ name: "_uuid",
+ required: true,
+ type: "string",
+ },
+ ],
+ produces: [
+ "application/json",
+ "application/vnd.pgrst.object+json;nulls=stripped",
+ "application/vnd.pgrst.object+json",
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ },
+ },
+ tags: ["(rpc) uuid_to_base58"],
+ },
+ post: {
+ parameters: [
+ {
+ in: "body",
+ name: "args",
+ required: true,
+ schema: {
+ properties: {
+ _uuid: {
+ format: "uuid",
+ type: "string",
+ },
+ },
+ required: ["_uuid"],
+ type: "object",
+ },
+ },
+ {
+ $ref: "#/parameters/preferParams",
+ },
+ ],
+ produces: [
+ "application/json",
+ "application/vnd.pgrst.object+json;nulls=stripped",
+ "application/vnd.pgrst.object+json",
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ },
+ },
+ tags: ["(rpc) uuid_to_base58"],
+ },
+ },
"/rpc/get_assigned_job_operations": {
get: {
parameters: [
@@ -62839,7 +62896,7 @@ export default {
],
properties: {
id: {
- default: "public.xid()",
+ default: "public.id('sp'::text)",
description: "Note:\nThis is a Primary Key.<pk/>",
format: "text",
type: "string",
@@ -71765,7 +71822,7 @@ export default {
required: ["id", "location", "feedback"],
properties: {
id: {
- default: "public.id('fb'::text)",
+ default: "public.id()",
description: "Note:\nThis is a Primary Key.<pk/>",
format: "text",
type: "string",
@@ -78776,7 +78833,7 @@ export default {
required: ["id"],
properties: {
id: {
- default: "public.id('tm'::text)",
+ default: "public.id()",
description:
"Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
format: "text",
@@ -81289,7 +81346,7 @@ export default {
],
properties: {
id: {
- default: "public.id('i'::text)",
+ default: "public.id('item'::text)",
description: "Note:\nThis is a Primary Key.<pk/>",
format: "text",
type: "string",
diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts
index af883923b5..00aa83e10e 100644
--- a/packages/database/src/types.ts
+++ b/packages/database/src/types.ts
@@ -46710,6 +46710,12 @@ export type Database = {
}
Returns: Json
}
+ uuid_to_base58: {
+ Args: {
+ _uuid: string
+ }
+ Returns: string
+ }
xid: {
Args: {
_at?: string
diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.ts
index af883923b5..00aa83e10e 100644
--- a/packages/database/supabase/functions/lib/types.ts
+++ b/packages/database/supabase/functions/lib/types.ts
@@ -46710,6 +46710,12 @@ export type Database = {
}
Returns: Json
}
+ uuid_to_base58: {
+ Args: {
+ _uuid: string
+ }
+ Returns: string
+ }
xid: {
Args: {
_at?: string
diff --git a/packages/database/supabase/migrations/20250728114226_xid-to-uuid.sql b/packages/database/supabase/migrations/20250728114226_xid-to-uuid.sql
index 6598c05bbb..070637605b 100644
--- a/packages/database/supabase/migrations/20250728114226_xid-to-uuid.sql
+++ b/packages/database/supabase/migrations/20250728114226_xid-to-uuid.sql
@@ -530,10 +530,10 @@ ALTER TABLE "invite" ALTER COLUMN "id" DROP DEFAULT;
ALTER TABLE "invite" ALTER COLUMN "id" SET DEFAULT id('inv');
ALTER TABLE "feedback" ALTER COLUMN "id" DROP DEFAULT;
-ALTER TABLE "feedback" ALTER COLUMN "id" SET DEFAULT id('fb');
+ALTER TABLE "feedback" ALTER COLUMN "id" SET DEFAULT id();
ALTER TABLE "terms" ALTER COLUMN "id" DROP DEFAULT;
-ALTER TABLE "terms" ALTER COLUMN "id" SET DEFAULT id('tm');
+ALTER TABLE "terms" ALTER COLUMN "id" SET DEFAULT id();
ALTER TABLE "opportunity" ALTER COLUMN "id" DROP DEFAULT;
ALTER TABLE "opportunity" ALTER COLUMN "id" SET DEFAULT id('opp');
@@ -547,9 +547,3 @@ ALTER TABLE "period" ALTER COLUMN "id" SET DEFAULT id('per');
ALTER TABLE "supplierPart" ALTER COLUMN "id" DROP DEFAULT;
ALTER TABLE "supplierPart" ALTER COLUMN "id" SET DEFAULT id('sp');
-ALTER TABLE "supplierPartToItem" ALTER COLUMN "id" DROP DEFAULT;
-ALTER TABLE "supplierPartToItem" ALTER COLUMN "id" SET DEFAULT id();
-
-
-
--- DROP FUNCTION xid(TIMESTAMPTZ);
\ No newline at end of file