twenty-client-sdk 2.25.0 → 2.26.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.
- package/LICENSE +21 -0
- package/dist/{application-BypHiXV3.js → application-CoyGBdkd.js} +1 -1
- package/dist/{application-DS1TbVoz.mjs → application-Diu8pW7j.mjs} +2 -2
- package/dist/generate.cjs +3 -3
- package/dist/generate.mjs +1 -1
- package/dist/metadata/generated/schema.d.ts +66 -0
- package/dist/metadata/generated/types.d.ts +29 -0
- package/dist/metadata.cjs +2 -2
- package/dist/metadata.mjs +470 -431
- package/dist/rest.cjs +1 -1
- package/dist/rest.mjs +3 -3
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023-present Twenty.com, PBC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=function(e){return e.ACTOR=`ACTOR`,e.ADDRESS=`ADDRESS`,e.ARRAY=`ARRAY`,e.BOOLEAN=`BOOLEAN`,e.CURRENCY=`CURRENCY`,e.DATE=`DATE`,e.DATE_TIME=`DATE_TIME`,e.EMAILS=`EMAILS`,e.FILES=`FILES`,e.FULL_NAME=`FULL_NAME`,e.LINKS=`LINKS`,e.MORPH_RELATION=`MORPH_RELATION`,e.MULTI_SELECT=`MULTI_SELECT`,e.NUMBER=`NUMBER`,e.NUMERIC=`NUMERIC`,e.PHONES=`PHONES`,e.POSITION=`POSITION`,e.RATING=`RATING`,e.RAW_JSON=`RAW_JSON`,e.RELATION=`RELATION`,e.RICH_TEXT=`RICH_TEXT`,e.SELECT=`SELECT`,e.TEXT=`TEXT`,e.TS_VECTOR=`TS_VECTOR`,e.UUID=`UUID`,e}({}),t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function n(e){return typeof e==`string`&&t.test(e)}function r(e){if(!n(e))throw TypeError(`Invalid UUID`);let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,t&255,(t=parseInt(e.slice(9,13),16))>>>8,t&255,(t=parseInt(e.slice(14,18),16))>>>8,t&255,(t=parseInt(e.slice(19,23),16))>>>8,t&255,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255)}var i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+`-`+i[e[t+4]]+i[e[t+5]]+`-`+i[e[t+6]]+i[e[t+7]]+`-`+i[e[t+8]]+i[e[t+9]]+`-`+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}function o(e){e=unescape(encodeURIComponent(e));let t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}var s=`6ba7b810-9dad-11d1-80b4-00c04fd430c8`,c=`6ba7b811-9dad-11d1-80b4-00c04fd430c8`;function l(e,t,n,i,s,c){let l=typeof n==`string`?o(n):n,u=typeof i==`string`?r(i):i;if(typeof i==`string`&&(i=r(i)),i?.length!==16)throw TypeError(`Namespace must be array-like (16 iterable integer values, 0-255)`);let d=new Uint8Array(16+l.length);if(d.set(u),d.set(l,u.length),d=t(d),d[6]=d[6]&15|e,d[8]=d[8]&63|128,s){if(c||=0,c<0||c+16>s.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let e=0;e<16;++e)s[c+e]=d[e];return s}return a(d)}function u(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function d(e,t){return e<<t|e>>>32-t}function f(e){let t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128,e=r;let i=e.length/4+2,a=Math.ceil(i/16),o=Array(a);for(let t=0;t<a;++t){let n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[t*64+r*4]<<24|e[t*64+r*4+1]<<16|e[t*64+r*4+2]<<8|e[t*64+r*4+3];o[t]=n}o[a-1][14]=(e.length-1)*8/2**32,o[a-1][14]=Math.floor(o[a-1][14]),o[a-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<a;++e){let r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=o[e][t];for(let e=16;e<80;++e)r[e]=d(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let i=n[0],a=n[1],s=n[2],c=n[3],l=n[4];for(let e=0;e<80;++e){let n=Math.floor(e/20),o=d(i,5)+u(n,a,s,c)+l+t[n]+r[e]>>>0;l=c,c=s,s=d(a,30)>>>0,a=i,i=o}n[0]=n[0]+i>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+l>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])}function p(e,t,n,r){return l(80,f,e,t,n,r)}p.DNS=s,p.URL=c,e.TEXT,e.ARRAY,e.BOOLEAN,e.DATE,e.DATE_TIME,e.NUMBER,e.NUMERIC,e.RAW_JSON,e.RICH_TEXT,e.SELECT,e.MULTI_SELECT;var m=`TWENTY_API_KEY`,h=`TWENTY_API_URL`,g=`TWENTY_APP_ACCESS_TOKEN`,_=`TWENTY_FUNCTIONS_URL`;Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return
|
|
1
|
+
var e=function(e){return e.ACTOR=`ACTOR`,e.ADDRESS=`ADDRESS`,e.ARRAY=`ARRAY`,e.BOOLEAN=`BOOLEAN`,e.CURRENCY=`CURRENCY`,e.DATE=`DATE`,e.DATE_TIME=`DATE_TIME`,e.EMAILS=`EMAILS`,e.FILES=`FILES`,e.FULL_NAME=`FULL_NAME`,e.LINKS=`LINKS`,e.MORPH_RELATION=`MORPH_RELATION`,e.MULTI_SELECT=`MULTI_SELECT`,e.NUMBER=`NUMBER`,e.NUMERIC=`NUMERIC`,e.PHONES=`PHONES`,e.POSITION=`POSITION`,e.RATING=`RATING`,e.RAW_JSON=`RAW_JSON`,e.RELATION=`RELATION`,e.RICH_TEXT=`RICH_TEXT`,e.SELECT=`SELECT`,e.TEXT=`TEXT`,e.TS_VECTOR=`TS_VECTOR`,e.UUID=`UUID`,e}({}),t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function n(e){return typeof e==`string`&&t.test(e)}function r(e){if(!n(e))throw TypeError(`Invalid UUID`);let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,t&255,(t=parseInt(e.slice(9,13),16))>>>8,t&255,(t=parseInt(e.slice(14,18),16))>>>8,t&255,(t=parseInt(e.slice(19,23),16))>>>8,t&255,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255)}var i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+`-`+i[e[t+4]]+i[e[t+5]]+`-`+i[e[t+6]]+i[e[t+7]]+`-`+i[e[t+8]]+i[e[t+9]]+`-`+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}function o(e){e=unescape(encodeURIComponent(e));let t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}var s=`6ba7b810-9dad-11d1-80b4-00c04fd430c8`,c=`6ba7b811-9dad-11d1-80b4-00c04fd430c8`;function l(e,t,n,i,s,c){let l=typeof n==`string`?o(n):n,u=typeof i==`string`?r(i):i;if(typeof i==`string`&&(i=r(i)),i?.length!==16)throw TypeError(`Namespace must be array-like (16 iterable integer values, 0-255)`);let d=new Uint8Array(16+l.length);if(d.set(u),d.set(l,u.length),d=t(d),d[6]=d[6]&15|e,d[8]=d[8]&63|128,s){if(c||=0,c<0||c+16>s.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let e=0;e<16;++e)s[c+e]=d[e];return s}return a(d)}function u(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function d(e,t){return e<<t|e>>>32-t}function f(e){let t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128,e=r;let i=e.length/4+2,a=Math.ceil(i/16),o=Array(a);for(let t=0;t<a;++t){let n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[t*64+r*4]<<24|e[t*64+r*4+1]<<16|e[t*64+r*4+2]<<8|e[t*64+r*4+3];o[t]=n}o[a-1][14]=(e.length-1)*8/2**32,o[a-1][14]=Math.floor(o[a-1][14]),o[a-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<a;++e){let r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=o[e][t];for(let e=16;e<80;++e)r[e]=d(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let i=n[0],a=n[1],s=n[2],c=n[3],l=n[4];for(let e=0;e<80;++e){let n=Math.floor(e/20),o=d(i,5)+u(n,a,s,c)+l+t[n]+r[e]>>>0;l=c,c=s,s=d(a,30)>>>0,a=i,i=o}n[0]=n[0]+i>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+l>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])}function p(e,t,n,r){return l(80,f,e,t,n,r)}p.DNS=s,p.URL=c,e.TEXT,e.ARRAY,e.BOOLEAN,e.DATE,e.DATE_TIME,e.NUMBER,e.NUMERIC,e.RAW_JSON,e.RICH_TEXT,e.SELECT,e.MULTI_SELECT;var m=`TWENTY_API_KEY`,h=`TWENTY_API_URL`,g=`TWENTY_APP_ACCESS_TOKEN`,_=`TWENTY_FUNCTIONS_URL`;Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return m}});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../twenty-shared/dist/
|
|
1
|
+
//#region ../twenty-shared/dist/FieldMetadataType-PppCGM82.mjs
|
|
2
2
|
var e = /* @__PURE__ */ function(e) {
|
|
3
3
|
return e.ACTOR = "ACTOR", e.ADDRESS = "ADDRESS", e.ARRAY = "ARRAY", e.BOOLEAN = "BOOLEAN", e.CURRENCY = "CURRENCY", e.DATE = "DATE", e.DATE_TIME = "DATE_TIME", e.EMAILS = "EMAILS", e.FILES = "FILES", e.FULL_NAME = "FULL_NAME", e.LINKS = "LINKS", e.MORPH_RELATION = "MORPH_RELATION", e.MULTI_SELECT = "MULTI_SELECT", e.NUMBER = "NUMBER", e.NUMERIC = "NUMERIC", e.PHONES = "PHONES", e.POSITION = "POSITION", e.RATING = "RATING", e.RAW_JSON = "RAW_JSON", e.RELATION = "RELATION", e.RICH_TEXT = "RICH_TEXT", e.SELECT = "SELECT", e.TEXT = "TEXT", e.TS_VECTOR = "TS_VECTOR", e.UUID = "UUID", e;
|
|
4
4
|
}({}), t = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
|
|
@@ -98,4 +98,4 @@ p.DNS = s, p.URL = c, e.TEXT, e.ARRAY, e.BOOLEAN, e.DATE, e.DATE_TIME, e.NUMBER,
|
|
|
98
98
|
//#region ../twenty-shared/dist/application.mjs
|
|
99
99
|
var m = "TWENTY_API_KEY", h = "TWENTY_API_URL", g = "TWENTY_APP_ACCESS_TOKEN", _ = "TWENTY_FUNCTIONS_URL";
|
|
100
100
|
//#endregion
|
|
101
|
-
export {
|
|
101
|
+
export { g as i, h as n, _ as r, m as t };
|
package/dist/generate.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./chunk-DWNI8pZO.js"),t=require("./application-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./chunk-DWNI8pZO.js"),t=require("./application-CoyGBdkd.js");let n=require("node:fs/promises"),r=require("node:path"),i=require("esbuild"),a=require("graphql"),o=require("lodash/camelCase.js");o=e.n(o);let s=require("node:fs"),c=require("node:os"),l=require("prettier/standalone");l=e.n(l);let u=require("prettier/plugins/graphql");u=e.n(u);let d=require("prettier/plugins/typescript");d=e.n(d);let f=require("prettier/plugins/estree");f=e.n(f);let p=require("lodash/uniq.js");p=e.n(p);let ee=require("node:url");var te=`// __STRIPPED_DURING_INJECTION_START__`,ne=`// __STRIPPED_DURING_INJECTION_END__`,m=`// __UPLOAD_FILE_START__`,h=`// __UPLOAD_FILE_END__`,g=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),_=(e,t)=>{let n=e;return n=n.replace(RegExp(`${g(te)}[\\s\\S]*?${g(ne)}\\n?`),``),n=n.replace(`'__TWENTY_DEFAULT_URL__'`,t.defaultUrl),n=n.replace(/TwentyGeneratedClient/g,t.apiClientName),t.includeUploadFile?(n=n.replace(RegExp(`\\s*${g(m)}\\n`),`
|
|
2
2
|
`),n=n.replace(RegExp(`\\s*${g(h)}\\n`),`
|
|
3
3
|
`)):n=n.replace(RegExp(`\\s*${g(m)}[\\s\\S]*?${g(h)}\\n?`),`
|
|
4
4
|
`),`\n// ${t.apiClientName} (auto-injected by twenty-client-sdk)\n${n}`},v=e=>(0,n.mkdir)(e,{recursive:!0}),y=async e=>{let t;try{t=await(0,n.readdir)(e)}catch(t){if(t instanceof Error&&`code`in t&&t.code===`ENOENT`){await(0,n.mkdir)(e,{recursive:!0});return}throw t}await Promise.all(t.map(t=>(0,n.rm)((0,r.join)(e,t),{recursive:!0,force:!0})))},b=async(e,t)=>{try{await(0,n.rename)(e,t)}catch(r){if(r instanceof Error&&`code`in r&&r.code===`EXDEV`)await(0,n.cp)(e,t,{recursive:!0}),await(0,n.rm)(e,{recursive:!0,force:!0});else throw r}},x=e=>(0,n.rm)(e,{recursive:!0,force:!0}),re=e=>{let{root:t}=(0,r.parse)(e),n=e.slice(t.length).split(/[\\/]/).filter(Boolean).length,i=(0,r.resolve)((0,c.homedir)()),a=e===i||i.startsWith(`${e}/`);if(e===t||n<2||a)throw Error(`Refusing to recursively clear unsafe path: ${e}`)},S=async(e,t=!1)=>{let n=(0,r.resolve)(...e);t&&(re(n),await s.promises.rm(n,{recursive:!0,force:!0})),await s.promises.mkdir(n,{recursive:!0})},C=async(e,t)=>{let n=(0,r.resolve)(...e,`..`);await s.promises.mkdir(n,{recursive:!0}),await s.promises.writeFile((0,r.resolve)(...e),t)},w=`./runtime`,T=e=>e?`${e.name}GenqlSelection`:``,ie=e=>{let t=e.config?.endpoint?`"${e.config.endpoint}"`:`undefined`,n=e.config?.fetchImport;return`
|
|
@@ -1525,7 +1525,7 @@ export class TwentyGeneratedClient {
|
|
|
1525
1525
|
processEnvironment[APP_ACCESS_TOKEN_ENV_KEY] = token;
|
|
1526
1526
|
}
|
|
1527
1527
|
}
|
|
1528
|
-
`,s=`${i}.tmp`;await v(s),await y(s);try{await Z({schema:e,output:s,scalarTypes:Le});let a=_(o,{apiClientName:`CoreApiClient`,defaultUrl:`\`\${process.env.${t.
|
|
1528
|
+
`,s=`${i}.tmp`;await v(s),await y(s);try{await Z({schema:e,output:s,scalarTypes:Le});let a=_(o,{apiClientName:`CoreApiClient`,defaultUrl:`\`\${process.env.${t.n}}/graphql\``,includeUploadFile:!0});await(0,n.appendFile)((0,r.join)(s,`index.ts`),a),await x(i),await b(s,i),await ze(i)}catch(e){throw await x(s),e}},Re=async({packageRoot:e,schema:t})=>{let i=(0,r.join)(e,`dist`,Q);await $({schema:t,outputPath:i}),await(0,n.copyFile)((0,r.join)(i,`index.mjs`),(0,r.join)(e,`dist`,`core.mjs`)),await(0,n.copyFile)((0,r.join)(i,`index.cjs`),(0,r.join)(e,`dist`,`core.cjs`))},ze=async e=>{let t=(0,r.join)(e,`index.ts`),a=(0,r.join)(e,`index.mjs`);await(0,i.build)({entryPoints:[t],outfile:a,bundle:!0,format:`esm`,platform:`node`,target:`node18`,sourcemap:!1,minify:!1}),await(0,i.build)({entryPoints:[t],outfile:(0,r.join)(e,`index.cjs`),bundle:!0,format:`cjs`,platform:`node`,target:`node18`,sourcemap:!1,minify:!1}),await(0,n.writeFile)((0,r.join)(e,`package.json`),JSON.stringify({type:`module`,main:`index.mjs`,module:`index.mjs`},null,2))},Be={DateTime:`string`,JSON:`Record<string, unknown>`,UUID:`string`},Ve=async({schema:e,outputPath:i,clientWrapperTemplateSource:a})=>{let o=a??`// Ambient type stubs for the genql-generated code this template gets
|
|
1529
1529
|
// injected into. They enable full typecheck/lint on this file.
|
|
1530
1530
|
// __STRIPPED_DURING_INJECTION_START__
|
|
1531
1531
|
type QueryGenqlSelection = Record<string, unknown>;
|
|
@@ -1959,4 +1959,4 @@ export class TwentyGeneratedClient {
|
|
|
1959
1959
|
processEnvironment[APP_ACCESS_TOKEN_ENV_KEY] = token;
|
|
1960
1960
|
}
|
|
1961
1961
|
}
|
|
1962
|
-
`;await v(i),await y(i),await Z({schema:e,output:i,scalarTypes:{...Be,Upload:`File`}});let s=_(o,{apiClientName:`MetadataApiClient`,defaultUrl:`\`\${process.env.${t.
|
|
1962
|
+
`;await v(i),await y(i),await Z({schema:e,output:i,scalarTypes:{...Be,Upload:`File`}});let s=_(o,{apiClientName:`MetadataApiClient`,defaultUrl:`\`\${process.env.${t.n}}/metadata\``,includeUploadFile:!0});await(0,n.appendFile)((0,r.join)(i,`index.ts`),s)};exports.GENERATED_CORE_DIR=Q,exports.generateCoreClientFromSchema=$,exports.generateMetadataClient=Ve,exports.replaceCoreClient=Re;
|
package/dist/generate.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as e } from "./application-Diu8pW7j.mjs";
|
|
2
2
|
import { appendFile as t, copyFile as n, cp as r, mkdir as i, readdir as a, rename as o, rm as s, writeFile as c } from "node:fs/promises";
|
|
3
3
|
import { dirname as l, join as u, parse as ee, relative as d, resolve as f } from "node:path";
|
|
4
4
|
import { build as p } from "esbuild";
|
|
@@ -741,6 +741,7 @@ export interface PieChartConfiguration {
|
|
|
741
741
|
showCenterMetric?: Scalars['Boolean'];
|
|
742
742
|
displayLegend?: Scalars['Boolean'];
|
|
743
743
|
hideEmptyCategory?: Scalars['Boolean'];
|
|
744
|
+
numberFormat?: ChartNumberFormat;
|
|
744
745
|
splitMultiValueFields?: Scalars['Boolean'];
|
|
745
746
|
description?: Scalars['String'];
|
|
746
747
|
color?: Scalars['String'];
|
|
@@ -772,6 +773,7 @@ export interface LineChartConfiguration {
|
|
|
772
773
|
axisNameDisplay?: AxisNameDisplay;
|
|
773
774
|
displayDataLabel?: Scalars['Boolean'];
|
|
774
775
|
displayLegend?: Scalars['Boolean'];
|
|
776
|
+
numberFormat?: ChartNumberFormat;
|
|
775
777
|
rangeMin?: Scalars['Float'];
|
|
776
778
|
rangeMax?: Scalars['Float'];
|
|
777
779
|
description?: Scalars['String'];
|
|
@@ -809,6 +811,7 @@ export interface BarChartConfiguration {
|
|
|
809
811
|
axisNameDisplay?: AxisNameDisplay;
|
|
810
812
|
displayDataLabel?: Scalars['Boolean'];
|
|
811
813
|
displayLegend?: Scalars['Boolean'];
|
|
814
|
+
numberFormat?: ChartNumberFormat;
|
|
812
815
|
rangeMin?: Scalars['Float'];
|
|
813
816
|
rangeMax?: Scalars['Float'];
|
|
814
817
|
description?: Scalars['String'];
|
|
@@ -1105,6 +1108,10 @@ export interface BillingEndTrialPeriod {
|
|
|
1105
1108
|
hasPaymentMethod: Scalars['Boolean'];
|
|
1106
1109
|
/** Billing portal URL for payment method update (returned when no payment method exists) */
|
|
1107
1110
|
billingPortalUrl?: Scalars['String'];
|
|
1111
|
+
/** Updated current billing subscription */
|
|
1112
|
+
currentBillingSubscription?: BillingSubscription;
|
|
1113
|
+
/** All billing subscriptions */
|
|
1114
|
+
billingSubscriptions?: BillingSubscription[];
|
|
1108
1115
|
__typename: 'BillingEndTrialPeriod';
|
|
1109
1116
|
}
|
|
1110
1117
|
export interface BillingResourceCreditUsage {
|
|
@@ -2312,6 +2319,12 @@ export interface AgentChatEvent {
|
|
|
2312
2319
|
event: Scalars['JSON'];
|
|
2313
2320
|
__typename: 'AgentChatEvent';
|
|
2314
2321
|
}
|
|
2322
|
+
export interface StartWorkspaceSetupChatResult {
|
|
2323
|
+
outcome: WorkspaceSetupChatOutcome;
|
|
2324
|
+
thread?: AgentChatThread;
|
|
2325
|
+
__typename: 'StartWorkspaceSetupChatResult';
|
|
2326
|
+
}
|
|
2327
|
+
export type WorkspaceSetupChatOutcome = 'STARTED' | 'ALREADY_STARTED' | 'UNAVAILABLE';
|
|
2315
2328
|
export interface AgentTurnEvaluation {
|
|
2316
2329
|
id: Scalars['UUID'];
|
|
2317
2330
|
turnId: Scalars['UUID'];
|
|
@@ -2335,6 +2348,11 @@ export interface WorkspaceAiStats {
|
|
|
2335
2348
|
toolsCount: Scalars['Int'];
|
|
2336
2349
|
__typename: 'WorkspaceAiStats';
|
|
2337
2350
|
}
|
|
2351
|
+
export interface EnqueueJobResult {
|
|
2352
|
+
enqueued: Scalars['Boolean'];
|
|
2353
|
+
logicFunctionUniversalIdentifier: Scalars['String'];
|
|
2354
|
+
__typename: 'EnqueueJobResult';
|
|
2355
|
+
}
|
|
2338
2356
|
export interface AppKeyValue {
|
|
2339
2357
|
key: Scalars['String'];
|
|
2340
2358
|
value?: Scalars['JSON'];
|
|
@@ -2697,6 +2715,7 @@ export interface Mutation {
|
|
|
2697
2715
|
updateCalendarChannel: CalendarChannel;
|
|
2698
2716
|
setAppKeyValue: AppKeyValue;
|
|
2699
2717
|
deleteAppKeyValue: Scalars['Boolean'];
|
|
2718
|
+
enqueueJob: EnqueueJobResult;
|
|
2700
2719
|
createChatThread: AgentChatThread;
|
|
2701
2720
|
sendChatMessage: SendChatMessageResult;
|
|
2702
2721
|
retryChatMessage: SendChatMessageResult;
|
|
@@ -2707,6 +2726,7 @@ export interface Mutation {
|
|
|
2707
2726
|
unarchiveChatThread: AgentChatThread;
|
|
2708
2727
|
deleteChatThread: Scalars['Boolean'];
|
|
2709
2728
|
deleteQueuedChatMessage: Scalars['Boolean'];
|
|
2729
|
+
startWorkspaceSetupChat: StartWorkspaceSetupChatResult;
|
|
2710
2730
|
createSkill: Skill;
|
|
2711
2731
|
updateSkill: Skill;
|
|
2712
2732
|
deleteSkill: Skill;
|
|
@@ -3612,6 +3632,7 @@ export interface PieChartConfigurationGenqlSelection {
|
|
|
3612
3632
|
showCenterMetric?: boolean | number;
|
|
3613
3633
|
displayLegend?: boolean | number;
|
|
3614
3634
|
hideEmptyCategory?: boolean | number;
|
|
3635
|
+
numberFormat?: boolean | number;
|
|
3615
3636
|
splitMultiValueFields?: boolean | number;
|
|
3616
3637
|
description?: boolean | number;
|
|
3617
3638
|
color?: boolean | number;
|
|
@@ -3640,6 +3661,7 @@ export interface LineChartConfigurationGenqlSelection {
|
|
|
3640
3661
|
axisNameDisplay?: boolean | number;
|
|
3641
3662
|
displayDataLabel?: boolean | number;
|
|
3642
3663
|
displayLegend?: boolean | number;
|
|
3664
|
+
numberFormat?: boolean | number;
|
|
3643
3665
|
rangeMin?: boolean | number;
|
|
3644
3666
|
rangeMax?: boolean | number;
|
|
3645
3667
|
description?: boolean | number;
|
|
@@ -3677,6 +3699,7 @@ export interface BarChartConfigurationGenqlSelection {
|
|
|
3677
3699
|
axisNameDisplay?: boolean | number;
|
|
3678
3700
|
displayDataLabel?: boolean | number;
|
|
3679
3701
|
displayLegend?: boolean | number;
|
|
3702
|
+
numberFormat?: boolean | number;
|
|
3680
3703
|
rangeMin?: boolean | number;
|
|
3681
3704
|
rangeMax?: boolean | number;
|
|
3682
3705
|
description?: boolean | number;
|
|
@@ -3998,6 +4021,10 @@ export interface BillingEndTrialPeriodGenqlSelection {
|
|
|
3998
4021
|
hasPaymentMethod?: boolean | number;
|
|
3999
4022
|
/** Billing portal URL for payment method update (returned when no payment method exists) */
|
|
4000
4023
|
billingPortalUrl?: boolean | number;
|
|
4024
|
+
/** Updated current billing subscription */
|
|
4025
|
+
currentBillingSubscription?: BillingSubscriptionGenqlSelection;
|
|
4026
|
+
/** All billing subscriptions */
|
|
4027
|
+
billingSubscriptions?: BillingSubscriptionGenqlSelection;
|
|
4001
4028
|
__typename?: boolean | number;
|
|
4002
4029
|
__scalar?: boolean | number;
|
|
4003
4030
|
}
|
|
@@ -5334,6 +5361,12 @@ export interface AgentChatEventGenqlSelection {
|
|
|
5334
5361
|
__typename?: boolean | number;
|
|
5335
5362
|
__scalar?: boolean | number;
|
|
5336
5363
|
}
|
|
5364
|
+
export interface StartWorkspaceSetupChatResultGenqlSelection {
|
|
5365
|
+
outcome?: boolean | number;
|
|
5366
|
+
thread?: AgentChatThreadGenqlSelection;
|
|
5367
|
+
__typename?: boolean | number;
|
|
5368
|
+
__scalar?: boolean | number;
|
|
5369
|
+
}
|
|
5337
5370
|
export interface AgentTurnEvaluationGenqlSelection {
|
|
5338
5371
|
id?: boolean | number;
|
|
5339
5372
|
turnId?: boolean | number;
|
|
@@ -5360,6 +5393,12 @@ export interface WorkspaceAiStatsGenqlSelection {
|
|
|
5360
5393
|
__typename?: boolean | number;
|
|
5361
5394
|
__scalar?: boolean | number;
|
|
5362
5395
|
}
|
|
5396
|
+
export interface EnqueueJobResultGenqlSelection {
|
|
5397
|
+
enqueued?: boolean | number;
|
|
5398
|
+
logicFunctionUniversalIdentifier?: boolean | number;
|
|
5399
|
+
__typename?: boolean | number;
|
|
5400
|
+
__scalar?: boolean | number;
|
|
5401
|
+
}
|
|
5363
5402
|
export interface AppKeyValueGenqlSelection {
|
|
5364
5403
|
key?: boolean | number;
|
|
5365
5404
|
value?: boolean | number;
|
|
@@ -6781,6 +6820,11 @@ export interface MutationGenqlSelection {
|
|
|
6781
6820
|
scope?: (AppKeyValueScope | null);
|
|
6782
6821
|
};
|
|
6783
6822
|
};
|
|
6823
|
+
enqueueJob?: (EnqueueJobResultGenqlSelection & {
|
|
6824
|
+
__args: {
|
|
6825
|
+
input: EnqueueJobInput;
|
|
6826
|
+
};
|
|
6827
|
+
});
|
|
6784
6828
|
createChatThread?: AgentChatThreadGenqlSelection;
|
|
6785
6829
|
sendChatMessage?: (SendChatMessageResultGenqlSelection & {
|
|
6786
6830
|
__args: {
|
|
@@ -6837,6 +6881,11 @@ export interface MutationGenqlSelection {
|
|
|
6837
6881
|
messageId: Scalars['UUID'];
|
|
6838
6882
|
};
|
|
6839
6883
|
};
|
|
6884
|
+
startWorkspaceSetupChat?: (StartWorkspaceSetupChatResultGenqlSelection & {
|
|
6885
|
+
__args?: {
|
|
6886
|
+
companyContext?: (Scalars['JSON'] | null);
|
|
6887
|
+
};
|
|
6888
|
+
});
|
|
6840
6889
|
createSkill?: (SkillGenqlSelection & {
|
|
6841
6890
|
__args: {
|
|
6842
6891
|
input: CreateSkillInput;
|
|
@@ -8060,6 +8109,12 @@ export interface SetAppKeyValueInput {
|
|
|
8060
8109
|
value?: (Scalars['JSON'] | null);
|
|
8061
8110
|
scope?: (AppKeyValueScope | null);
|
|
8062
8111
|
}
|
|
8112
|
+
export interface EnqueueJobInput {
|
|
8113
|
+
logicFunctionUniversalIdentifier: Scalars['String'];
|
|
8114
|
+
payload?: (Scalars['JSON'] | null);
|
|
8115
|
+
retryLimit?: (Scalars['Int'] | null);
|
|
8116
|
+
delayMs?: (Scalars['Int'] | null);
|
|
8117
|
+
}
|
|
8063
8118
|
export interface FileAttachmentInput {
|
|
8064
8119
|
id: Scalars['UUID'];
|
|
8065
8120
|
filename: Scalars['String'];
|
|
@@ -8948,6 +9003,9 @@ export declare const isSendChatMessageResult: (obj?: {
|
|
|
8948
9003
|
export declare const isAgentChatEvent: (obj?: {
|
|
8949
9004
|
__typename?: any;
|
|
8950
9005
|
} | null | undefined) => obj is AgentChatEvent;
|
|
9006
|
+
export declare const isStartWorkspaceSetupChatResult: (obj?: {
|
|
9007
|
+
__typename?: any;
|
|
9008
|
+
} | null | undefined) => obj is StartWorkspaceSetupChatResult;
|
|
8951
9009
|
export declare const isAgentTurnEvaluation: (obj?: {
|
|
8952
9010
|
__typename?: any;
|
|
8953
9011
|
} | null | undefined) => obj is AgentTurnEvaluation;
|
|
@@ -8957,6 +9015,9 @@ export declare const isAgentTurn: (obj?: {
|
|
|
8957
9015
|
export declare const isWorkspaceAiStats: (obj?: {
|
|
8958
9016
|
__typename?: any;
|
|
8959
9017
|
} | null | undefined) => obj is WorkspaceAiStats;
|
|
9018
|
+
export declare const isEnqueueJobResult: (obj?: {
|
|
9019
|
+
__typename?: any;
|
|
9020
|
+
} | null | undefined) => obj is EnqueueJobResult;
|
|
8960
9021
|
export declare const isAppKeyValue: (obj?: {
|
|
8961
9022
|
__typename?: any;
|
|
8962
9023
|
} | null | undefined) => obj is AppKeyValue;
|
|
@@ -9535,6 +9596,11 @@ export declare const enumUnsubscribeTopicVisibility: {
|
|
|
9535
9596
|
PUBLIC: "PUBLIC";
|
|
9536
9597
|
PRIVATE: "PRIVATE";
|
|
9537
9598
|
};
|
|
9599
|
+
export declare const enumWorkspaceSetupChatOutcome: {
|
|
9600
|
+
STARTED: "STARTED";
|
|
9601
|
+
ALREADY_STARTED: "ALREADY_STARTED";
|
|
9602
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
9603
|
+
};
|
|
9538
9604
|
export declare const enumAppKeyValueScope: {
|
|
9539
9605
|
WORKSPACE: "WORKSPACE";
|
|
9540
9606
|
SERVER: "SERVER";
|
|
@@ -814,6 +814,7 @@ declare const _default: {
|
|
|
814
814
|
showCenterMetric: number[];
|
|
815
815
|
displayLegend: number[];
|
|
816
816
|
hideEmptyCategory: number[];
|
|
817
|
+
numberFormat: number[];
|
|
817
818
|
splitMultiValueFields: number[];
|
|
818
819
|
description: number[];
|
|
819
820
|
color: number[];
|
|
@@ -843,6 +844,7 @@ declare const _default: {
|
|
|
843
844
|
axisNameDisplay: number[];
|
|
844
845
|
displayDataLabel: number[];
|
|
845
846
|
displayLegend: number[];
|
|
847
|
+
numberFormat: number[];
|
|
846
848
|
rangeMin: number[];
|
|
847
849
|
rangeMax: number[];
|
|
848
850
|
description: number[];
|
|
@@ -879,6 +881,7 @@ declare const _default: {
|
|
|
879
881
|
axisNameDisplay: number[];
|
|
880
882
|
displayDataLabel: number[];
|
|
881
883
|
displayLegend: number[];
|
|
884
|
+
numberFormat: number[];
|
|
882
885
|
rangeMin: number[];
|
|
883
886
|
rangeMax: number[];
|
|
884
887
|
description: number[];
|
|
@@ -1160,6 +1163,8 @@ declare const _default: {
|
|
|
1160
1163
|
status: number[];
|
|
1161
1164
|
hasPaymentMethod: number[];
|
|
1162
1165
|
billingPortalUrl: number[];
|
|
1166
|
+
currentBillingSubscription: number[];
|
|
1167
|
+
billingSubscriptions: number[];
|
|
1163
1168
|
__typename: number[];
|
|
1164
1169
|
};
|
|
1165
1170
|
BillingResourceCreditUsage: {
|
|
@@ -2336,6 +2341,12 @@ declare const _default: {
|
|
|
2336
2341
|
event: number[];
|
|
2337
2342
|
__typename: number[];
|
|
2338
2343
|
};
|
|
2344
|
+
StartWorkspaceSetupChatResult: {
|
|
2345
|
+
outcome: number[];
|
|
2346
|
+
thread: number[];
|
|
2347
|
+
__typename: number[];
|
|
2348
|
+
};
|
|
2349
|
+
WorkspaceSetupChatOutcome: {};
|
|
2339
2350
|
AgentTurnEvaluation: {
|
|
2340
2351
|
id: number[];
|
|
2341
2352
|
turnId: number[];
|
|
@@ -2359,6 +2370,11 @@ declare const _default: {
|
|
|
2359
2370
|
toolsCount: number[];
|
|
2360
2371
|
__typename: number[];
|
|
2361
2372
|
};
|
|
2373
|
+
EnqueueJobResult: {
|
|
2374
|
+
enqueued: number[];
|
|
2375
|
+
logicFunctionUniversalIdentifier: number[];
|
|
2376
|
+
__typename: number[];
|
|
2377
|
+
};
|
|
2362
2378
|
AppKeyValue: {
|
|
2363
2379
|
key: number[];
|
|
2364
2380
|
value: number[];
|
|
@@ -3318,6 +3334,9 @@ declare const _default: {
|
|
|
3318
3334
|
key: (string | number)[];
|
|
3319
3335
|
scope: number[];
|
|
3320
3336
|
})[];
|
|
3337
|
+
enqueueJob: (number | {
|
|
3338
|
+
input: (string | number)[];
|
|
3339
|
+
})[];
|
|
3321
3340
|
createChatThread: number[];
|
|
3322
3341
|
sendChatMessage: (number | {
|
|
3323
3342
|
threadId: (string | number)[];
|
|
@@ -3356,6 +3375,9 @@ declare const _default: {
|
|
|
3356
3375
|
deleteQueuedChatMessage: (number | {
|
|
3357
3376
|
messageId: (string | number)[];
|
|
3358
3377
|
})[];
|
|
3378
|
+
startWorkspaceSetupChat: (number | {
|
|
3379
|
+
companyContext: number[];
|
|
3380
|
+
})[];
|
|
3359
3381
|
createSkill: (number | {
|
|
3360
3382
|
input: (string | number)[];
|
|
3361
3383
|
})[];
|
|
@@ -4545,6 +4567,13 @@ declare const _default: {
|
|
|
4545
4567
|
scope: number[];
|
|
4546
4568
|
__typename: number[];
|
|
4547
4569
|
};
|
|
4570
|
+
EnqueueJobInput: {
|
|
4571
|
+
logicFunctionUniversalIdentifier: number[];
|
|
4572
|
+
payload: number[];
|
|
4573
|
+
retryLimit: number[];
|
|
4574
|
+
delayMs: number[];
|
|
4575
|
+
__typename: number[];
|
|
4576
|
+
};
|
|
4548
4577
|
FileAttachmentInput: {
|
|
4549
4578
|
id: number[];
|
|
4550
4579
|
filename: number[];
|