@osdk/generator 1.10.0-main-20240424195251 → 1.11.0-next-20240426195134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,19 +1,25 @@
1
1
  # @osdk/generator
2
2
 
3
- ## 1.10.0-main-20240424195251
3
+ ## 1.11.0-next-20240426195134
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - 11434b95: Deprecated bulk actions with renamed batchActions functionality
8
- - 948c6340: Add pivot to functionality and deprecate searchAround calls
7
+ - 2bb1acb: Added batch action support for 2.0 client
8
+
9
+ ## 1.10.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 11434b9: Deprecated bulk actions with renamed batchActions functionality
14
+ - 948c634: Add pivot to functionality and deprecate searchAround calls
15
+ - 9906a41: Extract package generation
16
+ - 9906a41: Compatible version checks now use versions that are both embedded in the code and updated automatically as part of the release process.
17
+ - f7287ae: For 2.0, fixes codegen version matching in snapshot builds
9
18
 
10
19
  ### Patch Changes
11
20
 
12
- - 9906a41e: Extract package generation
13
- - 9906a41e: Compatible version checks now use versions that are both embedded in the code and updated automatically as part of the release process.
14
- - f7287ae8: For 2.0, fixes codegen version matching in snapshot builds
15
- - @osdk/api@1.6.2-main-20240424195251
16
- - @osdk/generator-converters@0.4.1-main-20240424195251
21
+ - @osdk/api@1.7.0
22
+ - @osdk/generator-converters@0.5.0
17
23
 
18
24
  ## 1.1.1
19
25
 
@@ -356,13 +356,13 @@ async function generatePerActionDataFiles(ontology, fs2, outDir, importExt, v2)
356
356
 
357
357
 
358
358
  // Represents the runtime arguments for the action
359
- export type ${paramsIdentifier} = NOOP<OsdkActionParameters<${paramsDefIdentifier}>>;
359
+ export type ${paramsIdentifier} = NOOP<OsdkActionParameters<${paramsDefIdentifier}>> | NOOP<OsdkActionParameters<${paramsDefIdentifier}>>[];
360
360
 
361
361
 
362
362
  // Represents a fqn of the action
363
363
  export interface ${action.apiName} {
364
364
  ${getDescriptionIfPresent(action.description)}
365
- <OP extends ApplyActionOptions>(args: ${paramsIdentifier}, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
365
+ <P extends ${paramsIdentifier}, OP extends P extends NOOP<OsdkActionParameters<${paramsDefIdentifier}>>[]? ApplyBatchActionOptions: ApplyActionOptions>(args: P, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
366
366
  }
367
367
 
368
368
 
@@ -400,7 +400,7 @@ async function generatePerActionDataFiles(ontology, fs2, outDir, importExt, v2)
400
400
  const importObjects = referencedObjectDefs.size > 0 ? `import type {${[...referencedObjectDefs].join(",")}} from "../objects${importExt}";` : "";
401
401
  await fs2.writeFile(path16__namespace.default.join(outDir, `${action.apiName}.ts`), await formatTs(`
402
402
  import type { ActionDefinition, ObjectActionDataType, ObjectSetActionDataType } from "@osdk/api";
403
- import type { ActionSignature, ApplyActionOptions, OsdkActionParameters,ActionReturnTypeForOptions, NOOP } from '@osdk/client';
403
+ import type { ActionSignature, ApplyActionOptions, ApplyBatchActionOptions, OsdkActionParameters,ActionReturnTypeForOptions, NOOP } from '@osdk/client';
404
404
  import { $osdkMetadata} from "../../OntologyMetadata${importExt}";
405
405
  ${importObjects}
406
406
 
@@ -1681,7 +1681,7 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(interfaceDef, v2 = false
1681
1681
 
1682
1682
  };`;
1683
1683
  }
1684
- var ExpectedOsdkVersion = "0.15.1";
1684
+ var ExpectedOsdkVersion = "0.17.0";
1685
1685
  async function generateOntologyMetadataFile(ontology, userAgent, fs2, outDir) {
1686
1686
  fs2.writeFile(path16__namespace.default.join(outDir, "OntologyMetadata.ts"), await formatTs(`
1687
1687
  import { OntologyMetadata as OM } from "@osdk/api";