UNPKG

@apillon/sdk

Version:

▶◀ Apillon SDK for NodeJS ▶◀

42 lines 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RpcApiKey = void 0; const apillon_1 = require("../../lib/apillon"); class RpcApiKey extends apillon_1.ApillonModel { /** * Constructor which should only be called via Rpc class. * @param id Unique identifier of the RPC API key. * @param data Data to populate RPC API key with. */ constructor(id, data) { super(id.toString()); /** * Unique identifier of the RPC API key. */ this.id = null; /** * Name of the RPC API key. */ this.name = null; /** * Description of the RPC API key. */ this.description = null; /** * Unique identifier of the project. */ this.projectUuid = null; /** * Unique identifier of the RPC API key, used for RPC calls. */ this.uuid = null; /** * Array of favorite URLs for the RPC API key. */ this.urls = null; this.API_PREFIX = `/rpc/api-key/${id}`; this.populate(data); } } exports.RpcApiKey = RpcApiKey; //# sourceMappingURL=rpc-api-key.js.map