@osdk/generator 1.11.0-next-20240426195134 → 1.11.0
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 +11 -2
- package/build/js/index.browser.mjs +1888 -0
- package/build/js/index.browser.mjs.map +1 -0
- package/build/js/index.cjs +4 -4
- package/build/js/index.cjs.map +1 -1
- package/build/js/index.mjs +4 -4
- package/build/js/index.mjs.map +1 -1
- package/build/types/util/test/TodoWireOntology.d.ts +2 -0
- package/build/types/util/test/TodoWireOntology.d.ts.map +1 -1
- package/package.json +7 -5
package/build/js/index.mjs
CHANGED
|
@@ -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}
|
|
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
|
-
<
|
|
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,
|
|
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.
|
|
1659
|
+
var ExpectedOsdkVersion = "0.19.0";
|
|
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";
|