@kilterset/auth0-actions-testing
Version:
Test and develop Auth0 Actions or Okta CIC Actions locally.
19 lines • 637 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.organization = void 0;
const chance_1 = require("./chance");
const define_1 = require("./define");
exports.organization = (0, define_1.define)(({ params }) => {
const display_name = params.display_name || chance_1.chance.company();
const name = display_name
.toLowerCase()
.replace(/\s+/g, "-")
.replace(/[^a-z0-9-]/g, "");
return {
display_name,
name,
id: `org_${chance_1.chance.string({ alpha: true, length: 16 })}`,
metadata: {},
};
});
//# sourceMappingURL=organization.js.map