UNPKG

@fairmint/canton-node-sdk

Version:
28 lines 968 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetAnsRules = void 0; const zod_1 = require("zod"); const core_1 = require("../../../../../core"); // Create Zod schema for the request parameters const GetAnsRulesParamsSchema = zod_1.z.object({ cached_ans_rules_contract_id: zod_1.z.string().optional(), cached_ans_rules_domain_id: zod_1.z.string().optional(), }); /** * @description Get ANS rules * @example * ```typescript * const rules = await client.getAnsRules({ * cached_ans_rules_contract_id: 'contract123', * cached_ans_rules_domain_id: 'domain123' * }); * console.log(`Rules: ${rules.ans_rules_update}`); * ``` */ exports.GetAnsRules = (0, core_1.createApiOperation)({ paramsSchema: GetAnsRulesParamsSchema, method: 'POST', buildUrl: (_params, apiUrl) => `${apiUrl}/api/validator/v0/scan-proxy/ans-rules`, buildRequestData: (params) => params, }); //# sourceMappingURL=get-rules.js.map