From b1b42213341e21be22d2ed78297a0acdb299e718 Mon Sep 17 00:00:00 2001 From: Zdravko Iliev <zdravko.iliev@vereign.com> Date: Wed, 16 Feb 2022 13:18:10 +0200 Subject: [PATCH] fix object type --- dist/generated/qrcode_data_pb.js | 14 +++++++------- vereign/protobuf/qrcode_data.proto | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/generated/qrcode_data_pb.js b/dist/generated/qrcode_data_pb.js index c76c848..4fb64d6 100644 --- a/dist/generated/qrcode_data_pb.js +++ b/dist/generated/qrcode_data_pb.js @@ -2304,7 +2304,7 @@ $root.vereign = (function () { * @property {string|null} [documentDescription] DocumentData_V1 documentDescription * @property {string|null} [creationDate] DocumentData_V1 creationDate * @property {number|null} [documentPages] DocumentData_V1 documentPages - * @property {vereign.protobuf.qrcode_data.IIpfsData_V1|null} [ipfs] DocumentData_V1 ipfs + * @property {vereign.protobuf.qrcode_data.IIpfsContentData_V1|null} [ipfs] DocumentData_V1 ipfs */ /** * Constructs a new DocumentData_V1. @@ -2357,7 +2357,7 @@ $root.vereign = (function () { DocumentData_V1.prototype.documentPages = 0; /** * DocumentData_V1 ipfs. - * @member {vereign.protobuf.qrcode_data.IIpfsData_V1|null|undefined} ipfs + * @member {vereign.protobuf.qrcode_data.IIpfsContentData_V1|null|undefined} ipfs * @memberof vereign.protobuf.qrcode_data.DocumentData_V1 * @instance */ @@ -2396,7 +2396,7 @@ $root.vereign = (function () { if (message.documentPages != null && Object.hasOwnProperty.call(message, "documentPages")) writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.documentPages); if (message.ipfs != null && Object.hasOwnProperty.call(message, "ipfs")) - $root.vereign.protobuf.qrcode_data.IpfsData_V1.encode(message.ipfs, writer.uint32(/* id 6, wireType 2 =*/ 50).fork()).ldelim(); + $root.vereign.protobuf.qrcode_data.IpfsContentData_V1.encode(message.ipfs, writer.uint32(/* id 6, wireType 2 =*/ 50).fork()).ldelim(); return writer; }; /** @@ -2445,7 +2445,7 @@ $root.vereign = (function () { message.documentPages = reader.int32(); break; case 6: - message.ipfs = $root.vereign.protobuf.qrcode_data.IpfsData_V1.decode(reader, reader.uint32()); + message.ipfs = $root.vereign.protobuf.qrcode_data.IpfsContentData_V1.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -2496,7 +2496,7 @@ $root.vereign = (function () { if (!$util.isInteger(message.documentPages)) return "documentPages: integer expected"; if (message.ipfs != null && message.hasOwnProperty("ipfs")) { - var error = $root.vereign.protobuf.qrcode_data.IpfsData_V1.verify(message.ipfs); + var error = $root.vereign.protobuf.qrcode_data.IpfsContentData_V1.verify(message.ipfs); if (error) return "ipfs." + error; } @@ -2527,7 +2527,7 @@ $root.vereign = (function () { if (object.ipfs != null) { if (typeof object.ipfs !== "object") throw TypeError(".vereign.protobuf.qrcode_data.DocumentData_V1.ipfs: object expected"); - message.ipfs = $root.vereign.protobuf.qrcode_data.IpfsData_V1.fromObject(object.ipfs); + message.ipfs = $root.vereign.protobuf.qrcode_data.IpfsContentData_V1.fromObject(object.ipfs); } return message; }; @@ -2563,7 +2563,7 @@ $root.vereign = (function () { if (message.documentPages != null && message.hasOwnProperty("documentPages")) object.documentPages = message.documentPages; if (message.ipfs != null && message.hasOwnProperty("ipfs")) - object.ipfs = $root.vereign.protobuf.qrcode_data.IpfsData_V1.toObject(message.ipfs, options); + object.ipfs = $root.vereign.protobuf.qrcode_data.IpfsContentData_V1.toObject(message.ipfs, options); return object; }; /** diff --git a/vereign/protobuf/qrcode_data.proto b/vereign/protobuf/qrcode_data.proto index b3b2969..e28fed7 100644 --- a/vereign/protobuf/qrcode_data.proto +++ b/vereign/protobuf/qrcode_data.proto @@ -71,7 +71,7 @@ message DocumentData_V1 { string documentDescription = 3; string creationDate = 4; int32 documentPages = 5; - IpfsData_V1 ipfs = 6; + IpfsContentData_V1 ipfs = 6; } /** -- GitLab