@osdk/cli 0.31.0-beta.2 → 0.32.0-beta.1

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 (76) hide show
  1. package/build/esm/{acorn-YSEQ53CG.js → acorn-2YJLPGID.js} +3 -3
  2. package/build/esm/{acorn-YSEQ53CG.js.map → acorn-2YJLPGID.js.map} +1 -1
  3. package/build/esm/{angular-7FD4VEB2.js → angular-2UQQBORC.js} +3 -3
  4. package/build/esm/{angular-7FD4VEB2.js.map → angular-2UQQBORC.js.map} +1 -1
  5. package/build/esm/{babel-4O5ROH7P.js → babel-BV4W3BOJ.js} +3 -3
  6. package/build/esm/{babel-4O5ROH7P.js.map → babel-BV4W3BOJ.js.map} +1 -1
  7. package/build/esm/{chunk-Z2MJFYY7.js → chunk-4L3JS54F.js} +3 -3
  8. package/build/esm/{chunk-Z2MJFYY7.js.map → chunk-4L3JS54F.js.map} +1 -1
  9. package/build/esm/{chunk-QINZLUQ3.js → chunk-ALV6NI27.js} +3 -3
  10. package/build/esm/{chunk-QINZLUQ3.js.map → chunk-ALV6NI27.js.map} +1 -1
  11. package/build/esm/{chunk-ESVT7U37.js → chunk-BL3NTXLM.js} +3 -3
  12. package/build/esm/{chunk-ESVT7U37.js.map → chunk-BL3NTXLM.js.map} +1 -1
  13. package/build/esm/{chunk-RBJBODXB.js → chunk-CINFOKVJ.js} +3 -3
  14. package/build/esm/{chunk-RBJBODXB.js.map → chunk-CINFOKVJ.js.map} +1 -1
  15. package/build/esm/{chunk-JMZKMGV3.js → chunk-CMWYDM5Q.js} +3 -3
  16. package/build/esm/{chunk-JMZKMGV3.js.map → chunk-CMWYDM5Q.js.map} +1 -1
  17. package/build/esm/{chunk-S5ZOEHLJ.js → chunk-DRRJ2GGF.js} +6 -6
  18. package/build/esm/{chunk-S5ZOEHLJ.js.map → chunk-DRRJ2GGF.js.map} +1 -1
  19. package/build/esm/{chunk-734SVMAK.js → chunk-TDNRRWOC.js} +3 -3
  20. package/build/esm/{chunk-734SVMAK.js.map → chunk-TDNRRWOC.js.map} +1 -1
  21. package/build/esm/{chunk-VI2PPUJW.js → chunk-W7U4ETYH.js} +3 -3
  22. package/build/esm/{chunk-VI2PPUJW.js.map → chunk-W7U4ETYH.js.map} +1 -1
  23. package/build/esm/{chunk-PTWXGEFK.js → chunk-XF44FMSL.js} +5 -5
  24. package/build/esm/{chunk-PTWXGEFK.js.map → chunk-XF44FMSL.js.map} +1 -1
  25. package/build/esm/{estree-EM55NQOH.js → estree-PTS7QPRO.js} +3 -3
  26. package/build/esm/{estree-EM55NQOH.js.map → estree-PTS7QPRO.js.map} +1 -1
  27. package/build/esm/find-up-GVGEKQPQ.js +4 -0
  28. package/build/esm/{find-up-4NYOPMEX.js.map → find-up-GVGEKQPQ.js.map} +1 -1
  29. package/build/esm/{flow-Q44IFPPY.js → flow-Y46VD55R.js} +3 -3
  30. package/build/esm/{flow-Q44IFPPY.js.map → flow-Y46VD55R.js.map} +1 -1
  31. package/build/esm/{glimmer-IAOCCN7N.js → glimmer-SE4IEQF6.js} +3 -3
  32. package/build/esm/{glimmer-IAOCCN7N.js.map → glimmer-SE4IEQF6.js.map} +1 -1
  33. package/build/esm/{graphql-FSED3VAI.js → graphql-QF7PMC3R.js} +3 -3
  34. package/build/esm/{graphql-FSED3VAI.js.map → graphql-QF7PMC3R.js.map} +1 -1
  35. package/build/esm/{handleGenerate-WZRH2AEA.js → handleGenerate-QTLA2LZL.js} +82 -47
  36. package/build/esm/handleGenerate-QTLA2LZL.js.map +1 -0
  37. package/build/esm/{html-X5TDJHVJ.js → html-EQKLXLBJ.js} +3 -3
  38. package/build/esm/{html-X5TDJHVJ.js.map → html-EQKLXLBJ.js.map} +1 -1
  39. package/build/esm/index.js +18 -18
  40. package/build/esm/index.js.map +1 -1
  41. package/build/esm/loginFlow-GP5ZJP3D.js +4 -0
  42. package/build/esm/{loginFlow-IXG6OKLA.js.map → loginFlow-GP5ZJP3D.js.map} +1 -1
  43. package/build/esm/{markdown-3BO6WVIC.js → markdown-FZBHQ3B4.js} +3 -3
  44. package/build/esm/{markdown-3BO6WVIC.js.map → markdown-FZBHQ3B4.js.map} +1 -1
  45. package/build/esm/{meriyah-VLP2WI6O.js → meriyah-Q2DK6BAD.js} +3 -3
  46. package/build/esm/{meriyah-VLP2WI6O.js.map → meriyah-Q2DK6BAD.js.map} +1 -1
  47. package/build/esm/{postcss-HMVGVGRU.js → postcss-SR3FYBVU.js} +3 -3
  48. package/build/esm/{postcss-HMVGVGRU.js.map → postcss-SR3FYBVU.js.map} +1 -1
  49. package/build/esm/{siteDeployCommand-I3SPEO3S.js → siteDeployCommand-65EZLLKR.js} +8 -8
  50. package/build/esm/{siteDeployCommand-I3SPEO3S.js.map → siteDeployCommand-65EZLLKR.js.map} +1 -1
  51. package/build/esm/{typescript-22FVOYI3.js → typescript-DEUJRDXE.js} +3 -3
  52. package/build/esm/{typescript-22FVOYI3.js.map → typescript-DEUJRDXE.js.map} +1 -1
  53. package/build/esm/{versionDeleteCommand-4X4FYM5L.js → versionDeleteCommand-7QMSHYYG.js} +7 -7
  54. package/build/esm/{versionDeleteCommand-4X4FYM5L.js.map → versionDeleteCommand-7QMSHYYG.js.map} +1 -1
  55. package/build/esm/{versionDeleteCommand-4E2TBJJQ.js → versionDeleteCommand-RLLUX3GV.js} +7 -7
  56. package/build/esm/{versionDeleteCommand-4E2TBJJQ.js.map → versionDeleteCommand-RLLUX3GV.js.map} +1 -1
  57. package/build/esm/{versionGetCommand-JJYAOKZQ.js → versionGetCommand-YRZZPN4P.js} +6 -6
  58. package/build/esm/{versionGetCommand-JJYAOKZQ.js.map → versionGetCommand-YRZZPN4P.js.map} +1 -1
  59. package/build/esm/{versionInfoCommand-D6DYQEHL.js → versionInfoCommand-LDJEIH2W.js} +6 -6
  60. package/build/esm/{versionInfoCommand-D6DYQEHL.js.map → versionInfoCommand-LDJEIH2W.js.map} +1 -1
  61. package/build/esm/{versionListCommand-XA66WI62.js → versionListCommand-3JUBZLII.js} +6 -6
  62. package/build/esm/{versionListCommand-XA66WI62.js.map → versionListCommand-3JUBZLII.js.map} +1 -1
  63. package/build/esm/{versionListCommand-T4SW5I7I.js → versionListCommand-TS7J3Y6D.js} +6 -6
  64. package/build/esm/{versionListCommand-T4SW5I7I.js.map → versionListCommand-TS7J3Y6D.js.map} +1 -1
  65. package/build/esm/{versionSetCommand-OMCMNAXY.js → versionSetCommand-RODV2JVG.js} +6 -6
  66. package/build/esm/{versionSetCommand-OMCMNAXY.js.map → versionSetCommand-RODV2JVG.js.map} +1 -1
  67. package/build/esm/{versionUnsetCommand-LVYQ6ADH.js → versionUnsetCommand-KISCTIVS.js} +7 -7
  68. package/build/esm/{versionUnsetCommand-LVYQ6ADH.js.map → versionUnsetCommand-KISCTIVS.js.map} +1 -1
  69. package/build/esm/{widgetSetDeployCommand-J4VTJLVR.js → widgetSetDeployCommand-RD65EEOX.js} +7 -7
  70. package/build/esm/{widgetSetDeployCommand-J4VTJLVR.js.map → widgetSetDeployCommand-RD65EEOX.js.map} +1 -1
  71. package/build/esm/{yaml-AXQPPS5Y.js → yaml-KQJSRZTS.js} +3 -3
  72. package/build/esm/{yaml-AXQPPS5Y.js.map → yaml-KQJSRZTS.js.map} +1 -1
  73. package/package.json +9 -9
  74. package/build/esm/find-up-4NYOPMEX.js +0 -4
  75. package/build/esm/handleGenerate-WZRH2AEA.js.map +0 -1
  76. 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,16 +54,16 @@ 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.45.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.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
61
61
  init_esm_shims();
62
62
 
63
- // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.5.0/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
63
+ // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.6.0/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
64
64
  init_esm_shims();
65
65
 
66
- // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.5.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
66
+ // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.6.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
67
67
  init_esm_shims();
68
68
 
69
69
  // ../../node_modules/.pnpm/@osdk+shared.client@1.0.1/node_modules/@osdk/shared.client/index.js
@@ -101,7 +101,7 @@ var UnknownError = class extends PalantirApiError2 {
101
101
  }
102
102
  };
103
103
 
104
- // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.5.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
104
+ // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.6.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
105
105
  async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {
106
106
  const path23 = origPath.replace(/\{([^}]+)\}/g, () => encodeURIComponent(args.shift()));
107
107
  const body = flags & 1 ? args.shift() : void 0;
@@ -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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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
  }
@@ -17906,6 +17920,14 @@ async function generatePerActionDataFiles({
17906
17920
  const jsDocBlock = ["/**"];
17907
17921
  if (action.description != null) {
17908
17922
  jsDocBlock.push(`* ${action.description}`);
17923
+ const hasNullableParams = Object.values(fullActionDef.parameters || {}).some((param) => param.nullable === true);
17924
+ if (hasNullableParams) {
17925
+ jsDocBlock.push(`* `);
17926
+ jsDocBlock.push(`* **Note on null values:** _For optional parameters, explicitly providing a null value instead of undefined`);
17927
+ jsDocBlock.push(`* can change the behavior of the applied action. If prefills are configured, null prevents them`);
17928
+ jsDocBlock.push(`* from being applied. If a parameter modifies an object's property, null will clear the data from`);
17929
+ jsDocBlock.push(`* the object, whereas undefined would not modify that property._`);
17930
+ }
17909
17931
  }
17910
17932
  return `
17911
17933
 
@@ -17918,8 +17940,8 @@ async function generatePerActionDataFiles({
17918
17940
  "*": (ogValue, _, ogKey) => {
17919
17941
  const key2 = `${getDescriptionIfPresent(ogValue.description)}
17920
17942
  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 ?? ""} `);
17943
+ const value = (ogValue.multiplicity ? `ReadonlyArray<${getActionParamType(ogValue.type)}>` : `${getActionParamType(ogValue.type)}`) + (ogValue.nullable ? " | null" : "");
17944
+ jsDocBlock.push(`* @param {${getActionParamType(ogValue.type)}} ${ogValue.nullable ? `[${ogKey}]` : ogKey} ${ogValue.description ?? ""}`);
17923
17945
  return [key2, value];
17924
17946
  }
17925
17947
  })}
@@ -18394,11 +18416,10 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(interfaceDef, ontology,
18394
18416
  osdkObjectIdentifier,
18395
18417
  propertyKeysIdentifier
18396
18418
  };
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
- }
18419
+ const maybeBadProperties = getInvalidInterfaceProperties(interfaceDef, definition);
18420
+ if (maybeBadProperties.length > 0) {
18421
+ throw new Error(`Property name collision in interface "${interfaceDef.fullApiName}": ${maybeBadProperties.join(", ")}. +
18422
+ Cannot have both an unqualified property and a namespaced property with matching root name when the namespace matches the interface.`);
18402
18423
  }
18403
18424
  const imports = getObjectImports(uniqueLinkTargetTypes, definition.apiName, currentFilePath, true);
18404
18425
  return `${imports}
@@ -18443,11 +18464,25 @@ ${stringify(definition.links, {
18443
18464
  `;
18444
18465
  })(forInternalUse) : ""}
18445
18466
 
18446
- export const ${interfaceDef.shortApiName}: ${interfaceDef.shortApiName} = {
18467
+ export const ${interfaceDef.shortApiName} = {
18447
18468
  type: "interface",
18448
18469
  apiName: "${interfaceDef.fullApiName}",
18449
18470
  osdkMetadata: $osdkMetadata,
18450
- };`;
18471
+ internalDoNotUseMetadata: {
18472
+ rid: "${definition.rid}",
18473
+ },
18474
+ } satisfies ${interfaceDef.shortApiName} & { internalDoNotUseMetadata: { rid: string } } as ${interfaceDef.shortApiName};`;
18475
+ }
18476
+ function getInvalidInterfaceProperties(interfaceDef, definition) {
18477
+ if (interfaceDef.apiNamespace == null) {
18478
+ return [];
18479
+ }
18480
+ const unqualifiedPropNames = new Set(Object.keys(definition.properties).map((apiName) => extractNamespace(apiName)).filter(([namespace]) => namespace == null).map(([, rootName]) => rootName));
18481
+ const badProperties = Object.keys(definition.properties).filter((apiName) => {
18482
+ const [ns, rootName] = extractNamespace(apiName);
18483
+ return ns === interfaceDef.apiNamespace && unqualifiedPropNames.has(rootName);
18484
+ });
18485
+ return badProperties;
18451
18486
  }
18452
18487
 
18453
18488
  // ../generator/build/esm/v2.0/generatePerInterfaceDataFiles.js
@@ -19034,7 +19069,7 @@ function createSharedClientContext(baseUrl, tokenProvider, userAgent, fetchFn =
19034
19069
 
19035
19070
  // ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
19036
19071
  var import_fast_deep_equal2 = __toESM(require_fast_deep_equal(), 1);
19037
- var USER_AGENT = `osdk-cli.cmd.typescript/${"0.31.0-beta.2"}`;
19072
+ var USER_AGENT = `osdk-cli.cmd.typescript/${"0.32.0-beta.1"}`;
19038
19073
  async function handleGenerate(args) {
19039
19074
  let success = false;
19040
19075
  if (args.ontologyPath) {
@@ -19174,7 +19209,7 @@ async function generateClientSdk(ontology, args) {
19174
19209
  }
19175
19210
  return true;
19176
19211
  }
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);
19212
+ await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.32.0-beta.1", args.externalObjects, args.externalInterfaces);
19178
19213
  return true;
19179
19214
  } catch (e) {
19180
19215
  consola.error("OSDK generation failed", e.message, e.stack);
@@ -19201,8 +19236,8 @@ async function getDependencyVersions() {
19201
19236
  typescriptVersion,
19202
19237
  tslibVersion,
19203
19238
  areTheTypesWrongVersion,
19204
- osdkApiVersion: `^${"2.7.0-beta.2"}`,
19205
- osdkClientVersion: `^${"2.7.0-beta.2"}`,
19239
+ osdkApiVersion: `^${"2.8.0-beta.1"}`,
19240
+ osdkClientVersion: `^${"2.8.0-beta.1"}`,
19206
19241
  osdkLegacyClientVersion
19207
19242
  };
19208
19243
  }
@@ -19241,5 +19276,5 @@ function createNormalFs() {
19241
19276
  }
19242
19277
 
19243
19278
  export { getDependencyVersions, handleGenerate, updateVersionsIfTheyExist };
19244
- //# sourceMappingURL=handleGenerate-WZRH2AEA.js.map
19245
- //# sourceMappingURL=handleGenerate-WZRH2AEA.js.map
19279
+ //# sourceMappingURL=handleGenerate-QTLA2LZL.js.map
19280
+ //# sourceMappingURL=handleGenerate-QTLA2LZL.js.map