Is all the nodejs api explorer documentation wrong, or am I going mad?

All the api explorer code snippets for the new nodejs have this import

import { SquareClient, SquareEnvironments } from "square";

but you get

Cannot read properties of undefined (reading 'Sandbox')

if you use it, because

"use strict";
/**
 * This file was auto-generated by Fern from our API Definition.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.SquareEnvironment = void 0;
exports.SquareEnvironment = {
    Production: "https://connect.squareup.com",
    Sandbox: "https://connect.squareupsandbox.com",
};

your module clearly doesn’t export Environments it exports Environment.
Surely someone should update the API explorer.

Thanks for bringing this to our attention. This has been fixed by the team. :slight_smile: