@osdk/generator 1.11.0-next-20240426195134 → 1.11.1-main-20240517182038

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.
@@ -331,13 +331,13 @@ async function generatePerActionDataFiles(ontology, fs2, outDir, importExt, v2)
331
331
 
332
332
 
333
333
  // Represents the runtime arguments for the action
334
- export type ${paramsIdentifier} = NOOP<OsdkActionParameters<${paramsDefIdentifier}>> | NOOP<OsdkActionParameters<${paramsDefIdentifier}>>[];
334
+ export type ${paramsIdentifier} = NOOP<OsdkActionParameters<${paramsDefIdentifier}>>;
335
335
 
336
336
 
337
337
  // Represents a fqn of the action
338
338
  export interface ${action.apiName} {
339
339
  ${getDescriptionIfPresent(action.description)}
340
- <P extends ${paramsIdentifier}, OP extends P extends NOOP<OsdkActionParameters<${paramsDefIdentifier}>>[]? ApplyBatchActionOptions: ApplyActionOptions>(args: P, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
340
+ <OP extends ApplyActionOptions>(args: ${paramsIdentifier}, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
341
341
  }
342
342
 
343
343
 
@@ -375,7 +375,7 @@ async function generatePerActionDataFiles(ontology, fs2, outDir, importExt, v2)
375
375
  const importObjects = referencedObjectDefs.size > 0 ? `import type {${[...referencedObjectDefs].join(",")}} from "../objects${importExt}";` : "";
376
376
  await fs2.writeFile(path16__default.join(outDir, `${action.apiName}.ts`), await formatTs(`
377
377
  import type { ActionDefinition, ObjectActionDataType, ObjectSetActionDataType } from "@osdk/api";
378
- import type { ActionSignature, ApplyActionOptions, ApplyBatchActionOptions, OsdkActionParameters,ActionReturnTypeForOptions, NOOP } from '@osdk/client';
378
+ import type { ActionSignature, ApplyActionOptions, OsdkActionParameters,ActionReturnTypeForOptions, NOOP } from '@osdk/client';
379
379
  import { $osdkMetadata} from "../../OntologyMetadata${importExt}";
380
380
  ${importObjects}
381
381
 
@@ -1656,7 +1656,7 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(interfaceDef, v2 = false
1656
1656
 
1657
1657
  };`;
1658
1658
  }
1659
- var ExpectedOsdkVersion = "0.17.0";
1659
+ var ExpectedOsdkVersion = "0.19.1";
1660
1660
  async function generateOntologyMetadataFile(ontology, userAgent, fs2, outDir) {
1661
1661
  fs2.writeFile(path16__default.join(outDir, "OntologyMetadata.ts"), await formatTs(`
1662
1662
  import { OntologyMetadata as OM } from "@osdk/api";