diff --git a/dist/generated/qrcode_data_pb.js b/dist/generated/qrcode_data_pb.js index e8174b2b4f1e8e1ca8b3caaa2da8a5dc01567de5..0ab57a7dd847e5e5e834c0a43eddb57633fbab22 100644 --- a/dist/generated/qrcode_data_pb.js +++ b/dist/generated/qrcode_data_pb.js @@ -760,9 +760,10 @@ $root.vereign = (function () { * Properties of an IpfsContentData_V1. * @memberof vereign.protobuf.qrcode_data * @interface IIpfsContentData_V1 - * @property {string|null} [cid] IpfsContentData_V1 cid - * @property {string|null} [key] IpfsContentData_V1 key * @property {string|null} [head] IpfsContentData_V1 head + * @property {string|null} [key] IpfsContentData_V1 key + * @property {string|null} [cid] IpfsContentData_V1 cid + * @property {string|null} [ipnsKeyId] IpfsContentData_V1 ipnsKeyId */ /** * Constructs a new IpfsContentData_V1. @@ -779,12 +780,12 @@ $root.vereign = (function () { this[keys[i]] = properties[keys[i]]; } /** - * IpfsContentData_V1 cid. - * @member {string} cid + * IpfsContentData_V1 head. + * @member {string} head * @memberof vereign.protobuf.qrcode_data.IpfsContentData_V1 * @instance */ - IpfsContentData_V1.prototype.cid = ""; + IpfsContentData_V1.prototype.head = ""; /** * IpfsContentData_V1 key. * @member {string} key @@ -793,12 +794,19 @@ $root.vereign = (function () { */ IpfsContentData_V1.prototype.key = ""; /** - * IpfsContentData_V1 head. - * @member {string} head + * IpfsContentData_V1 cid. + * @member {string} cid * @memberof vereign.protobuf.qrcode_data.IpfsContentData_V1 * @instance */ - IpfsContentData_V1.prototype.head = ""; + IpfsContentData_V1.prototype.cid = ""; + /** + * IpfsContentData_V1 ipnsKeyId. + * @member {string} ipnsKeyId + * @memberof vereign.protobuf.qrcode_data.IpfsContentData_V1 + * @instance + */ + IpfsContentData_V1.prototype.ipnsKeyId = ""; /** * Creates a new IpfsContentData_V1 instance using the specified properties. * @function create @@ -822,12 +830,14 @@ $root.vereign = (function () { IpfsContentData_V1.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cid != null && Object.hasOwnProperty.call(message, "cid")) - writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.cid); + if (message.head != null && Object.hasOwnProperty.call(message, "head")) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.head); if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.key); - if (message.head != null && Object.hasOwnProperty.call(message, "head")) - writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.head); + if (message.cid != null && Object.hasOwnProperty.call(message, "cid")) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.cid); + if (message.ipnsKeyId != null && Object.hasOwnProperty.call(message, "ipnsKeyId")) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.ipnsKeyId); return writer; }; /** @@ -861,13 +871,16 @@ $root.vereign = (function () { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cid = reader.string(); + message.head = reader.string(); break; case 2: message.key = reader.string(); break; case 3: - message.head = reader.string(); + message.cid = reader.string(); + break; + case 4: + message.ipnsKeyId = reader.string(); break; default: reader.skipType(tag & 7); @@ -902,15 +915,18 @@ $root.vereign = (function () { IpfsContentData_V1.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cid != null && message.hasOwnProperty("cid")) - if (!$util.isString(message.cid)) - return "cid: string expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; if (message.head != null && message.hasOwnProperty("head")) if (!$util.isString(message.head)) return "head: string expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.cid != null && message.hasOwnProperty("cid")) + if (!$util.isString(message.cid)) + return "cid: string expected"; + if (message.ipnsKeyId != null && message.hasOwnProperty("ipnsKeyId")) + if (!$util.isString(message.ipnsKeyId)) + return "ipnsKeyId: string expected"; return null; }; /** @@ -925,12 +941,14 @@ $root.vereign = (function () { if (object instanceof $root.vereign.protobuf.qrcode_data.IpfsContentData_V1) return object; var message = new $root.vereign.protobuf.qrcode_data.IpfsContentData_V1(); - if (object.cid != null) - message.cid = String(object.cid); - if (object.key != null) - message.key = String(object.key); if (object.head != null) message.head = String(object.head); + if (object.key != null) + message.key = String(object.key); + if (object.cid != null) + message.cid = String(object.cid); + if (object.ipnsKeyId != null) + message.ipnsKeyId = String(object.ipnsKeyId); return message; }; /** @@ -947,16 +965,19 @@ $root.vereign = (function () { options = {}; var object = {}; if (options.defaults) { - object.cid = ""; - object.key = ""; object.head = ""; + object.key = ""; + object.cid = ""; + object.ipnsKeyId = ""; } - if (message.cid != null && message.hasOwnProperty("cid")) - object.cid = message.cid; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; if (message.head != null && message.hasOwnProperty("head")) object.head = message.head; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + if (message.cid != null && message.hasOwnProperty("cid")) + object.cid = message.cid; + if (message.ipnsKeyId != null && message.hasOwnProperty("ipnsKeyId")) + object.ipnsKeyId = message.ipnsKeyId; return object; }; /** diff --git a/dist/types.d.ts b/dist/types.d.ts index 2be80a742bded9e1df4f05fd8db5320a63eb15f6..75c2aacf138f57ed1cbb37c24bccda9c6ec6d654 100644 --- a/dist/types.d.ts +++ b/dist/types.d.ts @@ -17,10 +17,10 @@ export interface IpfsContentData { head: string; } export interface IpfsDocumentContentData { - ipnsKeyId?: string; - cid?: string; - key: string; head: string; + key: string; + cid?: string; + ipnsKeyId?: string; } export interface IpfsAttachmentData { cid: string;