@osdk/cli 0.31.0-beta.2 → 0.31.0-rc.3

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 (77) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/build/esm/{acorn-YSEQ53CG.js → acorn-2YJLPGID.js} +3 -3
  3. package/build/esm/{acorn-YSEQ53CG.js.map → acorn-2YJLPGID.js.map} +1 -1
  4. package/build/esm/{angular-7FD4VEB2.js → angular-2UQQBORC.js} +3 -3
  5. package/build/esm/{angular-7FD4VEB2.js.map → angular-2UQQBORC.js.map} +1 -1
  6. package/build/esm/{babel-4O5ROH7P.js → babel-BV4W3BOJ.js} +3 -3
  7. package/build/esm/{babel-4O5ROH7P.js.map → babel-BV4W3BOJ.js.map} +1 -1
  8. package/build/esm/{chunk-Z2MJFYY7.js → chunk-4L3JS54F.js} +3 -3
  9. package/build/esm/{chunk-Z2MJFYY7.js.map → chunk-4L3JS54F.js.map} +1 -1
  10. package/build/esm/{chunk-QINZLUQ3.js → chunk-ALV6NI27.js} +3 -3
  11. package/build/esm/{chunk-QINZLUQ3.js.map → chunk-ALV6NI27.js.map} +1 -1
  12. package/build/esm/{chunk-ESVT7U37.js → chunk-BL3NTXLM.js} +3 -3
  13. package/build/esm/{chunk-ESVT7U37.js.map → chunk-BL3NTXLM.js.map} +1 -1
  14. package/build/esm/{chunk-RBJBODXB.js → chunk-CINFOKVJ.js} +3 -3
  15. package/build/esm/{chunk-RBJBODXB.js.map → chunk-CINFOKVJ.js.map} +1 -1
  16. package/build/esm/{chunk-JMZKMGV3.js → chunk-CMWYDM5Q.js} +3 -3
  17. package/build/esm/{chunk-JMZKMGV3.js.map → chunk-CMWYDM5Q.js.map} +1 -1
  18. package/build/esm/{chunk-734SVMAK.js → chunk-TDNRRWOC.js} +3 -3
  19. package/build/esm/{chunk-734SVMAK.js.map → chunk-TDNRRWOC.js.map} +1 -1
  20. package/build/esm/{chunk-S5ZOEHLJ.js → chunk-URWLRRAB.js} +6 -6
  21. package/build/esm/{chunk-S5ZOEHLJ.js.map → chunk-URWLRRAB.js.map} +1 -1
  22. package/build/esm/{chunk-VI2PPUJW.js → chunk-W7U4ETYH.js} +3 -3
  23. package/build/esm/{chunk-VI2PPUJW.js.map → chunk-W7U4ETYH.js.map} +1 -1
  24. package/build/esm/{chunk-PTWXGEFK.js → chunk-XF44FMSL.js} +5 -5
  25. package/build/esm/{chunk-PTWXGEFK.js.map → chunk-XF44FMSL.js.map} +1 -1
  26. package/build/esm/{estree-EM55NQOH.js → estree-PTS7QPRO.js} +3 -3
  27. package/build/esm/{estree-EM55NQOH.js.map → estree-PTS7QPRO.js.map} +1 -1
  28. package/build/esm/find-up-GVGEKQPQ.js +4 -0
  29. package/build/esm/{find-up-4NYOPMEX.js.map → find-up-GVGEKQPQ.js.map} +1 -1
  30. package/build/esm/{flow-Q44IFPPY.js → flow-Y46VD55R.js} +3 -3
  31. package/build/esm/{flow-Q44IFPPY.js.map → flow-Y46VD55R.js.map} +1 -1
  32. package/build/esm/{glimmer-IAOCCN7N.js → glimmer-SE4IEQF6.js} +3 -3
  33. package/build/esm/{glimmer-IAOCCN7N.js.map → glimmer-SE4IEQF6.js.map} +1 -1
  34. package/build/esm/{graphql-FSED3VAI.js → graphql-QF7PMC3R.js} +3 -3
  35. package/build/esm/{graphql-FSED3VAI.js.map → graphql-QF7PMC3R.js.map} +1 -1
  36. package/build/esm/{handleGenerate-WZRH2AEA.js → handleGenerate-U7MX3OA6.js} +80 -50
  37. package/build/esm/handleGenerate-U7MX3OA6.js.map +1 -0
  38. package/build/esm/{html-X5TDJHVJ.js → html-EQKLXLBJ.js} +3 -3
  39. package/build/esm/{html-X5TDJHVJ.js.map → html-EQKLXLBJ.js.map} +1 -1
  40. package/build/esm/index.js +18 -22
  41. package/build/esm/index.js.map +1 -1
  42. package/build/esm/loginFlow-GP5ZJP3D.js +4 -0
  43. package/build/esm/{loginFlow-IXG6OKLA.js.map → loginFlow-GP5ZJP3D.js.map} +1 -1
  44. package/build/esm/{markdown-3BO6WVIC.js → markdown-FZBHQ3B4.js} +3 -3
  45. package/build/esm/{markdown-3BO6WVIC.js.map → markdown-FZBHQ3B4.js.map} +1 -1
  46. package/build/esm/{meriyah-VLP2WI6O.js → meriyah-Q2DK6BAD.js} +3 -3
  47. package/build/esm/{meriyah-VLP2WI6O.js.map → meriyah-Q2DK6BAD.js.map} +1 -1
  48. package/build/esm/{postcss-HMVGVGRU.js → postcss-SR3FYBVU.js} +3 -3
  49. package/build/esm/{postcss-HMVGVGRU.js.map → postcss-SR3FYBVU.js.map} +1 -1
  50. package/build/esm/{siteDeployCommand-I3SPEO3S.js → siteDeployCommand-SZSZLJ7P.js} +8 -8
  51. package/build/esm/{siteDeployCommand-I3SPEO3S.js.map → siteDeployCommand-SZSZLJ7P.js.map} +1 -1
  52. package/build/esm/{typescript-22FVOYI3.js → typescript-DEUJRDXE.js} +3 -3
  53. package/build/esm/{typescript-22FVOYI3.js.map → typescript-DEUJRDXE.js.map} +1 -1
  54. package/build/esm/{versionDeleteCommand-4E2TBJJQ.js → versionDeleteCommand-AEUAB2RI.js} +7 -7
  55. package/build/esm/{versionDeleteCommand-4E2TBJJQ.js.map → versionDeleteCommand-AEUAB2RI.js.map} +1 -1
  56. package/build/esm/{versionDeleteCommand-4X4FYM5L.js → versionDeleteCommand-C742I7YS.js} +7 -7
  57. package/build/esm/{versionDeleteCommand-4X4FYM5L.js.map → versionDeleteCommand-C742I7YS.js.map} +1 -1
  58. package/build/esm/{versionGetCommand-JJYAOKZQ.js → versionGetCommand-ZXJZDSK5.js} +6 -6
  59. package/build/esm/{versionGetCommand-JJYAOKZQ.js.map → versionGetCommand-ZXJZDSK5.js.map} +1 -1
  60. package/build/esm/{versionInfoCommand-D6DYQEHL.js → versionInfoCommand-4HAYTD4P.js} +6 -6
  61. package/build/esm/{versionInfoCommand-D6DYQEHL.js.map → versionInfoCommand-4HAYTD4P.js.map} +1 -1
  62. package/build/esm/{versionListCommand-T4SW5I7I.js → versionListCommand-Q4YDVUP7.js} +6 -6
  63. package/build/esm/{versionListCommand-T4SW5I7I.js.map → versionListCommand-Q4YDVUP7.js.map} +1 -1
  64. package/build/esm/{versionListCommand-XA66WI62.js → versionListCommand-ZIC5L46B.js} +6 -6
  65. package/build/esm/{versionListCommand-XA66WI62.js.map → versionListCommand-ZIC5L46B.js.map} +1 -1
  66. package/build/esm/{versionSetCommand-OMCMNAXY.js → versionSetCommand-E5JXVCYK.js} +6 -6
  67. package/build/esm/{versionSetCommand-OMCMNAXY.js.map → versionSetCommand-E5JXVCYK.js.map} +1 -1
  68. package/build/esm/{versionUnsetCommand-LVYQ6ADH.js → versionUnsetCommand-3JW43ZKJ.js} +7 -7
  69. package/build/esm/{versionUnsetCommand-LVYQ6ADH.js.map → versionUnsetCommand-3JW43ZKJ.js.map} +1 -1
  70. package/build/esm/{widgetSetDeployCommand-J4VTJLVR.js → widgetSetDeployCommand-HQCWTWVF.js} +7 -7
  71. package/build/esm/{widgetSetDeployCommand-J4VTJLVR.js.map → widgetSetDeployCommand-HQCWTWVF.js.map} +1 -1
  72. package/build/esm/{yaml-AXQPPS5Y.js → yaml-KQJSRZTS.js} +3 -3
  73. package/build/esm/{yaml-AXQPPS5Y.js.map → yaml-KQJSRZTS.js.map} +1 -1
  74. package/package.json +8 -8
  75. package/build/esm/find-up-4NYOPMEX.js +0 -4
  76. package/build/esm/handleGenerate-WZRH2AEA.js.map +0 -1
  77. package/build/esm/loginFlow-IXG6OKLA.js +0 -4
@@ -1,8 +1,8 @@
1
- import { createFetchHeaderMutator, createRetryingFetch, createFetchOrThrow, PalantirApiError } from './chunk-VI2PPUJW.js';
2
- import { YargsCheckError, ExitProcessError } from './chunk-ESVT7U37.js';
3
- import { findUp } from './chunk-JMZKMGV3.js';
4
- import { invokeLoginFlow } from './chunk-QINZLUQ3.js';
5
- import { __commonJS, init_esm_shims, __export, __toESM } from './chunk-RBJBODXB.js';
1
+ import { createFetchHeaderMutator, createRetryingFetch, createFetchOrThrow, PalantirApiError } from './chunk-W7U4ETYH.js';
2
+ import { YargsCheckError, ExitProcessError } from './chunk-BL3NTXLM.js';
3
+ import { findUp } from './chunk-CMWYDM5Q.js';
4
+ import { invokeLoginFlow } from './chunk-ALV6NI27.js';
5
+ import { __commonJS, init_esm_shims, __export, __toESM } from './chunk-CINFOKVJ.js';
6
6
  import * as fs5 from 'fs';
7
7
  import fs5__default, { realpathSync, statSync } from 'fs';
8
8
  import * as path10 from 'path';
@@ -54,10 +54,10 @@ var require_fast_deep_equal = __commonJS({
54
54
  // ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
55
55
  init_esm_shims();
56
56
 
57
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/index.js
57
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/index.js
58
58
  init_esm_shims();
59
59
 
60
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
60
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
61
61
  init_esm_shims();
62
62
 
63
63
  // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.5.0/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
@@ -166,43 +166,43 @@ function parseUrl(baseUrl, endpointPath) {
166
166
  return new URL(`api${endpointPath}`, baseUrl);
167
167
  }
168
168
 
169
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeFullMetadata.js
169
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeFullMetadata.js
170
170
  init_esm_shims();
171
171
 
172
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
172
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
173
173
  init_esm_shims();
174
174
 
175
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
175
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
176
176
  init_esm_shims();
177
177
 
178
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
178
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
179
179
  init_esm_shims();
180
180
 
181
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/CipherTextProperty.js
181
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/CipherTextProperty.js
182
182
  init_esm_shims();
183
183
 
184
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
184
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
185
185
  init_esm_shims();
186
186
 
187
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
187
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
188
188
  init_esm_shims();
189
189
 
190
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
190
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
191
191
  init_esm_shims();
192
192
 
193
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
193
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
194
194
  init_esm_shims();
195
195
 
196
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
196
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
197
197
  init_esm_shims();
198
198
 
199
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
199
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
200
200
  init_esm_shims();
201
201
 
202
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyTransaction.js
202
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyTransaction.js
203
203
  init_esm_shims();
204
204
 
205
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
205
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
206
206
  var OntologyV2_exports = {};
207
207
  __export(OntologyV2_exports, {
208
208
  get: () => get,
@@ -228,19 +228,19 @@ function loadMetadata($ctx, ...args) {
228
228
  return foundryPlatformFetch($ctx, _loadMetadata, ...args);
229
229
  }
230
230
 
231
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyValueType.js
231
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyValueType.js
232
232
  init_esm_shims();
233
233
 
234
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
234
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
235
235
  init_esm_shims();
236
236
 
237
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
237
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
238
238
  init_esm_shims();
239
239
 
240
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
240
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
241
241
  init_esm_shims();
242
242
 
243
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
243
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.44.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
244
244
  init_esm_shims();
245
245
 
246
246
  // ../generator/build/esm/index.js
@@ -697,7 +697,10 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(interfaceType, v2,
697
697
  displayName: interfaceType.displayName,
698
698
  description: interfaceType.description,
699
699
  implements: interfaceType.allExtendsInterfaces ? [...interfaceType.allExtendsInterfaces].sort((a, b) => a.localeCompare(b)) : interfaceType.extendsInterfaces ? [...interfaceType.extendsInterfaces].sort((a, b) => a.localeCompare(b)) : void 0,
700
- properties: Object.fromEntries(Object.entries(interfaceType.allProperties ?? interfaceType.properties).map(([key2, value]) => {
700
+ properties: Object.fromEntries(Object.entries(
701
+ // prefer V2 if available and non-empty, otherwise fall back to V1
702
+ interfaceType.allPropertiesV2 && Object.keys(interfaceType.allPropertiesV2).length > 0 ? interfaceType.allPropertiesV2 : interfaceType.allProperties ?? interfaceType.properties
703
+ ).map(([key2, value]) => {
701
704
  return [key2, wirePropertyV2ToSdkPropertyDefinition(value, true, log)];
702
705
  }).filter(([_, value]) => value != null)),
703
706
  links: Object.fromEntries(Object.entries(interfaceType.allLinks ?? interfaceType.links ?? {}).map(([linkApiName, linkType]) => [linkApiName, {
@@ -781,7 +784,18 @@ function wireObjectTypeFullMetadataToSdkObjectMetadata(objectTypeWithLink, v2, l
781
784
  if (objectTypeWithLink.implementsInterfaces2 == null && objectTypeWithLink.implementsInterfaces != null) {
782
785
  throw new Error("Your ontology.json file is missing the implementsInterfaces2 field. Please regenerate it.");
783
786
  }
784
- const interfaceMap = objectTypeWithLink.implementsInterfaces2 ? Object.fromEntries(Object.entries(objectTypeWithLink.implementsInterfaces2).map(([interfaceApiName, impl]) => [interfaceApiName, impl.properties])) : {};
787
+ const interfaceMap = objectTypeWithLink.implementsInterfaces2 ? Object.fromEntries(Object.entries(objectTypeWithLink.implementsInterfaces2).map(([interfaceApiName, impl]) => {
788
+ if (impl.propertiesV2 && Object.keys(impl.propertiesV2).length > 0) {
789
+ const propMap = {};
790
+ for (const [iptApiName, implementation] of Object.entries(impl.propertiesV2)) {
791
+ if (implementation.type === "localPropertyImplementation") {
792
+ propMap[iptApiName] = implementation.propertyApiName;
793
+ }
794
+ }
795
+ return [interfaceApiName, propMap];
796
+ }
797
+ return [interfaceApiName, impl.properties];
798
+ })) : {};
785
799
  return {
786
800
  type: "object",
787
801
  apiName: objectTypeWithLink.objectType.apiName,
@@ -13281,7 +13295,7 @@ var parseYaml;
13281
13295
  async function loadYaml(file) {
13282
13296
  const content = await read_file_default(file);
13283
13297
  if (!parseYaml) {
13284
- ({ __parsePrettierYamlConfig: parseYaml } = await import('./yaml-AXQPPS5Y.js'));
13298
+ ({ __parsePrettierYamlConfig: parseYaml } = await import('./yaml-KQJSRZTS.js'));
13285
13299
  }
13286
13300
  try {
13287
13301
  return parseYaml(content);
@@ -17353,7 +17367,7 @@ function createParsersAndPrinters(modules) {
17353
17367
  }
17354
17368
  var options7 = { ...options_default, ...options_default2, ...options_default3, ...options_default4, ...options_default5, ...options_default6 };
17355
17369
  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];
17356
- var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-YSEQ53CG.js'), parsers: ["acorn", "espree"] }, { importPlugin: () => import('./angular-7FD4VEB2.js'), parsers: ["__ng_action", "__ng_binding", "__ng_interpolation", "__ng_directive"] }, { importPlugin: () => import('./babel-4O5ROH7P.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-EM55NQOH.js'), printers: ["estree", "estree-json"] }, { importPlugin: () => import('./flow-Q44IFPPY.js'), parsers: ["flow"] }, { importPlugin: () => import('./glimmer-IAOCCN7N.js'), parsers: ["glimmer"], printers: ["glimmer"] }, { importPlugin: () => import('./graphql-FSED3VAI.js'), parsers: ["graphql"], printers: ["graphql"] }, { importPlugin: () => import('./html-X5TDJHVJ.js'), parsers: ["html", "angular", "vue", "lwc", "mjml"], printers: ["html"] }, { importPlugin: () => import('./markdown-3BO6WVIC.js'), parsers: ["markdown", "mdx", "remark"], printers: ["mdast"] }, { importPlugin: () => import('./meriyah-VLP2WI6O.js'), parsers: ["meriyah"] }, { importPlugin: () => import('./postcss-HMVGVGRU.js'), parsers: ["css", "less", "scss"], printers: ["postcss"] }, { importPlugin: () => import('./typescript-22FVOYI3.js'), parsers: ["typescript"] }, { importPlugin: () => import('./yaml-AXQPPS5Y.js'), parsers: ["yaml"], printers: ["yaml"] }]);
17370
+ var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-2YJLPGID.js'), parsers: ["acorn", "espree"] }, { importPlugin: () => import('./angular-2UQQBORC.js'), parsers: ["__ng_action", "__ng_binding", "__ng_interpolation", "__ng_directive"] }, { importPlugin: () => import('./babel-BV4W3BOJ.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-PTS7QPRO.js'), printers: ["estree", "estree-json"] }, { importPlugin: () => import('./flow-Y46VD55R.js'), parsers: ["flow"] }, { importPlugin: () => import('./glimmer-SE4IEQF6.js'), parsers: ["glimmer"], printers: ["glimmer"] }, { importPlugin: () => import('./graphql-QF7PMC3R.js'), parsers: ["graphql"], printers: ["graphql"] }, { importPlugin: () => import('./html-EQKLXLBJ.js'), parsers: ["html", "angular", "vue", "lwc", "mjml"], printers: ["html"] }, { importPlugin: () => import('./markdown-FZBHQ3B4.js'), parsers: ["markdown", "mdx", "remark"], printers: ["mdast"] }, { importPlugin: () => import('./meriyah-Q2DK6BAD.js'), parsers: ["meriyah"] }, { importPlugin: () => import('./postcss-SR3FYBVU.js'), parsers: ["css", "less", "scss"], printers: ["postcss"] }, { importPlugin: () => import('./typescript-DEUJRDXE.js'), parsers: ["typescript"] }, { importPlugin: () => import('./yaml-KQJSRZTS.js'), parsers: ["yaml"], printers: ["yaml"] }]);
17357
17371
  function loadBuiltinPlugins() {
17358
17372
  return [builtin_plugins_proxy_exports];
17359
17373
  }
@@ -17716,9 +17730,6 @@ async function generateOntologyMetadataFile({
17716
17730
  ${ontologyApiNamespace == null ? `
17717
17731
  export const $ontologyRid = "${ontology.ontology.rid}";
17718
17732
  ` : ""}
17719
- ${ontology.raw.branch != null ? `
17720
- export const $branch = "${ontology.raw.branch.rid}";
17721
- ` : ""}
17722
17733
  `));
17723
17734
  }
17724
17735
 
@@ -17906,6 +17917,14 @@ async function generatePerActionDataFiles({
17906
17917
  const jsDocBlock = ["/**"];
17907
17918
  if (action.description != null) {
17908
17919
  jsDocBlock.push(`* ${action.description}`);
17920
+ const hasNullableParams = Object.values(fullActionDef.parameters || {}).some((param) => param.nullable === true);
17921
+ if (hasNullableParams) {
17922
+ jsDocBlock.push(`* `);
17923
+ jsDocBlock.push(`* **Note on null values:** _For optional parameters, explicitly providing a null value instead of undefined`);
17924
+ jsDocBlock.push(`* can change the behavior of the applied action. If prefills are configured, null prevents them`);
17925
+ jsDocBlock.push(`* from being applied. If a parameter modifies an object's property, null will clear the data from`);
17926
+ jsDocBlock.push(`* the object, whereas undefined would not modify that property._`);
17927
+ }
17909
17928
  }
17910
17929
  return `
17911
17930
 
@@ -17918,8 +17937,8 @@ async function generatePerActionDataFiles({
17918
17937
  "*": (ogValue, _, ogKey) => {
17919
17938
  const key2 = `${getDescriptionIfPresent(ogValue.description)}
17920
17939
  readonly "${ogKey}"${ogValue.nullable ? "?" : ""}`;
17921
- const value = ogValue.multiplicity ? `ReadonlyArray<${getActionParamType(ogValue.type)}>` : `${getActionParamType(ogValue.type)}`;
17922
- jsDocBlock.push(`* @param {${getActionParamType(ogValue.type)}} ${ogValue.nullable ? `[${ogKey}]` : ogKey} ${ogValue.description ?? ""} `);
17940
+ const value = (ogValue.multiplicity ? `ReadonlyArray<${getActionParamType(ogValue.type)}>` : `${getActionParamType(ogValue.type)}`) + (ogValue.nullable ? " | null" : "");
17941
+ jsDocBlock.push(`* @param {${getActionParamType(ogValue.type)}} ${ogValue.nullable ? `[${ogKey}]` : ogKey} ${ogValue.description ?? ""}`);
17923
17942
  return [key2, value];
17924
17943
  }
17925
17944
  })}
@@ -18394,11 +18413,10 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(interfaceDef, ontology,
18394
18413
  osdkObjectIdentifier,
18395
18414
  propertyKeysIdentifier
18396
18415
  };
18397
- if (interfaceDef.apiNamespace) {
18398
- const badProperties = Object.keys(definition.properties).filter((apiName) => extractNamespace(apiName)[0] == null);
18399
- if (badProperties.length > 0) {
18400
- throw new Error(`Interfaces with fully qualified api names MUST NOT have any properties with an unqualified api name. Interface: ${interfaceDef.fullApiName}, properties: ${badProperties.join(", ")}`);
18401
- }
18416
+ const maybeBadProperties = getInvalidInterfaceProperties(interfaceDef, definition);
18417
+ if (maybeBadProperties.length > 0) {
18418
+ throw new Error(`Property name collision in interface "${interfaceDef.fullApiName}": ${maybeBadProperties.join(", ")}. +
18419
+ Cannot have both an unqualified property and a namespaced property with matching root name when the namespace matches the interface.`);
18402
18420
  }
18403
18421
  const imports = getObjectImports(uniqueLinkTargetTypes, definition.apiName, currentFilePath, true);
18404
18422
  return `${imports}
@@ -18443,11 +18461,25 @@ ${stringify(definition.links, {
18443
18461
  `;
18444
18462
  })(forInternalUse) : ""}
18445
18463
 
18446
- export const ${interfaceDef.shortApiName}: ${interfaceDef.shortApiName} = {
18464
+ export const ${interfaceDef.shortApiName} = {
18447
18465
  type: "interface",
18448
18466
  apiName: "${interfaceDef.fullApiName}",
18449
18467
  osdkMetadata: $osdkMetadata,
18450
- };`;
18468
+ internalDoNotUseMetadata: {
18469
+ rid: "${definition.rid}",
18470
+ },
18471
+ } satisfies ${interfaceDef.shortApiName} & { internalDoNotUseMetadata: { rid: string } } as ${interfaceDef.shortApiName};`;
18472
+ }
18473
+ function getInvalidInterfaceProperties(interfaceDef, definition) {
18474
+ if (interfaceDef.apiNamespace == null) {
18475
+ return [];
18476
+ }
18477
+ const unqualifiedPropNames = new Set(Object.keys(definition.properties).map((apiName) => extractNamespace(apiName)).filter(([namespace]) => namespace == null).map(([, rootName]) => rootName));
18478
+ const badProperties = Object.keys(definition.properties).filter((apiName) => {
18479
+ const [ns, rootName] = extractNamespace(apiName);
18480
+ return ns === interfaceDef.apiNamespace && unqualifiedPropNames.has(rootName);
18481
+ });
18482
+ return badProperties;
18451
18483
  }
18452
18484
 
18453
18485
  // ../generator/build/esm/v2.0/generatePerInterfaceDataFiles.js
@@ -19034,7 +19066,7 @@ function createSharedClientContext(baseUrl, tokenProvider, userAgent, fetchFn =
19034
19066
 
19035
19067
  // ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
19036
19068
  var import_fast_deep_equal2 = __toESM(require_fast_deep_equal(), 1);
19037
- var USER_AGENT = `osdk-cli.cmd.typescript/${"0.31.0-beta.2"}`;
19069
+ var USER_AGENT = `osdk-cli.cmd.typescript/${"0.31.0-rc.3"}`;
19038
19070
  async function handleGenerate(args) {
19039
19071
  let success = false;
19040
19072
  if (args.ontologyPath) {
@@ -19085,9 +19117,7 @@ async function generateFromStack(args) {
19085
19117
  consola.error(`Could not look up ontology with these credentials. Found ${ontologies.data.length} ontologies.`);
19086
19118
  return false;
19087
19119
  }
19088
- const ontology = await OntologyV2_exports.getFullMetadata(ctx, ontologies.data[0].apiName, {
19089
- branch: args.branch
19090
- });
19120
+ const ontology = await OntologyV2_exports.getFullMetadata(ctx, ontologies.data[0].apiName);
19091
19121
  ontology.actionTypes = sortKeys2(ontology.actionTypes, (x) => {
19092
19122
  return {
19093
19123
  ...x,
@@ -19174,7 +19204,7 @@ async function generateClientSdk(ontology, args) {
19174
19204
  }
19175
19205
  return true;
19176
19206
  }
19177
- await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.31.0-beta.2", args.externalObjects, args.externalInterfaces);
19207
+ await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.31.0-rc.3", args.externalObjects, args.externalInterfaces);
19178
19208
  return true;
19179
19209
  } catch (e) {
19180
19210
  consola.error("OSDK generation failed", e.message, e.stack);
@@ -19201,8 +19231,8 @@ async function getDependencyVersions() {
19201
19231
  typescriptVersion,
19202
19232
  tslibVersion,
19203
19233
  areTheTypesWrongVersion,
19204
- osdkApiVersion: `^${"2.7.0-beta.2"}`,
19205
- osdkClientVersion: `^${"2.7.0-beta.2"}`,
19234
+ osdkApiVersion: `^${"2.7.0-rc.15"}`,
19235
+ osdkClientVersion: `^${"2.7.0-rc.15"}`,
19206
19236
  osdkLegacyClientVersion
19207
19237
  };
19208
19238
  }
@@ -19241,5 +19271,5 @@ function createNormalFs() {
19241
19271
  }
19242
19272
 
19243
19273
  export { getDependencyVersions, handleGenerate, updateVersionsIfTheyExist };
19244
- //# sourceMappingURL=handleGenerate-WZRH2AEA.js.map
19245
- //# sourceMappingURL=handleGenerate-WZRH2AEA.js.map
19274
+ //# sourceMappingURL=handleGenerate-U7MX3OA6.js.map
19275
+ //# sourceMappingURL=handleGenerate-U7MX3OA6.js.map