@fraym/proto 0.6.9 → 0.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -548,14 +548,7 @@ exports.TypeArgument = {
|
|
|
548
548
|
},
|
|
549
549
|
};
|
|
550
550
|
function createBaseRegisterMigrationRequest() {
|
|
551
|
-
return {
|
|
552
|
-
projectionTypes: [],
|
|
553
|
-
crudTypes: [],
|
|
554
|
-
enums: [],
|
|
555
|
-
nestedTypes: [],
|
|
556
|
-
migrateOnlyGivenTypes: false,
|
|
557
|
-
namespace: "",
|
|
558
|
-
};
|
|
551
|
+
return { projectionTypes: [], crudTypes: [], enums: [], nestedTypes: [], namespace: "" };
|
|
559
552
|
}
|
|
560
553
|
exports.RegisterMigrationRequest = {
|
|
561
554
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -571,11 +564,8 @@ exports.RegisterMigrationRequest = {
|
|
|
571
564
|
for (const v of message.nestedTypes) {
|
|
572
565
|
exports.NestedType.encode(v, writer.uint32(34).fork()).ldelim();
|
|
573
566
|
}
|
|
574
|
-
if (message.migrateOnlyGivenTypes === true) {
|
|
575
|
-
writer.uint32(40).bool(message.migrateOnlyGivenTypes);
|
|
576
|
-
}
|
|
577
567
|
if (message.namespace !== "") {
|
|
578
|
-
writer.uint32(
|
|
568
|
+
writer.uint32(42).string(message.namespace);
|
|
579
569
|
}
|
|
580
570
|
return writer;
|
|
581
571
|
},
|
|
@@ -611,13 +601,7 @@ exports.RegisterMigrationRequest = {
|
|
|
611
601
|
message.nestedTypes.push(exports.NestedType.decode(reader, reader.uint32()));
|
|
612
602
|
continue;
|
|
613
603
|
case 5:
|
|
614
|
-
if (tag !==
|
|
615
|
-
break;
|
|
616
|
-
}
|
|
617
|
-
message.migrateOnlyGivenTypes = reader.bool();
|
|
618
|
-
continue;
|
|
619
|
-
case 6:
|
|
620
|
-
if (tag !== 50) {
|
|
604
|
+
if (tag !== 42) {
|
|
621
605
|
break;
|
|
622
606
|
}
|
|
623
607
|
message.namespace = reader.string();
|
|
@@ -642,9 +626,6 @@ exports.RegisterMigrationRequest = {
|
|
|
642
626
|
nestedTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.nestedTypes)
|
|
643
627
|
? object.nestedTypes.map((e) => exports.NestedType.fromJSON(e))
|
|
644
628
|
: [],
|
|
645
|
-
migrateOnlyGivenTypes: isSet(object.migrateOnlyGivenTypes)
|
|
646
|
-
? globalThis.Boolean(object.migrateOnlyGivenTypes)
|
|
647
|
-
: false,
|
|
648
629
|
namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "",
|
|
649
630
|
};
|
|
650
631
|
},
|
|
@@ -663,9 +644,6 @@ exports.RegisterMigrationRequest = {
|
|
|
663
644
|
if ((_d = message.nestedTypes) === null || _d === void 0 ? void 0 : _d.length) {
|
|
664
645
|
obj.nestedTypes = message.nestedTypes.map((e) => exports.NestedType.toJSON(e));
|
|
665
646
|
}
|
|
666
|
-
if (message.migrateOnlyGivenTypes === true) {
|
|
667
|
-
obj.migrateOnlyGivenTypes = message.migrateOnlyGivenTypes;
|
|
668
|
-
}
|
|
669
647
|
if (message.namespace !== "") {
|
|
670
648
|
obj.namespace = message.namespace;
|
|
671
649
|
}
|
|
@@ -675,14 +653,13 @@ exports.RegisterMigrationRequest = {
|
|
|
675
653
|
return exports.RegisterMigrationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
676
654
|
},
|
|
677
655
|
fromPartial(object) {
|
|
678
|
-
var _a, _b, _c, _d, _e
|
|
656
|
+
var _a, _b, _c, _d, _e;
|
|
679
657
|
const message = createBaseRegisterMigrationRequest();
|
|
680
658
|
message.projectionTypes = ((_a = object.projectionTypes) === null || _a === void 0 ? void 0 : _a.map((e) => exports.ProjectionType.fromPartial(e))) || [];
|
|
681
659
|
message.crudTypes = ((_b = object.crudTypes) === null || _b === void 0 ? void 0 : _b.map((e) => exports.CrudType.fromPartial(e))) || [];
|
|
682
660
|
message.enums = ((_c = object.enums) === null || _c === void 0 ? void 0 : _c.map((e) => exports.EnumType.fromPartial(e))) || [];
|
|
683
661
|
message.nestedTypes = ((_d = object.nestedTypes) === null || _d === void 0 ? void 0 : _d.map((e) => exports.NestedType.fromPartial(e))) || [];
|
|
684
|
-
message.
|
|
685
|
-
message.namespace = (_f = object.namespace) !== null && _f !== void 0 ? _f : "";
|
|
662
|
+
message.namespace = (_e = object.namespace) !== null && _e !== void 0 ? _e : "";
|
|
686
663
|
return message;
|
|
687
664
|
},
|
|
688
665
|
};
|
|
@@ -555,7 +555,6 @@ function createBaseRegisterMigrationRequest() {
|
|
|
555
555
|
crudTypes: [],
|
|
556
556
|
enums: [],
|
|
557
557
|
nestedTypes: [],
|
|
558
|
-
migrateOnlyGivenTypes: false,
|
|
559
558
|
namespace: "",
|
|
560
559
|
};
|
|
561
560
|
}
|
|
@@ -576,11 +575,8 @@ exports.RegisterMigrationRequest = {
|
|
|
576
575
|
for (const v of message.nestedTypes) {
|
|
577
576
|
exports.NestedType.encode(v, writer.uint32(42).fork()).ldelim();
|
|
578
577
|
}
|
|
579
|
-
if (message.migrateOnlyGivenTypes === true) {
|
|
580
|
-
writer.uint32(48).bool(message.migrateOnlyGivenTypes);
|
|
581
|
-
}
|
|
582
578
|
if (message.namespace !== "") {
|
|
583
|
-
writer.uint32(
|
|
579
|
+
writer.uint32(50).string(message.namespace);
|
|
584
580
|
}
|
|
585
581
|
return writer;
|
|
586
582
|
},
|
|
@@ -622,13 +618,7 @@ exports.RegisterMigrationRequest = {
|
|
|
622
618
|
message.nestedTypes.push(exports.NestedType.decode(reader, reader.uint32()));
|
|
623
619
|
continue;
|
|
624
620
|
case 6:
|
|
625
|
-
if (tag !==
|
|
626
|
-
break;
|
|
627
|
-
}
|
|
628
|
-
message.migrateOnlyGivenTypes = reader.bool();
|
|
629
|
-
continue;
|
|
630
|
-
case 7:
|
|
631
|
-
if (tag !== 58) {
|
|
621
|
+
if (tag !== 50) {
|
|
632
622
|
break;
|
|
633
623
|
}
|
|
634
624
|
message.namespace = reader.string();
|
|
@@ -656,9 +646,6 @@ exports.RegisterMigrationRequest = {
|
|
|
656
646
|
nestedTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.nestedTypes)
|
|
657
647
|
? object.nestedTypes.map((e) => exports.NestedType.fromJSON(e))
|
|
658
648
|
: [],
|
|
659
|
-
migrateOnlyGivenTypes: isSet(object.migrateOnlyGivenTypes)
|
|
660
|
-
? globalThis.Boolean(object.migrateOnlyGivenTypes)
|
|
661
|
-
: false,
|
|
662
649
|
namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "",
|
|
663
650
|
};
|
|
664
651
|
},
|
|
@@ -680,9 +667,6 @@ exports.RegisterMigrationRequest = {
|
|
|
680
667
|
if ((_d = message.nestedTypes) === null || _d === void 0 ? void 0 : _d.length) {
|
|
681
668
|
obj.nestedTypes = message.nestedTypes.map((e) => exports.NestedType.toJSON(e));
|
|
682
669
|
}
|
|
683
|
-
if (message.migrateOnlyGivenTypes === true) {
|
|
684
|
-
obj.migrateOnlyGivenTypes = message.migrateOnlyGivenTypes;
|
|
685
|
-
}
|
|
686
670
|
if (message.namespace !== "") {
|
|
687
671
|
obj.namespace = message.namespace;
|
|
688
672
|
}
|
|
@@ -692,15 +676,14 @@ exports.RegisterMigrationRequest = {
|
|
|
692
676
|
return exports.RegisterMigrationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
693
677
|
},
|
|
694
678
|
fromPartial(object) {
|
|
695
|
-
var _a, _b, _c, _d, _e, _f
|
|
679
|
+
var _a, _b, _c, _d, _e, _f;
|
|
696
680
|
const message = createBaseRegisterMigrationRequest();
|
|
697
681
|
message.dangerouslyRemoveGdprFields = (_a = object.dangerouslyRemoveGdprFields) !== null && _a !== void 0 ? _a : false;
|
|
698
682
|
message.projectionTypes = ((_b = object.projectionTypes) === null || _b === void 0 ? void 0 : _b.map((e) => exports.ProjectionType.fromPartial(e))) || [];
|
|
699
683
|
message.crudTypes = ((_c = object.crudTypes) === null || _c === void 0 ? void 0 : _c.map((e) => exports.CrudType.fromPartial(e))) || [];
|
|
700
684
|
message.enums = ((_d = object.enums) === null || _d === void 0 ? void 0 : _d.map((e) => exports.EnumType.fromPartial(e))) || [];
|
|
701
685
|
message.nestedTypes = ((_e = object.nestedTypes) === null || _e === void 0 ? void 0 : _e.map((e) => exports.NestedType.fromPartial(e))) || [];
|
|
702
|
-
message.
|
|
703
|
-
message.namespace = (_g = object.namespace) !== null && _g !== void 0 ? _g : "";
|
|
686
|
+
message.namespace = (_f = object.namespace) !== null && _f !== void 0 ? _f : "";
|
|
704
687
|
return message;
|
|
705
688
|
},
|
|
706
689
|
};
|