UNPKG

@fairmint/canton-node-sdk

Version:
32 lines 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InteractiveSubmissionGetPreferredPackages = void 0; const core_1 = require("../../../../../core"); const operations_1 = require("../../../schemas/operations"); /** * @description Get the version of preferred packages for constructing a command submission * @example * ```typescript * const result = await client.interactiveSubmissionGetPreferredPackages({ * packageVettingRequirements: [ * { * parties: ['Alice', 'Bob'], * packageName: 'my-package' * } * ], * synchronizerId: 'sync-123' * }); * console.log(`Preferred packages: ${result.packageReferences.map(p => p.packageId).join(', ')}`); * ``` */ exports.InteractiveSubmissionGetPreferredPackages = (0, core_1.createApiOperation)({ paramsSchema: operations_1.InteractiveSubmissionGetPreferredPackagesParamsSchema, method: 'POST', buildUrl: (_params, apiUrl) => `${apiUrl}/v2/interactive-submission/preferred-packages`, buildRequestData: (params) => ({ packageVettingRequirements: params.packageVettingRequirements, synchronizerId: params.synchronizerId, vettingValidAt: params.vettingValidAt, }), }); //# sourceMappingURL=get-preferred-packages.js.map