twenty-sdk 2.10.1 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { createSourceFile as y, ScriptTarget as p, SyntaxKind as r } from "typescript";
2
- import { o } from "./login-oauth-wSHikxei.mjs";
2
+ import { o } from "./login-oauth-C0VXFL7H.mjs";
3
3
  const c = (i) => {
4
4
  switch (i.kind) {
5
5
  case r.NumberKeyword:
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("typescript"),o=require("./login-oauth-CU95X9A-.js"),y=r=>{switch(r.kind){case e.SyntaxKind.NumberKeyword:return{type:"number"};case e.SyntaxKind.StringKeyword:return{type:"string"};case e.SyntaxKind.BooleanKeyword:return{type:"boolean"};case e.SyntaxKind.ArrayType:return{type:"array",items:y(r.elementType)};case e.SyntaxKind.TypeReference:{const t=r,n=t.typeName.kind===e.SyntaxKind.Identifier?t.typeName.text:void 0;if(n==="Array"||n==="ReadonlyArray"){const i=t.typeArguments?.[0];return{type:"array",items:o.o(i)?y(i):{}}}return{}}case e.SyntaxKind.ObjectKeyword:return{type:"object"};case e.SyntaxKind.TypeLiteral:{const t={};return r.members.forEach(n=>{if(o.o(n.name)&&o.o(n.type)){const i=n.name.text;t[i]=y(n.type)}}),{type:"object",properties:t}}case e.SyntaxKind.UnionType:{const t=r,n=[];let i=!0;return t.types.forEach(a=>{if(a.kind===e.SyntaxKind.LiteralType){const c=a.literal;c.kind===e.SyntaxKind.StringLiteral?n.push(c.text):i=!1}else i=!1}),i?{type:"string",enum:n}:{}}default:return{}}},d=(r,t)=>r.parameters.reduce((n,i)=>{const a=i.type;return o.o(a)?[...n,y(a)]:[...n,{}]},t),s=r=>r.kind===e.SyntaxKind.FunctionDeclaration?[r]:r.kind===e.SyntaxKind.VariableStatement?r.declarationList.declarations.filter(t=>o.o(t.initializer)&&t.initializer.kind===e.SyntaxKind.ArrowFunction).map(t=>t.initializer):[],u=r=>{const t=e.createSourceFile("temp.ts",r,e.ScriptTarget.ESNext,!0);let n=[];return t.forEachChild(i=>{(i.kind===e.SyntaxKind.FunctionDeclaration||i.kind===e.SyntaxKind.VariableStatement)&&s(i).forEach(a=>{n=d(a,n)})}),n};exports.getFunctionInputSchema=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("typescript"),o=require("./login-oauth-DzHcV9F2.js"),y=r=>{switch(r.kind){case e.SyntaxKind.NumberKeyword:return{type:"number"};case e.SyntaxKind.StringKeyword:return{type:"string"};case e.SyntaxKind.BooleanKeyword:return{type:"boolean"};case e.SyntaxKind.ArrayType:return{type:"array",items:y(r.elementType)};case e.SyntaxKind.TypeReference:{const t=r,n=t.typeName.kind===e.SyntaxKind.Identifier?t.typeName.text:void 0;if(n==="Array"||n==="ReadonlyArray"){const i=t.typeArguments?.[0];return{type:"array",items:o.o(i)?y(i):{}}}return{}}case e.SyntaxKind.ObjectKeyword:return{type:"object"};case e.SyntaxKind.TypeLiteral:{const t={};return r.members.forEach(n=>{if(o.o(n.name)&&o.o(n.type)){const i=n.name.text;t[i]=y(n.type)}}),{type:"object",properties:t}}case e.SyntaxKind.UnionType:{const t=r,n=[];let i=!0;return t.types.forEach(a=>{if(a.kind===e.SyntaxKind.LiteralType){const c=a.literal;c.kind===e.SyntaxKind.StringLiteral?n.push(c.text):i=!1}else i=!1}),i?{type:"string",enum:n}:{}}default:return{}}},d=(r,t)=>r.parameters.reduce((n,i)=>{const a=i.type;return o.o(a)?[...n,y(a)]:[...n,{}]},t),s=r=>r.kind===e.SyntaxKind.FunctionDeclaration?[r]:r.kind===e.SyntaxKind.VariableStatement?r.declarationList.declarations.filter(t=>o.o(t.initializer)&&t.initializer.kind===e.SyntaxKind.ArrowFunction).map(t=>t.initializer):[],u=r=>{const t=e.createSourceFile("temp.ts",r,e.ScriptTarget.ESNext,!0);let n=[];return t.forEachChild(i=>{(i.kind===e.SyntaxKind.FunctionDeclaration||i.kind===e.SyntaxKind.VariableStatement)&&s(i).forEach(a=>{n=d(a,n)})}),n};exports.getFunctionInputSchema=u;