@osdk/cli 0.25.1 → 0.26.0-beta.10

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.
Files changed (85) hide show
  1. package/CHANGELOG.md +20 -16
  2. package/build/esm/{acorn-LQZJTRX7.js → acorn-RXMSUCXL.js} +3 -3
  3. package/build/esm/{acorn-LQZJTRX7.js.map → acorn-RXMSUCXL.js.map} +1 -1
  4. package/build/esm/{angular-VWUX447C.js → angular-ZXAN5BMN.js} +3 -3
  5. package/build/esm/{angular-VWUX447C.js.map → angular-ZXAN5BMN.js.map} +1 -1
  6. package/build/esm/{babel-7BWEVLBS.js → babel-TI7T67T2.js} +3 -3
  7. package/build/esm/{babel-7BWEVLBS.js.map → babel-TI7T67T2.js.map} +1 -1
  8. package/build/esm/{chunk-SAOPV5FF.js → chunk-2U36M44D.js} +3 -3
  9. package/build/esm/{chunk-SAOPV5FF.js.map → chunk-2U36M44D.js.map} +1 -1
  10. package/build/esm/{chunk-LR3YBME3.js → chunk-KJFA7LBI.js} +7 -7
  11. package/build/esm/{chunk-LR3YBME3.js.map → chunk-KJFA7LBI.js.map} +1 -1
  12. package/build/esm/{chunk-KHVWTBWA.js → chunk-M2BWWO6L.js} +8 -8
  13. package/build/esm/{chunk-KHVWTBWA.js.map → chunk-M2BWWO6L.js.map} +1 -1
  14. package/build/esm/{chunk-GVZBRYRL.js → chunk-ML7ZMS6G.js} +3 -3
  15. package/build/esm/{chunk-GVZBRYRL.js.map → chunk-ML7ZMS6G.js.map} +1 -1
  16. package/build/esm/{chunk-KXNCVDQG.js → chunk-MU54JM45.js} +9 -9
  17. package/build/esm/{chunk-KXNCVDQG.js.map → chunk-MU54JM45.js.map} +1 -1
  18. package/build/esm/{chunk-HCWMXOMI.js → chunk-N3LXG6II.js} +5 -4
  19. package/build/esm/chunk-N3LXG6II.js.map +1 -0
  20. package/build/esm/{chunk-IT5TCA23.js → chunk-OI3KG2JR.js} +30 -20
  21. package/build/esm/chunk-OI3KG2JR.js.map +1 -0
  22. package/build/esm/{chunk-PXU2ECCD.js → chunk-P5HXJTVE.js} +18 -11
  23. package/build/esm/chunk-P5HXJTVE.js.map +1 -0
  24. package/build/esm/{chunk-DMUWBIYY.js → chunk-VHOQB2JW.js} +4 -4
  25. package/build/esm/{chunk-DMUWBIYY.js.map → chunk-VHOQB2JW.js.map} +1 -1
  26. package/build/esm/{estree-PI6JMQNR.js → estree-CSIG7D6Y.js} +3 -3
  27. package/build/esm/{estree-PI6JMQNR.js.map → estree-CSIG7D6Y.js.map} +1 -1
  28. package/build/esm/find-up-EKHQCTZM.js +4 -0
  29. package/build/esm/{find-up-QYNPYSRQ.js.map → find-up-EKHQCTZM.js.map} +1 -1
  30. package/build/esm/{flow-AP4DEOL5.js → flow-NUNWZLRW.js} +3 -3
  31. package/build/esm/{flow-AP4DEOL5.js.map → flow-NUNWZLRW.js.map} +1 -1
  32. package/build/esm/{glimmer-LM2ZFC5U.js → glimmer-GYUSOBQY.js} +3 -3
  33. package/build/esm/{glimmer-LM2ZFC5U.js.map → glimmer-GYUSOBQY.js.map} +1 -1
  34. package/build/esm/{graphql-U5CPDQKQ.js → graphql-OALHBC5M.js} +3 -3
  35. package/build/esm/{graphql-U5CPDQKQ.js.map → graphql-OALHBC5M.js.map} +1 -1
  36. package/build/esm/{handleGenerate-VS7LGEFI.js → handleGenerate-UQQTMEXV.js} +93 -64
  37. package/build/esm/handleGenerate-UQQTMEXV.js.map +1 -0
  38. package/build/esm/{html-FNGHE355.js → html-4RLNYFM4.js} +3 -3
  39. package/build/esm/{html-FNGHE355.js.map → html-4RLNYFM4.js.map} +1 -1
  40. package/build/esm/index.js +18 -18
  41. package/build/esm/index.js.map +1 -1
  42. package/build/esm/loginFlow-ETZCNKG3.js +4 -0
  43. package/build/esm/{loginFlow-ESPJDVBX.js.map → loginFlow-ETZCNKG3.js.map} +1 -1
  44. package/build/esm/{markdown-HUHOYR5Q.js → markdown-MRACSGE5.js} +3 -3
  45. package/build/esm/{markdown-HUHOYR5Q.js.map → markdown-MRACSGE5.js.map} +1 -1
  46. package/build/esm/{meriyah-WP7UQXC7.js → meriyah-LVMHXIGF.js} +3 -3
  47. package/build/esm/{meriyah-WP7UQXC7.js.map → meriyah-LVMHXIGF.js.map} +1 -1
  48. package/build/esm/{postcss-JMNG34CL.js → postcss-A2ITI5N4.js} +3 -3
  49. package/build/esm/{postcss-JMNG34CL.js.map → postcss-A2ITI5N4.js.map} +1 -1
  50. package/build/esm/{siteDeployCommand-INEVISOC.js → siteDeployCommand-VTJETG7D.js} +11 -11
  51. package/build/esm/{siteDeployCommand-INEVISOC.js.map → siteDeployCommand-VTJETG7D.js.map} +1 -1
  52. package/build/esm/{typescript-A4QI3FB6.js → typescript-BMNHHGAA.js} +3 -3
  53. package/build/esm/{typescript-A4QI3FB6.js.map → typescript-BMNHHGAA.js.map} +1 -1
  54. package/build/esm/{versionDeleteCommand-T2O4AH4O.js → versionDeleteCommand-C2NJ7NNV.js} +9 -8
  55. package/build/esm/versionDeleteCommand-C2NJ7NNV.js.map +1 -0
  56. package/build/esm/{versionDeleteCommand-Q57RWNMQ.js → versionDeleteCommand-F7MX45CX.js} +9 -8
  57. package/build/esm/versionDeleteCommand-F7MX45CX.js.map +1 -0
  58. package/build/esm/{versionGetCommand-UIJJI2JK.js → versionGetCommand-JSHWULCF.js} +6 -6
  59. package/build/esm/{versionGetCommand-UIJJI2JK.js.map → versionGetCommand-JSHWULCF.js.map} +1 -1
  60. package/build/esm/{versionInfoCommand-JYX3CRBA.js → versionInfoCommand-3KF77Y3S.js} +6 -6
  61. package/build/esm/{versionInfoCommand-JYX3CRBA.js.map → versionInfoCommand-3KF77Y3S.js.map} +1 -1
  62. package/build/esm/{versionListCommand-LHUY6IPF.js → versionListCommand-MZ3XGMIL.js} +6 -6
  63. package/build/esm/{versionListCommand-LHUY6IPF.js.map → versionListCommand-MZ3XGMIL.js.map} +1 -1
  64. package/build/esm/{versionListCommand-JTBJNYVS.js → versionListCommand-SXZJFJMM.js} +6 -6
  65. package/build/esm/{versionListCommand-JTBJNYVS.js.map → versionListCommand-SXZJFJMM.js.map} +1 -1
  66. package/build/esm/{versionSetCommand-ZKC6CY47.js → versionSetCommand-KUN4UZH2.js} +6 -6
  67. package/build/esm/{versionSetCommand-ZKC6CY47.js.map → versionSetCommand-KUN4UZH2.js.map} +1 -1
  68. package/build/esm/{versionUnsetCommand-KWWKPCIP.js → versionUnsetCommand-YNPZWJ6M.js} +9 -8
  69. package/build/esm/versionUnsetCommand-YNPZWJ6M.js.map +1 -0
  70. package/build/esm/{widgetSetDeployCommand-IUBT5IQQ.js → widgetSetDeployCommand-B7KZ7V2W.js} +10 -10
  71. package/build/esm/{widgetSetDeployCommand-IUBT5IQQ.js.map → widgetSetDeployCommand-B7KZ7V2W.js.map} +1 -1
  72. package/build/esm/{yaml-IT3UOTAK.js → yaml-XQ236J4T.js} +3 -3
  73. package/build/esm/{yaml-IT3UOTAK.js.map → yaml-XQ236J4T.js.map} +1 -1
  74. package/build/types/consola/handlePromptCancel.d.ts.map +1 -1
  75. package/build/types/net/createFetch.d.mts.map +1 -1
  76. package/package.json +10 -10
  77. package/build/esm/chunk-HCWMXOMI.js.map +0 -1
  78. package/build/esm/chunk-IT5TCA23.js.map +0 -1
  79. package/build/esm/chunk-PXU2ECCD.js.map +0 -1
  80. package/build/esm/find-up-QYNPYSRQ.js +0 -4
  81. package/build/esm/handleGenerate-VS7LGEFI.js.map +0 -1
  82. package/build/esm/loginFlow-ESPJDVBX.js +0 -4
  83. package/build/esm/versionDeleteCommand-Q57RWNMQ.js.map +0 -1
  84. package/build/esm/versionDeleteCommand-T2O4AH4O.js.map +0 -1
  85. package/build/esm/versionUnsetCommand-KWWKPCIP.js.map +0 -1
@@ -1,10 +1,11 @@
1
- import { createFetchHeaderMutator, createRetryingFetch, createFetchOrThrow, PalantirApiError } from './chunk-PXU2ECCD.js';
2
- import { YargsCheckError, ExitProcessError } from './chunk-SAOPV5FF.js';
3
- import { findUp } from './chunk-LR3YBME3.js';
4
- import { invokeLoginFlow } from './chunk-KHVWTBWA.js';
5
- import { __commonJS, init_esm_shims, __export, __toESM } from './chunk-DMUWBIYY.js';
6
- import * as fs8 from 'fs';
7
- import fs8__default, { realpathSync, statSync, Stats } from 'fs';
1
+ import { createFetchHeaderMutator, createRetryingFetch, createFetchOrThrow, PalantirApiError } from './chunk-P5HXJTVE.js';
2
+ import { YargsCheckError, ExitProcessError } from './chunk-2U36M44D.js';
3
+ import { findUp } from './chunk-KJFA7LBI.js';
4
+ import { invokeLoginFlow } from './chunk-M2BWWO6L.js';
5
+ import { __commonJS, init_esm_shims, __export, __toESM } from './chunk-VHOQB2JW.js';
6
+ import * as fs8 from 'node:fs';
7
+ import * as path19 from 'node:path';
8
+ import path19__default from 'node:path';
8
9
  import * as path9 from 'path';
9
10
  import path9__default, { dirname } from 'path';
10
11
  import { createRequire, builtinModules } from 'module';
@@ -14,9 +15,11 @@ import os from 'os';
14
15
  import tty from 'tty';
15
16
  import fs from 'fs/promises';
16
17
  import assert2 from 'assert';
18
+ import fs6, { realpathSync, statSync, Stats } from 'fs';
17
19
  import v8 from 'v8';
18
20
  import { format, inspect } from 'util';
19
21
  import consola$1, { consola } from 'consola';
22
+ import { fileURLToPath as fileURLToPath$1 } from 'node:url';
20
23
 
21
24
  // ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
22
25
  var require_fast_deep_equal = __commonJS({
@@ -54,10 +57,10 @@ var require_fast_deep_equal = __commonJS({
54
57
  // ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
55
58
  init_esm_shims();
56
59
 
57
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/index.js
60
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/index.js
58
61
  init_esm_shims();
59
62
 
60
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
63
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
61
64
  init_esm_shims();
62
65
 
63
66
  // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.3.0/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
@@ -168,34 +171,34 @@ function parseUrl(baseUrl, endpointPath) {
168
171
  return new URL(`api${endpointPath}`, baseUrl);
169
172
  }
170
173
 
171
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
174
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
172
175
  init_esm_shims();
173
176
 
174
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
177
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
175
178
  init_esm_shims();
176
179
 
177
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
180
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
178
181
  init_esm_shims();
179
182
 
180
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
183
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
181
184
  init_esm_shims();
182
185
 
183
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
186
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
184
187
  init_esm_shims();
185
188
 
186
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
189
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
187
190
  init_esm_shims();
188
191
 
189
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
192
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
190
193
  init_esm_shims();
191
194
 
192
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
195
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
193
196
  init_esm_shims();
194
197
 
195
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
198
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
196
199
  init_esm_shims();
197
200
 
198
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
201
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
199
202
  var OntologyV2_exports = {};
200
203
  __export(OntologyV2_exports, {
201
204
  get: () => get,
@@ -216,16 +219,16 @@ function getFullMetadata($ctx, ...args) {
216
219
  return foundryPlatformFetch($ctx, _getFullMetadata, ...args);
217
220
  }
218
221
 
219
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
222
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
220
223
  init_esm_shims();
221
224
 
222
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
225
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
223
226
  init_esm_shims();
224
227
 
225
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
228
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
226
229
  init_esm_shims();
227
230
 
228
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.13.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
231
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.16.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
229
232
  init_esm_shims();
230
233
 
231
234
  // ../generator/build/esm/index.js
@@ -265,7 +268,7 @@ var AbstractImportable = class {
265
268
  }
266
269
  getImportPathRelTo = (filePath) => {
267
270
  if (this.importPath.startsWith(".")) {
268
- const result = path9.relative(path9.dirname(filePath), this.importPath).split(path9.sep).join("/");
271
+ const result = path19.relative(path19.dirname(filePath), this.importPath).split(path19.sep).join("/");
269
272
  if (result.startsWith(".")) {
270
273
  return result;
271
274
  } else {
@@ -432,8 +435,8 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(interfaceType, v2,
432
435
  apiName: interfaceType.apiName,
433
436
  displayName: interfaceType.displayName,
434
437
  description: interfaceType.description,
435
- implements: interfaceType.extendsInterfaces,
436
- properties: Object.fromEntries(Object.entries(interfaceType.properties).map(([key2, value]) => {
438
+ implements: interfaceType.allExtendsInterfaces ?? interfaceType.extendsInterfaces,
439
+ properties: Object.fromEntries(Object.entries(interfaceType.allProperties ?? interfaceType.properties).map(([key2, value]) => {
437
440
  return [key2, wirePropertyV2ToSdkPropertyDefinition(value, true, log)];
438
441
  }).filter(([key2, value]) => value != null)),
439
442
  links: {},
@@ -727,6 +730,20 @@ function wireQueryDataTypeToQueryDataTypeDefinition(input) {
727
730
  threeDimensionalAggregation: get3DQueryAggregationProps(input),
728
731
  nullable: false
729
732
  };
733
+ case "entrySet":
734
+ const keyType = wireQueryDataTypeToQueryDataTypeDefinition(input.keyType);
735
+ if (!validMapKeyTypes.includes(keyType.type)) {
736
+ throw new Error("Map types with a key type of " + keyType.type + " are not supported" + validMapKeyTypes.toString());
737
+ }
738
+ if (keyType.multiplicity === true) {
739
+ throw new Error("Map types cannot have keys as arrays");
740
+ }
741
+ return {
742
+ type: "map",
743
+ nullable: false,
744
+ keyType,
745
+ valueType: wireQueryDataTypeToQueryDataTypeDefinition(input.valueType)
746
+ };
730
747
  case "null":
731
748
  case "unsupported":
732
749
  throw new Error(`Unable to process query because the server indicated an unsupported QueryDataType.type: ${input.type}. Please check that your query is using supported types.`);
@@ -771,6 +788,7 @@ function get3DQueryAggregationProps(input) {
771
788
  function guardInvalidKeyTypes(key2) {
772
789
  return key2.type === "string" || key2.type === "boolean";
773
790
  }
791
+ var validMapKeyTypes = ["string", "object", "double", "float", "integer", "long", "date", "timestamp", "byte", "datetime", "decimal", "marking", "short", "objectType"];
774
792
 
775
793
  // ../generator-converters/build/esm/wireQueryTypeV2ToSdkQueryMetadata.js
776
794
  init_esm_shims();
@@ -17484,7 +17502,7 @@ function read2(jsonPath, { base, specifier }) {
17484
17502
  }
17485
17503
  let string;
17486
17504
  try {
17487
- string = fs8__default.readFileSync(path9__default.toNamespacedPath(jsonPath), "utf8");
17505
+ string = fs6.readFileSync(path9__default.toNamespacedPath(jsonPath), "utf8");
17488
17506
  } catch (error) {
17489
17507
  const exception2 = (
17490
17508
  /** @type {ErrnoException} */
@@ -18393,7 +18411,7 @@ var import_n_readlines = __toESM2(require_readlines());
18393
18411
  function getInterpreter(file) {
18394
18412
  let fd;
18395
18413
  try {
18396
- fd = fs8__default.openSync(file, "r");
18414
+ fd = fs6.openSync(file, "r");
18397
18415
  } catch {
18398
18416
  return;
18399
18417
  }
@@ -18410,7 +18428,7 @@ function getInterpreter(file) {
18410
18428
  }
18411
18429
  } finally {
18412
18430
  try {
18413
- fs8__default.closeSync(fd);
18431
+ fs6.closeSync(fd);
18414
18432
  } catch {
18415
18433
  }
18416
18434
  }
@@ -21078,7 +21096,7 @@ function createParsersAndPrinters(modules) {
21078
21096
  }
21079
21097
  var options7 = { ...options_default, ...options_default2, ...options_default3, ...options_default4, ...options_default5, ...options_default6 };
21080
21098
  var languages = [...languages_evaluate_default, ...languages_evaluate_default2, ...languages_evaluate_default3, ...languages_evaluate_default4, ...languages_evaluate_default5, ...languages_evaluate_default6, ...languages_evaluate_default7, ...languages_evaluate_default8];
21081
- var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-LQZJTRX7.js'), parsers: ["acorn", "espree"] }, { importPlugin: () => import('./angular-VWUX447C.js'), parsers: ["__ng_action", "__ng_binding", "__ng_interpolation", "__ng_directive"] }, { importPlugin: () => import('./babel-7BWEVLBS.js'), parsers: ["babel", "babel-flow", "babel-ts", "__js_expression", "__ts_expression", "__vue_expression", "__vue_ts_expression", "__vue_event_binding", "__vue_ts_event_binding", "__babel_estree", "json", "json5", "jsonc", "json-stringify"] }, { importPlugin: () => import('./estree-PI6JMQNR.js'), printers: ["estree", "estree-json"] }, { importPlugin: () => import('./flow-AP4DEOL5.js'), parsers: ["flow"] }, { importPlugin: () => import('./glimmer-LM2ZFC5U.js'), parsers: ["glimmer"], printers: ["glimmer"] }, { importPlugin: () => import('./graphql-U5CPDQKQ.js'), parsers: ["graphql"], printers: ["graphql"] }, { importPlugin: () => import('./html-FNGHE355.js'), parsers: ["html", "angular", "vue", "lwc"], printers: ["html"] }, { importPlugin: () => import('./markdown-HUHOYR5Q.js'), parsers: ["markdown", "mdx", "remark"], printers: ["mdast"] }, { importPlugin: () => import('./meriyah-WP7UQXC7.js'), parsers: ["meriyah"] }, { importPlugin: () => import('./postcss-JMNG34CL.js'), parsers: ["css", "less", "scss"], printers: ["postcss"] }, { importPlugin: () => import('./typescript-A4QI3FB6.js'), parsers: ["typescript"] }, { importPlugin: () => import('./yaml-IT3UOTAK.js'), parsers: ["yaml"], printers: ["yaml"] }]);
21099
+ var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-RXMSUCXL.js'), parsers: ["acorn", "espree"] }, { importPlugin: () => import('./angular-ZXAN5BMN.js'), parsers: ["__ng_action", "__ng_binding", "__ng_interpolation", "__ng_directive"] }, { importPlugin: () => import('./babel-TI7T67T2.js'), parsers: ["babel", "babel-flow", "babel-ts", "__js_expression", "__ts_expression", "__vue_expression", "__vue_ts_expression", "__vue_event_binding", "__vue_ts_event_binding", "__babel_estree", "json", "json5", "jsonc", "json-stringify"] }, { importPlugin: () => import('./estree-CSIG7D6Y.js'), printers: ["estree", "estree-json"] }, { importPlugin: () => import('./flow-NUNWZLRW.js'), parsers: ["flow"] }, { importPlugin: () => import('./glimmer-GYUSOBQY.js'), parsers: ["glimmer"], printers: ["glimmer"] }, { importPlugin: () => import('./graphql-OALHBC5M.js'), parsers: ["graphql"], printers: ["graphql"] }, { importPlugin: () => import('./html-4RLNYFM4.js'), parsers: ["html", "angular", "vue", "lwc"], printers: ["html"] }, { importPlugin: () => import('./markdown-MRACSGE5.js'), parsers: ["markdown", "mdx", "remark"], printers: ["mdast"] }, { importPlugin: () => import('./meriyah-LVMHXIGF.js'), parsers: ["meriyah"] }, { importPlugin: () => import('./postcss-A2ITI5N4.js'), parsers: ["css", "less", "scss"], printers: ["postcss"] }, { importPlugin: () => import('./typescript-BMNHHGAA.js'), parsers: ["typescript"] }, { importPlugin: () => import('./yaml-XQ236J4T.js'), parsers: ["yaml"], printers: ["yaml"] }]);
21082
21100
  function loadBuiltinPlugins() {
21083
21101
  return [builtin_plugins_proxy_exports];
21084
21102
  }
@@ -21325,7 +21343,7 @@ function formatTs(contents) {
21325
21343
  }
21326
21344
 
21327
21345
  // ../generator/build/esm/v2.0/generateMetadata.js
21328
- var ExpectedOsdkVersion = "2.1.1";
21346
+ var ExpectedOsdkVersion = "2.2.0";
21329
21347
  async function generateOntologyMetadataFile({
21330
21348
  fs: fs9,
21331
21349
  outDir,
@@ -21408,12 +21426,12 @@ async function generatePerActionDataFiles({
21408
21426
  ontology: enhancedOntology,
21409
21427
  forInternalUse = false
21410
21428
  }) {
21411
- const outDir = path9__default.join(rootOutDir, "ontology", "actions");
21429
+ const outDir = path19__default.join(rootOutDir, "ontology", "actions");
21412
21430
  await fs9.mkdir(outDir, {
21413
21431
  recursive: true
21414
21432
  });
21415
21433
  await Promise.all(Object.values(enhancedOntology.actionTypes).map(async (action) => {
21416
- const currentFilePath = path9__default.join("ontology", "actions", `${action.shortApiName}.ts`);
21434
+ const currentFilePath = path19__default.join("ontology", "actions", `${action.shortApiName}.ts`);
21417
21435
  const uniqueApiNamesArray = extractReferencedObjectsFromAction(action.raw);
21418
21436
  const uniqueApiNames = new Set(uniqueApiNamesArray);
21419
21437
  stringUnionFrom([...uniqueApiNames]);
@@ -21499,7 +21517,7 @@ async function generatePerActionDataFiles({
21499
21517
  }
21500
21518
  }
21501
21519
  const imports = getObjectImports(referencedObjectDefs, undefined, currentFilePath, true);
21502
- await fs9.writeFile(path9__default.join(rootOutDir, currentFilePath), await formatTs(`
21520
+ await fs9.writeFile(path19__default.join(rootOutDir, currentFilePath), await formatTs(`
21503
21521
  import type {
21504
21522
  ActionDefinition,
21505
21523
  ActionMetadata,
@@ -21587,8 +21605,8 @@ async function generatePerActionDataFiles({
21587
21605
  }()}
21588
21606
  `));
21589
21607
  }));
21590
- const indexFileRelPath = path9__default.join("ontology", "actions.ts");
21591
- await fs9.writeFile(path9__default.join(rootOutDir, indexFileRelPath), await formatTs(`
21608
+ const indexFileRelPath = path19__default.join("ontology", "actions.ts");
21609
+ await fs9.writeFile(path19__default.join(rootOutDir, indexFileRelPath), await formatTs(`
21592
21610
  ${Object.values(enhancedOntology.actionTypes).map((action) => {
21593
21611
  const exportConstLine = `export {${action.shortApiName} } from "${action.getImportPathRelTo(indexFileRelPath)}";`;
21594
21612
  return exportConstLine;
@@ -21995,13 +22013,13 @@ async function generatePerInterfaceDataFiles({
21995
22013
  importExt,
21996
22014
  forInternalUse
21997
22015
  }) {
21998
- const interfacesDir = path9__default.join(outDir, "ontology", "interfaces");
22016
+ const interfacesDir = path19__default.join(outDir, "ontology", "interfaces");
21999
22017
  await fs9.mkdir(interfacesDir, {
22000
22018
  recursive: true
22001
22019
  });
22002
22020
  for (const obj of Object.values(ontology.interfaceTypes)) {
22003
22021
  if (obj instanceof ForeignType) continue;
22004
- await fs9.writeFile(path9__default.join(interfacesDir, `${obj.shortApiName}.ts`), await formatTs(`
22022
+ await fs9.writeFile(path19__default.join(interfacesDir, `${obj.shortApiName}.ts`), await formatTs(`
22005
22023
  import type { PropertyDef as $PropertyDef } from "${forInternalUse ? "@osdk/api" : "@osdk/client"}";
22006
22024
  import { $osdkMetadata } from "../../OntologyMetadata${importExt}";
22007
22025
  ${__UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(obj, ontology, true, forInternalUse)}
@@ -22022,13 +22040,13 @@ async function generatePerObjectDataFiles(ctx) {
22022
22040
  ontology,
22023
22041
  importExt
22024
22042
  } = ctx;
22025
- await fs9.mkdir(path9__default.join(outDir, "ontology", "objects"), {
22043
+ await fs9.mkdir(path19__default.join(outDir, "ontology", "objects"), {
22026
22044
  recursive: true
22027
22045
  });
22028
22046
  for (const obj of Object.values(ontology.objectTypes)) {
22029
22047
  if (obj instanceof ForeignType) continue;
22030
- const relPath = path9__default.join(".", "ontology", `objects`, `${obj.shortApiName}.ts`);
22031
- const outFilePath = path9__default.join(outDir, relPath);
22048
+ const relPath = path19__default.join(".", "ontology", `objects`, `${obj.shortApiName}.ts`);
22049
+ const outFilePath = path19__default.join(outDir, relPath);
22032
22050
  await fs9.writeFile(outFilePath, await formatTs(`
22033
22051
  import type { PropertyDef as $PropertyDef } from "${ctx.forInternalUse ? "@osdk/api" : "@osdk/client"}";
22034
22052
  import { $osdkMetadata } from "../../OntologyMetadata${importExt}";
@@ -22036,7 +22054,7 @@ async function generatePerObjectDataFiles(ctx) {
22036
22054
  ${wireObjectTypeV2ToSdkObjectConstV2(obj.raw, ctx, relPath)}
22037
22055
  `));
22038
22056
  }
22039
- await fs9.writeFile(path9__default.join(outDir, "ontology", "objects.ts"), await formatTs(`
22057
+ await fs9.writeFile(path19__default.join(outDir, "ontology", "objects.ts"), await formatTs(`
22040
22058
  ${Object.values(ctx.ontology.objectTypes).filter((o) => o instanceof EnhancedObjectType).map((objType) => `export {${objType.shortApiName}} from "./objects/${objType.shortApiName}${importExt}";`).join("\n")}
22041
22059
  ${Object.keys(ontology.objectTypes).length === 0 ? "export {};" : ""}
22042
22060
  `));
@@ -22072,6 +22090,10 @@ function getObjectTypesFromQueryDataType(dataType, types) {
22072
22090
  getObjectTypesFromQueryDataType(type2, types);
22073
22091
  }
22074
22092
  return;
22093
+ case "entrySet":
22094
+ getObjectTypesFromQueryDataType(dataType.keyType, types);
22095
+ getObjectTypesFromQueryDataType(dataType.valueType, types);
22096
+ return;
22075
22097
  case "attachment":
22076
22098
  case "boolean":
22077
22099
  case "date":
@@ -22084,6 +22106,7 @@ function getObjectTypesFromQueryDataType(dataType, types) {
22084
22106
  case "threeDimensionalAggregation":
22085
22107
  case "timestamp":
22086
22108
  case "twoDimensionalAggregation":
22109
+ case "entrySet":
22087
22110
  case "unsupported":
22088
22111
  return;
22089
22112
  default:
@@ -22111,8 +22134,8 @@ async function generatePerQueryDataFilesV2({
22111
22134
  importExt = "",
22112
22135
  forInternalUse = false
22113
22136
  }) {
22114
- const relOutDir = path9__default.join(".", "ontology", "queries");
22115
- const outDir = path9__default.join(rootOutDir, "ontology", "queries");
22137
+ const relOutDir = path19__default.join(".", "ontology", "queries");
22138
+ const outDir = path19__default.join(rootOutDir, "ontology", "queries");
22116
22139
  await fs9.mkdir(outDir, {
22117
22140
  recursive: true
22118
22141
  });
@@ -22125,15 +22148,15 @@ async function generatePerQueryDataFilesV2({
22125
22148
  `));
22126
22149
  }
22127
22150
  async function generateV2QueryFile(fs9, outDir, relOutDir, query, importExt, ontology, forInternalUse) {
22128
- const relFilePath = path9__default.join(relOutDir, `${query.shortApiName}.ts`);
22151
+ const relFilePath = path19__default.join(relOutDir, `${query.shortApiName}.ts`);
22129
22152
  const objectTypes = getObjectTypeApiNamesFromQuery(query);
22130
22153
  const objectTypeObjects = new Set(objectTypes.map((o) => ontology.requireObjectType(o)));
22131
22154
  const importObjects = getObjectImports(objectTypeObjects, "", relFilePath, true);
22132
22155
  const baseProps = deleteUndefineds(wireQueryTypeV2ToSdkQueryDefinitionNoParams(query.raw));
22133
22156
  const outputBase = deleteUndefineds(wireQueryDataTypeToQueryDataTypeDefinition(query.output));
22134
22157
  objectTypes.length > 0 ? objectTypes.map((apiNameObj) => `"${apiNameObj}"`).join("|") : "never";
22135
- await fs9.writeFile(path9__default.join(outDir, `${query.shortApiName}.ts`), await formatTs(`
22136
- import type { QueryDefinition , QueryParam, QueryResult, VersionBound} from "${forInternalUse ? "@osdk/api" : "@osdk/client"}";
22158
+ await fs9.writeFile(path19__default.join(outDir, `${query.shortApiName}.ts`), await formatTs(`
22159
+ import type { ObjectSpecifier, QueryDefinition, QueryParam, QueryResult, VersionBound} from "${forInternalUse ? "@osdk/api" : "@osdk/client"}";
22137
22160
  import type { $ExpectedClientVersion } from "../../OntologyMetadata${importExt}";
22138
22161
  import { $osdkMetadata} from "../../OntologyMetadata${importExt}";
22139
22162
  ${importObjects}
@@ -22237,7 +22260,7 @@ function queryParamJsDoc(param, {
22237
22260
  `;
22238
22261
  return ret;
22239
22262
  }
22240
- function getQueryParamType(enhancedOntology, input, type2) {
22263
+ function getQueryParamType(enhancedOntology, input, type2, isMapKey = false) {
22241
22264
  let inner = `unknown /* ${input.type} */`;
22242
22265
  switch (input.type) {
22243
22266
  case "date":
@@ -22271,6 +22294,10 @@ function getQueryParamType(enhancedOntology, input, type2) {
22271
22294
  "${input.threeDimensionalAggregation.valueType.valueType}">`;
22272
22295
  break;
22273
22296
  case "object":
22297
+ if (isMapKey) {
22298
+ inner = `ObjectSpecifier<${enhancedOntology.requireObjectType(input.object).getImportedDefinitionIdentifier(true)}>`;
22299
+ break;
22300
+ }
22274
22301
  inner = `Query${type2}.ObjectType<${enhancedOntology.requireObjectType(input.object).getImportedDefinitionIdentifier(true)}>`;
22275
22302
  break;
22276
22303
  case "objectSet":
@@ -22282,6 +22309,8 @@ function getQueryParamType(enhancedOntology, input, type2) {
22282
22309
  case "union":
22283
22310
  inner = input.union.map((u) => getQueryParamType(enhancedOntology, u, type2)).join(" | ");
22284
22311
  break;
22312
+ case "map":
22313
+ inner = `Record<${getQueryParamType(enhancedOntology, input.keyType, type2, true)}, ${getQueryParamType(enhancedOntology, input.valueType, type2)}>`;
22285
22314
  }
22286
22315
  if (input.multiplicity && type2 === "Param") {
22287
22316
  return `ReadonlyArray<${inner}>`;
@@ -22300,7 +22329,7 @@ async function generateRootIndexTsFile({
22300
22329
  ontologyApiNamespace,
22301
22330
  ontology
22302
22331
  }) {
22303
- await fs9.writeFile(path9__default.join(outDir, "index.ts"), await formatTs(`export {${helper(ontology.actionTypes)}} from "./ontology/actions${importExt}";
22332
+ await fs9.writeFile(path19__default.join(outDir, "index.ts"), await formatTs(`export {${helper(ontology.actionTypes)}} from "./ontology/actions${importExt}";
22304
22333
  export * as $Actions from "./ontology/actions${importExt}";
22305
22334
  export {${helper(ontology.interfaceTypes)}} from "./ontology/interfaces${importExt}";
22306
22335
  export * as $Interfaces from "./ontology/interfaces${importExt}";
@@ -22354,24 +22383,24 @@ async function generateClientSdkPackage(packageName, packageVersion, sdkVersion,
22354
22383
  throw new Error("This generator version does not support generating v1 sdks");
22355
22384
  }
22356
22385
  for (const packageType of ["module", "commonjs"]) {
22357
- const outDir = path9.join(baseOutDir, "dist", packageType);
22386
+ const outDir = path19.join(baseOutDir, "dist", packageType);
22358
22387
  await generateClientSdkVersionTwoPointZero(ontology, `typescript-sdk/${packageVersion} osdk-cli/${cliVersion}`, minimalFs, outDir, packageType, externalObjects, externalInterfaces);
22359
22388
  await fs8.promises.mkdir(outDir, {
22360
22389
  recursive: true
22361
22390
  });
22362
- await writeJson(minimalFs, path9.join(outDir, "package.json"), {
22391
+ await writeJson(minimalFs, path19.join(outDir, "package.json"), {
22363
22392
  type: packageType
22364
22393
  });
22365
- await writeJson(minimalFs, path9.join(outDir, `tsconfig.json`), {
22394
+ await writeJson(minimalFs, path19.join(outDir, `tsconfig.json`), {
22366
22395
  compilerOptions: getTsCompilerOptions(packageType)
22367
22396
  });
22368
22397
  }
22369
- await writeJson(minimalFs, path9.join(baseOutDir, "package.json"), getPackageJsonContents(packageName, packageVersion, dependencyVersions));
22370
- await minimalFs.mkdir(path9.join(baseOutDir, "ontology"), {
22398
+ await writeJson(minimalFs, path19.join(baseOutDir, "package.json"), getPackageJsonContents(packageName, packageVersion, dependencyVersions));
22399
+ await minimalFs.mkdir(path19.join(baseOutDir, "ontology"), {
22371
22400
  recursive: true
22372
22401
  });
22373
- await minimalFs.writeFile(path9.join(baseOutDir, "ontology", "objects.js"), `module.exports = require("../../dist/module/ontology/objects")`);
22374
- await minimalFs.writeFile(path9.join(baseOutDir, "ontology", "objects.d.ts"), `export * from "../dist/module/ontology/objects"`);
22402
+ await minimalFs.writeFile(path19.join(baseOutDir, "ontology", "objects.js"), `module.exports = require("../../dist/module/ontology/objects")`);
22403
+ await minimalFs.writeFile(path19.join(baseOutDir, "ontology", "objects.d.ts"), `export * from "../dist/module/ontology/objects"`);
22375
22404
  }
22376
22405
  function getTsCompilerOptions(packageType) {
22377
22406
  const commonTsconfig = {
@@ -22485,7 +22514,7 @@ function createSharedClientContext(baseUrl, tokenProvider, userAgent, fetchFn =
22485
22514
 
22486
22515
  // ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
22487
22516
  var import_fast_deep_equal2 = __toESM(require_fast_deep_equal(), 1);
22488
- var USER_AGENT = `osdk-cli.cmd.typescript/${"0.25.1"}`;
22517
+ var USER_AGENT = `osdk-cli.cmd.typescript/${"0.26.0-beta.10"}`;
22489
22518
  async function handleGenerate(args) {
22490
22519
  let success = false;
22491
22520
  if (args.ontologyPath) {
@@ -22559,7 +22588,7 @@ async function generateFromStack(args) {
22559
22588
  return {
22560
22589
  ...x,
22561
22590
  extendsInterfaces: [...x.extendsInterfaces].sort(),
22562
- properties: sortKeys2(x.properties)
22591
+ properties: sortKeys2(x.allProperties ?? x.properties)
22563
22592
  };
22564
22593
  });
22565
22594
  ontology.queryTypes = sortKeys2(ontology.queryTypes, (x) => {
@@ -22621,7 +22650,7 @@ async function generateClientSdk(ontology, args) {
22621
22650
  }
22622
22651
  return true;
22623
22652
  }
22624
- await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.25.1", args.externalObjects, args.externalInterfaces);
22653
+ await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.26.0-beta.10", args.externalObjects, args.externalInterfaces);
22625
22654
  return true;
22626
22655
  } catch (e) {
22627
22656
  consola.error("OSDK generation failed", e.message, e.stack);
@@ -22648,15 +22677,15 @@ async function getDependencyVersions() {
22648
22677
  typescriptVersion,
22649
22678
  tslibVersion,
22650
22679
  areTheTypesWrongVersion,
22651
- osdkApiVersion: `^${"2.1.1"}`,
22652
- osdkClientVersion: `^${"2.1.1"}`,
22680
+ osdkApiVersion: `^${"2.2.0-beta.10"}`,
22681
+ osdkClientVersion: `^${"2.2.0-beta.10"}`,
22653
22682
  osdkLegacyClientVersion
22654
22683
  };
22655
22684
  }
22656
22685
  var cachedOurPackageJsonPath;
22657
22686
  async function getOurPackageJsonPath() {
22658
22687
  if (cachedOurPackageJsonPath) return cachedOurPackageJsonPath;
22659
- const __dir = path9.dirname(fileURLToPath(import.meta.url));
22688
+ const __dir = path19.dirname(fileURLToPath$1(import.meta.url));
22660
22689
  const ourPackageJsonPath = await findUp("package.json", {
22661
22690
  cwd: __dir
22662
22691
  });
@@ -22688,5 +22717,5 @@ function createNormalFs() {
22688
22717
  }
22689
22718
 
22690
22719
  export { getDependencyVersions, handleGenerate, updateVersionsIfTheyExist };
22691
- //# sourceMappingURL=handleGenerate-VS7LGEFI.js.map
22692
- //# sourceMappingURL=handleGenerate-VS7LGEFI.js.map
22720
+ //# sourceMappingURL=handleGenerate-UQQTMEXV.js.map
22721
+ //# sourceMappingURL=handleGenerate-UQQTMEXV.js.map