@fairmint/canton-node-sdk
Version:
Canton Node SDK
20 lines • 806 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AsyncSubmitReassignment = exports.AsyncSubmitReassignmentParamsSchema = void 0;
const core_1 = require("../../../../../../core");
const zod_1 = require("zod");
const endpoint = '/v2/commands/async/submit-reassignment';
exports.AsyncSubmitReassignmentParamsSchema = zod_1.z.object({
reassignmentCommands: zod_1.z.any(),
});
exports.AsyncSubmitReassignment = (0, core_1.createApiOperation)({
paramsSchema: exports.AsyncSubmitReassignmentParamsSchema,
method: 'POST',
buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
buildRequestData: (params) => {
return {
reassignmentCommands: params.reassignmentCommands,
};
},
});
//# sourceMappingURL=submit-reassignment.js.map