twenty-client-sdk 2.0.0 → 2.1.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/metadata.mjs CHANGED
@@ -116,14 +116,14 @@ class I {
116
116
  shouldBatch: !1
117
117
  });
118
118
  return n && (p.variables = n), i && (p.operationName = i), new Promise((r, s) => {
119
- const l = new I(this.fetcher, this._options);
120
- l._queue = [
119
+ const _ = new I(this.fetcher, this._options);
120
+ _._queue = [
121
121
  {
122
122
  request: p,
123
123
  resolve: r,
124
124
  reject: s
125
125
  }
126
- ], y(l, o);
126
+ ], y(_, o);
127
127
  });
128
128
  }
129
129
  }
@@ -140,27 +140,27 @@ const R = {
140
140
  }) => {
141
141
  if (!e && !n)
142
142
  throw new Error("url or fetcher is required");
143
- if (n || (n = async (_) => {
143
+ if (n || (n = async (l) => {
144
144
  let r = typeof t == "function" ? await t() : t;
145
145
  if (r = r || {}, typeof fetch > "u" && !i)
146
146
  throw new Error(
147
147
  "Global `fetch` function is not available, pass a fetch polyfill to Genql `createClient`"
148
148
  );
149
- const l = await (i || fetch)(e, {
149
+ const _ = await (i || fetch)(e, {
150
150
  headers: {
151
151
  "Content-Type": "application/json",
152
152
  ...r
153
153
  },
154
154
  method: "POST",
155
- body: JSON.stringify(_),
155
+ body: JSON.stringify(l),
156
156
  ...p
157
157
  });
158
- if (!l.ok)
159
- throw new Error(`${l.statusText}: ${await l.text()}`);
160
- return await l.json();
158
+ if (!_.ok)
159
+ throw new Error(`${_.statusText}: ${await _.text()}`);
160
+ return await _.json();
161
161
  }), !a)
162
- return async (_) => {
163
- const r = await n(_);
162
+ return async (l) => {
163
+ const r = await n(l);
164
164
  if (Array.isArray(r))
165
165
  return r.map((s) => {
166
166
  if (s?.errors?.length)
@@ -172,11 +172,11 @@ const R = {
172
172
  return r.data;
173
173
  };
174
174
  const o = new I(
175
- async (_) => await n(_),
175
+ async (l) => await n(l),
176
176
  a === !0 ? R : a
177
177
  );
178
- return async ({ query: _, variables: r }) => {
179
- const s = await o.fetch(_, r);
178
+ return async ({ query: l, variables: r }) => {
179
+ const s = await o.fetch(l, r);
180
180
  if (s?.data)
181
181
  return s.data;
182
182
  throw new Error(
@@ -194,8 +194,8 @@ const R = {
194
194
  const o = S(t.root, n);
195
195
  return `(${p.map((r) => {
196
196
  t.varCounter++;
197
- const s = `v${t.varCounter}`, l = o.args && o.args[r];
198
- if (!l)
197
+ const s = `v${t.varCounter}`, _ = o.args && o.args[r];
198
+ if (!_)
199
199
  throw new Error(
200
200
  `no typing defined for argument \`${r}\` in path \`${n.join(
201
201
  "."
@@ -203,7 +203,7 @@ const R = {
203
203
  );
204
204
  return t.variables[s] = {
205
205
  value: i[r],
206
- typing: l
206
+ typing: _
207
207
  }, `${r}:$${s}`;
208
208
  })})${m(a, t, n)}`;
209
209
  } else if (typeof e == "object" && Object.keys(e).length > 0) {
@@ -213,28 +213,28 @@ const R = {
213
213
  `field selection should not be empty: ${n.join(".")}`
214
214
  );
215
215
  const p = n.length > 0 ? S(t.root, n).type : t.root, o = p.scalar;
216
- let _;
216
+ let l;
217
217
  if (a.includes("__scalar")) {
218
218
  const s = new Set(
219
- Object.keys(i).filter((l) => !i[l])
219
+ Object.keys(i).filter((_) => !i[_])
220
220
  );
221
- o?.length && (t.fragmentCounter++, _ = `f${t.fragmentCounter}`, t.fragments.push(
222
- `fragment ${_} on ${p.name}{${o.filter((l) => !s.has(l)).join(",")}}`
221
+ o?.length && (t.fragmentCounter++, l = `f${t.fragmentCounter}`, t.fragments.push(
222
+ `fragment ${l} on ${p.name}{${o.filter((_) => !s.has(_)).join(",")}}`
223
223
  ));
224
224
  }
225
225
  return `{${a.filter((s) => !["__scalar", "__name"].includes(s)).map((s) => {
226
- const l = m(i[s], t, [...n, s]);
226
+ const _ = m(i[s], t, [...n, s]);
227
227
  if (s.startsWith("on_")) {
228
228
  t.fragmentCounter++;
229
229
  const d = `f${t.fragmentCounter}`, c = s.match(/^on_(.+)/);
230
230
  if (!c || !c[1])
231
231
  throw new Error("match failed");
232
232
  return t.fragments.push(
233
- `fragment ${d} on ${c[1]}${l}`
233
+ `fragment ${d} on ${c[1]}${_}`
234
234
  ), `...${d}`;
235
235
  } else
236
- return `${s}${l}`;
237
- }).concat(_ ? [`...${_}`] : []).join(",")}}`;
236
+ return `${s}${_}`;
237
+ }).concat(l ? [`...${l}`] : []).join(",")}}`;
238
238
  } else
239
239
  return "";
240
240
  }, T = (e, t, n) => {
@@ -247,17 +247,17 @@ const R = {
247
247
  }, a = m(n, i, []), p = Object.keys(i.variables), o = p.length > 0 ? `(${p.map((r) => {
248
248
  const s = i.variables[r].typing[1];
249
249
  return `$${r}:${s}`;
250
- })})` : "", _ = n?.__name || "";
250
+ })})` : "", l = n?.__name || "";
251
251
  return {
252
252
  query: [
253
- `${e} ${_}${o}${a}`,
253
+ `${e} ${l}${o}${a}`,
254
254
  ...i.fragments
255
255
  ].join(","),
256
256
  variables: Object.keys(i.variables).reduce(
257
257
  (r, s) => (r[s] = i.variables[s].value, r),
258
258
  {}
259
259
  ),
260
- ..._ ? { operationName: _.toString() } : {}
260
+ ...l ? { operationName: l.toString() } : {}
261
261
  };
262
262
  }, S = (e, t) => {
263
263
  let n;
@@ -267,16 +267,16 @@ const R = {
267
267
  const a = n ? n.type : e;
268
268
  if (!a.fields)
269
269
  throw new Error(`type \`${a.name}\` does not have fields`);
270
- const p = Object.keys(a.fields).filter((_) => _.startsWith("on_")).reduce(
271
- (_, r) => {
270
+ const p = Object.keys(a.fields).filter((l) => l.startsWith("on_")).reduce(
271
+ (l, r) => {
272
272
  const s = a.fields && a.fields[r];
273
- return s && _.push(s.type), _;
273
+ return s && l.push(s.type), l;
274
274
  },
275
275
  [a]
276
276
  );
277
277
  let o = null;
278
- if (p.forEach((_) => {
279
- const r = _.fields && _.fields[i];
278
+ if (p.forEach((l) => {
279
+ const r = l.fields && l.fields[i];
280
280
  r && (o = r);
281
281
  }), !o)
282
282
  throw new Error(
@@ -317,32 +317,32 @@ const R = {
317
317
  [a]: {
318
318
  name: a,
319
319
  // type scalar properties
320
- scalar: Object.keys(o).filter((_) => {
321
- const [r] = o[_] || [];
320
+ scalar: Object.keys(o).filter((l) => {
321
+ const [r] = o[l] || [];
322
322
  return r && e.scalars.includes(r);
323
323
  }),
324
324
  // fields with corresponding `type` and `args`
325
325
  fields: Object.assign(
326
326
  {},
327
327
  ...Object.keys(o).map(
328
- (_) => {
329
- const [r, s] = o[_] || [];
328
+ (l) => {
329
+ const [r, s] = o[l] || [];
330
330
  return r == null ? {} : {
331
- [_]: {
331
+ [l]: {
332
332
  // replace index with type name
333
333
  type: t[r],
334
334
  args: Object.assign(
335
335
  {},
336
336
  ...Object.keys(s || {}).map(
337
- (l) => {
338
- if (!s || !s[l])
337
+ (_) => {
338
+ if (!s || !s[_])
339
339
  return;
340
340
  const [
341
341
  d,
342
342
  c
343
- ] = s[l];
343
+ ] = s[_];
344
344
  return {
345
- [l]: [
345
+ [_]: [
346
346
  t[d],
347
347
  c || t[d]
348
348
  ]
@@ -369,12 +369,12 @@ const R = {
369
369
  Object.keys(i).forEach((a) => {
370
370
  const p = i[a];
371
371
  if (p.args) {
372
- const _ = p.args;
373
- Object.keys(_).forEach((r) => {
374
- const s = _[r];
372
+ const l = p.args;
373
+ Object.keys(l).forEach((r) => {
374
+ const s = l[r];
375
375
  if (s) {
376
- const [l] = s;
377
- typeof l == "string" && (e[l] || (e[l] = { name: l }), s[0] = e[l]);
376
+ const [_] = s;
377
+ typeof _ == "string" && (e[_] || (e[_] = { name: _ }), s[0] = e[_]);
378
378
  }
379
379
  });
380
380
  }
@@ -464,7 +464,7 @@ const R = {
464
464
  341,
465
465
  348,
466
466
  379,
467
- 465,
467
+ 454,
468
468
  466
469
469
  ],
470
470
  types: {
@@ -587,6 +587,9 @@ const R = {
587
587
  isFeatured: [
588
588
  6
589
589
  ],
590
+ isPreInstalled: [
591
+ 6
592
+ ],
590
593
  logoUrl: [
591
594
  1
592
595
  ],
@@ -5189,6 +5192,9 @@ const R = {
5189
5192
  state: [
5190
5193
  1
5191
5194
  ],
5195
+ providerExecuted: [
5196
+ 6
5197
+ ],
5192
5198
  errorMessage: [
5193
5199
  1
5194
5200
  ],
@@ -6601,42 +6607,6 @@ const R = {
6601
6607
  ]
6602
6608
  }
6603
6609
  ],
6604
- eventLogs: [
6605
- 287,
6606
- {
6607
- input: [
6608
- 333,
6609
- "EventLogQueryInput!"
6610
- ]
6611
- }
6612
- ],
6613
- pieChartData: [
6614
- 278,
6615
- {
6616
- input: [
6617
- 337,
6618
- "PieChartDataInput!"
6619
- ]
6620
- }
6621
- ],
6622
- lineChartData: [
6623
- 276,
6624
- {
6625
- input: [
6626
- 338,
6627
- "LineChartDataInput!"
6628
- ]
6629
- }
6630
- ],
6631
- barChartData: [
6632
- 273,
6633
- {
6634
- input: [
6635
- 339,
6636
- "BarChartDataInput!"
6637
- ]
6638
- }
6639
- ],
6640
6610
  checkUserExists: [
6641
6611
  239,
6642
6612
  {
@@ -6756,9 +6726,59 @@ const R = {
6756
6726
  ]
6757
6727
  }
6758
6728
  ],
6729
+ findManyApplications: [
6730
+ 52
6731
+ ],
6732
+ findOneApplication: [
6733
+ 52,
6734
+ {
6735
+ id: [
6736
+ 3
6737
+ ],
6738
+ universalIdentifier: [
6739
+ 3
6740
+ ]
6741
+ }
6742
+ ],
6759
6743
  getSSOIdentityProviders: [
6760
6744
  195
6761
6745
  ],
6746
+ eventLogs: [
6747
+ 287,
6748
+ {
6749
+ input: [
6750
+ 333,
6751
+ "EventLogQueryInput!"
6752
+ ]
6753
+ }
6754
+ ],
6755
+ pieChartData: [
6756
+ 278,
6757
+ {
6758
+ input: [
6759
+ 337,
6760
+ "PieChartDataInput!"
6761
+ ]
6762
+ }
6763
+ ],
6764
+ lineChartData: [
6765
+ 276,
6766
+ {
6767
+ input: [
6768
+ 338,
6769
+ "LineChartDataInput!"
6770
+ ]
6771
+ }
6772
+ ],
6773
+ barChartData: [
6774
+ 273,
6775
+ {
6776
+ input: [
6777
+ 339,
6778
+ "BarChartDataInput!"
6779
+ ]
6780
+ }
6781
+ ],
6762
6782
  getConnectedImapSmtpCaldavAccount: [
6763
6783
  260,
6764
6784
  {
@@ -6829,20 +6849,6 @@ const R = {
6829
6849
  ]
6830
6850
  }
6831
6851
  ],
6832
- findManyApplications: [
6833
- 52
6834
- ],
6835
- findOneApplication: [
6836
- 52,
6837
- {
6838
- id: [
6839
- 3
6840
- ],
6841
- universalIdentifier: [
6842
- 3
6843
- ]
6844
- }
6845
- ],
6846
6852
  __typename: [
6847
6853
  1
6848
6854
  ]
@@ -8296,15 +8302,6 @@ const R = {
8296
8302
  ]
8297
8303
  }
8298
8304
  ],
8299
- duplicateDashboard: [
8300
- 279,
8301
- {
8302
- id: [
8303
- 3,
8304
- "UUID!"
8305
- ]
8306
- }
8307
- ],
8308
8305
  getAuthorizationUrlForSSO: [
8309
8306
  229,
8310
8307
  {
@@ -8751,11 +8748,58 @@ const R = {
8751
8748
  checkCustomDomainValidRecords: [
8752
8749
  219
8753
8750
  ],
8751
+ installApplication: [
8752
+ 6,
8753
+ {
8754
+ appRegistrationId: [
8755
+ 1,
8756
+ "String!"
8757
+ ],
8758
+ version: [
8759
+ 1
8760
+ ]
8761
+ }
8762
+ ],
8763
+ runWorkspaceMigration: [
8764
+ 6,
8765
+ {
8766
+ workspaceMigration: [
8767
+ 452,
8768
+ "WorkspaceMigrationInput!"
8769
+ ]
8770
+ }
8771
+ ],
8772
+ uninstallApplication: [
8773
+ 6,
8774
+ {
8775
+ universalIdentifier: [
8776
+ 1,
8777
+ "String!"
8778
+ ]
8779
+ }
8780
+ ],
8781
+ updateOneApplicationVariable: [
8782
+ 6,
8783
+ {
8784
+ key: [
8785
+ 1,
8786
+ "String!"
8787
+ ],
8788
+ value: [
8789
+ 1,
8790
+ "String!"
8791
+ ],
8792
+ applicationId: [
8793
+ 3,
8794
+ "UUID!"
8795
+ ]
8796
+ }
8797
+ ],
8754
8798
  createOIDCIdentityProvider: [
8755
8799
  196,
8756
8800
  {
8757
8801
  input: [
8758
- 452,
8802
+ 455,
8759
8803
  "SetupOIDCSsoInput!"
8760
8804
  ]
8761
8805
  }
@@ -8764,7 +8808,7 @@ const R = {
8764
8808
  196,
8765
8809
  {
8766
8810
  input: [
8767
- 453,
8811
+ 456,
8768
8812
  "SetupSAMLSsoInput!"
8769
8813
  ]
8770
8814
  }
@@ -8773,7 +8817,7 @@ const R = {
8773
8817
  192,
8774
8818
  {
8775
8819
  input: [
8776
- 454,
8820
+ 457,
8777
8821
  "DeleteSsoInput!"
8778
8822
  ]
8779
8823
  }
@@ -8782,11 +8826,20 @@ const R = {
8782
8826
  193,
8783
8827
  {
8784
8828
  input: [
8785
- 455,
8829
+ 458,
8786
8830
  "EditSsoInput!"
8787
8831
  ]
8788
8832
  }
8789
8833
  ],
8834
+ duplicateDashboard: [
8835
+ 279,
8836
+ {
8837
+ id: [
8838
+ 3,
8839
+ "UUID!"
8840
+ ]
8841
+ }
8842
+ ],
8790
8843
  impersonate: [
8791
8844
  241,
8792
8845
  {
@@ -8804,7 +8857,7 @@ const R = {
8804
8857
  284,
8805
8858
  {
8806
8859
  input: [
8807
- 456,
8860
+ 459,
8808
8861
  "SendEmailInput!"
8809
8862
  ]
8810
8863
  }
@@ -8830,7 +8883,7 @@ const R = {
8830
8883
  "String!"
8831
8884
  ],
8832
8885
  connectionParameters: [
8833
- 458,
8886
+ 461,
8834
8887
  "EmailAccountConnectionParameters!"
8835
8888
  ],
8836
8889
  id: [
@@ -8842,7 +8895,7 @@ const R = {
8842
8895
  160,
8843
8896
  {
8844
8897
  input: [
8845
- 460,
8898
+ 463,
8846
8899
  "UpdateLabPublicFeatureFlagInput!"
8847
8900
  ]
8848
8901
  }
@@ -8915,7 +8968,7 @@ const R = {
8915
8968
  71,
8916
8969
  {
8917
8970
  input: [
8918
- 461,
8971
+ 464,
8919
8972
  "CreateOneAppTokenInput!"
8920
8973
  ]
8921
8974
  }
@@ -8935,53 +8988,6 @@ const R = {
8935
8988
  syncMarketplaceCatalog: [
8936
8989
  6
8937
8990
  ],
8938
- installApplication: [
8939
- 6,
8940
- {
8941
- appRegistrationId: [
8942
- 1,
8943
- "String!"
8944
- ],
8945
- version: [
8946
- 1
8947
- ]
8948
- }
8949
- ],
8950
- runWorkspaceMigration: [
8951
- 6,
8952
- {
8953
- workspaceMigration: [
8954
- 463,
8955
- "WorkspaceMigrationInput!"
8956
- ]
8957
- }
8958
- ],
8959
- uninstallApplication: [
8960
- 6,
8961
- {
8962
- universalIdentifier: [
8963
- 1,
8964
- "String!"
8965
- ]
8966
- }
8967
- ],
8968
- updateOneApplicationVariable: [
8969
- 6,
8970
- {
8971
- key: [
8972
- 1,
8973
- "String!"
8974
- ],
8975
- value: [
8976
- 1,
8977
- "String!"
8978
- ],
8979
- applicationId: [
8980
- 3,
8981
- "UUID!"
8982
- ]
8983
- }
8984
- ],
8985
8991
  createDevelopmentApplication: [
8986
8992
  245,
8987
8993
  {
@@ -11166,6 +11172,29 @@ const R = {
11166
11172
  1
11167
11173
  ]
11168
11174
  },
11175
+ WorkspaceMigrationInput: {
11176
+ actions: [
11177
+ 453
11178
+ ],
11179
+ __typename: [
11180
+ 1
11181
+ ]
11182
+ },
11183
+ WorkspaceMigrationDeleteActionInput: {
11184
+ type: [
11185
+ 454
11186
+ ],
11187
+ metadataName: [
11188
+ 316
11189
+ ],
11190
+ universalIdentifier: [
11191
+ 1
11192
+ ],
11193
+ __typename: [
11194
+ 1
11195
+ ]
11196
+ },
11197
+ WorkspaceMigrationActionType: {},
11169
11198
  SetupOIDCSsoInput: {
11170
11199
  name: [
11171
11200
  1
@@ -11248,7 +11277,7 @@ const R = {
11248
11277
  1
11249
11278
  ],
11250
11279
  files: [
11251
- 457
11280
+ 460
11252
11281
  ],
11253
11282
  __typename: [
11254
11283
  1
@@ -11267,13 +11296,13 @@ const R = {
11267
11296
  },
11268
11297
  EmailAccountConnectionParameters: {
11269
11298
  IMAP: [
11270
- 459
11299
+ 462
11271
11300
  ],
11272
11301
  SMTP: [
11273
- 459
11302
+ 462
11274
11303
  ],
11275
11304
  CALDAV: [
11276
- 459
11305
+ 462
11277
11306
  ],
11278
11307
  __typename: [
11279
11308
  1
@@ -11312,7 +11341,7 @@ const R = {
11312
11341
  },
11313
11342
  CreateOneAppTokenInput: {
11314
11343
  appToken: [
11315
- 462
11344
+ 465
11316
11345
  ],
11317
11346
  __typename: [
11318
11347
  1
@@ -11326,29 +11355,6 @@ const R = {
11326
11355
  1
11327
11356
  ]
11328
11357
  },
11329
- WorkspaceMigrationInput: {
11330
- actions: [
11331
- 464
11332
- ],
11333
- __typename: [
11334
- 1
11335
- ]
11336
- },
11337
- WorkspaceMigrationDeleteActionInput: {
11338
- type: [
11339
- 465
11340
- ],
11341
- metadataName: [
11342
- 316
11343
- ],
11344
- universalIdentifier: [
11345
- 1
11346
- ],
11347
- __typename: [
11348
- 1
11349
- ]
11350
- },
11351
- WorkspaceMigrationActionType: {},
11352
11358
  FileFolder: {},
11353
11359
  Subscription: {
11354
11360
  onEventSubscription: [
@@ -11406,9 +11412,9 @@ const R = {
11406
11412
  }, D = ["BillingLicensedProduct", "BillingMeteredProduct"], F = (e) => {
11407
11413
  if (!e?.__typename) throw new Error('__typename is missing in "isBillingProductDTO"');
11408
11414
  return D.includes(e.__typename);
11409
- }, N = ["ApiKey"], b = (e) => {
11415
+ }, b = ["ApiKey"], N = (e) => {
11410
11416
  if (!e?.__typename) throw new Error('__typename is missing in "isApiKey"');
11411
- return N.includes(e.__typename);
11417
+ return b.includes(e.__typename);
11412
11418
  }, M = ["ApplicationRegistrationVariable"], U = (e) => {
11413
11419
  if (!e?.__typename) throw new Error('__typename is missing in "isApplicationRegistrationVariable"');
11414
11420
  return M.includes(e.__typename);
@@ -11451,12 +11457,12 @@ const R = {
11451
11457
  }, oe = ["Role"], re = (e) => {
11452
11458
  if (!e?.__typename) throw new Error('__typename is missing in "isRole"');
11453
11459
  return oe.includes(e.__typename);
11454
- }, pe = ["ApplicationRegistrationSummary"], _e = (e) => {
11460
+ }, pe = ["ApplicationRegistrationSummary"], le = (e) => {
11455
11461
  if (!e?.__typename) throw new Error('__typename is missing in "isApplicationRegistrationSummary"');
11456
11462
  return pe.includes(e.__typename);
11457
- }, le = ["ApplicationVariable"], de = (e) => {
11463
+ }, _e = ["ApplicationVariable"], de = (e) => {
11458
11464
  if (!e?.__typename) throw new Error('__typename is missing in "isApplicationVariable"');
11459
- return le.includes(e.__typename);
11465
+ return _e.includes(e.__typename);
11460
11466
  }, ce = ["AuthToken"], ue = (e) => {
11461
11467
  if (!e?.__typename) throw new Error('__typename is missing in "isAuthToken"');
11462
11468
  return ce.includes(e.__typename);
@@ -11487,9 +11493,9 @@ const R = {
11487
11493
  }, De = ["Object"], Fe = (e) => {
11488
11494
  if (!e?.__typename) throw new Error('__typename is missing in "isObject"');
11489
11495
  return De.includes(e.__typename);
11490
- }, Ne = ["Application"], be = (e) => {
11496
+ }, be = ["Application"], Ne = (e) => {
11491
11497
  if (!e?.__typename) throw new Error('__typename is missing in "isApplication"');
11492
- return Ne.includes(e.__typename);
11498
+ return be.includes(e.__typename);
11493
11499
  }, Me = ["ViewField"], Ue = (e) => {
11494
11500
  if (!e?.__typename) throw new Error('__typename is missing in "isViewField"');
11495
11501
  return Me.includes(e.__typename);
@@ -11532,12 +11538,12 @@ const R = {
11532
11538
  }, ot = ["PageLayoutWidget"], rt = (e) => {
11533
11539
  if (!e?.__typename) throw new Error('__typename is missing in "isPageLayoutWidget"');
11534
11540
  return ot.includes(e.__typename);
11535
- }, pt = ["PageLayoutWidgetGridPosition", "PageLayoutWidgetVerticalListPosition", "PageLayoutWidgetCanvasPosition"], _t = (e) => {
11541
+ }, pt = ["PageLayoutWidgetGridPosition", "PageLayoutWidgetVerticalListPosition", "PageLayoutWidgetCanvasPosition"], lt = (e) => {
11536
11542
  if (!e?.__typename) throw new Error('__typename is missing in "isPageLayoutWidgetPosition"');
11537
11543
  return pt.includes(e.__typename);
11538
- }, lt = ["PageLayoutWidgetGridPosition"], dt = (e) => {
11544
+ }, _t = ["PageLayoutWidgetGridPosition"], dt = (e) => {
11539
11545
  if (!e?.__typename) throw new Error('__typename is missing in "isPageLayoutWidgetGridPosition"');
11540
- return lt.includes(e.__typename);
11546
+ return _t.includes(e.__typename);
11541
11547
  }, ct = ["PageLayoutWidgetVerticalListPosition"], ut = (e) => {
11542
11548
  if (!e?.__typename) throw new Error('__typename is missing in "isPageLayoutWidgetVerticalListPosition"');
11543
11549
  return ct.includes(e.__typename);
@@ -11568,9 +11574,9 @@ const R = {
11568
11574
  }, Dt = ["BarChartConfiguration"], Ft = (e) => {
11569
11575
  if (!e?.__typename) throw new Error('__typename is missing in "isBarChartConfiguration"');
11570
11576
  return Dt.includes(e.__typename);
11571
- }, Nt = ["CalendarConfiguration"], bt = (e) => {
11577
+ }, bt = ["CalendarConfiguration"], Nt = (e) => {
11572
11578
  if (!e?.__typename) throw new Error('__typename is missing in "isCalendarConfiguration"');
11573
- return Nt.includes(e.__typename);
11579
+ return bt.includes(e.__typename);
11574
11580
  }, Mt = ["FrontComponentConfiguration"], Ut = (e) => {
11575
11581
  if (!e?.__typename) throw new Error('__typename is missing in "isFrontComponentConfiguration"');
11576
11582
  return Mt.includes(e.__typename);
@@ -11613,12 +11619,12 @@ const R = {
11613
11619
  }, oi = ["WorkflowRunConfiguration"], ri = (e) => {
11614
11620
  if (!e?.__typename) throw new Error('__typename is missing in "isWorkflowRunConfiguration"');
11615
11621
  return oi.includes(e.__typename);
11616
- }, pi = ["WorkflowVersionConfiguration"], _i = (e) => {
11622
+ }, pi = ["WorkflowVersionConfiguration"], li = (e) => {
11617
11623
  if (!e?.__typename) throw new Error('__typename is missing in "isWorkflowVersionConfiguration"');
11618
11624
  return pi.includes(e.__typename);
11619
- }, li = ["PageLayoutTab"], di = (e) => {
11625
+ }, _i = ["PageLayoutTab"], di = (e) => {
11620
11626
  if (!e?.__typename) throw new Error('__typename is missing in "isPageLayoutTab"');
11621
- return li.includes(e.__typename);
11627
+ return _i.includes(e.__typename);
11622
11628
  }, ci = ["PageLayout"], ui = (e) => {
11623
11629
  if (!e?.__typename) throw new Error('__typename is missing in "isPageLayout"');
11624
11630
  return ci.includes(e.__typename);
@@ -11649,9 +11655,9 @@ const R = {
11649
11655
  }, Di = ["BillingPriceLicensed"], Fi = (e) => {
11650
11656
  if (!e?.__typename) throw new Error('__typename is missing in "isBillingPriceLicensed"');
11651
11657
  return Di.includes(e.__typename);
11652
- }, Ni = ["BillingPriceTier"], bi = (e) => {
11658
+ }, bi = ["BillingPriceTier"], Ni = (e) => {
11653
11659
  if (!e?.__typename) throw new Error('__typename is missing in "isBillingPriceTier"');
11654
- return Ni.includes(e.__typename);
11660
+ return bi.includes(e.__typename);
11655
11661
  }, Mi = ["BillingPriceMetered"], Ui = (e) => {
11656
11662
  if (!e?.__typename) throw new Error('__typename is missing in "isBillingPriceMetered"');
11657
11663
  return Mi.includes(e.__typename);
@@ -11694,9 +11700,9 @@ const R = {
11694
11700
  }, rn = ["SendInvitations"], pn = (e) => {
11695
11701
  if (!e?.__typename) throw new Error('__typename is missing in "isSendInvitations"');
11696
11702
  return rn.includes(e.__typename);
11697
- }, _n = ["RecordIdentifier"], ln = (e) => {
11703
+ }, ln = ["RecordIdentifier"], _n = (e) => {
11698
11704
  if (!e?.__typename) throw new Error('__typename is missing in "isRecordIdentifier"');
11699
- return _n.includes(e.__typename);
11705
+ return ln.includes(e.__typename);
11700
11706
  }, dn = ["NavigationMenuItem"], cn = (e) => {
11701
11707
  if (!e?.__typename) throw new Error('__typename is missing in "isNavigationMenuItem"');
11702
11708
  return dn.includes(e.__typename);
@@ -11727,12 +11733,12 @@ const R = {
11727
11733
  }, Ln = ["BillingTrialPeriod"], Dn = (e) => {
11728
11734
  if (!e?.__typename) throw new Error('__typename is missing in "isBillingTrialPeriod"');
11729
11735
  return Ln.includes(e.__typename);
11730
- }, Fn = ["SSOIdentityProvider"], Nn = (e) => {
11736
+ }, Fn = ["SSOIdentityProvider"], bn = (e) => {
11731
11737
  if (!e?.__typename) throw new Error('__typename is missing in "isSSOIdentityProvider"');
11732
11738
  return Fn.includes(e.__typename);
11733
- }, bn = ["AuthProviders"], Mn = (e) => {
11739
+ }, Nn = ["AuthProviders"], Mn = (e) => {
11734
11740
  if (!e?.__typename) throw new Error('__typename is missing in "isAuthProviders"');
11735
- return bn.includes(e.__typename);
11741
+ return Nn.includes(e.__typename);
11736
11742
  }, Un = ["AuthBypassProviders"], vn = (e) => {
11737
11743
  if (!e?.__typename) throw new Error('__typename is missing in "isAuthBypassProviders"');
11738
11744
  return Un.includes(e.__typename);
@@ -11775,9 +11781,9 @@ const R = {
11775
11781
  }, ra = ["ClientConfig"], pa = (e) => {
11776
11782
  if (!e?.__typename) throw new Error('__typename is missing in "isClientConfig"');
11777
11783
  return ra.includes(e.__typename);
11778
- }, _a = ["UsageBreakdownItem"], la = (e) => {
11784
+ }, la = ["UsageBreakdownItem"], _a = (e) => {
11779
11785
  if (!e?.__typename) throw new Error('__typename is missing in "isUsageBreakdownItem"');
11780
- return _a.includes(e.__typename);
11786
+ return la.includes(e.__typename);
11781
11787
  }, da = ["VersionDistributionEntry"], ca = (e) => {
11782
11788
  if (!e?.__typename) throw new Error('__typename is missing in "isVersionDistributionEntry"');
11783
11789
  return da.includes(e.__typename);
@@ -11808,12 +11814,12 @@ const R = {
11808
11814
  }, La = ["FindAvailableSSOIDP"], Da = (e) => {
11809
11815
  if (!e?.__typename) throw new Error('__typename is missing in "isFindAvailableSSOIDP"');
11810
11816
  return La.includes(e.__typename);
11811
- }, Fa = ["SetupSso"], Na = (e) => {
11817
+ }, Fa = ["SetupSso"], ba = (e) => {
11812
11818
  if (!e?.__typename) throw new Error('__typename is missing in "isSetupSso"');
11813
11819
  return Fa.includes(e.__typename);
11814
- }, ba = ["SSOConnection"], Ma = (e) => {
11820
+ }, Na = ["SSOConnection"], Ma = (e) => {
11815
11821
  if (!e?.__typename) throw new Error('__typename is missing in "isSSOConnection"');
11816
- return ba.includes(e.__typename);
11822
+ return Na.includes(e.__typename);
11817
11823
  }, Ua = ["AvailableWorkspace"], va = (e) => {
11818
11824
  if (!e?.__typename) throw new Error('__typename is missing in "isAvailableWorkspace"');
11819
11825
  return Ua.includes(e.__typename);
@@ -11856,9 +11862,9 @@ const R = {
11856
11862
  }, rs = ["ObjectIndexMetadatasConnection"], ps = (e) => {
11857
11863
  if (!e?.__typename) throw new Error('__typename is missing in "isObjectIndexMetadatasConnection"');
11858
11864
  return rs.includes(e.__typename);
11859
- }, _s = ["FieldEdge"], ls = (e) => {
11865
+ }, ls = ["FieldEdge"], _s = (e) => {
11860
11866
  if (!e?.__typename) throw new Error('__typename is missing in "isFieldEdge"');
11861
- return _s.includes(e.__typename);
11867
+ return ls.includes(e.__typename);
11862
11868
  }, ds = ["ObjectFieldsConnection"], cs = (e) => {
11863
11869
  if (!e?.__typename) throw new Error('__typename is missing in "isObjectFieldsConnection"');
11864
11870
  return ds.includes(e.__typename);
@@ -11889,12 +11895,12 @@ const R = {
11889
11895
  }, Ls = ["VerifyTwoFactorAuthenticationMethod"], Ds = (e) => {
11890
11896
  if (!e?.__typename) throw new Error('__typename is missing in "isVerifyTwoFactorAuthenticationMethod"');
11891
11897
  return Ls.includes(e.__typename);
11892
- }, Fs = ["AuthorizeApp"], Ns = (e) => {
11898
+ }, Fs = ["AuthorizeApp"], bs = (e) => {
11893
11899
  if (!e?.__typename) throw new Error('__typename is missing in "isAuthorizeApp"');
11894
11900
  return Fs.includes(e.__typename);
11895
- }, bs = ["AuthTokenPair"], Ms = (e) => {
11901
+ }, Ns = ["AuthTokenPair"], Ms = (e) => {
11896
11902
  if (!e?.__typename) throw new Error('__typename is missing in "isAuthTokenPair"');
11897
- return bs.includes(e.__typename);
11903
+ return Ns.includes(e.__typename);
11898
11904
  }, Us = ["AvailableWorkspacesAndAccessTokens"], vs = (e) => {
11899
11905
  if (!e?.__typename) throw new Error('__typename is missing in "isAvailableWorkspacesAndAccessTokens"');
11900
11906
  return Us.includes(e.__typename);
@@ -11937,9 +11943,9 @@ const R = {
11937
11943
  }, ro = ["WorkspaceInviteHashValid"], po = (e) => {
11938
11944
  if (!e?.__typename) throw new Error('__typename is missing in "isWorkspaceInviteHashValid"');
11939
11945
  return ro.includes(e.__typename);
11940
- }, _o = ["Impersonate"], lo = (e) => {
11946
+ }, lo = ["Impersonate"], _o = (e) => {
11941
11947
  if (!e?.__typename) throw new Error('__typename is missing in "isImpersonate"');
11942
- return _o.includes(e.__typename);
11948
+ return lo.includes(e.__typename);
11943
11949
  }, co = ["UsageTimeSeries"], uo = (e) => {
11944
11950
  if (!e?.__typename) throw new Error('__typename is missing in "isUsageTimeSeries"');
11945
11951
  return co.includes(e.__typename);
@@ -11970,9 +11976,9 @@ const R = {
11970
11976
  }, Do = ["VerificationRecord"], Fo = (e) => {
11971
11977
  if (!e?.__typename) throw new Error('__typename is missing in "isVerificationRecord"');
11972
11978
  return Do.includes(e.__typename);
11973
- }, No = ["EmailingDomain"], bo = (e) => {
11979
+ }, bo = ["EmailingDomain"], No = (e) => {
11974
11980
  if (!e?.__typename) throw new Error('__typename is missing in "isEmailingDomain"');
11975
- return No.includes(e.__typename);
11981
+ return bo.includes(e.__typename);
11976
11982
  }, Mo = ["AutocompleteResult"], Uo = (e) => {
11977
11983
  if (!e?.__typename) throw new Error('__typename is missing in "isAutocompleteResult"');
11978
11984
  return Mo.includes(e.__typename);
@@ -12015,12 +12021,12 @@ const R = {
12015
12021
  }, or = ["AgentMessagePart"], rr = (e) => {
12016
12022
  if (!e?.__typename) throw new Error('__typename is missing in "isAgentMessagePart"');
12017
12023
  return or.includes(e.__typename);
12018
- }, pr = ["ChannelSyncSuccess"], _r = (e) => {
12024
+ }, pr = ["ChannelSyncSuccess"], lr = (e) => {
12019
12025
  if (!e?.__typename) throw new Error('__typename is missing in "isChannelSyncSuccess"');
12020
12026
  return pr.includes(e.__typename);
12021
- }, lr = ["BarChartSeries"], dr = (e) => {
12027
+ }, _r = ["BarChartSeries"], dr = (e) => {
12022
12028
  if (!e?.__typename) throw new Error('__typename is missing in "isBarChartSeries"');
12023
- return lr.includes(e.__typename);
12029
+ return _r.includes(e.__typename);
12024
12030
  }, cr = ["BarChartData"], ur = (e) => {
12025
12031
  if (!e?.__typename) throw new Error('__typename is missing in "isBarChartData"');
12026
12032
  return cr.includes(e.__typename);
@@ -12051,9 +12057,9 @@ const R = {
12051
12057
  }, Dr = ["PublicImapSmtpCaldavConnectionParameters"], Fr = (e) => {
12052
12058
  if (!e?.__typename) throw new Error('__typename is missing in "isPublicImapSmtpCaldavConnectionParameters"');
12053
12059
  return Dr.includes(e.__typename);
12054
- }, Nr = ["ConnectedAccountPublicDTO"], br = (e) => {
12060
+ }, br = ["ConnectedAccountPublicDTO"], Nr = (e) => {
12055
12061
  if (!e?.__typename) throw new Error('__typename is missing in "isConnectedAccountPublicDTO"');
12056
- return Nr.includes(e.__typename);
12062
+ return br.includes(e.__typename);
12057
12063
  }, Mr = ["SendEmailOutput"], Ur = (e) => {
12058
12064
  if (!e?.__typename) throw new Error('__typename is missing in "isSendEmailOutput"');
12059
12065
  return Mr.includes(e.__typename);
@@ -12096,12 +12102,12 @@ const R = {
12096
12102
  }, op = ["AgentChatThreadConnection"], rp = (e) => {
12097
12103
  if (!e?.__typename) throw new Error('__typename is missing in "isAgentChatThreadConnection"');
12098
12104
  return op.includes(e.__typename);
12099
- }, pp = ["AgentTurnEvaluation"], _p = (e) => {
12105
+ }, pp = ["AgentTurnEvaluation"], lp = (e) => {
12100
12106
  if (!e?.__typename) throw new Error('__typename is missing in "isAgentTurnEvaluation"');
12101
12107
  return pp.includes(e.__typename);
12102
- }, lp = ["AgentTurn"], dp = (e) => {
12108
+ }, _p = ["AgentTurn"], dp = (e) => {
12103
12109
  if (!e?.__typename) throw new Error('__typename is missing in "isAgentTurn"');
12104
- return lp.includes(e.__typename);
12110
+ return _p.includes(e.__typename);
12105
12111
  }, cp = ["CalendarChannel"], up = (e) => {
12106
12112
  if (!e?.__typename) throw new Error('__typename is missing in "isCalendarChannel"');
12107
12113
  return cp.includes(e.__typename);
@@ -12132,9 +12138,9 @@ const R = {
12132
12138
  }, Dp = ["Mutation"], Fp = (e) => {
12133
12139
  if (!e?.__typename) throw new Error('__typename is missing in "isMutation"');
12134
12140
  return Dp.includes(e.__typename);
12135
- }, Np = ["Subscription"], bp = (e) => {
12141
+ }, bp = ["Subscription"], Np = (e) => {
12136
12142
  if (!e?.__typename) throw new Error('__typename is missing in "isSubscription"');
12137
- return Np.includes(e.__typename);
12143
+ return bp.includes(e.__typename);
12138
12144
  }, Mp = {
12139
12145
  NPM: "NPM",
12140
12146
  TARBALL: "TARBALL",
@@ -12299,7 +12305,7 @@ const R = {
12299
12305
  INVITE_TEAM: "INVITE_TEAM",
12300
12306
  BOOK_ONBOARDING: "BOOK_ONBOARDING",
12301
12307
  COMPLETED: "COMPLETED"
12302
- }, e_ = {
12308
+ }, el = {
12303
12309
  VIEW: "VIEW",
12304
12310
  IFRAME: "IFRAME",
12305
12311
  FIELD: "FIELD",
@@ -12319,11 +12325,11 @@ const R = {
12319
12325
  FRONT_COMPONENT: "FRONT_COMPONENT",
12320
12326
  RECORD_TABLE: "RECORD_TABLE",
12321
12327
  EMAIL_THREAD: "EMAIL_THREAD"
12322
- }, t_ = {
12328
+ }, tl = {
12323
12329
  GRID: "GRID",
12324
12330
  VERTICAL_LIST: "VERTICAL_LIST",
12325
12331
  CANVAS: "CANVAS"
12326
- }, i_ = {
12332
+ }, il = {
12327
12333
  AGGREGATE_CHART: "AGGREGATE_CHART",
12328
12334
  GAUGE_CHART: "GAUGE_CHART",
12329
12335
  PIE_CHART: "PIE_CHART",
@@ -12347,7 +12353,7 @@ const R = {
12347
12353
  FRONT_COMPONENT: "FRONT_COMPONENT",
12348
12354
  RECORD_TABLE: "RECORD_TABLE",
12349
12355
  EMAIL_THREAD: "EMAIL_THREAD"
12350
- }, n_ = {
12356
+ }, nl = {
12351
12357
  DAY: "DAY",
12352
12358
  MONTH: "MONTH",
12353
12359
  QUARTER: "QUARTER",
@@ -12357,7 +12363,7 @@ const R = {
12357
12363
  MONTH_OF_THE_YEAR: "MONTH_OF_THE_YEAR",
12358
12364
  QUARTER_OF_THE_YEAR: "QUARTER_OF_THE_YEAR",
12359
12365
  NONE: "NONE"
12360
- }, a_ = {
12366
+ }, al = {
12361
12367
  FIELD_ASC: "FIELD_ASC",
12362
12368
  FIELD_DESC: "FIELD_DESC",
12363
12369
  FIELD_POSITION_ASC: "FIELD_POSITION_ASC",
@@ -12365,40 +12371,40 @@ const R = {
12365
12371
  VALUE_ASC: "VALUE_ASC",
12366
12372
  VALUE_DESC: "VALUE_DESC",
12367
12373
  MANUAL: "MANUAL"
12368
- }, s_ = {
12374
+ }, sl = {
12369
12375
  NONE: "NONE",
12370
12376
  X: "X",
12371
12377
  Y: "Y",
12372
12378
  BOTH: "BOTH"
12373
- }, o_ = {
12379
+ }, ol = {
12374
12380
  STACKED: "STACKED",
12375
12381
  GROUPED: "GROUPED"
12376
- }, r_ = {
12382
+ }, rl = {
12377
12383
  VERTICAL: "VERTICAL",
12378
12384
  HORIZONTAL: "HORIZONTAL"
12379
- }, p_ = {
12385
+ }, pl = {
12380
12386
  CARD: "CARD",
12381
12387
  EDITOR: "EDITOR",
12382
12388
  FIELD: "FIELD",
12383
12389
  VIEW: "VIEW"
12384
- }, __ = {
12390
+ }, ll = {
12385
12391
  RECORD_INDEX: "RECORD_INDEX",
12386
12392
  RECORD_PAGE: "RECORD_PAGE",
12387
12393
  DASHBOARD: "DASHBOARD",
12388
12394
  STANDALONE_PAGE: "STANDALONE_PAGE"
12389
- }, l_ = {
12395
+ }, _l = {
12390
12396
  PRO: "PRO",
12391
12397
  ENTERPRISE: "ENTERPRISE"
12392
- }, d_ = {
12398
+ }, dl = {
12393
12399
  METERED: "METERED",
12394
12400
  LICENSED: "LICENSED"
12395
- }, c_ = {
12401
+ }, cl = {
12396
12402
  BASE_PRODUCT: "BASE_PRODUCT",
12397
12403
  WORKFLOW_NODE_EXECUTION: "WORKFLOW_NODE_EXECUTION"
12398
- }, u_ = {
12404
+ }, ul = {
12399
12405
  Month: "Month",
12400
12406
  Year: "Year"
12401
- }, m_ = {
12407
+ }, ml = {
12402
12408
  Active: "Active",
12403
12409
  Canceled: "Canceled",
12404
12410
  Incomplete: "Incomplete",
@@ -12407,32 +12413,31 @@ const R = {
12407
12413
  Paused: "Paused",
12408
12414
  Trialing: "Trialing",
12409
12415
  Unpaid: "Unpaid"
12410
- }, y_ = {
12416
+ }, yl = {
12411
12417
  VIEW: "VIEW",
12412
12418
  FOLDER: "FOLDER",
12413
12419
  LINK: "LINK",
12414
12420
  OBJECT: "OBJECT",
12415
12421
  RECORD: "RECORD",
12416
12422
  PAGE_LAYOUT: "PAGE_LAYOUT"
12417
- }, g_ = {
12423
+ }, gl = {
12418
12424
  CREATED: "CREATED",
12419
12425
  UPDATED: "UPDATED",
12420
12426
  DELETED: "DELETED"
12421
- }, E_ = {
12427
+ }, El = {
12422
12428
  CREATED: "CREATED",
12423
12429
  UPDATED: "UPDATED",
12424
12430
  DELETED: "DELETED",
12425
12431
  DESTROYED: "DESTROYED",
12426
12432
  RESTORED: "RESTORED",
12427
12433
  UPSERTED: "UPSERTED"
12428
- }, I_ = {
12434
+ }, Il = {
12429
12435
  IDLE: "IDLE",
12430
12436
  SUCCESS: "SUCCESS",
12431
12437
  ERROR: "ERROR"
12432
- }, A_ = {
12438
+ }, Al = {
12433
12439
  IS_UNIQUE_INDEXES_ENABLED: "IS_UNIQUE_INDEXES_ENABLED",
12434
12440
  IS_JSON_FILTER_ENABLED: "IS_JSON_FILTER_ENABLED",
12435
- IS_AI_ENABLED: "IS_AI_ENABLED",
12436
12441
  IS_COMMAND_MENU_ITEM_ENABLED: "IS_COMMAND_MENU_ITEM_ENABLED",
12437
12442
  IS_MARKETPLACE_SETTING_TAB_VISIBLE: "IS_MARKETPLACE_SETTING_TAB_VISIBLE",
12438
12443
  IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED: "IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED",
@@ -12443,41 +12448,41 @@ const R = {
12443
12448
  IS_RICH_TEXT_V1_MIGRATED: "IS_RICH_TEXT_V1_MIGRATED",
12444
12449
  IS_RECORD_PAGE_LAYOUT_GLOBAL_EDITION_ENABLED: "IS_RECORD_PAGE_LAYOUT_GLOBAL_EDITION_ENABLED",
12445
12450
  IS_DATASOURCE_MIGRATED: "IS_DATASOURCE_MIGRATED"
12446
- }, T_ = {
12451
+ }, Tl = {
12447
12452
  OIDC: "OIDC",
12448
12453
  SAML: "SAML"
12449
- }, S_ = {
12454
+ }, Sl = {
12450
12455
  Active: "Active",
12451
12456
  Inactive: "Inactive",
12452
12457
  Error: "Error"
12453
- }, C_ = {
12458
+ }, Cl = {
12454
12459
  GPT: "GPT",
12455
12460
  CLAUDE: "CLAUDE",
12456
12461
  GEMINI: "GEMINI",
12457
12462
  MISTRAL: "MISTRAL",
12458
12463
  GROK: "GROK"
12459
- }, O_ = {
12464
+ }, Ol = {
12460
12465
  NONE: "NONE",
12461
12466
  FRONT: "FRONT"
12462
- }, R_ = {
12467
+ }, Rl = {
12463
12468
  GOOGLE_RECAPTCHA: "GOOGLE_RECAPTCHA",
12464
12469
  TURNSTILE: "TURNSTILE"
12465
- }, h_ = {
12470
+ }, hl = {
12466
12471
  ONE_TO_MANY: "ONE_TO_MANY",
12467
12472
  MANY_TO_ONE: "MANY_TO_ONE"
12468
- }, w_ = {
12473
+ }, wl = {
12469
12474
  SSO: "SSO",
12470
12475
  CUSTOM_DOMAIN: "CUSTOM_DOMAIN",
12471
12476
  RLS: "RLS",
12472
12477
  AUDIT_LOGS: "AUDIT_LOGS"
12473
- }, f_ = {
12478
+ }, fl = {
12474
12479
  AWS_SES: "AWS_SES"
12475
- }, P_ = {
12480
+ }, Pl = {
12476
12481
  PENDING: "PENDING",
12477
12482
  VERIFIED: "VERIFIED",
12478
12483
  FAILED: "FAILED",
12479
12484
  TEMPORARY_FAILURE: "TEMPORARY_FAILURE"
12480
- }, L_ = {
12485
+ }, Ll = {
12481
12486
  NAVIGATE_TO_NEXT_RECORD: "NAVIGATE_TO_NEXT_RECORD",
12482
12487
  NAVIGATE_TO_PREVIOUS_RECORD: "NAVIGATE_TO_PREVIOUS_RECORD",
12483
12488
  CREATE_NEW_RECORD: "CREATE_NEW_RECORD",
@@ -12544,18 +12549,18 @@ const R = {
12544
12549
  EXPORT_FROM_RECORD_INDEX: "EXPORT_FROM_RECORD_INDEX",
12545
12550
  EXPORT_FROM_RECORD_SHOW: "EXPORT_FROM_RECORD_SHOW",
12546
12551
  EXPORT_MULTIPLE_RECORDS: "EXPORT_MULTIPLE_RECORDS"
12547
- }, D_ = {
12552
+ }, Dl = {
12548
12553
  GLOBAL: "GLOBAL",
12549
12554
  GLOBAL_OBJECT_CONTEXT: "GLOBAL_OBJECT_CONTEXT",
12550
12555
  RECORD_SELECTION: "RECORD_SELECTION",
12551
12556
  FALLBACK: "FALLBACK"
12552
- }, F_ = {
12557
+ }, Fl = {
12553
12558
  NOT_SYNCED: "NOT_SYNCED",
12554
12559
  ONGOING: "ONGOING",
12555
12560
  ACTIVE: "ACTIVE",
12556
12561
  FAILED_INSUFFICIENT_PERMISSIONS: "FAILED_INSUFFICIENT_PERMISSIONS",
12557
12562
  FAILED_UNKNOWN: "FAILED_UNKNOWN"
12558
- }, N_ = {
12563
+ }, bl = {
12559
12564
  PENDING_CONFIGURATION: "PENDING_CONFIGURATION",
12560
12565
  CALENDAR_EVENT_LIST_FETCH_PENDING: "CALENDAR_EVENT_LIST_FETCH_PENDING",
12561
12566
  CALENDAR_EVENT_LIST_FETCH_SCHEDULED: "CALENDAR_EVENT_LIST_FETCH_SCHEDULED",
@@ -12564,39 +12569,39 @@ const R = {
12564
12569
  CALENDAR_EVENTS_IMPORT_SCHEDULED: "CALENDAR_EVENTS_IMPORT_SCHEDULED",
12565
12570
  CALENDAR_EVENTS_IMPORT_ONGOING: "CALENDAR_EVENTS_IMPORT_ONGOING",
12566
12571
  FAILED: "FAILED"
12567
- }, b_ = {
12572
+ }, Nl = {
12568
12573
  METADATA: "METADATA",
12569
12574
  SHARE_EVERYTHING: "SHARE_EVERYTHING"
12570
- }, M_ = {
12575
+ }, Ml = {
12571
12576
  AS_PARTICIPANT_AND_ORGANIZER: "AS_PARTICIPANT_AND_ORGANIZER",
12572
12577
  AS_PARTICIPANT: "AS_PARTICIPANT",
12573
12578
  AS_ORGANIZER: "AS_ORGANIZER",
12574
12579
  NONE: "NONE"
12575
- }, U_ = {
12580
+ }, Ul = {
12576
12581
  METADATA: "METADATA",
12577
12582
  SUBJECT: "SUBJECT",
12578
12583
  SHARE_EVERYTHING: "SHARE_EVERYTHING"
12579
- }, v_ = {
12584
+ }, vl = {
12580
12585
  EMAIL: "EMAIL",
12581
12586
  SMS: "SMS"
12582
- }, k_ = {
12587
+ }, kl = {
12583
12588
  SENT_AND_RECEIVED: "SENT_AND_RECEIVED",
12584
12589
  SENT: "SENT",
12585
12590
  NONE: "NONE"
12586
- }, V_ = {
12591
+ }, Vl = {
12587
12592
  ALL_FOLDERS: "ALL_FOLDERS",
12588
12593
  SELECTED_FOLDERS: "SELECTED_FOLDERS"
12589
- }, W_ = {
12594
+ }, Wl = {
12590
12595
  GROUP_EMAILS_DELETION: "GROUP_EMAILS_DELETION",
12591
12596
  GROUP_EMAILS_IMPORT: "GROUP_EMAILS_IMPORT",
12592
12597
  NONE: "NONE"
12593
- }, G_ = {
12598
+ }, Gl = {
12594
12599
  NOT_SYNCED: "NOT_SYNCED",
12595
12600
  ONGOING: "ONGOING",
12596
12601
  ACTIVE: "ACTIVE",
12597
12602
  FAILED_INSUFFICIENT_PERMISSIONS: "FAILED_INSUFFICIENT_PERMISSIONS",
12598
12603
  FAILED_UNKNOWN: "FAILED_UNKNOWN"
12599
- }, B_ = {
12604
+ }, Bl = {
12600
12605
  PENDING_CONFIGURATION: "PENDING_CONFIGURATION",
12601
12606
  MESSAGE_LIST_FETCH_PENDING: "MESSAGE_LIST_FETCH_PENDING",
12602
12607
  MESSAGE_LIST_FETCH_SCHEDULED: "MESSAGE_LIST_FETCH_SCHEDULED",
@@ -12605,10 +12610,10 @@ const R = {
12605
12610
  MESSAGES_IMPORT_SCHEDULED: "MESSAGES_IMPORT_SCHEDULED",
12606
12611
  MESSAGES_IMPORT_ONGOING: "MESSAGES_IMPORT_ONGOING",
12607
12612
  FAILED: "FAILED"
12608
- }, K_ = {
12613
+ }, Kl = {
12609
12614
  FOLDER_DELETION: "FOLDER_DELETION",
12610
12615
  NONE: "NONE"
12611
- }, x_ = {
12616
+ }, xl = {
12612
12617
  fieldMetadata: "fieldMetadata",
12613
12618
  objectMetadata: "objectMetadata",
12614
12619
  view: "view",
@@ -12636,35 +12641,35 @@ const R = {
12636
12641
  fieldPermission: "fieldPermission",
12637
12642
  frontComponent: "frontComponent",
12638
12643
  webhook: "webhook"
12639
- }, H_ = {
12644
+ }, Hl = {
12640
12645
  id: "id",
12641
12646
  updatedAt: "updatedAt"
12642
- }, Y_ = {
12647
+ }, Yl = {
12643
12648
  ASC: "ASC",
12644
12649
  DESC: "DESC"
12645
- }, Q_ = {
12650
+ }, Ql = {
12646
12651
  NULLS_FIRST: "NULLS_FIRST",
12647
12652
  NULLS_LAST: "NULLS_LAST"
12648
- }, X_ = {
12653
+ }, Xl = {
12649
12654
  WORKSPACE_EVENT: "WORKSPACE_EVENT",
12650
12655
  PAGEVIEW: "PAGEVIEW",
12651
12656
  OBJECT_EVENT: "OBJECT_EVENT",
12652
12657
  USAGE_EVENT: "USAGE_EVENT",
12653
12658
  APPLICATION_LOG: "APPLICATION_LOG"
12654
- }, q_ = {
12659
+ }, ql = {
12655
12660
  AI_CHAT_TOKEN: "AI_CHAT_TOKEN",
12656
12661
  AI_WORKFLOW_TOKEN: "AI_WORKFLOW_TOKEN",
12657
12662
  WORKFLOW_EXECUTION: "WORKFLOW_EXECUTION",
12658
12663
  CODE_EXECUTION: "CODE_EXECUTION",
12659
12664
  WEB_SEARCH: "WEB_SEARCH"
12660
- }, z_ = {
12665
+ }, zl = {
12661
12666
  PAGEVIEW: "PAGEVIEW",
12662
12667
  TRACK: "TRACK"
12663
- }, $_ = {
12668
+ }, $l = {
12664
12669
  delete: "delete",
12665
12670
  create: "create",
12666
12671
  update: "update"
12667
- }, J_ = {
12672
+ }, Jl = {
12668
12673
  ProfilePicture: "ProfilePicture",
12669
12674
  WorkspaceLogo: "WorkspaceLogo",
12670
12675
  Attachment: "Attachment",
@@ -12682,65 +12687,65 @@ const R = {
12682
12687
  EmailAttachment: "EmailAttachment",
12683
12688
  AppTarball: "AppTarball",
12684
12689
  GeneratedSdkClient: "GeneratedSdkClient"
12685
- }, nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12690
+ }, n_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12686
12691
  __proto__: null,
12687
- enumAgentChatThreadSortFields: H_,
12692
+ enumAgentChatThreadSortFields: Hl,
12688
12693
  enumAggregateOperations: xp,
12689
- enumAllMetadataName: x_,
12690
- enumAnalyticsType: z_,
12694
+ enumAllMetadataName: xl,
12695
+ enumAnalyticsType: zl,
12691
12696
  enumApplicationRegistrationSourceType: Mp,
12692
- enumAxisNameDisplay: s_,
12693
- enumBarChartGroupMode: o_,
12694
- enumBarChartLayout: r_,
12695
- enumBillingEntitlementKey: w_,
12696
- enumBillingPlanKey: l_,
12697
- enumBillingProductKey: c_,
12698
- enumBillingUsageType: d_,
12699
- enumCalendarChannelContactAutoCreationPolicy: M_,
12700
- enumCalendarChannelSyncStage: N_,
12701
- enumCalendarChannelSyncStatus: F_,
12702
- enumCalendarChannelVisibility: b_,
12703
- enumCaptchaDriverType: R_,
12704
- enumCommandMenuItemAvailabilityType: D_,
12705
- enumDatabaseEventAction: E_,
12706
- enumEmailingDomainDriver: f_,
12707
- enumEmailingDomainStatus: P_,
12708
- enumEngineComponentKey: L_,
12709
- enumEventLogTable: X_,
12710
- enumFeatureFlagKey: A_,
12711
- enumFieldDisplayMode: p_,
12697
+ enumAxisNameDisplay: sl,
12698
+ enumBarChartGroupMode: ol,
12699
+ enumBarChartLayout: rl,
12700
+ enumBillingEntitlementKey: wl,
12701
+ enumBillingPlanKey: _l,
12702
+ enumBillingProductKey: cl,
12703
+ enumBillingUsageType: dl,
12704
+ enumCalendarChannelContactAutoCreationPolicy: Ml,
12705
+ enumCalendarChannelSyncStage: bl,
12706
+ enumCalendarChannelSyncStatus: Fl,
12707
+ enumCalendarChannelVisibility: Nl,
12708
+ enumCaptchaDriverType: Rl,
12709
+ enumCommandMenuItemAvailabilityType: Dl,
12710
+ enumDatabaseEventAction: El,
12711
+ enumEmailingDomainDriver: fl,
12712
+ enumEmailingDomainStatus: Pl,
12713
+ enumEngineComponentKey: Ll,
12714
+ enumEventLogTable: Xl,
12715
+ enumFeatureFlagKey: Al,
12716
+ enumFieldDisplayMode: pl,
12712
12717
  enumFieldMetadataType: Bp,
12713
- enumFileFolder: J_,
12714
- enumGraphOrderBy: a_,
12715
- enumIdentityProviderType: T_,
12718
+ enumFileFolder: Jl,
12719
+ enumGraphOrderBy: al,
12720
+ enumIdentityProviderType: Tl,
12716
12721
  enumIndexType: Kp,
12717
- enumLogicFunctionExecutionStatus: I_,
12718
- enumMessageChannelContactAutoCreationPolicy: k_,
12719
- enumMessageChannelPendingGroupEmailsAction: W_,
12720
- enumMessageChannelSyncStage: B_,
12721
- enumMessageChannelSyncStatus: G_,
12722
- enumMessageChannelType: v_,
12723
- enumMessageChannelVisibility: U_,
12724
- enumMessageFolderImportPolicy: V_,
12725
- enumMessageFolderPendingSyncAction: K_,
12726
- enumMetadataEventAction: g_,
12727
- enumModelFamily: C_,
12728
- enumNavigationMenuItemType: y_,
12729
- enumObjectRecordGroupByDateGranularity: n_,
12722
+ enumLogicFunctionExecutionStatus: Il,
12723
+ enumMessageChannelContactAutoCreationPolicy: kl,
12724
+ enumMessageChannelPendingGroupEmailsAction: Wl,
12725
+ enumMessageChannelSyncStage: Bl,
12726
+ enumMessageChannelSyncStatus: Gl,
12727
+ enumMessageChannelType: vl,
12728
+ enumMessageChannelVisibility: Ul,
12729
+ enumMessageFolderImportPolicy: Vl,
12730
+ enumMessageFolderPendingSyncAction: Kl,
12731
+ enumMetadataEventAction: gl,
12732
+ enumModelFamily: Cl,
12733
+ enumNavigationMenuItemType: yl,
12734
+ enumObjectRecordGroupByDateGranularity: nl,
12730
12735
  enumOnboardingStatus: jp,
12731
- enumPageLayoutTabLayoutMode: t_,
12732
- enumPageLayoutType: __,
12736
+ enumPageLayoutTabLayoutMode: tl,
12737
+ enumPageLayoutType: ll,
12733
12738
  enumPermissionFlagType: kp,
12734
- enumRelationType: h_,
12739
+ enumRelationType: hl,
12735
12740
  enumRowLevelPermissionPredicateGroupLogicalOperator: Up,
12736
12741
  enumRowLevelPermissionPredicateOperand: vp,
12737
- enumSortDirection: Y_,
12738
- enumSortNulls: Q_,
12739
- enumSsoIdentityProviderStatus: S_,
12740
- enumSubscriptionInterval: u_,
12741
- enumSubscriptionStatus: m_,
12742
- enumSupportDriver: O_,
12743
- enumUsageOperationType: q_,
12742
+ enumSortDirection: Yl,
12743
+ enumSortNulls: Ql,
12744
+ enumSsoIdentityProviderStatus: Sl,
12745
+ enumSubscriptionInterval: ul,
12746
+ enumSubscriptionStatus: ml,
12747
+ enumSupportDriver: Ol,
12748
+ enumUsageOperationType: ql,
12744
12749
  enumViewCalendarLayout: $p,
12745
12750
  enumViewFilterGroupLogicalOperator: Hp,
12746
12751
  enumViewFilterOperand: Yp,
@@ -12749,13 +12754,13 @@ const R = {
12749
12754
  enumViewSortDirection: Qp,
12750
12755
  enumViewType: Xp,
12751
12756
  enumViewVisibility: Jp,
12752
- enumWidgetConfigurationType: i_,
12753
- enumWidgetType: e_,
12757
+ enumWidgetConfigurationType: il,
12758
+ enumWidgetType: el,
12754
12759
  enumWorkspaceActivationStatus: Zp,
12755
12760
  enumWorkspaceMemberDateFormatEnum: Vp,
12756
12761
  enumWorkspaceMemberNumberFormatEnum: Gp,
12757
12762
  enumWorkspaceMemberTimeFormatEnum: Wp,
12758
- enumWorkspaceMigrationActionType: $_,
12763
+ enumWorkspaceMigrationActionType: $l,
12759
12764
  isAgent: j,
12760
12765
  isAgentChatEvent: np,
12761
12766
  isAgentChatThread: Yr,
@@ -12764,20 +12769,20 @@ const R = {
12764
12769
  isAgentMessage: Xr,
12765
12770
  isAgentMessagePart: rr,
12766
12771
  isAgentTurn: dp,
12767
- isAgentTurnEvaluation: _p,
12772
+ isAgentTurnEvaluation: lp,
12768
12773
  isAggregateChartConfiguration: At,
12769
12774
  isAiSystemPromptPreview: Jr,
12770
12775
  isAiSystemPromptSection: zr,
12771
12776
  isAnalytics: yi,
12772
12777
  isApiConfig: ea,
12773
- isApiKey: b,
12778
+ isApiKey: N,
12774
12779
  isApiKeyForRole: se,
12775
12780
  isApiKeyToken: eo,
12776
12781
  isAppToken: Je,
12777
- isApplication: be,
12782
+ isApplication: Ne,
12778
12783
  isApplicationRegistration: k,
12779
12784
  isApplicationRegistrationStats: ma,
12780
- isApplicationRegistrationSummary: _e,
12785
+ isApplicationRegistrationSummary: le,
12781
12786
  isApplicationRegistrationVariable: U,
12782
12787
  isApplicationTokenPair: ye,
12783
12788
  isApplicationVariable: de,
@@ -12787,7 +12792,7 @@ const R = {
12787
12792
  isAuthToken: ue,
12788
12793
  isAuthTokenPair: Ms,
12789
12794
  isAuthTokens: io,
12790
- isAuthorizeApp: Ns,
12795
+ isAuthorizeApp: bs,
12791
12796
  isAutocompleteResult: Uo,
12792
12797
  isAvailableWorkspace: va,
12793
12798
  isAvailableWorkspaces: Va,
@@ -12804,7 +12809,7 @@ const R = {
12804
12809
  isBillingPlan: Ji,
12805
12810
  isBillingPriceLicensed: Fi,
12806
12811
  isBillingPriceMetered: Ui,
12807
- isBillingPriceTier: bi,
12812
+ isBillingPriceTier: Ni,
12808
12813
  isBillingProduct: ki,
12809
12814
  isBillingProductDTO: F,
12810
12815
  isBillingProductMetadata: Li,
@@ -12816,9 +12821,9 @@ const R = {
12816
12821
  isBillingTrialPeriod: Dn,
12817
12822
  isBillingUpdate: tn,
12818
12823
  isCalendarChannel: up,
12819
- isCalendarConfiguration: bt,
12824
+ isCalendarConfiguration: Nt,
12820
12825
  isCaptcha: Zn,
12821
- isChannelSyncSuccess: _r,
12826
+ isChannelSyncSuccess: lr,
12822
12827
  isChatStreamCatchupChunks: jr,
12823
12828
  isCheckUserExist: oo,
12824
12829
  isClientAiModelConfig: Hn,
@@ -12828,7 +12833,7 @@ const R = {
12828
12833
  isCommandMenuItem: Jo,
12829
12834
  isCommandMenuItemPayload: jo,
12830
12835
  isConnectedAccountDTO: fr,
12831
- isConnectedAccountPublicDTO: br,
12836
+ isConnectedAccountPublicDTO: Nr,
12832
12837
  isConnectedImapSmtpCaldavAccount: Yo,
12833
12838
  isConnectionParametersOutput: Bo,
12834
12839
  isCreateApplicationRegistration: ga,
@@ -12842,7 +12847,7 @@ const R = {
12842
12847
  isEditSso: wa,
12843
12848
  isEmailPasswordResetLink: Vs,
12844
12849
  isEmailThreadConfiguration: Wt,
12845
- isEmailingDomain: bo,
12850
+ isEmailingDomain: No,
12846
12851
  isEmailsConfiguration: kt,
12847
12852
  isEnterpriseLicenseInfoDTO: Si,
12848
12853
  isEnterpriseSubscriptionStatusDTO: Oi,
@@ -12854,7 +12859,7 @@ const R = {
12854
12859
  isField: Oe,
12855
12860
  isFieldConfiguration: Bt,
12856
12861
  isFieldConnection: ms,
12857
- isFieldEdge: ls,
12862
+ isFieldEdge: _s,
12858
12863
  isFieldPermission: te,
12859
12864
  isFieldRichTextConfiguration: xt,
12860
12865
  isFieldsConfiguration: Yt,
@@ -12871,7 +12876,7 @@ const R = {
12871
12876
  isIframeConfiguration: ft,
12872
12877
  isImapSmtpCaldavConnectionParameters: xo,
12873
12878
  isImapSmtpCaldavConnectionSuccess: Xo,
12874
- isImpersonate: lo,
12879
+ isImpersonate: _o,
12875
12880
  isIndex: fe,
12876
12881
  isIndexConnection: qa,
12877
12882
  isIndexEdge: Ha,
@@ -12921,7 +12926,7 @@ const R = {
12921
12926
  isPageLayoutWidget: rt,
12922
12927
  isPageLayoutWidgetCanvasPosition: yt,
12923
12928
  isPageLayoutWidgetGridPosition: dt,
12924
- isPageLayoutWidgetPosition: _t,
12929
+ isPageLayoutWidgetPosition: lt,
12925
12930
  isPageLayoutWidgetVerticalListPosition: ut,
12926
12931
  isPathCommandMenuItemPayload: tr,
12927
12932
  isPermissionFlag: ne,
@@ -12940,7 +12945,7 @@ const R = {
12940
12945
  isPublicWorkspaceDataSummary: Gn,
12941
12946
  isQuery: Lp,
12942
12947
  isRatioAggregateConfig: tt,
12943
- isRecordIdentifier: ln,
12948
+ isRecordIdentifier: _n,
12944
12949
  isRecordTableConfiguration: ni,
12945
12950
  isRelation: Ka,
12946
12951
  isResendEmailVerificationToken: Ca,
@@ -12950,17 +12955,17 @@ const R = {
12950
12955
  isRowLevelPermissionPredicate: x,
12951
12956
  isRowLevelPermissionPredicateGroup: B,
12952
12957
  isSSOConnection: Ma,
12953
- isSSOIdentityProvider: Nn,
12958
+ isSSOIdentityProvider: bn,
12954
12959
  isSendChatMessageResult: tp,
12955
12960
  isSendEmailOutput: Ur,
12956
12961
  isSendInvitations: pn,
12957
12962
  isSentry: $n,
12958
- isSetupSso: Na,
12963
+ isSetupSso: ba,
12959
12964
  isSignUp: Qs,
12960
12965
  isSkill: xr,
12961
12966
  isStandaloneRichTextConfiguration: St,
12962
12967
  isStandardOverrides: Se,
12963
- isSubscription: bp,
12968
+ isSubscription: Np,
12964
12969
  isSupport: qn,
12965
12970
  isTasksConfiguration: Jt,
12966
12971
  isTimelineConfiguration: jt,
@@ -12969,7 +12974,7 @@ const R = {
12969
12974
  isTwoFactorAuthenticationMethodSummary: W,
12970
12975
  isUpsertRowLevelPermissionPredicatesResult: Cs,
12971
12976
  isUsageAnalytics: Eo,
12972
- isUsageBreakdownItem: la,
12977
+ isUsageBreakdownItem: _a,
12973
12978
  isUsageTimeSeries: uo,
12974
12979
  isUsageUserDaily: yo,
12975
12980
  isUser: je,
@@ -12991,7 +12996,7 @@ const R = {
12991
12996
  isWidgetConfiguration: Et,
12992
12997
  isWorkflowConfiguration: si,
12993
12998
  isWorkflowRunConfiguration: ri,
12994
- isWorkflowVersionConfiguration: _i,
12999
+ isWorkflowVersionConfiguration: li,
12995
13000
  isWorkspace: ze,
12996
13001
  isWorkspaceInvitation: on,
12997
13002
  isWorkspaceInviteHashValid: po,
@@ -13000,7 +13005,7 @@ const R = {
13000
13005
  isWorkspaceNameAndId: Pa,
13001
13006
  isWorkspaceUrls: Pn,
13002
13007
  isWorkspaceUrlsAndId: Hs
13003
- }, Symbol.toStringTag, { value: "Module" })), g = f(L), Z_ = function(e) {
13008
+ }, Symbol.toStringTag, { value: "Module" })), g = f(L), Zl = function(e) {
13004
13009
  return w({
13005
13010
  url: void 0,
13006
13011
  ...e,
@@ -13008,12 +13013,12 @@ const R = {
13008
13013
  mutationRoot: g.Mutation,
13009
13014
  subscriptionRoot: g.Subscription
13010
13015
  });
13011
- }, C = "TWENTY_APP_ACCESS_TOKEN", j_ = "TWENTY_API_KEY", O = () => globalThis.process?.env ?? {}, E = (e) => {
13016
+ }, C = "TWENTY_APP_ACCESS_TOKEN", jl = "TWENTY_API_KEY", O = () => globalThis.process?.env ?? {}, E = (e) => {
13012
13017
  if (typeof e != "string")
13013
13018
  return null;
13014
13019
  const t = e.trim();
13015
13020
  return t.length === 0 || t === "Bearer" ? null : t.startsWith("Bearer ") ? t.slice(7).trim() : t;
13016
- }, el = (e) => {
13021
+ }, e_ = (e) => {
13017
13022
  if (!e)
13018
13023
  return null;
13019
13024
  if (e instanceof Headers)
@@ -13030,31 +13035,31 @@ const R = {
13030
13035
  return E(
13031
13036
  t.Authorization ?? t.authorization
13032
13037
  );
13033
- }, tl = (e) => e?.errors ? e.errors.some((t) => t.extensions?.code === "UNAUTHENTICATED" || t.message?.toLowerCase() === "unauthorized") : !1, il = {
13038
+ }, t_ = (e) => e?.errors ? e.errors.some((t) => t.extensions?.code === "UNAUTHENTICATED" || t.message?.toLowerCase() === "unauthorized") : !1, i_ = {
13034
13039
  url: `${process.env.TWENTY_API_URL}/metadata`,
13035
13040
  headers: {
13036
13041
  "Content-Type": "application/json"
13037
13042
  }
13038
13043
  };
13039
- class al {
13044
+ class a_ {
13040
13045
  constructor(t) {
13041
13046
  this.refreshAccessTokenPromise = null;
13042
13047
  const n = {
13043
- ...il,
13048
+ ...i_,
13044
13049
  ...t
13045
13050
  }, {
13046
13051
  url: i,
13047
13052
  headers: a,
13048
13053
  fetch: p,
13049
13054
  fetcher: o,
13050
- batch: _,
13055
+ batch: l,
13051
13056
  ...r
13052
13057
  } = n;
13053
13058
  this.url = i ?? "", this.requestOptions = r, this.headers = a ?? {}, this.fetchImplementation = p ?? globalThis.fetch ?? null;
13054
- const s = O(), l = el(
13059
+ const s = O(), _ = e_(
13055
13060
  typeof a == "function" ? void 0 : a
13056
13061
  );
13057
- this.authorizationToken = l ?? s[C] ?? s[j_] ?? null, this.client = Z_({
13062
+ this.authorizationToken = _ ?? s[C] ?? s[jl] ?? null, this.client = Zl({
13058
13063
  ...n,
13059
13064
  headers: void 0,
13060
13065
  fetcher: async (d) => this.executeGraphqlRequestWithOptionalRefresh({
@@ -13134,15 +13139,15 @@ class al {
13134
13139
  );
13135
13140
  const p = await this.resolveHeaders(), o = new Headers(p);
13136
13141
  n && new Headers(n).forEach(
13137
- (l, d) => o.set(d, l)
13142
+ (_, d) => o.set(d, _)
13138
13143
  ), t instanceof FormData ? o.delete("Content-Type") : o.set("Content-Type", "application/json"), a ? o.set("Authorization", `Bearer ${a}`) : o.delete("Authorization");
13139
- const _ = await this.fetchImplementation.call(globalThis, this.url, {
13144
+ const l = await this.fetchImplementation.call(globalThis, this.url, {
13140
13145
  ...this.requestOptions,
13141
13146
  ...i,
13142
13147
  method: i?.method ?? "POST",
13143
13148
  headers: o,
13144
13149
  body: t instanceof FormData ? t : JSON.stringify(t)
13145
- }), r = await _.text();
13150
+ }), r = await l.text();
13146
13151
  let s = null;
13147
13152
  if (r.trim().length > 0)
13148
13153
  try {
@@ -13151,8 +13156,8 @@ class al {
13151
13156
  s = null;
13152
13157
  }
13153
13158
  return {
13154
- status: _.status,
13155
- statusText: _.statusText,
13159
+ status: l.status,
13160
+ statusText: l.statusText,
13156
13161
  payload: s,
13157
13162
  rawBody: r
13158
13163
  };
@@ -13161,7 +13166,7 @@ class al {
13161
13166
  return typeof this.headers == "function" ? await this.headers() ?? {} : this.headers ?? {};
13162
13167
  }
13163
13168
  shouldRefreshToken(t) {
13164
- return t.status === 401 ? !0 : tl(t.payload);
13169
+ return t.status === 401 ? !0 : t_(t.payload);
13165
13170
  }
13166
13171
  assertResponseIsSuccessful(t) {
13167
13172
  if (t.status < 200 || t.status >= 300)
@@ -13183,6 +13188,6 @@ class al {
13183
13188
  }
13184
13189
  }
13185
13190
  export {
13186
- al as MetadataApiClient,
13187
- nl as MetadataSchema
13191
+ a_ as MetadataApiClient,
13192
+ n_ as MetadataSchema
13188
13193
  };