twenty-client-sdk 1.23.0-canary.1 → 1.23.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/dist/generate.mjs CHANGED
@@ -2,7 +2,7 @@ import { mkdir as f, readdir as q, rm as l, rename as A, cp as R, appendFile as
2
2
  import { join as r } from "node:path";
3
3
  import { generate as y } from "@genql/cli";
4
4
  import { build as u } from "esbuild";
5
- const _ = "TWENTY_API_URL", P = "// __STRIPPED_DURING_INJECTION_START__", k = "// __STRIPPED_DURING_INJECTION_END__", d = "// __UPLOAD_FILE_START__", p = "// __UPLOAD_FILE_END__", o = (n) => n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), T = (n, t) => {
5
+ const T = "TWENTY_API_URL", P = "// __STRIPPED_DURING_INJECTION_START__", k = "// __STRIPPED_DURING_INJECTION_END__", d = "// __UPLOAD_FILE_START__", p = "// __UPLOAD_FILE_END__", o = (n) => n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), _ = (n, t) => {
6
6
  let e = n;
7
7
  return e = e.replace(
8
8
  new RegExp(
@@ -502,9 +502,9 @@ export class TwentyGeneratedClient {
502
502
  output: s,
503
503
  scalarTypes: O
504
504
  });
505
- const i = T(a, {
505
+ const i = _(a, {
506
506
  apiClientName: "CoreApiClient",
507
- defaultUrl: `\`\${process.env.${_}}/graphql\``,
507
+ defaultUrl: `\`\${process.env.${T}}/graphql\``,
508
508
  includeUploadFile: !0
509
509
  });
510
510
  await m(r(s, "index.ts"), i), await h(t), await C(s, t), await S(t);
@@ -569,9 +569,9 @@ export class TwentyGeneratedClient {
569
569
  Upload: "File"
570
570
  }
571
571
  });
572
- const s = T(a, {
572
+ const s = _(a, {
573
573
  apiClientName: "MetadataApiClient",
574
- defaultUrl: `\`\${process.env.${_}}/metadata\``,
574
+ defaultUrl: `\`\${process.env.${T}}/metadata\``,
575
575
  includeUploadFile: !0
576
576
  });
577
577
  await m(r(t, "index.ts"), s);