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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
feat(integrations): add Onshape Government integration (#1759)
Brad Barbin520434dd9de1
diff --git a/.claude/rules/environment-configuration.md b/.claude/rules/environment-configuration.mdindex b58255b4d6..243e114f32 100644--- a/.claude/rules/environment-configuration.md+++ b/.claude/rules/environment-configuration.md@@ -109,7 +109,10 @@ integrations' pending states survive. `consumeOAuthState()` validates all fieldsremoves that integration's entry on every attempt (the cookie is destroyed once empty).The integrations page loader issues one for every integration with an `oauth` config(Ramp, Xero, QuickBooks, Jira — IntegrationCard puts it on the authorize URL), Onshape's-`api+/integrations.onshape.install.ts` issues its own, and each callback consumes it.+`api+/integrations.onshape.install.ts` issues its own (via `beginOnshapeAuthorization`,+`@carbon/ee/onshape.server`), Onshape Government's is issued by the integration settings+save — its OAuth client is the customer's private app, not an env var — and each callback+consumes it.Slack binds its state separately (`SLACK_STATE_SECRET`, `@slack/oauth` state store,checked against the caller's company and user). Managed deployment propagates both Ramp OAuthvars through `ci/src/deploy.ts` → `sst.config.ts` → the ERP service only.diff --git a/apps/erp/app/components/BoMExplorer/BoMExplorer.tsx b/apps/erp/app/components/BoMExplorer/BoMExplorer.tsxindex 6d2ed7e0a7..bf8dbc41cb 100644--- a/apps/erp/app/components/BoMExplorer/BoMExplorer.tsx+++ b/apps/erp/app/components/BoMExplorer/BoMExplorer.tsx@@ -1,4 +1,5 @@import { PreviewCard } from "@base-ui-components/react/preview-card";+import { hasOnshapeIntegration } from "@carbon/ee";import {Badge,Copy,@@ -539,7 +540,10 @@ function BoMNodeText({ node }: { node: BoMNode }) {function BoMNodeData({ node }: { node: BoMNode }) {const integrations = useIntegrations();- const onShapeState = getOnshapeState(node, integrations.has("onshape"));+ const onShapeState = getOnshapeState(+ node,+ hasOnshapeIntegration(integrations)+ );// Display only — the exact quantity is unchanged everywhere else, and the// node's preview card still shows it at full precision.const formatQuantity = useQuantityFormatter();@@ -562,7 +566,10 @@ function BoMNodeData({ node }: { node: BoMNode }) {function BoMNodePreview({ node }: { node: BoMNode }) {const { t } = useLingui();const integrations = useIntegrations();- const onShapeState = getOnshapeState(node, integrations.has("onshape"));+ const onShapeState = getOnshapeState(+ node,+ hasOnshapeIntegration(integrations)+ );return (<VStack className="w-full text-sm">diff --git a/apps/erp/app/modules/agent/kb/docs/integrations/cad.md b/apps/erp/app/modules/agent/kb/docs/integrations/cad.mdindex a6035c1ae2..32390cff73 100644--- a/apps/erp/app/modules/agent/kb/docs/integrations/cad.md+++ b/apps/erp/app/modules/agent/kb/docs/integrations/cad.md@@ -1,6 +1,6 @@# CAD-> Sync CAD data from Onshape into Carbon.+> Sync CAD data from Onshape and Onshape Government into Carbon.## Onshape@@ -29,6 +29,53 @@ Connect to **Onshape** over **OAuth** to bring CAD data into Carbon. No keys toOnshape only appears when its OAuth client is configured server-side (`ONSHAPE_CLIENT_ID`) — see`docs/platform/self-hosting/environment-variables`.+## Onshape Government++**Onshape Government** is the ITAR and FedRAMP edition of Onshape. It has no public App Store, so Carbon's+public app can't be installed there. Instead, your Enterprise owns a **private OAuth app** that Carbon+connects through. Everything after the connection works the same as Onshape: browsing documents, importing a+bill of materials, and syncing released assets.+++ ### Create the private app in Onshape++ An Enterprise admin opens **Enterprise settings → Developer → OAuth applications** and creates a new OAuth+ application. Choose **Connected Cloud App** as the type. Set the redirect URL to+ `https://<your Carbon address>/api/integrations/onshape-government/oauth`. Grant read access to profile+ information, read access to documents, and write access to documents. Onshape shows the client secret only+ once, so copy it straight away. If you'd rather not do this yourselves, give Carbon support a seat in your+ Enterprise and we'll build the app with you.+++ ### Enter it in Carbon++ Open **Onshape Government** under **Settings → Integrations**. Enter your Onshape URL, the OAuth URL, and the+ app's client ID and client secret. The integration drawer shows the exact redirect URL for your Carbon+ address.+++ ### Approve the connection++ When you save, Carbon sends you to your Onshape tenant to approve the connection, then brings you back.+++| Setting | What it controls |+| --- | --- |+| Onshape URL | The address your team signs in to Onshape Government at. Each Enterprise has its own. |+| OAuth URL | The OAuth server for your Onshape Government environment, from your Onshape account team. |+| Client ID / Client secret | The private OAuth app from your Enterprise. The secret is stored encrypted. Leave it empty to keep the saved one, or enter it again to reconnect. |+| Sync released assets | Same as on Onshape: pulls released drawings and models onto matching items. |++A private app's API calls count toward your Enterprise's **yearly Onshape API limit**. Browsing and importing+a bill of materials take a few calls each. Released-asset sync takes several calls per released revision, so+leave it off if your allowance is tight.++Onshape Government is only offered on controlled (ITAR) Carbon instances — those running with+`CONTROLLED_ENVIRONMENT=true`. See `docs/platform/self-hosting/environment-variables`.++A company connects to one Onshape at a time. Uninstall Onshape before connecting Onshape Government, and the+other way round.+## Related- Items The part records CAD data attaches to.diff --git a/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/environment-variables.md b/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/environment-variables.mdindex 89c2dd2fdf..f54424fae0 100644--- a/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/environment-variables.md+++ b/apps/erp/app/modules/agent/kb/docs/platform/self-hosting/environment-variables.md@@ -12,7 +12,7 @@ as you need them.Platform-wide behavior and edition.One of `community`, `cloud`, `enterprise`, or `test`. Gates edition-specific features.-Enables ITAR / controlled-environment restrictions: the US-Person certification gate, ITAR hostnames and branding, Slack and analytics disabled, and mandatory `docs/reference/two-factor` that a company admin cannot turn off.+Enables ITAR / controlled-environment restrictions: the US-Person certification gate, ITAR hostnames and branding, Slack and analytics disabled, and mandatory `docs/reference/two-factor` that a company admin cannot turn off. It is also what makes the Onshape Government integration available — see `docs/integrations/cad`.Allowed sign-in methods: `email`, `google`, `azure`, `passkey`, `sso` (`docs/reference/single-sign-on`, Enterprise edition only).Base domain the apps are served from.Public URL of the ERP app.diff --git a/apps/erp/app/modules/agent/kb/manifest.json b/apps/erp/app/modules/agent/kb/manifest.jsonindex b4cc52d6da..fdb6229246 100644--- a/apps/erp/app/modules/agent/kb/manifest.json+++ b/apps/erp/app/modules/agent/kb/manifest.json@@ -118,9 +118,9 @@{"slug": "docs/integrations/cad","title": "CAD",- "description": "Sync CAD data from Onshape into Carbon.",+ "description": "Sync CAD data from Onshape and Onshape Government into Carbon.","keywords": ["cad", "docs", "integrations"],- "headings": ["Onshape", "Related"]+ "headings": ["Onshape", "Onshape Government", "Related"]},{"slug": "docs/integrations/email",diff --git a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsxindex 15b457e49b..f9ed7f775e 100644--- a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx+++ b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx@@ -1,3 +1,4 @@+import { hasOnshapeIntegration } from "@carbon/ee";import {DropdownMenu,DropdownMenuContent,@@ -155,7 +156,7 @@ function ItemBoMExplorerContent({</BoMExplorerActions></HStack>)}- {integrations.has("onshape") && (+ {hasOnshapeIntegration(integrations) && (<div className="flex flex-shrink-0 w-full"><OnshapeSyncmakeMethodId={makeMethodId}diff --git a/apps/erp/app/modules/settings/integration-errors.ts b/apps/erp/app/modules/settings/integration-errors.tsindex bb6c302f9d..aae014c03e 100644--- a/apps/erp/app/modules/settings/integration-errors.ts+++ b/apps/erp/app/modules/settings/integration-errors.ts@@ -92,6 +92,52 @@ export const integrationErrors = {unexpected: {title: msg`Couldn't complete the Onshape connection`,description: msg`An unexpected error occurred while connecting to Onshape. Try connecting again.`+ },+ "connection-conflict": {+ title: msg`Onshape Government is already connected`,+ description: msg`A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape.`+ }+ },+ // A Government customer's private OAuth app. Same codes as `onshape` — the two+ // share one callback handler — but the fixes live in the customer's own+ // Enterprise settings and in the Carbon integration settings, not in Carbon's+ // environment.+ "onshape-government": {+ "write-permission": {+ title: msg`Onshape Government denied the connection`,+ description: msg`In your Enterprise settings under Developer, edit the private OAuth application's permissions to include "Application can write to your documents", then save the integration settings again.`+ },+ denied: {+ title: msg`Onshape Government denied the connection`,+ description: msg`The authorization was refused in Onshape. Save the integration settings to try again.`+ },+ "invalid-state": {+ title: msg`The Onshape Government connection expired`,+ description: msg`Open the Onshape Government integration and save its settings to connect again.`+ },+ "invalid-response": {+ title: msg`Onshape Government didn't return an authorization code`,+ description: msg`The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again.`+ },+ "not-configured": {+ title: msg`Onshape Government isn't configured`,+ description: msg`Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save.`+ },+ "token-exchange": {+ title: msg`Onshape Government rejected the authorization`,+ description: msg`Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again.`+ },+ "save-failed": {+ title: msg`Couldn't save the Onshape Government connection`,+ description: msg`Onshape authorized the connection but saving it failed. Save the integration settings to try again.`+ },+ unexpected: {+ title: msg`Couldn't complete the Onshape Government connection`,+ description: msg`An unexpected error occurred while connecting to Onshape. Save the integration settings to try again.`+ },+ "connection-conflict": {+ title: msg`Onshape is already connected`,+ description: msg`A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government.`}}} satisfies Record<string, Record<string, IntegrationErrorMessage>>;diff --git a/apps/erp/app/modules/settings/onshape-oauth.server.ts b/apps/erp/app/modules/settings/onshape-oauth.server.tsnew file mode 100644index 0000000000..9c747db7dc--- /dev/null+++ b/apps/erp/app/modules/settings/onshape-oauth.server.ts@@ -0,0 +1,220 @@+import { VERCEL_URL } from "@carbon/auth";+import { getCarbonServiceRole } from "@carbon/auth/client.server";+import { consumeOAuthState } from "@carbon/auth/oauth-state.server";+import {+ ensureOnshapeReleaseWebhook,+ onshapeConnectionHasWriteScope+} from "@carbon/ee/hooks.server";+import {+ exchangeOnshapeAuthorizationCode,+ getConflictingOnshapeIntegration,+ ONSHAPE_OAUTH_SCOPES,+ type OnshapeIntegrationId+} from "@carbon/ee/onshape";+import { loadOnshapeOAuthConfig } from "@carbon/ee/onshape.server";+import { getLogger } from "@carbon/logger";+import { redirect } from "react-router";+import { oAuthCallbackSchema } from "~/modules/shared";+import { path } from "~/utils/path";+import type { IntegrationErrorCode } from "./integration-errors";+import { integrationErrorSearch } from "./integration-errors";+import { upsertCompanyIntegration } from "./settings.server";++const logger = getLogger("erp", "onshape", "oauth");++/** Absolute integrations-page URL on this request's origin. */+function integrationsUrl(request: Request) {+ const requestUrl = new URL(request.url);++ if (!VERCEL_URL || VERCEL_URL.includes("localhost")) {+ requestUrl.protocol = "http";+ }++ return `${requestUrl.origin}${path.to.integrations}`;+}++/**+ * The OAuth callback for both Onshape integrations — the public app+ * (`/api/integrations/onshape/oauth`) and a Government customer's private app+ * (`/api/integrations/onshape-government/oauth`). Only where the client comes+ * from differs, and `loadOnshapeOAuthConfig` owns that.+ *+ * Onshape reaches this by redirecting the user's browser, so a failure has to+ * render as something they can act on: send them back to the integrations+ * page, which turns the code into a toast. Only a code crosses the URL;+ * `integrationErrors` owns the copy.+ */+export async function completeOnshapeAuthorization({+ request,+ integrationId,+ userId,+ companyId+}: {+ request: Request;+ integrationId: OnshapeIntegrationId;+ userId: string;+ companyId: string;+}) {+ const url = new URL(request.url);+ const searchParams = Object.fromEntries(url.searchParams.entries());++ // The state must be the one issued to THIS browser for this user, company and+ // integration. Without the check anyone could send a victim a callback URL+ // carrying the attacker's own Onshape code, linking the victim's company to+ // the attacker's Onshape account. Single-use: consumed whether it matches or+ // not.+ const consumedState = await consumeOAuthState(+ request,+ url.searchParams.get("state") ?? "",+ { integrationId, userId, companyId }+ );++ // Both integrations declare the same codes, each with its own copy.+ const connectionFailed = (+ reason: IntegrationErrorCode<OnshapeIntegrationId>+ ) =>+ redirect(+ `${integrationsUrl(request)}${integrationErrorSearch<OnshapeIntegrationId>(integrationId, reason)}`,+ { headers: { "Set-Cookie": consumedState.cookie } }+ );++ if (!consumedState.valid) {+ logger.error("Invalid Onshape OAuth state", { integrationId, companyId });+ return connectionFailed("invalid-state");+ }++ // Onshape reports a refused authorization by redirecting here with `error`+ // (and usually `error_description`) in place of `code`. `invalid_scope`+ // means the OAuth application isn't granted a scope we asked for — in+ // practice `OAuth2Write` ("Application can write to your documents"), so the+ // UI can name the exact fix instead of echoing Onshape's wording.+ if (searchParams.error) {+ logger.error("Onshape authorization refused", {+ integrationId,+ error: searchParams.error,+ errorDescription: searchParams.error_description+ });+ return connectionFailed(+ searchParams.error === "invalid_scope" ? "write-permission" : "denied"+ );+ }++ const authResponse = oAuthCallbackSchema.safeParse(searchParams);+ if (!authResponse.success) {+ // Log the parameter names (never the values — `code` is a live credential).+ logger.error("Invalid Onshape auth response", {+ integrationId,+ params: Object.keys(searchParams)+ });+ return connectionFailed("invalid-response");+ }++ const serviceRole = getCarbonServiceRole();++ // A company holds one Onshape connection at a time; two would leave every+ // background job guessing which tenant to talk to.+ if (+ await getConflictingOnshapeIntegration(+ serviceRole,+ companyId,+ integrationId+ )+ ) {+ return connectionFailed("connection-conflict");+ }++ const oauth = await loadOnshapeOAuthConfig(companyId, integrationId);+ if (!oauth) return connectionFailed("not-configured");++ try {+ let tokenData: Awaited<ReturnType<typeof exchangeOnshapeAuthorizationCode>>;+ try {+ tokenData = await exchangeOnshapeAuthorizationCode(+ oauth,+ authResponse.data.code+ );+ } catch (error) {+ logger.error("Onshape token exchange failed", { integrationId, error });+ return connectionFailed("token-exchange");+ }++ if (!tokenData.access_token) {+ logger.error("Onshape token response had no access token", {+ integrationId+ });+ return connectionFailed("token-exchange");+ }++ const existing = await serviceRole+ .from("companyIntegration")+ .select("metadata")+ .eq("id", integrationId)+ .eq("companyId", companyId)+ .maybeSingle();+ const existingMetadata = (existing.data?.metadata ?? {}) as Record<+ string,+ unknown+ >;++ // The scope actually granted by this authorization. Onshape returns it on+ // the token response; fall back to what we requested. A token minted+ // without write can't export assets or manage the release webhook, and a+ // refresh can't widen it — so asset sync is switched off rather than left+ // on-but-broken.+ const scope = tokenData.scope ?? ONSHAPE_OAUTH_SCOPES.join(" ");+ const metadata: Record<string, unknown> = {+ ...existingMetadata,+ credentials: {+ type: "oauth2",+ accessToken: tokenData.access_token,+ refreshToken: tokenData.refresh_token,+ expiresAt: new Date(Date.now() + 3600 * 1000).toISOString()+ },+ scope,+ baseUrl: oauth.baseUrl+ };+ // Settings survive a reconnect (a Government app's client and tenant, the+ // asset-sync toggle), but the Onshape company is re-resolved from the new+ // token: it may belong to a different account or tenant.+ delete metadata.onshapeCompanyId;+ const canWrite = onshapeConnectionHasWriteScope(metadata);+ if (!canWrite) metadata.assetSyncEnabled = false;++ const saved = await upsertCompanyIntegration(serviceRole, {+ id: integrationId,+ active: true,+ // @ts-expect-error TS2322 - metadata is a JSON object+ metadata,+ updatedBy: userId,+ companyId+ });++ if (saved.error || !saved.data?.metadata) {+ logger.error("Failed to save Onshape integration", {+ integrationId,+ error: saved.error+ });+ return connectionFailed("save-failed");+ }++ // A Government connection is configured BEFORE it is authorized, so asset+ // sync may already be on: subscribe to releases now that there is a token.+ // Best-effort — the settings save retries it and reports a failure there.+ if (metadata.assetSyncEnabled === true) {+ const webhook = await ensureOnshapeReleaseWebhook(companyId, true);+ if (!webhook.ok) {+ logger.error("Onshape release webhook registration failed", {+ integrationId,+ error: webhook.error+ });+ }+ }++ return redirect(integrationsUrl(request), {+ headers: { "Set-Cookie": consumedState.cookie }+ });+ } catch (error) {+ logger.error("Onshape OAuth Error", { integrationId, error });+ return connectionFailed("unexpected");+ }+}diff --git a/apps/erp/app/routes/api+/integrations.onshape-government.oauth.ts b/apps/erp/app/routes/api+/integrations.onshape-government.oauth.tsnew file mode 100644index 0000000000..c26cf1911f--- /dev/null+++ b/apps/erp/app/routes/api+/integrations.onshape-government.oauth.ts@@ -0,0 +1,24 @@+import { requirePermissions } from "@carbon/auth/auth.server";+import { OnshapeGovernment } from "@carbon/ee";+import type { LoaderFunctionArgs } from "react-router";+import { completeOnshapeAuthorization } from "~/modules/settings/onshape-oauth.server";++export const config = {+ runtime: "nodejs"+};++// The redirect URL a Government customer registers on the private OAuth app in+// their Onshape Enterprise. The authorization itself is started by saving the+// integration settings (see x+/settings+/integrations.$id.tsx).+export async function loader({ request }: LoaderFunctionArgs) {+ const { userId, companyId } = await requirePermissions(request, {+ update: "settings"+ });++ return completeOnshapeAuthorization({+ request,+ integrationId: OnshapeGovernment.id,+ userId,+ companyId+ });+}diff --git a/apps/erp/app/routes/api+/integrations.onshape.backfill.ts b/apps/erp/app/routes/api+/integrations.onshape.backfill.tsindex 05e9618222..27f7f69dd7 100644--- a/apps/erp/app/routes/api+/integrations.onshape.backfill.ts+++ b/apps/erp/app/routes/api+/integrations.onshape.backfill.ts@@ -1,4 +1,5 @@import { requirePermissions } from "@carbon/auth/auth.server";+import { getOnshapeIntegration } from "@carbon/ee/onshape";import { trigger } from "@carbon/jobs";import type { ActionFunctionArgs } from "react-router";import { data } from "react-router";@@ -7,7 +8,9 @@ export const config = {runtime: "nodejs"};-// POST: kick off the Onshape released-asset backfill for the current company.+// POST: kick off the Onshape released-asset backfill for the current company —+// through whichever Onshape connection it has (public or Government), so both+// integrations share this action endpoint.// Admin-only. Gated on the SAME configurable flag the job checks// (companyIntegration.metadata.assetSyncEnabled) so it can't be run unless the// company has turned Onshape asset sync on.@@ -16,12 +19,7 @@ export async function action({ request }: ActionFunctionArgs) {update: "settings"});- const integration = await client- .from("companyIntegration")- .select("active, metadata")- .eq("companyId", companyId)- .eq("id", "onshape")- .single();+ const integration = await getOnshapeIntegration(client, companyId);if (integration.error || !integration.data?.active) {return data(diff --git a/apps/erp/app/routes/api+/integrations.onshape.install.ts b/apps/erp/app/routes/api+/integrations.onshape.install.tsindex 9c6eef37fb..cf1b557d6b 100644--- a/apps/erp/app/routes/api+/integrations.onshape.install.ts+++ b/apps/erp/app/routes/api+/integrations.onshape.install.ts@@ -1,43 +1,31 @@-import { ONSHAPE_CLIENT_ID, ONSHAPE_OAUTH_REDIRECT_URL } from "@carbon/auth";import { requirePermissions } from "@carbon/auth/auth.server";-import { issueOAuthState } from "@carbon/auth/oauth-state.server";import { Onshape } from "@carbon/ee";+import { beginOnshapeAuthorization } from "@carbon/ee/onshape.server";import type { LoaderFunctionArgs } from "react-router";import { data } from "react-router";export async function loader({ request }: LoaderFunctionArgs) {- const { userId, companyId } = await requirePermissions(request, {});-- if (!ONSHAPE_CLIENT_ID || !ONSHAPE_OAUTH_REDIRECT_URL) {- return data({ error: "Onshape OAuth not configured" }, { status: 500 });- }-- // Bound to this browser, user and company, and consumed by the callback —- // otherwise anyone could hand a victim a callback URL carrying their own- // Onshape code and link the victim's company to the attacker's account.- const { state, cookie } = await issueOAuthState(- { integrationId: Onshape.id, userId, companyId },- request- );-- const params = new URLSearchParams({- client_id: ONSHAPE_CLIENT_ID,- redirect_uri: ONSHAPE_OAUTH_REDIRECT_URL,- response_type: "code",- state+ const { userId, companyId } = await requirePermissions(request, {+ update: "settings"});- // Read for models/revisions/documents; Write to create translation (GLTF/PDF- // export) jobs and manage the release webhook subscription. Both scopes must be- // granted to the OAuth application in the Onshape dev portal, or Onshape refuses- // the authorization and redirects back with `error` instead of `code`.- //- // Appended outside URLSearchParams so the delimiter is `%20`: RFC 6749 scope is- // space-delimited, and URLSearchParams serializes a space as `+`, which only- // means "space" under form-encoding rules a query string doesn't guarantee.- const scope = ["OAuth2Read", "OAuth2Write"].join("%20");+ const started = await beginOnshapeAuthorization(request, {+ integrationId: Onshape.id,+ userId,+ companyId+ });- const url = `https://oauth.onshape.com/oauth/authorize?${params}&scope=${scope}`;+ // `error` is an integration-errors code; the client sends it to the+ // integrations page, which renders the copy.+ if (!started.ok) {+ return data(+ { error: started.reason },+ { status: started.reason === "not-configured" ? 500 : 409 }+ );+ }- return data({ url }, { headers: { "Set-Cookie": cookie } });+ return data(+ { url: started.url },+ { headers: { "Set-Cookie": started.cookie } }+ );}diff --git a/apps/erp/app/routes/api+/integrations.onshape.oauth.ts b/apps/erp/app/routes/api+/integrations.onshape.oauth.tsindex 757455305f..6578329499 100644--- a/apps/erp/app/routes/api+/integrations.onshape.oauth.ts+++ b/apps/erp/app/routes/api+/integrations.onshape.oauth.ts@@ -1,193 +1,21 @@-import {- ONSHAPE_CLIENT_ID,- ONSHAPE_CLIENT_SECRET,- ONSHAPE_OAUTH_REDIRECT_URL,- VERCEL_URL-} from "@carbon/auth";import { requirePermissions } from "@carbon/auth/auth.server";-import { getCarbonServiceRole } from "@carbon/auth/client.server";-import { consumeOAuthState } from "@carbon/auth/oauth-state.server";import { Onshape } from "@carbon/ee";-import { getLogger } from "@carbon/logger";import type { LoaderFunctionArgs } from "react-router";-import { redirect } from "react-router";-import type { IntegrationErrorCode } from "~/modules/settings/integration-errors";-import { integrationErrorSearch } from "~/modules/settings/integration-errors";-import { upsertCompanyIntegration } from "~/modules/settings/settings.server";-import { oAuthCallbackSchema } from "~/modules/shared";-import { path } from "~/utils/path";+import { completeOnshapeAuthorization } from "~/modules/settings/onshape-oauth.server";export const config = {runtime: "nodejs"};-const logger = getLogger("erp", "onshape", "oauth");--/** Absolute integrations-page URL on this request's origin. */-function integrationsUrl(request: Request) {- const requestUrl = new URL(request.url);-- if (!VERCEL_URL || VERCEL_URL.includes("localhost")) {- requestUrl.protocol = "http";- }-- return `${requestUrl.origin}${path.to.integrations}`;-}--/**- * Onshape reaches this loader by redirecting the user's browser, so a failure has- * to render as something they can act on. Returning `data({ error })` produced a- * bare `{"error":"…"}` JSON document — dead end, no navigation, no next step. Send- * them back to the integrations page, which turns the code into a toast. Only a- * code crosses the URL; `integrationErrors` owns the copy.- */-function connectionFailed(- request: Request,- reason: IntegrationErrorCode<"onshape">,- stateCookie: string-) {- return redirect(- `${integrationsUrl(request)}${integrationErrorSearch("onshape", reason)}`,- { headers: { "Set-Cookie": stateCookie } }- );-}-export async function loader({ request }: LoaderFunctionArgs) {const { userId, companyId } = await requirePermissions(request, {update: "settings"});- const url = new URL(request.url);- const searchParams = Object.fromEntries(url.searchParams.entries());-- // The state must be the one install.ts issued to THIS browser for this user- // and company. Without the check anyone could send a victim a callback URL- // carrying the attacker's own Onshape code, linking the victim's company to- // the attacker's Onshape account. Single-use: consumed whether it matches or not.- const consumedState = await consumeOAuthState(+ return completeOnshapeAuthorization({request,- url.searchParams.get("state") ?? "",- { integrationId: Onshape.id, userId, companyId }- );-- if (!consumedState.valid) {- logger.error("Invalid Onshape OAuth state", { companyId, userId });- return connectionFailed(request, "invalid-state", consumedState.cookie);- }-- // Onshape reports a refused authorization by redirecting here with `error` (and- // usually `error_description`) in place of `code` — e.g. `invalid_scope` when the- // OAuth application in the Onshape dev portal isn't granted a scope install.ts- // asked for. Parsing for `code` first collapsed every one of those into an opaque- // "Invalid Onshape auth response", so surface it instead.- if (searchParams.error) {- logger.error("Onshape authorization refused", {- error: searchParams.error,- errorDescription: searchParams.error_description- });-- // `invalid_scope` means the OAuth application isn't granted a scope we asked- // for. In practice that's `OAuth2Write` — labelled "Application can write to- // your documents" in the Onshape dev portal — so the UI can name the exact fix- // instead of echoing Onshape's wording, which never says which scope is missing.- return connectionFailed(- request,- searchParams.error === "invalid_scope" ? "write-permission" : "denied",- consumedState.cookie- );- }-- const authResponse = oAuthCallbackSchema.safeParse(searchParams);-- if (!authResponse.success) {- // Log the parameter names (never the values — `code` is a live credential)- // so a malformed callback is diagnosable from the logs.- logger.error("Invalid Onshape auth response", {- params: Object.keys(searchParams)- });- return connectionFailed(request, "invalid-response", consumedState.cookie);- }-- const { data: params } = authResponse;-- if (- !ONSHAPE_CLIENT_ID ||- !ONSHAPE_CLIENT_SECRET ||- !ONSHAPE_OAUTH_REDIRECT_URL- ) {- return connectionFailed(request, "not-configured", consumedState.cookie);- }-- try {- const tokenResponse = await fetch("https://oauth.onshape.com/oauth/token", {- method: "POST",- headers: {- "Content-Type": "application/x-www-form-urlencoded"- },- body: new URLSearchParams({- grant_type: "authorization_code",- code: params.code,- client_id: ONSHAPE_CLIENT_ID,- client_secret: ONSHAPE_CLIENT_SECRET,- redirect_uri: ONSHAPE_OAUTH_REDIRECT_URL- })- });-- if (!tokenResponse.ok) {- logger.error("Onshape token exchange failed", {- status: tokenResponse.status,- body: await tokenResponse.text()- });- return connectionFailed(request, "token-exchange", consumedState.cookie);- }-- const tokenData = await tokenResponse.json();-- if (!tokenData.access_token) {- logger.error("Onshape token response had no access token");- return connectionFailed(request, "token-exchange", consumedState.cookie);- }-- const serviceRole = getCarbonServiceRole();- const createdIntegration = await upsertCompanyIntegration(serviceRole, {- id: Onshape.id,- active: true,- metadata: {- credentials: {- type: "oauth2",- accessToken: tokenData.access_token,- refreshToken: tokenData.refresh_token,- expiresAt: new Date(Date.now() + 3600 * 1000).toISOString()- },- // The scope actually granted by this authorization. Onshape returns it on- // the token response; fall back to what we requested (install.ts always- // asks for read+write). Used to tell an already-connected user they must- // reconnect before enabling asset sync — a token minted before write was- // requested is read-only, and a refresh can't widen it. Legacy installs- // predate this field (no `scope`), which reads as read-only → prompt.- scope: tokenData.scope ?? "OAuth2Read OAuth2Write",- baseUrl: "https://cad.onshape.com"- },- updatedBy: userId,- companyId: companyId- });-- if (createdIntegration?.data?.metadata) {- // The release webhook is registered when the user enables asset sync (see- // the integration settings save + ensureOnshapeReleaseWebhook), not on- // connect — asset sync is off by default, so there's nothing to subscribe- // to yet at this point.- return redirect(integrationsUrl(request), {- headers: { "Set-Cookie": consumedState.cookie }- });- } else {- logger.error("Failed to save Onshape integration", {- createdIntegration- });- return connectionFailed(request, "save-failed", consumedState.cookie);- }- } catch (err) {- logger.error("Onshape OAuth Error", { error: err });- return connectionFailed(request, "unexpected", consumedState.cookie);- }+ integrationId: Onshape.id,+ userId,+ companyId+ });}diff --git a/apps/erp/app/routes/api+/webhook.onshape.$companyId.ts b/apps/erp/app/routes/api+/webhook.onshape.$companyId.tsindex 45b93446bc..2fd03dc3a9 100644--- a/apps/erp/app/routes/api+/webhook.onshape.$companyId.ts+++ b/apps/erp/app/routes/api+/webhook.onshape.$companyId.ts@@ -1,15 +1,16 @@import { getCarbonServiceRole } from "@carbon/auth/client.server";+import { getOnshapeIntegration } from "@carbon/ee/onshape";import { trigger } from "@carbon/jobs";import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router";import { data } from "react-router";import { z } from "zod";-import { getIntegration } from "../../modules/settings";// Inbound receiver for Onshape lifecycle webhooks (mirrors// webhook.jira.$companyId.ts / webhook.linear.$companyId.ts).//// Onshape ──POST──▶ /api/webhook/onshape/:companyId-// │ resolve companyId + active onshape integration+// │ resolve companyId + its active Onshape connection+// │ (public app or Government private app)// │ validate minimal envelope, log the event// ▼// onshape.revision.created ──▶ trigger("onshape-revision-sync")@@ -58,7 +59,7 @@ export async function action({ request, params }: ActionFunctionArgs) {}const serviceRole = getCarbonServiceRole();- const integration = await getIntegration(serviceRole, "onshape", companyId);+ const integration = await getOnshapeIntegration(serviceRole, companyId);if (integration.error) {console.error(diff --git a/apps/erp/app/routes/x+/settings+/integrations.$id.tsx b/apps/erp/app/routes/x+/settings+/integrations.$id.tsxindex caf7e3a65f..bf763ce5eb 100644--- a/apps/erp/app/routes/x+/settings+/integrations.$id.tsx+++ b/apps/erp/app/routes/x+/settings+/integrations.$id.tsx@@ -1,5 +1,6 @@import { assertIsPost, error, success } from "@carbon/auth";import { requirePermissions } from "@carbon/auth/auth.server";+import { getCarbonServiceRole } from "@carbon/auth/client.server";import { flash } from "@carbon/auth/session.server";import type { Database, Json } from "@carbon/database";import {@@ -53,9 +54,16 @@ import {} from "@carbon/ee/hooks.server";import {getPath,+ patchIntegrationState,SECRET_KEYS,WEBHOOK_SIGNING_SECRET_KEY} from "@carbon/ee/integrations/secrets";+import {+ getConflictingOnshapeIntegration,+ isOnshapeIntegrationId,+ ONSHAPE_GOVERNMENT_INTEGRATION_ID+} from "@carbon/ee/onshape";+import { beginOnshapeAuthorization } from "@carbon/ee/onshape.server";import { isIntegrationWhitelisted } from "@carbon/ee/plan";import { requireFeature } from "@carbon/ee/plan.server";import {@@ -1699,13 +1707,55 @@ export async function action({ request, params }: ActionFunctionArgs) {metadata = foldRampCredentials(metadata);}+ // Onshape Government is configured BEFORE it is authorized: the admin enters+ // their private OAuth app here, and the save then sends them through that+ // app's consent screen (below). Re-authorize whenever there is no token yet or+ // the app it was issued by changed — a token is only good for the client and+ // tenant that issued it.+ const onshapeAppChanged =+ integrationId === ONSHAPE_GOVERNMENT_INTEGRATION_ID &&+ (["baseUrl", "oauthUrl", "clientId"] as const).some(+ (key) => metadata[key] !== existingMetadata[key]+ );+ const onshapeNeedsAuthorization =+ integrationId === ONSHAPE_GOVERNMENT_INTEGRATION_ID &&+ (!existingMetadata.credentials ||+ onshapeAppChanged ||+ (typeof metadata.clientSecret === "string" &&+ metadata.clientSecret.trim().length > 0));++ // A company holds one Onshape connection at a time; two would leave every+ // background job guessing which tenant to talk to.+ if (isOnshapeIntegrationId(integrationId) && !existing.data?.active) {+ const conflict = await getConflictingOnshapeIntegration(+ client,+ companyId,+ integrationId+ );+ if (conflict) {+ return data(+ {},+ await flash(+ request,+ error(+ null,+ "Another Onshape integration is already connected. Uninstall it before connecting this one."+ )+ )+ );+ }+ }+// Onshape asset sync needs the OAuth2Write scope (export jobs + webhook). A// connection authorized read-only can't run it, and a refresh can't widen the// scope — only a reconnect can. If a read-only user is turning the feature ON,// don't persist an on-but-non-functional toggle: force it back off here and- // tell them to reconnect first (below). Leaving it off imposes nothing.+ // tell them to reconnect first (below). Leaving it off imposes nothing. A+ // connection about to be (re)authorized is judged by the callback instead,+ // against the scope it is actually granted.const onshapeActivatingWithoutWrite =- integrationId === "onshape" &&+ isOnshapeIntegrationId(integrationId) &&+ !onshapeNeedsAuthorization &&(metadata as Record<string, unknown>).assetSyncEnabled === true &&!onshapeConnectionHasWriteScope(existingMetadata);if (onshapeActivatingWithoutWrite) {@@ -1728,7 +1778,10 @@ export async function action({ request, params }: ActionFunctionArgs) {"ramp","rillet"]);- if (FORM_SECRET_INTEGRATIONS.has(integrationId)) {+ if (+ FORM_SECRET_INTEGRATIONS.has(integrationId) ||+ integrationId === ONSHAPE_GOVERNMENT_INTEGRATION_ID+ ) {const alreadyVaulted = existing.data?.secretRef != null;// The optional webhook signing secret is not a credential: it must not// satisfy the "a credential is required" check on its own.@@ -1752,6 +1805,53 @@ export async function action({ request, params }: ActionFunctionArgs) {}}+ // A connected Government app whose tenant or client changed: its tokens were+ // issued by the OLD app for the OLD host. Clear them now rather than when+ // consent completes — an abandoned or failed consent would otherwise leave+ // them live, sent to the new host by every job. The upsert below only drops+ // plaintext fields; vaulted secrets merge, so they are removed explicitly.+ if (onshapeAppChanged && existingMetadata.credentials) {+ // Unsubscribe the old tenant's release webhook while its token still works.+ if (existingMetadata.assetSyncEnabled === true) {+ const unsubscribed = await ensureOnshapeReleaseWebhook(companyId, false);+ if (!unsubscribed.ok) {+ logger.error("Could not remove the previous Onshape release webhook", {+ companyId,+ error: unsubscribed.error+ });+ }+ }+ try {+ await patchIntegrationState(+ getCarbonServiceRole(),+ companyId,+ integrationId,+ {+ removeMetadata: ["credentials", "scope", "onshapeCompanyId"],+ removeSecrets: ["credentials.accessToken", "credentials.refreshToken"]+ }+ );+ } catch (clearError) {+ logger.error("Could not clear the previous Onshape credentials", {+ companyId,+ error: clearError+ });+ return data(+ {},+ await flash(+ request,+ error(+ clearError,+ `Couldn't disconnect the previous ${integration.name} app. Try saving again.`+ )+ )+ );+ }+ delete metadata.credentials;+ delete metadata.scope;+ delete metadata.onshapeCompanyId;+ }+const update = await upsertCompanyIntegration(client, {id: integrationId,active: true,@@ -1823,7 +1923,42 @@ export async function action({ request, params }: ActionFunctionArgs) {// and need a reconnect, so surface a registration failure instead of flashing// success while the sync silently never fires. The settings themselves are// already saved either way.- if (integrationId === "onshape") {+ if (onshapeNeedsAuthorization) {+ const started = await beginOnshapeAuthorization(request, {+ integrationId: ONSHAPE_GOVERNMENT_INTEGRATION_ID,+ userId,+ companyId+ });+ await invalidateIntegrationHealthCache(integrationId, companyId);+ if (!started.ok) {+ logger.error("Could not start Onshape Government authorization", {+ companyId,+ reason: started.reason+ });+ throw redirect(+ path.to.integrations,+ await flash(+ request,+ error(+ started.reason,+ "Saved Onshape Government settings, but couldn't start the connection. Check the Onshape URL, OAuth URL, client ID and client secret."+ )+ )+ );+ }+ // Off to the tenant's consent screen; its callback finishes the install+ // (and registers the release webhook if asset sync is on).+ throw redirect(started.url, { headers: { "Set-Cookie": started.cookie } });+ }++ if (isOnshapeIntegrationId(integrationId)) {+ // The public app reconnects from the integrations list; a Government+ // private app reconnects by saving its client secret again.+ const reconnect =+ integrationId === ONSHAPE_GOVERNMENT_INTEGRATION_ID+ ? "Grant the private app write access in Onshape, then enter its client secret again and save to reconnect"+ : "Reconnect Onshape to grant write access";+// Read-only connection trying to turn asset sync on: we already forced the// toggle back off above, so just tell them exactly what to do. Explicit and// scope-accurate — not inferred from a downstream webhook failure.@@ -1835,7 +1970,7 @@ export async function action({ request, params }: ActionFunctionArgs) {request,error("onshape connection is read-only",- "Onshape is connected with read-only access. Reconnect Onshape to grant write access, then enable asset sync."+ `${integration.name} is connected with read-only access. ${reconnect}, then enable asset sync.`)));@@ -1855,7 +1990,7 @@ export async function action({ request, params }: ActionFunctionArgs) {request,error(webhookResult.error,- "Saved Onshape settings, but couldn't register the release webhook. Reconnect Onshape to grant write access, then save again."+ `Saved ${integration.name} settings, but couldn't register the release webhook. ${reconnect}, then save again.`)));diff --git a/docs/content/docs/integrations/cad.mdx b/docs/content/docs/integrations/cad.mdxindex f61b5ea6f1..af4583bf42 100644--- a/docs/content/docs/integrations/cad.mdx+++ b/docs/content/docs/integrations/cad.mdx@@ -1,7 +1,7 @@---title: CADplan: Business-description: Sync CAD data from Onshape into Carbon.+description: Sync CAD data from Onshape and Onshape Government into Carbon.---## Onshape@@ -35,6 +35,59 @@ Onshape only appears when its OAuth client is configured server-side (`ONSHAPE_C[Environment variables](/docs/platform/self-hosting/environment-variables).</Callout>+## Onshape Government++**Onshape Government** is the ITAR and FedRAMP edition of Onshape. It has no public App Store, so Carbon's+public app can't be installed there. Instead, your Enterprise owns a **private OAuth app** that Carbon+connects through. Everything after the connection works the same as Onshape: browsing documents, importing a+bill of materials, and syncing released assets.++<Steps>+ <Step>+ ### Create the private app in Onshape++ An Enterprise admin opens **Enterprise settings → Developer → OAuth applications** and creates a new OAuth+ application. Choose **Connected Cloud App** as the type. Set the redirect URL to+ `https://<your Carbon address>/api/integrations/onshape-government/oauth`. Grant read access to profile+ information, read access to documents, and write access to documents. Onshape shows the client secret only+ once, so copy it straight away. If you'd rather not do this yourselves, give Carbon support a seat in your+ Enterprise and we'll build the app with you.+ </Step>+ <Step>+ ### Enter it in Carbon++ Open **Onshape Government** under **Settings → Integrations**. Enter your Onshape URL, the OAuth URL, and the+ app's client ID and client secret. The integration drawer shows the exact redirect URL for your Carbon+ address.+ </Step>+ <Step>+ ### Approve the connection++ When you save, Carbon sends you to your Onshape tenant to approve the connection, then brings you back.+ </Step>+</Steps>++| Setting | What it controls |+| --- | --- |+| Onshape URL | The address your team signs in to Onshape Government at. Each Enterprise has its own. |+| OAuth URL | The OAuth server for your Onshape Government environment, from your Onshape account team. |+| Client ID / Client secret | The private OAuth app from your Enterprise. The secret is stored encrypted. Leave it empty to keep the saved one, or enter it again to reconnect. |+| Sync released assets | Same as on Onshape: pulls released drawings and models onto matching items. |++<Callout type="warn">+A private app's API calls count toward your Enterprise's **yearly Onshape API limit**. Browsing and importing+a bill of materials take a few calls each. Released-asset sync takes several calls per released revision, so+leave it off if your allowance is tight.+</Callout>++<Callout type="info">+Onshape Government is only offered on controlled (ITAR) Carbon instances — those running with+`CONTROLLED_ENVIRONMENT=true`. See [Environment variables](/docs/platform/self-hosting/environment-variables).+</Callout>++A company connects to one Onshape at a time. Uninstall Onshape before connecting Onshape Government, and the+other way round.+## Related<Cards>diff --git a/docs/content/docs/platform/self-hosting/environment-variables.mdx b/docs/content/docs/platform/self-hosting/environment-variables.mdxindex d86c18c86c..6af57736b8 100644--- a/docs/content/docs/platform/self-hosting/environment-variables.mdx+++ b/docs/content/docs/platform/self-hosting/environment-variables.mdx@@ -14,7 +14,7 @@ Platform-wide behavior and edition.<EnvVars><EnvVar name="CARBON_EDITION" type="enum">One of `community`, `cloud`, `enterprise`, or `test`. Gates edition-specific features.</EnvVar>-<EnvVar name="CONTROLLED_ENVIRONMENT" type="boolean">Enables ITAR / controlled-environment restrictions: the US-Person certification gate, ITAR hostnames and branding, Slack and analytics disabled, and mandatory [two-factor authentication](/docs/reference/two-factor) that a company admin cannot turn off.</EnvVar>+<EnvVar name="CONTROLLED_ENVIRONMENT" type="boolean">Enables ITAR / controlled-environment restrictions: the US-Person certification gate, ITAR hostnames and branding, Slack and analytics disabled, and mandatory [two-factor authentication](/docs/reference/two-factor) that a company admin cannot turn off. It is also what makes the Onshape Government integration available — see [CAD](/docs/integrations/cad#onshape-government).</EnvVar><EnvVar name="AUTH_PROVIDERS" type="enum[]">Allowed sign-in methods: `email`, `google`, `azure`, `passkey`, `sso` ([single sign-on](/docs/reference/single-sign-on), Enterprise edition only).</EnvVar><EnvVar name="DOMAIN" type="string">Base domain the apps are served from.</EnvVar><EnvVar name="ERP_URL" type="url">Public URL of the ERP app.</EnvVar>diff --git a/packages/checks/src/conformance/baseline.json b/packages/checks/src/conformance/baseline.jsonindex 4330752496..6939317610 100644--- a/packages/checks/src/conformance/baseline.json+++ b/packages/checks/src/conformance/baseline.json@@ -83,7 +83,6 @@"no-integration-id-branching::apps/erp/app/modules/accounting/accounting.service.ts::\"xero\", \"quickbooks\"","no-integration-id-branching::apps/erp/app/modules/settings/settings.server.ts::=== \"ramp\"","no-integration-id-branching::apps/erp/app/modules/settings/ui/Integrations/IntegrationCard.tsx::=== \"ramp\"",- "no-integration-id-branching::apps/erp/app/routes/x+/settings+/integrations.$id.tsx::=== \"onshape\"","no-integration-id-branching::apps/erp/app/routes/x+/settings+/integrations.$id.tsx::=== \"quickbooks\"","no-integration-id-branching::apps/erp/app/routes/x+/settings+/integrations.$id.tsx::=== \"ramp\"","no-integration-id-branching::apps/erp/app/routes/x+/settings+/integrations.$id.tsx::=== \"rillet\"",diff --git a/packages/checks/src/conformance/no-integration-id-branching.ts b/packages/checks/src/conformance/no-integration-id-branching.tsindex 6c420bc494..98ba5926ed 100644--- a/packages/checks/src/conformance/no-integration-id-branching.ts+++ b/packages/checks/src/conformance/no-integration-id-branching.ts@@ -16,6 +16,7 @@ const INTEGRATION_IDS = ["jira","linear","onshape",+ "onshape-government","paperless-parts","email","sage",diff --git a/packages/database/supabase/migrations/20260929135035_onshape-government-integration.sql b/packages/database/supabase/migrations/20260929135035_onshape-government-integration.sqlnew file mode 100644index 0000000000..a202620914--- /dev/null+++ b/packages/database/supabase/migrations/20260929135035_onshape-government-integration.sql@@ -0,0 +1,35 @@+-- Onshape Government: a second Onshape integration for the ITAR / FedRAMP+-- edition, which has no public App Store. The customer creates a private OAuth+-- app inside their own Enterprise and enters it in the integration settings, so+-- the connection is configured (baseUrl / oauthUrl / clientId, secret in Vault)+-- BEFORE it is authorized — `credentials` is therefore not required, unlike the+-- public `onshape` row. Everything after authorization is the same runtime.+--+-- companyIntegration.id has an FK to integration.id, so installing fails+-- without this row. Secrets (clientSecret, credentials.accessToken,+-- credentials.refreshToken) are split to Vault and never reach this column.+INSERT INTO "integration" ("id", "jsonschema")+VALUES (+ 'onshape-government',+ '{+ "type": "object",+ "properties": {+ "baseUrl": {"type": "string"},+ "oauthUrl": {"type": "string"},+ "clientId": {"type": "string"},+ "credentials": {+ "type": "object",+ "properties": {+ "type": {"type": "string"},+ "expiresAt": {"type": "string"}+ },+ "required": ["type"]+ },+ "assetSyncEnabled": {"type": "boolean"},+ "onshapeCompanyId": {"type": "string"},+ "scope": {"type": "string"}+ },+ "required": ["baseUrl", "oauthUrl", "clientId"]+ }'::json+)+ON CONFLICT ("id") DO NOTHING;diff --git a/packages/ee/AGENTS.md b/packages/ee/AGENTS.mdindex 6c7b4906d8..9d2ad0d2bb 100644--- a/packages/ee/AGENTS.md+++ b/packages/ee/AGENTS.md@@ -48,6 +48,7 @@ pnpm --filter @carbon/ee typecheck| `./mcp`, `./mcp.server` | The MCP protocol engine (moved from `apps/erp/.../api+/mcp+/lib`). `./mcp` = pure logic (catalog search, formatters, instructions, types) with no auth/entitlement chain — safe for tests; `./mcp.server` = `server.ts` (`createMcpServer`, embeds `requireEntitlement("MCP")`). The dispatch + generated tool metadata stay in the app and are injected as `deps`. `server.ts` is `@ts-nocheck` || `./workflows.server` | Workflows runtime lock: `workflowsEnabledForCompany(companyId)` (runtime DEGRADE — a non-entitled run settles Skipped, embedded in `@carbon/jobs` `engine/execute.ts`) and `requireWorkflowsEntitlement(client, companyId)` (authoring throw, embedded in the ERP's `publishWorkflowVersion`) || `./jira`, `./jira.server`, `./linear`, `./linear.server`, `./onshape`, `./paperless-parts` | Integration client/server seams |+| `./onshape`, `./onshape.server` | Onshape runtime shared by BOTH Onshape integrations — `onshape` (the public App Store app, client from `ONSHAPE_CLIENT_*`) and `onshape-government` (a customer-owned private OAuth app on their own tenant URL; client id/secret/OAuth URL entered in settings, secret vaulted; offered only when `CONTROLLED_ENVIRONMENT` is true). Runtime code resolves the company's connection with `getOnshapeIntegration` rather than naming an id; `getOnshapeOAuthConfig` picks the client per variant; `./onshape.server` has `beginOnshapeAuthorization` / `loadOnshapeOAuthConfig`. `externalIntegrationMapping` rows stay under `"onshape"` for both. A company holds one active Onshape connection at a time (`getConflictingOnshapeIntegration`, app-level) || `./slack.server`, `./stripe-connect.server`, `./xero/hooks.server`, `./quickbooks/hooks.server`, `./rillet/hooks.server` | Integration-specific server seams |## Key Patternsdiff --git a/packages/ee/package.json b/packages/ee/package.jsonindex 0ff42a107d..cc9f97727c 100644--- a/packages/ee/package.json+++ b/packages/ee/package.json@@ -30,6 +30,7 @@"./mount/hooks.server": "./src/mount/hooks.server.ts","./notifications": "./src/notifications/index.ts","./onshape": "./src/onshape/lib/index.ts",+ "./onshape.server": "./src/onshape/oauth.server.ts","./paperless-parts": "./src/paperless-parts/lib/index.ts","./permissions.server": "./src/permissions.server.ts","./plan": "./src/plan.ts",diff --git a/packages/ee/src/hooks.server.ts b/packages/ee/src/hooks.server.tsindex 4c7ebfc7f2..897a4b4a60 100644--- a/packages/ee/src/hooks.server.ts+++ b/packages/ee/src/hooks.server.ts@@ -63,6 +63,9 @@ const serverHooks: Record<string, IntegrationServerHooks> = {onshape: {onUninstall: onshapeOnUninstall},+ "onshape-government": {+ onUninstall: onshapeOnUninstall+ },// The accounting providers' onUpdate re-runs the same subscription// convergence as onInstall: a settings save on an existing install// self-heals the company's `${provider}-sync` subscription rows wheneverdiff --git a/packages/ee/src/index.ts b/packages/ee/src/index.tsindex e3b948c94c..7ae9365fb9 100644--- a/packages/ee/src/index.ts+++ b/packages/ee/src/index.ts@@ -2,7 +2,7 @@ import { Email } from "./email/config";import { Jira } from "./jira/config";import { Linear } from "./linear/config";import { Mount } from "./mount/config";-import { Onshape } from "./onshape/config";+import { Onshape, OnshapeGovernment } from "./onshape/config";import { PaperlessParts } from "./paperless-parts/config";import { QuickBooks } from "./quickbooks/config";// import { Radan } from "./radan/config";@@ -55,6 +55,7 @@ export const integrations = [Linear,Mount,Onshape,+ OnshapeGovernment,PaperlessParts,QuickBooks,Ramp,@@ -69,7 +70,18 @@ export type IntegrationID = (typeof integrations)[number]["id"];export { Jira } from "./jira/config";export { Mount } from "./mount/config";-export { Logo as OnshapeLogo, Onshape } from "./onshape/config";+export {+ Logo as OnshapeLogo,+ Onshape,+ OnshapeGovernment+} from "./onshape/config";+// Client-safe (no client or env imports): lets UI ask "is Onshape connected?"+// without naming either integration id.+export {+ hasOnshapeIntegration,+ isOnshapeIntegrationId,+ ONSHAPE_INTEGRATION_IDS+} from "./onshape/lib/connection";// TODO: export as @carbon/ee/paperlessexport { PaperlessPartsClient } from "./paperless-parts/lib/client";export { QuickBooks } from "./quickbooks/config";diff --git a/packages/ee/src/integrations/secrets.ts b/packages/ee/src/integrations/secrets.tsindex 30c616d384..3dc2e60612 100644--- a/packages/ee/src/integrations/secrets.ts+++ b/packages/ee/src/integrations/secrets.ts@@ -31,6 +31,13 @@ export const SECRET_KEYS: Record<string, string[]> = {"webhookSigningSecret"],onshape: ["credentials.accessToken", "credentials.refreshToken"],+ // A Government customer's private OAuth app: its client secret is entered in+ // the settings form, the tokens come from the callback.+ "onshape-government": [+ "clientSecret",+ "credentials.accessToken",+ "credentials.refreshToken"+ ],xero: ["credentials.accessToken", "credentials.refreshToken"],quickbooks: ["credentials.accessToken", "credentials.refreshToken"],ramp: [diff --git a/packages/ee/src/onshape/config.tsx b/packages/ee/src/onshape/config.tsxindex 9ec9533aab..4a9b75b7ae 100644--- a/packages/ee/src/onshape/config.tsx+++ b/packages/ee/src/onshape/config.tsx@@ -1,11 +1,51 @@-import { ONSHAPE_CLIENT_ID } from "@carbon/auth";-import type { SVGProps } from "react";+import { CONTROLLED_ENVIRONMENT, ONSHAPE_CLIENT_ID } from "@carbon/auth";+import { type SVGProps, useEffect, useState } from "react";import { z } from "zod";import { defineIntegration } from "../fns";+import {+ normalizeOnshapeUrl,+ ONSHAPE_GOVERNMENT_INTEGRATION_ID,+ ONSHAPE_GOVERNMENT_OAUTH_CALLBACK_PATH,+ ONSHAPE_INTEGRATION_ID+} from "./lib/connection";++// Both Onshape integrations (see ./lib/connection) run the same asset sync, so+// they share its toggle, its validation and its backfill action.+const assetSyncSetting = {+ name: "assetSyncEnabled",+ label: "Sync released assets",+ description:+ "Automatically pull released Onshape drawings and CAD models onto matching Carbon items (matched by part number). Off by default.",+ type: "switch" as const,+ required: false,+ value: false+};++// SwitchField posts a literal "true"/"false" string; preprocess explicitly so+// unchecking sticks (z.coerce.boolean would treat "false" as truthy).+const assetSyncEnabledSchema = z+ .preprocess((value) => {+ if (typeof value === "boolean") return value;+ if (value === "true") return true;+ if (value === "false") return false;+ return value;+ }, z.boolean())+ .default(false);++const backfillAction = {+ id: "backfill",+ label: "Backfill released assets",+ description:+ "Pull released Onshape assets onto all matching Carbon items now (link-only). Requires asset sync enabled.",+ endpoint: "/api/integrations/onshape/backfill",+ // Only shown once asset sync is enabled (the backfill route is gated on it+ // too, so hide the button rather than show one that errors).+ enabledWhenSetting: "assetSyncEnabled"+};export const Onshape = defineIntegration({name: "Onshape",- id: "onshape",+ id: ONSHAPE_INTEGRATION_ID,active: !!ONSHAPE_CLIENT_ID,category: "CAD",logo: Logo,@@ -13,47 +53,23 @@ export const Onshape = defineIntegration({"Onshape is a browser-based CAD/PLM software for modern engineering teams. This integration will sync data from Onshape to Carbon.",shortDescription: "Sync data from Onshape to Carbon.",images: [],- settings: [- {- name: "assetSyncEnabled",- label: "Sync released assets",- description:- "Automatically pull released Onshape drawings and CAD models onto matching Carbon items (matched by part number). Off by default.",- type: "switch",- required: false,- value: false- }- ],+ settings: [assetSyncSetting],schema: z.object({- // SwitchField posts a literal "true"/"false" string; preprocess explicitly so- // unchecking sticks (z.coerce.boolean would treat "false" as truthy).- assetSyncEnabled: z- .preprocess((value) => {- if (typeof value === "boolean") return value;- if (value === "true") return true;- if (value === "false") return false;- return value;- }, z.boolean())- .default(false)+ assetSyncEnabled: assetSyncEnabledSchema}),- actions: [- {- id: "backfill",- label: "Backfill released assets",- description:- "Pull released Onshape assets onto all matching Carbon items now (link-only). Requires asset sync enabled.",- endpoint: "/api/integrations/onshape/backfill",- // Only shown once asset sync is enabled (the backfill route is gated on it- // too, so hide the button rather than show one that errors).- enabledWhenSetting: "assetSyncEnabled"- }- ],+ actions: [backfillAction],onClientInstall: async () => {const response = await fetch("/api/integrations/onshape/install").then((res) => res.json());- const { url } = response;+ const { url, error } = response as { url?: string; error?: string };+ if (!url) {+ // The integrations page turns `?integration=&error=` into a toast — the+ // same place a failed callback lands (see integration-errors.ts).+ window.location.href = `/x/settings/integrations?integration=${ONSHAPE_INTEGRATION_ID}&error=${error ?? "unexpected"}`;+ return;+ }const width = 600;const height = 800;@@ -83,6 +99,154 @@ export const Onshape = defineIntegration({}});+const onshapeUrlSchema = z+ .string()+ .trim()+ .transform((value, ctx) => {+ const url = normalizeOnshapeUrl(value);+ if (!url) {+ ctx.addIssue({ code: "custom", message: "Must be an https:// URL" });+ return z.NEVER;+ }+ return url;+ });++/**+ * Onshape Government (ITAR / FedRAMP) has no public App Store, so Carbon's+ * public app cannot be installed there. The customer's Enterprise admin creates+ * a PRIVATE OAuth app inside their own Enterprise and enters its client here;+ * saving the settings then sends them through that app's consent screen.+ *+ * Offered only on a controlled (ITAR) Carbon instance — the only place a+ * Government customer's data belongs. It needs nothing else from this+ * instance's environment: the OAuth client is the customer's own.+ */+export const OnshapeGovernment = defineIntegration({+ name: "Onshape Government",+ id: ONSHAPE_GOVERNMENT_INTEGRATION_ID,+ active: CONTROLLED_ENVIRONMENT,+ category: "CAD",+ logo: Logo,+ setupInstructions: GovernmentSetupInstructions,+ description:+ "Onshape Government is the ITAR and FedRAMP edition of Onshape, hosted in AWS GovCloud. It has no public App Store, so this integration connects through a private OAuth app your Enterprise owns. It syncs the same data from Onshape to Carbon as the standard integration.",+ shortDescription:+ "Sync data from Onshape Government to Carbon through a private app.",+ images: [],+ settingGroups: [+ {+ name: "Connection",+ description: "The private OAuth app created in your Onshape Enterprise"+ },+ {+ name: "Sync",+ description:+ "Every API call counts toward your Enterprise's yearly Onshape API limit."+ }+ ],+ settings: [+ {+ name: "baseUrl",+ label: "Onshape URL",+ description:+ "The address your team signs in to Onshape Government at. Each Enterprise has its own.",+ group: "Connection",+ type: "text" as const,+ required: true,+ value: ""+ },+ {+ name: "oauthUrl",+ label: "OAuth URL",+ description:+ "The OAuth server for your Onshape Government environment, from your Onshape account team. Carbon appends /oauth/authorize and /oauth/token.",+ group: "Connection",+ type: "text" as const,+ required: true,+ value: ""+ },+ {+ name: "clientId",+ label: "Client ID",+ description: "Shown on the private OAuth application in Onshape.",+ group: "Connection",+ type: "text" as const,+ required: true,+ value: ""+ },+ {+ name: "clientSecret",+ label: "Client secret",+ description:+ "Onshape shows it once, when the application is created. Stored encrypted; leave empty to keep the saved one.",+ group: "Connection",+ type: "secret" as const,+ required: true,+ value: ""+ },+ { ...assetSyncSetting, group: "Sync" }+ ],+ schema: z.object({+ baseUrl: onshapeUrlSchema,+ oauthUrl: onshapeUrlSchema,+ clientId: z.string().trim().min(1),+ // Empty keeps the vaulted secret; the settings save requires one on a+ // fresh install.+ clientSecret: z.string(),+ assetSyncEnabled: assetSyncEnabledSchema+ }),+ actions: [backfillAction]+});++function GovernmentSetupInstructions() {+ // The callback is this Carbon instance's own address. Read after mount so the+ // server render and the first client render agree.+ const [origin, setOrigin] = useState("");+ useEffect(() => setOrigin(window.location.origin), []);+ const callbackUrl = `${origin}${ONSHAPE_GOVERNMENT_OAUTH_CALLBACK_PATH}`;+ const launchUrl = `${origin}/x/settings/integrations/${ONSHAPE_GOVERNMENT_INTEGRATION_ID}`;++ return (+ <>+ <p className="text-sm text-muted-foreground">+ 1. An Enterprise admin signs in to Onshape Government and opens+ Enterprise settings → Developer → OAuth applications → Create new OAuth+ application. If you would rather not do this yourselves, give Carbon+ support a seat in your Enterprise and we will build it with you.+ </p>+ <p className="mt-3 text-sm text-muted-foreground">+ 2. Name it <span className="font-mono">Carbon</span>, give it any unique+ primary format such as <span className="font-mono">com.carbon.erp</span>+ , and choose <strong>Connected Cloud App</strong> as the type.+ </p>+ <p className="mt-3 text-sm text-muted-foreground">+ 3. Set the redirect URL to{" "}+ <span className="font-mono break-all">{callbackUrl}</span> and the OAuth+ URL to <span className="font-mono break-all">{launchUrl}</span>.+ </p>+ <p className="mt-3 text-sm text-muted-foreground">+ 4. Grant <strong>Application can read your profile information</strong>,{" "}+ <strong>Application can read your documents</strong> and{" "}+ <strong>Application can write to your documents</strong>. Write access+ is only used to export released drawings and models and to subscribe to+ release notifications.+ </p>+ <p className="mt-3 text-sm text-muted-foreground">+ 5. Create the application and copy the client ID and secret straight+ away — Onshape shows the secret once. Enter them below with your Onshape+ URL and OAuth URL, then save: Carbon sends you to Onshape to approve the+ connection.+ </p>+ <p className="mt-3 text-sm text-muted-foreground">+ The app is private to your Enterprise, so its API calls count toward+ your Enterprise's yearly Onshape API limit. Browsing documents and+ importing a bill of materials use a few calls each; released asset sync+ uses several per released revision.+ </p>+ </>+ );+}+export function Logo(props: SVGProps<SVGSVGElement>) {return (<svgdiff --git a/packages/ee/src/onshape/hooks.server.ts b/packages/ee/src/onshape/hooks.server.tsindex f689f61045..d39f0eeea9 100644--- a/packages/ee/src/onshape/hooks.server.ts+++ b/packages/ee/src/onshape/hooks.server.ts@@ -1,6 +1,7 @@import { getAppUrl } from "@carbon/auth";import { getCarbonServiceRole } from "@carbon/auth/client.server";import { getOnshapeClient } from "./lib/client";+import { getOnshapeIntegration } from "./lib/connection";// The release webhook's callback path for a company. We match/deregister by this// PATH (not the full URL) so a host change — localhost, a tunnel, or the prod@@ -9,16 +10,12 @@ function callbackPath(companyId: string): string {return `/api/webhook/onshape/${companyId}`;}-// Build an Onshape client for background webhook management. Reads the installer-// (updatedBy) for token refresh/audit; falls back to "system".+// Build an Onshape client for background webhook management — against whichever+// Onshape connection the company has (public app or Government private app).+// Reads the installer (updatedBy) for token refresh/audit; falls back to "system".async function onshapeClientForCompany(companyId: string) {const client = getCarbonServiceRole();- const integration = await client- .from("companyIntegration")- .select("updatedBy")- .eq("id", "onshape")- .eq("companyId", companyId)- .maybeSingle();+ const integration = await getOnshapeIntegration(client, companyId);const userId = integration.data?.updatedBy ?? "system";return getOnshapeClient(client, companyId, userId);}@@ -33,12 +30,9 @@ async function resolveAndStoreOnshapeCompanyId(client: Awaited<ReturnType<typeof getOnshapeClient>>["client"]): Promise<string | null> {const carbon = getCarbonServiceRole();- const integration = await carbon- .from("companyIntegration")- .select("metadata")- .eq("id", "onshape")- .eq("companyId", companyId)- .maybeSingle();+ const integration = await getOnshapeIntegration(carbon, companyId);+ if (!integration.data) return null;+ const integrationId = integration.data.id;const metadata = (integration.data?.metadata ?? {}) as Record<string,unknown@@ -53,7 +47,7 @@ async function resolveAndStoreOnshapeCompanyId(const update = await carbon.from("companyIntegration").update({ metadata: { ...metadata, onshapeCompanyId: resolved } })- .eq("id", "onshape")+ .eq("id", integrationId).eq("companyId", companyId);if (update.error) {// Non-fatal: we can still register with the resolved id; the jobs just falldiff --git a/packages/ee/src/onshape/lib/client.ts b/packages/ee/src/onshape/lib/client.tsindex f1a4ead807..4838b9bd5b 100644--- a/packages/ee/src/onshape/lib/client.ts+++ b/packages/ee/src/onshape/lib/client.ts@@ -3,7 +3,6 @@// test runners — that imports this client).import type { Database } from "@carbon/database";-import { ONSHAPE_CLIENT_ID, ONSHAPE_CLIENT_SECRET } from "@carbon/env";import { getLogger } from "@carbon/logger";import type { SupabaseClient } from "@supabase/supabase-js";import axios from "axios";@@ -11,8 +10,14 @@ import {persistIntegrationSecrets,resolveIntegrationSecrets} from "../../integrations/secrets";+import {+ getOnshapeIntegration,+ ONSHAPE_DEFAULT_BASE_URL,+ type OnshapeIntegrationId+} from "./connection";import type { OnshapeDocument } from "./document.type";import type { OnshapeElementType } from "./element.type";+import { getOnshapeOAuthConfig, refreshOnshapeAccessToken } from "./oauth";const logger = getLogger("ee", "onshape");@@ -311,7 +316,8 @@ export class OnshapeClient {// getCompanyRevisions). Onshape caps `offset` at 100 and its `next` advances by// `after=<date>&offset=1`, so following the cursor — NOT incrementing offset — is// the only way to page a company's full revision history. `next` is an absolute- // cad.onshape.com URL; axios uses it as-is (same host, so the auth header applies).+ // URL on the connection's own host (cad.onshape.com or a Government tenant);+ // axios uses it as-is (same host, so the auth header applies).async getCompanyRevisionsPage(nextUrl: string): Promise<@@ -561,37 +567,6 @@ export class OnshapeClient {);return bytesWritten;}-- static async refreshAccessToken(refreshToken: string): Promise<{- access_token: string;- refresh_token: string;- token_type: string;- }> {- if (!ONSHAPE_CLIENT_ID || !ONSHAPE_CLIENT_SECRET) {- throw new Error("Onshape OAuth not configured");- }-- const response = await fetch("https://oauth.onshape.com/oauth/token", {- method: "POST",- headers: {- "Content-Type": "application/x-www-form-urlencoded"- },- body: new URLSearchParams({- grant_type: "refresh_token",- refresh_token: refreshToken,- client_id: ONSHAPE_CLIENT_ID,- client_secret: ONSHAPE_CLIENT_SECRET- })- });-- if (!response.ok) {- throw new Error(- `Onshape token refresh failed (${response.status}): ${await response.text()}`- );- }-- return response.json();- }}export async function getOnshapeClient(@@ -601,12 +576,9 @@ export async function getOnshapeClient(): Promise<{ client: OnshapeClient; error: null } | { client: null; error: string }> {- const integration = await client- .from("companyIntegration")- .select("*")- .eq("id", "onshape")- .eq("companyId", companyId)- .maybeSingle();+ // Either Onshape connection — the public app or a Government private app.+ // Past authorization they are the same API, just on a different host.+ const integration = await getOnshapeIntegration(client, companyId);if (integration.error || !integration.data) {return { client: null, error: "Onshape integration not found" };@@ -617,10 +589,11 @@ export async function getOnshapeClient(// the service-role client (the passed `client` may be RLS-scoped).const { getCarbonServiceRole } = await import("@carbon/auth/client.server");const serviceRole = getCarbonServiceRole();+ const integrationId: OnshapeIntegrationId = integration.data.id;const metadata = (await resolveIntegrationSecrets(serviceRole,companyId,- "onshape",+ integrationId,integration.data.metadata,integration.data.secretRef)) as Record<string, any>;@@ -631,7 +604,7 @@ export async function getOnshapeClient(}let accessToken = credentials.accessToken;- const baseUrl = metadata?.baseUrl ?? "https://cad.onshape.com";+ const baseUrl = metadata?.baseUrl ?? ONSHAPE_DEFAULT_BASE_URL;// Refresh token if expiredif (@@ -640,7 +613,10 @@ export async function getOnshapeClient(new Date(credentials.expiresAt) <= new Date()) {try {- const refreshed = await OnshapeClient.refreshAccessToken(+ const oauth = getOnshapeOAuthConfig(integrationId, metadata);+ if (!oauth) throw new Error("Onshape OAuth not configured");+ const refreshed = await refreshOnshapeAccessToken(+ oauth,credentials.refreshToken);@@ -648,7 +624,7 @@ export async function getOnshapeClient(// Persist the new tokens. Secret material is split out to Supabase Vault;// only the non-secret config is written to the metadata column.- await persistIntegrationSecrets(serviceRole, companyId, "onshape", {+ await persistIntegrationSecrets(serviceRole, companyId, integrationId, {...metadata,credentials: {...credentials,diff --git a/packages/ee/src/onshape/lib/connection.ts b/packages/ee/src/onshape/lib/connection.tsnew file mode 100644index 0000000000..1f29443bbe--- /dev/null+++ b/packages/ee/src/onshape/lib/connection.ts@@ -0,0 +1,132 @@+import type { Database } from "@carbon/database";+import type { SupabaseClient } from "@supabase/supabase-js";++/**+ * Onshape ships as two integrations that share one runtime:+ *+ * - `onshape` — Carbon's public app from the Onshape App Store, on+ * cad.onshape.com (or a commercial Enterprise domain), authorized with the+ * OAuth client configured on this Carbon instance (`ONSHAPE_CLIENT_*`).+ * - `onshape-government` — Onshape Government (ITAR / FedRAMP) has no public+ * App Store, so each customer creates a PRIVATE OAuth app inside their own+ * Enterprise and gives Carbon its client id and secret. Every tenant has its+ * own URL, and the private app's API calls count toward the customer's own+ * yearly API limits.+ *+ * Everything past authorization — the REST client, BOM import, asset sync, the+ * release webhook — is identical, so it asks `getOnshapeIntegration` for the+ * company's connection instead of naming an id. External-id mappings stay under+ * the `onshape` namespace for both: they identify the source system, not the+ * way it was connected.+ */+export const ONSHAPE_INTEGRATION_ID = "onshape";+export const ONSHAPE_GOVERNMENT_INTEGRATION_ID = "onshape-government";++export const ONSHAPE_INTEGRATION_IDS = [+ ONSHAPE_INTEGRATION_ID,+ ONSHAPE_GOVERNMENT_INTEGRATION_ID+] as const;++export type OnshapeIntegrationId = (typeof ONSHAPE_INTEGRATION_IDS)[number];++/** The callback a Government customer registers on their private OAuth app. */+export const ONSHAPE_GOVERNMENT_OAUTH_CALLBACK_PATH =+ "/api/integrations/onshape-government/oauth";++export const ONSHAPE_DEFAULT_BASE_URL = "https://cad.onshape.com";+export const ONSHAPE_DEFAULT_OAUTH_URL = "https://oauth.onshape.com";++export function isOnshapeIntegrationId(+ id: string | null | undefined+): id is OnshapeIntegrationId {+ return (ONSHAPE_INTEGRATION_IDS as readonly string[]).includes(id ?? "");+}++/** Is any Onshape connection among a company's installed integration ids? */+export function hasOnshapeIntegration(installed: {+ has: (id: string) => boolean;+}): boolean {+ return ONSHAPE_INTEGRATION_IDS.some((id) => installed.has(id));+}++type CompanyIntegrationRow =+ Database["public"]["Tables"]["companyIntegration"]["Row"];++/**+ * The company's Onshape connection, whichever of the two it is. Prefers the+ * ACTIVE row; a company holds at most one active Onshape connection (the+ * settings save and both OAuth callbacks refuse a second), so the order only+ * decides which INACTIVE row a caller sees when neither is active.+ */+export async function getOnshapeIntegration(+ client: SupabaseClient<Database>,+ companyId: string+): Promise<+ | { data: CompanyIntegrationRow & { id: OnshapeIntegrationId }; error: null }+ | { data: null; error: string | null }+> {+ const result = await client+ .from("companyIntegration")+ .select("*")+ .in("id", [...ONSHAPE_INTEGRATION_IDS])+ .eq("companyId", companyId)+ .order("active", { ascending: false })+ .order("updatedAt", { ascending: false })+ .limit(1)+ .maybeSingle();++ if (result.error) return { data: null, error: result.error.message };+ if (!result.data || !isOnshapeIntegrationId(result.data.id)) {+ return { data: null, error: null };+ }+ return {+ data: result.data as CompanyIntegrationRow & { id: OnshapeIntegrationId },+ error: null+ };+}++/**+ * The OTHER Onshape connection, if it is active — the one that must be+ * uninstalled before `integrationId` can be connected. Two live connections+ * would make every background job's choice of tenant arbitrary.+ */+export async function getConflictingOnshapeIntegration(+ client: SupabaseClient<Database>,+ companyId: string,+ integrationId: OnshapeIntegrationId+): Promise<OnshapeIntegrationId | null> {+ const result = await client+ .from("companyIntegration")+ .select("id")+ .in(+ "id",+ ONSHAPE_INTEGRATION_IDS.filter((id) => id !== integrationId)+ )+ .eq("companyId", companyId)+ .eq("active", true)+ .limit(1)+ .maybeSingle();+ return result.data && isOnshapeIntegrationId(result.data.id)+ ? result.data.id+ : null;+}++/**+ * Normalize a tenant URL typed by an admin (`acme.onshape.com`,+ * `https://acme.onshape.com/documents`) to its origin. Returns null when it is+ * not an https URL — tokens are only ever sent over TLS.+ */+export function normalizeOnshapeUrl(value: unknown): string | null {+ if (typeof value !== "string") return null;+ const trimmed = value.trim();+ if (!trimmed) return null;+ try {+ const url = new URL(+ /^[a-z][a-z0-9+.-]*:\/\//i.test(trimmed) ? trimmed : `https://${trimmed}`+ );+ if (url.protocol !== "https:") return null;+ return url.origin;+ } catch {+ return null;+ }+}diff --git a/packages/ee/src/onshape/lib/index.ts b/packages/ee/src/onshape/lib/index.tsindex 3b9980688e..93919c2045 100644--- a/packages/ee/src/onshape/lib/index.ts+++ b/packages/ee/src/onshape/lib/index.ts@@ -1,4 +1,6 @@export * from "./client";+export * from "./connection";export * from "./data";export * from "./document.type";export * from "./element.type";+export * from "./oauth";diff --git a/packages/ee/src/onshape/lib/oauth.test.ts b/packages/ee/src/onshape/lib/oauth.test.tsnew file mode 100644index 0000000000..aa644c49ea--- /dev/null+++ b/packages/ee/src/onshape/lib/oauth.test.ts@@ -0,0 +1,99 @@+import { describe, expect, it, vi } from "vitest";++vi.mock("@carbon/env", () => ({+ getAppUrl: () => "https://itar.carbon.ms",+ ONSHAPE_CLIENT_ID: "public-client",+ ONSHAPE_CLIENT_SECRET: "public-secret",+ ONSHAPE_OAUTH_REDIRECT_URL:+ "https://app.carbon.ms/api/integrations/onshape/oauth"+}));++import {+ hasOnshapeIntegration,+ isOnshapeIntegrationId,+ normalizeOnshapeUrl+} from "./connection";+import { getOnshapeAuthorizeUrl, getOnshapeOAuthConfig } from "./oauth";++const government = {+ baseUrl: "https://acme.onshape.example",+ oauthUrl: "https://oauth.onshape.example",+ clientId: "gov-client",+ clientSecret: "gov-secret"+};++describe("normalizeOnshapeUrl", () => {+ it("reduces a typed tenant address to its https origin", () => {+ expect(normalizeOnshapeUrl("acme.onshape.example")).toBe(+ "https://acme.onshape.example"+ );+ expect(+ normalizeOnshapeUrl(" https://acme.onshape.example/documents?x=1 ")+ ).toBe("https://acme.onshape.example");+ });++ it("refuses anything that would send tokens without TLS", () => {+ expect(normalizeOnshapeUrl("http://acme.onshape.example")).toBeNull();+ expect(normalizeOnshapeUrl("")).toBeNull();+ expect(normalizeOnshapeUrl(undefined)).toBeNull();+ });+});++describe("getOnshapeOAuthConfig", () => {+ it("uses this instance's public app for the standard integration", () => {+ expect(getOnshapeOAuthConfig("onshape", {})).toEqual({+ clientId: "public-client",+ clientSecret: "public-secret",+ redirectUri: "https://app.carbon.ms/api/integrations/onshape/oauth",+ baseUrl: "https://cad.onshape.com",+ authorizeUrl: "https://oauth.onshape.com/oauth/authorize",+ tokenUrl: "https://oauth.onshape.com/oauth/token"+ });+ });++ it("uses the customer's private app and tenant for Government", () => {+ expect(getOnshapeOAuthConfig("onshape-government", government)).toEqual({+ clientId: "gov-client",+ clientSecret: "gov-secret",+ redirectUri:+ "https://itar.carbon.ms/api/integrations/onshape-government/oauth",+ baseUrl: "https://acme.onshape.example",+ authorizeUrl: "https://oauth.onshape.example/oauth/authorize",+ tokenUrl: "https://oauth.onshape.example/oauth/token"+ });+ });++ it("is unconfigured until every Government field is present", () => {+ for (const key of Object.keys(government)) {+ expect(+ getOnshapeOAuthConfig("onshape-government", {+ ...government,+ [key]: ""+ })+ ).toBeNull();+ }+ });+});++describe("getOnshapeAuthorizeUrl", () => {+ it("targets the connection's own OAuth server with space-delimited scopes", () => {+ const config = getOnshapeOAuthConfig("onshape-government", government)!;+ const url = new URL(getOnshapeAuthorizeUrl(config, "state-123"));+ expect(url.origin + url.pathname).toBe(+ "https://oauth.onshape.example/oauth/authorize"+ );+ expect(url.searchParams.get("client_id")).toBe("gov-client");+ expect(url.searchParams.get("state")).toBe("state-123");+ expect(url.search).toContain("scope=OAuth2Read%20OAuth2Write");+ });+});++describe("integration identity", () => {+ it("recognises both Onshape integrations and nothing else", () => {+ expect(isOnshapeIntegrationId("onshape")).toBe(true);+ expect(isOnshapeIntegrationId("onshape-government")).toBe(true);+ expect(isOnshapeIntegrationId("jira")).toBe(false);+ expect(hasOnshapeIntegration(new Set(["onshape-government"]))).toBe(true);+ expect(hasOnshapeIntegration(new Set(["jira"]))).toBe(false);+ });+});diff --git a/packages/ee/src/onshape/lib/oauth.ts b/packages/ee/src/onshape/lib/oauth.tsnew file mode 100644index 0000000000..03c8db59da--- /dev/null+++ b/packages/ee/src/onshape/lib/oauth.ts@@ -0,0 +1,181 @@+import {+ getAppUrl,+ ONSHAPE_CLIENT_ID,+ ONSHAPE_CLIENT_SECRET,+ ONSHAPE_OAUTH_REDIRECT_URL+} from "@carbon/env";+import {+ normalizeOnshapeUrl,+ ONSHAPE_DEFAULT_BASE_URL,+ ONSHAPE_DEFAULT_OAUTH_URL,+ ONSHAPE_GOVERNMENT_INTEGRATION_ID,+ ONSHAPE_GOVERNMENT_OAUTH_CALLBACK_PATH,+ type OnshapeIntegrationId+} from "./connection";++/**+ * Where to authorize, which client to authorize as, and which API host the+ * resulting token is good for.+ *+ * The public app's client lives in this Carbon instance's environment. A+ * Government customer's private app lives in THEIR Enterprise, so its client id,+ * secret and hosts come from the integration's own (vaulted) settings instead.+ */+export type OnshapeOAuthConfig = {+ clientId: string;+ clientSecret: string;+ redirectUri: string;+ authorizeUrl: string;+ tokenUrl: string;+ /** API origin the token is issued for — stored on the connection as `baseUrl`. */+ baseUrl: string;+};++// Read for models/revisions/documents; Write to create translation (GLTF/PDF+// export) jobs and manage the release webhook subscription. Both must be+// granted to the OAuth application (the dev portal for the public app, the+// Enterprise's Developer settings for a private one), or Onshape refuses the+// authorization with `invalid_scope`.+export const ONSHAPE_OAUTH_SCOPES = ["OAuth2Read", "OAuth2Write"];++export function getOnshapeGovernmentRedirectUri(origin = getAppUrl()) {+ return `${origin}${ONSHAPE_GOVERNMENT_OAUTH_CALLBACK_PATH}`;+}++function oauthEndpoints(oauthUrl: string) {+ return {+ authorizeUrl: `${oauthUrl}/oauth/authorize`,+ tokenUrl: `${oauthUrl}/oauth/token`+ };+}++/**+ * Resolve the OAuth client for an Onshape connection, or null when it is not+ * configured. `metadata` must already have its vaulted secrets merged back+ * (`resolveIntegrationSecrets`) — the Government client secret is one of them.+ */+export function getOnshapeOAuthConfig(+ integrationId: OnshapeIntegrationId,+ metadata: Record<string, unknown> | null | undefined+): OnshapeOAuthConfig | null {+ if (integrationId === ONSHAPE_GOVERNMENT_INTEGRATION_ID) {+ const clientId = metadata?.clientId;+ const clientSecret = metadata?.clientSecret;+ const baseUrl = normalizeOnshapeUrl(metadata?.baseUrl);+ const oauthUrl = normalizeOnshapeUrl(metadata?.oauthUrl);+ if (+ typeof clientId !== "string" ||+ !clientId.trim() ||+ typeof clientSecret !== "string" ||+ !clientSecret.trim() ||+ !baseUrl ||+ !oauthUrl+ ) {+ return null;+ }+ return {+ clientId: clientId.trim(),+ clientSecret: clientSecret.trim(),+ redirectUri: getOnshapeGovernmentRedirectUri(),+ baseUrl,+ ...oauthEndpoints(oauthUrl)+ };+ }++ if (+ !ONSHAPE_CLIENT_ID ||+ !ONSHAPE_CLIENT_SECRET ||+ !ONSHAPE_OAUTH_REDIRECT_URL+ ) {+ return null;+ }+ return {+ clientId: ONSHAPE_CLIENT_ID,+ clientSecret: ONSHAPE_CLIENT_SECRET,+ redirectUri: ONSHAPE_OAUTH_REDIRECT_URL,+ baseUrl: ONSHAPE_DEFAULT_BASE_URL,+ ...oauthEndpoints(ONSHAPE_DEFAULT_OAUTH_URL)+ };+}++/**+ * The URL that sends the user to Onshape to approve Carbon. The scope is+ * appended outside URLSearchParams so the delimiter is `%20`: RFC 6749 scope is+ * space-delimited, and URLSearchParams serializes a space as `+`, which only+ * means "space" under form-encoding rules a query string doesn't guarantee.+ */+export function getOnshapeAuthorizeUrl(+ config: OnshapeOAuthConfig,+ state: string+): string {+ const params = new URLSearchParams({+ client_id: config.clientId,+ redirect_uri: config.redirectUri,+ response_type: "code",+ state+ });+ const scope = ONSHAPE_OAUTH_SCOPES.join("%20");+ return `${config.authorizeUrl}?${params}&scope=${scope}`;+}++export type OnshapeTokenResponse = {+ access_token: string;+ refresh_token: string;+ token_type: string;+ scope?: string;+ expires_in?: number;+};++export class OnshapeTokenError extends Error {+ status: number;+ constructor(message: string, status: number) {+ super(message);+ this.name = "OnshapeTokenError";+ this.status = status;+ }+}++async function requestToken(+ config: OnshapeOAuthConfig,+ body: Record<string, string>+): Promise<OnshapeTokenResponse> {+ const response = await fetch(config.tokenUrl, {+ method: "POST",+ headers: { "Content-Type": "application/x-www-form-urlencoded" },+ body: new URLSearchParams({+ ...body,+ client_id: config.clientId,+ client_secret: config.clientSecret+ })+ });++ if (!response.ok) {+ throw new OnshapeTokenError(+ `Onshape token request failed (${response.status}): ${await response.text()}`,+ response.status+ );+ }++ return response.json();+}++export function exchangeOnshapeAuthorizationCode(+ config: OnshapeOAuthConfig,+ code: string+): Promise<OnshapeTokenResponse> {+ return requestToken(config, {+ grant_type: "authorization_code",+ code,+ redirect_uri: config.redirectUri+ });+}++export function refreshOnshapeAccessToken(+ config: OnshapeOAuthConfig,+ refreshToken: string+): Promise<OnshapeTokenResponse> {+ return requestToken(config, {+ grant_type: "refresh_token",+ refresh_token: refreshToken+ });+}diff --git a/packages/ee/src/onshape/oauth.server.ts b/packages/ee/src/onshape/oauth.server.tsnew file mode 100644index 0000000000..47c44f6887--- /dev/null+++ b/packages/ee/src/onshape/oauth.server.ts@@ -0,0 +1,87 @@+import { getCarbonServiceRole } from "@carbon/auth/client.server";+import { issueOAuthState } from "@carbon/auth/oauth-state.server";+import { resolveIntegrationSecrets } from "../integrations/secrets";+import {+ getConflictingOnshapeIntegration,+ type OnshapeIntegrationId+} from "./lib/connection";+import {+ getOnshapeAuthorizeUrl,+ getOnshapeOAuthConfig,+ type OnshapeOAuthConfig+} from "./lib/oauth";++/**+ * The OAuth client for one of a company's Onshape connections. The public app+ * reads this instance's environment; a Government private app reads the+ * client id, secret and hosts its admin saved in the integration settings (the+ * secret from Vault, so this needs the service role).+ */+export async function loadOnshapeOAuthConfig(+ companyId: string,+ integrationId: OnshapeIntegrationId+): Promise<OnshapeOAuthConfig | null> {+ const serviceRole = getCarbonServiceRole();+ const integration = await serviceRole+ .from("companyIntegration")+ .select("metadata, secretRef")+ .eq("id", integrationId)+ .eq("companyId", companyId)+ .maybeSingle();++ let metadata: Record<string, unknown> = {};+ if (integration.data) {+ try {+ metadata = (await resolveIntegrationSecrets(+ serviceRole,+ companyId,+ integrationId,+ integration.data.metadata,+ integration.data.secretRef+ )) as Record<string, unknown>;+ } catch {+ // No vaulted secret yet: a Government connection is simply not+ // configured, and the public app never needed one to start.+ metadata = (integration.data.metadata ?? {}) as Record<string, unknown>;+ }+ }++ return getOnshapeOAuthConfig(integrationId, metadata);+}++export type OnshapeAuthorizationStart =+ | { ok: true; url: string; cookie: string }+ | { ok: false; reason: "not-configured" | "connection-conflict" };++/**+ * Start the OAuth round trip for an Onshape connection: resolve its client,+ * refuse while the OTHER Onshape connection is active, and issue the state the+ * callback will consume. The state is bound to this browser, user, company and+ * integration — otherwise anyone could hand a victim a callback URL carrying+ * their own Onshape code and link the victim's company to the attacker's+ * account.+ */+export async function beginOnshapeAuthorization(+ request: Request,+ params: {+ integrationId: OnshapeIntegrationId;+ userId: string;+ companyId: string;+ }+): Promise<OnshapeAuthorizationStart> {+ const conflict = await getConflictingOnshapeIntegration(+ getCarbonServiceRole(),+ params.companyId,+ params.integrationId+ );+ if (conflict) return { ok: false, reason: "connection-conflict" };++ const config = await loadOnshapeOAuthConfig(+ params.companyId,+ params.integrationId+ );+ if (!config) return { ok: false, reason: "not-configured" };++ const { state, cookie } = await issueOAuthState(params, request);+ return { ok: true, url: getOnshapeAuthorizeUrl(config, state), cookie };+}diff --git a/packages/jobs/src/inngest/functions/integrations/onshape-backfill.ts b/packages/jobs/src/inngest/functions/integrations/onshape-backfill.tsindex ae2ce71604..a097c81efb 100644--- a/packages/jobs/src/inngest/functions/integrations/onshape-backfill.ts+++ b/packages/jobs/src/inngest/functions/integrations/onshape-backfill.ts@@ -2,6 +2,7 @@ import { getCarbonServiceRole } from "@carbon/auth/client.server";import type { Database } from "@carbon/database";import {getOnshapeClient,+ getOnshapeIntegration,OnshapeApiError,OnshapeAssetTooLargeError} from "@carbon/ee/onshape";@@ -115,12 +116,8 @@ export async function isOnshapeAssetSyncEnabled(carbon: CarbonClient,companyId: string): Promise<boolean> {- const integration = await carbon- .from("companyIntegration")- .select("active, metadata")- .eq("id", "onshape")- .eq("companyId", companyId)- .maybeSingle();+ // Either Onshape connection — the public app or a Government private app.+ const integration = await getOnshapeIntegration(carbon, companyId);const metadata = (integration.data?.metadata ?? {}) as Record<string,unknown@@ -136,12 +133,7 @@ export async function resolveOnshapeCompanyId(): Promise<string> {// Prefer the company id captured at connect (explicit + stable) over guessing// getCompanies()[0], which is ambiguous for multi-company Onshape accounts.- const stored = await carbon- .from("companyIntegration")- .select("metadata")- .eq("id", "onshape")- .eq("companyId", input.companyId)- .maybeSingle();+ const stored = await getOnshapeIntegration(carbon, input.companyId);const storedCompanyId = (stored.data?.metadata as Record<string, unknown> | undefined)?.onshapeCompanyId;diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 7f4d9a4825..74f5d58b6a 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -570,6 +570,12 @@ msgstr "Eine Änderungsmitteilung verfolgt eine kontrollierte Ingenieur- oder Femsgid "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."msgstr "Ein Clearingkonto, das den Wert der erhaltenen, aber noch nicht in Rechnung gestellten Waren hält; die Lieferantenrechnung gleicht es aus."+msgid "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."+msgstr ""++msgid "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgstr ""+msgid "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."msgstr "Ein Unternehmen, das seine eigenen Fertigprodukte von Anfang bis Ende entwirft und baut (hier, der Shop, der humanoide Roboter baut), anstatt Teile nach den Vorgaben eines anderen Unternehmens herzustellen."@@ -1949,6 +1955,9 @@ msgstr "Ein Arbeitsgang dieses Auftrags läuft in diesem Batch"msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "Die Position eines Arbeitsgangs in der Warteschlange seines Arbeitsplatzes — die Reihenfolge, in der die Fertigung die Arbeit aufnimmt. Die Engine nummeriert sie nach Platzierungsreihenfolge (frühester prognostizierter Start zuerst); das Neuordnen von Karten auf der Arbeitsplatz-Tafel setzt sie außer Kraft, ohne die Daten zu ändern."+msgid "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgstr ""+msgid "An unexpected error occurred while connecting to Onshape. Try connecting again."msgstr "Bei der Verbindung mit Onshape ist ein unerwarteter Fehler aufgetreten. Versuchen Sie die Verbindung erneut."@@ -4676,6 +4685,9 @@ msgstr "Konnte nicht gespeichert werden"msgid "Couldn't complete the Onshape connection"msgstr "Die Onshape-Verbindung konnte nicht abgeschlossen werden"+msgid "Couldn't complete the Onshape Government connection"+msgstr ""+msgid "Couldn't load documents"msgstr "Dokumente konnten nicht geladen werden"@@ -4691,6 +4703,9 @@ msgstr "Der Auftrag konnte nicht umgeplant werden. Bitte versuchen Sie es erneutmsgid "Couldn't save the Onshape connection"msgstr "Die Onshape-Verbindung konnte nicht gespeichert werden"+msgid "Couldn't save the Onshape Government connection"+msgstr ""+msgid "Couldn't save the Ramp connection"msgstr "Die Ramp-Verbindung konnte nicht gespeichert werden"@@ -7146,6 +7161,9 @@ msgstr "Geben Sie den 6-stelligen Code aus Ihrer Authentifizierungs-App ein"msgid "Enter the 6-digit code from your authenticator app to resume."msgstr "Geben Sie den 6-stelligen Code aus Ihrer Authentifikator-App ein, um fortzufahren."+msgid "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgstr ""+msgid "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."msgstr "Geben Sie die Menge ein, die diese Bewegung hätte sein sollen. Eine Gegenbewegung für die Differenz wird neben dem Original in dessen Zeitraum verbucht."@@ -7362,6 +7380,9 @@ msgstr "Wechselkurs aktualisiert am"msgid "Exchange Rates"msgstr "Wechselkurse"+msgid "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgstr ""+msgid "Exchanging the authorization code for access failed. Try connecting again."msgstr "Beim Austausch des Autorisierungscodes gegen eine Zugriffsberechtigung ist ein Fehler aufgetreten. Versuchen Sie erneut, die Verbindung herzustellen."@@ -9028,6 +9049,9 @@ msgstr "In diesem Schritt"msgid "In use"msgstr "In Gebrauch"+msgid "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgstr ""+msgid "In-app"msgstr "In-App"@@ -12271,6 +12295,9 @@ msgstr "Es kann jeweils nur eine Ausgabenintegration aktiv sein. Deinstallierenmsgid "Only qualified employees can be scheduled for and run this process"msgstr "Nur qualifizierte Mitarbeiter können für diesen Prozess eingeplant werden und diesen ausführen"+msgid "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgstr ""+msgid "Onshape authorized the connection but saving it failed. Try connecting again."msgstr "Onshape hat die Verbindung autorisiert, das Speichern ist jedoch fehlgeschlagen. Versuchen Sie die Verbindung erneut."@@ -12280,6 +12307,24 @@ msgstr "Onshape hat die Verbindung abgelehnt"msgid "Onshape didn't return an authorization code"msgstr "Onshape hat keinen Autorisierungscode zurückgegeben"+msgid "Onshape Government denied the connection"+msgstr ""++msgid "Onshape Government didn't return an authorization code"+msgstr ""++msgid "Onshape Government is already connected"+msgstr ""++msgid "Onshape Government isn't configured"+msgstr ""++msgid "Onshape Government rejected the authorization"+msgstr ""++msgid "Onshape is already connected"+msgstr ""+msgid "Onshape isn't configured"msgstr "Onshape ist nicht konfiguriert"@@ -12394,6 +12439,9 @@ msgstr "Offene geplante Wartungen"msgid "Open task details"msgstr "Aufgabendetails öffnen"+msgid "Open the Onshape Government integration and save its settings to connect again."+msgstr ""+msgid "Open the Ramp integration and try connecting again to finish setup."msgstr "Öffnen Sie die Ramp-Integration und versuchen Sie erneut, die Verbindung herzustellen, um die Einrichtung abzuschließen."@@ -17612,6 +17660,9 @@ msgstr "Die Anzahl der Tage nach der Berechnungsmethode, bis die Zahlung fälligmsgid "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."msgstr "Der unveränderliche Datensatz jeder Bestandsbewegung; der verfügbare Bestand ist die Summe seiner signierten Einträge und die maßgebliche Quelle."+msgid "The authorization was refused in Onshape. Save the integration settings to try again."+msgstr ""+msgid "The authorization was refused in Onshape. Try connecting again."msgstr "Die Autorisierung wurde in Onshape abgelehnt. Versuchen Sie die Verbindung erneut."@@ -18064,6 +18115,9 @@ msgstr "Das Handbestandsniveau, das eine neue Auffüllungsbestellung gemäß denmsgid "The Onshape connection expired"msgstr "Die Onshape-Verbindung ist abgelaufen"+msgid "The Onshape Government connection expired"+msgstr ""+msgid "The operations and steps your parts move through"msgstr "Die Arbeitsgänge und Schritte, die Ihre Teile durchlaufen"@@ -18188,6 +18242,9 @@ msgstr "Der Anforderungstext wird wörtlich mit einem JSON-Inhaltstyp gesendet,msgid "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."msgstr "Die verbleibende WIP, die ein Fertigungsauftrag beim Abschließen zurückgelassen hat, aufgeräumt auf ein Produktionsabweichungs-Konto – die einzige Abweichung, die Carbon für einen Fertigungsauftrag bucht."+msgid "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgstr ""+msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "In der Antwort von Onshape fehlten erforderliche Parameter. Versuchen Sie die Verbindung erneut."diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex 06235bfeea..a66e0a54c5 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -570,6 +570,12 @@ msgstr "A change notice tracks a controlled engineering or manufacturing changemsgid "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."msgstr "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."+msgid "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."+msgstr "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."++msgid "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgstr "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgid "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."msgstr "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."@@ -1949,6 +1955,9 @@ msgstr "An operation on this job runs in this batch"msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."+msgid "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgstr "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgid "An unexpected error occurred while connecting to Onshape. Try connecting again."msgstr "An unexpected error occurred while connecting to Onshape. Try connecting again."@@ -4676,6 +4685,9 @@ msgstr "Could not save"msgid "Couldn't complete the Onshape connection"msgstr "Couldn't complete the Onshape connection"+msgid "Couldn't complete the Onshape Government connection"+msgstr "Couldn't complete the Onshape Government connection"+msgid "Couldn't load documents"msgstr "Couldn't load documents"@@ -4691,6 +4703,9 @@ msgstr "Couldn't reschedule the job. Please try again."msgid "Couldn't save the Onshape connection"msgstr "Couldn't save the Onshape connection"+msgid "Couldn't save the Onshape Government connection"+msgstr "Couldn't save the Onshape Government connection"+msgid "Couldn't save the Ramp connection"msgstr "Couldn't save the Ramp connection"@@ -7146,6 +7161,9 @@ msgstr "Enter the 6-digit code from your authenticator app"msgid "Enter the 6-digit code from your authenticator app to resume."msgstr "Enter the 6-digit code from your authenticator app to resume."+msgid "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgstr "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgid "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."msgstr "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."@@ -7362,6 +7380,9 @@ msgstr "Exchange rate updated at"msgid "Exchange Rates"msgstr "Exchange Rates"+msgid "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgstr "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgid "Exchanging the authorization code for access failed. Try connecting again."msgstr "Exchanging the authorization code for access failed. Try connecting again."@@ -9028,6 +9049,9 @@ msgstr "In this step"msgid "In use"msgstr "In use"+msgid "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgstr "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgid "In-app"msgstr "In-app"@@ -12271,6 +12295,9 @@ msgstr "Only one spend integration can be active at a time. Uninstall the currenmsgid "Only qualified employees can be scheduled for and run this process"msgstr "Only qualified employees can be scheduled for and run this process"+msgid "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgstr "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgid "Onshape authorized the connection but saving it failed. Try connecting again."msgstr "Onshape authorized the connection but saving it failed. Try connecting again."@@ -12280,6 +12307,24 @@ msgstr "Onshape denied the connection"msgid "Onshape didn't return an authorization code"msgstr "Onshape didn't return an authorization code"+msgid "Onshape Government denied the connection"+msgstr "Onshape Government denied the connection"++msgid "Onshape Government didn't return an authorization code"+msgstr "Onshape Government didn't return an authorization code"++msgid "Onshape Government is already connected"+msgstr "Onshape Government is already connected"++msgid "Onshape Government isn't configured"+msgstr "Onshape Government isn't configured"++msgid "Onshape Government rejected the authorization"+msgstr "Onshape Government rejected the authorization"++msgid "Onshape is already connected"+msgstr "Onshape is already connected"+msgid "Onshape isn't configured"msgstr "Onshape isn't configured"@@ -12394,6 +12439,9 @@ msgstr "Open Scheduled"msgid "Open task details"msgstr "Open task details"+msgid "Open the Onshape Government integration and save its settings to connect again."+msgstr "Open the Onshape Government integration and save its settings to connect again."+msgid "Open the Ramp integration and try connecting again to finish setup."msgstr "Open the Ramp integration and try connecting again to finish setup."@@ -17612,6 +17660,9 @@ msgstr "The amount of days after the calculation method that the payment is due"msgid "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."msgstr "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."+msgid "The authorization was refused in Onshape. Save the integration settings to try again."+msgstr "The authorization was refused in Onshape. Save the integration settings to try again."+msgid "The authorization was refused in Onshape. Try connecting again."msgstr "The authorization was refused in Onshape. Try connecting again."@@ -18064,6 +18115,9 @@ msgstr "The on-hand level that triggers a new replenishment order under the quanmsgid "The Onshape connection expired"msgstr "The Onshape connection expired"+msgid "The Onshape Government connection expired"+msgstr "The Onshape Government connection expired"+msgid "The operations and steps your parts move through"msgstr "The operations and steps your parts move through"@@ -18188,6 +18242,9 @@ msgstr "The request body sent verbatim with a JSON content type after workflow vmsgid "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."msgstr "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."+msgid "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgstr "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "The response from Onshape was missing required parameters. Try connecting again."diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex cb8115f1d7..b90ac1d677 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -570,6 +570,12 @@ msgstr "Un aviso de cambio rastrea un cambio de ingeniería o manufactura contromsgid "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."msgstr "Una cuenta de compensación que mantiene el valor de bienes recibidos pero aún no facturados; la factura del proveedor la cancela."+msgid "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."+msgstr ""++msgid "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgstr ""+msgid "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."msgstr "Una empresa que diseña y fabrica sus propios productos terminados de principio a fin (aquí, el taller que fabrica robots humanoides) en lugar de fabricar piezas según la especificación de otra empresa."@@ -1949,6 +1955,9 @@ msgstr "Una operación de este trabajo se ejecuta en este lote"msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "La posición de una operación en la cola de su centro de trabajo — el orden en que el piso toma el trabajo. El motor lo numera según el orden de colocación (inicio proyectado más temprano primero); reordenar tarjetas en el tablero de centros de trabajo la reemplaza sin cambiar fechas."+msgid "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgstr ""+msgid "An unexpected error occurred while connecting to Onshape. Try connecting again."msgstr "Se produjo un error inesperado al conectar con Onshape. Vuelve a intentar la conexión."@@ -4676,6 +4685,9 @@ msgstr "No se pudo guardar"msgid "Couldn't complete the Onshape connection"msgstr "No se pudo completar la conexión con Onshape"+msgid "Couldn't complete the Onshape Government connection"+msgstr ""+msgid "Couldn't load documents"msgstr "No se pudieron cargar los documentos"@@ -4691,6 +4703,9 @@ msgstr "No se pudo reprogramar el trabajo. Por favor, inténtelo de nuevo."msgid "Couldn't save the Onshape connection"msgstr "No se pudo guardar la conexión con Onshape"+msgid "Couldn't save the Onshape Government connection"+msgstr ""+msgid "Couldn't save the Ramp connection"msgstr "No se pudo guardar la conexión con Ramp"@@ -7146,6 +7161,9 @@ msgstr "Ingresa el código de 6 dígitos de tu aplicación autenticadora"msgid "Enter the 6-digit code from your authenticator app to resume."msgstr "Ingrese el código de 6 dígitos de su aplicación de autenticación para continuar."+msgid "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgstr ""+msgid "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."msgstr "Ingrese la cantidad que debería haber sido este movimiento. Un movimiento opuesto para la diferencia se publica junto al original, en el período de tiempo del original."@@ -7362,6 +7380,9 @@ msgstr "Tipo de cambio actualizado a las"msgid "Exchange Rates"msgstr "Tipos de Cambio"+msgid "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgstr ""+msgid "Exchanging the authorization code for access failed. Try connecting again."msgstr "No se pudo canjear el código de autorización para obtener acceso. Vuelve a intentar la conexión."@@ -9028,6 +9049,9 @@ msgstr "En este paso"msgid "In use"msgstr "En uso"+msgid "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgstr ""+msgid "In-app"msgstr "En la aplicación"@@ -12271,6 +12295,9 @@ msgstr "Solo una integración de gastos puede estar activa a la vez. Desinstalamsgid "Only qualified employees can be scheduled for and run this process"msgstr "Solo los empleados calificados pueden ser programados y ejecutar este proceso"+msgid "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgstr ""+msgid "Onshape authorized the connection but saving it failed. Try connecting again."msgstr "Onshape autorizó la conexión, pero no se pudo guardar. Vuelve a intentar la conexión."@@ -12280,6 +12307,24 @@ msgstr "Onshape denegó la conexión"msgid "Onshape didn't return an authorization code"msgstr "Onshape no devolvió un código de autorización"+msgid "Onshape Government denied the connection"+msgstr ""++msgid "Onshape Government didn't return an authorization code"+msgstr ""++msgid "Onshape Government is already connected"+msgstr ""++msgid "Onshape Government isn't configured"+msgstr ""++msgid "Onshape Government rejected the authorization"+msgstr ""++msgid "Onshape is already connected"+msgstr ""+msgid "Onshape isn't configured"msgstr "Onshape no está configurado"@@ -12394,6 +12439,9 @@ msgstr "Programado Abierto"msgid "Open task details"msgstr "Abrir detalles de la tarea"+msgid "Open the Onshape Government integration and save its settings to connect again."+msgstr ""+msgid "Open the Ramp integration and try connecting again to finish setup."msgstr "Abre la integración de Ramp y vuelve a intentar la conexión para finalizar la configuración."@@ -17612,6 +17660,9 @@ msgstr "La cantidad de días después del método de cálculo en que vence el pamsgid "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."msgstr "El registro de solo adición de cada movimiento de inventario; la cantidad disponible es la suma de sus entradas firmadas y la fuente confiable."+msgid "The authorization was refused in Onshape. Save the integration settings to try again."+msgstr ""+msgid "The authorization was refused in Onshape. Try connecting again."msgstr "La autorización se rechazó en Onshape. Vuelve a intentar la conexión."@@ -18064,6 +18115,9 @@ msgstr "El nivel de inventario en mano que activa un nuevo pedido de reabastecimmsgid "The Onshape connection expired"msgstr "La conexión de Onshape venció"+msgid "The Onshape Government connection expired"+msgstr ""+msgid "The operations and steps your parts move through"msgstr "Las operaciones y pasos por los que se mueven tus piezas"@@ -18188,6 +18242,9 @@ msgstr "El cuerpo de la solicitud enviado textualmente con un tipo de contenidomsgid "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."msgstr "El producto en proceso residual que una orden de trabajo deja al cierre, trasladado a una cuenta de Desviación de Producción — la única desviación que Carbon contabiliza para una orden de trabajo."+msgid "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgstr ""+msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "La respuesta de Onshape no incluía los parámetros requeridos. Vuelve a intentar la conexión."diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex e48a3dbc7d..5bd1fe991f 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -570,6 +570,12 @@ msgstr "Un avis de modification suit un changement technique ou de fabrication cmsgid "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."msgstr "Un compte de compensation tenant la valeur des marchandises reçues mais non encore facturées ; la facture du fournisseur l'apure."+msgid "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."+msgstr ""++msgid "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgstr ""+msgid "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."msgstr "Une société qui conçoit et fabrique ses propres produits finis de bout en bout (ici, l'atelier construisant des robots humanoïdes) plutôt que de fabriquer des pièces selon les spécifications d'une autre société."@@ -1949,6 +1955,9 @@ msgstr "Une opération de cet OF s'exécute dans ce lot"msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "La position d'une opération dans la file d'attente de son poste de travail — l'ordre dans lequel l'atelier exécute le travail. Le moteur la numérote d'après l'ordre de placement (le démarrage projeté le plus tôt d'abord) ; le réordonnancement des cartes sur le Tableau des postes de travail la remplace sans modifier les dates."+msgid "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgstr ""+msgid "An unexpected error occurred while connecting to Onshape. Try connecting again."msgstr "Une erreur inattendue s'est produite lors de la connexion à Onshape. Réessayez de vous connecter."@@ -4676,6 +4685,9 @@ msgstr "N'a pas pu enregistrer"msgid "Couldn't complete the Onshape connection"msgstr "Impossible d'établir la connexion Onshape"+msgid "Couldn't complete the Onshape Government connection"+msgstr ""+msgid "Couldn't load documents"msgstr "Impossible de charger les documents"@@ -4691,6 +4703,9 @@ msgstr "Impossible de reprogrammer le travail. Veuillez réessayer."msgid "Couldn't save the Onshape connection"msgstr "Impossible d'enregistrer la connexion Onshape"+msgid "Couldn't save the Onshape Government connection"+msgstr ""+msgid "Couldn't save the Ramp connection"msgstr "Impossible d’enregistrer la connexion Ramp"@@ -7146,6 +7161,9 @@ msgstr "Entrez le code à 6 chiffres de votre application d'authentification"msgid "Enter the 6-digit code from your authenticator app to resume."msgstr "Entrez le code à 6 chiffres de votre application d'authentification pour continuer."+msgid "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgstr ""+msgid "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."msgstr "Entrez la quantité que ce mouvement aurait dû avoir. Un mouvement opposé pour la différence est posté à côté de l'original, dans la période de l'original."@@ -7362,6 +7380,9 @@ msgstr "Taux de change mis à jour à"msgid "Exchange Rates"msgstr "Taux de change"+msgid "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgstr ""+msgid "Exchanging the authorization code for access failed. Try connecting again."msgstr "L’échange du code d’autorisation pour obtenir l’accès a échoué. Essayez de vous reconnecter."@@ -9028,6 +9049,9 @@ msgstr "À cette étape"msgid "In use"msgstr "En cours d'utilisation"+msgid "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgstr ""+msgid "In-app"msgstr "In-app"@@ -12271,6 +12295,9 @@ msgstr "Une seule intégration de dépenses peut être active à la fois. Désinmsgid "Only qualified employees can be scheduled for and run this process"msgstr "Seuls les employés qualifiés peuvent être planifiés pour et exécuter ce processus"+msgid "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgstr ""+msgid "Onshape authorized the connection but saving it failed. Try connecting again."msgstr "Onshape a autorisé la connexion, mais son enregistrement a échoué. Réessayez de vous connecter."@@ -12280,6 +12307,24 @@ msgstr "Onshape a refusé la connexion"msgid "Onshape didn't return an authorization code"msgstr "Onshape n'a pas renvoyé de code d'autorisation"+msgid "Onshape Government denied the connection"+msgstr ""++msgid "Onshape Government didn't return an authorization code"+msgstr ""++msgid "Onshape Government is already connected"+msgstr ""++msgid "Onshape Government isn't configured"+msgstr ""++msgid "Onshape Government rejected the authorization"+msgstr ""++msgid "Onshape is already connected"+msgstr ""+msgid "Onshape isn't configured"msgstr "Onshape n'est pas configuré"@@ -12394,6 +12439,9 @@ msgstr "Planifiés ouverts"msgid "Open task details"msgstr "Ouvrir les détails de la tâche"+msgid "Open the Onshape Government integration and save its settings to connect again."+msgstr ""+msgid "Open the Ramp integration and try connecting again to finish setup."msgstr "Ouvrez l’intégration Ramp et essayez de vous reconnecter pour terminer la configuration."@@ -17612,6 +17660,9 @@ msgstr "Le nombre de jours après la méthode de calcul que le paiement est dû"msgid "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."msgstr "L'enregistrement d'ajout seul de tout mouvement de stock; le stock disponible est la somme de ses entrées signées et la source unique de référence."+msgid "The authorization was refused in Onshape. Save the integration settings to try again."+msgstr ""+msgid "The authorization was refused in Onshape. Try connecting again."msgstr "L'autorisation a été refusée dans Onshape. Réessayez de vous connecter."@@ -18064,6 +18115,9 @@ msgstr "Le niveau d'inventaire en main qui déclenche un nouvel ordre de réapprmsgid "The Onshape connection expired"msgstr "La connexion Onshape a expiré"+msgid "The Onshape Government connection expired"+msgstr ""+msgid "The operations and steps your parts move through"msgstr "Les opérations et les étapes par lesquelles vos pièces passent"@@ -18188,6 +18242,9 @@ msgstr "Le corps de la demande envoyé tel quel avec un type de contenu JSON aprmsgid "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."msgstr "L'en-cours résiduel qu'un ordre de fabrication a laissé à la clôture, transféré à un compte Écart de production — le seul écart que Carbon comptabilise pour un ordre de fabrication."+msgid "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgstr ""+msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "La réponse d'Onshape ne contenait pas les paramètres requis. Réessayez de vous connecter."diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex d13ac013f2..9c49097c21 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -570,6 +570,12 @@ msgstr "एक परिवर्तन सूचना समीक्षाmsgid "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."msgstr "एक क्लीयरिंग खाता जो प्राप्त किए गए लेकिन अभी तक चालान नहीं किए गए सामान का मूल्य रखता है; आपूर्तिकर्ता चालान इसे साफ करता है।"+msgid "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."+msgstr ""++msgid "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgstr ""+msgid "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."msgstr "एक कंपनी जो अपने स्वयं के तैयार उत्पादों को अंत तक डिजाइन और निर्मित करती है (यहां, मानवीय रोबोट बनाने वाली दुकान) बजाय किसी अन्य कंपनी के विनिर्देश के अनुसार पार्ट्स बनाने के।"@@ -1949,6 +1955,9 @@ msgstr "इस जॉब की एक प्रक्रिया इस बैmsgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "एक ऑपरेशन की वर्क सेंटर की कतार में स्थिति — वह क्रम जिसमें फ्लोर काम लेता है। इंजन इसे प्लेसमेंट क्रम से संख्या देता है (सबसे पहली अनुमानित शुरुआत पहले); वर्क सेंटर बोर्ड पर कार्ड्स को पुनः क्रमित करना तारीख बदले बिना इसे निरस्त करता है।"+msgid "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgstr ""+msgid "An unexpected error occurred while connecting to Onshape. Try connecting again."msgstr "Onshape से कनेक्ट करते समय एक अनपेक्षित त्रुटि हुई। दोबारा कनेक्ट करने का प्रयास करें।"@@ -4676,6 +4685,9 @@ msgstr "सहेज नहीं सके"msgid "Couldn't complete the Onshape connection"msgstr "Onshape कनेक्शन पूरा नहीं हो सका"+msgid "Couldn't complete the Onshape Government connection"+msgstr ""+msgid "Couldn't load documents"msgstr "दस्तावेज़ लोड नहीं हो सके"@@ -4691,6 +4703,9 @@ msgstr "कार्य पुनर्निर्धारित नहींmsgid "Couldn't save the Onshape connection"msgstr "Onshape कनेक्शन सहेजा नहीं जा सका"+msgid "Couldn't save the Onshape Government connection"+msgstr ""+msgid "Couldn't save the Ramp connection"msgstr "Ramp कनेक्शन को सहेजा नहीं जा सका"@@ -7146,6 +7161,9 @@ msgstr "अपने प्रमाणकर्ता ऐप से 6-अंकmsgid "Enter the 6-digit code from your authenticator app to resume."msgstr "पुनः शुरू करने के लिए अपने ऑथेंटिकेटर ऐप से 6-अंकीय कोड दर्ज करें।"+msgid "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgstr ""+msgid "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."msgstr "वह मात्रा दर्ज करें जो यह आंदोलन होना चाहिए था। अंतर के लिए एक विपरीत आंदोलन मूल के बगल में, मूल की समय अवधि में पोस्ट किया जाता है।"@@ -7362,6 +7380,9 @@ msgstr "विनिमय दर अपडेट किया गया"msgid "Exchange Rates"msgstr "विनिमय दरें"+msgid "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgstr ""+msgid "Exchanging the authorization code for access failed. Try connecting again."msgstr "पहुँच के लिए प्राधिकरण कोड का विनिमय विफल रहा। दोबारा कनेक्ट करने का प्रयास करें।"@@ -9028,6 +9049,9 @@ msgstr "इस चरण में"msgid "In use"msgstr "उपयोग में"+msgid "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgstr ""+msgid "In-app"msgstr "ऐप में"@@ -12271,6 +12295,9 @@ msgstr "एक बार में केवल एक खर्च एकीकmsgid "Only qualified employees can be scheduled for and run this process"msgstr "केवल योग्य कर्मचारी ही इस प्रक्रिया के लिए अनुसूचित और चलाए जा सकते हैं"+msgid "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgstr ""+msgid "Onshape authorized the connection but saving it failed. Try connecting again."msgstr "Onshape ने कनेक्शन को अधिकृत किया, लेकिन उसे सहेजना विफल रहा। दोबारा कनेक्ट करने का प्रयास करें।"@@ -12280,6 +12307,24 @@ msgstr "Onshape ने कनेक्शन अस्वीकार कर दmsgid "Onshape didn't return an authorization code"msgstr "Onshape ने प्राधिकरण कोड नहीं लौटाया"+msgid "Onshape Government denied the connection"+msgstr ""++msgid "Onshape Government didn't return an authorization code"+msgstr ""++msgid "Onshape Government is already connected"+msgstr ""++msgid "Onshape Government isn't configured"+msgstr ""++msgid "Onshape Government rejected the authorization"+msgstr ""++msgid "Onshape is already connected"+msgstr ""+msgid "Onshape isn't configured"msgstr "Onshape कॉन्फ़िगर नहीं है"@@ -12394,6 +12439,9 @@ msgstr "खुली अनुसूचित"msgid "Open task details"msgstr "कार्य विवरण खोलें"+msgid "Open the Onshape Government integration and save its settings to connect again."+msgstr ""+msgid "Open the Ramp integration and try connecting again to finish setup."msgstr "Ramp एकीकरण खोलें और कॉन्फ़िगरेशन पूरा करने के लिए दोबारा कनेक्ट करने का प्रयास करें।"@@ -17612,6 +17660,9 @@ msgstr "गणना विधि के बाद दिनों की संmsgid "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."msgstr "प्रत्येक स्टॉक आंदोलन का केवल-परिशिष्ट रिकॉर्ड; हाथ में राशि इसकी हस्ताक्षरित प्रविष्टियों का योग है और सत्य का स्रोत है।"+msgid "The authorization was refused in Onshape. Save the integration settings to try again."+msgstr ""+msgid "The authorization was refused in Onshape. Try connecting again."msgstr "Onshape में प्राधिकरण अस्वीकार कर दिया गया। दोबारा कनेक्ट करने का प्रयास करें।"@@ -18064,6 +18115,9 @@ msgstr "हाथ पर रखी गई स्तर जो मात्राmsgid "The Onshape connection expired"msgstr "Onshape कनेक्शन समाप्त हो गया"+msgid "The Onshape Government connection expired"+msgstr ""+msgid "The operations and steps your parts move through"msgstr "ऑपरेशन और चरण जिनके माध्यम से आपके पार्ट्स आगे बढ़ते हैं"@@ -18188,6 +18242,9 @@ msgstr "वह request body जिसे JSON content type के साथ जmsgid "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."msgstr "अवशिष्ट WIP जो एक जॉब के पास बंद करते समय बचा है, एक उत्पादन विचलन खाते में स्वीप किया गया — एक जॉब के लिए कार्बन बुक का एकमात्र विचलन।"+msgid "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgstr ""+msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "Onshape की प्रतिक्रिया में आवश्यक पैरामीटर नहीं थे। दोबारा कनेक्ट करने का प्रयास करें।"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex 34174797c3..730595848a 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -570,6 +570,12 @@ msgstr "Un avviso di modifica traccia un cambiamento controllato di ingegneria omsgid "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."msgstr "Un conto di compensazione che tiene il valore della merce ricevuta ma non ancora fatturata; la fattura del fornitore la compensa."+msgid "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."+msgstr ""++msgid "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgstr ""+msgid "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."msgstr "Un'azienda che progetta e costruisce i propri prodotti finiti da capo a piedi (qui, l'officina che costruisce robot umanoidi) piuttosto che realizzare componenti secondo le specifiche di un'altra azienda."@@ -1949,6 +1955,9 @@ msgstr "Un'operazione di questa commessa è in questo lotto"msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "La posizione dell'operazione nella coda del suo centro di lavoro — l'ordine in cui l'officina raccoglie il lavoro. Il motore lo numera in base all'ordine di posizionamento (inizio previsto più vicino per primo); il riordinamento delle schede sulla lavagna dei Centri di lavoro la sovrascrive senza modificare le date."+msgid "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgstr ""+msgid "An unexpected error occurred while connecting to Onshape. Try connecting again."msgstr "Si è verificato un errore inatteso durante la connessione a Onshape. Riprova a connetterti."@@ -4676,6 +4685,9 @@ msgstr "Impossibile salvare"msgid "Couldn't complete the Onshape connection"msgstr "Impossibile completare la connessione a Onshape"+msgid "Couldn't complete the Onshape Government connection"+msgstr ""+msgid "Couldn't load documents"msgstr "Impossibile caricare i documenti"@@ -4691,6 +4703,9 @@ msgstr "Impossibile ripianificare il lavoro. Riprova."msgid "Couldn't save the Onshape connection"msgstr "Impossibile salvare la connessione a Onshape"+msgid "Couldn't save the Onshape Government connection"+msgstr ""+msgid "Couldn't save the Ramp connection"msgstr "Non è stato possibile salvare la connessione Ramp"@@ -7146,6 +7161,9 @@ msgstr "Inserisci il codice a 6 cifre dall'app autenticatore"msgid "Enter the 6-digit code from your authenticator app to resume."msgstr "Inserisci il codice a 6 cifre dall'app autenticatore per continuare."+msgid "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgstr ""+msgid "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."msgstr "Inserisci la quantità che questo movimento avrebbe dovuto essere. Un movimento opposto per la differenza è registrato accanto all'originale, nel periodo temporale dell'originale."@@ -7362,6 +7380,9 @@ msgstr "Tasso di cambio aggiornato alle"msgid "Exchange Rates"msgstr "Tassi di Cambio"+msgid "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgstr ""+msgid "Exchanging the authorization code for access failed. Try connecting again."msgstr "Lo scambio del codice di autorizzazione per ottenere l'accesso non è riuscito. Prova a connetterti di nuovo."@@ -9028,6 +9049,9 @@ msgstr "In questo passo"msgid "In use"msgstr "In uso"+msgid "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgstr ""+msgid "In-app"msgstr "In-app"@@ -12271,6 +12295,9 @@ msgstr "Solo un'integrazione di spesa può essere attiva alla volta. Disinstallamsgid "Only qualified employees can be scheduled for and run this process"msgstr "Solo i dipendenti qualificati possono essere programmati e eseguire questo processo"+msgid "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgstr ""+msgid "Onshape authorized the connection but saving it failed. Try connecting again."msgstr "Onshape ha autorizzato la connessione, ma il salvataggio non è riuscito. Riprova a connetterti."@@ -12280,6 +12307,24 @@ msgstr "Onshape ha negato la connessione"msgid "Onshape didn't return an authorization code"msgstr "Onshape non ha restituito un codice di autorizzazione"+msgid "Onshape Government denied the connection"+msgstr ""++msgid "Onshape Government didn't return an authorization code"+msgstr ""++msgid "Onshape Government is already connected"+msgstr ""++msgid "Onshape Government isn't configured"+msgstr ""++msgid "Onshape Government rejected the authorization"+msgstr ""++msgid "Onshape is already connected"+msgstr ""+msgid "Onshape isn't configured"msgstr "Onshape non è configurato"@@ -12394,6 +12439,9 @@ msgstr "Programmato Aperto"msgid "Open task details"msgstr "Apri dettagli attività"+msgid "Open the Onshape Government integration and save its settings to connect again."+msgstr ""+msgid "Open the Ramp integration and try connecting again to finish setup."msgstr "Apri l'integrazione Ramp e prova a connetterti di nuovo per completare la configurazione."@@ -17612,6 +17660,9 @@ msgstr "L'importo dei giorni dopo il metodo di calcolo in cui il pagamento è domsgid "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."msgstr "Il record di sola aggiunta di ogni movimento di inventario; la giacenza è la somma delle sue voci firmate ed è la fonte di verità."+msgid "The authorization was refused in Onshape. Save the integration settings to try again."+msgstr ""+msgid "The authorization was refused in Onshape. Try connecting again."msgstr "L'autorizzazione è stata rifiutata in Onshape. Riprova a connetterti."@@ -18064,6 +18115,9 @@ msgstr "Il livello di inventario in mano che attiva un nuovo ordine di rifornimemsgid "The Onshape connection expired"msgstr "La connessione Onshape è scaduta"+msgid "The Onshape Government connection expired"+msgstr ""+msgid "The operations and steps your parts move through"msgstr "Le operazioni e i passaggi attraverso cui si muovono i tuoi componenti"@@ -18188,6 +18242,9 @@ msgstr "Il corpo della richiesta inviato testualmente con un tipo di contenuto Jmsgid "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."msgstr "Il WIP residuo che un ordine di produzione ha lasciato alla chiusura, trasferito a un conto di Scostamento di produzione — l'unico scostamento che Carbon registra per un ordine di produzione."+msgid "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgstr ""+msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "Nella risposta di Onshape mancavano i parametri richiesti. Riprova a connetterti."diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex fa8ab195cf..583ff43e2d 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -570,6 +570,12 @@ msgstr "変更通知は、エンジニアリングまたは製造変更をレビmsgid "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."msgstr "受け取ったが請求されていない商品の価値を保有するクリアリング勘定。仕入先請求書がそれを結済します。"+msgid "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."+msgstr ""++msgid "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgstr ""+msgid "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."msgstr "自社で最初から最後まで完成製品を設計・製造する会社です(ここでは、ヒューマノイドロボットを製造するショップ)。別の会社の仕様に従って部品を製造するのではなく。"@@ -1949,6 +1955,9 @@ msgstr "このジョブの工程がこのバッチで実行されます"msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "作業区のキューにおける工程のポジション — 床がピックアップする順序。エンジンは配置順序(最初に予想される開始が最初)からそれに番号を付けます。作業区ボード上でカードを並べ替えることは、日付を変えずにそれを上書きします。"+msgid "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgstr ""+msgid "An unexpected error occurred while connecting to Onshape. Try connecting again."msgstr "Onshape への接続中に予期しないエラーが発生しました。もう一度接続してください。"@@ -4676,6 +4685,9 @@ msgstr "保存できませんでした"msgid "Couldn't complete the Onshape connection"msgstr "Onshape 接続を完了できませんでした"+msgid "Couldn't complete the Onshape Government connection"+msgstr ""+msgid "Couldn't load documents"msgstr "ドキュメントを読み込めませんでした"@@ -4691,6 +4703,9 @@ msgstr "ジョブを再スケジュールできませんでした。もう一度msgid "Couldn't save the Onshape connection"msgstr "Onshape 接続を保存できませんでした"+msgid "Couldn't save the Onshape Government connection"+msgstr ""+msgid "Couldn't save the Ramp connection"msgstr "Ramp 接続を保存できませんでした"@@ -7146,6 +7161,9 @@ msgstr "認証アプリから6桁のコードを入力してください"msgid "Enter the 6-digit code from your authenticator app to resume."msgstr "認証器アプリから6桁のコードを入力して再開します。"+msgid "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgstr ""+msgid "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."msgstr "この移動がどの数量であるべきかを入力します。差分の反対の移動は、オリジナルの横に、オリジナルの期間に投稿されます。"@@ -7362,6 +7380,9 @@ msgstr "為替レート更新時刻"msgid "Exchange Rates"msgstr "為替レート"+msgid "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgstr ""+msgid "Exchanging the authorization code for access failed. Try connecting again."msgstr "アクセス権を取得するための認可コードの交換に失敗しました。もう一度接続してください。"@@ -9028,6 +9049,9 @@ msgstr "このステップで"msgid "In use"msgstr "使用中"+msgid "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgstr ""+msgid "In-app"msgstr "アプリ内"@@ -12271,6 +12295,9 @@ msgstr "一度にアクティブにできる支出統合は1つだけです。msgid "Only qualified employees can be scheduled for and run this process"msgstr "資格のある従業員のみがこのプロセスをスケジュールして実行できます"+msgid "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgstr ""+msgid "Onshape authorized the connection but saving it failed. Try connecting again."msgstr "Onshape は接続を承認しましたが、保存に失敗しました。もう一度接続してください。"@@ -12280,6 +12307,24 @@ msgstr "Onshape が接続を拒否しました"msgid "Onshape didn't return an authorization code"msgstr "Onshape が認可コードを返しませんでした"+msgid "Onshape Government denied the connection"+msgstr ""++msgid "Onshape Government didn't return an authorization code"+msgstr ""++msgid "Onshape Government is already connected"+msgstr ""++msgid "Onshape Government isn't configured"+msgstr ""++msgid "Onshape Government rejected the authorization"+msgstr ""++msgid "Onshape is already connected"+msgstr ""+msgid "Onshape isn't configured"msgstr "Onshape が構成されていません"@@ -12394,6 +12439,9 @@ msgstr "スケジュール済みを開く"msgid "Open task details"msgstr "タスク詳細を開く"+msgid "Open the Onshape Government integration and save its settings to connect again."+msgstr ""+msgid "Open the Ramp integration and try connecting again to finish setup."msgstr "Ramp 連携を開き、設定を完了するためにもう一度接続してください。"@@ -17612,6 +17660,9 @@ msgstr "計算方法の後の支払い期日までの日数"msgid "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."msgstr "すべての在庫移動の追加専用レコード。手持在庫はその署名付きエントリの合計であり、信頼できる情報源です。"+msgid "The authorization was refused in Onshape. Save the integration settings to try again."+msgstr ""+msgid "The authorization was refused in Onshape. Try connecting again."msgstr "Onshape で認可が拒否されました。もう一度接続してください。"@@ -18064,6 +18115,9 @@ msgstr "数量ベースのポリシーに基づいて新しい補充注文をトmsgid "The Onshape connection expired"msgstr "Onshape の接続が期限切れです"+msgid "The Onshape Government connection expired"+msgstr ""+msgid "The operations and steps your parts move through"msgstr "部品が通過する工程とステップ。"@@ -18188,6 +18242,9 @@ msgstr "ワークフロー変数が置き換えられた後、JSON コンテンmsgid "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."msgstr "製造指図がクローズ時に残した残留仕掛品は、生産差異勘定に振り替えられます — これはCarbonが製造指図について計上する唯一の差異です。"+msgid "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgstr ""+msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "Onshape からの応答に必須パラメーターが含まれていませんでした。もう一度接続してください。"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 70e8713d6d..df4d71c853 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -570,6 +570,12 @@ msgstr "변경 통지는 제어된 엔지니어링 또는 제조 변경사항을msgid "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."msgstr "수신한 상품이지만 아직 청구되지 않은 상품의 가치를 보유하는 정산 계정이며, 공급업체 송장이 이를 정산합니다."+msgid "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."+msgstr ""++msgid "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgstr ""+msgid "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."msgstr "다른 회사의 사양에 따라 부품을 만드는 대신, 자사의 완제품을 처음부터 끝까지 직접 설계하고 제작하는 회사(여기서는 휴머노이드 로봇을 만드는 업체)."@@ -1949,6 +1955,9 @@ msgstr "이 작업의 공정이 이 배치에서 실행됩니다"msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "공정이 작업장의 대기열에서 차지하는 위치 — 현장이 작업을 처리하는 순서입니다. 엔진은 배치 순서(가장 빠른 예상 시작)에 따라 번호를 매깁니다. 작업장 보드에서 카드 순서를 변경하면 날짜를 변경하지 않고 이를 재정의합니다."+msgid "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgstr ""+msgid "An unexpected error occurred while connecting to Onshape. Try connecting again."msgstr "Onshape에 연결하는 중 예기치 않은 오류가 발생했습니다. 다시 연결해 보세요."@@ -4676,6 +4685,9 @@ msgstr "저장할 수 없습니다"msgid "Couldn't complete the Onshape connection"msgstr "Onshape 연결을 완료할 수 없습니다"+msgid "Couldn't complete the Onshape Government connection"+msgstr ""+msgid "Couldn't load documents"msgstr "문서를 불러올 수 없습니다"@@ -4691,6 +4703,9 @@ msgstr "작업 일정을 변경할 수 없습니다. 다시 시도하세요."msgid "Couldn't save the Onshape connection"msgstr "Onshape 연결을 저장할 수 없습니다"+msgid "Couldn't save the Onshape Government connection"+msgstr ""+msgid "Couldn't save the Ramp connection"msgstr "Ramp 연결을 저장할 수 없습니다"@@ -7146,6 +7161,9 @@ msgstr "인증자 앱에서 6자리 코드를 입력하세요"msgid "Enter the 6-digit code from your authenticator app to resume."msgstr "계속하려면 인증 앱의 6자리 코드를 입력하세요."+msgid "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgstr ""+msgid "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."msgstr "이 이동이 있었어야 할 수량을 입력하십시오. 차이에 대한 반대 이동은 원본 옆의 원본의 시간 기간에 게시됩니다."@@ -7362,6 +7380,9 @@ msgstr "환율 업데이트 시간"msgid "Exchange Rates"msgstr "환율"+msgid "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgstr ""+msgid "Exchanging the authorization code for access failed. Try connecting again."msgstr "액세스 권한을 얻기 위한 인증 코드 교환에 실패했습니다. 다시 연결해 보세요."@@ -9028,6 +9049,9 @@ msgstr "이 단계에서"msgid "In use"msgstr "사용 중"+msgid "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgstr ""+msgid "In-app"msgstr "인앱"@@ -12271,6 +12295,9 @@ msgstr "한 번에 하나의 지출 통합만 활성화될 수 있습니다. 먼msgid "Only qualified employees can be scheduled for and run this process"msgstr "자격이 있는 직원만 이 프로세스를 예약하고 실행할 수 있습니다."+msgid "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgstr ""+msgid "Onshape authorized the connection but saving it failed. Try connecting again."msgstr "Onshape가 연결을 승인했지만 저장하지 못했습니다. 다시 연결해 보세요."@@ -12280,6 +12307,24 @@ msgstr "Onshape가 연결을 거부했습니다"msgid "Onshape didn't return an authorization code"msgstr "Onshape가 인증 코드를 반환하지 않았습니다"+msgid "Onshape Government denied the connection"+msgstr ""++msgid "Onshape Government didn't return an authorization code"+msgstr ""++msgid "Onshape Government is already connected"+msgstr ""++msgid "Onshape Government isn't configured"+msgstr ""++msgid "Onshape Government rejected the authorization"+msgstr ""++msgid "Onshape is already connected"+msgstr ""+msgid "Onshape isn't configured"msgstr "Onshape가 구성되지 않았습니다"@@ -12394,6 +12439,9 @@ msgstr "미결 예약 정비"msgid "Open task details"msgstr "작업 세부정보 열기"+msgid "Open the Onshape Government integration and save its settings to connect again."+msgstr ""+msgid "Open the Ramp integration and try connecting again to finish setup."msgstr "Ramp 연동을 열고 다시 연결하여 설정을 완료해 보세요."@@ -17612,6 +17660,9 @@ msgstr "계산 방법 이후 지불이 만기되는 일수"msgid "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."msgstr "모든 재고 이동을 추가 전용으로 기록한 원장으로, 보유 수량은 부호가 있는 항목들의 합이며 최종 근거 데이터입니다."+msgid "The authorization was refused in Onshape. Save the integration settings to try again."+msgstr ""+msgid "The authorization was refused in Onshape. Try connecting again."msgstr "Onshape에서 인증이 거부되었습니다. 다시 연결해 보세요."@@ -18064,6 +18115,9 @@ msgstr "수량 기반 정책에서 새 보충 주문을 발생시키는 보유msgid "The Onshape connection expired"msgstr "Onshape 연동이 만료되었습니다"+msgid "The Onshape Government connection expired"+msgstr ""+msgid "The operations and steps your parts move through"msgstr "부품이 이동하는 공정 및 단계"@@ -18188,6 +18242,9 @@ msgstr "워크플로우 변수가 대체된 후 JSON 콘텐츠 유형으로 그msgid "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."msgstr "작업 마감 시 남은 재공품(WIP)으로, 생산 차이 계정으로 이관됩니다 — Carbon이 작업에 대해 계상하는 유일한 차이 항목입니다."+msgid "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgstr ""+msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "Onshape의 응답에 필수 매개변수가 없습니다. 다시 연결해 보세요."diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex 41bde78d03..16262620fd 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -570,6 +570,12 @@ msgstr "Zawiadomienie o zmianie śledzi kontrolowaną zmianę inżynieryjną lubmsgid "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."msgstr "Konto kompensacyjne zawierające wartość towarów otrzymanych, ale jeszcze niezafakturowanych; faktura dostawcy go wyzerowuje."+msgid "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."+msgstr ""++msgid "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgstr ""+msgid "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."msgstr "Firma, która projektuje i buduje własne produkty końcowe od początku do końca (tutaj sklep budujący roboty humanoidalne) zamiast wytwarzać części zgodnie ze specyfikacją innej firmy."@@ -1949,6 +1955,9 @@ msgstr "Operacja tego zlecenia jest w tej partii"msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "Pozycja operacji w kolejce stanowiska roboczego — kolejność, w jakiej brygada podejmuje prace. Silnik numeruje ją na podstawie kolejności umieszczenia (najwcześniejszy planowany start najpierw); zmiana kolejności kart na tablicy Stanowisk roboczych zmienia ją bez zmiany dat."+msgid "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgstr ""+msgid "An unexpected error occurred while connecting to Onshape. Try connecting again."msgstr "Podczas łączenia z Onshape wystąpił nieoczekiwany błąd. Spróbuj połączyć się ponownie."@@ -4676,6 +4685,9 @@ msgstr "Nie można było zapisać"msgid "Couldn't complete the Onshape connection"msgstr "Nie udało się ukończyć połączenia z Onshape"+msgid "Couldn't complete the Onshape Government connection"+msgstr ""+msgid "Couldn't load documents"msgstr "Nie udało się załadować dokumentów"@@ -4691,6 +4703,9 @@ msgstr "Nie można przeplanować zadania. Spróbuj ponownie."msgid "Couldn't save the Onshape connection"msgstr "Nie udało się zapisać połączenia z Onshape"+msgid "Couldn't save the Onshape Government connection"+msgstr ""+msgid "Couldn't save the Ramp connection"msgstr "Nie udało się zapisać połączenia z Ramp"@@ -7146,6 +7161,9 @@ msgstr "Wprowadź 6-cyfrowy kod z aplikacji authenticator"msgid "Enter the 6-digit code from your authenticator app to resume."msgstr "Wpisz 6-cyfrowy kod z aplikacji Authenticator, aby wznowić."+msgid "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgstr ""+msgid "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."msgstr "Wprowadź ilość, która powinna być dla tego ruchu. Przeciwny ruch dla różnicy jest publikowany obok oryginału w okresie czasowym oryginału."@@ -7362,6 +7380,9 @@ msgstr "Kurs wymiany zaktualizowany"msgid "Exchange Rates"msgstr "Kursy wymiany"+msgid "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgstr ""+msgid "Exchanging the authorization code for access failed. Try connecting again."msgstr "Wymiana kodu autoryzacyjnego na dostęp nie powiodła się. Spróbuj połączyć się ponownie."@@ -9028,6 +9049,9 @@ msgstr "W tym kroku"msgid "In use"msgstr "W użyciu"+msgid "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgstr ""+msgid "In-app"msgstr "W aplikacji"@@ -12271,6 +12295,9 @@ msgstr "Tylko jedna integracja wydatków może być aktywna jednocześnie. Najpimsgid "Only qualified employees can be scheduled for and run this process"msgstr "Tylko wykwalifikowani pracownicy mogą być zaplanowani i uruchamiać ten proces"+msgid "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgstr ""+msgid "Onshape authorized the connection but saving it failed. Try connecting again."msgstr "Onshape autoryzował połączenie, ale jego zapisanie nie udało się. Spróbuj połączyć się ponownie."@@ -12280,6 +12307,24 @@ msgstr "Onshape odmówił połączenia"msgid "Onshape didn't return an authorization code"msgstr "Onshape nie zwrócił kodu autoryzacji"+msgid "Onshape Government denied the connection"+msgstr ""++msgid "Onshape Government didn't return an authorization code"+msgstr ""++msgid "Onshape Government is already connected"+msgstr ""++msgid "Onshape Government isn't configured"+msgstr ""++msgid "Onshape Government rejected the authorization"+msgstr ""++msgid "Onshape is already connected"+msgstr ""+msgid "Onshape isn't configured"msgstr "Onshape nie jest skonfigurowany"@@ -12394,6 +12439,9 @@ msgstr "Otwarte zaplanowane"msgid "Open task details"msgstr "Otwórz szczegóły zadania"+msgid "Open the Onshape Government integration and save its settings to connect again."+msgstr ""+msgid "Open the Ramp integration and try connecting again to finish setup."msgstr "Otwórz integrację Ramp i spróbuj połączyć się ponownie, aby dokończyć konfigurację."@@ -17612,6 +17660,9 @@ msgstr "Liczba dni po metodzie obliczenia, w której płatność jest wymagalna"msgid "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."msgstr "Rejestr tylko dołączania każdego ruchu magazynowego; dostępna ilość jest sumą jego podpisanych wpisów i źródłem prawdy."+msgid "The authorization was refused in Onshape. Save the integration settings to try again."+msgstr ""+msgid "The authorization was refused in Onshape. Try connecting again."msgstr "Autoryzacja została odrzucona w Onshape. Spróbuj połączyć się ponownie."@@ -18064,6 +18115,9 @@ msgstr "Poziom zapasu w ręku, który wyzwala nowy porządek uzupełniania zgodnmsgid "The Onshape connection expired"msgstr "Połączenie Onshape wygasło"+msgid "The Onshape Government connection expired"+msgstr ""+msgid "The operations and steps your parts move through"msgstr "Operacje i kroki, przez które przechodzą Twoje części"@@ -18188,6 +18242,9 @@ msgstr "Treść żądania wysłana dosłownie z typem zawartości JSON po zastąmsgid "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."msgstr "Rezydualna produkcja w toku, którą zlecenie ma przy zamknięciu, przenoszona na konto Odchylenia Produkcji — jedyne odchylenie, które Carbon księguje dla zlecenia."+msgid "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgstr ""+msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "W odpowiedzi z Onshape brakowało wymaganych parametrów. Spróbuj połączyć się ponownie."diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 6143042b73..708a30d862 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -570,6 +570,12 @@ msgstr "Um aviso de alteração rastreia uma alteração de engenharia ou fabricmsgid "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."msgstr "Uma conta de compensação que mantém o valor das mercadorias recebidas mas ainda não faturadas; a fatura do fornecedor a limpa."+msgid "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."+msgstr ""++msgid "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgstr ""+msgid "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."msgstr "Uma empresa que projeta e constrói seus próprios produtos acabados de ponta a ponta (aqui, a loja que constrói robôs humanoides) em vez de fabricar peças de acordo com a especificação de outra empresa."@@ -1949,6 +1955,9 @@ msgstr "Uma operação deste trabalho é executada neste lote"msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "A posição de uma operação na fila de seu centro de trabalho — a ordem em que o chão pega o trabalho. O mecanismo a numera de acordo com a ordem de colocação (início projetado mais cedo primeiro); reorganizar cartões no painel de Centros de Trabalho sobrescreve sem alterar as datas."+msgid "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgstr ""+msgid "An unexpected error occurred while connecting to Onshape. Try connecting again."msgstr "Ocorreu um erro inesperado ao conectar ao Onshape. Tente conectar novamente."@@ -4676,6 +4685,9 @@ msgstr "Não foi possível salvar"msgid "Couldn't complete the Onshape connection"msgstr "Não foi possível concluir a conexão com o Onshape"+msgid "Couldn't complete the Onshape Government connection"+msgstr ""+msgid "Couldn't load documents"msgstr "Não foi possível carregar documentos"@@ -4691,6 +4703,9 @@ msgstr "Não foi possível reagendar o trabalho. Por favor, tente novamente."msgid "Couldn't save the Onshape connection"msgstr "Não foi possível salvar a conexão com o Onshape"+msgid "Couldn't save the Onshape Government connection"+msgstr ""+msgid "Couldn't save the Ramp connection"msgstr "Não foi possível salvar a conexão com o Ramp"@@ -7146,6 +7161,9 @@ msgstr "Digite o código de 6 dígitos do seu aplicativo autenticador"msgid "Enter the 6-digit code from your authenticator app to resume."msgstr "Introduza o código de 6 dígitos da sua aplicação autenticadora para continuar."+msgid "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgstr ""+msgid "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."msgstr "Insira a quantidade que esse movimento deveria ter sido. Um movimento oposto para a diferença é lançado ao lado do original, no período de tempo do original."@@ -7362,6 +7380,9 @@ msgstr "Taxa de câmbio atualizada em"msgid "Exchange Rates"msgstr "Taxas de Câmbio"+msgid "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgstr ""+msgid "Exchanging the authorization code for access failed. Try connecting again."msgstr "A troca do código de autorização para obter acesso falhou. Tente conectar novamente."@@ -9028,6 +9049,9 @@ msgstr "Nesta etapa"msgid "In use"msgstr "Em uso"+msgid "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgstr ""+msgid "In-app"msgstr "No aplicativo"@@ -12271,6 +12295,9 @@ msgstr "Apenas uma integração de despesas pode estar ativa por vez. Desinstalemsgid "Only qualified employees can be scheduled for and run this process"msgstr "Apenas funcionários qualificados podem ser agendados e executar este processo"+msgid "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgstr ""+msgid "Onshape authorized the connection but saving it failed. Try connecting again."msgstr "O Onshape autorizou a conexão, mas não foi possível salvá-la. Tente conectar novamente."@@ -12280,6 +12307,24 @@ msgstr "O Onshape recusou a conexão"msgid "Onshape didn't return an authorization code"msgstr "O Onshape não retornou um código de autorização"+msgid "Onshape Government denied the connection"+msgstr ""++msgid "Onshape Government didn't return an authorization code"+msgstr ""++msgid "Onshape Government is already connected"+msgstr ""++msgid "Onshape Government isn't configured"+msgstr ""++msgid "Onshape Government rejected the authorization"+msgstr ""++msgid "Onshape is already connected"+msgstr ""+msgid "Onshape isn't configured"msgstr "O Onshape não está configurado"@@ -12394,6 +12439,9 @@ msgstr "Agendado Aberto"msgid "Open task details"msgstr "Abrir detalhes da tarefa"+msgid "Open the Onshape Government integration and save its settings to connect again."+msgstr ""+msgid "Open the Ramp integration and try connecting again to finish setup."msgstr "Abra a integração do Ramp e tente conectar novamente para concluir a configuração."@@ -17612,6 +17660,9 @@ msgstr "A quantidade de dias após o método de cálculo em que o pagamento é dmsgid "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."msgstr "O registro de adição ao final de cada movimento de estoque; a quantidade disponível é a soma de suas entradas assinadas e a fonte confiável."+msgid "The authorization was refused in Onshape. Save the integration settings to try again."+msgstr ""+msgid "The authorization was refused in Onshape. Try connecting again."msgstr "A autorização foi recusada no Onshape. Tente conectar novamente."@@ -18064,6 +18115,9 @@ msgstr "O nível de inventário em mão que ativa um novo pedido de reabastecimemsgid "The Onshape connection expired"msgstr "A conexão do Onshape venceu"+msgid "The Onshape Government connection expired"+msgstr ""+msgid "The operations and steps your parts move through"msgstr "As operações e etapas pelas quais suas peças passam"@@ -18188,6 +18242,9 @@ msgstr "O corpo da solicitação enviado literalmente com um tipo de conteúdo Jmsgid "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."msgstr "O produto em processo residual que uma ordem de produção deixa ao fechar, movido para uma conta de Variação de Produção — a única variação que o Carbon contabiliza para uma ordem de produção."+msgid "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgstr ""+msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "A resposta do Onshape não incluía os parâmetros necessários. Tente conectar novamente."diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 091e4e646a..662c78c033 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -570,6 +570,12 @@ msgstr "Извещение об изменении отслеживает конmsgid "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."msgstr "Счет, содержащий стоимость полученных товаров, еще не выставленных счетом; счет-фактура поставщика его очищает."+msgid "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."+msgstr ""++msgid "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgstr ""+msgid "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."msgstr "Организация, которая проектирует и производит свои готовые продукты полностью (здесь — цех, производящий гуманоидных роботов), а не производит детали по спецификации другой организации."@@ -1949,6 +1955,9 @@ msgstr "Операция этого задания входит в эту парmsgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "Позиция операции в очереди ее рабочего центра — порядок, в котором цех берет работу. Двигатель нумерует ее по порядку размещения (самое раннее предполагаемое начало в первую очередь); переупорядочение карт на доске Рабочих центров переопределяет его без изменения дат."+msgid "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgstr ""+msgid "An unexpected error occurred while connecting to Onshape. Try connecting again."msgstr "При подключении к Onshape произошла непредвиденная ошибка. Повторите попытку подключения."@@ -4676,6 +4685,9 @@ msgstr "Не удалось сохранить"msgid "Couldn't complete the Onshape connection"msgstr "Не удалось завершить подключение к Onshape"+msgid "Couldn't complete the Onshape Government connection"+msgstr ""+msgid "Couldn't load documents"msgstr "Не удалось загрузить документы"@@ -4691,6 +4703,9 @@ msgstr "Не удалось перепланировать задание. Поmsgid "Couldn't save the Onshape connection"msgstr "Не удалось сохранить подключение к Onshape"+msgid "Couldn't save the Onshape Government connection"+msgstr ""+msgid "Couldn't save the Ramp connection"msgstr "Не удалось сохранить подключение к Ramp"@@ -7146,6 +7161,9 @@ msgstr "Введите 6-значный код из приложения аутmsgid "Enter the 6-digit code from your authenticator app to resume."msgstr "Введите 6-значный код из приложения-аутентификатора, чтобы продолжить."+msgid "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgstr ""+msgid "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."msgstr "Введите количество, которое должно было быть в этом движении. Противоположное движение для разницы размещается рядом с оригинальным в его временном периоде."@@ -7362,6 +7380,9 @@ msgstr "Валютный курс обновлен в"msgid "Exchange Rates"msgstr "Валютные курсы"+msgid "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgstr ""+msgid "Exchanging the authorization code for access failed. Try connecting again."msgstr "Не удалось обменять код авторизации на токен доступа. Попробуйте подключиться снова."@@ -9028,6 +9049,9 @@ msgstr "На этом шаге"msgid "In use"msgstr "В использовании"+msgid "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgstr ""+msgid "In-app"msgstr "В приложении"@@ -12271,6 +12295,9 @@ msgstr "Одновременно может быть активна толькоmsgid "Only qualified employees can be scheduled for and run this process"msgstr "Только квалифицированные сотрудники могут быть запланированы и выполнить этот процесс"+msgid "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgstr ""+msgid "Onshape authorized the connection but saving it failed. Try connecting again."msgstr "Onshape авторизовал подключение, но сохранить его не удалось. Повторите попытку подключения."@@ -12280,6 +12307,24 @@ msgstr "Onshape отклонил подключение"msgid "Onshape didn't return an authorization code"msgstr "Onshape не вернул код авторизации"+msgid "Onshape Government denied the connection"+msgstr ""++msgid "Onshape Government didn't return an authorization code"+msgstr ""++msgid "Onshape Government is already connected"+msgstr ""++msgid "Onshape Government isn't configured"+msgstr ""++msgid "Onshape Government rejected the authorization"+msgstr ""++msgid "Onshape is already connected"+msgstr ""+msgid "Onshape isn't configured"msgstr "Onshape не настроен"@@ -12394,6 +12439,9 @@ msgstr "Открытые запланированные"msgid "Open task details"msgstr "Открыть детали задачи"+msgid "Open the Onshape Government integration and save its settings to connect again."+msgstr ""+msgid "Open the Ramp integration and try connecting again to finish setup."msgstr "Откройте интеграцию Ramp и попробуйте подключиться снова, чтобы завершить настройку."@@ -17612,6 +17660,9 @@ msgstr "Количество дней после метода расчета, вmsgid "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."msgstr "Журнал доступного только для добавления, отражающий каждое движение запасов; остаток на складе является суммой подписанных записей и источником истины."+msgid "The authorization was refused in Onshape. Save the integration settings to try again."+msgstr ""+msgid "The authorization was refused in Onshape. Try connecting again."msgstr "Авторизация была отклонена в Onshape. Повторите попытку подключения."@@ -18064,6 +18115,9 @@ msgstr "Уровень наличного запаса, который запуmsgid "The Onshape connection expired"msgstr "Подключение Onshape истекло"+msgid "The Onshape Government connection expired"+msgstr ""+msgid "The operations and steps your parts move through"msgstr "Операции и шаги, через которые переходят ваши детали"@@ -18188,6 +18242,9 @@ msgstr "Тело запроса, отправляемое дословно с тmsgid "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."msgstr "Остаточное незавершенное производство, оставленное заданием при закрытии, перемещено на счет производственного отклонения — единственное отклонение, которое Carbon регистрирует для задания."+msgid "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgstr ""+msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "В ответе Onshape отсутствовали обязательные параметры. Повторите попытку подключения."diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex 011976ee7d..deaf2f67a4 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -570,6 +570,12 @@ msgstr "Değişiklik bildirimi, kontrollü bir mühendislik veya üretim değişmsgid "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."msgstr "Alınan ancak henüz faturalanmayan malların değerini tutan bir takas hesabı; tedarikçi faturası bunu temizler."+msgid "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."+msgstr ""++msgid "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgstr ""+msgid "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."msgstr "Başka bir şirketin spesifikasyonuna göre parça üretmek yerine, kendi bitmiş ürünlerini uçtan uca tasarlayan ve inşa eden bir şirket (burada insansı robotlar inşa eden mağaza)."@@ -1949,6 +1955,9 @@ msgstr "Bu işin bir operasyonu bu partide çalışıyor"msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "Bir operasyon'un iş merkezi'nin kuyruğundaki konumu — atölyenin işleri aldığı sıra. Motor, yerleştirme sırasından numaralandırır (en erken öngörülen başlangıç ilk); İş merkezleri panosundaki kartları yeniden sıralamak, tarihleri değiştirmeden bunu geçersiz kılar."+msgid "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgstr ""+msgid "An unexpected error occurred while connecting to Onshape. Try connecting again."msgstr "Onshape'e bağlanırken beklenmeyen bir hata oluştu. Yeniden bağlanmayı deneyin."@@ -4676,6 +4685,9 @@ msgstr "Kaydedilemedi"msgid "Couldn't complete the Onshape connection"msgstr "Onshape bağlantısı tamamlanamadı"+msgid "Couldn't complete the Onshape Government connection"+msgstr ""+msgid "Couldn't load documents"msgstr "Belgeler yüklenemedi"@@ -4691,6 +4703,9 @@ msgstr "İş yeniden planlanamadı. Lütfen tekrar deneyin."msgid "Couldn't save the Onshape connection"msgstr "Onshape bağlantısı kaydedilemedi"+msgid "Couldn't save the Onshape Government connection"+msgstr ""+msgid "Couldn't save the Ramp connection"msgstr "Ramp bağlantısı kaydedilemedi"@@ -7146,6 +7161,9 @@ msgstr "Doğrulayıcı uygulamanızdaki 6 haneli kodu girin"msgid "Enter the 6-digit code from your authenticator app to resume."msgstr "Devam etmek için kimlik doğrulayıcı uygulamanızdan 6 haneli kodu girin."+msgid "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgstr ""+msgid "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."msgstr "Bu hareketin olması gereken miktarı girin. Farktaki ters hareket, orijinalin zaman döneminde orijinalin yanında deftere kaydedilir."@@ -7362,6 +7380,9 @@ msgstr "Döviz kuru güncelleme tarihi"msgid "Exchange Rates"msgstr "Döviz kurları"+msgid "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgstr ""+msgid "Exchanging the authorization code for access failed. Try connecting again."msgstr "Yetkilendirme kodunun erişim için değiştirilmesi başarısız oldu. Yeniden bağlanmayı deneyin."@@ -9028,6 +9049,9 @@ msgstr "Bu adımda"msgid "In use"msgstr "Kullanımda"+msgid "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgstr ""+msgid "In-app"msgstr "Uygulama içi"@@ -12271,6 +12295,9 @@ msgstr "Aynı anda yalnızca bir harcama entegrasyonu etkin olabilir. Önce mevcmsgid "Only qualified employees can be scheduled for and run this process"msgstr "Yalnızca nitelikli çalışanlar bu işlem için planlanabilir ve çalıştırılabilir"+msgid "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgstr ""+msgid "Onshape authorized the connection but saving it failed. Try connecting again."msgstr "Onshape bağlantıyı yetkilendirdi ancak kaydetme başarısız oldu. Yeniden bağlanmayı deneyin."@@ -12280,6 +12307,24 @@ msgstr "Onshape bağlantıyı reddetti"msgid "Onshape didn't return an authorization code"msgstr "Onshape bir yetkilendirme kodu döndürmedi"+msgid "Onshape Government denied the connection"+msgstr ""++msgid "Onshape Government didn't return an authorization code"+msgstr ""++msgid "Onshape Government is already connected"+msgstr ""++msgid "Onshape Government isn't configured"+msgstr ""++msgid "Onshape Government rejected the authorization"+msgstr ""++msgid "Onshape is already connected"+msgstr ""+msgid "Onshape isn't configured"msgstr "Onshape yapılandırılmamış"@@ -12394,6 +12439,9 @@ msgstr "Planlanmış Açık"msgid "Open task details"msgstr "Görev ayrıntılarını aç"+msgid "Open the Onshape Government integration and save its settings to connect again."+msgstr ""+msgid "Open the Ramp integration and try connecting again to finish setup."msgstr "Ramp entegrasyonunu açın ve kurulumu tamamlamak için yeniden bağlanmayı deneyin."@@ -17612,6 +17660,9 @@ msgstr "Ödeme vadesinin hesaplama yönteminden sonraki gün sayısı"msgid "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."msgstr "Her stok hareketinin yalnızca ekleme kaydı; eldeki tutar, imzalı girdilerinin toplamı ve gerçeğin kaynağıdır."+msgid "The authorization was refused in Onshape. Save the integration settings to try again."+msgstr ""+msgid "The authorization was refused in Onshape. Try connecting again."msgstr "Yetkilendirme Onshape'te reddedildi. Yeniden bağlanmayı deneyin."@@ -18064,6 +18115,9 @@ msgstr "Miktar tabanlı politikler altında yeni bir yenileme siparişini tetiklmsgid "The Onshape connection expired"msgstr "Onshape bağlantısının süresi doldu"+msgid "The Onshape Government connection expired"+msgstr ""+msgid "The operations and steps your parts move through"msgstr "Parçalarınızın geçtiği operasyonlar ve adımlar"@@ -18188,6 +18242,9 @@ msgstr "İş akışı değişkenleri yerine konulduktan sonra JSON içerik türmsgid "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."msgstr "Bir iş emrinin kapatıldığında bıraktığı artık yarı mamul, Üretim Sapması hesabına aktarılan — Carbon'un bir iş emri için kaydedebileceği tek sapma."+msgid "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgstr ""+msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "Onshape'ten gelen yanıtta gerekli parametreler eksikti. Yeniden bağlanmayı deneyin."diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 0c639db67b..1908790577 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -570,6 +570,12 @@ msgstr "变更通知跟踪通过评审和实施的受控工程或制造变更。msgid "A clearing account holding the value of goods received but not yet billed; the supplier invoice clears it."msgstr "持有已收但未开票商品价值的结算账户;供应商发票将其结清。"+msgid "A company connects to one Onshape at a time. Uninstall Onshape Government, then connect Onshape."+msgstr ""++msgid "A company connects to one Onshape at a time. Uninstall Onshape, then connect Onshape Government."+msgstr ""+msgid "A company that designs and builds its own finished products end to end (here, the shop building humanoid robots) rather than making parts to another company's specification."msgstr "设计和制造自己成品的公司(这里,制造人形机器人的工坊),而不是按照另一家公司的规格制造零件。"@@ -1949,6 +1955,9 @@ msgstr "此工作的一道工序在此批次中运行"msgid "An operation's position in its work center's queue — the order the floor picks work up. The engine numbers it from placement order (earliest projected start first); reordering cards on the Work Centers board overrides it without changing dates."msgstr "工序在所在工作中心队列中的位置——车间人员拿工作的顺序。引擎按安排顺序编号(最早预计开始时间优先);在工作中心看板上重新排列卡片会覆盖它,不会改变日期。"+msgid "An unexpected error occurred while connecting to Onshape. Save the integration settings to try again."+msgstr ""+msgid "An unexpected error occurred while connecting to Onshape. Try connecting again."msgstr "连接 Onshape 时发生意外错误。请重新连接。"@@ -4676,6 +4685,9 @@ msgstr "无法保存"msgid "Couldn't complete the Onshape connection"msgstr "无法完成 Onshape 连接"+msgid "Couldn't complete the Onshape Government connection"+msgstr ""+msgid "Couldn't load documents"msgstr "无法加载文档"@@ -4691,6 +4703,9 @@ msgstr "无法重新安排作业。请重试。"msgid "Couldn't save the Onshape connection"msgstr "无法保存 Onshape 连接"+msgid "Couldn't save the Onshape Government connection"+msgstr ""+msgid "Couldn't save the Ramp connection"msgstr "无法保存 Ramp 连接"@@ -7146,6 +7161,9 @@ msgstr "输入来自您的身份验证器应用的6位数代码"msgid "Enter the 6-digit code from your authenticator app to resume."msgstr "输入您的身份验证器应用中的 6 位数字代码以继续。"+msgid "Enter the Onshape URL, OAuth URL, client ID and client secret of your private OAuth application, then save."+msgstr ""+msgid "Enter the quantity this movement should have been. An opposite movement for the difference is posted next to the original, in the original's time period."msgstr "输入此移动应该的数量。差异的相反移动在原始时期内的原始旁边过账。"@@ -7362,6 +7380,9 @@ msgstr "汇率更新于"msgid "Exchange Rates"msgstr "汇率"+msgid "Exchanging the authorization code failed. Check the OAuth URL and the client secret, then save the integration settings again."+msgstr ""+msgid "Exchanging the authorization code for access failed. Try connecting again."msgstr "用授权代码交换访问权限失败。请重新连接。"@@ -9028,6 +9049,9 @@ msgstr "在此步骤中"msgid "In use"msgstr "使用中"+msgid "In your Enterprise settings under Developer, edit the private OAuth application's permissions to include \"Application can write to your documents\", then save the integration settings again."+msgstr ""+msgid "In-app"msgstr "应用内"@@ -12271,6 +12295,9 @@ msgstr "一次只能激活一个支出集成。请先卸载当前的集成,然msgid "Only qualified employees can be scheduled for and run this process"msgstr "只有合格的员工才能被安排和运行此流程"+msgid "Onshape authorized the connection but saving it failed. Save the integration settings to try again."+msgstr ""+msgid "Onshape authorized the connection but saving it failed. Try connecting again."msgstr "Onshape 已授权此连接,但保存失败。请重新连接。"@@ -12280,6 +12307,24 @@ msgstr "Onshape 拒绝了连接"msgid "Onshape didn't return an authorization code"msgstr "Onshape 未返回授权代码"+msgid "Onshape Government denied the connection"+msgstr ""++msgid "Onshape Government didn't return an authorization code"+msgstr ""++msgid "Onshape Government is already connected"+msgstr ""++msgid "Onshape Government isn't configured"+msgstr ""++msgid "Onshape Government rejected the authorization"+msgstr ""++msgid "Onshape is already connected"+msgstr ""+msgid "Onshape isn't configured"msgstr "尚未配置 Onshape"@@ -12394,6 +12439,9 @@ msgstr "打开 Scheduled"msgid "Open task details"msgstr "打开任务详情"+msgid "Open the Onshape Government integration and save its settings to connect again."+msgstr ""+msgid "Open the Ramp integration and try connecting again to finish setup."msgstr "打开 Ramp 集成,然后重新连接以完成配置。"@@ -17612,6 +17660,9 @@ msgstr "计算方法后的天数,在该天数后付款到期"msgid "The append-only record of every stock movement; on-hand is the sum of its signed entries and the source of truth."msgstr "每个库存变动的追加专用记录;在手数量是其带符号条目的总和,也是单一信息源。"+msgid "The authorization was refused in Onshape. Save the integration settings to try again."+msgstr ""+msgid "The authorization was refused in Onshape. Try connecting again."msgstr "授权在 Onshape 中被拒绝。请重新连接。"@@ -18064,6 +18115,9 @@ msgstr "按数量触发新补充订单的库存水平根据基于数量的政策msgid "The Onshape connection expired"msgstr "Onshape连接已过期"+msgid "The Onshape Government connection expired"+msgstr ""+msgid "The operations and steps your parts move through"msgstr "您的零件所经历的工序和步骤"@@ -18188,6 +18242,9 @@ msgstr "在替换其中的工作流变量后,使用 JSON 内容类型逐字发msgid "The residual WIP a job has left at close, swept to a Production Variance account — the only variance Carbon books for a job."msgstr "工作在关闭时留下的残余在制品,扫至生产差异帐户 - Carbon为工作记录的唯一差异。"+msgid "The response from Onshape was missing required parameters. Check the private app's redirect URL, then save the integration settings again."+msgstr ""+msgid "The response from Onshape was missing required parameters. Try connecting again."msgstr "Onshape 的响应缺少必需的参数。请重新连接。"