UNPKG

@fairmint/canton-node-sdk

Version:
32 lines 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SubmitAndWaitForReassignment = void 0; const core_1 = require("../../../../../core"); const operations_1 = require("../../../schemas/operations"); /** * Submit a batch of reassignment commands and wait for the reassignment response * * @example * ```typescript * const result = await client.submitAndWaitForReassignment({ * reassignmentCommands: { * commandId: 'unique-command-id', * submitter: 'party1', * commands: [assignCommand, unassignCommand] * } * }); * ```; * * @param reassignmentCommands - Reassignment commands to submit * @param eventFormat - Event format (optional) */ exports.SubmitAndWaitForReassignment = (0, core_1.createApiOperation)({ paramsSchema: operations_1.SubmitAndWaitForReassignmentParamsSchema, method: 'POST', buildUrl: (_params, apiUrl) => `${apiUrl}/v2/commands/submit-and-wait-for-reassignment`, buildRequestData: (params) => ({ reassignmentCommands: params.reassignmentCommands, eventFormat: params.eventFormat, }), }); //# sourceMappingURL=submit-and-wait-for-reassignment.js.map